diff --git a/.github/ISSUE_TEMPLATE/BUG-REPORT.yaml b/.github/ISSUE_TEMPLATE/BUG-REPORT.yaml index de66f6cece..d6b7db1d6e 100644 --- a/.github/ISSUE_TEMPLATE/BUG-REPORT.yaml +++ b/.github/ISSUE_TEMPLATE/BUG-REPORT.yaml @@ -79,7 +79,7 @@ body: attributes: label: "Flutter Version" description: "Please share which version of Flutter you're using (found using `flutter --version`)." - placeholder: "3.27.0" + placeholder: "3.29.0" validations: required: true - type: input diff --git a/.github/dependency-review-config.yml b/.github/dependency-review-config.yml index 531ba0037e..0f940c9a90 100644 --- a/.github/dependency-review-config.yml +++ b/.github/dependency-review-config.yml @@ -9,6 +9,7 @@ allow_licenses: - "BSD-Source-Code" - "bzip2-1.0.6" - "CC0-1.0" + - "CC-BY-4.0" - "curl" - "ISC" - "MIT" diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index c70a2104e1..62d5e1aa71 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -31,7 +31,7 @@ jobs: - name: Setup Dart uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main with: - sdk: 3.6.0 + sdk: 3.7.0 - name: Setup pnpm uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # 4.0.0 @@ -63,7 +63,7 @@ jobs: - name: Setup Dart uses: dart-lang/setup-dart@e58aeb62aef51dcc4d0ba8eada7c08092aad5314 # main with: - sdk: 3.6.0 + sdk: 3.7.0 - name: Setup aft shell: bash # Run in bash regardless of platform diff --git a/.github/workflows/amplify_canaries.yaml b/.github/workflows/amplify_canaries.yaml index 81b0a42a1d..8bc28744ad 100644 --- a/.github/workflows/amplify_canaries.yaml +++ b/.github/workflows/amplify_canaries.yaml @@ -32,7 +32,7 @@ jobs: - "any" # latest include: - channel: "stable" - flutter-version: "3.27.0" + flutter-version: "3.29.0" steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0 with: @@ -88,7 +88,7 @@ jobs: - "any" # latest include: - channel: "stable" - flutter-version: "3.27.0" + flutter-version: "3.29.0" steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0 with: @@ -162,7 +162,7 @@ jobs: - "any" # latest include: - channel: "stable" - flutter-version: "3.27.0" + flutter-version: "3.29.0" ios-version: - "15.0" - "17.5" diff --git a/.github/workflows/dart_dart2js.yaml b/.github/workflows/dart_dart2js.yaml index a092491fa1..9a28d673d3 100644 --- a/.github/workflows/dart_dart2js.yaml +++ b/.github/workflows/dart_dart2js.yaml @@ -22,7 +22,7 @@ jobs: matrix: sdk: # Minimum supported Dart version - - "3.6.0" + - "3.7.0" - stable - beta browser: diff --git a/.github/workflows/dart_ddc.yaml b/.github/workflows/dart_ddc.yaml index 574333e2fb..c8cd60772c 100644 --- a/.github/workflows/dart_ddc.yaml +++ b/.github/workflows/dart_ddc.yaml @@ -22,7 +22,7 @@ jobs: matrix: sdk: # Minimum supported Dart version - - "3.6.0" + - "3.7.0" - stable - beta browser: diff --git a/.github/workflows/dart_vm.yaml b/.github/workflows/dart_vm.yaml index 1b9c307a9f..755c84ec8f 100644 --- a/.github/workflows/dart_vm.yaml +++ b/.github/workflows/dart_vm.yaml @@ -21,7 +21,7 @@ jobs: matrix: sdk: # Minimum supported Dart version - - "3.6.0" + - "3.7.0" - stable - beta # Skips 'beta' tests on PRs diff --git a/.github/workflows/flutter_vm.yaml b/.github/workflows/flutter_vm.yaml index 6f00066f67..53572fcc62 100644 --- a/.github/workflows/flutter_vm.yaml +++ b/.github/workflows/flutter_vm.yaml @@ -31,7 +31,7 @@ jobs: - "any" # latest include: - channel: "stable" - flutter-version: "3.27.0" + flutter-version: "3.29.0" # Skips 'beta' tests on PRs exclude: - channel: ${{ (github.event_name == 'pull_request') && 'beta' || 'NONE' }} diff --git a/actions/bin/launch_android_emulator.dart b/actions/bin/launch_android_emulator.dart index cd4e70c4ae..f4a37958b2 100644 --- a/actions/bin/launch_android_emulator.dart +++ b/actions/bin/launch_android_emulator.dart @@ -25,11 +25,7 @@ Future _action() async { ); final script = core.getRequiredInput('script'); - final sdkManager = SdkManager( - apiLevel: apiLevel, - target: target, - abi: abi, - ); + final sdkManager = SdkManager(apiLevel: apiLevel, target: target, abi: abi); final avdManager = AvdManager( apiLevel: apiLevel, target: target, @@ -39,8 +35,5 @@ Future _action() async { await sdkManager.ensureSdk(); await avdManager.launchEmulator(); - await core.withGroup( - 'Running script', - () => ShellScript(script).run(), - ); + await core.withGroup('Running script', () => ShellScript(script).run()); } diff --git a/actions/bin/launch_ios_simulator.dart b/actions/bin/launch_ios_simulator.dart index 8f73ef01e5..97bfb43ead 100644 --- a/actions/bin/launch_ios_simulator.dart +++ b/actions/bin/launch_ios_simulator.dart @@ -30,40 +30,31 @@ Future launch() async { core.info('No runtime found for $iosVersion'); await installRuntime(iosVersion); } - runtimeIdentifier = await core.withGroup( - 'Get runtime ID', - () async { - final runtimeId = await getRuntimeId(iosVersion); - core.info('Found runtime ID: $runtimeId'); - return runtimeId; - }, - ); + runtimeIdentifier = await core.withGroup('Get runtime ID', () async { + final runtimeId = await getRuntimeId(iosVersion); + core.info('Found runtime ID: $runtimeId'); + return runtimeId; + }); if (runtimeIdentifier == null) { throw Exception('Runtime not found after install'); } final createRes = await core.withGroup( 'Create simulator', - () => exec.exec( - 'xcrun', - [ - 'simctl', - 'create', - 'test', - 'iPhone 11', - runtimeIdentifier!, - ], - ), + () => exec.exec('xcrun', [ + 'simctl', + 'create', + 'test', + 'iPhone 11', + runtimeIdentifier!, + ]), ); if (createRes.exitCode != 0) { throw Exception('Could not create simulator'); } final bootRes = await core.withGroup( 'Boot simulator', - () => exec.exec( - 'xcrun', - ['simctl', 'boot', 'test'], - ), + () => exec.exec('xcrun', ['simctl', 'boot', 'test']), ); if (bootRes.exitCode != 0) { throw Exception('Could not boot simulator'); @@ -72,11 +63,12 @@ Future launch() async { /// Gets the iOS runtime identifier for the given [iosVersion]. Future getRuntimeId(String iosVersion) async { - final runtimesRes = await exec.exec( - 'xcrun', - ['simctl', 'list', 'runtimes', '-j'], - echoOutput: false, - ); + final runtimesRes = await exec.exec('xcrun', [ + 'simctl', + 'list', + 'runtimes', + '-j', + ], echoOutput: false); if (runtimesRes.exitCode != 0) { throw Exception('Could not list runtimes'); } @@ -95,18 +87,21 @@ Future getRuntimeId(String iosVersion) async { /// Installs the `xcodes` tool (https://github.com/XcodesOrg/xcodes) and /// `aria2` for speeding up downloads (as recommended by `xcodes`). Future installXcodes() => core.withGroup('Install xcodes', () async { - final res = await exec.exec( - 'brew', - ['install', 'xcodesorg/made/xcodes', 'aria2'], - ); - if (res.exitCode != 0) { - throw Exception('Could not install xcodes'); - } - }); + final res = await exec.exec('brew', [ + 'install', + 'xcodesorg/made/xcodes', + 'aria2', + ]); + if (res.exitCode != 0) { + throw Exception('Could not install xcodes'); + } +}); Future getLatest() async { - final version = await exec - .exec('/bin/sh', ['-c', r'xcodes runtimes | grep -e "iOS" | tail -n 1']); + final version = await exec.exec('/bin/sh', [ + '-c', + r'xcodes runtimes | grep -e "iOS" | tail -n 1', + ]); if (version.exitCode != 0) { throw Exception('Could not get latest version'); } @@ -117,16 +112,13 @@ Future getLatest() async { /// Installs the iOS runtime for the given [iosVersion]. Future installRuntime(String iosVersion) async { await core.withGroup('Install runtime', () async { - final res = await exec.exec( - 'sudo', - [ - 'xcodes', - 'runtimes', - 'install', - iosVersion, - '--no-color', - ], - ); + final res = await exec.exec('sudo', [ + 'xcodes', + 'runtimes', + 'install', + iosVersion, + '--no-color', + ]); if (res.exitCode != 0) { throw Exception('Could not install runtime'); } diff --git a/actions/bin/log_cw_metric.dart b/actions/bin/log_cw_metric.dart index 3a47797d3c..edd058fae8 100644 --- a/actions/bin/log_cw_metric.dart +++ b/actions/bin/log_cw_metric.dart @@ -94,9 +94,7 @@ Future logMetric() async { 'pub_server', ]; - final category = categories.firstWhereOrNull( - workingDirectory.contains, - ); + final category = categories.firstWhereOrNull(workingDirectory.contains); if (category == null) { throw Exception( @@ -112,16 +110,24 @@ Future logMetric() async { 'framework input of $framework must be one of: dart, flutter', ); } - final flutterDartChannel = - core.getInput('flutter-dart-channel', defaultValue: defaultValue); + final flutterDartChannel = core.getInput( + 'flutter-dart-channel', + defaultValue: defaultValue, + ); final dartVersion = core.getInput('dart-version', defaultValue: defaultValue); - final flutterVersion = - core.getInput('flutter-version', defaultValue: defaultValue); - final dartCompiler = - core.getInput('dart-compiler', defaultValue: defaultValue); + final flutterVersion = core.getInput( + 'flutter-version', + defaultValue: defaultValue, + ); + final dartCompiler = core.getInput( + 'dart-compiler', + defaultValue: defaultValue, + ); final platform = core.getInput('platform', defaultValue: defaultValue); - final platformVersion = - core.getInput('platform-version', defaultValue: defaultValue); + final platformVersion = core.getInput( + 'platform-version', + defaultValue: defaultValue, + ); final value = isFailed ? '1' : '0'; @@ -140,8 +146,9 @@ Future logMetric() async { //if (failingStep.isNotEmpty) 'failing-step': failingStep, }; - final dimensionString = - dimensions.entries.map((e) => '${e.key}=${e.value}').join(','); + final dimensionString = dimensions.entries + .map((e) => '${e.key}=${e.value}') + .join(','); final cloudArgs = [ 'cloudwatch', @@ -156,9 +163,7 @@ Future logMetric() async { dimensionString, ]; - await processManager.run( - ['aws', ...cloudArgs], - ); + await processManager.run(['aws', ...cloudArgs]); core.info('Sent cloudwatch metric with args: $cloudArgs'); } @@ -193,9 +198,11 @@ Future getFailingStep( final jobsList = GithubJobsList.fromJson(response); final matchingJob = jobsList.jobs.firstWhere( (job) => job.name.toLowerCase().contains(jobIdentifier), - orElse: () => throw Exception( - 'No job found matching <$jobIdentifier>. Ensure full workflow path run name is unique. Available jobs: ${jobsList.jobs.map((e) => e.name).join(', ')}. Note that the "jobIdentifier" used to find the proper job uses the job id and not the job name, setting the "name" field in the workflow yaml will break this logic. See comments for more context.', - ), + orElse: + () => + throw Exception( + 'No job found matching <$jobIdentifier>. Ensure full workflow path run name is unique. Available jobs: ${jobsList.jobs.map((e) => e.name).join(', ')}. Note that the "jobIdentifier" used to find the proper job uses the job id and not the job name, setting the "name" field in the workflow yaml will break this logic. See comments for more context.', + ), ); final steps = matchingJob.steps; diff --git a/actions/bin/setup_chromedriver.dart b/actions/bin/setup_chromedriver.dart index accb2fb286..b6cc4cf524 100644 --- a/actions/bin/setup_chromedriver.dart +++ b/actions/bin/setup_chromedriver.dart @@ -19,15 +19,12 @@ Future _installChromedriver() async { OS.linux => 'google-chrome', }; - final versionResult = await processManager.run( - [chromeExecutable, '--version'], - echoOutput: true, - ); - final ProcessResult( - :exitCode, - :stdout as String, - :stderr as String, - ) = versionResult; + final versionResult = await processManager.run([ + chromeExecutable, + '--version', + ], echoOutput: true); + final ProcessResult(:exitCode, :stdout as String, :stderr as String) = + versionResult; if (exitCode != 0) { throw Exception(stderr); } @@ -46,26 +43,23 @@ Future _installChromedriver() async { } core.info('ChromeDriver not found in cache.'); - final chromeDriverUrl = await core.withGroup( - 'Get ChromeDriver URL', - () async { - core.info('Getting URL for ChromeDriver $chromeVersion'); + final chromeDriverUrl = await core.withGroup('Get ChromeDriver URL', () async { + core.info('Getting URL for ChromeDriver $chromeVersion'); - // ChromeDriver publishes the latest versions by platform here. - // See: https://chromedriver.chromium.org/downloads - final allChromeDownloadsJson = await HttpClient().getJson( - 'https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json', - ); - core.debug('Got JSON: $allChromeDownloadsJson'); - final allChromeDownloads = AllChromeDownloads.fromJson( - allChromeDownloadsJson, - ); - return allChromeDownloads.chromeDriverUrl( - chromeVersion, - ChromePlatform.fromOsArch(process.platform, process.arch), - ); - }, - ); + // ChromeDriver publishes the latest versions by platform here. + // See: https://chromedriver.chromium.org/downloads + final allChromeDownloadsJson = await HttpClient().getJson( + 'https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json', + ); + core.debug('Got JSON: $allChromeDownloadsJson'); + final allChromeDownloads = AllChromeDownloads.fromJson( + allChromeDownloadsJson, + ); + return allChromeDownloads.chromeDriverUrl( + chromeVersion, + ChromePlatform.fromOsArch(process.platform, process.arch), + ); + }); final installPath = await core.withGroup('Download ChromeDriver', () async { core.info('Downloading ChromeDriver: $chromeDriverUrl'); @@ -76,11 +70,7 @@ Future _installChromedriver() async { final extractPath = await toolCache.extractZip(downloadPath); core.info('Extracted ChromeDriver to: $extractPath'); - return toolCache.cacheDir( - extractPath, - _binaryName, - chromeVersion, - ); + return toolCache.cacheDir(extractPath, _binaryName, chromeVersion); }); core diff --git a/actions/lib/src/action_context.dart b/actions/lib/src/action_context.dart index 47c402ff41..1e4bef96df 100644 --- a/actions/lib/src/action_context.dart +++ b/actions/lib/src/action_context.dart @@ -43,8 +43,8 @@ final class ActionContext implements RunContext, PostRunContext { @override Map get stateValues => Map.fromEntries( - process.env.entries.where((e) => e.key.startsWith('STATE_')).cast(), - ); + process.env.entries.where((e) => e.key.startsWith('STATE_')).cast(), + ); @override String? getState(String name) { diff --git a/actions/lib/src/android/android_tool.dart b/actions/lib/src/android/android_tool.dart index a9a1298a57..6a6c677092 100644 --- a/actions/lib/src/android/android_tool.dart +++ b/actions/lib/src/android/android_tool.dart @@ -36,12 +36,7 @@ final class AndroidTool { ); final ProcessResult(:exitCode, :stdout, :stderr) = result; if (exitCode != 0 && failOnNonZeroExit) { - throw ProcessException( - exe, - args, - '$stdout\n$stderr', - exitCode, - ); + throw ProcessException(exe, args, '$stdout\n$stderr', exitCode); } return result; } diff --git a/actions/lib/src/android/avd_manager.dart b/actions/lib/src/android/avd_manager.dart index d60719070a..006c4645b2 100644 --- a/actions/lib/src/android/avd_manager.dart +++ b/actions/lib/src/android/avd_manager.dart @@ -10,8 +10,12 @@ import 'package:actions/src/node/process_manager.dart'; import 'package:path/path.dart' as p; import 'package:retry/retry.dart'; -final androidAvdHome = - p.join(process.getEnv('HOME')!, '.config', '.android', 'avd'); +final androidAvdHome = p.join( + process.getEnv('HOME')!, + '.config', + '.android', + 'avd', +); final class AvdManager { AvdManager({ @@ -66,35 +70,38 @@ final class AvdManager { } Future _createEmulator() => core.withGroup('Create emulator', () async { - final targetImage = 'system-images;android-$apiLevel;$target;$abi'; - await _avdmanager( - ['--clear-cache', 'create', 'avd', '-n', name, '-k', targetImage], - stdinCmd: 'echo n', - ); - }); + final targetImage = 'system-images;android-$apiLevel;$target;$abi'; + await _avdmanager([ + '--clear-cache', + 'create', + 'avd', + '-n', + name, + '-k', + targetImage, + ], stdinCmd: 'echo n'); + }); - Future _startEmulator() => core.withGroup( - 'Start emulator', - () async { - final startAvdArgs = [ - '-avd', name, // Name of the AVD - '-no-window', - '-noaudio', - '-no-boot-anim', - '-restart-when-stalled', - '-accel', 'on', // Fail if HW accel is unavailable - '-no-snapshot', - '-wipe-data', - '-verbose', - ]; - final emulator = await processManager.start( - [_emulator.exe, ...startAvdArgs], - mode: ProcessStartMode.inheritStdio, - ); - core.info('Emulator started with args: $startAvdArgs'); - return emulator; - }, - ); + Future _startEmulator() => + core.withGroup('Start emulator', () async { + final startAvdArgs = [ + '-avd', name, // Name of the AVD + '-no-window', + '-noaudio', + '-no-boot-anim', + '-restart-when-stalled', + '-accel', 'on', // Fail if HW accel is unavailable + '-no-snapshot', + '-wipe-data', + '-verbose', + ]; + final emulator = await processManager.start([ + _emulator.exe, + ...startAvdArgs, + ], mode: ProcessStartMode.inheritStdio); + core.info('Emulator started with args: $startAvdArgs'); + return emulator; + }); Future _enableKvm() async { if (process.platform != OS.linux) { @@ -147,11 +154,10 @@ final class AvdManager { core.info(e.toString()); final devices = await _adb(['devices', '-l']); if (devices.exitCode != 0) { - throw ProcessException( - 'adb', - ['devices', '-l'], - devices.stderr as String, - ); + throw ProcessException('adb', [ + 'devices', + '-l', + ], devices.stderr as String); } }, () async { diff --git a/actions/lib/src/android/sdk_manager.dart b/actions/lib/src/android/sdk_manager.dart index db232a6011..6d5786f95b 100644 --- a/actions/lib/src/android/sdk_manager.dart +++ b/actions/lib/src/android/sdk_manager.dart @@ -9,18 +9,15 @@ import 'package:actions/src/android/avd_manager.dart'; import 'package:actions/src/android/types.dart'; import 'package:path/path.dart' as p; -final androidHome = process.getEnv('ANDROID_HOME') ?? +final androidHome = + process.getEnv('ANDROID_HOME') ?? (throw StateError( 'ANDROID_HOME env not set. Is the Android SDK installed?', )); /// Manages installation of Android SDK tools and system images. final class SdkManager { - SdkManager({ - required this.apiLevel, - required this.target, - required this.abi, - }); + SdkManager({required this.apiLevel, required this.target, required this.abi}); final AndroidApiLevel apiLevel; final AndroidSystemImageTarget target; @@ -48,8 +45,11 @@ final class SdkManager { /// /// The `sdkmanager` CLI expects cmdline-tools to be installed here and /// will throw unhelpful errors otherwise. - static final _cmdlineToolsPath = - p.join(androidHome, 'cmdline-tools', 'latest'); + static final _cmdlineToolsPath = p.join( + androidHome, + 'cmdline-tools', + 'latest', + ); /// Ensures the latest Android SDK and build tools are installed and available /// in the system PATH. @@ -82,42 +82,44 @@ final class SdkManager { static const _latestCmdlineToolsVersion = '11076708'; /// Installs the latest version of cmdline-tools if not already available. - Future _ensureCmdlineTools() async => - core.withGroup('Install cmdline-tools', () async { - if (fs.existsSync(_cmdlineToolsPath)) { - core.info('Found existing cmdline-tools installation'); - return; - } - if (toolCache.find('cmdline-tools', _latestCmdlineToolsVersion) - case final toolCachePath?) { - core.info('Found cached cmdline-tools install: $toolCachePath'); - return; - } - - final os = switch (process.platform) { - OS.linux => 'linux', - OS.macOS => 'mac', - }; - final downloadUrl = - 'https://dl.google.com/android/repository/commandlinetools-$os-${_latestCmdlineToolsVersion}_latest.zip'; - core.info('Downloading cmdline-tools from $downloadUrl'); - - final downloadPath = await toolCache.downloadTool(downloadUrl); - core.info('Downloaded cmdline-tools to $downloadPath'); - - final extractPath = await toolCache.extractZip( - downloadPath, - _cmdlineToolsPath, - ); - core.info('Extracted cmdline-tools to $extractPath'); - - final toolCachePath = await toolCache.cacheDir( - extractPath, - 'cmdline-tools', - _latestCmdlineToolsVersion, - ); - core.info('Installed cmdline-tools to $toolCachePath'); - }); + Future _ensureCmdlineTools() async => core.withGroup( + 'Install cmdline-tools', + () async { + if (fs.existsSync(_cmdlineToolsPath)) { + core.info('Found existing cmdline-tools installation'); + return; + } + if (toolCache.find('cmdline-tools', _latestCmdlineToolsVersion) + case final toolCachePath?) { + core.info('Found cached cmdline-tools install: $toolCachePath'); + return; + } + + final os = switch (process.platform) { + OS.linux => 'linux', + OS.macOS => 'mac', + }; + final downloadUrl = + 'https://dl.google.com/android/repository/commandlinetools-$os-${_latestCmdlineToolsVersion}_latest.zip'; + core.info('Downloading cmdline-tools from $downloadUrl'); + + final downloadPath = await toolCache.downloadTool(downloadUrl); + core.info('Downloaded cmdline-tools to $downloadPath'); + + final extractPath = await toolCache.extractZip( + downloadPath, + _cmdlineToolsPath, + ); + core.info('Extracted cmdline-tools to $extractPath'); + + final toolCachePath = await toolCache.cacheDir( + extractPath, + 'cmdline-tools', + _latestCmdlineToolsVersion, + ); + core.info('Installed cmdline-tools to $toolCachePath'); + }, + ); /// Installs prerequisites for building Android apps for the current /// [compileSdk] and given [apiLevel], [target], and [abi]. @@ -133,9 +135,7 @@ final class SdkManager { final buildToolsPackage = LineSplitter.split(availableTools.stdout as String) .map((line) => line.trim()) - .firstWhere( - (line) => line.startsWith('build-tools;$compileSdk'), - ) + .firstWhere((line) => line.startsWith('build-tools;$compileSdk')) .split(RegExp(r'\s+')) .first; @@ -147,13 +147,10 @@ final class SdkManager { }, ); - await core.withGroup( - 'Install/update platform tools', - () async { - await _sdkmanager(['platform-tools']); - core.info('Successfully installed platform-tools'); - }, - ); + await core.withGroup('Install/update platform tools', () async { + await _sdkmanager(['platform-tools']); + core.info('Successfully installed platform-tools'); + }); // Install the Android platform for the compileSdk used by the repo. await core.withGroup( diff --git a/actions/lib/src/android/shell_script.dart b/actions/lib/src/android/shell_script.dart index 04eac741a5..96723ce9e7 100644 --- a/actions/lib/src/android/shell_script.dart +++ b/actions/lib/src/android/shell_script.dart @@ -15,20 +15,22 @@ extension type ShellScript(String script) { set -eo pipefail $script '''; - core.info('Running script:\n$fullScript\n======================================='); + core.info( + 'Running script:\n$fullScript\n=======================================', + ); await fs.withTempDir('launch_android_emulator', (tempDir) async { final scriptPath = p.join(tempDir, 'script.sh'); fs.writeFileSync(scriptPath, fullScript); - final result = await processManager.start( - ['/bin/bash', scriptPath], - mode: ProcessStartMode.inheritStdio, - ); + final result = await processManager.start([ + '/bin/bash', + scriptPath, + ], mode: ProcessStartMode.inheritStdio); final exitCode = await result.exitCode; if (exitCode != 0) { throw ProcessException( '/bin/bash', [script], - 'Script failed with exit code', + 'Script failed with exit code', exitCode, ); } diff --git a/actions/lib/src/android/types.dart b/actions/lib/src/android/types.dart index de186f8180..924afe1635 100644 --- a/actions/lib/src/android/types.dart +++ b/actions/lib/src/android/types.dart @@ -14,18 +14,20 @@ enum AndroidAbi { const AndroidAbi(this.abi); static AndroidAbi parse(String value) => values.firstWhere( - (el) => el.name == value || el.abi == value, - orElse: () => throw ArgumentError.value( - value, - 'value', - 'Invalid Android ABI. Expected one of: [${allAbis.join(', ')}]', - ), - ); + (el) => el.name == value || el.abi == value, + orElse: + () => + throw ArgumentError.value( + value, + 'value', + 'Invalid Android ABI. Expected one of: [${allAbis.join(', ')}]', + ), + ); static AndroidAbi forArch(Arch arch) => switch (arch) { - Arch.x64 => x86_64, - Arch.arm64 => arm64, - }; + Arch.x64 => x86_64, + Arch.arm64 => arm64, + }; static List get allAbis => values.map((el) => el.abi).toList(); @@ -91,14 +93,16 @@ enum AndroidSystemImageTarget { const AndroidSystemImageTarget(this.tag); static AndroidSystemImageTarget parse(String target) => values.firstWhere( - (el) => el.tag == target, - orElse: () => throw ArgumentError.value( - target, - 'target', - 'Invalid Android system image taget. ' - 'Expected one of: [${allTags.join(', ')}]', - ), - ); + (el) => el.tag == target, + orElse: + () => + throw ArgumentError.value( + target, + 'target', + 'Invalid Android system image taget. ' + 'Expected one of: [${allTags.join(', ')}]', + ), + ); static List get allTags => values.map((el) => el.tag).toList(); diff --git a/actions/lib/src/chromedriver/downloads.dart b/actions/lib/src/chromedriver/downloads.dart index 3ef299247d..84b3ce262b 100644 --- a/actions/lib/src/chromedriver/downloads.dart +++ b/actions/lib/src/chromedriver/downloads.dart @@ -7,16 +7,11 @@ import 'package:json_annotation/json_annotation.dart'; part 'downloads.g.dart'; -const serializable = JsonSerializable( - createToJson: false, - anyMap: true, -); +const serializable = JsonSerializable(createToJson: false, anyMap: true); @serializable final class AllChromeDownloads { - const AllChromeDownloads({ - required this.versions, - }); + const AllChromeDownloads({required this.versions}); factory AllChromeDownloads.fromJson(Map json) => _$AllChromeDownloadsFromJson(json); @@ -32,10 +27,11 @@ final class AllChromeDownloads { // If the exact version doesn't match, get the latest for the patch version. if (url == null) { final patchVersion = version.split('.').sublist(0, 3).join('.'); - final latestChromeVersion = versions - .where((v) => v.version.startsWith(patchVersion)) - .sortedBy((v) => int.parse(v.version.split('.').last)) - .lastOrNull; + final latestChromeVersion = + versions + .where((v) => v.version.startsWith(patchVersion)) + .sortedBy((v) => int.parse(v.version.split('.').last)) + .lastOrNull; url = latestChromeVersion?.chromeDriverUrl(platform); } return url ?? @@ -58,9 +54,10 @@ final class ChromeVersion { final String revision; final ChromeVersionDownloads downloads; - String? chromeDriverUrl(ChromePlatform platform) => downloads.chromedriver - .firstWhereOrNull((download) => download.platform == platform) - ?.url; + String? chromeDriverUrl(ChromePlatform platform) => + downloads.chromedriver + .firstWhereOrNull((download) => download.platform == platform) + ?.url; } @serializable @@ -79,10 +76,7 @@ final class ChromeVersionDownloads { @serializable final class ChromeDownload { - const ChromeDownload({ - required this.platform, - required this.url, - }); + const ChromeDownload({required this.platform, required this.url}); factory ChromeDownload.fromJson(Map json) => _$ChromeDownloadFromJson(json); @@ -101,10 +95,10 @@ enum ChromePlatform { win64; static ChromePlatform fromOsArch(OS os, Arch arch) => switch ((os, arch)) { - (OS.linux, Arch.x64) => ChromePlatform.linux64, - (OS.macOS, Arch.x64) => ChromePlatform.macX64, - (OS.macOS, Arch.arm64) => ChromePlatform.macArm64, - final unsupported => - throw UnsupportedError('Unsupported OS/arch combo: $unsupported'), - }; + (OS.linux, Arch.x64) => ChromePlatform.linux64, + (OS.macOS, Arch.x64) => ChromePlatform.macX64, + (OS.macOS, Arch.arm64) => ChromePlatform.macArm64, + final unsupported => + throw UnsupportedError('Unsupported OS/arch combo: $unsupported'), + }; } diff --git a/actions/lib/src/chromedriver/downloads.g.dart b/actions/lib/src/chromedriver/downloads.g.dart index b103ec198d..97981befa7 100644 --- a/actions/lib/src/chromedriver/downloads.g.dart +++ b/actions/lib/src/chromedriver/downloads.g.dart @@ -7,37 +7,45 @@ part of 'downloads.dart'; // ************************************************************************** AllChromeDownloads _$AllChromeDownloadsFromJson(Map json) => AllChromeDownloads( - versions: (json['versions'] as List) - .map((e) => - ChromeVersion.fromJson(Map.from(e as Map))) + versions: + (json['versions'] as List) + .map( + (e) => ChromeVersion.fromJson(Map.from(e as Map)), + ) .toList(), - ); +); ChromeVersion _$ChromeVersionFromJson(Map json) => ChromeVersion( - version: json['version'] as String, - revision: json['revision'] as String, - downloads: ChromeVersionDownloads.fromJson( - Map.from(json['downloads'] as Map)), - ); + version: json['version'] as String, + revision: json['revision'] as String, + downloads: ChromeVersionDownloads.fromJson( + Map.from(json['downloads'] as Map), + ), +); -ChromeVersionDownloads _$ChromeVersionDownloadsFromJson(Map json) => - ChromeVersionDownloads( - chrome: (json['chrome'] as List?) - ?.map((e) => - ChromeDownload.fromJson(Map.from(e as Map))) - .toList() ?? - const [], - chromedriver: (json['chromedriver'] as List?) - ?.map((e) => - ChromeDownload.fromJson(Map.from(e as Map))) - .toList() ?? - const [], - ); +ChromeVersionDownloads _$ChromeVersionDownloadsFromJson( + Map json, +) => ChromeVersionDownloads( + chrome: + (json['chrome'] as List?) + ?.map( + (e) => ChromeDownload.fromJson(Map.from(e as Map)), + ) + .toList() ?? + const [], + chromedriver: + (json['chromedriver'] as List?) + ?.map( + (e) => ChromeDownload.fromJson(Map.from(e as Map)), + ) + .toList() ?? + const [], +); ChromeDownload _$ChromeDownloadFromJson(Map json) => ChromeDownload( - platform: $enumDecode(_$ChromePlatformEnumMap, json['platform']), - url: json['url'] as String, - ); + platform: $enumDecode(_$ChromePlatformEnumMap, json['platform']), + url: json['url'] as String, +); const _$ChromePlatformEnumMap = { ChromePlatform.linux64: 'linux64', diff --git a/actions/lib/src/githubJobs/github_jobs.dart b/actions/lib/src/githubJobs/github_jobs.dart index 7c0257991f..f785ea06ff 100644 --- a/actions/lib/src/githubJobs/github_jobs.dart +++ b/actions/lib/src/githubJobs/github_jobs.dart @@ -5,16 +5,11 @@ import 'package:json_annotation/json_annotation.dart'; part 'github_jobs.g.dart'; -const serializable = JsonSerializable( - createToJson: false, - anyMap: true, -); +const serializable = JsonSerializable(createToJson: false, anyMap: true); @serializable class GithubJobsList { - const GithubJobsList({ - required this.jobs, - }); + const GithubJobsList({required this.jobs}); factory GithubJobsList.fromJson(Map json) => _$GithubJobsListFromJson(json); final List jobs; @@ -22,10 +17,7 @@ class GithubJobsList { @serializable class GithubJob { - const GithubJob({ - required this.name, - required this.steps, - }); + const GithubJob({required this.name, required this.steps}); factory GithubJob.fromJson(Map json) => _$GithubJobFromJson(json); final String name; @@ -35,10 +27,7 @@ class GithubJob { @serializable class GithubStep { - const GithubStep({ - required this.name, - required this.conclusion, - }); + const GithubStep({required this.name, required this.conclusion}); factory GithubStep.fromJson(Map json) => _$GithubStepFromJson(json); final String name; diff --git a/actions/lib/src/githubJobs/github_jobs.g.dart b/actions/lib/src/githubJobs/github_jobs.g.dart index c98f02f049..385a1a5e90 100644 --- a/actions/lib/src/githubJobs/github_jobs.g.dart +++ b/actions/lib/src/githubJobs/github_jobs.g.dart @@ -7,19 +7,21 @@ part of 'github_jobs.dart'; // ************************************************************************** GithubJobsList _$GithubJobsListFromJson(Map json) => GithubJobsList( - jobs: (json['jobs'] as List) + jobs: + (json['jobs'] as List) .map((e) => GithubJob.fromJson(Map.from(e as Map))) .toList(), - ); +); GithubJob _$GithubJobFromJson(Map json) => GithubJob( - name: json['name'] as String, - steps: (json['steps'] as List) + name: json['name'] as String, + steps: + (json['steps'] as List) .map((e) => GithubStep.fromJson(Map.from(e as Map))) .toList(), - ); +); GithubStep _$GithubStepFromJson(Map json) => GithubStep( - name: json['name'] as String, - conclusion: json['conclusion'] as String?, - ); + name: json['name'] as String, + conclusion: json['conclusion'] as String?, +); diff --git a/actions/lib/src/node/actions/cache.dart b/actions/lib/src/node/actions/cache.dart index 741afcec67..3517685eac 100644 --- a/actions/lib/src/node/actions/cache.dart +++ b/actions/lib/src/node/actions/cache.dart @@ -7,23 +7,23 @@ import 'dart:js_interop'; external Cache get cache; /// Tools for interacting with the GitHub Actions cache. -/// +/// /// See: https://www.npmjs.com/package/@actions/cache @JS() @anonymous extension type Cache._(JSObject it) { /// Returns true if Actions cache service feature is available, otherwise false. external bool isFeatureAvailable(); - + @JS('restoreCache') external JSPromise _restoreCache( JSArray paths, - String primaryKey,[ + String primaryKey, [ JSArray? restoreKeys, ]); /// Restores cache from keys - /// + /// /// @param paths a list of file paths to restore from the cache /// @param primaryKey an explicit key for restoring the cache /// @param restoreKeys an optional ordered list of keys to use for restoring the cache if no cache hit occurred for key @@ -34,7 +34,7 @@ extension type Cache._(JSObject it) { List? restoreKeys, }) async { final promise = _restoreCache( - paths.map((p) => p.toJS).toList().toJS, + paths.map((p) => p.toJS).toList().toJS, primaryKey, restoreKeys?.map((key) => key.toJS).toList().toJS, ); @@ -43,13 +43,10 @@ extension type Cache._(JSObject it) { } @JS('saveCache') - external JSPromise _saveCache( - JSArray paths, - String primaryKey, - ); + external JSPromise _saveCache(JSArray paths, String primaryKey); /// Saves a list of files with the specified key - /// + /// /// @param paths a list of file paths to be cached /// @param primaryKey an explicit key for restoring the cache /// @returns number returns cacheId if the cache was saved successfully and throws an error if save fails @@ -58,7 +55,7 @@ extension type Cache._(JSObject it) { required String primaryKey, }) async { final promise = _saveCache( - paths.map((path) => path.toJS).toList().toJS, + paths.map((path) => path.toJS).toList().toJS, primaryKey, ); final result = await promise.toDart; diff --git a/actions/lib/src/node/actions/core.dart b/actions/lib/src/node/actions/core.dart index caf19dda50..da331465b0 100644 --- a/actions/lib/src/node/actions/core.dart +++ b/actions/lib/src/node/actions/core.dart @@ -22,7 +22,11 @@ extension type Core._(JSObject it) { String getRequiredInput(String name) { final inputValue = _getInput(name); - return inputValue.isEmpty ? (throw StateError('Input "$name" was required but no value was passed')) : inputValue; + return inputValue.isEmpty + ? (throw StateError( + 'Input "$name" was required but no value was passed', + )) + : inputValue; } T getTypedInput( @@ -49,10 +53,7 @@ extension type Core._(JSObject it) { external void startGroup(String name); external void endGroup(); - Future withGroup( - String name, - Future Function() action, - ) async { + Future withGroup(String name, Future Function() action) async { startGroup(name); try { return await action(); diff --git a/actions/lib/src/node/actions/exec.dart b/actions/lib/src/node/actions/exec.dart index 0927944aec..e365231c2d 100644 --- a/actions/lib/src/node/actions/exec.dart +++ b/actions/lib/src/node/actions/exec.dart @@ -34,10 +34,12 @@ extension type Exec._(JSObject it) { final stderr = StringBuffer(); final options = _ExecOptions( listeners: _ExecListeners( - stdout: ((JSUint8Array buffer) => - stdout.write(utf8.decode(buffer.toDart))).toJS, - stderr: ((JSUint8Array buffer) => - stderr.write(utf8.decode(buffer.toDart))).toJS, + stdout: + ((JSUint8Array buffer) => stdout.write(utf8.decode(buffer.toDart))) + .toJS, + stderr: + ((JSUint8Array buffer) => stderr.write(utf8.decode(buffer.toDart))) + .toJS, ), silent: !echoOutput, cwd: workingDirectory, @@ -45,11 +47,7 @@ extension type Exec._(JSObject it) { ); try { final exitCode = await promiseToFuture( - _exec( - commandLine, - args.map((arg) => arg.toJS).toList().toJS, - options, - ), + _exec(commandLine, args.map((arg) => arg.toJS).toList().toJS, options), ); return ExecResult( exitCode: exitCode, @@ -78,10 +76,7 @@ extension type _ExecOptions._(JSObject it) { @JS() @anonymous extension type _ExecListeners._(JSObject it) { - external factory _ExecListeners({ - JSFunction? stdout, - JSFunction? stderr, - }); + external factory _ExecListeners({JSFunction? stdout, JSFunction? stderr}); } final class ExecResult { diff --git a/actions/lib/src/node/actions/github.dart b/actions/lib/src/node/actions/github.dart index 1bdaf1c27f..e7b9d5035b 100644 --- a/actions/lib/src/node/actions/github.dart +++ b/actions/lib/src/node/actions/github.dart @@ -12,14 +12,14 @@ external GitHub get github; @anonymous extension type GitHub._(JSObject it) { /// The GitHub context this action is running in. - /// + /// /// See: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context external GitHubContext get context; } /// A typed representation of the `github` context object. -/// -/// See also: +/// +/// See also: /// - https://docs.github.com/en/actions/learn-github-actions/contexts#github-context /// - https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables @JS('github.Context') @@ -28,102 +28,102 @@ extension type GitHubContext._(JSObject it) { external WebhookPayload get payload; /// The name of the event that triggered the workflow run. - /// + /// /// From the `GITHUB_EVENT_NAME` environment variable. external String get eventName; - /// The commit SHA that triggered the workflow. - /// - /// The value of this commit SHA depends on the event that triggered the workflow. + /// The commit SHA that triggered the workflow. + /// + /// The value of this commit SHA depends on the event that triggered the workflow. /// For more information, see [Events that trigger workflows](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows). - /// + /// /// For example, `ffac537e6cbbf934b08745a378932722df287a53`. - /// + /// /// From the `GITHUB_SHA` environment variable. external String get sha; - /// The fully-formed ref of the branch or tag that triggered the workflow run. - /// - /// For workflows triggered by push, this is the branch or tag ref that was pushed. - /// For workflows triggered by pull_request, this is the pull request merge branch. - /// For workflows triggered by release, this is the release tag created. For other - /// triggers, this is the branch or tag ref that triggered the workflow run. - /// - /// This is only set if a branch or tag is available for the event type. The ref given - /// is fully-formed, meaning that for branches the format is `refs/heads/`, - /// for pull requests it is `refs/pull//merge`, and for tags it is - /// `refs/tags/`. - /// + /// The fully-formed ref of the branch or tag that triggered the workflow run. + /// + /// For workflows triggered by push, this is the branch or tag ref that was pushed. + /// For workflows triggered by pull_request, this is the pull request merge branch. + /// For workflows triggered by release, this is the release tag created. For other + /// triggers, this is the branch or tag ref that triggered the workflow run. + /// + /// This is only set if a branch or tag is available for the event type. The ref given + /// is fully-formed, meaning that for branches the format is `refs/heads/`, + /// for pull requests it is `refs/pull//merge`, and for tags it is + /// `refs/tags/`. + /// /// For example, `refs/heads/feature-branch-1`. - /// + /// /// From the `GITHUB_REF` environment variable. external String get ref; - /// The name of the workflow. If the workflow file doesn't specify a `name`, the value of + /// The name of the workflow. If the workflow file doesn't specify a `name`, the value of /// this property is the full path of the workflow file in the repository. - /// + /// /// From the `GITHUB_WORKFLOW` environment variable. external String get workflow; - /// The name of the action currently running, or the `id` of a step. - /// - /// GitHub removes special characters, and uses the name `__run` when the current step runs - /// a script without an `id`. If you use the same action more than once in the same job, - /// the name will include a suffix with the sequence number with underscore before it. - /// - /// For example, the first script you run will have the name `__run`, and the second script - /// will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be + /// The name of the action currently running, or the `id` of a step. + /// + /// GitHub removes special characters, and uses the name `__run` when the current step runs + /// a script without an `id`. If you use the same action more than once in the same job, + /// the name will include a suffix with the sequence number with underscore before it. + /// + /// For example, the first script you run will have the name `__run`, and the second script + /// will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be /// `actionscheckout2`. - /// + /// /// From the `GITHUB_ACTION` environment variable. external String get action; - /// The username of the user that triggered the initial workflow run. - /// - /// If the workflow run is a re-run, this value may differ from `github.triggering_actor`. - /// Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating + /// The username of the user that triggered the initial workflow run. + /// + /// If the workflow run is a re-run, this value may differ from `github.triggering_actor`. + /// Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating /// the re-run (`github.triggering_actor`) has different privileges. - /// + /// /// From the `GITHUB_ACTOR` environment variable. external String get actor; /// The `job_id` of the current job. - /// - /// **Note:** This context property is set by the Actions runner, and is only available within + /// + /// **Note:** This context property is set by the Actions runner, and is only available within /// the execution `steps` of a job. Otherwise, the value of this property will be `null`. - /// + /// /// From the `GITHUB_JOB` environment variable. external String get job; - /// A unique number for each run of a particular workflow in a repository. - /// - /// This number begins at 1 for the workflow's first run, and increments with each new run. This + /// A unique number for each run of a particular workflow in a repository. + /// + /// This number begins at 1 for the workflow's first run, and increments with each new run. This /// number does not change if you re-run the workflow run. - /// + /// /// From the `GITHUB_RUN_NUMBER` environment variable. external int get runNumber; - /// A unique number for each workflow run within a repository. - /// + /// A unique number for each workflow run within a repository. + /// /// This number does not change if you re-run the workflow run. - /// + /// /// From the `GITHUB_RUN_ID` environment variable. external int get runId; /// The URL of the GitHub REST API. - /// + /// /// From the `GITHUB_API_URL` environment variable. external String get apiUrl; - /// The URL of the GitHub server. - /// + /// The URL of the GitHub server. + /// /// For example: `https://github.com`. - /// + /// /// From the `GITHUB_SERVER_URL` environment variable. external String get serverUrl; /// The URL of the GitHub GraphQL API. - /// + /// /// From the `GITHUB_GRAPHQL_URL` environment variable. external String get graphqlUrl; @@ -133,56 +133,56 @@ extension type GitHubContext._(JSObject it) { /// The repo from which this action was run. external GitHubRepo get repo; - /// The name of the base ref or target branch of the pull request in a workflow run. - /// + /// The name of the base ref or target branch of the pull request in a workflow run. + /// /// This is only set when the event that triggers a workflow run is either `pull_request` - /// or `pull_request_target`. - /// + /// or `pull_request_target`. + /// /// For example, `main`. - /// + /// /// From the `GITHUB_BASE_REF` environment variable. String? get baseRef => process.getEnv('GITHUB_BASE_REF'); - /// The head ref or source branch of the pull request in a workflow run. - /// - /// This property is only set when the event that triggers a workflow run is either - /// `pull_request` or `pull_request_target`. - /// + /// The head ref or source branch of the pull request in a workflow run. + /// + /// This property is only set when the event that triggers a workflow run is either + /// `pull_request` or `pull_request_target`. + /// /// For example, feature-branch-1. - /// + /// /// From the `GITHUB_HEAD_REF` environment variable. String? get headRef => process.getEnv('GITHUB_HEAD_REF'); - /// The short ref name of the branch or tag that triggered the workflow run. - /// - /// This value matches the branch or tag name shown on GitHub. - /// + /// The short ref name of the branch or tag that triggered the workflow run. + /// + /// This value matches the branch or tag name shown on GitHub. + /// /// For example, `feature-branch-1`. - /// + /// /// From the `GITHUB_REF_NAME` environment variable. String get refName => process.getEnv('GITHUB_REF_NAME')!; - /// The type of ref that triggered the workflow run. - /// + /// The type of ref that triggered the workflow run. + /// /// Valid values are `branch` or `tag`. - /// + /// /// From the `GITHUB_REF_TYPE` environment variable. - GitHubRefType get refType => GitHubRefType.values.byName( - process.getEnv('GITHUB_REF_TYPE')!, - ); - - /// A unique number for each attempt of a particular workflow run in a repository. - /// - /// This number begins at `1` for the workflow run's first attempt, and increments - /// with each re-run. - /// + GitHubRefType get refType => + GitHubRefType.values.byName(process.getEnv('GITHUB_REF_TYPE')!); + + /// A unique number for each attempt of a particular workflow run in a repository. + /// + /// This number begins at `1` for the workflow run's first attempt, and increments + /// with each re-run. + /// /// For example, `3`. - /// + /// /// From the `GITHUB_RUN_ATTEMPT` environment variable. int get runAttempt => int.parse(process.getEnv('GITHUB_RUN_ATTEMPT')!); /// The URL to this workflow's run. - String get workflowRunUrl => '$serverUrl/${repo.owner}/${repo.repo}/actions/runs/$runId'; + String get workflowRunUrl => + '$serverUrl/${repo.owner}/${repo.repo}/actions/runs/$runId'; } enum GitHubRefType { branch, tag } @@ -211,7 +211,7 @@ extension type WebhookPayload._(JSObject it) implements JSObject { @anonymous extension type PullRequest._(JSObject it) implements JSObject { external int get number; - + @JS('html_url') external String? get htmlUrl; external String? get body; diff --git a/actions/lib/src/node/actions/http_request.dart b/actions/lib/src/node/actions/http_request.dart index 3f2beee514..959637604b 100644 --- a/actions/lib/src/node/actions/http_request.dart +++ b/actions/lib/src/node/actions/http_request.dart @@ -14,10 +14,11 @@ extension type HttpClient._(JSObject it) { @JS('getJson') external JSPromise _getJson(String requestUrl, [JSObject headers]); - Future> getJson(String requestUrl, { + Future> getJson( + String requestUrl, { Map headers = const {}, - } ) async { - final jsHeaders = headers.jsify() as JSObject; + }) async { + final jsHeaders = headers.jsify() as JSObject; final response = await _getJson(requestUrl, jsHeaders).toDart; final result = response as TypedResponse; if (result.statusCode != 200) { @@ -30,10 +31,7 @@ extension type HttpClient._(JSObject it) { @JS() @anonymous extension type TypedResponse._(JSObject it) { - external factory TypedResponse({ - int statusCode, - T result, - }); + external factory TypedResponse({int statusCode, T result}); external int get statusCode; external T? get result; diff --git a/actions/lib/src/node/actions/tool_cache.dart b/actions/lib/src/node/actions/tool_cache.dart index ec49591023..ca2e2a8356 100644 --- a/actions/lib/src/node/actions/tool_cache.dart +++ b/actions/lib/src/node/actions/tool_cache.dart @@ -11,10 +11,7 @@ external ToolCache get toolCache; @anonymous extension type ToolCache._(JSObject it) { @JS('find') - external String _find( - String toolName, - String versionSpec, - ); + external String _find(String toolName, String versionSpec); /// Finds the path to a tool version in the local installed tool cache. /// @@ -70,8 +67,8 @@ extension type ToolCache._(JSObject it) { /// @param arch architecture of the tool. Optional. /// Defaults to machine architecture Future cacheDir( - String sourceDir, - String tool, + String sourceDir, + String tool, String version, [ String? arch, ]) async { diff --git a/actions/lib/src/node/child_process.dart b/actions/lib/src/node/child_process.dart index 420cc9d3dc..fa87131913 100644 --- a/actions/lib/src/node/child_process.dart +++ b/actions/lib/src/node/child_process.dart @@ -27,9 +27,9 @@ extension type ChildProcess(JSObject it) { external NodeChildProcess _exec( String command, _ChildProcessOptions options, [ - JSFunction callback, - ] // (error: Error, stdout: string, stderr: string) => void - ); + JSFunction + callback, // (error: Error, stdout: string, stderr: string) => void + ]); @JS('execSync') external JSUint8Array? _execSync( @@ -52,10 +52,12 @@ extension type ChildProcess(JSObject it) { [command, ...args].join(' '), _ChildProcessOptions( cwd: workingDirectory, - env: { - ...?environment, - if (includeParentEnvironment) ...process.env, - }.jsify() as JSObject, + env: + { + ...?environment, + if (includeParentEnvironment) ...process.env, + }.jsify() + as JSObject, encoding: 'utf8', shell: runInShell ? '/bin/sh' : null, ), @@ -66,12 +68,7 @@ extension type ChildProcess(JSObject it) { ); } completer.complete( - ProcessResult( - child.pid ?? -1, - child.exitCode!, - stdout, - stderr, - ), + ProcessResult(child.pid ?? -1, child.exitCode!, stdout, stderr), ); }.toJS, ); @@ -92,25 +89,23 @@ extension type ChildProcess(JSObject it) { [command, ...args].join(' '), _ChildProcessOptions( cwd: workingDirectory, - env: { - ...?environment, - if (includeParentEnvironment) ...process.env, - }.jsify() as JSObject, + env: + { + ...?environment, + if (includeParentEnvironment) ...process.env, + }.jsify() + as JSObject, shell: runInShell ? '/bin/sh' : null, encoding: 'buffer', - stdio: [ - null, - if (echoOutput) 'inherit'.toJS else null, - if (echoOutput) 'inherit'.toJS else null, - ].toJS, + stdio: + [ + null, + if (echoOutput) 'inherit'.toJS else null, + if (echoOutput) 'inherit'.toJS else null, + ].toJS, ), ); - return ProcessResult( - -1, - 0, - stdout?.toDart ?? Uint8List(0), - Uint8List(0), - ); + return ProcessResult(-1, 0, stdout?.toDart ?? Uint8List(0), Uint8List(0)); } on Object catch (e) { final message = switch (e) { final JSError e => e.message, @@ -130,33 +125,37 @@ extension type ChildProcess(JSObject it) { ProcessStartMode mode = ProcessStartMode.normal, JSAny? stdin, }) { - final jsMode = switch (mode) { - ProcessStartMode.normal => 'pipe', - ProcessStartMode.detached => 'ignore', - ProcessStartMode.detachedWithStdio => 'pipe', - ProcessStartMode.inheritStdio => 'inherit', - _ => unreachable, - } - .toJS; + final jsMode = + switch (mode) { + ProcessStartMode.normal => 'pipe', + ProcessStartMode.detached => 'ignore', + ProcessStartMode.detachedWithStdio => 'pipe', + ProcessStartMode.inheritStdio => 'inherit', + _ => unreachable, + }.toJS; return _spawn( command, args.map((arg) => arg.toJS).toList().toJS, _ChildProcessOptions( cwd: workingDirectory, - env: { - ...?environment, - if (includeParentEnvironment) ...process.env, - }.jsify() as JSObject, - detached: mode == ProcessStartMode.detached || + env: + { + ...?environment, + if (includeParentEnvironment) ...process.env, + }.jsify() + as JSObject, + detached: + mode == ProcessStartMode.detached || mode == ProcessStartMode.detachedWithStdio, - stdio: [ - // stdin - stdin ?? jsMode, - // stdout - jsMode, - // stderr - jsMode, - ].toJS, + stdio: + [ + // stdin + stdin ?? jsMode, + // stdout + jsMode, + // stderr + jsMode, + ].toJS, shell: runInShell ? '/bin/sh' : null, ), ); @@ -255,6 +254,9 @@ extension type EventEmitter._(JSObject it) implements JSObject { @JS() @anonymous extension type NodeWriteableStream._(JSObject it) { - external void write(JSUint8Array chunk, - [String? encoding, JSFunction flushCallback]); + external void write( + JSUint8Array chunk, [ + String? encoding, + JSFunction flushCallback, + ]); } diff --git a/actions/lib/src/node/fs.dart b/actions/lib/src/node/fs.dart index 987f33d79b..60de2ac8eb 100644 --- a/actions/lib/src/node/fs.dart +++ b/actions/lib/src/node/fs.dart @@ -14,13 +14,13 @@ import 'package:path/path.dart' as p; external FileSystem get fs; /// `node:fs` constants. -/// +/// /// See: https://nodejs.org/api/fs.html#fsconstants abstract final class FileSystemAccess { /// Flag indicating that the file is visible to the calling process. static const int F_OK = 0; - /// Flag indicating that the file can be executed by the calling process. + /// Flag indicating that the file can be executed by the calling process. static const int X_OK = 1 << 0; /// Flag indicating that the file can be written by the calling process. @@ -47,7 +47,7 @@ extension type FileSystem._(JSObject it) { external void appendFileSync(String path, String data); /// Whether the current user has permissions to access [path]. - /// + /// /// Use [mode] to select which access level to check. bool canAccess(String path, {int mode = FileSystemAccess.F_OK}) { try { @@ -90,7 +90,5 @@ extension type FileSystem._(JSObject it) { @JS() @anonymous extension type _RmdirOptions._(JSObject it) { - external factory _RmdirOptions({ - bool? recursive, - }); + external factory _RmdirOptions({bool? recursive}); } diff --git a/actions/lib/src/node/process.dart b/actions/lib/src/node/process.dart index 959444d1e2..bad8ce0b5f 100644 --- a/actions/lib/src/node/process.dart +++ b/actions/lib/src/node/process.dart @@ -18,7 +18,7 @@ extension type Process._(JSObject it) { external String get version; /// A string identifying the operating system platform for which the Node.js binary was compiled. - /// + /// /// See: https://nodejs.org/api/process.html#processplatform @JS('platform') external String get _platform; @@ -41,7 +41,7 @@ extension type Process._(JSObject it) { 'x64' => Arch.x64, final unknown => throw StateError('Unknown architecture: $unknown'), }; - + @JS('env') // Map external JSObject get _env; diff --git a/actions/lib/src/node/process_manager.dart b/actions/lib/src/node/process_manager.dart index 9b7c3d19ca..62f4da4561 100644 --- a/actions/lib/src/node/process_manager.dart +++ b/actions/lib/src/node/process_manager.dart @@ -72,24 +72,19 @@ final class NodeProcessManager implements Closeable, ProcessManager { .transform(stdoutEncoding.decoder) .transform(const LineSplitter()) .listen((line) { - if (echoOutput) core.info(line); - stdout.writeln(line); - }); + if (echoOutput) core.info(line); + stdout.writeln(line); + }); final stderrSub = process.stderr .transform(stderrEncoding.decoder) .transform(const LineSplitter()) .listen((line) { - if (echoOutput) core.info(line); - stderr.writeln(line); - }); + if (echoOutput) core.info(line); + stderr.writeln(line); + }); try { final exitCode = await process.exitCode; - return ProcessResult( - pid, - exitCode, - stdout.toString(), - stderr.toString(), - ); + return ProcessResult(pid, exitCode, stdout.toString(), stderr.toString()); } finally { stdoutSub.cancel().ignore(); stderrSub.cancel().ignore(); @@ -167,11 +162,7 @@ final class NodeProcessManager implements Closeable, ProcessManager { } final class NodeProcess implements Process, Closeable { - NodeProcess( - this.executable, - this.arguments, - this._jsProcess, - ); + NodeProcess(this.executable, this.arguments, this._jsProcess); final String executable; final List arguments; @@ -205,11 +196,12 @@ final class NodeProcess implements Process, Closeable { await Future.any([ _jsProcess.onSpawn, _jsProcess.onError.then( - (error) => throw ProcessException( - executable, - arguments, - 'Error spawning subprocess: $error', - ), + (error) => + throw ProcessException( + executable, + arguments, + 'Error spawning subprocess: $error', + ), ), ]); } diff --git a/actions/pubspec.yaml b/actions/pubspec.yaml index 62fc4b609a..1af428d06b 100644 --- a/actions/pubspec.yaml +++ b/actions/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: aws_common: ^0.6.1 @@ -24,7 +24,7 @@ dev_dependencies: build_runner: ^2.4.9 build_test: ^2.2.0 checks: ^0.3.0 - json_serializable: 6.8.0 + json_serializable: ^6.9.4 test: ^1.22.1 aft: diff --git a/actions/test/chromedriver/chromedriver_test.g.dart b/actions/test/chromedriver/chromedriver_test.g.dart index d0f907ffa0..1282464ea3 100644 --- a/actions/test/chromedriver/chromedriver_test.g.dart +++ b/actions/test/chromedriver/chromedriver_test.g.dart @@ -17,30 +17,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '113.0.5672.35', @@ -50,30 +50,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.35/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '113.0.5672.63', @@ -83,30 +83,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/113.0.5672.63/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5696.0', @@ -116,30 +116,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5696.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5708.0', @@ -149,30 +149,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5708.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5709.0', @@ -182,30 +182,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5709.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5710.0', @@ -215,30 +215,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5710.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5711.3', @@ -248,30 +248,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5711.3/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5713.0', @@ -281,30 +281,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5713.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5715.0', @@ -314,30 +314,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5715.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5718.0', @@ -347,30 +347,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5718.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5720.4', @@ -380,30 +380,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5720.4/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5722.0', @@ -413,30 +413,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5722.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5724.0', @@ -446,30 +446,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5724.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5728.0', @@ -479,30 +479,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5728.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5732.0', @@ -512,30 +512,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5732.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5733.0', @@ -545,30 +545,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5733.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5734.0', @@ -578,30 +578,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5734.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.0', @@ -611,30 +611,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.2', @@ -644,30 +644,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.2/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.3', @@ -677,30 +677,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.3/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.6', @@ -710,30 +710,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.6/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.16', @@ -743,30 +743,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.16/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.26', @@ -776,30 +776,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.26/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.35', @@ -809,30 +809,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.35/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.45', @@ -842,30 +842,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.45/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.90', @@ -875,30 +875,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.90/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '114.0.5735.133', @@ -908,30 +908,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/114.0.5735.133/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5739.0', @@ -941,30 +941,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5739.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5740.0', @@ -974,30 +974,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5740.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5741.0', @@ -1007,30 +1007,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5741.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5742.0', @@ -1040,30 +1040,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5742.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5743.0', @@ -1073,30 +1073,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5743.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5744.0', @@ -1106,30 +1106,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5744.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5747.0', @@ -1139,30 +1139,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5747.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5749.0', @@ -1172,30 +1172,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5749.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5750.0', @@ -1205,30 +1205,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5750.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5751.0', @@ -1238,30 +1238,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5751.2', @@ -1271,30 +1271,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5751.2/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5752.2', @@ -1304,30 +1304,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5752.2/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5753.0', @@ -1337,30 +1337,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5753.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5755.0', @@ -1370,30 +1370,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5755.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5756.0', @@ -1403,30 +1403,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5756.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5757.0', @@ -1436,30 +1436,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5757.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5758.0', @@ -1469,30 +1469,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5758.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5759.0', @@ -1502,30 +1502,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5759.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5761.0', @@ -1535,30 +1535,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5761.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5762.0', @@ -1568,30 +1568,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.0/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5762.4', @@ -1601,30 +1601,30 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/win64/chrome-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5762.4/win64/chrome-win64.zip', + }, + ], + }, }, { 'version': '115.0.5763.0', @@ -1634,57 +1634,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5763.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5765.0', @@ -1694,57 +1694,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5765.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5767.0', @@ -1754,57 +1754,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5767.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5768.0', @@ -1814,57 +1814,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5768.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5769.0', @@ -1874,57 +1874,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5769.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5770.0', @@ -1934,57 +1934,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5770.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5771.0', @@ -1994,57 +1994,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5771.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5772.0', @@ -2054,57 +2054,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5772.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5773.0', @@ -2114,57 +2114,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5773.4', @@ -2174,57 +2174,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5773.4/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5776.0', @@ -2234,57 +2234,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5776.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5777.0', @@ -2294,57 +2294,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5777.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5781.0', @@ -2354,57 +2354,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5781.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5785.0', @@ -2414,57 +2414,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5785.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5789.0', @@ -2474,57 +2474,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5789.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.3', @@ -2534,57 +2534,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.3/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.13', @@ -2594,57 +2594,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.13/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.24', @@ -2654,57 +2654,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.24/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.56', @@ -2714,57 +2714,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.56/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.75', @@ -2774,57 +2774,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.75/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.90', @@ -2834,57 +2834,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.90/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.98', @@ -2894,57 +2894,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.98/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.102', @@ -2954,57 +2954,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.102/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '115.0.5790.170', @@ -3014,57 +3014,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/115.0.5790.170/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5791.0', @@ -3074,57 +3074,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5791.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5793.0', @@ -3134,57 +3134,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5793.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5794.0', @@ -3194,57 +3194,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5794.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5795.0', @@ -3254,57 +3254,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5795.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5796.0', @@ -3314,57 +3314,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5796.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5797.0', @@ -3374,57 +3374,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5797.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5798.0', @@ -3434,57 +3434,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5798.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5799.0', @@ -3494,57 +3494,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5799.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5800.0', @@ -3554,57 +3554,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5800.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5801.0', @@ -3614,57 +3614,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5801.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5802.0', @@ -3674,57 +3674,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5802.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5803.2', @@ -3734,57 +3734,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5803.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5804.0', @@ -3794,57 +3794,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5804.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5805.0', @@ -3854,57 +3854,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5805.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5806.0', @@ -3914,57 +3914,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5806.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5807.0', @@ -3974,57 +3974,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5807.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5808.0', @@ -4034,57 +4034,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5808.2', @@ -4094,57 +4094,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5808.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5809.0', @@ -4154,57 +4154,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5809.2', @@ -4214,57 +4214,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5809.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5810.0', @@ -4274,57 +4274,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5810.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5812.0', @@ -4334,57 +4334,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5812.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5815.0', @@ -4394,57 +4394,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5815.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5816.0', @@ -4454,57 +4454,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5816.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5817.0', @@ -4514,57 +4514,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5817.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5818.0', @@ -4574,57 +4574,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5818.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5825.0', @@ -4634,57 +4634,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5825.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5827.0', @@ -4694,57 +4694,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5827.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5828.0', @@ -4754,57 +4754,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5828.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5829.0', @@ -4814,57 +4814,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5829.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5832.0', @@ -4874,57 +4874,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5832.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5835.0', @@ -4934,57 +4934,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5835.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5839.0', @@ -4994,57 +4994,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5839.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5840.0', @@ -5054,57 +5054,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5840.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5841.0', @@ -5114,57 +5114,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5841.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5842.0', @@ -5174,57 +5174,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5842.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5843.0', @@ -5234,57 +5234,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5843.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5844.0', @@ -5294,57 +5294,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5844.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.0', @@ -5354,57 +5354,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.2', @@ -5414,57 +5414,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.3', @@ -5474,57 +5474,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.3/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.4', @@ -5534,57 +5534,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.4/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.14', @@ -5594,57 +5594,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.14/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.32', @@ -5654,57 +5654,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.32/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.42', @@ -5714,57 +5714,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.42/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '116.0.5845.49', @@ -5774,57 +5774,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.49/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5846.0', @@ -5834,57 +5834,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5846.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5847.0', @@ -5894,57 +5894,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5847.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5848.2', @@ -5954,57 +5954,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5848.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5849.2', @@ -6014,57 +6014,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5849.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5851.0', @@ -6074,57 +6074,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5851.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5853.0', @@ -6134,57 +6134,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5853.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5854.0', @@ -6194,57 +6194,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5854.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5855.0', @@ -6254,57 +6254,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5855.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5857.0', @@ -6314,57 +6314,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5857.2', @@ -6374,57 +6374,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5857.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5858.0', @@ -6434,57 +6434,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5858.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5859.0', @@ -6494,57 +6494,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5859.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5860.2', @@ -6554,57 +6554,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5860.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5863.0', @@ -6614,57 +6614,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5863.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5864.0', @@ -6674,57 +6674,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5864.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5865.0', @@ -6734,57 +6734,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5865.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5866.0', @@ -6794,57 +6794,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5866.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5867.0', @@ -6854,57 +6854,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5867.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5869.0', @@ -6914,57 +6914,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5869.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5870.0', @@ -6974,57 +6974,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5870.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5871.0', @@ -7034,57 +7034,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5871.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5872.0', @@ -7094,57 +7094,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5872.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5873.0', @@ -7154,57 +7154,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5873.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5874.0', @@ -7214,57 +7214,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5874.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5875.0', @@ -7274,57 +7274,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5875.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5876.0', @@ -7334,57 +7334,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5876.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5877.0', @@ -7394,57 +7394,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5877.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5878.0', @@ -7454,57 +7454,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5878.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5879.0', @@ -7514,57 +7514,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5879.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5880.4', @@ -7574,57 +7574,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5880.4/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5881.0', @@ -7634,57 +7634,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5881.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5882.0', @@ -7694,57 +7694,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5882.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5883.0', @@ -7754,57 +7754,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5883.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5884.0', @@ -7814,57 +7814,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5884.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5885.0', @@ -7874,57 +7874,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5885.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5886.0', @@ -7934,57 +7934,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5886.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5887.0', @@ -7994,57 +7994,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5887.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5888.0', @@ -8054,57 +8054,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5888.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5889.0', @@ -8114,57 +8114,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5889.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5890.0', @@ -8174,57 +8174,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5890.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5892.0', @@ -8234,57 +8234,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5892.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5893.0', @@ -8294,57 +8294,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5893.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5894.0', @@ -8354,57 +8354,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5894.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5895.0', @@ -8414,57 +8414,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5895.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5896.0', @@ -8474,57 +8474,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5896.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5897.0', @@ -8534,57 +8534,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5897.3', @@ -8594,57 +8594,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5897.3/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5898.0', @@ -8654,57 +8654,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5898.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5899.0', @@ -8714,57 +8714,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5899.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5900.0', @@ -8774,57 +8774,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5900.2', @@ -8834,57 +8834,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5900.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5901.0', @@ -8894,57 +8894,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5901.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5902.0', @@ -8954,57 +8954,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5902.2', @@ -9014,57 +9014,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5902.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5903.2', @@ -9074,57 +9074,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5903.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5904.0', @@ -9134,57 +9134,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5904.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5905.0', @@ -9194,57 +9194,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5905.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5906.0', @@ -9254,57 +9254,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5906.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5907.0', @@ -9314,57 +9314,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5907.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5908.0', @@ -9374,57 +9374,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5908.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5910.0', @@ -9434,57 +9434,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5910.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5911.0', @@ -9494,57 +9494,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5911.2', @@ -9554,57 +9554,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5911.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5912.0', @@ -9614,57 +9614,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5912.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5914.0', @@ -9674,57 +9674,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5914.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5915.0', @@ -9734,57 +9734,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5915.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5916.0', @@ -9794,57 +9794,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5916.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5917.0', @@ -9854,57 +9854,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5917.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5918.0', @@ -9914,57 +9914,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5918.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5920.0', @@ -9974,57 +9974,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5920.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5922.0', @@ -10034,57 +10034,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5922.2', @@ -10094,57 +10094,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5922.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5923.0', @@ -10154,57 +10154,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5923.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5924.2', @@ -10214,57 +10214,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5924.2/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5925.0', @@ -10274,57 +10274,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win64/chromedriver-win64.zip' - } - ] - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5925.0/win64/chromedriver-win64.zip', + }, + ], + }, }, { 'version': '117.0.5926.0', @@ -10334,57 +10334,57 @@ final _$testDownloadsJsonLiteral = { { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/linux64/chrome-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/linux64/chrome-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-arm64/chrome-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-arm64/chrome-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-x64/chrome-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-x64/chrome-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win32/chrome-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win32/chrome-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win64/chrome-win64.zip' - } + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win64/chrome-win64.zip', + }, ], 'chromedriver': [ { 'platform': 'linux64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/linux64/chromedriver-linux64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/linux64/chromedriver-linux64.zip', }, { 'platform': 'mac-arm64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-arm64/chromedriver-mac-arm64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-arm64/chromedriver-mac-arm64.zip', }, { 'platform': 'mac-x64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-x64/chromedriver-mac-x64.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/mac-x64/chromedriver-mac-x64.zip', }, { 'platform': 'win32', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win32/chromedriver-win32.zip' + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win32/chromedriver-win32.zip', }, { 'platform': 'win64', 'url': - 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win64/chromedriver-win64.zip' - } - ] - } - } - ] + 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/117.0.5926.0/win64/chromedriver-win64.zip', + }, + ], + }, + }, + ], }; diff --git a/actions/test/node/interop_test.dart b/actions/test/node/interop_test.dart index 6b385aec3b..43e168f896 100644 --- a/actions/test/node/interop_test.dart +++ b/actions/test/node/interop_test.dart @@ -39,15 +39,18 @@ void main() { test('execSync', () { check(childProcess.execSync('echo', ['Hello'])) ..has((res) => res.exitCode, 'exitCode').equals(0) - ..has((res) => res.stdout as Uint8List, 'stdout') - .deepEquals(utf8.encode('Hello\n')); + ..has( + (res) => res.stdout as Uint8List, + 'stdout', + ).deepEquals(utf8.encode('Hello\n')); }); test('exec', () async { await check(childProcess.exec('echo', ['Hello'])).completes( - (it) => it - ..has((res) => res.exitCode, 'exitCode').equals(0) - ..has((res) => res.stdout, 'stdout').equals('Hello\n'), + (it) => + it + ..has((res) => res.exitCode, 'exitCode').equals(0) + ..has((res) => res.stdout, 'stdout').equals('Hello\n'), ); }); @@ -56,15 +59,10 @@ void main() { unawaited( expectLater( proc.stdout!.stream.map(String.fromCharCodes), - emitsInOrder([ - 'Hello\n', - emitsDone, - ]), + emitsInOrder(['Hello\n', emitsDone]), ), ); - unawaited( - check(proc.stderr!.stream).withQueue.isDone(), - ); + unawaited(check(proc.stderr!.stream).withQueue.isDone()); unawaited( check((proc.onClose, proc.onExit).wait).completes( (it) => it..has((res) => res.$2.toDartInt, 'exitCode').equals(0), @@ -76,23 +74,14 @@ void main() { test('spawn (pipe)', () async { final echo = childProcess.spawn('echo', ['Hello']); - final proc = childProcess.spawn( - 'tee', - [], - stdin: echo.stdout, - ); + final proc = childProcess.spawn('tee', [], stdin: echo.stdout); unawaited( expectLater( proc.stdout!.stream.map(String.fromCharCodes), - emitsInOrder([ - 'Hello\n', - emitsDone, - ]), + emitsInOrder(['Hello\n', emitsDone]), ), ); - unawaited( - check(proc.stderr!.stream).withQueue.isDone(), - ); + unawaited(check(proc.stderr!.stream).withQueue.isDone()); unawaited( check((proc.onClose, proc.onExit).wait).completes( (it) => it..has((res) => res.$2.toDartInt, 'exitCode').equals(0), diff --git a/actions/test/node/process_manager_test.dart b/actions/test/node/process_manager_test.dart index 061c2bd7af..d837a1b047 100644 --- a/actions/test/node/process_manager_test.dart +++ b/actions/test/node/process_manager_test.dart @@ -28,18 +28,20 @@ void main() { group('run', () { test('echo', () async { await check(processManager.run(['echo', 'Hello'])).completes( - (it) => it - ..has((res) => res.exitCode, 'exitCode').equals(0) - ..has((res) => res.stdout, 'stdout').equals('Hello\n'), + (it) => + it + ..has((res) => res.exitCode, 'exitCode').equals(0) + ..has((res) => res.stdout, 'stdout').equals('Hello\n'), ); }); test('pipe', () async { final echo = childProcess.spawn('echo', ['Hello']); await check(processManager.run(['tee'], pipe: echo)).completes( - (it) => it - ..has((res) => res.exitCode, 'exitCode').equals(0) - ..has((res) => res.stdout, 'stdout').equals('Hello\n'), + (it) => + it + ..has((res) => res.exitCode, 'exitCode').equals(0) + ..has((res) => res.stdout, 'stdout').equals('Hello\n'), ); }); }); @@ -47,10 +49,10 @@ void main() { group('start', () { for (final mode in ProcessStartMode.values) { test(mode.toString(), () async { - final proc = await processManager.start( - ['echo', 'Hello'], - mode: mode, - ); + final proc = await processManager.start([ + 'echo', + 'Hello', + ], mode: mode); unawaited( expectLater( proc.stdout.map(String.fromCharCodes), @@ -62,9 +64,7 @@ void main() { ]), ), ); - unawaited( - check(proc.stderr).withQueue.isDone(), - ); + unawaited(check(proc.stderr).withQueue.isDone()); check(proc.pid).isGreaterThan(0); await check(proc.exitCode).completes((it) => it..equals(0)); }); @@ -76,10 +76,7 @@ void main() { unawaited( expectLater( proc.stdout.map(String.fromCharCodes), - emitsInOrder([ - 'Hello\n', - emitsDone, - ]), + emitsInOrder(['Hello\n', emitsDone]), ), ); unawaited(check(proc.stderr).withQueue.isDone()); diff --git a/actions/tool/build.dart b/actions/tool/build.dart index cba0f46f91..4e39c87cb5 100755 --- a/actions/tool/build.dart +++ b/actions/tool/build.dart @@ -11,25 +11,20 @@ import 'package:path/path.dart' as p; // using the accompanying `.yaml` file as the GH action descriptor. Future main() async { final rootDir = Directory.fromUri(Platform.script.resolve('..')); - final binDir = Directory.fromUri( - Platform.script.resolve('../bin'), - ); + final binDir = Directory.fromUri(Platform.script.resolve('../bin')); final actions = binDir .listSync() .whereType() .where((f) => f.path.endsWith('.dart')) .map((f) { - final yaml = File( - p.join( - binDir.path, - '${p.basenameWithoutExtension(f.path)}.yaml', - ), - ); - if (!yaml.existsSync()) { - throw Exception('No YAML found for entrypoint: ${f.path}'); - } - return (entrypoint: f, yaml: yaml); - }); + final yaml = File( + p.join(binDir.path, '${p.basenameWithoutExtension(f.path)}.yaml'), + ); + if (!yaml.existsSync()) { + throw Exception('No YAML found for entrypoint: ${f.path}'); + } + return (entrypoint: f, yaml: yaml); + }); final actionsDir = Directory.fromUri( Platform.script.resolve('../../.github/composite_actions'), @@ -49,36 +44,35 @@ Future main() async { stdout.writeln('Compiling ${entrypoint.path}...'); final compiledJs = p.join(distDir.path, 'main.cjs'); - final compileRes = runProcess( - 'dart', - [ - 'compile', - 'js', - '--enable-experiment=inline-class', - '--server-mode', - '-o', - compiledJs, - entrypoint.path, - ], - workingDirectory: rootDir.path, - ); + final compileRes = runProcess('dart', [ + 'compile', + 'js', + '--enable-experiment=inline-class', + '--server-mode', + '-o', + compiledJs, + entrypoint.path, + ], workingDirectory: rootDir.path); if (!compileRes) { throw Exception('Failed to compile ${entrypoint.path}'); } stdout.writeln('Successfully compiled ${entrypoint.path} to $compiledJs'); // Copy over NPM project and init. - File(p.join(rootDir.path, 'package.json')) - .copySync(p.join(temp.path, 'package.json')); - File(p.join(rootDir.path, 'pnpm-lock.yaml')) - .copySync(p.join(temp.path, 'pnpm-lock.yaml')); + File( + p.join(rootDir.path, 'package.json'), + ).copySync(p.join(temp.path, 'package.json')); + File( + p.join(rootDir.path, 'pnpm-lock.yaml'), + ).copySync(p.join(temp.path, 'pnpm-lock.yaml')); if (!runProcess('pnpm', ['install'], workingDirectory: temp.path)) { throw Exception('Could not install NPM modules'); } // Build project using `ncc` - File(p.join(rootDir.path, 'lib', 'bootstrap.mjs')) - .copySync(p.join(temp.path, 'main.mjs')); + File( + p.join(rootDir.path, 'lib', 'bootstrap.mjs'), + ).copySync(p.join(temp.path, 'main.mjs')); if (!runProcess('pnpm', ['run', 'build'], workingDirectory: temp.path)) { throw Exception('Could not bundle project'); } diff --git a/build-support/build_canary.sh b/build-support/build_canary.sh index e8c86a29a6..98ee99b3ec 100755 --- a/build-support/build_canary.sh +++ b/build-support/build_canary.sh @@ -27,7 +27,7 @@ cp $ROOT_DIR/build-support/dummy_amplifyconfiguration.dart lib/amplifyconfigurat # Flutter >=3.29.0 if [ -e ./android/settings.gradle.kts ] then - sed -i '' -e "s/id(\"com.android.application\") .*/id(\"com.android.application\") version \"8.1.0\" apply false/" ./android/settings.gradle.kts + sed -i '' -e "s/id(\"com.android.application\") .*/id(\"com.android.application\") version \"8.3.0\" apply false/" ./android/settings.gradle.kts sed -i '' -e "s/id(\"org.jetbrains.kotlin.android\") .*/id(\"org.jetbrains.kotlin.android\") version \"1.9.10\" apply false/" ./android/settings.gradle.kts cat ./android/settings.gradle.kts @@ -55,7 +55,7 @@ then cat ./android/gradle/wrapper/gradle-wrapper.properties # Flutter <3.29.0 (delete this else block when min Flutter SDK is bumped to 3.29.0 or higher) else - sed -i '' -e "s/id \"com.android.application\" .*/id \"com.android.application\" version \"8.1.0\" apply false/" ./android/settings.gradle + sed -i '' -e "s/id \"com.android.application\" .*/id \"com.android.application\" version \"8.3.0\" apply false/" ./android/settings.gradle sed -i '' -e "s/id \"org.jetbrains.kotlin.android\" .*/id \"org.jetbrains.kotlin.android\" version \"1.9.10\" apply false/" ./android/settings.gradle cat ./android/settings.gradle diff --git a/canaries/.gitignore b/canaries/.gitignore index c0ff8e3dda..b88359c322 100644 --- a/canaries/.gitignore +++ b/canaries/.gitignore @@ -9,6 +9,7 @@ .history .svn/ migrate_working_dir/ +**/.cxx # IntelliJ related *.iml diff --git a/canaries/android/app/build.gradle b/canaries/android/app/build.gradle index af83e55636..a122f521d6 100644 --- a/canaries/android/app/build.gradle +++ b/canaries/android/app/build.gradle @@ -29,6 +29,8 @@ android { ndkVersion = flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } @@ -60,3 +62,7 @@ android { flutter { source = "../.." } + +dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.0' +} diff --git a/canaries/android/gradle/wrapper/gradle-wrapper.properties b/canaries/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/canaries/android/gradle/wrapper/gradle-wrapper.properties +++ b/canaries/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/canaries/android/settings.gradle b/canaries/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/canaries/android/settings.gradle +++ b/canaries/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/canaries/integration_test/main_test.dart b/canaries/integration_test/main_test.dart index 68d41aff73..169c787ab8 100644 --- a/canaries/integration_test/main_test.dart +++ b/canaries/integration_test/main_test.dart @@ -54,17 +54,12 @@ void main() { // Perform DataStore operation (local save) final dsTodo = Todo(name: 'test', owner: 'test'); - await expectLater( - Amplify.DataStore.save(dsTodo), - completes, - ); + await expectLater(Amplify.DataStore.save(dsTodo), completes); } Future performAuthenticatedActions() async { // Retrieve guest data - final guestData = await Amplify.Storage.downloadData( - path: path, - ).result; + final guestData = await Amplify.Storage.downloadData(path: path).result; expect(utf8.decode(guestData.bytes), data); // Upload data to Storage @@ -93,8 +88,11 @@ void main() { final expectation = expectLater( subscription, emitsThrough( - isA>() - .having((event) => event.item.name, 'name', 'test'), + isA>().having( + (event) => event.item.name, + 'name', + 'test', + ), ), ); await Amplify.DataStore.save(dsTodo); @@ -133,8 +131,9 @@ void main() { final passwordField = find.byKey(keys.keyPasswordSignUpFormField); await tester.ensureVisible(passwordField); await tester.enterText(passwordField, password); - final confirmPasswordField = - find.byKey(keys.keyPasswordConfirmationSignUpFormField); + final confirmPasswordField = find.byKey( + keys.keyPasswordConfirmationSignUpFormField, + ); await tester.ensureVisible(confirmPasswordField); await tester.enterText(confirmPasswordField, password); diff --git a/canaries/lib/main.dart b/canaries/lib/main.dart index 6f8ed388e1..6f416c0a66 100644 --- a/canaries/lib/main.dart +++ b/canaries/lib/main.dart @@ -23,9 +23,7 @@ Future main() async { AmplifyAPI( options: APIPluginOptions(modelProvider: ModelProvider.instance), ), - AmplifyDataStore( - modelProvider: ModelProvider.instance, - ), + AmplifyDataStore(modelProvider: ModelProvider.instance), ]); await Amplify.configure(amplifyconfig); safePrint('Successfully configured Amplify.'); @@ -40,9 +38,7 @@ class MyApp extends StatelessWidget { return Authenticator( child: MaterialApp( title: 'Amplify Flutter Canary', - theme: ThemeData( - primarySwatch: Colors.blue, - ), + theme: ThemeData(primarySwatch: Colors.blue), builder: Authenticator.builder(), home: const MyHomePage(), ), @@ -56,12 +52,8 @@ class MyHomePage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Amplify Flutter Canary'), - ), - body: const Center( - child: Text('Signed in'), - ), + appBar: AppBar(title: const Text('Amplify Flutter Canary')), + body: const Center(child: Text('Signed in')), ); } } diff --git a/canaries/lib/models/ModelProvider.dart b/canaries/lib/models/ModelProvider.dart index a08cbe5011..277653a8ac 100644 --- a/canaries/lib/models/ModelProvider.dart +++ b/canaries/lib/models/ModelProvider.dart @@ -41,8 +41,8 @@ class ModelProvider implements ModelProviderInterface { return Todo.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/canaries/lib/models/Todo.dart b/canaries/lib/models/Todo.dart index 864767a4d6..f1b7c2c0ae 100644 --- a/canaries/lib/models/Todo.dart +++ b/canaries/lib/models/Todo.dart @@ -37,7 +37,8 @@ class Todo extends Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -50,11 +51,12 @@ class Todo extends Model { return _name!; } catch (e) { throw new AmplifyCodeGenModelException( - AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + AmplifyExceptionMessages.codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -67,11 +69,12 @@ class Todo extends Model { return _owner!; } catch (e) { throw new AmplifyCodeGenModelException( - AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + AmplifyExceptionMessages.codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -83,29 +86,31 @@ class Todo extends Model { return _updatedAt; } - const Todo._internal( - {required this.id, - required name, - description, - required owner, - createdAt, - updatedAt}) - : _name = name, - _description = description, - _owner = owner, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Todo( - {String? id, - required String name, - String? description, - required String owner}) { + const Todo._internal({ + required this.id, + required name, + description, + required owner, + createdAt, + updatedAt, + }) : _name = name, + _description = description, + _owner = owner, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Todo({ + String? id, + required String name, + String? description, + required String owner, + }) { return Todo._internal( - id: id == null ? UUID.getUUID() : id, - name: name, - description: description, - owner: owner); + id: id == null ? UUID.getUUID() : id, + name: name, + description: description, + owner: owner, + ); } bool equals(Object other) { @@ -134,11 +139,14 @@ class Todo extends Model { buffer.write("name=" + "$_name" + ", "); buffer.write("description=" + "$_description" + ", "); buffer.write("owner=" + "$_owner" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -146,41 +154,44 @@ class Todo extends Model { Todo copyWith({String? name, String? description, String? owner}) { return Todo._internal( - id: id, - name: name ?? this.name, - description: description ?? this.description, - owner: owner ?? this.owner); + id: id, + name: name ?? this.name, + description: description ?? this.description, + owner: owner ?? this.owner, + ); } Todo.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _description = json['description'], - _owner = json['owner'], - _createdAt = json['createdAt'] != null - ? TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _description = json['description'], + _owner = json['owner'], + _createdAt = + json['createdAt'] != null + ? TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'description': _description, - 'owner': _owner, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'description': _description, + 'owner': _owner, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'description': _description, - 'owner': _owner, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'description': _description, + 'owner': _owner, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final QueryModelIdentifier MODEL_IDENTIFIER = QueryModelIdentifier(); @@ -188,13 +199,13 @@ class Todo extends Model { static final QueryField NAME = QueryField(fieldName: "name"); static final QueryField DESCRIPTION = QueryField(fieldName: "description"); static final QueryField OWNER = QueryField(fieldName: "owner"); - static var schema = - Model.defineSchema(define: (ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Todo"; - modelSchemaDefinition.pluralName = "Todos"; + static var schema = Model.defineSchema( + define: (ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Todo"; + modelSchemaDefinition.pluralName = "Todos"; - modelSchemaDefinition.authRules = [ - AuthRule( + modelSchemaDefinition.authRules = [ + AuthRule( authStrategy: AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -203,39 +214,56 @@ class Todo extends Model { ModelOperation.CREATE, ModelOperation.UPDATE, ModelOperation.DELETE, - ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.addField(ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(ModelFieldDefinition.field( - key: Todo.NAME, - isRequired: true, - ofType: ModelFieldType(ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(ModelFieldDefinition.field( - key: Todo.DESCRIPTION, - isRequired: false, - ofType: ModelFieldType(ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(ModelFieldDefinition.field( - key: Todo.OWNER, - isRequired: true, - ofType: ModelFieldType(ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: ModelFieldType(ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: ModelFieldType(ModelFieldTypeEnum.dateTime))); - }); + ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.addField(ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + ModelFieldDefinition.field( + key: Todo.NAME, + isRequired: true, + ofType: ModelFieldType(ModelFieldTypeEnum.string), + ), + ); + + modelSchemaDefinition.addField( + ModelFieldDefinition.field( + key: Todo.DESCRIPTION, + isRequired: false, + ofType: ModelFieldType(ModelFieldTypeEnum.string), + ), + ); + + modelSchemaDefinition.addField( + ModelFieldDefinition.field( + key: Todo.OWNER, + isRequired: true, + ofType: ModelFieldType(ModelFieldTypeEnum.string), + ), + ); + + modelSchemaDefinition.addField( + ModelFieldDefinition.nonQueryField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: ModelFieldType(ModelFieldTypeEnum.dateTime), + ), + ); + + modelSchemaDefinition.addField( + ModelFieldDefinition.nonQueryField( + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: ModelFieldType(ModelFieldTypeEnum.dateTime), + ), + ); + }, + ); } class _TodoModelType extends ModelType { @@ -267,10 +295,10 @@ class TodoModelIdentifier implements ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/canaries/pubspec.yaml b/canaries/pubspec.yaml index e1b9aeaa01..fbf3bed058 100644 --- a/canaries/pubspec.yaml +++ b/canaries/pubspec.yaml @@ -1,9 +1,11 @@ name: amplified_todo publish_to: none +version: 1.0.0+0 + environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_analytics_pinpoint: ^2.0.0 @@ -17,7 +19,7 @@ dependencies: sdk: flutter dev_dependencies: - amplify_lints: ^2.0.3 + amplify_lints: ^3.1.0 flutter_test: sdk: flutter integration_test: diff --git a/infra-gen2/package-lock.json b/infra-gen2/package-lock.json index d70b2e0887..382a894abe 100644 --- a/infra-gen2/package-lock.json +++ b/infra-gen2/package-lock.json @@ -17,12 +17,12 @@ "infra-common": "1.0.0" }, "devDependencies": { - "@aws-amplify/backend": "^1.6.2", - "@aws-amplify/backend-cli": "^1.4.1", - "@aws-crypto/client-node": "^4.0.0", - "@aws-sdk/client-cognito-identity-provider": "^3.614.0", - "aws-cdk": "^2.150.0", - "aws-cdk-lib": "^2.177.0", + "@aws-amplify/backend": "^1.15.0", + "@aws-amplify/backend-cli": "^1.5.0", + "@aws-crypto/client-node": "^4.2.0", + "@aws-sdk/client-cognito-identity-provider": "^3.775.0", + "aws-cdk": "^2.1006.0", + "aws-cdk-lib": "^2.186.0", "constructs": "^10.3.0", "esbuild": "^0.25.0", "tsx": "^4.16.2", @@ -30,7 +30,6 @@ } }, "backends/analytics/main": { - "name": "analytics-main", "version": "1.0.0" }, "backends/analytics/no-unauth-access": { @@ -89,7 +88,6 @@ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -103,7 +101,6 @@ "resolved": "https://registry.npmjs.org/@ardatan/aggregate-error/-/aggregate-error-0.0.6.tgz", "integrity": "sha512-vyrkEHG1jrukmzTPtyWB4NLPauUw5bQeg4uhn8f+1SSynmrOcyvlb1GKQjjgoBzElLdfXCRYX8UnBlhklOHYRQ==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "~2.0.1" }, @@ -115,15 +112,13 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@ardatan/relay-compiler": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz", "integrity": "sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.14.0", "@babel/generator": "^7.14.0", @@ -151,14 +146,13 @@ } }, "node_modules/@ardatan/relay-compiler/node_modules/@babel/generator": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.2.tgz", - "integrity": "sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.26.2", - "@babel/types": "^7.26.0", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^3.0.2" @@ -168,11 +162,10 @@ } }, "node_modules/@ardatan/relay-compiler/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -186,18 +179,25 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, + "node_modules/@ardatan/relay-compiler/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@ardatan/relay-compiler/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -214,19 +214,20 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^6.2.0" } }, - "node_modules/@ardatan/relay-compiler/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/@ardatan/relay-compiler/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.10.0" + } }, "node_modules/@ardatan/relay-compiler/node_modules/glob": { "version": "7.2.3", @@ -234,7 +235,6 @@ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -251,11 +251,10 @@ } }, "node_modules/@ardatan/relay-compiler/node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -268,7 +267,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -276,16 +274,15 @@ "node": "*" } }, - "node_modules/@ardatan/relay-compiler/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/@ardatan/relay-compiler/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { "node": ">=8" @@ -295,15 +292,13 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/@ardatan/relay-compiler/node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -326,7 +321,6 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -335,45 +329,10 @@ "node": ">=6" } }, - "node_modules/@ardatan/sync-fetch": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz", - "integrity": "sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA==", - "dev": true, - "license": "MIT", - "dependencies": { - "node-fetch": "^2.6.1" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@ardatan/sync-fetch/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/@aws-amplify/analytics": { - "version": "7.0.48", - "resolved": "https://registry.npmjs.org/@aws-amplify/analytics/-/analytics-7.0.48.tgz", - "integrity": "sha512-1DJyIeaw4nZS1qS5w3+9WoCsRqOTiqLth1lzOvPo1F07RUB33v1stK775uqV2S9w738R+fSaaMx3dd6UiDfHxA==", - "license": "Apache-2.0", + "version": "7.0.76", + "resolved": "https://registry.npmjs.org/@aws-amplify/analytics/-/analytics-7.0.76.tgz", + "integrity": "sha512-QAbG7mL9bC1O6YmUDwoYMspUQkK49IZiZPHBn0Kp7zd9OvcWovvWL7G3lo+AT2pm7slugxnoxhkcp7dt3S/SJg==", "dependencies": { "@aws-sdk/client-firehose": "3.621.0", "@aws-sdk/client-kinesis": "3.621.0", @@ -389,7 +348,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -401,7 +359,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", - "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^2.2.0", "tslib": "^2.6.2" @@ -414,7 +371,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.0.tgz", "integrity": "sha512-rctU1VkziY84n5OXe3bPNpKR001ZCME2JCaBBFgtiM2hfKbHFudc/BkMuPab8hRbLd0j3vbnBTTZ1igBf0wgiQ==", - "license": "Apache-2.0", "dependencies": { "@smithy/util-buffer-from": "^2.0.0", "tslib": "^2.5.0" @@ -424,25 +380,28 @@ } }, "node_modules/@aws-amplify/api": { - "version": "6.0.50", - "resolved": "https://registry.npmjs.org/@aws-amplify/api/-/api-6.0.50.tgz", - "integrity": "sha512-VMV+KFnfMevNj+nv32vbWcOVgypFG6umLoJW3tW1TP10l/fsB8uFXK5I6AMU32wDSjYQTWraA2w8rcYwckh4gw==", - "license": "Apache-2.0", + "version": "6.3.7", + "resolved": "https://registry.npmjs.org/@aws-amplify/api/-/api-6.3.7.tgz", + "integrity": "sha512-bmPnC6hHz6GXspkas5qkxutWsTVWzrhDBsGU3YtoUNyaX+i1K6Z6peN9cWJq2Lx72JUxTc7jgutAUAvJ8iLxSA==", "dependencies": { - "@aws-amplify/api-graphql": "4.3.1", - "@aws-amplify/api-rest": "4.0.48", + "@aws-amplify/api-graphql": "4.7.11", + "@aws-amplify/api-rest": "4.1.0", + "@aws-amplify/data-schema": "^1.7.0", + "rxjs": "^7.8.1", "tslib": "^2.5.0" + }, + "peerDependencies": { + "@aws-amplify/core": "^6.1.0" } }, "node_modules/@aws-amplify/api-graphql": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/api-graphql/-/api-graphql-4.3.1.tgz", - "integrity": "sha512-vxlHpLzng37B1sgrQCRs54jvv7mdyMihBAcc2SYvMWcZjVBn0ll0Iqv0nSvK4Svi7SwuSnWBQc2edAxGao1hIQ==", - "license": "Apache-2.0", + "version": "4.7.11", + "resolved": "https://registry.npmjs.org/@aws-amplify/api-graphql/-/api-graphql-4.7.11.tgz", + "integrity": "sha512-FXxU430K8HXShCJj+bReDd8BpC4DZEO5QJ5P4aj2aJORFml7vkdGazHc10ceL1W+E0ozUzMoc+ILXntK5F5sRQ==", "dependencies": { - "@aws-amplify/api-rest": "4.0.48", - "@aws-amplify/core": "6.4.1", - "@aws-amplify/data-schema": "^1.5.0", + "@aws-amplify/api-rest": "4.1.0", + "@aws-amplify/core": "6.11.0", + "@aws-amplify/data-schema": "^1.7.0", "@aws-sdk/types": "3.387.0", "graphql": "15.8.0", "rxjs": "^7.8.1", @@ -454,7 +413,6 @@ "version": "3.387.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.387.0.tgz", "integrity": "sha512-YTjFabNwjTF+6yl88f0/tWff018qmmgMmjlw45s6sdVKueWxdxV68U7gepNLF2nhaQPZa6FDOBoA51NaviVs0Q==", - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^2.1.0", "tslib": "^2.5.0" @@ -467,7 +425,6 @@ "version": "2.12.0", "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -475,11 +432,18 @@ "node": ">=14.0.0" } }, + "node_modules/@aws-amplify/api-graphql/node_modules/graphql": { + "version": "15.8.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", + "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/@aws-amplify/api-rest": { - "version": "4.0.48", - "resolved": "https://registry.npmjs.org/@aws-amplify/api-rest/-/api-rest-4.0.48.tgz", - "integrity": "sha512-VVzf4h72eAKO5pyqx4Y+vYYAJpU643lSZ/CEG9vPGPdv2ZjLJpzetqgbKbQLlgT96kk6IjWOE1Ydc8FTeTzSwQ==", - "license": "Apache-2.0", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/api-rest/-/api-rest-4.1.0.tgz", + "integrity": "sha512-M8CKlDA2/gPw1t7rZABpqKqldCWTH7qcdiVd7pR3X8zMyHvHno0YKc5YdPi5QbDDiMgJAEpjNSBOKETty6Teig==", "dependencies": { "tslib": "^2.5.0" }, @@ -488,11 +452,10 @@ } }, "node_modules/@aws-amplify/appsync-modelgen-plugin": { - "version": "2.15.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/appsync-modelgen-plugin/-/appsync-modelgen-plugin-2.15.0.tgz", - "integrity": "sha512-k3hU3ZPXcxQgUB1I8mQ7+5zCTU2KCL43U4R/LbNAdGlXzDy0T2tppWJxobxRE+9K3+wtiYBeivtGzc7EmrveWw==", + "version": "2.15.2", + "resolved": "https://registry.npmjs.org/@aws-amplify/appsync-modelgen-plugin/-/appsync-modelgen-plugin-2.15.2.tgz", + "integrity": "sha512-ZUnp+g7a/RZJGRygquPhZWO4E9KjOPj5ARwhkiOHXp2XffYNy4VkjFYJjmufNnURp54awSYV09aHsjj2tW0Dhw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.1", "@graphql-codegen/visitor-plugin-common": "^1.22.0", @@ -510,11 +473,12 @@ } }, "node_modules/@aws-amplify/auth": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/auth/-/auth-6.4.1.tgz", - "integrity": "sha512-kSDMzDKcOeMo69mR7PWPUvNrFq5EWn2T+bTB4w0btS/MkYKuAepEs/lSDizpDx0qqvNUF+FSjLH2fK3KGerzKw==", - "license": "Apache-2.0", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/auth/-/auth-6.12.0.tgz", + "integrity": "sha512-HkhJ7qKGNsnt8v8ut5LBRPQY9tC8qcDhSf5TqletvLyOhapeyWFN4R/cqQCyGyT89uHlQ6LhlBeRq5CvyEhetw==", "dependencies": { + "@aws-crypto/sha256-js": "5.2.0", + "@smithy/types": "^3.3.0", "tslib": "^2.5.0" }, "peerDependencies": { @@ -522,83 +486,93 @@ } }, "node_modules/@aws-amplify/auth-construct": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/auth-construct/-/auth-construct-1.4.0.tgz", - "integrity": "sha512-xCNIP4b5jehlgkC73otNxZh8iYqdlVzNEJ5j3blHRgdETab/1knEV+rxY0Dd5wYts0we0+MvsSaX+4d8VNphyA==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/auth-construct/-/auth-construct-1.7.0.tgz", + "integrity": "sha512-L4g9thanaBT44gqbzQhAaYSyFwEL9utC1wAo/aiV1NmyhFCj4aQcCb8/+XTKrHx27cIbH/XbjiBlbnz/PVb3bA==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.4.0", - "@aws-amplify/backend-output-storage": "^1.1.3", - "@aws-amplify/plugin-types": "^1.3.1", - "@aws-sdk/util-arn-parser": "^3.568.0" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/util-arn-parser": "^3.723.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, - "node_modules/@aws-amplify/backend": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend/-/backend-1.6.2.tgz", - "integrity": "sha512-4eR64t91q5cqYzH49Ft8CmMq3otYJ9NgqI5S35pWod14HxaumpuPTC8s10QSL6JX4HMhSLE1Yat+0yq3HEwl/g==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-amplify/auth/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dependencies": { - "@aws-amplify/backend-auth": "^1.3.0", - "@aws-amplify/backend-data": "^1.1.7", - "@aws-amplify/backend-function": "^1.7.4", - "@aws-amplify/backend-output-schemas": "^1.4.0", - "@aws-amplify/backend-output-storage": "^1.1.3", - "@aws-amplify/backend-secret": "^1.1.4", - "@aws-amplify/backend-storage": "^1.2.2", - "@aws-amplify/client-config": "^1.5.2", - "@aws-amplify/data-schema": "^1.0.0", - "@aws-amplify/platform-core": "^1.2.0", - "@aws-amplify/plugin-types": "^1.3.1", - "@aws-sdk/client-amplify": "^3.624.0", - "lodash.snakecase": "^4.1.1" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/backend": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend/-/backend-1.15.0.tgz", + "integrity": "sha512-fszrFdBlUqptaR6R0YYiRy030lMHUgmNuRtLl7fvNGD2ueragjchDYQFIj3GYxXYpW52c46I9KYWJkRDEn8Piw==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-amplify/backend-auth": "^1.6.0", + "@aws-amplify/backend-data": "^1.5.0", + "@aws-amplify/backend-function": "^1.13.0", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/backend-secret": "^1.3.0", + "@aws-amplify/backend-storage": "^1.3.0", + "@aws-amplify/client-config": "^1.6.0", + "@aws-amplify/data-schema": "^1.13.4", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-amplify": "^3.750.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-auth": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-auth/-/backend-auth-1.3.0.tgz", - "integrity": "sha512-JXzicYWZVeb9FuQ0VYJrkIFdV7DL2Bz2L9TNkuVO1JpfmLEIIHOJnq+zywbij0QE7TRTI6rLwnjKqqiIesHceA==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-auth/-/backend-auth-1.6.0.tgz", + "integrity": "sha512-RWMoDZukX/zoDI9kZDH62CutEq7WQjv/nUvHgpCCtHDQ0ImlHyQt1tO/n0sbRoBzXE0sBw7u/Hgd6g/slh/Czw==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/auth-construct": "^1.4.0", - "@aws-amplify/backend-output-storage": "^1.1.3", - "@aws-amplify/plugin-types": "^1.3.1" + "@aws-amplify/auth-construct": "^1.7.0", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-cli": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-cli/-/backend-cli-1.4.1.tgz", - "integrity": "sha512-6c8F3C6u1EjDNtjiTjDvkhcSlP2uDNYjTyAww0JnQEaN5IWapiqfSF7T574F9bspW6zY4hkzYgRBwb1UgX7i2A==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/backend-deployer": "^1.1.8", - "@aws-amplify/backend-output-schemas": "^1.4.0", - "@aws-amplify/backend-secret": "^1.1.2", - "@aws-amplify/cli-core": "^1.2.0", - "@aws-amplify/client-config": "^1.5.1", - "@aws-amplify/deployed-backend-client": "^1.4.1", - "@aws-amplify/form-generator": "^1.0.3", - "@aws-amplify/model-generator": "^1.0.8", - "@aws-amplify/platform-core": "^1.2.0", - "@aws-amplify/plugin-types": "^1.3.1", - "@aws-amplify/sandbox": "^1.2.5", - "@aws-amplify/schema-generator": "^1.2.5", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-cli/-/backend-cli-1.5.0.tgz", + "integrity": "sha512-ixGwkTB0q333DZIuUVIPpuEq+cmqAPq5yG3H2r5xqqzkYcW3fRIt8vCTebIiBlgSUaZLM7zffrir+i9zxPaZyA==", + "dev": true, + "dependencies": { + "@aws-amplify/backend-deployer": "^1.1.20", + "@aws-amplify/backend-output-schemas": "^1.4.1", + "@aws-amplify/backend-secret": "^1.2.0", + "@aws-amplify/cli-core": "^1.4.1", + "@aws-amplify/client-config": "^1.5.8", + "@aws-amplify/deployed-backend-client": "^1.5.2", + "@aws-amplify/form-generator": "^1.0.5", + "@aws-amplify/model-generator": "^1.0.13", + "@aws-amplify/platform-core": "^1.6.5", + "@aws-amplify/plugin-types": "^1.8.1", + "@aws-amplify/sandbox": "^1.2.12", + "@aws-amplify/schema-generator": "^1.2.8", "@aws-sdk/client-amplify": "^3.624.0", "@aws-sdk/client-cloudformation": "^3.624.0", "@aws-sdk/client-s3": "^3.624.0", @@ -608,8 +582,8 @@ "@smithy/node-config-provider": "^2.1.3", "@smithy/shared-ini-file-loader": "^2.2.5", "envinfo": "^7.11.0", - "execa": "^8.0.1", - "is-ci": "^3.0.1", + "execa": "^9.5.1", + "is-ci": "^4.1.0", "open": "^9.1.0", "yargs": "^17.7.2", "zod": "^3.22.2" @@ -626,141 +600,146 @@ } }, "node_modules/@aws-amplify/backend-data": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-data/-/backend-data-1.1.7.tgz", - "integrity": "sha512-c/Hhl5qKXMB01ND1apQF1ZxUj0mIm5qEquMbKfm/478gDhSScpJnwat6fojjJcLWvxwcbubglEmwzKm/K5FqpA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-data/-/backend-data-1.5.0.tgz", + "integrity": "sha512-zg6bNIZ3pCskRv9lbighUy5zATJtN3zPpQr6myFw4oD41g500iyL0dNjp4DokJqKYJ26vMuWUokaOKHOA/kPsQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.4.0", - "@aws-amplify/backend-output-storage": "^1.1.3", - "@aws-amplify/data-construct": "^1.10.1", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/data-construct": "^1.15.1", "@aws-amplify/data-schema-types": "^1.2.0", - "@aws-amplify/plugin-types": "^1.3.1" + "@aws-amplify/graphql-generator": "^0.5.1", + "@aws-amplify/plugin-types": "^1.9.0", + "graphql": "^15.8.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-deployer": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-deployer/-/backend-deployer-1.1.8.tgz", - "integrity": "sha512-CtCikKk74RZMtxAHWjQk2AxTOj9TeIAqOfpgG20o1HSZPNWd3MxIIcofQ1t8Yt/AIy1Lse/LTjxnOqW/Oi08Rg==", + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-deployer/-/backend-deployer-1.1.20.tgz", + "integrity": "sha512-xiUKNbMJrXWnJJoj16A4KzqF1ib3OckIXT7qFepFC3PdGXfxr6bhSQu9w+CDPDCShle1MmF6DpapZHfhNSclAA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/platform-core": "^1.2.0", - "@aws-amplify/plugin-types": "^1.3.1", - "execa": "^8.0.1", + "@aws-amplify/platform-core": "^1.6.5", + "@aws-amplify/plugin-types": "^1.8.1", + "execa": "^9.5.1", + "strip-ansi": "^6.0.1", "tsx": "^4.6.1" }, "peerDependencies": { - "aws-cdk": "^2.158.0", + "aws-cdk": "^2.1001.0", "typescript": "^5.0.0" } }, "node_modules/@aws-amplify/backend-function": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-function/-/backend-function-1.7.4.tgz", - "integrity": "sha512-/n7SP75ENx0IkR0guAbO1opyz/inf4oFJWvdRkxxe14ZSTsbfYTYuqCLyPDJ+UHACnGM3BauiGW8MFWRhQgLrg==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-function/-/backend-function-1.13.0.tgz", + "integrity": "sha512-5zKw4BLlkGwg68aurFKDWFloYkrPwC/fBIY2vKyTSwbMGa/YID8w3E7XLXLIu8bZf19RA2rlH5okGMnlu+ypjg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.4.0", - "@aws-amplify/backend-output-storage": "^1.1.3", - "@aws-amplify/plugin-types": "^1.3.1", - "execa": "^8.0.1" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-s3": "^3.750.0", + "execa": "^9.5.1" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-output-schemas": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-schemas/-/backend-output-schemas-1.4.0.tgz", - "integrity": "sha512-/p2t/wWV1CTObJnewmLKlx48AYGhhRKp2Ne51DNZ1gV4CAwZx9Jmtyjv65h3zQ6Gk6WTTcjeNORncgEa1Gq5CA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-schemas/-/backend-output-schemas-1.5.0.tgz", + "integrity": "sha512-vBnxuZKGJPTov1y7E/qIi3+BTmPW1HBMDHs57a2K8pT8bKK3LPCVBm2ZgislRBzo//hCBO6SGts9ZIwj86mnOg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "peerDependencies": { "zod": "^3.22.2" } }, "node_modules/@aws-amplify/backend-output-storage": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-storage/-/backend-output-storage-1.1.3.tgz", - "integrity": "sha512-2dHDQ/7fcOEotFvMup4rS6rM+suBWZNMnLC0QNSaegTZ/KPAIAtK2pG0PIBKKfJSimJRuplG+jxvA+oZ7D5Y1Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-storage/-/backend-output-storage-1.2.0.tgz", + "integrity": "sha512-6vDAj+YOVYiXPxp/6vCqOe56w7DxQUhwXoZjdT4vN/UT4nzFEvV+YajnyD6mUTWLVfePds+PPjFdjnUNf4vlSg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.6", - "@aws-amplify/plugin-types": "^1.3.1" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0" + "aws-cdk-lib": "^2.180.0" } }, "node_modules/@aws-amplify/backend-secret": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-secret/-/backend-secret-1.1.5.tgz", - "integrity": "sha512-xn9WAUhEpJQ2qKYRL398PL+XLmixYGAvQryFxjU+HReMNRoGG7INBbE58xHciOIvMu9zLQFEfT/emS573hE1fA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-secret/-/backend-secret-1.3.0.tgz", + "integrity": "sha512-eX4erJb35SkV9dfkJ+saQvFAsOlkJBYuluiXDYgjuyapWlHB/YmV8Vz/Gp4ggg7kpae72ayM0Wb2RWuAcnA52Q==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/platform-core": "^1.0.5", - "@aws-amplify/plugin-types": "^1.2.2", - "@aws-sdk/client-ssm": "^3.624.0" + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-ssm": "^3.750.0" } }, "node_modules/@aws-amplify/backend-storage": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-storage/-/backend-storage-1.2.2.tgz", - "integrity": "sha512-y6+JCV9LkS5cn0FBl3hQrgj6OW3pdB8D4MzrNjhtE3ZdFGMpA1YCBPedqRiLEd7h9ppDvZbE/806TKSfktfSlw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-storage/-/backend-storage-1.3.0.tgz", + "integrity": "sha512-j3nGKshMLHeOqaLf0eEvB+/yA4TZeGJwUkqfhFGXQuAPVdhAWkZnFfhusRnFRg7/vjHLCxEBgKKtLsECzlJvuQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.1", - "@aws-amplify/backend-output-storage": "^1.1.3", - "@aws-amplify/plugin-types": "^1.3.1" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/cli-core": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/cli-core/-/cli-core-1.2.0.tgz", - "integrity": "sha512-y6rK8BUwDOzRvfJr79H93ytDuTP6nlm7NT3tX4aJDZhiGTYMiRxUxESchrB0A/ntEsX71Js9wNUB+BO7bX+aRA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/cli-core/-/cli-core-1.4.1.tgz", + "integrity": "sha512-DoA9r36mijBKLujV0kaYVZ2AmFqwS93GmD3g0XvKLzhGy5Tra9f7H7F8AMBh27fOE+ju1vVGK5DUkKEhioNDMw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/platform-core": "^1.0.5", - "@inquirer/prompts": "^3.0.0", - "execa": "^8.0.1", - "kleur": "^4.1.5" + "@aws-amplify/platform-core": "^1.6.5", + "@inquirer/prompts": "^7.3.2", + "execa": "^9.5.1", + "kleur": "^4.1.5", + "ora": "8.2.0", + "semver": "^7.6.3", + "zod": "^3.22.2" } }, "node_modules/@aws-amplify/client-config": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/client-config/-/client-config-1.5.2.tgz", - "integrity": "sha512-TaCcMNB0Q5H1ZY/0qKay13cuSdUVXj3q25aFvdHIc7QAYCrni/sCtrNhlYRKxMH5BPJIKiD1lwaZwcAbu+/3fQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/client-config/-/client-config-1.6.0.tgz", + "integrity": "sha512-UCdESkLBzMoQ8+JXrMd4TKemx3lSdsivuCzTALDrH/+RroDxLKtCtSCcQfWJP1e3V+Kf15JD4a5ADQ50nXrKNQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.4.0", - "@aws-amplify/deployed-backend-client": "^1.4.1", - "@aws-amplify/model-generator": "^1.0.7", - "@aws-amplify/platform-core": "^1.0.7", - "@aws-amplify/plugin-types": "^1.3.1", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/deployed-backend-client": "^1.6.0", + "@aws-amplify/model-generator": "^1.1.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", "zod": "^3.22.2" }, "peerDependencies": { - "@aws-sdk/client-amplify": "^3.624.0", - "@aws-sdk/client-cloudformation": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0" + "@aws-sdk/client-amplify": "^3.750.0", + "@aws-sdk/client-cloudformation": "^3.750.0", + "@aws-sdk/client-s3": "^3.750.0" } }, "node_modules/@aws-amplify/codegen-ui": { @@ -768,7 +747,6 @@ "resolved": "https://registry.npmjs.org/@aws-amplify/codegen-ui/-/codegen-ui-2.20.2.tgz", "integrity": "sha512-6ixfv1ewTHcu87KiAps+7jhs/4YP8vGRqkiUl7Ne47DWYavw/AdFYisEvsIa3dZXR0SBIRH2dSwE5nJWqim9SQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "change-case": "^4.1.2", "yup": "^0.32.11" @@ -779,7 +757,6 @@ "resolved": "https://registry.npmjs.org/@aws-amplify/codegen-ui-react/-/codegen-ui-react-2.20.2.tgz", "integrity": "sha512-PF9B3A7+4oub7JPyjAfZE1iKieXjgrNjTeGNisD4qwEq6rfxHkczeqLhoeh0rEDkZlZ2puJdowCqAQUmsUgGYw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-amplify/codegen-ui": "2.20.2", "@typescript/vfs": "~1.3.5", @@ -800,7 +777,6 @@ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", "dev": true, - "license": "MIT", "optional": true, "bin": { "prettier": "bin-prettier.js" @@ -814,7 +790,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz", "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -824,10 +799,9 @@ } }, "node_modules/@aws-amplify/core": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/core/-/core-6.4.1.tgz", - "integrity": "sha512-PcnnAkf/OUH+tLWIVaiB1CuG/c2/vIay2+innO+Yzj7yuL4TnT5ZmRwwPmJmkw6yAngwXSD7WTaiyhUIrgE8hQ==", - "license": "Apache-2.0", + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/core/-/core-6.11.0.tgz", + "integrity": "sha512-i35jURLYuIqmbWcOjlKUwUsbcDL8Q4ceyOpZBvQvJZhZo85kJCYgVylweqTy/Uc5rCGW2VQComf/0k2d0xFA8A==", "dependencies": { "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/types": "3.398.0", @@ -843,7 +817,6 @@ "version": "3.398.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.398.0.tgz", "integrity": "sha512-r44fkS+vsEgKCuEuTV+TIk0t0m5ZlXHNjSDYEUvzLStbbfUFiNus/YG4UCa0wOk9R7VuQI67badsvvPeVPCGDQ==", - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^2.2.2", "tslib": "^2.5.0" @@ -856,7 +829,6 @@ "version": "2.12.0", "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -868,7 +840,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.0.0.tgz", "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", - "license": "Apache-2.0", "dependencies": { "tslib": "^2.5.0" }, @@ -877,10 +848,11 @@ } }, "node_modules/@aws-amplify/data-construct": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/data-construct/-/data-construct-1.12.0.tgz", - "integrity": "sha512-Sc9nBYU4pu7DBe63M6bAMabsI7kSQoqyHA0Swza/qYwf2GmPTqn7E2Mt0RNZnySwGGai7uThcdGKaf+uxhpxpA==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/data-construct/-/data-construct-1.15.1.tgz", + "integrity": "sha512-po8Q1yStA1Dx4vzx1SEMUgZq5VHlt6wxmh+GtROErnnYYpNdkJc+60Pc6l713J2xD+bST5Z1EpfNa8+kpzsHgQ==", "bundleDependencies": [ + "@aws-amplify/ai-constructs", "@aws-amplify/backend-output-schemas", "@aws-amplify/backend-output-storage", "@aws-amplify/graphql-auth-transformer", @@ -888,6 +860,7 @@ "@aws-amplify/graphql-default-value-transformer", "@aws-amplify/graphql-directives", "@aws-amplify/graphql-function-transformer", + "@aws-amplify/graphql-generation-transformer", "@aws-amplify/graphql-http-transformer", "@aws-amplify/graphql-index-transformer", "@aws-amplify/graphql-maps-to-transformer", @@ -896,62 +869,53 @@ "@aws-amplify/graphql-relational-transformer", "@aws-amplify/graphql-searchable-transformer", "@aws-amplify/graphql-sql-transformer", - "@aws-amplify/graphql-generation-transformer", - "@aws-amplify/ai-constructs", "@aws-amplify/graphql-transformer", "@aws-amplify/graphql-transformer-core", "@aws-amplify/graphql-transformer-interfaces", + "@aws-amplify/graphql-validate-transformer", "@aws-amplify/platform-core", "@aws-amplify/plugin-types", - "@aws-sdk/client-bedrock-runtime", - "@smithy/eventstream-serde-browser", - "@smithy/eventstream-serde-config-resolver", - "@smithy/eventstream-serde-node", - "@smithy/eventstream-serde-universal", - "@smithy/eventstream-codec", "@aws-crypto/crc32", - "charenc", - "crypt", - "fs-extra", - "graceful-fs", - "graphql", - "graphql-mapping-template", - "graphql-transformer-common", - "hjson", - "immer", - "is-buffer", - "jsonfile", - "libphonenumber-js", - "lodash", - "md5", - "object-hash", - "pluralize", - "ts-dedent", - "universalify", - "zod", - "@aws-sdk/client-sts", - "is-ci", - "lodash.mergewith", - "uuid", "@aws-crypto/sha256-browser", "@aws-crypto/sha256-js", + "@aws-crypto/supports-web-crypto", + "@aws-crypto/util", + "@aws-sdk/client-bedrock-runtime", + "@aws-sdk/client-sso", "@aws-sdk/client-sso-oidc", + "@aws-sdk/client-sts", "@aws-sdk/core", + "@aws-sdk/credential-provider-env", + "@aws-sdk/credential-provider-http", + "@aws-sdk/credential-provider-ini", "@aws-sdk/credential-provider-node", + "@aws-sdk/credential-provider-process", + "@aws-sdk/credential-provider-sso", + "@aws-sdk/credential-provider-web-identity", "@aws-sdk/middleware-host-header", "@aws-sdk/middleware-logger", "@aws-sdk/middleware-recursion-detection", "@aws-sdk/middleware-user-agent", "@aws-sdk/region-config-resolver", + "@aws-sdk/token-providers", "@aws-sdk/types", "@aws-sdk/util-endpoints", + "@aws-sdk/util-locate-window", "@aws-sdk/util-user-agent-browser", "@aws-sdk/util-user-agent-node", + "@smithy/abort-controller", "@smithy/config-resolver", "@smithy/core", + "@smithy/credential-provider-imds", + "@smithy/eventstream-codec", + "@smithy/eventstream-serde-browser", + "@smithy/eventstream-serde-config-resolver", + "@smithy/eventstream-serde-node", + "@smithy/eventstream-serde-universal", "@smithy/fetch-http-handler", "@smithy/hash-node", "@smithy/invalid-dependency", + "@smithy/is-array-buffer", "@smithy/middleware-content-length", "@smithy/middleware-endpoint", "@smithy/middleware-retry", @@ -959,75 +923,84 @@ "@smithy/middleware-stack", "@smithy/node-config-provider", "@smithy/node-http-handler", + "@smithy/property-provider", "@smithy/protocol-http", + "@smithy/querystring-builder", + "@smithy/querystring-parser", + "@smithy/service-error-classification", + "@smithy/shared-ini-file-loader", + "@smithy/signature-v4", "@smithy/smithy-client", "@smithy/types", "@smithy/url-parser", "@smithy/util-base64", "@smithy/util-body-length-browser", "@smithy/util-body-length-node", + "@smithy/util-buffer-from", + "@smithy/util-config-provider", "@smithy/util-defaults-mode-browser", "@smithy/util-defaults-mode-node", "@smithy/util-endpoints", + "@smithy/util-hex-encoding", "@smithy/util-middleware", "@smithy/util-retry", + "@smithy/util-stream", + "@smithy/util-uri-escape", "@smithy/util-utf8", - "tslib", + "bowser", + "charenc", "ci-info", - "@aws-crypto/supports-web-crypto", - "@aws-crypto/util", - "@aws-sdk/util-locate-window", - "@smithy/signature-v4", + "crypt", "fast-xml-parser", - "@aws-sdk/credential-provider-env", - "@aws-sdk/credential-provider-http", - "@aws-sdk/credential-provider-ini", - "@aws-sdk/credential-provider-process", - "@aws-sdk/credential-provider-sso", - "@aws-sdk/credential-provider-web-identity", - "@smithy/credential-provider-imds", - "@smithy/property-provider", - "@smithy/shared-ini-file-loader", - "@smithy/util-config-provider", - "bowser", - "@smithy/querystring-builder", - "@smithy/util-buffer-from", - "@smithy/service-error-classification", - "@smithy/abort-controller", - "@smithy/util-stream", - "@smithy/querystring-parser", - "@smithy/is-array-buffer", - "@smithy/util-hex-encoding", - "@smithy/util-uri-escape", + "fs-extra", + "graceful-fs", + "graphql", + "graphql-mapping-template", + "graphql-transformer-common", + "hjson", + "immer", + "is-buffer", + "is-ci", + "jsonfile", + "libphonenumber-js", + "lodash", + "lodash.mergewith", + "lodash.snakecase", + "md5", + "object-hash", + "pluralize", + "semver", "strnum", - "@aws-sdk/token-providers", - "@aws-sdk/client-sso", - "semver" + "ts-dedent", + "tslib", + "universalify", + "uuid", + "zod" ], "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/ai-constructs": "^0.2.0", + "@aws-amplify/ai-constructs": "^1.2.4", "@aws-amplify/backend-output-schemas": "^1.0.0", "@aws-amplify/backend-output-storage": "^1.0.0", - "@aws-amplify/graphql-api-construct": "1.16.0", - "@aws-amplify/graphql-auth-transformer": "4.1.5", - "@aws-amplify/graphql-conversation-transformer": "0.5.0", - "@aws-amplify/graphql-default-value-transformer": "3.1.2", - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-function-transformer": "3.1.4", - "@aws-amplify/graphql-generation-transformer": "0.2.5", - "@aws-amplify/graphql-http-transformer": "3.0.7", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-maps-to-transformer": "4.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-predictions-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-searchable-transformer": "3.0.7", - "@aws-amplify/graphql-sql-transformer": "0.4.7", - "@aws-amplify/graphql-transformer": "2.1.5", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-api-construct": "1.19.1", + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer": "2.3.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", "@aws-amplify/platform-core": "^1.0.0", "@aws-amplify/plugin-types": "^1.0.0", "@aws-crypto/crc32": "5.2.0", @@ -1110,8 +1083,8 @@ "fs-extra": "^8.1.0", "graceful-fs": "^4.2.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "hjson": "^3.2.2", "immer": "^9.0.12", "is-buffer": "~1.1.6", @@ -1120,6 +1093,7 @@ "libphonenumber-js": "1.9.47", "lodash": "^4.17.21", "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", "md5": "^2.2.1", "object-hash": "^3.0.0", "pluralize": "8.0.0", @@ -1132,27 +1106,61 @@ "zod": "^3.22.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/ai-constructs": { - "version": "0.2.0", + "version": "1.2.4", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/plugin-types": "^1.0.1", + "@aws-amplify/backend-output-schemas": "^1.4.0", + "@aws-amplify/platform-core": "^1.6.2", + "@aws-amplify/plugin-types": "^1.6.0", "@aws-sdk/client-bedrock-runtime": "^3.622.0", - "@smithy/types": "^3.3.0" + "@smithy/types": "^3.3.0", + "json-schema-to-ts": "^3.1.1" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core": { + "version": "1.6.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/plugin-types": "^1.8.0", + "@aws-sdk/client-sts": "^3.624.0", + "is-ci": "^3.0.1", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "semver": "^7.6.3", + "uuid": "^9.0.1", + "zod": "^3.22.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types": { + "version": "1.8.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/types": "^3.609.0", + "aws-cdk-lib": "^2.168.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/backend-output-schemas": { - "version": "1.2.0", + "version": "1.4.0", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -1161,310 +1169,314 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/backend-output-storage": { - "version": "1.1.1", + "version": "1.1.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.6" + "@aws-amplify/platform-core": "^1.0.6", + "@aws-amplify/plugin-types": "^1.3.1" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0" + "aws-cdk-lib": "^2.158.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-auth-transformer": { - "version": "4.1.5", + "version": "4.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "lodash": "^4.17.21", "md5": "^2.3.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-conversation-transformer": { - "version": "0.5.0", + "version": "1.1.9", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/ai-constructs": "^0.2.0", - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/ai-constructs": "^1.2.4", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/plugin-types": "^1.0.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12", "semver": "^7.6.3" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-default-value-transformer": { - "version": "3.1.2", + "version": "3.1.11", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "libphonenumber-js": "1.9.47" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-directives": { - "version": "2.4.0", + "version": "2.7.0", "dev": true, "inBundle": true, "license": "Apache-2.0" }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-function-transformer": { - "version": "3.1.4", + "version": "3.1.13", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-generation-transformer": { - "version": "0.2.5", + "version": "1.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-http-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-index-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-maps-to-transformer": { - "version": "4.0.7", + "version": "4.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-model-transformer": { - "version": "3.0.7", + "version": "3.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-predictions-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-relational-transformer": { - "version": "3.0.7", + "version": "3.1.8", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-searchable-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-sql-transformer": { - "version": "0.4.7", + "version": "0.4.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-transformer": { - "version": "2.1.5", + "version": "2.3.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-auth-transformer": "4.1.5", - "@aws-amplify/graphql-conversation-transformer": "0.5.0", - "@aws-amplify/graphql-default-value-transformer": "3.1.2", - "@aws-amplify/graphql-function-transformer": "3.1.4", - "@aws-amplify/graphql-generation-transformer": "0.2.5", - "@aws-amplify/graphql-http-transformer": "3.0.7", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-maps-to-transformer": "4.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-predictions-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-searchable-transformer": "3.0.7", - "@aws-amplify/graphql-sql-transformer": "0.4.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2" + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", + "@aws-amplify/plugin-types": "^1.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-transformer-core": { - "version": "3.2.2", + "version": "3.4.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "fs-extra": "^8.1.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "hjson": "^3.2.2", "lodash": "^4.17.21", "md5": "^2.3.0", @@ -1472,12 +1484,12 @@ "ts-dedent": "^2.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-transformer-interfaces": { - "version": "4.1.2", + "version": "4.2.4", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -1485,12 +1497,26 @@ "graphql": "^15.5.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-validate-transformer": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/platform-core": { - "version": "1.1.0", + "version": "1.2.0", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -1505,13 +1531,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/plugin-types": { - "version": "1.2.1", + "version": "1.4.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "peerDependencies": { "@aws-sdk/types": "^3.609.0", - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.158.0", "constructs": "^10.0.0" } }, @@ -1530,12 +1556,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/crc32/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1558,12 +1584,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1623,12 +1649,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1656,12 +1682,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/util/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1707,54 +1733,54 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/eventstream-serde-browser": "^3.0.7", - "@smithy/eventstream-serde-config-resolver": "^3.0.4", - "@smithy/eventstream-serde-node": "^3.0.6", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/client-sts": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/eventstream-serde-browser": "^3.0.12", + "@smithy/eventstream-serde-config-resolver": "^3.0.9", + "@smithy/eventstream-serde-node": "^3.0.11", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-stream": "^3.1.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-stream": "^3.3.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1763,47 +1789,47 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1812,48 +1838,48 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1861,23 +1887,24 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.1", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-middleware": "^3.0.4", + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -1886,14 +1913,15 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1901,19 +1929,20 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-stream": "^3.1.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -1921,47 +1950,48 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-ini": "3.651.1", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1969,15 +1999,16 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1985,17 +2016,18 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.651.1", - "@aws-sdk/token-providers": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2003,32 +2035,33 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.649.0" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2036,13 +2069,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-logger": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2050,14 +2083,14 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2065,15 +2098,17 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2081,16 +2116,16 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.4", + "@smithy/util-middleware": "^3.0.9", "tslib": "^2.6.2" }, "engines": { @@ -2098,31 +2133,31 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/token-providers": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.649.0" + "@aws-sdk/client-sso-oidc": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2130,14 +2165,14 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-endpoints": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", - "@smithy/util-endpoints": "^2.1.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", "tslib": "^2.6.2" }, "engines": { @@ -2145,26 +2180,27 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2179,6 +2215,19 @@ } } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sso": { "version": "3.637.0", "dev": true, @@ -2282,49 +2331,49 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -2333,47 +2382,47 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -2382,48 +2431,48 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -2431,23 +2480,24 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/core": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.1", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-middleware": "^3.0.4", + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -2456,14 +2506,15 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2471,19 +2522,20 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-stream": "^3.1.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -2491,47 +2543,48 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-ini": "3.651.1", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2539,15 +2592,16 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2555,17 +2609,18 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.651.1", - "@aws-sdk/token-providers": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2573,32 +2628,33 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.649.0" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2606,13 +2662,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-logger": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2620,14 +2676,14 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2635,15 +2691,17 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2651,16 +2709,16 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.4", + "@smithy/util-middleware": "^3.0.9", "tslib": "^2.6.2" }, "engines": { @@ -2668,31 +2726,31 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/token-providers": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.649.0" + "@aws-sdk/client-sso-oidc": "^3.693.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2700,14 +2758,14 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-endpoints": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", - "@smithy/util-endpoints": "^2.1.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", "tslib": "^2.6.2" }, "engines": { @@ -2715,26 +2773,27 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -2749,6 +2808,19 @@ } } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/core": { "version": "3.635.0", "dev": true, @@ -3030,7 +3102,7 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -3077,12 +3149,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/abort-controller": { - "version": "3.1.4", + "version": "3.1.8", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3090,15 +3162,15 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/config-resolver": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", + "@smithy/util-middleware": "^3.0.10", "tslib": "^2.6.2" }, "engines": { @@ -3106,19 +3178,17 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/core": { - "version": "2.4.3", + "version": "2.5.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.3", - "@smithy/middleware-retry": "^3.0.18", - "@smithy/middleware-serde": "^3.0.6", - "@smithy/protocol-http": "^4.1.3", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-stream": "^3.3.1", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -3127,15 +3197,15 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/credential-provider-imds": { - "version": "3.2.3", + "version": "3.2.7", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/property-provider": "^3.1.6", - "@smithy/types": "^3.4.2", - "@smithy/url-parser": "^3.0.6", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "tslib": "^2.6.2" }, "engines": { @@ -3143,25 +3213,25 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-codec": { - "version": "3.1.5", + "version": "3.1.9", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "@smithy/util-hex-encoding": "^3.0.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.9", + "version": "3.0.13", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.8", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3169,12 +3239,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3182,13 +3252,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.8", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3196,13 +3266,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^3.1.5", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-codec": "^3.1.9", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3210,25 +3280,25 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/fetch-http-handler": { - "version": "3.2.7", + "version": "3.2.9", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.3", - "@smithy/querystring-builder": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/hash-node": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" @@ -3238,12 +3308,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/invalid-dependency": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" } }, @@ -3260,13 +3330,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-content-length": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3274,17 +3344,18 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-endpoint": { - "version": "3.1.3", + "version": "3.2.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^3.0.6", - "@smithy/node-config-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", - "@smithy/url-parser": "^3.0.6", - "@smithy/util-middleware": "^3.0.6", + "@smithy/core": "^2.5.3", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-middleware": "^3.0.10", "tslib": "^2.6.2" }, "engines": { @@ -3292,18 +3363,18 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-retry": { - "version": "3.0.18", + "version": "3.0.27", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.3", - "@smithy/service-error-classification": "^3.0.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", - "@smithy/util-middleware": "^3.0.6", - "@smithy/util-retry": "^3.0.6", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/protocol-http": "^4.1.7", + "@smithy/service-error-classification": "^3.0.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "tslib": "^2.6.2", "uuid": "^9.0.1" }, @@ -3312,12 +3383,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-serde": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3325,12 +3396,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-stack": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3338,14 +3409,14 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", + "version": "3.1.11", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^3.1.10", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3353,15 +3424,15 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/node-http-handler": { - "version": "3.2.2", + "version": "3.3.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.1.4", - "@smithy/protocol-http": "^4.1.3", - "@smithy/querystring-builder": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/abort-controller": "^3.1.8", + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3369,12 +3440,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/property-provider": { - "version": "3.1.6", + "version": "3.1.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3382,12 +3453,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/protocol-http": { - "version": "4.1.3", + "version": "4.1.7", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3395,12 +3466,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/querystring-builder": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "@smithy/util-uri-escape": "^3.0.0", "tslib": "^2.6.2" }, @@ -3409,12 +3480,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/querystring-parser": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3422,24 +3493,24 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/service-error-classification": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2" + "@smithy/types": "^3.7.1" }, "engines": { "node": ">=16.0.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", + "version": "3.1.11", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3447,16 +3518,16 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/signature-v4": { - "version": "4.1.3", + "version": "4.2.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", + "@smithy/util-middleware": "^3.0.10", "@smithy/util-uri-escape": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" @@ -3466,16 +3537,17 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/smithy-client": { - "version": "3.3.2", + "version": "3.4.4", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.3", - "@smithy/middleware-stack": "^3.0.6", - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", - "@smithy/util-stream": "^3.1.6", + "@smithy/core": "^2.5.3", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-stream": "^3.3.1", "tslib": "^2.6.2" }, "engines": { @@ -3483,7 +3555,7 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/types": { - "version": "3.4.2", + "version": "3.7.1", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -3495,13 +3567,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/url-parser": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/querystring-parser": "^3.0.10", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" } }, @@ -3566,14 +3638,14 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.18", + "version": "3.0.27", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", "bowser": "^2.11.0", "tslib": "^2.6.2" }, @@ -3582,17 +3654,17 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.18", + "version": "3.0.27", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^3.0.8", - "@smithy/credential-provider-imds": "^3.2.3", - "@smithy/node-config-provider": "^3.1.7", - "@smithy/property-provider": "^3.1.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/config-resolver": "^3.0.12", + "@smithy/credential-provider-imds": "^3.2.7", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3600,13 +3672,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-endpoints": { - "version": "2.1.2", + "version": "2.1.6", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3626,12 +3698,12 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-middleware": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3639,13 +3711,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-retry": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/service-error-classification": "^3.0.10", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -3653,14 +3725,14 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-stream": { - "version": "3.1.6", + "version": "3.3.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^3.2.7", - "@smithy/node-http-handler": "^3.2.2", - "@smithy/types": "^3.4.2", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/types": "^3.7.1", "@smithy/util-base64": "^3.0.0", "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-hex-encoding": "^3.0.0", @@ -3671,6 +3743,19 @@ "node": ">=16.0.0" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-uri-escape": { "version": "3.0.0", "dev": true, @@ -3787,19 +3872,19 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/graphql-mapping-template": { - "version": "5.0.1", + "version": "5.0.2", "dev": true, "inBundle": true, "license": "Apache-2.0" }, "node_modules/@aws-amplify/data-construct/node_modules/graphql-transformer-common": { - "version": "5.1.0", + "version": "5.1.2", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", + "graphql-mapping-template": "5.0.2", "md5": "^2.2.1", "pluralize": "8.0.0" } @@ -3868,6 +3953,12 @@ "inBundle": true, "license": "MIT" }, + "node_modules/@aws-amplify/data-construct/node_modules/lodash.snakecase": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, "node_modules/@aws-amplify/data-construct/node_modules/md5": { "version": "2.3.0", "dev": true, @@ -3925,7 +4016,7 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/tslib": { - "version": "2.7.0", + "version": "2.8.1", "dev": true, "inBundle": true, "license": "0BSD" @@ -3962,10 +4053,9 @@ } }, "node_modules/@aws-amplify/data-schema": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/data-schema/-/data-schema-1.6.0.tgz", - "integrity": "sha512-34b0yKx0ASWFh8tinthRzliZBGe1ht0xYBnWLJ5kYM872mXIiVMGyr5Xn2X/jxTVZRj7XSFvpYAUdAarlmqk/w==", - "license": "Apache-2.0", + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@aws-amplify/data-schema/-/data-schema-1.20.2.tgz", + "integrity": "sha512-5sRk7IvEyz6hEY3Atq1e44pQ8inT9+2n638pJ9lOzoD5ipHZurSf3DJNYupgoQ58Re19ma1aLcYyG9E/ZfzAXw==", "dependencies": { "@aws-amplify/data-schema-types": "*", "@smithy/util-base64": "^3.0.0", @@ -3978,19 +4068,26 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/@aws-amplify/data-schema-types/-/data-schema-types-1.2.0.tgz", "integrity": "sha512-1hy2r7jl3hQ5J/CGjhmPhFPcdGSakfme1ZLjlTMJZILfYifZLSlGRKNCelMb3J5N9203hyeT5XDi5yR47JL1TQ==", - "license": "Apache-2.0", "dependencies": { "graphql": "15.8.0", "rxjs": "^7.8.1" } }, + "node_modules/@aws-amplify/data-schema-types/node_modules/graphql": { + "version": "15.8.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", + "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", + "engines": { + "node": ">= 10.x" + } + }, "node_modules/@aws-amplify/datastore": { - "version": "5.0.50", - "resolved": "https://registry.npmjs.org/@aws-amplify/datastore/-/datastore-5.0.50.tgz", - "integrity": "sha512-ktdL7+XJ91Pf2re/vKvGf7Jmo25bB9H5IQwe8dxdpZfXRHfp+xJulWTJUKADi72JCKyjMpm9aVMq0qQ9eOL4QQ==", - "license": "Apache-2.0", + "version": "5.0.78", + "resolved": "https://registry.npmjs.org/@aws-amplify/datastore/-/datastore-5.0.78.tgz", + "integrity": "sha512-pzK4VHsDw6L2sr3zjSWhUxhutig0srUoMN/9VbiAEJEIkwAqpAj7wrWFp8fPfFofNBdrcWzIr+PrHUrMJOp8oA==", "dependencies": { - "@aws-amplify/api": "6.0.50", + "@aws-amplify/api": "6.3.7", + "@aws-amplify/api-graphql": "4.7.11", "buffer": "4.9.2", "idb": "5.0.6", "immer": "9.0.6", @@ -4001,31 +4098,45 @@ "@aws-amplify/core": "^6.1.0" } }, + "node_modules/@aws-amplify/datastore/node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "node_modules/@aws-amplify/datastore/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, "node_modules/@aws-amplify/deployed-backend-client": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/deployed-backend-client/-/deployed-backend-client-1.4.2.tgz", - "integrity": "sha512-wfiWWyeJGcHEPu5FxFXJ3ADcePPHnkbqmoG/1tEzzJocI5LBShrSQ/wC/zeQrfZ0GP974BVKDg6CXoOwBNlJMQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/deployed-backend-client/-/deployed-backend-client-1.6.0.tgz", + "integrity": "sha512-230QF/ZjrOacQV46Dq6ugHqp5lWH+r0XhLTq/1Vr4NzLSri0pdFe0RUnzPmB7KO4LwhXl0i+179hp5uoOGCkPg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.5", - "@aws-amplify/plugin-types": "^1.2.2", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", "zod": "^3.22.2" }, "peerDependencies": { - "@aws-sdk/client-amplify": "^3.624.0", - "@aws-sdk/client-cloudformation": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0", - "@aws-sdk/types": "^3.609.0" + "@aws-sdk/client-amplify": "^3.750.0", + "@aws-sdk/client-cloudformation": "^3.750.0", + "@aws-sdk/client-s3": "^3.750.0", + "@aws-sdk/types": "^3.734.0" } }, "node_modules/@aws-amplify/form-generator": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@aws-amplify/form-generator/-/form-generator-1.0.3.tgz", - "integrity": "sha512-KoMAxy2tv1kosKr8wdKd0/+7BdE09iNMVdU8mjon8cTQ6cMwFgO/ds8AdBVqGqRaLWTIVNyThV9nUXgMUjBDQQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@aws-amplify/form-generator/-/form-generator-1.0.5.tgz", + "integrity": "sha512-g8FV5tzYh5dND9HRaTUBmACHyRK+Rco/4AarFSVe9JR2Y1+fi8iUsowO1szZKnbIqW1NoQ96LWfnhinuf9zvKw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-amplify/appsync-modelgen-plugin": "^2.11.0", "@aws-amplify/codegen-ui": "^2.19.4", @@ -4039,14 +4150,15 @@ "@graphql-codegen/typescript": "^2.8.3", "graphql": "^15.8.0", "node-fetch": "^3.3.2", - "prettier": "^2.8.7" + "prettier": "^3.5.3" } }, "node_modules/@aws-amplify/graphql-api-construct": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-api-construct/-/graphql-api-construct-1.16.0.tgz", - "integrity": "sha512-KmMLFvNLVf6qf5FbunDBA5KVKAYtfnhsFP2eLufa1uigrJUs7kF2gGTGrljuOxgKiKkI/2FlrLTTrjYZ1MqmfA==", + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-api-construct/-/graphql-api-construct-1.19.1.tgz", + "integrity": "sha512-AsM5qUYdMqlrA74qjCZs0lEEgUz42e0kAd10X7xc6ZQpxuq738FK9BVwzmhDjFEovaq7dj/AbEvwpuoaRoVeFQ==", "bundleDependencies": [ + "@aws-amplify/ai-constructs", "@aws-amplify/backend-output-schemas", "@aws-amplify/backend-output-storage", "@aws-amplify/graphql-auth-transformer", @@ -4066,58 +4178,50 @@ "@aws-amplify/graphql-transformer", "@aws-amplify/graphql-transformer-core", "@aws-amplify/graphql-transformer-interfaces", + "@aws-amplify/graphql-validate-transformer", "@aws-amplify/platform-core", "@aws-amplify/plugin-types", - "@aws-amplify/ai-constructs", - "@aws-sdk/client-bedrock-runtime", - "@smithy/eventstream-serde-browser", - "@smithy/eventstream-serde-config-resolver", - "@smithy/eventstream-serde-node", - "@smithy/eventstream-serde-universal", - "@smithy/eventstream-codec", "@aws-crypto/crc32", - "charenc", - "crypt", - "fs-extra", - "graceful-fs", - "graphql", - "graphql-mapping-template", - "graphql-transformer-common", - "hjson", - "immer", - "is-buffer", - "jsonfile", - "libphonenumber-js", - "lodash", - "md5", - "object-hash", - "pluralize", - "ts-dedent", - "universalify", - "zod", - "@aws-sdk/client-sts", - "is-ci", - "lodash.mergewith", - "uuid", "@aws-crypto/sha256-browser", "@aws-crypto/sha256-js", + "@aws-crypto/supports-web-crypto", + "@aws-crypto/util", + "@aws-sdk/client-bedrock-runtime", + "@aws-sdk/client-sso", "@aws-sdk/client-sso-oidc", + "@aws-sdk/client-sts", "@aws-sdk/core", + "@aws-sdk/credential-provider-env", + "@aws-sdk/credential-provider-http", + "@aws-sdk/credential-provider-ini", "@aws-sdk/credential-provider-node", + "@aws-sdk/credential-provider-process", + "@aws-sdk/credential-provider-sso", + "@aws-sdk/credential-provider-web-identity", "@aws-sdk/middleware-host-header", "@aws-sdk/middleware-logger", "@aws-sdk/middleware-recursion-detection", "@aws-sdk/middleware-user-agent", "@aws-sdk/region-config-resolver", + "@aws-sdk/token-providers", "@aws-sdk/types", "@aws-sdk/util-endpoints", + "@aws-sdk/util-locate-window", "@aws-sdk/util-user-agent-browser", "@aws-sdk/util-user-agent-node", + "@smithy/abort-controller", "@smithy/config-resolver", "@smithy/core", + "@smithy/credential-provider-imds", + "@smithy/eventstream-codec", + "@smithy/eventstream-serde-browser", + "@smithy/eventstream-serde-config-resolver", + "@smithy/eventstream-serde-node", + "@smithy/eventstream-serde-universal", "@smithy/fetch-http-handler", "@smithy/hash-node", "@smithy/invalid-dependency", + "@smithy/is-array-buffer", "@smithy/middleware-content-length", "@smithy/middleware-endpoint", "@smithy/middleware-retry", @@ -4125,74 +4229,83 @@ "@smithy/middleware-stack", "@smithy/node-config-provider", "@smithy/node-http-handler", + "@smithy/property-provider", "@smithy/protocol-http", + "@smithy/querystring-builder", + "@smithy/querystring-parser", + "@smithy/service-error-classification", + "@smithy/shared-ini-file-loader", + "@smithy/signature-v4", "@smithy/smithy-client", "@smithy/types", "@smithy/url-parser", "@smithy/util-base64", "@smithy/util-body-length-browser", "@smithy/util-body-length-node", + "@smithy/util-buffer-from", + "@smithy/util-config-provider", "@smithy/util-defaults-mode-browser", "@smithy/util-defaults-mode-node", "@smithy/util-endpoints", + "@smithy/util-hex-encoding", "@smithy/util-middleware", "@smithy/util-retry", + "@smithy/util-stream", + "@smithy/util-uri-escape", "@smithy/util-utf8", - "tslib", + "bowser", + "charenc", "ci-info", - "@aws-crypto/supports-web-crypto", - "@aws-crypto/util", - "@aws-sdk/util-locate-window", - "@smithy/signature-v4", + "crypt", "fast-xml-parser", - "@aws-sdk/credential-provider-env", - "@aws-sdk/credential-provider-http", - "@aws-sdk/credential-provider-ini", - "@aws-sdk/credential-provider-process", - "@aws-sdk/credential-provider-sso", - "@aws-sdk/credential-provider-web-identity", - "@smithy/credential-provider-imds", - "@smithy/property-provider", - "@smithy/shared-ini-file-loader", - "@smithy/util-config-provider", - "bowser", - "@smithy/querystring-builder", - "@smithy/util-buffer-from", - "@smithy/service-error-classification", - "@smithy/abort-controller", - "@smithy/util-stream", - "@smithy/querystring-parser", - "@smithy/is-array-buffer", - "@smithy/util-hex-encoding", - "@smithy/util-uri-escape", + "fs-extra", + "graceful-fs", + "graphql", + "graphql-mapping-template", + "graphql-transformer-common", + "hjson", + "immer", + "is-buffer", + "is-ci", + "jsonfile", + "libphonenumber-js", + "lodash", + "lodash.mergewith", + "lodash.snakecase", + "md5", + "object-hash", + "pluralize", + "semver", "strnum", - "@aws-sdk/token-providers", - "@aws-sdk/client-sso", - "semver" + "ts-dedent", + "tslib", + "universalify", + "uuid", + "zod" ], "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/ai-constructs": "^0.2.0", + "@aws-amplify/ai-constructs": "^1.2.4", "@aws-amplify/backend-output-schemas": "^1.0.0", "@aws-amplify/backend-output-storage": "^1.0.0", - "@aws-amplify/graphql-auth-transformer": "4.1.5", - "@aws-amplify/graphql-conversation-transformer": "0.5.0", - "@aws-amplify/graphql-default-value-transformer": "3.1.2", - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-function-transformer": "3.1.4", - "@aws-amplify/graphql-generation-transformer": "0.2.5", - "@aws-amplify/graphql-http-transformer": "3.0.7", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-maps-to-transformer": "4.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-predictions-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-searchable-transformer": "3.0.7", - "@aws-amplify/graphql-sql-transformer": "0.4.7", - "@aws-amplify/graphql-transformer": "2.1.5", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer": "2.3.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", "@aws-amplify/platform-core": "^1.0.0", "@aws-amplify/plugin-types": "^1.0.0", "@aws-crypto/crc32": "5.2.0", @@ -4275,8 +4388,8 @@ "fs-extra": "^8.1.0", "graceful-fs": "^4.2.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "hjson": "^3.2.2", "immer": "^9.0.12", "is-buffer": "~1.1.6", @@ -4285,6 +4398,7 @@ "libphonenumber-js": "1.9.47", "lodash": "^4.17.21", "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", "md5": "^2.2.1", "object-hash": "^3.0.0", "pluralize": "8.0.0", @@ -4297,27 +4411,61 @@ "zod": "^3.22.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/ai-constructs": { - "version": "0.2.0", + "version": "1.2.4", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/plugin-types": "^1.0.1", + "@aws-amplify/backend-output-schemas": "^1.4.0", + "@aws-amplify/platform-core": "^1.6.2", + "@aws-amplify/plugin-types": "^1.6.0", "@aws-sdk/client-bedrock-runtime": "^3.622.0", - "@smithy/types": "^3.3.0" + "@smithy/types": "^3.3.0", + "json-schema-to-ts": "^3.1.1" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core": { + "version": "1.6.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/plugin-types": "^1.8.0", + "@aws-sdk/client-sts": "^3.624.0", + "is-ci": "^3.0.1", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "semver": "^7.6.3", + "uuid": "^9.0.1", + "zod": "^3.22.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types": { + "version": "1.8.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/types": "^3.609.0", + "aws-cdk-lib": "^2.168.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/backend-output-schemas": { - "version": "1.2.0", + "version": "1.4.0", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -4326,310 +4474,314 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/backend-output-storage": { - "version": "1.1.1", + "version": "1.1.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.6" + "@aws-amplify/platform-core": "^1.0.6", + "@aws-amplify/plugin-types": "^1.3.1" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0" + "aws-cdk-lib": "^2.158.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-auth-transformer": { - "version": "4.1.5", + "version": "4.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "lodash": "^4.17.21", "md5": "^2.3.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-conversation-transformer": { - "version": "0.5.0", + "version": "1.1.9", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/ai-constructs": "^0.2.0", - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/ai-constructs": "^1.2.4", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/plugin-types": "^1.0.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12", "semver": "^7.6.3" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-default-value-transformer": { - "version": "3.1.2", + "version": "3.1.11", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "libphonenumber-js": "1.9.47" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-directives": { - "version": "2.4.0", + "version": "2.7.0", "dev": true, "inBundle": true, "license": "Apache-2.0" }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-function-transformer": { - "version": "3.1.4", + "version": "3.1.13", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-generation-transformer": { - "version": "0.2.5", + "version": "1.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-http-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-index-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-maps-to-transformer": { - "version": "4.0.7", + "version": "4.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-model-transformer": { - "version": "3.0.7", + "version": "3.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-predictions-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-relational-transformer": { - "version": "3.0.7", + "version": "3.1.8", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-searchable-transformer": { - "version": "3.0.7", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-sql-transformer": { - "version": "0.4.7", + "version": "0.4.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer": { - "version": "2.1.5", + "version": "2.3.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-auth-transformer": "4.1.5", - "@aws-amplify/graphql-conversation-transformer": "0.5.0", - "@aws-amplify/graphql-default-value-transformer": "3.1.2", - "@aws-amplify/graphql-function-transformer": "3.1.4", - "@aws-amplify/graphql-generation-transformer": "0.2.5", - "@aws-amplify/graphql-http-transformer": "3.0.7", - "@aws-amplify/graphql-index-transformer": "3.0.7", - "@aws-amplify/graphql-maps-to-transformer": "4.0.7", - "@aws-amplify/graphql-model-transformer": "3.0.7", - "@aws-amplify/graphql-predictions-transformer": "3.0.7", - "@aws-amplify/graphql-relational-transformer": "3.0.7", - "@aws-amplify/graphql-searchable-transformer": "3.0.7", - "@aws-amplify/graphql-sql-transformer": "0.4.7", - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2" + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", + "@aws-amplify/plugin-types": "^1.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-core": { - "version": "3.2.2", + "version": "3.4.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "fs-extra": "^8.1.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "hjson": "^3.2.2", "lodash": "^4.17.21", "md5": "^2.3.0", @@ -4637,12 +4789,12 @@ "ts-dedent": "^2.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-interfaces": { - "version": "4.1.2", + "version": "4.2.4", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -4650,12 +4802,26 @@ "graphql": "^15.5.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.158.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-validate-transformer": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + } + }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/platform-core": { - "version": "1.1.0", + "version": "1.2.0", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -4670,13 +4836,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/plugin-types": { - "version": "1.2.1", + "version": "1.4.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "peerDependencies": { "@aws-sdk/types": "^3.609.0", - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.158.0", "constructs": "^10.0.0" } }, @@ -4695,12 +4861,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/crc32/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -4723,12 +4889,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -4788,12 +4954,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -4821,12 +4987,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -4872,54 +5038,54 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/eventstream-serde-browser": "^3.0.7", - "@smithy/eventstream-serde-config-resolver": "^3.0.4", - "@smithy/eventstream-serde-node": "^3.0.6", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/client-sts": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/eventstream-serde-browser": "^3.0.12", + "@smithy/eventstream-serde-config-resolver": "^3.0.9", + "@smithy/eventstream-serde-node": "^3.0.11", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-stream": "^3.1.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-stream": "^3.3.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -4928,47 +5094,47 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -4977,48 +5143,48 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -5026,23 +5192,24 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.1", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-middleware": "^3.0.4", + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -5051,14 +5218,15 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5066,19 +5234,20 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-stream": "^3.1.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -5086,47 +5255,48 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-ini": "3.651.1", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5134,15 +5304,16 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5150,17 +5321,18 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.651.1", - "@aws-sdk/token-providers": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5168,32 +5340,33 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.649.0" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5201,13 +5374,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-logger": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5215,14 +5388,14 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5230,15 +5403,17 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5246,16 +5421,16 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.4", + "@smithy/util-middleware": "^3.0.9", "tslib": "^2.6.2" }, "engines": { @@ -5263,31 +5438,31 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/token-providers": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.649.0" + "@aws-sdk/client-sso-oidc": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5295,14 +5470,14 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-endpoints": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", - "@smithy/util-endpoints": "^2.1.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", "tslib": "^2.6.2" }, "engines": { @@ -5310,26 +5485,27 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5344,6 +5520,19 @@ } } }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sso": { "version": "3.637.0", "dev": true, @@ -5447,49 +5636,49 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -5498,47 +5687,47 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -5547,48 +5736,48 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -5596,23 +5785,24 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/core": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.1", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-middleware": "^3.0.4", + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -5621,14 +5811,15 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5636,19 +5827,20 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-stream": "^3.1.4", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -5656,47 +5848,48 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-ini": "3.651.1", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5704,15 +5897,16 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5720,17 +5914,18 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.651.1", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.651.1", - "@aws-sdk/token-providers": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5738,32 +5933,33 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.649.0" + "@aws-sdk/client-sts": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5771,13 +5967,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-logger": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5785,14 +5981,14 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5800,15 +5996,17 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5816,16 +6014,16 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.4", + "@smithy/util-middleware": "^3.0.9", "tslib": "^2.6.2" }, "engines": { @@ -5833,31 +6031,31 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/token-providers": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.649.0" + "@aws-sdk/client-sso-oidc": "^3.693.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/types": { - "version": "3.649.0", + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5865,14 +6063,14 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-endpoints": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", - "@smithy/util-endpoints": "^2.1.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", "tslib": "^2.6.2" }, "engines": { @@ -5880,26 +6078,27 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.649.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -5914,6 +6113,19 @@ } } }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/core": { "version": "3.635.0", "dev": true, @@ -6195,7 +6407,7 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -6242,12 +6454,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/abort-controller": { - "version": "3.1.4", + "version": "3.1.8", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6255,15 +6467,15 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/config-resolver": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", + "@smithy/util-middleware": "^3.0.10", "tslib": "^2.6.2" }, "engines": { @@ -6271,19 +6483,17 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/core": { - "version": "2.4.3", + "version": "2.5.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.3", - "@smithy/middleware-retry": "^3.0.18", - "@smithy/middleware-serde": "^3.0.6", - "@smithy/protocol-http": "^4.1.3", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-stream": "^3.3.1", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -6292,15 +6502,15 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/credential-provider-imds": { - "version": "3.2.3", + "version": "3.2.7", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/property-provider": "^3.1.6", - "@smithy/types": "^3.4.2", - "@smithy/url-parser": "^3.0.6", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", "tslib": "^2.6.2" }, "engines": { @@ -6308,25 +6518,25 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-codec": { - "version": "3.1.5", + "version": "3.1.9", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "@smithy/util-hex-encoding": "^3.0.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.9", + "version": "3.0.13", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.8", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6334,12 +6544,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6347,13 +6557,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.8", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6361,13 +6571,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^3.1.5", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-codec": "^3.1.9", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6375,25 +6585,25 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/fetch-http-handler": { - "version": "3.2.7", + "version": "3.2.9", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.3", - "@smithy/querystring-builder": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/hash-node": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" @@ -6403,12 +6613,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/invalid-dependency": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" } }, @@ -6425,13 +6635,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-content-length": { - "version": "3.0.8", + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6439,17 +6649,18 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-endpoint": { - "version": "3.1.3", + "version": "3.2.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^3.0.6", - "@smithy/node-config-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", - "@smithy/url-parser": "^3.0.6", - "@smithy/util-middleware": "^3.0.6", + "@smithy/core": "^2.5.3", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-middleware": "^3.0.10", "tslib": "^2.6.2" }, "engines": { @@ -6457,18 +6668,18 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-retry": { - "version": "3.0.18", + "version": "3.0.27", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.3", - "@smithy/service-error-classification": "^3.0.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", - "@smithy/util-middleware": "^3.0.6", - "@smithy/util-retry": "^3.0.6", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/protocol-http": "^4.1.7", + "@smithy/service-error-classification": "^3.0.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", "tslib": "^2.6.2", "uuid": "^9.0.1" }, @@ -6477,12 +6688,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-serde": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6490,12 +6701,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-stack": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6503,14 +6714,14 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", + "version": "3.1.11", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^3.1.10", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6518,15 +6729,15 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/node-http-handler": { - "version": "3.2.2", + "version": "3.3.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.1.4", - "@smithy/protocol-http": "^4.1.3", - "@smithy/querystring-builder": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/abort-controller": "^3.1.8", + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6534,12 +6745,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/property-provider": { - "version": "3.1.6", + "version": "3.1.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6547,12 +6758,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/protocol-http": { - "version": "4.1.3", + "version": "4.1.7", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6560,12 +6771,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/querystring-builder": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "@smithy/util-uri-escape": "^3.0.0", "tslib": "^2.6.2" }, @@ -6574,12 +6785,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/querystring-parser": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6587,24 +6798,24 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/service-error-classification": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2" + "@smithy/types": "^3.7.1" }, "engines": { "node": ">=16.0.0" } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", + "version": "3.1.11", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6612,16 +6823,16 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/signature-v4": { - "version": "4.1.3", + "version": "4.2.3", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", + "@smithy/util-middleware": "^3.0.10", "@smithy/util-uri-escape": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" @@ -6631,16 +6842,17 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/smithy-client": { - "version": "3.3.2", + "version": "3.4.4", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.3", - "@smithy/middleware-stack": "^3.0.6", - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", - "@smithy/util-stream": "^3.1.6", + "@smithy/core": "^2.5.3", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-stream": "^3.3.1", "tslib": "^2.6.2" }, "engines": { @@ -6648,7 +6860,7 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/types": { - "version": "3.4.2", + "version": "3.7.1", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -6660,13 +6872,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/url-parser": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/querystring-parser": "^3.0.10", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" } }, @@ -6731,14 +6943,14 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.18", + "version": "3.0.27", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", "bowser": "^2.11.0", "tslib": "^2.6.2" }, @@ -6747,17 +6959,17 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.18", + "version": "3.0.27", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^3.0.8", - "@smithy/credential-provider-imds": "^3.2.3", - "@smithy/node-config-provider": "^3.1.7", - "@smithy/property-provider": "^3.1.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/config-resolver": "^3.0.12", + "@smithy/credential-provider-imds": "^3.2.7", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6765,13 +6977,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-endpoints": { - "version": "2.1.2", + "version": "2.1.6", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6791,12 +7003,12 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-middleware": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6804,13 +7016,13 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-retry": { - "version": "3.0.6", + "version": "3.0.10", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/service-error-classification": "^3.0.10", + "@smithy/types": "^3.7.1", "tslib": "^2.6.2" }, "engines": { @@ -6818,14 +7030,14 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-stream": { - "version": "3.1.6", + "version": "3.3.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^3.2.7", - "@smithy/node-http-handler": "^3.2.2", - "@smithy/types": "^3.4.2", + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/types": "^3.7.1", "@smithy/util-base64": "^3.0.0", "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-hex-encoding": "^3.0.0", @@ -6836,6 +7048,19 @@ "node": ">=16.0.0" } }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-uri-escape": { "version": "3.0.0", "dev": true, @@ -6952,19 +7177,19 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql-mapping-template": { - "version": "5.0.1", + "version": "5.0.2", "dev": true, "inBundle": true, "license": "Apache-2.0" }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql-transformer-common": { - "version": "5.1.0", + "version": "5.1.2", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", + "graphql-mapping-template": "5.0.2", "md5": "^2.2.1", "pluralize": "8.0.0" } @@ -7033,11 +7258,17 @@ "inBundle": true, "license": "MIT" }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/md5": { - "version": "2.3.0", + "node_modules/@aws-amplify/graphql-api-construct/node_modules/lodash.snakecase": { + "version": "4.1.1", "dev": true, "inBundle": true, - "license": "BSD-3-Clause", + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/md5": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", "dependencies": { "charenc": "0.0.2", "crypt": "0.0.2", @@ -7090,7 +7321,7 @@ } }, "node_modules/@aws-amplify/graphql-api-construct/node_modules/tslib": { - "version": "2.7.0", + "version": "2.8.1", "dev": true, "inBundle": true, "license": "0BSD" @@ -7130,15 +7361,13 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-directives/-/graphql-directives-1.1.0.tgz", "integrity": "sha512-rcGfm8DsnD7Em1wYgNoq7yO+cE22mM0ssFYRWnHGsZOMX9Lh25HP1Ympt633V+raaTK3ND0gAlbVLxXzCN8XOg==", - "dev": true, - "license": "Apache-2.0" + "dev": true }, "node_modules/@aws-amplify/graphql-docs-generator": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-docs-generator/-/graphql-docs-generator-4.2.1.tgz", "integrity": "sha512-ReBlY5//mWOmO0FL2ndswB9ku+vpg/JTY9Wwemjm/ibyoLHU1ojtGkPBkKH0CzbpOkIuEkIBLIg9EZ2yca/6oA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "graphql": "^15.5.0", "handlebars": "4.7.7", @@ -7151,35 +7380,44 @@ "node": ">=10.0.0" } }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@aws-amplify/graphql-docs-generator/node_modules/cliui": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^6.2.0" } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { "node": ">=8" @@ -7189,15 +7427,13 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/@aws-amplify/graphql-docs-generator/node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -7220,7 +7456,6 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -7230,96 +7465,29 @@ } }, "node_modules/@aws-amplify/graphql-generator": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-generator/-/graphql-generator-0.4.7.tgz", - "integrity": "sha512-/qvbd2A9E0adBQxNgQ9QMxyRjexborSDT5evz1Ytr/imOd2MGNNEQEhzlHSc5Lt3L4m+H3l8dFb/V7IHbx5vzw==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-generator/-/graphql-generator-0.5.3.tgz", + "integrity": "sha512-vU3sLcVi0rwu0k+jepKSRcyb9igKJx3VAmXy/aRd7ggXPiw3uu8pZOVFQqZxOV5Ro5awMGCdLR6gSrpX6+1ADQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/appsync-modelgen-plugin": "2.13.2", + "@aws-amplify/appsync-modelgen-plugin": "2.15.2", "@aws-amplify/graphql-directives": "^1.0.1", "@aws-amplify/graphql-docs-generator": "4.2.1", "@aws-amplify/graphql-types-generator": "3.6.0", "@graphql-codegen/core": "^2.6.6", + "@graphql-codegen/plugin-helpers": "^3.1.1", "@graphql-tools/apollo-engine-loader": "^8.0.0", + "@graphql-tools/schema": "^9.0.0", + "@graphql-tools/utils": "^9.2.1", "graphql": "^15.5.0", "prettier": "^1.19.1" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@aws-amplify/appsync-modelgen-plugin": { - "version": "2.13.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/appsync-modelgen-plugin/-/appsync-modelgen-plugin-2.13.2.tgz", - "integrity": "sha512-gJrOHUnjSCevCNCfFinSB1fHDaOgWIjo+HDj68rcDlYBJz3S43R7yUFy5O3Lv6mQ5EbgNjUCNJ6rPLjMPuzaXw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^1.18.8", - "@graphql-codegen/visitor-plugin-common": "^1.22.0", - "@graphql-tools/utils": "^6.0.18", - "chalk": "^3.0.0", - "change-case": "^4.1.1", - "graphql-transformer-common": "^4.25.1", - "lower-case-first": "^2.0.1", - "pluralize": "^8.0.0", - "strip-indent": "^3.0.0", - "ts-dedent": "^1.1.0" - }, - "peerDependencies": { - "graphql": "^15.5.0" - } - }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@aws-amplify/appsync-modelgen-plugin/node_modules/@graphql-codegen/plugin-helpers": { - "version": "1.18.8", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.18.8.tgz", - "integrity": "sha512-mb4I9j9lMGqvGggYuZ0CV+Hme08nar68xkpPbAVotg/ZBmlhZIok/HqW2BcMQi7Rj+Il5HQMeQ1wQ1M7sv/TlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^7.9.1", - "common-tags": "1.8.0", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.3.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" - } - }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@aws-amplify/appsync-modelgen-plugin/node_modules/@graphql-codegen/plugin-helpers/node_modules/@graphql-tools/utils": { - "version": "7.10.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.10.0.tgz", - "integrity": "sha512-d334r6bo9mxdSqZW6zWboEnnOOFRrAPVQJ7LkU8/6grglrbcu6WhwCLzHb90E94JI3TD3ricC3YGbUqIi9Xg0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@ardatan/aggregate-error": "0.0.6", - "camel-case": "4.1.2", - "tslib": "~2.2.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0" - } - }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@aws-amplify/appsync-modelgen-plugin/node_modules/@graphql-codegen/plugin-helpers/node_modules/@graphql-tools/utils/node_modules/tslib": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", - "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", - "dev": true, - "license": "0BSD" - }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@aws-amplify/appsync-modelgen-plugin/node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true, - "license": "0BSD" - }, "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core": { "version": "2.6.8", "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-2.6.8.tgz", "integrity": "sha512-JKllNIipPrheRgl+/Hm/xuWMw9++xNQ12XJR/OHHgFopOg4zmN3TdlRSyYcv/K90hCFkkIwhlHFUQTfKrm8rxQ==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.1", "@graphql-tools/schema": "^9.0.0", @@ -7330,42 +7498,11 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema": { - "version": "9.0.19", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.19.tgz", - "integrity": "sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/merge": "^8.4.1", - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema/node_modules/@graphql-tools/merge": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.4.2.tgz", - "integrity": "sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" - } - }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils": { + "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-tools/utils": { "version": "9.2.1", "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -7374,33 +7511,11 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/@aws-amplify/graphql-generator/node_modules/common-tags": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", - "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/@aws-amplify/graphql-generator/node_modules/prettier": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", "dev": true, - "license": "MIT", "bin": { "prettier": "bin-prettier.js" }, @@ -7412,18 +7527,16 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@aws-amplify/graphql-schema-generator": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-schema-generator/-/graphql-schema-generator-0.11.0.tgz", - "integrity": "sha512-c5pDuoh8UWD0qQ2N4HjR3ZC/JO6ai8DrsK40oQKwQhG2V/VkxUGdqsg0B9nYiKepxiTw0gXabLq8JfwW4o8uBg==", + "version": "0.11.9", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-schema-generator/-/graphql-schema-generator-0.11.9.tgz", + "integrity": "sha512-C/ZjBJAhR8RMnCUuKyLaUXoDPDntOFfnCLwEysoPGZ6pKufvCzoK2j4v5KnMPq1kERJyKSS+Zm7d1XLQaA6/Dg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-transformer-core": "3.2.2", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "@aws-sdk/client-ec2": "3.624.0", "@aws-sdk/client-iam": "3.624.0", "@aws-sdk/client-lambda": "3.624.0", @@ -7431,7 +7544,7 @@ "csv-parse": "^5.5.2", "fs-extra": "11.1.1", "graphql": "^15.5.0", - "graphql-transformer-common": "5.1.0", + "graphql-transformer-common": "5.1.2", "knex": "~2.4.0", "mysql2": "~3.9.7", "ora": "^4.0.3", @@ -7445,7 +7558,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.624.0.tgz", "integrity": "sha512-bfhFeg6LoC6AFM68+Gyogq9UpyW83Jwkwobo9CtxSTfaNIOYdKgTOdYtn4pM/bRYrWon4CstJQymIsPbY7ra5Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -7503,62 +7615,10 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", - "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", - "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", @@ -7597,9 +7657,6 @@ }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" } }, "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-sts": { @@ -7607,7 +7664,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -7659,7 +7715,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/core": "^2.3.2", "@smithy/node-config-provider": "^3.1.4", @@ -7680,7 +7735,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -7696,7 +7750,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/fetch-http-handler": "^3.2.4", @@ -7717,7 +7770,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -7743,7 +7795,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -7767,7 +7818,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -7784,7 +7834,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-sso": "3.624.0", "@aws-sdk/token-providers": "3.614.0", @@ -7798,12 +7847,30 @@ "node": ">=16.0.0" } }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" + } + }, "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-web-identity": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -7822,7 +7889,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -7838,7 +7904,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -7853,7 +7918,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -7869,7 +7933,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@aws-sdk/util-endpoints": "3.614.0", @@ -7886,7 +7949,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -7899,32 +7961,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" - } - }, "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/types": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -7938,7 +7979,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -7954,7 +7994,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -7967,7 +8006,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -7986,968 +8024,4917 @@ } } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/node-config-provider": { + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/abort-controller": { "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.14" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/graphql-transformer-common": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-5.1.0.tgz", - "integrity": "sha512-i1Ja0bjlsrSNT5TzjGOrPyxYGJPTutDOLTJENcGC47+KYzMfQS80KpVpUZlIVlcCbDYeSZbv8HaMtJlJpmjbmw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "md5": "^2.2.1", - "pluralize": "8.0.0" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-codec": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-3.1.10.tgz", + "integrity": "sha512-323B8YckSbUH0nMIpXn7HZsAVKHYHFUODa8gG9cHo0ySvA1fr5iWaNT+iIL0UCqUzG6QPHA3BSsBtRQou4mMqQ==", "dev": true, - "license": "MIT", "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-browser": { + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.14.tgz", + "integrity": "sha512-kbrt0vjOIihW3V7Cqj1SXQvAI5BR8SnyQYsandva0AOR307cXAc+IhPngxIPslxTLfxwDpNu0HzCAq6g42kCPg==", "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "dependencies": { + "@smithy/eventstream-serde-universal": "^3.0.13", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=4.2.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-config-resolver": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.11.tgz", + "integrity": "sha512-P2pnEp4n75O+QHjyO7cbw/vsw5l93K/8EWyjNCAAybYwUmj3M+hjSQZ9P5TVdUgEG08ueMAP5R4FkuSkElZ5tQ==", "dev": true, - "license": "MIT", + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, "engines": { - "node": ">= 10.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-transformer-core": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-core/-/graphql-transformer-core-3.2.2.tgz", - "integrity": "sha512-nHocW0Uy/pHrrt5iMFMzz+9IsJKnaPk9BcWZHcQSJ/9F0Kn0s/vIFT5/Ee2nJFN/h0VK3fTkT9QKOuiQ4UH3Jg==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-node": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.13.tgz", + "integrity": "sha512-zqy/9iwbj8Wysmvi7Lq7XFLeDgjRpTbCfwBhJa8WbrylTAHiAu6oQTwdY7iu2lxigbc9YYr9vPv5SzYny5tCXQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.4.0", - "@aws-amplify/graphql-transformer-interfaces": "4.1.2", - "fs-extra": "^8.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.1.0", - "hjson": "^3.2.2", - "lodash": "^4.17.21", - "md5": "^2.3.0", - "object-hash": "^3.0.0", - "ts-dedent": "^2.0.0" + "@smithy/eventstream-serde-universal": "^3.0.13", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.158.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-transformer-core/node_modules/@aws-amplify/graphql-directives": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-directives/-/graphql-directives-2.4.0.tgz", - "integrity": "sha512-+oO9Lb22eIuS8rvLOR+x4F79J5aCF1GIkqYS0paRUTw78NjLTOq1LWjtGMYAfLpbHgoYtrkC2zwpw7sHbmNnzQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-universal": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.13.tgz", + "integrity": "sha512-L1Ib66+gg9uTnqp/18Gz4MDpJPKRE44geOjOQ2SVc0eiaO5l255ADziATZgjQjqumC7yPtp1XnjHlF1srcwjKw==", "dev": true, - "license": "Apache-2.0" + "dependencies": { + "@smithy/eventstream-codec": "^3.1.10", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/graphql-transformer-core/node_modules/graphql-transformer-common": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-5.1.0.tgz", - "integrity": "sha512-i1Ja0bjlsrSNT5TzjGOrPyxYGJPTutDOLTJENcGC47+KYzMfQS80KpVpUZlIVlcCbDYeSZbv8HaMtJlJpmjbmw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "md5": "^2.2.1", - "pluralize": "8.0.0" + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-transformer-core/node_modules/ts-dedent": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", - "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", "dev": true, - "license": "MIT", + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, "engines": { - "node": ">=6.10" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-transformer-interfaces": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-interfaces/-/graphql-transformer-interfaces-4.1.2.tgz", - "integrity": "sha512-fW4BIo2stFYOc6LDrSDKW0NTKmBp/c+UJUG5YjDef5fUUTbE8RZMzUGgSjgzDgwXpAT8CyYuncqMLchVkQSFFQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0" - }, - "peerDependencies": { - "aws-cdk-lib": "^2.158.0", - "constructs": "^10.3.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-types-generator": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-types-generator/-/graphql-types-generator-3.6.0.tgz", - "integrity": "sha512-yjPXJ2dYZwtGvwwcEQ5RDNlwTsd/hUfD2Dgguo999Gu3mQjz7nV4l7CXD/Oxo/QzwtU/4rmTX69yadBpR+he3A==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "(MIT OR Apache-2.0)", "dependencies": { - "@babel/generator": "7.0.0-beta.4", - "@babel/types": "7.0.0-beta.4", - "babel-generator": "^6.26.1", - "babel-types": "^6.26.0", - "change-case": "^4.1.1", - "common-tags": "^1.8.0", - "core-js": "^3.6.4", - "fs-extra": "^8.1.0", - "globby": "^11.1.0", - "graphql": "^15.5.0", - "inflected": "^2.0.4", - "prettier": "^1.19.1", - "rimraf": "^3.0.0", - "source-map-support": "^0.5.16", - "yargs": "^15.1.0" - }, - "bin": { - "graphql-types-generator": "lib/cli.js" + "tslib": "^2.6.2" }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dev": true, - "license": "ISC", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin-prettier.js" + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" }, "engines": { - "node": ">=4" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dev": true, - "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "ISC" + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "license": "MIT", "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "ISC", "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=6" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/model-generator": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@aws-amplify/model-generator/-/model-generator-1.0.8.tgz", - "integrity": "sha512-raf8S+d6qRhQDCahsV6QxEOTLWrdahscNdCCuC0NECqxueFZEy6Ju9LUiYUQrqXQafjfpNm88+fTWRFCcHJw4w==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.1.0", - "@aws-amplify/deployed-backend-client": "^1.4.1", - "@aws-amplify/graphql-generator": "^0.4.0", - "@aws-amplify/graphql-types-generator": "^3.6.0", - "@aws-amplify/platform-core": "^1.0.5", - "@aws-amplify/plugin-types": "^1.3.0", - "@aws-sdk/client-appsync": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0", - "@aws-sdk/credential-providers": "^3.624.0", - "@aws-sdk/types": "^3.609.0", - "graphql": "^15.8.0" + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-amplify": "^3.624.0", - "@aws-sdk/client-cloudformation": "^3.624.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/notifications": { - "version": "2.0.48", - "resolved": "https://registry.npmjs.org/@aws-amplify/notifications/-/notifications-2.0.48.tgz", - "integrity": "sha512-e5Hby3ifM9+AjLbYDSffQfTH9aAjbK/HHp4fGRxXr/zOzBFc2o4pGUZgh2Jjf3fz23/DbH+6TSv7EvFCE2GGIw==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", + "dev": true, "dependencies": { - "lodash": "^4.17.21", - "tslib": "^2.5.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-amplify/core": "^6.1.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/platform-core": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/platform-core/-/platform-core-1.2.0.tgz", - "integrity": "sha512-/bRCU8NxcsSH0BlY/iDFFdmhqdZcPmHg0LCek/swL4XczNmwOMXYqP3wqqA+75PqamRmDSTC5Dj67iZUjw68bw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/plugin-types": "^1.2.1", - "@aws-sdk/client-sts": "^3.624.0", - "is-ci": "^3.0.1", - "lodash.mergewith": "^4.6.2", - "semver": "^7.6.3", - "uuid": "^9.0.1", - "zod": "^3.22.2" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/plugin-types": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/plugin-types/-/plugin-types-1.3.1.tgz", - "integrity": "sha512-irgnW4f4wBWCSwPWbVpZjbsnOXgyhGptSAes6zOo1UZ6j74dpnjnz8SiPeBCsgDYuku8Vi1RwUGdWakd+Wd5Jw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", - "peerDependencies": { - "@aws-sdk/types": "^3.609.0", - "aws-cdk-lib": "^2.158.0", - "constructs": "^10.0.0" + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/sandbox": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@aws-amplify/sandbox/-/sandbox-1.2.5.tgz", - "integrity": "sha512-7RLLGw/waA0QNWqWEwBmtLDoJd4DzS4fmm5GwF10Zr0fLgu9xaitHRuBRzDXa0ftgVmBfJIPTx8xG/NpM0FN4w==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-deployer": "^1.1.8", - "@aws-amplify/backend-secret": "^1.1.2", - "@aws-amplify/cli-core": "^1.2.0", - "@aws-amplify/client-config": "^1.5.1", - "@aws-amplify/deployed-backend-client": "^1.4.1", - "@aws-amplify/platform-core": "^1.2.0", - "@aws-amplify/plugin-types": "^1.3.1", - "@aws-sdk/client-cloudwatch-logs": "^3.624.0", - "@aws-sdk/client-lambda": "^3.624.0", - "@aws-sdk/client-ssm": "^3.624.0", - "@aws-sdk/credential-providers": "^3.624.0", - "@aws-sdk/types": "^3.609.0", - "@parcel/watcher": "^2.4.1", - "debounce-promise": "^3.1.2", - "glob": "^10.2.7", - "open": "^9.1.0", - "parse-gitignore": "^2.0.0" + "@smithy/types": "^3.7.2" }, - "peerDependencies": { - "aws-cdk": "^2.158.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/schema-generator": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@aws-amplify/schema-generator/-/schema-generator-1.2.5.tgz", - "integrity": "sha512-kAnerkcM0r++q/sU1TmTYQDZpYNA2WVPc6wD2Ms/Q0CESs0w3coVHc8gvdlPQEN1CxogLuEyHA0ggVrBq3wRaQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-schema-generator": "^0.11.0", - "@aws-amplify/platform-core": "^1.0.5" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/storage": { - "version": "6.6.6", - "resolved": "https://registry.npmjs.org/@aws-amplify/storage/-/storage-6.6.6.tgz", - "integrity": "sha512-7DGbWLHMU6aMDY6ED3ynj9/6OGZH9RdNqxxdoTvRRZgR8L1zqSj2uDBLvRY6pjRKOmJ55HEhxq0xpt+QD/zJCg==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.398.0", - "@smithy/md5-js": "2.0.7", - "buffer": "4.9.2", - "fast-xml-parser": "^4.4.1", - "tslib": "^2.5.0" + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-amplify/core": "^6.1.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/storage/node_modules/@aws-sdk/types": { - "version": "3.398.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.398.0.tgz", - "integrity": "sha512-r44fkS+vsEgKCuEuTV+TIk0t0m5ZlXHNjSDYEUvzLStbbfUFiNus/YG4UCa0wOk9R7VuQI67badsvvPeVPCGDQ==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", + "dev": true, "dependencies": { - "@smithy/types": "^2.2.2", - "tslib": "^2.5.0" + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/storage/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", + "dev": true, "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/storage/node_modules/@smithy/md5-js": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-2.0.7.tgz", - "integrity": "sha512-2i2BpXF9pI5D1xekqUsgQ/ohv5+H//G9FlawJrkOJskV18PgJ8LiNbLiskMeYt07yAsSTZR7qtlcAaa/GQLWww==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dev": true, "dependencies": { - "@smithy/types": "^2.3.1", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.5.0" + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/storage/node_modules/@smithy/types": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", - "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dev": true, "dependencies": { "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-amplify/storage/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", + "dev": true, "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/storage/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-cdk/asset-awscli-v1": { - "version": "2.2.225", - "resolved": "https://registry.npmjs.org/@aws-cdk/asset-awscli-v1/-/asset-awscli-v1-2.2.225.tgz", - "integrity": "sha512-fMPfR7PwiwQZwAux9tQ5LRrFJJfl5Vp3kR8GMc+H/PA/wql9+w8mk5gs6SDpwBFpT7n3XkZ5H98Ns5+g7/WMIg==", - "dev": true - }, - "node_modules/@aws-cdk/asset-node-proxy-agent-v6": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.1.0.tgz", - "integrity": "sha512-7bY3J8GCVxLupn/kNmpPc5VJz8grx+4RKfnnJiO1LG+uxkZfANZG3RMHhE+qQxxwkyQ9/MfPtTpf748UhR425A==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/@aws-cdk/cloud-assembly-schema": { - "version": "39.2.20", - "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-39.2.20.tgz", - "integrity": "sha512-RI7S8jphGA8mak154ElnEJQPNTTV4PZmA7jgqnBBHQGyOPJIXxtACubNQ5m4YgjpkK3UJHsWT+/cOAfM/Au/Wg==", - "bundleDependencies": [ - "jsonschema", - "semver" - ], + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, "dependencies": { - "jsonschema": "~1.4.1", - "semver": "^7.7.1" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { - "version": "1.4.1", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "*" + "node": ">= 10.0.0" } }, - "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { - "version": "7.7.1", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dev": true, - "inBundle": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=10" + "node": ">= 10.0.0" } }, - "node_modules/@aws-crypto/cache-material": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/cache-material/-/cache-material-4.0.1.tgz", - "integrity": "sha512-3o5EFv1H2JOKdIYbgQuegSyOgqZaIqx75/FKjlQMfoCp1FwivbKyUWje/KRobl7cJuHiIgVix0/UrMG6PAm1zA==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/material-management": "^4.0.1", - "@aws-crypto/serialize": "^4.0.1", - "@types/lru-cache": "^5.1.0", - "lru-cache": "^6.0.0", - "tslib": "^2.2.0" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/caching-materials-manager-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/caching-materials-manager-node/-/caching-materials-manager-node-4.0.1.tgz", - "integrity": "sha512-NFdKIWyQa0r+z2jjuwow8UkGA+iiZj0WX76EspOBiLiY9PcLsczsPUwSD3QR4hipldptaC18t9h2HQrWGtiwMA==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/cache-material": "^4.0.1", - "@aws-crypto/material-management-node": "^4.0.1", - "tslib": "^2.2.0" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/client-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/client-node/-/client-node-4.0.1.tgz", - "integrity": "sha512-tKd63z1m761HVFzIV6RMR+GsMWEaY5ETUhl5B+tIxSbRmfipwZ/VS65camZOpTjg9lZQupAzWftTgeDzBCbhnw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/caching-materials-manager-node": "^4.0.1", - "@aws-crypto/decrypt-node": "^4.0.1", - "@aws-crypto/encrypt-node": "^4.0.1", - "@aws-crypto/kms-keyring-node": "^4.0.1", - "@aws-crypto/material-management-node": "^4.0.1", - "@aws-crypto/raw-aes-keyring-node": "^4.0.1", - "@aws-crypto/raw-rsa-keyring-node": "^4.0.1", - "tslib": "^2.2.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/crc32": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", - "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", + "dev": true, "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/crc32c": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz", - "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/decrypt-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/decrypt-node/-/decrypt-node-4.0.1.tgz", - "integrity": "sha512-y4k8lht/d1twedcncdtXeVTBuLFLDPRWffnDabNQfQBh1ZkYa7G++bO006t0RPlMS1Qi3yb8NcgpNoQHmrk0Aw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/material-management-node": "^4.0.1", - "@aws-crypto/serialize": "^4.0.1", - "@types/duplexify": "^3.6.0", - "duplexify": "^4.1.1", - "readable-stream": "^3.6.0", - "tslib": "^2.2.0" + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-crypto/encrypt-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/encrypt-node/-/encrypt-node-4.0.1.tgz", - "integrity": "sha512-NZ9X9g/A7BV4UNrysRbOCQ4oHB3EkYVmsCt7tgCh+Dd28fknxJIHfJ6nZiI+9ey0lbkl5Tin/fn9eVR/vjYN2Q==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/material-management-node": "^4.0.1", - "@aws-crypto/serialize": "^4.0.1", - "@types/duplexify": "^3.6.0", - "duplexify": "^4.1.3", - "readable-stream": "^3.6.0", - "tslib": "^2.2.0" + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/hkdf-node": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/hkdf-node/-/hkdf-node-4.0.0.tgz", - "integrity": "sha512-FytH3TF9c0OP+vnicc4YJoxoFoLajdRzzuRchDHmh4yXk32lj/HzgXGPfj+kSyy0chkh4XVONh2/zMRmqsA/hQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "tslib": "^2.2.0" + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/kms-keyring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/kms-keyring/-/kms-keyring-4.0.1.tgz", - "integrity": "sha512-v3xB6Bpqo4nw9E5e/ShepFQmDvox2KhIBQK9hSspT1pnwEJtYHkdE1z+gvJJPqCRT2ujQ6R6CUXuSZ2Qk2reXg==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/material-management": "^4.0.1", - "tslib": "^2.2.0" + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/@aws-crypto/kms-keyring-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/kms-keyring-node/-/kms-keyring-node-4.0.1.tgz", - "integrity": "sha512-actQVBnhUa13m3EcZUNIZhIxls40C2GviW2k+cWpyH0/Zunv7XKVSzhWPmGndhqe1ZB7aZWaoeWdgIFxdXiiUw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/kms-keyring": "^4.0.1", - "@aws-crypto/material-management-node": "^4.0.1", - "@aws-sdk/client-kms": "^3.362.0", - "tslib": "^2.2.0" + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/@aws-crypto/material-management": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/material-management/-/material-management-4.0.1.tgz", - "integrity": "sha512-0joCJ3QlU3cIucsX4C14jBA7aXE3UuePLZaHYrpAeCY2cWv9BqyFNwZd1YhsGu9MksHFHZxDukdTndDIFvnK9g==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "asn1.js": "^5.3.0", - "bn.js": "^5.1.1", - "tslib": "^2.2.0" + "color-name": "1.1.3" } }, - "node_modules/@aws-crypto/material-management-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/material-management-node/-/material-management-node-4.0.1.tgz", - "integrity": "sha512-kH/l6XS0uS1xoYt1WmmtEI6b5suiUOb2ibs1YmzsOJh28bd0SEGofuUWkO8LV2qwwrlsFce12gXf6/8G1HcqkQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/hkdf-node": "^4.0.0", - "@aws-crypto/material-management": "^4.0.1", - "@aws-crypto/serialize": "^4.0.1", - "tslib": "^2.2.0" - } + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true }, - "node_modules/@aws-crypto/raw-aes-keyring-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/raw-aes-keyring-node/-/raw-aes-keyring-node-4.0.1.tgz", - "integrity": "sha512-qVkhocO0fN9dWv8+hBuEQn6XO7Rp79jPpN8Tw9hLEFpGonkZdNbBp4O7s2c5Nn1G4VMCHvTNHmkjZm7/lcAPzw==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/fs-extra": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/material-management-node": "^4.0.1", - "@aws-crypto/raw-keyring": "^4.0.1", - "@aws-crypto/serialize": "^4.0.1", - "tslib": "^2.2.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" } }, - "node_modules/@aws-crypto/raw-keyring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/raw-keyring/-/raw-keyring-4.0.1.tgz", - "integrity": "sha512-scOSi1BP+uiwsKTvlAoNKXfv4eI9b7bcy+Fkyc3Ci7S5jzqua2OwnmNXanBHPcF4W/ziHhZJ5K2Vm84iz8gz/Q==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/graphql-transformer-common": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-5.1.2.tgz", + "integrity": "sha512-uKE2KWYJTWGe8Hcwm7WIy4TSEKTF6MFXeUPDvixlAGgTFkGJ1p/fjecOy2odxzVY/T3qLpL5c8Hij54pz+oZng==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/material-management": "^4.0.1", - "@aws-crypto/serialize": "^4.0.1", - "tslib": "^2.2.0" + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "md5": "^2.2.1", + "pluralize": "8.0.0" } }, - "node_modules/@aws-crypto/raw-rsa-keyring-node": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/raw-rsa-keyring-node/-/raw-rsa-keyring-node-4.0.1.tgz", - "integrity": "sha512-UZUKTH14dnfGpjD7/+tMHEIJpi6w3vcPJ90+Ipa8daNEE1PdVb33nXpzfcqmi9Oyhmhpwmfd1xzZ/drobCTVMA==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/material-management-node": "^4.0.1", - "@aws-crypto/raw-keyring": "^4.0.1", - "tslib": "^2.2.0" + "engines": { + "node": ">=4" } }, - "node_modules/@aws-crypto/serialize": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@aws-crypto/serialize/-/serialize-4.0.1.tgz", - "integrity": "sha512-Axd/lRGxbUgsAAO7TH/3QrzpozkfthpR9e4cY1HZzmvsZRNBpgj9CkwrGsDmuRNFMMvS7XQNXJ3cfFkn3S+toQ==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/material-management": "^4.0.1", - "asn1.js": "^5.3.0", - "bn.js": "^5.1.1", - "tslib": "^2.2.0" + "engines": { + "node": ">=8" } }, - "node_modules/@aws-crypto/sha1-browser": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz", - "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/log-symbols": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", + "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "tslib": "^2.6.2" + "chalk": "^2.4.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=8" } }, - "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/log-symbols/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=4" } }, - "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", - "tslib": "^2.6.2" + "mimic-fn": "^2.1.0" }, "engines": { - "node": ">=14.0.0" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", - "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/ora": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-4.1.1.tgz", + "integrity": "sha512-sjYP8QyVWBpBZWD6Vr1M/KwknSw6kJOz41tvGMlwWeClHBtYKTbHMki1PsLZnxKpXMPbTKv9b3pjQu3REib96A==", + "dev": true, "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", - "tslib": "^2.6.2" + "chalk": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.2.0", + "is-interactive": "^1.0.0", + "log-symbols": "^3.0.0", + "mute-stream": "0.0.8", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, "dependencies": { - "tslib": "^2.6.2" + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=8" } }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", - "license": "Apache-2.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", - "tslib": "^2.6.2" + "has-flag": "^3.0.0" }, "engines": { - "node": ">=16.0.0" + "node": ">=4" } }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-transformer-core": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-core/-/graphql-transformer-core-3.4.1.tgz", + "integrity": "sha512-Di8+lvZ+nnqfcC81bGw2x21KeroM+SYrr3uNQ3HlNU3PKzFQ0La+/wU6hzHCd68Z01Urq2mHkIdlKBtti+Iocw==", + "dev": true, + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "fs-extra": "^8.1.0", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "hjson": "^3.2.2", + "lodash": "^4.17.21", + "md5": "^2.3.0", + "object-hash": "^3.0.0", + "ts-dedent": "^2.0.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-transformer-core/node_modules/@aws-amplify/graphql-directives": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-directives/-/graphql-directives-2.7.0.tgz", + "integrity": "sha512-aMv9G++sLM3nkJBQG5YiR7TMX8xULDADarTvqb6JFyhCXIr3E//0y4B5cCZfTrpe9Odq9I1cJ+avbX25zYfHbA==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-transformer-core/node_modules/graphql-transformer-common": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-5.1.2.tgz", + "integrity": "sha512-uKE2KWYJTWGe8Hcwm7WIy4TSEKTF6MFXeUPDvixlAGgTFkGJ1p/fjecOy2odxzVY/T3qLpL5c8Hij54pz+oZng==", + "dev": true, + "dependencies": { + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "md5": "^2.2.1", + "pluralize": "8.0.0" + } + }, + "node_modules/@aws-amplify/graphql-transformer-core/node_modules/ts-dedent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", + "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==", + "dev": true, + "engines": { + "node": ">=6.10" + } + }, + "node_modules/@aws-amplify/graphql-transformer-interfaces": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-interfaces/-/graphql-transformer-interfaces-4.2.4.tgz", + "integrity": "sha512-YQ+WVoPQyf0wq52+bwnrxG226V7x5H6jV0XNINyHgsku5XUC/0YxApKIPmUtMuEFS5rWuN8bINQxwMvktRhahg==", + "dev": true, + "dependencies": { + "graphql": "^15.5.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-types-generator/-/graphql-types-generator-3.6.0.tgz", + "integrity": "sha512-yjPXJ2dYZwtGvwwcEQ5RDNlwTsd/hUfD2Dgguo999Gu3mQjz7nV4l7CXD/Oxo/QzwtU/4rmTX69yadBpR+he3A==", + "dev": true, + "dependencies": { + "@babel/generator": "7.0.0-beta.4", + "@babel/types": "7.0.0-beta.4", + "babel-generator": "^6.26.1", + "babel-types": "^6.26.0", + "change-case": "^4.1.1", + "common-tags": "^1.8.0", + "core-js": "^3.6.4", + "fs-extra": "^8.1.0", + "globby": "^11.1.0", + "graphql": "^15.5.0", + "inflected": "^2.0.4", + "prettier": "^1.19.1", + "rimraf": "^3.0.0", + "source-map-support": "^0.5.16", + "yargs": "^15.1.0" + }, + "bin": { + "graphql-types-generator": "lib/cli.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/prettier": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-amplify/model-generator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/model-generator/-/model-generator-1.1.0.tgz", + "integrity": "sha512-PcnmCqlsgd6hx2QCkRl1Ba4WSux8M8mtcUUe53aOBk9VbHA4QEVE9Ed+Ob7WlFlpKLPPUeu5HNct71Ismd9ARA==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/deployed-backend-client": "^1.6.0", + "@aws-amplify/graphql-generator": "^0.5.1", + "@aws-amplify/graphql-types-generator": "^3.6.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-appsync": "^3.750.0", + "@aws-sdk/client-s3": "^3.750.0", + "@aws-sdk/credential-providers": "^3.750.0", + "@aws-sdk/types": "^3.734.0", + "graphql": "^15.8.0" + }, + "peerDependencies": { + "@aws-sdk/client-amplify": "^3.750.0", + "@aws-sdk/client-cloudformation": "^3.750.0" + } + }, + "node_modules/@aws-amplify/notifications": { + "version": "2.0.76", + "resolved": "https://registry.npmjs.org/@aws-amplify/notifications/-/notifications-2.0.76.tgz", + "integrity": "sha512-xOJu/ABsnKSGk5p8pSV8V5OHFVEtqgazT5yBfDjQSgFzwUWNA++Gtwf9yr5YftDrlnP+Z40r7+VOLJT9T9jvFw==", + "dependencies": { + "@aws-sdk/types": "3.398.0", + "lodash": "^4.17.21", + "tslib": "^2.5.0" + }, + "peerDependencies": { + "@aws-amplify/core": "^6.1.0" + } + }, + "node_modules/@aws-amplify/notifications/node_modules/@aws-sdk/types": { + "version": "3.398.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.398.0.tgz", + "integrity": "sha512-r44fkS+vsEgKCuEuTV+TIk0t0m5ZlXHNjSDYEUvzLStbbfUFiNus/YG4UCa0wOk9R7VuQI67badsvvPeVPCGDQ==", + "dependencies": { + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/notifications/node_modules/@smithy/types": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", + "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/platform-core": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/platform-core/-/platform-core-1.7.0.tgz", + "integrity": "sha512-vepJpjjC8XnMfMHuDqsWEnVwbFfANCzJ63NGjYgg9zX6Z03D6HG1CGLDRNGK4Swn8Z/kUfuIpllDHRkxceSyAQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-sts": "^3.750.0", + "is-ci": "^4.1.0", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "semver": "^7.6.3", + "uuid": "^9.0.1", + "zod": "^3.22.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/plugin-types": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/plugin-types/-/plugin-types-1.9.0.tgz", + "integrity": "sha512-bD2nmh2nIiZ/1yEGz94jt6nmo+c4YBf7yukG/dHM5LSMLtt8/gDNE80gQQl+pAyJh++JL1cAGpMnEVvpkHc5Gw==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-cdk/toolkit-lib": "0.1.5" + }, + "peerDependencies": { + "@aws-sdk/types": "^3.734.0", + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/sandbox": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@aws-amplify/sandbox/-/sandbox-1.2.12.tgz", + "integrity": "sha512-sSmVESSKL4n1QyuA3hzCT9GjZq1I6d2bTuoyxCXY18iXAyuQKxSj8YkHmYZB++IaXsvCcjAbb88gXOxCYpnMcw==", + "dev": true, + "dependencies": { + "@aws-amplify/backend-deployer": "^1.1.20", + "@aws-amplify/backend-secret": "^1.2.0", + "@aws-amplify/cli-core": "^1.4.1", + "@aws-amplify/client-config": "^1.5.8", + "@aws-amplify/deployed-backend-client": "^1.5.2", + "@aws-amplify/platform-core": "^1.6.5", + "@aws-amplify/plugin-types": "^1.8.1", + "@aws-sdk/client-cloudwatch-logs": "^3.624.0", + "@aws-sdk/client-lambda": "^3.624.0", + "@aws-sdk/client-ssm": "^3.624.0", + "@aws-sdk/credential-providers": "^3.624.0", + "@aws-sdk/types": "^3.609.0", + "@parcel/watcher": "^2.4.1", + "debounce-promise": "^3.1.2", + "glob": "^10.2.7", + "open": "^9.1.0", + "parse-gitignore": "^2.0.0" + }, + "peerDependencies": { + "aws-cdk": "^2.1001.0" + } + }, + "node_modules/@aws-amplify/schema-generator": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@aws-amplify/schema-generator/-/schema-generator-1.2.8.tgz", + "integrity": "sha512-A4mujy+Rq7Ly4c2iuqid40NcXChht/A7xTHx4UM9TW3PKjieuik+WkhSimbaWN6jBZJzLSO/rWxWhRFnEiomzw==", + "dev": true, + "dependencies": { + "@aws-amplify/graphql-schema-generator": "^0.11.0", + "@aws-amplify/platform-core": "^1.6.5" + } + }, + "node_modules/@aws-amplify/storage": { + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/storage/-/storage-6.8.0.tgz", + "integrity": "sha512-2L+JpYNK6TH+UFKxrUS+9AxWZjNn4oCj+oX3g3twtM1a/PYNkhOSwLlTu2F3nCCYb6VWDEmClSpN2NcNEzi4HQ==", + "dependencies": { + "@aws-sdk/types": "3.398.0", + "@smithy/md5-js": "2.0.7", + "buffer": "4.9.2", + "crc-32": "1.2.2", + "fast-xml-parser": "^4.4.1", + "tslib": "^2.5.0" + }, + "peerDependencies": { + "@aws-amplify/core": "^6.1.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/@aws-sdk/types": { + "version": "3.398.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.398.0.tgz", + "integrity": "sha512-r44fkS+vsEgKCuEuTV+TIk0t0m5ZlXHNjSDYEUvzLStbbfUFiNus/YG4UCa0wOk9R7VuQI67badsvvPeVPCGDQ==", + "dependencies": { + "@smithy/types": "^2.2.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/@smithy/md5-js": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-2.0.7.tgz", + "integrity": "sha512-2i2BpXF9pI5D1xekqUsgQ/ohv5+H//G9FlawJrkOJskV18PgJ8LiNbLiskMeYt07yAsSTZR7qtlcAaa/GQLWww==", + "dependencies": { + "@smithy/types": "^2.3.1", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.5.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/@smithy/types": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", + "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "node_modules/@aws-amplify/storage/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/@aws-cdk/asset-awscli-v1": { + "version": "2.2.229", + "resolved": "https://registry.npmjs.org/@aws-cdk/asset-awscli-v1/-/asset-awscli-v1-2.2.229.tgz", + "integrity": "sha512-apNt/Sfty7Jwi1+6hrZaQeVisqnJAW4+uQZI55VPKtBqjTFEsKPBc/KZDx9Tlw8Ii1yWrS3HNzLNGxpTXae8XQ==", + "dev": true + }, + "node_modules/@aws-cdk/asset-node-proxy-agent-v6": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.1.0.tgz", + "integrity": "sha512-7bY3J8GCVxLupn/kNmpPc5VJz8grx+4RKfnnJiO1LG+uxkZfANZG3RMHhE+qQxxwkyQ9/MfPtTpf748UhR425A==", + "dev": true + }, + "node_modules/@aws-cdk/aws-service-spec": { + "version": "0.1.63", + "resolved": "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.1.63.tgz", + "integrity": "sha512-5OsuiiRu1hrc02juBAjMDE9oXfjKIuKJ4YCPXX27lFXjBAAvNXLvkjRCJCTmRwVv2/GO3oqouh/Ln3hsvvBDSA==", + "dev": true, + "dependencies": { + "@aws-cdk/service-spec-types": "^0.0.129", + "@cdklabs/tskb": "^0.0.3" + } + }, + "node_modules/@aws-cdk/aws-service-spec/node_modules/@aws-cdk/service-spec-types": { + "version": "0.0.129", + "resolved": "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.129.tgz", + "integrity": "sha512-MUWSHlc4df5p34x1ztulhS/7pCUiy9pVjuS6/vWJFkbHDSG/01VqWnELUnPaaWng54tuiHsQUH/jEC3asVLu3g==", + "dev": true, + "dependencies": { + "@cdklabs/tskb": "^0.0.3" + } + }, + "node_modules/@aws-cdk/cloud-assembly-schema": { + "version": "40.7.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-40.7.0.tgz", + "integrity": "sha512-00wVKn9pOOGXbeNwA4E8FUFt0zIB4PmSO7PvIiDWgpaFX3G/sWyy0A3s6bg/n2Yvkghu8r4a8ckm+mAzkAYmfA==", + "bundleDependencies": [ + "jsonschema", + "semver" + ], + "dev": true, + "dependencies": { + "jsonschema": "~1.4.1", + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/cloudformation-diff": { + "version": "2.180.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloudformation-diff/-/cloudformation-diff-2.180.0.tgz", + "integrity": "sha512-gxu529DuttZrnw/cMrVje7qPJvLo7JDgu05aRrTs7bvhH2RaqqhN3BA03iNvY8tYzI2O2p619nm2vhMCfYRFWA==", + "dev": true, + "dependencies": { + "@aws-cdk/aws-service-spec": "^0.1.62", + "@aws-cdk/service-spec-types": "^0.0.128", + "chalk": "^4", + "diff": "^7.0.0", + "fast-deep-equal": "^3.1.3", + "string-width": "^4", + "table": "^6" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/cloudformation-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@aws-cdk/cx-api": { + "version": "2.186.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cx-api/-/cx-api-2.186.0.tgz", + "integrity": "sha512-zz85GrYO68ApsFtLHdwdc8hC3NZecZZycMG2R4NZ7gNGACGjCX1K18+4tBC0Nk9NeGtAkBtc93uSs05aJAKJkA==", + "bundleDependencies": [ + "semver" + ], + "dev": true, + "dependencies": { + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + }, + "peerDependencies": { + "@aws-cdk/cloud-assembly-schema": "^40.6.0" + } + }, + "node_modules/@aws-cdk/cx-api/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/region-info": { + "version": "2.186.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/region-info/-/region-info-2.186.0.tgz", + "integrity": "sha512-4SFRGMDLm20bPWlSt0ZjZUqWjHyE5cUVXwsf03xKljXUyFkB3NjQvtX4ZaZjyjxPSKdNDKiWmbHrlwfhRSCWfg==", + "dev": true, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/service-spec-types": { + "version": "0.0.128", + "resolved": "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.128.tgz", + "integrity": "sha512-wAYyf6xiYXObUR/f83iSd8cQ4TgDuk7h909wgmTMIIWxId1NJGw8o0TvInYjHP0GtXIFGoHoeO2efKsp72YbBw==", + "dev": true, + "dependencies": { + "@cdklabs/tskb": "^0.0.3" + } + }, + "node_modules/@aws-cdk/toolkit-lib": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@aws-cdk/toolkit-lib/-/toolkit-lib-0.1.5.tgz", + "integrity": "sha512-C8+LjlkSFXQqVV9ZyhQ1VSkg6uMvwgnN5Fwp5l0+d3g/aR82YK3cVJYPppNjHZ4w4dOVErprVM4OdIfyf7Vmkg==", + "dev": true, + "dependencies": { + "@aws-cdk/cloud-assembly-schema": "^41.1.0", + "@aws-cdk/cloudformation-diff": "^2.179.0", + "@aws-cdk/cx-api": "^2.181.1", + "@aws-cdk/region-info": "^2.181.1", + "@aws-sdk/client-appsync": "^3", + "@aws-sdk/client-cloudcontrol": "^3", + "@aws-sdk/client-cloudformation": "^3", + "@aws-sdk/client-cloudwatch-logs": "^3", + "@aws-sdk/client-codebuild": "^3", + "@aws-sdk/client-ec2": "^3", + "@aws-sdk/client-ecr": "^3", + "@aws-sdk/client-ecs": "^3", + "@aws-sdk/client-elastic-load-balancing-v2": "^3", + "@aws-sdk/client-iam": "^3", + "@aws-sdk/client-kms": "^3", + "@aws-sdk/client-lambda": "^3", + "@aws-sdk/client-route-53": "^3", + "@aws-sdk/client-s3": "^3", + "@aws-sdk/client-secrets-manager": "^3", + "@aws-sdk/client-sfn": "^3", + "@aws-sdk/client-ssm": "^3", + "@aws-sdk/client-sts": "^3", + "@aws-sdk/credential-providers": "^3", + "@aws-sdk/ec2-metadata-service": "^3", + "@aws-sdk/lib-storage": "^3", + "@smithy/middleware-endpoint": "^4.0.6", + "@smithy/node-http-handler": "^4.0.3", + "@smithy/property-provider": "^4.0.1", + "@smithy/shared-ini-file-loader": "^4.0.1", + "@smithy/util-retry": "^4.0.1", + "@smithy/util-stream": "^4.1.2", + "@smithy/util-waiter": "^4.0.2", + "archiver": "^7.0.1", + "camelcase": "^6", + "cdk-assets": "^3.1.1", + "cdk-from-cfn": "^0.193.0", + "chalk": "^4", + "chokidar": "^3", + "decamelize": "^5", + "fs-extra": "^9", + "glob": "^11.0.1", + "json-diff": "^1.0.6", + "minimatch": "^10.0.1", + "p-limit": "^3", + "promptly": "^3.2.0", + "proxy-agent": "^6.5.0", + "semver": "^7.7.1", + "split2": "^4.2.0", + "strip-ansi": "^6", + "table": "^6", + "uuid": "^11.1.0", + "wrap-ansi": "^7", + "yaml": "^1", + "yargs": "^15" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@aws-cdk/cloud-assembly-schema": { + "version": "41.2.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-41.2.0.tgz", + "integrity": "sha512-JaulVS6z9y5+u4jNmoWbHZRs9uGOnmn/ktXygNWKNu1k6lF3ad4so3s18eRu15XCbUIomxN9WPYT6Ehh7hzONw==", + "bundleDependencies": [ + "jsonschema", + "semver" + ], + "dev": true, + "dependencies": { + "jsonschema": "~1.4.1", + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/cliui/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/glob": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", + "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/jackspeak": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", + "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/lru-cache": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", + "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", + "dev": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/uuid": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", + "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/esm/bin/uuid" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs-parser/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs-parser/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-crypto/branch-keystore-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/branch-keystore-node/-/branch-keystore-node-4.2.0.tgz", + "integrity": "sha512-Eu1MmZt5Q1Dh4FjwyfoNBHjyM3Pr/dBzx0zhR9zyTBsUe8dE00VhKVDhBLnnpbXaHwyy08R8Mj0iSDVHKBrnOA==", + "dev": true, + "dependencies": { + "@aws-crypto/kms-keyring": "^4.2.0", + "@aws-sdk/client-dynamodb": "^3.616.0", + "@aws-sdk/util-dynamodb": "^3.616.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/cache-material": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/cache-material/-/cache-material-4.2.0.tgz", + "integrity": "sha512-hsuoU1/fP04a8d92f2SMjovd7z6Mm+CXHXUp7Gh5wpp8EuPMFCV+9TFu+LktwxO6McczZ1egh/D81To16NlSoA==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management": "^4.2.0", + "@aws-crypto/serialize": "^4.2.0", + "@types/lru-cache": "^5.1.0", + "lru-cache": "^6.0.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/caching-materials-manager-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/caching-materials-manager-node/-/caching-materials-manager-node-4.2.0.tgz", + "integrity": "sha512-hl6qLL9B3VvLmqx00DVhpAiZdaBrto33o2z+hUsTQEMnNKdJxKGhgByg994W8SnVsOqeadZPZlcx43BS5SjPJA==", + "dev": true, + "dependencies": { + "@aws-crypto/cache-material": "^4.2.0", + "@aws-crypto/material-management-node": "^4.2.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/client-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/client-node/-/client-node-4.2.0.tgz", + "integrity": "sha512-Wc98A5JYcKT+zhgUCXxNm5jmC9lTZ7jPNQyWhXL2H+0xoR2c5w5hqCvsIQwOb7JNVLcwBrBvz8LfZaEC6FAzKQ==", + "dev": true, + "dependencies": { + "@aws-crypto/branch-keystore-node": "^4.2.0", + "@aws-crypto/caching-materials-manager-node": "^4.2.0", + "@aws-crypto/decrypt-node": "^4.2.0", + "@aws-crypto/encrypt-node": "^4.2.0", + "@aws-crypto/kms-keyring": "^4.2.0", + "@aws-crypto/kms-keyring-node": "^4.2.0", + "@aws-crypto/material-management-node": "^4.2.0", + "@aws-crypto/raw-aes-keyring-node": "^4.2.0", + "@aws-crypto/raw-rsa-keyring-node": "^4.2.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/crc32": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", + "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/crc32c": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz", + "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==", + "dev": true, + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/decrypt-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/decrypt-node/-/decrypt-node-4.2.0.tgz", + "integrity": "sha512-fdi88gr0FtP/2vmweiWrDMsumx+r70oCglWJRjJpg5VvbmEFsHD2WxDiGRrrCnrBiUoIoXFs7uATRq00E2vvKw==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management-node": "^4.2.0", + "@aws-crypto/serialize": "^4.2.0", + "@types/duplexify": "^3.6.0", + "duplexify": "^4.1.1", + "readable-stream": "^3.6.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/encrypt-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/encrypt-node/-/encrypt-node-4.2.0.tgz", + "integrity": "sha512-Uke+5B+tE31mxExu+4aNppOKFvRVBMQj0aQcJIgStyra0v5ekSK3xtRUqFn3SxAZjh2ZSU2kNkf1kINRvcLRCg==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management-node": "^4.2.0", + "@aws-crypto/serialize": "^4.2.0", + "@types/duplexify": "^3.6.0", + "duplexify": "^4.1.3", + "readable-stream": "^3.6.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/hkdf-node": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/hkdf-node/-/hkdf-node-4.0.0.tgz", + "integrity": "sha512-FytH3TF9c0OP+vnicc4YJoxoFoLajdRzzuRchDHmh4yXk32lj/HzgXGPfj+kSyy0chkh4XVONh2/zMRmqsA/hQ==", + "dev": true, + "dependencies": { + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/kdf-ctr-mode-node": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/kdf-ctr-mode-node/-/kdf-ctr-mode-node-4.1.0.tgz", + "integrity": "sha512-63A5mgEN3NWdVpHF4Y+4TLl2F62UP6KaFZ6cF5MT7hZ3rDaiyh6u45Tjcxe6/mB5U3FiMBOba/2AXrSX0hNkCw==", + "dev": true, + "dependencies": { + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/kms-keyring": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/kms-keyring/-/kms-keyring-4.2.0.tgz", + "integrity": "sha512-TcsWCApO7mKUIiD/hWYHxchcoBu6iSzd76jsJWBl8YI/TKiUpE3lFVH2JdCq3XIqfDS+VwkG4o7r+K7XCFmnKw==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management": "^4.2.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/kms-keyring-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/kms-keyring-node/-/kms-keyring-node-4.2.0.tgz", + "integrity": "sha512-3UD+HP5yBqo4GWa3zXXQJAvTrFHe/nbrOpOZakiS7ci6kLV9XUA2QZgtJMe3CFarfzTJMmlEcwnD2fetnsD2YQ==", + "dev": true, + "dependencies": { + "@aws-crypto/branch-keystore-node": "^4.2.0", + "@aws-crypto/cache-material": "^4.2.0", + "@aws-crypto/kdf-ctr-mode-node": "^4.1.0", + "@aws-crypto/kms-keyring": "^4.2.0", + "@aws-crypto/material-management-node": "^4.2.0", + "@aws-crypto/serialize": "^4.2.0", + "@aws-sdk/client-dynamodb": "^3.621.0", + "@aws-sdk/client-kms": "^3.362.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/material-management": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/material-management/-/material-management-4.2.0.tgz", + "integrity": "sha512-6TB629HsI/Wlo3LvT854TZS3naIQ63QEmzmhBdezbA05IqPBqamK8Y/UwPBhI47rdk6vm8oOKjC4AntqYdcZ+A==", + "dev": true, + "dependencies": { + "asn1.js": "^5.3.0", + "bn.js": "^5.1.1", + "tslib": "^2.2.0", + "uuid": "^10.0.0" + } + }, + "node_modules/@aws-crypto/material-management-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/material-management-node/-/material-management-node-4.2.0.tgz", + "integrity": "sha512-7AaQM7ovVKAURG7xpRK+mXkd/f8WKx3PPWlLrU93Uwg2rHZkL9jOKvYrkc8sfYSLxMzQ4jFYx/h6c9FSCUv7bw==", + "dev": true, + "dependencies": { + "@aws-crypto/hkdf-node": "^4.0.0", + "@aws-crypto/material-management": "^4.2.0", + "@aws-crypto/serialize": "^4.2.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/material-management/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@aws-crypto/raw-aes-keyring-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/raw-aes-keyring-node/-/raw-aes-keyring-node-4.2.0.tgz", + "integrity": "sha512-iaKwolSmOqW9fhOGz9v10Ggh89Y65QKfEkCZBfUJ+CIY79xp25QRh40pQTBEq4Gs7C3GpOPARaIlpG2TpMpF6Q==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management-node": "^4.2.0", + "@aws-crypto/raw-keyring": "^4.2.0", + "@aws-crypto/serialize": "^4.2.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/raw-keyring": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/raw-keyring/-/raw-keyring-4.2.0.tgz", + "integrity": "sha512-Dq/RckQYDEaWs+BTipzUoy2Los0JwE5G75eVXRZdli72cA2bs7INkqLD/2ZkBQAA6du4f4Mu+X3G1mEbPjFVbw==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management": "^4.2.0", + "@aws-crypto/serialize": "^4.2.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/raw-rsa-keyring-node": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/raw-rsa-keyring-node/-/raw-rsa-keyring-node-4.2.0.tgz", + "integrity": "sha512-cuVN+v/HQNkxm6CAN/djAi6HlOi5iqZ+TKHb4TdWjG+7PJcA70wFHjaehHOFD/1YYOZui0QFCvLgOXyqccWz9g==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management-node": "^4.2.0", + "@aws-crypto/raw-keyring": "^4.2.0", + "tslib": "^2.2.0" + } + }, + "node_modules/@aws-crypto/serialize": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/serialize/-/serialize-4.2.0.tgz", + "integrity": "sha512-FSCxVux4KAV0NV6AOA6ZmBARlxeiavQr2O9ILr6nGzw9DSYvGyy9zYwri1gBsGOGUbJ3mWPFtmb0zonFAwGYuA==", + "dev": true, + "dependencies": { + "@aws-crypto/material-management": "^4.2.0", + "asn1.js": "^5.3.0", + "bn.js": "^5.1.1", + "tslib": "^2.2.0", + "uuid": "^10.0.0" + } + }, + "node_modules/@aws-crypto/serialize/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@aws-crypto/sha1-browser": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz", + "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==", + "dev": true, + "dependencies": { + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", + "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", + "dependencies": { + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", + "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { + "version": "2.3.0", "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplify/-/client-amplify-3.775.0.tgz", + "integrity": "sha512-mjt/n/mH2t3U0u7DZHRg1ObwD3CftVojBd1NgU3j0hEbW06ltbEvnivZqulhil4sCDorb6QJAbOVwgHoTG5FSg==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplifyuibuilder/-/client-amplifyuibuilder-3.775.0.tgz", + "integrity": "sha512-8y2EOkoWskT28RD63bNBlaweyCKbVmjrjDxpMtn7B8jo+CxGQBeq4PiIc6cphb/mgnAi14xVhB5FAOH2iLnhyg==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-appsync/-/client-appsync-3.775.0.tgz", + "integrity": "sha512-pUkUG9kUh5VaX6lMalOMN/NpLDnhx1Zb1tcgTuVR/IAHtvSJ0kQyPRXpJPzWBORNVpaBj2hL/6zSr7kWIfgrxQ==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudcontrol/-/client-cloudcontrol-3.775.0.tgz", + "integrity": "sha512-sAQgslKLQL0VjPhU2FwlJVvsoqRPtqW6AabSYMsXJhwXu/1lz1P1y+T822Lu+B6+DnORB38CFEVJiD2y6ucQrg==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudformation/-/client-cloudformation-3.775.0.tgz", + "integrity": "sha512-Vs3T8ooDh0zujfLFMBSSX/2unuwrjcwin0UKfZO4Eda5s1DT1Hhx4pGRDH5ob9gTAWtv76a4Rsdf7QddDjc75A==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudwatch-logs/-/client-cloudwatch-logs-3.775.0.tgz", + "integrity": "sha512-CuF+zEdMAi7xumBetPEl1yIPAReBDy4ucB8wtZ2F+o+HqxB9MM8FsifU/xh44Kdf6mxFFJulONFfAsUa7H5lhA==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/eventstream-serde-browser": "^4.0.2", + "@smithy/eventstream-serde-config-resolver": "^4.1.0", + "@smithy/eventstream-serde-node": "^4.0.2", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-codebuild/-/client-codebuild-3.775.0.tgz", + "integrity": "sha512-mviCaw2wbB4c0FN55QMH7Eo+1FT/74fNQoa66HzfRb/X4OnQmCrASKfumvD8StKZUMOX36XqQc5/vNyZZ9/nGA==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.775.0.tgz", + "integrity": "sha512-AMGywI8C+kcSTWjftq9jgzkospF1A/QNd/h6zN+3uuS+3rZhkPIoPCpaQ0NSTYD49FTq8ALZzNKTqTEOnp+txA==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity-provider": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider/-/client-cognito-identity-provider-3.775.0.tgz", + "integrity": "sha512-hGH8F84SChSW6G6YTRwaewiOKyFWYj4CbAIK8WH4Z1Veg67csIQ8K6rlYuhn+nEMd6F+cMdUtn0EGeI7VDdNWg==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity-provider/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity-provider/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity-provider/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-dynamodb": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-dynamodb/-/client-dynamodb-3.775.0.tgz", + "integrity": "sha512-OoZKPUIyGVnEMkA6GuEu2vB6ZS5Q4GyJZLhELv8+srwB0OVQ2i2jchExvUySQyvxAkGXbeKGGRKAw3IpVGfKcA==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-endpoint-discovery": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-dynamodb/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-dynamodb/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-dynamodb/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ec2/-/client-ec2-3.624.0.tgz", + "integrity": "sha512-n3IHWiNSP5Cj0ZbENJGtDeJPsx6EVNMeePh8Nqe9Ja5l5/Brkdyu4TV6t/taPXHJQDH7E6cq4/uMiiEPRNuf6Q==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/client-sts": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-sdk-ec2": "3.622.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sts": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", + "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/core": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", + "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", + "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", + "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", + "dev": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.624.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", + "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", + "dev": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.624.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", + "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", + "dev": true, + "dependencies": { + "@aws-sdk/client-sso": "3.624.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", + "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-endpoints": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", + "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", + "dev": true, + "dependencies": { + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", + "dev": true, + "dependencies": { + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dev": true, + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", + "dev": true, + "dependencies": { + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", + "dev": true, + "dependencies": { + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", + "dev": true, + "dependencies": { + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", + "dev": true, + "dependencies": { + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ecr": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ecr/-/client-ecr-3.775.0.tgz", + "integrity": "sha512-BeIzHyqmELB/CvHjJ8RkRLdNhsITrEbLDNKk8NaQ572gWNNeVaQv2jK+XSR7M9h/MPoeVXXptzFzH7V531uKgw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ecr/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ecr/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ecr/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ecs": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ecs/-/client-ecs-3.775.0.tgz", + "integrity": "sha512-kimlOHmPdhnhN0L7dj0uRjFziOVd5cZV20BJOY2FuCYuhJOL1BuB3UoX6+F8Dzo+eDnIrERQ5OjF/++H9IJ89w==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ecs/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ecs/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ecs/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-elastic-load-balancing-v2": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-v2/-/client-elastic-load-balancing-v2-3.775.0.tgz", + "integrity": "sha512-aqkKvJovXMswnI4Gb2yuIgQIXxGcUMexre7NmZZHClG4QE2gcHljLYI/dAIMyXbOofXgtFFefs/lf/O+sCX6pw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-elastic-load-balancing-v2/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-elastic-load-balancing-v2/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-elastic-load-balancing-v2/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-firehose/-/client-firehose-3.621.0.tgz", + "integrity": "sha512-XAjAkXdb35PDvBYph609Fxn4g00HYH/U6N4+KjF9gLQrdTU+wkjf3D9YD02DZNbApJVcu4eIxWh/8M25YkW02A==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.621.0", + "@aws-sdk/client-sts": "3.621.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/client-sso": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.621.0.tgz", + "integrity": "sha512-xpKfikN4u0BaUYZA9FGUMkkDmfoIP0Q03+A86WjqDWhcOoqNA1DkHsE4kZ+r064ifkPUfcNuUvlkVTEoBZoFjA==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.621.0.tgz", + "integrity": "sha512-mMjk3mFUwV2Y68POf1BQMTF+F6qxt5tPu6daEUCNGC9Cenk3h2YXQQoS4/eSyYzuBiYk3vx49VgleRvdvkg8rg==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/client-sts": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.621.0.tgz", + "integrity": "sha512-707uiuReSt+nAx6d0c21xLjLm2lxeKc7padxjv92CIrIocnQSlJPxSCM7r5zBhwiahJA6MNQwmTl2xznU67KgA==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.621.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/core": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.621.0.tgz", + "integrity": "sha512-CtOwWmDdEiINkGXD93iGfXjN0WmCp9l45cDWHHGa8lRgEDyhuL7bwd/pH5aSzj0j8SiQBG2k0S7DHbd5RaqvbQ==", + "dependencies": { + "@smithy/core": "^2.3.1", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.621.0.tgz", + "integrity": "sha512-/jc2tEsdkT1QQAI5Dvoci50DbSxtJrevemwFsm0B73pwCcOQZ5ZwwSdVqGsPutzYzUVx3bcXg3LRL7jLACqRIg==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.621.0.tgz", + "integrity": "sha512-0EWVnSc+JQn5HLnF5Xv405M8n4zfdx9gyGdpnCmAmFqEDHA8LmBdxJdpUk1Ovp/I5oPANhjojxabIW5f1uU0RA==", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.621.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.621.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.621.0.tgz", + "integrity": "sha512-4JqpccUgz5Snanpt2+53hbOBbJQrSFq7E1sAAbgY6BKVQUsW5qyXqnjvSF32kDeKa5JpBl3bBWLZl04IadcPHw==", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.621.0", + "@aws-sdk/credential-provider-ini": "3.621.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.621.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.621.0.tgz", + "integrity": "sha512-Kza0jcFeA/GEL6xJlzR2KFf1PfZKMFnxfGzJzl5yN7EjoGdMijl34KaRyVnfRjnCWcsUpBWKNIDk9WZVMY9yiw==", + "dependencies": { + "@aws-sdk/client-sso": "3.621.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", + "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", - "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", - "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/util-endpoints": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", + "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", - "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "bowser": "^2.11.0", "tslib": "^2.6.2" } }, - "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } } }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplify": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplify/-/client-amplify-3.651.1.tgz", - "integrity": "sha512-bJ7h9r+ZRHu1RqhkWFk7BiPKID18699fi6/PbeC7ubEko5uBNd15E7HVsDA7ApyRH1AnoW3wVX4A4dpX80PLEA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -8955,837 +12942,596 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplifyuibuilder/-/client-amplifyuibuilder-3.687.0.tgz", - "integrity": "sha512-wTwiQx3MJu4V3jpaWG+9csACSq1kd3x9NIGAXjHUreKd63tOx7FhkdR4IhTvR4Ca8NnNPLhTzq35w+PcoPQLWg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", + "dependencies": { + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" + "@smithy/types": "^3.7.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-appsync/-/client-appsync-3.687.0.tgz", - "integrity": "sha512-4CV0nyOxSCgCdytAOTMKlNzH2QRH1eRa3oOhPSGeA7yLPyVq+ywLP/cqLljlilPl5aFfnpCnoEWmBoJeEASlSQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-stream": "^3.2.1", - "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", + "node_modules/@aws-sdk/client-iam": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-iam/-/client-iam-3.624.0.tgz", + "integrity": "sha512-a3Qy7AIht2nHiZPJ/HiMdyiOLiDN+iKp1R916SEbgFi9MiOyRHFeLCCPQHMf1O8YXfb0hbHr5IFnfZLfUcJaWQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/client-sts": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sts": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", + "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -9793,22 +13539,19 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", + "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -9816,312 +13559,286 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", + "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", + "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" + "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", + "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.624.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", + "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-sdk/client-sso": "3.624.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", + "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", + "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { @@ -10136,2508 +13853,1804 @@ } } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-config-provider": { + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/abort-controller": { "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudformation/-/client-cloudformation-3.687.0.tgz", - "integrity": "sha512-lpU0034WzrdFRspLbgV8ZG/3FutMWBquvkUOKjPsFgS9FKZ9dlSejZEz4GY6fpvXEwpomBrF1wZtXshrrriuxQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.7", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", - "tslib": "^2.6.2" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" + "@smithy/types": "^3.7.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dev": true, + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudwatch-logs/-/client-cloudwatch-logs-3.687.0.tgz", - "integrity": "sha512-+NYFbepmFfE4f+PJeUcsNcOAT5ge5NJ7AMrLPXXdmX6v/MAHG6ztRDENBdboxjySBloxyL1YKC6joOI2vLIAcg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/eventstream-serde-browser": "^3.0.11", - "@smithy/eventstream-serde-config-resolver": "^3.0.8", - "@smithy/eventstream-serde-node": "^3.0.10", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-kinesis/-/client-kinesis-3.621.0.tgz", + "integrity": "sha512-53Omt/beFmTQPjQNpMuPMk5nMzYVsXCRiO+MeqygZEKYG1fWw/UGluCWVbi7WjClOHacsW8lQcsqIRvkPDFNag==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.621.0", + "@aws-sdk/client-sts": "3.621.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/eventstream-serde-browser": "^3.0.5", + "@smithy/eventstream-serde-config-resolver": "^3.0.3", + "@smithy/eventstream-serde-node": "^3.0.4", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/client-sso": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.621.0.tgz", + "integrity": "sha512-xpKfikN4u0BaUYZA9FGUMkkDmfoIP0Q03+A86WjqDWhcOoqNA1DkHsE4kZ+r064ifkPUfcNuUvlkVTEoBZoFjA==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.621.0.tgz", + "integrity": "sha512-mMjk3mFUwV2Y68POf1BQMTF+F6qxt5tPu6daEUCNGC9Cenk3h2YXQQoS4/eSyYzuBiYk3vx49VgleRvdvkg8rg==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/client-sts": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.621.0.tgz", + "integrity": "sha512-707uiuReSt+nAx6d0c21xLjLm2lxeKc7padxjv92CIrIocnQSlJPxSCM7r5zBhwiahJA6MNQwmTl2xznU67KgA==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.621.0", + "@aws-sdk/core": "3.621.0", + "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.1", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.13", + "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/core": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.621.0.tgz", + "integrity": "sha512-CtOwWmDdEiINkGXD93iGfXjN0WmCp9l45cDWHHGa8lRgEDyhuL7bwd/pH5aSzj0j8SiQBG2k0S7DHbd5RaqvbQ==", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.3.1", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.621.0.tgz", + "integrity": "sha512-/jc2tEsdkT1QQAI5Dvoci50DbSxtJrevemwFsm0B73pwCcOQZ5ZwwSdVqGsPutzYzUVx3bcXg3LRL7jLACqRIg==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.11", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.621.0.tgz", + "integrity": "sha512-0EWVnSc+JQn5HLnF5Xv405M8n4zfdx9gyGdpnCmAmFqEDHA8LmBdxJdpUk1Ovp/I5oPANhjojxabIW5f1uU0RA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.621.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.621.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.621.0.tgz", + "integrity": "sha512-4JqpccUgz5Snanpt2+53hbOBbJQrSFq7E1sAAbgY6BKVQUsW5qyXqnjvSF32kDeKa5JpBl3bBWLZl04IadcPHw==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.621.0", + "@aws-sdk/credential-provider-ini": "3.621.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.621.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.621.0.tgz", + "integrity": "sha512-Kza0jcFeA/GEL6xJlzR2KFf1PfZKMFnxfGzJzl5yN7EjoGdMijl34KaRyVnfRjnCWcsUpBWKNIDk9WZVMY9yiw==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", + "@aws-sdk/client-sso": "3.621.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" + "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", - "tslib": "^2.6.2" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", + "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.687.0.tgz", - "integrity": "sha512-jcQTioloSed+Jc3snjrgpWejkOm8t3Zt+jWrApw3ejN8qBtpFCH43M7q/CSDVZ9RS1IjX+KRWoBFnrDOnbuw0Q==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-sdk/client-cognito-identity-provider": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider/-/client-cognito-identity-provider-3.651.1.tgz", - "integrity": "sha512-7i2N5qK5SXt+QiKoEn1bl7tytDmP2Y8TUI+TzydbFELIFHq9OiUL+rkO0lr46Gz4/wtI77u20VCcvgvJFSaOxg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity-provider/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/util-endpoints": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", + "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity-provider/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dependencies": { - "@smithy/types": "^3.4.2", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "bowser": "^2.11.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", + "dependencies": { + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/eventstream-codec": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-3.1.10.tgz", + "integrity": "sha512-323B8YckSbUH0nMIpXn7HZsAVKHYHFUODa8gG9cHo0ySvA1fr5iWaNT+iIL0UCqUzG6QPHA3BSsBtRQou4mMqQ==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/eventstream-serde-browser": { + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.14.tgz", + "integrity": "sha512-kbrt0vjOIihW3V7Cqj1SXQvAI5BR8SnyQYsandva0AOR307cXAc+IhPngxIPslxTLfxwDpNu0HzCAq6g42kCPg==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/eventstream-serde-universal": "^3.0.13", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/eventstream-serde-config-resolver": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.11.tgz", + "integrity": "sha512-P2pnEp4n75O+QHjyO7cbw/vsw5l93K/8EWyjNCAAybYwUmj3M+hjSQZ9P5TVdUgEG08ueMAP5R4FkuSkElZ5tQ==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/eventstream-serde-node": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.13.tgz", + "integrity": "sha512-zqy/9iwbj8Wysmvi7Lq7XFLeDgjRpTbCfwBhJa8WbrylTAHiAu6oQTwdY7iu2lxigbc9YYr9vPv5SzYny5tCXQ==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/eventstream-serde-universal": "^3.0.13", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/eventstream-serde-universal": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.13.tgz", + "integrity": "sha512-L1Ib66+gg9uTnqp/18Gz4MDpJPKRE44geOjOQ2SVc0eiaO5l255ADziATZgjQjqumC7yPtp1XnjHlF1srcwjKw==", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/eventstream-codec": "^3.1.10", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ec2/-/client-ec2-3.624.0.tgz", - "integrity": "sha512-n3IHWiNSP5Cj0ZbENJGtDeJPsx6EVNMeePh8Nqe9Ja5l5/Brkdyu4TV6t/taPXHJQDH7E6cq4/uMiiEPRNuf6Q==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/client-sts": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-sdk-ec2": "3.622.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/types": "^3.7.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", - "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", - "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sts": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", - "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/core": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", - "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dependencies": { - "@smithy/core": "^2.3.2", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", - "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.622.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", - "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", - "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", - "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-ini": "3.624.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", - "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", - "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dependencies": { - "@aws-sdk/client-sso": "3.624.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", - "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", - "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", - "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", - "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", - "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", - "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", + "node_modules/@aws-sdk/client-kms": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-kms/-/client-kms-3.775.0.tgz", + "integrity": "sha512-z4bEyz++u1V2EnMG5w9hDpQP4Ogfz/rNKP72kg6P2Z/nxAS3lSfv/cfnGCN2n82/NgT0d0jgPCTmU+YV9XszBQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "node_modules/@aws-sdk/client-kms/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "node_modules/@aws-sdk/client-kms/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-endpoints": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", - "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", + "node_modules/@aws-sdk/client-kms/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", - "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", + "node_modules/@aws-sdk/client-lambda": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.775.0.tgz", + "integrity": "sha512-4zy7+R06UOSM8SZ+yaZx1zV5L1Fcrt8knW5zGhh9GlgFzOLbRe6h7dNnhSIpseDNZcmfEpnKVc+i1UDT4cG02g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/eventstream-serde-browser": "^4.0.2", + "@smithy/eventstream-serde-config-resolver": "^4.1.0", + "@smithy/eventstream-serde-node": "^4.0.2", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", - "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", + "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-firehose": { + "node_modules/@aws-sdk/client-personalize-events": { "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-firehose/-/client-firehose-3.621.0.tgz", - "integrity": "sha512-XAjAkXdb35PDvBYph609Fxn4g00HYH/U6N4+KjF9gLQrdTU+wkjf3D9YD02DZNbApJVcu4eIxWh/8M25YkW02A==", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-personalize-events/-/client-personalize-events-3.621.0.tgz", + "integrity": "sha512-qkVkqYvOe3WVuVNL/gRITGYFfHJCx2ijGFK7H3hNUJH3P4AwskmouAd1pWf+3cbGedRnj2is7iw7E602LeJIHA==", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -12685,11 +15698,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/client-sso": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/client-sso": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.621.0.tgz", "integrity": "sha512-xpKfikN4u0BaUYZA9FGUMkkDmfoIP0Q03+A86WjqDWhcOoqNA1DkHsE4kZ+r064ifkPUfcNuUvlkVTEoBZoFjA==", - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -12734,11 +15746,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/client-sso-oidc": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/client-sso-oidc": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.621.0.tgz", "integrity": "sha512-mMjk3mFUwV2Y68POf1BQMTF+F6qxt5tPu6daEUCNGC9Cenk3h2YXQQoS4/eSyYzuBiYk3vx49VgleRvdvkg8rg==", - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -12787,11 +15798,10 @@ "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/client-sts": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/client-sts": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.621.0.tgz", "integrity": "sha512-707uiuReSt+nAx6d0c21xLjLm2lxeKc7padxjv92CIrIocnQSlJPxSCM7r5zBhwiahJA6MNQwmTl2xznU67KgA==", - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -12838,11 +15848,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/core": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/core": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.621.0.tgz", "integrity": "sha512-CtOwWmDdEiINkGXD93iGfXjN0WmCp9l45cDWHHGa8lRgEDyhuL7bwd/pH5aSzj0j8SiQBG2k0S7DHbd5RaqvbQ==", - "license": "Apache-2.0", "dependencies": { "@smithy/core": "^2.3.1", "@smithy/node-config-provider": "^3.1.4", @@ -12858,11 +15867,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-env": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-env": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -12873,11 +15881,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-http": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-http": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.621.0.tgz", "integrity": "sha512-/jc2tEsdkT1QQAI5Dvoci50DbSxtJrevemwFsm0B73pwCcOQZ5ZwwSdVqGsPutzYzUVx3bcXg3LRL7jLACqRIg==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/fetch-http-handler": "^3.2.4", @@ -12893,11 +15900,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-ini": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-ini": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.621.0.tgz", "integrity": "sha512-0EWVnSc+JQn5HLnF5Xv405M8n4zfdx9gyGdpnCmAmFqEDHA8LmBdxJdpUk1Ovp/I5oPANhjojxabIW5f1uU0RA==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.621.0", @@ -12918,11 +15924,10 @@ "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-node": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-node": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.621.0.tgz", "integrity": "sha512-4JqpccUgz5Snanpt2+53hbOBbJQrSFq7E1sAAbgY6BKVQUsW5qyXqnjvSF32kDeKa5JpBl3bBWLZl04IadcPHw==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.621.0", @@ -12941,11 +15946,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-process": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-process": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -12957,11 +15961,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-sso": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-sso": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.621.0.tgz", "integrity": "sha512-Kza0jcFeA/GEL6xJlzR2KFf1PfZKMFnxfGzJzl5yN7EjoGdMijl34KaRyVnfRjnCWcsUpBWKNIDk9WZVMY9yiw==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-sso": "3.621.0", "@aws-sdk/token-providers": "3.614.0", @@ -12975,11 +15978,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/credential-provider-web-identity": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-web-identity": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -12993,11 +15995,10 @@ "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-host-header": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-host-header": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -13008,11 +16009,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-logger": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-logger": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -13022,11 +16022,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-recursion-detection": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-recursion-detection": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -13037,11 +16036,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/middleware-user-agent": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-user-agent": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@aws-sdk/util-endpoints": "3.614.0", @@ -13053,11 +16051,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/region-config-resolver": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/region-config-resolver": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -13070,11 +16067,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/token-providers": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/token-providers": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -13089,11 +16085,10 @@ "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/types": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/types": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -13102,11 +16097,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/util-endpoints": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/util-endpoints": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -13117,11 +16111,10 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/util-user-agent-browser": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/util-user-agent-browser": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -13129,11 +16122,10 @@ "tslib": "^2.6.2" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@aws-sdk/util-user-agent-node": { + "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/util-user-agent-node": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -13152,131 +16144,85 @@ } } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-firehose/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-iam/-/client-iam-3.624.0.tgz", - "integrity": "sha512-a3Qy7AIht2nHiZPJ/HiMdyiOLiDN+iKp1R916SEbgFi9MiOyRHFeLCCPQHMf1O8YXfb0hbHr5IFnfZLfUcJaWQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/client-sts": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", - "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -13284,542 +16230,425 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", - "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sts": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", - "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", - "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dependencies": { - "@smithy/core": "^2.3.2", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", - "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.622.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", - "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", - "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", - "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-ini": "3.624.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", - "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", - "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dependencies": { - "@aws-sdk/client-sso": "3.624.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", - "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", + "dependencies": { + "@smithy/types": "^3.7.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", - "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", - "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", - "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", - "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", - "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", - "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", - "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", - "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } } }, - "node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-kinesis/-/client-kinesis-3.621.0.tgz", - "integrity": "sha512-53Omt/beFmTQPjQNpMuPMk5nMzYVsXCRiO+MeqygZEKYG1fWw/UGluCWVbi7WjClOHacsW8lQcsqIRvkPDFNag==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.621.0", - "@aws-sdk/client-sts": "3.621.0", - "@aws-sdk/core": "3.621.0", - "@aws-sdk/credential-provider-node": "3.621.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", - "@smithy/eventstream-serde-browser": "^3.0.5", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.4", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/client-sso": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.621.0.tgz", - "integrity": "sha512-xpKfikN4u0BaUYZA9FGUMkkDmfoIP0Q03+A86WjqDWhcOoqNA1DkHsE4kZ+r064ifkPUfcNuUvlkVTEoBZoFjA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-rds/-/client-rds-3.624.0.tgz", + "integrity": "sha512-WZytF5YaDqEaJ/+2xm//ux+ER3pDwHU4ub4xXgMs46vG8WVLEDzILXp+Nn78w7W2sMwaQO12RYMvqgIB+/wF2A==", + "dev": true, "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.621.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/client-sts": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-sdk-rds": "3.620.0", "@aws-sdk/middleware-user-agent": "3.620.0", "@aws-sdk/region-config-resolver": "3.614.0", "@aws-sdk/types": "3.609.0", @@ -13827,46 +16656,46 @@ "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", + "@smithy/core": "^2.3.2", "@smithy/fetch-http-handler": "^3.2.4", "@smithy/hash-node": "^3.0.3", "@smithy/invalid-dependency": "^3.0.3", "@smithy/middleware-content-length": "^3.0.5", "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-retry": "^3.0.14", "@smithy/middleware-serde": "^3.0.3", "@smithy/middleware-stack": "^3.0.3", "@smithy/node-config-provider": "^3.1.4", "@smithy/node-http-handler": "^3.1.4", "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", "@smithy/util-endpoints": "^2.0.5", "@smithy/util-middleware": "^3.0.3", "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.621.0.tgz", - "integrity": "sha512-mMjk3mFUwV2Y68POf1BQMTF+F6qxt5tPu6daEUCNGC9Cenk3h2YXQQoS4/eSyYzuBiYk3vx49VgleRvdvkg8rg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "dev": true, "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.621.0", - "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/core": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", @@ -13877,26 +16706,26 @@ "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", + "@smithy/core": "^2.3.2", "@smithy/fetch-http-handler": "^3.2.4", "@smithy/hash-node": "^3.0.3", "@smithy/invalid-dependency": "^3.0.3", "@smithy/middleware-content-length": "^3.0.5", "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-retry": "^3.0.14", "@smithy/middleware-serde": "^3.0.3", "@smithy/middleware-stack": "^3.0.3", "@smithy/node-config-provider": "^3.1.4", "@smithy/node-http-handler": "^3.1.4", "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", "@smithy/util-endpoints": "^2.0.5", "@smithy/util-middleware": "^3.0.3", "@smithy/util-retry": "^3.0.3", @@ -13905,22 +16734,19 @@ }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/client-sts": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.621.0.tgz", - "integrity": "sha512-707uiuReSt+nAx6d0c21xLjLm2lxeKc7padxjv92CIrIocnQSlJPxSCM7r5zBhwiahJA6MNQwmTl2xznU67KgA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sts": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", + "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "dev": true, "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.621.0", - "@aws-sdk/core": "3.621.0", - "@aws-sdk/credential-provider-node": "3.621.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", @@ -13931,26 +16757,26 @@ "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", + "@smithy/core": "^2.3.2", "@smithy/fetch-http-handler": "^3.2.4", "@smithy/hash-node": "^3.0.3", "@smithy/invalid-dependency": "^3.0.3", "@smithy/middleware-content-length": "^3.0.5", "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", + "@smithy/middleware-retry": "^3.0.14", "@smithy/middleware-serde": "^3.0.3", "@smithy/middleware-stack": "^3.0.3", "@smithy/node-config-provider": "^3.1.4", "@smithy/node-http-handler": "^3.1.4", "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", "@smithy/util-endpoints": "^2.0.5", "@smithy/util-middleware": "^3.0.3", "@smithy/util-retry": "^3.0.3", @@ -13961,17 +16787,17 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/core": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.621.0.tgz", - "integrity": "sha512-CtOwWmDdEiINkGXD93iGfXjN0WmCp9l45cDWHHGa8lRgEDyhuL7bwd/pH5aSzj0j8SiQBG2k0S7DHbd5RaqvbQ==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/core": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", + "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", + "dev": true, "dependencies": { - "@smithy/core": "^2.3.1", + "@smithy/core": "^2.3.2", "@smithy/node-config-provider": "^3.1.4", "@smithy/protocol-http": "^4.1.0", "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "@smithy/util-middleware": "^3.0.3", "fast-xml-parser": "4.4.1", @@ -13981,11 +16807,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-env": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-env": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -13996,18 +16822,18 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.621.0.tgz", - "integrity": "sha512-/jc2tEsdkT1QQAI5Dvoci50DbSxtJrevemwFsm0B73pwCcOQZ5ZwwSdVqGsPutzYzUVx3bcXg3LRL7jLACqRIg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", + "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/fetch-http-handler": "^3.2.4", "@smithy/node-http-handler": "^3.1.4", "@smithy/property-provider": "^3.1.3", "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" @@ -14016,16 +16842,16 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.621.0.tgz", - "integrity": "sha512-0EWVnSc+JQn5HLnF5Xv405M8n4zfdx9gyGdpnCmAmFqEDHA8LmBdxJdpUk1Ovp/I5oPANhjojxabIW5f1uU0RA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", + "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", + "dev": true, "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.621.0", + "@aws-sdk/credential-provider-http": "3.622.0", "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.621.0", + "@aws-sdk/credential-provider-sso": "3.624.0", "@aws-sdk/credential-provider-web-identity": "3.621.0", "@aws-sdk/types": "3.609.0", "@smithy/credential-provider-imds": "^3.2.0", @@ -14038,20 +16864,20 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" + "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.621.0.tgz", - "integrity": "sha512-4JqpccUgz5Snanpt2+53hbOBbJQrSFq7E1sAAbgY6BKVQUsW5qyXqnjvSF32kDeKa5JpBl3bBWLZl04IadcPHw==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", + "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", + "dev": true, "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.621.0", - "@aws-sdk/credential-provider-ini": "3.621.0", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.624.0", "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.621.0", + "@aws-sdk/credential-provider-sso": "3.624.0", "@aws-sdk/credential-provider-web-identity": "3.621.0", "@aws-sdk/types": "3.609.0", "@smithy/credential-provider-imds": "^3.2.0", @@ -14064,11 +16890,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-process": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-process": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -14080,13 +16906,13 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.621.0.tgz", - "integrity": "sha512-Kza0jcFeA/GEL6xJlzR2KFf1PfZKMFnxfGzJzl5yN7EjoGdMijl34KaRyVnfRjnCWcsUpBWKNIDk9WZVMY9yiw==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", + "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", + "dev": true, "dependencies": { - "@aws-sdk/client-sso": "3.621.0", + "@aws-sdk/client-sso": "3.624.0", "@aws-sdk/token-providers": "3.614.0", "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -14098,11 +16924,30 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/credential-provider-web-identity": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" + } + }, + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-web-identity": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -14116,11 +16961,11 @@ "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-host-header": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-host-header": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -14131,11 +16976,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-logger": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-logger": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -14145,11 +16990,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-recursion-detection": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-recursion-detection": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -14160,11 +17005,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/middleware-user-agent": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-user-agent": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@aws-sdk/util-endpoints": "3.614.0", @@ -14176,11 +17021,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/region-config-resolver": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/region-config-resolver": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -14193,30 +17038,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" - } - }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/types": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/types": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -14225,11 +17051,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/util-endpoints": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-endpoints": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -14240,11 +17066,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/util-user-agent-browser": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-browser": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -14252,11 +17078,11 @@ "tslib": "^2.6.2" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@aws-sdk/util-user-agent-node": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-node": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", - "license": "Apache-2.0", + "dev": true, "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -14275,80 +17101,47 @@ } } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kinesis/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", + "dev": true, "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kms": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-kms/-/client-kms-3.651.1.tgz", - "integrity": "sha512-h1JLszptaHVNopSsEFbf44qwOAQjpH3Xa42jjgPswi1PvkkJevyrdmiJHJtRofBc+NDnTHI0hmr2w6JQRjRr+A==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -14356,835 +17149,451 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kms/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-kms/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.687.0.tgz", - "integrity": "sha512-gT/anhU8OXJP08MRHE0AkagQqgBL426+VNJlAh+O5XPP8USBWl9ZTiEQ1L6L10mDRst/rll8MmnDe0lxqgIpHQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/eventstream-serde-browser": "^3.0.11", - "@smithy/eventstream-serde-config-resolver": "^3.0.8", - "@smithy/eventstream-serde-node": "^3.0.10", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-stream": "^3.2.1", + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.7", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", - "tslib": "^2.6.2" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" + "@smithy/types": "^3.7.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-personalize-events/-/client-personalize-events-3.621.0.tgz", - "integrity": "sha512-qkVkqYvOe3WVuVNL/gRITGYFfHJCx2ijGFK7H3hNUJH3P4AwskmouAd1pWf+3cbGedRnj2is7iw7E602LeJIHA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", + "dev": true, "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.621.0", - "@aws-sdk/client-sts": "3.621.0", - "@aws-sdk/core": "3.621.0", - "@aws-sdk/credential-provider-node": "3.621.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/client-sso": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.621.0.tgz", - "integrity": "sha512-xpKfikN4u0BaUYZA9FGUMkkDmfoIP0Q03+A86WjqDWhcOoqNA1DkHsE4kZ+r064ifkPUfcNuUvlkVTEoBZoFjA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", + "dev": true, "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.621.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.621.0.tgz", - "integrity": "sha512-mMjk3mFUwV2Y68POf1BQMTF+F6qxt5tPu6daEUCNGC9Cenk3h2YXQQoS4/eSyYzuBiYk3vx49VgleRvdvkg8rg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", + "dev": true, "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.621.0", - "@aws-sdk/credential-provider-node": "3.621.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/client-sts": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.621.0.tgz", - "integrity": "sha512-707uiuReSt+nAx6d0c21xLjLm2lxeKc7padxjv92CIrIocnQSlJPxSCM7r5zBhwiahJA6MNQwmTl2xznU67KgA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", + "dev": true, "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.621.0", - "@aws-sdk/core": "3.621.0", - "@aws-sdk/credential-provider-node": "3.621.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.1", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.13", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.13", - "@smithy/util-defaults-mode-node": "^3.0.13", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -15192,472 +17601,587 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/core": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.621.0.tgz", - "integrity": "sha512-CtOwWmDdEiINkGXD93iGfXjN0WmCp9l45cDWHHGa8lRgEDyhuL7bwd/pH5aSzj0j8SiQBG2k0S7DHbd5RaqvbQ==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", + "dev": true, "dependencies": { - "@smithy/core": "^2.3.1", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", - "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.621.0.tgz", - "integrity": "sha512-/jc2tEsdkT1QQAI5Dvoci50DbSxtJrevemwFsm0B73pwCcOQZ5ZwwSdVqGsPutzYzUVx3bcXg3LRL7jLACqRIg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.11", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.621.0.tgz", - "integrity": "sha512-0EWVnSc+JQn5HLnF5Xv405M8n4zfdx9gyGdpnCmAmFqEDHA8LmBdxJdpUk1Ovp/I5oPANhjojxabIW5f1uU0RA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-route-53": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-route-53/-/client-route-53-3.775.0.tgz", + "integrity": "sha512-Fv7MlaK4Gv2rKR6j06CjBZ0k1GXTeFIwAyv1lsxPyqu9d//nd2Fh1u9IWUro9vQsyplWgyuQziuH0E4ORtWnJA==", + "dev": true, "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.621.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.621.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-sdk-route53": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@aws-sdk/xml-builder": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.621.0.tgz", - "integrity": "sha512-4JqpccUgz5Snanpt2+53hbOBbJQrSFq7E1sAAbgY6BKVQUsW5qyXqnjvSF32kDeKa5JpBl3bBWLZl04IadcPHw==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-route-53/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.621.0", - "@aws-sdk/credential-provider-ini": "3.621.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.621.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", - "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-route-53/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.621.0.tgz", - "integrity": "sha512-Kza0jcFeA/GEL6xJlzR2KFf1PfZKMFnxfGzJzl5yN7EjoGdMijl34KaRyVnfRjnCWcsUpBWKNIDk9WZVMY9yiw==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-route-53/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, "dependencies": { - "@aws-sdk/client-sso": "3.621.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", - "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-s3": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.775.0.tgz", + "integrity": "sha512-Z/BeVmYc3nj4FNE46MtvBYeCVvBZwlujMEvr5UOChP14899QWkBfOvf74RwQY9qy5/DvhVFkHlA8en1L6+0NrA==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@aws-crypto/sha1-browser": "5.2.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-bucket-endpoint": "3.775.0", + "@aws-sdk/middleware-expect-continue": "3.775.0", + "@aws-sdk/middleware-flexible-checksums": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-location-constraint": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-sdk-s3": "3.775.0", + "@aws-sdk/middleware-ssec": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/signature-v4-multi-region": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@aws-sdk/xml-builder": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/eventstream-serde-browser": "^4.0.2", + "@smithy/eventstream-serde-config-resolver": "^4.1.0", + "@smithy/eventstream-serde-node": "^4.0.2", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-blob-browser": "^4.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/hash-stream-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/md5-js": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", - "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", - "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-s3/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", - "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", - "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-secrets-manager": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-secrets-manager/-/client-secrets-manager-3.775.0.tgz", + "integrity": "sha512-/ne/Mz+rKJvGkYbyy5ouQhNq/yPERz5hMfwKVJM1mAPtmDbExel2Y8IZNQ5j18Q64RMkWo6Rzj4ET2mhA5UKPw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", - "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", + "node_modules/@aws-sdk/client-secrets-manager/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", - "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-secrets-manager/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-secrets-manager/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-sfn": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sfn/-/client-sfn-3.775.0.tgz", + "integrity": "sha512-NOgs44Sq2To3crVWvfbWyoZHZneslsCmD7UIZBdFhF4e0YuYJe7X6RQ11fhSREagrUo8RygwU6HOAteOll9AeQ==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-sfn/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/util-endpoints": { - "version": "3.637.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.637.0.tgz", - "integrity": "sha512-pAqOKUHeVWHEXXDIp/qoMk/6jyxIb6GGjnK1/f8dKHtKIEs4tKsnnL563gceEvdad53OPXIt86uoevCcCzmBnw==", + "node_modules/@aws-sdk/client-sfn/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", - "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-sfn/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", - "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-ssm": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.775.0.tgz", + "integrity": "sha512-F2bLhFFAU4Ls7YKFBSyNNKFeSIPwBO02eVYjgLFxrgaY9Kk6Tlx6DnwOE+Z2m3Q2tqavy8AQpRzyO+PI8cay2A==", + "dev": true, "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-personalize-events/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-rds/-/client-rds-3.624.0.tgz", - "integrity": "sha512-WZytF5YaDqEaJ/+2xm//ux+ER3pDwHU4ub4xXgMs46vG8WVLEDzILXp+Nn78w7W2sMwaQO12RYMvqgIB+/wF2A==", + "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/client-sts": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-sdk-rds": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", - "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "node_modules/@aws-sdk/client-sso": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.775.0.tgz", + "integrity": "sha512-vqG1S2ap77WP4D5qt4bEPE0duQ4myN+cDr1NeP8QpSTajetbkDGVo7h1VViYMcUoFUVWBj6Qf1X1VfOq+uaxbA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sso-oidc": { + "node_modules/@aws-sdk/client-sso-oidc": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -15706,18 +18230,15 @@ "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sts": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/client-sso": { "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", - "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", @@ -15758,12 +18279,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/core": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/core": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/core": "^2.3.2", "@smithy/node-config-provider": "^3.1.4", @@ -15779,12 +18299,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-env": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-env": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -15795,12 +18314,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-http": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-http": { "version": "3.622.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/fetch-http-handler": "^3.2.4", @@ -15816,12 +18334,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-ini": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-ini": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -15842,12 +18359,11 @@ "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-node": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-node": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -15866,12 +18382,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-process": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-process": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -15883,12 +18398,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-sso": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-sso": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-sso": "3.624.0", "@aws-sdk/token-providers": "3.614.0", @@ -15902,12 +18416,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-web-identity": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-web-identity": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -15921,12 +18434,11 @@ "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-host-header": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-host-header": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -15937,12 +18449,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-logger": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-logger": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -15952,12 +18463,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-recursion-detection": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-recursion-detection": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -15968,12 +18478,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-user-agent": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-user-agent": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@aws-sdk/util-endpoints": "3.614.0", @@ -15985,12 +18494,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/region-config-resolver": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/region-config-resolver": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -16003,12 +18511,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/token-providers": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/token-providers": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -16023,12 +18530,11 @@ "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/types": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/types": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -16037,12 +18543,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-endpoints": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/util-endpoints": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -16053,12 +18558,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-browser": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/util-user-agent-browser": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -16066,12 +18570,11 @@ "tslib": "^2.6.2" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-node": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/util-user-agent-node": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -16090,748 +18593,499 @@ } } }, - "node_modules/@aws-sdk/client-rds/node_modules/@smithy/node-config-provider": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/abort-controller": { "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", + "dev": true, + "dependencies": { + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.687.0.tgz", - "integrity": "sha512-2IoaVAd7HCIDhfeTTrk8CAosEVqnQig47Tra2uOBEyzpcCFQLmcY57/sbHCpJ3ntnU8see53q0bQ+fdew4MGLA==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha1-browser": "5.2.0", - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-bucket-endpoint": "3.686.0", - "@aws-sdk/middleware-expect-continue": "3.686.0", - "@aws-sdk/middleware-flexible-checksums": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-location-constraint": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-sdk-s3": "3.687.0", - "@aws-sdk/middleware-ssec": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/signature-v4-multi-region": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@aws-sdk/xml-builder": "3.686.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/eventstream-serde-browser": "^3.0.11", - "@smithy/eventstream-serde-config-resolver": "^3.0.8", - "@smithy/eventstream-serde-node": "^3.0.10", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-blob-browser": "^3.1.7", - "@smithy/hash-node": "^3.0.8", - "@smithy/hash-stream-node": "^3.1.7", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/md5-js": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-stream": "^3.2.1", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.7", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", - "tslib": "^2.6.2" + "@smithy/types": "^3.7.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "bowser": "^2.11.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ssm": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.687.0.tgz", - "integrity": "sha512-b9mquFGzssFfuIPBxlcc8sJCd8uW/XDZVMwlv6ywFtLfRv16exBmnr37Zth+/VIvKIgA0ey4nb/9LdUqEYzs8g==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.7", - "@types/uuid": "^9.0.1", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -16839,2218 +19093,1759 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/client-sso/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", + "node_modules/@aws-sdk/client-sso/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", + "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", + "node_modules/@aws-sdk/client-sts": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.775.0.tgz", + "integrity": "sha512-6p1dZ7bvwJfWQ/UJM+JD1iv0HDsEN6AbBZWtwRq402Pdm/5cQEYKf7ERLKGGY84YpEpXqiFgiLBrKXjClqjnQg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", + "node_modules/@aws-sdk/client-sts/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", + "node_modules/@aws-sdk/client-sts/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", + "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/core": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.775.0.tgz", + "integrity": "sha512-8vpW4WihVfz0DX+7WnnLGm3GuQER++b0IwQG35JlQMlgqnc44M//KbJPsIHA0aJUJVwJAEShgfr5dUbY8WUzaA==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.775.0", + "@smithy/core": "^3.2.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/signature-v4": "^5.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-middleware": "^4.0.2", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", + "node_modules/@aws-sdk/core/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", + "node_modules/@aws-sdk/core/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.775.0.tgz", + "integrity": "sha512-fcyZzoCFp2u4NWXW8INA81kEEsWC7ZFzy5m/6t2RF1Gjt+1n2AlFQVqF73LeyEcaN+biNKq87kh94Btk0QdfHA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@aws-sdk/client-cognito-identity": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.775.0.tgz", + "integrity": "sha512-6ESVxwCbGm7WZ17kY1fjmxQud43vzJFoLd4bmlR+idQSWdqlzGDYdcfzpjDKTcivdtNrVYmFvcH1JBUwCRAZhw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.775.0.tgz", + "integrity": "sha512-PjDQeDH/J1S0yWV32wCj2k5liRo0ssXMseCBEkCsD3SqsU8o5cU82b0hMX4sAib/RkglCSZqGO0xMiN0/7ndww==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/property-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-stream": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.775.0.tgz", + "integrity": "sha512-0gJc6cALsgrjeC5U3qDjbz4myIC/j49+gPz9nkvY+C0OYWt1KH1tyfiZUuCRGfuFHhQ+3KMMDSL229TkBP3E7g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-env": "3.775.0", + "@aws-sdk/credential-provider-http": "3.775.0", + "@aws-sdk/credential-provider-process": "3.775.0", + "@aws-sdk/credential-provider-sso": "3.775.0", + "@aws-sdk/credential-provider-web-identity": "3.775.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", + "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.775.0.tgz", + "integrity": "sha512-D8Zre5W2sXC/ANPqCWPqwYpU1cKY9DF6ckFZyDrqlcBC0gANgpY6fLrBtYo2fwJsbj+1A24iIpBINV7erdprgA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-sdk/credential-provider-env": "3.775.0", + "@aws-sdk/credential-provider-http": "3.775.0", + "@aws-sdk/credential-provider-ini": "3.775.0", + "@aws-sdk/credential-provider-process": "3.775.0", + "@aws-sdk/credential-provider-sso": "3.775.0", + "@aws-sdk/credential-provider-web-identity": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", + "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.775.0.tgz", + "integrity": "sha512-A6k68H9rQp+2+7P7SGO90Csw6nrUEm0Qfjpn9Etc4EboZhhCLs9b66umUsTsSBHus4FDIe5JQxfCUyt1wgNogg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", + "node_modules/@aws-sdk/credential-provider-process/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.775.0.tgz", + "integrity": "sha512-du06V7u9HDmRuwZnRjf85shO3dffeKOkQplV5/2vf3LgTPNEI9caNomi/cCGyxKGOeSUHAKrQ1HvpPfOaI6t5Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@aws-sdk/client-sso": "3.775.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/token-providers": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/credential-provider-sso/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.775.0.tgz", + "integrity": "sha512-z4XLYui5aHsr78mbd5BtZfm55OM5V55qK/X17OPrEqjYDDk3GlI8Oe2ZjTmOVrKwMpmzXKhsakeFHKfDyOvv1A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sso": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.651.1.tgz", - "integrity": "sha512-Fm8PoMgiBKmmKrY6QQUGj/WW6eIiQqC1I0AiVXfO+Sqkmxcg3qex+CZBAYrTuIDnvnc/89f9N4mdL8V9DRn03Q==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "node_modules/@aws-sdk/credential-providers": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.775.0.tgz", + "integrity": "sha512-THvyeStdvd0z8Dv1lJ7KrMRiZkFfUktYQUvvFT45ph14jHC5oRoPColtLHz4JjuDN5QEQ5EGrbc6USADZu1k/w==", + "dev": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.775.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-cognito-identity": "3.775.0", + "@aws-sdk/credential-provider-env": "3.775.0", + "@aws-sdk/credential-provider-http": "3.775.0", + "@aws-sdk/credential-provider-ini": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/credential-provider-process": "3.775.0", + "@aws-sdk/credential-provider-sso": "3.775.0", + "@aws-sdk/credential-provider-web-identity": "3.775.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/core": "^3.2.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.651.1.tgz", - "integrity": "sha512-PKwAyTJW8pgaPIXm708haIZWBAwNycs25yNcD7OQ3NLcmgGxvrx6bSlhPEGcvwdTYwQMJsdx8ls+khlYbLqTvQ==", + "node_modules/@aws-sdk/ec2-metadata-service": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/ec2-metadata-service/-/ec2-metadata-service-3.775.0.tgz", + "integrity": "sha512-tdC2PIOUuK5xS4QIRD0ZLSMaVPTsTBuA5+8r/r1O8wGDVkPfsj+u8l5QA0S9cCMCyPCju2Fku4TEjqnvBGuDcA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/types": "3.775.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-stream": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/ec2-metadata-service/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/ec2-metadata-service/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/endpoint-cache": { + "version": "3.723.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/endpoint-cache/-/endpoint-cache-3.723.0.tgz", + "integrity": "sha512-2+a4WXRc+07uiPR+zJiPGKSOWaNJQNqitkks+6Hhm/haTLJqNVTgY2OWDh2PXvwMNpKB+AlGdhE65Oy6NzUgXg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "mnemonist": "0.38.3", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/lib-storage": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.775.0.tgz", + "integrity": "sha512-sT8HFYOAIQoOZ/VeLUmnljd45eD/JRT1LSrHWUoOqLownm0h5F02Y+g6Y37jLRDTl9UNs+QK61kP+gwu2Vmb6g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/abort-controller": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/smithy-client": "^4.2.0", + "buffer": "5.6.0", + "events": "3.3.0", + "stream-browserify": "3.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-s3": "^3.775.0" } }, - "node_modules/@aws-sdk/client-sts": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.651.1.tgz", - "integrity": "sha512-4X2RqLqeDuVLk+Omt4X+h+Fa978Wn+zek/AM4HSPi4C5XzRBEFLRRtOQUvkETvIjbEwTYQhm0LdgzcBH4bUqIg==", + "node_modules/@aws-sdk/middleware-bucket-endpoint": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.775.0.tgz", + "integrity": "sha512-qogMIpVChDYr4xiUNC19/RDSw/sKoHkAhouS6Skxiy6s27HBhow1L3Z1qVYXuBmOZGSWPU0xiyZCvOyWrv9s+Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-arn-parser": "3.723.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/core": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.651.1.tgz", - "integrity": "sha512-eqOq3W39K+5QTP5GAXtmP2s9B7hhM2pVz8OPe5tqob8o1xQgkwdgHerf3FoshO9bs0LDxassU/fUSz1wlwqfqg==", + "node_modules/@aws-sdk/middleware-endpoint-discovery": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-endpoint-discovery/-/middleware-endpoint-discovery-3.775.0.tgz", + "integrity": "sha512-L0PmjSg7t+wovRo/Lin1kpei3e7wBhrENWb1Bbccu3PWUIfxolGeWplOmNhSlXjuQe9GXjf3z8kJRYOGBMFOvw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.1", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-middleware": "^3.0.4", - "fast-xml-parser": "4.4.1", + "@aws-sdk/endpoint-cache": "3.723.0", + "@aws-sdk/types": "3.775.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/core/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-endpoint-discovery/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/core/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-endpoint-discovery/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.687.0.tgz", - "integrity": "sha512-hJq9ytoj2q/Jonc7mox/b0HT+j4NeMRuU184DkXRJbvIvwwB+oMt12221kThLezMhwIYfXEteZ7GEId7Hn8Y8g==", + "node_modules/@aws-sdk/middleware-expect-continue": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.775.0.tgz", + "integrity": "sha512-Apd3owkIeUW5dnk3au9np2IdW2N0zc9NjTjHiH+Mx3zqwSrc+m+ANgJVgk9mnQjMzU/vb7VuxJ0eqdEbp5gYsg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/middleware-flexible-checksums": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.775.0.tgz", + "integrity": "sha512-OmHLfRIb7IIXsf9/X/pMOlcSV3gzW/MmtPSZTkrz5jCTKzWXd7eRoyOJqewjsaC6KMAxIpNU77FoAd16jOZ21A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-crypto/crc32": "5.2.0", + "@aws-crypto/crc32c": "5.2.0", + "@aws-crypto/util": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/is-array-buffer": "^4.0.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.649.0.tgz", - "integrity": "sha512-tViwzM1dauksA3fdRjsg0T8mcHklDa8EfveyiQKK6pUJopkqV6FQx+X5QNda0t/LrdEVlFZvwHNdXqOEfc83TA==", + "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.649.0.tgz", - "integrity": "sha512-ODAJ+AJJq6ozbns6ejGbicpsQ0dyMOpnGlg0J9J0jITQ05DKQZ581hdB8APDOZ9N8FstShP6dLZflSj8jb5fNA==", + "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-stream": "^3.1.4", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.651.1.tgz", - "integrity": "sha512-yOzPC3GbwLZ8IYzke4fy70ievmunnBUni/MOXFE8c9kAIV+/RMC7IWx14nAAZm0gAcY+UtCXvBVZprFqmctfzA==", + "node_modules/@aws-sdk/middleware-host-header": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.775.0.tgz", + "integrity": "sha512-tkSegM0Z6WMXpLB8oPys/d+umYIocvO298mGvcMCncpRl77L9XkvSLJIFzaHes+o7djAgIduYw8wKIMStFss2w==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-location-constraint": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.775.0.tgz", + "integrity": "sha512-8TMXEHZXZTFTckQLyBT5aEI8fX11HZcwZseRifvBKKpj0RZDk4F0EEYGxeNSPpUQ7n+PRWyfAEnnZNRdAj/1NQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.651.1.tgz", - "integrity": "sha512-QKA74Qs83FTUz3jS39kBuNbLAnm6cgDqomm7XS/BkYgtUq+1lI9WL97astNIuoYvumGIS58kuIa+I3ycOA4wgw==", + "node_modules/@aws-sdk/middleware-logger": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.775.0.tgz", + "integrity": "sha512-FaxO1xom4MAoUJsldmR92nT1G6uZxTdNYOFYtdHfd6N2wcNaTuxgjIvqzg5y7QIH9kn58XX/dzf1iTjgqUStZw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-ini": "3.651.1", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.775.0.tgz", + "integrity": "sha512-GLCzC8D0A0YDG5u3F5U03Vb9j5tcOEFhr8oc6PDk0k0vm5VwtZOE6LvK7hcCSoAB4HXyOUM0sQuXrbaAh9OwXA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.649.0.tgz", - "integrity": "sha512-6VYPQpEVpU+6DDS/gLoI40ppuNM5RPIEprK30qZZxnhTr5wyrGOeJ7J7wbbwPOZ5dKwta290BiJDU2ipV8Y9BQ==", + "node_modules/@aws-sdk/middleware-sdk-ec2": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-ec2/-/middleware-sdk-ec2-3.622.0.tgz", + "integrity": "sha512-rVShV+eB1vovLuvlzUEFuxZB4yxSMFzyP+VNIoFxtSZh0LWh7+7bNLwp1I9Vq3SxHLMVYQevjm7nkiPM0DG+RQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-format-url": "3.609.0", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-process/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.651.1.tgz", - "integrity": "sha512-7jeU+Jbn65aDaNjkjWDQcXwjNTzpYNKovkSSRmfVpP5WYiKerVS5mrfg3RiBeiArou5igCUtYcOKlRJiGRO47g==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.651.1", - "@aws-sdk/token-providers": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-sso/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.649.0.tgz", - "integrity": "sha512-XVk3WsDa0g3kQFPmnCH/LaCtGY/0R2NDv7gscYZSXiBZcG/fixasglTprgWSp8zcA0t7tEIGu9suyjz8ZwhymQ==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.649.0" } }, - "node_modules/@aws-sdk/credential-providers": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.687.0.tgz", - "integrity": "sha512-3aKlmKaOplpanOycmoigbTrQsqtxpzhpfquCey51aHf9GYp2yYyYF1YOgkXpE3qm3w6eiEN1asjJ2gqoECUuPA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.687.0", - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/client-sts": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-cognito-identity": "3.687.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.687.0.tgz", - "integrity": "sha512-dfj0y9fQyX4kFill/ZG0BqBTLQILKlL7+O5M4F9xlsh2WNuV2St6WtcOg14Y1j5UODPJiJs//pO+mD1lihT5Kw==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.687.0.tgz", - "integrity": "sha512-Rdd8kLeTeh+L5ZuG4WQnWgYgdv7NorytKdZsGjiag1D8Wv3PcJvPqqWdgnI0Og717BSXVoaTYaN34FyqFYSx6Q==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sts": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.687.0.tgz", - "integrity": "sha512-SQjDH8O4XCTtouuCVYggB0cCCrIaTzUZIkgJUpOsIEJBLlTbNOb/BZqUShAQw2o9vxr2rCeOGjAQOYPysW/Pmg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-node": "3.687.0", - "@aws-sdk/middleware-host-header": "3.686.0", - "@aws-sdk/middleware-logger": "3.686.0", - "@aws-sdk/middleware-recursion-detection": "3.686.0", - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/region-config-resolver": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@aws-sdk/util-user-agent-browser": "3.686.0", - "@aws-sdk/util-user-agent-node": "3.687.0", - "@smithy/config-resolver": "^3.0.10", - "@smithy/core": "^2.5.1", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/hash-node": "^3.0.8", - "@smithy/invalid-dependency": "^3.0.8", - "@smithy/middleware-content-length": "^3.0.10", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-retry": "^3.0.25", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.25", - "@smithy/util-defaults-mode-node": "^3.0.25", - "@smithy/util-endpoints": "^2.1.4", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.686.0.tgz", - "integrity": "sha512-osD7lPO8OREkgxPiTWmA1i6XEmOth1uW9HWWj/+A2YGCj1G/t2sHu931w4Qj9NWHYZtbTTXQYVRg+TErALV7nQ==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.686.0.tgz", - "integrity": "sha512-xyGAD/f3vR/wssUiZrNFWQWXZvI4zRm2wpHhoHA1cC2fbRMNFYtFn365yw6dU7l00ZLcdFB1H119AYIUZS7xbw==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.687.0.tgz", - "integrity": "sha512-6d5ZJeZch+ZosJccksN0PuXv7OSnYEmanGCnbhUqmUSz9uaVX6knZZfHCZJRgNcfSqg9QC0zsFA/51W5HCUqSQ==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.687.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.687.0.tgz", - "integrity": "sha512-Pqld8Nx11NYaBUrVk3bYiGGpLCxkz8iTONlpQWoVWFhSOzlO7zloNOaYbD2XgFjjqhjlKzE91drs/f41uGeCTA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.686.0", - "@aws-sdk/credential-provider-http": "3.686.0", - "@aws-sdk/credential-provider-ini": "3.687.0", - "@aws-sdk/credential-provider-process": "3.686.0", - "@aws-sdk/credential-provider-sso": "3.687.0", - "@aws-sdk/credential-provider-web-identity": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/credential-provider-imds": "^3.2.4", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.686.0.tgz", - "integrity": "sha512-sXqaAgyzMOc+dm4CnzAR5Q6S9OWVHyZjLfW6IQkmGjqeQXmZl24c4E82+w64C+CTkJrFLzH1VNOYp1Hy5gE6Qw==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.687.0.tgz", - "integrity": "sha512-N1YCoE7DovIRF2ReyRrA4PZzF0WNi4ObPwdQQkVxhvSm7PwjbWxrfq7rpYB+6YB1Uq3QPzgVwUFONE36rdpxUQ==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.687.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/token-providers": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.686.0.tgz", - "integrity": "sha512-40UqCpPxyHCXDP7CGd9JIOZDgDZf+u1OyLaGBpjQJlz1HYuEsIWnnbTe29Yg3Ah/Zc3g4NBWcUdlGVotlnpnDg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.686.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.686.0.tgz", - "integrity": "sha512-+Yc6rO02z+yhFbHmRZGvEw1vmzf/ifS9a4aBjJGeVVU+ZxaUvnk+IUZWrj4YQopUQ+bSujmMUzJLXSkbDq7yuw==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-logger": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.686.0.tgz", - "integrity": "sha512-cX43ODfA2+SPdX7VRxu6gXk4t4bdVJ9pkktbfnkE5t27OlwNfvSGGhnHrQL8xTOFeyQ+3T+oowf26gf1OI+vIg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.686.0.tgz", - "integrity": "sha512-jF9hQ162xLgp9zZ/3w5RUNhmwVnXDBlABEUX8jCgzaFpaa742qR/KKtjjZQ6jMbQnP+8fOCSXFAVNMU+s6v81w==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.687.0.tgz", - "integrity": "sha512-nUgsKiEinyA50CaDXojAkOasAU3Apdg7Qox6IjNUC4ZjgOu7QWsCDB5N28AYMUt06cNYeYQdfMX1aEzG85a1Mg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-endpoints": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.686.0.tgz", - "integrity": "sha512-6zXD3bSD8tcsMAVVwO1gO7rI1uy2fCD3czgawuPGPopeLiPpo6/3FoUWCQzk2nvEhj7p9Z4BbjwZGSlRkVrXTw==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/token-providers": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.686.0.tgz", - "integrity": "sha512-9oL4kTCSePFmyKPskibeiOXV6qavPZ63/kXM9Wh9V6dTSvBtLeNnMxqGvENGKJcTdIgtoqyqA6ET9u0PJ5IRIg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/property-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.8", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.686.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-endpoints": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.686.0.tgz", - "integrity": "sha512-7msZE2oYl+6QYeeRBjlDgxQUhq/XRky3cXE0FqLFs2muLS7XSuQEXkpOXB3R782ygAP6JX0kmBxPTLurRTikZg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "@smithy/util-endpoints": "^2.1.4", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.686.0.tgz", - "integrity": "sha512-YiQXeGYZegF1b7B2GOR61orhgv79qmI0z7+Agm3NXLO6hGfVV3kFUJbXnjtH1BgWo5hbZYW7HQ2omGb3dnb6Lg==", + "node_modules/@aws-sdk/middleware-sdk-rds": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-rds/-/middleware-sdk-rds-3.620.0.tgz", + "integrity": "sha512-pokuq3rMJfn8ZNUIhAKn0c1nQtvClPLzh5h1fOXAeRXmNjp+YPXQ4CIsGRcqDNO8lkUyyfV42WnPCdUZmR9zAA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", - "bowser": "^2.11.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-format-url": "3.609.0", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.687.0.tgz", - "integrity": "sha512-idkP6ojSTZ4ek1pJ8wIN7r9U3KR5dn0IkJn3KQBXQ58LWjkRqLtft2vxzdsktWwhPKjjmIKl1S0kbvqLawf8XQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-user-agent": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/fetch-http-handler": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-providers/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.686.0.tgz", - "integrity": "sha512-6qCoWI73/HDzQE745MHQUYz46cAQxHCgy1You8MZQX9vHAQwqBnkcsb2hGp7S6fnQY5bNsiZkMWVQ/LVd2MNjg==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-arn-parser": "3.679.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-expect-continue": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.686.0.tgz", - "integrity": "sha512-5yYqIbyhLhH29vn4sHiTj7sU6GttvLMk3XwCmBXjo2k2j3zHqFUwh9RyFGF9VY6Z392Drf/E/cl+qOGypwULpg==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-expect-continue/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.687.0.tgz", - "integrity": "sha512-hsEr3eiJs7gOzj9nDMCMfhLkoYv4Z8m7fbic63TkeyimXvsHycqqF6PX0TkPykwa1ueyxVpz0vtO5u1rlucN2w==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/crc32": "5.2.0", - "@aws-crypto/crc32c": "5.2.0", - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-stream": "^3.2.1", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.649.0.tgz", - "integrity": "sha512-PjAe2FocbicHVgNNwdSZ05upxIO7AgTPFtQLpnIAmoyzMcgv/zNB5fBn3uAnQSAeEPPCD+4SYVEUD1hw1ZBvEg==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-location-constraint": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.686.0.tgz", - "integrity": "sha512-pCLeZzt5zUGY3NbW4J/5x3kaHyJEji4yqtoQcUlJmkoEInhSxJ0OE8sTxAfyL3nIOF4yr6L2xdaLCqYgQT8Aog==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-location-constraint/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-logger": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.649.0.tgz", - "integrity": "sha512-qdqRx6q7lYC6KL/NT9x3ShTL0TBuxdkCczGzHzY3AnOoYUjnCDH7Vlq867O6MAvb4EnGNECFzIgtkZkQ4FhY5w==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.649.0.tgz", - "integrity": "sha512-IPnO4wlmaLRf6IYmJW2i8gJ2+UPXX0hDRv1it7Qf8DpBW+lGyF2rnoN7NrFX0WIxdGOlJF1RcOr/HjXb2QeXfQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-ec2": { - "version": "3.622.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-ec2/-/middleware-sdk-ec2-3.622.0.tgz", - "integrity": "sha512-rVShV+eB1vovLuvlzUEFuxZB4yxSMFzyP+VNIoFxtSZh0LWh7+7bNLwp1I9Vq3SxHLMVYQevjm7nkiPM0DG+RQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-format-url": "3.609.0", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-rds": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-rds/-/middleware-sdk-rds-3.620.0.tgz", - "integrity": "sha512-pokuq3rMJfn8ZNUIhAKn0c1nQtvClPLzh5h1fOXAeRXmNjp+YPXQ4CIsGRcqDNO8lkUyyfV42WnPCdUZmR9zAA==", + "node_modules/@aws-sdk/middleware-sdk-route53": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-route53/-/middleware-sdk-route53-3.775.0.tgz", + "integrity": "sha512-h9Lv/VRcmo4Cb4j1fE+uerFrSBtSVmcryljtCLXOCqiIYFteREIgZD4bFlsvc6dkNyLPZiD+Yj1Sl7i7qZIaCQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-format-url": "3.609.0", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "node_modules/@aws-sdk/middleware-sdk-s3": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.775.0.tgz", + "integrity": "sha512-zsvcu7cWB28JJ60gVvjxPCI7ZU7jWGcpNACPiZGyVtjYXwcxyhXbYEVDSWKsSA6ERpz9XrpLYod8INQWfW3ECg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-arn-parser": "3.723.0", + "@smithy/core": "^3.2.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/signature-v4": "^5.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.687.0.tgz", - "integrity": "sha512-YGHYqiyRiNNucmvLrfx3QxIkjSDWR/+cc72bn0lPvqFUQBRHZgmYQLxVYrVZSmRzzkH2FQ1HsZcXhOafLbq4vQ==", + "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.686.0", - "@aws-sdk/types": "3.686.0", - "@aws-sdk/util-arn-parser": "3.679.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-stream": "^3.2.1", - "@smithy/util-utf8": "^3.0.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@aws-sdk/core": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.686.0.tgz", - "integrity": "sha512-Xt3DV4DnAT3v2WURwzTxWQK34Ew+iiLzoUoguvLaZrVMFOqMMrwVjP+sizqIaHp1j7rGmFcN5I8saXnsDLuQLA==", + "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/core": "^2.5.1", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "fast-xml-parser": "4.4.1", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/middleware-ssec": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.775.0.tgz", + "integrity": "sha512-Iw1RHD8vfAWWPzBBIKaojO4GAvQkHOYIpKdAfis/EUSUmSa79QsnXnRqsdcE0mCB0Ylj23yi+ah4/0wh9FsekA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", + "node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.775.0.tgz", + "integrity": "sha512-7Lffpr1ptOEDE1ZYH1T78pheEY1YmeXWBfFt/amZ6AGsKSLG+JPXvof3ltporTGR2bhH/eJPo7UHCglIuXfzYg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@smithy/core": "^3.2.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", + "node_modules/@aws-sdk/nested-clients": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.775.0.tgz", + "integrity": "sha512-f37jmAzkuIhKyhtA6s0LGpqQvm218vq+RNMUDkGm1Zz2fxJ5pBIUTDtygiI3vXTcmt9DTIB8S6JQhjrgtboktw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-ssec": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.686.0.tgz", - "integrity": "sha512-zJXml/CpVHFUdlGQqja87vNQ3rPB5SlDbfdwxlj1KBbjnRRwpBtxxmOlWRShg8lnVV6aIMGv95QmpIFy4ayqnQ==", + "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.686.0", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-ssec/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.649.0.tgz", - "integrity": "sha512-q6sO10dnCXoxe9thobMJxekhJumzd1j6dxcE1+qJdYKHJr6yYgWbogJqrLCpWd30w0lEvnuAHK8lN2kWLdJxJw==", + "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.649.0.tgz", - "integrity": "sha512-xURBvdQXvRvca5Du8IlC5FyCj3pkw8Z75+373J3Wb+vyg8GjD14HfKk1Je1HCCQDyIE9VB/scYDcm9ri0ppePw==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.775.0.tgz", + "integrity": "sha512-40iH3LJjrQS3LKUJAl7Wj0bln7RFPEvUYKFxtP8a+oKFDO0F65F52xZxIJbPn6sHkxWDAnZlGgdjZXM3p2g5wQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.4", + "@aws-sdk/types": "3.775.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.687.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.687.0.tgz", - "integrity": "sha512-vdOQHCRHJPX9mT8BM6xOseazHD6NodvHl9cyF5UjNtLn+gERRJEItIA9hf0hlt62odGD8Fqp+rFRuqdmbNkcNw==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.775.0.tgz", + "integrity": "sha512-cnGk8GDfTMJ8p7+qSk92QlIk2bmTmFJqhYxcXZ9PysjZtx0xmfCMxnG3Hjy1oU2mt5boPCVSOptqtWixayM17g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-sdk-s3": "3.687.0", - "@aws-sdk/types": "3.686.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/signature-v4": "^4.2.0", - "@smithy/types": "^3.6.0", + "@aws-sdk/middleware-sdk-s3": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/signature-v4": "^5.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/signature-v4-multi-region/node_modules/@aws-sdk/types": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.686.0.tgz", - "integrity": "sha512-xFnrb3wxOoJcW2Xrh63ZgFo5buIu9DF7bOHnwoUxHdNpUXicUh0AHw85TjXxyxIAd0d1psY/DU7QHoNI3OswgQ==", + "node_modules/@aws-sdk/token-providers": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.775.0.tgz", + "integrity": "sha512-Q6MtbEhkOggVSz/dN89rIY/ry80U3v89o0Lrrc+Rpvaiaaz8pEN0DsfEcg0IjpzBQ8Owoa6lNWyglHbzPhaJpA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/token-providers": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.649.0.tgz", - "integrity": "sha512-ZBqr+JuXI9RiN+4DSZykMx5gxpL8Dr3exIfFhxMiwAP3DQojwl0ub8ONjMuAjq9OvmX6n+jHZL6fBnNgnNFC8w==", + "node_modules/@aws-sdk/token-providers/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.649.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/token-providers/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@aws-sdk/types": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.775.0.tgz", + "integrity": "sha512-ZoGKwa4C9fC9Av6bdfqcW6Ix5ot05F/S4VxWR2nHuMv7hzfmAjTOcUiWT7UR4hM/U0whf84VhDtXN/DWAk52KA==", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/types": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.649.0.tgz", - "integrity": "sha512-PuPw8RysbhJNlaD2d/PzOTf8sbf4Dsn2b7hwyGh7YVG3S75yTpxSAZxrnhKsz9fStgqFmnw/jUfV/G+uQAeTVw==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/util-arn-parser": { + "version": "3.723.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.723.0.tgz", + "integrity": "sha512-ZhEfvUwNliOQROcAk34WJWVYTlTa4694kSVhDSjW6lE1bMataPnIN8A0ycukEzBXmd8ZSoBcQLn6lKGl7XIJ5w==", + "dev": true, "dependencies": { - "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/util-arn-parser": { - "version": "3.679.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.679.0.tgz", - "integrity": "sha512-CwzEbU8R8rq9bqUFryO50RFBlkfufV9UfMArHPWlo+lmsC+NlSluHQALoj6Jkq3zf5ppn1CN0c1DDLrEqdQUXg==", + "node_modules/@aws-sdk/util-dynamodb": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-dynamodb/-/util-dynamodb-3.775.0.tgz", + "integrity": "sha512-RawcbaM54+7zJ1ULncZAvSSIGZcSucnQ6OY4pMjuUczp6kGx0dLuUJofLyATcboDKPjZZg+luF/z9E/XQq1J3g==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-dynamodb": "^3.775.0" } }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.649.0.tgz", - "integrity": "sha512-bZI1Wc3R/KibdDVWFxX/N4AoJFG4VJ92Dp4WYmOrVD6VPkb8jPz7ZeiYc7YwPl8NoDjYyPneBV0lEoK/V8OKAA==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.775.0.tgz", + "integrity": "sha512-yjWmUgZC9tUxAo8Uaplqmq0eUh0zrbZJdwxGRKdYxfm4RG6fMw1tj52+KkatH7o+mNZvg1GDcVp/INktxonJLw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", - "@smithy/util-endpoints": "^2.1.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", + "@smithy/util-endpoints": "^3.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/util-format-url": { @@ -19058,7 +20853,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.609.0.tgz", "integrity": "sha512-fuk29BI/oLQlJ7pfm6iJ4gkEpHdavffAALZwXh9eaY1vQ0ip0aKfRTiNudPoJjyyahnz5yJ1HkmlcDitlzsOrQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/querystring-builder": "^3.0.3", @@ -19074,7 +20868,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -19083,11 +20876,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.568.0.tgz", - "integrity": "sha512-3nh4TINkXYr+H41QaPelCceEB2FXP3fxp93YZXB/kqJvX0U9j0N0Uk45gvsjmEPzG8XxkPEeLIfT2I1M7A6Lig==", - "license": "Apache-2.0", + "node_modules/@aws-sdk/util-format-url/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", + "dev": true, "dependencies": { "tslib": "^2.6.2" }, @@ -19095,33 +20888,43 @@ "node": ">=16.0.0" } }, + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.723.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.723.0.tgz", + "integrity": "sha512-Yf2CS10BqK688DRsrKI/EO6B8ff5J86NXe4C+VCysK7UOgN0l1zOTeTukZ3H8Q9tYYX3oaF1961o8vRkFm7Nmw==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.649.0.tgz", - "integrity": "sha512-IY43r256LhKAvdEVQO/FPdUyVpcZS5EVxh/WHVdNzuN1bNLoUK2rIzuZqVA0EGguvCxoXVmQv9m50GvG7cGktg==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.775.0.tgz", + "integrity": "sha512-txw2wkiJmZKVdDbscK7VBK+u+TJnRtlUjRTLei+elZg2ADhpQxfVAQl436FUeIv6AhB/oRHW6/K/EAGXUSWi0A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.649.0.tgz", - "integrity": "sha512-x5DiLpZDG/AJmCIBnE3Xhpwy35QIo3WqNiOpw6ExVs1NydbM/e90zFPSfhME0FM66D/WorigvluBxxwjxDm/GA==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.775.0.tgz", + "integrity": "sha512-N9yhTevbizTOMo3drH7Eoy6OkJ3iVPxhV7dwb6CMAObbLneS36CSfA6xQXupmHWcRvZPTz8rd1JGG3HzFOau+g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { "aws-crt": ">=1.0.0" @@ -19133,47 +20936,44 @@ } }, "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/xml-builder": { - "version": "3.686.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.686.0.tgz", - "integrity": "sha512-k0z5b5dkYSuOHY0AOZ4iyjcGBeVL9lWsQNF4+c+1oK3OW4fRWl/bNa1soMRMpangsHPzgyn/QkzuDbl7qR4qrw==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.775.0.tgz", + "integrity": "sha512-b9NGO6FKJeLGYnV7Z1yvcP1TNU4dkD5jNsLWOF1/sygZoASaQhNOlaiJ/1OH331YQ1R1oWk38nBb0frsYkDsOQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@babel/code-frame": { @@ -19181,7 +20981,6 @@ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.25.9", "js-tokens": "^4.0.0", @@ -19192,32 +20991,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.2.tgz", - "integrity": "sha512-Z0WgzSEa+aUcdiJuCIqgujCshpMWgUpgOxXotrYPSA53hA3qopNaqcJpyr0hVb1FeWdnqFA35/fUtXgBK8srQg==", + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", + "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", - "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", + "version": "7.26.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", + "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", "dev": true, - "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.26.0", - "@babel/generator": "^7.26.0", - "@babel/helper-compilation-targets": "^7.25.9", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.10", + "@babel/helper-compilation-targets": "^7.26.5", "@babel/helper-module-transforms": "^7.26.0", - "@babel/helpers": "^7.26.0", - "@babel/parser": "^7.26.0", - "@babel/template": "^7.25.9", - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.26.0", + "@babel/helpers": "^7.26.10", + "@babel/parser": "^7.26.10", + "@babel/template": "^7.26.9", + "@babel/traverse": "^7.26.10", + "@babel/types": "^7.26.10", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -19233,14 +21030,13 @@ } }, "node_modules/@babel/core/node_modules/@babel/generator": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.2.tgz", - "integrity": "sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.26.2", - "@babel/types": "^7.26.0", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^3.0.2" @@ -19250,11 +21046,10 @@ } }, "node_modules/@babel/core/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19264,11 +21059,10 @@ } }, "node_modules/@babel/core/node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -19281,7 +21075,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -19291,7 +21084,6 @@ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.4.tgz", "integrity": "sha512-aLpZzf79oGT1bxnsadapfUWErDTcxVKrhvR5F8G27JFgH37+/ATrODMJ0/1D2CgQ/WStDX5B5znnWRv0NzW2JQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "7.0.0-beta.4", "jsesc": "^2.5.1", @@ -19305,7 +21097,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.25.9" }, @@ -19314,11 +21105,10 @@ } }, "node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19328,13 +21118,12 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", - "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz", + "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.25.9", + "@babel/compat-data": "^7.26.8", "@babel/helper-validator-option": "^7.25.9", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", @@ -19349,7 +21138,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^3.0.2" } @@ -19359,7 +21147,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -19368,22 +21155,20 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.9.tgz", - "integrity": "sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.27.0.tgz", + "integrity": "sha512-vSGCvMecvFCd/BdpGlhpXYNhhC4ccxyvQWpbGL4CWbvfEoLFWUZuSuf7s9Aw70flgQF+6vptvgK2IfOnKlRmBg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.25.9", "@babel/helper-member-expression-to-functions": "^7.25.9", "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9", + "@babel/helper-replace-supers": "^7.26.5", "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/traverse": "^7.25.9", + "@babel/traverse": "^7.27.0", "semver": "^6.3.1" }, "engines": { @@ -19398,7 +21183,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -19408,7 +21192,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/traverse": "^7.25.9", "@babel/types": "^7.25.9" @@ -19418,11 +21201,10 @@ } }, "node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19436,7 +21218,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/traverse": "^7.25.9", "@babel/types": "^7.25.9" @@ -19446,11 +21227,10 @@ } }, "node_modules/@babel/helper-module-imports/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19464,7 +21244,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9", @@ -19482,7 +21261,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.25.9" }, @@ -19491,11 +21269,10 @@ } }, "node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19505,25 +21282,23 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", - "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", + "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.25.9.tgz", - "integrity": "sha512-IiDqTOTBQy0sWyeXyGSC5TBJpGFXBkRynjBeXsvbhQFKj2viwJC76Epz35YLU1fpe/Am6Vppb7W7zM4fPQzLsQ==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz", + "integrity": "sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-member-expression-to-functions": "^7.25.9", "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/traverse": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -19532,40 +21307,11 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.25.9.tgz", - "integrity": "sha512-c6WHXuiaRsJTyHYLJV75t9IqsmTbItYfdj99PnzYGQZkYKvan5/2jKJ7gu31J3/BJ/A18grImSPModuyG/Eo0Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { "version": "7.25.9", "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/traverse": "^7.25.9", "@babel/types": "^7.25.9" @@ -19575,11 +21321,10 @@ } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19593,7 +21338,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -19603,7 +21347,6 @@ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -19613,31 +21356,28 @@ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.0.tgz", - "integrity": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.0.tgz", + "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/template": "^7.25.9", - "@babel/types": "^7.26.0" + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19647,13 +21387,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.2.tgz", - "integrity": "sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", + "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.26.0" + "@babel/types": "^7.27.0" }, "bin": { "parser": "bin/babel-parser.js" @@ -19663,11 +21402,10 @@ } }, "node_modules/@babel/parser/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -19682,7 +21420,6 @@ "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" @@ -19700,7 +21437,6 @@ "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", "dev": true, - "license": "MIT", "dependencies": { "@babel/compat-data": "^7.20.5", "@babel/helper-compilation-targets": "^7.20.7", @@ -19720,7 +21456,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -19733,7 +21468,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.26.0.tgz", "integrity": "sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -19749,7 +21483,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -19765,7 +21498,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -19778,7 +21510,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -19790,13 +21521,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.25.9.tgz", - "integrity": "sha512-toHc9fzab0ZfenFpsyYinOX0J/5dgJVA2fm64xPewu7CoYHWEivIWKxkK2rMi4r3yQqLnVmheMXRdG+k239CgA==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.26.5.tgz", + "integrity": "sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -19806,13 +21536,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz", - "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.27.0.tgz", + "integrity": "sha512-u1jGphZ8uDI2Pj/HJj6YQ6XQLZCNjOlprjxB5SVz6rq2T6SwAR+CdrWK0CP7F+9rDVMXdB0+r6Am5G5aobOjAQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -19826,7 +21555,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.25.9", "@babel/helper-compilation-targets": "^7.25.9", @@ -19847,7 +21575,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9", "@babel/template": "^7.25.9" @@ -19864,7 +21591,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -19876,14 +21602,13 @@ } }, "node_modules/@babel/plugin-transform-flow-strip-types": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.25.9.tgz", - "integrity": "sha512-/VVukELzPDdci7UUsWQaSkhgnjIWXnIyRpM02ldxaVoFK96c41So8JcKT3m0gYjyv7j5FNPGS5vfELrWalkbDA==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.26.5.tgz", + "integrity": "sha512-eGK26RsbIkYUns3Y8qKl362juDDYK+wEdPGHGrhzUl6CewZFo55VZ7hg+CyMFU4dd5QQakBN86nBMpRsFpRvbQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-syntax-flow": "^7.25.9" + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/plugin-syntax-flow": "^7.26.0" }, "engines": { "node": ">=6.9.0" @@ -19893,13 +21618,12 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz", - "integrity": "sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A==", + "version": "7.26.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz", + "integrity": "sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-plugin-utils": "^7.26.5", "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" }, "engines": { @@ -19914,7 +21638,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-compilation-targets": "^7.25.9", "@babel/helper-plugin-utils": "^7.25.9", @@ -19932,7 +21655,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -19948,7 +21670,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -19960,15 +21681,13 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.25.9.tgz", - "integrity": "sha512-dwh2Ol1jWwL2MgkCzUSOvfmKElqQcuswAZypBSUsScMXvgdT8Ekq5YA6TtqpTVWH+4903NmboMuH1o9i8Rxlyg==", + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz", + "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-simple-access": "^7.25.9" + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -19982,7 +21701,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9", "@babel/helper-replace-supers": "^7.25.9" @@ -19999,7 +21717,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -20015,7 +21732,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -20031,7 +21747,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.25.9.tgz", "integrity": "sha512-KJfMlYIUxQB1CJfO3e0+h0ZHWOTLCPP115Awhaz8U0Zpq36Gl/cXlpoyMRnUWlhNUBAzldnCiAZNvCDj7CrKxQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -20047,7 +21762,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.9.tgz", "integrity": "sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.25.9", "@babel/helper-module-imports": "^7.25.9", @@ -20063,11 +21777,10 @@ } }, "node_modules/@babel/plugin-transform-react-jsx/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -20081,7 +21794,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9" }, @@ -20097,7 +21809,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.25.9", "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" @@ -20110,13 +21821,12 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz", - "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==", + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.26.8.tgz", + "integrity": "sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -20126,11 +21836,10 @@ } }, "node_modules/@babel/runtime": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz", - "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz", + "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==", "dev": true, - "license": "MIT", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -20139,26 +21848,24 @@ } }, "node_modules/@babel/template": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", - "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz", + "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.25.9", - "@babel/parser": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/code-frame": "^7.26.2", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/template/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -20168,17 +21875,16 @@ } }, "node_modules/@babel/traverse": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.9.tgz", - "integrity": "sha512-ZCuvfwOwlz/bawvAuvcj8rrithP2/N55Tzz342AkTvq4qaWbGfmCk/tKhNaV2cthijKrPAA8SRJV5WWe7IBMJw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz", + "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.25.9", - "@babel/generator": "^7.25.9", - "@babel/parser": "^7.25.9", - "@babel/template": "^7.25.9", - "@babel/types": "^7.25.9", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.27.0", + "@babel/parser": "^7.27.0", + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -20187,14 +21893,13 @@ } }, "node_modules/@babel/traverse/node_modules/@babel/generator": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.2.tgz", - "integrity": "sha512-zevQbhbau95nkoxSq3f/DC/SC+EEOUZd3DYqfSkMhY2/wfSeaHV1Ew4vk8e+x8lja31IbyuUa2uQ3JONqKbysw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/parser": "^7.26.2", - "@babel/types": "^7.26.0", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^3.0.2" @@ -20204,11 +21909,10 @@ } }, "node_modules/@babel/traverse/node_modules/@babel/types": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", - "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -20218,11 +21922,10 @@ } }, "node_modules/@babel/traverse/node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -20235,17 +21938,22 @@ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.4.tgz", "integrity": "sha512-yLvBW5TTAgJwURAUAdZa1vrFTkwXXvk0Kw48LYvgxpyT/IaV8W4OIhxdVztAt5ruDQ/OFUwHpzWqk6TN3EfmWA==", "dev": true, - "license": "MIT", "dependencies": { "esutils": "^2.0.2", "lodash": "^4.2.0", "to-fast-properties": "^2.0.0" } }, + "node_modules/@cdklabs/tskb": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@cdklabs/tskb/-/tskb-0.0.3.tgz", + "integrity": "sha512-JR+MuD4awAXvutu7HArephXfZm09GPTaSAQUqNcJB5+ZENRm4kV+L6vJL6Tn1xHjCcHksO+HAqj3gYtm5K94vA==", + "dev": true + }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.0.tgz", - "integrity": "sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz", + "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==", "cpu": [ "ppc64" ], @@ -20259,9 +21967,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.0.tgz", - "integrity": "sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz", + "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==", "cpu": [ "arm" ], @@ -20275,9 +21983,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.0.tgz", - "integrity": "sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz", + "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==", "cpu": [ "arm64" ], @@ -20291,9 +21999,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.0.tgz", - "integrity": "sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz", + "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==", "cpu": [ "x64" ], @@ -20307,9 +22015,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.0.tgz", - "integrity": "sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz", + "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==", "cpu": [ "arm64" ], @@ -20323,9 +22031,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.0.tgz", - "integrity": "sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz", + "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==", "cpu": [ "x64" ], @@ -20339,9 +22047,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.0.tgz", - "integrity": "sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz", + "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==", "cpu": [ "arm64" ], @@ -20355,9 +22063,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.0.tgz", - "integrity": "sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz", + "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==", "cpu": [ "x64" ], @@ -20371,9 +22079,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.0.tgz", - "integrity": "sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz", + "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==", "cpu": [ "arm" ], @@ -20387,9 +22095,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.0.tgz", - "integrity": "sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz", + "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==", "cpu": [ "arm64" ], @@ -20403,9 +22111,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.0.tgz", - "integrity": "sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz", + "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==", "cpu": [ "ia32" ], @@ -20419,9 +22127,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.0.tgz", - "integrity": "sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz", + "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==", "cpu": [ "loong64" ], @@ -20435,9 +22143,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.0.tgz", - "integrity": "sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz", + "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==", "cpu": [ "mips64el" ], @@ -20451,9 +22159,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.0.tgz", - "integrity": "sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz", + "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==", "cpu": [ "ppc64" ], @@ -20467,9 +22175,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.0.tgz", - "integrity": "sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz", + "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==", "cpu": [ "riscv64" ], @@ -20483,9 +22191,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.0.tgz", - "integrity": "sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz", + "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==", "cpu": [ "s390x" ], @@ -20499,9 +22207,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.0.tgz", - "integrity": "sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz", + "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==", "cpu": [ "x64" ], @@ -20515,9 +22223,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.0.tgz", - "integrity": "sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz", + "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==", "cpu": [ "arm64" ], @@ -20531,9 +22239,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.0.tgz", - "integrity": "sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz", + "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==", "cpu": [ "x64" ], @@ -20547,9 +22255,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.0.tgz", - "integrity": "sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz", + "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==", "cpu": [ "arm64" ], @@ -20563,9 +22271,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.0.tgz", - "integrity": "sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz", + "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==", "cpu": [ "x64" ], @@ -20579,9 +22287,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.0.tgz", - "integrity": "sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz", + "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==", "cpu": [ "x64" ], @@ -20595,9 +22303,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.0.tgz", - "integrity": "sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz", + "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==", "cpu": [ "arm64" ], @@ -20611,9 +22319,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.0.tgz", - "integrity": "sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz", + "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==", "cpu": [ "ia32" ], @@ -20627,9 +22335,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.0.tgz", - "integrity": "sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz", + "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==", "cpu": [ "x64" ], @@ -20642,12 +22350,20 @@ "node": ">=18" } }, + "node_modules/@ewoudenberg/difflib": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@ewoudenberg/difflib/-/difflib-0.1.0.tgz", + "integrity": "sha512-OU5P5mJyD3OoWYMWY+yIgwvgNS9cFAU10f+DDuvtogcWQOoJIsQ4Hy2McSfUfhKjq8L0FuWVb4Rt7kgA+XK86A==", + "dev": true, + "dependencies": { + "heap": ">= 0.2.0" + } + }, "node_modules/@graphql-codegen/core": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-4.0.2.tgz", "integrity": "sha512-IZbpkhwVqgizcjNiaVzNAzm/xbWT6YnGgeOLwVjm4KbJn3V2jchVtuzHH09G5/WkkLSk2wgbXNdwjM41JxO6Eg==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.3", "@graphql-tools/schema": "^10.0.0", @@ -20663,7 +22379,6 @@ "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-5.1.0.tgz", "integrity": "sha512-Y7cwEAkprbTKzVIe436TIw4w03jorsMruvCvu0HJkavaKMQbWY+lQ1RIuROgszDbxAyM35twB5/sUvYG5oW+yg==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-tools/utils": "^10.0.0", "change-case-all": "1.0.15", @@ -20679,16 +22394,49 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/merge": { + "version": "9.0.24", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-9.0.24.tgz", + "integrity": "sha512-NzWx/Afl/1qHT3Nm1bghGG2l4jub28AdvtG11PoUlmjcIjnFBJMv4vqL0qnxWe8A82peWo4/TkVdjJRLXwgGEw==", + "dev": true, + "dependencies": { + "@graphql-tools/utils": "^10.8.6", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema": { + "version": "10.0.23", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-10.0.23.tgz", + "integrity": "sha512-aEGVpd1PCuGEwqTXCStpEkmheTHNdMayiIKH1xDWqYp9i8yKv9FRDgkGrY4RD8TNxnf7iII+6KOBGaJ3ygH95A==", + "dev": true, + "dependencies": { + "@graphql-tools/merge": "^9.0.24", + "@graphql-tools/utils": "^10.8.6", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils": { - "version": "10.5.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.5.tgz", - "integrity": "sha512-LF/UDWmMT0mnobL2UZETwYghV7HYBzNaGj0SAkCYOMy/C3+6sQdbcTksnoFaKR9XIVD78jNXEGfivbB8Zd+cwA==", + "version": "10.8.6", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.8.6.tgz", + "integrity": "sha512-Alc9Vyg0oOsGhRapfL3xvqh1zV8nKoFUdtLhXX7Ki4nClaIJXckrA86j+uxEuG3ic6j4jlM1nvcWXRn/71AVLQ==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", "cross-inspect": "1.0.1", - "dset": "^3.1.2", + "dset": "^3.1.4", "tslib": "^2.4.0" }, "engines": { @@ -20702,15 +22450,13 @@ "version": "2.6.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-codegen/plugin-helpers": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-tools/utils": "^9.0.0", "change-case-all": "1.0.15", @@ -20728,7 +22474,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -20741,15 +22486,13 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-codegen/schema-ast": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/@graphql-codegen/schema-ast/-/schema-ast-2.6.1.tgz", "integrity": "sha512-5TNW3b1IHJjCh07D2yQNGDQzUpUl2AD+GVe1Dzjqyx/d2Fn0TPMxLsHsKPS4Plg4saO8FK/QO70wLsP7fdbQ1w==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.2", "@graphql-tools/utils": "^9.0.0", @@ -20764,7 +22507,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -20777,15 +22519,13 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-codegen/typescript": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-2.8.8.tgz", "integrity": "sha512-A0oUi3Oy6+DormOlrTC4orxT9OBZkIglhbJBcDmk34jAKKUgesukXRd4yOhmTrnbchpXz2T8IAOFB3FWIaK4Rw==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.2", "@graphql-codegen/schema-ast": "^2.6.1", @@ -20802,7 +22542,6 @@ "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.8.tgz", "integrity": "sha512-IQWu99YV4wt8hGxIbBQPtqRuaWZhkQRG2IZKbMoSvh0vGeWb3dB0n0hSgKaOOxDY+tljtOf9MTcUYvJslQucMQ==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.2", "@graphql-tools/optimize": "^1.3.0", @@ -20824,7 +22563,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -20837,15 +22575,13 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-codegen/visitor-plugin-common": { "version": "1.22.0", "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.22.0.tgz", "integrity": "sha512-2afJGb6d8iuZl9KizYsexPwraEKO1lAvt5eVHNM5Xew4vwz/AUHeqDR2uOeQgVV+27EzjjzSDd47IEdH0dLC2w==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^1.18.8", "@graphql-tools/optimize": "^1.0.1", @@ -20867,7 +22603,6 @@ "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.18.8.tgz", "integrity": "sha512-mb4I9j9lMGqvGggYuZ0CV+Hme08nar68xkpPbAVotg/ZBmlhZIok/HqW2BcMQi7Rj+Il5HQMeQ1wQ1M7sv/TlQ==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-tools/utils": "^7.9.1", "common-tags": "1.8.0", @@ -20884,7 +22619,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.10.0.tgz", "integrity": "sha512-d334r6bo9mxdSqZW6zWboEnnOOFRrAPVQJ7LkU8/6grglrbcu6WhwCLzHb90E94JI3TD3ricC3YGbUqIi9Xg0w==", "dev": true, - "license": "MIT", "dependencies": { "@ardatan/aggregate-error": "0.0.6", "camel-case": "4.1.2", @@ -20898,15 +22632,13 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/camel-case": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", "dev": true, - "license": "MIT", "dependencies": { "pascal-case": "^3.1.2", "tslib": "^2.0.3" @@ -20917,7 +22649,6 @@ "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.14.tgz", "integrity": "sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==", "dev": true, - "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -20936,7 +22667,6 @@ "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", "dev": true, - "license": "MIT", "engines": { "node": ">=4.0.0" } @@ -20945,19 +22675,17 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-tools/apollo-engine-loader": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.2.tgz", - "integrity": "sha512-HTFoCILMU7u/Y97G5iu2EPSMTW/b/Lx6Ww2emX/WDtubU2A/7RqzBUjrDj/JMPTEblOAPUwJ1XcxtvXgQVaSyQ==", + "version": "8.0.20", + "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.20.tgz", + "integrity": "sha512-m5k9nXSyjq31yNsEqDXLyykEjjn3K3Mo73oOKI+Xjy8cpnsgbT4myeUJIYYQdLrp7fr9Y9p7ZgwT5YcnwmnAbA==", "dev": true, - "license": "MIT", "dependencies": { - "@ardatan/sync-fetch": "^0.0.1", - "@graphql-tools/utils": "^10.5.5", - "@whatwg-node/fetch": "^0.9.0", + "@graphql-tools/utils": "^10.8.6", + "@whatwg-node/fetch": "^0.10.0", + "sync-fetch": "0.6.0-2", "tslib": "^2.4.0" }, "engines": { @@ -20968,15 +22696,15 @@ } }, "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@graphql-tools/utils": { - "version": "10.5.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.5.tgz", - "integrity": "sha512-LF/UDWmMT0mnobL2UZETwYghV7HYBzNaGj0SAkCYOMy/C3+6sQdbcTksnoFaKR9XIVD78jNXEGfivbB8Zd+cwA==", + "version": "10.8.6", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.8.6.tgz", + "integrity": "sha512-Alc9Vyg0oOsGhRapfL3xvqh1zV8nKoFUdtLhXX7Ki4nClaIJXckrA86j+uxEuG3ic6j4jlM1nvcWXRn/71AVLQ==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", "cross-inspect": "1.0.1", - "dset": "^3.1.2", + "dset": "^3.1.4", "tslib": "^2.4.0" }, "engines": { @@ -20987,37 +22715,27 @@ } }, "node_modules/@graphql-tools/merge": { - "version": "9.0.8", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-9.0.8.tgz", - "integrity": "sha512-RG9NEp4fi0MoFi0te4ahqTMYuavQnXlpEZxxMomdCa6CI5tfekcVm/rsLF5Zt8O4HY+esDt9+4dCL+aOKvG79w==", + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.4.2.tgz", + "integrity": "sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/utils": "^10.5.5", + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils": { - "version": "10.5.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.5.tgz", - "integrity": "sha512-LF/UDWmMT0mnobL2UZETwYghV7HYBzNaGj0SAkCYOMy/C3+6sQdbcTksnoFaKR9XIVD78jNXEGfivbB8Zd+cwA==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", - "cross-inspect": "1.0.1", - "dset": "^3.1.2", "tslib": "^2.4.0" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } @@ -21027,7 +22745,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-1.4.0.tgz", "integrity": "sha512-dJs/2XvZp+wgHH8T5J2TqptT9/6uVzIYvA6uFACha+ufvdMBedkfR4b4GbT8jAKLRARiqRTxy3dctnwkTM2tdw==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.4.0" }, @@ -21040,7 +22757,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.18.tgz", "integrity": "sha512-mc5VPyTeV+LwiM+DNvoDQfPqwQYhPV/cl5jOBjTgSniyaq8/86aODfMkrE2OduhQ5E00hqrkuL2Fdrgk0w1QJg==", "dev": true, - "license": "MIT", "dependencies": { "@ardatan/relay-compiler": "12.0.0", "@graphql-tools/utils": "^9.2.1", @@ -21055,7 +22771,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -21065,39 +22780,29 @@ } }, "node_modules/@graphql-tools/schema": { - "version": "10.0.7", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-10.0.7.tgz", - "integrity": "sha512-Cz1o+rf9cd3uMgG+zI9HlM5mPlnHQUlk/UQRZyUlPDfT+944taLaokjvj7AI6GcOFVf4f2D11XthQp+0GY31jQ==", + "version": "9.0.19", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.19.tgz", + "integrity": "sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/merge": "^9.0.8", - "@graphql-tools/utils": "^10.5.5", + "@graphql-tools/merge": "^8.4.1", + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0", "value-or-promise": "^1.0.12" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils": { - "version": "10.5.5", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.5.tgz", - "integrity": "sha512-LF/UDWmMT0mnobL2UZETwYghV7HYBzNaGj0SAkCYOMy/C3+6sQdbcTksnoFaKR9XIVD78jNXEGfivbB8Zd+cwA==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", - "cross-inspect": "1.0.1", - "dset": "^3.1.2", "tslib": "^2.4.0" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } @@ -21107,7 +22812,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-6.2.4.tgz", "integrity": "sha512-ybgZ9EIJE3JMOtTrTd2VcIpTXtDrn2q6eiYkeYMKRVh3K41+LZa6YnR2zKERTXqTWqhobROwLt4BZbw2O3Aeeg==", "dev": true, - "license": "MIT", "dependencies": { "@ardatan/aggregate-error": "0.0.6", "camel-case": "4.1.1", @@ -21121,357 +22825,333 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-typed-document-node/core": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==", "dev": true, - "license": "MIT", "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@inquirer/checkbox": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-1.5.2.tgz", - "integrity": "sha512-CifrkgQjDkUkWexmgYYNyB5603HhTHI91vLFeQXh6qrTKiCMVASol01Rs1cv6LP/A2WccZSRlJKZhbaBIs/9ZA==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.4.tgz", + "integrity": "sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", + "@inquirer/core": "^10.1.9", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "figures": "^3.2.0" + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/checkbox/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/confirm": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-2.0.17.tgz", - "integrity": "sha512-EqzhGryzmGpy2aJf6LxJVhndxYmFs+m8cxXzf8nejb1DE3sabf6mUgBcp4J0jAUEiAcYzqmkqRr7LPFh/WdnXA==", + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.8.tgz", + "integrity": "sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/confirm/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", + "version": "10.1.9", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.9.tgz", + "integrity": "sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", + "mute-stream": "^2.0.0", "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/core/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=8" } }, "node_modules/@inquirer/editor": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-1.2.15.tgz", - "integrity": "sha512-gQ77Ls09x5vKLVNMH9q/7xvYPT6sIs5f7URksw+a2iJZ0j48tVS6crLqm2ugG33tgXHIwiEqkytY60Zyh5GkJQ==", + "version": "4.2.9", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.9.tgz", + "integrity": "sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2", + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", "external-editor": "^3.1.0" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/editor/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/expand": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-1.1.16.tgz", - "integrity": "sha512-TGLU9egcuo+s7PxphKUCnJnpCIVY32/EwPCLLuu+gTvYiD8hZgx8Z2niNQD36sa6xcfpdLY6xXDBiL/+g1r2XQ==", + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.11.tgz", + "integrity": "sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2", - "figures": "^3.2.0" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/expand/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/figures": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz", + "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==", "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=18" } }, "node_modules/@inquirer/input": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-1.2.16.tgz", - "integrity": "sha512-Ou0LaSWvj1ni+egnyQ+NBtfM1885UwhRCMtsRt2bBO47DoC1dwtCa+ZUNgrxlnCHHF0IXsbQHYtIIjFGAavI4g==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.8.tgz", + "integrity": "sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/input/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/number": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.11.tgz", + "integrity": "sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5" }, "engines": { - "node": ">=10" + "node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/password": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-1.1.16.tgz", - "integrity": "sha512-aZYZVHLUXZ2gbBot+i+zOJrks1WaiI95lvZCn1sKfcw6MtSSlYC8uDX8sTzQvAsQ8epHoP84UNvAIT0KVGOGqw==", + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.11.tgz", + "integrity": "sha512-dH6zLdv+HEv1nBs96Case6eppkRggMe8LoOTl30+Gq5Wf27AO/vHFgStTVz4aoevLdNXqwE23++IXGw4eiOXTg==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/password/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/prompts": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-3.3.2.tgz", - "integrity": "sha512-k52mOMRvTUejrqyF1h8Z07chC+sbaoaUYzzr1KrJXyj7yaX7Nrh0a9vktv8TuocRwIJOQMaj5oZEmkspEcJFYQ==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.4.0.tgz", + "integrity": "sha512-EZiJidQOT4O5PYtqnu1JbF0clv36oW2CviR66c7ma4LsupmmQlUwmdReGKRp456OWPWMz3PdrPiYg3aCk3op2w==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/checkbox": "^1.5.2", - "@inquirer/confirm": "^2.0.17", - "@inquirer/core": "^6.0.0", - "@inquirer/editor": "^1.2.15", - "@inquirer/expand": "^1.1.16", - "@inquirer/input": "^1.2.16", - "@inquirer/password": "^1.1.16", - "@inquirer/rawlist": "^1.2.16", - "@inquirer/select": "^1.3.3" + "@inquirer/checkbox": "^4.1.4", + "@inquirer/confirm": "^5.1.8", + "@inquirer/editor": "^4.2.9", + "@inquirer/expand": "^4.0.11", + "@inquirer/input": "^4.1.8", + "@inquirer/number": "^3.0.11", + "@inquirer/password": "^4.0.11", + "@inquirer/rawlist": "^4.0.11", + "@inquirer/search": "^3.0.11", + "@inquirer/select": "^4.1.0" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/rawlist": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-1.2.16.tgz", - "integrity": "sha512-pZ6TRg2qMwZAOZAV6TvghCtkr53dGnK29GMNQ3vMZXSNguvGqtOVc4j/h1T8kqGJFagjyfBZhUPGwNS55O5qPQ==", + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.11.tgz", + "integrity": "sha512-uAYtTx0IF/PqUAvsRrF3xvnxJV516wmR6YVONOmCWJbbt87HcDHLfL9wmBQFbNJRv5kCjdYKrZcavDkH3sVJPg==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/rawlist/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/search": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.11.tgz", + "integrity": "sha512-9CWQT0ikYcg6Ls3TOa7jljsD7PgjcsYEM0bYE+Gkz+uoW9u8eaJCRHJKkucpRE5+xKtaaDbrND+nPDoxzjYyew==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@inquirer/core": "^10.1.9", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=10" + "node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/select": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-1.3.3.tgz", - "integrity": "sha512-RzlRISXWqIKEf83FDC9ZtJ3JvuK1l7aGpretf41BCWYrvla2wU8W8MTRNMiPrPJ+1SIqrRC1nZdZ60hD9hRXLg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.1.0.tgz", + "integrity": "sha512-z0a2fmgTSRN+YBuiK1ROfJ2Nvrpij5lVN3gPDkQGhavdvIVGHGW29LwYZfM/j42Ai2hUghTI/uoBuTbrJk42bA==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", + "@inquirer/core": "^10.1.9", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "figures": "^3.2.0" + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/select/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/type": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-1.5.5.tgz", - "integrity": "sha512-MzICLu4yS7V8AA61sANROZ9vT1H3ooca5dSmI1FjZkzq7o/koMsRfQSzRtFo+F3Ao4Sf1C0bpLKejpKB/+j6MA==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.5.tgz", + "integrity": "sha512-ZJpeIYYueOz/i/ONzrfof8g89kNdO2hjGuvULROo3O8rlB2CRtSseE5KeirnyE4t/thAn/EwvS/vuQeJCn+NZg==", "dev": true, - "license": "MIT", - "dependencies": { - "mute-stream": "^1.0.0" - }, "engines": { "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@isaacs/cliui": { @@ -21479,7 +23159,6 @@ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -21497,7 +23176,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -21510,7 +23188,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -21518,12 +23195,34 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@isaacs/cliui/node_modules/strip-ansi": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" }, @@ -21539,7 +23238,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -21553,11 +23251,10 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -21572,7 +23269,6 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -21582,7 +23278,6 @@ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -21591,33 +23286,23 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.25", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@kamilkisiela/fast-url-parser": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@kamilkisiela/fast-url-parser/-/fast-url-parser-1.1.4.tgz", - "integrity": "sha512-gbkePEBupNydxCelHCESvFSFM8XPh1Zs/OAVRW/rKpEqPAl5PbOM90Si8mv9bvnR53uPD2s/FiRxdvSejpRJew==", - "dev": true, - "license": "MIT" - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -21631,7 +23316,6 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -21641,7 +23325,6 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -21651,12 +23334,11 @@ } }, "node_modules/@parcel/watcher": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.0.tgz", - "integrity": "sha512-i0GV1yJnm2n3Yq1qw6QrUrd/LI9bE8WEBOTtOkpCXHHdyN3TAGgqAK/DAT05z4fq2x04cARXt2pDmjWjL92iTQ==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", + "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", "dev": true, "hasInstallScript": true, - "license": "MIT", "dependencies": { "detect-libc": "^1.0.3", "is-glob": "^4.0.3", @@ -21671,30 +23353,29 @@ "url": "https://opencollective.com/parcel" }, "optionalDependencies": { - "@parcel/watcher-android-arm64": "2.5.0", - "@parcel/watcher-darwin-arm64": "2.5.0", - "@parcel/watcher-darwin-x64": "2.5.0", - "@parcel/watcher-freebsd-x64": "2.5.0", - "@parcel/watcher-linux-arm-glibc": "2.5.0", - "@parcel/watcher-linux-arm-musl": "2.5.0", - "@parcel/watcher-linux-arm64-glibc": "2.5.0", - "@parcel/watcher-linux-arm64-musl": "2.5.0", - "@parcel/watcher-linux-x64-glibc": "2.5.0", - "@parcel/watcher-linux-x64-musl": "2.5.0", - "@parcel/watcher-win32-arm64": "2.5.0", - "@parcel/watcher-win32-ia32": "2.5.0", - "@parcel/watcher-win32-x64": "2.5.0" + "@parcel/watcher-android-arm64": "2.5.1", + "@parcel/watcher-darwin-arm64": "2.5.1", + "@parcel/watcher-darwin-x64": "2.5.1", + "@parcel/watcher-freebsd-x64": "2.5.1", + "@parcel/watcher-linux-arm-glibc": "2.5.1", + "@parcel/watcher-linux-arm-musl": "2.5.1", + "@parcel/watcher-linux-arm64-glibc": "2.5.1", + "@parcel/watcher-linux-arm64-musl": "2.5.1", + "@parcel/watcher-linux-x64-glibc": "2.5.1", + "@parcel/watcher-linux-x64-musl": "2.5.1", + "@parcel/watcher-win32-arm64": "2.5.1", + "@parcel/watcher-win32-ia32": "2.5.1", + "@parcel/watcher-win32-x64": "2.5.1" } }, "node_modules/@parcel/watcher-android-arm64": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.0.tgz", - "integrity": "sha512-qlX4eS28bUcQCdribHkg/herLe+0A9RyYC+mm2PXpncit8z5b3nSqGVzMNR3CmtAOgRutiZ02eIJJgP/b1iEFQ==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", + "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "android" @@ -21708,14 +23389,13 @@ } }, "node_modules/@parcel/watcher-darwin-arm64": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.0.tgz", - "integrity": "sha512-hyZ3TANnzGfLpRA2s/4U1kbw2ZI4qGxaRJbBH2DCSREFfubMswheh8TeiC1sGZ3z2jUf3s37P0BBlrD3sjVTUw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", + "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -21729,14 +23409,13 @@ } }, "node_modules/@parcel/watcher-darwin-x64": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.0.tgz", - "integrity": "sha512-9rhlwd78saKf18fT869/poydQK8YqlU26TMiNg7AIu7eBp9adqbJZqmdFOsbZ5cnLp5XvRo9wcFmNHgHdWaGYA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", + "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -21750,14 +23429,13 @@ } }, "node_modules/@parcel/watcher-freebsd-x64": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.0.tgz", - "integrity": "sha512-syvfhZzyM8kErg3VF0xpV8dixJ+RzbUaaGaeb7uDuz0D3FK97/mZ5AJQ3XNnDsXX7KkFNtyQyFrXZzQIcN49Tw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", + "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "freebsd" @@ -21771,14 +23449,13 @@ } }, "node_modules/@parcel/watcher-linux-arm-glibc": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.0.tgz", - "integrity": "sha512-0VQY1K35DQET3dVYWpOaPFecqOT9dbuCfzjxoQyif1Wc574t3kOSkKevULddcR9znz1TcklCE7Ht6NIxjvTqLA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", + "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", "cpu": [ "arm" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -21792,14 +23469,13 @@ } }, "node_modules/@parcel/watcher-linux-arm-musl": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.0.tgz", - "integrity": "sha512-6uHywSIzz8+vi2lAzFeltnYbdHsDm3iIB57d4g5oaB9vKwjb6N6dRIgZMujw4nm5r6v9/BQH0noq6DzHrqr2pA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", + "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", "cpu": [ "arm" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -21813,14 +23489,13 @@ } }, "node_modules/@parcel/watcher-linux-arm64-glibc": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.0.tgz", - "integrity": "sha512-BfNjXwZKxBy4WibDb/LDCriWSKLz+jJRL3cM/DllnHH5QUyoiUNEp3GmL80ZqxeumoADfCCP19+qiYiC8gUBjA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", + "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -21834,14 +23509,13 @@ } }, "node_modules/@parcel/watcher-linux-arm64-musl": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.0.tgz", - "integrity": "sha512-S1qARKOphxfiBEkwLUbHjCY9BWPdWnW9j7f7Hb2jPplu8UZ3nes7zpPOW9bkLbHRvWM0WDTsjdOTUgW0xLBN1Q==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", + "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -21855,14 +23529,13 @@ } }, "node_modules/@parcel/watcher-linux-x64-glibc": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.0.tgz", - "integrity": "sha512-d9AOkusyXARkFD66S6zlGXyzx5RvY+chTP9Jp0ypSTC9d4lzyRs9ovGf/80VCxjKddcUvnsGwCHWuF2EoPgWjw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", + "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -21876,14 +23549,13 @@ } }, "node_modules/@parcel/watcher-linux-x64-musl": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.0.tgz", - "integrity": "sha512-iqOC+GoTDoFyk/VYSFHwjHhYrk8bljW6zOhPuhi5t9ulqiYq1togGJB5e3PwYVFFfeVgc6pbz3JdQyDoBszVaA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", + "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -21897,14 +23569,13 @@ } }, "node_modules/@parcel/watcher-win32-arm64": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.0.tgz", - "integrity": "sha512-twtft1d+JRNkM5YbmexfcH/N4znDtjgysFaV9zvZmmJezQsKpkfLYJ+JFV3uygugK6AtIM2oADPkB2AdhBrNig==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", + "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -21918,14 +23589,13 @@ } }, "node_modules/@parcel/watcher-win32-ia32": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.0.tgz", - "integrity": "sha512-+rgpsNRKwo8A53elqbbHXdOMtY/tAtTzManTWShB5Kk54N8Q9mzNWV7tV+IbGueCbcj826MfWGU3mprWtuf1TA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", + "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", "cpu": [ "ia32" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -21939,14 +23609,13 @@ } }, "node_modules/@parcel/watcher-win32-x64": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.0.tgz", - "integrity": "sha512-lPrxve92zEHdgeff3aiu4gDOIt4u7sJYha6wbdEZDCDUhtjTsOMiaJzG5lMY4GkWH8p0fMmO2Ppq5G5XXG+DQw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", + "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -21964,443 +23633,530 @@ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "dev": true, - "license": "MIT", "optional": true, "engines": { "node": ">=14" } }, + "node_modules/@sec-ant/readable-stream": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz", + "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==", + "dev": true + }, + "node_modules/@sindresorhus/merge-streams": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", + "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@smithy/abort-controller": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.6.tgz", - "integrity": "sha512-0XuhuHQlEqbNQZp7QxxrFTdVWdwxch4vjxYgfInF91hZFkPxf9QDrdQka0KfxFMPqLNzSw0b95uGTrLliQUavQ==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.2.tgz", + "integrity": "sha512-Sl/78VDtgqKxN2+1qduaVE140XF+Xg+TafkncspwM4jFP/LHr76ZHmIY/y3V1M0mMLNk+Je6IGbzxy23RSToMw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/chunked-blob-reader": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-4.0.0.tgz", - "integrity": "sha512-jSqRnZvkT4egkq/7b6/QRCNXmmYVcHwnJldqJ3IhVpQE2atObVJ137xmGeuGFhjFUr8gCEVAOKwSY79OvpbDaQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-5.0.0.tgz", + "integrity": "sha512-+sKqDBQqb036hh4NPaUiEkYFkTUGYzRsn3EuFhyfQfMy6oGHEUJDurLP9Ufb5dasr/XiAmPNMr6wa9afjQB+Gw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/chunked-blob-reader-native": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-3.0.1.tgz", - "integrity": "sha512-VEYtPvh5rs/xlyqpm5NRnfYLZn+q0SRPELbvBV+C/G7IQ+ouTuo+NKKa3ShG5OaFR8NYVMXls9hPYLTvIKKDrQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-4.0.0.tgz", + "integrity": "sha512-R9wM2yPmfEMsUmlMlIgSzOyICs0x9uu7UTHoccMyt7BWw8shcGM8HqB355+BZCPBcySvbTYMs62EgEQkNxz2ig==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-base64": "^3.0.0", + "@smithy/util-base64": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/chunked-blob-reader-native/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/config-resolver": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.10.tgz", - "integrity": "sha512-Uh0Sz9gdUuz538nvkPiyv1DZRX9+D15EKDtnQP5rYVAzM/dnYk3P8cg73jcxyOitPgT3mE3OVj7ky7sibzHWkw==", - "license": "Apache-2.0", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.0.tgz", + "integrity": "sha512-8smPlwhga22pwl23fM5ew4T9vfLUCeFXlcqNOCD5M5h8VmNPNUE9j6bQSuRXpDSV11L/E/SwEBQuW8hr6+nS1A==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/config-resolver/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/config-resolver/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/core": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.1.tgz", - "integrity": "sha512-DujtuDA7BGEKExJ05W5OdxCoyekcKT3Rhg1ZGeiUWaz2BJIWXjZmsG/DIP4W48GHno7AQwRsaCb8NcBgH3QZpg==", - "license": "Apache-2.0", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.2.0.tgz", + "integrity": "sha512-k17bgQhVZ7YmUvA8at4af1TDpl0NDMBuBKJl8Yg0nrefwmValU+CnA5l/AriVdQNthU/33H3nK71HrLgqOPr1Q==", + "dev": true, "dependencies": { - "@smithy/middleware-serde": "^3.0.8", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-stream": "^3.2.1", - "@smithy/util-utf8": "^3.0.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/credential-provider-imds": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.5.tgz", - "integrity": "sha512-4FTQGAsuwqTzVMmiRVTn0RR9GrbRfkP0wfu/tXWVHd2LgNpTY0uglQpIScXK4NaEyXbB3JmZt8gfVqO50lP8wg==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.2.tgz", + "integrity": "sha512-32lVig6jCaWBHnY+OEQ6e6Vnt5vDHaLiydGrwYMW9tPqO688hPGTYRamYJ1EptxEC2rAwJrHWmPoKRBl4iTa8w==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.8", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/credential-provider-imds/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/credential-provider-imds/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/eventstream-codec": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-3.1.7.tgz", - "integrity": "sha512-kVSXScIiRN7q+s1x7BrQtZ1Aa9hvvP9FeCqCdBxv37GimIHgBCOnZ5Ip80HLt0DhnAKpiobFdGqTFgbaJNrazA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.2.tgz", + "integrity": "sha512-p+f2kLSK7ZrXVfskU/f5dzksKTewZk8pJLPvER3aFHPt76C2MxD9vNatSfLzzQSQB4FNO96RK4PSXfhD1TTeMQ==", + "dev": true, "dependencies": { "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^3.6.0", - "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/types": "^4.2.0", + "@smithy/util-hex-encoding": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.11.tgz", - "integrity": "sha512-Pd1Wnq3CQ/v2SxRifDUihvpXzirJYbbtXfEnnLV/z0OGCTx/btVX74P86IgrZkjOydOASBGXdPpupYQI+iO/6A==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.2.tgz", + "integrity": "sha512-CepZCDs2xgVUtH7ZZ7oDdZFH8e6Y2zOv8iiX6RhndH69nlojCALSKK+OXwZUgOtUZEUaZ5e1hULVCHYbCn7pug==", + "dev": true, "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.10", - "@smithy/types": "^3.6.0", + "@smithy/eventstream-serde-universal": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.8.tgz", - "integrity": "sha512-zkFIG2i1BLbfoGQnf1qEeMqX0h5qAznzaZmMVNnvPZz9J5AWBPkOMckZWPedGUPcVITacwIdQXoPcdIQq5FRcg==", - "license": "Apache-2.0", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.0.tgz", + "integrity": "sha512-1PI+WPZ5TWXrfj3CIoKyUycYynYJgZjuQo8U+sphneOtjsgrttYybdqESFReQrdWJ+LKt6NEdbYzmmfDBmjX2A==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/eventstream-serde-node": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.2.tgz", + "integrity": "sha512-C5bJ/C6x9ENPMx2cFOirspnF9ZsBVnBMtP6BdPl/qYSuUawdGQ34Lq0dMcf42QTjUZgWGbUIZnz6+zLxJlb9aw==", + "dev": true, + "dependencies": { + "@smithy/eventstream-serde-universal": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/eventstream-serde-universal": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.2.tgz", + "integrity": "sha512-St8h9JqzvnbB52FtckiHPN4U/cnXcarMniXRXTKn0r4b4XesZOGiAyUdj1aXbqqn1icSqBlzzUsCl6nPB018ng==", + "dev": true, + "dependencies": { + "@smithy/eventstream-codec": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/fetch-http-handler": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.2.tgz", + "integrity": "sha512-+9Dz8sakS9pe7f2cBocpJXdeVjMopUDLgZs1yWeu7h++WqSbjUYv/JAJwKwXw1HV6gq1jyWjxuyn24E2GhoEcQ==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/querystring-builder": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/util-base64": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.10.tgz", - "integrity": "sha512-hjpU1tIsJ9qpcoZq9zGHBJPBOeBGYt+n8vfhDwnITPhEre6APrvqq/y3XMDEGUT2cWQ4ramNqBPRbx3qn55rhw==", - "license": "Apache-2.0", + "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/querystring-builder": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.2.tgz", + "integrity": "sha512-NTOs0FwHw1vimmQM4ebh+wFQvOwkEf/kQL6bSM1Lock+Bv4I89B3hGYoUEPkmvYPkDKyp5UdXJYu+PoTQ3T31Q==", + "dev": true, "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.10", - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", + "@smithy/util-uri-escape": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.10.tgz", - "integrity": "sha512-ewG1GHbbqsFZ4asaq40KmxCmXO+AFSM1b+DcO2C03dyJj/ZH71CiTg853FSE/3SHK9q3jiYQIFjlGSwfxQ9kww==", - "license": "Apache-2.0", + "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, "dependencies": { - "@smithy/eventstream-codec": "^3.1.7", - "@smithy/types": "^3.6.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/fetch-http-handler": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.7.tgz", - "integrity": "sha512-Ra6IPI1spYLO+t62/3jQbodjOwAbto9wlpJdHZwkycm0Kit+GVpzHW/NMmSgY4rK1bjJ4qLAmCnaBzePO5Nkkg==", - "license": "Apache-2.0", + "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/util-uri-escape": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz", + "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==", + "dev": true, "dependencies": { - "@smithy/protocol-http": "^4.1.3", - "@smithy/querystring-builder": "^3.0.6", - "@smithy/types": "^3.4.2", - "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/hash-blob-browser": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-3.1.7.tgz", - "integrity": "sha512-4yNlxVNJifPM5ThaA5HKnHkn7JhctFUHvcaz6YXxHlYOSIrzI6VKQPTN8Gs1iN5nqq9iFcwIR9THqchUCouIfg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.0.2.tgz", + "integrity": "sha512-3g188Z3DyhtzfBRxpZjU8R9PpOQuYsbNnyStc/ZVS+9nVX1f6XeNOa9IrAh35HwwIZg+XWk8bFVtNINVscBP+g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/chunked-blob-reader": "^4.0.0", - "@smithy/chunked-blob-reader-native": "^3.0.1", - "@smithy/types": "^3.6.0", + "@smithy/chunked-blob-reader": "^5.0.0", + "@smithy/chunked-blob-reader-native": "^4.0.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/hash-node": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.8.tgz", - "integrity": "sha512-tlNQYbfpWXHimHqrvgo14DrMAgUBua/cNoz9fMYcDmYej7MAmUcjav/QKQbFc3NrcPxeJ7QClER4tWZmfwoPng==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.2.tgz", + "integrity": "sha512-VnTpYPnRUE7yVhWozFdlxcYknv9UN7CeOqSrMH+V877v4oqtVYuoqhIhtSjmGPvYrYnAkaM61sLMKHvxL138yg==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^4.2.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/hash-stream-node": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-3.1.7.tgz", - "integrity": "sha512-xMAsvJ3hLG63lsBVi1Hl6BBSfhd8/Qnp8fC06kjOpJvyyCEXdwHITa5Kvdsk6gaAXLhbZMhQMIGvgUbfnJDP6Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.0.2.tgz", + "integrity": "sha512-POWDuTznzbIwlEXEvvXoPMS10y0WKXK790soe57tFRfvf4zBHyzE529HpZMqmDdwG9MfFflnyzndUQ8j78ZdSg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/invalid-dependency": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.8.tgz", - "integrity": "sha512-7Qynk6NWtTQhnGTTZwks++nJhQ1O54Mzi7fz4PqZOiYXb4Z1Flpb2yRvdALoggTS8xjtohWUM+RygOtB30YL3Q==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.2.tgz", + "integrity": "sha512-GatB4+2DTpgWPday+mnUkoumP54u/MDM/5u44KF9hIu8jF0uafZtQLcdfIKkIcUNuF/fBojpLEHZS/56JqPeXQ==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/is-array-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", - "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", - "license": "Apache-2.0", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-4.0.0.tgz", + "integrity": "sha512-saYhF8ZZNoJDTvJBEWgeBccCg+yvp1CX+ed12yORU3NilJScfc6gfch2oVb4QgxZrGUx3/ZJlb+c/dJbyupxlw==", + "dev": true, "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/md5-js": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-3.0.8.tgz", - "integrity": "sha512-LwApfTK0OJ/tCyNUXqnWCKoE2b4rDSr4BJlDAVCkiWYeHESr+y+d5zlAanuLW6fnitVJRD/7d9/kN/ZM9Su4mA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.0.2.tgz", + "integrity": "sha512-Hc0R8EiuVunUewCse2syVgA2AfSRco3LyAv07B/zCOMa+jpXI9ll+Q21Nc6FAlYPcpNcAXqBzMhNs1CD/pP2bA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.6.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-content-length": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.10.tgz", - "integrity": "sha512-T4dIdCs1d/+/qMpwhJ1DzOhxCZjZHbHazEPJWdB4GDi2HjIZllVzeBEcdJUN0fomV8DURsgOyrbEUzg3vzTaOg==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.2.tgz", + "integrity": "sha512-hAfEXm1zU+ELvucxqQ7I8SszwQ4znWMbNv6PLMndN83JJN41EPuS93AIyh2N+gJ6x8QFhzSO6b7q2e6oClDI8A==", + "dev": true, "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-endpoint": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.1.tgz", - "integrity": "sha512-wWO3xYmFm6WRW8VsEJ5oU6h7aosFXfszlz3Dj176pTij6o21oZnzkCLzShfmRaaCHDkBXWBdO0c4sQAvLFP6zA==", - "license": "Apache-2.0", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.0.tgz", + "integrity": "sha512-xhLimgNCbCzsUppRTGXWkZywksuTThxaIB0HwbpsVLY5sceac4e1TZ/WKYqufQLaUy+gUSJGNdwD2jo3cXL0iA==", + "dev": true, "dependencies": { - "@smithy/core": "^2.5.1", - "@smithy/middleware-serde": "^3.0.8", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", - "@smithy/url-parser": "^3.0.8", - "@smithy/util-middleware": "^3.0.8", + "@smithy/core": "^3.2.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-middleware": "^4.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-endpoint/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-retry": { - "version": "3.0.25", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.25.tgz", - "integrity": "sha512-m1F70cPaMBML4HiTgCw5I+jFNtjgz5z5UdGnUbG37vw6kh4UvizFYjqJGHvicfgKMkDL6mXwyPp5mhZg02g5sg==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/protocol-http": "^4.1.5", - "@smithy/service-error-classification": "^3.0.8", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-retry": "^3.0.8", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.0.tgz", + "integrity": "sha512-2zAagd1s6hAaI/ap6SXi5T3dDwBOczOMCSkkYzktqN1+tzbk1GAsHNAdo/1uzxz3Ky02jvZQwbi/vmDA6z4Oyg==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/service-error-classification": "^4.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-retry/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-retry/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-serde": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.8.tgz", - "integrity": "sha512-Xg2jK9Wc/1g/MBMP/EUn2DLspN8LNt+GMe7cgF+Ty3vl+Zvu+VeZU5nmhveU+H8pxyTsjrAkci8NqY6OuvZnjA==", - "license": "Apache-2.0", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.3.tgz", + "integrity": "sha512-rfgDVrgLEVMmMn0BI8O+8OVr6vXzjV7HZj57l0QxslhzbvVfikZbVfBVthjLHqib4BW44QhcIgJpvebHlRaC9A==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-stack": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.8.tgz", - "integrity": "sha512-d7ZuwvYgp1+3682Nx0MD3D/HtkmZd49N3JUndYWQXfRZrYEnCWYc8BHcNmVsPAp9gKvlurdg/mubE6b/rPS9MA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.2.tgz", + "integrity": "sha512-eSPVcuJJGVYrFYu2hEq8g8WWdJav3sdrI4o2c6z/rjnYDd3xH9j9E7deZQCzFn4QvGPouLngH3dQ+QVTxv5bOQ==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/node-config-provider": { @@ -22408,7 +24164,6 @@ "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.3.0.tgz", "integrity": "sha512-0elK5/03a1JPWMDPaS726Iw6LpQg80gFut1tNpPfxFuChEEklo2yL823V94SpTZTxmKlXFtFgsP55uh3dErnIg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/property-provider": "^2.2.0", "@smithy/shared-ini-file-loader": "^2.4.0", @@ -22424,7 +24179,6 @@ "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.2.0.tgz", "integrity": "sha512-+xiil2lFhtTRzXkx8F053AV46QnIw6e7MV8od5Mi68E1ICOjCeCHw2XfLnDEUHnT9WGUIkwcqavXjfwuJbGlpg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^2.12.0", "tslib": "^2.6.2" @@ -22438,7 +24192,6 @@ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -22447,54 +24200,79 @@ } }, "node_modules/@smithy/node-http-handler": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.2.5.tgz", - "integrity": "sha512-PkOwPNeKdvX/jCpn0A8n9/TyoxjGZB8WVoJmm9YzsnAgggTj4CrjpRHlTQw7dlLZ320n1mY1y+nTRUDViKi/3w==", - "license": "Apache-2.0", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.4.tgz", + "integrity": "sha512-/mdqabuAT3o/ihBGjL94PUbTSPSRJ0eeVTdgADzow0wRJ0rN4A27EOrtlK56MYiO1fDvlO3jVTCxQtQmK9dZ1g==", + "dev": true, "dependencies": { - "@smithy/abort-controller": "^3.1.6", - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/querystring-builder": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/node-http-handler/node_modules/@smithy/querystring-builder": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.2.tgz", + "integrity": "sha512-NTOs0FwHw1vimmQM4ebh+wFQvOwkEf/kQL6bSM1Lock+Bv4I89B3hGYoUEPkmvYPkDKyp5UdXJYu+PoTQ3T31Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "@smithy/util-uri-escape": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/node-http-handler/node_modules/@smithy/util-uri-escape": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz", + "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/property-provider": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.8.tgz", - "integrity": "sha512-ukNUyo6rHmusG64lmkjFeXemwYuKge1BJ8CtpVKmrxQxc6rhUX0vebcptFA9MmrGsnLhwnnqeH83VTU9hwOpjA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.2.tgz", + "integrity": "sha512-wNRoQC1uISOuNc2s4hkOYwYllmiyrvVXWMtq+TysNRVQaHm4yoafYQyjN/goYZS+QbYlPIbb/QRjaUZMuzwQ7A==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/protocol-http": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.5.tgz", - "integrity": "sha512-hsjtwpIemmCkm3ZV5fd/T0bPIugW1gJXwZ/hpuVubt2hEUApIoUTrf6qIdh9MAWlw0vjMrA1ztJLAwtNaZogvg==", - "license": "Apache-2.0", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.0.tgz", + "integrity": "sha512-KxAOL1nUNw2JTYrtviRRjEnykIDhxc84qMBzxvu1MUfQfHTuBlCG7PA6EdVwqpJjH7glw7FqQoFxUJSyBQgu7g==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/querystring-builder": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.8.tgz", - "integrity": "sha512-btYxGVqFUARbUrN6VhL9c3dnSviIwBYD9Rz1jHuN1hgh28Fpv2xjU1HeCeDJX68xctz7r4l1PBnFhGg1WBBPuA==", - "license": "Apache-2.0", + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.11.tgz", + "integrity": "sha512-u+5HV/9uJaeLj5XTb6+IEF/dokWWkEqJ0XiaRRogyREmKGUgZnNecLucADLdauWFKUNbQfulHFEZEdjwEBjXRg==", "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^3.7.2", "@smithy/util-uri-escape": "^3.0.0", "tslib": "^2.6.2" }, @@ -22502,29 +24280,40 @@ "node": ">=16.0.0" } }, - "node_modules/@smithy/querystring-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.8.tgz", - "integrity": "sha512-BtEk3FG7Ks64GAbt+JnKqwuobJNX8VmFLBsKIwWr1D60T426fGrV2L3YS5siOcUhhp6/Y6yhBw1PSPxA5p7qGg==", - "license": "Apache-2.0", + "node_modules/@smithy/querystring-builder/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dependencies": { - "@smithy/types": "^3.6.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, + "node_modules/@smithy/querystring-parser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.2.tgz", + "integrity": "sha512-v6w8wnmZcVXjfVLjxw8qF7OwESD9wnpjp0Dqry/Pod0/5vcEA3qxCr+BhbOHlxS8O+29eLpT3aagxXGwIoEk7Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@smithy/service-error-classification": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.8.tgz", - "integrity": "sha512-uEC/kCCFto83bz5ZzapcrgGqHOh/0r69sZ2ZuHlgoD5kYgXJEThCoTuw/y1Ub3cE7aaKdznb+jD9xRPIfIwD7g==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.2.tgz", + "integrity": "sha512-LA86xeFpTKn270Hbkixqs5n73S+LVM0/VZco8dqd+JT75Dyx3Lcw/MraL7ybjmz786+160K8rPOmhsq0SocoJQ==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0" + "@smithy/types": "^4.2.0" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/shared-ini-file-loader": { @@ -22532,7 +24321,6 @@ "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.4.0.tgz", "integrity": "sha512-WyujUJL8e1B6Z4PBfAqC/aGY1+C7T0w20Gih3yrvJSk97gpiVfB+y7c46T4Nunk+ZngLq0rOIdeVeIklk0R3OA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^2.12.0", "tslib": "^2.6.2" @@ -22546,7 +24334,6 @@ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -22555,70 +24342,83 @@ } }, "node_modules/@smithy/signature-v4": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.1.tgz", - "integrity": "sha512-NsV1jF4EvmO5wqmaSzlnTVetemBS3FZHdyc5CExbDljcyJCEEkJr8ANu2JvtNbVg/9MvKAWV44kTrGS+Pi4INg==", - "license": "Apache-2.0", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.0.2.tgz", + "integrity": "sha512-Mz+mc7okA73Lyz8zQKJNyr7lIcHLiPYp0+oiqiMNc/t7/Kf2BENs5d63pEj7oPqdjaum6g0Fc8wC78dY1TgtXw==", + "dev": true, "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.8", - "@smithy/util-uri-escape": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/is-array-buffer": "^4.0.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-hex-encoding": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-uri-escape": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/signature-v4/node_modules/@smithy/util-uri-escape": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz", + "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/smithy-client": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.4.2.tgz", - "integrity": "sha512-dxw1BDxJiY9/zI3cBqfVrInij6ShjpV4fmGHesGZZUiP9OSE/EVfdwdRz0PgvkEvrZHpsj2htRaHJfftE8giBA==", - "license": "Apache-2.0", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.2.0.tgz", + "integrity": "sha512-Qs65/w30pWV7LSFAez9DKy0Koaoh3iHhpcpCCJ4waj/iqwsuSzJna2+vYwq46yBaqO5ZbP9TjUsATUNxrKeBdw==", + "dev": true, "dependencies": { - "@smithy/core": "^2.5.1", - "@smithy/middleware-endpoint": "^3.2.1", - "@smithy/middleware-stack": "^3.0.8", - "@smithy/protocol-http": "^4.1.5", - "@smithy/types": "^3.6.0", - "@smithy/util-stream": "^3.2.1", + "@smithy/core": "^3.2.0", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-stream": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/types": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.6.0.tgz", - "integrity": "sha512-8VXK/KzOHefoC65yRgCn5vG1cysPJjHnOVt9d0ybFQSmJgQj152vMn4EkYhGuaOmnnZvCPav/KnYyE6/KsNZ2w==", - "license": "Apache-2.0", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.2.0.tgz", + "integrity": "sha512-7eMk09zQKCO+E/ivsjQv+fDlOupcFUCSC/L2YUPgwhvowVGWbPQHjEFcmjt7QQ4ra5lyowS92SV53Zc6XD4+fg==", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/url-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.8.tgz", - "integrity": "sha512-4FdOhwpTW7jtSFWm7SpfLGKIBC9ZaTKG5nBF0wK24aoQKQyDIKUw3+KFWCQ9maMzrgTJIuOvOnsV2lLGW5XjTg==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.2.tgz", + "integrity": "sha512-Bm8n3j2ScqnT+kJaClSVCMeiSenK6jVAzZCNewsYWuZtnBehEz4r2qP0riZySZVfzB+03XZHJeqfmJDkeeSLiQ==", + "dev": true, "dependencies": { - "@smithy/querystring-parser": "^3.0.8", - "@smithy/types": "^3.6.0", + "@smithy/querystring-parser": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/util-base64": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-3.0.0.tgz", "integrity": "sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==", - "license": "Apache-2.0", "dependencies": { "@smithy/util-buffer-from": "^3.0.0", "@smithy/util-utf8": "^3.0.0", @@ -22628,232 +24428,270 @@ "node": ">=16.0.0" } }, - "node_modules/@smithy/util-body-length-browser": { + "node_modules/@smithy/util-base64/node_modules/@smithy/is-array-buffer": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", - "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dependencies": { "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@smithy/util-body-length-node": { + "node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", - "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, + "node_modules/@smithy/util-body-length-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.0.0.tgz", + "integrity": "sha512-sNi3DL0/k64/LO3A256M+m3CDdG6V7WKWHdAiBBMUN8S3hK3aMPhwnPik2A/a2ONN+9doY9UxaLfgqsIRg69QA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/util-body-length-node": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.0.0.tgz", + "integrity": "sha512-q0iDP3VsZzqJyje8xJWEJCNIu3lktUGVoSy1KB0UWym2CL1siV3artm+u1DFYTLejpsrdGyCSWBdGNjJzfDPjg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@smithy/util-buffer-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", - "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", - "license": "Apache-2.0", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.0.0.tgz", + "integrity": "sha512-9TOQ7781sZvddgO8nxueKi3+yGvkY35kotA0Y6BWRajAv8jjmigQ1sBwz0UX47pQMYXJPahSKEKYFgt+rXdcug==", + "dev": true, "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", + "@smithy/is-array-buffer": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-config-provider": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", - "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", - "license": "Apache-2.0", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-4.0.0.tgz", + "integrity": "sha512-L1RBVzLyfE8OXH+1hsJ8p+acNUSirQnWQ6/EgpchV88G6zGBTDPdXiiExei6Z1wR2RxYvxY/XLw6AMNCCt8H3w==", + "dev": true, "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.25", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.25.tgz", - "integrity": "sha512-fRw7zymjIDt6XxIsLwfJfYUfbGoO9CmCJk6rjJ/X5cd20+d2Is7xjU5Kt/AiDt6hX8DAf5dztmfP5O82gR9emA==", - "license": "Apache-2.0", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.8.tgz", + "integrity": "sha512-ZTypzBra+lI/LfTYZeop9UjoJhhGRTg3pxrNpfSTQLd3AJ37r2z4AXTKpq1rFXiiUIJsYyFgNJdjWRGP/cbBaQ==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", "bowser": "^2.11.0", "tslib": "^2.6.2" }, "engines": { - "node": ">= 10.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.25", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.25.tgz", - "integrity": "sha512-H3BSZdBDiVZGzt8TG51Pd2FvFO0PAx/A0mJ0EH8a13KJ6iUCdYnw/Dk/MdC1kTd0eUuUGisDFaxXVXo4HHFL1g==", - "license": "Apache-2.0", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.8.tgz", + "integrity": "sha512-Rgk0Jc/UDfRTzVthye/k2dDsz5Xxs9LZaKCNPgJTRyoyBoeiNCnHsYGOyu1PKN+sDyPnJzMOz22JbwxzBp9NNA==", + "dev": true, "dependencies": { - "@smithy/config-resolver": "^3.0.10", - "@smithy/credential-provider-imds": "^3.2.5", - "@smithy/node-config-provider": "^3.1.9", - "@smithy/property-provider": "^3.1.8", - "@smithy/smithy-client": "^3.4.2", - "@smithy/types": "^3.6.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">= 10.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-endpoints": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.4.tgz", - "integrity": "sha512-kPt8j4emm7rdMWQyL0F89o92q10gvCUa6sBkBtDJ7nV2+P7wpXczzOfoDJ49CKXe5CCqb8dc1W+ZdLlrKzSAnQ==", - "license": "Apache-2.0", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.2.tgz", + "integrity": "sha512-6QSutU5ZyrpNbnd51zRTL7goojlcnuOB55+F9VBD+j8JpRY50IGamsjlycrmpn8PQkmJucFW8A0LSfXj7jjtLQ==", + "dev": true, "dependencies": { - "@smithy/node-config-provider": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-endpoints/node_modules/@smithy/node-config-provider": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.9.tgz", - "integrity": "sha512-qRHoah49QJ71eemjuS/WhUXB+mpNtwHRWQr77J/m40ewBVVwvo52kYAmb7iuaECgGTTcYxHS4Wmewfwy++ueew==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, "dependencies": { - "@smithy/property-provider": "^3.1.8", - "@smithy/shared-ini-file-loader": "^3.1.9", - "@smithy/types": "^3.6.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-endpoints/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.9.tgz", - "integrity": "sha512-/+OsJRNtoRbtsX0UpSgWVxFZLsJHo/4sTr+kBg/J78sr7iC+tHeOvOJrS5hCpVQ6sWBbhWLp1UNiuMyZhE6pmA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-hex-encoding": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", - "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", - "license": "Apache-2.0", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.0.0.tgz", + "integrity": "sha512-Yk5mLhHtfIgW2W2WQZWSg5kuMZCVbvhFmC7rV4IO2QqnZdbEFPmQnCcGMAX2z/8Qj3B9hYYNjZOhWym+RwhePw==", + "dev": true, "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-middleware": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.8.tgz", - "integrity": "sha512-p7iYAPaQjoeM+AKABpYWeDdtwQNxasr4aXQEA/OmbOaug9V0odRVDy3Wx4ci8soljE/JXQo+abV0qZpW8NX0yA==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.2.tgz", + "integrity": "sha512-6GDamTGLuBQVAEuQ4yDQ+ti/YINf/MEmIegrEeg7DdB/sld8BX1lqt9RRuIcABOhAGTA50bRbPzErez7SlDtDQ==", + "dev": true, "dependencies": { - "@smithy/types": "^3.6.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-retry": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.8.tgz", - "integrity": "sha512-TCEhLnY581YJ+g1x0hapPz13JFqzmh/pMWL2KEFASC51qCfw3+Y47MrTmea4bUE5vsdxQ4F6/KFbUeSz22Q1ow==", - "license": "Apache-2.0", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.2.tgz", + "integrity": "sha512-Qryc+QG+7BCpvjloFLQrmlSd0RsVRHejRXd78jNO3+oREueCjwG1CCEH1vduw/ZkM1U9TztwIKVIi3+8MJScGg==", + "dev": true, "dependencies": { - "@smithy/service-error-classification": "^3.0.8", - "@smithy/types": "^3.6.0", + "@smithy/service-error-classification": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-stream": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.2.1.tgz", - "integrity": "sha512-R3ufuzJRxSJbE58K9AEnL/uSZyVdHzud9wLS8tIbXclxKzoe09CRohj2xV8wpx5tj7ZbiJaKYcutMm1eYgz/0A==", - "license": "Apache-2.0", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.0.tgz", + "integrity": "sha512-Vj1TtwWnuWqdgQI6YTUF5hQ/0jmFiOYsc51CSMgj7QfyO+RF4EnT2HNjoviNlOOmgzgvf3f5yno+EiC4vrnaWQ==", + "dev": true, "dependencies": { - "@smithy/fetch-http-handler": "^4.0.0", - "@smithy/node-http-handler": "^3.2.5", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/types": "^4.2.0", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-hex-encoding": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "node_modules/@smithy/util-stream/node_modules/@smithy/util-base64": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.0.0.tgz", - "integrity": "sha512-MLb1f5tbBO2X6K4lMEKJvxeLooyg7guq48C2zKr4qM7F2Gpkz4dc+hdSgu77pCJ76jVqFBjZczHYAs6dp15N+g==", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, "dependencies": { - "@smithy/protocol-http": "^4.1.5", - "@smithy/querystring-builder": "^3.0.8", - "@smithy/types": "^3.6.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/util-uri-escape": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-3.0.0.tgz", "integrity": "sha512-LqR7qYLgZTD7nWLBecUi4aqolw8Mhza9ArpNEQ881MJJIU2sE5iHCK6TdyqqzcDLy0OPe10IY4T8ctVdtynubg==", - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -22862,44 +24700,48 @@ } }, "node_modules/@smithy/util-utf8": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", - "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", - "license": "Apache-2.0", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.0.0.tgz", + "integrity": "sha512-b+zebfKCfRdgNJDknHCob3O7FpeYQN6ZG6YLExMcasDHsCXlsXCEuiPZeLnJLpwa5dvPetGlnGCiMHuLwGvFow==", + "dev": true, "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-buffer-from": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-waiter": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.1.7.tgz", - "integrity": "sha512-d5yGlQtmN/z5eoTtIYgkvOw27US2Ous4VycnXatyoImIF9tzlcpnKqQ/V7qhvJmb2p6xZne1NopCLakdTnkBBQ==", - "license": "Apache-2.0", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.0.3.tgz", + "integrity": "sha512-JtaY3FxmD+te+KSI2FJuEcfNC9T/DGGVf551babM7fAaXhjJUt7oSYurH1Devxd2+BOSUACCgt3buinx4UnmEA==", + "dev": true, "dependencies": { - "@smithy/abort-controller": "^3.1.6", - "@smithy/types": "^3.6.0", + "@smithy/abort-controller": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "node_modules/@types/aws-lambda": { - "version": "8.10.145", - "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.145.tgz", - "integrity": "sha512-dtByW6WiFk5W5Jfgz1VM+YPA21xMXTuSFoLYIDY0L44jDLLflVPtZkYuu3/YxpGcvjzKFBZLU+GyKjR0HOYtyw==", - "license": "MIT" + "version": "8.10.148", + "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.148.tgz", + "integrity": "sha512-JL+2cfkY9ODQeE06hOxSFNkafjNk4JRBgY837kpoq1GHDttq2U3BA9IzKOWxS4DLjKoymGB4i9uBrlCkjUl1yg==" }, "node_modules/@types/duplexify": { "version": "3.6.4", "resolved": "https://registry.npmjs.org/@types/duplexify/-/duplexify-3.6.4.tgz", "integrity": "sha512-2eahVPsd+dy3CL6FugAzJcxoraWhUghZGEQJns1kTKfCXWKJ5iG/VkaB05wRVrDKHfOFKqb0X0kXh91eE99RZg==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -22907,74 +24749,63 @@ "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "license": "MIT" + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" }, "node_modules/@types/lodash": { - "version": "4.17.13", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.13.tgz", - "integrity": "sha512-lfx+dftrEZcdBPczf9d0Qv0x+j/rfNCMuC6OcfXmO8gkfeNAY88PgKUbvG56whcN23gc27yenwF6oJZXGFpYxg==", - "dev": true, - "license": "MIT" + "version": "4.17.16", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.16.tgz", + "integrity": "sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==", + "dev": true }, "node_modules/@types/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } + "dev": true }, "node_modules/@types/node": { - "version": "20.16.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.5.tgz", - "integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==", + "version": "22.13.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.14.tgz", + "integrity": "sha512-Zs/Ollc1SJ8nKUAgc7ivOEdIBM8JAKgrqqUYi2J997JuKO7/tpQC+WCetQ1sypiKCQWHdvdg9wBNpUPEWZae7w==", "dev": true, - "license": "MIT", "dependencies": { - "undici-types": "~6.19.2" + "undici-types": "~6.20.0" } }, "node_modules/@types/uuid": { "version": "9.0.8", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", - "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", - "license": "MIT" - }, - "node_modules/@types/wrap-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/wrap-ansi/-/wrap-ansi-3.0.0.tgz", - "integrity": "sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==", - "dev": true, - "license": "MIT" + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==" }, "node_modules/@typescript/vfs": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.3.6.tgz", "integrity": "sha512-VSLn7rs46Qhe4gYxbK1/IB4NPLvgKl0I6SgeVyJwW5efYAELvDVqf1gVOG7JaKtW8qlMtBaZP02/4TRN39AkEQ==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.1.1" } }, + "node_modules/@whatwg-node/disposablestack": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@whatwg-node/disposablestack/-/disposablestack-0.0.6.tgz", + "integrity": "sha512-LOtTn+JgJvX8WfBVJtF08TGrdjuFzGJc4mkP8EdDI8ADbvO7kiexYep1o8dwnt0okb0jYclCDXF13xU7Ge4zSw==", + "dev": true, + "dependencies": { + "@whatwg-node/promise-helpers": "^1.0.0", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@whatwg-node/fetch": { - "version": "0.9.23", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.9.23.tgz", - "integrity": "sha512-7xlqWel9JsmxahJnYVUj/LLxWcnA93DR4c9xlw3U814jWTiYalryiH1qToik1hOxweKKRLi4haXHM5ycRksPBA==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.5.tgz", + "integrity": "sha512-+yFJU3hmXPAHJULwx0VzCIsvr/H0lvbPvbOH3areOH3NAuCxCwaJsQ8w6/MwwMcvEWIynSsmAxoyaH04KeosPg==", "dev": true, - "license": "MIT", "dependencies": { - "@whatwg-node/node-fetch": "^0.6.0", + "@whatwg-node/node-fetch": "^0.7.11", "urlpattern-polyfill": "^10.0.0" }, "engines": { @@ -22982,21 +24813,69 @@ } }, "node_modules/@whatwg-node/node-fetch": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.6.0.tgz", - "integrity": "sha512-tcZAhrpx6oVlkEsRngeTEEE7I5/QdLjeEz4IlekabGaESP7+Dkm/6a9KcF1KdCBB7mO9PXtBkwCuTCt8+UPg8Q==", + "version": "0.7.17", + "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.17.tgz", + "integrity": "sha512-Ni8A2H/r6brNf4u8Y7ATxmWUD0xltsQ6a4NnjWSbw4PgaT34CbY+u4QtVsFj9pTC3dBKJADKjac3AieAig+PZA==", "dev": true, - "license": "MIT", "dependencies": { - "@kamilkisiela/fast-url-parser": "^1.1.4", + "@whatwg-node/disposablestack": "^0.0.6", + "@whatwg-node/promise-helpers": "^1.2.5", "busboy": "^1.6.0", - "fast-querystring": "^1.1.1", "tslib": "^2.6.3" }, "engines": { "node": ">=18.0.0" } }, + "node_modules/@whatwg-node/promise-helpers": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@whatwg-node/promise-helpers/-/promise-helpers-1.3.0.tgz", + "integrity": "sha512-486CouizxHXucj8Ky153DDragfkMcHtVEToF5Pn/fInhUUSiCmt9Q4JVBa6UK5q4RammFBtGQ4C9qhGlXU9YbA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dev": true, + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/agent-base": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", + "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/analytics-main": { "resolved": "backends/analytics/main", "link": true @@ -23006,7 +24885,6 @@ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -23022,7 +24900,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -23032,7 +24909,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -23043,19 +24919,147 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/api-multi-auth": { "resolved": "backends/api/api-multi-auth", "link": true }, + "node_modules/archiver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-7.0.1.tgz", + "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==", + "dev": true, + "dependencies": { + "archiver-utils": "^5.0.2", + "async": "^3.2.4", + "buffer-crc32": "^1.0.0", + "readable-stream": "^4.0.0", + "readdir-glob": "^1.1.2", + "tar-stream": "^3.0.0", + "zip-stream": "^6.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/archiver-utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-5.0.2.tgz", + "integrity": "sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==", + "dev": true, + "dependencies": { + "glob": "^10.0.0", + "graceful-fs": "^4.2.0", + "is-stream": "^2.0.1", + "lazystream": "^1.0.0", + "lodash": "^4.17.15", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/archiver-utils/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/archiver-utils/node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/archiver/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/archiver/node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" }, "engines": { "node": ">= 0.4" @@ -23069,22 +25073,20 @@ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/array.prototype.flatmap": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", - "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -23094,20 +25096,18 @@ } }, "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", "dev": true, - "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" }, "engines": { "node": ">= 0.4" @@ -23120,15 +25120,13 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/asn1.js": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", "dev": true, - "license": "MIT", "dependencies": { "bn.js": "^4.0.0", "inherits": "^2.0.1", @@ -23137,18 +25135,61 @@ } }, "node_modules/asn1.js/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.1.tgz", + "integrity": "sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg==", + "dev": true + }, + "node_modules/ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", "dev": true, - "license": "MIT" + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } }, "node_modules/auto-bind": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-4.0.0.tgz", "integrity": "sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -23161,7 +25202,6 @@ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", "dev": true, - "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -23173,27 +25213,25 @@ } }, "node_modules/aws-amplify": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/aws-amplify/-/aws-amplify-6.6.1.tgz", - "integrity": "sha512-b4bH5PM61VqKe/Wpgs9rxp9DegiJhVfDzRaXpmDs82s3J/vlZ2+w0mcTtGFoTQ7S7GrIj2AzdXvoXVlhvpRd6Q==", - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/analytics": "7.0.48", - "@aws-amplify/api": "6.0.50", - "@aws-amplify/auth": "6.4.1", - "@aws-amplify/core": "6.4.1", - "@aws-amplify/datastore": "5.0.50", - "@aws-amplify/notifications": "2.0.48", - "@aws-amplify/storage": "6.6.6", + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/aws-amplify/-/aws-amplify-6.14.0.tgz", + "integrity": "sha512-UGG5o5KMtBAgfic8Teokp6T0YG7yiI1vA3nnLQgxZBHgSxfVpQuxuFuWogHmzQxavoz3rud+zyHHckrrJHj3ZQ==", + "dependencies": { + "@aws-amplify/analytics": "7.0.76", + "@aws-amplify/api": "6.3.7", + "@aws-amplify/auth": "6.12.0", + "@aws-amplify/core": "6.11.0", + "@aws-amplify/datastore": "5.0.78", + "@aws-amplify/notifications": "2.0.76", + "@aws-amplify/storage": "6.8.0", "tslib": "^2.5.0" } }, "node_modules/aws-cdk": { - "version": "2.158.0", - "resolved": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.158.0.tgz", - "integrity": "sha512-UcrxBG02RACrnTvfuyZiTuOz8gqOpnqjCMTdVmdpExv5qk9hddhtRAubNaC4xleHuNJnvskYqqVW+Y3Abh6zGQ==", + "version": "2.1006.0", + "resolved": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.1006.0.tgz", + "integrity": "sha512-6qYnCt4mBN+3i/5F+FC2yMETkDHY/IL7gt3EuqKVPcaAO4jU7oXfVSlR60CYRkZWL4fnAurUV14RkJuJyVG/IA==", "dev": true, - "license": "Apache-2.0", "bin": { "cdk": "bin/cdk" }, @@ -23205,9 +25243,9 @@ } }, "node_modules/aws-cdk-lib": { - "version": "2.180.0", - "resolved": "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.180.0.tgz", - "integrity": "sha512-ncYx3MGcLL397WAg6LOHV8G/5d0FkdoskiUscqFawLWioK75f0M6AIuif9kxrxLBvbMOncOfqhV8wIsCM1fquA==", + "version": "2.186.0", + "resolved": "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.186.0.tgz", + "integrity": "sha512-y/DD4h8CbhwGyPTpoHELATavZe5FWcy1xSuLlReOd3+cCRZ9rAzVSFdPB8kSJUD4nBPrIeGkW1u8ItUOhms17w==", "bundleDependencies": [ "@balena/dockerignore", "case", @@ -23223,19 +25261,19 @@ ], "dev": true, "dependencies": { - "@aws-cdk/asset-awscli-v1": "^2.2.208", + "@aws-cdk/asset-awscli-v1": "^2.2.227", "@aws-cdk/asset-node-proxy-agent-v6": "^2.1.0", - "@aws-cdk/cloud-assembly-schema": "^39.2.0", + "@aws-cdk/cloud-assembly-schema": "^40.7.0", "@balena/dockerignore": "^1.0.2", "case": "1.6.3", - "fs-extra": "^11.2.0", + "fs-extra": "^11.3.0", "ignore": "^5.3.2", - "jsonschema": "^1.4.1", + "jsonschema": "^1.5.0", "mime-types": "^2.1.35", "minimatch": "^3.1.2", "punycode": "^2.3.1", - "semver": "^7.6.3", - "table": "^6.8.2", + "semver": "^7.7.1", + "table": "^6.9.0", "yaml": "1.10.2" }, "engines": { @@ -23500,7 +25538,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/semver": { - "version": "7.6.3", + "version": "7.7.1", "dev": true, "inBundle": true, "license": "ISC", @@ -23588,12 +25626,17 @@ "node": ">= 6" } }, + "node_modules/b4a": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz", + "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==", + "dev": true + }, "node_modules/babel-generator": { "version": "6.26.1", "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", "dev": true, - "license": "MIT", "dependencies": { "babel-messages": "^6.23.0", "babel-runtime": "^6.26.0", @@ -23610,7 +25653,6 @@ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "integrity": "sha512-Mke0DA0QjUWuJlhsE0ZPPhYiJkRap642SmI/4ztCFaUs6V2AiH1sfecc+57NgaryfAA2VR3v6O+CSjC1jZJKOA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" } @@ -23620,7 +25662,6 @@ "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", "integrity": "sha512-Bl3ZiA+LjqaMtNYopA9TYE9HP1tQ+E5dLxE0XrAzcIJeK2UqF0/EaqXwBn9esd4UmTfEab+P+UYQ1GnioFIb/w==", "dev": true, - "license": "MIT", "dependencies": { "babel-runtime": "^6.22.0" } @@ -23629,15 +25670,13 @@ "version": "7.0.0-beta.0", "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz", "integrity": "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/babel-preset-fbjs": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz", "integrity": "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==", "dev": true, - "license": "MIT", "dependencies": { "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-object-rest-spread": "^7.0.0", @@ -23676,7 +25715,6 @@ "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", "dev": true, - "license": "MIT", "dependencies": { "core-js": "^2.4.0", "regenerator-runtime": "^0.11.0" @@ -23688,22 +25726,19 @@ "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", "dev": true, - "hasInstallScript": true, - "license": "MIT" + "hasInstallScript": true }, "node_modules/babel-runtime/node_modules/regenerator-runtime": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/babel-types": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", "integrity": "sha512-zhe3V/26rCWsEZK8kZN+HaQj5yQ1CilTObixFzKW1UWjqG7618Twz6YEsCnjfg5gBcJh02DrpCkS9h98ZqDY+g==", "dev": true, - "license": "MIT", "dependencies": { "babel-runtime": "^6.26.0", "esutils": "^2.0.2", @@ -23716,7 +25751,6 @@ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", "integrity": "sha512-lxrWP8ejsq+7E3nNjwYmUBMAgjMTZoTI+sdBOpvNyijeDLa29LUn9QaoXAHv4+Z578hbmHHJKZknzxVtvo77og==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -23725,8 +25759,14 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/bare-events": { + "version": "2.5.4", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.4.tgz", + "integrity": "sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA==", "dev": true, - "license": "MIT" + "optional": true }, "node_modules/base64-js": { "version": "1.5.1", @@ -23745,38 +25785,54 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] + }, + "node_modules/basic-ftp": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } }, "node_modules/big-integer": { "version": "1.6.52", "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", "dev": true, - "license": "Unlicense", "engines": { "node": ">=0.6" } }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/bn.js": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/bowser": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", - "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", - "license": "MIT" + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" }, "node_modules/bplist-parser": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", "dev": true, - "license": "MIT", "dependencies": { "big-integer": "^1.6.44" }, @@ -23789,7 +25845,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } @@ -23799,7 +25854,6 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -23808,9 +25862,9 @@ } }, "node_modules/browserslist": { - "version": "4.24.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz", - "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==", + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", "dev": true, "funding": [ { @@ -23826,11 +25880,10 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001669", - "electron-to-chromium": "^1.5.41", - "node-releases": "^2.0.18", + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", "update-browserslist-db": "^1.1.1" }, "bin": { @@ -23845,35 +25898,40 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } }, "node_modules/buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "license": "MIT", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", + "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", + "dev": true, "dependencies": { "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" + "ieee754": "^1.1.4" + } + }, + "node_modules/buffer-crc32": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz", + "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==", + "dev": true, + "engines": { + "node": ">=8.0.0" } }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/bundle-name": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", "dev": true, - "license": "MIT", "dependencies": { "run-applescript": "^5.0.0" }, @@ -23897,17 +25955,44 @@ } }, "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", "dev": true, - "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" @@ -23921,7 +26006,6 @@ "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.1.tgz", "integrity": "sha512-7fa2WcG4fYFkclIvEmxBbTvmibwF2/agfEBc6q3lOpVu0A13ltLsA+Hr/8Hp6kp5f+G7hKi6t8lys6XxP+1K6Q==", "dev": true, - "license": "MIT", "dependencies": { "pascal-case": "^3.1.1", "tslib": "^1.10.0" @@ -23931,23 +26015,24 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001678", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001678.tgz", - "integrity": "sha512-RR+4U/05gNtps58PEBDZcPWTgEO2MBeoPZ96aQcjmfkBWRIDfN451fW2qyDA9/+HohLLIL5GqiMwA+IB1pWarw==", + "version": "1.0.30001707", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001707.tgz", + "integrity": "sha512-3qtRjw/HQSMlDWf+X79N206fepf4SOOU6SQLMaq/0KkZLmSjPxAkBOQQ+FxbHKfHmYLZFfdWsO3KA90ceHPSnw==", "dev": true, "funding": [ { @@ -23962,27 +26047,188 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ], - "license": "CC-BY-4.0" + ] }, "node_modules/capital-case": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", "upper-case-first": "^2.0.2" } }, + "node_modules/cdk-assets": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cdk-assets/-/cdk-assets-3.2.0.tgz", + "integrity": "sha512-fm6I1vB0HEVAwX+IlhSkGlY1SAoEgLwGGmpJmIRFftErnOESHe09hwN1j3cwnWQnX8ggMqJhjdkJKIDg0w03Cw==", + "dev": true, + "dependencies": { + "@aws-cdk/cloud-assembly-schema": "42.0.0", + "@aws-cdk/cx-api": "^2.185.0", + "@aws-sdk/client-ecr": "^3", + "@aws-sdk/client-s3": "^3", + "@aws-sdk/client-secrets-manager": "^3", + "@aws-sdk/client-sts": "^3", + "@aws-sdk/credential-providers": "^3", + "@aws-sdk/lib-storage": "^3", + "@smithy/config-resolver": "^4.0.1", + "@smithy/node-config-provider": "^4.0.1", + "archiver": "^7.0.1", + "glob": "^11.0.1", + "mime": "^2", + "yargs": "^17.7.2" + }, + "bin": { + "cdk-assets": "bin/cdk-assets", + "docker-credential-cdk-assets": "bin/docker-credential-cdk-assets" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/cdk-assets/node_modules/@aws-cdk/cloud-assembly-schema": { + "version": "42.0.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-42.0.0.tgz", + "integrity": "sha512-oaWOcvLGP30mBW5fmCr5SamYD10mQztJ14KJaabh/lDdnCf1yje/rrVYtgnUlJMTZRqm52iTjgnp9oAyeyqhIA==", + "bundleDependencies": [ + "jsonschema", + "semver" + ], + "dev": true, + "dependencies": { + "jsonschema": "~1.4.1", + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/cdk-assets/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/cdk-assets/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cdk-assets/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/cdk-assets/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/cdk-assets/node_modules/glob": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", + "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cdk-assets/node_modules/jackspeak": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", + "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cdk-assets/node_modules/lru-cache": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", + "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", + "dev": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/cdk-assets/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cdk-from-cfn": { + "version": "0.193.0", + "resolved": "https://registry.npmjs.org/cdk-from-cfn/-/cdk-from-cfn-0.193.0.tgz", + "integrity": "sha512-LBKqAnsg12RRhyz+zyByI3H6REiDVNm1vofhdnEXSAIGIBuO0H/cw4mbCpz0Qr9huZYssF9ozGsbwa1K3RF2Tg==", + "dev": true + }, "node_modules/chalk": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -23996,7 +26242,6 @@ "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", "dev": true, - "license": "MIT", "dependencies": { "camel-case": "^4.1.2", "capital-case": "^1.0.4", @@ -24017,7 +26262,6 @@ "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", "dev": true, - "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -24036,7 +26280,6 @@ "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", "dev": true, - "license": "MIT", "dependencies": { "pascal-case": "^3.1.2", "tslib": "^2.0.3" @@ -24046,23 +26289,45 @@ "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/charenc": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": "*" } }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.2.0.tgz", + "integrity": "sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==", "dev": true, "funding": [ { @@ -24070,22 +26335,23 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", + "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", "dev": true, - "license": "MIT", "dependencies": { - "restore-cursor": "^3.1.0" + "restore-cursor": "^5.0.0" }, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/cli-spinners": { @@ -24093,7 +26359,6 @@ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" }, @@ -24106,7 +26371,6 @@ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", "dev": true, - "license": "ISC", "engines": { "node": ">= 12" } @@ -24116,7 +26380,6 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -24126,52 +26389,11 @@ "node": ">=12" } }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8" } @@ -24181,7 +26403,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -24193,22 +26414,28 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/colorette": { "version": "2.0.19", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "dev": true + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.1.90" + } }, "node_modules/commander": { "version": "9.5.0", "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", "dev": true, - "license": "MIT", "engines": { "node": "^12.20.0 || >=14" } @@ -24218,24 +26445,77 @@ "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4.0.0" } }, + "node_modules/compress-commons": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-6.0.2.tgz", + "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==", + "dev": true, + "dependencies": { + "crc-32": "^1.2.0", + "crc32-stream": "^6.0.0", + "is-stream": "^2.0.1", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/compress-commons/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/compress-commons/node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/constant-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -24243,42 +26523,105 @@ } }, "node_modules/constructs": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.3.0.tgz", - "integrity": "sha512-vbK8i3rIb/xwZxSpTjz3SagHn1qq9BChLEfy5Hf6fB3/2eFbrwt2n9kHwQcS0CPTRBesreeAcsJfMq2229FnbQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 16.14.0" - } + "version": "10.4.2", + "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.4.2.tgz", + "integrity": "sha512-wsNxBlAott2qg8Zv87q3eYZYgheb9lchtBfjHzzLHtXbttwSrHPs1NNQbBrmbb1YZvYg2+Vh0Dor76w4mFxJkA==", + "dev": true }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/core-js": { - "version": "3.39.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.39.0.tgz", - "integrity": "sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g==", + "version": "3.41.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.41.0.tgz", + "integrity": "sha512-SJ4/EHwS36QMJd6h/Rg+GyR4A5xE0FSI3eZ+iBVpfqf1x0eTSg1smWLHrA+2jQThZSh97fmSgFSU8B61nxosxA==", "dev": true, "hasInstallScript": true, - "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/crc32-stream": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-6.0.0.tgz", + "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==", + "dev": true, + "dependencies": { + "crc-32": "^1.2.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/crc32-stream/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/crc32-stream/node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/cross-fetch": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", - "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", "dev": true, - "license": "MIT", "dependencies": { - "node-fetch": "^2.6.12" + "node-fetch": "^2.7.0" } }, "node_modules/cross-fetch/node_modules/node-fetch": { @@ -24286,7 +26629,6 @@ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -24307,7 +26649,6 @@ "resolved": "https://registry.npmjs.org/cross-inspect/-/cross-inspect-1.0.1.tgz", "integrity": "sha512-Pcw1JTvZLSJH83iiGWt6fRcT+BjZlCDRVwYLbUcHzv/CRpB7r0MlSrGbIyQvVSNyGnbt7G4AXuyCiDR3POvZ1A==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.4.0" }, @@ -24334,38 +26675,34 @@ "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": "*" } }, "node_modules/csv-parse": { - "version": "5.5.6", - "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.5.6.tgz", - "integrity": "sha512-uNpm30m/AGSkLxxy7d9yRXpJQFrZzVWLFBkS+6ngPcZkw/5k3L/jjFuj7tVnEpRn+QgmiXr21nDlhCiUK4ij2A==", - "dev": true, - "license": "MIT" + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.6.0.tgz", + "integrity": "sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==", + "dev": true }, "node_modules/data-uri-to-buffer": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", "dev": true, - "license": "MIT", "engines": { "node": ">= 12" } }, "node_modules/data-view-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", - "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -24375,31 +26712,29 @@ } }, "node_modules/data-view-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", - "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/inspect-js" } }, "node_modules/data-view-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", - "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-data-view": "^1.0.1" }, @@ -24414,15 +26749,13 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/debounce-promise/-/debounce-promise-3.1.2.tgz", "integrity": "sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "dev": true, - "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -24436,13 +26769,15 @@ } }, "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz", + "integrity": "sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/default-browser": { @@ -24450,7 +26785,6 @@ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", "dev": true, - "license": "MIT", "dependencies": { "bundle-name": "^3.0.0", "default-browser-id": "^3.0.0", @@ -24469,7 +26803,6 @@ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", "dev": true, - "license": "MIT", "dependencies": { "bplist-parser": "^0.2.0", "untildify": "^4.0.0" @@ -24486,9 +26819,8 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", "dev": true, - "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.6", + "cross-spawn": "^7.0.3", "get-stream": "^6.0.1", "human-signals": "^4.3.0", "is-stream": "^3.0.0", @@ -24499,48 +26831,122 @@ "strip-final-newline": "^3.0.0" }, "engines": { - "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/default-browser/node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/default-browser/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/default-browser/node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "node_modules/default-browser/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", "dev": true, - "license": "MIT", + "dependencies": { + "mimic-fn": "^4.0.0" + }, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/default-browser/node_modules/human-signals": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", - "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "node_modules/default-browser/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, - "license": "Apache-2.0", "engines": { - "node": ">=14.18.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/default-browser/node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/default-browser/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", "dev": true, - "license": "ISC" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/defaults": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", "dev": true, - "license": "MIT", "dependencies": { "clone": "^1.0.2" }, @@ -24553,7 +26959,6 @@ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "dev": true, - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -24571,7 +26976,6 @@ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -24584,7 +26988,6 @@ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, - "license": "MIT", "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", @@ -24597,12 +27000,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/degenerator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", + "dev": true, + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/denque": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=0.10" } @@ -24612,7 +27028,6 @@ "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6.0" } @@ -24622,7 +27037,6 @@ "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", "integrity": "sha512-BDKtmHlOzwI7iRuEkhzsnPoi5ypEhWAJB5RvHWe1kMr06js3uK5B3734i3ui5Yd+wOJV1cpE4JnivPD283GU/A==", "dev": true, - "license": "MIT", "dependencies": { "repeating": "^2.0.0" }, @@ -24635,7 +27049,6 @@ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", "dev": true, - "license": "Apache-2.0", "bin": { "detect-libc": "bin/detect-libc.js" }, @@ -24643,12 +27056,20 @@ "node": ">=0.10" } }, + "node_modules/diff": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", + "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "license": "MIT", "dependencies": { "path-type": "^4.0.0" }, @@ -24661,7 +27082,6 @@ "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" @@ -24671,22 +27091,46 @@ "resolved": "backends/storage/dots-in-name", "link": true }, + "node_modules/dreamopt": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/dreamopt/-/dreamopt-0.8.0.tgz", + "integrity": "sha512-vyJTp8+mC+G+5dfgsY+r3ckxlz+QMX40VjPQsZc5gxVAxLmi64TBoVkP54A/pRAXMXsbu2GMMBrZPxNv23waMg==", + "dev": true, + "dependencies": { + "wordwrap": ">=0.0.2" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/dset": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz", "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/duplexify": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", "dev": true, - "license": "MIT", "dependencies": { "end-of-stream": "^1.4.1", "inherits": "^2.0.3", @@ -24698,33 +27142,29 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.5.53", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.53.tgz", - "integrity": "sha512-7F6qFMWzBArEFK4PLE+c+nWzhS1kIoNkQvGnNDogofxQAym+roQ0GUIdw6C/4YdJ6JKGp19c2a/DLcfKTi4wRQ==", - "dev": true, - "license": "ISC" + "version": "1.5.126", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.126.tgz", + "integrity": "sha512-AtH1uLcTC72LA4vfYcEJJkrMk/MY/X0ub8Hv7QGAePW2JkeUFHEL/QfS4J77R6M87Sss8O0OcqReSaN1bpyA+Q==", + "dev": true }, "node_modules/email-sign-in": { "resolved": "backends/auth/email-sign-in", "link": true }, "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, - "license": "MIT", "dependencies": { "once": "^1.4.0" } @@ -24734,7 +27174,6 @@ "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz", "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", "dev": true, - "license": "MIT", "bin": { "envinfo": "dist/cli.js" }, @@ -24743,58 +27182,62 @@ } }, "node_modules/es-abstract": { - "version": "1.23.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", - "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", + "version": "1.23.9", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", + "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", "dev": true, - "license": "MIT", "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.0", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", + "is-data-view": "^1.0.2", + "is-regex": "^1.2.1", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.0", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.3", "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.3", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.18" }, "engines": { "node": ">= 0.4" @@ -24804,14 +27247,10 @@ } }, "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, "engines": { "node": ">= 0.4" } @@ -24821,17 +27260,15 @@ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-object-atoms": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", - "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", "dev": true, - "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, @@ -24840,40 +27277,41 @@ } }, "node_modules/es-set-tostringtag": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", - "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", "dev": true, - "license": "MIT", "dependencies": { - "get-intrinsic": "^1.2.4", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", "dev": true, - "license": "MIT", "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", "dev": true, - "license": "MIT", "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" }, "engines": { "node": ">= 0.4" @@ -24883,9 +27321,9 @@ } }, "node_modules/esbuild": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.0.tgz", - "integrity": "sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz", + "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==", "dev": true, "hasInstallScript": true, "bin": { @@ -24895,31 +27333,31 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.0", - "@esbuild/android-arm": "0.25.0", - "@esbuild/android-arm64": "0.25.0", - "@esbuild/android-x64": "0.25.0", - "@esbuild/darwin-arm64": "0.25.0", - "@esbuild/darwin-x64": "0.25.0", - "@esbuild/freebsd-arm64": "0.25.0", - "@esbuild/freebsd-x64": "0.25.0", - "@esbuild/linux-arm": "0.25.0", - "@esbuild/linux-arm64": "0.25.0", - "@esbuild/linux-ia32": "0.25.0", - "@esbuild/linux-loong64": "0.25.0", - "@esbuild/linux-mips64el": "0.25.0", - "@esbuild/linux-ppc64": "0.25.0", - "@esbuild/linux-riscv64": "0.25.0", - "@esbuild/linux-s390x": "0.25.0", - "@esbuild/linux-x64": "0.25.0", - "@esbuild/netbsd-arm64": "0.25.0", - "@esbuild/netbsd-x64": "0.25.0", - "@esbuild/openbsd-arm64": "0.25.0", - "@esbuild/openbsd-x64": "0.25.0", - "@esbuild/sunos-x64": "0.25.0", - "@esbuild/win32-arm64": "0.25.0", - "@esbuild/win32-ia32": "0.25.0", - "@esbuild/win32-x64": "0.25.0" + "@esbuild/aix-ppc64": "0.25.1", + "@esbuild/android-arm": "0.25.1", + "@esbuild/android-arm64": "0.25.1", + "@esbuild/android-x64": "0.25.1", + "@esbuild/darwin-arm64": "0.25.1", + "@esbuild/darwin-x64": "0.25.1", + "@esbuild/freebsd-arm64": "0.25.1", + "@esbuild/freebsd-x64": "0.25.1", + "@esbuild/linux-arm": "0.25.1", + "@esbuild/linux-arm64": "0.25.1", + "@esbuild/linux-ia32": "0.25.1", + "@esbuild/linux-loong64": "0.25.1", + "@esbuild/linux-mips64el": "0.25.1", + "@esbuild/linux-ppc64": "0.25.1", + "@esbuild/linux-riscv64": "0.25.1", + "@esbuild/linux-s390x": "0.25.1", + "@esbuild/linux-x64": "0.25.1", + "@esbuild/netbsd-arm64": "0.25.1", + "@esbuild/netbsd-x64": "0.25.1", + "@esbuild/openbsd-arm64": "0.25.1", + "@esbuild/openbsd-x64": "0.25.1", + "@esbuild/sunos-x64": "0.25.1", + "@esbuild/win32-arm64": "0.25.1", + "@esbuild/win32-ia32": "0.25.1", + "@esbuild/win32-x64": "0.25.1" } }, "node_modules/escalade": { @@ -24927,7 +27365,6 @@ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -24937,61 +27374,142 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.0" } }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/esm": { "version": "3.2.25", "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, - "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } }, - "node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.6", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/execa/-/execa-9.5.2.tgz", + "integrity": "sha512-EHlpxMCpHWSAh1dgS6bVeoLAXGnJNdR93aabr4QCGbzOM73o5XmRfM/e5FUqsw3aagP8S8XEWUWFAxnRBnAF0Q==", + "dev": true, + "dependencies": { + "@sindresorhus/merge-streams": "^4.0.0", + "cross-spawn": "^7.0.3", + "figures": "^6.1.0", + "get-stream": "^9.0.0", + "human-signals": "^8.0.0", + "is-plain-obj": "^4.1.0", + "is-stream": "^4.0.1", + "npm-run-path": "^6.0.0", + "pretty-ms": "^9.0.0", "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" + "strip-final-newline": "^4.0.0", + "yoctocolors": "^2.0.0" }, "engines": { - "node": ">=16.17" + "node": "^18.19.0 || >=20.5.0" }, "funding": { "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/execa/node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", "dev": true, - "license": "MIT", "dependencies": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", @@ -25001,68 +27519,72 @@ "node": ">=4" } }, - "node_modules/fast-decode-uri-component": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz", - "integrity": "sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==", - "dev": true, - "license": "MIT" + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true }, "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" } }, - "node_modules/fast-querystring": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/fast-querystring/-/fast-querystring-1.1.2.tgz", - "integrity": "sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==", + "node_modules/fast-uri": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", + "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", "dev": true, - "license": "MIT", - "dependencies": { - "fast-decode-uri-component": "^1.0.1" - } + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ] }, "node_modules/fast-xml-parser": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.0.tgz", - "integrity": "sha512-/PlTQCI96+fZMAOLMZK4CWG1ItCbfZ/0jx7UIJFChPNrx7tcEgerUgWbeieCM9MfHInUDyK8DWYZ+YrywDJuTg==", + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz", + "integrity": "sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" } ], - "license": "MIT", "dependencies": { - "strnum": "^1.0.5" + "strnum": "^1.1.1" }, "bin": { "fxparser": "src/cli/cli.js" } }, "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", "dev": true, - "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -25072,7 +27594,6 @@ "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } @@ -25082,7 +27603,6 @@ "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", "dev": true, - "license": "MIT", "dependencies": { "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", @@ -25097,8 +27617,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/fetch-blob": { "version": "3.2.0", @@ -25115,7 +27634,6 @@ "url": "https://paypal.me/jimmywarting" } ], - "license": "MIT", "dependencies": { "node-domexception": "^1.0.0", "web-streams-polyfill": "^3.0.3" @@ -25125,16 +27643,15 @@ } }, "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz", + "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==", "dev": true, - "license": "MIT", "dependencies": { - "escape-string-regexp": "^1.0.5" + "is-unicode-supported": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -25145,7 +27662,6 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -25158,7 +27674,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -25168,21 +27683,25 @@ } }, "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", "dev": true, - "license": "MIT", "dependencies": { - "is-callable": "^1.1.3" + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "dev": true, - "license": "ISC", "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" @@ -25199,7 +27718,6 @@ "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", "dev": true, - "license": "MIT", "dependencies": { "fetch-blob": "^3.1.2" }, @@ -25212,7 +27730,6 @@ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "dev": true, - "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", @@ -25226,8 +27743,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/fsevents": { "version": "2.3.2", @@ -25235,7 +27751,6 @@ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, "hasInstallScript": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -25249,22 +27764,22 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" }, "engines": { "node": ">= 0.4" @@ -25278,7 +27793,6 @@ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -25288,7 +27802,6 @@ "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", "dev": true, - "license": "MIT", "dependencies": { "is-property": "^1.0.2" } @@ -25298,7 +27811,6 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -25308,23 +27820,38 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-east-asian-width": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", + "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, - "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -25338,34 +27865,60 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.0.0" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz", + "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==", "dev": true, - "license": "MIT", + "dependencies": { + "@sec-ant/readable-stream": "^0.4.1", + "is-stream": "^4.0.1" + }, "engines": { - "node": ">=16" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-stream/node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", + "dev": true, + "engines": { + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -25375,11 +27928,10 @@ } }, "node_modules/get-tsconfig": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.8.1.tgz", - "integrity": "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", "dev": true, - "license": "MIT", "dependencies": { "resolve-pkg-maps": "^1.0.0" }, @@ -25387,19 +27939,40 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, + "node_modules/get-uri": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz", + "integrity": "sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==", + "dev": true, + "dependencies": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.2", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/get-uri/node_modules/data-uri-to-buffer": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/getopts": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/getopts/-/getopts-2.3.0.tgz", "integrity": "sha512-5eDf9fuSXwxBL6q5HX+dhDj+dslFGWzU5thZ9kNKUkcPtaPdatmUFKwHFrLb/uf/WpA4BHET+AX3Scl56cAjpA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/glob": { "version": "10.4.5", "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, - "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -25420,7 +27993,6 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -25428,12 +28000,26 @@ "node": ">= 6" } }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -25443,7 +28029,6 @@ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, - "license": "MIT", "dependencies": { "define-properties": "^1.2.1", "gopd": "^1.0.1" @@ -25460,7 +28045,6 @@ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, - "license": "MIT", "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -25477,13 +28061,12 @@ } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -25493,31 +28076,28 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/graphql": { - "version": "15.8.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", - "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", - "license": "MIT", + "version": "15.10.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.10.1.tgz", + "integrity": "sha512-BL/Xd/T9baO6NFzoMpiMD7YUZ62R6viR5tp/MULVEnbYJXZA//kRNW7J0j1w/wXArgL0sCxhDfK5dczSKn3+cg==", + "dev": true, "engines": { "node": ">= 10.x" } }, "node_modules/graphql-mapping-template": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/graphql-mapping-template/-/graphql-mapping-template-5.0.1.tgz", - "integrity": "sha512-hgFkXUS6Q35zE/uyPGIZYof2kutwTZmVqwJfnQofiCYWRRQS0zjzUdyqmOcCBkbJB4Zi7G7mXcl3fSIs5I5vgA==", - "dev": true, - "license": "Apache-2.0" + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/graphql-mapping-template/-/graphql-mapping-template-5.0.2.tgz", + "integrity": "sha512-Wkhrv4eusKv0n+QRcY9EgwUssOCrkBLyaFcdBrjBIup4mck739IsGuljK7/Q9kBUblzq2oe1yIyLdtiiFeXcrA==", + "dev": true }, "node_modules/graphql-tag": { "version": "2.12.6", "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.1.0" }, @@ -25529,11 +28109,10 @@ } }, "node_modules/graphql-transformer-common": { - "version": "4.31.1", - "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-4.31.1.tgz", - "integrity": "sha512-s+C2S3PrDyuAR0ZDj9vq/DaV3ZUMf04VzacIPrc9wodvtF76Jr4E/ZzXnUAC1dKX96oK3E31W/7jilQoyZj8Rg==", + "version": "4.33.0", + "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-4.33.0.tgz", + "integrity": "sha512-PUdE2eqz//XEKqt/F0Uzp8HoE7yHaMl+xTySZboqW6SwJaBx50UnPEaYnAT8qhDmIftB43YQaiVjzWlkCB5lFw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "graphql": "^15.5.0", "graphql-mapping-template": "4.20.16", @@ -25545,15 +28124,13 @@ "version": "4.20.16", "resolved": "https://registry.npmjs.org/graphql-mapping-template/-/graphql-mapping-template-4.20.16.tgz", "integrity": "sha512-J+shdngmnAxBM4mS4ga2RGusbPRMMO/TfRiNuHNKHxEU8O85us9zC6l7kSQ9hkWQDrKISJfDaesNKO3Jo5GerA==", - "dev": true, - "license": "Apache-2.0" + "dev": true }, "node_modules/handlebars": { "version": "4.7.7", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", "dev": true, - "license": "MIT", "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.0", @@ -25575,17 +28152,18 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", "dev": true, - "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -25595,7 +28173,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -25605,7 +28182,6 @@ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -25614,11 +28190,13 @@ } }, "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", "dev": true, - "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -25627,11 +28205,10 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -25644,7 +28221,6 @@ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, - "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -25660,7 +28236,6 @@ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, - "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -25673,30 +28248,59 @@ "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", "dev": true, - "license": "MIT", "dependencies": { "capital-case": "^1.0.4", "tslib": "^2.0.3" } }, + "node_modules/heap": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", + "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==", + "dev": true + }, "node_modules/hjson": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/hjson/-/hjson-3.2.2.tgz", "integrity": "sha512-MkUeB0cTIlppeSsndgESkfFD21T2nXPRaBStLtf3cAYA2bVEFdXlodZB0TukwZiobPD1Ksax5DK4RTZeaXCI3Q==", "dev": true, - "license": "MIT", "bin": { "hjson": "bin/hjson" } }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.0.tgz", + "integrity": "sha512-/1/GPCpDUCCYwlERiYjxoczfP0zfvZMU/OWgQPMya9AbAE24vseigFdhAMObpc8Q4lc/kjutPfUddDYyAmejnA==", "dev": true, - "license": "Apache-2.0", "engines": { - "node": ">=16.17.0" + "node": ">=18.18.0" } }, "node_modules/iconv-lite": { @@ -25704,7 +28308,6 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, - "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -25715,8 +28318,7 @@ "node_modules/idb": { "version": "5.0.6", "resolved": "https://registry.npmjs.org/idb/-/idb-5.0.6.tgz", - "integrity": "sha512-/PFvOWPzRcEPmlDt5jEvzVZVs0wyd/EvGvkDIcbBpGuMMLQKrTPG0TxvE2UJtgZtCQCmOtM2QD7yQJBVEjKGOw==", - "license": "ISC" + "integrity": "sha512-/PFvOWPzRcEPmlDt5jEvzVZVs0wyd/EvGvkDIcbBpGuMMLQKrTPG0TxvE2UJtgZtCQCmOtM2QD7yQJBVEjKGOw==" }, "node_modules/ieee754": { "version": "1.2.1", @@ -25735,15 +28337,13 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "BSD-3-Clause" + ] }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } @@ -25752,7 +28352,6 @@ "version": "9.0.6", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.6.tgz", "integrity": "sha512-G95ivKpy+EvVAnAab4fVa4YGYn24J1SpEktnJX7JJ45Bd7xqME/SCplFzYFmTbrkwZbQ4xJK1xMTUYBkN6pWsQ==", - "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/immer" @@ -25763,7 +28362,6 @@ "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.6.tgz", "integrity": "sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.8.0" } @@ -25773,7 +28371,6 @@ "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12.2" }, @@ -25785,8 +28382,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/inflected/-/inflected-2.1.0.tgz", "integrity": "sha512-hAEKNxvHf2Iq3H60oMBHkB4wl5jn3TPF3+fXek/sRwAB5gP9xWs4r7aweSF95f99HFoz69pnZTcu8f0SIHV18w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/inflight": { "version": "1.0.6", @@ -25794,7 +28390,6 @@ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, - "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -25808,19 +28403,17 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", "dev": true, - "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" + "hasown": "^2.0.2", + "side-channel": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -25831,7 +28424,6 @@ "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.10" } @@ -25841,17 +28433,28 @@ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "dev": true, - "license": "MIT", "dependencies": { "loose-envify": "^1.0.0" } }, + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dev": true, + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, "node_modules/is-absolute": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", "dev": true, - "license": "MIT", "dependencies": { "is-relative": "^1.0.0", "is-windows": "^1.0.1" @@ -25861,14 +28464,33 @@ } }, "node_modules/is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -25878,27 +28500,40 @@ } }, "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", "dev": true, - "license": "MIT", "dependencies": { - "has-bigints": "^1.0.1" + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -25911,15 +28546,13 @@ "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -25928,24 +28561,28 @@ } }, "node_modules/is-ci": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", - "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-4.1.0.tgz", + "integrity": "sha512-Ab9bQDQ11lWootZUI5qxgN2ZXwxNI5hTwnsvOc1wyxQ7zQ8OkEDw79mI0+9jI3x432NfwbVRru+3noJfXF6lSQ==", "dev": true, - "license": "MIT", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], "dependencies": { - "ci-info": "^3.2.0" + "ci-info": "^4.1.0" }, "bin": { "is-ci": "bin.js" } }, "node_modules/is-core-module": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", - "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, - "license": "MIT", "dependencies": { "hasown": "^2.0.2" }, @@ -25957,12 +28594,13 @@ } }, "node_modules/is-data-view": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", - "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", "dev": true, - "license": "MIT", "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", "is-typed-array": "^1.1.13" }, "engines": { @@ -25973,13 +28611,13 @@ } }, "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -25993,7 +28631,6 @@ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", "dev": true, - "license": "MIT", "bin": { "is-docker": "cli.js" }, @@ -26009,17 +28646,30 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-finite": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" }, @@ -26032,17 +28682,33 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, - "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -26055,7 +28721,6 @@ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", "dev": true, - "license": "MIT", "dependencies": { "is-docker": "^3.0.0" }, @@ -26070,13 +28735,15 @@ } }, "node_modules/is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", + "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-lower-case": { @@ -26084,17 +28751,15 @@ "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-2.0.2.tgz", "integrity": "sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, - "node_modules/is-negative-zero": { + "node_modules/is-map": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -26107,19 +28772,18 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } }, "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -26128,22 +28792,34 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-property": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -26157,7 +28833,6 @@ "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", "dev": true, - "license": "MIT", "dependencies": { "is-unc-path": "^1.0.0" }, @@ -26165,14 +28840,25 @@ "node": ">=0.10.0" } }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7" + "call-bound": "^1.0.3" }, "engines": { "node": ">= 0.4" @@ -26182,26 +28868,25 @@ } }, "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, - "license": "MIT", "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -26211,13 +28896,14 @@ } }, "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", "dev": true, - "license": "MIT", "dependencies": { - "has-symbols": "^1.0.2" + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -26227,13 +28913,12 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", "dev": true, - "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.14" + "which-typed-array": "^1.1.16" }, "engines": { "node": ">= 0.4" @@ -26247,7 +28932,6 @@ "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", "dev": true, - "license": "MIT", "dependencies": { "unc-path-regex": "^0.1.2" }, @@ -26255,24 +28939,65 @@ "node": ">=0.10.0" } }, + "node_modules/is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-upper-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-2.0.2.tgz", "integrity": "sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2" + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -26283,7 +29008,6 @@ "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -26293,7 +29017,6 @@ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dev": true, - "license": "MIT", "dependencies": { "is-docker": "^2.0.0" }, @@ -26306,7 +29029,6 @@ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", "dev": true, - "license": "MIT", "bin": { "is-docker": "cli.js" }, @@ -26318,24 +29040,22 @@ } }, "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "license": "MIT" + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -26350,7 +29070,6 @@ "version": "3.0.5", "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz", "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==", - "license": "MIT", "engines": { "node": ">=14" } @@ -26359,15 +29078,19 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" + "dev": true + }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "dev": true }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -26375,12 +29098,34 @@ "node": ">=4" } }, + "node_modules/json-diff": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/json-diff/-/json-diff-1.0.6.tgz", + "integrity": "sha512-tcFIPRdlc35YkYdGxcamJjllUhXWv4n2rK9oJ2RsAzV4FBkuV4ojKEDgcZ+kpKxDmJKv+PFK65+1tVVOnSeEqA==", + "dev": true, + "dependencies": { + "@ewoudenberg/difflib": "0.1.0", + "colors": "^1.4.0", + "dreamopt": "~0.8.0" + }, + "bin": { + "json-diff": "bin/json-diff.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -26393,7 +29138,6 @@ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, - "license": "MIT", "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -26403,7 +29147,6 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -26413,7 +29156,6 @@ "resolved": "https://registry.npmjs.org/knex/-/knex-2.4.2.tgz", "integrity": "sha512-tMI1M7a+xwHhPxjbl/H9K1kHX+VncEYcvCx5K00M16bWvpYPKAZd6QrCu68PtHAdIZNQPWZn0GVhqVBEthGWCg==", "dev": true, - "license": "MIT", "dependencies": { "colorette": "2.0.19", "commander": "^9.1.0", @@ -26465,7 +29207,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, - "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -26482,15 +29223,61 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/lazystream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", "dev": true, - "license": "MIT" + "dependencies": { + "readable-stream": "^2.0.5" + }, + "engines": { + "node": ">= 0.6.3" + } + }, + "node_modules/lazystream/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/lazystream/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/lazystream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/lazystream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -26501,124 +29288,83 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "license": "MIT" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash-es": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/lodash.mergewith": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/lodash.snakecase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", - "dev": true, - "license": "MIT" + "dev": true }, - "node_modules/log-symbols": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", - "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^2.4.2" - }, - "engines": { - "node": ">=8" - } + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "node_modules/log-symbols": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz", + "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==", "dev": true, - "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "chalk": "^5.3.0", + "is-unicode-supported": "^1.3.0" }, "engines": { - "node": ">=4" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "node": ">=18" }, - "engines": { - "node": ">=4" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "license": "MIT" - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", "dev": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/log-symbols/node_modules/is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true, - "license": "Apache-2.0" + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.1.tgz", + "integrity": "sha512-ka87Jz3gcx/I7Hal94xaN2tZEOPoUOEVftkQqZx2EeQRN7LGdfLlI3FvZ+7WDplm+vK2Urx9ULrvSowtdCieng==", + "dev": true }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, - "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -26631,7 +29377,6 @@ "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -26641,7 +29386,6 @@ "resolved": "https://registry.npmjs.org/lower-case-first/-/lower-case-first-2.0.2.tgz", "integrity": "sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -26651,7 +29395,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -26668,17 +29411,24 @@ "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/md5": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "charenc": "0.0.2", "crypt": "0.0.2", @@ -26689,15 +29439,13 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -26739,7 +29487,6 @@ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -26748,14 +29495,34 @@ "node": ">=8.6" } }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12" + "node": ">=6" + } + }, + "node_modules/mimic-function": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", + "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", + "dev": true, + "engines": { + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -26766,7 +29533,6 @@ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -26775,20 +29541,18 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -26799,7 +29563,6 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -26809,26 +29572,32 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, - "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } }, + "node_modules/mnemonist": { + "version": "0.38.3", + "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.3.tgz", + "integrity": "sha512-2K9QYubXx/NAjv4VLq1d1Ly8pWNC5L3BrixtdkyTegXWJIqY+zLNDhhX/A+ZwWt70tB1S8H4BE8FLYEFyNoOBw==", + "dev": true, + "dependencies": { + "obliterator": "^1.6.1" + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/mute-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", - "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", "dev": true, - "license": "ISC", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/mysql2": { @@ -26836,7 +29605,6 @@ "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.9.9.tgz", "integrity": "sha512-Qtb2RUxwWMFkWXqF7Rd/7ySkupbQnNY7O0zQuQYgPcuJZ06M36JG3HIDEh/pEeq7LImcvA6O3lOVQ9XQK+HEZg==", "dev": true, - "license": "MIT", "dependencies": { "denque": "^2.1.0", "generate-function": "^2.3.1", @@ -26856,7 +29624,6 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, - "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -26869,7 +29636,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.5.tgz", "integrity": "sha512-MhWWlVnuab1RG5/zMRRcVGXZLCXrZTgfwMikgzCegsPnG62yDQo5JnqKkrK4jO5iKqDAZGItAqN5CtKBCBWRUA==", "dev": true, - "license": "ISC", "engines": { "node": ">=16.14" } @@ -26879,7 +29645,6 @@ "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.3.tgz", "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", "dev": true, - "license": "MIT", "dependencies": { "lru-cache": "^7.14.1" }, @@ -26892,7 +29657,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } @@ -26901,22 +29665,28 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz", "integrity": "sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">= 0.4.0" + } }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", "dev": true, - "license": "MIT", "dependencies": { "lower-case": "^2.0.2", "tslib": "^2.0.3" @@ -26934,8 +29704,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/node-domexception": { "version": "1.0.0", @@ -26952,7 +29721,6 @@ "url": "https://paypal.me/jimmywarting" } ], - "license": "MIT", "engines": { "node": ">=10.5.0" } @@ -26962,7 +29730,6 @@ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", "dev": true, - "license": "MIT", "dependencies": { "data-uri-to-buffer": "^4.0.0", "fetch-blob": "^3.1.4", @@ -26980,27 +29747,34 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.10.0" + } }, "node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz", + "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==", "dev": true, - "license": "MIT", "dependencies": { - "path-key": "^4.0.0" + "path-key": "^4.0.0", + "unicorn-magic": "^0.3.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -27011,7 +29785,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -27023,15 +29796,13 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -27041,17 +29812,15 @@ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/object-inspect": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", - "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -27064,21 +29833,21 @@ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", "object-keys": "^1.1.1" }, "engines": { @@ -27088,27 +29857,31 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/obliterator": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-1.6.1.tgz", + "integrity": "sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig==", + "dev": true + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, - "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", + "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", "dev": true, - "license": "MIT", "dependencies": { - "mimic-fn": "^4.0.0" + "mimic-function": "^5.0.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -27119,7 +29892,6 @@ "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", "dev": true, - "license": "MIT", "dependencies": { "default-browser": "^4.0.0", "define-lazy-prop": "^3.0.0", @@ -27134,56 +29906,126 @@ } }, "node_modules/ora": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-4.1.1.tgz", - "integrity": "sha512-sjYP8QyVWBpBZWD6Vr1M/KwknSw6kJOz41tvGMlwWeClHBtYKTbHMki1PsLZnxKpXMPbTKv9b3pjQu3REib96A==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz", + "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==", "dev": true, - "license": "MIT", "dependencies": { - "chalk": "^3.0.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.2.0", - "is-interactive": "^1.0.0", - "log-symbols": "^3.0.0", - "mute-stream": "0.0.8", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" + "chalk": "^5.3.0", + "cli-cursor": "^5.0.0", + "cli-spinners": "^2.9.2", + "is-interactive": "^2.0.0", + "is-unicode-supported": "^2.0.0", + "log-symbols": "^6.0.0", + "stdin-discarder": "^0.2.2", + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ora/node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "node_modules/ora/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, - "license": "ISC" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "dev": true + }, + "node_modules/ora/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } }, "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -27194,7 +30036,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -27202,29 +30043,73 @@ "node": ">=8" } }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=6" + } + }, + "node_modules/pac-proxy-agent": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", + "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", + "dev": true, + "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.6", + "pac-resolver": "^7.0.1", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-resolver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", + "dev": true, + "dependencies": { + "degenerator": "^5.0.0", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 14" } }, "node_modules/package-json-from-dist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "license": "BlueOak-1.0.0" + "dev": true }, "node_modules/param-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", "dev": true, - "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -27235,7 +30120,6 @@ "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", "dev": true, - "license": "MIT", "dependencies": { "is-absolute": "^1.0.0", "map-cache": "^0.2.0", @@ -27250,17 +30134,27 @@ "resolved": "https://registry.npmjs.org/parse-gitignore/-/parse-gitignore-2.0.0.tgz", "integrity": "sha512-RmVuCHWsfu0QPNW+mraxh/xjQVw/lhUCUru8Zni3Ctq3AoMhpDTq0OVdKS6iesd6Kqb7viCV3isAL43dciOSog==", "dev": true, - "license": "MIT", "engines": { "node": ">=14" } }, + "node_modules/parse-ms": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz", + "integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/pascal-case": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" @@ -27271,7 +30165,6 @@ "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", "dev": true, - "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -27282,7 +30175,6 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -27292,7 +30184,6 @@ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -27302,7 +30193,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -27311,15 +30201,13 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", "dev": true, - "license": "MIT", "dependencies": { "path-root-regex": "^0.1.0" }, @@ -27332,7 +30220,6 @@ "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -27342,7 +30229,6 @@ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -27358,15 +30244,13 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -27376,7 +30260,6 @@ "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.6.tgz", "integrity": "sha512-6CyL4F0j3vPmakU9rWdeRY8qF5Cjc3OE86y6YpgDI6YtKHhNyCjGEIE8U5ZRfBjKTZikwolKIFWh3I22MeRnoA==", "dev": true, - "license": "MIT", "dependencies": { "pg-connection-string": "^2.6.4", "pg-pool": "^3.6.2", @@ -27404,49 +30287,43 @@ "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz", "integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==", "dev": true, - "license": "MIT", "optional": true }, "node_modules/pg-connection-string": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.5.0.tgz", "integrity": "sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/pg-int8": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", "dev": true, - "license": "ISC", "engines": { "node": ">=4.0.0" } }, "node_modules/pg-pool": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.7.0.tgz", - "integrity": "sha512-ZOBQForurqh4zZWjrgSwwAtzJ7QiRX0ovFkZr2klsen3Nm0aoh33Ls0fzfv3imeH/nw/O27cjdz5kzYJfeGp/g==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.8.0.tgz", + "integrity": "sha512-VBw3jiVm6ZOdLBTIcXLNdSotb6Iy3uOCwDGFAksZCXmi10nyRvnP2v3jl4d+IsLYRyXf6o9hIm/ZtUzlByNUdw==", "dev": true, - "license": "MIT", "peerDependencies": { "pg": ">=8.0" } }, "node_modules/pg-protocol": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.7.0.tgz", - "integrity": "sha512-hTK/mE36i8fDDhgDFjy6xNOG+LCorxLG3WO17tku+ij6sVHXh1jQUJ8hYAnRhNla4QVD2H8er/FOjc/+EgC6yQ==", - "dev": true, - "license": "MIT" + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.8.0.tgz", + "integrity": "sha512-jvuYlEkL03NRvOoyoRktBK7+qU5kOvlAwvmrH8sr3wbLrOdVWsRxQfz8mMy9sZFsqJ1hEWNfdWKI4SAmoL+j7g==", + "dev": true }, "node_modules/pg-types": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", "dev": true, - "license": "MIT", "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", @@ -27462,15 +30339,13 @@ "version": "2.7.0", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz", "integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/pgpass": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", "dev": true, - "license": "MIT", "dependencies": { "split2": "^4.1.0" } @@ -27483,15 +30358,13 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -27504,17 +30377,15 @@ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" } @@ -27524,7 +30395,6 @@ "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -27534,7 +30404,6 @@ "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz", "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -27544,7 +30413,6 @@ "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -27554,7 +30422,6 @@ "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", "dev": true, - "license": "MIT", "dependencies": { "xtend": "^4.0.0" }, @@ -27563,37 +30430,107 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", "dev": true, - "license": "MIT", "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/pretty-ms": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.2.0.tgz", + "integrity": "sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==", + "dev": true, + "dependencies": { + "parse-ms": "^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, "node_modules/promise": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "dev": true, - "license": "MIT", "dependencies": { "asap": "~2.0.3" } }, + "node_modules/promptly": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/promptly/-/promptly-3.2.0.tgz", + "integrity": "sha512-WnR9obtgW+rG4oUV3hSnNGl1pHm3V1H/qD9iJBumGSmVsSC5HpZOLuu8qdMb6yCItGfT7dcRszejr/5P3i9Pug==", + "dev": true, + "dependencies": { + "read": "^1.0.4" + } + }, "node_modules/property-expr": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz", "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==", + "dev": true + }, + "node_modules/proxy-agent": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", + "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", "dev": true, - "license": "MIT" + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.6", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.1.0", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -27613,15 +30550,13 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { "loose-envify": "^1.1.0" @@ -27635,7 +30570,6 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { "loose-envify": "^1.1.0", @@ -27645,12 +30579,29 @@ "react": "^18.3.1" } }, + "node_modules/read": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", + "integrity": "sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ==", + "dev": true, + "dependencies": { + "mute-stream": "~0.0.4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/read/node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -27660,12 +30611,44 @@ "node": ">= 6" } }, + "node_modules/readdir-glob": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", + "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "dev": true, + "dependencies": { + "minimatch": "^5.1.0" + } + }, + "node_modules/readdir-glob/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, "node_modules/rechoir": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", "dev": true, - "license": "MIT", "dependencies": { "resolve": "^1.20.0" }, @@ -27673,23 +30656,45 @@ "node": ">= 10.13.0" } }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/regenerator-runtime": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/regexp.prototype.flags": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.3.tgz", - "integrity": "sha512-vqlC04+RQoFalODCbCumG2xIOvapzVMHwsyIGM/SIE8fRhFFsXeH8/QQ+s0T0kDAhKc4k30s73/0ydkHQz6HlQ==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", "set-function-name": "^2.0.2" }, "engines": { @@ -27704,7 +30709,6 @@ "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-12.0.0.tgz", "integrity": "sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==", "dev": true, - "license": "MIT", "dependencies": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.0", @@ -27716,7 +30720,6 @@ "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", "integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==", "dev": true, - "license": "MIT", "dependencies": { "is-finite": "^1.0.0" }, @@ -27729,7 +30732,15 @@ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -27738,23 +30749,24 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dev": true, - "license": "MIT", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -27764,7 +30776,6 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -27774,64 +30785,31 @@ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/restore-cursor/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/restore-cursor/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", + "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", "dev": true, - "license": "MIT", "dependencies": { - "mimic-fn": "^2.1.0" + "onetime": "^7.0.0", + "signal-exit": "^4.1.0" }, "engines": { - "node": ">=6" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/restore-cursor/node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" - }, "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", "dev": true, - "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -27843,7 +30821,6 @@ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -27859,7 +30836,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -27871,7 +30847,6 @@ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -27892,7 +30867,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -27905,7 +30879,6 @@ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", "dev": true, - "license": "MIT", "dependencies": { "execa": "^5.0.0" }, @@ -27921,9 +30894,8 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.6", + "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", @@ -27945,7 +30917,6 @@ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -27953,37 +30924,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/run-applescript/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/run-applescript/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/mimic-fn": { + "node_modules/run-applescript/node_modules/human-signals": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=10.17.0" } }, "node_modules/run-applescript/node_modules/npm-run-path": { @@ -27991,7 +30938,6 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -28004,7 +30950,6 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -28019,29 +30964,17 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/run-applescript/node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/run-async": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz", - "integrity": "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -28061,30 +30994,28 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } }, "node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", - "license": "Apache-2.0", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/safe-array-concat": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", - "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", "isarray": "^2.0.5" }, "engines": { @@ -28094,13 +31025,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safe-array-concat/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "license": "MIT" - }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -28119,19 +31043,33 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", - "is-regex": "^1.1.4" + "is-regex": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -28144,26 +31082,23 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { "loose-envify": "^1.1.0" } }, "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -28176,7 +31111,6 @@ "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -28189,305 +31123,112 @@ "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==", "dev": true }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true, - "license": "ISC" - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", - "dev": true, - "license": "MIT" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/signedsource": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/signedsource/-/signedsource-1.0.0.tgz", - "integrity": "sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/snake-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", - "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", - "dev": true, - "license": "MIT", - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, - "node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/sponge-case": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/sponge-case/-/sponge-case-1.0.1.tgz", - "integrity": "sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/sqlstring": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", - "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/stream-shift": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", - "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, "engines": { - "node": ">=10.0.0" + "node": ">= 0.4" } }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", "dev": true, - "license": "MIT", "dependencies": { - "safe-buffer": "~5.2.0" + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", "dev": true, - "license": "MIT", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 0.4" } }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", + "dev": true + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "shebang-regex": "^3.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" + "node": ">=8" } }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-regex": "^6.0.1" + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" }, "engines": { - "node": ">=12" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/string.prototype.trim": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", - "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" }, "engines": { "node": ">= 0.4" @@ -28496,31 +31237,35 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/string.prototype.trimend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", - "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -28529,661 +31274,579 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" + "engines": { + "node": ">=14" }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/signedsource": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/signedsource/-/signedsource-1.0.0.tgz", + "integrity": "sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 6.0.0", + "npm": ">= 3.0.0" } }, - "node_modules/strip-indent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "node_modules/snake-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", + "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", "dev": true, - "license": "MIT", "dependencies": { - "min-indent": "^1.0.0" + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/socks": { + "version": "2.8.4", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz", + "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==", + "dev": true, + "dependencies": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" }, "engines": { - "node": ">=8" + "node": ">= 10.0.0", + "npm": ">= 3.0.0" } }, - "node_modules/strnum": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", - "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", - "license": "MIT" - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/socks-proxy-agent": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", "dev": true, - "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" }, "engines": { - "node": ">=8" + "node": ">= 14" } }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, - "node_modules/swap-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-2.0.2.tgz", - "integrity": "sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==", + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, - "license": "MIT", "dependencies": { - "tslib": "^2.0.3" + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/tarn": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/tarn/-/tarn-3.0.2.tgz", - "integrity": "sha512-51LAVKUSZSVfI05vjPESNc5vwqqZpbXCsU+/+wxlOrUjk2SnFTt97v9ZgQrD4YmxYW1Px6w2KjaDitCfkvgxMQ==", + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8.0.0" + "node": ">=0.10.0" } }, - "node_modules/tildify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/tildify/-/tildify-2.0.0.tgz", - "integrity": "sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==", + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 10.x" } }, - "node_modules/title-case": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", - "integrity": "sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==", + "node_modules/sponge-case": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sponge-case/-/sponge-case-1.0.1.tgz", + "integrity": "sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, - "node_modules/titleize": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", - "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true + }, + "node_modules/sqlstring": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12" + "node": ">= 0.6" + } + }, + "node_modules/stdin-discarder": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", + "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==", + "dev": true, + "engines": { + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "node_modules/stream-browserify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", + "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", "dev": true, - "license": "MIT", "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" + "inherits": "~2.0.4", + "readable-stream": "^3.5.0" } }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "dev": true + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": ">=10.0.0" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "node_modules/streamx": { + "version": "2.22.0", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.0.tgz", + "integrity": "sha512-sLh1evHOzBy/iWRiR6d1zRcLao4gGZr3C1kzNz4fopCOKJb6xD9ub8Mpi9Mr1R6id5o43S+d93fI48UC5uM9aw==", "dev": true, - "license": "MIT", "dependencies": { - "is-number": "^7.0.0" + "fast-fifo": "^1.3.2", + "text-decoder": "^1.1.0" }, - "engines": { - "node": ">=8.0" + "optionalDependencies": { + "bare-events": "^2.2.0" } }, - "node_modules/toposort": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", - "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==", - "dev": true, - "license": "MIT" - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true, - "license": "MIT" - }, - "node_modules/trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==", + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "safe-buffer": "~5.2.0" } }, - "node_modules/ts-dedent": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-1.2.0.tgz", - "integrity": "sha512-6zSJp23uQI+Txyz5LlXMXAHpUhY4Hi0oluXny0OgIR7g/Cromq4vDBnhtbBdyIV34g0pgwxUvnvg+jLJe4c1NA==", + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, "engines": { - "node": ">=6.10" + "node": ">=8" } }, - "node_modules/tslib": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", - "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", - "license": "0BSD" - }, - "node_modules/tsx": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.1.tgz", - "integrity": "sha512-0flMz1lh74BR4wOvBjuh9olbnwqCPc35OOlfyzHba0Dc+QNUeWX/Gq2YTbnwcWPO3BMd8fkzRVrHcsR+a7z7rA==", + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { - "esbuild": "~0.23.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/aix-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz", - "integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==", - "cpu": [ - "ppc64" - ], + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", "dev": true, - "optional": true, - "os": [ - "aix" - ], + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, "engines": { - "node": ">=18" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/tsx/node_modules/@esbuild/android-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.1.tgz", - "integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==", - "cpu": [ - "arm" - ], + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", "dev": true, - "optional": true, - "os": [ - "android" - ], + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, "engines": { - "node": ">=18" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/tsx/node_modules/@esbuild/android-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz", - "integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==", - "cpu": [ - "arm64" - ], + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", "dev": true, - "optional": true, - "os": [ - "android" - ], + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, "engines": { - "node": ">=18" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/tsx/node_modules/@esbuild/android-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.1.tgz", - "integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==", - "cpu": [ - "x64" - ], + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "optional": true, - "os": [ - "android" - ], + "dependencies": { + "ansi-regex": "^5.0.1" + }, "engines": { - "node": ">=18" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/darwin-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz", - "integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==", - "cpu": [ - "arm64" - ], + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "dependencies": { + "ansi-regex": "^5.0.1" + }, "engines": { - "node": ">=18" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/darwin-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz", - "integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==", - "cpu": [ - "x64" - ], + "node_modules/strip-final-newline": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz", + "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], "engines": { "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz", - "integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==", - "cpu": [ - "arm64" - ], + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "dependencies": { + "min-indent": "^1.0.0" + }, "engines": { - "node": ">=18" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/freebsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz", - "integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==", - "cpu": [ - "x64" - ], + "node_modules/strnum": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz", + "integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ] + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { - "node": ">=18" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/linux-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz", - "integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==", - "cpu": [ - "arm" - ], + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=18" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/tsx/node_modules/@esbuild/linux-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz", - "integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==", - "cpu": [ - "arm64" - ], + "node_modules/swap-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-2.0.2.tgz", + "integrity": "sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" + "dependencies": { + "tslib": "^2.0.3" } }, - "node_modules/tsx/node_modules/@esbuild/linux-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz", - "integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==", - "cpu": [ - "ia32" - ], + "node_modules/sync-fetch": { + "version": "0.6.0-2", + "resolved": "https://registry.npmjs.org/sync-fetch/-/sync-fetch-0.6.0-2.tgz", + "integrity": "sha512-c7AfkZ9udatCuAy9RSfiGPpeOKKUAUK5e1cXadLOGUjasdxqYqAK0jTNkM/FSEyJ3a5Ra27j/tw/PS0qLmaF/A==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "node-fetch": "^3.3.2", + "timeout-signal": "^2.0.0", + "whatwg-mimetype": "^4.0.0" + }, "engines": { "node": ">=18" } }, - "node_modules/tsx/node_modules/@esbuild/linux-loong64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz", - "integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==", - "cpu": [ - "loong64" - ], + "node_modules/table": { + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz", + "integrity": "sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, "engines": { - "node": ">=18" + "node": ">=10.0.0" } }, - "node_modules/tsx/node_modules/@esbuild/linux-mips64el": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz", - "integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==", - "cpu": [ - "mips64el" - ], + "node_modules/tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" + "dependencies": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" } }, - "node_modules/tsx/node_modules/@esbuild/linux-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz", - "integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==", - "cpu": [ - "ppc64" - ], + "node_modules/tarn": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/tarn/-/tarn-3.0.2.tgz", + "integrity": "sha512-51LAVKUSZSVfI05vjPESNc5vwqqZpbXCsU+/+wxlOrUjk2SnFTt97v9ZgQrD4YmxYW1Px6w2KjaDitCfkvgxMQ==", "dev": true, - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=18" + "node": ">=8.0.0" } }, - "node_modules/tsx/node_modules/@esbuild/linux-riscv64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz", - "integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==", - "cpu": [ - "riscv64" - ], + "node_modules/text-decoder": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", + "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" + "dependencies": { + "b4a": "^1.6.4" } }, - "node_modules/tsx/node_modules/@esbuild/linux-s390x": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz", - "integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==", - "cpu": [ - "s390x" - ], + "node_modules/tildify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tildify/-/tildify-2.0.0.tgz", + "integrity": "sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==", "dev": true, - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=18" + "node": ">=8" } }, - "node_modules/tsx/node_modules/@esbuild/linux-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz", - "integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==", - "cpu": [ - "x64" - ], + "node_modules/timeout-signal": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/timeout-signal/-/timeout-signal-2.0.0.tgz", + "integrity": "sha512-YBGpG4bWsHoPvofT6y/5iqulfXIiIErl5B0LdtHT1mGXDFTAhhRrbUpTvBgYbovr+3cKblya2WAOcpoy90XguA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=18" + "node": ">=16" } }, - "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz", - "integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==", - "cpu": [ - "x64" - ], + "node_modules/title-case": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", + "integrity": "sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==", "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" + "dependencies": { + "tslib": "^2.0.3" } }, - "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz", - "integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==", - "cpu": [ - "arm64" - ], + "node_modules/titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", "dev": true, - "optional": true, - "os": [ - "openbsd" - ], "engines": { - "node": ">=18" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz", - "integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==", - "cpu": [ - "x64" - ], + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, - "optional": true, - "os": [ - "openbsd" - ], + "dependencies": { + "os-tmpdir": "~1.0.2" + }, "engines": { - "node": ">=18" + "node": ">=0.6.0" } }, - "node_modules/tsx/node_modules/@esbuild/sunos-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz", - "integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==", - "cpu": [ - "x64" - ], + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true, - "optional": true, - "os": [ - "sunos" - ], "engines": { - "node": ">=18" + "node": ">=4" } }, - "node_modules/tsx/node_modules/@esbuild/win32-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz", - "integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==", - "cpu": [ - "arm64" - ], + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "optional": true, - "os": [ - "win32" - ], + "dependencies": { + "is-number": "^7.0.0" + }, "engines": { - "node": ">=18" + "node": ">=8.0" } }, - "node_modules/tsx/node_modules/@esbuild/win32-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz", - "integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==", - "cpu": [ - "ia32" - ], + "node_modules/toposort": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", + "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==", + "dev": true + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true + }, + "node_modules/trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==", "dev": true, - "optional": true, - "os": [ - "win32" - ], "engines": { - "node": ">=18" + "node": ">=0.10.0" } }, - "node_modules/tsx/node_modules/@esbuild/win32-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz", - "integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==", - "cpu": [ - "x64" - ], + "node_modules/ts-dedent": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-1.2.0.tgz", + "integrity": "sha512-6zSJp23uQI+Txyz5LlXMXAHpUhY4Hi0oluXny0OgIR7g/Cromq4vDBnhtbBdyIV34g0pgwxUvnvg+jLJe4c1NA==", "dev": true, - "optional": true, - "os": [ - "win32" - ], "engines": { - "node": ">=18" + "node": ">=6.10" } }, - "node_modules/tsx/node_modules/esbuild": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", - "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" + }, + "node_modules/tsx": { + "version": "4.19.3", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz", + "integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==", "dev": true, - "hasInstallScript": true, + "dependencies": { + "esbuild": "~0.25.0", + "get-tsconfig": "^4.7.5" + }, "bin": { - "esbuild": "bin/esbuild" + "tsx": "dist/cli.mjs" }, "engines": { - "node": ">=18" + "node": ">=18.0.0" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.23.1", - "@esbuild/android-arm": "0.23.1", - "@esbuild/android-arm64": "0.23.1", - "@esbuild/android-x64": "0.23.1", - "@esbuild/darwin-arm64": "0.23.1", - "@esbuild/darwin-x64": "0.23.1", - "@esbuild/freebsd-arm64": "0.23.1", - "@esbuild/freebsd-x64": "0.23.1", - "@esbuild/linux-arm": "0.23.1", - "@esbuild/linux-arm64": "0.23.1", - "@esbuild/linux-ia32": "0.23.1", - "@esbuild/linux-loong64": "0.23.1", - "@esbuild/linux-mips64el": "0.23.1", - "@esbuild/linux-ppc64": "0.23.1", - "@esbuild/linux-riscv64": "0.23.1", - "@esbuild/linux-s390x": "0.23.1", - "@esbuild/linux-x64": "0.23.1", - "@esbuild/netbsd-x64": "0.23.1", - "@esbuild/openbsd-arm64": "0.23.1", - "@esbuild/openbsd-x64": "0.23.1", - "@esbuild/sunos-x64": "0.23.1", - "@esbuild/win32-arm64": "0.23.1", - "@esbuild/win32-ia32": "0.23.1", - "@esbuild/win32-x64": "0.23.1" + "fsevents": "~2.3.3" } }, "node_modules/tsx/node_modules/fsevents": { @@ -29192,7 +31855,6 @@ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -29206,7 +31868,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -29215,32 +31876,30 @@ } }, "node_modules/typed-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", - "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" } }, "node_modules/typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" @@ -29250,18 +31909,18 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", "dev": true, - "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" }, "engines": { "node": ">= 0.4" @@ -29271,18 +31930,17 @@ } }, "node_modules/typed-array-length": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", - "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-proto": "^1.0.3", "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" }, "engines": { "node": ">= 0.4" @@ -29292,11 +31950,10 @@ } }, "node_modules/typescript": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", - "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -29306,9 +31963,9 @@ } }, "node_modules/ua-parser-js": { - "version": "1.0.39", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.39.tgz", - "integrity": "sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw==", + "version": "1.0.40", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.40.tgz", + "integrity": "sha512-z6PJ8Lml+v3ichVojCiB8toQJBuwR42ySM4ezjXIqXK3M0HczmKQ3LF4rhU55PfD99KEEXQG6yb7iOMyvYuHew==", "dev": true, "funding": [ { @@ -29324,7 +31981,6 @@ "url": "https://github.com/sponsors/faisalman" } ], - "license": "MIT", "bin": { "ua-parser-js": "script/cli.js" }, @@ -29337,7 +31993,6 @@ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", "dev": true, - "license": "BSD-2-Clause", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -29347,25 +32002,26 @@ } }, "node_modules/ulid": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz", - "integrity": "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==", - "license": "MIT", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.4.0.tgz", + "integrity": "sha512-fIRiVTJNcSRmXKPZtGzFQv9WRrZ3M9eoptl/teFJvjOzmpU+/K/JH6HZ8deBfb5vMEpicJcLn7JmvdknlMq7Zg==", "bin": { "ulid": "bin/cli.js" } }, "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", + "call-bound": "^1.0.3", "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -29376,24 +32032,33 @@ "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "dev": true + }, + "node_modules/unicorn-magic": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", + "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4.0.0" } @@ -29403,15 +32068,14 @@ "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/update-browserslist-db": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", - "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", "dev": true, "funding": [ { @@ -29427,10 +32091,9 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { "escalade": "^3.2.0", - "picocolors": "^1.1.0" + "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -29444,7 +32107,6 @@ "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -29454,7 +32116,6 @@ "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -29463,8 +32124,7 @@ "version": "10.0.0", "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz", "integrity": "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/username-login-mfa": { "resolved": "backends/auth/username-login-mfa", @@ -29474,8 +32134,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/uuid": { "version": "9.0.1", @@ -29485,7 +32144,6 @@ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], - "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -29495,7 +32153,6 @@ "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.12.tgz", "integrity": "sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" } @@ -29505,7 +32162,6 @@ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", "dev": true, - "license": "MIT", "dependencies": { "defaults": "^1.0.3" } @@ -29515,7 +32171,6 @@ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -29524,15 +32179,22 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "node_modules/whatwg-mimetype": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", + "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", "dev": true, - "license": "BSD-2-Clause" + "engines": { + "node": ">=18" + } }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "dev": true, - "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -29543,7 +32205,6 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -29555,17 +32216,64 @@ } }, "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", "dev": true, - "license": "MIT", "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -29575,20 +32283,20 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", "dev": true, - "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" }, "engines": { @@ -29602,22 +32310,23 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/wrap-ansi-cjs": { @@ -29626,7 +32335,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -29639,63 +32347,17 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.4" } @@ -29705,7 +32367,6 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } @@ -29714,15 +32375,22 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true, - "license": "ISC" + "engines": { + "node": ">= 6" + } }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -29741,31 +32409,44 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/yoctocolors": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.1.tgz", + "integrity": "sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==", "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "engines": { + "node": ">=18" }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yoctocolors-cjs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", + "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/yup": { @@ -29773,7 +32454,6 @@ "resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz", "integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/runtime": "^7.15.4", "@types/lodash": "^4.14.175", @@ -29787,12 +32467,65 @@ "node": ">=10" } }, + "node_modules/zip-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz", + "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==", + "dev": true, + "dependencies": { + "archiver-utils": "^5.0.0", + "compress-commons": "^6.0.2", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/zip-stream/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/zip-stream/node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/zod": { - "version": "3.23.8", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", - "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", + "version": "3.24.2", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", + "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/infra-gen2/package.json b/infra-gen2/package.json index 2fc7bf57eb..4f44c32517 100644 --- a/infra-gen2/package.json +++ b/infra-gen2/package.json @@ -16,12 +16,12 @@ "infra-common": "1.0.0" }, "devDependencies": { - "@aws-amplify/backend": "^1.6.2", - "@aws-amplify/backend-cli": "^1.4.1", - "@aws-crypto/client-node": "^4.0.0", - "@aws-sdk/client-cognito-identity-provider": "^3.614.0", - "aws-cdk": "^2.150.0", - "aws-cdk-lib": "^2.177.0", + "@aws-amplify/backend": "^1.15.0", + "@aws-amplify/backend-cli": "^1.5.0", + "@aws-crypto/client-node": "^4.2.0", + "@aws-sdk/client-cognito-identity-provider": "^3.775.0", + "aws-cdk": "^2.1006.0", + "aws-cdk-lib": "^2.186.0", "constructs": "^10.3.0", "esbuild": "^0.25.0", "tsx": "^4.16.2", diff --git a/infra-gen2/pubspec.yaml b/infra-gen2/pubspec.yaml index 0e4bf117af..1e17576731 100644 --- a/infra-gen2/pubspec.yaml +++ b/infra-gen2/pubspec.yaml @@ -2,7 +2,7 @@ name: infra_gen2 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_core: any diff --git a/infra-gen2/tool/deploy_gen2.dart b/infra-gen2/tool/deploy_gen2.dart index b83efb7c60..127ac8d968 100644 --- a/infra-gen2/tool/deploy_gen2.dart +++ b/infra-gen2/tool/deploy_gen2.dart @@ -160,8 +160,9 @@ void main(List arguments) async { final categoryName = backendGroup.category.name; final outputPath = p.join(repoRoot.path, backendGroup.defaultOutput); final amplifyOutputs = File(p.join(outputPath, 'amplify_outputs.dart')); - final amplifyConfiguration = - File(p.join(outputPath, 'amplifyconfiguration.dart')); + final amplifyConfiguration = File( + p.join(outputPath, 'amplifyconfiguration.dart'), + ); // create the output file if it does not exist if (!amplifyOutputs.existsSync()) { @@ -196,27 +197,20 @@ void main(List arguments) async { // Cache the config contents to create environments map amplifyEnvironments = { ...amplifyEnvironments, - ..._cacheConfigContents( - backendName, - amplifyOutputs, - ), + ..._cacheConfigContents(backendName, amplifyOutputs), }; } // Only append environments if there are multiple backends if (backendGroup.backends.length > 1) { - _appendEnvironments( - amplifyEnvironments, - backendGroup, - amplifyOutputs, - ); + _appendEnvironments(amplifyEnvironments, backendGroup, amplifyOutputs); } // Copy config files to shared paths - _copyConfigFile( - backendGroup.sharedOutputs, - [amplifyOutputs, amplifyConfiguration], - ); + _copyConfigFile(backendGroup.sharedOutputs, [ + amplifyOutputs, + amplifyConfiguration, + ]); // Check if the S3 bucket exists var bucketName = _createBucketName(categoryName); @@ -230,10 +224,7 @@ void main(List arguments) async { bucketNames.add(bucketName); // Upload config files to S3 bucket - _uploadConfigFileToS3( - bucketName, - [amplifyOutputs, amplifyConfiguration], - ); + _uploadConfigFileToS3(bucketName, [amplifyOutputs, amplifyConfiguration]); print('✅ Deployment for $categoryName Category complete'); } @@ -244,30 +235,25 @@ void main(List arguments) async { } Future _buildProject() async { - return Process.start( - 'npm', - [ - 'run', - 'build', - ], - ); + return Process.start('npm', ['run', 'build']); } ArgResults _parseArgs(List args) { - final parser = ArgParser() - ..addFlag( - 'verbose', - abbr: 'v', - help: 'Run command in verbose mode', - defaultsTo: false, - ) - ..addOption( - 'category', - abbr: 'c', - help: 'Specify the category to deploy.', - allowed: Category.values.map((e) => e.name).toList(), - defaultsTo: null, - ); + final parser = + ArgParser() + ..addFlag( + 'verbose', + abbr: 'v', + help: 'Run command in verbose mode', + defaultsTo: false, + ) + ..addOption( + 'category', + abbr: 'c', + help: 'Specify the category to deploy.', + allowed: Category.values.map((e) => e.name).toList(), + defaultsTo: null, + ); return parser.parse(args); } @@ -284,22 +270,18 @@ Future _deployBackend( ); // Deploy the backend - final process = await Process.start( - 'npx', - [ - 'ampx', - 'sandbox', - '--outputs-format', - 'dart', - '--outputs-out-dir', - outputPath, - '--identifier', - backend.identifier, - '--profile=${Platform.environment['AWS_PROFILE'] ?? 'default'}', - '--once', - ], - workingDirectory: p.join(repoRoot.path, backend.pathToSource), - ); + final process = await Process.start('npx', [ + 'ampx', + 'sandbox', + '--outputs-format', + 'dart', + '--outputs-out-dir', + outputPath, + '--identifier', + backend.identifier, + '--profile=${Platform.environment['AWS_PROFILE'] ?? 'default'}', + '--once', + ], workingDirectory: p.join(repoRoot.path, backend.pathToSource)); if (verbose) { process.stderr.transform(const SystemEncoding().decoder).listen((data) { @@ -329,9 +311,7 @@ Future _deployBackend( '❌ Error deploying ${category.name} ${backend.identifier} sandbox', ); } else { - print( - '👍 ${category.name} ${backend.identifier} sandbox deployed', - ); + print('👍 ${category.name} ${backend.identifier} sandbox deployed'); return stackID; } } @@ -354,9 +334,7 @@ Map _cacheConfigContents( final exp = RegExp(r"'''(.*?)'''", dotAll: true); final configMap = exp.firstMatch(rawConfigContent)?.group(1) ?? ''; - return { - backendName: '\'\'\'$configMap\'\'\'', - }; + return {backendName: '\'\'\'$configMap\'\'\''}; } /// Append the environments to amplify_outputs.dart @@ -385,10 +363,7 @@ void _appendEnvironments( } /// Copy a given config file to a list of shared paths -void _copyConfigFile( - List outputPaths, - List configFiles, -) { +void _copyConfigFile(List outputPaths, List configFiles) { if (outputPaths.length <= 1) { return; } @@ -484,10 +459,7 @@ void _createS3Bucket(String bucketName) { } /// Upload the amplify_outputs.dart file to the S3 bucket -void _uploadConfigFileToS3( - String bucketName, - List configFiles, -) { +void _uploadConfigFileToS3(String bucketName, List configFiles) { for (final configFile in configFiles) { final fileName = configFile.path.split('/').last; print('📲 Uploading $fileName to S3 bucket'); @@ -525,26 +497,22 @@ void _generateGen1Config( ); // Deploy the backend - final process = Process.runSync( - 'npx', - [ - 'ampx', - 'generate', - 'outputs', - '--format', - 'dart', - '--outputs-version', - '0', - '--out-dir', - outputPath, - '--profile=${Platform.environment['AWS_PROFILE'] ?? 'default'}', - '--stack', - stack, - '--debug', - 'true', - ], - workingDirectory: p.join(repoRoot.path, backend.pathToSource), - ); + final process = Process.runSync('npx', [ + 'ampx', + 'generate', + 'outputs', + '--format', + 'dart', + '--outputs-version', + '0', + '--out-dir', + outputPath, + '--profile=${Platform.environment['AWS_PROFILE'] ?? 'default'}', + '--stack', + stack, + '--debug', + 'true', + ], workingDirectory: p.join(repoRoot.path, backend.pathToSource)); if (process.exitCode != 0) { throw Exception( diff --git a/infra/package.json b/infra/package.json index f52b9c63a5..9098e127b7 100644 --- a/infra/package.json +++ b/infra/package.json @@ -12,25 +12,25 @@ "destroy": "cdk destroy --profile=${AWS_PROFILE:=default}" }, "devDependencies": { - "@types/aws-lambda": "^8.10.140", - "@types/babel__traverse": "^7.20.6", - "@types/jest": "^29.5.12", - "@types/node": "^20.14.9", + "@types/aws-lambda": "^8.10.148", + "@types/babel__traverse": "^7.20.7", + "@types/jest": "^29.5.14", + "@types/node": "^20.17.28", "aws-cdk": "2.95.0", - "esbuild": "^0.25.0", + "esbuild": "^0.25.1", "jest": "^29.7.0", - "ts-jest": "^29.1.5", + "ts-jest": "^29.3.0", "ts-node": "^10.9.2", "typescript": "~5.2.2" }, "dependencies": { - "@aws-cdk/aws-cognito-identitypool-alpha": "2.95.0-alpha.0", - "@aws-crypto/client-node": "^4.0.1", - "@aws-sdk/client-amplify": "^3.624.0", - "@aws-sdk/client-cognito-identity-provider": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0", - "aws-cdk-lib": "2.177.0", - "constructs": "^10.3.0", + "@aws-cdk/aws-cognito-identitypool-alpha": "2.186.0-alpha.0", + "@aws-crypto/client-node": "^4.2.0", + "@aws-sdk/client-amplify": "^3.775.0", + "@aws-sdk/client-cognito-identity-provider": "^3.775.0", + "@aws-sdk/client-s3": "^3.775.0", + "aws-cdk-lib": "2.186.0", + "constructs": "^10.4.2", "node-fetch": "^3.3.2", "source-map-support": "^0.5.21" }, diff --git a/infra/pnpm-lock.yaml b/infra/pnpm-lock.yaml index 2883e2fe6d..425c0310ed 100644 --- a/infra/pnpm-lock.yaml +++ b/infra/pnpm-lock.yaml @@ -9,26 +9,26 @@ importers: .: dependencies: '@aws-cdk/aws-cognito-identitypool-alpha': - specifier: 2.95.0-alpha.0 - version: 2.95.0-alpha.0(aws-cdk-lib@2.177.0(constructs@10.3.0))(constructs@10.3.0) + specifier: 2.186.0-alpha.0 + version: 2.186.0-alpha.0(aws-cdk-lib@2.186.0(constructs@10.4.2))(constructs@10.4.2) '@aws-crypto/client-node': - specifier: ^4.0.1 - version: 4.0.1 + specifier: ^4.2.0 + version: 4.2.0 '@aws-sdk/client-amplify': - specifier: ^3.624.0 - version: 3.624.0 + specifier: ^3.775.0 + version: 3.775.0 '@aws-sdk/client-cognito-identity-provider': - specifier: ^3.624.0 - version: 3.624.0 + specifier: ^3.775.0 + version: 3.775.0 '@aws-sdk/client-s3': - specifier: ^3.624.0 - version: 3.624.0 + specifier: ^3.775.0 + version: 3.775.0 aws-cdk-lib: - specifier: 2.177.0 - version: 2.177.0(constructs@10.3.0) + specifier: 2.186.0 + version: 2.186.0(constructs@10.4.2) constructs: - specifier: ^10.3.0 - version: 10.3.0 + specifier: ^10.4.2 + version: 10.4.2 node-fetch: specifier: ^3.3.2 version: 3.3.2 @@ -37,32 +37,32 @@ importers: version: 0.5.21 devDependencies: '@types/aws-lambda': - specifier: ^8.10.140 - version: 8.10.140 + specifier: ^8.10.148 + version: 8.10.148 '@types/babel__traverse': - specifier: ^7.20.6 - version: 7.20.6 + specifier: ^7.20.7 + version: 7.20.7 '@types/jest': - specifier: ^29.5.12 - version: 29.5.12 + specifier: ^29.5.14 + version: 29.5.14 '@types/node': - specifier: ^20.14.9 - version: 20.14.9 + specifier: ^20.17.28 + version: 20.17.28 aws-cdk: specifier: 2.95.0 version: 2.95.0 esbuild: - specifier: ^0.25.0 - version: 0.25.0 + specifier: ^0.25.1 + version: 0.25.1 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + version: 29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) ts-jest: - specifier: ^29.1.5 - version: 29.1.5(@babel/core@7.24.7)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.7))(esbuild@0.25.0)(jest@29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)))(typescript@5.2.2) + specifier: ^29.3.0 + version: 29.3.0(@babel/core@7.26.10)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.10))(esbuild@0.25.1)(jest@29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)))(typescript@5.2.2) ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@20.14.9)(typescript@5.2.2) + version: 10.9.2(@types/node@20.17.28)(typescript@5.2.2) typescript: specifier: ~5.2.2 version: 5.2.2 @@ -73,36 +73,38 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@aws-cdk/asset-awscli-v1@2.2.225': - resolution: {integrity: sha512-fMPfR7PwiwQZwAux9tQ5LRrFJJfl5Vp3kR8GMc+H/PA/wql9+w8mk5gs6SDpwBFpT7n3XkZ5H98Ns5+g7/WMIg==} - - '@aws-cdk/asset-kubectl-v20@2.1.4': - resolution: {integrity: sha512-Ps2MkmjYgMyflagqQ4dgTElc7Vwpqj8spw8dQVFiSeaaMPsuDSNsPax3/HjuDuwqsmLdaCZc6umlxYLpL0kYDA==} + '@aws-cdk/asset-awscli-v1@2.2.229': + resolution: {integrity: sha512-apNt/Sfty7Jwi1+6hrZaQeVisqnJAW4+uQZI55VPKtBqjTFEsKPBc/KZDx9Tlw8Ii1yWrS3HNzLNGxpTXae8XQ==} '@aws-cdk/asset-node-proxy-agent-v6@2.1.0': resolution: {integrity: sha512-7bY3J8GCVxLupn/kNmpPc5VJz8grx+4RKfnnJiO1LG+uxkZfANZG3RMHhE+qQxxwkyQ9/MfPtTpf748UhR425A==} - '@aws-cdk/aws-cognito-identitypool-alpha@2.95.0-alpha.0': - resolution: {integrity: sha512-GxDRBb8sGDRdut4rXUkTErkqPptOI+qK8efwwFrWpCJKWCPVx8Ox6DgbDEOoE3pOHySFLmJCSmNmD0DPkkOXEw==} + '@aws-cdk/aws-cognito-identitypool-alpha@2.186.0-alpha.0': + resolution: {integrity: sha512-Dzq+HEmEqWjLrbJZ4QsGawGMUGd1bkVpKF2E1c64ax2CcCV0xW8VXUmS71RRcFzhM7qwEN3buWjU03M5sqzUKg==} engines: {node: '>= 14.15.0'} + deprecated: This package has been stabilized and moved to aws-cdk-lib peerDependencies: - aws-cdk-lib: 2.95.0 + aws-cdk-lib: ^2.186.0 constructs: ^10.0.0 - '@aws-cdk/cloud-assembly-schema@39.2.20': - resolution: {integrity: sha512-RI7S8jphGA8mak154ElnEJQPNTTV4PZmA7jgqnBBHQGyOPJIXxtACubNQ5m4YgjpkK3UJHsWT+/cOAfM/Au/Wg==} + '@aws-cdk/cloud-assembly-schema@40.7.0': + resolution: {integrity: sha512-00wVKn9pOOGXbeNwA4E8FUFt0zIB4PmSO7PvIiDWgpaFX3G/sWyy0A3s6bg/n2Yvkghu8r4a8ckm+mAzkAYmfA==} + engines: {node: '>= 14.15.0'} bundledDependencies: - jsonschema - semver - '@aws-crypto/cache-material@4.0.1': - resolution: {integrity: sha512-3o5EFv1H2JOKdIYbgQuegSyOgqZaIqx75/FKjlQMfoCp1FwivbKyUWje/KRobl7cJuHiIgVix0/UrMG6PAm1zA==} + '@aws-crypto/branch-keystore-node@4.2.0': + resolution: {integrity: sha512-Eu1MmZt5Q1Dh4FjwyfoNBHjyM3Pr/dBzx0zhR9zyTBsUe8dE00VhKVDhBLnnpbXaHwyy08R8Mj0iSDVHKBrnOA==} - '@aws-crypto/caching-materials-manager-node@4.0.1': - resolution: {integrity: sha512-NFdKIWyQa0r+z2jjuwow8UkGA+iiZj0WX76EspOBiLiY9PcLsczsPUwSD3QR4hipldptaC18t9h2HQrWGtiwMA==} + '@aws-crypto/cache-material@4.2.0': + resolution: {integrity: sha512-hsuoU1/fP04a8d92f2SMjovd7z6Mm+CXHXUp7Gh5wpp8EuPMFCV+9TFu+LktwxO6McczZ1egh/D81To16NlSoA==} - '@aws-crypto/client-node@4.0.1': - resolution: {integrity: sha512-tKd63z1m761HVFzIV6RMR+GsMWEaY5ETUhl5B+tIxSbRmfipwZ/VS65camZOpTjg9lZQupAzWftTgeDzBCbhnw==} + '@aws-crypto/caching-materials-manager-node@4.2.0': + resolution: {integrity: sha512-hl6qLL9B3VvLmqx00DVhpAiZdaBrto33o2z+hUsTQEMnNKdJxKGhgByg994W8SnVsOqeadZPZlcx43BS5SjPJA==} + + '@aws-crypto/client-node@4.2.0': + resolution: {integrity: sha512-Wc98A5JYcKT+zhgUCXxNm5jmC9lTZ7jPNQyWhXL2H+0xoR2c5w5hqCvsIQwOb7JNVLcwBrBvz8LfZaEC6FAzKQ==} '@aws-crypto/crc32@5.2.0': resolution: {integrity: sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==} @@ -111,38 +113,41 @@ packages: '@aws-crypto/crc32c@5.2.0': resolution: {integrity: sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==} - '@aws-crypto/decrypt-node@4.0.1': - resolution: {integrity: sha512-y4k8lht/d1twedcncdtXeVTBuLFLDPRWffnDabNQfQBh1ZkYa7G++bO006t0RPlMS1Qi3yb8NcgpNoQHmrk0Aw==} + '@aws-crypto/decrypt-node@4.2.0': + resolution: {integrity: sha512-fdi88gr0FtP/2vmweiWrDMsumx+r70oCglWJRjJpg5VvbmEFsHD2WxDiGRrrCnrBiUoIoXFs7uATRq00E2vvKw==} - '@aws-crypto/encrypt-node@4.0.1': - resolution: {integrity: sha512-NZ9X9g/A7BV4UNrysRbOCQ4oHB3EkYVmsCt7tgCh+Dd28fknxJIHfJ6nZiI+9ey0lbkl5Tin/fn9eVR/vjYN2Q==} + '@aws-crypto/encrypt-node@4.2.0': + resolution: {integrity: sha512-Uke+5B+tE31mxExu+4aNppOKFvRVBMQj0aQcJIgStyra0v5ekSK3xtRUqFn3SxAZjh2ZSU2kNkf1kINRvcLRCg==} '@aws-crypto/hkdf-node@4.0.0': resolution: {integrity: sha512-FytH3TF9c0OP+vnicc4YJoxoFoLajdRzzuRchDHmh4yXk32lj/HzgXGPfj+kSyy0chkh4XVONh2/zMRmqsA/hQ==} - '@aws-crypto/kms-keyring-node@4.0.1': - resolution: {integrity: sha512-actQVBnhUa13m3EcZUNIZhIxls40C2GviW2k+cWpyH0/Zunv7XKVSzhWPmGndhqe1ZB7aZWaoeWdgIFxdXiiUw==} + '@aws-crypto/kdf-ctr-mode-node@4.1.0': + resolution: {integrity: sha512-63A5mgEN3NWdVpHF4Y+4TLl2F62UP6KaFZ6cF5MT7hZ3rDaiyh6u45Tjcxe6/mB5U3FiMBOba/2AXrSX0hNkCw==} + + '@aws-crypto/kms-keyring-node@4.2.0': + resolution: {integrity: sha512-3UD+HP5yBqo4GWa3zXXQJAvTrFHe/nbrOpOZakiS7ci6kLV9XUA2QZgtJMe3CFarfzTJMmlEcwnD2fetnsD2YQ==} - '@aws-crypto/kms-keyring@4.0.1': - resolution: {integrity: sha512-v3xB6Bpqo4nw9E5e/ShepFQmDvox2KhIBQK9hSspT1pnwEJtYHkdE1z+gvJJPqCRT2ujQ6R6CUXuSZ2Qk2reXg==} + '@aws-crypto/kms-keyring@4.2.0': + resolution: {integrity: sha512-TcsWCApO7mKUIiD/hWYHxchcoBu6iSzd76jsJWBl8YI/TKiUpE3lFVH2JdCq3XIqfDS+VwkG4o7r+K7XCFmnKw==} - '@aws-crypto/material-management-node@4.0.1': - resolution: {integrity: sha512-kH/l6XS0uS1xoYt1WmmtEI6b5suiUOb2ibs1YmzsOJh28bd0SEGofuUWkO8LV2qwwrlsFce12gXf6/8G1HcqkQ==} + '@aws-crypto/material-management-node@4.2.0': + resolution: {integrity: sha512-7AaQM7ovVKAURG7xpRK+mXkd/f8WKx3PPWlLrU93Uwg2rHZkL9jOKvYrkc8sfYSLxMzQ4jFYx/h6c9FSCUv7bw==} - '@aws-crypto/material-management@4.0.1': - resolution: {integrity: sha512-0joCJ3QlU3cIucsX4C14jBA7aXE3UuePLZaHYrpAeCY2cWv9BqyFNwZd1YhsGu9MksHFHZxDukdTndDIFvnK9g==} + '@aws-crypto/material-management@4.2.0': + resolution: {integrity: sha512-6TB629HsI/Wlo3LvT854TZS3naIQ63QEmzmhBdezbA05IqPBqamK8Y/UwPBhI47rdk6vm8oOKjC4AntqYdcZ+A==} - '@aws-crypto/raw-aes-keyring-node@4.0.1': - resolution: {integrity: sha512-qVkhocO0fN9dWv8+hBuEQn6XO7Rp79jPpN8Tw9hLEFpGonkZdNbBp4O7s2c5Nn1G4VMCHvTNHmkjZm7/lcAPzw==} + '@aws-crypto/raw-aes-keyring-node@4.2.0': + resolution: {integrity: sha512-iaKwolSmOqW9fhOGz9v10Ggh89Y65QKfEkCZBfUJ+CIY79xp25QRh40pQTBEq4Gs7C3GpOPARaIlpG2TpMpF6Q==} - '@aws-crypto/raw-keyring@4.0.1': - resolution: {integrity: sha512-scOSi1BP+uiwsKTvlAoNKXfv4eI9b7bcy+Fkyc3Ci7S5jzqua2OwnmNXanBHPcF4W/ziHhZJ5K2Vm84iz8gz/Q==} + '@aws-crypto/raw-keyring@4.2.0': + resolution: {integrity: sha512-Dq/RckQYDEaWs+BTipzUoy2Los0JwE5G75eVXRZdli72cA2bs7INkqLD/2ZkBQAA6du4f4Mu+X3G1mEbPjFVbw==} - '@aws-crypto/raw-rsa-keyring-node@4.0.1': - resolution: {integrity: sha512-UZUKTH14dnfGpjD7/+tMHEIJpi6w3vcPJ90+Ipa8daNEE1PdVb33nXpzfcqmi9Oyhmhpwmfd1xzZ/drobCTVMA==} + '@aws-crypto/raw-rsa-keyring-node@4.2.0': + resolution: {integrity: sha512-cuVN+v/HQNkxm6CAN/djAi6HlOi5iqZ+TKHb4TdWjG+7PJcA70wFHjaehHOFD/1YYOZui0QFCvLgOXyqccWz9g==} - '@aws-crypto/serialize@4.0.1': - resolution: {integrity: sha512-Axd/lRGxbUgsAAO7TH/3QrzpozkfthpR9e4cY1HZzmvsZRNBpgj9CkwrGsDmuRNFMMvS7XQNXJ3cfFkn3S+toQ==} + '@aws-crypto/serialize@4.2.0': + resolution: {integrity: sha512-FSCxVux4KAV0NV6AOA6ZmBARlxeiavQr2O9ILr6nGzw9DSYvGyy9zYwri1gBsGOGUbJ3mWPFtmb0zonFAwGYuA==} '@aws-crypto/sha1-browser@5.2.0': resolution: {integrity: sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==} @@ -160,234 +165,216 @@ packages: '@aws-crypto/util@5.2.0': resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==} - '@aws-sdk/client-amplify@3.624.0': - resolution: {integrity: sha512-KHa/vlXZNFtA3mjkJ4u1wuZ6EhiRO2fn4vF3iDfVYs9DklwHx2NlpGNbryJhHT7uCVL9vtvNT9L8c3MRbsY8Dg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/client-amplify@3.775.0': + resolution: {integrity: sha512-mjt/n/mH2t3U0u7DZHRg1ObwD3CftVojBd1NgU3j0hEbW06ltbEvnivZqulhil4sCDorb6QJAbOVwgHoTG5FSg==} + engines: {node: '>=18.0.0'} - '@aws-sdk/client-cognito-identity-provider@3.624.0': - resolution: {integrity: sha512-AKzSCARzVUqclaXxxRE7UXZAhF+HoJGbAdYvQxj9LJdejuBRCo49LUqmiCTr7pUEPDK/RkDtv3+JLhxqN4z8YA==} - engines: {node: '>=16.0.0'} + '@aws-sdk/client-cognito-identity-provider@3.775.0': + resolution: {integrity: sha512-hGH8F84SChSW6G6YTRwaewiOKyFWYj4CbAIK8WH4Z1Veg67csIQ8K6rlYuhn+nEMd6F+cMdUtn0EGeI7VDdNWg==} + engines: {node: '>=18.0.0'} - '@aws-sdk/client-kms@3.624.0': - resolution: {integrity: sha512-UCDDpmsIdU+EPE7qXLSM/znDYT4QhNwgbSF0jcfwEM0VPdw3qBSzRPGfvq0Q2NkNsT2B3ozfLuLzvLzOEWPHSg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/client-dynamodb@3.775.0': + resolution: {integrity: sha512-OoZKPUIyGVnEMkA6GuEu2vB6ZS5Q4GyJZLhELv8+srwB0OVQ2i2jchExvUySQyvxAkGXbeKGGRKAw3IpVGfKcA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/client-s3@3.624.0': - resolution: {integrity: sha512-A18tgTKC4ZTAwV8i3pkyAL1XDLgH7WGS5hZA/0FOntI5l+icztGZFF8CdeYWEAFnZA7SfHK6vmtEbIQDOzTTAA==} - engines: {node: '>=16.0.0'} + '@aws-sdk/client-kms@3.775.0': + resolution: {integrity: sha512-z4bEyz++u1V2EnMG5w9hDpQP4Ogfz/rNKP72kg6P2Z/nxAS3lSfv/cfnGCN2n82/NgT0d0jgPCTmU+YV9XszBQ==} + engines: {node: '>=18.0.0'} - '@aws-sdk/client-sso-oidc@3.624.0': - resolution: {integrity: sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@aws-sdk/client-sts': ^3.624.0 + '@aws-sdk/client-s3@3.775.0': + resolution: {integrity: sha512-Z/BeVmYc3nj4FNE46MtvBYeCVvBZwlujMEvr5UOChP14899QWkBfOvf74RwQY9qy5/DvhVFkHlA8en1L6+0NrA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/client-sso@3.624.0': - resolution: {integrity: sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==} - engines: {node: '>=16.0.0'} + '@aws-sdk/client-sso@3.775.0': + resolution: {integrity: sha512-vqG1S2ap77WP4D5qt4bEPE0duQ4myN+cDr1NeP8QpSTajetbkDGVo7h1VViYMcUoFUVWBj6Qf1X1VfOq+uaxbA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/client-sts@3.624.0': - resolution: {integrity: sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==} - engines: {node: '>=16.0.0'} + '@aws-sdk/core@3.775.0': + resolution: {integrity: sha512-8vpW4WihVfz0DX+7WnnLGm3GuQER++b0IwQG35JlQMlgqnc44M//KbJPsIHA0aJUJVwJAEShgfr5dUbY8WUzaA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/core@3.624.0': - resolution: {integrity: sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/credential-provider-env@3.775.0': + resolution: {integrity: sha512-6ESVxwCbGm7WZ17kY1fjmxQud43vzJFoLd4bmlR+idQSWdqlzGDYdcfzpjDKTcivdtNrVYmFvcH1JBUwCRAZhw==} + engines: {node: '>=18.0.0'} - '@aws-sdk/credential-provider-env@3.620.1': - resolution: {integrity: sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/credential-provider-http@3.775.0': + resolution: {integrity: sha512-PjDQeDH/J1S0yWV32wCj2k5liRo0ssXMseCBEkCsD3SqsU8o5cU82b0hMX4sAib/RkglCSZqGO0xMiN0/7ndww==} + engines: {node: '>=18.0.0'} - '@aws-sdk/credential-provider-http@3.622.0': - resolution: {integrity: sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/credential-provider-ini@3.775.0': + resolution: {integrity: sha512-0gJc6cALsgrjeC5U3qDjbz4myIC/j49+gPz9nkvY+C0OYWt1KH1tyfiZUuCRGfuFHhQ+3KMMDSL229TkBP3E7g==} + engines: {node: '>=18.0.0'} - '@aws-sdk/credential-provider-ini@3.624.0': - resolution: {integrity: sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@aws-sdk/client-sts': ^3.624.0 + '@aws-sdk/credential-provider-node@3.775.0': + resolution: {integrity: sha512-D8Zre5W2sXC/ANPqCWPqwYpU1cKY9DF6ckFZyDrqlcBC0gANgpY6fLrBtYo2fwJsbj+1A24iIpBINV7erdprgA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/credential-provider-node@3.624.0': - resolution: {integrity: sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==} - engines: {node: '>=16.0.0'} + '@aws-sdk/credential-provider-process@3.775.0': + resolution: {integrity: sha512-A6k68H9rQp+2+7P7SGO90Csw6nrUEm0Qfjpn9Etc4EboZhhCLs9b66umUsTsSBHus4FDIe5JQxfCUyt1wgNogg==} + engines: {node: '>=18.0.0'} - '@aws-sdk/credential-provider-process@3.620.1': - resolution: {integrity: sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/credential-provider-sso@3.775.0': + resolution: {integrity: sha512-du06V7u9HDmRuwZnRjf85shO3dffeKOkQplV5/2vf3LgTPNEI9caNomi/cCGyxKGOeSUHAKrQ1HvpPfOaI6t5Q==} + engines: {node: '>=18.0.0'} - '@aws-sdk/credential-provider-sso@3.624.0': - resolution: {integrity: sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==} - engines: {node: '>=16.0.0'} + '@aws-sdk/credential-provider-web-identity@3.775.0': + resolution: {integrity: sha512-z4XLYui5aHsr78mbd5BtZfm55OM5V55qK/X17OPrEqjYDDk3GlI8Oe2ZjTmOVrKwMpmzXKhsakeFHKfDyOvv1A==} + engines: {node: '>=18.0.0'} - '@aws-sdk/credential-provider-web-identity@3.621.0': - resolution: {integrity: sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@aws-sdk/client-sts': ^3.621.0 + '@aws-sdk/endpoint-cache@3.723.0': + resolution: {integrity: sha512-2+a4WXRc+07uiPR+zJiPGKSOWaNJQNqitkks+6Hhm/haTLJqNVTgY2OWDh2PXvwMNpKB+AlGdhE65Oy6NzUgXg==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-bucket-endpoint@3.620.0': - resolution: {integrity: sha512-eGLL0W6L3HDb3OACyetZYOWpHJ+gLo0TehQKeQyy2G8vTYXqNTeqYhuI6up9HVjBzU9eQiULVQETmgQs7TFaRg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-bucket-endpoint@3.775.0': + resolution: {integrity: sha512-qogMIpVChDYr4xiUNC19/RDSw/sKoHkAhouS6Skxiy6s27HBhow1L3Z1qVYXuBmOZGSWPU0xiyZCvOyWrv9s+Q==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-expect-continue@3.620.0': - resolution: {integrity: sha512-QXeRFMLfyQ31nAHLbiTLtk0oHzG9QLMaof5jIfqcUwnOkO8YnQdeqzakrg1Alpy/VQ7aqzIi8qypkBe2KXZz0A==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-endpoint-discovery@3.775.0': + resolution: {integrity: sha512-L0PmjSg7t+wovRo/Lin1kpei3e7wBhrENWb1Bbccu3PWUIfxolGeWplOmNhSlXjuQe9GXjf3z8kJRYOGBMFOvw==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-flexible-checksums@3.620.0': - resolution: {integrity: sha512-ftz+NW7qka2sVuwnnO1IzBku5ccP+s5qZGeRTPgrKB7OzRW85gthvIo1vQR2w+OwHFk7WJbbhhWwbCbktnP4UA==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-expect-continue@3.775.0': + resolution: {integrity: sha512-Apd3owkIeUW5dnk3au9np2IdW2N0zc9NjTjHiH+Mx3zqwSrc+m+ANgJVgk9mnQjMzU/vb7VuxJ0eqdEbp5gYsg==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-host-header@3.620.0': - resolution: {integrity: sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-flexible-checksums@3.775.0': + resolution: {integrity: sha512-OmHLfRIb7IIXsf9/X/pMOlcSV3gzW/MmtPSZTkrz5jCTKzWXd7eRoyOJqewjsaC6KMAxIpNU77FoAd16jOZ21A==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-location-constraint@3.609.0': - resolution: {integrity: sha512-xzsdoTkszGVqGVPjUmgoP7TORiByLueMHieI1fhQL888WPdqctwAx3ES6d/bA9Q/i8jnc6hs+Fjhy8UvBTkE9A==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-host-header@3.775.0': + resolution: {integrity: sha512-tkSegM0Z6WMXpLB8oPys/d+umYIocvO298mGvcMCncpRl77L9XkvSLJIFzaHes+o7djAgIduYw8wKIMStFss2w==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-logger@3.609.0': - resolution: {integrity: sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-location-constraint@3.775.0': + resolution: {integrity: sha512-8TMXEHZXZTFTckQLyBT5aEI8fX11HZcwZseRifvBKKpj0RZDk4F0EEYGxeNSPpUQ7n+PRWyfAEnnZNRdAj/1NQ==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-recursion-detection@3.620.0': - resolution: {integrity: sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-logger@3.775.0': + resolution: {integrity: sha512-FaxO1xom4MAoUJsldmR92nT1G6uZxTdNYOFYtdHfd6N2wcNaTuxgjIvqzg5y7QIH9kn58XX/dzf1iTjgqUStZw==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-sdk-s3@3.624.0': - resolution: {integrity: sha512-HUiaZ6+JXcG0qQda10ZxDGJvbT71YUp1zX+oikIsfTUeq0N75O82OY3Noqd7cyjEVtsGSo/y0e6U3aV1hO+wPw==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-recursion-detection@3.775.0': + resolution: {integrity: sha512-GLCzC8D0A0YDG5u3F5U03Vb9j5tcOEFhr8oc6PDk0k0vm5VwtZOE6LvK7hcCSoAB4HXyOUM0sQuXrbaAh9OwXA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-ssec@3.609.0': - resolution: {integrity: sha512-GZSD1s7+JswWOTamVap79QiDaIV7byJFssBW68GYjyRS5EBjNfwA/8s+6uE6g39R3ojyTbYOmvcANoZEhSULXg==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-sdk-s3@3.775.0': + resolution: {integrity: sha512-zsvcu7cWB28JJ60gVvjxPCI7ZU7jWGcpNACPiZGyVtjYXwcxyhXbYEVDSWKsSA6ERpz9XrpLYod8INQWfW3ECg==} + engines: {node: '>=18.0.0'} - '@aws-sdk/middleware-user-agent@3.620.0': - resolution: {integrity: sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-ssec@3.775.0': + resolution: {integrity: sha512-Iw1RHD8vfAWWPzBBIKaojO4GAvQkHOYIpKdAfis/EUSUmSa79QsnXnRqsdcE0mCB0Ylj23yi+ah4/0wh9FsekA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/region-config-resolver@3.614.0': - resolution: {integrity: sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==} - engines: {node: '>=16.0.0'} + '@aws-sdk/middleware-user-agent@3.775.0': + resolution: {integrity: sha512-7Lffpr1ptOEDE1ZYH1T78pheEY1YmeXWBfFt/amZ6AGsKSLG+JPXvof3ltporTGR2bhH/eJPo7UHCglIuXfzYg==} + engines: {node: '>=18.0.0'} - '@aws-sdk/signature-v4-multi-region@3.624.0': - resolution: {integrity: sha512-gu1SfCyUPnq4s0AI1xdAl0whHwhkTyltg4QZWc4vnZvEVudCpJVVxEcroUHYQIO51YyVUT9jSMS1SVRe5VqPEw==} - engines: {node: '>=16.0.0'} + '@aws-sdk/nested-clients@3.775.0': + resolution: {integrity: sha512-f37jmAzkuIhKyhtA6s0LGpqQvm218vq+RNMUDkGm1Zz2fxJ5pBIUTDtygiI3vXTcmt9DTIB8S6JQhjrgtboktw==} + engines: {node: '>=18.0.0'} - '@aws-sdk/token-providers@3.614.0': - resolution: {integrity: sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@aws-sdk/client-sso-oidc': ^3.614.0 + '@aws-sdk/region-config-resolver@3.775.0': + resolution: {integrity: sha512-40iH3LJjrQS3LKUJAl7Wj0bln7RFPEvUYKFxtP8a+oKFDO0F65F52xZxIJbPn6sHkxWDAnZlGgdjZXM3p2g5wQ==} + engines: {node: '>=18.0.0'} - '@aws-sdk/types@3.609.0': - resolution: {integrity: sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==} - engines: {node: '>=16.0.0'} + '@aws-sdk/signature-v4-multi-region@3.775.0': + resolution: {integrity: sha512-cnGk8GDfTMJ8p7+qSk92QlIk2bmTmFJqhYxcXZ9PysjZtx0xmfCMxnG3Hjy1oU2mt5boPCVSOptqtWixayM17g==} + engines: {node: '>=18.0.0'} - '@aws-sdk/util-arn-parser@3.568.0': - resolution: {integrity: sha512-XUKJWWo+KOB7fbnPP0+g/o5Ulku/X53t7i/h+sPHr5xxYTJJ9CYnbToo95mzxe7xWvkLrsNtJ8L+MnNn9INs2w==} - engines: {node: '>=16.0.0'} + '@aws-sdk/token-providers@3.775.0': + resolution: {integrity: sha512-Q6MtbEhkOggVSz/dN89rIY/ry80U3v89o0Lrrc+Rpvaiaaz8pEN0DsfEcg0IjpzBQ8Owoa6lNWyglHbzPhaJpA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/util-endpoints@3.614.0': - resolution: {integrity: sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==} - engines: {node: '>=16.0.0'} + '@aws-sdk/types@3.775.0': + resolution: {integrity: sha512-ZoGKwa4C9fC9Av6bdfqcW6Ix5ot05F/S4VxWR2nHuMv7hzfmAjTOcUiWT7UR4hM/U0whf84VhDtXN/DWAk52KA==} + engines: {node: '>=18.0.0'} - '@aws-sdk/util-locate-window@3.568.0': - resolution: {integrity: sha512-3nh4TINkXYr+H41QaPelCceEB2FXP3fxp93YZXB/kqJvX0U9j0N0Uk45gvsjmEPzG8XxkPEeLIfT2I1M7A6Lig==} - engines: {node: '>=16.0.0'} + '@aws-sdk/util-arn-parser@3.723.0': + resolution: {integrity: sha512-ZhEfvUwNliOQROcAk34WJWVYTlTa4694kSVhDSjW6lE1bMataPnIN8A0ycukEzBXmd8ZSoBcQLn6lKGl7XIJ5w==} + engines: {node: '>=18.0.0'} - '@aws-sdk/util-user-agent-browser@3.609.0': - resolution: {integrity: sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==} + '@aws-sdk/util-dynamodb@3.775.0': + resolution: {integrity: sha512-RawcbaM54+7zJ1ULncZAvSSIGZcSucnQ6OY4pMjuUczp6kGx0dLuUJofLyATcboDKPjZZg+luF/z9E/XQq1J3g==} + engines: {node: '>=18.0.0'} + peerDependencies: + '@aws-sdk/client-dynamodb': ^3.775.0 - '@aws-sdk/util-user-agent-node@3.614.0': - resolution: {integrity: sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==} - engines: {node: '>=16.0.0'} + '@aws-sdk/util-endpoints@3.775.0': + resolution: {integrity: sha512-yjWmUgZC9tUxAo8Uaplqmq0eUh0zrbZJdwxGRKdYxfm4RG6fMw1tj52+KkatH7o+mNZvg1GDcVp/INktxonJLw==} + engines: {node: '>=18.0.0'} + + '@aws-sdk/util-locate-window@3.723.0': + resolution: {integrity: sha512-Yf2CS10BqK688DRsrKI/EO6B8ff5J86NXe4C+VCysK7UOgN0l1zOTeTukZ3H8Q9tYYX3oaF1961o8vRkFm7Nmw==} + engines: {node: '>=18.0.0'} + + '@aws-sdk/util-user-agent-browser@3.775.0': + resolution: {integrity: sha512-txw2wkiJmZKVdDbscK7VBK+u+TJnRtlUjRTLei+elZg2ADhpQxfVAQl436FUeIv6AhB/oRHW6/K/EAGXUSWi0A==} + + '@aws-sdk/util-user-agent-node@3.775.0': + resolution: {integrity: sha512-N9yhTevbizTOMo3drH7Eoy6OkJ3iVPxhV7dwb6CMAObbLneS36CSfA6xQXupmHWcRvZPTz8rd1JGG3HzFOau+g==} + engines: {node: '>=18.0.0'} peerDependencies: aws-crt: '>=1.0.0' peerDependenciesMeta: aws-crt: optional: true - '@aws-sdk/xml-builder@3.609.0': - resolution: {integrity: sha512-l9XxNcA4HX98rwCC2/KoiWcmEiRfZe4G+mYwDbCFT87JIMj6GBhLDkAzr/W8KAaA2IDr8Vc6J8fZPgVulxxfMA==} - engines: {node: '>=16.0.0'} - - '@babel/code-frame@7.24.7': - resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} - engines: {node: '>=6.9.0'} - - '@babel/compat-data@7.24.7': - resolution: {integrity: sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==} - engines: {node: '>=6.9.0'} - - '@babel/core@7.24.7': - resolution: {integrity: sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==} - engines: {node: '>=6.9.0'} + '@aws-sdk/xml-builder@3.775.0': + resolution: {integrity: sha512-b9NGO6FKJeLGYnV7Z1yvcP1TNU4dkD5jNsLWOF1/sygZoASaQhNOlaiJ/1OH331YQ1R1oWk38nBb0frsYkDsOQ==} + engines: {node: '>=18.0.0'} - '@babel/generator@7.24.7': - resolution: {integrity: sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==} + '@babel/code-frame@7.26.2': + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} engines: {node: '>=6.9.0'} - '@babel/helper-compilation-targets@7.24.7': - resolution: {integrity: sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==} + '@babel/compat-data@7.26.8': + resolution: {integrity: sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==} engines: {node: '>=6.9.0'} - '@babel/helper-environment-visitor@7.24.7': - resolution: {integrity: sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==} + '@babel/core@7.26.10': + resolution: {integrity: sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==} engines: {node: '>=6.9.0'} - '@babel/helper-function-name@7.24.7': - resolution: {integrity: sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==} + '@babel/generator@7.27.0': + resolution: {integrity: sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==} engines: {node: '>=6.9.0'} - '@babel/helper-hoist-variables@7.24.7': - resolution: {integrity: sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==} + '@babel/helper-compilation-targets@7.27.0': + resolution: {integrity: sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==} engines: {node: '>=6.9.0'} - '@babel/helper-module-imports@7.24.7': - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} + '@babel/helper-module-imports@7.25.9': + resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} engines: {node: '>=6.9.0'} - '@babel/helper-module-transforms@7.24.7': - resolution: {integrity: sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==} + '@babel/helper-module-transforms@7.26.0': + resolution: {integrity: sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 - '@babel/helper-plugin-utils@7.24.7': - resolution: {integrity: sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg==} - engines: {node: '>=6.9.0'} - - '@babel/helper-simple-access@7.24.7': - resolution: {integrity: sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==} - engines: {node: '>=6.9.0'} - - '@babel/helper-split-export-declaration@7.24.7': - resolution: {integrity: sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-string-parser@7.24.7': - resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==} + '@babel/helper-plugin-utils@7.26.5': + resolution: {integrity: sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.24.7': - resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} + '@babel/helper-string-parser@7.25.9': + resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-option@7.24.7': - resolution: {integrity: sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==} + '@babel/helper-validator-identifier@7.25.9': + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} engines: {node: '>=6.9.0'} - '@babel/helpers@7.24.7': - resolution: {integrity: sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==} + '@babel/helper-validator-option@7.25.9': + resolution: {integrity: sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==} engines: {node: '>=6.9.0'} - '@babel/highlight@7.24.7': - resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} + '@babel/helpers@7.27.0': + resolution: {integrity: sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==} engines: {node: '>=6.9.0'} - '@babel/parser@7.24.7': - resolution: {integrity: sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==} + '@babel/parser@7.27.0': + resolution: {integrity: sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==} engines: {node: '>=6.0.0'} hasBin: true @@ -406,6 +393,18 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-class-static-block@7.14.5': + resolution: {integrity: sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-syntax-import-attributes@7.26.0': + resolution: {integrity: sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-import-meta@7.10.4': resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} peerDependencies: @@ -416,8 +415,8 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/plugin-syntax-jsx@7.24.7': - resolution: {integrity: sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==} + '@babel/plugin-syntax-jsx@7.25.9': + resolution: {integrity: sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 @@ -452,28 +451,34 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-private-property-in-object@7.14.5': + resolution: {integrity: sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-syntax-top-level-await@7.14.5': resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/plugin-syntax-typescript@7.24.7': - resolution: {integrity: sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==} + '@babel/plugin-syntax-typescript@7.25.9': + resolution: {integrity: sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 - '@babel/template@7.24.7': - resolution: {integrity: sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==} + '@babel/template@7.27.0': + resolution: {integrity: sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==} engines: {node: '>=6.9.0'} - '@babel/traverse@7.24.7': - resolution: {integrity: sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==} + '@babel/traverse@7.27.0': + resolution: {integrity: sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==} engines: {node: '>=6.9.0'} - '@babel/types@7.24.7': - resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} + '@babel/types@7.27.0': + resolution: {integrity: sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==} engines: {node: '>=6.9.0'} '@bcoe/v8-coverage@0.2.3': @@ -483,152 +488,152 @@ packages: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} - '@esbuild/aix-ppc64@0.25.0': - resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==} + '@esbuild/aix-ppc64@0.25.1': + resolution: {integrity: sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.25.0': - resolution: {integrity: sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==} + '@esbuild/android-arm64@0.25.1': + resolution: {integrity: sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==} engines: {node: '>=18'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.25.0': - resolution: {integrity: sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==} + '@esbuild/android-arm@0.25.1': + resolution: {integrity: sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==} engines: {node: '>=18'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.25.0': - resolution: {integrity: sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==} + '@esbuild/android-x64@0.25.1': + resolution: {integrity: sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==} engines: {node: '>=18'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.25.0': - resolution: {integrity: sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==} + '@esbuild/darwin-arm64@0.25.1': + resolution: {integrity: sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.25.0': - resolution: {integrity: sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==} + '@esbuild/darwin-x64@0.25.1': + resolution: {integrity: sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==} engines: {node: '>=18'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.25.0': - resolution: {integrity: sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==} + '@esbuild/freebsd-arm64@0.25.1': + resolution: {integrity: sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.25.0': - resolution: {integrity: sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==} + '@esbuild/freebsd-x64@0.25.1': + resolution: {integrity: sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.25.0': - resolution: {integrity: sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==} + '@esbuild/linux-arm64@0.25.1': + resolution: {integrity: sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==} engines: {node: '>=18'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.25.0': - resolution: {integrity: sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==} + '@esbuild/linux-arm@0.25.1': + resolution: {integrity: sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==} engines: {node: '>=18'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.25.0': - resolution: {integrity: sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==} + '@esbuild/linux-ia32@0.25.1': + resolution: {integrity: sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==} engines: {node: '>=18'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.25.0': - resolution: {integrity: sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==} + '@esbuild/linux-loong64@0.25.1': + resolution: {integrity: sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==} engines: {node: '>=18'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.25.0': - resolution: {integrity: sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==} + '@esbuild/linux-mips64el@0.25.1': + resolution: {integrity: sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.25.0': - resolution: {integrity: sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==} + '@esbuild/linux-ppc64@0.25.1': + resolution: {integrity: sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.25.0': - resolution: {integrity: sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==} + '@esbuild/linux-riscv64@0.25.1': + resolution: {integrity: sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.25.0': - resolution: {integrity: sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==} + '@esbuild/linux-s390x@0.25.1': + resolution: {integrity: sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==} engines: {node: '>=18'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.25.0': - resolution: {integrity: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==} + '@esbuild/linux-x64@0.25.1': + resolution: {integrity: sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==} engines: {node: '>=18'} cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.25.0': - resolution: {integrity: sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==} + '@esbuild/netbsd-arm64@0.25.1': + resolution: {integrity: sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-x64@0.25.0': - resolution: {integrity: sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==} + '@esbuild/netbsd-x64@0.25.1': + resolution: {integrity: sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.25.0': - resolution: {integrity: sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==} + '@esbuild/openbsd-arm64@0.25.1': + resolution: {integrity: sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-x64@0.25.0': - resolution: {integrity: sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==} + '@esbuild/openbsd-x64@0.25.1': + resolution: {integrity: sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] - '@esbuild/sunos-x64@0.25.0': - resolution: {integrity: sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==} + '@esbuild/sunos-x64@0.25.1': + resolution: {integrity: sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==} engines: {node: '>=18'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.25.0': - resolution: {integrity: sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==} + '@esbuild/win32-arm64@0.25.1': + resolution: {integrity: sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==} engines: {node: '>=18'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.25.0': - resolution: {integrity: sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==} + '@esbuild/win32-ia32@0.25.1': + resolution: {integrity: sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==} engines: {node: '>=18'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.25.0': - resolution: {integrity: sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==} + '@esbuild/win32-x64@0.25.1': + resolution: {integrity: sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==} engines: {node: '>=18'} cpu: [x64] os: [win32] @@ -707,8 +712,8 @@ packages: resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - '@jridgewell/gen-mapping@0.3.5': - resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} engines: {node: '>=6.0.0'} '@jridgewell/resolve-uri@3.1.2': @@ -719,8 +724,8 @@ packages: resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.4.15': - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} @@ -737,208 +742,217 @@ packages: '@sinonjs/fake-timers@10.3.0': resolution: {integrity: sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==} - '@smithy/abort-controller@3.1.1': - resolution: {integrity: sha512-MBJBiidoe+0cTFhyxT8g+9g7CeVccLM0IOKKUMCNQ1CNMJ/eIfoo0RTfVrXOONEI1UCN1W+zkiHSbzUNE9dZtQ==} - engines: {node: '>=16.0.0'} + '@smithy/abort-controller@4.0.2': + resolution: {integrity: sha512-Sl/78VDtgqKxN2+1qduaVE140XF+Xg+TafkncspwM4jFP/LHr76ZHmIY/y3V1M0mMLNk+Je6IGbzxy23RSToMw==} + engines: {node: '>=18.0.0'} - '@smithy/chunked-blob-reader-native@3.0.0': - resolution: {integrity: sha512-VDkpCYW+peSuM4zJip5WDfqvg2Mo/e8yxOv3VF1m11y7B8KKMKVFtmZWDe36Fvk8rGuWrPZHHXZ7rR7uM5yWyg==} + '@smithy/chunked-blob-reader-native@4.0.0': + resolution: {integrity: sha512-R9wM2yPmfEMsUmlMlIgSzOyICs0x9uu7UTHoccMyt7BWw8shcGM8HqB355+BZCPBcySvbTYMs62EgEQkNxz2ig==} + engines: {node: '>=18.0.0'} - '@smithy/chunked-blob-reader@3.0.0': - resolution: {integrity: sha512-sbnURCwjF0gSToGlsBiAmd1lRCmSn72nu9axfJu5lIx6RUEgHu6GwTMbqCdhQSi0Pumcm5vFxsi9XWXb2mTaoA==} + '@smithy/chunked-blob-reader@5.0.0': + resolution: {integrity: sha512-+sKqDBQqb036hh4NPaUiEkYFkTUGYzRsn3EuFhyfQfMy6oGHEUJDurLP9Ufb5dasr/XiAmPNMr6wa9afjQB+Gw==} + engines: {node: '>=18.0.0'} - '@smithy/config-resolver@3.0.5': - resolution: {integrity: sha512-SkW5LxfkSI1bUC74OtfBbdz+grQXYiPYolyu8VfpLIjEoN/sHVBlLeGXMQ1vX4ejkgfv6sxVbQJ32yF2cl1veA==} - engines: {node: '>=16.0.0'} + '@smithy/config-resolver@4.1.0': + resolution: {integrity: sha512-8smPlwhga22pwl23fM5ew4T9vfLUCeFXlcqNOCD5M5h8VmNPNUE9j6bQSuRXpDSV11L/E/SwEBQuW8hr6+nS1A==} + engines: {node: '>=18.0.0'} - '@smithy/core@2.3.2': - resolution: {integrity: sha512-in5wwt6chDBcUv1Lw1+QzZxN9fBffi+qOixfb65yK4sDuKG7zAUO9HAFqmVzsZM3N+3tTyvZjtnDXePpvp007Q==} - engines: {node: '>=16.0.0'} + '@smithy/core@3.2.0': + resolution: {integrity: sha512-k17bgQhVZ7YmUvA8at4af1TDpl0NDMBuBKJl8Yg0nrefwmValU+CnA5l/AriVdQNthU/33H3nK71HrLgqOPr1Q==} + engines: {node: '>=18.0.0'} - '@smithy/credential-provider-imds@3.2.0': - resolution: {integrity: sha512-0SCIzgd8LYZ9EJxUjLXBmEKSZR/P/w6l7Rz/pab9culE/RWuqelAKGJvn5qUOl8BgX8Yj5HWM50A5hiB/RzsgA==} - engines: {node: '>=16.0.0'} + '@smithy/credential-provider-imds@4.0.2': + resolution: {integrity: sha512-32lVig6jCaWBHnY+OEQ6e6Vnt5vDHaLiydGrwYMW9tPqO688hPGTYRamYJ1EptxEC2rAwJrHWmPoKRBl4iTa8w==} + engines: {node: '>=18.0.0'} - '@smithy/eventstream-codec@3.1.2': - resolution: {integrity: sha512-0mBcu49JWt4MXhrhRAlxASNy0IjDRFU+aWNDRal9OtUJvJNiwDuyKMUONSOjLjSCeGwZaE0wOErdqULer8r7yw==} + '@smithy/eventstream-codec@4.0.2': + resolution: {integrity: sha512-p+f2kLSK7ZrXVfskU/f5dzksKTewZk8pJLPvER3aFHPt76C2MxD9vNatSfLzzQSQB4FNO96RK4PSXfhD1TTeMQ==} + engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-browser@3.0.5': - resolution: {integrity: sha512-dEyiUYL/ekDfk+2Ra4GxV+xNnFoCmk1nuIXg+fMChFTrM2uI/1r9AdiTYzPqgb72yIv/NtAj6C3dG//1wwgakQ==} - engines: {node: '>=16.0.0'} + '@smithy/eventstream-serde-browser@4.0.2': + resolution: {integrity: sha512-CepZCDs2xgVUtH7ZZ7oDdZFH8e6Y2zOv8iiX6RhndH69nlojCALSKK+OXwZUgOtUZEUaZ5e1hULVCHYbCn7pug==} + engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-config-resolver@3.0.3': - resolution: {integrity: sha512-NVTYjOuYpGfrN/VbRQgn31x73KDLfCXCsFdad8DiIc3IcdxL+dYA9zEQPyOP7Fy2QL8CPy2WE4WCUD+ZsLNfaQ==} - engines: {node: '>=16.0.0'} + '@smithy/eventstream-serde-config-resolver@4.1.0': + resolution: {integrity: sha512-1PI+WPZ5TWXrfj3CIoKyUycYynYJgZjuQo8U+sphneOtjsgrttYybdqESFReQrdWJ+LKt6NEdbYzmmfDBmjX2A==} + engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-node@3.0.4': - resolution: {integrity: sha512-mjlG0OzGAYuUpdUpflfb9zyLrBGgmQmrobNT8b42ZTsGv/J03+t24uhhtVEKG/b2jFtPIHF74Bq+VUtbzEKOKg==} - engines: {node: '>=16.0.0'} + '@smithy/eventstream-serde-node@4.0.2': + resolution: {integrity: sha512-C5bJ/C6x9ENPMx2cFOirspnF9ZsBVnBMtP6BdPl/qYSuUawdGQ34Lq0dMcf42QTjUZgWGbUIZnz6+zLxJlb9aw==} + engines: {node: '>=18.0.0'} - '@smithy/eventstream-serde-universal@3.0.4': - resolution: {integrity: sha512-Od9dv8zh3PgOD7Vj4T3HSuox16n0VG8jJIM2gvKASL6aCtcS8CfHZDWe1Ik3ZXW6xBouU+45Q5wgoliWDZiJ0A==} - engines: {node: '>=16.0.0'} + '@smithy/eventstream-serde-universal@4.0.2': + resolution: {integrity: sha512-St8h9JqzvnbB52FtckiHPN4U/cnXcarMniXRXTKn0r4b4XesZOGiAyUdj1aXbqqn1icSqBlzzUsCl6nPB018ng==} + engines: {node: '>=18.0.0'} - '@smithy/fetch-http-handler@3.2.4': - resolution: {integrity: sha512-kBprh5Gs5h7ug4nBWZi1FZthdqSM+T7zMmsZxx0IBvWUn7dK3diz2SHn7Bs4dQGFDk8plDv375gzenDoNwrXjg==} + '@smithy/fetch-http-handler@5.0.2': + resolution: {integrity: sha512-+9Dz8sakS9pe7f2cBocpJXdeVjMopUDLgZs1yWeu7h++WqSbjUYv/JAJwKwXw1HV6gq1jyWjxuyn24E2GhoEcQ==} + engines: {node: '>=18.0.0'} - '@smithy/hash-blob-browser@3.1.2': - resolution: {integrity: sha512-hAbfqN2UbISltakCC2TP0kx4LqXBttEv2MqSPE98gVuDFMf05lU+TpC41QtqGP3Ff5A3GwZMPfKnEy0VmEUpmg==} + '@smithy/hash-blob-browser@4.0.2': + resolution: {integrity: sha512-3g188Z3DyhtzfBRxpZjU8R9PpOQuYsbNnyStc/ZVS+9nVX1f6XeNOa9IrAh35HwwIZg+XWk8bFVtNINVscBP+g==} + engines: {node: '>=18.0.0'} - '@smithy/hash-node@3.0.3': - resolution: {integrity: sha512-2ctBXpPMG+B3BtWSGNnKELJ7SH9e4TNefJS0cd2eSkOOROeBnnVBnAy9LtJ8tY4vUEoe55N4CNPxzbWvR39iBw==} - engines: {node: '>=16.0.0'} + '@smithy/hash-node@4.0.2': + resolution: {integrity: sha512-VnTpYPnRUE7yVhWozFdlxcYknv9UN7CeOqSrMH+V877v4oqtVYuoqhIhtSjmGPvYrYnAkaM61sLMKHvxL138yg==} + engines: {node: '>=18.0.0'} - '@smithy/hash-stream-node@3.1.2': - resolution: {integrity: sha512-PBgDMeEdDzi6JxKwbfBtwQG9eT9cVwsf0dZzLXoJF4sHKHs5HEo/3lJWpn6jibfJwT34I1EBXpBnZE8AxAft6g==} - engines: {node: '>=16.0.0'} + '@smithy/hash-stream-node@4.0.2': + resolution: {integrity: sha512-POWDuTznzbIwlEXEvvXoPMS10y0WKXK790soe57tFRfvf4zBHyzE529HpZMqmDdwG9MfFflnyzndUQ8j78ZdSg==} + engines: {node: '>=18.0.0'} - '@smithy/invalid-dependency@3.0.3': - resolution: {integrity: sha512-ID1eL/zpDULmHJbflb864k72/SNOZCADRc9i7Exq3RUNJw6raWUSlFEQ+3PX3EYs++bTxZB2dE9mEHTQLv61tw==} + '@smithy/invalid-dependency@4.0.2': + resolution: {integrity: sha512-GatB4+2DTpgWPday+mnUkoumP54u/MDM/5u44KF9hIu8jF0uafZtQLcdfIKkIcUNuF/fBojpLEHZS/56JqPeXQ==} + engines: {node: '>=18.0.0'} '@smithy/is-array-buffer@2.2.0': resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==} engines: {node: '>=14.0.0'} - '@smithy/is-array-buffer@3.0.0': - resolution: {integrity: sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==} - engines: {node: '>=16.0.0'} + '@smithy/is-array-buffer@4.0.0': + resolution: {integrity: sha512-saYhF8ZZNoJDTvJBEWgeBccCg+yvp1CX+ed12yORU3NilJScfc6gfch2oVb4QgxZrGUx3/ZJlb+c/dJbyupxlw==} + engines: {node: '>=18.0.0'} - '@smithy/md5-js@3.0.3': - resolution: {integrity: sha512-O/SAkGVwpWmelpj/8yDtsaVe6sINHLB1q8YE/+ZQbDxIw3SRLbTZuRaI10K12sVoENdnHqzPp5i3/H+BcZ3m3Q==} + '@smithy/md5-js@4.0.2': + resolution: {integrity: sha512-Hc0R8EiuVunUewCse2syVgA2AfSRco3LyAv07B/zCOMa+jpXI9ll+Q21Nc6FAlYPcpNcAXqBzMhNs1CD/pP2bA==} + engines: {node: '>=18.0.0'} - '@smithy/middleware-content-length@3.0.5': - resolution: {integrity: sha512-ILEzC2eyxx6ncej3zZSwMpB5RJ0zuqH7eMptxC4KN3f+v9bqT8ohssKbhNR78k/2tWW+KS5Spw+tbPF4Ejyqvw==} - engines: {node: '>=16.0.0'} + '@smithy/middleware-content-length@4.0.2': + resolution: {integrity: sha512-hAfEXm1zU+ELvucxqQ7I8SszwQ4znWMbNv6PLMndN83JJN41EPuS93AIyh2N+gJ6x8QFhzSO6b7q2e6oClDI8A==} + engines: {node: '>=18.0.0'} - '@smithy/middleware-endpoint@3.1.0': - resolution: {integrity: sha512-5y5aiKCEwg9TDPB4yFE7H6tYvGFf1OJHNczeY10/EFF8Ir8jZbNntQJxMWNfeQjC1mxPsaQ6mR9cvQbf+0YeMw==} - engines: {node: '>=16.0.0'} + '@smithy/middleware-endpoint@4.1.0': + resolution: {integrity: sha512-xhLimgNCbCzsUppRTGXWkZywksuTThxaIB0HwbpsVLY5sceac4e1TZ/WKYqufQLaUy+gUSJGNdwD2jo3cXL0iA==} + engines: {node: '>=18.0.0'} - '@smithy/middleware-retry@3.0.14': - resolution: {integrity: sha512-7ZaWZJOjUxa5hgmuMspyt8v/zVsh0GXYuF7OvCmdcbVa/xbnKQoYC+uYKunAqRGTkxjOyuOCw9rmFUFOqqC0eQ==} - engines: {node: '>=16.0.0'} + '@smithy/middleware-retry@4.1.0': + resolution: {integrity: sha512-2zAagd1s6hAaI/ap6SXi5T3dDwBOczOMCSkkYzktqN1+tzbk1GAsHNAdo/1uzxz3Ky02jvZQwbi/vmDA6z4Oyg==} + engines: {node: '>=18.0.0'} - '@smithy/middleware-serde@3.0.3': - resolution: {integrity: sha512-puUbyJQBcg9eSErFXjKNiGILJGtiqmuuNKEYNYfUD57fUl4i9+mfmThtQhvFXU0hCVG0iEJhvQUipUf+/SsFdA==} - engines: {node: '>=16.0.0'} + '@smithy/middleware-serde@4.0.3': + resolution: {integrity: sha512-rfgDVrgLEVMmMn0BI8O+8OVr6vXzjV7HZj57l0QxslhzbvVfikZbVfBVthjLHqib4BW44QhcIgJpvebHlRaC9A==} + engines: {node: '>=18.0.0'} - '@smithy/middleware-stack@3.0.3': - resolution: {integrity: sha512-r4klY9nFudB0r9UdSMaGSyjyQK5adUyPnQN/ZM6M75phTxOdnc/AhpvGD1fQUvgmqjQEBGCwpnPbDm8pH5PapA==} - engines: {node: '>=16.0.0'} + '@smithy/middleware-stack@4.0.2': + resolution: {integrity: sha512-eSPVcuJJGVYrFYu2hEq8g8WWdJav3sdrI4o2c6z/rjnYDd3xH9j9E7deZQCzFn4QvGPouLngH3dQ+QVTxv5bOQ==} + engines: {node: '>=18.0.0'} - '@smithy/node-config-provider@3.1.4': - resolution: {integrity: sha512-YvnElQy8HR4vDcAjoy7Xkx9YT8xZP4cBXcbJSgm/kxmiQu08DwUwj8rkGnyoJTpfl/3xYHH+d8zE+eHqoDCSdQ==} - engines: {node: '>=16.0.0'} + '@smithy/node-config-provider@4.0.2': + resolution: {integrity: sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==} + engines: {node: '>=18.0.0'} - '@smithy/node-http-handler@3.1.4': - resolution: {integrity: sha512-+UmxgixgOr/yLsUxcEKGH0fMNVteJFGkmRltYFHnBMlogyFdpzn2CwqWmxOrfJELhV34v0WSlaqG1UtE1uXlJg==} - engines: {node: '>=16.0.0'} + '@smithy/node-http-handler@4.0.4': + resolution: {integrity: sha512-/mdqabuAT3o/ihBGjL94PUbTSPSRJ0eeVTdgADzow0wRJ0rN4A27EOrtlK56MYiO1fDvlO3jVTCxQtQmK9dZ1g==} + engines: {node: '>=18.0.0'} - '@smithy/property-provider@3.1.3': - resolution: {integrity: sha512-zahyOVR9Q4PEoguJ/NrFP4O7SMAfYO1HLhB18M+q+Z4KFd4V2obiMnlVoUFzFLSPeVt1POyNWneHHrZaTMoc/g==} - engines: {node: '>=16.0.0'} + '@smithy/property-provider@4.0.2': + resolution: {integrity: sha512-wNRoQC1uISOuNc2s4hkOYwYllmiyrvVXWMtq+TysNRVQaHm4yoafYQyjN/goYZS+QbYlPIbb/QRjaUZMuzwQ7A==} + engines: {node: '>=18.0.0'} - '@smithy/protocol-http@4.1.0': - resolution: {integrity: sha512-dPVoHYQ2wcHooGXg3LQisa1hH0e4y0pAddPMeeUPipI1tEOqL6A4N0/G7abeq+K8wrwSgjk4C0wnD1XZpJm5aA==} - engines: {node: '>=16.0.0'} + '@smithy/protocol-http@5.1.0': + resolution: {integrity: sha512-KxAOL1nUNw2JTYrtviRRjEnykIDhxc84qMBzxvu1MUfQfHTuBlCG7PA6EdVwqpJjH7glw7FqQoFxUJSyBQgu7g==} + engines: {node: '>=18.0.0'} - '@smithy/querystring-builder@3.0.3': - resolution: {integrity: sha512-vyWckeUeesFKzCDaRwWLUA1Xym9McaA6XpFfAK5qI9DKJ4M33ooQGqvM4J+LalH4u/Dq9nFiC8U6Qn1qi0+9zw==} - engines: {node: '>=16.0.0'} + '@smithy/querystring-builder@4.0.2': + resolution: {integrity: sha512-NTOs0FwHw1vimmQM4ebh+wFQvOwkEf/kQL6bSM1Lock+Bv4I89B3hGYoUEPkmvYPkDKyp5UdXJYu+PoTQ3T31Q==} + engines: {node: '>=18.0.0'} - '@smithy/querystring-parser@3.0.3': - resolution: {integrity: sha512-zahM1lQv2YjmznnfQsWbYojFe55l0SLG/988brlLv1i8z3dubloLF+75ATRsqPBboUXsW6I9CPGE5rQgLfY0vQ==} - engines: {node: '>=16.0.0'} + '@smithy/querystring-parser@4.0.2': + resolution: {integrity: sha512-v6w8wnmZcVXjfVLjxw8qF7OwESD9wnpjp0Dqry/Pod0/5vcEA3qxCr+BhbOHlxS8O+29eLpT3aagxXGwIoEk7Q==} + engines: {node: '>=18.0.0'} - '@smithy/service-error-classification@3.0.3': - resolution: {integrity: sha512-Jn39sSl8cim/VlkLsUhRFq/dKDnRUFlfRkvhOJaUbLBXUsLRLNf9WaxDv/z9BjuQ3A6k/qE8af1lsqcwm7+DaQ==} - engines: {node: '>=16.0.0'} + '@smithy/service-error-classification@4.0.2': + resolution: {integrity: sha512-LA86xeFpTKn270Hbkixqs5n73S+LVM0/VZco8dqd+JT75Dyx3Lcw/MraL7ybjmz786+160K8rPOmhsq0SocoJQ==} + engines: {node: '>=18.0.0'} - '@smithy/shared-ini-file-loader@3.1.4': - resolution: {integrity: sha512-qMxS4hBGB8FY2GQqshcRUy1K6k8aBWP5vwm8qKkCT3A9K2dawUwOIJfqh9Yste/Bl0J2lzosVyrXDj68kLcHXQ==} - engines: {node: '>=16.0.0'} + '@smithy/shared-ini-file-loader@4.0.2': + resolution: {integrity: sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==} + engines: {node: '>=18.0.0'} - '@smithy/signature-v4@4.1.0': - resolution: {integrity: sha512-aRryp2XNZeRcOtuJoxjydO6QTaVhxx/vjaR+gx7ZjaFgrgPRyZ3HCTbfwqYj6ZWEBHkCSUfcaymKPURaByukag==} - engines: {node: '>=16.0.0'} + '@smithy/signature-v4@5.0.2': + resolution: {integrity: sha512-Mz+mc7okA73Lyz8zQKJNyr7lIcHLiPYp0+oiqiMNc/t7/Kf2BENs5d63pEj7oPqdjaum6g0Fc8wC78dY1TgtXw==} + engines: {node: '>=18.0.0'} - '@smithy/smithy-client@3.1.12': - resolution: {integrity: sha512-wtm8JtsycthkHy1YA4zjIh2thJgIQ9vGkoR639DBx5lLlLNU0v4GARpQZkr2WjXue74nZ7MiTSWfVrLkyD8RkA==} - engines: {node: '>=16.0.0'} + '@smithy/smithy-client@4.2.0': + resolution: {integrity: sha512-Qs65/w30pWV7LSFAez9DKy0Koaoh3iHhpcpCCJ4waj/iqwsuSzJna2+vYwq46yBaqO5ZbP9TjUsATUNxrKeBdw==} + engines: {node: '>=18.0.0'} - '@smithy/types@3.3.0': - resolution: {integrity: sha512-IxvBBCTFDHbVoK7zIxqA1ZOdc4QfM5HM7rGleCuHi7L1wnKv5Pn69xXJQ9hgxH60ZVygH9/JG0jRgtUncE3QUA==} - engines: {node: '>=16.0.0'} + '@smithy/types@4.2.0': + resolution: {integrity: sha512-7eMk09zQKCO+E/ivsjQv+fDlOupcFUCSC/L2YUPgwhvowVGWbPQHjEFcmjt7QQ4ra5lyowS92SV53Zc6XD4+fg==} + engines: {node: '>=18.0.0'} - '@smithy/url-parser@3.0.3': - resolution: {integrity: sha512-pw3VtZtX2rg+s6HMs6/+u9+hu6oY6U7IohGhVNnjbgKy86wcIsSZwgHrFR+t67Uyxvp4Xz3p3kGXXIpTNisq8A==} + '@smithy/url-parser@4.0.2': + resolution: {integrity: sha512-Bm8n3j2ScqnT+kJaClSVCMeiSenK6jVAzZCNewsYWuZtnBehEz4r2qP0riZySZVfzB+03XZHJeqfmJDkeeSLiQ==} + engines: {node: '>=18.0.0'} - '@smithy/util-base64@3.0.0': - resolution: {integrity: sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==} - engines: {node: '>=16.0.0'} + '@smithy/util-base64@4.0.0': + resolution: {integrity: sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==} + engines: {node: '>=18.0.0'} - '@smithy/util-body-length-browser@3.0.0': - resolution: {integrity: sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==} + '@smithy/util-body-length-browser@4.0.0': + resolution: {integrity: sha512-sNi3DL0/k64/LO3A256M+m3CDdG6V7WKWHdAiBBMUN8S3hK3aMPhwnPik2A/a2ONN+9doY9UxaLfgqsIRg69QA==} + engines: {node: '>=18.0.0'} - '@smithy/util-body-length-node@3.0.0': - resolution: {integrity: sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==} - engines: {node: '>=16.0.0'} + '@smithy/util-body-length-node@4.0.0': + resolution: {integrity: sha512-q0iDP3VsZzqJyje8xJWEJCNIu3lktUGVoSy1KB0UWym2CL1siV3artm+u1DFYTLejpsrdGyCSWBdGNjJzfDPjg==} + engines: {node: '>=18.0.0'} '@smithy/util-buffer-from@2.2.0': resolution: {integrity: sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==} engines: {node: '>=14.0.0'} - '@smithy/util-buffer-from@3.0.0': - resolution: {integrity: sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==} - engines: {node: '>=16.0.0'} + '@smithy/util-buffer-from@4.0.0': + resolution: {integrity: sha512-9TOQ7781sZvddgO8nxueKi3+yGvkY35kotA0Y6BWRajAv8jjmigQ1sBwz0UX47pQMYXJPahSKEKYFgt+rXdcug==} + engines: {node: '>=18.0.0'} - '@smithy/util-config-provider@3.0.0': - resolution: {integrity: sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==} - engines: {node: '>=16.0.0'} + '@smithy/util-config-provider@4.0.0': + resolution: {integrity: sha512-L1RBVzLyfE8OXH+1hsJ8p+acNUSirQnWQ6/EgpchV88G6zGBTDPdXiiExei6Z1wR2RxYvxY/XLw6AMNCCt8H3w==} + engines: {node: '>=18.0.0'} - '@smithy/util-defaults-mode-browser@3.0.14': - resolution: {integrity: sha512-0iwTgKKmAIf+vFLV8fji21Jb2px11ktKVxbX6LIDPAUJyWQqGqBVfwba7xwa1f2FZUoolYQgLvxQEpJycXuQ5w==} - engines: {node: '>= 10.0.0'} + '@smithy/util-defaults-mode-browser@4.0.8': + resolution: {integrity: sha512-ZTypzBra+lI/LfTYZeop9UjoJhhGRTg3pxrNpfSTQLd3AJ37r2z4AXTKpq1rFXiiUIJsYyFgNJdjWRGP/cbBaQ==} + engines: {node: '>=18.0.0'} - '@smithy/util-defaults-mode-node@3.0.14': - resolution: {integrity: sha512-e9uQarJKfXApkTMMruIdxHprhcXivH1flYCe8JRDTzkkLx8dA3V5J8GZlST9yfDiRWkJpZJlUXGN9Rc9Ade3OQ==} - engines: {node: '>= 10.0.0'} + '@smithy/util-defaults-mode-node@4.0.8': + resolution: {integrity: sha512-Rgk0Jc/UDfRTzVthye/k2dDsz5Xxs9LZaKCNPgJTRyoyBoeiNCnHsYGOyu1PKN+sDyPnJzMOz22JbwxzBp9NNA==} + engines: {node: '>=18.0.0'} - '@smithy/util-endpoints@2.0.5': - resolution: {integrity: sha512-ReQP0BWihIE68OAblC/WQmDD40Gx+QY1Ez8mTdFMXpmjfxSyz2fVQu3A4zXRfQU9sZXtewk3GmhfOHswvX+eNg==} - engines: {node: '>=16.0.0'} + '@smithy/util-endpoints@3.0.2': + resolution: {integrity: sha512-6QSutU5ZyrpNbnd51zRTL7goojlcnuOB55+F9VBD+j8JpRY50IGamsjlycrmpn8PQkmJucFW8A0LSfXj7jjtLQ==} + engines: {node: '>=18.0.0'} - '@smithy/util-hex-encoding@3.0.0': - resolution: {integrity: sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==} - engines: {node: '>=16.0.0'} + '@smithy/util-hex-encoding@4.0.0': + resolution: {integrity: sha512-Yk5mLhHtfIgW2W2WQZWSg5kuMZCVbvhFmC7rV4IO2QqnZdbEFPmQnCcGMAX2z/8Qj3B9hYYNjZOhWym+RwhePw==} + engines: {node: '>=18.0.0'} - '@smithy/util-middleware@3.0.3': - resolution: {integrity: sha512-l+StyYYK/eO3DlVPbU+4Bi06Jjal+PFLSMmlWM1BEwyLxZ3aKkf1ROnoIakfaA7mC6uw3ny7JBkau4Yc+5zfWw==} - engines: {node: '>=16.0.0'} + '@smithy/util-middleware@4.0.2': + resolution: {integrity: sha512-6GDamTGLuBQVAEuQ4yDQ+ti/YINf/MEmIegrEeg7DdB/sld8BX1lqt9RRuIcABOhAGTA50bRbPzErez7SlDtDQ==} + engines: {node: '>=18.0.0'} - '@smithy/util-retry@3.0.3': - resolution: {integrity: sha512-AFw+hjpbtVApzpNDhbjNG5NA3kyoMs7vx0gsgmlJF4s+yz1Zlepde7J58zpIRIsdjc+emhpAITxA88qLkPF26w==} - engines: {node: '>=16.0.0'} + '@smithy/util-retry@4.0.2': + resolution: {integrity: sha512-Qryc+QG+7BCpvjloFLQrmlSd0RsVRHejRXd78jNO3+oREueCjwG1CCEH1vduw/ZkM1U9TztwIKVIi3+8MJScGg==} + engines: {node: '>=18.0.0'} - '@smithy/util-stream@3.1.3': - resolution: {integrity: sha512-FIv/bRhIlAxC0U7xM1BCnF2aDRPq0UaelqBHkM2lsCp26mcBbgI0tCVTv+jGdsQLUmAMybua/bjDsSu8RQHbmw==} - engines: {node: '>=16.0.0'} + '@smithy/util-stream@4.2.0': + resolution: {integrity: sha512-Vj1TtwWnuWqdgQI6YTUF5hQ/0jmFiOYsc51CSMgj7QfyO+RF4EnT2HNjoviNlOOmgzgvf3f5yno+EiC4vrnaWQ==} + engines: {node: '>=18.0.0'} - '@smithy/util-uri-escape@3.0.0': - resolution: {integrity: sha512-LqR7qYLgZTD7nWLBecUi4aqolw8Mhza9ArpNEQ881MJJIU2sE5iHCK6TdyqqzcDLy0OPe10IY4T8ctVdtynubg==} - engines: {node: '>=16.0.0'} + '@smithy/util-uri-escape@4.0.0': + resolution: {integrity: sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==} + engines: {node: '>=18.0.0'} '@smithy/util-utf8@2.3.0': resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==} engines: {node: '>=14.0.0'} - '@smithy/util-utf8@3.0.0': - resolution: {integrity: sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==} - engines: {node: '>=16.0.0'} + '@smithy/util-utf8@4.0.0': + resolution: {integrity: sha512-b+zebfKCfRdgNJDknHCob3O7FpeYQN6ZG6YLExMcasDHsCXlsXCEuiPZeLnJLpwa5dvPetGlnGCiMHuLwGvFow==} + engines: {node: '>=18.0.0'} - '@smithy/util-waiter@3.1.2': - resolution: {integrity: sha512-4pP0EV3iTsexDx+8PPGAKCQpd/6hsQBaQhqWzU4hqKPHN5epPsxKbvUTIiYIHTxaKt6/kEaqPBpu/ufvfbrRzw==} - engines: {node: '>=16.0.0'} + '@smithy/util-waiter@4.0.3': + resolution: {integrity: sha512-JtaY3FxmD+te+KSI2FJuEcfNC9T/DGGVf551babM7fAaXhjJUt7oSYurH1Devxd2+BOSUACCgt3buinx4UnmEA==} + engines: {node: '>=18.0.0'} '@tsconfig/node10@1.0.11': resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} @@ -952,8 +966,8 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@types/aws-lambda@8.10.140': - resolution: {integrity: sha512-4Dh3dk2TUcbdfHrX0Al90mNGJDvA9NBiTQPzbrjGi/dLxzKCGOYgT8YQ47jUKNFALkAJAadifq0pzyjIUlhVhg==} + '@types/aws-lambda@8.10.148': + resolution: {integrity: sha512-JL+2cfkY9ODQeE06hOxSFNkafjNk4JRBgY837kpoq1GHDttq2U3BA9IzKOWxS4DLjKoymGB4i9uBrlCkjUl1yg==} '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -964,8 +978,8 @@ packages: '@types/babel__template@7.4.4': resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} - '@types/babel__traverse@7.20.6': - resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==} + '@types/babel__traverse@7.20.7': + resolution: {integrity: sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==} '@types/duplexify@3.6.4': resolution: {integrity: sha512-2eahVPsd+dy3CL6FugAzJcxoraWhUghZGEQJns1kTKfCXWKJ5iG/VkaB05wRVrDKHfOFKqb0X0kXh91eE99RZg==} @@ -982,30 +996,33 @@ packages: '@types/istanbul-reports@3.0.4': resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} - '@types/jest@29.5.12': - resolution: {integrity: sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==} + '@types/jest@29.5.14': + resolution: {integrity: sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==} '@types/lru-cache@5.1.1': resolution: {integrity: sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==} - '@types/node@20.14.9': - resolution: {integrity: sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg==} + '@types/node@20.17.28': + resolution: {integrity: sha512-DHlH/fNL6Mho38jTy7/JT7sn2wnXI+wULR6PV4gy4VHLVvnrV/d3pHAMQHhc4gjdLmK2ZiPoMxzp6B3yRajLSQ==} '@types/stack-utils@2.0.3': resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} + '@types/uuid@9.0.8': + resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==} + '@types/yargs-parser@21.0.3': resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} - '@types/yargs@17.0.32': - resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} + '@types/yargs@17.0.33': + resolution: {integrity: sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==} - acorn-walk@8.3.3: - resolution: {integrity: sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw==} + acorn-walk@8.3.4: + resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} engines: {node: '>=0.4.0'} - acorn@8.12.0: - resolution: {integrity: sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==} + acorn@8.14.1: + resolution: {integrity: sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==} engines: {node: '>=0.4.0'} hasBin: true @@ -1017,10 +1034,6 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - ansi-styles@3.2.1: - resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} - engines: {node: '>=4'} - ansi-styles@4.3.0: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} @@ -1042,8 +1055,11 @@ packages: asn1.js@5.4.1: resolution: {integrity: sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==} - aws-cdk-lib@2.177.0: - resolution: {integrity: sha512-nTnHAwjZaPJ5gfJjtzE/MyK6q0a66nWthoJl7l8srucRb+I30dczhbbXor6QCdVpJaTRAEliMOMq23aglsAQbg==} + async@3.2.6: + resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} + + aws-cdk-lib@2.186.0: + resolution: {integrity: sha512-y/DD4h8CbhwGyPTpoHELATavZe5FWcy1xSuLlReOd3+cCRZ9rAzVSFdPB8kSJUD4nBPrIeGkW1u8ItUOhms17w==} engines: {node: '>= 14.15.0'} peerDependencies: constructs: ^10.0.0 @@ -1079,8 +1095,8 @@ packages: resolution: {integrity: sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - babel-preset-current-node-syntax@1.0.1: - resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} + babel-preset-current-node-syntax@1.1.0: + resolution: {integrity: sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==} peerDependencies: '@babel/core': ^7.0.0 @@ -1093,8 +1109,8 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - bn.js@4.12.0: - resolution: {integrity: sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==} + bn.js@4.12.1: + resolution: {integrity: sha512-k8TVBiPkPJT9uHLdOKfFpqcfprwBFOAAXXozRubr7R7PfIuKvQlzcI4M0pALeqXN09vdaMbUdUj+pass+uULAg==} bn.js@5.2.1: resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} @@ -1105,12 +1121,15 @@ packages: brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - browserslist@4.23.1: - resolution: {integrity: sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==} + browserslist@4.24.4: + resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true @@ -1136,12 +1155,8 @@ packages: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} - caniuse-lite@1.0.30001638: - resolution: {integrity: sha512-5SuJUJ7cZnhPpeLHaH0c/HPAnAHZvS6ElWyHK9GSIbVOQABLzowiI2pjmpvZ1WEbkyz46iFd4UXlOHR5SqgfMQ==} - - chalk@2.4.2: - resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} - engines: {node: '>=4'} + caniuse-lite@1.0.30001707: + resolution: {integrity: sha512-3qtRjw/HQSMlDWf+X79N206fepf4SOOU6SQLMaq/0KkZLmSjPxAkBOQQ+FxbHKfHmYLZFfdWsO3KA90ceHPSnw==} chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} @@ -1155,8 +1170,8 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} - cjs-module-lexer@1.3.1: - resolution: {integrity: sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==} + cjs-module-lexer@1.4.3: + resolution: {integrity: sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==} cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} @@ -1169,25 +1184,18 @@ packages: collect-v8-coverage@1.0.2: resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==} - color-convert@1.9.3: - resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} - color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} - color-name@1.1.3: - resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} - color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - constructs@10.3.0: - resolution: {integrity: sha512-vbK8i3rIb/xwZxSpTjz3SagHn1qq9BChLEfy5Hf6fB3/2eFbrwt2n9kHwQcS0CPTRBesreeAcsJfMq2229FnbQ==} - engines: {node: '>= 16.14.0'} + constructs@10.4.2: + resolution: {integrity: sha512-wsNxBlAott2qg8Zv87q3eYZYgheb9lchtBfjHzzLHtXbttwSrHPs1NNQbBrmbb1YZvYg2+Vh0Dor76w4mFxJkA==} convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -1208,8 +1216,8 @@ packages: resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} engines: {node: '>= 12'} - debug@4.3.5: - resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==} + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1244,8 +1252,13 @@ packages: duplexify@4.1.3: resolution: {integrity: sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==} - electron-to-chromium@1.4.812: - resolution: {integrity: sha512-7L8fC2Ey/b6SePDFKR2zHAy4mbdp1/38Yk5TsARO66W3hC5KEaeKMMHoxwtuH+jcu2AYLSn9QX04i95t6Fl1Hg==} + ejs@3.1.10: + resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} + engines: {node: '>=0.10.0'} + hasBin: true + + electron-to-chromium@1.5.126: + resolution: {integrity: sha512-AtH1uLcTC72LA4vfYcEJJkrMk/MY/X0ub8Hv7QGAePW2JkeUFHEL/QfS4J77R6M87Sss8O0OcqReSaN1bpyA+Q==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -1260,19 +1273,15 @@ packages: error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} - esbuild@0.25.0: - resolution: {integrity: sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==} + esbuild@0.25.1: + resolution: {integrity: sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==} engines: {node: '>=18'} hasBin: true - escalade@3.1.2: - resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==} + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} - escape-string-regexp@1.0.5: - resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} - engines: {node: '>=0.8.0'} - escape-string-regexp@2.0.0: resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} engines: {node: '>=8'} @@ -1308,6 +1317,9 @@ packages: resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} engines: {node: ^12.20 || >= 14.13} + filelist@1.0.4: + resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} + fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} @@ -1363,10 +1375,6 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} - engines: {node: '>=4'} - has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -1382,8 +1390,8 @@ packages: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} - import-local@3.1.0: - resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==} + import-local@3.2.0: + resolution: {integrity: sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==} engines: {node: '>=8'} hasBin: true @@ -1401,8 +1409,8 @@ packages: is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} - is-core-module@2.14.0: - resolution: {integrity: sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==} + is-core-module@2.16.1: + resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} engines: {node: '>= 0.4'} is-fullwidth-code-point@3.0.0: @@ -1432,8 +1440,8 @@ packages: resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} - istanbul-lib-instrument@6.0.2: - resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==} + istanbul-lib-instrument@6.0.3: + resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==} engines: {node: '>=10'} istanbul-lib-report@3.0.1: @@ -1448,6 +1456,11 @@ packages: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} + jake@10.9.2: + resolution: {integrity: sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==} + engines: {node: '>=10'} + hasBin: true + jest-changed-files@29.7.0: resolution: {integrity: sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -1584,9 +1597,9 @@ packages: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} hasBin: true - jsesc@2.5.2: - resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} - engines: {node: '>=4'} + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} hasBin: true json-parse-even-better-errors@2.3.1: @@ -1649,8 +1662,15 @@ packages: minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + minimatch@5.1.6: + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} + engines: {node: '>=10'} + + mnemonist@0.38.3: + resolution: {integrity: sha512-2K9QYubXx/NAjv4VLq1d1Ly8pWNC5L3BrixtdkyTegXWJIqY+zLNDhhX/A+ZwWt70tB1S8H4BE8FLYEFyNoOBw==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -1666,8 +1686,8 @@ packages: node-int64@0.4.0: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} - node-releases@2.0.14: - resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} + node-releases@2.0.19: + resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} @@ -1677,6 +1697,9 @@ packages: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} + obliterator@1.6.1: + resolution: {integrity: sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig==} + once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} @@ -1719,15 +1742,15 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} - picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - pirates@4.0.6: - resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} + pirates@4.0.7: + resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} engines: {node: '>= 6'} pkg-dir@4.2.0: @@ -1764,12 +1787,13 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} - resolve.exports@2.0.2: - resolution: {integrity: sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==} + resolve.exports@2.0.3: + resolution: {integrity: sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==} engines: {node: '>=10'} - resolve@1.22.8: - resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} + resolve@1.22.10: + resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==} + engines: {node: '>= 0.4'} hasBin: true safe-buffer@5.2.1: @@ -1782,8 +1806,8 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - semver@7.6.2: - resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} + semver@7.7.1: + resolution: {integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==} engines: {node: '>=10'} hasBin: true @@ -1852,12 +1876,8 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - strnum@1.0.5: - resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==} - - supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} - engines: {node: '>=4'} + strnum@1.1.2: + resolution: {integrity: sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==} supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} @@ -1878,16 +1898,12 @@ packages: tmpl@1.0.5: resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} - to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} - engines: {node: '>=4'} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} - ts-jest@29.1.5: - resolution: {integrity: sha512-UuClSYxM7byvvYfyWdFI+/2UxMmwNyJb0NPkZPQE2hew3RurV7l7zURgOHAd/1I1ZdPpe3GUsXNXAcN8TFKSIg==} + ts-jest@29.3.0: + resolution: {integrity: sha512-4bfGBX7Gd1Aqz3SyeDS9O276wEU/BInZxskPrbhZLyv+c1wskDCqDFMJQJLWrIr/fKoAH4GE5dKUlrdyvo+39A==} engines: {node: ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -1924,8 +1940,8 @@ packages: '@swc/wasm': optional: true - tslib@2.6.3: - resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} type-detect@4.0.8: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} @@ -1935,16 +1951,20 @@ packages: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} + type-fest@4.38.0: + resolution: {integrity: sha512-2dBz5D5ycHIoliLYLi0Q2V7KRaDlH0uWIvmk7TYlAg5slqwiPv1ezJdZm1QEM0xgk29oYWMCbIG7E6gHpvChlg==} + engines: {node: '>=16'} + typescript@5.2.2: resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} hasBin: true - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@6.19.8: + resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} - update-browserslist-db@1.0.16: - resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==} + update-browserslist-db@1.1.3: + resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' @@ -1952,6 +1972,10 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + uuid@10.0.0: + resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==} + hasBin: true + uuid@9.0.1: resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==} hasBin: true @@ -2016,957 +2040,985 @@ snapshots: '@ampproject/remapping@2.3.0': dependencies: - '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/gen-mapping': 0.3.8 '@jridgewell/trace-mapping': 0.3.25 - '@aws-cdk/asset-awscli-v1@2.2.225': {} - - '@aws-cdk/asset-kubectl-v20@2.1.4': {} + '@aws-cdk/asset-awscli-v1@2.2.229': {} '@aws-cdk/asset-node-proxy-agent-v6@2.1.0': {} - '@aws-cdk/aws-cognito-identitypool-alpha@2.95.0-alpha.0(aws-cdk-lib@2.177.0(constructs@10.3.0))(constructs@10.3.0)': + '@aws-cdk/aws-cognito-identitypool-alpha@2.186.0-alpha.0(aws-cdk-lib@2.186.0(constructs@10.4.2))(constructs@10.4.2)': dependencies: - aws-cdk-lib: 2.177.0(constructs@10.3.0) - constructs: 10.3.0 + aws-cdk-lib: 2.186.0(constructs@10.4.2) + constructs: 10.4.2 - '@aws-cdk/cloud-assembly-schema@39.2.20': {} + '@aws-cdk/cloud-assembly-schema@40.7.0': {} - '@aws-crypto/cache-material@4.0.1': + '@aws-crypto/branch-keystore-node@4.2.0': dependencies: - '@aws-crypto/material-management': 4.0.1 - '@aws-crypto/serialize': 4.0.1 - '@types/lru-cache': 5.1.1 - lru-cache: 6.0.0 - tslib: 2.6.3 - - '@aws-crypto/caching-materials-manager-node@4.0.1': - dependencies: - '@aws-crypto/cache-material': 4.0.1 - '@aws-crypto/material-management-node': 4.0.1 - tslib: 2.6.3 + '@aws-crypto/kms-keyring': 4.2.0 + '@aws-sdk/client-dynamodb': 3.775.0 + '@aws-sdk/util-dynamodb': 3.775.0(@aws-sdk/client-dynamodb@3.775.0) + tslib: 2.8.1 + transitivePeerDependencies: + - aws-crt - '@aws-crypto/client-node@4.0.1': + '@aws-crypto/cache-material@4.2.0': dependencies: - '@aws-crypto/caching-materials-manager-node': 4.0.1 - '@aws-crypto/decrypt-node': 4.0.1 - '@aws-crypto/encrypt-node': 4.0.1 - '@aws-crypto/kms-keyring-node': 4.0.1 - '@aws-crypto/material-management-node': 4.0.1 - '@aws-crypto/raw-aes-keyring-node': 4.0.1 - '@aws-crypto/raw-rsa-keyring-node': 4.0.1 - tslib: 2.6.3 + '@aws-crypto/material-management': 4.2.0 + '@aws-crypto/serialize': 4.2.0 + '@types/lru-cache': 5.1.1 + lru-cache: 6.0.0 + tslib: 2.8.1 + + '@aws-crypto/caching-materials-manager-node@4.2.0': + dependencies: + '@aws-crypto/cache-material': 4.2.0 + '@aws-crypto/material-management-node': 4.2.0 + tslib: 2.8.1 + + '@aws-crypto/client-node@4.2.0': + dependencies: + '@aws-crypto/branch-keystore-node': 4.2.0 + '@aws-crypto/caching-materials-manager-node': 4.2.0 + '@aws-crypto/decrypt-node': 4.2.0 + '@aws-crypto/encrypt-node': 4.2.0 + '@aws-crypto/kms-keyring': 4.2.0 + '@aws-crypto/kms-keyring-node': 4.2.0 + '@aws-crypto/material-management-node': 4.2.0 + '@aws-crypto/raw-aes-keyring-node': 4.2.0 + '@aws-crypto/raw-rsa-keyring-node': 4.2.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt '@aws-crypto/crc32@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.609.0 - tslib: 2.6.3 + '@aws-sdk/types': 3.775.0 + tslib: 2.8.1 '@aws-crypto/crc32c@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.609.0 - tslib: 2.6.3 + '@aws-sdk/types': 3.775.0 + tslib: 2.8.1 - '@aws-crypto/decrypt-node@4.0.1': + '@aws-crypto/decrypt-node@4.2.0': dependencies: - '@aws-crypto/material-management-node': 4.0.1 - '@aws-crypto/serialize': 4.0.1 + '@aws-crypto/material-management-node': 4.2.0 + '@aws-crypto/serialize': 4.2.0 '@types/duplexify': 3.6.4 duplexify: 4.1.3 readable-stream: 3.6.2 - tslib: 2.6.3 + tslib: 2.8.1 - '@aws-crypto/encrypt-node@4.0.1': + '@aws-crypto/encrypt-node@4.2.0': dependencies: - '@aws-crypto/material-management-node': 4.0.1 - '@aws-crypto/serialize': 4.0.1 + '@aws-crypto/material-management-node': 4.2.0 + '@aws-crypto/serialize': 4.2.0 '@types/duplexify': 3.6.4 duplexify: 4.1.3 readable-stream: 3.6.2 - tslib: 2.6.3 + tslib: 2.8.1 '@aws-crypto/hkdf-node@4.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@aws-crypto/kms-keyring-node@4.0.1': + '@aws-crypto/kdf-ctr-mode-node@4.1.0': dependencies: - '@aws-crypto/kms-keyring': 4.0.1 - '@aws-crypto/material-management-node': 4.0.1 - '@aws-sdk/client-kms': 3.624.0 - tslib: 2.6.3 + tslib: 2.8.1 + + '@aws-crypto/kms-keyring-node@4.2.0': + dependencies: + '@aws-crypto/branch-keystore-node': 4.2.0 + '@aws-crypto/cache-material': 4.2.0 + '@aws-crypto/kdf-ctr-mode-node': 4.1.0 + '@aws-crypto/kms-keyring': 4.2.0 + '@aws-crypto/material-management-node': 4.2.0 + '@aws-crypto/serialize': 4.2.0 + '@aws-sdk/client-dynamodb': 3.775.0 + '@aws-sdk/client-kms': 3.775.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-crypto/kms-keyring@4.0.1': + '@aws-crypto/kms-keyring@4.2.0': dependencies: - '@aws-crypto/material-management': 4.0.1 - tslib: 2.6.3 + '@aws-crypto/material-management': 4.2.0 + tslib: 2.8.1 - '@aws-crypto/material-management-node@4.0.1': + '@aws-crypto/material-management-node@4.2.0': dependencies: '@aws-crypto/hkdf-node': 4.0.0 - '@aws-crypto/material-management': 4.0.1 - '@aws-crypto/serialize': 4.0.1 - tslib: 2.6.3 + '@aws-crypto/material-management': 4.2.0 + '@aws-crypto/serialize': 4.2.0 + tslib: 2.8.1 - '@aws-crypto/material-management@4.0.1': + '@aws-crypto/material-management@4.2.0': dependencies: asn1.js: 5.4.1 bn.js: 5.2.1 - tslib: 2.6.3 + tslib: 2.8.1 + uuid: 10.0.0 - '@aws-crypto/raw-aes-keyring-node@4.0.1': + '@aws-crypto/raw-aes-keyring-node@4.2.0': dependencies: - '@aws-crypto/material-management-node': 4.0.1 - '@aws-crypto/raw-keyring': 4.0.1 - '@aws-crypto/serialize': 4.0.1 - tslib: 2.6.3 + '@aws-crypto/material-management-node': 4.2.0 + '@aws-crypto/raw-keyring': 4.2.0 + '@aws-crypto/serialize': 4.2.0 + tslib: 2.8.1 - '@aws-crypto/raw-keyring@4.0.1': + '@aws-crypto/raw-keyring@4.2.0': dependencies: - '@aws-crypto/material-management': 4.0.1 - '@aws-crypto/serialize': 4.0.1 - tslib: 2.6.3 + '@aws-crypto/material-management': 4.2.0 + '@aws-crypto/serialize': 4.2.0 + tslib: 2.8.1 - '@aws-crypto/raw-rsa-keyring-node@4.0.1': + '@aws-crypto/raw-rsa-keyring-node@4.2.0': dependencies: - '@aws-crypto/material-management-node': 4.0.1 - '@aws-crypto/raw-keyring': 4.0.1 - tslib: 2.6.3 + '@aws-crypto/material-management-node': 4.2.0 + '@aws-crypto/raw-keyring': 4.2.0 + tslib: 2.8.1 - '@aws-crypto/serialize@4.0.1': + '@aws-crypto/serialize@4.2.0': dependencies: - '@aws-crypto/material-management': 4.0.1 + '@aws-crypto/material-management': 4.2.0 asn1.js: 5.4.1 bn.js: 5.2.1 - tslib: 2.6.3 + tslib: 2.8.1 + uuid: 10.0.0 '@aws-crypto/sha1-browser@5.2.0': dependencies: '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-locate-window': 3.568.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-locate-window': 3.723.0 '@smithy/util-utf8': 2.3.0 - tslib: 2.6.3 + tslib: 2.8.1 '@aws-crypto/sha256-browser@5.2.0': dependencies: '@aws-crypto/sha256-js': 5.2.0 '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-locate-window': 3.568.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-locate-window': 3.723.0 '@smithy/util-utf8': 2.3.0 - tslib: 2.6.3 + tslib: 2.8.1 '@aws-crypto/sha256-js@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.609.0 - tslib: 2.6.3 + '@aws-sdk/types': 3.775.0 + tslib: 2.8.1 '@aws-crypto/supports-web-crypto@5.2.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 '@aws-crypto/util@5.2.0': dependencies: - '@aws-sdk/types': 3.609.0 + '@aws-sdk/types': 3.775.0 '@smithy/util-utf8': 2.3.0 - tslib: 2.6.3 + tslib: 2.8.1 - '@aws-sdk/client-amplify@3.624.0': + '@aws-sdk/client-amplify@3.775.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.624.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/client-sts': 3.624.0 - '@aws-sdk/core': 3.624.0 - '@aws-sdk/credential-provider-node': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/middleware-host-header': 3.620.0 - '@aws-sdk/middleware-logger': 3.609.0 - '@aws-sdk/middleware-recursion-detection': 3.620.0 - '@aws-sdk/middleware-user-agent': 3.620.0 - '@aws-sdk/region-config-resolver': 3.614.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@aws-sdk/util-user-agent-browser': 3.609.0 - '@aws-sdk/util-user-agent-node': 3.614.0 - '@smithy/config-resolver': 3.0.5 - '@smithy/core': 2.3.2 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/hash-node': 3.0.3 - '@smithy/invalid-dependency': 3.0.3 - '@smithy/middleware-content-length': 3.0.5 - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/middleware-stack': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-base64': 3.0.0 - '@smithy/util-body-length-browser': 3.0.0 - '@smithy/util-body-length-node': 3.0.0 - '@smithy/util-defaults-mode-browser': 3.0.14 - '@smithy/util-defaults-mode-node': 3.0.14 - '@smithy/util-endpoints': 2.0.5 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/credential-provider-node': 3.775.0 + '@aws-sdk/middleware-host-header': 3.775.0 + '@aws-sdk/middleware-logger': 3.775.0 + '@aws-sdk/middleware-recursion-detection': 3.775.0 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/region-config-resolver': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@aws-sdk/util-user-agent-browser': 3.775.0 + '@aws-sdk/util-user-agent-node': 3.775.0 + '@smithy/config-resolver': 4.1.0 + '@smithy/core': 3.2.0 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/hash-node': 4.0.2 + '@smithy/invalid-dependency': 4.0.2 + '@smithy/middleware-content-length': 4.0.2 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-retry': 4.1.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/middleware-stack': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-base64': 4.0.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-body-length-node': 4.0.0 + '@smithy/util-defaults-mode-browser': 4.0.8 + '@smithy/util-defaults-mode-node': 4.0.8 + '@smithy/util-endpoints': 3.0.2 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-cognito-identity-provider@3.624.0': + '@aws-sdk/client-cognito-identity-provider@3.775.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.624.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/client-sts': 3.624.0 - '@aws-sdk/core': 3.624.0 - '@aws-sdk/credential-provider-node': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/middleware-host-header': 3.620.0 - '@aws-sdk/middleware-logger': 3.609.0 - '@aws-sdk/middleware-recursion-detection': 3.620.0 - '@aws-sdk/middleware-user-agent': 3.620.0 - '@aws-sdk/region-config-resolver': 3.614.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@aws-sdk/util-user-agent-browser': 3.609.0 - '@aws-sdk/util-user-agent-node': 3.614.0 - '@smithy/config-resolver': 3.0.5 - '@smithy/core': 2.3.2 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/hash-node': 3.0.3 - '@smithy/invalid-dependency': 3.0.3 - '@smithy/middleware-content-length': 3.0.5 - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/middleware-stack': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-base64': 3.0.0 - '@smithy/util-body-length-browser': 3.0.0 - '@smithy/util-body-length-node': 3.0.0 - '@smithy/util-defaults-mode-browser': 3.0.14 - '@smithy/util-defaults-mode-node': 3.0.14 - '@smithy/util-endpoints': 2.0.5 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/credential-provider-node': 3.775.0 + '@aws-sdk/middleware-host-header': 3.775.0 + '@aws-sdk/middleware-logger': 3.775.0 + '@aws-sdk/middleware-recursion-detection': 3.775.0 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/region-config-resolver': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@aws-sdk/util-user-agent-browser': 3.775.0 + '@aws-sdk/util-user-agent-node': 3.775.0 + '@smithy/config-resolver': 4.1.0 + '@smithy/core': 3.2.0 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/hash-node': 4.0.2 + '@smithy/invalid-dependency': 4.0.2 + '@smithy/middleware-content-length': 4.0.2 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-retry': 4.1.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/middleware-stack': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-base64': 4.0.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-body-length-node': 4.0.0 + '@smithy/util-defaults-mode-browser': 4.0.8 + '@smithy/util-defaults-mode-node': 4.0.8 + '@smithy/util-endpoints': 3.0.2 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-kms@3.624.0': + '@aws-sdk/client-dynamodb@3.775.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.624.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/client-sts': 3.624.0 - '@aws-sdk/core': 3.624.0 - '@aws-sdk/credential-provider-node': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/middleware-host-header': 3.620.0 - '@aws-sdk/middleware-logger': 3.609.0 - '@aws-sdk/middleware-recursion-detection': 3.620.0 - '@aws-sdk/middleware-user-agent': 3.620.0 - '@aws-sdk/region-config-resolver': 3.614.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@aws-sdk/util-user-agent-browser': 3.609.0 - '@aws-sdk/util-user-agent-node': 3.614.0 - '@smithy/config-resolver': 3.0.5 - '@smithy/core': 2.3.2 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/hash-node': 3.0.3 - '@smithy/invalid-dependency': 3.0.3 - '@smithy/middleware-content-length': 3.0.5 - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/middleware-stack': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-base64': 3.0.0 - '@smithy/util-body-length-browser': 3.0.0 - '@smithy/util-body-length-node': 3.0.0 - '@smithy/util-defaults-mode-browser': 3.0.14 - '@smithy/util-defaults-mode-node': 3.0.14 - '@smithy/util-endpoints': 2.0.5 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/credential-provider-node': 3.775.0 + '@aws-sdk/middleware-endpoint-discovery': 3.775.0 + '@aws-sdk/middleware-host-header': 3.775.0 + '@aws-sdk/middleware-logger': 3.775.0 + '@aws-sdk/middleware-recursion-detection': 3.775.0 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/region-config-resolver': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@aws-sdk/util-user-agent-browser': 3.775.0 + '@aws-sdk/util-user-agent-node': 3.775.0 + '@smithy/config-resolver': 4.1.0 + '@smithy/core': 3.2.0 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/hash-node': 4.0.2 + '@smithy/invalid-dependency': 4.0.2 + '@smithy/middleware-content-length': 4.0.2 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-retry': 4.1.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/middleware-stack': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-base64': 4.0.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-body-length-node': 4.0.0 + '@smithy/util-defaults-mode-browser': 4.0.8 + '@smithy/util-defaults-mode-node': 4.0.8 + '@smithy/util-endpoints': 3.0.2 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + '@smithy/util-utf8': 4.0.0 + '@smithy/util-waiter': 4.0.3 + '@types/uuid': 9.0.8 + tslib: 2.8.1 + uuid: 9.0.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-s3@3.624.0': + '@aws-sdk/client-kms@3.775.0': dependencies: - '@aws-crypto/sha1-browser': 5.2.0 '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.624.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/client-sts': 3.624.0 - '@aws-sdk/core': 3.624.0 - '@aws-sdk/credential-provider-node': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/middleware-bucket-endpoint': 3.620.0 - '@aws-sdk/middleware-expect-continue': 3.620.0 - '@aws-sdk/middleware-flexible-checksums': 3.620.0 - '@aws-sdk/middleware-host-header': 3.620.0 - '@aws-sdk/middleware-location-constraint': 3.609.0 - '@aws-sdk/middleware-logger': 3.609.0 - '@aws-sdk/middleware-recursion-detection': 3.620.0 - '@aws-sdk/middleware-sdk-s3': 3.624.0 - '@aws-sdk/middleware-ssec': 3.609.0 - '@aws-sdk/middleware-user-agent': 3.620.0 - '@aws-sdk/region-config-resolver': 3.614.0 - '@aws-sdk/signature-v4-multi-region': 3.624.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@aws-sdk/util-user-agent-browser': 3.609.0 - '@aws-sdk/util-user-agent-node': 3.614.0 - '@aws-sdk/xml-builder': 3.609.0 - '@smithy/config-resolver': 3.0.5 - '@smithy/core': 2.3.2 - '@smithy/eventstream-serde-browser': 3.0.5 - '@smithy/eventstream-serde-config-resolver': 3.0.3 - '@smithy/eventstream-serde-node': 3.0.4 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/hash-blob-browser': 3.1.2 - '@smithy/hash-node': 3.0.3 - '@smithy/hash-stream-node': 3.1.2 - '@smithy/invalid-dependency': 3.0.3 - '@smithy/md5-js': 3.0.3 - '@smithy/middleware-content-length': 3.0.5 - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/middleware-stack': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-base64': 3.0.0 - '@smithy/util-body-length-browser': 3.0.0 - '@smithy/util-body-length-node': 3.0.0 - '@smithy/util-defaults-mode-browser': 3.0.14 - '@smithy/util-defaults-mode-node': 3.0.14 - '@smithy/util-endpoints': 2.0.5 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - '@smithy/util-stream': 3.1.3 - '@smithy/util-utf8': 3.0.0 - '@smithy/util-waiter': 3.1.2 - tslib: 2.6.3 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/credential-provider-node': 3.775.0 + '@aws-sdk/middleware-host-header': 3.775.0 + '@aws-sdk/middleware-logger': 3.775.0 + '@aws-sdk/middleware-recursion-detection': 3.775.0 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/region-config-resolver': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@aws-sdk/util-user-agent-browser': 3.775.0 + '@aws-sdk/util-user-agent-node': 3.775.0 + '@smithy/config-resolver': 4.1.0 + '@smithy/core': 3.2.0 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/hash-node': 4.0.2 + '@smithy/invalid-dependency': 4.0.2 + '@smithy/middleware-content-length': 4.0.2 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-retry': 4.1.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/middleware-stack': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-base64': 4.0.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-body-length-node': 4.0.0 + '@smithy/util-defaults-mode-browser': 4.0.8 + '@smithy/util-defaults-mode-node': 4.0.8 + '@smithy/util-endpoints': 3.0.2 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0)': + '@aws-sdk/client-s3@3.775.0': dependencies: + '@aws-crypto/sha1-browser': 5.2.0 '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sts': 3.624.0 - '@aws-sdk/core': 3.624.0 - '@aws-sdk/credential-provider-node': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/middleware-host-header': 3.620.0 - '@aws-sdk/middleware-logger': 3.609.0 - '@aws-sdk/middleware-recursion-detection': 3.620.0 - '@aws-sdk/middleware-user-agent': 3.620.0 - '@aws-sdk/region-config-resolver': 3.614.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@aws-sdk/util-user-agent-browser': 3.609.0 - '@aws-sdk/util-user-agent-node': 3.614.0 - '@smithy/config-resolver': 3.0.5 - '@smithy/core': 2.3.2 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/hash-node': 3.0.3 - '@smithy/invalid-dependency': 3.0.3 - '@smithy/middleware-content-length': 3.0.5 - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/middleware-stack': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-base64': 3.0.0 - '@smithy/util-body-length-browser': 3.0.0 - '@smithy/util-body-length-node': 3.0.0 - '@smithy/util-defaults-mode-browser': 3.0.14 - '@smithy/util-defaults-mode-node': 3.0.14 - '@smithy/util-endpoints': 2.0.5 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/credential-provider-node': 3.775.0 + '@aws-sdk/middleware-bucket-endpoint': 3.775.0 + '@aws-sdk/middleware-expect-continue': 3.775.0 + '@aws-sdk/middleware-flexible-checksums': 3.775.0 + '@aws-sdk/middleware-host-header': 3.775.0 + '@aws-sdk/middleware-location-constraint': 3.775.0 + '@aws-sdk/middleware-logger': 3.775.0 + '@aws-sdk/middleware-recursion-detection': 3.775.0 + '@aws-sdk/middleware-sdk-s3': 3.775.0 + '@aws-sdk/middleware-ssec': 3.775.0 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/region-config-resolver': 3.775.0 + '@aws-sdk/signature-v4-multi-region': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@aws-sdk/util-user-agent-browser': 3.775.0 + '@aws-sdk/util-user-agent-node': 3.775.0 + '@aws-sdk/xml-builder': 3.775.0 + '@smithy/config-resolver': 4.1.0 + '@smithy/core': 3.2.0 + '@smithy/eventstream-serde-browser': 4.0.2 + '@smithy/eventstream-serde-config-resolver': 4.1.0 + '@smithy/eventstream-serde-node': 4.0.2 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/hash-blob-browser': 4.0.2 + '@smithy/hash-node': 4.0.2 + '@smithy/hash-stream-node': 4.0.2 + '@smithy/invalid-dependency': 4.0.2 + '@smithy/md5-js': 4.0.2 + '@smithy/middleware-content-length': 4.0.2 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-retry': 4.1.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/middleware-stack': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-base64': 4.0.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-body-length-node': 4.0.0 + '@smithy/util-defaults-mode-browser': 4.0.8 + '@smithy/util-defaults-mode-node': 4.0.8 + '@smithy/util-endpoints': 3.0.2 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + '@smithy/util-stream': 4.2.0 + '@smithy/util-utf8': 4.0.0 + '@smithy/util-waiter': 4.0.3 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sso@3.624.0': + '@aws-sdk/client-sso@3.775.0': dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.624.0 - '@aws-sdk/middleware-host-header': 3.620.0 - '@aws-sdk/middleware-logger': 3.609.0 - '@aws-sdk/middleware-recursion-detection': 3.620.0 - '@aws-sdk/middleware-user-agent': 3.620.0 - '@aws-sdk/region-config-resolver': 3.614.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@aws-sdk/util-user-agent-browser': 3.609.0 - '@aws-sdk/util-user-agent-node': 3.614.0 - '@smithy/config-resolver': 3.0.5 - '@smithy/core': 2.3.2 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/hash-node': 3.0.3 - '@smithy/invalid-dependency': 3.0.3 - '@smithy/middleware-content-length': 3.0.5 - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/middleware-stack': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-base64': 3.0.0 - '@smithy/util-body-length-browser': 3.0.0 - '@smithy/util-body-length-node': 3.0.0 - '@smithy/util-defaults-mode-browser': 3.0.14 - '@smithy/util-defaults-mode-node': 3.0.14 - '@smithy/util-endpoints': 2.0.5 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/middleware-host-header': 3.775.0 + '@aws-sdk/middleware-logger': 3.775.0 + '@aws-sdk/middleware-recursion-detection': 3.775.0 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/region-config-resolver': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@aws-sdk/util-user-agent-browser': 3.775.0 + '@aws-sdk/util-user-agent-node': 3.775.0 + '@smithy/config-resolver': 4.1.0 + '@smithy/core': 3.2.0 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/hash-node': 4.0.2 + '@smithy/invalid-dependency': 4.0.2 + '@smithy/middleware-content-length': 4.0.2 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-retry': 4.1.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/middleware-stack': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-base64': 4.0.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-body-length-node': 4.0.0 + '@smithy/util-defaults-mode-browser': 4.0.8 + '@smithy/util-defaults-mode-node': 4.0.8 + '@smithy/util-endpoints': 3.0.2 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/client-sts@3.624.0': - dependencies: - '@aws-crypto/sha256-browser': 5.2.0 - '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/client-sso-oidc': 3.624.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/core': 3.624.0 - '@aws-sdk/credential-provider-node': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/middleware-host-header': 3.620.0 - '@aws-sdk/middleware-logger': 3.609.0 - '@aws-sdk/middleware-recursion-detection': 3.620.0 - '@aws-sdk/middleware-user-agent': 3.620.0 - '@aws-sdk/region-config-resolver': 3.614.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@aws-sdk/util-user-agent-browser': 3.609.0 - '@aws-sdk/util-user-agent-node': 3.614.0 - '@smithy/config-resolver': 3.0.5 - '@smithy/core': 2.3.2 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/hash-node': 3.0.3 - '@smithy/invalid-dependency': 3.0.3 - '@smithy/middleware-content-length': 3.0.5 - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/middleware-stack': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-base64': 3.0.0 - '@smithy/util-body-length-browser': 3.0.0 - '@smithy/util-body-length-node': 3.0.0 - '@smithy/util-defaults-mode-browser': 3.0.14 - '@smithy/util-defaults-mode-node': 3.0.14 - '@smithy/util-endpoints': 2.0.5 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@aws-sdk/core@3.775.0': + dependencies: + '@aws-sdk/types': 3.775.0 + '@smithy/core': 3.2.0 + '@smithy/node-config-provider': 4.0.2 + '@smithy/property-provider': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/signature-v4': 5.0.2 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/util-middleware': 4.0.2 + fast-xml-parser: 4.4.1 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-env@3.775.0': + dependencies: + '@aws-sdk/core': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/property-provider': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-http@3.775.0': + dependencies: + '@aws-sdk/core': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/property-provider': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/util-stream': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-ini@3.775.0': + dependencies: + '@aws-sdk/core': 3.775.0 + '@aws-sdk/credential-provider-env': 3.775.0 + '@aws-sdk/credential-provider-http': 3.775.0 + '@aws-sdk/credential-provider-process': 3.775.0 + '@aws-sdk/credential-provider-sso': 3.775.0 + '@aws-sdk/credential-provider-web-identity': 3.775.0 + '@aws-sdk/nested-clients': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/credential-provider-imds': 4.0.2 + '@smithy/property-provider': 4.0.2 + '@smithy/shared-ini-file-loader': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 transitivePeerDependencies: - aws-crt - '@aws-sdk/core@3.624.0': - dependencies: - '@smithy/core': 2.3.2 - '@smithy/node-config-provider': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/signature-v4': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/util-middleware': 3.0.3 - fast-xml-parser: 4.4.1 - tslib: 2.6.3 - - '@aws-sdk/credential-provider-env@3.620.1': - dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/property-provider': 3.1.3 - '@smithy/types': 3.3.0 - tslib: 2.6.3 - - '@aws-sdk/credential-provider-http@3.622.0': - dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/property-provider': 3.1.3 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/util-stream': 3.1.3 - tslib: 2.6.3 - - '@aws-sdk/credential-provider-ini@3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0)': - dependencies: - '@aws-sdk/client-sts': 3.624.0 - '@aws-sdk/credential-provider-env': 3.620.1 - '@aws-sdk/credential-provider-http': 3.622.0 - '@aws-sdk/credential-provider-process': 3.620.1 - '@aws-sdk/credential-provider-sso': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0)) - '@aws-sdk/credential-provider-web-identity': 3.621.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/types': 3.609.0 - '@smithy/credential-provider-imds': 3.2.0 - '@smithy/property-provider': 3.1.3 - '@smithy/shared-ini-file-loader': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/credential-provider-node@3.775.0': + dependencies: + '@aws-sdk/credential-provider-env': 3.775.0 + '@aws-sdk/credential-provider-http': 3.775.0 + '@aws-sdk/credential-provider-ini': 3.775.0 + '@aws-sdk/credential-provider-process': 3.775.0 + '@aws-sdk/credential-provider-sso': 3.775.0 + '@aws-sdk/credential-provider-web-identity': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/credential-provider-imds': 4.0.2 + '@smithy/property-provider': 4.0.2 + '@smithy/shared-ini-file-loader': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 transitivePeerDependencies: - - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-node@3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0)': - dependencies: - '@aws-sdk/credential-provider-env': 3.620.1 - '@aws-sdk/credential-provider-http': 3.622.0 - '@aws-sdk/credential-provider-ini': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/credential-provider-process': 3.620.1 - '@aws-sdk/credential-provider-sso': 3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0)) - '@aws-sdk/credential-provider-web-identity': 3.621.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/types': 3.609.0 - '@smithy/credential-provider-imds': 3.2.0 - '@smithy/property-provider': 3.1.3 - '@smithy/shared-ini-file-loader': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/credential-provider-process@3.775.0': + dependencies: + '@aws-sdk/core': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/property-provider': 4.0.2 + '@smithy/shared-ini-file-loader': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/credential-provider-sso@3.775.0': + dependencies: + '@aws-sdk/client-sso': 3.775.0 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/token-providers': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/property-provider': 4.0.2 + '@smithy/shared-ini-file-loader': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 transitivePeerDependencies: - - '@aws-sdk/client-sso-oidc' - - '@aws-sdk/client-sts' - aws-crt - '@aws-sdk/credential-provider-process@3.620.1': + '@aws-sdk/credential-provider-web-identity@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/property-provider': 3.1.3 - '@smithy/shared-ini-file-loader': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 - - '@aws-sdk/credential-provider-sso@3.624.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))': - dependencies: - '@aws-sdk/client-sso': 3.624.0 - '@aws-sdk/token-providers': 3.614.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0)) - '@aws-sdk/types': 3.609.0 - '@smithy/property-provider': 3.1.3 - '@smithy/shared-ini-file-loader': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/nested-clients': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/property-provider': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 transitivePeerDependencies: - - '@aws-sdk/client-sso-oidc' - aws-crt - '@aws-sdk/credential-provider-web-identity@3.621.0(@aws-sdk/client-sts@3.624.0)': - dependencies: - '@aws-sdk/client-sts': 3.624.0 - '@aws-sdk/types': 3.609.0 - '@smithy/property-provider': 3.1.3 - '@smithy/types': 3.3.0 - tslib: 2.6.3 - - '@aws-sdk/middleware-bucket-endpoint@3.620.0': - dependencies: - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-arn-parser': 3.568.0 - '@smithy/node-config-provider': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - '@smithy/util-config-provider': 3.0.0 - tslib: 2.6.3 - - '@aws-sdk/middleware-expect-continue@3.620.0': - dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 - - '@aws-sdk/middleware-flexible-checksums@3.620.0': - dependencies: - '@aws-crypto/crc32': 5.2.0 - '@aws-crypto/crc32c': 5.2.0 - '@aws-sdk/types': 3.609.0 - '@smithy/is-array-buffer': 3.0.0 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 - - '@aws-sdk/middleware-host-header@3.620.0': + '@aws-sdk/endpoint-cache@3.723.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + mnemonist: 0.38.3 + tslib: 2.8.1 - '@aws-sdk/middleware-location-constraint@3.609.0': + '@aws-sdk/middleware-bucket-endpoint@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-arn-parser': 3.723.0 + '@smithy/node-config-provider': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + '@smithy/util-config-provider': 4.0.0 + tslib: 2.8.1 - '@aws-sdk/middleware-logger@3.609.0': + '@aws-sdk/middleware-endpoint-discovery@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/endpoint-cache': 3.723.0 + '@aws-sdk/types': 3.775.0 + '@smithy/node-config-provider': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@aws-sdk/middleware-recursion-detection@3.620.0': + '@aws-sdk/middleware-expect-continue@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/types': 3.775.0 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@aws-sdk/middleware-sdk-s3@3.624.0': + '@aws-sdk/middleware-flexible-checksums@3.775.0': dependencies: - '@aws-sdk/core': 3.624.0 - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-arn-parser': 3.568.0 - '@smithy/core': 2.3.2 - '@smithy/node-config-provider': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/signature-v4': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/util-config-provider': 3.0.0 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-stream': 3.1.3 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 - - '@aws-sdk/middleware-ssec@3.609.0': + '@aws-crypto/crc32': 5.2.0 + '@aws-crypto/crc32c': 5.2.0 + '@aws-crypto/util': 5.2.0 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/is-array-buffer': 4.0.0 + '@smithy/node-config-provider': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-stream': 4.2.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-host-header@3.775.0': + dependencies: + '@aws-sdk/types': 3.775.0 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-location-constraint@3.775.0': + dependencies: + '@aws-sdk/types': 3.775.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-logger@3.775.0': + dependencies: + '@aws-sdk/types': 3.775.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-recursion-detection@3.775.0': + dependencies: + '@aws-sdk/types': 3.775.0 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-sdk-s3@3.775.0': + dependencies: + '@aws-sdk/core': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-arn-parser': 3.723.0 + '@smithy/core': 3.2.0 + '@smithy/node-config-provider': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/signature-v4': 5.0.2 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/util-config-provider': 4.0.0 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-stream': 4.2.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-ssec@3.775.0': + dependencies: + '@aws-sdk/types': 3.775.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/middleware-user-agent@3.775.0': + dependencies: + '@aws-sdk/core': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@smithy/core': 3.2.0 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + + '@aws-sdk/nested-clients@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-crypto/sha256-browser': 5.2.0 + '@aws-crypto/sha256-js': 5.2.0 + '@aws-sdk/core': 3.775.0 + '@aws-sdk/middleware-host-header': 3.775.0 + '@aws-sdk/middleware-logger': 3.775.0 + '@aws-sdk/middleware-recursion-detection': 3.775.0 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/region-config-resolver': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@aws-sdk/util-endpoints': 3.775.0 + '@aws-sdk/util-user-agent-browser': 3.775.0 + '@aws-sdk/util-user-agent-node': 3.775.0 + '@smithy/config-resolver': 4.1.0 + '@smithy/core': 3.2.0 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/hash-node': 4.0.2 + '@smithy/invalid-dependency': 4.0.2 + '@smithy/middleware-content-length': 4.0.2 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-retry': 4.1.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/middleware-stack': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/protocol-http': 5.1.0 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-base64': 4.0.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-body-length-node': 4.0.0 + '@smithy/util-defaults-mode-browser': 4.0.8 + '@smithy/util-defaults-mode-node': 4.0.8 + '@smithy/util-endpoints': 3.0.2 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 + transitivePeerDependencies: + - aws-crt - '@aws-sdk/middleware-user-agent@3.620.0': + '@aws-sdk/region-config-resolver@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@aws-sdk/util-endpoints': 3.614.0 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/types': 3.775.0 + '@smithy/node-config-provider': 4.0.2 + '@smithy/types': 4.2.0 + '@smithy/util-config-provider': 4.0.0 + '@smithy/util-middleware': 4.0.2 + tslib: 2.8.1 - '@aws-sdk/region-config-resolver@3.614.0': + '@aws-sdk/signature-v4-multi-region@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/node-config-provider': 3.1.4 - '@smithy/types': 3.3.0 - '@smithy/util-config-provider': 3.0.0 - '@smithy/util-middleware': 3.0.3 - tslib: 2.6.3 + '@aws-sdk/middleware-sdk-s3': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/protocol-http': 5.1.0 + '@smithy/signature-v4': 5.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@aws-sdk/signature-v4-multi-region@3.624.0': + '@aws-sdk/token-providers@3.775.0': dependencies: - '@aws-sdk/middleware-sdk-s3': 3.624.0 - '@aws-sdk/types': 3.609.0 - '@smithy/protocol-http': 4.1.0 - '@smithy/signature-v4': 4.1.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/nested-clients': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/property-provider': 4.0.2 + '@smithy/shared-ini-file-loader': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 + transitivePeerDependencies: + - aws-crt - '@aws-sdk/token-providers@3.614.0(@aws-sdk/client-sso-oidc@3.624.0(@aws-sdk/client-sts@3.624.0))': + '@aws-sdk/types@3.775.0': dependencies: - '@aws-sdk/client-sso-oidc': 3.624.0(@aws-sdk/client-sts@3.624.0) - '@aws-sdk/types': 3.609.0 - '@smithy/property-provider': 3.1.3 - '@smithy/shared-ini-file-loader': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@aws-sdk/types@3.609.0': + '@aws-sdk/util-arn-parser@3.723.0': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + tslib: 2.8.1 - '@aws-sdk/util-arn-parser@3.568.0': + '@aws-sdk/util-dynamodb@3.775.0(@aws-sdk/client-dynamodb@3.775.0)': dependencies: - tslib: 2.6.3 + '@aws-sdk/client-dynamodb': 3.775.0 + tslib: 2.8.1 - '@aws-sdk/util-endpoints@3.614.0': + '@aws-sdk/util-endpoints@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/types': 3.3.0 - '@smithy/util-endpoints': 2.0.5 - tslib: 2.6.3 + '@aws-sdk/types': 3.775.0 + '@smithy/types': 4.2.0 + '@smithy/util-endpoints': 3.0.2 + tslib: 2.8.1 - '@aws-sdk/util-locate-window@3.568.0': + '@aws-sdk/util-locate-window@3.723.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@aws-sdk/util-user-agent-browser@3.609.0': + '@aws-sdk/util-user-agent-browser@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/types': 3.3.0 + '@aws-sdk/types': 3.775.0 + '@smithy/types': 4.2.0 bowser: 2.11.0 - tslib: 2.6.3 + tslib: 2.8.1 - '@aws-sdk/util-user-agent-node@3.614.0': + '@aws-sdk/util-user-agent-node@3.775.0': dependencies: - '@aws-sdk/types': 3.609.0 - '@smithy/node-config-provider': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@aws-sdk/middleware-user-agent': 3.775.0 + '@aws-sdk/types': 3.775.0 + '@smithy/node-config-provider': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@aws-sdk/xml-builder@3.609.0': + '@aws-sdk/xml-builder@3.775.0': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@babel/code-frame@7.24.7': + '@babel/code-frame@7.26.2': dependencies: - '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 - '@babel/compat-data@7.24.7': {} + '@babel/compat-data@7.26.8': {} - '@babel/core@7.24.7': + '@babel/core@7.26.10': dependencies: '@ampproject/remapping': 2.3.0 - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/helper-compilation-targets': 7.24.7 - '@babel/helper-module-transforms': 7.24.7(@babel/core@7.24.7) - '@babel/helpers': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/template': 7.24.7 - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.27.0 + '@babel/helper-compilation-targets': 7.27.0 + '@babel/helper-module-transforms': 7.26.0(@babel/core@7.26.10) + '@babel/helpers': 7.27.0 + '@babel/parser': 7.27.0 + '@babel/template': 7.27.0 + '@babel/traverse': 7.27.0 + '@babel/types': 7.27.0 convert-source-map: 2.0.0 - debug: 4.3.5 + debug: 4.4.0 gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 transitivePeerDependencies: - supports-color - '@babel/generator@7.24.7': + '@babel/generator@7.27.0': dependencies: - '@babel/types': 7.24.7 - '@jridgewell/gen-mapping': 0.3.5 + '@babel/parser': 7.27.0 + '@babel/types': 7.27.0 + '@jridgewell/gen-mapping': 0.3.8 '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 + jsesc: 3.1.0 - '@babel/helper-compilation-targets@7.24.7': + '@babel/helper-compilation-targets@7.27.0': dependencies: - '@babel/compat-data': 7.24.7 - '@babel/helper-validator-option': 7.24.7 - browserslist: 4.23.1 + '@babel/compat-data': 7.26.8 + '@babel/helper-validator-option': 7.25.9 + browserslist: 4.24.4 lru-cache: 5.1.1 semver: 6.3.1 - '@babel/helper-environment-visitor@7.24.7': - dependencies: - '@babel/types': 7.24.7 - - '@babel/helper-function-name@7.24.7': + '@babel/helper-module-imports@7.25.9': dependencies: - '@babel/template': 7.24.7 - '@babel/types': 7.24.7 - - '@babel/helper-hoist-variables@7.24.7': - dependencies: - '@babel/types': 7.24.7 - - '@babel/helper-module-imports@7.24.7': - dependencies: - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 + '@babel/traverse': 7.27.0 + '@babel/types': 7.27.0 transitivePeerDependencies: - supports-color - '@babel/helper-module-transforms@7.24.7(@babel/core@7.24.7)': + '@babel/helper-module-transforms@7.26.0(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-environment-visitor': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-simple-access': 7.24.7 - '@babel/helper-split-export-declaration': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-module-imports': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 + '@babel/traverse': 7.27.0 transitivePeerDependencies: - supports-color - '@babel/helper-plugin-utils@7.24.7': {} + '@babel/helper-plugin-utils@7.26.5': {} - '@babel/helper-simple-access@7.24.7': - dependencies: - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 - transitivePeerDependencies: - - supports-color + '@babel/helper-string-parser@7.25.9': {} - '@babel/helper-split-export-declaration@7.24.7': - dependencies: - '@babel/types': 7.24.7 + '@babel/helper-validator-identifier@7.25.9': {} - '@babel/helper-string-parser@7.24.7': {} + '@babel/helper-validator-option@7.25.9': {} - '@babel/helper-validator-identifier@7.24.7': {} + '@babel/helpers@7.27.0': + dependencies: + '@babel/template': 7.27.0 + '@babel/types': 7.27.0 - '@babel/helper-validator-option@7.24.7': {} + '@babel/parser@7.27.0': + dependencies: + '@babel/types': 7.27.0 - '@babel/helpers@7.24.7': + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.26.10)': dependencies: - '@babel/template': 7.24.7 - '@babel/types': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/highlight@7.24.7': + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.26.10)': dependencies: - '@babel/helper-validator-identifier': 7.24.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - picocolors: 1.0.1 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/parser@7.24.7': + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.26.10)': dependencies: - '@babel/types': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-import-attributes@7.26.0(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.24.7)': + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-jsx@7.24.7(@babel/core@7.24.7)': + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.24.7)': + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.24.7)': + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.24.7)': + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/plugin-syntax-typescript@7.24.7(@babel/core@7.24.7)': + '@babel/plugin-syntax-typescript@7.25.9(@babel/core@7.26.10)': dependencies: - '@babel/core': 7.24.7 - '@babel/helper-plugin-utils': 7.24.7 + '@babel/core': 7.26.10 + '@babel/helper-plugin-utils': 7.26.5 - '@babel/template@7.24.7': + '@babel/template@7.27.0': dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/code-frame': 7.26.2 + '@babel/parser': 7.27.0 + '@babel/types': 7.27.0 - '@babel/traverse@7.24.7': + '@babel/traverse@7.27.0': dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/helper-environment-visitor': 7.24.7 - '@babel/helper-function-name': 7.24.7 - '@babel/helper-hoist-variables': 7.24.7 - '@babel/helper-split-export-declaration': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 - debug: 4.3.5 + '@babel/code-frame': 7.26.2 + '@babel/generator': 7.27.0 + '@babel/parser': 7.27.0 + '@babel/template': 7.27.0 + '@babel/types': 7.27.0 + debug: 4.4.0 globals: 11.12.0 transitivePeerDependencies: - supports-color - '@babel/types@7.24.7': + '@babel/types@7.27.0': dependencies: - '@babel/helper-string-parser': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@babel/helper-string-parser': 7.25.9 + '@babel/helper-validator-identifier': 7.25.9 '@bcoe/v8-coverage@0.2.3': {} @@ -2974,79 +3026,79 @@ snapshots: dependencies: '@jridgewell/trace-mapping': 0.3.9 - '@esbuild/aix-ppc64@0.25.0': + '@esbuild/aix-ppc64@0.25.1': optional: true - '@esbuild/android-arm64@0.25.0': + '@esbuild/android-arm64@0.25.1': optional: true - '@esbuild/android-arm@0.25.0': + '@esbuild/android-arm@0.25.1': optional: true - '@esbuild/android-x64@0.25.0': + '@esbuild/android-x64@0.25.1': optional: true - '@esbuild/darwin-arm64@0.25.0': + '@esbuild/darwin-arm64@0.25.1': optional: true - '@esbuild/darwin-x64@0.25.0': + '@esbuild/darwin-x64@0.25.1': optional: true - '@esbuild/freebsd-arm64@0.25.0': + '@esbuild/freebsd-arm64@0.25.1': optional: true - '@esbuild/freebsd-x64@0.25.0': + '@esbuild/freebsd-x64@0.25.1': optional: true - '@esbuild/linux-arm64@0.25.0': + '@esbuild/linux-arm64@0.25.1': optional: true - '@esbuild/linux-arm@0.25.0': + '@esbuild/linux-arm@0.25.1': optional: true - '@esbuild/linux-ia32@0.25.0': + '@esbuild/linux-ia32@0.25.1': optional: true - '@esbuild/linux-loong64@0.25.0': + '@esbuild/linux-loong64@0.25.1': optional: true - '@esbuild/linux-mips64el@0.25.0': + '@esbuild/linux-mips64el@0.25.1': optional: true - '@esbuild/linux-ppc64@0.25.0': + '@esbuild/linux-ppc64@0.25.1': optional: true - '@esbuild/linux-riscv64@0.25.0': + '@esbuild/linux-riscv64@0.25.1': optional: true - '@esbuild/linux-s390x@0.25.0': + '@esbuild/linux-s390x@0.25.1': optional: true - '@esbuild/linux-x64@0.25.0': + '@esbuild/linux-x64@0.25.1': optional: true - '@esbuild/netbsd-arm64@0.25.0': + '@esbuild/netbsd-arm64@0.25.1': optional: true - '@esbuild/netbsd-x64@0.25.0': + '@esbuild/netbsd-x64@0.25.1': optional: true - '@esbuild/openbsd-arm64@0.25.0': + '@esbuild/openbsd-arm64@0.25.1': optional: true - '@esbuild/openbsd-x64@0.25.0': + '@esbuild/openbsd-x64@0.25.1': optional: true - '@esbuild/sunos-x64@0.25.0': + '@esbuild/sunos-x64@0.25.1': optional: true - '@esbuild/win32-arm64@0.25.0': + '@esbuild/win32-arm64@0.25.1': optional: true - '@esbuild/win32-ia32@0.25.0': + '@esbuild/win32-ia32@0.25.1': optional: true - '@esbuild/win32-x64@0.25.0': + '@esbuild/win32-x64@0.25.1': optional: true '@istanbuljs/load-nyc-config@1.1.0': @@ -3062,27 +3114,27 @@ snapshots: '@jest/console@29.7.0': dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 slash: 3.0.0 - '@jest/core@29.7.0(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2))': + '@jest/core@29.7.0(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2))': dependencies: '@jest/console': 29.7.0 '@jest/reporters': 29.7.0 '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.9.0 exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + jest-config: 29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -3107,7 +3159,7 @@ snapshots: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 jest-mock: 29.7.0 '@jest/expect-utils@29.7.0': @@ -3125,7 +3177,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 20.14.9 + '@types/node': 20.17.28 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -3147,14 +3199,14 @@ snapshots: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 - '@types/node': 20.14.9 + '@types/node': 20.17.28 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 glob: 7.2.3 graceful-fs: 4.2.11 istanbul-lib-coverage: 3.2.2 - istanbul-lib-instrument: 6.0.2 + istanbul-lib-instrument: 6.0.3 istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 4.0.1 istanbul-reports: 3.1.7 @@ -3194,7 +3246,7 @@ snapshots: '@jest/transform@29.7.0': dependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.26.10 '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.25 babel-plugin-istanbul: 6.1.1 @@ -3206,7 +3258,7 @@ snapshots: jest-regex-util: 29.6.3 jest-util: 29.7.0 micromatch: 4.0.8 - pirates: 4.0.6 + pirates: 4.0.7 slash: 3.0.0 write-file-atomic: 4.0.2 transitivePeerDependencies: @@ -3217,31 +3269,31 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 20.14.9 - '@types/yargs': 17.0.32 + '@types/node': 20.17.28 + '@types/yargs': 17.0.33 chalk: 4.1.2 - '@jridgewell/gen-mapping@0.3.5': + '@jridgewell/gen-mapping@0.3.8': dependencies: '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping': 0.3.25 '@jridgewell/resolve-uri@3.1.2': {} '@jridgewell/set-array@1.2.1': {} - '@jridgewell/sourcemap-codec@1.4.15': {} + '@jridgewell/sourcemap-codec@1.5.0': {} '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/sourcemap-codec': 1.5.0 '@sinclair/typebox@0.27.8': {} @@ -3253,334 +3305,336 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 - '@smithy/abort-controller@3.1.1': + '@smithy/abort-controller@4.0.2': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/chunked-blob-reader-native@3.0.0': + '@smithy/chunked-blob-reader-native@4.0.0': dependencies: - '@smithy/util-base64': 3.0.0 - tslib: 2.6.3 + '@smithy/util-base64': 4.0.0 + tslib: 2.8.1 - '@smithy/chunked-blob-reader@3.0.0': + '@smithy/chunked-blob-reader@5.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/config-resolver@3.0.5': + '@smithy/config-resolver@4.1.0': dependencies: - '@smithy/node-config-provider': 3.1.4 - '@smithy/types': 3.3.0 - '@smithy/util-config-provider': 3.0.0 - '@smithy/util-middleware': 3.0.3 - tslib: 2.6.3 + '@smithy/node-config-provider': 4.0.2 + '@smithy/types': 4.2.0 + '@smithy/util-config-provider': 4.0.0 + '@smithy/util-middleware': 4.0.2 + tslib: 2.8.1 - '@smithy/core@2.3.2': + '@smithy/core@3.2.0': dependencies: - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-retry': 3.0.14 - '@smithy/middleware-serde': 3.0.3 - '@smithy/protocol-http': 4.1.0 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/util-middleware': 3.0.3 - tslib: 2.6.3 + '@smithy/middleware-serde': 4.0.3 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + '@smithy/util-body-length-browser': 4.0.0 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-stream': 4.2.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 - '@smithy/credential-provider-imds@3.2.0': + '@smithy/credential-provider-imds@4.0.2': dependencies: - '@smithy/node-config-provider': 3.1.4 - '@smithy/property-provider': 3.1.3 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - tslib: 2.6.3 + '@smithy/node-config-provider': 4.0.2 + '@smithy/property-provider': 4.0.2 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + tslib: 2.8.1 - '@smithy/eventstream-codec@3.1.2': + '@smithy/eventstream-codec@4.0.2': dependencies: '@aws-crypto/crc32': 5.2.0 - '@smithy/types': 3.3.0 - '@smithy/util-hex-encoding': 3.0.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + '@smithy/util-hex-encoding': 4.0.0 + tslib: 2.8.1 - '@smithy/eventstream-serde-browser@3.0.5': + '@smithy/eventstream-serde-browser@4.0.2': dependencies: - '@smithy/eventstream-serde-universal': 3.0.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/eventstream-serde-universal': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/eventstream-serde-config-resolver@3.0.3': + '@smithy/eventstream-serde-config-resolver@4.1.0': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/eventstream-serde-node@3.0.4': + '@smithy/eventstream-serde-node@4.0.2': dependencies: - '@smithy/eventstream-serde-universal': 3.0.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/eventstream-serde-universal': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/eventstream-serde-universal@3.0.4': + '@smithy/eventstream-serde-universal@4.0.2': dependencies: - '@smithy/eventstream-codec': 3.1.2 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/eventstream-codec': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/fetch-http-handler@3.2.4': + '@smithy/fetch-http-handler@5.0.2': dependencies: - '@smithy/protocol-http': 4.1.0 - '@smithy/querystring-builder': 3.0.3 - '@smithy/types': 3.3.0 - '@smithy/util-base64': 3.0.0 - tslib: 2.6.3 + '@smithy/protocol-http': 5.1.0 + '@smithy/querystring-builder': 4.0.2 + '@smithy/types': 4.2.0 + '@smithy/util-base64': 4.0.0 + tslib: 2.8.1 - '@smithy/hash-blob-browser@3.1.2': + '@smithy/hash-blob-browser@4.0.2': dependencies: - '@smithy/chunked-blob-reader': 3.0.0 - '@smithy/chunked-blob-reader-native': 3.0.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/chunked-blob-reader': 5.0.0 + '@smithy/chunked-blob-reader-native': 4.0.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/hash-node@3.0.3': + '@smithy/hash-node@4.0.2': dependencies: - '@smithy/types': 3.3.0 - '@smithy/util-buffer-from': 3.0.0 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + '@smithy/util-buffer-from': 4.0.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 - '@smithy/hash-stream-node@3.1.2': + '@smithy/hash-stream-node@4.0.2': dependencies: - '@smithy/types': 3.3.0 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 - '@smithy/invalid-dependency@3.0.3': + '@smithy/invalid-dependency@4.0.2': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 '@smithy/is-array-buffer@2.2.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/is-array-buffer@3.0.0': + '@smithy/is-array-buffer@4.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/md5-js@3.0.3': + '@smithy/md5-js@4.0.2': dependencies: - '@smithy/types': 3.3.0 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 - '@smithy/middleware-content-length@3.0.5': + '@smithy/middleware-content-length@4.0.2': dependencies: - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/middleware-endpoint@3.1.0': + '@smithy/middleware-endpoint@4.1.0': dependencies: - '@smithy/middleware-serde': 3.0.3 - '@smithy/node-config-provider': 3.1.4 - '@smithy/shared-ini-file-loader': 3.1.4 - '@smithy/types': 3.3.0 - '@smithy/url-parser': 3.0.3 - '@smithy/util-middleware': 3.0.3 - tslib: 2.6.3 + '@smithy/core': 3.2.0 + '@smithy/middleware-serde': 4.0.3 + '@smithy/node-config-provider': 4.0.2 + '@smithy/shared-ini-file-loader': 4.0.2 + '@smithy/types': 4.2.0 + '@smithy/url-parser': 4.0.2 + '@smithy/util-middleware': 4.0.2 + tslib: 2.8.1 - '@smithy/middleware-retry@3.0.14': + '@smithy/middleware-retry@4.1.0': dependencies: - '@smithy/node-config-provider': 3.1.4 - '@smithy/protocol-http': 4.1.0 - '@smithy/service-error-classification': 3.0.3 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-retry': 3.0.3 - tslib: 2.6.3 + '@smithy/node-config-provider': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/service-error-classification': 4.0.2 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-retry': 4.0.2 + tslib: 2.8.1 uuid: 9.0.1 - '@smithy/middleware-serde@3.0.3': + '@smithy/middleware-serde@4.0.3': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/middleware-stack@3.0.3': + '@smithy/middleware-stack@4.0.2': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/node-config-provider@3.1.4': + '@smithy/node-config-provider@4.0.2': dependencies: - '@smithy/property-provider': 3.1.3 - '@smithy/shared-ini-file-loader': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/property-provider': 4.0.2 + '@smithy/shared-ini-file-loader': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/node-http-handler@3.1.4': + '@smithy/node-http-handler@4.0.4': dependencies: - '@smithy/abort-controller': 3.1.1 - '@smithy/protocol-http': 4.1.0 - '@smithy/querystring-builder': 3.0.3 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/abort-controller': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/querystring-builder': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/property-provider@3.1.3': + '@smithy/property-provider@4.0.2': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/protocol-http@4.1.0': + '@smithy/protocol-http@5.1.0': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/querystring-builder@3.0.3': + '@smithy/querystring-builder@4.0.2': dependencies: - '@smithy/types': 3.3.0 - '@smithy/util-uri-escape': 3.0.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + '@smithy/util-uri-escape': 4.0.0 + tslib: 2.8.1 - '@smithy/querystring-parser@3.0.3': + '@smithy/querystring-parser@4.0.2': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/service-error-classification@3.0.3': + '@smithy/service-error-classification@4.0.2': dependencies: - '@smithy/types': 3.3.0 + '@smithy/types': 4.2.0 - '@smithy/shared-ini-file-loader@3.1.4': + '@smithy/shared-ini-file-loader@4.0.2': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/signature-v4@4.1.0': + '@smithy/signature-v4@5.0.2': dependencies: - '@smithy/is-array-buffer': 3.0.0 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - '@smithy/util-hex-encoding': 3.0.0 - '@smithy/util-middleware': 3.0.3 - '@smithy/util-uri-escape': 3.0.0 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@smithy/is-array-buffer': 4.0.0 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + '@smithy/util-hex-encoding': 4.0.0 + '@smithy/util-middleware': 4.0.2 + '@smithy/util-uri-escape': 4.0.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 - '@smithy/smithy-client@3.1.12': + '@smithy/smithy-client@4.2.0': dependencies: - '@smithy/middleware-endpoint': 3.1.0 - '@smithy/middleware-stack': 3.0.3 - '@smithy/protocol-http': 4.1.0 - '@smithy/types': 3.3.0 - '@smithy/util-stream': 3.1.3 - tslib: 2.6.3 + '@smithy/core': 3.2.0 + '@smithy/middleware-endpoint': 4.1.0 + '@smithy/middleware-stack': 4.0.2 + '@smithy/protocol-http': 5.1.0 + '@smithy/types': 4.2.0 + '@smithy/util-stream': 4.2.0 + tslib: 2.8.1 - '@smithy/types@3.3.0': + '@smithy/types@4.2.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/url-parser@3.0.3': + '@smithy/url-parser@4.0.2': dependencies: - '@smithy/querystring-parser': 3.0.3 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/querystring-parser': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/util-base64@3.0.0': + '@smithy/util-base64@4.0.0': dependencies: - '@smithy/util-buffer-from': 3.0.0 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@smithy/util-buffer-from': 4.0.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 - '@smithy/util-body-length-browser@3.0.0': + '@smithy/util-body-length-browser@4.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/util-body-length-node@3.0.0': + '@smithy/util-body-length-node@4.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 '@smithy/util-buffer-from@2.2.0': dependencies: '@smithy/is-array-buffer': 2.2.0 - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/util-buffer-from@3.0.0': + '@smithy/util-buffer-from@4.0.0': dependencies: - '@smithy/is-array-buffer': 3.0.0 - tslib: 2.6.3 + '@smithy/is-array-buffer': 4.0.0 + tslib: 2.8.1 - '@smithy/util-config-provider@3.0.0': + '@smithy/util-config-provider@4.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/util-defaults-mode-browser@3.0.14': + '@smithy/util-defaults-mode-browser@4.0.8': dependencies: - '@smithy/property-provider': 3.1.3 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 + '@smithy/property-provider': 4.0.2 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 bowser: 2.11.0 - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/util-defaults-mode-node@3.0.14': + '@smithy/util-defaults-mode-node@4.0.8': dependencies: - '@smithy/config-resolver': 3.0.5 - '@smithy/credential-provider-imds': 3.2.0 - '@smithy/node-config-provider': 3.1.4 - '@smithy/property-provider': 3.1.3 - '@smithy/smithy-client': 3.1.12 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/config-resolver': 4.1.0 + '@smithy/credential-provider-imds': 4.0.2 + '@smithy/node-config-provider': 4.0.2 + '@smithy/property-provider': 4.0.2 + '@smithy/smithy-client': 4.2.0 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/util-endpoints@2.0.5': + '@smithy/util-endpoints@3.0.2': dependencies: - '@smithy/node-config-provider': 3.1.4 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/node-config-provider': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/util-hex-encoding@3.0.0': + '@smithy/util-hex-encoding@4.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/util-middleware@3.0.3': + '@smithy/util-middleware@4.0.2': dependencies: - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/util-retry@3.0.3': + '@smithy/util-retry@4.0.2': dependencies: - '@smithy/service-error-classification': 3.0.3 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/service-error-classification': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 - '@smithy/util-stream@3.1.3': + '@smithy/util-stream@4.2.0': dependencies: - '@smithy/fetch-http-handler': 3.2.4 - '@smithy/node-http-handler': 3.1.4 - '@smithy/types': 3.3.0 - '@smithy/util-base64': 3.0.0 - '@smithy/util-buffer-from': 3.0.0 - '@smithy/util-hex-encoding': 3.0.0 - '@smithy/util-utf8': 3.0.0 - tslib: 2.6.3 + '@smithy/fetch-http-handler': 5.0.2 + '@smithy/node-http-handler': 4.0.4 + '@smithy/types': 4.2.0 + '@smithy/util-base64': 4.0.0 + '@smithy/util-buffer-from': 4.0.0 + '@smithy/util-hex-encoding': 4.0.0 + '@smithy/util-utf8': 4.0.0 + tslib: 2.8.1 - '@smithy/util-uri-escape@3.0.0': + '@smithy/util-uri-escape@4.0.0': dependencies: - tslib: 2.6.3 + tslib: 2.8.1 '@smithy/util-utf8@2.3.0': dependencies: '@smithy/util-buffer-from': 2.2.0 - tslib: 2.6.3 + tslib: 2.8.1 - '@smithy/util-utf8@3.0.0': + '@smithy/util-utf8@4.0.0': dependencies: - '@smithy/util-buffer-from': 3.0.0 - tslib: 2.6.3 + '@smithy/util-buffer-from': 4.0.0 + tslib: 2.8.1 - '@smithy/util-waiter@3.1.2': + '@smithy/util-waiter@4.0.3': dependencies: - '@smithy/abort-controller': 3.1.1 - '@smithy/types': 3.3.0 - tslib: 2.6.3 + '@smithy/abort-controller': 4.0.2 + '@smithy/types': 4.2.0 + tslib: 2.8.1 '@tsconfig/node10@1.0.11': {} @@ -3590,36 +3644,36 @@ snapshots: '@tsconfig/node16@1.0.4': {} - '@types/aws-lambda@8.10.140': {} + '@types/aws-lambda@8.10.148': {} '@types/babel__core@7.20.5': dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.27.0 + '@babel/types': 7.27.0 '@types/babel__generator': 7.6.8 '@types/babel__template': 7.4.4 - '@types/babel__traverse': 7.20.6 + '@types/babel__traverse': 7.20.7 '@types/babel__generator@7.6.8': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.27.0 '@types/babel__template@7.4.4': dependencies: - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 + '@babel/parser': 7.27.0 + '@babel/types': 7.27.0 - '@types/babel__traverse@7.20.6': + '@types/babel__traverse@7.20.7': dependencies: - '@babel/types': 7.24.7 + '@babel/types': 7.27.0 '@types/duplexify@3.6.4': dependencies: - '@types/node': 20.14.9 + '@types/node': 20.17.28 '@types/graceful-fs@4.1.9': dependencies: - '@types/node': 20.14.9 + '@types/node': 20.17.28 '@types/istanbul-lib-coverage@2.0.6': {} @@ -3631,30 +3685,32 @@ snapshots: dependencies: '@types/istanbul-lib-report': 3.0.3 - '@types/jest@29.5.12': + '@types/jest@29.5.14': dependencies: expect: 29.7.0 pretty-format: 29.7.0 '@types/lru-cache@5.1.1': {} - '@types/node@20.14.9': + '@types/node@20.17.28': dependencies: - undici-types: 5.26.5 + undici-types: 6.19.8 '@types/stack-utils@2.0.3': {} + '@types/uuid@9.0.8': {} + '@types/yargs-parser@21.0.3': {} - '@types/yargs@17.0.32': + '@types/yargs@17.0.33': dependencies: '@types/yargs-parser': 21.0.3 - acorn-walk@8.3.3: + acorn-walk@8.3.4: dependencies: - acorn: 8.12.0 + acorn: 8.14.1 - acorn@8.12.0: {} + acorn@8.14.1: {} ansi-escapes@4.3.2: dependencies: @@ -3662,10 +3718,6 @@ snapshots: ansi-regex@5.0.1: {} - ansi-styles@3.2.1: - dependencies: - color-convert: 1.9.3 - ansi-styles@4.3.0: dependencies: color-convert: 2.0.1 @@ -3685,30 +3737,31 @@ snapshots: asn1.js@5.4.1: dependencies: - bn.js: 4.12.0 + bn.js: 4.12.1 inherits: 2.0.4 minimalistic-assert: 1.0.1 safer-buffer: 2.1.2 - aws-cdk-lib@2.177.0(constructs@10.3.0): + async@3.2.6: {} + + aws-cdk-lib@2.186.0(constructs@10.4.2): dependencies: - '@aws-cdk/asset-awscli-v1': 2.2.225 - '@aws-cdk/asset-kubectl-v20': 2.1.4 + '@aws-cdk/asset-awscli-v1': 2.2.229 '@aws-cdk/asset-node-proxy-agent-v6': 2.1.0 - '@aws-cdk/cloud-assembly-schema': 39.2.20 - constructs: 10.3.0 + '@aws-cdk/cloud-assembly-schema': 40.7.0 + constructs: 10.4.2 aws-cdk@2.95.0: optionalDependencies: fsevents: 2.3.2 - babel-jest@29.7.0(@babel/core@7.24.7): + babel-jest@29.7.0(@babel/core@7.26.10): dependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.26.10 '@jest/transform': 29.7.0 '@types/babel__core': 7.20.5 babel-plugin-istanbul: 6.1.1 - babel-preset-jest: 29.6.3(@babel/core@7.24.7) + babel-preset-jest: 29.6.3(@babel/core@7.26.10) chalk: 4.1.2 graceful-fs: 4.2.11 slash: 3.0.0 @@ -3717,7 +3770,7 @@ snapshots: babel-plugin-istanbul@6.1.1: dependencies: - '@babel/helper-plugin-utils': 7.24.7 + '@babel/helper-plugin-utils': 7.26.5 '@istanbuljs/load-nyc-config': 1.1.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-instrument: 5.2.1 @@ -3727,36 +3780,39 @@ snapshots: babel-plugin-jest-hoist@29.6.3: dependencies: - '@babel/template': 7.24.7 - '@babel/types': 7.24.7 + '@babel/template': 7.27.0 + '@babel/types': 7.27.0 '@types/babel__core': 7.20.5 - '@types/babel__traverse': 7.20.6 - - babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.7): - dependencies: - '@babel/core': 7.24.7 - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.7) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.24.7) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.24.7) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.24.7) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.7) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.24.7) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.24.7) - - babel-preset-jest@29.6.3(@babel/core@7.24.7): - dependencies: - '@babel/core': 7.24.7 + '@types/babel__traverse': 7.20.7 + + babel-preset-current-node-syntax@1.1.0(@babel/core@7.26.10): + dependencies: + '@babel/core': 7.26.10 + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.26.10) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.26.10) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.26.10) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.26.10) + '@babel/plugin-syntax-import-attributes': 7.26.0(@babel/core@7.26.10) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.26.10) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.26.10) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.26.10) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.26.10) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.26.10) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.26.10) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.26.10) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.26.10) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.26.10) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.26.10) + + babel-preset-jest@29.6.3(@babel/core@7.26.10): + dependencies: + '@babel/core': 7.26.10 babel-plugin-jest-hoist: 29.6.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.24.7) + babel-preset-current-node-syntax: 1.1.0(@babel/core@7.26.10) balanced-match@1.0.2: {} - bn.js@4.12.0: {} + bn.js@4.12.1: {} bn.js@5.2.1: {} @@ -3767,16 +3823,20 @@ snapshots: balanced-match: 1.0.2 concat-map: 0.0.1 + brace-expansion@2.0.1: + dependencies: + balanced-match: 1.0.2 + braces@3.0.3: dependencies: fill-range: 7.1.1 - browserslist@4.23.1: + browserslist@4.24.4: dependencies: - caniuse-lite: 1.0.30001638 - electron-to-chromium: 1.4.812 - node-releases: 2.0.14 - update-browserslist-db: 1.0.16(browserslist@4.23.1) + caniuse-lite: 1.0.30001707 + electron-to-chromium: 1.5.126 + node-releases: 2.0.19 + update-browserslist-db: 1.1.3(browserslist@4.24.4) bs-logger@0.2.6: dependencies: @@ -3794,13 +3854,7 @@ snapshots: camelcase@6.3.0: {} - caniuse-lite@1.0.30001638: {} - - chalk@2.4.2: - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 + caniuse-lite@1.0.30001707: {} chalk@4.1.2: dependencies: @@ -3811,7 +3865,7 @@ snapshots: ci-info@3.9.0: {} - cjs-module-lexer@1.3.1: {} + cjs-module-lexer@1.4.3: {} cliui@8.0.1: dependencies: @@ -3823,31 +3877,25 @@ snapshots: collect-v8-coverage@1.0.2: {} - color-convert@1.9.3: - dependencies: - color-name: 1.1.3 - color-convert@2.0.1: dependencies: color-name: 1.1.4 - color-name@1.1.3: {} - color-name@1.1.4: {} concat-map@0.0.1: {} - constructs@10.3.0: {} + constructs@10.4.2: {} convert-source-map@2.0.0: {} - create-jest@29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)): + create-jest@29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)): dependencies: '@jest/types': 29.6.3 chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + jest-config: 29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -3866,9 +3914,9 @@ snapshots: data-uri-to-buffer@4.0.1: {} - debug@4.3.5: + debug@4.4.0: dependencies: - ms: 2.1.2 + ms: 2.1.3 dedent@1.5.3: {} @@ -3887,7 +3935,11 @@ snapshots: readable-stream: 3.6.2 stream-shift: 1.0.3 - electron-to-chromium@1.4.812: {} + ejs@3.1.10: + dependencies: + jake: 10.9.2 + + electron-to-chromium@1.5.126: {} emittery@0.13.1: {} @@ -3901,37 +3953,35 @@ snapshots: dependencies: is-arrayish: 0.2.1 - esbuild@0.25.0: + esbuild@0.25.1: optionalDependencies: - '@esbuild/aix-ppc64': 0.25.0 - '@esbuild/android-arm': 0.25.0 - '@esbuild/android-arm64': 0.25.0 - '@esbuild/android-x64': 0.25.0 - '@esbuild/darwin-arm64': 0.25.0 - '@esbuild/darwin-x64': 0.25.0 - '@esbuild/freebsd-arm64': 0.25.0 - '@esbuild/freebsd-x64': 0.25.0 - '@esbuild/linux-arm': 0.25.0 - '@esbuild/linux-arm64': 0.25.0 - '@esbuild/linux-ia32': 0.25.0 - '@esbuild/linux-loong64': 0.25.0 - '@esbuild/linux-mips64el': 0.25.0 - '@esbuild/linux-ppc64': 0.25.0 - '@esbuild/linux-riscv64': 0.25.0 - '@esbuild/linux-s390x': 0.25.0 - '@esbuild/linux-x64': 0.25.0 - '@esbuild/netbsd-arm64': 0.25.0 - '@esbuild/netbsd-x64': 0.25.0 - '@esbuild/openbsd-arm64': 0.25.0 - '@esbuild/openbsd-x64': 0.25.0 - '@esbuild/sunos-x64': 0.25.0 - '@esbuild/win32-arm64': 0.25.0 - '@esbuild/win32-ia32': 0.25.0 - '@esbuild/win32-x64': 0.25.0 - - escalade@3.1.2: {} - - escape-string-regexp@1.0.5: {} + '@esbuild/aix-ppc64': 0.25.1 + '@esbuild/android-arm': 0.25.1 + '@esbuild/android-arm64': 0.25.1 + '@esbuild/android-x64': 0.25.1 + '@esbuild/darwin-arm64': 0.25.1 + '@esbuild/darwin-x64': 0.25.1 + '@esbuild/freebsd-arm64': 0.25.1 + '@esbuild/freebsd-x64': 0.25.1 + '@esbuild/linux-arm': 0.25.1 + '@esbuild/linux-arm64': 0.25.1 + '@esbuild/linux-ia32': 0.25.1 + '@esbuild/linux-loong64': 0.25.1 + '@esbuild/linux-mips64el': 0.25.1 + '@esbuild/linux-ppc64': 0.25.1 + '@esbuild/linux-riscv64': 0.25.1 + '@esbuild/linux-s390x': 0.25.1 + '@esbuild/linux-x64': 0.25.1 + '@esbuild/netbsd-arm64': 0.25.1 + '@esbuild/netbsd-x64': 0.25.1 + '@esbuild/openbsd-arm64': 0.25.1 + '@esbuild/openbsd-x64': 0.25.1 + '@esbuild/sunos-x64': 0.25.1 + '@esbuild/win32-arm64': 0.25.1 + '@esbuild/win32-ia32': 0.25.1 + '@esbuild/win32-x64': 0.25.1 + + escalade@3.2.0: {} escape-string-regexp@2.0.0: {} @@ -3963,7 +4013,7 @@ snapshots: fast-xml-parser@4.4.1: dependencies: - strnum: 1.0.5 + strnum: 1.1.2 fb-watchman@2.0.2: dependencies: @@ -3974,6 +4024,10 @@ snapshots: node-domexception: 1.0.0 web-streams-polyfill: 3.3.3 + filelist@1.0.4: + dependencies: + minimatch: 5.1.6 + fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 @@ -4018,8 +4072,6 @@ snapshots: graceful-fs@4.2.11: {} - has-flag@3.0.0: {} - has-flag@4.0.0: {} hasown@2.0.2: @@ -4030,7 +4082,7 @@ snapshots: human-signals@2.1.0: {} - import-local@3.1.0: + import-local@3.2.0: dependencies: pkg-dir: 4.2.0 resolve-cwd: 3.0.0 @@ -4046,7 +4098,7 @@ snapshots: is-arrayish@0.2.1: {} - is-core-module@2.14.0: + is-core-module@2.16.1: dependencies: hasown: 2.0.2 @@ -4064,21 +4116,21 @@ snapshots: istanbul-lib-instrument@5.2.1: dependencies: - '@babel/core': 7.24.7 - '@babel/parser': 7.24.7 + '@babel/core': 7.26.10 + '@babel/parser': 7.27.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 6.3.1 transitivePeerDependencies: - supports-color - istanbul-lib-instrument@6.0.2: + istanbul-lib-instrument@6.0.3: dependencies: - '@babel/core': 7.24.7 - '@babel/parser': 7.24.7 + '@babel/core': 7.26.10 + '@babel/parser': 7.27.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 - semver: 7.6.2 + semver: 7.7.1 transitivePeerDependencies: - supports-color @@ -4090,7 +4142,7 @@ snapshots: istanbul-lib-source-maps@4.0.1: dependencies: - debug: 4.3.5 + debug: 4.4.0 istanbul-lib-coverage: 3.2.2 source-map: 0.6.1 transitivePeerDependencies: @@ -4101,6 +4153,13 @@ snapshots: html-escaper: 2.0.2 istanbul-lib-report: 3.0.1 + jake@10.9.2: + dependencies: + async: 3.2.6 + chalk: 4.1.2 + filelist: 1.0.4 + minimatch: 3.1.2 + jest-changed-files@29.7.0: dependencies: execa: 5.1.1 @@ -4113,7 +4172,7 @@ snapshots: '@jest/expect': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.3 @@ -4133,16 +4192,16 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)): + jest-cli@29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)): dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + create-jest: 29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) exit: 0.1.2 - import-local: 3.1.0 - jest-config: 29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + import-local: 3.2.0 + jest-config: 29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -4152,12 +4211,12 @@ snapshots: - supports-color - ts-node - jest-config@29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)): + jest-config@29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)): dependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.26.10 '@jest/test-sequencer': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.24.7) + babel-jest: 29.7.0(@babel/core@7.26.10) chalk: 4.1.2 ci-info: 3.9.0 deepmerge: 4.3.1 @@ -4177,8 +4236,8 @@ snapshots: slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: - '@types/node': 20.14.9 - ts-node: 10.9.2(@types/node@20.14.9)(typescript@5.2.2) + '@types/node': 20.17.28 + ts-node: 10.9.2(@types/node@20.17.28)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -4207,7 +4266,7 @@ snapshots: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -4217,7 +4276,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 20.14.9 + '@types/node': 20.17.28 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -4243,7 +4302,7 @@ snapshots: jest-message-util@29.7.0: dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 '@jest/types': 29.6.3 '@types/stack-utils': 2.0.3 chalk: 4.1.2 @@ -4256,7 +4315,7 @@ snapshots: jest-mock@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 jest-util: 29.7.0 jest-pnp-resolver@1.2.3(jest-resolve@29.7.0): @@ -4280,8 +4339,8 @@ snapshots: jest-pnp-resolver: 1.2.3(jest-resolve@29.7.0) jest-util: 29.7.0 jest-validate: 29.7.0 - resolve: 1.22.8 - resolve.exports: 2.0.2 + resolve: 1.22.10 + resolve.exports: 2.0.3 slash: 3.0.0 jest-runner@29.7.0: @@ -4291,7 +4350,7 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11 @@ -4319,9 +4378,9 @@ snapshots: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 chalk: 4.1.2 - cjs-module-lexer: 1.3.1 + cjs-module-lexer: 1.4.3 collect-v8-coverage: 1.0.2 glob: 7.2.3 graceful-fs: 4.2.11 @@ -4339,15 +4398,15 @@ snapshots: jest-snapshot@29.7.0: dependencies: - '@babel/core': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.24.7) - '@babel/plugin-syntax-typescript': 7.24.7(@babel/core@7.24.7) - '@babel/types': 7.24.7 + '@babel/core': 7.26.10 + '@babel/generator': 7.27.0 + '@babel/plugin-syntax-jsx': 7.25.9(@babel/core@7.26.10) + '@babel/plugin-syntax-typescript': 7.25.9(@babel/core@7.26.10) + '@babel/types': 7.27.0 '@jest/expect-utils': 29.7.0 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-preset-current-node-syntax: 1.0.1(@babel/core@7.24.7) + babel-preset-current-node-syntax: 1.1.0(@babel/core@7.26.10) chalk: 4.1.2 expect: 29.7.0 graceful-fs: 4.2.11 @@ -4358,14 +4417,14 @@ snapshots: jest-util: 29.7.0 natural-compare: 1.4.0 pretty-format: 29.7.0 - semver: 7.6.2 + semver: 7.7.1 transitivePeerDependencies: - supports-color jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -4384,7 +4443,7 @@ snapshots: dependencies: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 20.14.9 + '@types/node': 20.17.28 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -4393,17 +4452,17 @@ snapshots: jest-worker@29.7.0: dependencies: - '@types/node': 20.14.9 + '@types/node': 20.17.28 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 - jest@29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)): + jest@29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)): dependencies: - '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + '@jest/core': 29.7.0(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) '@jest/types': 29.6.3 - import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + import-local: 3.2.0 + jest-cli: 29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -4417,7 +4476,7 @@ snapshots: argparse: 1.0.10 esprima: 4.0.1 - jsesc@2.5.2: {} + jsesc@3.1.0: {} json-parse-even-better-errors@2.3.1: {} @@ -4445,7 +4504,7 @@ snapshots: make-dir@4.0.0: dependencies: - semver: 7.6.2 + semver: 7.7.1 make-error@1.3.6: {} @@ -4468,7 +4527,15 @@ snapshots: dependencies: brace-expansion: 1.1.11 - ms@2.1.2: {} + minimatch@5.1.6: + dependencies: + brace-expansion: 2.0.1 + + mnemonist@0.38.3: + dependencies: + obliterator: 1.6.1 + + ms@2.1.3: {} natural-compare@1.4.0: {} @@ -4482,7 +4549,7 @@ snapshots: node-int64@0.4.0: {} - node-releases@2.0.14: {} + node-releases@2.0.19: {} normalize-path@3.0.0: {} @@ -4490,6 +4557,8 @@ snapshots: dependencies: path-key: 3.1.1 + obliterator@1.6.1: {} + once@1.4.0: dependencies: wrappy: 1.0.2 @@ -4514,7 +4583,7 @@ snapshots: parse-json@5.2.0: dependencies: - '@babel/code-frame': 7.24.7 + '@babel/code-frame': 7.26.2 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -4527,11 +4596,11 @@ snapshots: path-parse@1.0.7: {} - picocolors@1.0.1: {} + picocolors@1.1.1: {} picomatch@2.3.1: {} - pirates@4.0.6: {} + pirates@4.0.7: {} pkg-dir@4.2.0: dependencies: @@ -4566,11 +4635,11 @@ snapshots: resolve-from@5.0.0: {} - resolve.exports@2.0.2: {} + resolve.exports@2.0.3: {} - resolve@1.22.8: + resolve@1.22.10: dependencies: - is-core-module: 2.14.0 + is-core-module: 2.16.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -4580,7 +4649,7 @@ snapshots: semver@6.3.1: {} - semver@7.6.2: {} + semver@7.7.1: {} shebang-command@2.0.0: dependencies: @@ -4639,11 +4708,7 @@ snapshots: strip-json-comments@3.1.1: {} - strnum@1.0.5: {} - - supports-color@5.5.0: - dependencies: - has-flag: 3.0.0 + strnum@1.1.2: {} supports-color@7.2.0: dependencies: @@ -4663,41 +4728,41 @@ snapshots: tmpl@1.0.5: {} - to-fast-properties@2.0.0: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 - ts-jest@29.1.5(@babel/core@7.24.7)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.7))(esbuild@0.25.0)(jest@29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)))(typescript@5.2.2): + ts-jest@29.3.0(@babel/core@7.26.10)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.10))(esbuild@0.25.1)(jest@29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)))(typescript@5.2.2): dependencies: bs-logger: 0.2.6 + ejs: 3.1.10 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@types/node@20.14.9)(ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2)) + jest: 29.7.0(@types/node@20.17.28)(ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2)) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 make-error: 1.3.6 - semver: 7.6.2 + semver: 7.7.1 + type-fest: 4.38.0 typescript: 5.2.2 yargs-parser: 21.1.1 optionalDependencies: - '@babel/core': 7.24.7 + '@babel/core': 7.26.10 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.24.7) - esbuild: 0.25.0 + babel-jest: 29.7.0(@babel/core@7.26.10) + esbuild: 0.25.1 - ts-node@10.9.2(@types/node@20.14.9)(typescript@5.2.2): + ts-node@10.9.2(@types/node@20.17.28)(typescript@5.2.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.14.9 - acorn: 8.12.0 - acorn-walk: 8.3.3 + '@types/node': 20.17.28 + acorn: 8.14.1 + acorn-walk: 8.3.4 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 @@ -4706,24 +4771,28 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - tslib@2.6.3: {} + tslib@2.8.1: {} type-detect@4.0.8: {} type-fest@0.21.3: {} + type-fest@4.38.0: {} + typescript@5.2.2: {} - undici-types@5.26.5: {} + undici-types@6.19.8: {} - update-browserslist-db@1.0.16(browserslist@4.23.1): + update-browserslist-db@1.1.3(browserslist@4.24.4): dependencies: - browserslist: 4.23.1 - escalade: 3.1.2 - picocolors: 1.0.1 + browserslist: 4.24.4 + escalade: 3.2.0 + picocolors: 1.1.1 util-deprecate@1.0.2: {} + uuid@10.0.0: {} + uuid@9.0.1: {} v8-compile-cache-lib@3.0.1: {} @@ -4768,7 +4837,7 @@ snapshots: yargs@17.7.2: dependencies: cliui: 8.0.1 - escalade: 3.1.2 + escalade: 3.2.0 get-caller-file: 2.0.5 require-directory: 2.1.1 string-width: 4.2.3 diff --git a/infra/pubspec.yaml b/infra/pubspec.yaml index 47fd11ea11..7de7e728a1 100644 --- a/infra/pubspec.yaml +++ b/infra/pubspec.yaml @@ -2,7 +2,7 @@ name: infra publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_core: any diff --git a/infra/tool/create_configs.dart b/infra/tool/create_configs.dart index 5d3c2afb7d..437239196e 100755 --- a/infra/tool/create_configs.dart +++ b/infra/tool/create_configs.dart @@ -41,17 +41,16 @@ late final Directory repoRoot = () { void main() { final { - 'AmplifyFlutterIntegStack': { - 'Categories': String categoriesJson, - } + 'AmplifyFlutterIntegStack': {'Categories': String categoriesJson}, } = jsonDecode(File('outputs.json').readAsStringSync()); final categories = jsonDecode(categoriesJson) as Map; for (final MapEntry(key: categoryName, value: categoryInfo) in categories.entries) { final { - 'region': String region, - 'bucketName': String bucketName, - } = categoryInfo; + 'region': String region, + 'bucketName': String bucketName, + } = + categoryInfo; final category = Category.values.firstWhere( (c) => c.name.toLowerCase() == categoryName, ); diff --git a/packages/aft/lib/aft.dart b/packages/aft/lib/aft.dart index ec700dc3f6..ce7b99b2e6 100644 --- a/packages/aft/lib/aft.dart +++ b/packages/aft/lib/aft.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library aft; +library; export 'src/commands/amplify_command.dart'; export 'src/commands/bootstrap_command.dart'; diff --git a/packages/aft/lib/src/changelog/changelog.dart b/packages/aft/lib/src/changelog/changelog.dart index 7ca882dff0..d8406e941a 100644 --- a/packages/aft/lib/src/changelog/changelog.dart +++ b/packages/aft/lib/src/changelog/changelog.dart @@ -36,10 +36,7 @@ abstract class Changelog implements Built { /// /// Throws a [ChangelogParseException] if there are issues processing the /// changelog. - factory Changelog.parse( - String changelogMd, { - AWSLogger? logger, - }) { + factory Changelog.parse(String changelogMd, {AWSLogger? logger}) { final parser = Document(); final lines = LineSplitter.split(changelogMd).toList(); final ast = parser.parseLines(lines); @@ -74,8 +71,9 @@ abstract class Changelog implements Built { }) { version ??= nextVersion; commits = commits.where((commit) => commit.includeInChangelog); - final commitsByType = - commits.groupListsBy((element) => element.group); + final commitsByType = commits.groupListsBy( + (element) => element.group, + ); final versionText = version == nextVersion ? nextVersionTag : version.toString(); @@ -87,8 +85,9 @@ abstract class Changelog implements Built { // bug fixes/improvements. nodes.add(Element.text('li', 'Minor bug fixes and improvements\n')); } else { - final sortedCommitTypes = - commitsByType.entries.sortedBy((entry) => entry.key.index); + final sortedCommitTypes = commitsByType.entries.sortedBy( + (entry) => entry.key.index, + ); for (final typedCommits in sortedCommitTypes) { nodes.add(Element.text('h3', typedCommits.key.header)); @@ -97,15 +96,15 @@ abstract class Changelog implements Built { final commits = typedCommits.value .sortedBy((commit) => commit.summary) .map((commit) { - final taggedPr = commit.taggedPr; - if (taggedPr == null) { - return commit.summary; - } - return commit.summary.replaceFirst( - '(#$taggedPr)', - '([#$taggedPr]($baseUrl/pull/$taggedPr))', - ); - }); + final taggedPr = commit.taggedPr; + if (taggedPr == null) { + return commit.summary; + } + return commit.summary.replaceFirst( + '(#$taggedPr)', + '([#$taggedPr]($baseUrl/pull/$taggedPr))', + ); + }); final list = Element('ul', [ for (final commit in commits) Element.text('li', commit), @@ -124,10 +123,7 @@ abstract class Changelog implements Built { required Iterable commits, Version? version, }) { - final nodes = makeVersionEntry( - commits: commits, - version: version, - ); + final nodes = makeVersionEntry(commits: commits, version: version); // Replace the text in changelogMd so that the latest version matches // `version`, if given, else `NEXT`. String keepText; @@ -156,11 +152,7 @@ abstract class Changelog implements Built { } class ChangelogUpdate { - const ChangelogUpdate( - this.keepText, { - required this.commits, - this.newText, - }); + const ChangelogUpdate(this.keepText, {required this.commits, this.newText}); final String keepText; final Iterable commits; diff --git a/packages/aft/lib/src/changelog/changelog.g.dart b/packages/aft/lib/src/changelog/changelog.g.dart index 7b824595f4..f6eaf9fbd8 100644 --- a/packages/aft/lib/src/changelog/changelog.g.dart +++ b/packages/aft/lib/src/changelog/changelog.g.dart @@ -16,9 +16,12 @@ class _$Changelog extends Changelog { (new ChangelogBuilder()..update(updates))._build(); _$Changelog._({required this.originalText, required this.versions}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - originalText, r'Changelog', 'originalText'); + originalText, + r'Changelog', + 'originalText', + ); BuiltValueNullFieldError.checkNotNull(versions, r'Changelog', 'versions'); } @@ -89,11 +92,16 @@ class ChangelogBuilder implements Builder { _$Changelog _build() { _$Changelog _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$Changelog._( - originalText: BuiltValueNullFieldError.checkNotNull( - originalText, r'Changelog', 'originalText'), - versions: versions.build()); + originalText: BuiltValueNullFieldError.checkNotNull( + originalText, + r'Changelog', + 'originalText', + ), + versions: versions.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,7 +109,10 @@ class ChangelogBuilder implements Builder { versions.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'Changelog', _$failedField, e.toString()); + r'Changelog', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/aft/lib/src/changelog/commit_message.dart b/packages/aft/lib/src/changelog/commit_message.dart index d357f9675d..2a753f64c4 100644 --- a/packages/aft/lib/src/changelog/commit_message.dart +++ b/packages/aft/lib/src/changelog/commit_message.dart @@ -70,11 +70,12 @@ abstract class CommitMessage with AWSEquatable { required String body, int? commitTimeSecs, }) { - final dateTime = commitTimeSecs == null - ? DateTime.now().toUtc() - : DateTime.fromMillisecondsSinceEpoch( - commitTimeSecs * 1000, - ).toUtc(); + final dateTime = + commitTimeSecs == null + ? DateTime.now().toUtc() + : DateTime.fromMillisecondsSinceEpoch( + commitTimeSecs * 1000, + ).toUtc(); final mergeCommit = _mergeCommitRegex.firstMatch(summary); if (mergeCommit != null) { return MergeCommitMessage( @@ -104,17 +105,19 @@ abstract class CommitMessage with AWSEquatable { final type = CommitType.values.byName(typeStr); final isBreakingChange = commitMessage.namedGroup('breaking') != null; - final scopes = commitMessage + final scopes = + commitMessage .namedGroup('scope') ?.replaceAll(RegExp(r'[\(\)]'), '') .split(',') .map((scope) => scope.trim()) .toList() ?? const []; - final description = commitMessage - .namedGroup('description') - ?.replaceAll(RegExp(r'^:\s'), '') - .trim(); + final description = + commitMessage + .namedGroup('description') + ?.replaceAll(RegExp(r'^:\s'), '') + .trim(); // Fall back for malformed messages. if (description == null) { return UnconventionalCommitMessage( @@ -350,17 +353,17 @@ class VersionCommitMessage extends CommitMessage { required DateTime dateTime, }) { final trailers = Map.fromEntries( - LineSplitter.split(body).where(_trailerRegex.hasMatch).map( - (line) => MapEntry( - line.split(':')[0], - line.split(':')[1].trim(), - ), + LineSplitter.split(body) + .where(_trailerRegex.hasMatch) + .map( + (line) => MapEntry(line.split(':')[0], line.split(':')[1].trim()), ), ); final updatedComponentsStr = trailers['Updated-Components']; - final updatedComponents = updatedComponentsStr == null - ? const [] - : updatedComponentsStr.split(',').map((el) => el.trim()).toList(); + final updatedComponents = + updatedComponentsStr == null + ? const [] + : updatedComponentsStr.split(',').map((el) => el.trim()).toList(); return VersionCommitMessage._( sha: sha, summary: summary, diff --git a/packages/aft/lib/src/command_runner.dart b/packages/aft/lib/src/command_runner.dart index 349ec559d7..320c63affe 100644 --- a/packages/aft/lib/src/command_runner.dart +++ b/packages/aft/lib/src/command_runner.dart @@ -8,33 +8,35 @@ import 'package:args/command_runner.dart'; /// Runs the `aft` command using the given [args]. Future run(List args) async { - final runner = CommandRunner('aft', 'Amplify Flutter repo tools') - ..argParser.addFlag( - 'verbose', - abbr: 'v', - help: 'Prints verbose logs', - defaultsTo: false, - ) - ..argParser.addOption( - 'directory', - help: 'Directory to run commands from. Defaults to current directory.', - hide: true, - ) - ..addCommand(GenerateCommand()) - ..addCommand(ListPackagesCommand()) - ..addCommand(ConstraintsCommand()) - ..addCommand(LinkCommand()) - ..addCommand(CleanCommand()) - ..addCommand(PublishCommand()) - ..addCommand(BootstrapCommand()) - ..addCommand(VersionBumpCommand()) - ..addCommand(ExecCommand()) - ..addCommand(CreateCommand()) - ..addCommand(SaveRepoStateCommand()) - ..addCommand(RunCommand()) - ..addCommand(DocsCommand()) - ..addCommand(ServeCommand()) - ..addCommand(ReviewCommand()); + final runner = + CommandRunner('aft', 'Amplify Flutter repo tools') + ..argParser.addFlag( + 'verbose', + abbr: 'v', + help: 'Prints verbose logs', + defaultsTo: false, + ) + ..argParser.addOption( + 'directory', + help: + 'Directory to run commands from. Defaults to current directory.', + hide: true, + ) + ..addCommand(GenerateCommand()) + ..addCommand(ListPackagesCommand()) + ..addCommand(ConstraintsCommand()) + ..addCommand(LinkCommand()) + ..addCommand(CleanCommand()) + ..addCommand(PublishCommand()) + ..addCommand(BootstrapCommand()) + ..addCommand(VersionBumpCommand()) + ..addCommand(ExecCommand()) + ..addCommand(CreateCommand()) + ..addCommand(SaveRepoStateCommand()) + ..addCommand(RunCommand()) + ..addCommand(DocsCommand()) + ..addCommand(ServeCommand()) + ..addCommand(ReviewCommand()); try { final argResults = runner.argParser.parse(args); diff --git a/packages/aft/lib/src/commands/amplify_command.dart b/packages/aft/lib/src/commands/amplify_command.dart index 7588340e16..bc3dd503a6 100644 --- a/packages/aft/lib/src/commands/amplify_command.dart +++ b/packages/aft/lib/src/commands/amplify_command.dart @@ -43,9 +43,10 @@ abstract class AmplifyCommand extends Command @override void handleLogEntry(LogEntry logEntry) { - final message = verbose - ? '${logEntry.loggerName} | ${logEntry.message}' - : logEntry.message; + final message = + verbose + ? '${logEntry.loggerName} | ${logEntry.message}' + : logEntry.message; switch (logEntry.level) { case LogLevel.verbose: case LogLevel.debug: @@ -121,10 +122,7 @@ abstract class AmplifyCommand extends Command late final Repo repo; /// Runs `git` with the given [args] from the repo's root directory. - Future runGit( - List args, { - bool echoOutput = false, - }) => + Future runGit(List args, {bool echoOutput = false}) => git.runGit( args, processWorkingDir: rootDir.path, diff --git a/packages/aft/lib/src/commands/bootstrap_command.dart b/packages/aft/lib/src/commands/bootstrap_command.dart index cf26df05d9..fd6712209e 100644 --- a/packages/aft/lib/src/commands/bootstrap_command.dart +++ b/packages/aft/lib/src/commands/bootstrap_command.dart @@ -28,7 +28,8 @@ class BootstrapCommand extends AmplifyCommand with GlobOptions, FailFastOption { } @override - String get description => 'Links all packages in the Amplify Flutter repo ' + String get description => + 'Links all packages in the Amplify Flutter repo ' 'to prepare for local development'; @override @@ -60,8 +61,7 @@ class BootstrapCommand extends AmplifyCommand with GlobOptions, FailFastOption { } await file.create(); // formatting is important to avoid lint errors - await file.writeAsString( - ''' + await file.writeAsString(''' const amplifyconfig = \'\'\'{ "UserAgent": "aws-amplify-cli/2.0", "Version": "1.0" @@ -73,30 +73,25 @@ const amplifyConfig = \'\'\'{ }\'\'\'; const amplifyEnvironments = {}; -''', - ); +'''); } Future _createEmptyGen2Config(PackageInfo package) async { - final file = File( - path.join(package.path, 'lib', 'amplify_outputs.dart'), - ); + final file = File(path.join(package.path, 'lib', 'amplify_outputs.dart')); if (await file.exists() || !await Directory(path.join(package.path, 'lib')).exists()) { return; } await file.create(); -// formatting is important to avoid lint errors - await file.writeAsString( - ''' + // formatting is important to avoid lint errors + await file.writeAsString(''' const amplifyConfig = \'\'\'{ "version": "1" }\'\'\'; const amplifyEnvironments = {}; -''', - ); +'''); } @override @@ -104,34 +99,35 @@ const amplifyEnvironments = {}; await super.run(); await linkPackages(); - final bootstrapPackages = commandPackages.values - .where( - // Skip bootstrap for `aft` since it has already had `dart pub upgrade` - // run with the native command, and running it again with the embedded - // command could cause issues later on, esp. when the native `pub` - // command is significantly newer/older than the embedded one. - (pkg) => pkg.name != 'aft', - ) - .where( - // Skip bootstrapping packages which set incompatible Dart SDK constraints, - // e.g. packages which are leveraging preview features. - // - // The problem of packages setting incorrect constraints, for example setting - // `^3.0.5` when the current repo constraint is `^3.0.0` and we're running - // `aft` with `3.0.1` is a different issue handled by the constraints commands. - (pkg) { - final compatibleWithActiveSdk = pkg.compatibleWithActiveSdk; - if (!compatibleWithActiveSdk) { - logger.info( - 'Skipping package ${pkg.name} since it sets an incompatible Dart SDK constraint: ' - '${pkg.dartSdkConstraint}', - ); - } - return compatibleWithActiveSdk; - }, - ) - .expand((pkg) => [pkg, pkg.example, pkg.docs]) - .nonNulls; + final bootstrapPackages = + commandPackages.values + .where( + // Skip bootstrap for `aft` since it has already had `dart pub upgrade` + // run with the native command, and running it again with the embedded + // command could cause issues later on, esp. when the native `pub` + // command is significantly newer/older than the embedded one. + (pkg) => pkg.name != 'aft', + ) + .where( + // Skip bootstrapping packages which set incompatible Dart SDK constraints, + // e.g. packages which are leveraging preview features. + // + // The problem of packages setting incorrect constraints, for example setting + // `^3.0.5` when the current repo constraint is `^3.0.0` and we're running + // `aft` with `3.0.1` is a different issue handled by the constraints commands. + (pkg) { + final compatibleWithActiveSdk = pkg.compatibleWithActiveSdk; + if (!compatibleWithActiveSdk) { + logger.info( + 'Skipping package ${pkg.name} since it sets an incompatible Dart SDK constraint: ' + '${pkg.dartSdkConstraint}', + ); + } + return compatibleWithActiveSdk; + }, + ) + .expand((pkg) => [pkg, pkg.example, pkg.docs]) + .nonNulls; for (final package in bootstrapPackages) { await pubAction( arguments: [if (upgrade) 'upgrade' else 'get'], @@ -145,21 +141,18 @@ const amplifyEnvironments = {}; final buildPackages = {}; final packageGraph = repo.getPackageGraph(includeDevDependencies: true); for (final package in bootstrapPackages) { - dfs( - packageGraph, - root: package, - (package) { - // Only run build_runner for packages which need it for development, - // i.e. those packages which specify worker JS files in their assets. - final needsBuild = package.needsBuildRunner && - (package.pubspecInfo.pubspec.flutter?.containsKey('assets') ?? - false) && - package.flavor == PackageFlavor.dart; - if (needsBuild) { - buildPackages.add(package); - } - }, - ); + dfs(packageGraph, root: package, (package) { + // Only run build_runner for packages which need it for development, + // i.e. those packages which specify worker JS files in their assets. + final needsBuild = + package.needsBuildRunner && + (package.pubspecInfo.pubspec.flutter?.containsKey('assets') ?? + false) && + package.flavor == PackageFlavor.dart; + if (needsBuild) { + buildPackages.add(package); + } + }); } for (final package in buildPackages) { await runBuildRunner(package, logger: logger, verbose: verbose); diff --git a/packages/aft/lib/src/commands/clean_command.dart b/packages/aft/lib/src/commands/clean_command.dart index 702f2f53c3..0477e5c2df 100644 --- a/packages/aft/lib/src/commands/clean_command.dart +++ b/packages/aft/lib/src/commands/clean_command.dart @@ -22,11 +22,9 @@ class CleanCommand extends AmplifyCommand { } switch (package.flavor) { case PackageFlavor.flutter: - final cleanCmd = await Process.start( - 'flutter', - ['clean'], - workingDirectory: package.path, - ); + final cleanCmd = await Process.start('flutter', [ + 'clean', + ], workingDirectory: package.path); final errors = StringBuffer(); cleanCmd.captureStderr(sink: errors.writeln); if (await cleanCmd.exitCode != 0) { diff --git a/packages/aft/lib/src/commands/constraints_command.dart b/packages/aft/lib/src/commands/constraints_command.dart index 1c5e64d626..38a2d0664c 100644 --- a/packages/aft/lib/src/commands/constraints_command.dart +++ b/packages/aft/lib/src/commands/constraints_command.dart @@ -78,9 +78,9 @@ class _ConstraintsSubcommand extends AmplifyCommand with GlobOptions { } if (package.pubspecInfo.pubspecYamlEditor.edits.isNotEmpty) { - File.fromUri(package.pubspecInfo.uri).writeAsStringSync( - package.pubspecInfo.pubspecYamlEditor.toString(), - ); + File.fromUri( + package.pubspecInfo.uri, + ).writeAsStringSync(package.pubspecInfo.pubspecYamlEditor.toString()); } } final mismatchedDependencies = constraintsCheckers.expand( @@ -137,10 +137,10 @@ class _ConstraintsUpdateCommand extends _ConstraintsSubcommand { final versionConstraint = entry.value; void updateConstraint(VersionConstraint newVersionConstraint) { - aftEditor.update( - ['dependencies', package], - newVersionConstraint.toString(), - ); + aftEditor.update([ + 'dependencies', + package, + ], newVersionConstraint.toString()); } // Get the currently published version of the package. @@ -159,10 +159,7 @@ class _ConstraintsUpdateCommand extends _ConstraintsSubcommand { // create a range). if (latestVersion != versionConstraint) { updateConstraint( - maxBy( - [versionConstraint, latestVersion], - (v) => v, - )!, + maxBy([versionConstraint, latestVersion], (v) => v)!, ); } } else { @@ -241,10 +238,9 @@ class _ConstraintsUpdateCommand extends _ConstraintsSubcommand { final hasUpdates = aftEditor.edits.isNotEmpty; if (hasUpdates) { - File.fromUri(rootPubspec.uri).writeAsStringSync( - aftEditor.toString(), - flush: true, - ); + File.fromUri( + rootPubspec.uri, + ).writeAsStringSync(aftEditor.toString(), flush: true); aftConfigLoader.reload(); } else { logger.info('No dependencies updated'); @@ -289,10 +285,7 @@ class _ConstraintsPubVerifyCommand extends AmplifyCommand { // Packages with version constraints so old, we consider them abandoned // and don't bother running the constraint check for them. - const unofficiallyAbandonedPackages = [ - 'chewie', - 'wakelock', - ]; + const unofficiallyAbandonedPackages = ['chewie', 'wakelock']; // List top pub.dev packages logger.info('Collecting top $count pub.dev packages...'); @@ -313,8 +306,9 @@ class _ConstraintsPubVerifyCommand extends AmplifyCommand { // Create app with all Amplify Flutter dependencies logger.info('Creating temporary app...'); - final appDir = - Directory.systemTemp.createTempSync('amplify_constraints_verify_'); + final appDir = Directory.systemTemp.createTempSync( + 'amplify_constraints_verify_', + ); final createRes = await Process.start( 'flutter', ['create', '--project-name=constraints_verify', '.'], @@ -340,9 +334,7 @@ class _ConstraintsPubVerifyCommand extends AmplifyCommand { stderrEncoding: utf8, ); if (addRes.exitCode != 0) { - throw Exception( - 'Could not add Amplify packages: ${addRes.stderr}', - ); + throw Exception('Could not add Amplify packages: ${addRes.stderr}'); } // Try adding each package diff --git a/packages/aft/lib/src/commands/create_command.dart b/packages/aft/lib/src/commands/create_command.dart index ebdc762f21..556bffe793 100644 --- a/packages/aft/lib/src/commands/create_command.dart +++ b/packages/aft/lib/src/commands/create_command.dart @@ -8,11 +8,7 @@ import 'package:collection/collection.dart'; import 'package:mason/mason.dart'; import 'package:path/path.dart' as p; -enum CreateTemplate { - dartPackage, - flutterPackage, - flutterPlugin, -} +enum CreateTemplate { dartPackage, flutterPackage, flutterPlugin } /// Command to create new Amplify packages. class CreateCommand extends AmplifyCommand { @@ -21,9 +17,7 @@ class CreateCommand extends AmplifyCommand { 'template', abbr: 't', help: 'The template to use (defaults to `dart`)', - allowed: CreateTemplate.values.map( - (template) => template.name.paramCase, - ), + allowed: CreateTemplate.values.map((template) => template.name.paramCase), defaultsTo: CreateTemplate.dartPackage.name.paramCase, ); } @@ -41,13 +35,7 @@ class CreateCommand extends AmplifyCommand { @override Future run() async { await super.run(); - final brick = Brick.path( - p.join( - rootDir.path, - 'templates', - template, - ), - ); + final brick = Brick.path(p.join(rootDir.path, 'templates', template)); final name = argResults!.rest.singleOrNull; if (name == null) { usageException( @@ -72,9 +60,7 @@ class CreateCommand extends AmplifyCommand { final iosMinOsVersion = aftConfig.platforms!.ios.minOSVersion; final macosMinOsVersion = aftConfig.platforms!.macOS.minOSVersion; - await generator.hooks.preGen( - workingDirectory: outputDir.path, - ); + await generator.hooks.preGen(workingDirectory: outputDir.path); await generator.generate( target, vars: { @@ -89,8 +75,6 @@ class CreateCommand extends AmplifyCommand { 'macosMinOsVersion': macosMinOsVersion, }, ); - await generator.hooks.postGen( - workingDirectory: outputDir.path, - ); + await generator.hooks.postGen(workingDirectory: outputDir.path); } } diff --git a/packages/aft/lib/src/commands/docs_command.dart b/packages/aft/lib/src/commands/docs_command.dart index 0336d1ea3a..9640373da3 100644 --- a/packages/aft/lib/src/commands/docs_command.dart +++ b/packages/aft/lib/src/commands/docs_command.dart @@ -33,8 +33,9 @@ class DocsCommand extends AmplifyCommand { abstract class _DocsSubcommand extends AmplifyCommand with FailFastOption, GlobOptions { - late final Logger mLogger = - Logger(level: verbose ? Level.verbose : Level.info); + late final Logger mLogger = Logger( + level: verbose ? Level.verbose : Level.info, + ); @override PackageSelector get basePackageSelector { @@ -77,10 +78,7 @@ abstract class _DocsSubcommand extends AmplifyCommand continue; } final toFile = File( - p.join( - to.path, - p.relative(fromFile.path, from: from.path), - ), + p.join(to.path, p.relative(fromFile.path, from: from.path)), ); await toFile.create(recursive: true); await fromFile.copy(toFile.path); @@ -89,10 +87,7 @@ abstract class _DocsSubcommand extends AmplifyCommand /// Runs pre-build commands if a package uses `code_excerpter` to /// separate code snippets from docs. - Future _prebuildDocs( - PackageInfo package, { - Progress? progress, - }) async { + Future _prebuildDocs(PackageInfo package, {Progress? progress}) async { final log = progress?.update ?? mLogger.detail; final docsPackageDir = Directory(p.join(package.path, 'doc')); final docsPackage = PackageInfo.fromDirectory(docsPackageDir); @@ -139,9 +134,7 @@ abstract class _DocsSubcommand extends AmplifyCommand await _prebuildDocs(package, progress: progress); progress.update('Running `dart doc` for ${package.name}'); final buildDir = await _dartDoc(package); - final packageOutputDir = Directory( - p.join(outputDir, package.name), - ); + final packageOutputDir = Directory(p.join(outputDir, package.name)); progress.update('Copying docs to root dir'); await _copyDir(buildDir, packageOutputDir); progress.complete( @@ -163,8 +156,9 @@ abstract class _DocsSubcommand extends AmplifyCommand buildOutputs.add( failFast ? buildFuture.then((res) => (package, progress, ValueResult(res))) - : Result.capture(buildFuture) - .then((res) => (package, progress, res)), + : Result.capture( + buildFuture, + ).then((res) => (package, progress, res)), ); } buildOutputs.close(); @@ -185,9 +179,9 @@ abstract class _DocsSubcommand extends AmplifyCommand ..err(stackTrace.toString()); } } - final renderedHtml = Template(_indexTmpl).renderString({ - 'packages': packageOutputs, - }); + final renderedHtml = Template( + _indexTmpl, + ).renderString({'packages': packageOutputs}); final indexFile = File(p.join(outputDir, 'index.html')); await indexFile.create(); await indexFile.writeAsString(renderedHtml); @@ -218,9 +212,10 @@ class _DocsBuildSubcommand extends _DocsSubcommand { await super.run(); await linkPackages(); - final outputDir = p.isAbsolute(outputPath) - ? outputPath - : p.join(rootDir.path, outputPath); + final outputDir = + p.isAbsolute(outputPath) + ? outputPath + : p.join(rootDir.path, outputPath); await _buildAllDocs(outputDir); logger.info('Docs have been written to: $outputDir'); } @@ -242,7 +237,8 @@ class _DocsServeSubcommand extends _DocsSubcommand { String get name => 'serve'; @override - String get description => 'Serves API documentation locally, automatically ' + String get description => + 'Serves API documentation locally, automatically ' 'rebuilding when files have changed'; @override @@ -306,12 +302,12 @@ class _PackageWatcher implements Closeable { void _listenForEvents() { final entitiesToWatch = const [ - 'doc/*.yaml', - 'doc/lib/', - 'doc/static/', - 'lib/', - '*.yaml', - ] + 'doc/*.yaml', + 'doc/lib/', + 'doc/static/', + 'lib/', + '*.yaml', + ] .map((path) => p.join(package.path, path)) .expand((subpath) => Glob(subpath).listSync()); final eventStream = StreamGroup.merge([ diff --git a/packages/aft/lib/src/commands/exec_command.dart b/packages/aft/lib/src/commands/exec_command.dart index 09978810cc..40bf27ed95 100644 --- a/packages/aft/lib/src/commands/exec_command.dart +++ b/packages/aft/lib/src/commands/exec_command.dart @@ -28,28 +28,27 @@ class ExecCommand extends AmplifyCommand with GlobOptions, FailFastOption { // Process command to handle some quirks of bash and how Dart initially // captures these scripts. - final command = rawCommand - .map((arg) => arg.trim()) - .where((arg) => arg.isNotEmpty) - .map((arg) { - // Inject environment variables for inline scripts. - // - // We use bracket notation (e.g. ) to prevent bash expansion - // and prevent having to deal with proper quotation and escaping. - environment.forEach((key, value) { - arg = arg.replaceAll('<$key>', value); - }); - return arg; - }).toList(); + final command = + rawCommand.map((arg) => arg.trim()).where((arg) => arg.isNotEmpty).map(( + arg, + ) { + // Inject environment variables for inline scripts. + // + // We use bracket notation (e.g. ) to prevent bash expansion + // and prevent having to deal with proper quotation and escaping. + environment.forEach((key, value) { + arg = arg.replaceAll('<$key>', value); + }); + return arg; + }).toList(); for (final package in commandPackages.values) { - logger.info( - 'Running "${command.join(' ')}" in "${package.path}"...', - ); - final result = await execCommand( - ['sh', '-c', command.join(' ')], - workingDirectory: package.path, - ); + logger.info('Running "${command.join(' ')}" in "${package.path}"...'); + final result = await execCommand([ + 'sh', + '-c', + command.join(' '), + ], workingDirectory: package.path); if (result.exitCode != 0) { if (failFast) { exitError( diff --git a/packages/aft/lib/src/commands/generate/generate_amplify_swift_command.dart b/packages/aft/lib/src/commands/generate/generate_amplify_swift_command.dart index 196e1953ac..b44ad3216b 100644 --- a/packages/aft/lib/src/commands/generate/generate_amplify_swift_command.dart +++ b/packages/aft/lib/src/commands/generate/generate_amplify_swift_command.dart @@ -12,10 +12,7 @@ import 'package:io/io.dart'; import 'package:path/path.dart' as p; class PluginConfig { - const PluginConfig({ - required this.name, - required this.remotePathToSource, - }); + const PluginConfig({required this.name, required this.remotePathToSource}); /// The name of the plugin. final String name; @@ -58,8 +55,10 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { /// If not provided, defaults to `release`. late final branchTarget = argResults!['branch'] as String; - late final _dataStoreRootDir = - p.join(rootDir.path, 'packages/amplify_datastore'); + late final _dataStoreRootDir = p.join( + rootDir.path, + 'packages/amplify_datastore', + ); final _pluginOutputDir = 'ios/internal'; final _exampleOutputDir = 'example/ios'; @@ -81,10 +80,7 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { name: 'AWSPluginsCore', remotePathToSource: 'AmplifyPlugins/Core/AWSPluginsCore', ), - const PluginConfig( - name: 'Amplify', - remotePathToSource: 'Amplify', - ), + const PluginConfig(name: 'Amplify', remotePathToSource: 'Amplify'), ]; final _importsToRemove = [ @@ -95,24 +91,20 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { /// Downloads Amplify Swift from GitHub into a temporary directory. Future _downloadRepository() => _cloneMemo.runOnce(() async { - final cloneDir = - await Directory.systemTemp.createTemp('amplify_swift_'); - logger - ..info('Downloading Amplify Swift...') - ..verbose('Cloning repo to ${cloneDir.path}'); - await runGit( - [ - 'clone', - // https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ - '--filter=tree:0', - 'https://github.com/aws-amplify/amplify-swift.git', - cloneDir.path, - ], - echoOutput: verbose, - ); - logger.info('Successfully cloned Amplify Swift Repo'); - return cloneDir; - }); + final cloneDir = await Directory.systemTemp.createTemp('amplify_swift_'); + logger + ..info('Downloading Amplify Swift...') + ..verbose('Cloning repo to ${cloneDir.path}'); + await runGit([ + 'clone', + // https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ + '--filter=tree:0', + 'https://github.com/aws-amplify/amplify-swift.git', + cloneDir.path, + ], echoOutput: verbose); + logger.info('Successfully cloned Amplify Swift Repo'); + return cloneDir; + }); /// Checks out [ref] in [pluginDir]. Future _checkoutRepositoryRef( @@ -122,13 +114,16 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { logger ..info('Checking out target branch: $ref') ..verbose('Creating git work tree in $pluginDir'); - final worktreeDir = - await Directory.systemTemp.createTemp('amplify_swift_worktree_'); + final worktreeDir = await Directory.systemTemp.createTemp( + 'amplify_swift_worktree_', + ); try { - await runGit( - ['worktree', 'add', worktreeDir.path, ref], - processWorkingDir: pluginDir.path, - ); + await runGit([ + 'worktree', + 'add', + worktreeDir.path, + ref, + ], processWorkingDir: pluginDir.path); } on Exception catch (e) { if (e.toString().contains('already checked out')) { return pluginDir; @@ -151,9 +146,12 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { } final contents = await file.readAsString(); // remove the list of import statement for Amplify including line breaks - final newContents = contents.split('\n').where((line) { - return !_importsToRemove.any((import) => line.contains(import)); - }).join('\n'); + final newContents = contents + .split('\n') + .where((line) { + return !_importsToRemove.any((import) => line.contains(import)); + }) + .join('\n'); await file.writeAsString(newContents); } } @@ -200,9 +198,7 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { exitError('No cached repo for branch $branchTarget'); } - final pluginDir = Directory.fromUri( - repoDir.uri.resolve(path), - ); + final pluginDir = Directory.fromUri(repoDir.uri.resolve(path)); await _transformPlugin(pluginDir); @@ -224,9 +220,7 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { // Clear out the directory if it already exists. // This is to ensure that we don't have any stale files. if (await outputDir.exists()) { - logger.info( - 'Deleting existing plugin directory for ${plugin.name}...', - ); + logger.info('Deleting existing plugin directory for ${plugin.name}...'); await outputDir.delete(recursive: true); } await outputDir.create(recursive: true); @@ -242,17 +236,13 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { logger.info('Checking diff for ${plugin.name}...'); final incoming = (await _pluginDirForPath(plugin.remotePathToSource)).path; final current = p.join(_dataStoreRootDir, _pluginOutputDir, plugin.name); - final diffCmd = await Process.start( - 'git', - [ - 'diff', - '--no-index', - '--exit-code', - incoming, - current, - ], - mode: verbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal, - ); + final diffCmd = await Process.start('git', [ + 'diff', + '--no-index', + '--exit-code', + incoming, + current, + ], mode: verbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal); final exitCode = await diffCmd.exitCode; if (exitCode != 0) { exitError( @@ -271,9 +261,7 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { final podInstallCmd = await Process.start( 'pod', - [ - 'install', - ], + ['install'], mode: verbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal, workingDirectory: podFilePath, ); @@ -288,9 +276,7 @@ class GenerateAmplifySwiftCommand extends AmplifyCommand with GlobOptions { for (final plugin in _amplifySwiftPlugins) { await checkDiff(plugin); } - logger.info( - 'Successfully checked diff for Amplify Swift plugins', - ); + logger.info('Successfully checked diff for Amplify Swift plugins'); } Future _runGenerate() async { diff --git a/packages/aft/lib/src/commands/generate/generate_goldens_command.dart b/packages/aft/lib/src/commands/generate/generate_goldens_command.dart index b793524cce..eb19b52bd2 100644 --- a/packages/aft/lib/src/commands/generate/generate_goldens_command.dart +++ b/packages/aft/lib/src/commands/generate/generate_goldens_command.dart @@ -16,9 +16,7 @@ import 'package:smithy/ast.dart'; import 'package:smithy_codegen/smithy_codegen.dart'; import 'package:stream_transform/stream_transform.dart'; -const skipProtocols = [ - 'shared', -]; +const skipProtocols = ['shared']; const awsProtocols = [ 'awsJson1_0', 'awsJson1_1', @@ -29,9 +27,7 @@ const awsProtocols = [ 'restXmlWithNamespace', ]; // Skip generating V1 since we use V2-specific traits and test descriptions. -const skipV1 = [ - 'custom', -]; +const skipV1 = ['custom']; /// Command for generating the AWS SDK for a given package and `sdk.yaml` file. class GenerateGoldensCommand extends AmplifyCommand { @@ -88,31 +84,28 @@ class GenerateGoldensCommand extends AmplifyCommand { Future updateModels() async { const url = 'https://github.com/awslabs/smithy'; final tmpDir = Directory.systemTemp.createTempSync('smithy'); - final process = await Process.start( - 'git', - [ - 'clone', - url, - tmpDir.path, - ], - mode: ProcessStartMode.inheritStdio, - ); + final process = await Process.start('git', [ + 'clone', + url, + tmpDir.path, + ], mode: ProcessStartMode.inheritStdio); if (await process.exitCode != 0) { stderr.writeln('Could not clone $url'); exit(1); } - final versions = await repo.git - .tags() - .map((tag) { - try { - return Version.parse(tag.tag); - } on Object { - return null; - } - }) - .whereNotNull() - .toList(); + final versions = + await repo.git + .tags() + .map((tag) { + try { + return Version.parse(tag.tag); + } on Object { + return null; + } + }) + .whereNotNull() + .toList(); versions.sort(); final latestVersion = versions.last.toString(); logger.info('Updating models to Smithy $latestVersion'); @@ -131,9 +124,7 @@ class GenerateGoldensCommand extends AmplifyCommand { 'model', protocol, ); - final dest = _replaceDirectory( - p.join(modelsPath, protocol), - ); + final dest = _replaceDirectory(p.join(modelsPath, protocol)); await _copy(src, dest); } @@ -142,10 +133,7 @@ class GenerateGoldensCommand extends AmplifyCommand { p.join(modelsPath, 'shared'), create: true, ); - const sharedModels = [ - 'aws-config.smithy', - 'shared-types.smithy', - ]; + const sharedModels = ['aws-config.smithy', 'shared-types.smithy']; for (final sharedModel in sharedModels) { final sourcePath = p.join( tmpDir.path, @@ -222,8 +210,9 @@ class GenerateGoldensCommand extends AmplifyCommand { required SmithyVersion version, required String protocolName, }) async { - stdout - .writeln('Generating Dart client for $protocolName (${version.name})'); + stdout.writeln( + 'Generating Dart client for $protocolName (${version.name})', + ); final outputPath = p.join( goldensRoot, version == SmithyVersion.v1 ? 'lib' : 'lib2', @@ -259,11 +248,12 @@ class GenerateGoldensCommand extends AmplifyCommand { final pubspecPath = p.join(outputPath, 'pubspec.yaml'); final pubspec = Pubspec(packageName); final localSmithyPath = Directory(goldensRoot).uri.resolve('..').path; - final pubspecYaml = PubspecGenerator( - pubspec, - dependencies, - smithyPath: p.relative(localSmithyPath, from: outputPath), - ).generate(); + final pubspecYaml = + PubspecGenerator( + pubspec, + dependencies, + smithyPath: p.relative(localSmithyPath, from: outputPath), + ).generate(); File(pubspecPath).writeAsStringSync(pubspecYaml); // Create analysis options @@ -290,10 +280,7 @@ override_platforms: // Run `dart pub get` final pubGetRes = await Process.run( 'dart', - [ - 'pub', - 'get', - ], + ['pub', 'get'], workingDirectory: outputPath, stdoutEncoding: utf8, stderrEncoding: utf8, @@ -307,16 +294,12 @@ override_platforms: } // Run built_value generator - final buildRunnerCmd = await Process.start( - 'dart', - [ - 'run', - 'build_runner', - 'build', - '--delete-conflicting-outputs', - ], - workingDirectory: outputPath, - ); + final buildRunnerCmd = await Process.start('dart', [ + 'run', + 'build_runner', + 'build', + '--delete-conflicting-outputs', + ], workingDirectory: outputPath); buildRunnerCmd.stdout .transform(utf8.decoder) .transform(const LineSplitter()) @@ -340,8 +323,9 @@ override_platforms: if (update) { await updateModels(); } - final glob = - Glob(argResults!.rest.length == 1 ? argResults!.rest.single : '*'); + final glob = Glob( + argResults!.rest.length == 1 ? argResults!.rest.single : '*', + ); final futures = Function()>[]; final entites = glob.listFileSystemSync( const LocalFileSystem(), diff --git a/packages/aft/lib/src/commands/generate/generate_sdk_command.dart b/packages/aft/lib/src/commands/generate/generate_sdk_command.dart index 667c19bc13..4764bd5431 100644 --- a/packages/aft/lib/src/commands/generate/generate_sdk_command.dart +++ b/packages/aft/lib/src/commands/generate/generate_sdk_command.dart @@ -22,22 +22,14 @@ import 'package:stream_transform/stream_transform.dart'; class GenerateSdkCommand extends AmplifyCommand with GlobOptions { GenerateSdkCommand() { argParser - ..addOption( - 'models', - abbr: 'm', - help: 'The path to the AWS JS V3 repo', - ) + ..addOption('models', abbr: 'm', help: 'The path to the AWS JS V3 repo') ..addOption( 'output', abbr: 'o', help: 'The lib/-relative output directory for the SDK', defaultsTo: 'src/sdk', ) - ..addOption( - 'package', - abbr: 'p', - help: 'The name of the package', - ); + ..addOption('package', abbr: 'p', help: 'The name of the package'); } @override @@ -67,33 +59,33 @@ class GenerateSdkCommand extends AmplifyCommand with GlobOptions { /// Downloads AWS models from GitHub into a temporary directory. Future _downloadModels() => _cloneMemo.runOnce(() async { - final cloneDir = await Directory.systemTemp.createTemp('models'); - logger - ..info('Downloading models...') - ..verbose('Cloning models to ${cloneDir.path}'); - await runGit( - [ - 'clone', - // https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ - '--filter=tree:0', - 'https://github.com/aws/aws-sdk-js-v3.git', - cloneDir.path, - ], - echoOutput: verbose, - ); - logger.info('Successfully cloned models'); - return cloneDir; - }); + final cloneDir = await Directory.systemTemp.createTemp('models'); + logger + ..info('Downloading models...') + ..verbose('Cloning models to ${cloneDir.path}'); + await runGit([ + 'clone', + // https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ + '--filter=tree:0', + 'https://github.com/aws/aws-sdk-js-v3.git', + cloneDir.path, + ], echoOutput: verbose); + logger.info('Successfully cloned models'); + return cloneDir; + }); /// Checks out [ref] in [modelsDir]. Future _checkoutModelsRef(Directory modelsDir, String ref) async { - final worktreeDir = - await Directory.systemTemp.createTemp('models_worktree_'); + final worktreeDir = await Directory.systemTemp.createTemp( + 'models_worktree_', + ); try { - await runGit( - ['worktree', 'add', worktreeDir.path, ref], - processWorkingDir: modelsDir.path, - ); + await runGit([ + 'worktree', + 'add', + worktreeDir.path, + ref, + ], processWorkingDir: modelsDir.path); } on Exception catch (e) { if (e.toString().contains('already checked out')) { return modelsDir; @@ -151,9 +143,10 @@ class GenerateSdkCommand extends AmplifyCommand with GlobOptions { await outputDir.create(recursive: true); } - final smithyModel = SmithyAstBuilder() - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({}); + final smithyModel = + SmithyAstBuilder() + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({}); final modelsDir = await _modelsDirForRef(config.ref); final models = modelsDir.list().whereType(); @@ -187,8 +180,8 @@ class GenerateSdkCommand extends AmplifyCommand with GlobOptions { final allOperations = serviceShape.operations.map((op) => op.target); final includeOperations = switch (operations) { List _ when operations.isNotEmpty => operations.map( - (op) => ShapeId(namespace: namespace, shape: op), - ), + (op) => ShapeId(namespace: namespace, shape: op), + ), _ => allOperations, }; for (final operation in includeOperations) { @@ -236,16 +229,15 @@ class GenerateSdkCommand extends AmplifyCommand with GlobOptions { ), ); final generatedAst = SmithyAst( - (b) => b - ..shapes = generatedShapes - ..metadata.replace(smithyAst.metadata) - ..version = smithyAst.version, - ); - final pluginCmd = await Process.start( - 'dart', - [plugin], - workingDirectory: package.path, + (b) => + b + ..shapes = generatedShapes + ..metadata.replace(smithyAst.metadata) + ..version = smithyAst.version, ); + final pluginCmd = await Process.start('dart', [ + plugin, + ], workingDirectory: package.path); pluginCmd ..stdin.writeln(jsonEncode(generatedAst)) ..captureStdout() @@ -260,12 +252,7 @@ class GenerateSdkCommand extends AmplifyCommand with GlobOptions { logger.info('Running build_runner...'); final buildRunnerCmd = await Process.start( 'dart', - [ - 'run', - 'build_runner', - 'build', - '--delete-conflicting-outputs', - ], + ['run', 'build_runner', 'build', '--delete-conflicting-outputs'], mode: verbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal, workingDirectory: package.path, ); @@ -284,34 +271,38 @@ class GenerateSdkCommand extends AmplifyCommand with GlobOptions { /// This enumeration is used to configure the SigV4 signer. To use a service /// that is not listed here, call [AWSService.new] directly.'''; final builder = LibraryBuilder(); - final awsService = ClassBuilder() - ..name = 'AWSService' - ..docs.add(classDocs) - ..constructors.add( - Constructor( - (c) => c - ..constant = true - ..docs.add( - '/// Creates a new [AWSService] instance which can be passed to a SigV4 signer.', - ) - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..toThis = true - ..name = 'service', - ), - ]), - ), - ) - ..fields.addAll([ - Field( - (f) => f - ..modifier = FieldModifier.final$ - ..docs.add('/// The SigV4 service name, used in signing.') - ..name = 'service' - ..type = refer('String'), - ), - ]); + final awsService = + ClassBuilder() + ..name = 'AWSService' + ..docs.add(classDocs) + ..constructors.add( + Constructor( + (c) => + c + ..constant = true + ..docs.add( + '/// Creates a new [AWSService] instance which can be passed to a SigV4 signer.', + ) + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..toThis = true + ..name = 'service', + ), + ]), + ), + ) + ..fields.addAll([ + Field( + (f) => + f + ..modifier = FieldModifier.final$ + ..docs.add('/// The SigV4 service name, used in signing.') + ..name = 'service' + ..type = refer('String'), + ), + ]); final modelsDir = await _modelsDirForRef('main'); final models = modelsDir.list().whereType(); @@ -332,14 +323,16 @@ class GenerateSdkCommand extends AmplifyCommand with GlobOptions { logger.debug('Found AWS service "$serviceName"'); services.add( Field( - (f) => f - ..static = true - ..modifier = FieldModifier.constant - ..docs.addAll([if (title != null) '/// $title']) - ..name = serviceName - ..assignment = refer('AWSService').constInstance([ - literalString(sigV4Service), - ]).code, + (f) => + f + ..static = true + ..modifier = FieldModifier.constant + ..docs.addAll([if (title != null) '/// $title']) + ..name = serviceName + ..assignment = + refer( + 'AWSService', + ).constInstance([literalString(sigV4Service)]).code, ), ); } @@ -365,20 +358,13 @@ ${library.accept(emitter)} '''; final output = File( - p.join( - awsCommon.path, - 'lib', - 'src', - 'config', - 'aws_service.dart', - ), + p.join(awsCommon.path, 'lib', 'src', 'config', 'aws_service.dart'), ); await output.writeAsString(code); - await Process.run( - 'dart', - ['format', output.path], - workingDirectory: awsCommon.path, - ); + await Process.run('dart', [ + 'format', + output.path, + ], workingDirectory: awsCommon.path); } @override diff --git a/packages/aft/lib/src/commands/generate/generate_workflows_command.dart b/packages/aft/lib/src/commands/generate/generate_workflows_command.dart index 892a5a1f23..7d3c2bc2e9 100644 --- a/packages/aft/lib/src/commands/generate/generate_workflows_command.dart +++ b/packages/aft/lib/src/commands/generate/generate_workflows_command.dart @@ -27,8 +27,9 @@ class GenerateWorkflowsCommand extends AmplifyCommand { late final bool setExitIfChanged = argResults!['set-exit-if-changed'] as bool; late final StringBuffer _dependabotConfig = () { - final groupPubPackages = - repo.aftConfig.dependencies.keys.map(_dependabotGroup).join('\n'); + final groupPubPackages = repo.aftConfig.dependencies.keys + .map(_dependabotGroup) + .join('\n'); return StringBuffer(''' # Generated with aft. To update, run: `aft generate workflows` version: 2 @@ -109,16 +110,14 @@ $groupPubPackages required String repoRelativePath, }) { final dependentPackages = []; - dfs( - repo.getPackageGraph(includeDevDependencies: true), - root: package, - (dependent) { - if (dependent == package || !dependent.isDevelopmentPackage) { - return; - } - dependentPackages.add(dependent); - }, - ); + dfs(repo.getPackageGraph(includeDevDependencies: true), root: package, ( + dependent, + ) { + if (dependent == package || !dependent.isDevelopmentPackage) { + return; + } + dependentPackages.add(dependent); + }); // skip aft tests which include a snapshot of the mono repo if (repoRelativePath.contains('snapshot')) { return []; @@ -140,13 +139,14 @@ $groupPubPackages ${dependentPackages.map((dep) => ' - dependency-name: "${dep.name}"').join('\n')} '''); } - final dependabotGroups = { - ...package.pubspecInfo.pubspec.dependencies.keys, - ...package.pubspecInfo.pubspec.devDependencies.keys, - } - .where(repo.aftConfig.dependencies.keys.contains) - .map(_dependabotGroup) - .toList(); + final dependabotGroups = + { + ...package.pubspecInfo.pubspec.dependencies.keys, + ...package.pubspecInfo.pubspec.devDependencies.keys, + } + .where(repo.aftConfig.dependencies.keys.contains) + .map(_dependabotGroup) + .toList(); if (dependabotGroups.isNotEmpty) { _dependabotConfig.write(''' # Group dependencies which have a constraint set in the global "pubspec.yaml" @@ -186,11 +186,12 @@ ${dependabotGroups.join('\n')} // Check if workflow generation caused `git diff` to change. if (setExitIfChanged) { - final gitDiff = await Process.start( - 'git', - ['diff', '--relative', '--', '.github/workflows'], - workingDirectory: rootDir.path, - ); + final gitDiff = await Process.start('git', [ + 'diff', + '--relative', + '--', + '.github/workflows', + ], workingDirectory: rootDir.path); final gitDiffOutput = StringBuffer(); gitDiff @@ -254,12 +255,14 @@ ${dependabotGroups.join('\n')} final analyzeAndTestWorkflow = isDartPackage ? 'dart_vm.yaml' : 'flutter_vm.yaml'; final needsNativeTest = isDartPackage && package.unitTestDirectory != null; - final needsWebTest = - package.pubspecInfo.pubspec.devDependencies.containsKey('build_test'); + final needsWebTest = package.pubspecInfo.pubspec.devDependencies + .containsKey('build_test'); // TODO(dnys1): Enable E2E runs for Dart packages - final needsE2ETest = package.flavor == PackageFlavor.flutter && + final needsE2ETest = + package.flavor == PackageFlavor.flutter && package.integrationTestDirectory != null; - final hasGoldens = package.flavor == PackageFlavor.flutter && + final hasGoldens = + package.flavor == PackageFlavor.flutter && package.goldensTestDirectory != null; final workflows = [ analyzeAndTestWorkflow, @@ -281,10 +284,7 @@ ${dependabotGroups.join('\n')} '$repoRelativePath/test/**/*', ]; for (final dependent in dependentPackages) { - final repoRelativePath = p.relative( - dependent.path, - from: rootDir.path, - ); + final repoRelativePath = p.relative(dependent.path, from: rootDir.path); if (dependent.isLintsPackage) { workflowPaths.addAll([ '$repoRelativePath/pubspec.yaml', @@ -317,8 +317,7 @@ ${dependabotGroups.join('\n')} workflowPaths.sort(); - final workflowContents = StringBuffer( - ''' + final workflowContents = StringBuffer(''' # Generated with aft. To update, run: `aft generate workflows` name: ${package.name} on: @@ -353,19 +352,15 @@ jobs: with: package-name: ${package.name} working-directory: $repoRelativePath -''', - ); +'''); if (!isDartPackage) { - workflowContents.write( - ''' + workflowContents.write(''' has-goldens: $hasGoldens -''', - ); +'''); } if (needsNativeTest) { - workflowContents.write( - ''' + workflowContents.write(''' native_test: needs: test uses: ./.github/workflows/$nativeWorkflow @@ -373,12 +368,10 @@ jobs: with: package-name: ${package.name} working-directory: $repoRelativePath -''', - ); +'''); if (needsWebTest) { - workflowContents.write( - ''' + workflowContents.write(''' ddc_test: needs: test uses: ./.github/workflows/$ddcWorkflow @@ -393,8 +386,7 @@ jobs: with: package-name: ${package.name} working-directory: $repoRelativePath -''', - ); +'''); } } @@ -404,13 +396,13 @@ jobs: if (needsNativeTest) 'native_test', if (needsWebTest) ...['ddc_test', 'dart2js_test'], ]; - final needsAwsConfig = File( - p.join(package.path, 'tool', 'pull_test_backend.sh'), - ).existsSync(); + final needsAwsConfig = + File( + p.join(package.path, 'tool', 'pull_test_backend.sh'), + ).existsSync(); for (final MapEntry(key: platform, value: e2eWorkflow) in e2eWorkflows.entries) { - workflowContents.write( - ''' + workflowContents.write(''' e2e_${platform}_test: needs: [${dependsOn.join(', ')}] uses: ./.github/workflows/$e2eWorkflow @@ -419,8 +411,7 @@ jobs: package-name: ${package.name} working-directory: $repoRelativePath needs-aws-config: $needsAwsConfig -''', - ); +'''); } } @@ -495,9 +486,7 @@ jobs: - "org.mockito:*" '''); - final androidTestDir = Directory( - p.join(androidDir.path, 'src', 'test'), - ); + final androidTestDir = Directory(p.join(androidDir.path, 'src', 'test')); final exampleAndroidDir = Directory( p.join(package.path, 'example', 'android'), ); diff --git a/packages/aft/lib/src/commands/link_command.dart b/packages/aft/lib/src/commands/link_command.dart index 06f0de3dff..30ac7ac0c2 100644 --- a/packages/aft/lib/src/commands/link_command.dart +++ b/packages/aft/lib/src/commands/link_command.dart @@ -40,17 +40,20 @@ Map _collectDependencies( return; } seen.add(package.name); - final localDeps = [ - ...package.pubspecInfo.pubspec.dependencies.keys, - if (package == rootPackage) - ...package.pubspecInfo.pubspec.devDependencies.keys, - ].map((dep) => allPackages[dep]).whereType(); + final localDeps = + [ + ...package.pubspecInfo.pubspec.dependencies.keys, + if (package == rootPackage) + ...package.pubspecInfo.pubspec.devDependencies.keys, + ].map((dep) => allPackages[dep]).whereType(); for (final dependency in localDeps) { if (dependency.name == rootPackage.name) { continue; } - dependencyPaths[dependency.name] = - path.relative(dependency.path, from: rootPackage.path); + dependencyPaths[dependency.name] = path.relative( + dependency.path, + from: rootPackage.path, + ); collectSubdependencies(dependency); } } @@ -108,23 +111,20 @@ Future _createPubspecOverride( }); } if (v is PathDependency) { - return MapEntry(k, { - 'path': v.path, - }); + return MapEntry(k, {'path': v.path}); } throw StateError('Unknown dependency type: $v'); }), ...dependencyPaths.map((name, path) => MapEntry(name, {'path': path})), }); - final yaml = YamlEditor( - ''' + final yaml = YamlEditor(''' # Generated with `aft`. Do not modify by hand or check into source control. dependency_overrides: -''', - )..update(['dependency_overrides'], mergedOverrides); +''')..update(['dependency_overrides'], mergedOverrides); - await File(path.join(package.path, 'pubspec_overrides.yaml')) - .writeAsString(yaml.toString()); + await File( + path.join(package.path, 'pubspec_overrides.yaml'), + ).writeAsString(yaml.toString()); } extension LinkPackages on AmplifyCommand { diff --git a/packages/aft/lib/src/commands/publish_command.dart b/packages/aft/lib/src/commands/publish_command.dart index 51c2cb7ca8..45f365683d 100644 --- a/packages/aft/lib/src/commands/publish_command.dart +++ b/packages/aft/lib/src/commands/publish_command.dart @@ -22,11 +22,10 @@ mixin PublishHelpers on AmplifyCommand { Future> unpublishedPackages( List publishablePackages, ) async { - final unpublishedPackages = (await Future.wait([ - for (final package in publishablePackages) checkPublishable(package), - ])) - .whereType() - .toList(); + final unpublishedPackages = + (await Future.wait([ + for (final package in publishablePackages) checkPublishable(package), + ])).whereType().toList(); final constraintsChecker = PublishConstraintsChecker( dryRun ? ConstraintsAction.update : ConstraintsAction.check, @@ -80,14 +79,11 @@ mixin PublishHelpers on AmplifyCommand { try { final versionInfo = await resolveVersionInfo(package.name); - final publishedVersion = maxBy( - [ - if (versionInfo?.latestPrerelease != null) - versionInfo!.latestPrerelease!, - if (versionInfo?.latestVersion != null) versionInfo!.latestVersion!, - ], - (v) => v, - ); + final publishedVersion = maxBy([ + if (versionInfo?.latestPrerelease != null) + versionInfo!.latestPrerelease!, + if (versionInfo?.latestVersion != null) versionInfo!.latestVersion!, + ], (v) => v); if (publishedVersion == null) { logger.info('No published info for package ${package.name}'); return package; @@ -162,11 +158,7 @@ mixin PublishHelpers on AmplifyCommand { logger.info('Publishing ${package.name}${dryRun ? ' (dry run)' : ''}...'); final publishCmd = await Process.start( package.flavor.entrypoint, - [ - 'pub', - 'publish', - if (dryRun) '--dry-run', - ], + ['pub', 'publish', if (dryRun) '--dry-run'], workingDirectory: package.path, runInShell: true, ); @@ -212,7 +204,8 @@ class PublishCommand extends AmplifyCommand with GlobOptions, PublishHelpers { ..addFlag( 'force', abbr: 'f', - help: 'Ignores errors in pre-publishing commands and publishes ' + help: + 'Ignores errors in pre-publishing commands and publishes ' 'without prompt', negatable: false, ) @@ -244,8 +237,9 @@ class PublishCommand extends AmplifyCommand with GlobOptions, PublishHelpers { final publishablePackages = repo.publishablePackages(commandPackages); // Gather packages which need to be published. - final packagesNeedingPublish = - await unpublishedPackages(publishablePackages); + final packagesNeedingPublish = await unpublishedPackages( + publishablePackages, + ); // Publishable packages which are being held back. final unpublishablePackages = publishablePackages.where( @@ -309,12 +303,7 @@ Future runBuildRunner( return; } // Run `pub get` to ensure `build_runner` is available. - await runPub( - package.flavor, - ['get'], - package, - verbose: verbose, - ); + await runPub(package.flavor, ['get'], package, verbose: verbose); logger.debug('Running build_runner for ${package.name}...'); final buildRunnerCmd = await Process.start( package.flavor.entrypoint, diff --git a/packages/aft/lib/src/commands/review_command.dart b/packages/aft/lib/src/commands/review_command.dart index 4f818e9567..636b0b5f24 100644 --- a/packages/aft/lib/src/commands/review_command.dart +++ b/packages/aft/lib/src/commands/review_command.dart @@ -8,13 +8,13 @@ import 'package:aft/aft.dart'; class GitHubData { GitHubData.fromJson(Map json) - : title = json['title'] as String, - body = json['body'] as String, - number = json['number'] as int, - changedFiles = json['changedFiles'] as int, - additions = json['additions'] as int, - deletions = json['deletions'] as int, - url = json['url'] as String; + : title = json['title'] as String, + body = json['body'] as String, + number = json['number'] as int, + changedFiles = json['changedFiles'] as int, + additions = json['additions'] as int, + deletions = json['deletions'] as int, + url = json['url'] as String; String title; String body; @@ -89,10 +89,7 @@ class ReviewCommand extends AmplifyCommand { /// Verifies that the PR is ready using gh CLI. Future _verifyPR(String ref) async { - final branchName = await Process.run( - 'gh', - ['pr', 'ready', ref], - ); + final branchName = await Process.run('gh', ['pr', 'ready', ref]); if (branchName.exitCode != 0) { final error = branchName.stderr.toString(); if (error.contains('Could not resolve to a PullRequest')) { @@ -106,16 +103,13 @@ class ReviewCommand extends AmplifyCommand { /// Fetches PR data from GitHub using gh CLI. Future _getGitHubData(String ref) async { - final process = await Process.run( - 'gh', - [ - 'pr', - 'view', - ref, - '--json', - 'title,body,number,changedFiles,additions,deletions,url', - ], - ); + final process = await Process.run('gh', [ + 'pr', + 'view', + ref, + '--json', + 'title,body,number,changedFiles,additions,deletions,url', + ]); if (process.exitCode != 0) { logger.error('Could not fetch PR data from GitHub'); exit(1); diff --git a/packages/aft/lib/src/commands/run_command.dart b/packages/aft/lib/src/commands/run_command.dart index 01005ed54d..726b4c6b4e 100644 --- a/packages/aft/lib/src/commands/run_command.dart +++ b/packages/aft/lib/src/commands/run_command.dart @@ -60,45 +60,42 @@ Available scripts: script.from, commandPackageSelector, ]).allPaths(aftConfig); - logger.verbose( - ''' + logger.verbose(''' Executing script: $scriptName with arguments: $arguments for package paths: ${commandPaths.map((path) => '- $path').join('\n')} -''', - ); +'''); try { for (final commandPath in commandPaths) { final package = aftConfig.allPackages.values.firstWhereOrNull( (package) => p.equals(package.path, commandPath), ); logger.verbose('Running for package: ${package?.name}'); - final renderedScript = templater.render({ - 'package': package?.toJson(), - }).trim(); - final fullScript = ''' + final renderedScript = + templater.render({'package': package?.toJson()}).trim(); + final fullScript = + ''' #/bin/bash set -euo pipefail $renderedScript -''' - .trim(); - logger.verbose( - ''' +'''.trim(); + logger.verbose(''' Full script: $fullScript -''', - ); - final tempFile = File.fromUri(tempDir.uri.resolve('script.sh')) - ..createSync() - ..writeAsStringSync(fullScript); +'''); + final tempFile = + File.fromUri(tempDir.uri.resolve('script.sh')) + ..createSync() + ..writeAsStringSync(fullScript); logger.info('Running `$scriptName` script in: $commandPath'); - final result = await execCommand( - ['bash', tempFile.path, ...arguments], - workingDirectory: commandPath, - ); + final result = await execCommand([ + 'bash', + tempFile.path, + ...arguments, + ], workingDirectory: commandPath); if (result.exitCode != 0) { exitCode = result.exitCode; if (failFast) { diff --git a/packages/aft/lib/src/commands/serve_command.dart b/packages/aft/lib/src/commands/serve_command.dart index 5dfa09c2ac..8f9c05d928 100644 --- a/packages/aft/lib/src/commands/serve_command.dart +++ b/packages/aft/lib/src/commands/serve_command.dart @@ -31,7 +31,8 @@ class ServeCommand extends AmplifyCommand with GlobOptions, PublishHelpers { bool get dryRun => false; @override - String get description => 'Serves all packages in the Amplify Flutter repo ' + String get description => + 'Serves all packages in the Amplify Flutter repo ' 'on a local pub server.'; @override @@ -62,17 +63,19 @@ class ServeCommand extends AmplifyCommand with GlobOptions, PublishHelpers { final publishablePackages = repo.publishablePackages(commandPackages); // Publish packages to local pub server. - final packagesNeedingPublish = - await unpublishedPackages(publishablePackages); - final launcherPackages = packagesNeedingPublish - .map( - (pkg) => LocalPackage( - name: pkg.name, - path: pkg.path, - pubspec: pkg.pubspecInfo.pubspec, - ), - ) - .toList(); + final packagesNeedingPublish = await unpublishedPackages( + publishablePackages, + ); + final launcherPackages = + packagesNeedingPublish + .map( + (pkg) => LocalPackage( + name: pkg.name, + path: pkg.path, + pubspec: pkg.pubspecInfo.pubspec, + ), + ) + .toList(); final launcher = AmplifyPubLauncher( pubServerUri, launcherPackages, diff --git a/packages/aft/lib/src/commands/version_bump_command.dart b/packages/aft/lib/src/commands/version_bump_command.dart index 2d90f07278..8f77b381f1 100644 --- a/packages/aft/lib/src/commands/version_bump_command.dart +++ b/packages/aft/lib/src/commands/version_bump_command.dart @@ -40,7 +40,8 @@ class VersionBumpCommand extends AmplifyCommand ) ..addFlag( 'skip-build-version', - help: 'Skips running build version in packages that depend on ' + help: + 'Skips running build version in packages that depend on ' 'build_version. Intended for use in tests.', negatable: false, ); @@ -82,9 +83,7 @@ class VersionBumpCommand extends AmplifyCommand changesForPackage: _changesForPackage, forcedBumpType: forcedBumpType, ); - return repo.writeChanges( - packages: repo.publishablePackages(), - ); + return repo.writeChanges(packages: repo.publishablePackages()); } @override @@ -107,11 +106,7 @@ class VersionBumpCommand extends AmplifyCommand if (!needsBuildRunner) { continue; } - await runBuildRunner( - package, - logger: logger, - verbose: verbose, - ); + await runBuildRunner(package, logger: logger, verbose: verbose); } } @@ -137,8 +132,9 @@ class VersionBumpCommand extends AmplifyCommand ..add(component.name); } } - final changelog = - LineSplitter.split(render(mergedChangelog)).skip(2).join('\n'); + final changelog = LineSplitter.split( + render(mergedChangelog), + ).skip(2).join('\n'); final commitMsg = ''' chore(version): Bump version diff --git a/packages/aft/lib/src/config/config.dart b/packages/aft/lib/src/config/config.dart index a18adc0421..2cfb6f78ff 100644 --- a/packages/aft/lib/src/config/config.dart +++ b/packages/aft/lib/src/config/config.dart @@ -88,8 +88,9 @@ abstract class AftConfig String componentForPackage(String packageName) { return components.values .firstWhereOrNull( - (component) => component.packages - .any((package) => package.name == packageName), + (component) => component.packages.any( + (package) => package.name == packageName, + ), ) ?.name ?? packageName; @@ -295,13 +296,9 @@ class PackageInfo /// Whether [package] is a direct or transitive dependency of `this`. bool dependsOn(PackageInfo package, Repo repo) { var found = false; - dfs( - repo.getPackageGraph(includeDevDependencies: true), - root: this, - (pkg) { - if (pkg == package) found = true; - }, - ); + dfs(repo.getPackageGraph(includeDevDependencies: true), root: this, (pkg) { + if (pkg == package) found = true; + }); return found; } @@ -450,15 +447,11 @@ extension DirectoryX on Directory { /// /// This parses the version from calling `dart --version`. final Version activeDartSdkVersion = () { - final ProcessResult( - :exitCode, - :stdout, - :stderr, - ) = Process.runSync('dart', ['--version']); + final ProcessResult(:exitCode, :stdout, :stderr) = Process.runSync('dart', [ + '--version', + ]); if (exitCode != 0) { - throw Exception( - 'Error running `dart --version` ($exitCode): $stderr', - ); + throw Exception('Error running `dart --version` ($exitCode): $stderr'); } // Example output: // Dart SDK version: 3.1.0 (stable) (Tue Aug 15 21:33:36 2023 +0000) on "macos_arm64" diff --git a/packages/aft/lib/src/config/config.g.dart b/packages/aft/lib/src/config/config.g.dart index 0a920c6891..394df551d5 100644 --- a/packages/aft/lib/src/config/config.g.dart +++ b/packages/aft/lib/src/config/config.g.dart @@ -15,55 +15,88 @@ class _$AftConfigSerializer implements StructuredSerializer { final String wireName = 'AftConfig'; @override - Iterable serialize(Serializers serializers, AftConfig object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + AftConfig object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'rootDirectory', - serializers.serialize(object.rootDirectory, - specifiedType: const FullType(Uri)), + serializers.serialize( + object.rootDirectory, + specifiedType: const FullType(Uri), + ), 'workingDirectory', - serializers.serialize(object.workingDirectory, - specifiedType: const FullType(Uri)), + serializers.serialize( + object.workingDirectory, + specifiedType: const FullType(Uri), + ), 'allPackages', - serializers.serialize(object.allPackages, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(PackageInfo)])), + serializers.serialize( + object.allPackages, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(PackageInfo), + ]), + ), 'dependencies', - serializers.serialize(object.dependencies, - specifiedType: const FullType(BuiltMap, const [ - const FullType(String), - const FullType(VersionConstraint) - ])), + serializers.serialize( + object.dependencies, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(VersionConstraint), + ]), + ), 'environment', - serializers.serialize(object.environment, - specifiedType: const FullType(Environment)), + serializers.serialize( + object.environment, + specifiedType: const FullType(Environment), + ), 'ignore', - serializers.serialize(object.ignore, - specifiedType: - const FullType(BuiltList, const [const FullType(String)])), + serializers.serialize( + object.ignore, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + ), 'components', - serializers.serialize(object.components, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(AftComponent)])), + serializers.serialize( + object.components, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AftComponent), + ]), + ), 'scripts', - serializers.serialize(object.scripts, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(AftScript)])), + serializers.serialize( + object.scripts, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AftScript), + ]), + ), ]; Object? value; value = object.platforms; if (value != null) { result ..add('platforms') - ..add(serializers.serialize(value, - specifiedType: const FullType(PlatformEnvironment))); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(PlatformEnvironment), + ), + ); } return result; } @override - AftConfig deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + AftConfig deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new AftConfigBuilder(); final iterator = serialized.iterator; @@ -73,53 +106,93 @@ class _$AftConfigSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'rootDirectory': - result.rootDirectory = serializers.deserialize(value, - specifiedType: const FullType(Uri))! as Uri; + result.rootDirectory = + serializers.deserialize( + value, + specifiedType: const FullType(Uri), + )! + as Uri; break; case 'workingDirectory': - result.workingDirectory = serializers.deserialize(value, - specifiedType: const FullType(Uri))! as Uri; + result.workingDirectory = + serializers.deserialize( + value, + specifiedType: const FullType(Uri), + )! + as Uri; break; case 'allPackages': - result.allPackages.replace(serializers.deserialize(value, + result.allPackages.replace( + serializers.deserialize( + value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), - const FullType(PackageInfo) - ]))!); + const FullType(PackageInfo), + ]), + )!, + ); break; case 'dependencies': - result.dependencies.replace(serializers.deserialize(value, + result.dependencies.replace( + serializers.deserialize( + value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), - const FullType(VersionConstraint) - ]))!); + const FullType(VersionConstraint), + ]), + )!, + ); break; case 'environment': - result.environment.replace(serializers.deserialize(value, - specifiedType: const FullType(Environment))! as Environment); + result.environment.replace( + serializers.deserialize( + value, + specifiedType: const FullType(Environment), + )! + as Environment, + ); break; case 'platforms': - result.platforms.replace(serializers.deserialize(value, - specifiedType: const FullType(PlatformEnvironment))! - as PlatformEnvironment); + result.platforms.replace( + serializers.deserialize( + value, + specifiedType: const FullType(PlatformEnvironment), + )! + as PlatformEnvironment, + ); break; case 'ignore': - result.ignore.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltList, const [const FullType(String)]))! - as BuiltList); + result.ignore.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + )! + as BuiltList, + ); break; case 'components': - result.components.replace(serializers.deserialize(value, + result.components.replace( + serializers.deserialize( + value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), - const FullType(AftComponent) - ]))!); + const FullType(AftComponent), + ]), + )!, + ); break; case 'scripts': - result.scripts.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(AftScript)]))!); + result.scripts.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AftScript), + ]), + )!, + ); break; } } @@ -151,30 +224,48 @@ class _$AftConfig extends AftConfig { factory _$AftConfig([void Function(AftConfigBuilder)? updates]) => (new AftConfigBuilder()..update(updates))._build(); - _$AftConfig._( - {required this.rootDirectory, - required this.workingDirectory, - required this.allPackages, - required this.dependencies, - required this.environment, - this.platforms, - required this.ignore, - required this.components, - required this.scripts}) - : super._() { + _$AftConfig._({ + required this.rootDirectory, + required this.workingDirectory, + required this.allPackages, + required this.dependencies, + required this.environment, + this.platforms, + required this.ignore, + required this.components, + required this.scripts, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - rootDirectory, r'AftConfig', 'rootDirectory'); + rootDirectory, + r'AftConfig', + 'rootDirectory', + ); BuiltValueNullFieldError.checkNotNull( - workingDirectory, r'AftConfig', 'workingDirectory'); + workingDirectory, + r'AftConfig', + 'workingDirectory', + ); BuiltValueNullFieldError.checkNotNull( - allPackages, r'AftConfig', 'allPackages'); + allPackages, + r'AftConfig', + 'allPackages', + ); BuiltValueNullFieldError.checkNotNull( - dependencies, r'AftConfig', 'dependencies'); + dependencies, + r'AftConfig', + 'dependencies', + ); BuiltValueNullFieldError.checkNotNull( - environment, r'AftConfig', 'environment'); + environment, + r'AftConfig', + 'environment', + ); BuiltValueNullFieldError.checkNotNull(ignore, r'AftConfig', 'ignore'); BuiltValueNullFieldError.checkNotNull( - components, r'AftConfig', 'components'); + components, + r'AftConfig', + 'components', + ); BuiltValueNullFieldError.checkNotNull(scripts, r'AftConfig', 'scripts'); } @@ -307,19 +398,27 @@ class AftConfigBuilder implements Builder { _$AftConfig _build() { _$AftConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AftConfig._( - rootDirectory: BuiltValueNullFieldError.checkNotNull( - rootDirectory, r'AftConfig', 'rootDirectory'), - workingDirectory: BuiltValueNullFieldError.checkNotNull( - workingDirectory, r'AftConfig', 'workingDirectory'), - allPackages: allPackages.build(), - dependencies: dependencies.build(), - environment: environment.build(), - platforms: _platforms?.build(), - ignore: ignore.build(), - components: components.build(), - scripts: scripts.build()); + rootDirectory: BuiltValueNullFieldError.checkNotNull( + rootDirectory, + r'AftConfig', + 'rootDirectory', + ), + workingDirectory: BuiltValueNullFieldError.checkNotNull( + workingDirectory, + r'AftConfig', + 'workingDirectory', + ), + allPackages: allPackages.build(), + dependencies: dependencies.build(), + environment: environment.build(), + platforms: _platforms?.build(), + ignore: ignore.build(), + components: components.build(), + scripts: scripts.build(), + ); } catch (_) { late String _$failedField; try { @@ -339,7 +438,10 @@ class AftConfigBuilder implements Builder { scripts.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AftConfig', _$failedField, e.toString()); + r'AftConfig', + _$failedField, + e.toString(), + ); } rethrow; } @@ -355,56 +457,69 @@ class AftConfigBuilder implements Builder { // ************************************************************************** AftComponent _$AftComponentFromJson(Map json) => $checkedCreate( - 'AftComponent', + 'AftComponent', + json, + ($checkedConvert) { + $checkKeys( json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const [ - 'name', - 'summary', - 'packages', - 'packageGraph', - 'propagate' - ], - ); - final val = AftComponent( - name: $checkedConvert('name', (v) => v as String), - summary: $checkedConvert( - 'summary', - (v) => v == null - ? null - : PackageInfo.fromJson(Map.from(v as Map))), - packages: $checkedConvert( - 'packages', - (v) => (v as List) - .map((e) => - PackageInfo.fromJson(Map.from(e as Map))) - .toList()), - packageGraph: $checkedConvert( - 'packageGraph', - (v) => (v as Map).map( - (k, e) => MapEntry( - k as String, - (e as List) - .map((e) => PackageInfo.fromJson( - Map.from(e as Map))) - .toList()), - )), - propagate: $checkedConvert( - 'propagate', (v) => $enumDecode(_$VersionPropagationEnumMap, v)), - ); - return val; - }, + allowedKeys: const [ + 'name', + 'summary', + 'packages', + 'packageGraph', + 'propagate', + ], + ); + final val = AftComponent( + name: $checkedConvert('name', (v) => v as String), + summary: $checkedConvert( + 'summary', + (v) => + v == null + ? null + : PackageInfo.fromJson(Map.from(v as Map)), + ), + packages: $checkedConvert( + 'packages', + (v) => + (v as List) + .map( + (e) => + PackageInfo.fromJson(Map.from(e as Map)), + ) + .toList(), + ), + packageGraph: $checkedConvert( + 'packageGraph', + (v) => (v as Map).map( + (k, e) => MapEntry( + k as String, + (e as List) + .map( + (e) => + PackageInfo.fromJson(Map.from(e as Map)), + ) + .toList(), + ), + ), + ), + propagate: $checkedConvert( + 'propagate', + (v) => $enumDecode(_$VersionPropagationEnumMap, v), + ), ); + return val; + }, +); Map _$AftComponentToJson(AftComponent instance) => { 'name': instance.name, 'summary': instance.summary?.toJson(), 'packages': instance.packages.map((e) => e.toJson()).toList(), - 'packageGraph': instance.packageGraph - .map((k, e) => MapEntry(k, e.map((e) => e.toJson()).toList())), + 'packageGraph': instance.packageGraph.map( + (k, e) => MapEntry(k, e.map((e) => e.toJson()).toList()), + ), 'propagate': _$VersionPropagationEnumMap[instance.propagate]!, }; @@ -415,42 +530,47 @@ const _$VersionPropagationEnumMap = { VersionPropagation.none: 'none', }; -PackageInfo _$PackageInfoFromJson(Map json) => $checkedCreate( - 'PackageInfo', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const [ - 'name', - 'path', - 'pubspecInfo', - 'flavor', - 'example', - 'docs' - ], - ); - final val = PackageInfo( - name: $checkedConvert('name', (v) => v as String), - path: $checkedConvert('path', (v) => v as String), - pubspecInfo: $checkedConvert('pubspecInfo', - (v) => PubspecInfo.fromJson(Map.from(v as Map))), - flavor: $checkedConvert( - 'flavor', (v) => $enumDecode(_$PackageFlavorEnumMap, v)), - example: $checkedConvert( - 'example', - (v) => v == null +PackageInfo _$PackageInfoFromJson(Map json) => + $checkedCreate('PackageInfo', json, ($checkedConvert) { + $checkKeys( + json, + allowedKeys: const [ + 'name', + 'path', + 'pubspecInfo', + 'flavor', + 'example', + 'docs', + ], + ); + final val = PackageInfo( + name: $checkedConvert('name', (v) => v as String), + path: $checkedConvert('path', (v) => v as String), + pubspecInfo: $checkedConvert( + 'pubspecInfo', + (v) => PubspecInfo.fromJson(Map.from(v as Map)), + ), + flavor: $checkedConvert( + 'flavor', + (v) => $enumDecode(_$PackageFlavorEnumMap, v), + ), + example: $checkedConvert( + 'example', + (v) => + v == null ? null - : PackageInfo.fromJson(Map.from(v as Map))), - docs: $checkedConvert( - 'docs', - (v) => v == null + : PackageInfo.fromJson(Map.from(v as Map)), + ), + docs: $checkedConvert( + 'docs', + (v) => + v == null ? null - : PackageInfo.fromJson(Map.from(v as Map))), - ); - return val; - }, - ); + : PackageInfo.fromJson(Map.from(v as Map)), + ), + ); + return val; + }); Map _$PackageInfoToJson(PackageInfo instance) => { @@ -467,29 +587,26 @@ const _$PackageFlavorEnumMap = { PackageFlavor.dart: 'dart', }; -PubspecInfo _$PubspecInfoFromJson(Map json) => $checkedCreate( - 'PubspecInfo', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['pubspec', 'uri', 'pubspecYaml', 'pubspecMap'], - ); - final val = PubspecInfo( - pubspec: $checkedConvert( - 'pubspec', - (v) => - const PubspecConverter().fromJson(v as Map)), - pubspecYaml: $checkedConvert('pubspecYaml', (v) => v as String), - pubspecMap: $checkedConvert( - 'pubspecMap', - (v) => - const YamlMapConverter().fromJson(v as Map)), - uri: $checkedConvert('uri', (v) => Uri.parse(v as String)), - ); - return val; - }, - ); +PubspecInfo _$PubspecInfoFromJson(Map json) => + $checkedCreate('PubspecInfo', json, ($checkedConvert) { + $checkKeys( + json, + allowedKeys: const ['pubspec', 'uri', 'pubspecYaml', 'pubspecMap'], + ); + final val = PubspecInfo( + pubspec: $checkedConvert( + 'pubspec', + (v) => const PubspecConverter().fromJson(v as Map), + ), + pubspecYaml: $checkedConvert('pubspecYaml', (v) => v as String), + pubspecMap: $checkedConvert( + 'pubspecMap', + (v) => const YamlMapConverter().fromJson(v as Map), + ), + uri: $checkedConvert('uri', (v) => Uri.parse(v as String)), + ); + return val; + }); Map _$PubspecInfoToJson(PubspecInfo instance) => { diff --git a/packages/aft/lib/src/config/config_loader.dart b/packages/aft/lib/src/config/config_loader.dart index b939762582..d9c1fda56a 100644 --- a/packages/aft/lib/src/config/config_loader.dart +++ b/packages/aft/lib/src/config/config_loader.dart @@ -14,9 +14,8 @@ import 'package:yaml/yaml.dart'; /// Loads the AFT configuration for the current working directory. class AftConfigLoader { - AftConfigLoader({ - Directory? workingDirectory, - }) : workingDirectory = workingDirectory ?? Directory.current; + AftConfigLoader({Directory? workingDirectory}) + : workingDirectory = workingDirectory ?? Directory.current; final Directory workingDirectory; @@ -60,33 +59,31 @@ class AftConfigLoader { required Queue<(YamlMap, Pubspec)> pubspecQueue, required Directory rootDirectory, }) { - final aftConfig = AftConfigBuilder() - ..rootDirectory = rootDirectory.uri - ..workingDirectory = workingDirectory.uri; + final aftConfig = + AftConfigBuilder() + ..rootDirectory = rootDirectory.uri + ..workingDirectory = workingDirectory.uri; final rawComponents = {}; - void mergePubspec( - YamlMap yaml, - Pubspec pubspec, { - bool isRoot = false, - }) { + void mergePubspec(YamlMap yaml, Pubspec pubspec, {bool isRoot = false}) { final rawPubspecConfig = RawPubspecConfig.fromJson(yaml.cast()); // Process top-level pubspec entries for root configs if (isRoot) { - final dependencies = rawPubspecConfig.dependencies.entries - .map( - (entry) => switch (entry) { - MapEntry( - key: final name, - value: final HostedDependency dependency - ) => - MapEntry(name, dependency.version), - _ => null, - }, - ) - .nonNulls; + final dependencies = + rawPubspecConfig.dependencies.entries + .map( + (entry) => switch (entry) { + MapEntry( + key: final name, + value: final HostedDependency dependency, + ) => + MapEntry(name, dependency.version), + _ => null, + }, + ) + .nonNulls; aftConfig ..dependencies.addEntries(dependencies) ..environment.replace(rawPubspecConfig.environment); @@ -129,39 +126,43 @@ class AftConfigLoader { final summaryPackage = switch (component.summary) { null => null, final summary => switch (repoPackages[summary]) { - final summaryPackage? => summaryPackage, - // Allow missing summary package for testing - _ when zDebugMode => null, - _ => throw StateError( - 'Summary package "$summary" does not exist for component: ' - '${component.name}', - ), - }, + final summaryPackage? => summaryPackage, + // Allow missing summary package for testing + _ when zDebugMode => null, + _ => + throw StateError( + 'Summary package "$summary" does not exist for component: ' + '${component.name}', + ), + }, }; - final packages = component.packages - .map( - (name) => switch (repoPackages[name]) { - final package? => package, - // Allow missing component package for testing - _ when zDebugMode => null, - _ => throw StateError( - 'Component package "$name" does not exist for component: ' - '${component.name}', - ), - }, - ) - .nonNulls - .toList(); - final packageGraph = UnmodifiableMapView({ - for (final package in packages) - package.name: package.pubspecInfo.pubspec.dependencies.keys + final packages = + component.packages .map( - (packageName) => packages.firstWhereOrNull( - (pkg) => pkg.name == packageName, - ), + (name) => switch (repoPackages[name]) { + final package? => package, + // Allow missing component package for testing + _ when zDebugMode => null, + _ => + throw StateError( + 'Component package "$name" does not exist for component: ' + '${component.name}', + ), + }, ) .nonNulls - .toList(), + .toList(); + final packageGraph = UnmodifiableMapView({ + for (final package in packages) + package.name: + package.pubspecInfo.pubspec.dependencies.keys + .map( + (packageName) => packages.firstWhereOrNull( + (pkg) => pkg.name == packageName, + ), + ) + .nonNulls + .toList(), }); return MapEntry( component.name, @@ -185,9 +186,10 @@ class AftConfigLoader { required Directory rootDirectory, required List ignore, }) { - final allDirs = rootDirectory - .listSync(recursive: true, followLinks: false) - .whereType(); + final allDirs = + rootDirectory + .listSync(recursive: true, followLinks: false) + .whereType(); final allPackages = []; for (final dir in allDirs) { final package = PackageInfo.fromDirectory(dir); diff --git a/packages/aft/lib/src/config/package_selector.dart b/packages/aft/lib/src/config/package_selector.dart index 8b4ea788b2..06d7ca45b0 100644 --- a/packages/aft/lib/src/config/package_selector.dart +++ b/packages/aft/lib/src/config/package_selector.dart @@ -12,9 +12,7 @@ import 'package:path/path.dart' as p; class _PathSet extends DelegatingSet { _PathSet(Iterable paths) - : super( - HashSet(equals: p.equals, hashCode: p.hash)..addAll(paths), - ); + : super(HashSet(equals: p.equals, hashCode: p.hash)..addAll(paths)); } /// {@template aft.models.package_selector} @@ -72,9 +70,7 @@ abstract class PackageSelector with AWSSerializable { return PackageSelector.packageOrComponent(json); } if (json is List) { - return PackageSelector.or( - json.map(PackageSelector.fromJson).toList(), - ); + return PackageSelector.or(json.map(PackageSelector.fromJson).toList()); } if (json is Map) { final include = json['include']; @@ -94,17 +90,13 @@ abstract class PackageSelector with AWSSerializable { if (include != null || exclude != null || or != null) { throw ArgumentError('and cannot be used with include/exclude/or'); } - return PackageSelector.and( - and.map(PackageSelector.fromJson).toList(), - ); + return PackageSelector.and(and.map(PackageSelector.fromJson).toList()); } if (or != null) { if (include != null || exclude != null || and != null) { throw ArgumentError('and cannot be used with include/exclude/and'); } - return PackageSelector.or( - or.map(PackageSelector.fromJson).toList(), - ); + return PackageSelector.or(or.map(PackageSelector.fromJson).toList()); } } throw ArgumentError( @@ -156,12 +148,10 @@ abstract class PackageSelector with AWSSerializable { } class _PackageSelector extends PackageSelector { - _PackageSelector({ - PackageSelector? include, - PackageSelector? exclude, - }) : _include = include ?? const PackageSelector.all(), - _exclude = exclude, - super._(); + _PackageSelector({PackageSelector? include, PackageSelector? exclude}) + : _include = include ?? const PackageSelector.all(), + _exclude = exclude, + super._(); final PackageSelector _include; final PackageSelector? _exclude; @@ -175,9 +165,9 @@ class _PackageSelector extends PackageSelector { @override Object? toJson() => { - 'include': _include.toJson(), - if (_exclude != null) 'exclude': _exclude.toJson(), - }; + 'include': _include.toJson(), + if (_exclude != null) 'exclude': _exclude.toJson(), + }; } /// {@template aft.models.package_selector.package_or_component} @@ -383,8 +373,8 @@ class _OrPackageSelector extends PackageSelector { @override Object? toJson() => { - 'or': selectors.map((selector) => selector.toJson()).toList(), - }; + 'or': selectors.map((selector) => selector.toJson()).toList(), + }; } /// {@template aft.models.package_selector.and} @@ -397,17 +387,19 @@ class _AndPackageSelector extends PackageSelector { @override Iterable allPaths(AftConfig config) { - return selectors.map>((selector) { - return _PathSet(selector.allPaths(config)); - }).reduce((value, element) { - return value.intersection(element); - }); + return selectors + .map>((selector) { + return _PathSet(selector.allPaths(config)); + }) + .reduce((value, element) { + return value.intersection(element); + }); } @override Object? toJson() => { - 'and': selectors.map((selector) => selector.toJson()).toList(), - }; + 'and': selectors.map((selector) => selector.toJson()).toList(), + }; } class PackageSelectorConverter diff --git a/packages/aft/lib/src/config/raw_config.dart b/packages/aft/lib/src/config/raw_config.dart index f1e0628855..3fcf11c021 100644 --- a/packages/aft/lib/src/config/raw_config.dart +++ b/packages/aft/lib/src/config/raw_config.dart @@ -120,15 +120,11 @@ abstract class Environment required VersionConstraint sdk, VersionConstraint? flutter, }) { - return _$Environment._( - sdk: sdk, - flutter: flutter ?? VersionConstraint.any, - ); + return _$Environment._(sdk: sdk, flutter: flutter ?? VersionConstraint.any); } - factory Environment.build( - void Function(EnvironmentBuilder) updates, - ) = _$Environment; + factory Environment.build(void Function(EnvironmentBuilder) updates) = + _$Environment; factory Environment.fromJson(Map json) { return aftSerializers.deserializeWith(serializer, json)!; @@ -190,9 +186,8 @@ abstract class PlatformEnvironment abstract class AndroidEnvironment with AWSSerializable>, AWSDebuggable implements Built { - factory AndroidEnvironment({ - required String minSdkVersion, - }) = _$AndroidEnvironment._; + factory AndroidEnvironment({required String minSdkVersion}) = + _$AndroidEnvironment._; factory AndroidEnvironment.build( void Function(AndroidEnvironmentBuilder) updates, @@ -219,9 +214,7 @@ abstract class AndroidEnvironment abstract class IosEnvironment with AWSSerializable>, AWSDebuggable implements Built { - factory IosEnvironment({ - required String minOSVersion, - }) = _$IosEnvironment._; + factory IosEnvironment({required String minOSVersion}) = _$IosEnvironment._; factory IosEnvironment.build(void Function(IosEnvironmentBuilder) updates) = _$IosEnvironment; @@ -247,9 +240,8 @@ abstract class IosEnvironment abstract class MacOSEnvironment with AWSSerializable>, AWSDebuggable implements Built { - factory MacOSEnvironment({ - required String minOSVersion, - }) = _$MacOSEnvironment._; + factory MacOSEnvironment({required String minOSVersion}) = + _$MacOSEnvironment._; factory MacOSEnvironment.build( void Function(MacOSEnvironmentBuilder) updates, @@ -276,9 +268,7 @@ abstract class MacOSEnvironment abstract class GitHubPackageConfig with AWSSerializable>, AWSDebuggable implements Built { - factory GitHubPackageConfig({ - bool custom = false, - }) => + factory GitHubPackageConfig({bool custom = false}) => _$GitHubPackageConfig._(custom: custom); factory GitHubPackageConfig.build( @@ -558,9 +548,7 @@ extension on Dependency { final dependency = this; var dependencyJson = {}; if (dependency is HostedDependency) { - dependencyJson = { - 'version': dependency.version.toString(), - }; + dependencyJson = {'version': dependency.version.toString()}; final details = dependency.hosted; if (details != null && details.url != null) { dependencyJson['hosted'] = details.url!.toString(); @@ -579,9 +567,7 @@ extension on Dependency { }, }; } else if (dependency is PathDependency) { - dependencyJson = { - 'path': dependency.path, - }; + dependencyJson = {'path': dependency.path}; } return dependencyJson; } @@ -589,26 +575,26 @@ extension on Dependency { extension on Pubspec { Map toJson() => { - 'name': name, - if (version != null) 'version': version!.toString(), - if (publishTo != null) 'publishTo': publishTo, - if (environment != null) - 'environment': environment!.map((key, constraint) { - return MapEntry(key, constraint?.toString()); - }), - if (homepage != null) 'homepage': homepage, - if (repository != null) 'repository': repository!.toString(), - if (issueTracker != null) 'issueTracker': issueTracker!.toString(), - if (description != null) 'description': description, - 'dependencies': dependencies.map((name, dependency) { - return MapEntry(name, dependency.toJson()); - }), - 'dependencyOverrides': dependencyOverrides.map((name, dependency) { - return MapEntry(name, dependency.toJson()); - }), - 'devDependencies': devDependencies.map((name, dependency) { - return MapEntry(name, dependency.toJson()); - }), - if (flutter != null) 'flutter': flutter, - }; + 'name': name, + if (version != null) 'version': version!.toString(), + if (publishTo != null) 'publishTo': publishTo, + if (environment != null) + 'environment': environment!.map((key, constraint) { + return MapEntry(key, constraint?.toString()); + }), + if (homepage != null) 'homepage': homepage, + if (repository != null) 'repository': repository!.toString(), + if (issueTracker != null) 'issueTracker': issueTracker!.toString(), + if (description != null) 'description': description, + 'dependencies': dependencies.map((name, dependency) { + return MapEntry(name, dependency.toJson()); + }), + 'dependencyOverrides': dependencyOverrides.map((name, dependency) { + return MapEntry(name, dependency.toJson()); + }), + 'devDependencies': devDependencies.map((name, dependency) { + return MapEntry(name, dependency.toJson()); + }), + if (flutter != null) 'flutter': flutter, + }; } diff --git a/packages/aft/lib/src/config/raw_config.g.dart b/packages/aft/lib/src/config/raw_config.g.dart index 527307cda2..a8b658290d 100644 --- a/packages/aft/lib/src/config/raw_config.g.dart +++ b/packages/aft/lib/src/config/raw_config.g.dart @@ -25,23 +25,33 @@ class _$EnvironmentSerializer implements StructuredSerializer { final String wireName = 'Environment'; @override - Iterable serialize(Serializers serializers, Environment object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + Environment object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'sdk', - serializers.serialize(object.sdk, - specifiedType: const FullType(VersionConstraint)), + serializers.serialize( + object.sdk, + specifiedType: const FullType(VersionConstraint), + ), 'flutter', - serializers.serialize(object.flutter, - specifiedType: const FullType(VersionConstraint)), + serializers.serialize( + object.flutter, + specifiedType: const FullType(VersionConstraint), + ), ]; return result; } @override - Environment deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Environment deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new EnvironmentBuilder(); final iterator = serialized.iterator; @@ -51,14 +61,20 @@ class _$EnvironmentSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'sdk': - result.sdk = serializers.deserialize(value, - specifiedType: const FullType(VersionConstraint))! - as VersionConstraint; + result.sdk = + serializers.deserialize( + value, + specifiedType: const FullType(VersionConstraint), + )! + as VersionConstraint; break; case 'flutter': - result.flutter = serializers.deserialize(value, - specifiedType: const FullType(VersionConstraint))! - as VersionConstraint; + result.flutter = + serializers.deserialize( + value, + specifiedType: const FullType(VersionConstraint), + )! + as VersionConstraint; break; } } @@ -72,25 +88,33 @@ class _$PlatformEnvironmentSerializer @override final Iterable types = const [ PlatformEnvironment, - _$PlatformEnvironment + _$PlatformEnvironment, ]; @override final String wireName = 'PlatformEnvironment'; @override Iterable serialize( - Serializers serializers, PlatformEnvironment object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PlatformEnvironment object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'android', - serializers.serialize(object.android, - specifiedType: const FullType(AndroidEnvironment)), + serializers.serialize( + object.android, + specifiedType: const FullType(AndroidEnvironment), + ), 'ios', - serializers.serialize(object.ios, - specifiedType: const FullType(IosEnvironment)), + serializers.serialize( + object.ios, + specifiedType: const FullType(IosEnvironment), + ), 'macOS', - serializers.serialize(object.macOS, - specifiedType: const FullType(MacOSEnvironment)), + serializers.serialize( + object.macOS, + specifiedType: const FullType(MacOSEnvironment), + ), ]; return result; @@ -98,8 +122,10 @@ class _$PlatformEnvironmentSerializer @override PlatformEnvironment deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PlatformEnvironmentBuilder(); final iterator = serialized.iterator; @@ -109,19 +135,31 @@ class _$PlatformEnvironmentSerializer final Object? value = iterator.current; switch (key) { case 'android': - result.android.replace(serializers.deserialize(value, - specifiedType: const FullType(AndroidEnvironment))! - as AndroidEnvironment); + result.android.replace( + serializers.deserialize( + value, + specifiedType: const FullType(AndroidEnvironment), + )! + as AndroidEnvironment, + ); break; case 'ios': - result.ios.replace(serializers.deserialize(value, - specifiedType: const FullType(IosEnvironment))! - as IosEnvironment); + result.ios.replace( + serializers.deserialize( + value, + specifiedType: const FullType(IosEnvironment), + )! + as IosEnvironment, + ); break; case 'macOS': - result.macOS.replace(serializers.deserialize(value, - specifiedType: const FullType(MacOSEnvironment))! - as MacOSEnvironment); + result.macOS.replace( + serializers.deserialize( + value, + specifiedType: const FullType(MacOSEnvironment), + )! + as MacOSEnvironment, + ); break; } } @@ -139,12 +177,16 @@ class _$AndroidEnvironmentSerializer @override Iterable serialize( - Serializers serializers, AndroidEnvironment object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + AndroidEnvironment object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'minSdkVersion', - serializers.serialize(object.minSdkVersion, - specifiedType: const FullType(String)), + serializers.serialize( + object.minSdkVersion, + specifiedType: const FullType(String), + ), ]; return result; @@ -152,8 +194,10 @@ class _$AndroidEnvironmentSerializer @override AndroidEnvironment deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new AndroidEnvironmentBuilder(); final iterator = serialized.iterator; @@ -163,8 +207,12 @@ class _$AndroidEnvironmentSerializer final Object? value = iterator.current; switch (key) { case 'minSdkVersion': - result.minSdkVersion = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.minSdkVersion = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; } } @@ -181,12 +229,17 @@ class _$IosEnvironmentSerializer final String wireName = 'IosEnvironment'; @override - Iterable serialize(Serializers serializers, IosEnvironment object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + IosEnvironment object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'minOSVersion', - serializers.serialize(object.minOSVersion, - specifiedType: const FullType(String)), + serializers.serialize( + object.minOSVersion, + specifiedType: const FullType(String), + ), ]; return result; @@ -194,8 +247,10 @@ class _$IosEnvironmentSerializer @override IosEnvironment deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new IosEnvironmentBuilder(); final iterator = serialized.iterator; @@ -205,8 +260,12 @@ class _$IosEnvironmentSerializer final Object? value = iterator.current; switch (key) { case 'minOSVersion': - result.minOSVersion = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.minOSVersion = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; } } @@ -223,12 +282,17 @@ class _$MacOSEnvironmentSerializer final String wireName = 'MacOSEnvironment'; @override - Iterable serialize(Serializers serializers, MacOSEnvironment object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + MacOSEnvironment object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'minOSVersion', - serializers.serialize(object.minOSVersion, - specifiedType: const FullType(String)), + serializers.serialize( + object.minOSVersion, + specifiedType: const FullType(String), + ), ]; return result; @@ -236,8 +300,10 @@ class _$MacOSEnvironmentSerializer @override MacOSEnvironment deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new MacOSEnvironmentBuilder(); final iterator = serialized.iterator; @@ -247,8 +313,12 @@ class _$MacOSEnvironmentSerializer final Object? value = iterator.current; switch (key) { case 'minOSVersion': - result.minOSVersion = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.minOSVersion = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; } } @@ -262,15 +332,17 @@ class _$GitHubPackageConfigSerializer @override final Iterable types = const [ GitHubPackageConfig, - _$GitHubPackageConfig + _$GitHubPackageConfig, ]; @override final String wireName = 'GitHubPackageConfig'; @override Iterable serialize( - Serializers serializers, GitHubPackageConfig object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + GitHubPackageConfig object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'custom', serializers.serialize(object.custom, specifiedType: const FullType(bool)), @@ -281,8 +353,10 @@ class _$GitHubPackageConfigSerializer @override GitHubPackageConfig deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new GitHubPackageConfigBuilder(); final iterator = serialized.iterator; @@ -292,8 +366,12 @@ class _$GitHubPackageConfigSerializer final Object? value = iterator.current; switch (key) { case 'custom': - result.custom = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; + result.custom = + serializers.deserialize( + value, + specifiedType: const FullType(bool), + )! + as bool; break; } } @@ -378,12 +456,20 @@ class EnvironmentBuilder implements Builder { _$Environment _build() { Environment._finalize(this); - final _$result = _$v ?? + final _$result = + _$v ?? new _$Environment._( - sdk: BuiltValueNullFieldError.checkNotNull( - sdk, r'Environment', 'sdk'), - flutter: BuiltValueNullFieldError.checkNotNull( - flutter, r'Environment', 'flutter')); + sdk: BuiltValueNullFieldError.checkNotNull( + sdk, + r'Environment', + 'sdk', + ), + flutter: BuiltValueNullFieldError.checkNotNull( + flutter, + r'Environment', + 'flutter', + ), + ); replace(_$result); return _$result; } @@ -397,24 +483,32 @@ class _$PlatformEnvironment extends PlatformEnvironment { @override final MacOSEnvironment macOS; - factory _$PlatformEnvironment( - [void Function(PlatformEnvironmentBuilder)? updates]) => - (new PlatformEnvironmentBuilder()..update(updates))._build(); + factory _$PlatformEnvironment([ + void Function(PlatformEnvironmentBuilder)? updates, + ]) => (new PlatformEnvironmentBuilder()..update(updates))._build(); - _$PlatformEnvironment._( - {required this.android, required this.ios, required this.macOS}) - : super._() { + _$PlatformEnvironment._({ + required this.android, + required this.ios, + required this.macOS, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - android, r'PlatformEnvironment', 'android'); + android, + r'PlatformEnvironment', + 'android', + ); BuiltValueNullFieldError.checkNotNull(ios, r'PlatformEnvironment', 'ios'); BuiltValueNullFieldError.checkNotNull( - macOS, r'PlatformEnvironment', 'macOS'); + macOS, + r'PlatformEnvironment', + 'macOS', + ); } @override PlatformEnvironment rebuild( - void Function(PlatformEnvironmentBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PlatformEnvironmentBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PlatformEnvironmentBuilder toBuilder() => @@ -497,9 +591,13 @@ class PlatformEnvironmentBuilder _$PlatformEnvironment _build() { _$PlatformEnvironment _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PlatformEnvironment._( - android: android.build(), ios: ios.build(), macOS: macOS.build()); + android: android.build(), + ios: ios.build(), + macOS: macOS.build(), + ); } catch (_) { late String _$failedField; try { @@ -511,7 +609,10 @@ class PlatformEnvironmentBuilder macOS.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PlatformEnvironment', _$failedField, e.toString()); + r'PlatformEnvironment', + _$failedField, + e.toString(), + ); } rethrow; } @@ -524,19 +625,22 @@ class _$AndroidEnvironment extends AndroidEnvironment { @override final String minSdkVersion; - factory _$AndroidEnvironment( - [void Function(AndroidEnvironmentBuilder)? updates]) => - (new AndroidEnvironmentBuilder()..update(updates))._build(); + factory _$AndroidEnvironment([ + void Function(AndroidEnvironmentBuilder)? updates, + ]) => (new AndroidEnvironmentBuilder()..update(updates))._build(); _$AndroidEnvironment._({required this.minSdkVersion}) : super._() { BuiltValueNullFieldError.checkNotNull( - minSdkVersion, r'AndroidEnvironment', 'minSdkVersion'); + minSdkVersion, + r'AndroidEnvironment', + 'minSdkVersion', + ); } @override AndroidEnvironment rebuild( - void Function(AndroidEnvironmentBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AndroidEnvironmentBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AndroidEnvironmentBuilder toBuilder() => @@ -592,10 +696,15 @@ class AndroidEnvironmentBuilder AndroidEnvironment build() => _build(); _$AndroidEnvironment _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$AndroidEnvironment._( - minSdkVersion: BuiltValueNullFieldError.checkNotNull( - minSdkVersion, r'AndroidEnvironment', 'minSdkVersion')); + minSdkVersion: BuiltValueNullFieldError.checkNotNull( + minSdkVersion, + r'AndroidEnvironment', + 'minSdkVersion', + ), + ); replace(_$result); return _$result; } @@ -610,7 +719,10 @@ class _$IosEnvironment extends IosEnvironment { _$IosEnvironment._({required this.minOSVersion}) : super._() { BuiltValueNullFieldError.checkNotNull( - minOSVersion, r'IosEnvironment', 'minOSVersion'); + minOSVersion, + r'IosEnvironment', + 'minOSVersion', + ); } @override @@ -670,10 +782,15 @@ class IosEnvironmentBuilder IosEnvironment build() => _build(); _$IosEnvironment _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$IosEnvironment._( - minOSVersion: BuiltValueNullFieldError.checkNotNull( - minOSVersion, r'IosEnvironment', 'minOSVersion')); + minOSVersion: BuiltValueNullFieldError.checkNotNull( + minOSVersion, + r'IosEnvironment', + 'minOSVersion', + ), + ); replace(_$result); return _$result; } @@ -683,13 +800,16 @@ class _$MacOSEnvironment extends MacOSEnvironment { @override final String minOSVersion; - factory _$MacOSEnvironment( - [void Function(MacOSEnvironmentBuilder)? updates]) => - (new MacOSEnvironmentBuilder()..update(updates))._build(); + factory _$MacOSEnvironment([ + void Function(MacOSEnvironmentBuilder)? updates, + ]) => (new MacOSEnvironmentBuilder()..update(updates))._build(); _$MacOSEnvironment._({required this.minOSVersion}) : super._() { BuiltValueNullFieldError.checkNotNull( - minOSVersion, r'MacOSEnvironment', 'minOSVersion'); + minOSVersion, + r'MacOSEnvironment', + 'minOSVersion', + ); } @override @@ -749,10 +869,15 @@ class MacOSEnvironmentBuilder MacOSEnvironment build() => _build(); _$MacOSEnvironment _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MacOSEnvironment._( - minOSVersion: BuiltValueNullFieldError.checkNotNull( - minOSVersion, r'MacOSEnvironment', 'minOSVersion')); + minOSVersion: BuiltValueNullFieldError.checkNotNull( + minOSVersion, + r'MacOSEnvironment', + 'minOSVersion', + ), + ); replace(_$result); return _$result; } @@ -762,19 +887,22 @@ class _$GitHubPackageConfig extends GitHubPackageConfig { @override final bool custom; - factory _$GitHubPackageConfig( - [void Function(GitHubPackageConfigBuilder)? updates]) => - (new GitHubPackageConfigBuilder()..update(updates))._build(); + factory _$GitHubPackageConfig([ + void Function(GitHubPackageConfigBuilder)? updates, + ]) => (new GitHubPackageConfigBuilder()..update(updates))._build(); _$GitHubPackageConfig._({required this.custom}) : super._() { BuiltValueNullFieldError.checkNotNull( - custom, r'GitHubPackageConfig', 'custom'); + custom, + r'GitHubPackageConfig', + 'custom', + ); } @override GitHubPackageConfig rebuild( - void Function(GitHubPackageConfigBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GitHubPackageConfigBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GitHubPackageConfigBuilder toBuilder() => @@ -831,10 +959,15 @@ class GitHubPackageConfigBuilder GitHubPackageConfig build() => _build(); _$GitHubPackageConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GitHubPackageConfig._( - custom: BuiltValueNullFieldError.checkNotNull( - custom, r'GitHubPackageConfig', 'custom')); + custom: BuiltValueNullFieldError.checkNotNull( + custom, + r'GitHubPackageConfig', + 'custom', + ), + ); replace(_$result); return _$result; } @@ -846,79 +979,93 @@ class GitHubPackageConfigBuilder // JsonSerializableGenerator // ************************************************************************** -RawPubspecConfig _$RawPubspecConfigFromJson(Map json) => $checkedCreate( - 'RawPubspecConfig', - json, - ($checkedConvert) { - final val = RawPubspecConfig( - dependencies: $checkedConvert('dependencies', - (v) => v == null ? const {} : parseDeps(v as Map?)), - environment: $checkedConvert('environment', - (v) => Environment.fromJson(Map.from(v as Map))), - aft: $checkedConvert( - 'aft', - (v) => v == null +RawPubspecConfig _$RawPubspecConfigFromJson(Map json) => + $checkedCreate('RawPubspecConfig', json, ($checkedConvert) { + final val = RawPubspecConfig( + dependencies: $checkedConvert( + 'dependencies', + (v) => v == null ? const {} : parseDeps(v as Map?), + ), + environment: $checkedConvert( + 'environment', + (v) => Environment.fromJson(Map.from(v as Map)), + ), + aft: $checkedConvert( + 'aft', + (v) => + v == null ? null - : RawAftConfig.fromJson(Map.from(v as Map))), - ); - return val; - }, - ); + : RawAftConfig.fromJson(Map.from(v as Map)), + ), + ); + return val; + }); RawAftConfig _$RawAftConfigFromJson(Map json) => $checkedCreate( - 'RawAftConfig', + 'RawAftConfig', + json, + ($checkedConvert) { + $checkKeys( json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const [ - 'platforms', - 'ignore', - 'components', - 'scripts', - 'github' - ], - ); - final val = RawAftConfig( - platforms: $checkedConvert( - 'platforms', - (v) => v == null - ? null - : PlatformEnvironment.fromJson( - Map.from(v as Map))), - ignore: $checkedConvert( - 'ignore', - (v) => - (v as List?)?.map((e) => e as String).toList() ?? - const []), - components: $checkedConvert( - 'components', - (v) => - (v as List?) - ?.map((e) => RawAftComponent.fromJson( - Map.from(e as Map))) - .toList() ?? - const []), - scripts: $checkedConvert( - 'scripts', - (v) => - (v as Map?)?.map( - (k, e) => MapEntry( - k as String, - AftScript.fromJson( - Map.from(e as Map))), - ) ?? - const {}), - github: $checkedConvert( - 'github', - (v) => v == null - ? null - : GitHubPackageConfig.fromJson( - Map.from(v as Map))), - ); - return val; - }, + allowedKeys: const [ + 'platforms', + 'ignore', + 'components', + 'scripts', + 'github', + ], + ); + final val = RawAftConfig( + platforms: $checkedConvert( + 'platforms', + (v) => + v == null + ? null + : PlatformEnvironment.fromJson( + Map.from(v as Map), + ), + ), + ignore: $checkedConvert( + 'ignore', + (v) => + (v as List?)?.map((e) => e as String).toList() ?? const [], + ), + components: $checkedConvert( + 'components', + (v) => + (v as List?) + ?.map( + (e) => RawAftComponent.fromJson( + Map.from(e as Map), + ), + ) + .toList() ?? + const [], + ), + scripts: $checkedConvert( + 'scripts', + (v) => + (v as Map?)?.map( + (k, e) => MapEntry( + k as String, + AftScript.fromJson(Map.from(e as Map)), + ), + ) ?? + const {}, + ), + github: $checkedConvert( + 'github', + (v) => + v == null + ? null + : GitHubPackageConfig.fromJson( + Map.from(v as Map), + ), + ), ); + return val; + }, +); Map _$RawAftConfigToJson(RawAftConfig instance) => { @@ -929,28 +1076,28 @@ Map _$RawAftConfigToJson(RawAftConfig instance) => 'github': instance.github?.toJson(), }; -RawAftComponent _$RawAftComponentFromJson(Map json) => $checkedCreate( - 'RawAftComponent', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['name', 'summary', 'packages', 'propagate'], - ); - final val = RawAftComponent( - name: $checkedConvert('name', (v) => v as String), - summary: $checkedConvert('summary', (v) => v as String?), - packages: $checkedConvert('packages', - (v) => (v as List).map((e) => e as String).toList()), - propagate: $checkedConvert( - 'propagate', - (v) => - $enumDecodeNullable(_$VersionPropagationEnumMap, v) ?? - VersionPropagation.minor), - ); - return val; - }, - ); +RawAftComponent _$RawAftComponentFromJson(Map json) => + $checkedCreate('RawAftComponent', json, ($checkedConvert) { + $checkKeys( + json, + allowedKeys: const ['name', 'summary', 'packages', 'propagate'], + ); + final val = RawAftComponent( + name: $checkedConvert('name', (v) => v as String), + summary: $checkedConvert('summary', (v) => v as String?), + packages: $checkedConvert( + 'packages', + (v) => (v as List).map((e) => e as String).toList(), + ), + propagate: $checkedConvert( + 'propagate', + (v) => + $enumDecodeNullable(_$VersionPropagationEnumMap, v) ?? + VersionPropagation.minor, + ), + ); + return val; + }); Map _$RawAftComponentToJson(RawAftComponent instance) => { @@ -967,67 +1114,60 @@ const _$VersionPropagationEnumMap = { VersionPropagation.none: 'none', }; -SdkConfig _$SdkConfigFromJson(Map json) => $checkedCreate( - 'SdkConfig', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['ref', 'apis', 'plugins'], - ); - final val = SdkConfig( - ref: $checkedConvert('ref', (v) => v as String? ?? 'main'), - apis: $checkedConvert( - 'apis', - (v) => (v as Map).map( - (k, e) => MapEntry( - k as String, - (e as List?) - ?.map((e) => e as String) - .toList()), - )), - plugins: $checkedConvert( - 'plugins', - (v) => - (v as List?)?.map((e) => e as String).toList() ?? - const []), - ); - return val; - }, - ); +SdkConfig _$SdkConfigFromJson(Map json) => $checkedCreate('SdkConfig', json, ( + $checkedConvert, +) { + $checkKeys(json, allowedKeys: const ['ref', 'apis', 'plugins']); + final val = SdkConfig( + ref: $checkedConvert('ref', (v) => v as String? ?? 'main'), + apis: $checkedConvert( + 'apis', + (v) => (v as Map).map( + (k, e) => MapEntry( + k as String, + (e as List?)?.map((e) => e as String).toList(), + ), + ), + ), + plugins: $checkedConvert( + 'plugins', + (v) => + (v as List?)?.map((e) => e as String).toList() ?? const [], + ), + ); + return val; +}); Map _$SdkConfigToJson(SdkConfig instance) => { - 'ref': instance.ref, - 'apis': instance.apis, - 'plugins': instance.plugins, - }; + 'ref': instance.ref, + 'apis': instance.apis, + 'plugins': instance.plugins, +}; -AftScript _$AftScriptFromJson(Map json) => $checkedCreate( - 'AftScript', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['run', 'description', 'from', 'fail-fast'], - ); - final val = AftScript( - run: $checkedConvert('run', (v) => v as String), - description: $checkedConvert('description', (v) => v as String?), - from: $checkedConvert( - 'from', - (v) => v == null +AftScript _$AftScriptFromJson(Map json) => + $checkedCreate('AftScript', json, ($checkedConvert) { + $checkKeys( + json, + allowedKeys: const ['run', 'description', 'from', 'fail-fast'], + ); + final val = AftScript( + run: $checkedConvert('run', (v) => v as String), + description: $checkedConvert('description', (v) => v as String?), + from: $checkedConvert( + 'from', + (v) => + v == null ? const PackageSelector.development() - : const PackageSelectorConverter().fromJson(v)), - failFast: $checkedConvert('fail-fast', (v) => v as bool? ?? false), - ); - return val; - }, - fieldKeyMap: const {'failFast': 'fail-fast'}, - ); + : const PackageSelectorConverter().fromJson(v), + ), + failFast: $checkedConvert('fail-fast', (v) => v as bool? ?? false), + ); + return val; + }, fieldKeyMap: const {'failFast': 'fail-fast'}); Map _$AftScriptToJson(AftScript instance) => { - 'run': instance.run, - 'description': instance.description, - 'from': const PackageSelectorConverter().toJson(instance.from), - 'fail-fast': instance.failFast, - }; + 'run': instance.run, + 'description': instance.description, + 'from': const PackageSelectorConverter().toJson(instance.from), + 'fail-fast': instance.failFast, +}; diff --git a/packages/aft/lib/src/config/script_template.dart b/packages/aft/lib/src/config/script_template.dart index 92840e003a..743c322e1b 100644 --- a/packages/aft/lib/src/config/script_template.dart +++ b/packages/aft/lib/src/config/script_template.dart @@ -4,10 +4,7 @@ import 'package:mustache_template/mustache_template.dart'; class ScriptTemplater { - ScriptTemplater( - this._templateString, { - this.partials = const {}, - }); + ScriptTemplater(this._templateString, {this.partials = const {}}); final String _templateString; late final Template _template = Template( diff --git a/packages/aft/lib/src/config/serializers.dart b/packages/aft/lib/src/config/serializers.dart index a5e4748740..0edfd34fa0 100644 --- a/packages/aft/lib/src/config/serializers.dart +++ b/packages/aft/lib/src/config/serializers.dart @@ -19,19 +19,22 @@ part 'serializers.g.dart'; MacOSEnvironment, GitHubPackageConfig, ]) -final Serializers aftSerializers = (_$aftSerializers.toBuilder() - ..addPlugin(StandardJsonPlugin()) - ..add(const VersionConstraintSerializer()) - ..add(const JsonSerializer(fromJson: PackageInfo.fromJson)) - ..add(const JsonSerializer(fromJson: AftComponent.fromJson)) - ..add(const JsonSerializer(fromJson: AftScript.fromJson))) - .build(); +final Serializers aftSerializers = + (_$aftSerializers.toBuilder() + ..addPlugin(StandardJsonPlugin()) + ..add(const VersionConstraintSerializer()) + ..add( + const JsonSerializer(fromJson: PackageInfo.fromJson), + ) + ..add( + const JsonSerializer(fromJson: AftComponent.fromJson), + ) + ..add(const JsonSerializer(fromJson: AftScript.fromJson))) + .build(); final class JsonSerializer implements PrimitiveSerializer { - const JsonSerializer({ - required this.fromJson, - }); + const JsonSerializer({required this.fromJson}); final T Function(Map) fromJson; static final StandardJsonPlugin _jsonPlugin = StandardJsonPlugin(); diff --git a/packages/aft/lib/src/config/serializers.g.dart b/packages/aft/lib/src/config/serializers.g.dart index f71d24f927..98fff4d1e7 100644 --- a/packages/aft/lib/src/config/serializers.g.dart +++ b/packages/aft/lib/src/config/serializers.g.dart @@ -6,35 +6,47 @@ part of 'serializers.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$aftSerializers = (new Serializers().toBuilder() - ..add(AftConfig.serializer) - ..add(AndroidEnvironment.serializer) - ..add(Environment.serializer) - ..add(GitHubPackageConfig.serializer) - ..add(IosEnvironment.serializer) - ..add(MacOSEnvironment.serializer) - ..add(PlatformEnvironment.serializer) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(PackageInfo)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, const [ - const FullType(String), - const FullType(VersionConstraint) - ]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(AftComponent)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(AftScript)]), - () => new MapBuilder())) - .build(); +Serializers _$aftSerializers = + (new Serializers().toBuilder() + ..add(AftConfig.serializer) + ..add(AndroidEnvironment.serializer) + ..add(Environment.serializer) + ..add(GitHubPackageConfig.serializer) + ..add(IosEnvironment.serializer) + ..add(MacOSEnvironment.serializer) + ..add(PlatformEnvironment.serializer) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(PackageInfo), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(VersionConstraint), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AftComponent), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AftScript), + ]), + () => new MapBuilder(), + )) + .build(); // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/aft/lib/src/constraints_checker.dart b/packages/aft/lib/src/constraints_checker.dart index 9cae1a9118..9b8fd3caa8 100644 --- a/packages/aft/lib/src/constraints_checker.dart +++ b/packages/aft/lib/src/constraints_checker.dart @@ -9,11 +9,8 @@ import 'package:pub_semver/pub_semver.dart'; import 'package:pubspec_parse/pubspec_parse.dart'; import 'package:yaml/yaml.dart'; -typedef MismatchedDependency = ({ - PackageInfo package, - String dependencyName, - String message, -}); +typedef MismatchedDependency = + ({PackageInfo package, String dependencyName, String message}); sealed class ConstraintsChecker { ConstraintsChecker(this.action); @@ -43,13 +40,11 @@ sealed class ConstraintsChecker { }) { switch (action) { case ConstraintsAction.check: - mismatchedDependencies.add( - ( - package: package, - dependencyName: dependencyPath.last, - message: errorMessage, - ), - ); + mismatchedDependencies.add(( + package: package, + dependencyName: dependencyPath.last, + message: errorMessage, + )); return false; case ConstraintsAction.apply: case ConstraintsAction.update: @@ -87,9 +82,9 @@ final class GlobalConstraintChecker extends ConstraintsChecker { // more precise constraints. final (currentConstraint, satisfiesGlobalConstraint) = switch (dependency) { HostedDependency(:final version) => ( - version, - version == globalConstraint, - ), + version, + version == globalConstraint, + ), _ => (null, false), }; if (satisfiesGlobalConstraint) { @@ -99,7 +94,8 @@ final class GlobalConstraintChecker extends ConstraintsChecker { package: package, dependencyPath: [dependencyType.key, dependencyName], expectedConstraint: HostedDependency(version: globalConstraint), - errorMessage: 'Expected $globalConstraint\n' + errorMessage: + 'Expected $globalConstraint\n' 'Found $currentConstraint', ); } @@ -126,7 +122,8 @@ final class GlobalConstraintChecker extends ConstraintsChecker { package: package, dependencyPath: ['environment', 'sdk'], expectedConstraint: HostedDependency(version: globalSdkConstraint), - errorMessage: 'Expected $globalSdkConstraint\n' + errorMessage: + 'Expected $globalSdkConstraint\n' 'Found $localSdkConstraint', ); } @@ -145,7 +142,8 @@ final class GlobalConstraintChecker extends ConstraintsChecker { expectedConstraint: HostedDependency( version: globalFlutterConstraint, ), - errorMessage: 'Expected $globalFlutterConstraint\n' + errorMessage: + 'Expected $globalFlutterConstraint\n' 'Found $localFlutterConstraint', ); } @@ -166,14 +164,12 @@ final class GlobalConstraintChecker extends ConstraintsChecker { String dependencyName, Dependency dependency, DependencyType dependencyType, - ) action, + ) + action, ) { var result = true; for (final (dependencies, dependencyType) in [ - ( - package.pubspecInfo.pubspec.dependencies, - DependencyType.dependency, - ), + (package.pubspecInfo.pubspec.dependencies, DependencyType.dependency), ( package.pubspecInfo.pubspec.devDependencies, DependencyType.devDependency, @@ -185,13 +181,9 @@ final class GlobalConstraintChecker extends ConstraintsChecker { ]) { for (final MapEntry(key: dependencyName, value: dependency) in dependencies.entries) { - result = result && - action( - package, - dependencyName, - dependency, - dependencyType, - ); + result = + result && + action(package, dependencyName, dependency, dependencyType); } } return result; @@ -200,8 +192,10 @@ final class GlobalConstraintChecker extends ConstraintsChecker { @override bool checkConstraints(PackageInfo package) { final satisfiesEnvironmentConstraints = _checkEnvironment(package); - final satisfiesDependencyConstraints = - _forEachDependency(package, _checkDependency); + final satisfiesDependencyConstraints = _forEachDependency( + package, + _checkDependency, + ); return satisfiesEnvironmentConstraints && satisfiesDependencyConstraints; } } @@ -236,17 +230,12 @@ final class PublishConstraintsChecker extends ConstraintsChecker { )) { /// Publishable packages listed in the `dependencies` block must have a hosted constraint. case ( - dependencyIsPublished: true, - packageIsPublished: _, - type: DependencyType.dependency, - ) || - - /// Publishable packages must list other publishable packages with a hosted constraint. - ( - dependencyIsPublished: true, - packageIsPublished: true, - type: _, - ): + dependencyIsPublished: true, + packageIsPublished: _, + type: DependencyType.dependency, + ) || + /// Publishable packages must list other publishable packages with a hosted constraint. + (dependencyIsPublished: true, packageIsPublished: true, type: _): switch (constraint) { case HostedDependency(:final version): allConstraints.recordConstraint( @@ -259,9 +248,10 @@ final class PublishConstraintsChecker extends ConstraintsChecker { package: package, dependencyPath: [dependencyType.key, dependency.name], expectedConstraint: HostedDependency( - version: package.isPublishable - ? dependency.currentConstraint - : VersionConstraint.any, + version: + package.isPublishable + ? dependency.currentConstraint + : VersionConstraint.any, ), errorMessage: 'Invalid constraint type: ${constraint.runtimeType}. ' @@ -272,11 +262,10 @@ final class PublishConstraintsChecker extends ConstraintsChecker { /// Published packages must list unpublished packages with a path constraint. case ( - packageIsPublished: true, - dependencyIsPublished: false, - type: - DependencyType.devDependency || DependencyType.dependencyOverride, - ): + packageIsPublished: true, + dependencyIsPublished: false, + type: DependencyType.devDependency || DependencyType.dependencyOverride, + ): switch (constraint) { case PathDependency _: return; @@ -287,7 +276,8 @@ final class PublishConstraintsChecker extends ConstraintsChecker { expectedConstraint: PathDependency( p.relative(dependency.path, from: package.path), ), - errorMessage: 'Invalid constraint on unpublished package. ' + errorMessage: + 'Invalid constraint on unpublished package. ' 'A path dependency is required when listing any unpublished ' 'package in the `dev_dependencies` block of a published package.', ); @@ -296,10 +286,10 @@ final class PublishConstraintsChecker extends ConstraintsChecker { /// A published package cannot take a dependency on an unpublished package /// anywhere but the `dev_dependencies` block. case ( - packageIsPublished: true, - dependencyIsPublished: false, - type: DependencyType.dependency, - ): + packageIsPublished: true, + dependencyIsPublished: false, + type: DependencyType.dependency, + ): throw AssertionError( 'Non-publishable package (${dependency.name}) found in ' 'the `dependencies` block of ${package.name}.', @@ -307,21 +297,16 @@ final class PublishConstraintsChecker extends ConstraintsChecker { /// Unpublished packages can depend on other unpublished packages in /// any way they like without it affecting the pub validator. - case ( - packageIsPublished: false, - dependencyIsPublished: false, - type: _, - ): + case (packageIsPublished: false, dependencyIsPublished: false, type: _): return; /// Unpublished packages' `dev_dependencies` and `dependency_overrides` /// blocks are not checked by the pub validator. case ( - dependencyIsPublished: true, - packageIsPublished: false, - type: - DependencyType.devDependency || DependencyType.dependencyOverride, - ): + dependencyIsPublished: true, + packageIsPublished: false, + type: DependencyType.devDependency || DependencyType.dependencyOverride, + ): return; } } @@ -333,44 +318,35 @@ final class PublishConstraintsChecker extends ConstraintsChecker { } final allConstraints = _DependencyConstraintMap(); final rootPackage = package; - dfs( - repoGraph, - root: rootPackage, - (package) { - final dependencies = { - ...package.pubspecInfo.pubspec.dependencies.map( - (key, value) => MapEntry( - key, - (DependencyType.dependency, value), - ), - ), - ...package.pubspecInfo.pubspec.devDependencies.map( - (key, value) => MapEntry( - key, - (DependencyType.devDependency, value), - ), - ), - }; - for (final MapEntry( - key: dependencyName, - value: (dependencyType, constraint) - ) in dependencies.entries) { - final dependency = repoGraph.keys.singleWhereOrNull( - (pkg) => pkg.name == dependencyName, - ); - if (dependency == null) { - continue; - } - _checkConstraint( - package, - dependency, - dependencyType, - constraint, - allConstraints, - ); + dfs(repoGraph, root: rootPackage, (package) { + final dependencies = { + ...package.pubspecInfo.pubspec.dependencies.map( + (key, value) => MapEntry(key, (DependencyType.dependency, value)), + ), + ...package.pubspecInfo.pubspec.devDependencies.map( + (key, value) => MapEntry(key, (DependencyType.devDependency, value)), + ), + }; + for (final MapEntry( + key: dependencyName, + value: (dependencyType, constraint), + ) + in dependencies.entries) { + final dependency = repoGraph.keys.singleWhereOrNull( + (pkg) => pkg.name == dependencyName, + ); + if (dependency == null) { + continue; } - }, - ); + _checkConstraint( + package, + dependency, + dependencyType, + constraint, + allConstraints, + ); + } + }); for (final MapEntry(key: repoDependency, value: constraints) in allConstraints.entries) { final intersection = _intersection(constraints.values); @@ -390,9 +366,10 @@ final class PublishConstraintsChecker extends ConstraintsChecker { repoDependency.name, ], expectedConstraint: HostedDependency( - version: package.isPublishable - ? repoDependency.currentConstraint - : VersionConstraint.any, + version: + package.isPublishable + ? repoDependency.currentConstraint + : VersionConstraint.any, ), errorMessage: 'Constraint for dependency causes an empty intersection ' @@ -424,8 +401,8 @@ final class _DependencyConstraintMap @override Map toJson() => map((repoDependency, constraints) { - return MapEntry(repoDependency.name, constraints.toJson()); - }); + return MapEntry(repoDependency.name, constraints.toJson()); + }); } final class _ConstraintMap extends DelegatingMap @@ -437,32 +414,32 @@ final class _ConstraintMap extends DelegatingMap @override Map toJson() => map((package, constraint) { - return MapEntry(package.name, constraint.toString()); - }); + return MapEntry(package.name, constraint.toString()); + }); } extension on PackageInfo { /// The current constraint for `this` to use in publishable packages' /// `dependencies` block. VersionRange get currentConstraint => VersionRange( - min: Version(version.major, version.minor, 0), - includeMin: true, - max: version.nextMinor, - ); + min: Version(version.major, version.minor, 0), + includeMin: true, + max: version.nextMinor, + ); } extension DependencyToYaml on Dependency { YamlNode toYaml() => switch (this) { - HostedDependency(:final version) => YamlScalar.wrap(version.toString()), - PathDependency(:final path) => YamlMap.wrap({'path': path}), - SdkDependency(:final sdk) => YamlMap.wrap({'sdk': sdk}), - GitDependency(:final url, :final ref, :final path) => YamlMap.wrap({ - 'git': { - 'url': url.toString(), - if (ref != null) 'ref': ref, - if (path != null) 'path': path, - }, - }), - _ => throw StateError('Invalid dependency: $this'), - }; + HostedDependency(:final version) => YamlScalar.wrap(version.toString()), + PathDependency(:final path) => YamlMap.wrap({'path': path}), + SdkDependency(:final sdk) => YamlMap.wrap({'sdk': sdk}), + GitDependency(:final url, :final ref, :final path) => YamlMap.wrap({ + 'git': { + 'url': url.toString(), + if (ref != null) 'ref': ref, + if (path != null) 'path': path, + }, + }), + _ => throw StateError('Invalid dependency: $this'), + }; } diff --git a/packages/aft/lib/src/git.dart b/packages/aft/lib/src/git.dart index 54812e3a31..49640f8f94 100644 --- a/packages/aft/lib/src/git.dart +++ b/packages/aft/lib/src/git.dart @@ -12,23 +12,15 @@ extension GitHelpers on GitDir { /// Returns the [CommitRef] for the given [commit]. Future commitRef(String commit) async { if (_sha1Regex.hasMatch(commit)) { - return ( - commit, - await commitFromRevision(commit), - ); + return (commit, await commitFromRevision(commit)); } - return ( - revParse(commit), - commitFromRevision(commit), - ).wait; + return (revParse(commit), commitFromRevision(commit)).wait; } /// Runs a `git diff` between [baseTree] and [headTree] and returns the list /// of filepaths changed between the two commits. Future> diffTrees(String baseTree, String headTree) async { - final diff = await runCommand( - ['diff', '--raw', '$baseTree..$headTree'], - ); + final diff = await runCommand(['diff', '--raw', '$baseTree..$headTree']); final diffs = LineSplitter.split(diff.stdout as String); final changedPaths = []; for (final diff in diffs) { @@ -48,9 +40,7 @@ extension GitHelpers on GitDir { /// Lists all commits, in reverse chronological order, between [baseCommit] /// and [headCommit]. Stream revList(String baseCommit, String headCommit) async* { - final revList = await runCommand( - ['rev-list', '$baseCommit..$headCommit'], - ); + final revList = await runCommand(['rev-list', '$baseCommit..$headCommit']); final commits = LineSplitter.split((revList.stdout as String).trim()); for (final oid in commits) { yield await commitRef(oid); diff --git a/packages/aft/lib/src/models.dart b/packages/aft/lib/src/models.dart index 34c66b323a..2511894210 100644 --- a/packages/aft/lib/src/models.dart +++ b/packages/aft/lib/src/models.dart @@ -65,14 +65,16 @@ class PubVersionInfo { extension AmplifyVersion on Version { Version get nextPreRelease => Version( - major, - minor, - patch, - pre: preRelease.map((el) { + major, + minor, + patch, + pre: preRelease + .map((el) { if (el is! int) return el; return el + 1; - }).join('.'), - ); + }) + .join('.'), + ); /// The next version according to Amplify rules for incrementing. Version nextAmplifyVersion(VersionBumpType type) { diff --git a/packages/aft/lib/src/options/fail_fast_option.dart b/packages/aft/lib/src/options/fail_fast_option.dart index 486a4286bd..27c8bf445c 100644 --- a/packages/aft/lib/src/options/fail_fast_option.dart +++ b/packages/aft/lib/src/options/fail_fast_option.dart @@ -11,7 +11,8 @@ mixin FailFastOption on AmplifyCommand { super.init(); argParser.addFlag( 'fail-fast', - help: 'When running commands for multiple packages, ' + help: + 'When running commands for multiple packages, ' 'the first command triggers an exit.', defaultsTo: false, ); diff --git a/packages/aft/lib/src/options/git_ref_options.dart b/packages/aft/lib/src/options/git_ref_options.dart index 7456fe75f6..529378353f 100644 --- a/packages/aft/lib/src/options/git_ref_options.dart +++ b/packages/aft/lib/src/options/git_ref_options.dart @@ -11,14 +11,8 @@ mixin GitRefOptions on AmplifyCommand { void init() { super.init(); argParser - ..addOption( - 'base-ref', - help: 'The base ref to update against', - ) - ..addOption( - 'head-ref', - help: 'The head ref to update against', - ); + ..addOption('base-ref', help: 'The base ref to update against') + ..addOption('head-ref', help: 'The head ref to update against'); } /// The base reference git operations should be based on. diff --git a/packages/aft/lib/src/options/glob_options.dart b/packages/aft/lib/src/options/glob_options.dart index 7e9bef8770..d328f22317 100644 --- a/packages/aft/lib/src/options/glob_options.dart +++ b/packages/aft/lib/src/options/glob_options.dart @@ -9,14 +9,8 @@ mixin GlobOptions on AmplifyCommand { void init() { super.init(); argParser - ..addMultiOption( - 'include', - help: 'Package selectors to include', - ) - ..addMultiOption( - 'exclude', - help: 'Package selectors to exclude', - ); + ..addMultiOption('include', help: 'Package selectors to include') + ..addMultiOption('exclude', help: 'Package selectors to exclude'); } /// The base package selector to use when [include] is not specified. @@ -32,9 +26,10 @@ mixin GlobOptions on AmplifyCommand { /// The package selector passed via command line flags. late final commandPackageSelector = PackageSelector( - include: include.isEmpty - ? basePackageSelector - : PackageSelector.fromJson(include), + include: + include.isEmpty + ? basePackageSelector + : PackageSelector.fromJson(include), exclude: exclude.isEmpty ? null : PackageSelector.fromJson(exclude), ); diff --git a/packages/aft/lib/src/pub/pub_runner.dart b/packages/aft/lib/src/pub/pub_runner.dart index 3517023d06..0c8ce5029f 100644 --- a/packages/aft/lib/src/pub/pub_runner.dart +++ b/packages/aft/lib/src/pub/pub_runner.dart @@ -18,12 +18,7 @@ extension PubAction on AmplifyCommand { return; } try { - await runPub( - package.flavor, - arguments, - package, - verbose: verbose, - ); + await runPub(package.flavor, arguments, package, verbose: verbose); } on Exception catch (e) { final command = this; if (command is FailFastOption && command.failFast) { diff --git a/packages/aft/lib/src/repo.dart b/packages/aft/lib/src/repo.dart index b2d66ddfc6..a28aead28c 100644 --- a/packages/aft/lib/src/repo.dart +++ b/packages/aft/lib/src/repo.dart @@ -18,16 +18,10 @@ import 'package:pub_semver/pub_semver.dart'; /// Encapsulates all repository functionality including package and Git /// management. class Repo { - Repo( - this.aftConfig, - this.git, { - AWSLogger? logger, - }) : logger = logger ?? AWSLogger().createChild('Repo'); - - static Future open( - AftConfig aftConfig, { - AWSLogger? logger, - }) async { + Repo(this.aftConfig, this.git, {AWSLogger? logger}) + : logger = logger ?? AWSLogger().createChild('Repo'); + + static Future open(AftConfig aftConfig, {AWSLogger? logger}) async { final gitDir = await GitDir.fromExisting( aftConfig.rootDirectory.toFilePath(), ); @@ -44,8 +38,9 @@ class Repo { late final Directory rootDir = Directory.fromUri(aftConfig.rootDirectory); /// The current working directory. - late final Directory workingDirectory = - Directory.fromUri(aftConfig.workingDirectory); + late final Directory workingDirectory = Directory.fromUri( + aftConfig.workingDirectory, + ); final AWSLogger logger; @@ -56,13 +51,11 @@ class Repo { /// All packages which can be published to `pub.dev`. List publishablePackages([ Map? allPackages, - ]) => - UnmodifiableListView( - (allPackages ?? this.allPackages) - .values - .where((pkg) => pkg.isPublishable) - .toList(), - ); + ]) => UnmodifiableListView( + (allPackages ?? this.allPackages).values + .where((pkg) => pkg.isPublishable) + .toList(), + ); /// Returns the latest version bump commit for [package], or `null` if no such /// commit exists. @@ -72,7 +65,8 @@ class Repo { /// bump. Future latestBumpRef(PackageInfo package) async { final packageName = package.name; - final component = components[packageName]?.name ?? + final component = + components[packageName]?.name ?? components.values .firstWhereOrNull( (component) => component.packages @@ -102,18 +96,18 @@ class Repo { /// Will include dev dependencies if [includeDevDependencies] is `true`. Map> getPackageGraph({ bool includeDevDependencies = false, - }) => - UnmodifiableMapView({ - for (final package in allPackages.values) - package: [ - ...package.pubspecInfo.pubspec.dependencies.keys, - if (includeDevDependencies) - ...package.pubspecInfo.pubspec.devDependencies.keys, - ] + }) => UnmodifiableMapView({ + for (final package in allPackages.values) + package: + [ + ...package.pubspecInfo.pubspec.dependencies.keys, + if (includeDevDependencies) + ...package.pubspecInfo.pubspec.devDependencies.keys, + ] .map((packageName) => allPackages[packageName]) .whereType() .toList(), - }); + }); /// The directed graph of packages to the packages it depends on. late final Map> packageGraph = @@ -160,12 +154,10 @@ class Repo { final changedPaths = await git.diffTrees(baseTree, headTree); final changedPackages = {}; for (final changedPath in changedPaths) { - final changedPackage = allPackages.values.firstWhereOrNull( - (pkg) { - final relativePkgPath = p.relative(pkg.path, from: rootDir.path); - return changedPath.contains('$relativePkgPath/'); - }, - ); + final changedPackage = allPackages.values.firstWhereOrNull((pkg) { + final relativePkgPath = p.relative(pkg.path, from: rootDir.path); + return changedPath.contains('$relativePkgPath/'); + }); if (changedPackage != null && // Do not track example packages for git ops changedPackage.isDevelopmentPackage) { @@ -180,10 +172,7 @@ class Repo { for (final package in changedPackages) { await for (final (sha, commit) in git.revList(baseRef, headRef)) { final parent = await git.commitFromRevision(commit.parents.first); - final commitPaths = await git.diffTrees( - parent.treeSha, - commit.treeSha, - ); + final commitPaths = await git.diffTrees(parent.treeSha, commit.treeSha); final relativePath = p.relative(package.path, from: rootDir.path); final changedPath = commitPaths.firstWhereOrNull( (path) => path.contains('$relativePath/'), @@ -225,8 +214,9 @@ class Repo { bool canBump(PackageInfo package) => packages.containsKey(package.name); for (final package in sortedPackages) { final changes = await changesForPackage(package); - final commits = (changes.commitsByPackage[package]?.toList() ?? const []) - ..sort((a, b) => a.dateTime.compareTo(b.dateTime)); + final commits = + (changes.commitsByPackage[package]?.toList() ?? const []) + ..sort((a, b) => a.dateTime.compareTo(b.dateTime)); for (final commit in commits) { if (commit.type == CommitType.version) { continue; @@ -260,9 +250,7 @@ class Repo { /// Otherwise, all repo packages are affected. /// /// Returns the list of packages which both had changes and were written. - Future> writeChanges({ - List? packages, - }) async { + Future> writeChanges({List? packages}) async { final affectedPackages = []; for (final package in packages ?? allPackages.values.toList()) { final edits = package.pubspecInfo.pubspecYamlEditor.edits; @@ -272,12 +260,14 @@ class Repo { continue; } affectedPackages.add(package); - await File(p.join(package.path, 'pubspec.yaml')) - .writeAsString(package.pubspecInfo.pubspecYamlEditor.toString()); + await File( + p.join(package.path, 'pubspec.yaml'), + ).writeAsString(package.pubspecInfo.pubspecYamlEditor.toString()); final changelogUpdate = changelogUpdates[package]; if (changelogUpdate != null && changelogUpdate.hasUpdate) { - await File(p.join(package.path, 'CHANGELOG.md')) - .writeAsString(changelogUpdate.toString()); + await File( + p.join(package.path, 'CHANGELOG.md'), + ).writeAsString(changelogUpdate.toString()); } } return affectedPackages; @@ -305,22 +295,19 @@ class Repo { final currentVersion = package.version; final proposedPackageVersion = versionChanges.proposedVersion(package.name) ?? currentVersion; - final proposedComponentVersion = - versionChanges.proposedVersion(componentName); + final proposedComponentVersion = versionChanges.proposedVersion( + componentName, + ); final newProposedVersion = currentVersion.nextAmplifyVersion(type); - final newVersion = maxBy( - [ - proposedPackageVersion, - if (proposedComponentVersion != null) proposedComponentVersion, - newProposedVersion, - ], - (version) => version, - )!; - final propagateToComponent = component != null && - component.propagate.propagateToComponent( - currentVersion, - newVersion, - ); + final newVersion = + maxBy([ + proposedPackageVersion, + if (proposedComponentVersion != null) proposedComponentVersion, + newProposedVersion, + ], (version) => version)!; + final propagateToComponent = + component != null && + component.propagate.propagateToComponent(currentVersion, newVersion); versionChanges.updateProposedVersion( package, newVersion, @@ -348,10 +335,9 @@ class Repo { 'Bumping ${package.name} from $currentVersion to $newVersion: ' '${commit.summary}', ); - package.pubspecInfo.pubspecYamlEditor.update( - ['version'], - newVersion.toString(), - ); + package.pubspecInfo.pubspecYamlEditor.update([ + 'version', + ], newVersion.toString()); // Packages which depend on the package being bumped. final packageDependents = allPackages.values.where( (pkg) => @@ -418,13 +404,10 @@ class Repo { ); final packageVersion = versionChanges.proposedVersion(summaryPackage.name) ?? - versionChanges.proposedVersion(componentName); + versionChanges.proposedVersion(componentName); final currentChangelogUpdate = changelogUpdates[summaryPackage]; changelogUpdates[summaryPackage] = summaryPackage.changelog.update( - commits: { - ...?currentChangelogUpdate?.commits, - commit, - }, + commits: {...?currentChangelogUpdate?.commits, commit}, version: packageVersion, ); } @@ -438,10 +421,10 @@ class Repo { if (newVersion == null) { return; } - final hasDependency = - dependent.pubspecInfo.pubspec.dependencies.containsKey(package.name); - final hasDevDependency = - dependent.pubspecInfo.pubspec.devDependencies.containsKey(package.name); + final hasDependency = dependent.pubspecInfo.pubspec.dependencies + .containsKey(package.name); + final hasDevDependency = dependent.pubspecInfo.pubspec.devDependencies + .containsKey(package.name); if (hasDependency || hasDevDependency) { final newConstraint = newVersion.amplifyConstraint( minVersion: newVersion, @@ -450,13 +433,10 @@ class Repo { 'Bumping dependency on ${package.name} in ${dependent.name} ' 'to $newConstraint', ); - dependent.pubspecInfo.pubspecYamlEditor.update( - [ - if (hasDependency) 'dependencies' else 'dev_dependencies', - package.name, - ], - newConstraint, - ); + dependent.pubspecInfo.pubspecYamlEditor.update([ + if (hasDependency) 'dependencies' else 'dev_dependencies', + package.name, + ], newConstraint); } } } diff --git a/packages/aft/pubspec.yaml b/packages/aft/pubspec.yaml index 46df7159e8..221205e3b4 100644 --- a/packages/aft/pubspec.yaml +++ b/packages/aft/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.1 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: args: ^2.3.0 @@ -14,7 +14,7 @@ dependencies: built_value: ^8.6.0 checked_yaml: ^2.0.0 cli_util: ^0.3.5 - code_builder: 4.10.0 + code_builder: ^4.10.1 collection: ^1.16.0 file: ">=6.0.0 <8.0.0" git: any # override @@ -25,7 +25,7 @@ dependencies: markdown: ^5.0.0 mason: ^0.1.0-dev.40 mason_logger: ^0.2.5 - meta: ^1.7.0 + meta: ^1.16.0 mustache_template: ^2.0.0 path: any pub_api_client: ^2.4.0 @@ -64,11 +64,11 @@ dependency_overrides: path: ../smithy/smithy_codegen dev_dependencies: - amplify_lints: ">=2.0.2 <2.1.0" + amplify_lints: ^3.1.0 build_runner: ^2.4.9 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 checks: ^0.3.0 - json_serializable: 6.8.0 + json_serializable: ^6.9.4 test: ^1.22.1 test_descriptor: ^2.0.1 diff --git a/packages/aft/test/config/config_loader_test.dart b/packages/aft/test/config/config_loader_test.dart index 168fd07164..d882dc418d 100644 --- a/packages/aft/test/config/config_loader_test.dart +++ b/packages/aft/test/config/config_loader_test.dart @@ -17,14 +17,12 @@ name: my_repo publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.7.0 dependencies: - json_serializable: ^6.0.0 + json_serializable: ^6.9.4 '''; - await d.dir('repo', [ - d.file('pubspec.yaml', rootPubspec), - ]).create(); + await d.dir('repo', [d.file('pubspec.yaml', rootPubspec)]).create(); final rootDirectory = p.normalize(d.path('repo')); final workingDirectory = rootDirectory; @@ -40,8 +38,10 @@ dependencies: (config) => p.normalize(config.workingDirectory.toFilePath()), 'workingDirectory', ).equals(workingDirectory) - ..has((config) => config.dependencies.toMap(), 'dependencies') - .containsKey('json_serializable'); + ..has( + (config) => config.dependencies.toMap(), + 'dependencies', + ).containsKey('json_serializable'); }); test('merges root config with child config', () async { @@ -50,10 +50,10 @@ name: my_repo publish_to: none environment: - sdk: ^3.0.0 + sdk: ^3.7.0 dependencies: - json_serializable: ^6.0.0 + json_serializable: ^6.9.4 aft: scripts: @@ -68,11 +68,11 @@ name: my_pkg version: 0.1.0 environment: - sdk: ^3.0.0 + sdk: ^3.7.0 dependencies: built_value: ^8.0.0 - json_serializable: ^6.0.0 + json_serializable: ^6.9.4 aft: scripts: @@ -85,16 +85,12 @@ aft: await d.dir('repo', [ d.file('pubspec.yaml', rootPubspec), d.dir('packages', [ - d.dir('my_pkg', [ - d.file('pubspec.yaml', packagePubspec), - ]), + d.dir('my_pkg', [d.file('pubspec.yaml', packagePubspec)]), ]), ]).create(); final rootDirectory = p.normalize(d.path('repo')); - final workingDirectory = p.normalize( - d.path('repo/packages/my_pkg'), - ); + final workingDirectory = p.normalize(d.path('repo/packages/my_pkg')); final configLoader = AftConfigLoader( workingDirectory: Directory(workingDirectory), ); @@ -108,14 +104,16 @@ aft: 'workingDirectory', ).equals(workingDirectory) ..has((config) => config.dependencies.toMap(), 'dependencies').which( - (it) => it - ..containsKey('json_serializable') - ..not((it) => it..containsKey('built_value')), + (it) => + it + ..containsKey('json_serializable') + ..not((it) => it..containsKey('built_value')), ) ..has((config) => config.scripts.toMap(), 'scripts').which( - (it) => it - ..containsKey('license') - ..containsKey('format'), + (it) => + it + ..containsKey('license') + ..containsKey('format'), ); }); }); diff --git a/packages/aft/test/config/package_selector_test.dart b/packages/aft/test/config/package_selector_test.dart index 74c6c4c2ed..05fda23225 100644 --- a/packages/aft/test/config/package_selector_test.dart +++ b/packages/aft/test/config/package_selector_test.dart @@ -8,8 +8,8 @@ import '../repo_state.g.dart'; void main() { Matcher matchesPackagePaths(List paths) => unorderedEquals( - paths.map((path) => repoState.rootDirectory.resolve(path).path), - ); + paths.map((path) => repoState.rootDirectory.resolve(path).path), + ); group('PackageSelector', () { group('packageOrComponent', () { @@ -58,9 +58,7 @@ void main() { const nameSelector = PackageSelector.packageOrComponent('infra'); expect( nameSelector.allPaths(repoState), - matchesPackagePaths([ - 'infra', - ]), + matchesPackagePaths(['infra']), ); }); diff --git a/packages/aft/test/constraints_checker_test.dart b/packages/aft/test/constraints_checker_test.dart index f8baf2915a..169a25ac52 100644 --- a/packages/aft/test/constraints_checker_test.dart +++ b/packages/aft/test/constraints_checker_test.dart @@ -23,19 +23,21 @@ void main() { 'handles SDK constraints for preview Dart versions (${action.name})', () async { const preReleaseConstraint = '^3.2.0-0'; - final actions = await d - .package( - 'actions', - publishable: false, - sdkConstraint: preReleaseConstraint, - ) - .create(); - final amplifyFlutter = await d - .package( - 'amplify_flutter', - sdkConstraint: preReleaseConstraint, - ) - .create(); + final actions = + await d + .package( + 'actions', + publishable: false, + sdkConstraint: preReleaseConstraint, + ) + .create(); + final amplifyFlutter = + await d + .package( + 'amplify_flutter', + sdkConstraint: preReleaseConstraint, + ) + .create(); final checker = GlobalConstraintChecker( action, const {}, @@ -59,10 +61,7 @@ void main() { { switch (action) { case ConstraintsAction.apply || ConstraintsAction.update: - expect( - checker.checkConstraints(amplifyFlutter), - isTrue, - ); + expect(checker.checkConstraints(amplifyFlutter), isTrue); expect( amplifyFlutter.pubspecInfo.pubspecYamlEditor.edits.single, isA().having( @@ -111,115 +110,104 @@ void main() { ConstraintsAction.apply => 'applies', ConstraintsAction.update => 'updates', }; - test( - '$result when a direct dep and transitive dev dep conflict ' - 'for a published package', - () async { - final repo = await d.repo([ - d.package('amplify_core', version: '1.0.0'), - d.package( - 'amplify_test', - publishable: false, - dependencies: { - // An outdated constraint - 'amplify_core': '<1.0.0', - }, - ), - d.package( - 'amplify_flutter', - version: '1.0.0', - dependencies: { - 'amplify_core': '>=1.0.0 <1.1.0', - }, - devDependencies: { - 'amplify_test': { - 'path': '../amplify_test', + test('$result when a direct dep and transitive dev dep conflict ' + 'for a published package', () async { + final repo = + await d.repo([ + d.package('amplify_core', version: '1.0.0'), + d.package( + 'amplify_test', + publishable: false, + dependencies: { + // An outdated constraint + 'amplify_core': '<1.0.0', }, - }, - ), - ]).create(); - final constraintsChecker = PublishConstraintsChecker( - action, - repo.getPackageGraph(includeDevDependencies: true), - ); + ), + d.package( + 'amplify_flutter', + version: '1.0.0', + dependencies: {'amplify_core': '>=1.0.0 <1.1.0'}, + devDependencies: { + 'amplify_test': {'path': '../amplify_test'}, + }, + ), + ]).create(); + final constraintsChecker = PublishConstraintsChecker( + action, + repo.getPackageGraph(includeDevDependencies: true), + ); - { - expect( - constraintsChecker.checkConstraints(repo.amplifyCore), - isTrue, - ); - } + { + expect(constraintsChecker.checkConstraints(repo.amplifyCore), isTrue); + } - { - expect( - constraintsChecker.checkConstraints(repo.amplifyTest), - isTrue, - reason: - "amplify_test's constraint on amplify_core is fine by itself", - ); - } + { + expect( + constraintsChecker.checkConstraints(repo.amplifyTest), + isTrue, + reason: + "amplify_test's constraint on amplify_core is fine by itself", + ); + } - { - switch (action) { - case ConstraintsAction.apply || ConstraintsAction.update: - expect( - constraintsChecker.checkConstraints(repo.amplifyFlutter), - isTrue, - ); - expect( - repo.amplifyTest.pubspecInfo.pubspecYamlEditor.edits.single, - isA().having( - (edit) => edit.replacement, - 'replacement', - 'any', - ), - ); - expect(constraintsChecker.mismatchedDependencies, isEmpty); - case ConstraintsAction.check: - expect( - constraintsChecker.checkConstraints(repo.amplifyFlutter), - isFalse, - reason: - 'The constraint amplify_test has on amplify_core would ' - "cause a publish error since it conflicts with amplify_flutter's " - 'direct constraint', - ); - expect( - constraintsChecker.mismatchedDependencies.single, - isA() - .having( - (err) => err.package.name, - 'packageName', - 'amplify_test', - ) - .having( - (err) => err.dependencyName, - 'dependencyName', - 'amplify_core', - ), - ); - expect( - repo.amplifyTest.pubspecInfo.pubspecYamlEditor.edits, - isEmpty, - ); - } + { + switch (action) { + case ConstraintsAction.apply || ConstraintsAction.update: + expect( + constraintsChecker.checkConstraints(repo.amplifyFlutter), + isTrue, + ); + expect( + repo.amplifyTest.pubspecInfo.pubspecYamlEditor.edits.single, + isA().having( + (edit) => edit.replacement, + 'replacement', + 'any', + ), + ); + expect(constraintsChecker.mismatchedDependencies, isEmpty); + case ConstraintsAction.check: + expect( + constraintsChecker.checkConstraints(repo.amplifyFlutter), + isFalse, + reason: + 'The constraint amplify_test has on amplify_core would ' + "cause a publish error since it conflicts with amplify_flutter's " + 'direct constraint', + ); + expect( + constraintsChecker.mismatchedDependencies.single, + isA() + .having( + (err) => err.package.name, + 'packageName', + 'amplify_test', + ) + .having( + (err) => err.dependencyName, + 'dependencyName', + 'amplify_core', + ), + ); + expect( + repo.amplifyTest.pubspecInfo.pubspecYamlEditor.edits, + isEmpty, + ); } - }, - ); + } + }); - test( - '$result when a published package lists an unpublished package ' + test('$result when a published package lists an unpublished package ' 'as a hosted dependency', () async { - final repo = await d.repo([ - d.package('amplify_test', publishable: false), - d.package( - 'amplify_core', - version: '1.0.0', - devDependencies: { - 'amplify_test': 'any', - }, - ), - ]).create(); + final repo = + await d.repo([ + d.package('amplify_test', publishable: false), + d.package( + 'amplify_core', + version: '1.0.0', + devDependencies: {'amplify_test': 'any'}, + ), + ]).create(); final constraintsChecker = PublishConstraintsChecker( action, @@ -245,7 +233,8 @@ void main() { expect( constraintsChecker.checkConstraints(repo.amplifyCore), isFalse, - reason: 'The constraint amplify_core has on amplify_test would ' + reason: + 'The constraint amplify_core has on amplify_test would ' 'cause a publish error since amplify_test cannot be retrieved ' "from pub.dev (it's unpublished)", ); diff --git a/packages/aft/test/helpers/matchers.dart b/packages/aft/test/helpers/matchers.dart index 5ab41e32d4..00609f93fc 100644 --- a/packages/aft/test/helpers/matchers.dart +++ b/packages/aft/test/helpers/matchers.dart @@ -42,7 +42,8 @@ final class _PubspecMatcher extends Matcher { final pubspecMap = switch (item) { String _ => loadYaml(item) as YamlMap, Map _ => item, - _ => throw ArgumentError( + _ => + throw ArgumentError( 'Invalid pubspec. Expected String or Map, got ${item.runtimeType}', ), }; diff --git a/packages/aft/test/helpers/package_descriptor.dart b/packages/aft/test/helpers/package_descriptor.dart index c6a94e3973..57f4ee5b6f 100644 --- a/packages/aft/test/helpers/package_descriptor.dart +++ b/packages/aft/test/helpers/package_descriptor.dart @@ -19,16 +19,15 @@ PackageDescriptor package( Map dependencies = const {}, Map devDependencies = const {}, List contents = const [], -}) => - PackageDescriptor( - name, - version: version, - publishable: publishable, - sdkConstraint: sdkConstraint, - dependencies: dependencies, - devDependencies: devDependencies, - contents: contents, - ); +}) => PackageDescriptor( + name, + version: version, + publishable: publishable, + sdkConstraint: sdkConstraint, + dependencies: dependencies, + devDependencies: devDependencies, + contents: contents, +); /// {@template aft.test.package_descriptor} /// Describes the desired state of a package. @@ -87,7 +86,8 @@ final class PackageDescriptor extends d.Descriptor { /// The contents of the `pubspec.yaml`. String get pubspec { - final sdkConstraint = this.sdkConstraint ?? + final sdkConstraint = + this.sdkConstraint ?? VersionConstraint.compatibleWith(Version(3, 0, 0)); final pubspecEditor = YamlEditor(''' @@ -121,20 +121,17 @@ environment: } /// The directory descriptor for the package. - d.DirectoryDescriptor get dir => d.dir( - name, - [ - ...contents, - if (contents.none((d) => d.name == 'pubspec.yaml')) - d.file('pubspec.yaml', pubspec), - if (contents.none((d) => d.name == 'CHANGELOG.md') && version != null) - d.file('CHANGELOG.md', ''' + d.DirectoryDescriptor get dir => d.dir(name, [ + ...contents, + if (contents.none((d) => d.name == 'pubspec.yaml')) + d.file('pubspec.yaml', pubspec), + if (contents.none((d) => d.name == 'CHANGELOG.md') && version != null) + d.file('CHANGELOG.md', ''' ## $version Initial version. '''), - ], - ); + ]); @override Future create([String? parent]) async { diff --git a/packages/aft/test/helpers/repo_descriptor.dart b/packages/aft/test/helpers/repo_descriptor.dart index dc16367ae4..41044da296 100644 --- a/packages/aft/test/helpers/repo_descriptor.dart +++ b/packages/aft/test/helpers/repo_descriptor.dart @@ -25,14 +25,12 @@ RepoDescriptor repo(Iterable contents) => final class RepoDescriptor extends d.Descriptor { /// {@macro aft.test.repo_descriptor} RepoDescriptor(Iterable contents) - : contents = contents.toList(), - super('amplify_flutter'); + : contents = contents.toList(), + super('amplify_flutter'); final List contents; - final _loader = AftConfigLoader( - workingDirectory: Directory(d.sandbox), - ); + final _loader = AftConfigLoader(workingDirectory: Directory(d.sandbox)); /// The root `pubspec.yaml`. /// @@ -46,11 +44,7 @@ final class RepoDescriptor extends d.Descriptor { } dir = dir.parent; } - expect( - rootDirectory, - isNotNull, - reason: 'Should find root directory', - ); + expect(rootDirectory, isNotNull, reason: 'Should find root directory'); return rootDirectory!.pubspec!.pubspecYaml; } @@ -58,9 +52,12 @@ final class RepoDescriptor extends d.Descriptor { Future create([String? parent]) async { assert(parent == null, 'Not supported. Should use root sandbox'); final gitDir = await GitDir.init(parent ?? d.sandbox); - await gitDir.runCommand( - ['commit', '--allow-empty', '-m', 'Initial commit'], - ); + await gitDir.runCommand([ + 'commit', + '--allow-empty', + '-m', + 'Initial commit', + ]); await d.file('pubspec.yaml', pubspec).create(parent); for (final item in contents) { await item.create(parent); diff --git a/packages/aft/test/model_test.dart b/packages/aft/test/model_test.dart index a9552eea02..79d3ed9d66 100644 --- a/packages/aft/test/model_test.dart +++ b/packages/aft/test/model_test.dart @@ -35,8 +35,9 @@ void main() { expect(nextPatch, Version(0, 1, 2)); expect(proagation.propagateToComponent(version, nextPatch), false); - final nonBreaking = - version.nextAmplifyVersion(VersionBumpType.nonBreaking); + final nonBreaking = version.nextAmplifyVersion( + VersionBumpType.nonBreaking, + ); expect(nonBreaking, Version(0, 1, 1)); expect(proagation.propagateToComponent(version, nonBreaking), false); @@ -49,25 +50,17 @@ void main() { final version = Version(1, 0, 0, pre: 'next.0'); final patch = version.nextAmplifyVersion(VersionBumpType.patch); - expect( - patch, - Version(1, 0, 0, pre: 'next.0', build: '1'), - ); + expect(patch, Version(1, 0, 0, pre: 'next.0', build: '1')); expect(proagation.propagateToComponent(version, patch), false); - final nonBreaking = - version.nextAmplifyVersion(VersionBumpType.nonBreaking); - expect( - nonBreaking, - Version(1, 0, 0, pre: 'next.0', build: '1'), + final nonBreaking = version.nextAmplifyVersion( + VersionBumpType.nonBreaking, ); + expect(nonBreaking, Version(1, 0, 0, pre: 'next.0', build: '1')); expect(proagation.propagateToComponent(version, nonBreaking), false); final breaking = version.nextAmplifyVersion(VersionBumpType.breaking); - expect( - breaking, - Version(1, 0, 0, pre: 'next.1'), - ); + expect(breaking, Version(1, 0, 0, pre: 'next.1')); expect(proagation.propagateToComponent(version, breaking), true); }); @@ -75,25 +68,17 @@ void main() { final version = Version(1, 0, 0, pre: 'next.0', build: '1'); final patch = version.nextAmplifyVersion(VersionBumpType.patch); - expect( - patch, - Version(1, 0, 0, pre: 'next.0', build: '2'), - ); + expect(patch, Version(1, 0, 0, pre: 'next.0', build: '2')); expect(proagation.propagateToComponent(version, patch), false); - final nonBreaking = - version.nextAmplifyVersion(VersionBumpType.nonBreaking); - expect( - nonBreaking, - Version(1, 0, 0, pre: 'next.0', build: '2'), + final nonBreaking = version.nextAmplifyVersion( + VersionBumpType.nonBreaking, ); + expect(nonBreaking, Version(1, 0, 0, pre: 'next.0', build: '2')); expect(proagation.propagateToComponent(version, nonBreaking), false); final breaking = version.nextAmplifyVersion(VersionBumpType.breaking); - expect( - breaking, - Version(1, 0, 0, pre: 'next.1'), - ); + expect(breaking, Version(1, 0, 0, pre: 'next.1')); expect(proagation.propagateToComponent(version, breaking), true); }); @@ -104,8 +89,9 @@ void main() { expect(patch, Version(1, 0, 1)); expect(proagation.propagateToComponent(version, patch), false); - final nonBreaking = - version.nextAmplifyVersion(VersionBumpType.nonBreaking); + final nonBreaking = version.nextAmplifyVersion( + VersionBumpType.nonBreaking, + ); expect(nonBreaking, Version(1, 1, 0)); expect(proagation.propagateToComponent(version, nonBreaking), true); @@ -123,20 +109,12 @@ void main() { final major = currentDartVersion.major; final minor = currentDartVersion.minor; final stablePackage = await d.package('stable_pkg').create(); - final previewPackage = await d - .package( - 'preview_pkg', - sdkConstraint: '^$major.${minor + 1}.0-0', - ) - .create(); - expect( - stablePackage.compatibleWithActiveSdk, - isTrue, - ); - expect( - previewPackage.compatibleWithActiveSdk, - isFalse, - ); + final previewPackage = + await d + .package('preview_pkg', sdkConstraint: '^$major.${minor + 1}.0-0') + .create(); + expect(stablePackage.compatibleWithActiveSdk, isTrue); + expect(previewPackage.compatibleWithActiveSdk, isFalse); }); }); } diff --git a/packages/aft/test/util_test.dart b/packages/aft/test/util_test.dart index 355a34d1d0..4570ca1db6 100644 --- a/packages/aft/test/util_test.dart +++ b/packages/aft/test/util_test.dart @@ -75,9 +75,7 @@ Pubspec _dummyPackage(String name, {List deps = const []}) { return Pubspec( name, devDependencies: {}, - dependencies: { - for (final dep in deps) dep: HostedDependency(), - }, + dependencies: {for (final dep in deps) dep: HostedDependency()}, dependencyOverrides: {}, version: Version(1, 0, 0), publishTo: null, diff --git a/packages/aft/test/version_bump/version_bump_test.dart b/packages/aft/test/version_bump/version_bump_test.dart index 0e3b010376..0e91123a04 100644 --- a/packages/aft/test/version_bump/version_bump_test.dart +++ b/packages/aft/test/version_bump/version_bump_test.dart @@ -17,58 +17,31 @@ final logger = AWSLogger().createChild('Version Bump'); const tests = { 'single_package_chore': [ - Change( - title: 'chore: test', - packages: ['amplify_auth_cognito'], - ), + Change(title: 'chore: test', packages: ['amplify_auth_cognito']), ], 'single_package_fix': [ - Change( - title: 'fix: test', - packages: ['amplify_auth_cognito'], - ), + Change(title: 'fix: test', packages: ['amplify_auth_cognito']), ], 'single_package_feat': [ - Change( - title: 'feat: test', - packages: ['amplify_auth_cognito'], - ), + Change(title: 'feat: test', packages: ['amplify_auth_cognito']), ], 'single_package_breaking': [ - Change( - title: 'feat!: test', - packages: ['amplify_auth_cognito'], - ), + Change(title: 'feat!: test', packages: ['amplify_auth_cognito']), ], 'single_dart_package_chore': [ - Change( - title: 'chore: test', - packages: ['amplify_auth_cognito_dart'], - ), + Change(title: 'chore: test', packages: ['amplify_auth_cognito_dart']), ], 'single_dart_package_fix': [ - Change( - title: 'fix: test', - packages: ['amplify_auth_cognito_dart'], - ), + Change(title: 'fix: test', packages: ['amplify_auth_cognito_dart']), ], 'single_dart_package_feat': [ - Change( - title: 'feat: test', - packages: ['amplify_auth_cognito_dart'], - ), + Change(title: 'feat: test', packages: ['amplify_auth_cognito_dart']), ], 'single_dart_package_breaking': [ - Change( - title: 'feat!: test', - packages: ['amplify_auth_cognito_dart'], - ), + Change(title: 'feat!: test', packages: ['amplify_auth_cognito_dart']), ], 'aws_common_fix': [ - Change( - title: 'fix: test', - packages: ['aws_common'], - ), + Change(title: 'fix: test', packages: ['aws_common']), ], 'multi_package_update': [ Change( @@ -79,10 +52,7 @@ const tests = { title: 'fix: test auth fix', packages: ['amplify_auth_cognito', 'amplify_auth_cognito_dart'], ), - Change( - title: 'feat: test common feat', - packages: ['aws_common'], - ), + Change(title: 'feat: test common feat', packages: ['aws_common']), Change( title: 'fix: test db common fix', packages: ['amplify_db_common', 'amplify_db_common_dart'], @@ -102,10 +72,7 @@ const tests = { title: 'fix: test auth fix', packages: ['amplify_auth_cognito', 'amplify_auth_cognito_dart'], ), - Change( - title: 'feat!: test breaking common feat', - packages: ['aws_common'], - ), + Change(title: 'feat!: test breaking common feat', packages: ['aws_common']), Change( title: 'fix: test db common fix', packages: ['amplify_db_common', 'amplify_db_common_dart'], @@ -177,9 +144,7 @@ void main() { ]); if (!generateSnapshots) { - final process = await repo.git.runCommand( - ['diff', '--unified=0'], - ); + final process = await repo.git.runCommand(['diff', '--unified=0']); final actual = processDiff(process.stdout as String); final expected = await diffFile.readAsString(); expect(actual, expected); @@ -191,10 +156,7 @@ void main() { } class Change { - const Change({ - required this.title, - required this.packages, - }); + const Change({required this.title, required this.packages}); final String title; final List packages; @@ -205,11 +167,7 @@ class Change { File(p.join(newDir.path, 'file.txt')).createSync(); } await runGit(repo, ['add', '.']); - await runGit(repo, [ - 'commit', - '-m', - '$title\n', - ]); + await runGit(repo, ['commit', '-m', '$title\n']); return runGit(repo, ['rev-parse', 'HEAD']); } } @@ -221,10 +179,7 @@ Future runGit(Repo repo, List args) async { return stdout.trim(); } -Future copyDirectory( - Directory source, - Directory destination, -) async { +Future copyDirectory(Directory source, Directory destination) async { for (final e in source.listSync(recursive: true)) { if (!File(e.path).existsSync()) { continue; diff --git a/packages/amplify/amplify_flutter/CHANGELOG.md b/packages/amplify/amplify_flutter/CHANGELOG.md index f9f1f7a1df..d12c55aa28 100644 --- a/packages/amplify/amplify_flutter/CHANGELOG.md +++ b/packages/amplify/amplify_flutter/CHANGELOG.md @@ -1,3 +1,12 @@ +## 2.6.2 + +### Fixes +- fix(sigv4): Convert empty query parameters to null ([#6082](https://github.com/aws-amplify/amplify-flutter/pull/6082)) + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) +- chore(datastore): Removed Starscream pinned version + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/amplify/amplify_flutter/example/android/.gitignore b/packages/amplify/amplify_flutter/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/amplify/amplify_flutter/example/android/.gitignore +++ b/packages/amplify/amplify_flutter/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/amplify/amplify_flutter/example/android/app/build.gradle b/packages/amplify/amplify_flutter/example/android/app/build.gradle index a668bba977..53de623dba 100644 --- a/packages/amplify/amplify_flutter/example/android/app/build.gradle +++ b/packages/amplify/amplify_flutter/example/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,16 +22,14 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace 'com.amazonaws.amplify.amplify_flutter_example' compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -67,7 +66,7 @@ flutter { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") testImplementation 'junit:junit:4.13.2' diff --git a/packages/amplify/amplify_flutter/example/android/build.gradle b/packages/amplify/amplify_flutter/example/android/build.gradle index 24d8637a29..ad89b89e31 100644 --- a/packages/amplify/amplify_flutter/example/android/build.gradle +++ b/packages/amplify/amplify_flutter/example/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.9.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() @@ -26,6 +13,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { - delete rootProject.buildDir +tasks.register("clean", Delete) { + delete rootProject.layout.buildDirectory } diff --git a/packages/amplify/amplify_flutter/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/amplify/amplify_flutter/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/amplify/amplify_flutter/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/amplify/amplify_flutter/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/amplify/amplify_flutter/example/android/settings.gradle b/packages/amplify/amplify_flutter/example/android/settings.gradle index 44e62bcf06..6ac9fc18af 100644 --- a/packages/amplify/amplify_flutter/example/android/settings.gradle +++ b/packages/amplify/amplify_flutter/example/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.9.10" apply false +} + +include ":app" diff --git a/packages/amplify/amplify_flutter/example/lib/main.dart b/packages/amplify/amplify_flutter/example/lib/main.dart index 4be71c9d27..2912a041f0 100644 --- a/packages/amplify/amplify_flutter/example/lib/main.dart +++ b/packages/amplify/amplify_flutter/example/lib/main.dart @@ -46,9 +46,7 @@ class _MyAppState extends State { Widget build(BuildContext context) { return MaterialApp( home: Scaffold( - appBar: AppBar( - title: const Text('Amplify Core example app'), - ), + appBar: AppBar(title: const Text('Amplify Core example app')), body: Center( child: Text('Is Amplify Configured?: $_amplifyConfigured\n'), ), diff --git a/packages/amplify/amplify_flutter/example/pubspec.yaml b/packages/amplify/amplify_flutter/example/pubspec.yaml index 289952b479..b6e7c1282b 100644 --- a/packages/amplify/amplify_flutter/example/pubspec.yaml +++ b/packages/amplify/amplify_flutter/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the Amplify Flutter client libraries. publish_to: none environment: - flutter: ">=3.27.0" - sdk: ^3.6.0 + flutter: ">=3.29.0" + sdk: ^3.7.0 dependencies: amplify_analytics_pinpoint: ">=1.0.0-next.8 <1.0.0-next.9" diff --git a/packages/amplify/amplify_flutter/lib/amplify_flutter.dart b/packages/amplify/amplify_flutter/lib/amplify_flutter.dart index f197054c2b..4516117c91 100644 --- a/packages/amplify/amplify_flutter/lib/amplify_flutter.dart +++ b/packages/amplify/amplify_flutter/lib/amplify_flutter.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_flutter; +library; import 'package:amplify_core/amplify_core.dart'; import 'package:amplify_flutter/src/amplify_impl.dart'; diff --git a/packages/amplify/amplify_flutter/lib/src/hybrid_impl.dart b/packages/amplify/amplify_flutter/lib/src/hybrid_impl.dart index 29ce91dfef..3a0e820afc 100644 --- a/packages/amplify/amplify_flutter/lib/src/hybrid_impl.dart +++ b/packages/amplify/amplify_flutter/lib/src/hybrid_impl.dart @@ -23,36 +23,21 @@ class AmplifyHybridImpl extends AmplifyClassImpl { } try { if (plugin is AuthPluginInterface) { - await Auth.addPlugin( - plugin, - authProviderRepo: authProviderRepo, - ); + await Auth.addPlugin(plugin, authProviderRepo: authProviderRepo); } else if (plugin is AnalyticsPluginInterface) { - await Analytics.addPlugin( - plugin, - authProviderRepo: authProviderRepo, - ); + await Analytics.addPlugin(plugin, authProviderRepo: authProviderRepo); } else if (plugin is StoragePluginInterface) { - await Storage.addPlugin( - plugin, - authProviderRepo: authProviderRepo, - ); + await Storage.addPlugin(plugin, authProviderRepo: authProviderRepo); } else if (plugin is DataStorePluginInterface) { try { - await DataStore.addPlugin( - plugin, - authProviderRepo: authProviderRepo, - ); + await DataStore.addPlugin(plugin, authProviderRepo: authProviderRepo); } on AmplifyAlreadyConfiguredException { // A new plugin is added in native libraries during `addPlugin` // call for DataStore, which means during an app restart, this // method will throw an exception in android. We will ignore this // like other plugins and move on. Other exceptions fall through. } - Hub.addChannel( - HubChannel.DataStore, - plugin.streamController.stream, - ); + Hub.addChannel(HubChannel.DataStore, plugin.streamController.stream); } else if (plugin is APIPluginInterface) { await API.addPlugin(plugin, authProviderRepo: authProviderRepo); } else if (plugin is PushNotificationsPluginInterface) { diff --git a/packages/amplify/amplify_flutter/pubspec.yaml b/packages/amplify/amplify_flutter/pubspec.yaml index 27e22d428a..834725d470 100644 --- a/packages/amplify/amplify_flutter/pubspec.yaml +++ b/packages/amplify/amplify_flutter/pubspec.yaml @@ -1,13 +1,13 @@ name: amplify_flutter description: The top level Flutter package for the AWS Amplify libraries. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/amplify/amplify_flutter issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" # Helps `pana` since we do not use Flutter plugins for most platforms platforms: @@ -19,19 +19,19 @@ platforms: web: dependencies: - amplify_core: ">=2.6.1 <2.7.0" - amplify_secure_storage: ">=0.5.8 <0.6.0" - aws_common: ">=0.7.6 <0.8.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_secure_storage: ">=0.5.9 <0.6.0" + aws_common: ">=0.7.7 <0.8.0" collection: ^1.15.0 flutter: sdk: flutter - meta: ^1.7.0 + meta: ^1.16.0 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" amplify_test: path: ../../test/amplify_test build_runner: ^2.4.9 flutter_test: sdk: flutter - json_serializable: 6.8.0 + json_serializable: ^6.9.4 diff --git a/packages/amplify_core/CHANGELOG.md b/packages/amplify_core/CHANGELOG.md index 0a70cfd2e0..1eb33d7571 100644 --- a/packages/amplify_core/CHANGELOG.md +++ b/packages/amplify_core/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/amplify_core/doc/lib/auth.dart b/packages/amplify_core/doc/lib/auth.dart index d4f33ab4c7..75241d66c8 100644 --- a/packages/amplify_core/doc/lib/auth.dart +++ b/packages/amplify_core/doc/lib/auth.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Code excerpts for the Auth category. -library auth; +library; // #docregion imports import 'package:amplify_auth_cognito/amplify_auth_cognito.dart'; @@ -16,9 +16,7 @@ Future signInWithCognito( String username, String password, ) async { - final cognitoPlugin = Amplify.Auth.getPlugin( - AmplifyAuthCognito.pluginKey, - ); + final cognitoPlugin = Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey); return cognitoPlugin.signIn(username: username, password: password); } // #enddocregion get-plugin @@ -62,9 +60,7 @@ Future signUpUser({ final result = await Amplify.Auth.signUp( username: username, password: password, - options: SignUpOptions( - userAttributes: userAttributes, - ), + options: SignUpOptions(userAttributes: userAttributes), ); return _handleSignUpResult(result); } on AuthException catch (e) { @@ -93,9 +89,7 @@ Future confirmUser({ // #docregion resend-signup-code Future resendSignUpCode(String username) async { try { - final result = await Amplify.Auth.resendSignUpCode( - username: username, - ); + final result = await Amplify.Auth.resendSignUpCode(username: username); final codeDeliveryDetails = result.codeDeliveryDetails; _handleCodeDelivery(codeDeliveryDetails); } on AuthException catch (e) { @@ -162,9 +156,7 @@ Future _handleSignInResult(SignInResult result) async { // #enddocregion handle-confirm-signin-custom-challenge // #docregion handle-confirm-signin-reset-password case AuthSignInStep.resetPassword: - final resetResult = await Amplify.Auth.resetPassword( - username: username, - ); + final resetResult = await Amplify.Auth.resetPassword(username: username); await _handleResetPasswordResult(resetResult); // #enddocregion handle-confirm-signin-reset-password // #docregion handle-confirm-signin-confirm-signup @@ -226,9 +218,7 @@ Future _handleResetPasswordResult(ResetPasswordResult result) async { // #docregion confirm-signin Future confirmMfaUser(String mfaCode) async { try { - final result = await Amplify.Auth.confirmSignIn( - confirmationValue: mfaCode, - ); + final result = await Amplify.Auth.confirmSignIn(confirmationValue: mfaCode); return _handleSignInResult(result); } on AuthException catch (e) { safePrint('Error confirming MFA code: ${e.message}'); @@ -306,9 +296,7 @@ Future updatePassword({ // #docregion reset-password Future resetPassword(String username) async { try { - final result = await Amplify.Auth.resetPassword( - username: username, - ); + final result = await Amplify.Auth.resetPassword(username: username); return _handleResetPasswordResult(result); } on AuthException catch (e) { safePrint('Error resetting password: ${e.message}'); @@ -385,9 +373,7 @@ Future fetchCurrentUserAttributes() async { // #enddocregion fetch-user-attributes // #docregion handle-update-user-attribute -void _handleUpdateUserAttributeResult( - UpdateUserAttributeResult result, -) { +void _handleUpdateUserAttributeResult(UpdateUserAttributeResult result) { switch (result.nextStep.updateAttributeStep) { case AuthUpdateAttributeStep.confirmAttributeWithCode: final codeDeliveryDetails = result.nextStep.codeDeliveryDetails!; @@ -399,9 +385,7 @@ void _handleUpdateUserAttributeResult( // #enddocregion handle-update-user-attribute // #docregion update-user-attribute -Future updateUserEmail({ - required String newEmail, -}) async { +Future updateUserEmail({required String newEmail}) async { try { final result = await Amplify.Auth.updateUserAttribute( userAttributeKey: AuthUserAttributeKey.email, @@ -537,4 +521,5 @@ Future deleteUser() async { safePrint('Delete user failed with error: $e'); } } + // #enddocregion delete-user diff --git a/packages/amplify_core/doc/pubspec.yaml b/packages/amplify_core/doc/pubspec.yaml index 30ddaa4008..90eec22ba1 100644 --- a/packages/amplify_core/doc/pubspec.yaml +++ b/packages/amplify_core/doc/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues publish_to: none environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_analytics_pinpoint: any @@ -21,7 +21,7 @@ dependencies: sdk: flutter dev_dependencies: - amplify_lints: ^2.0.0 + amplify_lints: ^3.1.0 build_runner: ^2.4.9 code_excerpter: git: diff --git a/packages/amplify_core/lib/amplify_core.dart b/packages/amplify_core/lib/amplify_core.dart index 1fed515499..00dc50d077 100644 --- a/packages/amplify_core/lib/amplify_core.dart +++ b/packages/amplify_core/lib/amplify_core.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_core; +library; import 'package:amplify_core/src/amplify_class.dart'; diff --git a/packages/amplify_core/lib/src/amplify_class.dart b/packages/amplify_core/lib/src/amplify_class.dart index 83b5d30c93..3eb4a8991b 100644 --- a/packages/amplify_core/lib/src/amplify_class.dart +++ b/packages/amplify_core/lib/src/amplify_class.dart @@ -190,10 +190,11 @@ abstract class AmplifyClass { Category.pushNotifications: Notifications.Push, Category.storage: Storage, }; - final sortedCategories = topologicalSort( - categories.keys, - (category) => categories[category]!.categoryDependencies, - ).reversed; + final sortedCategories = + topologicalSort( + categories.keys, + (category) => categories[category]!.categoryDependencies, + ).reversed; for (final category in sortedCategories) { final plugins = categories[category]!.plugins; await Future.wait( diff --git a/packages/amplify_core/lib/src/amplify_class_impl.dart b/packages/amplify_core/lib/src/amplify_class_impl.dart index 236e63c07d..c7760f842e 100644 --- a/packages/amplify_core/lib/src/amplify_class_impl.dart +++ b/packages/amplify_core/lib/src/amplify_class_impl.dart @@ -33,10 +33,7 @@ class AmplifyClassImpl extends AmplifyClass { authProviderRepo: authProviderRepo, ); case Category.api: - return API.addPlugin( - plugin.cast(), - authProviderRepo: authProviderRepo, - ); + return API.addPlugin(plugin.cast(), authProviderRepo: authProviderRepo); case Category.dataStore: return DataStore.addPlugin( plugin.cast(), diff --git a/packages/amplify_core/lib/src/category/amplify_analytics_category.dart b/packages/amplify_core/lib/src/category/amplify_analytics_category.dart index 06e7a8f594..2ba4fb1e6e 100644 --- a/packages/amplify_core/lib/src/category/amplify_analytics_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_analytics_category.dart @@ -16,59 +16,56 @@ class AnalyticsCategory extends AmplifyCategory { /// Save an [event] to be sent in the next batch to the analytics service /// {@endtemplate} Future recordEvent({required AnalyticsEvent event}) => identifyCall( - AnalyticsCategoryMethod.recordEvent, - () => defaultPlugin.recordEvent(event: event), - ); + AnalyticsCategoryMethod.recordEvent, + () => defaultPlugin.recordEvent(event: event), + ); /// {@template amplify_core.amplify_analytics_category.flush_events} /// Immediately send all saved events to the analytics service /// {@endtemplate} Future flushEvents() => identifyCall( - AnalyticsCategoryMethod.flushEvents, - () => defaultPlugin.flushEvents(), - ); + AnalyticsCategoryMethod.flushEvents, + () => defaultPlugin.flushEvents(), + ); /// {@template amplify_core.amplify_analytics_category.register_global_properties} /// Register fields of [globalProperties] to be sent with all future events. /// {@endtemplate} Future registerGlobalProperties({ required CustomProperties globalProperties, - }) => - identifyCall( - AnalyticsCategoryMethod.registerGlobalProperties, - () => defaultPlugin.registerGlobalProperties( - globalProperties: globalProperties, - ), - ); + }) => identifyCall( + AnalyticsCategoryMethod.registerGlobalProperties, + () => defaultPlugin.registerGlobalProperties( + globalProperties: globalProperties, + ), + ); /// {@template amplify_core.amplify_analytics_category.unregister_global_properties} /// Remove fields by their [propertyNames] to stop being sent with all future events /// {@endtemplate} Future unregisterGlobalProperties({ List propertyNames = const [], - }) => - identifyCall( - AnalyticsCategoryMethod.unregisterGlobalProperties, - () => defaultPlugin.unregisterGlobalProperties( - propertyNames: propertyNames, - ), - ); + }) => identifyCall( + AnalyticsCategoryMethod.unregisterGlobalProperties, + () => + defaultPlugin.unregisterGlobalProperties(propertyNames: propertyNames), + ); /// {@template amplify_core.amplify_analytics_category.enable} /// Start all automatic event tracking of this plugin /// {@endtemplate} Future enable() => identifyCall( - AnalyticsCategoryMethod.enable, - () => defaultPlugin.enable(), - ); + AnalyticsCategoryMethod.enable, + () => defaultPlugin.enable(), + ); /// {@template amplify_core.amplify_analytics_category.disable} /// Stop all automatic event tracking of this plugin /// {@endtemplate} Future disable() => identifyCall( - AnalyticsCategoryMethod.disable, - () => defaultPlugin.disable(), - ); + AnalyticsCategoryMethod.disable, + () => defaultPlugin.disable(), + ); /// {@template amplify_core.amplify_analytics_category.identify_user} /// Store a [userId] with [userProfile] to be associated with current device @@ -76,12 +73,8 @@ class AnalyticsCategory extends AmplifyCategory { Future identifyUser({ required String userId, UserProfile? userProfile, - }) => - identifyCall( - AnalyticsCategoryMethod.identifyUser, - () => defaultPlugin.identifyUser( - userId: userId, - userProfile: userProfile, - ), - ); + }) => identifyCall( + AnalyticsCategoryMethod.identifyUser, + () => defaultPlugin.identifyUser(userId: userId, userProfile: userProfile), + ); } diff --git a/packages/amplify_core/lib/src/category/amplify_api_category.dart b/packages/amplify_core/lib/src/category/amplify_api_category.dart index bb4bda9392..7bc66abce2 100644 --- a/packages/amplify_core/lib/src/category/amplify_api_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_api_category.dart @@ -43,14 +43,10 @@ class APICategory extends AmplifyCategory { Stream> subscribe( GraphQLRequest request, { void Function()? onEstablished, - }) => - identifyCall( - ApiCategoryMethod.subscribe, - () => defaultPlugin.subscribe( - request, - onEstablished: onEstablished, - ), - ); + }) => identifyCall( + ApiCategoryMethod.subscribe, + () => defaultPlugin.subscribe(request, onEstablished: onEstablished), + ); // ====== RestAPI ====== @@ -74,17 +70,16 @@ class APICategory extends AmplifyCategory { HttpPayload? body, Map? queryParameters, String? apiName, - }) => - identifyCall( - ApiCategoryMethod.delete, - () => defaultPlugin.delete( - path, - headers: headers, - body: body, - apiName: apiName, - queryParameters: queryParameters, - ), - ); + }) => identifyCall( + ApiCategoryMethod.delete, + () => defaultPlugin.delete( + path, + headers: headers, + body: body, + apiName: apiName, + queryParameters: queryParameters, + ), + ); /// Sends an HTTP GET request to the REST API endpoint. /// @@ -103,16 +98,15 @@ class APICategory extends AmplifyCategory { Map? headers, Map? queryParameters, String? apiName, - }) => - identifyCall( - ApiCategoryMethod.get, - () => defaultPlugin.get( - path, - headers: headers, - apiName: apiName, - queryParameters: queryParameters, - ), - ); + }) => identifyCall( + ApiCategoryMethod.get, + () => defaultPlugin.get( + path, + headers: headers, + apiName: apiName, + queryParameters: queryParameters, + ), + ); /// Sends an HTTP HEAD request to the REST API endpoint. /// @@ -128,16 +122,15 @@ class APICategory extends AmplifyCategory { Map? headers, Map? queryParameters, String? apiName, - }) => - identifyCall( - ApiCategoryMethod.head, - () => defaultPlugin.head( - path, - headers: headers, - apiName: apiName, - queryParameters: queryParameters, - ), - ); + }) => identifyCall( + ApiCategoryMethod.head, + () => defaultPlugin.head( + path, + headers: headers, + apiName: apiName, + queryParameters: queryParameters, + ), + ); /// Sends an HTTP PATCH request to the REST API endpoint. /// @@ -159,17 +152,16 @@ class APICategory extends AmplifyCategory { HttpPayload? body, Map? queryParameters, String? apiName, - }) => - identifyCall( - ApiCategoryMethod.patch, - () => defaultPlugin.patch( - path, - headers: headers, - body: body, - apiName: apiName, - queryParameters: queryParameters, - ), - ); + }) => identifyCall( + ApiCategoryMethod.patch, + () => defaultPlugin.patch( + path, + headers: headers, + body: body, + apiName: apiName, + queryParameters: queryParameters, + ), + ); /// Sends an HTTP POST request to the REST API endpoint. /// @@ -191,17 +183,16 @@ class APICategory extends AmplifyCategory { HttpPayload? body, Map? queryParameters, String? apiName, - }) => - identifyCall( - ApiCategoryMethod.post, - () => defaultPlugin.post( - path, - headers: headers, - body: body, - apiName: apiName, - queryParameters: queryParameters, - ), - ); + }) => identifyCall( + ApiCategoryMethod.post, + () => defaultPlugin.post( + path, + headers: headers, + body: body, + apiName: apiName, + queryParameters: queryParameters, + ), + ); /// Sends an HTTP PUT request to the REST API endpoint. /// @@ -223,15 +214,14 @@ class APICategory extends AmplifyCategory { HttpPayload? body, Map? queryParameters, String? apiName, - }) => - identifyCall( - ApiCategoryMethod.put, - () => defaultPlugin.put( - path, - headers: headers, - body: body, - apiName: apiName, - queryParameters: queryParameters, - ), - ); + }) => identifyCall( + ApiCategoryMethod.put, + () => defaultPlugin.put( + path, + headers: headers, + body: body, + apiName: apiName, + queryParameters: queryParameters, + ), + ); } diff --git a/packages/amplify_core/lib/src/category/amplify_auth_category.dart b/packages/amplify_core/lib/src/category/amplify_auth_category.dart index bf3bfd27ff..e94c40384b 100644 --- a/packages/amplify_core/lib/src/category/amplify_auth_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_auth_category.dart @@ -45,11 +45,11 @@ class AuthCategory extends AmplifyCategory { AuthPluginKey pluginKey, ) => plugins.singleWhere( - (p) => p is Plugin, - orElse: () => throw PluginError( - 'No plugin registered for $pluginKey', - ), - ) as Plugin; + (p) => p is Plugin, + orElse: + () => throw PluginError('No plugin registered for $pluginKey'), + ) + as Plugin; /// {@template amplify_core.amplify_auth_category.sign_up} /// Create a new user with the given [username] and [password]. @@ -132,15 +132,14 @@ class AuthCategory extends AmplifyCategory { required String username, required String password, SignUpOptions? options, - }) => - identifyCall( - AuthCategoryMethod.signUp, - () => defaultPlugin.signUp( - username: username, - password: password, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.signUp, + () => defaultPlugin.signUp( + username: username, + password: password, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.confirm_sign_up} /// Confirm the current sign up for [username] with the [confirmationCode] @@ -211,15 +210,14 @@ class AuthCategory extends AmplifyCategory { required String username, required String confirmationCode, ConfirmSignUpOptions? options, - }) => - identifyCall( - AuthCategoryMethod.confirmSignUp, - () => defaultPlugin.confirmSignUp( - username: username, - confirmationCode: confirmationCode, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.confirmSignUp, + () => defaultPlugin.confirmSignUp( + username: username, + confirmationCode: confirmationCode, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.resend_sign_up_code} /// Resends the code that is used to confirm the user's account after sign up. @@ -270,14 +268,10 @@ class AuthCategory extends AmplifyCategory { Future resendSignUpCode({ required String username, ResendSignUpCodeOptions? options, - }) => - identifyCall( - AuthCategoryMethod.resendSignUpCode, - () => defaultPlugin.resendSignUpCode( - username: username, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.resendSignUpCode, + () => defaultPlugin.resendSignUpCode(username: username, options: options), + ); /// {@template amplify_core.amplify_auth_category.sign_in} /// Initiate sign in for user with [username] and optional [password]. @@ -535,15 +529,14 @@ class AuthCategory extends AmplifyCategory { required String username, String? password, SignInOptions? options, - }) => - identifyCall( - AuthCategoryMethod.signIn, - () => defaultPlugin.signIn( - username: username, - password: password, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.signIn, + () => defaultPlugin.signIn( + username: username, + password: password, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.confirm_sign_in} /// Confirm the current sign in with the [confirmationValue] provided by the @@ -593,14 +586,13 @@ class AuthCategory extends AmplifyCategory { Future confirmSignIn({ required String confirmationValue, ConfirmSignInOptions? options, - }) => - identifyCall( - AuthCategoryMethod.confirmSignIn, - () => defaultPlugin.confirmSignIn( - confirmationValue: confirmationValue, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.confirmSignIn, + () => defaultPlugin.confirmSignIn( + confirmationValue: confirmationValue, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.sign_out} /// Sign the user out of the current device. @@ -661,13 +653,10 @@ class AuthCategory extends AmplifyCategory { /// } /// ``` /// {@endtemplate} - Future signOut({ - SignOutOptions? options, - }) => - identifyCall( - AuthCategoryMethod.signOut, - () => defaultPlugin.signOut(options: options), - ); + Future signOut({SignOutOptions? options}) => identifyCall( + AuthCategoryMethod.signOut, + () => defaultPlugin.signOut(options: options), + ); /// {@template amplify_core.amplify_auth_category.update_password} /// Update the password of the current user. @@ -709,15 +698,14 @@ class AuthCategory extends AmplifyCategory { required String oldPassword, required String newPassword, UpdatePasswordOptions? options, - }) => - identifyCall( - AuthCategoryMethod.updatePassword, - () => defaultPlugin.updatePassword( - oldPassword: oldPassword, - newPassword: newPassword, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.updatePassword, + () => defaultPlugin.updatePassword( + oldPassword: oldPassword, + newPassword: newPassword, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.reset_password} /// Initiates a password reset for the user with the given username. @@ -807,14 +795,10 @@ class AuthCategory extends AmplifyCategory { Future resetPassword({ required String username, ResetPasswordOptions? options, - }) => - identifyCall( - AuthCategoryMethod.resetPassword, - () => defaultPlugin.resetPassword( - username: username, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.resetPassword, + () => defaultPlugin.resetPassword(username: username, options: options), + ); /// {@template amplify_core.amplify_auth_category.confirm_reset_password} /// Completes the password reset process given a username, new password, @@ -863,16 +847,15 @@ class AuthCategory extends AmplifyCategory { required String newPassword, required String confirmationCode, ConfirmResetPasswordOptions? options, - }) => - identifyCall( - AuthCategoryMethod.confirmResetPassword, - () => defaultPlugin.confirmResetPassword( - username: username, - newPassword: newPassword, - confirmationCode: confirmationCode, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.confirmResetPassword, + () => defaultPlugin.confirmResetPassword( + username: username, + newPassword: newPassword, + confirmationCode: confirmationCode, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.get_current_user} /// Retrieves the current active user. @@ -904,9 +887,7 @@ class AuthCategory extends AmplifyCategory { /// } /// ``` /// {@endtemplate} - Future getCurrentUser({ - GetCurrentUserOptions? options, - }) => + Future getCurrentUser({GetCurrentUserOptions? options}) => identifyCall( AuthCategoryMethod.getCurrentUser, () => defaultPlugin.getCurrentUser(options: options), @@ -945,11 +926,10 @@ class AuthCategory extends AmplifyCategory { /// {@endtemplate} Future> fetchUserAttributes({ FetchUserAttributesOptions? options, - }) => - identifyCall( - AuthCategoryMethod.fetchUserAttributes, - () => defaultPlugin.fetchUserAttributes(options: options), - ); + }) => identifyCall( + AuthCategoryMethod.fetchUserAttributes, + () => defaultPlugin.fetchUserAttributes(options: options), + ); /// {@template amplify_core.amplify_auth_category.fetch_auth_session} /// Fetch the current auth session. @@ -999,9 +979,7 @@ class AuthCategory extends AmplifyCategory { /// } /// ``` /// {@endtemplate} - Future fetchAuthSession({ - FetchAuthSessionOptions? options, - }) => + Future fetchAuthSession({FetchAuthSessionOptions? options}) => identifyCall( AuthCategoryMethod.fetchAuthSession, () => defaultPlugin.fetchAuthSession(options: options), @@ -1046,14 +1024,10 @@ class AuthCategory extends AmplifyCategory { Future signInWithWebUI({ AuthProvider? provider, SignInWithWebUIOptions? options, - }) => - identifyCall( - AuthCategoryMethod.signInWithWebUI, - () => defaultPlugin.signInWithWebUI( - provider: provider, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.signInWithWebUI, + () => defaultPlugin.signInWithWebUI(provider: provider, options: options), + ); /// {@template amplify_core.amplify_auth_category.update_user_attribute} /// Updates a single user attribute. @@ -1115,15 +1089,14 @@ class AuthCategory extends AmplifyCategory { required AuthUserAttributeKey userAttributeKey, required String value, UpdateUserAttributeOptions? options, - }) => - identifyCall( - AuthCategoryMethod.updateUserAttribute, - () => defaultPlugin.updateUserAttribute( - userAttributeKey: userAttributeKey, - value: value, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.updateUserAttribute, + () => defaultPlugin.updateUserAttribute( + userAttributeKey: userAttributeKey, + value: value, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.update_user_attributes} /// Updates multiple user attributes at once. @@ -1175,17 +1148,16 @@ class AuthCategory extends AmplifyCategory { /// ``` /// {@endtemplate} Future> - updateUserAttributes({ + updateUserAttributes({ required List attributes, UpdateUserAttributesOptions? options, - }) => - identifyCall( - AuthCategoryMethod.updateUserAttributes, - () => defaultPlugin.updateUserAttributes( - attributes: attributes, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.updateUserAttributes, + () => defaultPlugin.updateUserAttributes( + attributes: attributes, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.confirm_user_attribute} /// Confirms a user attribute update initiated with either [updateUserAttribute] @@ -1223,15 +1195,14 @@ class AuthCategory extends AmplifyCategory { required AuthUserAttributeKey userAttributeKey, required String confirmationCode, ConfirmUserAttributeOptions? options, - }) => - identifyCall( - AuthCategoryMethod.confirmUserAttribute, - () => defaultPlugin.confirmUserAttribute( - userAttributeKey: userAttributeKey, - confirmationCode: confirmationCode, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.confirmUserAttribute, + () => defaultPlugin.confirmUserAttribute( + userAttributeKey: userAttributeKey, + confirmationCode: confirmationCode, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.send_attribute_verification_code} /// Sends a confirmation code for the existing value for the given @@ -1280,17 +1251,16 @@ class AuthCategory extends AmplifyCategory { /// ``` /// {@endtemplate} Future - sendUserAttributeVerificationCode({ + sendUserAttributeVerificationCode({ required AuthUserAttributeKey userAttributeKey, SendUserAttributeVerificationCodeOptions? options, - }) => - identifyCall( - AuthCategoryMethod.sendUserAttributeVerificationCode, - () => defaultPlugin.sendUserAttributeVerificationCode( - userAttributeKey: userAttributeKey, - options: options, - ), - ); + }) => identifyCall( + AuthCategoryMethod.sendUserAttributeVerificationCode, + () => defaultPlugin.sendUserAttributeVerificationCode( + userAttributeKey: userAttributeKey, + options: options, + ), + ); /// {@template amplify_core.amplify_auth_category.set_up_totp} /// Initiates setup of a time-based one-time passcode (TOTP) MFA method for the @@ -1304,9 +1274,7 @@ class AuthCategory extends AmplifyCategory { /// complete on the user's end, call [verifyTotpSetup] with a one-time code to /// complete registration. /// {@endtemplate} - Future setUpTotp({ - TotpSetupOptions? options, - }) => + Future setUpTotp({TotpSetupOptions? options}) => defaultPlugin.setUpTotp(options: options); /// {@template amplify_core.amplify_auth_category.verify_totp_setup} @@ -1318,11 +1286,7 @@ class AuthCategory extends AmplifyCategory { Future verifyTotpSetup( String totpCode, { VerifyTotpSetupOptions? options, - }) => - defaultPlugin.verifyTotpSetup( - totpCode, - options: options, - ); + }) => defaultPlugin.verifyTotpSetup(totpCode, options: options); /// {@template amplify_core.amplify_auth_category.remember_device} /// Remembers the current device. @@ -1351,9 +1315,9 @@ class AuthCategory extends AmplifyCategory { /// ``` /// {@endtemplate} Future rememberDevice() => identifyCall( - AuthCategoryMethod.rememberDevice, - () => defaultPlugin.rememberDevice(), - ); + AuthCategoryMethod.rememberDevice, + () => defaultPlugin.rememberDevice(), + ); /// {@template amplify_core.amplify_auth_category.fetch_current_device} /// Retrieves the current device. @@ -1382,9 +1346,9 @@ class AuthCategory extends AmplifyCategory { /// ``` /// {@endtemplate} Future fetchCurrentDevice() => identifyCall( - AuthCategoryMethod.fetchCurrentDevice, - () => defaultPlugin.fetchCurrentDevice(), - ); + AuthCategoryMethod.fetchCurrentDevice, + () => defaultPlugin.fetchCurrentDevice(), + ); /// {@template amplify_core.amplify_auth_category.forget_device} /// Forgets the current device. @@ -1428,9 +1392,9 @@ class AuthCategory extends AmplifyCategory { /// ``` /// {@endtemplate} Future forgetDevice([AuthDevice? device]) => identifyCall( - AuthCategoryMethod.forgetDevice, - () => defaultPlugin.forgetDevice(device), - ); + AuthCategoryMethod.forgetDevice, + () => defaultPlugin.forgetDevice(device), + ); /// {@template amplify_core.amplify_auth_category.fetch_devices} /// Retrieves all tracked devices for the current user. @@ -1461,9 +1425,9 @@ class AuthCategory extends AmplifyCategory { /// ``` /// {@endtemplate} Future> fetchDevices() => identifyCall( - AuthCategoryMethod.fetchDevices, - () => defaultPlugin.fetchDevices(), - ); + AuthCategoryMethod.fetchDevices, + () => defaultPlugin.fetchDevices(), + ); /// {@template amplify_core.amplify_auth_category.delete_user} /// Deletes the current authenticated user. @@ -1492,7 +1456,7 @@ class AuthCategory extends AmplifyCategory { /// ``` /// {@endtemplate} Future deleteUser() => identifyCall( - AuthCategoryMethod.deleteUser, - () => defaultPlugin.deleteUser(), - ); + AuthCategoryMethod.deleteUser, + () => defaultPlugin.deleteUser(), + ); } diff --git a/packages/amplify_core/lib/src/category/amplify_categories.dart b/packages/amplify_core/lib/src/category/amplify_categories.dart index a881b0f0c5..4c6170b846 100644 --- a/packages/amplify_core/lib/src/category/amplify_categories.dart +++ b/packages/amplify_core/lib/src/category/amplify_categories.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_interface; +library; import 'dart:async'; @@ -25,9 +25,9 @@ String _recoverySuggestionPluginNotAdded(String pluginName) => 'Add $pluginName plugin to Amplify and call configure before calling $pluginName related APIs'; PluginError _pluginNotAddedException(String pluginName) => PluginError( - _errorMsgPluginNotAdded(pluginName), - recoverySuggestion: _recoverySuggestionPluginNotAdded(pluginName), - ); + _errorMsgPluginNotAdded(pluginName), + recoverySuggestion: _recoverySuggestionPluginNotAdded(pluginName), +); /// Amplify category types. enum Category { @@ -53,14 +53,14 @@ enum Category { pushNotifications; String get name => switch (this) { - Category.analytics => 'Analytics', - Category.api => 'API', - Category.auth => 'Auth', - Category.dataStore => 'DataStore', - Category.hub => 'Hub', - Category.storage => 'Storage', - Category.pushNotifications => 'PushNotifications', - }; + Category.analytics => 'Analytics', + Category.api => 'API', + Category.auth => 'Auth', + Category.dataStore => 'DataStore', + Category.hub => 'Hub', + Category.storage => 'Storage', + Category.pushNotifications => 'PushNotifications', + }; } /// Base functionality for Amplify categories. @@ -93,9 +93,7 @@ abstract class AmplifyCategory

{ required AmplifyAuthProviderRepository authProviderRepo, }) async { try { - await plugin.addPlugin( - authProviderRepo: authProviderRepo, - ); + await plugin.addPlugin(authProviderRepo: authProviderRepo); _plugins.add(plugin); } on AmplifyAlreadyConfiguredException { _plugins.add(plugin); diff --git a/packages/amplify_core/lib/src/category/amplify_datastore_category.dart b/packages/amplify_core/lib/src/category/amplify_datastore_category.dart index 1041db75ec..1ffde55e37 100644 --- a/packages/amplify_core/lib/src/category/amplify_datastore_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_datastore_category.dart @@ -38,7 +38,7 @@ class DataStoreCategory extends AmplifyCategory { throw AmplifyException.fromMap( Map.from( // ignore: avoid_dynamic_calls - (e as dynamic /* PlatformException */).details as Map, + (e as dynamic /* PlatformException */ ).details as Map, ), ); } on NoSuchMethodError { @@ -73,11 +73,11 @@ class DataStoreCategory extends AmplifyCategory { }) { return plugins.length == 1 ? plugins[0].query( - modelType, - where: where, - pagination: pagination, - sortBy: sortBy, - ) + modelType, + where: where, + pagination: pagination, + sortBy: sortBy, + ) : throw _pluginNotAddedException('DataStore'); } @@ -156,11 +156,11 @@ class DataStoreCategory extends AmplifyCategory { }) { return plugins.length == 1 ? plugins[0].observeQuery( - modelType, - where: where, - sortBy: sortBy, - throttleOptions: throttleOptions, - ) + modelType, + where: where, + sortBy: sortBy, + throttleOptions: throttleOptions, + ) : throw _pluginNotAddedException('DataStore'); } } diff --git a/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart b/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart index ede1168dcd..553f24234a 100644 --- a/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_push_notifications_category.dart @@ -37,12 +37,11 @@ class PushNotificationsCategory bool alert = true, bool badge = true, bool sound = true, - }) => - defaultPlugin.requestPermissions( - alert: alert, - badge: badge, - sound: sound, - ); + }) => defaultPlugin.requestPermissions( + alert: alert, + badge: badge, + sound: sound, + ); /// {@template amplify_core.amplify_push_notifications_category.on_token_received} /// Listen to new Device tokens generated by FCM and APNS @@ -95,14 +94,10 @@ class PushNotificationsCategory Future identifyUser({ required String userId, UserProfile? userProfile, - }) => - identifyCall( - PushNotificationsCategoryMethod.identifyUser, - () => defaultPlugin.identifyUser( - userId: userId, - userProfile: userProfile, - ), - ); + }) => identifyCall( + PushNotificationsCategoryMethod.identifyUser, + () => defaultPlugin.identifyUser(userId: userId, userProfile: userProfile), + ); /// {@template amplify_core.amplify_push_notifications_category.get_badge_count} /// Returns the current number displayed in the app icon badge. diff --git a/packages/amplify_core/lib/src/category/amplify_storage_category.dart b/packages/amplify_core/lib/src/category/amplify_storage_category.dart index 416446d12e..623ffbc89b 100644 --- a/packages/amplify_core/lib/src/category/amplify_storage_category.dart +++ b/packages/amplify_core/lib/src/category/amplify_storage_category.dart @@ -23,11 +23,11 @@ class StorageCategory extends AmplifyCategory { StoragePluginKey

pluginKey, ) => plugins.singleWhere( - (p) => p is P, - orElse: () => throw PluginError( - 'No plugin registered for $pluginKey', - ), - ) as P; + (p) => p is P, + orElse: + () => throw PluginError('No plugin registered for $pluginKey'), + ) + as P; /// {@template amplify_core.amplify_storage_category.list} /// Lists objects under the [path] with optional [StorageListOptions] and @@ -39,10 +39,7 @@ class StorageCategory extends AmplifyCategory { }) { return identifyCall( StorageCategoryMethod.list, - () => defaultPlugin.list( - path: path, - options: options, - ), + () => defaultPlugin.list(path: path, options: options), ); } @@ -60,10 +57,7 @@ class StorageCategory extends AmplifyCategory { }) { return identifyCall( StorageCategoryMethod.getProperties, - () => defaultPlugin.getProperties( - path: path, - options: options, - ), + () => defaultPlugin.getProperties(path: path, options: options), ); } @@ -80,10 +74,7 @@ class StorageCategory extends AmplifyCategory { }) { return identifyCall( StorageCategoryMethod.getUrl, - () => defaultPlugin.getUrl( - path: path, - options: options, - ), + () => defaultPlugin.getUrl(path: path, options: options), ); } @@ -228,10 +219,7 @@ class StorageCategory extends AmplifyCategory { }) { return identifyCall( StorageCategoryMethod.removeMany, - () => defaultPlugin.removeMany( - paths: paths, - options: options, - ), + () => defaultPlugin.removeMany(paths: paths, options: options), ); } } diff --git a/packages/amplify_core/lib/src/config/amplify_config.dart b/packages/amplify_core/lib/src/config/amplify_config.dart index df0ab58bd2..2df84a8d6d 100644 --- a/packages/amplify_core/lib/src/config/amplify_config.dart +++ b/packages/amplify_core/lib/src/config/amplify_config.dart @@ -48,14 +48,14 @@ class AmplifyConfig with AWSEquatable, AWSSerializable { @override List get props => [ - userAgent, - version, - api, - analytics, - auth, - notifications, - storage, - ]; + userAgent, + version, + api, + analytics, + auth, + notifications, + storage, + ]; AmplifyConfig copyWith({ ApiConfig? api, diff --git a/packages/amplify_core/lib/src/config/amplify_config.g.dart b/packages/amplify_core/lib/src/config/amplify_config.g.dart index 73b0b05295..d451609c1a 100644 --- a/packages/amplify_core/lib/src/config/amplify_config.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_config.g.dart @@ -8,62 +8,62 @@ part of 'amplify_config.dart'; // JsonSerializableGenerator // ************************************************************************** -AmplifyConfig _$AmplifyConfigFromJson(Map json) => - $checkedCreate( - 'AmplifyConfig', - json, - ($checkedConvert) { - final val = AmplifyConfig( - userAgent: $checkedConvert( - 'UserAgent', (v) => v as String? ?? 'aws-amplify-cli/2.0'), - version: $checkedConvert('Version', (v) => v as String? ?? '1.0'), - api: $checkedConvert( - 'api', - (v) => v == null - ? null - : ApiConfig.fromJson(v as Map)), - analytics: $checkedConvert( - 'analytics', - (v) => v == null - ? null - : AnalyticsConfig.fromJson(v as Map)), - auth: $checkedConvert( - 'auth', - (v) => v == null - ? null - : AuthConfig.fromJson(v as Map)), - notifications: $checkedConvert( - 'notifications', - (v) => v == null - ? null - : NotificationsConfig.fromJson(v as Map)), - storage: $checkedConvert( - 'storage', - (v) => v == null - ? null - : StorageConfig.fromJson(v as Map)), - ); - return val; - }, - fieldKeyMap: const {'userAgent': 'UserAgent', 'version': 'Version'}, +AmplifyConfig _$AmplifyConfigFromJson( + Map json, +) => $checkedCreate( + 'AmplifyConfig', + json, + ($checkedConvert) { + final val = AmplifyConfig( + userAgent: $checkedConvert( + 'UserAgent', + (v) => v as String? ?? 'aws-amplify-cli/2.0', + ), + version: $checkedConvert('Version', (v) => v as String? ?? '1.0'), + api: $checkedConvert( + 'api', + (v) => v == null ? null : ApiConfig.fromJson(v as Map), + ), + analytics: $checkedConvert( + 'analytics', + (v) => + v == null + ? null + : AnalyticsConfig.fromJson(v as Map), + ), + auth: $checkedConvert( + 'auth', + (v) => + v == null ? null : AuthConfig.fromJson(v as Map), + ), + notifications: $checkedConvert( + 'notifications', + (v) => + v == null + ? null + : NotificationsConfig.fromJson(v as Map), + ), + storage: $checkedConvert( + 'storage', + (v) => + v == null + ? null + : StorageConfig.fromJson(v as Map), + ), ); + return val; + }, + fieldKeyMap: const {'userAgent': 'UserAgent', 'version': 'Version'}, +); -Map _$AmplifyConfigToJson(AmplifyConfig instance) { - final val = { - 'UserAgent': instance.userAgent, - 'Version': instance.version, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('api', instance.api?.toJson()); - writeNotNull('analytics', instance.analytics?.toJson()); - writeNotNull('auth', instance.auth?.toJson()); - writeNotNull('notifications', instance.notifications?.toJson()); - writeNotNull('storage', instance.storage?.toJson()); - return val; -} +Map _$AmplifyConfigToJson(AmplifyConfig instance) => + { + 'UserAgent': instance.userAgent, + 'Version': instance.version, + if (instance.api?.toJson() case final value?) 'api': value, + if (instance.analytics?.toJson() case final value?) 'analytics': value, + if (instance.auth?.toJson() case final value?) 'auth': value, + if (instance.notifications?.toJson() case final value?) + 'notifications': value, + if (instance.storage?.toJson() case final value?) 'storage': value, + }; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.dart b/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.dart index 28105b039b..3675639966 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.dart @@ -71,16 +71,16 @@ class AmplifyOutputs @override List get props => [ - schema, - version, - analytics, - auth, - data, - restApi, - notifications, - storage, - custom, - ]; + schema, + version, + analytics, + auth, + data, + restApi, + notifications, + storage, + custom, + ]; @override String get runtimeTypeName => 'AmplifyOutputs'; @@ -103,9 +103,7 @@ const _dataPluginName = 'data'; /// a single data object, but Amplify Flutter supports more than 1. Map? _dataFromJson(Map? object) { if (object == null) return null; - return { - _dataPluginName: DataOutputs.fromJson(object), - }; + return {_dataPluginName: DataOutputs.fromJson(object)}; } /// Converts a map of [DataOutputs] to a single data json object. diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.g.dart index 3ac604d93d..d43e9d0e51 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/amplify_outputs.g.dart @@ -8,65 +8,60 @@ part of 'amplify_outputs.dart'; // JsonSerializableGenerator // ************************************************************************** -AmplifyOutputs _$AmplifyOutputsFromJson(Map json) => - $checkedCreate( - 'AmplifyOutputs', - json, - ($checkedConvert) { - final val = AmplifyOutputs( - schema: $checkedConvert('schema', (v) => v as String?), - version: $checkedConvert('version', (v) => v as String), - analytics: $checkedConvert( - 'analytics', - (v) => v == null - ? null - : AnalyticsOutputs.fromJson(v as Map)), - auth: $checkedConvert( - 'auth', - (v) => v == null - ? null - : AuthOutputs.fromJson(v as Map)), - data: $checkedConvert( - 'data', (v) => _dataFromJson(v as Map?)), - restApi: $checkedConvert( - 'rest_api', - (v) => (v as Map?)?.map( - (k, e) => MapEntry( - k, RestApiOutputs.fromJson(e as Map)), - )), - notifications: $checkedConvert( - 'notifications', - (v) => v == null - ? null - : NotificationsOutputs.fromJson(v as Map)), - storage: $checkedConvert( - 'storage', - (v) => v == null - ? null - : StorageOutputs.fromJson(v as Map)), - custom: $checkedConvert('custom', (v) => v as Map?), - ); - return val; - }, - fieldKeyMap: const {'restApi': 'rest_api'}, - ); - -Map _$AmplifyOutputsToJson(AmplifyOutputs instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('schema', instance.schema); - val['version'] = instance.version; - writeNotNull('analytics', instance.analytics?.toJson()); - writeNotNull('auth', instance.auth?.toJson()); - writeNotNull('data', _dataToJson(instance.data)); - writeNotNull('notifications', instance.notifications?.toJson()); - writeNotNull('storage', instance.storage?.toJson()); - writeNotNull('custom', instance.custom); +AmplifyOutputs _$AmplifyOutputsFromJson( + Map json, +) => $checkedCreate('AmplifyOutputs', json, ($checkedConvert) { + final val = AmplifyOutputs( + schema: $checkedConvert('schema', (v) => v as String?), + version: $checkedConvert('version', (v) => v as String), + analytics: $checkedConvert( + 'analytics', + (v) => + v == null + ? null + : AnalyticsOutputs.fromJson(v as Map), + ), + auth: $checkedConvert( + 'auth', + (v) => v == null ? null : AuthOutputs.fromJson(v as Map), + ), + data: $checkedConvert( + 'data', + (v) => _dataFromJson(v as Map?), + ), + restApi: $checkedConvert( + 'rest_api', + (v) => (v as Map?)?.map( + (k, e) => + MapEntry(k, RestApiOutputs.fromJson(e as Map)), + ), + ), + notifications: $checkedConvert( + 'notifications', + (v) => + v == null + ? null + : NotificationsOutputs.fromJson(v as Map), + ), + storage: $checkedConvert( + 'storage', + (v) => + v == null ? null : StorageOutputs.fromJson(v as Map), + ), + custom: $checkedConvert('custom', (v) => v as Map?), + ); return val; -} +}, fieldKeyMap: const {'restApi': 'rest_api'}); + +Map _$AmplifyOutputsToJson(AmplifyOutputs instance) => + { + if (instance.schema case final value?) 'schema': value, + 'version': instance.version, + if (instance.analytics?.toJson() case final value?) 'analytics': value, + if (instance.auth?.toJson() case final value?) 'auth': value, + if (_dataToJson(instance.data) case final value?) 'data': value, + if (instance.notifications?.toJson() case final value?) + 'notifications': value, + if (instance.storage?.toJson() case final value?) 'storage': value, + if (instance.custom case final value?) 'custom': value, + }; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/analytics/amazon_pinpoint_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/analytics/amazon_pinpoint_outputs.g.dart index e995e1c3a2..dfe6445c5b 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/analytics/amazon_pinpoint_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/analytics/amazon_pinpoint_outputs.g.dart @@ -9,23 +9,23 @@ part of 'amazon_pinpoint_outputs.dart'; // ************************************************************************** AmazonPinpointOutputs _$AmazonPinpointOutputsFromJson( - Map json) => - $checkedCreate( - 'AmazonPinpointOutputs', - json, - ($checkedConvert) { - final val = AmazonPinpointOutputs( - awsRegion: $checkedConvert('aws_region', (v) => v as String), - appId: $checkedConvert('app_id', (v) => v as String), - ); - return val; - }, - fieldKeyMap: const {'awsRegion': 'aws_region', 'appId': 'app_id'}, + Map json, +) => $checkedCreate( + 'AmazonPinpointOutputs', + json, + ($checkedConvert) { + final val = AmazonPinpointOutputs( + awsRegion: $checkedConvert('aws_region', (v) => v as String), + appId: $checkedConvert('app_id', (v) => v as String), ); + return val; + }, + fieldKeyMap: const {'awsRegion': 'aws_region', 'appId': 'app_id'}, +); Map _$AmazonPinpointOutputsToJson( - AmazonPinpointOutputs instance) => - { - 'aws_region': instance.awsRegion, - 'app_id': instance.appId, - }; + AmazonPinpointOutputs instance, +) => { + 'aws_region': instance.awsRegion, + 'app_id': instance.appId, +}; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/analytics/analytics_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/analytics/analytics_outputs.g.dart index ee4a580cf4..2ae49ff108 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/analytics/analytics_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/analytics/analytics_outputs.g.dart @@ -9,31 +9,21 @@ part of 'analytics_outputs.dart'; // ************************************************************************** AnalyticsOutputs _$AnalyticsOutputsFromJson(Map json) => - $checkedCreate( - 'AnalyticsOutputs', - json, - ($checkedConvert) { - final val = AnalyticsOutputs( - amazonPinpoint: $checkedConvert( - 'amazon_pinpoint', - (v) => v == null + $checkedCreate('AnalyticsOutputs', json, ($checkedConvert) { + final val = AnalyticsOutputs( + amazonPinpoint: $checkedConvert( + 'amazon_pinpoint', + (v) => + v == null ? null - : AmazonPinpointOutputs.fromJson(v as Map)), - ); - return val; - }, - fieldKeyMap: const {'amazonPinpoint': 'amazon_pinpoint'}, - ); + : AmazonPinpointOutputs.fromJson(v as Map), + ), + ); + return val; + }, fieldKeyMap: const {'amazonPinpoint': 'amazon_pinpoint'}); -Map _$AnalyticsOutputsToJson(AnalyticsOutputs instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('amazon_pinpoint', instance.amazonPinpoint?.toJson()); - return val; -} +Map _$AnalyticsOutputsToJson(AnalyticsOutputs instance) => + { + if (instance.amazonPinpoint?.toJson() case final value?) + 'amazon_pinpoint': value, + }; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/api_outputs.dart b/packages/amplify_core/lib/src/config/amplify_outputs/api_outputs.dart index c8e1e5c53b..1a58adeff5 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/api_outputs.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/api_outputs.dart @@ -14,7 +14,4 @@ abstract interface class ApiOutputs { ApiType get apiType; } -enum ApiType { - rest, - graphQL, -} +enum ApiType { rest, graphQL } diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.dart b/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.dart index e4dbe9c566..960f464a8c 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.dart @@ -81,18 +81,18 @@ class AuthOutputs @override List get props => [ - awsRegion, - userPoolId, - userPoolClientId, - identityPoolId, - oauth, - standardRequiredAttributes, - usernameAttributes, - userVerificationTypes, - unauthenticatedIdentitiesEnabled, - mfaConfiguration, - mfaMethods, - ]; + awsRegion, + userPoolId, + userPoolClientId, + identityPoolId, + oauth, + standardRequiredAttributes, + usernameAttributes, + userVerificationTypes, + unauthenticatedIdentitiesEnabled, + mfaConfiguration, + mfaMethods, + ]; @override String get runtimeTypeName => 'AuthOutputs'; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.g.dart index 9c9639f654..63a5d15a61 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/auth/auth_outputs.g.dart @@ -9,115 +9,134 @@ part of 'auth_outputs.dart'; // ************************************************************************** AuthOutputs _$AuthOutputsFromJson(Map json) => $checkedCreate( - 'AuthOutputs', - json, - ($checkedConvert) { - final val = AuthOutputs( - awsRegion: $checkedConvert('aws_region', (v) => v as String), - userPoolId: $checkedConvert('user_pool_id', (v) => v as String?), - userPoolClientId: - $checkedConvert('user_pool_client_id', (v) => v as String?), - appClientSecret: - $checkedConvert('app_client_secret', (v) => v as String?), - identityPoolId: - $checkedConvert('identity_pool_id', (v) => v as String?), - passwordPolicy: $checkedConvert( - 'password_policy', - (v) => v == null - ? null - : PasswordPolicy.fromJson(v as Map)), - oauth: $checkedConvert( - 'oauth', - (v) => v == null - ? null - : OAuthOutputs.fromJson(v as Map)), - standardRequiredAttributes: $checkedConvert( - 'standard_required_attributes', - (v) => (v as List?) - ?.map((e) => const CognitoUserAttributeKeyConverter() - .fromJson(e as String)) - .toList()), - usernameAttributes: $checkedConvert( - 'username_attributes', - (v) => (v as List?) - ?.map((e) => const CognitoUserAttributeKeyConverter() - .fromJson(e as String)) - .toList()), - userVerificationTypes: $checkedConvert( - 'user_verification_types', - (v) => (v as List?) - ?.map((e) => const CognitoUserAttributeKeyConverter() - .fromJson(e as String)) - .toList()), - unauthenticatedIdentitiesEnabled: $checkedConvert( - 'unauthenticated_identities_enabled', (v) => v as bool? ?? true), - mfaConfiguration: $checkedConvert('mfa_configuration', - (v) => $enumDecodeNullable(_$MfaEnforcementEnumMap, v)), - mfaMethods: $checkedConvert( - 'mfa_methods', - (v) => (v as List?) - ?.map((e) => $enumDecode(_$MfaMethodEnumMap, e)) - .toList()), - ); - return val; - }, - fieldKeyMap: const { - 'awsRegion': 'aws_region', - 'userPoolId': 'user_pool_id', - 'userPoolClientId': 'user_pool_client_id', - 'appClientSecret': 'app_client_secret', - 'identityPoolId': 'identity_pool_id', - 'passwordPolicy': 'password_policy', - 'standardRequiredAttributes': 'standard_required_attributes', - 'usernameAttributes': 'username_attributes', - 'userVerificationTypes': 'user_verification_types', - 'unauthenticatedIdentitiesEnabled': - 'unauthenticated_identities_enabled', - 'mfaConfiguration': 'mfa_configuration', - 'mfaMethods': 'mfa_methods' - }, + 'AuthOutputs', + json, + ($checkedConvert) { + final val = AuthOutputs( + awsRegion: $checkedConvert('aws_region', (v) => v as String), + userPoolId: $checkedConvert('user_pool_id', (v) => v as String?), + userPoolClientId: $checkedConvert( + 'user_pool_client_id', + (v) => v as String?, + ), + appClientSecret: $checkedConvert( + 'app_client_secret', + (v) => v as String?, + ), + identityPoolId: $checkedConvert('identity_pool_id', (v) => v as String?), + passwordPolicy: $checkedConvert( + 'password_policy', + (v) => + v == null + ? null + : PasswordPolicy.fromJson(v as Map), + ), + oauth: $checkedConvert( + 'oauth', + (v) => + v == null ? null : OAuthOutputs.fromJson(v as Map), + ), + standardRequiredAttributes: $checkedConvert( + 'standard_required_attributes', + (v) => + (v as List?) + ?.map( + (e) => const CognitoUserAttributeKeyConverter().fromJson( + e as String, + ), + ) + .toList(), + ), + usernameAttributes: $checkedConvert( + 'username_attributes', + (v) => + (v as List?) + ?.map( + (e) => const CognitoUserAttributeKeyConverter().fromJson( + e as String, + ), + ) + .toList(), + ), + userVerificationTypes: $checkedConvert( + 'user_verification_types', + (v) => + (v as List?) + ?.map( + (e) => const CognitoUserAttributeKeyConverter().fromJson( + e as String, + ), + ) + .toList(), + ), + unauthenticatedIdentitiesEnabled: $checkedConvert( + 'unauthenticated_identities_enabled', + (v) => v as bool? ?? true, + ), + mfaConfiguration: $checkedConvert( + 'mfa_configuration', + (v) => $enumDecodeNullable(_$MfaEnforcementEnumMap, v), + ), + mfaMethods: $checkedConvert( + 'mfa_methods', + (v) => + (v as List?) + ?.map((e) => $enumDecode(_$MfaMethodEnumMap, e)) + .toList(), + ), ); + return val; + }, + fieldKeyMap: const { + 'awsRegion': 'aws_region', + 'userPoolId': 'user_pool_id', + 'userPoolClientId': 'user_pool_client_id', + 'appClientSecret': 'app_client_secret', + 'identityPoolId': 'identity_pool_id', + 'passwordPolicy': 'password_policy', + 'standardRequiredAttributes': 'standard_required_attributes', + 'usernameAttributes': 'username_attributes', + 'userVerificationTypes': 'user_verification_types', + 'unauthenticatedIdentitiesEnabled': 'unauthenticated_identities_enabled', + 'mfaConfiguration': 'mfa_configuration', + 'mfaMethods': 'mfa_methods', + }, +); -Map _$AuthOutputsToJson(AuthOutputs instance) { - final val = { - 'aws_region': instance.awsRegion, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('user_pool_id', instance.userPoolId); - writeNotNull('user_pool_client_id', instance.userPoolClientId); - writeNotNull('app_client_secret', instance.appClientSecret); - writeNotNull('identity_pool_id', instance.identityPoolId); - writeNotNull('password_policy', instance.passwordPolicy?.toJson()); - writeNotNull('oauth', instance.oauth?.toJson()); - writeNotNull( - 'standard_required_attributes', - instance.standardRequiredAttributes +Map _$AuthOutputsToJson( + AuthOutputs instance, +) => { + 'aws_region': instance.awsRegion, + if (instance.userPoolId case final value?) 'user_pool_id': value, + if (instance.userPoolClientId case final value?) 'user_pool_client_id': value, + if (instance.appClientSecret case final value?) 'app_client_secret': value, + if (instance.identityPoolId case final value?) 'identity_pool_id': value, + if (instance.passwordPolicy?.toJson() case final value?) + 'password_policy': value, + if (instance.oauth?.toJson() case final value?) 'oauth': value, + if (instance.standardRequiredAttributes ?.map(const CognitoUserAttributeKeyConverter().toJson) - .toList()); - writeNotNull( - 'username_attributes', - instance.usernameAttributes + .toList() + case final value?) + 'standard_required_attributes': value, + if (instance.usernameAttributes ?.map(const CognitoUserAttributeKeyConverter().toJson) - .toList()); - writeNotNull( - 'user_verification_types', - instance.userVerificationTypes + .toList() + case final value?) + 'username_attributes': value, + if (instance.userVerificationTypes ?.map(const CognitoUserAttributeKeyConverter().toJson) - .toList()); - val['unauthenticated_identities_enabled'] = - instance.unauthenticatedIdentitiesEnabled; - writeNotNull( - 'mfa_configuration', _$MfaEnforcementEnumMap[instance.mfaConfiguration]); - writeNotNull('mfa_methods', - instance.mfaMethods?.map((e) => _$MfaMethodEnumMap[e]!).toList()); - return val; -} + .toList() + case final value?) + 'user_verification_types': value, + 'unauthenticated_identities_enabled': + instance.unauthenticatedIdentitiesEnabled, + if (_$MfaEnforcementEnumMap[instance.mfaConfiguration] case final value?) + 'mfa_configuration': value, + if (instance.mfaMethods?.map((e) => _$MfaMethodEnumMap[e]!).toList() + case final value?) + 'mfa_methods': value, +}; const _$MfaEnforcementEnumMap = { MfaEnforcement.optional: 'OPTIONAL', diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.dart b/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.dart index 230c39ce7f..a638bdb29e 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.dart @@ -97,19 +97,19 @@ class OAuthOutputs @override List get props => [ - identityProviders, - domain, - scopes, - redirectSignInUri, - signInUri, - signInUriQueryParameters, - redirectSignOutUri, - signOutUri, - signOutUriQueryParameters, - tokenUri, - tokenUriQueryParameters, - responseType, - ]; + identityProviders, + domain, + scopes, + redirectSignInUri, + signInUri, + signInUriQueryParameters, + redirectSignOutUri, + signOutUri, + signOutUriQueryParameters, + tokenUri, + tokenUriQueryParameters, + responseType, + ]; @override String get runtimeTypeName => 'OAuthOutputs'; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.g.dart index f59d2d6d3b..48939cfd84 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/auth/oauth_outputs.g.dart @@ -15,37 +15,50 @@ OAuthOutputs _$OAuthOutputsFromJson(Map json) => ($checkedConvert) { final val = OAuthOutputs( identityProviders: $checkedConvert( - 'identity_providers', - (v) => (v as List) - .map((e) => $enumDecode(_$IdentityProviderEnumMap, e)) - .toList()), + 'identity_providers', + (v) => + (v as List) + .map((e) => $enumDecode(_$IdentityProviderEnumMap, e)) + .toList(), + ), domain: $checkedConvert('domain', (v) => v as String), - scopes: $checkedConvert('scopes', - (v) => (v as List).map((e) => e as String).toList()), - redirectSignInUri: $checkedConvert('redirect_sign_in_uri', - (v) => (v as List).map((e) => e as String).toList()), + scopes: $checkedConvert( + 'scopes', + (v) => (v as List).map((e) => e as String).toList(), + ), + redirectSignInUri: $checkedConvert( + 'redirect_sign_in_uri', + (v) => (v as List).map((e) => e as String).toList(), + ), signInUri: $checkedConvert('sign_in_uri', (v) => v as String?), signInUriQueryParameters: $checkedConvert( - 'sign_in_uri_query_parameters', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - redirectSignOutUri: $checkedConvert('redirect_sign_out_uri', - (v) => (v as List).map((e) => e as String).toList()), + 'sign_in_uri_query_parameters', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + redirectSignOutUri: $checkedConvert( + 'redirect_sign_out_uri', + (v) => (v as List).map((e) => e as String).toList(), + ), signOutUri: $checkedConvert('sign_out_uri', (v) => v as String?), signOutUriQueryParameters: $checkedConvert( - 'sign_out_uri_query_parameters', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), + 'sign_out_uri_query_parameters', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), tokenUri: $checkedConvert('token_uri', (v) => v as String?), tokenUriQueryParameters: $checkedConvert( - 'token_uri_query_parameters', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - responseType: $checkedConvert('response_type', - (v) => $enumDecode(_$OAuthResponseTypeEnumMap, v)), + 'token_uri_query_parameters', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + responseType: $checkedConvert( + 'response_type', + (v) => $enumDecode(_$OAuthResponseTypeEnumMap, v), + ), ); return val; }, @@ -59,38 +72,31 @@ OAuthOutputs _$OAuthOutputsFromJson(Map json) => 'signOutUriQueryParameters': 'sign_out_uri_query_parameters', 'tokenUri': 'token_uri', 'tokenUriQueryParameters': 'token_uri_query_parameters', - 'responseType': 'response_type' + 'responseType': 'response_type', }, ); -Map _$OAuthOutputsToJson(OAuthOutputs instance) { - final val = { - 'identity_providers': instance.identityProviders - .map((e) => _$IdentityProviderEnumMap[e]!) - .toList(), - 'domain': instance.domain, - 'scopes': instance.scopes, - 'redirect_sign_in_uri': instance.redirectSignInUri, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('sign_in_uri', instance.signInUri); - writeNotNull( - 'sign_in_uri_query_parameters', instance.signInUriQueryParameters); - val['redirect_sign_out_uri'] = instance.redirectSignOutUri; - writeNotNull('sign_out_uri', instance.signOutUri); - writeNotNull( - 'sign_out_uri_query_parameters', instance.signOutUriQueryParameters); - writeNotNull('token_uri', instance.tokenUri); - writeNotNull('token_uri_query_parameters', instance.tokenUriQueryParameters); - val['response_type'] = _$OAuthResponseTypeEnumMap[instance.responseType]!; - return val; -} +Map _$OAuthOutputsToJson(OAuthOutputs instance) => + { + 'identity_providers': + instance.identityProviders + .map((e) => _$IdentityProviderEnumMap[e]!) + .toList(), + 'domain': instance.domain, + 'scopes': instance.scopes, + 'redirect_sign_in_uri': instance.redirectSignInUri, + if (instance.signInUri case final value?) 'sign_in_uri': value, + if (instance.signInUriQueryParameters case final value?) + 'sign_in_uri_query_parameters': value, + 'redirect_sign_out_uri': instance.redirectSignOutUri, + if (instance.signOutUri case final value?) 'sign_out_uri': value, + if (instance.signOutUriQueryParameters case final value?) + 'sign_out_uri_query_parameters': value, + if (instance.tokenUri case final value?) 'token_uri': value, + if (instance.tokenUriQueryParameters case final value?) + 'token_uri_query_parameters': value, + 'response_type': _$OAuthResponseTypeEnumMap[instance.responseType]!, + }; const _$IdentityProviderEnumMap = { IdentityProvider.facebook: 'FACEBOOK', diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.dart b/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.dart index 600e63ace1..7735aa2109 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.dart @@ -40,12 +40,12 @@ class PasswordPolicy @override List get props => [ - minLength, - requireNumbers, - requireLowercase, - requireUppercase, - requireSymbols, - ]; + minLength, + requireNumbers, + requireLowercase, + requireUppercase, + requireSymbols, + ]; @override String get runtimeTypeName => 'PasswordPolicy'; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.g.dart index 959836460c..3284195601 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/auth/password_policy.g.dart @@ -15,14 +15,22 @@ PasswordPolicy _$PasswordPolicyFromJson(Map json) => ($checkedConvert) { final val = PasswordPolicy( minLength: $checkedConvert('min_length', (v) => (v as num?)?.toInt()), - requireNumbers: - $checkedConvert('require_numbers', (v) => v as bool? ?? false), - requireLowercase: - $checkedConvert('require_lowercase', (v) => v as bool? ?? false), - requireUppercase: - $checkedConvert('require_uppercase', (v) => v as bool? ?? false), - requireSymbols: - $checkedConvert('require_symbols', (v) => v as bool? ?? false), + requireNumbers: $checkedConvert( + 'require_numbers', + (v) => v as bool? ?? false, + ), + requireLowercase: $checkedConvert( + 'require_lowercase', + (v) => v as bool? ?? false, + ), + requireUppercase: $checkedConvert( + 'require_uppercase', + (v) => v as bool? ?? false, + ), + requireSymbols: $checkedConvert( + 'require_symbols', + (v) => v as bool? ?? false, + ), ); return val; }, @@ -31,23 +39,15 @@ PasswordPolicy _$PasswordPolicyFromJson(Map json) => 'requireNumbers': 'require_numbers', 'requireLowercase': 'require_lowercase', 'requireUppercase': 'require_uppercase', - 'requireSymbols': 'require_symbols' + 'requireSymbols': 'require_symbols', }, ); -Map _$PasswordPolicyToJson(PasswordPolicy instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('min_length', instance.minLength); - val['require_numbers'] = instance.requireNumbers; - val['require_lowercase'] = instance.requireLowercase; - val['require_uppercase'] = instance.requireUppercase; - val['require_symbols'] = instance.requireSymbols; - return val; -} +Map _$PasswordPolicyToJson(PasswordPolicy instance) => + { + if (instance.minLength case final value?) 'min_length': value, + 'require_numbers': instance.requireNumbers, + 'require_lowercase': instance.requireLowercase, + 'require_uppercase': instance.requireUppercase, + 'require_symbols': instance.requireSymbols, + }; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.dart b/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.dart index a72b3d1fa2..d7d3a07982 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.dart @@ -54,12 +54,12 @@ class DataOutputs @override List get props => [ - awsRegion, - url, - apiKey, - defaultAuthorizationType, - authorizationTypes, - ]; + awsRegion, + url, + apiKey, + defaultAuthorizationType, + authorizationTypes, + ]; @override String get runtimeTypeName => 'DataOutputs'; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.g.dart index 1850349707..f68ab2161a 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/data/data_outputs.g.dart @@ -9,52 +9,47 @@ part of 'data_outputs.dart'; // ************************************************************************** DataOutputs _$DataOutputsFromJson(Map json) => $checkedCreate( - 'DataOutputs', - json, - ($checkedConvert) { - final val = DataOutputs( - awsRegion: $checkedConvert('aws_region', (v) => v as String), - url: $checkedConvert('url', (v) => v as String), - apiKey: $checkedConvert('api_key', (v) => v as String?), - defaultAuthorizationType: $checkedConvert( - 'default_authorization_type', - (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v)), - authorizationTypes: $checkedConvert( - 'authorization_types', - (v) => (v as List) - .map((e) => $enumDecode(_$APIAuthorizationTypeEnumMap, e)) - .toList()), - ); - return val; - }, - fieldKeyMap: const { - 'awsRegion': 'aws_region', - 'apiKey': 'api_key', - 'defaultAuthorizationType': 'default_authorization_type', - 'authorizationTypes': 'authorization_types' - }, + 'DataOutputs', + json, + ($checkedConvert) { + final val = DataOutputs( + awsRegion: $checkedConvert('aws_region', (v) => v as String), + url: $checkedConvert('url', (v) => v as String), + apiKey: $checkedConvert('api_key', (v) => v as String?), + defaultAuthorizationType: $checkedConvert( + 'default_authorization_type', + (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v), + ), + authorizationTypes: $checkedConvert( + 'authorization_types', + (v) => + (v as List) + .map((e) => $enumDecode(_$APIAuthorizationTypeEnumMap, e)) + .toList(), + ), ); - -Map _$DataOutputsToJson(DataOutputs instance) { - final val = { - 'aws_region': instance.awsRegion, - 'url': instance.url, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('api_key', instance.apiKey); - val['default_authorization_type'] = - _$APIAuthorizationTypeEnumMap[instance.defaultAuthorizationType]!; - val['authorization_types'] = instance.authorizationTypes - .map((e) => _$APIAuthorizationTypeEnumMap[e]!) - .toList(); - return val; -} + return val; + }, + fieldKeyMap: const { + 'awsRegion': 'aws_region', + 'apiKey': 'api_key', + 'defaultAuthorizationType': 'default_authorization_type', + 'authorizationTypes': 'authorization_types', + }, +); + +Map _$DataOutputsToJson(DataOutputs instance) => + { + 'aws_region': instance.awsRegion, + 'url': instance.url, + if (instance.apiKey case final value?) 'api_key': value, + 'default_authorization_type': + _$APIAuthorizationTypeEnumMap[instance.defaultAuthorizationType]!, + 'authorization_types': + instance.authorizationTypes + .map((e) => _$APIAuthorizationTypeEnumMap[e]!) + .toList(), + }; const _$APIAuthorizationTypeEnumMap = { APIAuthorizationType.none: 'NONE', diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/notifications/notifications_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/notifications/notifications_outputs.g.dart index a1a0b37012..3d2523efff 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/notifications/notifications_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/notifications/notifications_outputs.g.dart @@ -9,38 +9,41 @@ part of 'notifications_outputs.dart'; // ************************************************************************** NotificationsOutputs _$NotificationsOutputsFromJson( - Map json) => - $checkedCreate( - 'NotificationsOutputs', - json, - ($checkedConvert) { - final val = NotificationsOutputs( - awsRegion: $checkedConvert('aws_region', (v) => v as String), - amazonPinpointAppId: - $checkedConvert('amazon_pinpoint_app_id', (v) => v as String), - channels: $checkedConvert( - 'channels', - (v) => (v as List) - .map((e) => $enumDecode(_$AmazonPinpointChannelEnumMap, e)) - .toList()), - ); - return val; - }, - fieldKeyMap: const { - 'awsRegion': 'aws_region', - 'amazonPinpointAppId': 'amazon_pinpoint_app_id' - }, + Map json, +) => $checkedCreate( + 'NotificationsOutputs', + json, + ($checkedConvert) { + final val = NotificationsOutputs( + awsRegion: $checkedConvert('aws_region', (v) => v as String), + amazonPinpointAppId: $checkedConvert( + 'amazon_pinpoint_app_id', + (v) => v as String, + ), + channels: $checkedConvert( + 'channels', + (v) => + (v as List) + .map((e) => $enumDecode(_$AmazonPinpointChannelEnumMap, e)) + .toList(), + ), ); + return val; + }, + fieldKeyMap: const { + 'awsRegion': 'aws_region', + 'amazonPinpointAppId': 'amazon_pinpoint_app_id', + }, +); Map _$NotificationsOutputsToJson( - NotificationsOutputs instance) => - { - 'aws_region': instance.awsRegion, - 'amazon_pinpoint_app_id': instance.amazonPinpointAppId, - 'channels': instance.channels - .map((e) => _$AmazonPinpointChannelEnumMap[e]!) - .toList(), - }; + NotificationsOutputs instance, +) => { + 'aws_region': instance.awsRegion, + 'amazon_pinpoint_app_id': instance.amazonPinpointAppId, + 'channels': + instance.channels.map((e) => _$AmazonPinpointChannelEnumMap[e]!).toList(), +}; const _$AmazonPinpointChannelEnumMap = { AmazonPinpointChannel.apns: 'APNS', diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.dart b/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.dart index 4ba69d001b..66abe46714 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.dart @@ -48,12 +48,7 @@ class RestApiOutputs ApiType get apiType => ApiType.rest; @override - List get props => [ - awsRegion, - url, - apiKey, - authorizationType, - ]; + List get props => [awsRegion, url, apiKey, authorizationType]; @override String get runtimeTypeName => 'RestApiOutputs'; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.g.dart index 2834993493..95601d6f9d 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/rest_api/rest_api_outputs.g.dart @@ -17,35 +17,28 @@ RestApiOutputs _$RestApiOutputsFromJson(Map json) => awsRegion: $checkedConvert('aws_region', (v) => v as String), url: $checkedConvert('url', (v) => v as String), apiKey: $checkedConvert('api_key', (v) => v as String?), - authorizationType: $checkedConvert('authorization_type', - (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v)), + authorizationType: $checkedConvert( + 'authorization_type', + (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v), + ), ); return val; }, fieldKeyMap: const { 'awsRegion': 'aws_region', 'apiKey': 'api_key', - 'authorizationType': 'authorization_type' + 'authorizationType': 'authorization_type', }, ); -Map _$RestApiOutputsToJson(RestApiOutputs instance) { - final val = { - 'aws_region': instance.awsRegion, - 'url': instance.url, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('api_key', instance.apiKey); - val['authorization_type'] = - _$APIAuthorizationTypeEnumMap[instance.authorizationType]!; - return val; -} +Map _$RestApiOutputsToJson(RestApiOutputs instance) => + { + 'aws_region': instance.awsRegion, + 'url': instance.url, + if (instance.apiKey case final value?) 'api_key': value, + 'authorization_type': + _$APIAuthorizationTypeEnumMap[instance.authorizationType]!, + }; const _$APIAuthorizationTypeEnumMap = { APIAuthorizationType.none: 'NONE', diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.dart b/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.dart index e156f08567..60fdfe57db 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.dart @@ -31,11 +31,7 @@ class BucketOutputs final String awsRegion; @override - List get props => [ - name, - bucketName, - awsRegion, - ]; + List get props => [name, bucketName, awsRegion]; @override String get runtimeTypeName => 'BucketOutputs'; diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.g.dart index 0d60c85fcc..3fb3149530 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/storage/bucket_outputs.g.dart @@ -22,7 +22,7 @@ BucketOutputs _$BucketOutputsFromJson(Map json) => }, fieldKeyMap: const { 'bucketName': 'bucket_name', - 'awsRegion': 'aws_region' + 'awsRegion': 'aws_region', }, ); diff --git a/packages/amplify_core/lib/src/config/amplify_outputs/storage/storage_outputs.g.dart b/packages/amplify_core/lib/src/config/amplify_outputs/storage/storage_outputs.g.dart index 40d147f387..bacfa93b40 100644 --- a/packages/amplify_core/lib/src/config/amplify_outputs/storage/storage_outputs.g.dart +++ b/packages/amplify_core/lib/src/config/amplify_outputs/storage/storage_outputs.g.dart @@ -8,41 +8,32 @@ part of 'storage_outputs.dart'; // JsonSerializableGenerator // ************************************************************************** -StorageOutputs _$StorageOutputsFromJson(Map json) => - $checkedCreate( - 'StorageOutputs', - json, - ($checkedConvert) { - final val = StorageOutputs( - awsRegion: $checkedConvert('aws_region', (v) => v as String), - bucketName: $checkedConvert('bucket_name', (v) => v as String), - buckets: $checkedConvert( - 'buckets', - (v) => (v as List?) - ?.map( - (e) => BucketOutputs.fromJson(e as Map)) - .toList()), - ); - return val; - }, - fieldKeyMap: const { - 'awsRegion': 'aws_region', - 'bucketName': 'bucket_name' - }, +StorageOutputs _$StorageOutputsFromJson( + Map json, +) => $checkedCreate( + 'StorageOutputs', + json, + ($checkedConvert) { + final val = StorageOutputs( + awsRegion: $checkedConvert('aws_region', (v) => v as String), + bucketName: $checkedConvert('bucket_name', (v) => v as String), + buckets: $checkedConvert( + 'buckets', + (v) => + (v as List?) + ?.map((e) => BucketOutputs.fromJson(e as Map)) + .toList(), + ), ); + return val; + }, + fieldKeyMap: const {'awsRegion': 'aws_region', 'bucketName': 'bucket_name'}, +); -Map _$StorageOutputsToJson(StorageOutputs instance) { - final val = { - 'aws_region': instance.awsRegion, - 'bucket_name': instance.bucketName, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('buckets', instance.buckets?.map((e) => e.toJson()).toList()); - return val; -} +Map _$StorageOutputsToJson(StorageOutputs instance) => + { + 'aws_region': instance.awsRegion, + 'bucket_name': instance.bucketName, + if (instance.buckets?.map((e) => e.toJson()).toList() case final value?) + 'buckets': value, + }; diff --git a/packages/amplify_core/lib/src/config/amplify_plugin_config.dart b/packages/amplify_core/lib/src/config/amplify_plugin_config.dart index feb6a406b1..7a3ea9676f 100644 --- a/packages/amplify_core/lib/src/config/amplify_plugin_config.dart +++ b/packages/amplify_core/lib/src/config/amplify_plugin_config.dart @@ -44,7 +44,7 @@ class UnknownPluginConfig extends DelegatingMap implements AmplifyPluginConfig { /// {@macro amplify_core.unknown_plugin_config} const UnknownPluginConfig(this.name, Map plugin) - : super(plugin); + : super(plugin); factory UnknownPluginConfig.fromJson(String name, Map json) { return UnknownPluginConfig(name, json); diff --git a/packages/amplify_core/lib/src/config/analytics/analytics_config.dart b/packages/amplify_core/lib/src/config/analytics/analytics_config.dart index f8a2e8988c..57b9cf1e2f 100644 --- a/packages/amplify_core/lib/src/config/analytics/analytics_config.dart +++ b/packages/amplify_core/lib/src/config/analytics/analytics_config.dart @@ -16,9 +16,8 @@ part 'analytics_config.g.dart'; @zAmplifySerializable class AnalyticsConfig extends AmplifyPluginConfigMap { /// {@macro amplify_core.analytics_config} - const AnalyticsConfig({ - required Map plugins, - }) : super(plugins); + const AnalyticsConfig({required Map plugins}) + : super(plugins); factory AnalyticsConfig.fromJson(Map json) => _$AnalyticsConfigFromJson(json); @@ -43,10 +42,7 @@ class AnalyticsConfig extends AmplifyPluginConfigMap { final awsRegion = plugin.region; final appId = plugin.appId; return AnalyticsOutputs( - amazonPinpoint: AmazonPinpointOutputs( - awsRegion: awsRegion, - appId: appId, - ), + amazonPinpoint: AmazonPinpointOutputs(awsRegion: awsRegion, appId: appId), ); } } diff --git a/packages/amplify_core/lib/src/config/analytics/analytics_config.g.dart b/packages/amplify_core/lib/src/config/analytics/analytics_config.g.dart index b6064f19cc..c7c636430d 100644 --- a/packages/amplify_core/lib/src/config/analytics/analytics_config.g.dart +++ b/packages/amplify_core/lib/src/config/analytics/analytics_config.g.dart @@ -9,17 +9,15 @@ part of 'analytics_config.dart'; // ************************************************************************** AnalyticsConfig _$AnalyticsConfigFromJson(Map json) => - $checkedCreate( - 'AnalyticsConfig', - json, - ($checkedConvert) { - final val = AnalyticsConfig( - plugins: $checkedConvert( - 'plugins', (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v)), - ); - return val; - }, - ); + $checkedCreate('AnalyticsConfig', json, ($checkedConvert) { + final val = AnalyticsConfig( + plugins: $checkedConvert( + 'plugins', + (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v), + ), + ); + return val; + }); Map _$AnalyticsConfigToJson(AnalyticsConfig instance) => { diff --git a/packages/amplify_core/lib/src/config/analytics/pinpoint_config.dart b/packages/amplify_core/lib/src/config/analytics/pinpoint_config.dart index e950a5ab64..c0ead659da 100644 --- a/packages/amplify_core/lib/src/config/analytics/pinpoint_config.dart +++ b/packages/amplify_core/lib/src/config/analytics/pinpoint_config.dart @@ -68,10 +68,7 @@ class PinpointPluginConfig @zAmplifySerializable class PinpointAnalytics with AWSEquatable, AWSSerializable { - const PinpointAnalytics({ - required this.appId, - required this.region, - }); + const PinpointAnalytics({required this.appId, required this.region}); factory PinpointAnalytics.fromJson(Map json) => _$PinpointAnalyticsFromJson(json); @@ -82,10 +79,7 @@ class PinpointAnalytics with AWSEquatable, AWSSerializable { @override List get props => [appId, region]; - PinpointAnalytics copyWith({ - String? appId, - String? region, - }) { + PinpointAnalytics copyWith({String? appId, String? region}) { return PinpointAnalytics( appId: appId ?? this.appId, region: region ?? this.region, @@ -98,9 +92,7 @@ class PinpointAnalytics with AWSEquatable, AWSSerializable { @zAmplifySerializable class PinpointTargeting with AWSEquatable, AWSSerializable { - const PinpointTargeting({ - required this.region, - }); + const PinpointTargeting({required this.region}); factory PinpointTargeting.fromJson(Map json) => _$PinpointTargetingFromJson(json); @@ -110,9 +102,7 @@ class PinpointTargeting with AWSEquatable, AWSSerializable { @override List get props => [region]; - PinpointTargeting copyWith({ - String? region, - }) { + PinpointTargeting copyWith({String? region}) { return PinpointTargeting(region: region ?? this.region); } diff --git a/packages/amplify_core/lib/src/config/analytics/pinpoint_config.g.dart b/packages/amplify_core/lib/src/config/analytics/pinpoint_config.g.dart index e0f6f980bc..51baa8a6ac 100644 --- a/packages/amplify_core/lib/src/config/analytics/pinpoint_config.g.dart +++ b/packages/amplify_core/lib/src/config/analytics/pinpoint_config.g.dart @@ -9,60 +9,47 @@ part of 'pinpoint_config.dart'; // ************************************************************************** PinpointPluginConfig _$PinpointPluginConfigFromJson( - Map json) => - $checkedCreate( - 'PinpointPluginConfig', - json, - ($checkedConvert) { - final val = PinpointPluginConfig( - pinpointAnalytics: $checkedConvert('pinpointAnalytics', - (v) => PinpointAnalytics.fromJson(v as Map)), - pinpointTargeting: $checkedConvert('pinpointTargeting', - (v) => PinpointTargeting.fromJson(v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('PinpointPluginConfig', json, ($checkedConvert) { + final val = PinpointPluginConfig( + pinpointAnalytics: $checkedConvert( + 'pinpointAnalytics', + (v) => PinpointAnalytics.fromJson(v as Map), + ), + pinpointTargeting: $checkedConvert( + 'pinpointTargeting', + (v) => PinpointTargeting.fromJson(v as Map), + ), + ); + return val; +}); Map _$PinpointPluginConfigToJson( - PinpointPluginConfig instance) => - { - 'pinpointAnalytics': instance.pinpointAnalytics.toJson(), - 'pinpointTargeting': instance.pinpointTargeting.toJson(), - }; + PinpointPluginConfig instance, +) => { + 'pinpointAnalytics': instance.pinpointAnalytics.toJson(), + 'pinpointTargeting': instance.pinpointTargeting.toJson(), +}; PinpointAnalytics _$PinpointAnalyticsFromJson(Map json) => - $checkedCreate( - 'PinpointAnalytics', - json, - ($checkedConvert) { - final val = PinpointAnalytics( - appId: $checkedConvert('appId', (v) => v as String), - region: $checkedConvert('region', (v) => v as String), - ); - return val; - }, - ); + $checkedCreate('PinpointAnalytics', json, ($checkedConvert) { + final val = PinpointAnalytics( + appId: $checkedConvert('appId', (v) => v as String), + region: $checkedConvert('region', (v) => v as String), + ); + return val; + }); Map _$PinpointAnalyticsToJson(PinpointAnalytics instance) => - { - 'appId': instance.appId, - 'region': instance.region, - }; + {'appId': instance.appId, 'region': instance.region}; PinpointTargeting _$PinpointTargetingFromJson(Map json) => - $checkedCreate( - 'PinpointTargeting', - json, - ($checkedConvert) { - final val = PinpointTargeting( - region: $checkedConvert('region', (v) => v as String), - ); - return val; - }, - ); + $checkedCreate('PinpointTargeting', json, ($checkedConvert) { + final val = PinpointTargeting( + region: $checkedConvert('region', (v) => v as String), + ); + return val; + }); Map _$PinpointTargetingToJson(PinpointTargeting instance) => - { - 'region': instance.region, - }; + {'region': instance.region}; diff --git a/packages/amplify_core/lib/src/config/api/api_config.dart b/packages/amplify_core/lib/src/config/api/api_config.dart index 85d6f070bb..b2bcef23ca 100644 --- a/packages/amplify_core/lib/src/config/api/api_config.dart +++ b/packages/amplify_core/lib/src/config/api/api_config.dart @@ -16,9 +16,8 @@ part 'api_config.g.dart'; @zAmplifySerializable class ApiConfig extends AmplifyPluginConfigMap { /// {@macro amplify_core.api_config} - const ApiConfig({ - required Map plugins, - }) : super(plugins); + const ApiConfig({required Map plugins}) + : super(plugins); factory ApiConfig.fromJson(Map json) => _$ApiConfigFromJson(json); @@ -47,11 +46,14 @@ class ApiConfig extends AmplifyPluginConfigMap { final awsRegion = plugin.region; final url = plugin.endpoint; final allModes = (appSync?.all.values ?? []); - final authorizationTypes = allModes - .where((plugin) => plugin.apiUrl == url && plugin.region == awsRegion) - .map((config) => config.authMode) - .where((mode) => mode != defaultAuthorizationType) - .toList(); + final authorizationTypes = + allModes + .where( + (plugin) => plugin.apiUrl == url && plugin.region == awsRegion, + ) + .map((config) => config.authMode) + .where((mode) => mode != defaultAuthorizationType) + .toList(); final data = DataOutputs( awsRegion: awsRegion, url: url, @@ -85,8 +87,9 @@ class ApiConfig extends AmplifyPluginConfigMap { if (plugin == null) { return null; } - final entries = - plugin.all.entries.where((p) => p.value.endpointType == endpointType); + final entries = plugin.all.entries.where( + (p) => p.value.endpointType == endpointType, + ); return Map.fromEntries(entries); } } diff --git a/packages/amplify_core/lib/src/config/api/api_config.g.dart b/packages/amplify_core/lib/src/config/api/api_config.g.dart index f1812ea409..c4f0832188 100644 --- a/packages/amplify_core/lib/src/config/api/api_config.g.dart +++ b/packages/amplify_core/lib/src/config/api/api_config.g.dart @@ -8,18 +8,17 @@ part of 'api_config.dart'; // JsonSerializableGenerator // ************************************************************************** -ApiConfig _$ApiConfigFromJson(Map json) => $checkedCreate( - 'ApiConfig', - json, - ($checkedConvert) { - final val = ApiConfig( - plugins: $checkedConvert( - 'plugins', (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v)), - ); - return val; - }, - ); +ApiConfig _$ApiConfigFromJson(Map json) => + $checkedCreate('ApiConfig', json, ($checkedConvert) { + final val = ApiConfig( + plugins: $checkedConvert( + 'plugins', + (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v), + ), + ); + return val; + }); Map _$ApiConfigToJson(ApiConfig instance) => { - 'plugins': instance.plugins.map((k, e) => MapEntry(k, e.toJson())), - }; + 'plugins': instance.plugins.map((k, e) => MapEntry(k, e.toJson())), +}; diff --git a/packages/amplify_core/lib/src/config/api/appsync/api_config.dart b/packages/amplify_core/lib/src/config/api/appsync/api_config.dart index 7304ce5db9..a1b09bba7b 100644 --- a/packages/amplify_core/lib/src/config/api/appsync/api_config.dart +++ b/packages/amplify_core/lib/src/config/api/appsync/api_config.dart @@ -25,12 +25,12 @@ class AWSApiConfig with AWSEquatable, AWSSerializable { @override List get props => [ - endpointType, - endpoint, - region, - authorizationType, - apiKey, - ]; + endpointType, + endpoint, + region, + authorizationType, + apiKey, + ]; AWSApiConfig copyWith({ EndpointType? endpointType, diff --git a/packages/amplify_core/lib/src/config/api/appsync/api_config.g.dart b/packages/amplify_core/lib/src/config/api/appsync/api_config.g.dart index 216b39a2fb..dabd5aa9a3 100644 --- a/packages/amplify_core/lib/src/config/api/appsync/api_config.g.dart +++ b/packages/amplify_core/lib/src/config/api/appsync/api_config.g.dart @@ -9,41 +9,32 @@ part of 'api_config.dart'; // ************************************************************************** AWSApiConfig _$AWSApiConfigFromJson(Map json) => - $checkedCreate( - 'AWSApiConfig', - json, - ($checkedConvert) { - final val = AWSApiConfig( - endpointType: $checkedConvert( - 'endpointType', (v) => $enumDecode(_$EndpointTypeEnumMap, v)), - endpoint: $checkedConvert('endpoint', (v) => v as String), - region: $checkedConvert('region', (v) => v as String), - authorizationType: $checkedConvert('authorizationType', - (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v)), - apiKey: $checkedConvert('apiKey', (v) => v as String?), - ); - return val; - }, - ); - -Map _$AWSApiConfigToJson(AWSApiConfig instance) { - final val = { - 'endpointType': _$EndpointTypeEnumMap[instance.endpointType]!, - 'endpoint': instance.endpoint, - 'region': instance.region, - 'authorizationType': - _$APIAuthorizationTypeEnumMap[instance.authorizationType]!, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('apiKey', instance.apiKey); - return val; -} + $checkedCreate('AWSApiConfig', json, ($checkedConvert) { + final val = AWSApiConfig( + endpointType: $checkedConvert( + 'endpointType', + (v) => $enumDecode(_$EndpointTypeEnumMap, v), + ), + endpoint: $checkedConvert('endpoint', (v) => v as String), + region: $checkedConvert('region', (v) => v as String), + authorizationType: $checkedConvert( + 'authorizationType', + (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v), + ), + apiKey: $checkedConvert('apiKey', (v) => v as String?), + ); + return val; + }); + +Map _$AWSApiConfigToJson(AWSApiConfig instance) => + { + 'endpointType': _$EndpointTypeEnumMap[instance.endpointType]!, + 'endpoint': instance.endpoint, + 'region': instance.region, + 'authorizationType': + _$APIAuthorizationTypeEnumMap[instance.authorizationType]!, + if (instance.apiKey case final value?) 'apiKey': value, + }; const _$EndpointTypeEnumMap = { EndpointType.rest: 'REST', diff --git a/packages/amplify_core/lib/src/config/auth/auth_config.dart b/packages/amplify_core/lib/src/config/auth/auth_config.dart index f5270482e4..fb53b63eed 100644 --- a/packages/amplify_core/lib/src/config/auth/auth_config.dart +++ b/packages/amplify_core/lib/src/config/auth/auth_config.dart @@ -19,7 +19,7 @@ part 'auth_config.g.dart'; class AuthConfig extends AmplifyPluginConfigMap { /// {@macro amplify_core.auth_config} const AuthConfig({required Map plugins}) - : super(plugins); + : super(plugins); factory AuthConfig.fromJson(Map json) => _$AuthConfigFromJson(json); @@ -37,40 +37,43 @@ class AuthConfig extends AmplifyPluginConfigMap { List? mfaTypes, List? verificationMechanisms, CognitoPinpointAnalyticsConfig? pinpointAnalyticsConfig, - }) => - AuthConfig( - plugins: { - CognitoPluginConfig.pluginKey: CognitoPluginConfig( - auth: AWSConfigMap.withDefault( - CognitoAuthConfig( - oAuth: hostedUiConfig, - socialProviders: socialProviders, - usernameAttributes: usernameAttributes ?? const [], - signupAttributes: signupAttributes ?? const [], - passwordProtectionSettings: passwordProtectionSettings ?? - const PasswordProtectionSettings(), - mfaConfiguration: mfaConfiguration, - mfaTypes: mfaTypes, - verificationMechanisms: verificationMechanisms, - ), - ), - cognitoUserPool: userPoolConfig == null + }) => AuthConfig( + plugins: { + CognitoPluginConfig.pluginKey: CognitoPluginConfig( + auth: AWSConfigMap.withDefault( + CognitoAuthConfig( + oAuth: hostedUiConfig, + socialProviders: socialProviders, + usernameAttributes: usernameAttributes ?? const [], + signupAttributes: signupAttributes ?? const [], + passwordProtectionSettings: + passwordProtectionSettings ?? + const PasswordProtectionSettings(), + mfaConfiguration: mfaConfiguration, + mfaTypes: mfaTypes, + verificationMechanisms: verificationMechanisms, + ), + ), + cognitoUserPool: + userPoolConfig == null ? null : AWSConfigMap.withDefault(userPoolConfig), - credentialsProvider: identityPoolConfig == null + credentialsProvider: + identityPoolConfig == null ? null : CredentialsProviders( - AWSConfigMap({ - CognitoIdentityCredentialsProvider.configKey: - AWSConfigMap.withDefault(identityPoolConfig), - }), - ), - pinpointAnalytics: pinpointAnalyticsConfig == null + AWSConfigMap({ + CognitoIdentityCredentialsProvider.configKey: + AWSConfigMap.withDefault(identityPoolConfig), + }), + ), + pinpointAnalytics: + pinpointAnalyticsConfig == null ? null : AWSConfigMap.withDefault(pinpointAnalyticsConfig), - ), - }, - ); + ), + }, + ); /// The AWS Cognito plugin configuration, if available. @override @@ -94,44 +97,45 @@ class AuthConfig extends AmplifyPluginConfigMap { final passwordPolicy = switch (passwordSettings) { null => null, final PasswordProtectionSettings settings => PasswordPolicy( - minLength: settings.passwordPolicyMinLength, - requireNumbers: settings.passwordPolicyCharacters.contains( - PasswordPolicyCharacters.requiresNumbers, - ), - requireLowercase: settings.passwordPolicyCharacters.contains( - PasswordPolicyCharacters.requiresLowercase, - ), - requireUppercase: settings.passwordPolicyCharacters.contains( - PasswordPolicyCharacters.requiresUppercase, - ), - requireSymbols: settings.passwordPolicyCharacters.contains( - PasswordPolicyCharacters.requiresSymbols, - ), - ) + minLength: settings.passwordPolicyMinLength, + requireNumbers: settings.passwordPolicyCharacters.contains( + PasswordPolicyCharacters.requiresNumbers, + ), + requireLowercase: settings.passwordPolicyCharacters.contains( + PasswordPolicyCharacters.requiresLowercase, + ), + requireUppercase: settings.passwordPolicyCharacters.contains( + PasswordPolicyCharacters.requiresUppercase, + ), + requireSymbols: settings.passwordPolicyCharacters.contains( + PasswordPolicyCharacters.requiresSymbols, + ), + ), }; final oAuthConfig = plugin?.oAuth; final identityProviders = plugin?.socialProviders?.map((p) => p.toIdentityProvider()).toList(); - final oauth = oAuthConfig != null - ? OAuthOutputs( - identityProviders: identityProviders ?? [], - domain: oAuthConfig.webDomain, - scopes: oAuthConfig.scopes, - redirectSignInUri: oAuthConfig.signInRedirectUri.split(','), - signInUri: oAuthConfig.signInUri, - signInUriQueryParameters: oAuthConfig.signInUriQueryParameters, - redirectSignOutUri: oAuthConfig.signOutRedirectUri.split(','), - signOutUri: oAuthConfig.signOutUri, - signOutUriQueryParameters: oAuthConfig.signOutUriQueryParameters, - tokenUri: oAuthConfig.tokenUri, - tokenUriQueryParameters: oAuthConfig.tokenUriQueryParameters, - // Amplify Flutter only supports responseType:code - // "response_type" is set to "code" by `getAuthorizationUrl` from - // pkg:oauth2 - responseType: OAuthResponseType.code, - ) - : null; + final oauth = + oAuthConfig != null + ? OAuthOutputs( + identityProviders: identityProviders ?? [], + domain: oAuthConfig.webDomain, + scopes: oAuthConfig.scopes, + redirectSignInUri: oAuthConfig.signInRedirectUri.split(','), + signInUri: oAuthConfig.signInUri, + signInUriQueryParameters: oAuthConfig.signInUriQueryParameters, + redirectSignOutUri: oAuthConfig.signOutRedirectUri.split(','), + signOutUri: oAuthConfig.signOutUri, + signOutUriQueryParameters: oAuthConfig.signOutUriQueryParameters, + tokenUri: oAuthConfig.tokenUri, + tokenUriQueryParameters: oAuthConfig.tokenUriQueryParameters, + // Amplify Flutter only supports responseType:code + // "response_type" is set to "code" by `getAuthorizationUrl` from + // pkg:oauth2 + responseType: OAuthResponseType.code, + ) + : null; return AuthOutputs( awsRegion: region, diff --git a/packages/amplify_core/lib/src/config/auth/auth_config.g.dart b/packages/amplify_core/lib/src/config/auth/auth_config.g.dart index 2f10ae171e..c28c36ef73 100644 --- a/packages/amplify_core/lib/src/config/auth/auth_config.g.dart +++ b/packages/amplify_core/lib/src/config/auth/auth_config.g.dart @@ -8,17 +8,16 @@ part of 'auth_config.dart'; // JsonSerializableGenerator // ************************************************************************** -AuthConfig _$AuthConfigFromJson(Map json) => $checkedCreate( - 'AuthConfig', - json, - ($checkedConvert) { - final val = AuthConfig( - plugins: $checkedConvert( - 'plugins', (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v)), - ); - return val; - }, - ); +AuthConfig _$AuthConfigFromJson(Map json) => + $checkedCreate('AuthConfig', json, ($checkedConvert) { + final val = AuthConfig( + plugins: $checkedConvert( + 'plugins', + (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v), + ), + ); + return val; + }); Map _$AuthConfigToJson(AuthConfig instance) => { diff --git a/packages/amplify_core/lib/src/config/auth/cognito/appsync.dart b/packages/amplify_core/lib/src/config/auth/cognito/appsync.dart index 4404c984ac..e986fb26cc 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/appsync.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/appsync.dart @@ -27,12 +27,12 @@ class CognitoAppSyncConfig @override List get props => [ - apiUrl, - region, - authMode, - apiKey, - clientDatabasePrefix, - ]; + apiUrl, + region, + authMode, + apiKey, + clientDatabasePrefix, + ]; CognitoAppSyncConfig copyWith({ String? apiUrl, diff --git a/packages/amplify_core/lib/src/config/auth/cognito/appsync.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/appsync.g.dart index 13ce05784c..de8eb26581 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/appsync.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/appsync.g.dart @@ -9,49 +9,44 @@ part of 'appsync.dart'; // ************************************************************************** CognitoAppSyncConfig _$CognitoAppSyncConfigFromJson( - Map json) => - $checkedCreate( - 'CognitoAppSyncConfig', - json, - ($checkedConvert) { - final val = CognitoAppSyncConfig( - apiUrl: $checkedConvert('ApiUrl', (v) => v as String), - region: $checkedConvert('Region', (v) => v as String), - authMode: $checkedConvert( - 'AuthMode', (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v)), - apiKey: $checkedConvert('ApiKey', (v) => v as String?), - clientDatabasePrefix: - $checkedConvert('ClientDatabasePrefix', (v) => v as String), - ); - return val; - }, - fieldKeyMap: const { - 'apiUrl': 'ApiUrl', - 'region': 'Region', - 'authMode': 'AuthMode', - 'apiKey': 'ApiKey', - 'clientDatabasePrefix': 'ClientDatabasePrefix' - }, + Map json, +) => $checkedCreate( + 'CognitoAppSyncConfig', + json, + ($checkedConvert) { + final val = CognitoAppSyncConfig( + apiUrl: $checkedConvert('ApiUrl', (v) => v as String), + region: $checkedConvert('Region', (v) => v as String), + authMode: $checkedConvert( + 'AuthMode', + (v) => $enumDecode(_$APIAuthorizationTypeEnumMap, v), + ), + apiKey: $checkedConvert('ApiKey', (v) => v as String?), + clientDatabasePrefix: $checkedConvert( + 'ClientDatabasePrefix', + (v) => v as String, + ), ); + return val; + }, + fieldKeyMap: const { + 'apiUrl': 'ApiUrl', + 'region': 'Region', + 'authMode': 'AuthMode', + 'apiKey': 'ApiKey', + 'clientDatabasePrefix': 'ClientDatabasePrefix', + }, +); Map _$CognitoAppSyncConfigToJson( - CognitoAppSyncConfig instance) { - final val = { - 'ApiUrl': instance.apiUrl, - 'Region': instance.region, - 'AuthMode': _$APIAuthorizationTypeEnumMap[instance.authMode]!, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('ApiKey', instance.apiKey); - val['ClientDatabasePrefix'] = instance.clientDatabasePrefix; - return val; -} + CognitoAppSyncConfig instance, +) => { + 'ApiUrl': instance.apiUrl, + 'Region': instance.region, + 'AuthMode': _$APIAuthorizationTypeEnumMap[instance.authMode]!, + if (instance.apiKey case final value?) 'ApiKey': value, + 'ClientDatabasePrefix': instance.clientDatabasePrefix, +}; const _$APIAuthorizationTypeEnumMap = { APIAuthorizationType.none: 'NONE', diff --git a/packages/amplify_core/lib/src/config/auth/cognito/auth.dart b/packages/amplify_core/lib/src/config/auth/cognito/auth.dart index 5f0e702a5b..15e2ac570c 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/auth.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/auth.dart @@ -38,15 +38,15 @@ class CognitoAuthConfig with AWSEquatable, AWSSerializable { @override List get props => [ - oAuth, - socialProviders, - usernameAttributes, - signupAttributes, - passwordProtectionSettings, - mfaConfiguration, - mfaTypes, - verificationMechanisms, - ]; + oAuth, + socialProviders, + usernameAttributes, + signupAttributes, + passwordProtectionSettings, + mfaConfiguration, + mfaTypes, + verificationMechanisms, + ]; CognitoAuthConfig copyWith({ CognitoOAuthConfig? oAuth, @@ -60,15 +60,18 @@ class CognitoAuthConfig with AWSEquatable, AWSSerializable { }) { return CognitoAuthConfig( oAuth: oAuth ?? this.oAuth, - socialProviders: socialProviders ?? + socialProviders: + socialProviders ?? (this.socialProviders == null ? null : List.of(this.socialProviders!)), - usernameAttributes: usernameAttributes ?? + usernameAttributes: + usernameAttributes ?? (this.usernameAttributes == null ? null : List.of(this.usernameAttributes!)), - signupAttributes: signupAttributes ?? + signupAttributes: + signupAttributes ?? (this.signupAttributes == null ? null : List.of(this.signupAttributes!)), @@ -77,7 +80,8 @@ class CognitoAuthConfig with AWSEquatable, AWSSerializable { mfaConfiguration: mfaConfiguration ?? this.mfaConfiguration, mfaTypes: mfaTypes ?? (this.mfaTypes == null ? null : List.of(this.mfaTypes!)), - verificationMechanisms: verificationMechanisms ?? + verificationMechanisms: + verificationMechanisms ?? (this.verificationMechanisms == null ? null : List.of(this.verificationMechanisms!)), diff --git a/packages/amplify_core/lib/src/config/auth/cognito/auth.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/auth.g.dart index 6bbb532080..5c0e0d389c 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/auth.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/auth.g.dart @@ -9,99 +9,106 @@ part of 'auth.dart'; // ************************************************************************** CognitoAuthConfig _$CognitoAuthConfigFromJson(Map json) => - $checkedCreate( - 'CognitoAuthConfig', - json, - ($checkedConvert) { - final val = CognitoAuthConfig( - oAuth: $checkedConvert( - 'OAuth', - (v) => v == null + $checkedCreate('CognitoAuthConfig', json, ($checkedConvert) { + final val = CognitoAuthConfig( + oAuth: $checkedConvert( + 'OAuth', + (v) => + v == null ? null - : CognitoOAuthConfig.fromJson(v as Map)), - socialProviders: $checkedConvert( - 'socialProviders', - (v) => (v as List?) + : CognitoOAuthConfig.fromJson(v as Map), + ), + socialProviders: $checkedConvert( + 'socialProviders', + (v) => + (v as List?) ?.map((e) => $enumDecode(_$SocialProviderEnumMap, e)) - .toList()), - usernameAttributes: $checkedConvert( - 'usernameAttributes', - (v) => (v as List?) - ?.map((e) => - const CognitoUserAttributeKeyToUpperCaseConverter() - .fromJson(e as String)) - .toList()), - signupAttributes: $checkedConvert( - 'signupAttributes', - (v) => (v as List?) - ?.map((e) => - const CognitoUserAttributeKeyToUpperCaseConverter() - .fromJson(e as String)) - .toList()), - passwordProtectionSettings: $checkedConvert( - 'passwordProtectionSettings', - (v) => v == null + .toList(), + ), + usernameAttributes: $checkedConvert( + 'usernameAttributes', + (v) => + (v as List?) + ?.map( + (e) => const CognitoUserAttributeKeyToUpperCaseConverter() + .fromJson(e as String), + ) + .toList(), + ), + signupAttributes: $checkedConvert( + 'signupAttributes', + (v) => + (v as List?) + ?.map( + (e) => const CognitoUserAttributeKeyToUpperCaseConverter() + .fromJson(e as String), + ) + .toList(), + ), + passwordProtectionSettings: $checkedConvert( + 'passwordProtectionSettings', + (v) => + v == null ? null : PasswordProtectionSettings.fromJson( - v as Map)), - mfaConfiguration: $checkedConvert('mfaConfiguration', - (v) => $enumDecodeNullable(_$MfaConfigurationEnumMap, v)), - mfaTypes: $checkedConvert( - 'mfaTypes', - (v) => (v as List?) + v as Map, + ), + ), + mfaConfiguration: $checkedConvert( + 'mfaConfiguration', + (v) => $enumDecodeNullable(_$MfaConfigurationEnumMap, v), + ), + mfaTypes: $checkedConvert( + 'mfaTypes', + (v) => + (v as List?) ?.map((e) => $enumDecode(_$MfaTypeEnumMap, e)) - .toList()), - verificationMechanisms: $checkedConvert( - 'verificationMechanisms', - (v) => (v as List?) - ?.map((e) => - const CognitoUserAttributeKeyToUpperCaseConverter() - .fromJson(e as String)) - .toList()), - ); - return val; - }, - fieldKeyMap: const {'oAuth': 'OAuth'}, - ); + .toList(), + ), + verificationMechanisms: $checkedConvert( + 'verificationMechanisms', + (v) => + (v as List?) + ?.map( + (e) => const CognitoUserAttributeKeyToUpperCaseConverter() + .fromJson(e as String), + ) + .toList(), + ), + ); + return val; + }, fieldKeyMap: const {'oAuth': 'OAuth'}); -Map _$CognitoAuthConfigToJson(CognitoAuthConfig instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('OAuth', instance.oAuth?.toJson()); - writeNotNull( - 'socialProviders', - instance.socialProviders - ?.map((e) => _$SocialProviderEnumMap[e]!) - .toList()); - writeNotNull( - 'usernameAttributes', - instance.usernameAttributes +Map _$CognitoAuthConfigToJson( + CognitoAuthConfig instance, +) => { + if (instance.oAuth?.toJson() case final value?) 'OAuth': value, + if (instance.socialProviders?.map((e) => _$SocialProviderEnumMap[e]!).toList() + case final value?) + 'socialProviders': value, + if (instance.usernameAttributes ?.map(const CognitoUserAttributeKeyToUpperCaseConverter().toJson) - .toList()); - writeNotNull( - 'signupAttributes', - instance.signupAttributes + .toList() + case final value?) + 'usernameAttributes': value, + if (instance.signupAttributes ?.map(const CognitoUserAttributeKeyToUpperCaseConverter().toJson) - .toList()); - writeNotNull('passwordProtectionSettings', - instance.passwordProtectionSettings?.toJson()); - writeNotNull( - 'mfaConfiguration', _$MfaConfigurationEnumMap[instance.mfaConfiguration]); - writeNotNull( - 'mfaTypes', instance.mfaTypes?.map((e) => _$MfaTypeEnumMap[e]!).toList()); - writeNotNull( - 'verificationMechanisms', - instance.verificationMechanisms + .toList() + case final value?) + 'signupAttributes': value, + if (instance.passwordProtectionSettings?.toJson() case final value?) + 'passwordProtectionSettings': value, + if (_$MfaConfigurationEnumMap[instance.mfaConfiguration] case final value?) + 'mfaConfiguration': value, + if (instance.mfaTypes?.map((e) => _$MfaTypeEnumMap[e]!).toList() + case final value?) + 'mfaTypes': value, + if (instance.verificationMechanisms ?.map(const CognitoUserAttributeKeyToUpperCaseConverter().toJson) - .toList()); - return val; -} + .toList() + case final value?) + 'verificationMechanisms': value, +}; const _$SocialProviderEnumMap = { SocialProvider.facebook: 'FACEBOOK', diff --git a/packages/amplify_core/lib/src/config/auth/cognito/cognito_user_attribute_key_converter.dart b/packages/amplify_core/lib/src/config/auth/cognito/cognito_user_attribute_key_converter.dart index daf058c620..7929052a64 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/cognito_user_attribute_key_converter.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/cognito_user_attribute_key_converter.dart @@ -36,8 +36,10 @@ class CognitoUserAttributeKeyConverter class CognitoUserAttributeMapConverter implements - JsonConverter, - Map> { + JsonConverter< + Map, + Map + > { const CognitoUserAttributeMapConverter(); @override @@ -48,7 +50,5 @@ class CognitoUserAttributeMapConverter @override Map toJson(Map object) => - object.map( - (key, value) => MapEntry(key.toJson(), value), - ); + object.map((key, value) => MapEntry(key.toJson(), value)); } diff --git a/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.dart b/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.dart index 305dc97f1c..2ab372c0fc 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.dart @@ -8,9 +8,7 @@ part 'credentials_provider.g.dart'; typedef CognitoIdentityPoolConfig = CognitoIdentityCredentialsProvider; class CredentialsProviders extends AWSConfigMap { - const CredentialsProviders( - super.providers, - ); + const CredentialsProviders(super.providers); factory CredentialsProviders.fromJson(Map json) { final providers = json.map((key, value) { @@ -38,9 +36,10 @@ class CredentialsProviders extends AWSConfigMap { CredentialsProviders copy() => CredentialsProviders(configs); @override - CognitoIdentityCredentialsProvider? get default$ => (this['CognitoIdentity'] - as AWSConfigMap?) - ?.default$; + CognitoIdentityCredentialsProvider? get default$ => + (this['CognitoIdentity'] + as AWSConfigMap?) + ?.default$; } @zAwsSerializable @@ -53,8 +52,7 @@ class CognitoIdentityCredentialsProvider factory CognitoIdentityCredentialsProvider.fromJson( Map json, - ) => - _$CognitoIdentityCredentialsProviderFromJson(json); + ) => _$CognitoIdentityCredentialsProviderFromJson(json); static const configKey = 'CognitoIdentity'; final String poolId; diff --git a/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.g.dart index 7e1aaf69d9..089ab42145 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/credentials_provider.g.dart @@ -9,23 +9,20 @@ part of 'credentials_provider.dart'; // ************************************************************************** CognitoIdentityCredentialsProvider _$CognitoIdentityCredentialsProviderFromJson( - Map json) => - $checkedCreate( - 'CognitoIdentityCredentialsProvider', - json, - ($checkedConvert) { - final val = CognitoIdentityCredentialsProvider( - poolId: $checkedConvert('PoolId', (v) => v as String), - region: $checkedConvert('Region', (v) => v as String), - ); - return val; - }, - fieldKeyMap: const {'poolId': 'PoolId', 'region': 'Region'}, + Map json, +) => $checkedCreate( + 'CognitoIdentityCredentialsProvider', + json, + ($checkedConvert) { + final val = CognitoIdentityCredentialsProvider( + poolId: $checkedConvert('PoolId', (v) => v as String), + region: $checkedConvert('Region', (v) => v as String), ); + return val; + }, + fieldKeyMap: const {'poolId': 'PoolId', 'region': 'Region'}, +); Map _$CognitoIdentityCredentialsProviderToJson( - CognitoIdentityCredentialsProvider instance) => - { - 'PoolId': instance.poolId, - 'Region': instance.region, - }; + CognitoIdentityCredentialsProvider instance, +) => {'PoolId': instance.poolId, 'Region': instance.region}; diff --git a/packages/amplify_core/lib/src/config/auth/cognito/identity_manager.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/identity_manager.g.dart index e9b3c7f5af..fbc8c28734 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/identity_manager.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/identity_manager.g.dart @@ -9,16 +9,12 @@ part of 'identity_manager.dart'; // ************************************************************************** CognitoIdentityManager _$CognitoIdentityManagerFromJson( - Map json) => - $checkedCreate( - 'CognitoIdentityManager', - json, - ($checkedConvert) { - final val = CognitoIdentityManager(); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoIdentityManager', json, ($checkedConvert) { + final val = CognitoIdentityManager(); + return val; +}); Map _$CognitoIdentityManagerToJson( - CognitoIdentityManager instance) => - {}; + CognitoIdentityManager instance, +) => {}; diff --git a/packages/amplify_core/lib/src/config/auth/cognito/oauth.dart b/packages/amplify_core/lib/src/config/auth/cognito/oauth.dart index 6f9863b507..955cb34e03 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/oauth.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/oauth.dart @@ -110,19 +110,19 @@ class CognitoOAuthConfig @override List get props => [ - webDomain, - appClientId, - appClientSecret, - signInRedirectUri, - signInUri, - signInUriQueryParameters, - signOutRedirectUri, - signOutUri, - signOutUriQueryParameters, - tokenUri, - tokenUriQueryParameters, - scopes, - ]; + webDomain, + appClientId, + appClientSecret, + signInRedirectUri, + signInUri, + signInUriQueryParameters, + signOutRedirectUri, + signOutUri, + signOutUriQueryParameters, + tokenUri, + tokenUriQueryParameters, + scopes, + ]; CognitoOAuthConfig copyWith({ String? webDomain, @@ -144,18 +144,21 @@ class CognitoOAuthConfig appClientSecret: appClientSecret ?? this.appClientSecret, signInRedirectUri: signInRedirectUri ?? this.signInRedirectUri, signInUri: signInUri ?? this.signInUri, - signInUriQueryParameters: signInUriQueryParameters ?? + signInUriQueryParameters: + signInUriQueryParameters ?? (this.signInUriQueryParameters == null ? null : Map.of(this.signInUriQueryParameters!)), signOutRedirectUri: signOutRedirectUri ?? this.signOutRedirectUri, signOutUri: signOutUri ?? this.signOutUri, - signOutUriQueryParameters: signOutUriQueryParameters ?? + signOutUriQueryParameters: + signOutUriQueryParameters ?? (this.signOutUriQueryParameters == null ? null : Map.of(this.signOutUriQueryParameters!)), tokenUri: tokenUri ?? this.tokenUri, - tokenUriQueryParameters: tokenUriQueryParameters ?? + tokenUriQueryParameters: + tokenUriQueryParameters ?? (this.tokenUriQueryParameters == null ? null : Map.of(this.tokenUriQueryParameters!)), diff --git a/packages/amplify_core/lib/src/config/auth/cognito/oauth.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/oauth.g.dart index 3c240bf1b5..a99625bc42 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/oauth.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/oauth.g.dart @@ -15,33 +15,44 @@ CognitoOAuthConfig _$CognitoOAuthConfigFromJson(Map json) => ($checkedConvert) { final val = CognitoOAuthConfig( appClientId: $checkedConvert('AppClientId', (v) => v as String), - appClientSecret: - $checkedConvert('AppClientSecret', (v) => v as String?), - scopes: $checkedConvert('Scopes', - (v) => (v as List).map((e) => e as String).toList()), - signInRedirectUri: - $checkedConvert('SignInRedirectURI', (v) => v as String), - signOutRedirectUri: - $checkedConvert('SignOutRedirectURI', (v) => v as String), + appClientSecret: $checkedConvert( + 'AppClientSecret', + (v) => v as String?, + ), + scopes: $checkedConvert( + 'Scopes', + (v) => (v as List).map((e) => e as String).toList(), + ), + signInRedirectUri: $checkedConvert( + 'SignInRedirectURI', + (v) => v as String, + ), + signOutRedirectUri: $checkedConvert( + 'SignOutRedirectURI', + (v) => v as String, + ), webDomain: $checkedConvert('WebDomain', (v) => v as String), signInUri: $checkedConvert('SignInURI', (v) => v as String?), signOutUri: $checkedConvert('SignOutURI', (v) => v as String?), tokenUri: $checkedConvert('TokenURI', (v) => v as String?), signInUriQueryParameters: $checkedConvert( - 'SignInURIQueryParameters', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), + 'SignInURIQueryParameters', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), signOutUriQueryParameters: $checkedConvert( - 'SignOutURIQueryParameters', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), + 'SignOutURIQueryParameters', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), tokenUriQueryParameters: $checkedConvert( - 'TokenURIQueryParameters', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), + 'TokenURIQueryParameters', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), ); return val; }, @@ -57,31 +68,25 @@ CognitoOAuthConfig _$CognitoOAuthConfigFromJson(Map json) => 'tokenUri': 'TokenURI', 'signInUriQueryParameters': 'SignInURIQueryParameters', 'signOutUriQueryParameters': 'SignOutURIQueryParameters', - 'tokenUriQueryParameters': 'TokenURIQueryParameters' + 'tokenUriQueryParameters': 'TokenURIQueryParameters', }, ); -Map _$CognitoOAuthConfigToJson(CognitoOAuthConfig instance) { - final val = { - 'WebDomain': instance.webDomain, - 'AppClientId': instance.appClientId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('AppClientSecret', instance.appClientSecret); - val['SignInRedirectURI'] = instance.signInRedirectUri; - writeNotNull('SignInURI', instance.signInUri); - writeNotNull('SignInURIQueryParameters', instance.signInUriQueryParameters); - val['SignOutRedirectURI'] = instance.signOutRedirectUri; - writeNotNull('SignOutURI', instance.signOutUri); - writeNotNull('SignOutURIQueryParameters', instance.signOutUriQueryParameters); - writeNotNull('TokenURI', instance.tokenUri); - writeNotNull('TokenURIQueryParameters', instance.tokenUriQueryParameters); - val['Scopes'] = instance.scopes; - return val; -} +Map _$CognitoOAuthConfigToJson(CognitoOAuthConfig instance) => + { + 'WebDomain': instance.webDomain, + 'AppClientId': instance.appClientId, + if (instance.appClientSecret case final value?) 'AppClientSecret': value, + 'SignInRedirectURI': instance.signInRedirectUri, + if (instance.signInUri case final value?) 'SignInURI': value, + if (instance.signInUriQueryParameters case final value?) + 'SignInURIQueryParameters': value, + 'SignOutRedirectURI': instance.signOutRedirectUri, + if (instance.signOutUri case final value?) 'SignOutURI': value, + if (instance.signOutUriQueryParameters case final value?) + 'SignOutURIQueryParameters': value, + if (instance.tokenUri case final value?) 'TokenURI': value, + if (instance.tokenUriQueryParameters case final value?) + 'TokenURIQueryParameters': value, + 'Scopes': instance.scopes, + }; diff --git a/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.dart b/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.dart index a396445594..c6157a2f56 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.dart @@ -23,9 +23,9 @@ class PasswordProtectionSettings @override List get props => [ - passwordPolicyMinLength, - passwordPolicyCharacters, - ]; + passwordPolicyMinLength, + passwordPolicyCharacters, + ]; PasswordProtectionSettings copyWith({ int? passwordPolicyMinLength, @@ -54,7 +54,7 @@ enum PasswordPolicyCharacters { requiresNumbers, @JsonValue('REQUIRES_SYMBOLS') - requiresSymbols + requiresSymbols, } class _PasswordPolicyMinLengthConverter diff --git a/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.g.dart index 0a1110df95..b4c1e1562f 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/password_protection_settings.g.dart @@ -9,46 +9,38 @@ part of 'password_protection_settings.dart'; // ************************************************************************** PasswordProtectionSettings _$PasswordProtectionSettingsFromJson( - Map json) => - $checkedCreate( - 'PasswordProtectionSettings', - json, - ($checkedConvert) { - final val = PasswordProtectionSettings( - passwordPolicyMinLength: $checkedConvert('passwordPolicyMinLength', - (v) => const _PasswordPolicyMinLengthConverter().fromJson(v)), - passwordPolicyCharacters: $checkedConvert( - 'passwordPolicyCharacters', - (v) => - (v as List?) - ?.map((e) => - $enumDecode(_$PasswordPolicyCharactersEnumMap, e)) - .toList() ?? - const []), - ); - return val; - }, - ); - -Map _$PasswordProtectionSettingsToJson( - PasswordProtectionSettings instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull( + Map json, +) => $checkedCreate('PasswordProtectionSettings', json, ($checkedConvert) { + final val = PasswordProtectionSettings( + passwordPolicyMinLength: $checkedConvert( 'passwordPolicyMinLength', - const _PasswordPolicyMinLengthConverter() - .toJson(instance.passwordPolicyMinLength)); - val['passwordPolicyCharacters'] = instance.passwordPolicyCharacters - .map((e) => _$PasswordPolicyCharactersEnumMap[e]!) - .toList(); + (v) => const _PasswordPolicyMinLengthConverter().fromJson(v), + ), + passwordPolicyCharacters: $checkedConvert( + 'passwordPolicyCharacters', + (v) => + (v as List?) + ?.map((e) => $enumDecode(_$PasswordPolicyCharactersEnumMap, e)) + .toList() ?? + const [], + ), + ); return val; -} +}); + +Map _$PasswordProtectionSettingsToJson( + PasswordProtectionSettings instance, +) => { + if (const _PasswordPolicyMinLengthConverter().toJson( + instance.passwordPolicyMinLength, + ) + case final value?) + 'passwordPolicyMinLength': value, + 'passwordPolicyCharacters': + instance.passwordPolicyCharacters + .map((e) => _$PasswordPolicyCharactersEnumMap[e]!) + .toList(), +}; const _$PasswordPolicyCharactersEnumMap = { PasswordPolicyCharacters.requiresLowercase: 'REQUIRES_LOWERCASE', diff --git a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.dart b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.dart index a904c2e118..3ed6d9e29a 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.dart @@ -22,10 +22,7 @@ class CognitoPinpointAnalyticsConfig @override List get props => [appId, region]; - CognitoPinpointAnalyticsConfig copyWith({ - String? appId, - String? region, - }) { + CognitoPinpointAnalyticsConfig copyWith({String? appId, String? region}) { return CognitoPinpointAnalyticsConfig( appId: appId ?? this.appId, region: region ?? this.region, diff --git a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.g.dart index 1976806067..8415fac7b8 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_analytics.g.dart @@ -9,23 +9,20 @@ part of 'pinpoint_analytics.dart'; // ************************************************************************** CognitoPinpointAnalyticsConfig _$CognitoPinpointAnalyticsConfigFromJson( - Map json) => - $checkedCreate( - 'CognitoPinpointAnalyticsConfig', - json, - ($checkedConvert) { - final val = CognitoPinpointAnalyticsConfig( - appId: $checkedConvert('AppId', (v) => v as String), - region: $checkedConvert('Region', (v) => v as String), - ); - return val; - }, - fieldKeyMap: const {'appId': 'AppId', 'region': 'Region'}, + Map json, +) => $checkedCreate( + 'CognitoPinpointAnalyticsConfig', + json, + ($checkedConvert) { + final val = CognitoPinpointAnalyticsConfig( + appId: $checkedConvert('AppId', (v) => v as String), + region: $checkedConvert('Region', (v) => v as String), ); + return val; + }, + fieldKeyMap: const {'appId': 'AppId', 'region': 'Region'}, +); Map _$CognitoPinpointAnalyticsConfigToJson( - CognitoPinpointAnalyticsConfig instance) => - { - 'AppId': instance.appId, - 'Region': instance.region, - }; + CognitoPinpointAnalyticsConfig instance, +) => {'AppId': instance.appId, 'Region': instance.region}; diff --git a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.dart b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.dart index ed60e03fd1..d5a23aefea 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.dart @@ -8,9 +8,7 @@ part 'pinpoint_targeting.g.dart'; @zAwsSerializable class CognitoPinpointTargetingConfig with AWSEquatable, AWSSerializable { - const CognitoPinpointTargetingConfig({ - required this.region, - }); + const CognitoPinpointTargetingConfig({required this.region}); factory CognitoPinpointTargetingConfig.fromJson(Map json) => _$CognitoPinpointTargetingConfigFromJson(json); @@ -20,9 +18,7 @@ class CognitoPinpointTargetingConfig @override List get props => [region]; - CognitoPinpointTargetingConfig copyWith({ - String? region, - }) { + CognitoPinpointTargetingConfig copyWith({String? region}) { return CognitoPinpointTargetingConfig(region: region ?? this.region); } diff --git a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.g.dart index a9130a51a2..17e6f8dcbf 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/pinpoint_targeting.g.dart @@ -9,21 +9,14 @@ part of 'pinpoint_targeting.dart'; // ************************************************************************** CognitoPinpointTargetingConfig _$CognitoPinpointTargetingConfigFromJson( - Map json) => - $checkedCreate( - 'CognitoPinpointTargetingConfig', - json, - ($checkedConvert) { - final val = CognitoPinpointTargetingConfig( - region: $checkedConvert('Region', (v) => v as String), - ); - return val; - }, - fieldKeyMap: const {'region': 'Region'}, - ); + Map json, +) => $checkedCreate('CognitoPinpointTargetingConfig', json, ($checkedConvert) { + final val = CognitoPinpointTargetingConfig( + region: $checkedConvert('Region', (v) => v as String), + ); + return val; +}, fieldKeyMap: const {'region': 'Region'}); Map _$CognitoPinpointTargetingConfigToJson( - CognitoPinpointTargetingConfig instance) => - { - 'Region': instance.region, - }; + CognitoPinpointTargetingConfig instance, +) => {'Region': instance.region}; diff --git a/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.dart b/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.dart index 58a9f0e3bb..63c5b9b552 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.dart @@ -7,10 +7,7 @@ part 's3_transfer_utility.g.dart'; @zAwsSerializable class S3TransferUtility with AWSEquatable, AWSSerializable { - const S3TransferUtility({ - required this.bucket, - required this.region, - }); + const S3TransferUtility({required this.bucket, required this.region}); factory S3TransferUtility.fromJson(Map json) => _$S3TransferUtilityFromJson(json); @@ -19,15 +16,9 @@ class S3TransferUtility with AWSEquatable, AWSSerializable { final String region; @override - List get props => [ - bucket, - region, - ]; - - S3TransferUtility copyWith({ - String? bucket, - String? region, - }) { + List get props => [bucket, region]; + + S3TransferUtility copyWith({String? bucket, String? region}) { return S3TransferUtility( bucket: bucket ?? this.bucket, region: region ?? this.region, diff --git a/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.g.dart index 5032deac88..3c5fc6de0f 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/s3_transfer_utility.g.dart @@ -9,21 +9,13 @@ part of 's3_transfer_utility.dart'; // ************************************************************************** S3TransferUtility _$S3TransferUtilityFromJson(Map json) => - $checkedCreate( - 'S3TransferUtility', - json, - ($checkedConvert) { - final val = S3TransferUtility( - bucket: $checkedConvert('Bucket', (v) => v as String), - region: $checkedConvert('Region', (v) => v as String), - ); - return val; - }, - fieldKeyMap: const {'bucket': 'Bucket', 'region': 'Region'}, - ); + $checkedCreate('S3TransferUtility', json, ($checkedConvert) { + final val = S3TransferUtility( + bucket: $checkedConvert('Bucket', (v) => v as String), + region: $checkedConvert('Region', (v) => v as String), + ); + return val; + }, fieldKeyMap: const {'bucket': 'Bucket', 'region': 'Region'}); Map _$S3TransferUtilityToJson(S3TransferUtility instance) => - { - 'Bucket': instance.bucket, - 'Region': instance.region, - }; + {'Bucket': instance.bucket, 'Region': instance.region}; diff --git a/packages/amplify_core/lib/src/config/auth/cognito/user_pool.dart b/packages/amplify_core/lib/src/config/auth/cognito/user_pool.dart index 9a6e8a8d02..cf25221cba 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/user_pool.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/user_pool.dart @@ -36,9 +36,10 @@ class CognitoUserPoolConfig appClientId: authOutputs.userPoolClientId!, appClientSecret: authOutputs.appClientSecret, region: authOutputs.awsRegion, - hostedUI: authOutputs.oauth == null - ? null - : CognitoOAuthConfig.fromAuthOutputs(authOutputs), + hostedUI: + authOutputs.oauth == null + ? null + : CognitoOAuthConfig.fromAuthOutputs(authOutputs), ); } @@ -53,13 +54,13 @@ class CognitoUserPoolConfig @override List get props => [ - poolId, - appClientId, - appClientSecret, - region, - hostedUI, - endpoint, - ]; + poolId, + appClientId, + appClientSecret, + region, + hostedUI, + endpoint, + ]; CognitoUserPoolConfig copyWith({ String? poolId, diff --git a/packages/amplify_core/lib/src/config/auth/cognito/user_pool.g.dart b/packages/amplify_core/lib/src/config/auth/cognito/user_pool.g.dart index 7d9b5a3384..3c3875fe89 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito/user_pool.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito/user_pool.g.dart @@ -9,52 +9,44 @@ part of 'user_pool.dart'; // ************************************************************************** CognitoUserPoolConfig _$CognitoUserPoolConfigFromJson( - Map json) => - $checkedCreate( - 'CognitoUserPoolConfig', - json, - ($checkedConvert) { - final val = CognitoUserPoolConfig( - poolId: $checkedConvert('PoolId', (v) => v as String), - appClientId: $checkedConvert('AppClientId', (v) => v as String), - appClientSecret: - $checkedConvert('AppClientSecret', (v) => v as String?), - region: $checkedConvert('Region', (v) => v as String), - hostedUI: $checkedConvert( - 'HostedUI', - (v) => v == null - ? null - : CognitoOAuthConfig.fromJson(v as Map)), - endpoint: $checkedConvert('Endpoint', (v) => v as String?), - ); - return val; - }, - fieldKeyMap: const { - 'poolId': 'PoolId', - 'appClientId': 'AppClientId', - 'appClientSecret': 'AppClientSecret', - 'region': 'Region', - 'hostedUI': 'HostedUI', - 'endpoint': 'Endpoint' - }, + Map json, +) => $checkedCreate( + 'CognitoUserPoolConfig', + json, + ($checkedConvert) { + final val = CognitoUserPoolConfig( + poolId: $checkedConvert('PoolId', (v) => v as String), + appClientId: $checkedConvert('AppClientId', (v) => v as String), + appClientSecret: $checkedConvert('AppClientSecret', (v) => v as String?), + region: $checkedConvert('Region', (v) => v as String), + hostedUI: $checkedConvert( + 'HostedUI', + (v) => + v == null + ? null + : CognitoOAuthConfig.fromJson(v as Map), + ), + endpoint: $checkedConvert('Endpoint', (v) => v as String?), ); + return val; + }, + fieldKeyMap: const { + 'poolId': 'PoolId', + 'appClientId': 'AppClientId', + 'appClientSecret': 'AppClientSecret', + 'region': 'Region', + 'hostedUI': 'HostedUI', + 'endpoint': 'Endpoint', + }, +); Map _$CognitoUserPoolConfigToJson( - CognitoUserPoolConfig instance) { - final val = { - 'PoolId': instance.poolId, - 'AppClientId': instance.appClientId, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('AppClientSecret', instance.appClientSecret); - val['Region'] = instance.region; - writeNotNull('HostedUI', instance.hostedUI?.toJson()); - writeNotNull('Endpoint', instance.endpoint); - return val; -} + CognitoUserPoolConfig instance, +) => { + 'PoolId': instance.poolId, + 'AppClientId': instance.appClientId, + if (instance.appClientSecret case final value?) 'AppClientSecret': value, + 'Region': instance.region, + if (instance.hostedUI?.toJson() case final value?) 'HostedUI': value, + if (instance.endpoint case final value?) 'Endpoint': value, +}; diff --git a/packages/amplify_core/lib/src/config/auth/cognito_config.dart b/packages/amplify_core/lib/src/config/auth/cognito_config.dart index 7f84f61744..cb5f905ea6 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito_config.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito_config.dart @@ -83,17 +83,17 @@ class CognitoPluginConfig @override List get props => [ - userAgent, - version, - identityManager, - credentialsProvider, - cognitoUserPool, - auth, - appSync, - pinpointAnalytics, - pinpointTargeting, - s3TransferUtility, - ]; + userAgent, + version, + identityManager, + credentialsProvider, + cognitoUserPool, + auth, + appSync, + pinpointAnalytics, + pinpointTargeting, + s3TransferUtility, + ]; CognitoPluginConfig copyWith({ String? userAgent, diff --git a/packages/amplify_core/lib/src/config/auth/cognito_config.g.dart b/packages/amplify_core/lib/src/config/auth/cognito_config.g.dart index c02214cc4c..12d96a4399 100644 --- a/packages/amplify_core/lib/src/config/auth/cognito_config.g.dart +++ b/packages/amplify_core/lib/src/config/auth/cognito_config.g.dart @@ -8,112 +8,141 @@ part of 'cognito_config.dart'; // JsonSerializableGenerator // ************************************************************************** -CognitoPluginConfig _$CognitoPluginConfigFromJson(Map json) => - $checkedCreate( - 'CognitoPluginConfig', - json, - ($checkedConvert) { - final val = CognitoPluginConfig( - userAgent: $checkedConvert( - 'UserAgent', (v) => v as String? ?? 'aws-amplify-cli/0.1.0'), - version: $checkedConvert('Version', (v) => v as String? ?? '0.1.0'), - identityManager: $checkedConvert( - 'IdentityManager', - (v) => v == null - ? null - : AWSConfigMap.fromJson( - v as Map, - (value) => CognitoIdentityManager.fromJson( - value as Map))), - credentialsProvider: $checkedConvert( - 'CredentialsProvider', - (v) => v == null - ? null - : CredentialsProviders.fromJson(v as Map)), - cognitoUserPool: $checkedConvert( - 'CognitoUserPool', - (v) => v == null - ? null - : AWSConfigMap.fromJson( - v as Map, - (value) => CognitoUserPoolConfig.fromJson( - value as Map))), - auth: $checkedConvert( - 'Auth', - (v) => v == null - ? null - : AWSConfigMap.fromJson( - v as Map, - (value) => CognitoAuthConfig.fromJson( - value as Map))), - appSync: $checkedConvert( - 'AppSync', - (v) => v == null - ? null - : AWSConfigMap.fromJson( - v as Map, - (value) => CognitoAppSyncConfig.fromJson( - value as Map))), - pinpointAnalytics: $checkedConvert( - 'PinpointAnalytics', - (v) => v == null - ? null - : AWSConfigMap.fromJson( - v as Map, - (value) => CognitoPinpointAnalyticsConfig.fromJson( - value as Map))), - pinpointTargeting: $checkedConvert( - 'PinpointTargeting', - (v) => v == null - ? null - : AWSConfigMap.fromJson( - v as Map, - (value) => CognitoPinpointTargetingConfig.fromJson( - value as Map))), - s3TransferUtility: $checkedConvert( - 'S3TransferUtility', - (v) => v == null - ? null - : AWSConfigMap.fromJson( - v as Map, - (value) => S3TransferUtility.fromJson( - value as Map))), - ); - return val; - }, - fieldKeyMap: const { - 'userAgent': 'UserAgent', - 'version': 'Version', - 'identityManager': 'IdentityManager', - 'credentialsProvider': 'CredentialsProvider', - 'cognitoUserPool': 'CognitoUserPool', - 'auth': 'Auth', - 'appSync': 'AppSync', - 'pinpointAnalytics': 'PinpointAnalytics', - 'pinpointTargeting': 'PinpointTargeting', - 's3TransferUtility': 'S3TransferUtility' - }, +CognitoPluginConfig _$CognitoPluginConfigFromJson( + Map json, +) => $checkedCreate( + 'CognitoPluginConfig', + json, + ($checkedConvert) { + final val = CognitoPluginConfig( + userAgent: $checkedConvert( + 'UserAgent', + (v) => v as String? ?? 'aws-amplify-cli/0.1.0', + ), + version: $checkedConvert('Version', (v) => v as String? ?? '0.1.0'), + identityManager: $checkedConvert( + 'IdentityManager', + (v) => + v == null + ? null + : AWSConfigMap.fromJson( + v as Map, + (value) => CognitoIdentityManager.fromJson( + value as Map, + ), + ), + ), + credentialsProvider: $checkedConvert( + 'CredentialsProvider', + (v) => + v == null + ? null + : CredentialsProviders.fromJson(v as Map), + ), + cognitoUserPool: $checkedConvert( + 'CognitoUserPool', + (v) => + v == null + ? null + : AWSConfigMap.fromJson( + v as Map, + (value) => CognitoUserPoolConfig.fromJson( + value as Map, + ), + ), + ), + auth: $checkedConvert( + 'Auth', + (v) => + v == null + ? null + : AWSConfigMap.fromJson( + v as Map, + (value) => + CognitoAuthConfig.fromJson(value as Map), + ), + ), + appSync: $checkedConvert( + 'AppSync', + (v) => + v == null + ? null + : AWSConfigMap.fromJson( + v as Map, + (value) => CognitoAppSyncConfig.fromJson( + value as Map, + ), + ), + ), + pinpointAnalytics: $checkedConvert( + 'PinpointAnalytics', + (v) => + v == null + ? null + : AWSConfigMap.fromJson( + v as Map, + (value) => CognitoPinpointAnalyticsConfig.fromJson( + value as Map, + ), + ), + ), + pinpointTargeting: $checkedConvert( + 'PinpointTargeting', + (v) => + v == null + ? null + : AWSConfigMap.fromJson( + v as Map, + (value) => CognitoPinpointTargetingConfig.fromJson( + value as Map, + ), + ), + ), + s3TransferUtility: $checkedConvert( + 'S3TransferUtility', + (v) => + v == null + ? null + : AWSConfigMap.fromJson( + v as Map, + (value) => + S3TransferUtility.fromJson(value as Map), + ), + ), ); + return val; + }, + fieldKeyMap: const { + 'userAgent': 'UserAgent', + 'version': 'Version', + 'identityManager': 'IdentityManager', + 'credentialsProvider': 'CredentialsProvider', + 'cognitoUserPool': 'CognitoUserPool', + 'auth': 'Auth', + 'appSync': 'AppSync', + 'pinpointAnalytics': 'PinpointAnalytics', + 'pinpointTargeting': 'PinpointTargeting', + 's3TransferUtility': 'S3TransferUtility', + }, +); -Map _$CognitoPluginConfigToJson(CognitoPluginConfig instance) { - final val = { - 'UserAgent': instance.userAgent, - 'Version': instance.version, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('IdentityManager', instance.identityManager?.toJson()); - writeNotNull('CredentialsProvider', instance.credentialsProvider?.toJson()); - writeNotNull('CognitoUserPool', instance.cognitoUserPool?.toJson()); - writeNotNull('Auth', instance.auth?.toJson()); - writeNotNull('AppSync', instance.appSync?.toJson()); - writeNotNull('PinpointAnalytics', instance.pinpointAnalytics?.toJson()); - writeNotNull('PinpointTargeting', instance.pinpointTargeting?.toJson()); - writeNotNull('S3TransferUtility', instance.s3TransferUtility?.toJson()); - return val; -} +Map _$CognitoPluginConfigToJson( + CognitoPluginConfig instance, +) => { + 'UserAgent': instance.userAgent, + 'Version': instance.version, + if (instance.identityManager?.toJson() case final value?) + 'IdentityManager': value, + if (instance.credentialsProvider?.toJson() case final value?) + 'CredentialsProvider': value, + if (instance.cognitoUserPool?.toJson() case final value?) + 'CognitoUserPool': value, + if (instance.auth?.toJson() case final value?) 'Auth': value, + if (instance.appSync?.toJson() case final value?) 'AppSync': value, + if (instance.pinpointAnalytics?.toJson() case final value?) + 'PinpointAnalytics': value, + if (instance.pinpointTargeting?.toJson() case final value?) + 'PinpointTargeting': value, + if (instance.s3TransferUtility?.toJson() case final value?) + 'S3TransferUtility': value, +}; diff --git a/packages/amplify_core/lib/src/config/config_map.dart b/packages/amplify_core/lib/src/config/config_map.dart index f0dac96a63..4dc366c6f9 100644 --- a/packages/amplify_core/lib/src/config/config_map.dart +++ b/packages/amplify_core/lib/src/config/config_map.dart @@ -62,16 +62,11 @@ class AWSConfigMap extends ConfigMap { factory AWSConfigMap.fromJson( Map json, T Function(Object? json) fromJsonT, - ) => - _$AWSConfigMapFromJson( - {'configs': json}, - fromJsonT, - ); + ) => _$AWSConfigMapFromJson({'configs': json}, fromJsonT); /// Creates an [AWSConfigMap] with a single, default, [value]. - factory AWSConfigMap.withDefault(T value) => AWSConfigMap({ - _defaultKey: value, - }); + factory AWSConfigMap.withDefault(T value) => + AWSConfigMap({_defaultKey: value}); static const _defaultKey = 'Default'; diff --git a/packages/amplify_core/lib/src/config/config_map.g.dart b/packages/amplify_core/lib/src/config/config_map.g.dart index 97dec4f7f3..777842b42c 100644 --- a/packages/amplify_core/lib/src/config/config_map.g.dart +++ b/packages/amplify_core/lib/src/config/config_map.g.dart @@ -11,18 +11,13 @@ part of 'config_map.dart'; AWSConfigMap _$AWSConfigMapFromJson>( Map json, T Function(Object? json) fromJsonT, -) => - $checkedCreate( - 'AWSConfigMap', - json, - ($checkedConvert) { - final val = AWSConfigMap( - $checkedConvert( - 'configs', - (v) => (v as Map).map( - (k, e) => MapEntry(k, fromJsonT(e)), - )), - ); - return val; - }, - ); +) => $checkedCreate('AWSConfigMap', json, ($checkedConvert) { + final val = AWSConfigMap( + $checkedConvert( + 'configs', + (v) => + (v as Map).map((k, e) => MapEntry(k, fromJsonT(e))), + ), + ); + return val; +}); diff --git a/packages/amplify_core/lib/src/config/notifications/notifications_config.dart b/packages/amplify_core/lib/src/config/notifications/notifications_config.dart index 4a250b5420..a69d7f9fa8 100644 --- a/packages/amplify_core/lib/src/config/notifications/notifications_config.dart +++ b/packages/amplify_core/lib/src/config/notifications/notifications_config.dart @@ -15,9 +15,8 @@ part 'notifications_config.g.dart'; @zAmplifySerializable class NotificationsConfig extends AmplifyPluginConfigMap { /// {@macro amplify_core.notifications_config} - const NotificationsConfig({ - required Map plugins, - }) : super(plugins); + const NotificationsConfig({required Map plugins}) + : super(plugins); factory NotificationsConfig.fromJson(Map json) => _$NotificationsConfigFromJson(json); diff --git a/packages/amplify_core/lib/src/config/notifications/notifications_config.g.dart b/packages/amplify_core/lib/src/config/notifications/notifications_config.g.dart index 1500a4a93a..1148a59829 100644 --- a/packages/amplify_core/lib/src/config/notifications/notifications_config.g.dart +++ b/packages/amplify_core/lib/src/config/notifications/notifications_config.g.dart @@ -9,20 +9,18 @@ part of 'notifications_config.dart'; // ************************************************************************** NotificationsConfig _$NotificationsConfigFromJson(Map json) => - $checkedCreate( - 'NotificationsConfig', - json, - ($checkedConvert) { - final val = NotificationsConfig( - plugins: $checkedConvert( - 'plugins', (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v)), - ); - return val; - }, - ); + $checkedCreate('NotificationsConfig', json, ($checkedConvert) { + final val = NotificationsConfig( + plugins: $checkedConvert( + 'plugins', + (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v), + ), + ); + return val; + }); Map _$NotificationsConfigToJson( - NotificationsConfig instance) => - { - 'plugins': instance.plugins.map((k, e) => MapEntry(k, e.toJson())), - }; + NotificationsConfig instance, +) => { + 'plugins': instance.plugins.map((k, e) => MapEntry(k, e.toJson())), +}; diff --git a/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.dart b/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.dart index b2a15eec6d..46744b0088 100644 --- a/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.dart +++ b/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.dart @@ -39,8 +39,7 @@ class NotificationsPinpointPluginConfig factory NotificationsPinpointPluginConfig.fromJson( Map json, - ) => - _$NotificationsPinpointPluginConfigFromJson(json); + ) => _$NotificationsPinpointPluginConfigFromJson(json); /// The plugin's configuration key. static const pluginKey = 'awsPinpointPushNotificationsPlugin'; @@ -51,10 +50,7 @@ class NotificationsPinpointPluginConfig @override List get props => [appId, region]; - NotificationsPinpointPluginConfig copyWith({ - String? appId, - String? region, - }) { + NotificationsPinpointPluginConfig copyWith({String? appId, String? region}) { return NotificationsPinpointPluginConfig( appId: appId ?? this.appId, region: region ?? this.region, diff --git a/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.g.dart b/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.g.dart index 15c4e13d62..87c724fcfd 100644 --- a/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.g.dart +++ b/packages/amplify_core/lib/src/config/notifications/notifications_pinpoint_config.g.dart @@ -9,22 +9,17 @@ part of 'notifications_pinpoint_config.dart'; // ************************************************************************** NotificationsPinpointPluginConfig _$NotificationsPinpointPluginConfigFromJson( - Map json) => - $checkedCreate( - 'NotificationsPinpointPluginConfig', - json, - ($checkedConvert) { - final val = NotificationsPinpointPluginConfig( - appId: $checkedConvert('appId', (v) => v as String), - region: $checkedConvert('region', (v) => v as String), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('NotificationsPinpointPluginConfig', json, ( + $checkedConvert, +) { + final val = NotificationsPinpointPluginConfig( + appId: $checkedConvert('appId', (v) => v as String), + region: $checkedConvert('region', (v) => v as String), + ); + return val; +}); Map _$NotificationsPinpointPluginConfigToJson( - NotificationsPinpointPluginConfig instance) => - { - 'appId': instance.appId, - 'region': instance.region, - }; + NotificationsPinpointPluginConfig instance, +) => {'appId': instance.appId, 'region': instance.region}; diff --git a/packages/amplify_core/lib/src/config/storage/s3_config.dart b/packages/amplify_core/lib/src/config/storage/s3_config.dart index 1bb943557d..88a3539185 100644 --- a/packages/amplify_core/lib/src/config/storage/s3_config.dart +++ b/packages/amplify_core/lib/src/config/storage/s3_config.dart @@ -31,10 +31,7 @@ class S3PluginConfig with AWSEquatable, AWSSerializable implements AmplifyPluginConfig { /// {@macro amplify_core.s3_plugin_config} - const S3PluginConfig({ - required this.bucket, - required this.region, - }); + const S3PluginConfig({required this.bucket, required this.region}); factory S3PluginConfig.fromJson(Map json) => _$S3PluginConfigFromJson(json); @@ -49,15 +46,9 @@ class S3PluginConfig final String region; @override - List get props => [ - bucket, - region, - ]; + List get props => [bucket, region]; - S3PluginConfig copyWith({ - String? bucket, - String? region, - }) { + S3PluginConfig copyWith({String? bucket, String? region}) { return S3PluginConfig( bucket: bucket ?? this.bucket, region: region ?? this.region, diff --git a/packages/amplify_core/lib/src/config/storage/s3_config.g.dart b/packages/amplify_core/lib/src/config/storage/s3_config.g.dart index 78080b469c..426baeade6 100644 --- a/packages/amplify_core/lib/src/config/storage/s3_config.g.dart +++ b/packages/amplify_core/lib/src/config/storage/s3_config.g.dart @@ -9,20 +9,13 @@ part of 's3_config.dart'; // ************************************************************************** S3PluginConfig _$S3PluginConfigFromJson(Map json) => - $checkedCreate( - 'S3PluginConfig', - json, - ($checkedConvert) { - final val = S3PluginConfig( - bucket: $checkedConvert('bucket', (v) => v as String), - region: $checkedConvert('region', (v) => v as String), - ); - return val; - }, - ); + $checkedCreate('S3PluginConfig', json, ($checkedConvert) { + final val = S3PluginConfig( + bucket: $checkedConvert('bucket', (v) => v as String), + region: $checkedConvert('region', (v) => v as String), + ); + return val; + }); Map _$S3PluginConfigToJson(S3PluginConfig instance) => - { - 'bucket': instance.bucket, - 'region': instance.region, - }; + {'bucket': instance.bucket, 'region': instance.region}; diff --git a/packages/amplify_core/lib/src/config/storage/storage_config.dart b/packages/amplify_core/lib/src/config/storage/storage_config.dart index b86cda3399..843912496b 100644 --- a/packages/amplify_core/lib/src/config/storage/storage_config.dart +++ b/packages/amplify_core/lib/src/config/storage/storage_config.dart @@ -15,9 +15,8 @@ part 'storage_config.g.dart'; @zAmplifySerializable class StorageConfig extends AmplifyPluginConfigMap { /// {@macro amplify_core.storage_config} - const StorageConfig({ - required Map plugins, - }) : super(plugins); + const StorageConfig({required Map plugins}) + : super(plugins); factory StorageConfig.fromJson(Map json) => _$StorageConfigFromJson(json); @@ -41,9 +40,6 @@ class StorageConfig extends AmplifyPluginConfigMap { } final awsRegion = plugin.region; final bucketName = plugin.bucket; - return StorageOutputs( - awsRegion: awsRegion, - bucketName: bucketName, - ); + return StorageOutputs(awsRegion: awsRegion, bucketName: bucketName); } } diff --git a/packages/amplify_core/lib/src/config/storage/storage_config.g.dart b/packages/amplify_core/lib/src/config/storage/storage_config.g.dart index 87ee3b41bf..311f22f014 100644 --- a/packages/amplify_core/lib/src/config/storage/storage_config.g.dart +++ b/packages/amplify_core/lib/src/config/storage/storage_config.g.dart @@ -9,17 +9,15 @@ part of 'storage_config.dart'; // ************************************************************************** StorageConfig _$StorageConfigFromJson(Map json) => - $checkedCreate( - 'StorageConfig', - json, - ($checkedConvert) { - final val = StorageConfig( - plugins: $checkedConvert( - 'plugins', (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v)), - ); - return val; - }, - ); + $checkedCreate('StorageConfig', json, ($checkedConvert) { + final val = StorageConfig( + plugins: $checkedConvert( + 'plugins', + (v) => AmplifyPluginRegistry.pluginConfigsFromJson(v), + ), + ); + return val; + }); Map _$StorageConfigToJson(StorageConfig instance) => { diff --git a/packages/amplify_core/lib/src/http/amplify_category_method.dart b/packages/amplify_core/lib/src/http/amplify_category_method.dart index 97ee62251e..bbdbec51c1 100644 --- a/packages/amplify_core/lib/src/http/amplify_category_method.dart +++ b/packages/amplify_core/lib/src/http/amplify_category_method.dart @@ -141,10 +141,7 @@ enum PushNotificationsCategoryMethod with AmplifyCategoryMethod { } /// Identifies [fn] as originating from a call to [categoryMethod]. -R identifyCall( - AmplifyCategoryMethod categoryMethod, - R Function() fn, -) { +R identifyCall(AmplifyCategoryMethod categoryMethod, R Function() fn) { return runZoned( fn, zoneValues: { diff --git a/packages/amplify_core/lib/src/http/amplify_http_client.dart b/packages/amplify_core/lib/src/http/amplify_http_client.dart index 7a17ce5e28..922460c218 100644 --- a/packages/amplify_core/lib/src/http/amplify_http_client.dart +++ b/packages/amplify_core/lib/src/http/amplify_http_client.dart @@ -11,11 +11,9 @@ import 'package:amplify_core/src/http/amplify_category_method.dart'; /// {@endtemplate} class AmplifyHttpClient extends AWSBaseHttpClient { /// {@macro amplify_common.amplify_http_client} - AmplifyHttpClient( - DependencyManager dependencies, { - AWSHttpClient? baseClient, - }) : _userAgent = dependencies.getOrCreate(), - baseClient = baseClient ?? dependencies.getOrCreate(); + AmplifyHttpClient(DependencyManager dependencies, {AWSHttpClient? baseClient}) + : _userAgent = dependencies.getOrCreate(), + baseClient = baseClient ?? dependencies.getOrCreate(); @override final AWSHttpClient baseClient; diff --git a/packages/amplify_core/lib/src/http/amplify_user_agent.dart b/packages/amplify_core/lib/src/http/amplify_user_agent.dart index 4475bbd2b9..6245e735b8 100644 --- a/packages/amplify_core/lib/src/http/amplify_user_agent.dart +++ b/packages/amplify_core/lib/src/http/amplify_user_agent.dart @@ -12,13 +12,13 @@ import 'package:amplify_core/src/platform/platform.dart'; class AmplifyUserAgent { /// {@macro amplify_core.http.amplify_user_agent} AmplifyUserAgent() - : _components = { - if (zIsFlutter) - 'amplify-flutter/${Amplify.version}' - else - 'amplify-dart/${Amplify.version}', - osIdentifier, - }; + : _components = { + if (zIsFlutter) + 'amplify-flutter/${Amplify.version}' + else + 'amplify-dart/${Amplify.version}', + osIdentifier, + }; AmplifyUserAgent._(this._components); @@ -42,12 +42,7 @@ class AmplifyUserAgent { }) { final scopedUserAgent = _ScopedUserAgent(this); updates(scopedUserAgent); - return runZoned( - fn, - zoneValues: { - AmplifyUserAgent: scopedUserAgent, - }, - ); + return runZoned(fn, zoneValues: {AmplifyUserAgent: scopedUserAgent}); } @override @@ -60,8 +55,5 @@ class _ScopedUserAgent extends AmplifyUserAgent { final AmplifyUserAgent _base; @override - String toString() => { - ..._base._components, - ..._components, - }.join(' '); + String toString() => {..._base._components, ..._components}.join(' '); } diff --git a/packages/amplify_core/lib/src/hub/amplify_hub.dart b/packages/amplify_core/lib/src/hub/amplify_hub.dart index f1943aa489..4e41b0adea 100644 --- a/packages/amplify_core/lib/src/hub/amplify_hub.dart +++ b/packages/amplify_core/lib/src/hub/amplify_hub.dart @@ -26,7 +26,7 @@ abstract class AmplifyHub implements Closeable { /// The available streams for listening. Map>, Stream>> - get availableStreams; + get availableStreams; /// Listens to the Hub [channel] for events produced from all plugins in the /// channel's categories. @@ -35,7 +35,7 @@ abstract class AmplifyHub implements Closeable { /// [Stream.listen]. It must be of type `void Function(Object error)` or /// `void Function(Object error, StackTrace)`. StreamSubscription - listen>( + listen>( HubChannel channel, HubEventListener listener, { Function? onError, diff --git a/packages/amplify_core/lib/src/hub/amplify_hub_impl.dart b/packages/amplify_core/lib/src/hub/amplify_hub_impl.dart index 4852449bd0..f51b78db47 100644 --- a/packages/amplify_core/lib/src/hub/amplify_hub_impl.dart +++ b/packages/amplify_core/lib/src/hub/amplify_hub_impl.dart @@ -20,28 +20,34 @@ class AmplifyHubImpl extends AmplifyHub { static final AmplifyLogger _logger = AmplifyLogger.category(Category.hub); - final Map>, - StreamGroup>> _availableStreams = {}; - final Map>, - List>> _subscriptions = {}; + final Map< + HubChannel>, + StreamGroup> + > + _availableStreams = {}; + final Map< + HubChannel>, + List> + > + _subscriptions = {}; @override Map>, Stream>> - get availableStreams => UnmodifiableMapView({ - for (final channel in HubChannel.values) - channel: _initChannel(channel).stream, - }); + get availableStreams => UnmodifiableMapView({ + for (final channel in HubChannel.values) + channel: _initChannel(channel).stream, + }); - StreamGroup> - _initChannel>( - HubChannel channel, - ) { + StreamGroup> _initChannel< + HubEventPayload, + E extends HubEvent + >(HubChannel channel) { return _availableStreams[channel] ??= StreamGroup.broadcast(); } @override StreamSubscription - listen>( + listen>( HubChannel channel, HubEventListener listener, { Function? onError, @@ -49,7 +55,8 @@ class AmplifyHubImpl extends AmplifyHub { final stream = _initChannel(channel).stream.cast(); final subscription = stream.listen( listener, - onError: onError ?? + onError: + onError ?? (Object? e, StackTrace st) { _logger.error('Error in channel $channel', e, st); }, diff --git a/packages/amplify_core/lib/src/hub/hub_channel.dart b/packages/amplify_core/lib/src/hub/hub_channel.dart index c75d741bb9..9337e0e55a 100644 --- a/packages/amplify_core/lib/src/hub/hub_channel.dart +++ b/packages/amplify_core/lib/src/hub/hub_channel.dart @@ -18,5 +18,5 @@ enum HubChannel> { DataStore(), /// Events of the API category - Api(); + Api(), } diff --git a/packages/amplify_core/lib/src/platform/platform_html.dart b/packages/amplify_core/lib/src/platform/platform_html.dart index 0805eb22c8..a692ea8d3d 100644 --- a/packages/amplify_core/lib/src/platform/platform_html.dart +++ b/packages/amplify_core/lib/src/platform/platform_html.dart @@ -16,7 +16,8 @@ String get osIdentifier { // Order here is important since different browsers include each others' // tags in their user agents. Per MDN, this is for compatibility reasons: // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent - var identifier = _edgeRegex.firstMatch(userAgent)?.group(0) ?? + var identifier = + _edgeRegex.firstMatch(userAgent)?.group(0) ?? _operaRegex.firstMatch(userAgent)?.group(0) ?? _chromeRegex.firstMatch(userAgent)?.group(0) ?? _firefoxRegex.firstMatch(userAgent)?.group(0); diff --git a/packages/amplify_core/lib/src/platform/platform_io.dart b/packages/amplify_core/lib/src/platform/platform_io.dart index b25c84a173..231731b348 100644 --- a/packages/amplify_core/lib/src/platform/platform_io.dart +++ b/packages/amplify_core/lib/src/platform/platform_io.dart @@ -10,6 +10,6 @@ String get osIdentifier { final os = Platform.operatingSystem; final osVersion = _versionRegex.firstMatch(Platform.operatingSystemVersion)?.group(0) ?? - 'Unknown'; + 'Unknown'; return '$os/$osVersion'; } diff --git a/packages/amplify_core/lib/src/plugin/amplify_auth_plugin_interface.dart b/packages/amplify_core/lib/src/plugin/amplify_auth_plugin_interface.dart index 80521de18d..69bc863e61 100644 --- a/packages/amplify_core/lib/src/plugin/amplify_auth_plugin_interface.dart +++ b/packages/amplify_core/lib/src/plugin/amplify_auth_plugin_interface.dart @@ -58,9 +58,7 @@ abstract class AuthPluginInterface extends AmplifyPluginInterface { } /// {@macro amplify_core.amplify_auth_category.sign_out} - Future signOut({ - SignOutOptions? options, - }) { + Future signOut({SignOutOptions? options}) { throw UnimplementedError('signOut() has not been implemented'); } @@ -94,9 +92,7 @@ abstract class AuthPluginInterface extends AmplifyPluginInterface { } /// {@macro amplify_core.amplify_auth_category.get_current_user} - Future getCurrentUser({ - GetCurrentUserOptions? options, - }) { + Future getCurrentUser({GetCurrentUserOptions? options}) { throw UnimplementedError('getCurrentUser() has not been implemented.'); } @@ -108,9 +104,7 @@ abstract class AuthPluginInterface extends AmplifyPluginInterface { } /// {@macro amplify_core.amplify_auth_category.fetch_auth_session} - Future fetchAuthSession({ - FetchAuthSessionOptions? options, - }) { + Future fetchAuthSession({FetchAuthSessionOptions? options}) { throw UnimplementedError('fetchAuthSession() has not been implemented.'); } @@ -133,7 +127,7 @@ abstract class AuthPluginInterface extends AmplifyPluginInterface { /// {@macro amplify_core.amplify_auth_category.update_user_attributes} Future> - updateUserAttributes({ + updateUserAttributes({ required List attributes, UpdateUserAttributesOptions? options, }) { @@ -155,7 +149,7 @@ abstract class AuthPluginInterface extends AmplifyPluginInterface { /// {@macro amplify_core.amplify_auth_category.send_attribute_verification_code} Future - sendUserAttributeVerificationCode({ + sendUserAttributeVerificationCode({ required AuthUserAttributeKey userAttributeKey, SendUserAttributeVerificationCodeOptions? options, }) { @@ -165,9 +159,7 @@ abstract class AuthPluginInterface extends AmplifyPluginInterface { } /// {@macro amplify_core.amplify_auth_category.set_up_totp} - Future setUpTotp({ - TotpSetupOptions? options, - }) { + Future setUpTotp({TotpSetupOptions? options}) { throw UnimplementedError('setUpTotp() has not been implemented.'); } diff --git a/packages/amplify_core/lib/src/plugin/amplify_datastore_plugin_interface.dart b/packages/amplify_core/lib/src/plugin/amplify_datastore_plugin_interface.dart index 80bbbb389e..55cbc5cc3c 100644 --- a/packages/amplify_core/lib/src/plugin/amplify_datastore_plugin_interface.dart +++ b/packages/amplify_core/lib/src/plugin/amplify_datastore_plugin_interface.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_datastore_plugin_interface; +library; import 'dart:async'; diff --git a/packages/amplify_core/lib/src/plugin/amplify_plugin_interface.dart b/packages/amplify_core/lib/src/plugin/amplify_plugin_interface.dart index 587d1e2a1b..5593f57e84 100644 --- a/packages/amplify_core/lib/src/plugin/amplify_plugin_interface.dart +++ b/packages/amplify_core/lib/src/plugin/amplify_plugin_interface.dart @@ -16,8 +16,8 @@ abstract /* base */ class AmplifyPluginInterface { @protected @visibleForTesting late final DependencyManager dependencies = - // ignore: invalid_use_of_protected_member, invalid_use_of_visible_for_testing_member - DependencyManager.scoped(Amplify.dependencies); + // ignore: invalid_use_of_protected_member, invalid_use_of_visible_for_testing_member + DependencyManager.scoped(Amplify.dependencies); /// Called when the plugin is added to the category. @mustCallSuper diff --git a/packages/amplify_core/lib/src/plugin/amplify_storage_plugin_interface.dart b/packages/amplify_core/lib/src/plugin/amplify_storage_plugin_interface.dart index c4d874d8a0..4df48740e3 100644 --- a/packages/amplify_core/lib/src/plugin/amplify_storage_plugin_interface.dart +++ b/packages/amplify_core/lib/src/plugin/amplify_storage_plugin_interface.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_storage_plugin_interface; +library; import 'package:amplify_core/amplify_core.dart'; import 'package:meta/meta.dart'; diff --git a/packages/amplify_core/lib/src/state_machine/dependency_manager.dart b/packages/amplify_core/lib/src/state_machine/dependency_manager.dart index 966ddc6cd3..d2c1dfcf40 100644 --- a/packages/amplify_core/lib/src/state_machine/dependency_manager.dart +++ b/packages/amplify_core/lib/src/state_machine/dependency_manager.dart @@ -11,9 +11,8 @@ typedef DependencyBuilder = T Function(DependencyManager); /// {@endtemplate} class DependencyManager implements Closeable { /// {@macro amplify_core.dependency_manager} - DependencyManager([ - Map? builders, - ]) : _builders = builders ?? {} { + DependencyManager([Map? builders]) + : _builders = builders ?? {} { addInstance(this); } @@ -44,10 +43,7 @@ class DependencyManager implements Closeable { } /// Adds an instance to the service locator. - void addInstance( - T instance, [ - Token? token, - ]) { + void addInstance(T instance, [Token? token]) { token ??= Token(); // Close the current instance, if any. final currentInstance = get(token); @@ -119,15 +115,12 @@ class _ScopedDependencyManager extends DependencyManager { final DependencyManager _parent; Map get _allBuilders => { - ..._parent._builders, - ..._builders, - }; + ..._parent._builders, + ..._builders, + }; @override - void addInstance( - T instance, [ - Token? token, - ]) { + void addInstance(T instance, [Token? token]) { token ??= Token(); // Close the current instance, if any. final currentInstance = super.get(token); diff --git a/packages/amplify_core/lib/src/state_machine/event.dart b/packages/amplify_core/lib/src/state_machine/event.dart index ed67adb1cb..b7f6c3beb5 100644 --- a/packages/amplify_core/lib/src/state_machine/event.dart +++ b/packages/amplify_core/lib/src/state_machine/event.dart @@ -10,8 +10,10 @@ import 'package:meta/meta.dart'; /// Base class for discrete events of a state machine. /// {@endtemplate} @immutable -abstract base class StateMachineEvent +abstract base class StateMachineEvent< + EventType extends Object, + StateType extends Object +> with AWSEquatable>, AWSDebuggable { /// {@macro amplify_core.event} const StateMachineEvent(); @@ -24,19 +26,20 @@ abstract base class StateMachineEvent currentState, - ) => - null; + ) => null; } /// {@template amplify_core.event_completer} /// A [Completer] for [Event]s in a state machine, used to signal processing /// of a particular event which otherwise would be fired and forgotten. /// {@endtemplate} -final class EventCompleter { +final class EventCompleter< + Event extends StateMachineEvent, + State extends StateMachineState +> { /// {@macro amplify_core.event_completer} EventCompleter(this.event, [StackTrace? stackTrace]) - : stackTrace = stackTrace ?? StackTrace.current; + : stackTrace = stackTrace ?? StackTrace.current; /// The event to dispatch. final Event event; diff --git a/packages/amplify_core/lib/src/state_machine/state_machine.dart b/packages/amplify_core/lib/src/state_machine/state_machine.dart index 1c5d7e415f..f3bc6ece57 100644 --- a/packages/amplify_core/lib/src/state_machine/state_machine.dart +++ b/packages/amplify_core/lib/src/state_machine/state_machine.dart @@ -9,10 +9,10 @@ import 'package:stack_trace/stack_trace.dart'; /// Factory for a state machine under a [Manager]. typedef StateMachineBuilder< - E extends StateMachineEvent, - S extends StateMachineState, - Manager extends StateMachineManager> - = StateMachine Function(Manager); + E extends StateMachineEvent, + S extends StateMachineState, + Manager extends StateMachineManager +> = StateMachine Function(Manager); /// Interface for dispatching an event to a state machine. @optionalTypeArgs @@ -48,13 +48,14 @@ abstract interface class Emitter { /// A marker for state machine types to improve DX with generic functions. /// {@endtemplate} final class StateMachineToken< - Event extends ManagerEvent, - State extends ManagerState, - ManagerEvent extends StateMachineEvent, - ManagerState extends StateMachineState, - Manager extends StateMachineManager, - M extends StateMachine> extends Token { + Event extends ManagerEvent, + State extends ManagerState, + ManagerEvent extends StateMachineEvent, + ManagerState extends StateMachineState, + Manager extends StateMachineManager, + M extends StateMachine +> + extends Token { /// {@macro amplify_core.state_machine_type} const StateMachineToken(); } @@ -65,15 +66,16 @@ final class StateMachineToken< /// {@endtemplate} @optionalTypeArgs abstract class StateMachineManager< - E extends StateMachineEvent, - S extends StateMachineState, - Manager extends StateMachineManager> + E extends StateMachineEvent, + S extends StateMachineState, + Manager extends StateMachineManager +> with Dispatcher, AWSDebuggable, AWSLoggerMixin implements DependencyManager, Closeable { /// {@macro amplify_core.state_machinedispatcher} StateMachineManager( Map> - stateMachineBuilders, + stateMachineBuilders, this._dependencyManager, ) { addInstance>(this); @@ -89,8 +91,9 @@ abstract class StateMachineManager< final Map _stateMachines = {}; final _eventController = StreamController>(); - final StreamController _stateController = - StreamController.broadcast(sync: true); + final StreamController _stateController = StreamController.broadcast( + sync: true, + ); final StreamController> _transitionController = StreamController.broadcast(sync: true); @@ -122,10 +125,7 @@ abstract class StateMachineManager< } @override - void addInstance( - T instance, [ - Token? token, - ]) { + void addInstance(T instance, [Token? token]) { _dependencyManager.addInstance(instance, token); } @@ -191,9 +191,7 @@ abstract class StateMachineManager< @override @protected @visibleForTesting - Future dispatchAndComplete( - E event, - ) => + Future dispatchAndComplete(E event) => super.dispatchAndComplete(event); /// Maps [event] to its state machine. @@ -215,12 +213,12 @@ abstract class StateMachineManager< /// Base class for state machines. /// {@endtemplate} abstract class StateMachine< - Event extends ManagerEvent, - State extends ManagerState, - ManagerEvent extends StateMachineEvent, - ManagerState extends StateMachineState, - Manager extends StateMachineManager> + Event extends ManagerEvent, + State extends ManagerState, + ManagerEvent extends StateMachineEvent, + ManagerState extends StateMachineState, + Manager extends StateMachineManager +> with AWSDebuggable, AmplifyLoggerMixin implements Emitter, @@ -280,11 +278,7 @@ abstract class StateMachine< void emit(State state) { _stateController.add(state); manager._stateController.add(state); - final transition = Transition( - _currentState, - _currentEvent, - state, - ); + final transition = Transition(_currentState, _currentEvent, state); _transitionController.add(transition); manager._transitionController.add(transition); _currentState = state; @@ -347,7 +341,7 @@ abstract class StateMachine< /// Event controller. final StreamController> - _eventController = StreamController(); + _eventController = StreamController(); /// Transition controller. final StreamController> _transitionController = @@ -389,14 +383,10 @@ abstract class StateMachine< void addBuilder( DependencyBuilder builder, [ Token? token, - ]) => - manager.addBuilder(builder, token); + ]) => manager.addBuilder(builder, token); @override - void addInstance( - T instance, [ - Token? token, - ]) => + void addInstance(T instance, [Token? token]) => manager.addInstance(instance, token); @override @@ -425,8 +415,7 @@ abstract class StateMachine< @override Future dispatchAndComplete( ManagerEvent event, - ) => - manager.dispatchAndComplete(event); + ) => manager.dispatchAndComplete(event); /// Closes the state machine and all stream controllers. @override diff --git a/packages/amplify_core/lib/src/types/analytics/analytics/user_profile_location.dart b/packages/amplify_core/lib/src/types/analytics/analytics/user_profile_location.dart index 21d9a4ce07..710cf646d2 100644 --- a/packages/amplify_core/lib/src/types/analytics/analytics/user_profile_location.dart +++ b/packages/amplify_core/lib/src/types/analytics/analytics/user_profile_location.dart @@ -20,11 +20,11 @@ class UserProfileLocation { final String? country; Map getAllProperties() => { - if (latitude != null) 'latitude': latitude, - if (longitude != null) 'longitude': longitude, - if (postalCode != null) 'postalCode': postalCode, - if (city != null) 'city': city, - if (region != null) 'region': region, - if (country != null) 'country': country, - }; + if (latitude != null) 'latitude': latitude, + if (longitude != null) 'longitude': longitude, + if (postalCode != null) 'postalCode': postalCode, + if (city != null) 'city': city, + if (region != null) 'region': region, + if (country != null) 'country': country, + }; } diff --git a/packages/amplify_core/lib/src/types/api/auth/api_auth_provider.dart b/packages/amplify_core/lib/src/types/api/auth/api_auth_provider.dart index 7ace0a54c8..1fe36094e5 100644 --- a/packages/amplify_core/lib/src/types/api/auth/api_auth_provider.dart +++ b/packages/amplify_core/lib/src/types/api/auth/api_auth_provider.dart @@ -41,6 +41,5 @@ abstract class FunctionAuthProvider extends APIAuthProvider { } /// Refreshes the token for a given type or all registered types if none is passed. -typedef APIAuthProviderRefresher = Future Function([ - APIAuthorizationType?, -]); +typedef APIAuthProviderRefresher = + Future Function([APIAuthorizationType?]); diff --git a/packages/amplify_core/lib/src/types/api/auth/api_authorization_type.dart b/packages/amplify_core/lib/src/types/api/auth/api_authorization_type.dart index 826357116b..e2145b5980 100644 --- a/packages/amplify_core/lib/src/types/api/auth/api_authorization_type.dart +++ b/packages/amplify_core/lib/src/types/api/auth/api_authorization_type.dart @@ -66,9 +66,9 @@ enum APIAuthorizationType { /// Helper methods for [APIAuthorizationType]. extension APIAuthorizationTypeX on APIAuthorizationType { /// Returns the [APIAuthorizationType] value for [value]. - static APIAuthorizationType? from(String? value) => - APIAuthorizationType.values - .firstWhereOrNull((el) => el.rawValue == value); + static APIAuthorizationType? from(String? value) => APIAuthorizationType + .values + .firstWhereOrNull((el) => el.rawValue == value); /// Returns the underlying [String] backing `this`. String get rawValue => _$APIAuthorizationTypeEnumMap[this]!; diff --git a/packages/amplify_core/lib/src/types/api/graphql/graphql_operation.dart b/packages/amplify_core/lib/src/types/api/graphql/graphql_operation.dart index 801e2afb43..a292d78525 100644 --- a/packages/amplify_core/lib/src/types/api/graphql/graphql_operation.dart +++ b/packages/amplify_core/lib/src/types/api/graphql/graphql_operation.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class GraphQLOperation extends AWSOperation> { /// Creates an [GraphQLOperation] from a [CancelableOperation]. - GraphQLOperation( - super.operation, { - super.onCancel, - }); + GraphQLOperation(super.operation, {super.onCancel}); /// The [GraphQLResponse] returned from this [operation]. /// diff --git a/packages/amplify_core/lib/src/types/api/graphql/graphql_request.dart b/packages/amplify_core/lib/src/types/api/graphql/graphql_request.dart index 05df5df1bd..02cf40a440 100644 --- a/packages/amplify_core/lib/src/types/api/graphql/graphql_request.dart +++ b/packages/amplify_core/lib/src/types/api/graphql/graphql_request.dart @@ -61,16 +61,15 @@ class GraphQLRequest with AWSSerializable> { @override Map toJson() => { - 'id': id, - 'document': document, - 'variables': variables, - 'headers': headers, - 'cancelToken': id, - if (apiName != null) 'apiName': apiName, - if (authorizationMode != null) - 'authorizationMode': authorizationMode!.name, - if (decodePath != null) 'decodePath': decodePath, - }; + 'id': id, + 'document': document, + 'variables': variables, + 'headers': headers, + 'cancelToken': id, + if (apiName != null) 'apiName': apiName, + if (authorizationMode != null) 'authorizationMode': authorizationMode!.name, + if (decodePath != null) 'decodePath': decodePath, + }; /// Creates a copy of this request with the given fields replaced with the new values. /// If no new value is given, the old value is used. diff --git a/packages/amplify_core/lib/src/types/api/graphql/graphql_request_type.dart b/packages/amplify_core/lib/src/types/api/graphql/graphql_request_type.dart index 90ae433d8e..6442f33e55 100644 --- a/packages/amplify_core/lib/src/types/api/graphql/graphql_request_type.dart +++ b/packages/amplify_core/lib/src/types/api/graphql/graphql_request_type.dart @@ -11,5 +11,5 @@ enum GraphQLRequestOperation { delete, onCreate, onUpdate, - onDelete + onDelete, } diff --git a/packages/amplify_core/lib/src/types/api/graphql/graphql_response.dart b/packages/amplify_core/lib/src/types/api/graphql/graphql_response.dart index a20de67fac..5e7ae3a04e 100644 --- a/packages/amplify_core/lib/src/types/api/graphql/graphql_response.dart +++ b/packages/amplify_core/lib/src/types/api/graphql/graphql_response.dart @@ -5,19 +5,13 @@ import 'package:amplify_core/amplify_core.dart'; /// A GraphQL response from the server. See https://graphql.org/learn/serving-over-http/#response class GraphQLResponse { - const GraphQLResponse({ - this.data, - required this.errors, - }); + const GraphQLResponse({this.data, required this.errors}); static GraphQLResponse raw({ required String? data, List? errors, }) { - return GraphQLResponse( - data: data, - errors: errors ?? const [], - ); + return GraphQLResponse(data: data, errors: errors ?? const []); } /// Response data matching the type of the request. @@ -33,10 +27,7 @@ class GraphQLResponse { @override String toString() { - final obj = { - 'data': data, - 'errors': errors, - }; + final obj = {'data': data, 'errors': errors}; return 'GraphQLResponse<$T>: ${prettyPrintJson(obj)}'; } } diff --git a/packages/amplify_core/lib/src/types/api/graphql/graphql_response_error.dart b/packages/amplify_core/lib/src/types/api/graphql/graphql_response_error.dart index 2c3258f753..7a201d3cf4 100644 --- a/packages/amplify_core/lib/src/types/api/graphql/graphql_response_error.dart +++ b/packages/amplify_core/lib/src/types/api/graphql/graphql_response_error.dart @@ -26,14 +26,15 @@ class GraphQLResponseError { factory GraphQLResponseError.fromJson(Map json) { return GraphQLResponseError( message: json['message'] as String, - locations: (json['locations'] as List?) - ?.cast>() - .map( - (json) => GraphQLResponseErrorLocation.fromJson( - json.cast(), - ), - ) - .toList(), + locations: + (json['locations'] as List?) + ?.cast>() + .map( + (json) => GraphQLResponseErrorLocation.fromJson( + json.cast(), + ), + ) + .toList(), path: json['path'] as List?, extensions: (json['extensions'] as Map?)?.cast(), errorType: json['errorType'] as String?, @@ -60,14 +61,14 @@ class GraphQLResponseError { final Map? errorInfo; Map toJson() => { - 'message': message, - if (locations != null) - 'locations': locations?.map((e) => e.toJson()).toList(), - if (path != null) 'path': path, - if (extensions != null) 'extensions': extensions, - if (errorType != null) 'errorType': errorType, - if (errorInfo != null) 'errorInfo': errorInfo, - }; + 'message': message, + if (locations != null) + 'locations': locations?.map((e) => e.toJson()).toList(), + if (path != null) 'path': path, + if (extensions != null) 'extensions': extensions, + if (errorType != null) 'errorType': errorType, + if (errorInfo != null) 'errorInfo': errorInfo, + }; @override bool operator ==(Object other) => @@ -87,13 +88,13 @@ class GraphQLResponseError { @override int get hashCode => const DeepCollectionEquality().hash([ - message, - locations, - path, - extensions, - errorType, - errorInfo, - ]); + message, + locations, + path, + extensions, + errorType, + errorInfo, + ]); @override String toString() { @@ -127,9 +128,9 @@ class GraphQLResponseErrorLocation { final int column; Map toJson() => { - 'line': line, - 'column': column, - }; + 'line': line, + 'column': column, + }; @override bool operator ==(Object other) => diff --git a/packages/amplify_core/lib/src/types/api/hub/api_hub_event.dart b/packages/amplify_core/lib/src/types/api/hub/api_hub_event.dart index 9a8634d24d..d532361698 100644 --- a/packages/amplify_core/lib/src/types/api/hub/api_hub_event.dart +++ b/packages/amplify_core/lib/src/types/api/hub/api_hub_event.dart @@ -4,10 +4,7 @@ import 'package:amplify_core/amplify_core.dart'; class ApiHubEvent extends HubEvent { - ApiHubEvent( - super.eventName, { - super.payload, - }); + ApiHubEvent(super.eventName, {super.payload}); } abstract class ApiHubEventPayload { diff --git a/packages/amplify_core/lib/src/types/api/hub/api_subscription_hub_event.dart b/packages/amplify_core/lib/src/types/api/hub/api_subscription_hub_event.dart index 3ca59c4f7c..fb6f4268f5 100644 --- a/packages/amplify_core/lib/src/types/api/hub/api_subscription_hub_event.dart +++ b/packages/amplify_core/lib/src/types/api/hub/api_subscription_hub_event.dart @@ -14,7 +14,7 @@ enum NetworkState { disconnected, /// {@macro amplify_common.hub.api_network_state_failed} - failed; + failed, } /// {@template amplify_common.hub.api_intended_state} @@ -25,7 +25,7 @@ enum IntendedState { connected, /// {@macro amplify_common.hub.api_intended_state_disconnected} - disconnected; + disconnected, } /// {@template amplify_common.hub.api_subscription_status} @@ -46,7 +46,7 @@ enum SubscriptionStatus { pendingDisconnected, /// {@macro amplify_common.hub.api_subscription_status_failed} - failed; + failed, } class SubscriptionDetails extends ApiHubEventPayload @@ -67,9 +67,9 @@ class SubscriptionDetails extends ApiHubEventPayload @override Map toJson() => { - 'networkState': networkState.name, - 'intendedState': intendedState.name, - }; + 'networkState': networkState.name, + 'intendedState': intendedState.name, + }; @override String get runtimeTypeName => 'SubscriptionDetails'; @@ -86,57 +86,57 @@ class SubscriptionHubEvent extends ApiHubEvent /// Emitted when a GraphQL subscription is connected. /// {@endtemplate} SubscriptionHubEvent.connected() - : this._( - const SubscriptionDetails( - NetworkState.connected, - IntendedState.connected, - ), - ); + : this._( + const SubscriptionDetails( + NetworkState.connected, + IntendedState.connected, + ), + ); /// {@template amplify_common.hub.api_subscription_connected} /// Emitted when a GraphQL subscription is connecting/reconnecting. /// {@endtemplate} SubscriptionHubEvent.connecting() - : this._( - const SubscriptionDetails( - NetworkState.disconnected, - IntendedState.connected, - ), - ); + : this._( + const SubscriptionDetails( + NetworkState.disconnected, + IntendedState.connected, + ), + ); /// {@template amplify_common.hub.api_subscription_disconnected} /// Emitted when a GraphQL subscription connection has disconnected. /// {@endtemplate} SubscriptionHubEvent.disconnected() - : this._( - const SubscriptionDetails( - NetworkState.disconnected, - IntendedState.disconnected, - ), - ); + : this._( + const SubscriptionDetails( + NetworkState.disconnected, + IntendedState.disconnected, + ), + ); /// {@template amplify_common.hub.api_subscription_pending_disconnect} /// Emitted when a GraphQL subscription connection is pending disconnect, /// but should exist. /// {@endtemplate} SubscriptionHubEvent.pendingDisconnect() - : this._( - const SubscriptionDetails( - NetworkState.connected, - IntendedState.disconnected, - ), - ); + : this._( + const SubscriptionDetails( + NetworkState.connected, + IntendedState.disconnected, + ), + ); /// {@template amplify_common.hub.api_subscription_failed} /// Emitted when a GraphQL subscription connection has failed. /// {@endtemplate} SubscriptionHubEvent.failed() - : this._( - const SubscriptionDetails( - NetworkState.failed, - IntendedState.disconnected, - ), - ); + : this._( + const SubscriptionDetails( + NetworkState.failed, + IntendedState.disconnected, + ), + ); final SubscriptionDetails details; static const String _name = 'SubscriptionHubEvent'; @@ -178,7 +178,7 @@ class SubscriptionHubEvent extends ApiHubEvent @override Map toJson() => { - 'status': status.name, - 'details': details.toJson(), - }; + 'status': status.name, + 'details': details.toJson(), + }; } diff --git a/packages/amplify_core/lib/src/types/api/types/pagination/paginated_model_type.dart b/packages/amplify_core/lib/src/types/api/types/pagination/paginated_model_type.dart index 5b8c38d28e..0dc268b1d5 100644 --- a/packages/amplify_core/lib/src/types/api/types/pagination/paginated_model_type.dart +++ b/packages/amplify_core/lib/src/types/api/types/pagination/paginated_model_type.dart @@ -46,13 +46,16 @@ class PaginatedModelType ); } - final items = itemsJson - .cast?>() - .map( - (e) => - e != null ? modelType.fromJson(e.cast()) : null, - ) - .toList(); + final items = + itemsJson + .cast?>() + .map( + (e) => + e != null + ? modelType.fromJson(e.cast()) + : null, + ) + .toList(); return PaginatedResult( items, diff --git a/packages/amplify_core/lib/src/types/api/types/rest/rest_operation.dart b/packages/amplify_core/lib/src/types/api/types/rest/rest_operation.dart index a32a6d9880..6b17643100 100644 --- a/packages/amplify_core/lib/src/types/api/types/rest/rest_operation.dart +++ b/packages/amplify_core/lib/src/types/api/types/rest/rest_operation.dart @@ -15,14 +15,14 @@ class RestOperation extends AWSHttpOperation { /// Takes [AWSHttpOperation] and ensures response not streamed. factory RestOperation.fromHttpOperation(AWSHttpOperation httpOperation) { - final cancelOp = httpOperation.operation.then( - (response) async { - return switch (response) { - AWSStreamedHttpResponse _ => await response.read(), - AWSHttpResponse _ => response, - }; - }, - ); + final cancelOp = httpOperation.operation.then(( + response, + ) async { + return switch (response) { + AWSStreamedHttpResponse _ => await response.read(), + AWSHttpResponse _ => response, + }; + }); return RestOperation._( cancelOp, requestProgress: httpOperation.requestProgress, diff --git a/packages/amplify_core/lib/src/types/auth/attribute/auth_next_update_attribute_step.g.dart b/packages/amplify_core/lib/src/types/auth/attribute/auth_next_update_attribute_step.g.dart index b030a58495..796c6dc7a2 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/auth_next_update_attribute_step.g.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/auth_next_update_attribute_step.g.dart @@ -9,47 +9,38 @@ part of 'auth_next_update_attribute_step.dart'; // ************************************************************************** AuthNextUpdateAttributeStep _$AuthNextUpdateAttributeStepFromJson( - Map json) => - $checkedCreate( - 'AuthNextUpdateAttributeStep', - json, - ($checkedConvert) { - final val = AuthNextUpdateAttributeStep( - additionalInfo: $checkedConvert( - 'additionalInfo', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - codeDeliveryDetails: $checkedConvert( - 'codeDeliveryDetails', - (v) => v == null - ? null - : AuthCodeDeliveryDetails.fromJson( - v as Map)), - updateAttributeStep: $checkedConvert('updateAttributeStep', - (v) => $enumDecode(_$AuthUpdateAttributeStepEnumMap, v)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('AuthNextUpdateAttributeStep', json, ($checkedConvert) { + final val = AuthNextUpdateAttributeStep( + additionalInfo: $checkedConvert( + 'additionalInfo', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as String)), + ), + codeDeliveryDetails: $checkedConvert( + 'codeDeliveryDetails', + (v) => + v == null + ? null + : AuthCodeDeliveryDetails.fromJson(v as Map), + ), + updateAttributeStep: $checkedConvert( + 'updateAttributeStep', + (v) => $enumDecode(_$AuthUpdateAttributeStepEnumMap, v), + ), + ); + return val; +}); Map _$AuthNextUpdateAttributeStepToJson( - AuthNextUpdateAttributeStep instance) { - final val = { - 'additionalInfo': instance.additionalInfo, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('codeDeliveryDetails', instance.codeDeliveryDetails?.toJson()); - val['updateAttributeStep'] = - _$AuthUpdateAttributeStepEnumMap[instance.updateAttributeStep]!; - return val; -} + AuthNextUpdateAttributeStep instance, +) => { + 'additionalInfo': instance.additionalInfo, + if (instance.codeDeliveryDetails?.toJson() case final value?) + 'codeDeliveryDetails': value, + 'updateAttributeStep': + _$AuthUpdateAttributeStepEnumMap[instance.updateAttributeStep]!, +}; const _$AuthUpdateAttributeStepEnumMap = { AuthUpdateAttributeStep.confirmAttributeWithCode: 'confirmAttributeWithCode', diff --git a/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute.g.dart b/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute.g.dart index 510328babd..d5f62661be 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute.g.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute.g.dart @@ -9,24 +9,21 @@ part of 'auth_user_attribute.dart'; // ************************************************************************** AuthUserAttribute _$AuthUserAttributeFromJson(Map json) => - $checkedCreate( - 'AuthUserAttribute', - json, - ($checkedConvert) { - final val = AuthUserAttribute( - userAttributeKey: $checkedConvert( - 'userAttributeKey', - (v) => - const AuthUserAttributeKeyConverter().fromJson(v as String)), - value: $checkedConvert('value', (v) => v as String), - ); - return val; - }, - ); + $checkedCreate('AuthUserAttribute', json, ($checkedConvert) { + final val = AuthUserAttribute( + userAttributeKey: $checkedConvert( + 'userAttributeKey', + (v) => const AuthUserAttributeKeyConverter().fromJson(v as String), + ), + value: $checkedConvert('value', (v) => v as String), + ); + return val; + }); Map _$AuthUserAttributeToJson(AuthUserAttribute instance) => { - 'userAttributeKey': const AuthUserAttributeKeyConverter() - .toJson(instance.userAttributeKey), + 'userAttributeKey': const AuthUserAttributeKeyConverter().toJson( + instance.userAttributeKey, + ), 'value': instance.value, }; diff --git a/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute_key.dart b/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute_key.dart index 04064286cf..d00a4e7cc2 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute_key.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/auth_user_attribute_key.dart @@ -30,8 +30,9 @@ abstract class AuthUserAttributeKey /// {@template amplify_core.user_attribute.birthdate} /// The user's birthday, represented as an ISO 8601 YYYY-MM-DD format. /// {@endtemplate} - static const AuthUserAttributeKey birthdate = - _AuthUserAttributeKey('birthdate'); + static const AuthUserAttributeKey birthdate = _AuthUserAttributeKey( + 'birthdate', + ); /// {@template amplify_core.user_attribute.email} /// The user's preferred e-mail address. @@ -41,14 +42,16 @@ abstract class AuthUserAttributeKey /// {@template amplify_core.user_attribute.email_verified} /// Whether the user's preferred e-mail address has been verified. /// {@endtemplate} - static const AuthUserAttributeKey emailVerified = - _AuthUserAttributeKey('email_verified'); + static const AuthUserAttributeKey emailVerified = _AuthUserAttributeKey( + 'email_verified', + ); /// {@template amplify_core.user_attribute.family_name} /// Surname(s) or last name(s) of the user. /// {@endtemplate} - static const AuthUserAttributeKey familyName = - _AuthUserAttributeKey('family_name'); + static const AuthUserAttributeKey familyName = _AuthUserAttributeKey( + 'family_name', + ); /// {@template amplify_core.user_attribute.gender} /// The user's gender. @@ -58,8 +61,9 @@ abstract class AuthUserAttributeKey /// {@template amplify_core.user_attribute.given_name} /// Given name(s) or first name(s) of the user. /// {@endtemplate} - static const AuthUserAttributeKey givenName = - _AuthUserAttributeKey('given_name'); + static const AuthUserAttributeKey givenName = _AuthUserAttributeKey( + 'given_name', + ); /// {@template amplify_core.user_attribute.locale} /// The user's locale, represented as a BCP47 language tag, e.g. `en-US`. @@ -69,8 +73,9 @@ abstract class AuthUserAttributeKey /// {@template amplify_core.user_attribute.middle_name} /// Middle name(s) of the user. /// {@endtemplate} - static const AuthUserAttributeKey middleName = - _AuthUserAttributeKey('middle_name'); + static const AuthUserAttributeKey middleName = _AuthUserAttributeKey( + 'middle_name', + ); /// {@template amplify_core.user_attribute.name} /// The user's full name in displayable form including all name parts, @@ -83,20 +88,23 @@ abstract class AuthUserAttributeKey /// Casual name of the user that may or may not be the same as their given /// name. /// {@endtemplate} - static const AuthUserAttributeKey nickname = - _AuthUserAttributeKey('nickname'); + static const AuthUserAttributeKey nickname = _AuthUserAttributeKey( + 'nickname', + ); /// {@template amplify_core.user_attribute.phone_number} /// The user's preferred telephone number. /// {@endtemplate} - static const AuthUserAttributeKey phoneNumber = - _AuthUserAttributeKey('phone_number'); + static const AuthUserAttributeKey phoneNumber = _AuthUserAttributeKey( + 'phone_number', + ); /// {@template amplify_core.user_attribute.phone_number_verified} /// Whether the user's preferred telephone number has been verified. /// {@endtemplate} - static const AuthUserAttributeKey phoneNumberVerified = - _AuthUserAttributeKey('phone_number_verified'); + static const AuthUserAttributeKey phoneNumberVerified = _AuthUserAttributeKey( + 'phone_number_verified', + ); /// {@template amplify_core.user_attribute.picture} /// URL of the user's profile picture. @@ -106,8 +114,9 @@ abstract class AuthUserAttributeKey /// {@template amplify_core.user_attribute.preferred_username} /// The username by which the user wishes to be referred to. /// {@endtemplate} - static const AuthUserAttributeKey preferredUsername = - _AuthUserAttributeKey('preferred_username'); + static const AuthUserAttributeKey preferredUsername = _AuthUserAttributeKey( + 'preferred_username', + ); /// {@template amplify_core.user_attribute.profile} /// URL of the user's profile page. @@ -122,8 +131,9 @@ abstract class AuthUserAttributeKey /// {@template amplify_core.user_attribute.updated_at} /// The time the user's information was last updated. /// {@endtemplate} - static const AuthUserAttributeKey updatedAt = - _AuthUserAttributeKey('updated_at'); + static const AuthUserAttributeKey updatedAt = _AuthUserAttributeKey( + 'updated_at', + ); /// {@template amplify_core.user_attribute.website} /// URL of the user's Web page or blog. @@ -134,8 +144,9 @@ abstract class AuthUserAttributeKey /// A string from the [zoneinfo](https://www.iana.org/time-zones) time zone /// database representing the user's time zone, e.g. `America/Los_Angeles`. /// {@endtemplate} - static const AuthUserAttributeKey zoneinfo = - _AuthUserAttributeKey('zoneinfo'); + static const AuthUserAttributeKey zoneinfo = _AuthUserAttributeKey( + 'zoneinfo', + ); @override String toJson() => key; diff --git a/packages/amplify_core/lib/src/types/auth/attribute/cognito_user_attribute_key.dart b/packages/amplify_core/lib/src/types/auth/attribute/cognito_user_attribute_key.dart index ebda0d423c..4ae04e824e 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/cognito_user_attribute_key.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/cognito_user_attribute_key.dart @@ -14,17 +14,17 @@ import 'package:amplify_core/amplify_core.dart'; /// Use [CognitoUserAttributeKey.custom] to create a custom Cognito attribute. class CognitoUserAttributeKey extends AuthUserAttributeKey { const CognitoUserAttributeKey._(this._key, {this.readOnly = false}) - : isCustom = false; + : isCustom = false; /// Creates a custom Cognito attribute. const CognitoUserAttributeKey.custom(this._key) - : isCustom = true, - readOnly = false; + : isCustom = true, + readOnly = false; /// Creates an unknown Cognito attribute. const CognitoUserAttributeKey._unknown(this._key) - : isCustom = false, - readOnly = true; + : isCustom = false, + readOnly = true; /// Parses the given Cognito attribute key. /// @@ -108,8 +108,10 @@ class CognitoUserAttributeKey extends AuthUserAttributeKey { /// Federated identities of the user. /// /// Read-only: `true` - static const identities = - CognitoUserAttributeKey._('identities', readOnly: true); + static const identities = CognitoUserAttributeKey._( + 'identities', + readOnly: true, + ); /// {@macro amplify_core.user_attribute.locale} /// @@ -153,8 +155,9 @@ class CognitoUserAttributeKey extends AuthUserAttributeKey { /// {@macro amplify_core.user_attribute.preferred_username} /// /// Read-only: `false` - static const preferredUsername = - CognitoUserAttributeKey._('preferred_username'); + static const preferredUsername = CognitoUserAttributeKey._( + 'preferred_username', + ); /// {@macro amplify_core.user_attribute.profile} /// diff --git a/packages/amplify_core/lib/src/types/auth/attribute/confirm_user_attribute_options.dart b/packages/amplify_core/lib/src/types/auth/attribute/confirm_user_attribute_options.dart index b550f71983..8301a206d7 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/confirm_user_attribute_options.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/confirm_user_attribute_options.dart @@ -13,9 +13,7 @@ class ConfirmUserAttributeOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.types.auth.confirm_user_attribute_options} - const ConfirmUserAttributeOptions({ - this.pluginOptions, - }); + const ConfirmUserAttributeOptions({this.pluginOptions}); /// {@macro amplify_core.auth.confirm_user_attribute_plugin_options} final ConfirmUserAttributePluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class ConfirmUserAttributeOptions String get runtimeTypeName => 'ConfirmUserAttributeOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/attribute/fetch_user_attributes_options.dart b/packages/amplify_core/lib/src/types/auth/attribute/fetch_user_attributes_options.dart index 438754d6f7..f3e81b32c2 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/fetch_user_attributes_options.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/fetch_user_attributes_options.dart @@ -13,9 +13,7 @@ class FetchUserAttributesOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.fetch_user_attributes_options} - const FetchUserAttributesOptions({ - this.pluginOptions, - }); + const FetchUserAttributesOptions({this.pluginOptions}); /// {@macro amplify_core.auth.fetch_user_attributes_plugin_options} final FetchUserAttributesPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class FetchUserAttributesOptions String get runtimeTypeName => 'FetchUserAttributesOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_options.dart b/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_options.dart index ee9de26891..69050998f6 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_options.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_options.dart @@ -14,9 +14,7 @@ class SendUserAttributeVerificationCodeOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.send_attribute_verification_code_options} - const SendUserAttributeVerificationCodeOptions({ - this.pluginOptions, - }); + const SendUserAttributeVerificationCodeOptions({this.pluginOptions}); /// {@macro amplify_core.auth.send_user_attribute_verification_code_plugin_options} final SendUserAttributeVerificationCodePluginOptions? pluginOptions; @@ -28,9 +26,7 @@ class SendUserAttributeVerificationCodeOptions String get runtimeTypeName => 'SendUserAttributeVerificationCodeOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.dart b/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.dart index 649eaba943..35ed3edfe0 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.dart @@ -23,8 +23,7 @@ class SendUserAttributeVerificationCodeResult /// {@macro amplify_core.send_user_attribute_verification_code_result} factory SendUserAttributeVerificationCodeResult.fromJson( Map json, - ) => - _$SendUserAttributeVerificationCodeResultFromJson(json); + ) => _$SendUserAttributeVerificationCodeResultFromJson(json); /// Contains the delivery details of the confirmation code that was sent to /// the user. diff --git a/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.g.dart b/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.g.dart index ea469118b1..9cc0525038 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.g.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/send_user_attribute_verification_code_result.g.dart @@ -9,24 +9,21 @@ part of 'send_user_attribute_verification_code_result.dart'; // ************************************************************************** SendUserAttributeVerificationCodeResult - _$SendUserAttributeVerificationCodeResultFromJson( - Map json) => - $checkedCreate( - 'SendUserAttributeVerificationCodeResult', - json, - ($checkedConvert) { - final val = SendUserAttributeVerificationCodeResult( - codeDeliveryDetails: $checkedConvert( - 'codeDeliveryDetails', - (v) => AuthCodeDeliveryDetails.fromJson( - v as Map)), - ); - return val; - }, - ); +_$SendUserAttributeVerificationCodeResultFromJson(Map json) => + $checkedCreate('SendUserAttributeVerificationCodeResult', json, ( + $checkedConvert, + ) { + final val = SendUserAttributeVerificationCodeResult( + codeDeliveryDetails: $checkedConvert( + 'codeDeliveryDetails', + (v) => AuthCodeDeliveryDetails.fromJson(v as Map), + ), + ); + return val; + }); Map _$SendUserAttributeVerificationCodeResultToJson( - SendUserAttributeVerificationCodeResult instance) => - { - 'codeDeliveryDetails': instance.codeDeliveryDetails.toJson(), - }; + SendUserAttributeVerificationCodeResult instance, +) => { + 'codeDeliveryDetails': instance.codeDeliveryDetails.toJson(), +}; diff --git a/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_options.dart b/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_options.dart index 5e541e5603..b24a77400f 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_options.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_options.dart @@ -13,9 +13,7 @@ class UpdateUserAttributeOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.update_user_attribute_options} - const UpdateUserAttributeOptions({ - this.pluginOptions, - }); + const UpdateUserAttributeOptions({this.pluginOptions}); /// {@macro amplify_core.auth.update_user_attribute_plugin_options} final UpdateUserAttributePluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class UpdateUserAttributeOptions String get runtimeTypeName => 'UpdateUserAttributeOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_result.g.dart b/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_result.g.dart index d81230781b..222fe32cb1 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_result.g.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/update_user_attribute_result.g.dart @@ -9,25 +9,21 @@ part of 'update_user_attribute_result.dart'; // ************************************************************************** UpdateUserAttributeResult _$UpdateUserAttributeResultFromJson( - Map json) => - $checkedCreate( - 'UpdateUserAttributeResult', - json, - ($checkedConvert) { - final val = UpdateUserAttributeResult( - isUpdated: $checkedConvert('isUpdated', (v) => v as bool), - nextStep: $checkedConvert( - 'nextStep', - (v) => AuthNextUpdateAttributeStep.fromJson( - v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('UpdateUserAttributeResult', json, ($checkedConvert) { + final val = UpdateUserAttributeResult( + isUpdated: $checkedConvert('isUpdated', (v) => v as bool), + nextStep: $checkedConvert( + 'nextStep', + (v) => AuthNextUpdateAttributeStep.fromJson(v as Map), + ), + ); + return val; +}); Map _$UpdateUserAttributeResultToJson( - UpdateUserAttributeResult instance) => - { - 'isUpdated': instance.isUpdated, - 'nextStep': instance.nextStep.toJson(), - }; + UpdateUserAttributeResult instance, +) => { + 'isUpdated': instance.isUpdated, + 'nextStep': instance.nextStep.toJson(), +}; diff --git a/packages/amplify_core/lib/src/types/auth/attribute/update_user_attributes_options.dart b/packages/amplify_core/lib/src/types/auth/attribute/update_user_attributes_options.dart index 2ca21114fa..17124d5bc9 100644 --- a/packages/amplify_core/lib/src/types/auth/attribute/update_user_attributes_options.dart +++ b/packages/amplify_core/lib/src/types/auth/attribute/update_user_attributes_options.dart @@ -13,9 +13,7 @@ class UpdateUserAttributesOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.update_user_attributes_options} - const UpdateUserAttributesOptions({ - this.pluginOptions, - }); + const UpdateUserAttributesOptions({this.pluginOptions}); /// {@macro amplify_core.auth.update_user_attributes_plugin_options} final UpdateUserAttributesPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class UpdateUserAttributesOptions String get runtimeTypeName => 'UpdateUserAttributesOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/auth_code_delivery_details.g.dart b/packages/amplify_core/lib/src/types/auth/auth_code_delivery_details.g.dart index b1860d8e94..7f1561bb40 100644 --- a/packages/amplify_core/lib/src/types/auth/auth_code_delivery_details.g.dart +++ b/packages/amplify_core/lib/src/types/auth/auth_code_delivery_details.g.dart @@ -9,43 +9,37 @@ part of 'auth_code_delivery_details.dart'; // ************************************************************************** AuthCodeDeliveryDetails _$AuthCodeDeliveryDetailsFromJson( - Map json) => - $checkedCreate( - 'AuthCodeDeliveryDetails', - json, - ($checkedConvert) { - final val = AuthCodeDeliveryDetails( - deliveryMedium: $checkedConvert( - 'deliveryMedium', (v) => $enumDecode(_$DeliveryMediumEnumMap, v)), - destination: $checkedConvert('destination', (v) => v as String?), - attributeKey: $checkedConvert( - 'attributeKey', - (v) => _$JsonConverterFromJson( - v, const AuthUserAttributeKeyConverter().fromJson)), - ); - return val; - }, - ); - -Map _$AuthCodeDeliveryDetailsToJson( - AuthCodeDeliveryDetails instance) { - final val = { - 'deliveryMedium': _$DeliveryMediumEnumMap[instance.deliveryMedium]!, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('destination', instance.destination); - writeNotNull( + Map json, +) => $checkedCreate('AuthCodeDeliveryDetails', json, ($checkedConvert) { + final val = AuthCodeDeliveryDetails( + deliveryMedium: $checkedConvert( + 'deliveryMedium', + (v) => $enumDecode(_$DeliveryMediumEnumMap, v), + ), + destination: $checkedConvert('destination', (v) => v as String?), + attributeKey: $checkedConvert( 'attributeKey', - _$JsonConverterToJson( - instance.attributeKey, const AuthUserAttributeKeyConverter().toJson)); + (v) => _$JsonConverterFromJson( + v, + const AuthUserAttributeKeyConverter().fromJson, + ), + ), + ); return val; -} +}); + +Map _$AuthCodeDeliveryDetailsToJson( + AuthCodeDeliveryDetails instance, +) => { + 'deliveryMedium': _$DeliveryMediumEnumMap[instance.deliveryMedium]!, + if (instance.destination case final value?) 'destination': value, + if (_$JsonConverterToJson( + instance.attributeKey, + const AuthUserAttributeKeyConverter().toJson, + ) + case final value?) + 'attributeKey': value, +}; const _$DeliveryMediumEnumMap = { DeliveryMedium.email: 'email', @@ -58,11 +52,9 @@ const _$DeliveryMediumEnumMap = { Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); Json? _$JsonConverterToJson( Value? value, Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); +) => value == null ? null : toJson(value); diff --git a/packages/amplify_core/lib/src/types/auth/hub/auth_hub_event.dart b/packages/amplify_core/lib/src/types/auth/hub/auth_hub_event.dart index 6876af22ff..3f480841db 100644 --- a/packages/amplify_core/lib/src/types/auth/hub/auth_hub_event.dart +++ b/packages/amplify_core/lib/src/types/auth/hub/auth_hub_event.dart @@ -38,7 +38,7 @@ class AuthHubEvent extends HubEvent /// a user was already signed in. /// {@endtemplate} AuthHubEvent.signedIn(AuthUser user) - : this._(AuthHubEventType.signedIn, payload: user); + : this._(AuthHubEventType.signedIn, payload: user); /// {@template amplify_common.hub.auth_hub_event_signed_out} /// Emitted when the user is signed out, either by calling @@ -57,10 +57,8 @@ class AuthHubEvent extends HubEvent /// Emitted when a user is deleted by calling `Amplify.Auth.deleteUser`. /// {@endtemplate} AuthHubEvent.userDeleted() : this._(AuthHubEventType.userDeleted); - AuthHubEvent._( - this.type, { - AuthUser? payload, - }) : super(type.eventName, payload: payload); + AuthHubEvent._(this.type, {AuthUser? payload}) + : super(type.eventName, payload: payload); /// {@macro amplify_common.hub.auth_hub_event_type} final AuthHubEventType type; diff --git a/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_details.dart b/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_details.dart index 8b19064f11..3c4a983bf9 100644 --- a/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_details.dart +++ b/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_details.dart @@ -13,10 +13,8 @@ class TotpSetupDetails AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.auth.totp_setup_details} - const TotpSetupDetails({ - required this.sharedSecret, - required String username, - }) : _username = username; + const TotpSetupDetails({required this.sharedSecret, required String username}) + : _username = username; /// {@macro amplify_core.auth.totp_setup_details} factory TotpSetupDetails.fromJson(Map json) { @@ -38,19 +36,12 @@ class TotpSetupDetails /// You must pass your application's name which will be used as a label in the /// authenticator app. Optionally, pass an [accountName] which will be set to /// the user's username by default. - Uri getSetupUri({ - required String appName, - String? accountName, - }) => - Uri( - scheme: 'otpauth', - host: 'totp', - path: '/$appName:${accountName ?? _username}', - query: _encodeQueryParameters({ - 'secret': sharedSecret, - 'issuer': appName, - }), - ); + Uri getSetupUri({required String appName, String? accountName}) => Uri( + scheme: 'otpauth', + host: 'totp', + path: '/$appName:${accountName ?? _username}', + query: _encodeQueryParameters({'secret': sharedSecret, 'issuer': appName}), + ); /// Encodes query parameters to match path encoding on non-http URIs /// so that Authenticator apps can correctly match the `appName` and @@ -74,7 +65,7 @@ class TotpSetupDetails @override Map toJson() => { - 'sharedSecret': sharedSecret, - 'username': _username, - }; + 'sharedSecret': sharedSecret, + 'username': _username, + }; } diff --git a/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_options.dart b/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_options.dart index 0f928878ee..065fd9aed2 100644 --- a/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_options.dart +++ b/packages/amplify_core/lib/src/types/auth/mfa/totp_setup_options.dart @@ -12,9 +12,7 @@ class TotpSetupOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.auth.totp_setup_options} - const TotpSetupOptions({ - this.pluginOptions, - }); + const TotpSetupOptions({this.pluginOptions}); /// {@macro amplify_core.auth.totp_setup_plugin_options} final TotpSetupPluginOptions? pluginOptions; @@ -26,9 +24,7 @@ class TotpSetupOptions String get runtimeTypeName => 'TotpSetupOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// {@template amplify_core.auth.totp_setup_plugin_options} diff --git a/packages/amplify_core/lib/src/types/auth/mfa/user_mfa_preference.dart b/packages/amplify_core/lib/src/types/auth/mfa/user_mfa_preference.dart index 313069238f..abe09a14cc 100644 --- a/packages/amplify_core/lib/src/types/auth/mfa/user_mfa_preference.dart +++ b/packages/amplify_core/lib/src/types/auth/mfa/user_mfa_preference.dart @@ -13,10 +13,7 @@ final class UserMfaPreference AWSEquatable, AWSDebuggable { /// {@macro amplify_core.auth.user_mfa_preference} - const UserMfaPreference({ - this.enabled = const {}, - this.preferred, - }); + const UserMfaPreference({this.enabled = const {}, this.preferred}); /// The enabled MFA methods for the user. final Set enabled; @@ -35,7 +32,7 @@ final class UserMfaPreference @override Map toJson() => { - 'enabled': enabled.map((type) => type.name.toUpperCase()).toList(), - 'preferred': preferred?.name.toUpperCase(), - }; + 'enabled': enabled.map((type) => type.name.toUpperCase()).toList(), + 'preferred': preferred?.name.toUpperCase(), + }; } diff --git a/packages/amplify_core/lib/src/types/auth/mfa/verify_totp_setup_options.dart b/packages/amplify_core/lib/src/types/auth/mfa/verify_totp_setup_options.dart index 5099d0ae58..c17af175e6 100644 --- a/packages/amplify_core/lib/src/types/auth/mfa/verify_totp_setup_options.dart +++ b/packages/amplify_core/lib/src/types/auth/mfa/verify_totp_setup_options.dart @@ -12,9 +12,7 @@ class VerifyTotpSetupOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.auth.verify_totp_setup_options} - const VerifyTotpSetupOptions({ - this.pluginOptions, - }); + const VerifyTotpSetupOptions({this.pluginOptions}); /// {@macro amplify_core.auth.verify_totp_setup_plugin_options} final VerifyTotpSetupPluginOptions? pluginOptions; @@ -26,9 +24,7 @@ class VerifyTotpSetupOptions String get runtimeTypeName => 'VerifyTotpSetupOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// {@template amplify_core.auth.verify_totp_setup_plugin_options} diff --git a/packages/amplify_core/lib/src/types/auth/password/confirm_reset_password_options.dart b/packages/amplify_core/lib/src/types/auth/password/confirm_reset_password_options.dart index ec73862ab9..19962331e1 100644 --- a/packages/amplify_core/lib/src/types/auth/password/confirm_reset_password_options.dart +++ b/packages/amplify_core/lib/src/types/auth/password/confirm_reset_password_options.dart @@ -13,9 +13,7 @@ class ConfirmResetPasswordOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.confirm_reset_password_options} - const ConfirmResetPasswordOptions({ - this.pluginOptions, - }); + const ConfirmResetPasswordOptions({this.pluginOptions}); /// {@macro amplify_core.auth.confirm_reset_password_plugin_options} final ConfirmResetPasswordPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class ConfirmResetPasswordOptions String get runtimeTypeName => 'ConfirmResetPasswordOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/password/reset_password_options.dart b/packages/amplify_core/lib/src/types/auth/password/reset_password_options.dart index f7eb025841..3abd50ed67 100644 --- a/packages/amplify_core/lib/src/types/auth/password/reset_password_options.dart +++ b/packages/amplify_core/lib/src/types/auth/password/reset_password_options.dart @@ -13,9 +13,7 @@ class ResetPasswordOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.reset_password_options} - const ResetPasswordOptions({ - this.pluginOptions, - }); + const ResetPasswordOptions({this.pluginOptions}); /// {@macro amplify_core.auth.reset_password_plugin_options} final ResetPasswordPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class ResetPasswordOptions String get runtimeTypeName => 'ResetPasswordOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/password/reset_password_step.g.dart b/packages/amplify_core/lib/src/types/auth/password/reset_password_step.g.dart index 14d53d888a..7176eafd82 100644 --- a/packages/amplify_core/lib/src/types/auth/password/reset_password_step.g.dart +++ b/packages/amplify_core/lib/src/types/auth/password/reset_password_step.g.dart @@ -9,44 +9,36 @@ part of 'reset_password_step.dart'; // ************************************************************************** ResetPasswordStep _$ResetPasswordStepFromJson(Map json) => - $checkedCreate( - 'ResetPasswordStep', - json, - ($checkedConvert) { - final val = ResetPasswordStep( - additionalInfo: $checkedConvert( - 'additionalInfo', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - codeDeliveryDetails: $checkedConvert( - 'codeDeliveryDetails', - (v) => v == null + $checkedCreate('ResetPasswordStep', json, ($checkedConvert) { + final val = ResetPasswordStep( + additionalInfo: $checkedConvert( + 'additionalInfo', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + codeDeliveryDetails: $checkedConvert( + 'codeDeliveryDetails', + (v) => + v == null ? null - : AuthCodeDeliveryDetails.fromJson( - v as Map)), - updateStep: $checkedConvert('updateStep', - (v) => $enumDecode(_$AuthResetPasswordStepEnumMap, v)), - ); - return val; - }, - ); - -Map _$ResetPasswordStepToJson(ResetPasswordStep instance) { - final val = { - 'additionalInfo': instance.additionalInfo, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('codeDeliveryDetails', instance.codeDeliveryDetails?.toJson()); - val['updateStep'] = _$AuthResetPasswordStepEnumMap[instance.updateStep]!; - return val; -} + : AuthCodeDeliveryDetails.fromJson(v as Map), + ), + updateStep: $checkedConvert( + 'updateStep', + (v) => $enumDecode(_$AuthResetPasswordStepEnumMap, v), + ), + ); + return val; + }); + +Map _$ResetPasswordStepToJson(ResetPasswordStep instance) => + { + 'additionalInfo': instance.additionalInfo, + if (instance.codeDeliveryDetails?.toJson() case final value?) + 'codeDeliveryDetails': value, + 'updateStep': _$AuthResetPasswordStepEnumMap[instance.updateStep]!, + }; const _$AuthResetPasswordStepEnumMap = { AuthResetPasswordStep.confirmResetPasswordWithCode: diff --git a/packages/amplify_core/lib/src/types/auth/password/update_password_options.dart b/packages/amplify_core/lib/src/types/auth/password/update_password_options.dart index 51813c38ca..2c7a7a2010 100644 --- a/packages/amplify_core/lib/src/types/auth/password/update_password_options.dart +++ b/packages/amplify_core/lib/src/types/auth/password/update_password_options.dart @@ -13,9 +13,7 @@ class UpdatePasswordOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.update_password_options} - const UpdatePasswordOptions({ - this.pluginOptions, - }); + const UpdatePasswordOptions({this.pluginOptions}); /// {@macro amplify_core.auth.update_password_plugin_options} final UpdatePasswordPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class UpdatePasswordOptions String get runtimeTypeName => 'UpdatePasswordOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/session/auth_session.dart b/packages/amplify_core/lib/src/types/auth/session/auth_session.dart index d4f7b9e97c..4857773962 100644 --- a/packages/amplify_core/lib/src/types/auth/session/auth_session.dart +++ b/packages/amplify_core/lib/src/types/auth/session/auth_session.dart @@ -5,9 +5,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@category Auth} abstract class AuthSession with AWSSerializable> { - const AuthSession({ - required this.isSignedIn, - }); + const AuthSession({required this.isSignedIn}); final bool isSignedIn; } diff --git a/packages/amplify_core/lib/src/types/auth/session/auth_user.dart b/packages/amplify_core/lib/src/types/auth/session/auth_user.dart index bd949377f7..0f0799f200 100644 --- a/packages/amplify_core/lib/src/types/auth/session/auth_user.dart +++ b/packages/amplify_core/lib/src/types/auth/session/auth_user.dart @@ -20,8 +20,8 @@ class AuthUser with AWSSerializable>, AWSDebuggable { @override Map toJson() => { - 'userId': userId, - 'username': username, - 'signInDetails': signInDetails.toJson(), - }; + 'userId': userId, + 'username': username, + 'signInDetails': signInDetails.toJson(), + }; } diff --git a/packages/amplify_core/lib/src/types/auth/session/fetch_auth_session_options.dart b/packages/amplify_core/lib/src/types/auth/session/fetch_auth_session_options.dart index f259b918b6..2ec9a604c1 100644 --- a/packages/amplify_core/lib/src/types/auth/session/fetch_auth_session_options.dart +++ b/packages/amplify_core/lib/src/types/auth/session/fetch_auth_session_options.dart @@ -35,9 +35,9 @@ class FetchAuthSessionOptions @override Map toJson() => { - 'forceRefresh': forceRefresh, - 'pluginOptions': pluginOptions?.toJson(), - }; + 'forceRefresh': forceRefresh, + 'pluginOptions': pluginOptions?.toJson(), + }; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/session/get_current_user_options.dart b/packages/amplify_core/lib/src/types/auth/session/get_current_user_options.dart index 4962e3a2e8..e18d368b3a 100644 --- a/packages/amplify_core/lib/src/types/auth/session/get_current_user_options.dart +++ b/packages/amplify_core/lib/src/types/auth/session/get_current_user_options.dart @@ -12,9 +12,7 @@ class GetCurrentUserOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.auth.get_current_user_options} - const GetCurrentUserOptions({ - this.pluginOptions, - }); + const GetCurrentUserOptions({this.pluginOptions}); /// {@macro amplify_core.auth.get_current_user_plugin_options} final GetCurrentUserPluginOptions? pluginOptions; @@ -26,9 +24,7 @@ class GetCurrentUserOptions String get runtimeTypeName => 'GetCurrentUserOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.dart b/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.dart index 26d5e3a02c..d4ac05e1a9 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.dart @@ -44,11 +44,11 @@ class AuthNextSignInStep extends AuthNextStep @override List get props => [ - signInStep, - missingAttributes, - allowedMfaTypes, - totpSetupDetails, - ]; + signInStep, + missingAttributes, + allowedMfaTypes, + totpSetupDetails, + ]; @override String get runtimeTypeName => 'AuthNextSignInStep'; diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.g.dart b/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.g.dart index 6d480f1414..f54c821b35 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.g.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/auth_next_sign_in_step.g.dart @@ -8,69 +8,71 @@ part of 'auth_next_sign_in_step.dart'; // JsonSerializableGenerator // ************************************************************************** -AuthNextSignInStep _$AuthNextSignInStepFromJson(Map json) => - $checkedCreate( - 'AuthNextSignInStep', - json, - ($checkedConvert) { - final val = AuthNextSignInStep( - additionalInfo: $checkedConvert( - 'additionalInfo', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - codeDeliveryDetails: $checkedConvert( - 'codeDeliveryDetails', - (v) => v == null - ? null - : AuthCodeDeliveryDetails.fromJson( - v as Map)), - signInStep: $checkedConvert( - 'signInStep', (v) => $enumDecode(_$AuthSignInStepEnumMap, v)), - missingAttributes: $checkedConvert( - 'missingAttributes', - (v) => - (v as List?) - ?.map((e) => const AuthUserAttributeKeyConverter() - .fromJson(e as String)) - .toList() ?? - const []), - allowedMfaTypes: $checkedConvert( - 'allowedMfaTypes', - (v) => (v as List?) - ?.map((e) => $enumDecode(_$MfaTypeEnumMap, e)) - .toSet()), - totpSetupDetails: $checkedConvert( - 'totpSetupDetails', - (v) => v == null - ? null - : TotpSetupDetails.fromJson(v as Map)), - ); - return val; - }, - ); - -Map _$AuthNextSignInStepToJson(AuthNextSignInStep instance) { - final val = { - 'additionalInfo': instance.additionalInfo, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('codeDeliveryDetails', instance.codeDeliveryDetails?.toJson()); - val['signInStep'] = _$AuthSignInStepEnumMap[instance.signInStep]!; - val['missingAttributes'] = instance.missingAttributes - .map(const AuthUserAttributeKeyConverter().toJson) - .toList(); - writeNotNull('allowedMfaTypes', - instance.allowedMfaTypes?.map((e) => _$MfaTypeEnumMap[e]!).toList()); - writeNotNull('totpSetupDetails', instance.totpSetupDetails?.toJson()); +AuthNextSignInStep _$AuthNextSignInStepFromJson( + Map json, +) => $checkedCreate('AuthNextSignInStep', json, ($checkedConvert) { + final val = AuthNextSignInStep( + additionalInfo: $checkedConvert( + 'additionalInfo', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as String)), + ), + codeDeliveryDetails: $checkedConvert( + 'codeDeliveryDetails', + (v) => + v == null + ? null + : AuthCodeDeliveryDetails.fromJson(v as Map), + ), + signInStep: $checkedConvert( + 'signInStep', + (v) => $enumDecode(_$AuthSignInStepEnumMap, v), + ), + missingAttributes: $checkedConvert( + 'missingAttributes', + (v) => + (v as List?) + ?.map( + (e) => + const AuthUserAttributeKeyConverter().fromJson(e as String), + ) + .toList() ?? + const [], + ), + allowedMfaTypes: $checkedConvert( + 'allowedMfaTypes', + (v) => + (v as List?) + ?.map((e) => $enumDecode(_$MfaTypeEnumMap, e)) + .toSet(), + ), + totpSetupDetails: $checkedConvert( + 'totpSetupDetails', + (v) => + v == null + ? null + : TotpSetupDetails.fromJson(v as Map), + ), + ); return val; -} +}); + +Map _$AuthNextSignInStepToJson(AuthNextSignInStep instance) => + { + 'additionalInfo': instance.additionalInfo, + if (instance.codeDeliveryDetails?.toJson() case final value?) + 'codeDeliveryDetails': value, + 'signInStep': _$AuthSignInStepEnumMap[instance.signInStep]!, + 'missingAttributes': + instance.missingAttributes + .map(const AuthUserAttributeKeyConverter().toJson) + .toList(), + if (instance.allowedMfaTypes?.map((e) => _$MfaTypeEnumMap[e]!).toList() + case final value?) + 'allowedMfaTypes': value, + if (instance.totpSetupDetails?.toJson() case final value?) + 'totpSetupDetails': value, + }; const _$AuthSignInStepEnumMap = { AuthSignInStep.continueSignInWithMfaSelection: diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/auth_provider.dart b/packages/amplify_core/lib/src/types/auth/sign_in/auth_provider.dart index 3407f0b690..06587992e4 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/auth_provider.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/auth_provider.dart @@ -22,7 +22,7 @@ class AuthProvider /// configuring the provider, while [issuer] must match the `iss` value of /// the provider's ID token. const AuthProvider.oidc(this.name, String issuer) - : _identityPoolProvider = issuer; + : _identityPoolProvider = issuer; /// Auth provider that uses Security Assertion Markup Language (SAML). /// @@ -37,7 +37,7 @@ class AuthProvider /// For a guide on how to configure a SAML provider in your identity pool, /// see [here](https://docs.aws.amazon.com/cognito/latest/developerguide/saml-identity-provider.html). const AuthProvider.saml(this.name, [String? providerArn]) - : _identityPoolProvider = providerArn; + : _identityPoolProvider = providerArn; /// Custom auth provider that is not in this list, the associated string /// value will be the identifier used by Cognito. @@ -45,8 +45,8 @@ class AuthProvider /// The [developerProvidedName] should match whatever has been configured in /// your user pool and/or identity pool. const AuthProvider.custom(String developerProvidedName) - : name = developerProvidedName, - _identityPoolProvider = null; + : name = developerProvidedName, + _identityPoolProvider = null; const AuthProvider._(this.name, [this._identityPoolProvider]); @@ -60,14 +60,7 @@ class AuthProvider static const cognito = AuthProvider._('cognito'); static const twitter = AuthProvider._('twitter'); - static const values = [ - google, - facebook, - amazon, - apple, - cognito, - twitter, - ]; + static const values = [google, facebook, amazon, apple, cognito, twitter]; /// The value of the `identity_provider` URI parameter. /// @@ -115,9 +108,9 @@ class AuthProvider @override Map toJson() => { - 'name': name, - 'identityPoolProvider': _identityPoolProvider, - }; + 'name': name, + 'identityPoolProvider': _identityPoolProvider, + }; @override String toString() => 'AuthProvider.$name'; diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/confirm_sign_in_options.dart b/packages/amplify_core/lib/src/types/auth/sign_in/confirm_sign_in_options.dart index 01bd954335..ad1fceb2d9 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/confirm_sign_in_options.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/confirm_sign_in_options.dart @@ -13,9 +13,7 @@ class ConfirmSignInOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.auth.confirm_sign_in_options} - const ConfirmSignInOptions({ - this.pluginOptions, - }); + const ConfirmSignInOptions({this.pluginOptions}); /// {@macro amplify_core.auth.confirm_sign_in_plugin_options} final ConfirmSignInPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class ConfirmSignInOptions String get runtimeTypeName => 'ConfirmSignInOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_options.dart b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_options.dart index 0503680a8b..7836d8c4a1 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_options.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_options.dart @@ -13,9 +13,7 @@ class SignInOptions AWSEquatable, AWSDebuggable { /// {@macro amplify_core.auth.sign_in_options} - const SignInOptions({ - this.pluginOptions, - }); + const SignInOptions({this.pluginOptions}); /// {@macro amplify_core.auth.sign_in_plugin_options} final SignInPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class SignInOptions String get runtimeTypeName => 'SignInOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.dart b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.dart index 183159a1ab..8dd22ae08f 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.dart @@ -12,10 +12,7 @@ class SignInResult AWSEquatable, AWSSerializable>, AWSDebuggable { - const SignInResult({ - required this.isSignedIn, - required this.nextStep, - }); + const SignInResult({required this.isSignedIn, required this.nextStep}); factory SignInResult.fromJson(Map json) => _$SignInResultFromJson(json); diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.g.dart b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.g.dart index fc2fc439a1..fcc22ccc1a 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.g.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_result.g.dart @@ -9,18 +9,16 @@ part of 'sign_in_result.dart'; // ************************************************************************** SignInResult _$SignInResultFromJson(Map json) => - $checkedCreate( - 'SignInResult', - json, - ($checkedConvert) { - final val = SignInResult( - isSignedIn: $checkedConvert('isSignedIn', (v) => v as bool), - nextStep: $checkedConvert('nextStep', - (v) => AuthNextSignInStep.fromJson(v as Map)), - ); - return val; - }, - ); + $checkedCreate('SignInResult', json, ($checkedConvert) { + final val = SignInResult( + isSignedIn: $checkedConvert('isSignedIn', (v) => v as bool), + nextStep: $checkedConvert( + 'nextStep', + (v) => AuthNextSignInStep.fromJson(v as Map), + ), + ); + return val; + }); Map _$SignInResultToJson(SignInResult instance) => { diff --git a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_with_web_ui_options.dart b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_with_web_ui_options.dart index 67785c5f25..6deeefd4fc 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_with_web_ui_options.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_in/sign_in_with_web_ui_options.dart @@ -13,9 +13,7 @@ class SignInWithWebUIOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.auth.sign_in_with_web_ui_options} - const SignInWithWebUIOptions({ - this.pluginOptions, - }); + const SignInWithWebUIOptions({this.pluginOptions}); /// {@macro amplify_core.auth.sign_in_with_web_ui_plugin_options} final SignInWithWebUIPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class SignInWithWebUIOptions String get runtimeTypeName => 'SignInWithWebUIOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_out/sign_out_options.dart b/packages/amplify_core/lib/src/types/auth/sign_out/sign_out_options.dart index 550902d5e1..c7a8620737 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_out/sign_out_options.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_out/sign_out_options.dart @@ -13,10 +13,7 @@ class SignOutOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.sign_out_options} - const SignOutOptions({ - this.globalSignOut = false, - this.pluginOptions, - }); + const SignOutOptions({this.globalSignOut = false, this.pluginOptions}); /// Sign the current user out from all devices /// @@ -35,9 +32,9 @@ class SignOutOptions @override Map toJson() => { - 'globalSignOut': globalSignOut, - 'pluginOptions': pluginOptions?.toJson(), - }; + 'globalSignOut': globalSignOut, + 'pluginOptions': pluginOptions?.toJson(), + }; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.dart b/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.dart index fc39090963..2e1272a511 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.dart @@ -21,11 +21,7 @@ class AuthNextSignUpStep extends AuthNextStep final AuthSignUpStep signUpStep; @override - List get props => [ - additionalInfo, - codeDeliveryDetails, - signUpStep, - ]; + List get props => [additionalInfo, codeDeliveryDetails, signUpStep]; @override String get runtimeTypeName => 'AuthNextSignUpStep'; diff --git a/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.g.dart b/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.g.dart index 301300a002..2213084701 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.g.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_up/auth_next_sign_up_step.g.dart @@ -9,44 +9,36 @@ part of 'auth_next_sign_up_step.dart'; // ************************************************************************** AuthNextSignUpStep _$AuthNextSignUpStepFromJson(Map json) => - $checkedCreate( - 'AuthNextSignUpStep', - json, - ($checkedConvert) { - final val = AuthNextSignUpStep( - additionalInfo: $checkedConvert( - 'additionalInfo', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - codeDeliveryDetails: $checkedConvert( - 'codeDeliveryDetails', - (v) => v == null + $checkedCreate('AuthNextSignUpStep', json, ($checkedConvert) { + final val = AuthNextSignUpStep( + additionalInfo: $checkedConvert( + 'additionalInfo', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + codeDeliveryDetails: $checkedConvert( + 'codeDeliveryDetails', + (v) => + v == null ? null - : AuthCodeDeliveryDetails.fromJson( - v as Map)), - signUpStep: $checkedConvert( - 'signUpStep', (v) => $enumDecode(_$AuthSignUpStepEnumMap, v)), - ); - return val; - }, - ); - -Map _$AuthNextSignUpStepToJson(AuthNextSignUpStep instance) { - final val = { - 'additionalInfo': instance.additionalInfo, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('codeDeliveryDetails', instance.codeDeliveryDetails?.toJson()); - val['signUpStep'] = _$AuthSignUpStepEnumMap[instance.signUpStep]!; - return val; -} + : AuthCodeDeliveryDetails.fromJson(v as Map), + ), + signUpStep: $checkedConvert( + 'signUpStep', + (v) => $enumDecode(_$AuthSignUpStepEnumMap, v), + ), + ); + return val; + }); + +Map _$AuthNextSignUpStepToJson(AuthNextSignUpStep instance) => + { + 'additionalInfo': instance.additionalInfo, + if (instance.codeDeliveryDetails?.toJson() case final value?) + 'codeDeliveryDetails': value, + 'signUpStep': _$AuthSignUpStepEnumMap[instance.signUpStep]!, + }; const _$AuthSignUpStepEnumMap = { AuthSignUpStep.confirmSignUp: 'confirmSignUp', diff --git a/packages/amplify_core/lib/src/types/auth/sign_up/confirm_sign_up_options.dart b/packages/amplify_core/lib/src/types/auth/sign_up/confirm_sign_up_options.dart index c4833482e9..da6f8f5fd0 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_up/confirm_sign_up_options.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_up/confirm_sign_up_options.dart @@ -13,9 +13,7 @@ class ConfirmSignUpOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.types.auth.confirm_sign_up_options} - const ConfirmSignUpOptions({ - this.pluginOptions, - }); + const ConfirmSignUpOptions({this.pluginOptions}); /// {@macro amplify_core.auth.confirm_sign_up_plugin_options} final ConfirmSignUpPluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class ConfirmSignUpOptions String get runtimeTypeName => 'ConfirmSignUpOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_options.dart b/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_options.dart index c1b9e8e27c..9c711a7b51 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_options.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_options.dart @@ -13,9 +13,7 @@ class ResendSignUpCodeOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.auth.resend_sign_up_code_options} - const ResendSignUpCodeOptions({ - this.pluginOptions, - }); + const ResendSignUpCodeOptions({this.pluginOptions}); /// {@macro amplify_core.auth.sign_up_plugin_options} final ResendSignUpCodePluginOptions? pluginOptions; @@ -27,9 +25,7 @@ class ResendSignUpCodeOptions String get runtimeTypeName => 'ResendSignUpCodeOptions'; @override - Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - }; + Map toJson() => {'pluginOptions': pluginOptions?.toJson()}; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_result.g.dart b/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_result.g.dart index d5a19a81e7..fb26cfe8fa 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_result.g.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_up/resend_sign_up_code_result.g.dart @@ -9,23 +9,19 @@ part of 'resend_sign_up_code_result.dart'; // ************************************************************************** ResendSignUpCodeResult _$ResendSignUpCodeResultFromJson( - Map json) => - $checkedCreate( - 'ResendSignUpCodeResult', - json, - ($checkedConvert) { - final val = ResendSignUpCodeResult( - $checkedConvert( - 'codeDeliveryDetails', - (v) => - AuthCodeDeliveryDetails.fromJson(v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('ResendSignUpCodeResult', json, ($checkedConvert) { + final val = ResendSignUpCodeResult( + $checkedConvert( + 'codeDeliveryDetails', + (v) => AuthCodeDeliveryDetails.fromJson(v as Map), + ), + ); + return val; +}); Map _$ResendSignUpCodeResultToJson( - ResendSignUpCodeResult instance) => - { - 'codeDeliveryDetails': instance.codeDeliveryDetails.toJson(), - }; + ResendSignUpCodeResult instance, +) => { + 'codeDeliveryDetails': instance.codeDeliveryDetails.toJson(), +}; diff --git a/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_options.dart b/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_options.dart index 6dd82596c6..ce847997ee 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_options.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_options.dart @@ -43,9 +43,9 @@ class SignUpOptions @override Map toJson() => { - 'userAttributes': userAttributes, - 'pluginOptions': pluginOptions?.toJson(), - }; + 'userAttributes': userAttributes, + 'pluginOptions': pluginOptions?.toJson(), + }; } /// @nodoc diff --git a/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_result.g.dart b/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_result.g.dart index e22299d2e1..b9e93ea00e 100644 --- a/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_result.g.dart +++ b/packages/amplify_core/lib/src/types/auth/sign_up/sign_up_result.g.dart @@ -9,33 +9,21 @@ part of 'sign_up_result.dart'; // ************************************************************************** SignUpResult _$SignUpResultFromJson(Map json) => - $checkedCreate( - 'SignUpResult', - json, - ($checkedConvert) { - final val = SignUpResult( - isSignUpComplete: - $checkedConvert('isSignUpComplete', (v) => v as bool), - nextStep: $checkedConvert('nextStep', - (v) => AuthNextSignUpStep.fromJson(v as Map)), - userId: $checkedConvert('userId', (v) => v as String?), - ); - return val; - }, - ); + $checkedCreate('SignUpResult', json, ($checkedConvert) { + final val = SignUpResult( + isSignUpComplete: $checkedConvert('isSignUpComplete', (v) => v as bool), + nextStep: $checkedConvert( + 'nextStep', + (v) => AuthNextSignUpStep.fromJson(v as Map), + ), + userId: $checkedConvert('userId', (v) => v as String?), + ); + return val; + }); -Map _$SignUpResultToJson(SignUpResult instance) { - final val = { - 'isSignUpComplete': instance.isSignUpComplete, - 'nextStep': instance.nextStep.toJson(), - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('userId', instance.userId); - return val; -} +Map _$SignUpResultToJson(SignUpResult instance) => + { + 'isSignUpComplete': instance.isSignUpComplete, + 'nextStep': instance.nextStep.toJson(), + if (instance.userId case final value?) 'userId': value, + }; diff --git a/packages/amplify_core/lib/src/types/datastore/conflict_handler/datastore_conflict_handler.dart b/packages/amplify_core/lib/src/types/datastore/conflict_handler/datastore_conflict_handler.dart index 5a3a89766d..d00f61501d 100644 --- a/packages/amplify_core/lib/src/types/datastore/conflict_handler/datastore_conflict_handler.dart +++ b/packages/amplify_core/lib/src/types/datastore/conflict_handler/datastore_conflict_handler.dart @@ -4,9 +4,8 @@ import 'package:amplify_core/amplify_core.dart'; import 'package:meta/meta.dart'; -typedef DataStoreConflictHandler = ConflictResolutionDecision Function( - ConflictData, -); +typedef DataStoreConflictHandler = + ConflictResolutionDecision Function(ConflictData); @immutable class ConflictData { @@ -16,8 +15,8 @@ class ConflictData { ModelType modelType, Map localJson, Map remoteJson, - ) : local = modelType.fromJson(localJson), - remote = modelType.fromJson(remoteJson); + ) : local = modelType.fromJson(localJson), + remote = modelType.fromJson(remoteJson); final Model local; final Model remote; @@ -30,15 +29,15 @@ class ConflictResolutionDecision { const ConflictResolutionDecision(this._resolutionStrategy, this.customModel); const ConflictResolutionDecision.applyRemote() - : _resolutionStrategy = ResolutionStrategy.applyRemote, - customModel = null; + : _resolutionStrategy = ResolutionStrategy.applyRemote, + customModel = null; const ConflictResolutionDecision.retryLocal() - : _resolutionStrategy = ResolutionStrategy.retryLocal, - customModel = null; + : _resolutionStrategy = ResolutionStrategy.retryLocal, + customModel = null; const ConflictResolutionDecision.retry(Model this.customModel) - : _resolutionStrategy = ResolutionStrategy.retry; + : _resolutionStrategy = ResolutionStrategy.retry; final ResolutionStrategy _resolutionStrategy; final Model? customModel; @@ -50,7 +49,7 @@ class ConflictResolutionDecision { } Map toJson() => { - 'resolutionStrategy': _resolutionStrategy.name, - 'customModel': customModel?.toJson(), - }; + 'resolutionStrategy': _resolutionStrategy.name, + 'customModel': customModel?.toJson(), + }; } diff --git a/packages/amplify_core/lib/src/types/datastore/hub/datstore_hub_event.dart b/packages/amplify_core/lib/src/types/datastore/hub/datstore_hub_event.dart index 5a6e6b17d8..7326988fd8 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/datstore_hub_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/datstore_hub_event.dart @@ -19,11 +19,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class DataStoreHubEvent extends HubEvent { /// {@macro amplify_core.datastore_hub_event} - DataStoreHubEvent( - super.eventName, { - required this.type, - super.payload, - }); + DataStoreHubEvent(super.eventName, {required this.type, super.payload}); /// {@macro amplify_core.datastore_hub_event.type} final DataStoreHubEventType type; diff --git a/packages/amplify_core/lib/src/types/datastore/hub/hub_event_element.dart b/packages/amplify_core/lib/src/types/datastore/hub/hub_event_element.dart index 96923e7094..896a59cd2b 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/hub_event_element.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/hub_event_element.dart @@ -29,7 +29,9 @@ Model _parseModelFromMap( ) { final serializedElement = serializedHubEventElement['element'] as Map; final modelName = serializedHubEventElement['modelName'] as String; - final modelData = Map.from(serializedElement['model'] as Map) - .cast(); + final modelData = + Map.from( + serializedElement['model'] as Map, + ).cast(); return provider.getModelTypeByModelName(modelName).fromJson(modelData); } diff --git a/packages/amplify_core/lib/src/types/datastore/hub/model_synced_event.dart b/packages/amplify_core/lib/src/types/datastore/hub/model_synced_event.dart index 583694b9ec..bb8a5d794b 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/model_synced_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/model_synced_event.dart @@ -5,12 +5,12 @@ import 'package:amplify_core/amplify_core.dart'; class ModelSyncedEvent extends DataStoreHubEventPayload { ModelSyncedEvent(Map serializedData) - : modelName = serializedData['model'] as String, - isFullSync = serializedData['isFullSync'] as bool, - isDeltaSync = serializedData['isDeltaSync'] as bool, - added = serializedData['added'] as int, - updated = serializedData['updated'] as int, - deleted = serializedData['deleted'] as int; + : modelName = serializedData['model'] as String, + isFullSync = serializedData['isFullSync'] as bool, + isDeltaSync = serializedData['isDeltaSync'] as bool, + added = serializedData['added'] as int, + updated = serializedData['updated'] as int, + deleted = serializedData['deleted'] as int; final String modelName; final bool isFullSync; diff --git a/packages/amplify_core/lib/src/types/datastore/hub/network_status_event.dart b/packages/amplify_core/lib/src/types/datastore/hub/network_status_event.dart index 08045de46e..aa132eb5ab 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/network_status_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/network_status_event.dart @@ -5,7 +5,7 @@ import 'package:amplify_core/amplify_core.dart'; class NetworkStatusEvent extends DataStoreHubEventPayload { NetworkStatusEvent(Map serializedData) - : active = serializedData['active'] as bool; + : active = serializedData['active'] as bool; final bool active; } diff --git a/packages/amplify_core/lib/src/types/datastore/hub/outbox_mutation_event.dart b/packages/amplify_core/lib/src/types/datastore/hub/outbox_mutation_event.dart index 324f0c1625..9b3f97095b 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/outbox_mutation_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/outbox_mutation_event.dart @@ -8,10 +8,11 @@ class OutboxMutationEvent extends DataStoreHubEventPayload { Map serializedData, ModelProviderInterface provider, String eventName, - ) : element = eventName == 'outboxMutationEnqueued' - ? HubEventElement.fromMap(serializedData, provider) - : HubEventElementWithMetadata.fromMap(serializedData, provider), - modelName = serializedData['modelName'] as String; + ) : element = + eventName == 'outboxMutationEnqueued' + ? HubEventElement.fromMap(serializedData, provider) + : HubEventElementWithMetadata.fromMap(serializedData, provider), + modelName = serializedData['modelName'] as String; final HubEventElement element; final String modelName; diff --git a/packages/amplify_core/lib/src/types/datastore/hub/outbox_status_event.dart b/packages/amplify_core/lib/src/types/datastore/hub/outbox_status_event.dart index 98de8e4f22..0e5ca3a1e7 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/outbox_status_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/outbox_status_event.dart @@ -5,7 +5,7 @@ import 'package:amplify_core/amplify_core.dart'; class OutboxStatusEvent extends DataStoreHubEventPayload { OutboxStatusEvent(Map serializedData) - : isEmpty = serializedData['isEmpty'] as bool; + : isEmpty = serializedData['isEmpty'] as bool; final bool isEmpty; } diff --git a/packages/amplify_core/lib/src/types/datastore/hub/subscription_data_processed_event.dart b/packages/amplify_core/lib/src/types/datastore/hub/subscription_data_processed_event.dart index 8cd624a0b0..477f48a1b1 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/subscription_data_processed_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/subscription_data_processed_event.dart @@ -8,8 +8,8 @@ class SubscriptionDataProcessedEvent SubscriptionDataProcessedEvent( Map serializedData, ModelProviderInterface provider, - ) : element = HubEventElementWithMetadata.fromMap(serializedData, provider), - modelName = serializedData['modelName'] as String; + ) : element = HubEventElementWithMetadata.fromMap(serializedData, provider), + modelName = serializedData['modelName'] as String; final HubEventElementWithMetadata element; final String modelName; diff --git a/packages/amplify_core/lib/src/types/datastore/hub/sync_queries_started_event.dart b/packages/amplify_core/lib/src/types/datastore/hub/sync_queries_started_event.dart index 08a0d10a6b..11e99a6596 100644 --- a/packages/amplify_core/lib/src/types/datastore/hub/sync_queries_started_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/hub/sync_queries_started_event.dart @@ -7,9 +7,9 @@ import 'package:amplify_core/amplify_core.dart'; class SyncQueriesStartedEvent extends DataStoreHubEventPayload { SyncQueriesStartedEvent(Map serializedData) - : models = List.from( - jsonDecode(serializedData['models'] as String) as List, - ); + : models = List.from( + jsonDecode(serializedData['models'] as String) as List, + ); final List models; } diff --git a/packages/amplify_core/lib/src/types/datastore/models/observe_query_throttle_options.dart b/packages/amplify_core/lib/src/types/datastore/models/observe_query_throttle_options.dart index fc3605f995..998ad66656 100644 --- a/packages/amplify_core/lib/src/types/datastore/models/observe_query_throttle_options.dart +++ b/packages/amplify_core/lib/src/types/datastore/models/observe_query_throttle_options.dart @@ -13,17 +13,15 @@ class ObserveQueryThrottleOptions { /// default throttle options const ObserveQueryThrottleOptions.defaults() - : maxCount = 1000, - maxDuration = const Duration(seconds: 2); + : maxCount = 1000, + maxDuration = const Duration(seconds: 2); /// removes all throttling options /// /// Note: during cloud sync, this will result in a new /// QuerySnapshot be emitted for every single item that /// is synced to the device that matches the query predicate - const ObserveQueryThrottleOptions.none() - : maxCount = 1, - maxDuration = null; + const ObserveQueryThrottleOptions.none() : maxCount = 1, maxDuration = null; /// During the initial sync, a [QuerySnapshot] wil be /// generated every [maxCount] records diff --git a/packages/amplify_core/lib/src/types/datastore/models/query_snapshot.dart b/packages/amplify_core/lib/src/types/datastore/models/query_snapshot.dart index 1d0d802c9e..20ca6e8066 100644 --- a/packages/amplify_core/lib/src/types/datastore/models/query_snapshot.dart +++ b/packages/amplify_core/lib/src/types/datastore/models/query_snapshot.dart @@ -94,11 +94,8 @@ class QuerySnapshot { // the item being created on this device and App Sync returning an // updated item during the create mutation. This can happen when using // custom resolvers. - updatedSortedList = _sortedList.copy() - ..updateAtSorted( - currentIndex, - newItem, - ); + updatedSortedList = + _sortedList.copy()..updateAtSorted(currentIndex, newItem); } case EventType.update: if (currentItem == null && matchesPredicate) { @@ -108,11 +105,8 @@ class QuerySnapshot { } else if (currentItem != newItem && matchesPredicate) { // Update the item in the list. This item exists in the list but the // value of the item has changed. - updatedSortedList = _sortedList.copy() - ..updateAtSorted( - currentIndex, - newItem, - ); + updatedSortedList = + _sortedList.copy()..updateAtSorted(currentIndex, newItem); } else if (currentItem != null && !matchesPredicate) { // Remove the item from the list. The item exist in the list but no // longer matches the predicate. diff --git a/packages/amplify_core/lib/src/types/datastore/models/sorted_list.dart b/packages/amplify_core/lib/src/types/datastore/models/sorted_list.dart index aba4d906eb..528c215b3f 100644 --- a/packages/amplify_core/lib/src/types/datastore/models/sorted_list.dart +++ b/packages/amplify_core/lib/src/types/datastore/models/sorted_list.dart @@ -22,8 +22,8 @@ class SortedList with ListMixin { const SortedList.fromPresortedList({ required List items, int Function(E a, E b)? compare, - }) : _items = items, - _compare = compare; + }) : _items = items, + _compare = compare; // Required for ListMixin @override diff --git a/packages/amplify_core/lib/src/types/datastore/models/subscription_event.dart b/packages/amplify_core/lib/src/types/datastore/models/subscription_event.dart index 3838a51e9b..7c4ac77c16 100644 --- a/packages/amplify_core/lib/src/types/datastore/models/subscription_event.dart +++ b/packages/amplify_core/lib/src/types/datastore/models/subscription_event.dart @@ -22,8 +22,9 @@ class SubscriptionEvent { return SubscriptionEvent( item: modelType.fromJson(serializedItem), - eventType: EventType.values - .firstWhere((e) => e.name == map['eventType'] as String?), + eventType: EventType.values.firstWhere( + (e) => e.name == map['eventType'] as String?, + ), modelType: modelType, ); } diff --git a/packages/amplify_core/lib/src/types/datastore/sync/datastore_sync_expression.dart b/packages/amplify_core/lib/src/types/datastore/sync/datastore_sync_expression.dart index c2d5bc4ca5..24ee16b1b4 100644 --- a/packages/amplify_core/lib/src/types/datastore/sync/datastore_sync_expression.dart +++ b/packages/amplify_core/lib/src/types/datastore/sync/datastore_sync_expression.dart @@ -9,7 +9,7 @@ import 'package:amplify_core/amplify_core.dart'; class DataStoreSyncExpression { /// Default constructor DataStoreSyncExpression(this._modelType, this._queryPredicateResolver) - : id = uuid(); + : id = uuid(); /// A unique id for this sync expression final String id; diff --git a/packages/amplify_core/lib/src/types/exception/amplify_exception.dart b/packages/amplify_core/lib/src/types/exception/amplify_exception.dart index a60f435bd6..b85a0e26ec 100644 --- a/packages/amplify_core/lib/src/types/exception/amplify_exception.dart +++ b/packages/amplify_core/lib/src/types/exception/amplify_exception.dart @@ -73,23 +73,18 @@ abstract class AmplifyException final Object? underlyingException; @override - List get props => [ - message, - recoverySuggestion, - underlyingException, - ]; + List get props => [message, recoverySuggestion, underlyingException]; @override String get runtimeTypeName => 'AmplifyException'; @override Map toJson() => { - 'message': message, - if (recoverySuggestion != null) - 'recoverySuggestion': recoverySuggestion, - if (underlyingException != null) - 'underlyingException': underlyingException.toString(), - }; + 'message': message, + if (recoverySuggestion != null) 'recoverySuggestion': recoverySuggestion, + if (underlyingException != null) + 'underlyingException': underlyingException.toString(), + }; } class _AmplifyException extends AmplifyException { diff --git a/packages/amplify_core/lib/src/types/exception/analytics/invalid_event_exception.dart b/packages/amplify_core/lib/src/types/exception/analytics/invalid_event_exception.dart index de1d9d7997..c7b45ef492 100644 --- a/packages/amplify_core/lib/src/types/exception/analytics/invalid_event_exception.dart +++ b/packages/amplify_core/lib/src/types/exception/analytics/invalid_event_exception.dart @@ -12,9 +12,7 @@ class InvalidEventException extends AnalyticsException { const InvalidEventException({ super.recoverySuggestion, super.underlyingException, - }) : super( - 'Invalid event data.', - ); + }) : super('Invalid event data.'); @override String get runtimeTypeName => 'InvalidEventException'; diff --git a/packages/amplify_core/lib/src/types/exception/api/http_status_exception.dart b/packages/amplify_core/lib/src/types/exception/api/http_status_exception.dart index 60a46afea1..3b95d16542 100644 --- a/packages/amplify_core/lib/src/types/exception/api/http_status_exception.dart +++ b/packages/amplify_core/lib/src/types/exception/api/http_status_exception.dart @@ -10,10 +10,10 @@ part of '../amplify_exception.dart'; class HttpStatusException extends ApiException { /// {@macro rest_exception} HttpStatusException(this.response) - : super( - response.decodeBody(), - underlyingException: 'HTTP Status code: ${response.statusCode}', - ); + : super( + response.decodeBody(), + underlyingException: 'HTTP Status code: ${response.statusCode}', + ); /// The HTTP response from the server. final AWSHttpResponse response; diff --git a/packages/amplify_core/lib/src/types/exception/auth/invalid_state_exception.dart b/packages/amplify_core/lib/src/types/exception/auth/invalid_state_exception.dart index ff5b411628..8f8d30a8db 100644 --- a/packages/amplify_core/lib/src/types/exception/auth/invalid_state_exception.dart +++ b/packages/amplify_core/lib/src/types/exception/auth/invalid_state_exception.dart @@ -19,11 +19,12 @@ class InvalidStateException extends AuthException { /// Thrown when trying to access user pool methods while federated to an /// identity pool. const InvalidStateException.federatedToIdentityPool() - : this( - 'Users federated to Identity Pools do not have User Pool access.', - recoverySuggestion: 'Call `clearFederationToIdentityPool`, ' - 'then sign in normally to access User Pool data.', - ); + : this( + 'Users federated to Identity Pools do not have User Pool access.', + recoverySuggestion: + 'Call `clearFederationToIdentityPool`, ' + 'then sign in normally to access User Pool data.', + ); @override String get runtimeTypeName => 'InvalidStateException'; diff --git a/packages/amplify_core/lib/src/types/exception/error/amplify_error.dart b/packages/amplify_core/lib/src/types/exception/error/amplify_error.dart index 0ad76fb7aa..95dbfb054f 100644 --- a/packages/amplify_core/lib/src/types/exception/error/amplify_error.dart +++ b/packages/amplify_core/lib/src/types/exception/error/amplify_error.dart @@ -26,10 +26,9 @@ abstract class AmplifyError extends Error @override Map toJson() => { - 'message': message, - if (recoverySuggestion != null) - 'recoverySuggestion': recoverySuggestion, - if (underlyingException != null) - 'underlyingException': underlyingException.toString(), - }; + 'message': message, + if (recoverySuggestion != null) 'recoverySuggestion': recoverySuggestion, + if (underlyingException != null) + 'underlyingException': underlyingException.toString(), + }; } diff --git a/packages/amplify_core/lib/src/types/models/auth_rule.dart b/packages/amplify_core/lib/src/types/models/auth_rule.dart index 399715581b..78dcc54e97 100644 --- a/packages/amplify_core/lib/src/types/models/auth_rule.dart +++ b/packages/amplify_core/lib/src/types/models/auth_rule.dart @@ -19,7 +19,7 @@ enum ModelOperation { LIST, SYNC, LISTEN, - SEARCH + SEARCH, } enum AuthRuleProvider { APIKEY, OIDC, IAM, USERPOOLS, FUNCTION } diff --git a/packages/amplify_core/lib/src/types/models/model.dart b/packages/amplify_core/lib/src/types/models/model.dart index 8a6a9cc57a..649a84e036 100644 --- a/packages/amplify_core/lib/src/types/models/model.dart +++ b/packages/amplify_core/lib/src/types/models/model.dart @@ -88,6 +88,6 @@ abstract class ModelIdentifier { List> serializeAsList(); /// Serialize a model identifier into a single string in format: - /// [#] + /// primaryKey[#] String serializeAsString(); } diff --git a/packages/amplify_core/lib/src/types/models/model_association.dart b/packages/amplify_core/lib/src/types/models/model_association.dart index 5c2172d3ba..1cce0e5f28 100644 --- a/packages/amplify_core/lib/src/types/models/model_association.dart +++ b/packages/amplify_core/lib/src/types/models/model_association.dart @@ -27,11 +27,11 @@ class ModelAssociation with AWSEquatable, AWSSerializable { @override List get props => [ - associationType, - targetNames, - associatedName, - associatedType, - ]; + associationType, + targetNames, + associatedName, + associatedType, + ]; ModelAssociation copyWith({ ModelAssociationEnum? associationType, diff --git a/packages/amplify_core/lib/src/types/models/model_field_definition.dart b/packages/amplify_core/lib/src/types/models/model_field_definition.dart index 391c26dfb4..0fef211ab9 100644 --- a/packages/amplify_core/lib/src/types/models/model_field_definition.dart +++ b/packages/amplify_core/lib/src/types/models/model_field_definition.dart @@ -132,8 +132,10 @@ class ModelFieldDefinition { return field( key: key, isRequired: isRequired, - ofType: - ModelFieldType(ModelFieldTypeEnum.model, ofModelName: ofModelName), + ofType: ModelFieldType( + ModelFieldTypeEnum.model, + ofModelName: ofModelName, + ), association: ModelAssociation( associationType: ModelAssociationEnum.HasOne, associatedName: associatedKey.fieldName, @@ -159,8 +161,10 @@ class ModelFieldDefinition { return field( key: key, isRequired: isRequired, - ofType: - ModelFieldType(ModelFieldTypeEnum.model, ofModelName: ofModelName), + ofType: ModelFieldType( + ModelFieldTypeEnum.model, + ofModelName: ofModelName, + ), association: ModelAssociation( associationType: ModelAssociationEnum.BelongsTo, targetNames: targetNames, diff --git a/packages/amplify_core/lib/src/types/models/model_index.dart b/packages/amplify_core/lib/src/types/models/model_index.dart index 068c289101..716055ff81 100644 --- a/packages/amplify_core/lib/src/types/models/model_index.dart +++ b/packages/amplify_core/lib/src/types/models/model_index.dart @@ -9,16 +9,13 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class ModelIndex with AWSEquatable, AWSSerializable { /// {@macro model_index} - const ModelIndex({ - required this.fields, - this.name, - }); + const ModelIndex({required this.fields, this.name}); /// Create an instance of [ModelIndex] from a json object factory ModelIndex.fromJson(Map map) => ModelIndex( - fields: (map['fields'] as List).cast(), - name: map['name'] as String?, - ); + fields: (map['fields'] as List).cast(), + name: map['name'] as String?, + ); /// Index name that is defined by the name parameter of `@index` directive in /// a model schema. This will always be null when the index is representing @@ -35,18 +32,12 @@ class ModelIndex with AWSEquatable, AWSSerializable { List get props => [name, fields]; /// Make a copy of an existing [ModelIndex] instance. - ModelIndex copyWith({ - List? fields, - String? name, - }) => + ModelIndex copyWith({List? fields, String? name}) => ModelIndex(fields: fields ?? this.fields, name: name ?? this.name); /// Generate a json object that represents [ModelIndex] @override - Map toJson() => { - 'name': name, - 'fields': fields, - }; + Map toJson() => {'name': name, 'fields': fields}; @override String toString() => 'ModelIndex(name: $name, fields: $fields)'; diff --git a/packages/amplify_core/lib/src/types/models/model_schema.dart b/packages/amplify_core/lib/src/types/models/model_schema.dart index 182609b72c..9d099f914b 100644 --- a/packages/amplify_core/lib/src/types/models/model_schema.dart +++ b/packages/amplify_core/lib/src/types/models/model_schema.dart @@ -42,24 +42,18 @@ class ModelSchema with AWSEquatable { } @override - List get props => [ - name, - pluralName, - authRules, - fields, - indexes, - ]; + List get props => [name, pluralName, authRules, fields, indexes]; Map toMap() => { - 'name': name, - if (pluralName != null) 'pluralName': pluralName, - if (authRules != null) - 'authRules': authRules?.map((x) => x.toMap()).toList(), - if (fields != null) - 'fields': fields?.map((key, value) => MapEntry(key, value.toMap())), - if (indexes != null) - 'indexes': indexes?.map((value) => value.toJson()).toList(), - }; + 'name': name, + if (pluralName != null) 'pluralName': pluralName, + if (authRules != null) + 'authRules': authRules?.map((x) => x.toMap()).toList(), + if (fields != null) + 'fields': fields?.map((key, value) => MapEntry(key, value.toMap())), + if (indexes != null) + 'indexes': indexes?.map((value) => value.toJson()).toList(), + }; String toJson() => json.encode(toMap()); diff --git a/packages/amplify_core/lib/src/types/notifications/push/apns_platform_options.dart b/packages/amplify_core/lib/src/types/notifications/push/apns_platform_options.dart index ffff3b327e..adc04c3a9d 100644 --- a/packages/amplify_core/lib/src/types/notifications/push/apns_platform_options.dart +++ b/packages/amplify_core/lib/src/types/notifications/push/apns_platform_options.dart @@ -17,7 +17,5 @@ class ApnsPlatformOptions String get runtimeTypeName => 'ApnsPlatformOptions'; @override - Map toJson() => { - 'subTitle': subtitle, - }; + Map toJson() => {'subTitle': subtitle}; } diff --git a/packages/amplify_core/lib/src/types/notifications/push/fcm_platform_options.dart b/packages/amplify_core/lib/src/types/notifications/push/fcm_platform_options.dart index 8febfd80e8..225dec453f 100644 --- a/packages/amplify_core/lib/src/types/notifications/push/fcm_platform_options.dart +++ b/packages/amplify_core/lib/src/types/notifications/push/fcm_platform_options.dart @@ -9,10 +9,7 @@ import 'package:amplify_core/amplify_core.dart'; class FcmPlatformOptions with AWSDebuggable, AWSSerializable> { /// {@macro amplify_core.push.fcm_platform_options} - const FcmPlatformOptions({ - this.channelId, - this.messageId, - }); + const FcmPlatformOptions({this.channelId, this.messageId}); /// The default channelId for Push Notifications. Currently only supporting default channels. final String? channelId; @@ -25,7 +22,7 @@ class FcmPlatformOptions @override Map toJson() => { - 'channelId': channelId, - 'messageId': messageId, - }; + 'channelId': channelId, + 'messageId': messageId, + }; } diff --git a/packages/amplify_core/lib/src/types/notifications/push/on_remote_message_callback.dart b/packages/amplify_core/lib/src/types/notifications/push/on_remote_message_callback.dart index 1bba2f3603..b08a14eb30 100644 --- a/packages/amplify_core/lib/src/types/notifications/push/on_remote_message_callback.dart +++ b/packages/amplify_core/lib/src/types/notifications/push/on_remote_message_callback.dart @@ -8,6 +8,5 @@ import 'package:amplify_core/src/types/notifications/notification_types.dart'; /// {@template amplify_core.push.on_remote_message_callback} /// Type definition for the callback functions provided to the `onNotificationReceivedInBackground` API /// {@endtemplate} -typedef OnRemoteMessageCallback = FutureOr Function( - PushNotificationMessage remotePushMessage, -); +typedef OnRemoteMessageCallback = + FutureOr Function(PushNotificationMessage remotePushMessage); diff --git a/packages/amplify_core/lib/src/types/notifications/push/push_notification_message.dart b/packages/amplify_core/lib/src/types/notifications/push/push_notification_message.dart index e91d50602d..213f64ed98 100644 --- a/packages/amplify_core/lib/src/types/notifications/push/push_notification_message.dart +++ b/packages/amplify_core/lib/src/types/notifications/push/push_notification_message.dart @@ -23,7 +23,7 @@ class PushNotificationMessage factory PushNotificationMessage.fromJson(Map json) { final data = (json['data'] as Map?)?.cast() ?? - const {}; + const {}; switch (json) { // `aps` dictionary references: // - https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification @@ -64,9 +64,9 @@ class PushNotificationMessage final imageUrl = json['imageUrl'] as String?; final (deeplinkUrl, goToUrl) = switch (json['action']) { {'deeplink': final String deeplink, 'url': final String url} => ( - deeplink, - url - ), + deeplink, + url, + ), {'deeplink': final String deeplink} => (deeplink, null), {'url': final String url} => (null, url), _ => (null, null), @@ -107,13 +107,13 @@ class PushNotificationMessage @override Map toJson() => { - 'title': title, - 'body': body, - 'imageUrl': imageUrl, - 'deeplinkUrl': deeplinkUrl, - 'goToUrl': goToUrl, - 'fcmOptions': fcmOptions, - 'apnsOptions': apnsOptions, - 'data': data, - }; + 'title': title, + 'body': body, + 'imageUrl': imageUrl, + 'deeplinkUrl': deeplinkUrl, + 'goToUrl': goToUrl, + 'fcmOptions': fcmOptions, + 'apnsOptions': apnsOptions, + 'data': data, + }; } diff --git a/packages/amplify_core/lib/src/types/notifications/push/service_provider_client.dart b/packages/amplify_core/lib/src/types/notifications/push/service_provider_client.dart index 2c6454f7ca..240ff576e4 100644 --- a/packages/amplify_core/lib/src/types/notifications/push/service_provider_client.dart +++ b/packages/amplify_core/lib/src/types/notifications/push/service_provider_client.dart @@ -26,8 +26,5 @@ abstract class ServiceProviderClient { }); /// Link the user details to the service provider so messages can be targeted on a user level. - Future identifyUser({ - required String userId, - UserProfile? userProfile, - }); + Future identifyUser({required String userId, UserProfile? userProfile}); } diff --git a/packages/amplify_core/lib/src/types/query/query_field.dart b/packages/amplify_core/lib/src/types/query/query_field.dart index b5658c8f94..0a60595f6a 100644 --- a/packages/amplify_core/lib/src/types/query/query_field.dart +++ b/packages/amplify_core/lib/src/types/query/query_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library query_field; +library; import 'package:amplify_core/amplify_core.dart'; @@ -86,9 +86,9 @@ class QueryField { /// ``` /// {@endtemplate} QueryPredicateOperation le(Comparable value) => QueryPredicateOperation( - fieldName, - LessOrEqualQueryOperator>(value), - ); + fieldName, + LessOrEqualQueryOperator>(value), + ); /// {@macro amplify_core.query_field.le} QueryPredicateOperation operator <=(Comparable value) => le(value); @@ -118,9 +118,9 @@ class QueryField { /// ``` /// {@endtemplate} QueryPredicateOperation lt(Comparable value) => QueryPredicateOperation( - fieldName, - LessThanQueryOperator>(value), - ); + fieldName, + LessThanQueryOperator>(value), + ); /// {@macro amplify_core.query_field.lt} QueryPredicateOperation operator <(Comparable value) => lt(value); @@ -151,9 +151,9 @@ class QueryField { /// ``` /// {@endtemplate} QueryPredicateOperation ge(Comparable value) => QueryPredicateOperation( - fieldName, - GreaterOrEqualQueryOperator>(value), - ); + fieldName, + GreaterOrEqualQueryOperator>(value), + ); /// {@macro amplify_core.query_field.ge} QueryPredicateOperation operator >=(Comparable value) => ge(value); @@ -183,9 +183,9 @@ class QueryField { /// ``` /// {@endtemplate} QueryPredicateOperation gt(Comparable value) => QueryPredicateOperation( - fieldName, - GreaterThanQueryOperator>(value), - ); + fieldName, + GreaterThanQueryOperator>(value), + ); /// {@macro amplify_core.query_field.gt} QueryPredicateOperation operator >(Comparable value) => gt(value); @@ -195,7 +195,7 @@ class QueryField { /// Matches models where the given field contains the provided value. /// /// This operation can be applied to fields of type String or - /// List. + /// List of Strings. /// /// Example: /// ```dart @@ -215,10 +215,8 @@ class QueryField { /// where: Blog.CATEGORIES.contains('bar'), /// ); /// ``` - QueryPredicateOperation contains(String value) => QueryPredicateOperation( - fieldName, - ContainsQueryOperator(value), - ); + QueryPredicateOperation contains(String value) => + QueryPredicateOperation(fieldName, ContainsQueryOperator(value)); /// A **between** operation. /// @@ -271,9 +269,7 @@ class QueryField { QueryPredicateOperation attributeExists({bool exists = true}) => QueryPredicateOperation( fieldName, - AttributeExistsQueryOperator( - exists: exists, - ), + AttributeExistsQueryOperator(exists: exists), ); /// Sorts models by the given field in ascending order diff --git a/packages/amplify_core/lib/src/types/query/query_field_operators.dart b/packages/amplify_core/lib/src/types/query/query_field_operators.dart index ff972ef7a9..d4171e67a9 100644 --- a/packages/amplify_core/lib/src/types/query/query_field_operators.dart +++ b/packages/amplify_core/lib/src/types/query/query_field_operators.dart @@ -68,7 +68,7 @@ abstract class QueryFieldOperator { abstract class QueryFieldOperatorSingleValue extends QueryFieldOperator { const QueryFieldOperatorSingleValue(this.value, QueryFieldOperatorType type) - : super(type); + : super(type); final T value; @@ -80,7 +80,7 @@ abstract class QueryFieldOperatorSingleValue extends QueryFieldOperator { class EqualQueryOperator extends QueryFieldOperatorSingleValue { const EqualQueryOperator(T value) - : super(value, QueryFieldOperatorType.equal); + : super(value, QueryFieldOperatorType.equal); @override bool evaluate(T? other) { @@ -98,7 +98,7 @@ class EqualQueryOperator extends QueryFieldOperatorSingleValue { class EqualModelIdentifierQueryOperator extends QueryFieldOperatorSingleValue { const EqualModelIdentifierQueryOperator(T value) - : super(value, QueryFieldOperatorType.equal); + : super(value, QueryFieldOperatorType.equal); @override bool evaluate(T? other) { @@ -113,7 +113,7 @@ class EqualModelIdentifierQueryOperator class NotEqualQueryOperator extends QueryFieldOperatorSingleValue { const NotEqualQueryOperator(T value) - : super(value, QueryFieldOperatorType.not_equal); + : super(value, QueryFieldOperatorType.not_equal); @override bool evaluate(T? other) { @@ -130,7 +130,7 @@ class NotEqualQueryOperator extends QueryFieldOperatorSingleValue { class NotEqualModelIdentifierQueryOperator extends QueryFieldOperatorSingleValue { const NotEqualModelIdentifierQueryOperator(T value) - : super(value, QueryFieldOperatorType.not_equal); + : super(value, QueryFieldOperatorType.not_equal); @override bool evaluate(T? other) { @@ -146,7 +146,7 @@ class NotEqualModelIdentifierQueryOperator class LessOrEqualQueryOperator> extends QueryFieldOperatorSingleValue { const LessOrEqualQueryOperator(T value) - : super(value, QueryFieldOperatorType.less_or_equal); + : super(value, QueryFieldOperatorType.less_or_equal); @override bool evaluate(T? other) { @@ -160,7 +160,7 @@ class LessOrEqualQueryOperator> class LessThanQueryOperator> extends QueryFieldOperatorSingleValue { const LessThanQueryOperator(T value) - : super(value, QueryFieldOperatorType.less_than); + : super(value, QueryFieldOperatorType.less_than); @override bool evaluate(T? other) { @@ -174,7 +174,7 @@ class LessThanQueryOperator> class GreaterOrEqualQueryOperator> extends QueryFieldOperatorSingleValue { const GreaterOrEqualQueryOperator(T value) - : super(value, QueryFieldOperatorType.greater_or_equal); + : super(value, QueryFieldOperatorType.greater_or_equal); @override bool evaluate(T? other) { @@ -188,7 +188,7 @@ class GreaterOrEqualQueryOperator> class GreaterThanQueryOperator> extends QueryFieldOperatorSingleValue { const GreaterThanQueryOperator(T value) - : super(value, QueryFieldOperatorType.greater_than); + : super(value, QueryFieldOperatorType.greater_than); @override bool evaluate(T? other) { @@ -201,7 +201,7 @@ class GreaterThanQueryOperator> class ContainsQueryOperator extends QueryFieldOperatorSingleValue { const ContainsQueryOperator(String value) - : super(value, QueryFieldOperatorType.contains); + : super(value, QueryFieldOperatorType.contains); @override bool evaluate(dynamic other) { @@ -223,7 +223,7 @@ class ContainsQueryOperator extends QueryFieldOperatorSingleValue { class BetweenQueryOperator> extends QueryFieldOperator { const BetweenQueryOperator(this.start, this.end) - : super(QueryFieldOperatorType.between); + : super(QueryFieldOperatorType.between); final T start; final T end; @@ -248,7 +248,7 @@ class BetweenQueryOperator> class BeginsWithQueryOperator extends QueryFieldOperatorSingleValue { const BeginsWithQueryOperator(String value) - : super(value, QueryFieldOperatorType.begins_with); + : super(value, QueryFieldOperatorType.begins_with); @override bool evaluate(String? other) { @@ -261,7 +261,7 @@ class BeginsWithQueryOperator extends QueryFieldOperatorSingleValue { class AttributeExistsQueryOperator extends QueryFieldOperator { const AttributeExistsQueryOperator({this.exists = true}) - : super(QueryFieldOperatorType.attribute_exists); + : super(QueryFieldOperatorType.attribute_exists); final bool exists; diff --git a/packages/amplify_core/lib/src/types/query/query_model_identifier.dart b/packages/amplify_core/lib/src/types/query/query_model_identifier.dart index c74d1b1271..a0a955ddf4 100644 --- a/packages/amplify_core/lib/src/types/query/query_model_identifier.dart +++ b/packages/amplify_core/lib/src/types/query/query_model_identifier.dart @@ -29,9 +29,9 @@ class QueryModelIdentifier { /// ); /// ``` QueryByIdentifierOperation eq(T value) => QueryByIdentifierOperation( - dummyFieldName, - EqualModelIdentifierQueryOperator(value), - ); + dummyFieldName, + EqualModelIdentifierQueryOperator(value), + ); /// A **not equal to** operation. /// @@ -54,7 +54,7 @@ class QueryModelIdentifier { /// ); /// ``` QueryByIdentifierOperation ne(T value) => QueryByIdentifierOperation( - dummyFieldName, - NotEqualModelIdentifierQueryOperator(value), - ); + dummyFieldName, + NotEqualModelIdentifierQueryOperator(value), + ); } diff --git a/packages/amplify_core/lib/src/types/query/query_predicate.dart b/packages/amplify_core/lib/src/types/query/query_predicate.dart index bc777f6c7b..07271ec73d 100644 --- a/packages/amplify_core/lib/src/types/query/query_predicate.dart +++ b/packages/amplify_core/lib/src/types/query/query_predicate.dart @@ -13,8 +13,9 @@ QueryPredicateGroup not(QueryPredicate predicate) { abstract class QueryPredicate { const QueryPredicate(); - static const _queryPredicateAll = - _QueryPredicateConstant(QueryPredicateConstantType.all); + static const _queryPredicateAll = _QueryPredicateConstant( + QueryPredicateConstantType.all, + ); /// A static instance of [QueryPredicate] that matches any object. /// diff --git a/packages/amplify_core/lib/src/types/storage/base/storage_operation.dart b/packages/amplify_core/lib/src/types/storage/base/storage_operation.dart index dd68d273d0..960bb65a4a 100644 --- a/packages/amplify_core/lib/src/types/storage/base/storage_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/base/storage_operation.dart @@ -5,10 +5,8 @@ import 'package:amplify_core/amplify_core.dart'; import 'package:meta/meta.dart'; abstract class StorageOperation { - StorageOperation({ - required this.request, - required this.result, - }) : operationId = uuid(); + StorageOperation({required this.request, required this.result}) + : operationId = uuid(); @internal final Request request; diff --git a/packages/amplify_core/lib/src/types/storage/bucket_info.dart b/packages/amplify_core/lib/src/types/storage/bucket_info.dart index 811871f9b3..f3330b55a6 100644 --- a/packages/amplify_core/lib/src/types/storage/bucket_info.dart +++ b/packages/amplify_core/lib/src/types/storage/bucket_info.dart @@ -11,14 +11,8 @@ class BucketInfo final String region; @override - List get props => [ - bucketName, - region, - ]; + List get props => [bucketName, region]; @override - Map toJson() => { - 'bucketName': bucketName, - 'region': region, - }; + Map toJson() => {'bucketName': bucketName, 'region': region}; } diff --git a/packages/amplify_core/lib/src/types/storage/copy_buckets.dart b/packages/amplify_core/lib/src/types/storage/copy_buckets.dart index 7bfb83575d..a163603420 100644 --- a/packages/amplify_core/lib/src/types/storage/copy_buckets.dart +++ b/packages/amplify_core/lib/src/types/storage/copy_buckets.dart @@ -3,22 +3,19 @@ import 'package:amplify_core/amplify_core.dart'; /// Presents storage buckets for a copy operation. class CopyBuckets with AWSSerializable> { /// Creates a [CopyBuckets] with [source] and [destination] buckets. - const CopyBuckets({ - required this.source, - required this.destination, - }); + const CopyBuckets({required this.source, required this.destination}); /// Creates a [CopyBuckets] with the same [bucket] for the [source] and [destination]. CopyBuckets.sameBucket(StorageBucket bucket) - : source = bucket, - destination = bucket; + : source = bucket, + destination = bucket; final StorageBucket source; final StorageBucket destination; @override Map toJson() => { - 'source': source.toJson(), - 'destination': destination.toJson(), - }; + 'source': source.toJson(), + 'destination': destination.toJson(), + }; } diff --git a/packages/amplify_core/lib/src/types/storage/copy_operation.dart b/packages/amplify_core/lib/src/types/storage/copy_operation.dart index e51dbf03e8..08afb8a9a0 100644 --- a/packages/amplify_core/lib/src/types/storage/copy_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/copy_operation.dart @@ -7,12 +7,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// {@template amplify_core.storage.copy_operation} /// Presents a storage copy operation. /// {@endtemplate} -class StorageCopyOperation +class StorageCopyOperation< + Request extends StorageCopyRequest, + Result extends StorageCopyResult +> extends StorageOperation { /// {@macro amplify_core.storage.copy_operation} - StorageCopyOperation({ - required super.request, - required super.result, - }); + StorageCopyOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/copy_options.dart b/packages/amplify_core/lib/src/types/storage/copy_options.dart index a9910ecfff..b6a698711c 100644 --- a/packages/amplify_core/lib/src/types/storage/copy_options.dart +++ b/packages/amplify_core/lib/src/types/storage/copy_options.dart @@ -12,10 +12,7 @@ class StorageCopyOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.storage.copy_options} - const StorageCopyOptions({ - this.pluginOptions, - this.buckets, - }); + const StorageCopyOptions({this.pluginOptions, this.buckets}); /// plugin specific options for `Amplify.Storage.copy`. final StorageCopyPluginOptions? pluginOptions; @@ -31,9 +28,9 @@ class StorageCopyOptions @override Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - 'buckets': buckets?.toJson(), - }; + 'pluginOptions': pluginOptions?.toJson(), + 'buckets': buckets?.toJson(), + }; } /// {@template amplify_core.storage.copy_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/copy_result.dart b/packages/amplify_core/lib/src/types/storage/copy_result.dart index 168ba2f6c6..ac173d8946 100644 --- a/packages/amplify_core/lib/src/types/storage/copy_result.dart +++ b/packages/amplify_core/lib/src/types/storage/copy_result.dart @@ -8,9 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageCopyResult { /// {@macro amplify_core.storage.copy_result} - const StorageCopyResult({ - required this.copiedItem, - }); + const StorageCopyResult({required this.copiedItem}); /// The result object of the [StorageCopyOperation]. final Item copiedItem; diff --git a/packages/amplify_core/lib/src/types/storage/data_payload.dart b/packages/amplify_core/lib/src/types/storage/data_payload.dart index 7171da65a9..f327ab789c 100644 --- a/packages/amplify_core/lib/src/types/storage/data_payload.dart +++ b/packages/amplify_core/lib/src/types/storage/data_payload.dart @@ -31,15 +31,13 @@ import 'package:meta/meta.dart'; class StorageDataPayload extends StreamView> { /// An empty [StorageDataPayload]. const StorageDataPayload.empty({this.contentType}) - : size = 0, - super(const Stream.empty()); + : size = 0, + super(const Stream.empty()); /// A byte buffer [StorageDataPayload]. - StorageDataPayload.bytes( - List body, { - this.contentType, - }) : size = body.length, - super(Stream.value(body)); + StorageDataPayload.bytes(List body, {this.contentType}) + : size = body.length, + super(Stream.value(body)); /// A [StorageDataPayload]. /// @@ -68,7 +66,8 @@ class StorageDataPayload extends StreamView> { return StorageDataPayload.bytes( // ignore: invalid_use_of_internal_member encoding.encode(HttpPayload.encodeFormValues(body, encoding: encoding)), - contentType: contentType ?? + contentType: + contentType ?? 'application/x-www-form-urlencoded; charset=${encoding.name}', ); } @@ -88,10 +87,8 @@ class StorageDataPayload extends StreamView> { } /// A streaming [StorageDataPayload]. - const StorageDataPayload.streaming( - super.body, { - this.contentType, - }) : size = -1; + const StorageDataPayload.streaming(super.body, {this.contentType}) + : size = -1; /// A data url [StorageDataPayload]. factory StorageDataPayload.dataUrl(String dataUrl) { diff --git a/packages/amplify_core/lib/src/types/storage/download_data_operation.dart b/packages/amplify_core/lib/src/types/storage/download_data_operation.dart index 78ddf39d42..25d7adbec2 100644 --- a/packages/amplify_core/lib/src/types/storage/download_data_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/download_data_operation.dart @@ -9,13 +9,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// A storage download data operation interface. /// {@endtemplate} abstract class StorageDownloadDataOperation< - Request extends StorageDownloadDataRequest, - Result extends StorageDownloadDataResult> + Request extends StorageDownloadDataRequest, + Result extends StorageDownloadDataResult +> extends StorageOperation implements StorageResumableOperation, StorageCancelableOperation { /// {@macro amplify_core.storage.download_data_operation} - StorageDownloadDataOperation({ - required super.request, - required super.result, - }); + StorageDownloadDataOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/download_data_options.dart b/packages/amplify_core/lib/src/types/storage/download_data_options.dart index 26a4ea2422..4551bb37d7 100644 --- a/packages/amplify_core/lib/src/types/storage/download_data_options.dart +++ b/packages/amplify_core/lib/src/types/storage/download_data_options.dart @@ -12,10 +12,7 @@ class StorageDownloadDataOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.storage.download_data_options} - const StorageDownloadDataOptions({ - this.pluginOptions, - this.bucket, - }); + const StorageDownloadDataOptions({this.pluginOptions, this.bucket}); /// {@macro amplify_core.storage.download_data_plugin_options} final StorageDownloadDataPluginOptions? pluginOptions; @@ -31,9 +28,9 @@ class StorageDownloadDataOptions @override Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.download_data_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/download_data_request.dart b/packages/amplify_core/lib/src/types/storage/download_data_request.dart index 5a2ca3c730..8f3b5a54bb 100644 --- a/packages/amplify_core/lib/src/types/storage/download_data_request.dart +++ b/packages/amplify_core/lib/src/types/storage/download_data_request.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageDownloadDataRequest { /// {@macro amplify_core.storage.download_data_request} - const StorageDownloadDataRequest({ - required this.path, - this.options, - }); + const StorageDownloadDataRequest({required this.path, this.options}); /// Path of the object to download. final StoragePath path; diff --git a/packages/amplify_core/lib/src/types/storage/download_file_operation.dart b/packages/amplify_core/lib/src/types/storage/download_file_operation.dart index 2c86cafa37..264386d861 100644 --- a/packages/amplify_core/lib/src/types/storage/download_file_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/download_file_operation.dart @@ -9,13 +9,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// A storage download data operation interface. /// {@endtemplate} abstract class StorageDownloadFileOperation< - Request extends StorageDownloadFileRequest, - Result extends StorageDownloadFileResult> + Request extends StorageDownloadFileRequest, + Result extends StorageDownloadFileResult +> extends StorageOperation implements StorageResumableOperation, StorageCancelableOperation { /// {@macro amplify_core.storage.download_file_operation} - StorageDownloadFileOperation({ - required super.request, - required super.result, - }); + StorageDownloadFileOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/download_file_options.dart b/packages/amplify_core/lib/src/types/storage/download_file_options.dart index 69be1758cd..652c09b38f 100644 --- a/packages/amplify_core/lib/src/types/storage/download_file_options.dart +++ b/packages/amplify_core/lib/src/types/storage/download_file_options.dart @@ -12,10 +12,7 @@ class StorageDownloadFileOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.storage.download_file_options} - const StorageDownloadFileOptions({ - this.pluginOptions, - this.bucket, - }); + const StorageDownloadFileOptions({this.pluginOptions, this.bucket}); /// {@macro amplify_core.storage.download_file_plugin_options} final StorageDownloadFilePluginOptions? pluginOptions; @@ -31,9 +28,9 @@ class StorageDownloadFileOptions @override Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.download_file_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/get_properties_operation.dart b/packages/amplify_core/lib/src/types/storage/get_properties_operation.dart index a1c6e13263..04bd9ccce1 100644 --- a/packages/amplify_core/lib/src/types/storage/get_properties_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/get_properties_operation.dart @@ -7,8 +7,10 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// {@template amplify_core.storage.get_properties_operation} /// Presents a storage copy operation. /// {@endtemplate} -class StorageGetPropertiesOperation +class StorageGetPropertiesOperation< + Request extends StorageGetPropertiesRequest, + Result extends StorageGetPropertiesResult +> extends StorageOperation { /// {@macro amplify_core.storage.get_properties_operation} StorageGetPropertiesOperation({ diff --git a/packages/amplify_core/lib/src/types/storage/get_properties_options.dart b/packages/amplify_core/lib/src/types/storage/get_properties_options.dart index 9a2216b40d..ba569eeafb 100644 --- a/packages/amplify_core/lib/src/types/storage/get_properties_options.dart +++ b/packages/amplify_core/lib/src/types/storage/get_properties_options.dart @@ -12,10 +12,7 @@ class StorageGetPropertiesOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.storage.get_properties_options} - const StorageGetPropertiesOptions({ - this.pluginOptions, - this.bucket, - }); + const StorageGetPropertiesOptions({this.pluginOptions, this.bucket}); /// {@macro amplify_core.storage.download_get_properties_plugin_options} final StorageGetPropertiesPluginOptions? pluginOptions; @@ -31,9 +28,9 @@ class StorageGetPropertiesOptions @override Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.download_get_properties_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/get_properties_request.dart b/packages/amplify_core/lib/src/types/storage/get_properties_request.dart index 7a99f20d3c..9b2663a64d 100644 --- a/packages/amplify_core/lib/src/types/storage/get_properties_request.dart +++ b/packages/amplify_core/lib/src/types/storage/get_properties_request.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageGetPropertiesRequest { /// {@macro amplify_core.storage.get_properties_request} - const StorageGetPropertiesRequest({ - required this.path, - this.options, - }); + const StorageGetPropertiesRequest({required this.path, this.options}); // Path of the object to get properties of. final StoragePath path; diff --git a/packages/amplify_core/lib/src/types/storage/get_properties_result.dart b/packages/amplify_core/lib/src/types/storage/get_properties_result.dart index 49b5b27233..3b4f47129a 100644 --- a/packages/amplify_core/lib/src/types/storage/get_properties_result.dart +++ b/packages/amplify_core/lib/src/types/storage/get_properties_result.dart @@ -8,9 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageGetPropertiesResult { /// {@macro amplify_core.storage.get_properties_result} - const StorageGetPropertiesResult({ - required this.storageItem, - }); + const StorageGetPropertiesResult({required this.storageItem}); /// The result object containing the properties retrieved from the /// [StorageGetPropertiesOperation]. diff --git a/packages/amplify_core/lib/src/types/storage/get_url_operation.dart b/packages/amplify_core/lib/src/types/storage/get_url_operation.dart index 21f7ec442f..96d9a08fa1 100644 --- a/packages/amplify_core/lib/src/types/storage/get_url_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/get_url_operation.dart @@ -7,12 +7,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// {@template amplify_core.storage.get_url_operation} /// Presents a storage get url operation. /// {@endtemplate} -class StorageGetUrlOperation +class StorageGetUrlOperation< + Request extends StorageGetUrlRequest, + Result extends StorageGetUrlResult +> extends StorageOperation { /// {@macro amplify_core.storage.get_url_operation} - StorageGetUrlOperation({ - required super.request, - required super.result, - }); + StorageGetUrlOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/get_url_options.dart b/packages/amplify_core/lib/src/types/storage/get_url_options.dart index 161cc2b93b..13062bc86d 100644 --- a/packages/amplify_core/lib/src/types/storage/get_url_options.dart +++ b/packages/amplify_core/lib/src/types/storage/get_url_options.dart @@ -12,10 +12,7 @@ class StorageGetUrlOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.storage.get_url_options} - const StorageGetUrlOptions({ - this.pluginOptions, - this.bucket, - }); + const StorageGetUrlOptions({this.pluginOptions, this.bucket}); /// {@macro amplify_core.storage.get_url_plugin_options} final StorageGetUrlPluginOptions? pluginOptions; @@ -24,19 +21,16 @@ class StorageGetUrlOptions final StorageBucket? bucket; @override - List get props => [ - pluginOptions, - bucket, - ]; + List get props => [pluginOptions, bucket]; @override String get runtimeTypeName => 'StorageGetUrlOptions'; @override Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.get_url_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/get_url_request.dart b/packages/amplify_core/lib/src/types/storage/get_url_request.dart index cc579dc70f..18a133b91f 100644 --- a/packages/amplify_core/lib/src/types/storage/get_url_request.dart +++ b/packages/amplify_core/lib/src/types/storage/get_url_request.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageGetUrlRequest { /// {@macro amplify_core.storage.get_url_request} - const StorageGetUrlRequest({ - required this.path, - this.options, - }); + const StorageGetUrlRequest({required this.path, this.options}); // Path of the object to get the URL of. final StoragePath path; diff --git a/packages/amplify_core/lib/src/types/storage/get_url_result.dart b/packages/amplify_core/lib/src/types/storage/get_url_result.dart index 76a02e2114..786af036d0 100644 --- a/packages/amplify_core/lib/src/types/storage/get_url_result.dart +++ b/packages/amplify_core/lib/src/types/storage/get_url_result.dart @@ -8,9 +8,7 @@ import 'package:amplify_core/src/types/storage/get_url_operation.dart'; /// {@endtemplate} class StorageGetUrlResult { /// {@macro amplify_core.storage.get_url_result} - const StorageGetUrlResult({ - required this.url, - }); + const StorageGetUrlResult({required this.url}); /// The result [Uri] of the [StorageGetUrlOperation]. final Uri url; diff --git a/packages/amplify_core/lib/src/types/storage/list_operation.dart b/packages/amplify_core/lib/src/types/storage/list_operation.dart index 69fd31d859..402a1ea5ad 100644 --- a/packages/amplify_core/lib/src/types/storage/list_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/list_operation.dart @@ -7,12 +7,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// {@template amplify_core.storage.list_operation} /// Presents a storage list operation. /// {@endtemplate} -class StorageListOperation +class StorageListOperation< + Request extends StorageListRequest, + Result extends StorageListResult +> extends StorageOperation { /// {@macro amplify_core.storage.list_operation} - StorageListOperation({ - required super.request, - required super.result, - }); + StorageListOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/list_options.dart b/packages/amplify_core/lib/src/types/storage/list_options.dart index 72570f262b..954d7056ce 100644 --- a/packages/amplify_core/lib/src/types/storage/list_options.dart +++ b/packages/amplify_core/lib/src/types/storage/list_options.dart @@ -39,11 +39,11 @@ class StorageListOptions @override Map toJson() => { - 'pageSize': pageSize, - 'nextToken': nextToken, - 'bucket': bucket?.toJson(), - 'pluginOptions': pluginOptions?.toJson(), - }; + 'pageSize': pageSize, + 'nextToken': nextToken, + 'bucket': bucket?.toJson(), + 'pluginOptions': pluginOptions?.toJson(), + }; } /// {@template amplify_core.storage.list_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/list_request.dart b/packages/amplify_core/lib/src/types/storage/list_request.dart index c3965152cc..7e63bf5b1f 100644 --- a/packages/amplify_core/lib/src/types/storage/list_request.dart +++ b/packages/amplify_core/lib/src/types/storage/list_request.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageListRequest { /// {@macro amplify_core.storage.list_request} - const StorageListRequest({ - required this.path, - this.options, - }); + const StorageListRequest({required this.path, this.options}); /// Path to list objects under. final StoragePath path; diff --git a/packages/amplify_core/lib/src/types/storage/remove_many_operation.dart b/packages/amplify_core/lib/src/types/storage/remove_many_operation.dart index 2a956e2c69..155feca055 100644 --- a/packages/amplify_core/lib/src/types/storage/remove_many_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/remove_many_operation.dart @@ -7,12 +7,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// {@template amplify_core.storage.remove_many_operation} /// Presents a storage remove many operation. /// {@endtemplate} -class StorageRemoveManyOperation +class StorageRemoveManyOperation< + Request extends StorageRemoveManyRequest, + Result extends StorageRemoveManyResult +> extends StorageOperation { /// {@macro amplify_core.storage.remove_many_operation} - StorageRemoveManyOperation({ - required super.request, - required super.result, - }); + StorageRemoveManyOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/remove_many_options.dart b/packages/amplify_core/lib/src/types/storage/remove_many_options.dart index a50c651fc8..8ffcd3c9b3 100644 --- a/packages/amplify_core/lib/src/types/storage/remove_many_options.dart +++ b/packages/amplify_core/lib/src/types/storage/remove_many_options.dart @@ -12,10 +12,7 @@ class StorageRemoveManyOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.storage.remove_many_options} - const StorageRemoveManyOptions({ - this.pluginOptions, - this.bucket, - }); + const StorageRemoveManyOptions({this.pluginOptions, this.bucket}); /// {@macro amplify_core.storage.remove_many_plugin_options} final StorageRemoveManyPluginOptions? pluginOptions; @@ -24,19 +21,16 @@ class StorageRemoveManyOptions final StorageBucket? bucket; @override - List get props => [ - pluginOptions, - bucket, - ]; + List get props => [pluginOptions, bucket]; @override String get runtimeTypeName => 'StorageRemoveManyOptions'; @override Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.remove_many_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/remove_many_request.dart b/packages/amplify_core/lib/src/types/storage/remove_many_request.dart index bb73279686..f72b7cfd45 100644 --- a/packages/amplify_core/lib/src/types/storage/remove_many_request.dart +++ b/packages/amplify_core/lib/src/types/storage/remove_many_request.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageRemoveManyRequest { /// {@macro amplify_core.storage.remove_many_request} - const StorageRemoveManyRequest({ - required this.paths, - this.options, - }); + const StorageRemoveManyRequest({required this.paths, this.options}); /// Object keys to be removed. final List paths; diff --git a/packages/amplify_core/lib/src/types/storage/remove_operation.dart b/packages/amplify_core/lib/src/types/storage/remove_operation.dart index 71c40cd644..c429894f78 100644 --- a/packages/amplify_core/lib/src/types/storage/remove_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/remove_operation.dart @@ -7,12 +7,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// {@template amplify_core.storage.remove_operation} /// Presents a storage remove many operation. /// {@endtemplate} -class StorageRemoveOperation +class StorageRemoveOperation< + Request extends StorageRemoveRequest, + Result extends StorageRemoveResult +> extends StorageOperation { /// {@macro amplify_core.storage.remove_operation} - StorageRemoveOperation({ - required super.request, - required super.result, - }); + StorageRemoveOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/remove_options.dart b/packages/amplify_core/lib/src/types/storage/remove_options.dart index 13e68cb501..45283d44d3 100644 --- a/packages/amplify_core/lib/src/types/storage/remove_options.dart +++ b/packages/amplify_core/lib/src/types/storage/remove_options.dart @@ -12,10 +12,7 @@ class StorageRemoveOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_core.storage.remove_options} - const StorageRemoveOptions({ - this.pluginOptions, - this.bucket, - }); + const StorageRemoveOptions({this.pluginOptions, this.bucket}); /// {@macro amplify_core.storage.remove_plugin_options} final StorageRemovePluginOptions? pluginOptions; @@ -31,9 +28,9 @@ class StorageRemoveOptions @override Map toJson() => { - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.remove_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/remove_request.dart b/packages/amplify_core/lib/src/types/storage/remove_request.dart index f9a110388d..f5643942ab 100644 --- a/packages/amplify_core/lib/src/types/storage/remove_request.dart +++ b/packages/amplify_core/lib/src/types/storage/remove_request.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageRemoveRequest { /// {@macro amplify_core.storage.remove_request} - const StorageRemoveRequest({ - required this.path, - this.options, - }); + const StorageRemoveRequest({required this.path, this.options}); /// The object key to be removed. final StoragePath path; diff --git a/packages/amplify_core/lib/src/types/storage/remove_result.dart b/packages/amplify_core/lib/src/types/storage/remove_result.dart index 1f12b07107..535b9d049d 100644 --- a/packages/amplify_core/lib/src/types/storage/remove_result.dart +++ b/packages/amplify_core/lib/src/types/storage/remove_result.dart @@ -8,9 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageRemoveResult { /// {@macro amplify_core.storage.remove_result} - const StorageRemoveResult({ - required this.removedItem, - }); + const StorageRemoveResult({required this.removedItem}); /// The removed object of the [StorageRemoveOperation]. final Item removedItem; diff --git a/packages/amplify_core/lib/src/types/storage/storage_bucket.dart b/packages/amplify_core/lib/src/types/storage/storage_bucket.dart index ccfdd345a9..e13e20327a 100644 --- a/packages/amplify_core/lib/src/types/storage/storage_bucket.dart +++ b/packages/amplify_core/lib/src/types/storage/storage_bucket.dart @@ -18,7 +18,5 @@ class StorageBucket with AWSSerializable> { BucketInfo resolveBucketInfo(StorageOutputs? storageOutputs) => _info; @override - Map toJson() => { - '_info': _info.toJson(), - }; + Map toJson() => {'_info': _info.toJson()}; } diff --git a/packages/amplify_core/lib/src/types/storage/storage_bucket_from_outputs.dart b/packages/amplify_core/lib/src/types/storage/storage_bucket_from_outputs.dart index b51d17029d..d80ec7b940 100644 --- a/packages/amplify_core/lib/src/types/storage/storage_bucket_from_outputs.dart +++ b/packages/amplify_core/lib/src/types/storage/storage_bucket_from_outputs.dart @@ -14,10 +14,7 @@ class StorageBucketFromOutputs implements StorageBucket { @override BucketInfo resolveBucketInfo(StorageOutputs? storageOutputs) { - assert( - storageOutputs != null, - 'storageOutputs can not be null', - ); + assert(storageOutputs != null, 'storageOutputs can not be null'); final buckets = storageOutputs!.buckets; if (buckets == null) { throw const InvalidStorageBucketException( @@ -29,20 +26,18 @@ class StorageBucketFromOutputs implements StorageBucket { } final bucket = buckets.singleWhere( (e) => e.name == _name, - orElse: () => throw const InvalidStorageBucketException( - 'Unable to lookup bucket from provided name in Amplify Outputs file.', - recoverySuggestion: 'Make sure Amplify Outputs file has the specified ' - 'bucket configuration.', - ), - ); - return BucketInfo( - bucketName: bucket.bucketName, - region: bucket.awsRegion, + orElse: + () => + throw const InvalidStorageBucketException( + 'Unable to lookup bucket from provided name in Amplify Outputs file.', + recoverySuggestion: + 'Make sure Amplify Outputs file has the specified ' + 'bucket configuration.', + ), ); + return BucketInfo(bucketName: bucket.bucketName, region: bucket.awsRegion); } @override - Map toJson() => { - '_name': _name, - }; + Map toJson() => {'_name': _name}; } diff --git a/packages/amplify_core/lib/src/types/storage/storage_path.dart b/packages/amplify_core/lib/src/types/storage/storage_path.dart index 9f9b7f3f67..3e111cb123 100644 --- a/packages/amplify_core/lib/src/types/storage/storage_path.dart +++ b/packages/amplify_core/lib/src/types/storage/storage_path.dart @@ -37,8 +37,7 @@ class StoragePath { /// {@endtemplate} factory StoragePath.fromIdentityId( String Function(String identityId) pathBuilder, - ) => - StoragePathFromIdentityId(pathBuilder); + ) => StoragePathFromIdentityId(pathBuilder); final String _path; diff --git a/packages/amplify_core/lib/src/types/storage/storage_path_from_identity_id.dart b/packages/amplify_core/lib/src/types/storage/storage_path_from_identity_id.dart index f8b50a642b..e3c077b6c9 100644 --- a/packages/amplify_core/lib/src/types/storage/storage_path_from_identity_id.dart +++ b/packages/amplify_core/lib/src/types/storage/storage_path_from_identity_id.dart @@ -14,9 +14,7 @@ class StoragePathFromIdentityId implements StoragePath { @internal @override - String resolvePath({ - String? identityId, - }) { + String resolvePath({String? identityId}) { // identityId has to be optional in order for this to be a valid override. // This API is internal, and is only invoked with non-null values assert(identityId != null, 'identityId must be defined.'); diff --git a/packages/amplify_core/lib/src/types/storage/upload_data_operation.dart b/packages/amplify_core/lib/src/types/storage/upload_data_operation.dart index b759776ee9..b74cefd409 100644 --- a/packages/amplify_core/lib/src/types/storage/upload_data_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/upload_data_operation.dart @@ -10,13 +10,11 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// Presents a storage upload data operation. /// {@endtemplate} abstract class StorageUploadDataOperation< - Request extends StorageUploadDataRequest, - Result extends StorageUploadDataResult> + Request extends StorageUploadDataRequest, + Result extends StorageUploadDataResult +> extends StorageOperation implements StorageCancelableOperation { /// {@macro amplify_core.storage.upload_data_operation} - StorageUploadDataOperation({ - required super.request, - required super.result, - }); + StorageUploadDataOperation({required super.request, required super.result}); } diff --git a/packages/amplify_core/lib/src/types/storage/upload_data_options.dart b/packages/amplify_core/lib/src/types/storage/upload_data_options.dart index 83e8f5009c..9f6d6f10b4 100644 --- a/packages/amplify_core/lib/src/types/storage/upload_data_options.dart +++ b/packages/amplify_core/lib/src/types/storage/upload_data_options.dart @@ -35,10 +35,10 @@ class StorageUploadDataOptions @override Map toJson() => { - 'metadata': metadata, - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'metadata': metadata, + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.upload_data_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/upload_data_result.dart b/packages/amplify_core/lib/src/types/storage/upload_data_result.dart index e371b4e2ff..c3253e453b 100644 --- a/packages/amplify_core/lib/src/types/storage/upload_data_result.dart +++ b/packages/amplify_core/lib/src/types/storage/upload_data_result.dart @@ -8,9 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageUploadDataResult { /// {@macro amplify_core.storage.upload_data_result} - const StorageUploadDataResult({ - required this.uploadedItem, - }); + const StorageUploadDataResult({required this.uploadedItem}); /// The uploaded object of the [StorageUploadDataOperation]. final Item uploadedItem; diff --git a/packages/amplify_core/lib/src/types/storage/upload_file_operation.dart b/packages/amplify_core/lib/src/types/storage/upload_file_operation.dart index 9d57bd4cdc..b2a3f0c476 100644 --- a/packages/amplify_core/lib/src/types/storage/upload_file_operation.dart +++ b/packages/amplify_core/lib/src/types/storage/upload_file_operation.dart @@ -9,15 +9,13 @@ import 'package:amplify_core/src/types/storage/base/storage_operation.dart'; /// Presents a upload file operation. /// {@endtemplate} abstract class StorageUploadFileOperation< - Request extends StorageUploadFileRequest, - Result extends StorageUploadFileResult> + Request extends StorageUploadFileRequest, + Result extends StorageUploadFileResult +> extends StorageOperation implements StorageResumableOperation, StorageCancelableOperation { /// {@macro amplify_core.storage.upload_file_operation} - StorageUploadFileOperation({ - required super.request, - required super.result, - }); + StorageUploadFileOperation({required super.request, required super.result}); /// Pauses the operation that is in progress. /// diff --git a/packages/amplify_core/lib/src/types/storage/upload_file_options.dart b/packages/amplify_core/lib/src/types/storage/upload_file_options.dart index 2422eef043..740d7d5368 100644 --- a/packages/amplify_core/lib/src/types/storage/upload_file_options.dart +++ b/packages/amplify_core/lib/src/types/storage/upload_file_options.dart @@ -35,10 +35,10 @@ class StorageUploadFileOptions @override Map toJson() => { - 'metadata': metadata, - 'pluginOptions': pluginOptions?.toJson(), - 'bucket': bucket?.toJson(), - }; + 'metadata': metadata, + 'pluginOptions': pluginOptions?.toJson(), + 'bucket': bucket?.toJson(), + }; } /// {@template amplify_core.storage.upload_file_plugin_options} diff --git a/packages/amplify_core/lib/src/types/storage/upload_file_result.dart b/packages/amplify_core/lib/src/types/storage/upload_file_result.dart index c50280860a..094ed46515 100644 --- a/packages/amplify_core/lib/src/types/storage/upload_file_result.dart +++ b/packages/amplify_core/lib/src/types/storage/upload_file_result.dart @@ -8,9 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class StorageUploadFileResult { /// {@macro amplify_core.storage.upload_file_result} - const StorageUploadFileResult({ - required this.uploadedItem, - }); + const StorageUploadFileResult({required this.uploadedItem}); /// The uploaded object of the [StorageUploadFileOperation]. final Item uploadedItem; diff --git a/packages/amplify_core/lib/src/types/temporal/temporal_date.dart b/packages/amplify_core/lib/src/types/temporal/temporal_date.dart index e45c0dcffd..b7585920d6 100644 --- a/packages/amplify_core/lib/src/types/temporal/temporal_date.dart +++ b/packages/amplify_core/lib/src/types/temporal/temporal_date.dart @@ -16,11 +16,7 @@ class TemporalDate implements Comparable { factory TemporalDate(DateTime dateTime) { dateTime = dateTime.toUtc(); return TemporalDate._( - DateTime.utc( - dateTime.year, - dateTime.month, - dateTime.day, - ), + DateTime.utc(dateTime.year, dateTime.month, dateTime.day), ); } @@ -33,11 +29,7 @@ class TemporalDate implements Comparable { dateTime = dateTime.toUtc(); return TemporalDate._( - DateTime.utc( - dateTime.year, - dateTime.month, - dateTime.day, - ), + DateTime.utc(dateTime.year, dateTime.month, dateTime.day), offset, ); } @@ -109,9 +101,10 @@ class TemporalDate implements Comparable { /// Return ISO8601 String of format YYYY-MM-DD+hh:mm:ss String format() { - final buffer = StringBuffer() - // Extract date portion of DateTime.ISO8601String - ..write(_dateTime.toIso8601String().substring(0, 10)); + final buffer = + StringBuffer() + // Extract date portion of DateTime.ISO8601String + ..write(_dateTime.toIso8601String().substring(0, 10)); // Duration.toString returns string of form -9:30:00.000000 / 9:30:00.000000 // But we need -09:30 / +09:30 diff --git a/packages/amplify_core/lib/src/types/temporal/temporal_datetime.dart b/packages/amplify_core/lib/src/types/temporal/temporal_datetime.dart index 0b1b8c096d..bc93030d00 100644 --- a/packages/amplify_core/lib/src/types/temporal/temporal_datetime.dart +++ b/packages/amplify_core/lib/src/types/temporal/temporal_datetime.dart @@ -86,8 +86,9 @@ class TemporalDateTime implements Comparable { // Parse cannot take a YYYY-MM-DD as UTC! var dateTime = DateTime.parse(match.group(1)!.split('.')[0]); - final totalNanoseconds = - Temporal.getIntOr0(match.group(4)?.padRight(9, '0')); + final totalNanoseconds = Temporal.getIntOr0( + match.group(4)?.padRight(9, '0'), + ); final milliseconds = totalNanoseconds ~/ 1000000; final microseconds = (totalNanoseconds ~/ 1000) % 1000; final nanoseconds = totalNanoseconds % 1000; @@ -121,8 +122,8 @@ class TemporalDateTime implements Comparable { this._dateTime, { int nanoseconds = 0, Duration? offset, - }) : _nanoseconds = nanoseconds, - _offset = offset; + }) : _nanoseconds = nanoseconds, + _offset = offset; final DateTime _dateTime; final int _nanoseconds; final Duration? _offset; diff --git a/packages/amplify_core/lib/src/types/temporal/temporal_time.dart b/packages/amplify_core/lib/src/types/temporal/temporal_time.dart index 17a8cd4fb5..82641719e9 100644 --- a/packages/amplify_core/lib/src/types/temporal/temporal_time.dart +++ b/packages/amplify_core/lib/src/types/temporal/temporal_time.dart @@ -89,8 +89,9 @@ class TemporalTime implements Comparable { final minutes = int.parse(match.group(2)!); final seconds = Temporal.getIntOr0(match.group(4)); - final totalNanoseconds = - Temporal.getIntOr0(match.group(6)?.padRight(9, '0')); + final totalNanoseconds = Temporal.getIntOr0( + match.group(6)?.padRight(9, '0'), + ); final milliseconds = totalNanoseconds ~/ 1000000; final microseconds = (totalNanoseconds ~/ 1000) % 1000; final nanoseconds = totalNanoseconds % 1000; @@ -119,12 +120,9 @@ class TemporalTime implements Comparable { ); } - const TemporalTime._( - this._dateTime, { - int nanoseconds = 0, - Duration? offset, - }) : _nanoseconds = nanoseconds, - _offset = offset; + const TemporalTime._(this._dateTime, {int nanoseconds = 0, Duration? offset}) + : _nanoseconds = nanoseconds, + _offset = offset; final DateTime _dateTime; final int _nanoseconds; // DateTime only stores millisecond and microsecond final Duration? _offset; diff --git a/packages/amplify_core/lib/src/version.dart b/packages/amplify_core/lib/src/version.dart index 673a696eaf..2f598d94ab 100644 --- a/packages/amplify_core/lib/src/version.dart +++ b/packages/amplify_core/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '2.6.1'; +const packageVersion = '2.6.2'; diff --git a/packages/amplify_core/pubspec.yaml b/packages/amplify_core/pubspec.yaml index bec355cc38..aedb78c7bc 100644 --- a/packages/amplify_core/pubspec.yaml +++ b/packages/amplify_core/pubspec.yaml @@ -1,29 +1,29 @@ name: amplify_core description: The base package containing common types and utilities that are shared across the Amplify Flutter packages. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/amplify_core issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" - aws_signature_v4: ">=0.6.4 <0.7.0" + aws_common: ">=0.7.7 <0.8.0" + aws_signature_v4: ">=0.6.5 <0.7.0" collection: ^1.15.0 graphs: ^2.1.0 intl: ">=0.18.0 <1.0.0" json_annotation: ">=4.9.0 <4.10.0" logging: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 retry: ^3.1.0 stack_trace: ^1.10.0 uuid: ">=3.0.6 <5.0.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 build_test: ^2.1.5 build_version: ^2.1.1 @@ -34,6 +34,6 @@ dev_dependencies: path: packages/code_excerpt_updater # TODO: Bump when global SDK >=3.1 ref: 923adadacbb95f11d222e6fc6135f6dbb66f84ee - json_serializable: 6.8.0 + json_serializable: ^6.9.4 path: any test: ^1.22.1 diff --git a/packages/amplify_core/test/amplify_auth_provider_test.dart b/packages/amplify_core/test/amplify_auth_provider_test.dart index ceb921a11e..cb5e7d208a 100644 --- a/packages/amplify_core/test/amplify_auth_provider_test.dart +++ b/packages/amplify_core/test/amplify_auth_provider_test.dart @@ -81,8 +81,9 @@ void main() { group('AmplifyAuthProvider', () { test('can authorize an HTTP request', () async { - final authorizedRequest = - await authProvider.authorizeRequest(_generateTestRequest()); + final authorizedRequest = await authProvider.authorizeRequest( + _generateTestRequest(), + ); expect(authorizedRequest.headers[_testAuthKey], 'foo'); }); }); @@ -90,8 +91,9 @@ void main() { group('TokenAmplifyAuthProvider', () { test('will assign the token to the "Authorization" header', () async { final tokenAuthProvider = TestTokenProvider(); - final authorizedRequest = - await tokenAuthProvider.authorizeRequest(_generateTestRequest()); + final authorizedRequest = await tokenAuthProvider.authorizeRequest( + _generateTestRequest(), + ); expect(authorizedRequest.headers[AWSHeaders.authorization], _testToken); }); }); @@ -99,8 +101,9 @@ void main() { group('TokenIdentityAmplifyAuthProvider', () { test('will assign the token to the "Authorization" header', () async { final tokenAuthProvider = TestTokenProvider(); - final authorizedRequest = - await tokenAuthProvider.authorizeRequest(_generateTestRequest()); + final authorizedRequest = await tokenAuthProvider.authorizeRequest( + _generateTestRequest(), + ); expect(authorizedRequest.headers[AWSHeaders.authorization], _testToken); }); @@ -117,8 +120,9 @@ void main() { const providerKey = AmplifyAuthProviderToken(''); authRepo.registerAuthProvider(providerKey, authProvider); final actualAuthProvider = authRepo.getAuthProvider(providerKey); - final authorizedRequest = - await actualAuthProvider!.authorizeRequest(_generateTestRequest()); + final authorizedRequest = await actualAuthProvider!.authorizeRequest( + _generateTestRequest(), + ); expect(authorizedRequest.headers[_testAuthKey], 'foo'); }); @@ -126,8 +130,9 @@ void main() { final authRepo = AmplifyAuthProviderRepository(); final credentialAuthProvider = TestAWSCredentialsAuthProvider(); - const providerKey = - AmplifyAuthProviderToken(''); + const providerKey = AmplifyAuthProviderToken( + '', + ); authRepo.registerAuthProvider(providerKey, credentialAuthProvider); final actualAuthProvider = authRepo.getAuthProvider(providerKey); expect(actualAuthProvider, isA()); @@ -142,8 +147,9 @@ void main() { ..registerAuthProvider(providerKey, SecondTestAuthProvider()); final actualAuthProvider = authRepo.getAuthProvider(providerKey); - final authorizedRequest = - await actualAuthProvider!.authorizeRequest(_generateTestRequest()); + final authorizedRequest = await actualAuthProvider!.authorizeRequest( + _generateTestRequest(), + ); expect(authorizedRequest.headers[_testAuthKey], 'bar'); }); diff --git a/packages/amplify_core/test/amplify_class_test.dart b/packages/amplify_core/test/amplify_class_test.dart index d1228f8268..1b2128f136 100644 --- a/packages/amplify_core/test/amplify_class_test.dart +++ b/packages/amplify_core/test/amplify_class_test.dart @@ -35,21 +35,12 @@ void main() { }); test('throws for invalid JSON', () async { - expect( - Amplify.asyncConfig, - throwsA(isA()), - ); - expect( - Amplify.configure('...'), - throwsA(isA()), - ); + expect(Amplify.asyncConfig, throwsA(isA())); + expect(Amplify.configure('...'), throwsA(isA())); }); test('throws for configuration exceptions', () async { - expect( - Amplify.asyncConfig, - throwsA(isA()), - ); + expect(Amplify.asyncConfig, throwsA(isA())); await Amplify.addPlugin(ConfigErrorPlugin()); expect( Amplify.configure(dummyConfiguration), diff --git a/packages/amplify_core/test/amplify_temporal_date_test.dart b/packages/amplify_core/test/amplify_temporal_date_test.dart index 57f62a227b..f6beb33a07 100644 --- a/packages/amplify_core/test/amplify_temporal_date_test.dart +++ b/packages/amplify_core/test/amplify_temporal_date_test.dart @@ -1,9 +1,8 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -@OnPlatform({ - 'browser': Skip('Failing on web'), -}) +@OnPlatform({'browser': Skip('Failing on web')}) +library; import 'package:amplify_core/amplify_core.dart'; import 'package:test/test.dart'; diff --git a/packages/amplify_core/test/amplify_temporal_datetime_test.dart b/packages/amplify_core/test/amplify_temporal_datetime_test.dart index d2b8b97fe9..e1a076dfa8 100644 --- a/packages/amplify_core/test/amplify_temporal_datetime_test.dart +++ b/packages/amplify_core/test/amplify_temporal_datetime_test.dart @@ -2,9 +2,8 @@ // SPDX-License-Identifier: Apache-2.0 // TODO(dnys1): Get passing on Web -@OnPlatform({ - 'browser': Skip('Failing on web'), -}) +@OnPlatform({'browser': Skip('Failing on web')}) +library; import 'package:amplify_core/amplify_core.dart'; import 'package:test/test.dart'; @@ -90,44 +89,51 @@ void main() { expect(time.format(), '1995-05-03T03:30:00.000000000+03:25:55'); }); - test('AWSDateTime from string YYYY-MM-DDThh:mm:ss+hh:mm:ss success', - () async { - final time = TemporalDateTime.fromString('1995-05-03T03:30:25+03:25:55'); - const duration = Duration(hours: 3, minutes: 25, seconds: 55); + test( + 'AWSDateTime from string YYYY-MM-DDThh:mm:ss+hh:mm:ss success', + () async { + final time = TemporalDateTime.fromString('1995-05-03T03:30:25+03:25:55'); + const duration = Duration(hours: 3, minutes: 25, seconds: 55); - expect(time.getOffset(), duration); - expect(time.getDateTimeInUtc(), DateTime.utc(1995, 05, 03, 03, 30, 25)); - expect(time.format(), '1995-05-03T03:30:25.000000000+03:25:55'); - }); - - test('AWSDateTime from string YYYY-MM-DDThh:mm:ss.sss+hh:mm:ss success', - () async { - final time = - TemporalDateTime.fromString('1995-05-03T03:30:25.999999999+03:25:55'); - const duration = Duration(hours: 3, minutes: 25, seconds: 55); - - expect(time.getOffset(), duration); - expect( - time.getDateTimeInUtc(), - DateTime.utc(1995, 05, 03, 03, 30, 25, 999, 999), - ); - expect(time.format(), '1995-05-03T03:30:25.999999999+03:25:55'); - }); + expect(time.getOffset(), duration); + expect(time.getDateTimeInUtc(), DateTime.utc(1995, 05, 03, 03, 30, 25)); + expect(time.format(), '1995-05-03T03:30:25.000000000+03:25:55'); + }, + ); test( - 'AWSDateTime from string YYYY-MM-DDThh:mm:ss.sss+hh:mm:ss success with 5 digit nanosecond', - () async { - final time = - TemporalDateTime.fromString('1995-05-03T03:30:25.99999+03:25:55'); - const duration = Duration(hours: 3, minutes: 25, seconds: 55); + 'AWSDateTime from string YYYY-MM-DDThh:mm:ss.sss+hh:mm:ss success', + () async { + final time = TemporalDateTime.fromString( + '1995-05-03T03:30:25.999999999+03:25:55', + ); + const duration = Duration(hours: 3, minutes: 25, seconds: 55); + + expect(time.getOffset(), duration); + expect( + time.getDateTimeInUtc(), + DateTime.utc(1995, 05, 03, 03, 30, 25, 999, 999), + ); + expect(time.format(), '1995-05-03T03:30:25.999999999+03:25:55'); + }, + ); - expect(time.getOffset(), duration); - expect( - time.getDateTimeInUtc(), - DateTime.utc(1995, 05, 03, 03, 30, 25, 999, 990), - ); - expect(time.format(), '1995-05-03T03:30:25.999990000+03:25:55'); - }); + test( + 'AWSDateTime from string YYYY-MM-DDThh:mm:ss.sss+hh:mm:ss success with 5 digit nanosecond', + () async { + final time = TemporalDateTime.fromString( + '1995-05-03T03:30:25.99999+03:25:55', + ); + const duration = Duration(hours: 3, minutes: 25, seconds: 55); + + expect(time.getOffset(), duration); + expect( + time.getDateTimeInUtc(), + DateTime.utc(1995, 05, 03, 03, 30, 25, 999, 990), + ); + expect(time.format(), '1995-05-03T03:30:25.999990000+03:25:55'); + }, + ); test('AWSDateTime from offset with single digit duration', () async { var dateTime = DateTime.parse('2021-11-09T18:53:12.183540Z'); diff --git a/packages/amplify_core/test/amplify_temporal_time_test.dart b/packages/amplify_core/test/amplify_temporal_time_test.dart index a9a0053384..4c68c0fcbd 100644 --- a/packages/amplify_core/test/amplify_temporal_time_test.dart +++ b/packages/amplify_core/test/amplify_temporal_time_test.dart @@ -1,9 +1,8 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -@OnPlatform({ - 'browser': Skip('Failing on web'), -}) +@OnPlatform({'browser': Skip('Failing on web')}) +library; import 'package:amplify_core/amplify_core.dart'; import 'package:test/test.dart'; diff --git a/packages/amplify_core/test/amplify_temporal_timestamp_test.dart b/packages/amplify_core/test/amplify_temporal_timestamp_test.dart index 4ae2c1aa4f..9c238e26e3 100644 --- a/packages/amplify_core/test/amplify_temporal_timestamp_test.dart +++ b/packages/amplify_core/test/amplify_temporal_timestamp_test.dart @@ -1,9 +1,8 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -@OnPlatform({ - 'browser': Skip('Failing on web'), -}) +@OnPlatform({'browser': Skip('Failing on web')}) +library; import 'package:amplify_core/amplify_core.dart'; import 'package:test/test.dart'; diff --git a/packages/amplify_core/test/amplify_utility_test.dart b/packages/amplify_core/test/amplify_utility_test.dart index e70c0769a5..35e1e2e825 100644 --- a/packages/amplify_core/test/amplify_utility_test.dart +++ b/packages/amplify_core/test/amplify_utility_test.dart @@ -1,9 +1,8 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -@OnPlatform({ - 'browser': Skip('Failing on web'), -}) +@OnPlatform({'browser': Skip('Failing on web')}) +library; import 'package:amplify_core/src/types/datastore/datastore_types.dart'; import 'package:test/test.dart'; @@ -35,14 +34,17 @@ void main() { expect(enumFromString('maybe', TestEnum.values), TestEnum.maybe); }); - test('parsers.enumFromString generates null for non existing enum values', - () { - expect(enumFromString('RANDOM', TestEnum.values), null); - }); + test( + 'parsers.enumFromString generates null for non existing enum values', + () { + expect(enumFromString('RANDOM', TestEnum.values), null); + }, + ); test( - 'parsers.enumFromString generates null for empty string representing enum', - () { - expect(enumFromString('', TestEnum.values), null); - }); + 'parsers.enumFromString generates null for empty string representing enum', + () { + expect(enumFromString('', TestEnum.values), null); + }, + ); } diff --git a/packages/amplify_core/test/config/amplify_outputs/amplify_outputs_test.dart b/packages/amplify_core/test/config/amplify_outputs/amplify_outputs_test.dart index effa545c39..f153b485b1 100644 --- a/packages/amplify_core/test/config/amplify_outputs/amplify_outputs_test.dart +++ b/packages/amplify_core/test/config/amplify_outputs/amplify_outputs_test.dart @@ -9,8 +9,7 @@ import 'package:test/test.dart'; import 'test_data.dart'; void main() { - test( - 'Should successfully create an AmplifyOutputs object' + test('Should successfully create an AmplifyOutputs object' ' from an amplify outputs json object.', () { final actualConfig = jsonDecode(amplifyoutputs) as Map; final parsed = AmplifyOutputs.fromJson(actualConfig); diff --git a/packages/amplify_core/test/config/amplify_outputs_mapping/amplify_outputs_mapping_test.dart b/packages/amplify_core/test/config/amplify_outputs_mapping/amplify_outputs_mapping_test.dart index 5e2f4ddc75..9a9291dd79 100644 --- a/packages/amplify_core/test/config/amplify_outputs_mapping/amplify_outputs_mapping_test.dart +++ b/packages/amplify_core/test/config/amplify_outputs_mapping/amplify_outputs_mapping_test.dart @@ -69,24 +69,21 @@ void main() { containsAll([signInRedirectUri1, signInRedirectUri2]), ); expect(oauth.signInUri, signInUri); - expect( - oauth.signInUriQueryParameters, - {signInQueryParamKey: signInQueryParamValue}, - ); + expect(oauth.signInUriQueryParameters, { + signInQueryParamKey: signInQueryParamValue, + }); expect( oauth.redirectSignOutUri, containsAll([signOutRedirectUri1, signOutRedirectUri2]), ); expect(oauth.signOutUri, signOutUri); - expect( - oauth.signOutUriQueryParameters, - {signOutQueryParamKey: signOutQueryParamValue}, - ); + expect(oauth.signOutUriQueryParameters, { + signOutQueryParamKey: signOutQueryParamValue, + }); expect(oauth.tokenUri, tokenUri); - expect( - oauth.tokenUriQueryParameters, - {tokenQueryParamKey: tokenQueryParamValue}, - ); + expect(oauth.tokenUriQueryParameters, { + tokenQueryParamKey: tokenQueryParamValue, + }); expect(oauth.scopes, containsAll([scope1, scope2])); }); @@ -98,14 +95,16 @@ void main() { expect(mappedOutputs.auth?.appClientSecret, appClientSecret); }); - test('maps config with only the required options for a user pool', - () async { - final configJson = - jsonDecode(userPoolOnlyConfig) as Map; - final amplifyConfig = AmplifyConfig.fromJson(configJson); - final mappedOutputs = amplifyConfig.toAmplifyOutputs(); - expect(mappedOutputs.auth?.passwordPolicy, null); - }); + test( + 'maps config with only the required options for a user pool', + () async { + final configJson = + jsonDecode(userPoolOnlyConfig) as Map; + final amplifyConfig = AmplifyConfig.fromJson(configJson); + final mappedOutputs = amplifyConfig.toAmplifyOutputs(); + expect(mappedOutputs.auth?.passwordPolicy, null); + }, + ); }); }); } @@ -260,11 +259,6 @@ Map updateConfig(Map config) { final defaultAuth = cognitoPlugin['Auth']['Default'] as Map; final oAuthConfig = defaultAuth['OAuth'] as Map; oAuthConfig['AppClientId'] = 'fake-client-id'; - defaultAuth['socialProviders'] = [ - 'GOOGLE', - 'FACEBOOK', - 'AMAZON', - 'APPLE', - ]; + defaultAuth['socialProviders'] = ['GOOGLE', 'FACEBOOK', 'AMAZON', 'APPLE']; return config; } diff --git a/packages/amplify_core/test/config/amplify_outputs_mapping/app/package-lock.json b/packages/amplify_core/test/config/amplify_outputs_mapping/app/package-lock.json index e28001149e..1825a1e95c 100644 --- a/packages/amplify_core/test/config/amplify_outputs_mapping/app/package-lock.json +++ b/packages/amplify_core/test/config/amplify_outputs_mapping/app/package-lock.json @@ -9,8 +9,8 @@ "version": "1.0.0", "license": "ISC", "devDependencies": { - "@aws-amplify/backend": "1.0.3", - "@aws-amplify/backend-cli": "1.0.4", + "@aws-amplify/backend": "1.15.0", + "@aws-amplify/backend-cli": "1.5.0", "tsx": "^4.10.5", "typescript": "^5.4.5" } @@ -20,7 +20,6 @@ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -34,7 +33,6 @@ "resolved": "https://registry.npmjs.org/@ardatan/aggregate-error/-/aggregate-error-0.0.6.tgz", "integrity": "sha512-vyrkEHG1jrukmzTPtyWB4NLPauUw5bQeg4uhn8f+1SSynmrOcyvlb1GKQjjgoBzElLdfXCRYX8UnBlhklOHYRQ==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "~2.0.1" }, @@ -46,15 +44,13 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@ardatan/relay-compiler": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz", "integrity": "sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.14.0", "@babel/generator": "^7.14.0", @@ -82,31 +78,29 @@ } }, "node_modules/@ardatan/relay-compiler/node_modules/@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.25.6", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@ardatan/relay-compiler/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -117,18 +111,25 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, + "node_modules/@ardatan/relay-compiler/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@ardatan/relay-compiler/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -145,19 +146,20 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^6.2.0" } }, - "node_modules/@ardatan/relay-compiler/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/@ardatan/relay-compiler/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.10.0" + } }, "node_modules/@ardatan/relay-compiler/node_modules/glob": { "version": "7.2.3", @@ -165,7 +167,6 @@ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -181,12 +182,23 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/@ardatan/relay-compiler/node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@ardatan/relay-compiler/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -194,16 +206,15 @@ "node": "*" } }, - "node_modules/@ardatan/relay-compiler/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/@ardatan/relay-compiler/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { "node": ">=8" @@ -213,15 +224,13 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/@ardatan/relay-compiler/node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -244,7 +253,6 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -253,48 +261,13 @@ "node": ">=6" } }, - "node_modules/@ardatan/sync-fetch": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@ardatan/sync-fetch/-/sync-fetch-0.0.1.tgz", - "integrity": "sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA==", - "dev": true, - "license": "MIT", - "dependencies": { - "node-fetch": "^2.6.1" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@ardatan/sync-fetch/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/@aws-amplify/appsync-modelgen-plugin": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/appsync-modelgen-plugin/-/appsync-modelgen-plugin-2.13.0.tgz", - "integrity": "sha512-j74lEO53Sf5u9o6ZqmH6JqiUBD8VjqYSp4Rb4G+RNdLX8zt6eaEUKlO4wTQ9ejSrKgCDxzbb+2YldZWCMsWUFQ==", + "version": "2.15.2", + "resolved": "https://registry.npmjs.org/@aws-amplify/appsync-modelgen-plugin/-/appsync-modelgen-plugin-2.15.2.tgz", + "integrity": "sha512-ZUnp+g7a/RZJGRygquPhZWO4E9KjOPj5ARwhkiOHXp2XffYNy4VkjFYJjmufNnURp54awSYV09aHsjj2tW0Dhw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@graphql-codegen/plugin-helpers": "^1.18.8", + "@graphql-codegen/plugin-helpers": "^3.1.1", "@graphql-codegen/visitor-plugin-common": "^1.22.0", "@graphql-tools/utils": "^6.0.18", "chalk": "^3.0.0", @@ -310,93 +283,93 @@ } }, "node_modules/@aws-amplify/auth-construct": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/auth-construct/-/auth-construct-1.3.0.tgz", - "integrity": "sha512-scOk6Q5VhMwrSDSTF4V/HKKUGyOVni0a3MERkre4n2IYZXCrt0b4iFmOEHul7is6aNDPp3TVs0sJ70j6HwVu8g==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/auth-construct/-/auth-construct-1.7.0.tgz", + "integrity": "sha512-L4g9thanaBT44gqbzQhAaYSyFwEL9utC1wAo/aiV1NmyhFCj4aQcCb8/+XTKrHx27cIbH/XbjiBlbnz/PVb3bA==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.1.0", - "@aws-amplify/backend-output-storage": "^1.1.1", - "@aws-amplify/plugin-types": "^1.2.1", - "@aws-sdk/util-arn-parser": "^3.568.0" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/util-arn-parser": "^3.723.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend/-/backend-1.0.3.tgz", - "integrity": "sha512-/NNEtmu59v4x8Z/vLSmZnw/2PBMQ6RlB8E9glfldf6COs0DOacx4UeoPLRc7+E7eLWpTQWl4mPdSiWdBh5jb+w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/backend-auth": "^1.0.2", - "@aws-amplify/backend-data": "^1.0.2", - "@aws-amplify/backend-function": "^1.0.3", - "@aws-amplify/backend-output-schemas": "^1.1.0", - "@aws-amplify/backend-output-storage": "^1.0.1", - "@aws-amplify/backend-secret": "^1.0.0", - "@aws-amplify/backend-storage": "^1.0.2", - "@aws-amplify/client-config": "^1.0.3", - "@aws-amplify/data-schema": "^1.0.0", - "@aws-amplify/platform-core": "^1.0.1", - "@aws-amplify/plugin-types": "^1.0.0", - "@aws-sdk/client-amplify": "^3.465.0", - "lodash.snakecase": "^4.1.1" + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend/-/backend-1.15.0.tgz", + "integrity": "sha512-fszrFdBlUqptaR6R0YYiRy030lMHUgmNuRtLl7fvNGD2ueragjchDYQFIj3GYxXYpW52c46I9KYWJkRDEn8Piw==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-amplify/backend-auth": "^1.6.0", + "@aws-amplify/backend-data": "^1.5.0", + "@aws-amplify/backend-function": "^1.13.0", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/backend-secret": "^1.3.0", + "@aws-amplify/backend-storage": "^1.3.0", + "@aws-amplify/client-config": "^1.6.0", + "@aws-amplify/data-schema": "^1.13.4", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-amplify": "^3.750.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.127.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-auth": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-auth/-/backend-auth-1.1.4.tgz", - "integrity": "sha512-4tk9888PHUBvJ5Ihn/ggzvSL10GCYZP0CY4fx/92JCAEE9STrHDvRQ0vwp9uz6Dsz4jMCi4hNMhUIXzxr4/xNw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-auth/-/backend-auth-1.6.0.tgz", + "integrity": "sha512-RWMoDZukX/zoDI9kZDH62CutEq7WQjv/nUvHgpCCtHDQ0ImlHyQt1tO/n0sbRoBzXE0sBw7u/Hgd6g/slh/Czw==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/auth-construct": "^1.3.0", - "@aws-amplify/backend-output-storage": "^1.1.1", - "@aws-amplify/plugin-types": "^1.2.1" + "@aws-amplify/auth-construct": "^1.7.0", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-cli": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-cli/-/backend-cli-1.0.4.tgz", - "integrity": "sha512-Hgh8hQAbB3KjaJ2hfwEqs+Ubp86ewIvtmvao370el71dmPtpRQ7PKmsYJtmjvt2fvtM0wFjeTui7slNBLKYzwA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/backend-deployer": "^1.0.0", - "@aws-amplify/backend-output-schemas": "^1.1.0", - "@aws-amplify/backend-secret": "^1.0.0", - "@aws-amplify/cli-core": "^1.0.0", - "@aws-amplify/client-config": "^1.0.3", - "@aws-amplify/deployed-backend-client": "^1.0.1", - "@aws-amplify/form-generator": "^1.0.0", - "@aws-amplify/model-generator": "^1.0.1", - "@aws-amplify/platform-core": "^1.0.1", - "@aws-amplify/sandbox": "^1.0.3", - "@aws-amplify/schema-generator": "^1.0.0", - "@aws-sdk/client-amplify": "^3.465.0", - "@aws-sdk/client-cloudformation": "^3.465.0", - "@aws-sdk/client-s3": "^3.465.0", - "@aws-sdk/credential-provider-ini": "^3.465.0", - "@aws-sdk/credential-providers": "^3.465.0", - "@aws-sdk/region-config-resolver": "^3.465.0", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-cli/-/backend-cli-1.5.0.tgz", + "integrity": "sha512-ixGwkTB0q333DZIuUVIPpuEq+cmqAPq5yG3H2r5xqqzkYcW3fRIt8vCTebIiBlgSUaZLM7zffrir+i9zxPaZyA==", + "dev": true, + "dependencies": { + "@aws-amplify/backend-deployer": "^1.1.20", + "@aws-amplify/backend-output-schemas": "^1.4.1", + "@aws-amplify/backend-secret": "^1.2.0", + "@aws-amplify/cli-core": "^1.4.1", + "@aws-amplify/client-config": "^1.5.8", + "@aws-amplify/deployed-backend-client": "^1.5.2", + "@aws-amplify/form-generator": "^1.0.5", + "@aws-amplify/model-generator": "^1.0.13", + "@aws-amplify/platform-core": "^1.6.5", + "@aws-amplify/plugin-types": "^1.8.1", + "@aws-amplify/sandbox": "^1.2.12", + "@aws-amplify/schema-generator": "^1.2.8", + "@aws-sdk/client-amplify": "^3.624.0", + "@aws-sdk/client-cloudformation": "^3.624.0", + "@aws-sdk/client-s3": "^3.624.0", + "@aws-sdk/credential-provider-ini": "^3.624.0", + "@aws-sdk/credential-providers": "^3.624.0", + "@aws-sdk/region-config-resolver": "^3.614.0", "@smithy/node-config-provider": "^2.1.3", "@smithy/shared-ini-file-loader": "^2.2.5", "envinfo": "^7.11.0", - "execa": "^8.0.1", - "is-ci": "^3.0.1", + "execa": "^9.5.1", + "is-ci": "^4.1.0", "open": "^9.1.0", "yargs": "^17.7.2", "zod": "^3.22.2" @@ -409,143 +382,150 @@ "node": ">=18.16.0" }, "peerDependencies": { - "@aws-sdk/types": "^3.465.0" + "@aws-sdk/types": "^3.609.0" } }, "node_modules/@aws-amplify/backend-data": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-data/-/backend-data-1.1.3.tgz", - "integrity": "sha512-ajwhNw13a6IDhUw8HbAi8gOU7oAJS1ila6jhU34x4Bz/MPanblI+v3Ux5l0ceynhET7oRFCERCrY1VY6BDlPhg==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-data/-/backend-data-1.5.0.tgz", + "integrity": "sha512-zg6bNIZ3pCskRv9lbighUy5zATJtN3zPpQr6myFw4oD41g500iyL0dNjp4DokJqKYJ26vMuWUokaOKHOA/kPsQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.1.0", - "@aws-amplify/backend-output-storage": "^1.1.1", - "@aws-amplify/data-construct": "^1.9.6", - "@aws-amplify/data-schema-types": "^1.1.1", - "@aws-amplify/plugin-types": "^1.2.1" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/data-construct": "^1.15.1", + "@aws-amplify/data-schema-types": "^1.2.0", + "@aws-amplify/graphql-generator": "^0.5.1", + "@aws-amplify/plugin-types": "^1.9.0", + "graphql": "^15.8.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-deployer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-deployer/-/backend-deployer-1.1.2.tgz", - "integrity": "sha512-5WZto2CwUYZJleJU/jV7btnG/pnlWr16Uif0Rql6VW5gklI2CMbQodSK58NLDIZJngFgNjI24hPrny3Gm0Yy3Q==", + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-deployer/-/backend-deployer-1.1.20.tgz", + "integrity": "sha512-xiUKNbMJrXWnJJoj16A4KzqF1ib3OckIXT7qFepFC3PdGXfxr6bhSQu9w+CDPDCShle1MmF6DpapZHfhNSclAA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/platform-core": "^1.0.6", - "@aws-amplify/plugin-types": "^1.2.1", - "execa": "^8.0.1", + "@aws-amplify/platform-core": "^1.6.5", + "@aws-amplify/plugin-types": "^1.8.1", + "execa": "^9.5.1", + "strip-ansi": "^6.0.1", "tsx": "^4.6.1" }, "peerDependencies": { - "aws-cdk": "^2.152.0", + "aws-cdk": "^2.1001.0", "typescript": "^5.0.0" } }, "node_modules/@aws-amplify/backend-function": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-function/-/backend-function-1.4.0.tgz", - "integrity": "sha512-O7DGRAxzOexK37etlKrkfc9J9CRDLaTaFYIAJUymIGTc11o97fmV9DGMnMAMQghaHuTsTxOooz+y28ZHlPlJBA==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-function/-/backend-function-1.13.0.tgz", + "integrity": "sha512-5zKw4BLlkGwg68aurFKDWFloYkrPwC/fBIY2vKyTSwbMGa/YID8w3E7XLXLIu8bZf19RA2rlH5okGMnlu+ypjg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.1.0", - "@aws-amplify/backend-output-storage": "^1.1.1", - "@aws-amplify/plugin-types": "^1.2.1", - "execa": "^8.0.1" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-s3": "^3.750.0", + "execa": "^9.5.1" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/backend-output-schemas": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-schemas/-/backend-output-schemas-1.2.0.tgz", - "integrity": "sha512-UMQfPlfzyvYsV9A/MyoFm8T87MxsLZBzABSkmD5Y/sh8XTIJlqRHibzKStoN7xuK5S1Iz1okRVoxhFxSy0alrg==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-schemas/-/backend-output-schemas-1.5.0.tgz", + "integrity": "sha512-vBnxuZKGJPTov1y7E/qIi3+BTmPW1HBMDHs57a2K8pT8bKK3LPCVBm2ZgislRBzo//hCBO6SGts9ZIwj86mnOg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "peerDependencies": { "zod": "^3.22.2" } }, "node_modules/@aws-amplify/backend-output-storage": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-storage/-/backend-output-storage-1.1.1.tgz", - "integrity": "sha512-eXMz0HyM3kt52uexbYoURa57OFlRqcvQK1NqfJrHVBJfboFTY6hvBLmCLePcLcz/qeNUUP8ueYvRsI+rtxFCcw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-output-storage/-/backend-output-storage-1.2.0.tgz", + "integrity": "sha512-6vDAj+YOVYiXPxp/6vCqOe56w7DxQUhwXoZjdT4vN/UT4nzFEvV+YajnyD6mUTWLVfePds+PPjFdjnUNf4vlSg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.6" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0" + "aws-cdk-lib": "^2.180.0" } }, "node_modules/@aws-amplify/backend-secret": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-secret/-/backend-secret-1.1.1.tgz", - "integrity": "sha512-9qCf9j7kfcY6kAh9pLYVN7r3nvPscOY9fbR3GVqzLps5mYLrLyuxdZbPN+1jprmww15MDHAjJMGC5E4O6TaQCg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-secret/-/backend-secret-1.3.0.tgz", + "integrity": "sha512-eX4erJb35SkV9dfkJ+saQvFAsOlkJBYuluiXDYgjuyapWlHB/YmV8Vz/Gp4ggg7kpae72ayM0Wb2RWuAcnA52Q==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/platform-core": "^1.0.5", - "@aws-amplify/plugin-types": "^1.1.1", - "@aws-sdk/client-ssm": "^3.624.0" + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-ssm": "^3.750.0" } }, "node_modules/@aws-amplify/backend-storage": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/backend-storage/-/backend-storage-1.1.2.tgz", - "integrity": "sha512-a0S5kjnT93ebsdnc6SwmH1ujYgdwNSy3chjJ2TM9yJnyA38je5pf2ZprMABAONSona5uGzJO4o9wkvfSQdRO5g==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/backend-storage/-/backend-storage-1.3.0.tgz", + "integrity": "sha512-j3nGKshMLHeOqaLf0eEvB+/yA4TZeGJwUkqfhFGXQuAPVdhAWkZnFfhusRnFRg7/vjHLCxEBgKKtLsECzlJvuQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/backend-output-storage": "^1.1.1", - "@aws-amplify/plugin-types": "^1.2.1" + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/backend-output-storage": "^1.2.0", + "@aws-amplify/plugin-types": "^1.9.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.0.0" } }, "node_modules/@aws-amplify/cli-core": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/cli-core/-/cli-core-1.1.2.tgz", - "integrity": "sha512-CDoRR0v8ZePt6fS2uL3y5b7mt+7gxK3kmiBLKxkHa1MNgctSWFeWKh/OwYM9cWQm63IqAeGZP6IeX9hsw07Slw==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/cli-core/-/cli-core-1.4.1.tgz", + "integrity": "sha512-DoA9r36mijBKLujV0kaYVZ2AmFqwS93GmD3g0XvKLzhGy5Tra9f7H7F8AMBh27fOE+ju1vVGK5DUkKEhioNDMw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/platform-core": "^1.0.5", - "@inquirer/prompts": "^3.0.0", - "execa": "^8.0.1", - "kleur": "^4.1.5" + "@aws-amplify/platform-core": "^1.6.5", + "@inquirer/prompts": "^7.3.2", + "execa": "^9.5.1", + "kleur": "^4.1.5", + "ora": "8.2.0", + "semver": "^7.6.3", + "zod": "^3.22.2" } }, "node_modules/@aws-amplify/client-config": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/client-config/-/client-config-1.3.0.tgz", - "integrity": "sha512-A6t2WcXG1nnPupOzf4gulRp2838k0RGnNTmVo9CDAXiUAETZZsNf3TQO2oLnkM2+8A4b9j+0G2eiW82zq+qNTQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/client-config/-/client-config-1.6.0.tgz", + "integrity": "sha512-UCdESkLBzMoQ8+JXrMd4TKemx3lSdsivuCzTALDrH/+RroDxLKtCtSCcQfWJP1e3V+Kf15JD4a5ADQ50nXrKNQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/deployed-backend-client": "^1.4.0", - "@aws-amplify/model-generator": "^1.0.5", - "@aws-amplify/platform-core": "^1.0.7", + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/deployed-backend-client": "^1.6.0", + "@aws-amplify/model-generator": "^1.1.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", "zod": "^3.22.2" }, "peerDependencies": { - "@aws-sdk/client-amplify": "^3.624.0", - "@aws-sdk/client-cloudformation": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0" + "@aws-sdk/client-amplify": "^3.750.0", + "@aws-sdk/client-cloudformation": "^3.750.0", + "@aws-sdk/client-s3": "^3.750.0" } }, "node_modules/@aws-amplify/codegen-ui": { @@ -553,7 +533,6 @@ "resolved": "https://registry.npmjs.org/@aws-amplify/codegen-ui/-/codegen-ui-2.20.2.tgz", "integrity": "sha512-6ixfv1ewTHcu87KiAps+7jhs/4YP8vGRqkiUl7Ne47DWYavw/AdFYisEvsIa3dZXR0SBIRH2dSwE5nJWqim9SQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "change-case": "^4.1.2", "yup": "^0.32.11" @@ -564,7 +543,6 @@ "resolved": "https://registry.npmjs.org/@aws-amplify/codegen-ui-react/-/codegen-ui-react-2.20.2.tgz", "integrity": "sha512-PF9B3A7+4oub7JPyjAfZE1iKieXjgrNjTeGNisD4qwEq6rfxHkczeqLhoeh0rEDkZlZ2puJdowCqAQUmsUgGYw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-amplify/codegen-ui": "2.20.2", "@typescript/vfs": "~1.3.5", @@ -585,7 +563,6 @@ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", "dev": true, - "license": "MIT", "optional": true, "bin": { "prettier": "bin-prettier.js" @@ -599,7 +576,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz", "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -609,10 +585,11 @@ } }, "node_modules/@aws-amplify/data-construct": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/data-construct/-/data-construct-1.10.1.tgz", - "integrity": "sha512-fG8EHT+LYpBGIOwXx2uw4IKTyZv5IWTRtnSSVBM6AYT76FsRe2qhvNnaDUWP7S5SEROQrfLxMnuWiozfeknTgg==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/data-construct/-/data-construct-1.15.1.tgz", + "integrity": "sha512-po8Q1yStA1Dx4vzx1SEMUgZq5VHlt6wxmh+GtROErnnYYpNdkJc+60Pc6l713J2xD+bST5Z1EpfNa8+kpzsHgQ==", "bundleDependencies": [ + "@aws-amplify/ai-constructs", "@aws-amplify/backend-output-schemas", "@aws-amplify/backend-output-storage", "@aws-amplify/graphql-auth-transformer", @@ -620,6 +597,7 @@ "@aws-amplify/graphql-default-value-transformer", "@aws-amplify/graphql-directives", "@aws-amplify/graphql-function-transformer", + "@aws-amplify/graphql-generation-transformer", "@aws-amplify/graphql-http-transformer", "@aws-amplify/graphql-index-transformer", "@aws-amplify/graphql-maps-to-transformer", @@ -628,62 +606,53 @@ "@aws-amplify/graphql-relational-transformer", "@aws-amplify/graphql-searchable-transformer", "@aws-amplify/graphql-sql-transformer", - "@aws-amplify/graphql-generation-transformer", - "@aws-amplify/ai-constructs", "@aws-amplify/graphql-transformer", "@aws-amplify/graphql-transformer-core", "@aws-amplify/graphql-transformer-interfaces", + "@aws-amplify/graphql-validate-transformer", "@aws-amplify/platform-core", "@aws-amplify/plugin-types", - "@aws-sdk/client-bedrock-runtime", - "@smithy/eventstream-serde-browser", - "@smithy/eventstream-serde-config-resolver", - "@smithy/eventstream-serde-node", - "@smithy/eventstream-serde-universal", - "@smithy/eventstream-codec", "@aws-crypto/crc32", - "charenc", - "crypt", - "fs-extra", - "graceful-fs", - "graphql", - "graphql-mapping-template", - "graphql-transformer-common", - "hjson", - "immer", - "is-buffer", - "jsonfile", - "libphonenumber-js", - "lodash", - "md5", - "object-hash", - "pluralize", - "ts-dedent", - "universalify", - "zod", - "@aws-sdk/client-sts", - "is-ci", - "lodash.mergewith", - "uuid", "@aws-crypto/sha256-browser", "@aws-crypto/sha256-js", + "@aws-crypto/supports-web-crypto", + "@aws-crypto/util", + "@aws-sdk/client-bedrock-runtime", + "@aws-sdk/client-sso", "@aws-sdk/client-sso-oidc", + "@aws-sdk/client-sts", "@aws-sdk/core", + "@aws-sdk/credential-provider-env", + "@aws-sdk/credential-provider-http", + "@aws-sdk/credential-provider-ini", "@aws-sdk/credential-provider-node", + "@aws-sdk/credential-provider-process", + "@aws-sdk/credential-provider-sso", + "@aws-sdk/credential-provider-web-identity", "@aws-sdk/middleware-host-header", "@aws-sdk/middleware-logger", "@aws-sdk/middleware-recursion-detection", "@aws-sdk/middleware-user-agent", "@aws-sdk/region-config-resolver", + "@aws-sdk/token-providers", "@aws-sdk/types", "@aws-sdk/util-endpoints", + "@aws-sdk/util-locate-window", "@aws-sdk/util-user-agent-browser", "@aws-sdk/util-user-agent-node", + "@smithy/abort-controller", "@smithy/config-resolver", "@smithy/core", + "@smithy/credential-provider-imds", + "@smithy/eventstream-codec", + "@smithy/eventstream-serde-browser", + "@smithy/eventstream-serde-config-resolver", + "@smithy/eventstream-serde-node", + "@smithy/eventstream-serde-universal", "@smithy/fetch-http-handler", "@smithy/hash-node", "@smithy/invalid-dependency", + "@smithy/is-array-buffer", "@smithy/middleware-content-length", "@smithy/middleware-endpoint", "@smithy/middleware-retry", @@ -691,77 +660,86 @@ "@smithy/middleware-stack", "@smithy/node-config-provider", "@smithy/node-http-handler", + "@smithy/property-provider", "@smithy/protocol-http", + "@smithy/querystring-builder", + "@smithy/querystring-parser", + "@smithy/service-error-classification", + "@smithy/shared-ini-file-loader", + "@smithy/signature-v4", "@smithy/smithy-client", "@smithy/types", "@smithy/url-parser", "@smithy/util-base64", "@smithy/util-body-length-browser", "@smithy/util-body-length-node", + "@smithy/util-buffer-from", + "@smithy/util-config-provider", "@smithy/util-defaults-mode-browser", "@smithy/util-defaults-mode-node", "@smithy/util-endpoints", + "@smithy/util-hex-encoding", "@smithy/util-middleware", "@smithy/util-retry", + "@smithy/util-stream", + "@smithy/util-uri-escape", "@smithy/util-utf8", - "tslib", + "bowser", + "charenc", "ci-info", - "@aws-crypto/supports-web-crypto", - "@aws-crypto/util", - "@aws-sdk/util-locate-window", - "@smithy/signature-v4", + "crypt", "fast-xml-parser", - "@aws-sdk/credential-provider-env", - "@aws-sdk/credential-provider-http", - "@aws-sdk/credential-provider-ini", - "@aws-sdk/credential-provider-process", - "@aws-sdk/credential-provider-sso", - "@aws-sdk/credential-provider-web-identity", - "@smithy/credential-provider-imds", - "@smithy/property-provider", - "@smithy/shared-ini-file-loader", - "@smithy/util-config-provider", - "bowser", - "@smithy/querystring-builder", - "@smithy/util-buffer-from", - "@smithy/service-error-classification", - "@smithy/abort-controller", - "@smithy/util-stream", - "@smithy/querystring-parser", - "@smithy/is-array-buffer", - "@smithy/util-hex-encoding", - "@smithy/util-uri-escape", - "strnum", - "@aws-sdk/token-providers", - "@aws-sdk/client-sso", - "semver" - ], - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/ai-constructs": "^0.1.4", - "@aws-amplify/backend-output-schemas": "^1.0.0", - "@aws-amplify/backend-output-storage": "^1.0.0", - "@aws-amplify/graphql-api-construct": "1.13.0", - "@aws-amplify/graphql-auth-transformer": "4.1.1", - "@aws-amplify/graphql-conversation-transformer": "0.2.1", - "@aws-amplify/graphql-default-value-transformer": "3.0.3", - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-function-transformer": "3.1.0", - "@aws-amplify/graphql-generation-transformer": "0.2.1", - "@aws-amplify/graphql-http-transformer": "3.0.3", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-maps-to-transformer": "4.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-predictions-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-searchable-transformer": "3.0.3", - "@aws-amplify/graphql-sql-transformer": "0.4.3", - "@aws-amplify/graphql-transformer": "2.1.1", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "@aws-amplify/platform-core": "^1.0.0", - "@aws-amplify/plugin-types": "^1.0.0", + "fs-extra", + "graceful-fs", + "graphql", + "graphql-mapping-template", + "graphql-transformer-common", + "hjson", + "immer", + "is-buffer", + "is-ci", + "jsonfile", + "libphonenumber-js", + "lodash", + "lodash.mergewith", + "lodash.snakecase", + "md5", + "object-hash", + "pluralize", + "semver", + "strnum", + "ts-dedent", + "tslib", + "universalify", + "uuid", + "zod" + ], + "dev": true, + "dependencies": { + "@aws-amplify/ai-constructs": "^1.2.4", + "@aws-amplify/backend-output-schemas": "^1.0.0", + "@aws-amplify/backend-output-storage": "^1.0.0", + "@aws-amplify/graphql-api-construct": "1.19.1", + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer": "2.3.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", + "@aws-amplify/platform-core": "^1.0.0", + "@aws-amplify/plugin-types": "^1.0.0", "@aws-crypto/crc32": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "^5.2.0", @@ -842,8 +820,8 @@ "fs-extra": "^8.1.0", "graceful-fs": "^4.2.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "hjson": "^3.2.2", "immer": "^9.0.12", "is-buffer": "~1.1.6", @@ -852,6 +830,7 @@ "libphonenumber-js": "1.9.47", "lodash": "^4.17.21", "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", "md5": "^2.2.1", "object-hash": "^3.0.0", "pluralize": "8.0.0", @@ -864,353 +843,377 @@ "zod": "^3.22.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/ai-constructs": { - "version": "0.1.4", + "version": "1.2.4", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/plugin-types": "^1.0.1", + "@aws-amplify/backend-output-schemas": "^1.4.0", + "@aws-amplify/platform-core": "^1.6.2", + "@aws-amplify/plugin-types": "^1.6.0", "@aws-sdk/client-bedrock-runtime": "^3.622.0", - "@smithy/types": "^3.3.0" + "@smithy/types": "^3.3.0", + "json-schema-to-ts": "^3.1.1" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.168.0", "constructs": "^10.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/backend-output-schemas": { - "version": "1.2.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core": { + "version": "1.6.3", "dev": true, "inBundle": true, "license": "Apache-2.0", - "peerDependencies": { + "dependencies": { + "@aws-amplify/plugin-types": "^1.8.0", + "@aws-sdk/client-sts": "^3.624.0", + "is-ci": "^3.0.1", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "semver": "^7.6.3", + "uuid": "^9.0.1", "zod": "^3.22.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/backend-output-storage": { - "version": "1.1.1", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types": { + "version": "1.8.0", "dev": true, "inBundle": true, "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.6" - }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0" + "@aws-sdk/types": "^3.609.0", + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/backend-output-storage/node_modules/@aws-amplify/platform-core": { - "version": "1.0.7", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/backend-output-schemas": { + "version": "1.4.0", "dev": true, "inBundle": true, "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/plugin-types": "^1.2.1", - "@aws-sdk/client-sts": "^3.624.0", - "is-ci": "^3.0.1", - "lodash.mergewith": "^4.6.2", - "semver": "^7.6.3", - "uuid": "^9.0.1", + "peerDependencies": { "zod": "^3.22.2" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/backend-output-storage": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/backend-output-schemas": "^1.2.0", + "@aws-amplify/platform-core": "^1.0.6", + "@aws-amplify/plugin-types": "^1.3.1" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.158.0" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-auth-transformer": { - "version": "4.1.1", + "version": "4.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "lodash": "^4.17.21", "md5": "^2.3.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-conversation-transformer": { - "version": "0.2.1", + "version": "1.1.9", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/ai-constructs": "^0.1.4", - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/ai-constructs": "^1.2.4", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/plugin-types": "^1.0.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "immer": "^9.0.12" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "immer": "^9.0.12", + "semver": "^7.6.3" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-default-value-transformer": { - "version": "3.0.3", + "version": "3.1.11", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "libphonenumber-js": "1.9.47" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-directives": { - "version": "2.2.0", + "version": "2.7.0", "dev": true, "inBundle": true, "license": "Apache-2.0" }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-function-transformer": { - "version": "3.1.0", + "version": "3.1.13", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-generation-transformer": { - "version": "0.2.1", + "version": "1.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-http-transformer": { - "version": "3.0.3", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-index-transformer": { - "version": "3.0.3", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-maps-to-transformer": { - "version": "4.0.3", + "version": "4.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-model-transformer": { - "version": "3.0.3", + "version": "3.2.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-predictions-transformer": { - "version": "3.0.3", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-relational-transformer": { - "version": "3.0.3", + "version": "3.1.8", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "immer": "^9.0.12" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-searchable-transformer": { - "version": "3.0.3", + "version": "3.0.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-sql-transformer": { - "version": "0.4.3", + "version": "0.4.16", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-transformer": { - "version": "2.1.1", + "version": "2.3.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-auth-transformer": "4.1.1", - "@aws-amplify/graphql-conversation-transformer": "0.2.1", - "@aws-amplify/graphql-default-value-transformer": "3.0.3", - "@aws-amplify/graphql-function-transformer": "3.1.0", - "@aws-amplify/graphql-generation-transformer": "0.2.1", - "@aws-amplify/graphql-http-transformer": "3.0.3", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-maps-to-transformer": "4.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-predictions-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-searchable-transformer": "3.0.3", - "@aws-amplify/graphql-sql-transformer": "0.4.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0" + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", + "@aws-amplify/plugin-types": "^1.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-transformer-core": { - "version": "3.1.1", + "version": "3.4.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", "fs-extra": "^8.1.0", "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", "hjson": "^3.2.2", "lodash": "^4.17.21", "md5": "^2.3.0", @@ -1218,12 +1221,12 @@ "ts-dedent": "^2.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-transformer-interfaces": { - "version": "4.1.0", + "version": "4.2.4", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -1231,12 +1234,26 @@ "graphql": "^15.5.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.180.0", "constructs": "^10.3.0" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/graphql-validate-transformer": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/platform-core": { - "version": "1.1.0", + "version": "1.2.0", "dev": true, "inBundle": true, "license": "Apache-2.0", @@ -1251,13 +1268,13 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-amplify/plugin-types": { - "version": "1.2.1", + "version": "1.4.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "peerDependencies": { "@aws-sdk/types": "^3.609.0", - "aws-cdk-lib": "^2.152.0", + "aws-cdk-lib": "^2.158.0", "constructs": "^10.0.0" } }, @@ -1275,6 +1292,19 @@ "node": ">=16.0.0" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/crc32/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/sha256-browser": { "version": "5.2.0", "dev": true, @@ -1290,6 +1320,19 @@ "tslib": "^2.6.2" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { "version": "2.2.0", "dev": true, @@ -1342,6 +1385,19 @@ "node": ">=16.0.0" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/supports-web-crypto": { "version": "5.2.0", "dev": true, @@ -1362,6 +1418,19 @@ "tslib": "^2.6.2" } }, + "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/util/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { "version": "2.2.0", "dev": true, @@ -1401,54 +1470,54 @@ } }, "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime": { - "version": "3.642.0", + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.637.0", - "@aws-sdk/client-sts": "3.637.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/credential-provider-node": "3.637.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/client-sts": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/eventstream-serde-browser": "^3.0.12", + "@smithy/eventstream-serde-config-resolver": "^3.0.9", + "@smithy/eventstream-serde-node": "^3.0.11", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-stream": "^3.3.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1456,48 +1525,48 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sso": { - "version": "3.637.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1505,49 +1574,49 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.637.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/credential-provider-node": "3.637.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1555,74 +1624,24 @@ "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.637.0" - } - }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts": { - "version": "3.637.0", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.637.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/credential-provider-node": "3.637.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" + "@aws-sdk/client-sts": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/core": { - "version": "3.635.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, @@ -1630,298 +1649,295 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.635.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.637.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.635.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.637.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.637.0" + "@aws-sdk/client-sts": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.637.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.635.0", - "@aws-sdk/credential-provider-ini": "3.637.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.637.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.637.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.637.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" + "@aws-sdk/client-sts": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-logger": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.637.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/util-middleware": "^3.0.9", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/token-providers": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" - } - }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" + "@aws-sdk/client-sso-oidc": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-endpoints": { - "version": "3.637.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/types": { + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-endpoints": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { @@ -1936,49 +1952,61 @@ } } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/abort-controller": { - "version": "3.1.1", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/config-resolver": { - "version": "3.0.5", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/core": { - "version": "2.4.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sso": { + "version": "3.637.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.635.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.637.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.637.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.4.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", "@smithy/middleware-endpoint": "^3.1.0", "@smithy/middleware-retry": "^3.0.15", "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", "@smithy/protocol-http": "^4.1.0", "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.15", + "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-endpoints": "^2.0.5", "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -1986,486 +2014,743 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/credential-provider-imds": { - "version": "3.2.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.637.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-codec": { - "version": "3.1.2", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/crc32": "5.2.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.635.0", + "@aws-sdk/credential-provider-node": "3.637.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.637.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.637.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.4.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.15", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", - "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.15", + "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.637.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.6", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.5", - "@smithy/types": "^3.3.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.5", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.5", - "@smithy/types": "^3.3.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.5", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/core": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^3.1.2", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", + "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/fetch-http-handler": { - "version": "3.2.4", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", - "@smithy/util-base64": "^3.0.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/hash-node": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/invalid-dependency": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/is-array-buffer": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-content-length": { - "version": "3.0.5", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-endpoint": { - "version": "3.1.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-middleware": "^3.0.3", + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-retry": { - "version": "3.0.15", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/service-error-classification": "^3.0.3", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-serde": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-stack": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-logger": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/node-config-provider": { - "version": "3.1.4", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/node-http-handler": { - "version": "3.1.4", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.1.1", - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/property-provider": { - "version": "3.1.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.9", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/protocol-http": { - "version": "4.1.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/token-providers": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.693.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/querystring-builder": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/types": { + "version": "3.692.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", - "@smithy/util-uri-escape": "^3.0.0", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/querystring-parser": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-endpoints": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/service-error-classification": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0" - }, - "engines": { - "node": ">=16.0.0" + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.4", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/signature-v4": { - "version": "4.1.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/client-sts/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-uri-escape": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/smithy-client": { - "version": "3.2.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/core": { + "version": "3.635.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-stack": "^3.0.3", + "@smithy/core": "^2.4.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/property-provider": "^3.1.3", "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/types": { - "version": "3.3.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/url-parser": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.635.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^3.0.3", + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-base64": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.637.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.635.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.637.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.637.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-body-length-browser": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.637.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.635.0", + "@aws-sdk/credential-provider-ini": "3.637.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.637.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-body-length-node": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-buffer-from": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.637.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", + "@aws-sdk/client-sso": "3.637.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-config-provider": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.15", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.2.0", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", "tslib": "^2.6.2" }, "engines": { - "node": ">= 10.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.15", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^3.0.5", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.2.0", + "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { - "node": ">= 10.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-endpoints": { - "version": "2.0.5", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.4", + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, @@ -2473,2015 +2758,9006 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-hex-encoding": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.637.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.637.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-middleware": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-retry": { - "version": "3.0.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^3.0.3", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-stream": { - "version": "3.1.3", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/types": { + "version": "3.609.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", "@smithy/types": "^3.3.0", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-uri-escape": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-endpoints": { + "version": "3.637.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-utf8": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-locate-window": { + "version": "3.693.0", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/bowser": { - "version": "2.11.0", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/charenc": { - "version": "0.0.2", + "node_modules/@aws-amplify/data-construct/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", "dev": true, "inBundle": true, - "license": "BSD-3-Clause", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, "engines": { - "node": "*" + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } } }, - "node_modules/@aws-amplify/data-construct/node_modules/ci-info": { - "version": "3.9.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/abort-controller": { + "version": "3.1.8", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/crypt": { - "version": "0.0.2", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/config-resolver": { + "version": "3.0.12", "dev": true, "inBundle": true, - "license": "BSD-3-Clause", + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "tslib": "^2.6.2" + }, "engines": { - "node": "*" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/fast-xml-parser": { - "version": "4.4.1", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/core": { + "version": "2.5.3", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - } - ], "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "strnum": "^1.0.5" + "@smithy/middleware-serde": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-stream": "^3.3.1", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, - "bin": { - "fxparser": "src/cli/cli.js" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/fs-extra": { - "version": "8.1.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.7", "dev": true, "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "tslib": "^2.6.2" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/graceful-fs": { - "version": "4.2.11", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-codec": { + "version": "3.1.9", "dev": true, "inBundle": true, - "license": "ISC" + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^3.7.1", + "@smithy/util-hex-encoding": "^3.0.0", + "tslib": "^2.6.2" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/graphql": { - "version": "15.9.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-browser": { + "version": "3.0.13", "dev": true, "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, "engines": { - "node": ">= 10.x" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/graphql-mapping-template": { - "version": "5.0.1", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-config-resolver": { + "version": "3.0.10", "dev": true, "inBundle": true, - "license": "Apache-2.0" + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/graphql-transformer-common": { - "version": "5.0.1", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-node": { + "version": "3.0.12", "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "md5": "^2.2.1", - "pluralize": "8.0.0" + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/hjson": { - "version": "3.2.2", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/eventstream-serde-universal": { + "version": "3.0.12", "dev": true, "inBundle": true, - "license": "MIT", - "bin": { - "hjson": "bin/hjson" + "license": "Apache-2.0", + "dependencies": { + "@smithy/eventstream-codec": "^3.1.9", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/immer": { - "version": "9.0.21", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", "dev": true, "inBundle": true, - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/data-construct/node_modules/is-buffer": { - "version": "1.1.6", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/data-construct/node_modules/is-ci": { - "version": "3.0.1", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/hash-node": { + "version": "3.0.10", "dev": true, "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "ci-info": "^3.2.0" + "@smithy/types": "^3.7.1", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, - "bin": { - "is-ci": "bin.js" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/jsonfile": { - "version": "4.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/invalid-dependency": { + "version": "3.0.10", "dev": true, "inBundle": true, - "license": "MIT", - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/data-construct/node_modules/libphonenumber-js": { - "version": "1.9.47", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/lodash": { - "version": "4.17.21", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-content-length": { + "version": "3.0.12", "dev": true, "inBundle": true, - "license": "MIT" + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/lodash.mergewith": { - "version": "4.6.2", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.3", "dev": true, "inBundle": true, - "license": "MIT" + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^2.5.3", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-middleware": "^3.0.10", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/md5": { - "version": "2.3.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-retry": { + "version": "3.0.27", "dev": true, "inBundle": true, - "license": "BSD-3-Clause", + "license": "Apache-2.0", "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" + "@smithy/node-config-provider": "^3.1.11", + "@smithy/protocol-http": "^4.1.7", + "@smithy/service-error-classification": "^3.0.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/object-hash": { - "version": "3.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-serde": { + "version": "3.0.10", "dev": true, "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, "engines": { - "node": ">= 6" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/pluralize": { - "version": "8.0.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/middleware-stack": { + "version": "3.0.10", "dev": true, "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, "engines": { - "node": ">=4" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/semver": { - "version": "7.6.3", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/node-config-provider": { + "version": "3.1.11", "dev": true, "inBundle": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "license": "Apache-2.0", + "dependencies": { + "@smithy/property-provider": "^3.1.10", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" }, "engines": { - "node": ">=10" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/strnum": { - "version": "1.0.5", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/node-http-handler": { + "version": "3.3.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "Apache-2.0", + "dependencies": { + "@smithy/abort-controller": "^3.1.8", + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/ts-dedent": { - "version": "2.2.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/property-provider": { + "version": "3.1.10", "dev": true, "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, "engines": { - "node": ">=6.10" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/tslib": { - "version": "2.7.0", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/protocol-http": { + "version": "4.1.7", "dev": true, "inBundle": true, - "license": "0BSD" + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/data-construct/node_modules/universalify": { - "version": "0.1.2", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/querystring-builder": { + "version": "3.0.10", "dev": true, "inBundle": true, - "license": "MIT", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "@smithy/util-uri-escape": "^3.0.0", + "tslib": "^2.6.2" + }, "engines": { - "node": ">= 4.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/uuid": { - "version": "9.0.1", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/querystring-parser": { + "version": "3.0.10", "dev": true, - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], "inBundle": true, - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-construct/node_modules/zod": { - "version": "3.23.8", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/service-error-classification": { + "version": "3.0.10", "dev": true, "inBundle": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-schema": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/data-schema/-/data-schema-1.6.0.tgz", - "integrity": "sha512-34b0yKx0ASWFh8tinthRzliZBGe1ht0xYBnWLJ5kYM872mXIiVMGyr5Xn2X/jxTVZRj7XSFvpYAUdAarlmqk/w==", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.11", "dev": true, + "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/data-schema-types": "*", - "@smithy/util-base64": "^3.0.0", - "@types/aws-lambda": "^8.10.134", - "@types/json-schema": "^7.0.15", - "rxjs": "^7.8.1" + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/data-schema-types": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/data-schema-types/-/data-schema-types-1.1.1.tgz", - "integrity": "sha512-WhWEEsztpSSxIY0lJ3Ge5iA4g3PBm66SQmy1fBH1FBq0T+cxUBijifOU8MNwf+tf6lGpArMX0RS54HRVF5fUSA==", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/signature-v4": { + "version": "4.2.3", "dev": true, + "inBundle": true, "license": "Apache-2.0", "dependencies": { - "graphql": "15.8.0", - "rxjs": "^7.8.1" + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/deployed-backend-client": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/deployed-backend-client/-/deployed-backend-client-1.4.0.tgz", - "integrity": "sha512-jlmWuJtgDSNG1N/whDOpmbJiZeltcU4UedbQDodSJuXkBgaxsAuRRnJG5YTE5IRwcp/bpsb0py4QsvBUtXkJEg==", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/smithy-client": { + "version": "3.4.4", "dev": true, + "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.5", - "zod": "^3.22.2" + "@smithy/core": "^2.5.3", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-stream": "^3.3.1", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-amplify": "^3.624.0", - "@aws-sdk/client-cloudformation": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0", - "@aws-sdk/types": "^3.609.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/form-generator": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/form-generator/-/form-generator-1.0.1.tgz", - "integrity": "sha512-3mUqPz2j0F1jwoXbvNtIhbknZR/11dPWsYHJkAYoEFMFOpTNcmukEwG4WjlEGD20/lxbvD5K5lzQ0j+4N/0WTw==", + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/types": { + "version": "3.7.1", "dev": true, + "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/appsync-modelgen-plugin": "^2.11.0", - "@aws-amplify/codegen-ui": "^2.19.4", - "@aws-amplify/codegen-ui-react": "^2.19.4", - "@aws-amplify/graphql-directives": "^1.0.1", - "@aws-amplify/graphql-docs-generator": "^4.1.0", - "@aws-sdk/client-amplifyuibuilder": "^3.624.0", - "@aws-sdk/client-appsync": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0", - "@graphql-codegen/core": "^4.0.0", - "@graphql-codegen/typescript": "^2.8.3", - "graphql": "^15.8.0", - "node-fetch": "^3.3.2", - "prettier": "^2.8.7" + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-api-construct/-/graphql-api-construct-1.13.0.tgz", - "integrity": "sha512-4cv4Ko7OP7lZTDhojM/ibKglP1Ospy+/iGMnKguuYoISqhmL2sgnyVHWw+1XnRVc8eUf6gnip2KXMQKnaPU0Lw==", - "bundleDependencies": [ - "@aws-amplify/backend-output-schemas", - "@aws-amplify/backend-output-storage", - "@aws-amplify/graphql-auth-transformer", - "@aws-amplify/graphql-conversation-transformer", - "@aws-amplify/graphql-default-value-transformer", - "@aws-amplify/graphql-directives", - "@aws-amplify/graphql-function-transformer", - "@aws-amplify/graphql-generation-transformer", - "@aws-amplify/graphql-http-transformer", - "@aws-amplify/graphql-index-transformer", - "@aws-amplify/graphql-maps-to-transformer", - "@aws-amplify/graphql-model-transformer", - "@aws-amplify/graphql-predictions-transformer", - "@aws-amplify/graphql-relational-transformer", - "@aws-amplify/graphql-searchable-transformer", - "@aws-amplify/graphql-sql-transformer", - "@aws-amplify/graphql-transformer", - "@aws-amplify/graphql-transformer-core", - "@aws-amplify/graphql-transformer-interfaces", - "@aws-amplify/platform-core", - "@aws-amplify/plugin-types", - "@aws-amplify/ai-constructs", - "@aws-sdk/client-bedrock-runtime", - "@smithy/eventstream-serde-browser", - "@smithy/eventstream-serde-config-resolver", - "@smithy/eventstream-serde-node", - "@smithy/eventstream-serde-universal", - "@smithy/eventstream-codec", - "@aws-crypto/crc32", - "charenc", - "crypt", - "fs-extra", - "graceful-fs", - "graphql", - "graphql-mapping-template", - "graphql-transformer-common", - "hjson", - "immer", - "is-buffer", - "jsonfile", - "libphonenumber-js", - "lodash", - "md5", - "object-hash", - "pluralize", - "ts-dedent", - "universalify", - "zod", - "@aws-sdk/client-sts", - "is-ci", - "lodash.mergewith", - "uuid", - "@aws-crypto/sha256-browser", - "@aws-crypto/sha256-js", - "@aws-sdk/client-sso-oidc", - "@aws-sdk/core", - "@aws-sdk/credential-provider-node", - "@aws-sdk/middleware-host-header", - "@aws-sdk/middleware-logger", - "@aws-sdk/middleware-recursion-detection", - "@aws-sdk/middleware-user-agent", - "@aws-sdk/region-config-resolver", - "@aws-sdk/types", - "@aws-sdk/util-endpoints", - "@aws-sdk/util-user-agent-browser", - "@aws-sdk/util-user-agent-node", - "@smithy/config-resolver", - "@smithy/core", - "@smithy/fetch-http-handler", - "@smithy/hash-node", - "@smithy/invalid-dependency", - "@smithy/middleware-content-length", - "@smithy/middleware-endpoint", - "@smithy/middleware-retry", - "@smithy/middleware-serde", - "@smithy/middleware-stack", - "@smithy/node-config-provider", - "@smithy/node-http-handler", - "@smithy/protocol-http", - "@smithy/smithy-client", - "@smithy/types", - "@smithy/url-parser", - "@smithy/util-base64", - "@smithy/util-body-length-browser", - "@smithy/util-body-length-node", - "@smithy/util-defaults-mode-browser", - "@smithy/util-defaults-mode-node", - "@smithy/util-endpoints", - "@smithy/util-middleware", - "@smithy/util-retry", - "@smithy/util-utf8", - "tslib", - "ci-info", - "@aws-crypto/supports-web-crypto", - "@aws-crypto/util", - "@aws-sdk/util-locate-window", - "@smithy/signature-v4", - "fast-xml-parser", - "@aws-sdk/credential-provider-env", - "@aws-sdk/credential-provider-http", - "@aws-sdk/credential-provider-ini", - "@aws-sdk/credential-provider-process", - "@aws-sdk/credential-provider-sso", - "@aws-sdk/credential-provider-web-identity", - "@smithy/credential-provider-imds", - "@smithy/property-provider", - "@smithy/shared-ini-file-loader", - "@smithy/util-config-provider", - "bowser", - "@smithy/querystring-builder", - "@smithy/util-buffer-from", - "@smithy/service-error-classification", - "@smithy/abort-controller", - "@smithy/util-stream", - "@smithy/querystring-parser", - "@smithy/is-array-buffer", - "@smithy/util-hex-encoding", - "@smithy/util-uri-escape", - "strnum", - "@aws-sdk/token-providers", - "@aws-sdk/client-sso", - "semver" - ], + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/url-parser": { + "version": "3.0.10", "dev": true, + "inBundle": true, "license": "Apache-2.0", "dependencies": { - "@aws-amplify/ai-constructs": "^0.1.4", - "@aws-amplify/backend-output-schemas": "^1.0.0", - "@aws-amplify/backend-output-storage": "^1.0.0", - "@aws-amplify/graphql-auth-transformer": "4.1.1", - "@aws-amplify/graphql-conversation-transformer": "0.2.1", - "@aws-amplify/graphql-default-value-transformer": "3.0.3", - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-function-transformer": "3.1.0", - "@aws-amplify/graphql-generation-transformer": "0.2.1", - "@aws-amplify/graphql-http-transformer": "3.0.3", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-maps-to-transformer": "4.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-predictions-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-searchable-transformer": "3.0.3", - "@aws-amplify/graphql-sql-transformer": "0.4.3", - "@aws-amplify/graphql-transformer": "2.1.1", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "@aws-amplify/platform-core": "^1.0.0", - "@aws-amplify/plugin-types": "^1.0.0", - "@aws-crypto/crc32": "5.2.0", + "@smithy/querystring-parser": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-base64": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.27", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.27", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/config-resolver": "^3.0.12", + "@smithy/credential-provider-imds": "^3.2.7", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-endpoints": { + "version": "2.1.6", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-middleware": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-retry": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/service-error-classification": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-stream": { + "version": "3.3.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-uri-escape": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/bowser": { + "version": "2.11.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/data-construct/node_modules/charenc": { + "version": "0.0.2", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/ci-info": { + "version": "3.9.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/crypt": { + "version": "0.0.2", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/fast-xml-parser": { + "version": "4.4.1", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/fs-extra": { + "version": "8.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/graceful-fs": { + "version": "4.2.11", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/@aws-amplify/data-construct/node_modules/graphql": { + "version": "15.9.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/graphql-mapping-template": { + "version": "5.0.2", + "dev": true, + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/@aws-amplify/data-construct/node_modules/graphql-transformer-common": { + "version": "5.1.2", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "md5": "^2.2.1", + "pluralize": "8.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/hjson": { + "version": "3.2.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "hjson": "bin/hjson" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/immer": { + "version": "9.0.21", + "dev": true, + "inBundle": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/is-buffer": { + "version": "1.1.6", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/data-construct/node_modules/is-ci": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ci-info": "^3.2.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/jsonfile": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/libphonenumber-js": { + "version": "1.9.47", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/data-construct/node_modules/lodash": { + "version": "4.17.21", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/data-construct/node_modules/lodash.mergewith": { + "version": "4.6.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/data-construct/node_modules/lodash.snakecase": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/data-construct/node_modules/md5": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "dependencies": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/object-hash": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/pluralize": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/semver": { + "version": "7.6.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/strnum": { + "version": "1.0.5", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/data-construct/node_modules/ts-dedent": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6.10" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/tslib": { + "version": "2.8.1", + "dev": true, + "inBundle": true, + "license": "0BSD" + }, + "node_modules/@aws-amplify/data-construct/node_modules/universalify": { + "version": "0.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/uuid": { + "version": "9.0.1", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "inBundle": true, + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@aws-amplify/data-construct/node_modules/zod": { + "version": "3.23.8", + "dev": true, + "inBundle": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/@aws-amplify/data-schema": { + "version": "1.20.2", + "resolved": "https://registry.npmjs.org/@aws-amplify/data-schema/-/data-schema-1.20.2.tgz", + "integrity": "sha512-5sRk7IvEyz6hEY3Atq1e44pQ8inT9+2n638pJ9lOzoD5ipHZurSf3DJNYupgoQ58Re19ma1aLcYyG9E/ZfzAXw==", + "dev": true, + "dependencies": { + "@aws-amplify/data-schema-types": "*", + "@smithy/util-base64": "^3.0.0", + "@types/aws-lambda": "^8.10.134", + "@types/json-schema": "^7.0.15", + "rxjs": "^7.8.1" + } + }, + "node_modules/@aws-amplify/data-schema-types": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/data-schema-types/-/data-schema-types-1.2.0.tgz", + "integrity": "sha512-1hy2r7jl3hQ5J/CGjhmPhFPcdGSakfme1ZLjlTMJZILfYifZLSlGRKNCelMb3J5N9203hyeT5XDi5yR47JL1TQ==", + "dev": true, + "dependencies": { + "graphql": "15.8.0", + "rxjs": "^7.8.1" + } + }, + "node_modules/@aws-amplify/data-schema-types/node_modules/graphql": { + "version": "15.8.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", + "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", + "dev": true, + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/@aws-amplify/deployed-backend-client": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/deployed-backend-client/-/deployed-backend-client-1.6.0.tgz", + "integrity": "sha512-230QF/ZjrOacQV46Dq6ugHqp5lWH+r0XhLTq/1Vr4NzLSri0pdFe0RUnzPmB7KO4LwhXl0i+179hp5uoOGCkPg==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", + "zod": "^3.22.2" + }, + "peerDependencies": { + "@aws-sdk/client-amplify": "^3.750.0", + "@aws-sdk/client-cloudformation": "^3.750.0", + "@aws-sdk/client-s3": "^3.750.0", + "@aws-sdk/types": "^3.734.0" + } + }, + "node_modules/@aws-amplify/form-generator": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@aws-amplify/form-generator/-/form-generator-1.0.5.tgz", + "integrity": "sha512-g8FV5tzYh5dND9HRaTUBmACHyRK+Rco/4AarFSVe9JR2Y1+fi8iUsowO1szZKnbIqW1NoQ96LWfnhinuf9zvKw==", + "dev": true, + "dependencies": { + "@aws-amplify/appsync-modelgen-plugin": "^2.11.0", + "@aws-amplify/codegen-ui": "^2.19.4", + "@aws-amplify/codegen-ui-react": "^2.19.4", + "@aws-amplify/graphql-directives": "^1.0.1", + "@aws-amplify/graphql-docs-generator": "^4.1.0", + "@aws-sdk/client-amplifyuibuilder": "^3.624.0", + "@aws-sdk/client-appsync": "^3.624.0", + "@aws-sdk/client-s3": "^3.624.0", + "@graphql-codegen/core": "^4.0.0", + "@graphql-codegen/typescript": "^2.8.3", + "graphql": "^15.8.0", + "node-fetch": "^3.3.2", + "prettier": "^3.5.3" + } + }, + "node_modules/@aws-amplify/graphql-api-construct": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-api-construct/-/graphql-api-construct-1.19.1.tgz", + "integrity": "sha512-AsM5qUYdMqlrA74qjCZs0lEEgUz42e0kAd10X7xc6ZQpxuq738FK9BVwzmhDjFEovaq7dj/AbEvwpuoaRoVeFQ==", + "bundleDependencies": [ + "@aws-amplify/ai-constructs", + "@aws-amplify/backend-output-schemas", + "@aws-amplify/backend-output-storage", + "@aws-amplify/graphql-auth-transformer", + "@aws-amplify/graphql-conversation-transformer", + "@aws-amplify/graphql-default-value-transformer", + "@aws-amplify/graphql-directives", + "@aws-amplify/graphql-function-transformer", + "@aws-amplify/graphql-generation-transformer", + "@aws-amplify/graphql-http-transformer", + "@aws-amplify/graphql-index-transformer", + "@aws-amplify/graphql-maps-to-transformer", + "@aws-amplify/graphql-model-transformer", + "@aws-amplify/graphql-predictions-transformer", + "@aws-amplify/graphql-relational-transformer", + "@aws-amplify/graphql-searchable-transformer", + "@aws-amplify/graphql-sql-transformer", + "@aws-amplify/graphql-transformer", + "@aws-amplify/graphql-transformer-core", + "@aws-amplify/graphql-transformer-interfaces", + "@aws-amplify/graphql-validate-transformer", + "@aws-amplify/platform-core", + "@aws-amplify/plugin-types", + "@aws-crypto/crc32", + "@aws-crypto/sha256-browser", + "@aws-crypto/sha256-js", + "@aws-crypto/supports-web-crypto", + "@aws-crypto/util", + "@aws-sdk/client-bedrock-runtime", + "@aws-sdk/client-sso", + "@aws-sdk/client-sso-oidc", + "@aws-sdk/client-sts", + "@aws-sdk/core", + "@aws-sdk/credential-provider-env", + "@aws-sdk/credential-provider-http", + "@aws-sdk/credential-provider-ini", + "@aws-sdk/credential-provider-node", + "@aws-sdk/credential-provider-process", + "@aws-sdk/credential-provider-sso", + "@aws-sdk/credential-provider-web-identity", + "@aws-sdk/middleware-host-header", + "@aws-sdk/middleware-logger", + "@aws-sdk/middleware-recursion-detection", + "@aws-sdk/middleware-user-agent", + "@aws-sdk/region-config-resolver", + "@aws-sdk/token-providers", + "@aws-sdk/types", + "@aws-sdk/util-endpoints", + "@aws-sdk/util-locate-window", + "@aws-sdk/util-user-agent-browser", + "@aws-sdk/util-user-agent-node", + "@smithy/abort-controller", + "@smithy/config-resolver", + "@smithy/core", + "@smithy/credential-provider-imds", + "@smithy/eventstream-codec", + "@smithy/eventstream-serde-browser", + "@smithy/eventstream-serde-config-resolver", + "@smithy/eventstream-serde-node", + "@smithy/eventstream-serde-universal", + "@smithy/fetch-http-handler", + "@smithy/hash-node", + "@smithy/invalid-dependency", + "@smithy/is-array-buffer", + "@smithy/middleware-content-length", + "@smithy/middleware-endpoint", + "@smithy/middleware-retry", + "@smithy/middleware-serde", + "@smithy/middleware-stack", + "@smithy/node-config-provider", + "@smithy/node-http-handler", + "@smithy/property-provider", + "@smithy/protocol-http", + "@smithy/querystring-builder", + "@smithy/querystring-parser", + "@smithy/service-error-classification", + "@smithy/shared-ini-file-loader", + "@smithy/signature-v4", + "@smithy/smithy-client", + "@smithy/types", + "@smithy/url-parser", + "@smithy/util-base64", + "@smithy/util-body-length-browser", + "@smithy/util-body-length-node", + "@smithy/util-buffer-from", + "@smithy/util-config-provider", + "@smithy/util-defaults-mode-browser", + "@smithy/util-defaults-mode-node", + "@smithy/util-endpoints", + "@smithy/util-hex-encoding", + "@smithy/util-middleware", + "@smithy/util-retry", + "@smithy/util-stream", + "@smithy/util-uri-escape", + "@smithy/util-utf8", + "bowser", + "charenc", + "ci-info", + "crypt", + "fast-xml-parser", + "fs-extra", + "graceful-fs", + "graphql", + "graphql-mapping-template", + "graphql-transformer-common", + "hjson", + "immer", + "is-buffer", + "is-ci", + "jsonfile", + "libphonenumber-js", + "lodash", + "lodash.mergewith", + "lodash.snakecase", + "md5", + "object-hash", + "pluralize", + "semver", + "strnum", + "ts-dedent", + "tslib", + "universalify", + "uuid", + "zod" + ], + "dev": true, + "dependencies": { + "@aws-amplify/ai-constructs": "^1.2.4", + "@aws-amplify/backend-output-schemas": "^1.0.0", + "@aws-amplify/backend-output-storage": "^1.0.0", + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer": "2.3.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", + "@aws-amplify/platform-core": "^1.0.0", + "@aws-amplify/plugin-types": "^1.0.0", + "@aws-crypto/crc32": "5.2.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/client-bedrock-runtime": "^3.622.0", + "@aws-sdk/client-sso": "3.637.0", + "@aws-sdk/client-sso-oidc": "3.637.0", + "@aws-sdk/client-sts": "^3.624.0", + "@aws-sdk/core": "3.635.0", + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.635.0", + "@aws-sdk/credential-provider-ini": "3.637.0", + "@aws-sdk/credential-provider-node": "3.637.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.637.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.637.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.637.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/abort-controller": "^3.1.1", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.4.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/eventstream-codec": "^3.1.2", + "@smithy/eventstream-serde-browser": "^3.0.6", + "@smithy/eventstream-serde-config-resolver": "^3.0.3", + "@smithy/eventstream-serde-node": "^3.0.5", + "@smithy/eventstream-serde-universal": "^3.0.5", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.15", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/querystring-builder": "^3.0.3", + "@smithy/querystring-parser": "^3.0.3", + "@smithy/service-error-classification": "^3.0.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.15", + "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-stream": "^3.1.3", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "bowser": "^2.11.0", + "charenc": "^0.0.2", + "ci-info": "^3.2.0", + "crypt": "^0.0.2", + "fast-xml-parser": "4.4.1", + "fs-extra": "^8.1.0", + "graceful-fs": "^4.2.0", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "hjson": "^3.2.2", + "immer": "^9.0.12", + "is-buffer": "~1.1.6", + "is-ci": "^3.0.1", + "jsonfile": "^4.0.0", + "libphonenumber-js": "1.9.47", + "lodash": "^4.17.21", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "md5": "^2.2.1", + "object-hash": "^3.0.0", + "pluralize": "8.0.0", + "semver": "^7.6.3", + "strnum": "^1.0.5", + "ts-dedent": "^2.0.0", + "tslib": "^2.6.2", + "universalify": "^0.1.0", + "uuid": "^9.0.1", + "zod": "^3.22.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/ai-constructs": { + "version": "1.2.4", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/backend-output-schemas": "^1.4.0", + "@aws-amplify/platform-core": "^1.6.2", + "@aws-amplify/plugin-types": "^1.6.0", + "@aws-sdk/client-bedrock-runtime": "^3.622.0", + "@smithy/types": "^3.3.0", + "json-schema-to-ts": "^3.1.1" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/platform-core": { + "version": "1.6.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/plugin-types": "^1.8.0", + "@aws-sdk/client-sts": "^3.624.0", + "is-ci": "^3.0.1", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "semver": "^7.6.3", + "uuid": "^9.0.1", + "zod": "^3.22.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/ai-constructs/node_modules/@aws-amplify/plugin-types": { + "version": "1.8.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/types": "^3.609.0", + "aws-cdk-lib": "^2.168.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/backend-output-schemas": { + "version": "1.4.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "peerDependencies": { + "zod": "^3.22.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/backend-output-storage": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/backend-output-schemas": "^1.2.0", + "@aws-amplify/platform-core": "^1.0.6", + "@aws-amplify/plugin-types": "^1.3.1" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.158.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-auth-transformer": { + "version": "4.2.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "lodash": "^4.17.21", + "md5": "^2.3.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-conversation-transformer": { + "version": "1.1.9", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/ai-constructs": "^1.2.4", + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/plugin-types": "^1.0.0", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "immer": "^9.0.12", + "semver": "^7.6.3" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-default-value-transformer": { + "version": "3.1.11", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "libphonenumber-js": "1.9.47" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-directives": { + "version": "2.7.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-function-transformer": { + "version": "3.1.13", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-generation-transformer": { + "version": "1.2.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "immer": "^9.0.12" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-http-transformer": { + "version": "3.0.16", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-index-transformer": { + "version": "3.0.16", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-maps-to-transformer": { + "version": "4.0.16", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-model-transformer": { + "version": "3.2.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-predictions-transformer": { + "version": "3.0.16", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-relational-transformer": { + "version": "3.1.8", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "immer": "^9.0.12" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-searchable-transformer": { + "version": "3.0.16", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-sql-transformer": { + "version": "0.4.16", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer": { + "version": "2.3.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-auth-transformer": "4.2.1", + "@aws-amplify/graphql-conversation-transformer": "1.1.9", + "@aws-amplify/graphql-default-value-transformer": "3.1.11", + "@aws-amplify/graphql-function-transformer": "3.1.13", + "@aws-amplify/graphql-generation-transformer": "1.2.1", + "@aws-amplify/graphql-http-transformer": "3.0.16", + "@aws-amplify/graphql-index-transformer": "3.0.16", + "@aws-amplify/graphql-maps-to-transformer": "4.0.16", + "@aws-amplify/graphql-model-transformer": "3.2.1", + "@aws-amplify/graphql-predictions-transformer": "3.0.16", + "@aws-amplify/graphql-relational-transformer": "3.1.8", + "@aws-amplify/graphql-searchable-transformer": "3.0.16", + "@aws-amplify/graphql-sql-transformer": "0.4.16", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-amplify/graphql-validate-transformer": "1.1.1", + "@aws-amplify/plugin-types": "^1.0.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-core": { + "version": "3.4.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "fs-extra": "^8.1.0", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "hjson": "^3.2.2", + "lodash": "^4.17.21", + "md5": "^2.3.0", + "object-hash": "^3.0.0", + "ts-dedent": "^2.0.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-interfaces": { + "version": "4.2.4", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "graphql": "^15.5.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-validate-transformer": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/platform-core": { + "version": "1.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-amplify/plugin-types": "^1.2.1", + "@aws-sdk/client-sts": "^3.624.0", + "is-ci": "^3.0.1", + "lodash.mergewith": "^4.6.2", + "semver": "^7.6.3", + "uuid": "^9.0.1", + "zod": "^3.22.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/plugin-types": { + "version": "1.4.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/types": "^3.609.0", + "aws-cdk-lib": "^2.158.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/crc32": { + "version": "5.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/crc32/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser": { + "version": "5.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/supports-web-crypto": { + "version": "5.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util": { + "version": "5.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/client-sts": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/eventstream-serde-browser": "^3.0.12", + "@smithy/eventstream-serde-config-resolver": "^3.0.9", + "@smithy/eventstream-serde-node": "^3.0.11", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-stream": "^3.3.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/core": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-logger": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.9", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/token-providers": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-endpoints": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sso": { + "version": "3.637.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.635.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.637.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.637.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.4.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.15", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.15", + "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.637.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.635.0", + "@aws-sdk/credential-provider-node": "3.637.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.637.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.637.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.4.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.15", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.15", + "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.637.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/core": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-logger": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.9", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/token-providers": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.693.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/types": { + "version": "3.692.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-endpoints": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/core": { + "version": "3.635.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^2.4.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.635.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.2.0", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.637.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.635.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.637.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.637.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.637.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.635.0", + "@aws-sdk/credential-provider-ini": "3.637.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.637.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.637.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/client-sso": "3.637.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.637.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.637.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-endpoints": { + "version": "3.637.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-locate-window": { + "version": "3.693.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/abort-controller": { + "version": "3.1.8", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/config-resolver": { + "version": "3.0.12", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/core": { + "version": "2.5.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/middleware-serde": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-stream": "^3.3.1", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.7", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-codec": { + "version": "3.1.9", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^3.7.1", + "@smithy/util-hex-encoding": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-browser": { + "version": "3.0.13", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-config-resolver": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-node": { + "version": "3.0.12", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/eventstream-serde-universal": "^3.0.12", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-universal": { + "version": "3.0.12", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/eventstream-codec": "^3.1.9", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/hash-node": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/invalid-dependency": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-content-length": { + "version": "3.0.12", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^2.5.3", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-middleware": "^3.0.10", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-retry": { + "version": "3.0.27", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/protocol-http": "^4.1.7", + "@smithy/service-error-classification": "^3.0.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-serde": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-stack": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/node-config-provider": { + "version": "3.1.11", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/property-provider": "^3.1.10", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/node-http-handler": { + "version": "3.3.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/abort-controller": "^3.1.8", + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/property-provider": { + "version": "3.1.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/protocol-http": { + "version": "4.1.7", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/querystring-builder": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "@smithy/util-uri-escape": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/querystring-parser": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/service-error-classification": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.11", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/signature-v4": { + "version": "4.2.3", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/smithy-client": { + "version": "3.4.4", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^2.5.3", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-stream": "^3.3.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/types": { + "version": "3.7.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/url-parser": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/querystring-parser": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-base64": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.27", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.27", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/config-resolver": "^3.0.12", + "@smithy/credential-provider-imds": "^3.2.7", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-endpoints": { + "version": "2.1.6", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-middleware": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-retry": { + "version": "3.0.10", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/service-error-classification": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-stream": { + "version": "3.3.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-uri-escape": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/bowser": { + "version": "2.11.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/charenc": { + "version": "0.0.2", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/ci-info": { + "version": "3.9.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/crypt": { + "version": "0.0.2", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": "*" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/fast-xml-parser": { + "version": "4.4.1", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/fs-extra": { + "version": "8.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/graceful-fs": { + "version": "4.2.11", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql": { + "version": "15.9.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql-mapping-template": { + "version": "5.0.2", + "dev": true, + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql-transformer-common": { + "version": "5.1.2", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "md5": "^2.2.1", + "pluralize": "8.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/hjson": { + "version": "3.2.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "hjson": "bin/hjson" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/immer": { + "version": "9.0.21", + "dev": true, + "inBundle": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/is-buffer": { + "version": "1.1.6", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/is-ci": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ci-info": "^3.2.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/jsonfile": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/libphonenumber-js": { + "version": "1.9.47", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/lodash": { + "version": "4.17.21", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/lodash.mergewith": { + "version": "4.6.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/lodash.snakecase": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/md5": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "dependencies": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/object-hash": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/pluralize": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/semver": { + "version": "7.6.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/strnum": { + "version": "1.0.5", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/ts-dedent": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6.10" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/tslib": { + "version": "2.8.1", + "dev": true, + "inBundle": true, + "license": "0BSD" + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/universalify": { + "version": "0.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/uuid": { + "version": "9.0.1", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "inBundle": true, + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@aws-amplify/graphql-api-construct/node_modules/zod": { + "version": "3.23.8", + "dev": true, + "inBundle": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/@aws-amplify/graphql-directives": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-directives/-/graphql-directives-1.1.0.tgz", + "integrity": "sha512-rcGfm8DsnD7Em1wYgNoq7yO+cE22mM0ssFYRWnHGsZOMX9Lh25HP1Ympt633V+raaTK3ND0gAlbVLxXzCN8XOg==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-docs-generator": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-docs-generator/-/graphql-docs-generator-4.2.1.tgz", + "integrity": "sha512-ReBlY5//mWOmO0FL2ndswB9ku+vpg/JTY9Wwemjm/ibyoLHU1ojtGkPBkKH0CzbpOkIuEkIBLIg9EZ2yca/6oA==", + "dev": true, + "dependencies": { + "graphql": "^15.5.0", + "handlebars": "4.7.7", + "yargs": "^15.1.0" + }, + "bin": { + "graphql-docs-generator": "bin/cli" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-docs-generator/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-amplify/graphql-generator": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-generator/-/graphql-generator-0.5.3.tgz", + "integrity": "sha512-vU3sLcVi0rwu0k+jepKSRcyb9igKJx3VAmXy/aRd7ggXPiw3uu8pZOVFQqZxOV5Ro5awMGCdLR6gSrpX6+1ADQ==", + "dev": true, + "dependencies": { + "@aws-amplify/appsync-modelgen-plugin": "2.15.2", + "@aws-amplify/graphql-directives": "^1.0.1", + "@aws-amplify/graphql-docs-generator": "4.2.1", + "@aws-amplify/graphql-types-generator": "3.6.0", + "@graphql-codegen/core": "^2.6.6", + "@graphql-codegen/plugin-helpers": "^3.1.1", + "@graphql-tools/apollo-engine-loader": "^8.0.0", + "@graphql-tools/schema": "^9.0.0", + "@graphql-tools/utils": "^9.2.1", + "graphql": "^15.5.0", + "prettier": "^1.19.1" + } + }, + "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core": { + "version": "2.6.8", + "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-2.6.8.tgz", + "integrity": "sha512-JKllNIipPrheRgl+/Hm/xuWMw9++xNQ12XJR/OHHgFopOg4zmN3TdlRSyYcv/K90hCFkkIwhlHFUQTfKrm8rxQ==", + "dev": true, + "dependencies": { + "@graphql-codegen/plugin-helpers": "^3.1.1", + "@graphql-tools/schema": "^9.0.0", + "@graphql-tools/utils": "^9.1.1", + "tslib": "~2.4.0" + }, + "peerDependencies": { + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-tools/utils": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", + "dev": true, + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@aws-amplify/graphql-generator/node_modules/prettier": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-generator/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-schema-generator": { + "version": "0.11.9", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-schema-generator/-/graphql-schema-generator-0.11.9.tgz", + "integrity": "sha512-C/ZjBJAhR8RMnCUuKyLaUXoDPDntOFfnCLwEysoPGZ6pKufvCzoK2j4v5KnMPq1kERJyKSS+Zm7d1XLQaA6/Dg==", + "dev": true, + "dependencies": { + "@aws-amplify/graphql-transformer-core": "3.4.1", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "@aws-sdk/client-ec2": "3.624.0", + "@aws-sdk/client-iam": "3.624.0", + "@aws-sdk/client-lambda": "3.624.0", + "@aws-sdk/client-rds": "3.624.0", + "csv-parse": "^5.5.2", + "fs-extra": "11.1.1", + "graphql": "^15.5.0", + "graphql-transformer-common": "5.1.2", + "knex": "~2.4.0", + "mysql2": "~3.9.7", + "ora": "^4.0.3", + "pg": "~8.11.3", + "pluralize": "^8.0.0", + "typescript": "^4.8.4" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-lambda": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.624.0.tgz", + "integrity": "sha512-bfhFeg6LoC6AFM68+Gyogq9UpyW83Jwkwobo9CtxSTfaNIOYdKgTOdYtn4pM/bRYrWon4CstJQymIsPbY7ra5Q==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/client-sts": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/eventstream-serde-browser": "^3.0.5", + "@smithy/eventstream-serde-config-resolver": "^3.0.3", + "@smithy/eventstream-serde-node": "^3.0.4", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-stream": "^3.1.3", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-sts": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", + "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/core": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", + "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", + "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", + "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", + "dev": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.624.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", + "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", + "dev": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.624.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", + "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", + "dev": true, + "dependencies": { + "@aws-sdk/client-sso": "3.624.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", + "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/util-endpoints": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", + "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", + "dev": true, + "dependencies": { + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-codec": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-3.1.10.tgz", + "integrity": "sha512-323B8YckSbUH0nMIpXn7HZsAVKHYHFUODa8gG9cHo0ySvA1fr5iWaNT+iIL0UCqUzG6QPHA3BSsBtRQou4mMqQ==", + "dev": true, + "dependencies": { + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-browser": { + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.14.tgz", + "integrity": "sha512-kbrt0vjOIihW3V7Cqj1SXQvAI5BR8SnyQYsandva0AOR307cXAc+IhPngxIPslxTLfxwDpNu0HzCAq6g42kCPg==", + "dev": true, + "dependencies": { + "@smithy/eventstream-serde-universal": "^3.0.13", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-config-resolver": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.11.tgz", + "integrity": "sha512-P2pnEp4n75O+QHjyO7cbw/vsw5l93K/8EWyjNCAAybYwUmj3M+hjSQZ9P5TVdUgEG08ueMAP5R4FkuSkElZ5tQ==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-node": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.13.tgz", + "integrity": "sha512-zqy/9iwbj8Wysmvi7Lq7XFLeDgjRpTbCfwBhJa8WbrylTAHiAu6oQTwdY7iu2lxigbc9YYr9vPv5SzYny5tCXQ==", + "dev": true, + "dependencies": { + "@smithy/eventstream-serde-universal": "^3.0.13", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/eventstream-serde-universal": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.13.tgz", + "integrity": "sha512-L1Ib66+gg9uTnqp/18Gz4MDpJPKRE44geOjOQ2SVc0eiaO5l255ADziATZgjQjqumC7yPtp1XnjHlF1srcwjKw==", + "dev": true, + "dependencies": { + "@smithy/eventstream-codec": "^3.1.10", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", + "dev": true, + "dependencies": { + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dev": true, + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", + "dev": true, + "dependencies": { + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", + "dev": true, + "dependencies": { + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", + "dev": true, + "dependencies": { + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", + "dev": true, + "dependencies": { + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "dev": true, + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/fs-extra": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/graphql-transformer-common": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-5.1.2.tgz", + "integrity": "sha512-uKE2KWYJTWGe8Hcwm7WIy4TSEKTF6MFXeUPDvixlAGgTFkGJ1p/fjecOy2odxzVY/T3qLpL5c8Hij54pz+oZng==", + "dev": true, + "dependencies": { + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "md5": "^2.2.1", + "pluralize": "8.0.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/log-symbols": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", + "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", + "dev": true, + "dependencies": { + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/log-symbols/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/ora": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-4.1.1.tgz", + "integrity": "sha512-sjYP8QyVWBpBZWD6Vr1M/KwknSw6kJOz41tvGMlwWeClHBtYKTbHMki1PsLZnxKpXMPbTKv9b3pjQu3REib96A==", + "dev": true, + "dependencies": { + "chalk": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.2.0", + "is-interactive": "^1.0.0", + "log-symbols": "^3.0.0", + "mute-stream": "0.0.8", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/@aws-amplify/graphql-schema-generator/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-transformer-core": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-core/-/graphql-transformer-core-3.4.1.tgz", + "integrity": "sha512-Di8+lvZ+nnqfcC81bGw2x21KeroM+SYrr3uNQ3HlNU3PKzFQ0La+/wU6hzHCd68Z01Urq2mHkIdlKBtti+Iocw==", + "dev": true, + "dependencies": { + "@aws-amplify/graphql-directives": "2.7.0", + "@aws-amplify/graphql-transformer-interfaces": "4.2.4", + "fs-extra": "^8.1.0", + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "graphql-transformer-common": "5.1.2", + "hjson": "^3.2.2", + "lodash": "^4.17.21", + "md5": "^2.3.0", + "object-hash": "^3.0.0", + "ts-dedent": "^2.0.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-transformer-core/node_modules/@aws-amplify/graphql-directives": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-directives/-/graphql-directives-2.7.0.tgz", + "integrity": "sha512-aMv9G++sLM3nkJBQG5YiR7TMX8xULDADarTvqb6JFyhCXIr3E//0y4B5cCZfTrpe9Odq9I1cJ+avbX25zYfHbA==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-transformer-core/node_modules/graphql-transformer-common": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-5.1.2.tgz", + "integrity": "sha512-uKE2KWYJTWGe8Hcwm7WIy4TSEKTF6MFXeUPDvixlAGgTFkGJ1p/fjecOy2odxzVY/T3qLpL5c8Hij54pz+oZng==", + "dev": true, + "dependencies": { + "graphql": "^15.5.0", + "graphql-mapping-template": "5.0.2", + "md5": "^2.2.1", + "pluralize": "8.0.0" + } + }, + "node_modules/@aws-amplify/graphql-transformer-core/node_modules/ts-dedent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", + "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==", + "dev": true, + "engines": { + "node": ">=6.10" + } + }, + "node_modules/@aws-amplify/graphql-transformer-interfaces": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-interfaces/-/graphql-transformer-interfaces-4.2.4.tgz", + "integrity": "sha512-YQ+WVoPQyf0wq52+bwnrxG226V7x5H6jV0XNINyHgsku5XUC/0YxApKIPmUtMuEFS5rWuN8bINQxwMvktRhahg==", + "dev": true, + "dependencies": { + "graphql": "^15.5.0" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.3.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-types-generator/-/graphql-types-generator-3.6.0.tgz", + "integrity": "sha512-yjPXJ2dYZwtGvwwcEQ5RDNlwTsd/hUfD2Dgguo999Gu3mQjz7nV4l7CXD/Oxo/QzwtU/4rmTX69yadBpR+he3A==", + "dev": true, + "dependencies": { + "@babel/generator": "7.0.0-beta.4", + "@babel/types": "7.0.0-beta.4", + "babel-generator": "^6.26.1", + "babel-types": "^6.26.0", + "change-case": "^4.1.1", + "common-tags": "^1.8.0", + "core-js": "^3.6.4", + "fs-extra": "^8.1.0", + "globby": "^11.1.0", + "graphql": "^15.5.0", + "inflected": "^2.0.4", + "prettier": "^1.19.1", + "rimraf": "^3.0.0", + "source-map-support": "^0.5.16", + "yargs": "^15.1.0" + }, + "bin": { + "graphql-types-generator": "lib/cli.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/prettier": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-amplify/model-generator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/model-generator/-/model-generator-1.1.0.tgz", + "integrity": "sha512-PcnmCqlsgd6hx2QCkRl1Ba4WSux8M8mtcUUe53aOBk9VbHA4QEVE9Ed+Ob7WlFlpKLPPUeu5HNct71Ismd9ARA==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-amplify/backend-output-schemas": "^1.5.0", + "@aws-amplify/deployed-backend-client": "^1.6.0", + "@aws-amplify/graphql-generator": "^0.5.1", + "@aws-amplify/graphql-types-generator": "^3.6.0", + "@aws-amplify/platform-core": "^1.7.0", + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-appsync": "^3.750.0", + "@aws-sdk/client-s3": "^3.750.0", + "@aws-sdk/credential-providers": "^3.750.0", + "@aws-sdk/types": "^3.734.0", + "graphql": "^15.8.0" + }, + "peerDependencies": { + "@aws-sdk/client-amplify": "^3.750.0", + "@aws-sdk/client-cloudformation": "^3.750.0" + } + }, + "node_modules/@aws-amplify/platform-core": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/platform-core/-/platform-core-1.7.0.tgz", + "integrity": "sha512-vepJpjjC8XnMfMHuDqsWEnVwbFfANCzJ63NGjYgg9zX6Z03D6HG1CGLDRNGK4Swn8Z/kUfuIpllDHRkxceSyAQ==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-amplify/plugin-types": "^1.9.0", + "@aws-sdk/client-sts": "^3.750.0", + "is-ci": "^4.1.0", + "lodash.mergewith": "^4.6.2", + "lodash.snakecase": "^4.1.1", + "semver": "^7.6.3", + "uuid": "^9.0.1", + "zod": "^3.22.2" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/plugin-types": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@aws-amplify/plugin-types/-/plugin-types-1.9.0.tgz", + "integrity": "sha512-bD2nmh2nIiZ/1yEGz94jt6nmo+c4YBf7yukG/dHM5LSMLtt8/gDNE80gQQl+pAyJh++JL1cAGpMnEVvpkHc5Gw==", + "deprecated": "backend-cli 1.6.0 does not work with Amplify Hosting service", + "dev": true, + "dependencies": { + "@aws-cdk/toolkit-lib": "0.1.5" + }, + "peerDependencies": { + "@aws-sdk/types": "^3.734.0", + "aws-cdk-lib": "^2.180.0", + "constructs": "^10.0.0" + } + }, + "node_modules/@aws-amplify/sandbox": { + "version": "1.2.12", + "resolved": "https://registry.npmjs.org/@aws-amplify/sandbox/-/sandbox-1.2.12.tgz", + "integrity": "sha512-sSmVESSKL4n1QyuA3hzCT9GjZq1I6d2bTuoyxCXY18iXAyuQKxSj8YkHmYZB++IaXsvCcjAbb88gXOxCYpnMcw==", + "dev": true, + "dependencies": { + "@aws-amplify/backend-deployer": "^1.1.20", + "@aws-amplify/backend-secret": "^1.2.0", + "@aws-amplify/cli-core": "^1.4.1", + "@aws-amplify/client-config": "^1.5.8", + "@aws-amplify/deployed-backend-client": "^1.5.2", + "@aws-amplify/platform-core": "^1.6.5", + "@aws-amplify/plugin-types": "^1.8.1", + "@aws-sdk/client-cloudwatch-logs": "^3.624.0", + "@aws-sdk/client-lambda": "^3.624.0", + "@aws-sdk/client-ssm": "^3.624.0", + "@aws-sdk/credential-providers": "^3.624.0", + "@aws-sdk/types": "^3.609.0", + "@parcel/watcher": "^2.4.1", + "debounce-promise": "^3.1.2", + "glob": "^10.2.7", + "open": "^9.1.0", + "parse-gitignore": "^2.0.0" + }, + "peerDependencies": { + "aws-cdk": "^2.1001.0" + } + }, + "node_modules/@aws-amplify/schema-generator": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@aws-amplify/schema-generator/-/schema-generator-1.2.8.tgz", + "integrity": "sha512-A4mujy+Rq7Ly4c2iuqid40NcXChht/A7xTHx4UM9TW3PKjieuik+WkhSimbaWN6jBZJzLSO/rWxWhRFnEiomzw==", + "dev": true, + "dependencies": { + "@aws-amplify/graphql-schema-generator": "^0.11.0", + "@aws-amplify/platform-core": "^1.6.5" + } + }, + "node_modules/@aws-cdk/asset-awscli-v1": { + "version": "2.2.229", + "resolved": "https://registry.npmjs.org/@aws-cdk/asset-awscli-v1/-/asset-awscli-v1-2.2.229.tgz", + "integrity": "sha512-apNt/Sfty7Jwi1+6hrZaQeVisqnJAW4+uQZI55VPKtBqjTFEsKPBc/KZDx9Tlw8Ii1yWrS3HNzLNGxpTXae8XQ==", + "dev": true, + "peer": true + }, + "node_modules/@aws-cdk/asset-node-proxy-agent-v6": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.1.0.tgz", + "integrity": "sha512-7bY3J8GCVxLupn/kNmpPc5VJz8grx+4RKfnnJiO1LG+uxkZfANZG3RMHhE+qQxxwkyQ9/MfPtTpf748UhR425A==", + "dev": true, + "peer": true + }, + "node_modules/@aws-cdk/aws-service-spec": { + "version": "0.1.63", + "resolved": "https://registry.npmjs.org/@aws-cdk/aws-service-spec/-/aws-service-spec-0.1.63.tgz", + "integrity": "sha512-5OsuiiRu1hrc02juBAjMDE9oXfjKIuKJ4YCPXX27lFXjBAAvNXLvkjRCJCTmRwVv2/GO3oqouh/Ln3hsvvBDSA==", + "dev": true, + "dependencies": { + "@aws-cdk/service-spec-types": "^0.0.129", + "@cdklabs/tskb": "^0.0.3" + } + }, + "node_modules/@aws-cdk/aws-service-spec/node_modules/@aws-cdk/service-spec-types": { + "version": "0.0.129", + "resolved": "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.129.tgz", + "integrity": "sha512-MUWSHlc4df5p34x1ztulhS/7pCUiy9pVjuS6/vWJFkbHDSG/01VqWnELUnPaaWng54tuiHsQUH/jEC3asVLu3g==", + "dev": true, + "dependencies": { + "@cdklabs/tskb": "^0.0.3" + } + }, + "node_modules/@aws-cdk/cloud-assembly-schema": { + "version": "40.7.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-40.7.0.tgz", + "integrity": "sha512-00wVKn9pOOGXbeNwA4E8FUFt0zIB4PmSO7PvIiDWgpaFX3G/sWyy0A3s6bg/n2Yvkghu8r4a8ckm+mAzkAYmfA==", + "bundleDependencies": [ + "jsonschema", + "semver" + ], + "dev": true, + "peer": true, + "dependencies": { + "jsonschema": "~1.4.1", + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "*" + } + }, + "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "peer": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/cloudformation-diff": { + "version": "2.180.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloudformation-diff/-/cloudformation-diff-2.180.0.tgz", + "integrity": "sha512-gxu529DuttZrnw/cMrVje7qPJvLo7JDgu05aRrTs7bvhH2RaqqhN3BA03iNvY8tYzI2O2p619nm2vhMCfYRFWA==", + "dev": true, + "dependencies": { + "@aws-cdk/aws-service-spec": "^0.1.62", + "@aws-cdk/service-spec-types": "^0.0.128", + "chalk": "^4", + "diff": "^7.0.0", + "fast-deep-equal": "^3.1.3", + "string-width": "^4", + "table": "^6" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/cloudformation-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@aws-cdk/cx-api": { + "version": "2.186.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cx-api/-/cx-api-2.186.0.tgz", + "integrity": "sha512-zz85GrYO68ApsFtLHdwdc8hC3NZecZZycMG2R4NZ7gNGACGjCX1K18+4tBC0Nk9NeGtAkBtc93uSs05aJAKJkA==", + "bundleDependencies": [ + "semver" + ], + "dev": true, + "dependencies": { + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + }, + "peerDependencies": { + "@aws-cdk/cloud-assembly-schema": "^40.6.0" + } + }, + "node_modules/@aws-cdk/cx-api/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/region-info": { + "version": "2.186.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/region-info/-/region-info-2.186.0.tgz", + "integrity": "sha512-4SFRGMDLm20bPWlSt0ZjZUqWjHyE5cUVXwsf03xKljXUyFkB3NjQvtX4ZaZjyjxPSKdNDKiWmbHrlwfhRSCWfg==", + "dev": true, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/service-spec-types": { + "version": "0.0.128", + "resolved": "https://registry.npmjs.org/@aws-cdk/service-spec-types/-/service-spec-types-0.0.128.tgz", + "integrity": "sha512-wAYyf6xiYXObUR/f83iSd8cQ4TgDuk7h909wgmTMIIWxId1NJGw8o0TvInYjHP0GtXIFGoHoeO2efKsp72YbBw==", + "dev": true, + "dependencies": { + "@cdklabs/tskb": "^0.0.3" + } + }, + "node_modules/@aws-cdk/toolkit-lib": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@aws-cdk/toolkit-lib/-/toolkit-lib-0.1.5.tgz", + "integrity": "sha512-C8+LjlkSFXQqVV9ZyhQ1VSkg6uMvwgnN5Fwp5l0+d3g/aR82YK3cVJYPppNjHZ4w4dOVErprVM4OdIfyf7Vmkg==", + "dev": true, + "dependencies": { + "@aws-cdk/cloud-assembly-schema": "^41.1.0", + "@aws-cdk/cloudformation-diff": "^2.179.0", + "@aws-cdk/cx-api": "^2.181.1", + "@aws-cdk/region-info": "^2.181.1", + "@aws-sdk/client-appsync": "^3", + "@aws-sdk/client-cloudcontrol": "^3", + "@aws-sdk/client-cloudformation": "^3", + "@aws-sdk/client-cloudwatch-logs": "^3", + "@aws-sdk/client-codebuild": "^3", + "@aws-sdk/client-ec2": "^3", + "@aws-sdk/client-ecr": "^3", + "@aws-sdk/client-ecs": "^3", + "@aws-sdk/client-elastic-load-balancing-v2": "^3", + "@aws-sdk/client-iam": "^3", + "@aws-sdk/client-kms": "^3", + "@aws-sdk/client-lambda": "^3", + "@aws-sdk/client-route-53": "^3", + "@aws-sdk/client-s3": "^3", + "@aws-sdk/client-secrets-manager": "^3", + "@aws-sdk/client-sfn": "^3", + "@aws-sdk/client-ssm": "^3", + "@aws-sdk/client-sts": "^3", + "@aws-sdk/credential-providers": "^3", + "@aws-sdk/ec2-metadata-service": "^3", + "@aws-sdk/lib-storage": "^3", + "@smithy/middleware-endpoint": "^4.0.6", + "@smithy/node-http-handler": "^4.0.3", + "@smithy/property-provider": "^4.0.1", + "@smithy/shared-ini-file-loader": "^4.0.1", + "@smithy/util-retry": "^4.0.1", + "@smithy/util-stream": "^4.1.2", + "@smithy/util-waiter": "^4.0.2", + "archiver": "^7.0.1", + "camelcase": "^6", + "cdk-assets": "^3.1.1", + "cdk-from-cfn": "^0.193.0", + "chalk": "^4", + "chokidar": "^3", + "decamelize": "^5", + "fs-extra": "^9", + "glob": "^11.0.1", + "json-diff": "^1.0.6", + "minimatch": "^10.0.1", + "p-limit": "^3", + "promptly": "^3.2.0", + "proxy-agent": "^6.5.0", + "semver": "^7.7.1", + "split2": "^4.2.0", + "strip-ansi": "^6", + "table": "^6", + "uuid": "^11.1.0", + "wrap-ansi": "^7", + "yaml": "^1", + "yargs": "^15" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@aws-cdk/cloud-assembly-schema": { + "version": "41.2.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-41.2.0.tgz", + "integrity": "sha512-JaulVS6z9y5+u4jNmoWbHZRs9uGOnmn/ktXygNWKNu1k6lF3ad4so3s18eRu15XCbUIomxN9WPYT6Ehh7hzONw==", + "bundleDependencies": [ + "jsonschema", + "semver" + ], + "dev": true, + "dependencies": { + "jsonschema": "~1.4.1", + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/cliui/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/glob": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", + "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/jackspeak": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", + "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/lru-cache": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", + "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", + "dev": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/uuid": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", + "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/esm/bin/uuid" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs-parser/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs-parser/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-cdk/toolkit-lib/node_modules/yargs/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@aws-crypto/crc32": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", + "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", + "dev": true, + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/crc32c": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz", + "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==", + "dev": true, + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha1-browser": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz", + "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==", + "dev": true, + "dependencies": { + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", + "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "dev": true, + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", + "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplify/-/client-amplify-3.775.0.tgz", + "integrity": "sha512-mjt/n/mH2t3U0u7DZHRg1ObwD3CftVojBd1NgU3j0hEbW06ltbEvnivZqulhil4sCDorb6QJAbOVwgHoTG5FSg==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplifyuibuilder/-/client-amplifyuibuilder-3.775.0.tgz", + "integrity": "sha512-8y2EOkoWskT28RD63bNBlaweyCKbVmjrjDxpMtn7B8jo+CxGQBeq4PiIc6cphb/mgnAi14xVhB5FAOH2iLnhyg==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-appsync/-/client-appsync-3.775.0.tgz", + "integrity": "sha512-pUkUG9kUh5VaX6lMalOMN/NpLDnhx1Zb1tcgTuVR/IAHtvSJ0kQyPRXpJPzWBORNVpaBj2hL/6zSr7kWIfgrxQ==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudcontrol/-/client-cloudcontrol-3.775.0.tgz", + "integrity": "sha512-sAQgslKLQL0VjPhU2FwlJVvsoqRPtqW6AabSYMsXJhwXu/1lz1P1y+T822Lu+B6+DnORB38CFEVJiD2y6ucQrg==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudcontrol/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudformation/-/client-cloudformation-3.775.0.tgz", + "integrity": "sha512-Vs3T8ooDh0zujfLFMBSSX/2unuwrjcwin0UKfZO4Eda5s1DT1Hhx4pGRDH5ob9gTAWtv76a4Rsdf7QddDjc75A==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudwatch-logs/-/client-cloudwatch-logs-3.775.0.tgz", + "integrity": "sha512-CuF+zEdMAi7xumBetPEl1yIPAReBDy4ucB8wtZ2F+o+HqxB9MM8FsifU/xh44Kdf6mxFFJulONFfAsUa7H5lhA==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/eventstream-serde-browser": "^4.0.2", + "@smithy/eventstream-serde-config-resolver": "^4.1.0", + "@smithy/eventstream-serde-node": "^4.0.2", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-codebuild/-/client-codebuild-3.775.0.tgz", + "integrity": "sha512-mviCaw2wbB4c0FN55QMH7Eo+1FT/74fNQoa66HzfRb/X4OnQmCrASKfumvD8StKZUMOX36XqQc5/vNyZZ9/nGA==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-codebuild/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.775.0.tgz", + "integrity": "sha512-AMGywI8C+kcSTWjftq9jgzkospF1A/QNd/h6zN+3uuS+3rZhkPIoPCpaQ0NSTYD49FTq8ALZzNKTqTEOnp+txA==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ec2/-/client-ec2-3.624.0.tgz", + "integrity": "sha512-n3IHWiNSP5Cj0ZbENJGtDeJPsx6EVNMeePh8Nqe9Ja5l5/Brkdyu4TV6t/taPXHJQDH7E6cq4/uMiiEPRNuf6Q==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/client-sts": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-sdk-ec2": "3.622.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sts": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", + "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "dev": true, + "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/client-bedrock-runtime": "^3.622.0", - "@aws-sdk/client-sso": "3.637.0", - "@aws-sdk/client-sso-oidc": "3.637.0", - "@aws-sdk/client-sts": "^3.624.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.635.0", - "@aws-sdk/credential-provider-ini": "3.637.0", - "@aws-sdk/credential-provider-node": "3.637.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.637.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", + "@aws-sdk/middleware-user-agent": "3.620.0", "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/token-providers": "3.614.0", "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-locate-window": "^3.0.0", + "@aws-sdk/util-endpoints": "3.614.0", "@aws-sdk/util-user-agent-browser": "3.609.0", "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/abort-controller": "^3.1.1", "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/eventstream-codec": "^3.1.2", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/eventstream-serde-universal": "^3.0.5", + "@smithy/core": "^2.3.2", "@smithy/fetch-http-handler": "^3.2.4", "@smithy/hash-node": "^3.0.3", "@smithy/invalid-dependency": "^3.0.3", - "@smithy/is-array-buffer": "^3.0.0", "@smithy/middleware-content-length": "^3.0.5", "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", + "@smithy/middleware-retry": "^3.0.14", "@smithy/middleware-serde": "^3.0.3", "@smithy/middleware-stack": "^3.0.3", "@smithy/node-config-provider": "^3.1.4", "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/querystring-parser": "^3.0.3", - "@smithy/service-error-classification": "^3.0.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "@smithy/url-parser": "^3.0.3", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-middleware": "^3.0.3", "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", - "@smithy/util-uri-escape": "^3.0.0", "@smithy/util-utf8": "^3.0.0", - "bowser": "^2.11.0", - "charenc": "^0.0.2", - "ci-info": "^3.2.0", - "crypt": "^0.0.2", - "fast-xml-parser": "4.4.1", - "fs-extra": "^8.1.0", - "graceful-fs": "^4.2.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "hjson": "^3.2.2", - "immer": "^9.0.12", - "is-buffer": "~1.1.6", - "is-ci": "^3.0.1", - "jsonfile": "^4.0.0", - "libphonenumber-js": "1.9.47", - "lodash": "^4.17.21", - "lodash.mergewith": "^4.6.2", - "md5": "^2.2.1", - "object-hash": "^3.0.0", - "pluralize": "8.0.0", - "semver": "^7.6.3", - "strnum": "^1.0.5", - "ts-dedent": "^2.0.0", - "tslib": "^2.6.2", - "universalify": "^0.1.0", - "uuid": "^9.0.1", - "zod": "^3.22.2" - }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/ai-constructs": { - "version": "0.1.4", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/plugin-types": "^1.0.1", - "@aws-sdk/client-bedrock-runtime": "^3.622.0", - "@smithy/types": "^3.3.0" - }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.0.0" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/backend-output-schemas": { - "version": "1.2.0", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "peerDependencies": { - "zod": "^3.22.2" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/backend-output-storage": { - "version": "1.1.1", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.2.0", - "@aws-amplify/platform-core": "^1.0.6" - }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/backend-output-storage/node_modules/@aws-amplify/platform-core": { - "version": "1.0.7", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/plugin-types": "^1.2.1", - "@aws-sdk/client-sts": "^3.624.0", - "is-ci": "^3.0.1", - "lodash.mergewith": "^4.6.2", - "semver": "^7.6.3", - "uuid": "^9.0.1", - "zod": "^3.22.2" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-auth-transformer": { - "version": "4.1.1", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "lodash": "^4.17.21", - "md5": "^2.3.0" + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-conversation-transformer": { - "version": "0.2.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/core": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", + "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/ai-constructs": "^0.1.4", - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "immer": "^9.0.12" + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-default-value-transformer": { - "version": "3.0.3", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "libphonenumber-js": "1.9.47" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-directives": { - "version": "2.2.0", - "dev": true, - "inBundle": true, - "license": "Apache-2.0" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-function-transformer": { - "version": "3.1.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-generation-transformer": { - "version": "0.2.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", + "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "immer": "^9.0.12" + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", + "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-http-transformer": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", + "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-index-transformer": { - "version": "3.0.3", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "engines": { + "node": ">=16.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-maps-to-transformer": { - "version": "4.0.3", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", + "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.624.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-model-transformer": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-predictions-transformer": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", + "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-sdk/client-sso": "3.624.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-relational-transformer": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "immer": "^9.0.12" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-searchable-transformer": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-sql-transformer": { - "version": "0.4.3", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1" + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer": { - "version": "2.1.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-auth-transformer": "4.1.1", - "@aws-amplify/graphql-conversation-transformer": "0.2.1", - "@aws-amplify/graphql-default-value-transformer": "3.0.3", - "@aws-amplify/graphql-function-transformer": "3.1.0", - "@aws-amplify/graphql-generation-transformer": "0.2.1", - "@aws-amplify/graphql-http-transformer": "3.0.3", - "@aws-amplify/graphql-index-transformer": "3.0.3", - "@aws-amplify/graphql-maps-to-transformer": "4.0.3", - "@aws-amplify/graphql-model-transformer": "3.0.3", - "@aws-amplify/graphql-predictions-transformer": "3.0.3", - "@aws-amplify/graphql-relational-transformer": "3.0.3", - "@aws-amplify/graphql-searchable-transformer": "3.0.3", - "@aws-amplify/graphql-sql-transformer": "0.4.3", - "@aws-amplify/graphql-transformer-core": "3.1.1", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0" + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-core": { - "version": "3.1.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "2.2.0", - "@aws-amplify/graphql-transformer-interfaces": "4.1.0", - "fs-extra": "^8.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "graphql-transformer-common": "5.0.1", - "hjson": "^3.2.2", - "lodash": "^4.17.21", - "md5": "^2.3.0", - "object-hash": "^3.0.0", - "ts-dedent": "^2.0.0" + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/graphql-transformer-interfaces": { - "version": "4.1.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", + "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0" + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.3.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/platform-core": { - "version": "1.1.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/plugin-types": "^1.2.1", - "@aws-sdk/client-sts": "^3.624.0", - "is-ci": "^3.0.1", - "lodash.mergewith": "^4.6.2", - "semver": "^7.6.3", - "uuid": "^9.0.1", - "zod": "^3.22.2" + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-amplify/plugin-types": { - "version": "1.2.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "peerDependencies": { - "@aws-sdk/types": "^3.609.0", - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.0.0" + "dependencies": { + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/crc32": { - "version": "5.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-endpoints": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", + "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "bowser": "^2.11.0", "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util": { - "version": "5.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-bedrock-runtime": { - "version": "3.642.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.637.0", - "@aws-sdk/client-sts": "3.637.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/credential-provider-node": "3.637.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sso": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/credential-provider-node": "3.637.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.637.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/client-sts": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.637.0", - "@aws-sdk/core": "3.635.0", - "@aws-sdk/credential-provider-node": "3.637.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.637.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/core": { - "version": "3.635.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.635.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.635.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.637.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.637.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.635.0", - "@aws-sdk/credential-provider-ini": "3.637.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.637.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" + "@smithy/types": "^3.7.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.637.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dev": true, + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.637.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">= 10.0.0" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", + "dev": true, + "dependencies": { + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/types": { - "version": "3.609.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-endpoints": { - "version": "3.637.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/abort-controller": { - "version": "3.1.1", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/config-resolver": { - "version": "3.0.5", + "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/core": { - "version": "2.4.0", + "node_modules/@aws-sdk/client-ecr": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ecr/-/client-ecr-3.775.0.tgz", + "integrity": "sha512-BeIzHyqmELB/CvHjJ8RkRLdNhsITrEbLDNKk8NaQ572gWNNeVaQv2jK+XSR7M9h/MPoeVXXptzFzH7V531uKgw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/credential-provider-imds": { - "version": "3.2.0", + "node_modules/@aws-sdk/client-ecr/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-codec": { - "version": "3.1.2", + "node_modules/@aws-sdk/client-ecr/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.6", + "node_modules/@aws-sdk/client-ecr/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.5", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-ecs": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ecs/-/client-ecs-3.775.0.tgz", + "integrity": "sha512-kimlOHmPdhnhN0L7dj0uRjFziOVd5cZV20BJOY2FuCYuhJOL1BuB3UoX6+F8Dzo+eDnIrERQ5OjF/++H9IJ89w==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.5", + "node_modules/@aws-sdk/client-ecs/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.5", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.5", + "node_modules/@aws-sdk/client-ecs/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^3.1.2", - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/fetch-http-handler": { - "version": "3.2.4", + "node_modules/@aws-sdk/client-ecs/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", - "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/hash-node": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-elastic-load-balancing-v2": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-v2/-/client-elastic-load-balancing-v2-3.775.0.tgz", + "integrity": "sha512-aqkKvJovXMswnI4Gb2yuIgQIXxGcUMexre7NmZZHClG4QE2gcHljLYI/dAIMyXbOofXgtFFefs/lf/O+sCX6pw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/invalid-dependency": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-elastic-load-balancing-v2/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/is-array-buffer": { - "version": "3.0.0", + "node_modules/@aws-sdk/client-elastic-load-balancing-v2/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-content-length": { - "version": "3.0.5", + "node_modules/@aws-sdk/client-elastic-load-balancing-v2/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-endpoint": { - "version": "3.1.0", + "node_modules/@aws-sdk/client-iam": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-iam/-/client-iam-3.624.0.tgz", + "integrity": "sha512-a3Qy7AIht2nHiZPJ/HiMdyiOLiDN+iKp1R916SEbgFi9MiOyRHFeLCCPQHMf1O8YXfb0hbHr5IFnfZLfUcJaWQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/client-sts": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", "@smithy/node-config-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-retry": { - "version": "3.0.15", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", "@smithy/protocol-http": "^4.1.0", - "@smithy/service-error-classification": "^3.0.3", - "@smithy/smithy-client": "^3.2.0", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", "@smithy/util-middleware": "^3.0.3", "@smithy/util-retry": "^3.0.3", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-serde": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sts": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", + "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.624.0", + "@aws-sdk/core": "3.624.0", + "@aws-sdk/credential-provider-node": "3.624.0", + "@aws-sdk/middleware-host-header": "3.620.0", + "@aws-sdk/middleware-logger": "3.609.0", + "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-user-agent": "3.620.0", + "@aws-sdk/region-config-resolver": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@aws-sdk/util-user-agent-browser": "3.609.0", + "@aws-sdk/util-user-agent-node": "3.614.0", + "@smithy/config-resolver": "^3.0.5", + "@smithy/core": "^2.3.2", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/hash-node": "^3.0.3", + "@smithy/invalid-dependency": "^3.0.3", + "@smithy/middleware-content-length": "^3.0.5", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/middleware-retry": "^3.0.14", + "@smithy/middleware-serde": "^3.0.3", + "@smithy/middleware-stack": "^3.0.3", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", + "@smithy/url-parser": "^3.0.3", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.14", + "@smithy/util-defaults-mode-node": "^3.0.14", + "@smithy/util-endpoints": "^2.0.5", + "@smithy/util-middleware": "^3.0.3", + "@smithy/util-retry": "^3.0.3", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/middleware-stack": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", + "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/core": "^2.3.2", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", + "@smithy/util-middleware": "^3.0.3", + "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/node-config-provider": { - "version": "3.1.4", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", + "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, @@ -4489,41 +11765,67 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/node-http-handler": { - "version": "3.1.4", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", + "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.1.1", + "@aws-sdk/types": "3.609.0", + "@smithy/fetch-http-handler": "^3.2.4", + "@smithy/node-http-handler": "^3.1.4", + "@smithy/property-provider": "^3.1.3", "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", + "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/property-provider": { - "version": "3.1.3", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", + "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/protocol-http": { - "version": "4.1.0", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", + "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/credential-provider-env": "3.620.1", + "@aws-sdk/credential-provider-http": "3.622.0", + "@aws-sdk/credential-provider-ini": "3.624.0", + "@aws-sdk/credential-provider-process": "3.620.1", + "@aws-sdk/credential-provider-sso": "3.624.0", + "@aws-sdk/credential-provider-web-identity": "3.621.0", + "@aws-sdk/types": "3.609.0", + "@smithy/credential-provider-imds": "^3.2.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, @@ -4531,26 +11833,33 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/querystring-builder": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.620.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", + "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", "@smithy/types": "^3.3.0", - "@smithy/util-uri-escape": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/querystring-parser": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.624.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", + "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/client-sso": "3.624.0", + "@aws-sdk/token-providers": "3.614.0", + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, @@ -4558,249 +11867,268 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/service-error-classification": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0" + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.4", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.621.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", + "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/signature-v4": { - "version": "4.1.0", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", + "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", + "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", "@smithy/types": "^3.3.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-uri-escape": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/smithy-client": { - "version": "3.2.0", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-logger": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", + "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/protocol-http": "^4.1.0", + "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/types": { - "version": "3.3.0", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", + "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/url-parser": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", + "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^3.0.3", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-endpoints": "3.614.0", + "@smithy/protocol-http": "^4.1.0", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-base64": { - "version": "3.0.0", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-body-length-browser": { - "version": "3.0.0", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-body-length-node": { - "version": "3.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", + "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/node-config-provider": "^3.1.4", + "@smithy/types": "^3.3.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-buffer-from": { - "version": "3.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-config-provider": { - "version": "3.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", + "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/types": "^3.3.0", + "@smithy/util-endpoints": "^2.0.5", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.15", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", + "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.2.0", + "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", "bowser": "^2.11.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">= 10.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.15", + "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", + "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^3.0.5", - "@smithy/credential-provider-imds": "^3.2.0", + "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/smithy-client": "^3.2.0", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { - "node": ">= 10.0.0" + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-endpoints": { - "version": "2.0.5", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-hex-encoding": { - "version": "3.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-middleware": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-retry": { - "version": "3.0.3", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^3.0.3", - "@smithy/types": "^3.3.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-stream": { - "version": "3.1.3", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, @@ -4808,564 +12136,648 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-uri-escape": { - "version": "3.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/@smithy/util-utf8": { + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/is-array-buffer": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/bowser": { - "version": "2.11.0", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/charenc": { - "version": "0.0.2", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dev": true, - "inBundle": true, - "license": "BSD-3-Clause", + "dependencies": { + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, "engines": { - "node": "*" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/ci-info": { - "version": "3.9.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "inBundle": true, - "license": "MIT", + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" + }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/crypt": { - "version": "0.0.2", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dev": true, - "inBundle": true, - "license": "BSD-3-Clause", + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, "engines": { - "node": "*" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/fast-xml-parser": { - "version": "4.4.1", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - } - ], - "inBundle": true, - "license": "MIT", "dependencies": { - "strnum": "^1.0.5" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "bin": { - "fxparser": "src/cli/cli.js" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/fs-extra": { - "version": "8.1.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=6 <7 || >=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/graceful-fs": { - "version": "4.2.11", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql": { - "version": "15.9.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, "engines": { - "node": ">= 10.x" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql-mapping-template": { - "version": "5.0.1", - "dev": true, - "inBundle": true, - "license": "Apache-2.0" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/graphql-transformer-common": { - "version": "5.0.1", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0", - "graphql-mapping-template": "5.0.1", - "md5": "^2.2.1", - "pluralize": "8.0.0" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/hjson": { - "version": "3.2.2", - "dev": true, - "inBundle": true, - "license": "MIT", - "bin": { - "hjson": "bin/hjson" - } - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/immer": { - "version": "9.0.21", - "dev": true, - "inBundle": true, - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/is-buffer": { - "version": "1.1.6", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/is-ci": { - "version": "3.0.1", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "ci-info": "^3.2.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "bin": { - "is-ci": "bin.js" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/jsonfile": { - "version": "4.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "inBundle": true, - "license": "MIT", - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/libphonenumber-js": { - "version": "1.9.47", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/lodash": { - "version": "4.17.21", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/lodash.mergewith": { - "version": "4.6.2", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/md5": { - "version": "2.3.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "inBundle": true, - "license": "BSD-3-Clause", "dependencies": { - "charenc": "0.0.2", - "crypt": "0.0.2", - "is-buffer": "~1.1.6" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/object-hash": { - "version": "3.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "@smithy/types": "^3.7.2" + }, "engines": { - "node": ">= 6" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/pluralize": { - "version": "8.0.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, "engines": { - "node": ">=4" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/semver": { - "version": "7.6.3", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "inBundle": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=10" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/strnum": { - "version": "1.0.5", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "inBundle": true, - "license": "MIT" + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/ts-dedent": { - "version": "2.2.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "tslib": "^2.6.2" + }, "engines": { - "node": ">=6.10" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/tslib": { - "version": "2.7.0", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "inBundle": true, - "license": "0BSD" + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/universalify": { - "version": "0.1.2", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 4.0.0" + "dependencies": { + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/uuid": { - "version": "9.0.1", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dev": true, - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "inBundle": true, - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-api-construct/node_modules/zod": { - "version": "3.23.8", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "inBundle": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-directives": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-directives/-/graphql-directives-1.1.0.tgz", - "integrity": "sha512-rcGfm8DsnD7Em1wYgNoq7yO+cE22mM0ssFYRWnHGsZOMX9Lh25HP1Ympt633V+raaTK3ND0gAlbVLxXzCN8XOg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, - "license": "Apache-2.0" + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/graphql-docs-generator": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-docs-generator/-/graphql-docs-generator-4.2.1.tgz", - "integrity": "sha512-ReBlY5//mWOmO0FL2ndswB9ku+vpg/JTY9Wwemjm/ibyoLHU1ojtGkPBkKH0CzbpOkIuEkIBLIg9EZ2yca/6oA==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0", - "handlebars": "4.7.7", - "yargs": "^15.1.0" - }, - "bin": { - "graphql-docs-generator": "bin/cli" + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=10.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dev": true, - "license": "ISC", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "license": "MIT" + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "tslib": "^2.6.2" }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "ISC" + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dev": true, - "license": "MIT", "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-docs-generator/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "ISC", "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=6" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-generator": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-generator/-/graphql-generator-0.4.5.tgz", - "integrity": "sha512-yxAxb9KJjUEtgW32nBy2ZzR4bFVe1Em8oR+w63WSnoEmpsW3D0SAa7H2oDocaePPZCVVYC6AsqH5Ne6Q3i608Q==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/appsync-modelgen-plugin": "2.13.0", - "@aws-amplify/graphql-directives": "^1.0.1", - "@aws-amplify/graphql-docs-generator": "4.2.1", - "@aws-amplify/graphql-types-generator": "3.6.0", - "@graphql-codegen/core": "^2.6.6", - "@graphql-tools/apollo-engine-loader": "^8.0.0", - "graphql": "^15.5.0", - "prettier": "^1.19.1" + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core": { - "version": "2.6.8", - "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-2.6.8.tgz", - "integrity": "sha512-JKllNIipPrheRgl+/Hm/xuWMw9++xNQ12XJR/OHHgFopOg4zmN3TdlRSyYcv/K90hCFkkIwhlHFUQTfKrm8rxQ==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-codegen/plugin-helpers": "^3.1.1", - "@graphql-tools/schema": "^9.0.0", - "@graphql-tools/utils": "^9.1.1", - "tslib": "~2.4.0" + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core/node_modules/@graphql-codegen/plugin-helpers": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", - "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", + "node_modules/@aws-sdk/client-iam/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/utils": "^9.0.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-kms": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-kms/-/client-kms-3.775.0.tgz", + "integrity": "sha512-z4bEyz++u1V2EnMG5w9hDpQP4Ogfz/rNKP72kg6P2Z/nxAS3lSfv/cfnGCN2n82/NgT0d0jgPCTmU+YV9XszBQ==", + "dev": true, + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema": { - "version": "9.0.19", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.19.tgz", - "integrity": "sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==", + "node_modules/@aws-sdk/client-kms/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/merge": "^8.4.1", - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0", - "value-or-promise": "^1.0.12" + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema/node_modules/@graphql-tools/merge": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.4.2.tgz", - "integrity": "sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==", + "node_modules/@aws-sdk/client-kms/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/utils": "^9.2.1", - "tslib": "^2.4.0" + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", - "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", + "node_modules/@aws-sdk/client-kms/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", + "node_modules/@aws-sdk/client-lambda": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.775.0.tgz", + "integrity": "sha512-4zy7+R06UOSM8SZ+yaZx1zV5L1Fcrt8knW5zGhh9GlgFzOLbRe6h7dNnhSIpseDNZcmfEpnKVc+i1UDT4cG02g==", "dev": true, - "license": "MIT", "dependencies": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/eventstream-serde-browser": "^4.0.2", + "@smithy/eventstream-serde-config-resolver": "^4.1.0", + "@smithy/eventstream-serde-node": "^4.0.2", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin-prettier.js" + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=4" + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-generator/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "0BSD" + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } }, - "node_modules/@aws-amplify/graphql-schema-generator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-schema-generator/-/graphql-schema-generator-0.9.4.tgz", - "integrity": "sha512-GXoPOes5Sj93p7RWunJlMdxPQyoh+dBaJq3qpQUOSYQU1UxUqAstnD+gqAWEG58opiupHby7jTIi1ljK1e9CrQ==", + "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-transformer-core": "2.9.3", - "@aws-amplify/graphql-transformer-interfaces": "3.10.1", - "@aws-sdk/client-ec2": "3.624.0", - "@aws-sdk/client-iam": "3.624.0", - "@aws-sdk/client-lambda": "3.624.0", - "@aws-sdk/client-rds": "3.624.0", - "csv-parse": "^5.5.2", - "fs-extra": "11.1.1", - "graphql": "^15.5.0", - "graphql-transformer-common": "4.31.1", - "knex": "~2.4.0", - "mysql2": "~3.9.7", - "ora": "^4.0.3", - "pg": "~8.11.3", - "pluralize": "^8.0.0", - "typescript": "^4.8.4" + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-lambda": { + "node_modules/@aws-sdk/client-rds": { "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.624.0.tgz", - "integrity": "sha512-bfhFeg6LoC6AFM68+Gyogq9UpyW83Jwkwobo9CtxSTfaNIOYdKgTOdYtn4pM/bRYrWon4CstJQymIsPbY7ra5Q==", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-rds/-/client-rds-3.624.0.tgz", + "integrity": "sha512-WZytF5YaDqEaJ/+2xm//ux+ER3pDwHU4ub4xXgMs46vG8WVLEDzILXp+Nn78w7W2sMwaQO12RYMvqgIB+/wF2A==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -5376,6 +12788,7 @@ "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", + "@aws-sdk/middleware-sdk-rds": "3.620.0", "@aws-sdk/middleware-user-agent": "3.620.0", "@aws-sdk/region-config-resolver": "3.614.0", "@aws-sdk/types": "3.609.0", @@ -5384,9 +12797,6 @@ "@aws-sdk/util-user-agent-node": "3.614.0", "@smithy/config-resolver": "^3.0.5", "@smithy/core": "^2.3.2", - "@smithy/eventstream-serde-browser": "^3.0.5", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.4", "@smithy/fetch-http-handler": "^3.2.4", "@smithy/hash-node": "^3.0.3", "@smithy/invalid-dependency": "^3.0.3", @@ -5409,7 +12819,6 @@ "@smithy/util-endpoints": "^2.0.5", "@smithy/util-middleware": "^3.0.3", "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.2", "tslib": "^2.6.2" @@ -5418,67 +12827,15 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-sso": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sso": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", - "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", - "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", @@ -5517,17 +12874,13 @@ }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/client-sts": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sts": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -5574,12 +12927,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/core": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/core": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/core": "^2.3.2", "@smithy/node-config-provider": "^3.1.4", @@ -5595,12 +12947,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-env": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-env": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -5611,12 +12962,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-http": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-http": { "version": "3.622.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/fetch-http-handler": "^3.2.4", @@ -5632,12 +12982,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-ini": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-ini": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -5658,12 +13007,11 @@ "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-node": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-node": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -5682,12 +13030,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-process": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-process": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -5699,12 +13046,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-sso": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-sso": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-sso": "3.624.0", "@aws-sdk/token-providers": "3.614.0", @@ -5718,12 +13064,30 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/credential-provider-web-identity": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": { + "version": "3.614.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", + "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.609.0", + "@smithy/property-provider": "^3.1.3", + "@smithy/shared-ini-file-loader": "^3.1.4", + "@smithy/types": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.614.0" + } + }, + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-web-identity": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -5737,12 +13101,11 @@ "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-host-header": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-host-header": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -5753,12 +13116,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-logger": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-logger": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -5768,12 +13130,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-recursion-detection": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-recursion-detection": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -5784,12 +13145,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/middleware-user-agent": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-user-agent": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@aws-sdk/util-endpoints": "3.614.0", @@ -5801,12 +13161,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/region-config-resolver": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/region-config-resolver": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -5815,36 +13174,15 @@ "@smithy/util-middleware": "^3.0.3", "tslib": "^2.6.2" }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/types": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/types": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -5853,12 +13191,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/util-endpoints": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-endpoints": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -5869,12 +13206,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/util-user-agent-browser": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-browser": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -5882,12 +13218,11 @@ "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@aws-sdk/util-user-agent-node": { + "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-node": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -5906,1251 +13241,1087 @@ } } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=14.14" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", "dev": true, - "license": "MIT", "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "tslib": "^2.6.2" }, "engines": { - "node": ">=4.2.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-schema-generator/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-transformer-core": { - "version": "2.9.3", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-core/-/graphql-transformer-core-2.9.3.tgz", - "integrity": "sha512-gz9PbNTqsyQQn6W5d4HPN/pafvFH7spwd6R/hImisEBFD+80liJc/21nBC8UgUMPu2eXVZrsiWBfWnO8Rbqomg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-directives": "1.1.0", - "@aws-amplify/graphql-transformer-interfaces": "3.10.1", - "fs-extra": "^8.1.0", - "graphql": "^15.5.0", - "graphql-mapping-template": "4.20.16", - "graphql-transformer-common": "4.31.1", - "hjson": "^3.2.2", - "lodash": "^4.17.21", - "md5": "^2.3.0", - "object-hash": "^3.0.0", - "ts-dedent": "^2.0.0" + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk-lib": "^2.129.0", - "constructs": "^10.3.0" - } - }, - "node_modules/@aws-amplify/graphql-transformer-core/node_modules/ts-dedent": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz", - "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==", - "dev": true, - "license": "MIT", "engines": { - "node": ">=6.10" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-transformer-interfaces": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-transformer-interfaces/-/graphql-transformer-interfaces-3.10.1.tgz", - "integrity": "sha512-daf+cpOSw3lKiS+Tpc5Oo5H+FCkHi/8z+0mAR/greQGPJWzcHv9j2u1Jiy36UvI01ypOhHme58pAs/fKWLWDBQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "graphql": "^15.5.0" - }, - "peerDependencies": { - "aws-cdk-lib": "^2.129.0", - "constructs": "^10.3.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" } }, - "node_modules/@aws-amplify/graphql-types-generator": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/graphql-types-generator/-/graphql-types-generator-3.6.0.tgz", - "integrity": "sha512-yjPXJ2dYZwtGvwwcEQ5RDNlwTsd/hUfD2Dgguo999Gu3mQjz7nV4l7CXD/Oxo/QzwtU/4rmTX69yadBpR+he3A==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "(MIT OR Apache-2.0)", "dependencies": { - "@babel/generator": "7.0.0-beta.4", - "@babel/types": "7.0.0-beta.4", - "babel-generator": "^6.26.1", - "babel-types": "^6.26.0", - "change-case": "^4.1.1", - "common-tags": "^1.8.0", - "core-js": "^3.6.4", - "fs-extra": "^8.1.0", - "globby": "^11.1.0", - "graphql": "^15.5.0", - "inflected": "^2.0.4", - "prettier": "^1.19.1", - "rimraf": "^3.0.0", - "source-map-support": "^0.5.16", - "yargs": "^15.1.0" - }, - "bin": { - "graphql-types-generator": "lib/cli.js" + "tslib": "^2.6.2" }, "engines": { - "node": ">=10.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", "dev": true, - "license": "ISC", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin-prettier.js" + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=4" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "MIT", "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", "dev": true, - "license": "MIT", "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { - "node": ">=8" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/graphql-types-generator/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "ISC", "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { - "node": ">=6" + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/model-generator": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@aws-amplify/model-generator/-/model-generator-1.0.6.tgz", - "integrity": "sha512-rFKjvEL+k48e0F8iAVvblAFv4GKkg/xNgat34mH4B06V47ekgP4pLEOUkSA1jPMIEpABxP07ayCiLbdqoYglzg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/backend-output-schemas": "^1.1.0", - "@aws-amplify/deployed-backend-client": "^1.3.0", - "@aws-amplify/graphql-generator": "^0.4.0", - "@aws-amplify/graphql-types-generator": "^3.6.0", - "@aws-amplify/platform-core": "^1.0.5", - "@aws-sdk/client-appsync": "^3.624.0", - "@aws-sdk/client-s3": "^3.624.0", - "@aws-sdk/credential-providers": "^3.624.0", - "@aws-sdk/types": "^3.609.0", - "graphql": "^15.8.0" + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-amplify": "^3.624.0", - "@aws-sdk/client-cloudformation": "^3.624.0" - } - }, - "node_modules/@aws-amplify/platform-core": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@aws-amplify/platform-core/-/platform-core-1.1.0.tgz", - "integrity": "sha512-9iOM+dpht1f52WUHPyaXyeF8Z27TNgqBS86JmIhcsqWltUsCqoQDKPVjaTj8No05oMzm+icWc96dPG/EZIE3jw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/plugin-types": "^1.2.1", - "@aws-sdk/client-sts": "^3.624.0", - "is-ci": "^3.0.1", - "lodash.mergewith": "^4.6.2", - "semver": "^7.6.3", - "uuid": "^9.0.1", - "zod": "^3.22.2" - } - }, - "node_modules/@aws-amplify/plugin-types": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/plugin-types/-/plugin-types-1.2.1.tgz", - "integrity": "sha512-rqsc9F05hO58oVCcdvbkE3zUaS4iKdhm4C3eReWd6NNLfBmfQuoy46CeyHw2GrbKtdxmCckAOU0k6L71sa8nNA==", - "dev": true, - "license": "Apache-2.0", - "peerDependencies": { - "@aws-sdk/types": "^3.609.0", - "aws-cdk-lib": "^2.152.0", - "constructs": "^10.0.0" + "engines": { + "node": ">=16.0.0" } - }, - "node_modules/@aws-amplify/sandbox": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@aws-amplify/sandbox/-/sandbox-1.2.1.tgz", - "integrity": "sha512-ff8AP4MUM7SDkROvlj9RNgNicuaJ1n69R6FuJRhShTOBdLmZpPe30dj6S43tWIgcXN0yXe1AzMYGPzF5h6MYHA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-amplify/backend-deployer": "^1.1.0", - "@aws-amplify/backend-secret": "^1.1.1", - "@aws-amplify/cli-core": "^1.1.2", - "@aws-amplify/client-config": "^1.1.3", - "@aws-amplify/deployed-backend-client": "^1.3.0", - "@aws-amplify/platform-core": "^1.0.6", - "@aws-sdk/client-cloudformation": "^3.624.0", - "@aws-sdk/client-cloudwatch-logs": "^3.624.0", - "@aws-sdk/client-lambda": "^3.624.0", - "@aws-sdk/client-ssm": "^3.624.0", - "@aws-sdk/credential-providers": "^3.624.0", - "@aws-sdk/types": "^3.609.0", - "@aws-sdk/util-arn-parser": "^3.568.0", - "@parcel/watcher": "^2.4.1", - "debounce-promise": "^3.1.2", - "glob": "^10.2.7", - "open": "^9.1.0", - "parse-gitignore": "^2.0.0" + }, + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, - "peerDependencies": { - "aws-cdk": "^2.152.0" + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-amplify/schema-generator": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@aws-amplify/schema-generator/-/schema-generator-1.2.2.tgz", - "integrity": "sha512-8Qr/e+o8CdlfD2ZxjOFFkc9+DzblvCUJBsKhYtvhDGEAazujjbG0JsV456vPsqmRpJ6vMb97Xn8nJsp9GNK42g==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-amplify/graphql-schema-generator": "^0.9.4", - "@aws-amplify/platform-core": "^1.0.5" + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-cdk/asset-awscli-v1": { - "version": "2.2.202", - "resolved": "https://registry.npmjs.org/@aws-cdk/asset-awscli-v1/-/asset-awscli-v1-2.2.202.tgz", - "integrity": "sha512-JqlF0D4+EVugnG5dAsNZMqhu3HW7ehOXm5SDMxMbXNDMdsF0pxtQKNHRl52z1U9igsHmaFpUgSGjbhAJ+0JONg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", - "peer": true + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-cdk/asset-kubectl-v20": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@aws-cdk/asset-kubectl-v20/-/asset-kubectl-v20-2.1.2.tgz", - "integrity": "sha512-3M2tELJOxQv0apCIiuKQ4pAbncz9GuLwnKFqxifWfe77wuMxyTRPmxssYHs42ePqzap1LT6GDcPygGs+hHstLg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", - "peer": true + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-cdk/asset-node-proxy-agent-v6": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/asset-node-proxy-agent-v6/-/asset-node-proxy-agent-v6-2.1.0.tgz", - "integrity": "sha512-7bY3J8GCVxLupn/kNmpPc5VJz8grx+4RKfnnJiO1LG+uxkZfANZG3RMHhE+qQxxwkyQ9/MfPtTpf748UhR425A==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", - "peer": true + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@aws-cdk/cloud-assembly-schema": { - "version": "36.0.25", - "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-36.0.25.tgz", - "integrity": "sha512-AK86v4IMV4zcWfp392e3wlaVJPT72/dk39Lo2SDDFxQR+sikMOyY2IGrULyhK1TwQmPiyxM7QB/0MkTbMDAPrw==", - "bundleDependencies": [ - "jsonschema", - "semver" - ], + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", "dev": true, - "license": "Apache-2.0", - "peer": true, "dependencies": { - "jsonschema": "^1.4.1", - "semver": "^7.6.3" + "@smithy/types": "^3.7.2" }, "engines": { - "node": ">= 18.18.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { - "version": "1.4.1", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "inBundle": true, - "license": "MIT", - "peer": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, "engines": { - "node": "*" + "node": ">=16.0.0" } }, - "node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { - "version": "7.6.3", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "inBundle": true, - "license": "ISC", - "peer": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=10" + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/crc32": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", - "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/crc32c": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz", - "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/sha1-browser": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz", - "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" } }, - "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/sha256-browser": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", - "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-js": "^5.2.0", - "@aws-crypto/supports-web-crypto": "^5.2.0", - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@smithy/util-utf8": "^2.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", "dev": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/sha256-js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", - "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/util": "^5.2.0", - "@aws-sdk/types": "^3.222.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/supports-web-crypto": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", - "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/util": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", - "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@smithy/util-utf8": "^2.0.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", - "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", - "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^2.2.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=14.0.0" } }, - "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", - "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^2.2.0", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplify": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplify/-/client-amplify-3.651.1.tgz", - "integrity": "sha512-bJ7h9r+ZRHu1RqhkWFk7BiPKID18699fi6/PbeC7ubEko5uBNd15E7HVsDA7ApyRH1AnoW3wVX4A4dpX80PLEA==", + "node_modules/@aws-sdk/client-rds/node_modules/@smithy/util-waiter": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.2.0.tgz", + "integrity": "sha512-PpjSboaDUE6yl+1qlg3Si57++e84oXdWGbuFUSAciXsVfEZJJJupR2Nb0QuXHiunt2vGR+1PTizOMvnUPaG2Qg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-route-53": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-route-53/-/client-route-53-3.775.0.tgz", + "integrity": "sha512-Fv7MlaK4Gv2rKR6j06CjBZ0k1GXTeFIwAyv1lsxPyqu9d//nd2Fh1u9IWUro9vQsyplWgyuQziuH0E4ORtWnJA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-sdk-route53": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@aws-sdk/xml-builder": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-amplify/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-route-53/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-amplifyuibuilder/-/client-amplifyuibuilder-3.651.1.tgz", - "integrity": "sha512-zhtxcDZstpv2Sn8B749Gfllf49/iVZfpvkA5kd3hR913Z7sT6Nn11q+VNzrUxPAz/SFznBBVaFZAp3RECzgbXA==", + "node_modules/@aws-sdk/client-route-53/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-route-53/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-amplifyuibuilder/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-s3": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.775.0.tgz", + "integrity": "sha512-Z/BeVmYc3nj4FNE46MtvBYeCVvBZwlujMEvr5UOChP14899QWkBfOvf74RwQY9qy5/DvhVFkHlA8en1L6+0NrA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@aws-crypto/sha1-browser": "5.2.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-bucket-endpoint": "3.775.0", + "@aws-sdk/middleware-expect-continue": "3.775.0", + "@aws-sdk/middleware-flexible-checksums": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-location-constraint": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-sdk-s3": "3.775.0", + "@aws-sdk/middleware-ssec": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/signature-v4-multi-region": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@aws-sdk/xml-builder": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/eventstream-serde-browser": "^4.0.2", + "@smithy/eventstream-serde-config-resolver": "^4.1.0", + "@smithy/eventstream-serde-node": "^4.0.2", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-blob-browser": "^4.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/hash-stream-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/md5-js": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-appsync": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-appsync/-/client-appsync-3.651.1.tgz", - "integrity": "sha512-9SRxpEo0U/usguZROWwtWtZThKtrVOJByNGfxjOJnDbDknydyNyD+Ti8XpOErvX4nihzPy5YkTZ0Z1VB6UbqNA==", + "node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-stream": "^3.1.4", - "@smithy/util-utf8": "^3.0.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-s3/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-appsync/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-s3/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudformation/-/client-cloudformation-3.651.1.tgz", - "integrity": "sha512-lUwJD5lHjmOaxSSM21Wl/qtTdY6bDiKPEu42mQZbg52O5NZ0Y+UvlWI48fZq/EwFLvGtg0ohN28LTo6jbNjwPg==", + "node_modules/@aws-sdk/client-secrets-manager": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-secrets-manager/-/client-secrets-manager-3.775.0.tgz", + "integrity": "sha512-/ne/Mz+rKJvGkYbyy5ouQhNq/yPERz5hMfwKVJM1mAPtmDbExel2Y8IZNQ5j18Q64RMkWo6Rzj4ET2mhA5UKPw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.3", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-secrets-manager/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-secrets-manager/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cloudwatch-logs/-/client-cloudwatch-logs-3.651.1.tgz", - "integrity": "sha512-vAtPdYl23ynej2+OZtzZ6lNphvI2lzM4zw2F/muUZLQOuxqppgW8aCnoDmfnBsQeErQ1Mlj2Ob8gWeLEHKGAQQ==", + "node_modules/@aws-sdk/client-secrets-manager/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-sfn": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sfn/-/client-sfn-3.775.0.tgz", + "integrity": "sha512-NOgs44Sq2To3crVWvfbWyoZHZneslsCmD7UIZBdFhF4e0YuYJe7X6RQ11fhSREagrUo8RygwU6HOAteOll9AeQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/eventstream-serde-browser": "^3.0.7", - "@smithy/eventstream-serde-config-resolver": "^3.0.4", - "@smithy/eventstream-serde-node": "^3.0.6", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-sfn/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cloudwatch-logs/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-sfn/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.651.1.tgz", - "integrity": "sha512-FFTWI8uHXzsorQcAtPcvuXkH29sqFXVZa86UUvIrcd6kudakkUBeYDID2KYQm0FP/9uVH4xBBELHRC8PjEGmLw==", + "node_modules/@aws-sdk/client-sfn/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/client-ssm": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.775.0.tgz", + "integrity": "sha512-F2bLhFFAU4Ls7YKFBSyNNKFeSIPwBO02eVYjgLFxrgaY9Kk6Tlx6DnwOE+Z2m3Q2tqavy8AQpRzyO+PI8cay2A==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", + "@smithy/util-waiter": "^4.0.3", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ec2/-/client-ec2-3.624.0.tgz", - "integrity": "sha512-n3IHWiNSP5Cj0ZbENJGtDeJPsx6EVNMeePh8Nqe9Ja5l5/Brkdyu4TV6t/taPXHJQDH7E6cq4/uMiiEPRNuf6Q==", + "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/client-sts": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-sdk-ec2": "3.622.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", - "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "node_modules/@aws-sdk/client-sso": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.775.0.tgz", + "integrity": "sha512-vqG1S2ap77WP4D5qt4bEPE0duQ4myN+cDr1NeP8QpSTajetbkDGVo7h1VViYMcUoFUVWBj6Qf1X1VfOq+uaxbA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sso-oidc": { + "node_modules/@aws-sdk/client-sso-oidc": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", @@ -7199,18 +14370,15 @@ "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/client-sts": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/client-sso": { "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", - "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", + "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", "@aws-sdk/middleware-host-header": "3.620.0", "@aws-sdk/middleware-logger": "3.609.0", "@aws-sdk/middleware-recursion-detection": "3.620.0", @@ -7251,12 +14419,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/core": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/core": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/core": "^2.3.2", "@smithy/node-config-provider": "^3.1.4", @@ -7272,12 +14439,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-env": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-env": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -7288,12 +14454,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-http": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-http": { "version": "3.622.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/fetch-http-handler": "^3.2.4", @@ -7309,12 +14474,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-ini": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-ini": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -7335,12 +14499,11 @@ "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-node": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-node": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-provider-env": "3.620.1", "@aws-sdk/credential-provider-http": "3.622.0", @@ -7359,12 +14522,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-process": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-process": { "version": "3.620.1", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -7376,12 +14538,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-sso": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-sso": { "version": "3.624.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/client-sso": "3.624.0", "@aws-sdk/token-providers": "3.614.0", @@ -7395,12 +14556,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/credential-provider-web-identity": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/credential-provider-web-identity": { "version": "3.621.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -7414,12 +14574,11 @@ "@aws-sdk/client-sts": "^3.621.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-host-header": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-host-header": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -7430,12 +14589,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-logger": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-logger": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -7445,12 +14603,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-recursion-detection": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-recursion-detection": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/protocol-http": "^4.1.0", @@ -7461,12 +14618,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/middleware-user-agent": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/middleware-user-agent": { "version": "3.620.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@aws-sdk/util-endpoints": "3.614.0", @@ -7478,12 +14634,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/region-config-resolver": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/region-config-resolver": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -7496,12 +14651,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/token-providers": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/token-providers": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/property-provider": "^3.1.3", @@ -7516,12 +14670,11 @@ "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/types": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/types": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -7530,12 +14683,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-endpoints": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/util-endpoints": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -7546,12 +14698,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-browser": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/util-user-agent-browser": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/types": "^3.3.0", @@ -7559,12 +14710,11 @@ "tslib": "^2.6.2" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@aws-sdk/util-user-agent-node": { + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@aws-sdk/util-user-agent-node": { "version": "3.614.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/node-config-provider": "^3.1.4", @@ -7583,1178 +14733,1211 @@ } } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ec2/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/config-resolver": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.13.tgz", + "integrity": "sha512-Gr/qwzyPaTL1tZcq8WQyHhTZREER5R1Wytmz4WnVGL4onA3dNk6Btll55c8Vr58pLdvWZmtG8oZxJTw3t3q7Jg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-iam/-/client-iam-3.624.0.tgz", - "integrity": "sha512-a3Qy7AIht2nHiZPJ/HiMdyiOLiDN+iKp1R916SEbgFi9MiOyRHFeLCCPQHMf1O8YXfb0hbHr5IFnfZLfUcJaWQ==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/client-sts": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", - "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/credential-provider-imds": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.8.tgz", + "integrity": "sha512-ZCY2yD0BY+K9iMXkkbnjo+08T2h8/34oHd0Jmh6BZUSZwaaGlGCyBT/3wnS7u7Xl33/EEfN4B6nQr3Gx5bYxgw==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/fetch-http-handler": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.9.tgz", + "integrity": "sha512-hYNVQOqhFQ6vOpenifFME546f0GfJn2OiQ3M0FDmuUu8V/Uiwy2wej7ZXxFBNqdx0R5DZAqWM1l6VRhGz8oE6A==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.4", + "@smithy/querystring-builder": "^3.0.7", + "@smithy/types": "^3.5.0", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/hash-node": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.11.tgz", + "integrity": "sha512-emP23rwYyZhQBvklqTtwetkQlqbNYirDiEEwXl2v0GYWMnCzxst7ZaRAnWuy28njp5kAH54lvkdG37MblZzaHA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/invalid-dependency": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.11.tgz", + "integrity": "sha512-NuQmVPEJjUX6c+UELyVz8kUx8Q539EDeNwbRyu4IIF8MeV7hUtq1FB3SHVyki2u++5XLMFqngeMKk7ccspnNyQ==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-content-length": { + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.13.tgz", + "integrity": "sha512-zfMhzojhFpIX3P5ug7jxTjfUcIPcGjcQYzB9t+rv0g1TX7B0QdwONW+ATouaLoD7h7LOw/ZlXfkq4xJ/g2TrIw==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-retry": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.34.tgz", + "integrity": "sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^3.1.12", + "@smithy/protocol-http": "^4.1.8", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-retry": "^3.0.11", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", + "dev": true, + "dependencies": { + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/service-error-classification": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.11.tgz", + "integrity": "sha512-QnYDPkyewrJzCyaeI2Rmp7pDwbUETe+hU8ADkXmgNusO1bgHBH7ovXJiYmba8t0fNfJx75fE8dlM6SEmZxheog==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", + "dev": true, + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", + "dev": true, + "dependencies": { + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", + "dev": true, + "dependencies": { + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", - "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.34.tgz", + "integrity": "sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", + "bowser": "^2.11.0", + "tslib": "^2.6.2" }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" + "engines": { + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/client-sts": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", - "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.34", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.34.tgz", + "integrity": "sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/config-resolver": "^3.0.13", + "@smithy/credential-provider-imds": "^3.2.8", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/property-provider": "^3.1.11", + "@smithy/smithy-client": "^3.7.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">= 10.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/core": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", - "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-endpoints": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.7.tgz", + "integrity": "sha512-tSfcqKcN/Oo2STEYCABVuKgJ76nyyr6skGl9t15hs+YaiU06sgMkN7QYjo0BbVw+KT26zok3IzbdSOksQ4YzVw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.3.2", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", - "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.622.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", - "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", - "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-retry": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.11.tgz", + "integrity": "sha512-hJUC6W7A3DQgaee3Hp9ZFcOxVDZzmBIRBPlUAk8/fSOEl7pE/aX7Dci0JycNOnm9Mfr0KV2XjIlUOcGWXQUdVQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/service-error-classification": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", - "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-ini": "3.624.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", - "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-stream/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", + "dev": true, + "dependencies": { + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", - "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", + "node_modules/@aws-sdk/client-sso/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.624.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", - "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", + "node_modules/@aws-sdk/client-sso/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", - "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", + "node_modules/@aws-sdk/client-sso/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", - "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", + "node_modules/@aws-sdk/client-sts": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.775.0.tgz", + "integrity": "sha512-6p1dZ7bvwJfWQ/UJM+JD1iv0HDsEN6AbBZWtwRq402Pdm/5cQEYKf7ERLKGGY84YpEpXqiFgiLBrKXjClqjnQg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", - "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", + "node_modules/@aws-sdk/client-sts/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", - "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", + "node_modules/@aws-sdk/client-sts/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", - "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", + "node_modules/@aws-sdk/client-sts/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "node_modules/@aws-sdk/core": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.775.0.tgz", + "integrity": "sha512-8vpW4WihVfz0DX+7WnnLGm3GuQER++b0IwQG35JlQMlgqnc44M//KbJPsIHA0aJUJVwJAEShgfr5dUbY8WUzaA==", + "dev": true, + "dependencies": { + "@aws-sdk/types": "3.775.0", + "@smithy/core": "^3.2.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/signature-v4": "^5.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-middleware": "^4.0.2", + "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "node_modules/@aws-sdk/core/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-endpoints": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", - "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", + "node_modules/@aws-sdk/core/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", - "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.775.0.tgz", + "integrity": "sha512-fcyZzoCFp2u4NWXW8INA81kEEsWC7ZFzy5m/6t2RF1Gjt+1n2AlFQVqF73LeyEcaN+biNKq87kh94Btk0QdfHA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", + "@aws-sdk/client-cognito-identity": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", - "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.775.0.tgz", + "integrity": "sha512-6ESVxwCbGm7WZ17kY1fjmxQud43vzJFoLd4bmlR+idQSWdqlzGDYdcfzpjDKTcivdtNrVYmFvcH1JBUwCRAZhw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.775.0.tgz", + "integrity": "sha512-PjDQeDH/J1S0yWV32wCj2k5liRo0ssXMseCBEkCsD3SqsU8o5cU82b0hMX4sAib/RkglCSZqGO0xMiN0/7ndww==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/property-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-stream": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-iam/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.775.0.tgz", + "integrity": "sha512-0gJc6cALsgrjeC5U3qDjbz4myIC/j49+gPz9nkvY+C0OYWt1KH1tyfiZUuCRGfuFHhQ+3KMMDSL229TkBP3E7g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-env": "3.775.0", + "@aws-sdk/credential-provider-http": "3.775.0", + "@aws-sdk/credential-provider-process": "3.775.0", + "@aws-sdk/credential-provider-sso": "3.775.0", + "@aws-sdk/credential-provider-web-identity": "3.775.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-lambda": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-lambda/-/client-lambda-3.651.1.tgz", - "integrity": "sha512-/8+j1m5+hJ1fUZLWr+bC/R1/ScGIasR1Kj0jCwJUXZL+ZjKaggiy7sVmVC7DZdaD/hKCdts8SpUeXZejPjSiFg==", + "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/eventstream-serde-browser": "^3.0.7", - "@smithy/eventstream-serde-config-resolver": "^3.0.4", - "@smithy/eventstream-serde-node": "^3.0.6", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-stream": "^3.1.4", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.3", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.775.0.tgz", + "integrity": "sha512-D8Zre5W2sXC/ANPqCWPqwYpU1cKY9DF6ckFZyDrqlcBC0gANgpY6fLrBtYo2fwJsbj+1A24iIpBINV7erdprgA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@aws-sdk/credential-provider-env": "3.775.0", + "@aws-sdk/credential-provider-http": "3.775.0", + "@aws-sdk/credential-provider-ini": "3.775.0", + "@aws-sdk/credential-provider-process": "3.775.0", + "@aws-sdk/credential-provider-sso": "3.775.0", + "@aws-sdk/credential-provider-web-identity": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-lambda/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-rds/-/client-rds-3.624.0.tgz", - "integrity": "sha512-WZytF5YaDqEaJ/+2xm//ux+ER3pDwHU4ub4xXgMs46vG8WVLEDzILXp+Nn78w7W2sMwaQO12RYMvqgIB+/wF2A==", + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.775.0.tgz", + "integrity": "sha512-A6k68H9rQp+2+7P7SGO90Csw6nrUEm0Qfjpn9Etc4EboZhhCLs9b66umUsTsSBHus4FDIe5JQxfCUyt1wgNogg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/client-sts": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-sdk-rds": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-process/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.624.0.tgz", - "integrity": "sha512-EX6EF+rJzMPC5dcdsu40xSi2To7GSvdGQNIpe97pD9WvZwM9tRNQnNM4T6HA4gjV1L6Jwk8rBlG/CnveXtLEMw==", + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.775.0.tgz", + "integrity": "sha512-du06V7u9HDmRuwZnRjf85shO3dffeKOkQplV5/2vf3LgTPNEI9caNomi/cCGyxKGOeSUHAKrQ1HvpPfOaI6t5Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/client-sso": "3.775.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/token-providers": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.624.0.tgz", - "integrity": "sha512-Ki2uKYJKKtfHxxZsiMTOvJoVRP6b2pZ1u3rcUb2m/nVgBPUfLdl8ZkGpqE29I+t5/QaS/sEdbn6cgMUZwl+3Dg==", + "node_modules/@aws-sdk/credential-provider-sso/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/client-sts": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.624.0.tgz", - "integrity": "sha512-k36fLZCb2nfoV/DKK3jbRgO/Yf7/R80pgYfMiotkGjnZwDmRvNN08z4l06L9C+CieazzkgRxNUzyppsYcYsQaw==", + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.775.0.tgz", + "integrity": "sha512-z4XLYui5aHsr78mbd5BtZfm55OM5V55qK/X17OPrEqjYDDk3GlI8Oe2ZjTmOVrKwMpmzXKhsakeFHKfDyOvv1A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.624.0", - "@aws-sdk/core": "3.624.0", - "@aws-sdk/credential-provider-node": "3.624.0", - "@aws-sdk/middleware-host-header": "3.620.0", - "@aws-sdk/middleware-logger": "3.609.0", - "@aws-sdk/middleware-recursion-detection": "3.620.0", - "@aws-sdk/middleware-user-agent": "3.620.0", - "@aws-sdk/region-config-resolver": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@aws-sdk/util-user-agent-browser": "3.609.0", - "@aws-sdk/util-user-agent-node": "3.614.0", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.3.2", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.14", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.14", - "@smithy/util-defaults-mode-node": "^3.0.14", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/core": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.624.0.tgz", - "integrity": "sha512-WyFmPbhRIvtWi7hBp8uSFy+iPpj8ccNV/eX86hwF4irMjfc/FtsGVIAeBXxXM/vGCjkdfEzOnl+tJ2XACD4OXg==", + "node_modules/@aws-sdk/credential-providers": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.775.0.tgz", + "integrity": "sha512-THvyeStdvd0z8Dv1lJ7KrMRiZkFfUktYQUvvFT45ph14jHC5oRoPColtLHz4JjuDN5QEQ5EGrbc6USADZu1k/w==", + "dev": true, + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.775.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/credential-provider-cognito-identity": "3.775.0", + "@aws-sdk/credential-provider-env": "3.775.0", + "@aws-sdk/credential-provider-http": "3.775.0", + "@aws-sdk/credential-provider-ini": "3.775.0", + "@aws-sdk/credential-provider-node": "3.775.0", + "@aws-sdk/credential-provider-process": "3.775.0", + "@aws-sdk/credential-provider-sso": "3.775.0", + "@aws-sdk/credential-provider-web-identity": "3.775.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/core": "^3.2.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/ec2-metadata-service": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/ec2-metadata-service/-/ec2-metadata-service-3.775.0.tgz", + "integrity": "sha512-tdC2PIOUuK5xS4QIRD0ZLSMaVPTsTBuA5+8r/r1O8wGDVkPfsj+u8l5QA0S9cCMCyPCju2Fku4TEjqnvBGuDcA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.3.2", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", - "fast-xml-parser": "4.4.1", + "@aws-sdk/types": "3.775.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-stream": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.620.1.tgz", - "integrity": "sha512-ExuILJ2qLW5ZO+rgkNRj0xiAipKT16Rk77buvPP8csR7kkCflT/gXTyzRe/uzIiETTxM7tr8xuO9MP/DQXqkfg==", + "node_modules/@aws-sdk/ec2-metadata-service/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-http": { - "version": "3.622.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz", - "integrity": "sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==", + "node_modules/@aws-sdk/ec2-metadata-service/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.624.0.tgz", - "integrity": "sha512-mMoNIy7MO2WTBbdqMyLpbt6SZpthE6e0GkRYpsd0yozPt0RZopcBhEh+HG1U9Y1PVODo+jcMk353vAi61CfnhQ==", + "node_modules/@aws-sdk/lib-storage": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.775.0.tgz", + "integrity": "sha512-sT8HFYOAIQoOZ/VeLUmnljd45eD/JRT1LSrHWUoOqLownm0h5F02Y+g6Y37jLRDTl9UNs+QK61kP+gwu2Vmb6g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/abort-controller": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/smithy-client": "^4.2.0", + "buffer": "5.6.0", + "events": "3.3.0", + "stream-browserify": "3.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@aws-sdk/client-sts": "^3.624.0" + "@aws-sdk/client-s3": "^3.775.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.624.0.tgz", - "integrity": "sha512-vYyGK7oNpd81BdbH5IlmQ6zfaQqU+rPwsKTDDBeLRjshtrGXOEpfoahVpG9PX0ibu32IOWp4ZyXBNyVrnvcMOw==", + "node_modules/@aws-sdk/middleware-bucket-endpoint": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.775.0.tgz", + "integrity": "sha512-qogMIpVChDYr4xiUNC19/RDSw/sKoHkAhouS6Skxiy6s27HBhow1L3Z1qVYXuBmOZGSWPU0xiyZCvOyWrv9s+Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.620.1", - "@aws-sdk/credential-provider-http": "3.622.0", - "@aws-sdk/credential-provider-ini": "3.624.0", - "@aws-sdk/credential-provider-process": "3.620.1", - "@aws-sdk/credential-provider-sso": "3.624.0", - "@aws-sdk/credential-provider-web-identity": "3.621.0", - "@aws-sdk/types": "3.609.0", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-arn-parser": "3.723.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.620.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.620.1.tgz", - "integrity": "sha512-hWqFMidqLAkaV9G460+1at6qa9vySbjQKKc04p59OT7lZ5cO5VH5S4aI05e+m4j364MBROjjk2ugNvfNf/8ILg==", + "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@aws-sdk/middleware-expect-continue": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.775.0.tgz", + "integrity": "sha512-Apd3owkIeUW5dnk3au9np2IdW2N0zc9NjTjHiH+Mx3zqwSrc+m+ANgJVgk9mnQjMzU/vb7VuxJ0eqdEbp5gYsg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.624.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.624.0.tgz", - "integrity": "sha512-A02bayIjU9APEPKr3HudrFHEx0WfghoSPsPopckDkW7VBqO4wizzcxr75Q9A3vNX+cwg0wCN6UitTNe6pVlRaQ==", + "node_modules/@aws-sdk/middleware-flexible-checksums": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.775.0.tgz", + "integrity": "sha512-OmHLfRIb7IIXsf9/X/pMOlcSV3gzW/MmtPSZTkrz5jCTKzWXd7eRoyOJqewjsaC6KMAxIpNU77FoAd16jOZ21A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.624.0", - "@aws-sdk/token-providers": "3.614.0", - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@aws-crypto/crc32": "5.2.0", + "@aws-crypto/crc32c": "5.2.0", + "@aws-crypto/util": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/is-array-buffer": "^4.0.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.621.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.621.0.tgz", - "integrity": "sha512-w7ASSyfNvcx7+bYGep3VBgC3K6vEdLmlpjT7nSIHxxQf+WSdvy+HynwJosrpZax0sK5q0D1Jpn/5q+r5lwwW6w==", + "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.621.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.620.0.tgz", - "integrity": "sha512-VMtPEZwqYrII/oUkffYsNWY9PZ9xpNJpMgmyU0rlDQ25O1c0Hk3fJmZRe6pEkAJ0omD7kLrqGl1DUjQVxpd/Rg==", + "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-logger": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.609.0.tgz", - "integrity": "sha512-S62U2dy4jMDhDFDK5gZ4VxFdWzCtLzwbYyFZx2uvPYTECkepLUfzLic2BHg2Qvtu4QjX+oGE3P/7fwaGIsGNuQ==", + "node_modules/@aws-sdk/middleware-host-header": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.775.0.tgz", + "integrity": "sha512-tkSegM0Z6WMXpLB8oPys/d+umYIocvO298mGvcMCncpRl77L9XkvSLJIFzaHes+o7djAgIduYw8wKIMStFss2w==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.620.0.tgz", - "integrity": "sha512-nh91S7aGK3e/o1ck64sA/CyoFw+gAYj2BDOnoNa6ouyCrVJED96ZXWbhye/fz9SgmNUZR2g7GdVpiLpMKZoI5w==", + "node_modules/@aws-sdk/middleware-location-constraint": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.775.0.tgz", + "integrity": "sha512-8TMXEHZXZTFTckQLyBT5aEI8fX11HZcwZseRifvBKKpj0RZDk4F0EEYGxeNSPpUQ7n+PRWyfAEnnZNRdAj/1NQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.620.0.tgz", - "integrity": "sha512-bvS6etn+KsuL32ubY5D3xNof1qkenpbJXf/ugGXbg0n98DvDFQ/F+SMLxHgbnER5dsKYchNnhmtI6/FC3HFu/A==", + "node_modules/@aws-sdk/middleware-logger": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.775.0.tgz", + "integrity": "sha512-FaxO1xom4MAoUJsldmR92nT1G6uZxTdNYOFYtdHfd6N2wcNaTuxgjIvqzg5y7QIH9kn58XX/dzf1iTjgqUStZw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-endpoints": "3.614.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/region-config-resolver": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.614.0.tgz", - "integrity": "sha512-vDCeMXvic/LU0KFIUjpC3RiSTIkkvESsEfbVHiHH0YINfl8HnEqR5rj+L8+phsCeVg2+LmYwYxd5NRz4PHxt5g==", + "node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.775.0.tgz", + "integrity": "sha512-GLCzC8D0A0YDG5u3F5U03Vb9j5tcOEFhr8oc6PDk0k0vm5VwtZOE6LvK7hcCSoAB4HXyOUM0sQuXrbaAh9OwXA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/token-providers": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.614.0.tgz", - "integrity": "sha512-okItqyY6L9IHdxqs+Z116y5/nda7rHxLvROxtAJdLavWTYDydxrZstImNgGWTeVdmc0xX2gJCI77UYUTQWnhRw==", + "node_modules/@aws-sdk/middleware-sdk-ec2": { + "version": "3.622.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-ec2/-/middleware-sdk-ec2-3.622.0.tgz", + "integrity": "sha512-rVShV+eB1vovLuvlzUEFuxZB4yxSMFzyP+VNIoFxtSZh0LWh7+7bNLwp1I9Vq3SxHLMVYQevjm7nkiPM0DG+RQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", + "@aws-sdk/util-format-url": "3.609.0", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/smithy-client": "^3.1.12", "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.614.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/types": { + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@aws-sdk/types": { "version": "3.609.0", "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -8763,1290 +15946,974 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-endpoints": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.614.0.tgz", - "integrity": "sha512-wK2cdrXHH4oz4IomV/yrGkftU9A+ITB6nFL+rxxyO78is2ifHJpFdV4aqk4LSkXYPi6CXWNru/Dqc7yiKXgJPw==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.609.0.tgz", - "integrity": "sha512-fojPU+mNahzQ0YHYBsx0ZIhmMA96H+ZIZ665ObU9tl+SGdbLneVZVikGve+NmHTQwHzwkFsZYYnVKAkreJLAtA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/types": "^3.3.0", - "bowser": "^2.11.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.614.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.614.0.tgz", - "integrity": "sha512-15ElZT88peoHnq5TEoEtZwoXTXRxNrk60TZNdpl/TUBJ5oNJ9Dqb5Z4ryb8ofN6nm9aFf59GVAerFDz8iUoHBA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } } }, - "node_modules/@aws-sdk/client-rds/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-rds/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.651.1.tgz", - "integrity": "sha512-xNm+ixNRcotyrHgjUGGEyara6kCKgDdW2EVjHBZa5T+tbmtyqezwH3UzbSDZ6MlNoLhJMfR7ozuwYTIOARoBfA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha1-browser": "5.2.0", - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-bucket-endpoint": "3.649.0", - "@aws-sdk/middleware-expect-continue": "3.649.0", - "@aws-sdk/middleware-flexible-checksums": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-location-constraint": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-sdk-s3": "3.651.1", - "@aws-sdk/middleware-ssec": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/signature-v4-multi-region": "3.651.1", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@aws-sdk/xml-builder": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/eventstream-serde-browser": "^3.0.7", - "@smithy/eventstream-serde-config-resolver": "^3.0.4", - "@smithy/eventstream-serde-node": "^3.0.6", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-blob-browser": "^3.1.3", - "@smithy/hash-node": "^3.0.4", - "@smithy/hash-stream-node": "^3.1.3", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/md5-js": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-stream": "^3.1.4", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.3", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/middleware-stack": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.11.tgz", + "integrity": "sha512-1HGo9a6/ikgOMrTrWL/WiN9N8GSVYpuRQO5kjstAq4CvV59bjqnh7TbdXGQ4vxLD3xlSjfBjq5t1SOELePsLnA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-s3/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ssm": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.651.1.tgz", - "integrity": "sha512-f3RganJCh/N9E28kw3VlAYdPIXUd52i8XFXWkws5Ltdoqu9accYvZxTi4d8Gy/0PAzFQyUciS7xpHIjbX8mvgg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.3", - "tslib": "^2.6.2", - "uuid": "^9.0.1" + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-ssm/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sso": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.651.1.tgz", - "integrity": "sha512-Fm8PoMgiBKmmKrY6QQUGj/WW6eIiQqC1I0AiVXfO+Sqkmxcg3qex+CZBAYrTuIDnvnc/89f9N4mdL8V9DRn03Q==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sso-oidc": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.651.1.tgz", - "integrity": "sha512-PKwAyTJW8pgaPIXm708haIZWBAwNycs25yNcD7OQ3NLcmgGxvrx6bSlhPEGcvwdTYwQMJsdx8ls+khlYbLqTvQ==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" } }, - "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sso-oidc/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/smithy-client": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.7.0.tgz", + "integrity": "sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/core": "^2.5.7", + "@smithy/middleware-endpoint": "^3.2.8", + "@smithy/middleware-stack": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-stream": "^3.3.4", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sso/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sts": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.651.1.tgz", - "integrity": "sha512-4X2RqLqeDuVLk+Omt4X+h+Fa978Wn+zek/AM4HSPi4C5XzRBEFLRRtOQUvkETvIjbEwTYQhm0LdgzcBH4bUqIg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/client-sso-oidc": "3.651.1", - "@aws-sdk/core": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/middleware-host-header": "3.649.0", - "@aws-sdk/middleware-logger": "3.649.0", - "@aws-sdk/middleware-recursion-detection": "3.649.0", - "@aws-sdk/middleware-user-agent": "3.649.0", - "@aws-sdk/region-config-resolver": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@aws-sdk/util-user-agent-browser": "3.649.0", - "@aws-sdk/util-user-agent-node": "3.649.0", - "@smithy/config-resolver": "^3.0.6", - "@smithy/core": "^2.4.1", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/hash-node": "^3.0.4", - "@smithy/invalid-dependency": "^3.0.4", - "@smithy/middleware-content-length": "^3.0.6", - "@smithy/middleware-endpoint": "^3.1.1", - "@smithy/middleware-retry": "^3.0.16", - "@smithy/middleware-serde": "^3.0.4", - "@smithy/middleware-stack": "^3.0.4", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/url-parser": "^3.0.4", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.16", - "@smithy/util-defaults-mode-node": "^3.0.16", - "@smithy/util-endpoints": "^2.1.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-retry": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/client-sts/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/core": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.651.1.tgz", - "integrity": "sha512-eqOq3W39K+5QTP5GAXtmP2s9B7hhM2pVz8OPe5tqob8o1xQgkwdgHerf3FoshO9bs0LDxassU/fUSz1wlwqfqg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.1", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-middleware": "^3.0.4", - "fast-xml-parser": "4.4.1", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/core/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/core/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.651.1.tgz", - "integrity": "sha512-tvrLvW+PxeJiw2cOc+LwJ0q86TGbXRul12jGswZWG7N71Ybr1s+e9//VeR8UwlxVCJOnm1FiWiWEd5WQmn25sQ==", + "node_modules/@aws-sdk/middleware-sdk-rds": { + "version": "3.620.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-rds/-/middleware-sdk-rds-3.620.0.tgz", + "integrity": "sha512-pokuq3rMJfn8ZNUIhAKn0c1nQtvClPLzh5h1fOXAeRXmNjp+YPXQ4CIsGRcqDNO8lkUyyfV42WnPCdUZmR9zAA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.651.1", - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.609.0", + "@aws-sdk/util-format-url": "3.609.0", + "@smithy/middleware-endpoint": "^3.1.0", + "@smithy/protocol-http": "^4.1.0", + "@smithy/signature-v4": "^4.1.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.649.0.tgz", - "integrity": "sha512-tViwzM1dauksA3fdRjsg0T8mcHklDa8EfveyiQKK6pUJopkqV6FQx+X5QNda0t/LrdEVlFZvwHNdXqOEfc83TA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@aws-sdk/types": { + "version": "3.609.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", + "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.3.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.649.0.tgz", - "integrity": "sha512-ODAJ+AJJq6ozbns6ejGbicpsQ0dyMOpnGlg0J9J0jITQ05DKQZ581hdB8APDOZ9N8FstShP6dLZflSj8jb5fNA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/abort-controller": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.9.tgz", + "integrity": "sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/fetch-http-handler": "^3.2.5", - "@smithy/node-http-handler": "^3.2.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-stream": "^3.1.4", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.651.1.tgz", - "integrity": "sha512-yOzPC3GbwLZ8IYzke4fy70ievmunnBUni/MOXFE8c9kAIV+/RMC7IWx14nAAZm0gAcY+UtCXvBVZprFqmctfzA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/core": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.7.tgz", + "integrity": "sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-stream": "^3.3.4", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.651.1" } }, - "node_modules/@aws-sdk/credential-provider-ini/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/fetch-http-handler": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.3.tgz", + "integrity": "sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.651.1.tgz", - "integrity": "sha512-QKA74Qs83FTUz3jS39kBuNbLAnm6cgDqomm7XS/BkYgtUq+1lI9WL97astNIuoYvumGIS58kuIa+I3ycOA4wgw==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-ini": "3.651.1", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/middleware-endpoint": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.8.tgz", + "integrity": "sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/core": "^2.5.7", + "@smithy/middleware-serde": "^3.0.11", + "@smithy/node-config-provider": "^3.1.12", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", + "@smithy/url-parser": "^3.0.11", + "@smithy/util-middleware": "^3.0.11", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.649.0.tgz", - "integrity": "sha512-6VYPQpEVpU+6DDS/gLoI40ppuNM5RPIEprK30qZZxnhTr5wyrGOeJ7J7wbbwPOZ5dKwta290BiJDU2ipV8Y9BQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/middleware-serde": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.11.tgz", + "integrity": "sha512-KzPAeySp/fOoQA82TpnwItvX8BBURecpx6ZMu75EZDkAcnPtO6vf7q4aH5QHs/F1s3/snQaSFbbUMcFFZ086Mw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-process/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/node-config-provider": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.12.tgz", + "integrity": "sha512-O9LVEu5J/u/FuNlZs+L7Ikn3lz7VB9hb0GtPT9MQeiBmtK8RSY3ULmsZgXhe6VAlgTw0YO+paQx4p8xdbs43vQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.12", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.651.1.tgz", - "integrity": "sha512-7jeU+Jbn65aDaNjkjWDQcXwjNTzpYNKovkSSRmfVpP5WYiKerVS5mrfg3RiBeiArou5igCUtYcOKlRJiGRO47g==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/node-http-handler": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.3.tgz", + "integrity": "sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-sso": "3.651.1", - "@aws-sdk/token-providers": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@smithy/abort-controller": "^3.1.9", + "@smithy/protocol-http": "^4.1.8", + "@smithy/querystring-builder": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-sso/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/property-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.11.tgz", + "integrity": "sha512-I/+TMc4XTQ3QAjXfOcUWbSS073oOEAxgx4aZy8jHaf8JQnRkq2SZWw8+PfDtBvLUjcGMdxl+YwtzWe6i5uhL/A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.649.0.tgz", - "integrity": "sha512-XVk3WsDa0g3kQFPmnCH/LaCtGY/0R2NDv7gscYZSXiBZcG/fixasglTprgWSp8zcA0t7tEIGu9suyjz8ZwhymQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/protocol-http": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.8.tgz", + "integrity": "sha512-hmgIAVyxw1LySOwkgMIUN0kjN8TG9Nc85LJeEmEE/cNEe2rkHDUWhnJf2gxcSRFLWsyqWsrZGw40ROjUogg+Iw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sts": "^3.649.0" } }, - "node_modules/@aws-sdk/credential-providers": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.651.1.tgz", - "integrity": "sha512-Jv9WikitkarMbW+SaQETJ4/cNapRrsmS2GzU+axc9szqnY+fO6TFcFRB24AvdqCP1uNNasYsbCl/tryZSN/pNg==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/querystring-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.11.tgz", + "integrity": "sha512-Je3kFvCsFMnso1ilPwA7GtlbPaTixa3WwC+K21kmMZHsBEOZYQaqxcMqeFFoU7/slFjKDIpiiPydvdJm8Q/MCw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/client-cognito-identity": "3.651.1", - "@aws-sdk/client-sso": "3.651.1", - "@aws-sdk/client-sts": "3.651.1", - "@aws-sdk/credential-provider-cognito-identity": "3.651.1", - "@aws-sdk/credential-provider-env": "3.649.0", - "@aws-sdk/credential-provider-http": "3.649.0", - "@aws-sdk/credential-provider-ini": "3.651.1", - "@aws-sdk/credential-provider-node": "3.651.1", - "@aws-sdk/credential-provider-process": "3.649.0", - "@aws-sdk/credential-provider-sso": "3.651.1", - "@aws-sdk/credential-provider-web-identity": "3.649.0", - "@aws-sdk/types": "3.649.0", - "@smithy/credential-provider-imds": "^3.2.1", - "@smithy/property-provider": "^3.1.4", - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.649.0.tgz", - "integrity": "sha512-ZdDICtUU4YZkrVllTUOH1Fj/F3WShLhkfNKJE3HJ/yj6pS8JS9P2lWzHiHkHiidjrHSxc6NuBo6vuZ+182XLbw==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.12.tgz", + "integrity": "sha512-1xKSGI+U9KKdbG2qDvIR9dGrw3CNx+baqJfyr0igKEpjbHL5stsqAesYBzHChYHlelWtb87VnLWlhvfCz13H8Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-arn-parser": "3.568.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", - "@smithy/util-config-provider": "^3.0.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/signature-v4": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.4.tgz", + "integrity": "sha512-5JWeMQYg81TgU4cG+OexAWdvDTs5JDdbEZx+Qr1iPbvo91QFGzjy0IkXAKaXUHqmKUJgSHK0ZxnCkgZpzkeNTA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.8", + "@smithy/types": "^3.7.2", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.11", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-expect-continue": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.649.0.tgz", - "integrity": "sha512-pW2id/mWNd+L0/hZKp5yL3J+8rTwsamu9E69Hc5pM3qTF4K4DTZZ+A0sQbY6duIvZvc8IbQHbSMulBOLyWNP3A==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/url-parser": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.11.tgz", + "integrity": "sha512-TmlqXkSk8ZPhfc+SQutjmFr5FjC0av3GZP4B/10caK1SbRwe/v+Wzu/R6xEKxoNqL+8nY18s1byiy6HqPG37Aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@smithy/querystring-parser": "^3.0.11", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.651.1.tgz", - "integrity": "sha512-cFlXSzhdRKU1vOFTIYC3HzkN7Dwwcf07rKU1sB/PrDy4ztLhGgAwvcRwj2AqErZB62C5AdN4l7peB1Iw/oSxRQ==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/crc32": "5.2.0", - "@aws-crypto/crc32c": "5.2.0", - "@aws-sdk/types": "3.649.0", - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" - }, - "engines": { - "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-flexible-checksums/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.649.0.tgz", - "integrity": "sha512-PjAe2FocbicHVgNNwdSZ05upxIO7AgTPFtQLpnIAmoyzMcgv/zNB5fBn3uAnQSAeEPPCD+4SYVEUD1hw1ZBvEg==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-middleware": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.11.tgz", + "integrity": "sha512-dWpyc1e1R6VoXrwLoLDd57U1z6CwNSdkM69Ie4+6uYh2GC7Vg51Qtan7ITzczuVpqezdDTKJGJB95fFvvjU/ow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@smithy/types": "^3.7.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-location-constraint": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.649.0.tgz", - "integrity": "sha512-O9AXhaFUQx34UTnp/cKCcaWW/IVk4mntlWfFjsIxvRatamKaY33b5fOiakGG+J1t0QFK0niDBSvOYUR1fdlHzw==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-stream": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.4.tgz", + "integrity": "sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@smithy/fetch-http-handler": "^4.1.3", + "@smithy/node-http-handler": "^3.3.3", + "@smithy/types": "^3.7.2", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-logger": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.649.0.tgz", - "integrity": "sha512-qdqRx6q7lYC6KL/NT9x3ShTL0TBuxdkCczGzHzY3AnOoYUjnCDH7Vlq867O6MAvb4EnGNECFzIgtkZkQ4FhY5w==", + "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@smithy/util-buffer-from": "^3.0.0", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.649.0.tgz", - "integrity": "sha512-IPnO4wlmaLRf6IYmJW2i8gJ2+UPXX0hDRv1it7Qf8DpBW+lGyF2rnoN7NrFX0WIxdGOlJF1RcOr/HjXb2QeXfQ==", + "node_modules/@aws-sdk/middleware-sdk-route53": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-route53/-/middleware-sdk-route53-3.775.0.tgz", + "integrity": "sha512-h9Lv/VRcmo4Cb4j1fE+uerFrSBtSVmcryljtCLXOCqiIYFteREIgZD4bFlsvc6dkNyLPZiD+Yj1Sl7i7qZIaCQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-ec2": { - "version": "3.622.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-ec2/-/middleware-sdk-ec2-3.622.0.tgz", - "integrity": "sha512-rVShV+eB1vovLuvlzUEFuxZB4yxSMFzyP+VNIoFxtSZh0LWh7+7bNLwp1I9Vq3SxHLMVYQevjm7nkiPM0DG+RQ==", + "node_modules/@aws-sdk/middleware-sdk-s3": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.775.0.tgz", + "integrity": "sha512-zsvcu7cWB28JJ60gVvjxPCI7ZU7jWGcpNACPiZGyVtjYXwcxyhXbYEVDSWKsSA6ERpz9XrpLYod8INQWfW3ECg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-format-url": "3.609.0", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.1.12", - "@smithy/types": "^3.3.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-arn-parser": "3.723.0", + "@smithy/core": "^3.2.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/signature-v4": "^5.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-ec2/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-rds": { - "version": "3.620.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-rds/-/middleware-sdk-rds-3.620.0.tgz", - "integrity": "sha512-pokuq3rMJfn8ZNUIhAKn0c1nQtvClPLzh5h1fOXAeRXmNjp+YPXQ4CIsGRcqDNO8lkUyyfV42WnPCdUZmR9zAA==", + "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.609.0", - "@aws-sdk/util-format-url": "3.609.0", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-rds/node_modules/@aws-sdk/types": { - "version": "3.609.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", - "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", + "node_modules/@aws-sdk/middleware-ssec": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.775.0.tgz", + "integrity": "sha512-Iw1RHD8vfAWWPzBBIKaojO4GAvQkHOYIpKdAfis/EUSUmSa79QsnXnRqsdcE0mCB0Ylj23yi+ah4/0wh9FsekA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.3.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.651.1.tgz", - "integrity": "sha512-4BameU35aBSzrm3L/Iphc6vFLRhz6sBwgQf09mqPA2ZlX/YFqVe8HbS8wM4DG02W8A2MRTnHXRIfFoOrErp2sw==", + "node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.775.0.tgz", + "integrity": "sha512-7Lffpr1ptOEDE1ZYH1T78pheEY1YmeXWBfFt/amZ6AGsKSLG+JPXvof3ltporTGR2bhH/eJPo7UHCglIuXfzYg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/core": "3.651.1", - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-arn-parser": "3.568.0", - "@smithy/core": "^2.4.1", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/smithy-client": "^3.3.0", - "@smithy/types": "^3.4.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.4", - "@smithy/util-stream": "^3.1.4", - "@smithy/util-utf8": "^3.0.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@smithy/core": "^3.2.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@aws-sdk/nested-clients": { + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.775.0.tgz", + "integrity": "sha512-f37jmAzkuIhKyhtA6s0LGpqQvm218vq+RNMUDkGm1Zz2fxJ5pBIUTDtygiI3vXTcmt9DTIB8S6JQhjrgtboktw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.775.0", + "@aws-sdk/middleware-host-header": "3.775.0", + "@aws-sdk/middleware-logger": "3.775.0", + "@aws-sdk/middleware-recursion-detection": "3.775.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/region-config-resolver": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@aws-sdk/util-endpoints": "3.775.0", + "@aws-sdk/util-user-agent-browser": "3.775.0", + "@aws-sdk/util-user-agent-node": "3.775.0", + "@smithy/config-resolver": "^4.1.0", + "@smithy/core": "^3.2.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/hash-node": "^4.0.2", + "@smithy/invalid-dependency": "^4.0.2", + "@smithy/middleware-content-length": "^4.0.2", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-retry": "^4.1.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/protocol-http": "^5.1.0", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-body-length-node": "^4.0.0", + "@smithy/util-defaults-mode-browser": "^4.0.8", + "@smithy/util-defaults-mode-node": "^4.0.8", + "@smithy/util-endpoints": "^3.0.2", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-sdk-s3/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-ssec": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.649.0.tgz", - "integrity": "sha512-r/WBIpX+Kcx+AV5vJ+LbdDOuibk7spBqcFK2LytQjOZKPksZNRAM99khbFe9vr9S1+uDmCLVjAVkIfQ5seJrOw==", + "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.649.0.tgz", - "integrity": "sha512-q6sO10dnCXoxe9thobMJxekhJumzd1j6dxcE1+qJdYKHJr6yYgWbogJqrLCpWd30w0lEvnuAHK8lN2kWLdJxJw==", + "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@aws-sdk/util-endpoints": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/types": "^3.4.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.649.0.tgz", - "integrity": "sha512-xURBvdQXvRvca5Du8IlC5FyCj3pkw8Z75+373J3Wb+vyg8GjD14HfKk1Je1HCCQDyIE9VB/scYDcm9ri0ppePw==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.775.0.tgz", + "integrity": "sha512-40iH3LJjrQS3LKUJAl7Wj0bln7RFPEvUYKFxtP8a+oKFDO0F65F52xZxIJbPn6sHkxWDAnZlGgdjZXM3p2g5wQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.4", + "@aws-sdk/types": "3.775.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/region-config-resolver/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.651.1", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.651.1.tgz", - "integrity": "sha512-aLPCMq4c/A9DmdZLhufWOgfHN2Vgft65dB2tfbATjs6kZjusSaDFxWzjmWX3y8i2ZQ+vU0nAkkWIHFJdf+47fA==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.775.0.tgz", + "integrity": "sha512-cnGk8GDfTMJ8p7+qSk92QlIk2bmTmFJqhYxcXZ9PysjZtx0xmfCMxnG3Hjy1oU2mt5boPCVSOptqtWixayM17g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/middleware-sdk-s3": "3.651.1", - "@aws-sdk/types": "3.649.0", - "@smithy/protocol-http": "^4.1.1", - "@smithy/signature-v4": "^4.1.1", - "@smithy/types": "^3.4.0", + "@aws-sdk/middleware-sdk-s3": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/signature-v4": "^5.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/token-providers": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.649.0.tgz", - "integrity": "sha512-ZBqr+JuXI9RiN+4DSZykMx5gxpL8Dr3exIfFhxMiwAP3DQojwl0ub8ONjMuAjq9OvmX6n+jHZL6fBnNgnNFC8w==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.775.0.tgz", + "integrity": "sha512-Q6MtbEhkOggVSz/dN89rIY/ry80U3v89o0Lrrc+Rpvaiaaz8pEN0DsfEcg0IjpzBQ8Owoa6lNWyglHbzPhaJpA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/property-provider": "^3.1.4", - "@smithy/shared-ini-file-loader": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/nested-clients": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@aws-sdk/client-sso-oidc": "^3.649.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/token-providers/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/types": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.649.0.tgz", - "integrity": "sha512-PuPw8RysbhJNlaD2d/PzOTf8sbf4Dsn2b7hwyGh7YVG3S75yTpxSAZxrnhKsz9fStgqFmnw/jUfV/G+uQAeTVw==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.775.0.tgz", + "integrity": "sha512-ZoGKwa4C9fC9Av6bdfqcW6Ix5ot05F/S4VxWR2nHuMv7hzfmAjTOcUiWT7UR4hM/U0whf84VhDtXN/DWAk52KA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/util-arn-parser": { - "version": "3.568.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.568.0.tgz", - "integrity": "sha512-XUKJWWo+KOB7fbnPP0+g/o5Ulku/X53t7i/h+sPHr5xxYTJJ9CYnbToo95mzxe7xWvkLrsNtJ8L+MnNn9INs2w==", + "version": "3.723.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.723.0.tgz", + "integrity": "sha512-ZhEfvUwNliOQROcAk34WJWVYTlTa4694kSVhDSjW6lE1bMataPnIN8A0ycukEzBXmd8ZSoBcQLn6lKGl7XIJ5w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/util-endpoints": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.649.0.tgz", - "integrity": "sha512-bZI1Wc3R/KibdDVWFxX/N4AoJFG4VJ92Dp4WYmOrVD6VPkb8jPz7ZeiYc7YwPl8NoDjYyPneBV0lEoK/V8OKAA==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.775.0.tgz", + "integrity": "sha512-yjWmUgZC9tUxAo8Uaplqmq0eUh0zrbZJdwxGRKdYxfm4RG6fMw1tj52+KkatH7o+mNZvg1GDcVp/INktxonJLw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", - "@smithy/util-endpoints": "^2.1.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", + "@smithy/util-endpoints": "^3.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/util-format-url": { @@ -10054,7 +16921,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.609.0.tgz", "integrity": "sha512-fuk29BI/oLQlJ7pfm6iJ4gkEpHdavffAALZwXh9eaY1vQ0ip0aKfRTiNudPoJjyyahnz5yJ1HkmlcDitlzsOrQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "3.609.0", "@smithy/querystring-builder": "^3.0.3", @@ -10070,7 +16936,6 @@ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.609.0.tgz", "integrity": "sha512-+Tqnh9w0h2LcrUsdXyT1F8mNhXz+tVYBtP19LpeEGntmvHwa2XzvLUCWpoIAIVsHp5+HdB2X9Sn0KAtmbFXc2Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^3.3.0", "tslib": "^2.6.2" @@ -10079,12 +16944,11 @@ "node": ">=16.0.0" } }, - "node_modules/@aws-sdk/util-locate-window": { - "version": "3.568.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.568.0.tgz", - "integrity": "sha512-3nh4TINkXYr+H41QaPelCceEB2FXP3fxp93YZXB/kqJvX0U9j0N0Uk45gvsjmEPzG8XxkPEeLIfT2I1M7A6Lig==", + "node_modules/@aws-sdk/util-format-url/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -10092,33 +16956,44 @@ "node": ">=16.0.0" } }, + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.723.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.723.0.tgz", + "integrity": "sha512-Yf2CS10BqK688DRsrKI/EO6B8ff5J86NXe4C+VCysK7UOgN0l1zOTeTukZ3H8Q9tYYX3oaF1961o8vRkFm7Nmw==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.649.0.tgz", - "integrity": "sha512-IY43r256LhKAvdEVQO/FPdUyVpcZS5EVxh/WHVdNzuN1bNLoUK2rIzuZqVA0EGguvCxoXVmQv9m50GvG7cGktg==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.775.0.tgz", + "integrity": "sha512-txw2wkiJmZKVdDbscK7VBK+u+TJnRtlUjRTLei+elZg2ADhpQxfVAQl436FUeIv6AhB/oRHW6/K/EAGXUSWi0A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/types": "^3.4.0", + "@aws-sdk/types": "3.775.0", + "@smithy/types": "^4.2.0", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.649.0.tgz", - "integrity": "sha512-x5DiLpZDG/AJmCIBnE3Xhpwy35QIo3WqNiOpw6ExVs1NydbM/e90zFPSfhME0FM66D/WorigvluBxxwjxDm/GA==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.775.0.tgz", + "integrity": "sha512-N9yhTevbizTOMo3drH7Eoy6OkJ3iVPxhV7dwb6CMAObbLneS36CSfA6xQXupmHWcRvZPTz8rd1JGG3HzFOau+g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-sdk/types": "3.649.0", - "@smithy/node-config-provider": "^3.1.5", - "@smithy/types": "^3.4.0", + "@aws-sdk/middleware-user-agent": "3.775.0", + "@aws-sdk/types": "3.775.0", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { "aws-crt": ">=1.0.0" @@ -10130,57 +17005,54 @@ } }, "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/util-user-agent-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@aws-sdk/xml-builder": { - "version": "3.649.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.649.0.tgz", - "integrity": "sha512-XVESKkK7m5LdCVzZ3NvAja40BEyCrfPqtaiFAAhJIvW2U1Edyugf2o3XikuQY62crGT6BZagxJFgOiLKvuTiTg==", + "version": "3.775.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.775.0.tgz", + "integrity": "sha512-b9NGO6FKJeLGYnV7Z1yvcP1TNU4dkD5jNsLWOF1/sygZoASaQhNOlaiJ/1OH331YQ1R1oWk38nBb0frsYkDsOQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/highlight": "^7.24.7", + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", "picocolors": "^1.0.0" }, "engines": { @@ -10188,32 +17060,30 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.4.tgz", - "integrity": "sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==", + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", + "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.2.tgz", - "integrity": "sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA==", + "version": "7.26.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", + "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", "dev": true, - "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.0", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-module-transforms": "^7.25.2", - "@babel/helpers": "^7.25.0", - "@babel/parser": "^7.25.0", - "@babel/template": "^7.25.0", - "@babel/traverse": "^7.25.2", - "@babel/types": "^7.25.2", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.10", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.10", + "@babel/parser": "^7.26.10", + "@babel/template": "^7.26.9", + "@babel/traverse": "^7.26.10", + "@babel/types": "^7.26.10", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -10229,42 +17099,51 @@ } }, "node_modules/@babel/core/node_modules/@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.25.6", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/core/node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@babel/core/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -10274,7 +17153,6 @@ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.4.tgz", "integrity": "sha512-aLpZzf79oGT1bxnsadapfUWErDTcxVKrhvR5F8G27JFgH37+/ATrODMJ0/1D2CgQ/WStDX5B5znnWRv0NzW2JQ==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "7.0.0-beta.4", "jsesc": "^2.5.1", @@ -10284,43 +17162,39 @@ } }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz", - "integrity": "sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", + "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.24.7" + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-annotate-as-pure/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz", - "integrity": "sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz", + "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.25.2", - "@babel/helper-validator-option": "^7.24.8", - "browserslist": "^4.23.1", + "@babel/compat-data": "^7.26.8", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, @@ -10333,24 +17207,22 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.4.tgz", - "integrity": "sha512-ro/bFs3/84MDgDmMwbcHgDa8/E6J3QKNTk4xJJnVeFtGE+tL0K26E3pNxhYz2b67fJpt7Aphw5XcploKXuCvCQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.27.0.tgz", + "integrity": "sha512-vSGCvMecvFCd/BdpGlhpXYNhhC4ccxyvQWpbGL4CWbvfEoLFWUZuSuf7s9Aw70flgQF+6vptvgK2IfOnKlRmBg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-member-expression-to-functions": "^7.24.8", - "@babel/helper-optimise-call-expression": "^7.24.7", - "@babel/helper-replace-supers": "^7.25.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7", - "@babel/traverse": "^7.25.4", + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/helper-replace-supers": "^7.26.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", + "@babel/traverse": "^7.27.0", "semver": "^6.3.1" }, "engines": { @@ -10365,80 +17237,71 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz", - "integrity": "sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", + "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/traverse": "^7.24.8", - "@babel/types": "^7.24.8" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", - "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz", - "integrity": "sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-simple-access": "^7.24.7", - "@babel/helper-validator-identifier": "^7.24.7", - "@babel/traverse": "^7.25.2" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10448,53 +17311,48 @@ } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz", - "integrity": "sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", + "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.24.7" + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-optimise-call-expression/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz", - "integrity": "sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", + "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.25.0.tgz", - "integrity": "sha512-q688zIvQVYtZu+i2PsdIu/uWGRpfxzr5WESsfpShfZECkO+d2o+WROWezCi/Q6kJ0tfPa5+pUGUlfx2HhrA3Bg==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz", + "integrity": "sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.24.8", - "@babel/helper-optimise-call-expression": "^7.24.7", - "@babel/traverse": "^7.25.0" + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/traverse": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -10503,215 +17361,92 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", - "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz", - "integrity": "sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", + "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/traverse": "^7.24.7", - "@babel/types": "^7.24.7" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz", - "integrity": "sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", - "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz", - "integrity": "sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.6.tgz", - "integrity": "sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.0.tgz", + "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6" + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", - "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.24.7", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/parser": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.6.tgz", - "integrity": "sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", + "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.25.6" + "@babel/types": "^7.27.0" }, "bin": { "parser": "bin/babel-parser.js" @@ -10721,15 +17456,13 @@ } }, "node_modules/@babel/parser/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10741,7 +17474,6 @@ "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" @@ -10759,7 +17491,6 @@ "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", "dev": true, - "license": "MIT", "dependencies": { "@babel/compat-data": "^7.20.5", "@babel/helper-compilation-targets": "^7.20.7", @@ -10779,7 +17510,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -10788,13 +17518,12 @@ } }, "node_modules/@babel/plugin-syntax-flow": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.24.7.tgz", - "integrity": "sha512-9G8GYT/dxn/D1IIKOUBmGX0mnmj46mGH9NnZyJLwtCpgh5f7D2VbuKodb+2s9m1Yavh1s7ASQN8lf0eqrb1LTw==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.26.0.tgz", + "integrity": "sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10804,13 +17533,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz", - "integrity": "sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", + "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10824,7 +17552,6 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -10833,13 +17560,12 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.7.tgz", - "integrity": "sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", + "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10849,13 +17575,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz", - "integrity": "sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.26.5.tgz", + "integrity": "sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -10865,13 +17590,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.0.tgz", - "integrity": "sha512-yBQjYoOjXlFv9nlXb3f1casSHOZkWr29NX+zChVanLg5Nc157CrbEX9D7hxxtTpuFy7Q0YzmmWfJxzvps4kXrQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.27.0.tgz", + "integrity": "sha512-u1jGphZ8uDI2Pj/HJj6YQ6XQLZCNjOlprjxB5SVz6rq2T6SwAR+CdrWK0CP7F+9rDVMXdB0+r6Am5G5aobOjAQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -10881,17 +17605,16 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.25.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.4.tgz", - "integrity": "sha512-oexUfaQle2pF/b6E0dwsxQtAol9TLSO88kQvym6HHBWFliV2lGdrPieX+WgMRLSJDVzdYywk7jXbLPuO2KLTLg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", + "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-compilation-targets": "^7.25.2", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-replace-supers": "^7.25.0", - "@babel/traverse": "^7.25.4", + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9", + "@babel/traverse": "^7.25.9", "globals": "^11.1.0" }, "engines": { @@ -10902,14 +17625,13 @@ } }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz", - "integrity": "sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", + "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/template": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/template": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10919,13 +17641,12 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz", - "integrity": "sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", + "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10935,14 +17656,13 @@ } }, "node_modules/@babel/plugin-transform-flow-strip-types": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.25.2.tgz", - "integrity": "sha512-InBZ0O8tew5V0K6cHcQ+wgxlrjOw1W4wDXLkOTjLRD8GYhTSkxTVBtdy3MMtvYBrbAWa1Qm3hNoTc1620Yj+Mg==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.26.5.tgz", + "integrity": "sha512-eGK26RsbIkYUns3Y8qKl362juDDYK+wEdPGHGrhzUl6CewZFo55VZ7hg+CyMFU4dd5QQakBN86nBMpRsFpRvbQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/plugin-syntax-flow": "^7.24.7" + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/plugin-syntax-flow": "^7.26.0" }, "engines": { "node": ">=6.9.0" @@ -10952,14 +17672,13 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.7.tgz", - "integrity": "sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g==", + "version": "7.26.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz", + "integrity": "sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10969,15 +17688,14 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.25.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.1.tgz", - "integrity": "sha512-TVVJVdW9RKMNgJJlLtHsKDTydjZAbwIsn6ySBPQaEAUU5+gVvlJt/9nRmqVbsV/IBanRjzWoaAQKLoamWVOUuA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", + "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.24.8", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/traverse": "^7.25.1" + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -10987,13 +17705,12 @@ } }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.2.tgz", - "integrity": "sha512-HQI+HcTbm9ur3Z2DkO+jgESMAMcYLuN/A7NRw9juzxAezN9AvqvUTnpKP/9kkYANz6u7dFlAyOu44ejuGySlfw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", + "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.8" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11003,13 +17720,12 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz", - "integrity": "sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", + "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11019,15 +17735,13 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz", - "integrity": "sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA==", + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz", + "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.24.8", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/helper-simple-access": "^7.24.7" + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11037,14 +17751,13 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz", - "integrity": "sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", + "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-replace-supers": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11054,13 +17767,12 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz", - "integrity": "sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", + "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11070,13 +17782,12 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz", - "integrity": "sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", + "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11086,13 +17797,12 @@ } }, "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.24.7.tgz", - "integrity": "sha512-H/Snz9PFxKsS1JLI4dJLtnJgCJRoo0AUm3chP6NYr+9En1JMKloheEiLIhlp5MDVznWo+H3AAC1Mc8lmUEpsgg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.25.9.tgz", + "integrity": "sha512-KJfMlYIUxQB1CJfO3e0+h0ZHWOTLCPP115Awhaz8U0Zpq36Gl/cXlpoyMRnUWlhNUBAzldnCiAZNvCDj7CrKxQ==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11102,17 +17812,16 @@ } }, "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.25.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.2.tgz", - "integrity": "sha512-KQsqEAVBpU82NM/B/N9j9WOdphom1SZH3R+2V7INrQUH+V9EBFwZsEJl8eBIVeQE62FxJCc70jzEZwqU7RcVqA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.9.tgz", + "integrity": "sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.24.7", - "@babel/helper-module-imports": "^7.24.7", - "@babel/helper-plugin-utils": "^7.24.8", - "@babel/plugin-syntax-jsx": "^7.24.7", - "@babel/types": "^7.25.2" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/plugin-syntax-jsx": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11122,28 +17831,25 @@ } }, "node_modules/@babel/plugin-transform-react-jsx/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.7.tgz", - "integrity": "sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", + "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11153,14 +17859,13 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz", - "integrity": "sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", + "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.24.7" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -11170,13 +17875,12 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz", - "integrity": "sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw==", + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.26.8.tgz", + "integrity": "sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.24.7" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -11186,11 +17890,10 @@ } }, "node_modules/@babel/runtime": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.6.tgz", - "integrity": "sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz", + "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==", "dev": true, - "license": "MIT", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -11199,47 +17902,43 @@ } }, "node_modules/@babel/template": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz", - "integrity": "sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz", + "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/parser": "^7.25.0", - "@babel/types": "^7.25.0" + "@babel/code-frame": "^7.26.2", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/template/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.6.tgz", - "integrity": "sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz", + "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.24.7", - "@babel/generator": "^7.25.6", - "@babel/parser": "^7.25.6", - "@babel/template": "^7.25.0", - "@babel/types": "^7.25.6", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.27.0", + "@babel/parser": "^7.27.0", + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -11248,57 +17947,71 @@ } }, "node_modules/@babel/traverse/node_modules/@babel/generator": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.6.tgz", - "integrity": "sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/types": "^7.25.6", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse/node_modules/@babel/types": { - "version": "7.25.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.6.tgz", - "integrity": "sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", "dev": true, - "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.24.8", - "@babel/helper-validator-identifier": "^7.24.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/traverse/node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@babel/types": { "version": "7.0.0-beta.4", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.4.tgz", "integrity": "sha512-yLvBW5TTAgJwURAUAdZa1vrFTkwXXvk0Kw48LYvgxpyT/IaV8W4OIhxdVztAt5ruDQ/OFUwHpzWqk6TN3EfmWA==", "dev": true, - "license": "MIT", "dependencies": { "esutils": "^2.0.2", "lodash": "^4.2.0", "to-fast-properties": "^2.0.0" } }, + "node_modules/@cdklabs/tskb": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@cdklabs/tskb/-/tskb-0.0.3.tgz", + "integrity": "sha512-JR+MuD4awAXvutu7HArephXfZm09GPTaSAQUqNcJB5+ZENRm4kV+L6vJL6Tn1xHjCcHksO+HAqj3gYtm5K94vA==", + "dev": true + }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz", - "integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz", + "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==", "cpu": [ "ppc64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "aix" @@ -11308,14 +18021,13 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.1.tgz", - "integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz", + "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==", "cpu": [ "arm" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "android" @@ -11325,14 +18037,13 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz", - "integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz", + "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "android" @@ -11342,14 +18053,13 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.1.tgz", - "integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz", + "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "android" @@ -11359,14 +18069,13 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz", - "integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz", + "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -11376,14 +18085,13 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz", - "integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz", + "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -11393,14 +18101,13 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz", - "integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz", + "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "freebsd" @@ -11410,14 +18117,13 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz", - "integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz", + "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "freebsd" @@ -11427,14 +18133,13 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz", - "integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz", + "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==", "cpu": [ "arm" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11444,14 +18149,13 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz", - "integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz", + "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11461,14 +18165,13 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz", - "integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz", + "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==", "cpu": [ "ia32" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11478,14 +18181,13 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz", - "integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz", + "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==", "cpu": [ "loong64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11495,14 +18197,13 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz", - "integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz", + "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==", "cpu": [ "mips64el" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11512,14 +18213,13 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz", - "integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz", + "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==", "cpu": [ "ppc64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11529,14 +18229,13 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz", - "integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz", + "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==", "cpu": [ "riscv64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11546,14 +18245,13 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz", - "integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz", + "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==", "cpu": [ "s390x" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -11562,32 +18260,46 @@ "node": ">=18" } }, - "node_modules/@esbuild/linux-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz", - "integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==", + "node_modules/@esbuild/linux-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz", + "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz", + "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==", "cpu": [ - "x64" + "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ - "linux" + "netbsd" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz", - "integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz", + "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "netbsd" @@ -11597,14 +18309,13 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz", - "integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz", + "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "openbsd" @@ -11614,14 +18325,13 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz", - "integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz", + "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "openbsd" @@ -11631,14 +18341,13 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz", - "integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz", + "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "sunos" @@ -11648,14 +18357,13 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz", - "integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz", + "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -11665,14 +18373,13 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz", - "integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz", + "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==", "cpu": [ "ia32" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -11682,14 +18389,13 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz", - "integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz", + "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -11698,12 +18404,20 @@ "node": ">=18" } }, + "node_modules/@ewoudenberg/difflib": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@ewoudenberg/difflib/-/difflib-0.1.0.tgz", + "integrity": "sha512-OU5P5mJyD3OoWYMWY+yIgwvgNS9cFAU10f+DDuvtogcWQOoJIsQ4Hy2McSfUfhKjq8L0FuWVb4Rt7kgA+XK86A==", + "dev": true, + "dependencies": { + "heap": ">= 0.2.0" + } + }, "node_modules/@graphql-codegen/core": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@graphql-codegen/core/-/core-4.0.2.tgz", "integrity": "sha512-IZbpkhwVqgizcjNiaVzNAzm/xbWT6YnGgeOLwVjm4KbJn3V2jchVtuzHH09G5/WkkLSk2wgbXNdwjM41JxO6Eg==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.3", "@graphql-tools/schema": "^10.0.0", @@ -11715,11 +18429,10 @@ } }, "node_modules/@graphql-codegen/core/node_modules/@graphql-codegen/plugin-helpers": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-5.0.4.tgz", - "integrity": "sha512-MOIuHFNWUnFnqVmiXtrI+4UziMTYrcquljaI5f/T/Bc7oO7sXcfkAvgkNWEEi9xWreYwvuer3VHCuPI/lAFWbw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-5.1.0.tgz", + "integrity": "sha512-Y7cwEAkprbTKzVIe436TIw4w03jorsMruvCvu0HJkavaKMQbWY+lQ1RIuROgszDbxAyM35twB5/sUvYG5oW+yg==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-tools/utils": "^10.0.0", "change-case-all": "1.0.15", @@ -11728,20 +18441,20 @@ "lodash": "~4.17.0", "tslib": "~2.6.0" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.4.tgz", - "integrity": "sha512-XHnyCWSlg1ccsD8s0y6ugo5GZ5TpkTiFVNPSYms5G0s6Z/xTuSmiLBfeqgkfaCwLmLaQnRCmNDL2JRnqc2R5bQ==", + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/merge": { + "version": "9.0.24", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-9.0.24.tgz", + "integrity": "sha512-NzWx/Afl/1qHT3Nm1bghGG2l4jub28AdvtG11PoUlmjcIjnFBJMv4vqL0qnxWe8A82peWo4/TkVdjJRLXwgGEw==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "cross-inspect": "1.0.1", - "dset": "^3.1.2", + "@graphql-tools/utils": "^10.8.6", "tslib": "^2.4.0" }, "engines": { @@ -11751,105 +18464,89 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-codegen/core/node_modules/change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/schema": { + "version": "10.0.23", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-10.0.23.tgz", + "integrity": "sha512-aEGVpd1PCuGEwqTXCStpEkmheTHNdMayiIKH1xDWqYp9i8yKv9FRDgkGrY4RD8TNxnf7iII+6KOBGaJ3ygH95A==", "dev": true, - "license": "MIT", "dependencies": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" + "@graphql-tools/merge": "^9.0.24", + "@graphql-tools/utils": "^10.8.6", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/core/node_modules/@graphql-tools/utils": { + "version": "10.8.6", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.8.6.tgz", + "integrity": "sha512-Alc9Vyg0oOsGhRapfL3xvqh1zV8nKoFUdtLhXX7Ki4nClaIJXckrA86j+uxEuG3ic6j4jlM1nvcWXRn/71AVLQ==", + "dev": true, + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", + "cross-inspect": "1.0.1", + "dset": "^3.1.4", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-codegen/core/node_modules/tslib": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-codegen/plugin-helpers": { - "version": "1.18.8", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.18.8.tgz", - "integrity": "sha512-mb4I9j9lMGqvGggYuZ0CV+Hme08nar68xkpPbAVotg/ZBmlhZIok/HqW2BcMQi7Rj+Il5HQMeQ1wQ1M7sv/TlQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", + "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/utils": "^7.9.1", - "common-tags": "1.8.0", + "@graphql-tools/utils": "^9.0.0", + "change-case-all": "1.0.15", + "common-tags": "1.8.2", "import-from": "4.0.0", "lodash": "~4.17.0", - "tslib": "~2.3.0" + "tslib": "~2.4.0" }, "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, "node_modules/@graphql-codegen/plugin-helpers/node_modules/@graphql-tools/utils": { - "version": "7.10.0", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.10.0.tgz", - "integrity": "sha512-d334r6bo9mxdSqZW6zWboEnnOOFRrAPVQJ7LkU8/6grglrbcu6WhwCLzHb90E94JI3TD3ricC3YGbUqIi9Xg0w==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { - "@ardatan/aggregate-error": "0.0.6", - "camel-case": "4.1.2", - "tslib": "~2.2.0" + "@graphql-typed-document-node/core": "^3.1.1", + "tslib": "^2.4.0" }, "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0" - } - }, - "node_modules/@graphql-codegen/plugin-helpers/node_modules/@graphql-tools/utils/node_modules/tslib": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", - "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", - "dev": true, - "license": "0BSD" - }, - "node_modules/@graphql-codegen/plugin-helpers/node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, - "node_modules/@graphql-codegen/plugin-helpers/node_modules/common-tags": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", - "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.0.0" + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-codegen/plugin-helpers/node_modules/tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true, - "license": "0BSD" + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "dev": true }, "node_modules/@graphql-codegen/schema-ast": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/@graphql-codegen/schema-ast/-/schema-ast-2.6.1.tgz", "integrity": "sha512-5TNW3b1IHJjCh07D2yQNGDQzUpUl2AD+GVe1Dzjqyx/d2Fn0TPMxLsHsKPS4Plg4saO8FK/QO70wLsP7fdbQ1w==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.2", "@graphql-tools/utils": "^9.0.0", @@ -11859,30 +18556,11 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@graphql-codegen/schema-ast/node_modules/@graphql-codegen/plugin-helpers": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", - "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.0.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, "node_modules/@graphql-codegen/schema-ast/node_modules/@graphql-tools/utils": { "version": "9.2.1", "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -11891,38 +18569,17 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-codegen/schema-ast/node_modules/change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "change-case": "^4.1.2", - "is-lower-case": "^2.0.2", - "is-upper-case": "^2.0.2", - "lower-case": "^2.0.2", - "lower-case-first": "^2.0.2", - "sponge-case": "^1.0.1", - "swap-case": "^2.0.2", - "title-case": "^3.0.3", - "upper-case": "^2.0.2", - "upper-case-first": "^2.0.2" - } - }, "node_modules/@graphql-codegen/schema-ast/node_modules/tslib": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-codegen/typescript": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-2.8.8.tgz", "integrity": "sha512-A0oUi3Oy6+DormOlrTC4orxT9OBZkIglhbJBcDmk34jAKKUgesukXRd4yOhmTrnbchpXz2T8IAOFB3FWIaK4Rw==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.2", "@graphql-codegen/schema-ast": "^2.6.1", @@ -11934,30 +18591,11 @@ "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@graphql-codegen/typescript/node_modules/@graphql-codegen/plugin-helpers": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-3.1.2.tgz", - "integrity": "sha512-emOQiHyIliVOIjKVKdsI5MXj312zmRDwmHpyUTZMjfpvxq/UVAHUJIVdVf+lnjjrI+LXBTgMlTWTgHQfmICxjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-tools/utils": "^9.0.0", - "change-case-all": "1.0.15", - "common-tags": "1.8.2", - "import-from": "4.0.0", - "lodash": "~4.17.0", - "tslib": "~2.4.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" - } - }, "node_modules/@graphql-codegen/typescript/node_modules/@graphql-codegen/visitor-plugin-common": { "version": "2.13.8", "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.8.tgz", "integrity": "sha512-IQWu99YV4wt8hGxIbBQPtqRuaWZhkQRG2IZKbMoSvh0vGeWb3dB0n0hSgKaOOxDY+tljtOf9MTcUYvJslQucMQ==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^3.1.2", "@graphql-tools/optimize": "^1.3.0", @@ -11974,26 +18612,97 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, - "node_modules/@graphql-codegen/typescript/node_modules/@graphql-tools/utils": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", - "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", + "node_modules/@graphql-codegen/typescript/node_modules/@graphql-tools/utils": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", + "dev": true, + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-codegen/typescript/node_modules/tslib": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", + "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", + "dev": true + }, + "node_modules/@graphql-codegen/visitor-plugin-common": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.22.0.tgz", + "integrity": "sha512-2afJGb6d8iuZl9KizYsexPwraEKO1lAvt5eVHNM5Xew4vwz/AUHeqDR2uOeQgVV+27EzjjzSDd47IEdH0dLC2w==", + "dev": true, + "dependencies": { + "@graphql-codegen/plugin-helpers": "^1.18.8", + "@graphql-tools/optimize": "^1.0.1", + "@graphql-tools/relay-operation-optimizer": "^6.3.0", + "array.prototype.flatmap": "^1.2.4", + "auto-bind": "~4.0.0", + "change-case-all": "1.0.14", + "dependency-graph": "^0.11.0", + "graphql-tag": "^2.11.0", + "parse-filepath": "^1.0.2", + "tslib": "~2.3.0" + }, + "peerDependencies": { + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" + } + }, + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-codegen/plugin-helpers": { + "version": "1.18.8", + "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.18.8.tgz", + "integrity": "sha512-mb4I9j9lMGqvGggYuZ0CV+Hme08nar68xkpPbAVotg/ZBmlhZIok/HqW2BcMQi7Rj+Il5HQMeQ1wQ1M7sv/TlQ==", + "dev": true, + "dependencies": { + "@graphql-tools/utils": "^7.9.1", + "common-tags": "1.8.0", + "import-from": "4.0.0", + "lodash": "~4.17.0", + "tslib": "~2.3.0" + }, + "peerDependencies": { + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" + } + }, + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-tools/utils": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-7.10.0.tgz", + "integrity": "sha512-d334r6bo9mxdSqZW6zWboEnnOOFRrAPVQJ7LkU8/6grglrbcu6WhwCLzHb90E94JI3TD3ricC3YGbUqIi9Xg0w==", + "dev": true, + "dependencies": { + "@ardatan/aggregate-error": "0.0.6", + "camel-case": "4.1.2", + "tslib": "~2.2.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0" + } + }, + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/@graphql-tools/utils/node_modules/tslib": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", + "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==", + "dev": true + }, + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-typed-document-node/core": "^3.1.1", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" } }, - "node_modules/@graphql-codegen/typescript/node_modules/change-case-all": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", - "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/change-case-all": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.14.tgz", + "integrity": "sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==", "dev": true, - "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -12007,52 +18716,30 @@ "upper-case-first": "^2.0.2" } }, - "node_modules/@graphql-codegen/typescript/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", - "dev": true, - "license": "0BSD" - }, - "node_modules/@graphql-codegen/visitor-plugin-common": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.22.0.tgz", - "integrity": "sha512-2afJGb6d8iuZl9KizYsexPwraEKO1lAvt5eVHNM5Xew4vwz/AUHeqDR2uOeQgVV+27EzjjzSDd47IEdH0dLC2w==", + "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/common-tags": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.0.tgz", + "integrity": "sha512-6P6g0uetGpW/sdyUy/iQQCbFF0kWVMSIVSyYz7Zgjcgh8mgw8PQzDNZeyZ5DQ2gM7LBoZPHmnjz8rUthkBG5tw==", "dev": true, - "license": "MIT", - "dependencies": { - "@graphql-codegen/plugin-helpers": "^1.18.8", - "@graphql-tools/optimize": "^1.0.1", - "@graphql-tools/relay-operation-optimizer": "^6.3.0", - "array.prototype.flatmap": "^1.2.4", - "auto-bind": "~4.0.0", - "change-case-all": "1.0.14", - "dependency-graph": "^0.11.0", - "graphql-tag": "^2.11.0", - "parse-filepath": "^1.0.2", - "tslib": "~2.3.0" - }, - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" + "engines": { + "node": ">=4.0.0" } }, "node_modules/@graphql-codegen/visitor-plugin-common/node_modules/tslib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-tools/apollo-engine-loader": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.1.tgz", - "integrity": "sha512-NaPeVjtrfbPXcl+MLQCJLWtqe2/E4bbAqcauEOQ+3sizw1Fc2CNmhHRF8a6W4D0ekvTRRXAMptXYgA2uConbrA==", + "version": "8.0.20", + "resolved": "https://registry.npmjs.org/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.20.tgz", + "integrity": "sha512-m5k9nXSyjq31yNsEqDXLyykEjjn3K3Mo73oOKI+Xjy8cpnsgbT4myeUJIYYQdLrp7fr9Y9p7ZgwT5YcnwmnAbA==", "dev": true, - "license": "MIT", "dependencies": { - "@ardatan/sync-fetch": "^0.0.1", - "@graphql-tools/utils": "^10.0.13", - "@whatwg-node/fetch": "^0.9.0", + "@graphql-tools/utils": "^10.8.6", + "@whatwg-node/fetch": "^0.10.0", + "sync-fetch": "0.6.0-2", "tslib": "^2.4.0" }, "engines": { @@ -12063,15 +18750,15 @@ } }, "node_modules/@graphql-tools/apollo-engine-loader/node_modules/@graphql-tools/utils": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.4.tgz", - "integrity": "sha512-XHnyCWSlg1ccsD8s0y6ugo5GZ5TpkTiFVNPSYms5G0s6Z/xTuSmiLBfeqgkfaCwLmLaQnRCmNDL2JRnqc2R5bQ==", + "version": "10.8.6", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.8.6.tgz", + "integrity": "sha512-Alc9Vyg0oOsGhRapfL3xvqh1zV8nKoFUdtLhXX7Ki4nClaIJXckrA86j+uxEuG3ic6j4jlM1nvcWXRn/71AVLQ==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", "cross-inspect": "1.0.1", - "dset": "^3.1.2", + "dset": "^3.1.4", "tslib": "^2.4.0" }, "engines": { @@ -12082,37 +18769,27 @@ } }, "node_modules/@graphql-tools/merge": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-9.0.7.tgz", - "integrity": "sha512-lbTrIuXIbUSmSumHkPRY1QX0Z8JEtmRhnIrkH7vkfeEmf0kNn/nCWvJwqokm5U7L+a+DA1wlRM4slIlbfXjJBA==", + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.4.2.tgz", + "integrity": "sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/utils": "^10.5.4", + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.4.tgz", - "integrity": "sha512-XHnyCWSlg1ccsD8s0y6ugo5GZ5TpkTiFVNPSYms5G0s6Z/xTuSmiLBfeqgkfaCwLmLaQnRCmNDL2JRnqc2R5bQ==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", - "cross-inspect": "1.0.1", - "dset": "^3.1.2", "tslib": "^2.4.0" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } @@ -12122,7 +18799,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-1.4.0.tgz", "integrity": "sha512-dJs/2XvZp+wgHH8T5J2TqptT9/6uVzIYvA6uFACha+ufvdMBedkfR4b4GbT8jAKLRARiqRTxy3dctnwkTM2tdw==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.4.0" }, @@ -12135,7 +18811,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-6.5.18.tgz", "integrity": "sha512-mc5VPyTeV+LwiM+DNvoDQfPqwQYhPV/cl5jOBjTgSniyaq8/86aODfMkrE2OduhQ5E00hqrkuL2Fdrgk0w1QJg==", "dev": true, - "license": "MIT", "dependencies": { "@ardatan/relay-compiler": "12.0.0", "@graphql-tools/utils": "^9.2.1", @@ -12150,7 +18825,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", "tslib": "^2.4.0" @@ -12160,39 +18834,29 @@ } }, "node_modules/@graphql-tools/schema": { - "version": "10.0.6", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-10.0.6.tgz", - "integrity": "sha512-EIJgPRGzpvDFEjVp+RF1zNNYIC36BYuIeZ514jFoJnI6IdxyVyIRDLx/ykgMdaa1pKQerpfdqDnsF4JnZoDHSQ==", + "version": "9.0.19", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-9.0.19.tgz", + "integrity": "sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==", "dev": true, - "license": "MIT", "dependencies": { - "@graphql-tools/merge": "^9.0.6", - "@graphql-tools/utils": "^10.5.4", + "@graphql-tools/merge": "^8.4.1", + "@graphql-tools/utils": "^9.2.1", "tslib": "^2.4.0", "value-or-promise": "^1.0.12" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.4.tgz", - "integrity": "sha512-XHnyCWSlg1ccsD8s0y6ugo5GZ5TpkTiFVNPSYms5G0s6Z/xTuSmiLBfeqgkfaCwLmLaQnRCmNDL2JRnqc2R5bQ==", + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-9.2.1.tgz", + "integrity": "sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==", "dev": true, - "license": "MIT", "dependencies": { "@graphql-typed-document-node/core": "^3.1.1", - "cross-inspect": "1.0.1", - "dset": "^3.1.2", "tslib": "^2.4.0" }, - "engines": { - "node": ">=16.0.0" - }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } @@ -12202,7 +18866,6 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-6.2.4.tgz", "integrity": "sha512-ybgZ9EIJE3JMOtTrTd2VcIpTXtDrn2q6eiYkeYMKRVh3K41+LZa6YnR2zKERTXqTWqhobROwLt4BZbw2O3Aeeg==", "dev": true, - "license": "MIT", "dependencies": { "@ardatan/aggregate-error": "0.0.6", "camel-case": "4.1.1", @@ -12216,357 +18879,333 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/@graphql-typed-document-node/core": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==", "dev": true, - "license": "MIT", "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@inquirer/checkbox": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-1.5.2.tgz", - "integrity": "sha512-CifrkgQjDkUkWexmgYYNyB5603HhTHI91vLFeQXh6qrTKiCMVASol01Rs1cv6LP/A2WccZSRlJKZhbaBIs/9ZA==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.4.tgz", + "integrity": "sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", + "@inquirer/core": "^10.1.9", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "figures": "^3.2.0" + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/checkbox/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/confirm": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-2.0.17.tgz", - "integrity": "sha512-EqzhGryzmGpy2aJf6LxJVhndxYmFs+m8cxXzf8nejb1DE3sabf6mUgBcp4J0jAUEiAcYzqmkqRr7LPFh/WdnXA==", + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.8.tgz", + "integrity": "sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/confirm/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/core": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", - "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", + "version": "10.1.9", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.9.tgz", + "integrity": "sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/type": "^1.1.6", - "@types/mute-stream": "^0.0.4", - "@types/node": "^20.10.7", - "@types/wrap-ansi": "^3.0.0", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "cli-spinners": "^2.9.2", "cli-width": "^4.1.0", - "figures": "^3.2.0", - "mute-stream": "^1.0.0", - "run-async": "^3.0.0", + "mute-stream": "^2.0.0", "signal-exit": "^4.1.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^6.2.0" + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/core/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=8" } }, "node_modules/@inquirer/editor": { - "version": "1.2.15", - "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-1.2.15.tgz", - "integrity": "sha512-gQ77Ls09x5vKLVNMH9q/7xvYPT6sIs5f7URksw+a2iJZ0j48tVS6crLqm2ugG33tgXHIwiEqkytY60Zyh5GkJQ==", + "version": "4.2.9", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.9.tgz", + "integrity": "sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2", + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", "external-editor": "^3.1.0" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/editor/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/expand": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-1.1.16.tgz", - "integrity": "sha512-TGLU9egcuo+s7PxphKUCnJnpCIVY32/EwPCLLuu+gTvYiD8hZgx8Z2niNQD36sa6xcfpdLY6xXDBiL/+g1r2XQ==", + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.11.tgz", + "integrity": "sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2", - "figures": "^3.2.0" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/expand/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/input": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-1.2.16.tgz", - "integrity": "sha512-Ou0LaSWvj1ni+egnyQ+NBtfM1885UwhRCMtsRt2bBO47DoC1dwtCa+ZUNgrxlnCHHF0IXsbQHYtIIjFGAavI4g==", + "node_modules/@inquirer/figures": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz", + "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==", "dev": true, - "license": "MIT", - "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" - }, "engines": { - "node": ">=14.18.0" + "node": ">=18" } }, - "node_modules/@inquirer/input/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/input": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.8.tgz", + "integrity": "sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5" }, "engines": { - "node": ">=10" + "node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/password": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-1.1.16.tgz", - "integrity": "sha512-aZYZVHLUXZ2gbBot+i+zOJrks1WaiI95lvZCn1sKfcw6MtSSlYC8uDX8sTzQvAsQ8epHoP84UNvAIT0KVGOGqw==", + "node_modules/@inquirer/number": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.11.tgz", + "integrity": "sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/password/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/password": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.11.tgz", + "integrity": "sha512-dH6zLdv+HEv1nBs96Case6eppkRggMe8LoOTl30+Gq5Wf27AO/vHFgStTVz4aoevLdNXqwE23++IXGw4eiOXTg==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", + "ansi-escapes": "^4.3.2" }, "engines": { - "node": ">=10" + "node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/prompts": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-3.3.2.tgz", - "integrity": "sha512-k52mOMRvTUejrqyF1h8Z07chC+sbaoaUYzzr1KrJXyj7yaX7Nrh0a9vktv8TuocRwIJOQMaj5oZEmkspEcJFYQ==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.4.0.tgz", + "integrity": "sha512-EZiJidQOT4O5PYtqnu1JbF0clv36oW2CviR66c7ma4LsupmmQlUwmdReGKRp456OWPWMz3PdrPiYg3aCk3op2w==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/checkbox": "^1.5.2", - "@inquirer/confirm": "^2.0.17", - "@inquirer/core": "^6.0.0", - "@inquirer/editor": "^1.2.15", - "@inquirer/expand": "^1.1.16", - "@inquirer/input": "^1.2.16", - "@inquirer/password": "^1.1.16", - "@inquirer/rawlist": "^1.2.16", - "@inquirer/select": "^1.3.3" + "@inquirer/checkbox": "^4.1.4", + "@inquirer/confirm": "^5.1.8", + "@inquirer/editor": "^4.2.9", + "@inquirer/expand": "^4.0.11", + "@inquirer/input": "^4.1.8", + "@inquirer/number": "^3.0.11", + "@inquirer/password": "^4.0.11", + "@inquirer/rawlist": "^4.0.11", + "@inquirer/search": "^3.0.11", + "@inquirer/select": "^4.1.0" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/rawlist": { - "version": "1.2.16", - "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-1.2.16.tgz", - "integrity": "sha512-pZ6TRg2qMwZAOZAV6TvghCtkr53dGnK29GMNQ3vMZXSNguvGqtOVc4j/h1T8kqGJFagjyfBZhUPGwNS55O5qPQ==", + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.11.tgz", + "integrity": "sha512-uAYtTx0IF/PqUAvsRrF3xvnxJV516wmR6YVONOmCWJbbt87HcDHLfL9wmBQFbNJRv5kCjdYKrZcavDkH3sVJPg==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", - "chalk": "^4.1.2" + "@inquirer/core": "^10.1.9", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, - "node_modules/@inquirer/rawlist/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@inquirer/search": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.11.tgz", + "integrity": "sha512-9CWQT0ikYcg6Ls3TOa7jljsD7PgjcsYEM0bYE+Gkz+uoW9u8eaJCRHJKkucpRE5+xKtaaDbrND+nPDoxzjYyew==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@inquirer/core": "^10.1.9", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=10" + "node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/select": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-1.3.3.tgz", - "integrity": "sha512-RzlRISXWqIKEf83FDC9ZtJ3JvuK1l7aGpretf41BCWYrvla2wU8W8MTRNMiPrPJ+1SIqrRC1nZdZ60hD9hRXLg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.1.0.tgz", + "integrity": "sha512-z0a2fmgTSRN+YBuiK1ROfJ2Nvrpij5lVN3gPDkQGhavdvIVGHGW29LwYZfM/j42Ai2hUghTI/uoBuTbrJk42bA==", "dev": true, - "license": "MIT", "dependencies": { - "@inquirer/core": "^6.0.0", - "@inquirer/type": "^1.1.6", + "@inquirer/core": "^10.1.9", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.5", "ansi-escapes": "^4.3.2", - "chalk": "^4.1.2", - "figures": "^3.2.0" + "yoctocolors-cjs": "^2.1.2" }, "engines": { - "node": ">=14.18.0" - } - }, - "node_modules/@inquirer/select/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "node": ">=18" }, - "engines": { - "node": ">=10" + "peerDependencies": { + "@types/node": ">=18" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@inquirer/type": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-1.5.5.tgz", - "integrity": "sha512-MzICLu4yS7V8AA61sANROZ9vT1H3ooca5dSmI1FjZkzq7o/koMsRfQSzRtFo+F3Ao4Sf1C0bpLKejpKB/+j6MA==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.5.tgz", + "integrity": "sha512-ZJpeIYYueOz/i/ONzrfof8g89kNdO2hjGuvULROo3O8rlB2CRtSseE5KeirnyE4t/thAn/EwvS/vuQeJCn+NZg==", "dev": true, - "license": "MIT", - "dependencies": { - "mute-stream": "^1.0.0" - }, "engines": { "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/@isaacs/cliui": { @@ -12574,7 +19213,6 @@ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -12592,7 +19230,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -12605,7 +19242,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -12613,12 +19249,34 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@isaacs/cliui/node_modules/strip-ansi": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" }, @@ -12634,7 +19292,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -12648,11 +19305,10 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -12667,7 +19323,6 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -12677,7 +19332,6 @@ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -12686,33 +19340,23 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.25", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, - "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@kamilkisiela/fast-url-parser": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@kamilkisiela/fast-url-parser/-/fast-url-parser-1.1.4.tgz", - "integrity": "sha512-gbkePEBupNydxCelHCESvFSFM8XPh1Zs/OAVRW/rKpEqPAl5PbOM90Si8mv9bvnR53uPD2s/FiRxdvSejpRJew==", - "dev": true, - "license": "MIT" - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -12726,7 +19370,6 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -12736,7 +19379,6 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -12746,11 +19388,11 @@ } }, "node_modules/@parcel/watcher": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.4.1.tgz", - "integrity": "sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.1.tgz", + "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", "dev": true, - "license": "MIT", + "hasInstallScript": true, "dependencies": { "detect-libc": "^1.0.3", "is-glob": "^4.0.3", @@ -12765,29 +19407,29 @@ "url": "https://opencollective.com/parcel" }, "optionalDependencies": { - "@parcel/watcher-android-arm64": "2.4.1", - "@parcel/watcher-darwin-arm64": "2.4.1", - "@parcel/watcher-darwin-x64": "2.4.1", - "@parcel/watcher-freebsd-x64": "2.4.1", - "@parcel/watcher-linux-arm-glibc": "2.4.1", - "@parcel/watcher-linux-arm64-glibc": "2.4.1", - "@parcel/watcher-linux-arm64-musl": "2.4.1", - "@parcel/watcher-linux-x64-glibc": "2.4.1", - "@parcel/watcher-linux-x64-musl": "2.4.1", - "@parcel/watcher-win32-arm64": "2.4.1", - "@parcel/watcher-win32-ia32": "2.4.1", - "@parcel/watcher-win32-x64": "2.4.1" + "@parcel/watcher-android-arm64": "2.5.1", + "@parcel/watcher-darwin-arm64": "2.5.1", + "@parcel/watcher-darwin-x64": "2.5.1", + "@parcel/watcher-freebsd-x64": "2.5.1", + "@parcel/watcher-linux-arm-glibc": "2.5.1", + "@parcel/watcher-linux-arm-musl": "2.5.1", + "@parcel/watcher-linux-arm64-glibc": "2.5.1", + "@parcel/watcher-linux-arm64-musl": "2.5.1", + "@parcel/watcher-linux-x64-glibc": "2.5.1", + "@parcel/watcher-linux-x64-musl": "2.5.1", + "@parcel/watcher-win32-arm64": "2.5.1", + "@parcel/watcher-win32-ia32": "2.5.1", + "@parcel/watcher-win32-x64": "2.5.1" } }, "node_modules/@parcel/watcher-android-arm64": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz", - "integrity": "sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", + "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "android" @@ -12801,14 +19443,13 @@ } }, "node_modules/@parcel/watcher-darwin-arm64": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz", - "integrity": "sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", + "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -12822,14 +19463,13 @@ } }, "node_modules/@parcel/watcher-darwin-x64": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz", - "integrity": "sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", + "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -12843,14 +19483,13 @@ } }, "node_modules/@parcel/watcher-freebsd-x64": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz", - "integrity": "sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", + "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "freebsd" @@ -12864,14 +19503,33 @@ } }, "node_modules/@parcel/watcher-linux-arm-glibc": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz", - "integrity": "sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", + "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", + "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", "cpu": [ "arm" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -12885,14 +19543,13 @@ } }, "node_modules/@parcel/watcher-linux-arm64-glibc": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz", - "integrity": "sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", + "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -12906,14 +19563,13 @@ } }, "node_modules/@parcel/watcher-linux-arm64-musl": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz", - "integrity": "sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", + "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -12927,14 +19583,13 @@ } }, "node_modules/@parcel/watcher-linux-x64-glibc": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz", - "integrity": "sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", + "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -12948,14 +19603,13 @@ } }, "node_modules/@parcel/watcher-linux-x64-musl": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz", - "integrity": "sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", + "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "linux" @@ -12969,14 +19623,13 @@ } }, "node_modules/@parcel/watcher-win32-arm64": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz", - "integrity": "sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", + "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", "cpu": [ "arm64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -12990,14 +19643,13 @@ } }, "node_modules/@parcel/watcher-win32-ia32": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz", - "integrity": "sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", + "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", "cpu": [ "ia32" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -13011,14 +19663,13 @@ } }, "node_modules/@parcel/watcher-win32-x64": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz", - "integrity": "sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", + "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", "cpu": [ "x64" ], "dev": true, - "license": "MIT", "optional": true, "os": [ "win32" @@ -13036,470 +19687,530 @@ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "dev": true, - "license": "MIT", "optional": true, "engines": { "node": ">=14" } }, + "node_modules/@sec-ant/readable-stream": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz", + "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==", + "dev": true + }, + "node_modules/@sindresorhus/merge-streams": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", + "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@smithy/abort-controller": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.4.tgz", - "integrity": "sha512-VupaALAQlXViW3/enTf/f5l5JZYSAxoJL7f0nanhNNKnww6DGCg1oYIuNP78KDugnkwthBO6iEcym16HhWV8RQ==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.0.2.tgz", + "integrity": "sha512-Sl/78VDtgqKxN2+1qduaVE140XF+Xg+TafkncspwM4jFP/LHr76ZHmIY/y3V1M0mMLNk+Je6IGbzxy23RSToMw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/chunked-blob-reader": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-3.0.0.tgz", - "integrity": "sha512-sbnURCwjF0gSToGlsBiAmd1lRCmSn72nu9axfJu5lIx6RUEgHu6GwTMbqCdhQSi0Pumcm5vFxsi9XWXb2mTaoA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-5.0.0.tgz", + "integrity": "sha512-+sKqDBQqb036hh4NPaUiEkYFkTUGYzRsn3EuFhyfQfMy6oGHEUJDurLP9Ufb5dasr/XiAmPNMr6wa9afjQB+Gw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/chunked-blob-reader-native": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-3.0.0.tgz", - "integrity": "sha512-VDkpCYW+peSuM4zJip5WDfqvg2Mo/e8yxOv3VF1m11y7B8KKMKVFtmZWDe36Fvk8rGuWrPZHHXZ7rR7uM5yWyg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-4.0.0.tgz", + "integrity": "sha512-R9wM2yPmfEMsUmlMlIgSzOyICs0x9uu7UTHoccMyt7BWw8shcGM8HqB355+BZCPBcySvbTYMs62EgEQkNxz2ig==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-base64": "^3.0.0", + "@smithy/util-base64": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/chunked-blob-reader-native/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/config-resolver": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.8.tgz", - "integrity": "sha512-Tv1obAC18XOd2OnDAjSWmmthzx6Pdeh63FbLin8MlPiuJ2ATpKkq0NcNOJFr0dO+JmZXnwu8FQxKJ3TKJ3Hulw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.1.0.tgz", + "integrity": "sha512-8smPlwhga22pwl23fM5ew4T9vfLUCeFXlcqNOCD5M5h8VmNPNUE9j6bQSuRXpDSV11L/E/SwEBQuW8hr6+nS1A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/types": "^3.4.2", - "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/util-config-provider": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/config-resolver/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/config-resolver/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/core": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.4.3.tgz", - "integrity": "sha512-4LTusLqFMRVQUfC3RNuTg6IzYTeJNpydRdTKq7J5wdEyIRQSu3rGIa3s80mgG2hhe6WOZl9IqTSo1pgbn6EHhA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.2.0.tgz", + "integrity": "sha512-k17bgQhVZ7YmUvA8at4af1TDpl0NDMBuBKJl8Yg0nrefwmValU+CnA5l/AriVdQNthU/33H3nK71HrLgqOPr1Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.3", - "@smithy/middleware-retry": "^3.0.18", - "@smithy/middleware-serde": "^3.0.6", - "@smithy/protocol-http": "^4.1.3", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", - "@smithy/util-utf8": "^3.0.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-body-length-browser": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-stream": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/credential-provider-imds": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.3.tgz", - "integrity": "sha512-VoxMzSzdvkkjMJNE38yQgx4CfnmT+Z+5EUXkg4x7yag93eQkVQgZvN3XBSHC/ylfBbLbAtdu7flTCChX9I+mVg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.2.tgz", + "integrity": "sha512-32lVig6jCaWBHnY+OEQ6e6Vnt5vDHaLiydGrwYMW9tPqO688hPGTYRamYJ1EptxEC2rAwJrHWmPoKRBl4iTa8w==", + "dev": true, + "dependencies": { + "@smithy/node-config-provider": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/eventstream-codec": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.0.2.tgz", + "integrity": "sha512-p+f2kLSK7ZrXVfskU/f5dzksKTewZk8pJLPvER3aFHPt76C2MxD9vNatSfLzzQSQB4FNO96RK4PSXfhD1TTeMQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/property-provider": "^3.1.6", - "@smithy/types": "^3.4.2", - "@smithy/url-parser": "^3.0.6", + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-hex-encoding": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/credential-provider-imds/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "node_modules/@smithy/eventstream-serde-browser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.0.2.tgz", + "integrity": "sha512-CepZCDs2xgVUtH7ZZ7oDdZFH8e6Y2zOv8iiX6RhndH69nlojCALSKK+OXwZUgOtUZEUaZ5e1hULVCHYbCn7pug==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-serde-universal": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/credential-provider-imds/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "node_modules/@smithy/eventstream-serde-config-resolver": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.1.0.tgz", + "integrity": "sha512-1PI+WPZ5TWXrfj3CIoKyUycYynYJgZjuQo8U+sphneOtjsgrttYybdqESFReQrdWJ+LKt6NEdbYzmmfDBmjX2A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/eventstream-codec": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-3.1.5.tgz", - "integrity": "sha512-6pu+PT2r+5ZnWEV3vLV1DzyrpJ0TmehQlniIDCSpZg6+Ji2SfOI38EqUyQ+O8lotVElCrfVc9chKtSMe9cmCZQ==", + "node_modules/@smithy/eventstream-serde-node": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.0.2.tgz", + "integrity": "sha512-C5bJ/C6x9ENPMx2cFOirspnF9ZsBVnBMtP6BdPl/qYSuUawdGQ34Lq0dMcf42QTjUZgWGbUIZnz6+zLxJlb9aw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@aws-crypto/crc32": "5.2.0", - "@smithy/types": "^3.4.2", - "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/eventstream-serde-universal": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, - "node_modules/@smithy/eventstream-serde-browser": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.9.tgz", - "integrity": "sha512-PiQLo6OQmZAotJweIcObL1H44gkvuJACKMNqpBBe5Rf2Ax1DOcGi/28+feZI7yTe1ERHlQQaGnm8sSkyDUgsMg==", + "node_modules/@smithy/eventstream-serde-universal": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.0.2.tgz", + "integrity": "sha512-St8h9JqzvnbB52FtckiHPN4U/cnXcarMniXRXTKn0r4b4XesZOGiAyUdj1aXbqqn1icSqBlzzUsCl6nPB018ng==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.8", - "@smithy/types": "^3.4.2", + "@smithy/eventstream-codec": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/eventstream-serde-config-resolver": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.6.tgz", - "integrity": "sha512-iew15It+c7WfnVowWkt2a7cdPp533LFJnpjDQgfZQcxv2QiOcyEcea31mnrk5PVbgo0nNH3VbYGq7myw2q/F6A==", + "node_modules/@smithy/fetch-http-handler": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.2.tgz", + "integrity": "sha512-+9Dz8sakS9pe7f2cBocpJXdeVjMopUDLgZs1yWeu7h++WqSbjUYv/JAJwKwXw1HV6gq1jyWjxuyn24E2GhoEcQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/querystring-builder": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/util-base64": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/eventstream-serde-node": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.8.tgz", - "integrity": "sha512-6m+wI+fT0na+6oao6UqALVA38fsScCpoG5UO/A8ZSyGLnPM2i4MS1cFUhpuALgvLMxfYoTCh7qSeJa0aG4IWpQ==", + "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/querystring-builder": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.2.tgz", + "integrity": "sha512-NTOs0FwHw1vimmQM4ebh+wFQvOwkEf/kQL6bSM1Lock+Bv4I89B3hGYoUEPkmvYPkDKyp5UdXJYu+PoTQ3T31Q==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-serde-universal": "^3.0.8", - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", + "@smithy/util-uri-escape": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/eventstream-serde-universal": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.8.tgz", - "integrity": "sha512-09tqzIQ6e+7jLqGvRji1yJoDbL/zob0OFhq75edgStWErGLf16+yI5hRc/o9/YAybOhUZs/swpW2SPn892G5Gg==", + "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/eventstream-codec": "^3.1.5", - "@smithy/types": "^3.4.2", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, - "node_modules/@smithy/fetch-http-handler": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.7.tgz", - "integrity": "sha512-Ra6IPI1spYLO+t62/3jQbodjOwAbto9wlpJdHZwkycm0Kit+GVpzHW/NMmSgY4rK1bjJ4qLAmCnaBzePO5Nkkg==", + "node_modules/@smithy/fetch-http-handler/node_modules/@smithy/util-uri-escape": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz", + "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.3", - "@smithy/querystring-builder": "^3.0.6", - "@smithy/types": "^3.4.2", - "@smithy/util-base64": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/hash-blob-browser": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-3.1.5.tgz", - "integrity": "sha512-Vi3eoNCmao4iKglS80ktYnBOIqZhjbDDwa1IIbF/VaJ8PsHnZTQ5wSicicPrU7nTI4JPFn92/txzWkh4GlK18Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.0.2.tgz", + "integrity": "sha512-3g188Z3DyhtzfBRxpZjU8R9PpOQuYsbNnyStc/ZVS+9nVX1f6XeNOa9IrAh35HwwIZg+XWk8bFVtNINVscBP+g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/chunked-blob-reader": "^3.0.0", - "@smithy/chunked-blob-reader-native": "^3.0.0", - "@smithy/types": "^3.4.2", + "@smithy/chunked-blob-reader": "^5.0.0", + "@smithy/chunked-blob-reader-native": "^4.0.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/hash-node": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.6.tgz", - "integrity": "sha512-c/FHEdKK/7DU2z6ZE91L36ahyXWayR3B+FzELjnYq7wH5YqIseM24V+pWCS9kFn1Ln8OFGTf+pyYPiHZuX0s/Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.0.2.tgz", + "integrity": "sha512-VnTpYPnRUE7yVhWozFdlxcYknv9UN7CeOqSrMH+V877v4oqtVYuoqhIhtSjmGPvYrYnAkaM61sLMKHvxL138yg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^4.2.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/hash-stream-node": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-3.1.5.tgz", - "integrity": "sha512-61CyFCzqN3VBfcnGX7mof/rkzLb8oHjm4Lr6ZwBIRpBssBb8d09ChrZAqinP2rUrA915BRNkq9NpJz18N7+3hQ==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.0.2.tgz", + "integrity": "sha512-POWDuTznzbIwlEXEvvXoPMS10y0WKXK790soe57tFRfvf4zBHyzE529HpZMqmDdwG9MfFflnyzndUQ8j78ZdSg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/invalid-dependency": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.6.tgz", - "integrity": "sha512-czM7Ioq3s8pIXht7oD+vmgy4Wfb4XavU/k/irO8NdXFFOx7YAlsCCcKOh/lJD1mJSYQqiR7NmpZ9JviryD/7AQ==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.0.2.tgz", + "integrity": "sha512-GatB4+2DTpgWPday+mnUkoumP54u/MDM/5u44KF9hIu8jF0uafZtQLcdfIKkIcUNuF/fBojpLEHZS/56JqPeXQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/is-array-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", - "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-4.0.0.tgz", + "integrity": "sha512-saYhF8ZZNoJDTvJBEWgeBccCg+yvp1CX+ed12yORU3NilJScfc6gfch2oVb4QgxZrGUx3/ZJlb+c/dJbyupxlw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/md5-js": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-3.0.6.tgz", - "integrity": "sha512-Ze690T8O3M5SVbb70WormwrKzVf9QQRtIuxtJDgpUQDkmt+PtdYDetBbyCbF9ryupxLw6tgzWKgwffAShhVIXQ==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.0.2.tgz", + "integrity": "sha512-Hc0R8EiuVunUewCse2syVgA2AfSRco3LyAv07B/zCOMa+jpXI9ll+Q21Nc6FAlYPcpNcAXqBzMhNs1CD/pP2bA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", - "@smithy/util-utf8": "^3.0.0", + "@smithy/types": "^4.2.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-content-length": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.8.tgz", - "integrity": "sha512-VuyszlSO49WKh3H9/kIO2kf07VUwGV80QRiaDxUfP8P8UKlokz381ETJvwLhwuypBYhLymCYyNhB3fLAGBX2og==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.0.2.tgz", + "integrity": "sha512-hAfEXm1zU+ELvucxqQ7I8SszwQ4znWMbNv6PLMndN83JJN41EPuS93AIyh2N+gJ6x8QFhzSO6b7q2e6oClDI8A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-endpoint": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.1.3.tgz", - "integrity": "sha512-KeM/OrK8MVFUsoJsmCN0MZMVPjKKLudn13xpgwIMpGTYpA8QZB2Xq5tJ+RE6iu3A6NhOI4VajDTwBsm8pwwrhg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.0.tgz", + "integrity": "sha512-xhLimgNCbCzsUppRTGXWkZywksuTThxaIB0HwbpsVLY5sceac4e1TZ/WKYqufQLaUy+gUSJGNdwD2jo3cXL0iA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-serde": "^3.0.6", - "@smithy/node-config-provider": "^3.1.7", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", - "@smithy/url-parser": "^3.0.6", - "@smithy/util-middleware": "^3.0.6", + "@smithy/core": "^3.2.0", + "@smithy/middleware-serde": "^4.0.3", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "@smithy/url-parser": "^4.0.2", + "@smithy/util-middleware": "^4.0.2", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-endpoint/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-retry": { - "version": "3.0.18", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.18.tgz", - "integrity": "sha512-YU1o/vYob6vlqZdd97MN8cSXRToknLXhFBL3r+c9CZcnxkO/rgNZ++CfgX2vsmnEKvlqdi26+SRtSzlVp5z6Mg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.1.0.tgz", + "integrity": "sha512-2zAagd1s6hAaI/ap6SXi5T3dDwBOczOMCSkkYzktqN1+tzbk1GAsHNAdo/1uzxz3Ky02jvZQwbi/vmDA6z4Oyg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/protocol-http": "^4.1.3", - "@smithy/service-error-classification": "^3.0.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", - "@smithy/util-middleware": "^3.0.6", - "@smithy/util-retry": "^3.0.6", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/service-error-classification": "^4.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-retry": "^4.0.2", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-retry/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-retry/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-serde": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.6.tgz", - "integrity": "sha512-KKTUSl1MzOM0MAjGbudeaVNtIDo+PpekTBkCNwvfZlKndodrnvRo+00USatiyLOc0ujjO9UydMRu3O9dYML7ag==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.0.3.tgz", + "integrity": "sha512-rfgDVrgLEVMmMn0BI8O+8OVr6vXzjV7HZj57l0QxslhzbvVfikZbVfBVthjLHqib4BW44QhcIgJpvebHlRaC9A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/middleware-stack": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.6.tgz", - "integrity": "sha512-2c0eSYhTQ8xQqHMcRxLMpadFbTXg6Zla5l0mwNftFCZMQmuhI7EbAJMx6R5eqfuV3YbJ3QGyS3d5uSmrHV8Khg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.0.2.tgz", + "integrity": "sha512-eSPVcuJJGVYrFYu2hEq8g8WWdJav3sdrI4o2c6z/rjnYDd3xH9j9E7deZQCzFn4QvGPouLngH3dQ+QVTxv5bOQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/node-config-provider": { @@ -13507,7 +20218,6 @@ "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.3.0.tgz", "integrity": "sha512-0elK5/03a1JPWMDPaS726Iw6LpQg80gFut1tNpPfxFuChEEklo2yL823V94SpTZTxmKlXFtFgsP55uh3dErnIg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/property-provider": "^2.2.0", "@smithy/shared-ini-file-loader": "^2.4.0", @@ -13523,7 +20233,6 @@ "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.2.0.tgz", "integrity": "sha512-+xiil2lFhtTRzXkx8F053AV46QnIw6e7MV8od5Mi68E1ICOjCeCHw2XfLnDEUHnT9WGUIkwcqavXjfwuJbGlpg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^2.12.0", "tslib": "^2.6.2" @@ -13537,7 +20246,6 @@ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -13546,58 +20254,80 @@ } }, "node_modules/@smithy/node-http-handler": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.2.2.tgz", - "integrity": "sha512-42Cy4/oT2O+00aiG1iQ7Kd7rE6q8j7vI0gFfnMlUiATvyo8vefJkhb7O10qZY0jAqo5WZdUzfl9IV6wQ3iMBCg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.0.4.tgz", + "integrity": "sha512-/mdqabuAT3o/ihBGjL94PUbTSPSRJ0eeVTdgADzow0wRJ0rN4A27EOrtlK56MYiO1fDvlO3jVTCxQtQmK9dZ1g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.1.4", - "@smithy/protocol-http": "^4.1.3", - "@smithy/querystring-builder": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/abort-controller": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/querystring-builder": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/node-http-handler/node_modules/@smithy/querystring-builder": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.0.2.tgz", + "integrity": "sha512-NTOs0FwHw1vimmQM4ebh+wFQvOwkEf/kQL6bSM1Lock+Bv4I89B3hGYoUEPkmvYPkDKyp5UdXJYu+PoTQ3T31Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "@smithy/util-uri-escape": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/node-http-handler/node_modules/@smithy/util-uri-escape": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz", + "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/property-provider": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.6.tgz", - "integrity": "sha512-NK3y/T7Q/Bw+Z8vsVs9MYIQ5v7gOX7clyrXcwhhIBQhbPgRl6JDrZbusO9qWDhcEus75Tg+VCxtIRfo3H76fpw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.0.2.tgz", + "integrity": "sha512-wNRoQC1uISOuNc2s4hkOYwYllmiyrvVXWMtq+TysNRVQaHm4yoafYQyjN/goYZS+QbYlPIbb/QRjaUZMuzwQ7A==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/protocol-http": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.3.tgz", - "integrity": "sha512-GcbMmOYpH9iRqtC05RbRnc/0FssxSTHlmaNhYBTgSgNCYpdR3Kt88u5GAZTBmouzv+Zlj/VRv92J9ruuDeJuEw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.1.0.tgz", + "integrity": "sha512-KxAOL1nUNw2JTYrtviRRjEnykIDhxc84qMBzxvu1MUfQfHTuBlCG7PA6EdVwqpJjH7glw7FqQoFxUJSyBQgu7g==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/querystring-builder": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.6.tgz", - "integrity": "sha512-sQe08RunoObe+Usujn9+R2zrLuQERi3CWvRO3BvnoWSYUaIrLKuAIeY7cMeDax6xGyfIP3x/yFWbEKSXvOnvVg==", + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.11.tgz", + "integrity": "sha512-u+5HV/9uJaeLj5XTb6+IEF/dokWWkEqJ0XiaRRogyREmKGUgZnNecLucADLdauWFKUNbQfulHFEZEdjwEBjXRg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^3.7.2", "@smithy/util-uri-escape": "^3.0.0", "tslib": "^2.6.2" }, @@ -13605,31 +20335,41 @@ "node": ">=16.0.0" } }, - "node_modules/@smithy/querystring-parser": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.6.tgz", - "integrity": "sha512-UJKw4LlEkytzz2Wq+uIdHf6qOtFfee/o7ruH0jF5I6UAuU+19r9QV7nU3P/uI0l6+oElRHmG/5cBBcGJrD7Ozg==", + "node_modules/@smithy/querystring-builder/node_modules/@smithy/types": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.2.tgz", + "integrity": "sha512-bNwBYYmN8Eh9RyjS1p2gW6MIhSO2rl7X9QeLM8iTdcGRP+eDiIWDt66c9IysCc22gefKszZv+ubV9qZc7hdESg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", "tslib": "^2.6.2" }, "engines": { "node": ">=16.0.0" } }, + "node_modules/@smithy/querystring-parser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.0.2.tgz", + "integrity": "sha512-v6w8wnmZcVXjfVLjxw8qF7OwESD9wnpjp0Dqry/Pod0/5vcEA3qxCr+BhbOHlxS8O+29eLpT3aagxXGwIoEk7Q==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@smithy/service-error-classification": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.6.tgz", - "integrity": "sha512-53SpchU3+DUZrN7J6sBx9tBiCVGzsib2e4sc512Q7K9fpC5zkJKs6Z9s+qbMxSYrkEkle6hnMtrts7XNkMJJMg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.0.2.tgz", + "integrity": "sha512-LA86xeFpTKn270Hbkixqs5n73S+LVM0/VZco8dqd+JT75Dyx3Lcw/MraL7ybjmz786+160K8rPOmhsq0SocoJQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2" + "@smithy/types": "^4.2.0" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/shared-ini-file-loader": { @@ -13637,7 +20377,6 @@ "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.4.0.tgz", "integrity": "sha512-WyujUJL8e1B6Z4PBfAqC/aGY1+C7T0w20Gih3yrvJSk97gpiVfB+y7c46T4Nunk+ZngLq0rOIdeVeIklk0R3OA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/types": "^2.12.0", "tslib": "^2.6.2" @@ -13651,7 +20390,6 @@ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.12.0.tgz", "integrity": "sha512-QwYgloJ0sVNBeBuBs65cIkTbfzV/Q6ZNPCJ99EICFEdJYG50nGIY/uYXp+TbsdJReIuPr0a0kXmCvren3MbRRw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -13660,77 +20398,126 @@ } }, "node_modules/@smithy/signature-v4": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.1.3.tgz", - "integrity": "sha512-YD2KYSCEEeFHcWZ1E3mLdAaHl8T/TANh6XwmocQ6nPcTdBfh4N5fusgnblnWDlnlU1/cUqEq3PiGi22GmT2Lkg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.0.2.tgz", + "integrity": "sha512-Mz+mc7okA73Lyz8zQKJNyr7lIcHLiPYp0+oiqiMNc/t7/Kf2BENs5d63pEj7oPqdjaum6g0Fc8wC78dY1TgtXw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-middleware": "^3.0.6", - "@smithy/util-uri-escape": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/is-array-buffer": "^4.0.0", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-hex-encoding": "^4.0.0", + "@smithy/util-middleware": "^4.0.2", + "@smithy/util-uri-escape": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/signature-v4/node_modules/@smithy/util-uri-escape": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.0.0.tgz", + "integrity": "sha512-77yfbCbQMtgtTylO9itEAdpPXSog3ZxMe09AEhm0dU0NLTalV70ghDZFR+Nfi1C60jnJoh/Re4090/DuZh2Omg==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/smithy-client": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.3.2.tgz", - "integrity": "sha512-RKDfhF2MTwXl7jan5d7QfS9eCC6XJbO3H+EZAvLQN8A5in4ib2Ml4zoeLo57w9QrqFekBPcsoC2hW3Ekw4vQ9Q==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.2.0.tgz", + "integrity": "sha512-Qs65/w30pWV7LSFAez9DKy0Koaoh3iHhpcpCCJ4waj/iqwsuSzJna2+vYwq46yBaqO5ZbP9TjUsATUNxrKeBdw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/middleware-endpoint": "^3.1.3", - "@smithy/middleware-stack": "^3.0.6", - "@smithy/protocol-http": "^4.1.3", - "@smithy/types": "^3.4.2", - "@smithy/util-stream": "^3.1.6", + "@smithy/core": "^3.2.0", + "@smithy/middleware-endpoint": "^4.1.0", + "@smithy/middleware-stack": "^4.0.2", + "@smithy/protocol-http": "^5.1.0", + "@smithy/types": "^4.2.0", + "@smithy/util-stream": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/types": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.4.2.tgz", - "integrity": "sha512-tHiFcfcVedVBHpmHUEUHOCCih8iZbIAYn9NvPsNzaPm/237I3imdDdZoOC8c87H5HBAVEa06tTgb+OcSWV9g5w==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.2.0.tgz", + "integrity": "sha512-7eMk09zQKCO+E/ivsjQv+fDlOupcFUCSC/L2YUPgwhvowVGWbPQHjEFcmjt7QQ4ra5lyowS92SV53Zc6XD4+fg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/url-parser": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.6.tgz", - "integrity": "sha512-47Op/NU8Opt49KyGpHtVdnmmJMsp2hEwBdyjuFB9M2V5QVOwA7pBhhxKN5z6ztKGrMw76gd8MlbPuzzvaAncuQ==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.0.2.tgz", + "integrity": "sha512-Bm8n3j2ScqnT+kJaClSVCMeiSenK6jVAzZCNewsYWuZtnBehEz4r2qP0riZySZVfzB+03XZHJeqfmJDkeeSLiQ==", + "dev": true, + "dependencies": { + "@smithy/querystring-parser": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/util-base64": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-3.0.0.tgz", + "integrity": "sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-base64/node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", + "dev": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-base64/node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/querystring-parser": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/is-array-buffer": "^3.0.0", "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, - "node_modules/@smithy/util-base64": { + "node_modules/@smithy/util-base64/node_modules/@smithy/util-utf8": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-3.0.0.tgz", - "integrity": "sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "engines": { @@ -13738,226 +20525,228 @@ } }, "node_modules/@smithy/util-body-length-browser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", - "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.0.0.tgz", + "integrity": "sha512-sNi3DL0/k64/LO3A256M+m3CDdG6V7WKWHdAiBBMUN8S3hK3aMPhwnPik2A/a2ONN+9doY9UxaLfgqsIRg69QA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/util-body-length-node": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", - "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.0.0.tgz", + "integrity": "sha512-q0iDP3VsZzqJyje8xJWEJCNIu3lktUGVoSy1KB0UWym2CL1siV3artm+u1DFYTLejpsrdGyCSWBdGNjJzfDPjg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-buffer-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", - "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.0.0.tgz", + "integrity": "sha512-9TOQ7781sZvddgO8nxueKi3+yGvkY35kotA0Y6BWRajAv8jjmigQ1sBwz0UX47pQMYXJPahSKEKYFgt+rXdcug==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/is-array-buffer": "^3.0.0", + "@smithy/is-array-buffer": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-config-provider": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", - "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-4.0.0.tgz", + "integrity": "sha512-L1RBVzLyfE8OXH+1hsJ8p+acNUSirQnWQ6/EgpchV88G6zGBTDPdXiiExei6Z1wR2RxYvxY/XLw6AMNCCt8H3w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-browser": { - "version": "3.0.18", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.18.tgz", - "integrity": "sha512-/eveCzU6Z6Yw8dlYQLA4rcK30XY0E4L3lD3QFHm59mzDaWYelrXE1rlynuT3J6qxv+5yNy3a1JuzhG5hk5hcmw==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.8.tgz", + "integrity": "sha512-ZTypzBra+lI/LfTYZeop9UjoJhhGRTg3pxrNpfSTQLd3AJ37r2z4AXTKpq1rFXiiUIJsYyFgNJdjWRGP/cbBaQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", "bowser": "^2.11.0", "tslib": "^2.6.2" }, "engines": { - "node": ">= 10.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-node": { - "version": "3.0.18", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.18.tgz", - "integrity": "sha512-9cfzRjArtOFPlTYRREJk00suUxVXTgbrzVncOyMRTUeMKnecG/YentLF3cORa+R6mUOMSrMSnT18jos1PKqK6Q==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.8.tgz", + "integrity": "sha512-Rgk0Jc/UDfRTzVthye/k2dDsz5Xxs9LZaKCNPgJTRyoyBoeiNCnHsYGOyu1PKN+sDyPnJzMOz22JbwxzBp9NNA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/config-resolver": "^3.0.8", - "@smithy/credential-provider-imds": "^3.2.3", - "@smithy/node-config-provider": "^3.1.7", - "@smithy/property-provider": "^3.1.6", - "@smithy/smithy-client": "^3.3.2", - "@smithy/types": "^3.4.2", + "@smithy/config-resolver": "^4.1.0", + "@smithy/credential-provider-imds": "^4.0.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/smithy-client": "^4.2.0", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">= 10.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-endpoints": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.2.tgz", - "integrity": "sha512-FEISzffb4H8DLzGq1g4MuDpcv6CIG15fXoQzDH9SjpRJv6h7J++1STFWWinilG0tQh9H1v2UKWG19Jjr2B16zQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.0.2.tgz", + "integrity": "sha512-6QSutU5ZyrpNbnd51zRTL7goojlcnuOB55+F9VBD+j8JpRY50IGamsjlycrmpn8PQkmJucFW8A0LSfXj7jjtLQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/node-config-provider": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/node-config-provider": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-endpoints/node_modules/@smithy/node-config-provider": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.7.tgz", - "integrity": "sha512-g3mfnC3Oo8pOI0dYuPXLtdW1WGVb3bR2tkV21GNkm0ZvQjLTtamXAwCWt/FCb0HGvKt3gHHmF1XerG0ICfalOg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/property-provider": "^3.1.6", - "@smithy/shared-ini-file-loader": "^3.1.7", - "@smithy/types": "^3.4.2", + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-endpoints/node_modules/@smithy/shared-ini-file-loader": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.7.tgz", - "integrity": "sha512-IA4K2qTJYXkF5OfVN4vsY1hfnUZjaslEE8Fsr/gGFza4TAC2A9NfnZuSY2srQIbt9bwtjHiAayrRVgKse4Q7fA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-hex-encoding": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", - "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.0.0.tgz", + "integrity": "sha512-Yk5mLhHtfIgW2W2WQZWSg5kuMZCVbvhFmC7rV4IO2QqnZdbEFPmQnCcGMAX2z/8Qj3B9hYYNjZOhWym+RwhePw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-middleware": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.6.tgz", - "integrity": "sha512-BxbX4aBhI1O9p87/xM+zWy0GzT3CEVcXFPBRDoHAM+pV0eSW156pR+PSYEz0DQHDMYDsYAflC2bQNz2uaDBUZQ==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.0.2.tgz", + "integrity": "sha512-6GDamTGLuBQVAEuQ4yDQ+ti/YINf/MEmIegrEeg7DdB/sld8BX1lqt9RRuIcABOhAGTA50bRbPzErez7SlDtDQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/types": "^3.4.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-retry": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.6.tgz", - "integrity": "sha512-BRZiuF7IwDntAbevqMco67an0Sr9oLQJqqRCsSPZZHYRnehS0LHDAkJk/pSmI7Z8c/1Vet294H7fY2fWUgB+Rg==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.0.2.tgz", + "integrity": "sha512-Qryc+QG+7BCpvjloFLQrmlSd0RsVRHejRXd78jNO3+oREueCjwG1CCEH1vduw/ZkM1U9TztwIKVIi3+8MJScGg==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/service-error-classification": "^3.0.6", - "@smithy/types": "^3.4.2", + "@smithy/service-error-classification": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-stream": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.1.6.tgz", - "integrity": "sha512-lQEUfTx1ht5CRdvIjdAN/gUL6vQt2wSARGGLaBHNe+iJSkRHlWzY+DOn0mFTmTgyU3jcI5n9DkT5gTzYuSOo6A==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.2.0.tgz", + "integrity": "sha512-Vj1TtwWnuWqdgQI6YTUF5hQ/0jmFiOYsc51CSMgj7QfyO+RF4EnT2HNjoviNlOOmgzgvf3f5yno+EiC4vrnaWQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/fetch-http-handler": "^3.2.7", - "@smithy/node-http-handler": "^3.2.2", - "@smithy/types": "^3.4.2", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-buffer-from": "^3.0.0", - "@smithy/util-hex-encoding": "^3.0.0", - "@smithy/util-utf8": "^3.0.0", + "@smithy/fetch-http-handler": "^5.0.2", + "@smithy/node-http-handler": "^4.0.4", + "@smithy/types": "^4.2.0", + "@smithy/util-base64": "^4.0.0", + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-hex-encoding": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/util-stream/node_modules/@smithy/util-base64": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.0.0.tgz", + "integrity": "sha512-CvHfCmO2mchox9kjrtzoHkWHxjHZzaFojLc8quxXY7WAAMAg43nuxwv95tATVgQFNDwd4M9S1qFzj40Ul41Kmg==", + "dev": true, + "dependencies": { + "@smithy/util-buffer-from": "^4.0.0", + "@smithy/util-utf8": "^4.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@smithy/util-uri-escape": { @@ -13965,7 +20754,6 @@ "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-3.0.0.tgz", "integrity": "sha512-LqR7qYLgZTD7nWLBecUi4aqolw8Mhza9ArpNEQ881MJJIU2sE5iHCK6TdyqqzcDLy0OPe10IY4T8ctVdtynubg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.6.2" }, @@ -13974,100 +20762,91 @@ } }, "node_modules/@smithy/util-utf8": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", - "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.0.0.tgz", + "integrity": "sha512-b+zebfKCfRdgNJDknHCob3O7FpeYQN6ZG6YLExMcasDHsCXlsXCEuiPZeLnJLpwa5dvPetGlnGCiMHuLwGvFow==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-buffer-from": "^4.0.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@smithy/util-waiter": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.1.5.tgz", - "integrity": "sha512-jYOSvM3H6sZe3CHjzD2VQNCjWBJs+4DbtwBMvUp9y5EnnwNa7NQxTeYeQw0CKCAdGGZ3QvVkyJmvbvs5M/B10A==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.0.3.tgz", + "integrity": "sha512-JtaY3FxmD+te+KSI2FJuEcfNC9T/DGGVf551babM7fAaXhjJUt7oSYurH1Devxd2+BOSUACCgt3buinx4UnmEA==", "dev": true, - "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.1.4", - "@smithy/types": "^3.4.2", + "@smithy/abort-controller": "^4.0.2", + "@smithy/types": "^4.2.0", "tslib": "^2.6.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "node_modules/@types/aws-lambda": { - "version": "8.10.145", - "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.145.tgz", - "integrity": "sha512-dtByW6WiFk5W5Jfgz1VM+YPA21xMXTuSFoLYIDY0L44jDLLflVPtZkYuu3/YxpGcvjzKFBZLU+GyKjR0HOYtyw==", - "dev": true, - "license": "MIT" + "version": "8.10.148", + "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.148.tgz", + "integrity": "sha512-JL+2cfkY9ODQeE06hOxSFNkafjNk4JRBgY837kpoq1GHDttq2U3BA9IzKOWxS4DLjKoymGB4i9uBrlCkjUl1yg==", + "dev": true }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/lodash": { - "version": "4.17.7", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.7.tgz", - "integrity": "sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/mute-stream": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", - "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "20.16.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.5.tgz", - "integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.19.2" - } + "version": "4.17.16", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.16.tgz", + "integrity": "sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==", + "dev": true }, - "node_modules/@types/wrap-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/wrap-ansi/-/wrap-ansi-3.0.0.tgz", - "integrity": "sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==", - "dev": true, - "license": "MIT" + "node_modules/@types/uuid": { + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", + "dev": true }, "node_modules/@typescript/vfs": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.3.6.tgz", "integrity": "sha512-VSLn7rs46Qhe4gYxbK1/IB4NPLvgKl0I6SgeVyJwW5efYAELvDVqf1gVOG7JaKtW8qlMtBaZP02/4TRN39AkEQ==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^4.1.1" } }, + "node_modules/@whatwg-node/disposablestack": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@whatwg-node/disposablestack/-/disposablestack-0.0.6.tgz", + "integrity": "sha512-LOtTn+JgJvX8WfBVJtF08TGrdjuFzGJc4mkP8EdDI8ADbvO7kiexYep1o8dwnt0okb0jYclCDXF13xU7Ge4zSw==", + "dev": true, + "dependencies": { + "@whatwg-node/promise-helpers": "^1.0.0", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@whatwg-node/fetch": { - "version": "0.9.21", - "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.9.21.tgz", - "integrity": "sha512-Wt0jPb+04JjobK0pAAN7mEHxVHcGA9HoP3OyCsZtyAecNQeADXCZ1MihFwVwjsgaRYuGVmNlsCmLxlG6mor8Gw==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.5.tgz", + "integrity": "sha512-+yFJU3hmXPAHJULwx0VzCIsvr/H0lvbPvbOH3areOH3NAuCxCwaJsQ8w6/MwwMcvEWIynSsmAxoyaH04KeosPg==", "dev": true, - "license": "MIT", "dependencies": { - "@whatwg-node/node-fetch": "^0.5.23", + "@whatwg-node/node-fetch": "^0.7.11", "urlpattern-polyfill": "^10.0.0" }, "engines": { @@ -14075,27 +20854,74 @@ } }, "node_modules/@whatwg-node/node-fetch": { - "version": "0.5.26", - "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.5.26.tgz", - "integrity": "sha512-4jXDeZ4IH4bylZ6wu14VEx0aDXXhrN4TC279v9rPmn08g4EYekcYf8wdcOOnS9STjDkb6x77/6xBUTqxGgjr8g==", + "version": "0.7.17", + "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.7.17.tgz", + "integrity": "sha512-Ni8A2H/r6brNf4u8Y7ATxmWUD0xltsQ6a4NnjWSbw4PgaT34CbY+u4QtVsFj9pTC3dBKJADKjac3AieAig+PZA==", "dev": true, - "license": "MIT", "dependencies": { - "@kamilkisiela/fast-url-parser": "^1.1.4", + "@whatwg-node/disposablestack": "^0.0.6", + "@whatwg-node/promise-helpers": "^1.2.5", "busboy": "^1.6.0", - "fast-querystring": "^1.1.1", "tslib": "^2.6.3" }, "engines": { "node": ">=18.0.0" } }, + "node_modules/@whatwg-node/promise-helpers": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@whatwg-node/promise-helpers/-/promise-helpers-1.3.0.tgz", + "integrity": "sha512-486CouizxHXucj8Ky153DDragfkMcHtVEToF5Pn/fInhUUSiCmt9Q4JVBa6UK5q4RammFBtGQ4C9qhGlXU9YbA==", + "dev": true, + "dependencies": { + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dev": true, + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/agent-base": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", + "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -14111,7 +20937,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -14121,7 +20946,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -14132,15 +20956,63 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/archiver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-7.0.1.tgz", + "integrity": "sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==", + "dev": true, + "dependencies": { + "archiver-utils": "^5.0.2", + "async": "^3.2.4", + "buffer-crc32": "^1.0.0", + "readable-stream": "^4.0.0", + "readdir-glob": "^1.1.2", + "tar-stream": "^3.0.0", + "zip-stream": "^6.0.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/archiver-utils": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-5.0.2.tgz", + "integrity": "sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==", + "dev": true, + "dependencies": { + "glob": "^10.0.0", + "graceful-fs": "^4.2.0", + "is-stream": "^2.0.1", + "lazystream": "^1.0.0", + "lodash": "^4.17.15", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" }, "engines": { "node": ">= 0.4" @@ -14154,22 +21026,20 @@ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/array.prototype.flatmap": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", - "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -14179,41 +21049,82 @@ } }, "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", "dev": true, - "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true + }, + "node_modules/ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "dev": true, + "dependencies": { + "tslib": "^2.0.1" }, + "engines": { + "node": ">=4" + } + }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, "engines": { "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">= 4.0.0" + } }, "node_modules/auto-bind": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-4.0.0.tgz", "integrity": "sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -14226,7 +21137,6 @@ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", "dev": true, - "license": "MIT", "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -14238,11 +21148,10 @@ } }, "node_modules/aws-cdk": { - "version": "2.158.0", - "resolved": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.158.0.tgz", - "integrity": "sha512-UcrxBG02RACrnTvfuyZiTuOz8gqOpnqjCMTdVmdpExv5qk9hddhtRAubNaC4xleHuNJnvskYqqVW+Y3Abh6zGQ==", + "version": "2.1006.0", + "resolved": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.1006.0.tgz", + "integrity": "sha512-6qYnCt4mBN+3i/5F+FC2yMETkDHY/IL7gt3EuqKVPcaAO4jU7oXfVSlR60CYRkZWL4fnAurUV14RkJuJyVG/IA==", "dev": true, - "license": "Apache-2.0", "peer": true, "bin": { "cdk": "bin/cdk" @@ -14255,9 +21164,9 @@ } }, "node_modules/aws-cdk-lib": { - "version": "2.158.0", - "resolved": "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.158.0.tgz", - "integrity": "sha512-Pl9CCLM+XRTy6nyyRJM1INEMtwIlZOib0FWyq9i9E388vurw7sNVJ6tAsfLpGIOLHsFQCbF4f6OZ0KSVxmMaiA==", + "version": "2.186.0", + "resolved": "https://registry.npmjs.org/aws-cdk-lib/-/aws-cdk-lib-2.186.0.tgz", + "integrity": "sha512-y/DD4h8CbhwGyPTpoHELATavZe5FWcy1xSuLlReOd3+cCRZ9rAzVSFdPB8kSJUD4nBPrIeGkW1u8ItUOhms17w==", "bundleDependencies": [ "@balena/dockerignore", "case", @@ -14272,23 +21181,21 @@ "mime-types" ], "dev": true, - "license": "Apache-2.0", "peer": true, "dependencies": { - "@aws-cdk/asset-awscli-v1": "^2.2.202", - "@aws-cdk/asset-kubectl-v20": "^2.1.2", + "@aws-cdk/asset-awscli-v1": "^2.2.227", "@aws-cdk/asset-node-proxy-agent-v6": "^2.1.0", - "@aws-cdk/cloud-assembly-schema": "^36.0.24", + "@aws-cdk/cloud-assembly-schema": "^40.7.0", "@balena/dockerignore": "^1.0.2", "case": "1.6.3", - "fs-extra": "^11.2.0", + "fs-extra": "^11.3.0", "ignore": "^5.3.2", - "jsonschema": "^1.4.1", + "jsonschema": "^1.5.0", "mime-types": "^2.1.35", "minimatch": "^3.1.2", "punycode": "^2.3.1", - "semver": "^7.6.3", - "table": "^6.8.2", + "semver": "^7.7.1", + "table": "^6.9.0", "yaml": "1.10.2" }, "engines": { @@ -14428,14 +21335,24 @@ "peer": true }, "node_modules/aws-cdk-lib/node_modules/fast-uri": { - "version": "3.0.1", + "version": "3.0.6", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], "inBundle": true, - "license": "MIT", + "license": "BSD-3-Clause", "peer": true }, "node_modules/aws-cdk-lib/node_modules/fs-extra": { - "version": "11.2.0", + "version": "11.3.0", "dev": true, "inBundle": true, "license": "MIT", @@ -14497,7 +21414,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/jsonschema": { - "version": "1.4.1", + "version": "1.5.0", "dev": true, "inBundle": true, "license": "MIT", @@ -14570,7 +21487,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/semver": { - "version": "7.6.3", + "version": "7.7.1", "dev": true, "inBundle": true, "license": "ISC", @@ -14629,7 +21546,7 @@ } }, "node_modules/aws-cdk-lib/node_modules/table": { - "version": "6.8.2", + "version": "6.9.0", "dev": true, "inBundle": true, "license": "BSD-3-Clause", @@ -14665,12 +21582,17 @@ "node": ">= 6" } }, + "node_modules/b4a": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz", + "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==", + "dev": true + }, "node_modules/babel-generator": { "version": "6.26.1", "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", "dev": true, - "license": "MIT", "dependencies": { "babel-messages": "^6.23.0", "babel-runtime": "^6.26.0", @@ -14687,7 +21609,6 @@ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "integrity": "sha512-Mke0DA0QjUWuJlhsE0ZPPhYiJkRap642SmI/4ztCFaUs6V2AiH1sfecc+57NgaryfAA2VR3v6O+CSjC1jZJKOA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" } @@ -14697,7 +21618,6 @@ "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", "integrity": "sha512-Bl3ZiA+LjqaMtNYopA9TYE9HP1tQ+E5dLxE0XrAzcIJeK2UqF0/EaqXwBn9esd4UmTfEab+P+UYQ1GnioFIb/w==", "dev": true, - "license": "MIT", "dependencies": { "babel-runtime": "^6.22.0" } @@ -14706,15 +21626,13 @@ "version": "7.0.0-beta.0", "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz", "integrity": "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/babel-preset-fbjs": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz", "integrity": "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==", "dev": true, - "license": "MIT", "dependencies": { "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-object-rest-spread": "^7.0.0", @@ -14753,7 +21671,6 @@ "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", "dev": true, - "license": "MIT", "dependencies": { "core-js": "^2.4.0", "regenerator-runtime": "^0.11.0" @@ -14765,22 +21682,19 @@ "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", "dev": true, - "hasInstallScript": true, - "license": "MIT" + "hasInstallScript": true }, "node_modules/babel-runtime/node_modules/regenerator-runtime": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/babel-types": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", "integrity": "sha512-zhe3V/26rCWsEZK8kZN+HaQj5yQ1CilTObixFzKW1UWjqG7618Twz6YEsCnjfg5gBcJh02DrpCkS9h98ZqDY+g==", "dev": true, - "license": "MIT", "dependencies": { "babel-runtime": "^6.26.0", "esutils": "^2.0.2", @@ -14793,7 +21707,6 @@ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", "integrity": "sha512-lxrWP8ejsq+7E3nNjwYmUBMAgjMTZoTI+sdBOpvNyijeDLa29LUn9QaoXAHv4+Z578hbmHHJKZknzxVtvo77og==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -14802,32 +21715,76 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/bare-events": { + "version": "2.5.4", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.4.tgz", + "integrity": "sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA==", "dev": true, - "license": "MIT" + "optional": true + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/basic-ftp": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.5.tgz", + "integrity": "sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } }, "node_modules/big-integer": { "version": "1.6.52", "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", "dev": true, - "license": "Unlicense", "engines": { "node": ">=0.6" } }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/bowser": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/bplist-parser": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", "dev": true, - "license": "MIT", "dependencies": { "big-integer": "^1.6.44" }, @@ -14840,7 +21797,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } @@ -14850,7 +21806,6 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -14859,9 +21814,9 @@ } }, "node_modules/browserslist": { - "version": "4.23.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.3.tgz", - "integrity": "sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==", + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", "dev": true, "funding": [ { @@ -14877,12 +21832,11 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001646", - "electron-to-chromium": "^1.5.4", - "node-releases": "^2.0.18", - "update-browserslist-db": "^1.1.0" + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -14896,24 +21850,40 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } }, + "node_modules/buffer": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", + "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", + "dev": true, + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "node_modules/buffer-crc32": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-1.0.0.tgz", + "integrity": "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/bundle-name": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", "dev": true, - "license": "MIT", "dependencies": { "run-applescript": "^5.0.0" }, @@ -14937,17 +21907,44 @@ } }, "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", "dev": true, - "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" @@ -14961,7 +21958,6 @@ "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.1.tgz", "integrity": "sha512-7fa2WcG4fYFkclIvEmxBbTvmibwF2/agfEBc6q3lOpVu0A13ltLsA+Hr/8Hp6kp5f+G7hKi6t8lys6XxP+1K6Q==", "dev": true, - "license": "MIT", "dependencies": { "pascal-case": "^3.1.1", "tslib": "^1.10.0" @@ -14971,23 +21967,24 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true, - "license": "0BSD" + "dev": true }, "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001660", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001660.tgz", - "integrity": "sha512-GacvNTTuATm26qC74pt+ad1fW15mlQ/zuTzzY1ZoIzECTP8HURDfF43kNxPgf7H1jmelCBQTTbBNxdSXOA7Bqg==", + "version": "1.0.30001707", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001707.tgz", + "integrity": "sha512-3qtRjw/HQSMlDWf+X79N206fepf4SOOU6SQLMaq/0KkZLmSjPxAkBOQQ+FxbHKfHmYLZFfdWsO3KA90ceHPSnw==", "dev": true, "funding": [ { @@ -15002,27 +21999,188 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ], - "license": "CC-BY-4.0" + ] }, "node_modules/capital-case": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", "upper-case-first": "^2.0.2" } }, + "node_modules/cdk-assets": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cdk-assets/-/cdk-assets-3.2.0.tgz", + "integrity": "sha512-fm6I1vB0HEVAwX+IlhSkGlY1SAoEgLwGGmpJmIRFftErnOESHe09hwN1j3cwnWQnX8ggMqJhjdkJKIDg0w03Cw==", + "dev": true, + "dependencies": { + "@aws-cdk/cloud-assembly-schema": "42.0.0", + "@aws-cdk/cx-api": "^2.185.0", + "@aws-sdk/client-ecr": "^3", + "@aws-sdk/client-s3": "^3", + "@aws-sdk/client-secrets-manager": "^3", + "@aws-sdk/client-sts": "^3", + "@aws-sdk/credential-providers": "^3", + "@aws-sdk/lib-storage": "^3", + "@smithy/config-resolver": "^4.0.1", + "@smithy/node-config-provider": "^4.0.1", + "archiver": "^7.0.1", + "glob": "^11.0.1", + "mime": "^2", + "yargs": "^17.7.2" + }, + "bin": { + "cdk-assets": "bin/cdk-assets", + "docker-credential-cdk-assets": "bin/docker-credential-cdk-assets" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/cdk-assets/node_modules/@aws-cdk/cloud-assembly-schema": { + "version": "42.0.0", + "resolved": "https://registry.npmjs.org/@aws-cdk/cloud-assembly-schema/-/cloud-assembly-schema-42.0.0.tgz", + "integrity": "sha512-oaWOcvLGP30mBW5fmCr5SamYD10mQztJ14KJaabh/lDdnCf1yje/rrVYtgnUlJMTZRqm52iTjgnp9oAyeyqhIA==", + "bundleDependencies": [ + "jsonschema", + "semver" + ], + "dev": true, + "dependencies": { + "jsonschema": "~1.4.1", + "semver": "^7.7.1" + }, + "engines": { + "node": ">= 14.15.0" + } + }, + "node_modules/cdk-assets/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/jsonschema": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/cdk-assets/node_modules/@aws-cdk/cloud-assembly-schema/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cdk-assets/node_modules/@smithy/node-config-provider": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.0.2.tgz", + "integrity": "sha512-WgCkILRZfJwJ4Da92a6t3ozN/zcvYyJGUTmfGbgS/FkCcoCjl7G4FJaCDN1ySdvLvemnQeo25FdkyMSTSwulsw==", + "dev": true, + "dependencies": { + "@smithy/property-provider": "^4.0.2", + "@smithy/shared-ini-file-loader": "^4.0.2", + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/cdk-assets/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.2.tgz", + "integrity": "sha512-J9/gTWBGVuFZ01oVA6vdb4DAjf1XbDhK6sLsu3OS9qmLrS6KB5ygpeHiM3miIbj1qgSJ96GYszXFWv6ErJ8QEw==", + "dev": true, + "dependencies": { + "@smithy/types": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/cdk-assets/node_modules/glob": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.1.tgz", + "integrity": "sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^4.0.1", + "minimatch": "^10.0.0", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cdk-assets/node_modules/jackspeak": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.0.tgz", + "integrity": "sha512-9DDdhb5j6cpeitCbvLO7n7J4IxnbM6hoF6O1g4HQ5TfhvvKN8ywDM7668ZhMHRqVmxqhps/F6syWK2KcPxYlkw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cdk-assets/node_modules/lru-cache": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz", + "integrity": "sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==", + "dev": true, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/cdk-assets/node_modules/path-scurry": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", + "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "dev": true, + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/cdk-from-cfn": { + "version": "0.193.0", + "resolved": "https://registry.npmjs.org/cdk-from-cfn/-/cdk-from-cfn-0.193.0.tgz", + "integrity": "sha512-LBKqAnsg12RRhyz+zyByI3H6REiDVNm1vofhdnEXSAIGIBuO0H/cw4mbCpz0Qr9huZYssF9ozGsbwa1K3RF2Tg==", + "dev": true + }, "node_modules/chalk": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -15036,7 +22194,6 @@ "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", "dev": true, - "license": "MIT", "dependencies": { "camel-case": "^4.1.2", "capital-case": "^1.0.4", @@ -15053,11 +22210,10 @@ } }, "node_modules/change-case-all": { - "version": "1.0.14", - "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.14.tgz", - "integrity": "sha512-CWVm2uT7dmSHdO/z1CXT/n47mWonyypzBbuCy5tN7uMg22BsfkhwT6oHmFCAk+gL1LOOxhdbB9SZz3J1KTY3gA==", + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/change-case-all/-/change-case-all-1.0.15.tgz", + "integrity": "sha512-3+GIFhk3sNuvFAJKU46o26OdzudQlPNBCu1ZQi3cMeMHhty1bhDxu2WrEilVNYaGvqUtR1VSigFcJOiS13dRhQ==", "dev": true, - "license": "MIT", "dependencies": { "change-case": "^4.1.2", "is-lower-case": "^2.0.2", @@ -15076,7 +22232,6 @@ "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", "dev": true, - "license": "MIT", "dependencies": { "pascal-case": "^3.1.2", "tslib": "^2.0.3" @@ -15086,23 +22241,45 @@ "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/charenc": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": "*" } }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.2.0.tgz", + "integrity": "sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==", "dev": true, "funding": [ { @@ -15110,22 +22287,23 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", + "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", "dev": true, - "license": "MIT", "dependencies": { - "restore-cursor": "^3.1.0" + "restore-cursor": "^5.0.0" }, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/cli-spinners": { @@ -15133,7 +22311,6 @@ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" }, @@ -15146,7 +22323,6 @@ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", "dev": true, - "license": "ISC", "engines": { "node": ">= 12" } @@ -15156,7 +22332,6 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -15166,52 +22341,11 @@ "node": ">=12" } }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/clone": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8" } @@ -15221,7 +22355,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -15233,22 +22366,28 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/colorette": { "version": "2.0.19", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "dev": true + }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.1.90" + } }, "node_modules/commander": { "version": "9.5.0", "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", "dev": true, - "license": "MIT", "engines": { "node": "^12.20.0 || >=14" } @@ -15258,24 +22397,37 @@ "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz", "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4.0.0" } }, + "node_modules/compress-commons": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-6.0.2.tgz", + "integrity": "sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==", + "dev": true, + "dependencies": { + "crc-32": "^1.2.0", + "crc32-stream": "^6.0.0", + "is-stream": "^2.0.1", + "normalize-path": "^3.0.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/constant-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -15283,43 +22435,67 @@ } }, "node_modules/constructs": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.3.0.tgz", - "integrity": "sha512-vbK8i3rIb/xwZxSpTjz3SagHn1qq9BChLEfy5Hf6fB3/2eFbrwt2n9kHwQcS0CPTRBesreeAcsJfMq2229FnbQ==", + "version": "10.4.2", + "resolved": "https://registry.npmjs.org/constructs/-/constructs-10.4.2.tgz", + "integrity": "sha512-wsNxBlAott2qg8Zv87q3eYZYgheb9lchtBfjHzzLHtXbttwSrHPs1NNQbBrmbb1YZvYg2+Vh0Dor76w4mFxJkA==", "dev": true, - "license": "Apache-2.0", - "peer": true, - "engines": { - "node": ">= 16.14.0" - } + "peer": true }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/core-js": { - "version": "3.38.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.38.1.tgz", - "integrity": "sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw==", + "version": "3.41.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.41.0.tgz", + "integrity": "sha512-SJ4/EHwS36QMJd6h/Rg+GyR4A5xE0FSI3eZ+iBVpfqf1x0eTSg1smWLHrA+2jQThZSh97fmSgFSU8B61nxosxA==", "dev": true, "hasInstallScript": true, - "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" } }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "dev": true, + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/crc32-stream": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-6.0.0.tgz", + "integrity": "sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==", + "dev": true, + "dependencies": { + "crc-32": "^1.2.0", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/cross-fetch": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", - "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", "dev": true, - "license": "MIT", "dependencies": { - "node-fetch": "^2.6.12" + "node-fetch": "^2.7.0" } }, "node_modules/cross-fetch/node_modules/node-fetch": { @@ -15327,7 +22503,6 @@ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dev": true, - "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -15348,7 +22523,6 @@ "resolved": "https://registry.npmjs.org/cross-inspect/-/cross-inspect-1.0.1.tgz", "integrity": "sha512-Pcw1JTvZLSJH83iiGWt6fRcT+BjZlCDRVwYLbUcHzv/CRpB7r0MlSrGbIyQvVSNyGnbt7G4AXuyCiDR3POvZ1A==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.4.0" }, @@ -15361,7 +22535,6 @@ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -15376,38 +22549,34 @@ "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": "*" } }, "node_modules/csv-parse": { - "version": "5.5.6", - "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.5.6.tgz", - "integrity": "sha512-uNpm30m/AGSkLxxy7d9yRXpJQFrZzVWLFBkS+6ngPcZkw/5k3L/jjFuj7tVnEpRn+QgmiXr21nDlhCiUK4ij2A==", - "dev": true, - "license": "MIT" + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.6.0.tgz", + "integrity": "sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==", + "dev": true }, "node_modules/data-uri-to-buffer": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", "dev": true, - "license": "MIT", "engines": { "node": ">= 12" } }, "node_modules/data-view-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", - "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -15417,31 +22586,29 @@ } }, "node_modules/data-view-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", - "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "is-data-view": "^1.0.2" }, "engines": { "node": ">= 0.4" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/inspect-js" } }, "node_modules/data-view-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", - "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-data-view": "^1.0.1" }, @@ -15456,15 +22623,13 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/debounce-promise/-/debounce-promise-3.1.2.tgz", "integrity": "sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", "dev": true, - "license": "MIT", "dependencies": { "ms": "^2.1.3" }, @@ -15478,13 +22643,15 @@ } }, "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz", + "integrity": "sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/default-browser": { @@ -15492,7 +22659,6 @@ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", "dev": true, - "license": "MIT", "dependencies": { "bundle-name": "^3.0.0", "default-browser-id": "^3.0.0", @@ -15511,7 +22677,6 @@ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", "dev": true, - "license": "MIT", "dependencies": { "bplist-parser": "^0.2.0", "untildify": "^4.0.0" @@ -15528,9 +22693,8 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", "dev": true, - "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.6", + "cross-spawn": "^7.0.3", "get-stream": "^6.0.1", "human-signals": "^4.3.0", "is-stream": "^3.0.0", @@ -15552,7 +22716,6 @@ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -15565,24 +22728,99 @@ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=14.18.0" } }, + "node_modules/default-browser/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/default-browser/node_modules/signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/default-browser/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", "dev": true, - "license": "ISC" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/defaults": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", "dev": true, - "license": "MIT", "dependencies": { "clone": "^1.0.2" }, @@ -15595,7 +22833,6 @@ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "dev": true, - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -15613,7 +22850,6 @@ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -15626,7 +22862,6 @@ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", "dev": true, - "license": "MIT", "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", @@ -15639,12 +22874,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/degenerator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", + "dev": true, + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/denque": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=0.10" } @@ -15654,7 +22902,6 @@ "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6.0" } @@ -15664,7 +22911,6 @@ "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", "integrity": "sha512-BDKtmHlOzwI7iRuEkhzsnPoi5ypEhWAJB5RvHWe1kMr06js3uK5B3734i3ui5Yd+wOJV1cpE4JnivPD283GU/A==", "dev": true, - "license": "MIT", "dependencies": { "repeating": "^2.0.0" }, @@ -15677,12 +22923,20 @@ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", "dev": true, - "license": "Apache-2.0", "bin": { "detect-libc": "bin/detect-libc.js" }, "engines": { - "node": ">=0.10" + "node": ">=0.10" + } + }, + "node_modules/diff": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", + "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", + "dev": true, + "engines": { + "node": ">=0.3.1" } }, "node_modules/dir-glob": { @@ -15690,7 +22944,6 @@ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "license": "MIT", "dependencies": { "path-type": "^4.0.0" }, @@ -15703,49 +22956,69 @@ "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" } }, + "node_modules/dreamopt": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/dreamopt/-/dreamopt-0.8.0.tgz", + "integrity": "sha512-vyJTp8+mC+G+5dfgsY+r3ckxlz+QMX40VjPQsZc5gxVAxLmi64TBoVkP54A/pRAXMXsbu2GMMBrZPxNv23waMg==", + "dev": true, + "dependencies": { + "wordwrap": ">=0.0.2" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/dset": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz", "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.5.24", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.24.tgz", - "integrity": "sha512-0x0wLCmpdKFCi9ulhvYZebgcPmHTkFVUfU2wzDykadkslKwT4oAmDTHEKLnlrDsMGZe4B+ksn8quZfZjYsBetA==", - "dev": true, - "license": "ISC" + "version": "1.5.126", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.126.tgz", + "integrity": "sha512-AtH1uLcTC72LA4vfYcEJJkrMk/MY/X0ub8Hv7QGAePW2JkeUFHEL/QfS4J77R6M87Sss8O0OcqReSaN1bpyA+Q==", + "dev": true }, "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, "node_modules/envinfo": { "version": "7.14.0", "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.14.0.tgz", "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", "dev": true, - "license": "MIT", "bin": { "envinfo": "dist/cli.js" }, @@ -15754,58 +23027,62 @@ } }, "node_modules/es-abstract": { - "version": "1.23.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", - "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", + "version": "1.23.9", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", + "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", "dev": true, - "license": "MIT", "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.0", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", + "is-data-view": "^1.0.2", + "is-regex": "^1.2.1", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.0", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.3", "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.3", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.18" }, "engines": { "node": ">= 0.4" @@ -15815,14 +23092,10 @@ } }, "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, "engines": { "node": ">= 0.4" } @@ -15832,17 +23105,15 @@ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-object-atoms": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", - "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", "dev": true, - "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, @@ -15851,40 +23122,41 @@ } }, "node_modules/es-set-tostringtag": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz", - "integrity": "sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", "dev": true, - "license": "MIT", "dependencies": { - "get-intrinsic": "^1.2.4", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", - "hasown": "^2.0.1" + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", "dev": true, - "license": "MIT", "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", "dev": true, - "license": "MIT", "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" }, "engines": { "node": ">= 0.4" @@ -15894,12 +23166,11 @@ } }, "node_modules/esbuild": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", - "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz", + "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==", "dev": true, "hasInstallScript": true, - "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, @@ -15907,30 +23178,31 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.23.1", - "@esbuild/android-arm": "0.23.1", - "@esbuild/android-arm64": "0.23.1", - "@esbuild/android-x64": "0.23.1", - "@esbuild/darwin-arm64": "0.23.1", - "@esbuild/darwin-x64": "0.23.1", - "@esbuild/freebsd-arm64": "0.23.1", - "@esbuild/freebsd-x64": "0.23.1", - "@esbuild/linux-arm": "0.23.1", - "@esbuild/linux-arm64": "0.23.1", - "@esbuild/linux-ia32": "0.23.1", - "@esbuild/linux-loong64": "0.23.1", - "@esbuild/linux-mips64el": "0.23.1", - "@esbuild/linux-ppc64": "0.23.1", - "@esbuild/linux-riscv64": "0.23.1", - "@esbuild/linux-s390x": "0.23.1", - "@esbuild/linux-x64": "0.23.1", - "@esbuild/netbsd-x64": "0.23.1", - "@esbuild/openbsd-arm64": "0.23.1", - "@esbuild/openbsd-x64": "0.23.1", - "@esbuild/sunos-x64": "0.23.1", - "@esbuild/win32-arm64": "0.23.1", - "@esbuild/win32-ia32": "0.23.1", - "@esbuild/win32-x64": "0.23.1" + "@esbuild/aix-ppc64": "0.25.1", + "@esbuild/android-arm": "0.25.1", + "@esbuild/android-arm64": "0.25.1", + "@esbuild/android-x64": "0.25.1", + "@esbuild/darwin-arm64": "0.25.1", + "@esbuild/darwin-x64": "0.25.1", + "@esbuild/freebsd-arm64": "0.25.1", + "@esbuild/freebsd-x64": "0.25.1", + "@esbuild/linux-arm": "0.25.1", + "@esbuild/linux-arm64": "0.25.1", + "@esbuild/linux-ia32": "0.25.1", + "@esbuild/linux-loong64": "0.25.1", + "@esbuild/linux-mips64el": "0.25.1", + "@esbuild/linux-ppc64": "0.25.1", + "@esbuild/linux-riscv64": "0.25.1", + "@esbuild/linux-s390x": "0.25.1", + "@esbuild/linux-x64": "0.25.1", + "@esbuild/netbsd-arm64": "0.25.1", + "@esbuild/netbsd-x64": "0.25.1", + "@esbuild/openbsd-arm64": "0.25.1", + "@esbuild/openbsd-x64": "0.25.1", + "@esbuild/sunos-x64": "0.25.1", + "@esbuild/win32-arm64": "0.25.1", + "@esbuild/win32-ia32": "0.25.1", + "@esbuild/win32-x64": "0.25.1" } }, "node_modules/escalade": { @@ -15938,7 +23210,6 @@ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -15948,61 +23219,142 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.0" } }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/esm": { "version": "3.2.25", "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, - "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } }, - "node_modules/execa": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", - "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.6", - "get-stream": "^8.0.1", - "human-signals": "^5.0.0", - "is-stream": "^3.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^5.1.0", - "onetime": "^6.0.0", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/execa/-/execa-9.5.2.tgz", + "integrity": "sha512-EHlpxMCpHWSAh1dgS6bVeoLAXGnJNdR93aabr4QCGbzOM73o5XmRfM/e5FUqsw3aagP8S8XEWUWFAxnRBnAF0Q==", + "dev": true, + "dependencies": { + "@sindresorhus/merge-streams": "^4.0.0", + "cross-spawn": "^7.0.3", + "figures": "^6.1.0", + "get-stream": "^9.0.0", + "human-signals": "^8.0.0", + "is-plain-obj": "^4.1.0", + "is-stream": "^4.0.1", + "npm-run-path": "^6.0.0", + "pretty-ms": "^9.0.0", "signal-exit": "^4.1.0", - "strip-final-newline": "^3.0.0" + "strip-final-newline": "^4.0.0", + "yoctocolors": "^2.0.0" }, "engines": { - "node": ">=16.17" + "node": "^18.19.0 || >=20.5.0" }, "funding": { "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/execa/node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/external-editor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", "dev": true, - "license": "MIT", "dependencies": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", @@ -16012,39 +23364,49 @@ "node": ">=4" } }, - "node_modules/fast-decode-uri-component": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz", - "integrity": "sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==", - "dev": true, - "license": "MIT" + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true }, "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" } }, - "node_modules/fast-querystring": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/fast-querystring/-/fast-querystring-1.1.2.tgz", - "integrity": "sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==", + "node_modules/fast-uri": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz", + "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==", "dev": true, - "license": "MIT", - "dependencies": { - "fast-decode-uri-component": "^1.0.1" - } + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ] }, "node_modules/fast-xml-parser": { "version": "4.4.1", @@ -16061,7 +23423,6 @@ "url": "https://paypal.me/naturalintelligence" } ], - "license": "MIT", "dependencies": { "strnum": "^1.0.5" }, @@ -16070,11 +23431,10 @@ } }, "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", "dev": true, - "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -16084,7 +23444,6 @@ "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } @@ -16094,7 +23453,6 @@ "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", "dev": true, - "license": "MIT", "dependencies": { "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", @@ -16109,8 +23467,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/fbjs-css-vars/-/fbjs-css-vars-1.0.2.tgz", "integrity": "sha512-b2XGFAFdWZWg0phtAWLHCk836A1Xann+I+Dgd3Gk64MHKZO44FfoD1KxyvbSh0qZsIoXQGGlVztIY+oitJPpRQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/fetch-blob": { "version": "3.2.0", @@ -16127,7 +23484,6 @@ "url": "https://paypal.me/jimmywarting" } ], - "license": "MIT", "dependencies": { "node-domexception": "^1.0.0", "web-streams-polyfill": "^3.0.3" @@ -16137,16 +23493,15 @@ } }, "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz", + "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==", "dev": true, - "license": "MIT", "dependencies": { - "escape-string-regexp": "^1.0.5" + "is-unicode-supported": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -16157,7 +23512,6 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -16170,7 +23524,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -16180,21 +23533,25 @@ } }, "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", "dev": true, - "license": "MIT", "dependencies": { - "is-callable": "^1.1.3" + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/foreground-child": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", - "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "dev": true, - "license": "ISC", "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" @@ -16211,7 +23568,6 @@ "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", "dev": true, - "license": "MIT", "dependencies": { "fetch-blob": "^3.1.2" }, @@ -16224,7 +23580,6 @@ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "dev": true, - "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", @@ -16238,8 +23593,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/fsevents": { "version": "2.3.2", @@ -16247,12 +23601,10 @@ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, "hasInstallScript": true, - "license": "MIT", "optional": true, "os": [ "darwin" ], - "peer": true, "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } @@ -16262,22 +23614,22 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" }, "engines": { "node": ">= 0.4" @@ -16291,7 +23643,6 @@ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -16301,7 +23652,6 @@ "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", "dev": true, - "license": "MIT", "dependencies": { "is-property": "^1.0.2" } @@ -16311,7 +23661,6 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -16321,23 +23670,38 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-east-asian-width": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", + "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dev": true, - "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -16351,34 +23715,60 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.0.0" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/get-stream": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", - "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz", + "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==", "dev": true, - "license": "MIT", + "dependencies": { + "@sec-ant/readable-stream": "^0.4.1", + "is-stream": "^4.0.1" + }, "engines": { - "node": ">=16" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-stream/node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", + "dev": true, + "engines": { + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" + "get-intrinsic": "^1.2.6" }, "engines": { "node": ">= 0.4" @@ -16388,11 +23778,10 @@ } }, "node_modules/get-tsconfig": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.8.1.tgz", - "integrity": "sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", "dev": true, - "license": "MIT", "dependencies": { "resolve-pkg-maps": "^1.0.0" }, @@ -16400,19 +23789,40 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, + "node_modules/get-uri": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz", + "integrity": "sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==", + "dev": true, + "dependencies": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.2", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/get-uri/node_modules/data-uri-to-buffer": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/getopts": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/getopts/-/getopts-2.3.0.tgz", "integrity": "sha512-5eDf9fuSXwxBL6q5HX+dhDj+dslFGWzU5thZ9kNKUkcPtaPdatmUFKwHFrLb/uf/WpA4BHET+AX3Scl56cAjpA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/glob": { "version": "10.4.5", "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, - "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -16433,7 +23843,6 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -16441,12 +23850,26 @@ "node": ">= 6" } }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -16456,7 +23879,6 @@ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", "dev": true, - "license": "MIT", "dependencies": { "define-properties": "^1.2.1", "gopd": "^1.0.1" @@ -16473,7 +23895,6 @@ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, - "license": "MIT", "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -16490,13 +23911,12 @@ } }, "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.1.3" + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -16506,32 +23926,28 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/graphql": { - "version": "15.8.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", - "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", + "version": "15.10.1", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.10.1.tgz", + "integrity": "sha512-BL/Xd/T9baO6NFzoMpiMD7YUZ62R6viR5tp/MULVEnbYJXZA//kRNW7J0j1w/wXArgL0sCxhDfK5dczSKn3+cg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10.x" } }, "node_modules/graphql-mapping-template": { - "version": "4.20.16", - "resolved": "https://registry.npmjs.org/graphql-mapping-template/-/graphql-mapping-template-4.20.16.tgz", - "integrity": "sha512-J+shdngmnAxBM4mS4ga2RGusbPRMMO/TfRiNuHNKHxEU8O85us9zC6l7kSQ9hkWQDrKISJfDaesNKO3Jo5GerA==", - "dev": true, - "license": "Apache-2.0" + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/graphql-mapping-template/-/graphql-mapping-template-5.0.2.tgz", + "integrity": "sha512-Wkhrv4eusKv0n+QRcY9EgwUssOCrkBLyaFcdBrjBIup4mck739IsGuljK7/Q9kBUblzq2oe1yIyLdtiiFeXcrA==", + "dev": true }, "node_modules/graphql-tag": { "version": "2.12.6", "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz", "integrity": "sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.1.0" }, @@ -16543,11 +23959,10 @@ } }, "node_modules/graphql-transformer-common": { - "version": "4.31.1", - "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-4.31.1.tgz", - "integrity": "sha512-s+C2S3PrDyuAR0ZDj9vq/DaV3ZUMf04VzacIPrc9wodvtF76Jr4E/ZzXnUAC1dKX96oK3E31W/7jilQoyZj8Rg==", + "version": "4.33.0", + "resolved": "https://registry.npmjs.org/graphql-transformer-common/-/graphql-transformer-common-4.33.0.tgz", + "integrity": "sha512-PUdE2eqz//XEKqt/F0Uzp8HoE7yHaMl+xTySZboqW6SwJaBx50UnPEaYnAT8qhDmIftB43YQaiVjzWlkCB5lFw==", "dev": true, - "license": "Apache-2.0", "dependencies": { "graphql": "^15.5.0", "graphql-mapping-template": "4.20.16", @@ -16555,12 +23970,17 @@ "pluralize": "8.0.0" } }, + "node_modules/graphql-transformer-common/node_modules/graphql-mapping-template": { + "version": "4.20.16", + "resolved": "https://registry.npmjs.org/graphql-mapping-template/-/graphql-mapping-template-4.20.16.tgz", + "integrity": "sha512-J+shdngmnAxBM4mS4ga2RGusbPRMMO/TfRiNuHNKHxEU8O85us9zC6l7kSQ9hkWQDrKISJfDaesNKO3Jo5GerA==", + "dev": true + }, "node_modules/handlebars": { "version": "4.7.7", "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", "dev": true, - "license": "MIT", "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.0", @@ -16582,17 +24002,18 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", "dev": true, - "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -16602,7 +24023,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -16612,7 +24032,6 @@ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, - "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -16621,11 +24040,13 @@ } }, "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", "dev": true, - "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, "engines": { "node": ">= 0.4" }, @@ -16634,11 +24055,10 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -16651,7 +24071,6 @@ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", "dev": true, - "license": "MIT", "dependencies": { "has-symbols": "^1.0.3" }, @@ -16667,7 +24086,6 @@ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, - "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -16680,30 +24098,59 @@ "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", "dev": true, - "license": "MIT", "dependencies": { "capital-case": "^1.0.4", "tslib": "^2.0.3" } }, + "node_modules/heap": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", + "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==", + "dev": true + }, "node_modules/hjson": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/hjson/-/hjson-3.2.2.tgz", "integrity": "sha512-MkUeB0cTIlppeSsndgESkfFD21T2nXPRaBStLtf3cAYA2bVEFdXlodZB0TukwZiobPD1Ksax5DK4RTZeaXCI3Q==", "dev": true, - "license": "MIT", "bin": { "hjson": "bin/hjson" } }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/human-signals": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", - "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.0.tgz", + "integrity": "sha512-/1/GPCpDUCCYwlERiYjxoczfP0zfvZMU/OWgQPMya9AbAE24vseigFdhAMObpc8Q4lc/kjutPfUddDYyAmejnA==", "dev": true, - "license": "Apache-2.0", "engines": { - "node": ">=16.17.0" + "node": ">=18.18.0" } }, "node_modules/iconv-lite": { @@ -16711,7 +24158,6 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, - "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -16719,12 +24165,31 @@ "node": ">=0.10.0" } }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } @@ -16734,7 +24199,6 @@ "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.6.tgz", "integrity": "sha512-AizQPcaofEtO11RZhPPHBOJRdo/20MKQF9mBLnVkBoyHi1/zXK8fzVdnEpSV9gxqtnh6Qomfp3F0xT5qP/vThw==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.8.0" } @@ -16744,7 +24208,6 @@ "resolved": "https://registry.npmjs.org/import-from/-/import-from-4.0.0.tgz", "integrity": "sha512-P9J71vT5nLlDeV8FHs5nNxaLbrpfAV5cF5srvbZfpwpcJoM/xZR3hiv+q+SAnuSmuGbXMWud063iIMx/V/EWZQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12.2" }, @@ -16756,8 +24219,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/inflected/-/inflected-2.1.0.tgz", "integrity": "sha512-hAEKNxvHf2Iq3H60oMBHkB4wl5jn3TPF3+fXek/sRwAB5gP9xWs4r7aweSF95f99HFoz69pnZTcu8f0SIHV18w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/inflight": { "version": "1.0.6", @@ -16765,7 +24227,6 @@ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, - "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -16775,19 +24236,17 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", "dev": true, - "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" + "hasown": "^2.0.2", + "side-channel": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -16798,7 +24257,6 @@ "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.10" } @@ -16808,17 +24266,28 @@ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "dev": true, - "license": "MIT", "dependencies": { "loose-envify": "^1.0.0" } }, + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "dev": true, + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, "node_modules/is-absolute": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", "dev": true, - "license": "MIT", "dependencies": { "is-relative": "^1.0.0", "is-windows": "^1.0.1" @@ -16828,14 +24297,33 @@ } }, "node_modules/is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -16845,27 +24333,40 @@ } }, "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", "dev": true, - "license": "MIT", "dependencies": { - "has-bigints": "^1.0.1" + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -16878,15 +24379,13 @@ "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -16895,24 +24394,28 @@ } }, "node_modules/is-ci": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", - "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-4.1.0.tgz", + "integrity": "sha512-Ab9bQDQ11lWootZUI5qxgN2ZXwxNI5hTwnsvOc1wyxQ7zQ8OkEDw79mI0+9jI3x432NfwbVRru+3noJfXF6lSQ==", "dev": true, - "license": "MIT", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], "dependencies": { - "ci-info": "^3.2.0" + "ci-info": "^4.1.0" }, "bin": { "is-ci": "bin.js" } }, "node_modules/is-core-module": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", - "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, - "license": "MIT", "dependencies": { "hasown": "^2.0.2" }, @@ -16924,12 +24427,13 @@ } }, "node_modules/is-data-view": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", - "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", "dev": true, - "license": "MIT", "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", "is-typed-array": "^1.1.13" }, "engines": { @@ -16940,13 +24444,13 @@ } }, "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -16960,7 +24464,6 @@ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", "dev": true, - "license": "MIT", "bin": { "is-docker": "cli.js" }, @@ -16976,17 +24479,30 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-finite": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" }, @@ -16999,17 +24515,33 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/is-generator-function": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz", + "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3", + "get-proto": "^1.0.0", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, - "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -17022,7 +24554,6 @@ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", "dev": true, - "license": "MIT", "dependencies": { "is-docker": "^3.0.0" }, @@ -17037,13 +24568,15 @@ } }, "node_modules/is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", + "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-lower-case": { @@ -17051,17 +24584,15 @@ "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-2.0.2.tgz", "integrity": "sha512-bVcMJy4X5Og6VZfdOZstSexlEy20Sr0k/p/b2IlQJlfdKAQuMpiv5w2Ccxb8sKdRUNAG1PnHVHjFSdRDVS6NlQ==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, - "node_modules/is-negative-zero": { + "node_modules/is-map": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -17074,19 +24605,18 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } }, "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -17095,22 +24625,34 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-property": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -17124,22 +24666,32 @@ "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", "dev": true, - "license": "MIT", "dependencies": { "is-unc-path": "^1.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=0.10.0" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7" + "call-bound": "^1.0.3" }, "engines": { "node": ">= 0.4" @@ -17149,26 +24701,25 @@ } }, "node_modules/is-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", - "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, - "license": "MIT", "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", "dev": true, - "license": "MIT", "dependencies": { - "has-tostringtag": "^1.0.0" + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -17178,13 +24729,14 @@ } }, "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", "dev": true, - "license": "MIT", "dependencies": { - "has-symbols": "^1.0.2" + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -17194,13 +24746,12 @@ } }, "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", "dev": true, - "license": "MIT", "dependencies": { - "which-typed-array": "^1.1.14" + "which-typed-array": "^1.1.16" }, "engines": { "node": ">= 0.4" @@ -17214,7 +24765,6 @@ "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", "dev": true, - "license": "MIT", "dependencies": { "unc-path-regex": "^0.1.2" }, @@ -17222,24 +24772,65 @@ "node": ">=0.10.0" } }, + "node_modules/is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-upper-case": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-2.0.2.tgz", "integrity": "sha512-44pxmxAvnnAOwBg4tHPnkfvgjPwbc5QIsSstNU+YcJ1ovxVzCWpSGosPJOZh/a1tdl81fbgnLc9LLv+x2ywbPQ==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2" + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -17250,7 +24841,6 @@ "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -17260,7 +24850,6 @@ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dev": true, - "license": "MIT", "dependencies": { "is-docker": "^2.0.0" }, @@ -17273,7 +24862,6 @@ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", "dev": true, - "license": "MIT", "bin": { "is-docker": "cli.js" }, @@ -17288,22 +24876,19 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -17318,15 +24903,19 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" + "dev": true + }, + "node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "dev": true }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -17334,12 +24923,34 @@ "node": ">=4" } }, + "node_modules/json-diff": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/json-diff/-/json-diff-1.0.6.tgz", + "integrity": "sha512-tcFIPRdlc35YkYdGxcamJjllUhXWv4n2rK9oJ2RsAzV4FBkuV4ojKEDgcZ+kpKxDmJKv+PFK65+1tVVOnSeEqA==", + "dev": true, + "dependencies": { + "@ewoudenberg/difflib": "0.1.0", + "colors": "^1.4.0", + "dreamopt": "~0.8.0" + }, + "bin": { + "json-diff": "bin/json-diff.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -17352,7 +24963,6 @@ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "dev": true, - "license": "MIT", "optionalDependencies": { "graceful-fs": "^4.1.6" } @@ -17362,7 +24972,6 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -17372,7 +24981,6 @@ "resolved": "https://registry.npmjs.org/knex/-/knex-2.4.2.tgz", "integrity": "sha512-tMI1M7a+xwHhPxjbl/H9K1kHX+VncEYcvCx5K00M16bWvpYPKAZd6QrCu68PtHAdIZNQPWZn0GVhqVBEthGWCg==", "dev": true, - "license": "MIT", "dependencies": { "colorette": "2.0.19", "commander": "^9.1.0", @@ -17424,7 +25032,6 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, - "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -17441,15 +25048,61 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/lazystream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", "dev": true, - "license": "MIT" + "dependencies": { + "readable-stream": "^2.0.5" + }, + "engines": { + "node": ">= 0.6.3" + } + }, + "node_modules/lazystream/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/lazystream/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/lazystream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/lazystream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -17461,124 +25114,83 @@ "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/lodash-es": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/lodash.mergewith": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz", "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/lodash.snakecase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", - "dev": true, - "license": "MIT" + "dev": true + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", + "dev": true }, "node_modules/log-symbols": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz", - "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz", + "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==", "dev": true, - "license": "MIT", "dependencies": { - "chalk": "^2.4.2" + "chalk": "^5.3.0", + "is-unicode-supported": "^1.3.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" + "node": ">=18" }, - "engines": { - "node": ">=4" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/log-symbols/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, "engines": { - "node": ">=4" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "license": "MIT" - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "node_modules/log-symbols/node_modules/is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", "dev": true, - "license": "MIT", "engines": { - "node": ">=4" - } - }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" + "node": ">=12" }, - "engines": { - "node": ">=4" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true, - "license": "Apache-2.0" + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.1.tgz", + "integrity": "sha512-ka87Jz3gcx/I7Hal94xaN2tZEOPoUOEVftkQqZx2EeQRN7LGdfLlI3FvZ+7WDplm+vK2Urx9ULrvSowtdCieng==", + "dev": true }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, - "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -17591,7 +25203,6 @@ "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -17601,7 +25212,6 @@ "resolved": "https://registry.npmjs.org/lower-case-first/-/lower-case-first-2.0.2.tgz", "integrity": "sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -17611,7 +25221,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "ISC", "dependencies": { "yallist": "^3.0.2" } @@ -17621,17 +25230,24 @@ "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/md5": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "charenc": "0.0.2", "crypt": "0.0.2", @@ -17642,15 +25258,13 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -17660,7 +25274,6 @@ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -17669,14 +25282,34 @@ "node": ">=8.6" } }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12" + "node": ">=6" + } + }, + "node_modules/mimic-function": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", + "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", + "dev": true, + "engines": { + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -17687,22 +25320,20 @@ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, - "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "node_modules/minimatch": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", + "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -17713,7 +25344,6 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -17723,7 +25353,6 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, - "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } @@ -17732,17 +25361,15 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/mute-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", - "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", "dev": true, - "license": "ISC", "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "node": "^18.17.0 || >=20.5.0" } }, "node_modules/mysql2": { @@ -17750,7 +25377,6 @@ "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.9.9.tgz", "integrity": "sha512-Qtb2RUxwWMFkWXqF7Rd/7ySkupbQnNY7O0zQuQYgPcuJZ06M36JG3HIDEh/pEeq7LImcvA6O3lOVQ9XQK+HEZg==", "dev": true, - "license": "MIT", "dependencies": { "denque": "^2.1.0", "generate-function": "^2.3.1", @@ -17770,7 +25396,6 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "dev": true, - "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -17783,7 +25408,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.5.tgz", "integrity": "sha512-MhWWlVnuab1RG5/zMRRcVGXZLCXrZTgfwMikgzCegsPnG62yDQo5JnqKkrK4jO5iKqDAZGItAqN5CtKBCBWRUA==", "dev": true, - "license": "ISC", "engines": { "node": ">=16.14" } @@ -17793,7 +25417,6 @@ "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.3.tgz", "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", "dev": true, - "license": "MIT", "dependencies": { "lru-cache": "^7.14.1" }, @@ -17806,7 +25429,6 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } @@ -17815,22 +25437,28 @@ "version": "0.2.1", "resolved": "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz", "integrity": "sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">= 0.4.0" + } }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", "dev": true, - "license": "MIT", "dependencies": { "lower-case": "^2.0.2", "tslib": "^2.0.3" @@ -17840,8 +25468,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/node-domexception": { "version": "1.0.0", @@ -17858,7 +25485,6 @@ "url": "https://paypal.me/jimmywarting" } ], - "license": "MIT", "engines": { "node": ">=10.5.0" } @@ -17868,7 +25494,6 @@ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", "dev": true, - "license": "MIT", "dependencies": { "data-uri-to-buffer": "^4.0.0", "fetch-blob": "^3.1.4", @@ -17886,27 +25511,34 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/node-releases": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", - "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=0.10.0" + } }, "node_modules/npm-run-path": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", - "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz", + "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==", "dev": true, - "license": "MIT", "dependencies": { - "path-key": "^4.0.0" + "path-key": "^4.0.0", + "unicorn-magic": "^0.3.0" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -17917,7 +25549,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -17929,15 +25560,13 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -17947,17 +25576,15 @@ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/object-inspect": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", - "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -17970,21 +25597,21 @@ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", "object-keys": "^1.1.1" }, "engines": { @@ -17999,22 +25626,20 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, - "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/onetime": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", - "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", + "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", "dev": true, - "license": "MIT", "dependencies": { - "mimic-fn": "^4.0.0" + "mimic-function": "^5.0.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -18025,7 +25650,6 @@ "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", "dev": true, - "license": "MIT", "dependencies": { "default-browser": "^4.0.0", "define-lazy-prop": "^3.0.0", @@ -18040,56 +25664,126 @@ } }, "node_modules/ora": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-4.1.1.tgz", - "integrity": "sha512-sjYP8QyVWBpBZWD6Vr1M/KwknSw6kJOz41tvGMlwWeClHBtYKTbHMki1PsLZnxKpXMPbTKv9b3pjQu3REib96A==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz", + "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==", "dev": true, - "license": "MIT", "dependencies": { - "chalk": "^3.0.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.2.0", - "is-interactive": "^1.0.0", - "log-symbols": "^3.0.0", - "mute-stream": "0.0.8", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" + "chalk": "^5.3.0", + "cli-cursor": "^5.0.0", + "cli-spinners": "^2.9.2", + "is-interactive": "^2.0.0", + "is-unicode-supported": "^2.0.0", + "log-symbols": "^6.0.0", + "stdin-discarder": "^0.2.2", + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ora/node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "node_modules/ora/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, - "license": "ISC" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", + "dev": true + }, + "node_modules/ora/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } }, "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -18100,7 +25794,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -18108,29 +25801,73 @@ "node": ">=8" } }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", + "node_modules/pac-proxy-agent": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", + "integrity": "sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==", + "dev": true, + "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.6", + "pac-resolver": "^7.0.1", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-resolver": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", "dev": true, - "license": "BlueOak-1.0.0" + "dependencies": { + "degenerator": "^5.0.0", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true }, "node_modules/param-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", "dev": true, - "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -18141,7 +25878,6 @@ "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", "dev": true, - "license": "MIT", "dependencies": { "is-absolute": "^1.0.0", "map-cache": "^0.2.0", @@ -18156,17 +25892,27 @@ "resolved": "https://registry.npmjs.org/parse-gitignore/-/parse-gitignore-2.0.0.tgz", "integrity": "sha512-RmVuCHWsfu0QPNW+mraxh/xjQVw/lhUCUru8Zni3Ctq3AoMhpDTq0OVdKS6iesd6Kqb7viCV3isAL43dciOSog==", "dev": true, - "license": "MIT", "engines": { "node": ">=14" } }, + "node_modules/parse-ms": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz", + "integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/pascal-case": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3" @@ -18177,7 +25923,6 @@ "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", "dev": true, - "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -18188,7 +25933,6 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -18198,7 +25942,6 @@ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -18208,7 +25951,6 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -18217,15 +25959,13 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", "dev": true, - "license": "MIT", "dependencies": { "path-root-regex": "^0.1.0" }, @@ -18238,7 +25978,6 @@ "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -18248,7 +25987,6 @@ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, - "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -18264,15 +26002,13 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -18282,7 +26018,6 @@ "resolved": "https://registry.npmjs.org/pg/-/pg-8.11.6.tgz", "integrity": "sha512-6CyL4F0j3vPmakU9rWdeRY8qF5Cjc3OE86y6YpgDI6YtKHhNyCjGEIE8U5ZRfBjKTZikwolKIFWh3I22MeRnoA==", "dev": true, - "license": "MIT", "dependencies": { "pg-connection-string": "^2.6.4", "pg-pool": "^3.6.2", @@ -18310,49 +26045,43 @@ "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz", "integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==", "dev": true, - "license": "MIT", "optional": true }, "node_modules/pg-connection-string": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.5.0.tgz", "integrity": "sha512-r5o/V/ORTA6TmUnyWZR9nCj1klXCO2CEKNRlVuJptZe85QuhFayC7WeMic7ndayT5IRIR0S0xFxFi2ousartlQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/pg-int8": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", "dev": true, - "license": "ISC", "engines": { "node": ">=4.0.0" } }, "node_modules/pg-pool": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.6.2.tgz", - "integrity": "sha512-Htjbg8BlwXqSBQ9V8Vjtc+vzf/6fVUuak/3/XXKA9oxZprwW3IMDQTGHP+KDmVL7rtd+R1QjbnCFPuTHm3G4hg==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.8.0.tgz", + "integrity": "sha512-VBw3jiVm6ZOdLBTIcXLNdSotb6Iy3uOCwDGFAksZCXmi10nyRvnP2v3jl4d+IsLYRyXf6o9hIm/ZtUzlByNUdw==", "dev": true, - "license": "MIT", "peerDependencies": { "pg": ">=8.0" } }, "node_modules/pg-protocol": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.6.1.tgz", - "integrity": "sha512-jPIlvgoD63hrEuihvIg+tJhoGjUsLPn6poJY9N5CnlPd91c2T18T/9zBtLxZSb1EhYxBRoZJtzScCaWlYLtktg==", - "dev": true, - "license": "MIT" + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.8.0.tgz", + "integrity": "sha512-jvuYlEkL03NRvOoyoRktBK7+qU5kOvlAwvmrH8sr3wbLrOdVWsRxQfz8mMy9sZFsqJ1hEWNfdWKI4SAmoL+j7g==", + "dev": true }, "node_modules/pg-types": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", "dev": true, - "license": "MIT", "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", @@ -18365,35 +26094,31 @@ } }, "node_modules/pg/node_modules/pg-connection-string": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.4.tgz", - "integrity": "sha512-v+Z7W/0EO707aNMaAEfiGnGL9sxxumwLl2fJvCQtMn9Fxsg+lPpPkdcyBSv/KFgpGdYkMfn+EI1Or2EHjpgLCA==", - "dev": true, - "license": "MIT" + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz", + "integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==", + "dev": true }, "node_modules/pgpass": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", "dev": true, - "license": "MIT", "dependencies": { "split2": "^4.1.0" } }, "node_modules/picocolors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", - "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==", - "dev": true, - "license": "ISC" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -18406,17 +26131,15 @@ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" } @@ -18426,7 +26149,6 @@ "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -18436,7 +26158,6 @@ "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz", "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -18446,7 +26167,6 @@ "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -18456,7 +26176,6 @@ "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", "dev": true, - "license": "MIT", "dependencies": { "xtend": "^4.0.0" }, @@ -18465,37 +26184,107 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-ms": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.2.0.tgz", + "integrity": "sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==", "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin-prettier.js" + "dependencies": { + "parse-ms": "^4.0.0" }, "engines": { - "node": ">=10.13.0" + "node": ">=18" }, "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, "node_modules/promise": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "dev": true, - "license": "MIT", "dependencies": { "asap": "~2.0.3" } }, + "node_modules/promptly": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/promptly/-/promptly-3.2.0.tgz", + "integrity": "sha512-WnR9obtgW+rG4oUV3hSnNGl1pHm3V1H/qD9iJBumGSmVsSC5HpZOLuu8qdMb6yCItGfT7dcRszejr/5P3i9Pug==", + "dev": true, + "dependencies": { + "read": "^1.0.4" + } + }, "node_modules/property-expr": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz", "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==", + "dev": true + }, + "node_modules/proxy-agent": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.5.0.tgz", + "integrity": "sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==", "dev": true, - "license": "MIT" + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.1", + "https-proxy-agent": "^7.0.6", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.1.0", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.5" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true }, "node_modules/queue-microtask": { "version": "1.2.3", @@ -18515,15 +26304,13 @@ "type": "consulting", "url": "https://feross.org/support" } - ], - "license": "MIT" + ] }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { "loose-envify": "^1.1.0" @@ -18537,7 +26324,6 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { "loose-envify": "^1.1.0", @@ -18547,12 +26333,102 @@ "react": "^18.3.1" } }, + "node_modules/read": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", + "integrity": "sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ==", + "dev": true, + "dependencies": { + "mute-stream": "~0.0.4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/read/node_modules/mute-stream": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "dev": true + }, + "node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "dev": true, + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/readable-stream/node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/readdir-glob": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", + "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "dev": true, + "dependencies": { + "minimatch": "^5.1.0" + } + }, + "node_modules/readdir-glob/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, "node_modules/rechoir": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", "dev": true, - "license": "MIT", "dependencies": { "resolve": "^1.20.0" }, @@ -18560,24 +26436,46 @@ "node": ">= 10.13.0" } }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/regenerator-runtime": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/regexp.prototype.flags": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", - "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" }, "engines": { "node": ">= 0.4" @@ -18591,7 +26489,6 @@ "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-12.0.0.tgz", "integrity": "sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==", "dev": true, - "license": "MIT", "dependencies": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.0", @@ -18603,7 +26500,6 @@ "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", "integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==", "dev": true, - "license": "MIT", "dependencies": { "is-finite": "^1.0.0" }, @@ -18616,7 +26512,15 @@ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -18625,23 +26529,24 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dev": true, - "license": "MIT", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -18651,7 +26556,6 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -18661,64 +26565,31 @@ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/restore-cursor/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/restore-cursor/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", + "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", "dev": true, - "license": "MIT", "dependencies": { - "mimic-fn": "^2.1.0" + "onetime": "^7.0.0", + "signal-exit": "^4.1.0" }, "engines": { - "node": ">=6" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/restore-cursor/node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" - }, "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", "dev": true, - "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -18730,7 +26601,6 @@ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "deprecated": "Rimraf versions prior to v4 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -18746,7 +26616,6 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -18758,7 +26627,6 @@ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -18779,7 +26647,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dev": true, - "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -18792,7 +26659,6 @@ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", "dev": true, - "license": "MIT", "dependencies": { "execa": "^5.0.0" }, @@ -18808,9 +26674,8 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT", "dependencies": { - "cross-spawn": "^7.0.6", + "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", @@ -18832,7 +26697,6 @@ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -18845,40 +26709,15 @@ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } }, - "node_modules/run-applescript/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/run-applescript/node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -18891,7 +26730,6 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -18906,29 +26744,17 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/run-applescript/node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/run-async": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz", - "integrity": "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -18948,31 +26774,29 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } }, "node_modules/rxjs": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", - "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "tslib": "^2.1.0" } }, "node_modules/safe-array-concat": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", - "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", "isarray": "^2.0.5" }, "engines": { @@ -18982,16 +26806,51 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", - "is-regex": "^1.1.4" + "is-regex": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -19004,26 +26863,23 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", "dev": true, - "license": "MIT", "peer": true, "dependencies": { "loose-envify": "^1.1.0" } }, "node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -19036,7 +26892,6 @@ "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", "dev": true, - "license": "MIT", "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -19053,15 +26908,13 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/set-function-length": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, - "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -19079,7 +26932,6 @@ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", "dev": true, - "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -19090,19 +26942,31 @@ "node": ">= 0.4" } }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -19115,22 +26979,74 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" @@ -19144,7 +27060,6 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "license": "ISC", "engines": { "node": ">=14" }, @@ -19156,36 +27071,87 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/signedsource/-/signedsource-1.0.0.tgz", "integrity": "sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==", - "dev": true, - "license": "BSD-3-Clause" + "dev": true }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "dev": true, + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, "node_modules/snake-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", "dev": true, - "license": "MIT", "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" } }, + "node_modules/socks": { + "version": "2.8.4", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz", + "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==", + "dev": true, + "dependencies": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -19195,7 +27161,6 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, - "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -19206,7 +27171,6 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -19216,7 +27180,6 @@ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", "dev": true, - "license": "ISC", "engines": { "node": ">= 10.x" } @@ -19226,21 +27189,61 @@ "resolved": "https://registry.npmjs.org/sponge-case/-/sponge-case-1.0.1.tgz", "integrity": "sha512-dblb9Et4DAtiZ5YSUZHLl4XhH4uK80GhAZrVXdN4O2P4gQ40Wa5UIOPUHlA/nFd2PLblBZWUioLMMAVrgpoYcA==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true + }, "node_modules/sqlstring": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6" } }, + "node_modules/stdin-discarder": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", + "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stream-browserify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", + "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", + "dev": true, + "dependencies": { + "inherits": "~2.0.4", + "readable-stream": "^3.5.0" + } + }, + "node_modules/stream-browserify/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/streamsearch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", @@ -19250,31 +27253,33 @@ "node": ">=10.0.0" } }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "node_modules/streamx": { + "version": "2.22.0", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.0.tgz", + "integrity": "sha512-sLh1evHOzBy/iWRiR6d1zRcLao4gGZr3C1kzNz4fopCOKJb6xD9ub8Mpi9Mr1R6id5o43S+d93fI48UC5uM9aw==", "dev": true, - "license": "MIT", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "fast-fifo": "^1.3.2", + "text-decoder": "^1.1.0" }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "optionalDependencies": { + "bare-events": "^2.2.0" } }, - "node_modules/string-width-cjs": { - "name": "string-width", + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -19284,53 +27289,34 @@ "node": ">=8" } }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-regex": "^6.0.1" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" + "node": ">=8" } }, "node_modules/string.prototype.trim": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", - "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -19340,16 +27326,19 @@ } }, "node_modules/string.prototype.trimend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", - "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -19359,7 +27348,6 @@ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", @@ -19377,7 +27365,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -19391,7 +27378,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -19400,13 +27386,12 @@ } }, "node_modules/strip-final-newline": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", - "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz", + "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==", "dev": true, - "license": "MIT", "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -19417,7 +27402,6 @@ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, - "license": "MIT", "dependencies": { "min-indent": "^1.0.0" }, @@ -19426,18 +27410,22 @@ } }, "node_modules/strnum": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", - "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz", + "integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==", "dev": true, - "license": "MIT" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ] }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -19450,22 +27438,61 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.4" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/swap-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-2.0.2.tgz", + "integrity": "sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==", + "dev": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/sync-fetch": { + "version": "0.6.0-2", + "resolved": "https://registry.npmjs.org/sync-fetch/-/sync-fetch-0.6.0-2.tgz", + "integrity": "sha512-c7AfkZ9udatCuAy9RSfiGPpeOKKUAUK5e1cXadLOGUjasdxqYqAK0jTNkM/FSEyJ3a5Ra27j/tw/PS0qLmaF/A==", + "dev": true, + "dependencies": { + "node-fetch": "^3.3.2", + "timeout-signal": "^2.0.0", + "whatwg-mimetype": "^4.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/table": { + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz", + "integrity": "sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==", + "dev": true, + "dependencies": { + "ajv": "^8.0.1", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" } }, - "node_modules/swap-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-2.0.2.tgz", - "integrity": "sha512-kc6S2YS/2yXbtkSMunBtKdah4VFETZ8Oh6ONSmSd9bRxhqTrtARUCBUiWXH3xVPpvR7tz2CSnkuXVE42EcGnMw==", + "node_modules/tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", "dev": true, - "license": "MIT", "dependencies": { - "tslib": "^2.0.3" + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" } }, "node_modules/tarn": { @@ -19473,27 +27500,42 @@ "resolved": "https://registry.npmjs.org/tarn/-/tarn-3.0.2.tgz", "integrity": "sha512-51LAVKUSZSVfI05vjPESNc5vwqqZpbXCsU+/+wxlOrUjk2SnFTt97v9ZgQrD4YmxYW1Px6w2KjaDitCfkvgxMQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.0.0" } }, + "node_modules/text-decoder": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", + "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", + "dev": true, + "dependencies": { + "b4a": "^1.6.4" + } + }, "node_modules/tildify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/tildify/-/tildify-2.0.0.tgz", "integrity": "sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/timeout-signal": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/timeout-signal/-/timeout-signal-2.0.0.tgz", + "integrity": "sha512-YBGpG4bWsHoPvofT6y/5iqulfXIiIErl5B0LdtHT1mGXDFTAhhRrbUpTvBgYbovr+3cKblya2WAOcpoy90XguA==", + "dev": true, + "engines": { + "node": ">=16" + } + }, "node_modules/title-case": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/title-case/-/title-case-3.0.3.tgz", "integrity": "sha512-e1zGYRvbffpcHIrnuqT0Dh+gEJtDaxDSoG4JAIpq4oDFyooziLBIiYQv0GBT4FUAnUop5uZ1hiIAj7oAF6sOCA==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -19503,7 +27545,6 @@ "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" }, @@ -19516,7 +27557,6 @@ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, - "license": "MIT", "dependencies": { "os-tmpdir": "~1.0.2" }, @@ -19529,7 +27569,6 @@ "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -19539,7 +27578,6 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -19551,22 +27589,19 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz", "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/trim-right": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", "integrity": "sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -19576,26 +27611,23 @@ "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-1.2.0.tgz", "integrity": "sha512-6zSJp23uQI+Txyz5LlXMXAHpUhY4Hi0oluXny0OgIR7g/Cromq4vDBnhtbBdyIV34g0pgwxUvnvg+jLJe4c1NA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.10" } }, "node_modules/tslib": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", - "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", - "dev": true, - "license": "0BSD" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true }, "node_modules/tsx": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.1.tgz", - "integrity": "sha512-0flMz1lh74BR4wOvBjuh9olbnwqCPc35OOlfyzHba0Dc+QNUeWX/Gq2YTbnwcWPO3BMd8fkzRVrHcsR+a7z7rA==", + "version": "4.19.3", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz", + "integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==", "dev": true, - "license": "MIT", "dependencies": { - "esbuild": "~0.23.0", + "esbuild": "~0.25.0", "get-tsconfig": "^4.7.5" }, "bin": { @@ -19614,7 +27646,6 @@ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, - "license": "MIT", "optional": true, "os": [ "darwin" @@ -19628,7 +27659,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -19637,32 +27667,30 @@ } }, "node_modules/typed-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", - "integrity": "sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.3", "es-errors": "^1.3.0", - "is-typed-array": "^1.1.13" + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" } }, "node_modules/typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" }, "engines": { "node": ">= 0.4" @@ -19672,18 +27700,18 @@ } }, "node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", "dev": true, - "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" }, "engines": { "node": ">= 0.4" @@ -19693,18 +27721,17 @@ } }, "node_modules/typed-array-length": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", - "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", "dev": true, - "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", - "has-proto": "^1.0.3", "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" }, "engines": { "node": ">= 0.4" @@ -19714,11 +27741,10 @@ } }, "node_modules/typescript": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", - "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", + "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -19728,9 +27754,9 @@ } }, "node_modules/ua-parser-js": { - "version": "1.0.39", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.39.tgz", - "integrity": "sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw==", + "version": "1.0.40", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.40.tgz", + "integrity": "sha512-z6PJ8Lml+v3ichVojCiB8toQJBuwR42ySM4ezjXIqXK3M0HczmKQ3LF4rhU55PfD99KEEXQG6yb7iOMyvYuHew==", "dev": true, "funding": [ { @@ -19746,7 +27772,6 @@ "url": "https://github.com/sponsors/faisalman" } ], - "license": "MIT", "bin": { "ua-parser-js": "script/cli.js" }, @@ -19759,7 +27784,6 @@ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", "dev": true, - "license": "BSD-2-Clause", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -19769,16 +27793,18 @@ } }, "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", "dev": true, - "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", + "call-bound": "^1.0.3", "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -19789,24 +27815,27 @@ "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "node_modules/unicorn-magic": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", + "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4.0.0" } @@ -19816,15 +27845,14 @@ "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/update-browserslist-db": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz", - "integrity": "sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", "dev": true, "funding": [ { @@ -19840,10 +27868,9 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "dependencies": { - "escalade": "^3.1.2", - "picocolors": "^1.0.1" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" @@ -19857,7 +27884,6 @@ "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -19867,7 +27893,6 @@ "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.0.3" } @@ -19876,8 +27901,13 @@ "version": "10.0.0", "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz", "integrity": "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==", - "dev": true, - "license": "MIT" + "dev": true + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true }, "node_modules/uuid": { "version": "9.0.1", @@ -19888,7 +27918,6 @@ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], - "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -19898,7 +27927,6 @@ "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.12.tgz", "integrity": "sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=12" } @@ -19908,7 +27936,6 @@ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", "dev": true, - "license": "MIT", "dependencies": { "defaults": "^1.0.3" } @@ -19918,7 +27945,6 @@ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -19927,15 +27953,22 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "node_modules/whatwg-mimetype": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", + "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", "dev": true, - "license": "BSD-2-Clause" + "engines": { + "node": ">=18" + } }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "dev": true, - "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -19946,7 +27979,6 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -19958,17 +27990,64 @@ } }, "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", "dev": true, - "license": "MIT", "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -19978,20 +28057,20 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", "dev": true, - "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" }, "engines": { @@ -20005,22 +28084,23 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, "node_modules/wrap-ansi-cjs": { @@ -20029,7 +28109,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -20042,63 +28121,17 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.4" } @@ -20108,7 +28141,6 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "license": "ISC", "engines": { "node": ">=10" } @@ -20117,15 +28149,22 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true, - "license": "ISC" + "engines": { + "node": ">= 6" + } }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -20144,31 +28183,44 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "license": "ISC", "engines": { "node": ">=12" } }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "license": "MIT" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/yoctocolors": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.1.tgz", + "integrity": "sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==", "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "engines": { + "node": ">=18" }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yoctocolors-cjs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", + "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==", + "dev": true, "engines": { - "node": ">=8" + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/yup": { @@ -20176,7 +28228,6 @@ "resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz", "integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/runtime": "^7.15.4", "@types/lodash": "^4.14.175", @@ -20190,12 +28241,25 @@ "node": ">=10" } }, + "node_modules/zip-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-6.0.1.tgz", + "integrity": "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==", + "dev": true, + "dependencies": { + "archiver-utils": "^5.0.0", + "compress-commons": "^6.0.2", + "readable-stream": "^4.0.0" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/zod": { - "version": "3.23.8", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", - "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", + "version": "3.24.2", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz", + "integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==", "dev": true, - "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/packages/amplify_core/test/config/amplify_outputs_mapping/app/package.json b/packages/amplify_core/test/config/amplify_outputs_mapping/app/package.json index 7b648cfcae..b0add325c1 100644 --- a/packages/amplify_core/test/config/amplify_outputs_mapping/app/package.json +++ b/packages/amplify_core/test/config/amplify_outputs_mapping/app/package.json @@ -14,8 +14,8 @@ "author": "", "license": "ISC", "devDependencies": { - "@aws-amplify/backend": "1.0.3", - "@aws-amplify/backend-cli": "1.0.4", + "@aws-amplify/backend": "1.15.0", + "@aws-amplify/backend-cli": "1.5.0", "tsx": "^4.10.5", "typescript": "^5.4.5" diff --git a/packages/amplify_core/test/config/auth_config_test.dart b/packages/amplify_core/test/config/auth_config_test.dart index 4460fac35d..3b1a3fa98e 100644 --- a/packages/amplify_core/test/config/auth_config_test.dart +++ b/packages/amplify_core/test/config/auth_config_test.dart @@ -2,9 +2,9 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; // ignore_for_file: deprecated_member_use_from_same_package - import 'dart:convert'; import 'dart:io'; @@ -34,8 +34,8 @@ void main() { expectedConfig.toJson(), equals( // ignore: avoid_dynamic_calls - (expectedJson['auth'] as Map)['plugins']['awsCognitoAuthPlugin'] - ['Auth']['Default'], + (expectedJson['auth'] + as Map)['plugins']['awsCognitoAuthPlugin']['Auth']['Default'], ), ); }); @@ -78,19 +78,13 @@ const expected = { passwordPolicyMinLength: 8, ), mfaConfiguration: MfaConfiguration.off, - mfaTypes: [ - MfaType.sms, - ], - verificationMechanisms: [ - CognitoUserAttributeKey.email, - ], + mfaTypes: [MfaType.sms], + verificationMechanisms: [CognitoUserAttributeKey.email], socialProviders: [], usernameAttributes: [], ), 'auth_with_email': CognitoAuthConfig( - signupAttributes: [ - CognitoUserAttributeKey.email, - ], + signupAttributes: [CognitoUserAttributeKey.email], passwordProtectionSettings: PasswordProtectionSettings( passwordPolicyMinLength: 8, passwordPolicyCharacters: [ @@ -101,16 +95,10 @@ const expected = { ], ), mfaConfiguration: MfaConfiguration.off, - mfaTypes: [ - MfaType.sms, - ], - verificationMechanisms: [ - CognitoUserAttributeKey.email, - ], + mfaTypes: [MfaType.sms], + verificationMechanisms: [CognitoUserAttributeKey.email], socialProviders: [], - usernameAttributes: [ - CognitoUserAttributeKey.email, - ], + usernameAttributes: [CognitoUserAttributeKey.email], ), 'auth_with_multi_alias': CognitoAuthConfig( signupAttributes: [ @@ -121,29 +109,19 @@ const expected = { passwordPolicyMinLength: 8, ), mfaConfiguration: MfaConfiguration.off, - mfaTypes: [ - MfaType.sms, - ], + mfaTypes: [MfaType.sms], socialProviders: [], usernameAttributes: [], - verificationMechanisms: [ - CognitoUserAttributeKey.email, - ], + verificationMechanisms: [CognitoUserAttributeKey.email], ), 'auth_with_username_no_attributes': CognitoAuthConfig( - signupAttributes: [ - CognitoUserAttributeKey.email, - ], + signupAttributes: [CognitoUserAttributeKey.email], passwordProtectionSettings: PasswordProtectionSettings( passwordPolicyMinLength: 8, ), mfaConfiguration: MfaConfiguration.off, - mfaTypes: [ - MfaType.sms, - ], - verificationMechanisms: [ - CognitoUserAttributeKey.email, - ], + mfaTypes: [MfaType.sms], + verificationMechanisms: [CognitoUserAttributeKey.email], socialProviders: [], usernameAttributes: [], ), @@ -161,12 +139,8 @@ const expected = { passwordPolicyMinLength: 8, ), mfaConfiguration: MfaConfiguration.on, - mfaTypes: [ - MfaType.sms, - ], - verificationMechanisms: [ - CognitoUserAttributeKey.email, - ], + mfaTypes: [MfaType.sms], + verificationMechanisms: [CognitoUserAttributeKey.email], ), 'auth_with_federated': CognitoAuthConfig( oAuth: CognitoOAuthConfig( @@ -187,12 +161,8 @@ const expected = { SocialProvider.google, SocialProvider.amazon, ], - usernameAttributes: [ - CognitoUserAttributeKey.email, - ], - signupAttributes: [ - CognitoUserAttributeKey.email, - ], + usernameAttributes: [CognitoUserAttributeKey.email], + signupAttributes: [CognitoUserAttributeKey.email], passwordProtectionSettings: PasswordProtectionSettings( passwordPolicyMinLength: 8, passwordPolicyCharacters: [ @@ -203,19 +173,13 @@ const expected = { ], ), mfaConfiguration: MfaConfiguration.off, - mfaTypes: [ - MfaType.sms, - ], - verificationMechanisms: [ - CognitoUserAttributeKey.email, - ], + mfaTypes: [MfaType.sms], + verificationMechanisms: [CognitoUserAttributeKey.email], ), 'auth_with_username': CognitoAuthConfig( socialProviders: [], usernameAttributes: [], - signupAttributes: [ - CognitoUserAttributeKey.preferredUsername, - ], + signupAttributes: [CognitoUserAttributeKey.preferredUsername], passwordProtectionSettings: PasswordProtectionSettings( passwordPolicyMinLength: 8, passwordPolicyCharacters: [ @@ -226,11 +190,7 @@ const expected = { ], ), mfaConfiguration: MfaConfiguration.off, - mfaTypes: [ - MfaType.sms, - ], - verificationMechanisms: [ - CognitoUserAttributeKey.email, - ], + mfaTypes: [MfaType.sms], + verificationMechanisms: [CognitoUserAttributeKey.email], ), }; diff --git a/packages/amplify_core/test/config/cli_config_test.dart b/packages/amplify_core/test/config/cli_config_test.dart index cb83d4c2ee..4f2a59ac2a 100644 --- a/packages/amplify_core/test/config/cli_config_test.dart +++ b/packages/amplify_core/test/config/cli_config_test.dart @@ -78,9 +78,7 @@ const expected = { CognitoPluginConfig.pluginKey: CognitoPluginConfig( userAgent: 'aws-amplify/cli', version: '0.1.0', - identityManager: AWSConfigMap({ - 'Default': CognitoIdentityManager(), - }), + identityManager: AWSConfigMap({'Default': CognitoIdentityManager()}), auth: AWSConfigMap({ 'Default': CognitoAuthConfig( oAuth: CognitoOAuthConfig( @@ -151,15 +149,10 @@ const expected = { ), }), pinpointTargeting: AWSConfigMap({ - 'Default': CognitoPinpointTargetingConfig( - region: REGION, - ), + 'Default': CognitoPinpointTargetingConfig(region: REGION), }), s3TransferUtility: AWSConfigMap({ - 'Default': S3TransferUtility( - bucket: BUCKET, - region: REGION, - ), + 'Default': S3TransferUtility(bucket: BUCKET, region: REGION), }), ), }, diff --git a/packages/amplify_core/test/config/unknown_test.dart b/packages/amplify_core/test/config/unknown_test.dart index 64ed3d5e51..7824e6f013 100644 --- a/packages/amplify_core/test/config/unknown_test.dart +++ b/packages/amplify_core/test/config/unknown_test.dart @@ -8,17 +8,13 @@ void main() { group('Config', () { test('Unknown Plugin', () { const customPluginName = 'my_custom_plugin'; - const customPluginConfig = { - 'custom_key': 'custom_value', - }; + const customPluginConfig = {'custom_key': 'custom_value'}; const json = { 'UserAgent': 'aws-amplify-cli/2.0', 'Version': '1.0', 'auth': { - 'plugins': { - customPluginName: customPluginConfig, - }, + 'plugins': {customPluginName: customPluginConfig}, }, }; diff --git a/packages/amplify_core/test/config/utils/remove_deprecated_key.dart b/packages/amplify_core/test/config/utils/remove_deprecated_key.dart index ab342101ec..ccb8e35c6b 100644 --- a/packages/amplify_core/test/config/utils/remove_deprecated_key.dart +++ b/packages/amplify_core/test/config/utils/remove_deprecated_key.dart @@ -12,28 +12,22 @@ /// the output and need to be removed before comparison. Map removeDeprecatedKeys(Map object) { final newObject = {...object}; - removeKey( - newObject, - [ - 'auth', - 'plugins', - 'awsCognitoAuthPlugin', - 'Auth', - 'DefaultCustomAuth', - 'authenticationFlowType', - ], - ); - removeKey( - newObject, - [ - 'auth', - 'plugins', - 'awsCognitoAuthPlugin', - 'Auth', - 'Default', - 'authenticationFlowType', - ], - ); + removeKey(newObject, [ + 'auth', + 'plugins', + 'awsCognitoAuthPlugin', + 'Auth', + 'DefaultCustomAuth', + 'authenticationFlowType', + ]); + removeKey(newObject, [ + 'auth', + 'plugins', + 'awsCognitoAuthPlugin', + 'Auth', + 'Default', + 'authenticationFlowType', + ]); return newObject; } diff --git a/packages/amplify_core/test/http/user_agent_test.dart b/packages/amplify_core/test/http/user_agent_test.dart index 4734e55daf..f04508633d 100644 --- a/packages/amplify_core/test/http/user_agent_test.dart +++ b/packages/amplify_core/test/http/user_agent_test.dart @@ -39,32 +39,29 @@ void main() { final dependencies = AmplifyDependencyManager(); final httpClient = MockAWSHttpClient( - expectAsync2( - (request, isCancelled) { - expect( - request.headers[AWSHeaders.platformUserAgent], - contains(osIdentifier), - reason: 'should contain default user agent component', - ); - expect( - request.headers[AWSHeaders.platformUserAgent], - contains(myUserAgent), - reason: 'should contain custom user agent component', - ); - return AWSHttpResponse(statusCode: 200); - }, - ), + expectAsync2((request, isCancelled) { + expect( + request.headers[AWSHeaders.platformUserAgent], + contains(osIdentifier), + reason: 'should contain default user agent component', + ); + expect( + request.headers[AWSHeaders.platformUserAgent], + contains(myUserAgent), + reason: 'should contain custom user agent component', + ); + return AWSHttpResponse(statusCode: 200); + }), ); dependencies.addInstance(httpClient); dependencies.getOrCreate().addComponent(myUserAgent); - final response = await dependencies - .getOrCreate() - .send( - AWSHttpRequest.get(Uri.parse('https://example.com')), - ) - .response; + final response = + await dependencies + .getOrCreate() + .send(AWSHttpRequest.get(Uri.parse('https://example.com'))) + .response; expect(response.statusCode, 200); }); @@ -81,16 +78,14 @@ void main() { test('adds the category/method to the header', () async { const categoryMethod = AuthCategoryMethod.signIn; final httpClient = MockAWSHttpClient( - expectAsync2( - (request, isCancelled) { - expect( - request.headers[AWSHeaders.platformUserAgent], - contains(categoryMethod.headerValue), - reason: 'should contain category/method value', - ); - return AWSHttpResponse(statusCode: 200); - }, - ), + expectAsync2((request, isCancelled) { + expect( + request.headers[AWSHeaders.platformUserAgent], + contains(categoryMethod.headerValue), + reason: 'should contain category/method value', + ); + return AWSHttpResponse(statusCode: 200); + }), ); Amplify.dependencies.addInstance(httpClient); @@ -102,21 +97,19 @@ void main() { const categoryMethod1 = AuthCategoryMethod.signInWithWebUI; const categoryMethod2 = AuthCategoryMethod.signIn; final httpClient = MockAWSHttpClient( - expectAsync2( - (request, isCancelled) { - expect( - request.headers[AWSHeaders.platformUserAgent], - contains(categoryMethod1.headerValue), - reason: 'should contain originating call', - ); - expect( - request.headers[AWSHeaders.platformUserAgent], - isNot(contains(categoryMethod2.headerValue)), - reason: 'should not contain nested calls', - ); - return AWSHttpResponse(statusCode: 200); - }, - ), + expectAsync2((request, isCancelled) { + expect( + request.headers[AWSHeaders.platformUserAgent], + contains(categoryMethod1.headerValue), + reason: 'should contain originating call', + ); + expect( + request.headers[AWSHeaders.platformUserAgent], + isNot(contains(categoryMethod2.headerValue)), + reason: 'should not contain nested calls', + ); + return AWSHttpResponse(statusCode: 200); + }), ); Amplify.dependencies.addInstance(httpClient); @@ -144,9 +137,7 @@ class MockAuthPlugin extends AuthPluginInterface { await _sendRequest(); return const SignInResult( isSignedIn: true, - nextStep: AuthNextSignInStep( - signInStep: AuthSignInStep.done, - ), + nextStep: AuthNextSignInStep(signInStep: AuthSignInStep.done), ); } diff --git a/packages/amplify_core/test/hub/hub_test.dart b/packages/amplify_core/test/hub/hub_test.dart index 31d8dda75f..8c437c70aa 100644 --- a/packages/amplify_core/test/hub/hub_test.dart +++ b/packages/amplify_core/test/hub/hub_test.dart @@ -51,7 +51,8 @@ void main() { expect( subscriber.future, completes, - reason: 'The subscriber should receive the event even though it ' + reason: + 'The subscriber should receive the event even though it ' 'subscribed before the stream was added', ); @@ -142,11 +143,7 @@ void main() { Amplify.Hub.addChannel(HubChannel.Auth, controller.stream); final finished = Completer(); - Amplify.Hub.listen( - HubChannel.Auth, - (_) {}, - onError: finished.complete, - ); + Amplify.Hub.listen(HubChannel.Auth, (_) {}, onError: finished.complete); controller.addError(Exception()); diff --git a/packages/amplify_core/test/plugin/auth_providers_test.dart b/packages/amplify_core/test/plugin/auth_providers_test.dart index 1856d9532d..452642d788 100644 --- a/packages/amplify_core/test/plugin/auth_providers_test.dart +++ b/packages/amplify_core/test/plugin/auth_providers_test.dart @@ -45,9 +45,10 @@ class AuthPlugin extends Fake implements AuthPluginInterface { AmplifyOutputs? config, required AmplifyAuthProviderRepository authProviderRepo, }) async { - _authProvider = authProviderRepo.getAuthProvider( - const MockAuthProviderToken(Category.api), - )!; + _authProvider = + authProviderRepo.getAuthProvider( + const MockAuthProviderToken(Category.api), + )!; } } @@ -75,9 +76,10 @@ class ApiPlugin extends Fake implements APIPluginInterface { AmplifyOutputs? config, required AmplifyAuthProviderRepository authProviderRepo, }) async { - _authProvider = authProviderRepo.getAuthProvider( - const MockAuthProviderToken(Category.auth), - )!; + _authProvider = + authProviderRepo.getAuthProvider( + const MockAuthProviderToken(Category.auth), + )!; } } diff --git a/packages/amplify_core/test/plugin/plugin_key_test.dart b/packages/amplify_core/test/plugin/plugin_key_test.dart index 19d402c696..9a2a69c76f 100644 --- a/packages/amplify_core/test/plugin/plugin_key_test.dart +++ b/packages/amplify_core/test/plugin/plugin_key_test.dart @@ -38,22 +38,22 @@ class MockCategory> @override Set get categoryDependencies => const {}; - MockCategory getPlugin>( - MockPluginKey pluginKey, - ) => - MockCategory( - plugins.singleWhere( - (p) => p is GetPlugin, - orElse: () => throw Exception(), - ) as GetPlugin, - ); + MockCategory getPlugin< + GetValue extends Object, + GetPlugin extends MockPluginInterface + >(MockPluginKey pluginKey) => MockCategory( + plugins.singleWhere((p) => p is GetPlugin, orElse: () => throw Exception()) + as GetPlugin, + ); Value getValue() => _plugin.getValue(); } -abstract class MockPluginKey> extends AmplifyPluginKey

{ +abstract class MockPluginKey< + Value extends Object, + P extends MockPluginInterface +> + extends AmplifyPluginKey

{ const MockPluginKey(); } @@ -86,17 +86,11 @@ void main() { test('can register multiple plugins', () { expect( - category.addPlugin( - intPlugin, - authProviderRepo: authProviderRepo, - ), + category.addPlugin(intPlugin, authProviderRepo: authProviderRepo), completes, ); expect( - category.addPlugin( - stringPlugin, - authProviderRepo: authProviderRepo, - ), + category.addPlugin(stringPlugin, authProviderRepo: authProviderRepo), completes, ); }); @@ -109,10 +103,7 @@ void main() { }); test('getPlugin returns reified types', () async { - await category.addPlugin( - intPlugin, - authProviderRepo: authProviderRepo, - ); + await category.addPlugin(intPlugin, authProviderRepo: authProviderRepo); await category.addPlugin( stringPlugin, authProviderRepo: authProviderRepo, diff --git a/packages/amplify_core/test/state_machine/dependency_manager_test.dart b/packages/amplify_core/test/state_machine/dependency_manager_test.dart index 9229f98002..0fd8cc1c1d 100644 --- a/packages/amplify_core/test/state_machine/dependency_manager_test.dart +++ b/packages/amplify_core/test/state_machine/dependency_manager_test.dart @@ -41,8 +41,7 @@ class MyDispatcher with Dispatcher { @override EventCompleter dispatch( StateMachineEvent event, - ) => - EventCompleter(event); + ) => EventCompleter(event); } void main() { @@ -102,10 +101,7 @@ void main() { () => dependencyManager.getOrCreate(), throwsStateError, ); - expect( - () => dependencyManager.expect(), - throwsStateError, - ); + expect(() => dependencyManager.expect(), throwsStateError); expect( () => scopedDependencyManager.get(), returnsNormally, @@ -139,20 +135,20 @@ void main() { dependencyManager ..addBuilder((_) => MyDispatcher()) ..addBuilder( - (deps) => NeedsDependencyManagerAndDispatcher( - deps, - deps.getOrCreate(), - ), + (deps) => + NeedsDependencyManagerAndDispatcher(deps, deps.getOrCreate()), ); expect( - () => dependencyManager - .getOrCreate(), + () => + dependencyManager + .getOrCreate(), returnsNormally, ); expect( - () => scopedDependencyManager - .getOrCreate(), + () => + scopedDependencyManager + .getOrCreate(), returnsNormally, ); }); diff --git a/packages/amplify_core/test/state_machine/my_state_machine.dart b/packages/amplify_core/test/state_machine/my_state_machine.dart index 8bfc13ccf1..ac385a2ed1 100644 --- a/packages/amplify_core/test/state_machine/my_state_machine.dart +++ b/packages/amplify_core/test/state_machine/my_state_machine.dart @@ -5,9 +5,14 @@ import 'dart:async'; import 'package:amplify_core/amplify_core.dart'; -final _builders = >{ +final _builders = < + StateMachineToken, + StateMachineBuilder< + StateMachineEvent, + StateMachineState, + MyStateMachineManager + > +>{ MyStateMachine.type: MyStateMachine.new, WorkerMachine.type: WorkerMachine.new, }; @@ -71,12 +76,26 @@ final class MyErrorState extends MyState with ErrorState { final StackTrace stackTrace; } -class MyStateMachine extends StateMachine { +class MyStateMachine + extends + StateMachine< + MyEvent, + MyState, + StateMachineEvent, + StateMachineState, + MyStateMachineManager + > { MyStateMachine(MyStateMachineManager manager) : super(manager, type); - static const type = StateMachineToken(); + static const type = + StateMachineToken< + MyEvent, + MyState, + StateMachineEvent, + StateMachineState, + MyStateMachineManager, + MyStateMachine + >(); @override MyState get initialState => const MyState(MyType.initial); @@ -160,7 +179,7 @@ final class WorkerState extends StateMachineState { final class WorkerErrorState extends WorkerState with ErrorState { const WorkerErrorState(this.exception, this.stackTrace) - : super(WorkType.error); + : super(WorkType.error); @override final Exception exception; @@ -169,17 +188,26 @@ final class WorkerErrorState extends WorkerState with ErrorState { final StackTrace stackTrace; } -class WorkerMachine extends StateMachine { +class WorkerMachine + extends + StateMachine< + WorkerEvent, + WorkerState, + StateMachineEvent, + StateMachineState, + MyStateMachineManager + > { WorkerMachine(MyStateMachineManager manager) : super(manager, type); - static const type = StateMachineToken< - WorkerEvent, - WorkerState, - StateMachineEvent, - StateMachineState, - MyStateMachineManager, - WorkerMachine>(); + static const type = + StateMachineToken< + WorkerEvent, + WorkerState, + StateMachineEvent, + StateMachineState, + MyStateMachineManager, + WorkerMachine + >(); @override WorkerState get initialState => const WorkerState(WorkType.initial); @@ -210,11 +238,15 @@ class WorkerMachine extends StateMachine 'WorkerMachine'; } -class MyStateMachineManager extends StateMachineManager { - MyStateMachineManager( - DependencyManager dependencyManager, - ) : super(_builders, dependencyManager); +class MyStateMachineManager + extends + StateMachineManager< + StateMachineEvent, + StateMachineState, + MyStateMachineManager + > { + MyStateMachineManager(DependencyManager dependencyManager) + : super(_builders, dependencyManager); Future delegateWork() async { dispatch(const WorkerEvent(WorkType.doWork)).ignore(); diff --git a/packages/amplify_core/test/state_machine/state_machine_test.dart b/packages/amplify_core/test/state_machine/state_machine_test.dart index 5a895d951a..83690aced7 100644 --- a/packages/amplify_core/test/state_machine/state_machine_test.dart +++ b/packages/amplify_core/test/state_machine/state_machine_test.dart @@ -23,20 +23,14 @@ void main() { expect(currentState.type, equals(MyType.initial)); stateMachine.accept(const MyEvent(MyType.initial)).ignore(); - expect( - stateMachine.stream, - neverEmits(anything), - ); + expect(stateMachine.stream, neverEmits(anything)); await stateMachine.close(); }); test('dispatches correctly', () { stateMachine.accept(const MyEvent(MyType.doWork)).ignore(); - expect( - stateMachine.stream, - emitsThrough(const MyState(MyType.success)), - ); + expect(stateMachine.stream, emitsThrough(const MyState(MyType.success))); }); group('handles errors', () { @@ -99,9 +93,10 @@ void main() { }); test('dispatch', () async { - final completion = await stateMachine - .dispatch(const MyEvent(MyType.tryWork)) - .completed; + final completion = + await stateMachine + .dispatch(const MyEvent(MyType.tryWork)) + .completed; expect( completion, isA().having( @@ -135,16 +130,13 @@ void main() { reason: 'Should complete in forked zone', ); }); - runZonedGuarded( - () { - expect( - completer.completed, - completes, - reason: 'Should complete with different error zone', - ); - }, - (e, st) {}, - ); + runZonedGuarded(() { + expect( + completer.completed, + completes, + reason: 'Should complete with different error zone', + ); + }, (e, st) {}); expect(completer.completed, completes); }); @@ -157,16 +149,13 @@ void main() { reason: 'Should complete in forked zone', ); }); - runZonedGuarded( - () { - expect( - completer.completed, - throwsA(isA()), - reason: 'Should complete with different error zone', - ); - }, - (e, st) {}, - ); + runZonedGuarded(() { + expect( + completer.completed, + throwsA(isA()), + reason: 'Should complete with different error zone', + ); + }, (e, st) {}); expect(completer.completed, throwsA(isA())); }); }); @@ -212,9 +201,7 @@ void main() { test('queues calls to accept appropriately', () async { final tryWork1 = stateMachine.accept(const MyEvent(MyType.tryWork)); - final delegate = stateMachine.accept( - const MyEvent(MyType.delegateWork), - ); + final delegate = stateMachine.accept(const MyEvent(MyType.delegateWork)); final tryWork2 = stateMachine.accept(const MyEvent(MyType.tryWork)); await expectLater( stateMachine.stream, diff --git a/packages/amplify_core/test/types/auth/auth_user_attribute_key_test.dart b/packages/amplify_core/test/types/auth/auth_user_attribute_key_test.dart index 58eb2f7a98..3ebb2a3dc9 100644 --- a/packages/amplify_core/test/types/auth/auth_user_attribute_key_test.dart +++ b/packages/amplify_core/test/types/auth/auth_user_attribute_key_test.dart @@ -25,14 +25,16 @@ void main() { AuthUserAttributeKey.email, // ignore: prefer_const_constructors CustomUserAttributeKey('email'), - reason: 'Any class which inherits from AuthUserAttibuteKey ' + reason: + 'Any class which inherits from AuthUserAttibuteKey ' 'inherits equality rules', ); expect( const CognitoUserAttributeKey.custom('myattr'), const CustomUserAttributeKey('custom:MYATTR'), - reason: 'Two keys are equal if the lower-case value of their ' + reason: + 'Two keys are equal if the lower-case value of their ' 'keys are equal', ); }); diff --git a/packages/amplify_core/test/types/auth/totp_setup_details_test.dart b/packages/amplify_core/test/types/auth/totp_setup_details_test.dart index a8f6ccaab4..a5c242e929 100644 --- a/packages/amplify_core/test/types/auth/totp_setup_details_test.dart +++ b/packages/amplify_core/test/types/auth/totp_setup_details_test.dart @@ -6,8 +6,10 @@ import 'package:test/test.dart'; void main() { group('TotpSetupDetails', () { - const details = - TotpSetupDetails(sharedSecret: 'sharedSecret', username: 'username'); + const details = TotpSetupDetails( + sharedSecret: 'sharedSecret', + username: 'username', + ); test('Correct encodes appName/issuer', () { final setupUri = details.getSetupUri(appName: 'My Application'); diff --git a/packages/amplify_core/test/types/datastore/datastore_hub_event_type_test.dart b/packages/amplify_core/test/types/datastore/datastore_hub_event_type_test.dart index 59ba35666d..ec4f75ba53 100644 --- a/packages/amplify_core/test/types/datastore/datastore_hub_event_type_test.dart +++ b/packages/amplify_core/test/types/datastore/datastore_hub_event_type_test.dart @@ -29,10 +29,7 @@ void main() { expect(event.payload, isNull); expect(event.type, equals(DataStoreHubEventType.ready)); - Amplify.Hub.addChannel( - HubChannel.DataStore, - controller.stream, - ); + Amplify.Hub.addChannel(HubChannel.DataStore, controller.stream); final subscriber = expectAsync1((e) => expect(e, equals(event))); Amplify.Hub.listen(HubChannel.DataStore, subscriber); @@ -75,10 +72,7 @@ void main() { expect(event.payload, payload); expect(event.type, equals(DataStoreHubEventType.outboxMutationProcessed)); - Amplify.Hub.addChannel( - HubChannel.DataStore, - controller.stream, - ); + Amplify.Hub.addChannel(HubChannel.DataStore, controller.stream); final subscriber = expectAsync1((e) => expect(e, equals(event))); Amplify.Hub.listen(HubChannel.DataStore, subscriber); diff --git a/packages/amplify_core/test/types/storage/storage_bucket_test.dart b/packages/amplify_core/test/types/storage/storage_bucket_test.dart index edae2ab4af..dbc4975a4b 100644 --- a/packages/amplify_core/test/types/storage/storage_bucket_test.dart +++ b/packages/amplify_core/test/types/storage/storage_bucket_test.dart @@ -26,62 +26,60 @@ void main() { final testStorageOutputsMultiBucket = StorageOutputs( awsRegion: defaultBucketOutputs.awsRegion, bucketName: defaultBucketOutputs.bucketName, - buckets: [ - defaultBucketOutputs, - secondBucketOutputs, - ], + buckets: [defaultBucketOutputs, secondBucketOutputs], ); final testStorageOutputsSingleBucket = StorageOutputs( awsRegion: defaultBucketOutputs.awsRegion, bucketName: defaultBucketOutputs.bucketName, ); - test( - 'should return same bucket info when storage bucket is created from' + test('should return same bucket info when storage bucket is created from' ' a bucket info', () { - final storageBucket = StorageBucket.fromBucketInfo( - defaultBucketInfo, - ); + final storageBucket = StorageBucket.fromBucketInfo(defaultBucketInfo); final bucketInfo = storageBucket.resolveBucketInfo(null); expect(bucketInfo, defaultBucketInfo); }); - test( - 'should return bucket info when storage bucket is created from' + test('should return bucket info when storage bucket is created from' ' buckets in storage outputs', () { final storageBucket = StorageBucket.fromOutputs(secondBucketOutputs.name); - final bucketInfo = - storageBucket.resolveBucketInfo(testStorageOutputsMultiBucket); + final bucketInfo = storageBucket.resolveBucketInfo( + testStorageOutputsMultiBucket, + ); expect(bucketInfo, secondBucketInfo); }); - test( - 'should throw assertion error when storage bucket is created from' + test('should throw assertion error when storage bucket is created from' ' outputs and storage outputs is null', () { - final storageBucket = - StorageBucket.fromOutputs(defaultBucketOutputs.name); + final storageBucket = StorageBucket.fromOutputs( + defaultBucketOutputs.name, + ); expect( () => storageBucket.resolveBucketInfo(null), throwsA(isA()), ); }); test( - 'should throw exception when storage bucket is created from outputs and' - ' storage outputs does not have buckets', () { - final storageBucket = StorageBucket.fromOutputs('bucket-name'); - expect( - () => storageBucket.resolveBucketInfo(testStorageOutputsSingleBucket), - throwsA(isA()), - ); - }); + 'should throw exception when storage bucket is created from outputs and' + ' storage outputs does not have buckets', + () { + final storageBucket = StorageBucket.fromOutputs('bucket-name'); + expect( + () => storageBucket.resolveBucketInfo(testStorageOutputsSingleBucket), + throwsA(isA()), + ); + }, + ); test( - 'should throw exception when storage bucket is created from outputs and' - ' bucket name does not match any bucket in storage outputs', () { - final storageBucket = StorageBucket.fromOutputs('invalid-bucket-name'); - expect( - () => storageBucket.resolveBucketInfo(testStorageOutputsMultiBucket), - throwsA(isA()), - ); - }); + 'should throw exception when storage bucket is created from outputs and' + ' bucket name does not match any bucket in storage outputs', + () { + final storageBucket = StorageBucket.fromOutputs('invalid-bucket-name'); + expect( + () => storageBucket.resolveBucketInfo(testStorageOutputsMultiBucket), + throwsA(isA()), + ); + }, + ); }); } diff --git a/packages/amplify_datastore/CHANGELOG.md b/packages/amplify_datastore/CHANGELOG.md index c1e9c06972..dc82579afb 100644 --- a/packages/amplify_datastore/CHANGELOG.md +++ b/packages/amplify_datastore/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) +- chore(datastore): Removed Starscream pinned version + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/amplify_datastore/android/gradle/wrapper/gradle-wrapper.properties b/packages/amplify_datastore/android/gradle/wrapper/gradle-wrapper.properties index 35a3ba37de..8838ba97ba 100644 --- a/packages/amplify_datastore/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/amplify_datastore/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/packages/amplify_datastore/example/android/.gitignore b/packages/amplify_datastore/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/amplify_datastore/example/android/.gitignore +++ b/packages/amplify_datastore/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/amplify_datastore/example/android/app/build.gradle b/packages/amplify_datastore/example/android/app/build.gradle index 01ab2c90bb..126fc88198 100644 --- a/packages/amplify_datastore/example/android/app/build.gradle +++ b/packages/amplify_datastore/example/android/app/build.gradle @@ -66,7 +66,7 @@ flutter { } dependencies { - coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.0' testImplementation 'junit:junit:4.13.2' diff --git a/packages/amplify_datastore/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/amplify_datastore/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/amplify_datastore/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/amplify_datastore/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/amplify_datastore/example/android/settings.gradle b/packages/amplify_datastore/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/amplify_datastore/example/android/settings.gradle +++ b/packages/amplify_datastore/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/amplify_datastore/example/integration_test/delete_test.dart b/packages/amplify_datastore/example/integration_test/delete_test.dart index 0d4877c007..9eedc5ad17 100644 --- a/packages/amplify_datastore/example/integration_test/delete_test.dart +++ b/packages/amplify_datastore/example/integration_test/delete_test.dart @@ -18,27 +18,33 @@ void main() { await clearDataStore(); }); - testWidgets('predicate should prevent delete to non matching model', - (WidgetTester tester) async { + testWidgets('predicate should prevent delete to non matching model', ( + WidgetTester tester, + ) async { const originalBlogName = 'non matching blog'; Blog testBlog = Blog(name: originalBlogName); await Amplify.DataStore.save(testBlog); - await Amplify.DataStore.delete(testBlog, - where: Blog.NAME.contains("Predicate")); + await Amplify.DataStore.delete( + testBlog, + where: Blog.NAME.contains("Predicate"), + ); var blogs = await Amplify.DataStore.query(Blog.classType); expect(blogs.length, 1); expect(blogs[0].name, originalBlogName); }); - testWidgets('predicate should not prevent delete for matching model', - (WidgetTester tester) async { + testWidgets('predicate should not prevent delete for matching model', ( + WidgetTester tester, + ) async { const originalBlogName = 'matching blog'; Blog testBlog = Blog(name: originalBlogName); await Amplify.DataStore.save(testBlog); - await Amplify.DataStore.delete(testBlog, - where: Blog.NAME.contains("matching")); + await Amplify.DataStore.delete( + testBlog, + where: Blog.NAME.contains("matching"), + ); var blogs = await Amplify.DataStore.query(Blog.classType); expect(blogs.length, 0); }); diff --git a/packages/amplify_datastore/example/integration_test/model_type_test.dart b/packages/amplify_datastore/example/integration_test/model_type_test.dart index 1630142ebb..bfbfd4ab3d 100644 --- a/packages/amplify_datastore/example/integration_test/model_type_test.dart +++ b/packages/amplify_datastore/example/integration_test/model_type_test.dart @@ -19,68 +19,82 @@ void main() { group('a model with field of type', () { group('String', () { var values = ['', 'foo', 'bar', '!@#"', '\u{1F601}']; - var models = values - .map((value) => ModelWithAppsyncScalarTypes(stringValue: value)) - .toList(); + var models = + values + .map((value) => ModelWithAppsyncScalarTypes(stringValue: value)) + .toList(); testModelOperations(models: models); }); group( - 'Schalar type value is null or a list of scalar types where the list is null', - () { - var models = List.generate(5, (_) => ModelWithAppsyncScalarTypes()); - testModelOperations(models: models); - }); + 'Schalar type value is null or a list of scalar types where the list is null', + () { + var models = List.generate(5, (_) => ModelWithAppsyncScalarTypes()); + testModelOperations(models: models); + }, + ); group('List', () { var list = List.generate(3, (i) => '$i'); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfStringValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfStringValue: list), + ); testModelOperations(models: models); }); group('Int', () { var values = [dataStoreMinInt, dataStoreMaxInt, 0, -1, 1]; - var models = values - .map((value) => ModelWithAppsyncScalarTypes(intValue: value)) - .toList(); + var models = + values + .map((value) => ModelWithAppsyncScalarTypes(intValue: value)) + .toList(); testModelOperations(models: models); }); group('List', () { var list = List.generate(3, (i) => i); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfIntValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfIntValue: list), + ); testModelOperations(models: models); }); group('Float', () { var values = [double.maxFinite, double.minPositive, pi, 0.0, 0.1]; - var models = values - .map((value) => ModelWithAppsyncScalarTypes(floatValue: value)) - .toList(); + var models = + values + .map((value) => ModelWithAppsyncScalarTypes(floatValue: value)) + .toList(); testModelOperations(models: models); }); group('List', () { var list = List.generate(3, (i) => i.toDouble()); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfFloatValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfFloatValue: list), + ); testModelOperations(models: models); }); group('Boolean', () { var models = List.generate( - 5, - (i) => ModelWithAppsyncScalarTypes( - booleanValue: i % 2 == 0 ? false : true)); + 5, + (i) => ModelWithAppsyncScalarTypes( + booleanValue: i % 2 == 0 ? false : true, + ), + ); testModelOperations(models: models); }); group('List', () { var list = List.generate(3, (i) => i == 0 ? false : true); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfBooleanValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfBooleanValue: list), + ); testModelOperations(models: models); }); @@ -92,19 +106,27 @@ void main() { DateTime(2020, 01, 01, 23, 59, 59), DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => - ModelWithAppsyncScalarTypes(awsDateValue: TemporalDate(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsDateValue: TemporalDate(value), + ), + ) + .toList(); testModelOperations(models: models); }); group('List', () { var dateTime = DateTime.parse("2021-11-09T18:53:12.183540Z"); var list = List.generate( - 3, (i) => TemporalDate(dateTime.add(Duration(days: i)))); + 3, + (i) => TemporalDate(dateTime.add(Duration(days: i))), + ); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfAWSDateValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfAWSDateValue: list), + ); testModelOperations(models: models); }); @@ -117,10 +139,14 @@ void main() { DateTime(2999, 12, 31, 23, 59, 59), DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => ModelWithAppsyncScalarTypes( - awsDateTimeValue: TemporalDateTime(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsDateTimeValue: TemporalDateTime(value), + ), + ) + .toList(); testModelOperations(models: models); testModelOperations( models: models, @@ -131,9 +157,13 @@ void main() { group('List', () { var dateTime = DateTime.parse("2021-11-09T18:53:12.183540Z"); var list = List.generate( - 3, (i) => TemporalDateTime(dateTime.add(Duration(days: i)))); + 3, + (i) => TemporalDateTime(dateTime.add(Duration(days: i))), + ); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfAWSDateTimeValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfAWSDateTimeValue: list), + ); testModelOperations(models: models); }); @@ -146,10 +176,14 @@ void main() { DateTime(2999, 12, 31, 23, 59, 59), DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => - ModelWithAppsyncScalarTypes(awsTimeValue: TemporalTime(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsTimeValue: TemporalTime(value), + ), + ) + .toList(); testModelOperations( models: models, skips: { @@ -166,9 +200,13 @@ void main() { group('List', () { var dateTime = DateTime.parse("2021-11-09T18:53:12.183540Z"); var list = List.generate( - 3, (i) => TemporalTime(dateTime.add(Duration(days: i)))); + 3, + (i) => TemporalTime(dateTime.add(Duration(days: i))), + ); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfAWSTimeValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfAWSTimeValue: list), + ); testModelOperations(models: models); }); @@ -180,19 +218,27 @@ void main() { DateTime(2020, 01, 01, 23, 59, 59), DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => ModelWithAppsyncScalarTypes( - awsTimestampValue: TemporalTimestamp(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsTimestampValue: TemporalTimestamp(value), + ), + ) + .toList(); testModelOperations(models: models); }); group('List', () { var now = DateTime.now(); var list = List.generate( - 3, (i) => TemporalTimestamp(now.add(Duration(days: i)))); + 3, + (i) => TemporalTimestamp(now.add(Duration(days: i))), + ); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfAWSTimestampValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfAWSTimestampValue: list), + ); testModelOperations(models: models); }); @@ -204,28 +250,34 @@ void main() { 'double': 1.0, }); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(awsJsonValue: json)); + 5, + (_) => ModelWithAppsyncScalarTypes(awsJsonValue: json), + ); testModelOperations(models: models); }); group('List', () { - String generateJson(int value) => jsonEncode(Map.from({ - 'string': 'foo', - 'bool': true, - 'int': value, - 'double': value.toDouble() - })); + String generateJson(int value) => jsonEncode( + Map.from({ + 'string': 'foo', + 'bool': true, + 'int': value, + 'double': value.toDouble(), + }), + ); var list = List.generate(3, (i) => generateJson(i)); var models = List.generate( - 5, (_) => ModelWithAppsyncScalarTypes(listOfAWSJsonValue: list)); + 5, + (_) => ModelWithAppsyncScalarTypes(listOfAWSJsonValue: list), + ); testModelOperations(models: models); }); group('enum', () { var models = List.generate( - 5, - (i) => - ModelWithEnum(enumField: i == 0 ? EnumField.no : EnumField.yes)); + 5, + (i) => ModelWithEnum(enumField: i == 0 ? EnumField.no : EnumField.yes), + ); testModelOperations(models: models); }); @@ -236,8 +288,10 @@ void main() { group('List', () { var list = List.generate(3, (i) => i == 0 ? EnumField.no : EnumField.yes); - var models = - List.generate(5, (_) => ModelWithEnum(listOfEnumField: list)); + var models = List.generate( + 5, + (_) => ModelWithEnum(listOfEnumField: list), + ); testModelOperations(models: models); }); @@ -250,8 +304,9 @@ void main() { awsDateValue: TemporalDate(DateTime.utc(2021, 9, 22)), awsDateTimeValue: TemporalDateTime(DateTime.utc(2021, 9, 22, 23, 0, 0)), awsTimeValue: TemporalTime(DateTime.utc(2021, 9, 22, 0, 0, 0)), - awsTimestampValue: - TemporalTimestamp(DateTime.utc(2021, 9, 22, 0, 0, 0)), + awsTimestampValue: TemporalTimestamp( + DateTime.utc(2021, 9, 22, 0, 0, 0), + ), awsJsonValue: '{"foo":"bar"}', enumValue: EnumField.yes, customTypeValue: SimpleCustomType(foo: 'bar'), @@ -266,7 +321,7 @@ void main() { listOfBooleanValue: [i % 2 == 0, i % 2 != 0], listOfAWSDateValue: [ TemporalDate(DateTime.utc(2021, 9, 22 + i)), - TemporalDate(DateTime.utc(2021, 9, 22 - i)) + TemporalDate(DateTime.utc(2021, 9, 22 - i)), ], listOfAWSDateTimeValue: [ TemporalDateTime(DateTime.utc(2021, 9, 22 + i, 23, 0, 0)), @@ -274,29 +329,31 @@ void main() { ], listOfAWSTimeValue: [ TemporalTime(DateTime.utc(2021, 9, 22 + i, 0, 0, 0)), - TemporalTime(DateTime.utc(2021, 9, 22 - i, 0, 0, 0)) + TemporalTime(DateTime.utc(2021, 9, 22 - i, 0, 0, 0)), ], listOfAWSTimestampValue: [ TemporalTimestamp(DateTime.utc(2021, 9, 22 + i, 0, 0, 0)), - TemporalTimestamp(DateTime.utc(2021, 9, 22 - i, 0, 0, 0)) + TemporalTimestamp(DateTime.utc(2021, 9, 22 - i, 0, 0, 0)), ], listOfAWSJsonValue: ['{"foo":"bar"}', '{"baz":"qux"}'], listOfEnumValue: [ i % 2 == 0 ? EnumField.no : EnumField.yes, - i % 2 != 0 ? EnumField.no : EnumField.yes + i % 2 != 0 ? EnumField.no : EnumField.yes, ], listOfCustomTypeValue: [ SimpleCustomType(foo: 'bar number $i'), - SimpleCustomType(foo: 'bar number ${i + 1}') + SimpleCustomType(foo: 'bar number ${i + 1}'), ], ), ); var models = List.generate( - 5, - (_) => ModelWithCustomType( - customTypeValue: customTypeValue, - listOfCustomTypeValue: listCustomTypeValue)); + 5, + (_) => ModelWithCustomType( + customTypeValue: customTypeValue, + listOfCustomTypeValue: listCustomTypeValue, + ), + ); testModelOperations(models: models); }); diff --git a/packages/amplify_datastore/example/integration_test/observe_query_test.dart b/packages/amplify_datastore/example/integration_test/observe_query_test.dart index 57595dfa66..364fc1fefa 100644 --- a/packages/amplify_datastore/example/integration_test/observe_query_test.dart +++ b/packages/amplify_datastore/example/integration_test/observe_query_test.dart @@ -21,25 +21,29 @@ void main() { }); testWidgets( - 'should return an initial result set that is consistent with query()', - (WidgetTester tester) async { - List blogs = - List.generate(10, (index) => Blog(name: 'blog $index')); + 'should return an initial result set that is consistent with query()', + (WidgetTester tester) async { + List blogs = List.generate( + 10, + (index) => Blog(name: 'blog $index'), + ); - for (var blog in blogs) { - await Amplify.DataStore.save(blog); - } - var queryBlogs = await Amplify.DataStore.query(Blog.classType); + for (var blog in blogs) { + await Amplify.DataStore.save(blog); + } + var queryBlogs = await Amplify.DataStore.query(Blog.classType); - var observeQueryBlogs = - (await Amplify.DataStore.observeQuery(Blog.classType).first).items; + var observeQueryBlogs = + (await Amplify.DataStore.observeQuery(Blog.classType).first).items; - expect(observeQueryBlogs.length, 10); - expect(observeQueryBlogs, orderedEquals(queryBlogs)); - }); + expect(observeQueryBlogs.length, 10); + expect(observeQueryBlogs, orderedEquals(queryBlogs)); + }, + ); - testWidgets('should emit new snapshots with updated items', - (WidgetTester tester) async { + testWidgets('should emit new snapshots with updated items', ( + WidgetTester tester, + ) async { List blogs = List.generate(3, (index) => Blog(name: 'blog $index')); for (var blog in blogs) { @@ -120,19 +124,13 @@ void main() { final blog2 = Blog(name: 'blog 2'); final blog1Posts = List.generate( 3, - (index) => Post( - title: 'post $index for blog1', - rating: 0, - blog: blog1, - ), + (index) => + Post(title: 'post $index for blog1', rating: 0, blog: blog1), ); final blog2Posts = List.generate( 3, - (index) => Post( - title: 'post $index for blog2', - rating: 0, - blog: blog2, - ), + (index) => + Post(title: 'post $index for blog2', rating: 0, blog: blog2), ); await Amplify.DataStore.save(blog1); await Amplify.DataStore.save(blog2); @@ -152,20 +150,14 @@ void main() { // create new posts to save final blog1NewPosts = List.generate( 3, - (index) => Post( - title: 'New post $index for blog1', - rating: 0, - blog: blog1, - ), + (index) => + Post(title: 'New post $index for blog1', rating: 0, blog: blog1), ); final blog2NewPosts = List.generate( 3, - (index) => Post( - title: 'New post $index for blog2', - rating: 0, - blog: blog2, - ), + (index) => + Post(title: 'New post $index for blog2', rating: 0, blog: blog2), ); // assert subsequent snapshots have posts for blog1 only diff --git a/packages/amplify_datastore/example/integration_test/observe_test.dart b/packages/amplify_datastore/example/integration_test/observe_test.dart index d533e90c0d..8704c0cb6e 100644 --- a/packages/amplify_datastore/example/integration_test/observe_test.dart +++ b/packages/amplify_datastore/example/integration_test/observe_test.dart @@ -18,37 +18,32 @@ void main() { await waitForObserve(); }); - testWidgets('should emit an event for each item saved', - (WidgetTester tester) async { - var itemStream = Amplify.DataStore.observe(Blog.classType) - .map((event) => event.item.name); + testWidgets('should emit an event for each item saved', ( + WidgetTester tester, + ) async { + var itemStream = Amplify.DataStore.observe( + Blog.classType, + ).map((event) => event.item.name); - expectLater( - itemStream, - emitsInOrder(['blog 1', 'blog 2', 'blog 3']), - ); + expectLater(itemStream, emitsInOrder(['blog 1', 'blog 2', 'blog 3'])); await Amplify.DataStore.save(Blog(name: 'blog 1')); await Amplify.DataStore.save(Blog(name: 'blog 2')); await Amplify.DataStore.save(Blog(name: 'blog 3')); }); - testWidgets('should broadcast events for create, update, and delete', - (WidgetTester tester) async { + testWidgets('should broadcast events for create, update, and delete', ( + WidgetTester tester, + ) async { Blog blog = Blog(name: 'blog'); Blog updatedBlog = blog.copyWith(name: 'updated blog'); - var eventTypeStream = Amplify.DataStore.observe(Blog.classType) - .map((event) => event.eventType); + var eventTypeStream = Amplify.DataStore.observe( + Blog.classType, + ).map((event) => event.eventType); expectLater( eventTypeStream, - emitsInOrder( - [ - EventType.create, - EventType.update, - EventType.delete, - ], - ), + emitsInOrder([EventType.create, EventType.update, EventType.delete]), ); await Amplify.DataStore.save(blog); await Amplify.DataStore.save(updatedBlog); @@ -56,46 +51,38 @@ void main() { }); testWidgets( - 'should broadcast events with the model that is created, update, or deleted', - (WidgetTester tester) async { - Blog blog = Blog(name: 'blog'); - Blog updatedBlog = blog.copyWith(name: 'updated blog'); - - var eventItemStream = - Amplify.DataStore.observe(Blog.classType).map((event) => event.item); - expectLater( - eventItemStream, - emitsInOrder( - [ - blog, - updatedBlog, - updatedBlog, - ], - ), - ); - - await Amplify.DataStore.save(blog); - await Amplify.DataStore.save(updatedBlog); - await Amplify.DataStore.delete(updatedBlog); - }); - - testWidgets('observe with query predicates returns all matches', - (WidgetTester tester) async { + 'should broadcast events with the model that is created, update, or deleted', + (WidgetTester tester) async { + Blog blog = Blog(name: 'blog'); + Blog updatedBlog = blog.copyWith(name: 'updated blog'); + + var eventItemStream = Amplify.DataStore.observe( + Blog.classType, + ).map((event) => event.item); + expectLater( + eventItemStream, + emitsInOrder([blog, updatedBlog, updatedBlog]), + ); + + await Amplify.DataStore.save(blog); + await Amplify.DataStore.save(updatedBlog); + await Amplify.DataStore.delete(updatedBlog); + }, + ); + + testWidgets('observe with query predicates returns all matches', ( + WidgetTester tester, + ) async { Blog blog = Blog(name: 'blog'); Blog updatedBlog = blog.copyWith(name: 'updated blog'); - var eventItemStream = Amplify.DataStore.observe(Blog.classType, - where: Blog.NAME.ne("not a blog name")) - .map((event) => event.item); + var eventItemStream = Amplify.DataStore.observe( + Blog.classType, + where: Blog.NAME.ne("not a blog name"), + ).map((event) => event.item); expectLater( eventItemStream, - emitsInOrder( - [ - blog, - updatedBlog, - updatedBlog, - ], - ), + emitsInOrder([blog, updatedBlog, updatedBlog]), ); await Amplify.DataStore.save(blog); @@ -103,21 +90,18 @@ void main() { await Amplify.DataStore.delete(updatedBlog); }); - testWidgets('observe with query predicates filters out non matches', - (WidgetTester tester) async { + testWidgets('observe with query predicates filters out non matches', ( + WidgetTester tester, + ) async { Blog blog = Blog(name: 'matching blog'); Blog updatedBlog = blog.copyWith(name: 'updated blog'); Blog otherBlog = Blog(name: 'matching blog 2'); - var eventItemStream = Amplify.DataStore.observe(Blog.classType, - where: Blog.NAME.contains("matching")) - .map((event) => event.item); - expectLater( - eventItemStream, - emitsInOrder( - [blog, otherBlog], - ), - ); + var eventItemStream = Amplify.DataStore.observe( + Blog.classType, + where: Blog.NAME.contains("matching"), + ).map((event) => event.item); + expectLater(eventItemStream, emitsInOrder([blog, otherBlog])); await Amplify.DataStore.save(blog); await Amplify.DataStore.save(updatedBlog); @@ -126,34 +110,26 @@ void main() { }); testWidgets( - 'observe with attribute exists query predicate filters out non matches', - (WidgetTester tester) async { - HasOneChild hasAttribute = HasOneChild(name: 'name - ${uuid()}'); - HasOneChild hasNoAttribute = HasOneChild(); - - var hasAttributeStream = Amplify.DataStore.observe(HasOneChild.classType, - where: Blog.NAME.attributeExists()) - .map((event) => event.item); - expectLater( - hasAttributeStream, - emitsInOrder( - [hasAttribute], - ), - ); - - var hasNoAttributeStream = Amplify.DataStore.observe( - HasOneChild.classType, - where: Blog.NAME.attributeExists(exists: false)) - .map((event) => event.item); - expectLater( - hasNoAttributeStream, - emitsInOrder( - [hasNoAttribute], - ), - ); - - await Amplify.DataStore.save(hasAttribute); - await Amplify.DataStore.save(hasNoAttribute); - }); + 'observe with attribute exists query predicate filters out non matches', + (WidgetTester tester) async { + HasOneChild hasAttribute = HasOneChild(name: 'name - ${uuid()}'); + HasOneChild hasNoAttribute = HasOneChild(); + + var hasAttributeStream = Amplify.DataStore.observe( + HasOneChild.classType, + where: Blog.NAME.attributeExists(), + ).map((event) => event.item); + expectLater(hasAttributeStream, emitsInOrder([hasAttribute])); + + var hasNoAttributeStream = Amplify.DataStore.observe( + HasOneChild.classType, + where: Blog.NAME.attributeExists(exists: false), + ).map((event) => event.item); + expectLater(hasNoAttributeStream, emitsInOrder([hasNoAttribute])); + + await Amplify.DataStore.save(hasAttribute); + await Amplify.DataStore.save(hasNoAttribute); + }, + ); }); } diff --git a/packages/amplify_datastore/example/integration_test/query_test/pagination_test.dart b/packages/amplify_datastore/example/integration_test/query_test/pagination_test.dart index c6e511bd97..8e84cdd751 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/pagination_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/pagination_test.dart @@ -21,8 +21,9 @@ void main() { await Amplify.DataStore.save(model); } }); - testWidgets('should return the models for the given page and limit', - (WidgetTester tester) async { + testWidgets('should return the models for the given page and limit', ( + WidgetTester tester, + ) async { // page 0 var pageZeroBlogs = await Amplify.DataStore.query( Blog.classType, @@ -54,22 +55,28 @@ void main() { expect(finalPageBlogs, orderedEquals(expectedFinalPageBlogs)); }); - testWidgets('should return no models for an out of range page/limit combo', - (WidgetTester tester) async { - var blogs = await Amplify.DataStore.query(Blog.classType, - pagination: QueryPagination(page: 1000, limit: 10)); - expect(blogs, isEmpty); - }); + testWidgets( + 'should return no models for an out of range page/limit combo', + (WidgetTester tester) async { + var blogs = await Amplify.DataStore.query( + Blog.classType, + pagination: QueryPagination(page: 1000, limit: 10), + ); + expect(blogs, isEmpty); + }, + ); - testWidgets('should default to no pagination if none is provided', - (WidgetTester tester) async { + testWidgets('should default to no pagination if none is provided', ( + WidgetTester tester, + ) async { var blogs = await Amplify.DataStore.query(Blog.classType); expect(blogs.length, models.length); expect(blogs, unorderedEquals(models)); }); - testWidgets('should default to a page size of 100', - (WidgetTester tester) async { + testWidgets('should default to a page size of 100', ( + WidgetTester tester, + ) async { var blogs = await Amplify.DataStore.query( Blog.classType, pagination: QueryPagination(page: 0), @@ -80,8 +87,9 @@ void main() { expect(blogs, orderedEquals(expectedBlogs)); }); - testWidgets('should work with a descending sort order', - (WidgetTester tester) async { + testWidgets('should work with a descending sort order', ( + WidgetTester tester, + ) async { var blogs = await Amplify.DataStore.query( Blog.classType, pagination: QueryPagination(page: 0, limit: 10), @@ -92,19 +100,21 @@ void main() { expect(blogs, orderedEquals(expectedBlogs)); }); - testWidgets('should work with a query predicate', - (WidgetTester tester) async { + testWidgets('should work with a query predicate', ( + WidgetTester tester, + ) async { var blogs = await Amplify.DataStore.query( Blog.classType, pagination: QueryPagination(page: 0, limit: 10), sortBy: [Blog.NAME.ascending()], where: Blog.NAME.beginsWith('blog 1'), ); - var expectedBlogs = sortedModels - .where((blog) => blog.name.startsWith('blog 1')) - .toList() - .getRange(0, 10) - .toList(); + var expectedBlogs = + sortedModels + .where((blog) => blog.name.startsWith('blog 1')) + .toList() + .getRange(0, 10) + .toList(); expect(blogs.length, 10); expect(blogs, orderedEquals(expectedBlogs)); }); diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_query_predicate_test.dart index 3c3225248d..44c3de0b18 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_query_predicate_test.dart @@ -25,10 +25,13 @@ void main() { ]; // models used for all tests - var models = dates - .map((date) => - ModelWithAppsyncScalarTypes(awsDateValue: TemporalDate(date))) - .toList(); + var models = + dates + .map( + (date) => + ModelWithAppsyncScalarTypes(awsDateValue: TemporalDate(date)), + ) + .toList(); // distinct list of values in the test models var values = models.map((e) => e.awsDateValue!).toSet().toList(); @@ -67,9 +70,10 @@ void main() { testWidgets('lt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateValue!.compareTo(value) < 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateValue!.compareTo(value) < 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSDATEVALUE.lt(value), expectedModels: expectedModels, @@ -80,9 +84,10 @@ void main() { testWidgets('le()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateValue!.compareTo(value) <= 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateValue!.compareTo(value) <= 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSDATEVALUE.le(value), expectedModels: expectedModels, @@ -93,9 +98,10 @@ void main() { testWidgets('gt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateValue!.compareTo(value) > 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateValue!.compareTo(value) > 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSDATEVALUE.gt(value), expectedModels: expectedModels, @@ -106,9 +112,10 @@ void main() { testWidgets('ge()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateValue!.compareTo(value) >= 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateValue!.compareTo(value) >= 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSDATEVALUE.ge(value), expectedModels: expectedModels, @@ -120,11 +127,16 @@ void main() { // test with partial match var partialMatchStart = models[1].awsDateValue!; var partialMatchEnd = models[3].awsDateValue!; - var rangeMatchModels = models - .where( - (model) => model.awsDateValue!.compareTo(partialMatchStart) >= 0) - .where((model) => model.awsDateValue!.compareTo(partialMatchEnd) <= 0) - .toList(); + var rangeMatchModels = + models + .where( + (model) => + model.awsDateValue!.compareTo(partialMatchStart) >= 0, + ) + .where( + (model) => model.awsDateValue!.compareTo(partialMatchEnd) <= 0, + ) + .toList(); // verify that the test is testing a partial match expect(rangeMatchModels.length, greaterThanOrEqualTo(1)); diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_time_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_time_query_predicate_test.dart index 9eb61a75bd..2c01f948bb 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_time_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_date_time_query_predicate_test.dart @@ -30,10 +30,14 @@ void main() { ]; // models used for all tests - var models = dates - .map((date) => ModelWithAppsyncScalarTypes( - awsDateTimeValue: TemporalDateTime(date))) - .toList(); + var models = + dates + .map( + (date) => ModelWithAppsyncScalarTypes( + awsDateTimeValue: TemporalDateTime(date), + ), + ) + .toList(); // distinct list of values in the test models var values = models.map((e) => e.awsDateTimeValue!).toSet().toList(); @@ -52,8 +56,9 @@ void main() { var expectedModels = models.where((model) => model.awsDateTimeValue == value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.eq(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.eq( + value, + ), expectedModels: expectedModels, ); } @@ -65,8 +70,9 @@ void main() { var expectedModels = models.where((model) => model.awsDateTimeValue != value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.ne(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.ne( + value, + ), expectedModels: expectedModels, ); } @@ -75,12 +81,14 @@ void main() { testWidgets('lt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateTimeValue!.compareTo(value) < 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateTimeValue!.compareTo(value) < 0) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.lt(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.lt( + value, + ), expectedModels: expectedModels, ); } @@ -89,12 +97,14 @@ void main() { testWidgets('le()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateTimeValue!.compareTo(value) <= 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateTimeValue!.compareTo(value) <= 0) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.le(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.le( + value, + ), expectedModels: expectedModels, ); } @@ -103,12 +113,14 @@ void main() { testWidgets('gt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateTimeValue!.compareTo(value) > 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateTimeValue!.compareTo(value) > 0) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.gt(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.gt( + value, + ), expectedModels: expectedModels, ); } @@ -117,12 +129,14 @@ void main() { testWidgets('ge()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsDateTimeValue!.compareTo(value) >= 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsDateTimeValue!.compareTo(value) >= 0) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.ge(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE.ge( + value, + ), expectedModels: expectedModels, ); } @@ -132,12 +146,17 @@ void main() { // test with partial match var partialMatchStart = models[1].awsDateTimeValue!; var partialMatchEnd = models[3].awsDateTimeValue!; - var rangeMatchModels = models - .where((model) => - model.awsDateTimeValue!.compareTo(partialMatchStart) >= 0) - .where((model) => - model.awsDateTimeValue!.compareTo(partialMatchEnd) <= 0) - .toList(); + var rangeMatchModels = + models + .where( + (model) => + model.awsDateTimeValue!.compareTo(partialMatchStart) >= 0, + ) + .where( + (model) => + model.awsDateTimeValue!.compareTo(partialMatchEnd) <= 0, + ) + .toList(); // verify that the test is testing a partial match expect(rangeMatchModels.length, greaterThanOrEqualTo(1)); diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_time_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_time_query_predicate_test.dart index a2b113c4cb..65f14a0e65 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_time_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_time_query_predicate_test.dart @@ -29,10 +29,13 @@ void main() { ]; // models used for all tests - var models = dates - .map((date) => - ModelWithAppsyncScalarTypes(awsTimeValue: TemporalTime(date))) - .toList(); + var models = + dates + .map( + (date) => + ModelWithAppsyncScalarTypes(awsTimeValue: TemporalTime(date)), + ) + .toList(); // distinct list of values in the test models var values = models.map((e) => e.awsTimeValue!).toSet().toList(); @@ -71,9 +74,10 @@ void main() { testWidgets('lt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimeValue!.compareTo(value) < 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsTimeValue!.compareTo(value) < 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMEVALUE.lt(value), expectedModels: expectedModels, @@ -84,9 +88,10 @@ void main() { testWidgets('le()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimeValue!.compareTo(value) <= 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsTimeValue!.compareTo(value) <= 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMEVALUE.le(value), expectedModels: expectedModels, @@ -97,9 +102,10 @@ void main() { testWidgets('gt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimeValue!.compareTo(value) > 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsTimeValue!.compareTo(value) > 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMEVALUE.gt(value), expectedModels: expectedModels, @@ -110,9 +116,10 @@ void main() { testWidgets('ge()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimeValue!.compareTo(value) >= 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsTimeValue!.compareTo(value) >= 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMEVALUE.ge(value), expectedModels: expectedModels, @@ -124,16 +131,23 @@ void main() { // test with partial match var partialMatchStart = models[1].awsTimeValue!; var partialMatchEnd = models[2].awsTimeValue!; - var rangeMatchModels = models - .where( - (model) => model.awsTimeValue!.compareTo(partialMatchStart) >= 0) - .where((model) => model.awsTimeValue!.compareTo(partialMatchEnd) <= 0) - .toList(); + var rangeMatchModels = + models + .where( + (model) => + model.awsTimeValue!.compareTo(partialMatchStart) >= 0, + ) + .where( + (model) => model.awsTimeValue!.compareTo(partialMatchEnd) <= 0, + ) + .toList(); // verify that the test is testing a partial match expect(rangeMatchModels.length, greaterThanOrEqualTo(1)); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMEVALUE - .between(partialMatchStart, partialMatchEnd), + queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMEVALUE.between( + partialMatchStart, + partialMatchEnd, + ), expectedModels: rangeMatchModels, ); }); diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_timestamp_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_timestamp_query_predicate_test.dart index 2ea7310986..79a2668584 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_timestamp_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/aws_timestamp_query_predicate_test.dart @@ -27,10 +27,14 @@ void main() { ]; // models used for all tests - var models = dates - .map((date) => ModelWithAppsyncScalarTypes( - awsTimestampValue: TemporalTimestamp(date))) - .toList(); + var models = + dates + .map( + (date) => ModelWithAppsyncScalarTypes( + awsTimestampValue: TemporalTimestamp(date), + ), + ) + .toList(); // distinct list of values in the test models var values = models.map((e) => e.awsTimestampValue!).toSet().toList(); @@ -48,8 +52,9 @@ void main() { var expectedModels = models.where((model) => model.awsTimestampValue == value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.eq(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.eq( + value, + ), expectedModels: expectedModels, ); } @@ -61,8 +66,9 @@ void main() { var expectedModels = models.where((model) => model.awsTimestampValue != value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.ne(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.ne( + value, + ), expectedModels: expectedModels, ); } @@ -71,12 +77,14 @@ void main() { testWidgets('lt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimestampValue!.compareTo(value) < 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsTimestampValue!.compareTo(value) < 0) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.lt(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.lt( + value, + ), expectedModels: expectedModels, ); } @@ -85,12 +93,16 @@ void main() { testWidgets('le()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimestampValue!.compareTo(value) <= 0) - .toList(); + var expectedModels = + models + .where( + (model) => model.awsTimestampValue!.compareTo(value) <= 0, + ) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.le(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.le( + value, + ), expectedModels: expectedModels, ); } @@ -99,12 +111,14 @@ void main() { testWidgets('gt()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimestampValue!.compareTo(value) > 0) - .toList(); + var expectedModels = + models + .where((model) => model.awsTimestampValue!.compareTo(value) > 0) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.gt(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.gt( + value, + ), expectedModels: expectedModels, ); } @@ -113,12 +127,16 @@ void main() { testWidgets('ge()', (WidgetTester tester) async { // test against all values for (var value in values) { - var expectedModels = models - .where((model) => model.awsTimestampValue!.compareTo(value) >= 0) - .toList(); + var expectedModels = + models + .where( + (model) => model.awsTimestampValue!.compareTo(value) >= 0, + ) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.ge(value), + queryPredicate: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE.ge( + value, + ), expectedModels: expectedModels, ); } @@ -128,12 +146,17 @@ void main() { // test with partial match var partialMatchStart = models[1].awsTimestampValue!; var partialMatchEnd = models[2].awsTimestampValue!; - var rangeMatchModels = models - .where((model) => - model.awsTimestampValue!.compareTo(partialMatchStart) >= 0) - .where((model) => - model.awsTimestampValue!.compareTo(partialMatchEnd) <= 0) - .toList(); + var rangeMatchModels = + models + .where( + (model) => + model.awsTimestampValue!.compareTo(partialMatchStart) >= 0, + ) + .where( + (model) => + model.awsTimestampValue!.compareTo(partialMatchEnd) <= 0, + ) + .toList(); // verify that the test is testing a partial match expect(rangeMatchModels.length, greaterThanOrEqualTo(1)); await testQueryPredicate( diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/compound_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/compound_query_predicate_test.dart index 0c4227550f..61801b43d6 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/compound_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/compound_query_predicate_test.dart @@ -13,354 +13,355 @@ void main() { // there are an infinite number of compound queries that can be performed // this set of tests aims to test the most common scenarios - group( - 'compound queries', - () { - group('string type and string type', () { - var valueOne = ''; - var valueTwo = 'abc'; - var valueThree = 'xyz'; - var models = [ - ModelWithAppsyncScalarTypes( - stringValue: valueOne, - altStringValue: valueOne, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueOne, - altStringValue: valueTwo, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueOne, - altStringValue: valueThree, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueTwo, - altStringValue: valueOne, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueTwo, - altStringValue: valueTwo, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueTwo, - altStringValue: valueThree, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueThree, - altStringValue: valueOne, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueThree, - altStringValue: valueTwo, - ), - ModelWithAppsyncScalarTypes( - stringValue: valueThree, - altStringValue: valueThree, - ), - ]; + group('compound queries', () { + group('string type and string type', () { + var valueOne = ''; + var valueTwo = 'abc'; + var valueThree = 'xyz'; + var models = [ + ModelWithAppsyncScalarTypes( + stringValue: valueOne, + altStringValue: valueOne, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueOne, + altStringValue: valueTwo, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueOne, + altStringValue: valueThree, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueTwo, + altStringValue: valueOne, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueTwo, + altStringValue: valueTwo, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueTwo, + altStringValue: valueThree, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueThree, + altStringValue: valueOne, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueThree, + altStringValue: valueTwo, + ), + ModelWithAppsyncScalarTypes( + stringValue: valueThree, + altStringValue: valueThree, + ), + ]; - setUpAll(() async { - await configureDataStore(); - await clearDataStore(); - for (var model in models) { - await Amplify.DataStore.save(model); - } - }); - testWidgets('eq() & eq()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.stringValue == valueTwo) - .where((model) => model.altStringValue == valueThree) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .eq(valueTwo) - .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.eq(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + setUpAll(() async { + await configureDataStore(); + await clearDataStore(); + for (var model in models) { + await Amplify.DataStore.save(model); + } + }); + testWidgets('eq() & eq()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.stringValue == valueTwo) + .where((model) => model.altStringValue == valueThree) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .eq(valueTwo) + .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.eq(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('ne() & ne()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.stringValue != valueTwo) - .where((model) => model.altStringValue != valueThree) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .ne(valueTwo) - .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.ne(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('ne() & ne()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.stringValue != valueTwo) + .where((model) => model.altStringValue != valueThree) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .ne(valueTwo) + .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.ne(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('ne() & ne() on the same field', - (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.stringValue != valueTwo) - .where((model) => model.stringValue != valueThree) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .ne(valueTwo) - .and(ModelWithAppsyncScalarTypes.STRINGVALUE.ne(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('ne() & ne() on the same field', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.stringValue != valueTwo) + .where((model) => model.stringValue != valueThree) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .ne(valueTwo) + .and(ModelWithAppsyncScalarTypes.STRINGVALUE.ne(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('lt() & lt()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.stringValue!.compareTo(valueTwo) < 0) - .where((model) => model.altStringValue!.compareTo(valueThree) < 0) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .lt(valueTwo) - .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.lt(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('lt() & lt()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.stringValue!.compareTo(valueTwo) < 0) + .where( + (model) => model.altStringValue!.compareTo(valueThree) < 0, + ) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .lt(valueTwo) + .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.lt(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('gt() & gt()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.stringValue!.compareTo(valueOne) > 0) - .where((model) => model.altStringValue!.compareTo(valueTwo) > 0) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .gt(valueOne) - .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.gt(valueTwo)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('gt() & gt()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.stringValue!.compareTo(valueOne) > 0) + .where((model) => model.altStringValue!.compareTo(valueTwo) > 0) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .gt(valueOne) + .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.gt(valueTwo)), + ); + expect(actualModels, unorderedEquals(expectedModels)); }); + }); - group('int type and int type', () { - var valueOne = -1; - var valueTwo = 0; - var valueThree = 1; - var models = [ - ModelWithAppsyncScalarTypes( - intValue: valueOne, - altIntValue: valueOne, - ), - ModelWithAppsyncScalarTypes( - intValue: valueOne, - altIntValue: valueTwo, - ), - ModelWithAppsyncScalarTypes( - intValue: valueOne, - altIntValue: valueThree, - ), - ModelWithAppsyncScalarTypes( - intValue: valueTwo, - altIntValue: valueOne, - ), - ModelWithAppsyncScalarTypes( - intValue: valueTwo, - altIntValue: valueTwo, - ), - ModelWithAppsyncScalarTypes( - intValue: valueTwo, - altIntValue: valueThree, - ), - ModelWithAppsyncScalarTypes( - intValue: valueThree, - altIntValue: valueOne, - ), - ModelWithAppsyncScalarTypes( - intValue: valueThree, - altIntValue: valueTwo, - ), - ModelWithAppsyncScalarTypes( - intValue: valueThree, - altIntValue: valueThree, - ), - ]; + group('int type and int type', () { + var valueOne = -1; + var valueTwo = 0; + var valueThree = 1; + var models = [ + ModelWithAppsyncScalarTypes(intValue: valueOne, altIntValue: valueOne), + ModelWithAppsyncScalarTypes(intValue: valueOne, altIntValue: valueTwo), + ModelWithAppsyncScalarTypes( + intValue: valueOne, + altIntValue: valueThree, + ), + ModelWithAppsyncScalarTypes(intValue: valueTwo, altIntValue: valueOne), + ModelWithAppsyncScalarTypes(intValue: valueTwo, altIntValue: valueTwo), + ModelWithAppsyncScalarTypes( + intValue: valueTwo, + altIntValue: valueThree, + ), + ModelWithAppsyncScalarTypes( + intValue: valueThree, + altIntValue: valueOne, + ), + ModelWithAppsyncScalarTypes( + intValue: valueThree, + altIntValue: valueTwo, + ), + ModelWithAppsyncScalarTypes( + intValue: valueThree, + altIntValue: valueThree, + ), + ]; - setUpAll(() async { - await configureDataStore(); - await clearDataStore(); - for (var model in models) { - await Amplify.DataStore.save(model); - } - }); - testWidgets('eq() & eq()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.intValue == valueTwo) - .where((model) => model.altIntValue == valueThree) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.INTVALUE - .eq(valueTwo) - .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.eq(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + setUpAll(() async { + await configureDataStore(); + await clearDataStore(); + for (var model in models) { + await Amplify.DataStore.save(model); + } + }); + testWidgets('eq() & eq()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.intValue == valueTwo) + .where((model) => model.altIntValue == valueThree) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.INTVALUE + .eq(valueTwo) + .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.eq(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('ne() & ne()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.intValue != valueTwo) - .where((model) => model.altIntValue != valueThree) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.INTVALUE - .ne(valueTwo) - .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.ne(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('ne() & ne()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.intValue != valueTwo) + .where((model) => model.altIntValue != valueThree) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.INTVALUE + .ne(valueTwo) + .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.ne(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('ne() & ne() on the same field', - (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.intValue != valueTwo) - .where((model) => model.intValue != valueThree) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.INTVALUE - .ne(valueTwo) - .and(ModelWithAppsyncScalarTypes.INTVALUE.ne(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('ne() & ne() on the same field', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.intValue != valueTwo) + .where((model) => model.intValue != valueThree) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.INTVALUE + .ne(valueTwo) + .and(ModelWithAppsyncScalarTypes.INTVALUE.ne(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('lt() & lt()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.intValue!.compareTo(valueTwo) < 0) - .where((model) => model.altIntValue!.compareTo(valueThree) < 0) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.INTVALUE - .lt(valueTwo) - .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.lt(valueThree)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('lt() & lt()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.intValue!.compareTo(valueTwo) < 0) + .where((model) => model.altIntValue!.compareTo(valueThree) < 0) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.INTVALUE + .lt(valueTwo) + .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.lt(valueThree)), + ); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('gt() & gt()', (WidgetTester tester) async { - var expectedModels = models - .where((model) => model.intValue!.compareTo(valueOne) > 0) - .where((model) => model.altIntValue!.compareTo(valueTwo) > 0) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.INTVALUE - .gt(valueOne) - .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.gt(valueTwo)), - ); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('gt() & gt()', (WidgetTester tester) async { + var expectedModels = + models + .where((model) => model.intValue!.compareTo(valueOne) > 0) + .where((model) => model.altIntValue!.compareTo(valueTwo) > 0) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.INTVALUE + .gt(valueOne) + .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.gt(valueTwo)), + ); + expect(actualModels, unorderedEquals(expectedModels)); }); + }); - group('multiple types', () { - var stringValueOne = 'abc'; - var stringValueTwo = 'xyz'; - var intValueOne = 1; - var intValueTwo = 2; + group('multiple types', () { + var stringValueOne = 'abc'; + var stringValueTwo = 'xyz'; + var intValueOne = 1; + var intValueTwo = 2; - // generate a model with every combination - var models = List.generate( - 16, - (index) => ModelWithAppsyncScalarTypes( - intValue: index % 2 < 1 ? intValueOne : intValueTwo, - altIntValue: index % 4 < 2 ? intValueOne : intValueTwo, - stringValue: index % 8 < 4 ? stringValueOne : stringValueTwo, - altStringValue: index % 16 < 8 ? stringValueOne : stringValueTwo, - ), - ); + // generate a model with every combination + var models = List.generate( + 16, + (index) => ModelWithAppsyncScalarTypes( + intValue: index % 2 < 1 ? intValueOne : intValueTwo, + altIntValue: index % 4 < 2 ? intValueOne : intValueTwo, + stringValue: index % 8 < 4 ? stringValueOne : stringValueTwo, + altStringValue: index % 16 < 8 ? stringValueOne : stringValueTwo, + ), + ); - setUpAll(() async { - await configureDataStore(); - await clearDataStore(); - for (var model in models) { - await Amplify.DataStore.save(model); - } - }); + setUpAll(() async { + await configureDataStore(); + await clearDataStore(); + for (var model in models) { + await Amplify.DataStore.save(model); + } + }); - testWidgets('eq() (and)', (WidgetTester tester) async { - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .eq(stringValueOne) - .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE - .eq(stringValueTwo)) - .and(ModelWithAppsyncScalarTypes.INTVALUE.eq(intValueOne)) - .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.eq(intValueTwo)), - ); - expect(actualModels.length, 1); - expect(actualModels.first.stringValue, stringValueOne); - expect(actualModels.first.altStringValue, stringValueTwo); - expect(actualModels.first.intValue, intValueOne); - expect(actualModels.first.altIntValue, intValueTwo); - }); + testWidgets('eq() (and)', (WidgetTester tester) async { + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .eq(stringValueOne) + .and( + ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.eq(stringValueTwo), + ) + .and(ModelWithAppsyncScalarTypes.INTVALUE.eq(intValueOne)) + .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.eq(intValueTwo)), + ); + expect(actualModels.length, 1); + expect(actualModels.first.stringValue, stringValueOne); + expect(actualModels.first.altStringValue, stringValueTwo); + expect(actualModels.first.intValue, intValueOne); + expect(actualModels.first.altIntValue, intValueTwo); + }); - testWidgets('eq() (or)', (WidgetTester tester) async { - var expectedModels = models - .where((model) => - model.stringValue == stringValueOne || - model.altStringValue == stringValueTwo || - model.intValue == intValueOne || - model.altIntValue == intValueTwo) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .eq(stringValueOne) - .or(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE - .eq(stringValueTwo)) - .or(ModelWithAppsyncScalarTypes.INTVALUE.eq(intValueOne)) - .or(ModelWithAppsyncScalarTypes.ALTINTVALUE.eq(intValueTwo)), - ); - expect(actualModels.length, 15); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('eq() (or)', (WidgetTester tester) async { + var expectedModels = + models + .where( + (model) => + model.stringValue == stringValueOne || + model.altStringValue == stringValueTwo || + model.intValue == intValueOne || + model.altIntValue == intValueTwo, + ) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .eq(stringValueOne) + .or(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.eq(stringValueTwo)) + .or(ModelWithAppsyncScalarTypes.INTVALUE.eq(intValueOne)) + .or(ModelWithAppsyncScalarTypes.ALTINTVALUE.eq(intValueTwo)), + ); + expect(actualModels.length, 15); + expect(actualModels, unorderedEquals(expectedModels)); + }); - testWidgets('ne() (and)', (WidgetTester tester) async { - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .ne(stringValueOne) - .and(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE - .ne(stringValueTwo)) - .and(ModelWithAppsyncScalarTypes.INTVALUE.ne(intValueOne)) - .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.ne(intValueTwo)), - ); - expect(actualModels.length, 1); - expect(actualModels.first.stringValue, stringValueTwo); - expect(actualModels.first.altStringValue, stringValueOne); - expect(actualModels.first.intValue, intValueTwo); - expect(actualModels.first.altIntValue, intValueOne); - }); + testWidgets('ne() (and)', (WidgetTester tester) async { + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .ne(stringValueOne) + .and( + ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.ne(stringValueTwo), + ) + .and(ModelWithAppsyncScalarTypes.INTVALUE.ne(intValueOne)) + .and(ModelWithAppsyncScalarTypes.ALTINTVALUE.ne(intValueTwo)), + ); + expect(actualModels.length, 1); + expect(actualModels.first.stringValue, stringValueTwo); + expect(actualModels.first.altStringValue, stringValueOne); + expect(actualModels.first.intValue, intValueTwo); + expect(actualModels.first.altIntValue, intValueOne); + }); - testWidgets('ne() (or)', (WidgetTester tester) async { - var expectedModels = models - .where((model) => - model.stringValue != stringValueOne || - model.altStringValue != stringValueTwo || - model.intValue != intValueOne || - model.altIntValue != intValueTwo) - .toList(); - var actualModels = await Amplify.DataStore.query( - ModelWithAppsyncScalarTypes.classType, - where: ModelWithAppsyncScalarTypes.STRINGVALUE - .ne(stringValueOne) - .or(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE - .ne(stringValueTwo)) - .or(ModelWithAppsyncScalarTypes.INTVALUE.ne(intValueOne)) - .or(ModelWithAppsyncScalarTypes.ALTINTVALUE.ne(intValueTwo)), - ); - expect(actualModels.length, 15); - expect(actualModels, unorderedEquals(expectedModels)); - }); + testWidgets('ne() (or)', (WidgetTester tester) async { + var expectedModels = + models + .where( + (model) => + model.stringValue != stringValueOne || + model.altStringValue != stringValueTwo || + model.intValue != intValueOne || + model.altIntValue != intValueTwo, + ) + .toList(); + var actualModels = await Amplify.DataStore.query( + ModelWithAppsyncScalarTypes.classType, + where: ModelWithAppsyncScalarTypes.STRINGVALUE + .ne(stringValueOne) + .or(ModelWithAppsyncScalarTypes.ALTSTRINGVALUE.ne(stringValueTwo)) + .or(ModelWithAppsyncScalarTypes.INTVALUE.ne(intValueOne)) + .or(ModelWithAppsyncScalarTypes.ALTINTVALUE.ne(intValueTwo)), + ); + expect(actualModels.length, 15); + expect(actualModels, unorderedEquals(expectedModels)); }); - }, - ); + }); + }); } diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/enum_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/enum_query_predicate_test.dart index 0dd7a51ac2..fa8338cd93 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/enum_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/enum_query_predicate_test.dart @@ -12,117 +12,118 @@ import '../../utils/setup_utils.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - group( - 'type enum', - () { - setUp(() async { - await configureDataStore(); - await clearDataStore(); - }); - - testWidgets('eq()', (WidgetTester tester) async { - var models = [ - ModelWithEnum(enumField: EnumField.yes), - ModelWithEnum(enumField: EnumField.yes), - ModelWithEnum(enumField: EnumField.yes), - ]; - - for (var model in models) { - await Amplify.DataStore.save(model); - } - - // test with all matches - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.yes), - expectedModels: models, - ); - - // test with no matches - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.no), - expectedModels: [], - ); - }); - - testWidgets('eq() (with partial matches)', (WidgetTester tester) async { - var models = [ - ModelWithEnum(enumField: EnumField.no), - ModelWithEnum(enumField: EnumField.yes), - ModelWithEnum(enumField: EnumField.no), - ]; - - for (var model in models) { - await Amplify.DataStore.save(model); - } - - // test with partial matches for EnumField.yes - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.yes), - expectedModels: models - .where((element) => element.enumField == EnumField.yes) - .toList(), - ); - - // test with partial matches for EnumField.no - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.no), - expectedModels: models - .where((element) => element.enumField == EnumField.no) - .toList(), - ); - }); - - testWidgets('ne()', (WidgetTester tester) async { - var models = [ - ModelWithEnum(enumField: EnumField.yes), - ModelWithEnum(enumField: EnumField.yes), - ModelWithEnum(enumField: EnumField.yes), - ]; - - for (var model in models) { - await Amplify.DataStore.save(model); - } - - // test with all matches - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.no), - expectedModels: models, - ); - - // test with no matches - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.yes), - expectedModels: [], - ); - }); - - testWidgets('ne() (with partial matches)', (WidgetTester tester) async { - var models = [ - ModelWithEnum(enumField: EnumField.no), - ModelWithEnum(enumField: EnumField.yes), - ModelWithEnum(enumField: EnumField.no), - ]; - - for (var model in models) { - await Amplify.DataStore.save(model); - } - - // test with partial matches for EnumField.yes - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.yes), - expectedModels: models - .where((element) => element.enumField == EnumField.no) - .toList(), - ); - - // test with partial matches for EnumField.no - await testQueryPredicate( - queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.no), - expectedModels: models - .where((element) => element.enumField == EnumField.yes) - .toList(), - ); - }); - }, - ); + group('type enum', () { + setUp(() async { + await configureDataStore(); + await clearDataStore(); + }); + + testWidgets('eq()', (WidgetTester tester) async { + var models = [ + ModelWithEnum(enumField: EnumField.yes), + ModelWithEnum(enumField: EnumField.yes), + ModelWithEnum(enumField: EnumField.yes), + ]; + + for (var model in models) { + await Amplify.DataStore.save(model); + } + + // test with all matches + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.yes), + expectedModels: models, + ); + + // test with no matches + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.no), + expectedModels: [], + ); + }); + + testWidgets('eq() (with partial matches)', (WidgetTester tester) async { + var models = [ + ModelWithEnum(enumField: EnumField.no), + ModelWithEnum(enumField: EnumField.yes), + ModelWithEnum(enumField: EnumField.no), + ]; + + for (var model in models) { + await Amplify.DataStore.save(model); + } + + // test with partial matches for EnumField.yes + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.yes), + expectedModels: + models + .where((element) => element.enumField == EnumField.yes) + .toList(), + ); + + // test with partial matches for EnumField.no + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.eq(EnumField.no), + expectedModels: + models + .where((element) => element.enumField == EnumField.no) + .toList(), + ); + }); + + testWidgets('ne()', (WidgetTester tester) async { + var models = [ + ModelWithEnum(enumField: EnumField.yes), + ModelWithEnum(enumField: EnumField.yes), + ModelWithEnum(enumField: EnumField.yes), + ]; + + for (var model in models) { + await Amplify.DataStore.save(model); + } + + // test with all matches + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.no), + expectedModels: models, + ); + + // test with no matches + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.yes), + expectedModels: [], + ); + }); + + testWidgets('ne() (with partial matches)', (WidgetTester tester) async { + var models = [ + ModelWithEnum(enumField: EnumField.no), + ModelWithEnum(enumField: EnumField.yes), + ModelWithEnum(enumField: EnumField.no), + ]; + + for (var model in models) { + await Amplify.DataStore.save(model); + } + + // test with partial matches for EnumField.yes + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.yes), + expectedModels: + models + .where((element) => element.enumField == EnumField.no) + .toList(), + ); + + // test with partial matches for EnumField.no + await testQueryPredicate( + queryPredicate: ModelWithEnum.ENUMFIELD.ne(EnumField.no), + expectedModels: + models + .where((element) => element.enumField == EnumField.yes) + .toList(), + ); + }); + }); } diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/float_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/float_query_predicate_test.dart index 152355275a..be6dca57e6 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/float_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/float_query_predicate_test.dart @@ -92,128 +92,126 @@ void main() { ); }); - testWidgets( - 'lt()', - (WidgetTester tester) async { - // test against all (non-null) values - for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.floatValue! < value) - .toList(); - await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.lt(value), - expectedModels: expectedModels, - ); - } - - // test with no matches + testWidgets('lt()', (WidgetTester tester) async { + // test against all (non-null) values + for (var value in nonNullValues) { + var expectedModels = + nonNullModels.where((model) => model.floatValue! < value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.FLOATVALUE.lt(minDoubleValue), - expectedModels: [], + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.lt(value), + expectedModels: expectedModels, ); - }, - ); - - testWidgets( - 'le()', - (WidgetTester tester) async { - // test against all (non-null) values - for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.floatValue! <= value) - .toList(); - await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.le(value), - expectedModels: expectedModels, - ); - } + } - // test with match all models + // test with no matches + await testQueryPredicate( + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.lt( + minDoubleValue, + ), + expectedModels: [], + ); + }); + + testWidgets('le()', (WidgetTester tester) async { + // test against all (non-null) values + for (var value in nonNullValues) { + var expectedModels = + nonNullModels.where((model) => model.floatValue! <= value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.FLOATVALUE.le(maxDoubleValue), - expectedModels: nonNullModels, + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.le(value), + expectedModels: expectedModels, ); - }, - ); - - testWidgets( - 'gt()', - (WidgetTester tester) async { - // test against all (non-null) values - for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.floatValue! > value) - .toList(); - await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.gt(value), - expectedModels: expectedModels, - ); - } + } - // test with match all models + // test with match all models + await testQueryPredicate( + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.le( + maxDoubleValue, + ), + expectedModels: nonNullModels, + ); + }); + + testWidgets('gt()', (WidgetTester tester) async { + // test against all (non-null) values + for (var value in nonNullValues) { + var expectedModels = + nonNullModels.where((model) => model.floatValue! > value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.FLOATVALUE.gt(maxDoubleValue), - expectedModels: [], + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.gt(value), + expectedModels: expectedModels, ); - }, - ); - - testWidgets( - 'ge()', - (WidgetTester tester) async { - // test against all (non-null) values - for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.floatValue! >= value) - .toList(); - await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.ge(value), - expectedModels: expectedModels, - ); - } + } + + // test with match all models + await testQueryPredicate( + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.gt( + maxDoubleValue, + ), + expectedModels: [], + ); + }); - // test with match all models + testWidgets('ge()', (WidgetTester tester) async { + // test against all (non-null) values + for (var value in nonNullValues) { + var expectedModels = + nonNullModels.where((model) => model.floatValue! >= value).toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.FLOATVALUE.ge(minDoubleValue), - expectedModels: nonNullModels, + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.ge(value), + expectedModels: expectedModels, ); - }, - ); + } + + // test with match all models + await testQueryPredicate( + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.ge( + minDoubleValue, + ), + expectedModels: nonNullModels, + ); + }); testWidgets('beginsWith()', (WidgetTester tester) async { // test with exact match var exactMatchPattern = '1000.0'; - var exactMatchModels = nonNullModels - .where((model) => - model.floatValue!.toString().startsWith(exactMatchPattern)) - .toList(); + var exactMatchModels = + nonNullModels + .where( + (model) => + model.floatValue!.toString().startsWith(exactMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE - .beginsWith(exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.beginsWith( + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchPattern = '10'; - var partialMatchModels = nonNullModels - .where((model) => - model.floatValue!.toString().startsWith(partialMatchPattern)) - .toList(); + var partialMatchModels = + nonNullModels + .where( + (model) => model.floatValue!.toString().startsWith( + partialMatchPattern, + ), + ) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE - .beginsWith(partialMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.beginsWith( + partialMatchPattern, + ), expectedModels: partialMatchModels, ); // test with no match var noMatchPattern = '123.123'; await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.FLOATVALUE.beginsWith(noMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.beginsWith( + noMatchPattern, + ), expectedModels: [], ); }); @@ -221,73 +219,87 @@ void main() { testWidgets('contains()', (WidgetTester tester) async { // test with exact match var exactMatchPattern = '1000.0'; - var exactMatchModels = nonNullModels - .where((model) => - model.floatValue!.toString().contains(exactMatchPattern)) - .toList(); + var exactMatchModels = + nonNullModels + .where( + (model) => + model.floatValue!.toString().contains(exactMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.FLOATVALUE.contains(exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.contains( + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchPattern = '10'; - var partialMatchModels = nonNullModels - .where((model) => - model.floatValue!.toString().contains(partialMatchPattern)) - .toList(); + var partialMatchModels = + nonNullModels + .where( + (model) => + model.floatValue!.toString().contains(partialMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE - .contains(partialMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.contains( + partialMatchPattern, + ), expectedModels: partialMatchModels, ); // test with no match var noMatchPattern = '123.123'; await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.FLOATVALUE.contains(noMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.contains( + noMatchPattern, + ), expectedModels: [], ); }); - testWidgets( - 'bewtween()', - (WidgetTester tester) async { - // test with exact match - var exactMatchPattern = 1000.0; - var exactMatchModels = models - .where((model) => model.floatValue == exactMatchPattern) - .toList(); - await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE - .between(exactMatchPattern, exactMatchPattern), - expectedModels: exactMatchModels, - ); + testWidgets('bewtween()', (WidgetTester tester) async { + // test with exact match + var exactMatchPattern = 1000.0; + var exactMatchModels = + models + .where((model) => model.floatValue == exactMatchPattern) + .toList(); + await testQueryPredicate( + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.between( + exactMatchPattern, + exactMatchPattern, + ), + expectedModels: exactMatchModels, + ); - // test with partial match - var partialMatchStart = -1.0; - var partialMatchEnd = 1.0; - var rangeMatchModels = nonNullModels - .where((model) => model.floatValue! >= partialMatchStart) - .where((model) => model.floatValue! <= partialMatchEnd) - .toList(); - await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE - .between(partialMatchStart, partialMatchEnd), - expectedModels: rangeMatchModels, - ); + // test with partial match + var partialMatchStart = -1.0; + var partialMatchEnd = 1.0; + var rangeMatchModels = + nonNullModels + .where((model) => model.floatValue! >= partialMatchStart) + .where((model) => model.floatValue! <= partialMatchEnd) + .toList(); + await testQueryPredicate( + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.between( + partialMatchStart, + partialMatchEnd, + ), + expectedModels: rangeMatchModels, + ); - // test with no match - var noMatchStart = 1000000.0; - var noMatchEnd = 1000000.1; - await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE - .between(noMatchStart, noMatchEnd), - expectedModels: [], - ); - }, - ); + // test with no match + var noMatchStart = 1000000.0; + var noMatchEnd = 1000000.1; + await testQueryPredicate( + queryPredicate: ModelWithAppsyncScalarTypes.FLOATVALUE.between( + noMatchStart, + noMatchEnd, + ), + expectedModels: [], + ); + }); }); } diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/int_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/int_query_predicate_test.dart index b99a7e810d..bb633ed931 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/int_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/int_query_predicate_test.dart @@ -163,33 +163,42 @@ void main() { testWidgets('beginsWith()', (WidgetTester tester) async { // test with exact match var exactMatchPattern = '1000'; - var exactMatchModels = nonNullModels - .where((model) => - model.intValue!.toString().startsWith(exactMatchPattern)) - .toList(); + var exactMatchModels = + nonNullModels + .where( + (model) => + model.intValue!.toString().startsWith(exactMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.INTVALUE.beginsWith(exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.beginsWith( + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchPattern = '10'; - var partialMatchModels = nonNullModels - .where((model) => - model.intValue!.toString().startsWith(partialMatchPattern)) - .toList(); + var partialMatchModels = + nonNullModels + .where( + (model) => + model.intValue!.toString().startsWith(partialMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE - .beginsWith(partialMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.beginsWith( + partialMatchPattern, + ), expectedModels: partialMatchModels, ); // test with no match var noMatchPattern = '123'; await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.INTVALUE.beginsWith(noMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.beginsWith( + noMatchPattern, + ), expectedModels: [], ); }); @@ -197,33 +206,42 @@ void main() { testWidgets('contains()', (WidgetTester tester) async { // test with exact match var exactMatchPattern = '1000'; - var exactMatchModels = nonNullModels - .where( - (model) => model.intValue!.toString().contains(exactMatchPattern)) - .toList(); + var exactMatchModels = + nonNullModels + .where( + (model) => + model.intValue!.toString().contains(exactMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.INTVALUE.contains(exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.contains( + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchPattern = '0'; - var partialMatchModels = nonNullModels - .where((model) => - model.intValue!.toString().contains(partialMatchPattern)) - .toList(); + var partialMatchModels = + nonNullModels + .where( + (model) => + model.intValue!.toString().contains(partialMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.INTVALUE.contains(partialMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.contains( + partialMatchPattern, + ), expectedModels: partialMatchModels, ); // test with no match var noMatchPattern = '123'; await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.INTVALUE.contains(noMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.contains( + noMatchPattern, + ), expectedModels: [], ); }); @@ -234,21 +252,26 @@ void main() { var exactMatchModels = models.where((model) => model.intValue == exactMatchPattern).toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE - .between(exactMatchPattern, exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.between( + exactMatchPattern, + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchStart = -1; var partialMatchEnd = 1; - var rangeMatchModels = nonNullModels - .where((model) => model.intValue! >= partialMatchStart) - .where((model) => model.intValue! <= partialMatchEnd) - .toList(); + var rangeMatchModels = + nonNullModels + .where((model) => model.intValue! >= partialMatchStart) + .where((model) => model.intValue! <= partialMatchEnd) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE - .between(partialMatchStart, partialMatchEnd), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.between( + partialMatchStart, + partialMatchEnd, + ), expectedModels: rangeMatchModels, ); @@ -256,8 +279,10 @@ void main() { var noMatchStart = 100000; var noMatchEnd = 100001; await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE - .between(noMatchStart, noMatchEnd), + queryPredicate: ModelWithAppsyncScalarTypes.INTVALUE.between( + noMatchStart, + noMatchEnd, + ), expectedModels: [], ); }); diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/list_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/list_query_predicate_test.dart index 0067778d46..89bf5c704e 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/list_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/list_query_predicate_test.dart @@ -36,28 +36,31 @@ void main() { testWidgets('contains()', (WidgetTester tester) async { // a list of unique values across all the lists - final values = listOfStringValues - .whereType>() - .expand((el) => el) - .toSet() - .toList(); + final values = + listOfStringValues + .whereType>() + .expand((el) => el) + .toSet() + .toList(); // test against each value for (var value in values) { - final exactMatchModels = models - .where((model) => model.listOfStringValue!.contains(value)) - .toList(); + final exactMatchModels = + models + .where((model) => model.listOfStringValue!.contains(value)) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE.contains(value), + queryPredicate: ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE + .contains(value), expectedModels: exactMatchModels, ); } // test against a non existing value await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE.contains('foobar'), + queryPredicate: ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE.contains( + 'foobar', + ), expectedModels: [], ); }); diff --git a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/string_query_predicate_test.dart b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/string_query_predicate_test.dart index d7956f9aeb..4ac078919b 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/string_query_predicate_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/query_predicate_test/string_query_predicate_test.dart @@ -93,9 +93,10 @@ void main() { testWidgets('lt()', (WidgetTester tester) async { // test against all (non-null) values for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.stringValue!.compareTo(value) < 0) - .toList(); + var expectedModels = + nonNullModels + .where((model) => model.stringValue!.compareTo(value) < 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.lt(value), expectedModels: expectedModels, @@ -104,15 +105,17 @@ void main() { // test with no matches await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.lt(minStringValue), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.lt( + minStringValue, + ), expectedModels: [], ); // test with match all models await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.lt(maxStringValue), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.lt( + maxStringValue, + ), expectedModels: nonNullModels, ); }); @@ -120,9 +123,10 @@ void main() { testWidgets('le()', (WidgetTester tester) async { // test against all (non-null) values for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.stringValue!.compareTo(value) <= 0) - .toList(); + var expectedModels = + nonNullModels + .where((model) => model.stringValue!.compareTo(value) <= 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.le(value), expectedModels: expectedModels, @@ -131,8 +135,9 @@ void main() { // test with match all models await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.le(maxStringValue), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.le( + maxStringValue, + ), expectedModels: nonNullModels, ); }); @@ -140,9 +145,10 @@ void main() { testWidgets('gt()', (WidgetTester tester) async { // test against all (non-null) values for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.stringValue!.compareTo(value) > 0) - .toList(); + var expectedModels = + nonNullModels + .where((model) => model.stringValue!.compareTo(value) > 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.gt(value), expectedModels: expectedModels, @@ -151,8 +157,9 @@ void main() { // test with match all models await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.gt(maxStringValue), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.gt( + maxStringValue, + ), expectedModels: [], ); }); @@ -160,9 +167,10 @@ void main() { testWidgets('ge()', (WidgetTester tester) async { // test against all (non-null) values for (var value in nonNullValues) { - var expectedModels = nonNullModels - .where((model) => model.stringValue!.compareTo(value) >= 0) - .toList(); + var expectedModels = + nonNullModels + .where((model) => model.stringValue!.compareTo(value) >= 0) + .toList(); await testQueryPredicate( queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.ge(value), expectedModels: expectedModels, @@ -171,15 +179,17 @@ void main() { // test with no matches await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.ge(maxStringValue), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.ge( + maxStringValue, + ), expectedModels: [], ); // test with match all models await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.ge(minStringValue), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.ge( + minStringValue, + ), expectedModels: nonNullModels, ); }); @@ -187,31 +197,40 @@ void main() { testWidgets('beginsWith()', (WidgetTester tester) async { // test with exact match var exactMatchPattern = 'foo'; - var exactMatchModels = nonNullModels - .where((model) => model.stringValue!.startsWith(exactMatchPattern)) - .toList(); + var exactMatchModels = + nonNullModels + .where( + (model) => model.stringValue!.startsWith(exactMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE - .beginsWith(exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.beginsWith( + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchPattern = 'a'; - var partialMatchModels = nonNullModels - .where((model) => model.stringValue!.startsWith(partialMatchPattern)) - .toList(); + var partialMatchModels = + nonNullModels + .where( + (model) => model.stringValue!.startsWith(partialMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE - .beginsWith(partialMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.beginsWith( + partialMatchPattern, + ), expectedModels: partialMatchModels, ); // test with no match var noMatchPattern = 'foobar'; await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.beginsWith(noMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.beginsWith( + noMatchPattern, + ), expectedModels: [], ); }); @@ -219,31 +238,38 @@ void main() { testWidgets('contains()', (WidgetTester tester) async { // test with exact match var exactMatchPattern = 'foo'; - var exactMatchModels = nonNullModels - .where((model) => model.stringValue!.contains(exactMatchPattern)) - .toList(); + var exactMatchModels = + nonNullModels + .where((model) => model.stringValue!.contains(exactMatchPattern)) + .toList(); await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.contains(exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.contains( + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchPattern = 'bc'; - var partialMatchModels = nonNullModels - .where((model) => model.stringValue!.contains(partialMatchPattern)) - .toList(); + var partialMatchModels = + nonNullModels + .where( + (model) => model.stringValue!.contains(partialMatchPattern), + ) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE - .contains(partialMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.contains( + partialMatchPattern, + ), expectedModels: partialMatchModels, ); // test with no match var noMatchPattern = 'foobar'; await testQueryPredicate( - queryPredicate: - ModelWithAppsyncScalarTypes.STRINGVALUE.contains(noMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.contains( + noMatchPattern, + ), expectedModels: [], ); }); @@ -251,28 +277,37 @@ void main() { testWidgets('bewtween()', (WidgetTester tester) async { // test with exact match var exactMatchPattern = 'foo'; - var exactMatchModels = models - .where((model) => model.stringValue == exactMatchPattern) - .toList(); + var exactMatchModels = + models + .where((model) => model.stringValue == exactMatchPattern) + .toList(); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE - .between(exactMatchPattern, exactMatchPattern), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.between( + exactMatchPattern, + exactMatchPattern, + ), expectedModels: exactMatchModels, ); // test with partial match var partialMatchStart = 'abcd'; var partialMatchEnd = 'abcf'; - var rangeMatchModels = nonNullModels - .where( - (model) => model.stringValue!.compareTo(partialMatchStart) >= 0) - .where((model) => model.stringValue!.compareTo(partialMatchEnd) <= 0) - .toList(); + var rangeMatchModels = + nonNullModels + .where( + (model) => model.stringValue!.compareTo(partialMatchStart) >= 0, + ) + .where( + (model) => model.stringValue!.compareTo(partialMatchEnd) <= 0, + ) + .toList(); // verify that the test is testing a partial match expect(rangeMatchModels.length, greaterThanOrEqualTo(1)); await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE - .between(partialMatchStart, partialMatchEnd), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.between( + partialMatchStart, + partialMatchEnd, + ), expectedModels: rangeMatchModels, ); @@ -280,8 +315,10 @@ void main() { var noMatchStart = 'foobar'; var noMatchEnd = 'foobuzz'; await testQueryPredicate( - queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE - .between(noMatchStart, noMatchEnd), + queryPredicate: ModelWithAppsyncScalarTypes.STRINGVALUE.between( + noMatchStart, + noMatchEnd, + ), expectedModels: [], ); }); diff --git a/packages/amplify_datastore/example/integration_test/query_test/sort_order_test.dart b/packages/amplify_datastore/example/integration_test/query_test/sort_order_test.dart index 0446b6b73a..fe3a1e05d8 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/sort_order_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/sort_order_test.dart @@ -96,10 +96,14 @@ void main() { DateTime(2020, 01, 02, 23, 59, 59), DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => - ModelWithAppsyncScalarTypes(awsDateValue: TemporalDate(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsDateValue: TemporalDate(value), + ), + ) + .toList(); testSortOperations( models: models, queryField: ModelWithAppsyncScalarTypes.AWSDATEVALUE, @@ -118,10 +122,14 @@ void main() { // see: https://github.com/aws-amplify/amplify-flutter/issues/817 // DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => ModelWithAppsyncScalarTypes( - awsDateTimeValue: TemporalDateTime(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsDateTimeValue: TemporalDateTime(value), + ), + ) + .toList(); testSortOperations( models: models, queryField: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE, @@ -141,10 +149,14 @@ void main() { // see: https://github.com/aws-amplify/amplify-flutter/issues/817 // DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => - ModelWithAppsyncScalarTypes(awsTimeValue: TemporalTime(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsTimeValue: TemporalTime(value), + ), + ) + .toList(); testSortOperations( models: models, queryField: ModelWithAppsyncScalarTypes.AWSTIMEVALUE, @@ -163,10 +175,14 @@ void main() { DateTime(2020, 01, 01, 23, 59, 59), DateTime(2999, 12, 31, 23, 59, 59, 999, 999), ]; - var models = values - .map((value) => ModelWithAppsyncScalarTypes( - awsTimestampValue: TemporalTimestamp(value))) - .toList(); + var models = + values + .map( + (value) => ModelWithAppsyncScalarTypes( + awsTimestampValue: TemporalTimestamp(value), + ), + ) + .toList(); testSortOperations( models: models, queryField: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE, @@ -196,13 +212,15 @@ void main() { }); testWidgets('ascending() & ascending()', (WidgetTester tester) async { - var expectedModels = models - ..sort( - (ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { - return a.intValue != b.intValue - ? a.intValue!.compareTo(b.intValue!) - : a.stringValue!.compareTo(b.stringValue!); - }); + var expectedModels = + models..sort(( + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, + ) { + return a.intValue != b.intValue + ? a.intValue!.compareTo(b.intValue!) + : a.stringValue!.compareTo(b.stringValue!); + }); var actualModels = await Amplify.DataStore.query( ModelWithAppsyncScalarTypes.classType, sortBy: [ @@ -214,13 +232,15 @@ void main() { }); testWidgets('ascending() & descending()', (WidgetTester tester) async { - var expectedModels = models - ..sort( - (ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { - return a.intValue != b.intValue - ? a.intValue!.compareTo(b.intValue!) - : b.stringValue!.compareTo(a.stringValue!); - }); + var expectedModels = + models..sort(( + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, + ) { + return a.intValue != b.intValue + ? a.intValue!.compareTo(b.intValue!) + : b.stringValue!.compareTo(a.stringValue!); + }); var actualModels = await Amplify.DataStore.query( ModelWithAppsyncScalarTypes.classType, sortBy: [ @@ -232,13 +252,15 @@ void main() { }); testWidgets('descending() & descending()', (WidgetTester tester) async { - var expectedModels = models - ..sort( - (ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { - return a.intValue != b.intValue - ? b.intValue!.compareTo(a.intValue!) - : b.stringValue!.compareTo(a.stringValue!); - }); + var expectedModels = + models..sort(( + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, + ) { + return a.intValue != b.intValue + ? b.intValue!.compareTo(a.intValue!) + : b.stringValue!.compareTo(a.stringValue!); + }); var actualModels = await Amplify.DataStore.query( ModelWithAppsyncScalarTypes.classType, sortBy: [ diff --git a/packages/amplify_datastore/example/integration_test/query_test/standard_query_operations_test.dart b/packages/amplify_datastore/example/integration_test/query_test/standard_query_operations_test.dart index 1fd6bf844b..e015e18f0c 100644 --- a/packages/amplify_datastore/example/integration_test/query_test/standard_query_operations_test.dart +++ b/packages/amplify_datastore/example/integration_test/query_test/standard_query_operations_test.dart @@ -19,8 +19,9 @@ void main() { // clear data before each test await clearDataStore(); }); - testWidgets('should return all data by default', - (WidgetTester tester) async { + testWidgets('should return all data by default', ( + WidgetTester tester, + ) async { Blog testBlog1 = Blog(name: 'blog one'); Blog testBlog2 = Blog(name: 'blog two'); Blog testBlog3 = Blog(name: 'blog three'); @@ -34,22 +35,26 @@ void main() { expect(blogs.contains(testBlog3), isTrue); }); - testWidgets('should return no data when the query has no results', - (WidgetTester tester) async { + testWidgets('should return no data when the query has no results', ( + WidgetTester tester, + ) async { var blogs = await Amplify.DataStore.query(Blog.classType); expect(blogs, isEmpty); }); - testWidgets('should return the correct record when queried by id', - (WidgetTester tester) async { + testWidgets('should return the correct record when queried by id', ( + WidgetTester tester, + ) async { Blog testBlog1 = Blog(name: 'blog one'); Blog testBlog2 = Blog(name: 'blog two'); Blog testBlog3 = Blog(name: 'blog three'); await Amplify.DataStore.save(testBlog1); await Amplify.DataStore.save(testBlog2); await Amplify.DataStore.save(testBlog3); - var blogs = await Amplify.DataStore.query(Blog.classType, - where: Blog.ID.eq(testBlog1.id)); + var blogs = await Amplify.DataStore.query( + Blog.classType, + where: Blog.ID.eq(testBlog1.id), + ); expect(blogs.length, 1); var blog = blogs[0]; expect(blog, testBlog1); @@ -80,8 +85,9 @@ void main() { skip: Platform.isAndroid, ); - testWidgets('should return the ID of nested objects', - (WidgetTester tester) async { + testWidgets('should return the ID of nested objects', ( + WidgetTester tester, + ) async { Blog testBlog = Blog(name: 'test blog'); await Amplify.DataStore.save(testBlog); Post testPost = Post( diff --git a/packages/amplify_datastore/example/integration_test/save_test.dart b/packages/amplify_datastore/example/integration_test/save_test.dart index 59367db6d9..29e571ce1e 100644 --- a/packages/amplify_datastore/example/integration_test/save_test.dart +++ b/packages/amplify_datastore/example/integration_test/save_test.dart @@ -26,33 +26,31 @@ void main() { expect(blogs.contains(testBlog), isTrue); }); - testWidgets( - 'should update an existing model', - (WidgetTester tester) async { - // create blog - var testBlog = Blog(name: 'test blog'); - await Amplify.DataStore.save(testBlog); - var blogs = await Amplify.DataStore.query(Blog.classType); + testWidgets('should update an existing model', (WidgetTester tester) async { + // create blog + var testBlog = Blog(name: 'test blog'); + await Amplify.DataStore.save(testBlog); + var blogs = await Amplify.DataStore.query(Blog.classType); - // verify blog was created - expect(blogs.length, 1); - expect(blogs.contains(testBlog), isTrue); + // verify blog was created + expect(blogs.length, 1); + expect(blogs.contains(testBlog), isTrue); - // update blog - const updatedBlogName = 'updated name'; - var updatedBlog = testBlog.copyWith(name: updatedBlogName); - await Amplify.DataStore.save(updatedBlog); - var updatedBlogs = await Amplify.DataStore.query(Blog.classType); + // update blog + const updatedBlogName = 'updated name'; + var updatedBlog = testBlog.copyWith(name: updatedBlogName); + await Amplify.DataStore.save(updatedBlog); + var updatedBlogs = await Amplify.DataStore.query(Blog.classType); - // verify blog was updated - expect(updatedBlogs.length, 1); - expect(updatedBlogs.contains(updatedBlog), isTrue); - expect(updatedBlogs[0].name, updatedBlogName); - }, - ); + // verify blog was updated + expect(updatedBlogs.length, 1); + expect(updatedBlogs.contains(updatedBlog), isTrue); + expect(updatedBlogs[0].name, updatedBlogName); + }); - testWidgets('predicate should prevent save to non matching model', - (WidgetTester tester) async { + testWidgets('predicate should prevent save to non matching model', ( + WidgetTester tester, + ) async { // Note that predicate for save can only be applied to updates (not initial save) const originalBlogName = 'non matching blog'; Blog testBlog = Blog(name: originalBlogName); @@ -61,16 +59,25 @@ void main() { var updatedBlog = testBlog.copyWith(name: 'changed name'); expect( - () => Amplify.DataStore.save(updatedBlog, - where: Blog.NAME.contains("Predicate")), - throwsA(predicate((e) => - e is DataStoreException && - e.message.contains( - "condition did not match existing model instance")))); + () => Amplify.DataStore.save( + updatedBlog, + where: Blog.NAME.contains("Predicate"), + ), + throwsA( + predicate( + (e) => + e is DataStoreException && + e.message.contains( + "condition did not match existing model instance", + ), + ), + ), + ); }); - testWidgets('predicate should not prevent save for matching model', - (WidgetTester tester) async { + testWidgets('predicate should not prevent save for matching model', ( + WidgetTester tester, + ) async { // Note that predicate for save can only be applied to updates (not initial save) const originalBlogName = 'original blog'; Blog testBlog = Blog(name: originalBlogName); @@ -78,8 +85,10 @@ void main() { const matchingBlogName = 'matching blog name'; var updatedBlog = testBlog.copyWith(name: matchingBlogName); - await Amplify.DataStore.save(updatedBlog, - where: Blog.NAME.contains("original")); + await Amplify.DataStore.save( + updatedBlog, + where: Blog.NAME.contains("original"), + ); var blogs = await Amplify.DataStore.query(Blog.classType); expect(blogs.length, 1); diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_auth_model_operation_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_auth_model_operation_test.dart index e3786e35c1..84793a9ee9 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_auth_model_operation_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_auth_model_operation_test.dart @@ -15,181 +15,194 @@ void main() { final enableCloudSync = shouldEnableCloudSync(); group( - 'Basic auth model operation${enableCloudSync ? ' with API sync 🌩 enabled' : ''} -', - () { - setUpAll(() async { - await configureDataStore( + 'Basic auth model operation${enableCloudSync ? ' with API sync 🌩 enabled' : ''} -', + () { + setUpAll(() async { + await configureDataStore( enableCloudSync: enableCloudSync, - modelProvider: ModelProvider.instance); - }); - tearDownAll(() async { - if (enableCloudSync) { - await deleteTestUser(testUser); - } - }); - - group("owner only auth model", () { - PrivateTodo testPrivateTodo = PrivateTodo(content: 'test content'); - testWidgets( - 'should save a new model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { + modelProvider: ModelProvider.instance, + ); + }); + tearDownAll(() async { if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testPrivateTodo], - expectedRootModelVersion: 1, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, - ); - } else { - await Amplify.DataStore.save(testPrivateTodo); + await deleteTestUser(testUser); } - - var queriedTodos = await Amplify.DataStore.query(PrivateTodo.classType); - expect(queriedTodos, contains(testPrivateTodo)); }); - testWidgets( - 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - var updatedTestTodo = - testPrivateTodo.copyWith(content: "updated test todo"); - - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [updatedTestTodo], - expectedRootModelVersion: 2, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, + group("owner only auth model", () { + PrivateTodo testPrivateTodo = PrivateTodo(content: 'test content'); + testWidgets( + 'should save a new model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testPrivateTodo], + expectedRootModelVersion: 1, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(testPrivateTodo); + } + + var queriedTodos = await Amplify.DataStore.query( + PrivateTodo.classType, ); - } else { - await Amplify.DataStore.save(updatedTestTodo); - } - - var queriedTodos = await Amplify.DataStore.query( - PrivateTodo.classType, - where: PrivateTodo.ID.eq(updatedTestTodo.id), - ); - - expect(queriedTodos, contains(updatedTestTodo)); - }, - ); - - testWidgets( - 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testPrivateTodo], - expectedRootModelVersion: 3, - rootModelOperator: Amplify.DataStore.delete, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isTrue); - }); - }, + expect(queriedTodos, contains(testPrivateTodo)); + }, + ); + + testWidgets( + 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + var updatedTestTodo = testPrivateTodo.copyWith( + content: "updated test todo", + ); + + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [updatedTestTodo], + expectedRootModelVersion: 2, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(updatedTestTodo); + } + + var queriedTodos = await Amplify.DataStore.query( + PrivateTodo.classType, + where: PrivateTodo.ID.eq(updatedTestTodo.id), ); - } else { - await Amplify.DataStore.delete(testPrivateTodo); - } - var queriedTodos = - await Amplify.DataStore.query(PrivateTodo.classType); + expect(queriedTodos, contains(updatedTestTodo)); + }, + ); - // verify Todo was deleted - expect(queriedTodos, isNot(contains(testPrivateTodo))); - }, - ); - }); + testWidgets( + 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testPrivateTodo], + expectedRootModelVersion: 3, + rootModelOperator: Amplify.DataStore.delete, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isTrue); + }); + }, + ); + } else { + await Amplify.DataStore.delete(testPrivateTodo); + } + + var queriedTodos = await Amplify.DataStore.query( + PrivateTodo.classType, + ); - group("multi auth model", () { - MultiAuthTodo testMultiAuthTodo = MultiAuthTodo(content: 'test content'); + // verify Todo was deleted + expect(queriedTodos, isNot(contains(testPrivateTodo))); + }, + ); + }); - testWidgets( + group("multi auth model", () { + MultiAuthTodo testMultiAuthTodo = MultiAuthTodo( + content: 'test content', + ); + + testWidgets( 'should save a new model ${enableCloudSync ? 'and sync to cloud' : ''}', (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testMultiAuthTodo], - expectedRootModelVersion: 1, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, - ); - } else { - await Amplify.DataStore.save(testMultiAuthTodo); - } + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testMultiAuthTodo], + expectedRootModelVersion: 1, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(testMultiAuthTodo); + } + + var queriedTodos = await Amplify.DataStore.query( + MultiAuthTodo.classType, + ); + expect(queriedTodos, contains(testMultiAuthTodo)); + }, + ); - var queriedTodos = - await Amplify.DataStore.query(MultiAuthTodo.classType); - expect(queriedTodos, contains(testMultiAuthTodo)); - }); + testWidgets( + 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + var updatedTestTodo = testMultiAuthTodo.copyWith( + content: "updated test todo", + ); - testWidgets( - 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - var updatedTestTodo = - testMultiAuthTodo.copyWith(content: "updated test todo"); - - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [updatedTestTodo], - expectedRootModelVersion: 2, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [updatedTestTodo], + expectedRootModelVersion: 2, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(updatedTestTodo); + } + + var queriedTodos = await Amplify.DataStore.query( + MultiAuthTodo.classType, + where: MultiAuthTodo.ID.eq(updatedTestTodo.id), ); - } else { - await Amplify.DataStore.save(updatedTestTodo); - } - - var queriedTodos = await Amplify.DataStore.query( - MultiAuthTodo.classType, - where: MultiAuthTodo.ID.eq(updatedTestTodo.id), - ); - - expect(queriedTodos, contains(updatedTestTodo)); - }, - ); - - testWidgets( - 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testMultiAuthTodo], - expectedRootModelVersion: 3, - rootModelOperator: Amplify.DataStore.delete, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isTrue); - }); - }, + + expect(queriedTodos, contains(updatedTestTodo)); + }, + ); + + testWidgets( + 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testMultiAuthTodo], + expectedRootModelVersion: 3, + rootModelOperator: Amplify.DataStore.delete, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isTrue); + }); + }, + ); + } else { + await Amplify.DataStore.delete(testMultiAuthTodo); + } + + var queriedTodos = await Amplify.DataStore.query( + MultiAuthTodo.classType, ); - } else { - await Amplify.DataStore.delete(testMultiAuthTodo); - } - - var queriedTodos = - await Amplify.DataStore.query(MultiAuthTodo.classType); - - // verify Todo was deleted - expect(queriedTodos, isNot(contains(testMultiAuthTodo))); - }, - ); - }); - }); + + // verify Todo was deleted + expect(queriedTodos, isNot(contains(testMultiAuthTodo))); + }, + ); + }); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_model_operation_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_model_operation_test.dart index 41b488b5d3..1104990c57 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_model_operation_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/basic_model_operation_test.dart @@ -14,90 +14,93 @@ void main() { final enableCloudSync = shouldEnableCloudSync(); group( - 'Basic model operation${enableCloudSync ? ' with API sync 🌩 enabled' : ''} -', - () { - Blog testBlog = Blog(name: 'test blog'); + 'Basic model operation${enableCloudSync ? ' with API sync 🌩 enabled' : ''} -', + () { + Blog testBlog = Blog(name: 'test blog'); - setUpAll(() async { - await configureDataStore( + setUpAll(() async { + await configureDataStore( enableCloudSync: enableCloudSync, - modelProvider: ModelProvider.instance); - }); + modelProvider: ModelProvider.instance, + ); + }); - testWidgets( + testWidgets( 'should save a new model ${enableCloudSync ? 'and sync to cloud' : ''}', (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testBlog], - expectedRootModelVersion: 1, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, - ); - } else { - await Amplify.DataStore.save(testBlog); - } + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testBlog], + expectedRootModelVersion: 1, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(testBlog); + } - var queriedBlogs = await Amplify.DataStore.query(Blog.classType); - expect(queriedBlogs, contains(testBlog)); - }); + var queriedBlogs = await Amplify.DataStore.query(Blog.classType); + expect(queriedBlogs, contains(testBlog)); + }, + ); - testWidgets( - 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - var updatedTestBlog = testBlog.copyWith(name: "updated test blog"); + testWidgets( + 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + var updatedTestBlog = testBlog.copyWith(name: "updated test blog"); - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [updatedTestBlog], - expectedRootModelVersion: 2, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, - ); - } else { - await Amplify.DataStore.save(updatedTestBlog); - } + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [updatedTestBlog], + expectedRootModelVersion: 2, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(updatedTestBlog); + } - var queriedBlogs = await Amplify.DataStore.query( - Blog.classType, - where: Blog.ID.eq(updatedTestBlog.id), - ); + var queriedBlogs = await Amplify.DataStore.query( + Blog.classType, + where: Blog.ID.eq(updatedTestBlog.id), + ); - expect(queriedBlogs, contains(updatedTestBlog)); - }, - ); + expect(queriedBlogs, contains(updatedTestBlog)); + }, + ); - testWidgets( - 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testBlog], - expectedRootModelVersion: 3, - rootModelOperator: Amplify.DataStore.delete, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isTrue); - }); - }, - ); - } else { - await Amplify.DataStore.delete(testBlog); - } + testWidgets( + 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testBlog], + expectedRootModelVersion: 3, + rootModelOperator: Amplify.DataStore.delete, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isTrue); + }); + }, + ); + } else { + await Amplify.DataStore.delete(testBlog); + } - var queriedBlogs = await Amplify.DataStore.query(Blog.classType); + var queriedBlogs = await Amplify.DataStore.query(Blog.classType); - // verify blog was deleted - expect(queriedBlogs, isNot(contains(testBlog))); - }, - ); - }); + // verify blog was deleted + expect(queriedBlogs, isNot(contains(testBlog))); + }, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_explicit_parent_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_explicit_parent_test.dart index a2950a40b0..c5e32cef7e 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_explicit_parent_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_explicit_parent_test.dart @@ -11,8 +11,7 @@ import 'models/belongs_to/ModelProvider.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - group('BelongsTo (child refers to parent with explicit connection field)', - () { + group('BelongsTo (child refers to parent with explicit connection field)', () { // schema // type BelongsToParent @model { // id: ID! @@ -31,7 +30,7 @@ void main() { BelongsToChildExplicit( name: 'belongs to child (explicit)', belongsToParent: rootModels.first, - ) + ), ]; testRootAndAssociatedModelsRelationship( diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_implicit_parent_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_implicit_parent_test.dart index 818e18e82d..e68378ad17 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_implicit_parent_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/belongs_to_implicit_parent_test.dart @@ -11,38 +11,40 @@ import 'models/belongs_to/ModelProvider.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - group('BelongsTo (child refers to parent with implicit connection field)', - () { - // schema - // type BelongsToParent @model { - // id: ID! - // name: String - // implicitChild: BelongsToChildImplicit @hasOne - // } - // type BelongsToChildImplicit @model { - // id: ID! - // name: String - // belongsToParent: BelongsToParent @belongsTo - // } - final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [BelongsToParent(name: 'belongs to parent')]; - var associatedModels = [ - BelongsToChildImplicit( - name: 'belongs to child (implicit)', - belongsToParent: rootModels.first, - ) - ]; + group( + 'BelongsTo (child refers to parent with implicit connection field)', + () { + // schema + // type BelongsToParent @model { + // id: ID! + // name: String + // implicitChild: BelongsToChildImplicit @hasOne + // } + // type BelongsToChildImplicit @model { + // id: ID! + // name: String + // belongsToParent: BelongsToParent @belongsTo + // } + final enableCloudSync = shouldEnableCloudSync(); + var rootModels = [BelongsToParent(name: 'belongs to parent')]; + var associatedModels = [ + BelongsToChildImplicit( + name: 'belongs to child (implicit)', + belongsToParent: rootModels.first, + ), + ]; - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: BelongsToParent.classType, - rootModels: rootModels, - rootModelQueryIdentifier: BelongsToParent.MODEL_IDENTIFIER, - associatedModelType: BelongsToChildImplicit.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: BelongsToChildImplicit.MODEL_IDENTIFIER, - supportCascadeDelete: true, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: BelongsToParent.classType, + rootModels: rootModels, + rootModelQueryIdentifier: BelongsToParent.MODEL_IDENTIFIER, + associatedModelType: BelongsToChildImplicit.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: BelongsToChildImplicit.MODEL_IDENTIFIER, + supportCascadeDelete: true, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_basic_model_operation_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_basic_model_operation_test.dart index cf8f1b37b8..30f43cc65b 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_basic_model_operation_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_basic_model_operation_test.dart @@ -16,226 +16,238 @@ void main() { final enableCloudSync = shouldEnableCloudSync(); const delayDuration = Duration(seconds: 1); group( - 'Basic model (with Custom PK) operation${enableCloudSync ? ' with API sync 🌩 enabled' : ''} -', - () { - // schema - // type CpkInventory @model { - // productId: ID! @primaryKey(sortKeyFields: ["productName", "warehouseId"]) - // productName: String! - // warehouseId: String! - // description: String - // } - - final testModel = CpkInventory( - productId: UUID.getUUID(), - productName: 'test product', - warehouseId: UUID.getUUID(), - ); - - setUpAll(() async { - await configureDataStore( - enableCloudSync: enableCloudSync, - modelProvider: ModelProvider.instance, + 'Basic model (with Custom PK) operation${enableCloudSync ? ' with API sync 🌩 enabled' : ''} -', + () { + // schema + // type CpkInventory @model { + // productId: ID! @primaryKey(sortKeyFields: ["productName", "warehouseId"]) + // productName: String! + // warehouseId: String! + // description: String + // } + + final testModel = CpkInventory( + productId: UUID.getUUID(), + productName: 'test product', + warehouseId: UUID.getUUID(), ); - }); - testWidgets( - 'should save a new model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testModel], - expectedRootModelVersion: 1, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, + setUpAll(() async { + await configureDataStore( + enableCloudSync: enableCloudSync, + modelProvider: ModelProvider.instance, ); - } else { - await Amplify.DataStore.save(testModel); - } - - var queriedBlogs = await Amplify.DataStore.query(CpkInventory.classType); - expect(queriedBlogs, contains(testModel)); - }); + }); - testWidgets('query by eq(modelIdentifier) should return a single model', + testWidgets( + 'should save a new model ${enableCloudSync ? 'and sync to cloud' : ''}', (WidgetTester tester) async { - final eqResult = await Amplify.DataStore.query( - CpkInventory.classType, - where: CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier), + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testModel], + expectedRootModelVersion: 1, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(testModel); + } + + var queriedBlogs = await Amplify.DataStore.query( + CpkInventory.classType, + ); + expect(queriedBlogs, contains(testModel)); + }, ); - expect(eqResult.length, 1); - expect(eqResult.first, testModel); - }); - - testWidgets('query by ne(modelIdentifier) should return empty list', - (WidgetTester tester) async { - final eqResult = await Amplify.DataStore.query( - CpkInventory.classType, - where: CpkInventory.MODEL_IDENTIFIER.ne(testModel.modelIdentifier), - ); + testWidgets('query by eq(modelIdentifier) should return a single model', ( + WidgetTester tester, + ) async { + final eqResult = await Amplify.DataStore.query( + CpkInventory.classType, + where: CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier), + ); - expect(eqResult, isEmpty); - }); - - // TODO: enable after amplify-ios fix the not operator - // testWidgets('query by not(eq(modelIdentifier)) should return empty list', - // (WidgetTester tester) async { - // final eqResult = await Amplify.DataStore.query( - // CpkInventory.classType, - // where: not(CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier)), - // ); - - // expect(eqResult, isEmpty); - // }); - - // testWidgets( - // 'query by not(ne(modelIdentifier)) should return a single model', - // (WidgetTester tester) async { - // final eqResult = await Amplify.DataStore.query( - // CpkInventory.classType, - // where: not(CpkInventory.MODEL_IDENTIFIER.ne(testModel.modelIdentifier)), - // ); - - // expect(eqResult.length, 1); - // expect(eqResult.first, testModel); - // }); - - testWidgets( - 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - var updatedTestModel = - testModel.copyWith(description: "Newly added description"); - - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [updatedTestModel], - expectedRootModelVersion: 2, - rootModelOperator: Amplify.DataStore.save, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isFalse); - }); - }, - ); - } else { - await Amplify.DataStore.save(updatedTestModel); - } + expect(eqResult.length, 1); + expect(eqResult.first, testModel); + }); - var queriedBlogs = await Amplify.DataStore.query( + testWidgets('query by ne(modelIdentifier) should return empty list', ( + WidgetTester tester, + ) async { + final eqResult = await Amplify.DataStore.query( CpkInventory.classType, - where: CpkInventory.MODEL_IDENTIFIER.eq( - updatedTestModel.modelIdentifier, - ), + where: CpkInventory.MODEL_IDENTIFIER.ne(testModel.modelIdentifier), ); - expect(queriedBlogs.length, 1); - expect(queriedBlogs.first, updatedTestModel); - }, - ); - - testWidgets( - 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', - (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: [testModel], - expectedRootModelVersion: 3, - rootModelOperator: Amplify.DataStore.delete, - rootModelEventsAssertor: (events) { - events.forEach((event) { - expect(event.element.deleted, isTrue); - }); - }, + expect(eqResult, isEmpty); + }); + + // TODO: enable after amplify-ios fix the not operator + // testWidgets('query by not(eq(modelIdentifier)) should return empty list', + // (WidgetTester tester) async { + // final eqResult = await Amplify.DataStore.query( + // CpkInventory.classType, + // where: not(CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier)), + // ); + + // expect(eqResult, isEmpty); + // }); + + // testWidgets( + // 'query by not(ne(modelIdentifier)) should return a single model', + // (WidgetTester tester) async { + // final eqResult = await Amplify.DataStore.query( + // CpkInventory.classType, + // where: not(CpkInventory.MODEL_IDENTIFIER.ne(testModel.modelIdentifier)), + // ); + + // expect(eqResult.length, 1); + // expect(eqResult.first, testModel); + // }); + + testWidgets( + 'should update existing model ${enableCloudSync ? 'and sync to cloud' : ''}', + (WidgetTester tester) async { + var updatedTestModel = testModel.copyWith( + description: "Newly added description", ); - } else { - await Amplify.DataStore.delete(testModel); - } - var queriedBlogs = - await Amplify.DataStore.query(CpkInventory.classType); + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [updatedTestModel], + expectedRootModelVersion: 2, + rootModelOperator: Amplify.DataStore.save, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isFalse); + }); + }, + ); + } else { + await Amplify.DataStore.save(updatedTestModel); + } + + var queriedBlogs = await Amplify.DataStore.query( + CpkInventory.classType, + where: CpkInventory.MODEL_IDENTIFIER.eq( + updatedTestModel.modelIdentifier, + ), + ); - // verify blog was deleted - expect(queriedBlogs, isNot(contains(testModel))); - }, - ); + expect(queriedBlogs.length, 1); + expect(queriedBlogs.first, updatedTestModel); + }, + ); - testWidgets('observe by model identifier should work', + testWidgets( + 'should delete existing model ${enableCloudSync ? 'and sync to cloud' : ''}', (WidgetTester tester) async { - final updatedTestModel = - testModel.copyWith(description: "updated description"); - final modelWithDifferentIdentifier = CpkInventory( - productId: UUID.getUUID(), - productName: 'product with different model identifier', - warehouseId: UUID.getUUID(), - ); + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: [testModel], + expectedRootModelVersion: 3, + rootModelOperator: Amplify.DataStore.delete, + rootModelEventsAssertor: (events) { + events.forEach((event) { + expect(event.element.deleted, isTrue); + }); + }, + ); + } else { + await Amplify.DataStore.delete(testModel); + } + + var queriedBlogs = await Amplify.DataStore.query( + CpkInventory.classType, + ); - final observeStream = Amplify.DataStore.observe( - CpkInventory.classType, - where: CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier), - ).map((event) => Tuple2(event.eventType, event.item)); - - expectLater( - observeStream, - emitsInOrder([ - Tuple2(EventType.create, testModel), - Tuple2(EventType.update, updatedTestModel), - Tuple2(EventType.delete, updatedTestModel), - ]), + // verify blog was deleted + expect(queriedBlogs, isNot(contains(testModel))); + }, ); - await Future.delayed(delayDuration); - await Amplify.DataStore.save(testModel); - await Amplify.DataStore.save(modelWithDifferentIdentifier); - await Future.delayed(delayDuration); - await Amplify.DataStore.save(updatedTestModel); - await Amplify.DataStore.delete(modelWithDifferentIdentifier); - await Future.delayed(delayDuration); - await Amplify.DataStore.delete(updatedTestModel); - }); - - testWidgets('observeQuery by model identifier should work', - (WidgetTester tester) async { - final updatedTestModel = - testModel.copyWith(description: "updated description"); - final modelWithDifferentIdentifier = CpkInventory( - productId: UUID.getUUID(), - productName: 'product with different model identifier', - warehouseId: UUID.getUUID(), - ); + testWidgets('observe by model identifier should work', ( + WidgetTester tester, + ) async { + final updatedTestModel = testModel.copyWith( + description: "updated description", + ); + final modelWithDifferentIdentifier = CpkInventory( + productId: UUID.getUUID(), + productName: 'product with different model identifier', + warehouseId: UUID.getUUID(), + ); - final observeStream = Amplify.DataStore.observeQuery( - CpkInventory.classType, - where: CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier), - ).map( - (querySnapshot) => Tuple2( - querySnapshot.isSynced, - querySnapshot.items.length > 0 ? querySnapshot.items.first : null, - ), - ); + final observeStream = Amplify.DataStore.observe( + CpkInventory.classType, + where: CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier), + ).map((event) => Tuple2(event.eventType, event.item)); + + expectLater( + observeStream, + emitsInOrder([ + Tuple2(EventType.create, testModel), + Tuple2(EventType.update, updatedTestModel), + Tuple2(EventType.delete, updatedTestModel), + ]), + ); - expectLater( - observeStream, - emitsInOrder([ - Tuple2(enableCloudSync, null), - Tuple2(enableCloudSync, testModel), - Tuple2(enableCloudSync, updatedTestModel), - Tuple2(enableCloudSync, null), - ]), - ); + await Future.delayed(delayDuration); + await Amplify.DataStore.save(testModel); + await Amplify.DataStore.save(modelWithDifferentIdentifier); + await Future.delayed(delayDuration); + await Amplify.DataStore.save(updatedTestModel); + await Amplify.DataStore.delete(modelWithDifferentIdentifier); + await Future.delayed(delayDuration); + await Amplify.DataStore.delete(updatedTestModel); + }); + + testWidgets('observeQuery by model identifier should work', ( + WidgetTester tester, + ) async { + final updatedTestModel = testModel.copyWith( + description: "updated description", + ); + final modelWithDifferentIdentifier = CpkInventory( + productId: UUID.getUUID(), + productName: 'product with different model identifier', + warehouseId: UUID.getUUID(), + ); + + final observeStream = Amplify.DataStore.observeQuery( + CpkInventory.classType, + where: CpkInventory.MODEL_IDENTIFIER.eq(testModel.modelIdentifier), + ).map( + (querySnapshot) => Tuple2( + querySnapshot.isSynced, + querySnapshot.items.length > 0 ? querySnapshot.items.first : null, + ), + ); - await Future.delayed(delayDuration); - await Amplify.DataStore.save(testModel); - await Amplify.DataStore.save(modelWithDifferentIdentifier); - await Future.delayed(delayDuration); - await Amplify.DataStore.save(updatedTestModel); - await Amplify.DataStore.delete(modelWithDifferentIdentifier); - await Future.delayed(delayDuration); - await Amplify.DataStore.delete(updatedTestModel); - }); - }); + expectLater( + observeStream, + emitsInOrder([ + Tuple2(enableCloudSync, null), + Tuple2(enableCloudSync, testModel), + Tuple2(enableCloudSync, updatedTestModel), + Tuple2(enableCloudSync, null), + ]), + ); + + await Future.delayed(delayDuration); + await Amplify.DataStore.save(testModel); + await Amplify.DataStore.save(modelWithDifferentIdentifier); + await Future.delayed(delayDuration); + await Amplify.DataStore.save(updatedTestModel); + await Amplify.DataStore.delete(modelWithDifferentIdentifier); + await Future.delayed(delayDuration); + await Amplify.DataStore.delete(updatedTestModel); + }); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_explicit_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_explicit_test.dart index 1ad5285c70..0038a52a66 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_explicit_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_explicit_test.dart @@ -29,7 +29,7 @@ void main() { // } final enableCloudSync = shouldEnableCloudSync(); var rootModels = [ - CpkHasManyParentBidirectionalExplicit(name: 'has many parent (explicit)') + CpkHasManyParentBidirectionalExplicit(name: 'has many parent (explicit)'), ]; var associatedModels = List.generate( 5, diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_implicit_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_implicit_test.dart index 565ca666fc..ad3fa2e5b9 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_implicit_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_bidirectional_implicit_test.dart @@ -26,7 +26,7 @@ void main() { // } final enableCloudSync = shouldEnableCloudSync(); var rootModels = [ - CpkHasManyParentBidirectionalImplicit(name: 'has many parent (explicit)') + CpkHasManyParentBidirectionalImplicit(name: 'has many parent (explicit)'), ]; var associatedModels = List.generate( 5, @@ -35,20 +35,22 @@ void main() { hasManyParent: rootModels.first, ), ); - var associatedModelQueryPredicates = associatedModels - .map( - (associatedModel) => CpkHasManyChildBidirectionalImplicit.NAME - .eq(associatedModel.name), - ) - .toList(); - var associatedModelNeQueryPredicates = associatedModels - .map( - (associatedModel) => - CpkHasManyChildBidirectionalImplicit.MODEL_IDENTIFIER.ne( - associatedModel.modelIdentifier, - ), - ) - .toList(); + var associatedModelQueryPredicates = + associatedModels + .map( + (associatedModel) => CpkHasManyChildBidirectionalImplicit.NAME.eq( + associatedModel.name, + ), + ) + .toList(); + var associatedModelNeQueryPredicates = + associatedModels + .map( + (associatedModel) => CpkHasManyChildBidirectionalImplicit + .MODEL_IDENTIFIER + .ne(associatedModel.modelIdentifier), + ) + .toList(); testRootAndAssociatedModelsRelationship( modelProvider: ModelProvider.instance, diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_explicit_parent_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_explicit_parent_test.dart index ad11f17695..7c46fe6957 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_explicit_parent_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_explicit_parent_test.dart @@ -12,45 +12,47 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'HasMany (parent refers to children with explicit connection field and indexName)', - () { - // schema - // type CpkHasManyUnidirectionalParent @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // explicitChildren: [CpkHasManyUnidirectionalChildExplicit] - // @hasMany(indexName: "byHasManyParentCpk", fields: ["id", "name"]) - // } - // type CpkHasManyUnidirectionalChildExplicit @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // hasManyParentID: ID! - // @index(name: "byHasManyParentCpk", sortKeyFields: ["hasManyParentName"]) - // hasManyParentName: String! - // } - final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [ - CpkHasManyUnidirectionalParent(name: 'has many parent (explicit)') - ]; - var associatedModels = List.generate( - 5, - (i) => CpkHasManyUnidirectionalChildExplicit( - name: 'has many child $i (explicit)', - hasManyParentID: rootModels.first.id, - hasManyParentName: rootModels.first.name, - ), - ); + 'HasMany (parent refers to children with explicit connection field and indexName)', + () { + // schema + // type CpkHasManyUnidirectionalParent @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // explicitChildren: [CpkHasManyUnidirectionalChildExplicit] + // @hasMany(indexName: "byHasManyParentCpk", fields: ["id", "name"]) + // } + // type CpkHasManyUnidirectionalChildExplicit @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // hasManyParentID: ID! + // @index(name: "byHasManyParentCpk", sortKeyFields: ["hasManyParentName"]) + // hasManyParentName: String! + // } + final enableCloudSync = shouldEnableCloudSync(); + var rootModels = [ + CpkHasManyUnidirectionalParent(name: 'has many parent (explicit)'), + ]; + var associatedModels = List.generate( + 5, + (i) => CpkHasManyUnidirectionalChildExplicit( + name: 'has many child $i (explicit)', + hasManyParentID: rootModels.first.id, + hasManyParentName: rootModels.first.name, + ), + ); - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: CpkHasManyUnidirectionalParent.classType, - rootModels: rootModels, - rootModelQueryIdentifier: CpkHasManyUnidirectionalParent.MODEL_IDENTIFIER, - associatedModelType: CpkHasManyUnidirectionalChildExplicit.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: - CpkHasManyUnidirectionalChildExplicit.MODEL_IDENTIFIER, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: CpkHasManyUnidirectionalParent.classType, + rootModels: rootModels, + rootModelQueryIdentifier: + CpkHasManyUnidirectionalParent.MODEL_IDENTIFIER, + associatedModelType: CpkHasManyUnidirectionalChildExplicit.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: + CpkHasManyUnidirectionalChildExplicit.MODEL_IDENTIFIER, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_implicit_parent_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_implicit_parent_test.dart index fdb90abe3d..1af0801f38 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_implicit_parent_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_has_many_unidirectional_implicit_parent_test.dart @@ -12,43 +12,45 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'HasMany (parent refers to children with explicit connection field and indexName)', - () { - // schema - // type CpkHasManyUnidirectionalParent @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // implicitChildren: [CpkHasManyUnidirectionalChildImplicit] @hasMany - // } + 'HasMany (parent refers to children with explicit connection field and indexName)', + () { + // schema + // type CpkHasManyUnidirectionalParent @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // implicitChildren: [CpkHasManyUnidirectionalChildImplicit] @hasMany + // } - // type CpkHasManyUnidirectionalChildImplicit @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // } - final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [ - CpkHasManyUnidirectionalParent(name: 'has many parent (implicit)') - ]; - var associatedModels = List.generate( - 5, - (i) => CpkHasManyUnidirectionalChildImplicit( - name: 'has many child $i (implicit)', - cpkHasManyUnidirectionalParentImplicitChildrenId: rootModels.first.id, - cpkHasManyUnidirectionalParentImplicitChildrenName: - rootModels.first.name, - ), - ); + // type CpkHasManyUnidirectionalChildImplicit @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // } + final enableCloudSync = shouldEnableCloudSync(); + var rootModels = [ + CpkHasManyUnidirectionalParent(name: 'has many parent (implicit)'), + ]; + var associatedModels = List.generate( + 5, + (i) => CpkHasManyUnidirectionalChildImplicit( + name: 'has many child $i (implicit)', + cpkHasManyUnidirectionalParentImplicitChildrenId: rootModels.first.id, + cpkHasManyUnidirectionalParentImplicitChildrenName: + rootModels.first.name, + ), + ); - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: CpkHasManyUnidirectionalParent.classType, - rootModels: rootModels, - rootModelQueryIdentifier: CpkHasManyUnidirectionalParent.MODEL_IDENTIFIER, - associatedModelType: CpkHasManyUnidirectionalChildImplicit.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: - CpkHasManyUnidirectionalChildImplicit.MODEL_IDENTIFIER, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: CpkHasManyUnidirectionalParent.classType, + rootModels: rootModels, + rootModelQueryIdentifier: + CpkHasManyUnidirectionalParent.MODEL_IDENTIFIER, + associatedModelType: CpkHasManyUnidirectionalChildImplicit.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: + CpkHasManyUnidirectionalChildImplicit.MODEL_IDENTIFIER, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_many_to_many_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_many_to_many_test.dart index ab4cfbbad4..0841859f22 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_many_to_many_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_many_to_many_test.dart @@ -33,23 +33,24 @@ void main() { ]; var tags = [ CpkManyToManyTag(label: 'many to many tag 1'), - CpkManyToManyTag(label: 'many to maby tag 2') + CpkManyToManyTag(label: 'many to maby tag 2'), ]; var postTags = [ CpkPostTags(cpkManyToManyPost: posts[0], cpkManyToManyTag: tags[0]), CpkPostTags(cpkManyToManyPost: posts[0], cpkManyToManyTag: tags[0]), CpkPostTags(cpkManyToManyPost: posts[1], cpkManyToManyTag: tags[1]), - CpkPostTags(cpkManyToManyPost: posts[1], cpkManyToManyTag: tags[1]) + CpkPostTags(cpkManyToManyPost: posts[1], cpkManyToManyTag: tags[1]), ]; late Future>> - postModelEventsGetter; + postModelEventsGetter; late Future>> tagModelEventsGetter; late Future>> postTagsModelEventsGetter; setUpAll(() async { await configureDataStore( - enableCloudSync: enableCloudSync, - modelProvider: ModelProvider.instance); + enableCloudSync: enableCloudSync, + modelProvider: ModelProvider.instance, + ); postModelEventsGetter = createObservedEventsGetter( CpkManyToManyPost.classType, @@ -88,8 +89,9 @@ void main() { } } - var queriedPosts = - await Amplify.DataStore.query(CpkManyToManyPost.classType); + var queriedPosts = await Amplify.DataStore.query( + CpkManyToManyPost.classType, + ); expect(queriedPosts, containsAll(posts)); }); @@ -106,8 +108,9 @@ void main() { await Amplify.DataStore.save(tag); } } - var queriedTags = - await Amplify.DataStore.query(CpkManyToManyTag.classType); + var queriedTags = await Amplify.DataStore.query( + CpkManyToManyTag.classType, + ); expect(queriedTags, containsAll(tags)); }); @@ -125,8 +128,9 @@ void main() { } } - var queriedPostTags = - await Amplify.DataStore.query(CpkPostTags.classType); + var queriedPostTags = await Amplify.DataStore.query( + CpkPostTags.classType, + ); expect(queriedPostTags, containsAll(postTags)); }); @@ -143,11 +147,14 @@ void main() { testWidgets('observe postTags', (WidgetTester tester) async { var events = await postTagsModelEventsGetter; expectObservedEventsToMatchModels( - events: events, referenceModels: postTags); + events: events, + referenceModels: postTags, + ); }); - testWidgets('delete post (cascade delete associated postTag)', - (WidgetTester tester) async { + testWidgets('delete post (cascade delete associated postTag)', ( + WidgetTester tester, + ) async { var deletedPost = posts[0]; var deletedPostTags = postTags.getRange(0, 2).toList(); @@ -165,17 +172,20 @@ void main() { await Amplify.DataStore.delete(deletedPost); } - var queriedPosts = - await Amplify.DataStore.query(CpkManyToManyPost.classType); + var queriedPosts = await Amplify.DataStore.query( + CpkManyToManyPost.classType, + ); expect(queriedPosts, isNot(contains(deletedPost))); - var queriedPostTags = - await Amplify.DataStore.query(CpkPostTags.classType); + var queriedPostTags = await Amplify.DataStore.query( + CpkPostTags.classType, + ); expect(queriedPostTags, isNot(containsAll(deletedPostTags))); }); - testWidgets('delete tag (cascade delete associated postTag)', - (WidgetTester tester) async { + testWidgets('delete tag (cascade delete associated postTag)', ( + WidgetTester tester, + ) async { var deletedTag = tags[1]; var deletedPostTags = postTags.getRange(2, postTags.length).toList(); @@ -193,12 +203,14 @@ void main() { await Amplify.DataStore.delete(deletedTag); } - var queriedTags = - await Amplify.DataStore.query(CpkManyToManyTag.classType); + var queriedTags = await Amplify.DataStore.query( + CpkManyToManyTag.classType, + ); expect(queriedTags, isNot(contains(deletedTag))); - var queriedPostTags = - await Amplify.DataStore.query(CpkPostTags.classType); + var queriedPostTags = await Amplify.DataStore.query( + CpkPostTags.classType, + ); expect(queriedPostTags, isNot(containsAll(deletedPostTags))); }); @@ -216,8 +228,9 @@ void main() { await Amplify.DataStore.delete(deletedPost); } - var queriedPosts = - await Amplify.DataStore.query(CpkManyToManyPost.classType); + var queriedPosts = await Amplify.DataStore.query( + CpkManyToManyPost.classType, + ); expect(queriedPosts, isNot(contains(deletedPost))); }); @@ -235,8 +248,9 @@ void main() { await Amplify.DataStore.delete(deletedTag); } - var queriedTags = - await Amplify.DataStore.query(CpkManyToManyTag.classType); + var queriedTags = await Amplify.DataStore.query( + CpkManyToManyTag.classType, + ); expect(queriedTags, isNot(contains(deletedTag))); }); }); diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_custom_id_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_custom_id_test.dart index f38082d40f..87a0fc080e 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_custom_id_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_custom_id_test.dart @@ -13,49 +13,50 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'Bidirectional one-one (child refers parent with explicit fields, parent has custom id)', - () { - // schema - // type CpkOneToOneBidirectionalParent @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // explicitChild: CpkOneToOneBidirectionalChildExplicit @hasOne - // } - // - // type CpkOneToOneBidirectionalChildExplicit @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // belongsToParentID: ID - // belongsToParentName: String - // belongsToParent: CpkOneToOneBidirectionalParent - // @belongsTo(fields: ["belongsToParentID", "belongsToParentName"]) - // } - final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [ - CpkOneToOneBidirectionalParentCD( - customId: UUID.getUUID(), - name: "the parent", - ) - ]; - var associatedModels = [ - CpkOneToOneBidirectionalChildExplicitCD( - name: 'belongs to child (explicit)', - belongsToParent: rootModels.first, - ) - ]; + 'Bidirectional one-one (child refers parent with explicit fields, parent has custom id)', + () { + // schema + // type CpkOneToOneBidirectionalParent @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // explicitChild: CpkOneToOneBidirectionalChildExplicit @hasOne + // } + // + // type CpkOneToOneBidirectionalChildExplicit @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // belongsToParentID: ID + // belongsToParentName: String + // belongsToParent: CpkOneToOneBidirectionalParent + // @belongsTo(fields: ["belongsToParentID", "belongsToParentName"]) + // } + final enableCloudSync = shouldEnableCloudSync(); + var rootModels = [ + CpkOneToOneBidirectionalParentCD( + customId: UUID.getUUID(), + name: "the parent", + ), + ]; + var associatedModels = [ + CpkOneToOneBidirectionalChildExplicitCD( + name: 'belongs to child (explicit)', + belongsToParent: rootModels.first, + ), + ]; - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: CpkOneToOneBidirectionalParentCD.classType, - rootModels: rootModels, - rootModelQueryIdentifier: - CpkOneToOneBidirectionalParentCD.MODEL_IDENTIFIER, - associatedModelType: CpkOneToOneBidirectionalChildExplicitCD.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: - CpkOneToOneBidirectionalChildExplicitCD.MODEL_IDENTIFIER, - supportCascadeDelete: true, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: CpkOneToOneBidirectionalParentCD.classType, + rootModels: rootModels, + rootModelQueryIdentifier: + CpkOneToOneBidirectionalParentCD.MODEL_IDENTIFIER, + associatedModelType: CpkOneToOneBidirectionalChildExplicitCD.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: + CpkOneToOneBidirectionalChildExplicitCD.MODEL_IDENTIFIER, + supportCascadeDelete: true, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_test.dart index 96a6ea3b07..1af74a1097 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_explicit_belongs_to_test.dart @@ -28,16 +28,12 @@ void main() { // @belongsTo(fields: ["belongsToParentID", "belongsToParentName"]) // } final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [ - CpkOneToOneBidirectionalParentID( - name: "the parent", - ) - ]; + var rootModels = [CpkOneToOneBidirectionalParentID(name: "the parent")]; var associatedModels = [ CpkOneToOneBidirectionalChildExplicitID( name: 'belongs to child (explicit)', belongsToParent: rootModels.first, - ) + ), ]; testRootAndAssociatedModelsRelationship( diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_custom_id_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_custom_id_test.dart index b8c90a8257..ea37e64544 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_custom_id_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_custom_id_test.dart @@ -13,60 +13,61 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'Bidirectional one-one (child refers parent with implicit fields, parent has custom id)', - () { - // schema - // type CpkOneToOneBidirectionalParent @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // implicitChild: CpkOneToOneBidirectionalChildImplicit @hasOne - // } - // - // type CpkOneToOneBidirectionalChildImplicit @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // belongsToParent: CpkOneToOneBidirectionalParent @belongsTo - // } - final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [ - CpkOneToOneBidirectionalParentCD( - customId: UUID.getUUID(), - name: "the parent", - ) - ]; - var associatedModels = [ - CpkOneToOneBidirectionalChildImplicitCD( - name: 'belongs to child (explicit)', - belongsToParent: rootModels.first, - ) - ]; - var associatedModelQueryPredicates = [ - CpkOneToOneBidirectionalChildImplicitCD.NAME.eq( - associatedModels.first.name, - ), - ]; - var associatedModelNeQueryPredicates = [ - CpkOneToOneBidirectionalChildImplicitCD.NAME.ne( - associatedModels.first.name, - ), - ]; + 'Bidirectional one-one (child refers parent with implicit fields, parent has custom id)', + () { + // schema + // type CpkOneToOneBidirectionalParent @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // implicitChild: CpkOneToOneBidirectionalChildImplicit @hasOne + // } + // + // type CpkOneToOneBidirectionalChildImplicit @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // belongsToParent: CpkOneToOneBidirectionalParent @belongsTo + // } + final enableCloudSync = shouldEnableCloudSync(); + var rootModels = [ + CpkOneToOneBidirectionalParentCD( + customId: UUID.getUUID(), + name: "the parent", + ), + ]; + var associatedModels = [ + CpkOneToOneBidirectionalChildImplicitCD( + name: 'belongs to child (explicit)', + belongsToParent: rootModels.first, + ), + ]; + var associatedModelQueryPredicates = [ + CpkOneToOneBidirectionalChildImplicitCD.NAME.eq( + associatedModels.first.name, + ), + ]; + var associatedModelNeQueryPredicates = [ + CpkOneToOneBidirectionalChildImplicitCD.NAME.ne( + associatedModels.first.name, + ), + ]; - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: CpkOneToOneBidirectionalParentCD.classType, - rootModels: rootModels, - rootModelQueryIdentifier: - CpkOneToOneBidirectionalParentCD.MODEL_IDENTIFIER, - associatedModelType: CpkOneToOneBidirectionalChildImplicitCD.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: - CpkOneToOneBidirectionalChildImplicitCD.MODEL_IDENTIFIER, - supportCascadeDelete: true, - enableCloudSync: enableCloudSync, - associatedModelQueryPredicates: associatedModelQueryPredicates, - associatedModelQueryNePredicates: associatedModelNeQueryPredicates, - verifyBelongsToPopulating: true, - testNeOperationOnBelongsTo: true, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: CpkOneToOneBidirectionalParentCD.classType, + rootModels: rootModels, + rootModelQueryIdentifier: + CpkOneToOneBidirectionalParentCD.MODEL_IDENTIFIER, + associatedModelType: CpkOneToOneBidirectionalChildImplicitCD.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: + CpkOneToOneBidirectionalChildImplicitCD.MODEL_IDENTIFIER, + supportCascadeDelete: true, + enableCloudSync: enableCloudSync, + associatedModelQueryPredicates: associatedModelQueryPredicates, + associatedModelQueryNePredicates: associatedModelNeQueryPredicates, + verifyBelongsToPopulating: true, + testNeOperationOnBelongsTo: true, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_test.dart index 249dcaf733..d04efbb9f9 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_bidirectional_implicit_belongs_to_test.dart @@ -25,16 +25,12 @@ void main() { // belongsToParent: CpkOneToOneBidirectionalParent @belongsTo // } final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [ - CpkOneToOneBidirectionalParentID( - name: "the parent", - ) - ]; + var rootModels = [CpkOneToOneBidirectionalParentID(name: "the parent")]; var associatedModels = [ CpkOneToOneBidirectionalChildImplicitID( name: 'belongs to child (implicit)', belongsToParent: rootModels.first, - ) + ), ]; testRootAndAssociatedModelsRelationship( diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_explicit_child_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_explicit_child_test.dart index 38d18a82f5..371c2cb94a 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_explicit_child_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_explicit_child_test.dart @@ -12,44 +12,46 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'One-to-one unidirectional (parent refers to child with explicit connection field)', - () { - // type CpkHasOneUnidirectionalParent @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // explicitChildID: ID - // explicitChildName: String - // explicitChild: CpkHasOneUnidirectionalChild - // @hasOne(fields: ["explicitChildID", "explicitChildName"]) - // } - // - // type CpkHasOneUnidirectionalChild @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // } + 'One-to-one unidirectional (parent refers to child with explicit connection field)', + () { + // type CpkHasOneUnidirectionalParent @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // explicitChildID: ID + // explicitChildName: String + // explicitChild: CpkHasOneUnidirectionalChild + // @hasOne(fields: ["explicitChildID", "explicitChildName"]) + // } + // + // type CpkHasOneUnidirectionalChild @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // } - final enableCloudSync = shouldEnableCloudSync(); - var associatedModels = [CpkHasOneUnidirectionalChild(name: 'child')]; - // Currently with @hasOne, parent -> child relationship is created - // by assign child.id to the connection field of the parent - var rootModels = [ - CpkHasOneUnidirectionalParent( - name: 'HasOne (explicit)', - explicitChildID: associatedModels.first.id, - explicitChildName: associatedModels.first.name, - ), - ]; + final enableCloudSync = shouldEnableCloudSync(); + var associatedModels = [CpkHasOneUnidirectionalChild(name: 'child')]; + // Currently with @hasOne, parent -> child relationship is created + // by assign child.id to the connection field of the parent + var rootModels = [ + CpkHasOneUnidirectionalParent( + name: 'HasOne (explicit)', + explicitChildID: associatedModels.first.id, + explicitChildName: associatedModels.first.name, + ), + ]; - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: CpkHasOneUnidirectionalParent.classType, - rootModels: rootModels, - rootModelQueryIdentifier: CpkHasOneUnidirectionalParent.MODEL_IDENTIFIER, - associatedModelType: CpkHasOneUnidirectionalChild.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: - CpkHasOneUnidirectionalChild.MODEL_IDENTIFIER, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: CpkHasOneUnidirectionalParent.classType, + rootModels: rootModels, + rootModelQueryIdentifier: + CpkHasOneUnidirectionalParent.MODEL_IDENTIFIER, + associatedModelType: CpkHasOneUnidirectionalChild.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: + CpkHasOneUnidirectionalChild.MODEL_IDENTIFIER, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_implicit_child_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_implicit_child_test.dart index 8a37346c3d..5b350fa4a8 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_implicit_child_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_one_to_one_unidirectional_implicit_child_test.dart @@ -12,43 +12,46 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'One-to-one unidirectional (parent refers to child with explicit connection field)', - () { - // schema - // type CpkHasOneUnidirectionalParent @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // implicitChild: CpkHasOneUnidirectionalChild @hasOne - // } - // - // type CpkHasOneUnidirectionalChild @model { - // id: ID! @primaryKey(sortKeyFields: ["name"]) - // name: String! - // } + 'One-to-one unidirectional (parent refers to child with explicit connection field)', + () { + // schema + // type CpkHasOneUnidirectionalParent @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // implicitChild: CpkHasOneUnidirectionalChild @hasOne + // } + // + // type CpkHasOneUnidirectionalChild @model { + // id: ID! @primaryKey(sortKeyFields: ["name"]) + // name: String! + // } - final enableCloudSync = shouldEnableCloudSync(); - var associatedModels = [CpkHasOneUnidirectionalChild(name: 'child')]; - // Currently with @hasOne, parent -> child relationship is created - // by assign child.id to the connection field of the parent - var rootModels = [ - CpkHasOneUnidirectionalParent( - name: 'HasOne (explicit)', - cpkHasOneUnidirectionalParentImplicitChildId: associatedModels.first.id, - cpkHasOneUnidirectionalParentImplicitChildName: - associatedModels.first.name, - ) - ]; + final enableCloudSync = shouldEnableCloudSync(); + var associatedModels = [CpkHasOneUnidirectionalChild(name: 'child')]; + // Currently with @hasOne, parent -> child relationship is created + // by assign child.id to the connection field of the parent + var rootModels = [ + CpkHasOneUnidirectionalParent( + name: 'HasOne (explicit)', + cpkHasOneUnidirectionalParentImplicitChildId: + associatedModels.first.id, + cpkHasOneUnidirectionalParentImplicitChildName: + associatedModels.first.name, + ), + ]; - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: CpkHasOneUnidirectionalParent.classType, - rootModels: rootModels, - rootModelQueryIdentifier: CpkHasOneUnidirectionalParent.MODEL_IDENTIFIER, - associatedModelType: CpkHasOneUnidirectionalChild.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: - CpkHasOneUnidirectionalChild.MODEL_IDENTIFIER, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: CpkHasOneUnidirectionalParent.classType, + rootModels: rootModels, + rootModelQueryIdentifier: + CpkHasOneUnidirectionalParent.MODEL_IDENTIFIER, + associatedModelType: CpkHasOneUnidirectionalChild.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: + CpkHasOneUnidirectionalChild.MODEL_IDENTIFIER, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_query_relation_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_query_relation_test.dart index 1ed5b26087..7f24bdd14e 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_query_relation_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/cpk_query_relation_test.dart @@ -12,7 +12,7 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); var rootModels = [ - CpkHasManyParentBidirectionalExplicit(name: 'has many parent (explicit)') + CpkHasManyParentBidirectionalExplicit(name: 'has many parent (explicit)'), ]; var associatedModels = List.generate( 5, @@ -25,7 +25,9 @@ void main() { group('Query child models by the parent model', () { setUpAll(() async { await configureDataStore( - enableCloudSync: false, modelProvider: ModelProvider.instance); + enableCloudSync: false, + modelProvider: ModelProvider.instance, + ); for (var parent in rootModels) await Amplify.DataStore.save(parent); for (var child in associatedModels) await Amplify.DataStore.save(child); diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_explicit_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_explicit_test.dart index f54de4f382..e57d0ff0d6 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_explicit_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_explicit_test.dart @@ -29,7 +29,7 @@ void main() { // } final enableCloudSync = shouldEnableCloudSync(); var rootModels = [ - HasManyParentBiDirectionalExplicit(name: 'has many parent (explicit)') + HasManyParentBiDirectionalExplicit(name: 'has many parent (explicit)'), ]; var associatedModels = List.generate( 5, @@ -38,12 +38,14 @@ void main() { hasManyParent: rootModels.first, ), ); - var associatedModelQueryPredicates = associatedModels - .map( - (associatedModel) => - HasManyChildBiDirectionalExplicit.NAME.eq(associatedModel.name), - ) - .toList(); + var associatedModelQueryPredicates = + associatedModels + .map( + (associatedModel) => HasManyChildBiDirectionalExplicit.NAME.eq( + associatedModel.name, + ), + ) + .toList(); testRootAndAssociatedModelsRelationship( modelProvider: ModelProvider.instance, diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_implicit_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_implicit_test.dart index 5a14e07e73..5722c1d067 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_implicit_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_bidirectional_implicit_test.dart @@ -26,9 +26,7 @@ void main() { // } final enableCloudSync = shouldEnableCloudSync(); var rootModels = [ - HasManyParentBiDirectionalImplicit( - name: 'has many parent (explicit)', - ) + HasManyParentBiDirectionalImplicit(name: 'has many parent (explicit)'), ]; var associatedModels = List.generate( 5, @@ -37,12 +35,14 @@ void main() { hasManyParent: rootModels.first, ), ); - var associatedModelQueryPredicates = associatedModels - .map( - (associatedModel) => - HasManyChildBiDirectionalImplicit.NAME.eq(associatedModel.name), - ) - .toList(); + var associatedModelQueryPredicates = + associatedModels + .map( + (associatedModel) => HasManyChildBiDirectionalImplicit.NAME.eq( + associatedModel.name, + ), + ) + .toList(); testRootAndAssociatedModelsRelationship( modelProvider: ModelProvider.instance, diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_explicit_parent_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_explicit_parent_test.dart index 43e972f6b8..b0d8c11875 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_explicit_parent_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_explicit_parent_test.dart @@ -12,39 +12,40 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'HasMany (parent refers to children with explicit connection field and indexName)', - () { - // schema - // type HasManyParent @model { - // id: ID! - // name: String - // explicitChildren: [HasManyChildExplicit] - // @hasMany(indexName: "byHasManyParent", fields: ["id"]) - // } - // type HasManyChildExplicit @model { - // id: ID! - // name: String - // hasManyParentID: ID! @index(name: "byHasManyParent", sortKeyFields: ["name"]) - // } - final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [HasManyParent(name: 'has many parent (explicit)')]; - var associatedModels = List.generate( - 5, - (i) => HasManyChildExplicit( - name: 'has many child $i (explicit)', - hasManyParentID: rootModels.first.id, - ), - ); + 'HasMany (parent refers to children with explicit connection field and indexName)', + () { + // schema + // type HasManyParent @model { + // id: ID! + // name: String + // explicitChildren: [HasManyChildExplicit] + // @hasMany(indexName: "byHasManyParent", fields: ["id"]) + // } + // type HasManyChildExplicit @model { + // id: ID! + // name: String + // hasManyParentID: ID! @index(name: "byHasManyParent", sortKeyFields: ["name"]) + // } + final enableCloudSync = shouldEnableCloudSync(); + var rootModels = [HasManyParent(name: 'has many parent (explicit)')]; + var associatedModels = List.generate( + 5, + (i) => HasManyChildExplicit( + name: 'has many child $i (explicit)', + hasManyParentID: rootModels.first.id, + ), + ); - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: HasManyParent.classType, - rootModels: rootModels, - rootModelQueryIdentifier: HasManyParent.MODEL_IDENTIFIER, - associatedModelType: HasManyChildExplicit.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: HasManyChildExplicit.MODEL_IDENTIFIER, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: HasManyParent.classType, + rootModels: rootModels, + rootModelQueryIdentifier: HasManyParent.MODEL_IDENTIFIER, + associatedModelType: HasManyChildExplicit.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: HasManyChildExplicit.MODEL_IDENTIFIER, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_implicit_parent_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_implicit_parent_test.dart index 27df9212e0..d9b78ad19d 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_implicit_parent_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_many_implicit_parent_test.dart @@ -11,37 +11,39 @@ import 'models/has_many/ModelProvider.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - group('HasMany (parent refers to children with implicit connection field)', - () { - // schema - // type HasManyParent @model { - // id: ID! - // name: String - // implicitChildren: [HasManyChild] @hasMany - // } - // type HasManyChildImplicit @model { - // id: ID! - // name: String - // } - final enableCloudSync = shouldEnableCloudSync(); - var rootModels = [HasManyParent(name: 'has many parent (implicit)')]; - var associatedModels = List.generate( - 5, - (i) => HasManyChildImplicit( - name: 'has many child $i (implicit)', - hasManyParentImplicitChildrenId: rootModels.first.id, - ), - ); + group( + 'HasMany (parent refers to children with implicit connection field)', + () { + // schema + // type HasManyParent @model { + // id: ID! + // name: String + // implicitChildren: [HasManyChild] @hasMany + // } + // type HasManyChildImplicit @model { + // id: ID! + // name: String + // } + final enableCloudSync = shouldEnableCloudSync(); + var rootModels = [HasManyParent(name: 'has many parent (implicit)')]; + var associatedModels = List.generate( + 5, + (i) => HasManyChildImplicit( + name: 'has many child $i (implicit)', + hasManyParentImplicitChildrenId: rootModels.first.id, + ), + ); - testRootAndAssociatedModelsRelationship( - modelProvider: ModelProvider.instance, - rootModelType: HasManyParent.classType, - rootModels: rootModels, - rootModelQueryIdentifier: HasManyParent.MODEL_IDENTIFIER, - associatedModelType: HasManyChildImplicit.classType, - associatedModels: associatedModels, - associatedModelQueryIdentifier: HasManyChildImplicit.MODEL_IDENTIFIER, - enableCloudSync: enableCloudSync, - ); - }); + testRootAndAssociatedModelsRelationship( + modelProvider: ModelProvider.instance, + rootModelType: HasManyParent.classType, + rootModels: rootModels, + rootModelQueryIdentifier: HasManyParent.MODEL_IDENTIFIER, + associatedModelType: HasManyChildImplicit.classType, + associatedModels: associatedModels, + associatedModelQueryIdentifier: HasManyChildImplicit.MODEL_IDENTIFIER, + enableCloudSync: enableCloudSync, + ); + }, + ); } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_explicit_child_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_explicit_child_test.dart index 07058cdada..7a86d699c0 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_explicit_child_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_explicit_child_test.dart @@ -29,7 +29,9 @@ void main() { // by assign child.id to the connection field of the parent var rootModels = [ HasOneParent( - name: 'HasOne (explicit)', explicitChildID: associatedModels.first.id) + name: 'HasOne (explicit)', + explicitChildID: associatedModels.first.id, + ), ]; testRootAndAssociatedModelsRelationship( diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_implicit_child_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_implicit_child_test.dart index 9f15064784..e374df1ec1 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_implicit_child_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/has_one_implicit_child_test.dart @@ -32,7 +32,7 @@ void main() { HasOneParent( name: 'HasOne (implicit)', hasOneParentImplicitChildId: associatedModels.first.id, - ) + ), ]; testRootAndAssociatedModelsRelationship( diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/many_to_many_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/many_to_many_test.dart index e275b16643..d09b3a4ed9 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/many_to_many_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/many_to_many_test.dart @@ -33,13 +33,13 @@ void main() { ]; var tags = [ Tag(label: 'many to many tag 1'), - Tag(label: 'many to maby tag 2') + Tag(label: 'many to maby tag 2'), ]; var postTags = [ PostTags(post: posts[0], tag: tags[0]), PostTags(post: posts[0], tag: tags[0]), PostTags(post: posts[1], tag: tags[1]), - PostTags(post: posts[1], tag: tags[1]) + PostTags(post: posts[1], tag: tags[1]), ]; late Future>> postModelEventsGetter; late Future>> tagModelEventsGetter; @@ -47,8 +47,9 @@ void main() { setUpAll(() async { await configureDataStore( - enableCloudSync: enableCloudSync, - modelProvider: ModelProvider.instance); + enableCloudSync: enableCloudSync, + modelProvider: ModelProvider.instance, + ); postModelEventsGetter = createObservedEventsGetter( Post.classType, @@ -139,11 +140,14 @@ void main() { testWidgets('observe postTags', (WidgetTester tester) async { var events = await postTagsModelEventsGetter; expectObservedEventsToMatchModels( - events: events, referenceModels: postTags); + events: events, + referenceModels: postTags, + ); }); - testWidgets('delete post (cascade delete associated postTag)', - (WidgetTester tester) async { + testWidgets('delete post (cascade delete associated postTag)', ( + WidgetTester tester, + ) async { var deletedPost = posts[0]; var deletedPostTags = postTags.getRange(0, 2).toList(); @@ -168,8 +172,9 @@ void main() { expect(queriedPostTags, isNot(containsAll(deletedPostTags))); }); - testWidgets('delete tag (cascade delete associated postTag)', - (WidgetTester tester) async { + testWidgets('delete tag (cascade delete associated postTag)', ( + WidgetTester tester, + ) async { var deletedTag = tags[1]; var deletedPostTags = postTags.getRange(2, postTags.length).toList(); diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/auth/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/auth/ModelProvider.dart index e01ff2b85e..0e9c56c492 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/auth/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/auth/ModelProvider.dart @@ -49,8 +49,8 @@ class ModelProvider implements amplify_core.ModelProviderInterface { return PrivateTodo.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_custom_pk_model_operation/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_custom_pk_model_operation/ModelProvider.dart index bedf13d2d7..0f86948161 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_custom_pk_model_operation/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_custom_pk_model_operation/ModelProvider.dart @@ -17,9 +17,7 @@ class ModelProvider implements ModelProviderInterface { @override String version = "f80fece878bf91a76f44577fe599b120"; @override - List modelSchemas = [ - CpkInventory.schema, - ]; + List modelSchemas = [CpkInventory.schema]; static final ModelProvider _instance = ModelProvider(); @override List customTypeSchemas = []; @@ -32,8 +30,8 @@ class ModelProvider implements ModelProviderInterface { return CpkInventory.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_model_operation/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_model_operation/ModelProvider.dart index 2c97747249..ec8e338634 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_model_operation/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/basic_model_operation/ModelProvider.dart @@ -30,7 +30,7 @@ class ModelProvider implements ModelProviderInterface { Comment.schema, Post.schema, PostTags.schema, - Tag.schema + Tag.schema, ]; static final ModelProvider _instance = ModelProvider(); @override @@ -52,8 +52,8 @@ class ModelProvider implements ModelProviderInterface { return Tag.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/belongs_to/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/belongs_to/ModelProvider.dart index 4bcc1758c4..17b65f580e 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/belongs_to/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/belongs_to/ModelProvider.dart @@ -42,8 +42,8 @@ class ModelProvider implements ModelProviderInterface { return BelongsToParent.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_bidirectional/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_bidirectional/ModelProvider.dart index a8c1303fc7..a91480af01 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_bidirectional/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_bidirectional/ModelProvider.dart @@ -47,8 +47,8 @@ class ModelProvider implements ModelProviderInterface { return CpkHasManyChildBidirectionalImplicit.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_unidirectional/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_unidirectional/ModelProvider.dart index 87470ab127..80d3e914d3 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_unidirectional/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_has_many_unidirectional/ModelProvider.dart @@ -42,8 +42,8 @@ class ModelProvider implements ModelProviderInterface { return CpkHasManyUnidirectionalChildExplicit.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_many_to_many/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_many_to_many/ModelProvider.dart index efeb575c22..3aa00b8827 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_many_to_many/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_many_to_many/ModelProvider.dart @@ -42,8 +42,8 @@ class ModelProvider implements ModelProviderInterface { return CpkManyToManyTag.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional/ModelProvider.dart index c9a8ecb07a..273544058d 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional/ModelProvider.dart @@ -42,8 +42,8 @@ class ModelProvider implements ModelProviderInterface { return CpkOneToOneBidirectionalChildImplicitID.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional_custom_id/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional_custom_id/ModelProvider.dart index 522d1d234d..afe798a3f8 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional_custom_id/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_bidirectional_custom_id/ModelProvider.dart @@ -42,8 +42,8 @@ class ModelProvider implements ModelProviderInterface { return CpkOneToOneBidirectionalChildImplicitCD.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_unidirectional/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_unidirectional/ModelProvider.dart index 4a6389ab34..a8a8170165 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_unidirectional/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/cpk_one_to_one_unidirectional/ModelProvider.dart @@ -37,8 +37,8 @@ class ModelProvider implements ModelProviderInterface { return CpkHasOneUnidirectionalChild.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many/ModelProvider.dart index a671fde6a9..3e800c085d 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many/ModelProvider.dart @@ -42,8 +42,8 @@ class ModelProvider implements ModelProviderInterface { return HasManyParent.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many_bidirectional/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many_bidirectional/ModelProvider.dart index ac34130101..453ddc146c 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many_bidirectional/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_many_bidirectional/ModelProvider.dart @@ -47,8 +47,8 @@ class ModelProvider implements ModelProviderInterface { return HasManyParentBiDirectionalImplicit.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_one/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_one/ModelProvider.dart index 031fd24e40..67e7493304 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_one/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/has_one/ModelProvider.dart @@ -35,8 +35,8 @@ class ModelProvider implements ModelProviderInterface { case "ModelWithAppsyncScalarTypes": default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/many_to_many/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/many_to_many/ModelProvider.dart index cf25a744a6..ab3419bf8c 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/many_to_many/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/many_to_many/ModelProvider.dart @@ -30,7 +30,7 @@ class ModelProvider implements ModelProviderInterface { Comment.schema, Post.schema, PostTags.schema, - Tag.schema + Tag.schema, ]; static final ModelProvider _instance = ModelProvider(); @override @@ -50,8 +50,8 @@ class ModelProvider implements ModelProviderInterface { return Tag.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/multi_relationship/ModelProvider.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/multi_relationship/ModelProvider.dart index 51e4c7c511..4f393fd6a9 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/multi_relationship/ModelProvider.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/models/multi_relationship/ModelProvider.dart @@ -42,8 +42,8 @@ class ModelProvider implements ModelProviderInterface { return MultiRelatedRegistration.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/integration_test/separate_integration_tests/multi_relationship_test.dart b/packages/amplify_datastore/example/integration_test/separate_integration_tests/multi_relationship_test.dart index 4c6120aa47..2d222c9921 100644 --- a/packages/amplify_datastore/example/integration_test/separate_integration_tests/multi_relationship_test.dart +++ b/packages/amplify_datastore/example/integration_test/separate_integration_tests/multi_relationship_test.dart @@ -40,10 +40,7 @@ void main() { MultiRelatedMeeting(title: 'test meeting 1'), MultiRelatedMeeting(title: 'test meeting 2'), ]; - var attendees = [ - MultiRelatedAttendee(), - MultiRelatedAttendee(), - ]; + var attendees = [MultiRelatedAttendee(), MultiRelatedAttendee()]; var registrations = [ MultiRelatedRegistration(attendee: attendees[0], meeting: meetings[0]), MultiRelatedRegistration(attendee: attendees[0], meeting: meetings[1]), @@ -51,16 +48,17 @@ void main() { ]; late Future>> - meetingModelEventsGetter; + meetingModelEventsGetter; late Future>> - attendeeModelEventsGetter; + attendeeModelEventsGetter; late Future>> - registrationModelEventsGetter; + registrationModelEventsGetter; setUpAll(() async { await configureDataStore( - enableCloudSync: enableCloudSync, - modelProvider: ModelProvider.instance); + enableCloudSync: enableCloudSync, + modelProvider: ModelProvider.instance, + ); meetingModelEventsGetter = createObservedEventsGetter( MultiRelatedMeeting.classType, @@ -98,8 +96,9 @@ void main() { await Amplify.DataStore.save(meeting); } } - var queriedMeetings = - await Amplify.DataStore.query(MultiRelatedMeeting.classType); + var queriedMeetings = await Amplify.DataStore.query( + MultiRelatedMeeting.classType, + ); expect(queriedMeetings, containsAll(meetings)); }); @@ -116,8 +115,9 @@ void main() { await Amplify.DataStore.save(attendee); } } - var queriedAttendees = - await Amplify.DataStore.query(MultiRelatedAttendee.classType); + var queriedAttendees = await Amplify.DataStore.query( + MultiRelatedAttendee.classType, + ); expect(queriedAttendees, containsAll(attendees)); }); @@ -134,31 +134,39 @@ void main() { await Amplify.DataStore.save(registration); } } - var queriedRegistrations = - await Amplify.DataStore.query(MultiRelatedRegistration.classType); + var queriedRegistrations = await Amplify.DataStore.query( + MultiRelatedRegistration.classType, + ); expect(queriedRegistrations, containsAll(registrations)); }); testWidgets('observe meetings', (WidgetTester tester) async { var events = await meetingModelEventsGetter; expectObservedEventsToMatchModels( - events: events, referenceModels: meetings); + events: events, + referenceModels: meetings, + ); }); testWidgets('observe attendees', (WidgetTester tester) async { var events = await attendeeModelEventsGetter; expectObservedEventsToMatchModels( - events: events, referenceModels: attendees); + events: events, + referenceModels: attendees, + ); }); testWidgets('observe registrations', (WidgetTester tester) async { var events = await registrationModelEventsGetter; expectObservedEventsToMatchModels( - events: events, referenceModels: registrations); + events: events, + referenceModels: registrations, + ); }); - testWidgets('delete meeting (cascade delete associated registration)', - (WidgetTester tester) async { + testWidgets('delete meeting (cascade delete associated registration)', ( + WidgetTester tester, + ) async { var deletedMeeting = meetings[0]; // cascade delete registration[0] var deletedRegistration = registrations[0]; @@ -176,17 +184,20 @@ void main() { await Amplify.DataStore.delete(deletedMeeting); } - var queriedMeetings = - await Amplify.DataStore.query(MultiRelatedMeeting.classType); + var queriedMeetings = await Amplify.DataStore.query( + MultiRelatedMeeting.classType, + ); expect(queriedMeetings, isNot(contains(deletedMeeting))); - var queriedRegistrations = - await Amplify.DataStore.query(MultiRelatedRegistration.classType); + var queriedRegistrations = await Amplify.DataStore.query( + MultiRelatedRegistration.classType, + ); expect(queriedRegistrations, isNot(contains(deletedRegistration))); }); - testWidgets('delete attendee (cascade delete associated registration)', - (WidgetTester tester) async { + testWidgets('delete attendee (cascade delete associated registration)', ( + WidgetTester tester, + ) async { var deletedAttendee = attendees[0]; var deletedRegistration = registrations[1]; @@ -204,12 +215,14 @@ void main() { await Amplify.DataStore.delete(deletedAttendee); } - var queriedAttendees = - await Amplify.DataStore.query(MultiRelatedAttendee.classType); + var queriedAttendees = await Amplify.DataStore.query( + MultiRelatedAttendee.classType, + ); expect(queriedAttendees, isNot(contains(deletedAttendee))); - var queriedRegistrations = - await Amplify.DataStore.query(MultiRelatedRegistration.classType); + var queriedRegistrations = await Amplify.DataStore.query( + MultiRelatedRegistration.classType, + ); expect(queriedRegistrations, isNot(contains(deletedRegistration))); }); @@ -231,12 +244,14 @@ void main() { await Amplify.DataStore.delete(deletedMeeting); } - var queriedMeetings = - await Amplify.DataStore.query(MultiRelatedMeeting.classType); + var queriedMeetings = await Amplify.DataStore.query( + MultiRelatedMeeting.classType, + ); expect(queriedMeetings, isNot(contains(deletedMeeting))); - var queriedRegistrations = - await Amplify.DataStore.query(MultiRelatedRegistration.classType); + var queriedRegistrations = await Amplify.DataStore.query( + MultiRelatedRegistration.classType, + ); expect(queriedRegistrations, isNot(contains(deletedRegistration))); }); @@ -254,8 +269,9 @@ void main() { await Amplify.DataStore.delete(deletedAttendee); } - var queriedAttendees = - await Amplify.DataStore.query(MultiRelatedAttendee.classType); + var queriedAttendees = await Amplify.DataStore.query( + MultiRelatedAttendee.classType, + ); expect(queriedAttendees, isNot(contains(deletedAttendee))); }); }); diff --git a/packages/amplify_datastore/example/integration_test/utils/model_test_operation_utils.dart b/packages/amplify_datastore/example/integration_test/utils/model_test_operation_utils.dart index 5e9203c2b0..ade408b0ca 100644 --- a/packages/amplify_datastore/example/integration_test/utils/model_test_operation_utils.dart +++ b/packages/amplify_datastore/example/integration_test/utils/model_test_operation_utils.dart @@ -7,12 +7,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'model_utils.dart'; import 'setup_utils.dart'; -enum DataStoreOperation { - query, - save, - observe, - delete, -} +enum DataStoreOperation { query, save, observe, delete } /// test standard datastore model operations (save, query, observe, delete) /// @@ -36,29 +31,21 @@ void testModelOperations({ expect(queriedModels, isEmpty); }); - testWidgets( - 'save', - (WidgetTester tester) async { - for (var model in models) { - await Amplify.DataStore.save(model); - } - var queriedModels = await Amplify.DataStore.query(classType); - expect(queriedModels, isNotEmpty); - }, - skip: skips[DataStoreOperation.save], - ); + testWidgets('save', (WidgetTester tester) async { + for (var model in models) { + await Amplify.DataStore.save(model); + } + var queriedModels = await Amplify.DataStore.query(classType); + expect(queriedModels, isNotEmpty); + }, skip: skips[DataStoreOperation.save]); - testWidgets( - 'query', - (WidgetTester tester) async { - var queriedModels = await Amplify.DataStore.query(classType); - expect(queriedModels, isNotEmpty); - for (var model in models) { - expect(queriedModels.contains(model), isTrue); - } - }, - skip: skips[DataStoreOperation.query], - ); + testWidgets('query', (WidgetTester tester) async { + var queriedModels = await Amplify.DataStore.query(classType); + expect(queriedModels, isNotEmpty); + for (var model in models) { + expect(queriedModels.contains(model), isTrue); + } + }, skip: skips[DataStoreOperation.query]); testWidgets( 'observe', @@ -74,15 +61,11 @@ void testModelOperations({ timeout: Timeout(Duration(seconds: 10)), ); - testWidgets( - 'delete', - (WidgetTester tester) async { - for (var model in models) { - await Amplify.DataStore.delete(model); - } - var queriedModels = await Amplify.DataStore.query(classType); - expect(queriedModels, isEmpty); - }, - skip: skips[DataStoreOperation.delete], - ); + testWidgets('delete', (WidgetTester tester) async { + for (var model in models) { + await Amplify.DataStore.delete(model); + } + var queriedModels = await Amplify.DataStore.query(classType); + expect(queriedModels, isEmpty); + }, skip: skips[DataStoreOperation.delete]); } diff --git a/packages/amplify_datastore/example/integration_test/utils/setup_utils.dart b/packages/amplify_datastore/example/integration_test/utils/setup_utils.dart index c883666f28..3b9e70f1af 100644 --- a/packages/amplify_datastore/example/integration_test/utils/setup_utils.dart +++ b/packages/amplify_datastore/example/integration_test/utils/setup_utils.dart @@ -11,8 +11,10 @@ import 'package:amplify_datastore_example/models/ModelProvider.dart'; import 'package:amplify_flutter/amplify_flutter.dart'; import 'package:amplify_integration_test/amplify_integration_test.dart'; -const ENABLE_CLOUD_SYNC = - bool.fromEnvironment('ENABLE_CLOUD_SYNC', defaultValue: false); +const ENABLE_CLOUD_SYNC = bool.fromEnvironment( + 'ENABLE_CLOUD_SYNC', + defaultValue: false, +); const DATASTORE_READY_EVENT_TIMEOUT = const Duration(minutes: 10); const DELAY_TO_CLEAR_DATASTORE = const Duration(seconds: 2); const DELAY_FOR_OBSERVE = const Duration(milliseconds: 100); @@ -71,10 +73,9 @@ Future waitForObserve() async { final blog = Blog(name: 'TEST BLOG - Used to wait for observe to start'); // set up observe subscription and set isObserveSetUp to true when the first update event comes in - Amplify.DataStore.observe(Blog.classType) - .where((event) => event.item.id == blog.id) - .first - .then((event) { + Amplify.DataStore.observe( + Blog.classType, + ).where((event) => event.item.id == blog.id).first.then((event) { isObserveSetUp = true; }); @@ -97,11 +98,13 @@ class DataStoreStarter { late StreamSubscription hubSubscription; Future startDataStore() { - hubSubscription = - Amplify.Hub.listen(HubChannel.DataStore, (DataStoreHubEvent event) { + hubSubscription = Amplify.Hub.listen(HubChannel.DataStore, ( + DataStoreHubEvent event, + ) { if (event.eventName == 'ready') { print( - '🎉🎉🎉DataStore is ready to start running test suites with API sync enabled.🎉🎉🎉'); + '🎉🎉🎉DataStore is ready to start running test suites with API sync enabled.🎉🎉🎉', + ); hubSubscription.cancel(); _completer.complete(); } diff --git a/packages/amplify_datastore/example/integration_test/utils/sort_order_utils.dart b/packages/amplify_datastore/example/integration_test/utils/sort_order_utils.dart index 592f9b466f..9610a1645d 100644 --- a/packages/amplify_datastore/example/integration_test/utils/sort_order_utils.dart +++ b/packages/amplify_datastore/example/integration_test/utils/sort_order_utils.dart @@ -28,30 +28,28 @@ testSortOperations({ } }); - testWidgets( - 'ascending()', - (WidgetTester tester) async { - var actualModels = await Amplify.DataStore.query(classType, - sortBy: [queryField.ascending()]); - expect(actualModels, orderedEquals(ascendingSortedModels)); - }, - skip: skip, - ); + testWidgets('ascending()', (WidgetTester tester) async { + var actualModels = await Amplify.DataStore.query( + classType, + sortBy: [queryField.ascending()], + ); + expect(actualModels, orderedEquals(ascendingSortedModels)); + }, skip: skip); - testWidgets( - 'descending()', - (WidgetTester tester) async { - var actualModels = await Amplify.DataStore.query(classType, - sortBy: [queryField.descending()]); - expect(actualModels, orderedEquals(descendingSortedModels)); - }, - skip: skip, - ); + testWidgets('descending()', (WidgetTester tester) async { + var actualModels = await Amplify.DataStore.query( + classType, + sortBy: [queryField.descending()], + ); + expect(actualModels, orderedEquals(descendingSortedModels)); + }, skip: skip); } /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes.STRINGVALUE], accounting for nulls int sortStringTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.stringValue == null && b.stringValue == null) { return 0; } else if (a.stringValue == null) { @@ -65,7 +63,9 @@ int sortStringTypeModel( /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes.INTVALUE], accounting for nulls int sortIntTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.intValue == null && b.intValue == null) { return 0; } else if (a.intValue == null) { @@ -79,7 +79,9 @@ int sortIntTypeModel( /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes.FLOATVALUE], accounting for nulls int sortFloatTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.floatValue == null && b.floatValue == null) { return 0; } else if (a.floatValue == null) { @@ -93,7 +95,9 @@ int sortFloatTypeModel( /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes.BOOLEANVALUE], accounting for nulls int sortBooleanTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.booleanValue == b.booleanValue) { return 0; } else if (a.booleanValue == null) { @@ -109,7 +113,9 @@ int sortBooleanTypeModel( /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes.AWSDATEVALUE], accounting for nulls int sortAWSDateTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.awsDateValue == null && b.awsDateValue == null) { return 0; } else if (a.awsDateValue == null) { @@ -117,15 +123,17 @@ int sortAWSDateTypeModel( } else if (b.awsDateValue == null) { return 1; } else { - return a.awsDateValue! - .getDateTime() - .compareTo(b.awsDateValue!.getDateTime()); + return a.awsDateValue!.getDateTime().compareTo( + b.awsDateValue!.getDateTime(), + ); } } /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE], accounting for nulls int sortAWSDateTimeTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.awsDateTimeValue == null && b.awsDateTimeValue == null) { return 0; } else if (a.awsDateTimeValue == null) { @@ -133,15 +141,17 @@ int sortAWSDateTimeTypeModel( } else if (b.awsDateTimeValue == null) { return 1; } else { - return a.awsDateTimeValue! - .getDateTimeInUtc() - .compareTo(b.awsDateTimeValue!.getDateTimeInUtc()); + return a.awsDateTimeValue!.getDateTimeInUtc().compareTo( + b.awsDateTimeValue!.getDateTimeInUtc(), + ); } } /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes], accounting for nulls int sortAWSTimeTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.awsTimeValue == null && b.awsTimeValue == null) { return 0; } else if (a.awsTimeValue == null) { @@ -149,15 +159,17 @@ int sortAWSTimeTypeModel( } else if (b.awsTimeValue == null) { return 1; } else { - return a.awsTimeValue! - .getDateTime() - .compareTo(b.awsTimeValue!.getDateTime()); + return a.awsTimeValue!.getDateTime().compareTo( + b.awsTimeValue!.getDateTime(), + ); } } /// sort [ModelWithAppsyncScalarTypes] by [ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE], accounting for nulls int sortAWSTimestampTypeModel( - ModelWithAppsyncScalarTypes a, ModelWithAppsyncScalarTypes b) { + ModelWithAppsyncScalarTypes a, + ModelWithAppsyncScalarTypes b, +) { if (a.awsTimestampValue == null && b.awsTimestampValue == null) { return 0; } else if (a.awsTimestampValue == null) { @@ -165,8 +177,8 @@ int sortAWSTimestampTypeModel( } else if (b.awsTimestampValue == null) { return 1; } else { - return a.awsTimestampValue! - .toSeconds() - .compareTo(b.awsTimestampValue!.toSeconds()); + return a.awsTimestampValue!.toSeconds().compareTo( + b.awsTimestampValue!.toSeconds(), + ); } } diff --git a/packages/amplify_datastore/example/integration_test/utils/test_cloud_synced_model_operation.dart b/packages/amplify_datastore/example/integration_test/utils/test_cloud_synced_model_operation.dart index 5f6a1ee492..f6ac9458f9 100644 --- a/packages/amplify_datastore/example/integration_test/utils/test_cloud_synced_model_operation.dart +++ b/packages/amplify_datastore/example/integration_test/utils/test_cloud_synced_model_operation.dart @@ -8,14 +8,15 @@ import 'package:tuple/tuple.dart'; import 'setup_utils.dart'; import 'wait_for_expected_event_from_hub.dart'; -typedef EventsAssertor = void Function( - List> events); -typedef ModelOperator = Future Function(T model, - {QueryPredicate? where}); +typedef EventsAssertor = + void Function(List> events); +typedef ModelOperator = + Future Function(T model, {QueryPredicate? where}); /// Check each of the [events] is presenting a deleted model. void modelIsDeletedAssertor( - List> events) { + List> events, +) { events.forEach((event) { expect(event.element.deleted, isTrue); }); @@ -23,7 +24,8 @@ void modelIsDeletedAssertor( /// Check each of the [events] is presenting a model that is not deleted. void modelIsNotDeletedAssertor( - List> events) { + List> events, +) { events.forEach((event) { expect(event.element.deleted, isFalse); }); @@ -56,27 +58,29 @@ Future testCloudSyncedModelOperation({ QueryPredicate? associatedModelOperationPredicate, EventsAssertor? associatedModelEventsAssertor, }) async { - final assertingAssociatedModels = associatedModels != null && + final assertingAssociatedModels = + associatedModels != null && associatedModels.isNotEmpty && expectedAssociatedModelVersion != null && associatedModelEventsAssertor != null; - var syncEventsGetters = rootModels - .map( - (rootModel) => getExpectedSubscriptionDataProcessedEvent( - eventMatcher: (event) { - var model = event.element.model; + var syncEventsGetters = + rootModels + .map( + (rootModel) => getExpectedSubscriptionDataProcessedEvent( + eventMatcher: (event) { + var model = event.element.model; - if (model is R) { - return model.modelIdentifier == rootModel.modelIdentifier && - event.element.version == expectedRootModelVersion; - } + if (model is R) { + return model.modelIdentifier == rootModel.modelIdentifier && + event.element.version == expectedRootModelVersion; + } - return false; - }, - ), - ) - .toList(); + return false; + }, + ), + ) + .toList(); if (assertingAssociatedModels) { var associatedModelsSyncedEventsGetters = associatedModels.map( @@ -125,18 +129,22 @@ Future>> createObservedEventsGetter( }) => Amplify.DataStore.observe(modelType) .where((event) => event.eventType == eventType) - .distinct((prev, next) => - prev.eventType == next.eventType && - prev.item.modelIdentifier == next.item.modelIdentifier) + .distinct( + (prev, next) => + prev.eventType == next.eventType && + prev.item.modelIdentifier == next.item.modelIdentifier, + ) .take(take) .toList(); /// A util function runs [testWidgets] to validate [modelSpecs] specified /// models are not in local storage. void expectModelsNotToBeInLocalStorage( - List>> modelSpecs) { - testWidgets('testing models are not in local storage', - (WidgetTester tester) async { + List>> modelSpecs, +) { + testWidgets('testing models are not in local storage', ( + WidgetTester tester, + ) async { for (var modelSpec in modelSpecs) { var modelsInLocalStorage = Amplify.DataStore.query(modelSpec.item1); expect(modelsInLocalStorage, isNot(containsAll(modelSpec.item2))); @@ -257,8 +265,9 @@ void testRootAndAssociatedModelsRelationship({ for (var associatedModel in associatedModels) { final expectedModels = await Amplify.DataStore.query( associatedModelType, - where: - associatedModelQueryIdentifier.eq(associatedModel.modelIdentifier), + where: associatedModelQueryIdentifier.eq( + associatedModel.modelIdentifier, + ), ); expect(expectedModels.length, 1); expect(expectedModels.first, associatedModel); @@ -267,96 +276,108 @@ void testRootAndAssociatedModelsRelationship({ if (verifyBelongsToPopulating && associatedModelQueryPredicates != null) { testWidgets( - 'query associated models can get nested belongs to model populated', - (WidgetTester tester) async { - associatedModels.asMap().forEach((index, associatedModel) async { - final expectedModels = await Amplify.DataStore.query( - associatedModelType, - where: associatedModelQueryPredicates[index], - ); - expectSync(expectedModels.length, 1); - expectSync(expectedModels.first, associatedModel); - }); - }); + 'query associated models can get nested belongs to model populated', + (WidgetTester tester) async { + associatedModels.asMap().forEach((index, associatedModel) async { + final expectedModels = await Amplify.DataStore.query( + associatedModelType, + where: associatedModelQueryPredicates[index], + ); + expectSync(expectedModels.length, 1); + expectSync(expectedModels.first, associatedModel); + }); + }, + ); } if (testNeOperationOnBelongsTo && associatedModelQueryNePredicates != null) { testWidgets( - 'query associated model with ne operator on model identifier should exclude the model from results', - (WidgetTester tester) async { - associatedModels.asMap().forEach((index, associatedModel) async { - final expectedModels = await Amplify.DataStore.query( - associatedModelType, - where: associatedModelQueryNePredicates[index], - ); - expectSync(expectedModels, isNot(contains(associatedModel))); - }); - }); + 'query associated model with ne operator on model identifier should exclude the model from results', + (WidgetTester tester) async { + associatedModels.asMap().forEach((index, associatedModel) async { + final expectedModels = await Amplify.DataStore.query( + associatedModelType, + where: associatedModelQueryNePredicates[index], + ); + expectSync(expectedModels, isNot(contains(associatedModel))); + }); + }, + ); } - testWidgets('observed root models creation events', - (WidgetTester tester) async { + testWidgets('observed root models creation events', ( + WidgetTester tester, + ) async { var events = await observedRootModelsEvents; expectObservedEventsToMatchModels( - events: events, referenceModels: rootModels); + events: events, + referenceModels: rootModels, + ); }); - testWidgets('observed associated models creation events', - (WidgetTester tester) async { + testWidgets('observed associated models creation events', ( + WidgetTester tester, + ) async { var events = await observedAssociatedModelsEvents; expectObservedEventsToMatchModels( - events: events, referenceModels: associatedModels); + events: events, + referenceModels: associatedModels, + ); }); testWidgets( - 'delete root models${supportCascadeDelete ? ' (cascade delete associated models)' : ''}', - (WidgetTester tester) async { - if (enableCloudSync) { - await testCloudSyncedModelOperation( - rootModels: rootModels, - expectedRootModelVersion: 2, - rootModelOperator: Amplify.DataStore.delete, - rootModelEventsAssertor: modelIsDeletedAssertor, - associatedModels: supportCascadeDelete ? associatedModels : null, - expectedAssociatedModelVersion: supportCascadeDelete ? 2 : null, - associatedModelEventsAssertor: - supportCascadeDelete ? modelIsDeletedAssertor : null, - ); - } else { - for (var rootModel in rootModels) { - await Amplify.DataStore.delete(rootModel); - } - } - var queriedRootModels = await Amplify.DataStore.query(rootModelType); - expect(queriedRootModels, isNot(containsAll(rootModels))); - - if (supportCascadeDelete) { - var queriedAssociatedModels = - await Amplify.DataStore.query(associatedModelType); - expect(queriedAssociatedModels, isNot(containsAll(associatedModels))); - } - }); - - if (!supportCascadeDelete) { - testWidgets( - 'delete associated models separately as cascade delete is not support with this relationship', - (WidgetTester tester) async { + 'delete root models${supportCascadeDelete ? ' (cascade delete associated models)' : ''}', + (WidgetTester tester) async { if (enableCloudSync) { await testCloudSyncedModelOperation( - rootModels: associatedModels, + rootModels: rootModels, expectedRootModelVersion: 2, rootModelOperator: Amplify.DataStore.delete, rootModelEventsAssertor: modelIsDeletedAssertor, + associatedModels: supportCascadeDelete ? associatedModels : null, + expectedAssociatedModelVersion: supportCascadeDelete ? 2 : null, + associatedModelEventsAssertor: + supportCascadeDelete ? modelIsDeletedAssertor : null, ); } else { - for (var associatedModel in associatedModels) { - await Amplify.DataStore.delete(associatedModel); + for (var rootModel in rootModels) { + await Amplify.DataStore.delete(rootModel); } } + var queriedRootModels = await Amplify.DataStore.query(rootModelType); + expect(queriedRootModels, isNot(containsAll(rootModels))); - var queriedAssociatedModels = - await Amplify.DataStore.query(associatedModelType); - expect(queriedAssociatedModels, isNot(containsAll(associatedModels))); - }); + if (supportCascadeDelete) { + var queriedAssociatedModels = await Amplify.DataStore.query( + associatedModelType, + ); + expect(queriedAssociatedModels, isNot(containsAll(associatedModels))); + } + }, + ); + + if (!supportCascadeDelete) { + testWidgets( + 'delete associated models separately as cascade delete is not support with this relationship', + (WidgetTester tester) async { + if (enableCloudSync) { + await testCloudSyncedModelOperation( + rootModels: associatedModels, + expectedRootModelVersion: 2, + rootModelOperator: Amplify.DataStore.delete, + rootModelEventsAssertor: modelIsDeletedAssertor, + ); + } else { + for (var associatedModel in associatedModels) { + await Amplify.DataStore.delete(associatedModel); + } + } + + var queriedAssociatedModels = await Amplify.DataStore.query( + associatedModelType, + ); + expect(queriedAssociatedModels, isNot(containsAll(associatedModels))); + }, + ); } } diff --git a/packages/amplify_datastore/example/integration_test/utils/wait_for_expected_event_from_hub.dart b/packages/amplify_datastore/example/integration_test/utils/wait_for_expected_event_from_hub.dart index 855f6f5dbd..77fce4252e 100644 --- a/packages/amplify_datastore/example/integration_test/utils/wait_for_expected_event_from_hub.dart +++ b/packages/amplify_datastore/example/integration_test/utils/wait_for_expected_event_from_hub.dart @@ -21,8 +21,9 @@ class WaitForExpectedEventFromHub { }) : this.timeout = timeout; Future start() { - hubSubscription = - Amplify.Hub.listen(HubChannel.DataStore, (DataStoreHubEvent event) { + hubSubscription = Amplify.Hub.listen(HubChannel.DataStore, ( + DataStoreHubEvent event, + ) { if (event.eventName == this.eventName) { if (this.eventMatcher(event.payload)) { hubSubscription.cancel(); @@ -36,7 +37,7 @@ class WaitForExpectedEventFromHub { } Future - getExpectedSubscriptionDataProcessedEvent({ +getExpectedSubscriptionDataProcessedEvent({ required bool Function(SubscriptionDataProcessedEvent) eventMatcher, }) async { var getter = WaitForExpectedEventFromHub( diff --git a/packages/amplify_datastore/example/lib/main.dart b/packages/amplify_datastore/example/lib/main.dart index 73725bc75f..b4b06040e7 100644 --- a/packages/amplify_datastore/example/lib/main.dart +++ b/packages/amplify_datastore/example/lib/main.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library sample_app; +library; import 'dart:async'; @@ -25,10 +25,7 @@ void main() { runApp(MyApp()); } -final divider = VerticalDivider( - color: Colors.white, - width: 10, -); +final divider = VerticalDivider(color: Colors.white, width: 10); class MyApp extends StatefulWidget { @override @@ -51,8 +48,10 @@ class _MyAppState extends State { datastorePlugin = AmplifyDataStore( modelProvider: ModelProvider.instance, options: DataStorePluginOptions( - errorHandler: ((error) => - {print("Custom ErrorHandler received: " + error.toString())}), + errorHandler: + ((error) => { + print("Custom ErrorHandler received: " + error.toString()), + }), authModeStrategy: AuthModeStrategy.multiAuth, ), ); @@ -68,7 +67,8 @@ class _MyAppState extends State { // await Amplify.configure("{}"); } on AmplifyAlreadyConfiguredException { print( - 'Amplify was already configured. Looks like app restarted on android.'); + 'Amplify was already configured. Looks like app restarted on android.', + ); } setState(() { @@ -81,9 +81,7 @@ class _MyAppState extends State { return Authenticator( child: MaterialApp( title: 'Best DataStore App Ever', - home: NavigatorScaffold( - isAmplifyConfigured: _isAmplifyConfigured, - ), + home: NavigatorScaffold(isAmplifyConfigured: _isAmplifyConfigured), ), ); } diff --git a/packages/amplify_datastore/example/lib/models/BelongsToChildExplicit.dart b/packages/amplify_datastore/example/lib/models/BelongsToChildExplicit.dart index a95aa5cc5c..11945dda87 100644 --- a/packages/amplify_datastore/example/lib/models/BelongsToChildExplicit.dart +++ b/packages/amplify_datastore/example/lib/models/BelongsToChildExplicit.dart @@ -35,7 +35,8 @@ class BelongsToChildExplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -59,19 +60,27 @@ class BelongsToChildExplicit extends amplify_core.Model { return _updatedAt; } - const BelongsToChildExplicit._internal( - {required this.id, name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory BelongsToChildExplicit( - {String? id, String? name, BelongsToParent? belongsToParent}) { + const BelongsToChildExplicit._internal({ + required this.id, + name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory BelongsToChildExplicit({ + String? id, + String? name, + BelongsToParent? belongsToParent, + }) { return BelongsToChildExplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -97,117 +106,152 @@ class BelongsToChildExplicit extends amplify_core.Model { buffer.write("BelongsToChildExplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - BelongsToChildExplicit copyWith( - {String? name, BelongsToParent? belongsToParent}) { + BelongsToChildExplicit copyWith({ + String? name, + BelongsToParent? belongsToParent, + }) { return BelongsToChildExplicit._internal( - id: id, - name: name ?? this.name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name ?? this.name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - BelongsToChildExplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? belongsToParent}) { + BelongsToChildExplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? belongsToParent, + }) { return BelongsToChildExplicit._internal( - id: id, - name: name == null ? this.name : name.value, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name == null ? this.name : name.value, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } BelongsToChildExplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? BelongsToParent.fromJson(new Map.from( - json['belongsToParent']['serializedData'])) - : BelongsToParent.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? BelongsToParent.fromJson( + new Map.from( + json['belongsToParent']['serializedData'], + ), + ) + : BelongsToParent.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - BelongsToChildExplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + BelongsToChildExplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + BelongsToChildExplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'BelongsToParent')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'BelongsToParent', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "BelongsToChildExplicit"; - modelSchemaDefinition.pluralName = "BelongsToChildExplicits"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: BelongsToChildExplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: BelongsToChildExplicit.BELONGSTOPARENT, - isRequired: false, - targetNames: ['belongsToParentID'], - ofModelName: 'BelongsToParent')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "BelongsToChildExplicit"; + modelSchemaDefinition.pluralName = "BelongsToChildExplicits"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: BelongsToChildExplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: BelongsToChildExplicit.BELONGSTOPARENT, + isRequired: false, + targetNames: ['belongsToParentID'], + ofModelName: 'BelongsToParent', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _BelongsToChildExplicitModelType @@ -240,10 +284,10 @@ class BelongsToChildExplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/BelongsToChildImplicit.dart b/packages/amplify_datastore/example/lib/models/BelongsToChildImplicit.dart index 55757c38c5..df4fbd4f1b 100644 --- a/packages/amplify_datastore/example/lib/models/BelongsToChildImplicit.dart +++ b/packages/amplify_datastore/example/lib/models/BelongsToChildImplicit.dart @@ -35,7 +35,8 @@ class BelongsToChildImplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -59,19 +60,27 @@ class BelongsToChildImplicit extends amplify_core.Model { return _updatedAt; } - const BelongsToChildImplicit._internal( - {required this.id, name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory BelongsToChildImplicit( - {String? id, String? name, BelongsToParent? belongsToParent}) { + const BelongsToChildImplicit._internal({ + required this.id, + name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory BelongsToChildImplicit({ + String? id, + String? name, + BelongsToParent? belongsToParent, + }) { return BelongsToChildImplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -97,117 +106,152 @@ class BelongsToChildImplicit extends amplify_core.Model { buffer.write("BelongsToChildImplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - BelongsToChildImplicit copyWith( - {String? name, BelongsToParent? belongsToParent}) { + BelongsToChildImplicit copyWith({ + String? name, + BelongsToParent? belongsToParent, + }) { return BelongsToChildImplicit._internal( - id: id, - name: name ?? this.name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name ?? this.name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - BelongsToChildImplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? belongsToParent}) { + BelongsToChildImplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? belongsToParent, + }) { return BelongsToChildImplicit._internal( - id: id, - name: name == null ? this.name : name.value, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name == null ? this.name : name.value, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } BelongsToChildImplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? BelongsToParent.fromJson(new Map.from( - json['belongsToParent']['serializedData'])) - : BelongsToParent.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? BelongsToParent.fromJson( + new Map.from( + json['belongsToParent']['serializedData'], + ), + ) + : BelongsToParent.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - BelongsToChildImplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + BelongsToChildImplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + BelongsToChildImplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'BelongsToParent')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'BelongsToParent', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "BelongsToChildImplicit"; - modelSchemaDefinition.pluralName = "BelongsToChildImplicits"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: BelongsToChildImplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: BelongsToChildImplicit.BELONGSTOPARENT, - isRequired: false, - targetNames: ['belongsToChildImplicitBelongsToParentId'], - ofModelName: 'BelongsToParent')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "BelongsToChildImplicit"; + modelSchemaDefinition.pluralName = "BelongsToChildImplicits"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: BelongsToChildImplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: BelongsToChildImplicit.BELONGSTOPARENT, + isRequired: false, + targetNames: ['belongsToChildImplicitBelongsToParentId'], + ofModelName: 'BelongsToParent', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _BelongsToChildImplicitModelType @@ -240,10 +284,10 @@ class BelongsToChildImplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/BelongsToParent.dart b/packages/amplify_datastore/example/lib/models/BelongsToParent.dart index 0fe1ee8a8c..9dd93a9ac7 100644 --- a/packages/amplify_datastore/example/lib/models/BelongsToParent.dart +++ b/packages/amplify_datastore/example/lib/models/BelongsToParent.dart @@ -38,7 +38,8 @@ class BelongsToParent extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -74,37 +75,39 @@ class BelongsToParent extends amplify_core.Model { return _belongsToParentExplicitChildId; } - const BelongsToParent._internal( - {required this.id, - name, - implicitChild, - explicitChild, - createdAt, - updatedAt, - belongsToParentImplicitChildId, - belongsToParentExplicitChildId}) - : _name = name, - _implicitChild = implicitChild, - _explicitChild = explicitChild, - _createdAt = createdAt, - _updatedAt = updatedAt, - _belongsToParentImplicitChildId = belongsToParentImplicitChildId, - _belongsToParentExplicitChildId = belongsToParentExplicitChildId; - - factory BelongsToParent( - {String? id, - String? name, - BelongsToChildImplicit? implicitChild, - BelongsToChildExplicit? explicitChild, - String? belongsToParentImplicitChildId, - String? belongsToParentExplicitChildId}) { + const BelongsToParent._internal({ + required this.id, + name, + implicitChild, + explicitChild, + createdAt, + updatedAt, + belongsToParentImplicitChildId, + belongsToParentExplicitChildId, + }) : _name = name, + _implicitChild = implicitChild, + _explicitChild = explicitChild, + _createdAt = createdAt, + _updatedAt = updatedAt, + _belongsToParentImplicitChildId = belongsToParentImplicitChildId, + _belongsToParentExplicitChildId = belongsToParentExplicitChildId; + + factory BelongsToParent({ + String? id, + String? name, + BelongsToChildImplicit? implicitChild, + BelongsToChildExplicit? explicitChild, + String? belongsToParentImplicitChildId, + String? belongsToParentExplicitChildId, + }) { return BelongsToParent._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - implicitChild: implicitChild, - explicitChild: explicitChild, - belongsToParentImplicitChildId: belongsToParentImplicitChildId, - belongsToParentExplicitChildId: belongsToParentExplicitChildId); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + implicitChild: implicitChild, + explicitChild: explicitChild, + belongsToParentImplicitChildId: belongsToParentImplicitChildId, + belongsToParentExplicitChildId: belongsToParentExplicitChildId, + ); } bool equals(Object other) { @@ -135,182 +138,232 @@ class BelongsToParent extends amplify_core.Model { buffer.write("BelongsToParent {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt.format() : "null") + - ", "); - buffer.write("belongsToParentImplicitChildId=" + - "$_belongsToParentImplicitChildId" + - ", "); buffer.write( - "belongsToParentExplicitChildId=" + "$_belongsToParentExplicitChildId"); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null") + ", ", + ); + buffer.write( + "belongsToParentImplicitChildId=" + + "$_belongsToParentImplicitChildId" + + ", ", + ); + buffer.write( + "belongsToParentExplicitChildId=" + "$_belongsToParentExplicitChildId", + ); buffer.write("}"); return buffer.toString(); } - BelongsToParent copyWith( - {String? name, - BelongsToChildImplicit? implicitChild, - BelongsToChildExplicit? explicitChild, - String? belongsToParentImplicitChildId, - String? belongsToParentExplicitChildId}) { + BelongsToParent copyWith({ + String? name, + BelongsToChildImplicit? implicitChild, + BelongsToChildExplicit? explicitChild, + String? belongsToParentImplicitChildId, + String? belongsToParentExplicitChildId, + }) { return BelongsToParent._internal( - id: id, - name: name ?? this.name, - implicitChild: implicitChild ?? this.implicitChild, - explicitChild: explicitChild ?? this.explicitChild, - belongsToParentImplicitChildId: belongsToParentImplicitChildId ?? - this.belongsToParentImplicitChildId, - belongsToParentExplicitChildId: belongsToParentExplicitChildId ?? - this.belongsToParentExplicitChildId); + id: id, + name: name ?? this.name, + implicitChild: implicitChild ?? this.implicitChild, + explicitChild: explicitChild ?? this.explicitChild, + belongsToParentImplicitChildId: + belongsToParentImplicitChildId ?? this.belongsToParentImplicitChildId, + belongsToParentExplicitChildId: + belongsToParentExplicitChildId ?? this.belongsToParentExplicitChildId, + ); } - BelongsToParent copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? implicitChild, - ModelFieldValue? explicitChild, - ModelFieldValue? belongsToParentImplicitChildId, - ModelFieldValue? belongsToParentExplicitChildId}) { + BelongsToParent copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? implicitChild, + ModelFieldValue? explicitChild, + ModelFieldValue? belongsToParentImplicitChildId, + ModelFieldValue? belongsToParentExplicitChildId, + }) { return BelongsToParent._internal( - id: id, - name: name == null ? this.name : name.value, - implicitChild: - implicitChild == null ? this.implicitChild : implicitChild.value, - explicitChild: - explicitChild == null ? this.explicitChild : explicitChild.value, - belongsToParentImplicitChildId: belongsToParentImplicitChildId == null - ? this.belongsToParentImplicitChildId - : belongsToParentImplicitChildId.value, - belongsToParentExplicitChildId: belongsToParentExplicitChildId == null - ? this.belongsToParentExplicitChildId - : belongsToParentExplicitChildId.value); + id: id, + name: name == null ? this.name : name.value, + implicitChild: + implicitChild == null ? this.implicitChild : implicitChild.value, + explicitChild: + explicitChild == null ? this.explicitChild : explicitChild.value, + belongsToParentImplicitChildId: + belongsToParentImplicitChildId == null + ? this.belongsToParentImplicitChildId + : belongsToParentImplicitChildId.value, + belongsToParentExplicitChildId: + belongsToParentExplicitChildId == null + ? this.belongsToParentExplicitChildId + : belongsToParentExplicitChildId.value, + ); } BelongsToParent.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _implicitChild = json['implicitChild'] != null - ? json['implicitChild']['serializedData'] != null - ? BelongsToChildImplicit.fromJson(new Map.from( - json['implicitChild']['serializedData'])) - : BelongsToChildImplicit.fromJson( - new Map.from(json['implicitChild'])) - : null, - _explicitChild = json['explicitChild'] != null - ? json['explicitChild']['serializedData'] != null - ? BelongsToChildExplicit.fromJson(new Map.from( - json['explicitChild']['serializedData'])) - : BelongsToChildExplicit.fromJson( - new Map.from(json['explicitChild'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _belongsToParentImplicitChildId = - json['belongsToParentImplicitChildId'], - _belongsToParentExplicitChildId = - json['belongsToParentExplicitChildId']; + : id = json['id'], + _name = json['name'], + _implicitChild = + json['implicitChild'] != null + ? json['implicitChild']['serializedData'] != null + ? BelongsToChildImplicit.fromJson( + new Map.from( + json['implicitChild']['serializedData'], + ), + ) + : BelongsToChildImplicit.fromJson( + new Map.from(json['implicitChild']), + ) + : null, + _explicitChild = + json['explicitChild'] != null + ? json['explicitChild']['serializedData'] != null + ? BelongsToChildExplicit.fromJson( + new Map.from( + json['explicitChild']['serializedData'], + ), + ) + : BelongsToChildExplicit.fromJson( + new Map.from(json['explicitChild']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _belongsToParentImplicitChildId = json['belongsToParentImplicitChildId'], + _belongsToParentExplicitChildId = json['belongsToParentExplicitChildId']; Map toJson() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild?.toJson(), - 'explicitChild': _explicitChild?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'belongsToParentImplicitChildId': _belongsToParentImplicitChildId, - 'belongsToParentExplicitChildId': _belongsToParentExplicitChildId - }; + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild?.toJson(), + 'explicitChild': _explicitChild?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'belongsToParentImplicitChildId': _belongsToParentImplicitChildId, + 'belongsToParentExplicitChildId': _belongsToParentExplicitChildId, + }; Map toMap() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild, - 'explicitChild': _explicitChild, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'belongsToParentImplicitChildId': _belongsToParentImplicitChildId, - 'belongsToParentExplicitChildId': _belongsToParentExplicitChildId - }; + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild, + 'explicitChild': _explicitChild, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'belongsToParentImplicitChildId': _belongsToParentImplicitChildId, + 'belongsToParentExplicitChildId': _belongsToParentExplicitChildId, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILD = amplify_core.QueryField( - fieldName: "implicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'BelongsToChildImplicit')); + fieldName: "implicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'BelongsToChildImplicit', + ), + ); static final EXPLICITCHILD = amplify_core.QueryField( - fieldName: "explicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'BelongsToChildExplicit')); - static final BELONGSTOPARENTIMPLICITCHILDID = - amplify_core.QueryField(fieldName: "belongsToParentImplicitChildId"); - static final BELONGSTOPARENTEXPLICITCHILDID = - amplify_core.QueryField(fieldName: "belongsToParentExplicitChildId"); + fieldName: "explicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'BelongsToChildExplicit', + ), + ); + static final BELONGSTOPARENTIMPLICITCHILDID = amplify_core.QueryField( + fieldName: "belongsToParentImplicitChildId", + ); + static final BELONGSTOPARENTEXPLICITCHILDID = amplify_core.QueryField( + fieldName: "belongsToParentExplicitChildId", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "BelongsToParent"; - modelSchemaDefinition.pluralName = "BelongsToParents"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: BelongsToParent.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: BelongsToParent.IMPLICITCHILD, - isRequired: false, - ofModelName: 'BelongsToChildImplicit', - associatedKey: BelongsToChildImplicit.BELONGSTOPARENT)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: BelongsToParent.EXPLICITCHILD, - isRequired: false, - ofModelName: 'BelongsToChildExplicit', - associatedKey: BelongsToChildExplicit.BELONGSTOPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "BelongsToParent"; + modelSchemaDefinition.pluralName = "BelongsToParents"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: BelongsToParent.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: BelongsToParent.IMPLICITCHILD, + isRequired: false, + ofModelName: 'BelongsToChildImplicit', + associatedKey: BelongsToChildImplicit.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: BelongsToParent.EXPLICITCHILD, + isRequired: false, + ofModelName: 'BelongsToChildExplicit', + associatedKey: BelongsToChildExplicit.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: BelongsToParent.BELONGSTOPARENTIMPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: BelongsToParent.BELONGSTOPARENTEXPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: BelongsToParent.BELONGSTOPARENTIMPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: BelongsToParent.BELONGSTOPARENTEXPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _BelongsToParentModelType @@ -343,10 +396,10 @@ class BelongsToParentModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/Blog.dart b/packages/amplify_datastore/example/lib/models/Blog.dart index 7d50706fa7..51ff1cd4cf 100644 --- a/packages/amplify_datastore/example/lib/models/Blog.dart +++ b/packages/amplify_datastore/example/lib/models/Blog.dart @@ -36,7 +36,8 @@ class Blog extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class Blog extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,18 +74,23 @@ class Blog extends amplify_core.Model { return _updatedAt; } - const Blog._internal( - {required this.id, required name, posts, createdAt, updatedAt}) - : _name = name, - _posts = posts, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Blog._internal({ + required this.id, + required name, + posts, + createdAt, + updatedAt, + }) : _name = name, + _posts = posts, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Blog({String? id, required String name, List? posts}) { return Blog._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - posts: posts != null ? List.unmodifiable(posts) : posts); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + posts: posts != null ? List.unmodifiable(posts) : posts, + ); } bool equals(Object other) { @@ -106,11 +116,12 @@ class Blog extends amplify_core.Model { buffer.write("Blog {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,102 +129,131 @@ class Blog extends amplify_core.Model { Blog copyWith({String? name, List? posts}) { return Blog._internal( - id: id, name: name ?? this.name, posts: posts ?? this.posts); + id: id, + name: name ?? this.name, + posts: posts ?? this.posts, + ); } - Blog copyWithModelFieldValues( - {ModelFieldValue? name, ModelFieldValue?>? posts}) { + Blog copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? posts, + }) { return Blog._internal( - id: id, - name: name == null ? this.name : name.value, - posts: posts == null ? this.posts : posts.value); + id: id, + name: name == null ? this.name : name.value, + posts: posts == null ? this.posts : posts.value, + ); } Blog.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _posts = json['posts'] is Map - ? (json['posts']['items'] is List - ? (json['posts']['items'] as List) - .where((e) => e != null) - .map((e) => Post.fromJson(new Map.from(e))) - .toList() - : null) - : (json['posts'] is List - ? (json['posts'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Post.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _posts = + json['posts'] is Map + ? (json['posts']['items'] is List + ? (json['posts']['items'] as List) + .where((e) => e != null) + .map( + (e) => Post.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['posts'] is List + ? (json['posts'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Post.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'posts': _posts, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'posts': _posts, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final POSTS = amplify_core.QueryField( - fieldName: "posts", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "posts", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Blog"; - modelSchemaDefinition.pluralName = "Blogs"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Blog.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Blog.POSTS, - isRequired: false, - ofModelName: 'Post', - associatedKey: Post.BLOG)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Blog"; + modelSchemaDefinition.pluralName = "Blogs"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Blog.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Blog.POSTS, + isRequired: false, + ofModelName: 'Post', + associatedKey: Post.BLOG, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _BlogModelType extends amplify_core.ModelType { @@ -244,10 +284,10 @@ class BlogModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/Comment.dart b/packages/amplify_datastore/example/lib/models/Comment.dart index 36b16afa6a..562e89b0a1 100644 --- a/packages/amplify_datastore/example/lib/models/Comment.dart +++ b/packages/amplify_datastore/example/lib/models/Comment.dart @@ -35,7 +35,8 @@ class Comment extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -52,11 +53,15 @@ class Comment extends amplify_core.Model { return _content!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -68,18 +73,23 @@ class Comment extends amplify_core.Model { return _updatedAt; } - const Comment._internal( - {required this.id, post, required content, createdAt, updatedAt}) - : _post = post, - _content = content, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Comment._internal({ + required this.id, + post, + required content, + createdAt, + updatedAt, + }) : _post = post, + _content = content, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Comment({String? id, Post? post, required String content}) { return Comment._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - post: post, - content: content); + id: id == null ? amplify_core.UUID.getUUID() : id, + post: post, + content: content, + ); } bool equals(Object other) { @@ -106,11 +116,12 @@ class Comment extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("post=" + (_post != null ? _post.toString() : "null") + ", "); buffer.write("content=" + "$_content" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,99 +129,129 @@ class Comment extends amplify_core.Model { Comment copyWith({Post? post, String? content}) { return Comment._internal( - id: id, post: post ?? this.post, content: content ?? this.content); + id: id, + post: post ?? this.post, + content: content ?? this.content, + ); } - Comment copyWithModelFieldValues( - {ModelFieldValue? post, ModelFieldValue? content}) { + Comment copyWithModelFieldValues({ + ModelFieldValue? post, + ModelFieldValue? content, + }) { return Comment._internal( - id: id, - post: post == null ? this.post : post.value, - content: content == null ? this.content : content.value); + id: id, + post: post == null ? this.post : post.value, + content: content == null ? this.content : content.value, + ); } Comment.fromJson(Map json) - : id = json['id'], - _post = json['post'] != null - ? json['post']['serializedData'] != null - ? Post.fromJson(new Map.from( - json['post']['serializedData'])) - : Post.fromJson(new Map.from(json['post'])) - : null, - _content = json['content'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _post = + json['post'] != null + ? json['post']['serializedData'] != null + ? Post.fromJson( + new Map.from( + json['post']['serializedData'], + ), + ) + : Post.fromJson(new Map.from(json['post'])) + : null, + _content = json['content'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'post': _post?.toJson(), - 'content': _content, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'post': _post?.toJson(), + 'content': _content, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'post': _post, - 'content': _content, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'post': _post, + 'content': _content, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final POST = amplify_core.QueryField( - fieldName: "post", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "post", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static final CONTENT = amplify_core.QueryField(fieldName: "content"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Comment"; - modelSchemaDefinition.pluralName = "Comments"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["postID", "content"], name: "byPost") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Comment.POST, - isRequired: false, - targetNames: ['postID'], - ofModelName: 'Post')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Comment.CONTENT, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Comment"; + modelSchemaDefinition.pluralName = "Comments"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["postID", "content"], + name: "byPost", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Comment.POST, + isRequired: false, + targetNames: ['postID'], + ofModelName: 'Post', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Comment.CONTENT, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CommentModelType extends amplify_core.ModelType { @@ -241,10 +282,10 @@ class CommentModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalExplicit.dart b/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalExplicit.dart index 99f60a27dc..342cd0ef0a 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalExplicit.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalExplicit.dart @@ -36,21 +36,28 @@ class CpkHasManyChildBidirectionalExplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkHasManyChildBidirectionalExplicitModelIdentifier get modelIdentifier { try { return CpkHasManyChildBidirectionalExplicitModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkHasManyChildBidirectionalExplicit extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkHasManyChildBidirectionalExplicit extends amplify_core.Model { return _updatedAt; } - const CpkHasManyChildBidirectionalExplicit._internal( - {required this.id, required name, hasManyParent, createdAt, updatedAt}) - : _name = name, - _hasManyParent = hasManyParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkHasManyChildBidirectionalExplicit( - {String? id, - required String name, - CpkHasManyParentBidirectionalExplicit? hasManyParent}) { + const CpkHasManyChildBidirectionalExplicit._internal({ + required this.id, + required name, + hasManyParent, + createdAt, + updatedAt, + }) : _name = name, + _hasManyParent = hasManyParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkHasManyChildBidirectionalExplicit({ + String? id, + required String name, + CpkHasManyParentBidirectionalExplicit? hasManyParent, + }) { return CpkHasManyChildBidirectionalExplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - hasManyParent: hasManyParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + hasManyParent: hasManyParent, + ); } bool equals(Object other) { @@ -119,122 +136,157 @@ class CpkHasManyChildBidirectionalExplicit extends amplify_core.Model { buffer.write("CpkHasManyChildBidirectionalExplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("hasManyParent=" + - (_hasManyParent != null ? _hasManyParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "hasManyParent=" + + (_hasManyParent != null ? _hasManyParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkHasManyChildBidirectionalExplicit copyWith( - {CpkHasManyParentBidirectionalExplicit? hasManyParent}) { + CpkHasManyChildBidirectionalExplicit copyWith({ + CpkHasManyParentBidirectionalExplicit? hasManyParent, + }) { return CpkHasManyChildBidirectionalExplicit._internal( - id: id, name: name, hasManyParent: hasManyParent ?? this.hasManyParent); + id: id, + name: name, + hasManyParent: hasManyParent ?? this.hasManyParent, + ); } - CpkHasManyChildBidirectionalExplicit copyWithModelFieldValues( - {ModelFieldValue? - hasManyParent}) { + CpkHasManyChildBidirectionalExplicit copyWithModelFieldValues({ + ModelFieldValue? hasManyParent, + }) { return CpkHasManyChildBidirectionalExplicit._internal( - id: id, - name: name, - hasManyParent: - hasManyParent == null ? this.hasManyParent : hasManyParent.value); + id: id, + name: name, + hasManyParent: + hasManyParent == null ? this.hasManyParent : hasManyParent.value, + ); } CpkHasManyChildBidirectionalExplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _hasManyParent = json['hasManyParent'] != null - ? json['hasManyParent']['serializedData'] != null - ? CpkHasManyParentBidirectionalExplicit.fromJson( + : id = json['id'], + _name = json['name'], + _hasManyParent = + json['hasManyParent'] != null + ? json['hasManyParent']['serializedData'] != null + ? CpkHasManyParentBidirectionalExplicit.fromJson( new Map.from( - json['hasManyParent']['serializedData'])) - : CpkHasManyParentBidirectionalExplicit.fromJson( - new Map.from(json['hasManyParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['hasManyParent']['serializedData'], + ), + ) + : CpkHasManyParentBidirectionalExplicit.fromJson( + new Map.from(json['hasManyParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasManyChildBidirectionalExplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkHasManyChildBidirectionalExplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasManyChildBidirectionalExplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final HASMANYPARENT = amplify_core.QueryField( - fieldName: "hasManyParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasManyParentBidirectionalExplicit')); + fieldName: "hasManyParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasManyParentBidirectionalExplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasManyChildBidirectionalExplicit"; - modelSchemaDefinition.pluralName = "CpkHasManyChildBidirectionalExplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null), - amplify_core.ModelIndex( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasManyChildBidirectionalExplicit"; + modelSchemaDefinition.pluralName = + "CpkHasManyChildBidirectionalExplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + amplify_core.ModelIndex( fields: const ["hasManyParentID", "hasManyParentName"], - name: "byHasManyParent") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyChildBidirectionalExplicit.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkHasManyChildBidirectionalExplicit.HASMANYPARENT, - isRequired: false, - targetNames: ['hasManyParentID', 'hasManyParentName'], - ofModelName: 'CpkHasManyParentBidirectionalExplicit')); - - modelSchemaDefinition.addField( + name: "byHasManyParent", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyChildBidirectionalExplicit.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkHasManyChildBidirectionalExplicit.HASMANYPARENT, + isRequired: false, + targetNames: ['hasManyParentID', 'hasManyParentName'], + ofModelName: 'CpkHasManyParentBidirectionalExplicit', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkHasManyChildBidirectionalExplicitModelType @@ -266,18 +318,22 @@ class CpkHasManyChildBidirectionalExplicitModelIdentifier * Create an instance of CpkHasManyChildBidirectionalExplicitModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasManyChildBidirectionalExplicitModelIdentifier( - {required this.id, required this.name}); + const CpkHasManyChildBidirectionalExplicitModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalImplicit.dart b/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalImplicit.dart index 6d53df1939..ed4fa1f1bb 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalImplicit.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasManyChildBidirectionalImplicit.dart @@ -36,21 +36,28 @@ class CpkHasManyChildBidirectionalImplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkHasManyChildBidirectionalImplicitModelIdentifier get modelIdentifier { try { return CpkHasManyChildBidirectionalImplicitModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkHasManyChildBidirectionalImplicit extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkHasManyChildBidirectionalImplicit extends amplify_core.Model { return _updatedAt; } - const CpkHasManyChildBidirectionalImplicit._internal( - {required this.id, required name, hasManyParent, createdAt, updatedAt}) - : _name = name, - _hasManyParent = hasManyParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkHasManyChildBidirectionalImplicit( - {String? id, - required String name, - CpkHasManyParentBidirectionalImplicit? hasManyParent}) { + const CpkHasManyChildBidirectionalImplicit._internal({ + required this.id, + required name, + hasManyParent, + createdAt, + updatedAt, + }) : _name = name, + _hasManyParent = hasManyParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkHasManyChildBidirectionalImplicit({ + String? id, + required String name, + CpkHasManyParentBidirectionalImplicit? hasManyParent, + }) { return CpkHasManyChildBidirectionalImplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - hasManyParent: hasManyParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + hasManyParent: hasManyParent, + ); } bool equals(Object other) { @@ -119,122 +136,156 @@ class CpkHasManyChildBidirectionalImplicit extends amplify_core.Model { buffer.write("CpkHasManyChildBidirectionalImplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("hasManyParent=" + - (_hasManyParent != null ? _hasManyParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "hasManyParent=" + + (_hasManyParent != null ? _hasManyParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkHasManyChildBidirectionalImplicit copyWith( - {CpkHasManyParentBidirectionalImplicit? hasManyParent}) { + CpkHasManyChildBidirectionalImplicit copyWith({ + CpkHasManyParentBidirectionalImplicit? hasManyParent, + }) { return CpkHasManyChildBidirectionalImplicit._internal( - id: id, name: name, hasManyParent: hasManyParent ?? this.hasManyParent); + id: id, + name: name, + hasManyParent: hasManyParent ?? this.hasManyParent, + ); } - CpkHasManyChildBidirectionalImplicit copyWithModelFieldValues( - {ModelFieldValue? - hasManyParent}) { + CpkHasManyChildBidirectionalImplicit copyWithModelFieldValues({ + ModelFieldValue? hasManyParent, + }) { return CpkHasManyChildBidirectionalImplicit._internal( - id: id, - name: name, - hasManyParent: - hasManyParent == null ? this.hasManyParent : hasManyParent.value); + id: id, + name: name, + hasManyParent: + hasManyParent == null ? this.hasManyParent : hasManyParent.value, + ); } CpkHasManyChildBidirectionalImplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _hasManyParent = json['hasManyParent'] != null - ? json['hasManyParent']['serializedData'] != null - ? CpkHasManyParentBidirectionalImplicit.fromJson( + : id = json['id'], + _name = json['name'], + _hasManyParent = + json['hasManyParent'] != null + ? json['hasManyParent']['serializedData'] != null + ? CpkHasManyParentBidirectionalImplicit.fromJson( new Map.from( - json['hasManyParent']['serializedData'])) - : CpkHasManyParentBidirectionalImplicit.fromJson( - new Map.from(json['hasManyParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['hasManyParent']['serializedData'], + ), + ) + : CpkHasManyParentBidirectionalImplicit.fromJson( + new Map.from(json['hasManyParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasManyChildBidirectionalImplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkHasManyChildBidirectionalImplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasManyChildBidirectionalImplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final HASMANYPARENT = amplify_core.QueryField( - fieldName: "hasManyParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasManyParentBidirectionalImplicit')); + fieldName: "hasManyParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasManyParentBidirectionalImplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasManyChildBidirectionalImplicit"; - modelSchemaDefinition.pluralName = "CpkHasManyChildBidirectionalImplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyChildBidirectionalImplicit.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkHasManyChildBidirectionalImplicit.HASMANYPARENT, - isRequired: false, - targetNames: [ - 'cpkHasManyParentBidirectionalImplicitBidirectionalImplicitChildrenId', - 'cpkHasManyParentBidirectionalImplicitBidirectionalImplicitChildrenName' - ], - ofModelName: 'CpkHasManyParentBidirectionalImplicit')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasManyChildBidirectionalImplicit"; + modelSchemaDefinition.pluralName = + "CpkHasManyChildBidirectionalImplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyChildBidirectionalImplicit.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkHasManyChildBidirectionalImplicit.HASMANYPARENT, + isRequired: false, + targetNames: [ + 'cpkHasManyParentBidirectionalImplicitBidirectionalImplicitChildrenId', + 'cpkHasManyParentBidirectionalImplicitBidirectionalImplicitChildrenName', + ], + ofModelName: 'CpkHasManyParentBidirectionalImplicit', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkHasManyChildBidirectionalImplicitModelType @@ -266,18 +317,22 @@ class CpkHasManyChildBidirectionalImplicitModelIdentifier * Create an instance of CpkHasManyChildBidirectionalImplicitModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasManyChildBidirectionalImplicitModelIdentifier( - {required this.id, required this.name}); + const CpkHasManyChildBidirectionalImplicitModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalExplicit.dart b/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalExplicit.dart index 91b6fb290d..b41f9a2263 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalExplicit.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalExplicit.dart @@ -30,7 +30,7 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model { final String id; final String? _name; final List? - _bidirectionalExplicitChildren; + _bidirectionalExplicitChildren; final amplify_core.TemporalDateTime? _createdAt; final amplify_core.TemporalDateTime? _updatedAt; @@ -38,21 +38,28 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkHasManyParentBidirectionalExplicitModelIdentifier get modelIdentifier { try { return CpkHasManyParentBidirectionalExplicitModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,16 +68,20 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } List? - get bidirectionalExplicitChildren { + get bidirectionalExplicitChildren { return _bidirectionalExplicitChildren; } @@ -82,29 +93,32 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model { return _updatedAt; } - const CpkHasManyParentBidirectionalExplicit._internal( - {required this.id, - required name, - bidirectionalExplicitChildren, - createdAt, - updatedAt}) - : _name = name, - _bidirectionalExplicitChildren = bidirectionalExplicitChildren, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkHasManyParentBidirectionalExplicit( - {String? id, - required String name, - List? - bidirectionalExplicitChildren}) { + const CpkHasManyParentBidirectionalExplicit._internal({ + required this.id, + required name, + bidirectionalExplicitChildren, + createdAt, + updatedAt, + }) : _name = name, + _bidirectionalExplicitChildren = bidirectionalExplicitChildren, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkHasManyParentBidirectionalExplicit({ + String? id, + required String name, + List? bidirectionalExplicitChildren, + }) { return CpkHasManyParentBidirectionalExplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - bidirectionalExplicitChildren: bidirectionalExplicitChildren != null - ? List.unmodifiable( - bidirectionalExplicitChildren) - : bidirectionalExplicitChildren); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + bidirectionalExplicitChildren: + bidirectionalExplicitChildren != null + ? List.unmodifiable( + bidirectionalExplicitChildren, + ) + : bidirectionalExplicitChildren, + ); } bool equals(Object other) { @@ -117,8 +131,10 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model { return other is CpkHasManyParentBidirectionalExplicit && id == other.id && _name == other._name && - DeepCollectionEquality().equals(_bidirectionalExplicitChildren, - other._bidirectionalExplicitChildren); + DeepCollectionEquality().equals( + _bidirectionalExplicitChildren, + other._bidirectionalExplicitChildren, + ); } @override @@ -131,132 +147,167 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model { buffer.write("CpkHasManyParentBidirectionalExplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkHasManyParentBidirectionalExplicit copyWith( - {List? - bidirectionalExplicitChildren}) { + CpkHasManyParentBidirectionalExplicit copyWith({ + List? bidirectionalExplicitChildren, + }) { return CpkHasManyParentBidirectionalExplicit._internal( - id: id, - name: name, - bidirectionalExplicitChildren: bidirectionalExplicitChildren ?? - this.bidirectionalExplicitChildren); + id: id, + name: name, + bidirectionalExplicitChildren: + bidirectionalExplicitChildren ?? this.bidirectionalExplicitChildren, + ); } - CpkHasManyParentBidirectionalExplicit copyWithModelFieldValues( - {ModelFieldValue?>? - bidirectionalExplicitChildren}) { + CpkHasManyParentBidirectionalExplicit copyWithModelFieldValues({ + ModelFieldValue?>? + bidirectionalExplicitChildren, + }) { return CpkHasManyParentBidirectionalExplicit._internal( - id: id, - name: name, - bidirectionalExplicitChildren: bidirectionalExplicitChildren == null - ? this.bidirectionalExplicitChildren - : bidirectionalExplicitChildren.value); + id: id, + name: name, + bidirectionalExplicitChildren: + bidirectionalExplicitChildren == null + ? this.bidirectionalExplicitChildren + : bidirectionalExplicitChildren.value, + ); } CpkHasManyParentBidirectionalExplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _bidirectionalExplicitChildren = json['bidirectionalExplicitChildren'] - is Map - ? (json['bidirectionalExplicitChildren']['items'] is List - ? (json['bidirectionalExplicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => CpkHasManyChildBidirectionalExplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['bidirectionalExplicitChildren'] is List - ? (json['bidirectionalExplicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => CpkHasManyChildBidirectionalExplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _bidirectionalExplicitChildren = + json['bidirectionalExplicitChildren'] is Map + ? (json['bidirectionalExplicitChildren']['items'] is List + ? (json['bidirectionalExplicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => CpkHasManyChildBidirectionalExplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['bidirectionalExplicitChildren'] is List + ? (json['bidirectionalExplicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => CpkHasManyChildBidirectionalExplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'bidirectionalExplicitChildren': _bidirectionalExplicitChildren + 'id': id, + 'name': _name, + 'bidirectionalExplicitChildren': + _bidirectionalExplicitChildren ?.map((CpkHasManyChildBidirectionalExplicit? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'bidirectionalExplicitChildren': _bidirectionalExplicitChildren, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'bidirectionalExplicitChildren': _bidirectionalExplicitChildren, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkHasManyParentBidirectionalExplicitModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasManyParentBidirectionalExplicitModelIdentifier>(); + CpkHasManyParentBidirectionalExplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasManyParentBidirectionalExplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BIDIRECTIONALEXPLICITCHILDREN = amplify_core.QueryField( - fieldName: "bidirectionalExplicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasManyChildBidirectionalExplicit')); + fieldName: "bidirectionalExplicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasManyChildBidirectionalExplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasManyParentBidirectionalExplicit"; - modelSchemaDefinition.pluralName = "CpkHasManyParentBidirectionalExplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyParentBidirectionalExplicit.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: - CpkHasManyParentBidirectionalExplicit.BIDIRECTIONALEXPLICITCHILDREN, - isRequired: false, - ofModelName: 'CpkHasManyChildBidirectionalExplicit', - associatedKey: CpkHasManyChildBidirectionalExplicit.HASMANYPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasManyParentBidirectionalExplicit"; + modelSchemaDefinition.pluralName = + "CpkHasManyParentBidirectionalExplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyParentBidirectionalExplicit.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: + CpkHasManyParentBidirectionalExplicit + .BIDIRECTIONALEXPLICITCHILDREN, + isRequired: false, + ofModelName: 'CpkHasManyChildBidirectionalExplicit', + associatedKey: CpkHasManyChildBidirectionalExplicit.HASMANYPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkHasManyParentBidirectionalExplicitModelType @@ -265,7 +316,8 @@ class _CpkHasManyParentBidirectionalExplicitModelType @override CpkHasManyParentBidirectionalExplicit fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkHasManyParentBidirectionalExplicit.fromJson(jsonData); } @@ -289,18 +341,22 @@ class CpkHasManyParentBidirectionalExplicitModelIdentifier * Create an instance of CpkHasManyParentBidirectionalExplicitModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasManyParentBidirectionalExplicitModelIdentifier( - {required this.id, required this.name}); + const CpkHasManyParentBidirectionalExplicitModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalImplicit.dart b/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalImplicit.dart index ed08a6e583..cebf2d56fc 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalImplicit.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasManyParentBidirectionalImplicit.dart @@ -30,7 +30,7 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model { final String id; final String? _name; final List? - _bidirectionalImplicitChildren; + _bidirectionalImplicitChildren; final amplify_core.TemporalDateTime? _createdAt; final amplify_core.TemporalDateTime? _updatedAt; @@ -38,21 +38,28 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkHasManyParentBidirectionalImplicitModelIdentifier get modelIdentifier { try { return CpkHasManyParentBidirectionalImplicitModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,16 +68,20 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } List? - get bidirectionalImplicitChildren { + get bidirectionalImplicitChildren { return _bidirectionalImplicitChildren; } @@ -82,29 +93,32 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model { return _updatedAt; } - const CpkHasManyParentBidirectionalImplicit._internal( - {required this.id, - required name, - bidirectionalImplicitChildren, - createdAt, - updatedAt}) - : _name = name, - _bidirectionalImplicitChildren = bidirectionalImplicitChildren, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkHasManyParentBidirectionalImplicit( - {String? id, - required String name, - List? - bidirectionalImplicitChildren}) { + const CpkHasManyParentBidirectionalImplicit._internal({ + required this.id, + required name, + bidirectionalImplicitChildren, + createdAt, + updatedAt, + }) : _name = name, + _bidirectionalImplicitChildren = bidirectionalImplicitChildren, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkHasManyParentBidirectionalImplicit({ + String? id, + required String name, + List? bidirectionalImplicitChildren, + }) { return CpkHasManyParentBidirectionalImplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - bidirectionalImplicitChildren: bidirectionalImplicitChildren != null - ? List.unmodifiable( - bidirectionalImplicitChildren) - : bidirectionalImplicitChildren); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + bidirectionalImplicitChildren: + bidirectionalImplicitChildren != null + ? List.unmodifiable( + bidirectionalImplicitChildren, + ) + : bidirectionalImplicitChildren, + ); } bool equals(Object other) { @@ -117,8 +131,10 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model { return other is CpkHasManyParentBidirectionalImplicit && id == other.id && _name == other._name && - DeepCollectionEquality().equals(_bidirectionalImplicitChildren, - other._bidirectionalImplicitChildren); + DeepCollectionEquality().equals( + _bidirectionalImplicitChildren, + other._bidirectionalImplicitChildren, + ); } @override @@ -131,132 +147,167 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model { buffer.write("CpkHasManyParentBidirectionalImplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkHasManyParentBidirectionalImplicit copyWith( - {List? - bidirectionalImplicitChildren}) { + CpkHasManyParentBidirectionalImplicit copyWith({ + List? bidirectionalImplicitChildren, + }) { return CpkHasManyParentBidirectionalImplicit._internal( - id: id, - name: name, - bidirectionalImplicitChildren: bidirectionalImplicitChildren ?? - this.bidirectionalImplicitChildren); + id: id, + name: name, + bidirectionalImplicitChildren: + bidirectionalImplicitChildren ?? this.bidirectionalImplicitChildren, + ); } - CpkHasManyParentBidirectionalImplicit copyWithModelFieldValues( - {ModelFieldValue?>? - bidirectionalImplicitChildren}) { + CpkHasManyParentBidirectionalImplicit copyWithModelFieldValues({ + ModelFieldValue?>? + bidirectionalImplicitChildren, + }) { return CpkHasManyParentBidirectionalImplicit._internal( - id: id, - name: name, - bidirectionalImplicitChildren: bidirectionalImplicitChildren == null - ? this.bidirectionalImplicitChildren - : bidirectionalImplicitChildren.value); + id: id, + name: name, + bidirectionalImplicitChildren: + bidirectionalImplicitChildren == null + ? this.bidirectionalImplicitChildren + : bidirectionalImplicitChildren.value, + ); } CpkHasManyParentBidirectionalImplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _bidirectionalImplicitChildren = json['bidirectionalImplicitChildren'] - is Map - ? (json['bidirectionalImplicitChildren']['items'] is List - ? (json['bidirectionalImplicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => CpkHasManyChildBidirectionalImplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['bidirectionalImplicitChildren'] is List - ? (json['bidirectionalImplicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => CpkHasManyChildBidirectionalImplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _bidirectionalImplicitChildren = + json['bidirectionalImplicitChildren'] is Map + ? (json['bidirectionalImplicitChildren']['items'] is List + ? (json['bidirectionalImplicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => CpkHasManyChildBidirectionalImplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['bidirectionalImplicitChildren'] is List + ? (json['bidirectionalImplicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => CpkHasManyChildBidirectionalImplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'bidirectionalImplicitChildren': _bidirectionalImplicitChildren + 'id': id, + 'name': _name, + 'bidirectionalImplicitChildren': + _bidirectionalImplicitChildren ?.map((CpkHasManyChildBidirectionalImplicit? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'bidirectionalImplicitChildren': _bidirectionalImplicitChildren, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'bidirectionalImplicitChildren': _bidirectionalImplicitChildren, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkHasManyParentBidirectionalImplicitModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasManyParentBidirectionalImplicitModelIdentifier>(); + CpkHasManyParentBidirectionalImplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasManyParentBidirectionalImplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BIDIRECTIONALIMPLICITCHILDREN = amplify_core.QueryField( - fieldName: "bidirectionalImplicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasManyChildBidirectionalImplicit')); + fieldName: "bidirectionalImplicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasManyChildBidirectionalImplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasManyParentBidirectionalImplicit"; - modelSchemaDefinition.pluralName = "CpkHasManyParentBidirectionalImplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyParentBidirectionalImplicit.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: - CpkHasManyParentBidirectionalImplicit.BIDIRECTIONALIMPLICITCHILDREN, - isRequired: false, - ofModelName: 'CpkHasManyChildBidirectionalImplicit', - associatedKey: CpkHasManyChildBidirectionalImplicit.HASMANYPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasManyParentBidirectionalImplicit"; + modelSchemaDefinition.pluralName = + "CpkHasManyParentBidirectionalImplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyParentBidirectionalImplicit.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: + CpkHasManyParentBidirectionalImplicit + .BIDIRECTIONALIMPLICITCHILDREN, + isRequired: false, + ofModelName: 'CpkHasManyChildBidirectionalImplicit', + associatedKey: CpkHasManyChildBidirectionalImplicit.HASMANYPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkHasManyParentBidirectionalImplicitModelType @@ -265,7 +316,8 @@ class _CpkHasManyParentBidirectionalImplicitModelType @override CpkHasManyParentBidirectionalImplicit fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkHasManyParentBidirectionalImplicit.fromJson(jsonData); } @@ -289,18 +341,22 @@ class CpkHasManyParentBidirectionalImplicitModelIdentifier * Create an instance of CpkHasManyParentBidirectionalImplicitModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasManyParentBidirectionalImplicitModelIdentifier( - {required this.id, required this.name}); + const CpkHasManyParentBidirectionalImplicitModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildExplicit.dart b/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildExplicit.dart index b5ded890c8..67d89f4a53 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildExplicit.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildExplicit.dart @@ -37,21 +37,28 @@ class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkHasManyUnidirectionalChildExplicitModelIdentifier get modelIdentifier { try { return CpkHasManyUnidirectionalChildExplicitModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -60,11 +67,15 @@ class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -73,11 +84,15 @@ class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model { return _hasManyParentID!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -86,11 +101,15 @@ class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model { return _hasManyParentName!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -102,29 +121,31 @@ class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model { return _updatedAt; } - const CpkHasManyUnidirectionalChildExplicit._internal( - {required this.id, - required name, - required hasManyParentID, - required hasManyParentName, - createdAt, - updatedAt}) - : _name = name, - _hasManyParentID = hasManyParentID, - _hasManyParentName = hasManyParentName, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkHasManyUnidirectionalChildExplicit( - {String? id, - required String name, - required String hasManyParentID, - required String hasManyParentName}) { + const CpkHasManyUnidirectionalChildExplicit._internal({ + required this.id, + required name, + required hasManyParentID, + required hasManyParentName, + createdAt, + updatedAt, + }) : _name = name, + _hasManyParentID = hasManyParentID, + _hasManyParentName = hasManyParentName, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkHasManyUnidirectionalChildExplicit({ + String? id, + required String name, + required String hasManyParentID, + required String hasManyParentName, + }) { return CpkHasManyUnidirectionalChildExplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - hasManyParentID: hasManyParentID, - hasManyParentName: hasManyParentName); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + hasManyParentID: hasManyParentID, + hasManyParentName: hasManyParentName, + ); } bool equals(Object other) { @@ -153,127 +174,163 @@ class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model { buffer.write("name=" + "$_name" + ", "); buffer.write("hasManyParentID=" + "$_hasManyParentID" + ", "); buffer.write("hasManyParentName=" + "$_hasManyParentName" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkHasManyUnidirectionalChildExplicit copyWith( - {String? hasManyParentID, String? hasManyParentName}) { + CpkHasManyUnidirectionalChildExplicit copyWith({ + String? hasManyParentID, + String? hasManyParentName, + }) { return CpkHasManyUnidirectionalChildExplicit._internal( - id: id, - name: name, - hasManyParentID: hasManyParentID ?? this.hasManyParentID, - hasManyParentName: hasManyParentName ?? this.hasManyParentName); + id: id, + name: name, + hasManyParentID: hasManyParentID ?? this.hasManyParentID, + hasManyParentName: hasManyParentName ?? this.hasManyParentName, + ); } - CpkHasManyUnidirectionalChildExplicit copyWithModelFieldValues( - {ModelFieldValue? hasManyParentID, - ModelFieldValue? hasManyParentName}) { + CpkHasManyUnidirectionalChildExplicit copyWithModelFieldValues({ + ModelFieldValue? hasManyParentID, + ModelFieldValue? hasManyParentName, + }) { return CpkHasManyUnidirectionalChildExplicit._internal( - id: id, - name: name, - hasManyParentID: hasManyParentID == null - ? this.hasManyParentID - : hasManyParentID.value, - hasManyParentName: hasManyParentName == null - ? this.hasManyParentName - : hasManyParentName.value); + id: id, + name: name, + hasManyParentID: + hasManyParentID == null + ? this.hasManyParentID + : hasManyParentID.value, + hasManyParentName: + hasManyParentName == null + ? this.hasManyParentName + : hasManyParentName.value, + ); } CpkHasManyUnidirectionalChildExplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _hasManyParentID = json['hasManyParentID'], - _hasManyParentName = json['hasManyParentName'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _hasManyParentID = json['hasManyParentID'], + _hasManyParentName = json['hasManyParentName'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'hasManyParentID': _hasManyParentID, - 'hasManyParentName': _hasManyParentName, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'hasManyParentID': _hasManyParentID, + 'hasManyParentName': _hasManyParentName, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'hasManyParentID': _hasManyParentID, - 'hasManyParentName': _hasManyParentName, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'hasManyParentID': _hasManyParentID, + 'hasManyParentName': _hasManyParentName, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkHasManyUnidirectionalChildExplicitModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasManyUnidirectionalChildExplicitModelIdentifier>(); + CpkHasManyUnidirectionalChildExplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasManyUnidirectionalChildExplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); - static final HASMANYPARENTID = - amplify_core.QueryField(fieldName: "hasManyParentID"); - static final HASMANYPARENTNAME = - amplify_core.QueryField(fieldName: "hasManyParentName"); + static final HASMANYPARENTID = amplify_core.QueryField( + fieldName: "hasManyParentID", + ); + static final HASMANYPARENTNAME = amplify_core.QueryField( + fieldName: "hasManyParentName", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasManyUnidirectionalChildExplicit"; - modelSchemaDefinition.pluralName = "CpkHasManyUnidirectionalChildExplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null), - amplify_core.ModelIndex( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasManyUnidirectionalChildExplicit"; + modelSchemaDefinition.pluralName = + "CpkHasManyUnidirectionalChildExplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + amplify_core.ModelIndex( fields: const ["hasManyParentID", "hasManyParentName"], - name: "byHasManyParentCpk") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyUnidirectionalChildExplicit.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyUnidirectionalChildExplicit.HASMANYPARENTID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyUnidirectionalChildExplicit.HASMANYPARENTNAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + name: "byHasManyParentCpk", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyUnidirectionalChildExplicit.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyUnidirectionalChildExplicit.HASMANYPARENTID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyUnidirectionalChildExplicit.HASMANYPARENTNAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkHasManyUnidirectionalChildExplicitModelType @@ -282,7 +339,8 @@ class _CpkHasManyUnidirectionalChildExplicitModelType @override CpkHasManyUnidirectionalChildExplicit fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkHasManyUnidirectionalChildExplicit.fromJson(jsonData); } @@ -306,18 +364,22 @@ class CpkHasManyUnidirectionalChildExplicitModelIdentifier * Create an instance of CpkHasManyUnidirectionalChildExplicitModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasManyUnidirectionalChildExplicitModelIdentifier( - {required this.id, required this.name}); + const CpkHasManyUnidirectionalChildExplicitModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildImplicit.dart b/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildImplicit.dart index 5633dc4087..814e816174 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildImplicit.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalChildImplicit.dart @@ -37,21 +37,28 @@ class CpkHasManyUnidirectionalChildImplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkHasManyUnidirectionalChildImplicitModelIdentifier get modelIdentifier { try { return CpkHasManyUnidirectionalChildImplicitModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -60,11 +67,15 @@ class CpkHasManyUnidirectionalChildImplicit extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,33 +95,35 @@ class CpkHasManyUnidirectionalChildImplicit extends amplify_core.Model { return _cpkHasManyUnidirectionalParentImplicitChildrenName; } - const CpkHasManyUnidirectionalChildImplicit._internal( - {required this.id, - required name, - createdAt, - updatedAt, - cpkHasManyUnidirectionalParentImplicitChildrenId, - cpkHasManyUnidirectionalParentImplicitChildrenName}) - : _name = name, - _createdAt = createdAt, - _updatedAt = updatedAt, - _cpkHasManyUnidirectionalParentImplicitChildrenId = - cpkHasManyUnidirectionalParentImplicitChildrenId, - _cpkHasManyUnidirectionalParentImplicitChildrenName = - cpkHasManyUnidirectionalParentImplicitChildrenName; - - factory CpkHasManyUnidirectionalChildImplicit( - {String? id, - required String name, - String? cpkHasManyUnidirectionalParentImplicitChildrenId, - String? cpkHasManyUnidirectionalParentImplicitChildrenName}) { + const CpkHasManyUnidirectionalChildImplicit._internal({ + required this.id, + required name, + createdAt, + updatedAt, + cpkHasManyUnidirectionalParentImplicitChildrenId, + cpkHasManyUnidirectionalParentImplicitChildrenName, + }) : _name = name, + _createdAt = createdAt, + _updatedAt = updatedAt, + _cpkHasManyUnidirectionalParentImplicitChildrenId = + cpkHasManyUnidirectionalParentImplicitChildrenId, + _cpkHasManyUnidirectionalParentImplicitChildrenName = + cpkHasManyUnidirectionalParentImplicitChildrenName; + + factory CpkHasManyUnidirectionalChildImplicit({ + String? id, + required String name, + String? cpkHasManyUnidirectionalParentImplicitChildrenId, + String? cpkHasManyUnidirectionalParentImplicitChildrenName, + }) { return CpkHasManyUnidirectionalChildImplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - cpkHasManyUnidirectionalParentImplicitChildrenId: - cpkHasManyUnidirectionalParentImplicitChildrenId, - cpkHasManyUnidirectionalParentImplicitChildrenName: - cpkHasManyUnidirectionalParentImplicitChildrenName); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + cpkHasManyUnidirectionalParentImplicitChildrenId: + cpkHasManyUnidirectionalParentImplicitChildrenId, + cpkHasManyUnidirectionalParentImplicitChildrenName: + cpkHasManyUnidirectionalParentImplicitChildrenName, + ); } bool equals(Object other) { @@ -139,149 +152,185 @@ class CpkHasManyUnidirectionalChildImplicit extends amplify_core.Model { buffer.write("CpkHasManyUnidirectionalChildImplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt.format() : "null") + - ", "); - buffer.write("cpkHasManyUnidirectionalParentImplicitChildrenId=" + - "$_cpkHasManyUnidirectionalParentImplicitChildrenId" + - ", "); - buffer.write("cpkHasManyUnidirectionalParentImplicitChildrenName=" + - "$_cpkHasManyUnidirectionalParentImplicitChildrenName"); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null") + ", ", + ); + buffer.write( + "cpkHasManyUnidirectionalParentImplicitChildrenId=" + + "$_cpkHasManyUnidirectionalParentImplicitChildrenId" + + ", ", + ); + buffer.write( + "cpkHasManyUnidirectionalParentImplicitChildrenName=" + + "$_cpkHasManyUnidirectionalParentImplicitChildrenName", + ); buffer.write("}"); return buffer.toString(); } - CpkHasManyUnidirectionalChildImplicit copyWith( - {String? cpkHasManyUnidirectionalParentImplicitChildrenId, - String? cpkHasManyUnidirectionalParentImplicitChildrenName}) { + CpkHasManyUnidirectionalChildImplicit copyWith({ + String? cpkHasManyUnidirectionalParentImplicitChildrenId, + String? cpkHasManyUnidirectionalParentImplicitChildrenName, + }) { return CpkHasManyUnidirectionalChildImplicit._internal( - id: id, - name: name, - cpkHasManyUnidirectionalParentImplicitChildrenId: - cpkHasManyUnidirectionalParentImplicitChildrenId ?? - this.cpkHasManyUnidirectionalParentImplicitChildrenId, - cpkHasManyUnidirectionalParentImplicitChildrenName: - cpkHasManyUnidirectionalParentImplicitChildrenName ?? - this.cpkHasManyUnidirectionalParentImplicitChildrenName); + id: id, + name: name, + cpkHasManyUnidirectionalParentImplicitChildrenId: + cpkHasManyUnidirectionalParentImplicitChildrenId ?? + this.cpkHasManyUnidirectionalParentImplicitChildrenId, + cpkHasManyUnidirectionalParentImplicitChildrenName: + cpkHasManyUnidirectionalParentImplicitChildrenName ?? + this.cpkHasManyUnidirectionalParentImplicitChildrenName, + ); } - CpkHasManyUnidirectionalChildImplicit copyWithModelFieldValues( - {ModelFieldValue? - cpkHasManyUnidirectionalParentImplicitChildrenId, - ModelFieldValue? - cpkHasManyUnidirectionalParentImplicitChildrenName}) { + CpkHasManyUnidirectionalChildImplicit copyWithModelFieldValues({ + ModelFieldValue? cpkHasManyUnidirectionalParentImplicitChildrenId, + ModelFieldValue? + cpkHasManyUnidirectionalParentImplicitChildrenName, + }) { return CpkHasManyUnidirectionalChildImplicit._internal( - id: id, - name: name, - cpkHasManyUnidirectionalParentImplicitChildrenId: - cpkHasManyUnidirectionalParentImplicitChildrenId == null - ? this.cpkHasManyUnidirectionalParentImplicitChildrenId - : cpkHasManyUnidirectionalParentImplicitChildrenId.value, - cpkHasManyUnidirectionalParentImplicitChildrenName: - cpkHasManyUnidirectionalParentImplicitChildrenName == null - ? this.cpkHasManyUnidirectionalParentImplicitChildrenName - : cpkHasManyUnidirectionalParentImplicitChildrenName.value); + id: id, + name: name, + cpkHasManyUnidirectionalParentImplicitChildrenId: + cpkHasManyUnidirectionalParentImplicitChildrenId == null + ? this.cpkHasManyUnidirectionalParentImplicitChildrenId + : cpkHasManyUnidirectionalParentImplicitChildrenId.value, + cpkHasManyUnidirectionalParentImplicitChildrenName: + cpkHasManyUnidirectionalParentImplicitChildrenName == null + ? this.cpkHasManyUnidirectionalParentImplicitChildrenName + : cpkHasManyUnidirectionalParentImplicitChildrenName.value, + ); } CpkHasManyUnidirectionalChildImplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _cpkHasManyUnidirectionalParentImplicitChildrenId = - json['cpkHasManyUnidirectionalParentImplicitChildrenId'], - _cpkHasManyUnidirectionalParentImplicitChildrenName = - json['cpkHasManyUnidirectionalParentImplicitChildrenName']; + : id = json['id'], + _name = json['name'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _cpkHasManyUnidirectionalParentImplicitChildrenId = + json['cpkHasManyUnidirectionalParentImplicitChildrenId'], + _cpkHasManyUnidirectionalParentImplicitChildrenName = + json['cpkHasManyUnidirectionalParentImplicitChildrenName']; Map toJson() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'cpkHasManyUnidirectionalParentImplicitChildrenId': - _cpkHasManyUnidirectionalParentImplicitChildrenId, - 'cpkHasManyUnidirectionalParentImplicitChildrenName': - _cpkHasManyUnidirectionalParentImplicitChildrenName - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'cpkHasManyUnidirectionalParentImplicitChildrenId': + _cpkHasManyUnidirectionalParentImplicitChildrenId, + 'cpkHasManyUnidirectionalParentImplicitChildrenName': + _cpkHasManyUnidirectionalParentImplicitChildrenName, + }; Map toMap() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'cpkHasManyUnidirectionalParentImplicitChildrenId': - _cpkHasManyUnidirectionalParentImplicitChildrenId, - 'cpkHasManyUnidirectionalParentImplicitChildrenName': - _cpkHasManyUnidirectionalParentImplicitChildrenName - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'cpkHasManyUnidirectionalParentImplicitChildrenId': + _cpkHasManyUnidirectionalParentImplicitChildrenId, + 'cpkHasManyUnidirectionalParentImplicitChildrenName': + _cpkHasManyUnidirectionalParentImplicitChildrenName, + }; static final amplify_core.QueryModelIdentifier< - CpkHasManyUnidirectionalChildImplicitModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasManyUnidirectionalChildImplicitModelIdentifier>(); + CpkHasManyUnidirectionalChildImplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasManyUnidirectionalChildImplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENID = amplify_core.QueryField( - fieldName: "cpkHasManyUnidirectionalParentImplicitChildrenId"); + fieldName: "cpkHasManyUnidirectionalParentImplicitChildrenId", + ); static final CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENNAME = amplify_core.QueryField( - fieldName: "cpkHasManyUnidirectionalParentImplicitChildrenName"); + fieldName: "cpkHasManyUnidirectionalParentImplicitChildrenName", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasManyUnidirectionalChildImplicit"; - modelSchemaDefinition.pluralName = "CpkHasManyUnidirectionalChildImplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyUnidirectionalChildImplicit.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasManyUnidirectionalChildImplicit"; + modelSchemaDefinition.pluralName = + "CpkHasManyUnidirectionalChildImplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyUnidirectionalChildImplicit.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyUnidirectionalChildImplicit - .CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyUnidirectionalChildImplicit - .CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkHasManyUnidirectionalChildImplicit + .CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkHasManyUnidirectionalChildImplicit + .CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _CpkHasManyUnidirectionalChildImplicitModelType @@ -290,7 +339,8 @@ class _CpkHasManyUnidirectionalChildImplicitModelType @override CpkHasManyUnidirectionalChildImplicit fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkHasManyUnidirectionalChildImplicit.fromJson(jsonData); } @@ -314,18 +364,22 @@ class CpkHasManyUnidirectionalChildImplicitModelIdentifier * Create an instance of CpkHasManyUnidirectionalChildImplicitModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasManyUnidirectionalChildImplicitModelIdentifier( - {required this.id, required this.name}); + const CpkHasManyUnidirectionalChildImplicitModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalParent.dart b/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalParent.dart index 908d509ad6..92944bdca3 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalParent.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasManyUnidirectionalParent.dart @@ -37,21 +37,28 @@ class CpkHasManyUnidirectionalParent extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkHasManyUnidirectionalParentModelIdentifier get modelIdentifier { try { return CpkHasManyUnidirectionalParentModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -60,11 +67,15 @@ class CpkHasManyUnidirectionalParent extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,35 +95,41 @@ class CpkHasManyUnidirectionalParent extends amplify_core.Model { return _updatedAt; } - const CpkHasManyUnidirectionalParent._internal( - {required this.id, - required name, - implicitChildren, - explicitChildren, - createdAt, - updatedAt}) - : _name = name, - _implicitChildren = implicitChildren, - _explicitChildren = explicitChildren, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkHasManyUnidirectionalParent( - {String? id, - required String name, - List? implicitChildren, - List? explicitChildren}) { + const CpkHasManyUnidirectionalParent._internal({ + required this.id, + required name, + implicitChildren, + explicitChildren, + createdAt, + updatedAt, + }) : _name = name, + _implicitChildren = implicitChildren, + _explicitChildren = explicitChildren, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkHasManyUnidirectionalParent({ + String? id, + required String name, + List? implicitChildren, + List? explicitChildren, + }) { return CpkHasManyUnidirectionalParent._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - implicitChildren: implicitChildren != null - ? List.unmodifiable( - implicitChildren) - : implicitChildren, - explicitChildren: explicitChildren != null - ? List.unmodifiable( - explicitChildren) - : explicitChildren); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + implicitChildren: + implicitChildren != null + ? List.unmodifiable( + implicitChildren, + ) + : implicitChildren, + explicitChildren: + explicitChildren != null + ? List.unmodifiable( + explicitChildren, + ) + : explicitChildren, + ); } bool equals(Object other) { @@ -125,10 +142,14 @@ class CpkHasManyUnidirectionalParent extends amplify_core.Model { return other is CpkHasManyUnidirectionalParent && id == other.id && _name == other._name && - DeepCollectionEquality() - .equals(_implicitChildren, other._implicitChildren) && - DeepCollectionEquality() - .equals(_explicitChildren, other._explicitChildren); + DeepCollectionEquality().equals( + _implicitChildren, + other._implicitChildren, + ) && + DeepCollectionEquality().equals( + _explicitChildren, + other._explicitChildren, + ); } @override @@ -141,166 +162,216 @@ class CpkHasManyUnidirectionalParent extends amplify_core.Model { buffer.write("CpkHasManyUnidirectionalParent {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkHasManyUnidirectionalParent copyWith( - {List? implicitChildren, - List? explicitChildren}) { + CpkHasManyUnidirectionalParent copyWith({ + List? implicitChildren, + List? explicitChildren, + }) { return CpkHasManyUnidirectionalParent._internal( - id: id, - name: name, - implicitChildren: implicitChildren ?? this.implicitChildren, - explicitChildren: explicitChildren ?? this.explicitChildren); + id: id, + name: name, + implicitChildren: implicitChildren ?? this.implicitChildren, + explicitChildren: explicitChildren ?? this.explicitChildren, + ); } - CpkHasManyUnidirectionalParent copyWithModelFieldValues( - {ModelFieldValue?>? - implicitChildren, - ModelFieldValue?>? - explicitChildren}) { + CpkHasManyUnidirectionalParent copyWithModelFieldValues({ + ModelFieldValue?>? + implicitChildren, + ModelFieldValue?>? + explicitChildren, + }) { return CpkHasManyUnidirectionalParent._internal( - id: id, - name: name, - implicitChildren: implicitChildren == null - ? this.implicitChildren - : implicitChildren.value, - explicitChildren: explicitChildren == null - ? this.explicitChildren - : explicitChildren.value); + id: id, + name: name, + implicitChildren: + implicitChildren == null + ? this.implicitChildren + : implicitChildren.value, + explicitChildren: + explicitChildren == null + ? this.explicitChildren + : explicitChildren.value, + ); } CpkHasManyUnidirectionalParent.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _implicitChildren = json['implicitChildren'] is Map - ? (json['implicitChildren']['items'] is List - ? (json['implicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => CpkHasManyUnidirectionalChildImplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['implicitChildren'] is List - ? (json['implicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => CpkHasManyUnidirectionalChildImplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _explicitChildren = json['explicitChildren'] is Map - ? (json['explicitChildren']['items'] is List - ? (json['explicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => CpkHasManyUnidirectionalChildExplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['explicitChildren'] is List - ? (json['explicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => CpkHasManyUnidirectionalChildExplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _implicitChildren = + json['implicitChildren'] is Map + ? (json['implicitChildren']['items'] is List + ? (json['implicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => CpkHasManyUnidirectionalChildImplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['implicitChildren'] is List + ? (json['implicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => CpkHasManyUnidirectionalChildImplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _explicitChildren = + json['explicitChildren'] is Map + ? (json['explicitChildren']['items'] is List + ? (json['explicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => CpkHasManyUnidirectionalChildExplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['explicitChildren'] is List + ? (json['explicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => CpkHasManyUnidirectionalChildExplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'implicitChildren': _implicitChildren + 'id': id, + 'name': _name, + 'implicitChildren': + _implicitChildren ?.map((CpkHasManyUnidirectionalChildImplicit? e) => e?.toJson()) .toList(), - 'explicitChildren': _explicitChildren + 'explicitChildren': + _explicitChildren ?.map((CpkHasManyUnidirectionalChildExplicit? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'implicitChildren': _implicitChildren, - 'explicitChildren': _explicitChildren, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasManyUnidirectionalParentModelIdentifier>(); + 'id': id, + 'name': _name, + 'implicitChildren': _implicitChildren, + 'explicitChildren': _explicitChildren, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkHasManyUnidirectionalParentModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasManyUnidirectionalParentModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILDREN = amplify_core.QueryField( - fieldName: "implicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasManyUnidirectionalChildImplicit')); + fieldName: "implicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasManyUnidirectionalChildImplicit', + ), + ); static final EXPLICITCHILDREN = amplify_core.QueryField( - fieldName: "explicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasManyUnidirectionalChildExplicit')); + fieldName: "explicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasManyUnidirectionalChildExplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasManyUnidirectionalParent"; - modelSchemaDefinition.pluralName = "CpkHasManyUnidirectionalParents"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasManyUnidirectionalParent.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: CpkHasManyUnidirectionalParent.IMPLICITCHILDREN, - isRequired: false, - ofModelName: 'CpkHasManyUnidirectionalChildImplicit', - associatedKey: CpkHasManyUnidirectionalChildImplicit - .CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENID)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: CpkHasManyUnidirectionalParent.EXPLICITCHILDREN, - isRequired: false, - ofModelName: 'CpkHasManyUnidirectionalChildExplicit', - associatedKey: CpkHasManyUnidirectionalChildExplicit.HASMANYPARENTID)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasManyUnidirectionalParent"; + modelSchemaDefinition.pluralName = "CpkHasManyUnidirectionalParents"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasManyUnidirectionalParent.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: CpkHasManyUnidirectionalParent.IMPLICITCHILDREN, + isRequired: false, + ofModelName: 'CpkHasManyUnidirectionalChildImplicit', + associatedKey: + CpkHasManyUnidirectionalChildImplicit + .CPKHASMANYUNIDIRECTIONALPARENTIMPLICITCHILDRENID, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: CpkHasManyUnidirectionalParent.EXPLICITCHILDREN, + isRequired: false, + ofModelName: 'CpkHasManyUnidirectionalChildExplicit', + associatedKey: CpkHasManyUnidirectionalChildExplicit.HASMANYPARENTID, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkHasManyUnidirectionalParentModelType @@ -331,18 +402,22 @@ class CpkHasManyUnidirectionalParentModelIdentifier * Create an instance of CpkHasManyUnidirectionalParentModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasManyUnidirectionalParentModelIdentifier( - {required this.id, required this.name}); + const CpkHasManyUnidirectionalParentModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalChild.dart b/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalChild.dart index 1544790f9b..40fab0ddb6 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalChild.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalChild.dart @@ -33,7 +33,8 @@ class CpkHasOneUnidirectionalChild extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -42,11 +43,15 @@ class CpkHasOneUnidirectionalChild extends amplify_core.Model { return CpkHasOneUnidirectionalChildModelIdentifier(id: id, name: _name!); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -55,11 +60,15 @@ class CpkHasOneUnidirectionalChild extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -71,15 +80,20 @@ class CpkHasOneUnidirectionalChild extends amplify_core.Model { return _updatedAt; } - const CpkHasOneUnidirectionalChild._internal( - {required this.id, required name, createdAt, updatedAt}) - : _name = name, - _createdAt = createdAt, - _updatedAt = updatedAt; + const CpkHasOneUnidirectionalChild._internal({ + required this.id, + required name, + createdAt, + updatedAt, + }) : _name = name, + _createdAt = createdAt, + _updatedAt = updatedAt; factory CpkHasOneUnidirectionalChild({String? id, required String name}) { return CpkHasOneUnidirectionalChild._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, name: name); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + ); } bool equals(Object other) { @@ -104,11 +118,12 @@ class CpkHasOneUnidirectionalChild extends amplify_core.Model { buffer.write("CpkHasOneUnidirectionalChild {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -123,68 +138,84 @@ class CpkHasOneUnidirectionalChild extends amplify_core.Model { } CpkHasOneUnidirectionalChild.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasOneUnidirectionalChildModelIdentifier>(); + 'id': id, + 'name': _name, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkHasOneUnidirectionalChildModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasOneUnidirectionalChildModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasOneUnidirectionalChild"; - modelSchemaDefinition.pluralName = "CpkHasOneUnidirectionalChildren"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasOneUnidirectionalChild.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasOneUnidirectionalChild"; + modelSchemaDefinition.pluralName = "CpkHasOneUnidirectionalChildren"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasOneUnidirectionalChild.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkHasOneUnidirectionalChildModelType @@ -215,18 +246,22 @@ class CpkHasOneUnidirectionalChildModelIdentifier * Create an instance of CpkHasOneUnidirectionalChildModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasOneUnidirectionalChildModelIdentifier( - {required this.id, required this.name}); + const CpkHasOneUnidirectionalChildModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalParent.dart b/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalParent.dart index ee1ddebd60..d4fec2488a 100644 --- a/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalParent.dart +++ b/packages/amplify_datastore/example/lib/models/CpkHasOneUnidirectionalParent.dart @@ -40,7 +40,8 @@ class CpkHasOneUnidirectionalParent extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class CpkHasOneUnidirectionalParent extends amplify_core.Model { return CpkHasOneUnidirectionalParentModelIdentifier(id: id, name: _name!); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -62,11 +67,15 @@ class CpkHasOneUnidirectionalParent extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -102,49 +111,51 @@ class CpkHasOneUnidirectionalParent extends amplify_core.Model { return _cpkHasOneUnidirectionalParentImplicitChildName; } - const CpkHasOneUnidirectionalParent._internal( - {required this.id, - required name, - implicitChild, - explicitChildID, - explicitChildName, - explicitChild, - createdAt, - updatedAt, - cpkHasOneUnidirectionalParentImplicitChildId, - cpkHasOneUnidirectionalParentImplicitChildName}) - : _name = name, - _implicitChild = implicitChild, - _explicitChildID = explicitChildID, - _explicitChildName = explicitChildName, - _explicitChild = explicitChild, - _createdAt = createdAt, - _updatedAt = updatedAt, - _cpkHasOneUnidirectionalParentImplicitChildId = - cpkHasOneUnidirectionalParentImplicitChildId, - _cpkHasOneUnidirectionalParentImplicitChildName = - cpkHasOneUnidirectionalParentImplicitChildName; - - factory CpkHasOneUnidirectionalParent( - {String? id, - required String name, - CpkHasOneUnidirectionalChild? implicitChild, - String? explicitChildID, - String? explicitChildName, - CpkHasOneUnidirectionalChild? explicitChild, - String? cpkHasOneUnidirectionalParentImplicitChildId, - String? cpkHasOneUnidirectionalParentImplicitChildName}) { + const CpkHasOneUnidirectionalParent._internal({ + required this.id, + required name, + implicitChild, + explicitChildID, + explicitChildName, + explicitChild, + createdAt, + updatedAt, + cpkHasOneUnidirectionalParentImplicitChildId, + cpkHasOneUnidirectionalParentImplicitChildName, + }) : _name = name, + _implicitChild = implicitChild, + _explicitChildID = explicitChildID, + _explicitChildName = explicitChildName, + _explicitChild = explicitChild, + _createdAt = createdAt, + _updatedAt = updatedAt, + _cpkHasOneUnidirectionalParentImplicitChildId = + cpkHasOneUnidirectionalParentImplicitChildId, + _cpkHasOneUnidirectionalParentImplicitChildName = + cpkHasOneUnidirectionalParentImplicitChildName; + + factory CpkHasOneUnidirectionalParent({ + String? id, + required String name, + CpkHasOneUnidirectionalChild? implicitChild, + String? explicitChildID, + String? explicitChildName, + CpkHasOneUnidirectionalChild? explicitChild, + String? cpkHasOneUnidirectionalParentImplicitChildId, + String? cpkHasOneUnidirectionalParentImplicitChildName, + }) { return CpkHasOneUnidirectionalParent._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - implicitChild: implicitChild, - explicitChildID: explicitChildID, - explicitChildName: explicitChildName, - explicitChild: explicitChild, - cpkHasOneUnidirectionalParentImplicitChildId: - cpkHasOneUnidirectionalParentImplicitChildId, - cpkHasOneUnidirectionalParentImplicitChildName: - cpkHasOneUnidirectionalParentImplicitChildName); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + implicitChild: implicitChild, + explicitChildID: explicitChildID, + explicitChildName: explicitChildName, + explicitChild: explicitChild, + cpkHasOneUnidirectionalParentImplicitChildId: + cpkHasOneUnidirectionalParentImplicitChildId, + cpkHasOneUnidirectionalParentImplicitChildName: + cpkHasOneUnidirectionalParentImplicitChildName, + ); } bool equals(Object other) { @@ -179,234 +190,299 @@ class CpkHasOneUnidirectionalParent extends amplify_core.Model { buffer.write("name=" + "$_name" + ", "); buffer.write("explicitChildID=" + "$_explicitChildID" + ", "); buffer.write("explicitChildName=" + "$_explicitChildName" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt.format() : "null") + - ", "); - buffer.write("cpkHasOneUnidirectionalParentImplicitChildId=" + - "$_cpkHasOneUnidirectionalParentImplicitChildId" + - ", "); - buffer.write("cpkHasOneUnidirectionalParentImplicitChildName=" + - "$_cpkHasOneUnidirectionalParentImplicitChildName"); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null") + ", ", + ); + buffer.write( + "cpkHasOneUnidirectionalParentImplicitChildId=" + + "$_cpkHasOneUnidirectionalParentImplicitChildId" + + ", ", + ); + buffer.write( + "cpkHasOneUnidirectionalParentImplicitChildName=" + + "$_cpkHasOneUnidirectionalParentImplicitChildName", + ); buffer.write("}"); return buffer.toString(); } - CpkHasOneUnidirectionalParent copyWith( - {CpkHasOneUnidirectionalChild? implicitChild, - String? explicitChildID, - String? explicitChildName, - CpkHasOneUnidirectionalChild? explicitChild, - String? cpkHasOneUnidirectionalParentImplicitChildId, - String? cpkHasOneUnidirectionalParentImplicitChildName}) { + CpkHasOneUnidirectionalParent copyWith({ + CpkHasOneUnidirectionalChild? implicitChild, + String? explicitChildID, + String? explicitChildName, + CpkHasOneUnidirectionalChild? explicitChild, + String? cpkHasOneUnidirectionalParentImplicitChildId, + String? cpkHasOneUnidirectionalParentImplicitChildName, + }) { return CpkHasOneUnidirectionalParent._internal( - id: id, - name: name, - implicitChild: implicitChild ?? this.implicitChild, - explicitChildID: explicitChildID ?? this.explicitChildID, - explicitChildName: explicitChildName ?? this.explicitChildName, - explicitChild: explicitChild ?? this.explicitChild, - cpkHasOneUnidirectionalParentImplicitChildId: - cpkHasOneUnidirectionalParentImplicitChildId ?? - this.cpkHasOneUnidirectionalParentImplicitChildId, - cpkHasOneUnidirectionalParentImplicitChildName: - cpkHasOneUnidirectionalParentImplicitChildName ?? - this.cpkHasOneUnidirectionalParentImplicitChildName); + id: id, + name: name, + implicitChild: implicitChild ?? this.implicitChild, + explicitChildID: explicitChildID ?? this.explicitChildID, + explicitChildName: explicitChildName ?? this.explicitChildName, + explicitChild: explicitChild ?? this.explicitChild, + cpkHasOneUnidirectionalParentImplicitChildId: + cpkHasOneUnidirectionalParentImplicitChildId ?? + this.cpkHasOneUnidirectionalParentImplicitChildId, + cpkHasOneUnidirectionalParentImplicitChildName: + cpkHasOneUnidirectionalParentImplicitChildName ?? + this.cpkHasOneUnidirectionalParentImplicitChildName, + ); } - CpkHasOneUnidirectionalParent copyWithModelFieldValues( - {ModelFieldValue? implicitChild, - ModelFieldValue? explicitChildID, - ModelFieldValue? explicitChildName, - ModelFieldValue? explicitChild, - ModelFieldValue? cpkHasOneUnidirectionalParentImplicitChildId, - ModelFieldValue? - cpkHasOneUnidirectionalParentImplicitChildName}) { + CpkHasOneUnidirectionalParent copyWithModelFieldValues({ + ModelFieldValue? implicitChild, + ModelFieldValue? explicitChildID, + ModelFieldValue? explicitChildName, + ModelFieldValue? explicitChild, + ModelFieldValue? cpkHasOneUnidirectionalParentImplicitChildId, + ModelFieldValue? cpkHasOneUnidirectionalParentImplicitChildName, + }) { return CpkHasOneUnidirectionalParent._internal( - id: id, - name: name, - implicitChild: - implicitChild == null ? this.implicitChild : implicitChild.value, - explicitChildID: explicitChildID == null - ? this.explicitChildID - : explicitChildID.value, - explicitChildName: explicitChildName == null - ? this.explicitChildName - : explicitChildName.value, - explicitChild: - explicitChild == null ? this.explicitChild : explicitChild.value, - cpkHasOneUnidirectionalParentImplicitChildId: - cpkHasOneUnidirectionalParentImplicitChildId == null - ? this.cpkHasOneUnidirectionalParentImplicitChildId - : cpkHasOneUnidirectionalParentImplicitChildId.value, - cpkHasOneUnidirectionalParentImplicitChildName: - cpkHasOneUnidirectionalParentImplicitChildName == null - ? this.cpkHasOneUnidirectionalParentImplicitChildName - : cpkHasOneUnidirectionalParentImplicitChildName.value); + id: id, + name: name, + implicitChild: + implicitChild == null ? this.implicitChild : implicitChild.value, + explicitChildID: + explicitChildID == null + ? this.explicitChildID + : explicitChildID.value, + explicitChildName: + explicitChildName == null + ? this.explicitChildName + : explicitChildName.value, + explicitChild: + explicitChild == null ? this.explicitChild : explicitChild.value, + cpkHasOneUnidirectionalParentImplicitChildId: + cpkHasOneUnidirectionalParentImplicitChildId == null + ? this.cpkHasOneUnidirectionalParentImplicitChildId + : cpkHasOneUnidirectionalParentImplicitChildId.value, + cpkHasOneUnidirectionalParentImplicitChildName: + cpkHasOneUnidirectionalParentImplicitChildName == null + ? this.cpkHasOneUnidirectionalParentImplicitChildName + : cpkHasOneUnidirectionalParentImplicitChildName.value, + ); } CpkHasOneUnidirectionalParent.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _implicitChild = json['implicitChild'] != null - ? json['implicitChild']['serializedData'] != null - ? CpkHasOneUnidirectionalChild.fromJson( + : id = json['id'], + _name = json['name'], + _implicitChild = + json['implicitChild'] != null + ? json['implicitChild']['serializedData'] != null + ? CpkHasOneUnidirectionalChild.fromJson( new Map.from( - json['implicitChild']['serializedData'])) - : CpkHasOneUnidirectionalChild.fromJson( - new Map.from(json['implicitChild'])) - : null, - _explicitChildID = json['explicitChildID'], - _explicitChildName = json['explicitChildName'], - _explicitChild = json['explicitChild'] != null - ? json['explicitChild']['serializedData'] != null - ? CpkHasOneUnidirectionalChild.fromJson( + json['implicitChild']['serializedData'], + ), + ) + : CpkHasOneUnidirectionalChild.fromJson( + new Map.from(json['implicitChild']), + ) + : null, + _explicitChildID = json['explicitChildID'], + _explicitChildName = json['explicitChildName'], + _explicitChild = + json['explicitChild'] != null + ? json['explicitChild']['serializedData'] != null + ? CpkHasOneUnidirectionalChild.fromJson( new Map.from( - json['explicitChild']['serializedData'])) - : CpkHasOneUnidirectionalChild.fromJson( - new Map.from(json['explicitChild'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _cpkHasOneUnidirectionalParentImplicitChildId = - json['cpkHasOneUnidirectionalParentImplicitChildId'], - _cpkHasOneUnidirectionalParentImplicitChildName = - json['cpkHasOneUnidirectionalParentImplicitChildName']; + json['explicitChild']['serializedData'], + ), + ) + : CpkHasOneUnidirectionalChild.fromJson( + new Map.from(json['explicitChild']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _cpkHasOneUnidirectionalParentImplicitChildId = + json['cpkHasOneUnidirectionalParentImplicitChildId'], + _cpkHasOneUnidirectionalParentImplicitChildName = + json['cpkHasOneUnidirectionalParentImplicitChildName']; Map toJson() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild?.toJson(), - 'explicitChildID': _explicitChildID, - 'explicitChildName': _explicitChildName, - 'explicitChild': _explicitChild?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'cpkHasOneUnidirectionalParentImplicitChildId': - _cpkHasOneUnidirectionalParentImplicitChildId, - 'cpkHasOneUnidirectionalParentImplicitChildName': - _cpkHasOneUnidirectionalParentImplicitChildName - }; + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild?.toJson(), + 'explicitChildID': _explicitChildID, + 'explicitChildName': _explicitChildName, + 'explicitChild': _explicitChild?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'cpkHasOneUnidirectionalParentImplicitChildId': + _cpkHasOneUnidirectionalParentImplicitChildId, + 'cpkHasOneUnidirectionalParentImplicitChildName': + _cpkHasOneUnidirectionalParentImplicitChildName, + }; Map toMap() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild, - 'explicitChildID': _explicitChildID, - 'explicitChildName': _explicitChildName, - 'explicitChild': _explicitChild, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'cpkHasOneUnidirectionalParentImplicitChildId': - _cpkHasOneUnidirectionalParentImplicitChildId, - 'cpkHasOneUnidirectionalParentImplicitChildName': - _cpkHasOneUnidirectionalParentImplicitChildName - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkHasOneUnidirectionalParentModelIdentifier>(); + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild, + 'explicitChildID': _explicitChildID, + 'explicitChildName': _explicitChildName, + 'explicitChild': _explicitChild, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'cpkHasOneUnidirectionalParentImplicitChildId': + _cpkHasOneUnidirectionalParentImplicitChildId, + 'cpkHasOneUnidirectionalParentImplicitChildName': + _cpkHasOneUnidirectionalParentImplicitChildName, + }; + + static final amplify_core.QueryModelIdentifier< + CpkHasOneUnidirectionalParentModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkHasOneUnidirectionalParentModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILD = amplify_core.QueryField( - fieldName: "implicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasOneUnidirectionalChild')); - static final EXPLICITCHILDID = - amplify_core.QueryField(fieldName: "explicitChildID"); - static final EXPLICITCHILDNAME = - amplify_core.QueryField(fieldName: "explicitChildName"); + fieldName: "implicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasOneUnidirectionalChild', + ), + ); + static final EXPLICITCHILDID = amplify_core.QueryField( + fieldName: "explicitChildID", + ); + static final EXPLICITCHILDNAME = amplify_core.QueryField( + fieldName: "explicitChildName", + ); static final EXPLICITCHILD = amplify_core.QueryField( - fieldName: "explicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkHasOneUnidirectionalChild')); + fieldName: "explicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkHasOneUnidirectionalChild', + ), + ); static final CPKHASONEUNIDIRECTIONALPARENTIMPLICITCHILDID = amplify_core.QueryField( - fieldName: "cpkHasOneUnidirectionalParentImplicitChildId"); + fieldName: "cpkHasOneUnidirectionalParentImplicitChildId", + ); static final CPKHASONEUNIDIRECTIONALPARENTIMPLICITCHILDNAME = amplify_core.QueryField( - fieldName: "cpkHasOneUnidirectionalParentImplicitChildName"); + fieldName: "cpkHasOneUnidirectionalParentImplicitChildName", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkHasOneUnidirectionalParent"; - modelSchemaDefinition.pluralName = "CpkHasOneUnidirectionalParents"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasOneUnidirectionalParent.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkHasOneUnidirectionalParent.IMPLICITCHILD, - isRequired: false, - ofModelName: 'CpkHasOneUnidirectionalChild', - associatedKey: CpkHasOneUnidirectionalChild.ID)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasOneUnidirectionalParent.EXPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasOneUnidirectionalParent.EXPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkHasOneUnidirectionalParent.EXPLICITCHILD, - isRequired: false, - ofModelName: 'CpkHasOneUnidirectionalChild', - associatedKey: CpkHasOneUnidirectionalChild.ID)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkHasOneUnidirectionalParent"; + modelSchemaDefinition.pluralName = "CpkHasOneUnidirectionalParents"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasOneUnidirectionalParent.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkHasOneUnidirectionalParent.IMPLICITCHILD, + isRequired: false, + ofModelName: 'CpkHasOneUnidirectionalChild', + associatedKey: CpkHasOneUnidirectionalChild.ID, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasOneUnidirectionalParent.EXPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkHasOneUnidirectionalParent.EXPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkHasOneUnidirectionalParent.EXPLICITCHILD, + isRequired: false, + ofModelName: 'CpkHasOneUnidirectionalChild', + associatedKey: CpkHasOneUnidirectionalChild.ID, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasOneUnidirectionalParent - .CPKHASONEUNIDIRECTIONALPARENTIMPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkHasOneUnidirectionalParent - .CPKHASONEUNIDIRECTIONALPARENTIMPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkHasOneUnidirectionalParent + .CPKHASONEUNIDIRECTIONALPARENTIMPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkHasOneUnidirectionalParent + .CPKHASONEUNIDIRECTIONALPARENTIMPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _CpkHasOneUnidirectionalParentModelType @@ -437,18 +513,22 @@ class CpkHasOneUnidirectionalParentModelIdentifier * Create an instance of CpkHasOneUnidirectionalParentModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkHasOneUnidirectionalParentModelIdentifier( - {required this.id, required this.name}); + const CpkHasOneUnidirectionalParentModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkInventory.dart b/packages/amplify_datastore/example/lib/models/CpkInventory.dart index c029905a92..a15292d1a9 100644 --- a/packages/amplify_datastore/example/lib/models/CpkInventory.dart +++ b/packages/amplify_datastore/example/lib/models/CpkInventory.dart @@ -36,23 +36,29 @@ class CpkInventory extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkInventoryModelIdentifier get modelIdentifier { try { return CpkInventoryModelIdentifier( - productId: _productId!, - productName: _productName!, - warehouseId: _warehouseId!); + productId: _productId!, + productName: _productName!, + warehouseId: _warehouseId!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,11 +67,15 @@ class CpkInventory extends amplify_core.Model { return _productId!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -74,11 +84,15 @@ class CpkInventory extends amplify_core.Model { return _productName!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -87,11 +101,15 @@ class CpkInventory extends amplify_core.Model { return _warehouseId!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -107,30 +125,32 @@ class CpkInventory extends amplify_core.Model { return _updatedAt; } - const CpkInventory._internal( - {required productId, - required productName, - required warehouseId, - description, - createdAt, - updatedAt}) - : _productId = productId, - _productName = productName, - _warehouseId = warehouseId, - _description = description, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkInventory( - {required String productId, - required String productName, - required String warehouseId, - String? description}) { + const CpkInventory._internal({ + required productId, + required productName, + required warehouseId, + description, + createdAt, + updatedAt, + }) : _productId = productId, + _productName = productName, + _warehouseId = warehouseId, + _description = description, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkInventory({ + required String productId, + required String productName, + required String warehouseId, + String? description, + }) { return CpkInventory._internal( - productId: productId, - productName: productName, - warehouseId: warehouseId, - description: description); + productId: productId, + productName: productName, + warehouseId: warehouseId, + description: description, + ); } bool equals(Object other) { @@ -159,11 +179,12 @@ class CpkInventory extends amplify_core.Model { buffer.write("productName=" + "$_productName" + ", "); buffer.write("warehouseId=" + "$_warehouseId" + ", "); buffer.write("description=" + "$_description" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -171,109 +192,138 @@ class CpkInventory extends amplify_core.Model { CpkInventory copyWith({String? description}) { return CpkInventory._internal( - productId: productId, - productName: productName, - warehouseId: warehouseId, - description: description ?? this.description); + productId: productId, + productName: productName, + warehouseId: warehouseId, + description: description ?? this.description, + ); } - CpkInventory copyWithModelFieldValues( - {ModelFieldValue? description}) { + CpkInventory copyWithModelFieldValues({ + ModelFieldValue? description, + }) { return CpkInventory._internal( - productId: productId, - productName: productName, - warehouseId: warehouseId, - description: - description == null ? this.description : description.value); + productId: productId, + productName: productName, + warehouseId: warehouseId, + description: description == null ? this.description : description.value, + ); } CpkInventory.fromJson(Map json) - : _productId = json['productId'], - _productName = json['productName'], - _warehouseId = json['warehouseId'], - _description = json['description'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : _productId = json['productId'], + _productName = json['productName'], + _warehouseId = json['warehouseId'], + _description = json['description'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'productId': _productId, - 'productName': _productName, - 'warehouseId': _warehouseId, - 'description': _description, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'productId': _productId, + 'productName': _productName, + 'warehouseId': _warehouseId, + 'description': _description, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'productId': _productId, - 'productName': _productName, - 'warehouseId': _warehouseId, - 'description': _description, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'productId': _productId, + 'productName': _productName, + 'warehouseId': _warehouseId, + 'description': _description, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final PRODUCTID = amplify_core.QueryField(fieldName: "productId"); static final PRODUCTNAME = amplify_core.QueryField(fieldName: "productName"); static final WAREHOUSEID = amplify_core.QueryField(fieldName: "warehouseId"); static final DESCRIPTION = amplify_core.QueryField(fieldName: "description"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkInventory"; - modelSchemaDefinition.pluralName = "CpkInventories"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["productId", "productName", "warehouseId"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkInventory.PRODUCTID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkInventory.PRODUCTNAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkInventory.WAREHOUSEID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkInventory.DESCRIPTION, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkInventory"; + modelSchemaDefinition.pluralName = "CpkInventories"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["productId", "productName", "warehouseId"], + name: null, + ), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkInventory.PRODUCTID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkInventory.PRODUCTNAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkInventory.WAREHOUSEID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkInventory.DESCRIPTION, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkInventoryModelType extends amplify_core.ModelType { @@ -304,23 +354,24 @@ class CpkInventoryModelIdentifier * Create an instance of CpkInventoryModelIdentifier using [productId] the primary key. * And [productName], [warehouseId] the sort keys. */ - const CpkInventoryModelIdentifier( - {required this.productId, - required this.productName, - required this.warehouseId}); + const CpkInventoryModelIdentifier({ + required this.productId, + required this.productName, + required this.warehouseId, + }); @override Map serializeAsMap() => ({ - 'productId': productId, - 'productName': productName, - 'warehouseId': warehouseId - }); + 'productId': productId, + 'productName': productName, + 'warehouseId': warehouseId, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkManyToManyPost.dart b/packages/amplify_datastore/example/lib/models/CpkManyToManyPost.dart index e1f0789818..8aa9001614 100644 --- a/packages/amplify_datastore/example/lib/models/CpkManyToManyPost.dart +++ b/packages/amplify_datastore/example/lib/models/CpkManyToManyPost.dart @@ -36,7 +36,8 @@ class CpkManyToManyPost extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class CpkManyToManyPost extends amplify_core.Model { return _title!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,19 +74,27 @@ class CpkManyToManyPost extends amplify_core.Model { return _updatedAt; } - const CpkManyToManyPost._internal( - {required this.id, required title, tags, createdAt, updatedAt}) - : _title = title, - _tags = tags, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkManyToManyPost( - {String? id, required String title, List? tags}) { + const CpkManyToManyPost._internal({ + required this.id, + required title, + tags, + createdAt, + updatedAt, + }) : _title = title, + _tags = tags, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkManyToManyPost({ + String? id, + required String title, + List? tags, + }) { return CpkManyToManyPost._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - title: title, - tags: tags != null ? List.unmodifiable(tags) : tags); + id: id == null ? amplify_core.UUID.getUUID() : id, + title: title, + tags: tags != null ? List.unmodifiable(tags) : tags, + ); } bool equals(Object other) { @@ -107,11 +120,12 @@ class CpkManyToManyPost extends amplify_core.Model { buffer.write("CpkManyToManyPost {"); buffer.write("id=" + "$id" + ", "); buffer.write("title=" + "$_title" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -119,104 +133,136 @@ class CpkManyToManyPost extends amplify_core.Model { CpkManyToManyPost copyWith({String? title, List? tags}) { return CpkManyToManyPost._internal( - id: id, title: title ?? this.title, tags: tags ?? this.tags); + id: id, + title: title ?? this.title, + tags: tags ?? this.tags, + ); } - CpkManyToManyPost copyWithModelFieldValues( - {ModelFieldValue? title, - ModelFieldValue?>? tags}) { + CpkManyToManyPost copyWithModelFieldValues({ + ModelFieldValue? title, + ModelFieldValue?>? tags, + }) { return CpkManyToManyPost._internal( - id: id, - title: title == null ? this.title : title.value, - tags: tags == null ? this.tags : tags.value); + id: id, + title: title == null ? this.title : title.value, + tags: tags == null ? this.tags : tags.value, + ); } CpkManyToManyPost.fromJson(Map json) - : id = json['id'], - _title = json['title'], - _tags = json['tags'] is Map - ? (json['tags']['items'] is List - ? (json['tags']['items'] as List) - .where((e) => e != null) - .map((e) => - CpkPostTags.fromJson(new Map.from(e))) - .toList() - : null) - : (json['tags'] is List - ? (json['tags'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => CpkPostTags.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _title = json['title'], + _tags = + json['tags'] is Map + ? (json['tags']['items'] is List + ? (json['tags']['items'] as List) + .where((e) => e != null) + .map( + (e) => CpkPostTags.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['tags'] is List + ? (json['tags'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => CpkPostTags.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'title': _title, - 'tags': _tags?.map((CpkPostTags? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'title': _title, + 'tags': _tags?.map((CpkPostTags? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'title': _title, - 'tags': _tags, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'id': id, + 'title': _title, + 'tags': _tags, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkManyToManyPostModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final TITLE = amplify_core.QueryField(fieldName: "title"); static final TAGS = amplify_core.QueryField( - fieldName: "tags", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkPostTags')); + fieldName: "tags", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkPostTags', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkManyToManyPost"; - modelSchemaDefinition.pluralName = "CpkManyToManyPosts"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkManyToManyPost.TITLE, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: CpkManyToManyPost.TAGS, - isRequired: false, - ofModelName: 'CpkPostTags', - associatedKey: CpkPostTags.CPKMANYTOMANYPOST)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkManyToManyPost"; + modelSchemaDefinition.pluralName = "CpkManyToManyPosts"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkManyToManyPost.TITLE, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: CpkManyToManyPost.TAGS, + isRequired: false, + ofModelName: 'CpkPostTags', + associatedKey: CpkPostTags.CPKMANYTOMANYPOST, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkManyToManyPostModelType @@ -249,10 +295,10 @@ class CpkManyToManyPostModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkManyToManyTag.dart b/packages/amplify_datastore/example/lib/models/CpkManyToManyTag.dart index 5daeb5cea2..df9327d632 100644 --- a/packages/amplify_datastore/example/lib/models/CpkManyToManyTag.dart +++ b/packages/amplify_datastore/example/lib/models/CpkManyToManyTag.dart @@ -36,7 +36,8 @@ class CpkManyToManyTag extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -45,11 +46,15 @@ class CpkManyToManyTag extends amplify_core.Model { return CpkManyToManyTagModelIdentifier(id: id, label: _label!); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -58,11 +63,15 @@ class CpkManyToManyTag extends amplify_core.Model { return _label!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -78,19 +87,27 @@ class CpkManyToManyTag extends amplify_core.Model { return _updatedAt; } - const CpkManyToManyTag._internal( - {required this.id, required label, posts, createdAt, updatedAt}) - : _label = label, - _posts = posts, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkManyToManyTag( - {String? id, required String label, List? posts}) { + const CpkManyToManyTag._internal({ + required this.id, + required label, + posts, + createdAt, + updatedAt, + }) : _label = label, + _posts = posts, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkManyToManyTag({ + String? id, + required String label, + List? posts, + }) { return CpkManyToManyTag._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - label: label, - posts: posts != null ? List.unmodifiable(posts) : posts); + id: id == null ? amplify_core.UUID.getUUID() : id, + label: label, + posts: posts != null ? List.unmodifiable(posts) : posts, + ); } bool equals(Object other) { @@ -116,11 +133,12 @@ class CpkManyToManyTag extends amplify_core.Model { buffer.write("CpkManyToManyTag {"); buffer.write("id=" + "$id" + ", "); buffer.write("label=" + "$_label" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -128,105 +146,139 @@ class CpkManyToManyTag extends amplify_core.Model { CpkManyToManyTag copyWith({List? posts}) { return CpkManyToManyTag._internal( - id: id, label: label, posts: posts ?? this.posts); + id: id, + label: label, + posts: posts ?? this.posts, + ); } - CpkManyToManyTag copyWithModelFieldValues( - {ModelFieldValue?>? posts}) { + CpkManyToManyTag copyWithModelFieldValues({ + ModelFieldValue?>? posts, + }) { return CpkManyToManyTag._internal( - id: id, label: label, posts: posts == null ? this.posts : posts.value); + id: id, + label: label, + posts: posts == null ? this.posts : posts.value, + ); } CpkManyToManyTag.fromJson(Map json) - : id = json['id'], - _label = json['label'], - _posts = json['posts'] is Map - ? (json['posts']['items'] is List - ? (json['posts']['items'] as List) - .where((e) => e != null) - .map((e) => - CpkPostTags.fromJson(new Map.from(e))) - .toList() - : null) - : (json['posts'] is List - ? (json['posts'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => CpkPostTags.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _label = json['label'], + _posts = + json['posts'] is Map + ? (json['posts']['items'] is List + ? (json['posts']['items'] as List) + .where((e) => e != null) + .map( + (e) => CpkPostTags.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['posts'] is List + ? (json['posts'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => CpkPostTags.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'label': _label, - 'posts': _posts?.map((CpkPostTags? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'label': _label, + 'posts': _posts?.map((CpkPostTags? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'label': _label, - 'posts': _posts, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'id': id, + 'label': _label, + 'posts': _posts, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkManyToManyTagModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final LABEL = amplify_core.QueryField(fieldName: "label"); static final POSTS = amplify_core.QueryField( - fieldName: "posts", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkPostTags')); + fieldName: "posts", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkPostTags', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkManyToManyTag"; - modelSchemaDefinition.pluralName = "CpkManyToManyTags"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "label"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkManyToManyTag.LABEL, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: CpkManyToManyTag.POSTS, - isRequired: false, - ofModelName: 'CpkPostTags', - associatedKey: CpkPostTags.CPKMANYTOMANYTAG)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkManyToManyTag"; + modelSchemaDefinition.pluralName = "CpkManyToManyTags"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "label"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkManyToManyTag.LABEL, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: CpkManyToManyTag.POSTS, + isRequired: false, + ofModelName: 'CpkPostTags', + associatedKey: CpkPostTags.CPKMANYTOMANYTAG, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkManyToManyTagModelType @@ -257,18 +309,22 @@ class CpkManyToManyTagModelIdentifier * Create an instance of CpkManyToManyTagModelIdentifier using [id] the primary key. * And [label] the sort key. */ - const CpkManyToManyTagModelIdentifier( - {required this.id, required this.label}); + const CpkManyToManyTagModelIdentifier({ + required this.id, + required this.label, + }); @override - Map serializeAsMap() => - ({'id': id, 'label': label}); + Map serializeAsMap() => ({ + 'id': id, + 'label': label, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart index ea762b7db0..c4cf7ea807 100644 --- a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart +++ b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalChildExplicitCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalChildExplicitCDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildExplicitCD._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildExplicitCD( - {String? id, - required String name, - CpkOneToOneBidirectionalParentCD? belongsToParent}) { + const CpkOneToOneBidirectionalChildExplicitCD._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildExplicitCD({ + String? id, + required String name, + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -119,122 +136,155 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildExplicitCD {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildExplicitCD copyWith( - {CpkOneToOneBidirectionalParentCD? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitCD copyWith({ + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildExplicitCD copyWithModelFieldValues( - {ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitCD copyWithModelFieldValues({ + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildExplicitCD.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentCD.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentCD.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentCD.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentCD.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitCDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitCDModelIdentifier>(); + CpkOneToOneBidirectionalChildExplicitCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildExplicitCDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentCD')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitCD"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildExplicitCDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildExplicitCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, - isRequired: false, - targetNames: ['belongsToParentID', 'belongsToParentName'], - ofModelName: 'CpkOneToOneBidirectionalParentCD')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitCD"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildExplicitCDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildExplicitCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, + isRequired: false, + targetNames: ['belongsToParentID', 'belongsToParentName'], + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildExplicitCDModelType @@ -243,7 +293,8 @@ class _CpkOneToOneBidirectionalChildExplicitCDModelType @override CpkOneToOneBidirectionalChildExplicitCD fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildExplicitCD.fromJson(jsonData); } @@ -267,18 +318,22 @@ class CpkOneToOneBidirectionalChildExplicitCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalChildExplicitCDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalChildExplicitCDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalChildExplicitCDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitID.dart b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitID.dart index 5b650587e2..b2376c8600 100644 --- a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitID.dart +++ b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildExplicitID.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalChildExplicitID extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalChildExplicitIDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalChildExplicitIDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalChildExplicitID extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkOneToOneBidirectionalChildExplicitID extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildExplicitID._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildExplicitID( - {String? id, - required String name, - CpkOneToOneBidirectionalParentID? belongsToParent}) { + const CpkOneToOneBidirectionalChildExplicitID._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildExplicitID({ + String? id, + required String name, + CpkOneToOneBidirectionalParentID? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitID._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -119,122 +136,155 @@ class CpkOneToOneBidirectionalChildExplicitID extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildExplicitID {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildExplicitID copyWith( - {CpkOneToOneBidirectionalParentID? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitID copyWith({ + CpkOneToOneBidirectionalParentID? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitID._internal( - id: id, - name: name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildExplicitID copyWithModelFieldValues( - {ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitID copyWithModelFieldValues({ + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitID._internal( - id: id, - name: name, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildExplicitID.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentID.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentID.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentID.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentID.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitIDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitIDModelIdentifier>(); + CpkOneToOneBidirectionalChildExplicitIDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildExplicitIDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentID')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentID', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitID"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildExplicitIDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildExplicitID.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildExplicitID.BELONGSTOPARENT, - isRequired: false, - targetNames: ['belongsToParentID', 'belongsToParentName'], - ofModelName: 'CpkOneToOneBidirectionalParentID')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitID"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildExplicitIDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildExplicitID.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildExplicitID.BELONGSTOPARENT, + isRequired: false, + targetNames: ['belongsToParentID', 'belongsToParentName'], + ofModelName: 'CpkOneToOneBidirectionalParentID', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildExplicitIDModelType @@ -243,7 +293,8 @@ class _CpkOneToOneBidirectionalChildExplicitIDModelType @override CpkOneToOneBidirectionalChildExplicitID fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildExplicitID.fromJson(jsonData); } @@ -267,18 +318,22 @@ class CpkOneToOneBidirectionalChildExplicitIDModelIdentifier * Create an instance of CpkOneToOneBidirectionalChildExplicitIDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalChildExplicitIDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalChildExplicitIDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart index 05bcfdb2e3..0c72f680d9 100644 --- a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart +++ b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalChildImplicitCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalChildImplicitCDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildImplicitCD._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildImplicitCD( - {String? id, - required String name, - CpkOneToOneBidirectionalParentCD? belongsToParent}) { + const CpkOneToOneBidirectionalChildImplicitCD._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildImplicitCD({ + String? id, + required String name, + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -119,125 +136,158 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildImplicitCD {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildImplicitCD copyWith( - {CpkOneToOneBidirectionalParentCD? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitCD copyWith({ + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildImplicitCD copyWithModelFieldValues( - {ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitCD copyWithModelFieldValues({ + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildImplicitCD.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentCD.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentCD.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentCD.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentCD.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitCDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitCDModelIdentifier>(); + CpkOneToOneBidirectionalChildImplicitCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildImplicitCDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentCD')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitCD"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildImplicitCDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildImplicitCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, - isRequired: false, - targetNames: [ - 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentCustomId', - 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentName' - ], - ofModelName: 'CpkOneToOneBidirectionalParentCD')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitCD"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildImplicitCDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildImplicitCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, + isRequired: false, + targetNames: [ + 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentCustomId', + 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentName', + ], + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildImplicitCDModelType @@ -246,7 +296,8 @@ class _CpkOneToOneBidirectionalChildImplicitCDModelType @override CpkOneToOneBidirectionalChildImplicitCD fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildImplicitCD.fromJson(jsonData); } @@ -270,18 +321,22 @@ class CpkOneToOneBidirectionalChildImplicitCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalChildImplicitCDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalChildImplicitCDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalChildImplicitCDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitID.dart b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitID.dart index 610c855d08..6ac91708bb 100644 --- a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitID.dart +++ b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalChildImplicitID.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalChildImplicitID extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalChildImplicitIDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalChildImplicitIDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalChildImplicitID extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkOneToOneBidirectionalChildImplicitID extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildImplicitID._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildImplicitID( - {String? id, - required String name, - CpkOneToOneBidirectionalParentID? belongsToParent}) { + const CpkOneToOneBidirectionalChildImplicitID._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildImplicitID({ + String? id, + required String name, + CpkOneToOneBidirectionalParentID? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitID._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -119,125 +136,158 @@ class CpkOneToOneBidirectionalChildImplicitID extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildImplicitID {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildImplicitID copyWith( - {CpkOneToOneBidirectionalParentID? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitID copyWith({ + CpkOneToOneBidirectionalParentID? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitID._internal( - id: id, - name: name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildImplicitID copyWithModelFieldValues( - {ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitID copyWithModelFieldValues({ + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitID._internal( - id: id, - name: name, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildImplicitID.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentID.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentID.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentID.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentID.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitIDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitIDModelIdentifier>(); + CpkOneToOneBidirectionalChildImplicitIDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildImplicitIDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentID')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentID', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitID"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildImplicitIDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildImplicitID.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildImplicitID.BELONGSTOPARENT, - isRequired: false, - targetNames: [ - 'cpkOneToOneBidirectionalChildImplicitIDBelongsToParentId', - 'cpkOneToOneBidirectionalChildImplicitIDBelongsToParentName' - ], - ofModelName: 'CpkOneToOneBidirectionalParentID')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitID"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildImplicitIDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildImplicitID.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildImplicitID.BELONGSTOPARENT, + isRequired: false, + targetNames: [ + 'cpkOneToOneBidirectionalChildImplicitIDBelongsToParentId', + 'cpkOneToOneBidirectionalChildImplicitIDBelongsToParentName', + ], + ofModelName: 'CpkOneToOneBidirectionalParentID', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildImplicitIDModelType @@ -246,7 +296,8 @@ class _CpkOneToOneBidirectionalChildImplicitIDModelType @override CpkOneToOneBidirectionalChildImplicitID fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildImplicitID.fromJson(jsonData); } @@ -270,18 +321,22 @@ class CpkOneToOneBidirectionalChildImplicitIDModelIdentifier * Create an instance of CpkOneToOneBidirectionalChildImplicitIDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalChildImplicitIDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalChildImplicitIDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentCD.dart b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentCD.dart index 91bbd62db1..23af6d615f 100644 --- a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentCD.dart +++ b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentCD.dart @@ -40,21 +40,28 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkOneToOneBidirectionalParentCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalParentCDModelIdentifier( - customId: _customId!, name: _name!); + customId: _customId!, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -63,11 +70,15 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _customId!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -76,11 +87,15 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -116,54 +131,56 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _cpkOneToOneBidirectionalParentCDExplicitChildName; } - const CpkOneToOneBidirectionalParentCD._internal( - {required customId, - required name, - implicitChild, - explicitChild, - createdAt, - updatedAt, - cpkOneToOneBidirectionalParentCDImplicitChildId, - cpkOneToOneBidirectionalParentCDImplicitChildName, - cpkOneToOneBidirectionalParentCDExplicitChildId, - cpkOneToOneBidirectionalParentCDExplicitChildName}) - : _customId = customId, - _name = name, - _implicitChild = implicitChild, - _explicitChild = explicitChild, - _createdAt = createdAt, - _updatedAt = updatedAt, - _cpkOneToOneBidirectionalParentCDImplicitChildId = - cpkOneToOneBidirectionalParentCDImplicitChildId, - _cpkOneToOneBidirectionalParentCDImplicitChildName = - cpkOneToOneBidirectionalParentCDImplicitChildName, - _cpkOneToOneBidirectionalParentCDExplicitChildId = - cpkOneToOneBidirectionalParentCDExplicitChildId, - _cpkOneToOneBidirectionalParentCDExplicitChildName = - cpkOneToOneBidirectionalParentCDExplicitChildName; - - factory CpkOneToOneBidirectionalParentCD( - {required String customId, - required String name, - CpkOneToOneBidirectionalChildImplicitCD? implicitChild, - CpkOneToOneBidirectionalChildExplicitCD? explicitChild, - String? cpkOneToOneBidirectionalParentCDImplicitChildId, - String? cpkOneToOneBidirectionalParentCDImplicitChildName, - String? cpkOneToOneBidirectionalParentCDExplicitChildId, - String? cpkOneToOneBidirectionalParentCDExplicitChildName}) { + const CpkOneToOneBidirectionalParentCD._internal({ + required customId, + required name, + implicitChild, + explicitChild, + createdAt, + updatedAt, + cpkOneToOneBidirectionalParentCDImplicitChildId, + cpkOneToOneBidirectionalParentCDImplicitChildName, + cpkOneToOneBidirectionalParentCDExplicitChildId, + cpkOneToOneBidirectionalParentCDExplicitChildName, + }) : _customId = customId, + _name = name, + _implicitChild = implicitChild, + _explicitChild = explicitChild, + _createdAt = createdAt, + _updatedAt = updatedAt, + _cpkOneToOneBidirectionalParentCDImplicitChildId = + cpkOneToOneBidirectionalParentCDImplicitChildId, + _cpkOneToOneBidirectionalParentCDImplicitChildName = + cpkOneToOneBidirectionalParentCDImplicitChildName, + _cpkOneToOneBidirectionalParentCDExplicitChildId = + cpkOneToOneBidirectionalParentCDExplicitChildId, + _cpkOneToOneBidirectionalParentCDExplicitChildName = + cpkOneToOneBidirectionalParentCDExplicitChildName; + + factory CpkOneToOneBidirectionalParentCD({ + required String customId, + required String name, + CpkOneToOneBidirectionalChildImplicitCD? implicitChild, + CpkOneToOneBidirectionalChildExplicitCD? explicitChild, + String? cpkOneToOneBidirectionalParentCDImplicitChildId, + String? cpkOneToOneBidirectionalParentCDImplicitChildName, + String? cpkOneToOneBidirectionalParentCDExplicitChildId, + String? cpkOneToOneBidirectionalParentCDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: implicitChild, - explicitChild: explicitChild, - cpkOneToOneBidirectionalParentCDImplicitChildId: - cpkOneToOneBidirectionalParentCDImplicitChildId, - cpkOneToOneBidirectionalParentCDImplicitChildName: - cpkOneToOneBidirectionalParentCDImplicitChildName, - cpkOneToOneBidirectionalParentCDExplicitChildId: - cpkOneToOneBidirectionalParentCDExplicitChildId, - cpkOneToOneBidirectionalParentCDExplicitChildName: - cpkOneToOneBidirectionalParentCDExplicitChildName); + customId: customId, + name: name, + implicitChild: implicitChild, + explicitChild: explicitChild, + cpkOneToOneBidirectionalParentCDImplicitChildId: + cpkOneToOneBidirectionalParentCDImplicitChildId, + cpkOneToOneBidirectionalParentCDImplicitChildName: + cpkOneToOneBidirectionalParentCDImplicitChildName, + cpkOneToOneBidirectionalParentCDExplicitChildId: + cpkOneToOneBidirectionalParentCDExplicitChildId, + cpkOneToOneBidirectionalParentCDExplicitChildName: + cpkOneToOneBidirectionalParentCDExplicitChildName, + ); } bool equals(Object other) { @@ -198,263 +215,335 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalParentCD {"); buffer.write("customId=" + "$_customId" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt.format() : "null") + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDImplicitChildId=" + - "$_cpkOneToOneBidirectionalParentCDImplicitChildId" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDImplicitChildName=" + - "$_cpkOneToOneBidirectionalParentCDImplicitChildName" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDExplicitChildId=" + - "$_cpkOneToOneBidirectionalParentCDExplicitChildId" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDExplicitChildName=" + - "$_cpkOneToOneBidirectionalParentCDExplicitChildName"); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null") + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDImplicitChildId=" + + "$_cpkOneToOneBidirectionalParentCDImplicitChildId" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDImplicitChildName=" + + "$_cpkOneToOneBidirectionalParentCDImplicitChildName" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDExplicitChildId=" + + "$_cpkOneToOneBidirectionalParentCDExplicitChildId" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDExplicitChildName=" + + "$_cpkOneToOneBidirectionalParentCDExplicitChildName", + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalParentCD copyWith( - {CpkOneToOneBidirectionalChildImplicitCD? implicitChild, - CpkOneToOneBidirectionalChildExplicitCD? explicitChild, - String? cpkOneToOneBidirectionalParentCDImplicitChildId, - String? cpkOneToOneBidirectionalParentCDImplicitChildName, - String? cpkOneToOneBidirectionalParentCDExplicitChildId, - String? cpkOneToOneBidirectionalParentCDExplicitChildName}) { + CpkOneToOneBidirectionalParentCD copyWith({ + CpkOneToOneBidirectionalChildImplicitCD? implicitChild, + CpkOneToOneBidirectionalChildExplicitCD? explicitChild, + String? cpkOneToOneBidirectionalParentCDImplicitChildId, + String? cpkOneToOneBidirectionalParentCDImplicitChildName, + String? cpkOneToOneBidirectionalParentCDExplicitChildId, + String? cpkOneToOneBidirectionalParentCDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: implicitChild ?? this.implicitChild, - explicitChild: explicitChild ?? this.explicitChild, - cpkOneToOneBidirectionalParentCDImplicitChildId: - cpkOneToOneBidirectionalParentCDImplicitChildId ?? - this.cpkOneToOneBidirectionalParentCDImplicitChildId, - cpkOneToOneBidirectionalParentCDImplicitChildName: - cpkOneToOneBidirectionalParentCDImplicitChildName ?? - this.cpkOneToOneBidirectionalParentCDImplicitChildName, - cpkOneToOneBidirectionalParentCDExplicitChildId: - cpkOneToOneBidirectionalParentCDExplicitChildId ?? - this.cpkOneToOneBidirectionalParentCDExplicitChildId, - cpkOneToOneBidirectionalParentCDExplicitChildName: - cpkOneToOneBidirectionalParentCDExplicitChildName ?? - this.cpkOneToOneBidirectionalParentCDExplicitChildName); + customId: customId, + name: name, + implicitChild: implicitChild ?? this.implicitChild, + explicitChild: explicitChild ?? this.explicitChild, + cpkOneToOneBidirectionalParentCDImplicitChildId: + cpkOneToOneBidirectionalParentCDImplicitChildId ?? + this.cpkOneToOneBidirectionalParentCDImplicitChildId, + cpkOneToOneBidirectionalParentCDImplicitChildName: + cpkOneToOneBidirectionalParentCDImplicitChildName ?? + this.cpkOneToOneBidirectionalParentCDImplicitChildName, + cpkOneToOneBidirectionalParentCDExplicitChildId: + cpkOneToOneBidirectionalParentCDExplicitChildId ?? + this.cpkOneToOneBidirectionalParentCDExplicitChildId, + cpkOneToOneBidirectionalParentCDExplicitChildName: + cpkOneToOneBidirectionalParentCDExplicitChildName ?? + this.cpkOneToOneBidirectionalParentCDExplicitChildName, + ); } - CpkOneToOneBidirectionalParentCD copyWithModelFieldValues( - {ModelFieldValue? implicitChild, - ModelFieldValue? explicitChild, - ModelFieldValue? cpkOneToOneBidirectionalParentCDImplicitChildId, - ModelFieldValue? - cpkOneToOneBidirectionalParentCDImplicitChildName, - ModelFieldValue? cpkOneToOneBidirectionalParentCDExplicitChildId, - ModelFieldValue? - cpkOneToOneBidirectionalParentCDExplicitChildName}) { + CpkOneToOneBidirectionalParentCD copyWithModelFieldValues({ + ModelFieldValue? implicitChild, + ModelFieldValue? explicitChild, + ModelFieldValue? cpkOneToOneBidirectionalParentCDImplicitChildId, + ModelFieldValue? cpkOneToOneBidirectionalParentCDImplicitChildName, + ModelFieldValue? cpkOneToOneBidirectionalParentCDExplicitChildId, + ModelFieldValue? cpkOneToOneBidirectionalParentCDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: - implicitChild == null ? this.implicitChild : implicitChild.value, - explicitChild: - explicitChild == null ? this.explicitChild : explicitChild.value, - cpkOneToOneBidirectionalParentCDImplicitChildId: - cpkOneToOneBidirectionalParentCDImplicitChildId == null - ? this.cpkOneToOneBidirectionalParentCDImplicitChildId - : cpkOneToOneBidirectionalParentCDImplicitChildId.value, - cpkOneToOneBidirectionalParentCDImplicitChildName: - cpkOneToOneBidirectionalParentCDImplicitChildName == null - ? this.cpkOneToOneBidirectionalParentCDImplicitChildName - : cpkOneToOneBidirectionalParentCDImplicitChildName.value, - cpkOneToOneBidirectionalParentCDExplicitChildId: - cpkOneToOneBidirectionalParentCDExplicitChildId == null - ? this.cpkOneToOneBidirectionalParentCDExplicitChildId - : cpkOneToOneBidirectionalParentCDExplicitChildId.value, - cpkOneToOneBidirectionalParentCDExplicitChildName: - cpkOneToOneBidirectionalParentCDExplicitChildName == null - ? this.cpkOneToOneBidirectionalParentCDExplicitChildName - : cpkOneToOneBidirectionalParentCDExplicitChildName.value); + customId: customId, + name: name, + implicitChild: + implicitChild == null ? this.implicitChild : implicitChild.value, + explicitChild: + explicitChild == null ? this.explicitChild : explicitChild.value, + cpkOneToOneBidirectionalParentCDImplicitChildId: + cpkOneToOneBidirectionalParentCDImplicitChildId == null + ? this.cpkOneToOneBidirectionalParentCDImplicitChildId + : cpkOneToOneBidirectionalParentCDImplicitChildId.value, + cpkOneToOneBidirectionalParentCDImplicitChildName: + cpkOneToOneBidirectionalParentCDImplicitChildName == null + ? this.cpkOneToOneBidirectionalParentCDImplicitChildName + : cpkOneToOneBidirectionalParentCDImplicitChildName.value, + cpkOneToOneBidirectionalParentCDExplicitChildId: + cpkOneToOneBidirectionalParentCDExplicitChildId == null + ? this.cpkOneToOneBidirectionalParentCDExplicitChildId + : cpkOneToOneBidirectionalParentCDExplicitChildId.value, + cpkOneToOneBidirectionalParentCDExplicitChildName: + cpkOneToOneBidirectionalParentCDExplicitChildName == null + ? this.cpkOneToOneBidirectionalParentCDExplicitChildName + : cpkOneToOneBidirectionalParentCDExplicitChildName.value, + ); } CpkOneToOneBidirectionalParentCD.fromJson(Map json) - : _customId = json['customId'], - _name = json['name'], - _implicitChild = json['implicitChild'] != null - ? json['implicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildImplicitCD.fromJson( + : _customId = json['customId'], + _name = json['name'], + _implicitChild = + json['implicitChild'] != null + ? json['implicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildImplicitCD.fromJson( new Map.from( - json['implicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildImplicitCD.fromJson( - new Map.from(json['implicitChild'])) - : null, - _explicitChild = json['explicitChild'] != null - ? json['explicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildExplicitCD.fromJson( + json['implicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildImplicitCD.fromJson( + new Map.from(json['implicitChild']), + ) + : null, + _explicitChild = + json['explicitChild'] != null + ? json['explicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildExplicitCD.fromJson( new Map.from( - json['explicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildExplicitCD.fromJson( - new Map.from(json['explicitChild'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _cpkOneToOneBidirectionalParentCDImplicitChildId = - json['cpkOneToOneBidirectionalParentCDImplicitChildId'], - _cpkOneToOneBidirectionalParentCDImplicitChildName = - json['cpkOneToOneBidirectionalParentCDImplicitChildName'], - _cpkOneToOneBidirectionalParentCDExplicitChildId = - json['cpkOneToOneBidirectionalParentCDExplicitChildId'], - _cpkOneToOneBidirectionalParentCDExplicitChildName = - json['cpkOneToOneBidirectionalParentCDExplicitChildName']; + json['explicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildExplicitCD.fromJson( + new Map.from(json['explicitChild']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _cpkOneToOneBidirectionalParentCDImplicitChildId = + json['cpkOneToOneBidirectionalParentCDImplicitChildId'], + _cpkOneToOneBidirectionalParentCDImplicitChildName = + json['cpkOneToOneBidirectionalParentCDImplicitChildName'], + _cpkOneToOneBidirectionalParentCDExplicitChildId = + json['cpkOneToOneBidirectionalParentCDExplicitChildId'], + _cpkOneToOneBidirectionalParentCDExplicitChildName = + json['cpkOneToOneBidirectionalParentCDExplicitChildName']; Map toJson() => { - 'customId': _customId, - 'name': _name, - 'implicitChild': _implicitChild?.toJson(), - 'explicitChild': _explicitChild?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'cpkOneToOneBidirectionalParentCDImplicitChildId': - _cpkOneToOneBidirectionalParentCDImplicitChildId, - 'cpkOneToOneBidirectionalParentCDImplicitChildName': - _cpkOneToOneBidirectionalParentCDImplicitChildName, - 'cpkOneToOneBidirectionalParentCDExplicitChildId': - _cpkOneToOneBidirectionalParentCDExplicitChildId, - 'cpkOneToOneBidirectionalParentCDExplicitChildName': - _cpkOneToOneBidirectionalParentCDExplicitChildName - }; + 'customId': _customId, + 'name': _name, + 'implicitChild': _implicitChild?.toJson(), + 'explicitChild': _explicitChild?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'cpkOneToOneBidirectionalParentCDImplicitChildId': + _cpkOneToOneBidirectionalParentCDImplicitChildId, + 'cpkOneToOneBidirectionalParentCDImplicitChildName': + _cpkOneToOneBidirectionalParentCDImplicitChildName, + 'cpkOneToOneBidirectionalParentCDExplicitChildId': + _cpkOneToOneBidirectionalParentCDExplicitChildId, + 'cpkOneToOneBidirectionalParentCDExplicitChildName': + _cpkOneToOneBidirectionalParentCDExplicitChildName, + }; Map toMap() => { - 'customId': _customId, - 'name': _name, - 'implicitChild': _implicitChild, - 'explicitChild': _explicitChild, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'cpkOneToOneBidirectionalParentCDImplicitChildId': - _cpkOneToOneBidirectionalParentCDImplicitChildId, - 'cpkOneToOneBidirectionalParentCDImplicitChildName': - _cpkOneToOneBidirectionalParentCDImplicitChildName, - 'cpkOneToOneBidirectionalParentCDExplicitChildId': - _cpkOneToOneBidirectionalParentCDExplicitChildId, - 'cpkOneToOneBidirectionalParentCDExplicitChildName': - _cpkOneToOneBidirectionalParentCDExplicitChildName - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalParentCDModelIdentifier>(); + 'customId': _customId, + 'name': _name, + 'implicitChild': _implicitChild, + 'explicitChild': _explicitChild, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'cpkOneToOneBidirectionalParentCDImplicitChildId': + _cpkOneToOneBidirectionalParentCDImplicitChildId, + 'cpkOneToOneBidirectionalParentCDImplicitChildName': + _cpkOneToOneBidirectionalParentCDImplicitChildName, + 'cpkOneToOneBidirectionalParentCDExplicitChildId': + _cpkOneToOneBidirectionalParentCDExplicitChildId, + 'cpkOneToOneBidirectionalParentCDExplicitChildName': + _cpkOneToOneBidirectionalParentCDExplicitChildName, + }; + + static final amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentCDModelIdentifier + >(); static final CUSTOMID = amplify_core.QueryField(fieldName: "customId"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILD = amplify_core.QueryField( - fieldName: "implicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD')); + fieldName: "implicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', + ), + ); static final EXPLICITCHILD = amplify_core.QueryField( - fieldName: "explicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD')); + fieldName: "explicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', + ), + ); static final CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDID = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildId"); + fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildId", + ); static final CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDNAME = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildName"); + fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildName", + ); static final CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDID = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildId"); + fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildId", + ); static final CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDNAME = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildName"); + fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildName", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentCD"; - modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentCDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["customId", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD.CUSTOMID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentCD.IMPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', - associatedKey: - CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentCD.EXPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', - associatedKey: - CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentCD"; + modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentCDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["customId", "name"], name: null), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalParentCD.CUSTOMID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalParentCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentCD.IMPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', + associatedKey: + CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentCD.EXPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', + associatedKey: + CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalParentCDModelType @@ -485,18 +574,22 @@ class CpkOneToOneBidirectionalParentCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalParentCDModelIdentifier using [customId] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalParentCDModelIdentifier( - {required this.customId, required this.name}); + const CpkOneToOneBidirectionalParentCDModelIdentifier({ + required this.customId, + required this.name, + }); @override - Map serializeAsMap() => - ({'customId': customId, 'name': name}); + Map serializeAsMap() => ({ + 'customId': customId, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentID.dart b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentID.dart index 40e7f76ced..ace24836fd 100644 --- a/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentID.dart +++ b/packages/amplify_datastore/example/lib/models/CpkOneToOneBidirectionalParentID.dart @@ -40,21 +40,28 @@ class CpkOneToOneBidirectionalParentID extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalParentIDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalParentIDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -63,11 +70,15 @@ class CpkOneToOneBidirectionalParentID extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -103,53 +114,55 @@ class CpkOneToOneBidirectionalParentID extends amplify_core.Model { return _cpkOneToOneBidirectionalParentIDExplicitChildName; } - const CpkOneToOneBidirectionalParentID._internal( - {required this.id, - required name, - implicitChild, - explicitChild, - createdAt, - updatedAt, - cpkOneToOneBidirectionalParentIDImplicitChildId, - cpkOneToOneBidirectionalParentIDImplicitChildName, - cpkOneToOneBidirectionalParentIDExplicitChildId, - cpkOneToOneBidirectionalParentIDExplicitChildName}) - : _name = name, - _implicitChild = implicitChild, - _explicitChild = explicitChild, - _createdAt = createdAt, - _updatedAt = updatedAt, - _cpkOneToOneBidirectionalParentIDImplicitChildId = - cpkOneToOneBidirectionalParentIDImplicitChildId, - _cpkOneToOneBidirectionalParentIDImplicitChildName = - cpkOneToOneBidirectionalParentIDImplicitChildName, - _cpkOneToOneBidirectionalParentIDExplicitChildId = - cpkOneToOneBidirectionalParentIDExplicitChildId, - _cpkOneToOneBidirectionalParentIDExplicitChildName = - cpkOneToOneBidirectionalParentIDExplicitChildName; - - factory CpkOneToOneBidirectionalParentID( - {String? id, - required String name, - CpkOneToOneBidirectionalChildImplicitID? implicitChild, - CpkOneToOneBidirectionalChildExplicitID? explicitChild, - String? cpkOneToOneBidirectionalParentIDImplicitChildId, - String? cpkOneToOneBidirectionalParentIDImplicitChildName, - String? cpkOneToOneBidirectionalParentIDExplicitChildId, - String? cpkOneToOneBidirectionalParentIDExplicitChildName}) { + const CpkOneToOneBidirectionalParentID._internal({ + required this.id, + required name, + implicitChild, + explicitChild, + createdAt, + updatedAt, + cpkOneToOneBidirectionalParentIDImplicitChildId, + cpkOneToOneBidirectionalParentIDImplicitChildName, + cpkOneToOneBidirectionalParentIDExplicitChildId, + cpkOneToOneBidirectionalParentIDExplicitChildName, + }) : _name = name, + _implicitChild = implicitChild, + _explicitChild = explicitChild, + _createdAt = createdAt, + _updatedAt = updatedAt, + _cpkOneToOneBidirectionalParentIDImplicitChildId = + cpkOneToOneBidirectionalParentIDImplicitChildId, + _cpkOneToOneBidirectionalParentIDImplicitChildName = + cpkOneToOneBidirectionalParentIDImplicitChildName, + _cpkOneToOneBidirectionalParentIDExplicitChildId = + cpkOneToOneBidirectionalParentIDExplicitChildId, + _cpkOneToOneBidirectionalParentIDExplicitChildName = + cpkOneToOneBidirectionalParentIDExplicitChildName; + + factory CpkOneToOneBidirectionalParentID({ + String? id, + required String name, + CpkOneToOneBidirectionalChildImplicitID? implicitChild, + CpkOneToOneBidirectionalChildExplicitID? explicitChild, + String? cpkOneToOneBidirectionalParentIDImplicitChildId, + String? cpkOneToOneBidirectionalParentIDImplicitChildName, + String? cpkOneToOneBidirectionalParentIDExplicitChildId, + String? cpkOneToOneBidirectionalParentIDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentID._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - implicitChild: implicitChild, - explicitChild: explicitChild, - cpkOneToOneBidirectionalParentIDImplicitChildId: - cpkOneToOneBidirectionalParentIDImplicitChildId, - cpkOneToOneBidirectionalParentIDImplicitChildName: - cpkOneToOneBidirectionalParentIDImplicitChildName, - cpkOneToOneBidirectionalParentIDExplicitChildId: - cpkOneToOneBidirectionalParentIDExplicitChildId, - cpkOneToOneBidirectionalParentIDExplicitChildName: - cpkOneToOneBidirectionalParentIDExplicitChildName); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + implicitChild: implicitChild, + explicitChild: explicitChild, + cpkOneToOneBidirectionalParentIDImplicitChildId: + cpkOneToOneBidirectionalParentIDImplicitChildId, + cpkOneToOneBidirectionalParentIDImplicitChildName: + cpkOneToOneBidirectionalParentIDImplicitChildName, + cpkOneToOneBidirectionalParentIDExplicitChildId: + cpkOneToOneBidirectionalParentIDExplicitChildId, + cpkOneToOneBidirectionalParentIDExplicitChildName: + cpkOneToOneBidirectionalParentIDExplicitChildName, + ); } bool equals(Object other) { @@ -184,259 +197,327 @@ class CpkOneToOneBidirectionalParentID extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalParentID {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt.format() : "null") + - ", "); - buffer.write("cpkOneToOneBidirectionalParentIDImplicitChildId=" + - "$_cpkOneToOneBidirectionalParentIDImplicitChildId" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentIDImplicitChildName=" + - "$_cpkOneToOneBidirectionalParentIDImplicitChildName" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentIDExplicitChildId=" + - "$_cpkOneToOneBidirectionalParentIDExplicitChildId" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentIDExplicitChildName=" + - "$_cpkOneToOneBidirectionalParentIDExplicitChildName"); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null") + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentIDImplicitChildId=" + + "$_cpkOneToOneBidirectionalParentIDImplicitChildId" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentIDImplicitChildName=" + + "$_cpkOneToOneBidirectionalParentIDImplicitChildName" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentIDExplicitChildId=" + + "$_cpkOneToOneBidirectionalParentIDExplicitChildId" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentIDExplicitChildName=" + + "$_cpkOneToOneBidirectionalParentIDExplicitChildName", + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalParentID copyWith( - {CpkOneToOneBidirectionalChildImplicitID? implicitChild, - CpkOneToOneBidirectionalChildExplicitID? explicitChild, - String? cpkOneToOneBidirectionalParentIDImplicitChildId, - String? cpkOneToOneBidirectionalParentIDImplicitChildName, - String? cpkOneToOneBidirectionalParentIDExplicitChildId, - String? cpkOneToOneBidirectionalParentIDExplicitChildName}) { + CpkOneToOneBidirectionalParentID copyWith({ + CpkOneToOneBidirectionalChildImplicitID? implicitChild, + CpkOneToOneBidirectionalChildExplicitID? explicitChild, + String? cpkOneToOneBidirectionalParentIDImplicitChildId, + String? cpkOneToOneBidirectionalParentIDImplicitChildName, + String? cpkOneToOneBidirectionalParentIDExplicitChildId, + String? cpkOneToOneBidirectionalParentIDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentID._internal( - id: id, - name: name, - implicitChild: implicitChild ?? this.implicitChild, - explicitChild: explicitChild ?? this.explicitChild, - cpkOneToOneBidirectionalParentIDImplicitChildId: - cpkOneToOneBidirectionalParentIDImplicitChildId ?? - this.cpkOneToOneBidirectionalParentIDImplicitChildId, - cpkOneToOneBidirectionalParentIDImplicitChildName: - cpkOneToOneBidirectionalParentIDImplicitChildName ?? - this.cpkOneToOneBidirectionalParentIDImplicitChildName, - cpkOneToOneBidirectionalParentIDExplicitChildId: - cpkOneToOneBidirectionalParentIDExplicitChildId ?? - this.cpkOneToOneBidirectionalParentIDExplicitChildId, - cpkOneToOneBidirectionalParentIDExplicitChildName: - cpkOneToOneBidirectionalParentIDExplicitChildName ?? - this.cpkOneToOneBidirectionalParentIDExplicitChildName); + id: id, + name: name, + implicitChild: implicitChild ?? this.implicitChild, + explicitChild: explicitChild ?? this.explicitChild, + cpkOneToOneBidirectionalParentIDImplicitChildId: + cpkOneToOneBidirectionalParentIDImplicitChildId ?? + this.cpkOneToOneBidirectionalParentIDImplicitChildId, + cpkOneToOneBidirectionalParentIDImplicitChildName: + cpkOneToOneBidirectionalParentIDImplicitChildName ?? + this.cpkOneToOneBidirectionalParentIDImplicitChildName, + cpkOneToOneBidirectionalParentIDExplicitChildId: + cpkOneToOneBidirectionalParentIDExplicitChildId ?? + this.cpkOneToOneBidirectionalParentIDExplicitChildId, + cpkOneToOneBidirectionalParentIDExplicitChildName: + cpkOneToOneBidirectionalParentIDExplicitChildName ?? + this.cpkOneToOneBidirectionalParentIDExplicitChildName, + ); } - CpkOneToOneBidirectionalParentID copyWithModelFieldValues( - {ModelFieldValue? implicitChild, - ModelFieldValue? explicitChild, - ModelFieldValue? cpkOneToOneBidirectionalParentIDImplicitChildId, - ModelFieldValue? - cpkOneToOneBidirectionalParentIDImplicitChildName, - ModelFieldValue? cpkOneToOneBidirectionalParentIDExplicitChildId, - ModelFieldValue? - cpkOneToOneBidirectionalParentIDExplicitChildName}) { + CpkOneToOneBidirectionalParentID copyWithModelFieldValues({ + ModelFieldValue? implicitChild, + ModelFieldValue? explicitChild, + ModelFieldValue? cpkOneToOneBidirectionalParentIDImplicitChildId, + ModelFieldValue? cpkOneToOneBidirectionalParentIDImplicitChildName, + ModelFieldValue? cpkOneToOneBidirectionalParentIDExplicitChildId, + ModelFieldValue? cpkOneToOneBidirectionalParentIDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentID._internal( - id: id, - name: name, - implicitChild: - implicitChild == null ? this.implicitChild : implicitChild.value, - explicitChild: - explicitChild == null ? this.explicitChild : explicitChild.value, - cpkOneToOneBidirectionalParentIDImplicitChildId: - cpkOneToOneBidirectionalParentIDImplicitChildId == null - ? this.cpkOneToOneBidirectionalParentIDImplicitChildId - : cpkOneToOneBidirectionalParentIDImplicitChildId.value, - cpkOneToOneBidirectionalParentIDImplicitChildName: - cpkOneToOneBidirectionalParentIDImplicitChildName == null - ? this.cpkOneToOneBidirectionalParentIDImplicitChildName - : cpkOneToOneBidirectionalParentIDImplicitChildName.value, - cpkOneToOneBidirectionalParentIDExplicitChildId: - cpkOneToOneBidirectionalParentIDExplicitChildId == null - ? this.cpkOneToOneBidirectionalParentIDExplicitChildId - : cpkOneToOneBidirectionalParentIDExplicitChildId.value, - cpkOneToOneBidirectionalParentIDExplicitChildName: - cpkOneToOneBidirectionalParentIDExplicitChildName == null - ? this.cpkOneToOneBidirectionalParentIDExplicitChildName - : cpkOneToOneBidirectionalParentIDExplicitChildName.value); + id: id, + name: name, + implicitChild: + implicitChild == null ? this.implicitChild : implicitChild.value, + explicitChild: + explicitChild == null ? this.explicitChild : explicitChild.value, + cpkOneToOneBidirectionalParentIDImplicitChildId: + cpkOneToOneBidirectionalParentIDImplicitChildId == null + ? this.cpkOneToOneBidirectionalParentIDImplicitChildId + : cpkOneToOneBidirectionalParentIDImplicitChildId.value, + cpkOneToOneBidirectionalParentIDImplicitChildName: + cpkOneToOneBidirectionalParentIDImplicitChildName == null + ? this.cpkOneToOneBidirectionalParentIDImplicitChildName + : cpkOneToOneBidirectionalParentIDImplicitChildName.value, + cpkOneToOneBidirectionalParentIDExplicitChildId: + cpkOneToOneBidirectionalParentIDExplicitChildId == null + ? this.cpkOneToOneBidirectionalParentIDExplicitChildId + : cpkOneToOneBidirectionalParentIDExplicitChildId.value, + cpkOneToOneBidirectionalParentIDExplicitChildName: + cpkOneToOneBidirectionalParentIDExplicitChildName == null + ? this.cpkOneToOneBidirectionalParentIDExplicitChildName + : cpkOneToOneBidirectionalParentIDExplicitChildName.value, + ); } CpkOneToOneBidirectionalParentID.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _implicitChild = json['implicitChild'] != null - ? json['implicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildImplicitID.fromJson( + : id = json['id'], + _name = json['name'], + _implicitChild = + json['implicitChild'] != null + ? json['implicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildImplicitID.fromJson( new Map.from( - json['implicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildImplicitID.fromJson( - new Map.from(json['implicitChild'])) - : null, - _explicitChild = json['explicitChild'] != null - ? json['explicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildExplicitID.fromJson( + json['implicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildImplicitID.fromJson( + new Map.from(json['implicitChild']), + ) + : null, + _explicitChild = + json['explicitChild'] != null + ? json['explicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildExplicitID.fromJson( new Map.from( - json['explicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildExplicitID.fromJson( - new Map.from(json['explicitChild'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _cpkOneToOneBidirectionalParentIDImplicitChildId = - json['cpkOneToOneBidirectionalParentIDImplicitChildId'], - _cpkOneToOneBidirectionalParentIDImplicitChildName = - json['cpkOneToOneBidirectionalParentIDImplicitChildName'], - _cpkOneToOneBidirectionalParentIDExplicitChildId = - json['cpkOneToOneBidirectionalParentIDExplicitChildId'], - _cpkOneToOneBidirectionalParentIDExplicitChildName = - json['cpkOneToOneBidirectionalParentIDExplicitChildName']; + json['explicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildExplicitID.fromJson( + new Map.from(json['explicitChild']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _cpkOneToOneBidirectionalParentIDImplicitChildId = + json['cpkOneToOneBidirectionalParentIDImplicitChildId'], + _cpkOneToOneBidirectionalParentIDImplicitChildName = + json['cpkOneToOneBidirectionalParentIDImplicitChildName'], + _cpkOneToOneBidirectionalParentIDExplicitChildId = + json['cpkOneToOneBidirectionalParentIDExplicitChildId'], + _cpkOneToOneBidirectionalParentIDExplicitChildName = + json['cpkOneToOneBidirectionalParentIDExplicitChildName']; Map toJson() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild?.toJson(), - 'explicitChild': _explicitChild?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'cpkOneToOneBidirectionalParentIDImplicitChildId': - _cpkOneToOneBidirectionalParentIDImplicitChildId, - 'cpkOneToOneBidirectionalParentIDImplicitChildName': - _cpkOneToOneBidirectionalParentIDImplicitChildName, - 'cpkOneToOneBidirectionalParentIDExplicitChildId': - _cpkOneToOneBidirectionalParentIDExplicitChildId, - 'cpkOneToOneBidirectionalParentIDExplicitChildName': - _cpkOneToOneBidirectionalParentIDExplicitChildName - }; + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild?.toJson(), + 'explicitChild': _explicitChild?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'cpkOneToOneBidirectionalParentIDImplicitChildId': + _cpkOneToOneBidirectionalParentIDImplicitChildId, + 'cpkOneToOneBidirectionalParentIDImplicitChildName': + _cpkOneToOneBidirectionalParentIDImplicitChildName, + 'cpkOneToOneBidirectionalParentIDExplicitChildId': + _cpkOneToOneBidirectionalParentIDExplicitChildId, + 'cpkOneToOneBidirectionalParentIDExplicitChildName': + _cpkOneToOneBidirectionalParentIDExplicitChildName, + }; Map toMap() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild, - 'explicitChild': _explicitChild, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'cpkOneToOneBidirectionalParentIDImplicitChildId': - _cpkOneToOneBidirectionalParentIDImplicitChildId, - 'cpkOneToOneBidirectionalParentIDImplicitChildName': - _cpkOneToOneBidirectionalParentIDImplicitChildName, - 'cpkOneToOneBidirectionalParentIDExplicitChildId': - _cpkOneToOneBidirectionalParentIDExplicitChildId, - 'cpkOneToOneBidirectionalParentIDExplicitChildName': - _cpkOneToOneBidirectionalParentIDExplicitChildName - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalParentIDModelIdentifier>(); + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild, + 'explicitChild': _explicitChild, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'cpkOneToOneBidirectionalParentIDImplicitChildId': + _cpkOneToOneBidirectionalParentIDImplicitChildId, + 'cpkOneToOneBidirectionalParentIDImplicitChildName': + _cpkOneToOneBidirectionalParentIDImplicitChildName, + 'cpkOneToOneBidirectionalParentIDExplicitChildId': + _cpkOneToOneBidirectionalParentIDExplicitChildId, + 'cpkOneToOneBidirectionalParentIDExplicitChildName': + _cpkOneToOneBidirectionalParentIDExplicitChildName, + }; + + static final amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentIDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentIDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILD = amplify_core.QueryField( - fieldName: "implicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitID')); + fieldName: "implicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitID', + ), + ); static final EXPLICITCHILD = amplify_core.QueryField( - fieldName: "explicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitID')); + fieldName: "explicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitID', + ), + ); static final CPKONETOONEBIDIRECTIONALPARENTIDIMPLICITCHILDID = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentIDImplicitChildId"); + fieldName: "cpkOneToOneBidirectionalParentIDImplicitChildId", + ); static final CPKONETOONEBIDIRECTIONALPARENTIDIMPLICITCHILDNAME = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentIDImplicitChildName"); + fieldName: "cpkOneToOneBidirectionalParentIDImplicitChildName", + ); static final CPKONETOONEBIDIRECTIONALPARENTIDEXPLICITCHILDID = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentIDExplicitChildId"); + fieldName: "cpkOneToOneBidirectionalParentIDExplicitChildId", + ); static final CPKONETOONEBIDIRECTIONALPARENTIDEXPLICITCHILDNAME = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentIDExplicitChildName"); + fieldName: "cpkOneToOneBidirectionalParentIDExplicitChildName", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentID"; - modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentIDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentID.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentID.IMPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitID', - associatedKey: - CpkOneToOneBidirectionalChildImplicitID.BELONGSTOPARENT)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentID.EXPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitID', - associatedKey: - CpkOneToOneBidirectionalChildExplicitID.BELONGSTOPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentID"; + modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentIDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalParentID.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentID.IMPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitID', + associatedKey: + CpkOneToOneBidirectionalChildImplicitID.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentID.EXPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitID', + associatedKey: + CpkOneToOneBidirectionalChildExplicitID.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentID - .CPKONETOONEBIDIRECTIONALPARENTIDIMPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentID - .CPKONETOONEBIDIRECTIONALPARENTIDIMPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentID - .CPKONETOONEBIDIRECTIONALPARENTIDEXPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentID - .CPKONETOONEBIDIRECTIONALPARENTIDEXPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentID + .CPKONETOONEBIDIRECTIONALPARENTIDIMPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentID + .CPKONETOONEBIDIRECTIONALPARENTIDIMPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentID + .CPKONETOONEBIDIRECTIONALPARENTIDEXPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentID + .CPKONETOONEBIDIRECTIONALPARENTIDEXPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalParentIDModelType @@ -467,18 +548,22 @@ class CpkOneToOneBidirectionalParentIDModelIdentifier * Create an instance of CpkOneToOneBidirectionalParentIDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalParentIDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalParentIDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CpkPostTags.dart b/packages/amplify_datastore/example/lib/models/CpkPostTags.dart index 816268e519..d5c0ce670c 100644 --- a/packages/amplify_datastore/example/lib/models/CpkPostTags.dart +++ b/packages/amplify_datastore/example/lib/models/CpkPostTags.dart @@ -35,7 +35,8 @@ class CpkPostTags extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -48,11 +49,15 @@ class CpkPostTags extends amplify_core.Model { return _cpkManyToManyPost!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,11 +66,15 @@ class CpkPostTags extends amplify_core.Model { return _cpkManyToManyTag!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -77,25 +86,27 @@ class CpkPostTags extends amplify_core.Model { return _updatedAt; } - const CpkPostTags._internal( - {required this.id, - required cpkManyToManyPost, - required cpkManyToManyTag, - createdAt, - updatedAt}) - : _cpkManyToManyPost = cpkManyToManyPost, - _cpkManyToManyTag = cpkManyToManyTag, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkPostTags( - {String? id, - required CpkManyToManyPost cpkManyToManyPost, - required CpkManyToManyTag cpkManyToManyTag}) { + const CpkPostTags._internal({ + required this.id, + required cpkManyToManyPost, + required cpkManyToManyTag, + createdAt, + updatedAt, + }) : _cpkManyToManyPost = cpkManyToManyPost, + _cpkManyToManyTag = cpkManyToManyTag, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkPostTags({ + String? id, + required CpkManyToManyPost cpkManyToManyPost, + required CpkManyToManyTag cpkManyToManyTag, + }) { return CpkPostTags._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - cpkManyToManyPost: cpkManyToManyPost, - cpkManyToManyTag: cpkManyToManyTag); + id: id == null ? amplify_core.UUID.getUUID() : id, + cpkManyToManyPost: cpkManyToManyPost, + cpkManyToManyTag: cpkManyToManyTag, + ); } bool equals(Object other) { @@ -120,140 +131,185 @@ class CpkPostTags extends amplify_core.Model { buffer.write("CpkPostTags {"); buffer.write("id=" + "$id" + ", "); - buffer.write("cpkManyToManyPost=" + - (_cpkManyToManyPost != null ? _cpkManyToManyPost.toString() : "null") + - ", "); - buffer.write("cpkManyToManyTag=" + - (_cpkManyToManyTag != null ? _cpkManyToManyTag.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "cpkManyToManyPost=" + + (_cpkManyToManyPost != null + ? _cpkManyToManyPost.toString() + : "null") + + ", ", + ); + buffer.write( + "cpkManyToManyTag=" + + (_cpkManyToManyTag != null ? _cpkManyToManyTag.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkPostTags copyWith( - {CpkManyToManyPost? cpkManyToManyPost, - CpkManyToManyTag? cpkManyToManyTag}) { + CpkPostTags copyWith({ + CpkManyToManyPost? cpkManyToManyPost, + CpkManyToManyTag? cpkManyToManyTag, + }) { return CpkPostTags._internal( - id: id, - cpkManyToManyPost: cpkManyToManyPost ?? this.cpkManyToManyPost, - cpkManyToManyTag: cpkManyToManyTag ?? this.cpkManyToManyTag); + id: id, + cpkManyToManyPost: cpkManyToManyPost ?? this.cpkManyToManyPost, + cpkManyToManyTag: cpkManyToManyTag ?? this.cpkManyToManyTag, + ); } - CpkPostTags copyWithModelFieldValues( - {ModelFieldValue? cpkManyToManyPost, - ModelFieldValue? cpkManyToManyTag}) { + CpkPostTags copyWithModelFieldValues({ + ModelFieldValue? cpkManyToManyPost, + ModelFieldValue? cpkManyToManyTag, + }) { return CpkPostTags._internal( - id: id, - cpkManyToManyPost: cpkManyToManyPost == null - ? this.cpkManyToManyPost - : cpkManyToManyPost.value, - cpkManyToManyTag: cpkManyToManyTag == null - ? this.cpkManyToManyTag - : cpkManyToManyTag.value); + id: id, + cpkManyToManyPost: + cpkManyToManyPost == null + ? this.cpkManyToManyPost + : cpkManyToManyPost.value, + cpkManyToManyTag: + cpkManyToManyTag == null + ? this.cpkManyToManyTag + : cpkManyToManyTag.value, + ); } CpkPostTags.fromJson(Map json) - : id = json['id'], - _cpkManyToManyPost = json['cpkManyToManyPost'] != null - ? json['cpkManyToManyPost']['serializedData'] != null - ? CpkManyToManyPost.fromJson(new Map.from( - json['cpkManyToManyPost']['serializedData'])) - : CpkManyToManyPost.fromJson( - new Map.from(json['cpkManyToManyPost'])) - : null, - _cpkManyToManyTag = json['cpkManyToManyTag'] != null - ? json['cpkManyToManyTag']['serializedData'] != null - ? CpkManyToManyTag.fromJson(new Map.from( - json['cpkManyToManyTag']['serializedData'])) - : CpkManyToManyTag.fromJson( - new Map.from(json['cpkManyToManyTag'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _cpkManyToManyPost = + json['cpkManyToManyPost'] != null + ? json['cpkManyToManyPost']['serializedData'] != null + ? CpkManyToManyPost.fromJson( + new Map.from( + json['cpkManyToManyPost']['serializedData'], + ), + ) + : CpkManyToManyPost.fromJson( + new Map.from(json['cpkManyToManyPost']), + ) + : null, + _cpkManyToManyTag = + json['cpkManyToManyTag'] != null + ? json['cpkManyToManyTag']['serializedData'] != null + ? CpkManyToManyTag.fromJson( + new Map.from( + json['cpkManyToManyTag']['serializedData'], + ), + ) + : CpkManyToManyTag.fromJson( + new Map.from(json['cpkManyToManyTag']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'cpkManyToManyPost': _cpkManyToManyPost?.toJson(), - 'cpkManyToManyTag': _cpkManyToManyTag?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'cpkManyToManyPost': _cpkManyToManyPost?.toJson(), + 'cpkManyToManyTag': _cpkManyToManyTag?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'cpkManyToManyPost': _cpkManyToManyPost, - 'cpkManyToManyTag': _cpkManyToManyTag, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'cpkManyToManyPost': _cpkManyToManyPost, + 'cpkManyToManyTag': _cpkManyToManyTag, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final CPKMANYTOMANYPOST = amplify_core.QueryField( - fieldName: "cpkManyToManyPost", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkManyToManyPost')); + fieldName: "cpkManyToManyPost", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkManyToManyPost', + ), + ); static final CPKMANYTOMANYTAG = amplify_core.QueryField( - fieldName: "cpkManyToManyTag", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkManyToManyTag')); + fieldName: "cpkManyToManyTag", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkManyToManyTag', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkPostTags"; - modelSchemaDefinition.pluralName = "CpkPostTags"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["cpkManyToManyPostId"], name: "byCpkManyToManyPost"), - amplify_core.ModelIndex( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkPostTags"; + modelSchemaDefinition.pluralName = "CpkPostTags"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["cpkManyToManyPostId"], + name: "byCpkManyToManyPost", + ), + amplify_core.ModelIndex( fields: const ["cpkManyToManyTagId", "cpkManyToManyTaglabel"], - name: "byCpkManyToManyTag") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkPostTags.CPKMANYTOMANYPOST, - isRequired: true, - targetNames: ['cpkManyToManyPostId'], - ofModelName: 'CpkManyToManyPost')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkPostTags.CPKMANYTOMANYTAG, - isRequired: true, - targetNames: ['cpkManyToManyTagId', 'cpkManyToManyTaglabel'], - ofModelName: 'CpkManyToManyTag')); - - modelSchemaDefinition.addField( + name: "byCpkManyToManyTag", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkPostTags.CPKMANYTOMANYPOST, + isRequired: true, + targetNames: ['cpkManyToManyPostId'], + ofModelName: 'CpkManyToManyPost', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkPostTags.CPKMANYTOMANYTAG, + isRequired: true, + targetNames: ['cpkManyToManyTagId', 'cpkManyToManyTaglabel'], + ofModelName: 'CpkManyToManyTag', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkPostTagsModelType extends amplify_core.ModelType { @@ -285,10 +341,10 @@ class CpkPostTagsModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/CustomTypeWithAppsyncScalarTypes.dart b/packages/amplify_datastore/example/lib/models/CustomTypeWithAppsyncScalarTypes.dart index 5bd9f64912..581dddeb15 100644 --- a/packages/amplify_datastore/example/lib/models/CustomTypeWithAppsyncScalarTypes.dart +++ b/packages/amplify_datastore/example/lib/models/CustomTypeWithAppsyncScalarTypes.dart @@ -176,162 +176,181 @@ class CustomTypeWithAppsyncScalarTypes { return _listOfCustomTypeValue; } - const CustomTypeWithAppsyncScalarTypes._internal( - {stringValue, - listOfStringValue, - intValue, - listOfIntValue, - floatValue, - listOfFloatValue, - booleanValue, - listOfBooleanValue, - awsDateValue, - listOfAWSDateValue, - awsDateTimeValue, - listOfAWSDateTimeValue, - awsTimeValue, - listOfAWSTimeValue, - awsTimestampValue, - listOfAWSTimestampValue, - awsEmailValue, - listOfAWSEmailValue, - awsJsonValue, - listOfAWSJsonValue, - awsPhoneValue, - listOfAWSPhoneValue, - awsURLValue, - listOfAWSURLValue, - awsIPAddressValue, - listOfAWSIPAddressValue, - enumValue, - listOfEnumValue, - customTypeValue, - listOfCustomTypeValue}) - : _stringValue = stringValue, - _listOfStringValue = listOfStringValue, - _intValue = intValue, - _listOfIntValue = listOfIntValue, - _floatValue = floatValue, - _listOfFloatValue = listOfFloatValue, - _booleanValue = booleanValue, - _listOfBooleanValue = listOfBooleanValue, - _awsDateValue = awsDateValue, - _listOfAWSDateValue = listOfAWSDateValue, - _awsDateTimeValue = awsDateTimeValue, - _listOfAWSDateTimeValue = listOfAWSDateTimeValue, - _awsTimeValue = awsTimeValue, - _listOfAWSTimeValue = listOfAWSTimeValue, - _awsTimestampValue = awsTimestampValue, - _listOfAWSTimestampValue = listOfAWSTimestampValue, - _awsEmailValue = awsEmailValue, - _listOfAWSEmailValue = listOfAWSEmailValue, - _awsJsonValue = awsJsonValue, - _listOfAWSJsonValue = listOfAWSJsonValue, - _awsPhoneValue = awsPhoneValue, - _listOfAWSPhoneValue = listOfAWSPhoneValue, - _awsURLValue = awsURLValue, - _listOfAWSURLValue = listOfAWSURLValue, - _awsIPAddressValue = awsIPAddressValue, - _listOfAWSIPAddressValue = listOfAWSIPAddressValue, - _enumValue = enumValue, - _listOfEnumValue = listOfEnumValue, - _customTypeValue = customTypeValue, - _listOfCustomTypeValue = listOfCustomTypeValue; - - factory CustomTypeWithAppsyncScalarTypes( - {String? stringValue, - List? listOfStringValue, - int? intValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue, - EnumField? enumValue, - List? listOfEnumValue, - SimpleCustomType? customTypeValue, - List? listOfCustomTypeValue}) { + const CustomTypeWithAppsyncScalarTypes._internal({ + stringValue, + listOfStringValue, + intValue, + listOfIntValue, + floatValue, + listOfFloatValue, + booleanValue, + listOfBooleanValue, + awsDateValue, + listOfAWSDateValue, + awsDateTimeValue, + listOfAWSDateTimeValue, + awsTimeValue, + listOfAWSTimeValue, + awsTimestampValue, + listOfAWSTimestampValue, + awsEmailValue, + listOfAWSEmailValue, + awsJsonValue, + listOfAWSJsonValue, + awsPhoneValue, + listOfAWSPhoneValue, + awsURLValue, + listOfAWSURLValue, + awsIPAddressValue, + listOfAWSIPAddressValue, + enumValue, + listOfEnumValue, + customTypeValue, + listOfCustomTypeValue, + }) : _stringValue = stringValue, + _listOfStringValue = listOfStringValue, + _intValue = intValue, + _listOfIntValue = listOfIntValue, + _floatValue = floatValue, + _listOfFloatValue = listOfFloatValue, + _booleanValue = booleanValue, + _listOfBooleanValue = listOfBooleanValue, + _awsDateValue = awsDateValue, + _listOfAWSDateValue = listOfAWSDateValue, + _awsDateTimeValue = awsDateTimeValue, + _listOfAWSDateTimeValue = listOfAWSDateTimeValue, + _awsTimeValue = awsTimeValue, + _listOfAWSTimeValue = listOfAWSTimeValue, + _awsTimestampValue = awsTimestampValue, + _listOfAWSTimestampValue = listOfAWSTimestampValue, + _awsEmailValue = awsEmailValue, + _listOfAWSEmailValue = listOfAWSEmailValue, + _awsJsonValue = awsJsonValue, + _listOfAWSJsonValue = listOfAWSJsonValue, + _awsPhoneValue = awsPhoneValue, + _listOfAWSPhoneValue = listOfAWSPhoneValue, + _awsURLValue = awsURLValue, + _listOfAWSURLValue = listOfAWSURLValue, + _awsIPAddressValue = awsIPAddressValue, + _listOfAWSIPAddressValue = listOfAWSIPAddressValue, + _enumValue = enumValue, + _listOfEnumValue = listOfEnumValue, + _customTypeValue = customTypeValue, + _listOfCustomTypeValue = listOfCustomTypeValue; + + factory CustomTypeWithAppsyncScalarTypes({ + String? stringValue, + List? listOfStringValue, + int? intValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + EnumField? enumValue, + List? listOfEnumValue, + SimpleCustomType? customTypeValue, + List? listOfCustomTypeValue, + }) { return CustomTypeWithAppsyncScalarTypes._internal( - stringValue: stringValue, - listOfStringValue: listOfStringValue != null - ? List.unmodifiable(listOfStringValue) - : listOfStringValue, - intValue: intValue, - listOfIntValue: listOfIntValue != null - ? List.unmodifiable(listOfIntValue) - : listOfIntValue, - floatValue: floatValue, - listOfFloatValue: listOfFloatValue != null - ? List.unmodifiable(listOfFloatValue) - : listOfFloatValue, - booleanValue: booleanValue, - listOfBooleanValue: listOfBooleanValue != null - ? List.unmodifiable(listOfBooleanValue) - : listOfBooleanValue, - awsDateValue: awsDateValue, - listOfAWSDateValue: listOfAWSDateValue != null - ? List.unmodifiable(listOfAWSDateValue) - : listOfAWSDateValue, - awsDateTimeValue: awsDateTimeValue, - listOfAWSDateTimeValue: listOfAWSDateTimeValue != null - ? List.unmodifiable( - listOfAWSDateTimeValue) - : listOfAWSDateTimeValue, - awsTimeValue: awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue != null - ? List.unmodifiable(listOfAWSTimeValue) - : listOfAWSTimeValue, - awsTimestampValue: awsTimestampValue, - listOfAWSTimestampValue: listOfAWSTimestampValue != null - ? List.unmodifiable( - listOfAWSTimestampValue) - : listOfAWSTimestampValue, - awsEmailValue: awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue != null - ? List.unmodifiable(listOfAWSEmailValue) - : listOfAWSEmailValue, - awsJsonValue: awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue != null - ? List.unmodifiable(listOfAWSJsonValue) - : listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue != null - ? List.unmodifiable(listOfAWSPhoneValue) - : listOfAWSPhoneValue, - awsURLValue: awsURLValue, - listOfAWSURLValue: listOfAWSURLValue != null - ? List.unmodifiable(listOfAWSURLValue) - : listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue, - listOfAWSIPAddressValue: listOfAWSIPAddressValue != null - ? List.unmodifiable(listOfAWSIPAddressValue) - : listOfAWSIPAddressValue, - enumValue: enumValue, - listOfEnumValue: listOfEnumValue != null - ? List.unmodifiable(listOfEnumValue) - : listOfEnumValue, - customTypeValue: customTypeValue, - listOfCustomTypeValue: listOfCustomTypeValue != null - ? List.unmodifiable(listOfCustomTypeValue) - : listOfCustomTypeValue); + stringValue: stringValue, + listOfStringValue: + listOfStringValue != null + ? List.unmodifiable(listOfStringValue) + : listOfStringValue, + intValue: intValue, + listOfIntValue: + listOfIntValue != null + ? List.unmodifiable(listOfIntValue) + : listOfIntValue, + floatValue: floatValue, + listOfFloatValue: + listOfFloatValue != null + ? List.unmodifiable(listOfFloatValue) + : listOfFloatValue, + booleanValue: booleanValue, + listOfBooleanValue: + listOfBooleanValue != null + ? List.unmodifiable(listOfBooleanValue) + : listOfBooleanValue, + awsDateValue: awsDateValue, + listOfAWSDateValue: + listOfAWSDateValue != null + ? List.unmodifiable(listOfAWSDateValue) + : listOfAWSDateValue, + awsDateTimeValue: awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue != null + ? List.unmodifiable( + listOfAWSDateTimeValue, + ) + : listOfAWSDateTimeValue, + awsTimeValue: awsTimeValue, + listOfAWSTimeValue: + listOfAWSTimeValue != null + ? List.unmodifiable(listOfAWSTimeValue) + : listOfAWSTimeValue, + awsTimestampValue: awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue != null + ? List.unmodifiable( + listOfAWSTimestampValue, + ) + : listOfAWSTimestampValue, + awsEmailValue: awsEmailValue, + listOfAWSEmailValue: + listOfAWSEmailValue != null + ? List.unmodifiable(listOfAWSEmailValue) + : listOfAWSEmailValue, + awsJsonValue: awsJsonValue, + listOfAWSJsonValue: + listOfAWSJsonValue != null + ? List.unmodifiable(listOfAWSJsonValue) + : listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue, + listOfAWSPhoneValue: + listOfAWSPhoneValue != null + ? List.unmodifiable(listOfAWSPhoneValue) + : listOfAWSPhoneValue, + awsURLValue: awsURLValue, + listOfAWSURLValue: + listOfAWSURLValue != null + ? List.unmodifiable(listOfAWSURLValue) + : listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue != null + ? List.unmodifiable(listOfAWSIPAddressValue) + : listOfAWSIPAddressValue, + enumValue: enumValue, + listOfEnumValue: + listOfEnumValue != null + ? List.unmodifiable(listOfEnumValue) + : listOfEnumValue, + customTypeValue: customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue != null + ? List.unmodifiable(listOfCustomTypeValue) + : listOfCustomTypeValue, + ); } bool equals(Object other) { @@ -343,50 +362,80 @@ class CustomTypeWithAppsyncScalarTypes { if (identical(other, this)) return true; return other is CustomTypeWithAppsyncScalarTypes && _stringValue == other._stringValue && - DeepCollectionEquality() - .equals(_listOfStringValue, other._listOfStringValue) && + DeepCollectionEquality().equals( + _listOfStringValue, + other._listOfStringValue, + ) && _intValue == other._intValue && - DeepCollectionEquality() - .equals(_listOfIntValue, other._listOfIntValue) && + DeepCollectionEquality().equals( + _listOfIntValue, + other._listOfIntValue, + ) && _floatValue == other._floatValue && - DeepCollectionEquality() - .equals(_listOfFloatValue, other._listOfFloatValue) && + DeepCollectionEquality().equals( + _listOfFloatValue, + other._listOfFloatValue, + ) && _booleanValue == other._booleanValue && - DeepCollectionEquality() - .equals(_listOfBooleanValue, other._listOfBooleanValue) && + DeepCollectionEquality().equals( + _listOfBooleanValue, + other._listOfBooleanValue, + ) && _awsDateValue == other._awsDateValue && - DeepCollectionEquality() - .equals(_listOfAWSDateValue, other._listOfAWSDateValue) && + DeepCollectionEquality().equals( + _listOfAWSDateValue, + other._listOfAWSDateValue, + ) && _awsDateTimeValue == other._awsDateTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSDateTimeValue, other._listOfAWSDateTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSDateTimeValue, + other._listOfAWSDateTimeValue, + ) && _awsTimeValue == other._awsTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSTimeValue, other._listOfAWSTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSTimeValue, + other._listOfAWSTimeValue, + ) && _awsTimestampValue == other._awsTimestampValue && - DeepCollectionEquality() - .equals(_listOfAWSTimestampValue, other._listOfAWSTimestampValue) && + DeepCollectionEquality().equals( + _listOfAWSTimestampValue, + other._listOfAWSTimestampValue, + ) && _awsEmailValue == other._awsEmailValue && - DeepCollectionEquality() - .equals(_listOfAWSEmailValue, other._listOfAWSEmailValue) && + DeepCollectionEquality().equals( + _listOfAWSEmailValue, + other._listOfAWSEmailValue, + ) && _awsJsonValue == other._awsJsonValue && - DeepCollectionEquality() - .equals(_listOfAWSJsonValue, other._listOfAWSJsonValue) && + DeepCollectionEquality().equals( + _listOfAWSJsonValue, + other._listOfAWSJsonValue, + ) && _awsPhoneValue == other._awsPhoneValue && - DeepCollectionEquality() - .equals(_listOfAWSPhoneValue, other._listOfAWSPhoneValue) && + DeepCollectionEquality().equals( + _listOfAWSPhoneValue, + other._listOfAWSPhoneValue, + ) && _awsURLValue == other._awsURLValue && - DeepCollectionEquality() - .equals(_listOfAWSURLValue, other._listOfAWSURLValue) && + DeepCollectionEquality().equals( + _listOfAWSURLValue, + other._listOfAWSURLValue, + ) && _awsIPAddressValue == other._awsIPAddressValue && - DeepCollectionEquality() - .equals(_listOfAWSIPAddressValue, other._listOfAWSIPAddressValue) && + DeepCollectionEquality().equals( + _listOfAWSIPAddressValue, + other._listOfAWSIPAddressValue, + ) && _enumValue == other._enumValue && - DeepCollectionEquality() - .equals(_listOfEnumValue, other._listOfEnumValue) && + DeepCollectionEquality().equals( + _listOfEnumValue, + other._listOfEnumValue, + ) && _customTypeValue == other._customTypeValue && - DeepCollectionEquality() - .equals(_listOfCustomTypeValue, other._listOfCustomTypeValue); + DeepCollectionEquality().equals( + _listOfCustomTypeValue, + other._listOfCustomTypeValue, + ); } @override @@ -398,676 +447,873 @@ class CustomTypeWithAppsyncScalarTypes { buffer.write("CustomTypeWithAppsyncScalarTypes {"); buffer.write("stringValue=" + "$_stringValue" + ", "); - buffer.write("listOfStringValue=" + - (_listOfStringValue != null ? _listOfStringValue.toString() : "null") + - ", "); - buffer.write("intValue=" + - (_intValue != null ? _intValue.toString() : "null") + - ", "); - buffer.write("listOfIntValue=" + - (_listOfIntValue != null ? _listOfIntValue.toString() : "null") + - ", "); - buffer.write("floatValue=" + - (_floatValue != null ? _floatValue.toString() : "null") + - ", "); - buffer.write("listOfFloatValue=" + - (_listOfFloatValue != null ? _listOfFloatValue.toString() : "null") + - ", "); - buffer.write("booleanValue=" + - (_booleanValue != null ? _booleanValue.toString() : "null") + - ", "); - buffer.write("listOfBooleanValue=" + - (_listOfBooleanValue != null - ? _listOfBooleanValue.toString() - : "null") + - ", "); - buffer.write("awsDateValue=" + - (_awsDateValue != null ? _awsDateValue.format() : "null") + - ", "); - buffer.write("listOfAWSDateValue=" + - (_listOfAWSDateValue != null - ? _listOfAWSDateValue.toString() - : "null") + - ", "); - buffer.write("awsDateTimeValue=" + - (_awsDateTimeValue != null ? _awsDateTimeValue.format() : "null") + - ", "); - buffer.write("listOfAWSDateTimeValue=" + - (_listOfAWSDateTimeValue != null - ? _listOfAWSDateTimeValue.toString() - : "null") + - ", "); - buffer.write("awsTimeValue=" + - (_awsTimeValue != null ? _awsTimeValue.format() : "null") + - ", "); - buffer.write("listOfAWSTimeValue=" + - (_listOfAWSTimeValue != null - ? _listOfAWSTimeValue.toString() - : "null") + - ", "); - buffer.write("awsTimestampValue=" + - (_awsTimestampValue != null ? _awsTimestampValue.toString() : "null") + - ", "); - buffer.write("listOfAWSTimestampValue=" + - (_listOfAWSTimestampValue != null - ? _listOfAWSTimestampValue.toString() - : "null") + - ", "); + buffer.write( + "listOfStringValue=" + + (_listOfStringValue != null + ? _listOfStringValue.toString() + : "null") + + ", ", + ); + buffer.write( + "intValue=" + (_intValue != null ? _intValue.toString() : "null") + ", ", + ); + buffer.write( + "listOfIntValue=" + + (_listOfIntValue != null ? _listOfIntValue.toString() : "null") + + ", ", + ); + buffer.write( + "floatValue=" + + (_floatValue != null ? _floatValue.toString() : "null") + + ", ", + ); + buffer.write( + "listOfFloatValue=" + + (_listOfFloatValue != null ? _listOfFloatValue.toString() : "null") + + ", ", + ); + buffer.write( + "booleanValue=" + + (_booleanValue != null ? _booleanValue.toString() : "null") + + ", ", + ); + buffer.write( + "listOfBooleanValue=" + + (_listOfBooleanValue != null + ? _listOfBooleanValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateValue=" + + (_awsDateValue != null ? _awsDateValue.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateValue=" + + (_listOfAWSDateValue != null + ? _listOfAWSDateValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateTimeValue=" + + (_awsDateTimeValue != null ? _awsDateTimeValue.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateTimeValue=" + + (_listOfAWSDateTimeValue != null + ? _listOfAWSDateTimeValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimeValue=" + + (_awsTimeValue != null ? _awsTimeValue.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimeValue=" + + (_listOfAWSTimeValue != null + ? _listOfAWSTimeValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimestampValue=" + + (_awsTimestampValue != null + ? _awsTimestampValue.toString() + : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimestampValue=" + + (_listOfAWSTimestampValue != null + ? _listOfAWSTimestampValue.toString() + : "null") + + ", ", + ); buffer.write("awsEmailValue=" + "$_awsEmailValue" + ", "); - buffer.write("listOfAWSEmailValue=" + - (_listOfAWSEmailValue != null - ? _listOfAWSEmailValue.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSEmailValue=" + + (_listOfAWSEmailValue != null + ? _listOfAWSEmailValue.toString() + : "null") + + ", ", + ); buffer.write("awsJsonValue=" + "$_awsJsonValue" + ", "); - buffer.write("listOfAWSJsonValue=" + - (_listOfAWSJsonValue != null - ? _listOfAWSJsonValue.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSJsonValue=" + + (_listOfAWSJsonValue != null + ? _listOfAWSJsonValue.toString() + : "null") + + ", ", + ); buffer.write("awsPhoneValue=" + "$_awsPhoneValue" + ", "); - buffer.write("listOfAWSPhoneValue=" + - (_listOfAWSPhoneValue != null - ? _listOfAWSPhoneValue.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSPhoneValue=" + + (_listOfAWSPhoneValue != null + ? _listOfAWSPhoneValue.toString() + : "null") + + ", ", + ); buffer.write("awsURLValue=" + "$_awsURLValue" + ", "); - buffer.write("listOfAWSURLValue=" + - (_listOfAWSURLValue != null ? _listOfAWSURLValue.toString() : "null") + - ", "); + buffer.write( + "listOfAWSURLValue=" + + (_listOfAWSURLValue != null + ? _listOfAWSURLValue.toString() + : "null") + + ", ", + ); buffer.write("awsIPAddressValue=" + "$_awsIPAddressValue" + ", "); - buffer.write("listOfAWSIPAddressValue=" + - (_listOfAWSIPAddressValue != null - ? _listOfAWSIPAddressValue.toString() - : "null") + - ", "); - buffer.write("enumValue=" + - (_enumValue != null ? amplify_core.enumToString(_enumValue)! : "null") + - ", "); - buffer.write("listOfEnumValue=" + - (_listOfEnumValue != null - ? _listOfEnumValue - .map((e) => amplify_core.enumToString(e)) - .toString() - : "null") + - ", "); - buffer.write("customTypeValue=" + - (_customTypeValue != null ? _customTypeValue.toString() : "null") + - ", "); - buffer.write("listOfCustomTypeValue=" + - (_listOfCustomTypeValue != null - ? _listOfCustomTypeValue.toString() - : "null")); + buffer.write( + "listOfAWSIPAddressValue=" + + (_listOfAWSIPAddressValue != null + ? _listOfAWSIPAddressValue.toString() + : "null") + + ", ", + ); + buffer.write( + "enumValue=" + + (_enumValue != null + ? amplify_core.enumToString(_enumValue)! + : "null") + + ", ", + ); + buffer.write( + "listOfEnumValue=" + + (_listOfEnumValue != null + ? _listOfEnumValue + .map((e) => amplify_core.enumToString(e)) + .toString() + : "null") + + ", ", + ); + buffer.write( + "customTypeValue=" + + (_customTypeValue != null ? _customTypeValue.toString() : "null") + + ", ", + ); + buffer.write( + "listOfCustomTypeValue=" + + (_listOfCustomTypeValue != null + ? _listOfCustomTypeValue.toString() + : "null"), + ); buffer.write("}"); return buffer.toString(); } - CustomTypeWithAppsyncScalarTypes copyWith( - {String? stringValue, - List? listOfStringValue, - int? intValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue, - EnumField? enumValue, - List? listOfEnumValue, - SimpleCustomType? customTypeValue, - List? listOfCustomTypeValue}) { + CustomTypeWithAppsyncScalarTypes copyWith({ + String? stringValue, + List? listOfStringValue, + int? intValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + EnumField? enumValue, + List? listOfEnumValue, + SimpleCustomType? customTypeValue, + List? listOfCustomTypeValue, + }) { return CustomTypeWithAppsyncScalarTypes._internal( - stringValue: stringValue ?? this.stringValue, - listOfStringValue: listOfStringValue ?? this.listOfStringValue, - intValue: intValue ?? this.intValue, - listOfIntValue: listOfIntValue ?? this.listOfIntValue, - floatValue: floatValue ?? this.floatValue, - listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, - booleanValue: booleanValue ?? this.booleanValue, - listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, - awsDateValue: awsDateValue ?? this.awsDateValue, - listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, - awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, - listOfAWSDateTimeValue: - listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, - awsTimeValue: awsTimeValue ?? this.awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, - awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, - listOfAWSTimestampValue: - listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, - awsEmailValue: awsEmailValue ?? this.awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, - awsJsonValue: awsJsonValue ?? this.awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, - awsURLValue: awsURLValue ?? this.awsURLValue, - listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, - listOfAWSIPAddressValue: - listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue, - enumValue: enumValue ?? this.enumValue, - listOfEnumValue: listOfEnumValue ?? this.listOfEnumValue, - customTypeValue: customTypeValue ?? this.customTypeValue, - listOfCustomTypeValue: - listOfCustomTypeValue ?? this.listOfCustomTypeValue); + stringValue: stringValue ?? this.stringValue, + listOfStringValue: listOfStringValue ?? this.listOfStringValue, + intValue: intValue ?? this.intValue, + listOfIntValue: listOfIntValue ?? this.listOfIntValue, + floatValue: floatValue ?? this.floatValue, + listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, + booleanValue: booleanValue ?? this.booleanValue, + listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, + awsDateValue: awsDateValue ?? this.awsDateValue, + listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, + awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, + awsTimeValue: awsTimeValue ?? this.awsTimeValue, + listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, + awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, + awsEmailValue: awsEmailValue ?? this.awsEmailValue, + listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, + awsJsonValue: awsJsonValue ?? this.awsJsonValue, + listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, + listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, + awsURLValue: awsURLValue ?? this.awsURLValue, + listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue, + enumValue: enumValue ?? this.enumValue, + listOfEnumValue: listOfEnumValue ?? this.listOfEnumValue, + customTypeValue: customTypeValue ?? this.customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue ?? this.listOfCustomTypeValue, + ); } - CustomTypeWithAppsyncScalarTypes copyWithModelFieldValues( - {ModelFieldValue? stringValue, - ModelFieldValue?>? listOfStringValue, - ModelFieldValue? intValue, - ModelFieldValue?>? listOfIntValue, - ModelFieldValue? floatValue, - ModelFieldValue?>? listOfFloatValue, - ModelFieldValue? booleanValue, - ModelFieldValue?>? listOfBooleanValue, - ModelFieldValue? awsDateValue, - ModelFieldValue?>? listOfAWSDateValue, - ModelFieldValue? awsDateTimeValue, - ModelFieldValue?>? - listOfAWSDateTimeValue, - ModelFieldValue? awsTimeValue, - ModelFieldValue?>? listOfAWSTimeValue, - ModelFieldValue? awsTimestampValue, - ModelFieldValue?>? - listOfAWSTimestampValue, - ModelFieldValue? awsEmailValue, - ModelFieldValue?>? listOfAWSEmailValue, - ModelFieldValue? awsJsonValue, - ModelFieldValue?>? listOfAWSJsonValue, - ModelFieldValue? awsPhoneValue, - ModelFieldValue?>? listOfAWSPhoneValue, - ModelFieldValue? awsURLValue, - ModelFieldValue?>? listOfAWSURLValue, - ModelFieldValue? awsIPAddressValue, - ModelFieldValue?>? listOfAWSIPAddressValue, - ModelFieldValue? enumValue, - ModelFieldValue?>? listOfEnumValue, - ModelFieldValue? customTypeValue, - ModelFieldValue?>? listOfCustomTypeValue}) { + CustomTypeWithAppsyncScalarTypes copyWithModelFieldValues({ + ModelFieldValue? stringValue, + ModelFieldValue?>? listOfStringValue, + ModelFieldValue? intValue, + ModelFieldValue?>? listOfIntValue, + ModelFieldValue? floatValue, + ModelFieldValue?>? listOfFloatValue, + ModelFieldValue? booleanValue, + ModelFieldValue?>? listOfBooleanValue, + ModelFieldValue? awsDateValue, + ModelFieldValue?>? listOfAWSDateValue, + ModelFieldValue? awsDateTimeValue, + ModelFieldValue?>? + listOfAWSDateTimeValue, + ModelFieldValue? awsTimeValue, + ModelFieldValue?>? listOfAWSTimeValue, + ModelFieldValue? awsTimestampValue, + ModelFieldValue?>? + listOfAWSTimestampValue, + ModelFieldValue? awsEmailValue, + ModelFieldValue?>? listOfAWSEmailValue, + ModelFieldValue? awsJsonValue, + ModelFieldValue?>? listOfAWSJsonValue, + ModelFieldValue? awsPhoneValue, + ModelFieldValue?>? listOfAWSPhoneValue, + ModelFieldValue? awsURLValue, + ModelFieldValue?>? listOfAWSURLValue, + ModelFieldValue? awsIPAddressValue, + ModelFieldValue?>? listOfAWSIPAddressValue, + ModelFieldValue? enumValue, + ModelFieldValue?>? listOfEnumValue, + ModelFieldValue? customTypeValue, + ModelFieldValue?>? listOfCustomTypeValue, + }) { return CustomTypeWithAppsyncScalarTypes._internal( - stringValue: stringValue == null ? this.stringValue : stringValue.value, - listOfStringValue: listOfStringValue == null - ? this.listOfStringValue - : listOfStringValue.value, - intValue: intValue == null ? this.intValue : intValue.value, - listOfIntValue: - listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, - floatValue: floatValue == null ? this.floatValue : floatValue.value, - listOfFloatValue: listOfFloatValue == null - ? this.listOfFloatValue - : listOfFloatValue.value, - booleanValue: - booleanValue == null ? this.booleanValue : booleanValue.value, - listOfBooleanValue: listOfBooleanValue == null - ? this.listOfBooleanValue - : listOfBooleanValue.value, - awsDateValue: - awsDateValue == null ? this.awsDateValue : awsDateValue.value, - listOfAWSDateValue: listOfAWSDateValue == null - ? this.listOfAWSDateValue - : listOfAWSDateValue.value, - awsDateTimeValue: awsDateTimeValue == null - ? this.awsDateTimeValue - : awsDateTimeValue.value, - listOfAWSDateTimeValue: listOfAWSDateTimeValue == null - ? this.listOfAWSDateTimeValue - : listOfAWSDateTimeValue.value, - awsTimeValue: - awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, - listOfAWSTimeValue: listOfAWSTimeValue == null - ? this.listOfAWSTimeValue - : listOfAWSTimeValue.value, - awsTimestampValue: awsTimestampValue == null - ? this.awsTimestampValue - : awsTimestampValue.value, - listOfAWSTimestampValue: listOfAWSTimestampValue == null - ? this.listOfAWSTimestampValue - : listOfAWSTimestampValue.value, - awsEmailValue: - awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, - listOfAWSEmailValue: listOfAWSEmailValue == null - ? this.listOfAWSEmailValue - : listOfAWSEmailValue.value, - awsJsonValue: - awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, - listOfAWSJsonValue: listOfAWSJsonValue == null - ? this.listOfAWSJsonValue - : listOfAWSJsonValue.value, - awsPhoneValue: - awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, - listOfAWSPhoneValue: listOfAWSPhoneValue == null - ? this.listOfAWSPhoneValue - : listOfAWSPhoneValue.value, - awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, - listOfAWSURLValue: listOfAWSURLValue == null - ? this.listOfAWSURLValue - : listOfAWSURLValue.value, - awsIPAddressValue: awsIPAddressValue == null - ? this.awsIPAddressValue - : awsIPAddressValue.value, - listOfAWSIPAddressValue: listOfAWSIPAddressValue == null - ? this.listOfAWSIPAddressValue - : listOfAWSIPAddressValue.value, - enumValue: enumValue == null ? this.enumValue : enumValue.value, - listOfEnumValue: listOfEnumValue == null - ? this.listOfEnumValue - : listOfEnumValue.value, - customTypeValue: customTypeValue == null - ? this.customTypeValue - : customTypeValue.value, - listOfCustomTypeValue: listOfCustomTypeValue == null - ? this.listOfCustomTypeValue - : listOfCustomTypeValue.value); + stringValue: stringValue == null ? this.stringValue : stringValue.value, + listOfStringValue: + listOfStringValue == null + ? this.listOfStringValue + : listOfStringValue.value, + intValue: intValue == null ? this.intValue : intValue.value, + listOfIntValue: + listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, + floatValue: floatValue == null ? this.floatValue : floatValue.value, + listOfFloatValue: + listOfFloatValue == null + ? this.listOfFloatValue + : listOfFloatValue.value, + booleanValue: + booleanValue == null ? this.booleanValue : booleanValue.value, + listOfBooleanValue: + listOfBooleanValue == null + ? this.listOfBooleanValue + : listOfBooleanValue.value, + awsDateValue: + awsDateValue == null ? this.awsDateValue : awsDateValue.value, + listOfAWSDateValue: + listOfAWSDateValue == null + ? this.listOfAWSDateValue + : listOfAWSDateValue.value, + awsDateTimeValue: + awsDateTimeValue == null + ? this.awsDateTimeValue + : awsDateTimeValue.value, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue == null + ? this.listOfAWSDateTimeValue + : listOfAWSDateTimeValue.value, + awsTimeValue: + awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, + listOfAWSTimeValue: + listOfAWSTimeValue == null + ? this.listOfAWSTimeValue + : listOfAWSTimeValue.value, + awsTimestampValue: + awsTimestampValue == null + ? this.awsTimestampValue + : awsTimestampValue.value, + listOfAWSTimestampValue: + listOfAWSTimestampValue == null + ? this.listOfAWSTimestampValue + : listOfAWSTimestampValue.value, + awsEmailValue: + awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, + listOfAWSEmailValue: + listOfAWSEmailValue == null + ? this.listOfAWSEmailValue + : listOfAWSEmailValue.value, + awsJsonValue: + awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, + listOfAWSJsonValue: + listOfAWSJsonValue == null + ? this.listOfAWSJsonValue + : listOfAWSJsonValue.value, + awsPhoneValue: + awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, + listOfAWSPhoneValue: + listOfAWSPhoneValue == null + ? this.listOfAWSPhoneValue + : listOfAWSPhoneValue.value, + awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, + listOfAWSURLValue: + listOfAWSURLValue == null + ? this.listOfAWSURLValue + : listOfAWSURLValue.value, + awsIPAddressValue: + awsIPAddressValue == null + ? this.awsIPAddressValue + : awsIPAddressValue.value, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue == null + ? this.listOfAWSIPAddressValue + : listOfAWSIPAddressValue.value, + enumValue: enumValue == null ? this.enumValue : enumValue.value, + listOfEnumValue: + listOfEnumValue == null + ? this.listOfEnumValue + : listOfEnumValue.value, + customTypeValue: + customTypeValue == null + ? this.customTypeValue + : customTypeValue.value, + listOfCustomTypeValue: + listOfCustomTypeValue == null + ? this.listOfCustomTypeValue + : listOfCustomTypeValue.value, + ); } CustomTypeWithAppsyncScalarTypes.fromJson(Map json) - : _stringValue = json['stringValue'], - _listOfStringValue = json['listOfStringValue']?.cast(), - _intValue = (json['intValue'] as num?)?.toInt(), - _listOfIntValue = (json['listOfIntValue'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - _floatValue = (json['floatValue'] as num?)?.toDouble(), - _listOfFloatValue = (json['listOfFloatValue'] as List?) - ?.map((e) => (e as num).toDouble()) - .toList(), - _booleanValue = json['booleanValue'], - _listOfBooleanValue = json['listOfBooleanValue']?.cast(), - _awsDateValue = json['awsDateValue'] != null - ? amplify_core.TemporalDate.fromString(json['awsDateValue']) - : null, - _listOfAWSDateValue = (json['listOfAWSDateValue'] as List?) - ?.map((e) => amplify_core.TemporalDate.fromString(e)) - .toList(), - _awsDateTimeValue = json['awsDateTimeValue'] != null - ? amplify_core.TemporalDateTime.fromString(json['awsDateTimeValue']) - : null, - _listOfAWSDateTimeValue = (json['listOfAWSDateTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) - .toList(), - _awsTimeValue = json['awsTimeValue'] != null - ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) - : null, - _listOfAWSTimeValue = (json['listOfAWSTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalTime.fromString(e)) - .toList(), - _awsTimestampValue = json['awsTimestampValue'] != null - ? amplify_core.TemporalTimestamp.fromSeconds( - json['awsTimestampValue']) - : null, - _listOfAWSTimestampValue = (json['listOfAWSTimestampValue'] as List?) - ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) - .toList(), - _awsEmailValue = json['awsEmailValue'], - _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), - _awsJsonValue = json['awsJsonValue'], - _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), - _awsPhoneValue = json['awsPhoneValue'], - _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), - _awsURLValue = json['awsURLValue'], - _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), - _awsIPAddressValue = json['awsIPAddressValue'], - _listOfAWSIPAddressValue = - json['listOfAWSIPAddressValue']?.cast(), - _enumValue = amplify_core.enumFromString( - json['enumValue'], EnumField.values), - _listOfEnumValue = json['listOfEnumValue'] is List - ? (json['listOfEnumValue'] as List) - .map((e) => amplify_core.enumFromString( - e, EnumField.values)!) - .toList() - : null, - _customTypeValue = json['customTypeValue'] != null - ? json['customTypeValue']['serializedData'] != null - ? SimpleCustomType.fromJson(new Map.from( - json['customTypeValue']['serializedData'])) - : SimpleCustomType.fromJson( - new Map.from(json['customTypeValue'])) - : null, - _listOfCustomTypeValue = json['listOfCustomTypeValue'] is List - ? (json['listOfCustomTypeValue'] as List) - .where((e) => e != null) - .map((e) => SimpleCustomType.fromJson( - new Map.from(e['serializedData'] ?? e))) - .toList() - : null; + : _stringValue = json['stringValue'], + _listOfStringValue = json['listOfStringValue']?.cast(), + _intValue = (json['intValue'] as num?)?.toInt(), + _listOfIntValue = + (json['listOfIntValue'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), + _floatValue = (json['floatValue'] as num?)?.toDouble(), + _listOfFloatValue = + (json['listOfFloatValue'] as List?) + ?.map((e) => (e as num).toDouble()) + .toList(), + _booleanValue = json['booleanValue'], + _listOfBooleanValue = json['listOfBooleanValue']?.cast(), + _awsDateValue = + json['awsDateValue'] != null + ? amplify_core.TemporalDate.fromString(json['awsDateValue']) + : null, + _listOfAWSDateValue = + (json['listOfAWSDateValue'] as List?) + ?.map((e) => amplify_core.TemporalDate.fromString(e)) + .toList(), + _awsDateTimeValue = + json['awsDateTimeValue'] != null + ? amplify_core.TemporalDateTime.fromString( + json['awsDateTimeValue'], + ) + : null, + _listOfAWSDateTimeValue = + (json['listOfAWSDateTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) + .toList(), + _awsTimeValue = + json['awsTimeValue'] != null + ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) + : null, + _listOfAWSTimeValue = + (json['listOfAWSTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalTime.fromString(e)) + .toList(), + _awsTimestampValue = + json['awsTimestampValue'] != null + ? amplify_core.TemporalTimestamp.fromSeconds( + json['awsTimestampValue'], + ) + : null, + _listOfAWSTimestampValue = + (json['listOfAWSTimestampValue'] as List?) + ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) + .toList(), + _awsEmailValue = json['awsEmailValue'], + _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), + _awsJsonValue = json['awsJsonValue'], + _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), + _awsPhoneValue = json['awsPhoneValue'], + _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), + _awsURLValue = json['awsURLValue'], + _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), + _awsIPAddressValue = json['awsIPAddressValue'], + _listOfAWSIPAddressValue = + json['listOfAWSIPAddressValue']?.cast(), + _enumValue = amplify_core.enumFromString( + json['enumValue'], + EnumField.values, + ), + _listOfEnumValue = + json['listOfEnumValue'] is List + ? (json['listOfEnumValue'] as List) + .map( + (e) => + amplify_core.enumFromString( + e, + EnumField.values, + )!, + ) + .toList() + : null, + _customTypeValue = + json['customTypeValue'] != null + ? json['customTypeValue']['serializedData'] != null + ? SimpleCustomType.fromJson( + new Map.from( + json['customTypeValue']['serializedData'], + ), + ) + : SimpleCustomType.fromJson( + new Map.from(json['customTypeValue']), + ) + : null, + _listOfCustomTypeValue = + json['listOfCustomTypeValue'] is List + ? (json['listOfCustomTypeValue'] as List) + .where((e) => e != null) + .map( + (e) => SimpleCustomType.fromJson( + new Map.from(e['serializedData'] ?? e), + ), + ) + .toList() + : null; Map toJson() => { - 'stringValue': _stringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue?.format(), - 'listOfAWSDateValue': - _listOfAWSDateValue?.map((e) => e.format()).toList(), - 'awsDateTimeValue': _awsDateTimeValue?.format(), - 'listOfAWSDateTimeValue': - _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), - 'awsTimeValue': _awsTimeValue?.format(), - 'listOfAWSTimeValue': - _listOfAWSTimeValue?.map((e) => e.format()).toList(), - 'awsTimestampValue': _awsTimestampValue?.toSeconds(), - 'listOfAWSTimestampValue': - _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'enumValue': amplify_core.enumToString(_enumValue), - 'listOfEnumValue': - _listOfEnumValue?.map((e) => amplify_core.enumToString(e)).toList(), - 'customTypeValue': _customTypeValue?.toJson(), - 'listOfCustomTypeValue': _listOfCustomTypeValue + 'stringValue': _stringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue?.format(), + 'listOfAWSDateValue': _listOfAWSDateValue?.map((e) => e.format()).toList(), + 'awsDateTimeValue': _awsDateTimeValue?.format(), + 'listOfAWSDateTimeValue': + _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), + 'awsTimeValue': _awsTimeValue?.format(), + 'listOfAWSTimeValue': _listOfAWSTimeValue?.map((e) => e.format()).toList(), + 'awsTimestampValue': _awsTimestampValue?.toSeconds(), + 'listOfAWSTimestampValue': + _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'enumValue': amplify_core.enumToString(_enumValue), + 'listOfEnumValue': + _listOfEnumValue?.map((e) => amplify_core.enumToString(e)).toList(), + 'customTypeValue': _customTypeValue?.toJson(), + 'listOfCustomTypeValue': + _listOfCustomTypeValue ?.map((SimpleCustomType? e) => e?.toJson()) - .toList() - }; + .toList(), + }; Map toMap() => { - 'stringValue': _stringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue, - 'listOfAWSDateValue': _listOfAWSDateValue, - 'awsDateTimeValue': _awsDateTimeValue, - 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, - 'awsTimeValue': _awsTimeValue, - 'listOfAWSTimeValue': _listOfAWSTimeValue, - 'awsTimestampValue': _awsTimestampValue, - 'listOfAWSTimestampValue': _listOfAWSTimestampValue, - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'enumValue': _enumValue, - 'listOfEnumValue': _listOfEnumValue, - 'customTypeValue': _customTypeValue, - 'listOfCustomTypeValue': _listOfCustomTypeValue - }; + 'stringValue': _stringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue, + 'listOfAWSDateValue': _listOfAWSDateValue, + 'awsDateTimeValue': _awsDateTimeValue, + 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, + 'awsTimeValue': _awsTimeValue, + 'listOfAWSTimeValue': _listOfAWSTimeValue, + 'awsTimestampValue': _awsTimestampValue, + 'listOfAWSTimestampValue': _listOfAWSTimestampValue, + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'enumValue': _enumValue, + 'listOfEnumValue': _listOfEnumValue, + 'customTypeValue': _customTypeValue, + 'listOfCustomTypeValue': _listOfCustomTypeValue, + }; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CustomTypeWithAppsyncScalarTypes"; - modelSchemaDefinition.pluralName = "CustomTypeWithAppsyncScalarTypes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CustomTypeWithAppsyncScalarTypes"; + modelSchemaDefinition.pluralName = "CustomTypeWithAppsyncScalarTypes"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'stringValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'stringValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfStringValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfStringValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'intValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField( + fieldName: 'intValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfIntValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.int.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfIntValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.int.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'floatValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.double))); - - modelSchemaDefinition.addField( + fieldName: 'floatValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.double, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfFloatValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.double.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfFloatValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.double.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'booleanValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.bool))); - - modelSchemaDefinition.addField( + fieldName: 'booleanValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.bool, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfBooleanValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.bool.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfBooleanValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.bool.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsDateValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.date))); - - modelSchemaDefinition.addField( + fieldName: 'awsDateValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.date, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSDateValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.date.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSDateValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.date.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsDateTimeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'awsDateTimeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSDateTimeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSDateTimeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsTimeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.time))); - - modelSchemaDefinition.addField( + fieldName: 'awsTimeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.time, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSTimeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.time.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSTimeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.time.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsTimestampValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.timestamp))); - - modelSchemaDefinition.addField( + fieldName: 'awsTimestampValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.timestamp, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSTimestampValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSTimestampValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsEmailValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsEmailValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSEmailValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSEmailValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsJsonValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsJsonValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSJsonValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSJsonValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsPhoneValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsPhoneValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSPhoneValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSPhoneValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsURLValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsURLValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSURLValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSURLValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsIPAddressValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsIPAddressValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSIPAddressValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSIPAddressValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'enumValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.enumeration))); - - modelSchemaDefinition.addField( + fieldName: 'enumValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.enumeration, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfEnumValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: - amplify_core.ModelFieldTypeEnum.enumeration.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'customTypeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( + fieldName: 'listOfEnumValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.enumeration.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'customTypeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'SimpleCustomType'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'listOfCustomTypeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofCustomTypeName: 'SimpleCustomType', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'listOfCustomTypeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'SimpleCustomType'))); - }); + ofCustomTypeName: 'SimpleCustomType', + ), + ), + ); + }, + ); } diff --git a/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalExplicit.dart b/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalExplicit.dart index be8707d327..7ce0658fc4 100644 --- a/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalExplicit.dart +++ b/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalExplicit.dart @@ -35,7 +35,8 @@ class HasManyChildBiDirectionalExplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -59,21 +60,27 @@ class HasManyChildBiDirectionalExplicit extends amplify_core.Model { return _updatedAt; } - const HasManyChildBiDirectionalExplicit._internal( - {required this.id, name, hasManyParent, createdAt, updatedAt}) - : _name = name, - _hasManyParent = hasManyParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory HasManyChildBiDirectionalExplicit( - {String? id, - String? name, - HasManyParentBiDirectionalExplicit? hasManyParent}) { + const HasManyChildBiDirectionalExplicit._internal({ + required this.id, + name, + hasManyParent, + createdAt, + updatedAt, + }) : _name = name, + _hasManyParent = hasManyParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory HasManyChildBiDirectionalExplicit({ + String? id, + String? name, + HasManyParentBiDirectionalExplicit? hasManyParent, + }) { return HasManyChildBiDirectionalExplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - hasManyParent: hasManyParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + hasManyParent: hasManyParent, + ); } bool equals(Object other) { @@ -99,122 +106,157 @@ class HasManyChildBiDirectionalExplicit extends amplify_core.Model { buffer.write("HasManyChildBiDirectionalExplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("hasManyParent=" + - (_hasManyParent != null ? _hasManyParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "hasManyParent=" + + (_hasManyParent != null ? _hasManyParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - HasManyChildBiDirectionalExplicit copyWith( - {String? name, HasManyParentBiDirectionalExplicit? hasManyParent}) { + HasManyChildBiDirectionalExplicit copyWith({ + String? name, + HasManyParentBiDirectionalExplicit? hasManyParent, + }) { return HasManyChildBiDirectionalExplicit._internal( - id: id, - name: name ?? this.name, - hasManyParent: hasManyParent ?? this.hasManyParent); + id: id, + name: name ?? this.name, + hasManyParent: hasManyParent ?? this.hasManyParent, + ); } - HasManyChildBiDirectionalExplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? hasManyParent}) { + HasManyChildBiDirectionalExplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? hasManyParent, + }) { return HasManyChildBiDirectionalExplicit._internal( - id: id, - name: name == null ? this.name : name.value, - hasManyParent: - hasManyParent == null ? this.hasManyParent : hasManyParent.value); + id: id, + name: name == null ? this.name : name.value, + hasManyParent: + hasManyParent == null ? this.hasManyParent : hasManyParent.value, + ); } HasManyChildBiDirectionalExplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _hasManyParent = json['hasManyParent'] != null - ? json['hasManyParent']['serializedData'] != null - ? HasManyParentBiDirectionalExplicit.fromJson( + : id = json['id'], + _name = json['name'], + _hasManyParent = + json['hasManyParent'] != null + ? json['hasManyParent']['serializedData'] != null + ? HasManyParentBiDirectionalExplicit.fromJson( new Map.from( - json['hasManyParent']['serializedData'])) - : HasManyParentBiDirectionalExplicit.fromJson( - new Map.from(json['hasManyParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['hasManyParent']['serializedData'], + ), + ) + : HasManyParentBiDirectionalExplicit.fromJson( + new Map.from(json['hasManyParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - HasManyChildBiDirectionalExplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + HasManyChildBiDirectionalExplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + HasManyChildBiDirectionalExplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final HASMANYPARENT = amplify_core.QueryField( - fieldName: "hasManyParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasManyParentBiDirectionalExplicit')); + fieldName: "hasManyParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasManyParentBiDirectionalExplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasManyChildBiDirectionalExplicit"; - modelSchemaDefinition.pluralName = "HasManyChildBiDirectionalExplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["hasManyParentId", "name"], name: "byHasManyParent") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyChildBiDirectionalExplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: HasManyChildBiDirectionalExplicit.HASMANYPARENT, - isRequired: false, - targetNames: ['hasManyParentId'], - ofModelName: 'HasManyParentBiDirectionalExplicit')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasManyChildBiDirectionalExplicit"; + modelSchemaDefinition.pluralName = "HasManyChildBiDirectionalExplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["hasManyParentId", "name"], + name: "byHasManyParent", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyChildBiDirectionalExplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: HasManyChildBiDirectionalExplicit.HASMANYPARENT, + isRequired: false, + targetNames: ['hasManyParentId'], + ofModelName: 'HasManyParentBiDirectionalExplicit', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _HasManyChildBiDirectionalExplicitModelType @@ -247,10 +289,10 @@ class HasManyChildBiDirectionalExplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalImplicit.dart b/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalImplicit.dart index ca477e15d3..f993d4bdb9 100644 --- a/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalImplicit.dart +++ b/packages/amplify_datastore/example/lib/models/HasManyChildBiDirectionalImplicit.dart @@ -35,7 +35,8 @@ class HasManyChildBiDirectionalImplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -59,21 +60,27 @@ class HasManyChildBiDirectionalImplicit extends amplify_core.Model { return _updatedAt; } - const HasManyChildBiDirectionalImplicit._internal( - {required this.id, name, hasManyParent, createdAt, updatedAt}) - : _name = name, - _hasManyParent = hasManyParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory HasManyChildBiDirectionalImplicit( - {String? id, - String? name, - HasManyParentBiDirectionalImplicit? hasManyParent}) { + const HasManyChildBiDirectionalImplicit._internal({ + required this.id, + name, + hasManyParent, + createdAt, + updatedAt, + }) : _name = name, + _hasManyParent = hasManyParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory HasManyChildBiDirectionalImplicit({ + String? id, + String? name, + HasManyParentBiDirectionalImplicit? hasManyParent, + }) { return HasManyChildBiDirectionalImplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - hasManyParent: hasManyParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + hasManyParent: hasManyParent, + ); } bool equals(Object other) { @@ -99,119 +106,152 @@ class HasManyChildBiDirectionalImplicit extends amplify_core.Model { buffer.write("HasManyChildBiDirectionalImplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("hasManyParent=" + - (_hasManyParent != null ? _hasManyParent.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "hasManyParent=" + + (_hasManyParent != null ? _hasManyParent.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - HasManyChildBiDirectionalImplicit copyWith( - {String? name, HasManyParentBiDirectionalImplicit? hasManyParent}) { + HasManyChildBiDirectionalImplicit copyWith({ + String? name, + HasManyParentBiDirectionalImplicit? hasManyParent, + }) { return HasManyChildBiDirectionalImplicit._internal( - id: id, - name: name ?? this.name, - hasManyParent: hasManyParent ?? this.hasManyParent); + id: id, + name: name ?? this.name, + hasManyParent: hasManyParent ?? this.hasManyParent, + ); } - HasManyChildBiDirectionalImplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? hasManyParent}) { + HasManyChildBiDirectionalImplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? hasManyParent, + }) { return HasManyChildBiDirectionalImplicit._internal( - id: id, - name: name == null ? this.name : name.value, - hasManyParent: - hasManyParent == null ? this.hasManyParent : hasManyParent.value); + id: id, + name: name == null ? this.name : name.value, + hasManyParent: + hasManyParent == null ? this.hasManyParent : hasManyParent.value, + ); } HasManyChildBiDirectionalImplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _hasManyParent = json['hasManyParent'] != null - ? json['hasManyParent']['serializedData'] != null - ? HasManyParentBiDirectionalImplicit.fromJson( + : id = json['id'], + _name = json['name'], + _hasManyParent = + json['hasManyParent'] != null + ? json['hasManyParent']['serializedData'] != null + ? HasManyParentBiDirectionalImplicit.fromJson( new Map.from( - json['hasManyParent']['serializedData'])) - : HasManyParentBiDirectionalImplicit.fromJson( - new Map.from(json['hasManyParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['hasManyParent']['serializedData'], + ), + ) + : HasManyParentBiDirectionalImplicit.fromJson( + new Map.from(json['hasManyParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'hasManyParent': _hasManyParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - HasManyChildBiDirectionalImplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'hasManyParent': _hasManyParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + HasManyChildBiDirectionalImplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + HasManyChildBiDirectionalImplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final HASMANYPARENT = amplify_core.QueryField( - fieldName: "hasManyParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasManyParentBiDirectionalImplicit')); + fieldName: "hasManyParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasManyParentBiDirectionalImplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasManyChildBiDirectionalImplicit"; - modelSchemaDefinition.pluralName = "HasManyChildBiDirectionalImplicits"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyChildBiDirectionalImplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: HasManyChildBiDirectionalImplicit.HASMANYPARENT, - isRequired: false, - targetNames: [ - 'hasManyParentBiDirectionalImplicitBiDirectionalImplicitChildrenId' - ], - ofModelName: 'HasManyParentBiDirectionalImplicit')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasManyChildBiDirectionalImplicit"; + modelSchemaDefinition.pluralName = "HasManyChildBiDirectionalImplicits"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyChildBiDirectionalImplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: HasManyChildBiDirectionalImplicit.HASMANYPARENT, + isRequired: false, + targetNames: [ + 'hasManyParentBiDirectionalImplicitBiDirectionalImplicitChildrenId', + ], + ofModelName: 'HasManyParentBiDirectionalImplicit', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _HasManyChildBiDirectionalImplicitModelType @@ -244,10 +284,10 @@ class HasManyChildBiDirectionalImplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasManyChildExplicit.dart b/packages/amplify_datastore/example/lib/models/HasManyChildExplicit.dart index 3809296c1a..db88e9ab2e 100644 --- a/packages/amplify_datastore/example/lib/models/HasManyChildExplicit.dart +++ b/packages/amplify_datastore/example/lib/models/HasManyChildExplicit.dart @@ -35,7 +35,8 @@ class HasManyChildExplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -52,11 +53,15 @@ class HasManyChildExplicit extends amplify_core.Model { return _hasManyParentID!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -68,19 +73,27 @@ class HasManyChildExplicit extends amplify_core.Model { return _updatedAt; } - const HasManyChildExplicit._internal( - {required this.id, name, required hasManyParentID, createdAt, updatedAt}) - : _name = name, - _hasManyParentID = hasManyParentID, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory HasManyChildExplicit( - {String? id, String? name, required String hasManyParentID}) { + const HasManyChildExplicit._internal({ + required this.id, + name, + required hasManyParentID, + createdAt, + updatedAt, + }) : _name = name, + _hasManyParentID = hasManyParentID, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory HasManyChildExplicit({ + String? id, + String? name, + required String hasManyParentID, + }) { return HasManyChildExplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - hasManyParentID: hasManyParentID); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + hasManyParentID: hasManyParentID, + ); } bool equals(Object other) { @@ -107,11 +120,12 @@ class HasManyChildExplicit extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); buffer.write("hasManyParentID=" + "$_hasManyParentID" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -119,97 +133,122 @@ class HasManyChildExplicit extends amplify_core.Model { HasManyChildExplicit copyWith({String? name, String? hasManyParentID}) { return HasManyChildExplicit._internal( - id: id, - name: name ?? this.name, - hasManyParentID: hasManyParentID ?? this.hasManyParentID); + id: id, + name: name ?? this.name, + hasManyParentID: hasManyParentID ?? this.hasManyParentID, + ); } - HasManyChildExplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? hasManyParentID}) { + HasManyChildExplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? hasManyParentID, + }) { return HasManyChildExplicit._internal( - id: id, - name: name == null ? this.name : name.value, - hasManyParentID: hasManyParentID == null - ? this.hasManyParentID - : hasManyParentID.value); + id: id, + name: name == null ? this.name : name.value, + hasManyParentID: + hasManyParentID == null + ? this.hasManyParentID + : hasManyParentID.value, + ); } HasManyChildExplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _hasManyParentID = json['hasManyParentID'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _hasManyParentID = json['hasManyParentID'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'hasManyParentID': _hasManyParentID, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'hasManyParentID': _hasManyParentID, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'hasManyParentID': _hasManyParentID, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'name': _name, + 'hasManyParentID': _hasManyParentID, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + HasManyChildExplicitModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); - static final HASMANYPARENTID = - amplify_core.QueryField(fieldName: "hasManyParentID"); + static final HASMANYPARENTID = amplify_core.QueryField( + fieldName: "hasManyParentID", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasManyChildExplicit"; - modelSchemaDefinition.pluralName = "HasManyChildExplicits"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["hasManyParentID", "name"], name: "byHasManyParent") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyChildExplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyChildExplicit.HASMANYPARENTID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasManyChildExplicit"; + modelSchemaDefinition.pluralName = "HasManyChildExplicits"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["hasManyParentID", "name"], + name: "byHasManyParent", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyChildExplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyChildExplicit.HASMANYPARENTID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _HasManyChildExplicitModelType @@ -242,10 +281,10 @@ class HasManyChildExplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasManyChildImplicit.dart b/packages/amplify_datastore/example/lib/models/HasManyChildImplicit.dart index 268808add6..4ee2e290cf 100644 --- a/packages/amplify_datastore/example/lib/models/HasManyChildImplicit.dart +++ b/packages/amplify_datastore/example/lib/models/HasManyChildImplicit.dart @@ -35,7 +35,8 @@ class HasManyChildImplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -59,23 +60,27 @@ class HasManyChildImplicit extends amplify_core.Model { return _hasManyParentImplicitChildrenId; } - const HasManyChildImplicit._internal( - {required this.id, - name, - createdAt, - updatedAt, - hasManyParentImplicitChildrenId}) - : _name = name, - _createdAt = createdAt, - _updatedAt = updatedAt, - _hasManyParentImplicitChildrenId = hasManyParentImplicitChildrenId; - - factory HasManyChildImplicit( - {String? id, String? name, String? hasManyParentImplicitChildrenId}) { + const HasManyChildImplicit._internal({ + required this.id, + name, + createdAt, + updatedAt, + hasManyParentImplicitChildrenId, + }) : _name = name, + _createdAt = createdAt, + _updatedAt = updatedAt, + _hasManyParentImplicitChildrenId = hasManyParentImplicitChildrenId; + + factory HasManyChildImplicit({ + String? id, + String? name, + String? hasManyParentImplicitChildrenId, + }) { return HasManyChildImplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - hasManyParentImplicitChildrenId: hasManyParentImplicitChildrenId); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + hasManyParentImplicitChildrenId: hasManyParentImplicitChildrenId, + ); } bool equals(Object other) { @@ -102,110 +107,137 @@ class HasManyChildImplicit extends amplify_core.Model { buffer.write("HasManyChildImplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt.format() : "null") + - ", "); - buffer.write("hasManyParentImplicitChildrenId=" + - "$_hasManyParentImplicitChildrenId"); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null") + ", ", + ); + buffer.write( + "hasManyParentImplicitChildrenId=" + "$_hasManyParentImplicitChildrenId", + ); buffer.write("}"); return buffer.toString(); } - HasManyChildImplicit copyWith( - {String? name, String? hasManyParentImplicitChildrenId}) { + HasManyChildImplicit copyWith({ + String? name, + String? hasManyParentImplicitChildrenId, + }) { return HasManyChildImplicit._internal( - id: id, - name: name ?? this.name, - hasManyParentImplicitChildrenId: hasManyParentImplicitChildrenId ?? - this.hasManyParentImplicitChildrenId); + id: id, + name: name ?? this.name, + hasManyParentImplicitChildrenId: + hasManyParentImplicitChildrenId ?? + this.hasManyParentImplicitChildrenId, + ); } - HasManyChildImplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? hasManyParentImplicitChildrenId}) { + HasManyChildImplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? hasManyParentImplicitChildrenId, + }) { return HasManyChildImplicit._internal( - id: id, - name: name == null ? this.name : name.value, - hasManyParentImplicitChildrenId: hasManyParentImplicitChildrenId == null - ? this.hasManyParentImplicitChildrenId - : hasManyParentImplicitChildrenId.value); + id: id, + name: name == null ? this.name : name.value, + hasManyParentImplicitChildrenId: + hasManyParentImplicitChildrenId == null + ? this.hasManyParentImplicitChildrenId + : hasManyParentImplicitChildrenId.value, + ); } HasManyChildImplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _hasManyParentImplicitChildrenId = - json['hasManyParentImplicitChildrenId']; + : id = json['id'], + _name = json['name'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _hasManyParentImplicitChildrenId = + json['hasManyParentImplicitChildrenId']; Map toJson() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'hasManyParentImplicitChildrenId': _hasManyParentImplicitChildrenId - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'hasManyParentImplicitChildrenId': _hasManyParentImplicitChildrenId, + }; Map toMap() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'hasManyParentImplicitChildrenId': _hasManyParentImplicitChildrenId - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'name': _name, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'hasManyParentImplicitChildrenId': _hasManyParentImplicitChildrenId, + }; + + static final amplify_core.QueryModelIdentifier< + HasManyChildImplicitModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); - static final HASMANYPARENTIMPLICITCHILDRENID = - amplify_core.QueryField(fieldName: "hasManyParentImplicitChildrenId"); + static final HASMANYPARENTIMPLICITCHILDRENID = amplify_core.QueryField( + fieldName: "hasManyParentImplicitChildrenId", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasManyChildImplicit"; - modelSchemaDefinition.pluralName = "HasManyChildImplicits"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyChildImplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasManyChildImplicit"; + modelSchemaDefinition.pluralName = "HasManyChildImplicits"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyChildImplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyChildImplicit.HASMANYPARENTIMPLICITCHILDRENID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyChildImplicit.HASMANYPARENTIMPLICITCHILDRENID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _HasManyChildImplicitModelType @@ -238,10 +270,10 @@ class HasManyChildImplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasManyParent.dart b/packages/amplify_datastore/example/lib/models/HasManyParent.dart index 3effe0b781..9dbabc050f 100644 --- a/packages/amplify_datastore/example/lib/models/HasManyParent.dart +++ b/packages/amplify_datastore/example/lib/models/HasManyParent.dart @@ -37,7 +37,8 @@ class HasManyParent extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -65,33 +66,37 @@ class HasManyParent extends amplify_core.Model { return _updatedAt; } - const HasManyParent._internal( - {required this.id, - name, - implicitChildren, - explicitChildren, - createdAt, - updatedAt}) - : _name = name, - _implicitChildren = implicitChildren, - _explicitChildren = explicitChildren, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory HasManyParent( - {String? id, - String? name, - List? implicitChildren, - List? explicitChildren}) { + const HasManyParent._internal({ + required this.id, + name, + implicitChildren, + explicitChildren, + createdAt, + updatedAt, + }) : _name = name, + _implicitChildren = implicitChildren, + _explicitChildren = explicitChildren, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory HasManyParent({ + String? id, + String? name, + List? implicitChildren, + List? explicitChildren, + }) { return HasManyParent._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - implicitChildren: implicitChildren != null - ? List.unmodifiable(implicitChildren) - : implicitChildren, - explicitChildren: explicitChildren != null - ? List.unmodifiable(explicitChildren) - : explicitChildren); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + implicitChildren: + implicitChildren != null + ? List.unmodifiable(implicitChildren) + : implicitChildren, + explicitChildren: + explicitChildren != null + ? List.unmodifiable(explicitChildren) + : explicitChildren, + ); } bool equals(Object other) { @@ -104,10 +109,14 @@ class HasManyParent extends amplify_core.Model { return other is HasManyParent && id == other.id && _name == other._name && - DeepCollectionEquality() - .equals(_implicitChildren, other._implicitChildren) && - DeepCollectionEquality() - .equals(_explicitChildren, other._explicitChildren); + DeepCollectionEquality().equals( + _implicitChildren, + other._implicitChildren, + ) && + DeepCollectionEquality().equals( + _explicitChildren, + other._explicitChildren, + ); } @override @@ -120,160 +129,206 @@ class HasManyParent extends amplify_core.Model { buffer.write("HasManyParent {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - HasManyParent copyWith( - {String? name, - List? implicitChildren, - List? explicitChildren}) { + HasManyParent copyWith({ + String? name, + List? implicitChildren, + List? explicitChildren, + }) { return HasManyParent._internal( - id: id, - name: name ?? this.name, - implicitChildren: implicitChildren ?? this.implicitChildren, - explicitChildren: explicitChildren ?? this.explicitChildren); + id: id, + name: name ?? this.name, + implicitChildren: implicitChildren ?? this.implicitChildren, + explicitChildren: explicitChildren ?? this.explicitChildren, + ); } - HasManyParent copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue?>? implicitChildren, - ModelFieldValue?>? explicitChildren}) { + HasManyParent copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? implicitChildren, + ModelFieldValue?>? explicitChildren, + }) { return HasManyParent._internal( - id: id, - name: name == null ? this.name : name.value, - implicitChildren: implicitChildren == null - ? this.implicitChildren - : implicitChildren.value, - explicitChildren: explicitChildren == null - ? this.explicitChildren - : explicitChildren.value); + id: id, + name: name == null ? this.name : name.value, + implicitChildren: + implicitChildren == null + ? this.implicitChildren + : implicitChildren.value, + explicitChildren: + explicitChildren == null + ? this.explicitChildren + : explicitChildren.value, + ); } HasManyParent.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _implicitChildren = json['implicitChildren'] is Map - ? (json['implicitChildren']['items'] is List - ? (json['implicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => HasManyChildImplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['implicitChildren'] is List - ? (json['implicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => HasManyChildImplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _explicitChildren = json['explicitChildren'] is Map - ? (json['explicitChildren']['items'] is List - ? (json['explicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => HasManyChildExplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['explicitChildren'] is List - ? (json['explicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => HasManyChildExplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _implicitChildren = + json['implicitChildren'] is Map + ? (json['implicitChildren']['items'] is List + ? (json['implicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => HasManyChildImplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['implicitChildren'] is List + ? (json['implicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => HasManyChildImplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _explicitChildren = + json['explicitChildren'] is Map + ? (json['explicitChildren']['items'] is List + ? (json['explicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => HasManyChildExplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['explicitChildren'] is List + ? (json['explicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => HasManyChildExplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'implicitChildren': _implicitChildren + 'id': id, + 'name': _name, + 'implicitChildren': + _implicitChildren ?.map((HasManyChildImplicit? e) => e?.toJson()) .toList(), - 'explicitChildren': _explicitChildren + 'explicitChildren': + _explicitChildren ?.map((HasManyChildExplicit? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'implicitChildren': _implicitChildren, - 'explicitChildren': _explicitChildren, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'implicitChildren': _implicitChildren, + 'explicitChildren': _explicitChildren, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILDREN = amplify_core.QueryField( - fieldName: "implicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasManyChildImplicit')); + fieldName: "implicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasManyChildImplicit', + ), + ); static final EXPLICITCHILDREN = amplify_core.QueryField( - fieldName: "explicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasManyChildExplicit')); + fieldName: "explicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasManyChildExplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasManyParent"; - modelSchemaDefinition.pluralName = "HasManyParents"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyParent.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: HasManyParent.IMPLICITCHILDREN, - isRequired: false, - ofModelName: 'HasManyChildImplicit', - associatedKey: HasManyChildImplicit.HASMANYPARENTIMPLICITCHILDRENID)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: HasManyParent.EXPLICITCHILDREN, - isRequired: false, - ofModelName: 'HasManyChildExplicit', - associatedKey: HasManyChildExplicit.HASMANYPARENTID)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasManyParent"; + modelSchemaDefinition.pluralName = "HasManyParents"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyParent.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: HasManyParent.IMPLICITCHILDREN, + isRequired: false, + ofModelName: 'HasManyChildImplicit', + associatedKey: HasManyChildImplicit.HASMANYPARENTIMPLICITCHILDRENID, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: HasManyParent.EXPLICITCHILDREN, + isRequired: false, + ofModelName: 'HasManyChildExplicit', + associatedKey: HasManyChildExplicit.HASMANYPARENTID, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _HasManyParentModelType extends amplify_core.ModelType { @@ -305,10 +360,10 @@ class HasManyParentModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalExplicit.dart b/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalExplicit.dart index c1f6ac7d58..f91028da7c 100644 --- a/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalExplicit.dart +++ b/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalExplicit.dart @@ -36,7 +36,8 @@ class HasManyParentBiDirectionalExplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -60,28 +61,32 @@ class HasManyParentBiDirectionalExplicit extends amplify_core.Model { return _updatedAt; } - const HasManyParentBiDirectionalExplicit._internal( - {required this.id, - name, - biDirectionalExplicitChildren, - createdAt, - updatedAt}) - : _name = name, - _biDirectionalExplicitChildren = biDirectionalExplicitChildren, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory HasManyParentBiDirectionalExplicit( - {String? id, - String? name, - List? biDirectionalExplicitChildren}) { + const HasManyParentBiDirectionalExplicit._internal({ + required this.id, + name, + biDirectionalExplicitChildren, + createdAt, + updatedAt, + }) : _name = name, + _biDirectionalExplicitChildren = biDirectionalExplicitChildren, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory HasManyParentBiDirectionalExplicit({ + String? id, + String? name, + List? biDirectionalExplicitChildren, + }) { return HasManyParentBiDirectionalExplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - biDirectionalExplicitChildren: biDirectionalExplicitChildren != null - ? List.unmodifiable( - biDirectionalExplicitChildren) - : biDirectionalExplicitChildren); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + biDirectionalExplicitChildren: + biDirectionalExplicitChildren != null + ? List.unmodifiable( + biDirectionalExplicitChildren, + ) + : biDirectionalExplicitChildren, + ); } bool equals(Object other) { @@ -94,8 +99,10 @@ class HasManyParentBiDirectionalExplicit extends amplify_core.Model { return other is HasManyParentBiDirectionalExplicit && id == other.id && _name == other._name && - DeepCollectionEquality().equals(_biDirectionalExplicitChildren, - other._biDirectionalExplicitChildren); + DeepCollectionEquality().equals( + _biDirectionalExplicitChildren, + other._biDirectionalExplicitChildren, + ); } @override @@ -108,128 +115,162 @@ class HasManyParentBiDirectionalExplicit extends amplify_core.Model { buffer.write("HasManyParentBiDirectionalExplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - HasManyParentBiDirectionalExplicit copyWith( - {String? name, - List? biDirectionalExplicitChildren}) { + HasManyParentBiDirectionalExplicit copyWith({ + String? name, + List? biDirectionalExplicitChildren, + }) { return HasManyParentBiDirectionalExplicit._internal( - id: id, - name: name ?? this.name, - biDirectionalExplicitChildren: biDirectionalExplicitChildren ?? - this.biDirectionalExplicitChildren); + id: id, + name: name ?? this.name, + biDirectionalExplicitChildren: + biDirectionalExplicitChildren ?? this.biDirectionalExplicitChildren, + ); } - HasManyParentBiDirectionalExplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue?>? - biDirectionalExplicitChildren}) { + HasManyParentBiDirectionalExplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? + biDirectionalExplicitChildren, + }) { return HasManyParentBiDirectionalExplicit._internal( - id: id, - name: name == null ? this.name : name.value, - biDirectionalExplicitChildren: biDirectionalExplicitChildren == null - ? this.biDirectionalExplicitChildren - : biDirectionalExplicitChildren.value); + id: id, + name: name == null ? this.name : name.value, + biDirectionalExplicitChildren: + biDirectionalExplicitChildren == null + ? this.biDirectionalExplicitChildren + : biDirectionalExplicitChildren.value, + ); } HasManyParentBiDirectionalExplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _biDirectionalExplicitChildren = json['biDirectionalExplicitChildren'] - is Map - ? (json['biDirectionalExplicitChildren']['items'] is List - ? (json['biDirectionalExplicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => HasManyChildBiDirectionalExplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['biDirectionalExplicitChildren'] is List - ? (json['biDirectionalExplicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => HasManyChildBiDirectionalExplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _biDirectionalExplicitChildren = + json['biDirectionalExplicitChildren'] is Map + ? (json['biDirectionalExplicitChildren']['items'] is List + ? (json['biDirectionalExplicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => HasManyChildBiDirectionalExplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['biDirectionalExplicitChildren'] is List + ? (json['biDirectionalExplicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => HasManyChildBiDirectionalExplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'biDirectionalExplicitChildren': _biDirectionalExplicitChildren + 'id': id, + 'name': _name, + 'biDirectionalExplicitChildren': + _biDirectionalExplicitChildren ?.map((HasManyChildBiDirectionalExplicit? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'biDirectionalExplicitChildren': _biDirectionalExplicitChildren, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - HasManyParentBiDirectionalExplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'biDirectionalExplicitChildren': _biDirectionalExplicitChildren, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + HasManyParentBiDirectionalExplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + HasManyParentBiDirectionalExplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BIDIRECTIONALEXPLICITCHILDREN = amplify_core.QueryField( - fieldName: "biDirectionalExplicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasManyChildBiDirectionalExplicit')); + fieldName: "biDirectionalExplicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasManyChildBiDirectionalExplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasManyParentBiDirectionalExplicit"; - modelSchemaDefinition.pluralName = "HasManyParentBiDirectionalExplicits"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyParentBiDirectionalExplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: HasManyParentBiDirectionalExplicit.BIDIRECTIONALEXPLICITCHILDREN, - isRequired: false, - ofModelName: 'HasManyChildBiDirectionalExplicit', - associatedKey: HasManyChildBiDirectionalExplicit.HASMANYPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasManyParentBiDirectionalExplicit"; + modelSchemaDefinition.pluralName = "HasManyParentBiDirectionalExplicits"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyParentBiDirectionalExplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: HasManyParentBiDirectionalExplicit.BIDIRECTIONALEXPLICITCHILDREN, + isRequired: false, + ofModelName: 'HasManyChildBiDirectionalExplicit', + associatedKey: HasManyChildBiDirectionalExplicit.HASMANYPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _HasManyParentBiDirectionalExplicitModelType @@ -263,10 +304,10 @@ class HasManyParentBiDirectionalExplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalImplicit.dart b/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalImplicit.dart index 00980873e3..0b1ce1498f 100644 --- a/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalImplicit.dart +++ b/packages/amplify_datastore/example/lib/models/HasManyParentBiDirectionalImplicit.dart @@ -36,7 +36,8 @@ class HasManyParentBiDirectionalImplicit extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -60,28 +61,32 @@ class HasManyParentBiDirectionalImplicit extends amplify_core.Model { return _updatedAt; } - const HasManyParentBiDirectionalImplicit._internal( - {required this.id, - name, - biDirectionalImplicitChildren, - createdAt, - updatedAt}) - : _name = name, - _biDirectionalImplicitChildren = biDirectionalImplicitChildren, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory HasManyParentBiDirectionalImplicit( - {String? id, - String? name, - List? biDirectionalImplicitChildren}) { + const HasManyParentBiDirectionalImplicit._internal({ + required this.id, + name, + biDirectionalImplicitChildren, + createdAt, + updatedAt, + }) : _name = name, + _biDirectionalImplicitChildren = biDirectionalImplicitChildren, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory HasManyParentBiDirectionalImplicit({ + String? id, + String? name, + List? biDirectionalImplicitChildren, + }) { return HasManyParentBiDirectionalImplicit._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - biDirectionalImplicitChildren: biDirectionalImplicitChildren != null - ? List.unmodifiable( - biDirectionalImplicitChildren) - : biDirectionalImplicitChildren); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + biDirectionalImplicitChildren: + biDirectionalImplicitChildren != null + ? List.unmodifiable( + biDirectionalImplicitChildren, + ) + : biDirectionalImplicitChildren, + ); } bool equals(Object other) { @@ -94,8 +99,10 @@ class HasManyParentBiDirectionalImplicit extends amplify_core.Model { return other is HasManyParentBiDirectionalImplicit && id == other.id && _name == other._name && - DeepCollectionEquality().equals(_biDirectionalImplicitChildren, - other._biDirectionalImplicitChildren); + DeepCollectionEquality().equals( + _biDirectionalImplicitChildren, + other._biDirectionalImplicitChildren, + ); } @override @@ -108,128 +115,162 @@ class HasManyParentBiDirectionalImplicit extends amplify_core.Model { buffer.write("HasManyParentBiDirectionalImplicit {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - HasManyParentBiDirectionalImplicit copyWith( - {String? name, - List? biDirectionalImplicitChildren}) { + HasManyParentBiDirectionalImplicit copyWith({ + String? name, + List? biDirectionalImplicitChildren, + }) { return HasManyParentBiDirectionalImplicit._internal( - id: id, - name: name ?? this.name, - biDirectionalImplicitChildren: biDirectionalImplicitChildren ?? - this.biDirectionalImplicitChildren); + id: id, + name: name ?? this.name, + biDirectionalImplicitChildren: + biDirectionalImplicitChildren ?? this.biDirectionalImplicitChildren, + ); } - HasManyParentBiDirectionalImplicit copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue?>? - biDirectionalImplicitChildren}) { + HasManyParentBiDirectionalImplicit copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? + biDirectionalImplicitChildren, + }) { return HasManyParentBiDirectionalImplicit._internal( - id: id, - name: name == null ? this.name : name.value, - biDirectionalImplicitChildren: biDirectionalImplicitChildren == null - ? this.biDirectionalImplicitChildren - : biDirectionalImplicitChildren.value); + id: id, + name: name == null ? this.name : name.value, + biDirectionalImplicitChildren: + biDirectionalImplicitChildren == null + ? this.biDirectionalImplicitChildren + : biDirectionalImplicitChildren.value, + ); } HasManyParentBiDirectionalImplicit.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _biDirectionalImplicitChildren = json['biDirectionalImplicitChildren'] - is Map - ? (json['biDirectionalImplicitChildren']['items'] is List - ? (json['biDirectionalImplicitChildren']['items'] as List) - .where((e) => e != null) - .map((e) => HasManyChildBiDirectionalImplicit.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['biDirectionalImplicitChildren'] is List - ? (json['biDirectionalImplicitChildren'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => HasManyChildBiDirectionalImplicit.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _biDirectionalImplicitChildren = + json['biDirectionalImplicitChildren'] is Map + ? (json['biDirectionalImplicitChildren']['items'] is List + ? (json['biDirectionalImplicitChildren']['items'] as List) + .where((e) => e != null) + .map( + (e) => HasManyChildBiDirectionalImplicit.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['biDirectionalImplicitChildren'] is List + ? (json['biDirectionalImplicitChildren'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => HasManyChildBiDirectionalImplicit.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'biDirectionalImplicitChildren': _biDirectionalImplicitChildren + 'id': id, + 'name': _name, + 'biDirectionalImplicitChildren': + _biDirectionalImplicitChildren ?.map((HasManyChildBiDirectionalImplicit? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'biDirectionalImplicitChildren': _biDirectionalImplicitChildren, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - HasManyParentBiDirectionalImplicitModelIdentifier>(); + 'id': id, + 'name': _name, + 'biDirectionalImplicitChildren': _biDirectionalImplicitChildren, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + HasManyParentBiDirectionalImplicitModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + HasManyParentBiDirectionalImplicitModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BIDIRECTIONALIMPLICITCHILDREN = amplify_core.QueryField( - fieldName: "biDirectionalImplicitChildren", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasManyChildBiDirectionalImplicit')); + fieldName: "biDirectionalImplicitChildren", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasManyChildBiDirectionalImplicit', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasManyParentBiDirectionalImplicit"; - modelSchemaDefinition.pluralName = "HasManyParentBiDirectionalImplicits"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasManyParentBiDirectionalImplicit.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: HasManyParentBiDirectionalImplicit.BIDIRECTIONALIMPLICITCHILDREN, - isRequired: false, - ofModelName: 'HasManyChildBiDirectionalImplicit', - associatedKey: HasManyChildBiDirectionalImplicit.HASMANYPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasManyParentBiDirectionalImplicit"; + modelSchemaDefinition.pluralName = "HasManyParentBiDirectionalImplicits"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasManyParentBiDirectionalImplicit.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: HasManyParentBiDirectionalImplicit.BIDIRECTIONALIMPLICITCHILDREN, + isRequired: false, + ofModelName: 'HasManyChildBiDirectionalImplicit', + associatedKey: HasManyChildBiDirectionalImplicit.HASMANYPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _HasManyParentBiDirectionalImplicitModelType @@ -263,10 +304,10 @@ class HasManyParentBiDirectionalImplicitModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasOneChild.dart b/packages/amplify_datastore/example/lib/models/HasOneChild.dart index 10c8df44f6..af5b02ba97 100644 --- a/packages/amplify_datastore/example/lib/models/HasOneChild.dart +++ b/packages/amplify_datastore/example/lib/models/HasOneChild.dart @@ -34,7 +34,8 @@ class HasOneChild extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -55,13 +56,15 @@ class HasOneChild extends amplify_core.Model { } const HasOneChild._internal({required this.id, name, createdAt, updatedAt}) - : _name = name, - _createdAt = createdAt, - _updatedAt = updatedAt; + : _name = name, + _createdAt = createdAt, + _updatedAt = updatedAt; factory HasOneChild({String? id, String? name}) { return HasOneChild._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, name: name); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + ); } bool equals(Object other) { @@ -84,11 +87,12 @@ class HasOneChild extends amplify_core.Model { buffer.write("HasOneChild {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -100,67 +104,82 @@ class HasOneChild extends amplify_core.Model { HasOneChild copyWithModelFieldValues({ModelFieldValue? name}) { return HasOneChild._internal( - id: id, name: name == null ? this.name : name.value); + id: id, + name: name == null ? this.name : name.value, + ); } HasOneChild.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasOneChild"; - modelSchemaDefinition.pluralName = "HasOneChildren"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasOneChild.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasOneChild"; + modelSchemaDefinition.pluralName = "HasOneChildren"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasOneChild.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _HasOneChildModelType extends amplify_core.ModelType { @@ -192,10 +211,10 @@ class HasOneChildModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/HasOneParent.dart b/packages/amplify_datastore/example/lib/models/HasOneParent.dart index 96362abda2..4aebbb565f 100644 --- a/packages/amplify_datastore/example/lib/models/HasOneParent.dart +++ b/packages/amplify_datastore/example/lib/models/HasOneParent.dart @@ -38,7 +38,8 @@ class HasOneParent extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -74,37 +75,39 @@ class HasOneParent extends amplify_core.Model { return _hasOneParentImplicitChildId; } - const HasOneParent._internal( - {required this.id, - name, - implicitChild, - explicitChildID, - explicitChild, - createdAt, - updatedAt, - hasOneParentImplicitChildId}) - : _name = name, - _implicitChild = implicitChild, - _explicitChildID = explicitChildID, - _explicitChild = explicitChild, - _createdAt = createdAt, - _updatedAt = updatedAt, - _hasOneParentImplicitChildId = hasOneParentImplicitChildId; - - factory HasOneParent( - {String? id, - String? name, - HasOneChild? implicitChild, - String? explicitChildID, - HasOneChild? explicitChild, - String? hasOneParentImplicitChildId}) { + const HasOneParent._internal({ + required this.id, + name, + implicitChild, + explicitChildID, + explicitChild, + createdAt, + updatedAt, + hasOneParentImplicitChildId, + }) : _name = name, + _implicitChild = implicitChild, + _explicitChildID = explicitChildID, + _explicitChild = explicitChild, + _createdAt = createdAt, + _updatedAt = updatedAt, + _hasOneParentImplicitChildId = hasOneParentImplicitChildId; + + factory HasOneParent({ + String? id, + String? name, + HasOneChild? implicitChild, + String? explicitChildID, + HasOneChild? explicitChild, + String? hasOneParentImplicitChildId, + }) { return HasOneParent._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - implicitChild: implicitChild, - explicitChildID: explicitChildID, - explicitChild: explicitChild, - hasOneParentImplicitChildId: hasOneParentImplicitChildId); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + implicitChild: implicitChild, + explicitChildID: explicitChildID, + explicitChild: explicitChild, + hasOneParentImplicitChildId: hasOneParentImplicitChildId, + ); } bool equals(Object other) { @@ -134,176 +137,226 @@ class HasOneParent extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); buffer.write("explicitChildID=" + "$_explicitChildID" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt.format() : "null") + - ", "); buffer.write( - "hasOneParentImplicitChildId=" + "$_hasOneParentImplicitChildId"); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null") + ", ", + ); + buffer.write( + "hasOneParentImplicitChildId=" + "$_hasOneParentImplicitChildId", + ); buffer.write("}"); return buffer.toString(); } - HasOneParent copyWith( - {String? name, - HasOneChild? implicitChild, - String? explicitChildID, - HasOneChild? explicitChild, - String? hasOneParentImplicitChildId}) { + HasOneParent copyWith({ + String? name, + HasOneChild? implicitChild, + String? explicitChildID, + HasOneChild? explicitChild, + String? hasOneParentImplicitChildId, + }) { return HasOneParent._internal( - id: id, - name: name ?? this.name, - implicitChild: implicitChild ?? this.implicitChild, - explicitChildID: explicitChildID ?? this.explicitChildID, - explicitChild: explicitChild ?? this.explicitChild, - hasOneParentImplicitChildId: - hasOneParentImplicitChildId ?? this.hasOneParentImplicitChildId); + id: id, + name: name ?? this.name, + implicitChild: implicitChild ?? this.implicitChild, + explicitChildID: explicitChildID ?? this.explicitChildID, + explicitChild: explicitChild ?? this.explicitChild, + hasOneParentImplicitChildId: + hasOneParentImplicitChildId ?? this.hasOneParentImplicitChildId, + ); } - HasOneParent copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? implicitChild, - ModelFieldValue? explicitChildID, - ModelFieldValue? explicitChild, - ModelFieldValue? hasOneParentImplicitChildId}) { + HasOneParent copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? implicitChild, + ModelFieldValue? explicitChildID, + ModelFieldValue? explicitChild, + ModelFieldValue? hasOneParentImplicitChildId, + }) { return HasOneParent._internal( - id: id, - name: name == null ? this.name : name.value, - implicitChild: - implicitChild == null ? this.implicitChild : implicitChild.value, - explicitChildID: explicitChildID == null - ? this.explicitChildID - : explicitChildID.value, - explicitChild: - explicitChild == null ? this.explicitChild : explicitChild.value, - hasOneParentImplicitChildId: hasOneParentImplicitChildId == null - ? this.hasOneParentImplicitChildId - : hasOneParentImplicitChildId.value); + id: id, + name: name == null ? this.name : name.value, + implicitChild: + implicitChild == null ? this.implicitChild : implicitChild.value, + explicitChildID: + explicitChildID == null + ? this.explicitChildID + : explicitChildID.value, + explicitChild: + explicitChild == null ? this.explicitChild : explicitChild.value, + hasOneParentImplicitChildId: + hasOneParentImplicitChildId == null + ? this.hasOneParentImplicitChildId + : hasOneParentImplicitChildId.value, + ); } HasOneParent.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _implicitChild = json['implicitChild'] != null - ? json['implicitChild']['serializedData'] != null - ? HasOneChild.fromJson(new Map.from( - json['implicitChild']['serializedData'])) - : HasOneChild.fromJson( - new Map.from(json['implicitChild'])) - : null, - _explicitChildID = json['explicitChildID'], - _explicitChild = json['explicitChild'] != null - ? json['explicitChild']['serializedData'] != null - ? HasOneChild.fromJson(new Map.from( - json['explicitChild']['serializedData'])) - : HasOneChild.fromJson( - new Map.from(json['explicitChild'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _hasOneParentImplicitChildId = json['hasOneParentImplicitChildId']; + : id = json['id'], + _name = json['name'], + _implicitChild = + json['implicitChild'] != null + ? json['implicitChild']['serializedData'] != null + ? HasOneChild.fromJson( + new Map.from( + json['implicitChild']['serializedData'], + ), + ) + : HasOneChild.fromJson( + new Map.from(json['implicitChild']), + ) + : null, + _explicitChildID = json['explicitChildID'], + _explicitChild = + json['explicitChild'] != null + ? json['explicitChild']['serializedData'] != null + ? HasOneChild.fromJson( + new Map.from( + json['explicitChild']['serializedData'], + ), + ) + : HasOneChild.fromJson( + new Map.from(json['explicitChild']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _hasOneParentImplicitChildId = json['hasOneParentImplicitChildId']; Map toJson() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild?.toJson(), - 'explicitChildID': _explicitChildID, - 'explicitChild': _explicitChild?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'hasOneParentImplicitChildId': _hasOneParentImplicitChildId - }; + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild?.toJson(), + 'explicitChildID': _explicitChildID, + 'explicitChild': _explicitChild?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'hasOneParentImplicitChildId': _hasOneParentImplicitChildId, + }; Map toMap() => { - 'id': id, - 'name': _name, - 'implicitChild': _implicitChild, - 'explicitChildID': _explicitChildID, - 'explicitChild': _explicitChild, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'hasOneParentImplicitChildId': _hasOneParentImplicitChildId - }; + 'id': id, + 'name': _name, + 'implicitChild': _implicitChild, + 'explicitChildID': _explicitChildID, + 'explicitChild': _explicitChild, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'hasOneParentImplicitChildId': _hasOneParentImplicitChildId, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILD = amplify_core.QueryField( - fieldName: "implicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasOneChild')); - static final EXPLICITCHILDID = - amplify_core.QueryField(fieldName: "explicitChildID"); + fieldName: "implicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasOneChild', + ), + ); + static final EXPLICITCHILDID = amplify_core.QueryField( + fieldName: "explicitChildID", + ); static final EXPLICITCHILD = amplify_core.QueryField( - fieldName: "explicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'HasOneChild')); - static final HASONEPARENTIMPLICITCHILDID = - amplify_core.QueryField(fieldName: "hasOneParentImplicitChildId"); + fieldName: "explicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'HasOneChild', + ), + ); + static final HASONEPARENTIMPLICITCHILDID = amplify_core.QueryField( + fieldName: "hasOneParentImplicitChildId", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "HasOneParent"; - modelSchemaDefinition.pluralName = "HasOneParents"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasOneParent.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: HasOneParent.IMPLICITCHILD, - isRequired: false, - ofModelName: 'HasOneChild', - associatedKey: HasOneChild.ID)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasOneParent.EXPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: HasOneParent.EXPLICITCHILD, - isRequired: false, - ofModelName: 'HasOneChild', - associatedKey: HasOneChild.ID)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "HasOneParent"; + modelSchemaDefinition.pluralName = "HasOneParents"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasOneParent.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: HasOneParent.IMPLICITCHILD, + isRequired: false, + ofModelName: 'HasOneChild', + associatedKey: HasOneChild.ID, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasOneParent.EXPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: HasOneParent.EXPLICITCHILD, + isRequired: false, + ofModelName: 'HasOneChild', + associatedKey: HasOneChild.ID, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: HasOneParent.HASONEPARENTIMPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: HasOneParent.HASONEPARENTIMPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _HasOneParentModelType extends amplify_core.ModelType { @@ -335,10 +388,10 @@ class HasOneParentModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/ModelProvider.dart b/packages/amplify_datastore/example/lib/models/ModelProvider.dart index 02ebebf58a..7311291110 100644 --- a/packages/amplify_datastore/example/lib/models/ModelProvider.dart +++ b/packages/amplify_datastore/example/lib/models/ModelProvider.dart @@ -164,12 +164,12 @@ class ModelProvider implements amplify_core.ModelProviderInterface { Post.schema, PostTags.schema, PrivateTodo.schema, - Tag.schema + Tag.schema, ]; @override List customTypeSchemas = [ CustomTypeWithAppsyncScalarTypes.schema, - SimpleCustomType.schema + SimpleCustomType.schema, ]; static final ModelProvider _instance = ModelProvider(); @@ -267,8 +267,8 @@ class ModelProvider implements amplify_core.ModelProviderInterface { return Tag.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/lib/models/ModelProviderExampleApp.dart b/packages/amplify_datastore/example/lib/models/ModelProviderExampleApp.dart index 9dceb2240b..7ed25a3315 100644 --- a/packages/amplify_datastore/example/lib/models/ModelProviderExampleApp.dart +++ b/packages/amplify_datastore/example/lib/models/ModelProviderExampleApp.dart @@ -48,7 +48,7 @@ class ModelProvider implements amplify_core.ModelProviderInterface { Post.schema, PostTags.schema, PrivateTodo.schema, - Tag.schema + Tag.schema, ]; @override List customTypeSchemas = []; @@ -75,8 +75,8 @@ class ModelProvider implements amplify_core.ModelProviderInterface { return Tag.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/amplify_datastore/example/lib/models/ModelWithAppsyncScalarTypes.dart b/packages/amplify_datastore/example/lib/models/ModelWithAppsyncScalarTypes.dart index 4f04a4c2cc..8130352c9b 100644 --- a/packages/amplify_datastore/example/lib/models/ModelWithAppsyncScalarTypes.dart +++ b/packages/amplify_datastore/example/lib/models/ModelWithAppsyncScalarTypes.dart @@ -62,7 +62,8 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -190,157 +191,174 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { return _updatedAt; } - const ModelWithAppsyncScalarTypes._internal( - {required this.id, - stringValue, - altStringValue, - listOfStringValue, - intValue, - altIntValue, - listOfIntValue, - floatValue, - listOfFloatValue, - booleanValue, - listOfBooleanValue, - awsDateValue, - listOfAWSDateValue, - awsTimeValue, - listOfAWSTimeValue, - awsDateTimeValue, - listOfAWSDateTimeValue, - awsTimestampValue, - listOfAWSTimestampValue, - awsEmailValue, - listOfAWSEmailValue, - awsJsonValue, - listOfAWSJsonValue, - awsPhoneValue, - listOfAWSPhoneValue, - awsURLValue, - listOfAWSURLValue, - awsIPAddressValue, - listOfAWSIPAddressValue, - createdAt, - updatedAt}) - : _stringValue = stringValue, - _altStringValue = altStringValue, - _listOfStringValue = listOfStringValue, - _intValue = intValue, - _altIntValue = altIntValue, - _listOfIntValue = listOfIntValue, - _floatValue = floatValue, - _listOfFloatValue = listOfFloatValue, - _booleanValue = booleanValue, - _listOfBooleanValue = listOfBooleanValue, - _awsDateValue = awsDateValue, - _listOfAWSDateValue = listOfAWSDateValue, - _awsTimeValue = awsTimeValue, - _listOfAWSTimeValue = listOfAWSTimeValue, - _awsDateTimeValue = awsDateTimeValue, - _listOfAWSDateTimeValue = listOfAWSDateTimeValue, - _awsTimestampValue = awsTimestampValue, - _listOfAWSTimestampValue = listOfAWSTimestampValue, - _awsEmailValue = awsEmailValue, - _listOfAWSEmailValue = listOfAWSEmailValue, - _awsJsonValue = awsJsonValue, - _listOfAWSJsonValue = listOfAWSJsonValue, - _awsPhoneValue = awsPhoneValue, - _listOfAWSPhoneValue = listOfAWSPhoneValue, - _awsURLValue = awsURLValue, - _listOfAWSURLValue = listOfAWSURLValue, - _awsIPAddressValue = awsIPAddressValue, - _listOfAWSIPAddressValue = listOfAWSIPAddressValue, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory ModelWithAppsyncScalarTypes( - {String? id, - String? stringValue, - String? altStringValue, - List? listOfStringValue, - int? intValue, - int? altIntValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue}) { + const ModelWithAppsyncScalarTypes._internal({ + required this.id, + stringValue, + altStringValue, + listOfStringValue, + intValue, + altIntValue, + listOfIntValue, + floatValue, + listOfFloatValue, + booleanValue, + listOfBooleanValue, + awsDateValue, + listOfAWSDateValue, + awsTimeValue, + listOfAWSTimeValue, + awsDateTimeValue, + listOfAWSDateTimeValue, + awsTimestampValue, + listOfAWSTimestampValue, + awsEmailValue, + listOfAWSEmailValue, + awsJsonValue, + listOfAWSJsonValue, + awsPhoneValue, + listOfAWSPhoneValue, + awsURLValue, + listOfAWSURLValue, + awsIPAddressValue, + listOfAWSIPAddressValue, + createdAt, + updatedAt, + }) : _stringValue = stringValue, + _altStringValue = altStringValue, + _listOfStringValue = listOfStringValue, + _intValue = intValue, + _altIntValue = altIntValue, + _listOfIntValue = listOfIntValue, + _floatValue = floatValue, + _listOfFloatValue = listOfFloatValue, + _booleanValue = booleanValue, + _listOfBooleanValue = listOfBooleanValue, + _awsDateValue = awsDateValue, + _listOfAWSDateValue = listOfAWSDateValue, + _awsTimeValue = awsTimeValue, + _listOfAWSTimeValue = listOfAWSTimeValue, + _awsDateTimeValue = awsDateTimeValue, + _listOfAWSDateTimeValue = listOfAWSDateTimeValue, + _awsTimestampValue = awsTimestampValue, + _listOfAWSTimestampValue = listOfAWSTimestampValue, + _awsEmailValue = awsEmailValue, + _listOfAWSEmailValue = listOfAWSEmailValue, + _awsJsonValue = awsJsonValue, + _listOfAWSJsonValue = listOfAWSJsonValue, + _awsPhoneValue = awsPhoneValue, + _listOfAWSPhoneValue = listOfAWSPhoneValue, + _awsURLValue = awsURLValue, + _listOfAWSURLValue = listOfAWSURLValue, + _awsIPAddressValue = awsIPAddressValue, + _listOfAWSIPAddressValue = listOfAWSIPAddressValue, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory ModelWithAppsyncScalarTypes({ + String? id, + String? stringValue, + String? altStringValue, + List? listOfStringValue, + int? intValue, + int? altIntValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + }) { return ModelWithAppsyncScalarTypes._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - stringValue: stringValue, - altStringValue: altStringValue, - listOfStringValue: listOfStringValue != null - ? List.unmodifiable(listOfStringValue) - : listOfStringValue, - intValue: intValue, - altIntValue: altIntValue, - listOfIntValue: listOfIntValue != null - ? List.unmodifiable(listOfIntValue) - : listOfIntValue, - floatValue: floatValue, - listOfFloatValue: listOfFloatValue != null - ? List.unmodifiable(listOfFloatValue) - : listOfFloatValue, - booleanValue: booleanValue, - listOfBooleanValue: listOfBooleanValue != null - ? List.unmodifiable(listOfBooleanValue) - : listOfBooleanValue, - awsDateValue: awsDateValue, - listOfAWSDateValue: listOfAWSDateValue != null - ? List.unmodifiable(listOfAWSDateValue) - : listOfAWSDateValue, - awsTimeValue: awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue != null - ? List.unmodifiable(listOfAWSTimeValue) - : listOfAWSTimeValue, - awsDateTimeValue: awsDateTimeValue, - listOfAWSDateTimeValue: listOfAWSDateTimeValue != null - ? List.unmodifiable( - listOfAWSDateTimeValue) - : listOfAWSDateTimeValue, - awsTimestampValue: awsTimestampValue, - listOfAWSTimestampValue: listOfAWSTimestampValue != null - ? List.unmodifiable( - listOfAWSTimestampValue) - : listOfAWSTimestampValue, - awsEmailValue: awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue != null - ? List.unmodifiable(listOfAWSEmailValue) - : listOfAWSEmailValue, - awsJsonValue: awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue != null - ? List.unmodifiable(listOfAWSJsonValue) - : listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue != null - ? List.unmodifiable(listOfAWSPhoneValue) - : listOfAWSPhoneValue, - awsURLValue: awsURLValue, - listOfAWSURLValue: listOfAWSURLValue != null - ? List.unmodifiable(listOfAWSURLValue) - : listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue, - listOfAWSIPAddressValue: listOfAWSIPAddressValue != null - ? List.unmodifiable(listOfAWSIPAddressValue) - : listOfAWSIPAddressValue); + id: id == null ? amplify_core.UUID.getUUID() : id, + stringValue: stringValue, + altStringValue: altStringValue, + listOfStringValue: + listOfStringValue != null + ? List.unmodifiable(listOfStringValue) + : listOfStringValue, + intValue: intValue, + altIntValue: altIntValue, + listOfIntValue: + listOfIntValue != null + ? List.unmodifiable(listOfIntValue) + : listOfIntValue, + floatValue: floatValue, + listOfFloatValue: + listOfFloatValue != null + ? List.unmodifiable(listOfFloatValue) + : listOfFloatValue, + booleanValue: booleanValue, + listOfBooleanValue: + listOfBooleanValue != null + ? List.unmodifiable(listOfBooleanValue) + : listOfBooleanValue, + awsDateValue: awsDateValue, + listOfAWSDateValue: + listOfAWSDateValue != null + ? List.unmodifiable(listOfAWSDateValue) + : listOfAWSDateValue, + awsTimeValue: awsTimeValue, + listOfAWSTimeValue: + listOfAWSTimeValue != null + ? List.unmodifiable(listOfAWSTimeValue) + : listOfAWSTimeValue, + awsDateTimeValue: awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue != null + ? List.unmodifiable( + listOfAWSDateTimeValue, + ) + : listOfAWSDateTimeValue, + awsTimestampValue: awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue != null + ? List.unmodifiable( + listOfAWSTimestampValue, + ) + : listOfAWSTimestampValue, + awsEmailValue: awsEmailValue, + listOfAWSEmailValue: + listOfAWSEmailValue != null + ? List.unmodifiable(listOfAWSEmailValue) + : listOfAWSEmailValue, + awsJsonValue: awsJsonValue, + listOfAWSJsonValue: + listOfAWSJsonValue != null + ? List.unmodifiable(listOfAWSJsonValue) + : listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue, + listOfAWSPhoneValue: + listOfAWSPhoneValue != null + ? List.unmodifiable(listOfAWSPhoneValue) + : listOfAWSPhoneValue, + awsURLValue: awsURLValue, + listOfAWSURLValue: + listOfAWSURLValue != null + ? List.unmodifiable(listOfAWSURLValue) + : listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue != null + ? List.unmodifiable(listOfAWSIPAddressValue) + : listOfAWSIPAddressValue, + ); } bool equals(Object other) { @@ -354,45 +372,71 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { id == other.id && _stringValue == other._stringValue && _altStringValue == other._altStringValue && - DeepCollectionEquality() - .equals(_listOfStringValue, other._listOfStringValue) && + DeepCollectionEquality().equals( + _listOfStringValue, + other._listOfStringValue, + ) && _intValue == other._intValue && _altIntValue == other._altIntValue && - DeepCollectionEquality() - .equals(_listOfIntValue, other._listOfIntValue) && + DeepCollectionEquality().equals( + _listOfIntValue, + other._listOfIntValue, + ) && _floatValue == other._floatValue && - DeepCollectionEquality() - .equals(_listOfFloatValue, other._listOfFloatValue) && + DeepCollectionEquality().equals( + _listOfFloatValue, + other._listOfFloatValue, + ) && _booleanValue == other._booleanValue && - DeepCollectionEquality() - .equals(_listOfBooleanValue, other._listOfBooleanValue) && + DeepCollectionEquality().equals( + _listOfBooleanValue, + other._listOfBooleanValue, + ) && _awsDateValue == other._awsDateValue && - DeepCollectionEquality() - .equals(_listOfAWSDateValue, other._listOfAWSDateValue) && + DeepCollectionEquality().equals( + _listOfAWSDateValue, + other._listOfAWSDateValue, + ) && _awsTimeValue == other._awsTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSTimeValue, other._listOfAWSTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSTimeValue, + other._listOfAWSTimeValue, + ) && _awsDateTimeValue == other._awsDateTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSDateTimeValue, other._listOfAWSDateTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSDateTimeValue, + other._listOfAWSDateTimeValue, + ) && _awsTimestampValue == other._awsTimestampValue && - DeepCollectionEquality() - .equals(_listOfAWSTimestampValue, other._listOfAWSTimestampValue) && + DeepCollectionEquality().equals( + _listOfAWSTimestampValue, + other._listOfAWSTimestampValue, + ) && _awsEmailValue == other._awsEmailValue && - DeepCollectionEquality() - .equals(_listOfAWSEmailValue, other._listOfAWSEmailValue) && + DeepCollectionEquality().equals( + _listOfAWSEmailValue, + other._listOfAWSEmailValue, + ) && _awsJsonValue == other._awsJsonValue && - DeepCollectionEquality() - .equals(_listOfAWSJsonValue, other._listOfAWSJsonValue) && + DeepCollectionEquality().equals( + _listOfAWSJsonValue, + other._listOfAWSJsonValue, + ) && _awsPhoneValue == other._awsPhoneValue && - DeepCollectionEquality() - .equals(_listOfAWSPhoneValue, other._listOfAWSPhoneValue) && + DeepCollectionEquality().equals( + _listOfAWSPhoneValue, + other._listOfAWSPhoneValue, + ) && _awsURLValue == other._awsURLValue && - DeepCollectionEquality() - .equals(_listOfAWSURLValue, other._listOfAWSURLValue) && + DeepCollectionEquality().equals( + _listOfAWSURLValue, + other._listOfAWSURLValue, + ) && _awsIPAddressValue == other._awsIPAddressValue && - DeepCollectionEquality() - .equals(_listOfAWSIPAddressValue, other._listOfAWSIPAddressValue); + DeepCollectionEquality().equals( + _listOfAWSIPAddressValue, + other._listOfAWSIPAddressValue, + ); } @override @@ -406,671 +450,895 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("stringValue=" + "$_stringValue" + ", "); buffer.write("altStringValue=" + "$_altStringValue" + ", "); - buffer.write("listOfStringValue=" + - (_listOfStringValue != null ? _listOfStringValue.toString() : "null") + - ", "); - buffer.write("intValue=" + - (_intValue != null ? _intValue.toString() : "null") + - ", "); - buffer.write("altIntValue=" + - (_altIntValue != null ? _altIntValue.toString() : "null") + - ", "); - buffer.write("listOfIntValue=" + - (_listOfIntValue != null ? _listOfIntValue.toString() : "null") + - ", "); - buffer.write("floatValue=" + - (_floatValue != null ? _floatValue.toString() : "null") + - ", "); - buffer.write("listOfFloatValue=" + - (_listOfFloatValue != null ? _listOfFloatValue.toString() : "null") + - ", "); - buffer.write("booleanValue=" + - (_booleanValue != null ? _booleanValue.toString() : "null") + - ", "); - buffer.write("listOfBooleanValue=" + - (_listOfBooleanValue != null - ? _listOfBooleanValue.toString() - : "null") + - ", "); - buffer.write("awsDateValue=" + - (_awsDateValue != null ? _awsDateValue.format() : "null") + - ", "); - buffer.write("listOfAWSDateValue=" + - (_listOfAWSDateValue != null - ? _listOfAWSDateValue.toString() - : "null") + - ", "); - buffer.write("awsTimeValue=" + - (_awsTimeValue != null ? _awsTimeValue.format() : "null") + - ", "); - buffer.write("listOfAWSTimeValue=" + - (_listOfAWSTimeValue != null - ? _listOfAWSTimeValue.toString() - : "null") + - ", "); - buffer.write("awsDateTimeValue=" + - (_awsDateTimeValue != null ? _awsDateTimeValue.format() : "null") + - ", "); - buffer.write("listOfAWSDateTimeValue=" + - (_listOfAWSDateTimeValue != null - ? _listOfAWSDateTimeValue.toString() - : "null") + - ", "); - buffer.write("awsTimestampValue=" + - (_awsTimestampValue != null ? _awsTimestampValue.toString() : "null") + - ", "); - buffer.write("listOfAWSTimestampValue=" + - (_listOfAWSTimestampValue != null - ? _listOfAWSTimestampValue.toString() - : "null") + - ", "); + buffer.write( + "listOfStringValue=" + + (_listOfStringValue != null + ? _listOfStringValue.toString() + : "null") + + ", ", + ); + buffer.write( + "intValue=" + (_intValue != null ? _intValue.toString() : "null") + ", ", + ); + buffer.write( + "altIntValue=" + + (_altIntValue != null ? _altIntValue.toString() : "null") + + ", ", + ); + buffer.write( + "listOfIntValue=" + + (_listOfIntValue != null ? _listOfIntValue.toString() : "null") + + ", ", + ); + buffer.write( + "floatValue=" + + (_floatValue != null ? _floatValue.toString() : "null") + + ", ", + ); + buffer.write( + "listOfFloatValue=" + + (_listOfFloatValue != null ? _listOfFloatValue.toString() : "null") + + ", ", + ); + buffer.write( + "booleanValue=" + + (_booleanValue != null ? _booleanValue.toString() : "null") + + ", ", + ); + buffer.write( + "listOfBooleanValue=" + + (_listOfBooleanValue != null + ? _listOfBooleanValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateValue=" + + (_awsDateValue != null ? _awsDateValue.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateValue=" + + (_listOfAWSDateValue != null + ? _listOfAWSDateValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimeValue=" + + (_awsTimeValue != null ? _awsTimeValue.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimeValue=" + + (_listOfAWSTimeValue != null + ? _listOfAWSTimeValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateTimeValue=" + + (_awsDateTimeValue != null ? _awsDateTimeValue.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateTimeValue=" + + (_listOfAWSDateTimeValue != null + ? _listOfAWSDateTimeValue.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimestampValue=" + + (_awsTimestampValue != null + ? _awsTimestampValue.toString() + : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimestampValue=" + + (_listOfAWSTimestampValue != null + ? _listOfAWSTimestampValue.toString() + : "null") + + ", ", + ); buffer.write("awsEmailValue=" + "$_awsEmailValue" + ", "); - buffer.write("listOfAWSEmailValue=" + - (_listOfAWSEmailValue != null - ? _listOfAWSEmailValue.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSEmailValue=" + + (_listOfAWSEmailValue != null + ? _listOfAWSEmailValue.toString() + : "null") + + ", ", + ); buffer.write("awsJsonValue=" + "$_awsJsonValue" + ", "); - buffer.write("listOfAWSJsonValue=" + - (_listOfAWSJsonValue != null - ? _listOfAWSJsonValue.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSJsonValue=" + + (_listOfAWSJsonValue != null + ? _listOfAWSJsonValue.toString() + : "null") + + ", ", + ); buffer.write("awsPhoneValue=" + "$_awsPhoneValue" + ", "); - buffer.write("listOfAWSPhoneValue=" + - (_listOfAWSPhoneValue != null - ? _listOfAWSPhoneValue.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSPhoneValue=" + + (_listOfAWSPhoneValue != null + ? _listOfAWSPhoneValue.toString() + : "null") + + ", ", + ); buffer.write("awsURLValue=" + "$_awsURLValue" + ", "); - buffer.write("listOfAWSURLValue=" + - (_listOfAWSURLValue != null ? _listOfAWSURLValue.toString() : "null") + - ", "); + buffer.write( + "listOfAWSURLValue=" + + (_listOfAWSURLValue != null + ? _listOfAWSURLValue.toString() + : "null") + + ", ", + ); buffer.write("awsIPAddressValue=" + "$_awsIPAddressValue" + ", "); - buffer.write("listOfAWSIPAddressValue=" + - (_listOfAWSIPAddressValue != null - ? _listOfAWSIPAddressValue.toString() - : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "listOfAWSIPAddressValue=" + + (_listOfAWSIPAddressValue != null + ? _listOfAWSIPAddressValue.toString() + : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - ModelWithAppsyncScalarTypes copyWith( - {String? stringValue, - String? altStringValue, - List? listOfStringValue, - int? intValue, - int? altIntValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue}) { + ModelWithAppsyncScalarTypes copyWith({ + String? stringValue, + String? altStringValue, + List? listOfStringValue, + int? intValue, + int? altIntValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + }) { return ModelWithAppsyncScalarTypes._internal( - id: id, - stringValue: stringValue ?? this.stringValue, - altStringValue: altStringValue ?? this.altStringValue, - listOfStringValue: listOfStringValue ?? this.listOfStringValue, - intValue: intValue ?? this.intValue, - altIntValue: altIntValue ?? this.altIntValue, - listOfIntValue: listOfIntValue ?? this.listOfIntValue, - floatValue: floatValue ?? this.floatValue, - listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, - booleanValue: booleanValue ?? this.booleanValue, - listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, - awsDateValue: awsDateValue ?? this.awsDateValue, - listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, - awsTimeValue: awsTimeValue ?? this.awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, - awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, - listOfAWSDateTimeValue: - listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, - awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, - listOfAWSTimestampValue: - listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, - awsEmailValue: awsEmailValue ?? this.awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, - awsJsonValue: awsJsonValue ?? this.awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, - awsURLValue: awsURLValue ?? this.awsURLValue, - listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, - listOfAWSIPAddressValue: - listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue); + id: id, + stringValue: stringValue ?? this.stringValue, + altStringValue: altStringValue ?? this.altStringValue, + listOfStringValue: listOfStringValue ?? this.listOfStringValue, + intValue: intValue ?? this.intValue, + altIntValue: altIntValue ?? this.altIntValue, + listOfIntValue: listOfIntValue ?? this.listOfIntValue, + floatValue: floatValue ?? this.floatValue, + listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, + booleanValue: booleanValue ?? this.booleanValue, + listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, + awsDateValue: awsDateValue ?? this.awsDateValue, + listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, + awsTimeValue: awsTimeValue ?? this.awsTimeValue, + listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, + awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, + awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, + awsEmailValue: awsEmailValue ?? this.awsEmailValue, + listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, + awsJsonValue: awsJsonValue ?? this.awsJsonValue, + listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, + listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, + awsURLValue: awsURLValue ?? this.awsURLValue, + listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue, + ); } - ModelWithAppsyncScalarTypes copyWithModelFieldValues( - {ModelFieldValue? stringValue, - ModelFieldValue? altStringValue, - ModelFieldValue?>? listOfStringValue, - ModelFieldValue? intValue, - ModelFieldValue? altIntValue, - ModelFieldValue?>? listOfIntValue, - ModelFieldValue? floatValue, - ModelFieldValue?>? listOfFloatValue, - ModelFieldValue? booleanValue, - ModelFieldValue?>? listOfBooleanValue, - ModelFieldValue? awsDateValue, - ModelFieldValue?>? listOfAWSDateValue, - ModelFieldValue? awsTimeValue, - ModelFieldValue?>? listOfAWSTimeValue, - ModelFieldValue? awsDateTimeValue, - ModelFieldValue?>? - listOfAWSDateTimeValue, - ModelFieldValue? awsTimestampValue, - ModelFieldValue?>? - listOfAWSTimestampValue, - ModelFieldValue? awsEmailValue, - ModelFieldValue?>? listOfAWSEmailValue, - ModelFieldValue? awsJsonValue, - ModelFieldValue?>? listOfAWSJsonValue, - ModelFieldValue? awsPhoneValue, - ModelFieldValue?>? listOfAWSPhoneValue, - ModelFieldValue? awsURLValue, - ModelFieldValue?>? listOfAWSURLValue, - ModelFieldValue? awsIPAddressValue, - ModelFieldValue?>? listOfAWSIPAddressValue}) { + ModelWithAppsyncScalarTypes copyWithModelFieldValues({ + ModelFieldValue? stringValue, + ModelFieldValue? altStringValue, + ModelFieldValue?>? listOfStringValue, + ModelFieldValue? intValue, + ModelFieldValue? altIntValue, + ModelFieldValue?>? listOfIntValue, + ModelFieldValue? floatValue, + ModelFieldValue?>? listOfFloatValue, + ModelFieldValue? booleanValue, + ModelFieldValue?>? listOfBooleanValue, + ModelFieldValue? awsDateValue, + ModelFieldValue?>? listOfAWSDateValue, + ModelFieldValue? awsTimeValue, + ModelFieldValue?>? listOfAWSTimeValue, + ModelFieldValue? awsDateTimeValue, + ModelFieldValue?>? + listOfAWSDateTimeValue, + ModelFieldValue? awsTimestampValue, + ModelFieldValue?>? + listOfAWSTimestampValue, + ModelFieldValue? awsEmailValue, + ModelFieldValue?>? listOfAWSEmailValue, + ModelFieldValue? awsJsonValue, + ModelFieldValue?>? listOfAWSJsonValue, + ModelFieldValue? awsPhoneValue, + ModelFieldValue?>? listOfAWSPhoneValue, + ModelFieldValue? awsURLValue, + ModelFieldValue?>? listOfAWSURLValue, + ModelFieldValue? awsIPAddressValue, + ModelFieldValue?>? listOfAWSIPAddressValue, + }) { return ModelWithAppsyncScalarTypes._internal( - id: id, - stringValue: stringValue == null ? this.stringValue : stringValue.value, - altStringValue: - altStringValue == null ? this.altStringValue : altStringValue.value, - listOfStringValue: listOfStringValue == null - ? this.listOfStringValue - : listOfStringValue.value, - intValue: intValue == null ? this.intValue : intValue.value, - altIntValue: altIntValue == null ? this.altIntValue : altIntValue.value, - listOfIntValue: - listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, - floatValue: floatValue == null ? this.floatValue : floatValue.value, - listOfFloatValue: listOfFloatValue == null - ? this.listOfFloatValue - : listOfFloatValue.value, - booleanValue: - booleanValue == null ? this.booleanValue : booleanValue.value, - listOfBooleanValue: listOfBooleanValue == null - ? this.listOfBooleanValue - : listOfBooleanValue.value, - awsDateValue: - awsDateValue == null ? this.awsDateValue : awsDateValue.value, - listOfAWSDateValue: listOfAWSDateValue == null - ? this.listOfAWSDateValue - : listOfAWSDateValue.value, - awsTimeValue: - awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, - listOfAWSTimeValue: listOfAWSTimeValue == null - ? this.listOfAWSTimeValue - : listOfAWSTimeValue.value, - awsDateTimeValue: awsDateTimeValue == null - ? this.awsDateTimeValue - : awsDateTimeValue.value, - listOfAWSDateTimeValue: listOfAWSDateTimeValue == null - ? this.listOfAWSDateTimeValue - : listOfAWSDateTimeValue.value, - awsTimestampValue: awsTimestampValue == null - ? this.awsTimestampValue - : awsTimestampValue.value, - listOfAWSTimestampValue: listOfAWSTimestampValue == null - ? this.listOfAWSTimestampValue - : listOfAWSTimestampValue.value, - awsEmailValue: - awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, - listOfAWSEmailValue: listOfAWSEmailValue == null - ? this.listOfAWSEmailValue - : listOfAWSEmailValue.value, - awsJsonValue: - awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, - listOfAWSJsonValue: listOfAWSJsonValue == null - ? this.listOfAWSJsonValue - : listOfAWSJsonValue.value, - awsPhoneValue: - awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, - listOfAWSPhoneValue: listOfAWSPhoneValue == null - ? this.listOfAWSPhoneValue - : listOfAWSPhoneValue.value, - awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, - listOfAWSURLValue: listOfAWSURLValue == null - ? this.listOfAWSURLValue - : listOfAWSURLValue.value, - awsIPAddressValue: awsIPAddressValue == null - ? this.awsIPAddressValue - : awsIPAddressValue.value, - listOfAWSIPAddressValue: listOfAWSIPAddressValue == null - ? this.listOfAWSIPAddressValue - : listOfAWSIPAddressValue.value); + id: id, + stringValue: stringValue == null ? this.stringValue : stringValue.value, + altStringValue: + altStringValue == null ? this.altStringValue : altStringValue.value, + listOfStringValue: + listOfStringValue == null + ? this.listOfStringValue + : listOfStringValue.value, + intValue: intValue == null ? this.intValue : intValue.value, + altIntValue: altIntValue == null ? this.altIntValue : altIntValue.value, + listOfIntValue: + listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, + floatValue: floatValue == null ? this.floatValue : floatValue.value, + listOfFloatValue: + listOfFloatValue == null + ? this.listOfFloatValue + : listOfFloatValue.value, + booleanValue: + booleanValue == null ? this.booleanValue : booleanValue.value, + listOfBooleanValue: + listOfBooleanValue == null + ? this.listOfBooleanValue + : listOfBooleanValue.value, + awsDateValue: + awsDateValue == null ? this.awsDateValue : awsDateValue.value, + listOfAWSDateValue: + listOfAWSDateValue == null + ? this.listOfAWSDateValue + : listOfAWSDateValue.value, + awsTimeValue: + awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, + listOfAWSTimeValue: + listOfAWSTimeValue == null + ? this.listOfAWSTimeValue + : listOfAWSTimeValue.value, + awsDateTimeValue: + awsDateTimeValue == null + ? this.awsDateTimeValue + : awsDateTimeValue.value, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue == null + ? this.listOfAWSDateTimeValue + : listOfAWSDateTimeValue.value, + awsTimestampValue: + awsTimestampValue == null + ? this.awsTimestampValue + : awsTimestampValue.value, + listOfAWSTimestampValue: + listOfAWSTimestampValue == null + ? this.listOfAWSTimestampValue + : listOfAWSTimestampValue.value, + awsEmailValue: + awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, + listOfAWSEmailValue: + listOfAWSEmailValue == null + ? this.listOfAWSEmailValue + : listOfAWSEmailValue.value, + awsJsonValue: + awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, + listOfAWSJsonValue: + listOfAWSJsonValue == null + ? this.listOfAWSJsonValue + : listOfAWSJsonValue.value, + awsPhoneValue: + awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, + listOfAWSPhoneValue: + listOfAWSPhoneValue == null + ? this.listOfAWSPhoneValue + : listOfAWSPhoneValue.value, + awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, + listOfAWSURLValue: + listOfAWSURLValue == null + ? this.listOfAWSURLValue + : listOfAWSURLValue.value, + awsIPAddressValue: + awsIPAddressValue == null + ? this.awsIPAddressValue + : awsIPAddressValue.value, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue == null + ? this.listOfAWSIPAddressValue + : listOfAWSIPAddressValue.value, + ); } ModelWithAppsyncScalarTypes.fromJson(Map json) - : id = json['id'], - _stringValue = json['stringValue'], - _altStringValue = json['altStringValue'], - _listOfStringValue = json['listOfStringValue']?.cast(), - _intValue = (json['intValue'] as num?)?.toInt(), - _altIntValue = (json['altIntValue'] as num?)?.toInt(), - _listOfIntValue = (json['listOfIntValue'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - _floatValue = (json['floatValue'] as num?)?.toDouble(), - _listOfFloatValue = (json['listOfFloatValue'] as List?) - ?.map((e) => (e as num).toDouble()) - .toList(), - _booleanValue = json['booleanValue'], - _listOfBooleanValue = json['listOfBooleanValue']?.cast(), - _awsDateValue = json['awsDateValue'] != null - ? amplify_core.TemporalDate.fromString(json['awsDateValue']) - : null, - _listOfAWSDateValue = (json['listOfAWSDateValue'] as List?) - ?.map((e) => amplify_core.TemporalDate.fromString(e)) - .toList(), - _awsTimeValue = json['awsTimeValue'] != null - ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) - : null, - _listOfAWSTimeValue = (json['listOfAWSTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalTime.fromString(e)) - .toList(), - _awsDateTimeValue = json['awsDateTimeValue'] != null - ? amplify_core.TemporalDateTime.fromString(json['awsDateTimeValue']) - : null, - _listOfAWSDateTimeValue = (json['listOfAWSDateTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) - .toList(), - _awsTimestampValue = json['awsTimestampValue'] != null - ? amplify_core.TemporalTimestamp.fromSeconds( - json['awsTimestampValue']) - : null, - _listOfAWSTimestampValue = (json['listOfAWSTimestampValue'] as List?) - ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) - .toList(), - _awsEmailValue = json['awsEmailValue'], - _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), - _awsJsonValue = json['awsJsonValue'], - _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), - _awsPhoneValue = json['awsPhoneValue'], - _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), - _awsURLValue = json['awsURLValue'], - _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), - _awsIPAddressValue = json['awsIPAddressValue'], - _listOfAWSIPAddressValue = - json['listOfAWSIPAddressValue']?.cast(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _stringValue = json['stringValue'], + _altStringValue = json['altStringValue'], + _listOfStringValue = json['listOfStringValue']?.cast(), + _intValue = (json['intValue'] as num?)?.toInt(), + _altIntValue = (json['altIntValue'] as num?)?.toInt(), + _listOfIntValue = + (json['listOfIntValue'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), + _floatValue = (json['floatValue'] as num?)?.toDouble(), + _listOfFloatValue = + (json['listOfFloatValue'] as List?) + ?.map((e) => (e as num).toDouble()) + .toList(), + _booleanValue = json['booleanValue'], + _listOfBooleanValue = json['listOfBooleanValue']?.cast(), + _awsDateValue = + json['awsDateValue'] != null + ? amplify_core.TemporalDate.fromString(json['awsDateValue']) + : null, + _listOfAWSDateValue = + (json['listOfAWSDateValue'] as List?) + ?.map((e) => amplify_core.TemporalDate.fromString(e)) + .toList(), + _awsTimeValue = + json['awsTimeValue'] != null + ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) + : null, + _listOfAWSTimeValue = + (json['listOfAWSTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalTime.fromString(e)) + .toList(), + _awsDateTimeValue = + json['awsDateTimeValue'] != null + ? amplify_core.TemporalDateTime.fromString( + json['awsDateTimeValue'], + ) + : null, + _listOfAWSDateTimeValue = + (json['listOfAWSDateTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) + .toList(), + _awsTimestampValue = + json['awsTimestampValue'] != null + ? amplify_core.TemporalTimestamp.fromSeconds( + json['awsTimestampValue'], + ) + : null, + _listOfAWSTimestampValue = + (json['listOfAWSTimestampValue'] as List?) + ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) + .toList(), + _awsEmailValue = json['awsEmailValue'], + _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), + _awsJsonValue = json['awsJsonValue'], + _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), + _awsPhoneValue = json['awsPhoneValue'], + _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), + _awsURLValue = json['awsURLValue'], + _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), + _awsIPAddressValue = json['awsIPAddressValue'], + _listOfAWSIPAddressValue = + json['listOfAWSIPAddressValue']?.cast(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'stringValue': _stringValue, - 'altStringValue': _altStringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'altIntValue': _altIntValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue?.format(), - 'listOfAWSDateValue': - _listOfAWSDateValue?.map((e) => e.format()).toList(), - 'awsTimeValue': _awsTimeValue?.format(), - 'listOfAWSTimeValue': - _listOfAWSTimeValue?.map((e) => e.format()).toList(), - 'awsDateTimeValue': _awsDateTimeValue?.format(), - 'listOfAWSDateTimeValue': - _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), - 'awsTimestampValue': _awsTimestampValue?.toSeconds(), - 'listOfAWSTimestampValue': - _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'stringValue': _stringValue, + 'altStringValue': _altStringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'altIntValue': _altIntValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue?.format(), + 'listOfAWSDateValue': _listOfAWSDateValue?.map((e) => e.format()).toList(), + 'awsTimeValue': _awsTimeValue?.format(), + 'listOfAWSTimeValue': _listOfAWSTimeValue?.map((e) => e.format()).toList(), + 'awsDateTimeValue': _awsDateTimeValue?.format(), + 'listOfAWSDateTimeValue': + _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), + 'awsTimestampValue': _awsTimestampValue?.toSeconds(), + 'listOfAWSTimestampValue': + _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'stringValue': _stringValue, - 'altStringValue': _altStringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'altIntValue': _altIntValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue, - 'listOfAWSDateValue': _listOfAWSDateValue, - 'awsTimeValue': _awsTimeValue, - 'listOfAWSTimeValue': _listOfAWSTimeValue, - 'awsDateTimeValue': _awsDateTimeValue, - 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, - 'awsTimestampValue': _awsTimestampValue, - 'listOfAWSTimestampValue': _listOfAWSTimestampValue, - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - ModelWithAppsyncScalarTypesModelIdentifier>(); + 'id': id, + 'stringValue': _stringValue, + 'altStringValue': _altStringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'altIntValue': _altIntValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue, + 'listOfAWSDateValue': _listOfAWSDateValue, + 'awsTimeValue': _awsTimeValue, + 'listOfAWSTimeValue': _listOfAWSTimeValue, + 'awsDateTimeValue': _awsDateTimeValue, + 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, + 'awsTimestampValue': _awsTimestampValue, + 'listOfAWSTimestampValue': _listOfAWSTimestampValue, + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + ModelWithAppsyncScalarTypesModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + ModelWithAppsyncScalarTypesModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final STRINGVALUE = amplify_core.QueryField(fieldName: "stringValue"); - static final ALTSTRINGVALUE = - amplify_core.QueryField(fieldName: "altStringValue"); - static final LISTOFSTRINGVALUE = - amplify_core.QueryField(fieldName: "listOfStringValue"); + static final ALTSTRINGVALUE = amplify_core.QueryField( + fieldName: "altStringValue", + ); + static final LISTOFSTRINGVALUE = amplify_core.QueryField( + fieldName: "listOfStringValue", + ); static final INTVALUE = amplify_core.QueryField(fieldName: "intValue"); static final ALTINTVALUE = amplify_core.QueryField(fieldName: "altIntValue"); - static final LISTOFINTVALUE = - amplify_core.QueryField(fieldName: "listOfIntValue"); + static final LISTOFINTVALUE = amplify_core.QueryField( + fieldName: "listOfIntValue", + ); static final FLOATVALUE = amplify_core.QueryField(fieldName: "floatValue"); - static final LISTOFFLOATVALUE = - amplify_core.QueryField(fieldName: "listOfFloatValue"); - static final BOOLEANVALUE = - amplify_core.QueryField(fieldName: "booleanValue"); - static final LISTOFBOOLEANVALUE = - amplify_core.QueryField(fieldName: "listOfBooleanValue"); - static final AWSDATEVALUE = - amplify_core.QueryField(fieldName: "awsDateValue"); - static final LISTOFAWSDATEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSDateValue"); - static final AWSTIMEVALUE = - amplify_core.QueryField(fieldName: "awsTimeValue"); - static final LISTOFAWSTIMEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSTimeValue"); - static final AWSDATETIMEVALUE = - amplify_core.QueryField(fieldName: "awsDateTimeValue"); - static final LISTOFAWSDATETIMEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSDateTimeValue"); - static final AWSTIMESTAMPVALUE = - amplify_core.QueryField(fieldName: "awsTimestampValue"); - static final LISTOFAWSTIMESTAMPVALUE = - amplify_core.QueryField(fieldName: "listOfAWSTimestampValue"); - static final AWSEMAILVALUE = - amplify_core.QueryField(fieldName: "awsEmailValue"); - static final LISTOFAWSEMAILVALUE = - amplify_core.QueryField(fieldName: "listOfAWSEmailValue"); - static final AWSJSONVALUE = - amplify_core.QueryField(fieldName: "awsJsonValue"); - static final LISTOFAWSJSONVALUE = - amplify_core.QueryField(fieldName: "listOfAWSJsonValue"); - static final AWSPHONEVALUE = - amplify_core.QueryField(fieldName: "awsPhoneValue"); - static final LISTOFAWSPHONEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSPhoneValue"); + static final LISTOFFLOATVALUE = amplify_core.QueryField( + fieldName: "listOfFloatValue", + ); + static final BOOLEANVALUE = amplify_core.QueryField( + fieldName: "booleanValue", + ); + static final LISTOFBOOLEANVALUE = amplify_core.QueryField( + fieldName: "listOfBooleanValue", + ); + static final AWSDATEVALUE = amplify_core.QueryField( + fieldName: "awsDateValue", + ); + static final LISTOFAWSDATEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSDateValue", + ); + static final AWSTIMEVALUE = amplify_core.QueryField( + fieldName: "awsTimeValue", + ); + static final LISTOFAWSTIMEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSTimeValue", + ); + static final AWSDATETIMEVALUE = amplify_core.QueryField( + fieldName: "awsDateTimeValue", + ); + static final LISTOFAWSDATETIMEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSDateTimeValue", + ); + static final AWSTIMESTAMPVALUE = amplify_core.QueryField( + fieldName: "awsTimestampValue", + ); + static final LISTOFAWSTIMESTAMPVALUE = amplify_core.QueryField( + fieldName: "listOfAWSTimestampValue", + ); + static final AWSEMAILVALUE = amplify_core.QueryField( + fieldName: "awsEmailValue", + ); + static final LISTOFAWSEMAILVALUE = amplify_core.QueryField( + fieldName: "listOfAWSEmailValue", + ); + static final AWSJSONVALUE = amplify_core.QueryField( + fieldName: "awsJsonValue", + ); + static final LISTOFAWSJSONVALUE = amplify_core.QueryField( + fieldName: "listOfAWSJsonValue", + ); + static final AWSPHONEVALUE = amplify_core.QueryField( + fieldName: "awsPhoneValue", + ); + static final LISTOFAWSPHONEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSPhoneValue", + ); static final AWSURLVALUE = amplify_core.QueryField(fieldName: "awsURLValue"); - static final LISTOFAWSURLVALUE = - amplify_core.QueryField(fieldName: "listOfAWSURLValue"); - static final AWSIPADDRESSVALUE = - amplify_core.QueryField(fieldName: "awsIPAddressValue"); - static final LISTOFAWSIPADDRESSVALUE = - amplify_core.QueryField(fieldName: "listOfAWSIPAddressValue"); + static final LISTOFAWSURLVALUE = amplify_core.QueryField( + fieldName: "listOfAWSURLValue", + ); + static final AWSIPADDRESSVALUE = amplify_core.QueryField( + fieldName: "awsIPAddressValue", + ); + static final LISTOFAWSIPADDRESSVALUE = amplify_core.QueryField( + fieldName: "listOfAWSIPAddressValue", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "ModelWithAppsyncScalarTypes"; - modelSchemaDefinition.pluralName = "ModelWithAppsyncScalarTypes"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.STRINGVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.ALTSTRINGVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "ModelWithAppsyncScalarTypes"; + modelSchemaDefinition.pluralName = "ModelWithAppsyncScalarTypes"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.STRINGVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.ALTSTRINGVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.INTVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.ALTINTVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFINTVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.INTVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.ALTINTVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFINTVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.int.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.FLOATVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.double))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFFLOATVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.int.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.FLOATVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.double, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFFLOATVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.double.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.BOOLEANVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.bool))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFBOOLEANVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.double.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.BOOLEANVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.bool, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFBOOLEANVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.bool.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSDATEVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.date))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSDATEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.bool.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSDATEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.date, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSDATEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.date.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSTIMEVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.time))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.date.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSTIMEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.time, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.time.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSDATETIMEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.time.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSDATETIMEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.timestamp))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMESTAMPVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.timestamp, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMESTAMPVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSEMAILVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSEMAILVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSEMAILVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSEMAILVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSJSONVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSJSONVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSJSONVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSJSONVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSPHONEVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSPHONEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSPHONEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSPHONEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSURLVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSURLVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSURLVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSURLVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSIPADDRESSVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSIPADDRESSVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSIPADDRESSVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSIPADDRESSVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ModelWithAppsyncScalarTypesModelType @@ -1103,10 +1371,10 @@ class ModelWithAppsyncScalarTypesModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/ModelWithCustomType.dart b/packages/amplify_datastore/example/lib/models/ModelWithCustomType.dart index 2c64cf54ac..16214f93b4 100644 --- a/packages/amplify_datastore/example/lib/models/ModelWithCustomType.dart +++ b/packages/amplify_datastore/example/lib/models/ModelWithCustomType.dart @@ -36,7 +36,8 @@ class ModelWithCustomType extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -60,28 +61,32 @@ class ModelWithCustomType extends amplify_core.Model { return _updatedAt; } - const ModelWithCustomType._internal( - {required this.id, - customTypeValue, - listOfCustomTypeValue, - createdAt, - updatedAt}) - : _customTypeValue = customTypeValue, - _listOfCustomTypeValue = listOfCustomTypeValue, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory ModelWithCustomType( - {String? id, - CustomTypeWithAppsyncScalarTypes? customTypeValue, - List? listOfCustomTypeValue}) { + const ModelWithCustomType._internal({ + required this.id, + customTypeValue, + listOfCustomTypeValue, + createdAt, + updatedAt, + }) : _customTypeValue = customTypeValue, + _listOfCustomTypeValue = listOfCustomTypeValue, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory ModelWithCustomType({ + String? id, + CustomTypeWithAppsyncScalarTypes? customTypeValue, + List? listOfCustomTypeValue, + }) { return ModelWithCustomType._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - customTypeValue: customTypeValue, - listOfCustomTypeValue: listOfCustomTypeValue != null - ? List.unmodifiable( - listOfCustomTypeValue) - : listOfCustomTypeValue); + id: id == null ? amplify_core.UUID.getUUID() : id, + customTypeValue: customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue != null + ? List.unmodifiable( + listOfCustomTypeValue, + ) + : listOfCustomTypeValue, + ); } bool equals(Object other) { @@ -94,8 +99,10 @@ class ModelWithCustomType extends amplify_core.Model { return other is ModelWithCustomType && id == other.id && _customTypeValue == other._customTypeValue && - DeepCollectionEquality() - .equals(_listOfCustomTypeValue, other._listOfCustomTypeValue); + DeepCollectionEquality().equals( + _listOfCustomTypeValue, + other._listOfCustomTypeValue, + ); } @override @@ -107,137 +114,177 @@ class ModelWithCustomType extends amplify_core.Model { buffer.write("ModelWithCustomType {"); buffer.write("id=" + "$id" + ", "); - buffer.write("customTypeValue=" + - (_customTypeValue != null ? _customTypeValue.toString() : "null") + - ", "); - buffer.write("listOfCustomTypeValue=" + - (_listOfCustomTypeValue != null - ? _listOfCustomTypeValue.toString() - : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "customTypeValue=" + + (_customTypeValue != null ? _customTypeValue.toString() : "null") + + ", ", + ); + buffer.write( + "listOfCustomTypeValue=" + + (_listOfCustomTypeValue != null + ? _listOfCustomTypeValue.toString() + : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - ModelWithCustomType copyWith( - {CustomTypeWithAppsyncScalarTypes? customTypeValue, - List? listOfCustomTypeValue}) { + ModelWithCustomType copyWith({ + CustomTypeWithAppsyncScalarTypes? customTypeValue, + List? listOfCustomTypeValue, + }) { return ModelWithCustomType._internal( - id: id, - customTypeValue: customTypeValue ?? this.customTypeValue, - listOfCustomTypeValue: - listOfCustomTypeValue ?? this.listOfCustomTypeValue); + id: id, + customTypeValue: customTypeValue ?? this.customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue ?? this.listOfCustomTypeValue, + ); } - ModelWithCustomType copyWithModelFieldValues( - {ModelFieldValue? customTypeValue, - ModelFieldValue?>? - listOfCustomTypeValue}) { + ModelWithCustomType copyWithModelFieldValues({ + ModelFieldValue? customTypeValue, + ModelFieldValue?>? + listOfCustomTypeValue, + }) { return ModelWithCustomType._internal( - id: id, - customTypeValue: customTypeValue == null - ? this.customTypeValue - : customTypeValue.value, - listOfCustomTypeValue: listOfCustomTypeValue == null - ? this.listOfCustomTypeValue - : listOfCustomTypeValue.value); + id: id, + customTypeValue: + customTypeValue == null + ? this.customTypeValue + : customTypeValue.value, + listOfCustomTypeValue: + listOfCustomTypeValue == null + ? this.listOfCustomTypeValue + : listOfCustomTypeValue.value, + ); } ModelWithCustomType.fromJson(Map json) - : id = json['id'], - _customTypeValue = json['customTypeValue'] != null - ? json['customTypeValue']['serializedData'] != null - ? CustomTypeWithAppsyncScalarTypes.fromJson( + : id = json['id'], + _customTypeValue = + json['customTypeValue'] != null + ? json['customTypeValue']['serializedData'] != null + ? CustomTypeWithAppsyncScalarTypes.fromJson( new Map.from( - json['customTypeValue']['serializedData'])) - : CustomTypeWithAppsyncScalarTypes.fromJson( - new Map.from(json['customTypeValue'])) - : null, - _listOfCustomTypeValue = json['listOfCustomTypeValue'] is List - ? (json['listOfCustomTypeValue'] as List) - .where((e) => e != null) - .map((e) => CustomTypeWithAppsyncScalarTypes.fromJson( - new Map.from(e['serializedData'] ?? e))) - .toList() - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['customTypeValue']['serializedData'], + ), + ) + : CustomTypeWithAppsyncScalarTypes.fromJson( + new Map.from(json['customTypeValue']), + ) + : null, + _listOfCustomTypeValue = + json['listOfCustomTypeValue'] is List + ? (json['listOfCustomTypeValue'] as List) + .where((e) => e != null) + .map( + (e) => CustomTypeWithAppsyncScalarTypes.fromJson( + new Map.from(e['serializedData'] ?? e), + ), + ) + .toList() + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'customTypeValue': _customTypeValue?.toJson(), - 'listOfCustomTypeValue': _listOfCustomTypeValue + 'id': id, + 'customTypeValue': _customTypeValue?.toJson(), + 'listOfCustomTypeValue': + _listOfCustomTypeValue ?.map((CustomTypeWithAppsyncScalarTypes? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'customTypeValue': _customTypeValue, - 'listOfCustomTypeValue': _listOfCustomTypeValue, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'customTypeValue': _customTypeValue, + 'listOfCustomTypeValue': _listOfCustomTypeValue, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + ModelWithCustomTypeModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); - static final CUSTOMTYPEVALUE = - amplify_core.QueryField(fieldName: "customTypeValue"); - static final LISTOFCUSTOMTYPEVALUE = - amplify_core.QueryField(fieldName: "listOfCustomTypeValue"); + static final CUSTOMTYPEVALUE = amplify_core.QueryField( + fieldName: "customTypeValue", + ); + static final LISTOFCUSTOMTYPEVALUE = amplify_core.QueryField( + fieldName: "listOfCustomTypeValue", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "ModelWithCustomType"; - modelSchemaDefinition.pluralName = "ModelWithCustomTypes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "ModelWithCustomType"; + modelSchemaDefinition.pluralName = "ModelWithCustomTypes"; - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'customTypeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'customTypeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'listOfCustomTypeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'listOfCustomTypeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes'))); + ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes', + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ModelWithCustomTypeModelType @@ -270,10 +317,10 @@ class ModelWithCustomTypeModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/ModelWithEnum.dart b/packages/amplify_datastore/example/lib/models/ModelWithEnum.dart index e65574f4a6..e82b446568 100644 --- a/packages/amplify_datastore/example/lib/models/ModelWithEnum.dart +++ b/packages/amplify_datastore/example/lib/models/ModelWithEnum.dart @@ -36,7 +36,8 @@ class ModelWithEnum extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -60,21 +61,30 @@ class ModelWithEnum extends amplify_core.Model { return _updatedAt; } - const ModelWithEnum._internal( - {required this.id, enumField, listOfEnumField, createdAt, updatedAt}) - : _enumField = enumField, - _listOfEnumField = listOfEnumField, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory ModelWithEnum( - {String? id, EnumField? enumField, List? listOfEnumField}) { + const ModelWithEnum._internal({ + required this.id, + enumField, + listOfEnumField, + createdAt, + updatedAt, + }) : _enumField = enumField, + _listOfEnumField = listOfEnumField, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory ModelWithEnum({ + String? id, + EnumField? enumField, + List? listOfEnumField, + }) { return ModelWithEnum._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - enumField: enumField, - listOfEnumField: listOfEnumField != null - ? List.unmodifiable(listOfEnumField) - : listOfEnumField); + id: id == null ? amplify_core.UUID.getUUID() : id, + enumField: enumField, + listOfEnumField: + listOfEnumField != null + ? List.unmodifiable(listOfEnumField) + : listOfEnumField, + ); } bool equals(Object other) { @@ -87,8 +97,10 @@ class ModelWithEnum extends amplify_core.Model { return other is ModelWithEnum && id == other.id && _enumField == other._enumField && - DeepCollectionEquality() - .equals(_listOfEnumField, other._listOfEnumField); + DeepCollectionEquality().equals( + _listOfEnumField, + other._listOfEnumField, + ); } @override @@ -100,123 +112,162 @@ class ModelWithEnum extends amplify_core.Model { buffer.write("ModelWithEnum {"); buffer.write("id=" + "$id" + ", "); - buffer.write("enumField=" + - (_enumField != null ? amplify_core.enumToString(_enumField)! : "null") + - ", "); - buffer.write("listOfEnumField=" + - (_listOfEnumField != null - ? _listOfEnumField - .map((e) => amplify_core.enumToString(e)) - .toString() - : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "enumField=" + + (_enumField != null + ? amplify_core.enumToString(_enumField)! + : "null") + + ", ", + ); + buffer.write( + "listOfEnumField=" + + (_listOfEnumField != null + ? _listOfEnumField + .map((e) => amplify_core.enumToString(e)) + .toString() + : "null") + + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - ModelWithEnum copyWith( - {EnumField? enumField, List? listOfEnumField}) { + ModelWithEnum copyWith({ + EnumField? enumField, + List? listOfEnumField, + }) { return ModelWithEnum._internal( - id: id, - enumField: enumField ?? this.enumField, - listOfEnumField: listOfEnumField ?? this.listOfEnumField); + id: id, + enumField: enumField ?? this.enumField, + listOfEnumField: listOfEnumField ?? this.listOfEnumField, + ); } - ModelWithEnum copyWithModelFieldValues( - {ModelFieldValue? enumField, - ModelFieldValue?>? listOfEnumField}) { + ModelWithEnum copyWithModelFieldValues({ + ModelFieldValue? enumField, + ModelFieldValue?>? listOfEnumField, + }) { return ModelWithEnum._internal( - id: id, - enumField: enumField == null ? this.enumField : enumField.value, - listOfEnumField: listOfEnumField == null - ? this.listOfEnumField - : listOfEnumField.value); + id: id, + enumField: enumField == null ? this.enumField : enumField.value, + listOfEnumField: + listOfEnumField == null + ? this.listOfEnumField + : listOfEnumField.value, + ); } ModelWithEnum.fromJson(Map json) - : id = json['id'], - _enumField = amplify_core.enumFromString( - json['enumField'], EnumField.values), - _listOfEnumField = json['listOfEnumField'] is List - ? (json['listOfEnumField'] as List) - .map((e) => amplify_core.enumFromString( - e, EnumField.values)!) - .toList() - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _enumField = amplify_core.enumFromString( + json['enumField'], + EnumField.values, + ), + _listOfEnumField = + json['listOfEnumField'] is List + ? (json['listOfEnumField'] as List) + .map( + (e) => + amplify_core.enumFromString( + e, + EnumField.values, + )!, + ) + .toList() + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'enumField': amplify_core.enumToString(_enumField), - 'listOfEnumField': - _listOfEnumField?.map((e) => amplify_core.enumToString(e)).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'enumField': amplify_core.enumToString(_enumField), + 'listOfEnumField': + _listOfEnumField?.map((e) => amplify_core.enumToString(e)).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'enumField': _enumField, - 'listOfEnumField': _listOfEnumField, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'enumField': _enumField, + 'listOfEnumField': _listOfEnumField, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final ENUMFIELD = amplify_core.QueryField(fieldName: "enumField"); - static final LISTOFENUMFIELD = - amplify_core.QueryField(fieldName: "listOfEnumField"); + static final LISTOFENUMFIELD = amplify_core.QueryField( + fieldName: "listOfEnumField", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "ModelWithEnum"; - modelSchemaDefinition.pluralName = "ModelWithEnums"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithEnum.ENUMFIELD, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.enumeration))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithEnum.LISTOFENUMFIELD, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "ModelWithEnum"; + modelSchemaDefinition.pluralName = "ModelWithEnums"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithEnum.ENUMFIELD, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.enumeration, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithEnum.LISTOFENUMFIELD, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.enumeration.name))); + ofModelName: amplify_core.ModelFieldTypeEnum.enumeration.name, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ModelWithEnumModelType extends amplify_core.ModelType { @@ -248,10 +299,10 @@ class ModelWithEnumModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/MultiAuthTodo.dart b/packages/amplify_datastore/example/lib/models/MultiAuthTodo.dart index 6471ece037..a055d3ee17 100644 --- a/packages/amplify_datastore/example/lib/models/MultiAuthTodo.dart +++ b/packages/amplify_datastore/example/lib/models/MultiAuthTodo.dart @@ -34,7 +34,8 @@ class MultiAuthTodo extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -54,15 +55,20 @@ class MultiAuthTodo extends amplify_core.Model { return _updatedAt; } - const MultiAuthTodo._internal( - {required this.id, content, createdAt, updatedAt}) - : _content = content, - _createdAt = createdAt, - _updatedAt = updatedAt; + const MultiAuthTodo._internal({ + required this.id, + content, + createdAt, + updatedAt, + }) : _content = content, + _createdAt = createdAt, + _updatedAt = updatedAt; factory MultiAuthTodo({String? id, String? content}) { return MultiAuthTodo._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, content: content); + id: id == null ? amplify_core.UUID.getUUID() : id, + content: content, + ); } bool equals(Object other) { @@ -87,11 +93,12 @@ class MultiAuthTodo extends amplify_core.Model { buffer.write("MultiAuthTodo {"); buffer.write("id=" + "$id" + ", "); buffer.write("content=" + "$_content" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -103,53 +110,59 @@ class MultiAuthTodo extends amplify_core.Model { MultiAuthTodo copyWithModelFieldValues({ModelFieldValue? content}) { return MultiAuthTodo._internal( - id: id, content: content == null ? this.content : content.value); + id: id, + content: content == null ? this.content : content.value, + ); } MultiAuthTodo.fromJson(Map json) - : id = json['id'], - _content = json['content'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _content = json['content'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'content': _content, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'content': _content, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'content': _content, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'content': _content, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final CONTENT = amplify_core.QueryField(fieldName: "content"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "MultiAuthTodo"; - modelSchemaDefinition.pluralName = "MultiAuthTodos"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "MultiAuthTodo"; + modelSchemaDefinition.pluralName = "MultiAuthTodos"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.APIKEY, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -158,34 +171,46 @@ class MultiAuthTodo extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.READ, amplify_core.ModelOperation.UPDATE, - amplify_core.ModelOperation.DELETE - ]) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: MultiAuthTodo.CONTENT, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.DELETE, + ], + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: MultiAuthTodo.CONTENT, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _MultiAuthTodoModelType extends amplify_core.ModelType { @@ -217,10 +242,10 @@ class MultiAuthTodoModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/MultiRelatedAttendee.dart b/packages/amplify_datastore/example/lib/models/MultiRelatedAttendee.dart index 9eaccf6c3a..f2429dda4b 100644 --- a/packages/amplify_datastore/example/lib/models/MultiRelatedAttendee.dart +++ b/packages/amplify_datastore/example/lib/models/MultiRelatedAttendee.dart @@ -35,7 +35,8 @@ class MultiRelatedAttendee extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -55,19 +56,26 @@ class MultiRelatedAttendee extends amplify_core.Model { return _updatedAt; } - const MultiRelatedAttendee._internal( - {required this.id, meetings, createdAt, updatedAt}) - : _meetings = meetings, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory MultiRelatedAttendee( - {String? id, List? meetings}) { + const MultiRelatedAttendee._internal({ + required this.id, + meetings, + createdAt, + updatedAt, + }) : _meetings = meetings, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory MultiRelatedAttendee({ + String? id, + List? meetings, + }) { return MultiRelatedAttendee._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - meetings: meetings != null - ? List.unmodifiable(meetings) - : meetings); + id: id == null ? amplify_core.UUID.getUUID() : id, + meetings: + meetings != null + ? List.unmodifiable(meetings) + : meetings, + ); } bool equals(Object other) { @@ -91,11 +99,12 @@ class MultiRelatedAttendee extends amplify_core.Model { buffer.write("MultiRelatedAttendee {"); buffer.write("id=" + "$id" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -103,98 +112,124 @@ class MultiRelatedAttendee extends amplify_core.Model { MultiRelatedAttendee copyWith({List? meetings}) { return MultiRelatedAttendee._internal( - id: id, meetings: meetings ?? this.meetings); + id: id, + meetings: meetings ?? this.meetings, + ); } - MultiRelatedAttendee copyWithModelFieldValues( - {ModelFieldValue?>? meetings}) { + MultiRelatedAttendee copyWithModelFieldValues({ + ModelFieldValue?>? meetings, + }) { return MultiRelatedAttendee._internal( - id: id, meetings: meetings == null ? this.meetings : meetings.value); + id: id, + meetings: meetings == null ? this.meetings : meetings.value, + ); } MultiRelatedAttendee.fromJson(Map json) - : id = json['id'], - _meetings = json['meetings'] is Map - ? (json['meetings']['items'] is List - ? (json['meetings']['items'] as List) - .where((e) => e != null) - .map((e) => MultiRelatedRegistration.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['meetings'] is List - ? (json['meetings'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => MultiRelatedRegistration.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _meetings = + json['meetings'] is Map + ? (json['meetings']['items'] is List + ? (json['meetings']['items'] as List) + .where((e) => e != null) + .map( + (e) => MultiRelatedRegistration.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['meetings'] is List + ? (json['meetings'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => MultiRelatedRegistration.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'meetings': _meetings - ?.map((MultiRelatedRegistration? e) => e?.toJson()) - .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'meetings': + _meetings?.map((MultiRelatedRegistration? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'meetings': _meetings, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'meetings': _meetings, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + MultiRelatedAttendeeModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final MEETINGS = amplify_core.QueryField( - fieldName: "meetings", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'MultiRelatedRegistration')); + fieldName: "meetings", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'MultiRelatedRegistration', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "MultiRelatedAttendee"; - modelSchemaDefinition.pluralName = "MultiRelatedAttendees"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: MultiRelatedAttendee.MEETINGS, - isRequired: false, - ofModelName: 'MultiRelatedRegistration', - associatedKey: MultiRelatedRegistration.ATTENDEE)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "MultiRelatedAttendee"; + modelSchemaDefinition.pluralName = "MultiRelatedAttendees"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: MultiRelatedAttendee.MEETINGS, + isRequired: false, + ofModelName: 'MultiRelatedRegistration', + associatedKey: MultiRelatedRegistration.ATTENDEE, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _MultiRelatedAttendeeModelType @@ -227,10 +262,10 @@ class MultiRelatedAttendeeModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/MultiRelatedMeeting.dart b/packages/amplify_datastore/example/lib/models/MultiRelatedMeeting.dart index 57212d3fb3..0a1ff580e8 100644 --- a/packages/amplify_datastore/example/lib/models/MultiRelatedMeeting.dart +++ b/packages/amplify_datastore/example/lib/models/MultiRelatedMeeting.dart @@ -36,7 +36,8 @@ class MultiRelatedMeeting extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class MultiRelatedMeeting extends amplify_core.Model { return _title!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,23 +74,30 @@ class MultiRelatedMeeting extends amplify_core.Model { return _updatedAt; } - const MultiRelatedMeeting._internal( - {required this.id, required title, attendees, createdAt, updatedAt}) - : _title = title, - _attendees = attendees, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory MultiRelatedMeeting( - {String? id, - required String title, - List? attendees}) { + const MultiRelatedMeeting._internal({ + required this.id, + required title, + attendees, + createdAt, + updatedAt, + }) : _title = title, + _attendees = attendees, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory MultiRelatedMeeting({ + String? id, + required String title, + List? attendees, + }) { return MultiRelatedMeeting._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - title: title, - attendees: attendees != null - ? List.unmodifiable(attendees) - : attendees); + id: id == null ? amplify_core.UUID.getUUID() : id, + title: title, + attendees: + attendees != null + ? List.unmodifiable(attendees) + : attendees, + ); } bool equals(Object other) { @@ -111,126 +123,157 @@ class MultiRelatedMeeting extends amplify_core.Model { buffer.write("MultiRelatedMeeting {"); buffer.write("id=" + "$id" + ", "); buffer.write("title=" + "$_title" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - MultiRelatedMeeting copyWith( - {String? title, List? attendees}) { + MultiRelatedMeeting copyWith({ + String? title, + List? attendees, + }) { return MultiRelatedMeeting._internal( - id: id, - title: title ?? this.title, - attendees: attendees ?? this.attendees); + id: id, + title: title ?? this.title, + attendees: attendees ?? this.attendees, + ); } - MultiRelatedMeeting copyWithModelFieldValues( - {ModelFieldValue? title, - ModelFieldValue?>? attendees}) { + MultiRelatedMeeting copyWithModelFieldValues({ + ModelFieldValue? title, + ModelFieldValue?>? attendees, + }) { return MultiRelatedMeeting._internal( - id: id, - title: title == null ? this.title : title.value, - attendees: attendees == null ? this.attendees : attendees.value); + id: id, + title: title == null ? this.title : title.value, + attendees: attendees == null ? this.attendees : attendees.value, + ); } MultiRelatedMeeting.fromJson(Map json) - : id = json['id'], - _title = json['title'], - _attendees = json['attendees'] is Map - ? (json['attendees']['items'] is List - ? (json['attendees']['items'] as List) - .where((e) => e != null) - .map((e) => MultiRelatedRegistration.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['attendees'] is List - ? (json['attendees'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => MultiRelatedRegistration.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _title = json['title'], + _attendees = + json['attendees'] is Map + ? (json['attendees']['items'] is List + ? (json['attendees']['items'] as List) + .where((e) => e != null) + .map( + (e) => MultiRelatedRegistration.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['attendees'] is List + ? (json['attendees'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => MultiRelatedRegistration.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'title': _title, - 'attendees': _attendees - ?.map((MultiRelatedRegistration? e) => e?.toJson()) - .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'title': _title, + 'attendees': + _attendees?.map((MultiRelatedRegistration? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'title': _title, - 'attendees': _attendees, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'title': _title, + 'attendees': _attendees, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + MultiRelatedMeetingModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final TITLE = amplify_core.QueryField(fieldName: "title"); static final ATTENDEES = amplify_core.QueryField( - fieldName: "attendees", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'MultiRelatedRegistration')); + fieldName: "attendees", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'MultiRelatedRegistration', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "MultiRelatedMeeting"; - modelSchemaDefinition.pluralName = "MultiRelatedMeetings"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: MultiRelatedMeeting.TITLE, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: MultiRelatedMeeting.ATTENDEES, - isRequired: false, - ofModelName: 'MultiRelatedRegistration', - associatedKey: MultiRelatedRegistration.MEETING)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "MultiRelatedMeeting"; + modelSchemaDefinition.pluralName = "MultiRelatedMeetings"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: MultiRelatedMeeting.TITLE, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: MultiRelatedMeeting.ATTENDEES, + isRequired: false, + ofModelName: 'MultiRelatedRegistration', + associatedKey: MultiRelatedRegistration.MEETING, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _MultiRelatedMeetingModelType @@ -263,10 +306,10 @@ class MultiRelatedMeetingModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/MultiRelatedRegistration.dart b/packages/amplify_datastore/example/lib/models/MultiRelatedRegistration.dart index db9657a4f2..40d4a48f60 100644 --- a/packages/amplify_datastore/example/lib/models/MultiRelatedRegistration.dart +++ b/packages/amplify_datastore/example/lib/models/MultiRelatedRegistration.dart @@ -35,7 +35,8 @@ class MultiRelatedRegistration extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -48,11 +49,15 @@ class MultiRelatedRegistration extends amplify_core.Model { return _meeting!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,11 +66,15 @@ class MultiRelatedRegistration extends amplify_core.Model { return _attendee!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -77,25 +86,27 @@ class MultiRelatedRegistration extends amplify_core.Model { return _updatedAt; } - const MultiRelatedRegistration._internal( - {required this.id, - required meeting, - required attendee, - createdAt, - updatedAt}) - : _meeting = meeting, - _attendee = attendee, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory MultiRelatedRegistration( - {String? id, - required MultiRelatedMeeting meeting, - required MultiRelatedAttendee attendee}) { + const MultiRelatedRegistration._internal({ + required this.id, + required meeting, + required attendee, + createdAt, + updatedAt, + }) : _meeting = meeting, + _attendee = attendee, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory MultiRelatedRegistration({ + String? id, + required MultiRelatedMeeting meeting, + required MultiRelatedAttendee attendee, + }) { return MultiRelatedRegistration._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - meeting: meeting, - attendee: attendee); + id: id == null ? amplify_core.UUID.getUUID() : id, + meeting: meeting, + attendee: attendee, + ); } bool equals(Object other) { @@ -121,134 +132,177 @@ class MultiRelatedRegistration extends amplify_core.Model { buffer.write("MultiRelatedRegistration {"); buffer.write("id=" + "$id" + ", "); buffer.write( - "meeting=" + (_meeting != null ? _meeting.toString() : "null") + ", "); - buffer.write("attendee=" + - (_attendee != null ? _attendee.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); + "meeting=" + (_meeting != null ? _meeting.toString() : "null") + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "attendee=" + (_attendee != null ? _attendee.toString() : "null") + ", ", + ); + buffer.write( + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - MultiRelatedRegistration copyWith( - {MultiRelatedMeeting? meeting, MultiRelatedAttendee? attendee}) { + MultiRelatedRegistration copyWith({ + MultiRelatedMeeting? meeting, + MultiRelatedAttendee? attendee, + }) { return MultiRelatedRegistration._internal( - id: id, - meeting: meeting ?? this.meeting, - attendee: attendee ?? this.attendee); + id: id, + meeting: meeting ?? this.meeting, + attendee: attendee ?? this.attendee, + ); } - MultiRelatedRegistration copyWithModelFieldValues( - {ModelFieldValue? meeting, - ModelFieldValue? attendee}) { + MultiRelatedRegistration copyWithModelFieldValues({ + ModelFieldValue? meeting, + ModelFieldValue? attendee, + }) { return MultiRelatedRegistration._internal( - id: id, - meeting: meeting == null ? this.meeting : meeting.value, - attendee: attendee == null ? this.attendee : attendee.value); + id: id, + meeting: meeting == null ? this.meeting : meeting.value, + attendee: attendee == null ? this.attendee : attendee.value, + ); } MultiRelatedRegistration.fromJson(Map json) - : id = json['id'], - _meeting = json['meeting'] != null - ? json['meeting']['serializedData'] != null - ? MultiRelatedMeeting.fromJson(new Map.from( - json['meeting']['serializedData'])) - : MultiRelatedMeeting.fromJson( - new Map.from(json['meeting'])) - : null, - _attendee = json['attendee'] != null - ? json['attendee']['serializedData'] != null - ? MultiRelatedAttendee.fromJson(new Map.from( - json['attendee']['serializedData'])) - : MultiRelatedAttendee.fromJson( - new Map.from(json['attendee'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _meeting = + json['meeting'] != null + ? json['meeting']['serializedData'] != null + ? MultiRelatedMeeting.fromJson( + new Map.from( + json['meeting']['serializedData'], + ), + ) + : MultiRelatedMeeting.fromJson( + new Map.from(json['meeting']), + ) + : null, + _attendee = + json['attendee'] != null + ? json['attendee']['serializedData'] != null + ? MultiRelatedAttendee.fromJson( + new Map.from( + json['attendee']['serializedData'], + ), + ) + : MultiRelatedAttendee.fromJson( + new Map.from(json['attendee']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'meeting': _meeting?.toJson(), - 'attendee': _attendee?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'meeting': _meeting?.toJson(), + 'attendee': _attendee?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'meeting': _meeting, - 'attendee': _attendee, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - MultiRelatedRegistrationModelIdentifier>(); + 'id': id, + 'meeting': _meeting, + 'attendee': _attendee, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + MultiRelatedRegistrationModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + MultiRelatedRegistrationModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final MEETING = amplify_core.QueryField( - fieldName: "meeting", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'MultiRelatedMeeting')); + fieldName: "meeting", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'MultiRelatedMeeting', + ), + ); static final ATTENDEE = amplify_core.QueryField( - fieldName: "attendee", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'MultiRelatedAttendee')); + fieldName: "attendee", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'MultiRelatedAttendee', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "MultiRelatedRegistration"; - modelSchemaDefinition.pluralName = "MultiRelatedRegistrations"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null), - amplify_core.ModelIndex( - fields: const ["meetingId", "attendeeId"], name: "byMeeting"), - amplify_core.ModelIndex( - fields: const ["attendeeId", "meetingId"], name: "byAttendee") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: MultiRelatedRegistration.MEETING, - isRequired: true, - targetNames: ['meetingId'], - ofModelName: 'MultiRelatedMeeting')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: MultiRelatedRegistration.ATTENDEE, - isRequired: true, - targetNames: ['attendeeId'], - ofModelName: 'MultiRelatedAttendee')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "MultiRelatedRegistration"; + modelSchemaDefinition.pluralName = "MultiRelatedRegistrations"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + amplify_core.ModelIndex( + fields: const ["meetingId", "attendeeId"], + name: "byMeeting", + ), + amplify_core.ModelIndex( + fields: const ["attendeeId", "meetingId"], + name: "byAttendee", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: MultiRelatedRegistration.MEETING, + isRequired: true, + targetNames: ['meetingId'], + ofModelName: 'MultiRelatedMeeting', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: MultiRelatedRegistration.ATTENDEE, + isRequired: true, + targetNames: ['attendeeId'], + ofModelName: 'MultiRelatedAttendee', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _MultiRelatedRegistrationModelType @@ -281,10 +335,10 @@ class MultiRelatedRegistrationModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/MultiTodo.dart b/packages/amplify_datastore/example/lib/models/MultiTodo.dart index 244a8836ec..978934cd83 100644 --- a/packages/amplify_datastore/example/lib/models/MultiTodo.dart +++ b/packages/amplify_datastore/example/lib/models/MultiTodo.dart @@ -34,7 +34,8 @@ class MultiTodo extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -55,13 +56,15 @@ class MultiTodo extends amplify_core.Model { } const MultiTodo._internal({required this.id, content, createdAt, updatedAt}) - : _content = content, - _createdAt = createdAt, - _updatedAt = updatedAt; + : _content = content, + _createdAt = createdAt, + _updatedAt = updatedAt; factory MultiTodo({String? id, String? content}) { return MultiTodo._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, content: content); + id: id == null ? amplify_core.UUID.getUUID() : id, + content: content, + ); } bool equals(Object other) { @@ -84,11 +87,12 @@ class MultiTodo extends amplify_core.Model { buffer.write("MultiTodo {"); buffer.write("id=" + "$id" + ", "); buffer.write("content=" + "$_content" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -100,45 +104,49 @@ class MultiTodo extends amplify_core.Model { MultiTodo copyWithModelFieldValues({ModelFieldValue? content}) { return MultiTodo._internal( - id: id, content: content == null ? this.content : content.value); + id: id, + content: content == null ? this.content : content.value, + ); } MultiTodo.fromJson(Map json) - : id = json['id'], - _content = json['content'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _content = json['content'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'content': _content, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'content': _content, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'content': _content, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'content': _content, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final CONTENT = amplify_core.QueryField(fieldName: "content"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "MultiTodo"; - modelSchemaDefinition.pluralName = "MultiTodos"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "MultiTodo"; + modelSchemaDefinition.pluralName = "MultiTodos"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -147,41 +155,55 @@ class MultiTodo extends amplify_core.Model { amplify_core.ModelOperation.READ, amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, - amplify_core.ModelOperation.DELETE - ]), - amplify_core.AuthRule( + amplify_core.ModelOperation.DELETE, + ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.APIKEY, - operations: const [amplify_core.ModelOperation.READ]) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: MultiTodo.CONTENT, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + operations: const [amplify_core.ModelOperation.READ], + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: MultiTodo.CONTENT, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _MultiTodoModelType extends amplify_core.ModelType { @@ -213,10 +235,10 @@ class MultiTodoModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/Post.dart b/packages/amplify_datastore/example/lib/models/Post.dart index 68c5861ea0..d72b57f74e 100644 --- a/packages/amplify_datastore/example/lib/models/Post.dart +++ b/packages/amplify_datastore/example/lib/models/Post.dart @@ -40,7 +40,8 @@ class Post extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -53,11 +54,15 @@ class Post extends amplify_core.Model { return _title!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -66,11 +71,15 @@ class Post extends amplify_core.Model { return _rating!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -98,42 +107,44 @@ class Post extends amplify_core.Model { return _updatedAt; } - const Post._internal( - {required this.id, - required title, - required rating, - created, - blog, - comments, - tags, - createdAt, - updatedAt}) - : _title = title, - _rating = rating, - _created = created, - _blog = blog, - _comments = comments, - _tags = tags, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Post( - {String? id, - required String title, - required int rating, - amplify_core.TemporalDateTime? created, - Blog? blog, - List? comments, - List? tags}) { + const Post._internal({ + required this.id, + required title, + required rating, + created, + blog, + comments, + tags, + createdAt, + updatedAt, + }) : _title = title, + _rating = rating, + _created = created, + _blog = blog, + _comments = comments, + _tags = tags, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Post({ + String? id, + required String title, + required int rating, + amplify_core.TemporalDateTime? created, + Blog? blog, + List? comments, + List? tags, + }) { return Post._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - title: title, - rating: rating, - created: created, - blog: blog, - comments: - comments != null ? List.unmodifiable(comments) : comments, - tags: tags != null ? List.unmodifiable(tags) : tags); + id: id == null ? amplify_core.UUID.getUUID() : id, + title: title, + rating: rating, + created: created, + blog: blog, + comments: + comments != null ? List.unmodifiable(comments) : comments, + tags: tags != null ? List.unmodifiable(tags) : tags, + ); } bool equals(Object other) { @@ -164,213 +175,272 @@ class Post extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("title=" + "$_title" + ", "); buffer.write( - "rating=" + (_rating != null ? _rating.toString() : "null") + ", "); + "rating=" + (_rating != null ? _rating.toString() : "null") + ", ", + ); buffer.write( - "created=" + (_created != null ? _created.format() : "null") + ", "); + "created=" + (_created != null ? _created.format() : "null") + ", ", + ); buffer.write("blog=" + (_blog != null ? _blog.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Post copyWith( - {String? title, - int? rating, - amplify_core.TemporalDateTime? created, - Blog? blog, - List? comments, - List? tags}) { + Post copyWith({ + String? title, + int? rating, + amplify_core.TemporalDateTime? created, + Blog? blog, + List? comments, + List? tags, + }) { return Post._internal( - id: id, - title: title ?? this.title, - rating: rating ?? this.rating, - created: created ?? this.created, - blog: blog ?? this.blog, - comments: comments ?? this.comments, - tags: tags ?? this.tags); + id: id, + title: title ?? this.title, + rating: rating ?? this.rating, + created: created ?? this.created, + blog: blog ?? this.blog, + comments: comments ?? this.comments, + tags: tags ?? this.tags, + ); } - Post copyWithModelFieldValues( - {ModelFieldValue? title, - ModelFieldValue? rating, - ModelFieldValue? created, - ModelFieldValue? blog, - ModelFieldValue?>? comments, - ModelFieldValue?>? tags}) { + Post copyWithModelFieldValues({ + ModelFieldValue? title, + ModelFieldValue? rating, + ModelFieldValue? created, + ModelFieldValue? blog, + ModelFieldValue?>? comments, + ModelFieldValue?>? tags, + }) { return Post._internal( - id: id, - title: title == null ? this.title : title.value, - rating: rating == null ? this.rating : rating.value, - created: created == null ? this.created : created.value, - blog: blog == null ? this.blog : blog.value, - comments: comments == null ? this.comments : comments.value, - tags: tags == null ? this.tags : tags.value); + id: id, + title: title == null ? this.title : title.value, + rating: rating == null ? this.rating : rating.value, + created: created == null ? this.created : created.value, + blog: blog == null ? this.blog : blog.value, + comments: comments == null ? this.comments : comments.value, + tags: tags == null ? this.tags : tags.value, + ); } Post.fromJson(Map json) - : id = json['id'], - _title = json['title'], - _rating = (json['rating'] as num?)?.toInt(), - _created = json['created'] != null - ? amplify_core.TemporalDateTime.fromString(json['created']) - : null, - _blog = json['blog'] != null - ? json['blog']['serializedData'] != null - ? Blog.fromJson(new Map.from( - json['blog']['serializedData'])) - : Blog.fromJson(new Map.from(json['blog'])) - : null, - _comments = json['comments'] is Map - ? (json['comments']['items'] is List - ? (json['comments']['items'] as List) - .where((e) => e != null) - .map((e) => - Comment.fromJson(new Map.from(e))) - .toList() - : null) - : (json['comments'] is List - ? (json['comments'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Comment.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _tags = json['tags'] is Map - ? (json['tags']['items'] is List - ? (json['tags']['items'] as List) - .where((e) => e != null) - .map((e) => - PostTags.fromJson(new Map.from(e))) - .toList() - : null) - : (json['tags'] is List - ? (json['tags'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => PostTags.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _title = json['title'], + _rating = (json['rating'] as num?)?.toInt(), + _created = + json['created'] != null + ? amplify_core.TemporalDateTime.fromString(json['created']) + : null, + _blog = + json['blog'] != null + ? json['blog']['serializedData'] != null + ? Blog.fromJson( + new Map.from( + json['blog']['serializedData'], + ), + ) + : Blog.fromJson(new Map.from(json['blog'])) + : null, + _comments = + json['comments'] is Map + ? (json['comments']['items'] is List + ? (json['comments']['items'] as List) + .where((e) => e != null) + .map( + (e) => + Comment.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['comments'] is List + ? (json['comments'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Comment.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _tags = + json['tags'] is Map + ? (json['tags']['items'] is List + ? (json['tags']['items'] as List) + .where((e) => e != null) + .map( + (e) => + PostTags.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['tags'] is List + ? (json['tags'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => PostTags.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'created': _created?.format(), - 'blog': _blog?.toJson(), - 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), - 'tags': _tags?.map((PostTags? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'created': _created?.format(), + 'blog': _blog?.toJson(), + 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), + 'tags': _tags?.map((PostTags? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'created': _created, - 'blog': _blog, - 'comments': _comments, - 'tags': _tags, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'created': _created, + 'blog': _blog, + 'comments': _comments, + 'tags': _tags, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final TITLE = amplify_core.QueryField(fieldName: "title"); static final RATING = amplify_core.QueryField(fieldName: "rating"); static final CREATED = amplify_core.QueryField(fieldName: "created"); static final BLOG = amplify_core.QueryField( - fieldName: "blog", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Blog')); + fieldName: "blog", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Blog', + ), + ); static final COMMENTS = amplify_core.QueryField( - fieldName: "comments", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Comment')); + fieldName: "comments", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Comment', + ), + ); static final TAGS = amplify_core.QueryField( - fieldName: "tags", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'PostTags')); + fieldName: "tags", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'PostTags', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Post"; - modelSchemaDefinition.pluralName = "Posts"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["blogID"], name: "byBlog") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.TITLE, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.RATING, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.CREATED, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Post.BLOG, - isRequired: false, - targetNames: ['blogID'], - ofModelName: 'Blog')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Post.COMMENTS, - isRequired: false, - ofModelName: 'Comment', - associatedKey: Comment.POST)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Post.TAGS, - isRequired: false, - ofModelName: 'PostTags', - associatedKey: PostTags.POST)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Post"; + modelSchemaDefinition.pluralName = "Posts"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["blogID"], name: "byBlog"), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.TITLE, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.RATING, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.CREATED, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Post.BLOG, + isRequired: false, + targetNames: ['blogID'], + ofModelName: 'Blog', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Post.COMMENTS, + isRequired: false, + ofModelName: 'Comment', + associatedKey: Comment.POST, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Post.TAGS, + isRequired: false, + ofModelName: 'PostTags', + associatedKey: PostTags.POST, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PostModelType extends amplify_core.ModelType { @@ -401,10 +471,10 @@ class PostModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/PostTags.dart b/packages/amplify_datastore/example/lib/models/PostTags.dart index faa9beb9b4..03165112d9 100644 --- a/packages/amplify_datastore/example/lib/models/PostTags.dart +++ b/packages/amplify_datastore/example/lib/models/PostTags.dart @@ -35,7 +35,8 @@ class PostTags extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -48,11 +49,15 @@ class PostTags extends amplify_core.Model { return _post!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,11 +66,15 @@ class PostTags extends amplify_core.Model { return _tag!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -77,18 +86,23 @@ class PostTags extends amplify_core.Model { return _updatedAt; } - const PostTags._internal( - {required this.id, required post, required tag, createdAt, updatedAt}) - : _post = post, - _tag = tag, - _createdAt = createdAt, - _updatedAt = updatedAt; + const PostTags._internal({ + required this.id, + required post, + required tag, + createdAt, + updatedAt, + }) : _post = post, + _tag = tag, + _createdAt = createdAt, + _updatedAt = updatedAt; factory PostTags({String? id, required Post post, required Tag tag}) { return PostTags._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - post: post, - tag: tag); + id: id == null ? amplify_core.UUID.getUUID() : id, + post: post, + tag: tag, + ); } bool equals(Object other) { @@ -115,11 +129,12 @@ class PostTags extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("post=" + (_post != null ? _post.toString() : "null") + ", "); buffer.write("tag=" + (_tag != null ? _tag.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -127,108 +142,141 @@ class PostTags extends amplify_core.Model { PostTags copyWith({Post? post, Tag? tag}) { return PostTags._internal( - id: id, post: post ?? this.post, tag: tag ?? this.tag); + id: id, + post: post ?? this.post, + tag: tag ?? this.tag, + ); } - PostTags copyWithModelFieldValues( - {ModelFieldValue? post, ModelFieldValue? tag}) { + PostTags copyWithModelFieldValues({ + ModelFieldValue? post, + ModelFieldValue? tag, + }) { return PostTags._internal( - id: id, - post: post == null ? this.post : post.value, - tag: tag == null ? this.tag : tag.value); + id: id, + post: post == null ? this.post : post.value, + tag: tag == null ? this.tag : tag.value, + ); } PostTags.fromJson(Map json) - : id = json['id'], - _post = json['post'] != null - ? json['post']['serializedData'] != null - ? Post.fromJson(new Map.from( - json['post']['serializedData'])) - : Post.fromJson(new Map.from(json['post'])) - : null, - _tag = json['tag'] != null - ? json['tag']['serializedData'] != null - ? Tag.fromJson(new Map.from( - json['tag']['serializedData'])) - : Tag.fromJson(new Map.from(json['tag'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _post = + json['post'] != null + ? json['post']['serializedData'] != null + ? Post.fromJson( + new Map.from( + json['post']['serializedData'], + ), + ) + : Post.fromJson(new Map.from(json['post'])) + : null, + _tag = + json['tag'] != null + ? json['tag']['serializedData'] != null + ? Tag.fromJson( + new Map.from( + json['tag']['serializedData'], + ), + ) + : Tag.fromJson(new Map.from(json['tag'])) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'post': _post?.toJson(), - 'tag': _tag?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'post': _post?.toJson(), + 'tag': _tag?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'post': _post, - 'tag': _tag, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'post': _post, + 'tag': _tag, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final POST = amplify_core.QueryField( - fieldName: "post", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "post", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static final TAG = amplify_core.QueryField( - fieldName: "tag", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Tag')); + fieldName: "tag", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Tag', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "PostTags"; - modelSchemaDefinition.pluralName = "PostTags"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["postId"], name: "byPost"), - amplify_core.ModelIndex(fields: const ["tagId"], name: "byTag") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: PostTags.POST, - isRequired: true, - targetNames: ['postId'], - ofModelName: 'Post')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: PostTags.TAG, - isRequired: true, - targetNames: ['tagId'], - ofModelName: 'Tag')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "PostTags"; + modelSchemaDefinition.pluralName = "PostTags"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["postId"], name: "byPost"), + amplify_core.ModelIndex(fields: const ["tagId"], name: "byTag"), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: PostTags.POST, + isRequired: true, + targetNames: ['postId'], + ofModelName: 'Post', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: PostTags.TAG, + isRequired: true, + targetNames: ['tagId'], + ofModelName: 'Tag', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PostTagsModelType extends amplify_core.ModelType { @@ -260,10 +308,10 @@ class PostTagsModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/PrivateTodo.dart b/packages/amplify_datastore/example/lib/models/PrivateTodo.dart index 3a14ae7b6d..0e790fcfa6 100644 --- a/packages/amplify_datastore/example/lib/models/PrivateTodo.dart +++ b/packages/amplify_datastore/example/lib/models/PrivateTodo.dart @@ -34,7 +34,8 @@ class PrivateTodo extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -55,13 +56,15 @@ class PrivateTodo extends amplify_core.Model { } const PrivateTodo._internal({required this.id, content, createdAt, updatedAt}) - : _content = content, - _createdAt = createdAt, - _updatedAt = updatedAt; + : _content = content, + _createdAt = createdAt, + _updatedAt = updatedAt; factory PrivateTodo({String? id, String? content}) { return PrivateTodo._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, content: content); + id: id == null ? amplify_core.UUID.getUUID() : id, + content: content, + ); } bool equals(Object other) { @@ -84,11 +87,12 @@ class PrivateTodo extends amplify_core.Model { buffer.write("PrivateTodo {"); buffer.write("id=" + "$id" + ", "); buffer.write("content=" + "$_content" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -100,78 +104,94 @@ class PrivateTodo extends amplify_core.Model { PrivateTodo copyWithModelFieldValues({ModelFieldValue? content}) { return PrivateTodo._internal( - id: id, content: content == null ? this.content : content.value); + id: id, + content: content == null ? this.content : content.value, + ); } PrivateTodo.fromJson(Map json) - : id = json['id'], - _content = json['content'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _content = json['content'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'content': _content, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'content': _content, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'content': _content, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'content': _content, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final CONTENT = amplify_core.QueryField(fieldName: "content"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "PrivateTodo"; - modelSchemaDefinition.pluralName = "PrivateTodos"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "PrivateTodo"; + modelSchemaDefinition.pluralName = "PrivateTodos"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, operations: const [ amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: PrivateTodo.CONTENT, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: PrivateTodo.CONTENT, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PrivateTodoModelType extends amplify_core.ModelType { @@ -203,10 +223,10 @@ class PrivateTodoModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/models/SimpleCustomType.dart b/packages/amplify_datastore/example/lib/models/SimpleCustomType.dart index eaaace2b8e..6235bd8bca 100644 --- a/packages/amplify_datastore/example/lib/models/SimpleCustomType.dart +++ b/packages/amplify_datastore/example/lib/models/SimpleCustomType.dart @@ -31,11 +31,15 @@ class SimpleCustomType { return _foo!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,15 +88,19 @@ class SimpleCustomType { Map toMap() => {'foo': _foo}; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "SimpleCustomType"; - modelSchemaDefinition.pluralName = "SimpleCustomTypes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "SimpleCustomType"; + modelSchemaDefinition.pluralName = "SimpleCustomTypes"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'foo', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'foo', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } diff --git a/packages/amplify_datastore/example/lib/models/Tag.dart b/packages/amplify_datastore/example/lib/models/Tag.dart index ec54946a26..8bac2e02f0 100644 --- a/packages/amplify_datastore/example/lib/models/Tag.dart +++ b/packages/amplify_datastore/example/lib/models/Tag.dart @@ -36,7 +36,8 @@ class Tag extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class Tag extends amplify_core.Model { return _label!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,18 +74,23 @@ class Tag extends amplify_core.Model { return _updatedAt; } - const Tag._internal( - {required this.id, required label, posts, createdAt, updatedAt}) - : _label = label, - _posts = posts, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Tag._internal({ + required this.id, + required label, + posts, + createdAt, + updatedAt, + }) : _label = label, + _posts = posts, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Tag({String? id, required String label, List? posts}) { return Tag._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - label: label, - posts: posts != null ? List.unmodifiable(posts) : posts); + id: id == null ? amplify_core.UUID.getUUID() : id, + label: label, + posts: posts != null ? List.unmodifiable(posts) : posts, + ); } bool equals(Object other) { @@ -106,11 +116,12 @@ class Tag extends amplify_core.Model { buffer.write("Tag {"); buffer.write("id=" + "$id" + ", "); buffer.write("label=" + "$_label" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null")); + "createdAt=" + (_createdAt != null ? _createdAt.format() : "null") + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,104 +129,132 @@ class Tag extends amplify_core.Model { Tag copyWith({String? label, List? posts}) { return Tag._internal( - id: id, label: label ?? this.label, posts: posts ?? this.posts); + id: id, + label: label ?? this.label, + posts: posts ?? this.posts, + ); } - Tag copyWithModelFieldValues( - {ModelFieldValue? label, - ModelFieldValue?>? posts}) { + Tag copyWithModelFieldValues({ + ModelFieldValue? label, + ModelFieldValue?>? posts, + }) { return Tag._internal( - id: id, - label: label == null ? this.label : label.value, - posts: posts == null ? this.posts : posts.value); + id: id, + label: label == null ? this.label : label.value, + posts: posts == null ? this.posts : posts.value, + ); } Tag.fromJson(Map json) - : id = json['id'], - _label = json['label'], - _posts = json['posts'] is Map - ? (json['posts']['items'] is List - ? (json['posts']['items'] as List) - .where((e) => e != null) - .map((e) => - PostTags.fromJson(new Map.from(e))) - .toList() - : null) - : (json['posts'] is List - ? (json['posts'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => PostTags.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _label = json['label'], + _posts = + json['posts'] is Map + ? (json['posts']['items'] is List + ? (json['posts']['items'] as List) + .where((e) => e != null) + .map( + (e) => + PostTags.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['posts'] is List + ? (json['posts'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => PostTags.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'label': _label, - 'posts': _posts?.map((PostTags? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'label': _label, + 'posts': _posts?.map((PostTags? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'label': _label, - 'posts': _posts, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'label': _label, + 'posts': _posts, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final LABEL = amplify_core.QueryField(fieldName: "label"); static final POSTS = amplify_core.QueryField( - fieldName: "posts", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'PostTags')); + fieldName: "posts", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'PostTags', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Tag"; - modelSchemaDefinition.pluralName = "Tags"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Tag.LABEL, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Tag.POSTS, - isRequired: false, - ofModelName: 'PostTags', - associatedKey: PostTags.TAG)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Tag"; + modelSchemaDefinition.pluralName = "Tags"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Tag.LABEL, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Tag.POSTS, + isRequired: false, + ofModelName: 'PostTags', + associatedKey: PostTags.TAG, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _TagModelType extends amplify_core.ModelType { @@ -246,10 +285,10 @@ class TagModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/amplify_datastore/example/lib/widgets/auth_view.dart b/packages/amplify_datastore/example/lib/widgets/auth_view.dart index 34f6db43ba..9cf778d7db 100644 --- a/packages/amplify_datastore/example/lib/widgets/auth_view.dart +++ b/packages/amplify_datastore/example/lib/widgets/auth_view.dart @@ -19,8 +19,9 @@ class _AuthViewState extends State { List _streamingData = []; late Stream> _privateTodoStream; late Stream> _multiAuthTodoStream; - ScrollController _privateTodosScrollController = - ScrollController(initialScrollOffset: 50.0); + ScrollController _privateTodosScrollController = ScrollController( + initialScrollOffset: 50.0, + ); @override void initState() { @@ -36,43 +37,54 @@ class _AuthViewState extends State { } Future initPageState() async { - Amplify.DataStore.observeQuery( - PrivateTodo.classType, - ).listen((QuerySnapshot snapshot) { + Amplify.DataStore.observeQuery(PrivateTodo.classType).listen(( + QuerySnapshot snapshot, + ) { setState(() { _privateTodos = snapshot.items; }); }); - Amplify.DataStore.observeQuery( - MultiAuthTodo.classType, - ).listen((QuerySnapshot snapshot) { + Amplify.DataStore.observeQuery(MultiAuthTodo.classType).listen(( + QuerySnapshot snapshot, + ) { setState(() { _multiAuthTodos = snapshot.items; }); }); _privateTodoStream = Amplify.DataStore.observe(PrivateTodo.classType); - _privateTodoStream.listen((event) { - print("PrivateTodo: ${event.item.content}, of type: ${event.eventType}"); - _streamingData.add('PrivateTodo: ' + - (event.eventType.toString() == EventType.delete.toString() - ? event.item.id - : event.item.content ?? "") + - ', of type: ' + - event.eventType.toString()); - }).onError((error) => print(error)); + _privateTodoStream + .listen((event) { + print( + "PrivateTodo: ${event.item.content}, of type: ${event.eventType}", + ); + _streamingData.add( + 'PrivateTodo: ' + + (event.eventType.toString() == EventType.delete.toString() + ? event.item.id + : event.item.content ?? "") + + ', of type: ' + + event.eventType.toString(), + ); + }) + .onError((error) => print(error)); _multiAuthTodoStream = Amplify.DataStore.observe(MultiAuthTodo.classType); - _multiAuthTodoStream.listen((event) { - print( - "MultiAuthTodo: ${event.item.content}, of type: ${event.eventType}"); - _streamingData.add('MultiAuthTodo: ' + - (event.eventType.toString() == EventType.delete.toString() - ? event.item.id - : event.item.content ?? "") + - ', of type: ' + - event.eventType.toString()); - }).onError((error) => print(error)); + _multiAuthTodoStream + .listen((event) { + print( + "MultiAuthTodo: ${event.item.content}, of type: ${event.eventType}", + ); + _streamingData.add( + 'MultiAuthTodo: ' + + (event.eventType.toString() == EventType.delete.toString() + ? event.item.id + : event.item.content ?? "") + + ', of type: ' + + event.eventType.toString(), + ); + }) + .onError((error) => print(error)); } Future _restartDataStore() async { @@ -125,16 +137,24 @@ class _AuthViewState extends State { child: Text('Create Multi Todo'), ), - getWidgetToDisplayPrivateTodo( - [..._privateTodos, ..._multiAuthTodos], deletePrivateTodo), - Text("Events", - style: TextStyle( - fontWeight: FontWeight.bold, - color: Colors.black, - fontSize: 14)), + getWidgetToDisplayPrivateTodo([ + ..._privateTodos, + ..._multiAuthTodos, + ], deletePrivateTodo), + Text( + "Events", + style: TextStyle( + fontWeight: FontWeight.bold, + color: Colors.black, + fontSize: 14, + ), + ), Padding(padding: EdgeInsets.all(5.0)), getWidgetToDisplayAuthTodoEvents( - _privateTodosScrollController, _streamingData, executeAfterBuild) + _privateTodosScrollController, + _streamingData, + executeAfterBuild, + ), ], ), ); @@ -153,9 +173,10 @@ class _AuthViewState extends State { Future.delayed(const Duration(milliseconds: 500), () { if (_privateTodosScrollController.hasClients) _privateTodosScrollController.animateTo( - _privateTodosScrollController.position.maxScrollExtent, - duration: Duration(milliseconds: 200), - curve: Curves.easeOut); + _privateTodosScrollController.position.maxScrollExtent, + duration: Duration(milliseconds: 200), + curve: Curves.easeOut, + ); }); } } diff --git a/packages/amplify_datastore/example/lib/widgets/event_display_widgets.dart b/packages/amplify_datastore/example/lib/widgets/event_display_widgets.dart index 353bfbb0e6..57f85e1377 100644 --- a/packages/amplify_datastore/example/lib/widgets/event_display_widgets.dart +++ b/packages/amplify_datastore/example/lib/widgets/event_display_widgets.dart @@ -1,76 +1,96 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of sample_app; +part of '../../main.dart'; -Widget getWidgetToDisplayBlogEvents(ScrollController scrollController, - List streamingData, Future Function() executeAfterBuild) { +Widget getWidgetToDisplayBlogEvents( + ScrollController scrollController, + List streamingData, + Future Function() executeAfterBuild, +) { return SizedBox( - height: 70, - child: ListView.builder( - controller: scrollController, - shrinkWrap: true, - reverse: true, - itemCount: streamingData.length, - itemBuilder: (BuildContext context, int index) { - executeAfterBuild(); - return Container( - margin: EdgeInsets.fromLTRB(30, 0, 0, 0), - child: Text(streamingData[index]), - ); - })); + height: 70, + child: ListView.builder( + controller: scrollController, + shrinkWrap: true, + reverse: true, + itemCount: streamingData.length, + itemBuilder: (BuildContext context, int index) { + executeAfterBuild(); + return Container( + margin: EdgeInsets.fromLTRB(30, 0, 0, 0), + child: Text(streamingData[index]), + ); + }, + ), + ); } -Widget getWidgetToDisplayPostEvents(ScrollController scrollController, - List streamingData, Future Function() executeAfterBuild) { +Widget getWidgetToDisplayPostEvents( + ScrollController scrollController, + List streamingData, + Future Function() executeAfterBuild, +) { return SizedBox( - height: 70, - child: ListView.builder( - controller: scrollController, - shrinkWrap: true, - reverse: true, - itemCount: streamingData.length, - itemBuilder: (BuildContext context, int index) { - executeAfterBuild(); - return Container( - margin: EdgeInsets.fromLTRB(30, 0, 0, 0), - child: Text(streamingData[index]), - ); - })); + height: 70, + child: ListView.builder( + controller: scrollController, + shrinkWrap: true, + reverse: true, + itemCount: streamingData.length, + itemBuilder: (BuildContext context, int index) { + executeAfterBuild(); + return Container( + margin: EdgeInsets.fromLTRB(30, 0, 0, 0), + child: Text(streamingData[index]), + ); + }, + ), + ); } -Widget getWidgetToDisplayCommentEvents(ScrollController scrollController, - List streamingData, Future Function() executeAfterBuild) { +Widget getWidgetToDisplayCommentEvents( + ScrollController scrollController, + List streamingData, + Future Function() executeAfterBuild, +) { return SizedBox( - height: 70, - child: ListView.builder( - controller: scrollController, - shrinkWrap: true, - reverse: true, - itemCount: streamingData.length, - itemBuilder: (BuildContext context, int index) { - executeAfterBuild(); - return Container( - margin: EdgeInsets.fromLTRB(30, 0, 0, 0), - child: Text(streamingData[index]), - ); - })); + height: 70, + child: ListView.builder( + controller: scrollController, + shrinkWrap: true, + reverse: true, + itemCount: streamingData.length, + itemBuilder: (BuildContext context, int index) { + executeAfterBuild(); + return Container( + margin: EdgeInsets.fromLTRB(30, 0, 0, 0), + child: Text(streamingData[index]), + ); + }, + ), + ); } -Widget getWidgetToDisplayAuthTodoEvents(ScrollController scrollController, - List streamingData, Future Function() executeAfterBuild) { +Widget getWidgetToDisplayAuthTodoEvents( + ScrollController scrollController, + List streamingData, + Future Function() executeAfterBuild, +) { return SizedBox( - height: 100, - child: ListView.builder( - controller: scrollController, - shrinkWrap: true, - reverse: true, - itemCount: streamingData.length, - itemBuilder: (BuildContext context, int index) { - executeAfterBuild(); - return Container( - margin: EdgeInsets.fromLTRB(30, 0, 0, 0), - child: Text(streamingData[index]), - ); - })); + height: 100, + child: ListView.builder( + controller: scrollController, + shrinkWrap: true, + reverse: true, + itemCount: streamingData.length, + itemBuilder: (BuildContext context, int index) { + executeAfterBuild(); + return Container( + margin: EdgeInsets.fromLTRB(30, 0, 0, 0), + child: Text(streamingData[index]), + ); + }, + ), + ); } diff --git a/packages/amplify_datastore/example/lib/widgets/navigator_scaffold.dart b/packages/amplify_datastore/example/lib/widgets/navigator_scaffold.dart index 4ea47b9c58..ad3d9786df 100644 --- a/packages/amplify_datastore/example/lib/widgets/navigator_scaffold.dart +++ b/packages/amplify_datastore/example/lib/widgets/navigator_scaffold.dart @@ -4,10 +4,7 @@ import 'package:amplify_flutter/amplify_flutter.dart'; import 'package:flutter/material.dart'; class NavigatorScaffold extends StatefulWidget { - const NavigatorScaffold({ - super.key, - this.isAmplifyConfigured = false, - }); + const NavigatorScaffold({super.key, this.isAmplifyConfigured = false}); final bool isAmplifyConfigured; @override @@ -49,17 +46,16 @@ class _NavigatorScaffoldState extends State }, child: Text('Sign Out'), ), - body: widget.isAmplifyConfigured - ? TabBarView( - controller: _tabController, - children: [ - PublicView(isAmplifyConfigured: widget.isAmplifyConfigured), - AuthView(isAmplifyConfigured: widget.isAmplifyConfigured), - ], - ) - : Center( - child: CircularProgressIndicator.adaptive(), - ), + body: + widget.isAmplifyConfigured + ? TabBarView( + controller: _tabController, + children: [ + PublicView(isAmplifyConfigured: widget.isAmplifyConfigured), + AuthView(isAmplifyConfigured: widget.isAmplifyConfigured), + ], + ) + : Center(child: CircularProgressIndicator.adaptive()), ); } } diff --git a/packages/amplify_datastore/example/lib/widgets/public_view.dart b/packages/amplify_datastore/example/lib/widgets/public_view.dart index 0f95d06678..f85c0e390c 100644 --- a/packages/amplify_datastore/example/lib/widgets/public_view.dart +++ b/packages/amplify_datastore/example/lib/widgets/public_view.dart @@ -36,12 +36,15 @@ class _PublicViewState extends State final _ratingController = TextEditingController(); final _nameController = TextEditingController(); final _contentController = TextEditingController(); - ScrollController _postScrollController = - ScrollController(initialScrollOffset: 50.0); - ScrollController _blogScrollController = - ScrollController(initialScrollOffset: 50.0); - ScrollController _commentScrollController = - ScrollController(initialScrollOffset: 50.0); + ScrollController _postScrollController = ScrollController( + initialScrollOffset: 50.0, + ); + ScrollController _blogScrollController = ScrollController( + initialScrollOffset: 50.0, + ); + ScrollController _commentScrollController = ScrollController( + initialScrollOffset: 50.0, + ); @override void initState() { @@ -66,30 +69,31 @@ class _PublicViewState extends State Future initPageState() async { listenToHub(); - Amplify.DataStore.observeQuery( - Blog.classType, - ).listen((QuerySnapshot snapshot) { + Amplify.DataStore.observeQuery(Blog.classType).listen(( + QuerySnapshot snapshot, + ) { var count = snapshot.items.length; var now = DateTime.now().toIso8601String(); bool status = snapshot.isSynced; print( - '[Observe Query] Blog snapshot received with $count models, status: $status at $now'); + '[Observe Query] Blog snapshot received with $count models, status: $status at $now', + ); setState(() { _blogs = snapshot.items; }); }); - Amplify.DataStore.observeQuery( - Post.classType, - ).listen((QuerySnapshot snapshot) { + Amplify.DataStore.observeQuery(Post.classType).listen(( + QuerySnapshot snapshot, + ) { setState(() { _posts = snapshot.items; }); }); - Amplify.DataStore.observeQuery( - Comment.classType, - ).listen((QuerySnapshot snapshot) { + Amplify.DataStore.observeQuery(Comment.classType).listen(( + QuerySnapshot snapshot, + ) { setState(() { _comments = snapshot.items; }); @@ -97,34 +101,46 @@ class _PublicViewState extends State // setup streams postStream = Amplify.DataStore.observe(Post.classType); - postStream.listen((event) { - _postStreamingData.add('Post: ' + - (event.eventType.toString() == EventType.delete.toString() - ? event.item.id - : event.item.title) + - ', of type: ' + - event.eventType.toString()); - }).onError((error) => print(error)); + postStream + .listen((event) { + _postStreamingData.add( + 'Post: ' + + (event.eventType.toString() == EventType.delete.toString() + ? event.item.id + : event.item.title) + + ', of type: ' + + event.eventType.toString(), + ); + }) + .onError((error) => print(error)); blogStream = Amplify.DataStore.observe(Blog.classType); - blogStream.listen((event) { - _blogStreamingData.add('Blog: ' + - (event.eventType.toString() == EventType.delete.toString() - ? event.item.id - : event.item.name) + - ', of type: ' + - event.eventType.toString()); - }).onError((error) => print(error)); + blogStream + .listen((event) { + _blogStreamingData.add( + 'Blog: ' + + (event.eventType.toString() == EventType.delete.toString() + ? event.item.id + : event.item.name) + + ', of type: ' + + event.eventType.toString(), + ); + }) + .onError((error) => print(error)); commentStream = Amplify.DataStore.observe(Comment.classType); - commentStream.listen((event) { - _commentStreamingData.add('Comment: ' + - (event.eventType.toString() == EventType.delete.toString() - ? event.item.id - : event.item.content) + - ', of type: ' + - event.eventType.toString()); - }).onError((error) => print(error)); + commentStream + .listen((event) { + _commentStreamingData.add( + 'Comment: ' + + (event.eventType.toString() == EventType.delete.toString() + ? event.item.id + : event.item.content) + + ', of type: ' + + event.eventType.toString(), + ); + }) + .onError((error) => print(error)); } void listenToHub() { @@ -146,10 +162,11 @@ class _PublicViewState extends State savePost(String title, int rating, Blog associatedBlog) async { try { Post post = Post( - title: title, - rating: rating, - created: TemporalDateTime.now(), - blog: associatedBlog); + title: title, + rating: rating, + created: TemporalDateTime.now(), + blog: associatedBlog, + ); await Amplify.DataStore.save(post); } catch (e) { print(e); @@ -158,9 +175,7 @@ class _PublicViewState extends State saveBlog(String name) async { try { - Blog blog = Blog( - name: name, - ); + Blog blog = Blog(name: name); await Amplify.DataStore.save(blog); } catch (e) { print(e); @@ -180,7 +195,8 @@ class _PublicViewState extends State try { _selectedPostForNewComment = null; await Amplify.DataStore.delete( - Post(id: id, title: "", rating: 0, created: TemporalDateTime.now())); + Post(id: id, title: "", rating: 0, created: TemporalDateTime.now()), + ); } catch (e) { print(e); } @@ -259,13 +275,14 @@ class _PublicViewState extends State // Row for saving comment addCommentWidget( - _contentController, - widget.isAmplifyConfigured, - _selectedPostForNewComment, - _posts, - _selectedPostForNewComment, - saveComment, - updateSelectedPostForNewComment), + _contentController, + widget.isAmplifyConfigured, + _selectedPostForNewComment, + _posts, + _selectedPostForNewComment, + saveComment, + updateSelectedPostForNewComment, + ), Padding(padding: EdgeInsets.all(10.0)), @@ -274,7 +291,10 @@ class _PublicViewState extends State // Row for query buttons displayQueryButtons( - widget.isAmplifyConfigured, _queriesToView, updateQueriesToView), + widget.isAmplifyConfigured, + _queriesToView, + updateQueriesToView, + ), Padding(padding: EdgeInsets.all(5.0)), Text("Listen to DataStore Hub"), @@ -301,22 +321,34 @@ class _PublicViewState extends State else if (_queriesToView == "Comment") getWidgetToDisplayComment(_comments, deleteComment, _posts), - Text(_queriesToView + " Events", - style: TextStyle( - fontWeight: FontWeight.bold, - color: Colors.black, - fontSize: 14)), + Text( + _queriesToView + " Events", + style: TextStyle( + fontWeight: FontWeight.bold, + color: Colors.black, + fontSize: 14, + ), + ), Padding(padding: EdgeInsets.all(5.0)), if (_queriesToView == "Post") getWidgetToDisplayPostEvents( - _postScrollController, _postStreamingData, executeAfterBuild) + _postScrollController, + _postStreamingData, + executeAfterBuild, + ) else if (_queriesToView == "Blog") getWidgetToDisplayBlogEvents( - _blogScrollController, _blogStreamingData, executeAfterBuild) + _blogScrollController, + _blogStreamingData, + executeAfterBuild, + ) else if (_queriesToView == "Comment") - getWidgetToDisplayCommentEvents(_commentScrollController, - _commentStreamingData, executeAfterBuild), + getWidgetToDisplayCommentEvents( + _commentScrollController, + _commentStreamingData, + executeAfterBuild, + ), ], // replace with any or all query results as needed ); @@ -335,19 +367,22 @@ class _PublicViewState extends State Future.delayed(const Duration(milliseconds: 500), () { if (_postScrollController.hasClients) _postScrollController.animateTo( - _postScrollController.position.maxScrollExtent, - duration: Duration(milliseconds: 200), - curve: Curves.easeOut); + _postScrollController.position.maxScrollExtent, + duration: Duration(milliseconds: 200), + curve: Curves.easeOut, + ); if (_blogScrollController.hasClients) _blogScrollController.animateTo( - _blogScrollController.position.maxScrollExtent, - duration: Duration(milliseconds: 200), - curve: Curves.easeOut); + _blogScrollController.position.maxScrollExtent, + duration: Duration(milliseconds: 200), + curve: Curves.easeOut, + ); if (_commentScrollController.hasClients) _commentScrollController.animateTo( - _commentScrollController.position.maxScrollExtent, - duration: Duration(milliseconds: 200), - curve: Curves.easeOut); + _commentScrollController.position.maxScrollExtent, + duration: Duration(milliseconds: 200), + curve: Curves.easeOut, + ); }); } } diff --git a/packages/amplify_datastore/example/lib/widgets/queries_display_widgets.dart b/packages/amplify_datastore/example/lib/widgets/queries_display_widgets.dart index af699e3115..b300724ebf 100644 --- a/packages/amplify_datastore/example/lib/widgets/queries_display_widgets.dart +++ b/packages/amplify_datastore/example/lib/widgets/queries_display_widgets.dart @@ -1,238 +1,245 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of sample_app; +part of '../../main.dart'; -Widget displayQueryButtons(bool isAmplifyConfigured, String queriesToView, - Function updateQueriesToView) { - var boldText = - TextStyle(fontWeight: FontWeight.bold, color: Colors.black, fontSize: 14); - return Row(mainAxisAlignment: MainAxisAlignment.center, children: [ - VerticalDivider( - color: Colors.white, - width: 5, - ), - ElevatedButton( - onPressed: () { - if (isAmplifyConfigured) { - updateQueriesToView("Blog"); - } - return null; - }, - style: ButtonStyle( - // TODO(Jordan-Nelson): use `WidgetStateProperty` when min flutter sdk is 3.22.0 - // ignore: deprecated_member_use - backgroundColor: MaterialStateProperty.all( - queriesToView == "Blog" ? Colors.white10 : Colors.white60, +Widget displayQueryButtons( + bool isAmplifyConfigured, + String queriesToView, + Function updateQueriesToView, +) { + var boldText = TextStyle( + fontWeight: FontWeight.bold, + color: Colors.black, + fontSize: 14, + ); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + VerticalDivider(color: Colors.white, width: 5), + ElevatedButton( + onPressed: () { + if (isAmplifyConfigured) { + updateQueriesToView("Blog"); + } + return null; + }, + style: ButtonStyle( + // TODO(Jordan-Nelson): use `WidgetStateProperty` when min flutter sdk is 3.22.0 + // ignore: deprecated_member_use + backgroundColor: MaterialStateProperty.all( + queriesToView == "Blog" ? Colors.white10 : Colors.white60, + ), ), - ), - child: Text( - 'Blogs', - style: queriesToView == "Blog" ? boldText : TextStyle(), - ), - ), - divider, - ElevatedButton( - onPressed: () { - if (isAmplifyConfigured) { - updateQueriesToView("Post"); - } - return null; - }, - style: ButtonStyle( - // TODO(Jordan-Nelson): use `WidgetStateProperty` when min flutter sdk is 3.22.0 - // ignore: deprecated_member_use - backgroundColor: MaterialStateProperty.all( - queriesToView == "Post" ? Colors.white10 : Colors.white60, + child: Text( + 'Blogs', + style: queriesToView == "Blog" ? boldText : TextStyle(), ), ), - child: Text( - 'Posts', - style: queriesToView == "Post" ? boldText : TextStyle(), - ), - ), - divider, - ElevatedButton( - onPressed: () { - if (isAmplifyConfigured) { - updateQueriesToView("Comment"); - } - return null; - }, - style: ButtonStyle( - // TODO(Jordan-Nelson): use `WidgetStateProperty` when min flutter sdk is 3.22.0 - // ignore: deprecated_member_use - backgroundColor: MaterialStateProperty.all( - queriesToView == "Comment" ? Colors.white10 : Colors.white60, + divider, + ElevatedButton( + onPressed: () { + if (isAmplifyConfigured) { + updateQueriesToView("Post"); + } + return null; + }, + style: ButtonStyle( + // TODO(Jordan-Nelson): use `WidgetStateProperty` when min flutter sdk is 3.22.0 + // ignore: deprecated_member_use + backgroundColor: MaterialStateProperty.all( + queriesToView == "Post" ? Colors.white10 : Colors.white60, + ), + ), + child: Text( + 'Posts', + style: queriesToView == "Post" ? boldText : TextStyle(), ), ), - child: Text( - 'Comments', - style: queriesToView == "Comment" ? boldText : TextStyle(), + divider, + ElevatedButton( + onPressed: () { + if (isAmplifyConfigured) { + updateQueriesToView("Comment"); + } + return null; + }, + style: ButtonStyle( + // TODO(Jordan-Nelson): use `WidgetStateProperty` when min flutter sdk is 3.22.0 + // ignore: deprecated_member_use + backgroundColor: MaterialStateProperty.all( + queriesToView == "Comment" ? Colors.white10 : Colors.white60, + ), + ), + child: Text( + 'Comments', + style: queriesToView == "Comment" ? boldText : TextStyle(), + ), ), - ), - ]); + ], + ); } Widget getWidgetToDisplayBlog(List _blogsToView, Function deleteBlog) { return Expanded( child: ListView.builder( - itemCount: _blogsToView.length, - padding: const EdgeInsets.all(16.0), - scrollDirection: Axis.vertical, - shrinkWrap: true, - itemBuilder: /*1*/ (context, i) { - return ListTile( - title: Text( - "Name: " + _blogsToView[i].name, - style: TextStyle(fontSize: 14.0), - ), - trailing: IconButton( - onPressed: () { - print("Deleting " + _blogsToView[i].name); - deleteBlog(_blogsToView[i].id); - }, - icon: Icon( - Icons.delete_forever, - color: Colors.red, - ), - ), - ); - }), + itemCount: _blogsToView.length, + padding: const EdgeInsets.all(16.0), + scrollDirection: Axis.vertical, + shrinkWrap: true, + itemBuilder: /*1*/ (context, i) { + return ListTile( + title: Text( + "Name: " + _blogsToView[i].name, + style: TextStyle(fontSize: 14.0), + ), + trailing: IconButton( + onPressed: () { + print("Deleting " + _blogsToView[i].name); + deleteBlog(_blogsToView[i].id); + }, + icon: Icon(Icons.delete_forever, color: Colors.red), + ), + ); + }, + ), ); } Widget getWidgetToDisplayPost( - List _postsToView, Function deletePost, List allBlogs) { + List _postsToView, + Function deletePost, + List allBlogs, +) { return Expanded( child: ListView.builder( - itemCount: _postsToView.length, - padding: const EdgeInsets.all(16.0), - scrollDirection: Axis.vertical, - // shrinkWrap: true, - itemBuilder: /*1*/ (context, i) { - return ListTile( - title: Text( - "Title: " + - _postsToView[i].title + - ", rating: " + - _postsToView[i].rating.toString() + - ", blog: " + - allBlogs - .firstWhere( - (blog) => blog.id == _postsToView[i].blog?.id, - orElse: () => Blog(name: "Blog not found"), - ) - .name, - style: TextStyle(fontSize: 14.0), - ), - trailing: IconButton( - onPressed: () { - print("Deleting " + _postsToView[i].title); - deletePost(_postsToView[i].id); - }, - icon: Icon( - Icons.delete_forever, - color: Colors.red, - ), - ), - ); - }), + itemCount: _postsToView.length, + padding: const EdgeInsets.all(16.0), + scrollDirection: Axis.vertical, + // shrinkWrap: true, + itemBuilder: /*1*/ (context, i) { + return ListTile( + title: Text( + "Title: " + + _postsToView[i].title + + ", rating: " + + _postsToView[i].rating.toString() + + ", blog: " + + allBlogs + .firstWhere( + (blog) => blog.id == _postsToView[i].blog?.id, + orElse: () => Blog(name: "Blog not found"), + ) + .name, + style: TextStyle(fontSize: 14.0), + ), + trailing: IconButton( + onPressed: () { + print("Deleting " + _postsToView[i].title); + deletePost(_postsToView[i].id); + }, + icon: Icon(Icons.delete_forever, color: Colors.red), + ), + ); + }, + ), ); } Widget getWidgetToDisplayComment( - List _commentsToView, Function deleteFn, List allPosts) { + List _commentsToView, + Function deleteFn, + List allPosts, +) { return Expanded( child: ListView.builder( - itemCount: _commentsToView.length, - padding: const EdgeInsets.all(16.0), - scrollDirection: Axis.vertical, - shrinkWrap: true, - itemBuilder: /*1*/ (context, i) { - return ListTile( - title: Text( - "Content: " + - _commentsToView[i].content + - " and post: " + - allPosts - .firstWhere( - (post) => post.id == _commentsToView[i].post?.id) - .title, - style: TextStyle(fontSize: 14.0), - ), - trailing: IconButton( - onPressed: () { - print("Deleting " + _commentsToView[i].content); - deleteFn(_commentsToView[i].id); - }, - icon: Icon( - Icons.delete_forever, - color: Colors.red, - ), - ), - ); - }), + itemCount: _commentsToView.length, + padding: const EdgeInsets.all(16.0), + scrollDirection: Axis.vertical, + shrinkWrap: true, + itemBuilder: /*1*/ (context, i) { + return ListTile( + title: Text( + "Content: " + + _commentsToView[i].content + + " and post: " + + allPosts + .firstWhere( + (post) => post.id == _commentsToView[i].post?.id, + ) + .title, + style: TextStyle(fontSize: 14.0), + ), + trailing: IconButton( + onPressed: () { + print("Deleting " + _commentsToView[i].content); + deleteFn(_commentsToView[i].id); + }, + icon: Icon(Icons.delete_forever, color: Colors.red), + ), + ); + }, + ), ); } Widget displaySyncButtons() { - return Row(mainAxisAlignment: MainAxisAlignment.center, children: [ - VerticalDivider( - color: Colors.white, - width: 5, - ), - ElevatedButton.icon( - onPressed: () { - Amplify.DataStore.start(); - }, - icon: Icon(Icons.play_arrow), - label: const Text("Start"), - ), - divider, - ElevatedButton.icon( - onPressed: () { - Amplify.DataStore.stop(); - }, - icon: Icon(Icons.stop), - label: const Text("Stop"), - ), - divider, - ElevatedButton.icon( - onPressed: () { - Amplify.DataStore.clear(); - }, - icon: Icon(Icons.delete_sweep), - label: const Text("Clear"), - ), - ]); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + VerticalDivider(color: Colors.white, width: 5), + ElevatedButton.icon( + onPressed: () { + Amplify.DataStore.start(); + }, + icon: Icon(Icons.play_arrow), + label: const Text("Start"), + ), + divider, + ElevatedButton.icon( + onPressed: () { + Amplify.DataStore.stop(); + }, + icon: Icon(Icons.stop), + label: const Text("Stop"), + ), + divider, + ElevatedButton.icon( + onPressed: () { + Amplify.DataStore.clear(); + }, + icon: Icon(Icons.delete_sweep), + label: const Text("Clear"), + ), + ], + ); } Widget getWidgetToDisplayPrivateTodo( - List _todoToView, Function deleteTodo) { + List _todoToView, + Function deleteTodo, +) { return Expanded( child: ListView.builder( - itemCount: _todoToView.length, - padding: const EdgeInsets.all(16.0), - scrollDirection: Axis.vertical, - shrinkWrap: true, - itemBuilder: (context, i) { - return ListTile( - title: Text( - "${_todoToView[i].toMap()['content']}", - style: TextStyle(fontSize: 14.0), - ), - trailing: IconButton( - onPressed: () { - print("Deleting ${_todoToView[i].toMap()['content']}}"); - deleteTodo(_todoToView[i].toMap()['id']); - }, - icon: Icon( - Icons.delete_forever, - color: Colors.red, - ), - ), - ); - }), + itemCount: _todoToView.length, + padding: const EdgeInsets.all(16.0), + scrollDirection: Axis.vertical, + shrinkWrap: true, + itemBuilder: (context, i) { + return ListTile( + title: Text( + "${_todoToView[i].toMap()['content']}", + style: TextStyle(fontSize: 14.0), + ), + trailing: IconButton( + onPressed: () { + print("Deleting ${_todoToView[i].toMap()['content']}}"); + deleteTodo(_todoToView[i].toMap()['id']); + }, + icon: Icon(Icons.delete_forever, color: Colors.red), + ), + ); + }, + ), ); } diff --git a/packages/amplify_datastore/example/lib/widgets/save_model_widgets.dart b/packages/amplify_datastore/example/lib/widgets/save_model_widgets.dart index 78f41a33e3..128bd6314d 100644 --- a/packages/amplify_datastore/example/lib/widgets/save_model_widgets.dart +++ b/packages/amplify_datastore/example/lib/widgets/save_model_widgets.dart @@ -1,10 +1,13 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -part of sample_app; +part of '../../main.dart'; -Widget addBlogWidget(TextEditingController controller, bool isAmplifyConfigured, - Function saveFn) { +Widget addBlogWidget( + TextEditingController controller, + bool isAmplifyConfigured, + Function saveFn, +) { return Row( children: [ divider, @@ -31,14 +34,15 @@ Widget addBlogWidget(TextEditingController controller, bool isAmplifyConfigured, ); } -Widget addPostWidget( - {required TextEditingController titleController, - required TextEditingController ratingController, - required bool isAmplifyConfigured, - required List allBlogs, - required Function saveFn, - required Function updateSelectedBlogForNewPost, - Blog? selectedBlog}) { +Widget addPostWidget({ + required TextEditingController titleController, + required TextEditingController ratingController, + required bool isAmplifyConfigured, + required List allBlogs, + required Function saveFn, + required Function updateSelectedBlogForNewPost, + Blog? selectedBlog, +}) { return Row( children: [ divider, @@ -56,27 +60,29 @@ Widget addPostWidget( keyboardType: TextInputType.number, controller: ratingController, inputFormatters: [ - FilteringTextInputFormatter.digitsOnly + FilteringTextInputFormatter.digitsOnly, ], ), ), divider, DropdownButton( - value: selectedBlog, - hint: Text("Blog"), - items: allBlogs - .map((e) => DropdownMenuItem( - child: Text(e.name), - value: e, - )) - .toList(), //_dropdownMenuItems, - onChanged: (value) => updateSelectedBlogForNewPost(value)), + value: selectedBlog, + hint: Text("Blog"), + items: + allBlogs + .map((e) => DropdownMenuItem(child: Text(e.name), value: e)) + .toList(), //_dropdownMenuItems, + onChanged: (value) => updateSelectedBlogForNewPost(value), + ), divider, ElevatedButton( onPressed: () async { if (isAmplifyConfigured) { - await saveFn(titleController.text, int.parse(ratingController.text), - selectedBlog); + await saveFn( + titleController.text, + int.parse(ratingController.text), + selectedBlog, + ); titleController.clear(); ratingController.clear(); return; @@ -91,13 +97,14 @@ Widget addPostWidget( } Widget addCommentWidget( - TextEditingController controller, - bool isAmplifyConfigured, - Post? defaultPost, - List allPosts, - Post? selectedPostForNewComment, - Function saveFn, - Function updateSelectedPostForNewComment) { + TextEditingController controller, + bool isAmplifyConfigured, + Post? defaultPost, + List allPosts, + Post? selectedPostForNewComment, + Function saveFn, + Function updateSelectedPostForNewComment, +) { return Row( children: [ divider, @@ -109,17 +116,16 @@ Widget addCommentWidget( ), divider, DropdownButton( - value: defaultPost, - hint: Text("Post"), - items: allPosts - .map((e) => DropdownMenuItem( - child: Text(e.title), - value: e, - )) - .toList(), //_dropdownMenuItems, - onChanged: (value) { - updateSelectedPostForNewComment(value); - }), + value: defaultPost, + hint: Text("Post"), + items: + allPosts + .map((e) => DropdownMenuItem(child: Text(e.title), value: e)) + .toList(), //_dropdownMenuItems, + onChanged: (value) { + updateSelectedPostForNewComment(value); + }, + ), divider, ElevatedButton( onPressed: () async { diff --git a/packages/amplify_datastore/example/pubspec.yaml b/packages/amplify_datastore/example/pubspec.yaml index 1c25c88141..f21f104c3f 100644 --- a/packages/amplify_datastore/example/pubspec.yaml +++ b/packages/amplify_datastore/example/pubspec.yaml @@ -6,8 +6,8 @@ description: Demonstrates how to use the amplify_datastore plugin. publish_to: "none" # Remove this line if you wish to publish to pub.dev environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: flutter: diff --git a/packages/amplify_datastore/ios/amplify_datastore.podspec b/packages/amplify_datastore/ios/amplify_datastore.podspec index 893b7797b3..f125a7854f 100644 --- a/packages/amplify_datastore/ios/amplify_datastore.podspec +++ b/packages/amplify_datastore/ios/amplify_datastore.podspec @@ -20,7 +20,6 @@ The DataStore module for Amplify Flutter. s.swift_version = '5.9' s.dependency 'Flutter' - s.dependency 'Starscream', '4.0.4' # Internal Amplify Swift Plugins s.subspec 'Amplify' do |amplify| diff --git a/packages/amplify_datastore/lib/amplify_datastore.dart b/packages/amplify_datastore/lib/amplify_datastore.dart index f94384ed6a..8a8bb8ea2c 100644 --- a/packages/amplify_datastore/lib/amplify_datastore.dart +++ b/packages/amplify_datastore/lib/amplify_datastore.dart @@ -27,15 +27,15 @@ class AmplifyDataStore extends DataStorePluginInterface required ModelProviderInterface modelProvider, DataStorePluginOptions options = const DataStorePluginOptions(), }) : super( - modelProvider: modelProvider, - errorHandler: options.errorHandler, - conflictHandler: options.conflictHandler, - syncExpressions: options.syncExpressions, - syncInterval: options.syncInterval, - syncMaxRecords: options.syncMaxRecords, - syncPageSize: options.syncPageSize, - authModeStrategy: options.authModeStrategy, - ); + modelProvider: modelProvider, + errorHandler: options.errorHandler, + conflictHandler: options.conflictHandler, + syncExpressions: options.syncExpressions, + syncInterval: options.syncInterval, + syncMaxRecords: options.syncMaxRecords, + syncPageSize: options.syncPageSize, + authModeStrategy: options.authModeStrategy, + ); /// Internal use constructor @protected @@ -169,9 +169,11 @@ class AmplifyDataStore extends DataStorePluginInterface }) async { ModelProviderInterface provider = modelProvider ?? this.modelProvider!; if (provider.modelSchemas.isEmpty) { - throw DataStoreException('No modelProvider or modelSchemas found', - recoverySuggestion: - 'Pass in a modelProvider instance while instantiating DataStorePlugin'); + throw DataStoreException( + 'No modelProvider or modelSchemas found', + recoverySuggestion: + 'Pass in a modelProvider instance while instantiating DataStorePlugin', + ); } streamWrapper.registerModelsForHub(provider); return _instance.configureDataStore( @@ -187,12 +189,18 @@ class AmplifyDataStore extends DataStorePluginInterface } @override - Future> query(ModelType modelType, - {QueryPredicate? where, - QueryPagination? pagination, - List? sortBy}) async { - return _instance.query(modelType, - where: where, pagination: pagination, sortBy: sortBy); + Future> query( + ModelType modelType, { + QueryPredicate? where, + QueryPagination? pagination, + List? sortBy, + }) async { + return _instance.query( + modelType, + where: where, + pagination: pagination, + sortBy: sortBy, + ); } @override @@ -206,8 +214,10 @@ class AmplifyDataStore extends DataStorePluginInterface } @override - Stream> observe(ModelType modelType, - {QueryPredicate? where}) { + Stream> observe( + ModelType modelType, { + QueryPredicate? where, + }) { return _instance.observe(modelType, where: where); } @@ -298,10 +308,10 @@ class NativeAmplifyApi /// The registered [APIAuthProvider] instances. final Map, APIAuthProvider> - _authProviders; + _authProviders; final Map>> - _subscriptionsCache = {}; + _subscriptionsCache = {}; @override String get runtimeTypeName => 'NativeAmplifyApi'; @@ -348,21 +358,25 @@ class NativeAmplifyApi @override Future subscribe( - NativeGraphQLRequest request) async { + NativeGraphQLRequest request, + ) async { final flutterRequest = nativeRequestToGraphQLRequest(request); // Turn off then default reconnection behavior to allow native side to trigger reconnect // ignore: invalid_use_of_internal_member WebSocketOptions.autoReconnect = false; - final operation = Amplify.API.subscribe(flutterRequest, - onEstablished: () => sendNativeStartAckEvent(flutterRequest.id)); + final operation = Amplify.API.subscribe( + flutterRequest, + onEstablished: () => sendNativeStartAckEvent(flutterRequest.id), + ); final subscription = operation.listen( - (GraphQLResponse event) => - sendSubscriptionEvent(flutterRequest.id, event), - onError: (Object error) { - sendSubscriptionStreamErrorEvent(flutterRequest.id, error); - }, - onDone: () => sendNativeCompleteEvent(flutterRequest.id)); + (GraphQLResponse event) => + sendSubscriptionEvent(flutterRequest.id, event), + onError: (Object error) { + sendSubscriptionStreamErrorEvent(flutterRequest.id, error); + }, + onDone: () => sendNativeCompleteEvent(flutterRequest.id), + ); _subscriptionsCache[flutterRequest.id] = subscription; diff --git a/packages/amplify_datastore/lib/src/amplify_datastore_stream_controller.dart b/packages/amplify_datastore/lib/src/amplify_datastore_stream_controller.dart index e1d9397a59..f26f8d1ba7 100644 --- a/packages/amplify_datastore/lib/src/amplify_datastore_stream_controller.dart +++ b/packages/amplify_datastore/lib/src/amplify_datastore_stream_controller.dart @@ -22,9 +22,9 @@ class DataStoreStreamController { StreamController _controller = StreamController.broadcast( - onListen: _onListen, - onCancel: _onCancel, -); + onListen: _onListen, + onCancel: _onCancel, + ); _onListen() { if (eventStream == null) { @@ -32,84 +32,95 @@ _onListen() { .receiveBroadcastStream(1) .cast>() .listen((event) { - final map = event.cast(); - final eventName = map['eventName'] as String; - switch (eventName) { - case 'ready': - { - _rebroadcast(DataStoreHubEventType.ready); + final map = event.cast(); + final eventName = map['eventName'] as String; + switch (eventName) { + case 'ready': + { + _rebroadcast(DataStoreHubEventType.ready); + } + break; + case 'networkStatus': + { + _rebroadcast( + DataStoreHubEventType.networkStatus, + payload: NetworkStatusEvent(map), + ); + } + break; + case 'subscriptionsEstablished': + { + _rebroadcast(DataStoreHubEventType.subscriptionsEstablished); + } + break; + case 'syncQueriesStarted': + { + _rebroadcast( + DataStoreHubEventType.syncQueriesStarted, + payload: SyncQueriesStartedEvent(map), + ); + } + break; + case 'modelSynced': + { + _rebroadcast( + DataStoreHubEventType.modelSynced, + payload: ModelSyncedEvent(map), + ); + } + break; + case 'syncQueriesReady': + { + _rebroadcast(DataStoreHubEventType.syncQueriesReady); + } + break; + case 'outboxMutationEnqueued': + { + _rebroadcast( + DataStoreHubEventType.outboxMutationEnqueued, + payload: OutboxMutationEvent(map, modelProvider, eventName), + ); + } + break; + case 'outboxMutationProcessed': + { + _rebroadcast( + DataStoreHubEventType.outboxMutationProcessed, + payload: OutboxMutationEvent(map, modelProvider, eventName), + ); + } + break; + case 'outboxMutationFailed': + { + _rebroadcast( + DataStoreHubEventType.outboxMutationFailed, + payload: OutboxMutationEvent(map, modelProvider, eventName), + ); + } + break; + case 'outboxStatus': + { + _rebroadcast( + DataStoreHubEventType.outboxStatus, + payload: OutboxStatusEvent(map), + ); + } + break; + // event name in amplify-android + case 'subscriptionDataProcessed': + // event name in amplify-ios + case 'syncReceived': + { + _rebroadcast( + DataStoreHubEventType.subscriptionDataProcessed, + payload: SubscriptionDataProcessedEvent(map, modelProvider), + ); + break; + } + default: + break; } - break; - case 'networkStatus': - { - _rebroadcast(DataStoreHubEventType.networkStatus, - payload: NetworkStatusEvent(map)); - } - break; - case 'subscriptionsEstablished': - { - _rebroadcast(DataStoreHubEventType.subscriptionsEstablished); - } - break; - case 'syncQueriesStarted': - { - _rebroadcast(DataStoreHubEventType.syncQueriesStarted, - payload: SyncQueriesStartedEvent(map)); - } - break; - case 'modelSynced': - { - _rebroadcast(DataStoreHubEventType.modelSynced, - payload: ModelSyncedEvent(map)); - } - break; - case 'syncQueriesReady': - { - _rebroadcast(DataStoreHubEventType.syncQueriesReady); - } - break; - case 'outboxMutationEnqueued': - { - _rebroadcast(DataStoreHubEventType.outboxMutationEnqueued, - payload: OutboxMutationEvent(map, modelProvider, eventName)); - } - break; - case 'outboxMutationProcessed': - { - _rebroadcast(DataStoreHubEventType.outboxMutationProcessed, - payload: OutboxMutationEvent(map, modelProvider, eventName)); - } - break; - case 'outboxMutationFailed': - { - _rebroadcast(DataStoreHubEventType.outboxMutationFailed, - payload: OutboxMutationEvent(map, modelProvider, eventName)); - } - break; - case 'outboxStatus': - { - _rebroadcast(DataStoreHubEventType.outboxStatus, - payload: OutboxStatusEvent(map)); - } - break; - // event name in amplify-android - case 'subscriptionDataProcessed': - // event name in amplify-ios - case 'syncReceived': - { - _rebroadcast( - DataStoreHubEventType.subscriptionDataProcessed, - payload: SubscriptionDataProcessedEvent( - map, - modelProvider, - ), - ); - break; - } - default: - break; - } - }); + }); } } diff --git a/packages/amplify_datastore/lib/src/method_channel_datastore.dart b/packages/amplify_datastore/lib/src/method_channel_datastore.dart index 735cc87b3a..79715d3a94 100644 --- a/packages/amplify_datastore/lib/src/method_channel_datastore.dart +++ b/packages/amplify_datastore/lib/src/method_channel_datastore.dart @@ -31,7 +31,8 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { String? id = call.arguments; if (id == null) { throw ArgumentError( - 'resolveQueryPredicate must be called with an id'); + 'resolveQueryPredicate must be called with an id', + ); } return _syncExpressions! .firstWhere((syncExpression) => syncExpression.id == id) @@ -42,15 +43,17 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { if (errorHandler == null) throw StateError("Native calling non existent ErrorHandler in Dart"); - Map arguments = - Map.from(call.arguments); + Map arguments = Map.from( + call.arguments, + ); errorHandler!(_deserializeExceptionFromMap(arguments)); break; case 'conflictHandler': if (conflictHandler == null) throw StateError( - "Native calling non existent ConflictHandler in Dart"); + "Native calling non existent ConflictHandler in Dart", + ); Map arguments = (call.arguments as Map).cast(); @@ -59,9 +62,10 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { final modelType = modelProvider!.getModelTypeByModelName(modelName); ConflictData conflictData = ConflictData.fromJson( - modelType, - (arguments["local"] as Map).cast(), - (arguments["remote"] as Map).cast()); + modelType, + (arguments["local"] as Map).cast(), + (arguments["remote"] as Map).cast(), + ); ConflictResolutionDecision decision = conflictHandler!(conflictData); return decision.toJson(); @@ -93,29 +97,33 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { return await _channel .invokeMethod('configureDataStore', { - 'modelSchemas': modelProvider?.modelSchemas - .map((schema) => schema.toMap()) - .toList(), - 'customTypeSchemas': modelProvider?.customTypeSchemas - .map((schema) => schema.toMap()) - .toList(), - 'hasErrorHandler': errorHandler != null, - 'hasConflictHandler': conflictHandler != null, - 'modelProviderVersion': modelProvider?.version, - 'syncExpressions': syncExpressions! - .map((syncExpression) => syncExpression.toMap()) - .toList(), - 'syncInterval': syncInterval, - 'syncMaxRecords': syncMaxRecords, - 'syncPageSize': syncPageSize, - 'authModeStrategy': authModeStrategy.rawValue, - }); + 'modelSchemas': + modelProvider?.modelSchemas + .map((schema) => schema.toMap()) + .toList(), + 'customTypeSchemas': + modelProvider?.customTypeSchemas + .map((schema) => schema.toMap()) + .toList(), + 'hasErrorHandler': errorHandler != null, + 'hasConflictHandler': conflictHandler != null, + 'modelProviderVersion': modelProvider?.version, + 'syncExpressions': + syncExpressions! + .map((syncExpression) => syncExpression.toMap()) + .toList(), + 'syncInterval': syncInterval, + 'syncMaxRecords': syncMaxRecords, + 'syncPageSize': syncPageSize, + 'authModeStrategy': authModeStrategy.rawValue, + }); } on PlatformException catch (e) { if (e.code == "AmplifyAlreadyConfiguredException") { throw AmplifyAlreadyConfiguredException( - AmplifyExceptionMessages.alreadyConfiguredDefaultMessage, - recoverySuggestion: - AmplifyExceptionMessages.alreadyConfiguredDefaultSuggestion); + AmplifyExceptionMessages.alreadyConfiguredDefaultMessage, + recoverySuggestion: + AmplifyExceptionMessages.alreadyConfiguredDefaultSuggestion, + ); } else { throw _deserializeException(e); } @@ -123,35 +131,42 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { } @override - Future> query(ModelType modelType, - {QueryPredicate? where, - QueryPagination? pagination, - List? sortBy}) async { + Future> query( + ModelType modelType, { + QueryPredicate? where, + QueryPagination? pagination, + List? sortBy, + }) async { try { await _setUpObserveIfNeeded(); - final List>? serializedResults = - await (_channel.invokeListMethod('query', { - 'modelName': modelType.modelName(), - 'queryPredicate': where?.serializeAsMap(), - 'queryPagination': pagination?.serializeAsMap(), - 'querySort': sortBy?.map((element) => element.serializeAsMap()).toList() - })); + final List>? serializedResults = await (_channel + .invokeListMethod('query', { + 'modelName': modelType.modelName(), + 'queryPredicate': where?.serializeAsMap(), + 'queryPagination': pagination?.serializeAsMap(), + 'querySort': + sortBy?.map((element) => element.serializeAsMap()).toList(), + })); if (serializedResults == null) throw DataStoreException( - AmplifyExceptionMessages.nullReturnedFromMethodChannel); + AmplifyExceptionMessages.nullReturnedFromMethodChannel, + ); return serializedResults - .map((serializedResult) => modelType - .fromJson(new Map.from(serializedResult))) + .map( + (serializedResult) => modelType.fromJson( + new Map.from(serializedResult), + ), + ) .toList(); } on PlatformException catch (e) { throw _deserializeException(e); } on TypeError catch (e) { throw DataStoreException( - "An unrecognized exception has happened while Serialization/de-serialization." + - " Please see underlyingException for more details.", - recoverySuggestion: - AmplifyExceptionMessages.missingRecoverySuggestion, - underlyingException: e.toString()); + "An unrecognized exception has happened while Serialization/de-serialization." + + " Please see underlyingException for more details.", + recoverySuggestion: AmplifyExceptionMessages.missingRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -186,21 +201,26 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { } @override - Stream> observe(ModelType modelType, - {QueryPredicate? where}) async* { + Stream> observe( + ModelType modelType, { + QueryPredicate? where, + }) async* { await _setUpObserveIfNeeded(); // Step #1. Open the event channel if it's not already open. Note // that there is only one event channel for all observe calls for all models - const _eventChannel = - EventChannel('com.amazonaws.amplify/datastore_observe_events'); - _allModelsStreamFromMethodChannel = _allModelsStreamFromMethodChannel ?? + const _eventChannel = EventChannel( + 'com.amazonaws.amplify/datastore_observe_events', + ); + _allModelsStreamFromMethodChannel = + _allModelsStreamFromMethodChannel ?? _eventChannel.receiveBroadcastStream(0); // Step #2. Apply client side filtering on the stream. // Currently only modelType filtering is supported. - Stream filteredStream = - _allModelsStreamFromMethodChannel.where((event) { + Stream filteredStream = _allModelsStreamFromMethodChannel.where(( + event, + ) { //TODO: errors are not model specific. Should we pass all errors to users return _getModelNameFromEvent(event) == modelType.modelName(); }); @@ -259,8 +279,9 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { } String _getModelNameFromEvent(Map serializedEvent) { - Map serializedItem = - Map.from(serializedEvent["item"]); + Map serializedItem = Map.from( + serializedEvent["item"], + ); return serializedItem["__modelName"] as String; } @@ -269,15 +290,16 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { return DataStoreException.fromMap(Map.from(e['details'])); } else if (e['errorCode'] == 'AmplifyAlreadyConfiguredException') { return AmplifyAlreadyConfiguredException.fromMap( - Map.from(e['details'])); + Map.from(e['details']), + ); } else { // This shouldn't happen. All exceptions coming from platform for // amplify_datastore should have a known code. Throw an unknown error. return DataStoreException( - AmplifyExceptionMessages.missingExceptionMessage, - recoverySuggestion: - AmplifyExceptionMessages.missingRecoverySuggestion, - underlyingException: e.toString()); + AmplifyExceptionMessages.missingExceptionMessage, + recoverySuggestion: AmplifyExceptionMessages.missingRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -286,15 +308,16 @@ class AmplifyDataStoreMethodChannel extends AmplifyDataStore { return DataStoreException.fromMap(Map.from(e.details)); } else if (e.code == 'AmplifyAlreadyConfiguredException') { return AmplifyAlreadyConfiguredException.fromMap( - Map.from(e.details)); + Map.from(e.details), + ); } else { // This shouldn't happen. All exceptions coming from platform for // amplify_datastore should have a known code. Throw an unknown error. return DataStoreException( - AmplifyExceptionMessages.missingExceptionMessage, - recoverySuggestion: - AmplifyExceptionMessages.missingRecoverySuggestion, - underlyingException: e.toString()); + AmplifyExceptionMessages.missingExceptionMessage, + recoverySuggestion: AmplifyExceptionMessages.missingRecoverySuggestion, + underlyingException: e.toString(), + ); } } diff --git a/packages/amplify_datastore/lib/src/native_plugin.g.dart b/packages/amplify_datastore/lib/src/native_plugin.g.dart index f385d6c848..4132e1da19 100644 --- a/packages/amplify_datastore/lib/src/native_plugin.g.dart +++ b/packages/amplify_datastore/lib/src/native_plugin.g.dart @@ -18,8 +18,11 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -71,20 +74,14 @@ class NativeAuthSession { } class NativeAuthUser { - NativeAuthUser({ - required this.userId, - required this.username, - }); + NativeAuthUser({required this.userId, required this.username}); String userId; String username; Object encode() { - return [ - userId, - username, - ]; + return [userId, username]; } static NativeAuthUser decode(Object result) { @@ -110,11 +107,7 @@ class NativeUserPoolTokens { String idToken; Object encode() { - return [ - accessToken, - refreshToken, - idToken, - ]; + return [accessToken, refreshToken, idToken]; } static NativeUserPoolTokens decode(Object result) { @@ -220,23 +213,17 @@ class LegacyCredentialStoreData { } class NativeGraphQLResponse { - NativeGraphQLResponse({ - this.payloadJson, - }); + NativeGraphQLResponse({this.payloadJson}); String? payloadJson; Object encode() { - return [ - payloadJson, - ]; + return [payloadJson]; } static NativeGraphQLResponse decode(Object result) { result as List; - return NativeGraphQLResponse( - payloadJson: result[0] as String?, - ); + return NativeGraphQLResponse(payloadJson: result[0] as String?); } } @@ -254,11 +241,7 @@ class NativeGraphQLSubscriptionResponse { String? payloadJson; Object encode() { - return [ - type, - subscriptionId, - payloadJson, - ]; + return [type, subscriptionId, payloadJson]; } static NativeGraphQLSubscriptionResponse decode(Object result) { @@ -397,12 +380,12 @@ abstract class NativeAuthPlugin { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeAuthPlugin.fetchAuthSession$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeAuthPlugin.fetchAuthSession$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -414,7 +397,8 @@ abstract class NativeAuthPlugin { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -433,7 +417,8 @@ abstract class NativeApiPlugin { Future query(NativeGraphQLRequest request); Future subscribe( - NativeGraphQLRequest request); + NativeGraphQLRequest request, + ); Future unsubscribe(String subscriptionId); @@ -449,53 +434,63 @@ abstract class NativeApiPlugin { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.getLatestAuthToken$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.getLatestAuthToken$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.getLatestAuthToken was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.getLatestAuthToken was null.', + ); final List args = (message as List?)!; final String? arg_providerName = (args[0] as String?); - assert(arg_providerName != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.getLatestAuthToken was null, expected non-null String.'); + assert( + arg_providerName != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.getLatestAuthToken was null, expected non-null String.', + ); try { - final String? output = - await api.getLatestAuthToken(arg_providerName!); + final String? output = await api.getLatestAuthToken( + arg_providerName!, + ); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.mutate$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.mutate$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.mutate was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.mutate was null.', + ); final List args = (message as List?)!; final NativeGraphQLRequest? arg_request = (args[0] as NativeGraphQLRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.mutate was null, expected non-null NativeGraphQLRequest.'); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.mutate was null, expected non-null NativeGraphQLRequest.', + ); try { final NativeGraphQLResponse output = await api.mutate(arg_request!); return wrapResponse(result: output); @@ -503,29 +498,34 @@ abstract class NativeApiPlugin { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.query$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.query$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.query was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.query was null.', + ); final List args = (message as List?)!; final NativeGraphQLRequest? arg_request = (args[0] as NativeGraphQLRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.query was null, expected non-null NativeGraphQLRequest.'); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.query was null, expected non-null NativeGraphQLRequest.', + ); try { final NativeGraphQLResponse output = await api.query(arg_request!); return wrapResponse(result: output); @@ -533,59 +533,69 @@ abstract class NativeApiPlugin { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.subscribe$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.subscribe$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.subscribe was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.subscribe was null.', + ); final List args = (message as List?)!; final NativeGraphQLRequest? arg_request = (args[0] as NativeGraphQLRequest?); - assert(arg_request != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.subscribe was null, expected non-null NativeGraphQLRequest.'); + assert( + arg_request != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.subscribe was null, expected non-null NativeGraphQLRequest.', + ); try { - final NativeGraphQLSubscriptionResponse output = - await api.subscribe(arg_request!); + final NativeGraphQLSubscriptionResponse output = await api + .subscribe(arg_request!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.unsubscribe$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.unsubscribe$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.unsubscribe was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.unsubscribe was null.', + ); final List args = (message as List?)!; final String? arg_subscriptionId = (args[0] as String?); - assert(arg_subscriptionId != null, - 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.unsubscribe was null, expected non-null String.'); + assert( + arg_subscriptionId != null, + 'Argument for dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.unsubscribe was null, expected non-null String.', + ); try { await api.unsubscribe(arg_subscriptionId!); return wrapResponse(empty: true); @@ -593,18 +603,19 @@ abstract class NativeApiPlugin { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.deviceOffline$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.deviceOffline$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -616,18 +627,19 @@ abstract class NativeApiPlugin { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.onStop$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_datastore.NativeApiPlugin.onStop$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -639,7 +651,8 @@ abstract class NativeApiPlugin { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -652,11 +665,12 @@ class NativeAmplifyBridge { /// Constructor for [NativeAmplifyBridge]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NativeAmplifyBridge( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NativeAmplifyBridge({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -668,12 +682,13 @@ class NativeAmplifyBridge { 'dev.flutter.pigeon.amplify_datastore.NativeAmplifyBridge.configure$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([version, config]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([version, config]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -693,11 +708,12 @@ class NativeAuthBridge { /// Constructor for [NativeAuthBridge]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NativeAuthBridge( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NativeAuthBridge({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -709,10 +725,10 @@ class NativeAuthBridge { 'dev.flutter.pigeon.amplify_datastore.NativeAuthBridge.addAuthPlugin$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -733,10 +749,10 @@ class NativeAuthBridge { 'dev.flutter.pigeon.amplify_datastore.NativeAuthBridge.updateCurrentUser$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send([user]) as List?; if (pigeonVar_replyList == null) { @@ -758,11 +774,12 @@ class NativeApiBridge { /// Constructor for [NativeApiBridge]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NativeApiBridge( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NativeApiBridge({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -770,17 +787,20 @@ class NativeApiBridge { final String pigeonVar_messageChannelSuffix; Future addApiPlugin( - List authProvidersList, Map endpoints) async { + List authProvidersList, + Map endpoints, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_datastore.NativeApiBridge.addApiPlugin$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([authProvidersList, endpoints]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([authProvidersList, endpoints]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -795,15 +815,16 @@ class NativeApiBridge { } Future sendSubscriptionEvent( - NativeGraphQLSubscriptionResponse event) async { + NativeGraphQLSubscriptionResponse event, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_datastore.NativeApiBridge.sendSubscriptionEvent$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send([event]) as List?; if (pigeonVar_replyList == null) { diff --git a/packages/amplify_datastore/lib/src/stream_utils/throttle.dart b/packages/amplify_datastore/lib/src/stream_utils/throttle.dart index 1be661de11..587dceef98 100644 --- a/packages/amplify_datastore/lib/src/stream_utils/throttle.dart +++ b/packages/amplify_datastore/lib/src/stream_utils/throttle.dart @@ -26,10 +26,7 @@ extension Throttle on Stream { 'throttleCount and duration cannot both be null', ); if (throttleCount != null) { - assert( - throttleCount >= 1, - 'throttleCount cannot be less than 1', - ); + assert(throttleCount >= 1, 'throttleCount cannot be less than 1'); } // number of items that have emitted from the source stream since @@ -97,13 +94,15 @@ extension Throttle on Stream { } return this.transform( - StreamTransformer.fromHandlers(handleData: (data, sink) { - if (shouldEmitData(data)) { - emitData(data, sink); - } else { - throttleData(data, sink); - } - }), + StreamTransformer.fromHandlers( + handleData: (data, sink) { + if (shouldEmitData(data)) { + emitData(data, sink); + } else { + throttleData(data, sink); + } + }, + ), ); } } diff --git a/packages/amplify_datastore/lib/src/types/observe_query_executor.dart b/packages/amplify_datastore/lib/src/types/observe_query_executor.dart index acd6591dce..b47cb37fec 100644 --- a/packages/amplify_datastore/lib/src/types/observe_query_executor.dart +++ b/packages/amplify_datastore/lib/src/types/observe_query_executor.dart @@ -2,33 +2,34 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_datastore.observe_query_executor; +library; import 'package:amplify_datastore/src/stream_utils/throttle.dart'; import 'package:amplify_datastore_plugin_interface/amplify_datastore_plugin_interface.dart'; import 'package:async/async.dart'; import 'package:meta/meta.dart'; -typedef Query = Future> Function( - ModelType modelType, { - QueryPredicate? where, - QueryPagination? pagination, - List? sortBy, -}); +typedef Query = + Future> Function( + ModelType modelType, { + QueryPredicate? where, + QueryPagination? pagination, + List? sortBy, + }); -typedef Observe = Stream> Function( - ModelType modelType); +typedef Observe = + Stream> Function(ModelType modelType); /// A class for handling observeQuery operations class ObserveQueryExecutor { final Stream dataStoreEventStream; - ObserveQueryExecutor({ - required this.dataStoreEventStream, - }) : _dataStoreHubEventStream = dataStoreEventStream - .where((event) => event is DataStoreHubEvent) - .cast() - .asBroadcastStream() { + ObserveQueryExecutor({required this.dataStoreEventStream}) + : _dataStoreHubEventStream = + dataStoreEventStream + .where((event) => event is DataStoreHubEvent) + .cast() + .asBroadcastStream() { _initModelSyncCache(); } @@ -59,35 +60,36 @@ class ObserveQueryExecutor { .skipWhile((element) => querySnapshot == null) .where((event) => event != querySnapshot!.isSynced) .map>((value) { - querySnapshot = querySnapshot!.withSyncStatus(value); - return querySnapshot!; - }); + querySnapshot = querySnapshot!.withSyncStatus(value); + return querySnapshot!; + }); - Stream> observeStream = observe(modelType) - .map?>((event) { - // cache subscription events until the initial query is returned - if (querySnapshot == null) { - subscriptionEvents.add(event); - return null; - } - - // apply the most recent event to the cached QuerySnapshot - var updatedQuerySnapshot = querySnapshot!.withSubscriptionEvent( - event: event, - ); - - // if the snapshot has not changed, return null - if (querySnapshot == updatedQuerySnapshot) { - return null; - } - - // otherwise, update the cached QuerySnapshot and return it - querySnapshot = updatedQuerySnapshot; - return querySnapshot; - }) - // filter out null values - .where((event) => event != null) - .cast>(); + Stream> observeStream = + observe(modelType) + .map?>((event) { + // cache subscription events until the initial query is returned + if (querySnapshot == null) { + subscriptionEvents.add(event); + return null; + } + + // apply the most recent event to the cached QuerySnapshot + var updatedQuerySnapshot = querySnapshot!.withSubscriptionEvent( + event: event, + ); + + // if the snapshot has not changed, return null + if (querySnapshot == updatedQuerySnapshot) { + return null; + } + + // otherwise, update the cached QuerySnapshot and return it + querySnapshot = updatedQuerySnapshot; + return querySnapshot; + }) + // filter out null values + .where((event) => event != null) + .cast>(); Future> queryFuture = query( modelType, @@ -147,10 +149,9 @@ class ObserveQueryExecutor { } void _initModelSyncCache() { - this - ._dataStoreHubEventStream - .map((event) => event.payload) - .listen((payload) { + this._dataStoreHubEventStream.map((event) => event.payload).listen(( + payload, + ) { if (payload is ModelSyncedEvent) { _modelSyncCache[payload.modelName] = _ModelSyncStatus.complete; } else if (payload is SyncQueriesStartedEvent) { diff --git a/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart b/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart index cfdaf14fc3..27f0b79afa 100644 --- a/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart +++ b/packages/amplify_datastore/lib/src/utils/native_api_helpers.dart @@ -5,7 +5,8 @@ import 'package:amplify_datastore/src/native_plugin.g.dart'; /// Convert a [NativeGraphQLResponse] to a [GraphQLResponse] GraphQLRequest nativeRequestToGraphQLRequest( - NativeGraphQLRequest request) { + NativeGraphQLRequest request, +) { return GraphQLRequest( document: request.document, variables: jsonDecode(request.variablesJson ?? '{}'), @@ -44,33 +45,36 @@ APIAuthorizationType? nativeToApiAuthorizationType(String? authMode) { String _transformExceptionToErrorPayloadJson(Object e) { final _silentFailExceptions = ["SignedOutException"]; - Map error = { - 'message': "${e.toString()}", - }; + Map error = {'message': "${e.toString()}"}; if (e is AmplifyException) { - final isUnAuthorized = _silentFailExceptions - .any((x) => e.underlyingException?.toString().contains(x) ?? false); + final isUnAuthorized = _silentFailExceptions.any( + (x) => e.underlyingException?.toString().contains(x) ?? false, + ); // preface the error message with "Unauthorized" if the exception should be silent - error['message'] = isUnAuthorized - ? "Unauthorized - ${e.message} - ${e.underlyingException}" - : error['message']; + error['message'] = + isUnAuthorized + ? "Unauthorized - ${e.message} - ${e.underlyingException}" + : error['message']; } var errorPayload = { - 'errors': [error] + 'errors': [error], }; return jsonEncode(errorPayload); } /// Handle GraphQL operation Exceptions and return a [NativeGraphQLResponse] NativeGraphQLResponse handleGraphQLOperationException( - Exception e, NativeGraphQLRequest request) { + Exception e, + NativeGraphQLRequest request, +) { final errorPayload = _transformExceptionToErrorPayloadJson(e); return NativeGraphQLResponse(payloadJson: errorPayload); } /// Convert a [GraphQLResponse] to a [NativeGraphQLResponse] NativeGraphQLResponse graphQLResponseToNativeResponse( - GraphQLResponse response) { + GraphQLResponse response, +) { var payload = ""; try { payload = _buildPayloadJson(response); @@ -85,10 +89,7 @@ NativeGraphQLResponse graphQLResponseToNativeResponse( String _buildPayloadJson(GraphQLResponse response) { final data = jsonDecode(response.data ?? '{}'); final errors = response.errors.nonNulls.map((e) => e.toJson()).toList(); - return jsonEncode({ - 'data': data, - 'errors': errors, - }); + return jsonEncode({'data': data, 'errors': errors}); } /// Handle payload json parsing exceptions @@ -96,9 +97,7 @@ String _handlePayloadException(Exception e) { return jsonEncode({ 'data': {}, 'errors': [ - { - 'message': 'Error parsing payload json: ${e.toString()}', - } + {'message': 'Error parsing payload json: ${e.toString()}'}, ], }); } @@ -129,7 +128,9 @@ void sendNativeStartAckEvent(String subscriptionId) { /// Send a subscription event for the given [subscriptionId] and [GraphQLResponse] /// If the response has errors, the event type will be `error`, otherwise `data` void sendSubscriptionEvent( - String subscriptionId, GraphQLResponse response) { + String subscriptionId, + GraphQLResponse response, +) { var payload = ""; var hasErrors = response.hasErrors; diff --git a/packages/amplify_datastore/pigeons/native_plugin.dart b/packages/amplify_datastore/pigeons/native_plugin.dart index cf09fd9042..77014b5aa3 100644 --- a/packages/amplify_datastore/pigeons/native_plugin.dart +++ b/packages/amplify_datastore/pigeons/native_plugin.dart @@ -13,7 +13,7 @@ 'android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/pigeons/NativePluginBindings.kt', ), ) -library native_plugin; +library; import 'package:pigeon/pigeon.dart'; @@ -70,7 +70,9 @@ abstract class NativeAuthBridge { abstract class NativeApiBridge { @async void addApiPlugin( - List authProvidersList, Map endpoints); + List authProvidersList, + Map endpoints, + ); @async void sendSubscriptionEvent(NativeGraphQLSubscriptionResponse event); diff --git a/packages/amplify_datastore/pubspec.yaml b/packages/amplify_datastore/pubspec.yaml index 00a877ff91..f961e33413 100644 --- a/packages/amplify_datastore/pubspec.yaml +++ b/packages/amplify_datastore/pubspec.yaml @@ -1,21 +1,21 @@ name: amplify_datastore description: The Amplify Flutter DataStore category plugin, providing a queryable, on-device data store. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/amplify_datastore issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: flutter: sdk: flutter - amplify_datastore_plugin_interface: ">=2.6.1 <2.7.0" - amplify_core: ">=2.6.1 <2.7.0" + amplify_datastore_plugin_interface: ">=2.6.2 <2.7.0" + amplify_core: ">=2.6.2 <2.7.0" plugin_platform_interface: ^2.0.0 - meta: ^1.7.0 + meta: ^1.16.0 collection: ^1.14.13 async: ^2.10.0 diff --git a/packages/amplify_datastore/test/amplify_datastore_clear_test.dart b/packages/amplify_datastore/test/amplify_datastore_clear_test.dart index 8a53355256..1c5a6548de 100644 --- a/packages/amplify_datastore/test/amplify_datastore_clear_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_clear_test.dart @@ -8,11 +8,13 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - const MethodChannel dataStoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel dataStoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); - AmplifyDataStore dataStore = - AmplifyDataStore(modelProvider: ModelProvider.instance); + AmplifyDataStore dataStore = AmplifyDataStore( + modelProvider: ModelProvider.instance, + ); final binding = TestWidgetsFlutterBinding.ensureInitialized(); @@ -24,65 +26,93 @@ void main() { }); test('Clear executes successfully', () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - return null; - }, - ); + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + return null; + }); Future clearFuture = dataStore.clear(); expect(clearFuture, completes); }); test( - 'A PlatformException for a failed API call results in the corresponding DataStoreException', - () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - throw PlatformException(code: 'DataStoreException', details: { - 'message': 'Clear failed for whatever known reason', - 'recoverySuggestion': 'some insightful suggestion', - 'underlyingException': 'Act of God' - }); - }, - ); - expect( + 'A PlatformException for a failed API call results in the corresponding DataStoreException', + () async { + binding.defaultBinaryMessenger.setMockMethodCallHandler( + dataStoreChannel, + (MethodCall methodCall) async { + throw PlatformException( + code: 'DataStoreException', + details: { + 'message': 'Clear failed for whatever known reason', + 'recoverySuggestion': 'some insightful suggestion', + 'underlyingException': 'Act of God', + }, + ); + }, + ); + expect( () => dataStore.clear(), - throwsA(isA() - .having((exception) => exception.message, 'message', - 'Clear failed for whatever known reason') - .having((exception) => exception.recoverySuggestion, - 'recoverySuggestion', 'some insightful suggestion') - .having((exception) => exception.underlyingException, - 'underlyingException', 'Act of God'))); - }); + throwsA( + isA() + .having( + (exception) => exception.message, + 'message', + 'Clear failed for whatever known reason', + ) + .having( + (exception) => exception.recoverySuggestion, + 'recoverySuggestion', + 'some insightful suggestion', + ) + .having( + (exception) => exception.underlyingException, + 'underlyingException', + 'Act of God', + ), + ), + ); + }, + ); test( - 'An unrecognized PlatformException results in a generic DataStoreException', - () async { - var platformException = - PlatformException(code: 'BadExceptionCode', details: { - 'message': 'Clear failed for whatever known reason', - 'recoverySuggestion': 'some insightful suggestion', - 'underlyingException': 'Act of God' - }); - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - throw platformException; - }, - ); - expect( + 'An unrecognized PlatformException results in a generic DataStoreException', + () async { + var platformException = PlatformException( + code: 'BadExceptionCode', + details: { + 'message': 'Clear failed for whatever known reason', + 'recoverySuggestion': 'some insightful suggestion', + 'underlyingException': 'Act of God', + }, + ); + binding.defaultBinaryMessenger.setMockMethodCallHandler( + dataStoreChannel, + (MethodCall methodCall) async { + throw platformException; + }, + ); + expect( () => dataStore.clear(), - throwsA(isA() - .having((exception) => exception.message, 'message', - AmplifyExceptionMessages.missingExceptionMessage) - .having( + throwsA( + isA() + .having( + (exception) => exception.message, + 'message', + AmplifyExceptionMessages.missingExceptionMessage, + ) + .having( (exception) => exception.recoverySuggestion, 'recoverySuggestion', - AmplifyExceptionMessages.missingRecoverySuggestion) - .having((exception) => exception.underlyingException, - 'underlyingException', platformException.toString()))); - }); + AmplifyExceptionMessages.missingRecoverySuggestion, + ) + .having( + (exception) => exception.underlyingException, + 'underlyingException', + platformException.toString(), + ), + ), + ); + }, + ); } diff --git a/packages/amplify_datastore/test/amplify_datastore_custom_error_handler_test.dart b/packages/amplify_datastore/test/amplify_datastore_custom_error_handler_test.dart index dd50b6b746..a8f48d1020 100644 --- a/packages/amplify_datastore/test/amplify_datastore_custom_error_handler_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_custom_error_handler_test.dart @@ -15,68 +15,72 @@ extension MockMethodChannel on MethodChannel { final data = codec.encodeMethodCall(MethodCall(method, arguments)); await TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger - .handlePlatformMessage( - name, - data, - (ByteData? data) {}, - ); + .handlePlatformMessage(name, data, (ByteData? data) {}); } } void main() { - const MethodChannel dataStoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel dataStoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); AmplifyException? receivedException; final binding = TestWidgetsFlutterBinding.ensureInitialized(); setUp(() { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - return null; - }, - ); + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + return null; + }); AmplifyDataStore dataStore = AmplifyDataStore( - modelProvider: ModelProvider.instance, - options: DataStorePluginOptions( - errorHandler: (exception) => {receivedException = exception})); + modelProvider: ModelProvider.instance, + options: DataStorePluginOptions( + errorHandler: (exception) => {receivedException = exception}, + ), + ); return dataStore.configureDataStore(); }); test( - 'DataStoreException from MethodChannel is properly serialized and called', - () async { - await dataStoreChannel.invokeMockMethod("errorHandler", { - 'errorCode': 'DataStoreException', - 'errorMessage': 'ErrorMessage', - 'details': { - 'message': 'message', - 'recoverySuggestion': 'recoverySuggestion', - 'underlyingException': 'underlyingException' - } - }); - expect( + 'DataStoreException from MethodChannel is properly serialized and called', + () async { + await dataStoreChannel.invokeMockMethod("errorHandler", { + 'errorCode': 'DataStoreException', + 'errorMessage': 'ErrorMessage', + 'details': { + 'message': 'message', + 'recoverySuggestion': 'recoverySuggestion', + 'underlyingException': 'underlyingException', + }, + }); + expect( receivedException, DataStoreException.fromMap({ 'message': 'message', 'recoverySuggestion': 'recoverySuggestion', - 'underlyingException': 'underlyingException' - })); - }); + 'underlyingException': 'underlyingException', + }), + ); + }, + ); test( - 'Unknown DataStoreException from MethodChannel is properly serialized and called', - () async { - await dataStoreChannel - .invokeMockMethod("errorHandler", {'badErrorFormat': 'badErrorFormat'}); - expect( + 'Unknown DataStoreException from MethodChannel is properly serialized and called', + () async { + await dataStoreChannel.invokeMockMethod("errorHandler", { + 'badErrorFormat': 'badErrorFormat', + }); + expect( receivedException, - DataStoreException(AmplifyExceptionMessages.missingExceptionMessage, - recoverySuggestion: - AmplifyExceptionMessages.missingRecoverySuggestion, - underlyingException: - {'badErrorFormat': 'badErrorFormat'}.toString())); - }); + DataStoreException( + AmplifyExceptionMessages.missingExceptionMessage, + recoverySuggestion: + AmplifyExceptionMessages.missingRecoverySuggestion, + underlyingException: {'badErrorFormat': 'badErrorFormat'}.toString(), + ), + ); + }, + ); } diff --git a/packages/amplify_datastore/test/amplify_datastore_delete_test.dart b/packages/amplify_datastore/test/amplify_datastore_delete_test.dart index 3c9f7d3b7f..0f6c3f90c4 100644 --- a/packages/amplify_datastore/test/amplify_datastore_delete_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_delete_test.dart @@ -8,11 +8,13 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - const MethodChannel dataStoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel dataStoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); - AmplifyDataStore dataStore = - AmplifyDataStore(modelProvider: ModelProvider.instance); + AmplifyDataStore dataStore = AmplifyDataStore( + modelProvider: ModelProvider.instance, + ); final binding = TestWidgetsFlutterBinding.ensureInitialized(); @@ -26,50 +28,69 @@ void main() { }); test('delete with a valid model executes without an exception ', () async { - var json = - await getJsonFromFile('delete_api/request/instance_no_predicate.json'); - var model = json['serializedModel']; - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - return null; - }, + var json = await getJsonFromFile( + 'delete_api/request/instance_no_predicate.json', ); + var model = json['serializedModel']; + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + return null; + }); Post instance = Post( - title: model['title'], - rating: model['rating'], - created: TemporalDateTime.fromString(model['created']), - id: model['id']); + title: model['title'], + rating: model['rating'], + created: TemporalDateTime.fromString(model['created']), + id: model['id'], + ); Future deleteFuture = dataStore.delete(instance); expect(deleteFuture, completes); }); test( - 'A PlatformException for a failed API call results in the corresponding DataStoreException', - () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - throw PlatformException(code: 'DataStoreException', details: { - 'message': 'Delete failed for whatever known reason', - 'recoverySuggestion': 'some insightful suggestion', - 'underlyingException': 'Act of God' - }); - }, - ); - expect( - () => dataStore.delete(Post( + 'A PlatformException for a failed API call results in the corresponding DataStoreException', + () async { + binding.defaultBinaryMessenger.setMockMethodCallHandler( + dataStoreChannel, + (MethodCall methodCall) async { + throw PlatformException( + code: 'DataStoreException', + details: { + 'message': 'Delete failed for whatever known reason', + 'recoverySuggestion': 'some insightful suggestion', + 'underlyingException': 'Act of God', + }, + ); + }, + ); + expect( + () => dataStore.delete( + Post( id: '4281dfba-96c8-4a38-9a8e-35c7e893ea47', title: 'test title', rating: 0, - created: - TemporalDateTime.fromString("2021-11-09T18:53:12.183540Z"))), - throwsA(isA() - .having((exception) => exception.message, 'message', - 'Delete failed for whatever known reason') - .having((exception) => exception.recoverySuggestion, - 'recoverySuggestion', 'some insightful suggestion') - .having((exception) => exception.underlyingException, - 'underlyingException', 'Act of God'))); - }); + created: TemporalDateTime.fromString("2021-11-09T18:53:12.183540Z"), + ), + ), + throwsA( + isA() + .having( + (exception) => exception.message, + 'message', + 'Delete failed for whatever known reason', + ) + .having( + (exception) => exception.recoverySuggestion, + 'recoverySuggestion', + 'some insightful suggestion', + ) + .having( + (exception) => exception.underlyingException, + 'underlyingException', + 'Act of God', + ), + ), + ); + }, + ); } diff --git a/packages/amplify_datastore/test/amplify_datastore_observe_test.dart b/packages/amplify_datastore/test/amplify_datastore_observe_test.dart index 2cc83f58f9..8501a028cc 100644 --- a/packages/amplify_datastore/test/amplify_datastore_observe_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_observe_test.dart @@ -8,16 +8,19 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - const MethodChannel dataStoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel dataStoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); // event channels are backed by method channels. However // event channels cannot be mocked like method channels. - const MethodChannel eventChannel = - MethodChannel('com.amazonaws.amplify/datastore_observe_events'); + const MethodChannel eventChannel = MethodChannel( + 'com.amazonaws.amplify/datastore_observe_events', + ); - AmplifyDataStore dataStore = - AmplifyDataStore(modelProvider: ModelProvider.instance); + AmplifyDataStore dataStore = AmplifyDataStore( + modelProvider: ModelProvider.instance, + ); final binding = TestWidgetsFlutterBinding.ensureInitialized(); @@ -31,62 +34,61 @@ void main() { }); test('observe a valid model type and receive an item ', () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - expect("setUpObserve", methodCall.method); - return null; - }, - ); - var json = - await getJsonFromFile('observe_api/post_type_success_event.json'); - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger - .handlePlatformMessage( - "com.amazonaws.amplify/datastore_observe_events", - const StandardMethodCodec().encodeSuccessEnvelope(json), - (ByteData? data) {}, - ); - return null; - }, + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + expect("setUpObserve", methodCall.method); + return null; + }); + var json = await getJsonFromFile( + 'observe_api/post_type_success_event.json', ); + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .handlePlatformMessage( + "com.amazonaws.amplify/datastore_observe_events", + const StandardMethodCodec().encodeSuccessEnvelope(json), + (ByteData? data) {}, + ); + return null; + }); dataStore.observe(Post.classType).listen((event) { expect( - event.item, - Post( - id: "43036c6b-8044-4309-bddc-262b6c686026", - title: "Title 2", - rating: 0, - created: - TemporalDateTime.fromString("2020-02-20T20:20:20-08:00"))); + event.item, + Post( + id: "43036c6b-8044-4309-bddc-262b6c686026", + title: "Title 2", + rating: 0, + created: TemporalDateTime.fromString("2020-02-20T20:20:20-08:00"), + ), + ); expect(event.eventType, EventType.create); }); }); test('observe a model type, but event is for different model type', () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - expect("setUpObserve", methodCall.method); - return null; - }, - ); - var json = - await getJsonFromFile('observe_api/blog_type_success_event.json'); - binding.defaultBinaryMessenger.setMockMethodCallHandler( - eventChannel, - (MethodCall methodCall) async { - TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger - .handlePlatformMessage( - "com.amazonaws.amplify/datastore_observe_events", - const StandardMethodCodec().encodeSuccessEnvelope(json), - (ByteData? data) {}, - ); - return null; - }, + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + expect("setUpObserve", methodCall.method); + return null; + }); + var json = await getJsonFromFile( + 'observe_api/blog_type_success_event.json', ); + binding.defaultBinaryMessenger.setMockMethodCallHandler(eventChannel, ( + MethodCall methodCall, + ) async { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .handlePlatformMessage( + "com.amazonaws.amplify/datastore_observe_events", + const StandardMethodCodec().encodeSuccessEnvelope(json), + (ByteData? data) {}, + ); + return null; + }); dataStore.observe(Post.classType).listen((event) { fail("No message should ever be received"); }); diff --git a/packages/amplify_datastore/test/amplify_datastore_query_test.dart b/packages/amplify_datastore/test/amplify_datastore_query_test.dart index 2217b4370b..4cece784c1 100644 --- a/packages/amplify_datastore/test/amplify_datastore_query_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_query_test.dart @@ -8,11 +8,13 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - const MethodChannel dataStoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel dataStoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); - AmplifyDataStore dataStore = - AmplifyDataStore(modelProvider: ModelProvider.instance); + AmplifyDataStore dataStore = AmplifyDataStore( + modelProvider: ModelProvider.instance, + ); final binding = TestWidgetsFlutterBinding.ensureInitialized(); @@ -24,136 +26,166 @@ void main() { }); test('query returns nested model result', () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "query") { - return getJsonFromFile('query_api/response/nested_results.json'); - } - return null; - }, - ); + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + if (methodCall.method == "query") { + return getJsonFromFile('query_api/response/nested_results.json'); + } + return null; + }); List comments = await dataStore.query(Comment.classType); expect(comments.length, 1); expect( - comments[0], - Comment( - id: '39c3c0e6-8726-436e-8cdf-bff38e9a62da', - content: 'Loving Amplify Datastore!', - post: Post( - id: 'e50ffa8f-783b-4780-89b4-27043ffc35be', - title: "some title", - rating: 10, - created: TemporalDateTime.fromString("2020-11-25T01:28:49Z")), - )); + comments[0], + Comment( + id: '39c3c0e6-8726-436e-8cdf-bff38e9a62da', + content: 'Loving Amplify Datastore!', + post: Post( + id: 'e50ffa8f-783b-4780-89b4-27043ffc35be', + title: "some title", + rating: 10, + created: TemporalDateTime.fromString("2020-11-25T01:28:49Z"), + ), + ), + ); }); test('query returns 2 sucessful results', () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "query") { - return getJsonFromFile('query_api/response/2_results.json'); - } - return null; - }, - ); + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + if (methodCall.method == "query") { + return getJsonFromFile('query_api/response/2_results.json'); + } + return null; + }); List posts = await dataStore.query(Post.classType); expect(posts.length, 2); expect( - posts[0], - Post( - id: '4281dfba-96c8-4a38-9a8e-35c7e893ea47', - created: TemporalDateTime.fromString("2020-02-20T20:20:20+03:50"), - rating: 4, - title: 'Title 1')); + posts[0], + Post( + id: '4281dfba-96c8-4a38-9a8e-35c7e893ea47', + created: TemporalDateTime.fromString("2020-02-20T20:20:20+03:50"), + rating: 4, + title: 'Title 1', + ), + ); expect( - posts[1], - Post( - id: '43036c6b-8044-4309-bddc-262b6c686026', - created: TemporalDateTime.fromString("2020-02-20T20:20:20-08:00"), - rating: 6, - title: 'Title 2')); + posts[1], + Post( + id: '43036c6b-8044-4309-bddc-262b6c686026', + created: TemporalDateTime.fromString("2020-02-20T20:20:20-08:00"), + rating: 6, + title: 'Title 2', + ), + ); }); test('query returns 0 sucessful results', () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "query") { - return []; - } - return null; - }, - ); + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + if (methodCall.method == "query") { + return []; + } + return null; + }); List posts = await dataStore.query(Post.classType); expect(posts.length, 0); }); test( - 'method channel is called with empty query parameters and correct model name', - () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "query") { - expect(methodCall.arguments, - await getJsonFromFile('query_api/request/only_model_name.json')); - return []; - } - return null; - }, - ); - List posts = await dataStore.query(Post.classType); - expect(posts.length, 0); - }); + 'method channel is called with empty query parameters and correct model name', + () async { + binding.defaultBinaryMessenger.setMockMethodCallHandler( + dataStoreChannel, + (MethodCall methodCall) async { + if (methodCall.method == "query") { + expect( + methodCall.arguments, + await getJsonFromFile('query_api/request/only_model_name.json'), + ); + return []; + } + return null; + }, + ); + List posts = await dataStore.query(Post.classType); + expect(posts.length, 0); + }, + ); - test('method channel is called with all query parameters and model name', - () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "query") { - expect( + test( + 'method channel is called with all query parameters and model name', + () async { + binding.defaultBinaryMessenger.setMockMethodCallHandler( + dataStoreChannel, + (MethodCall methodCall) async { + if (methodCall.method == "query") { + expect( methodCall.arguments, await getJsonFromFile( - 'query_api/request/model_name_with_all_query_parameters.json')); - return []; - } - return null; - }, - ); - List posts = await dataStore.query(Post.classType, - where: Post.ID.eq("123").or(Post.RATING - .ge(4) - .and(not(Post.CREATED.eq("2020-02-20T20:20:20-08:00")))), + 'query_api/request/model_name_with_all_query_parameters.json', + ), + ); + return []; + } + return null; + }, + ); + List posts = await dataStore.query( + Post.classType, + where: Post.ID + .eq("123") + .or( + Post.RATING + .ge(4) + .and(not(Post.CREATED.eq("2020-02-20T20:20:20-08:00"))), + ), sortBy: [Post.ID.ascending(), Post.CREATED.descending()], - pagination: QueryPagination(page: 2, limit: 8)); - expect(posts.length, 0); - }); + pagination: QueryPagination(page: 2, limit: 8), + ); + expect(posts.length, 0); + }, + ); test('method channel throws a known PlatformException', () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "query") { - throw PlatformException(code: 'DataStoreException', details: { + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + if (methodCall.method == "query") { + throw PlatformException( + code: 'DataStoreException', + details: { 'message': 'Query failed for whatever known reason', 'recoverySuggestion': 'some insightful suggestion', - 'underlyingException': 'Act of God' - }); - } - return null; - }, - ); + 'underlyingException': 'Act of God', + }, + ); + } + return null; + }); expect( - () => dataStore.query(Post.classType), - throwsA(isA() - .having((exception) => exception.message, 'message', - 'Query failed for whatever known reason') - .having((exception) => exception.recoverySuggestion, - 'recoverySuggestion', 'some insightful suggestion') - .having((exception) => exception.underlyingException, - 'underlyingException', 'Act of God'))); + () => dataStore.query(Post.classType), + throwsA( + isA() + .having( + (exception) => exception.message, + 'message', + 'Query failed for whatever known reason', + ) + .having( + (exception) => exception.recoverySuggestion, + 'recoverySuggestion', + 'some insightful suggestion', + ) + .having( + (exception) => exception.underlyingException, + 'underlyingException', + 'Act of God', + ), + ), + ); }); } diff --git a/packages/amplify_datastore/test/amplify_datastore_save_test.dart b/packages/amplify_datastore/test/amplify_datastore_save_test.dart index 5b602efc1c..0d4c75e3c6 100644 --- a/packages/amplify_datastore/test/amplify_datastore_save_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_save_test.dart @@ -8,65 +8,89 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - const MethodChannel dataStoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel dataStoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); - AmplifyDataStore dataStore = - AmplifyDataStore(modelProvider: ModelProvider.instance); + AmplifyDataStore dataStore = AmplifyDataStore( + modelProvider: ModelProvider.instance, + ); final binding = TestWidgetsFlutterBinding.ensureInitialized(); tearDown(() { - binding.defaultBinaryMessenger - .setMockMethodCallHandler(dataStoreChannel, null); - }); - - test('Saving a model without predicate executes successfully', () async { binding.defaultBinaryMessenger.setMockMethodCallHandler( dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "save") { - expect( - methodCall.arguments, - await getJsonFromFile( - 'save_api/request/instance_without_predicate.json'), - ); - } - return null; - }, + null, ); + }); + + test('Saving a model without predicate executes successfully', () async { + binding.defaultBinaryMessenger.setMockMethodCallHandler(dataStoreChannel, ( + MethodCall methodCall, + ) async { + if (methodCall.method == "save") { + expect( + methodCall.arguments, + await getJsonFromFile( + 'save_api/request/instance_without_predicate.json', + ), + ); + } + return null; + }); Post post = Post( - id: '9fc5fab4-37ff-4566-97e5-19c5d58a4c22', - title: 'New Post being saved', - rating: 10, - created: TemporalDateTime.fromString('2020-11-12T03:15:48+03:18')); + id: '9fc5fab4-37ff-4566-97e5-19c5d58a4c22', + title: 'New Post being saved', + rating: 10, + created: TemporalDateTime.fromString('2020-11-12T03:15:48+03:18'), + ); await dataStore.save(post); }); test( - 'A PlatformException for malformed request results in the corresponding DataStoreError', - () async { - binding.defaultBinaryMessenger.setMockMethodCallHandler( - dataStoreChannel, - (MethodCall methodCall) async { - throw PlatformException(code: 'DataStoreException', details: { - 'message': 'Save failed for whatever known reason', - 'recoverySuggestion': 'some insightful suggestion', - 'underlyingException': 'Act of God' - }); - }, - ); - expect( - () => dataStore.save(Post( + 'A PlatformException for malformed request results in the corresponding DataStoreError', + () async { + binding.defaultBinaryMessenger.setMockMethodCallHandler( + dataStoreChannel, + (MethodCall methodCall) async { + throw PlatformException( + code: 'DataStoreException', + details: { + 'message': 'Save failed for whatever known reason', + 'recoverySuggestion': 'some insightful suggestion', + 'underlyingException': 'Act of God', + }, + ); + }, + ); + expect( + () => dataStore.save( + Post( title: 'Test Post', rating: 10, - created: TemporalDateTime.fromString("2020-02-20T20:20:20-08:00"))), - throwsA(isA() - .having((exception) => exception.message, 'message', - 'Save failed for whatever known reason') - .having((exception) => exception.recoverySuggestion, - 'recoverySuggestion', 'some insightful suggestion') - .having((exception) => exception.underlyingException, - 'underlyingException', 'Act of God'))); - }); + created: TemporalDateTime.fromString("2020-02-20T20:20:20-08:00"), + ), + ), + throwsA( + isA() + .having( + (exception) => exception.message, + 'message', + 'Save failed for whatever known reason', + ) + .having( + (exception) => exception.recoverySuggestion, + 'recoverySuggestion', + 'some insightful suggestion', + ) + .having( + (exception) => exception.underlyingException, + 'underlyingException', + 'Act of God', + ), + ), + ); + }, + ); } diff --git a/packages/amplify_datastore/test/amplify_datastore_stream_controller_test.dart b/packages/amplify_datastore/test/amplify_datastore_stream_controller_test.dart index a1d151fbd2..9b7e2e4d07 100644 --- a/packages/amplify_datastore/test/amplify_datastore_stream_controller_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_stream_controller_test.dart @@ -14,8 +14,9 @@ import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - const MethodChannel datastoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel datastoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); const MethodChannel coreChannel = MethodChannel('com.amazonaws.amplify/core'); const String channelName = "com.amazonaws.amplify/datastore_hub_events"; @@ -35,8 +36,10 @@ void main() { }); tearDown(() { - ServicesBinding.instance.defaultBinaryMessenger - .setMockMessageHandler(channelName, null); + ServicesBinding.instance.defaultBinaryMessenger.setMockMessageHandler( + channelName, + null, + ); }); tearDownAll(() => dataStoreStreamController.close()); @@ -208,14 +211,17 @@ void main() { sub.cancel(); OutboxMutationEvent payload = events.last.payload as OutboxMutationEvent; - TemporalDateTime parsedDate = - TemporalDateTime.fromString(json["element"]["model"]["created"]); + TemporalDateTime parsedDate = TemporalDateTime.fromString( + json["element"]["model"]["created"], + ); expect(events.last, isInstanceOf()); expect(payload.modelName, "Post"); expect(payload.element, isInstanceOf()); expect(payload.element.model, isInstanceOf()); - expect(payload.element.model.modelIdentifier.serializeAsString(), - equals("43036c6b-8044-4309-bddc-262b6c686026")); + expect( + payload.element.model.modelIdentifier.serializeAsString(), + equals("43036c6b-8044-4309-bddc-262b6c686026"), + ); expect((payload.element.model as Post).title, equals("Title 1")); expect((payload.element.model as Post).created, equals(parsedDate)); }); @@ -245,15 +251,18 @@ void main() { OutboxMutationEvent payload = events.last.payload as OutboxMutationEvent; HubEventElementWithMetadata element = payload.element as HubEventElementWithMetadata; - TemporalDateTime parsedDate = - TemporalDateTime.fromString(json["element"]["model"]["created"]); + TemporalDateTime parsedDate = TemporalDateTime.fromString( + json["element"]["model"]["created"], + ); expect(events.last, isInstanceOf()); expect(payload.modelName, "Post"); expect(element, isInstanceOf()); expect(element, isInstanceOf()); expect(element.model, isInstanceOf()); - expect(element.model.modelIdentifier.serializeAsString(), - equals("43036c6b-8044-4309-bddc-262b6c686026")); + expect( + element.model.modelIdentifier.serializeAsString(), + equals("43036c6b-8044-4309-bddc-262b6c686026"), + ); expect((element.model as Post).title, equals("Title 1")); expect((element.model as Post).created, equals(parsedDate)); expect(element.deleted, equals(false)); diff --git a/packages/amplify_datastore/test/amplify_datastore_test.dart b/packages/amplify_datastore/test/amplify_datastore_test.dart index ed6bbae0f5..b46b5305cf 100644 --- a/packages/amplify_datastore/test/amplify_datastore_test.dart +++ b/packages/amplify_datastore/test/amplify_datastore_test.dart @@ -12,61 +12,74 @@ void main() { const mockSyncMaxRecords = 60000; const mockSyncPagesize = 1000; - const MethodChannel dataStoreChannel = - MethodChannel('com.amazonaws.amplify/datastore'); + const MethodChannel dataStoreChannel = MethodChannel( + 'com.amazonaws.amplify/datastore', + ); AmplifyDataStore dataStore = AmplifyDataStore( - modelProvider: ModelProvider.instance, - options: DataStorePluginOptions( - syncExpressions: [ - DataStoreSyncExpression(Blog.classType, () => Blog.NAME.eq('foo')), - DataStoreSyncExpression(Post.classType, () => Post.TITLE.eq('bar')) - ], - syncInterval: mockSyncInterval, - syncMaxRecords: mockSyncMaxRecords, - syncPageSize: mockSyncPagesize)); + modelProvider: ModelProvider.instance, + options: DataStorePluginOptions( + syncExpressions: [ + DataStoreSyncExpression(Blog.classType, () => Blog.NAME.eq('foo')), + DataStoreSyncExpression(Post.classType, () => Post.TITLE.eq('bar')), + ], + syncInterval: mockSyncInterval, + syncMaxRecords: mockSyncMaxRecords, + syncPageSize: mockSyncPagesize, + ), + ); final binding = TestWidgetsFlutterBinding.ensureInitialized(); tearDown(() { - binding.defaultBinaryMessenger - .setMockMethodCallHandler(dataStoreChannel, null); - }); - - test('DataStore custom configuration should be passed via MethodChannel', - () async { - var expectedBlogExpression = - await getJsonFromFile('sync_expressions/blog_name.json'); - var expectedPostExpression = - await getJsonFromFile('sync_expressions/post_title.json'); binding.defaultBinaryMessenger.setMockMethodCallHandler( dataStoreChannel, - (MethodCall methodCall) async { - if (methodCall.method == "configureDataStore") { - final modelSchemas = methodCall.arguments['modelSchemas']; - final syncExpressions = methodCall.arguments['syncExpressions']; - final syncInterval = methodCall.arguments['syncInterval']; - final syncMaxRecords = methodCall.arguments['syncMaxRecords']; - final syncPageSize = methodCall.arguments['syncPageSize']; + null, + ); + }); - expect( + test( + 'DataStore custom configuration should be passed via MethodChannel', + () async { + var expectedBlogExpression = await getJsonFromFile( + 'sync_expressions/blog_name.json', + ); + var expectedPostExpression = await getJsonFromFile( + 'sync_expressions/post_title.json', + ); + binding.defaultBinaryMessenger.setMockMethodCallHandler( + dataStoreChannel, + (MethodCall methodCall) async { + if (methodCall.method == "configureDataStore") { + final modelSchemas = methodCall.arguments['modelSchemas']; + final syncExpressions = methodCall.arguments['syncExpressions']; + final syncInterval = methodCall.arguments['syncInterval']; + final syncMaxRecords = methodCall.arguments['syncMaxRecords']; + final syncPageSize = methodCall.arguments['syncPageSize']; + + expect( modelSchemas, ModelProvider.instance.modelSchemas .map((schema) => schema.toMap()) - .toList()); - expect(syncExpressions.map((expression) { - // Ignore generated ID - (expression as Map).remove("id"); - return expression; - }), [expectedBlogExpression, expectedPostExpression]); - expect(syncInterval, mockSyncInterval); - expect(syncMaxRecords, mockSyncMaxRecords); - expect(syncPageSize, mockSyncPagesize); - } - return null; - }, - ); + .toList(), + ); + expect( + syncExpressions.map((expression) { + // Ignore generated ID + (expression as Map).remove("id"); + return expression; + }), + [expectedBlogExpression, expectedPostExpression], + ); + expect(syncInterval, mockSyncInterval); + expect(syncMaxRecords, mockSyncMaxRecords); + expect(syncPageSize, mockSyncPagesize); + } + return null; + }, + ); - await dataStore.configureDataStore(); - }); + await dataStore.configureDataStore(); + }, + ); } diff --git a/packages/amplify_datastore/test/native_amplify_api_test.dart b/packages/amplify_datastore/test/native_amplify_api_test.dart index 996dbb6ae7..976a7c1f9c 100644 --- a/packages/amplify_datastore/test/native_amplify_api_test.dart +++ b/packages/amplify_datastore/test/native_amplify_api_test.dart @@ -56,10 +56,7 @@ void main() async { return GraphQLOperation( CancelableOperation>.fromValue( - GraphQLResponse( - data: null as T?, - errors: [], - ), + GraphQLResponse(data: null as T?, errors: []), ), ); }; @@ -118,13 +115,14 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); NativeGraphQLRequest request = NativeGraphQLRequest( - document: document, - apiName: apiName, - variablesJson: variablesJson, - responseType: responseType, - decodePath: decodePath, - options: options, - authMode: authMode); + document: document, + apiName: apiName, + variablesJson: variablesJson, + responseType: responseType, + decodePath: decodePath, + options: options, + authMode: authMode, + ); NativeGraphQLResponse response = await nativeAmplifyApi.query(request); expect(response.payloadJson, payloadJson); @@ -148,10 +146,7 @@ void main() async { return GraphQLOperation( CancelableOperation>.fromValue( - GraphQLResponse( - data: data as T?, - errors: [], - ), + GraphQLResponse(data: data as T?, errors: []), ), ); }; @@ -173,20 +168,14 @@ void main() async { return GraphQLOperation( CancelableOperation>.fromValue( - GraphQLResponse( - data: null as T?, - errors: [], - ), + GraphQLResponse(data: null as T?, errors: []), ), ); }; NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); await nativeAmplifyApi.query( - NativeGraphQLRequest( - document: '', - authMode: authMode, - ), + NativeGraphQLRequest(document: '', authMode: authMode), ); } @@ -195,7 +184,9 @@ void main() async { await _authModeExpectHelepr('awsIAM', APIAuthorizationType.iam); await _authModeExpectHelepr('openIDConnect', APIAuthorizationType.oidc); await _authModeExpectHelepr( - 'amazonCognitoUserPools', APIAuthorizationType.userPools); + 'amazonCognitoUserPools', + APIAuthorizationType.userPools, + ); await _authModeExpectHelepr('function', APIAuthorizationType.function); await _authModeExpectHelepr('none', APIAuthorizationType.none); await _authModeExpectHelepr(null, null); @@ -229,39 +220,38 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); NativeGraphQLResponse response = await nativeAmplifyApi.query(request); expect(response.payloadJson, payloadJson); }); - test('Should handle unauthorized AmplifyException - SignedOutException', - () async { - String exceptionMessage = 'API Exception'; - String payloadJson = - '{"errors":[{"message":"Unauthorized - API Exception - SignedOutException"}]}'; - - mockAPIPlugin.queryMethod = (GraphQLRequest mockRequest) { - throw NetworkException( - exceptionMessage, - underlyingException: 'SignedOutException', - ); - }; + test( + 'Should handle unauthorized AmplifyException - SignedOutException', + () async { + String exceptionMessage = 'API Exception'; + String payloadJson = + '{"errors":[{"message":"Unauthorized - API Exception - SignedOutException"}]}'; + + mockAPIPlugin.queryMethod = (GraphQLRequest mockRequest) { + throw NetworkException( + exceptionMessage, + underlyingException: 'SignedOutException', + ); + }; - NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); + NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); - NativeGraphQLResponse response = await nativeAmplifyApi.query(request); - expect(response.payloadJson, payloadJson); - }); + NativeGraphQLResponse response = await nativeAmplifyApi.query( + request, + ); + expect(response.payloadJson, payloadJson); + }, + ); - test('Should handle unauthorized AmplifyException - Unauthrorized', - () async { + test('Should handle unauthorized AmplifyException - Unauthrorized', () async { String exceptionMessage = 'Not Authorized to access onDeletePrivateNote on type Subscription'; String payloadJson = @@ -276,9 +266,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); NativeGraphQLResponse response = await nativeAmplifyApi.query(request); expect(response.payloadJson, payloadJson); @@ -302,10 +290,7 @@ void main() async { return GraphQLOperation( CancelableOperation>.fromValue( - GraphQLResponse( - data: null as T?, - errors: [], - ), + GraphQLResponse(data: null as T?, errors: []), ), ); }; @@ -395,10 +380,7 @@ void main() async { return GraphQLOperation( CancelableOperation>.fromValue( - GraphQLResponse( - data: data as T?, - errors: [], - ), + GraphQLResponse(data: data as T?, errors: []), ), ); }; @@ -422,39 +404,38 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); NativeGraphQLResponse response = await nativeAmplifyApi.mutate(request); expect(response.payloadJson, payloadJson); }); - test('Should handle unauthorized AmplifyException - SignedOutException', - () async { - String exceptionMessage = 'API Exception'; - String payloadJson = - '{"errors":[{"message":"Unauthorized - API Exception - SignedOutException"}]}'; - - mockAPIPlugin.mutateMethod = (GraphQLRequest mockRequest) { - throw NetworkException( - exceptionMessage, - underlyingException: 'SignedOutException', - ); - }; + test( + 'Should handle unauthorized AmplifyException - SignedOutException', + () async { + String exceptionMessage = 'API Exception'; + String payloadJson = + '{"errors":[{"message":"Unauthorized - API Exception - SignedOutException"}]}'; + + mockAPIPlugin.mutateMethod = (GraphQLRequest mockRequest) { + throw NetworkException( + exceptionMessage, + underlyingException: 'SignedOutException', + ); + }; - NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); + NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); - NativeGraphQLResponse response = await nativeAmplifyApi.mutate(request); - expect(response.payloadJson, payloadJson); - }); + NativeGraphQLResponse response = await nativeAmplifyApi.mutate( + request, + ); + expect(response.payloadJson, payloadJson); + }, + ); - test('Should handle unauthorized AmplifyException - Unauthrorized', - () async { + test('Should handle unauthorized AmplifyException - Unauthrorized', () async { String exceptionMessage = 'Not Authorized to access onDeletePrivateNote on type Subscription'; String payloadJson = @@ -469,9 +450,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); NativeGraphQLResponse response = await nativeAmplifyApi.mutate(request); expect(response.payloadJson, payloadJson); @@ -503,8 +482,8 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); NativeGraphQLRequest request = NativeGraphQLRequest(document: document); - NativeGraphQLSubscriptionResponse response = - await nativeAmplifyApi.subscribe(request); + NativeGraphQLSubscriptionResponse response = await nativeAmplifyApi + .subscribe(request); expect(response.payloadJson, null); expect(response.subscriptionId.length, greaterThan(0)); @@ -554,8 +533,8 @@ void main() async { decodePath: decodePath, options: options, ); - NativeGraphQLSubscriptionResponse response = - await nativeAmplifyApi.subscribe(request); + NativeGraphQLSubscriptionResponse response = await nativeAmplifyApi + .subscribe(request); expect(response.payloadJson, null); expect(response.subscriptionId.length, greaterThan(0)); @@ -573,8 +552,10 @@ void main() async { variablesJson: invalidJson, ); - expect(() async => await nativeAmplifyApi.subscribe(request), - throwsA(TypeMatcher())); + expect( + () async => await nativeAmplifyApi.subscribe(request), + throwsA(TypeMatcher()), + ); }); test('Should handle API exception', () async { @@ -589,15 +570,14 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); expect( () async => await nativeAmplifyApi.subscribe(request), throwsA( predicate( - (e) => e is NetworkException && e.message == 'API Exception'), + (e) => e is NetworkException && e.message == 'API Exception', + ), ), ); }); @@ -616,9 +596,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - NativeGraphQLRequest request = NativeGraphQLRequest( - document: '', - ); + NativeGraphQLRequest request = NativeGraphQLRequest(document: ''); await nativeAmplifyApi.subscribe(request); @@ -660,9 +638,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - await nativeAmplifyApi.subscribe( - NativeGraphQLRequest(document: ''), - ); + await nativeAmplifyApi.subscribe(NativeGraphQLRequest(document: '')); binding.defaultBinaryMessenger.setMockDecodedMessageHandler( channel, @@ -685,10 +661,7 @@ void main() async { expect(responseController, isNotNull); expect( () => responseController?.add( - GraphQLResponse( - data: data, - errors: [], - ), + GraphQLResponse(data: data, errors: []), ), returnsNormally, ); @@ -714,9 +687,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - await nativeAmplifyApi.subscribe( - NativeGraphQLRequest(document: ''), - ); + await nativeAmplifyApi.subscribe(NativeGraphQLRequest(document: '')); binding.defaultBinaryMessenger.setMockDecodedMessageHandler( channel, @@ -768,9 +739,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - await nativeAmplifyApi.subscribe( - NativeGraphQLRequest(document: ''), - ); + await nativeAmplifyApi.subscribe(NativeGraphQLRequest(document: '')); binding.defaultBinaryMessenger.setMockDecodedMessageHandler( channel, @@ -793,10 +762,7 @@ void main() async { expect(responseController, isNotNull); expect( () => responseController?.add( - GraphQLResponse( - data: data, - errors: [], - ), + GraphQLResponse(data: data, errors: []), ), returnsNormally, ); @@ -820,9 +786,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - await nativeAmplifyApi.subscribe( - NativeGraphQLRequest(document: ''), - ); + await nativeAmplifyApi.subscribe(NativeGraphQLRequest(document: '')); binding.defaultBinaryMessenger.setMockDecodedMessageHandler( channel, @@ -863,9 +827,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); - await nativeAmplifyApi.subscribe( - NativeGraphQLRequest(document: ''), - ); + await nativeAmplifyApi.subscribe(NativeGraphQLRequest(document: '')); binding.defaultBinaryMessenger.setMockDecodedMessageHandler( channel, @@ -886,10 +848,7 @@ void main() async { ); expect(responseController, isNotNull); - expect( - () => responseController?.close(), - returnsNormally, - ); + expect(() => responseController?.close(), returnsNormally); }); group('Unubscribe', () { @@ -905,9 +864,7 @@ void main() async { NativeAmplifyApi nativeAmplifyApi = NativeAmplifyApi({}); var response = await nativeAmplifyApi.subscribe( - NativeGraphQLRequest( - document: '', - ), + NativeGraphQLRequest(document: ''), ); await nativeAmplifyApi.unsubscribe(response.subscriptionId); @@ -937,13 +894,9 @@ class MockAPIPlugin extends APIPluginInterface { GraphQLOperation Function(GraphQLRequest)? queryMethod; GraphQLOperation Function(GraphQLRequest)? mutateMethod; Stream> Function(GraphQLRequest, void Function()?)? - subscribeMethod; + subscribeMethod; - MockAPIPlugin({ - this.queryMethod, - this.mutateMethod, - this.subscribeMethod, - }); + MockAPIPlugin({this.queryMethod, this.mutateMethod, this.subscribeMethod}); void clear() { queryMethod = null; diff --git a/packages/amplify_datastore/test/observe_query_executor_test.dart b/packages/amplify_datastore/test/observe_query_executor_test.dart index 9d13d77ebe..188e45a99a 100644 --- a/packages/amplify_datastore/test/observe_query_executor_test.dart +++ b/packages/amplify_datastore/test/observe_query_executor_test.dart @@ -12,9 +12,7 @@ import 'package:flutter_test/flutter_test.dart'; var syncQueriesStartedEvent = DataStoreHubEvent( 'syncQueriesStarted', type: DataStoreHubEventType.syncQueriesStarted, - payload: SyncQueriesStartedEvent({ - "models": "[\"Blog\"]", - }), + payload: SyncQueriesStartedEvent({"models": "[\"Blog\"]"}), ); var modelSyncEvent = DataStoreHubEvent( @@ -32,8 +30,10 @@ var modelSyncEvent = DataStoreHubEvent( void main() { Blog initialBlog = Blog(name: 'initial blog'); - List syncedBlogs = - List.generate(10, (index) => Blog(name: 'synced blog $index')); + List syncedBlogs = List.generate( + 10, + (index) => Blog(name: 'synced blog $index'), + ); group('ObserveQueryExecutor', () { Future> query( ModelType modelType, { @@ -41,8 +41,9 @@ void main() { QueryPagination? pagination, List? sortBy, }) { - return Future.delayed(Duration(milliseconds: 100)) - .then((value) => [initialBlog as T]); + return Future.delayed( + Duration(milliseconds: 100), + ).then((value) => [initialBlog as T]); } Stream> observe( @@ -61,17 +62,19 @@ void main() { late Stream eventStream; setUp(() { - eventStream = Stream.periodic( - Duration(milliseconds: 1), - (value) { - if (value == 10) { - return syncQueriesStartedEvent; - } else if (value == 4500) { - return modelSyncEvent; - } - return null; - }, - ).where((event) => event is DataStoreHubEvent).cast(); + eventStream = + Stream.periodic(Duration(milliseconds: 1), ( + value, + ) { + if (value == 10) { + return syncQueriesStartedEvent; + } else if (value == 4500) { + return modelSyncEvent; + } + return null; + }) + .where((event) => event is DataStoreHubEvent) + .cast(); }); test('should combine the data from observe, query, and modelSync', () { @@ -87,11 +90,13 @@ void main() { throttleOptions: ObserveQueryThrottleOptions.none(), ); - Stream observeQueryStatus = - observeQuery.map((event) => event.isSynced); + Stream observeQueryStatus = observeQuery.map( + (event) => event.isSynced, + ); - Stream> observeQueryItems = - observeQuery.map((event) => event.items); + Stream> observeQueryItems = observeQuery.map( + (event) => event.items, + ); expect( observeQueryStatus, @@ -104,8 +109,12 @@ void main() { orderedEquals([initialBlog]), orderedEquals([initialBlog, syncedBlogs[0]]), orderedEquals([initialBlog, syncedBlogs[0], syncedBlogs[1]]), - orderedEquals( - [initialBlog, syncedBlogs[0], syncedBlogs[1], syncedBlogs[2]]), + orderedEquals([ + initialBlog, + syncedBlogs[0], + syncedBlogs[1], + syncedBlogs[2], + ]), ]), ); @@ -125,22 +134,17 @@ void main() { modelType: Blog.classType, ); - Stream> observeQueryItems = - observeQuery.map((event) => event.items); + Stream> observeQueryItems = observeQuery.map( + (event) => event.items, + ); expect( observeQueryItems, emitsInOrder([ // initial query at 100 ms - orderedEquals([ - initialBlog, - ]), + orderedEquals([initialBlog]), // + 2 events after 2s throttle - orderedEquals([ - initialBlog, - syncedBlogs[0], - syncedBlogs[1], - ]), + orderedEquals([initialBlog, syncedBlogs[0], syncedBlogs[1]]), // + 2 events after 2s throttle orderedEquals([ initialBlog, @@ -197,14 +201,12 @@ void main() { modelType: Blog.classType, ); - Stream observeQueryStatus = - observeQuery.map((event) => event.isSynced); - - expect( - observeQueryStatus, - emitsInOrder([true]), + Stream observeQueryStatus = observeQuery.map( + (event) => event.isSynced, ); + expect(observeQueryStatus, emitsInOrder([true])); + async.elapse(Duration(seconds: 10)); }); }); diff --git a/packages/amplify_datastore/test/outbox_mutation_event_test.dart b/packages/amplify_datastore/test/outbox_mutation_event_test.dart index a3247762b2..0e220d7a9e 100644 --- a/packages/amplify_datastore/test/outbox_mutation_event_test.dart +++ b/packages/amplify_datastore/test/outbox_mutation_event_test.dart @@ -44,10 +44,7 @@ void main() async { var enqueuedHubEventElement = outboxMutationEnqueuedEvent.element; test('is HubEventElement', () { - expect( - enqueuedHubEventElement, - isA(), - ); + expect(enqueuedHubEventElement, isA()); expect( enqueuedHubEventElement, isNot(isA()), @@ -70,8 +67,9 @@ void main() async { group('fromMap', () { test('all fields', () { - var processedHubEventElement = outboxMutationProcessedEvent.element - as HubEventElementWithMetadata; + var processedHubEventElement = + outboxMutationProcessedEvent.element + as HubEventElementWithMetadata; expect( processedHubEventElement.model, expectedProcessedHubEvent.model, @@ -92,15 +90,13 @@ void main() async { test('_deleted = null', () { var outboxMutationProcessedEvent = OutboxMutationEvent( - { - ...outboxMutationProcessedEventJson, - '_deleted': null, - }, + {...outboxMutationProcessedEventJson, '_deleted': null}, modelProvider, 'outboxMutationProcessed', ); - var processedHubEventElement = outboxMutationProcessedEvent.element - as HubEventElementWithMetadata; + var processedHubEventElement = + outboxMutationProcessedEvent.element + as HubEventElementWithMetadata; expect(processedHubEventElement.deleted, false); }); }); diff --git a/packages/amplify_datastore/test/query_pagination_test.dart b/packages/amplify_datastore/test/query_pagination_test.dart index a7aa531989..531cbc6162 100644 --- a/packages/amplify_datastore/test/query_pagination_test.dart +++ b/packages/amplify_datastore/test/query_pagination_test.dart @@ -22,17 +22,23 @@ void main() { } test('when providing custom page and limit', () async { - expect(QueryPagination(page: 3, limit: 200).serializeAsMap(), - await getJsonFromFile('custom_page_and_limit.json')); + expect( + QueryPagination(page: 3, limit: 200).serializeAsMap(), + await getJsonFromFile('custom_page_and_limit.json'), + ); }); test('when only need first page', () async { - expect(QueryPagination.firstPage().serializeAsMap(), - await getJsonFromFile('first_page.json')); + expect( + QueryPagination.firstPage().serializeAsMap(), + await getJsonFromFile('first_page.json'), + ); }); test('when only need first result', () async { - expect(QueryPagination.firstResult().serializeAsMap(), - await getJsonFromFile('first_result.json')); + expect( + QueryPagination.firstResult().serializeAsMap(), + await getJsonFromFile('first_result.json'), + ); }); } diff --git a/packages/amplify_datastore/test/query_predicate_test.dart b/packages/amplify_datastore/test/query_predicate_test.dart index 7f0ae9c07b..1f68fc0061 100644 --- a/packages/amplify_datastore/test/query_predicate_test.dart +++ b/packages/amplify_datastore/test/query_predicate_test.dart @@ -24,13 +24,16 @@ void main() { } test('when id not equals', () async { - expect(Post.ID.ne("123").serializeAsMap(), - await getJsonFromFile('id_not_equals.json')); + expect( + Post.ID.ne("123").serializeAsMap(), + await getJsonFromFile('id_not_equals.json'), + ); }); test('bad model id field naming backwards compatibility', () async { - QueryPredicate testPredicateWithBadIdFiledNaming = - QueryField(fieldName: 'blog.id').ne('123'); + QueryPredicate testPredicateWithBadIdFiledNaming = QueryField( + fieldName: 'blog.id', + ).ne('123'); expect( testPredicateWithBadIdFiledNaming.serializeAsMap(), await getJsonFromFile('id_not_equals.json'), @@ -38,34 +41,45 @@ void main() { }); test('when rating greater or equal', () async { - expect(Post.RATING.ge(4).serializeAsMap(), - await getJsonFromFile('rating_greater_or_equal.json')); - expect((Post.RATING >= 4).serializeAsMap(), - await getJsonFromFile('rating_greater_or_equal.json')); - }); - - test('when rating less or equal AND \(id contains or title begins with\)', - () async { - QueryPredicate testPredicate = Post.RATING - .le(4) - .and(Post.ID.contains("abc").or(Post.TITLE.beginsWith("def"))); - - expect(testPredicate.serializeAsMap(), - await getJsonFromFile('complex_nested.json')); + expect( + Post.RATING.ge(4).serializeAsMap(), + await getJsonFromFile('rating_greater_or_equal.json'), + ); + expect( + (Post.RATING >= 4).serializeAsMap(), + await getJsonFromFile('rating_greater_or_equal.json'), + ); }); test( - 'when rating between AND id contains AND title begins_with AND created equals', - () async { - QueryPredicate testPredicate = Post.RATING - .between(1, 4) - .and(Post.ID.contains("abc")) - .and(Post.TITLE.beginsWith("def")) - .and(Post.CREATED.eq("2020-02-20T20:20:20-08:00")); + 'when rating less or equal AND \(id contains or title begins with\)', + () async { + QueryPredicate testPredicate = Post.RATING + .le(4) + .and(Post.ID.contains("abc").or(Post.TITLE.beginsWith("def"))); + + expect( + testPredicate.serializeAsMap(), + await getJsonFromFile('complex_nested.json'), + ); + }, + ); - expect(testPredicate.serializeAsMap(), - await getJsonFromFile('group_with_only_and.json')); - }); + test( + 'when rating between AND id contains AND title begins_with AND created equals', + () async { + QueryPredicate testPredicate = Post.RATING + .between(1, 4) + .and(Post.ID.contains("abc")) + .and(Post.TITLE.beginsWith("def")) + .and(Post.CREATED.eq("2020-02-20T20:20:20-08:00")); + + expect( + testPredicate.serializeAsMap(), + await getJsonFromFile('group_with_only_and.json'), + ); + }, + ); test('when rating lt AND id eq OR title contains', () async { QueryPredicate testPredicate = Post.RATING @@ -73,33 +87,45 @@ void main() { .and(Post.ID.contains("abc")) .or(Post.TITLE.contains("def")); - expect(testPredicate.serializeAsMap(), - await getJsonFromFile('group_mixed_and_or.json')); + expect( + testPredicate.serializeAsMap(), + await getJsonFromFile('group_mixed_and_or.json'), + ); }); test('when rating gt but not eq', () async { - QueryPredicate testPredicate = - Post.RATING.gt(4).and(not(Post.RATING.eq(1))); + QueryPredicate testPredicate = Post.RATING + .gt(4) + .and(not(Post.RATING.eq(1))); - expect(testPredicate.serializeAsMap(), - await getJsonFromFile('mixed_with_not.json')); + expect( + testPredicate.serializeAsMap(), + await getJsonFromFile('mixed_with_not.json'), + ); }); test('when negate complex predicate', () async { - QueryPredicate testPredicate = not(Post.RATING - .eq(1) - .and(Post.RATING.eq(4).or(Post.TITLE.contains("crap")))); + QueryPredicate testPredicate = not( + Post.RATING + .eq(1) + .and(Post.RATING.eq(4).or(Post.TITLE.contains("crap"))), + ); - expect(testPredicate.serializeAsMap(), - await getJsonFromFile('negate_complex_predicate.json')); + expect( + testPredicate.serializeAsMap(), + await getJsonFromFile('negate_complex_predicate.json'), + ); }); test('when operands are bool and double', () async { - QueryPredicate testPredicate = - Post.RATING.eq(1.3).and(Post.CREATED.eq(true)); + QueryPredicate testPredicate = Post.RATING + .eq(1.3) + .and(Post.CREATED.eq(true)); - expect(testPredicate.serializeAsMap(), - await getJsonFromFile('bool_and_double_operands.json')); + expect( + testPredicate.serializeAsMap(), + await getJsonFromFile('bool_and_double_operands.json'), + ); }); test('when value is a temporal type', () async { @@ -107,8 +133,10 @@ void main() { TemporalDateTime(DateTime.utc(2020, 01, 01)), ); - expect(testPredicate.serializeAsMap(), - await getJsonFromFile('temporal_predicate.json')); + expect( + testPredicate.serializeAsMap(), + await getJsonFromFile('temporal_predicate.json'), + ); }); test('when query by model identifier with eq()', () async { @@ -136,8 +164,10 @@ void main() { ); final serialized = testPredicate.serializeAsMap(); - expect(serialized, - await getJsonFromFile('model_identifier_not_equals.json')); + expect( + serialized, + await getJsonFromFile('model_identifier_not_equals.json'), + ); }); test('when query by model identifier with not(eq())', () async { @@ -153,8 +183,10 @@ void main() { ); final serialized = testPredicate.serializeAsMap(); - expect(serialized, - await getJsonFromFile('model_identifier_group_not_equals.json')); + expect( + serialized, + await getJsonFromFile('model_identifier_group_not_equals.json'), + ); }); test('when query by model identifier with not(ne())', () async { @@ -170,8 +202,10 @@ void main() { ); final serialized = testPredicate.serializeAsMap(); - expect(serialized, - await getJsonFromFile('model_identifier_group_equals.json')); + expect( + serialized, + await getJsonFromFile('model_identifier_group_equals.json'), + ); }); }); @@ -197,10 +231,7 @@ void main() { created: TemporalDateTime(DateTime(2021, 01, 01, 12, 00)), ); - Post post4 = Post( - title: 'post four', - rating: 1000, - ); + Post post4 = Post(title: 'post four', rating: 1000); StringListTypeModel stringListTypeModel1 = StringListTypeModel( value: ['abc'], @@ -322,9 +353,9 @@ void main() { }); test('Temporal type', () { - QueryPredicate testPredicate = Post.CREATED.lt(TemporalDateTime( - DateTime(2020, 01, 01, 12, 00), - )); + QueryPredicate testPredicate = Post.CREATED.lt( + TemporalDateTime(DateTime(2020, 01, 01, 12, 00)), + ); expect(testPredicate.evaluate(post1), isTrue); expect(testPredicate.evaluate(post2), isFalse); }); diff --git a/packages/amplify_datastore/test/query_sort_test.dart b/packages/amplify_datastore/test/query_sort_test.dart index 61362292b8..c949d85a1c 100644 --- a/packages/amplify_datastore/test/query_sort_test.dart +++ b/packages/amplify_datastore/test/query_sort_test.dart @@ -27,23 +27,23 @@ void main() { } test('when sorting by Id ascending', () async { - expect([Post.ID.ascending().serializeAsMap()], - await getJsonFromFile('sort_by_id_ascending.json')); + expect([ + Post.ID.ascending().serializeAsMap(), + ], await getJsonFromFile('sort_by_id_ascending.json')); }); test('bad model id field naming backwards compatibility', () async { QuerySortBy testPredicateWithBadIdFiledNaming = QueryField(fieldName: 'blog.id').ascending(); - expect( - [testPredicateWithBadIdFiledNaming.serializeAsMap()], - await getJsonFromFile('sort_by_id_ascending.json'), - ); + expect([ + testPredicateWithBadIdFiledNaming.serializeAsMap(), + ], await getJsonFromFile('sort_by_id_ascending.json')); }); test('when sorting by Id ascending and then rating descending', () async { expect([ Post.ID.ascending().serializeAsMap(), - Post.RATING.descending().serializeAsMap() + Post.RATING.descending().serializeAsMap(), ], await getJsonFromFile('multiple_sorting.json')); }); diff --git a/packages/amplify_datastore/test/resources/fake_stream_controller.dart b/packages/amplify_datastore/test/resources/fake_stream_controller.dart index 3307f0af93..36abd2fa51 100644 --- a/packages/amplify_datastore/test/resources/fake_stream_controller.dart +++ b/packages/amplify_datastore/test/resources/fake_stream_controller.dart @@ -4,7 +4,9 @@ import 'dart:async'; StreamController fakeEventChannel = StreamController.broadcast( - onListen: () => print('listening'), onCancel: () => print('canceling')); + onListen: () => print('listening'), + onCancel: () => print('canceling'), +); class FakeStreamController { StreamController get thisController { diff --git a/packages/amplify_datastore/test/stream_utils/throttle_test.dart b/packages/amplify_datastore/test/stream_utils/throttle_test.dart index 7d45d9ffff..7b60870d88 100644 --- a/packages/amplify_datastore/test/stream_utils/throttle_test.dart +++ b/packages/amplify_datastore/test/stream_utils/throttle_test.dart @@ -10,25 +10,17 @@ import 'package:flutter_test/flutter_test.dart'; void main() { group('throttleByCountAndTime', () { test('should throttle by count if only count is provided', () { - var stream = Stream.fromIterable( - List.generate(10, (index) => index), - ); + var stream = Stream.fromIterable(List.generate(10, (index) => index)); - var throttledStream = stream.throttleByCountAndTime( - throttleCount: 2, - ); + var throttledStream = stream.throttleByCountAndTime(throttleCount: 2); expect(throttledStream, emitsInOrder([0, 2, 4, 6, 8])); }); test('should not throttle if count is 1', () { - var stream = Stream.fromIterable( - List.generate(5, (index) => index), - ); + var stream = Stream.fromIterable(List.generate(5, (index) => index)); - var throttledStream = stream.throttleByCountAndTime( - throttleCount: 1, - ); + var throttledStream = stream.throttleByCountAndTime(throttleCount: 1); expect(throttledStream, emitsInOrder([0, 1, 2, 3, 4])); }); @@ -67,22 +59,23 @@ void main() { }); test( - 'should emit each event from source if time between events exceeds duration', - () { - fakeAsync((async) { - var stream = Stream.periodic( - Duration(milliseconds: 10), - (int value) => value, - ).take(5); - - var throttledStream = stream.throttleByCountAndTime( - duration: Duration(milliseconds: 5), - ); + 'should emit each event from source if time between events exceeds duration', + () { + fakeAsync((async) { + var stream = Stream.periodic( + Duration(milliseconds: 10), + (int value) => value, + ).take(5); + + var throttledStream = stream.throttleByCountAndTime( + duration: Duration(milliseconds: 5), + ); - expect(throttledStream, emitsInOrder([0, 1, 2, 3, 4])); - async.elapse(Duration(milliseconds: 50)); - }); - }); + expect(throttledStream, emitsInOrder([0, 1, 2, 3, 4])); + async.elapse(Duration(milliseconds: 50)); + }); + }, + ); test('should throttle by duration if duration is reached before count', () { fakeAsync((async) { @@ -131,8 +124,10 @@ void main() { throttleIf: (int value) => value > 5 && value <= 20, ); - expect(throttledStream, - emitsInOrder([0, 1, 2, 3, 4, 5, 10, 15, 20, 21, 22, 23])); + expect( + throttledStream, + emitsInOrder([0, 1, 2, 3, 4, 5, 10, 15, 20, 21, 22, 23]), + ); async.elapse(Duration(seconds: 10)); }); }); @@ -175,9 +170,12 @@ void main() { var stream = controller.stream.throttleByCountAndTime( throttleCount: 10, ); - stream.listen((_) => {}, onDone: () { - isDone = true; - }); + stream.listen( + (_) => {}, + onDone: () { + isDone = true; + }, + ); controller.sink.add(1); controller.sink.add(2); await controller.close(); @@ -185,21 +183,23 @@ void main() { } }); - test('multiple listeners all get values if the source is a broadcast', - () { - var values = []; - var values2 = []; - var stream = broadcastController.stream.throttleByCountAndTime( - throttleCount: 1, - ); - stream.listen(values.add); - stream.listen(values2.add); - broadcastController - ..add(1) - ..add(2); - expect(values, [1, 2]); - expect(values2, [1, 2]); - }); + test( + 'multiple listeners all get values if the source is a broadcast', + () { + var values = []; + var values2 = []; + var stream = broadcastController.stream.throttleByCountAndTime( + throttleCount: 1, + ); + stream.listen(values.add); + stream.listen(values2.add); + broadcastController + ..add(1) + ..add(2); + expect(values, [1, 2]); + expect(values2, [1, 2]); + }, + ); }); }); } diff --git a/packages/amplify_datastore_plugin_interface/CHANGELOG.md b/packages/amplify_datastore_plugin_interface/CHANGELOG.md index aa743afde3..a7abc23043 100644 --- a/packages/amplify_datastore_plugin_interface/CHANGELOG.md +++ b/packages/amplify_datastore_plugin_interface/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/amplify_datastore_plugin_interface/pubspec.yaml b/packages/amplify_datastore_plugin_interface/pubspec.yaml index 49d8eca31b..266790b3a6 100644 --- a/packages/amplify_datastore_plugin_interface/pubspec.yaml +++ b/packages/amplify_datastore_plugin_interface/pubspec.yaml @@ -1,20 +1,20 @@ name: amplify_datastore_plugin_interface description: The platform interface for the DataStore module of Amplify Flutter. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/amplify_datastore_plugin_interface issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: - amplify_core: ">=2.6.1 <2.7.0" + amplify_core: ">=2.6.2 <2.7.0" collection: ^1.15.0 flutter: sdk: flutter - meta: ^1.7.0 + meta: ^1.16.0 dev_dependencies: amplify_test: diff --git a/packages/amplify_datastore_plugin_interface/test/amplify_custom_type_schema_test.dart b/packages/amplify_datastore_plugin_interface/test/amplify_custom_type_schema_test.dart index 0f13e54086..2cb5b0a7d7 100644 --- a/packages/amplify_datastore_plugin_interface/test/amplify_custom_type_schema_test.dart +++ b/packages/amplify_datastore_plugin_interface/test/amplify_custom_type_schema_test.dart @@ -29,58 +29,73 @@ import 'package:flutter_test/flutter_test.dart'; void main() { final expectedContactFields = { 'email': ModelField( - name: 'email', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'email', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), 'phone': ModelField( - name: 'phone', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'Phone')), + name: 'phone', + isRequired: true, + type: ModelFieldType( + ModelFieldTypeEnum.embedded, + ofCustomTypeName: 'Phone', + ), + ), 'mailingAddresses': ModelField( - name: 'mailingAddresses', - isRequired: false, - isArray: true, - type: ModelFieldType(ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'Address')), + name: 'mailingAddresses', + isRequired: false, + isArray: true, + type: ModelFieldType( + ModelFieldTypeEnum.embeddedCollection, + ofCustomTypeName: 'Address', + ), + ), }; final expectedPhoneFields = { 'country': ModelField( - name: 'country', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'country', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), 'area': ModelField( - name: 'area', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'area', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), 'number': ModelField( - name: 'number', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'number', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), }; final expectedAddressFields = { 'line1': ModelField( - name: 'line1', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'line1', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), 'line2': ModelField( - name: 'line2', - isRequired: false, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'line2', + isRequired: false, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), 'city': ModelField( - name: 'city', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'city', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), 'state': ModelField( - name: 'state', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'state', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), 'postalCode': ModelField( - name: 'postalCode', - isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.string)), + name: 'postalCode', + isRequired: true, + type: ModelFieldType(ModelFieldTypeEnum.string), + ), }; test('Generated Dart class Contact should provide correct schema', () { diff --git a/packages/amplify_datastore_plugin_interface/test/amplify_modelType_test.dart b/packages/amplify_datastore_plugin_interface/test/amplify_modelType_test.dart index 732fc11b5d..0013c610af 100644 --- a/packages/amplify_datastore_plugin_interface/test/amplify_modelType_test.dart +++ b/packages/amplify_datastore_plugin_interface/test/amplify_modelType_test.dart @@ -5,38 +5,40 @@ import 'package:amplify_test/test_models/ModelProvider.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { - test('Comment.classType generates proper json from serializedMap modelschema', - () async { - Map inputMap = { - "id": "2", - "modelName": "Comment", - "serializedData": { + test( + 'Comment.classType generates proper json from serializedMap modelschema', + () async { + Map inputMap = { + "id": "2", + "modelName": "Comment", + "serializedData": { + "id": "2", + "content": "Comment content", + "post": { + "id": "1", + "modelName": "", + "serializedData": {"id": "1"}, + }, + }, + }; + + expect(Comment.classType.fromSerializedMap(inputMap).toJson(), { "id": "2", - "content": "Comment content", "post": { "id": "1", - "modelName": "", - "serializedData": {"id": "1"} - } - } - }; - - expect(Comment.classType.fromSerializedMap(inputMap).toJson(), { - "id": "2", - "post": { - "id": "1", - "title": null, - "rating": null, - "created": null, - "likeCount": null, - "blog": null, - "comments": null, + "title": null, + "rating": null, + "created": null, + "likeCount": null, + "blog": null, + "comments": null, + 'createdAt': null, + 'updatedAt': null, + }, + "content": "Comment content", 'createdAt': null, - 'updatedAt': null - }, - "content": "Comment content", - 'createdAt': null, - 'updatedAt': null - }); - }); + 'updatedAt': null, + }); + }, + ); } diff --git a/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_test.dart b/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_test.dart index 43aab51211..80c3521d65 100644 --- a/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_test.dart +++ b/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_test.dart @@ -31,38 +31,48 @@ void main() { expect(blogSchema.authRules, null); expect( - blogSchema.fields!["id"], - ModelField( - name: "id", - type: const ModelFieldType(ModelFieldTypeEnum.string), - isRequired: true, - isArray: false)); + blogSchema.fields!["id"], + ModelField( + name: "id", + type: const ModelFieldType(ModelFieldTypeEnum.string), + isRequired: true, + isArray: false, + ), + ); expect( - blogSchema.fields!["name"], - ModelField( - name: "name", - type: const ModelFieldType(ModelFieldTypeEnum.string), - isRequired: true, - isArray: false)); + blogSchema.fields!["name"], + ModelField( + name: "name", + type: const ModelFieldType(ModelFieldTypeEnum.string), + isRequired: true, + isArray: false, + ), + ); expect( - blogSchema.fields!["posts"], - ModelField( - name: "posts", - type: const ModelFieldType(ModelFieldTypeEnum.collection, - ofModelName: "Post"), - isRequired: false, - isArray: true, - association: ModelAssociation( - associationType: ModelAssociationEnum.HasMany, - associatedName: Post.BLOG.fieldName, - associatedType: Post.BLOG.fieldType!.ofModelName))); + blogSchema.fields!["posts"], + ModelField( + name: "posts", + type: const ModelFieldType( + ModelFieldTypeEnum.collection, + ofModelName: "Post", + ), + isRequired: false, + isArray: true, + association: ModelAssociation( + associationType: ModelAssociationEnum.HasMany, + associatedName: Post.BLOG.fieldName, + associatedType: Post.BLOG.fieldType!.ofModelName, + ), + ), + ); }); - test('Comment codegen model generates modelschema with proper fields', - () async { - /* + test( + 'Comment codegen model generates modelschema with proper fields', + () async { + /* type Comment @model { id: ID! postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) @@ -71,39 +81,46 @@ void main() { } */ - ModelSchema commentSchema = Comment.schema; + ModelSchema commentSchema = Comment.schema; - expect(commentSchema.name, "Comment"); - expect(commentSchema.pluralName, "Comments"); - expect(commentSchema.authRules, null); + expect(commentSchema.name, "Comment"); + expect(commentSchema.pluralName, "Comments"); + expect(commentSchema.authRules, null); - expect( + expect( commentSchema.fields!["id"], ModelField( - name: "id", - type: const ModelFieldType(ModelFieldTypeEnum.string), - isRequired: true, - isArray: false)); + name: "id", + type: const ModelFieldType(ModelFieldTypeEnum.string), + isRequired: true, + isArray: false, + ), + ); - expect( + expect( commentSchema.fields!["post"], ModelField( - name: "post", - type: ModelFieldType(ModelFieldTypeEnum.model, ofModelName: "Post"), - isRequired: false, - isArray: false, - association: ModelAssociation( - associationType: ModelAssociationEnum.BelongsTo, - ))); + name: "post", + type: ModelFieldType(ModelFieldTypeEnum.model, ofModelName: "Post"), + isRequired: false, + isArray: false, + association: ModelAssociation( + associationType: ModelAssociationEnum.BelongsTo, + ), + ), + ); - expect( + expect( commentSchema.fields!["content"], ModelField( - name: "content", - type: ModelFieldType(ModelFieldTypeEnum.string), - isRequired: true, - isArray: false)); - }); + name: "content", + type: ModelFieldType(ModelFieldTypeEnum.string), + isRequired: true, + isArray: false, + ), + ); + }, + ); test('Post codegen model generates modelschema with proper fields', () async { /* @@ -126,36 +143,43 @@ void main() { expect(postSchema.authRules, null); expect( - postSchema.fields!["id"], - ModelField( - name: "id", - type: const ModelFieldType(ModelFieldTypeEnum.string), - isRequired: true, - isArray: false)); + postSchema.fields!["id"], + ModelField( + name: "id", + type: const ModelFieldType(ModelFieldTypeEnum.string), + isRequired: true, + isArray: false, + ), + ); expect( - postSchema.fields!["title"], - ModelField( - name: "title", - type: ModelFieldType(ModelFieldTypeEnum.string), - isRequired: true, - isArray: false)); + postSchema.fields!["title"], + ModelField( + name: "title", + type: ModelFieldType(ModelFieldTypeEnum.string), + isRequired: true, + isArray: false, + ), + ); expect( - postSchema.fields!["blog"], - ModelField( - name: "blog", - type: ModelFieldType(ModelFieldTypeEnum.model, ofModelName: "Blog"), - isRequired: false, - isArray: false, - association: ModelAssociation( - associationType: ModelAssociationEnum.BelongsTo, - ))); + postSchema.fields!["blog"], + ModelField( + name: "blog", + type: ModelFieldType(ModelFieldTypeEnum.model, ofModelName: "Blog"), + isRequired: false, + isArray: false, + association: ModelAssociation( + associationType: ModelAssociationEnum.BelongsTo, + ), + ), + ); }); - test('PostAuthComplex codegen model generates modelschema with proper fields', - () async { - /* + test( + 'PostAuthComplex codegen model generates modelschema with proper fields', + () async { + /* type PostWithAuthRules @model @auth( @@ -173,12 +197,12 @@ void main() { } */ - ModelSchema postSchema = PostWithAuthRules.schema; + ModelSchema postSchema = PostWithAuthRules.schema; - expect(postSchema.name, "PostWithAuthRules"); - expect(postSchema.pluralName, "PostWithAuthRules"); - expect(postSchema.authRules, [ - AuthRule( + expect(postSchema.name, "PostWithAuthRules"); + expect(postSchema.pluralName, "PostWithAuthRules"); + expect(postSchema.authRules, [ + AuthRule( authStrategy: AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -187,15 +211,17 @@ void main() { ModelOperation.CREATE, ModelOperation.UPDATE, ModelOperation.DELETE, - ModelOperation.READ - ]) - ]); - }); + ModelOperation.READ, + ], + ), + ]); + }, + ); test( - 'Generated dart class Person should provide correct schema with nested CustomType', - () { - /* + 'Generated dart class Person should provide correct schema with nested CustomType', + () { + /* type Person @model { id: ID! name: String! @@ -215,51 +241,62 @@ void main() { mailingAddresses: [Address] } */ - final expectedPersonFields = { - 'id': ModelField( + final expectedPersonFields = { + 'id': ModelField( name: "id", type: const ModelFieldType(ModelFieldTypeEnum.string), isRequired: true, - isArray: false), - 'name': ModelField( + isArray: false, + ), + 'name': ModelField( name: "name", type: const ModelFieldType(ModelFieldTypeEnum.string), isRequired: true, - isArray: false), - 'contact': ModelField( + isArray: false, + ), + 'contact': ModelField( name: 'contact', isRequired: true, - type: ModelFieldType(ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'Contact')), - 'propertiesAddresses': ModelField( + type: ModelFieldType( + ModelFieldTypeEnum.embedded, + ofCustomTypeName: 'Contact', + ), + ), + 'propertiesAddresses': ModelField( name: 'propertiesAddresses', isRequired: false, isArray: true, - type: ModelFieldType(ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'Address')), - 'createdAt': ModelField( + type: ModelFieldType( + ModelFieldTypeEnum.embeddedCollection, + ofCustomTypeName: 'Address', + ), + ), + 'createdAt': ModelField( name: 'createdAt', isRequired: false, isArray: false, isReadOnly: true, - type: ModelFieldType(ModelFieldTypeEnum.dateTime)), - 'updatedAt': ModelField( + type: ModelFieldType(ModelFieldTypeEnum.dateTime), + ), + 'updatedAt': ModelField( name: 'updatedAt', isRequired: false, isArray: false, isReadOnly: true, - type: ModelFieldType(ModelFieldTypeEnum.dateTime)) - }; - final personSchema = Person.schema; - expect(personSchema.name, 'Person'); - expect(personSchema.pluralName, 'People'); - expect(personSchema.authRules, null); - expect(personSchema.fields is Map, true); + type: ModelFieldType(ModelFieldTypeEnum.dateTime), + ), + }; + final personSchema = Person.schema; + expect(personSchema.name, 'Person'); + expect(personSchema.pluralName, 'People'); + expect(personSchema.authRules, null); + expect(personSchema.fields is Map, true); - final fields = personSchema.fields!; + final fields = personSchema.fields!; - fields.forEach((fieldName, field) { - expect(field, expectedPersonFields[fieldName]); - }); - }); + fields.forEach((fieldName, field) { + expect(field, expectedPersonFields[fieldName]); + }); + }, + ); } diff --git a/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_to_map_test.dart b/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_to_map_test.dart index d0ada4b8e3..d2b1254481 100644 --- a/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_to_map_test.dart +++ b/packages/amplify_datastore_plugin_interface/test/amplify_modelschema_to_map_test.dart @@ -16,8 +16,8 @@ void main() { 'indexes': [ { 'name': null, - 'fields': ['id'] - } + 'fields': ['id'], + }, ], 'fields': { 'id': { @@ -39,17 +39,17 @@ void main() { 'type': {'fieldType': 'embedded', 'ofCustomTypeName': 'S3Object'}, 'isRequired': false, 'isArray': false, - 'isReadOnly': false + 'isReadOnly': false, }, 'files': { 'name': 'files', 'type': { 'fieldType': 'embeddedCollection', - 'ofCustomTypeName': 'S3Object' + 'ofCustomTypeName': 'S3Object', }, 'isRequired': false, 'isArray': true, - 'isReadOnly': false + 'isReadOnly': false, }, 'posts': { 'name': "posts", @@ -60,8 +60,8 @@ void main() { 'association': const { 'associationType': 'HasMany', 'associatedName': "blog", - 'associatedType': "Post" - } + 'associatedType': "Post", + }, }, 'createdAt': { 'name': 'createdAt', @@ -69,77 +69,79 @@ void main() { 'isRequired': false, 'isArray': false, // Note that the testing overrides the readonly field createdAt - 'isReadOnly': false + 'isReadOnly': false, }, 'updatedAt': { 'name': 'updatedAt', 'type': {'fieldType': 'dateTime'}, 'isRequired': false, 'isArray': false, - 'isReadOnly': true - } - } + 'isReadOnly': true, + }, + }, }); }); - test('Comment codegen model generates modelschema with proper fields', - () async { - ModelSchema commentSchema = Comment.schema; - Map map = commentSchema.toMap(); + test( + 'Comment codegen model generates modelschema with proper fields', + () async { + ModelSchema commentSchema = Comment.schema; + Map map = commentSchema.toMap(); - expect(map, { - 'name': 'Comment', - 'pluralName': 'Comments', - 'indexes': [ - { - 'name': 'byPost', - 'fields': ['postID', 'content'] - } - ], - 'fields': { - 'id': { - 'name': 'id', - 'type': {'fieldType': 'string'}, - 'isRequired': true, - 'isArray': false, - 'isReadOnly': false, - }, - 'post': { - 'name': 'post', - 'type': {'fieldType': 'model', 'ofModelName': 'Post'}, - 'isRequired': false, - 'isArray': false, - 'isReadOnly': false, - 'association': { - 'associationType': 'BelongsTo', - 'targetNames': ['postID'], - 'associatedType': 'Post' + expect(map, { + 'name': 'Comment', + 'pluralName': 'Comments', + 'indexes': [ + { + 'name': 'byPost', + 'fields': ['postID', 'content'], + }, + ], + 'fields': { + 'id': { + 'name': 'id', + 'type': {'fieldType': 'string'}, + 'isRequired': true, + 'isArray': false, + 'isReadOnly': false, + }, + 'post': { + 'name': 'post', + 'type': {'fieldType': 'model', 'ofModelName': 'Post'}, + 'isRequired': false, + 'isArray': false, + 'isReadOnly': false, + 'association': { + 'associationType': 'BelongsTo', + 'targetNames': ['postID'], + 'associatedType': 'Post', + }, + }, + 'content': { + 'name': 'content', + 'type': {'fieldType': 'string'}, + 'isRequired': true, + 'isArray': false, + 'isReadOnly': false, + }, + 'createdAt': { + 'name': 'createdAt', + 'type': {'fieldType': 'dateTime'}, + 'isRequired': false, + 'isArray': false, + 'isReadOnly': true, + }, + 'updatedAt': { + 'name': 'updatedAt', + 'type': {'fieldType': 'dateTime'}, + 'isRequired': false, + 'isArray': false, + 'isReadOnly': true, }, }, - 'content': { - 'name': 'content', - 'type': {'fieldType': 'string'}, - 'isRequired': true, - 'isArray': false, - 'isReadOnly': false, - }, - 'createdAt': { - 'name': 'createdAt', - 'type': {'fieldType': 'dateTime'}, - 'isRequired': false, - 'isArray': false, - 'isReadOnly': true - }, - 'updatedAt': { - 'name': 'updatedAt', - 'type': {'fieldType': 'dateTime'}, - 'isRequired': false, - 'isArray': false, - 'isReadOnly': true - } - } - }); - }); + }); + }, + ); test('Post codegen model generates modelschema with proper fields', () async { ModelSchema postSchema = Post.schema; @@ -151,8 +153,8 @@ void main() { 'indexes': [ { 'name': 'byBlog', - 'fields': ['blogID'] - } + 'fields': ['blogID'], + }, ], 'fields': { 'id': { @@ -160,35 +162,35 @@ void main() { 'type': {'fieldType': 'string'}, 'isRequired': true, 'isArray': false, - 'isReadOnly': false + 'isReadOnly': false, }, 'title': { 'name': 'title', 'type': {'fieldType': 'string'}, 'isRequired': true, 'isArray': false, - 'isReadOnly': false + 'isReadOnly': false, }, 'rating': { 'name': 'rating', 'type': {'fieldType': 'int'}, 'isRequired': true, 'isArray': false, - 'isReadOnly': false + 'isReadOnly': false, }, 'created': { 'name': 'created', 'type': {'fieldType': 'dateTime'}, 'isRequired': false, 'isArray': false, - 'isReadOnly': false + 'isReadOnly': false, }, 'likeCount': { 'name': 'likeCount', 'type': {'fieldType': 'int'}, 'isRequired': false, 'isArray': false, - 'isReadOnly': false + 'isReadOnly': false, }, 'blog': { 'name': 'blog', @@ -199,8 +201,8 @@ void main() { 'association': { 'associationType': 'BelongsTo', 'targetNames': ['blogID'], - 'associatedType': 'Blog' - } + 'associatedType': 'Blog', + }, }, 'comments': { 'name': 'comments', @@ -211,81 +213,83 @@ void main() { 'association': { 'associationType': 'HasMany', 'associatedName': 'post', - 'associatedType': 'Comment' - } + 'associatedType': 'Comment', + }, }, 'createdAt': { 'name': 'createdAt', 'type': {'fieldType': 'dateTime'}, 'isRequired': false, 'isArray': false, - 'isReadOnly': true + 'isReadOnly': true, }, 'updatedAt': { 'name': 'updatedAt', 'type': {'fieldType': 'dateTime'}, 'isRequired': false, 'isArray': false, - 'isReadOnly': true - } - } + 'isReadOnly': true, + }, + }, }); }); - test('PostAuthComplex codegen model generates modelschema with proper fields', - () async { - ModelSchema postAuthComplexSchema = PostWithAuthRules.schema; - Map map = postAuthComplexSchema.toMap(); + test( + 'PostAuthComplex codegen model generates modelschema with proper fields', + () async { + ModelSchema postAuthComplexSchema = PostWithAuthRules.schema; + Map map = postAuthComplexSchema.toMap(); - expect(map, { - 'name': 'PostWithAuthRules', - 'pluralName': 'PostWithAuthRules', - 'authRules': [ - { - 'authStrategy': 'OWNER', - 'ownerField': 'owner', - 'identityClaim': 'cognito:username', - 'provider': 'USERPOOLS', - 'operations': ['CREATE', 'UPDATE', 'DELETE', 'READ'] - } - ], - 'fields': { - 'id': { - 'name': 'id', - 'type': {'fieldType': 'string'}, - 'isRequired': true, - 'isArray': false, - 'isReadOnly': false, - }, - 'title': { - 'name': 'title', - 'type': {'fieldType': 'string'}, - 'isRequired': true, - 'isArray': false, - 'isReadOnly': false, - }, - 'owner': { - 'name': 'owner', - 'type': {'fieldType': 'string'}, - 'isRequired': false, - 'isArray': false, - 'isReadOnly': false, - }, - 'createdAt': { - 'name': 'createdAt', - 'type': {'fieldType': 'dateTime'}, - 'isRequired': false, - 'isArray': false, - 'isReadOnly': true + expect(map, { + 'name': 'PostWithAuthRules', + 'pluralName': 'PostWithAuthRules', + 'authRules': [ + { + 'authStrategy': 'OWNER', + 'ownerField': 'owner', + 'identityClaim': 'cognito:username', + 'provider': 'USERPOOLS', + 'operations': ['CREATE', 'UPDATE', 'DELETE', 'READ'], + }, + ], + 'fields': { + 'id': { + 'name': 'id', + 'type': {'fieldType': 'string'}, + 'isRequired': true, + 'isArray': false, + 'isReadOnly': false, + }, + 'title': { + 'name': 'title', + 'type': {'fieldType': 'string'}, + 'isRequired': true, + 'isArray': false, + 'isReadOnly': false, + }, + 'owner': { + 'name': 'owner', + 'type': {'fieldType': 'string'}, + 'isRequired': false, + 'isArray': false, + 'isReadOnly': false, + }, + 'createdAt': { + 'name': 'createdAt', + 'type': {'fieldType': 'dateTime'}, + 'isRequired': false, + 'isArray': false, + 'isReadOnly': true, + }, + 'updatedAt': { + 'name': 'updatedAt', + 'type': {'fieldType': 'dateTime'}, + 'isRequired': false, + 'isArray': false, + 'isReadOnly': true, + }, }, - 'updatedAt': { - 'name': 'updatedAt', - 'type': {'fieldType': 'dateTime'}, - 'isRequired': false, - 'isArray': false, - 'isReadOnly': true - } - } - }); - }); + }); + }, + ); } diff --git a/packages/amplify_datastore_plugin_interface/test/model_identifier_test.dart b/packages/amplify_datastore_plugin_interface/test/model_identifier_test.dart index ea3257afa5..2823aedf30 100644 --- a/packages/amplify_datastore_plugin_interface/test/model_identifier_test.dart +++ b/packages/amplify_datastore_plugin_interface/test/model_identifier_test.dart @@ -15,58 +15,65 @@ void main() { var post = Post(id: testId, title: 'test blog', rating: 10); expect(post.modelIdentifier, PostModelIdentifier(id: testId)); expect(post.modelIdentifier.serializeAsList(), [ - {'id': testId} + {'id': testId}, ]); expect(post.modelIdentifier.serializeAsMap(), {'id': testId}); expect(post.modelIdentifier.serializeAsList(), [ - {'id': testId} + {'id': testId}, ]); expect(post.modelIdentifier.serializeAsString(), testId); }); test( - 'modelIdentifier getter of a model with id field as the custom primary key', - () { - // type Blog @model { - // id: ID! @primaryKey - // name: String! - // } - var blog = Blog(id: testId, name: 'test blog'); - expect(blog.modelIdentifier, BlogModelIdentifier(id: testId)); - expect(blog.modelIdentifier.serializeAsMap(), {'id': testId}); - expect(blog.modelIdentifier.serializeAsList(), [ - {'id': testId} - ]); - expect(blog.modelIdentifier.serializeAsString(), testId); - }); + 'modelIdentifier getter of a model with id field as the custom primary key', + () { + // type Blog @model { + // id: ID! @primaryKey + // name: String! + // } + var blog = Blog(id: testId, name: 'test blog'); + expect(blog.modelIdentifier, BlogModelIdentifier(id: testId)); + expect(blog.modelIdentifier.serializeAsMap(), {'id': testId}); + expect(blog.modelIdentifier.serializeAsList(), [ + {'id': testId}, + ]); + expect(blog.modelIdentifier.serializeAsString(), testId); + }, + ); test( - 'modelIdentifier getter of a model with id field as a part of composite custom primary key', - () { - // type Warehouse @model { - // id: ID! @primaryKey(sortKeyFields: ["name", "region"]) - // name: String! - // region: String! - // } - final testData = { - 'id': testId, - 'name': 'warehouse A', - 'region': 'west-ca', - }; - var warehouse = Warehouse.fromJson(testData); - expect( + 'modelIdentifier getter of a model with id field as a part of composite custom primary key', + () { + // type Warehouse @model { + // id: ID! @primaryKey(sortKeyFields: ["name", "region"]) + // name: String! + // region: String! + // } + final testData = { + 'id': testId, + 'name': 'warehouse A', + 'region': 'west-ca', + }; + var warehouse = Warehouse.fromJson(testData); + expect( warehouse.modelIdentifier, WarehouseModelIdentifier( id: testData['id']!, name: testData['name']!, region: testData['region']!, - )); - expect(warehouse.modelIdentifier.serializeAsMap(), testData); - expect(warehouse.modelIdentifier.serializeAsList(), - testData.entries.map((e) => ({e.key: e.value})).toList()); - expect(warehouse.modelIdentifier.serializeAsString(), - testData.values.join('#')); - }); + ), + ); + expect(warehouse.modelIdentifier.serializeAsMap(), testData); + expect( + warehouse.modelIdentifier.serializeAsList(), + testData.entries.map((e) => ({e.key: e.value})).toList(), + ); + expect( + warehouse.modelIdentifier.serializeAsString(), + testData.values.join('#'), + ); + }, + ); test('modelIdentifier getter of a model with custom primary key', () { // type Product @model { @@ -78,40 +85,46 @@ void main() { expect(product.modelIdentifier, ProductModelIdentifier(productID: testId)); expect(product.modelIdentifier.serializeAsMap(), {'productID': testId}); expect(product.modelIdentifier.serializeAsList(), [ - {'productID': testId} + {'productID': testId}, ]); expect(product.modelIdentifier.serializeAsString(), testId); }); - test('modelIdentifier getter of a model with composite custom primary key', - () { - // type Inventory @model { - // productID: String! - // @primaryKey(sortKeyFields: ["name", "warehouseID", "region"]) - // name: String! - // warehouseID: ID! - // region: String! - // } - final testData = { - 'productID': testId, - 'name': 'InventoryB', - 'warehouseID': 'warehouse-123', - 'region': 'west-ca' - }; - var inventory = Inventory.fromJson(testData); - expect( - inventory.modelIdentifier, - InventoryModelIdentifier( - productID: testData['productID']!, - name: testData['name']!, - warehouseID: testData['warehouseID']!, - region: testData['region']!, - ), - ); - expect(inventory.modelIdentifier.serializeAsMap(), testData); - expect(inventory.modelIdentifier.serializeAsList(), - testData.entries.map((e) => ({e.key: e.value})).toList()); - expect(inventory.modelIdentifier.serializeAsString(), - testData.values.join('#')); - }); + test( + 'modelIdentifier getter of a model with composite custom primary key', + () { + // type Inventory @model { + // productID: String! + // @primaryKey(sortKeyFields: ["name", "warehouseID", "region"]) + // name: String! + // warehouseID: ID! + // region: String! + // } + final testData = { + 'productID': testId, + 'name': 'InventoryB', + 'warehouseID': 'warehouse-123', + 'region': 'west-ca', + }; + var inventory = Inventory.fromJson(testData); + expect( + inventory.modelIdentifier, + InventoryModelIdentifier( + productID: testData['productID']!, + name: testData['name']!, + warehouseID: testData['warehouseID']!, + region: testData['region']!, + ), + ); + expect(inventory.modelIdentifier.serializeAsMap(), testData); + expect( + inventory.modelIdentifier.serializeAsList(), + testData.entries.map((e) => ({e.key: e.value})).toList(), + ); + expect( + inventory.modelIdentifier.serializeAsString(), + testData.values.join('#'), + ); + }, + ); } diff --git a/packages/amplify_datastore_plugin_interface/test/query_snapshot_test.dart b/packages/amplify_datastore_plugin_interface/test/query_snapshot_test.dart index 5f43e3b8f4..ed50e5f05d 100644 --- a/packages/amplify_datastore_plugin_interface/test/query_snapshot_test.dart +++ b/packages/amplify_datastore_plugin_interface/test/query_snapshot_test.dart @@ -7,18 +7,16 @@ import 'package:flutter_test/flutter_test.dart'; void main() { group('QuerySnapshot', () { - TemporalDateTime _temporalDateTime = - TemporalDateTime.fromString("2021-11-09T18:53:12.183540Z"); + TemporalDateTime _temporalDateTime = TemporalDateTime.fromString( + "2021-11-09T18:53:12.183540Z", + ); group('withSubscriptionEvent()', () { group('with no query predicate or sort order', () { late List blogs; late QuerySnapshot snapshot; setUp(() { blogs = List.generate(5, (index) => Blog(name: 'blog $index')); - snapshot = QuerySnapshot( - items: blogs, - isSynced: false, - ); + snapshot = QuerySnapshot(items: blogs, isSynced: false); }); group('create event', () { @@ -31,131 +29,126 @@ void main() { eventType: EventType.create, ); - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); expect(updatedSnapshot.items.length, snapshot.items.length + 1); expect(updatedSnapshot.items.last, newBlog); }); test( - 'returns a QuerySnapshot with an updated item if the item already exists', - () async { - final blog = Blog(name: 'new blog'); + 'returns a QuerySnapshot with an updated item if the item already exists', + () async { + final blog = Blog(name: 'new blog'); - final subscriptionEvent = SubscriptionEvent( - item: blog, - modelType: Blog.classType, - eventType: EventType.create, - ); + final subscriptionEvent = SubscriptionEvent( + item: blog, + modelType: Blog.classType, + eventType: EventType.create, + ); - final updatedSnapshot = snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); + final updatedSnapshot = snapshot.withSubscriptionEvent( + event: subscriptionEvent, + ); - expect(updatedSnapshot.items.contains(blog), isTrue); + expect(updatedSnapshot.items.contains(blog), isTrue); - final updatedBlog = blog.copyWith(name: 'updated name'); + final updatedBlog = blog.copyWith(name: 'updated name'); - final subscriptionEvent2 = SubscriptionEvent( - item: updatedBlog, - modelType: Blog.classType, - eventType: EventType.create, - ); + final subscriptionEvent2 = SubscriptionEvent( + item: updatedBlog, + modelType: Blog.classType, + eventType: EventType.create, + ); - final updatedSnapshot2 = updatedSnapshot.withSubscriptionEvent( - event: subscriptionEvent2, - ); + final updatedSnapshot2 = updatedSnapshot.withSubscriptionEvent( + event: subscriptionEvent2, + ); - expect(updatedSnapshot2.items.contains(updatedBlog), isTrue); - expect(updatedSnapshot2.items.contains(blog), isFalse); - }); + expect(updatedSnapshot2.items.contains(updatedBlog), isTrue); + expect(updatedSnapshot2.items.contains(blog), isFalse); + }, + ); }); group('update event', () { test( - 'returns a QuerySnapshot with one updated item if event.item is in snapshot.items', - () async { - Blog updatedBlog = blogs[2].copyWith(name: 'updated blog'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedBlog, - modelType: Blog.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length); - expect(updatedSnapshot.items[2], updatedBlog); - }); + 'returns a QuerySnapshot with one updated item if event.item is in snapshot.items', + () async { + Blog updatedBlog = blogs[2].copyWith(name: 'updated blog'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedBlog, + modelType: Blog.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length); + expect(updatedSnapshot.items[2], updatedBlog); + }, + ); test( - 'returns a QuerySnapshot with one new if event.item is not in snapshot.items', - () async { - Blog updatedBlog = Blog(name: 'updated blog'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedBlog, - modelType: Blog.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length + 1); - expect(updatedSnapshot.items.last, updatedBlog); - }); + 'returns a QuerySnapshot with one new if event.item is not in snapshot.items', + () async { + Blog updatedBlog = Blog(name: 'updated blog'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedBlog, + modelType: Blog.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length + 1); + expect(updatedSnapshot.items.last, updatedBlog); + }, + ); }); group('delete event', () { test( - 'returns a QuerySnapshot with one item removed if event.item is in snapshot.items', - () async { - Blog deletedBlog = snapshot.items[2]; - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: deletedBlog, - modelType: Blog.classType, - eventType: EventType.delete, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length - 1); - expect(updatedSnapshot.items.contains(deletedBlog), isFalse); - }); + 'returns a QuerySnapshot with one item removed if event.item is in snapshot.items', + () async { + Blog deletedBlog = snapshot.items[2]; + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: deletedBlog, + modelType: Blog.classType, + eventType: EventType.delete, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length - 1); + expect(updatedSnapshot.items.contains(deletedBlog), isFalse); + }, + ); test( - 'returns the original snapshot if event.item is not in snapshot.items', - () async { - Blog deletedBlog = Blog(name: 'other blog'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: deletedBlog, - modelType: Blog.classType, - eventType: EventType.delete, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length); - expect(updatedSnapshot, snapshot); - }); + 'returns the original snapshot if event.item is not in snapshot.items', + () async { + Blog deletedBlog = Blog(name: 'other blog'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: deletedBlog, + modelType: Blog.classType, + eventType: EventType.delete, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length); + expect(updatedSnapshot, snapshot); + }, + ); }); }); @@ -173,169 +166,161 @@ void main() { group('create event', () { test( - 'returns a QuerySnapshot with one new item if event.item matches the predicate', - () async { - Blog newBlog = Blog(name: 'new blog'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: newBlog, - modelType: Blog.classType, - eventType: EventType.create, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length + 1); - expect(updatedSnapshot.items.last, newBlog); - }); + 'returns a QuerySnapshot with one new item if event.item matches the predicate', + () async { + Blog newBlog = Blog(name: 'new blog'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: newBlog, + modelType: Blog.classType, + eventType: EventType.create, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length + 1); + expect(updatedSnapshot.items.last, newBlog); + }, + ); test( - 'returns the original QuerySnapshot for if event.item does not match the predicate', - () async { - Blog newBlog = Blog(name: 'other'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: newBlog, - modelType: Blog.classType, - eventType: EventType.create, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length); - expect(updatedSnapshot, snapshot); - }); + 'returns the original QuerySnapshot for if event.item does not match the predicate', + () async { + Blog newBlog = Blog(name: 'other'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: newBlog, + modelType: Blog.classType, + eventType: EventType.create, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length); + expect(updatedSnapshot, snapshot); + }, + ); }); group('update event', () { test( - 'returns a QuerySnapshot with one updated item if event.item matches the predicate and an item with event.item.id was is found in snapshot.items', - () async { - Blog updatedBlog = blogs[2].copyWith(name: 'updated blog'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedBlog, - modelType: Blog.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length); - expect(updatedSnapshot.items[2], updatedBlog); - }); + 'returns a QuerySnapshot with one updated item if event.item matches the predicate and an item with event.item.id was is found in snapshot.items', + () async { + Blog updatedBlog = blogs[2].copyWith(name: 'updated blog'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedBlog, + modelType: Blog.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length); + expect(updatedSnapshot.items[2], updatedBlog); + }, + ); test( - 'returns a QuerySnapshot with one item removed if event.item does NOT match the predicate, but an item with event.item.id was is found in snapshot.items', - () async { - Blog updatedBlog = blogs[2].copyWith(name: 'updated title'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedBlog, - modelType: Blog.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length - 1); - expect(updatedSnapshot.items.contains(updatedBlog), isFalse); - }); + 'returns a QuerySnapshot with one item removed if event.item does NOT match the predicate, but an item with event.item.id was is found in snapshot.items', + () async { + Blog updatedBlog = blogs[2].copyWith(name: 'updated title'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedBlog, + modelType: Blog.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length - 1); + expect(updatedSnapshot.items.contains(updatedBlog), isFalse); + }, + ); test( - 'returns a QuerySnapshot with one item added if event.item matches the predicate, but an item with event.item.id was NOT is found in snapshot.items', - () async { - Blog updatedBlog = Blog(name: 'blog 6'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedBlog, - modelType: Blog.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length + 1); - // TODO: Should updatedBlog be at a specific index? - expect(updatedSnapshot.items.contains(updatedBlog), isTrue); - }); + 'returns a QuerySnapshot with one item added if event.item matches the predicate, but an item with event.item.id was NOT is found in snapshot.items', + () async { + Blog updatedBlog = Blog(name: 'blog 6'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedBlog, + modelType: Blog.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length + 1); + // TODO: Should updatedBlog be at a specific index? + expect(updatedSnapshot.items.contains(updatedBlog), isTrue); + }, + ); test( - 'returns the original QuerySnapshot for if event.item does NOT match the predicate and an item with event.item.id was NOT is found in snapshot.items', - () async { - Blog updatedBlog = Blog(name: 'other'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedBlog, - modelType: Blog.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length); - expect(updatedSnapshot, snapshot); - }); + 'returns the original QuerySnapshot for if event.item does NOT match the predicate and an item with event.item.id was NOT is found in snapshot.items', + () async { + Blog updatedBlog = Blog(name: 'other'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedBlog, + modelType: Blog.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length); + expect(updatedSnapshot, snapshot); + }, + ); }); group('delete event', () { test( - 'returns a QuerySnapshot with one item removed if event.item is found in snapshot.items', - () async { - Blog deletedBlog = snapshot.items[2]; - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: deletedBlog, - modelType: Blog.classType, - eventType: EventType.delete, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length - 1); - expect(updatedSnapshot.items.contains(deletedBlog), isFalse); - }); + 'returns a QuerySnapshot with one item removed if event.item is found in snapshot.items', + () async { + Blog deletedBlog = snapshot.items[2]; + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: deletedBlog, + modelType: Blog.classType, + eventType: EventType.delete, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length - 1); + expect(updatedSnapshot.items.contains(deletedBlog), isFalse); + }, + ); test( - 'returns the original snapshot if event.item is NOT found in snapshot.items', - () async { - Blog deletedBlog = Blog(name: 'other blog'); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: deletedBlog, - modelType: Blog.classType, - eventType: EventType.delete, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - expect(updatedSnapshot.items.length, snapshot.items.length); - expect(updatedSnapshot, snapshot); - }); + 'returns the original snapshot if event.item is NOT found in snapshot.items', + () async { + Blog deletedBlog = Blog(name: 'other blog'); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: deletedBlog, + modelType: Blog.classType, + eventType: EventType.delete, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + expect(updatedSnapshot.items.length, snapshot.items.length); + expect(updatedSnapshot, snapshot); + }, + ); }); }); group('with a sort order', () { @@ -358,93 +343,87 @@ void main() { }); group('create event', () { - test('returns a QuerySnapshot with one new item in the correct order', - () async { - Post newPost = Post( - title: 'new post', - rating: 25, - created: _temporalDateTime, - ); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: newPost, - modelType: Post.classType, - eventType: EventType.create, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - var expectedItems = [ - ...snapshot.items, - newPost, - ]..sort((a, b) => a.rating.compareTo(b.rating)); - - expect(updatedSnapshot.items.length, snapshot.items.length + 1); - expect(updatedSnapshot.items, orderedEquals(expectedItems)); - }); + test( + 'returns a QuerySnapshot with one new item in the correct order', + () async { + Post newPost = Post( + title: 'new post', + rating: 25, + created: _temporalDateTime, + ); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: newPost, + modelType: Post.classType, + eventType: EventType.create, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + var expectedItems = [...snapshot.items, newPost] + ..sort((a, b) => a.rating.compareTo(b.rating)); + + expect(updatedSnapshot.items.length, snapshot.items.length + 1); + expect(updatedSnapshot.items, orderedEquals(expectedItems)); + }, + ); }); group('update event', () { test( - 'returns a QuerySnapshot with one updated item in the correct order if event.item is in snapshot.items', - () async { - Post updatedPost = posts[2].copyWith( - title: 'updated blog', - rating: 35, - ); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedPost, - modelType: Post.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - var expectedItems = [ - ...snapshot.items - ..removeWhere((item) => item.id == updatedPost.id), - updatedPost, - ]..sort((a, b) => a.rating.compareTo(b.rating)); - - expect(updatedSnapshot.items.length, snapshot.items.length); - expect(updatedSnapshot.items, orderedEquals(expectedItems)); - }); + 'returns a QuerySnapshot with one updated item in the correct order if event.item is in snapshot.items', + () async { + Post updatedPost = posts[2].copyWith( + title: 'updated blog', + rating: 35, + ); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedPost, + modelType: Post.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + var expectedItems = [ + ...snapshot.items + ..removeWhere((item) => item.id == updatedPost.id), + updatedPost, + ]..sort((a, b) => a.rating.compareTo(b.rating)); + + expect(updatedSnapshot.items.length, snapshot.items.length); + expect(updatedSnapshot.items, orderedEquals(expectedItems)); + }, + ); test( - 'returns a QuerySnapshot with one new item in the correct order if event.item is not in snapshot.items', - () async { - Post updatedPost = Post( - title: 'new post', - rating: 25, - created: _temporalDateTime, - ); - - SubscriptionEvent subscriptionEvent = SubscriptionEvent( - item: updatedPost, - modelType: Post.classType, - eventType: EventType.update, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent, - ); - - var expectedItems = [ - ...snapshot.items, - updatedPost, - ]..sort((a, b) => a.rating.compareTo(b.rating)); - - expect(updatedSnapshot.items.length, snapshot.items.length + 1); - expect(updatedSnapshot.items, orderedEquals(expectedItems)); - }); + 'returns a QuerySnapshot with one new item in the correct order if event.item is not in snapshot.items', + () async { + Post updatedPost = Post( + title: 'new post', + rating: 25, + created: _temporalDateTime, + ); + + SubscriptionEvent subscriptionEvent = SubscriptionEvent( + item: updatedPost, + modelType: Post.classType, + eventType: EventType.update, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent); + + var expectedItems = [...snapshot.items, updatedPost] + ..sort((a, b) => a.rating.compareTo(b.rating)); + + expect(updatedSnapshot.items.length, snapshot.items.length + 1); + expect(updatedSnapshot.items, orderedEquals(expectedItems)); + }, + ); }); }); @@ -468,84 +447,84 @@ void main() { }); group('create event', () { - test('returns a QuerySnapshot with new items in the correct order', - () async { - Post newPost1 = Post( - title: 'new post a', - rating: 25, - created: _temporalDateTime, - ); - - Post newPost2 = Post( - title: 'new post a', - rating: 40, - created: _temporalDateTime, - ); - - Post newPost3 = Post( - title: 'new post b', - rating: 25, - created: _temporalDateTime, - ); - - Post newPost4 = Post( - title: 'new post b', - rating: 40, - created: _temporalDateTime, - ); - - SubscriptionEvent subscriptionEvent1 = SubscriptionEvent( - item: newPost1, - modelType: Post.classType, - eventType: EventType.create, - ); - - SubscriptionEvent subscriptionEvent2 = SubscriptionEvent( - item: newPost2, - modelType: Post.classType, - eventType: EventType.create, - ); - - SubscriptionEvent subscriptionEvent3 = SubscriptionEvent( - item: newPost3, - modelType: Post.classType, - eventType: EventType.create, - ); - - SubscriptionEvent subscriptionEvent4 = SubscriptionEvent( - item: newPost4, - modelType: Post.classType, - eventType: EventType.create, - ); - - QuerySnapshot updatedSnapshot = - snapshot.withSubscriptionEvent( - event: subscriptionEvent1, - ); - - updatedSnapshot = updatedSnapshot.withSubscriptionEvent( - event: subscriptionEvent2, - ); - - updatedSnapshot = updatedSnapshot.withSubscriptionEvent( - event: subscriptionEvent3, - ); - - updatedSnapshot = updatedSnapshot.withSubscriptionEvent( - event: subscriptionEvent4, - ); - - var expectedItems = [ - ...snapshot.items, - newPost1, - newPost3, - newPost2, - newPost4, - ]; - - expect(updatedSnapshot.items.length, snapshot.items.length + 4); - expect(updatedSnapshot.items, orderedEquals(expectedItems)); - }); + test( + 'returns a QuerySnapshot with new items in the correct order', + () async { + Post newPost1 = Post( + title: 'new post a', + rating: 25, + created: _temporalDateTime, + ); + + Post newPost2 = Post( + title: 'new post a', + rating: 40, + created: _temporalDateTime, + ); + + Post newPost3 = Post( + title: 'new post b', + rating: 25, + created: _temporalDateTime, + ); + + Post newPost4 = Post( + title: 'new post b', + rating: 40, + created: _temporalDateTime, + ); + + SubscriptionEvent subscriptionEvent1 = SubscriptionEvent( + item: newPost1, + modelType: Post.classType, + eventType: EventType.create, + ); + + SubscriptionEvent subscriptionEvent2 = SubscriptionEvent( + item: newPost2, + modelType: Post.classType, + eventType: EventType.create, + ); + + SubscriptionEvent subscriptionEvent3 = SubscriptionEvent( + item: newPost3, + modelType: Post.classType, + eventType: EventType.create, + ); + + SubscriptionEvent subscriptionEvent4 = SubscriptionEvent( + item: newPost4, + modelType: Post.classType, + eventType: EventType.create, + ); + + QuerySnapshot updatedSnapshot = snapshot + .withSubscriptionEvent(event: subscriptionEvent1); + + updatedSnapshot = updatedSnapshot.withSubscriptionEvent( + event: subscriptionEvent2, + ); + + updatedSnapshot = updatedSnapshot.withSubscriptionEvent( + event: subscriptionEvent3, + ); + + updatedSnapshot = updatedSnapshot.withSubscriptionEvent( + event: subscriptionEvent4, + ); + + var expectedItems = [ + ...snapshot.items, + newPost1, + newPost3, + newPost2, + newPost4, + ]; + + expect(updatedSnapshot.items.length, snapshot.items.length + 4); + expect(updatedSnapshot.items, orderedEquals(expectedItems)); + }, + ); }); }); }); @@ -553,10 +532,7 @@ void main() { group('withSyncStatus()', () { test('should return a QuerySnapshot with the updated status', () { var blogs = List.generate(5, (index) => Blog(name: 'blog $index')); - var snapshot = QuerySnapshot( - items: blogs, - isSynced: false, - ); + var snapshot = QuerySnapshot(items: blogs, isSynced: false); var newSnapshot = snapshot.withSyncStatus(true); expect(newSnapshot.isSynced, true); }); diff --git a/packages/amplify_datastore_plugin_interface/test/sorted_list_test.dart b/packages/amplify_datastore_plugin_interface/test/sorted_list_test.dart index aeaeac157b..634ebd738f 100644 --- a/packages/amplify_datastore_plugin_interface/test/sorted_list_test.dart +++ b/packages/amplify_datastore_plugin_interface/test/sorted_list_test.dart @@ -23,18 +23,22 @@ void main() { expect(sortedList.toList(), orderedEquals(expectedItems)); }); - test('inserts a new item at the end of the list if compare is omitted', - () { - List items = [1, 2, 3, 7, 10]; - SortedList sortedList = SortedList.fromPresortedList(items: items); - sortedList.addSorted(3); - sortedList.addSorted(8); - sortedList.addSorted(0); - sortedList.addSorted(11); + test( + 'inserts a new item at the end of the list if compare is omitted', + () { + List items = [1, 2, 3, 7, 10]; + SortedList sortedList = SortedList.fromPresortedList( + items: items, + ); + sortedList.addSorted(3); + sortedList.addSorted(8); + sortedList.addSorted(0); + sortedList.addSorted(11); - var expectedItems = [1, 2, 3, 7, 10, 3, 8, 0, 11]; - expect(sortedList.toList(), orderedEquals(expectedItems)); - }); + var expectedItems = [1, 2, 3, 7, 10, 3, 8, 0, 11]; + expect(sortedList.toList(), orderedEquals(expectedItems)); + }, + ); }); group('updateAt()', () { @@ -51,16 +55,19 @@ void main() { expect(sortedList.toList(), orderedEquals(expectedItems)); }); test( - 'updates the item without change the list order if compare is omitted', - () { - List items = [1, 2, 3, 7, 10]; - SortedList sortedList = SortedList.fromPresortedList(items: items); - sortedList.updateAtSorted(1, 5); - sortedList.updateAtSorted(4, 1); + 'updates the item without change the list order if compare is omitted', + () { + List items = [1, 2, 3, 7, 10]; + SortedList sortedList = SortedList.fromPresortedList( + items: items, + ); + sortedList.updateAtSorted(1, 5); + sortedList.updateAtSorted(4, 1); - var expectedItems = [1, 5, 3, 7, 1]; - expect(sortedList.toList(), orderedEquals(expectedItems)); - }); + var expectedItems = [1, 5, 3, 7, 1]; + expect(sortedList.toList(), orderedEquals(expectedItems)); + }, + ); }); group('copy()', () { diff --git a/packages/amplify_lints/CHANGELOG.md b/packages/amplify_lints/CHANGELOG.md index 8c96a00da3..f2e747c4e7 100644 --- a/packages/amplify_lints/CHANGELOG.md +++ b/packages/amplify_lints/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.1.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 3.1.1 - Minor bug fixes and improvements diff --git a/packages/amplify_lints/README.md b/packages/amplify_lints/README.md index e509de8f28..8909b7c2ba 100644 --- a/packages/amplify_lints/README.md +++ b/packages/amplify_lints/README.md @@ -57,7 +57,6 @@ Libraries will use the `package:lints` "recommended" ruleset plus the following: - [prefer_null_aware_method_calls](https://dart.dev/tools/linter-rules#prefer_null_aware_method_calls) - [prefer_single_quotes](https://dart.dev/tools/linter-rules#prefer_single_quotes) - [public_member_api_docs](https://dart.dev/tools/linter-rules#public_member_api_docs) -- [require_trailing_commas](https://dart.dev/tools/linter-rules#require_trailing_commas) - [sized_box_for_whitespace](https://dart.dev/tools/linter-rules#sized_box_for_whitespace) - [sort_child_properties_last](https://dart.dev/tools/linter-rules#sort_child_properties_last) - [sort_constructors_first](https://dart.dev/tools/linter-rules#sort_constructors_first) diff --git a/packages/amplify_lints/lib/app.yaml b/packages/amplify_lints/lib/app.yaml index 5ea1f179ed..2cd09087f5 100644 --- a/packages/amplify_lints/lib/app.yaml +++ b/packages/amplify_lints/lib/app.yaml @@ -27,7 +27,6 @@ linter: - prefer_int_literals # To improve code readability. - prefer_null_aware_method_calls # To improve code readability. - prefer_single_quotes # To encourage consistent styling. - - require_trailing_commas # To improve code readability. - secure_pubspec_urls # To improve security posture. - sized_box_shrink_expand # To improve code readability. - sort_constructors_first # To provide a consistent style for classes. diff --git a/packages/amplify_lints/lib/library.yaml b/packages/amplify_lints/lib/library.yaml index 4bc86aca2c..21d6391e1f 100644 --- a/packages/amplify_lints/lib/library.yaml +++ b/packages/amplify_lints/lib/library.yaml @@ -56,7 +56,6 @@ linter: - prefer_null_aware_method_calls # To improve code readability. - prefer_single_quotes # To encourage consistent styling. - public_member_api_docs # To provide users with ample context and explanation. - - require_trailing_commas # To improve code readability. - sort_constructors_first # To provide a consistent style for classes. - sort_unnamed_constructors_first # To provide organization and quick exploration. - sort_pub_dependencies # To simplify searching a large list. diff --git a/packages/amplify_lints/pubspec.yaml b/packages/amplify_lints/pubspec.yaml index 80e03f1d21..66f1399fed 100644 --- a/packages/amplify_lints/pubspec.yaml +++ b/packages/amplify_lints/pubspec.yaml @@ -1,13 +1,13 @@ name: amplify_lints description: The lint rules used in developing Amplify Flutter packages and plugins. -version: 3.1.1 +version: 3.1.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/amplify_lints issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - flutter_lints: ^3.0.0 - lints: ^3.0.0 + flutter_lints: ^5.0.0 + lints: ^5.1.1 diff --git a/packages/amplify_native_legacy_wrapper/example/android/.gitignore b/packages/amplify_native_legacy_wrapper/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/amplify_native_legacy_wrapper/example/android/.gitignore +++ b/packages/amplify_native_legacy_wrapper/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/amplify_native_legacy_wrapper/example/android/app/build.gradle b/packages/amplify_native_legacy_wrapper/example/android/app/build.gradle index 68b1cdcdd2..6b657288d8 100644 --- a/packages/amplify_native_legacy_wrapper/example/android/app/build.gradle +++ b/packages/amplify_native_legacy_wrapper/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -64,4 +66,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") +} diff --git a/packages/amplify_native_legacy_wrapper/example/android/app/proguard-rules.pro b/packages/amplify_native_legacy_wrapper/example/android/app/proguard-rules.pro new file mode 100644 index 0000000000..24657f9e4f --- /dev/null +++ b/packages/amplify_native_legacy_wrapper/example/android/app/proguard-rules.pro @@ -0,0 +1,9 @@ +-dontwarn com.amazonaws.mobile.auth.facebook.FacebookButton +-dontwarn com.amazonaws.mobile.auth.facebook.FacebookSignInProvider +-dontwarn com.amazonaws.mobile.auth.google.GoogleButton +-dontwarn com.amazonaws.mobile.auth.google.GoogleSignInProvider +-dontwarn com.amazonaws.mobile.auth.ui.AuthUIConfiguration$Builder +-dontwarn com.amazonaws.mobile.auth.ui.AuthUIConfiguration +-dontwarn com.amazonaws.mobile.auth.ui.SignInUI$LoginBuilder +-dontwarn com.amazonaws.mobile.auth.ui.SignInUI +-dontwarn com.amazonaws.mobile.auth.userpools.CognitoUserPoolsSignInProvider diff --git a/packages/amplify_native_legacy_wrapper/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/amplify_native_legacy_wrapper/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/amplify_native_legacy_wrapper/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/amplify_native_legacy_wrapper/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/amplify_native_legacy_wrapper/example/android/settings.gradle b/packages/amplify_native_legacy_wrapper/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/amplify_native_legacy_wrapper/example/android/settings.gradle +++ b/packages/amplify_native_legacy_wrapper/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/amplify_native_legacy_wrapper/example/lib/main.dart b/packages/amplify_native_legacy_wrapper/example/lib/main.dart index 4221bf4e15..bb67220a37 100644 --- a/packages/amplify_native_legacy_wrapper/example/lib/main.dart +++ b/packages/amplify_native_legacy_wrapper/example/lib/main.dart @@ -29,9 +29,7 @@ class _MyAppState extends State { Widget build(BuildContext context) { return MaterialApp( home: Scaffold( - appBar: AppBar( - title: const Text('Plugin example app'), - ), + appBar: AppBar(title: const Text('Plugin example app')), body: Column( children: [ ElevatedButton( diff --git a/packages/amplify_native_legacy_wrapper/example/pubspec.yaml b/packages/amplify_native_legacy_wrapper/example/pubspec.yaml index 393bb6178e..16fe7a6183 100644 --- a/packages/amplify_native_legacy_wrapper/example/pubspec.yaml +++ b/packages/amplify_native_legacy_wrapper/example/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0 publish_to: "none" environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_native_legacy_wrapper: ^0.1.0 diff --git a/packages/amplify_native_legacy_wrapper/lib/amplify_native_legacy_plugin.g.dart b/packages/amplify_native_legacy_wrapper/lib/amplify_native_legacy_plugin.g.dart index 4990c442e9..04d7651401 100644 --- a/packages/amplify_native_legacy_wrapper/lib/amplify_native_legacy_plugin.g.dart +++ b/packages/amplify_native_legacy_wrapper/lib/amplify_native_legacy_plugin.g.dart @@ -43,11 +43,12 @@ class LegacyNativePlugin { /// Constructor for [LegacyNativePlugin]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - LegacyNativePlugin( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + LegacyNativePlugin({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -59,10 +60,10 @@ class LegacyNativePlugin { 'dev.flutter.pigeon.amplify_native_legacy_wrapper.LegacyNativePlugin.configure$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send([config]) as List?; if (pigeonVar_replyList == null) { @@ -83,10 +84,10 @@ class LegacyNativePlugin { 'dev.flutter.pigeon.amplify_native_legacy_wrapper.LegacyNativePlugin.signOut$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -107,12 +108,13 @@ class LegacyNativePlugin { 'dev.flutter.pigeon.amplify_native_legacy_wrapper.LegacyNativePlugin.signIn$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([username, password]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([username, password]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -131,10 +133,10 @@ class LegacyNativePlugin { 'dev.flutter.pigeon.amplify_native_legacy_wrapper.LegacyNativePlugin.rememberDevice$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { diff --git a/packages/amplify_native_legacy_wrapper/pigeons/messages.dart b/packages/amplify_native_legacy_wrapper/pigeons/messages.dart index d4c9d42942..58d52ec71d 100644 --- a/packages/amplify_native_legacy_wrapper/pigeons/messages.dart +++ b/packages/amplify_native_legacy_wrapper/pigeons/messages.dart @@ -13,8 +13,7 @@ './android/src/main/kotlin/com/amazonaws/amplify/amplify_native_legacy_wrapper/pigeons/LegacyNativePluginPigeon.kt', ), ) - -library legacy_native_plugin; +library; import 'package:pigeon/pigeon.dart'; diff --git a/packages/amplify_native_legacy_wrapper/pubspec.yaml b/packages/amplify_native_legacy_wrapper/pubspec.yaml index dbdd020952..1be3622991 100644 --- a/packages/amplify_native_legacy_wrapper/pubspec.yaml +++ b/packages/amplify_native_legacy_wrapper/pubspec.yaml @@ -4,15 +4,15 @@ version: 0.0.1 publish_to: none environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: flutter: sdk: flutter dev_dependencies: - amplify_lints: ">=2.0.2 <2.1.0" + amplify_lints: ">=3.1.0 <3.2.0" flutter_test: sdk: flutter pigeon: ^22.6.2 diff --git a/packages/analytics/amplify_analytics_pinpoint/CHANGELOG.md b/packages/analytics/amplify_analytics_pinpoint/CHANGELOG.md index 9df927766b..c8ab8807b6 100644 --- a/packages/analytics/amplify_analytics_pinpoint/CHANGELOG.md +++ b/packages/analytics/amplify_analytics_pinpoint/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/analytics/amplify_analytics_pinpoint/example/android/.gitignore b/packages/analytics/amplify_analytics_pinpoint/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/android/.gitignore +++ b/packages/analytics/amplify_analytics_pinpoint/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/analytics/amplify_analytics_pinpoint/example/android/app/build.gradle b/packages/analytics/amplify_analytics_pinpoint/example/android/app/build.gradle index 9b3fde71cc..107a29f2f7 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/android/app/build.gradle +++ b/packages/analytics/amplify_analytics_pinpoint/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -63,4 +65,5 @@ flutter { } dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") } diff --git a/packages/analytics/amplify_analytics_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/analytics/amplify_analytics_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/analytics/amplify_analytics_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/analytics/amplify_analytics_pinpoint/example/android/settings.gradle b/packages/analytics/amplify_analytics_pinpoint/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/android/settings.gradle +++ b/packages/analytics/amplify_analytics_pinpoint/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/auto_session_tracking_test.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/auto_session_tracking_test.dart index 28e112ad3b..41f8bbb85f 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/auto_session_tracking_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/auto_session_tracking_test.dart @@ -21,50 +21,39 @@ void main() { late Stream eventsStream; setUp(() async { - await configureAnalytics( - appLifecycleProvider: mockLifecycleProvider, - ); + await configureAnalytics(appLifecycleProvider: mockLifecycleProvider); eventsStream = await subscribeToEvents(); }); - testWidgets( - 'manual trigger of onBackground/onForeground triggers session ' - 'start/end events ', - (_) async { - mockLifecycleProvider.triggerOnBackgroundListener(); + testWidgets('manual trigger of onBackground/onForeground triggers session ' + 'start/end events ', (_) async { + mockLifecycleProvider.triggerOnBackgroundListener(); - TestSession? sessionStop; + TestSession? sessionStop; - // Verify new session has newer values than old session - final streamSubscription = eventsStream.listen( - expectAsync1( - count: 2, - (event) async { - if (sessionStop == null) { - expect(event.eventType, zSessionStopEventType); - sessionStop = event.session; - mockLifecycleProvider.triggerOnForegroundListener(); - await Amplify.Analytics.flushEvents(); - } else { - expect(event.eventType, zSessionStartEventType); - final sessionStart = event.session; - expect( - sessionStop!.sessionId, - isNot(sessionStart.sessionId), - ); - expect( - sessionStart.startTimestamp - .isAfter(sessionStop!.stopTimestamp!), - isTrue, - reason: 'onForeground was called after onBackground', - ); - } - }, - ), - ); - addTearDown(streamSubscription.cancel); + // Verify new session has newer values than old session + final streamSubscription = eventsStream.listen( + expectAsync1(count: 2, (event) async { + if (sessionStop == null) { + expect(event.eventType, zSessionStopEventType); + sessionStop = event.session; + mockLifecycleProvider.triggerOnForegroundListener(); + await Amplify.Analytics.flushEvents(); + } else { + expect(event.eventType, zSessionStartEventType); + final sessionStart = event.session; + expect(sessionStop!.sessionId, isNot(sessionStart.sessionId)); + expect( + sessionStart.startTimestamp.isAfter(sessionStop!.stopTimestamp!), + isTrue, + reason: 'onForeground was called after onBackground', + ); + } + }), + ); + addTearDown(streamSubscription.cancel); - /* + /* await expectLater( eventsStream, emits( @@ -92,8 +81,6 @@ void main() { ); */ - }, - timeout: const Timeout(Duration(minutes: 3)), - ); + }, timeout: const Timeout(Duration(minutes: 3))); }); } diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/enable_disable_test.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/enable_disable_test.dart index e22fadbcb1..39080833e9 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/enable_disable_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/enable_disable_test.dart @@ -20,9 +20,7 @@ void main() { late Stream eventsStream; setUp(() async { - await configureAnalytics( - appLifecycleProvider: mockLifecycleProvider, - ); + await configureAnalytics(appLifecycleProvider: mockLifecycleProvider); eventsStream = await subscribeToEvents(); }); diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/events_test.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/events_test.dart index c696593573..ae1cf6c4bb 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/events_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/events_test.dart @@ -22,28 +22,24 @@ void main() { eventsStream = await subscribeToEvents(); }); - testWidgets( - 'custom events are automatically submitted without calls to ' - 'Analytics.flushEvents()', - (_) async { - const customEventName = 'custom events auto submitted event'; - final customEvent = AnalyticsEvent(customEventName); - - await Amplify.Analytics.recordEvent(event: customEvent); - - await expectLater( - eventsStream, - emits( - isA().having( - (e) => e.eventType, - 'eventType', - customEventName, - ), + testWidgets('custom events are automatically submitted without calls to ' + 'Analytics.flushEvents()', (_) async { + const customEventName = 'custom events auto submitted event'; + final customEvent = AnalyticsEvent(customEventName); + + await Amplify.Analytics.recordEvent(event: customEvent); + + await expectLater( + eventsStream, + emits( + isA().having( + (e) => e.eventType, + 'eventType', + customEventName, ), - ); - }, - timeout: const Timeout(Duration(minutes: 3)), - ); + ), + ); + }, timeout: const Timeout(Duration(minutes: 3))); testWidgets( 'recorded custom event is sent with correct custom and meta properties', @@ -67,15 +63,12 @@ void main() { stringProperty, ]), ); - expect( - customEvent.customProperties.getAllPropertiesTypes(), - { - boolProperty.key: 'BOOL', - doubleProperty.key: 'DOUBLE', - intProperty.key: 'INT', - stringProperty.key: 'STRING', - }, - ); + expect(customEvent.customProperties.getAllPropertiesTypes(), { + boolProperty.key: 'BOOL', + doubleProperty.key: 'DOUBLE', + intProperty.key: 'INT', + stringProperty.key: 'STRING', + }); await Amplify.Analytics.recordEvent(event: customEvent); await Amplify.Analytics.flushEvents(); @@ -90,19 +83,13 @@ void main() { (e) => e.attributes, 'attributes', equals( - Map.fromEntries( - [stringifiedBoolProperty, stringProperty], - ), + Map.fromEntries([stringifiedBoolProperty, stringProperty]), ), ) .having( (e) => e.metrics, 'metrics', - equals( - Map.fromEntries( - [lossyDoubleProperty, intProperty], - ), - ), + equals(Map.fromEntries([lossyDoubleProperty, intProperty])), ) .having( (e) => e.endpoint.endpointStatus, @@ -133,9 +120,10 @@ void main() { // Add attribute global property types final firstEvent = createEvent('global props first event name'); - final attributeGlobalProperties = CustomProperties() - ..addBoolProperty(boolProperty.key, boolProperty.value) - ..addStringProperty(stringProperty.key, stringProperty.value); + final attributeGlobalProperties = + CustomProperties() + ..addBoolProperty(boolProperty.key, boolProperty.value) + ..addStringProperty(stringProperty.key, stringProperty.value); await Amplify.Analytics.registerGlobalProperties( globalProperties: attributeGlobalProperties, @@ -178,9 +166,10 @@ void main() { // Add metric global property types final secondEvent = createEvent('global props second event name'); - final metricGlobalProperties = CustomProperties() - ..addIntProperty(intProperty.key, intProperty.value) - ..addDoubleProperty(doubleProperty.key, doubleProperty.value); + final metricGlobalProperties = + CustomProperties() + ..addIntProperty(intProperty.key, intProperty.value) + ..addDoubleProperty(doubleProperty.key, doubleProperty.value); await Amplify.Analytics.registerGlobalProperties( globalProperties: metricGlobalProperties, @@ -198,17 +187,17 @@ void main() { .having( (e) => e.attributes, 'attributes', - equals( - Map.fromEntries([secondStringProperty]), - ), + equals(Map.fromEntries([secondStringProperty])), ) .having( (e) => e.metrics, 'metrics', equals( - Map.fromEntries( - [lossyDoubleProperty, intProperty, secondIntProperty], - ), + Map.fromEntries([ + lossyDoubleProperty, + intProperty, + secondIntProperty, + ]), ), ), ), diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/identify_user_test.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/identify_user_test.dart index 00a12e6951..712815960f 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/identify_user_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/identify_user_test.dart @@ -49,11 +49,12 @@ void main() { country: country, ); - final properties = CustomProperties() - ..addBoolProperty(boolProperty.key, boolProperty.value) - ..addDoubleProperty(doubleProperty.key, doubleProperty.value) - ..addIntProperty(intProperty.key, intProperty.value) - ..addStringProperty(stringProperty.key, stringProperty.value); + final properties = + CustomProperties() + ..addBoolProperty(boolProperty.key, boolProperty.value) + ..addDoubleProperty(doubleProperty.key, doubleProperty.value) + ..addIntProperty(intProperty.key, intProperty.value) + ..addStringProperty(stringProperty.key, stringProperty.value); await Amplify.Analytics.identifyUser( userId: userId, @@ -123,12 +124,7 @@ void main() { .having( (e) => e.endpoint.metrics?.toMap() ?? const {}, 'Metrics', - equals( - Map.fromEntries([ - lossyDoubleProperty, - intProperty, - ]), - ), + equals(Map.fromEntries([lossyDoubleProperty, intProperty])), ), ), ); diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/no_unauth_test.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/no_unauth_test.dart index 8c45d13f42..07b1ee320f 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/no_unauth_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/no_unauth_test.dart @@ -17,31 +17,28 @@ void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group( - 'Amplify.configure should complete even when unauthenticated access is disabled.', - () { - tearDown(Amplify.reset); + 'Amplify.configure should complete even when unauthenticated access is disabled.', + () { + tearDown(Amplify.reset); - for (final environmentName in const [ - 'no-unauth-access', - 'no-unauth-identities', - ]) { - testWidgets(environmentName, (_) async { - storageFactory(scope) => setupAndCreateMockPersistedSecuredStorage(); - await Amplify.addPlugins([ - AmplifyAuthCognito( - secureStorageFactory: storageFactory, - ), - AmplifyAnalyticsPinpoint( - secureStorageFactory: storageFactory, - ), - AmplifyAPI(), - ]); - await completesWithoutError( - () => Amplify.configure(amplifyEnvironments[environmentName]!), - ); - }); - } - }); + for (final environmentName in const [ + 'no-unauth-access', + 'no-unauth-identities', + ]) { + testWidgets(environmentName, (_) async { + storageFactory(scope) => setupAndCreateMockPersistedSecuredStorage(); + await Amplify.addPlugins([ + AmplifyAuthCognito(secureStorageFactory: storageFactory), + AmplifyAnalyticsPinpoint(secureStorageFactory: storageFactory), + AmplifyAPI(), + ]); + await completesWithoutError( + () => Amplify.configure(amplifyEnvironments[environmentName]!), + ); + }); + } + }, + ); } /// Tests that [callback] can complete without an error, while ignoring any errors @@ -58,11 +55,9 @@ void main() { Future completesWithoutError(Future Function() callback) async { await runZonedGuarded( () async { - await callback().onError( - (error, stackTrace) { - fail('should complete without error but failed with $error'); - }, - ); + await callback().onError((error, stackTrace) { + fail('should complete without error but failed with $error'); + }); }, (error, stack) { if (error is TestFailure) { diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/setup_utils.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/setup_utils.dart index 330c41e3ac..31793cf779 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/setup_utils.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/setup_utils.dart @@ -37,9 +37,7 @@ Future configureAnalytics({ } await Amplify.addPlugins([ - AmplifyAuthCognito( - secureStorageFactory: storageFactory, - ), + AmplifyAuthCognito(secureStorageFactory: storageFactory), AmplifyAnalyticsPinpoint( appLifecycleProvider: appLifecycleProvider, secureStorageFactory: storageFactory, @@ -59,10 +57,11 @@ Future configureAnalytics({ Future> subscribeToEvents() async { final subscriptionEstablished = Completer.sync(); - final eventsStream = Amplify.API - .subscribe( - GraphQLRequest( - document: ''' + final eventsStream = + Amplify.API + .subscribe( + GraphQLRequest( + document: ''' subscription { onCreateRecord { id @@ -70,27 +69,29 @@ Future> subscribeToEvents() async { } } ''', - ), - onEstablished: subscriptionEstablished.complete, - ) - .map((event) { - if (event.hasErrors) { - throw Exception(event.errors); - } - final data = event.data; - if (data == null) { - throw Exception('No data'); - } - final json = jsonDecode(data) as Map; - final payload = - jsonDecode((json['onCreateRecord'] as Map)['payload'] as String) - as Map; - return TestEvent.fromJson(payload); - }).where((payload) { - // Filter for endpoint IDs which match this test suite since there may be - // multiple tests running concurrently in CI. - return payload.endpoint.id == mockEndpointId; - }).asBroadcastStream(); + ), + onEstablished: subscriptionEstablished.complete, + ) + .map((event) { + if (event.hasErrors) { + throw Exception(event.errors); + } + final data = event.data; + if (data == null) { + throw Exception('No data'); + } + final json = jsonDecode(data) as Map; + final payload = + jsonDecode((json['onCreateRecord'] as Map)['payload'] as String) + as Map; + return TestEvent.fromJson(payload); + }) + .where((payload) { + // Filter for endpoint IDs which match this test suite since there may be + // multiple tests running concurrently in CI. + return payload.endpoint.id == mockEndpointId; + }) + .asBroadcastStream(); await subscriptionEstablished.future.timeout( const Duration(seconds: 10), // Auto-flush duration diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.dart index 05127786d8..7ea3697a09 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.dart @@ -14,10 +14,7 @@ part 'test_event.g.dart'; const _testSerializable = JsonSerializable( createToJson: false, fieldRename: FieldRename.snake, - converters: [ - _EndpointSerializer(), - _DateTimeSerializer(), - ], + converters: [_EndpointSerializer(), _DateTimeSerializer()], ); @_testSerializable @@ -47,15 +44,15 @@ class TestEvent with AWSEquatable, AWSDebuggable { @override List get props => [ - eventType, - eventTimestamp, - arrivalTimestamp, - eventVersion, - attributes, - metrics, - session, - endpoint, - ]; + eventType, + eventTimestamp, + arrivalTimestamp, + eventVersion, + attributes, + metrics, + session, + endpoint, + ]; @override String get runtimeTypeName => 'TestEvent'; @@ -77,20 +74,17 @@ class TestSession with AWSEquatable, AWSDebuggable { final DateTime? stopTimestamp; @override - List get props => [ - sessionId, - startTimestamp, - stopTimestamp, - ]; + List get props => [sessionId, startTimestamp, stopTimestamp]; @override String get runtimeTypeName => 'TestSession'; } final Serializers _serializers = () { - final builder = Serializers().toBuilder() - ..addAll(serializers) - ..addPlugin(StandardJsonPlugin()); + final builder = + Serializers().toBuilder() + ..addAll(serializers) + ..addPlugin(StandardJsonPlugin()); builderFactories.forEach(builder.addBuilderFactory); return builder.build(); }(); @@ -102,16 +96,18 @@ class _EndpointSerializer @override EndpointResponse fromJson(Map json) => _serializers.deserialize( - json, - specifiedType: const FullType(EndpointResponse), - ) as EndpointResponse; + json, + specifiedType: const FullType(EndpointResponse), + ) + as EndpointResponse; @override Map toJson(EndpointResponse object) => _serializers.serialize( - object, - specifiedType: const FullType(EndpointResponse), - ) as Map; + object, + specifiedType: const FullType(EndpointResponse), + ) + as Map; } class _DateTimeSerializer implements JsonConverter { diff --git a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.g.dart b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.g.dart index d9706e3bb6..5489b95aff 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/integration_test/utils/test_event.g.dart @@ -7,37 +7,42 @@ part of 'test_event.dart'; // ************************************************************************** TestEvent _$TestEventFromJson(Map json) => TestEvent( - eventType: json['event_type'] as String, - eventTimestamp: - const _DateTimeSerializer().fromJson(json['event_timestamp'] as int), - arrivalTimestamp: const _DateTimeSerializer() - .fromJson(json['arrival_timestamp'] as int), - eventVersion: json['event_version'] as String, - attributes: (json['attributes'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}, - metrics: (json['metrics'] as Map?)?.map( - (k, e) => MapEntry(k, (e as num).toDouble()), - ) ?? - const {}, - session: TestSession.fromJson(json['session'] as Map), - endpoint: const _EndpointSerializer() - .fromJson(json['endpoint'] as Map), - ); + eventType: json['event_type'] as String, + eventTimestamp: const _DateTimeSerializer().fromJson( + (json['event_timestamp'] as num).toInt(), + ), + arrivalTimestamp: const _DateTimeSerializer().fromJson( + (json['arrival_timestamp'] as num).toInt(), + ), + eventVersion: json['event_version'] as String, + attributes: + (json['attributes'] as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, + metrics: + (json['metrics'] as Map?)?.map( + (k, e) => MapEntry(k, (e as num).toDouble()), + ) ?? + const {}, + session: TestSession.fromJson(json['session'] as Map), + endpoint: const _EndpointSerializer().fromJson( + json['endpoint'] as Map, + ), +); TestSession _$TestSessionFromJson(Map json) => TestSession( - sessionId: json['session_id'] as String, - startTimestamp: - const _DateTimeSerializer().fromJson(json['start_timestamp'] as int), - stopTimestamp: _$JsonConverterFromJson( - json['stop_timestamp'], - const _DateTimeSerializer().fromJson, - ), - ); + sessionId: json['session_id'] as String, + startTimestamp: const _DateTimeSerializer().fromJson( + (json['start_timestamp'] as num).toInt(), + ), + stopTimestamp: _$JsonConverterFromJson( + json['stop_timestamp'], + const _DateTimeSerializer().fromJson, + ), +); Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); diff --git a/packages/analytics/amplify_analytics_pinpoint/example/lib/main.dart b/packages/analytics/amplify_analytics_pinpoint/example/lib/main.dart index f457f5e8bb..d23497b6b5 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/lib/main.dart +++ b/packages/analytics/amplify_analytics_pinpoint/example/lib/main.dart @@ -48,9 +48,7 @@ class _MyAppState extends State { ); await Amplify.addPlugins([ - AmplifyAuthCognito( - secureStorageFactory: storageFactory, - ), + AmplifyAuthCognito(secureStorageFactory: storageFactory), AmplifyAnalyticsPinpoint( // ignore: invalid_use_of_visible_for_testing_member secureStorageFactory: storageFactory, @@ -134,11 +132,12 @@ class _MyAppState extends State { region: 'California', country: 'USA', ), - customProperties: CustomProperties() - ..addStringProperty('${_userId}_endpoint_stringKey', 'stringValue') - ..addIntProperty('${_userId}_endpoint_intKey', 10) - ..addDoubleProperty('${_userId}_endpoint_doubleKey', 10) - ..addBoolProperty('${_userId}_endpoint_boolKey', false), + customProperties: + CustomProperties() + ..addStringProperty('${_userId}_endpoint_stringKey', 'stringValue') + ..addIntProperty('${_userId}_endpoint_intKey', 10) + ..addDoubleProperty('${_userId}_endpoint_doubleKey', 10) + ..addBoolProperty('${_userId}_endpoint_boolKey', false), userAttributes: { '${_userId}_user_stringKey': ['stringValue', 'anotherStringValue'], }, @@ -154,9 +153,7 @@ class _MyAppState extends State { Widget build(BuildContext context) { return MaterialApp( home: Scaffold( - appBar: AppBar( - title: const Text('Amplify Analytics example app'), - ), + appBar: AppBar(title: const Text('Amplify Analytics example app')), body: ListView( padding: const EdgeInsets.all(10), children: [ @@ -177,8 +174,9 @@ class _MyAppState extends State { child: const Text('configure Amplify'), ), Center( - child: - Text('Is Amplify Configured?: $_amplifyConfigured\n'), + child: Text( + 'Is Amplify Configured?: $_amplifyConfigured\n', + ), ), ], ), @@ -201,8 +199,9 @@ class _MyAppState extends State { style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold), ), TextField( - decoration: - const InputDecoration(hintText: 'Enter event id'), + decoration: const InputDecoration( + hintText: 'Enter event id', + ), onChanged: (text) { _uniqueId = text; }, @@ -227,8 +226,9 @@ class _MyAppState extends State { endIndent: 0, ), TextField( - decoration: - const InputDecoration(hintText: 'Enter global prop id'), + decoration: const InputDecoration( + hintText: 'Enter global prop id', + ), onChanged: (text) { _globalProp = text; }, @@ -244,9 +244,10 @@ class _MyAppState extends State { child: const Text('Unregister Global Prop'), ), ElevatedButton( - onPressed: _amplifyConfigured - ? _unregisterAllGlobalProperties - : null, + onPressed: + _amplifyConfigured + ? _unregisterAllGlobalProperties + : null, child: const Text('Unregister All Global Prop'), ), const Divider( @@ -257,8 +258,9 @@ class _MyAppState extends State { endIndent: 0, ), TextField( - decoration: - const InputDecoration(hintText: 'Enter user id'), + decoration: const InputDecoration( + hintText: 'Enter user id', + ), onChanged: (text) { _userId = text; }, diff --git a/packages/analytics/amplify_analytics_pinpoint/example/pubspec.yaml b/packages/analytics/amplify_analytics_pinpoint/example/pubspec.yaml index 57e000a218..866126f215 100644 --- a/packages/analytics/amplify_analytics_pinpoint/example/pubspec.yaml +++ b/packages/analytics/amplify_analytics_pinpoint/example/pubspec.yaml @@ -7,8 +7,8 @@ version: 0.1.0 publish_to: "none" # Remove this line if you wish to publish to pub.dev environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_analytics_pinpoint: ">=1.0.0-next.8 <1.0.0-next.9" @@ -32,7 +32,7 @@ dev_dependencies: integration_test: sdk: flutter json_annotation: ">=4.9.0 <4.10.0" - json_serializable: 6.8.0 + json_serializable: ^6.9.4 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/amplify_analytics_pinpoint.dart b/packages/analytics/amplify_analytics_pinpoint/lib/amplify_analytics_pinpoint.dart index 0729158a6d..0657b34989 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/amplify_analytics_pinpoint.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/amplify_analytics_pinpoint.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Amplify Analytics Pinpoint. -library amplify_analytics_pinpoint; +library; export 'package:amplify_analytics_pinpoint_dart/amplify_analytics_pinpoint_dart.dart' hide AmplifyAnalyticsPinpointDart; diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/analytics_plugin_impl.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/analytics_plugin_impl.dart index 1115d912d5..84ae74dd4d 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/analytics_plugin_impl.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/analytics_plugin_impl.dart @@ -21,12 +21,12 @@ class AmplifyAnalyticsPinpoint extends AmplifyAnalyticsPinpointDart { @visibleForTesting SecureStorageFactory? secureStorageFactory, super.options, }) : super( - pathProvider: FlutterPathProvider(), - legacyNativeDataProvider: FlutterLegacyNativeDataProvider(), - deviceContextInfoProvider: const FlutterDeviceContextInfoProvider(), - appLifecycleProvider: - appLifecycleProvider ?? FlutterAppLifecycleProvider(), - secureStorageFactory: - secureStorageFactory ?? AmplifySecureStorage.factoryFrom(), - ); + pathProvider: FlutterPathProvider(), + legacyNativeDataProvider: FlutterLegacyNativeDataProvider(), + deviceContextInfoProvider: const FlutterDeviceContextInfoProvider(), + appLifecycleProvider: + appLifecycleProvider ?? FlutterAppLifecycleProvider(), + secureStorageFactory: + secureStorageFactory ?? AmplifySecureStorage.factoryFrom(), + ); } diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_html.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_html.dart index 4815e04ff0..efd94632a4 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_html.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_html.dart @@ -22,8 +22,6 @@ Future getDeviceInfo() async { platformVersion: webInfo.platform, ); } on PlatformException { - return const DeviceInfo( - platform: DevicePlatform.unknown, - ); + return const DeviceInfo(platform: DevicePlatform.unknown); } } diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_io.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_io.dart index f8c0472929..2d7bc197c2 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_io.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/device_info_provider/device_info_provider_io.dart @@ -10,8 +10,9 @@ import 'package:amplify_core/amplify_core.dart'; import 'package:device_info_plus/device_info_plus.dart'; import 'package:flutter/services.dart'; -final AmplifyLogger _logger = AmplifyLogger.category(Category.analytics) - .createChild('DeviceInfoProviderIO'); +final AmplifyLogger _logger = AmplifyLogger.category( + Category.analytics, +).createChild('DeviceInfoProviderIO'); /// {@macro amplify_analytics_pinpoint.device_info_provider} Future getDeviceInfo() async { diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/flutter_device_context_info_provider.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/flutter_device_context_info_provider.dart index 566faf921a..3a5c80632c 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/flutter_device_context_info_provider.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/device_context_info_provider/flutter_device_context_info_provider.dart @@ -38,10 +38,6 @@ class FlutterDeviceContextInfoProvider implements DeviceContextInfoProvider { Future _getAppInfo() async { final info = await PackageInfo.fromPlatform(); - return AppInfo( - info.appName, - info.packageName, - info.version, - ); + return AppInfo(info.appName, info.packageName, info.version); } } diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_endpoint_info_store_manager.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_endpoint_info_store_manager.dart index 2752f75676..4c08e4dcbb 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_endpoint_info_store_manager.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/flutter_endpoint_info_store_manager.dart @@ -13,10 +13,10 @@ import 'package:amplify_secure_storage/amplify_secure_storage.dart'; class FlutterEndpointInfoStoreManager extends EndpointInfoStoreManager { /// {@macro amplify_analytics_pinpoint.flutter_endpoint_store_manager} FlutterEndpointInfoStoreManager() - : super( - store: AmplifySecureStorage.factoryFrom()( - AmplifySecureStorageScope.awsPinpointAnalyticsPlugin, - ), - legacyNativeDataProvider: FlutterLegacyNativeDataProvider(), - ); + : super( + store: AmplifySecureStorage.factoryFrom()( + AmplifySecureStorageScope.awsPinpointAnalyticsPlugin, + ), + legacyNativeDataProvider: FlutterLegacyNativeDataProvider(), + ); } diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/data_provider.ios.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/data_provider.ios.dart index 1e3dc15c3b..6ff07c6623 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/data_provider.ios.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/data_provider.ios.dart @@ -11,11 +11,10 @@ import 'package:amplify_secure_storage/amplify_secure_storage.dart'; class DataProviderIos implements LegacyNativeDataProvider { /// {@macro amplify_analytics_pinpoint.flutter_legacy_native_data_provider} DataProviderIos() - - // ignore: invalid_use_of_internal_member - : _keyValueStore = AmplifySecureStorage( - config: AmplifySecureStorageConfig.byNamespace(namespace: _context), - ); + // ignore: invalid_use_of_internal_member + : _keyValueStore = AmplifySecureStorage( + config: AmplifySecureStorageConfig.byNamespace(namespace: _context), + ); static const _context = 'com.amazonaws.AWSPinpointContext'; static const _key = 'com.amazonaws.AWSPinpointContextKeychainUniqueIdKey'; diff --git a/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/pigeon_legacy_data_provider.android.g.dart b/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/pigeon_legacy_data_provider.android.g.dart index aa21b12551..a895bb66b3 100644 --- a/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/pigeon_legacy_data_provider.android.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint/lib/src/legacy_native_data_provider/pigeon_legacy_data_provider.android.g.dart @@ -42,11 +42,12 @@ class PinpointLegacyDataProvider { /// Constructor for [PinpointLegacyDataProvider]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - PinpointLegacyDataProvider( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + PinpointLegacyDataProvider({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -58,12 +59,13 @@ class PinpointLegacyDataProvider { 'dev.flutter.pigeon.amplify_analytics_pinpoint.PinpointLegacyDataProvider.getEndpointId$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([pinpointAppId]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([pinpointAppId]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/packages/analytics/amplify_analytics_pinpoint/pubspec.yaml b/packages/analytics/amplify_analytics_pinpoint/pubspec.yaml index a1e9c5af51..b5b7f18832 100644 --- a/packages/analytics/amplify_analytics_pinpoint/pubspec.yaml +++ b/packages/analytics/amplify_analytics_pinpoint/pubspec.yaml @@ -1,13 +1,13 @@ name: amplify_analytics_pinpoint description: The Amplify Flutter Analytics category plugin using the AWS Pinpoint provider. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/analytics/amplify_analytics_pinpoint issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" # Helps `pana` since we do not use Flutter plugins for most platforms platforms: @@ -19,20 +19,21 @@ platforms: web: dependencies: - amplify_analytics_pinpoint_dart: ">=0.4.8 <0.5.0" - amplify_core: ">=2.6.1 <2.7.0" - amplify_db_common: ">=0.4.9 <0.5.0" - amplify_secure_storage: ">=0.5.8 <0.6.0" - aws_common: ">=0.7.6 <0.8.0" - device_info_plus: ^10.0.1 + amplify_analytics_pinpoint_dart: ">=0.4.9 <0.5.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_db_common: ">=0.4.10 <0.5.0" + amplify_secure_storage: ">=0.5.9 <0.6.0" + aws_common: ">=0.7.7 <0.8.0" + device_info_plus: ^11.3.3 + flutter: sdk: flutter - meta: ^1.7.0 + meta: ^1.16.0 package_info_plus: ^8.0.0 path_provider: ^2.0.0 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" flutter_test: sdk: flutter pigeon: ^22.6.2 diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/CHANGELOG.md b/packages/analytics/amplify_analytics_pinpoint_dart/CHANGELOG.md index 6e6bb7358c..d924a6b639 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/CHANGELOG.md +++ b/packages/analytics/amplify_analytics_pinpoint_dart/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.9 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.4.8 - Minor bug fixes and improvements diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/amplify_analytics_pinpoint_dart.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/amplify_analytics_pinpoint_dart.dart index ca7b1bc381..453a05c234 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/amplify_analytics_pinpoint_dart.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/amplify_analytics_pinpoint_dart.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Amplify Analytics Pinpoint for Dart. -library amplify_analytics_pinpoint_dart; +library; export 'src/analytics_plugin_impl.dart'; export 'src/analytics_plugin_options.dart'; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/analytics_plugin_impl.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/analytics_plugin_impl.dart index a7187214a3..8b33e25fcf 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/analytics_plugin_impl.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/analytics_plugin_impl.dart @@ -41,13 +41,13 @@ class AmplifyAnalyticsPinpointDart extends AnalyticsPluginInterface { SecureStorageFactory? secureStorageFactory, AnalyticsPinpointPluginOptions options = const AnalyticsPinpointPluginOptions(), - }) : _pathProvider = pathProvider, - _legacyNativeDataProvider = legacyNativeDataProvider, - _deviceContextInfoProvider = deviceContextInfoProvider, - _appLifecycleProvider = appLifecycleProvider, - _secureStorageFactory = - secureStorageFactory ?? AmplifySecureStorageWorker.factoryFrom(), - _options = options; + }) : _pathProvider = pathProvider, + _legacyNativeDataProvider = legacyNativeDataProvider, + _deviceContextInfoProvider = deviceContextInfoProvider, + _appLifecycleProvider = appLifecycleProvider, + _secureStorageFactory = + secureStorageFactory ?? AmplifySecureStorageWorker.factoryFrom(), + _options = options; void _ensureConfigured() { if (!_isConfigured) { @@ -95,8 +95,9 @@ class AmplifyAnalyticsPinpointDart extends AnalyticsPluginInterface { final region = pinpointConfig.awsRegion; // Prepare PinpointClient - final authProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.iam.authProviderToken); + final authProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ); if (authProvider == null) { throw ConfigurationError( @@ -113,7 +114,8 @@ class AmplifyAnalyticsPinpointDart extends AnalyticsPluginInterface { AmplifySecureStorageScope.awsPinpointAnalyticsPlugin, ); - final analyticsClient = dependencies.get() ?? + final analyticsClient = + dependencies.get() ?? AnalyticsClient( endpointStorage: endpointStorage, deviceContextInfoProvider: _deviceContextInfoProvider, @@ -214,9 +216,7 @@ class AmplifyAnalyticsPinpointDart extends AnalyticsPluginInterface { } @override - Future recordEvent({ - required AnalyticsEvent event, - }) async { + Future recordEvent({required AnalyticsEvent event}) async { _ensureConfigured(); await _eventClient.recordEvent( eventType: event.name, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/exception/pinpoint_analytics_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/exception/pinpoint_analytics_exception.dart index f67c1f3d37..fdc85c6194 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/exception/pinpoint_analytics_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/exception/pinpoint_analytics_exception.dart @@ -4,9 +4,7 @@ import 'package:amplify_analytics_pinpoint_dart/src/sdk/pinpoint.dart'; import 'package:amplify_core/amplify_core.dart'; -AnalyticsException _fromBadRequestException( - BadRequestException exception, -) { +AnalyticsException _fromBadRequestException(BadRequestException exception) { return UnknownException( 'Error in request data sent to Pinpoint.', recoverySuggestion: AmplifyExceptionMessages.missingExceptionMessage, @@ -15,9 +13,7 @@ AnalyticsException _fromBadRequestException( } /// Creates a [AnalyticsException] from a [ForbiddenException]. -AnalyticsException _fromForbiddenException( - ForbiddenException exception, -) { +AnalyticsException _fromForbiddenException(ForbiddenException exception) { return UnknownException( 'Forbidden from accessing the Pinpoint resource.', recoverySuggestion: diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/analytics_client.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/analytics_client.dart index f5ed4ac3c6..e07ab3a8b3 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/analytics_client.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/analytics_client.dart @@ -33,8 +33,8 @@ class AnalyticsClient { AnalyticsClient._( DeviceContextInfoProvider? deviceContextInfoProvider, EndpointInfoStoreManager endpointInfoStoreManager, - ) : _deviceContextInfoProvider = deviceContextInfoProvider, - _endpointInfoStoreManager = endpointInfoStoreManager; + ) : _deviceContextInfoProvider = deviceContextInfoProvider, + _endpointInfoStoreManager = endpointInfoStoreManager; final DeviceContextInfoProvider? _deviceContextInfoProvider; final EndpointInfoStoreManager _endpointInfoStoreManager; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_client.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_client.dart index 8f32f79946..f438900b24 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_client.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_client.dart @@ -24,26 +24,27 @@ class EndpointClient { required PinpointClient pinpointClient, required EndpointInfoStoreManager endpointInfoStoreManager, DeviceContextInfo? deviceContextInfo, - }) : _pinpointAppId = pinpointAppId, - _pinpointClient = pinpointClient, - _fixedEndpointId = endpointInfoStoreManager.endpointId, - _globalFieldsManager = endpointInfoStoreManager.endpointFields, - _endpointBuilder = PublicEndpoint( - effectiveDate: DateTime.now().toUtc().toIso8601String(), - demographic: EndpointDemographic( - appVersion: deviceContextInfo?.appVersion, - locale: deviceContextInfo?.locale, - make: deviceContextInfo?.make, - model: deviceContextInfo?.model, - modelVersion: deviceContextInfo?.modelVersion, - platform: deviceContextInfo?.platform?.name, - platformVersion: deviceContextInfo?.platformVersion, - timezone: deviceContextInfo?.timezone, - ), - location: EndpointLocation( - country: deviceContextInfo?.countryCode, - ), - ).toBuilder(); + }) : _pinpointAppId = pinpointAppId, + _pinpointClient = pinpointClient, + _fixedEndpointId = endpointInfoStoreManager.endpointId, + _globalFieldsManager = endpointInfoStoreManager.endpointFields, + _endpointBuilder = + PublicEndpoint( + effectiveDate: DateTime.now().toUtc().toIso8601String(), + demographic: EndpointDemographic( + appVersion: deviceContextInfo?.appVersion, + locale: deviceContextInfo?.locale, + make: deviceContextInfo?.make, + model: deviceContextInfo?.model, + modelVersion: deviceContextInfo?.modelVersion, + platform: deviceContextInfo?.platform?.name, + platformVersion: deviceContextInfo?.platformVersion, + timezone: deviceContextInfo?.timezone, + ), + location: EndpointLocation( + country: deviceContextInfo?.countryCode, + ), + ).toBuilder(); late final String _fixedEndpointId; late final EndpointGlobalFieldsManager _globalFieldsManager; @@ -82,10 +83,7 @@ class EndpointClient { /// /// Copies the fields of [userProfile] /// into a [EndpointUserBuilder] and [PublicEndpointBuilder]. - Future setUser( - String userId, - UserProfile? userProfile, - ) async { + Future setUser(String userId, UserProfile? userProfile) async { final newUserBuilder = EndpointUserBuilder()..userId = userId; // The [AnalyticsUserProfile] name, email, and plan fields are added as regular attributes to the local Endpoint @@ -117,16 +115,19 @@ class EndpointClient { // Instead of the [EndpointUserBuilder] object. // TODO(kylechen): Analytics API provides no way to remove these attributes ... if (userProfile?.customProperties != null) { - await _globalFieldsManager - .addAttributes(userProfile!.customProperties!.attributes); - await _globalFieldsManager - .addMetrics(userProfile.customProperties!.metrics); + await _globalFieldsManager.addAttributes( + userProfile!.customProperties!.attributes, + ); + await _globalFieldsManager.addMetrics( + userProfile.customProperties!.metrics, + ); } if (userProfile is AWSPinpointUserProfile && userProfile.userAttributes != null) { - newUserBuilder.userAttributes = - ListMultimapBuilder(userProfile.userAttributes); + newUserBuilder.userAttributes = ListMultimapBuilder( + userProfile.userAttributes, + ); } _endpointBuilder.user = newUserBuilder; @@ -167,18 +168,19 @@ class EndpointClient { /// Create an EndpointRequest object from a local Endpoint instance. EndpointRequest _endpointToRequest(PublicEndpoint publicEndpoint) { return EndpointRequest.build( - (b) => b - ..address = publicEndpoint.address - ..attributes.replace(publicEndpoint.attributes) - ..channelType = publicEndpoint.channelType - ..demographic = publicEndpoint.demographic?.toBuilder() - ..effectiveDate = publicEndpoint.effectiveDate - ..endpointStatus = publicEndpoint.endpointStatus - ..location = publicEndpoint.location?.toBuilder() - ..metrics.replace(publicEndpoint.metrics ?? const {}) - ..optOut = publicEndpoint.optOut - ..requestId = publicEndpoint.requestId - ..user = publicEndpoint.user?.toBuilder(), + (b) => + b + ..address = publicEndpoint.address + ..attributes.replace(publicEndpoint.attributes) + ..channelType = publicEndpoint.channelType + ..demographic = publicEndpoint.demographic?.toBuilder() + ..effectiveDate = publicEndpoint.effectiveDate + ..endpointStatus = publicEndpoint.endpointStatus + ..location = publicEndpoint.location?.toBuilder() + ..metrics.replace(publicEndpoint.metrics ?? const {}) + ..optOut = publicEndpoint.optOut + ..requestId = publicEndpoint.requestId + ..user = publicEndpoint.user?.toBuilder(), ); } } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_global_fields_manager.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_global_fields_manager.dart index a2a36e4b39..e034b30d59 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_global_fields_manager.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_global_fields_manager.dart @@ -19,9 +19,7 @@ import 'package:meta/meta.dart'; /// {@endtemplate} class EndpointGlobalFieldsManager { /// {@macro amplify_analytics_pinpoint_dart.endpoint_global_fields_manager} - EndpointGlobalFieldsManager._( - this._endpointInfoStore, - ); + EndpointGlobalFieldsManager._(this._endpointInfoStore); /// Create and initialize an [EndpointGlobalFieldsManager]. static Future create( @@ -47,9 +45,9 @@ class EndpointGlobalFieldsManager { late final Map _globalMetrics; // Internal variables - static final AmplifyLogger _logger = - AmplifyLogger.category(Category.analytics) - .createChild('EndpointGlobalFieldsManager'); + static final AmplifyLogger _logger = AmplifyLogger.category( + Category.analytics, + ).createChild('EndpointGlobalFieldsManager'); /// Get GlobalAttributes managed by this instance. UnmodifiableMapView get globalAttributes => diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_info_store_manager.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_info_store_manager.dart index 54ffade7cc..e56b81b2ee 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_info_store_manager.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/endpoint_client/endpoint_info_store_manager.dart @@ -17,8 +17,8 @@ class EndpointInfoStoreManager { EndpointInfoStoreManager({ required SecureStorageInterface store, LegacyNativeDataProvider? legacyNativeDataProvider, - }) : _store = store, - _legacyNativeDataProvider = legacyNativeDataProvider; + }) : _store = store, + _legacyNativeDataProvider = legacyNativeDataProvider; final SecureStorageInterface _store; final LegacyNativeDataProvider? _legacyNativeDataProvider; @@ -26,9 +26,9 @@ class EndpointInfoStoreManager { late final String _pinpointAppId; late final EndpointStore _endpointStore; - static final AmplifyLogger _logger = - AmplifyLogger.category(Category.analytics) - .createChild('EndpointInfoStoreManager'); + static final AmplifyLogger _logger = AmplifyLogger.category( + Category.analytics, + ).createChild('EndpointInfoStoreManager'); var _isInit = false; @@ -53,15 +53,14 @@ class EndpointInfoStoreManager { /// Retrieve the stored pinpoint endpoint id. Future _retrieveEndpointId() async { - final storeVersion = await _store.read( - key: EndpointStoreKey.version.name, - ); + final storeVersion = await _store.read(key: EndpointStoreKey.version.name); // Migration: null -> v1. if (storeVersion == null) { if (_legacyNativeDataProvider != null) { - final legacyEndpointId = - await _legacyNativeDataProvider.getEndpointId(_pinpointAppId); + final legacyEndpointId = await _legacyNativeDataProvider.getEndpointId( + _pinpointAppId, + ); if (legacyEndpointId != null) { await _endpointStore.write( key: EndpointStoreKey.endpointId.name, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/event_client.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/event_client.dart index f84a60f46d..d2a0aa1b49 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/event_client.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/event_client.dart @@ -30,15 +30,14 @@ class EventClient implements Closeable { required EndpointClient endpointClient, QueuedItemStore? eventStore, DeviceContextInfo? deviceContextInfo, - }) : _pinpointAppId = pinpointAppId, - _fixedEndpointId = endpointClient.fixedEndpointId, - _pinpointClient = pinpointClient, - _endpointClient = endpointClient, - _eventStorage = - EventStorageAdapter(eventStore ?? InMemoryQueuedItemStore()), - _eventCreator = EventCreator( - deviceContextInfo: deviceContextInfo, - ) { + }) : _pinpointAppId = pinpointAppId, + _fixedEndpointId = endpointClient.fixedEndpointId, + _pinpointClient = pinpointClient, + _endpointClient = endpointClient, + _eventStorage = EventStorageAdapter( + eventStore ?? InMemoryQueuedItemStore(), + ), + _eventCreator = EventCreator(deviceContextInfo: deviceContextInfo) { _listenForFlushEvents(); } @@ -69,8 +68,9 @@ class EventClient implements Closeable { } } - static final AmplifyLogger _logger = - AmplifyLogger.category(Category.analytics).createChild('EventClient'); + static final AmplifyLogger _logger = AmplifyLogger.category( + Category.analytics, + ).createChild('EventClient'); /// Record event to be sent in the next event batch on [flushEvents]. Future recordEvent({ @@ -87,16 +87,12 @@ class EventClient implements Closeable { } /// Register [CustomProperties] to be sent with all future events. - void registerGlobalProperties( - CustomProperties globalProperties, - ) { + void registerGlobalProperties(CustomProperties globalProperties) { return _eventCreator.registerGlobalProperties(globalProperties); } /// Unregister [CustomProperties] to not be sent with all future events. - void unregisterGlobalProperties( - List propertyNames, - ) { + void unregisterGlobalProperties(List propertyNames) { return _eventCreator.unregisterGlobalProperties(propertyNames); } @@ -135,14 +131,15 @@ class EventClient implements Closeable { final batchItems = {_fixedEndpointId: batch}; try { - final result = await _pinpointClient - .putEvents( - PutEventsRequest( - applicationId: _pinpointAppId, - eventsRequest: EventsRequest(batchItem: batchItems), - ), - ) - .result; + final result = + await _pinpointClient + .putEvents( + PutEventsRequest( + applicationId: _pinpointAppId, + eventsRequest: EventsRequest(batchItem: batchItems), + ), + ) + .result; // Parse the EndpointResponse portion of Result final endpointResponse = result.eventsResponse.results?[_fixedEndpointId]; @@ -196,8 +193,9 @@ class EventClient implements Closeable { _logger ..warn('putEvents - PayloadTooLarge exception: ', e) ..warn( - 'Pinpoint event batch limits exceeded: 100 events / 4 mb total size / 1 mb max size per event \n ' - 'Reduce your event size or change number of events in a batch') + 'Pinpoint event batch limits exceeded: 100 events / 4 mb total size / 1 mb max size per event \n ' + 'Reduce your event size or change number of events in a batch', + ) ..warn('Unrecoverable issue, deleting cache for local event batch'); } on AWSHttpException { // AWSHttpException indicates request did not complete diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.dart index a11cba29a3..d15d0c9813 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.dart @@ -54,22 +54,21 @@ class DriftQueuedItemStore extends _$DriftQueuedItemStore @override Future addItem(String value) async { - await into(driftQueuedItems) - .insert(DriftQueuedItemsCompanion(value: Value(value))); + await into( + driftQueuedItems, + ).insert(DriftQueuedItemsCompanion(value: Value(value))); } @override Future> getCount(int count) async { - final statement = (select(driftQueuedItems) - ..orderBy([(v) => OrderingTerm.asc(v.id)]) - ..limit(count)); + final statement = + (select(driftQueuedItems) + ..orderBy([(v) => OrderingTerm.asc(v.id)]) + ..limit(count)); final retrievedItems = await statement.get(); return retrievedItems.map( - (item) => QueuedItem( - id: item.id, - value: item.value, - ), + (item) => QueuedItem(id: item.id, value: item.value), ); } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.g.dart index 05eb825427..3349b3245a 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/drift/drift_queued_item_store.g.dart @@ -12,17 +12,25 @@ class $DriftQueuedItemsTable extends DriftQueuedItems static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); static const VerificationMeta _valueMeta = const VerificationMeta('value'); @override late final GeneratedColumn value = GeneratedColumn( - 'value', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + 'value', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); @override List get $columns => [id, value]; @override @@ -31,8 +39,10 @@ class $DriftQueuedItemsTable extends DriftQueuedItems String get actualTableName => $name; static const String $name = 'drift_queued_items'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -40,7 +50,9 @@ class $DriftQueuedItemsTable extends DriftQueuedItems } if (data.containsKey('value')) { context.handle( - _valueMeta, value.isAcceptableOrUnknown(data['value']!, _valueMeta)); + _valueMeta, + value.isAcceptableOrUnknown(data['value']!, _valueMeta), + ); } else if (isInserting) { context.missing(_valueMeta); } @@ -53,10 +65,16 @@ class $DriftQueuedItemsTable extends DriftQueuedItems DriftQueuedItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return DriftQueuedItem( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - value: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}value'])!, + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + value: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}value'], + )!, ); } @@ -82,14 +100,13 @@ class DriftQueuedItem extends DataClass implements Insertable { } DriftQueuedItemsCompanion toCompanion(bool nullToAbsent) { - return DriftQueuedItemsCompanion( - id: Value(id), - value: Value(value), - ); + return DriftQueuedItemsCompanion(id: Value(id), value: Value(value)); } - factory DriftQueuedItem.fromJson(Map json, - {ValueSerializer? serializer}) { + factory DriftQueuedItem.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return DriftQueuedItem( id: serializer.fromJson(json['id']), @@ -105,10 +122,8 @@ class DriftQueuedItem extends DataClass implements Insertable { }; } - DriftQueuedItem copyWith({int? id, String? value}) => DriftQueuedItem( - id: id ?? this.id, - value: value ?? this.value, - ); + DriftQueuedItem copyWith({int? id, String? value}) => + DriftQueuedItem(id: id ?? this.id, value: value ?? this.value); DriftQueuedItem copyWithCompanion(DriftQueuedItemsCompanion data) { return DriftQueuedItem( id: data.id.present ? data.id.value : this.id, @@ -189,8 +204,9 @@ abstract class _$DriftQueuedItemStore extends GeneratedDatabase { _$DriftQueuedItemStore(QueryExecutor e) : super(e); $DriftQueuedItemStoreManager get managers => $DriftQueuedItemStoreManager(this); - late final $DriftQueuedItemsTable driftQueuedItems = - $DriftQueuedItemsTable(this); + late final $DriftQueuedItemsTable driftQueuedItems = $DriftQueuedItemsTable( + this, + ); @override Iterable> get allTables => allSchemaEntities.whereType>(); @@ -198,16 +214,10 @@ abstract class _$DriftQueuedItemStore extends GeneratedDatabase { List get allSchemaEntities => [driftQueuedItems]; } -typedef $$DriftQueuedItemsTableCreateCompanionBuilder - = DriftQueuedItemsCompanion Function({ - Value id, - required String value, -}); -typedef $$DriftQueuedItemsTableUpdateCompanionBuilder - = DriftQueuedItemsCompanion Function({ - Value id, - Value value, -}); +typedef $$DriftQueuedItemsTableCreateCompanionBuilder = + DriftQueuedItemsCompanion Function({Value id, required String value}); +typedef $$DriftQueuedItemsTableUpdateCompanionBuilder = + DriftQueuedItemsCompanion Function({Value id, Value value}); class $$DriftQueuedItemsTableFilterComposer extends Composer<_$DriftQueuedItemStore, $DriftQueuedItemsTable> { @@ -219,10 +229,14 @@ class $$DriftQueuedItemsTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get value => $composableBuilder( - column: $table.value, builder: (column) => ColumnFilters(column)); + column: $table.value, + builder: (column) => ColumnFilters(column), + ); } class $$DriftQueuedItemsTableOrderingComposer @@ -235,10 +249,14 @@ class $$DriftQueuedItemsTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get value => $composableBuilder( - column: $table.value, builder: (column) => ColumnOrderings(column)); + column: $table.value, + builder: (column) => ColumnOrderings(column), + ); } class $$DriftQueuedItemsTableAnnotationComposer @@ -257,72 +275,92 @@ class $$DriftQueuedItemsTableAnnotationComposer $composableBuilder(column: $table.value, builder: (column) => column); } -class $$DriftQueuedItemsTableTableManager extends RootTableManager< - _$DriftQueuedItemStore, - $DriftQueuedItemsTable, - DriftQueuedItem, - $$DriftQueuedItemsTableFilterComposer, - $$DriftQueuedItemsTableOrderingComposer, - $$DriftQueuedItemsTableAnnotationComposer, - $$DriftQueuedItemsTableCreateCompanionBuilder, - $$DriftQueuedItemsTableUpdateCompanionBuilder, - ( - DriftQueuedItem, - BaseReferences<_$DriftQueuedItemStore, $DriftQueuedItemsTable, - DriftQueuedItem> - ), - DriftQueuedItem, - PrefetchHooks Function()> { +class $$DriftQueuedItemsTableTableManager + extends + RootTableManager< + _$DriftQueuedItemStore, + $DriftQueuedItemsTable, + DriftQueuedItem, + $$DriftQueuedItemsTableFilterComposer, + $$DriftQueuedItemsTableOrderingComposer, + $$DriftQueuedItemsTableAnnotationComposer, + $$DriftQueuedItemsTableCreateCompanionBuilder, + $$DriftQueuedItemsTableUpdateCompanionBuilder, + ( + DriftQueuedItem, + BaseReferences< + _$DriftQueuedItemStore, + $DriftQueuedItemsTable, + DriftQueuedItem + >, + ), + DriftQueuedItem, + PrefetchHooks Function() + > { $$DriftQueuedItemsTableTableManager( - _$DriftQueuedItemStore db, $DriftQueuedItemsTable table) - : super(TableManagerState( + _$DriftQueuedItemStore db, + $DriftQueuedItemsTable table, + ) : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$DriftQueuedItemsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$DriftQueuedItemsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$DriftQueuedItemsTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value value = const Value.absent(), - }) => - DriftQueuedItemsCompanion( - id: id, - value: value, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required String value, - }) => - DriftQueuedItemsCompanion.insert( - id: id, - value: value, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => + $$DriftQueuedItemsTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$DriftQueuedItemsTableOrderingComposer( + $db: db, + $table: table, + ), + createComputedFieldComposer: + () => $$DriftQueuedItemsTableAnnotationComposer( + $db: db, + $table: table, + ), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value value = const Value.absent(), + }) => DriftQueuedItemsCompanion(id: id, value: value), + createCompanionCallback: + ({Value id = const Value.absent(), required String value}) => + DriftQueuedItemsCompanion.insert(id: id, value: value), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$DriftQueuedItemsTableProcessedTableManager = ProcessedTableManager< - _$DriftQueuedItemStore, - $DriftQueuedItemsTable, - DriftQueuedItem, - $$DriftQueuedItemsTableFilterComposer, - $$DriftQueuedItemsTableOrderingComposer, - $$DriftQueuedItemsTableAnnotationComposer, - $$DriftQueuedItemsTableCreateCompanionBuilder, - $$DriftQueuedItemsTableUpdateCompanionBuilder, - ( +typedef $$DriftQueuedItemsTableProcessedTableManager = + ProcessedTableManager< + _$DriftQueuedItemStore, + $DriftQueuedItemsTable, DriftQueuedItem, - BaseReferences<_$DriftQueuedItemStore, $DriftQueuedItemsTable, - DriftQueuedItem> - ), - DriftQueuedItem, - PrefetchHooks Function()>; + $$DriftQueuedItemsTableFilterComposer, + $$DriftQueuedItemsTableOrderingComposer, + $$DriftQueuedItemsTableAnnotationComposer, + $$DriftQueuedItemsTableCreateCompanionBuilder, + $$DriftQueuedItemsTableUpdateCompanionBuilder, + ( + DriftQueuedItem, + BaseReferences< + _$DriftQueuedItemStore, + $DriftQueuedItemsTable, + DriftQueuedItem + >, + ), + DriftQueuedItem, + PrefetchHooks Function() + >; class $DriftQueuedItemStoreManager { final _$DriftQueuedItemStore _db; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/in_memory_queued_item_store.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/in_memory_queued_item_store.dart index 4d68f98838..abb4699628 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/in_memory_queued_item_store.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/in_memory_queued_item_store.dart @@ -19,10 +19,7 @@ class InMemoryQueuedItemStore implements QueuedItemStore { @override void addItem(String string) { - _database[_nextId] = QueuedItem( - id: _nextId, - value: string, - ); + _database[_nextId] = QueuedItem(id: _nextId, value: string); _nextId++; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/indexed_db_adapter.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/indexed_db_adapter.dart index d1b8ff78c4..fafc340478 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/indexed_db_adapter.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_client/queued_item_store/index_db/indexed_db_adapter.dart @@ -85,9 +85,7 @@ class IndexedDbAdapter implements QueuedItemStore { final value = elem as Object; final id = getProperty(value, 'id'); final string = getProperty(value, 'value'); - readValues.add( - QueuedItem(id: id, value: string), - ); + readValues.add(QueuedItem(id: id, value: string)); } return readValues; } @@ -101,9 +99,9 @@ class IndexedDbAdapter implements QueuedItemStore { await _databaseOpenEvent; final store = _getObjectStore(); - final ranges = idsToDelete.splitBetween((a, b) => b != a + 1).map( - (range) => IDBKeyRange.bound(range.first, range.last), - ); + final ranges = idsToDelete + .splitBetween((a, b) => b != a + 1) + .map((range) => IDBKeyRange.bound(range.first, range.last)); await Future.wait( ranges.map((range) => store.deleteByKeyRange(range).future), ); diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_creator/event_creator.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_creator/event_creator.dart index 8bcfdfbc40..940134d3e9 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_creator/event_creator.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/event_creator/event_creator.dart @@ -15,9 +15,8 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class EventCreator { /// {@macro amplify_analytics_pinpoint_dart.event_creator} - EventCreator({ - DeviceContextInfo? deviceContextInfo, - }) : _deviceContextInfo = deviceContextInfo; + EventCreator({DeviceContextInfo? deviceContextInfo}) + : _deviceContextInfo = deviceContextInfo; static const int _maxEventTypeLength = 50; @@ -39,14 +38,15 @@ class EventCreator { ); } - final eventBuilder = EventBuilder() - ..eventType = eventType - ..sdkName = 'amplify-flutter' - ..clientSdkVersion = packageVersion - ..timestamp = DateTime.now().toUtc().toIso8601String() - ..appTitle = _deviceContextInfo?.appName - ..appPackageName = _deviceContextInfo?.appPackageName - ..appVersionCode = _deviceContextInfo?.appVersion; + final eventBuilder = + EventBuilder() + ..eventType = eventType + ..sdkName = 'amplify-flutter' + ..clientSdkVersion = packageVersion + ..timestamp = DateTime.now().toUtc().toIso8601String() + ..appTitle = _deviceContextInfo?.appName + ..appPackageName = _deviceContextInfo?.appPackageName + ..appVersionCode = _deviceContextInfo?.appVersion; if (session != null) eventBuilder.session.replace(session); eventBuilder @@ -63,9 +63,7 @@ class EventCreator { } /// Register new global properties that will be added to all newly created events. - void registerGlobalProperties( - CustomProperties globalProperties, - ) => + void registerGlobalProperties(CustomProperties globalProperties) => _globalFieldsManager.addGlobalProperties(globalProperties); /// Unregister global properties that will no longer be added to all newly created events. diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/session_manager.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/session_manager.dart index 9420659a01..3b3822be87 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/session_manager.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/analytics_client/session_manager.dart @@ -39,10 +39,10 @@ class SessionManager { AppLifecycleProvider? appLifecycleProvider, required OnSessionUpdated onSessionStart, required OnSessionUpdated onSessionEnd, - }) : _fixedEndpointId = fixedEndpointId, - _appLifecycleProvider = appLifecycleProvider, - _onSessionStart = onSessionStart, - _onSessionEnd = onSessionEnd { + }) : _fixedEndpointId = fixedEndpointId, + _appLifecycleProvider = appLifecycleProvider, + _onSessionStart = onSessionStart, + _onSessionEnd = onSessionEnd { _appLifecycleProvider?.setOnForegroundListener(startSession); _appLifecycleProvider?.setOnBackgroundListener(stopSession); } @@ -112,15 +112,16 @@ class _SessionCreator { const _SessionCreator({ required int startTimeMilliseconds, required SessionBuilder sessionBuilder, - }) : _startTimeMilliseconds = startTimeMilliseconds, - _sessionBuilder = sessionBuilder; + }) : _startTimeMilliseconds = startTimeMilliseconds, + _sessionBuilder = sessionBuilder; factory _SessionCreator.createSession(String fixedEndpointId) { final curTime = DateTime.now(); - final sessionBuilder = SessionBuilder() - ..id = _generateSessionId(fixedEndpointId) - ..startTimestamp = curTime.toUtc().toIso8601String(); + final sessionBuilder = + SessionBuilder() + ..id = _generateSessionId(fixedEndpointId) + ..startTimestamp = curTime.toUtc().toIso8601String(); final startTimeMilliseconds = curTime.millisecondsSinceEpoch; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_context_info_provider.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_context_info_provider.dart index 881a71eef5..060f2c9a5c 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_context_info_provider.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_context_info_provider.dart @@ -63,9 +63,9 @@ class DeviceContextInfo { this.platformVersion, }); - static final AmplifyLogger _logger = - AmplifyLogger.category(Category.analytics) - .createChild('DeviceContextInfoProvider'); + static final AmplifyLogger _logger = AmplifyLogger.category( + Category.analytics, + ).createChild('DeviceContextInfoProvider'); static const int _maxFieldLength = 50; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_platform.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_platform.dart index d4f8fb80c9..c704b4a0f5 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_platform.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/impl/flutter_provider_interfaces/device_platform.dart @@ -4,12 +4,4 @@ // ignore_for_file: public_member_api_docs /// Representation of current platform to be sent to Pinpoint. -enum DevicePlatform { - iOS, - android, - web, - macOS, - windows, - linux, - unknown, -} +enum DevicePlatform { iOS, android, web, macOS, windows, linux, unknown } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/pinpoint.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/pinpoint.dart index 789037c3ca..d8df5a64f5 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/pinpoint.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/pinpoint.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas,unnecessary_library_name /// # Amazon Pinpoint /// diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/sdk_bridge.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/sdk_bridge.dart index e7ecac9752..da99656b03 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/sdk_bridge.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/sdk_bridge.dart @@ -25,10 +25,10 @@ class WrappedPinpointClient implements PinpointClient { Uri? baseUri, required AWSCredentialsProvider credentialsProvider, }) : _base = PinpointClient( - region: region, - baseUri: baseUri, - credentialsProvider: credentialsProvider, - ); + region: region, + baseUri: baseUri, + credentialsProvider: credentialsProvider, + ); final PinpointClient _base; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/endpoint_resolver.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/endpoint_resolver.dart index 54e38d8f42..a64082fdf8 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/endpoint_resolver.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/endpoint_resolver.dart @@ -70,7 +70,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 'pinpoint-fips.us-east-1.amazonaws.com', tags: ['fips'], - ) + ), ], ), 'us-west-2': _i1.EndpointDefinition( @@ -80,7 +80,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 'pinpoint-fips.us-west-2.amazonaws.com', tags: ['fips'], - ) + ), ], ), }, @@ -97,10 +97,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -115,10 +112,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -148,10 +142,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(service: 'mobiletargeting'), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-west-1': _i1.EndpointDefinition( hostname: 'pinpoint-fips.us-gov-west-1.amazonaws.com', @@ -165,14 +156,15 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 'pinpoint-fips.us-gov-west-1.amazonaws.com', tags: ['fips'], - ) + ), ], ), }, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Pinpoint'; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/serializers.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/serializers.dart index e289e1a718..d830b7fa09 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/serializers.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/common/serializers.dart @@ -124,83 +124,33 @@ const List<_i1.SmithySerializer> serializers = [ ...UpdateEndpointsBatchResponse.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(InAppMessageContent)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(AttributeDimension), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(MetricDimension), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(InAppMessageCampaign)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(Event), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(EventsBatch), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(EventItemResponse), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(ItemResponse), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(EndpointBatchItem)], - ): _i2.ListBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(double)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(InAppMessageContent)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(AttributeDimension), + ]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(MetricDimension)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(InAppMessageCampaign)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(Event)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(EventsBatch)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(EventItemResponse)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(ItemResponse)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(EndpointBatchItem)]): + _i2.ListBuilder.new, }; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/alignment.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/alignment.dart index ac82a6279b..bec4f9ba94 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/alignment.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/alignment.dart @@ -6,31 +6,15 @@ library amplify_analytics_pinpoint_dart.pinpoint.model.alignment; // ignore_for_ import 'package:smithy/smithy.dart' as _i1; class Alignment extends _i1.SmithyEnum { - const Alignment._( - super.index, - super.name, - super.value, - ); + const Alignment._(super.index, super.name, super.value); const Alignment._sdkUnknown(super.value) : super.sdkUnknown(); - static const center = Alignment._( - 0, - 'CENTER', - 'CENTER', - ); + static const center = Alignment._(0, 'CENTER', 'CENTER'); - static const left = Alignment._( - 1, - 'LEFT', - 'LEFT', - ); + static const left = Alignment._(1, 'LEFT', 'LEFT'); - static const right = Alignment._( - 2, - 'RIGHT', - 'RIGHT', - ); + static const right = Alignment._(2, 'RIGHT', 'RIGHT'); /// All values of [Alignment]. static const values = [ @@ -45,12 +29,9 @@ class Alignment extends _i1.SmithyEnum { values: values, sdkUnknown: Alignment._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.dart index 9571a2e5a5..5c020ddcc0 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.dart @@ -28,14 +28,14 @@ abstract class AttributeDimension } /// Specifies attribute-based criteria for including or excluding endpoints from a segment. - factory AttributeDimension.build( - [void Function(AttributeDimensionBuilder) updates]) = - _$AttributeDimension; + factory AttributeDimension.build([ + void Function(AttributeDimensionBuilder) updates, + ]) = _$AttributeDimension; const AttributeDimension._(); static const List<_i3.SmithySerializer> serializers = [ - AttributeDimensionRestJson1Serializer() + AttributeDimensionRestJson1Serializer(), ]; /// The type of segment dimension to use. Valid values are: @@ -52,21 +52,13 @@ abstract class AttributeDimension /// The criteria values to use for the segment dimension. Depending on the value of the AttributeType property, endpoints are included or excluded from the segment if their attribute values match the criteria values. _i2.BuiltList get values; @override - List get props => [ - attributeType, - values, - ]; + List get props => [attributeType, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('AttributeDimension') - ..add( - 'attributeType', - attributeType, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('AttributeDimension') + ..add('attributeType', attributeType) + ..add('values', values); return helper.toString(); } } @@ -76,17 +68,11 @@ class AttributeDimensionRestJson1Serializer const AttributeDimensionRestJson1Serializer() : super('AttributeDimension'); @override - Iterable get types => const [ - AttributeDimension, - _$AttributeDimension, - ]; + Iterable get types => const [AttributeDimension, _$AttributeDimension]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AttributeDimension deserialize( Serializers serializers, @@ -104,18 +90,22 @@ class AttributeDimensionRestJson1Serializer } switch (key) { case 'AttributeType': - result.attributeType = (serializers.deserialize( - value, - specifiedType: const FullType(AttributeType), - ) as AttributeType); + result.attributeType = + (serializers.deserialize( + value, + specifiedType: const FullType(AttributeType), + ) + as AttributeType); case 'Values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -134,19 +124,18 @@ class AttributeDimensionRestJson1Serializer 'Values', serializers.serialize( values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), ]); if (attributeType != null) { result$ ..add('AttributeType') - ..add(serializers.serialize( - attributeType, - specifiedType: const FullType(AttributeType), - )); + ..add( + serializers.serialize( + attributeType, + specifiedType: const FullType(AttributeType), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.g.dart index c5f7e0f376..193c2e682c 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_dimension.g.dart @@ -12,20 +12,23 @@ class _$AttributeDimension extends AttributeDimension { @override final _i2.BuiltList values; - factory _$AttributeDimension( - [void Function(AttributeDimensionBuilder)? updates]) => - (new AttributeDimensionBuilder()..update(updates))._build(); + factory _$AttributeDimension([ + void Function(AttributeDimensionBuilder)? updates, + ]) => (new AttributeDimensionBuilder()..update(updates))._build(); _$AttributeDimension._({this.attributeType, required this.values}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - values, r'AttributeDimension', 'values'); + values, + r'AttributeDimension', + 'values', + ); } @override AttributeDimension rebuild( - void Function(AttributeDimensionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AttributeDimensionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AttributeDimensionBuilder toBuilder() => @@ -92,9 +95,12 @@ class AttributeDimensionBuilder _$AttributeDimension _build() { _$AttributeDimension _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AttributeDimension._( - attributeType: attributeType, values: values.build()); + attributeType: attributeType, + values: values.build(), + ); } catch (_) { late String _$failedField; try { @@ -102,7 +108,10 @@ class AttributeDimensionBuilder values.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AttributeDimension', _$failedField, e.toString()); + r'AttributeDimension', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_type.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_type.dart index b1c7b95175..c5dd785417 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_type.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/attribute_type.dart @@ -6,55 +6,23 @@ library amplify_analytics_pinpoint_dart.pinpoint.model.attribute_type; // ignore import 'package:smithy/smithy.dart' as _i1; class AttributeType extends _i1.SmithyEnum { - const AttributeType._( - super.index, - super.name, - super.value, - ); + const AttributeType._(super.index, super.name, super.value); const AttributeType._sdkUnknown(super.value) : super.sdkUnknown(); - static const after = AttributeType._( - 0, - 'AFTER', - 'AFTER', - ); + static const after = AttributeType._(0, 'AFTER', 'AFTER'); - static const before = AttributeType._( - 1, - 'BEFORE', - 'BEFORE', - ); + static const before = AttributeType._(1, 'BEFORE', 'BEFORE'); - static const between = AttributeType._( - 2, - 'BETWEEN', - 'BETWEEN', - ); + static const between = AttributeType._(2, 'BETWEEN', 'BETWEEN'); - static const contains = AttributeType._( - 3, - 'CONTAINS', - 'CONTAINS', - ); + static const contains = AttributeType._(3, 'CONTAINS', 'CONTAINS'); - static const exclusive = AttributeType._( - 4, - 'EXCLUSIVE', - 'EXCLUSIVE', - ); + static const exclusive = AttributeType._(4, 'EXCLUSIVE', 'EXCLUSIVE'); - static const inclusive = AttributeType._( - 5, - 'INCLUSIVE', - 'INCLUSIVE', - ); + static const inclusive = AttributeType._(5, 'INCLUSIVE', 'INCLUSIVE'); - static const on = AttributeType._( - 6, - 'ON', - 'ON', - ); + static const on = AttributeType._(6, 'ON', 'ON'); /// All values of [AttributeType]. static const values = [ @@ -73,12 +41,9 @@ class AttributeType extends _i1.SmithyEnum { values: values, sdkUnknown: AttributeType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.dart index f1338ef1f5..5fede1ede2 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.dart @@ -17,20 +17,14 @@ abstract class BadRequestException Built, _i2.SmithyHttpException { /// Provides information about an API request or response. - factory BadRequestException({ - String? message, - String? requestId, - }) { - return _$BadRequestException._( - message: message, - requestId: requestId, - ); + factory BadRequestException({String? message, String? requestId}) { + return _$BadRequestException._(message: message, requestId: requestId); } /// Provides information about an API request or response. - factory BadRequestException.build( - [void Function(BadRequestExceptionBuilder) updates]) = - _$BadRequestException; + factory BadRequestException.build([ + void Function(BadRequestExceptionBuilder) updates, + ]) = _$BadRequestException; const BadRequestException._(); @@ -38,13 +32,12 @@ abstract class BadRequestException factory BadRequestException.fromResponse( BadRequestException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - BadRequestExceptionRestJson1Serializer() + BadRequestExceptionRestJson1Serializer(), ]; /// The message that's returned from the API. @@ -55,9 +48,9 @@ abstract class BadRequestException String? get requestId; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'BadRequestException', - ); + namespace: 'com.amazonaws.pinpoint', + shape: 'BadRequestException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -69,21 +62,13 @@ abstract class BadRequestException @override Exception? get underlyingException => null; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('BadRequestException') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('BadRequestException') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -94,16 +79,13 @@ class BadRequestExceptionRestJson1Serializer @override Iterable get types => const [ - BadRequestException, - _$BadRequestException, - ]; + BadRequestException, + _$BadRequestException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override BadRequestException deserialize( Serializers serializers, @@ -121,15 +103,19 @@ class BadRequestExceptionRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,18 +133,19 @@ class BadRequestExceptionRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.g.dart index 41a0f1f56a..5d60f41e9d 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/bad_request_exception.g.dart @@ -14,17 +14,17 @@ class _$BadRequestException extends BadRequestException { @override final Map? headers; - factory _$BadRequestException( - [void Function(BadRequestExceptionBuilder)? updates]) => - (new BadRequestExceptionBuilder()..update(updates))._build(); + factory _$BadRequestException([ + void Function(BadRequestExceptionBuilder)? updates, + ]) => (new BadRequestExceptionBuilder()..update(updates))._build(); _$BadRequestException._({this.message, this.requestId, this.headers}) - : super._(); + : super._(); @override BadRequestException rebuild( - void Function(BadRequestExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(BadRequestExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override BadRequestExceptionBuilder toBuilder() => @@ -92,9 +92,13 @@ class BadRequestExceptionBuilder BadRequestException build() => _build(); _$BadRequestException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$BadRequestException._( - message: message, requestId: requestId, headers: headers); + message: message, + requestId: requestId, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/button_action.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/button_action.dart index eeeaa33467..6259ed4615 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/button_action.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/button_action.dart @@ -6,31 +6,15 @@ library amplify_analytics_pinpoint_dart.pinpoint.model.button_action; // ignore_ import 'package:smithy/smithy.dart' as _i1; class ButtonAction extends _i1.SmithyEnum { - const ButtonAction._( - super.index, - super.name, - super.value, - ); + const ButtonAction._(super.index, super.name, super.value); const ButtonAction._sdkUnknown(super.value) : super.sdkUnknown(); - static const close = ButtonAction._( - 0, - 'CLOSE', - 'CLOSE', - ); + static const close = ButtonAction._(0, 'CLOSE', 'CLOSE'); - static const deepLink = ButtonAction._( - 1, - 'DEEP_LINK', - 'DEEP_LINK', - ); + static const deepLink = ButtonAction._(1, 'DEEP_LINK', 'DEEP_LINK'); - static const link = ButtonAction._( - 2, - 'LINK', - 'LINK', - ); + static const link = ButtonAction._(2, 'LINK', 'LINK'); /// All values of [ButtonAction]. static const values = [ @@ -45,12 +29,9 @@ class ButtonAction extends _i1.SmithyEnum { values: values, sdkUnknown: ButtonAction._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.dart index 68d672c250..1414327563 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.dart @@ -28,14 +28,14 @@ abstract class CampaignEventFilter } /// Specifies the settings for events that cause a campaign to be sent. - factory CampaignEventFilter.build( - [void Function(CampaignEventFilterBuilder) updates]) = - _$CampaignEventFilter; + factory CampaignEventFilter.build([ + void Function(CampaignEventFilterBuilder) updates, + ]) = _$CampaignEventFilter; const CampaignEventFilter._(); static const List<_i2.SmithySerializer> serializers = [ - CampaignEventFilterRestJson1Serializer() + CampaignEventFilterRestJson1Serializer(), ]; /// The dimension settings of the event filter for the campaign. @@ -44,21 +44,13 @@ abstract class CampaignEventFilter /// The type of event that causes the campaign to be sent. Valid values are: SYSTEM, sends the campaign when a system event occurs; and, ENDPOINT, sends the campaign when an endpoint event (Events resource) occurs. FilterType get filterType; @override - List get props => [ - dimensions, - filterType, - ]; + List get props => [dimensions, filterType]; @override String toString() { - final helper = newBuiltValueToStringHelper('CampaignEventFilter') - ..add( - 'dimensions', - dimensions, - ) - ..add( - 'filterType', - filterType, - ); + final helper = + newBuiltValueToStringHelper('CampaignEventFilter') + ..add('dimensions', dimensions) + ..add('filterType', filterType); return helper.toString(); } } @@ -69,16 +61,13 @@ class CampaignEventFilterRestJson1Serializer @override Iterable get types => const [ - CampaignEventFilter, - _$CampaignEventFilter, - ]; + CampaignEventFilter, + _$CampaignEventFilter, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override CampaignEventFilter deserialize( Serializers serializers, @@ -96,15 +85,20 @@ class CampaignEventFilterRestJson1Serializer } switch (key) { case 'Dimensions': - result.dimensions.replace((serializers.deserialize( - value, - specifiedType: const FullType(EventDimensions), - ) as EventDimensions)); + result.dimensions.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EventDimensions), + ) + as EventDimensions), + ); case 'FilterType': - result.filterType = (serializers.deserialize( - value, - specifiedType: const FullType(FilterType), - ) as FilterType); + result.filterType = + (serializers.deserialize( + value, + specifiedType: const FullType(FilterType), + ) + as FilterType); } } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.g.dart index fdf98543fa..23aa8db006 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/campaign_event_filter.g.dart @@ -12,22 +12,28 @@ class _$CampaignEventFilter extends CampaignEventFilter { @override final FilterType filterType; - factory _$CampaignEventFilter( - [void Function(CampaignEventFilterBuilder)? updates]) => - (new CampaignEventFilterBuilder()..update(updates))._build(); + factory _$CampaignEventFilter([ + void Function(CampaignEventFilterBuilder)? updates, + ]) => (new CampaignEventFilterBuilder()..update(updates))._build(); _$CampaignEventFilter._({required this.dimensions, required this.filterType}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - dimensions, r'CampaignEventFilter', 'dimensions'); + dimensions, + r'CampaignEventFilter', + 'dimensions', + ); BuiltValueNullFieldError.checkNotNull( - filterType, r'CampaignEventFilter', 'filterType'); + filterType, + r'CampaignEventFilter', + 'filterType', + ); } @override CampaignEventFilter rebuild( - void Function(CampaignEventFilterBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CampaignEventFilterBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CampaignEventFilterBuilder toBuilder() => @@ -94,11 +100,16 @@ class CampaignEventFilterBuilder _$CampaignEventFilter _build() { _$CampaignEventFilter _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$CampaignEventFilter._( - dimensions: dimensions.build(), - filterType: BuiltValueNullFieldError.checkNotNull( - filterType, r'CampaignEventFilter', 'filterType')); + dimensions: dimensions.build(), + filterType: BuiltValueNullFieldError.checkNotNull( + filterType, + r'CampaignEventFilter', + 'filterType', + ), + ); } catch (_) { late String _$failedField; try { @@ -106,7 +117,10 @@ class CampaignEventFilterBuilder dimensions.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CampaignEventFilter', _$failedField, e.toString()); + r'CampaignEventFilter', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/channel_type.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/channel_type.dart index 9c4ddc7874..530912b2ea 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/channel_type.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/channel_type.dart @@ -6,37 +6,17 @@ library amplify_analytics_pinpoint_dart.pinpoint.model.channel_type; // ignore_f import 'package:smithy/smithy.dart' as _i1; class ChannelType extends _i1.SmithyEnum { - const ChannelType._( - super.index, - super.name, - super.value, - ); + const ChannelType._(super.index, super.name, super.value); const ChannelType._sdkUnknown(super.value) : super.sdkUnknown(); - static const adm = ChannelType._( - 0, - 'ADM', - 'ADM', - ); + static const adm = ChannelType._(0, 'ADM', 'ADM'); - static const apns = ChannelType._( - 1, - 'APNS', - 'APNS', - ); + static const apns = ChannelType._(1, 'APNS', 'APNS'); - static const apnsSandbox = ChannelType._( - 2, - 'APNS_SANDBOX', - 'APNS_SANDBOX', - ); + static const apnsSandbox = ChannelType._(2, 'APNS_SANDBOX', 'APNS_SANDBOX'); - static const apnsVoip = ChannelType._( - 3, - 'APNS_VOIP', - 'APNS_VOIP', - ); + static const apnsVoip = ChannelType._(3, 'APNS_VOIP', 'APNS_VOIP'); static const apnsVoipSandbox = ChannelType._( 4, @@ -44,53 +24,21 @@ class ChannelType extends _i1.SmithyEnum { 'APNS_VOIP_SANDBOX', ); - static const baidu = ChannelType._( - 5, - 'BAIDU', - 'BAIDU', - ); + static const baidu = ChannelType._(5, 'BAIDU', 'BAIDU'); - static const custom = ChannelType._( - 6, - 'CUSTOM', - 'CUSTOM', - ); + static const custom = ChannelType._(6, 'CUSTOM', 'CUSTOM'); - static const email = ChannelType._( - 7, - 'EMAIL', - 'EMAIL', - ); + static const email = ChannelType._(7, 'EMAIL', 'EMAIL'); - static const gcm = ChannelType._( - 8, - 'GCM', - 'GCM', - ); + static const gcm = ChannelType._(8, 'GCM', 'GCM'); - static const inApp = ChannelType._( - 9, - 'IN_APP', - 'IN_APP', - ); + static const inApp = ChannelType._(9, 'IN_APP', 'IN_APP'); - static const push = ChannelType._( - 10, - 'PUSH', - 'PUSH', - ); + static const push = ChannelType._(10, 'PUSH', 'PUSH'); - static const sms = ChannelType._( - 11, - 'SMS', - 'SMS', - ); + static const sms = ChannelType._(11, 'SMS', 'SMS'); - static const voice = ChannelType._( - 12, - 'VOICE', - 'VOICE', - ); + static const voice = ChannelType._(12, 'VOICE', 'VOICE'); /// All values of [ChannelType]. static const values = [ @@ -115,12 +63,9 @@ class ChannelType extends _i1.SmithyEnum { values: values, sdkUnknown: ChannelType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.dart index 3cb752d00a..9d85becb0f 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.dart @@ -36,14 +36,14 @@ abstract class DefaultButtonConfiguration } /// Default button configuration. - factory DefaultButtonConfiguration.build( - [void Function(DefaultButtonConfigurationBuilder) updates]) = - _$DefaultButtonConfiguration; + factory DefaultButtonConfiguration.build([ + void Function(DefaultButtonConfigurationBuilder) updates, + ]) = _$DefaultButtonConfiguration; const DefaultButtonConfiguration._(); static const List<_i2.SmithySerializer> - serializers = [DefaultButtonConfigurationRestJson1Serializer()]; + serializers = [DefaultButtonConfigurationRestJson1Serializer()]; /// The background color of the button. String? get backgroundColor; @@ -64,40 +64,23 @@ abstract class DefaultButtonConfiguration String? get textColor; @override List get props => [ - backgroundColor, - borderRadius, - buttonAction, - link, - text, - textColor, - ]; + backgroundColor, + borderRadius, + buttonAction, + link, + text, + textColor, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('DefaultButtonConfiguration') - ..add( - 'backgroundColor', - backgroundColor, - ) - ..add( - 'borderRadius', - borderRadius, - ) - ..add( - 'buttonAction', - buttonAction, - ) - ..add( - 'link', - link, - ) - ..add( - 'text', - text, - ) - ..add( - 'textColor', - textColor, - ); + final helper = + newBuiltValueToStringHelper('DefaultButtonConfiguration') + ..add('backgroundColor', backgroundColor) + ..add('borderRadius', borderRadius) + ..add('buttonAction', buttonAction) + ..add('link', link) + ..add('text', text) + ..add('textColor', textColor); return helper.toString(); } } @@ -105,20 +88,17 @@ abstract class DefaultButtonConfiguration class DefaultButtonConfigurationRestJson1Serializer extends _i2.StructuredSmithySerializer { const DefaultButtonConfigurationRestJson1Serializer() - : super('DefaultButtonConfiguration'); + : super('DefaultButtonConfiguration'); @override Iterable get types => const [ - DefaultButtonConfiguration, - _$DefaultButtonConfiguration, - ]; + DefaultButtonConfiguration, + _$DefaultButtonConfiguration, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DefaultButtonConfiguration deserialize( Serializers serializers, @@ -136,35 +116,47 @@ class DefaultButtonConfigurationRestJson1Serializer } switch (key) { case 'BackgroundColor': - result.backgroundColor = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.backgroundColor = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'BorderRadius': - result.borderRadius = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.borderRadius = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ButtonAction': - result.buttonAction = (serializers.deserialize( - value, - specifiedType: const FullType(ButtonAction), - ) as ButtonAction); + result.buttonAction = + (serializers.deserialize( + value, + specifiedType: const FullType(ButtonAction), + ) + as ButtonAction); case 'Link': - result.link = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.link = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Text': - result.text = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.text = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'TextColor': - result.textColor = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.textColor = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -184,7 +176,7 @@ class DefaultButtonConfigurationRestJson1Serializer :buttonAction, :link, :text, - :textColor + :textColor, ) = object; result$.addAll([ 'ButtonAction', @@ -193,42 +185,44 @@ class DefaultButtonConfigurationRestJson1Serializer specifiedType: const FullType(ButtonAction), ), 'Text', - serializers.serialize( - text, - specifiedType: const FullType(String), - ), + serializers.serialize(text, specifiedType: const FullType(String)), ]); if (backgroundColor != null) { result$ ..add('BackgroundColor') - ..add(serializers.serialize( - backgroundColor, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + backgroundColor, + specifiedType: const FullType(String), + ), + ); } if (borderRadius != null) { result$ ..add('BorderRadius') - ..add(serializers.serialize( - borderRadius, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + borderRadius, + specifiedType: const FullType(int), + ), + ); } if (link != null) { result$ ..add('Link') - ..add(serializers.serialize( - link, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(link, specifiedType: const FullType(String)), + ); } if (textColor != null) { result$ ..add('TextColor') - ..add(serializers.serialize( - textColor, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + textColor, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.g.dart index 48e444a4f3..e519681557 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/default_button_configuration.g.dart @@ -20,28 +20,34 @@ class _$DefaultButtonConfiguration extends DefaultButtonConfiguration { @override final String? textColor; - factory _$DefaultButtonConfiguration( - [void Function(DefaultButtonConfigurationBuilder)? updates]) => - (new DefaultButtonConfigurationBuilder()..update(updates))._build(); - - _$DefaultButtonConfiguration._( - {this.backgroundColor, - this.borderRadius, - required this.buttonAction, - this.link, - required this.text, - this.textColor}) - : super._() { + factory _$DefaultButtonConfiguration([ + void Function(DefaultButtonConfigurationBuilder)? updates, + ]) => (new DefaultButtonConfigurationBuilder()..update(updates))._build(); + + _$DefaultButtonConfiguration._({ + this.backgroundColor, + this.borderRadius, + required this.buttonAction, + this.link, + required this.text, + this.textColor, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - buttonAction, r'DefaultButtonConfiguration', 'buttonAction'); + buttonAction, + r'DefaultButtonConfiguration', + 'buttonAction', + ); BuiltValueNullFieldError.checkNotNull( - text, r'DefaultButtonConfiguration', 'text'); + text, + r'DefaultButtonConfiguration', + 'text', + ); } @override DefaultButtonConfiguration rebuild( - void Function(DefaultButtonConfigurationBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DefaultButtonConfigurationBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DefaultButtonConfigurationBuilder toBuilder() => @@ -135,16 +141,24 @@ class DefaultButtonConfigurationBuilder DefaultButtonConfiguration build() => _build(); _$DefaultButtonConfiguration _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DefaultButtonConfiguration._( - backgroundColor: backgroundColor, - borderRadius: borderRadius, - buttonAction: BuiltValueNullFieldError.checkNotNull( - buttonAction, r'DefaultButtonConfiguration', 'buttonAction'), - link: link, - text: BuiltValueNullFieldError.checkNotNull( - text, r'DefaultButtonConfiguration', 'text'), - textColor: textColor); + backgroundColor: backgroundColor, + borderRadius: borderRadius, + buttonAction: BuiltValueNullFieldError.checkNotNull( + buttonAction, + r'DefaultButtonConfiguration', + 'buttonAction', + ), + link: link, + text: BuiltValueNullFieldError.checkNotNull( + text, + r'DefaultButtonConfiguration', + 'text', + ), + textColor: textColor, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/dimension_type.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/dimension_type.dart index e1a0ef54c0..fb981f70d5 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/dimension_type.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/dimension_type.dart @@ -6,25 +6,13 @@ library amplify_analytics_pinpoint_dart.pinpoint.model.dimension_type; // ignore import 'package:smithy/smithy.dart' as _i1; class DimensionType extends _i1.SmithyEnum { - const DimensionType._( - super.index, - super.name, - super.value, - ); + const DimensionType._(super.index, super.name, super.value); const DimensionType._sdkUnknown(super.value) : super.sdkUnknown(); - static const exclusive = DimensionType._( - 0, - 'EXCLUSIVE', - 'EXCLUSIVE', - ); + static const exclusive = DimensionType._(0, 'EXCLUSIVE', 'EXCLUSIVE'); - static const inclusive = DimensionType._( - 1, - 'INCLUSIVE', - 'INCLUSIVE', - ); + static const inclusive = DimensionType._(1, 'INCLUSIVE', 'INCLUSIVE'); /// All values of [DimensionType]. static const values = [ @@ -38,12 +26,9 @@ class DimensionType extends _i1.SmithyEnum { values: values, sdkUnknown: DimensionType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.dart index 69829e0bd3..b1a83829ec 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.dart @@ -51,13 +51,14 @@ abstract class EndpointBatchItem } /// Specifies an endpoint to create or update and the settings and attributes to set or change for the endpoint. - factory EndpointBatchItem.build( - [void Function(EndpointBatchItemBuilder) updates]) = _$EndpointBatchItem; + factory EndpointBatchItem.build([ + void Function(EndpointBatchItemBuilder) updates, + ]) = _$EndpointBatchItem; const EndpointBatchItem._(); static const List<_i3.SmithySerializer> serializers = [ - EndpointBatchItemRestJson1Serializer() + EndpointBatchItemRestJson1Serializer(), ]; /// The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For a push-notification channel, use the token provided by the push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (FCM) registration token. For the SMS channel, use a phone number in E.164 format, such as +12065550100. For the email channel, use an email address. @@ -101,70 +102,35 @@ abstract class EndpointBatchItem EndpointUser? get user; @override List get props => [ - address, - attributes, - channelType, - demographic, - effectiveDate, - endpointStatus, - id, - location, - metrics, - optOut, - requestId, - user, - ]; + address, + attributes, + channelType, + demographic, + effectiveDate, + endpointStatus, + id, + location, + metrics, + optOut, + requestId, + user, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointBatchItem') - ..add( - 'address', - address, - ) - ..add( - 'attributes', - attributes, - ) - ..add( - 'channelType', - channelType, - ) - ..add( - 'demographic', - demographic, - ) - ..add( - 'effectiveDate', - effectiveDate, - ) - ..add( - 'endpointStatus', - endpointStatus, - ) - ..add( - 'id', - id, - ) - ..add( - 'location', - location, - ) - ..add( - 'metrics', - metrics, - ) - ..add( - 'optOut', - optOut, - ) - ..add( - 'requestId', - requestId, - ) - ..add( - 'user', - user, - ); + final helper = + newBuiltValueToStringHelper('EndpointBatchItem') + ..add('address', address) + ..add('attributes', attributes) + ..add('channelType', channelType) + ..add('demographic', demographic) + ..add('effectiveDate', effectiveDate) + ..add('endpointStatus', endpointStatus) + ..add('id', id) + ..add('location', location) + ..add('metrics', metrics) + ..add('optOut', optOut) + ..add('requestId', requestId) + ..add('user', user); return helper.toString(); } } @@ -174,17 +140,11 @@ class EndpointBatchItemRestJson1Serializer const EndpointBatchItemRestJson1Serializer() : super('EndpointBatchItem'); @override - Iterable get types => const [ - EndpointBatchItem, - _$EndpointBatchItem, - ]; + Iterable get types => const [EndpointBatchItem, _$EndpointBatchItem]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointBatchItem deserialize( Serializers serializers, @@ -202,77 +162,100 @@ class EndpointBatchItemRestJson1Serializer } switch (key) { case 'Address': - result.address = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.address = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Attributes': - result.attributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltListMultimap)); + result.attributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltListMultimap), + ); case 'ChannelType': - result.channelType = (serializers.deserialize( - value, - specifiedType: const FullType(ChannelType), - ) as ChannelType); + result.channelType = + (serializers.deserialize( + value, + specifiedType: const FullType(ChannelType), + ) + as ChannelType); case 'Demographic': - result.demographic.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointDemographic), - ) as EndpointDemographic)); + result.demographic.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointDemographic), + ) + as EndpointDemographic), + ); case 'EffectiveDate': - result.effectiveDate = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.effectiveDate = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EndpointStatus': - result.endpointStatus = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.endpointStatus = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Id': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Location': - result.location.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointLocation), - ) as EndpointLocation)); + result.location.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointLocation), + ) + as EndpointLocation), + ); case 'Metrics': - result.metrics.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i2.BuiltMap)); + result.metrics.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i2.BuiltMap), + ); case 'OptOut': - result.optOut = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optOut = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestId': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'User': - result.user.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointUser), - ) as EndpointUser)); + result.user.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointUser), + ) + as EndpointUser), + ); } } @@ -298,115 +281,122 @@ class EndpointBatchItemRestJson1Serializer :metrics, :optOut, :requestId, - :user + :user, ) = object; if (address != null) { result$ ..add('Address') - ..add(serializers.serialize( - address, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(address, specifiedType: const FullType(String)), + ); } if (attributes != null) { result$ ..add('Attributes') - ..add(serializers.serialize( - attributes, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ + ..add( + serializers.serialize( + attributes, + specifiedType: const FullType(_i2.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (channelType != null) { result$ ..add('ChannelType') - ..add(serializers.serialize( - channelType, - specifiedType: const FullType(ChannelType), - )); + ..add( + serializers.serialize( + channelType, + specifiedType: const FullType(ChannelType), + ), + ); } if (demographic != null) { result$ ..add('Demographic') - ..add(serializers.serialize( - demographic, - specifiedType: const FullType(EndpointDemographic), - )); + ..add( + serializers.serialize( + demographic, + specifiedType: const FullType(EndpointDemographic), + ), + ); } if (effectiveDate != null) { result$ ..add('EffectiveDate') - ..add(serializers.serialize( - effectiveDate, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + effectiveDate, + specifiedType: const FullType(String), + ), + ); } if (endpointStatus != null) { result$ ..add('EndpointStatus') - ..add(serializers.serialize( - endpointStatus, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + endpointStatus, + specifiedType: const FullType(String), + ), + ); } if (id != null) { result$ ..add('Id') - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } if (location != null) { result$ ..add('Location') - ..add(serializers.serialize( - location, - specifiedType: const FullType(EndpointLocation), - )); + ..add( + serializers.serialize( + location, + specifiedType: const FullType(EndpointLocation), + ), + ); } if (metrics != null) { result$ ..add('Metrics') - ..add(serializers.serialize( - metrics, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + metrics, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(double), - ], + ]), ), - )); + ); } if (optOut != null) { result$ ..add('OptOut') - ..add(serializers.serialize( - optOut, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(optOut, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestId') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } if (user != null) { result$ ..add('User') - ..add(serializers.serialize( - user, - specifiedType: const FullType(EndpointUser), - )); + ..add( + serializers.serialize( + user, + specifiedType: const FullType(EndpointUser), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.g.dart index 1a293614d1..8f3158c55b 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_item.g.dart @@ -32,24 +32,24 @@ class _$EndpointBatchItem extends EndpointBatchItem { @override final EndpointUser? user; - factory _$EndpointBatchItem( - [void Function(EndpointBatchItemBuilder)? updates]) => - (new EndpointBatchItemBuilder()..update(updates))._build(); - - _$EndpointBatchItem._( - {this.address, - this.attributes, - this.channelType, - this.demographic, - this.effectiveDate, - this.endpointStatus, - this.id, - this.location, - this.metrics, - this.optOut, - this.requestId, - this.user}) - : super._(); + factory _$EndpointBatchItem([ + void Function(EndpointBatchItemBuilder)? updates, + ]) => (new EndpointBatchItemBuilder()..update(updates))._build(); + + _$EndpointBatchItem._({ + this.address, + this.attributes, + this.channelType, + this.demographic, + this.effectiveDate, + this.endpointStatus, + this.id, + this.location, + this.metrics, + this.optOut, + this.requestId, + this.user, + }) : super._(); @override EndpointBatchItem rebuild(void Function(EndpointBatchItemBuilder) updates) => @@ -199,20 +199,22 @@ class EndpointBatchItemBuilder _$EndpointBatchItem _build() { _$EndpointBatchItem _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EndpointBatchItem._( - address: address, - attributes: _attributes?.build(), - channelType: channelType, - demographic: _demographic?.build(), - effectiveDate: effectiveDate, - endpointStatus: endpointStatus, - id: id, - location: _location?.build(), - metrics: _metrics?.build(), - optOut: optOut, - requestId: requestId, - user: _user?.build()); + address: address, + attributes: _attributes?.build(), + channelType: channelType, + demographic: _demographic?.build(), + effectiveDate: effectiveDate, + endpointStatus: endpointStatus, + id: id, + location: _location?.build(), + metrics: _metrics?.build(), + optOut: optOut, + requestId: requestId, + user: _user?.build(), + ); } catch (_) { late String _$failedField; try { @@ -231,7 +233,10 @@ class EndpointBatchItemBuilder _user?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EndpointBatchItem', _$failedField, e.toString()); + r'EndpointBatchItem', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.dart index ae80940690..1d636a0b71 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.dart @@ -22,14 +22,14 @@ abstract class EndpointBatchRequest } /// Specifies a batch of endpoints to create or update and the settings and attributes to set or change for each endpoint. - factory EndpointBatchRequest.build( - [void Function(EndpointBatchRequestBuilder) updates]) = - _$EndpointBatchRequest; + factory EndpointBatchRequest.build([ + void Function(EndpointBatchRequestBuilder) updates, + ]) = _$EndpointBatchRequest; const EndpointBatchRequest._(); static const List<_i3.SmithySerializer> serializers = [ - EndpointBatchRequestRestJson1Serializer() + EndpointBatchRequestRestJson1Serializer(), ]; /// An array that defines the endpoints to create or update and, for each endpoint, the property values to set or change. An array can contain a maximum of 100 items. @@ -39,10 +39,7 @@ abstract class EndpointBatchRequest @override String toString() { final helper = newBuiltValueToStringHelper('EndpointBatchRequest') - ..add( - 'item', - item, - ); + ..add('item', item); return helper.toString(); } } @@ -50,20 +47,17 @@ abstract class EndpointBatchRequest class EndpointBatchRequestRestJson1Serializer extends _i3.StructuredSmithySerializer { const EndpointBatchRequestRestJson1Serializer() - : super('EndpointBatchRequest'); + : super('EndpointBatchRequest'); @override Iterable get types => const [ - EndpointBatchRequest, - _$EndpointBatchRequest, - ]; + EndpointBatchRequest, + _$EndpointBatchRequest, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointBatchRequest deserialize( Serializers serializers, @@ -81,13 +75,15 @@ class EndpointBatchRequestRestJson1Serializer } switch (key) { case 'Item': - result.item.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(EndpointBatchItem)], - ), - ) as _i2.BuiltList)); + result.item.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(EndpointBatchItem), + ]), + ) + as _i2.BuiltList), + ); } } @@ -106,10 +102,9 @@ class EndpointBatchRequestRestJson1Serializer 'Item', serializers.serialize( item, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(EndpointBatchItem)], - ), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(EndpointBatchItem), + ]), ), ]); return result$; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.g.dart index 2b447b56e9..8ff2cd868d 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_batch_request.g.dart @@ -10,19 +10,22 @@ class _$EndpointBatchRequest extends EndpointBatchRequest { @override final _i2.BuiltList item; - factory _$EndpointBatchRequest( - [void Function(EndpointBatchRequestBuilder)? updates]) => - (new EndpointBatchRequestBuilder()..update(updates))._build(); + factory _$EndpointBatchRequest([ + void Function(EndpointBatchRequestBuilder)? updates, + ]) => (new EndpointBatchRequestBuilder()..update(updates))._build(); _$EndpointBatchRequest._({required this.item}) : super._() { BuiltValueNullFieldError.checkNotNull( - item, r'EndpointBatchRequest', 'item'); + item, + r'EndpointBatchRequest', + 'item', + ); } @override EndpointBatchRequest rebuild( - void Function(EndpointBatchRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EndpointBatchRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EndpointBatchRequestBuilder toBuilder() => @@ -88,7 +91,10 @@ class EndpointBatchRequestBuilder item.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EndpointBatchRequest', _$failedField, e.toString()); + r'EndpointBatchRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.dart index 6e620231bc..0effb59f29 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.dart @@ -38,14 +38,14 @@ abstract class EndpointDemographic } /// Specifies demographic information about an endpoint, such as the applicable time zone and platform. - factory EndpointDemographic.build( - [void Function(EndpointDemographicBuilder) updates]) = - _$EndpointDemographic; + factory EndpointDemographic.build([ + void Function(EndpointDemographicBuilder) updates, + ]) = _$EndpointDemographic; const EndpointDemographic._(); static const List<_i2.SmithySerializer> serializers = [ - EndpointDemographicRestJson1Serializer() + EndpointDemographicRestJson1Serializer(), ]; /// The version of the app that's associated with the endpoint. @@ -73,50 +73,27 @@ abstract class EndpointDemographic String? get timezone; @override List get props => [ - appVersion, - locale, - make, - model, - modelVersion, - platform, - platformVersion, - timezone, - ]; + appVersion, + locale, + make, + model, + modelVersion, + platform, + platformVersion, + timezone, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointDemographic') - ..add( - 'appVersion', - appVersion, - ) - ..add( - 'locale', - locale, - ) - ..add( - 'make', - make, - ) - ..add( - 'model', - model, - ) - ..add( - 'modelVersion', - modelVersion, - ) - ..add( - 'platform', - platform, - ) - ..add( - 'platformVersion', - platformVersion, - ) - ..add( - 'timezone', - timezone, - ); + final helper = + newBuiltValueToStringHelper('EndpointDemographic') + ..add('appVersion', appVersion) + ..add('locale', locale) + ..add('make', make) + ..add('model', model) + ..add('modelVersion', modelVersion) + ..add('platform', platform) + ..add('platformVersion', platformVersion) + ..add('timezone', timezone); return helper.toString(); } } @@ -127,16 +104,13 @@ class EndpointDemographicRestJson1Serializer @override Iterable get types => const [ - EndpointDemographic, - _$EndpointDemographic, - ]; + EndpointDemographic, + _$EndpointDemographic, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointDemographic deserialize( Serializers serializers, @@ -154,45 +128,61 @@ class EndpointDemographicRestJson1Serializer } switch (key) { case 'AppVersion': - result.appVersion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.appVersion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Locale': - result.locale = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.locale = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Make': - result.make = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.make = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Model': - result.model = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.model = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ModelVersion': - result.modelVersion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.modelVersion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Platform': - result.platform = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.platform = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'PlatformVersion': - result.platformVersion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.platformVersion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Timezone': - result.timezone = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.timezone = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -214,71 +204,78 @@ class EndpointDemographicRestJson1Serializer :modelVersion, :platform, :platformVersion, - :timezone + :timezone, ) = object; if (appVersion != null) { result$ ..add('AppVersion') - ..add(serializers.serialize( - appVersion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + appVersion, + specifiedType: const FullType(String), + ), + ); } if (locale != null) { result$ ..add('Locale') - ..add(serializers.serialize( - locale, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(locale, specifiedType: const FullType(String)), + ); } if (make != null) { result$ ..add('Make') - ..add(serializers.serialize( - make, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(make, specifiedType: const FullType(String)), + ); } if (model != null) { result$ ..add('Model') - ..add(serializers.serialize( - model, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(model, specifiedType: const FullType(String)), + ); } if (modelVersion != null) { result$ ..add('ModelVersion') - ..add(serializers.serialize( - modelVersion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + modelVersion, + specifiedType: const FullType(String), + ), + ); } if (platform != null) { result$ ..add('Platform') - ..add(serializers.serialize( - platform, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + platform, + specifiedType: const FullType(String), + ), + ); } if (platformVersion != null) { result$ ..add('PlatformVersion') - ..add(serializers.serialize( - platformVersion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + platformVersion, + specifiedType: const FullType(String), + ), + ); } if (timezone != null) { result$ ..add('Timezone') - ..add(serializers.serialize( - timezone, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + timezone, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.g.dart index f829a10974..ea584830c2 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_demographic.g.dart @@ -24,25 +24,25 @@ class _$EndpointDemographic extends EndpointDemographic { @override final String? timezone; - factory _$EndpointDemographic( - [void Function(EndpointDemographicBuilder)? updates]) => - (new EndpointDemographicBuilder()..update(updates))._build(); - - _$EndpointDemographic._( - {this.appVersion, - this.locale, - this.make, - this.model, - this.modelVersion, - this.platform, - this.platformVersion, - this.timezone}) - : super._(); + factory _$EndpointDemographic([ + void Function(EndpointDemographicBuilder)? updates, + ]) => (new EndpointDemographicBuilder()..update(updates))._build(); + + _$EndpointDemographic._({ + this.appVersion, + this.locale, + this.make, + this.model, + this.modelVersion, + this.platform, + this.platformVersion, + this.timezone, + }) : super._(); @override EndpointDemographic rebuild( - void Function(EndpointDemographicBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EndpointDemographicBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EndpointDemographicBuilder toBuilder() => @@ -148,16 +148,18 @@ class EndpointDemographicBuilder EndpointDemographic build() => _build(); _$EndpointDemographic _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EndpointDemographic._( - appVersion: appVersion, - locale: locale, - make: make, - model: model, - modelVersion: modelVersion, - platform: platform, - platformVersion: platformVersion, - timezone: timezone); + appVersion: appVersion, + locale: locale, + make: make, + model: model, + modelVersion: modelVersion, + platform: platform, + platformVersion: platformVersion, + timezone: timezone, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.dart index 482bafeae1..3cd45d7e2b 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.dart @@ -15,25 +15,19 @@ abstract class EndpointItemResponse with _i1.AWSEquatable implements Built { /// Provides the status code and message that result from processing data for an endpoint. - factory EndpointItemResponse({ - String? message, - int? statusCode, - }) { - return _$EndpointItemResponse._( - message: message, - statusCode: statusCode, - ); + factory EndpointItemResponse({String? message, int? statusCode}) { + return _$EndpointItemResponse._(message: message, statusCode: statusCode); } /// Provides the status code and message that result from processing data for an endpoint. - factory EndpointItemResponse.build( - [void Function(EndpointItemResponseBuilder) updates]) = - _$EndpointItemResponse; + factory EndpointItemResponse.build([ + void Function(EndpointItemResponseBuilder) updates, + ]) = _$EndpointItemResponse; const EndpointItemResponse._(); static const List<_i2.SmithySerializer> serializers = [ - EndpointItemResponseRestJson1Serializer() + EndpointItemResponseRestJson1Serializer(), ]; /// The custom message that's returned in the response as a result of processing the endpoint data. @@ -42,21 +36,13 @@ abstract class EndpointItemResponse /// The status code that's returned in the response as a result of processing the endpoint data. int? get statusCode; @override - List get props => [ - message, - statusCode, - ]; + List get props => [message, statusCode]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointItemResponse') - ..add( - 'message', - message, - ) - ..add( - 'statusCode', - statusCode, - ); + final helper = + newBuiltValueToStringHelper('EndpointItemResponse') + ..add('message', message) + ..add('statusCode', statusCode); return helper.toString(); } } @@ -64,20 +50,17 @@ abstract class EndpointItemResponse class EndpointItemResponseRestJson1Serializer extends _i2.StructuredSmithySerializer { const EndpointItemResponseRestJson1Serializer() - : super('EndpointItemResponse'); + : super('EndpointItemResponse'); @override Iterable get types => const [ - EndpointItemResponse, - _$EndpointItemResponse, - ]; + EndpointItemResponse, + _$EndpointItemResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointItemResponse deserialize( Serializers serializers, @@ -95,15 +78,19 @@ class EndpointItemResponseRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StatusCode': - result.statusCode = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.statusCode = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -121,18 +108,16 @@ class EndpointItemResponseRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (statusCode != null) { result$ ..add('StatusCode') - ..add(serializers.serialize( - statusCode, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(statusCode, specifiedType: const FullType(int)), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.g.dart index da099878cb..0603d7c752 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_item_response.g.dart @@ -12,16 +12,16 @@ class _$EndpointItemResponse extends EndpointItemResponse { @override final int? statusCode; - factory _$EndpointItemResponse( - [void Function(EndpointItemResponseBuilder)? updates]) => - (new EndpointItemResponseBuilder()..update(updates))._build(); + factory _$EndpointItemResponse([ + void Function(EndpointItemResponseBuilder)? updates, + ]) => (new EndpointItemResponseBuilder()..update(updates))._build(); _$EndpointItemResponse._({this.message, this.statusCode}) : super._(); @override EndpointItemResponse rebuild( - void Function(EndpointItemResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EndpointItemResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EndpointItemResponseBuilder toBuilder() => @@ -84,7 +84,8 @@ class EndpointItemResponseBuilder EndpointItemResponse build() => _build(); _$EndpointItemResponse _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EndpointItemResponse._(message: message, statusCode: statusCode); replace(_$result); return _$result; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.dart index f358cd946a..fa19a99321 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.dart @@ -34,13 +34,14 @@ abstract class EndpointLocation } /// Specifies geographic information about an endpoint. - factory EndpointLocation.build( - [void Function(EndpointLocationBuilder) updates]) = _$EndpointLocation; + factory EndpointLocation.build([ + void Function(EndpointLocationBuilder) updates, + ]) = _$EndpointLocation; const EndpointLocation._(); static const List<_i2.SmithySerializer> serializers = [ - EndpointLocationRestJson1Serializer() + EndpointLocationRestJson1Serializer(), ]; /// The name of the city where the endpoint is located. @@ -62,40 +63,23 @@ abstract class EndpointLocation String? get region; @override List get props => [ - city, - country, - latitude, - longitude, - postalCode, - region, - ]; + city, + country, + latitude, + longitude, + postalCode, + region, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointLocation') - ..add( - 'city', - city, - ) - ..add( - 'country', - country, - ) - ..add( - 'latitude', - latitude, - ) - ..add( - 'longitude', - longitude, - ) - ..add( - 'postalCode', - postalCode, - ) - ..add( - 'region', - region, - ); + final helper = + newBuiltValueToStringHelper('EndpointLocation') + ..add('city', city) + ..add('country', country) + ..add('latitude', latitude) + ..add('longitude', longitude) + ..add('postalCode', postalCode) + ..add('region', region); return helper.toString(); } } @@ -105,17 +89,11 @@ class EndpointLocationRestJson1Serializer const EndpointLocationRestJson1Serializer() : super('EndpointLocation'); @override - Iterable get types => const [ - EndpointLocation, - _$EndpointLocation, - ]; + Iterable get types => const [EndpointLocation, _$EndpointLocation]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointLocation deserialize( Serializers serializers, @@ -133,35 +111,47 @@ class EndpointLocationRestJson1Serializer } switch (key) { case 'City': - result.city = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.city = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Country': - result.country = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.country = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Latitude': - result.latitude = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.latitude = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Longitude': - result.longitude = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.longitude = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'PostalCode': - result.postalCode = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.postalCode = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -181,55 +171,58 @@ class EndpointLocationRestJson1Serializer :latitude, :longitude, :postalCode, - :region + :region, ) = object; if (city != null) { result$ ..add('City') - ..add(serializers.serialize( - city, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(city, specifiedType: const FullType(String)), + ); } if (country != null) { result$ ..add('Country') - ..add(serializers.serialize( - country, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(country, specifiedType: const FullType(String)), + ); } if (latitude != null) { result$ ..add('Latitude') - ..add(serializers.serialize( - latitude, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + latitude, + specifiedType: const FullType(double), + ), + ); } if (longitude != null) { result$ ..add('Longitude') - ..add(serializers.serialize( - longitude, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + longitude, + specifiedType: const FullType(double), + ), + ); } if (postalCode != null) { result$ ..add('PostalCode') - ..add(serializers.serialize( - postalCode, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + postalCode, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('Region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.g.dart index c296f346c5..dec8d91d8d 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_location.g.dart @@ -20,18 +20,18 @@ class _$EndpointLocation extends EndpointLocation { @override final String? region; - factory _$EndpointLocation( - [void Function(EndpointLocationBuilder)? updates]) => - (new EndpointLocationBuilder()..update(updates))._build(); - - _$EndpointLocation._( - {this.city, - this.country, - this.latitude, - this.longitude, - this.postalCode, - this.region}) - : super._(); + factory _$EndpointLocation([ + void Function(EndpointLocationBuilder)? updates, + ]) => (new EndpointLocationBuilder()..update(updates))._build(); + + _$EndpointLocation._({ + this.city, + this.country, + this.latitude, + this.longitude, + this.postalCode, + this.region, + }) : super._(); @override EndpointLocation rebuild(void Function(EndpointLocationBuilder) updates) => @@ -126,14 +126,16 @@ class EndpointLocationBuilder EndpointLocation build() => _build(); _$EndpointLocation _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EndpointLocation._( - city: city, - country: country, - latitude: latitude, - longitude: longitude, - postalCode: postalCode, - region: region); + city: city, + country: country, + latitude: latitude, + longitude: longitude, + postalCode: postalCode, + region: region, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.dart index 80a9686039..263fc74bd6 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.dart @@ -49,13 +49,14 @@ abstract class EndpointRequest } /// Specifies the channel type and other settings for an endpoint. - factory EndpointRequest.build( - [void Function(EndpointRequestBuilder) updates]) = _$EndpointRequest; + factory EndpointRequest.build([ + void Function(EndpointRequestBuilder) updates, + ]) = _$EndpointRequest; const EndpointRequest._(); static const List<_i3.SmithySerializer> serializers = [ - EndpointRequestRestJson1Serializer() + EndpointRequestRestJson1Serializer(), ]; /// The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For a push-notification channel, use the token provided by the push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (FCM) registration token. For the SMS channel, use a phone number in E.164 format, such as +12065550100. For the email channel, use an email address. @@ -96,65 +97,33 @@ abstract class EndpointRequest EndpointUser? get user; @override List get props => [ - address, - attributes, - channelType, - demographic, - effectiveDate, - endpointStatus, - location, - metrics, - optOut, - requestId, - user, - ]; + address, + attributes, + channelType, + demographic, + effectiveDate, + endpointStatus, + location, + metrics, + optOut, + requestId, + user, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointRequest') - ..add( - 'address', - address, - ) - ..add( - 'attributes', - attributes, - ) - ..add( - 'channelType', - channelType, - ) - ..add( - 'demographic', - demographic, - ) - ..add( - 'effectiveDate', - effectiveDate, - ) - ..add( - 'endpointStatus', - endpointStatus, - ) - ..add( - 'location', - location, - ) - ..add( - 'metrics', - metrics, - ) - ..add( - 'optOut', - optOut, - ) - ..add( - 'requestId', - requestId, - ) - ..add( - 'user', - user, - ); + final helper = + newBuiltValueToStringHelper('EndpointRequest') + ..add('address', address) + ..add('attributes', attributes) + ..add('channelType', channelType) + ..add('demographic', demographic) + ..add('effectiveDate', effectiveDate) + ..add('endpointStatus', endpointStatus) + ..add('location', location) + ..add('metrics', metrics) + ..add('optOut', optOut) + ..add('requestId', requestId) + ..add('user', user); return helper.toString(); } } @@ -164,17 +133,11 @@ class EndpointRequestRestJson1Serializer const EndpointRequestRestJson1Serializer() : super('EndpointRequest'); @override - Iterable get types => const [ - EndpointRequest, - _$EndpointRequest, - ]; + Iterable get types => const [EndpointRequest, _$EndpointRequest]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointRequest deserialize( Serializers serializers, @@ -192,72 +155,93 @@ class EndpointRequestRestJson1Serializer } switch (key) { case 'Address': - result.address = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.address = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Attributes': - result.attributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltListMultimap)); + result.attributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltListMultimap), + ); case 'ChannelType': - result.channelType = (serializers.deserialize( - value, - specifiedType: const FullType(ChannelType), - ) as ChannelType); + result.channelType = + (serializers.deserialize( + value, + specifiedType: const FullType(ChannelType), + ) + as ChannelType); case 'Demographic': - result.demographic.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointDemographic), - ) as EndpointDemographic)); + result.demographic.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointDemographic), + ) + as EndpointDemographic), + ); case 'EffectiveDate': - result.effectiveDate = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.effectiveDate = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EndpointStatus': - result.endpointStatus = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.endpointStatus = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Location': - result.location.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointLocation), - ) as EndpointLocation)); + result.location.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointLocation), + ) + as EndpointLocation), + ); case 'Metrics': - result.metrics.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i2.BuiltMap)); + result.metrics.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i2.BuiltMap), + ); case 'OptOut': - result.optOut = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optOut = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestId': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'User': - result.user.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointUser), - ) as EndpointUser)); + result.user.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointUser), + ) + as EndpointUser), + ); } } @@ -282,107 +266,117 @@ class EndpointRequestRestJson1Serializer :metrics, :optOut, :requestId, - :user + :user, ) = object; if (address != null) { result$ ..add('Address') - ..add(serializers.serialize( - address, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(address, specifiedType: const FullType(String)), + ); } if (attributes != null) { result$ ..add('Attributes') - ..add(serializers.serialize( - attributes, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ + ..add( + serializers.serialize( + attributes, + specifiedType: const FullType(_i2.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (channelType != null) { result$ ..add('ChannelType') - ..add(serializers.serialize( - channelType, - specifiedType: const FullType(ChannelType), - )); + ..add( + serializers.serialize( + channelType, + specifiedType: const FullType(ChannelType), + ), + ); } if (demographic != null) { result$ ..add('Demographic') - ..add(serializers.serialize( - demographic, - specifiedType: const FullType(EndpointDemographic), - )); + ..add( + serializers.serialize( + demographic, + specifiedType: const FullType(EndpointDemographic), + ), + ); } if (effectiveDate != null) { result$ ..add('EffectiveDate') - ..add(serializers.serialize( - effectiveDate, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + effectiveDate, + specifiedType: const FullType(String), + ), + ); } if (endpointStatus != null) { result$ ..add('EndpointStatus') - ..add(serializers.serialize( - endpointStatus, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + endpointStatus, + specifiedType: const FullType(String), + ), + ); } if (location != null) { result$ ..add('Location') - ..add(serializers.serialize( - location, - specifiedType: const FullType(EndpointLocation), - )); + ..add( + serializers.serialize( + location, + specifiedType: const FullType(EndpointLocation), + ), + ); } if (metrics != null) { result$ ..add('Metrics') - ..add(serializers.serialize( - metrics, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + metrics, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(double), - ], + ]), ), - )); + ); } if (optOut != null) { result$ ..add('OptOut') - ..add(serializers.serialize( - optOut, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(optOut, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestId') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } if (user != null) { result$ ..add('User') - ..add(serializers.serialize( - user, - specifiedType: const FullType(EndpointUser), - )); + ..add( + serializers.serialize( + user, + specifiedType: const FullType(EndpointUser), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.g.dart index 3aaf714d13..854fe2f1d8 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_request.g.dart @@ -33,19 +33,19 @@ class _$EndpointRequest extends EndpointRequest { factory _$EndpointRequest([void Function(EndpointRequestBuilder)? updates]) => (new EndpointRequestBuilder()..update(updates))._build(); - _$EndpointRequest._( - {this.address, - this.attributes, - this.channelType, - this.demographic, - this.effectiveDate, - this.endpointStatus, - this.location, - this.metrics, - this.optOut, - this.requestId, - this.user}) - : super._(); + _$EndpointRequest._({ + this.address, + this.attributes, + this.channelType, + this.demographic, + this.effectiveDate, + this.endpointStatus, + this.location, + this.metrics, + this.optOut, + this.requestId, + this.user, + }) : super._(); @override EndpointRequest rebuild(void Function(EndpointRequestBuilder) updates) => @@ -188,19 +188,21 @@ class EndpointRequestBuilder _$EndpointRequest _build() { _$EndpointRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EndpointRequest._( - address: address, - attributes: _attributes?.build(), - channelType: channelType, - demographic: _demographic?.build(), - effectiveDate: effectiveDate, - endpointStatus: endpointStatus, - location: _location?.build(), - metrics: _metrics?.build(), - optOut: optOut, - requestId: requestId, - user: _user?.build()); + address: address, + attributes: _attributes?.build(), + channelType: channelType, + demographic: _demographic?.build(), + effectiveDate: effectiveDate, + endpointStatus: endpointStatus, + location: _location?.build(), + metrics: _metrics?.build(), + optOut: optOut, + requestId: requestId, + user: _user?.build(), + ); } catch (_) { late String _$failedField; try { @@ -219,7 +221,10 @@ class EndpointRequestBuilder _user?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EndpointRequest', _$failedField, e.toString()); + r'EndpointRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.dart index 5d106b82c4..57561fa2e4 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.dart @@ -57,13 +57,14 @@ abstract class EndpointResponse } /// Provides information about the channel type and other settings for an endpoint. - factory EndpointResponse.build( - [void Function(EndpointResponseBuilder) updates]) = _$EndpointResponse; + factory EndpointResponse.build([ + void Function(EndpointResponseBuilder) updates, + ]) = _$EndpointResponse; const EndpointResponse._(); static const List<_i3.SmithySerializer> serializers = [ - EndpointResponseRestJson1Serializer() + EndpointResponseRestJson1Serializer(), ]; /// The destination address for messages or push notifications that you send to the endpoint. The address varies by channel. For example, the address for a push-notification channel is typically the token provided by a push notification service, such as an Apple Push Notification service (APNs) device token or a Firebase Cloud Messaging (FCM) registration token. The address for the SMS channel is a phone number in E.164 format, such as +12065550100. The address for the email channel is an email address. @@ -114,85 +115,41 @@ abstract class EndpointResponse EndpointUser? get user; @override List get props => [ - address, - applicationId, - attributes, - channelType, - cohortId, - creationDate, - demographic, - effectiveDate, - endpointStatus, - id, - location, - metrics, - optOut, - requestId, - user, - ]; + address, + applicationId, + attributes, + channelType, + cohortId, + creationDate, + demographic, + effectiveDate, + endpointStatus, + id, + location, + metrics, + optOut, + requestId, + user, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointResponse') - ..add( - 'address', - address, - ) - ..add( - 'applicationId', - applicationId, - ) - ..add( - 'attributes', - attributes, - ) - ..add( - 'channelType', - channelType, - ) - ..add( - 'cohortId', - cohortId, - ) - ..add( - 'creationDate', - creationDate, - ) - ..add( - 'demographic', - demographic, - ) - ..add( - 'effectiveDate', - effectiveDate, - ) - ..add( - 'endpointStatus', - endpointStatus, - ) - ..add( - 'id', - id, - ) - ..add( - 'location', - location, - ) - ..add( - 'metrics', - metrics, - ) - ..add( - 'optOut', - optOut, - ) - ..add( - 'requestId', - requestId, - ) - ..add( - 'user', - user, - ); + final helper = + newBuiltValueToStringHelper('EndpointResponse') + ..add('address', address) + ..add('applicationId', applicationId) + ..add('attributes', attributes) + ..add('channelType', channelType) + ..add('cohortId', cohortId) + ..add('creationDate', creationDate) + ..add('demographic', demographic) + ..add('effectiveDate', effectiveDate) + ..add('endpointStatus', endpointStatus) + ..add('id', id) + ..add('location', location) + ..add('metrics', metrics) + ..add('optOut', optOut) + ..add('requestId', requestId) + ..add('user', user); return helper.toString(); } } @@ -202,17 +159,11 @@ class EndpointResponseRestJson1Serializer const EndpointResponseRestJson1Serializer() : super('EndpointResponse'); @override - Iterable get types => const [ - EndpointResponse, - _$EndpointResponse, - ]; + Iterable get types => const [EndpointResponse, _$EndpointResponse]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointResponse deserialize( Serializers serializers, @@ -230,92 +181,121 @@ class EndpointResponseRestJson1Serializer } switch (key) { case 'Address': - result.address = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.address = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ApplicationId': - result.applicationId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.applicationId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Attributes': - result.attributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltListMultimap)); + result.attributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltListMultimap), + ); case 'ChannelType': - result.channelType = (serializers.deserialize( - value, - specifiedType: const FullType(ChannelType), - ) as ChannelType); + result.channelType = + (serializers.deserialize( + value, + specifiedType: const FullType(ChannelType), + ) + as ChannelType); case 'CohortId': - result.cohortId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.cohortId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'CreationDate': - result.creationDate = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.creationDate = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Demographic': - result.demographic.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointDemographic), - ) as EndpointDemographic)); + result.demographic.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointDemographic), + ) + as EndpointDemographic), + ); case 'EffectiveDate': - result.effectiveDate = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.effectiveDate = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EndpointStatus': - result.endpointStatus = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.endpointStatus = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Id': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Location': - result.location.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointLocation), - ) as EndpointLocation)); + result.location.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointLocation), + ) + as EndpointLocation), + ); case 'Metrics': - result.metrics.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i2.BuiltMap)); + result.metrics.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i2.BuiltMap), + ); case 'OptOut': - result.optOut = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optOut = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestId': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'User': - result.user.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointUser), - ) as EndpointUser)); + result.user.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointUser), + ) + as EndpointUser), + ); } } @@ -344,139 +324,152 @@ class EndpointResponseRestJson1Serializer :metrics, :optOut, :requestId, - :user + :user, ) = object; if (address != null) { result$ ..add('Address') - ..add(serializers.serialize( - address, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(address, specifiedType: const FullType(String)), + ); } if (applicationId != null) { result$ ..add('ApplicationId') - ..add(serializers.serialize( - applicationId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + applicationId, + specifiedType: const FullType(String), + ), + ); } if (attributes != null) { result$ ..add('Attributes') - ..add(serializers.serialize( - attributes, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ + ..add( + serializers.serialize( + attributes, + specifiedType: const FullType(_i2.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (channelType != null) { result$ ..add('ChannelType') - ..add(serializers.serialize( - channelType, - specifiedType: const FullType(ChannelType), - )); + ..add( + serializers.serialize( + channelType, + specifiedType: const FullType(ChannelType), + ), + ); } if (cohortId != null) { result$ ..add('CohortId') - ..add(serializers.serialize( - cohortId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + cohortId, + specifiedType: const FullType(String), + ), + ); } if (creationDate != null) { result$ ..add('CreationDate') - ..add(serializers.serialize( - creationDate, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + creationDate, + specifiedType: const FullType(String), + ), + ); } if (demographic != null) { result$ ..add('Demographic') - ..add(serializers.serialize( - demographic, - specifiedType: const FullType(EndpointDemographic), - )); + ..add( + serializers.serialize( + demographic, + specifiedType: const FullType(EndpointDemographic), + ), + ); } if (effectiveDate != null) { result$ ..add('EffectiveDate') - ..add(serializers.serialize( - effectiveDate, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + effectiveDate, + specifiedType: const FullType(String), + ), + ); } if (endpointStatus != null) { result$ ..add('EndpointStatus') - ..add(serializers.serialize( - endpointStatus, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + endpointStatus, + specifiedType: const FullType(String), + ), + ); } if (id != null) { result$ ..add('Id') - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } if (location != null) { result$ ..add('Location') - ..add(serializers.serialize( - location, - specifiedType: const FullType(EndpointLocation), - )); + ..add( + serializers.serialize( + location, + specifiedType: const FullType(EndpointLocation), + ), + ); } if (metrics != null) { result$ ..add('Metrics') - ..add(serializers.serialize( - metrics, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + metrics, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(double), - ], + ]), ), - )); + ); } if (optOut != null) { result$ ..add('OptOut') - ..add(serializers.serialize( - optOut, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(optOut, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestId') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } if (user != null) { result$ ..add('User') - ..add(serializers.serialize( - user, - specifiedType: const FullType(EndpointUser), - )); + ..add( + serializers.serialize( + user, + specifiedType: const FullType(EndpointUser), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.g.dart index 9e8dfc39ca..e57ad109eb 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_response.g.dart @@ -38,27 +38,27 @@ class _$EndpointResponse extends EndpointResponse { @override final EndpointUser? user; - factory _$EndpointResponse( - [void Function(EndpointResponseBuilder)? updates]) => - (new EndpointResponseBuilder()..update(updates))._build(); - - _$EndpointResponse._( - {this.address, - this.applicationId, - this.attributes, - this.channelType, - this.cohortId, - this.creationDate, - this.demographic, - this.effectiveDate, - this.endpointStatus, - this.id, - this.location, - this.metrics, - this.optOut, - this.requestId, - this.user}) - : super._(); + factory _$EndpointResponse([ + void Function(EndpointResponseBuilder)? updates, + ]) => (new EndpointResponseBuilder()..update(updates))._build(); + + _$EndpointResponse._({ + this.address, + this.applicationId, + this.attributes, + this.channelType, + this.cohortId, + this.creationDate, + this.demographic, + this.effectiveDate, + this.endpointStatus, + this.id, + this.location, + this.metrics, + this.optOut, + this.requestId, + this.user, + }) : super._(); @override EndpointResponse rebuild(void Function(EndpointResponseBuilder) updates) => @@ -230,23 +230,25 @@ class EndpointResponseBuilder _$EndpointResponse _build() { _$EndpointResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EndpointResponse._( - address: address, - applicationId: applicationId, - attributes: _attributes?.build(), - channelType: channelType, - cohortId: cohortId, - creationDate: creationDate, - demographic: _demographic?.build(), - effectiveDate: effectiveDate, - endpointStatus: endpointStatus, - id: id, - location: _location?.build(), - metrics: _metrics?.build(), - optOut: optOut, - requestId: requestId, - user: _user?.build()); + address: address, + applicationId: applicationId, + attributes: _attributes?.build(), + channelType: channelType, + cohortId: cohortId, + creationDate: creationDate, + demographic: _demographic?.build(), + effectiveDate: effectiveDate, + endpointStatus: endpointStatus, + id: id, + location: _location?.build(), + metrics: _metrics?.build(), + optOut: optOut, + requestId: requestId, + user: _user?.build(), + ); } catch (_) { late String _$failedField; try { @@ -265,7 +267,10 @@ class EndpointResponseBuilder _user?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EndpointResponse', _$failedField, e.toString()); + r'EndpointResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.dart index f51a91efd4..6487f41921 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.dart @@ -34,7 +34,7 @@ abstract class EndpointUser const EndpointUser._(); static const List<_i3.SmithySerializer> serializers = [ - EndpointUserRestJson1Serializer() + EndpointUserRestJson1Serializer(), ]; /// One or more custom attributes that describe the user by associating a name with an array of values. For example, the value of an attribute named Interests might be: \["Science", "Music", "Travel"\]. You can use these attributes as filter criteria when you create segments. Attribute names are case sensitive. @@ -45,21 +45,13 @@ abstract class EndpointUser /// The unique identifier for the user. String? get userId; @override - List get props => [ - userAttributes, - userId, - ]; + List get props => [userAttributes, userId]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointUser') - ..add( - 'userAttributes', - userAttributes, - ) - ..add( - 'userId', - userId, - ); + final helper = + newBuiltValueToStringHelper('EndpointUser') + ..add('userAttributes', userAttributes) + ..add('userId', userId); return helper.toString(); } } @@ -69,17 +61,11 @@ class EndpointUserRestJson1Serializer const EndpointUserRestJson1Serializer() : super('EndpointUser'); @override - Iterable get types => const [ - EndpointUser, - _$EndpointUser, - ]; + Iterable get types => const [EndpointUser, _$EndpointUser]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointUser deserialize( Serializers serializers, @@ -97,21 +83,23 @@ class EndpointUserRestJson1Serializer } switch (key) { case 'UserAttributes': - result.userAttributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltListMultimap)); + result.userAttributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltListMultimap), + ); case 'UserId': - result.userId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.userId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -129,24 +117,22 @@ class EndpointUserRestJson1Serializer if (userAttributes != null) { result$ ..add('UserAttributes') - ..add(serializers.serialize( - userAttributes, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ + ..add( + serializers.serialize( + userAttributes, + specifiedType: const FullType(_i2.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (userId != null) { result$ ..add('UserId') - ..add(serializers.serialize( - userId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(userId, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.g.dart index 1fb0fce425..d2ae5313f4 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/endpoint_user.g.dart @@ -85,9 +85,12 @@ class EndpointUserBuilder _$EndpointUser _build() { _$EndpointUser _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EndpointUser._( - userAttributes: _userAttributes?.build(), userId: userId); + userAttributes: _userAttributes?.build(), + userId: userId, + ); } catch (_) { late String _$failedField; try { @@ -95,7 +98,10 @@ class EndpointUserBuilder _userAttributes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EndpointUser', _$failedField, e.toString()); + r'EndpointUser', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.dart index 14909a10f4..0e271532db 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.dart @@ -49,7 +49,7 @@ abstract class Event const Event._(); static const List<_i3.SmithySerializer> serializers = [ - EventRestJson1Serializer() + EventRestJson1Serializer(), ]; /// The package name of the app that's recording the event. @@ -83,60 +83,31 @@ abstract class Event String get timestamp; @override List get props => [ - appPackageName, - appTitle, - appVersionCode, - attributes, - clientSdkVersion, - eventType, - metrics, - sdkName, - session, - timestamp, - ]; + appPackageName, + appTitle, + appVersionCode, + attributes, + clientSdkVersion, + eventType, + metrics, + sdkName, + session, + timestamp, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('Event') - ..add( - 'appPackageName', - appPackageName, - ) - ..add( - 'appTitle', - appTitle, - ) - ..add( - 'appVersionCode', - appVersionCode, - ) - ..add( - 'attributes', - attributes, - ) - ..add( - 'clientSdkVersion', - clientSdkVersion, - ) - ..add( - 'eventType', - eventType, - ) - ..add( - 'metrics', - metrics, - ) - ..add( - 'sdkName', - sdkName, - ) - ..add( - 'session', - session, - ) - ..add( - 'timestamp', - timestamp, - ); + final helper = + newBuiltValueToStringHelper('Event') + ..add('appPackageName', appPackageName) + ..add('appTitle', appTitle) + ..add('appVersionCode', appVersionCode) + ..add('attributes', attributes) + ..add('clientSdkVersion', clientSdkVersion) + ..add('eventType', eventType) + ..add('metrics', metrics) + ..add('sdkName', sdkName) + ..add('session', session) + ..add('timestamp', timestamp); return helper.toString(); } } @@ -145,17 +116,11 @@ class EventRestJson1Serializer extends _i3.StructuredSmithySerializer { const EventRestJson1Serializer() : super('Event'); @override - Iterable get types => const [ - Event, - _$Event, - ]; + Iterable get types => const [Event, _$Event]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override Event deserialize( Serializers serializers, @@ -173,67 +138,84 @@ class EventRestJson1Serializer extends _i3.StructuredSmithySerializer { } switch (key) { case 'AppPackageName': - result.appPackageName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.appPackageName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AppTitle': - result.appTitle = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.appTitle = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AppVersionCode': - result.appVersionCode = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.appVersionCode = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Attributes': - result.attributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.attributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); case 'ClientSdkVersion': - result.clientSdkVersion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientSdkVersion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EventType': - result.eventType = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eventType = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Metrics': - result.metrics.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i2.BuiltMap)); + result.metrics.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i2.BuiltMap), + ); case 'SdkName': - result.sdkName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.sdkName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Session': - result.session.replace((serializers.deserialize( - value, - specifiedType: const FullType(Session), - ) as Session)); + result.session.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Session), + ) + as Session), + ); case 'Timestamp': - result.timestamp = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.timestamp = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -257,95 +239,96 @@ class EventRestJson1Serializer extends _i3.StructuredSmithySerializer { :metrics, :sdkName, :session, - :timestamp + :timestamp, ) = object; result$.addAll([ 'EventType', - serializers.serialize( - eventType, - specifiedType: const FullType(String), - ), + serializers.serialize(eventType, specifiedType: const FullType(String)), 'Timestamp', - serializers.serialize( - timestamp, - specifiedType: const FullType(String), - ), + serializers.serialize(timestamp, specifiedType: const FullType(String)), ]); if (appPackageName != null) { result$ ..add('AppPackageName') - ..add(serializers.serialize( - appPackageName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + appPackageName, + specifiedType: const FullType(String), + ), + ); } if (appTitle != null) { result$ ..add('AppTitle') - ..add(serializers.serialize( - appTitle, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + appTitle, + specifiedType: const FullType(String), + ), + ); } if (appVersionCode != null) { result$ ..add('AppVersionCode') - ..add(serializers.serialize( - appVersionCode, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + appVersionCode, + specifiedType: const FullType(String), + ), + ); } if (attributes != null) { result$ ..add('Attributes') - ..add(serializers.serialize( - attributes, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + attributes, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (clientSdkVersion != null) { result$ ..add('ClientSdkVersion') - ..add(serializers.serialize( - clientSdkVersion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + clientSdkVersion, + specifiedType: const FullType(String), + ), + ); } if (metrics != null) { result$ ..add('Metrics') - ..add(serializers.serialize( - metrics, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + metrics, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(double), - ], + ]), ), - )); + ); } if (sdkName != null) { result$ ..add('SdkName') - ..add(serializers.serialize( - sdkName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(sdkName, specifiedType: const FullType(String)), + ); } if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(Session), - )); + ..add( + serializers.serialize( + session, + specifiedType: const FullType(Session), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.g.dart index 7d0dddb65b..6f9f89febe 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event.g.dart @@ -31,18 +31,18 @@ class _$Event extends Event { factory _$Event([void Function(EventBuilder)? updates]) => (new EventBuilder()..update(updates))._build(); - _$Event._( - {this.appPackageName, - this.appTitle, - this.appVersionCode, - this.attributes, - this.clientSdkVersion, - required this.eventType, - this.metrics, - this.sdkName, - this.session, - required this.timestamp}) - : super._() { + _$Event._({ + this.appPackageName, + this.appTitle, + this.appVersionCode, + this.attributes, + this.clientSdkVersion, + required this.eventType, + this.metrics, + this.sdkName, + this.session, + required this.timestamp, + }) : super._() { BuiltValueNullFieldError.checkNotNull(eventType, r'Event', 'eventType'); BuiltValueNullFieldError.checkNotNull(timestamp, r'Event', 'timestamp'); } @@ -175,20 +175,28 @@ class EventBuilder implements Builder { _$Event _build() { _$Event _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$Event._( - appPackageName: appPackageName, - appTitle: appTitle, - appVersionCode: appVersionCode, - attributes: _attributes?.build(), - clientSdkVersion: clientSdkVersion, - eventType: BuiltValueNullFieldError.checkNotNull( - eventType, r'Event', 'eventType'), - metrics: _metrics?.build(), - sdkName: sdkName, - session: _session?.build(), - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'Event', 'timestamp')); + appPackageName: appPackageName, + appTitle: appTitle, + appVersionCode: appVersionCode, + attributes: _attributes?.build(), + clientSdkVersion: clientSdkVersion, + eventType: BuiltValueNullFieldError.checkNotNull( + eventType, + r'Event', + 'eventType', + ), + metrics: _metrics?.build(), + sdkName: sdkName, + session: _session?.build(), + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'Event', + 'timestamp', + ), + ); } catch (_) { late String _$failedField; try { @@ -202,7 +210,10 @@ class EventBuilder implements Builder { _session?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'Event', _$failedField, e.toString()); + r'Event', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.dart index c935b85a27..5ab87e6409 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.dart @@ -32,13 +32,14 @@ abstract class EventDimensions } /// Specifies the dimensions for an event filter that determines when a campaign is sent or a journey activity is performed. - factory EventDimensions.build( - [void Function(EventDimensionsBuilder) updates]) = _$EventDimensions; + factory EventDimensions.build([ + void Function(EventDimensionsBuilder) updates, + ]) = _$EventDimensions; const EventDimensions._(); static const List<_i3.SmithySerializer> serializers = [ - EventDimensionsRestJson1Serializer() + EventDimensionsRestJson1Serializer(), ]; /// One or more custom attributes that your application reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter. @@ -50,26 +51,14 @@ abstract class EventDimensions /// One or more custom metrics that your application reports to Amazon Pinpoint. You can use these metrics as selection criteria when you create an event filter. _i2.BuiltMap? get metrics; @override - List get props => [ - attributes, - eventType, - metrics, - ]; + List get props => [attributes, eventType, metrics]; @override String toString() { - final helper = newBuiltValueToStringHelper('EventDimensions') - ..add( - 'attributes', - attributes, - ) - ..add( - 'eventType', - eventType, - ) - ..add( - 'metrics', - metrics, - ); + final helper = + newBuiltValueToStringHelper('EventDimensions') + ..add('attributes', attributes) + ..add('eventType', eventType) + ..add('metrics', metrics); return helper.toString(); } } @@ -79,17 +68,11 @@ class EventDimensionsRestJson1Serializer const EventDimensionsRestJson1Serializer() : super('EventDimensions'); @override - Iterable get types => const [ - EventDimensions, - _$EventDimensions, - ]; + Iterable get types => const [EventDimensions, _$EventDimensions]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EventDimensions deserialize( Serializers serializers, @@ -107,32 +90,35 @@ class EventDimensionsRestJson1Serializer } switch (key) { case 'Attributes': - result.attributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(AttributeDimension), - ], - ), - ) as _i2.BuiltMap)); + result.attributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(AttributeDimension), + ]), + ) + as _i2.BuiltMap), + ); case 'EventType': - result.eventType.replace((serializers.deserialize( - value, - specifiedType: const FullType(SetDimension), - ) as SetDimension)); + result.eventType.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(SetDimension), + ) + as SetDimension), + ); case 'Metrics': - result.metrics.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(MetricDimension), - ], - ), - ) as _i2.BuiltMap)); + result.metrics.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(MetricDimension), + ]), + ) + as _i2.BuiltMap), + ); } } @@ -150,38 +136,38 @@ class EventDimensionsRestJson1Serializer if (attributes != null) { result$ ..add('Attributes') - ..add(serializers.serialize( - attributes, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + attributes, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(AttributeDimension), - ], + ]), ), - )); + ); } if (eventType != null) { result$ ..add('EventType') - ..add(serializers.serialize( - eventType, - specifiedType: const FullType(SetDimension), - )); + ..add( + serializers.serialize( + eventType, + specifiedType: const FullType(SetDimension), + ), + ); } if (metrics != null) { result$ ..add('Metrics') - ..add(serializers.serialize( - metrics, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + metrics, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(MetricDimension), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.g.dart index 0fa932a467..9094c2cc44 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_dimensions.g.dart @@ -18,7 +18,7 @@ class _$EventDimensions extends EventDimensions { (new EventDimensionsBuilder()..update(updates))._build(); _$EventDimensions._({this.attributes, this.eventType, this.metrics}) - : super._(); + : super._(); @override EventDimensions rebuild(void Function(EventDimensionsBuilder) updates) => @@ -100,11 +100,13 @@ class EventDimensionsBuilder _$EventDimensions _build() { _$EventDimensions _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EventDimensions._( - attributes: _attributes?.build(), - eventType: _eventType?.build(), - metrics: _metrics?.build()); + attributes: _attributes?.build(), + eventType: _eventType?.build(), + metrics: _metrics?.build(), + ); } catch (_) { late String _$failedField; try { @@ -116,7 +118,10 @@ class EventDimensionsBuilder _metrics?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EventDimensions', _$failedField, e.toString()); + r'EventDimensions', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.dart index ad7b75ab62..07889f06d6 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.dart @@ -15,24 +15,19 @@ abstract class EventItemResponse with _i1.AWSEquatable implements Built { /// Provides the status code and message that result from processing an event. - factory EventItemResponse({ - String? message, - int? statusCode, - }) { - return _$EventItemResponse._( - message: message, - statusCode: statusCode, - ); + factory EventItemResponse({String? message, int? statusCode}) { + return _$EventItemResponse._(message: message, statusCode: statusCode); } /// Provides the status code and message that result from processing an event. - factory EventItemResponse.build( - [void Function(EventItemResponseBuilder) updates]) = _$EventItemResponse; + factory EventItemResponse.build([ + void Function(EventItemResponseBuilder) updates, + ]) = _$EventItemResponse; const EventItemResponse._(); static const List<_i2.SmithySerializer> serializers = [ - EventItemResponseRestJson1Serializer() + EventItemResponseRestJson1Serializer(), ]; /// A custom message that's returned in the response as a result of processing the event. @@ -41,21 +36,13 @@ abstract class EventItemResponse /// The status code that's returned in the response as a result of processing the event. Possible values are: 202, for events that were accepted; and, 400, for events that weren't valid. int? get statusCode; @override - List get props => [ - message, - statusCode, - ]; + List get props => [message, statusCode]; @override String toString() { - final helper = newBuiltValueToStringHelper('EventItemResponse') - ..add( - 'message', - message, - ) - ..add( - 'statusCode', - statusCode, - ); + final helper = + newBuiltValueToStringHelper('EventItemResponse') + ..add('message', message) + ..add('statusCode', statusCode); return helper.toString(); } } @@ -65,17 +52,11 @@ class EventItemResponseRestJson1Serializer const EventItemResponseRestJson1Serializer() : super('EventItemResponse'); @override - Iterable get types => const [ - EventItemResponse, - _$EventItemResponse, - ]; + Iterable get types => const [EventItemResponse, _$EventItemResponse]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EventItemResponse deserialize( Serializers serializers, @@ -93,15 +74,19 @@ class EventItemResponseRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StatusCode': - result.statusCode = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.statusCode = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -119,18 +104,16 @@ class EventItemResponseRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (statusCode != null) { result$ ..add('StatusCode') - ..add(serializers.serialize( - statusCode, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(statusCode, specifiedType: const FullType(int)), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.g.dart index 77be4c84c5..7c74978cbe 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/event_item_response.g.dart @@ -12,9 +12,9 @@ class _$EventItemResponse extends EventItemResponse { @override final int? statusCode; - factory _$EventItemResponse( - [void Function(EventItemResponseBuilder)? updates]) => - (new EventItemResponseBuilder()..update(updates))._build(); + factory _$EventItemResponse([ + void Function(EventItemResponseBuilder)? updates, + ]) => (new EventItemResponseBuilder()..update(updates))._build(); _$EventItemResponse._({this.message, this.statusCode}) : super._(); @@ -83,7 +83,8 @@ class EventItemResponseBuilder EventItemResponse build() => _build(); _$EventItemResponse _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EventItemResponse._(message: message, statusCode: statusCode); replace(_$result); return _$result; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.dart index 226595c5d3..9115739613 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.dart @@ -22,10 +22,7 @@ abstract class EventsBatch required PublicEndpoint endpoint, required Map events, }) { - return _$EventsBatch._( - endpoint: endpoint, - events: _i2.BuiltMap(events), - ); + return _$EventsBatch._(endpoint: endpoint, events: _i2.BuiltMap(events)); } /// Specifies a batch of endpoints and events to process. @@ -35,7 +32,7 @@ abstract class EventsBatch const EventsBatch._(); static const List<_i3.SmithySerializer> serializers = [ - EventsBatchRestJson1Serializer() + EventsBatchRestJson1Serializer(), ]; /// A set of properties and attributes that are associated with the endpoint. @@ -44,21 +41,13 @@ abstract class EventsBatch /// A set of properties that are associated with the event. _i2.BuiltMap get events; @override - List get props => [ - endpoint, - events, - ]; + List get props => [endpoint, events]; @override String toString() { - final helper = newBuiltValueToStringHelper('EventsBatch') - ..add( - 'endpoint', - endpoint, - ) - ..add( - 'events', - events, - ); + final helper = + newBuiltValueToStringHelper('EventsBatch') + ..add('endpoint', endpoint) + ..add('events', events); return helper.toString(); } } @@ -68,17 +57,11 @@ class EventsBatchRestJson1Serializer const EventsBatchRestJson1Serializer() : super('EventsBatch'); @override - Iterable get types => const [ - EventsBatch, - _$EventsBatch, - ]; + Iterable get types => const [EventsBatch, _$EventsBatch]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EventsBatch deserialize( Serializers serializers, @@ -96,21 +79,24 @@ class EventsBatchRestJson1Serializer } switch (key) { case 'Endpoint': - result.endpoint.replace((serializers.deserialize( - value, - specifiedType: const FullType(PublicEndpoint), - ) as PublicEndpoint)); + result.endpoint.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PublicEndpoint), + ) + as PublicEndpoint), + ); case 'Events': - result.events.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(Event), - ], - ), - ) as _i2.BuiltMap)); + result.events.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(Event), + ]), + ) + as _i2.BuiltMap), + ); } } @@ -134,13 +120,10 @@ class EventsBatchRestJson1Serializer 'Events', serializers.serialize( events, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(Event), - ], - ), + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(Event), + ]), ), ]); return result$; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.g.dart index ca04a666dd..9b2517d8fd 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_batch.g.dart @@ -87,9 +87,12 @@ class EventsBatchBuilder implements Builder { _$EventsBatch _build() { _$EventsBatch _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EventsBatch._( - endpoint: endpoint.build(), events: events.build()); + endpoint: endpoint.build(), + events: events.build(), + ); } catch (_) { late String _$failedField; try { @@ -99,7 +102,10 @@ class EventsBatchBuilder implements Builder { events.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EventsBatch', _$failedField, e.toString()); + r'EventsBatch', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.dart index d1d0917f49..809035e904 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.dart @@ -28,7 +28,7 @@ abstract class EventsRequest const EventsRequest._(); static const List<_i3.SmithySerializer> serializers = [ - EventsRequestRestJson1Serializer() + EventsRequestRestJson1Serializer(), ]; /// The batch of events to process. For each item in a batch, the endpoint ID acts as a key that has an EventsBatch object as its value. @@ -38,10 +38,7 @@ abstract class EventsRequest @override String toString() { final helper = newBuiltValueToStringHelper('EventsRequest') - ..add( - 'batchItem', - batchItem, - ); + ..add('batchItem', batchItem); return helper.toString(); } } @@ -51,17 +48,11 @@ class EventsRequestRestJson1Serializer const EventsRequestRestJson1Serializer() : super('EventsRequest'); @override - Iterable get types => const [ - EventsRequest, - _$EventsRequest, - ]; + Iterable get types => const [EventsRequest, _$EventsRequest]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EventsRequest deserialize( Serializers serializers, @@ -79,16 +70,16 @@ class EventsRequestRestJson1Serializer } switch (key) { case 'BatchItem': - result.batchItem.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(EventsBatch), - ], - ), - ) as _i2.BuiltMap)); + result.batchItem.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(EventsBatch), + ]), + ) + as _i2.BuiltMap), + ); } } @@ -107,13 +98,10 @@ class EventsRequestRestJson1Serializer 'BatchItem', serializers.serialize( batchItem, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(EventsBatch), - ], - ), + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(EventsBatch), + ]), ), ]); return result$; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.g.dart index 95c66147f4..b40b510b64 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_request.g.dart @@ -15,7 +15,10 @@ class _$EventsRequest extends EventsRequest { _$EventsRequest._({required this.batchItem}) : super._() { BuiltValueNullFieldError.checkNotNull( - batchItem, r'EventsRequest', 'batchItem'); + batchItem, + r'EventsRequest', + 'batchItem', + ); } @override @@ -86,7 +89,10 @@ class EventsRequestBuilder batchItem.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EventsRequest', _$failedField, e.toString()); + r'EventsRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.dart index e11d46affd..a9cf094865 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.dart @@ -19,7 +19,8 @@ abstract class EventsResponse /// Provides information about endpoints and the events that they're associated with. factory EventsResponse({Map? results}) { return _$EventsResponse._( - results: results == null ? null : _i2.BuiltMap(results)); + results: results == null ? null : _i2.BuiltMap(results), + ); } /// Provides information about endpoints and the events that they're associated with. @@ -29,7 +30,7 @@ abstract class EventsResponse const EventsResponse._(); static const List<_i3.SmithySerializer> serializers = [ - EventsResponseRestJson1Serializer() + EventsResponseRestJson1Serializer(), ]; /// A map that contains a multipart response for each endpoint. For each item in this object, the endpoint ID is the key and the item response is the value. If no item response exists, the value can also be one of the following: 202, the request was processed successfully; or 400, the payload wasn't valid or required fields were missing. @@ -39,10 +40,7 @@ abstract class EventsResponse @override String toString() { final helper = newBuiltValueToStringHelper('EventsResponse') - ..add( - 'results', - results, - ); + ..add('results', results); return helper.toString(); } } @@ -52,17 +50,11 @@ class EventsResponseRestJson1Serializer const EventsResponseRestJson1Serializer() : super('EventsResponse'); @override - Iterable get types => const [ - EventsResponse, - _$EventsResponse, - ]; + Iterable get types => const [EventsResponse, _$EventsResponse]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EventsResponse deserialize( Serializers serializers, @@ -80,16 +72,16 @@ class EventsResponseRestJson1Serializer } switch (key) { case 'Results': - result.results.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(ItemResponse), - ], - ), - ) as _i2.BuiltMap)); + result.results.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(ItemResponse), + ]), + ) + as _i2.BuiltMap), + ); } } @@ -107,16 +99,15 @@ class EventsResponseRestJson1Serializer if (results != null) { result$ ..add('Results') - ..add(serializers.serialize( - results, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + results, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(ItemResponse), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.g.dart index affda3a0ad..c462df0b32 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/events_response.g.dart @@ -84,7 +84,10 @@ class EventsResponseBuilder _results?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EventsResponse', _$failedField, e.toString()); + r'EventsResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/filter_type.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/filter_type.dart index b4ebb5b92e..c9b59a4a31 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/filter_type.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/filter_type.dart @@ -6,31 +6,16 @@ library amplify_analytics_pinpoint_dart.pinpoint.model.filter_type; // ignore_fo import 'package:smithy/smithy.dart' as _i1; class FilterType extends _i1.SmithyEnum { - const FilterType._( - super.index, - super.name, - super.value, - ); + const FilterType._(super.index, super.name, super.value); const FilterType._sdkUnknown(super.value) : super.sdkUnknown(); - static const endpoint = FilterType._( - 0, - 'ENDPOINT', - 'ENDPOINT', - ); + static const endpoint = FilterType._(0, 'ENDPOINT', 'ENDPOINT'); - static const system = FilterType._( - 1, - 'SYSTEM', - 'SYSTEM', - ); + static const system = FilterType._(1, 'SYSTEM', 'SYSTEM'); /// All values of [FilterType]. - static const values = [ - FilterType.endpoint, - FilterType.system, - ]; + static const values = [FilterType.endpoint, FilterType.system]; static const List<_i1.SmithySerializer> serializers = [ _i1.SmithyEnumSerializer( @@ -38,12 +23,9 @@ class FilterType extends _i1.SmithyEnum { values: values, sdkUnknown: FilterType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.dart index 18a6a26046..020cd6a9af 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.dart @@ -17,20 +17,14 @@ abstract class ForbiddenException Built, _i2.SmithyHttpException { /// Provides information about an API request or response. - factory ForbiddenException({ - String? message, - String? requestId, - }) { - return _$ForbiddenException._( - message: message, - requestId: requestId, - ); + factory ForbiddenException({String? message, String? requestId}) { + return _$ForbiddenException._(message: message, requestId: requestId); } /// Provides information about an API request or response. - factory ForbiddenException.build( - [void Function(ForbiddenExceptionBuilder) updates]) = - _$ForbiddenException; + factory ForbiddenException.build([ + void Function(ForbiddenExceptionBuilder) updates, + ]) = _$ForbiddenException; const ForbiddenException._(); @@ -38,13 +32,12 @@ abstract class ForbiddenException factory ForbiddenException.fromResponse( ForbiddenException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ForbiddenExceptionRestJson1Serializer() + ForbiddenExceptionRestJson1Serializer(), ]; /// The message that's returned from the API. @@ -55,9 +48,9 @@ abstract class ForbiddenException String? get requestId; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'ForbiddenException', - ); + namespace: 'com.amazonaws.pinpoint', + shape: 'ForbiddenException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -69,21 +62,13 @@ abstract class ForbiddenException @override Exception? get underlyingException => null; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('ForbiddenException') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('ForbiddenException') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -93,17 +78,11 @@ class ForbiddenExceptionRestJson1Serializer const ForbiddenExceptionRestJson1Serializer() : super('ForbiddenException'); @override - Iterable get types => const [ - ForbiddenException, - _$ForbiddenException, - ]; + Iterable get types => const [ForbiddenException, _$ForbiddenException]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ForbiddenException deserialize( Serializers serializers, @@ -121,15 +100,19 @@ class ForbiddenExceptionRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,18 +130,19 @@ class ForbiddenExceptionRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.g.dart index 5b292a7788..6bb69930bc 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/forbidden_exception.g.dart @@ -14,17 +14,17 @@ class _$ForbiddenException extends ForbiddenException { @override final Map? headers; - factory _$ForbiddenException( - [void Function(ForbiddenExceptionBuilder)? updates]) => - (new ForbiddenExceptionBuilder()..update(updates))._build(); + factory _$ForbiddenException([ + void Function(ForbiddenExceptionBuilder)? updates, + ]) => (new ForbiddenExceptionBuilder()..update(updates))._build(); _$ForbiddenException._({this.message, this.requestId, this.headers}) - : super._(); + : super._(); @override ForbiddenException rebuild( - void Function(ForbiddenExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ForbiddenExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ForbiddenExceptionBuilder toBuilder() => @@ -92,9 +92,13 @@ class ForbiddenExceptionBuilder ForbiddenException build() => _build(); _$ForbiddenException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ForbiddenException._( - message: message, requestId: requestId, headers: headers); + message: message, + requestId: requestId, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.dart index 8910c27119..0b84250aee 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.dart @@ -29,9 +29,9 @@ abstract class GetEndpointRequest ); } - factory GetEndpointRequest.build( - [void Function(GetEndpointRequestBuilder) updates]) = - _$GetEndpointRequest; + factory GetEndpointRequest.build([ + void Function(GetEndpointRequestBuilder) updates, + ]) = _$GetEndpointRequest; const GetEndpointRequest._(); @@ -39,18 +39,17 @@ abstract class GetEndpointRequest GetEndpointRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetEndpointRequest.build((b) { - if (labels['applicationId'] != null) { - b.applicationId = labels['applicationId']!; - } - if (labels['endpointId'] != null) { - b.endpointId = labels['endpointId']!; - } - }); + }) => GetEndpointRequest.build((b) { + if (labels['applicationId'] != null) { + b.applicationId = labels['applicationId']!; + } + if (labels['endpointId'] != null) { + b.endpointId = labels['endpointId']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [GetEndpointRequestRestJson1Serializer()]; + serializers = [GetEndpointRequestRestJson1Serializer()]; /// The unique identifier for the application. This identifier is displayed as the **Project ID** on the Amazon Pinpoint console. String get applicationId; @@ -65,30 +64,19 @@ abstract class GetEndpointRequest case 'EndpointId': return endpointId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override GetEndpointRequestPayload getPayload() => GetEndpointRequestPayload(); @override - List get props => [ - applicationId, - endpointId, - ]; + List get props => [applicationId, endpointId]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetEndpointRequest') - ..add( - 'applicationId', - applicationId, - ) - ..add( - 'endpointId', - endpointId, - ); + final helper = + newBuiltValueToStringHelper('GetEndpointRequest') + ..add('applicationId', applicationId) + ..add('endpointId', endpointId); return helper.toString(); } } @@ -99,9 +87,9 @@ abstract class GetEndpointRequestPayload implements Built, _i1.EmptyPayload { - factory GetEndpointRequestPayload( - [void Function(GetEndpointRequestPayloadBuilder) updates]) = - _$GetEndpointRequestPayload; + factory GetEndpointRequestPayload([ + void Function(GetEndpointRequestPayloadBuilder) updates, + ]) = _$GetEndpointRequestPayload; const GetEndpointRequestPayload._(); @@ -120,18 +108,15 @@ class GetEndpointRequestRestJson1Serializer @override Iterable get types => const [ - GetEndpointRequest, - _$GetEndpointRequest, - GetEndpointRequestPayload, - _$GetEndpointRequestPayload, - ]; + GetEndpointRequest, + _$GetEndpointRequest, + GetEndpointRequestPayload, + _$GetEndpointRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GetEndpointRequestPayload deserialize( Serializers serializers, @@ -146,6 +131,5 @@ class GetEndpointRequestRestJson1Serializer Serializers serializers, GetEndpointRequestPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.g.dart index 0d8f5b2fd0..7fb744dc41 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_request.g.dart @@ -12,23 +12,30 @@ class _$GetEndpointRequest extends GetEndpointRequest { @override final String endpointId; - factory _$GetEndpointRequest( - [void Function(GetEndpointRequestBuilder)? updates]) => - (new GetEndpointRequestBuilder()..update(updates))._build(); - - _$GetEndpointRequest._( - {required this.applicationId, required this.endpointId}) - : super._() { + factory _$GetEndpointRequest([ + void Function(GetEndpointRequestBuilder)? updates, + ]) => (new GetEndpointRequestBuilder()..update(updates))._build(); + + _$GetEndpointRequest._({ + required this.applicationId, + required this.endpointId, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - applicationId, r'GetEndpointRequest', 'applicationId'); + applicationId, + r'GetEndpointRequest', + 'applicationId', + ); BuiltValueNullFieldError.checkNotNull( - endpointId, r'GetEndpointRequest', 'endpointId'); + endpointId, + r'GetEndpointRequest', + 'endpointId', + ); } @override GetEndpointRequest rebuild( - void Function(GetEndpointRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetEndpointRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetEndpointRequestBuilder toBuilder() => @@ -92,28 +99,36 @@ class GetEndpointRequestBuilder GetEndpointRequest build() => _build(); _$GetEndpointRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetEndpointRequest._( - applicationId: BuiltValueNullFieldError.checkNotNull( - applicationId, r'GetEndpointRequest', 'applicationId'), - endpointId: BuiltValueNullFieldError.checkNotNull( - endpointId, r'GetEndpointRequest', 'endpointId')); + applicationId: BuiltValueNullFieldError.checkNotNull( + applicationId, + r'GetEndpointRequest', + 'applicationId', + ), + endpointId: BuiltValueNullFieldError.checkNotNull( + endpointId, + r'GetEndpointRequest', + 'endpointId', + ), + ); replace(_$result); return _$result; } } class _$GetEndpointRequestPayload extends GetEndpointRequestPayload { - factory _$GetEndpointRequestPayload( - [void Function(GetEndpointRequestPayloadBuilder)? updates]) => - (new GetEndpointRequestPayloadBuilder()..update(updates))._build(); + factory _$GetEndpointRequestPayload([ + void Function(GetEndpointRequestPayloadBuilder)? updates, + ]) => (new GetEndpointRequestPayloadBuilder()..update(updates))._build(); _$GetEndpointRequestPayload._() : super._(); @override GetEndpointRequestPayload rebuild( - void Function(GetEndpointRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetEndpointRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetEndpointRequestPayloadBuilder toBuilder() => diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.dart index ac6a09a4cd..adfcb52a59 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.dart @@ -20,9 +20,9 @@ abstract class GetEndpointResponse return _$GetEndpointResponse._(endpointResponse: endpointResponse); } - factory GetEndpointResponse.build( - [void Function(GetEndpointResponseBuilder) updates]) = - _$GetEndpointResponse; + factory GetEndpointResponse.build([ + void Function(GetEndpointResponseBuilder) updates, + ]) = _$GetEndpointResponse; const GetEndpointResponse._(); @@ -30,13 +30,12 @@ abstract class GetEndpointResponse factory GetEndpointResponse.fromResponse( EndpointResponse payload, _i1.AWSBaseHttpResponse response, - ) => - GetEndpointResponse.build((b) { - b.endpointResponse.replace(payload); - }); + ) => GetEndpointResponse.build((b) { + b.endpointResponse.replace(payload); + }); static const List<_i2.SmithySerializer> serializers = [ - GetEndpointResponseRestJson1Serializer() + GetEndpointResponseRestJson1Serializer(), ]; /// Provides information about the channel type and other settings for an endpoint. @@ -48,10 +47,7 @@ abstract class GetEndpointResponse @override String toString() { final helper = newBuiltValueToStringHelper('GetEndpointResponse') - ..add( - 'endpointResponse', - endpointResponse, - ); + ..add('endpointResponse', endpointResponse); return helper.toString(); } } @@ -62,16 +58,13 @@ class GetEndpointResponseRestJson1Serializer @override Iterable get types => const [ - GetEndpointResponse, - _$GetEndpointResponse, - ]; + GetEndpointResponse, + _$GetEndpointResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointResponse deserialize( Serializers serializers, @@ -79,9 +72,10 @@ class GetEndpointResponseRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(EndpointResponse), - ) as EndpointResponse); + serialized, + specifiedType: const FullType(EndpointResponse), + ) + as EndpointResponse); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.g.dart index 1b4a523702..131ef92d86 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_endpoint_response.g.dart @@ -10,19 +10,22 @@ class _$GetEndpointResponse extends GetEndpointResponse { @override final EndpointResponse endpointResponse; - factory _$GetEndpointResponse( - [void Function(GetEndpointResponseBuilder)? updates]) => - (new GetEndpointResponseBuilder()..update(updates))._build(); + factory _$GetEndpointResponse([ + void Function(GetEndpointResponseBuilder)? updates, + ]) => (new GetEndpointResponseBuilder()..update(updates))._build(); _$GetEndpointResponse._({required this.endpointResponse}) : super._() { BuiltValueNullFieldError.checkNotNull( - endpointResponse, r'GetEndpointResponse', 'endpointResponse'); + endpointResponse, + r'GetEndpointResponse', + 'endpointResponse', + ); } @override GetEndpointResponse rebuild( - void Function(GetEndpointResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetEndpointResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetEndpointResponseBuilder toBuilder() => @@ -82,9 +85,11 @@ class GetEndpointResponseBuilder _$GetEndpointResponse _build() { _$GetEndpointResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetEndpointResponse._( - endpointResponse: endpointResponse.build()); + endpointResponse: endpointResponse.build(), + ); } catch (_) { late String _$failedField; try { @@ -92,7 +97,10 @@ class GetEndpointResponseBuilder endpointResponse.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetEndpointResponse', _$failedField, e.toString()); + r'GetEndpointResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.dart index 7ead800f10..155bdf45c7 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.dart @@ -29,9 +29,9 @@ abstract class GetInAppMessagesRequest ); } - factory GetInAppMessagesRequest.build( - [void Function(GetInAppMessagesRequestBuilder) updates]) = - _$GetInAppMessagesRequest; + factory GetInAppMessagesRequest.build([ + void Function(GetInAppMessagesRequestBuilder) updates, + ]) = _$GetInAppMessagesRequest; const GetInAppMessagesRequest._(); @@ -39,18 +39,17 @@ abstract class GetInAppMessagesRequest GetInAppMessagesRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetInAppMessagesRequest.build((b) { - if (labels['applicationId'] != null) { - b.applicationId = labels['applicationId']!; - } - if (labels['endpointId'] != null) { - b.endpointId = labels['endpointId']!; - } - }); + }) => GetInAppMessagesRequest.build((b) { + if (labels['applicationId'] != null) { + b.applicationId = labels['applicationId']!; + } + if (labels['endpointId'] != null) { + b.endpointId = labels['endpointId']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [GetInAppMessagesRequestRestJson1Serializer()]; + serializers = [GetInAppMessagesRequestRestJson1Serializer()]; /// The unique identifier for the application. This identifier is displayed as the **Project ID** on the Amazon Pinpoint console. String get applicationId; @@ -65,46 +64,36 @@ abstract class GetInAppMessagesRequest case 'EndpointId': return endpointId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override GetInAppMessagesRequestPayload getPayload() => GetInAppMessagesRequestPayload(); @override - List get props => [ - applicationId, - endpointId, - ]; + List get props => [applicationId, endpointId]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetInAppMessagesRequest') - ..add( - 'applicationId', - applicationId, - ) - ..add( - 'endpointId', - endpointId, - ); + final helper = + newBuiltValueToStringHelper('GetInAppMessagesRequest') + ..add('applicationId', applicationId) + ..add('endpointId', endpointId); return helper.toString(); } } @_i3.internal abstract class GetInAppMessagesRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + GetInAppMessagesRequestPayload, + GetInAppMessagesRequestPayloadBuilder + >, _i1.EmptyPayload { - factory GetInAppMessagesRequestPayload( - [void Function(GetInAppMessagesRequestPayloadBuilder) updates]) = - _$GetInAppMessagesRequestPayload; + factory GetInAppMessagesRequestPayload([ + void Function(GetInAppMessagesRequestPayloadBuilder) updates, + ]) = _$GetInAppMessagesRequestPayload; const GetInAppMessagesRequestPayload._(); @@ -112,8 +101,9 @@ abstract class GetInAppMessagesRequestPayload List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('GetInAppMessagesRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'GetInAppMessagesRequestPayload', + ); return helper.toString(); } } @@ -121,22 +111,19 @@ abstract class GetInAppMessagesRequestPayload class GetInAppMessagesRequestRestJson1Serializer extends _i1.StructuredSmithySerializer { const GetInAppMessagesRequestRestJson1Serializer() - : super('GetInAppMessagesRequest'); + : super('GetInAppMessagesRequest'); @override Iterable get types => const [ - GetInAppMessagesRequest, - _$GetInAppMessagesRequest, - GetInAppMessagesRequestPayload, - _$GetInAppMessagesRequestPayload, - ]; + GetInAppMessagesRequest, + _$GetInAppMessagesRequest, + GetInAppMessagesRequestPayload, + _$GetInAppMessagesRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GetInAppMessagesRequestPayload deserialize( Serializers serializers, @@ -151,6 +138,5 @@ class GetInAppMessagesRequestRestJson1Serializer Serializers serializers, GetInAppMessagesRequestPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.g.dart index 68ba927672..5cb030a62d 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_request.g.dart @@ -12,23 +12,30 @@ class _$GetInAppMessagesRequest extends GetInAppMessagesRequest { @override final String endpointId; - factory _$GetInAppMessagesRequest( - [void Function(GetInAppMessagesRequestBuilder)? updates]) => - (new GetInAppMessagesRequestBuilder()..update(updates))._build(); - - _$GetInAppMessagesRequest._( - {required this.applicationId, required this.endpointId}) - : super._() { + factory _$GetInAppMessagesRequest([ + void Function(GetInAppMessagesRequestBuilder)? updates, + ]) => (new GetInAppMessagesRequestBuilder()..update(updates))._build(); + + _$GetInAppMessagesRequest._({ + required this.applicationId, + required this.endpointId, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - applicationId, r'GetInAppMessagesRequest', 'applicationId'); + applicationId, + r'GetInAppMessagesRequest', + 'applicationId', + ); BuiltValueNullFieldError.checkNotNull( - endpointId, r'GetInAppMessagesRequest', 'endpointId'); + endpointId, + r'GetInAppMessagesRequest', + 'endpointId', + ); } @override GetInAppMessagesRequest rebuild( - void Function(GetInAppMessagesRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetInAppMessagesRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetInAppMessagesRequestBuilder toBuilder() => @@ -93,28 +100,36 @@ class GetInAppMessagesRequestBuilder GetInAppMessagesRequest build() => _build(); _$GetInAppMessagesRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetInAppMessagesRequest._( - applicationId: BuiltValueNullFieldError.checkNotNull( - applicationId, r'GetInAppMessagesRequest', 'applicationId'), - endpointId: BuiltValueNullFieldError.checkNotNull( - endpointId, r'GetInAppMessagesRequest', 'endpointId')); + applicationId: BuiltValueNullFieldError.checkNotNull( + applicationId, + r'GetInAppMessagesRequest', + 'applicationId', + ), + endpointId: BuiltValueNullFieldError.checkNotNull( + endpointId, + r'GetInAppMessagesRequest', + 'endpointId', + ), + ); replace(_$result); return _$result; } } class _$GetInAppMessagesRequestPayload extends GetInAppMessagesRequestPayload { - factory _$GetInAppMessagesRequestPayload( - [void Function(GetInAppMessagesRequestPayloadBuilder)? updates]) => - (new GetInAppMessagesRequestPayloadBuilder()..update(updates))._build(); + factory _$GetInAppMessagesRequestPayload([ + void Function(GetInAppMessagesRequestPayloadBuilder)? updates, + ]) => (new GetInAppMessagesRequestPayloadBuilder()..update(updates))._build(); _$GetInAppMessagesRequestPayload._() : super._(); @override GetInAppMessagesRequestPayload rebuild( - void Function(GetInAppMessagesRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetInAppMessagesRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetInAppMessagesRequestPayloadBuilder toBuilder() => @@ -134,8 +149,10 @@ class _$GetInAppMessagesRequestPayload extends GetInAppMessagesRequestPayload { class GetInAppMessagesRequestPayloadBuilder implements - Builder { + Builder< + GetInAppMessagesRequestPayload, + GetInAppMessagesRequestPayloadBuilder + > { _$GetInAppMessagesRequestPayload? _$v; GetInAppMessagesRequestPayloadBuilder(); diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.dart index d720088374..9649ab8617 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.dart @@ -16,15 +16,17 @@ abstract class GetInAppMessagesResponse implements Built, _i2.HasPayload { - factory GetInAppMessagesResponse( - {required InAppMessagesResponse inAppMessagesResponse}) { + factory GetInAppMessagesResponse({ + required InAppMessagesResponse inAppMessagesResponse, + }) { return _$GetInAppMessagesResponse._( - inAppMessagesResponse: inAppMessagesResponse); + inAppMessagesResponse: inAppMessagesResponse, + ); } - factory GetInAppMessagesResponse.build( - [void Function(GetInAppMessagesResponseBuilder) updates]) = - _$GetInAppMessagesResponse; + factory GetInAppMessagesResponse.build([ + void Function(GetInAppMessagesResponseBuilder) updates, + ]) = _$GetInAppMessagesResponse; const GetInAppMessagesResponse._(); @@ -32,13 +34,12 @@ abstract class GetInAppMessagesResponse factory GetInAppMessagesResponse.fromResponse( InAppMessagesResponse payload, _i1.AWSBaseHttpResponse response, - ) => - GetInAppMessagesResponse.build((b) { - b.inAppMessagesResponse.replace(payload); - }); + ) => GetInAppMessagesResponse.build((b) { + b.inAppMessagesResponse.replace(payload); + }); static const List<_i2.SmithySerializer> serializers = [ - GetInAppMessagesResponseRestJson1Serializer() + GetInAppMessagesResponseRestJson1Serializer(), ]; /// Get in-app messages response object. @@ -50,10 +51,7 @@ abstract class GetInAppMessagesResponse @override String toString() { final helper = newBuiltValueToStringHelper('GetInAppMessagesResponse') - ..add( - 'inAppMessagesResponse', - inAppMessagesResponse, - ); + ..add('inAppMessagesResponse', inAppMessagesResponse); return helper.toString(); } } @@ -61,20 +59,17 @@ abstract class GetInAppMessagesResponse class GetInAppMessagesResponseRestJson1Serializer extends _i2.PrimitiveSmithySerializer { const GetInAppMessagesResponseRestJson1Serializer() - : super('GetInAppMessagesResponse'); + : super('GetInAppMessagesResponse'); @override Iterable get types => const [ - GetInAppMessagesResponse, - _$GetInAppMessagesResponse, - ]; + GetInAppMessagesResponse, + _$GetInAppMessagesResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessagesResponse deserialize( Serializers serializers, @@ -82,9 +77,10 @@ class GetInAppMessagesResponseRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(InAppMessagesResponse), - ) as InAppMessagesResponse); + serialized, + specifiedType: const FullType(InAppMessagesResponse), + ) + as InAppMessagesResponse); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.g.dart index 5a9cfdb55c..cef8f50c1e 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/get_in_app_messages_response.g.dart @@ -10,20 +10,23 @@ class _$GetInAppMessagesResponse extends GetInAppMessagesResponse { @override final InAppMessagesResponse inAppMessagesResponse; - factory _$GetInAppMessagesResponse( - [void Function(GetInAppMessagesResponseBuilder)? updates]) => - (new GetInAppMessagesResponseBuilder()..update(updates))._build(); + factory _$GetInAppMessagesResponse([ + void Function(GetInAppMessagesResponseBuilder)? updates, + ]) => (new GetInAppMessagesResponseBuilder()..update(updates))._build(); _$GetInAppMessagesResponse._({required this.inAppMessagesResponse}) - : super._() { - BuiltValueNullFieldError.checkNotNull(inAppMessagesResponse, - r'GetInAppMessagesResponse', 'inAppMessagesResponse'); + : super._() { + BuiltValueNullFieldError.checkNotNull( + inAppMessagesResponse, + r'GetInAppMessagesResponse', + 'inAppMessagesResponse', + ); } @override GetInAppMessagesResponse rebuild( - void Function(GetInAppMessagesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetInAppMessagesResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetInAppMessagesResponseBuilder toBuilder() => @@ -54,8 +57,8 @@ class GetInAppMessagesResponseBuilder InAppMessagesResponseBuilder get inAppMessagesResponse => _$this._inAppMessagesResponse ??= new InAppMessagesResponseBuilder(); set inAppMessagesResponse( - InAppMessagesResponseBuilder? inAppMessagesResponse) => - _$this._inAppMessagesResponse = inAppMessagesResponse; + InAppMessagesResponseBuilder? inAppMessagesResponse, + ) => _$this._inAppMessagesResponse = inAppMessagesResponse; GetInAppMessagesResponseBuilder(); @@ -85,9 +88,11 @@ class GetInAppMessagesResponseBuilder _$GetInAppMessagesResponse _build() { _$GetInAppMessagesResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetInAppMessagesResponse._( - inAppMessagesResponse: inAppMessagesResponse.build()); + inAppMessagesResponse: inAppMessagesResponse.build(), + ); } catch (_) { late String _$failedField; try { @@ -95,7 +100,10 @@ class GetInAppMessagesResponseBuilder inAppMessagesResponse.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetInAppMessagesResponse', _$failedField, e.toString()); + r'GetInAppMessagesResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.dart index 45bf8af59f..8981b60cec 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.dart @@ -30,14 +30,14 @@ abstract class InAppCampaignSchedule } /// Schedule of the campaign. - factory InAppCampaignSchedule.build( - [void Function(InAppCampaignScheduleBuilder) updates]) = - _$InAppCampaignSchedule; + factory InAppCampaignSchedule.build([ + void Function(InAppCampaignScheduleBuilder) updates, + ]) = _$InAppCampaignSchedule; const InAppCampaignSchedule._(); static const List<_i2.SmithySerializer> serializers = [ - InAppCampaignScheduleRestJson1Serializer() + InAppCampaignScheduleRestJson1Serializer(), ]; /// The scheduled time after which the in-app message should not be shown. Timestamp is in ISO 8601 format. @@ -49,26 +49,14 @@ abstract class InAppCampaignSchedule /// Time during which the in-app message should not be shown to the user. QuietTime? get quietTime; @override - List get props => [ - endDate, - eventFilter, - quietTime, - ]; + List get props => [endDate, eventFilter, quietTime]; @override String toString() { - final helper = newBuiltValueToStringHelper('InAppCampaignSchedule') - ..add( - 'endDate', - endDate, - ) - ..add( - 'eventFilter', - eventFilter, - ) - ..add( - 'quietTime', - quietTime, - ); + final helper = + newBuiltValueToStringHelper('InAppCampaignSchedule') + ..add('endDate', endDate) + ..add('eventFilter', eventFilter) + ..add('quietTime', quietTime); return helper.toString(); } } @@ -76,20 +64,17 @@ abstract class InAppCampaignSchedule class InAppCampaignScheduleRestJson1Serializer extends _i2.StructuredSmithySerializer { const InAppCampaignScheduleRestJson1Serializer() - : super('InAppCampaignSchedule'); + : super('InAppCampaignSchedule'); @override Iterable get types => const [ - InAppCampaignSchedule, - _$InAppCampaignSchedule, - ]; + InAppCampaignSchedule, + _$InAppCampaignSchedule, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppCampaignSchedule deserialize( Serializers serializers, @@ -107,20 +92,28 @@ class InAppCampaignScheduleRestJson1Serializer } switch (key) { case 'EndDate': - result.endDate = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.endDate = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EventFilter': - result.eventFilter.replace((serializers.deserialize( - value, - specifiedType: const FullType(CampaignEventFilter), - ) as CampaignEventFilter)); + result.eventFilter.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CampaignEventFilter), + ) + as CampaignEventFilter), + ); case 'QuietTime': - result.quietTime.replace((serializers.deserialize( - value, - specifiedType: const FullType(QuietTime), - ) as QuietTime)); + result.quietTime.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(QuietTime), + ) + as QuietTime), + ); } } @@ -138,26 +131,29 @@ class InAppCampaignScheduleRestJson1Serializer if (endDate != null) { result$ ..add('EndDate') - ..add(serializers.serialize( - endDate, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(endDate, specifiedType: const FullType(String)), + ); } if (eventFilter != null) { result$ ..add('EventFilter') - ..add(serializers.serialize( - eventFilter, - specifiedType: const FullType(CampaignEventFilter), - )); + ..add( + serializers.serialize( + eventFilter, + specifiedType: const FullType(CampaignEventFilter), + ), + ); } if (quietTime != null) { result$ ..add('QuietTime') - ..add(serializers.serialize( - quietTime, - specifiedType: const FullType(QuietTime), - )); + ..add( + serializers.serialize( + quietTime, + specifiedType: const FullType(QuietTime), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.g.dart index 2b2fd15853..433100b6ae 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_campaign_schedule.g.dart @@ -14,17 +14,17 @@ class _$InAppCampaignSchedule extends InAppCampaignSchedule { @override final QuietTime? quietTime; - factory _$InAppCampaignSchedule( - [void Function(InAppCampaignScheduleBuilder)? updates]) => - (new InAppCampaignScheduleBuilder()..update(updates))._build(); + factory _$InAppCampaignSchedule([ + void Function(InAppCampaignScheduleBuilder)? updates, + ]) => (new InAppCampaignScheduleBuilder()..update(updates))._build(); _$InAppCampaignSchedule._({this.endDate, this.eventFilter, this.quietTime}) - : super._(); + : super._(); @override InAppCampaignSchedule rebuild( - void Function(InAppCampaignScheduleBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InAppCampaignScheduleBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InAppCampaignScheduleBuilder toBuilder() => @@ -99,11 +99,13 @@ class InAppCampaignScheduleBuilder _$InAppCampaignSchedule _build() { _$InAppCampaignSchedule _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InAppCampaignSchedule._( - endDate: endDate, - eventFilter: _eventFilter?.build(), - quietTime: _quietTime?.build()); + endDate: endDate, + eventFilter: _eventFilter?.build(), + quietTime: _quietTime?.build(), + ); } catch (_) { late String _$failedField; try { @@ -113,7 +115,10 @@ class InAppCampaignScheduleBuilder _quietTime?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InAppCampaignSchedule', _$failedField, e.toString()); + r'InAppCampaignSchedule', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.dart index dac5d4a554..8dc1a41c92 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.dart @@ -37,7 +37,7 @@ abstract class InAppMessage const InAppMessage._(); static const List<_i3.SmithySerializer> serializers = [ - InAppMessageRestJson1Serializer() + InAppMessageRestJson1Serializer(), ]; /// In-app message content. @@ -49,26 +49,14 @@ abstract class InAppMessage /// The layout of the message. Layout? get layout; @override - List get props => [ - content, - customConfig, - layout, - ]; + List get props => [content, customConfig, layout]; @override String toString() { - final helper = newBuiltValueToStringHelper('InAppMessage') - ..add( - 'content', - content, - ) - ..add( - 'customConfig', - customConfig, - ) - ..add( - 'layout', - layout, - ); + final helper = + newBuiltValueToStringHelper('InAppMessage') + ..add('content', content) + ..add('customConfig', customConfig) + ..add('layout', layout); return helper.toString(); } } @@ -78,17 +66,11 @@ class InAppMessageRestJson1Serializer const InAppMessageRestJson1Serializer() : super('InAppMessage'); @override - Iterable get types => const [ - InAppMessage, - _$InAppMessage, - ]; + Iterable get types => const [InAppMessage, _$InAppMessage]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessage deserialize( Serializers serializers, @@ -106,29 +88,33 @@ class InAppMessageRestJson1Serializer } switch (key) { case 'Content': - result.content.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(InAppMessageContent)], - ), - ) as _i2.BuiltList)); + result.content.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(InAppMessageContent), + ]), + ) + as _i2.BuiltList), + ); case 'CustomConfig': - result.customConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.customConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); case 'Layout': - result.layout = (serializers.deserialize( - value, - specifiedType: const FullType(Layout), - ) as Layout); + result.layout = + (serializers.deserialize( + value, + specifiedType: const FullType(Layout), + ) + as Layout); } } @@ -146,35 +132,34 @@ class InAppMessageRestJson1Serializer if (content != null) { result$ ..add('Content') - ..add(serializers.serialize( - content, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(InAppMessageContent)], + ..add( + serializers.serialize( + content, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(InAppMessageContent), + ]), ), - )); + ); } if (customConfig != null) { result$ ..add('CustomConfig') - ..add(serializers.serialize( - customConfig, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + customConfig, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (layout != null) { result$ ..add('Layout') - ..add(serializers.serialize( - layout, - specifiedType: const FullType(Layout), - )); + ..add( + serializers.serialize(layout, specifiedType: const FullType(Layout)), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.g.dart index 80b1e24104..b426a6f5a4 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message.g.dart @@ -96,11 +96,13 @@ class InAppMessageBuilder _$InAppMessage _build() { _$InAppMessage _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InAppMessage._( - content: _content?.build(), - customConfig: _customConfig?.build(), - layout: layout); + content: _content?.build(), + customConfig: _customConfig?.build(), + layout: layout, + ); } catch (_) { late String _$failedField; try { @@ -110,7 +112,10 @@ class InAppMessageBuilder _customConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InAppMessage', _$failedField, e.toString()); + r'InAppMessage', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.dart index 921d84e85a..e3c537ca7d 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.dart @@ -29,9 +29,9 @@ abstract class InAppMessageBodyConfig } /// Text config for Message Body. - factory InAppMessageBodyConfig.build( - [void Function(InAppMessageBodyConfigBuilder) updates]) = - _$InAppMessageBodyConfig; + factory InAppMessageBodyConfig.build([ + void Function(InAppMessageBodyConfigBuilder) updates, + ]) = _$InAppMessageBodyConfig; const InAppMessageBodyConfig._(); @@ -47,26 +47,14 @@ abstract class InAppMessageBodyConfig /// The text color. String get textColor; @override - List get props => [ - alignment, - body, - textColor, - ]; + List get props => [alignment, body, textColor]; @override String toString() { - final helper = newBuiltValueToStringHelper('InAppMessageBodyConfig') - ..add( - 'alignment', - alignment, - ) - ..add( - 'body', - body, - ) - ..add( - 'textColor', - textColor, - ); + final helper = + newBuiltValueToStringHelper('InAppMessageBodyConfig') + ..add('alignment', alignment) + ..add('body', body) + ..add('textColor', textColor); return helper.toString(); } } @@ -74,20 +62,17 @@ abstract class InAppMessageBodyConfig class InAppMessageBodyConfigRestJson1Serializer extends _i2.StructuredSmithySerializer { const InAppMessageBodyConfigRestJson1Serializer() - : super('InAppMessageBodyConfig'); + : super('InAppMessageBodyConfig'); @override Iterable get types => const [ - InAppMessageBodyConfig, - _$InAppMessageBodyConfig, - ]; + InAppMessageBodyConfig, + _$InAppMessageBodyConfig, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessageBodyConfig deserialize( Serializers serializers, @@ -105,20 +90,26 @@ class InAppMessageBodyConfigRestJson1Serializer } switch (key) { case 'Alignment': - result.alignment = (serializers.deserialize( - value, - specifiedType: const FullType(Alignment), - ) as Alignment); + result.alignment = + (serializers.deserialize( + value, + specifiedType: const FullType(Alignment), + ) + as Alignment); case 'Body': - result.body = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.body = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'TextColor': - result.textColor = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.textColor = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -140,15 +131,9 @@ class InAppMessageBodyConfigRestJson1Serializer specifiedType: const FullType(Alignment), ), 'Body', - serializers.serialize( - body, - specifiedType: const FullType(String), - ), + serializers.serialize(body, specifiedType: const FullType(String)), 'TextColor', - serializers.serialize( - textColor, - specifiedType: const FullType(String), - ), + serializers.serialize(textColor, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.g.dart index 02c6a7e966..50c7a5e1bb 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_body_config.g.dart @@ -14,25 +14,36 @@ class _$InAppMessageBodyConfig extends InAppMessageBodyConfig { @override final String textColor; - factory _$InAppMessageBodyConfig( - [void Function(InAppMessageBodyConfigBuilder)? updates]) => - (new InAppMessageBodyConfigBuilder()..update(updates))._build(); - - _$InAppMessageBodyConfig._( - {required this.alignment, required this.body, required this.textColor}) - : super._() { + factory _$InAppMessageBodyConfig([ + void Function(InAppMessageBodyConfigBuilder)? updates, + ]) => (new InAppMessageBodyConfigBuilder()..update(updates))._build(); + + _$InAppMessageBodyConfig._({ + required this.alignment, + required this.body, + required this.textColor, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - alignment, r'InAppMessageBodyConfig', 'alignment'); + alignment, + r'InAppMessageBodyConfig', + 'alignment', + ); BuiltValueNullFieldError.checkNotNull( - body, r'InAppMessageBodyConfig', 'body'); + body, + r'InAppMessageBodyConfig', + 'body', + ); BuiltValueNullFieldError.checkNotNull( - textColor, r'InAppMessageBodyConfig', 'textColor'); + textColor, + r'InAppMessageBodyConfig', + 'textColor', + ); } @override InAppMessageBodyConfig rebuild( - void Function(InAppMessageBodyConfigBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InAppMessageBodyConfigBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InAppMessageBodyConfigBuilder toBuilder() => @@ -102,14 +113,25 @@ class InAppMessageBodyConfigBuilder InAppMessageBodyConfig build() => _build(); _$InAppMessageBodyConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InAppMessageBodyConfig._( - alignment: BuiltValueNullFieldError.checkNotNull( - alignment, r'InAppMessageBodyConfig', 'alignment'), - body: BuiltValueNullFieldError.checkNotNull( - body, r'InAppMessageBodyConfig', 'body'), - textColor: BuiltValueNullFieldError.checkNotNull( - textColor, r'InAppMessageBodyConfig', 'textColor')); + alignment: BuiltValueNullFieldError.checkNotNull( + alignment, + r'InAppMessageBodyConfig', + 'alignment', + ), + body: BuiltValueNullFieldError.checkNotNull( + body, + r'InAppMessageBodyConfig', + 'body', + ), + textColor: BuiltValueNullFieldError.checkNotNull( + textColor, + r'InAppMessageBodyConfig', + 'textColor', + ), + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.dart index 5b9c3230f8..d6f1956865 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.dart @@ -32,14 +32,14 @@ abstract class InAppMessageButton } /// Button Config for an in-app message. - factory InAppMessageButton.build( - [void Function(InAppMessageButtonBuilder) updates]) = - _$InAppMessageButton; + factory InAppMessageButton.build([ + void Function(InAppMessageButtonBuilder) updates, + ]) = _$InAppMessageButton; const InAppMessageButton._(); static const List<_i2.SmithySerializer> serializers = [ - InAppMessageButtonRestJson1Serializer() + InAppMessageButtonRestJson1Serializer(), ]; /// Default button content. @@ -54,31 +54,15 @@ abstract class InAppMessageButton /// Default button content. OverrideButtonConfiguration? get web; @override - List get props => [ - android, - defaultConfig, - ios, - web, - ]; + List get props => [android, defaultConfig, ios, web]; @override String toString() { - final helper = newBuiltValueToStringHelper('InAppMessageButton') - ..add( - 'android', - android, - ) - ..add( - 'defaultConfig', - defaultConfig, - ) - ..add( - 'ios', - ios, - ) - ..add( - 'web', - web, - ); + final helper = + newBuiltValueToStringHelper('InAppMessageButton') + ..add('android', android) + ..add('defaultConfig', defaultConfig) + ..add('ios', ios) + ..add('web', web); return helper.toString(); } } @@ -88,17 +72,11 @@ class InAppMessageButtonRestJson1Serializer const InAppMessageButtonRestJson1Serializer() : super('InAppMessageButton'); @override - Iterable get types => const [ - InAppMessageButton, - _$InAppMessageButton, - ]; + Iterable get types => const [InAppMessageButton, _$InAppMessageButton]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessageButton deserialize( Serializers serializers, @@ -116,25 +94,37 @@ class InAppMessageButtonRestJson1Serializer } switch (key) { case 'Android': - result.android.replace((serializers.deserialize( - value, - specifiedType: const FullType(OverrideButtonConfiguration), - ) as OverrideButtonConfiguration)); + result.android.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OverrideButtonConfiguration), + ) + as OverrideButtonConfiguration), + ); case 'DefaultConfig': - result.defaultConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(DefaultButtonConfiguration), - ) as DefaultButtonConfiguration)); + result.defaultConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultButtonConfiguration), + ) + as DefaultButtonConfiguration), + ); case 'IOS': - result.ios.replace((serializers.deserialize( - value, - specifiedType: const FullType(OverrideButtonConfiguration), - ) as OverrideButtonConfiguration)); + result.ios.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OverrideButtonConfiguration), + ) + as OverrideButtonConfiguration), + ); case 'Web': - result.web.replace((serializers.deserialize( - value, - specifiedType: const FullType(OverrideButtonConfiguration), - ) as OverrideButtonConfiguration)); + result.web.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OverrideButtonConfiguration), + ) + as OverrideButtonConfiguration), + ); } } @@ -152,34 +142,42 @@ class InAppMessageButtonRestJson1Serializer if (android != null) { result$ ..add('Android') - ..add(serializers.serialize( - android, - specifiedType: const FullType(OverrideButtonConfiguration), - )); + ..add( + serializers.serialize( + android, + specifiedType: const FullType(OverrideButtonConfiguration), + ), + ); } if (defaultConfig != null) { result$ ..add('DefaultConfig') - ..add(serializers.serialize( - defaultConfig, - specifiedType: const FullType(DefaultButtonConfiguration), - )); + ..add( + serializers.serialize( + defaultConfig, + specifiedType: const FullType(DefaultButtonConfiguration), + ), + ); } if (ios != null) { result$ ..add('IOS') - ..add(serializers.serialize( - ios, - specifiedType: const FullType(OverrideButtonConfiguration), - )); + ..add( + serializers.serialize( + ios, + specifiedType: const FullType(OverrideButtonConfiguration), + ), + ); } if (web != null) { result$ ..add('Web') - ..add(serializers.serialize( - web, - specifiedType: const FullType(OverrideButtonConfiguration), - )); + ..add( + serializers.serialize( + web, + specifiedType: const FullType(OverrideButtonConfiguration), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.g.dart index e09e0748dc..301ec60fc1 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_button.g.dart @@ -16,17 +16,17 @@ class _$InAppMessageButton extends InAppMessageButton { @override final OverrideButtonConfiguration? web; - factory _$InAppMessageButton( - [void Function(InAppMessageButtonBuilder)? updates]) => - (new InAppMessageButtonBuilder()..update(updates))._build(); + factory _$InAppMessageButton([ + void Function(InAppMessageButtonBuilder)? updates, + ]) => (new InAppMessageButtonBuilder()..update(updates))._build(); _$InAppMessageButton._({this.android, this.defaultConfig, this.ios, this.web}) - : super._(); + : super._(); @override InAppMessageButton rebuild( - void Function(InAppMessageButtonBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InAppMessageButtonBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InAppMessageButtonBuilder toBuilder() => @@ -111,12 +111,14 @@ class InAppMessageButtonBuilder _$InAppMessageButton _build() { _$InAppMessageButton _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InAppMessageButton._( - android: _android?.build(), - defaultConfig: _defaultConfig?.build(), - ios: _ios?.build(), - web: _web?.build()); + android: _android?.build(), + defaultConfig: _defaultConfig?.build(), + ios: _ios?.build(), + web: _web?.build(), + ); } catch (_) { late String _$failedField; try { @@ -130,7 +132,10 @@ class InAppMessageButtonBuilder _web?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InAppMessageButton', _$failedField, e.toString()); + r'InAppMessageButton', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.dart index 4257d1bf6a..eab785e6a4 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.dart @@ -40,14 +40,14 @@ abstract class InAppMessageCampaign } /// Targeted in-app message campaign. - factory InAppMessageCampaign.build( - [void Function(InAppMessageCampaignBuilder) updates]) = - _$InAppMessageCampaign; + factory InAppMessageCampaign.build([ + void Function(InAppMessageCampaignBuilder) updates, + ]) = _$InAppMessageCampaign; const InAppMessageCampaign._(); static const List<_i2.SmithySerializer> serializers = [ - InAppMessageCampaignRestJson1Serializer() + InAppMessageCampaignRestJson1Serializer(), ]; /// Campaign id of the corresponding campaign. @@ -75,50 +75,27 @@ abstract class InAppMessageCampaign String? get treatmentId; @override List get props => [ - campaignId, - dailyCap, - inAppMessage, - priority, - schedule, - sessionCap, - totalCap, - treatmentId, - ]; + campaignId, + dailyCap, + inAppMessage, + priority, + schedule, + sessionCap, + totalCap, + treatmentId, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InAppMessageCampaign') - ..add( - 'campaignId', - campaignId, - ) - ..add( - 'dailyCap', - dailyCap, - ) - ..add( - 'inAppMessage', - inAppMessage, - ) - ..add( - 'priority', - priority, - ) - ..add( - 'schedule', - schedule, - ) - ..add( - 'sessionCap', - sessionCap, - ) - ..add( - 'totalCap', - totalCap, - ) - ..add( - 'treatmentId', - treatmentId, - ); + final helper = + newBuiltValueToStringHelper('InAppMessageCampaign') + ..add('campaignId', campaignId) + ..add('dailyCap', dailyCap) + ..add('inAppMessage', inAppMessage) + ..add('priority', priority) + ..add('schedule', schedule) + ..add('sessionCap', sessionCap) + ..add('totalCap', totalCap) + ..add('treatmentId', treatmentId); return helper.toString(); } } @@ -126,20 +103,17 @@ abstract class InAppMessageCampaign class InAppMessageCampaignRestJson1Serializer extends _i2.StructuredSmithySerializer { const InAppMessageCampaignRestJson1Serializer() - : super('InAppMessageCampaign'); + : super('InAppMessageCampaign'); @override Iterable get types => const [ - InAppMessageCampaign, - _$InAppMessageCampaign, - ]; + InAppMessageCampaign, + _$InAppMessageCampaign, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessageCampaign deserialize( Serializers serializers, @@ -157,45 +131,63 @@ class InAppMessageCampaignRestJson1Serializer } switch (key) { case 'CampaignId': - result.campaignId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.campaignId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DailyCap': - result.dailyCap = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.dailyCap = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'InAppMessage': - result.inAppMessage.replace((serializers.deserialize( - value, - specifiedType: const FullType(InAppMessage), - ) as InAppMessage)); + result.inAppMessage.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(InAppMessage), + ) + as InAppMessage), + ); case 'Priority': - result.priority = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.priority = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Schedule': - result.schedule.replace((serializers.deserialize( - value, - specifiedType: const FullType(InAppCampaignSchedule), - ) as InAppCampaignSchedule)); + result.schedule.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(InAppCampaignSchedule), + ) + as InAppCampaignSchedule), + ); case 'SessionCap': - result.sessionCap = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.sessionCap = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'TotalCap': - result.totalCap = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.totalCap = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'TreatmentId': - result.treatmentId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.treatmentId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -217,71 +209,75 @@ class InAppMessageCampaignRestJson1Serializer :schedule, :sessionCap, :totalCap, - :treatmentId + :treatmentId, ) = object; if (campaignId != null) { result$ ..add('CampaignId') - ..add(serializers.serialize( - campaignId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + campaignId, + specifiedType: const FullType(String), + ), + ); } if (dailyCap != null) { result$ ..add('DailyCap') - ..add(serializers.serialize( - dailyCap, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(dailyCap, specifiedType: const FullType(int)), + ); } if (inAppMessage != null) { result$ ..add('InAppMessage') - ..add(serializers.serialize( - inAppMessage, - specifiedType: const FullType(InAppMessage), - )); + ..add( + serializers.serialize( + inAppMessage, + specifiedType: const FullType(InAppMessage), + ), + ); } if (priority != null) { result$ ..add('Priority') - ..add(serializers.serialize( - priority, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(priority, specifiedType: const FullType(int)), + ); } if (schedule != null) { result$ ..add('Schedule') - ..add(serializers.serialize( - schedule, - specifiedType: const FullType(InAppCampaignSchedule), - )); + ..add( + serializers.serialize( + schedule, + specifiedType: const FullType(InAppCampaignSchedule), + ), + ); } if (sessionCap != null) { result$ ..add('SessionCap') - ..add(serializers.serialize( - sessionCap, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(sessionCap, specifiedType: const FullType(int)), + ); } if (totalCap != null) { result$ ..add('TotalCap') - ..add(serializers.serialize( - totalCap, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(totalCap, specifiedType: const FullType(int)), + ); } if (treatmentId != null) { result$ ..add('TreatmentId') - ..add(serializers.serialize( - treatmentId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + treatmentId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.g.dart index 45b84108b7..666e30a2d2 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_campaign.g.dart @@ -24,25 +24,25 @@ class _$InAppMessageCampaign extends InAppMessageCampaign { @override final String? treatmentId; - factory _$InAppMessageCampaign( - [void Function(InAppMessageCampaignBuilder)? updates]) => - (new InAppMessageCampaignBuilder()..update(updates))._build(); - - _$InAppMessageCampaign._( - {this.campaignId, - this.dailyCap, - this.inAppMessage, - this.priority, - this.schedule, - this.sessionCap, - this.totalCap, - this.treatmentId}) - : super._(); + factory _$InAppMessageCampaign([ + void Function(InAppMessageCampaignBuilder)? updates, + ]) => (new InAppMessageCampaignBuilder()..update(updates))._build(); + + _$InAppMessageCampaign._({ + this.campaignId, + this.dailyCap, + this.inAppMessage, + this.priority, + this.schedule, + this.sessionCap, + this.totalCap, + this.treatmentId, + }) : super._(); @override InAppMessageCampaign rebuild( - void Function(InAppMessageCampaignBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InAppMessageCampaignBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InAppMessageCampaignBuilder toBuilder() => @@ -153,16 +153,18 @@ class InAppMessageCampaignBuilder _$InAppMessageCampaign _build() { _$InAppMessageCampaign _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InAppMessageCampaign._( - campaignId: campaignId, - dailyCap: dailyCap, - inAppMessage: _inAppMessage?.build(), - priority: priority, - schedule: _schedule?.build(), - sessionCap: sessionCap, - totalCap: totalCap, - treatmentId: treatmentId); + campaignId: campaignId, + dailyCap: dailyCap, + inAppMessage: _inAppMessage?.build(), + priority: priority, + schedule: _schedule?.build(), + sessionCap: sessionCap, + totalCap: totalCap, + treatmentId: treatmentId, + ); } catch (_) { late String _$failedField; try { @@ -173,7 +175,10 @@ class InAppMessageCampaignBuilder _schedule?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InAppMessageCampaign', _$failedField, e.toString()); + r'InAppMessageCampaign', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.dart index 7fccca2cfe..998235a1e5 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.dart @@ -37,14 +37,14 @@ abstract class InAppMessageContent } /// The configuration for the message content. - factory InAppMessageContent.build( - [void Function(InAppMessageContentBuilder) updates]) = - _$InAppMessageContent; + factory InAppMessageContent.build([ + void Function(InAppMessageContentBuilder) updates, + ]) = _$InAppMessageContent; const InAppMessageContent._(); static const List<_i2.SmithySerializer> serializers = [ - InAppMessageContentRestJson1Serializer() + InAppMessageContentRestJson1Serializer(), ]; /// The background color for the message. @@ -66,40 +66,23 @@ abstract class InAppMessageContent InAppMessageButton? get secondaryBtn; @override List get props => [ - backgroundColor, - bodyConfig, - headerConfig, - imageUrl, - primaryBtn, - secondaryBtn, - ]; + backgroundColor, + bodyConfig, + headerConfig, + imageUrl, + primaryBtn, + secondaryBtn, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InAppMessageContent') - ..add( - 'backgroundColor', - backgroundColor, - ) - ..add( - 'bodyConfig', - bodyConfig, - ) - ..add( - 'headerConfig', - headerConfig, - ) - ..add( - 'imageUrl', - imageUrl, - ) - ..add( - 'primaryBtn', - primaryBtn, - ) - ..add( - 'secondaryBtn', - secondaryBtn, - ); + final helper = + newBuiltValueToStringHelper('InAppMessageContent') + ..add('backgroundColor', backgroundColor) + ..add('bodyConfig', bodyConfig) + ..add('headerConfig', headerConfig) + ..add('imageUrl', imageUrl) + ..add('primaryBtn', primaryBtn) + ..add('secondaryBtn', secondaryBtn); return helper.toString(); } } @@ -110,16 +93,13 @@ class InAppMessageContentRestJson1Serializer @override Iterable get types => const [ - InAppMessageContent, - _$InAppMessageContent, - ]; + InAppMessageContent, + _$InAppMessageContent, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessageContent deserialize( Serializers serializers, @@ -137,35 +117,51 @@ class InAppMessageContentRestJson1Serializer } switch (key) { case 'BackgroundColor': - result.backgroundColor = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.backgroundColor = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'BodyConfig': - result.bodyConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(InAppMessageBodyConfig), - ) as InAppMessageBodyConfig)); + result.bodyConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(InAppMessageBodyConfig), + ) + as InAppMessageBodyConfig), + ); case 'HeaderConfig': - result.headerConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(InAppMessageHeaderConfig), - ) as InAppMessageHeaderConfig)); + result.headerConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(InAppMessageHeaderConfig), + ) + as InAppMessageHeaderConfig), + ); case 'ImageUrl': - result.imageUrl = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.imageUrl = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'PrimaryBtn': - result.primaryBtn.replace((serializers.deserialize( - value, - specifiedType: const FullType(InAppMessageButton), - ) as InAppMessageButton)); + result.primaryBtn.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(InAppMessageButton), + ) + as InAppMessageButton), + ); case 'SecondaryBtn': - result.secondaryBtn.replace((serializers.deserialize( - value, - specifiedType: const FullType(InAppMessageButton), - ) as InAppMessageButton)); + result.secondaryBtn.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(InAppMessageButton), + ) + as InAppMessageButton), + ); } } @@ -185,55 +181,67 @@ class InAppMessageContentRestJson1Serializer :headerConfig, :imageUrl, :primaryBtn, - :secondaryBtn + :secondaryBtn, ) = object; if (backgroundColor != null) { result$ ..add('BackgroundColor') - ..add(serializers.serialize( - backgroundColor, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + backgroundColor, + specifiedType: const FullType(String), + ), + ); } if (bodyConfig != null) { result$ ..add('BodyConfig') - ..add(serializers.serialize( - bodyConfig, - specifiedType: const FullType(InAppMessageBodyConfig), - )); + ..add( + serializers.serialize( + bodyConfig, + specifiedType: const FullType(InAppMessageBodyConfig), + ), + ); } if (headerConfig != null) { result$ ..add('HeaderConfig') - ..add(serializers.serialize( - headerConfig, - specifiedType: const FullType(InAppMessageHeaderConfig), - )); + ..add( + serializers.serialize( + headerConfig, + specifiedType: const FullType(InAppMessageHeaderConfig), + ), + ); } if (imageUrl != null) { result$ ..add('ImageUrl') - ..add(serializers.serialize( - imageUrl, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + imageUrl, + specifiedType: const FullType(String), + ), + ); } if (primaryBtn != null) { result$ ..add('PrimaryBtn') - ..add(serializers.serialize( - primaryBtn, - specifiedType: const FullType(InAppMessageButton), - )); + ..add( + serializers.serialize( + primaryBtn, + specifiedType: const FullType(InAppMessageButton), + ), + ); } if (secondaryBtn != null) { result$ ..add('SecondaryBtn') - ..add(serializers.serialize( - secondaryBtn, - specifiedType: const FullType(InAppMessageButton), - )); + ..add( + serializers.serialize( + secondaryBtn, + specifiedType: const FullType(InAppMessageButton), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.g.dart index ad24498aad..e8a98ca899 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_content.g.dart @@ -20,23 +20,23 @@ class _$InAppMessageContent extends InAppMessageContent { @override final InAppMessageButton? secondaryBtn; - factory _$InAppMessageContent( - [void Function(InAppMessageContentBuilder)? updates]) => - (new InAppMessageContentBuilder()..update(updates))._build(); - - _$InAppMessageContent._( - {this.backgroundColor, - this.bodyConfig, - this.headerConfig, - this.imageUrl, - this.primaryBtn, - this.secondaryBtn}) - : super._(); + factory _$InAppMessageContent([ + void Function(InAppMessageContentBuilder)? updates, + ]) => (new InAppMessageContentBuilder()..update(updates))._build(); + + _$InAppMessageContent._({ + this.backgroundColor, + this.bodyConfig, + this.headerConfig, + this.imageUrl, + this.primaryBtn, + this.secondaryBtn, + }) : super._(); @override InAppMessageContent rebuild( - void Function(InAppMessageContentBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InAppMessageContentBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InAppMessageContentBuilder toBuilder() => @@ -138,14 +138,16 @@ class InAppMessageContentBuilder _$InAppMessageContent _build() { _$InAppMessageContent _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InAppMessageContent._( - backgroundColor: backgroundColor, - bodyConfig: _bodyConfig?.build(), - headerConfig: _headerConfig?.build(), - imageUrl: imageUrl, - primaryBtn: _primaryBtn?.build(), - secondaryBtn: _secondaryBtn?.build()); + backgroundColor: backgroundColor, + bodyConfig: _bodyConfig?.build(), + headerConfig: _headerConfig?.build(), + imageUrl: imageUrl, + primaryBtn: _primaryBtn?.build(), + secondaryBtn: _secondaryBtn?.build(), + ); } catch (_) { late String _$failedField; try { @@ -160,7 +162,10 @@ class InAppMessageContentBuilder _secondaryBtn?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InAppMessageContent', _$failedField, e.toString()); + r'InAppMessageContent', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.dart index e18e0a25d7..7ddb34661c 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.dart @@ -30,14 +30,14 @@ abstract class InAppMessageHeaderConfig } /// Text config for Message Header. - factory InAppMessageHeaderConfig.build( - [void Function(InAppMessageHeaderConfigBuilder) updates]) = - _$InAppMessageHeaderConfig; + factory InAppMessageHeaderConfig.build([ + void Function(InAppMessageHeaderConfigBuilder) updates, + ]) = _$InAppMessageHeaderConfig; const InAppMessageHeaderConfig._(); static const List<_i2.SmithySerializer> - serializers = [InAppMessageHeaderConfigRestJson1Serializer()]; + serializers = [InAppMessageHeaderConfigRestJson1Serializer()]; /// The alignment of the text. Valid values: LEFT, CENTER, RIGHT. Alignment get alignment; @@ -48,26 +48,14 @@ abstract class InAppMessageHeaderConfig /// The text color. String get textColor; @override - List get props => [ - alignment, - header, - textColor, - ]; + List get props => [alignment, header, textColor]; @override String toString() { - final helper = newBuiltValueToStringHelper('InAppMessageHeaderConfig') - ..add( - 'alignment', - alignment, - ) - ..add( - 'header', - header, - ) - ..add( - 'textColor', - textColor, - ); + final helper = + newBuiltValueToStringHelper('InAppMessageHeaderConfig') + ..add('alignment', alignment) + ..add('header', header) + ..add('textColor', textColor); return helper.toString(); } } @@ -75,20 +63,17 @@ abstract class InAppMessageHeaderConfig class InAppMessageHeaderConfigRestJson1Serializer extends _i2.StructuredSmithySerializer { const InAppMessageHeaderConfigRestJson1Serializer() - : super('InAppMessageHeaderConfig'); + : super('InAppMessageHeaderConfig'); @override Iterable get types => const [ - InAppMessageHeaderConfig, - _$InAppMessageHeaderConfig, - ]; + InAppMessageHeaderConfig, + _$InAppMessageHeaderConfig, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessageHeaderConfig deserialize( Serializers serializers, @@ -106,20 +91,26 @@ class InAppMessageHeaderConfigRestJson1Serializer } switch (key) { case 'Alignment': - result.alignment = (serializers.deserialize( - value, - specifiedType: const FullType(Alignment), - ) as Alignment); + result.alignment = + (serializers.deserialize( + value, + specifiedType: const FullType(Alignment), + ) + as Alignment); case 'Header': - result.header = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.header = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'TextColor': - result.textColor = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.textColor = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -141,15 +132,9 @@ class InAppMessageHeaderConfigRestJson1Serializer specifiedType: const FullType(Alignment), ), 'Header', - serializers.serialize( - header, - specifiedType: const FullType(String), - ), + serializers.serialize(header, specifiedType: const FullType(String)), 'TextColor', - serializers.serialize( - textColor, - specifiedType: const FullType(String), - ), + serializers.serialize(textColor, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.g.dart index 656f10a165..cc82052108 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_message_header_config.g.dart @@ -14,25 +14,36 @@ class _$InAppMessageHeaderConfig extends InAppMessageHeaderConfig { @override final String textColor; - factory _$InAppMessageHeaderConfig( - [void Function(InAppMessageHeaderConfigBuilder)? updates]) => - (new InAppMessageHeaderConfigBuilder()..update(updates))._build(); - - _$InAppMessageHeaderConfig._( - {required this.alignment, required this.header, required this.textColor}) - : super._() { + factory _$InAppMessageHeaderConfig([ + void Function(InAppMessageHeaderConfigBuilder)? updates, + ]) => (new InAppMessageHeaderConfigBuilder()..update(updates))._build(); + + _$InAppMessageHeaderConfig._({ + required this.alignment, + required this.header, + required this.textColor, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - alignment, r'InAppMessageHeaderConfig', 'alignment'); + alignment, + r'InAppMessageHeaderConfig', + 'alignment', + ); BuiltValueNullFieldError.checkNotNull( - header, r'InAppMessageHeaderConfig', 'header'); + header, + r'InAppMessageHeaderConfig', + 'header', + ); BuiltValueNullFieldError.checkNotNull( - textColor, r'InAppMessageHeaderConfig', 'textColor'); + textColor, + r'InAppMessageHeaderConfig', + 'textColor', + ); } @override InAppMessageHeaderConfig rebuild( - void Function(InAppMessageHeaderConfigBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InAppMessageHeaderConfigBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InAppMessageHeaderConfigBuilder toBuilder() => @@ -103,14 +114,25 @@ class InAppMessageHeaderConfigBuilder InAppMessageHeaderConfig build() => _build(); _$InAppMessageHeaderConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InAppMessageHeaderConfig._( - alignment: BuiltValueNullFieldError.checkNotNull( - alignment, r'InAppMessageHeaderConfig', 'alignment'), - header: BuiltValueNullFieldError.checkNotNull( - header, r'InAppMessageHeaderConfig', 'header'), - textColor: BuiltValueNullFieldError.checkNotNull( - textColor, r'InAppMessageHeaderConfig', 'textColor')); + alignment: BuiltValueNullFieldError.checkNotNull( + alignment, + r'InAppMessageHeaderConfig', + 'alignment', + ), + header: BuiltValueNullFieldError.checkNotNull( + header, + r'InAppMessageHeaderConfig', + 'header', + ), + textColor: BuiltValueNullFieldError.checkNotNull( + textColor, + r'InAppMessageHeaderConfig', + 'textColor', + ), + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.dart index 2effc8c48c..9bf5a73e03 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.dart @@ -17,23 +17,26 @@ abstract class InAppMessagesResponse with _i1.AWSEquatable implements Built { /// Get in-app messages response object. - factory InAppMessagesResponse( - {List? inAppMessageCampaigns}) { + factory InAppMessagesResponse({ + List? inAppMessageCampaigns, + }) { return _$InAppMessagesResponse._( - inAppMessageCampaigns: inAppMessageCampaigns == null - ? null - : _i2.BuiltList(inAppMessageCampaigns)); + inAppMessageCampaigns: + inAppMessageCampaigns == null + ? null + : _i2.BuiltList(inAppMessageCampaigns), + ); } /// Get in-app messages response object. - factory InAppMessagesResponse.build( - [void Function(InAppMessagesResponseBuilder) updates]) = - _$InAppMessagesResponse; + factory InAppMessagesResponse.build([ + void Function(InAppMessagesResponseBuilder) updates, + ]) = _$InAppMessagesResponse; const InAppMessagesResponse._(); static const List<_i3.SmithySerializer> serializers = [ - InAppMessagesResponseRestJson1Serializer() + InAppMessagesResponseRestJson1Serializer(), ]; /// List of targeted in-app message campaigns. @@ -43,10 +46,7 @@ abstract class InAppMessagesResponse @override String toString() { final helper = newBuiltValueToStringHelper('InAppMessagesResponse') - ..add( - 'inAppMessageCampaigns', - inAppMessageCampaigns, - ); + ..add('inAppMessageCampaigns', inAppMessageCampaigns); return helper.toString(); } } @@ -54,20 +54,17 @@ abstract class InAppMessagesResponse class InAppMessagesResponseRestJson1Serializer extends _i3.StructuredSmithySerializer { const InAppMessagesResponseRestJson1Serializer() - : super('InAppMessagesResponse'); + : super('InAppMessagesResponse'); @override Iterable get types => const [ - InAppMessagesResponse, - _$InAppMessagesResponse, - ]; + InAppMessagesResponse, + _$InAppMessagesResponse, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InAppMessagesResponse deserialize( Serializers serializers, @@ -85,13 +82,15 @@ class InAppMessagesResponseRestJson1Serializer } switch (key) { case 'InAppMessageCampaigns': - result.inAppMessageCampaigns.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(InAppMessageCampaign)], - ), - ) as _i2.BuiltList)); + result.inAppMessageCampaigns.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(InAppMessageCampaign), + ]), + ) + as _i2.BuiltList), + ); } } @@ -109,13 +108,14 @@ class InAppMessagesResponseRestJson1Serializer if (inAppMessageCampaigns != null) { result$ ..add('InAppMessageCampaigns') - ..add(serializers.serialize( - inAppMessageCampaigns, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(InAppMessageCampaign)], + ..add( + serializers.serialize( + inAppMessageCampaigns, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(InAppMessageCampaign), + ]), ), - )); + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.g.dart index 46e43cd40e..da85f1f316 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/in_app_messages_response.g.dart @@ -10,16 +10,16 @@ class _$InAppMessagesResponse extends InAppMessagesResponse { @override final _i2.BuiltList? inAppMessageCampaigns; - factory _$InAppMessagesResponse( - [void Function(InAppMessagesResponseBuilder)? updates]) => - (new InAppMessagesResponseBuilder()..update(updates))._build(); + factory _$InAppMessagesResponse([ + void Function(InAppMessagesResponseBuilder)? updates, + ]) => (new InAppMessagesResponseBuilder()..update(updates))._build(); _$InAppMessagesResponse._({this.inAppMessageCampaigns}) : super._(); @override InAppMessagesResponse rebuild( - void Function(InAppMessagesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InAppMessagesResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InAppMessagesResponseBuilder toBuilder() => @@ -50,8 +50,8 @@ class InAppMessagesResponseBuilder _$this._inAppMessageCampaigns ??= new _i2.ListBuilder(); set inAppMessageCampaigns( - _i2.ListBuilder? inAppMessageCampaigns) => - _$this._inAppMessageCampaigns = inAppMessageCampaigns; + _i2.ListBuilder? inAppMessageCampaigns, + ) => _$this._inAppMessageCampaigns = inAppMessageCampaigns; InAppMessagesResponseBuilder(); @@ -81,9 +81,11 @@ class InAppMessagesResponseBuilder _$InAppMessagesResponse _build() { _$InAppMessagesResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InAppMessagesResponse._( - inAppMessageCampaigns: _inAppMessageCampaigns?.build()); + inAppMessageCampaigns: _inAppMessageCampaigns?.build(), + ); } catch (_) { late String _$failedField; try { @@ -91,7 +93,10 @@ class InAppMessagesResponseBuilder _inAppMessageCampaigns?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InAppMessagesResponse', _$failedField, e.toString()); + r'InAppMessagesResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.dart index 7b64fece95..cb0c4b0b5c 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.dart @@ -12,17 +12,15 @@ part 'internal_server_error_exception.g.dart'; /// Provides information about an API request or response. abstract class InternalServerErrorException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InternalServerErrorException, + InternalServerErrorExceptionBuilder + >, _i2.SmithyHttpException { /// Provides information about an API request or response. - factory InternalServerErrorException({ - String? message, - String? requestId, - }) { + factory InternalServerErrorException({String? message, String? requestId}) { return _$InternalServerErrorException._( message: message, requestId: requestId, @@ -30,9 +28,9 @@ abstract class InternalServerErrorException } /// Provides information about an API request or response. - factory InternalServerErrorException.build( - [void Function(InternalServerErrorExceptionBuilder) updates]) = - _$InternalServerErrorException; + factory InternalServerErrorException.build([ + void Function(InternalServerErrorExceptionBuilder) updates, + ]) = _$InternalServerErrorException; const InternalServerErrorException._(); @@ -40,13 +38,12 @@ abstract class InternalServerErrorException factory InternalServerErrorException.fromResponse( InternalServerErrorException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InternalServerErrorExceptionRestJson1Serializer()]; + serializers = [InternalServerErrorExceptionRestJson1Serializer()]; /// The message that's returned from the API. @override @@ -56,9 +53,9 @@ abstract class InternalServerErrorException String? get requestId; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'InternalServerErrorException', - ); + namespace: 'com.amazonaws.pinpoint', + shape: 'InternalServerErrorException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -70,21 +67,13 @@ abstract class InternalServerErrorException @override Exception? get underlyingException => null; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('InternalServerErrorException') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('InternalServerErrorException') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -92,20 +81,17 @@ abstract class InternalServerErrorException class InternalServerErrorExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const InternalServerErrorExceptionRestJson1Serializer() - : super('InternalServerErrorException'); + : super('InternalServerErrorException'); @override Iterable get types => const [ - InternalServerErrorException, - _$InternalServerErrorException, - ]; + InternalServerErrorException, + _$InternalServerErrorException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InternalServerErrorException deserialize( Serializers serializers, @@ -123,15 +109,19 @@ class InternalServerErrorExceptionRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -149,18 +139,19 @@ class InternalServerErrorExceptionRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.g.dart index b1b8d1c27b..d118a24578 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/internal_server_error_exception.g.dart @@ -14,17 +14,17 @@ class _$InternalServerErrorException extends InternalServerErrorException { @override final Map? headers; - factory _$InternalServerErrorException( - [void Function(InternalServerErrorExceptionBuilder)? updates]) => - (new InternalServerErrorExceptionBuilder()..update(updates))._build(); + factory _$InternalServerErrorException([ + void Function(InternalServerErrorExceptionBuilder)? updates, + ]) => (new InternalServerErrorExceptionBuilder()..update(updates))._build(); _$InternalServerErrorException._({this.message, this.requestId, this.headers}) - : super._(); + : super._(); @override InternalServerErrorException rebuild( - void Function(InternalServerErrorExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InternalServerErrorExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InternalServerErrorExceptionBuilder toBuilder() => @@ -50,8 +50,10 @@ class _$InternalServerErrorException extends InternalServerErrorException { class InternalServerErrorExceptionBuilder implements - Builder { + Builder< + InternalServerErrorException, + InternalServerErrorExceptionBuilder + > { _$InternalServerErrorException? _$v; String? _message; @@ -94,9 +96,13 @@ class InternalServerErrorExceptionBuilder InternalServerErrorException build() => _build(); _$InternalServerErrorException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InternalServerErrorException._( - message: message, requestId: requestId, headers: headers); + message: message, + requestId: requestId, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.dart index 90d7b8769e..37a4c75049 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.dart @@ -36,7 +36,7 @@ abstract class ItemResponse const ItemResponse._(); static const List<_i3.SmithySerializer> serializers = [ - ItemResponseRestJson1Serializer() + ItemResponseRestJson1Serializer(), ]; /// The response that was received after the endpoint data was accepted. @@ -45,21 +45,13 @@ abstract class ItemResponse /// A multipart response object that contains a key and a value for each event in the request. In each object, the event ID is the key and an EventItemResponse object is the value. _i2.BuiltMap? get eventsItemResponse; @override - List get props => [ - endpointItemResponse, - eventsItemResponse, - ]; + List get props => [endpointItemResponse, eventsItemResponse]; @override String toString() { - final helper = newBuiltValueToStringHelper('ItemResponse') - ..add( - 'endpointItemResponse', - endpointItemResponse, - ) - ..add( - 'eventsItemResponse', - eventsItemResponse, - ); + final helper = + newBuiltValueToStringHelper('ItemResponse') + ..add('endpointItemResponse', endpointItemResponse) + ..add('eventsItemResponse', eventsItemResponse); return helper.toString(); } } @@ -69,17 +61,11 @@ class ItemResponseRestJson1Serializer const ItemResponseRestJson1Serializer() : super('ItemResponse'); @override - Iterable get types => const [ - ItemResponse, - _$ItemResponse, - ]; + Iterable get types => const [ItemResponse, _$ItemResponse]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ItemResponse deserialize( Serializers serializers, @@ -97,21 +83,24 @@ class ItemResponseRestJson1Serializer } switch (key) { case 'EndpointItemResponse': - result.endpointItemResponse.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointItemResponse), - ) as EndpointItemResponse)); + result.endpointItemResponse.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointItemResponse), + ) + as EndpointItemResponse), + ); case 'EventsItemResponse': - result.eventsItemResponse.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(EventItemResponse), - ], - ), - ) as _i2.BuiltMap)); + result.eventsItemResponse.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(EventItemResponse), + ]), + ) + as _i2.BuiltMap), + ); } } @@ -129,24 +118,25 @@ class ItemResponseRestJson1Serializer if (endpointItemResponse != null) { result$ ..add('EndpointItemResponse') - ..add(serializers.serialize( - endpointItemResponse, - specifiedType: const FullType(EndpointItemResponse), - )); + ..add( + serializers.serialize( + endpointItemResponse, + specifiedType: const FullType(EndpointItemResponse), + ), + ); } if (eventsItemResponse != null) { result$ ..add('EventsItemResponse') - ..add(serializers.serialize( - eventsItemResponse, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + eventsItemResponse, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(EventItemResponse), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.g.dart index e7b0a15854..f4b49a4970 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/item_response.g.dart @@ -16,7 +16,7 @@ class _$ItemResponse extends ItemResponse { (new ItemResponseBuilder()..update(updates))._build(); _$ItemResponse._({this.endpointItemResponse, this.eventsItemResponse}) - : super._(); + : super._(); @override ItemResponse rebuild(void Function(ItemResponseBuilder) updates) => @@ -58,8 +58,8 @@ class ItemResponseBuilder _$this._eventsItemResponse ??= new _i2.MapBuilder(); set eventsItemResponse( - _i2.MapBuilder? eventsItemResponse) => - _$this._eventsItemResponse = eventsItemResponse; + _i2.MapBuilder? eventsItemResponse, + ) => _$this._eventsItemResponse = eventsItemResponse; ItemResponseBuilder(); @@ -90,10 +90,12 @@ class ItemResponseBuilder _$ItemResponse _build() { _$ItemResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ItemResponse._( - endpointItemResponse: _endpointItemResponse?.build(), - eventsItemResponse: _eventsItemResponse?.build()); + endpointItemResponse: _endpointItemResponse?.build(), + eventsItemResponse: _eventsItemResponse?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +105,10 @@ class ItemResponseBuilder _eventsItemResponse?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ItemResponse', _$failedField, e.toString()); + r'ItemResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/layout.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/layout.dart index a186571ff8..16aeb26b70 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/layout.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/layout.dart @@ -6,49 +6,21 @@ library amplify_analytics_pinpoint_dart.pinpoint.model.layout; // ignore_for_fil import 'package:smithy/smithy.dart' as _i1; class Layout extends _i1.SmithyEnum { - const Layout._( - super.index, - super.name, - super.value, - ); + const Layout._(super.index, super.name, super.value); const Layout._sdkUnknown(super.value) : super.sdkUnknown(); - static const bottomBanner = Layout._( - 0, - 'BOTTOM_BANNER', - 'BOTTOM_BANNER', - ); + static const bottomBanner = Layout._(0, 'BOTTOM_BANNER', 'BOTTOM_BANNER'); - static const carousel = Layout._( - 1, - 'CAROUSEL', - 'CAROUSEL', - ); + static const carousel = Layout._(1, 'CAROUSEL', 'CAROUSEL'); - static const middleBanner = Layout._( - 2, - 'MIDDLE_BANNER', - 'MIDDLE_BANNER', - ); + static const middleBanner = Layout._(2, 'MIDDLE_BANNER', 'MIDDLE_BANNER'); - static const mobileFeed = Layout._( - 3, - 'MOBILE_FEED', - 'MOBILE_FEED', - ); + static const mobileFeed = Layout._(3, 'MOBILE_FEED', 'MOBILE_FEED'); - static const overlays = Layout._( - 4, - 'OVERLAYS', - 'OVERLAYS', - ); + static const overlays = Layout._(4, 'OVERLAYS', 'OVERLAYS'); - static const topBanner = Layout._( - 5, - 'TOP_BANNER', - 'TOP_BANNER', - ); + static const topBanner = Layout._(5, 'TOP_BANNER', 'TOP_BANNER'); /// All values of [Layout]. static const values = [ @@ -66,12 +38,9 @@ class Layout extends _i1.SmithyEnum { values: values, sdkUnknown: Layout._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/message_body.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/message_body.dart index 0369a8817d..fffe08b528 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/message_body.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/message_body.dart @@ -15,14 +15,8 @@ abstract class MessageBody with _i1.AWSEquatable implements Built { /// Provides information about an API request or response. - factory MessageBody({ - String? message, - String? requestId, - }) { - return _$MessageBody._( - message: message, - requestId: requestId, - ); + factory MessageBody({String? message, String? requestId}) { + return _$MessageBody._(message: message, requestId: requestId); } /// Provides information about an API request or response. @@ -32,7 +26,7 @@ abstract class MessageBody const MessageBody._(); static const List<_i2.SmithySerializer> serializers = [ - MessageBodyRestJson1Serializer() + MessageBodyRestJson1Serializer(), ]; /// The message that's returned from the API. @@ -41,21 +35,13 @@ abstract class MessageBody /// The unique identifier for the request or response. String? get requestId; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('MessageBody') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('MessageBody') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -65,17 +51,11 @@ class MessageBodyRestJson1Serializer const MessageBodyRestJson1Serializer() : super('MessageBody'); @override - Iterable get types => const [ - MessageBody, - _$MessageBody, - ]; + Iterable get types => const [MessageBody, _$MessageBody]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MessageBody deserialize( Serializers serializers, @@ -93,15 +73,19 @@ class MessageBodyRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -119,18 +103,19 @@ class MessageBodyRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.dart index b639e35e18..f74909ca85 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.dart @@ -17,10 +17,7 @@ abstract class MethodNotAllowedException Built, _i2.SmithyHttpException { /// Provides information about an API request or response. - factory MethodNotAllowedException({ - String? message, - String? requestId, - }) { + factory MethodNotAllowedException({String? message, String? requestId}) { return _$MethodNotAllowedException._( message: message, requestId: requestId, @@ -28,9 +25,9 @@ abstract class MethodNotAllowedException } /// Provides information about an API request or response. - factory MethodNotAllowedException.build( - [void Function(MethodNotAllowedExceptionBuilder) updates]) = - _$MethodNotAllowedException; + factory MethodNotAllowedException.build([ + void Function(MethodNotAllowedExceptionBuilder) updates, + ]) = _$MethodNotAllowedException; const MethodNotAllowedException._(); @@ -38,13 +35,12 @@ abstract class MethodNotAllowedException factory MethodNotAllowedException.fromResponse( MethodNotAllowedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [MethodNotAllowedExceptionRestJson1Serializer()]; + serializers = [MethodNotAllowedExceptionRestJson1Serializer()]; /// The message that's returned from the API. @override @@ -54,9 +50,9 @@ abstract class MethodNotAllowedException String? get requestId; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'MethodNotAllowedException', - ); + namespace: 'com.amazonaws.pinpoint', + shape: 'MethodNotAllowedException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -68,21 +64,13 @@ abstract class MethodNotAllowedException @override Exception? get underlyingException => null; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('MethodNotAllowedException') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('MethodNotAllowedException') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -90,20 +78,17 @@ abstract class MethodNotAllowedException class MethodNotAllowedExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const MethodNotAllowedExceptionRestJson1Serializer() - : super('MethodNotAllowedException'); + : super('MethodNotAllowedException'); @override Iterable get types => const [ - MethodNotAllowedException, - _$MethodNotAllowedException, - ]; + MethodNotAllowedException, + _$MethodNotAllowedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MethodNotAllowedException deserialize( Serializers serializers, @@ -121,15 +106,19 @@ class MethodNotAllowedExceptionRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,18 +136,19 @@ class MethodNotAllowedExceptionRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.g.dart index ac7a349885..70219d3902 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/method_not_allowed_exception.g.dart @@ -14,17 +14,17 @@ class _$MethodNotAllowedException extends MethodNotAllowedException { @override final Map? headers; - factory _$MethodNotAllowedException( - [void Function(MethodNotAllowedExceptionBuilder)? updates]) => - (new MethodNotAllowedExceptionBuilder()..update(updates))._build(); + factory _$MethodNotAllowedException([ + void Function(MethodNotAllowedExceptionBuilder)? updates, + ]) => (new MethodNotAllowedExceptionBuilder()..update(updates))._build(); _$MethodNotAllowedException._({this.message, this.requestId, this.headers}) - : super._(); + : super._(); @override MethodNotAllowedException rebuild( - void Function(MethodNotAllowedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MethodNotAllowedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MethodNotAllowedExceptionBuilder toBuilder() => @@ -93,9 +93,13 @@ class MethodNotAllowedExceptionBuilder MethodNotAllowedException build() => _build(); _$MethodNotAllowedException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MethodNotAllowedException._( - message: message, requestId: requestId, headers: headers); + message: message, + requestId: requestId, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.dart index c318016aff..71a4a165f3 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.dart @@ -26,13 +26,14 @@ abstract class MetricDimension } /// Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints. - factory MetricDimension.build( - [void Function(MetricDimensionBuilder) updates]) = _$MetricDimension; + factory MetricDimension.build([ + void Function(MetricDimensionBuilder) updates, + ]) = _$MetricDimension; const MetricDimension._(); static const List<_i2.SmithySerializer> serializers = [ - MetricDimensionRestJson1Serializer() + MetricDimensionRestJson1Serializer(), ]; /// The operator to use when comparing metric values. Valid values are: GREATER\_THAN, LESS\_THAN, GREATER\_THAN\_OR\_EQUAL, LESS\_THAN\_OR\_EQUAL, and EQUAL. @@ -41,21 +42,13 @@ abstract class MetricDimension /// The value to compare. double get value; @override - List get props => [ - comparisonOperator, - value, - ]; + List get props => [comparisonOperator, value]; @override String toString() { - final helper = newBuiltValueToStringHelper('MetricDimension') - ..add( - 'comparisonOperator', - comparisonOperator, - ) - ..add( - 'value', - value, - ); + final helper = + newBuiltValueToStringHelper('MetricDimension') + ..add('comparisonOperator', comparisonOperator) + ..add('value', value); return helper.toString(); } } @@ -65,17 +58,11 @@ class MetricDimensionRestJson1Serializer const MetricDimensionRestJson1Serializer() : super('MetricDimension'); @override - Iterable get types => const [ - MetricDimension, - _$MetricDimension, - ]; + Iterable get types => const [MetricDimension, _$MetricDimension]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MetricDimension deserialize( Serializers serializers, @@ -93,15 +80,19 @@ class MetricDimensionRestJson1Serializer } switch (key) { case 'ComparisonOperator': - result.comparisonOperator = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.comparisonOperator = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -123,10 +114,7 @@ class MetricDimensionRestJson1Serializer specifiedType: const FullType(String), ), 'Value', - serializers.serialize( - value, - specifiedType: const FullType(double), - ), + serializers.serialize(value, specifiedType: const FullType(double)), ]); return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.g.dart index 1f91108b41..4df1d8d020 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/metric_dimension.g.dart @@ -16,9 +16,12 @@ class _$MetricDimension extends MetricDimension { (new MetricDimensionBuilder()..update(updates))._build(); _$MetricDimension._({required this.comparisonOperator, required this.value}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - comparisonOperator, r'MetricDimension', 'comparisonOperator'); + comparisonOperator, + r'MetricDimension', + 'comparisonOperator', + ); BuiltValueNullFieldError.checkNotNull(value, r'MetricDimension', 'value'); } @@ -88,12 +91,20 @@ class MetricDimensionBuilder MetricDimension build() => _build(); _$MetricDimension _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MetricDimension._( - comparisonOperator: BuiltValueNullFieldError.checkNotNull( - comparisonOperator, r'MetricDimension', 'comparisonOperator'), - value: BuiltValueNullFieldError.checkNotNull( - value, r'MetricDimension', 'value')); + comparisonOperator: BuiltValueNullFieldError.checkNotNull( + comparisonOperator, + r'MetricDimension', + 'comparisonOperator', + ), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'MetricDimension', + 'value', + ), + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.dart index 95a61a5d64..4496143e02 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.dart @@ -17,19 +17,14 @@ abstract class NotFoundException Built, _i2.SmithyHttpException { /// Provides information about an API request or response. - factory NotFoundException({ - String? message, - String? requestId, - }) { - return _$NotFoundException._( - message: message, - requestId: requestId, - ); + factory NotFoundException({String? message, String? requestId}) { + return _$NotFoundException._(message: message, requestId: requestId); } /// Provides information about an API request or response. - factory NotFoundException.build( - [void Function(NotFoundExceptionBuilder) updates]) = _$NotFoundException; + factory NotFoundException.build([ + void Function(NotFoundExceptionBuilder) updates, + ]) = _$NotFoundException; const NotFoundException._(); @@ -37,13 +32,12 @@ abstract class NotFoundException factory NotFoundException.fromResponse( NotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - NotFoundExceptionRestJson1Serializer() + NotFoundExceptionRestJson1Serializer(), ]; /// The message that's returned from the API. @@ -54,9 +48,9 @@ abstract class NotFoundException String? get requestId; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'NotFoundException', - ); + namespace: 'com.amazonaws.pinpoint', + shape: 'NotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -68,21 +62,13 @@ abstract class NotFoundException @override Exception? get underlyingException => null; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('NotFoundException') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('NotFoundException') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -92,17 +78,11 @@ class NotFoundExceptionRestJson1Serializer const NotFoundExceptionRestJson1Serializer() : super('NotFoundException'); @override - Iterable get types => const [ - NotFoundException, - _$NotFoundException, - ]; + Iterable get types => const [NotFoundException, _$NotFoundException]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NotFoundException deserialize( Serializers serializers, @@ -120,15 +100,19 @@ class NotFoundExceptionRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -146,18 +130,19 @@ class NotFoundExceptionRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.g.dart index 41861831d7..06713d8cbe 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/not_found_exception.g.dart @@ -14,12 +14,12 @@ class _$NotFoundException extends NotFoundException { @override final Map? headers; - factory _$NotFoundException( - [void Function(NotFoundExceptionBuilder)? updates]) => - (new NotFoundExceptionBuilder()..update(updates))._build(); + factory _$NotFoundException([ + void Function(NotFoundExceptionBuilder)? updates, + ]) => (new NotFoundExceptionBuilder()..update(updates))._build(); _$NotFoundException._({this.message, this.requestId, this.headers}) - : super._(); + : super._(); @override NotFoundException rebuild(void Function(NotFoundExceptionBuilder) updates) => @@ -91,9 +91,13 @@ class NotFoundExceptionBuilder NotFoundException build() => _build(); _$NotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$NotFoundException._( - message: message, requestId: requestId, headers: headers); + message: message, + requestId: requestId, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.dart index 473dca94be..75433b084e 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.dart @@ -28,14 +28,14 @@ abstract class OverrideButtonConfiguration } /// Override button configuration. - factory OverrideButtonConfiguration.build( - [void Function(OverrideButtonConfigurationBuilder) updates]) = - _$OverrideButtonConfiguration; + factory OverrideButtonConfiguration.build([ + void Function(OverrideButtonConfigurationBuilder) updates, + ]) = _$OverrideButtonConfiguration; const OverrideButtonConfiguration._(); static const List<_i2.SmithySerializer> - serializers = [OverrideButtonConfigurationRestJson1Serializer()]; + serializers = [OverrideButtonConfigurationRestJson1Serializer()]; /// Action triggered by the button. ButtonAction get buttonAction; @@ -43,21 +43,13 @@ abstract class OverrideButtonConfiguration /// Button destination. String? get link; @override - List get props => [ - buttonAction, - link, - ]; + List get props => [buttonAction, link]; @override String toString() { - final helper = newBuiltValueToStringHelper('OverrideButtonConfiguration') - ..add( - 'buttonAction', - buttonAction, - ) - ..add( - 'link', - link, - ); + final helper = + newBuiltValueToStringHelper('OverrideButtonConfiguration') + ..add('buttonAction', buttonAction) + ..add('link', link); return helper.toString(); } } @@ -65,20 +57,17 @@ abstract class OverrideButtonConfiguration class OverrideButtonConfigurationRestJson1Serializer extends _i2.StructuredSmithySerializer { const OverrideButtonConfigurationRestJson1Serializer() - : super('OverrideButtonConfiguration'); + : super('OverrideButtonConfiguration'); @override Iterable get types => const [ - OverrideButtonConfiguration, - _$OverrideButtonConfiguration, - ]; + OverrideButtonConfiguration, + _$OverrideButtonConfiguration, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OverrideButtonConfiguration deserialize( Serializers serializers, @@ -96,15 +85,19 @@ class OverrideButtonConfigurationRestJson1Serializer } switch (key) { case 'ButtonAction': - result.buttonAction = (serializers.deserialize( - value, - specifiedType: const FullType(ButtonAction), - ) as ButtonAction); + result.buttonAction = + (serializers.deserialize( + value, + specifiedType: const FullType(ButtonAction), + ) + as ButtonAction); case 'Link': - result.link = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.link = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -129,10 +122,9 @@ class OverrideButtonConfigurationRestJson1Serializer if (link != null) { result$ ..add('Link') - ..add(serializers.serialize( - link, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(link, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.g.dart index 1a00a17235..0f700bd583 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/override_button_configuration.g.dart @@ -12,20 +12,23 @@ class _$OverrideButtonConfiguration extends OverrideButtonConfiguration { @override final String? link; - factory _$OverrideButtonConfiguration( - [void Function(OverrideButtonConfigurationBuilder)? updates]) => - (new OverrideButtonConfigurationBuilder()..update(updates))._build(); + factory _$OverrideButtonConfiguration([ + void Function(OverrideButtonConfigurationBuilder)? updates, + ]) => (new OverrideButtonConfigurationBuilder()..update(updates))._build(); _$OverrideButtonConfiguration._({required this.buttonAction, this.link}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - buttonAction, r'OverrideButtonConfiguration', 'buttonAction'); + buttonAction, + r'OverrideButtonConfiguration', + 'buttonAction', + ); } @override OverrideButtonConfiguration rebuild( - void Function(OverrideButtonConfigurationBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OverrideButtonConfigurationBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OverrideButtonConfigurationBuilder toBuilder() => @@ -51,8 +54,10 @@ class _$OverrideButtonConfiguration extends OverrideButtonConfiguration { class OverrideButtonConfigurationBuilder implements - Builder { + Builder< + OverrideButtonConfiguration, + OverrideButtonConfigurationBuilder + > { _$OverrideButtonConfiguration? _$v; ButtonAction? _buttonAction; @@ -91,11 +96,16 @@ class OverrideButtonConfigurationBuilder OverrideButtonConfiguration build() => _build(); _$OverrideButtonConfiguration _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$OverrideButtonConfiguration._( - buttonAction: BuiltValueNullFieldError.checkNotNull( - buttonAction, r'OverrideButtonConfiguration', 'buttonAction'), - link: link); + buttonAction: BuiltValueNullFieldError.checkNotNull( + buttonAction, + r'OverrideButtonConfiguration', + 'buttonAction', + ), + link: link, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.dart index 52a8bf749c..1f025c65e8 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.dart @@ -17,20 +17,14 @@ abstract class PayloadTooLargeException Built, _i2.SmithyHttpException { /// Provides information about an API request or response. - factory PayloadTooLargeException({ - String? message, - String? requestId, - }) { - return _$PayloadTooLargeException._( - message: message, - requestId: requestId, - ); + factory PayloadTooLargeException({String? message, String? requestId}) { + return _$PayloadTooLargeException._(message: message, requestId: requestId); } /// Provides information about an API request or response. - factory PayloadTooLargeException.build( - [void Function(PayloadTooLargeExceptionBuilder) updates]) = - _$PayloadTooLargeException; + factory PayloadTooLargeException.build([ + void Function(PayloadTooLargeExceptionBuilder) updates, + ]) = _$PayloadTooLargeException; const PayloadTooLargeException._(); @@ -38,13 +32,12 @@ abstract class PayloadTooLargeException factory PayloadTooLargeException.fromResponse( PayloadTooLargeException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [PayloadTooLargeExceptionRestJson1Serializer()]; + serializers = [PayloadTooLargeExceptionRestJson1Serializer()]; /// The message that's returned from the API. @override @@ -54,9 +47,9 @@ abstract class PayloadTooLargeException String? get requestId; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'PayloadTooLargeException', - ); + namespace: 'com.amazonaws.pinpoint', + shape: 'PayloadTooLargeException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -68,21 +61,13 @@ abstract class PayloadTooLargeException @override Exception? get underlyingException => null; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('PayloadTooLargeException') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('PayloadTooLargeException') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -90,20 +75,17 @@ abstract class PayloadTooLargeException class PayloadTooLargeExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const PayloadTooLargeExceptionRestJson1Serializer() - : super('PayloadTooLargeException'); + : super('PayloadTooLargeException'); @override Iterable get types => const [ - PayloadTooLargeException, - _$PayloadTooLargeException, - ]; + PayloadTooLargeException, + _$PayloadTooLargeException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PayloadTooLargeException deserialize( Serializers serializers, @@ -121,15 +103,19 @@ class PayloadTooLargeExceptionRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,18 +133,19 @@ class PayloadTooLargeExceptionRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.g.dart index 0d09500a74..6988ad6063 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/payload_too_large_exception.g.dart @@ -14,17 +14,17 @@ class _$PayloadTooLargeException extends PayloadTooLargeException { @override final Map? headers; - factory _$PayloadTooLargeException( - [void Function(PayloadTooLargeExceptionBuilder)? updates]) => - (new PayloadTooLargeExceptionBuilder()..update(updates))._build(); + factory _$PayloadTooLargeException([ + void Function(PayloadTooLargeExceptionBuilder)? updates, + ]) => (new PayloadTooLargeExceptionBuilder()..update(updates))._build(); _$PayloadTooLargeException._({this.message, this.requestId, this.headers}) - : super._(); + : super._(); @override PayloadTooLargeException rebuild( - void Function(PayloadTooLargeExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PayloadTooLargeExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PayloadTooLargeExceptionBuilder toBuilder() => @@ -93,9 +93,13 @@ class PayloadTooLargeExceptionBuilder PayloadTooLargeException build() => _build(); _$PayloadTooLargeException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PayloadTooLargeException._( - message: message, requestId: requestId, headers: headers); + message: message, + requestId: requestId, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.dart index 69b8ce7b66..2bf46386ac 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.dart @@ -55,7 +55,7 @@ abstract class PublicEndpoint const PublicEndpoint._(); static const List<_i3.SmithySerializer> serializers = [ - PublicEndpointRestJson1Serializer() + PublicEndpointRestJson1Serializer(), ]; /// The unique identifier for the recipient, such as a device token, email address, or mobile phone number. @@ -94,65 +94,33 @@ abstract class PublicEndpoint EndpointUser? get user; @override List get props => [ - address, - attributes, - channelType, - demographic, - effectiveDate, - endpointStatus, - location, - metrics, - optOut, - requestId, - user, - ]; + address, + attributes, + channelType, + demographic, + effectiveDate, + endpointStatus, + location, + metrics, + optOut, + requestId, + user, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('PublicEndpoint') - ..add( - 'address', - address, - ) - ..add( - 'attributes', - attributes, - ) - ..add( - 'channelType', - channelType, - ) - ..add( - 'demographic', - demographic, - ) - ..add( - 'effectiveDate', - effectiveDate, - ) - ..add( - 'endpointStatus', - endpointStatus, - ) - ..add( - 'location', - location, - ) - ..add( - 'metrics', - metrics, - ) - ..add( - 'optOut', - optOut, - ) - ..add( - 'requestId', - requestId, - ) - ..add( - 'user', - user, - ); + final helper = + newBuiltValueToStringHelper('PublicEndpoint') + ..add('address', address) + ..add('attributes', attributes) + ..add('channelType', channelType) + ..add('demographic', demographic) + ..add('effectiveDate', effectiveDate) + ..add('endpointStatus', endpointStatus) + ..add('location', location) + ..add('metrics', metrics) + ..add('optOut', optOut) + ..add('requestId', requestId) + ..add('user', user); return helper.toString(); } } @@ -162,17 +130,11 @@ class PublicEndpointRestJson1Serializer const PublicEndpointRestJson1Serializer() : super('PublicEndpoint'); @override - Iterable get types => const [ - PublicEndpoint, - _$PublicEndpoint, - ]; + Iterable get types => const [PublicEndpoint, _$PublicEndpoint]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PublicEndpoint deserialize( Serializers serializers, @@ -190,72 +152,93 @@ class PublicEndpointRestJson1Serializer } switch (key) { case 'Address': - result.address = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.address = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Attributes': - result.attributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltListMultimap)); + result.attributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltListMultimap), + ); case 'ChannelType': - result.channelType = (serializers.deserialize( - value, - specifiedType: const FullType(ChannelType), - ) as ChannelType); + result.channelType = + (serializers.deserialize( + value, + specifiedType: const FullType(ChannelType), + ) + as ChannelType); case 'Demographic': - result.demographic.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointDemographic), - ) as EndpointDemographic)); + result.demographic.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointDemographic), + ) + as EndpointDemographic), + ); case 'EffectiveDate': - result.effectiveDate = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.effectiveDate = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EndpointStatus': - result.endpointStatus = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.endpointStatus = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Location': - result.location.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointLocation), - ) as EndpointLocation)); + result.location.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointLocation), + ) + as EndpointLocation), + ); case 'Metrics': - result.metrics.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i2.BuiltMap)); + result.metrics.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i2.BuiltMap), + ); case 'OptOut': - result.optOut = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optOut = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestId': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'User': - result.user.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointUser), - ) as EndpointUser)); + result.user.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointUser), + ) + as EndpointUser), + ); } } @@ -280,107 +263,117 @@ class PublicEndpointRestJson1Serializer :metrics, :optOut, :requestId, - :user + :user, ) = object; if (address != null) { result$ ..add('Address') - ..add(serializers.serialize( - address, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(address, specifiedType: const FullType(String)), + ); } if (attributes != null) { result$ ..add('Attributes') - ..add(serializers.serialize( - attributes, - specifiedType: const FullType( - _i2.BuiltListMultimap, - [ + ..add( + serializers.serialize( + attributes, + specifiedType: const FullType(_i2.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (channelType != null) { result$ ..add('ChannelType') - ..add(serializers.serialize( - channelType, - specifiedType: const FullType(ChannelType), - )); + ..add( + serializers.serialize( + channelType, + specifiedType: const FullType(ChannelType), + ), + ); } if (demographic != null) { result$ ..add('Demographic') - ..add(serializers.serialize( - demographic, - specifiedType: const FullType(EndpointDemographic), - )); + ..add( + serializers.serialize( + demographic, + specifiedType: const FullType(EndpointDemographic), + ), + ); } if (effectiveDate != null) { result$ ..add('EffectiveDate') - ..add(serializers.serialize( - effectiveDate, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + effectiveDate, + specifiedType: const FullType(String), + ), + ); } if (endpointStatus != null) { result$ ..add('EndpointStatus') - ..add(serializers.serialize( - endpointStatus, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + endpointStatus, + specifiedType: const FullType(String), + ), + ); } if (location != null) { result$ ..add('Location') - ..add(serializers.serialize( - location, - specifiedType: const FullType(EndpointLocation), - )); + ..add( + serializers.serialize( + location, + specifiedType: const FullType(EndpointLocation), + ), + ); } if (metrics != null) { result$ ..add('Metrics') - ..add(serializers.serialize( - metrics, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + metrics, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(double), - ], + ]), ), - )); + ); } if (optOut != null) { result$ ..add('OptOut') - ..add(serializers.serialize( - optOut, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(optOut, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestId') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } if (user != null) { result$ ..add('User') - ..add(serializers.serialize( - user, - specifiedType: const FullType(EndpointUser), - )); + ..add( + serializers.serialize( + user, + specifiedType: const FullType(EndpointUser), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.g.dart index cffbb8d233..181c60ea6e 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/public_endpoint.g.dart @@ -33,19 +33,19 @@ class _$PublicEndpoint extends PublicEndpoint { factory _$PublicEndpoint([void Function(PublicEndpointBuilder)? updates]) => (new PublicEndpointBuilder()..update(updates))._build(); - _$PublicEndpoint._( - {this.address, - this.attributes, - this.channelType, - this.demographic, - this.effectiveDate, - this.endpointStatus, - this.location, - this.metrics, - this.optOut, - this.requestId, - this.user}) - : super._(); + _$PublicEndpoint._({ + this.address, + this.attributes, + this.channelType, + this.demographic, + this.effectiveDate, + this.endpointStatus, + this.location, + this.metrics, + this.optOut, + this.requestId, + this.user, + }) : super._(); @override PublicEndpoint rebuild(void Function(PublicEndpointBuilder) updates) => @@ -188,19 +188,21 @@ class PublicEndpointBuilder _$PublicEndpoint _build() { _$PublicEndpoint _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PublicEndpoint._( - address: address, - attributes: _attributes?.build(), - channelType: channelType, - demographic: _demographic?.build(), - effectiveDate: effectiveDate, - endpointStatus: endpointStatus, - location: _location?.build(), - metrics: _metrics?.build(), - optOut: optOut, - requestId: requestId, - user: _user?.build()); + address: address, + attributes: _attributes?.build(), + channelType: channelType, + demographic: _demographic?.build(), + effectiveDate: effectiveDate, + endpointStatus: endpointStatus, + location: _location?.build(), + metrics: _metrics?.build(), + optOut: optOut, + requestId: requestId, + user: _user?.build(), + ); } catch (_) { late String _$failedField; try { @@ -219,7 +221,10 @@ class PublicEndpointBuilder _user?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PublicEndpoint', _$failedField, e.toString()); + r'PublicEndpoint', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.dart index a2dda507a7..c88d584d05 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.dart @@ -26,8 +26,9 @@ abstract class PutEventsRequest ); } - factory PutEventsRequest.build( - [void Function(PutEventsRequestBuilder) updates]) = _$PutEventsRequest; + factory PutEventsRequest.build([ + void Function(PutEventsRequestBuilder) updates, + ]) = _$PutEventsRequest; const PutEventsRequest._(); @@ -35,16 +36,15 @@ abstract class PutEventsRequest EventsRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - PutEventsRequest.build((b) { - b.eventsRequest.replace(payload); - if (labels['applicationId'] != null) { - b.applicationId = labels['applicationId']!; - } - }); + }) => PutEventsRequest.build((b) { + b.eventsRequest.replace(payload); + if (labels['applicationId'] != null) { + b.applicationId = labels['applicationId']!; + } + }); static const List<_i1.SmithySerializer> serializers = [ - PutEventsRequestRestJson1Serializer() + PutEventsRequestRestJson1Serializer(), ]; /// The unique identifier for the application. This identifier is displayed as the **Project ID** on the Amazon Pinpoint console. @@ -58,30 +58,19 @@ abstract class PutEventsRequest case 'ApplicationId': return applicationId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override EventsRequest getPayload() => eventsRequest; @override - List get props => [ - applicationId, - eventsRequest, - ]; + List get props => [applicationId, eventsRequest]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutEventsRequest') - ..add( - 'applicationId', - applicationId, - ) - ..add( - 'eventsRequest', - eventsRequest, - ); + final helper = + newBuiltValueToStringHelper('PutEventsRequest') + ..add('applicationId', applicationId) + ..add('eventsRequest', eventsRequest); return helper.toString(); } } @@ -91,17 +80,11 @@ class PutEventsRequestRestJson1Serializer const PutEventsRequestRestJson1Serializer() : super('PutEventsRequest'); @override - Iterable get types => const [ - PutEventsRequest, - _$PutEventsRequest, - ]; + Iterable get types => const [PutEventsRequest, _$PutEventsRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EventsRequest deserialize( Serializers serializers, @@ -109,9 +92,10 @@ class PutEventsRequestRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(EventsRequest), - ) as EventsRequest); + serialized, + specifiedType: const FullType(EventsRequest), + ) + as EventsRequest); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.g.dart index dc21d784e6..1f634042db 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_request.g.dart @@ -12,17 +12,24 @@ class _$PutEventsRequest extends PutEventsRequest { @override final EventsRequest eventsRequest; - factory _$PutEventsRequest( - [void Function(PutEventsRequestBuilder)? updates]) => - (new PutEventsRequestBuilder()..update(updates))._build(); - - _$PutEventsRequest._( - {required this.applicationId, required this.eventsRequest}) - : super._() { + factory _$PutEventsRequest([ + void Function(PutEventsRequestBuilder)? updates, + ]) => (new PutEventsRequestBuilder()..update(updates))._build(); + + _$PutEventsRequest._({ + required this.applicationId, + required this.eventsRequest, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - applicationId, r'PutEventsRequest', 'applicationId'); + applicationId, + r'PutEventsRequest', + 'applicationId', + ); BuiltValueNullFieldError.checkNotNull( - eventsRequest, r'PutEventsRequest', 'eventsRequest'); + eventsRequest, + r'PutEventsRequest', + 'eventsRequest', + ); } @override @@ -95,11 +102,16 @@ class PutEventsRequestBuilder _$PutEventsRequest _build() { _$PutEventsRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PutEventsRequest._( - applicationId: BuiltValueNullFieldError.checkNotNull( - applicationId, r'PutEventsRequest', 'applicationId'), - eventsRequest: eventsRequest.build()); + applicationId: BuiltValueNullFieldError.checkNotNull( + applicationId, + r'PutEventsRequest', + 'applicationId', + ), + eventsRequest: eventsRequest.build(), + ); } catch (_) { late String _$failedField; try { @@ -107,7 +119,10 @@ class PutEventsRequestBuilder eventsRequest.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PutEventsRequest', _$failedField, e.toString()); + r'PutEventsRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.dart index 8c8289cb9e..45bb6fa59e 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.dart @@ -20,8 +20,9 @@ abstract class PutEventsResponse return _$PutEventsResponse._(eventsResponse: eventsResponse); } - factory PutEventsResponse.build( - [void Function(PutEventsResponseBuilder) updates]) = _$PutEventsResponse; + factory PutEventsResponse.build([ + void Function(PutEventsResponseBuilder) updates, + ]) = _$PutEventsResponse; const PutEventsResponse._(); @@ -29,13 +30,12 @@ abstract class PutEventsResponse factory PutEventsResponse.fromResponse( EventsResponse payload, _i1.AWSBaseHttpResponse response, - ) => - PutEventsResponse.build((b) { - b.eventsResponse.replace(payload); - }); + ) => PutEventsResponse.build((b) { + b.eventsResponse.replace(payload); + }); static const List<_i2.SmithySerializer> serializers = [ - PutEventsResponseRestJson1Serializer() + PutEventsResponseRestJson1Serializer(), ]; /// Provides information about endpoints and the events that they're associated with. @@ -47,10 +47,7 @@ abstract class PutEventsResponse @override String toString() { final helper = newBuiltValueToStringHelper('PutEventsResponse') - ..add( - 'eventsResponse', - eventsResponse, - ); + ..add('eventsResponse', eventsResponse); return helper.toString(); } } @@ -60,17 +57,11 @@ class PutEventsResponseRestJson1Serializer const PutEventsResponseRestJson1Serializer() : super('PutEventsResponse'); @override - Iterable get types => const [ - PutEventsResponse, - _$PutEventsResponse, - ]; + Iterable get types => const [PutEventsResponse, _$PutEventsResponse]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EventsResponse deserialize( Serializers serializers, @@ -78,9 +69,10 @@ class PutEventsResponseRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(EventsResponse), - ) as EventsResponse); + serialized, + specifiedType: const FullType(EventsResponse), + ) + as EventsResponse); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.g.dart index 895bbd7e19..1bdf74c107 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/put_events_response.g.dart @@ -10,13 +10,16 @@ class _$PutEventsResponse extends PutEventsResponse { @override final EventsResponse eventsResponse; - factory _$PutEventsResponse( - [void Function(PutEventsResponseBuilder)? updates]) => - (new PutEventsResponseBuilder()..update(updates))._build(); + factory _$PutEventsResponse([ + void Function(PutEventsResponseBuilder)? updates, + ]) => (new PutEventsResponseBuilder()..update(updates))._build(); _$PutEventsResponse._({required this.eventsResponse}) : super._() { BuiltValueNullFieldError.checkNotNull( - eventsResponse, r'PutEventsResponse', 'eventsResponse'); + eventsResponse, + r'PutEventsResponse', + 'eventsResponse', + ); } @override @@ -80,7 +83,8 @@ class PutEventsResponseBuilder _$PutEventsResponse _build() { _$PutEventsResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PutEventsResponse._(eventsResponse: eventsResponse.build()); } catch (_) { late String _$failedField; @@ -89,7 +93,10 @@ class PutEventsResponseBuilder eventsResponse.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PutEventsResponse', _$failedField, e.toString()); + r'PutEventsResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/quiet_time.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/quiet_time.dart index 97959150f5..69c71d6e2d 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/quiet_time.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/quiet_time.dart @@ -15,14 +15,8 @@ abstract class QuietTime with _i1.AWSEquatable implements Built { /// Specifies the start and end times that define a time range when messages aren't sent to endpoints. - factory QuietTime({ - String? end, - String? start, - }) { - return _$QuietTime._( - end: end, - start: start, - ); + factory QuietTime({String? end, String? start}) { + return _$QuietTime._(end: end, start: start); } /// Specifies the start and end times that define a time range when messages aren't sent to endpoints. @@ -32,7 +26,7 @@ abstract class QuietTime const QuietTime._(); static const List<_i2.SmithySerializer> serializers = [ - QuietTimeRestJson1Serializer() + QuietTimeRestJson1Serializer(), ]; /// The specific time when quiet time ends. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM. @@ -41,21 +35,13 @@ abstract class QuietTime /// The specific time when quiet time begins. This value has to use 24-hour notation and be in HH:MM format, where HH is the hour (with a leading zero, if applicable) and MM is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM. String? get start; @override - List get props => [ - end, - start, - ]; + List get props => [end, start]; @override String toString() { - final helper = newBuiltValueToStringHelper('QuietTime') - ..add( - 'end', - end, - ) - ..add( - 'start', - start, - ); + final helper = + newBuiltValueToStringHelper('QuietTime') + ..add('end', end) + ..add('start', start); return helper.toString(); } } @@ -65,17 +51,11 @@ class QuietTimeRestJson1Serializer const QuietTimeRestJson1Serializer() : super('QuietTime'); @override - Iterable get types => const [ - QuietTime, - _$QuietTime, - ]; + Iterable get types => const [QuietTime, _$QuietTime]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QuietTime deserialize( Serializers serializers, @@ -93,15 +73,19 @@ class QuietTimeRestJson1Serializer } switch (key) { case 'End': - result.end = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.end = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Start': - result.start = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.start = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -119,18 +103,16 @@ class QuietTimeRestJson1Serializer if (end != null) { result$ ..add('End') - ..add(serializers.serialize( - end, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(end, specifiedType: const FullType(String)), + ); } if (start != null) { result$ ..add('Start') - ..add(serializers.serialize( - start, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(start, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.dart index dc2a7ac024..23487259c5 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.dart @@ -35,7 +35,7 @@ abstract class Session const Session._(); static const List<_i2.SmithySerializer> serializers = [ - SessionRestJson1Serializer() + SessionRestJson1Serializer(), ]; /// The duration of the session, in milliseconds. @@ -50,31 +50,15 @@ abstract class Session /// The date and time when the session ended. String? get stopTimestamp; @override - List get props => [ - duration, - id, - startTimestamp, - stopTimestamp, - ]; + List get props => [duration, id, startTimestamp, stopTimestamp]; @override String toString() { - final helper = newBuiltValueToStringHelper('Session') - ..add( - 'duration', - duration, - ) - ..add( - 'id', - id, - ) - ..add( - 'startTimestamp', - startTimestamp, - ) - ..add( - 'stopTimestamp', - stopTimestamp, - ); + final helper = + newBuiltValueToStringHelper('Session') + ..add('duration', duration) + ..add('id', id) + ..add('startTimestamp', startTimestamp) + ..add('stopTimestamp', stopTimestamp); return helper.toString(); } } @@ -84,17 +68,11 @@ class SessionRestJson1Serializer const SessionRestJson1Serializer() : super('Session'); @override - Iterable get types => const [ - Session, - _$Session, - ]; + Iterable get types => const [Session, _$Session]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override Session deserialize( Serializers serializers, @@ -112,25 +90,33 @@ class SessionRestJson1Serializer } switch (key) { case 'Duration': - result.duration = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.duration = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Id': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StartTimestamp': - result.startTimestamp = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startTimestamp = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StopTimestamp': - result.stopTimestamp = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stopTimestamp = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,10 +133,7 @@ class SessionRestJson1Serializer final Session(:duration, :id, :startTimestamp, :stopTimestamp) = object; result$.addAll([ 'Id', - serializers.serialize( - id, - specifiedType: const FullType(String), - ), + serializers.serialize(id, specifiedType: const FullType(String)), 'StartTimestamp', serializers.serialize( startTimestamp, @@ -160,18 +143,19 @@ class SessionRestJson1Serializer if (duration != null) { result$ ..add('Duration') - ..add(serializers.serialize( - duration, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(duration, specifiedType: const FullType(int)), + ); } if (stopTimestamp != null) { result$ ..add('StopTimestamp') - ..add(serializers.serialize( - stopTimestamp, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stopTimestamp, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.g.dart index a10d1c5cf3..a854a74f4b 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/session.g.dart @@ -19,15 +19,18 @@ class _$Session extends Session { factory _$Session([void Function(SessionBuilder)? updates]) => (new SessionBuilder()..update(updates))._build(); - _$Session._( - {this.duration, - required this.id, - required this.startTimestamp, - this.stopTimestamp}) - : super._() { + _$Session._({ + this.duration, + required this.id, + required this.startTimestamp, + this.stopTimestamp, + }) : super._() { BuiltValueNullFieldError.checkNotNull(id, r'Session', 'id'); BuiltValueNullFieldError.checkNotNull( - startTimestamp, r'Session', 'startTimestamp'); + startTimestamp, + r'Session', + 'startTimestamp', + ); } @override @@ -109,13 +112,18 @@ class SessionBuilder implements Builder { Session build() => _build(); _$Session _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$Session._( - duration: duration, - id: BuiltValueNullFieldError.checkNotNull(id, r'Session', 'id'), - startTimestamp: BuiltValueNullFieldError.checkNotNull( - startTimestamp, r'Session', 'startTimestamp'), - stopTimestamp: stopTimestamp); + duration: duration, + id: BuiltValueNullFieldError.checkNotNull(id, r'Session', 'id'), + startTimestamp: BuiltValueNullFieldError.checkNotNull( + startTimestamp, + r'Session', + 'startTimestamp', + ), + stopTimestamp: stopTimestamp, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.dart index 1f8e01be51..3e2ff4aa67 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.dart @@ -34,7 +34,7 @@ abstract class SetDimension const SetDimension._(); static const List<_i3.SmithySerializer> serializers = [ - SetDimensionRestJson1Serializer() + SetDimensionRestJson1Serializer(), ]; /// The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints that match the criteria are included in the segment; and, EXCLUSIVE, endpoints that match the criteria are excluded from the segment. @@ -43,21 +43,13 @@ abstract class SetDimension /// The criteria values to use for the segment dimension. Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values. _i2.BuiltList get values; @override - List get props => [ - dimensionType, - values, - ]; + List get props => [dimensionType, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('SetDimension') - ..add( - 'dimensionType', - dimensionType, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('SetDimension') + ..add('dimensionType', dimensionType) + ..add('values', values); return helper.toString(); } } @@ -67,17 +59,11 @@ class SetDimensionRestJson1Serializer const SetDimensionRestJson1Serializer() : super('SetDimension'); @override - Iterable get types => const [ - SetDimension, - _$SetDimension, - ]; + Iterable get types => const [SetDimension, _$SetDimension]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SetDimension deserialize( Serializers serializers, @@ -95,18 +81,22 @@ class SetDimensionRestJson1Serializer } switch (key) { case 'DimensionType': - result.dimensionType = (serializers.deserialize( - value, - specifiedType: const FullType(DimensionType), - ) as DimensionType); + result.dimensionType = + (serializers.deserialize( + value, + specifiedType: const FullType(DimensionType), + ) + as DimensionType); case 'Values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -125,19 +115,18 @@ class SetDimensionRestJson1Serializer 'Values', serializers.serialize( values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), ]); if (dimensionType != null) { result$ ..add('DimensionType') - ..add(serializers.serialize( - dimensionType, - specifiedType: const FullType(DimensionType), - )); + ..add( + serializers.serialize( + dimensionType, + specifiedType: const FullType(DimensionType), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.g.dart index 14e0c4a542..52b2711bf0 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/set_dimension.g.dart @@ -87,9 +87,12 @@ class SetDimensionBuilder _$SetDimension _build() { _$SetDimension _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SetDimension._( - dimensionType: dimensionType, values: values.build()); + dimensionType: dimensionType, + values: values.build(), + ); } catch (_) { late String _$failedField; try { @@ -97,7 +100,10 @@ class SetDimensionBuilder values.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SetDimension', _$failedField, e.toString()); + r'SetDimension', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.dart index 92f5e8ecd2..9f6eec7d0f 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.dart @@ -17,20 +17,14 @@ abstract class TooManyRequestsException Built, _i2.SmithyHttpException { /// Provides information about an API request or response. - factory TooManyRequestsException({ - String? message, - String? requestId, - }) { - return _$TooManyRequestsException._( - message: message, - requestId: requestId, - ); + factory TooManyRequestsException({String? message, String? requestId}) { + return _$TooManyRequestsException._(message: message, requestId: requestId); } /// Provides information about an API request or response. - factory TooManyRequestsException.build( - [void Function(TooManyRequestsExceptionBuilder) updates]) = - _$TooManyRequestsException; + factory TooManyRequestsException.build([ + void Function(TooManyRequestsExceptionBuilder) updates, + ]) = _$TooManyRequestsException; const TooManyRequestsException._(); @@ -38,13 +32,12 @@ abstract class TooManyRequestsException factory TooManyRequestsException.fromResponse( TooManyRequestsException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [TooManyRequestsExceptionRestJson1Serializer()]; + serializers = [TooManyRequestsExceptionRestJson1Serializer()]; /// The message that's returned from the API. @override @@ -54,9 +47,9 @@ abstract class TooManyRequestsException String? get requestId; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'TooManyRequestsException', - ); + namespace: 'com.amazonaws.pinpoint', + shape: 'TooManyRequestsException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -68,21 +61,13 @@ abstract class TooManyRequestsException @override Exception? get underlyingException => null; @override - List get props => [ - message, - requestId, - ]; + List get props => [message, requestId]; @override String toString() { - final helper = newBuiltValueToStringHelper('TooManyRequestsException') - ..add( - 'message', - message, - ) - ..add( - 'requestId', - requestId, - ); + final helper = + newBuiltValueToStringHelper('TooManyRequestsException') + ..add('message', message) + ..add('requestId', requestId); return helper.toString(); } } @@ -90,20 +75,17 @@ abstract class TooManyRequestsException class TooManyRequestsExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const TooManyRequestsExceptionRestJson1Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [ - TooManyRequestsException, - _$TooManyRequestsException, - ]; + TooManyRequestsException, + _$TooManyRequestsException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TooManyRequestsException deserialize( Serializers serializers, @@ -121,15 +103,19 @@ class TooManyRequestsExceptionRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestID': - result.requestId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requestId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,18 +133,19 @@ class TooManyRequestsExceptionRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (requestId != null) { result$ ..add('RequestID') - ..add(serializers.serialize( - requestId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + requestId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.g.dart index 27c82a1eb6..14f55c56f9 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/too_many_requests_exception.g.dart @@ -14,17 +14,17 @@ class _$TooManyRequestsException extends TooManyRequestsException { @override final Map? headers; - factory _$TooManyRequestsException( - [void Function(TooManyRequestsExceptionBuilder)? updates]) => - (new TooManyRequestsExceptionBuilder()..update(updates))._build(); + factory _$TooManyRequestsException([ + void Function(TooManyRequestsExceptionBuilder)? updates, + ]) => (new TooManyRequestsExceptionBuilder()..update(updates))._build(); _$TooManyRequestsException._({this.message, this.requestId, this.headers}) - : super._(); + : super._(); @override TooManyRequestsException rebuild( - void Function(TooManyRequestsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionBuilder toBuilder() => @@ -93,9 +93,13 @@ class TooManyRequestsExceptionBuilder TooManyRequestsException build() => _build(); _$TooManyRequestsException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TooManyRequestsException._( - message: message, requestId: requestId, headers: headers); + message: message, + requestId: requestId, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.dart index 5042270318..2ba56e532e 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.dart @@ -28,9 +28,9 @@ abstract class UpdateEndpointRequest ); } - factory UpdateEndpointRequest.build( - [void Function(UpdateEndpointRequestBuilder) updates]) = - _$UpdateEndpointRequest; + factory UpdateEndpointRequest.build([ + void Function(UpdateEndpointRequestBuilder) updates, + ]) = _$UpdateEndpointRequest; const UpdateEndpointRequest._(); @@ -38,19 +38,18 @@ abstract class UpdateEndpointRequest EndpointRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UpdateEndpointRequest.build((b) { - b.endpointRequest.replace(payload); - if (labels['applicationId'] != null) { - b.applicationId = labels['applicationId']!; - } - if (labels['endpointId'] != null) { - b.endpointId = labels['endpointId']!; - } - }); + }) => UpdateEndpointRequest.build((b) { + b.endpointRequest.replace(payload); + if (labels['applicationId'] != null) { + b.applicationId = labels['applicationId']!; + } + if (labels['endpointId'] != null) { + b.endpointId = labels['endpointId']!; + } + }); static const List<_i1.SmithySerializer> serializers = [ - UpdateEndpointRequestRestJson1Serializer() + UpdateEndpointRequestRestJson1Serializer(), ]; /// The unique identifier for the application. This identifier is displayed as the **Project ID** on the Amazon Pinpoint console. @@ -69,35 +68,20 @@ abstract class UpdateEndpointRequest case 'EndpointId': return endpointId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override EndpointRequest getPayload() => endpointRequest; @override - List get props => [ - applicationId, - endpointId, - endpointRequest, - ]; + List get props => [applicationId, endpointId, endpointRequest]; @override String toString() { - final helper = newBuiltValueToStringHelper('UpdateEndpointRequest') - ..add( - 'applicationId', - applicationId, - ) - ..add( - 'endpointId', - endpointId, - ) - ..add( - 'endpointRequest', - endpointRequest, - ); + final helper = + newBuiltValueToStringHelper('UpdateEndpointRequest') + ..add('applicationId', applicationId) + ..add('endpointId', endpointId) + ..add('endpointRequest', endpointRequest); return helper.toString(); } } @@ -105,20 +89,17 @@ abstract class UpdateEndpointRequest class UpdateEndpointRequestRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const UpdateEndpointRequestRestJson1Serializer() - : super('UpdateEndpointRequest'); + : super('UpdateEndpointRequest'); @override Iterable get types => const [ - UpdateEndpointRequest, - _$UpdateEndpointRequest, - ]; + UpdateEndpointRequest, + _$UpdateEndpointRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointRequest deserialize( Serializers serializers, @@ -126,9 +107,10 @@ class UpdateEndpointRequestRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(EndpointRequest), - ) as EndpointRequest); + serialized, + specifiedType: const FullType(EndpointRequest), + ) + as EndpointRequest); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.g.dart index 981db07247..aa6f28bced 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_request.g.dart @@ -14,27 +14,36 @@ class _$UpdateEndpointRequest extends UpdateEndpointRequest { @override final EndpointRequest endpointRequest; - factory _$UpdateEndpointRequest( - [void Function(UpdateEndpointRequestBuilder)? updates]) => - (new UpdateEndpointRequestBuilder()..update(updates))._build(); - - _$UpdateEndpointRequest._( - {required this.applicationId, - required this.endpointId, - required this.endpointRequest}) - : super._() { + factory _$UpdateEndpointRequest([ + void Function(UpdateEndpointRequestBuilder)? updates, + ]) => (new UpdateEndpointRequestBuilder()..update(updates))._build(); + + _$UpdateEndpointRequest._({ + required this.applicationId, + required this.endpointId, + required this.endpointRequest, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - applicationId, r'UpdateEndpointRequest', 'applicationId'); + applicationId, + r'UpdateEndpointRequest', + 'applicationId', + ); BuiltValueNullFieldError.checkNotNull( - endpointId, r'UpdateEndpointRequest', 'endpointId'); + endpointId, + r'UpdateEndpointRequest', + 'endpointId', + ); BuiltValueNullFieldError.checkNotNull( - endpointRequest, r'UpdateEndpointRequest', 'endpointRequest'); + endpointRequest, + r'UpdateEndpointRequest', + 'endpointRequest', + ); } @override UpdateEndpointRequest rebuild( - void Function(UpdateEndpointRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateEndpointRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateEndpointRequestBuilder toBuilder() => @@ -109,13 +118,21 @@ class UpdateEndpointRequestBuilder _$UpdateEndpointRequest _build() { _$UpdateEndpointRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$UpdateEndpointRequest._( - applicationId: BuiltValueNullFieldError.checkNotNull( - applicationId, r'UpdateEndpointRequest', 'applicationId'), - endpointId: BuiltValueNullFieldError.checkNotNull( - endpointId, r'UpdateEndpointRequest', 'endpointId'), - endpointRequest: endpointRequest.build()); + applicationId: BuiltValueNullFieldError.checkNotNull( + applicationId, + r'UpdateEndpointRequest', + 'applicationId', + ), + endpointId: BuiltValueNullFieldError.checkNotNull( + endpointId, + r'UpdateEndpointRequest', + 'endpointId', + ), + endpointRequest: endpointRequest.build(), + ); } catch (_) { late String _$failedField; try { @@ -123,7 +140,10 @@ class UpdateEndpointRequestBuilder endpointRequest.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'UpdateEndpointRequest', _$failedField, e.toString()); + r'UpdateEndpointRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.dart index e539c166a6..3a52920627 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.dart @@ -20,9 +20,9 @@ abstract class UpdateEndpointResponse return _$UpdateEndpointResponse._(messageBody: messageBody); } - factory UpdateEndpointResponse.build( - [void Function(UpdateEndpointResponseBuilder) updates]) = - _$UpdateEndpointResponse; + factory UpdateEndpointResponse.build([ + void Function(UpdateEndpointResponseBuilder) updates, + ]) = _$UpdateEndpointResponse; const UpdateEndpointResponse._(); @@ -30,13 +30,12 @@ abstract class UpdateEndpointResponse factory UpdateEndpointResponse.fromResponse( MessageBody payload, _i1.AWSBaseHttpResponse response, - ) => - UpdateEndpointResponse.build((b) { - b.messageBody.replace(payload); - }); + ) => UpdateEndpointResponse.build((b) { + b.messageBody.replace(payload); + }); static const List<_i2.SmithySerializer> serializers = [ - UpdateEndpointResponseRestJson1Serializer() + UpdateEndpointResponseRestJson1Serializer(), ]; /// Provides information about an API request or response. @@ -48,10 +47,7 @@ abstract class UpdateEndpointResponse @override String toString() { final helper = newBuiltValueToStringHelper('UpdateEndpointResponse') - ..add( - 'messageBody', - messageBody, - ); + ..add('messageBody', messageBody); return helper.toString(); } } @@ -59,20 +55,17 @@ abstract class UpdateEndpointResponse class UpdateEndpointResponseRestJson1Serializer extends _i2.PrimitiveSmithySerializer { const UpdateEndpointResponseRestJson1Serializer() - : super('UpdateEndpointResponse'); + : super('UpdateEndpointResponse'); @override Iterable get types => const [ - UpdateEndpointResponse, - _$UpdateEndpointResponse, - ]; + UpdateEndpointResponse, + _$UpdateEndpointResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MessageBody deserialize( Serializers serializers, @@ -80,9 +73,10 @@ class UpdateEndpointResponseRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(MessageBody), - ) as MessageBody); + serialized, + specifiedType: const FullType(MessageBody), + ) + as MessageBody); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.g.dart index 145d0d2457..ce3807f218 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoint_response.g.dart @@ -10,19 +10,22 @@ class _$UpdateEndpointResponse extends UpdateEndpointResponse { @override final MessageBody messageBody; - factory _$UpdateEndpointResponse( - [void Function(UpdateEndpointResponseBuilder)? updates]) => - (new UpdateEndpointResponseBuilder()..update(updates))._build(); + factory _$UpdateEndpointResponse([ + void Function(UpdateEndpointResponseBuilder)? updates, + ]) => (new UpdateEndpointResponseBuilder()..update(updates))._build(); _$UpdateEndpointResponse._({required this.messageBody}) : super._() { BuiltValueNullFieldError.checkNotNull( - messageBody, r'UpdateEndpointResponse', 'messageBody'); + messageBody, + r'UpdateEndpointResponse', + 'messageBody', + ); } @override UpdateEndpointResponse rebuild( - void Function(UpdateEndpointResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateEndpointResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateEndpointResponseBuilder toBuilder() => @@ -81,7 +84,8 @@ class UpdateEndpointResponseBuilder _$UpdateEndpointResponse _build() { _$UpdateEndpointResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$UpdateEndpointResponse._(messageBody: messageBody.build()); } catch (_) { late String _$failedField; @@ -90,7 +94,10 @@ class UpdateEndpointResponseBuilder messageBody.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'UpdateEndpointResponse', _$failedField, e.toString()); + r'UpdateEndpointResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.dart index 697039f4a7..77f208b580 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.dart @@ -28,9 +28,9 @@ abstract class UpdateEndpointsBatchRequest ); } - factory UpdateEndpointsBatchRequest.build( - [void Function(UpdateEndpointsBatchRequestBuilder) updates]) = - _$UpdateEndpointsBatchRequest; + factory UpdateEndpointsBatchRequest.build([ + void Function(UpdateEndpointsBatchRequestBuilder) updates, + ]) = _$UpdateEndpointsBatchRequest; const UpdateEndpointsBatchRequest._(); @@ -38,16 +38,15 @@ abstract class UpdateEndpointsBatchRequest EndpointBatchRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UpdateEndpointsBatchRequest.build((b) { - b.endpointBatchRequest.replace(payload); - if (labels['applicationId'] != null) { - b.applicationId = labels['applicationId']!; - } - }); + }) => UpdateEndpointsBatchRequest.build((b) { + b.endpointBatchRequest.replace(payload); + if (labels['applicationId'] != null) { + b.applicationId = labels['applicationId']!; + } + }); static const List<_i1.SmithySerializer> serializers = [ - UpdateEndpointsBatchRequestRestJson1Serializer() + UpdateEndpointsBatchRequestRestJson1Serializer(), ]; /// The unique identifier for the application. This identifier is displayed as the **Project ID** on the Amazon Pinpoint console. @@ -61,30 +60,19 @@ abstract class UpdateEndpointsBatchRequest case 'ApplicationId': return applicationId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override EndpointBatchRequest getPayload() => endpointBatchRequest; @override - List get props => [ - applicationId, - endpointBatchRequest, - ]; + List get props => [applicationId, endpointBatchRequest]; @override String toString() { - final helper = newBuiltValueToStringHelper('UpdateEndpointsBatchRequest') - ..add( - 'applicationId', - applicationId, - ) - ..add( - 'endpointBatchRequest', - endpointBatchRequest, - ); + final helper = + newBuiltValueToStringHelper('UpdateEndpointsBatchRequest') + ..add('applicationId', applicationId) + ..add('endpointBatchRequest', endpointBatchRequest); return helper.toString(); } } @@ -92,20 +80,17 @@ abstract class UpdateEndpointsBatchRequest class UpdateEndpointsBatchRequestRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const UpdateEndpointsBatchRequestRestJson1Serializer() - : super('UpdateEndpointsBatchRequest'); + : super('UpdateEndpointsBatchRequest'); @override Iterable get types => const [ - UpdateEndpointsBatchRequest, - _$UpdateEndpointsBatchRequest, - ]; + UpdateEndpointsBatchRequest, + _$UpdateEndpointsBatchRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointBatchRequest deserialize( Serializers serializers, @@ -113,9 +98,10 @@ class UpdateEndpointsBatchRequestRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(EndpointBatchRequest), - ) as EndpointBatchRequest); + serialized, + specifiedType: const FullType(EndpointBatchRequest), + ) + as EndpointBatchRequest); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.g.dart index c82433ae02..85f692c129 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_request.g.dart @@ -12,23 +12,30 @@ class _$UpdateEndpointsBatchRequest extends UpdateEndpointsBatchRequest { @override final EndpointBatchRequest endpointBatchRequest; - factory _$UpdateEndpointsBatchRequest( - [void Function(UpdateEndpointsBatchRequestBuilder)? updates]) => - (new UpdateEndpointsBatchRequestBuilder()..update(updates))._build(); - - _$UpdateEndpointsBatchRequest._( - {required this.applicationId, required this.endpointBatchRequest}) - : super._() { + factory _$UpdateEndpointsBatchRequest([ + void Function(UpdateEndpointsBatchRequestBuilder)? updates, + ]) => (new UpdateEndpointsBatchRequestBuilder()..update(updates))._build(); + + _$UpdateEndpointsBatchRequest._({ + required this.applicationId, + required this.endpointBatchRequest, + }) : super._() { + BuiltValueNullFieldError.checkNotNull( + applicationId, + r'UpdateEndpointsBatchRequest', + 'applicationId', + ); BuiltValueNullFieldError.checkNotNull( - applicationId, r'UpdateEndpointsBatchRequest', 'applicationId'); - BuiltValueNullFieldError.checkNotNull(endpointBatchRequest, - r'UpdateEndpointsBatchRequest', 'endpointBatchRequest'); + endpointBatchRequest, + r'UpdateEndpointsBatchRequest', + 'endpointBatchRequest', + ); } @override UpdateEndpointsBatchRequest rebuild( - void Function(UpdateEndpointsBatchRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateEndpointsBatchRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateEndpointsBatchRequestBuilder toBuilder() => @@ -54,8 +61,10 @@ class _$UpdateEndpointsBatchRequest extends UpdateEndpointsBatchRequest { class UpdateEndpointsBatchRequestBuilder implements - Builder { + Builder< + UpdateEndpointsBatchRequest, + UpdateEndpointsBatchRequestBuilder + > { _$UpdateEndpointsBatchRequest? _$v; String? _applicationId; @@ -98,13 +107,16 @@ class UpdateEndpointsBatchRequestBuilder _$UpdateEndpointsBatchRequest _build() { _$UpdateEndpointsBatchRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$UpdateEndpointsBatchRequest._( - applicationId: BuiltValueNullFieldError.checkNotNull( - applicationId, - r'UpdateEndpointsBatchRequest', - 'applicationId'), - endpointBatchRequest: endpointBatchRequest.build()); + applicationId: BuiltValueNullFieldError.checkNotNull( + applicationId, + r'UpdateEndpointsBatchRequest', + 'applicationId', + ), + endpointBatchRequest: endpointBatchRequest.build(), + ); } catch (_) { late String _$failedField; try { @@ -112,7 +124,10 @@ class UpdateEndpointsBatchRequestBuilder endpointBatchRequest.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'UpdateEndpointsBatchRequest', _$failedField, e.toString()); + r'UpdateEndpointsBatchRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.dart index b63f4a3dfd..64a8b4e6b9 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.dart @@ -12,19 +12,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'update_endpoints_batch_response.g.dart'; abstract class UpdateEndpointsBatchResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + UpdateEndpointsBatchResponse, + UpdateEndpointsBatchResponseBuilder + >, _i2.HasPayload { factory UpdateEndpointsBatchResponse({required MessageBody messageBody}) { return _$UpdateEndpointsBatchResponse._(messageBody: messageBody); } - factory UpdateEndpointsBatchResponse.build( - [void Function(UpdateEndpointsBatchResponseBuilder) updates]) = - _$UpdateEndpointsBatchResponse; + factory UpdateEndpointsBatchResponse.build([ + void Function(UpdateEndpointsBatchResponseBuilder) updates, + ]) = _$UpdateEndpointsBatchResponse; const UpdateEndpointsBatchResponse._(); @@ -32,13 +33,12 @@ abstract class UpdateEndpointsBatchResponse factory UpdateEndpointsBatchResponse.fromResponse( MessageBody payload, _i1.AWSBaseHttpResponse response, - ) => - UpdateEndpointsBatchResponse.build((b) { - b.messageBody.replace(payload); - }); + ) => UpdateEndpointsBatchResponse.build((b) { + b.messageBody.replace(payload); + }); static const List<_i2.SmithySerializer> serializers = [ - UpdateEndpointsBatchResponseRestJson1Serializer() + UpdateEndpointsBatchResponseRestJson1Serializer(), ]; /// Provides information about an API request or response. @@ -50,10 +50,7 @@ abstract class UpdateEndpointsBatchResponse @override String toString() { final helper = newBuiltValueToStringHelper('UpdateEndpointsBatchResponse') - ..add( - 'messageBody', - messageBody, - ); + ..add('messageBody', messageBody); return helper.toString(); } } @@ -61,20 +58,17 @@ abstract class UpdateEndpointsBatchResponse class UpdateEndpointsBatchResponseRestJson1Serializer extends _i2.PrimitiveSmithySerializer { const UpdateEndpointsBatchResponseRestJson1Serializer() - : super('UpdateEndpointsBatchResponse'); + : super('UpdateEndpointsBatchResponse'); @override Iterable get types => const [ - UpdateEndpointsBatchResponse, - _$UpdateEndpointsBatchResponse, - ]; + UpdateEndpointsBatchResponse, + _$UpdateEndpointsBatchResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MessageBody deserialize( Serializers serializers, @@ -82,9 +76,10 @@ class UpdateEndpointsBatchResponseRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(MessageBody), - ) as MessageBody); + serialized, + specifiedType: const FullType(MessageBody), + ) + as MessageBody); } @override diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.g.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.g.dart index 99e7347aea..633121b1c3 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.g.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/model/update_endpoints_batch_response.g.dart @@ -10,19 +10,22 @@ class _$UpdateEndpointsBatchResponse extends UpdateEndpointsBatchResponse { @override final MessageBody messageBody; - factory _$UpdateEndpointsBatchResponse( - [void Function(UpdateEndpointsBatchResponseBuilder)? updates]) => - (new UpdateEndpointsBatchResponseBuilder()..update(updates))._build(); + factory _$UpdateEndpointsBatchResponse([ + void Function(UpdateEndpointsBatchResponseBuilder)? updates, + ]) => (new UpdateEndpointsBatchResponseBuilder()..update(updates))._build(); _$UpdateEndpointsBatchResponse._({required this.messageBody}) : super._() { BuiltValueNullFieldError.checkNotNull( - messageBody, r'UpdateEndpointsBatchResponse', 'messageBody'); + messageBody, + r'UpdateEndpointsBatchResponse', + 'messageBody', + ); } @override UpdateEndpointsBatchResponse rebuild( - void Function(UpdateEndpointsBatchResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateEndpointsBatchResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateEndpointsBatchResponseBuilder toBuilder() => @@ -46,8 +49,10 @@ class _$UpdateEndpointsBatchResponse extends UpdateEndpointsBatchResponse { class UpdateEndpointsBatchResponseBuilder implements - Builder { + Builder< + UpdateEndpointsBatchResponse, + UpdateEndpointsBatchResponseBuilder + > { _$UpdateEndpointsBatchResponse? _$v; MessageBodyBuilder? _messageBody; @@ -84,9 +89,11 @@ class UpdateEndpointsBatchResponseBuilder _$UpdateEndpointsBatchResponse _build() { _$UpdateEndpointsBatchResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$UpdateEndpointsBatchResponse._( - messageBody: messageBody.build()); + messageBody: messageBody.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +101,10 @@ class UpdateEndpointsBatchResponseBuilder messageBody.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'UpdateEndpointsBatchResponse', _$failedField, e.toString()); + r'UpdateEndpointsBatchResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_endpoint_operation.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_endpoint_operation.dart index 407ca4f155..b3fe377955 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_endpoint_operation.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_endpoint_operation.dart @@ -23,8 +23,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Retrieves information about the settings and attributes of a specific endpoint for an application. -class GetEndpointOperation extends _i1.HttpOperation { +class GetEndpointOperation + extends + _i1.HttpOperation< + GetEndpointRequestPayload, + GetEndpointRequest, + EndpointResponse, + GetEndpointResponse + > { /// Retrieves information about the settings and attributes of a specific endpoint for an application. GetEndpointOperation({ required String region, @@ -33,20 +39,27 @@ class GetEndpointOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GetEndpointRequestPayload, + GetEndpointRequest, + EndpointResponse, + GetEndpointResponse + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), @@ -62,7 +75,7 @@ class GetEndpointOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -92,85 +105,80 @@ class GetEndpointOperation extends _i1.HttpOperation - GetEndpointResponse.fromResponse( - payload, - response, - ); + ) => GetEndpointResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'BadRequestException', - ), - _i1.ErrorKind.client, - BadRequestException, - statusCode: 400, - builder: BadRequestException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'InternalServerErrorException', - ), - _i1.ErrorKind.server, - InternalServerErrorException, - statusCode: 500, - builder: InternalServerErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'MethodNotAllowedException', - ), - _i1.ErrorKind.client, - MethodNotAllowedException, - statusCode: 405, - builder: MethodNotAllowedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'NotFoundException', - ), - _i1.ErrorKind.client, - NotFoundException, - statusCode: 404, - builder: NotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'PayloadTooLargeException', - ), - _i1.ErrorKind.client, - PayloadTooLargeException, - statusCode: 413, - builder: PayloadTooLargeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'BadRequestException', + ), + _i1.ErrorKind.client, + BadRequestException, + statusCode: 400, + builder: BadRequestException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'InternalServerErrorException', + ), + _i1.ErrorKind.server, + InternalServerErrorException, + statusCode: 500, + builder: InternalServerErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'MethodNotAllowedException', + ), + _i1.ErrorKind.client, + MethodNotAllowedException, + statusCode: 405, + builder: MethodNotAllowedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'NotFoundException', + ), + _i1.ErrorKind.client, + NotFoundException, + statusCode: 404, + builder: NotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'PayloadTooLargeException', + ), + _i1.ErrorKind.client, + PayloadTooLargeException, + statusCode: 413, + builder: PayloadTooLargeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetEndpoint'; @override @@ -186,11 +194,7 @@ class GetEndpointOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_in_app_messages_operation.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_in_app_messages_operation.dart index feff644ffd..e998090833 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_in_app_messages_operation.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/get_in_app_messages_operation.dart @@ -23,11 +23,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Retrieves the in-app messages targeted for the provided endpoint ID. -class GetInAppMessagesOperation extends _i1.HttpOperation< - GetInAppMessagesRequestPayload, - GetInAppMessagesRequest, - InAppMessagesResponse, - GetInAppMessagesResponse> { +class GetInAppMessagesOperation + extends + _i1.HttpOperation< + GetInAppMessagesRequestPayload, + GetInAppMessagesRequest, + InAppMessagesResponse, + GetInAppMessagesResponse + > { /// Retrieves the in-app messages targeted for the provided endpoint ID. GetInAppMessagesOperation({ required String region, @@ -36,20 +39,27 @@ class GetInAppMessagesOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GetInAppMessagesRequestPayload, + GetInAppMessagesRequest, + InAppMessagesResponse, + GetInAppMessagesResponse + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), @@ -65,7 +75,7 @@ class GetInAppMessagesOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -96,85 +106,80 @@ class GetInAppMessagesOperation extends _i1.HttpOperation< GetInAppMessagesResponse buildOutput( InAppMessagesResponse payload, _i4.AWSBaseHttpResponse response, - ) => - GetInAppMessagesResponse.fromResponse( - payload, - response, - ); + ) => GetInAppMessagesResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'BadRequestException', - ), - _i1.ErrorKind.client, - BadRequestException, - statusCode: 400, - builder: BadRequestException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'InternalServerErrorException', - ), - _i1.ErrorKind.server, - InternalServerErrorException, - statusCode: 500, - builder: InternalServerErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'MethodNotAllowedException', - ), - _i1.ErrorKind.client, - MethodNotAllowedException, - statusCode: 405, - builder: MethodNotAllowedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'NotFoundException', - ), - _i1.ErrorKind.client, - NotFoundException, - statusCode: 404, - builder: NotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'PayloadTooLargeException', - ), - _i1.ErrorKind.client, - PayloadTooLargeException, - statusCode: 413, - builder: PayloadTooLargeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'BadRequestException', + ), + _i1.ErrorKind.client, + BadRequestException, + statusCode: 400, + builder: BadRequestException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'InternalServerErrorException', + ), + _i1.ErrorKind.server, + InternalServerErrorException, + statusCode: 500, + builder: InternalServerErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'MethodNotAllowedException', + ), + _i1.ErrorKind.client, + MethodNotAllowedException, + statusCode: 405, + builder: MethodNotAllowedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'NotFoundException', + ), + _i1.ErrorKind.client, + NotFoundException, + statusCode: 404, + builder: NotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'PayloadTooLargeException', + ), + _i1.ErrorKind.client, + PayloadTooLargeException, + statusCode: 413, + builder: PayloadTooLargeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetInAppMessages'; @override @@ -190,11 +195,7 @@ class GetInAppMessagesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/put_events_operation.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/put_events_operation.dart index fb00119822..2694633fbc 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/put_events_operation.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/put_events_operation.dart @@ -24,8 +24,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with. -class PutEventsOperation extends _i1.HttpOperation { +class PutEventsOperation + extends + _i1.HttpOperation< + EventsRequest, + PutEventsRequest, + EventsResponse, + PutEventsResponse + > { /// Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with. PutEventsOperation({ required String region, @@ -34,20 +40,27 @@ class PutEventsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + EventsRequest, + PutEventsRequest, + EventsResponse, + PutEventsResponse + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), _i3.WithSigV4( @@ -62,7 +75,7 @@ class PutEventsOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,94 +95,89 @@ class PutEventsOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/v1/apps/{ApplicationId}/events'; - }); + b.method = 'POST'; + b.path = r'/v1/apps/{ApplicationId}/events'; + }); @override int successCode([PutEventsResponse? output]) => 202; @override PutEventsResponse buildOutput( EventsResponse payload, _i4.AWSBaseHttpResponse response, - ) => - PutEventsResponse.fromResponse( - payload, - response, - ); + ) => PutEventsResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'BadRequestException', - ), - _i1.ErrorKind.client, - BadRequestException, - statusCode: 400, - builder: BadRequestException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'InternalServerErrorException', - ), - _i1.ErrorKind.server, - InternalServerErrorException, - statusCode: 500, - builder: InternalServerErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'MethodNotAllowedException', - ), - _i1.ErrorKind.client, - MethodNotAllowedException, - statusCode: 405, - builder: MethodNotAllowedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'NotFoundException', - ), - _i1.ErrorKind.client, - NotFoundException, - statusCode: 404, - builder: NotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'PayloadTooLargeException', - ), - _i1.ErrorKind.client, - PayloadTooLargeException, - statusCode: 413, - builder: PayloadTooLargeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'BadRequestException', + ), + _i1.ErrorKind.client, + BadRequestException, + statusCode: 400, + builder: BadRequestException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'InternalServerErrorException', + ), + _i1.ErrorKind.server, + InternalServerErrorException, + statusCode: 500, + builder: InternalServerErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'MethodNotAllowedException', + ), + _i1.ErrorKind.client, + MethodNotAllowedException, + statusCode: 405, + builder: MethodNotAllowedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'NotFoundException', + ), + _i1.ErrorKind.client, + NotFoundException, + statusCode: 404, + builder: NotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'PayloadTooLargeException', + ), + _i1.ErrorKind.client, + PayloadTooLargeException, + statusCode: 413, + builder: PayloadTooLargeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'PutEvents'; @override @@ -185,11 +193,7 @@ class PutEventsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoint_operation.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoint_operation.dart index 8765dacd6d..e05c3f6fb1 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoint_operation.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoint_operation.dart @@ -24,8 +24,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Creates a new endpoint for an application or updates the settings and attributes of an existing endpoint for an application. You can also use this operation to define custom attributes for an endpoint. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values. -class UpdateEndpointOperation extends _i1.HttpOperation { +class UpdateEndpointOperation + extends + _i1.HttpOperation< + EndpointRequest, + UpdateEndpointRequest, + MessageBody, + UpdateEndpointResponse + > { /// Creates a new endpoint for an application or updates the settings and attributes of an existing endpoint for an application. You can also use this operation to define custom attributes for an endpoint. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values. UpdateEndpointOperation({ required String region, @@ -34,20 +40,27 @@ class UpdateEndpointOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + EndpointRequest, + UpdateEndpointRequest, + MessageBody, + UpdateEndpointResponse + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), _i3.WithSigV4( @@ -62,7 +75,7 @@ class UpdateEndpointOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -92,85 +105,80 @@ class UpdateEndpointOperation extends _i1.HttpOperation - UpdateEndpointResponse.fromResponse( - payload, - response, - ); + ) => UpdateEndpointResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'BadRequestException', - ), - _i1.ErrorKind.client, - BadRequestException, - statusCode: 400, - builder: BadRequestException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'InternalServerErrorException', - ), - _i1.ErrorKind.server, - InternalServerErrorException, - statusCode: 500, - builder: InternalServerErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'MethodNotAllowedException', - ), - _i1.ErrorKind.client, - MethodNotAllowedException, - statusCode: 405, - builder: MethodNotAllowedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'NotFoundException', - ), - _i1.ErrorKind.client, - NotFoundException, - statusCode: 404, - builder: NotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'PayloadTooLargeException', - ), - _i1.ErrorKind.client, - PayloadTooLargeException, - statusCode: 413, - builder: PayloadTooLargeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'BadRequestException', + ), + _i1.ErrorKind.client, + BadRequestException, + statusCode: 400, + builder: BadRequestException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'InternalServerErrorException', + ), + _i1.ErrorKind.server, + InternalServerErrorException, + statusCode: 500, + builder: InternalServerErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'MethodNotAllowedException', + ), + _i1.ErrorKind.client, + MethodNotAllowedException, + statusCode: 405, + builder: MethodNotAllowedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'NotFoundException', + ), + _i1.ErrorKind.client, + NotFoundException, + statusCode: 404, + builder: NotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'PayloadTooLargeException', + ), + _i1.ErrorKind.client, + PayloadTooLargeException, + statusCode: 413, + builder: PayloadTooLargeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UpdateEndpoint'; @override @@ -186,11 +194,7 @@ class UpdateEndpointOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoints_batch_operation.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoints_batch_operation.dart index 59b61b9952..586810a003 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoints_batch_operation.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/operation/update_endpoints_batch_operation.dart @@ -24,11 +24,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Creates a new batch of endpoints for an application or updates the settings and attributes of a batch of existing endpoints for an application. You can also use this operation to define custom attributes for a batch of endpoints. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values. -class UpdateEndpointsBatchOperation extends _i1.HttpOperation< - EndpointBatchRequest, - UpdateEndpointsBatchRequest, - MessageBody, - UpdateEndpointsBatchResponse> { +class UpdateEndpointsBatchOperation + extends + _i1.HttpOperation< + EndpointBatchRequest, + UpdateEndpointsBatchRequest, + MessageBody, + UpdateEndpointsBatchResponse + > { /// Creates a new batch of endpoints for an application or updates the settings and attributes of a batch of existing endpoints for an application. You can also use this operation to define custom attributes for a batch of endpoints. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values. UpdateEndpointsBatchOperation({ required String region, @@ -37,20 +40,27 @@ class UpdateEndpointsBatchOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + EndpointBatchRequest, + UpdateEndpointsBatchRequest, + MessageBody, + UpdateEndpointsBatchResponse + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), _i3.WithSigV4( @@ -65,7 +75,7 @@ class UpdateEndpointsBatchOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -95,85 +105,80 @@ class UpdateEndpointsBatchOperation extends _i1.HttpOperation< UpdateEndpointsBatchResponse buildOutput( MessageBody payload, _i4.AWSBaseHttpResponse response, - ) => - UpdateEndpointsBatchResponse.fromResponse( - payload, - response, - ); + ) => UpdateEndpointsBatchResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'BadRequestException', - ), - _i1.ErrorKind.client, - BadRequestException, - statusCode: 400, - builder: BadRequestException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'InternalServerErrorException', - ), - _i1.ErrorKind.server, - InternalServerErrorException, - statusCode: 500, - builder: InternalServerErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'MethodNotAllowedException', - ), - _i1.ErrorKind.client, - MethodNotAllowedException, - statusCode: 405, - builder: MethodNotAllowedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'NotFoundException', - ), - _i1.ErrorKind.client, - NotFoundException, - statusCode: 404, - builder: NotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'PayloadTooLargeException', - ), - _i1.ErrorKind.client, - PayloadTooLargeException, - statusCode: 413, - builder: PayloadTooLargeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.pinpoint', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'BadRequestException', + ), + _i1.ErrorKind.client, + BadRequestException, + statusCode: 400, + builder: BadRequestException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'InternalServerErrorException', + ), + _i1.ErrorKind.server, + InternalServerErrorException, + statusCode: 500, + builder: InternalServerErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'MethodNotAllowedException', + ), + _i1.ErrorKind.client, + MethodNotAllowedException, + statusCode: 405, + builder: MethodNotAllowedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'NotFoundException', + ), + _i1.ErrorKind.client, + NotFoundException, + statusCode: 404, + builder: NotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'PayloadTooLargeException', + ), + _i1.ErrorKind.client, + PayloadTooLargeException, + statusCode: 413, + builder: PayloadTooLargeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.pinpoint', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UpdateEndpointsBatch'; @override @@ -189,11 +194,7 @@ class UpdateEndpointsBatchOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/pinpoint_client.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/pinpoint_client.dart index 905229f0cb..73432c0452 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/pinpoint_client.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/sdk/src/pinpoint/pinpoint_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas,unnecessary_library_name library amplify_analytics_pinpoint_dart.pinpoint.pinpoint_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,12 +33,12 @@ class PinpointClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -64,10 +64,7 @@ class PinpointClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Retrieves the in-app messages targeted for the provided endpoint ID. @@ -82,10 +79,7 @@ class PinpointClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with. @@ -100,10 +94,7 @@ class PinpointClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Creates a new endpoint for an application or updates the settings and attributes of an existing endpoint for an application. You can also use this operation to define custom attributes for an endpoint. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values. @@ -118,10 +109,7 @@ class PinpointClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Creates a new batch of endpoints for an application or updates the settings and attributes of a batch of existing endpoints for an application. You can also use this operation to define custom attributes for a batch of endpoints. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values. @@ -136,9 +124,6 @@ class PinpointClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/version.dart b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/version.dart index 68cb0d861f..5bc3d1aba7 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/version.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '0.4.8'; +const packageVersion = '0.4.9'; diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/pubspec.yaml b/packages/analytics/amplify_analytics_pinpoint_dart/pubspec.yaml index 8412a1056e..e9e525724b 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/pubspec.yaml +++ b/packages/analytics/amplify_analytics_pinpoint_dart/pubspec.yaml @@ -1,38 +1,38 @@ name: amplify_analytics_pinpoint_dart description: A Dart-only implementation of the Amplify Analytics plugin for Pinpoint. -version: 0.4.8 +version: 0.4.9 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/analytics/amplify_analytics_pinpoint_dart issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - amplify_core: ">=2.6.1 <2.7.0" - amplify_db_common_dart: ">=0.4.9 <0.5.0" - amplify_secure_storage_dart: ">=0.5.4 <0.6.0" - aws_common: ">=0.7.6 <0.8.0" - aws_signature_v4: ">=0.6.4 <0.7.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_db_common_dart: ">=0.4.10 <0.5.0" + amplify_secure_storage_dart: ">=0.5.5 <0.6.0" + aws_common: ">=0.7.7 <0.8.0" + aws_signature_v4: ">=0.6.5 <0.7.0" built_collection: ^5.0.0 built_value: ^8.6.0 collection: ^1.15.0 drift: ^2.25.0 intl: ">=0.18.0 <1.0.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" - smithy: ">=0.7.4 <0.8.0" - smithy_aws: ">=0.7.4 <0.8.0" + smithy: ">=0.7.5 <0.8.0" + smithy_aws: ">=0.7.5 <0.8.0" uuid: ">=3.0.6 <5.0.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 build_test: ^2.1.5 build_verify: ^3.0.0 build_version: ^2.0.0 build_web_compilers: ^4.0.0 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 drift_dev: ^2.25.1 mocktail: ^1.0.0 test: ^1.22.1 diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_client_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_client_test.dart index 9ae243cb55..574cdb4f09 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_client_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_client_test.dart @@ -29,9 +29,7 @@ void main() { store = MockSecureStorage(); analyticsEventStore = InMemoryQueuedItemStore(); - analyticsClient = AnalyticsClient( - endpointStorage: store, - ); + analyticsClient = AnalyticsClient(endpointStorage: store); await analyticsClient.init( pinpointAppId: analyticsPinpointAppId, region: analyticsRegion, @@ -40,9 +38,7 @@ void main() { ); notificationsEventStore = InMemoryQueuedItemStore(); - notificationsClient = AnalyticsClient( - endpointStorage: store, - ); + notificationsClient = AnalyticsClient(endpointStorage: store); await notificationsClient.init( pinpointAppId: notificationsPinpointAppId, region: analyticsRegion, @@ -74,23 +70,23 @@ void main() { final analyticsStore = EndpointStore(analyticsPinpointAppId, store); final analyticsAttributes = - await EndpointGlobalFieldsManager.getStoredAttributes( - analyticsStore, - ); + await EndpointGlobalFieldsManager.getStoredAttributes(analyticsStore); final analyticsMetrics = await EndpointGlobalFieldsManager.getStoredMetrics(analyticsStore); - final notificationsStore = - EndpointStore(notificationsPinpointAppId, store); + final notificationsStore = EndpointStore( + notificationsPinpointAppId, + store, + ); final notificationsAttributes = await EndpointGlobalFieldsManager.getStoredAttributes( - notificationsStore, - ); + notificationsStore, + ); final notificationsMetrics = await EndpointGlobalFieldsManager.getStoredMetrics( - notificationsStore, - ); + notificationsStore, + ); expect(analyticsAttributes[attributeKey], attributeValue); expect(analyticsMetrics[metricKey], metricValue); diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_legacy_native_data_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_legacy_native_data_test.dart index ecf1fbd690..6d31457c2e 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_legacy_native_data_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_legacy_native_data_test.dart @@ -2,13 +2,13 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'dart:async'; import 'package:amplify_analytics_pinpoint_dart/src/impl/analytics_client/endpoint_client/endpoint_info_store_manager.dart'; import 'package:amplify_analytics_pinpoint_dart/src/impl/analytics_client/endpoint_client/endpoint_store_keys.dart'; import 'package:amplify_core/amplify_core.dart'; - import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; @@ -31,8 +31,9 @@ void main() { }); test('First app load, no legacy data, writes proper values', () async { - when(() => legacyDataProvider.getEndpointId(pinpointAppId)) - .thenAnswer((_) async => null); + when( + () => legacyDataProvider.getEndpointId(pinpointAppId), + ).thenAnswer((_) async => null); final endpointIdManager = EndpointInfoStoreManager( store: store, @@ -40,14 +41,9 @@ void main() { ); await endpointIdManager.init(pinpointAppId: pinpointAppId); - expect( - endpointIdManager.endpointId, - isNotNull, - ); + expect(endpointIdManager.endpointId, isNotNull); - final storeVersion = await store.read( - key: EndpointStoreKey.version.name, - ); + final storeVersion = await store.read(key: EndpointStoreKey.version.name); expect(storeVersion, EndpointStoreVersion.v1.name); final migratedEndpointId = await endpointStore.read( @@ -59,22 +55,18 @@ void main() { }); test('First app load, legacy data, writes proper values', () async { - when(() => legacyDataProvider.getEndpointId(pinpointAppId)) - .thenAnswer((_) => Future.value(legacyEndpointId)); + when( + () => legacyDataProvider.getEndpointId(pinpointAppId), + ).thenAnswer((_) => Future.value(legacyEndpointId)); final endpointIdManager = EndpointInfoStoreManager( store: store, legacyNativeDataProvider: legacyDataProvider, ); await endpointIdManager.init(pinpointAppId: pinpointAppId); - expect( - endpointIdManager.endpointId, - legacyEndpointId, - ); + expect(endpointIdManager.endpointId, legacyEndpointId); - final storeVersion = await store.read( - key: EndpointStoreKey.version.name, - ); + final storeVersion = await store.read(key: EndpointStoreKey.version.name); expect(storeVersion, EndpointStoreVersion.v1.name); final migratedEndpointId = await endpointStore.read( @@ -86,8 +78,9 @@ void main() { }); test('Second app load, legacy data is ignored', () async { - when(() => legacyDataProvider.getEndpointId(pinpointAppId)) - .thenAnswer((_) => Future.value(legacyEndpointId)); + when( + () => legacyDataProvider.getEndpointId(pinpointAppId), + ).thenAnswer((_) => Future.value(legacyEndpointId)); final endpointId = uuid(); store.write( @@ -105,10 +98,7 @@ void main() { ); await endpointIdManager.init(pinpointAppId: pinpointAppId); - expect( - endpointIdManager.endpointId, - endpointId, - ); + expect(endpointIdManager.endpointId, endpointId); final migratedEndpointId = await endpointStore.read( key: EndpointStoreKey.endpointId.name, diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_plugin_config_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_plugin_config_test.dart index 2af9db5f22..bd85ccdb88 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_plugin_config_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/analytics_plugin_config_test.dart @@ -77,9 +77,9 @@ void main() { setUpAll(() async { mockPathProvider = MockPathProvider(); - when(mockPathProvider.getApplicationSupportPath).thenAnswer( - (_) async => '/tmp', - ); + when( + mockPathProvider.getApplicationSupportPath, + ).thenAnswer((_) async => '/tmp'); mockAuthProvider = MockIamAuthProvider(); when(mockAuthProvider.retrieve).thenAnswer( @@ -89,25 +89,27 @@ void main() { Amplify.dependencies.addInstance(MockAnalyticsClient()); }); - test('throws ConfigurationError when no analytics config is provided', - () async { - final plugin = AmplifyAnalyticsPinpointDart( - secureStorageFactory: (_) => MockSecureStorage(), - ); - - await expectLater( - plugin.configure( - // ignore: invalid_use_of_internal_member - config: const AmplifyOutputs(version: '1'), - authProviderRepo: AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - mockAuthProvider, - ), - ), - throwsA(isA()), - ); - }); + test( + 'throws ConfigurationError when no analytics config is provided', + () async { + final plugin = AmplifyAnalyticsPinpointDart( + secureStorageFactory: (_) => MockSecureStorage(), + ); + + await expectLater( + plugin.configure( + // ignore: invalid_use_of_internal_member + config: const AmplifyOutputs(version: '1'), + authProviderRepo: + AmplifyAuthProviderRepository()..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + mockAuthProvider, + ), + ), + throwsA(isA()), + ); + }, + ); test('throws ConfigurationError when negative', () async { final plugin = AmplifyAnalyticsPinpointDart( pathProvider: mockPathProvider, @@ -121,11 +123,11 @@ void main() { plugin.configure( // ignore: invalid_use_of_internal_member config: config, - authProviderRepo: AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - mockAuthProvider, - ), + authProviderRepo: + AmplifyAuthProviderRepository()..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + mockAuthProvider, + ), ), throwsA(isA()), ); @@ -142,11 +144,11 @@ void main() { await plugin.configure( config: config, - authProviderRepo: AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - mockAuthProvider, - ), + authProviderRepo: + AmplifyAuthProviderRepository()..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + mockAuthProvider, + ), ); expect(plugin.autoEventSubmitter, isNull); @@ -165,11 +167,11 @@ void main() { await plugin.configure( config: config, - authProviderRepo: AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - mockAuthProvider, - ), + authProviderRepo: + AmplifyAuthProviderRepository()..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + mockAuthProvider, + ), ); expect( diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mock_values.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mock_values.dart index 32ae584de1..bb7ada8bee 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mock_values.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mock_values.dart @@ -15,8 +15,9 @@ const doubleValue = 99.99; const boolValue = false; const intValue = 9999; -final analyticsProperties = CustomProperties() - ..addStringProperty(stringProperty, stringValue) - ..addDoubleProperty(doubleProperty, doubleValue) - ..addBoolProperty(boolProperty, boolValue) - ..addIntProperty(intProperty, intValue); +final analyticsProperties = + CustomProperties() + ..addStringProperty(stringProperty, stringValue) + ..addDoubleProperty(doubleProperty, doubleValue) + ..addBoolProperty(boolProperty, boolValue) + ..addIntProperty(intProperty, intValue); diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mocktail_mocks.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mocktail_mocks.dart index f3f323f798..5b29091228 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mocktail_mocks.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/common/mocktail_mocks.dart @@ -12,9 +12,7 @@ import 'package:smithy/smithy.dart'; SmithyOperation mockSmithyOperation(FutureOr Function() fn) => SmithyOperation( - CancelableOperation.fromFuture( - Future.value(fn()), - ), + CancelableOperation.fromFuture(Future.value(fn())), operationName: '', requestProgress: const Stream.empty(), responseProgress: const Stream.empty(), diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_client_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_client_test.dart index 8d2574ea9d..e28c76f1a7 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_client_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_client_test.dart @@ -34,12 +34,13 @@ void main() { pinpointClient = MockPinpointClient(); final mockStore = MockSecureStorage(); - EndpointStore(pinpointAppId, mockStore).write( - key: EndpointStoreKey.endpointId.name, - value: mockEndpointId, + EndpointStore( + pinpointAppId, + mockStore, + ).write(key: EndpointStoreKey.endpointId.name, value: mockEndpointId); + final mockEndpointInfoStoreManager = EndpointInfoStoreManager( + store: mockStore, ); - final mockEndpointInfoStoreManager = - EndpointInfoStoreManager(store: mockStore); await mockEndpointInfoStoreManager.init(pinpointAppId: pinpointAppId); @@ -58,8 +59,9 @@ void main() { }); test('demographic and device info sent in updateEndpointRequest', () async { - when(() => pinpointClient.updateEndpoint(any())) - .thenReturn( + when( + () => pinpointClient.updateEndpoint(any()), + ).thenReturn( mockSmithyOperation( () => UpdateEndpointResponse( messageBody: MessageBody( @@ -72,8 +74,9 @@ void main() { await endpointClient.updateEndpoint(); - final captured = verify(() => pinpointClient.updateEndpoint(captureAny())) - .captured[0] as UpdateEndpointRequest; + final captured = + verify(() => pinpointClient.updateEndpoint(captureAny())).captured[0] + as UpdateEndpointRequest; expect(captured.applicationId, pinpointAppId); expect(captured.endpointId, mockEndpointId); @@ -108,40 +111,47 @@ void main() { expect(location.longitude, isNull); }); - test('channelType, address, and optOut sent in updateEndpointRequest', - () async { - when(() => pinpointClient.updateEndpoint(any())) - .thenReturn( - mockSmithyOperation( - () => UpdateEndpointResponse( - messageBody: MessageBody( - message: 'message', - requestId: 'requestId', + test( + 'channelType, address, and optOut sent in updateEndpointRequest', + () async { + when( + () => pinpointClient.updateEndpoint(any()), + ).thenReturn( + mockSmithyOperation( + () => UpdateEndpointResponse( + messageBody: MessageBody( + message: 'message', + requestId: 'requestId', + ), ), ), - ), - ); + ); - endpointClient - ..channelType = channelType - ..address = address - ..optOut = optOut; + endpointClient + ..channelType = channelType + ..address = address + ..optOut = optOut; - await endpointClient.updateEndpoint(); + await endpointClient.updateEndpoint(); - final captured = verify(() => pinpointClient.updateEndpoint(captureAny())) - .captured[0] as UpdateEndpointRequest; + final captured = + verify( + () => pinpointClient.updateEndpoint(captureAny()), + ).captured[0] + as UpdateEndpointRequest; - final endpointRequest = captured.endpointRequest; + final endpointRequest = captured.endpointRequest; - expect(endpointRequest.channelType, channelType); - expect(endpointRequest.address, address); - expect(endpointRequest.optOut, optOut); - }); + expect(endpointRequest.channelType, channelType); + expect(endpointRequest.address, address); + expect(endpointRequest.optOut, optOut); + }, + ); test('values from setUser sent in updateEndpointRequest', () async { - when(() => pinpointClient.updateEndpoint(any())) - .thenReturn( + when( + () => pinpointClient.updateEndpoint(any()), + ).thenReturn( mockSmithyOperation( () => UpdateEndpointResponse( messageBody: MessageBody( @@ -152,15 +162,13 @@ void main() { ), ); - await endpointClient.setUser( - userId, - userProfile, - ); + await endpointClient.setUser(userId, userProfile); await endpointClient.updateEndpoint(); - final captured = verify(() => pinpointClient.updateEndpoint(captureAny())) - .captured[0] as UpdateEndpointRequest; + final captured = + verify(() => pinpointClient.updateEndpoint(captureAny())).captured[0] + as UpdateEndpointRequest; final endpointRequest = captured.endpointRequest; @@ -199,10 +207,7 @@ void main() { ..address = address ..optOut = optOut; - await endpointClient.setUser( - userId, - userProfile, - ); + await endpointClient.setUser(userId, userProfile); final endpoint = endpointClient.getPublicEndpoint(); @@ -262,93 +267,92 @@ void main() { }); test( - 'setUser handles null user attributes when provided a AWSPinpointUserProfile', - () async { - endpointClient - ..channelType = channelType - ..address = address - ..optOut = optOut; - - await endpointClient.setUser( - userId, - pinpointUserProfileNullUserAttribute, - ); - - final endpoint = endpointClient.getPublicEndpoint(); - - expect(endpoint.address, address); - expect(endpoint.channelType, channelType); - expect(endpoint.optOut, optOut); - - // Attributes - expect(endpoint.attributes, isNotNull); - final attributes = endpoint.attributes!; - - expect(attributes['name'], [userProfile.name]); - expect(attributes['email'], [userProfile.email]); - expect(attributes['plan'], [userProfile.plan]); - - // Demographic - expect(endpoint.demographic, isNotNull); - final demographic = endpoint.demographic!; - - expect(demographic.appVersion, mockDeviceContextInfo.appVersion); - expect(demographic.locale, mockDeviceContextInfo.locale); - expect(demographic.make, mockDeviceContextInfo.make); - expect(demographic.model, mockDeviceContextInfo.model); - expect(demographic.modelVersion, mockDeviceContextInfo.modelVersion); - expect(demographic.platform, mockDeviceContextInfo.platform!.name); - expect( - demographic.platformVersion, - mockDeviceContextInfo.platformVersion, - ); - - // Location - expect(endpoint.location, isNotNull); - final location = endpoint.location!; - - expect(location.city, userLocation.city); - expect(location.country, userLocation.country); - expect(location.latitude, userLocation.latitude); - expect(location.longitude, userLocation.longitude); - expect(location.postalCode, userLocation.postalCode); - expect(location.region, userLocation.region); - - // User - expect(endpoint.user, isNotNull); - expect(endpoint.user!.userId, userId); - - expect(endpoint.user!.userAttributes, isNull); - }); + 'setUser handles null user attributes when provided a AWSPinpointUserProfile', + () async { + endpointClient + ..channelType = channelType + ..address = address + ..optOut = optOut; + + await endpointClient.setUser( + userId, + pinpointUserProfileNullUserAttribute, + ); + + final endpoint = endpointClient.getPublicEndpoint(); + + expect(endpoint.address, address); + expect(endpoint.channelType, channelType); + expect(endpoint.optOut, optOut); + + // Attributes + expect(endpoint.attributes, isNotNull); + final attributes = endpoint.attributes!; + + expect(attributes['name'], [userProfile.name]); + expect(attributes['email'], [userProfile.email]); + expect(attributes['plan'], [userProfile.plan]); + + // Demographic + expect(endpoint.demographic, isNotNull); + final demographic = endpoint.demographic!; + + expect(demographic.appVersion, mockDeviceContextInfo.appVersion); + expect(demographic.locale, mockDeviceContextInfo.locale); + expect(demographic.make, mockDeviceContextInfo.make); + expect(demographic.model, mockDeviceContextInfo.model); + expect(demographic.modelVersion, mockDeviceContextInfo.modelVersion); + expect(demographic.platform, mockDeviceContextInfo.platform!.name); + expect( + demographic.platformVersion, + mockDeviceContextInfo.platformVersion, + ); + + // Location + expect(endpoint.location, isNotNull); + final location = endpoint.location!; + + expect(location.city, userLocation.city); + expect(location.country, userLocation.country); + expect(location.latitude, userLocation.latitude); + expect(location.longitude, userLocation.longitude); + expect(location.postalCode, userLocation.postalCode); + expect(location.region, userLocation.region); + + // User + expect(endpoint.user, isNotNull); + expect(endpoint.user!.userId, userId); + + expect(endpoint.user!.userAttributes, isNull); + }, + ); test( - 'updateEndpoint throws AnalyticsException from unrecognized exceptions', - () async { - when(() => pinpointClient.updateEndpoint(any())).thenThrow(Exception()); + 'updateEndpoint throws AnalyticsException from unrecognized exceptions', + () async { + when(() => pinpointClient.updateEndpoint(any())).thenThrow(Exception()); - expect( - endpointClient.updateEndpoint(), - throwsA( - isA(), - ), - ); - }); + expect( + endpointClient.updateEndpoint(), + throwsA(isA()), + ); + }, + ); test( - 'updateEndpoint throws NetworkException for AWSHttpException exceptions', - () async { - when(() => pinpointClient.updateEndpoint(any())).thenThrow( - AWSHttpException( - AWSHttpRequest(method: AWSHttpMethod.post, uri: Uri()), - ), - ); - - expect( - endpointClient.updateEndpoint(), - throwsA( - isA(), - ), - ); - }); + 'updateEndpoint throws NetworkException for AWSHttpException exceptions', + () async { + when(() => pinpointClient.updateEndpoint(any())).thenThrow( + AWSHttpException( + AWSHttpRequest(method: AWSHttpMethod.post, uri: Uri()), + ), + ); + + expect( + endpointClient.updateEndpoint(), + throwsA(isA()), + ); + }, + ); }); } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_global_fields_manager_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_global_fields_manager_test.dart index d31105abca..2690522168 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_global_fields_manager_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_global_fields_manager_test.dart @@ -28,8 +28,9 @@ void main() { setUp(() async { mockSecureStorage = MockSecureStorage(); - fieldsManager = - await EndpointGlobalFieldsManager.create(mockSecureStorage); + fieldsManager = await EndpointGlobalFieldsManager.create( + mockSecureStorage, + ); }); test('reads values from storage', () async { @@ -43,8 +44,9 @@ void main() { value: jsonEncode({metricKey1: metricValue1}), ); - fieldsManager = - await EndpointGlobalFieldsManager.create(mockSecureStorage); + fieldsManager = await EndpointGlobalFieldsManager.create( + mockSecureStorage, + ); expect(fieldsManager.globalAttributes[attrKey1], attrValue1); expect(fieldsManager.globalMetrics[metricKey1], metricValue1); @@ -82,8 +84,9 @@ void main() { expect(fieldsManager.globalMetrics[metricKey1], metricValue1); - final storedMetrics = - await EndpointGlobalFieldsManager.getStoredMetrics(mockSecureStorage); + final storedMetrics = await EndpointGlobalFieldsManager.getStoredMetrics( + mockSecureStorage, + ); expect(storedMetrics[metricKey1], metricValue1); }); @@ -96,8 +99,9 @@ void main() { expect(fieldsManager.globalMetrics[metricKey1], metricValue1); - final storedMetrics = - await EndpointGlobalFieldsManager.getStoredMetrics(mockSecureStorage); + final storedMetrics = await EndpointGlobalFieldsManager.getStoredMetrics( + mockSecureStorage, + ); expect(storedMetrics[metricKey1], metricValue1); expect(storedMetrics[metricKey2], metricValue2); }); @@ -131,45 +135,52 @@ void main() { expect(fieldsManager.globalMetrics.containsKey(metricKey1), false); expect(fieldsManager.globalMetrics[metricKey2], metricValue2); - final storedMetrics = - await EndpointGlobalFieldsManager.getStoredMetrics(mockSecureStorage); + final storedMetrics = await EndpointGlobalFieldsManager.getStoredMetrics( + mockSecureStorage, + ); expect(storedMetrics.containsKey(metricKey1), false); expect(storedMetrics[metricKey2], metricValue2); }); - test('attribute key/values longer than "maxLength" are truncated', - () async { - final longAttrKey = 'a' * EndpointGlobalFieldsManager.maxKeyLength * 2; - final longAttrValue = - 'a' * EndpointGlobalFieldsManager.maxAttributeValueLength * 2; + test( + 'attribute key/values longer than "maxLength" are truncated', + () async { + final longAttrKey = 'a' * EndpointGlobalFieldsManager.maxKeyLength * 2; + final longAttrValue = + 'a' * EndpointGlobalFieldsManager.maxAttributeValueLength * 2; - await fieldsManager.addAttribute(longAttrKey, longAttrValue); + await fieldsManager.addAttribute(longAttrKey, longAttrValue); - expect(fieldsManager.globalAttributes.containsKey(longAttrKey), false); + expect(fieldsManager.globalAttributes.containsKey(longAttrKey), false); - final storedAttrKey = - longAttrKey.substring(0, EndpointGlobalFieldsManager.maxKeyLength); + final storedAttrKey = longAttrKey.substring( + 0, + EndpointGlobalFieldsManager.maxKeyLength, + ); - final storedAttrValue = longAttrValue.substring( - 0, - EndpointGlobalFieldsManager.maxAttributeValueLength, - ); + final storedAttrValue = longAttrValue.substring( + 0, + EndpointGlobalFieldsManager.maxAttributeValueLength, + ); - expect(fieldsManager.globalAttributes[storedAttrKey], storedAttrValue); + expect(fieldsManager.globalAttributes[storedAttrKey], storedAttrValue); - // Validate stored attributes are truncated. - final storedAttributes = - await EndpointGlobalFieldsManager.getStoredAttributes( - mockSecureStorage, - ); - expect(storedAttributes[storedAttrKey], storedAttrValue); - }); + // Validate stored attributes are truncated. + final storedAttributes = + await EndpointGlobalFieldsManager.getStoredAttributes( + mockSecureStorage, + ); + expect(storedAttributes[storedAttrKey], storedAttrValue); + }, + ); test('metric key longer than "maxLength" is truncated', () async { final stringBuffer = StringBuffer(); - for (var i = 0; - i < EndpointGlobalFieldsManager.maxAttributeValueLength * 2; - i++) { + for ( + var i = 0; + i < EndpointGlobalFieldsManager.maxAttributeValueLength * 2; + i++ + ) { stringBuffer.write('a'); } @@ -179,44 +190,52 @@ void main() { expect(fieldsManager.globalMetrics.containsKey(longMetricKey), false); - final storedMetricKey = - longMetricKey.substring(0, EndpointGlobalFieldsManager.maxKeyLength); + final storedMetricKey = longMetricKey.substring( + 0, + EndpointGlobalFieldsManager.maxKeyLength, + ); expect(fieldsManager.globalMetrics[storedMetricKey], 12.3); - final storedMetrics = - await EndpointGlobalFieldsManager.getStoredMetrics(mockSecureStorage); + final storedMetrics = await EndpointGlobalFieldsManager.getStoredMetrics( + mockSecureStorage, + ); expect(storedMetrics[storedMetricKey], 12.3); }); - test('storing more than "maxCount" attributes and metrics are ignored', - () async { - for (var i = 0; i < EndpointGlobalFieldsManager.maxAttributes; i++) { - await fieldsManager.addAttribute(i.toString(), i.toString()); - } + test( + 'storing more than "maxCount" attributes and metrics are ignored', + () async { + for (var i = 0; i < EndpointGlobalFieldsManager.maxAttributes; i++) { + await fieldsManager.addAttribute(i.toString(), i.toString()); + } - expect( - fieldsManager.globalAttributes.length, - EndpointGlobalFieldsManager.maxAttributes, - ); + expect( + fieldsManager.globalAttributes.length, + EndpointGlobalFieldsManager.maxAttributes, + ); - // Validate additional saves are ignored - await fieldsManager.addAttribute(attrKey1, attrValue1); + // Validate additional saves are ignored + await fieldsManager.addAttribute(attrKey1, attrValue1); - expect(fieldsManager.globalAttributes.containsKey(attrKey1), false); + expect(fieldsManager.globalAttributes.containsKey(attrKey1), false); - final storedAttrs = await EndpointGlobalFieldsManager.getStoredAttributes( - mockSecureStorage, - ); - expect(storedAttrs.containsKey(attrKey1), false); + final storedAttrs = + await EndpointGlobalFieldsManager.getStoredAttributes( + mockSecureStorage, + ); + expect(storedAttrs.containsKey(attrKey1), false); - await fieldsManager.addMetric(metricKey1, metricValue1); + await fieldsManager.addMetric(metricKey1, metricValue1); - expect(fieldsManager.globalAttributes.containsKey(metricKey1), false); + expect(fieldsManager.globalAttributes.containsKey(metricKey1), false); - final storedMetrics = - await EndpointGlobalFieldsManager.getStoredMetrics(mockSecureStorage); - expect(storedMetrics.containsKey(metricKey1), false); - }); + final storedMetrics = + await EndpointGlobalFieldsManager.getStoredMetrics( + mockSecureStorage, + ); + expect(storedMetrics.containsKey(metricKey1), false); + }, + ); }); } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_info_store_manager_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_info_store_manager_test.dart index 48b7361d6f..59fd4f59d8 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_info_store_manager_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/endpoint_info_store_manager_test.dart @@ -31,14 +31,10 @@ void main() { endpointStoreA = EndpointStore(appIdA, store); endpointStoreB = EndpointStore(appIdB, store); - storeManagerA = EndpointInfoStoreManager( - store: store, - ); + storeManagerA = EndpointInfoStoreManager(store: store); await storeManagerA.init(pinpointAppId: appIdA); - storeManagerB = EndpointInfoStoreManager( - store: store, - ); + storeManagerB = EndpointInfoStoreManager(store: store); await storeManagerB.init(pinpointAppId: appIdB); }); @@ -54,36 +50,46 @@ void main() { expect(endpointIdA != endpointIdB, true); // Verify storage location - final storedEndpointIdA = - await endpointStoreA.read(key: EndpointStoreKey.endpointId.name); + final storedEndpointIdA = await endpointStoreA.read( + key: EndpointStoreKey.endpointId.name, + ); expect(storedEndpointIdA, endpointIdA); - final storedEndpointIdB = - await endpointStoreB.read(key: EndpointStoreKey.endpointId.name); + final storedEndpointIdB = await endpointStoreB.read( + key: EndpointStoreKey.endpointId.name, + ); expect(storedEndpointIdB, endpointIdB); }); - test('stores different endpoint global fields per pinpoint app id', - () async { - final endpointFields = storeManagerA.endpointFields; - - await endpointFields.addAttribute(stringProperty, stringValue); - await endpointFields.addMetric(doubleProperty, doubleValue); - - final attributesA = - await EndpointGlobalFieldsManager.getStoredAttributes(endpointStoreA); - final metricsA = - await EndpointGlobalFieldsManager.getStoredMetrics(endpointStoreA); - - expect(attributesA[stringProperty], stringValue); - expect(metricsA[doubleProperty], doubleValue); - - final attributesB = - await EndpointGlobalFieldsManager.getStoredAttributes(endpointStoreB); - final metricsB = - await EndpointGlobalFieldsManager.getStoredMetrics(endpointStoreB); - expect(attributesB, isEmpty); - expect(metricsB, isEmpty); - }); + test( + 'stores different endpoint global fields per pinpoint app id', + () async { + final endpointFields = storeManagerA.endpointFields; + + await endpointFields.addAttribute(stringProperty, stringValue); + await endpointFields.addMetric(doubleProperty, doubleValue); + + final attributesA = + await EndpointGlobalFieldsManager.getStoredAttributes( + endpointStoreA, + ); + final metricsA = await EndpointGlobalFieldsManager.getStoredMetrics( + endpointStoreA, + ); + + expect(attributesA[stringProperty], stringValue); + expect(metricsA[doubleProperty], doubleValue); + + final attributesB = + await EndpointGlobalFieldsManager.getStoredAttributes( + endpointStoreB, + ); + final metricsB = await EndpointGlobalFieldsManager.getStoredMetrics( + endpointStoreB, + ); + expect(attributesB, isEmpty); + expect(metricsB, isEmpty); + }, + ); }); } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/event_client_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/event_client_test.dart index af55075c87..739b5a2bef 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/event_client_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/event_client_test.dart @@ -55,12 +55,13 @@ void main() { pinpointClient = MockPinpointClient(); final mockStore = MockSecureStorage(); - EndpointStore(pinpointAppId, mockStore).write( - key: EndpointStoreKey.endpointId.name, - value: mockEndpointId, + EndpointStore( + pinpointAppId, + mockStore, + ).write(key: EndpointStoreKey.endpointId.name, value: mockEndpointId); + final mockEndpointInfoStoreManager = EndpointInfoStoreManager( + store: mockStore, ); - final mockEndpointInfoStoreManager = - EndpointInfoStoreManager(store: mockStore); await mockEndpointInfoStoreManager.init(pinpointAppId: pinpointAppId); endpointClient = EndpointClient( @@ -84,9 +85,7 @@ void main() { when(() => pinpointClient.putEvents(any())).thenReturn( mockSmithyOperation( - () => PutEventsResponse( - eventsResponse: EventsResponse(), - ), + () => PutEventsResponse(eventsResponse: EventsResponse()), ), ); }); @@ -131,26 +130,28 @@ void main() { expect(metrics[intProperty], intValue); }); - test('flushEvents flushes all stored events and clears eventStorage', - () async { - const storeCount = 10; + test( + 'flushEvents flushes all stored events and clears eventStorage', + () async { + const storeCount = 10; - for (var i = 0; i < storeCount; i++) { - await eventClient.recordEvent( - eventType: eventType, - session: session, - properties: analyticsProperties, - ); - } + for (var i = 0; i < storeCount; i++) { + await eventClient.recordEvent( + eventType: eventType, + session: session, + properties: analyticsProperties, + ); + } - var storedItems = eventStore.getCount(storeCount * 2); - expect(storedItems.length, storeCount); + var storedItems = eventStore.getCount(storeCount * 2); + expect(storedItems.length, storeCount); - await eventClient.flushEvents(); + await eventClient.flushEvents(); - storedItems = eventStore.getCount(storeCount * 2); - expect(storedItems.length, 0); - }); + storedItems = eventStore.getCount(storeCount * 2); + expect(storedItems.length, 0); + }, + ); test('flushEvents creates a proper PutEventsRequest', () async { await eventClient.recordEvent( @@ -161,8 +162,9 @@ void main() { await eventClient.flushEvents(); - final captured = verify(() => pinpointClient.putEvents(captureAny())) - .captured[0] as PutEventsRequest; + final captured = + verify(() => pinpointClient.putEvents(captureAny())).captured[0] + as PutEventsRequest; expect(captured.applicationId, pinpointAppId); @@ -202,135 +204,129 @@ void main() { expect(metrics[intProperty], intValue); }); - test('properties added by registerGlobalProperties are sent with events', - () async { - eventClient.registerGlobalProperties(analyticsProperties); + test( + 'properties added by registerGlobalProperties are sent with events', + () async { + eventClient.registerGlobalProperties(analyticsProperties); - await eventClient.recordEvent( - eventType: eventType, - session: session, - ); + await eventClient.recordEvent(eventType: eventType, session: session); - await eventClient.flushEvents(); + await eventClient.flushEvents(); - final captured = verify(() => pinpointClient.putEvents(captureAny())) - .captured[0] as PutEventsRequest; + final captured = + verify(() => pinpointClient.putEvents(captureAny())).captured[0] + as PutEventsRequest; - final batchItem = captured.eventsRequest.batchItem; + final batchItem = captured.eventsRequest.batchItem; - expect(batchItem[mockEndpointId], isNotNull); - final eventsBatch = batchItem[mockEndpointId]!; + expect(batchItem[mockEndpointId], isNotNull); + final eventsBatch = batchItem[mockEndpointId]!; - // Event - expect(eventsBatch.events.length, 1); - expect(eventsBatch.events['0'], isNotNull); - final event = eventsBatch.events['0']!; + // Event + expect(eventsBatch.events.length, 1); + expect(eventsBatch.events['0'], isNotNull); + final event = eventsBatch.events['0']!; - // Attributes - expect(event.attributes, isNotNull); - final attributes = event.attributes!; + // Attributes + expect(event.attributes, isNotNull); + final attributes = event.attributes!; - expect(attributes[stringProperty], stringValue); - expect(attributes[boolProperty], boolValue.toString()); + expect(attributes[stringProperty], stringValue); + expect(attributes[boolProperty], boolValue.toString()); - // Metrics - expect(event.metrics, isNotNull); - final metrics = event.metrics!; + // Metrics + expect(event.metrics, isNotNull); + final metrics = event.metrics!; - expect(metrics[doubleProperty], doubleValue); - expect(metrics[intProperty], intValue); - }); + expect(metrics[doubleProperty], doubleValue); + expect(metrics[intProperty], intValue); + }, + ); test( - 'properties removed by unregisterGlobalProperties are not sent with events', - () async { - eventClient.unregisterGlobalProperties([ - stringProperty, - doubleProperty, - boolProperty, - intProperty, - ]); + 'properties removed by unregisterGlobalProperties are not sent with events', + () async { + eventClient.unregisterGlobalProperties([ + stringProperty, + doubleProperty, + boolProperty, + intProperty, + ]); - await eventClient.recordEvent( - eventType: eventType, - session: session, - ); + await eventClient.recordEvent(eventType: eventType, session: session); - await eventClient.flushEvents(); + await eventClient.flushEvents(); - final captured = verify(() => pinpointClient.putEvents(captureAny())) - .captured[0] as PutEventsRequest; + final captured = + verify(() => pinpointClient.putEvents(captureAny())).captured[0] + as PutEventsRequest; - final batchItem = captured.eventsRequest.batchItem; + final batchItem = captured.eventsRequest.batchItem; - expect(batchItem[mockEndpointId], isNotNull); - final eventsBatch = batchItem[mockEndpointId]!; + expect(batchItem[mockEndpointId], isNotNull); + final eventsBatch = batchItem[mockEndpointId]!; - // Event - expect(eventsBatch.events.length, 1); - expect(eventsBatch.events['0'], isNotNull); - final event = eventsBatch.events['0']!; + // Event + expect(eventsBatch.events.length, 1); + expect(eventsBatch.events['0'], isNotNull); + final event = eventsBatch.events['0']!; - expect(event.attributes, isEmpty); - expect(event.metrics, isEmpty); - }); + expect(event.attributes, isEmpty); + expect(event.metrics, isEmpty); + }, + ); test( - 'flushEvents does not delete events that fail with retryable exception', - () async { - await eventClient.recordEvent( - eventType: successEventType, - ); - await eventClient.recordEvent( - eventType: retryableFailEventType, - ); - - when(() => pinpointClient.putEvents(any())).thenReturn( - mockSmithyOperation( - () => PutEventsResponse( - eventsResponse: EventsResponse( - results: { - mockEndpointId: ItemResponse( - endpointItemResponse: EndpointItemResponse( - message: 'message', - statusCode: 200, - ), - eventsItemResponse: { - '0': EventItemResponse( - message: 'Accepted', + 'flushEvents does not delete events that fail with retryable exception', + () async { + await eventClient.recordEvent(eventType: successEventType); + await eventClient.recordEvent(eventType: retryableFailEventType); + + when( + () => pinpointClient.putEvents(any()), + ).thenReturn( + mockSmithyOperation( + () => PutEventsResponse( + eventsResponse: EventsResponse( + results: { + mockEndpointId: ItemResponse( + endpointItemResponse: EndpointItemResponse( + message: 'message', statusCode: 200, ), - // TODO(kylechen): retryable exceptions should only be status code >=500 <600 - '1': EventItemResponse( - message: 'Retryable Exception', - statusCode: 500, - ), - }, - ), - }, + eventsItemResponse: { + '0': EventItemResponse( + message: 'Accepted', + statusCode: 200, + ), + // TODO(kylechen): retryable exceptions should only be status code >=500 <600 + '1': EventItemResponse( + message: 'Retryable Exception', + statusCode: 500, + ), + }, + ), + }, + ), ), ), - ), - ); + ); - await eventClient.flushEvents(); + await eventClient.flushEvents(); - final items = eventStore.getCount(100); - expect(items.length, 1); + final items = eventStore.getCount(100); + expect(items.length, 1); - final storedEvent = StoredEvent(items.elementAt(0), jsonSerializers); - final event = storedEvent.event; + final storedEvent = StoredEvent(items.elementAt(0), jsonSerializers); + final event = storedEvent.event; - expect(event.eventType, retryableFailEventType); - }); + expect(event.eventType, retryableFailEventType); + }, + ); test('flushEvents deletes events with non retryable exception', () async { - await eventClient.recordEvent( - eventType: successEventType, - ); - await eventClient.recordEvent( - eventType: failEventType, - ); + await eventClient.recordEvent(eventType: successEventType); + await eventClient.recordEvent(eventType: failEventType); when(() => pinpointClient.putEvents(any())).thenReturn( mockSmithyOperation( @@ -367,78 +363,72 @@ void main() { }); test( - 'flushEvents does not delete events if pinpointClient throws retryable exception', - () async { - await eventClient.recordEvent( - eventType: failEventType, - ); + 'flushEvents does not delete events if pinpointClient throws retryable exception', + () async { + await eventClient.recordEvent(eventType: failEventType); - final mockOperation = MockSmithyOperation(); + final mockOperation = MockSmithyOperation(); - when( - () => mockOperation.result, - ).thenThrow(const SmithyHttpException(statusCode: 500, body: '')); + when( + () => mockOperation.result, + ).thenThrow(const SmithyHttpException(statusCode: 500, body: '')); - when(() => pinpointClient.putEvents(any())) - .thenReturn(mockOperation); + when( + () => pinpointClient.putEvents(any()), + ).thenReturn(mockOperation); - await eventClient.flushEvents(); + await eventClient.flushEvents(); - final items = eventStore.getCount(100); - expect(items.length, 1); - }); + final items = eventStore.getCount(100); + expect(items.length, 1); + }, + ); test( - 'flushEvents deletes events if pinpointClient throws non retryable exception', - () async { - await eventClient.recordEvent( - eventType: failEventType, - ); + 'flushEvents deletes events if pinpointClient throws non retryable exception', + () async { + await eventClient.recordEvent(eventType: failEventType); - final mockOperation = MockSmithyOperation(); + final mockOperation = MockSmithyOperation(); - when( - () => mockOperation.result, - ).thenThrow(PayloadTooLargeException()); + when(() => mockOperation.result).thenThrow(PayloadTooLargeException()); - when(() => pinpointClient.putEvents(any())) - .thenReturn(mockOperation); + when( + () => pinpointClient.putEvents(any()), + ).thenReturn(mockOperation); - var items = eventStore.getCount(100); - expect(items.length, 1); + var items = eventStore.getCount(100); + expect(items.length, 1); - await eventClient.flushEvents(); + await eventClient.flushEvents(); - items = eventStore.getCount(100); - expect(items.length, 0); - }); + items = eventStore.getCount(100); + expect(items.length, 0); + }, + ); test( - 'flushEvents does not delete events if pinpointClient fails from AWSHttpException', - () async { - await eventClient.recordEvent( - eventType: failEventType, - ); + 'flushEvents does not delete events if pinpointClient fails from AWSHttpException', + () async { + await eventClient.recordEvent(eventType: failEventType); - final mockOperation = MockSmithyOperation(); + final mockOperation = MockSmithyOperation(); - when( - () => mockOperation.result, - ).thenThrow(MockAWSHttpException()); + when(() => mockOperation.result).thenThrow(MockAWSHttpException()); - when(() => pinpointClient.putEvents(any())) - .thenReturn(mockOperation); + when( + () => pinpointClient.putEvents(any()), + ).thenReturn(mockOperation); - await eventClient.flushEvents(); + await eventClient.flushEvents(); - final items = eventStore.getCount(100); - expect(items.length, 1); - }); + final items = eventStore.getCount(100); + expect(items.length, 1); + }, + ); test('flushEvents deletes events that fail 3 times', () async { - await eventClient.recordEvent( - eventType: failEventType, - ); + await eventClient.recordEvent(eventType: failEventType); final mockOperation = MockSmithyOperation(); @@ -446,8 +436,9 @@ void main() { () => mockOperation.result, ).thenThrow(const SmithyHttpException(statusCode: 500, body: '')); - when(() => pinpointClient.putEvents(any())) - .thenReturn(mockOperation); + when( + () => pinpointClient.putEvents(any()), + ).thenReturn(mockOperation); await eventClient.flushEvents(); await eventClient.flushEvents(); @@ -462,46 +453,40 @@ void main() { }); test( - 'flushEvents does not delete events that fail >3 times if they are AWSHttpException', - () async { - await eventClient.recordEvent( - eventType: failEventType, - ); + 'flushEvents does not delete events that fail >3 times if they are AWSHttpException', + () async { + await eventClient.recordEvent(eventType: failEventType); - final mockOperation = MockSmithyOperation(); + final mockOperation = MockSmithyOperation(); - when( - () => mockOperation.result, - ).thenThrow(MockAWSHttpException()); + when(() => mockOperation.result).thenThrow(MockAWSHttpException()); - when(() => pinpointClient.putEvents(any())) - .thenReturn(mockOperation); + when( + () => pinpointClient.putEvents(any()), + ).thenReturn(mockOperation); - await eventClient.flushEvents(); - await eventClient.flushEvents(); - await eventClient.flushEvents(); - await eventClient.flushEvents(); - await eventClient.flushEvents(); + await eventClient.flushEvents(); + await eventClient.flushEvents(); + await eventClient.flushEvents(); + await eventClient.flushEvents(); + await eventClient.flushEvents(); - final items = eventStore.getCount(100); - expect(items.length, 1); - }); + final items = eventStore.getCount(100); + expect(items.length, 1); + }, + ); - test('flushEvents throws PinpointException from unrecognized exceptions', - () async { - await eventClient.recordEvent( - eventType: failEventType, - ); + test( + 'flushEvents throws PinpointException from unrecognized exceptions', + () async { + await eventClient.recordEvent(eventType: failEventType); - when(() => pinpointClient.putEvents(any())) - .thenThrow(Exception()); + when( + () => pinpointClient.putEvents(any()), + ).thenThrow(Exception()); - expect( - eventClient.flushEvents(), - throwsA( - isA(), - ), - ); - }); + expect(eventClient.flushEvents(), throwsA(isA())); + }, + ); }); } diff --git a/packages/analytics/amplify_analytics_pinpoint_dart/test/queued_item_store_test.dart b/packages/analytics/amplify_analytics_pinpoint_dart/test/queued_item_store_test.dart index 92d3539c2a..a3d4b110de 100644 --- a/packages/analytics/amplify_analytics_pinpoint_dart/test/queued_item_store_test.dart +++ b/packages/analytics/amplify_analytics_pinpoint_dart/test/queued_item_store_test.dart @@ -49,17 +49,18 @@ void main() { }); test( - 'returns all stored items when get request size exceeds stored item count', - () async { - const values = ['0', '1', '2', '3', '4', '5']; - for (final value in values) { - await db.addItem(value); - } - - final readItems = await db.getCount(100); - final readValues = readItems.map((e) => e.value); - expect(readValues, values); - }); + 'returns all stored items when get request size exceeds stored item count', + () async { + const values = ['0', '1', '2', '3', '4', '5']; + for (final value in values) { + await db.addItem(value); + } + + final readItems = await db.getCount(100); + final readValues = readItems.map((e) => e.value); + expect(readValues, values); + }, + ); test('deletes all items in storage', () async { const values = ['0', '1', '2', '3', '4', '5']; diff --git a/packages/api/amplify_api/CHANGELOG.md b/packages/api/amplify_api/CHANGELOG.md index 6385b2f27d..27f3c2062e 100644 --- a/packages/api/amplify_api/CHANGELOG.md +++ b/packages/api/amplify_api/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/api/amplify_api/example/android/.gitignore b/packages/api/amplify_api/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/api/amplify_api/example/android/.gitignore +++ b/packages/api/amplify_api/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/api/amplify_api/example/android/app/build.gradle b/packages/api/amplify_api/example/android/app/build.gradle index 6aa77ce899..f56097ee5e 100644 --- a/packages/api/amplify_api/example/android/app/build.gradle +++ b/packages/api/amplify_api/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -64,6 +66,8 @@ flutter { } dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") + testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test:runner:1.2.0' diff --git a/packages/api/amplify_api/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/api/amplify_api/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/api/amplify_api/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/api/amplify_api/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/api/amplify_api/example/android/settings.gradle b/packages/api/amplify_api/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/api/amplify_api/example/android/settings.gradle +++ b/packages/api/amplify_api/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/api/amplify_api/example/integration_test/graphql/api_key_test.dart b/packages/api/amplify_api/example/integration_test/graphql/api_key_test.dart index b8be9c3e7b..bfb81faf8c 100644 --- a/packages/api/amplify_api/example/integration_test/graphql/api_key_test.dart +++ b/packages/api/amplify_api/example/integration_test/graphql/api_key_test.dart @@ -18,184 +18,170 @@ void main({ }) { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - group( - 'GraphQL API key', - () { + group('GraphQL API key', () { + setUpAll(() async { + await configureAmplify(useGen1: useGen1); + await signOutTestUser(testUser); + }); + + group('queries', () { + testWidgets('should query authorized model', (WidgetTester tester) async { + final req = ModelQueries.list( + Blog.classType, + authorizationMode: APIAuthorizationType.apiKey, + ); + final res = await Amplify.API.query(request: req).response; + final data = res.data; + expect(res, hasNoGraphQLErrors); + expect(data?.items.length, greaterThanOrEqualTo(0)); + }); + + testWidgets('should get error for unauthorized model', ( + WidgetTester tester, + ) async { + final req = ModelQueries.list( + Post.classType, + authorizationMode: APIAuthorizationType.apiKey, + ); + final res = await Amplify.API.query(request: req).response; + expect(res.hasErrors, true); + expect(res.data, isNull); + }); + }); + + group('subscriptions', () { + late StreamController hubEventsController; + late Stream hubEvents; + late StreamSubscription hubEventsSubscription; setUpAll(() async { - await configureAmplify(useGen1: useGen1); - await signOutTestUser(testUser); + if (!useExistingTestUser) { + testUser = await signUpTestUser(testUser); + } + await signInTestUser(testUser); + + hubEventsController = StreamController.broadcast(); + hubEvents = hubEventsController.stream; + hubEventsSubscription = Amplify.Hub.listen( + HubChannel.Api, + hubEventsController.add, + ); }); - group('queries', () { - testWidgets('should query authorized model', - (WidgetTester tester) async { - final req = ModelQueries.list( + tearDownAll(() async { + await deleteTestModels(); + if (!useExistingTestUser) { + await deleteTestUser(testUser); + } + + await hubEventsSubscription.cancel(); + await hubEventsController.close(); + Amplify.Hub.close(); + }); + + testWidgets( + 'should emit event when onCreate subscription made with model helper', + (WidgetTester tester) async { + expect( + hubEvents, + emitsInOrder([ + disconnectedHubEvent, + connectingHubEvent, + connectedHubEvent, + pendingDisconnectedHubEvent, + disconnectedHubEvent, + ]), + ); + final name = 'Integration Test Blog - subscription create ${uuid()}'; + final subscriptionRequest = ModelSubscriptions.onCreate( Blog.classType, authorizationMode: APIAuthorizationType.apiKey, ); - final res = await Amplify.API.query(request: req).response; - final data = res.data; - expect(res, hasNoGraphQLErrors); - expect(data?.items.length, greaterThanOrEqualTo(0)); - }); - - testWidgets('should get error for unauthorized model', ( - WidgetTester tester, - ) async { - final req = ModelQueries.list( - Post.classType, - authorizationMode: APIAuthorizationType.apiKey, + + final eventResponse = await establishSubscriptionAndMutate( + subscriptionRequest, + () => addBlog(name), + eventFilter: (response) => response.data?.name == name, ); - final res = await Amplify.API.query(request: req).response; - expect(res.hasErrors, true); - expect(res.data, isNull); - }); - }); + final blogFromEvent = eventResponse.data; - group( - 'subscriptions', - () { - late StreamController hubEventsController; - late Stream hubEvents; - late StreamSubscription hubEventsSubscription; - setUpAll(() async { - if (!useExistingTestUser) { - testUser = await signUpTestUser(testUser); - } - await signInTestUser(testUser); - - hubEventsController = StreamController.broadcast(); - hubEvents = hubEventsController.stream; - hubEventsSubscription = - Amplify.Hub.listen(HubChannel.Api, hubEventsController.add); - }); - - tearDownAll(() async { - await deleteTestModels(); - if (!useExistingTestUser) { - await deleteTestUser(testUser); - } - - await hubEventsSubscription.cancel(); - await hubEventsController.close(); - Amplify.Hub.close(); - }); - - testWidgets( - 'should emit event when onCreate subscription made with model helper', - (WidgetTester tester) async { - expect( - hubEvents, - emitsInOrder( - [ - disconnectedHubEvent, - connectingHubEvent, - connectedHubEvent, - pendingDisconnectedHubEvent, - disconnectedHubEvent, - ], - ), - ); - final name = - 'Integration Test Blog - subscription create ${uuid()}'; - final subscriptionRequest = ModelSubscriptions.onCreate( - Blog.classType, - authorizationMode: APIAuthorizationType.apiKey, - ); - - final eventResponse = await establishSubscriptionAndMutate( - subscriptionRequest, - () => addBlog(name), - eventFilter: (response) => response.data?.name == name, - ); - final blogFromEvent = eventResponse.data; - - expect(blogFromEvent?.name, equals(name)); - }); - - testWidgets( - 'subscribe() should handle multiple streams synchronously', - (WidgetTester tester) async { - final readyCompleter = Completer(); - final readyCompleter2 = Completer(); - final dataCompleter = Completer(); - final dataCompleter2 = Completer(); - - final name = - 'Integration Test Blog - subscription sync test ${uuid()}'; - - final subscriptionRequest1 = ModelSubscriptions.onCreate( - Blog.classType, - authorizationMode: APIAuthorizationType.apiKey, - ); - - final stream1 = Amplify.API.subscribe( - subscriptionRequest1, - onEstablished: expectAsync0(readyCompleter.complete), - ); - stream1.listen( - ((event) { - if (event.data?.name == name) { - dataCompleter.complete(event.data); - } - }), - onError: (Object e) => fail('Error in subscription stream: $e'), - ); - - final subscriptionRequest2 = ModelSubscriptions.onDelete( - Blog.classType, - authorizationMode: APIAuthorizationType.apiKey, - ); - - final stream2 = Amplify.API.subscribe( - subscriptionRequest2, - onEstablished: expectAsync0(readyCompleter2.complete), - ); - stream2.listen( - ((event) { - if (event.data?.name == name) { - dataCompleter2.complete(event.data); - } - }), - onError: (Object e) => fail('Error in subscription stream: $e'), - ); - - await readyCompleter.future; - await readyCompleter2.future; - - final blog = await addBlog(name); - - await expectLater(dataCompleter.future, completes); - - await deleteBlog(blog); - - await expectLater(dataCompleter2.future, completes); - }); - - testWidgets('should parse errors within a web socket data message', - (WidgetTester tester) async { - final name = - 'Integration Test Blog - subscription create ${uuid()}'; - const error = - "Cannot return null for non-nullable type: 'AWSDateTime' within " - "parent 'Blog' (/onCreateBlog/createdAt)"; - final subscriptionRequest = ModelSubscriptions.onCreate( - Blog.classType, - authorizationMode: APIAuthorizationType.apiKey, - ); - - final eventResponse = await establishSubscriptionAndMutate( - subscriptionRequest, - () => runPartialMutation(name), - eventFilter: (response) => response.errors.isNotEmpty, - canFail: true, - ); - final dataErrors = eventResponse.errors; - - expect(dataErrors.first.message, equals(error)); - }); + expect(blogFromEvent?.name, equals(name)); }, ); - }, - ); + + testWidgets('subscribe() should handle multiple streams synchronously', ( + WidgetTester tester, + ) async { + final readyCompleter = Completer(); + final readyCompleter2 = Completer(); + final dataCompleter = Completer(); + final dataCompleter2 = Completer(); + + final name = 'Integration Test Blog - subscription sync test ${uuid()}'; + + final subscriptionRequest1 = ModelSubscriptions.onCreate( + Blog.classType, + authorizationMode: APIAuthorizationType.apiKey, + ); + + final stream1 = Amplify.API.subscribe( + subscriptionRequest1, + onEstablished: expectAsync0(readyCompleter.complete), + ); + stream1.listen(((event) { + if (event.data?.name == name) { + dataCompleter.complete(event.data); + } + }), onError: (Object e) => fail('Error in subscription stream: $e')); + + final subscriptionRequest2 = ModelSubscriptions.onDelete( + Blog.classType, + authorizationMode: APIAuthorizationType.apiKey, + ); + + final stream2 = Amplify.API.subscribe( + subscriptionRequest2, + onEstablished: expectAsync0(readyCompleter2.complete), + ); + stream2.listen(((event) { + if (event.data?.name == name) { + dataCompleter2.complete(event.data); + } + }), onError: (Object e) => fail('Error in subscription stream: $e')); + + await readyCompleter.future; + await readyCompleter2.future; + + final blog = await addBlog(name); + + await expectLater(dataCompleter.future, completes); + + await deleteBlog(blog); + + await expectLater(dataCompleter2.future, completes); + }); + + testWidgets('should parse errors within a web socket data message', ( + WidgetTester tester, + ) async { + final name = 'Integration Test Blog - subscription create ${uuid()}'; + const error = + "Cannot return null for non-nullable type: 'AWSDateTime' within " + "parent 'Blog' (/onCreateBlog/createdAt)"; + final subscriptionRequest = ModelSubscriptions.onCreate( + Blog.classType, + authorizationMode: APIAuthorizationType.apiKey, + ); + + final eventResponse = await establishSubscriptionAndMutate( + subscriptionRequest, + () => runPartialMutation(name), + eventFilter: (response) => response.errors.isNotEmpty, + canFail: true, + ); + final dataErrors = eventResponse.errors; + + expect(dataErrors.first.message, equals(error)); + }); + }); + }); } diff --git a/packages/api/amplify_api/example/integration_test/graphql/iam_test.dart b/packages/api/amplify_api/example/integration_test/graphql/iam_test.dart index 4251046d25..70084cd023 100644 --- a/packages/api/amplify_api/example/integration_test/graphql/iam_test.dart +++ b/packages/api/amplify_api/example/integration_test/graphql/iam_test.dart @@ -70,8 +70,9 @@ void main({ expect(data[listBlogs][items], hasLength(greaterThanOrEqualTo(0))); }); - testWidgets('should fetch when document string contains tabs', - (WidgetTester tester) async { + testWidgets('should fetch when document string contains tabs', ( + WidgetTester tester, + ) async { const listBlogs = 'listBlogs'; const items = 'items'; // tab before id and name @@ -84,8 +85,9 @@ void main({ } }'''; - final operation = Amplify.API - .query(request: GraphQLRequest(document: graphQLDocument)); + final operation = Amplify.API.query( + request: GraphQLRequest(document: graphQLDocument), + ); final res = await operation.response; final data = jsonDecode(res.data!) as Map; expect(res, hasNoGraphQLErrors); @@ -94,8 +96,9 @@ void main({ }); // Queries - testWidgets('should GET a blog with Model helper', - (WidgetTester tester) async { + testWidgets('should GET a blog with Model helper', ( + WidgetTester tester, + ) async { const name = 'Integration Test Blog to fetch'; final blog = await addBlog(name); final req = ModelQueries.get(Blog.classType, blog.modelIdentifier); @@ -105,8 +108,9 @@ void main({ expect(data, equals(blog)); }); - testWidgets('should LIST blogs with Model helper', - (WidgetTester tester) async { + testWidgets('should LIST blogs with Model helper', ( + WidgetTester tester, + ) async { await addBlog('Integration Test Blog 1'); final req = ModelQueries.list(Blog.classType); final operation = Amplify.API.query(request: req); @@ -117,27 +121,33 @@ void main({ }); testWidgets( - 'get requestForNextResult should produce next page of results from first response', - (WidgetTester tester) async { - const limit = 1; - final firstReq = ModelQueries.list(Blog.classType, limit: limit); - final firstRes = await Amplify.API.query(request: firstReq).response; - final firstData = firstRes.data; - expect(firstData?.items.length, limit); - expect(firstData?.hasNextResult, true); - final secondReq = firstData?.requestForNextResult; - final secondRes = await Amplify.API.query(request: secondReq!).response; - final secondData = secondRes.data; - expect(secondData?.items.length, limit); - final firstId = firstData?.items[0]?.id; - final secondId = secondData?.items[0]?.id; - expect(firstId?.isNotEmpty, isTrue); - expect(secondId?.isNotEmpty, isTrue); - expect(firstId, isNot(secondId)); - }); + 'get requestForNextResult should produce next page of results from first response', + (WidgetTester tester) async { + const limit = 1; + final firstReq = ModelQueries.list( + Blog.classType, + limit: limit, + ); + final firstRes = await Amplify.API.query(request: firstReq).response; + final firstData = firstRes.data; + expect(firstData?.items.length, limit); + expect(firstData?.hasNextResult, true); + final secondReq = firstData?.requestForNextResult; + final secondRes = + await Amplify.API.query(request: secondReq!).response; + final secondData = secondRes.data; + expect(secondData?.items.length, limit); + final firstId = firstData?.items[0]?.id; + final secondId = secondData?.items[0]?.id; + expect(firstId?.isNotEmpty, isTrue); + expect(secondId?.isNotEmpty, isTrue); + expect(firstId, isNot(secondId)); + }, + ); - testWidgets('should LIST blogs with Model helper with query predicate', - (WidgetTester tester) async { + testWidgets('should LIST blogs with Model helper with query predicate', ( + WidgetTester tester, + ) async { final blogName = 'Integration Test Blog ${uuid()}'; final blog = await addBlog(blogName); @@ -156,36 +166,32 @@ void main({ }); testWidgets( - 'should LIST posts with Model and include parents in response', - (WidgetTester tester) async { - final title = 'Lorem Ipsum Test Post: ${uuid()}'; - const rating = 0; - final createdPost = await addPostAndBlog( - title, - rating, - ); + 'should LIST posts with Model and include parents in response', + (WidgetTester tester) async { + final title = 'Lorem Ipsum Test Post: ${uuid()}'; + const rating = 0; + final createdPost = await addPostAndBlog(title, rating); - final req = ModelQueries.list( - Post.classType, - where: Post.TITLE.eq(title), - limit: _limit, - ); - final res = await Amplify.API.query(request: req).response; - final postFromResponse = res.data?.items[0]; + final req = ModelQueries.list( + Post.classType, + where: Post.TITLE.eq(title), + limit: _limit, + ); + final res = await Amplify.API.query(request: req).response; + final postFromResponse = res.data?.items[0]; - expect(res, hasNoGraphQLErrors); - expect(postFromResponse?.blog?.id, isNotNull); - expect(postFromResponse?.blog?.id, createdPost.blog?.id); - }); + expect(res, hasNoGraphQLErrors); + expect(postFromResponse?.blog?.id, isNotNull); + expect(postFromResponse?.blog?.id, createdPost.blog?.id); + }, + ); - testWidgets('should LIST posts by parent ID', - (WidgetTester tester) async { + testWidgets('should LIST posts by parent ID', ( + WidgetTester tester, + ) async { final title = 'Lorem Ipsum Test Post: ${uuid()}'; const rating = 0; - final createdPost = await addPostAndBlog( - title, - rating, - ); + final createdPost = await addPostAndBlog(title, rating); final blogId = createdPost.blog?.id; final req = ModelQueries.list( @@ -202,15 +208,13 @@ void main({ expect(postFromResponse?.title, title); }); - testWidgets('should return model if attribute exists', - (WidgetTester tester) async { + testWidgets('should return model if attribute exists', ( + WidgetTester tester, + ) async { // Use same name to scope the query to the created model. final name = 'Lorem Ipsum Test Sample: ${uuid()}'; final number = Random().nextInt(_max); - await addSamplePartial( - name, - number: number, - ); + await addSamplePartial(name, number: number); await addSamplePartial(name); final existsRequest = ModelQueries.list( @@ -219,11 +223,8 @@ void main({ limit: _limit, ); - final existsResponse = await Amplify.API - .query( - request: existsRequest, - ) - .response; + final existsResponse = + await Amplify.API.query(request: existsRequest).response; final existsData = existsResponse.data; expect(existsData?.items.length, 1); @@ -236,11 +237,8 @@ void main({ .and(Sample.NAME.eq(name)), limit: _limit, ); - final doesNotExistResponse = await Amplify.API - .query( - request: doesNotExistRequest, - ) - .response; + final doesNotExistResponse = + await Amplify.API.query(request: doesNotExistRequest).response; final doesNotExistData = doesNotExistResponse.data; expect(doesNotExistData?.items.length, 1); @@ -250,10 +248,7 @@ void main({ testWidgets('should copyWith request', (WidgetTester tester) async { final title = 'Lorem Ipsum Test Post: ${uuid()}'; const rating = 0; - final createdPost = await addPostAndBlog( - title, - rating, - ); + final createdPost = await addPostAndBlog(title, rating); final blogId = createdPost.blog?.id; // Original request with mock id @@ -281,8 +276,9 @@ void main({ expect(postFromResponse?.title, title); }); - testWidgets('should decode a custom list request', - (WidgetTester tester) async { + testWidgets('should decode a custom list request', ( + WidgetTester tester, + ) async { final name = 'Lorem Ipsum Test Blog: ${uuid()}'; await addBlog(name); @@ -381,15 +377,17 @@ void main({ ), authorizationMode: APIAuthorizationType.iam, ); - final explicitChildCreateRes = await Amplify.API - .mutate(request: createExplicitChildReq) - .response; + final explicitChildCreateRes = + await Amplify.API + .mutate(request: createExplicitChildReq) + .response; expect(explicitChildCreateRes, hasNoGraphQLErrors); final createdExplicitChild = explicitChildCreateRes.data!; cpkExplicitChildCache.add(createdExplicitChild); - final implicitChildCreateRes = await Amplify.API - .mutate(request: createImplicitChildReq) - .response; + final implicitChildCreateRes = + await Amplify.API + .mutate(request: createImplicitChildReq) + .response; expect(implicitChildCreateRes, hasNoGraphQLErrors); final createdImplicitChild = implicitChildCreateRes.data!; cpkImplicitChildCache.add(createdImplicitChild); @@ -397,10 +395,10 @@ void main({ // Fetch the created children and check responses. final fetchExplicitChildReq = ModelQueries.get( - CpkOneToOneBidirectionalChildExplicitCD.classType, - createdExplicitChild.modelIdentifier, - authorizationMode: APIAuthorizationType.iam, - ); + CpkOneToOneBidirectionalChildExplicitCD.classType, + createdExplicitChild.modelIdentifier, + authorizationMode: APIAuthorizationType.iam, + ); final fetchExplicitChildRes = await Amplify.API.query(request: fetchExplicitChildReq).response; final fetchedExplicitChild = fetchExplicitChildRes.data; @@ -410,16 +408,13 @@ void main({ final explicitChildJson = fetchedExplicitChild?.toJson(); final explicitParentJson = explicitChildJson?['belongsToParent'] as Map; - expect( - explicitParentJson['customId'], - equals(cpkParent.customId), - ); + expect(explicitParentJson['customId'], equals(cpkParent.customId)); final fetchImplicitChildReq = ModelQueries.get( - CpkOneToOneBidirectionalChildImplicitCD.classType, - createdImplicitChild.modelIdentifier, - authorizationMode: APIAuthorizationType.iam, - ); + CpkOneToOneBidirectionalChildImplicitCD.classType, + createdImplicitChild.modelIdentifier, + authorizationMode: APIAuthorizationType.iam, + ); final fetchImplicitChildRes = await Amplify.API.query(request: fetchImplicitChildReq).response; final fetchedImplicitChild = fetchImplicitChildRes.data; @@ -427,10 +422,7 @@ void main({ final implicitChildJson = fetchedImplicitChild?.toJson(); final implicitParentJson = implicitChildJson?['belongsToParent'] as Map; - expect( - implicitParentJson['customId'], - equals(cpkParent.customId), - ); + expect(implicitParentJson['customId'], equals(cpkParent.customId)); }, ); }); @@ -440,8 +432,9 @@ void main({ await signOutTestUser(testUser); }); - testWidgets('should fetch model that allows guest access', - (WidgetTester tester) async { + testWidgets('should fetch model that allows guest access', ( + WidgetTester tester, + ) async { final req = ModelQueries.list( Blog.classType, authorizationMode: APIAuthorizationType.iam, @@ -452,8 +445,9 @@ void main({ expect(data?.items.length, greaterThanOrEqualTo(0)); }); - testWidgets('should get error model that does not allow guest access', - (WidgetTester tester) async { + testWidgets('should get error model that does not allow guest access', ( + WidgetTester tester, + ) async { final req = ModelQueries.list( Comment.classType, authorizationMode: APIAuthorizationType.iam, @@ -468,15 +462,14 @@ void main({ }); }); - group( - 'subscriptions', - () { - testWidgets( - 'should emit event when onCreate subscription made with model helper', - (WidgetTester tester) async { + group('subscriptions', () { + testWidgets( + 'should emit event when onCreate subscription made with model helper', + (WidgetTester tester) async { final name = 'Integration Test Blog - subscription create ${uuid()}'; - final subscriptionRequest = - ModelSubscriptions.onCreate(Blog.classType); + final subscriptionRequest = ModelSubscriptions.onCreate( + Blog.classType, + ); final eventResponse = await establishSubscriptionAndMutate( subscriptionRequest, @@ -486,18 +479,20 @@ void main({ final blogFromEvent = eventResponse.data; expect(blogFromEvent?.name, equals(name)); - }); + }, + ); - testWidgets( - 'should emit event when onUpdate subscription made with model helper', - (WidgetTester tester) async { + testWidgets( + 'should emit event when onUpdate subscription made with model helper', + (WidgetTester tester) async { const originalName = 'Integration Test Blog - subscription update'; final updatedName = 'Integration Test Blog - subscription update, name now ${uuid()}'; var blogToUpdate = await addBlog(originalName); - final subscriptionRequest = - ModelSubscriptions.onUpdate(Blog.classType); + final subscriptionRequest = ModelSubscriptions.onUpdate( + Blog.classType, + ); final eventResponse = await establishSubscriptionAndMutate( subscriptionRequest, () async { @@ -513,16 +508,18 @@ void main({ final blogFromEvent = eventResponse.data; expect(blogFromEvent?.name, equals(updatedName)); - }); + }, + ); - testWidgets( - 'should emit event when onDelete subscription made with model helper', - (WidgetTester tester) async { + testWidgets( + 'should emit event when onDelete subscription made with model helper', + (WidgetTester tester) async { const name = 'Integration Test Blog - subscription delete'; final blogToDelete = await addBlog(name); - final subscriptionRequest = - ModelSubscriptions.onDelete(Blog.classType); + final subscriptionRequest = ModelSubscriptions.onDelete( + Blog.classType, + ); final eventResponse = await establishSubscriptionAndMutate( subscriptionRequest, () => deleteBlog(blogToDelete), @@ -531,29 +528,30 @@ void main({ final blogFromEvent = eventResponse.data; expect(blogFromEvent?.name, equals(name)); - }); + }, + ); - testWidgets('should cancel subscription', (WidgetTester tester) async { - const name = 'Integration Test Blog - subscription to cancel'; - final blogToDelete = await addBlog(name); + testWidgets('should cancel subscription', (WidgetTester tester) async { + const name = 'Integration Test Blog - subscription to cancel'; + final blogToDelete = await addBlog(name); - final subReq = ModelSubscriptions.onDelete(Blog.classType); - final subscription = await getEstablishedSubscriptionOperation( - subReq, - (_) { - fail('Subscription event triggered. Should be canceled.'); - }, - ); - await subscription.cancel(); + final subReq = ModelSubscriptions.onDelete(Blog.classType); + final subscription = await getEstablishedSubscriptionOperation( + subReq, + (_) { + fail('Subscription event triggered. Should be canceled.'); + }, + ); + await subscription.cancel(); - // delete the blog, wait for update - await deleteBlog(blogToDelete); - await Future.delayed(const Duration(seconds: 5)); - }); + // delete the blog, wait for update + await deleteBlog(blogToDelete); + await Future.delayed(const Duration(seconds: 5)); + }); - testWidgets( - 'should emit event when onCreate subscription made with model helper for post (model with parent).', - (WidgetTester tester) async { + testWidgets( + 'should emit event when onCreate subscription made with model helper for post (model with parent).', + (WidgetTester tester) async { final title = 'Integration Test post - subscription create ${uuid()}'; final subscriptionRequest = ModelSubscriptions.onCreate( Post.classType, @@ -562,111 +560,103 @@ void main({ final eventResponse = await establishSubscriptionAndMutate( subscriptionRequest, - () => addPostAndBlog( - title, - 0, - ), + () => addPostAndBlog(title, 0), eventFilter: (response) => response.data?.title == title, ); final postFromEvent = eventResponse.data; expect(postFromEvent?.title, equals(title)); - }); + }, + ); - testWidgets('should support where clause when using Model helpers', - (WidgetTester tester) async { - final blog1 = await addBlog( - 'Integration Test Blog - subscription filter ${uuid()}', - ); - final blog2 = await addBlog( - 'Integration Test Blog - subscription filter ${uuid()}', - ); + testWidgets('should support where clause when using Model helpers', ( + WidgetTester tester, + ) async { + final blog1 = await addBlog( + 'Integration Test Blog - subscription filter ${uuid()}', + ); + final blog2 = await addBlog( + 'Integration Test Blog - subscription filter ${uuid()}', + ); - final postTitle1 = - 'Integration Test Post - subscription filter ${uuid()}'; - final postTitle2 = - 'Integration Test Post - subscription filter ${uuid()}'; + final postTitle1 = + 'Integration Test Post - subscription filter ${uuid()}'; + final postTitle2 = + 'Integration Test Post - subscription filter ${uuid()}'; - final subscriptionRequest = ModelSubscriptions.onCreate( - Post.classType, - where: Post.BLOG.eq(blog2.id), - ); + final subscriptionRequest = ModelSubscriptions.onCreate( + Post.classType, + where: Post.BLOG.eq(blog2.id), + ); - final stream = Amplify.API.subscribe( - subscriptionRequest, - onEstablished: () { - addPost( - postTitle1, - 3, - blog1, - ); - addPost( - postTitle2, - 3, - blog2, - ); - }, - ); + final stream = Amplify.API.subscribe( + subscriptionRequest, + onEstablished: () { + addPost(postTitle1, 3, blog1); + addPost(postTitle2, 3, blog2); + }, + ); - stream.listen( - expectAsync1((event) { - final postFromEvent = event.data; + stream.listen( + expectAsync1((event) { + final postFromEvent = event.data; - expect(postFromEvent?.title, equals(postTitle2)); - }), - onError: (Object e) => fail('Error in subscription stream: $e'), - ); - }); - - testWidgets( - 'stream should emit response with error when subscription fails', - (WidgetTester tester) async { - // Create a subscription we will ignore to keep the connection open after - // canceling a failed subscription. - final firstSubscriptionCompleter = Completer(); - final firstStream = Amplify.API.subscribe( - ModelSubscriptions.onCreate(Blog.classType), - onEstablished: firstSubscriptionCompleter.complete, - ); - await firstSubscriptionCompleter.future; + expect(postFromEvent?.title, equals(postTitle2)); + }), + onError: (Object e) => fail('Error in subscription stream: $e'), + ); + }); - // Then create a 2nd subscription with an error - const document = '''subscription MyInvalidSubscription { + testWidgets('stream should emit response with error when subscription fails', ( + WidgetTester tester, + ) async { + // Create a subscription we will ignore to keep the connection open after + // canceling a failed subscription. + final firstSubscriptionCompleter = Completer(); + final firstStream = Amplify.API.subscribe( + ModelSubscriptions.onCreate(Blog.classType), + onEstablished: firstSubscriptionCompleter.complete, + ); + await firstSubscriptionCompleter.future; + + // Then create a 2nd subscription with an error + const document = '''subscription MyInvalidSubscription { onCreateInvalidBlog { id name createdAt } }'''; - final invalidSubscriptionRequest = - GraphQLRequest(document: document); - final streamWithError = Amplify.API.subscribe( - invalidSubscriptionRequest, - onEstablished: () => fail( - 'onEstablished should not be called during failed subscription', - ), - ); - - expect( - streamWithError, - emits( - predicate>( - (GraphQLResponse response) => - response.hasErrors && response.data == null, - 'Has GraphQL Errors', + final invalidSubscriptionRequest = GraphQLRequest( + document: document, + ); + final streamWithError = Amplify.API.subscribe( + invalidSubscriptionRequest, + onEstablished: + () => fail( + 'onEstablished should not be called during failed subscription', ), + ); + + expect( + streamWithError, + emits( + predicate>( + (GraphQLResponse response) => + response.hasErrors && response.data == null, + 'Has GraphQL Errors', ), - ); - // Cancel subscription that had an error. - await streamWithError.listen(null).cancel(); - // Give AppSync a few seconds to send an error, which happens when - // canceling a failed subscription and throws if not handled correctly. - // Needs to be on a canceled error subscription with an open connection. - await Future.delayed(const Duration(seconds: 3)); - // Cancel the first subscription, which will close the WebSocket connection. - await firstStream.listen(null).cancel(); - }); - }, - ); + ), + ); + // Cancel subscription that had an error. + await streamWithError.listen(null).cancel(); + // Give AppSync a few seconds to send an error, which happens when + // canceling a failed subscription and throws if not handled correctly. + // Needs to be on a canceled error subscription with an open connection. + await Future.delayed(const Duration(seconds: 3)); + // Cancel the first subscription, which will close the WebSocket connection. + await firstStream.listen(null).cancel(); + }); + }); }); } diff --git a/packages/api/amplify_api/example/integration_test/graphql/user_pools_test.dart b/packages/api/amplify_api/example/integration_test/graphql/user_pools_test.dart index 0df3a369a9..9c31773ebc 100644 --- a/packages/api/amplify_api/example/integration_test/graphql/user_pools_test.dart +++ b/packages/api/amplify_api/example/integration_test/graphql/user_pools_test.dart @@ -36,31 +36,30 @@ void main({ group('queries', () { testWidgets( - 'should parse a deeply nested response if modelType and decodePath included in request', - (WidgetTester tester) async { - final originalTitle = 'Lorem Ipsum Test Post: ${uuid()}'; - const rating = 0; - final post = await addPostAndBlog( - originalTitle, - rating, - ); - final blogId = post.blog?.id; - final inputComment = - Comment(content: 'Lorem ipsum test comment', post: post); - final createCommentReq = ModelMutations.create( - inputComment, - authorizationMode: APIAuthorizationType.userPools, - ); + 'should parse a deeply nested response if modelType and decodePath included in request', + (WidgetTester tester) async { + final originalTitle = 'Lorem Ipsum Test Post: ${uuid()}'; + const rating = 0; + final post = await addPostAndBlog(originalTitle, rating); + final blogId = post.blog?.id; + final inputComment = Comment( + content: 'Lorem ipsum test comment', + post: post, + ); + final createCommentReq = ModelMutations.create( + inputComment, + authorizationMode: APIAuthorizationType.userPools, + ); - final createCommentRes = - await Amplify.API.mutate(request: createCommentReq).response; - final createdComment = createCommentRes.data; - if (createdComment == null) { - fail('Unable to create comment. ${createCommentRes.errors}'); - } + final createCommentRes = + await Amplify.API.mutate(request: createCommentReq).response; + final createdComment = createCommentRes.data; + if (createdComment == null) { + fail('Unable to create comment. ${createCommentRes.errors}'); + } - const getBlog = 'getBlog'; - const graphQLDocument = '''query GetBlogPostsComments(\$id: ID!) { + const getBlog = 'getBlog'; + const graphQLDocument = '''query GetBlogPostsComments(\$id: ID!) { $getBlog(id: \$id) { id name @@ -79,32 +78,34 @@ void main({ } } }'''; - final nestedGetBlogReq = GraphQLRequest( - document: graphQLDocument, - modelType: Blog.classType, - variables: {'id': blogId!}, - decodePath: getBlog, - authorizationMode: APIAuthorizationType.userPools, - ); - final nestedResponse = - await Amplify.API.query(request: nestedGetBlogReq).response; - final responseBlog = nestedResponse.data; - final firstCommentFromResponse = responseBlog?.posts?[0].comments?[0]; - expect(nestedResponse, hasNoGraphQLErrors); - expect(firstCommentFromResponse?.id, createdComment.id); - // clean up the comment - final deleteCommentReq = ModelMutations.deleteById( - Comment.classType, - createdComment.modelIdentifier, - authorizationMode: APIAuthorizationType.userPools, - ); - await Amplify.API.mutate(request: deleteCommentReq).response; - }); + final nestedGetBlogReq = GraphQLRequest( + document: graphQLDocument, + modelType: Blog.classType, + variables: {'id': blogId!}, + decodePath: getBlog, + authorizationMode: APIAuthorizationType.userPools, + ); + final nestedResponse = + await Amplify.API.query(request: nestedGetBlogReq).response; + final responseBlog = nestedResponse.data; + final firstCommentFromResponse = responseBlog?.posts?[0].comments?[0]; + expect(nestedResponse, hasNoGraphQLErrors); + expect(firstCommentFromResponse?.id, createdComment.id); + // clean up the comment + final deleteCommentReq = ModelMutations.deleteById( + Comment.classType, + createdComment.modelIdentifier, + authorizationMode: APIAuthorizationType.userPools, + ); + await Amplify.API.mutate(request: deleteCommentReq).response; + }, + ); }); group('mutations', () { - testWidgets('should CREATE a blog with Model helper', - (WidgetTester tester) async { + testWidgets('should CREATE a blog with Model helper', ( + WidgetTester tester, + ) async { const name = 'Integration Test Blog - create'; final blog = Blog(name: name); @@ -121,21 +122,21 @@ void main({ expect(data?.id, equals(blog.id)); }); - testWidgets('should CREATE a post (model with parent) with Model helper', - (WidgetTester tester) async { - final title = 'Lorem Ipsum Test Post: ${uuid()}'; - const rating = 0; - final data = await addPostAndBlog( - title, - rating, - ); - - expect(data.title, equals(title)); - expect(data.rating, equals(rating)); - }); - - testWidgets('should CREATE a lower case model name with Model helper', - (WidgetTester tester) async { + testWidgets( + 'should CREATE a post (model with parent) with Model helper', + (WidgetTester tester) async { + final title = 'Lorem Ipsum Test Post: ${uuid()}'; + const rating = 0; + final data = await addPostAndBlog(title, rating); + + expect(data.title, equals(title)); + expect(data.rating, equals(rating)); + }, + ); + + testWidgets('should CREATE a lower case model name with Model helper', ( + WidgetTester tester, + ) async { final name = 'Integration Test lowercase - ${uuid()}'; final model = lowerCase(name: name); @@ -152,8 +153,9 @@ void main({ expect(data?.id, equals(model.id)); }); - testWidgets('should UPDATE a blog with Model helper', - (WidgetTester tester) async { + testWidgets('should UPDATE a blog with Model helper', ( + WidgetTester tester, + ) async { const oldName = 'Integration Test Blog to update'; const newName = 'Integration Test Blog - updated'; var blog = await addBlog(oldName); @@ -169,72 +171,81 @@ void main({ expect(res.data, equals(blog)); }); - testWidgets('should UPDATE a post (model with parent) with Model helper', - (WidgetTester tester) async { - final originalTitle = 'Lorem Ipsum Test Post: ${uuid()}'; - const rating = 0; - final originalPost = await addPostAndBlog( - originalTitle, - rating, - ); - - final updatedTitle = 'Lorem Ipsum Test Post: (title updated) ${uuid()}'; - final localUpdatedPost = originalPost.copyWith(title: updatedTitle); - final updateReq = ModelMutations.update( - localUpdatedPost, - authorizationMode: APIAuthorizationType.userPools, - ); - final updateRes = await Amplify.API.mutate(request: updateReq).response; - final mutatedPost = updateRes.data; - expect(mutatedPost?.title, equals(updatedTitle)); - }); - testWidgets( - 'should get AppSync error when trying to CREATE a post (model with parent) without a parent on the instance', - (WidgetTester tester) async { - final post = - Post(title: 'Lorem ipsum, fail update', rating: 0, blog: null); - final createPostReq = ModelMutations.create( - post, - authorizationMode: APIAuthorizationType.userPools, - ); - final createPostRes = - await Amplify.API.mutate(request: createPostReq).response; - final createdPost = createPostRes.data; - if (createdPost != null) { - postCache.add(createdPost); - fail('Successfully created a post when request should have failed.'); - } - - expect(createPostRes.data, isNull); - expect(createPostRes.errors, hasLength(1)); - }); + 'should UPDATE a post (model with parent) with Model helper', + (WidgetTester tester) async { + final originalTitle = 'Lorem Ipsum Test Post: ${uuid()}'; + const rating = 0; + final originalPost = await addPostAndBlog(originalTitle, rating); + + final updatedTitle = + 'Lorem Ipsum Test Post: (title updated) ${uuid()}'; + final localUpdatedPost = originalPost.copyWith(title: updatedTitle); + final updateReq = ModelMutations.update( + localUpdatedPost, + authorizationMode: APIAuthorizationType.userPools, + ); + final updateRes = + await Amplify.API.mutate(request: updateReq).response; + final mutatedPost = updateRes.data; + expect(mutatedPost?.title, equals(updatedTitle)); + }, + ); testWidgets( - 'should not UPDATE a blog with Model helper when where condition not met', - (WidgetTester tester) async { - const oldName = 'Integration Test Blog to update'; - const newName = 'Integration Test Blog - updated'; - var blog = await addBlog(oldName); - blog = blog.copyWith(name: newName); - final req = ModelMutations.update( - blog, - where: Blog.NAME.eq('THATS_NOT_MY_NAME'), - authorizationMode: APIAuthorizationType.userPools, - ); + 'should get AppSync error when trying to CREATE a post (model with parent) without a parent on the instance', + (WidgetTester tester) async { + final post = Post( + title: 'Lorem ipsum, fail update', + rating: 0, + blog: null, + ); + final createPostReq = ModelMutations.create( + post, + authorizationMode: APIAuthorizationType.userPools, + ); + final createPostRes = + await Amplify.API.mutate(request: createPostReq).response; + final createdPost = createPostRes.data; + if (createdPost != null) { + postCache.add(createdPost); + fail( + 'Successfully created a post when request should have failed.', + ); + } + + expect(createPostRes.data, isNull); + expect(createPostRes.errors, hasLength(1)); + }, + ); - // attempt update - final updateRes = await Amplify.API.mutate(request: req).response; - expect(updateRes.data, isNull); - // query again to ensure it still unchanged - final getReq = ModelQueries.get(Blog.classType, blog.modelIdentifier); - final res = await Amplify.API.query(request: getReq).response; - expect(res, hasNoGraphQLErrors); - expect(res.data?.name, oldName); - }); + testWidgets( + 'should not UPDATE a blog with Model helper when where condition not met', + (WidgetTester tester) async { + const oldName = 'Integration Test Blog to update'; + const newName = 'Integration Test Blog - updated'; + var blog = await addBlog(oldName); + blog = blog.copyWith(name: newName); + final req = ModelMutations.update( + blog, + where: Blog.NAME.eq('THATS_NOT_MY_NAME'), + authorizationMode: APIAuthorizationType.userPools, + ); - testWidgets('should DELETE a blog with Model helper', - (WidgetTester tester) async { + // attempt update + final updateRes = await Amplify.API.mutate(request: req).response; + expect(updateRes.data, isNull); + // query again to ensure it still unchanged + final getReq = ModelQueries.get(Blog.classType, blog.modelIdentifier); + final res = await Amplify.API.query(request: getReq).response; + expect(res, hasNoGraphQLErrors); + expect(res.data?.name, oldName); + }, + ); + + testWidgets('should DELETE a blog with Model helper', ( + WidgetTester tester, + ) async { const name = 'Integration Test Blog - delete'; final blog = await addBlog(name); final data = await deleteBlog(blog); @@ -245,48 +256,44 @@ void main({ expect(checkRes.data, isNull); }); - testWidgets('should Delete a post (model with parent) with Model helper', - (WidgetTester tester) async { - final title = 'Lorem Ipsum Test Post: ${uuid()}'; - const rating = 0; - final post = await addPostAndBlog( - title, - rating, - ); + testWidgets( + 'should Delete a post (model with parent) with Model helper', + (WidgetTester tester) async { + final title = 'Lorem Ipsum Test Post: ${uuid()}'; + const rating = 0; + final post = await addPostAndBlog(title, rating); - final mutatedPost = await deletePost( - post, - ); - expect(mutatedPost?.title, equals(title)); - }); + final mutatedPost = await deletePost(post); + expect(mutatedPost?.title, equals(title)); + }, + ); testWidgets( - 'should not DELETE a blog with Model helper when where condition not met', - (WidgetTester tester) async { - const name = 'Integration Test Blog - failed delete'; - final blog = await addBlog(name); - final req = ModelMutations.delete( - blog, - where: Blog.NAME.eq('THATS_NOT_MY_NAME'), - authorizationMode: APIAuthorizationType.userPools, - ); - // attempt delete - final deleteRes = await Amplify.API.mutate(request: req).response; - expect(deleteRes.data, isNull); - // query again to ensure it still exists - final getReq = ModelQueries.get(Blog.classType, blog.modelIdentifier); - final res = await Amplify.API.query(request: getReq).response; - expect(res, hasNoGraphQLErrors); - expect(res.data?.name, name); - }); + 'should not DELETE a blog with Model helper when where condition not met', + (WidgetTester tester) async { + const name = 'Integration Test Blog - failed delete'; + final blog = await addBlog(name); + final req = ModelMutations.delete( + blog, + where: Blog.NAME.eq('THATS_NOT_MY_NAME'), + authorizationMode: APIAuthorizationType.userPools, + ); + // attempt delete + final deleteRes = await Amplify.API.mutate(request: req).response; + expect(deleteRes.data, isNull); + // query again to ensure it still exists + final getReq = ModelQueries.get(Blog.classType, blog.modelIdentifier); + final res = await Amplify.API.query(request: getReq).response; + expect(res, hasNoGraphQLErrors); + expect(res.data?.name, name); + }, + ); }); - group( - 'subscriptions', - () { - testWidgets( - 'should emit event when onCreate subscription made with model helper', - (WidgetTester tester) async { + group('subscriptions', () { + testWidgets( + 'should emit event when onCreate subscription made with model helper', + (WidgetTester tester) async { final name = 'Integration Test Blog - subscription create ${uuid()}'; final subscriptionRequest = ModelSubscriptions.onCreate( Blog.classType, @@ -301,28 +308,29 @@ void main({ final blogFromEvent = eventResponse.data; expect(blogFromEvent?.name, equals(name)); - }); - - testWidgets('should subscribe with owner only auth rule', - (WidgetTester tester) async { - final name = - 'Integration Test OwnerOnly - subscription create ${uuid()}'; - final subscriptionRequest = ModelSubscriptions.onCreate( - OwnerOnly.classType, - authorizationMode: APIAuthorizationType.userPools, - ); + }, + ); + + testWidgets('should subscribe with owner only auth rule', ( + WidgetTester tester, + ) async { + final name = + 'Integration Test OwnerOnly - subscription create ${uuid()}'; + final subscriptionRequest = ModelSubscriptions.onCreate( + OwnerOnly.classType, + authorizationMode: APIAuthorizationType.userPools, + ); - final eventResponse = await establishSubscriptionAndMutate( - subscriptionRequest, - () => addOwnerOnly(name), - eventFilter: (response) => response.data?.name == name, - ); + final eventResponse = await establishSubscriptionAndMutate( + subscriptionRequest, + () => addOwnerOnly(name), + eventFilter: (response) => response.data?.name == name, + ); - final modelFromEvent = eventResponse.data; + final modelFromEvent = eventResponse.data; - expect(modelFromEvent?.name, equals(name)); - }); - }, - ); + expect(modelFromEvent?.name, equals(name)); + }); + }); }); } diff --git a/packages/api/amplify_api/example/integration_test/main_test.dart b/packages/api/amplify_api/example/integration_test/main_test.dart index b31286b672..9a835d226b 100644 --- a/packages/api/amplify_api/example/integration_test/main_test.dart +++ b/packages/api/amplify_api/example/integration_test/main_test.dart @@ -56,22 +56,10 @@ void main() async { await Amplify.reset(); }); - graph_api_key_test.main( - useExistingTestUser: true, - testUser: testUser, - ); - graph_iam_test.main( - useExistingTestUser: true, - testUser: testUser, - ); - graph_user_pools_test.main( - useExistingTestUser: true, - testUser: testUser, - ); + graph_api_key_test.main(useExistingTestUser: true, testUser: testUser); + graph_iam_test.main(useExistingTestUser: true, testUser: testUser); + graph_user_pools_test.main(useExistingTestUser: true, testUser: testUser); - rest_test.main( - useExistingTestUser: true, - testUser: testUser, - ); + rest_test.main(useExistingTestUser: true, testUser: testUser); }); } diff --git a/packages/api/amplify_api/example/integration_test/rest_test.dart b/packages/api/amplify_api/example/integration_test/rest_test.dart index d7e72b1e2c..e0c9373c11 100644 --- a/packages/api/amplify_api/example/integration_test/rest_test.dart +++ b/packages/api/amplify_api/example/integration_test/rest_test.dart @@ -10,10 +10,7 @@ import 'util.dart'; const path = 'items'; const expectedResponseText = 'Hello from Lambda!'; -void main({ - bool useExistingTestUser = false, - TestUser? testUser, -}) { +void main({bool useExistingTestUser = false, TestUser? testUser}) { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); HttpPayload generateTestPayload() => HttpPayload.json({'name': 'mow lawn'}); @@ -52,10 +49,10 @@ void main({ 'should send GET request with a custom header', // Lambda looks for this header and only sets the body to expected string. (WidgetTester tester) async { - final res = await Amplify.API.get( - path, - headers: {'test_header': 'test_value'}, - ).response; + final res = + await Amplify.API + .get(path, headers: {'test_header': 'test_value'}) + .response; final body = res.decodeBody(); expect(res.statusCode, 200); expect(body, 'test header set'); @@ -113,9 +110,10 @@ void main({ }); testWidgets('should send DELETE request', (WidgetTester tester) async { - final res = await Amplify.API - .delete(path, body: generateTestPayload()) - .response; + final res = + await Amplify.API + .delete(path, body: generateTestPayload()) + .response; validateRestResponse(res); }); }); diff --git a/packages/api/amplify_api/example/integration_test/util.dart b/packages/api/amplify_api/example/integration_test/util.dart index 88b60fbe76..8941c967da 100644 --- a/packages/api/amplify_api/example/integration_test/util.dart +++ b/packages/api/amplify_api/example/integration_test/util.dart @@ -33,9 +33,7 @@ Future configureAmplify({bool useGen1 = false}) async { ), ), AmplifyAPI( - options: APIPluginOptions( - modelProvider: ModelProvider.instance, - ), + options: APIPluginOptions(modelProvider: ModelProvider.instance), ), ]); if (useGen1) { @@ -69,16 +67,8 @@ Future addBlog(String name) async { } // declare utility which creates post with title and blog as parameter -Future addPost( - String name, - int rating, - Blog blog, -) async { - final post = Post( - title: name, - blog: blog, - rating: rating, - ); +Future addPost(String name, int rating, Blog blog) async { + final post = Post(title: name, blog: blog, rating: rating); final request = ModelMutations.create( post, authorizationMode: APIAuthorizationType.userPools, @@ -137,17 +127,15 @@ Future> runPartialMutation(String name) async { expect(response, hasNoGraphQLErrors); // Add to cache so it can be cleaned up with other test artifacts. final responseJson = json.decode(response.data!) as Map; - final blogFromResponse = - Blog.fromJson(responseJson['createBlog'] as Map); + final blogFromResponse = Blog.fromJson( + responseJson['createBlog'] as Map, + ); blogCache.add(blogFromResponse); return response; } -Future addPostAndBlog( - String title, - int rating, -) async { +Future addPostAndBlog(String title, int rating) async { const name = 'Integration Test Blog with a post - create'; final createdBlog = await addBlog(name); return addPost(title, rating, createdBlog); @@ -291,9 +279,7 @@ Future deleteSample(Sample sample) async { Future deleteTestModels() async { await Future.wait(blogCache.map(deleteBlog)); - await Future.wait( - postCache.map(deletePost), - ); + await Future.wait(postCache.map(deletePost)); await Future.wait(cpkParentCache.map(deleteCpkParent)); await Future.wait(cpkExplicitChildCache.map(deleteCpkExplicitChild)); await Future.wait(cpkImplicitChildCache.map(deleteCpkImplicitChild)); @@ -304,7 +290,7 @@ Future deleteTestModels() async { /// Wait for subscription established for given request. Future>> - getEstablishedSubscriptionOperation( +getEstablishedSubscriptionOperation( GraphQLRequest subscriptionRequest, void Function(GraphQLResponse) onData, ) async { @@ -318,8 +304,9 @@ Future>> onError: (Object e) => fail('Error in subscription stream: $e'), ); - await establishedCompleter.future - .timeout(const Duration(seconds: _subscriptionTimeoutInterval)); + await establishedCompleter.future.timeout( + const Duration(seconds: _subscriptionTimeoutInterval), + ); return subscription; } diff --git a/packages/api/amplify_api/example/lib/graphql_api_view.dart b/packages/api/amplify_api/example/lib/graphql_api_view.dart index afde01d6a1..c7cd1e964f 100644 --- a/packages/api/amplify_api/example/lib/graphql_api_view.dart +++ b/packages/api/amplify_api/example/lib/graphql_api_view.dart @@ -90,22 +90,23 @@ class _GraphQLApiViewState extends State { subscription: _subscription, subscriptionByID: _subscriptionByID, unsubscribe: _unsubscribe, - setUnsubscribe: (val) => setState(() { - _unsubscribe = val; - if (_unsubscribe == null) { - _subscription = null; - _subscriptionByID = null; - } - }), + setUnsubscribe: + (val) => setState(() { + _unsubscribe = val; + if (_unsubscribe == null) { + _subscription = null; + _subscriptionByID = null; + } + }), setSubscription: (sub) => setState(() => _subscription = sub), - setSubscriptionByID: (sub) => - setState(() => _subscriptionByID = sub), + setSubscriptionByID: + (sub) => setState(() => _subscriptionByID = sub), ), const SizedBox(height: 10), GraphQLAuthMode( authMode: _authorizationType, - setAuthType: (val) => - setState(() => _authorizationType = val), + setAuthType: + (val) => setState(() => _authorizationType = val), authTypes: const [ APIAuthorizationType.userPools, APIAuthorizationType.iam, @@ -129,23 +130,14 @@ class _GraphQLApiViewState extends State { ), ), ), - const Divider( - color: Colors.black, - ), + const Divider(color: Colors.black), const Text( 'Results', textAlign: TextAlign.left, - style: TextStyle( - fontSize: 20, - ), + style: TextStyle(fontSize: 20), ), const SizedBox(height: 10), - Text( - '\n$_result\n', - style: const TextStyle( - fontSize: 16, - ), - ), + Text('\n$_result\n', style: const TextStyle(fontSize: 16)), ], ); } diff --git a/packages/api/amplify_api/example/lib/main.dart b/packages/api/amplify_api/example/lib/main.dart index f1a71f3b6e..10a43d80f9 100644 --- a/packages/api/amplify_api/example/lib/main.dart +++ b/packages/api/amplify_api/example/lib/main.dart @@ -41,8 +41,8 @@ class _MyAppState extends State { /// https://docs.amplify.aws/lib/project-setup/platform-setup/q/platform/flutter/#enable-keychain secureStorageFactory: AmplifySecureStorage.factoryFrom( macOSOptions: - // ignore: invalid_use_of_visible_for_testing_member - MacOSSecureStorageOptions(useDataProtection: false), + // ignore: invalid_use_of_visible_for_testing_member + MacOSSecureStorageOptions(useDataProtection: false), ), ); await Amplify.addPlugins([ @@ -77,14 +77,11 @@ class _MyAppState extends State { _isAmplifyConfigured = true; }); - Amplify.Hub.listen( - HubChannel.Api, - (ApiHubEvent event) { - if (event is SubscriptionHubEvent) { - safePrint(event); - } - }, - ); + Amplify.Hub.listen(HubChannel.Api, (ApiHubEvent event) { + if (event is SubscriptionHubEvent) { + safePrint(event); + } + }); } void _onRestApiViewButtonClick() { @@ -126,9 +123,10 @@ class _MyAppState extends State { ), body: Padding( padding: const EdgeInsets.all(10), - child: _showRestApiView == true - ? const RestApiView() - : GraphQLApiView(isAmplifyConfigured: _isAmplifyConfigured), + child: + _showRestApiView == true + ? const RestApiView() + : GraphQLApiView(isAmplifyConfigured: _isAmplifyConfigured), ), ), ), diff --git a/packages/api/amplify_api/example/lib/models/Blog.dart b/packages/api/amplify_api/example/lib/models/Blog.dart index 600da76b32..5e856bc2f8 100644 --- a/packages/api/amplify_api/example/lib/models/Blog.dart +++ b/packages/api/amplify_api/example/lib/models/Blog.dart @@ -36,7 +36,8 @@ class Blog extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class Blog extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,18 +74,23 @@ class Blog extends amplify_core.Model { return _updatedAt; } - const Blog._internal( - {required this.id, required name, posts, createdAt, updatedAt}) - : _name = name, - _posts = posts, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Blog._internal({ + required this.id, + required name, + posts, + createdAt, + updatedAt, + }) : _name = name, + _posts = posts, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Blog({String? id, required String name, List? posts}) { return Blog._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - posts: posts != null ? List.unmodifiable(posts) : posts); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + posts: posts != null ? List.unmodifiable(posts) : posts, + ); } bool equals(Object other) { @@ -106,11 +116,14 @@ class Blog extends amplify_core.Model { buffer.write("Blog {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,90 +131,109 @@ class Blog extends amplify_core.Model { Blog copyWith({String? name, List? posts}) { return Blog._internal( - id: id, name: name ?? this.name, posts: posts ?? this.posts); + id: id, + name: name ?? this.name, + posts: posts ?? this.posts, + ); } - Blog copyWithModelFieldValues( - {ModelFieldValue? name, ModelFieldValue?>? posts}) { + Blog copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? posts, + }) { return Blog._internal( - id: id, - name: name == null ? this.name : name.value, - posts: posts == null ? this.posts : posts.value); + id: id, + name: name == null ? this.name : name.value, + posts: posts == null ? this.posts : posts.value, + ); } Blog.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _posts = json['posts'] is Map - ? (json['posts']['items'] is List - ? (json['posts']['items'] as List) - .where((e) => e != null) - .map((e) => Post.fromJson(new Map.from(e))) - .toList() - : null) - : (json['posts'] is List - ? (json['posts'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Post.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _posts = + json['posts'] is Map + ? (json['posts']['items'] is List + ? (json['posts']['items'] as List) + .where((e) => e != null) + .map( + (e) => Post.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['posts'] is List + ? (json['posts'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Post.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'posts': _posts, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'posts': _posts, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final POSTS = amplify_core.QueryField( - fieldName: "posts", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "posts", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Blog"; - modelSchemaDefinition.pluralName = "Blogs"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Blog"; + modelSchemaDefinition.pluralName = "Blogs"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.APIKEY, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.USERPOOLS, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -210,44 +242,59 @@ class Blog extends amplify_core.Model { amplify_core.ModelOperation.READ, amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, - amplify_core.ModelOperation.DELETE - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Blog.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Blog.POSTS, - isRequired: false, - ofModelName: 'Post', - associatedKey: Post.BLOG)); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.DELETE, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Blog.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Blog.POSTS, + isRequired: false, + ofModelName: 'Post', + associatedKey: Post.BLOG, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _BlogModelType extends amplify_core.ModelType { @@ -278,10 +325,10 @@ class BlogModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/Comment.dart b/packages/api/amplify_api/example/lib/models/Comment.dart index 0c3a2bcae5..ae33d2faae 100644 --- a/packages/api/amplify_api/example/lib/models/Comment.dart +++ b/packages/api/amplify_api/example/lib/models/Comment.dart @@ -35,7 +35,8 @@ class Comment extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -59,18 +60,23 @@ class Comment extends amplify_core.Model { return _updatedAt; } - const Comment._internal( - {required this.id, content, post, createdAt, updatedAt}) - : _content = content, - _post = post, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Comment._internal({ + required this.id, + content, + post, + createdAt, + updatedAt, + }) : _content = content, + _post = post, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Comment({String? id, String? content, Post? post}) { return Comment._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - content: content, - post: post); + id: id == null ? amplify_core.UUID.getUUID() : id, + content: content, + post: post, + ); } bool equals(Object other) { @@ -97,11 +103,14 @@ class Comment extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("content=" + "$_content" + ", "); buffer.write("post=" + (_post != null ? _post!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -109,74 +118,90 @@ class Comment extends amplify_core.Model { Comment copyWith({String? content, Post? post}) { return Comment._internal( - id: id, content: content ?? this.content, post: post ?? this.post); + id: id, + content: content ?? this.content, + post: post ?? this.post, + ); } - Comment copyWithModelFieldValues( - {ModelFieldValue? content, ModelFieldValue? post}) { + Comment copyWithModelFieldValues({ + ModelFieldValue? content, + ModelFieldValue? post, + }) { return Comment._internal( - id: id, - content: content == null ? this.content : content.value, - post: post == null ? this.post : post.value); + id: id, + content: content == null ? this.content : content.value, + post: post == null ? this.post : post.value, + ); } Comment.fromJson(Map json) - : id = json['id'], - _content = json['content'], - _post = json['post'] != null - ? json['post']['serializedData'] != null - ? Post.fromJson(new Map.from( - json['post']['serializedData'])) - : Post.fromJson(new Map.from(json['post'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _content = json['content'], + _post = + json['post'] != null + ? json['post']['serializedData'] != null + ? Post.fromJson( + new Map.from( + json['post']['serializedData'], + ), + ) + : Post.fromJson(new Map.from(json['post'])) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'content': _content, - 'post': _post?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'content': _content, + 'post': _post?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'content': _content, - 'post': _post, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'content': _content, + 'post': _post, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final CONTENT = amplify_core.QueryField(fieldName: "content"); static final POST = amplify_core.QueryField( - fieldName: "post", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "post", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Comment"; - modelSchemaDefinition.pluralName = "Comments"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Comment"; + modelSchemaDefinition.pluralName = "Comments"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.USERPOOLS, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -185,44 +210,59 @@ class Comment extends amplify_core.Model { amplify_core.ModelOperation.READ, amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, - amplify_core.ModelOperation.DELETE - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Comment.CONTENT, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Comment.POST, - isRequired: false, - targetNames: ['postID'], - ofModelName: 'Post')); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.DELETE, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Comment.CONTENT, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Comment.POST, + isRequired: false, + targetNames: ['postID'], + ofModelName: 'Post', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CommentModelType extends amplify_core.ModelType { @@ -253,10 +293,10 @@ class CommentModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/CpkIntIndexes.dart b/packages/api/amplify_api/example/lib/models/CpkIntIndexes.dart index c87c43283f..3998d3430e 100644 --- a/packages/api/amplify_api/example/lib/models/CpkIntIndexes.dart +++ b/packages/api/amplify_api/example/lib/models/CpkIntIndexes.dart @@ -35,21 +35,29 @@ class CpkIntIndexes extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkIntIndexesModelIdentifier get modelIdentifier { try { return CpkIntIndexesModelIdentifier( - name: _name!, fieldA: _fieldA!, fieldB: _fieldB!); + name: _name!, + fieldA: _fieldA!, + fieldB: _fieldB!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -58,11 +66,15 @@ class CpkIntIndexes extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -71,11 +83,15 @@ class CpkIntIndexes extends amplify_core.Model { return _fieldA!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,11 +100,15 @@ class CpkIntIndexes extends amplify_core.Model { return _fieldB!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -100,16 +120,23 @@ class CpkIntIndexes extends amplify_core.Model { return _updatedAt; } - const CpkIntIndexes._internal( - {required name, required fieldA, required fieldB, createdAt, updatedAt}) - : _name = name, - _fieldA = fieldA, - _fieldB = fieldB, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkIntIndexes( - {required String name, required int fieldA, required int fieldB}) { + const CpkIntIndexes._internal({ + required name, + required fieldA, + required fieldB, + createdAt, + updatedAt, + }) : _name = name, + _fieldA = fieldA, + _fieldB = fieldB, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkIntIndexes({ + required String name, + required int fieldA, + required int fieldB, + }) { return CpkIntIndexes._internal(name: name, fieldA: fieldA, fieldB: fieldB); } @@ -136,14 +163,19 @@ class CpkIntIndexes extends amplify_core.Model { buffer.write("CpkIntIndexes {"); buffer.write("name=" + "$_name" + ", "); buffer.write( - "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", "); + "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", ", + ); + buffer.write( + "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", ", + ); buffer.write( - "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -158,45 +190,47 @@ class CpkIntIndexes extends amplify_core.Model { } CpkIntIndexes.fromJson(Map json) - : _name = json['name'], - _fieldA = (json['fieldA'] as num?)?.toInt(), - _fieldB = (json['fieldB'] as num?)?.toInt(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : _name = json['name'], + _fieldA = (json['fieldA'] as num?)?.toInt(), + _fieldB = (json['fieldB'] as num?)?.toInt(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'name': _name, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'name': _name, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'name': _name, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'name': _name, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final NAME = amplify_core.QueryField(fieldName: "name"); static final FIELDA = amplify_core.QueryField(fieldName: "fieldA"); static final FIELDB = amplify_core.QueryField(fieldName: "fieldB"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkIntIndexes"; - modelSchemaDefinition.pluralName = "CpkIntIndexes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkIntIndexes"; + modelSchemaDefinition.pluralName = "CpkIntIndexes"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -205,49 +239,71 @@ class CpkIntIndexes extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["name", "fieldA", "fieldB"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntIndexes.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntIndexes.FIELDA, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntIndexes.FIELDB, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["name", "fieldA", "fieldB"], + name: null, + ), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntIndexes.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntIndexes.FIELDA, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntIndexes.FIELDB, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkIntIndexesModelType extends amplify_core.ModelType { @@ -278,18 +334,24 @@ class CpkIntIndexesModelIdentifier * Create an instance of CpkIntIndexesModelIdentifier using [name] the primary key. * And [fieldA], [fieldB] the sort keys. */ - const CpkIntIndexesModelIdentifier( - {required this.name, required this.fieldA, required this.fieldB}); + const CpkIntIndexesModelIdentifier({ + required this.name, + required this.fieldA, + required this.fieldB, + }); @override - Map serializeAsMap() => - ({'name': name, 'fieldA': fieldA, 'fieldB': fieldB}); + Map serializeAsMap() => ({ + 'name': name, + 'fieldA': fieldA, + 'fieldB': fieldB, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/CpkIntPrimaryKey.dart b/packages/api/amplify_api/example/lib/models/CpkIntPrimaryKey.dart index c9a265486d..24525e5ab8 100644 --- a/packages/api/amplify_api/example/lib/models/CpkIntPrimaryKey.dart +++ b/packages/api/amplify_api/example/lib/models/CpkIntPrimaryKey.dart @@ -35,21 +35,29 @@ class CpkIntPrimaryKey extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkIntPrimaryKeyModelIdentifier get modelIdentifier { try { return CpkIntPrimaryKeyModelIdentifier( - intAsId: _intAsId!, fieldA: _fieldA!, fieldB: _fieldB!); + intAsId: _intAsId!, + fieldA: _fieldA!, + fieldB: _fieldB!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -58,11 +66,15 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _intAsId!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -71,11 +83,15 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _fieldA!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,11 +100,15 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _fieldB!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -100,22 +120,28 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _updatedAt; } - const CpkIntPrimaryKey._internal( - {required intAsId, - required fieldA, - required fieldB, - createdAt, - updatedAt}) - : _intAsId = intAsId, - _fieldA = fieldA, - _fieldB = fieldB, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkIntPrimaryKey( - {required int intAsId, required int fieldA, required int fieldB}) { + const CpkIntPrimaryKey._internal({ + required intAsId, + required fieldA, + required fieldB, + createdAt, + updatedAt, + }) : _intAsId = intAsId, + _fieldA = fieldA, + _fieldB = fieldB, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkIntPrimaryKey({ + required int intAsId, + required int fieldA, + required int fieldB, + }) { return CpkIntPrimaryKey._internal( - intAsId: intAsId, fieldA: fieldA, fieldB: fieldB); + intAsId: intAsId, + fieldA: fieldA, + fieldB: fieldB, + ); } bool equals(Object other) { @@ -140,16 +166,22 @@ class CpkIntPrimaryKey extends amplify_core.Model { buffer.write("CpkIntPrimaryKey {"); buffer.write( - "intAsId=" + (_intAsId != null ? _intAsId!.toString() : "null") + ", "); + "intAsId=" + (_intAsId != null ? _intAsId!.toString() : "null") + ", ", + ); buffer.write( - "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", "); + "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", ", + ); buffer.write( - "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -157,54 +189,64 @@ class CpkIntPrimaryKey extends amplify_core.Model { CpkIntPrimaryKey copyWith() { return CpkIntPrimaryKey._internal( - intAsId: intAsId, fieldA: fieldA, fieldB: fieldB); + intAsId: intAsId, + fieldA: fieldA, + fieldB: fieldB, + ); } CpkIntPrimaryKey copyWithModelFieldValues() { return CpkIntPrimaryKey._internal( - intAsId: intAsId, fieldA: fieldA, fieldB: fieldB); + intAsId: intAsId, + fieldA: fieldA, + fieldB: fieldB, + ); } CpkIntPrimaryKey.fromJson(Map json) - : _intAsId = (json['intAsId'] as num?)?.toInt(), - _fieldA = (json['fieldA'] as num?)?.toInt(), - _fieldB = (json['fieldB'] as num?)?.toInt(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : _intAsId = (json['intAsId'] as num?)?.toInt(), + _fieldA = (json['fieldA'] as num?)?.toInt(), + _fieldB = (json['fieldB'] as num?)?.toInt(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'intAsId': _intAsId, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'intAsId': _intAsId, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'intAsId': _intAsId, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'intAsId': _intAsId, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkIntPrimaryKeyModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final INTASID = amplify_core.QueryField(fieldName: "intAsId"); static final FIELDA = amplify_core.QueryField(fieldName: "fieldA"); static final FIELDB = amplify_core.QueryField(fieldName: "fieldB"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkIntPrimaryKey"; - modelSchemaDefinition.pluralName = "CpkIntPrimaryKeys"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkIntPrimaryKey"; + modelSchemaDefinition.pluralName = "CpkIntPrimaryKeys"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -213,49 +255,71 @@ class CpkIntPrimaryKey extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["intAsId", "fieldA", "fieldB"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntPrimaryKey.INTASID, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntPrimaryKey.FIELDA, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntPrimaryKey.FIELDB, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["intAsId", "fieldA", "fieldB"], + name: null, + ), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntPrimaryKey.INTASID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntPrimaryKey.FIELDA, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntPrimaryKey.FIELDB, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkIntPrimaryKeyModelType @@ -287,21 +351,24 @@ class CpkIntPrimaryKeyModelIdentifier * Create an instance of CpkIntPrimaryKeyModelIdentifier using [intAsId] the primary key. * And [fieldA], [fieldB] the sort keys. */ - const CpkIntPrimaryKeyModelIdentifier( - {required this.intAsId, required this.fieldA, required this.fieldB}); + const CpkIntPrimaryKeyModelIdentifier({ + required this.intAsId, + required this.fieldA, + required this.fieldB, + }); @override Map serializeAsMap() => ({ - 'intAsId': intAsId, - 'fieldA': fieldA, - 'fieldB': fieldB - }); + 'intAsId': intAsId, + 'fieldA': fieldA, + 'fieldB': fieldB, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart b/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart index 8b80838a99..6c93729fe7 100644 --- a/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart +++ b/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildExplicitCD.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalChildExplicitCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalChildExplicitCDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildExplicitCD._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildExplicitCD( - {String? id, - required String name, - CpkOneToOneBidirectionalParentCD? belongsToParent}) { + const CpkOneToOneBidirectionalChildExplicitCD._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildExplicitCD({ + String? id, + required String name, + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -119,134 +136,170 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildExplicitCD {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent!.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent!.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildExplicitCD copyWith( - {CpkOneToOneBidirectionalParentCD? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitCD copyWith({ + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildExplicitCD copyWithModelFieldValues( - {ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitCD copyWithModelFieldValues({ + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildExplicitCD.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentCD.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentCD.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentCD.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentCD.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitCDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitCDModelIdentifier>(); + CpkOneToOneBidirectionalChildExplicitCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildExplicitCDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentCD')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitCD"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildExplicitCDS"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitCD"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildExplicitCDS"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, operations: const [ amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildExplicitCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, - isRequired: false, - targetNames: ['belongsToParentID', 'belongsToParentName'], - ofModelName: 'CpkOneToOneBidirectionalParentCD')); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildExplicitCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, + isRequired: false, + targetNames: ['belongsToParentID', 'belongsToParentName'], + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildExplicitCDModelType @@ -255,7 +308,8 @@ class _CpkOneToOneBidirectionalChildExplicitCDModelType @override CpkOneToOneBidirectionalChildExplicitCD fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildExplicitCD.fromJson(jsonData); } @@ -279,18 +333,22 @@ class CpkOneToOneBidirectionalChildExplicitCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalChildExplicitCDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalChildExplicitCDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalChildExplicitCDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart b/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart index 0b15e2277d..de7c840102 100644 --- a/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart +++ b/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalChildImplicitCD.dart @@ -36,7 +36,8 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,21 +74,27 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildImplicitCD._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildImplicitCD( - {String? id, - required String name, - CpkOneToOneBidirectionalParentCD? belongsToParent}) { + const CpkOneToOneBidirectionalChildImplicitCD._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildImplicitCD({ + String? id, + required String name, + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -109,135 +120,172 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildImplicitCD {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent!.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent!.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildImplicitCD copyWith( - {String? name, CpkOneToOneBidirectionalParentCD? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitCD copyWith({ + String? name, + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id, - name: name ?? this.name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name ?? this.name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildImplicitCD copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitCD copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id, - name: name == null ? this.name : name.value, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name == null ? this.name : name.value, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildImplicitCD.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentCD.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentCD.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentCD.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentCD.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitCDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitCDModelIdentifier>(); + CpkOneToOneBidirectionalChildImplicitCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildImplicitCDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentCD')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitCD"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildImplicitCDS"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitCD"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildImplicitCDS"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, operations: const [ amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildImplicitCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, - isRequired: false, - targetNames: ['parentID', 'parentName'], - ofModelName: 'CpkOneToOneBidirectionalParentCD')); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildImplicitCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, + isRequired: false, + targetNames: ['parentID', 'parentName'], + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildImplicitCDModelType @@ -246,7 +294,8 @@ class _CpkOneToOneBidirectionalChildImplicitCDModelType @override CpkOneToOneBidirectionalChildImplicitCD fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildImplicitCD.fromJson(jsonData); } @@ -266,17 +315,18 @@ class CpkOneToOneBidirectionalChildImplicitCDModelIdentifier final String id; /** Create an instance of CpkOneToOneBidirectionalChildImplicitCDModelIdentifier using [id] the primary key. */ - const CpkOneToOneBidirectionalChildImplicitCDModelIdentifier( - {required this.id}); + const CpkOneToOneBidirectionalChildImplicitCDModelIdentifier({ + required this.id, + }); @override Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalParentCD.dart b/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalParentCD.dart index 5a187cff5f..0c8f08123b 100644 --- a/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalParentCD.dart +++ b/packages/api/amplify_api/example/lib/models/CpkOneToOneBidirectionalParentCD.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkOneToOneBidirectionalParentCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalParentCDModelIdentifier( - customId: _customId!, name: _name!); + customId: _customId!, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _customId!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -72,11 +83,15 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -96,30 +111,32 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalParentCD._internal( - {required customId, - required name, - implicitChild, - explicitChild, - createdAt, - updatedAt}) - : _customId = customId, - _name = name, - _implicitChild = implicitChild, - _explicitChild = explicitChild, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalParentCD( - {required String customId, - required String name, - CpkOneToOneBidirectionalChildImplicitCD? implicitChild, - CpkOneToOneBidirectionalChildExplicitCD? explicitChild}) { + const CpkOneToOneBidirectionalParentCD._internal({ + required customId, + required name, + implicitChild, + explicitChild, + createdAt, + updatedAt, + }) : _customId = customId, + _name = name, + _implicitChild = implicitChild, + _explicitChild = explicitChild, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalParentCD({ + required String customId, + required String name, + CpkOneToOneBidirectionalChildImplicitCD? implicitChild, + CpkOneToOneBidirectionalChildExplicitCD? explicitChild, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: implicitChild, - explicitChild: explicitChild); + customId: customId, + name: name, + implicitChild: implicitChild, + explicitChild: explicitChild, + ); } bool equals(Object other) { @@ -146,162 +163,207 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalParentCD {"); buffer.write("customId=" + "$_customId" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalParentCD copyWith( - {CpkOneToOneBidirectionalChildImplicitCD? implicitChild, - CpkOneToOneBidirectionalChildExplicitCD? explicitChild}) { + CpkOneToOneBidirectionalParentCD copyWith({ + CpkOneToOneBidirectionalChildImplicitCD? implicitChild, + CpkOneToOneBidirectionalChildExplicitCD? explicitChild, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: implicitChild ?? this.implicitChild, - explicitChild: explicitChild ?? this.explicitChild); + customId: customId, + name: name, + implicitChild: implicitChild ?? this.implicitChild, + explicitChild: explicitChild ?? this.explicitChild, + ); } - CpkOneToOneBidirectionalParentCD copyWithModelFieldValues( - {ModelFieldValue? implicitChild, - ModelFieldValue? - explicitChild}) { + CpkOneToOneBidirectionalParentCD copyWithModelFieldValues({ + ModelFieldValue? implicitChild, + ModelFieldValue? explicitChild, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: - implicitChild == null ? this.implicitChild : implicitChild.value, - explicitChild: - explicitChild == null ? this.explicitChild : explicitChild.value); + customId: customId, + name: name, + implicitChild: + implicitChild == null ? this.implicitChild : implicitChild.value, + explicitChild: + explicitChild == null ? this.explicitChild : explicitChild.value, + ); } CpkOneToOneBidirectionalParentCD.fromJson(Map json) - : _customId = json['customId'], - _name = json['name'], - _implicitChild = json['implicitChild'] != null - ? json['implicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildImplicitCD.fromJson( + : _customId = json['customId'], + _name = json['name'], + _implicitChild = + json['implicitChild'] != null + ? json['implicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildImplicitCD.fromJson( new Map.from( - json['implicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildImplicitCD.fromJson( - new Map.from(json['implicitChild'])) - : null, - _explicitChild = json['explicitChild'] != null - ? json['explicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildExplicitCD.fromJson( + json['implicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildImplicitCD.fromJson( + new Map.from(json['implicitChild']), + ) + : null, + _explicitChild = + json['explicitChild'] != null + ? json['explicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildExplicitCD.fromJson( new Map.from( - json['explicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildExplicitCD.fromJson( - new Map.from(json['explicitChild'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['explicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildExplicitCD.fromJson( + new Map.from(json['explicitChild']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'customId': _customId, - 'name': _name, - 'implicitChild': _implicitChild?.toJson(), - 'explicitChild': _explicitChild?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'customId': _customId, + 'name': _name, + 'implicitChild': _implicitChild?.toJson(), + 'explicitChild': _explicitChild?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'customId': _customId, - 'name': _name, - 'implicitChild': _implicitChild, - 'explicitChild': _explicitChild, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalParentCDModelIdentifier>(); + 'customId': _customId, + 'name': _name, + 'implicitChild': _implicitChild, + 'explicitChild': _explicitChild, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentCDModelIdentifier + >(); static final CUSTOMID = amplify_core.QueryField(fieldName: "customId"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILD = amplify_core.QueryField( - fieldName: "implicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD')); + fieldName: "implicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', + ), + ); static final EXPLICITCHILD = amplify_core.QueryField( - fieldName: "explicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD')); + fieldName: "explicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentCD"; - modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentCDS"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentCD"; + modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentCDS"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, operations: const [ amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["customId", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD.CUSTOMID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentCD.IMPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', - associatedKey: - CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentCD.EXPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', - associatedKey: - CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT)); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["customId", "name"], name: null), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalParentCD.CUSTOMID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalParentCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentCD.IMPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', + associatedKey: + CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentCD.EXPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', + associatedKey: + CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalParentCDModelType @@ -332,18 +394,22 @@ class CpkOneToOneBidirectionalParentCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalParentCDModelIdentifier using [customId] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalParentCDModelIdentifier( - {required this.customId, required this.name}); + const CpkOneToOneBidirectionalParentCDModelIdentifier({ + required this.customId, + required this.name, + }); @override - Map serializeAsMap() => - ({'customId': customId, 'name': name}); + Map serializeAsMap() => ({ + 'customId': customId, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/ModelProvider.dart b/packages/api/amplify_api/example/lib/models/ModelProvider.dart index 81642e6853..652f839e9a 100644 --- a/packages/api/amplify_api/example/lib/models/ModelProvider.dart +++ b/packages/api/amplify_api/example/lib/models/ModelProvider.dart @@ -59,7 +59,7 @@ class ModelProvider implements amplify_core.ModelProviderInterface { OwnerOnly.schema, Post.schema, Sample.schema, - lowerCase.schema + lowerCase.schema, ]; @override List customTypeSchemas = []; @@ -93,8 +93,8 @@ class ModelProvider implements amplify_core.ModelProviderInterface { return lowerCase.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/api/amplify_api/example/lib/models/OwnerOnly.dart b/packages/api/amplify_api/example/lib/models/OwnerOnly.dart index c64c6c00a6..44a6d619fa 100644 --- a/packages/api/amplify_api/example/lib/models/OwnerOnly.dart +++ b/packages/api/amplify_api/example/lib/models/OwnerOnly.dart @@ -34,7 +34,8 @@ class OwnerOnly extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -47,11 +48,15 @@ class OwnerOnly extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -63,15 +68,20 @@ class OwnerOnly extends amplify_core.Model { return _updatedAt; } - const OwnerOnly._internal( - {required this.id, required name, createdAt, updatedAt}) - : _name = name, - _createdAt = createdAt, - _updatedAt = updatedAt; + const OwnerOnly._internal({ + required this.id, + required name, + createdAt, + updatedAt, + }) : _name = name, + _createdAt = createdAt, + _updatedAt = updatedAt; factory OwnerOnly({String? id, required String name}) { return OwnerOnly._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, name: name); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + ); } bool equals(Object other) { @@ -94,11 +104,14 @@ class OwnerOnly extends amplify_core.Model { buffer.write("OwnerOnly {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -110,45 +123,49 @@ class OwnerOnly extends amplify_core.Model { OwnerOnly copyWithModelFieldValues({ModelFieldValue? name}) { return OwnerOnly._internal( - id: id, name: name == null ? this.name : name.value); + id: id, + name: name == null ? this.name : name.value, + ); } OwnerOnly.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "OwnerOnly"; - modelSchemaDefinition.pluralName = "OwnerOnlies"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "OwnerOnly"; + modelSchemaDefinition.pluralName = "OwnerOnlies"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -157,38 +174,50 @@ class OwnerOnly extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: OwnerOnly.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: OwnerOnly.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _OwnerOnlyModelType extends amplify_core.ModelType { @@ -220,10 +249,10 @@ class OwnerOnlyModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/Post.dart b/packages/api/amplify_api/example/lib/models/Post.dart index f83ddedc54..2329fe7ed3 100644 --- a/packages/api/amplify_api/example/lib/models/Post.dart +++ b/packages/api/amplify_api/example/lib/models/Post.dart @@ -38,7 +38,8 @@ class Post extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -51,11 +52,15 @@ class Post extends amplify_core.Model { return _title!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -64,11 +69,15 @@ class Post extends amplify_core.Model { return _rating!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -88,34 +97,36 @@ class Post extends amplify_core.Model { return _updatedAt; } - const Post._internal( - {required this.id, - required title, - required rating, - blog, - comments, - createdAt, - updatedAt}) - : _title = title, - _rating = rating, - _blog = blog, - _comments = comments, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Post( - {String? id, - required String title, - required int rating, - Blog? blog, - List? comments}) { + const Post._internal({ + required this.id, + required title, + required rating, + blog, + comments, + createdAt, + updatedAt, + }) : _title = title, + _rating = rating, + _blog = blog, + _comments = comments, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Post({ + String? id, + required String title, + required int rating, + Blog? blog, + List? comments, + }) { return Post._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - title: title, - rating: rating, - blog: blog, - comments: - comments != null ? List.unmodifiable(comments) : comments); + id: id == null ? amplify_core.UUID.getUUID() : id, + title: title, + rating: rating, + blog: blog, + comments: + comments != null ? List.unmodifiable(comments) : comments, + ); } bool equals(Object other) { @@ -144,128 +155,157 @@ class Post extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("title=" + "$_title" + ", "); buffer.write( - "rating=" + (_rating != null ? _rating!.toString() : "null") + ", "); + "rating=" + (_rating != null ? _rating!.toString() : "null") + ", ", + ); buffer.write("blog=" + (_blog != null ? _blog!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Post copyWith( - {String? title, int? rating, Blog? blog, List? comments}) { + Post copyWith({ + String? title, + int? rating, + Blog? blog, + List? comments, + }) { return Post._internal( - id: id, - title: title ?? this.title, - rating: rating ?? this.rating, - blog: blog ?? this.blog, - comments: comments ?? this.comments); + id: id, + title: title ?? this.title, + rating: rating ?? this.rating, + blog: blog ?? this.blog, + comments: comments ?? this.comments, + ); } - Post copyWithModelFieldValues( - {ModelFieldValue? title, - ModelFieldValue? rating, - ModelFieldValue? blog, - ModelFieldValue?>? comments}) { + Post copyWithModelFieldValues({ + ModelFieldValue? title, + ModelFieldValue? rating, + ModelFieldValue? blog, + ModelFieldValue?>? comments, + }) { return Post._internal( - id: id, - title: title == null ? this.title : title.value, - rating: rating == null ? this.rating : rating.value, - blog: blog == null ? this.blog : blog.value, - comments: comments == null ? this.comments : comments.value); + id: id, + title: title == null ? this.title : title.value, + rating: rating == null ? this.rating : rating.value, + blog: blog == null ? this.blog : blog.value, + comments: comments == null ? this.comments : comments.value, + ); } Post.fromJson(Map json) - : id = json['id'], - _title = json['title'], - _rating = (json['rating'] as num?)?.toInt(), - _blog = json['blog'] != null - ? json['blog']['serializedData'] != null - ? Blog.fromJson(new Map.from( - json['blog']['serializedData'])) - : Blog.fromJson(new Map.from(json['blog'])) - : null, - _comments = json['comments'] is Map - ? (json['comments']['items'] is List - ? (json['comments']['items'] as List) - .where((e) => e != null) - .map((e) => - Comment.fromJson(new Map.from(e))) - .toList() - : null) - : (json['comments'] is List - ? (json['comments'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Comment.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _title = json['title'], + _rating = (json['rating'] as num?)?.toInt(), + _blog = + json['blog'] != null + ? json['blog']['serializedData'] != null + ? Blog.fromJson( + new Map.from( + json['blog']['serializedData'], + ), + ) + : Blog.fromJson(new Map.from(json['blog'])) + : null, + _comments = + json['comments'] is Map + ? (json['comments']['items'] is List + ? (json['comments']['items'] as List) + .where((e) => e != null) + .map( + (e) => + Comment.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['comments'] is List + ? (json['comments'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Comment.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'blog': _blog?.toJson(), - 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'blog': _blog?.toJson(), + 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'blog': _blog, - 'comments': _comments, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'blog': _blog, + 'comments': _comments, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final TITLE = amplify_core.QueryField(fieldName: "title"); static final RATING = amplify_core.QueryField(fieldName: "rating"); static final BLOG = amplify_core.QueryField( - fieldName: "blog", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Blog')); + fieldName: "blog", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Blog', + ), + ); static final COMMENTS = amplify_core.QueryField( - fieldName: "comments", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Comment')); + fieldName: "comments", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Comment', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Post"; - modelSchemaDefinition.pluralName = "Posts"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Post"; + modelSchemaDefinition.pluralName = "Posts"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.USERPOOLS, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -274,57 +314,79 @@ class Post extends amplify_core.Model { amplify_core.ModelOperation.READ, amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, - amplify_core.ModelOperation.DELETE - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null), - amplify_core.ModelIndex(fields: const ["blogID"], name: "blogID") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.TITLE, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.RATING, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Post.BLOG, - isRequired: false, - targetNames: ['blogID'], - ofModelName: 'Blog')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Post.COMMENTS, - isRequired: false, - ofModelName: 'Comment', - associatedKey: Comment.POST)); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.DELETE, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + amplify_core.ModelIndex(fields: const ["blogID"], name: "blogID"), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.TITLE, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.RATING, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Post.BLOG, + isRequired: false, + targetNames: ['blogID'], + ofModelName: 'Blog', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Post.COMMENTS, + isRequired: false, + ofModelName: 'Comment', + associatedKey: Comment.POST, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PostModelType extends amplify_core.ModelType { @@ -355,10 +417,10 @@ class PostModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/Sample.dart b/packages/api/amplify_api/example/lib/models/Sample.dart index 3ebf11898d..57fc41016d 100644 --- a/packages/api/amplify_api/example/lib/models/Sample.dart +++ b/packages/api/amplify_api/example/lib/models/Sample.dart @@ -38,7 +38,8 @@ class Sample extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -74,37 +75,39 @@ class Sample extends amplify_core.Model { return _updatedAt; } - const Sample._internal( - {required this.id, - name, - number, - flag, - date, - rootbeer, - createdAt, - updatedAt}) - : _name = name, - _number = number, - _flag = flag, - _date = date, - _rootbeer = rootbeer, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Sample( - {String? id, - String? name, - int? number, - bool? flag, - amplify_core.TemporalTime? date, - double? rootbeer}) { + const Sample._internal({ + required this.id, + name, + number, + flag, + date, + rootbeer, + createdAt, + updatedAt, + }) : _name = name, + _number = number, + _flag = flag, + _date = date, + _rootbeer = rootbeer, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Sample({ + String? id, + String? name, + int? number, + bool? flag, + amplify_core.TemporalTime? date, + double? rootbeer, + }) { return Sample._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - number: number, - flag: flag, - date: date, - rootbeer: rootbeer); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + number: number, + flag: flag, + date: date, + rootbeer: rootbeer, + ); } bool equals(Object other) { @@ -134,93 +137,103 @@ class Sample extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); buffer.write( - "number=" + (_number != null ? _number!.toString() : "null") + ", "); + "number=" + (_number != null ? _number!.toString() : "null") + ", ", + ); buffer.write("flag=" + (_flag != null ? _flag!.toString() : "null") + ", "); buffer.write("date=" + (_date != null ? _date!.format() : "null") + ", "); - buffer.write("rootbeer=" + - (_rootbeer != null ? _rootbeer!.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "rootbeer=" + (_rootbeer != null ? _rootbeer!.toString() : "null") + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Sample copyWith( - {String? name, - int? number, - bool? flag, - amplify_core.TemporalTime? date, - double? rootbeer}) { + Sample copyWith({ + String? name, + int? number, + bool? flag, + amplify_core.TemporalTime? date, + double? rootbeer, + }) { return Sample._internal( - id: id, - name: name ?? this.name, - number: number ?? this.number, - flag: flag ?? this.flag, - date: date ?? this.date, - rootbeer: rootbeer ?? this.rootbeer); + id: id, + name: name ?? this.name, + number: number ?? this.number, + flag: flag ?? this.flag, + date: date ?? this.date, + rootbeer: rootbeer ?? this.rootbeer, + ); } - Sample copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? number, - ModelFieldValue? flag, - ModelFieldValue? date, - ModelFieldValue? rootbeer}) { + Sample copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? number, + ModelFieldValue? flag, + ModelFieldValue? date, + ModelFieldValue? rootbeer, + }) { return Sample._internal( - id: id, - name: name == null ? this.name : name.value, - number: number == null ? this.number : number.value, - flag: flag == null ? this.flag : flag.value, - date: date == null ? this.date : date.value, - rootbeer: rootbeer == null ? this.rootbeer : rootbeer.value); + id: id, + name: name == null ? this.name : name.value, + number: number == null ? this.number : number.value, + flag: flag == null ? this.flag : flag.value, + date: date == null ? this.date : date.value, + rootbeer: rootbeer == null ? this.rootbeer : rootbeer.value, + ); } Sample.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _number = (json['number'] as num?)?.toInt(), - _flag = json['flag'], - _date = json['date'] != null - ? amplify_core.TemporalTime.fromString(json['date']) - : null, - _rootbeer = (json['rootbeer'] as num?)?.toDouble(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _number = (json['number'] as num?)?.toInt(), + _flag = json['flag'], + _date = + json['date'] != null + ? amplify_core.TemporalTime.fromString(json['date']) + : null, + _rootbeer = (json['rootbeer'] as num?)?.toDouble(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'number': _number, - 'flag': _flag, - 'date': _date?.format(), - 'rootbeer': _rootbeer, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'number': _number, + 'flag': _flag, + 'date': _date?.format(), + 'rootbeer': _rootbeer, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'number': _number, - 'flag': _flag, - 'date': _date, - 'rootbeer': _rootbeer, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'number': _number, + 'flag': _flag, + 'date': _date, + 'rootbeer': _rootbeer, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final NUMBER = amplify_core.QueryField(fieldName: "number"); @@ -228,28 +241,32 @@ class Sample extends amplify_core.Model { static final DATE = amplify_core.QueryField(fieldName: "date"); static final ROOTBEER = amplify_core.QueryField(fieldName: "rootbeer"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Sample"; - modelSchemaDefinition.pluralName = "Samples"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Sample"; + modelSchemaDefinition.pluralName = "Samples"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.APIKEY, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.USERPOOLS, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -258,62 +275,90 @@ class Sample extends amplify_core.Model { amplify_core.ModelOperation.READ, amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, - amplify_core.ModelOperation.DELETE - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Sample.NAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Sample.NUMBER, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Sample.FLAG, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.bool))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Sample.DATE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.time))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Sample.ROOTBEER, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.double))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.DELETE, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Sample.NAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Sample.NUMBER, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Sample.FLAG, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.bool, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Sample.DATE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.time, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Sample.ROOTBEER, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.double, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _SampleModelType extends amplify_core.ModelType { @@ -344,10 +389,10 @@ class SampleModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/models/lowerCase.dart b/packages/api/amplify_api/example/lib/models/lowerCase.dart index 2cb06cc2e6..034e5b8326 100644 --- a/packages/api/amplify_api/example/lib/models/lowerCase.dart +++ b/packages/api/amplify_api/example/lib/models/lowerCase.dart @@ -34,7 +34,8 @@ class lowerCase extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -47,11 +48,15 @@ class lowerCase extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -63,15 +68,20 @@ class lowerCase extends amplify_core.Model { return _updatedAt; } - const lowerCase._internal( - {required this.id, required name, createdAt, updatedAt}) - : _name = name, - _createdAt = createdAt, - _updatedAt = updatedAt; + const lowerCase._internal({ + required this.id, + required name, + createdAt, + updatedAt, + }) : _name = name, + _createdAt = createdAt, + _updatedAt = updatedAt; factory lowerCase({String? id, required String name}) { return lowerCase._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, name: name); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + ); } bool equals(Object other) { @@ -94,11 +104,14 @@ class lowerCase extends amplify_core.Model { buffer.write("lowerCase {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -110,61 +123,69 @@ class lowerCase extends amplify_core.Model { lowerCase copyWithModelFieldValues({ModelFieldValue? name}) { return lowerCase._internal( - id: id, name: name == null ? this.name : name.value); + id: id, + name: name == null ? this.name : name.value, + ); } lowerCase.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "lowerCase"; - modelSchemaDefinition.pluralName = "lowerCases"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "lowerCase"; + modelSchemaDefinition.pluralName = "lowerCases"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.APIKEY, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PUBLIC, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.IAM, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, provider: amplify_core.AuthRuleProvider.USERPOOLS, - operations: const [amplify_core.ModelOperation.READ]), - amplify_core.AuthRule( + operations: const [amplify_core.ModelOperation.READ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -173,38 +194,50 @@ class lowerCase extends amplify_core.Model { amplify_core.ModelOperation.READ, amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, - amplify_core.ModelOperation.DELETE - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: lowerCase.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.DELETE, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: lowerCase.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _lowerCaseModelType extends amplify_core.ModelType { @@ -236,10 +269,10 @@ class lowerCaseModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api/example/lib/rest_api_view.dart b/packages/api/amplify_api/example/lib/rest_api_view.dart index b16c079aec..acd47708a8 100644 --- a/packages/api/amplify_api/example/lib/rest_api_view.dart +++ b/packages/api/amplify_api/example/lib/rest_api_view.dart @@ -61,9 +61,7 @@ class _RestApiViewState extends State { void onGetPressed() async { try { - final restOperation = Amplify.API.get( - _apiPathController.text, - ); + final restOperation = Amplify.API.get(_apiPathController.text); _lastRestOperation = restOperation; final response = await restOperation.response; @@ -78,9 +76,7 @@ class _RestApiViewState extends State { void onDeletePressed() async { try { - final restOperation = Amplify.API.delete( - _apiPathController.text, - ); + final restOperation = Amplify.API.delete(_apiPathController.text); _lastRestOperation = restOperation; final response = await restOperation.response; @@ -103,9 +99,7 @@ class _RestApiViewState extends State { void onHeadPressed() async { try { - final restOperation = Amplify.API.head( - _apiPathController.text, - ); + final restOperation = Amplify.API.head(_apiPathController.text); _lastRestOperation = restOperation; await restOperation.response; @@ -146,30 +140,12 @@ class _RestApiViewState extends State { labelText: 'apiPath', ), ), - ElevatedButton( - onPressed: onPostPressed, - child: const Text('Post'), - ), - ElevatedButton( - onPressed: onPutPressed, - child: const Text('Put'), - ), - ElevatedButton( - onPressed: onGetPressed, - child: const Text('Get'), - ), - ElevatedButton( - onPressed: onCancelPressed, - child: const Text('Cancel'), - ), - ElevatedButton( - onPressed: onDeletePressed, - child: const Text('Delete'), - ), - ElevatedButton( - onPressed: onHeadPressed, - child: const Text('Head'), - ), + ElevatedButton(onPressed: onPostPressed, child: const Text('Post')), + ElevatedButton(onPressed: onPutPressed, child: const Text('Put')), + ElevatedButton(onPressed: onGetPressed, child: const Text('Get')), + ElevatedButton(onPressed: onCancelPressed, child: const Text('Cancel')), + ElevatedButton(onPressed: onDeletePressed, child: const Text('Delete')), + ElevatedButton(onPressed: onHeadPressed, child: const Text('Head')), ElevatedButton(onPressed: onPatchPressed, child: const Text('Patch')), ], ); diff --git a/packages/api/amplify_api/example/lib/util/util.dart b/packages/api/amplify_api/example/lib/util/util.dart index 793b6166f0..bbe67e3ac1 100644 --- a/packages/api/amplify_api/example/lib/util/util.dart +++ b/packages/api/amplify_api/example/lib/util/util.dart @@ -5,9 +5,7 @@ import 'package:amplify_flutter/amplify_flutter.dart'; import 'package:flutter/material.dart'; -String handleResponse( - GraphQLResponse response, -) { +String handleResponse(GraphQLResponse response) { final data = response.data; if (data == null) { safePrint('errors: ${response.errors}'); diff --git a/packages/api/amplify_api/example/lib/widgets/auth_mode.dart b/packages/api/amplify_api/example/lib/widgets/auth_mode.dart index 4460508f0f..c402b3ad3e 100644 --- a/packages/api/amplify_api/example/lib/widgets/auth_mode.dart +++ b/packages/api/amplify_api/example/lib/widgets/auth_mode.dart @@ -23,23 +23,22 @@ class GraphQLAuthMode extends StatelessWidget { return Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - const Text( - 'Authorization Mode', - textAlign: TextAlign.left, - ), + const Text('Authorization Mode', textAlign: TextAlign.left), DropdownButton( value: authMode, icon: const Icon(Icons.arrow_downward), isExpanded: true, elevation: 16, onChanged: (apiType) => setAuthType(apiType!), - items: authTypes.map>( - (APIAuthorizationType value) { - return DropdownMenuItem( - value: value, - child: Text(value.authProviderToken.name), - ); - }).toList(), + items: + authTypes.map>(( + APIAuthorizationType value, + ) { + return DropdownMenuItem( + value: value, + child: Text(value.authProviderToken.name), + ); + }).toList(), ), ], ); diff --git a/packages/api/amplify_api/example/lib/widgets/create.dart b/packages/api/amplify_api/example/lib/widgets/create.dart index f629fb1f09..a3458c0594 100644 --- a/packages/api/amplify_api/example/lib/widgets/create.dart +++ b/packages/api/amplify_api/example/lib/widgets/create.dart @@ -31,14 +31,9 @@ class GraphQLCreateExamples extends StatelessWidget { final blog = Blog(name: 'Example Blog - ${uuid()}'); setBlog(blog); - final req = ModelMutations.create( - blog, - authorizationMode: authMode, - ); + final req = ModelMutations.create(blog, authorizationMode: authMode); - final operation = Amplify.API.mutate( - request: req, - ); + final operation = Amplify.API.mutate(request: req); final response = await operation.response; setResults(handleResponse(response)); @@ -49,14 +44,9 @@ class GraphQLCreateExamples extends StatelessWidget { Future createPost() async { final post = Post(title: 'Example Post - ${uuid()}', rating: 3, blog: blog); setPost(post); - final req = ModelMutations.create( - post, - authorizationMode: authMode, - ); + final req = ModelMutations.create(post, authorizationMode: authMode); - final operation = Amplify.API.mutate( - request: req, - ); + final operation = Amplify.API.mutate(request: req); final response = await operation.response; setResults(handleResponse(response)); @@ -66,14 +56,9 @@ class GraphQLCreateExamples extends StatelessWidget { // Attached to the last created blog and post Future createComment() async { final comment = Comment(content: 'Example Comment - ${uuid()}', post: post); - final req = ModelMutations.create( - comment, - authorizationMode: authMode, - ); + final req = ModelMutations.create(comment, authorizationMode: authMode); - final operation = Amplify.API.mutate( - request: req, - ); + final operation = Amplify.API.mutate(request: req); final response = await operation.response; setResults(handleResponse(response)); @@ -84,10 +69,7 @@ class GraphQLCreateExamples extends StatelessWidget { return Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - const Text( - 'Create', - textAlign: TextAlign.left, - ), + const Text('Create', textAlign: TextAlign.left), Wrap( alignment: WrapAlignment.spaceBetween, spacing: 12, diff --git a/packages/api/amplify_api/example/lib/widgets/get_by_id.dart b/packages/api/amplify_api/example/lib/widgets/get_by_id.dart index 829d515308..db2d333858 100644 --- a/packages/api/amplify_api/example/lib/widgets/get_by_id.dart +++ b/packages/api/amplify_api/example/lib/widgets/get_by_id.dart @@ -120,10 +120,7 @@ class GraphQLGetByIdExamples extends StatelessWidget { setBlogID(BlogModelIdentifier(id: newValue)); }, ), - apiButton( - onPressed: getBlog, - text: 'Get Blog', - ), + apiButton(onPressed: getBlog, text: 'Get Blog'), const SizedBox(height: 10), TextFormField( decoration: const InputDecoration( @@ -134,10 +131,7 @@ class GraphQLGetByIdExamples extends StatelessWidget { setPostID(PostModelIdentifier(id: newValue)); }, ), - apiButton( - onPressed: getPost, - text: 'Get Post', - ), + apiButton(onPressed: getPost, text: 'Get Post'), const SizedBox(height: 10), TextFormField( decoration: const InputDecoration( @@ -148,10 +142,7 @@ class GraphQLGetByIdExamples extends StatelessWidget { setCommentID(CommentModelIdentifier(id: newValue)); }, ), - apiButton( - onPressed: getComment, - text: 'Get Comment', - ), + apiButton(onPressed: getComment, text: 'Get Comment'), ], ); } diff --git a/packages/api/amplify_api/example/lib/widgets/query.dart b/packages/api/amplify_api/example/lib/widgets/query.dart index af4207ac3d..e04559bf1a 100644 --- a/packages/api/amplify_api/example/lib/widgets/query.dart +++ b/packages/api/amplify_api/example/lib/widgets/query.dart @@ -22,10 +22,7 @@ class GraphQLQueryExamples extends StatelessWidget { /// Get a list of blogs with model query helper Future queryBlogs() async { - final req = ModelQueries.list( - Blog.classType, - authorizationMode: authMode, - ); + final req = ModelQueries.list(Blog.classType, authorizationMode: authMode); final operation = Amplify.API.query(request: req); @@ -72,11 +69,11 @@ class GraphQLQueryExamples extends StatelessWidget { final req = GraphQLRequest>( document: document, + // The response from this query will be a list of Comments // these two parameters are required to decode the response // into type safe model objects. // Without them the response will be returned as a Map - decodePath: 'listComments', modelType: const PaginatedModelType(Comment.classType), ); @@ -92,10 +89,7 @@ class GraphQLQueryExamples extends StatelessWidget { return Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - const Text( - 'List', - textAlign: TextAlign.left, - ), + const Text('List', textAlign: TextAlign.left), Wrap( alignment: WrapAlignment.spaceBetween, spacing: 12, diff --git a/packages/api/amplify_api/example/lib/widgets/subscribe.dart b/packages/api/amplify_api/example/lib/widgets/subscribe.dart index b398052c01..3d503297cf 100644 --- a/packages/api/amplify_api/example/lib/widgets/subscribe.dart +++ b/packages/api/amplify_api/example/lib/widgets/subscribe.dart @@ -32,9 +32,9 @@ class GraphQLSubscriptionsExamples extends StatelessWidget { final StreamSubscription>? subscriptionByID; final void Function(String) setResults; final void Function(StreamSubscription>) - setSubscription; + setSubscription; final void Function(StreamSubscription>) - setSubscriptionByID; + setSubscriptionByID; final void Function(void Function()?)? setUnsubscribe; final void Function()? unsubscribe; @@ -56,9 +56,7 @@ class GraphQLSubscriptionsExamples extends StatelessWidget { final streamSubscription = operation.listen( handleSubscriptionEvents, - onError: (Object error) => print( - 'Error in GraphQL subscription: $error', - ), + onError: (Object error) => print('Error in GraphQL subscription: $error'), ); setSubscription(streamSubscription); @@ -85,9 +83,7 @@ class GraphQLSubscriptionsExamples extends StatelessWidget { final streamSubscription = operation.listen( handleSubscriptionEvents, - onError: (Object error) => print( - 'Error in GraphQL subscription: $error', - ), + onError: (Object error) => print('Error in GraphQL subscription: $error'), ); setSubscriptionByID(streamSubscription); setUnsubscribe!(streamSubscription.cancel); @@ -98,10 +94,7 @@ class GraphQLSubscriptionsExamples extends StatelessWidget { return Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - const Text( - 'Subscriptions', - textAlign: TextAlign.left, - ), + const Text('Subscriptions', textAlign: TextAlign.left), Wrap( alignment: WrapAlignment.spaceBetween, spacing: 12, @@ -112,18 +105,20 @@ class GraphQLSubscriptionsExamples extends StatelessWidget { text: 'Blogs', ), apiButton( - onPressed: subscriptionByID == null && blog != null - ? subscribeByID - : null, + onPressed: + subscriptionByID == null && blog != null + ? subscribeByID + : null, text: 'Posts By BlogID', ), apiButton( - onPressed: unsubscribe != null - ? () { - unsubscribe!.call(); - setUnsubscribe!(null); - } - : null, + onPressed: + unsubscribe != null + ? () { + unsubscribe!.call(); + setUnsubscribe!(null); + } + : null, text: 'Unsubscribe', ), ], diff --git a/packages/api/amplify_api/example/pubspec.yaml b/packages/api/amplify_api/example/pubspec.yaml index 7d9866cae2..3797b53a79 100644 --- a/packages/api/amplify_api/example/pubspec.yaml +++ b/packages/api/amplify_api/example/pubspec.yaml @@ -6,8 +6,8 @@ description: Demonstrates how to use the amplify_api plugin. publish_to: "none" # Remove this line if you wish to publish to pub.dev environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_api: ">=1.0.0-next.8 <1.0.0-next.9" diff --git a/packages/api/amplify_api/lib/amplify_api.dart b/packages/api/amplify_api/lib/amplify_api.dart index c7dbfa3f0a..a1df166d30 100644 --- a/packages/api/amplify_api/lib/amplify_api.dart +++ b/packages/api/amplify_api/lib/amplify_api.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_api; +library; export 'package:amplify_api/src/api_plugin_impl.dart'; export 'package:amplify_api_dart/amplify_api_dart.dart' diff --git a/packages/api/amplify_api/lib/src/api_plugin_impl.dart b/packages/api/amplify_api/lib/src/api_plugin_impl.dart index dd23b97739..ea52c77534 100644 --- a/packages/api/amplify_api/lib/src/api_plugin_impl.dart +++ b/packages/api/amplify_api/lib/src/api_plugin_impl.dart @@ -11,12 +11,11 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class AmplifyAPI extends AmplifyAPIDart with AWSDebuggable { /// {@macro amplify_api.amplify_api} - AmplifyAPI({ - super.options, - }) : super( - connectivity: const ConnectivityPlusPlatform(), - processLifeCycle: FlutterLifeCycle(), - ); + AmplifyAPI({super.options}) + : super( + connectivity: const ConnectivityPlusPlatform(), + processLifeCycle: FlutterLifeCycle(), + ); @override Future addPlugin({ diff --git a/packages/api/amplify_api/lib/src/connectivity_plus_platform.dart b/packages/api/amplify_api/lib/src/connectivity_plus_platform.dart index 3ce55a10bd..68f63c3269 100644 --- a/packages/api/amplify_api/lib/src/connectivity_plus_platform.dart +++ b/packages/api/amplify_api/lib/src/connectivity_plus_platform.dart @@ -15,11 +15,12 @@ class ConnectivityPlusPlatform extends ConnectivityPlatform { @override Stream get onConnectivityChanged => Connectivity() - .onConnectivityChanged - .map((List connectivityResults) { + .onConnectivityChanged + .map((List connectivityResults) { // Check if any of the results indicate a connection - final isConnected = connectivityResults - .any((result) => result != ConnectivityResult.none); + final isConnected = connectivityResults.any( + (result) => result != ConnectivityResult.none, + ); return isConnected ? ConnectivityStatus.connected diff --git a/packages/api/amplify_api/lib/src/flutter_life_cycle.dart b/packages/api/amplify_api/lib/src/flutter_life_cycle.dart index 92405745eb..6ac548c1e8 100644 --- a/packages/api/amplify_api/lib/src/flutter_life_cycle.dart +++ b/packages/api/amplify_api/lib/src/flutter_life_cycle.dart @@ -14,13 +14,12 @@ import 'package:meta/meta.dart'; class FlutterLifeCycle extends ProcessLifeCycle { /// {@macro amplify_api.flutter_life_cycle} FlutterLifeCycle() { - AppLifecycleListener( - onStateChange: _onStateChange, - ); + AppLifecycleListener(onStateChange: _onStateChange); } - final _stateController = - StreamController.broadcast(sync: true); + final _stateController = StreamController.broadcast( + sync: true, + ); @override Stream get onStateChanged => _stateController.stream; diff --git a/packages/api/amplify_api/pubspec.yaml b/packages/api/amplify_api/pubspec.yaml index dbd7a0414b..3842cdc88a 100644 --- a/packages/api/amplify_api/pubspec.yaml +++ b/packages/api/amplify_api/pubspec.yaml @@ -1,13 +1,13 @@ name: amplify_api description: The Amplify Flutter API category plugin, supporting GraphQL and REST operations. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/api/amplify_api issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" # Helps `pana` since we do not use Flutter plugins for most platforms platforms: @@ -19,17 +19,17 @@ platforms: web: dependencies: - amplify_api_dart: ">=0.5.9 <0.6.0" - amplify_core: ">=2.6.1 <2.7.0" - amplify_flutter: ">=2.6.1 <2.7.0" + amplify_api_dart: ">=0.5.10 <0.6.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_flutter: ">=2.6.2 <2.7.0" connectivity_plus: ^6.0.1 flutter: sdk: flutter - meta: ^1.7.0 + meta: ^1.16.0 plugin_platform_interface: ^2.0.0 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" amplify_test: path: ../../test/amplify_test build_runner: ^2.4.9 diff --git a/packages/api/amplify_api/test/connectivity_plus_platform_test.dart b/packages/api/amplify_api/test/connectivity_plus_platform_test.dart index a61e5bddd2..ebbc743464 100644 --- a/packages/api/amplify_api/test/connectivity_plus_platform_test.dart +++ b/packages/api/amplify_api/test/connectivity_plus_platform_test.dart @@ -46,29 +46,17 @@ void main() { stream = streamCreator.onConnectivityChanged; }); - test( - 'returns connected status when ConnectivityPlus returns wifi', - () { - expect( - stream, - emits(ConnectivityStatus.connected), - ); - stream.listen(null); - fakePlatform.controller.sink.add([ConnectivityResult.wifi]); - }, - ); + test('returns connected status when ConnectivityPlus returns wifi', () { + expect(stream, emits(ConnectivityStatus.connected)); + stream.listen(null); + fakePlatform.controller.sink.add([ConnectivityResult.wifi]); + }); - test( - 'returns disconnected status when ConnectivityPlus returns none', - () { - expect( - stream, - emits(ConnectivityStatus.disconnected), - ); - stream.listen(null); - fakePlatform.controller.sink.add([ConnectivityResult.none]); - }, - ); + test('returns disconnected status when ConnectivityPlus returns none', () { + expect(stream, emits(ConnectivityStatus.disconnected)); + stream.listen(null); + fakePlatform.controller.sink.add([ConnectivityResult.none]); + }); test( 'returns disconnected/connected while changing connection status among several states', @@ -93,12 +81,7 @@ void main() { test( 'returns connected when ConnectivityPlus returns multiple type of connection.', () { - expect( - stream, - emitsInOrder([ - ConnectivityStatus.connected, - ]), - ); + expect(stream, emitsInOrder([ConnectivityStatus.connected])); stream.listen(null); fakePlatform.controller.sink.add([ ConnectivityResult.wifi, diff --git a/packages/api/amplify_api_dart/CHANGELOG.md b/packages/api/amplify_api_dart/CHANGELOG.md index ac19371b03..7446ca92b0 100644 --- a/packages/api/amplify_api_dart/CHANGELOG.md +++ b/packages/api/amplify_api_dart/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.5.10 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.5.9 - Minor bug fixes and improvements diff --git a/packages/api/amplify_api_dart/lib/amplify_api_dart.dart b/packages/api/amplify_api_dart/lib/amplify_api_dart.dart index d689d1ccde..cfd6c8b777 100644 --- a/packages/api/amplify_api_dart/lib/amplify_api_dart.dart +++ b/packages/api/amplify_api_dart/lib/amplify_api_dart.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Amplify API for Dart -library amplify_api_dart; +library; export 'package:amplify_core/src/types/api/api_types.dart' hide WebSocketOptions; diff --git a/packages/api/amplify_api_dart/lib/src/api_plugin_impl.dart b/packages/api/amplify_api_dart/lib/src/api_plugin_impl.dart index c4248bbc45..012c18ff67 100644 --- a/packages/api/amplify_api_dart/lib/src/api_plugin_impl.dart +++ b/packages/api/amplify_api_dart/lib/src/api_plugin_impl.dart @@ -32,9 +32,9 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { APIPluginOptions options = const APIPluginOptions(), ConnectivityPlatform connectivity = const ConnectivityPlatform(), ProcessLifeCycle processLifeCycle = const ProcessLifeCycle(), - }) : _options = options, - _connectivity = connectivity, - _processLifeCycle = processLifeCycle { + }) : _options = options, + _connectivity = connectivity, + _processLifeCycle = processLifeCycle { _options.authProviders.forEach(registerAuthProvider); } @@ -97,7 +97,8 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { if (dataConfig == null && restApiConfig == null) { throw ConfigurationError( 'No API config found', - recoverySuggestion: 'Add API configuration to use API plugin. See ' + recoverySuggestion: + 'Add API configuration to use API plugin. See ' 'https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/flutter/#configure-api', ); } @@ -132,8 +133,9 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { // Check the presence of apiKey (not auth type) because other modes might // have a key if not the primary auth mode. if (value.defaultAuthorizationType == APIAuthorizationType.apiKey || - value.authorizationTypes - .any((element) => element == APIAuthorizationType.apiKey)) { + value.authorizationTypes.any( + (element) => element == APIAuthorizationType.apiKey, + )) { _authProviderRepo.registerAuthProvider( APIAuthorizationType.apiKey.authProviderToken, AppSyncApiKeyAuthProvider(), @@ -192,20 +194,21 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { EndpointConfig _getEndpointConfig(ApiType type, String? apiName) { if (type == ApiType.graphQL) { if (_dataConfig == null) { - throw ConfigurationError( - 'No GraphQL API endpoint found.', - ); + throw ConfigurationError('No GraphQL API endpoint found.'); } DataOutputs config; if (apiName != null) { - config = _dataConfig.entries - .firstWhere( - (config) => config.key == apiName, - orElse: () => throw ConfigurationError( - 'No GraphQL API endpoint found matching apiName $apiName.', - ), - ) - .value; + config = + _dataConfig.entries + .firstWhere( + (config) => config.key == apiName, + orElse: + () => + throw ConfigurationError( + 'No GraphQL API endpoint found matching apiName $apiName.', + ), + ) + .value; } else { if (_dataConfig.length > 1) { throw ConfigurationError( @@ -216,27 +219,25 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { config = _dataConfig.values.first; apiName = _dataConfig.keys.first; } - return EndpointConfig( - apiName, - config, - ); + return EndpointConfig(apiName, config); } if (type == ApiType.rest) { if (_restConfig == null) { - throw ConfigurationError( - 'No REST API endpoint found.', - ); + throw ConfigurationError('No REST API endpoint found.'); } RestApiOutputs config; if (apiName != null) { - config = _restConfig.entries - .firstWhere( - (config) => config.key == apiName, - orElse: () => throw ConfigurationError( - 'No REST API endpoint found matching apiName $apiName.', - ), - ) - .value; + config = + _restConfig.entries + .firstWhere( + (config) => config.key == apiName, + orElse: + () => + throw ConfigurationError( + 'No REST API endpoint found matching apiName $apiName.', + ), + ) + .value; } else { if (_restConfig.length > 1) { throw ConfigurationError( @@ -247,21 +248,13 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { config = _restConfig.values.first; apiName = _restConfig.keys.first; } - return EndpointConfig( - apiName, - config, - ); + return EndpointConfig(apiName, config); } - throw ConfigurationError( - 'Endpoint type $type is not supported.', - ); + throw ConfigurationError('Endpoint type $type is not supported.'); } WebSocketBloc _webSocketBloc({String? apiName}) { - final endpoint = _getEndpointConfig( - ApiType.graphQL, - apiName, - ); + final endpoint = _getEndpointConfig(ApiType.graphQL, apiName); return _webSocketBlocPool[endpoint.name] ??= createWebSocketBloc(endpoint) ..stream.listen((event) { @@ -288,10 +281,7 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { } Uri _getGraphQLUri(String? apiName) { - final endpoint = _getEndpointConfig( - ApiType.graphQL, - apiName, - ); + final endpoint = _getEndpointConfig(ApiType.graphQL, apiName); return endpoint.getUri(); } @@ -300,10 +290,7 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { String? apiName, Map? queryParameters, ) { - final endpoint = _getEndpointConfig( - ApiType.rest, - apiName, - ); + final endpoint = _getEndpointConfig(ApiType.rest, apiName); return endpoint.getUri(path: path, queryParameters: queryParameters); } @@ -383,10 +370,7 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { final uri = _getRestUri(path, apiName, queryParameters); final client = getHttpClient(ApiType.rest, apiName: apiName); return RestOperation.fromHttpOperation( - AWSHttpRequest.get( - uri, - headers: headers, - ).send(client: client), + AWSHttpRequest.get(uri, headers: headers).send(client: client), ); } @@ -400,10 +384,7 @@ class AmplifyAPIDart extends APIPluginInterface with AWSDebuggable { final uri = _getRestUri(path, apiName, queryParameters); final client = getHttpClient(ApiType.rest, apiName: apiName); return RestOperation.fromHttpOperation( - AWSHttpRequest.head( - uri, - headers: headers, - ).send(client: client), + AWSHttpRequest.head(uri, headers: headers).send(client: client), ); } diff --git a/packages/api/amplify_api_dart/lib/src/decorators/authorize_http_request.dart b/packages/api/amplify_api_dart/lib/src/decorators/authorize_http_request.dart index b2271ef4a7..3bb74d3643 100644 --- a/packages/api/amplify_api_dart/lib/src/decorators/authorize_http_request.dart +++ b/packages/api/amplify_api_dart/lib/src/decorators/authorize_http_request.dart @@ -47,14 +47,16 @@ Future authorizeHttpRequest( return authorizedRequest; case APIAuthorizationType.iam: final authProvider = _validateAuthProvider( - authProviderRepo - .getAuthProvider(APIAuthorizationType.iam.authProviderToken), + authProviderRepo.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ), authType, ); final isGraphQL = endpointConfig.apiType == ApiType.graphQL; - final service = isGraphQL - ? AWSService.appSync - : AWSService.apiGatewayManagementApi; // resolves to "execute-api" + final service = + isGraphQL + ? AWSService.appSync + : AWSService.apiGatewayManagementApi; // resolves to "execute-api" // Do not sign body for REST to avoid CORS issue on web. final serviceConfiguration = isGraphQL ? null : const ServiceConfiguration(signBody: false); diff --git a/packages/api/amplify_api_dart/lib/src/decorators/web_socket_auth_utils.dart b/packages/api/amplify_api_dart/lib/src/decorators/web_socket_auth_utils.dart index ee26bf2d77..01e6c529af 100644 --- a/packages/api/amplify_api_dart/lib/src/decorators/web_socket_auth_utils.dart +++ b/packages/api/amplify_api_dart/lib/src/decorators/web_socket_auth_utils.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_api.decorators.web_socket_auth_utils; +library; import 'dart:convert'; @@ -60,16 +60,14 @@ Future generateConnectionUri(ApiOutputs config) async { scheme: 'wss', host: endpointUriHost, path: path, - ).replace( - queryParameters: authQueryParameters, - ); + ).replace(queryParameters: authQueryParameters); } /// Generate websocket message with authorized payload to register subscription. /// /// See https://docs.aws.amazon.com/appsync/latest/devguide/real-time-websocket-client.html#subscription-registration-message Future - generateSubscriptionRegistrationMessage( +generateSubscriptionRegistrationMessage( ApiOutputs config, { required String id, required AmplifyAuthProviderRepository authRepo, @@ -121,10 +119,7 @@ Future> generateAuthorizationHeaders( final maybeConnect = isConnectionInit ? '/connect' : ''; final canonicalHttpRequest = AWSStreamedHttpRequest.post( Uri.parse('${config.url}$maybeConnect'), - headers: { - ...?customHeaders, - ..._requiredHeaders, - }, + headers: {...?customHeaders, ..._requiredHeaders}, body: HttpPayload.json(body), ); final authorizedHttpRequest = await authorizeHttpRequest( @@ -135,8 +130,5 @@ Future> generateAuthorizationHeaders( ); // Take authorized HTTP headers as map with "host" value added. - return { - ...authorizedHttpRequest.headers, - AWSHeaders.host: endpointHost, - }; + return {...authorizedHttpRequest.headers, AWSHeaders.host: endpointHost}; } diff --git a/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart b/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart index e5ce1b6ba2..d7cb89b30d 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/factories/graphql_request_factory.dart @@ -50,31 +50,38 @@ class GraphQLRequestFactory { }) { // Schema has been validated & schema.fields is non-nullable. // Get a list of field names to include in the request body. - final fields = schema.fields!.entries - .where( - (entry) => entry.value.association == null, - ) // ignore related model fields - .map((entry) { - if (entry.value.type.fieldType == ModelFieldTypeEnum.embedded || - entry.value.type.fieldType == ModelFieldTypeEnum.embeddedCollection) { - final embeddedSchema = - getModelSchemaByModelName(entry.value.type.ofCustomTypeName!, null); - final embeddedSelectionSet = _getSelectionSetFromModelSchema( - embeddedSchema, - GraphQLRequestOperation.get, - ); - return '${entry.key} { $embeddedSelectionSet }'; - } - return entry.key; - }).toList(); // e.g. ["id", "name", "createdAt"] + final fields = + schema.fields!.entries + .where( + (entry) => entry.value.association == null, + ) // ignore related model fields + .map((entry) { + if (entry.value.type.fieldType == ModelFieldTypeEnum.embedded || + entry.value.type.fieldType == + ModelFieldTypeEnum.embeddedCollection) { + final embeddedSchema = getModelSchemaByModelName( + entry.value.type.ofCustomTypeName!, + null, + ); + final embeddedSelectionSet = _getSelectionSetFromModelSchema( + embeddedSchema, + GraphQLRequestOperation.get, + ); + return '${entry.key} { $embeddedSelectionSet }'; + } + return entry.key; + }) + .toList(); // e.g. ["id", "name", "createdAt"] // If belongsTo, also add selection set of parent. final allBelongsTo = getBelongsToFieldsFromModelSchema(schema); for (final belongsTo in allBelongsTo) { final belongsToModelName = belongsTo.type.ofModelName; if (belongsToModelName != null && !ignoreParents) { - final parentSchema = - getModelSchemaByModelName(belongsToModelName, null); + final parentSchema = getModelSchemaByModelName( + belongsToModelName, + null, + ); final parentSelectionSet = _getSelectionSetFromModelSchema( parentSchema, GraphQLRequestOperation.get, @@ -94,13 +101,16 @@ class GraphQLRequestFactory { } // Get owner fields if present in auth rules - final ownerFields = (schema.authRules ?? []) - .map((authRule) => authRule.ownerField) - .whereNotNull() - .toList(); + final ownerFields = + (schema.authRules ?? []) + .map((authRule) => authRule.ownerField) + .whereNotNull() + .toList(); - final fieldSelection = - [...fields, ...ownerFields].join(' '); // e.g. "id name createdAt" + final fieldSelection = [ + ...fields, + ...ownerFields, + ].join(' '); // e.g. "id name createdAt" if (operation == GraphQLRequestOperation.list) { return '$items { $fieldSelection } nextToken'; @@ -128,8 +138,9 @@ class GraphQLRequestFactory { switch (operation) { case GraphQLRequestOperation.get: final indexes = schema.indexes; - final modelIndex = - indexes?.firstWhereOrNull((index) => index.name == null); + final modelIndex = indexes?.firstWhereOrNull( + (index) => index.name == null, + ); if (modelIndex != null) { // custom index(es), e.g. // upperOutput: no change (empty string) @@ -196,8 +207,10 @@ class GraphQLRequestFactory { int depth = 0, }) { // retrieve schema from ModelType and validate required properties - final schema = - getModelSchemaByModelName(modelType.modelName(), requestOperation); + final schema = getModelSchemaByModelName( + modelType.modelName(), + requestOperation, + ); // e.g. "Blog" or "Blogs" final name = _capitalize(_getName(schema, requestOperation)); @@ -249,10 +262,7 @@ class GraphQLRequestFactory { required Map input, Map? condition, }) { - return { - 'input': input, - 'condition': condition, - }; + return {'input': input, 'condition': condition}; } Map buildVariablesForSubscriptionRequest({ @@ -262,11 +272,11 @@ class GraphQLRequestFactory { if (where == null) { return {}; } - final filter = GraphQLRequestFactory.instance - .queryPredicateToGraphQLFilter(where, modelType); - return { - 'filter': filter, - }; + final filter = GraphQLRequestFactory.instance.queryPredicateToGraphQLFilter( + where, + modelType, + ); + return {'filter': filter}; } /// Translates a `QueryPredicate` to a map representing a GraphQL filter @@ -331,12 +341,13 @@ class GraphQLRequestFactory { // and, or return >>{ - typeExpression: queryPredicate.predicates - .map( - (predicate) => - queryPredicateToGraphQLFilter(predicate, modelType)!, - ) - .toList(), + typeExpression: + queryPredicate.predicates + .map( + (predicate) => + queryPredicateToGraphQLFilter(predicate, modelType)!, + ) + .toList(), }; } @@ -356,8 +367,10 @@ class GraphQLRequestFactory { Model model, { required GraphQLRequestOperation operation, }) { - final schema = - getModelSchemaByModelName(model.getInstanceType().modelName(), null); + final schema = getModelSchemaByModelName( + model.getInstanceType().modelName(), + null, + ); final modelJson = model.toJson(); // Get the primary key field name from parent schema(s) so it can be taken from @@ -387,8 +400,9 @@ class GraphQLRequestFactory { for (final belongsToKey in belongsToKeys) { final parentIdFieldName = primaryKeyIndex?.fields[i] ?? _defaultIdFieldName; - final belongsToValue = (modelJson[belongsToModelName] - as Map?)?[parentIdFieldName] as String?; + final belongsToValue = + (modelJson[belongsToModelName] as Map?)?[parentIdFieldName] + as String?; // Assign the parent ID(s) if the model has a parent. if (belongsToValue != null) { @@ -399,25 +413,27 @@ class GraphQLRequestFactory { modelJson.remove(belongsToModelName); } - final ownerFieldNames = (schema.authRules ?? []) - .map((authRule) => authRule.ownerField) - .whereNotNull() - .toSet(); + final ownerFieldNames = + (schema.authRules ?? []) + .map((authRule) => authRule.ownerField) + .whereNotNull() + .toSet(); // Remove some fields from input. - final fieldsToRemove = schema.fields!.entries - .where( - (entry) => - // relational fields - entry.value.association != null || - // read-only - entry.value.isReadOnly || - // null values for owner fields on create operations - (operation == GraphQLRequestOperation.create && - ownerFieldNames.contains(entry.value.name) && - modelJson[entry.value.name] == null), - ) - .map((entry) => entry.key) - .toSet(); + final fieldsToRemove = + schema.fields!.entries + .where( + (entry) => + // relational fields + entry.value.association != null || + // read-only + entry.value.isReadOnly || + // null values for owner fields on create operations + (operation == GraphQLRequestOperation.create && + ownerFieldNames.contains(entry.value.name) && + modelJson[entry.value.name] == null), + ) + .map((entry) => entry.key) + .toSet(); modelJson.removeWhere((key, dynamic value) => fieldsToRemove.contains(key)); return modelJson; diff --git a/packages/api/amplify_api_dart/lib/src/graphql/factories/model_mutations_factory.dart b/packages/api/amplify_api_dart/lib/src/graphql/factories/model_mutations_factory.dart index f281fd57f6..11af07f84a 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/factories/model_mutations_factory.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/factories/model_mutations_factory.dart @@ -67,8 +67,9 @@ class ModelMutationsFactory { }) { final condition = GraphQLRequestFactory.instance .queryPredicateToGraphQLFilter(where, modelType); - final input = modelIdentifier - .serializeAsMap(); // Simpler input than other mutations so don't use helper. + final input = + modelIdentifier + .serializeAsMap(); // Simpler input than other mutations so don't use helper. final variables = GraphQLRequestFactory.instance .buildVariablesForMutationRequest(input: input, condition: condition); diff --git a/packages/api/amplify_api_dart/lib/src/graphql/factories/model_queries_factory.dart b/packages/api/amplify_api_dart/lib/src/graphql/factories/model_queries_factory.dart index 46c4a7fd83..7cfb6db993 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/factories/model_queries_factory.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/factories/model_queries_factory.dart @@ -43,8 +43,10 @@ class ModelQueriesFactory { APIAuthorizationType? authorizationMode, Map? headers, }) { - final filter = GraphQLRequestFactory.instance - .queryPredicateToGraphQLFilter(where, modelType); + final filter = GraphQLRequestFactory.instance.queryPredicateToGraphQLFilter( + where, + modelType, + ); final variables = GraphQLRequestFactory.instance .buildVariablesForListRequest(limit: limit, filter: filter); diff --git a/packages/api/amplify_api_dart/lib/src/graphql/factories/model_subscriptions_factory.dart b/packages/api/amplify_api_dart/lib/src/graphql/factories/model_subscriptions_factory.dart index 5c98471b36..5220afa011 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/factories/model_subscriptions_factory.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/factories/model_subscriptions_factory.dart @@ -23,11 +23,11 @@ class ModelSubscriptionsFactory { Map? headers, QueryPredicate? where, }) { - final variables = - GraphQLRequestFactory.instance.buildVariablesForSubscriptionRequest( - modelType: modelType, - where: where, - ); + final variables = GraphQLRequestFactory.instance + .buildVariablesForSubscriptionRequest( + modelType: modelType, + where: where, + ); return GraphQLRequestFactory.instance.buildRequest( modelType: modelType, variables: variables, @@ -46,11 +46,11 @@ class ModelSubscriptionsFactory { Map? headers, QueryPredicate? where, }) { - final variables = - GraphQLRequestFactory.instance.buildVariablesForSubscriptionRequest( - modelType: modelType, - where: where, - ); + final variables = GraphQLRequestFactory.instance + .buildVariablesForSubscriptionRequest( + modelType: modelType, + where: where, + ); return GraphQLRequestFactory.instance.buildRequest( modelType: modelType, variables: variables, @@ -69,11 +69,11 @@ class ModelSubscriptionsFactory { Map? headers, QueryPredicate? where, }) { - final variables = - GraphQLRequestFactory.instance.buildVariablesForSubscriptionRequest( - modelType: modelType, - where: where, - ); + final variables = GraphQLRequestFactory.instance + .buildVariablesForSubscriptionRequest( + modelType: modelType, + where: where, + ); return GraphQLRequestFactory.instance.buildRequest( modelType: modelType, variables: variables, diff --git a/packages/api/amplify_api_dart/lib/src/graphql/helpers/graphql_response_decoder.dart b/packages/api/amplify_api_dart/lib/src/graphql/helpers/graphql_response_decoder.dart index 9b4cfe063a..83509ff5ff 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/helpers/graphql_response_decoder.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/helpers/graphql_response_decoder.dart @@ -63,7 +63,8 @@ class GraphQLResponseDecoder { if (!dataJson!.containsKey(element)) { throw const ApiOperationException( 'decodePath did not match the structure of the JSON response', - recoverySuggestion: 'Include decodePath when creating a request ' + recoverySuggestion: + 'Include decodePath when creating a request ' 'that includes a modelType.', ); } @@ -97,13 +98,16 @@ class GraphQLResponseDecoder { apiName: request.apiName, ); } - decodedData = modelType.fromJson( - dataJson!, - limit: limit, - filter: filter, - requestForNextResult: - requestForNextResult as GraphQLRequest>?, - ) as T; + decodedData = + modelType.fromJson( + dataJson!, + limit: limit, + filter: filter, + requestForNextResult: + requestForNextResult + as GraphQLRequest>?, + ) + as T; } else { decodedData = modelType.fromJson(dataJson!) as T; } diff --git a/packages/api/amplify_api_dart/lib/src/graphql/utils.dart b/packages/api/amplify_api_dart/lib/src/graphql/utils.dart index 965cf3456b..97bf94c430 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/utils.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/utils.dart @@ -45,10 +45,9 @@ Iterable getBelongsToFieldsFromModelSchema( ModelSchema modelSchema, ) { return _getRelatedFields(modelSchema).singleFields.where( - (entry) => - entry.association?.associationType == - ModelAssociationEnum.BelongsTo, - ); + (entry) => + entry.association?.associationType == ModelAssociationEnum.BelongsTo, + ); } /// Gets the modelSchema from provider that matches the name and validates its fields. @@ -71,20 +70,24 @@ ModelSchema getModelSchemaByModelName( if (zIsWeb && modelName.endsWith(r'$')) { modelName = modelName.substring(0, modelName.length - 1); } - final schema = - (provider.modelSchemas + provider.customTypeSchemas).firstWhere( - (elem) => elem.name == modelName, - orElse: () => throw ApiOperationException( - 'No schema found for the ModelType provided: $modelName', - recoverySuggestion: 'Pass in a valid modelProvider instance while ' - 'instantiating APIPlugin or provide a valid ModelType', - ), - ); + final schema = (provider.modelSchemas + provider.customTypeSchemas) + .firstWhere( + (elem) => elem.name == modelName, + orElse: + () => + throw ApiOperationException( + 'No schema found for the ModelType provided: $modelName', + recoverySuggestion: + 'Pass in a valid modelProvider instance while ' + 'instantiating APIPlugin or provide a valid ModelType', + ), + ); if (schema.fields == null) { throw const ApiOperationException( 'Schema found does not have a fields property', - recoverySuggestion: 'Pass in a valid modelProvider instance while ' + recoverySuggestion: + 'Pass in a valid modelProvider instance while ' 'instantiating APIPlugin', ); } @@ -92,7 +95,8 @@ ModelSchema getModelSchemaByModelName( if (operation == GraphQLRequestOperation.list && schema.pluralName == null) { throw const ApiOperationException( 'No schema name found', - recoverySuggestion: 'Pass in a valid modelProvider instance while ' + recoverySuggestion: + 'Pass in a valid modelProvider instance while ' 'instantiating APIPlugin or provide a valid ModelType', ); } diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/subscriptions_bloc.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/subscriptions_bloc.dart index 3f98fc8a30..080d43d9bd 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/subscriptions_bloc.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/subscriptions_bloc.dart @@ -17,9 +17,7 @@ class SubscriptionBloc with AWSDebuggable, AmplifyLoggerMixin implements Closeable { /// {@macro amplify_api.subscription_bloc} - SubscriptionBloc( - WsSubscriptionState initialState, - ) { + SubscriptionBloc(WsSubscriptionState initialState) { _currentState = initialState; final blocStream = _wsEventStream.asyncExpand(_eventTransformer); _subscription = blocStream.listen(_emit); @@ -55,9 +53,7 @@ class SubscriptionBloc /// Response controller. late final StreamController> _responseController = - StreamController>.broadcast( - onCancel: _cancel, - ); + StreamController>.broadcast(onCancel: _cancel); /// Outputs graphql responses into a stream. late final Stream> responseStream = diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/web_socket_bloc.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/web_socket_bloc.dart index b3a3d90089..928949a6bc 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/web_socket_bloc.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/blocs/web_socket_bloc.dart @@ -36,9 +36,9 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { required ConnectivityPlatform connectivity, required ProcessLifeCycle processLifeCycle, AWSHttpClient? pollClientOverride, - }) : _connectivity = connectivity, - _processLifeCycle = processLifeCycle, - _pollClient = pollClientOverride ?? AWSHttpClient() { + }) : _connectivity = connectivity, + _processLifeCycle = processLifeCycle, + _pollClient = pollClientOverride ?? AWSHttpClient() { final subBlocs = >{}; _currentState = DisconnectedState( @@ -226,8 +226,9 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { 'We should never evaluate a connection ack message while not connecting.', ); - final timeoutDuration = - Duration(milliseconds: event.payload.connectionTimeoutMs); + final timeoutDuration = Duration( + milliseconds: event.payload.connectionTimeoutMs, + ); final timeoutTimer = RestartableTimer( timeoutDuration, () => _timeout(timeoutDuration), @@ -250,9 +251,7 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { // register any outstanding subs await Future.wait( - connectedState.subscriptionBlocs.values.map(( - bloc, - ) async { + connectedState.subscriptionBlocs.values.map((bloc) async { assert( bloc.currentState is SubscriptionPendingState, 'Subscription bloc should be in pending state for registration, but is ${bloc.currentState}', @@ -288,18 +287,20 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { 'Bloc should not be in ${_currentState.runtimeType} when calling init.', ); - _currentState.service.init(_currentState).listen( - // In some cases, the service will keep getting messages during/after - // disconnect. Ignore those messages. - _safeAdd, - onError: (Object error, StackTrace st) { - final exception = NetworkException( - 'Exception from WebSocketService.', - underlyingException: error.toString(), + _currentState.service + .init(_currentState) + .listen( + // In some cases, the service will keep getting messages during/after + // disconnect. Ignore those messages. + _safeAdd, + onError: (Object error, StackTrace st) { + final exception = NetworkException( + 'Exception from WebSocketService.', + underlyingException: error.toString(), + ); + _shutdownWithException(exception, st); + }, ); - _shutdownWithException(exception, st); - }, - ); yield _currentState.connecting(networkState: NetworkState.connected); } @@ -432,10 +433,7 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { } currentState.service - .register( - currentState, - request, - ) + .register(currentState, request) .onError(subscriptionBloc.addResponseError); } @@ -523,8 +521,9 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { } prev = status; }, - onError: (Object e, StackTrace st) => - logger.error('Error in connectivity stream $e, $st'), + onError: + (Object e, StackTrace st) => + logger.error('Error in connectivity stream $e, $st'), ); } @@ -550,8 +549,9 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { prev = state; }, - onError: (Object e, StackTrace st) => - logger.error('Error in process life cycle stream $e, $st'), + onError: + (Object e, StackTrace st) => + logger.error('Error in process life cycle stream $e, $st'), ); } @@ -586,9 +586,7 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { // Init a subscription state machine with and save it in state final subState = SubscriptionPendingState(event.request, callback, this); - final subBloc = SubscriptionBloc( - subState, - ); + final subBloc = SubscriptionBloc(subState); _currentState.subscriptionBlocs[event.request.id] = subBloc; return subBloc; @@ -608,9 +606,7 @@ class WebSocketBloc with AWSDebuggable, AmplifyLoggerMixin { /// GET request on the configured AppSync url via the `/poll` endpoint Future _sendPollRequest() { - final req = AWSHttpRequest.get( - _currentState.pollUri, - ); + final req = AWSHttpRequest.get(_currentState.pollUri); final op = req.send(client: _pollClient); return op.response.timeout( diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/services/web_socket_service.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/services/web_socket_service.dart index 8dcd49b3f4..78e0705135 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/services/web_socket_service.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/services/web_socket_service.dart @@ -25,20 +25,13 @@ import 'package:web_socket_channel/web_socket_channel.dart'; abstract class WebSocketService implements Closeable { /// Used to initialize a [WebSocketChannel] connection and return transformed /// messages as [WebSocketEvent] - Stream init( - WebSocketState state, - ); + Stream init(WebSocketState state); /// Subscribe a [GraphQLRequest] inside the provided [SubscriptionBloc] to a open [WebSocketChannel] - Future register( - ConnectedState state, - GraphQLRequest request, - ); + Future register(ConnectedState state, GraphQLRequest request); /// Unsubscribe a [GraphQLRequest] inside the provided [SubscriptionBloc] - Future unsubscribe( - String subscriptionId, - ); + Future unsubscribe(String subscriptionId); } /// {@template amplify_api.web_socket_service} @@ -55,9 +48,7 @@ class AmplifyWebSocketService WebSocketSink? sink; @override - Stream init( - WebSocketState state, - ) { + Stream init(WebSocketState state) { final sc = StreamCompleter(); _init(state, sc).catchError(sc.setError); @@ -124,20 +115,13 @@ class AmplifyWebSocketService GraphQLRequest request, ) async { // send registration msg - await _sendSubscriptionRegistrationMessage( - state, - request, - ); + await _sendSubscriptionRegistrationMessage(state, request); } @override - Future unsubscribe( - String subscriptionId, - ) async { + Future unsubscribe(String subscriptionId) async { logger.debug('Attempting to cancel Operation $subscriptionId'); - _send( - WebSocketStopMessage(id: subscriptionId), - ); + _send(WebSocketStopMessage(id: subscriptionId)); } void _send(WebSocketMessage message) { @@ -152,20 +136,18 @@ class AmplifyWebSocketService ) async { final subscriptionRegistrationMessage = await generateSubscriptionRegistrationMessage( - state.config, - id: request.id, - authRepo: state.authProviderRepo, - request: request, - ); + state.config, + id: request.id, + authRepo: state.authProviderRepo, + request: request, + ); _send(subscriptionRegistrationMessage); } - /// Transforms an event of from AppSync and converts it into a + /// Transforms an event of String from AppSync and converts it into a /// [WebSocketEvent] which gets consumed in [WebSocketBloc] @visibleForTesting - Stream transformStream( - Stream stream, - ) { + Stream transformStream(Stream stream) { return stream .transform(const WebSocketMessageStreamTransformer()) .map(_onData) @@ -173,9 +155,7 @@ class AmplifyWebSocketService .asBroadcastStream(); } - WebSocketEvent? _onData( - WebSocketMessage message, - ) { + WebSocketEvent? _onData(WebSocketMessage message) { logger.verbose(prettyPrintJson(message)); switch (message.messageType) { case MessageType.connectionAck: @@ -190,10 +170,7 @@ class AmplifyWebSocketService // Only handle general messages, not subscription-specific ones if (message.id != null) { - return SubscriptionErrorEvent( - message.id!, - wsError, - ); + return SubscriptionErrorEvent(message.id!, wsError); } final exception = ApiOperationException( diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/web_socket_state.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/web_socket_state.dart index b5d2414059..d956d348c3 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/web_socket_state.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/web_socket_state.dart @@ -52,16 +52,15 @@ abstract class WebSocketState { ConnectingState connecting({ NetworkState? networkState, IntendedState? intendedState, - }) => - ConnectingState( - config, - authProviderRepo, - networkState ?? this.networkState, - intendedState ?? this.intendedState, - service, - subscriptionBlocs, - options, - ); + }) => ConnectingState( + config, + authProviderRepo, + networkState ?? this.networkState, + intendedState ?? this.intendedState, + service, + subscriptionBlocs, + options, + ); /// Move state to [ReconnectingState] ReconnectingState reconnecting({ @@ -81,38 +80,38 @@ abstract class WebSocketState { /// Move state to [DisconnectedState] DisconnectedState disconnect() => DisconnectedState( - config, - authProviderRepo, - networkState, - intendedState, - service, - subscriptionBlocs, - options, - ); + config, + authProviderRepo, + networkState, + intendedState, + service, + subscriptionBlocs, + options, + ); /// Move state to [FailureState] FailureState failed(Object e, StackTrace st) => FailureState( - config, - authProviderRepo, - networkState, - intendedState, - service, - subscriptionBlocs, - options, - e, - st, - ); + config, + authProviderRepo, + networkState, + intendedState, + service, + subscriptionBlocs, + options, + e, + st, + ); /// Move state to [PendingDisconnect] PendingDisconnect shutdown() => PendingDisconnect( - config, - authProviderRepo, - networkState, - intendedState, - service, - subscriptionBlocs, - options, - ); + config, + authProviderRepo, + networkState, + intendedState, + service, + subscriptionBlocs, + options, + ); } /// State for when a new connection is pending @@ -231,10 +230,7 @@ class ConnectedState extends WebSocketState { /// Move state to [FailureState] @override - FailureState failed( - Object e, - StackTrace st, - ) { + FailureState failed(Object e, StackTrace st) { _cancelTimers(); return super.failed(e, st); diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/ws_subscriptions_state.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/ws_subscriptions_state.dart index ddc1b23446..bd9b36bac3 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/ws_subscriptions_state.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/state/ws_subscriptions_state.dart @@ -21,31 +21,17 @@ abstract class WsSubscriptionState { /// Move state to [SubscriptionCompletedState] SubscriptionCompletedState complete() { - return SubscriptionCompletedState( - request, - onEstablished, - parentBloc, - ); + return SubscriptionCompletedState(request, onEstablished, parentBloc); } /// Move state to [SubscriptionErrorState] SubscriptionErrorState error(Object e, StackTrace? st) { - return SubscriptionErrorState( - request, - onEstablished, - parentBloc, - e, - st, - ); + return SubscriptionErrorState(request, onEstablished, parentBloc, e, st); } /// Move state to [SubscriptionPendingState] SubscriptionPendingState pending() { - return SubscriptionPendingState( - request, - onEstablished, - parentBloc, - ); + return SubscriptionPendingState(request, onEstablished, parentBloc); } } @@ -60,11 +46,7 @@ class SubscriptionPendingState extends WsSubscriptionState { /// Move state to [SubscriptionListeningState] SubscriptionListeningState ready() { - return SubscriptionListeningState( - request, - onEstablished, - parentBloc, - ); + return SubscriptionListeningState(request, onEstablished, parentBloc); } } diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/subscriptions_event.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/subscriptions_event.dart index a32eebe089..031dae7b58 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/subscriptions_event.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/subscriptions_event.dart @@ -13,9 +13,7 @@ abstract class SubscriptionEvent extends WebSocketEvent { final String subscriptionId; @override - Map toJson() => { - 'subscriptionId': subscriptionId, - }; + Map toJson() => {'subscriptionId': subscriptionId}; } /// Web Socket Subscription start ack message event @@ -40,10 +38,7 @@ class SubscriptionPendingEvent extends SubscriptionEvent { class SubscriptionDataEvent extends SubscriptionEvent { /// Creates a data event. /// Takes in the associated subscription id [subscriptionId] and data [payload] - const SubscriptionDataEvent( - super.subscriptionId, - this.payload, - ); + const SubscriptionDataEvent(super.subscriptionId, this.payload); /// The data [payload] final SubscriptionDataPayload payload; @@ -53,18 +48,16 @@ class SubscriptionDataEvent extends SubscriptionEvent { @override Map toJson() => { - 'subscriptionId': subscriptionId, - 'payload': payload.toJson(), - }; + 'subscriptionId': subscriptionId, + 'payload': payload.toJson(), + }; } /// Web Socket Subscription complete message event class SubscriptionComplete extends SubscriptionEvent { /// Creates a complete event. /// Takes in the associated subscription id [subscriptionId] - const SubscriptionComplete( - super.subscriptionId, - ); + const SubscriptionComplete(super.subscriptionId); @override String get runtimeTypeName => 'SubscriptionComplete'; @@ -74,10 +67,7 @@ class SubscriptionComplete extends SubscriptionEvent { class SubscriptionErrorEvent extends SubscriptionEvent { /// Creates an error event. /// Takes a [subscriptionId] tied to the a web socket error [wsError] - const SubscriptionErrorEvent( - super.subscriptionId, - this.wsError, - ); + const SubscriptionErrorEvent(super.subscriptionId, this.wsError); /// The web socket error final WebSocketError wsError; @@ -87,7 +77,7 @@ class SubscriptionErrorEvent extends SubscriptionEvent { @override Map toJson() => { - 'subscriptionId': subscriptionId, - 'wsError': wsError.toJson(), - }; + 'subscriptionId': subscriptionId, + 'wsError': wsError.toJson(), + }; } diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_event.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_event.dart index a4f5d31b36..48e87c492b 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_event.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_event.dart @@ -34,9 +34,7 @@ class ConnectionAckMessageEvent extends WebSocketEvent { String get runtimeTypeName => 'ConnectionAckMessageEvent'; @override - Map toJson() => { - 'payload': payload.toJson(), - }; + Map toJson() => {'payload': payload.toJson()}; } /// Shut down web socket channel @@ -63,9 +61,7 @@ class NetworkEvent extends WebSocketEvent { String get runtimeTypeName => 'NetworkEvent'; @override - Map toJson() => { - 'networkState': networkState.name, - }; + Map toJson() => {'networkState': networkState.name}; } /// Discrete class for when the network is connected. @@ -125,9 +121,7 @@ class PollFailedEvent extends WebSocketEvent { String get runtimeTypeName => 'PollFailedEvent'; @override - Map toJson() => { - 'exception': exception.toString(), - }; + Map toJson() => {'exception': exception.toString()}; } /// Trigger reconnection of web socket channel and underlying subscriptions @@ -166,9 +160,7 @@ class WsErrorEvent extends WebSocketEvent { String get runtimeTypeName => 'WsErrorEvent'; @override - Map toJson() => { - 'exception': exception.toString(), - }; + Map toJson() => {'exception': exception.toString()}; } /// Connection Error while setting up web socket connection @@ -199,9 +191,7 @@ class SubscribeEvent extends WebSocketEvent { String get runtimeTypeName => 'SubscribeEvent<$T>'; @override - Map toJson() => { - 'request': request.toJson(), - }; + Map toJson() => {'request': request.toJson()}; } /// Unsubscribe event to remove registration from AppSync and remove from bloc @@ -216,7 +206,5 @@ class UnsubscribeEvent extends WebSocketEvent { String get runtimeTypeName => 'UnsubscribeEvent'; @override - Map toJson() => { - 'request': request.toJson(), - }; + Map toJson() => {'request': request.toJson()}; } diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_message_stream_transformer.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_message_stream_transformer.dart index ff8ef95a5d..f9a712f7ac 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_message_stream_transformer.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_message_stream_transformer.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_api.graphql.ws.web_socket_message_stream_transformer; +library; import 'dart:async'; import 'dart:convert'; @@ -21,9 +21,12 @@ class WebSocketMessageStreamTransformer @override Stream bind(Stream stream) { - return stream.cast().map>((str) { - return json.decode(str) as Map; - }).map(WebSocketMessage.fromJson); + return stream + .cast() + .map>((str) { + return json.decode(str) as Map; + }) + .map(WebSocketMessage.fromJson); } } diff --git a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_types.dart b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_types.dart index b2157be19e..3ad3ec0ab8 100644 --- a/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_types.dart +++ b/packages/api/amplify_api_dart/lib/src/graphql/web_socket/types/web_socket_types.dart @@ -4,7 +4,7 @@ // ignore_for_file: public_member_api_docs @internal -library amplify_api.graphql.ws.web_socket_types; +library; import 'dart:convert'; @@ -58,8 +58,11 @@ enum MessageType { abstract class WebSocketMessagePayload { const WebSocketMessagePayload(); - static const Map)> _factories = { + static const Map< + MessageType, + WebSocketMessagePayload Function(Map) + > + _factories = { MessageType.connectionAck: ConnectionAckMessagePayload.fromJson, MessageType.data: SubscriptionDataPayload.fromJson, MessageType.error: WebSocketError.fromJson, @@ -91,8 +94,8 @@ class ConnectionAckMessagePayload extends WebSocketMessagePayload { @override Map toJson() => { - 'connectionTimeoutMs': connectionTimeoutMs, - }; + 'connectionTimeoutMs': connectionTimeoutMs, + }; } class SubscriptionRegistrationPayload extends WebSocketMessagePayload { @@ -108,9 +111,10 @@ class SubscriptionRegistrationPayload extends WebSocketMessagePayload { @override Map toJson() { return { - 'data': jsonEncode( - {'variables': request.variables, 'query': request.document}, - ), + 'data': jsonEncode({ + 'variables': request.variables, + 'query': request.document, + }), 'extensions': >{ 'authorization': authorizationHeaders, }, @@ -134,9 +138,9 @@ class SubscriptionDataPayload extends WebSocketMessagePayload { @override Map toJson() => { - 'data': data, - 'errors': errors, - }; + 'data': data, + 'errors': errors, + }; } class WebSocketError extends WebSocketMessagePayload implements Exception { @@ -156,23 +160,14 @@ class WebSocketError extends WebSocketMessagePayload implements Exception { } @override - Map toJson() => { - 'errors': errors, - }; + Map toJson() => {'errors': errors}; } @immutable class WebSocketMessage { - WebSocketMessage({ - String? id, - required this.messageType, - this.payload, - }) : id = id ?? uuid(); - const WebSocketMessage._({ - this.id, - required this.messageType, - this.payload, - }); + WebSocketMessage({String? id, required this.messageType, this.payload}) + : id = id ?? uuid(); + const WebSocketMessage._({this.id, required this.messageType, this.payload}); final String? id; final MessageType messageType; final WebSocketMessagePayload? payload; @@ -182,12 +177,10 @@ class WebSocketMessage { final type = json['type'] as String; final messageType = MessageType.fromJson(type); final payloadMap = json['payload'] as Map?; - final payload = payloadMap == null - ? null - : WebSocketMessagePayload.fromJson( - payloadMap, - messageType, - ); + final payload = + payloadMap == null + ? null + : WebSocketMessagePayload.fromJson(payloadMap, messageType); return WebSocketMessage._( id: id, messageType: messageType, @@ -196,10 +189,10 @@ class WebSocketMessage { } Map toJson() => { - if (id != null) 'id': id, - 'type': messageType.type, - if (payload != null) 'payload': payload?.toJson(), - }; + if (id != null) 'id': id, + 'type': messageType.type, + if (payload != null) 'payload': payload?.toJson(), + }; @override String toString() { @@ -209,7 +202,7 @@ class WebSocketMessage { class WebSocketConnectionInitMessage extends WebSocketMessage { WebSocketConnectionInitMessage() - : super(messageType: MessageType.connectionInit); + : super(messageType: MessageType.connectionInit); } class WebSocketSubscriptionRegistrationMessage extends WebSocketMessage { @@ -221,5 +214,5 @@ class WebSocketSubscriptionRegistrationMessage extends WebSocketMessage { class WebSocketStopMessage extends WebSocketMessage { WebSocketStopMessage({required String id}) - : super(messageType: MessageType.stop, id: id); + : super(messageType: MessageType.stop, id: id); } diff --git a/packages/api/amplify_api_dart/lib/src/util/amplify_authorization_rest_client.dart b/packages/api/amplify_api_dart/lib/src/util/amplify_authorization_rest_client.dart index b2b4ac26d5..e581b16ae9 100644 --- a/packages/api/amplify_api_dart/lib/src/util/amplify_authorization_rest_client.dart +++ b/packages/api/amplify_api_dart/lib/src/util/amplify_authorization_rest_client.dart @@ -41,9 +41,7 @@ class AmplifyAuthorizationRestClient extends AWSBaseHttpClient { @override Future transformRequest(AWSBaseHttpRequest request) { if (request.scheme != 'https') { - throw const ApiOperationException( - 'Non-HTTPS requests not supported.', - ); + throw const ApiOperationException('Non-HTTPS requests not supported.'); } return authorizeHttpRequest( request, diff --git a/packages/api/amplify_api_dart/pubspec.yaml b/packages/api/amplify_api_dart/pubspec.yaml index ffd345b3db..5c2479f207 100644 --- a/packages/api/amplify_api_dart/pubspec.yaml +++ b/packages/api/amplify_api_dart/pubspec.yaml @@ -1,27 +1,27 @@ name: amplify_api_dart description: The Amplify API category plugin in Dart-only, supporting GraphQL and REST operations. -version: 0.5.9 +version: 0.5.10 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/api/amplify_api_dart issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - amplify_core: ">=2.6.1 <2.7.0" + amplify_core: ">=2.6.2 <2.7.0" async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" + aws_common: ">=0.7.7 <0.8.0" collection: ^1.15.0 json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 plugin_platform_interface: ^2.0.0 stream_transform: ^2.0.1 web_socket_channel: ^2.2.0 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" - aws_signature_v4: ">=0.6.4 <0.7.0" + amplify_lints: ">=3.1.2 <3.2.0" + aws_signature_v4: ">=0.6.5 <0.7.0" build_runner: ^2.4.9 build_test: ^2.1.5 build_web_compilers: ^4.0.0 diff --git a/packages/api/amplify_api_dart/test/amplify_api_config_test.dart b/packages/api/amplify_api_dart/test/amplify_api_config_test.dart index a133deb96c..e1fe9108e7 100644 --- a/packages/api/amplify_api_dart/test/amplify_api_config_test.dart +++ b/packages/api/amplify_api_dart/test/amplify_api_config_test.dart @@ -35,10 +35,7 @@ void main() { const endpoint = 'https://abc123.amazonaws.com/test'; const path = 'path/to/nowhere'; final params = {'foo': 'bar', 'bar': 'baz'}; - final endpointConfig = createEndpointConfig( - endpoint, - type: ApiType.rest, - ); + final endpointConfig = createEndpointConfig(endpoint, type: ApiType.rest); final uri = endpointConfig.getUri(path: path, queryParameters: params); const expected = '$endpoint/$path?foo=bar&bar=baz'; expect(uri.toString(), equals(expected)); @@ -48,10 +45,7 @@ void main() { const endpoint = 'https://abc123.amazonaws.com/test'; const path = '/path/to/nowhere/'; final params = {'foo': 'bar', 'bar': 'baz'}; - final endpointConfig = createEndpointConfig( - endpoint, - type: ApiType.rest, - ); + final endpointConfig = createEndpointConfig(endpoint, type: ApiType.rest); final uri = endpointConfig.getUri(path: path, queryParameters: params); const expected = '$endpoint$path?foo=bar&bar=baz'; expect(uri.toString(), equals(expected)); @@ -68,18 +62,18 @@ EndpointConfig createEndpointConfig( const apiKey = 'abc-123'; final config = switch (type) { ApiType.graphQL => DataOutputs( - url: endpoint, - awsRegion: region, - defaultAuthorizationType: authorizationType, - apiKey: apiKey, - authorizationTypes: [authorizationType], - ), + url: endpoint, + awsRegion: region, + defaultAuthorizationType: authorizationType, + apiKey: apiKey, + authorizationTypes: [authorizationType], + ), ApiType.rest => RestApiOutputs( - url: endpoint, - awsRegion: region, - authorizationType: authorizationType, - apiKey: apiKey, - ) + url: endpoint, + awsRegion: region, + authorizationType: authorizationType, + apiKey: apiKey, + ), }; final endpointConfig = EndpointConfig('api-name', config as ApiOutputs); return endpointConfig; diff --git a/packages/api/amplify_api_dart/test/authorize_http_request_test.dart b/packages/api/amplify_api_dart/test/authorize_http_request_test.dart index 784a92211a..216792874e 100644 --- a/packages/api/amplify_api_dart/test/authorize_http_request_test.dart +++ b/packages/api/amplify_api_dart/test/authorize_http_request_test.dart @@ -19,10 +19,7 @@ const _gqlEndpoint = const _restEndpoint = 'https://xyz456.execute-api.$_region.amazonaws.com/test'; AWSHttpRequest _generateTestRequest(String url) { - return AWSHttpRequest( - method: AWSHttpMethod.get, - uri: Uri.parse(url), - ); + return AWSHttpRequest(method: AWSHttpMethod.get, uri: Uri.parse(url)); } void main() { @@ -82,8 +79,10 @@ void main() { ); final inputRequest = _generateTestRequest(endpointConfig.url); const testAuthValue = 'foo'; - inputRequest.headers - .putIfAbsent(AWSHeaders.authorization, () => testAuthValue); + inputRequest.headers.putIfAbsent( + AWSHeaders.authorization, + () => testAuthValue, + ); final authorizedRequest = await authorizeHttpRequest( inputRequest, @@ -102,9 +101,7 @@ void main() { defaultAuthorizationType: APIAuthorizationType.iam, url: _gqlEndpoint, awsRegion: _region, - authorizationTypes: [ - APIAuthorizationType.iam, - ], + authorizationTypes: [APIAuthorizationType.iam], ); final inputRequest = _generateTestRequest(endpointConfig.url); final authorizedRequest = await authorizeHttpRequest( @@ -123,9 +120,7 @@ void main() { ); final inputRequest = AWSHttpRequest( method: AWSHttpMethod.post, - body: json.encode({ - 'foo': 'bar', - }).codeUnits, + body: json.encode({'foo': 'bar'}).codeUnits, uri: Uri.parse(endpointConfig.url), ); final authorizedRequest = await authorizeHttpRequest( @@ -153,10 +148,7 @@ void main() { endpointConfig: endpointConfig, authProviderRepo: authProviderRepo, ); - expect( - authorizedRequest.headers[xApiKey], - testApiKey, - ); + expect(authorizedRequest.headers[xApiKey], testApiKey); }); test('throws when API key not in config', () async { @@ -165,9 +157,7 @@ void main() { // no apiKey value provided url: _gqlEndpoint, awsRegion: _region, - authorizationTypes: [ - APIAuthorizationType.apiKey, - ], + authorizationTypes: [APIAuthorizationType.apiKey], ); final inputRequest = _generateTestRequest(endpointConfig.url); await expectLater( @@ -185,9 +175,7 @@ void main() { defaultAuthorizationType: APIAuthorizationType.userPools, url: _gqlEndpoint, awsRegion: _region, - authorizationTypes: [ - APIAuthorizationType.userPools, - ], + authorizationTypes: [APIAuthorizationType.userPools], ); final inputRequest = _generateTestRequest(endpointConfig.url); final authorizedRequest = await authorizeHttpRequest( @@ -206,9 +194,7 @@ void main() { defaultAuthorizationType: APIAuthorizationType.oidc, url: _gqlEndpoint, awsRegion: _region, - authorizationTypes: [ - APIAuthorizationType.oidc, - ], + authorizationTypes: [APIAuthorizationType.oidc], ); final inputRequest = _generateTestRequest(endpointConfig.url); final authorizedRequest = await authorizeHttpRequest( @@ -227,9 +213,7 @@ void main() { defaultAuthorizationType: APIAuthorizationType.function, url: _gqlEndpoint, awsRegion: _region, - authorizationTypes: [ - APIAuthorizationType.function, - ], + authorizationTypes: [APIAuthorizationType.function], ); final inputRequest = _generateTestRequest(endpointConfig.url); final authorizedRequest = await authorizeHttpRequest( @@ -243,34 +227,28 @@ void main() { ); }); - test('authorizes with authorizationMode parameter that overrides config', - () async { - const testApiKey = 'abc-123-fake-key'; - const endpointConfig = DataOutputs( - defaultAuthorizationType: APIAuthorizationType.userPools, - apiKey: testApiKey, - url: _gqlEndpoint, - awsRegion: _region, - authorizationTypes: [ - APIAuthorizationType.userPools, - ], - ); - final inputRequest = _generateTestRequest(endpointConfig.url); - final authorizedRequest = await authorizeHttpRequest( - inputRequest, - endpointConfig: endpointConfig, - authProviderRepo: authProviderRepo, - authorizationMode: APIAuthorizationType.apiKey, - ); - expect( - authorizedRequest.headers[xApiKey], - testApiKey, - ); - expect( - authorizedRequest.headers[AWSHeaders.authorization], - isNull, - ); - }); + test( + 'authorizes with authorizationMode parameter that overrides config', + () async { + const testApiKey = 'abc-123-fake-key'; + const endpointConfig = DataOutputs( + defaultAuthorizationType: APIAuthorizationType.userPools, + apiKey: testApiKey, + url: _gqlEndpoint, + awsRegion: _region, + authorizationTypes: [APIAuthorizationType.userPools], + ); + final inputRequest = _generateTestRequest(endpointConfig.url); + final authorizedRequest = await authorizeHttpRequest( + inputRequest, + endpointConfig: endpointConfig, + authProviderRepo: authProviderRepo, + authorizationMode: APIAuthorizationType.apiKey, + ); + expect(authorizedRequest.headers[xApiKey], testApiKey); + expect(authorizedRequest.headers[AWSHeaders.authorization], isNull); + }, + ); test('throws when no auth provider found', () async { final emptyAuthRepo = AmplifyAuthProviderRepository(); @@ -279,9 +257,7 @@ void main() { apiKey: 'abc-123-fake-key', url: _gqlEndpoint, awsRegion: _region, - authorizationTypes: [ - APIAuthorizationType.apiKey, - ], + authorizationTypes: [APIAuthorizationType.apiKey], ); final inputRequest = _generateTestRequest(endpointConfig.url); await expectLater( diff --git a/packages/api/amplify_api_dart/test/graphql_helpers_mtm_test.dart b/packages/api/amplify_api_dart/test/graphql_helpers_mtm_test.dart index 6b60a119ba..32e68d21ff 100644 --- a/packages/api/amplify_api_dart/test/graphql_helpers_mtm_test.dart +++ b/packages/api/amplify_api_dart/test/graphql_helpers_mtm_test.dart @@ -12,9 +12,7 @@ import 'test_models/many_to_many/MtmModelProvider.dart'; final _deepEquals = const DeepCollectionEquality().equals; class MockAmplifyAPI extends AmplifyAPIDart { - MockAmplifyAPI({ - super.options, - }); + MockAmplifyAPI({super.options}); } void main() { @@ -22,7 +20,7 @@ void main() { setUpAll(() async { await Amplify.reset(); await Amplify.addPlugin( -// needed to fetch the schema from within the helper + // needed to fetch the schema from within the helper MockAmplifyAPI( options: APIPluginOptions(modelProvider: MtmModelProvider.instance), ), @@ -34,156 +32,160 @@ void main() { const manyToManySecondarySelectionSet = 'manyToManySecondary { id name createdAt updatedAt } manyToManySecondaryId'; - const mtmRelationSelectionSet = 'id createdAt updatedAt ' + const mtmRelationSelectionSet = + 'id createdAt updatedAt ' '$manyToManyPrimarySelectionSet ' '$manyToManySecondarySelectionSet'; test( - 'ModelMutations.get() on firstMtmRelationModel should get both relationships', - () { - final id = UUID.getUUID(); - final firstMtmRelation = FirstMtmRelation( - id: id, - manyToManyPrimary: ManyToManyPrimary(name: 'a'), - manyToManySecondary: ManyToManySecondary(name: 'b'), - ); - const expectedDoc = r'query getFirstMtmRelation($id: ID!) { ' - r'getFirstMtmRelation(id: $id) { ' - '$mtmRelationSelectionSet } }'; - - final req = ModelQueries.get( - FirstMtmRelation.classType, - firstMtmRelation.modelIdentifier, - ); - - expect(req.document, expectedDoc); - expect(_deepEquals(req.variables, {'id': id}), isTrue); - expect(req.modelType, FirstMtmRelation.classType); - expect(req.decodePath, 'getFirstMtmRelation'); - }); + 'ModelMutations.get() on firstMtmRelationModel should get both relationships', + () { + final id = UUID.getUUID(); + final firstMtmRelation = FirstMtmRelation( + id: id, + manyToManyPrimary: ManyToManyPrimary(name: 'a'), + manyToManySecondary: ManyToManySecondary(name: 'b'), + ); + const expectedDoc = + r'query getFirstMtmRelation($id: ID!) { ' + r'getFirstMtmRelation(id: $id) { ' + '$mtmRelationSelectionSet } }'; + + final req = ModelQueries.get( + FirstMtmRelation.classType, + firstMtmRelation.modelIdentifier, + ); + + expect(req.document, expectedDoc); + expect(_deepEquals(req.variables, {'id': id}), isTrue); + expect(req.modelType, FirstMtmRelation.classType); + expect(req.decodePath, 'getFirstMtmRelation'); + }, + ); test( - 'ModelMutations.create() on mtmRelationModel should have both relationships', - () { - //ignore: missing_whitespace_between_adjacent_strings - const expectedDoc = 'mutation createFirstMtmRelation(' - r'$input: CreateFirstMtmRelationInput!, ' - r'$condition: ModelFirstMtmRelationConditionInput) { ' - r'createFirstMtmRelation(input: $input, condition: $condition) ' - '{ $mtmRelationSelectionSet } }'; - final expectedVars = { - 'input': { - 'id': 'firstMtmRelationId', - 'manyToManyPrimaryId': 'mtmPrimaryId', - 'manyToManySecondaryId': 'mtmSecondaryId', - }, - }; - - final primary = ManyToManyPrimary( - id: 'mtmPrimaryId', - name: 'first', - ); - final secondary = - ManyToManySecondary(id: 'mtmSecondaryId', name: 'second'); - - final relation = FirstMtmRelation( - id: 'firstMtmRelationId', - manyToManyPrimary: primary, - manyToManySecondary: secondary, - ); - final req = ModelMutations.create(relation); - - expect(req.document, expectedDoc); - expect(_deepEquals(req.variables, expectedVars), isTrue); - expect(req.modelType, FirstMtmRelation.classType); - expect(req.decodePath, 'createFirstMtmRelation'); - }); + 'ModelMutations.create() on mtmRelationModel should have both relationships', + () { + const expectedDoc = + // ignore: missing_whitespace_between_adjacent_strings + 'mutation createFirstMtmRelation(' + r'$input: CreateFirstMtmRelationInput!, ' + r'$condition: ModelFirstMtmRelationConditionInput) { ' + r'createFirstMtmRelation(input: $input, condition: $condition) ' + '{ $mtmRelationSelectionSet } }'; + final expectedVars = { + 'input': { + 'id': 'firstMtmRelationId', + 'manyToManyPrimaryId': 'mtmPrimaryId', + 'manyToManySecondaryId': 'mtmSecondaryId', + }, + }; + + final primary = ManyToManyPrimary(id: 'mtmPrimaryId', name: 'first'); + final secondary = ManyToManySecondary( + id: 'mtmSecondaryId', + name: 'second', + ); + + final relation = FirstMtmRelation( + id: 'firstMtmRelationId', + manyToManyPrimary: primary, + manyToManySecondary: secondary, + ); + final req = ModelMutations.create(relation); + + expect(req.document, expectedDoc); + expect(_deepEquals(req.variables, expectedVars), isTrue); + expect(req.modelType, FirstMtmRelation.classType); + expect(req.decodePath, 'createFirstMtmRelation'); + }, + ); test( - 'ModelMutations.update() on mtmRelationModel should have both relationships', - () { - //ignore: missing_whitespace_between_adjacent_strings - const expectedDoc = 'mutation updateFirstMtmRelation(' - r'$input: UpdateFirstMtmRelationInput!, ' - r'$condition: ModelFirstMtmRelationConditionInput) { ' - r'updateFirstMtmRelation(input: $input, condition: $condition) ' - '{ $mtmRelationSelectionSet } }'; - final expectedVars = { - 'input': { - 'id': 'firstMtmRelationId', - 'manyToManyPrimaryId': 'mtmPrimaryId', - 'manyToManySecondaryId': 'mtmSecondaryId', - }, - 'condition': null, - }; - - final primary = ManyToManyPrimary( - id: 'mtmPrimaryId', - name: 'first', - ); - final secondary = - ManyToManySecondary(id: 'mtmSecondaryId', name: 'second'); + 'ModelMutations.update() on mtmRelationModel should have both relationships', + () { + const expectedDoc = + // ignore: missing_whitespace_between_adjacent_strings + 'mutation updateFirstMtmRelation(' + r'$input: UpdateFirstMtmRelationInput!, ' + r'$condition: ModelFirstMtmRelationConditionInput) { ' + r'updateFirstMtmRelation(input: $input, condition: $condition) ' + '{ $mtmRelationSelectionSet } }'; + final expectedVars = { + 'input': { + 'id': 'firstMtmRelationId', + 'manyToManyPrimaryId': 'mtmPrimaryId', + 'manyToManySecondaryId': 'mtmSecondaryId', + }, + 'condition': null, + }; + + final primary = ManyToManyPrimary(id: 'mtmPrimaryId', name: 'first'); + final secondary = ManyToManySecondary( + id: 'mtmSecondaryId', + name: 'second', + ); + + final relation = FirstMtmRelation( + id: 'firstMtmRelationId', + manyToManyPrimary: primary, + manyToManySecondary: secondary, + ); + final req = ModelMutations.update(relation); + + expect(req.document, expectedDoc); + expect(_deepEquals(req.variables, expectedVars), isTrue); + expect(req.modelType, FirstMtmRelation.classType); + expect(req.decodePath, 'updateFirstMtmRelation'); + }, + ); - final relation = FirstMtmRelation( - id: 'firstMtmRelationId', - manyToManyPrimary: primary, - manyToManySecondary: secondary, - ); - final req = ModelMutations.update(relation); - - expect(req.document, expectedDoc); - expect(_deepEquals(req.variables, expectedVars), isTrue); - expect(req.modelType, FirstMtmRelation.classType); - expect(req.decodePath, 'updateFirstMtmRelation'); - }); - - test('Multiple belongsTo children of FirstMtmRelation properly decoded', - () { - final req = ModelQueries.list( - FirstMtmRelation.classType, - limit: 2, - ); - - const data = { - 'listFirstMtmRelations': { - 'items': [ - { - 'id': 'id-first-mtm-relation', - 'manyToManyPrimary': { - 'id': 'id-mtm-primary', - 'name': 'mtm primary', - }, - 'manyToManySecondary': { - 'id': 'id-mtm-secondary', - 'name': 'mtm secondary', + test( + 'Multiple belongsTo children of FirstMtmRelation properly decoded', + () { + final req = ModelQueries.list( + FirstMtmRelation.classType, + limit: 2, + ); + + const data = { + 'listFirstMtmRelations': { + 'items': [ + { + 'id': 'id-first-mtm-relation', + 'manyToManyPrimary': { + 'id': 'id-mtm-primary', + 'name': 'mtm primary', + }, + 'manyToManySecondary': { + 'id': 'id-mtm-secondary', + 'name': 'mtm secondary', + }, }, - } - ], - }, - }; - - final response = GraphQLResponseDecoder.instance - .decode>( - request: req, - response: { - 'data': data, - 'errors': null, - }, - ); - - expect(response.data, isA>()); - expect(response.data?.items, isA>()); - expect(response.data?.items.length, 1); - - final mtmPrimary = - (response.data!.items[0] as FirstMtmRelation).manyToManyPrimary; - expect(mtmPrimary.id, 'id-mtm-primary'); - expect(mtmPrimary.name, 'mtm primary'); - - final mtmSecondary = - (response.data!.items[0] as FirstMtmRelation).manyToManySecondary; - expect(mtmSecondary.id, 'id-mtm-secondary'); - expect(mtmSecondary.name, 'mtm secondary'); - }); + ], + }, + }; + + final response = GraphQLResponseDecoder.instance + .decode>( + request: req, + response: {'data': data, 'errors': null}, + ); + + expect(response.data, isA>()); + expect(response.data?.items, isA>()); + expect(response.data?.items.length, 1); + + final mtmPrimary = + (response.data!.items[0] as FirstMtmRelation).manyToManyPrimary; + expect(mtmPrimary.id, 'id-mtm-primary'); + expect(mtmPrimary.name, 'mtm primary'); + + final mtmSecondary = + (response.data!.items[0] as FirstMtmRelation).manyToManySecondary; + expect(mtmSecondary.id, 'id-mtm-secondary'); + expect(mtmSecondary.name, 'mtm secondary'); + }, + ); }); } diff --git a/packages/api/amplify_api_dart/test/graphql_helpers_test.dart b/packages/api/amplify_api_dart/test/graphql_helpers_test.dart index 80ffabb7c4..034fe20001 100644 --- a/packages/api/amplify_api_dart/test/graphql_helpers_test.dart +++ b/packages/api/amplify_api_dart/test/graphql_helpers_test.dart @@ -18,9 +18,7 @@ const _exampleHeaders = {'testKey': 'testVal'}; // ignore_for_file: omit_local_variable_types class MockAmplifyAPI extends AmplifyAPIDart { - MockAmplifyAPI({ - super.options, - }); + MockAmplifyAPI({super.options}); @override void registerAuthProvider(APIAuthProvider authProvider) {} @@ -74,31 +72,35 @@ void main() { expect(req.decodePath, 'getBlog'); }); - test('ModelQueries.get() should support additional request parameters', - () { - final id = uuid(); - final blog = Blog(id: id, name: 'Lorem ipsum $id'); - final req = ModelQueries.get( - Blog.classType, - blog.modelIdentifier, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - ); + test( + 'ModelQueries.get() should support additional request parameters', + () { + final id = uuid(); + final blog = Blog(id: id, name: 'Lorem ipsum $id'); + final req = ModelQueries.get( + Blog.classType, + blog.modelIdentifier, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + ); - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + }, + ); test( - 'ModelQueries.get() returns a GraphQLRequest when provided a modelType', - () async { - final id = uuid(); - final blog = Blog(id: id, name: 'Lorem ipsum $id'); - final GraphQLRequest req = - ModelQueries.get(Blog.classType, blog.modelIdentifier); - final String data = '''{ + 'ModelQueries.get() returns a GraphQLRequest when provided a modelType', + () async { + final id = uuid(); + final blog = Blog(id: id, name: 'Lorem ipsum $id'); + final GraphQLRequest req = ModelQueries.get( + Blog.classType, + blog.modelIdentifier, + ); + final String data = '''{ "getBlog": { "createdAt": "2021-01-01T01:00:00.000000000Z", "id": "$id", @@ -106,11 +108,12 @@ void main() { } }'''; - final GraphQLResponse response = _decodeResponseData(req, data); + final GraphQLResponse response = _decodeResponseData(req, data); - expect(response.data, isA()); - expect(response.data?.id, id); - }); + expect(response.data, isA()); + expect(response.data?.id, id); + }, + ); test('ModelQueries.list() should build a valid request', () async { const expected = @@ -124,36 +127,38 @@ void main() { expect(req.decodePath, 'listBlogs'); }); - test('ModelQueries.list() should build a valid request with pagination', - () async { - const expected = - 'query listBlogs(\$filter: ModelBlogFilterInput, \$limit: Int, \$nextToken: String) { listBlogs(filter: \$filter, limit: \$limit, nextToken: \$nextToken) { items { $blogSelectionSet } nextToken } }'; - - final GraphQLRequest> req = - ModelQueries.list(Blog.classType, limit: 1); - - expect(req.document, expected); - expect(req.modelType, isA>()); - expect(req.variables['limit'], 1); - expect(req.decodePath, 'listBlogs'); - }); + test( + 'ModelQueries.list() should build a valid request with pagination', + () async { + const expected = + 'query listBlogs(\$filter: ModelBlogFilterInput, \$limit: Int, \$nextToken: String) { listBlogs(filter: \$filter, limit: \$limit, nextToken: \$nextToken) { items { $blogSelectionSet } nextToken } }'; + + final GraphQLRequest> req = + ModelQueries.list(Blog.classType, limit: 1); + + expect(req.document, expected); + expect(req.modelType, isA>()); + expect(req.variables['limit'], 1); + expect(req.decodePath, 'listBlogs'); + }, + ); test( - 'ModelQueries.get() returns a GraphQLRequest when not provided a modelType', - () async { - final id = uuid(); - const doc = '''query MyQuery { + 'ModelQueries.get() returns a GraphQLRequest when not provided a modelType', + () async { + final id = uuid(); + const doc = '''query MyQuery { getBlog { id name createdAt } }'''; - final GraphQLRequest req = GraphQLRequest( - document: doc, - variables: {id: id}, - ); - final String data = '''{ + final GraphQLRequest req = GraphQLRequest( + document: doc, + variables: {id: id}, + ); + final String data = '''{ "getBlog": { "createdAt": "2021-01-01T01:00:00.000000000Z", "id": "$id", @@ -161,18 +166,22 @@ void main() { } }'''; - final GraphQLResponse response = _decodeResponseData(req, data); + final GraphQLResponse response = _decodeResponseData( + req, + data, + ); - expect(response.data, isA()); - }); + expect(response.data, isA()); + }, + ); test( - 'ModelQueries.list() returns a GraphQLRequest> when provided a modelType', - () async { - final GraphQLRequest> req = - ModelQueries.list(Blog.classType, limit: 2); + 'ModelQueries.list() returns a GraphQLRequest> when provided a modelType', + () async { + final GraphQLRequest> req = + ModelQueries.list(Blog.classType, limit: 2); - const data = '''{ + const data = '''{ "listBlogs": { "items": [ { @@ -190,21 +199,22 @@ void main() { } }'''; - final GraphQLResponse> response = - _decodeResponseData(req, data); + final GraphQLResponse> response = + _decodeResponseData(req, data); - expect(response.data, isA>()); - expect(response.data?.items, isA>()); - expect(response.data?.items.length, 2); - }); + expect(response.data, isA>()); + expect(response.data?.items, isA>()); + expect(response.data?.items.length, 2); + }, + ); test( - 'ModelQueries.list() should decode gracefully when there is a null in the items list', - () async { - final GraphQLRequest> req = - ModelQueries.list(Blog.classType, limit: 2); + 'ModelQueries.list() should decode gracefully when there is a null in the items list', + () async { + final GraphQLRequest> req = + ModelQueries.list(Blog.classType, limit: 2); - const data = '''{ + const data = '''{ "listBlogs": { "items": [ { @@ -218,27 +228,28 @@ void main() { } }'''; - final GraphQLResponse> response = - _decodeResponseData(req, data); + final GraphQLResponse> response = + _decodeResponseData(req, data); - expect(response.data, isA>()); - expect(response.data?.items, isA>()); - expect(response.data?.items.length, 2); - expect(response.data?.items[1], isNull); - }); + expect(response.data, isA>()); + expect(response.data?.items, isA>()); + expect(response.data?.items.length, 2); + expect(response.data?.items[1], isNull); + }, + ); test( - 'GraphQLResponse> can get the request for next page of data', - () async { - const limit = 2; - final GraphQLRequest> req = - ModelQueries.list( - Blog.classType, - limit: limit, - authorizationMode: APIAuthorizationType.iam, - ); - - const data = '''{ + 'GraphQLResponse> can get the request for next page of data', + () async { + const limit = 2; + final GraphQLRequest> req = + ModelQueries.list( + Blog.classType, + limit: limit, + authorizationMode: APIAuthorizationType.iam, + ); + + const data = '''{ "listBlogs": { "items": [ { @@ -256,30 +267,31 @@ void main() { } }'''; - final GraphQLResponse> response = - _decodeResponseData(req, data); - expect(response.data?.hasNextResult, true); - const expectedDocument = - 'query listBlogs(\$filter: ModelBlogFilterInput, \$limit: Int, \$nextToken: String) { listBlogs(filter: \$filter, limit: \$limit, nextToken: \$nextToken) { items { $blogSelectionSet } nextToken } }'; - final resultRequest = response.data?.requestForNextResult; - expect(resultRequest?.document, expectedDocument); - expect( - resultRequest?.variables['nextToken'], - response.data?.nextToken, - ); - expect(resultRequest?.variables['limit'], limit); - expect(resultRequest?.authorizationMode, req.authorizationMode); - expect(resultRequest?.apiName, req.apiName); - }); + final GraphQLResponse> response = + _decodeResponseData(req, data); + expect(response.data?.hasNextResult, true); + const expectedDocument = + 'query listBlogs(\$filter: ModelBlogFilterInput, \$limit: Int, \$nextToken: String) { listBlogs(filter: \$filter, limit: \$limit, nextToken: \$nextToken) { items { $blogSelectionSet } nextToken } }'; + final resultRequest = response.data?.requestForNextResult; + expect(resultRequest?.document, expectedDocument); + expect( + resultRequest?.variables['nextToken'], + response.data?.nextToken, + ); + expect(resultRequest?.variables['limit'], limit); + expect(resultRequest?.authorizationMode, req.authorizationMode); + expect(resultRequest?.apiName, req.apiName); + }, + ); test( - 'GraphQLResponse> will not have data for next page when result has no nextToken', - () async { - const limit = 2; - final GraphQLRequest> req = - ModelQueries.list(Blog.classType, limit: limit); + 'GraphQLResponse> will not have data for next page when result has no nextToken', + () async { + const limit = 2; + final GraphQLRequest> req = + ModelQueries.list(Blog.classType, limit: limit); - const data = '''{ + const data = '''{ "listBlogs": { "items": [ { @@ -296,48 +308,50 @@ void main() { } }'''; - final GraphQLResponse> response = - _decodeResponseData(req, data); - expect(response.data?.hasNextResult, false); - }); + final GraphQLResponse> response = + _decodeResponseData(req, data); + expect(response.data?.hasNextResult, false); + }, + ); test( - 'ModelQueries.list() should correctly populate a request with a simple QueryPredicate', - () async { - const expectedTitle = 'Test Blog 1'; - const expectedDocument = - 'query listBlogs(\$filter: ModelBlogFilterInput, \$limit: Int, \$nextToken: String) { listBlogs(filter: \$filter, limit: \$limit, nextToken: \$nextToken) { items { $blogSelectionSet } nextToken } }'; - const expectedFilter = { - 'name': {'eq': expectedTitle}, - }; + 'ModelQueries.list() should correctly populate a request with a simple QueryPredicate', + () async { + const expectedTitle = 'Test Blog 1'; + const expectedDocument = + 'query listBlogs(\$filter: ModelBlogFilterInput, \$limit: Int, \$nextToken: String) { listBlogs(filter: \$filter, limit: \$limit, nextToken: \$nextToken) { items { $blogSelectionSet } nextToken } }'; + const expectedFilter = { + 'name': {'eq': expectedTitle}, + }; - final queryPredicate = Blog.NAME.eq(expectedTitle); - final GraphQLRequest> req = - ModelQueries.list(Blog.classType, where: queryPredicate); + final queryPredicate = Blog.NAME.eq(expectedTitle); + final GraphQLRequest> req = + ModelQueries.list(Blog.classType, where: queryPredicate); - expect(req.document, expectedDocument); - expect(req.modelType, isA>()); - expect(req.decodePath, 'listBlogs'); - expect(req.variables['filter'], expectedFilter); - }); + expect(req.document, expectedDocument); + expect(req.modelType, isA>()); + expect(req.decodePath, 'listBlogs'); + expect(req.variables['filter'], expectedFilter); + }, + ); test( - 'getRequestForNextResult() should have same filter as original request', - () async { - const limit = 2; - const expectedTitle = 'Test Blog 1'; - const expectedFilter = { - 'name': {'eq': expectedTitle}, - }; + 'getRequestForNextResult() should have same filter as original request', + () async { + const limit = 2; + const expectedTitle = 'Test Blog 1'; + const expectedFilter = { + 'name': {'eq': expectedTitle}, + }; - final queryPredicate = Blog.NAME.eq(expectedTitle); - final GraphQLRequest> req = - ModelQueries.list( - Blog.classType, - limit: limit, - where: queryPredicate, - ); - const data = '''{ + final queryPredicate = Blog.NAME.eq(expectedTitle); + final GraphQLRequest> req = + ModelQueries.list( + Blog.classType, + limit: limit, + where: queryPredicate, + ); + const data = '''{ "listBlogs": { "items": [ { @@ -354,65 +368,73 @@ void main() { "nextToken": "super-secret-next-token" } }'''; - final GraphQLResponse> response = - _decodeResponseData(req, data); - final Map firstRequestFilter = - req.variables['filter'] as Map; - final resultRequest = response.data?.requestForNextResult; - - expect(resultRequest?.variables['filter'], firstRequestFilter); - expect(resultRequest?.variables['filter'], expectedFilter); - }); + final GraphQLResponse> response = + _decodeResponseData(req, data); + final Map firstRequestFilter = + req.variables['filter'] as Map; + final resultRequest = response.data?.requestForNextResult; + + expect(resultRequest?.variables['filter'], firstRequestFilter); + expect(resultRequest?.variables['filter'], expectedFilter); + }, + ); - test('ModelQueries.list() should support additional request parameters', - () { - final req = ModelQueries.list( - Blog.classType, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - ); + test( + 'ModelQueries.list() should support additional request parameters', + () { + final req = ModelQueries.list( + Blog.classType, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + ); - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + }, + ); test( - 'ModelQueries.get() should support model with complex identifier and custom primary key', - () { - final customId = uuid(); - final name = 'foo $customId'; - final model = - CpkOneToOneBidirectionalParentCD(name: name, customId: customId); - final req = ModelQueries.get( - CpkOneToOneBidirectionalParentCD.classType, - model.modelIdentifier, - ); - final expectedDocument = - 'query getCpkOneToOneBidirectionalParentCD { getCpkOneToOneBidirectionalParentCD(customId: "$customId", name: "$name") { customId name createdAt updatedAt cpkOneToOneBidirectionalParentCDImplicitChildId cpkOneToOneBidirectionalParentCDImplicitChildName cpkOneToOneBidirectionalParentCDExplicitChildId cpkOneToOneBidirectionalParentCDExplicitChildName } }'; + 'ModelQueries.get() should support model with complex identifier and custom primary key', + () { + final customId = uuid(); + final name = 'foo $customId'; + final model = CpkOneToOneBidirectionalParentCD( + name: name, + customId: customId, + ); + final req = ModelQueries.get( + CpkOneToOneBidirectionalParentCD.classType, + model.modelIdentifier, + ); + final expectedDocument = + 'query getCpkOneToOneBidirectionalParentCD { getCpkOneToOneBidirectionalParentCD(customId: "$customId", name: "$name") { customId name createdAt updatedAt cpkOneToOneBidirectionalParentCDImplicitChildId cpkOneToOneBidirectionalParentCDImplicitChildName cpkOneToOneBidirectionalParentCDExplicitChildId cpkOneToOneBidirectionalParentCDExplicitChildName } }'; - expect(req.document, expectedDocument); - expect( - deepEquals(req.variables, {'customId': customId, 'name': name}), - isTrue, - ); - }); + expect(req.document, expectedDocument); + expect( + deepEquals(req.variables, {'customId': customId, 'name': name}), + isTrue, + ); + }, + ); - test('ModelQueries.get() should support model with CPK and int indexes', - () { - final customId = uuid(); - final name = 'foo $customId'; - final model = CpkIntIndexes(name: name, fieldA: 1, fieldB: 2); - final req = ModelQueries.get( - CpkIntIndexes.classType, - model.modelIdentifier, - ); - final expectedDocument = - 'query getCpkIntIndexes { getCpkIntIndexes(name: "$name", fieldA: 1, fieldB: 2) { name fieldA fieldB createdAt updatedAt owner } }'; + test( + 'ModelQueries.get() should support model with CPK and int indexes', + () { + final customId = uuid(); + final name = 'foo $customId'; + final model = CpkIntIndexes(name: name, fieldA: 1, fieldB: 2); + final req = ModelQueries.get( + CpkIntIndexes.classType, + model.modelIdentifier, + ); + final expectedDocument = + 'query getCpkIntIndexes { getCpkIntIndexes(name: "$name", fieldA: 1, fieldB: 2) { name fieldA fieldB createdAt updatedAt owner } }'; - expect(req.document, expectedDocument); - }); + expect(req.document, expectedDocument); + }, + ); test('ModelQueries.get() should support model with int primary key', () { final model = CpkIntPrimaryKey(intAsId: 1, fieldA: 2, fieldB: 3); @@ -448,80 +470,90 @@ void main() { }); test( - 'ModelMutations.create() should not include null values for owner fields', - () { - const name = 'Test with owner field'; - final customOwnerField = CustomOwnerField(name: name); - final GraphQLRequest req = - ModelMutations.create(customOwnerField); - final inputVariable = req.variables['input'] as Map; - - expect(inputVariable.containsKey('owners'), isFalse); - }); + 'ModelMutations.create() should not include null values for owner fields', + () { + const name = 'Test with owner field'; + final customOwnerField = CustomOwnerField(name: name); + final GraphQLRequest req = + ModelMutations.create(customOwnerField); + final inputVariable = req.variables['input'] as Map; - test( - 'ModelMutations.create() should build a valid request for a model with a parent', - () { - final blogId = uuid(); - const name = 'Test Blog'; - final Blog blog = Blog(id: blogId, name: name); + expect(inputVariable.containsKey('owners'), isFalse); + }, + ); - final postId = uuid(); - const title = 'Lorem Ipsum'; - const rating = 1; - final Post post = - Post(id: postId, title: title, rating: rating, blog: blog); + test( + 'ModelMutations.create() should build a valid request for a model with a parent', + () { + final blogId = uuid(); + const name = 'Test Blog'; + final Blog blog = Blog(id: blogId, name: name); + + final postId = uuid(); + const title = 'Lorem Ipsum'; + const rating = 1; + final Post post = Post( + id: postId, + title: title, + rating: rating, + blog: blog, + ); - final expectedVars = { - 'input': { - 'id': postId, - 'title': title, - 'rating': rating, - 'created': null, - 'blogID': blogId, - }, - }; - const expectedDoc = - 'mutation createPost(\$input: CreatePostInput!, \$condition: ModelPostConditionInput) { createPost(input: \$input, condition: \$condition) { id title rating created createdAt updatedAt blog { $blogSelectionSet } blogID } }'; - final GraphQLRequest req = ModelMutations.create(post); + final expectedVars = { + 'input': { + 'id': postId, + 'title': title, + 'rating': rating, + 'created': null, + 'blogID': blogId, + }, + }; + const expectedDoc = + 'mutation createPost(\$input: CreatePostInput!, \$condition: ModelPostConditionInput) { createPost(input: \$input, condition: \$condition) { id title rating created createdAt updatedAt blog { $blogSelectionSet } blogID } }'; + final GraphQLRequest req = ModelMutations.create(post); - expect(req.document, expectedDoc); - expect(deepEquals(req.variables, expectedVars), isTrue); - expect(req.modelType, Post.classType); - expect(req.decodePath, 'createPost'); - }); + expect(req.document, expectedDoc); + expect(deepEquals(req.variables, expectedVars), isTrue); + expect(req.modelType, Post.classType); + expect(req.decodePath, 'createPost'); + }, + ); test( - 'ModelMutations.create() should not include parent ID in variables if not in model', - () { - final postId = uuid(); - const title = 'Lorem Ipsum'; - const rating = 1; - final Post post = Post(id: postId, title: title, rating: rating); - final GraphQLRequest req = ModelMutations.create(post); - expect( - (req.variables['input'] as Map) - .containsKey('blogID'), - isFalse, - ); - }); - - test('ModelQueries.create() should support additional request parameters', - () { - const name = 'Test Blog'; + 'ModelMutations.create() should not include parent ID in variables if not in model', + () { + final postId = uuid(); + const title = 'Lorem Ipsum'; + const rating = 1; + final Post post = Post(id: postId, title: title, rating: rating); + final GraphQLRequest req = ModelMutations.create(post); + expect( + (req.variables['input'] as Map).containsKey( + 'blogID', + ), + isFalse, + ); + }, + ); - final blog = Blog(name: name); - final req = ModelMutations.create( - blog, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - ); + test( + 'ModelQueries.create() should support additional request parameters', + () { + const name = 'Test Blog'; + + final blog = Blog(name: name); + final req = ModelMutations.create( + blog, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + ); - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + }, + ); test('ModelMutations.delete() should build a valid request', () { final id = uuid(); @@ -544,22 +576,24 @@ void main() { expect(req.decodePath, 'deleteBlog'); }); - test('ModelQueries.delete() should support additional request parameters', - () { - const name = 'Test Blog'; - - final blog = Blog(name: name); - final req = ModelMutations.delete( - blog, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - ); + test( + 'ModelQueries.delete() should support additional request parameters', + () { + const name = 'Test Blog'; + + final blog = Blog(name: name); + final req = ModelMutations.delete( + blog, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + ); - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + }, + ); test('ModelMutations.deleteById() should build a valid request', () { final id = uuid(); @@ -584,22 +618,23 @@ void main() { }); test( - 'ModelQueries.deleteById() should support additional request parameters', - () { - final id = uuid(); - final blog = Blog(id: id, name: 'Lorem ipsum $id'); - final req = ModelMutations.deleteById( - Blog.classType, - blog.modelIdentifier, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - ); + 'ModelQueries.deleteById() should support additional request parameters', + () { + final id = uuid(); + final blog = Blog(id: id, name: 'Lorem ipsum $id'); + final req = ModelMutations.deleteById( + Blog.classType, + blog.modelIdentifier, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + ); - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + }, + ); test('ModelMutations.update() should build a valid request', () { final id = uuid(); @@ -623,101 +658,112 @@ void main() { }); test( - 'ModelMutations.update() should build a valid request for a model with a parent', - () { - final blogId = uuid(); - const name = 'Test Blog'; - final Blog blog = Blog(id: blogId, name: name); - - final postId = uuid(); - const title = 'Lorem Ipsum'; - const rating = 1; - final Post post = - Post(id: postId, title: title, rating: rating, blog: blog); + 'ModelMutations.update() should build a valid request for a model with a parent', + () { + final blogId = uuid(); + const name = 'Test Blog'; + final Blog blog = Blog(id: blogId, name: name); + + final postId = uuid(); + const title = 'Lorem Ipsum'; + const rating = 1; + final Post post = Post( + id: postId, + title: title, + rating: rating, + blog: blog, + ); - final expectedVars = { - 'input': { - 'id': postId, - 'title': title, - 'rating': rating, - 'created': null, - 'blogID': blogId, - }, - 'condition': null, - }; - const expectedDoc = - 'mutation updatePost(\$input: UpdatePostInput!, \$condition: ModelPostConditionInput) { updatePost(input: \$input, condition: \$condition) { id title rating created createdAt updatedAt blog { $blogSelectionSet } blogID } }'; - final GraphQLRequest req = ModelMutations.update(post); + final expectedVars = { + 'input': { + 'id': postId, + 'title': title, + 'rating': rating, + 'created': null, + 'blogID': blogId, + }, + 'condition': null, + }; + const expectedDoc = + 'mutation updatePost(\$input: UpdatePostInput!, \$condition: ModelPostConditionInput) { updatePost(input: \$input, condition: \$condition) { id title rating created createdAt updatedAt blog { $blogSelectionSet } blogID } }'; + final GraphQLRequest req = ModelMutations.update(post); - expect(req.document, expectedDoc); - expect(deepEquals(req.variables, expectedVars), isTrue); - expect(req.modelType, Post.classType); - expect(req.decodePath, 'updatePost'); - }); + expect(req.document, expectedDoc); + expect(deepEquals(req.variables, expectedVars), isTrue); + expect(req.modelType, Post.classType); + expect(req.decodePath, 'updatePost'); + }, + ); test( - 'ModelMutations.update() should build a valid request with query predicate condition', - () { - final id = uuid(); - const name = 'Test Blog'; - final Blog blog = Blog(id: id, name: name); - final expectedVars = { - 'input': {'id': id, 'name': name}, - 'condition': { - 'name': {'lt': 'zzz'}, - }, - }; - const expectedDoc = - 'mutation updateBlog(\$input: UpdateBlogInput!, \$condition: ModelBlogConditionInput) { updateBlog(input: \$input, condition: \$condition) { $blogSelectionSet } }'; + 'ModelMutations.update() should build a valid request with query predicate condition', + () { + final id = uuid(); + const name = 'Test Blog'; + final Blog blog = Blog(id: id, name: name); + final expectedVars = { + 'input': {'id': id, 'name': name}, + 'condition': { + 'name': {'lt': 'zzz'}, + }, + }; + const expectedDoc = + 'mutation updateBlog(\$input: UpdateBlogInput!, \$condition: ModelBlogConditionInput) { updateBlog(input: \$input, condition: \$condition) { $blogSelectionSet } }'; - final GraphQLRequest req = - ModelMutations.update(blog, where: Blog.NAME.lt('zzz')); + final GraphQLRequest req = ModelMutations.update( + blog, + where: Blog.NAME.lt('zzz'), + ); - expect(req.document, expectedDoc); - expect(deepEquals(req.variables, expectedVars), isTrue); - }); + expect(req.document, expectedDoc); + expect(deepEquals(req.variables, expectedVars), isTrue); + }, + ); - test('ModelQueries.update() should support additional request parameters', - () { - const name = 'Test Blog'; - final blog = Blog(name: name); - final req = ModelMutations.update( - blog, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - ); + test( + 'ModelQueries.update() should support additional request parameters', + () { + const name = 'Test Blog'; + final blog = Blog(name: name); + final req = ModelMutations.update( + blog, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + ); - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + }, + ); test( - 'ModelMutations.delete() should build a valid request with query predicate condition', - () { - final id = uuid(); - const name = 'Test Blog'; - final Blog blog = Blog(id: id, name: name); - final expectedVars = { - 'input': {'id': id}, - 'condition': { - 'name': {'lt': 'zzz'}, - }, - }; - const expectedDoc = - 'mutation deleteBlog(\$input: DeleteBlogInput!, \$condition: ModelBlogConditionInput) { deleteBlog(input: \$input, condition: \$condition) { $blogSelectionSet } }'; + 'ModelMutations.delete() should build a valid request with query predicate condition', + () { + final id = uuid(); + const name = 'Test Blog'; + final Blog blog = Blog(id: id, name: name); + final expectedVars = { + 'input': {'id': id}, + 'condition': { + 'name': {'lt': 'zzz'}, + }, + }; + const expectedDoc = + 'mutation deleteBlog(\$input: DeleteBlogInput!, \$condition: ModelBlogConditionInput) { deleteBlog(input: \$input, condition: \$condition) { $blogSelectionSet } }'; - final GraphQLRequest req = ModelMutations.delete( - blog, - where: Blog.NAME.lt('zzz'), - ); + final GraphQLRequest req = ModelMutations.delete( + blog, + where: Blog.NAME.lt('zzz'), + ); - expect(req.document, expectedDoc); - expect(deepEquals(req.variables, expectedVars), isTrue); - expect(req.modelType, Blog.classType); - expect(req.decodePath, 'deleteBlog'); - }); + expect(req.document, expectedDoc); + expect(deepEquals(req.variables, expectedVars), isTrue); + expect(req.modelType, Blog.classType); + expect(req.decodePath, 'deleteBlog'); + }, + ); test( 'ModelMutations.create() should create model with complex identifier and not include bi-directional children identifiers', @@ -753,37 +799,39 @@ void main() { ); test( - 'ModelMutations.create() should create child with parent that has complex identifier', - () { - final customParentId = uuid(); - final parent = CpkOneToOneBidirectionalParentCD( - name: 'foo', - customId: customParentId, - ); - final child = CpkOneToOneBidirectionalChildExplicitCD( - name: 'bar', - belongsToParent: parent, - ); - final req = ModelMutations.create(child); + 'ModelMutations.create() should create child with parent that has complex identifier', + () { + final customParentId = uuid(); + final parent = CpkOneToOneBidirectionalParentCD( + name: 'foo', + customId: customParentId, + ); + final child = CpkOneToOneBidirectionalChildExplicitCD( + name: 'bar', + belongsToParent: parent, + ); + final req = ModelMutations.create(child); - final expectedVars = { - 'input': { - 'id': child.id, - 'name': child.name, - 'belongsToParentID': customParentId, - 'belongsToParentName': parent.name, - }, - }; - expect(deepEquals(req.variables, expectedVars), isTrue); - }); + final expectedVars = { + 'input': { + 'id': child.id, + 'name': child.name, + 'belongsToParentID': customParentId, + 'belongsToParentName': parent.name, + }, + }; + expect(deepEquals(req.variables, expectedVars), isTrue); + }, + ); }); group('ModelSubScriptions', () { test('ModelSubscriptions.onCreate() should build a valid request', () { const expected = 'subscription onCreateBlog { onCreateBlog { $blogSelectionSet } }'; - final GraphQLRequest req = - ModelSubscriptions.onCreate(Blog.classType); + final GraphQLRequest req = ModelSubscriptions.onCreate( + Blog.classType, + ); expect(req.document, expected); expect(req.variables, {}); @@ -792,38 +840,37 @@ void main() { }); test( - 'ModelSubscriptions.onCreate() should support additional request parameters', - () { - const expected = - 'subscription onCreateBlog(\$filter: ModelSubscriptionBlogFilterInput) { onCreateBlog(filter: \$filter) { $blogSelectionSet } }'; - final req = ModelSubscriptions.onCreate( - Blog.classType, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - where: Blog.NAME.eq('sample'), - ); - final expectedFilter = { - 'filter': { - 'name': {'eq': 'sample'}, - }, - }; + 'ModelSubscriptions.onCreate() should support additional request parameters', + () { + const expected = + 'subscription onCreateBlog(\$filter: ModelSubscriptionBlogFilterInput) { onCreateBlog(filter: \$filter) { $blogSelectionSet } }'; + final req = ModelSubscriptions.onCreate( + Blog.classType, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + where: Blog.NAME.eq('sample'), + ); + final expectedFilter = { + 'filter': { + 'name': {'eq': 'sample'}, + }, + }; - expect(req.document, expected); - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - expect( - req.variables, - expectedFilter, - ); - }); + expect(req.document, expected); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + expect(req.variables, expectedFilter); + }, + ); test('ModelSubscriptions.onUpdate() should build a valid request', () { const expected = 'subscription onUpdateBlog { onUpdateBlog { $blogSelectionSet } }'; - final GraphQLRequest req = - ModelSubscriptions.onUpdate(Blog.classType); + final GraphQLRequest req = ModelSubscriptions.onUpdate( + Blog.classType, + ); expect(req.document, expected); expect(req.modelType, Blog.classType); @@ -831,35 +878,34 @@ void main() { }); test( - 'ModelSubscriptions.onUpdate() should support additional request parameters', - () { - final req = ModelSubscriptions.onUpdate( - Blog.classType, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - where: Blog.NAME.eq('sample'), - ); - final expectedFilter = { - 'filter': { - 'name': {'eq': 'sample'}, - }, - }; + 'ModelSubscriptions.onUpdate() should support additional request parameters', + () { + final req = ModelSubscriptions.onUpdate( + Blog.classType, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + where: Blog.NAME.eq('sample'), + ); + final expectedFilter = { + 'filter': { + 'name': {'eq': 'sample'}, + }, + }; - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - expect( - req.variables, - expectedFilter, - ); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + expect(req.variables, expectedFilter); + }, + ); test('ModelSubscriptions.onDelete() should build a valid request', () { const expected = 'subscription onDeleteBlog { onDeleteBlog { $blogSelectionSet } }'; - final GraphQLRequest req = - ModelSubscriptions.onDelete(Blog.classType); + final GraphQLRequest req = ModelSubscriptions.onDelete( + Blog.classType, + ); expect(req.document, expected); expect(req.modelType, Blog.classType); @@ -867,29 +913,27 @@ void main() { }); test( - 'ModelSubscriptions.onDelete() should support additional request parameters', - () { - final req = ModelSubscriptions.onDelete( - Blog.classType, - apiName: _exampleApiName, - headers: _exampleHeaders, - authorizationMode: APIAuthorizationType.function, - where: Blog.NAME.eq('sample'), - ); - final expectedFilter = { - 'filter': { - 'name': {'eq': 'sample'}, - }, - }; + 'ModelSubscriptions.onDelete() should support additional request parameters', + () { + final req = ModelSubscriptions.onDelete( + Blog.classType, + apiName: _exampleApiName, + headers: _exampleHeaders, + authorizationMode: APIAuthorizationType.function, + where: Blog.NAME.eq('sample'), + ); + final expectedFilter = { + 'filter': { + 'name': {'eq': 'sample'}, + }, + }; - expect(req.apiName, _exampleApiName); - expect(req.headers, _exampleHeaders); - expect(req.authorizationMode, APIAuthorizationType.function); - expect( - req.variables, - expectedFilter, - ); - }); + expect(req.apiName, _exampleApiName); + expect(req.headers, _exampleHeaders); + expect(req.authorizationMode, APIAuthorizationType.function); + expect(req.variables, expectedFilter); + }, + ); }); }); @@ -903,10 +947,7 @@ void main() { final blog = Blog(name: 'lorem ipsum example'); try { - ModelQueries.get( - Blog.classType, - blog.modelIdentifier, - ); + ModelQueries.get(Blog.classType, blog.modelIdentifier); } on ApiException catch (e) { expect(e.message, 'No modelProvider found'); expect( diff --git a/packages/api/amplify_api_dart/test/graphql_test.dart b/packages/api/amplify_api_dart/test/graphql_test.dart index c2dd679594..c2d358995c 100644 --- a/packages/api/amplify_api_dart/test/graphql_test.dart +++ b/packages/api/amplify_api_dart/test/graphql_test.dart @@ -57,8 +57,9 @@ final mockHttpClient = MockAWSHttpClient((request, _) async { if (body.contains('createModelWithCustomType')) { return AWSHttpResponse( statusCode: 200, - body: utf8 - .encode(json.encode(expectedModelWithCustomTypeSuccessResponseBody)), + body: utf8.encode( + json.encode(expectedModelWithCustomTypeSuccessResponseBody), + ), ); } @@ -73,9 +74,7 @@ MockWebSocketService? mockWebSocketService; WebSocketBloc? mockWebSocketBloc; class MockAmplifyAPI extends AmplifyAPIDart { - MockAmplifyAPI({ - super.options, - }); + MockAmplifyAPI({super.options}); @override WebSocketBloc createWebSocketBloc(EndpointConfig endpoint) { @@ -193,8 +192,9 @@ void main() { final operation = Amplify.API.mutate(request: req); final res = await operation.response; - final expected = - json.encode(expectedModelWithCustomTypeSuccessResponseBody['data']); + final expected = json.encode( + expectedModelWithCustomTypeSuccessResponseBody['data'], + ); expect(res.data, equals(expected)); expect(res.errors, isEmpty); @@ -225,37 +225,41 @@ void main() { }); test( - 'Mutation.create returns proper response.data for Models with custom types', - () async { - const expectedDoc = modelWithCustomTypeDocument; - const decodePath = 'createModelWithCustomType'; - final req = ModelMutations.create( - modelWithCustomType, - ); - - final operation = Amplify.API.query(request: req); - final res = await operation.response; - - // request asserts - expect(req.document, expectedDoc); - expect(_deepEquals(req.variables, modelWithCustomTypeVariables), isTrue); - expect(req.modelType, ModelWithCustomType.classType); - expect(req.decodePath, decodePath); - // response asserts - expect(res.data, isA()); - expect(res.data?.id, modelCustomTypeId); - - final data = res.data!; - expect( - data.customTypeValue, - equals(modelWithCustomType.customTypeValue), - ); - expect( - data.listOfCustomTypeValue, - equals(modelWithCustomType.listOfCustomTypeValue), - ); - expect(res.errors, isEmpty); - }); + 'Mutation.create returns proper response.data for Models with custom types', + () async { + const expectedDoc = modelWithCustomTypeDocument; + const decodePath = 'createModelWithCustomType'; + final req = ModelMutations.create( + modelWithCustomType, + ); + + final operation = Amplify.API.query(request: req); + final res = await operation.response; + + // request asserts + expect(req.document, expectedDoc); + expect( + _deepEquals(req.variables, modelWithCustomTypeVariables), + isTrue, + ); + expect(req.modelType, ModelWithCustomType.classType); + expect(req.decodePath, decodePath); + // response asserts + expect(res.data, isA()); + expect(res.data?.id, modelCustomTypeId); + + final data = res.data!; + expect( + data.customTypeValue, + equals(modelWithCustomType.customTypeValue), + ); + expect( + data.listOfCustomTypeValue, + equals(modelWithCustomType.listOfCustomTypeValue), + ); + expect(res.errors, isEmpty); + }, + ); }); const graphQLDocument = '''subscription MySubscription { @@ -302,17 +306,16 @@ void main() { test('subscribe() should decode model data', () async { final dataCompleter = Completer(); - sendMockStartAck( - mockWebSocketBloc!, - mockWebSocketService!, - [modelSubscriptionRequest.id], - ); + sendMockStartAck(mockWebSocketBloc!, mockWebSocketService!, [ + modelSubscriptionRequest.id, + ]); final subscription = Amplify.API.subscribe( modelSubscriptionRequest, onEstablished: expectAsync0(() { - mockWebSocketService!.channel.sink - .add(json.encode(mockSubscriptionEvent)); + mockWebSocketService!.channel.sink.add( + json.encode(mockSubscriptionEvent), + ); }), ); @@ -332,20 +335,17 @@ void main() { test('subscribe() should return a subscription stream', () async { final dataCompleter = Completer(); - sendMockStartAck( - mockWebSocketBloc!, - mockWebSocketService!, - [modelSubscriptionRequest.id], - ); + sendMockStartAck(mockWebSocketBloc!, mockWebSocketService!, [ + modelSubscriptionRequest.id, + ]); final subscription = Amplify.API.subscribe( modelSubscriptionRequest, - onEstablished: expectAsync0( - () { - mockWebSocketService!.channel.sink - .add(json.encode(mockSubscriptionEvent)); - }, - ), + onEstablished: expectAsync0(() { + mockWebSocketService!.channel.sink.add( + json.encode(mockSubscriptionEvent), + ); + }), ); final streamSub = subscription.listen( @@ -370,8 +370,9 @@ void main() { createdAt } }'''; - final subscriptionRequest2 = - GraphQLRequest(document: onCreatePostDoc); + final subscriptionRequest2 = GraphQLRequest( + document: onCreatePostDoc, + ); final mockSubscriptionEvent2 = { 'id': subscriptionRequest2.id, @@ -379,31 +380,27 @@ void main() { 'payload': {'data': mockSubscriptionData}, }; - sendMockStartAck( - mockWebSocketBloc!, - mockWebSocketService!, - [modelSubscriptionRequest.id, subscriptionRequest2.id], - ); + sendMockStartAck(mockWebSocketBloc!, mockWebSocketService!, [ + modelSubscriptionRequest.id, + subscriptionRequest2.id, + ]); final subscription = Amplify.API.subscribe( modelSubscriptionRequest, - onEstablished: expectAsync0( - () { - mockWebSocketService!.channel.sink - .add(json.encode(mockSubscriptionEvent)); - }, - ), + onEstablished: expectAsync0(() { + mockWebSocketService!.channel.sink.add( + json.encode(mockSubscriptionEvent), + ); + }), ); final subscription2 = Amplify.API.subscribe( subscriptionRequest2, - onEstablished: expectAsync0( - () { - mockWebSocketService!.channel.sink.add( - json.encode(mockSubscriptionEvent2), - ); - }, - ), + onEstablished: expectAsync0(() { + mockWebSocketService!.channel.sink.add( + json.encode(mockSubscriptionEvent2), + ); + }), ); final streamSub = subscription.listen( @@ -432,31 +429,26 @@ void main() { expect( hubEvents, - emitsInOrder( - [ - disconnectedHubEvent, - connectingHubEvent, - connectedHubEvent, - pendingDisconnectedHubEvent, - disconnectedHubEvent, - ], - ), + emitsInOrder([ + disconnectedHubEvent, + connectingHubEvent, + connectedHubEvent, + pendingDisconnectedHubEvent, + disconnectedHubEvent, + ]), ); - sendMockStartAck( - mockWebSocketBloc!, - mockWebSocketService!, - [modelSubscriptionRequest.id], - ); + sendMockStartAck(mockWebSocketBloc!, mockWebSocketService!, [ + modelSubscriptionRequest.id, + ]); final subscription = Amplify.API.subscribe( modelSubscriptionRequest, - onEstablished: expectAsync0( - () { - mockWebSocketService!.channel.sink - .add(json.encode(mockSubscriptionEvent)); - }, - ), + onEstablished: expectAsync0(() { + mockWebSocketService!.channel.sink.add( + json.encode(mockSubscriptionEvent), + ); + }), ); final streamSub = subscription.listen( @@ -471,59 +463,57 @@ void main() { }); test( - 'should reconnect after 12 seconds when appsync ping fails multiple times', - () async { - final blocReady = Completer(); + 'should reconnect after 12 seconds when appsync ping fails multiple times', + () async { + final blocReady = Completer(); - expect( - hubEvents, - emitsInOrder( - [ + expect( + hubEvents, + emitsInOrder([ disconnectedHubEvent, connectingHubEvent, connectedHubEvent, connectingHubEvent, connectingHubEvent, connectedHubEvent, - ], - ), - ); - - sendMockStartAck( - mockWebSocketBloc!, - mockWebSocketService!, - [modelSubscriptionRequest.id], - ); - - Amplify.API - .subscribe( - modelSubscriptionRequest, - onEstablished: blocReady.complete, - ) - .listen( - expectAsync1((event) { - expect(event.data, isATestPost); - }), - ); + ]), + ); + + sendMockStartAck(mockWebSocketBloc!, mockWebSocketService!, [ + modelSubscriptionRequest.id, + ]); + + Amplify.API + .subscribe( + modelSubscriptionRequest, + onEstablished: blocReady.complete, + ) + .listen( + expectAsync1((event) { + expect(event.data, isATestPost); + }), + ); - await blocReady.future; + await blocReady.future; - mockClient.induceTimeout = true; + mockClient.induceTimeout = true; - // Five retry attempts take by default 12400ms seconds, - // Wait 12 seconds to ensure retry/back off can recover on the 5th try - await Future.delayed(const Duration(seconds: 12)); + // Five retry attempts take by default 12400ms seconds, + // Wait 12 seconds to ensure retry/back off can recover on the 5th try + await Future.delayed(const Duration(seconds: 12)); - mockClient.induceTimeout = false; + mockClient.induceTimeout = false; - await expectLater( - mockWebSocketBloc!.stream, - emitsThrough(isA()), - ); + await expectLater( + mockWebSocketBloc!.stream, + emitsThrough(isA()), + ); - mockWebSocketService!.channel.sink - .add(json.encode(mockSubscriptionEvent)); - }); + mockWebSocketService!.channel.sink.add( + json.encode(mockSubscriptionEvent), + ); + }, + ); }); group('Error Handling', () { @@ -572,9 +562,7 @@ void main() { final operation = Amplify.API.query(request: req); final res = await operation.response; - const errorExpected = GraphQLResponseError( - message: authErrorMessage, - ); + const errorExpected = GraphQLResponseError(message: authErrorMessage); expect(res.data, equals(null)); expect(res.errors.single, equals(errorExpected)); @@ -584,8 +572,9 @@ void main() { final req = GraphQLRequest(document: '', variables: {}); final operation = Amplify.API.query(request: req); await operation.cancel(); - operation.operation - .then((p0) => fail('Request should have been cancelled.')); + operation.operation.then( + (p0) => fail('Request should have been cancelled.'), + ); await operation.operation.valueOrCancellation(); expect(operation.operation.isCanceled, isTrue); }); @@ -594,8 +583,9 @@ void main() { final req = GraphQLRequest(document: '', variables: {}); final operation = Amplify.API.mutate(request: req); await operation.cancel(); - operation.operation - .then((p0) => fail('Request should have been cancelled.')); + operation.operation.then( + (p0) => fail('Request should have been cancelled.'), + ); await operation.operation.valueOrCancellation(); expect(operation.operation.isCanceled, isTrue); }); @@ -623,41 +613,29 @@ void main() { expect( hubEvents, - emitsInOrder( - [ - disconnectedHubEvent, - connectingHubEvent, - connectedHubEvent, - connectingHubEvent, - failedHubEvent, - pendingDisconnectedHubEvent, - disconnectedHubEvent, - ], - ), + emitsInOrder([ + disconnectedHubEvent, + connectingHubEvent, + connectedHubEvent, + connectingHubEvent, + failedHubEvent, + pendingDisconnectedHubEvent, + disconnectedHubEvent, + ]), + ); + + final subscriptionRequest = GraphQLRequest( + document: graphQLDocument, ); - final subscriptionRequest = - GraphQLRequest(document: graphQLDocument); - - sendMockConnectionAck( - mockWebSocketBloc!, - mockWebSocketService!, - ); - sendMockStartAck( - mockWebSocketBloc!, - mockWebSocketService!, - [subscriptionRequest.id], - ); + sendMockConnectionAck(mockWebSocketBloc!, mockWebSocketService!); + sendMockStartAck(mockWebSocketBloc!, mockWebSocketService!, [ + subscriptionRequest.id, + ]); Amplify.API - .subscribe( - subscriptionRequest, - onEstablished: blocReady.complete, - ) - .listen( - null, - onError: (Object e) => safePrint('$e'), - ); + .subscribe(subscriptionRequest, onEstablished: blocReady.complete) + .listen(null, onError: (Object e) => safePrint('$e')); await blocReady.future; @@ -670,15 +648,13 @@ void main() { expect( mockWebSocketBloc!.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - emitsDone, - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + emitsDone, + ]), ); }); }); @@ -711,30 +687,20 @@ void main() { { 'content': 'Example Comment - 6fc3b904-b977-4256-96a9-43221d01d046', 'id': 'cac2e916-3fc9-4842-8ba6-ce58e59f163c', - } + }, ]); final appsyncResponse = Map.from({ ...mockPostJson, - 'comments': { - 'items': mockCommentsJson, - }, + 'comments': {'items': mockCommentsJson}, 'blog': mockBlogJson, }); final appsyncSerializedResponse = Map.from({ ...mockPostJson, 'comments': [ - { - 'serializedData': mockCommentsJson[0], - }, - { - 'serializedData': mockCommentsJson[1], - }, - { - 'serializedData': mockCommentsJson[2], - }, - { - 'serializedData': mockCommentsJson[3], - }, + {'serializedData': mockCommentsJson[0]}, + {'serializedData': mockCommentsJson[1]}, + {'serializedData': mockCommentsJson[2]}, + {'serializedData': mockCommentsJson[3]}, ], 'blog': {'serializedData': mockBlogJson}, }); @@ -753,77 +719,35 @@ void main() { test('should work with nested models V2', () async { final post = Post.fromJson(appsyncResponse); - expect( - post.id, - mockPostJson['id'], - ); - expect( - post.blog?.name, - mockBlogJson['name'], - ); - expect( - post.comments?.length, - mockCommentsJson.length, - ); - expect( - post.comments?[0].content, - mockCommentsJson[0]['content'], - ); + expect(post.id, mockPostJson['id']); + expect(post.blog?.name, mockBlogJson['name']); + expect(post.comments?.length, mockCommentsJson.length); + expect(post.comments?[0].content, mockCommentsJson[0]['content']); }); test('should work with nested models V1', () async { final post = Post.fromJson(appsyncSerializedResponse); - expect( - post.id, - mockPostJson['id'], - ); - expect( - post.blog?.name, - mockBlogJson['name'], - ); - expect( - post.comments?.length, - mockCommentsJson.length, - ); - expect( - post.comments?[0].content, - mockCommentsJson[0]['content'], - ); + expect(post.id, mockPostJson['id']); + expect(post.blog?.name, mockBlogJson['name']); + expect(post.comments?.length, mockCommentsJson.length); + expect(post.comments?[0].content, mockCommentsJson[0]['content']); }); test('should work with null nested models', () async { final post = Post.fromJson(nullResponse); - expect( - post.id, - mockPostJson['id'], - ); - expect( - post.blog, - isNull, - ); - expect( - post.comments, - isNull, - ); + expect(post.id, mockPostJson['id']); + expect(post.blog, isNull); + expect(post.comments, isNull); }); test('should gracefully handle wrong types', () async { final post = Post.fromJson(malformedResponse); - expect( - post.id, - mockPostJson['id'], - ); - expect( - post.blog, - isNull, - ); - expect( - post.comments, - isNull, - ); + expect(post.id, mockPostJson['id']); + expect(post.blog, isNull); + expect(post.comments, isNull); }); }); } diff --git a/packages/api/amplify_api_dart/test/mocks.dart b/packages/api/amplify_api_dart/test/mocks.dart index 239ca2ffe9..8cfd8a2935 100644 --- a/packages/api/amplify_api_dart/test/mocks.dart +++ b/packages/api/amplify_api_dart/test/mocks.dart @@ -47,16 +47,10 @@ final modelWithCustomTypeVariables = { 'listOfAWSIPAddressValue': ['1.0.0.1', '1.0.0.2'], 'enumValue': 'yes', 'listOfEnumValue': ['yes', 'no'], - 'customTypeValue': { - 'foo': 'bar', - }, + 'customTypeValue': {'foo': 'bar'}, 'listOfCustomTypeValue': [ - { - 'foo': 'bar', - }, - { - 'foo': 'baz', - } + {'foo': 'bar'}, + {'foo': 'baz'}, ], }, 'listOfCustomTypeValue': [ @@ -98,18 +92,12 @@ final modelWithCustomTypeVariables = { 'listOfAWSIPAddressValue': ['1.0.0.1', '1.0.0.2'], 'enumValue': 'yes', 'listOfEnumValue': ['yes', 'no'], - 'customTypeValue': { - 'foo': 'bar', - }, + 'customTypeValue': {'foo': 'bar'}, 'listOfCustomTypeValue': [ - { - 'foo': 'bar', - }, - { - 'foo': 'baz', - } + {'foo': 'bar'}, + {'foo': 'baz'}, ], - } + }, ], }, }; @@ -123,7 +111,7 @@ const expectedQuerySuccessResponseBody = { 'id': 'TEST_ID', 'name': 'Test App Blog', 'createdAt': '2022-06-28T17:36:52.460Z', - } + }, ], }, }, @@ -243,7 +231,7 @@ final expectedModelWithCustomTypeSuccessResponseBody = { {'foo': 'bar'}, {'foo': 'baz'}, ], - } + }, ], 'createdAt': '2024-05-14T22:00:30.605Z', 'updatedAt': '2024-05-14T22:00:30.605Z', @@ -282,9 +270,7 @@ const authErrorMessage = 'Not authorized'; const expectedAuthErrorResponseBody = { 'data': null, 'errors': [ - { - 'message': authErrorMessage, - }, + {'message': authErrorMessage}, ], }; diff --git a/packages/api/amplify_api_dart/test/plugin_configuration_test.dart b/packages/api/amplify_api_dart/test/plugin_configuration_test.dart index b51db0109b..31f6dc985a 100644 --- a/packages/api/amplify_api_dart/test/plugin_configuration_test.dart +++ b/packages/api/amplify_api_dart/test/plugin_configuration_test.dart @@ -21,7 +21,7 @@ const _expectedQuerySuccessResponseBody = { 'id': 'TEST_ID', 'name': 'Test App Blog', 'createdAt': '2022-06-28T17:36:52.460Z', - } + }, ], }, }, @@ -36,9 +36,7 @@ final _mockGqlClient = MockAWSHttpClient((request, _) async { expect(request.headers[xApiKey], isA()); return AWSHttpResponse( statusCode: 200, - body: utf8.encode( - json.encode(_expectedQuerySuccessResponseBody), - ), + body: utf8.encode(json.encode(_expectedQuerySuccessResponseBody)), ); }); @@ -56,11 +54,11 @@ final _mockRestClient = MockAWSHttpClient((request, _) async { }); void main() { - final authProviderRepo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - TestIamAuthProvider(), - ); + final authProviderRepo = + AmplifyAuthProviderRepository()..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + TestIamAuthProvider(), + ); final amplifyOutputs = AmplifyOutputs.fromJson( jsonDecode(amplifyConfig) as Map, ); @@ -70,83 +68,97 @@ void main() { group('AmplifyAPI plugin configuration', () { test( - 'should register an API key auth provider when the configuration has an API key', - () async { - final plugin = AmplifyAPIDart(); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: amplifyOutputs, - ); - final apiKeyAuthProvider = authProviderRepo.getAuthProvider( - APIAuthorizationType.apiKey.authProviderToken, - ); - expect(apiKeyAuthProvider, isA()); - }); + 'should register an API key auth provider when the configuration has an API key', + () async { + final plugin = AmplifyAPIDart(); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: amplifyOutputs, + ); + final apiKeyAuthProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.apiKey.authProviderToken, + ); + expect(apiKeyAuthProvider, isA()); + }, + ); test( - 'should register an API key auth provider when the configuration has an API key and IAM is default auth mode', - () async { - final plugin = AmplifyAPIDart(); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: amplifyOutputsIamWithApiKey, - ); - final apiKeyAuthProvider = authProviderRepo.getAuthProvider( - APIAuthorizationType.apiKey.authProviderToken, - ); - expect(apiKeyAuthProvider, isA()); - }); + 'should register an API key auth provider when the configuration has an API key and IAM is default auth mode', + () async { + final plugin = AmplifyAPIDart(); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: amplifyOutputsIamWithApiKey, + ); + final apiKeyAuthProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.apiKey.authProviderToken, + ); + expect(apiKeyAuthProvider, isA()); + }, + ); - test('should register an OIDC auth provider when passed to plugin', - () async { - final plugin = AmplifyAPIDart( - options: const APIPluginOptions(authProviders: [CustomOIDCProvider()]), - ); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: amplifyOutputs, - ); - final oidcAuthProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.oidc.authProviderToken); - expect(oidcAuthProvider, isA()); - final actualRegisteredProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.oidc.authProviderToken); - final actualToken = await actualRegisteredProvider!.getLatestAuthToken(); - expect(actualToken, testOidcToken); - }); + test( + 'should register an OIDC auth provider when passed to plugin', + () async { + final plugin = AmplifyAPIDart( + options: const APIPluginOptions( + authProviders: [CustomOIDCProvider()], + ), + ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: amplifyOutputs, + ); + final oidcAuthProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.oidc.authProviderToken, + ); + expect(oidcAuthProvider, isA()); + final actualRegisteredProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.oidc.authProviderToken, + ); + final actualToken = + await actualRegisteredProvider!.getLatestAuthToken(); + expect(actualToken, testOidcToken); + }, + ); test( - 'should register a Lambda (function) auth provider when passed to plugin', - () async { - final plugin = AmplifyAPIDart( - options: - const APIPluginOptions(authProviders: [CustomFunctionProvider()]), - ); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: amplifyOutputs, - ); - final functionAuthProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.function.authProviderToken); - expect(functionAuthProvider, isA()); - final actualRegisteredProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.function.authProviderToken); - final actualToken = await actualRegisteredProvider!.getLatestAuthToken(); - expect(actualToken, testFunctionToken); - }); + 'should register a Lambda (function) auth provider when passed to plugin', + () async { + final plugin = AmplifyAPIDart( + options: const APIPluginOptions( + authProviders: [CustomFunctionProvider()], + ), + ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: amplifyOutputs, + ); + final functionAuthProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.function.authProviderToken, + ); + expect(functionAuthProvider, isA()); + final actualRegisteredProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.function.authProviderToken, + ); + final actualToken = + await actualRegisteredProvider!.getLatestAuthToken(); + expect(actualToken, testFunctionToken); + }, + ); test( - 'should configure an HTTP client for GraphQL that authorizes with auth providers and adds user-agent', - () async { - final plugin = AmplifyAPIDart( - options: APIPluginOptions(baseHttpClient: _mockGqlClient), - ); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: amplifyOutputs, - ); + 'should configure an HTTP client for GraphQL that authorizes with auth providers and adds user-agent', + () async { + final plugin = AmplifyAPIDart( + options: APIPluginOptions(baseHttpClient: _mockGqlClient), + ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: amplifyOutputs, + ); - const graphQLDocument = '''query TestQuery { + const graphQLDocument = '''query TestQuery { listBlogs { items { id @@ -155,25 +167,29 @@ void main() { } } }'''; - final request = - GraphQLRequest(document: graphQLDocument, variables: {}); - await plugin.query(request: request).response; - // no assertion here because assertion implemented in mock HTTP client - }); + final request = GraphQLRequest( + document: graphQLDocument, + variables: {}, + ); + await plugin.query(request: request).response; + // no assertion here because assertion implemented in mock HTTP client + }, + ); test( - 'should configure an HTTP client for REST that authorizes with auth providers and adds user-agent', - () async { - final plugin = AmplifyAPIDart( - options: APIPluginOptions(baseHttpClient: _mockRestClient), - ); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: amplifyOutputs, - ); + 'should configure an HTTP client for REST that authorizes with auth providers and adds user-agent', + () async { + final plugin = AmplifyAPIDart( + options: APIPluginOptions(baseHttpClient: _mockRestClient), + ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: amplifyOutputs, + ); - await plugin.get('/items').response; - // no assertion here because assertion implemented in mock HTTP client - }); + await plugin.get('/items').response; + // no assertion here because assertion implemented in mock HTTP client + }, + ); }); } diff --git a/packages/api/amplify_api_dart/test/query_predicate_graphql_filter_test.dart b/packages/api/amplify_api_dart/test/query_predicate_graphql_filter_test.dart index 23b0226113..c650883619 100644 --- a/packages/api/amplify_api_dart/test/query_predicate_graphql_filter_test.dart +++ b/packages/api/amplify_api_dart/test/query_predicate_graphql_filter_test.dart @@ -76,61 +76,64 @@ void main() { }); test( - 'query with with all possible string operators and-ed together converts to expected filter', - () { - // Note: this filter would not actually make sense for a real query. - final queryPredicate = Blog.ID.ne('id') & - Blog.ID.eq('id') & - Blog.ID.lt('id') & - Blog.ID.le('id') & - Blog.ID.gt('id') & - Blog.ID.ge('id') & - Blog.ID.contains('id') & - Blog.ID.between('id', 'id') & - Blog.ID.beginsWith('id'); + 'query with with all possible string operators and-ed together converts to expected filter', + () { + // Note: this filter would not actually make sense for a real query. + final queryPredicate = + Blog.ID.ne('id') & + Blog.ID.eq('id') & + Blog.ID.lt('id') & + Blog.ID.le('id') & + Blog.ID.gt('id') & + Blog.ID.ge('id') & + Blog.ID.contains('id') & + Blog.ID.between('id', 'id') & + Blog.ID.beginsWith('id'); - const expectedFilter = { - 'and': [ - { - 'id': {'ne': 'id'}, - }, - { - 'id': {'eq': 'id'}, - }, - { - 'id': {'lt': 'id'}, - }, - { - 'id': {'le': 'id'}, - }, - { - 'id': {'gt': 'id'}, - }, - { - 'id': {'ge': 'id'}, - }, - { - 'id': {'contains': 'id'}, - }, - { - 'id': { - 'between': ['id', 'id'], + const expectedFilter = { + 'and': [ + { + 'id': {'ne': 'id'}, }, - }, - { - 'id': {'beginsWith': 'id'}, - } - ], - }; - testQueryPredicateTranslation( - queryPredicate, - expectedFilter, - modelType: Blog.classType, - ); - }); + { + 'id': {'eq': 'id'}, + }, + { + 'id': {'lt': 'id'}, + }, + { + 'id': {'le': 'id'}, + }, + { + 'id': {'gt': 'id'}, + }, + { + 'id': {'ge': 'id'}, + }, + { + 'id': {'contains': 'id'}, + }, + { + 'id': { + 'between': ['id', 'id'], + }, + }, + { + 'id': {'beginsWith': 'id'}, + }, + ], + }; + testQueryPredicateTranslation( + queryPredicate, + expectedFilter, + modelType: Blog.classType, + ); + }, + ); test('nested and(or()) operator converts to expected filter', () { - final queryPredicate = Blog.ID.eq('id') & + final queryPredicate = + Blog.ID.eq('id') & (Blog.NAME.beginsWith('Title') | Blog.NAME.contains('Turtles')); const expectedFilter = { 'and': [ @@ -144,9 +147,9 @@ void main() { }, { 'name': {'contains': 'Turtles'}, - } + }, ], - } + }, ], }; testQueryPredicateTranslation( @@ -157,7 +160,8 @@ void main() { }); test('nested or(and()) operator converts to expected filter', () { - final queryPredicate = Blog.ID.eq('id') | + final queryPredicate = + Blog.ID.eq('id') | (Blog.NAME.beginsWith('Title') & Blog.NAME.contains('Turtles')); const expectedFilter = { 'or': [ @@ -171,7 +175,7 @@ void main() { }, { 'name': {'contains': 'Turtles'}, - } + }, ], }, ], diff --git a/packages/api/amplify_api_dart/test/rest_methods_test.dart b/packages/api/amplify_api_dart/test/rest_methods_test.dart index 57b014ee02..0645555911 100644 --- a/packages/api/amplify_api_dart/test/rest_methods_test.dart +++ b/packages/api/amplify_api_dart/test/rest_methods_test.dart @@ -18,10 +18,7 @@ final mockHttpClient = MockAWSHttpClient((request, _) async { expect(request.headers['Content-Type'], 'application/json; charset=utf-8'); } if (request.path.contains(_pathThatShouldFail)) { - return AWSHttpResponse( - statusCode: 404, - body: utf8.encode('Not found'), - ); + return AWSHttpResponse(statusCode: 404, body: utf8.encode('Not found')); } return AWSHttpResponse( statusCode: 200, @@ -35,11 +32,11 @@ void main() { options: APIPluginOptions(baseHttpClient: mockHttpClient), ); // Register IAM auth provider like amplify_auth_cognito would do. - final authProviderRepo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - TestIamAuthProvider(), - ); + final authProviderRepo = + AmplifyAuthProviderRepository()..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + TestIamAuthProvider(), + ); final amplifyOutputs = AmplifyOutputs.fromJson( jsonDecode(amplifyConfig) as Map, ); @@ -54,8 +51,9 @@ void main() { Future verifyRestOperation( AWSHttpOperation operation, ) async { - final response = - await operation.response.timeout(const Duration(seconds: 3)); + final response = await operation.response.timeout( + const Duration(seconds: 3), + ); final body = await response.decodeBody(); expect(body, _expectedRestResponseBody); expect(response.statusCode, 200); @@ -73,26 +71,34 @@ void main() { }); test('patch() should get 200', () async { - final operation = Amplify.API - .patch('items', body: HttpPayload.json({'name': 'Mow the lawn'})); + final operation = Amplify.API.patch( + 'items', + body: HttpPayload.json({'name': 'Mow the lawn'}), + ); await verifyRestOperation(operation); }); test('post() should get 200', () async { - final operation = Amplify.API - .post('items', body: HttpPayload.json({'name': 'Mow the lawn'})); + final operation = Amplify.API.post( + 'items', + body: HttpPayload.json({'name': 'Mow the lawn'}), + ); await verifyRestOperation(operation); }); test('put() should get 200', () async { - final operation = Amplify.API - .put('items', body: HttpPayload.json({'name': 'Mow the lawn'})); + final operation = Amplify.API.put( + 'items', + body: HttpPayload.json({'name': 'Mow the lawn'}), + ); await verifyRestOperation(operation); }); test('delete() should get 200', () async { - final operation = Amplify.API - .delete('items', body: HttpPayload.json({'name': 'Mow the lawn'})); + final operation = Amplify.API.delete( + 'items', + body: HttpPayload.json({'name': 'Mow the lawn'}), + ); await verifyRestOperation(operation); }); @@ -107,8 +113,9 @@ void main() { test('canceled request should never resolve', () async { final operation = Amplify.API.get('items'); await operation.cancel(); - operation.operation - .then((p0) => fail('Request should have been cancelled.')); + operation.operation.then( + (p0) => fail('Request should have been cancelled.'), + ); await expectLater( operation.response, diff --git a/packages/api/amplify_api_dart/test/test_models/Blog.dart b/packages/api/amplify_api_dart/test/test_models/Blog.dart index 80690a62b7..d376718686 100644 --- a/packages/api/amplify_api_dart/test/test_models/Blog.dart +++ b/packages/api/amplify_api_dart/test/test_models/Blog.dart @@ -36,7 +36,8 @@ class Blog extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class Blog extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,18 +74,23 @@ class Blog extends amplify_core.Model { return _updatedAt; } - const Blog._internal( - {required this.id, required name, posts, createdAt, updatedAt}) - : _name = name, - _posts = posts, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Blog._internal({ + required this.id, + required name, + posts, + createdAt, + updatedAt, + }) : _name = name, + _posts = posts, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Blog({String? id, required String name, List? posts}) { return Blog._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - posts: posts != null ? List.unmodifiable(posts) : posts); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + posts: posts != null ? List.unmodifiable(posts) : posts, + ); } bool equals(Object other) { @@ -106,11 +116,14 @@ class Blog extends amplify_core.Model { buffer.write("Blog {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,102 +131,131 @@ class Blog extends amplify_core.Model { Blog copyWith({String? name, List? posts}) { return Blog._internal( - id: id, name: name ?? this.name, posts: posts ?? this.posts); + id: id, + name: name ?? this.name, + posts: posts ?? this.posts, + ); } - Blog copyWithModelFieldValues( - {ModelFieldValue? name, ModelFieldValue?>? posts}) { + Blog copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? posts, + }) { return Blog._internal( - id: id, - name: name == null ? this.name : name.value, - posts: posts == null ? this.posts : posts.value); + id: id, + name: name == null ? this.name : name.value, + posts: posts == null ? this.posts : posts.value, + ); } Blog.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _posts = json['posts'] is Map - ? (json['posts']['items'] is List - ? (json['posts']['items'] as List) - .where((e) => e != null) - .map((e) => Post.fromJson(new Map.from(e))) - .toList() - : null) - : (json['posts'] is List - ? (json['posts'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Post.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _posts = + json['posts'] is Map + ? (json['posts']['items'] is List + ? (json['posts']['items'] as List) + .where((e) => e != null) + .map( + (e) => Post.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['posts'] is List + ? (json['posts'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Post.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'posts': _posts, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'posts': _posts, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final POSTS = amplify_core.QueryField( - fieldName: "posts", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "posts", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Blog"; - modelSchemaDefinition.pluralName = "Blogs"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Blog.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Blog.POSTS, - isRequired: false, - ofModelName: 'Post', - associatedKey: Post.BLOG)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Blog"; + modelSchemaDefinition.pluralName = "Blogs"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Blog.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Blog.POSTS, + isRequired: false, + ofModelName: 'Post', + associatedKey: Post.BLOG, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _BlogModelType extends amplify_core.ModelType { @@ -244,10 +286,10 @@ class BlogModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/Comment.dart b/packages/api/amplify_api_dart/test/test_models/Comment.dart index e33b2cb62e..cdb4732be4 100644 --- a/packages/api/amplify_api_dart/test/test_models/Comment.dart +++ b/packages/api/amplify_api_dart/test/test_models/Comment.dart @@ -35,7 +35,8 @@ class Comment extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -52,11 +53,15 @@ class Comment extends amplify_core.Model { return _content!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -68,18 +73,23 @@ class Comment extends amplify_core.Model { return _updatedAt; } - const Comment._internal( - {required this.id, post, required content, createdAt, updatedAt}) - : _post = post, - _content = content, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Comment._internal({ + required this.id, + post, + required content, + createdAt, + updatedAt, + }) : _post = post, + _content = content, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Comment({String? id, Post? post, required String content}) { return Comment._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - post: post, - content: content); + id: id == null ? amplify_core.UUID.getUUID() : id, + post: post, + content: content, + ); } bool equals(Object other) { @@ -106,11 +116,14 @@ class Comment extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("post=" + (_post != null ? _post!.toString() : "null") + ", "); buffer.write("content=" + "$_content" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,99 +131,129 @@ class Comment extends amplify_core.Model { Comment copyWith({Post? post, String? content}) { return Comment._internal( - id: id, post: post ?? this.post, content: content ?? this.content); + id: id, + post: post ?? this.post, + content: content ?? this.content, + ); } - Comment copyWithModelFieldValues( - {ModelFieldValue? post, ModelFieldValue? content}) { + Comment copyWithModelFieldValues({ + ModelFieldValue? post, + ModelFieldValue? content, + }) { return Comment._internal( - id: id, - post: post == null ? this.post : post.value, - content: content == null ? this.content : content.value); + id: id, + post: post == null ? this.post : post.value, + content: content == null ? this.content : content.value, + ); } Comment.fromJson(Map json) - : id = json['id'], - _post = json['post'] != null - ? json['post']['serializedData'] != null - ? Post.fromJson(new Map.from( - json['post']['serializedData'])) - : Post.fromJson(new Map.from(json['post'])) - : null, - _content = json['content'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _post = + json['post'] != null + ? json['post']['serializedData'] != null + ? Post.fromJson( + new Map.from( + json['post']['serializedData'], + ), + ) + : Post.fromJson(new Map.from(json['post'])) + : null, + _content = json['content'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'post': _post?.toJson(), - 'content': _content, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'post': _post?.toJson(), + 'content': _content, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'post': _post, - 'content': _content, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'post': _post, + 'content': _content, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final POST = amplify_core.QueryField( - fieldName: "post", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "post", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static final CONTENT = amplify_core.QueryField(fieldName: "content"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Comment"; - modelSchemaDefinition.pluralName = "Comments"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["postID", "content"], name: "byPost") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Comment.POST, - isRequired: false, - targetNames: ['postID'], - ofModelName: 'Post')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Comment.CONTENT, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Comment"; + modelSchemaDefinition.pluralName = "Comments"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["postID", "content"], + name: "byPost", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Comment.POST, + isRequired: false, + targetNames: ['postID'], + ofModelName: 'Post', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Comment.CONTENT, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CommentModelType extends amplify_core.ModelType { @@ -241,10 +284,10 @@ class CommentModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/CpkIntIndexes.dart b/packages/api/amplify_api_dart/test/test_models/CpkIntIndexes.dart index c87c43283f..3998d3430e 100644 --- a/packages/api/amplify_api_dart/test/test_models/CpkIntIndexes.dart +++ b/packages/api/amplify_api_dart/test/test_models/CpkIntIndexes.dart @@ -35,21 +35,29 @@ class CpkIntIndexes extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkIntIndexesModelIdentifier get modelIdentifier { try { return CpkIntIndexesModelIdentifier( - name: _name!, fieldA: _fieldA!, fieldB: _fieldB!); + name: _name!, + fieldA: _fieldA!, + fieldB: _fieldB!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -58,11 +66,15 @@ class CpkIntIndexes extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -71,11 +83,15 @@ class CpkIntIndexes extends amplify_core.Model { return _fieldA!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,11 +100,15 @@ class CpkIntIndexes extends amplify_core.Model { return _fieldB!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -100,16 +120,23 @@ class CpkIntIndexes extends amplify_core.Model { return _updatedAt; } - const CpkIntIndexes._internal( - {required name, required fieldA, required fieldB, createdAt, updatedAt}) - : _name = name, - _fieldA = fieldA, - _fieldB = fieldB, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkIntIndexes( - {required String name, required int fieldA, required int fieldB}) { + const CpkIntIndexes._internal({ + required name, + required fieldA, + required fieldB, + createdAt, + updatedAt, + }) : _name = name, + _fieldA = fieldA, + _fieldB = fieldB, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkIntIndexes({ + required String name, + required int fieldA, + required int fieldB, + }) { return CpkIntIndexes._internal(name: name, fieldA: fieldA, fieldB: fieldB); } @@ -136,14 +163,19 @@ class CpkIntIndexes extends amplify_core.Model { buffer.write("CpkIntIndexes {"); buffer.write("name=" + "$_name" + ", "); buffer.write( - "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", "); + "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", ", + ); + buffer.write( + "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", ", + ); buffer.write( - "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -158,45 +190,47 @@ class CpkIntIndexes extends amplify_core.Model { } CpkIntIndexes.fromJson(Map json) - : _name = json['name'], - _fieldA = (json['fieldA'] as num?)?.toInt(), - _fieldB = (json['fieldB'] as num?)?.toInt(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : _name = json['name'], + _fieldA = (json['fieldA'] as num?)?.toInt(), + _fieldB = (json['fieldB'] as num?)?.toInt(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'name': _name, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'name': _name, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'name': _name, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'name': _name, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final NAME = amplify_core.QueryField(fieldName: "name"); static final FIELDA = amplify_core.QueryField(fieldName: "fieldA"); static final FIELDB = amplify_core.QueryField(fieldName: "fieldB"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkIntIndexes"; - modelSchemaDefinition.pluralName = "CpkIntIndexes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkIntIndexes"; + modelSchemaDefinition.pluralName = "CpkIntIndexes"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -205,49 +239,71 @@ class CpkIntIndexes extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["name", "fieldA", "fieldB"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntIndexes.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntIndexes.FIELDA, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntIndexes.FIELDB, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["name", "fieldA", "fieldB"], + name: null, + ), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntIndexes.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntIndexes.FIELDA, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntIndexes.FIELDB, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkIntIndexesModelType extends amplify_core.ModelType { @@ -278,18 +334,24 @@ class CpkIntIndexesModelIdentifier * Create an instance of CpkIntIndexesModelIdentifier using [name] the primary key. * And [fieldA], [fieldB] the sort keys. */ - const CpkIntIndexesModelIdentifier( - {required this.name, required this.fieldA, required this.fieldB}); + const CpkIntIndexesModelIdentifier({ + required this.name, + required this.fieldA, + required this.fieldB, + }); @override - Map serializeAsMap() => - ({'name': name, 'fieldA': fieldA, 'fieldB': fieldB}); + Map serializeAsMap() => ({ + 'name': name, + 'fieldA': fieldA, + 'fieldB': fieldB, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/CpkIntPrimaryKey.dart b/packages/api/amplify_api_dart/test/test_models/CpkIntPrimaryKey.dart index c9a265486d..24525e5ab8 100644 --- a/packages/api/amplify_api_dart/test/test_models/CpkIntPrimaryKey.dart +++ b/packages/api/amplify_api_dart/test/test_models/CpkIntPrimaryKey.dart @@ -35,21 +35,29 @@ class CpkIntPrimaryKey extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkIntPrimaryKeyModelIdentifier get modelIdentifier { try { return CpkIntPrimaryKeyModelIdentifier( - intAsId: _intAsId!, fieldA: _fieldA!, fieldB: _fieldB!); + intAsId: _intAsId!, + fieldA: _fieldA!, + fieldB: _fieldB!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -58,11 +66,15 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _intAsId!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -71,11 +83,15 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _fieldA!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,11 +100,15 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _fieldB!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -100,22 +120,28 @@ class CpkIntPrimaryKey extends amplify_core.Model { return _updatedAt; } - const CpkIntPrimaryKey._internal( - {required intAsId, - required fieldA, - required fieldB, - createdAt, - updatedAt}) - : _intAsId = intAsId, - _fieldA = fieldA, - _fieldB = fieldB, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkIntPrimaryKey( - {required int intAsId, required int fieldA, required int fieldB}) { + const CpkIntPrimaryKey._internal({ + required intAsId, + required fieldA, + required fieldB, + createdAt, + updatedAt, + }) : _intAsId = intAsId, + _fieldA = fieldA, + _fieldB = fieldB, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkIntPrimaryKey({ + required int intAsId, + required int fieldA, + required int fieldB, + }) { return CpkIntPrimaryKey._internal( - intAsId: intAsId, fieldA: fieldA, fieldB: fieldB); + intAsId: intAsId, + fieldA: fieldA, + fieldB: fieldB, + ); } bool equals(Object other) { @@ -140,16 +166,22 @@ class CpkIntPrimaryKey extends amplify_core.Model { buffer.write("CpkIntPrimaryKey {"); buffer.write( - "intAsId=" + (_intAsId != null ? _intAsId!.toString() : "null") + ", "); + "intAsId=" + (_intAsId != null ? _intAsId!.toString() : "null") + ", ", + ); buffer.write( - "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", "); + "fieldA=" + (_fieldA != null ? _fieldA!.toString() : "null") + ", ", + ); buffer.write( - "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + "fieldB=" + (_fieldB != null ? _fieldB!.toString() : "null") + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -157,54 +189,64 @@ class CpkIntPrimaryKey extends amplify_core.Model { CpkIntPrimaryKey copyWith() { return CpkIntPrimaryKey._internal( - intAsId: intAsId, fieldA: fieldA, fieldB: fieldB); + intAsId: intAsId, + fieldA: fieldA, + fieldB: fieldB, + ); } CpkIntPrimaryKey copyWithModelFieldValues() { return CpkIntPrimaryKey._internal( - intAsId: intAsId, fieldA: fieldA, fieldB: fieldB); + intAsId: intAsId, + fieldA: fieldA, + fieldB: fieldB, + ); } CpkIntPrimaryKey.fromJson(Map json) - : _intAsId = (json['intAsId'] as num?)?.toInt(), - _fieldA = (json['fieldA'] as num?)?.toInt(), - _fieldB = (json['fieldB'] as num?)?.toInt(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : _intAsId = (json['intAsId'] as num?)?.toInt(), + _fieldA = (json['fieldA'] as num?)?.toInt(), + _fieldB = (json['fieldB'] as num?)?.toInt(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'intAsId': _intAsId, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'intAsId': _intAsId, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'intAsId': _intAsId, - 'fieldA': _fieldA, - 'fieldB': _fieldB, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'intAsId': _intAsId, + 'fieldA': _fieldA, + 'fieldB': _fieldB, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CpkIntPrimaryKeyModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final INTASID = amplify_core.QueryField(fieldName: "intAsId"); static final FIELDA = amplify_core.QueryField(fieldName: "fieldA"); static final FIELDB = amplify_core.QueryField(fieldName: "fieldB"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkIntPrimaryKey"; - modelSchemaDefinition.pluralName = "CpkIntPrimaryKeys"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkIntPrimaryKey"; + modelSchemaDefinition.pluralName = "CpkIntPrimaryKeys"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -213,49 +255,71 @@ class CpkIntPrimaryKey extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["intAsId", "fieldA", "fieldB"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntPrimaryKey.INTASID, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntPrimaryKey.FIELDA, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkIntPrimaryKey.FIELDB, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["intAsId", "fieldA", "fieldB"], + name: null, + ), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntPrimaryKey.INTASID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntPrimaryKey.FIELDA, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkIntPrimaryKey.FIELDB, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkIntPrimaryKeyModelType @@ -287,21 +351,24 @@ class CpkIntPrimaryKeyModelIdentifier * Create an instance of CpkIntPrimaryKeyModelIdentifier using [intAsId] the primary key. * And [fieldA], [fieldB] the sort keys. */ - const CpkIntPrimaryKeyModelIdentifier( - {required this.intAsId, required this.fieldA, required this.fieldB}); + const CpkIntPrimaryKeyModelIdentifier({ + required this.intAsId, + required this.fieldA, + required this.fieldB, + }); @override Map serializeAsMap() => ({ - 'intAsId': intAsId, - 'fieldA': fieldA, - 'fieldB': fieldB - }); + 'intAsId': intAsId, + 'fieldA': fieldA, + 'fieldB': fieldB, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildExplicitCD.dart b/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildExplicitCD.dart index d13f1dd250..e1d67093f8 100644 --- a/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildExplicitCD.dart +++ b/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildExplicitCD.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalChildExplicitCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalChildExplicitCDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildExplicitCD._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildExplicitCD( - {String? id, - required String name, - CpkOneToOneBidirectionalParentCD? belongsToParent}) { + const CpkOneToOneBidirectionalChildExplicitCD._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildExplicitCD({ + String? id, + required String name, + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -119,122 +136,157 @@ class CpkOneToOneBidirectionalChildExplicitCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildExplicitCD {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent!.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent!.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildExplicitCD copyWith( - {CpkOneToOneBidirectionalParentCD? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitCD copyWith({ + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildExplicitCD copyWithModelFieldValues( - {ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildExplicitCD copyWithModelFieldValues({ + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildExplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildExplicitCD.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentCD.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentCD.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentCD.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentCD.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitCDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildExplicitCDModelIdentifier>(); + CpkOneToOneBidirectionalChildExplicitCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildExplicitCDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentCD')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitCD"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildExplicitCDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildExplicitCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, - isRequired: false, - targetNames: ['belongsToParentID', 'belongsToParentName'], - ofModelName: 'CpkOneToOneBidirectionalParentCD')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildExplicitCD"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildExplicitCDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildExplicitCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, + isRequired: false, + targetNames: ['belongsToParentID', 'belongsToParentName'], + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildExplicitCDModelType @@ -243,7 +295,8 @@ class _CpkOneToOneBidirectionalChildExplicitCDModelType @override CpkOneToOneBidirectionalChildExplicitCD fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildExplicitCD.fromJson(jsonData); } @@ -267,18 +320,22 @@ class CpkOneToOneBidirectionalChildExplicitCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalChildExplicitCDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalChildExplicitCDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalChildExplicitCDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildImplicitCD.dart b/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildImplicitCD.dart index 8893bea8b7..f1d944f8b5 100644 --- a/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildImplicitCD.dart +++ b/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalChildImplicitCD.dart @@ -36,21 +36,28 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; CpkOneToOneBidirectionalChildImplicitCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalChildImplicitCDModelIdentifier( - id: id, name: _name!); + id: id, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -59,11 +66,15 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,21 +90,27 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { return _updatedAt; } - const CpkOneToOneBidirectionalChildImplicitCD._internal( - {required this.id, required name, belongsToParent, createdAt, updatedAt}) - : _name = name, - _belongsToParent = belongsToParent, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CpkOneToOneBidirectionalChildImplicitCD( - {String? id, - required String name, - CpkOneToOneBidirectionalParentCD? belongsToParent}) { + const CpkOneToOneBidirectionalChildImplicitCD._internal({ + required this.id, + required name, + belongsToParent, + createdAt, + updatedAt, + }) : _name = name, + _belongsToParent = belongsToParent, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CpkOneToOneBidirectionalChildImplicitCD({ + String? id, + required String name, + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - belongsToParent: belongsToParent); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + belongsToParent: belongsToParent, + ); } bool equals(Object other) { @@ -119,125 +136,160 @@ class CpkOneToOneBidirectionalChildImplicitCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalChildImplicitCD {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("belongsToParent=" + - (_belongsToParent != null ? _belongsToParent!.toString() : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "belongsToParent=" + + (_belongsToParent != null ? _belongsToParent!.toString() : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalChildImplicitCD copyWith( - {CpkOneToOneBidirectionalParentCD? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitCD copyWith({ + CpkOneToOneBidirectionalParentCD? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent ?? this.belongsToParent); + id: id, + name: name, + belongsToParent: belongsToParent ?? this.belongsToParent, + ); } - CpkOneToOneBidirectionalChildImplicitCD copyWithModelFieldValues( - {ModelFieldValue? belongsToParent}) { + CpkOneToOneBidirectionalChildImplicitCD copyWithModelFieldValues({ + ModelFieldValue? belongsToParent, + }) { return CpkOneToOneBidirectionalChildImplicitCD._internal( - id: id, - name: name, - belongsToParent: belongsToParent == null - ? this.belongsToParent - : belongsToParent.value); + id: id, + name: name, + belongsToParent: + belongsToParent == null + ? this.belongsToParent + : belongsToParent.value, + ); } CpkOneToOneBidirectionalChildImplicitCD.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _belongsToParent = json['belongsToParent'] != null - ? json['belongsToParent']['serializedData'] != null - ? CpkOneToOneBidirectionalParentCD.fromJson( + : id = json['id'], + _name = json['name'], + _belongsToParent = + json['belongsToParent'] != null + ? json['belongsToParent']['serializedData'] != null + ? CpkOneToOneBidirectionalParentCD.fromJson( new Map.from( - json['belongsToParent']['serializedData'])) - : CpkOneToOneBidirectionalParentCD.fromJson( - new Map.from(json['belongsToParent'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['belongsToParent']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalParentCD.fromJson( + new Map.from(json['belongsToParent']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'belongsToParent': _belongsToParent, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'belongsToParent': _belongsToParent, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitCDModelIdentifier> - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalChildImplicitCDModelIdentifier>(); + CpkOneToOneBidirectionalChildImplicitCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalChildImplicitCDModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final BELONGSTOPARENT = amplify_core.QueryField( - fieldName: "belongsToParent", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalParentCD')); + fieldName: "belongsToParent", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitCD"; - modelSchemaDefinition.pluralName = - "CpkOneToOneBidirectionalChildImplicitCDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalChildImplicitCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, - isRequired: false, - targetNames: [ - 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentCustomId', - 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentName' - ], - ofModelName: 'CpkOneToOneBidirectionalParentCD')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalChildImplicitCD"; + modelSchemaDefinition.pluralName = + "CpkOneToOneBidirectionalChildImplicitCDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id", "name"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalChildImplicitCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, + isRequired: false, + targetNames: [ + 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentCustomId', + 'cpkOneToOneBidirectionalChildImplicitCDBelongsToParentName', + ], + ofModelName: 'CpkOneToOneBidirectionalParentCD', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalChildImplicitCDModelType @@ -246,7 +298,8 @@ class _CpkOneToOneBidirectionalChildImplicitCDModelType @override CpkOneToOneBidirectionalChildImplicitCD fromJson( - Map jsonData) { + Map jsonData, + ) { return CpkOneToOneBidirectionalChildImplicitCD.fromJson(jsonData); } @@ -270,18 +323,22 @@ class CpkOneToOneBidirectionalChildImplicitCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalChildImplicitCDModelIdentifier using [id] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalChildImplicitCDModelIdentifier( - {required this.id, required this.name}); + const CpkOneToOneBidirectionalChildImplicitCDModelIdentifier({ + required this.id, + required this.name, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalParentCD.dart b/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalParentCD.dart index 806e8a828b..850e422f8b 100644 --- a/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalParentCD.dart +++ b/packages/api/amplify_api_dart/test/test_models/CpkOneToOneBidirectionalParentCD.dart @@ -40,21 +40,28 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); CpkOneToOneBidirectionalParentCDModelIdentifier get modelIdentifier { try { return CpkOneToOneBidirectionalParentCDModelIdentifier( - customId: _customId!, name: _name!); + customId: _customId!, + name: _name!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -63,11 +70,15 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _customId!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -76,11 +87,15 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -116,54 +131,56 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { return _cpkOneToOneBidirectionalParentCDExplicitChildName; } - const CpkOneToOneBidirectionalParentCD._internal( - {required customId, - required name, - implicitChild, - explicitChild, - createdAt, - updatedAt, - cpkOneToOneBidirectionalParentCDImplicitChildId, - cpkOneToOneBidirectionalParentCDImplicitChildName, - cpkOneToOneBidirectionalParentCDExplicitChildId, - cpkOneToOneBidirectionalParentCDExplicitChildName}) - : _customId = customId, - _name = name, - _implicitChild = implicitChild, - _explicitChild = explicitChild, - _createdAt = createdAt, - _updatedAt = updatedAt, - _cpkOneToOneBidirectionalParentCDImplicitChildId = - cpkOneToOneBidirectionalParentCDImplicitChildId, - _cpkOneToOneBidirectionalParentCDImplicitChildName = - cpkOneToOneBidirectionalParentCDImplicitChildName, - _cpkOneToOneBidirectionalParentCDExplicitChildId = - cpkOneToOneBidirectionalParentCDExplicitChildId, - _cpkOneToOneBidirectionalParentCDExplicitChildName = - cpkOneToOneBidirectionalParentCDExplicitChildName; - - factory CpkOneToOneBidirectionalParentCD( - {required String customId, - required String name, - CpkOneToOneBidirectionalChildImplicitCD? implicitChild, - CpkOneToOneBidirectionalChildExplicitCD? explicitChild, - String? cpkOneToOneBidirectionalParentCDImplicitChildId, - String? cpkOneToOneBidirectionalParentCDImplicitChildName, - String? cpkOneToOneBidirectionalParentCDExplicitChildId, - String? cpkOneToOneBidirectionalParentCDExplicitChildName}) { + const CpkOneToOneBidirectionalParentCD._internal({ + required customId, + required name, + implicitChild, + explicitChild, + createdAt, + updatedAt, + cpkOneToOneBidirectionalParentCDImplicitChildId, + cpkOneToOneBidirectionalParentCDImplicitChildName, + cpkOneToOneBidirectionalParentCDExplicitChildId, + cpkOneToOneBidirectionalParentCDExplicitChildName, + }) : _customId = customId, + _name = name, + _implicitChild = implicitChild, + _explicitChild = explicitChild, + _createdAt = createdAt, + _updatedAt = updatedAt, + _cpkOneToOneBidirectionalParentCDImplicitChildId = + cpkOneToOneBidirectionalParentCDImplicitChildId, + _cpkOneToOneBidirectionalParentCDImplicitChildName = + cpkOneToOneBidirectionalParentCDImplicitChildName, + _cpkOneToOneBidirectionalParentCDExplicitChildId = + cpkOneToOneBidirectionalParentCDExplicitChildId, + _cpkOneToOneBidirectionalParentCDExplicitChildName = + cpkOneToOneBidirectionalParentCDExplicitChildName; + + factory CpkOneToOneBidirectionalParentCD({ + required String customId, + required String name, + CpkOneToOneBidirectionalChildImplicitCD? implicitChild, + CpkOneToOneBidirectionalChildExplicitCD? explicitChild, + String? cpkOneToOneBidirectionalParentCDImplicitChildId, + String? cpkOneToOneBidirectionalParentCDImplicitChildName, + String? cpkOneToOneBidirectionalParentCDExplicitChildId, + String? cpkOneToOneBidirectionalParentCDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: implicitChild, - explicitChild: explicitChild, - cpkOneToOneBidirectionalParentCDImplicitChildId: - cpkOneToOneBidirectionalParentCDImplicitChildId, - cpkOneToOneBidirectionalParentCDImplicitChildName: - cpkOneToOneBidirectionalParentCDImplicitChildName, - cpkOneToOneBidirectionalParentCDExplicitChildId: - cpkOneToOneBidirectionalParentCDExplicitChildId, - cpkOneToOneBidirectionalParentCDExplicitChildName: - cpkOneToOneBidirectionalParentCDExplicitChildName); + customId: customId, + name: name, + implicitChild: implicitChild, + explicitChild: explicitChild, + cpkOneToOneBidirectionalParentCDImplicitChildId: + cpkOneToOneBidirectionalParentCDImplicitChildId, + cpkOneToOneBidirectionalParentCDImplicitChildName: + cpkOneToOneBidirectionalParentCDImplicitChildName, + cpkOneToOneBidirectionalParentCDExplicitChildId: + cpkOneToOneBidirectionalParentCDExplicitChildId, + cpkOneToOneBidirectionalParentCDExplicitChildName: + cpkOneToOneBidirectionalParentCDExplicitChildName, + ); } bool equals(Object other) { @@ -198,263 +215,339 @@ class CpkOneToOneBidirectionalParentCD extends amplify_core.Model { buffer.write("CpkOneToOneBidirectionalParentCD {"); buffer.write("customId=" + "$_customId" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); - buffer.write("updatedAt=" + - (_updatedAt != null ? _updatedAt!.format() : "null") + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDImplicitChildId=" + - "$_cpkOneToOneBidirectionalParentCDImplicitChildId" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDImplicitChildName=" + - "$_cpkOneToOneBidirectionalParentCDImplicitChildName" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDExplicitChildId=" + - "$_cpkOneToOneBidirectionalParentCDExplicitChildId" + - ", "); - buffer.write("cpkOneToOneBidirectionalParentCDExplicitChildName=" + - "$_cpkOneToOneBidirectionalParentCDExplicitChildName"); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + + (_updatedAt != null ? _updatedAt!.format() : "null") + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDImplicitChildId=" + + "$_cpkOneToOneBidirectionalParentCDImplicitChildId" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDImplicitChildName=" + + "$_cpkOneToOneBidirectionalParentCDImplicitChildName" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDExplicitChildId=" + + "$_cpkOneToOneBidirectionalParentCDExplicitChildId" + + ", ", + ); + buffer.write( + "cpkOneToOneBidirectionalParentCDExplicitChildName=" + + "$_cpkOneToOneBidirectionalParentCDExplicitChildName", + ); buffer.write("}"); return buffer.toString(); } - CpkOneToOneBidirectionalParentCD copyWith( - {CpkOneToOneBidirectionalChildImplicitCD? implicitChild, - CpkOneToOneBidirectionalChildExplicitCD? explicitChild, - String? cpkOneToOneBidirectionalParentCDImplicitChildId, - String? cpkOneToOneBidirectionalParentCDImplicitChildName, - String? cpkOneToOneBidirectionalParentCDExplicitChildId, - String? cpkOneToOneBidirectionalParentCDExplicitChildName}) { + CpkOneToOneBidirectionalParentCD copyWith({ + CpkOneToOneBidirectionalChildImplicitCD? implicitChild, + CpkOneToOneBidirectionalChildExplicitCD? explicitChild, + String? cpkOneToOneBidirectionalParentCDImplicitChildId, + String? cpkOneToOneBidirectionalParentCDImplicitChildName, + String? cpkOneToOneBidirectionalParentCDExplicitChildId, + String? cpkOneToOneBidirectionalParentCDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: implicitChild ?? this.implicitChild, - explicitChild: explicitChild ?? this.explicitChild, - cpkOneToOneBidirectionalParentCDImplicitChildId: - cpkOneToOneBidirectionalParentCDImplicitChildId ?? - this.cpkOneToOneBidirectionalParentCDImplicitChildId, - cpkOneToOneBidirectionalParentCDImplicitChildName: - cpkOneToOneBidirectionalParentCDImplicitChildName ?? - this.cpkOneToOneBidirectionalParentCDImplicitChildName, - cpkOneToOneBidirectionalParentCDExplicitChildId: - cpkOneToOneBidirectionalParentCDExplicitChildId ?? - this.cpkOneToOneBidirectionalParentCDExplicitChildId, - cpkOneToOneBidirectionalParentCDExplicitChildName: - cpkOneToOneBidirectionalParentCDExplicitChildName ?? - this.cpkOneToOneBidirectionalParentCDExplicitChildName); + customId: customId, + name: name, + implicitChild: implicitChild ?? this.implicitChild, + explicitChild: explicitChild ?? this.explicitChild, + cpkOneToOneBidirectionalParentCDImplicitChildId: + cpkOneToOneBidirectionalParentCDImplicitChildId ?? + this.cpkOneToOneBidirectionalParentCDImplicitChildId, + cpkOneToOneBidirectionalParentCDImplicitChildName: + cpkOneToOneBidirectionalParentCDImplicitChildName ?? + this.cpkOneToOneBidirectionalParentCDImplicitChildName, + cpkOneToOneBidirectionalParentCDExplicitChildId: + cpkOneToOneBidirectionalParentCDExplicitChildId ?? + this.cpkOneToOneBidirectionalParentCDExplicitChildId, + cpkOneToOneBidirectionalParentCDExplicitChildName: + cpkOneToOneBidirectionalParentCDExplicitChildName ?? + this.cpkOneToOneBidirectionalParentCDExplicitChildName, + ); } - CpkOneToOneBidirectionalParentCD copyWithModelFieldValues( - {ModelFieldValue? implicitChild, - ModelFieldValue? explicitChild, - ModelFieldValue? cpkOneToOneBidirectionalParentCDImplicitChildId, - ModelFieldValue? - cpkOneToOneBidirectionalParentCDImplicitChildName, - ModelFieldValue? cpkOneToOneBidirectionalParentCDExplicitChildId, - ModelFieldValue? - cpkOneToOneBidirectionalParentCDExplicitChildName}) { + CpkOneToOneBidirectionalParentCD copyWithModelFieldValues({ + ModelFieldValue? implicitChild, + ModelFieldValue? explicitChild, + ModelFieldValue? cpkOneToOneBidirectionalParentCDImplicitChildId, + ModelFieldValue? cpkOneToOneBidirectionalParentCDImplicitChildName, + ModelFieldValue? cpkOneToOneBidirectionalParentCDExplicitChildId, + ModelFieldValue? cpkOneToOneBidirectionalParentCDExplicitChildName, + }) { return CpkOneToOneBidirectionalParentCD._internal( - customId: customId, - name: name, - implicitChild: - implicitChild == null ? this.implicitChild : implicitChild.value, - explicitChild: - explicitChild == null ? this.explicitChild : explicitChild.value, - cpkOneToOneBidirectionalParentCDImplicitChildId: - cpkOneToOneBidirectionalParentCDImplicitChildId == null - ? this.cpkOneToOneBidirectionalParentCDImplicitChildId - : cpkOneToOneBidirectionalParentCDImplicitChildId.value, - cpkOneToOneBidirectionalParentCDImplicitChildName: - cpkOneToOneBidirectionalParentCDImplicitChildName == null - ? this.cpkOneToOneBidirectionalParentCDImplicitChildName - : cpkOneToOneBidirectionalParentCDImplicitChildName.value, - cpkOneToOneBidirectionalParentCDExplicitChildId: - cpkOneToOneBidirectionalParentCDExplicitChildId == null - ? this.cpkOneToOneBidirectionalParentCDExplicitChildId - : cpkOneToOneBidirectionalParentCDExplicitChildId.value, - cpkOneToOneBidirectionalParentCDExplicitChildName: - cpkOneToOneBidirectionalParentCDExplicitChildName == null - ? this.cpkOneToOneBidirectionalParentCDExplicitChildName - : cpkOneToOneBidirectionalParentCDExplicitChildName.value); + customId: customId, + name: name, + implicitChild: + implicitChild == null ? this.implicitChild : implicitChild.value, + explicitChild: + explicitChild == null ? this.explicitChild : explicitChild.value, + cpkOneToOneBidirectionalParentCDImplicitChildId: + cpkOneToOneBidirectionalParentCDImplicitChildId == null + ? this.cpkOneToOneBidirectionalParentCDImplicitChildId + : cpkOneToOneBidirectionalParentCDImplicitChildId.value, + cpkOneToOneBidirectionalParentCDImplicitChildName: + cpkOneToOneBidirectionalParentCDImplicitChildName == null + ? this.cpkOneToOneBidirectionalParentCDImplicitChildName + : cpkOneToOneBidirectionalParentCDImplicitChildName.value, + cpkOneToOneBidirectionalParentCDExplicitChildId: + cpkOneToOneBidirectionalParentCDExplicitChildId == null + ? this.cpkOneToOneBidirectionalParentCDExplicitChildId + : cpkOneToOneBidirectionalParentCDExplicitChildId.value, + cpkOneToOneBidirectionalParentCDExplicitChildName: + cpkOneToOneBidirectionalParentCDExplicitChildName == null + ? this.cpkOneToOneBidirectionalParentCDExplicitChildName + : cpkOneToOneBidirectionalParentCDExplicitChildName.value, + ); } CpkOneToOneBidirectionalParentCD.fromJson(Map json) - : _customId = json['customId'], - _name = json['name'], - _implicitChild = json['implicitChild'] != null - ? json['implicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildImplicitCD.fromJson( + : _customId = json['customId'], + _name = json['name'], + _implicitChild = + json['implicitChild'] != null + ? json['implicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildImplicitCD.fromJson( new Map.from( - json['implicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildImplicitCD.fromJson( - new Map.from(json['implicitChild'])) - : null, - _explicitChild = json['explicitChild'] != null - ? json['explicitChild']['serializedData'] != null - ? CpkOneToOneBidirectionalChildExplicitCD.fromJson( + json['implicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildImplicitCD.fromJson( + new Map.from(json['implicitChild']), + ) + : null, + _explicitChild = + json['explicitChild'] != null + ? json['explicitChild']['serializedData'] != null + ? CpkOneToOneBidirectionalChildExplicitCD.fromJson( new Map.from( - json['explicitChild']['serializedData'])) - : CpkOneToOneBidirectionalChildExplicitCD.fromJson( - new Map.from(json['explicitChild'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null, - _cpkOneToOneBidirectionalParentCDImplicitChildId = - json['cpkOneToOneBidirectionalParentCDImplicitChildId'], - _cpkOneToOneBidirectionalParentCDImplicitChildName = - json['cpkOneToOneBidirectionalParentCDImplicitChildName'], - _cpkOneToOneBidirectionalParentCDExplicitChildId = - json['cpkOneToOneBidirectionalParentCDExplicitChildId'], - _cpkOneToOneBidirectionalParentCDExplicitChildName = - json['cpkOneToOneBidirectionalParentCDExplicitChildName']; + json['explicitChild']['serializedData'], + ), + ) + : CpkOneToOneBidirectionalChildExplicitCD.fromJson( + new Map.from(json['explicitChild']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null, + _cpkOneToOneBidirectionalParentCDImplicitChildId = + json['cpkOneToOneBidirectionalParentCDImplicitChildId'], + _cpkOneToOneBidirectionalParentCDImplicitChildName = + json['cpkOneToOneBidirectionalParentCDImplicitChildName'], + _cpkOneToOneBidirectionalParentCDExplicitChildId = + json['cpkOneToOneBidirectionalParentCDExplicitChildId'], + _cpkOneToOneBidirectionalParentCDExplicitChildName = + json['cpkOneToOneBidirectionalParentCDExplicitChildName']; Map toJson() => { - 'customId': _customId, - 'name': _name, - 'implicitChild': _implicitChild?.toJson(), - 'explicitChild': _explicitChild?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format(), - 'cpkOneToOneBidirectionalParentCDImplicitChildId': - _cpkOneToOneBidirectionalParentCDImplicitChildId, - 'cpkOneToOneBidirectionalParentCDImplicitChildName': - _cpkOneToOneBidirectionalParentCDImplicitChildName, - 'cpkOneToOneBidirectionalParentCDExplicitChildId': - _cpkOneToOneBidirectionalParentCDExplicitChildId, - 'cpkOneToOneBidirectionalParentCDExplicitChildName': - _cpkOneToOneBidirectionalParentCDExplicitChildName - }; + 'customId': _customId, + 'name': _name, + 'implicitChild': _implicitChild?.toJson(), + 'explicitChild': _explicitChild?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + 'cpkOneToOneBidirectionalParentCDImplicitChildId': + _cpkOneToOneBidirectionalParentCDImplicitChildId, + 'cpkOneToOneBidirectionalParentCDImplicitChildName': + _cpkOneToOneBidirectionalParentCDImplicitChildName, + 'cpkOneToOneBidirectionalParentCDExplicitChildId': + _cpkOneToOneBidirectionalParentCDExplicitChildId, + 'cpkOneToOneBidirectionalParentCDExplicitChildName': + _cpkOneToOneBidirectionalParentCDExplicitChildName, + }; Map toMap() => { - 'customId': _customId, - 'name': _name, - 'implicitChild': _implicitChild, - 'explicitChild': _explicitChild, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt, - 'cpkOneToOneBidirectionalParentCDImplicitChildId': - _cpkOneToOneBidirectionalParentCDImplicitChildId, - 'cpkOneToOneBidirectionalParentCDImplicitChildName': - _cpkOneToOneBidirectionalParentCDImplicitChildName, - 'cpkOneToOneBidirectionalParentCDExplicitChildId': - _cpkOneToOneBidirectionalParentCDExplicitChildId, - 'cpkOneToOneBidirectionalParentCDExplicitChildName': - _cpkOneToOneBidirectionalParentCDExplicitChildName - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - CpkOneToOneBidirectionalParentCDModelIdentifier>(); + 'customId': _customId, + 'name': _name, + 'implicitChild': _implicitChild, + 'explicitChild': _explicitChild, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + 'cpkOneToOneBidirectionalParentCDImplicitChildId': + _cpkOneToOneBidirectionalParentCDImplicitChildId, + 'cpkOneToOneBidirectionalParentCDImplicitChildName': + _cpkOneToOneBidirectionalParentCDImplicitChildName, + 'cpkOneToOneBidirectionalParentCDExplicitChildId': + _cpkOneToOneBidirectionalParentCDExplicitChildId, + 'cpkOneToOneBidirectionalParentCDExplicitChildName': + _cpkOneToOneBidirectionalParentCDExplicitChildName, + }; + + static final amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentCDModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + CpkOneToOneBidirectionalParentCDModelIdentifier + >(); static final CUSTOMID = amplify_core.QueryField(fieldName: "customId"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final IMPLICITCHILD = amplify_core.QueryField( - fieldName: "implicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD')); + fieldName: "implicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', + ), + ); static final EXPLICITCHILD = amplify_core.QueryField( - fieldName: "explicitChild", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD')); + fieldName: "explicitChild", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', + ), + ); static final CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDID = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildId"); + fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildId", + ); static final CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDNAME = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildName"); + fieldName: "cpkOneToOneBidirectionalParentCDImplicitChildName", + ); static final CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDID = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildId"); + fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildId", + ); static final CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDNAME = amplify_core.QueryField( - fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildName"); + fieldName: "cpkOneToOneBidirectionalParentCDExplicitChildName", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentCD"; - modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentCDS"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["customId", "name"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD.CUSTOMID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentCD.IMPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', - associatedKey: - CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasOne( - key: CpkOneToOneBidirectionalParentCD.EXPLICITCHILD, - isRequired: false, - ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', - associatedKey: - CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CpkOneToOneBidirectionalParentCD"; + modelSchemaDefinition.pluralName = "CpkOneToOneBidirectionalParentCDS"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["customId", "name"], name: null), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalParentCD.CUSTOMID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CpkOneToOneBidirectionalParentCD.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentCD.IMPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildImplicitCD', + associatedKey: + CpkOneToOneBidirectionalChildImplicitCD.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasOne( + key: CpkOneToOneBidirectionalParentCD.EXPLICITCHILD, + isRequired: false, + ofModelName: 'CpkOneToOneBidirectionalChildExplicitCD', + associatedKey: + CpkOneToOneBidirectionalChildExplicitCD.BELONGSTOPARENT, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDID, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CpkOneToOneBidirectionalParentCD - .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDNAME, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDIMPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDID, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: + CpkOneToOneBidirectionalParentCD + .CPKONETOONEBIDIRECTIONALPARENTCDEXPLICITCHILDNAME, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } class _CpkOneToOneBidirectionalParentCDModelType @@ -485,18 +578,22 @@ class CpkOneToOneBidirectionalParentCDModelIdentifier * Create an instance of CpkOneToOneBidirectionalParentCDModelIdentifier using [customId] the primary key. * And [name] the sort key. */ - const CpkOneToOneBidirectionalParentCDModelIdentifier( - {required this.customId, required this.name}); + const CpkOneToOneBidirectionalParentCDModelIdentifier({ + required this.customId, + required this.name, + }); @override - Map serializeAsMap() => - ({'customId': customId, 'name': name}); + Map serializeAsMap() => ({ + 'customId': customId, + 'name': name, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/CustomOwnerField.dart b/packages/api/amplify_api_dart/test/test_models/CustomOwnerField.dart index e0040db62e..56818d9d85 100644 --- a/packages/api/amplify_api_dart/test/test_models/CustomOwnerField.dart +++ b/packages/api/amplify_api_dart/test/test_models/CustomOwnerField.dart @@ -37,7 +37,8 @@ class CustomOwnerField extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -50,11 +51,15 @@ class CustomOwnerField extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -74,24 +79,31 @@ class CustomOwnerField extends amplify_core.Model { return _updatedAt; } - const CustomOwnerField._internal( - {required this.id, required name, owners, private, createdAt, updatedAt}) - : _name = name, - _owners = owners, - _private = private, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory CustomOwnerField( - {String? id, - required String name, - List? owners, - String? private}) { + const CustomOwnerField._internal({ + required this.id, + required name, + owners, + private, + createdAt, + updatedAt, + }) : _name = name, + _owners = owners, + _private = private, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory CustomOwnerField({ + String? id, + required String name, + List? owners, + String? private, + }) { return CustomOwnerField._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - owners: owners != null ? List.unmodifiable(owners) : owners, - private: private); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + owners: owners != null ? List.unmodifiable(owners) : owners, + private: private, + ); } bool equals(Object other) { @@ -119,90 +131,105 @@ class CustomOwnerField extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); buffer.write( - "owners=" + (_owners != null ? _owners!.toString() : "null") + ", "); + "owners=" + (_owners != null ? _owners!.toString() : "null") + ", ", + ); buffer.write("private=" + "$_private" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - CustomOwnerField copyWith( - {String? name, List? owners, String? private}) { + CustomOwnerField copyWith({ + String? name, + List? owners, + String? private, + }) { return CustomOwnerField._internal( - id: id, - name: name ?? this.name, - owners: owners ?? this.owners, - private: private ?? this.private); + id: id, + name: name ?? this.name, + owners: owners ?? this.owners, + private: private ?? this.private, + ); } - CustomOwnerField copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue?>? owners, - ModelFieldValue? private}) { + CustomOwnerField copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? owners, + ModelFieldValue? private, + }) { return CustomOwnerField._internal( - id: id, - name: name == null ? this.name : name.value, - owners: owners == null ? this.owners : owners.value, - private: private == null ? this.private : private.value); + id: id, + name: name == null ? this.name : name.value, + owners: owners == null ? this.owners : owners.value, + private: private == null ? this.private : private.value, + ); } CustomOwnerField.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _owners = json['owners']?.cast(), - _private = json['private'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _owners = json['owners']?.cast(), + _private = json['private'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'owners': _owners, - 'private': _private, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'owners': _owners, + 'private': _private, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'owners': _owners, - 'private': _private, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'id': id, + 'name': _name, + 'owners': _owners, + 'private': _private, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + CustomOwnerFieldModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final OWNERS = amplify_core.QueryField(fieldName: "owners"); static final PRIVATE = amplify_core.QueryField(fieldName: "private"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CustomOwnerField"; - modelSchemaDefinition.pluralName = "CustomOwnerFields"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CustomOwnerField"; + modelSchemaDefinition.pluralName = "CustomOwnerFields"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.PRIVATE, operations: const [ amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]), - amplify_core.AuthRule( + amplify_core.ModelOperation.READ, + ], + ), + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owners", identityClaim: "cognito:username", @@ -211,48 +238,68 @@ class CustomOwnerField extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CustomOwnerField.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CustomOwnerField.OWNERS, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CustomOwnerField.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CustomOwnerField.OWNERS, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: CustomOwnerField.PRIVATE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: CustomOwnerField.PRIVATE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CustomOwnerFieldModelType @@ -285,10 +332,10 @@ class CustomOwnerFieldModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/CustomTypeWithAppsyncScalarTypes.dart b/packages/api/amplify_api_dart/test/test_models/CustomTypeWithAppsyncScalarTypes.dart index 52dd4d8d5b..0d74d8467e 100644 --- a/packages/api/amplify_api_dart/test/test_models/CustomTypeWithAppsyncScalarTypes.dart +++ b/packages/api/amplify_api_dart/test/test_models/CustomTypeWithAppsyncScalarTypes.dart @@ -176,162 +176,181 @@ class CustomTypeWithAppsyncScalarTypes { return _listOfCustomTypeValue; } - const CustomTypeWithAppsyncScalarTypes._internal( - {stringValue, - listOfStringValue, - intValue, - listOfIntValue, - floatValue, - listOfFloatValue, - booleanValue, - listOfBooleanValue, - awsDateValue, - listOfAWSDateValue, - awsDateTimeValue, - listOfAWSDateTimeValue, - awsTimeValue, - listOfAWSTimeValue, - awsTimestampValue, - listOfAWSTimestampValue, - awsEmailValue, - listOfAWSEmailValue, - awsJsonValue, - listOfAWSJsonValue, - awsPhoneValue, - listOfAWSPhoneValue, - awsURLValue, - listOfAWSURLValue, - awsIPAddressValue, - listOfAWSIPAddressValue, - enumValue, - listOfEnumValue, - customTypeValue, - listOfCustomTypeValue}) - : _stringValue = stringValue, - _listOfStringValue = listOfStringValue, - _intValue = intValue, - _listOfIntValue = listOfIntValue, - _floatValue = floatValue, - _listOfFloatValue = listOfFloatValue, - _booleanValue = booleanValue, - _listOfBooleanValue = listOfBooleanValue, - _awsDateValue = awsDateValue, - _listOfAWSDateValue = listOfAWSDateValue, - _awsDateTimeValue = awsDateTimeValue, - _listOfAWSDateTimeValue = listOfAWSDateTimeValue, - _awsTimeValue = awsTimeValue, - _listOfAWSTimeValue = listOfAWSTimeValue, - _awsTimestampValue = awsTimestampValue, - _listOfAWSTimestampValue = listOfAWSTimestampValue, - _awsEmailValue = awsEmailValue, - _listOfAWSEmailValue = listOfAWSEmailValue, - _awsJsonValue = awsJsonValue, - _listOfAWSJsonValue = listOfAWSJsonValue, - _awsPhoneValue = awsPhoneValue, - _listOfAWSPhoneValue = listOfAWSPhoneValue, - _awsURLValue = awsURLValue, - _listOfAWSURLValue = listOfAWSURLValue, - _awsIPAddressValue = awsIPAddressValue, - _listOfAWSIPAddressValue = listOfAWSIPAddressValue, - _enumValue = enumValue, - _listOfEnumValue = listOfEnumValue, - _customTypeValue = customTypeValue, - _listOfCustomTypeValue = listOfCustomTypeValue; - - factory CustomTypeWithAppsyncScalarTypes( - {String? stringValue, - List? listOfStringValue, - int? intValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue, - EnumField? enumValue, - List? listOfEnumValue, - SimpleCustomType? customTypeValue, - List? listOfCustomTypeValue}) { + const CustomTypeWithAppsyncScalarTypes._internal({ + stringValue, + listOfStringValue, + intValue, + listOfIntValue, + floatValue, + listOfFloatValue, + booleanValue, + listOfBooleanValue, + awsDateValue, + listOfAWSDateValue, + awsDateTimeValue, + listOfAWSDateTimeValue, + awsTimeValue, + listOfAWSTimeValue, + awsTimestampValue, + listOfAWSTimestampValue, + awsEmailValue, + listOfAWSEmailValue, + awsJsonValue, + listOfAWSJsonValue, + awsPhoneValue, + listOfAWSPhoneValue, + awsURLValue, + listOfAWSURLValue, + awsIPAddressValue, + listOfAWSIPAddressValue, + enumValue, + listOfEnumValue, + customTypeValue, + listOfCustomTypeValue, + }) : _stringValue = stringValue, + _listOfStringValue = listOfStringValue, + _intValue = intValue, + _listOfIntValue = listOfIntValue, + _floatValue = floatValue, + _listOfFloatValue = listOfFloatValue, + _booleanValue = booleanValue, + _listOfBooleanValue = listOfBooleanValue, + _awsDateValue = awsDateValue, + _listOfAWSDateValue = listOfAWSDateValue, + _awsDateTimeValue = awsDateTimeValue, + _listOfAWSDateTimeValue = listOfAWSDateTimeValue, + _awsTimeValue = awsTimeValue, + _listOfAWSTimeValue = listOfAWSTimeValue, + _awsTimestampValue = awsTimestampValue, + _listOfAWSTimestampValue = listOfAWSTimestampValue, + _awsEmailValue = awsEmailValue, + _listOfAWSEmailValue = listOfAWSEmailValue, + _awsJsonValue = awsJsonValue, + _listOfAWSJsonValue = listOfAWSJsonValue, + _awsPhoneValue = awsPhoneValue, + _listOfAWSPhoneValue = listOfAWSPhoneValue, + _awsURLValue = awsURLValue, + _listOfAWSURLValue = listOfAWSURLValue, + _awsIPAddressValue = awsIPAddressValue, + _listOfAWSIPAddressValue = listOfAWSIPAddressValue, + _enumValue = enumValue, + _listOfEnumValue = listOfEnumValue, + _customTypeValue = customTypeValue, + _listOfCustomTypeValue = listOfCustomTypeValue; + + factory CustomTypeWithAppsyncScalarTypes({ + String? stringValue, + List? listOfStringValue, + int? intValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + EnumField? enumValue, + List? listOfEnumValue, + SimpleCustomType? customTypeValue, + List? listOfCustomTypeValue, + }) { return CustomTypeWithAppsyncScalarTypes._internal( - stringValue: stringValue, - listOfStringValue: listOfStringValue != null - ? List.unmodifiable(listOfStringValue) - : listOfStringValue, - intValue: intValue, - listOfIntValue: listOfIntValue != null - ? List.unmodifiable(listOfIntValue) - : listOfIntValue, - floatValue: floatValue, - listOfFloatValue: listOfFloatValue != null - ? List.unmodifiable(listOfFloatValue) - : listOfFloatValue, - booleanValue: booleanValue, - listOfBooleanValue: listOfBooleanValue != null - ? List.unmodifiable(listOfBooleanValue) - : listOfBooleanValue, - awsDateValue: awsDateValue, - listOfAWSDateValue: listOfAWSDateValue != null - ? List.unmodifiable(listOfAWSDateValue) - : listOfAWSDateValue, - awsDateTimeValue: awsDateTimeValue, - listOfAWSDateTimeValue: listOfAWSDateTimeValue != null - ? List.unmodifiable( - listOfAWSDateTimeValue) - : listOfAWSDateTimeValue, - awsTimeValue: awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue != null - ? List.unmodifiable(listOfAWSTimeValue) - : listOfAWSTimeValue, - awsTimestampValue: awsTimestampValue, - listOfAWSTimestampValue: listOfAWSTimestampValue != null - ? List.unmodifiable( - listOfAWSTimestampValue) - : listOfAWSTimestampValue, - awsEmailValue: awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue != null - ? List.unmodifiable(listOfAWSEmailValue) - : listOfAWSEmailValue, - awsJsonValue: awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue != null - ? List.unmodifiable(listOfAWSJsonValue) - : listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue != null - ? List.unmodifiable(listOfAWSPhoneValue) - : listOfAWSPhoneValue, - awsURLValue: awsURLValue, - listOfAWSURLValue: listOfAWSURLValue != null - ? List.unmodifiable(listOfAWSURLValue) - : listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue, - listOfAWSIPAddressValue: listOfAWSIPAddressValue != null - ? List.unmodifiable(listOfAWSIPAddressValue) - : listOfAWSIPAddressValue, - enumValue: enumValue, - listOfEnumValue: listOfEnumValue != null - ? List.unmodifiable(listOfEnumValue) - : listOfEnumValue, - customTypeValue: customTypeValue, - listOfCustomTypeValue: listOfCustomTypeValue != null - ? List.unmodifiable(listOfCustomTypeValue) - : listOfCustomTypeValue); + stringValue: stringValue, + listOfStringValue: + listOfStringValue != null + ? List.unmodifiable(listOfStringValue) + : listOfStringValue, + intValue: intValue, + listOfIntValue: + listOfIntValue != null + ? List.unmodifiable(listOfIntValue) + : listOfIntValue, + floatValue: floatValue, + listOfFloatValue: + listOfFloatValue != null + ? List.unmodifiable(listOfFloatValue) + : listOfFloatValue, + booleanValue: booleanValue, + listOfBooleanValue: + listOfBooleanValue != null + ? List.unmodifiable(listOfBooleanValue) + : listOfBooleanValue, + awsDateValue: awsDateValue, + listOfAWSDateValue: + listOfAWSDateValue != null + ? List.unmodifiable(listOfAWSDateValue) + : listOfAWSDateValue, + awsDateTimeValue: awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue != null + ? List.unmodifiable( + listOfAWSDateTimeValue, + ) + : listOfAWSDateTimeValue, + awsTimeValue: awsTimeValue, + listOfAWSTimeValue: + listOfAWSTimeValue != null + ? List.unmodifiable(listOfAWSTimeValue) + : listOfAWSTimeValue, + awsTimestampValue: awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue != null + ? List.unmodifiable( + listOfAWSTimestampValue, + ) + : listOfAWSTimestampValue, + awsEmailValue: awsEmailValue, + listOfAWSEmailValue: + listOfAWSEmailValue != null + ? List.unmodifiable(listOfAWSEmailValue) + : listOfAWSEmailValue, + awsJsonValue: awsJsonValue, + listOfAWSJsonValue: + listOfAWSJsonValue != null + ? List.unmodifiable(listOfAWSJsonValue) + : listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue, + listOfAWSPhoneValue: + listOfAWSPhoneValue != null + ? List.unmodifiable(listOfAWSPhoneValue) + : listOfAWSPhoneValue, + awsURLValue: awsURLValue, + listOfAWSURLValue: + listOfAWSURLValue != null + ? List.unmodifiable(listOfAWSURLValue) + : listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue != null + ? List.unmodifiable(listOfAWSIPAddressValue) + : listOfAWSIPAddressValue, + enumValue: enumValue, + listOfEnumValue: + listOfEnumValue != null + ? List.unmodifiable(listOfEnumValue) + : listOfEnumValue, + customTypeValue: customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue != null + ? List.unmodifiable(listOfCustomTypeValue) + : listOfCustomTypeValue, + ); } bool equals(Object other) { @@ -343,50 +362,80 @@ class CustomTypeWithAppsyncScalarTypes { if (identical(other, this)) return true; return other is CustomTypeWithAppsyncScalarTypes && _stringValue == other._stringValue && - DeepCollectionEquality() - .equals(_listOfStringValue, other._listOfStringValue) && + DeepCollectionEquality().equals( + _listOfStringValue, + other._listOfStringValue, + ) && _intValue == other._intValue && - DeepCollectionEquality() - .equals(_listOfIntValue, other._listOfIntValue) && + DeepCollectionEquality().equals( + _listOfIntValue, + other._listOfIntValue, + ) && _floatValue == other._floatValue && - DeepCollectionEquality() - .equals(_listOfFloatValue, other._listOfFloatValue) && + DeepCollectionEquality().equals( + _listOfFloatValue, + other._listOfFloatValue, + ) && _booleanValue == other._booleanValue && - DeepCollectionEquality() - .equals(_listOfBooleanValue, other._listOfBooleanValue) && + DeepCollectionEquality().equals( + _listOfBooleanValue, + other._listOfBooleanValue, + ) && _awsDateValue == other._awsDateValue && - DeepCollectionEquality() - .equals(_listOfAWSDateValue, other._listOfAWSDateValue) && + DeepCollectionEquality().equals( + _listOfAWSDateValue, + other._listOfAWSDateValue, + ) && _awsDateTimeValue == other._awsDateTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSDateTimeValue, other._listOfAWSDateTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSDateTimeValue, + other._listOfAWSDateTimeValue, + ) && _awsTimeValue == other._awsTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSTimeValue, other._listOfAWSTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSTimeValue, + other._listOfAWSTimeValue, + ) && _awsTimestampValue == other._awsTimestampValue && - DeepCollectionEquality() - .equals(_listOfAWSTimestampValue, other._listOfAWSTimestampValue) && + DeepCollectionEquality().equals( + _listOfAWSTimestampValue, + other._listOfAWSTimestampValue, + ) && _awsEmailValue == other._awsEmailValue && - DeepCollectionEquality() - .equals(_listOfAWSEmailValue, other._listOfAWSEmailValue) && + DeepCollectionEquality().equals( + _listOfAWSEmailValue, + other._listOfAWSEmailValue, + ) && _awsJsonValue == other._awsJsonValue && - DeepCollectionEquality() - .equals(_listOfAWSJsonValue, other._listOfAWSJsonValue) && + DeepCollectionEquality().equals( + _listOfAWSJsonValue, + other._listOfAWSJsonValue, + ) && _awsPhoneValue == other._awsPhoneValue && - DeepCollectionEquality() - .equals(_listOfAWSPhoneValue, other._listOfAWSPhoneValue) && + DeepCollectionEquality().equals( + _listOfAWSPhoneValue, + other._listOfAWSPhoneValue, + ) && _awsURLValue == other._awsURLValue && - DeepCollectionEquality() - .equals(_listOfAWSURLValue, other._listOfAWSURLValue) && + DeepCollectionEquality().equals( + _listOfAWSURLValue, + other._listOfAWSURLValue, + ) && _awsIPAddressValue == other._awsIPAddressValue && - DeepCollectionEquality() - .equals(_listOfAWSIPAddressValue, other._listOfAWSIPAddressValue) && + DeepCollectionEquality().equals( + _listOfAWSIPAddressValue, + other._listOfAWSIPAddressValue, + ) && _enumValue == other._enumValue && - DeepCollectionEquality() - .equals(_listOfEnumValue, other._listOfEnumValue) && + DeepCollectionEquality().equals( + _listOfEnumValue, + other._listOfEnumValue, + ) && _customTypeValue == other._customTypeValue && - DeepCollectionEquality() - .equals(_listOfCustomTypeValue, other._listOfCustomTypeValue); + DeepCollectionEquality().equals( + _listOfCustomTypeValue, + other._listOfCustomTypeValue, + ); } @override @@ -398,676 +447,873 @@ class CustomTypeWithAppsyncScalarTypes { buffer.write("CustomTypeWithAppsyncScalarTypes {"); buffer.write("stringValue=" + "$_stringValue" + ", "); - buffer.write("listOfStringValue=" + - (_listOfStringValue != null ? _listOfStringValue!.toString() : "null") + - ", "); - buffer.write("intValue=" + - (_intValue != null ? _intValue!.toString() : "null") + - ", "); - buffer.write("listOfIntValue=" + - (_listOfIntValue != null ? _listOfIntValue!.toString() : "null") + - ", "); - buffer.write("floatValue=" + - (_floatValue != null ? _floatValue!.toString() : "null") + - ", "); - buffer.write("listOfFloatValue=" + - (_listOfFloatValue != null ? _listOfFloatValue!.toString() : "null") + - ", "); - buffer.write("booleanValue=" + - (_booleanValue != null ? _booleanValue!.toString() : "null") + - ", "); - buffer.write("listOfBooleanValue=" + - (_listOfBooleanValue != null - ? _listOfBooleanValue!.toString() - : "null") + - ", "); - buffer.write("awsDateValue=" + - (_awsDateValue != null ? _awsDateValue!.format() : "null") + - ", "); - buffer.write("listOfAWSDateValue=" + - (_listOfAWSDateValue != null - ? _listOfAWSDateValue!.toString() - : "null") + - ", "); - buffer.write("awsDateTimeValue=" + - (_awsDateTimeValue != null ? _awsDateTimeValue!.format() : "null") + - ", "); - buffer.write("listOfAWSDateTimeValue=" + - (_listOfAWSDateTimeValue != null - ? _listOfAWSDateTimeValue!.toString() - : "null") + - ", "); - buffer.write("awsTimeValue=" + - (_awsTimeValue != null ? _awsTimeValue!.format() : "null") + - ", "); - buffer.write("listOfAWSTimeValue=" + - (_listOfAWSTimeValue != null - ? _listOfAWSTimeValue!.toString() - : "null") + - ", "); - buffer.write("awsTimestampValue=" + - (_awsTimestampValue != null ? _awsTimestampValue!.toString() : "null") + - ", "); - buffer.write("listOfAWSTimestampValue=" + - (_listOfAWSTimestampValue != null - ? _listOfAWSTimestampValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfStringValue=" + + (_listOfStringValue != null + ? _listOfStringValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "intValue=" + (_intValue != null ? _intValue!.toString() : "null") + ", ", + ); + buffer.write( + "listOfIntValue=" + + (_listOfIntValue != null ? _listOfIntValue!.toString() : "null") + + ", ", + ); + buffer.write( + "floatValue=" + + (_floatValue != null ? _floatValue!.toString() : "null") + + ", ", + ); + buffer.write( + "listOfFloatValue=" + + (_listOfFloatValue != null ? _listOfFloatValue!.toString() : "null") + + ", ", + ); + buffer.write( + "booleanValue=" + + (_booleanValue != null ? _booleanValue!.toString() : "null") + + ", ", + ); + buffer.write( + "listOfBooleanValue=" + + (_listOfBooleanValue != null + ? _listOfBooleanValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateValue=" + + (_awsDateValue != null ? _awsDateValue!.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateValue=" + + (_listOfAWSDateValue != null + ? _listOfAWSDateValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateTimeValue=" + + (_awsDateTimeValue != null ? _awsDateTimeValue!.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateTimeValue=" + + (_listOfAWSDateTimeValue != null + ? _listOfAWSDateTimeValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimeValue=" + + (_awsTimeValue != null ? _awsTimeValue!.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimeValue=" + + (_listOfAWSTimeValue != null + ? _listOfAWSTimeValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimestampValue=" + + (_awsTimestampValue != null + ? _awsTimestampValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimestampValue=" + + (_listOfAWSTimestampValue != null + ? _listOfAWSTimestampValue!.toString() + : "null") + + ", ", + ); buffer.write("awsEmailValue=" + "$_awsEmailValue" + ", "); - buffer.write("listOfAWSEmailValue=" + - (_listOfAWSEmailValue != null - ? _listOfAWSEmailValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSEmailValue=" + + (_listOfAWSEmailValue != null + ? _listOfAWSEmailValue!.toString() + : "null") + + ", ", + ); buffer.write("awsJsonValue=" + "$_awsJsonValue" + ", "); - buffer.write("listOfAWSJsonValue=" + - (_listOfAWSJsonValue != null - ? _listOfAWSJsonValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSJsonValue=" + + (_listOfAWSJsonValue != null + ? _listOfAWSJsonValue!.toString() + : "null") + + ", ", + ); buffer.write("awsPhoneValue=" + "$_awsPhoneValue" + ", "); - buffer.write("listOfAWSPhoneValue=" + - (_listOfAWSPhoneValue != null - ? _listOfAWSPhoneValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSPhoneValue=" + + (_listOfAWSPhoneValue != null + ? _listOfAWSPhoneValue!.toString() + : "null") + + ", ", + ); buffer.write("awsURLValue=" + "$_awsURLValue" + ", "); - buffer.write("listOfAWSURLValue=" + - (_listOfAWSURLValue != null ? _listOfAWSURLValue!.toString() : "null") + - ", "); + buffer.write( + "listOfAWSURLValue=" + + (_listOfAWSURLValue != null + ? _listOfAWSURLValue!.toString() + : "null") + + ", ", + ); buffer.write("awsIPAddressValue=" + "$_awsIPAddressValue" + ", "); - buffer.write("listOfAWSIPAddressValue=" + - (_listOfAWSIPAddressValue != null - ? _listOfAWSIPAddressValue!.toString() - : "null") + - ", "); - buffer.write("enumValue=" + - (_enumValue != null ? amplify_core.enumToString(_enumValue)! : "null") + - ", "); - buffer.write("listOfEnumValue=" + - (_listOfEnumValue != null - ? _listOfEnumValue! - .map((e) => amplify_core.enumToString(e)) - .toString() - : "null") + - ", "); - buffer.write("customTypeValue=" + - (_customTypeValue != null ? _customTypeValue!.toString() : "null") + - ", "); - buffer.write("listOfCustomTypeValue=" + - (_listOfCustomTypeValue != null - ? _listOfCustomTypeValue!.toString() - : "null")); + buffer.write( + "listOfAWSIPAddressValue=" + + (_listOfAWSIPAddressValue != null + ? _listOfAWSIPAddressValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "enumValue=" + + (_enumValue != null + ? amplify_core.enumToString(_enumValue)! + : "null") + + ", ", + ); + buffer.write( + "listOfEnumValue=" + + (_listOfEnumValue != null + ? _listOfEnumValue! + .map((e) => amplify_core.enumToString(e)) + .toString() + : "null") + + ", ", + ); + buffer.write( + "customTypeValue=" + + (_customTypeValue != null ? _customTypeValue!.toString() : "null") + + ", ", + ); + buffer.write( + "listOfCustomTypeValue=" + + (_listOfCustomTypeValue != null + ? _listOfCustomTypeValue!.toString() + : "null"), + ); buffer.write("}"); return buffer.toString(); } - CustomTypeWithAppsyncScalarTypes copyWith( - {String? stringValue, - List? listOfStringValue, - int? intValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue, - EnumField? enumValue, - List? listOfEnumValue, - SimpleCustomType? customTypeValue, - List? listOfCustomTypeValue}) { + CustomTypeWithAppsyncScalarTypes copyWith({ + String? stringValue, + List? listOfStringValue, + int? intValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + EnumField? enumValue, + List? listOfEnumValue, + SimpleCustomType? customTypeValue, + List? listOfCustomTypeValue, + }) { return CustomTypeWithAppsyncScalarTypes._internal( - stringValue: stringValue ?? this.stringValue, - listOfStringValue: listOfStringValue ?? this.listOfStringValue, - intValue: intValue ?? this.intValue, - listOfIntValue: listOfIntValue ?? this.listOfIntValue, - floatValue: floatValue ?? this.floatValue, - listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, - booleanValue: booleanValue ?? this.booleanValue, - listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, - awsDateValue: awsDateValue ?? this.awsDateValue, - listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, - awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, - listOfAWSDateTimeValue: - listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, - awsTimeValue: awsTimeValue ?? this.awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, - awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, - listOfAWSTimestampValue: - listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, - awsEmailValue: awsEmailValue ?? this.awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, - awsJsonValue: awsJsonValue ?? this.awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, - awsURLValue: awsURLValue ?? this.awsURLValue, - listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, - listOfAWSIPAddressValue: - listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue, - enumValue: enumValue ?? this.enumValue, - listOfEnumValue: listOfEnumValue ?? this.listOfEnumValue, - customTypeValue: customTypeValue ?? this.customTypeValue, - listOfCustomTypeValue: - listOfCustomTypeValue ?? this.listOfCustomTypeValue); + stringValue: stringValue ?? this.stringValue, + listOfStringValue: listOfStringValue ?? this.listOfStringValue, + intValue: intValue ?? this.intValue, + listOfIntValue: listOfIntValue ?? this.listOfIntValue, + floatValue: floatValue ?? this.floatValue, + listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, + booleanValue: booleanValue ?? this.booleanValue, + listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, + awsDateValue: awsDateValue ?? this.awsDateValue, + listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, + awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, + awsTimeValue: awsTimeValue ?? this.awsTimeValue, + listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, + awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, + awsEmailValue: awsEmailValue ?? this.awsEmailValue, + listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, + awsJsonValue: awsJsonValue ?? this.awsJsonValue, + listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, + listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, + awsURLValue: awsURLValue ?? this.awsURLValue, + listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue, + enumValue: enumValue ?? this.enumValue, + listOfEnumValue: listOfEnumValue ?? this.listOfEnumValue, + customTypeValue: customTypeValue ?? this.customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue ?? this.listOfCustomTypeValue, + ); } - CustomTypeWithAppsyncScalarTypes copyWithModelFieldValues( - {ModelFieldValue? stringValue, - ModelFieldValue?>? listOfStringValue, - ModelFieldValue? intValue, - ModelFieldValue?>? listOfIntValue, - ModelFieldValue? floatValue, - ModelFieldValue?>? listOfFloatValue, - ModelFieldValue? booleanValue, - ModelFieldValue?>? listOfBooleanValue, - ModelFieldValue? awsDateValue, - ModelFieldValue?>? listOfAWSDateValue, - ModelFieldValue? awsDateTimeValue, - ModelFieldValue?>? - listOfAWSDateTimeValue, - ModelFieldValue? awsTimeValue, - ModelFieldValue?>? listOfAWSTimeValue, - ModelFieldValue? awsTimestampValue, - ModelFieldValue?>? - listOfAWSTimestampValue, - ModelFieldValue? awsEmailValue, - ModelFieldValue?>? listOfAWSEmailValue, - ModelFieldValue? awsJsonValue, - ModelFieldValue?>? listOfAWSJsonValue, - ModelFieldValue? awsPhoneValue, - ModelFieldValue?>? listOfAWSPhoneValue, - ModelFieldValue? awsURLValue, - ModelFieldValue?>? listOfAWSURLValue, - ModelFieldValue? awsIPAddressValue, - ModelFieldValue?>? listOfAWSIPAddressValue, - ModelFieldValue? enumValue, - ModelFieldValue?>? listOfEnumValue, - ModelFieldValue? customTypeValue, - ModelFieldValue?>? listOfCustomTypeValue}) { + CustomTypeWithAppsyncScalarTypes copyWithModelFieldValues({ + ModelFieldValue? stringValue, + ModelFieldValue?>? listOfStringValue, + ModelFieldValue? intValue, + ModelFieldValue?>? listOfIntValue, + ModelFieldValue? floatValue, + ModelFieldValue?>? listOfFloatValue, + ModelFieldValue? booleanValue, + ModelFieldValue?>? listOfBooleanValue, + ModelFieldValue? awsDateValue, + ModelFieldValue?>? listOfAWSDateValue, + ModelFieldValue? awsDateTimeValue, + ModelFieldValue?>? + listOfAWSDateTimeValue, + ModelFieldValue? awsTimeValue, + ModelFieldValue?>? listOfAWSTimeValue, + ModelFieldValue? awsTimestampValue, + ModelFieldValue?>? + listOfAWSTimestampValue, + ModelFieldValue? awsEmailValue, + ModelFieldValue?>? listOfAWSEmailValue, + ModelFieldValue? awsJsonValue, + ModelFieldValue?>? listOfAWSJsonValue, + ModelFieldValue? awsPhoneValue, + ModelFieldValue?>? listOfAWSPhoneValue, + ModelFieldValue? awsURLValue, + ModelFieldValue?>? listOfAWSURLValue, + ModelFieldValue? awsIPAddressValue, + ModelFieldValue?>? listOfAWSIPAddressValue, + ModelFieldValue? enumValue, + ModelFieldValue?>? listOfEnumValue, + ModelFieldValue? customTypeValue, + ModelFieldValue?>? listOfCustomTypeValue, + }) { return CustomTypeWithAppsyncScalarTypes._internal( - stringValue: stringValue == null ? this.stringValue : stringValue.value, - listOfStringValue: listOfStringValue == null - ? this.listOfStringValue - : listOfStringValue.value, - intValue: intValue == null ? this.intValue : intValue.value, - listOfIntValue: - listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, - floatValue: floatValue == null ? this.floatValue : floatValue.value, - listOfFloatValue: listOfFloatValue == null - ? this.listOfFloatValue - : listOfFloatValue.value, - booleanValue: - booleanValue == null ? this.booleanValue : booleanValue.value, - listOfBooleanValue: listOfBooleanValue == null - ? this.listOfBooleanValue - : listOfBooleanValue.value, - awsDateValue: - awsDateValue == null ? this.awsDateValue : awsDateValue.value, - listOfAWSDateValue: listOfAWSDateValue == null - ? this.listOfAWSDateValue - : listOfAWSDateValue.value, - awsDateTimeValue: awsDateTimeValue == null - ? this.awsDateTimeValue - : awsDateTimeValue.value, - listOfAWSDateTimeValue: listOfAWSDateTimeValue == null - ? this.listOfAWSDateTimeValue - : listOfAWSDateTimeValue.value, - awsTimeValue: - awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, - listOfAWSTimeValue: listOfAWSTimeValue == null - ? this.listOfAWSTimeValue - : listOfAWSTimeValue.value, - awsTimestampValue: awsTimestampValue == null - ? this.awsTimestampValue - : awsTimestampValue.value, - listOfAWSTimestampValue: listOfAWSTimestampValue == null - ? this.listOfAWSTimestampValue - : listOfAWSTimestampValue.value, - awsEmailValue: - awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, - listOfAWSEmailValue: listOfAWSEmailValue == null - ? this.listOfAWSEmailValue - : listOfAWSEmailValue.value, - awsJsonValue: - awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, - listOfAWSJsonValue: listOfAWSJsonValue == null - ? this.listOfAWSJsonValue - : listOfAWSJsonValue.value, - awsPhoneValue: - awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, - listOfAWSPhoneValue: listOfAWSPhoneValue == null - ? this.listOfAWSPhoneValue - : listOfAWSPhoneValue.value, - awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, - listOfAWSURLValue: listOfAWSURLValue == null - ? this.listOfAWSURLValue - : listOfAWSURLValue.value, - awsIPAddressValue: awsIPAddressValue == null - ? this.awsIPAddressValue - : awsIPAddressValue.value, - listOfAWSIPAddressValue: listOfAWSIPAddressValue == null - ? this.listOfAWSIPAddressValue - : listOfAWSIPAddressValue.value, - enumValue: enumValue == null ? this.enumValue : enumValue.value, - listOfEnumValue: listOfEnumValue == null - ? this.listOfEnumValue - : listOfEnumValue.value, - customTypeValue: customTypeValue == null - ? this.customTypeValue - : customTypeValue.value, - listOfCustomTypeValue: listOfCustomTypeValue == null - ? this.listOfCustomTypeValue - : listOfCustomTypeValue.value); + stringValue: stringValue == null ? this.stringValue : stringValue.value, + listOfStringValue: + listOfStringValue == null + ? this.listOfStringValue + : listOfStringValue.value, + intValue: intValue == null ? this.intValue : intValue.value, + listOfIntValue: + listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, + floatValue: floatValue == null ? this.floatValue : floatValue.value, + listOfFloatValue: + listOfFloatValue == null + ? this.listOfFloatValue + : listOfFloatValue.value, + booleanValue: + booleanValue == null ? this.booleanValue : booleanValue.value, + listOfBooleanValue: + listOfBooleanValue == null + ? this.listOfBooleanValue + : listOfBooleanValue.value, + awsDateValue: + awsDateValue == null ? this.awsDateValue : awsDateValue.value, + listOfAWSDateValue: + listOfAWSDateValue == null + ? this.listOfAWSDateValue + : listOfAWSDateValue.value, + awsDateTimeValue: + awsDateTimeValue == null + ? this.awsDateTimeValue + : awsDateTimeValue.value, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue == null + ? this.listOfAWSDateTimeValue + : listOfAWSDateTimeValue.value, + awsTimeValue: + awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, + listOfAWSTimeValue: + listOfAWSTimeValue == null + ? this.listOfAWSTimeValue + : listOfAWSTimeValue.value, + awsTimestampValue: + awsTimestampValue == null + ? this.awsTimestampValue + : awsTimestampValue.value, + listOfAWSTimestampValue: + listOfAWSTimestampValue == null + ? this.listOfAWSTimestampValue + : listOfAWSTimestampValue.value, + awsEmailValue: + awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, + listOfAWSEmailValue: + listOfAWSEmailValue == null + ? this.listOfAWSEmailValue + : listOfAWSEmailValue.value, + awsJsonValue: + awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, + listOfAWSJsonValue: + listOfAWSJsonValue == null + ? this.listOfAWSJsonValue + : listOfAWSJsonValue.value, + awsPhoneValue: + awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, + listOfAWSPhoneValue: + listOfAWSPhoneValue == null + ? this.listOfAWSPhoneValue + : listOfAWSPhoneValue.value, + awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, + listOfAWSURLValue: + listOfAWSURLValue == null + ? this.listOfAWSURLValue + : listOfAWSURLValue.value, + awsIPAddressValue: + awsIPAddressValue == null + ? this.awsIPAddressValue + : awsIPAddressValue.value, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue == null + ? this.listOfAWSIPAddressValue + : listOfAWSIPAddressValue.value, + enumValue: enumValue == null ? this.enumValue : enumValue.value, + listOfEnumValue: + listOfEnumValue == null + ? this.listOfEnumValue + : listOfEnumValue.value, + customTypeValue: + customTypeValue == null + ? this.customTypeValue + : customTypeValue.value, + listOfCustomTypeValue: + listOfCustomTypeValue == null + ? this.listOfCustomTypeValue + : listOfCustomTypeValue.value, + ); } CustomTypeWithAppsyncScalarTypes.fromJson(Map json) - : _stringValue = json['stringValue'], - _listOfStringValue = json['listOfStringValue']?.cast(), - _intValue = (json['intValue'] as num?)?.toInt(), - _listOfIntValue = (json['listOfIntValue'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - _floatValue = (json['floatValue'] as num?)?.toDouble(), - _listOfFloatValue = (json['listOfFloatValue'] as List?) - ?.map((e) => (e as num).toDouble()) - .toList(), - _booleanValue = json['booleanValue'], - _listOfBooleanValue = json['listOfBooleanValue']?.cast(), - _awsDateValue = json['awsDateValue'] != null - ? amplify_core.TemporalDate.fromString(json['awsDateValue']) - : null, - _listOfAWSDateValue = (json['listOfAWSDateValue'] as List?) - ?.map((e) => amplify_core.TemporalDate.fromString(e)) - .toList(), - _awsDateTimeValue = json['awsDateTimeValue'] != null - ? amplify_core.TemporalDateTime.fromString(json['awsDateTimeValue']) - : null, - _listOfAWSDateTimeValue = (json['listOfAWSDateTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) - .toList(), - _awsTimeValue = json['awsTimeValue'] != null - ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) - : null, - _listOfAWSTimeValue = (json['listOfAWSTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalTime.fromString(e)) - .toList(), - _awsTimestampValue = json['awsTimestampValue'] != null - ? amplify_core.TemporalTimestamp.fromSeconds( - json['awsTimestampValue']) - : null, - _listOfAWSTimestampValue = (json['listOfAWSTimestampValue'] as List?) - ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) - .toList(), - _awsEmailValue = json['awsEmailValue'], - _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), - _awsJsonValue = json['awsJsonValue'], - _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), - _awsPhoneValue = json['awsPhoneValue'], - _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), - _awsURLValue = json['awsURLValue'], - _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), - _awsIPAddressValue = json['awsIPAddressValue'], - _listOfAWSIPAddressValue = - json['listOfAWSIPAddressValue']?.cast(), - _enumValue = amplify_core.enumFromString( - json['enumValue'], EnumField.values), - _listOfEnumValue = json['listOfEnumValue'] is List - ? (json['listOfEnumValue'] as List) - .map((e) => amplify_core.enumFromString( - e, EnumField.values)!) - .toList() - : null, - _customTypeValue = json['customTypeValue'] != null - ? json['customTypeValue']['serializedData'] != null - ? SimpleCustomType.fromJson(new Map.from( - json['customTypeValue']['serializedData'])) - : SimpleCustomType.fromJson( - new Map.from(json['customTypeValue'])) - : null, - _listOfCustomTypeValue = json['listOfCustomTypeValue'] is List - ? (json['listOfCustomTypeValue'] as List) - .where((e) => e != null) - .map((e) => SimpleCustomType.fromJson( - new Map.from(e['serializedData'] ?? e))) - .toList() - : null; + : _stringValue = json['stringValue'], + _listOfStringValue = json['listOfStringValue']?.cast(), + _intValue = (json['intValue'] as num?)?.toInt(), + _listOfIntValue = + (json['listOfIntValue'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), + _floatValue = (json['floatValue'] as num?)?.toDouble(), + _listOfFloatValue = + (json['listOfFloatValue'] as List?) + ?.map((e) => (e as num).toDouble()) + .toList(), + _booleanValue = json['booleanValue'], + _listOfBooleanValue = json['listOfBooleanValue']?.cast(), + _awsDateValue = + json['awsDateValue'] != null + ? amplify_core.TemporalDate.fromString(json['awsDateValue']) + : null, + _listOfAWSDateValue = + (json['listOfAWSDateValue'] as List?) + ?.map((e) => amplify_core.TemporalDate.fromString(e)) + .toList(), + _awsDateTimeValue = + json['awsDateTimeValue'] != null + ? amplify_core.TemporalDateTime.fromString( + json['awsDateTimeValue'], + ) + : null, + _listOfAWSDateTimeValue = + (json['listOfAWSDateTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) + .toList(), + _awsTimeValue = + json['awsTimeValue'] != null + ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) + : null, + _listOfAWSTimeValue = + (json['listOfAWSTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalTime.fromString(e)) + .toList(), + _awsTimestampValue = + json['awsTimestampValue'] != null + ? amplify_core.TemporalTimestamp.fromSeconds( + json['awsTimestampValue'], + ) + : null, + _listOfAWSTimestampValue = + (json['listOfAWSTimestampValue'] as List?) + ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) + .toList(), + _awsEmailValue = json['awsEmailValue'], + _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), + _awsJsonValue = json['awsJsonValue'], + _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), + _awsPhoneValue = json['awsPhoneValue'], + _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), + _awsURLValue = json['awsURLValue'], + _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), + _awsIPAddressValue = json['awsIPAddressValue'], + _listOfAWSIPAddressValue = + json['listOfAWSIPAddressValue']?.cast(), + _enumValue = amplify_core.enumFromString( + json['enumValue'], + EnumField.values, + ), + _listOfEnumValue = + json['listOfEnumValue'] is List + ? (json['listOfEnumValue'] as List) + .map( + (e) => + amplify_core.enumFromString( + e, + EnumField.values, + )!, + ) + .toList() + : null, + _customTypeValue = + json['customTypeValue'] != null + ? json['customTypeValue']['serializedData'] != null + ? SimpleCustomType.fromJson( + new Map.from( + json['customTypeValue']['serializedData'], + ), + ) + : SimpleCustomType.fromJson( + new Map.from(json['customTypeValue']), + ) + : null, + _listOfCustomTypeValue = + json['listOfCustomTypeValue'] is List + ? (json['listOfCustomTypeValue'] as List) + .where((e) => e != null) + .map( + (e) => SimpleCustomType.fromJson( + new Map.from(e['serializedData'] ?? e), + ), + ) + .toList() + : null; Map toJson() => { - 'stringValue': _stringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue?.format(), - 'listOfAWSDateValue': - _listOfAWSDateValue?.map((e) => e.format()).toList(), - 'awsDateTimeValue': _awsDateTimeValue?.format(), - 'listOfAWSDateTimeValue': - _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), - 'awsTimeValue': _awsTimeValue?.format(), - 'listOfAWSTimeValue': - _listOfAWSTimeValue?.map((e) => e.format()).toList(), - 'awsTimestampValue': _awsTimestampValue?.toSeconds(), - 'listOfAWSTimestampValue': - _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'enumValue': amplify_core.enumToString(_enumValue), - 'listOfEnumValue': - _listOfEnumValue?.map((e) => amplify_core.enumToString(e)).toList(), - 'customTypeValue': _customTypeValue?.toJson(), - 'listOfCustomTypeValue': _listOfCustomTypeValue + 'stringValue': _stringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue?.format(), + 'listOfAWSDateValue': _listOfAWSDateValue?.map((e) => e.format()).toList(), + 'awsDateTimeValue': _awsDateTimeValue?.format(), + 'listOfAWSDateTimeValue': + _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), + 'awsTimeValue': _awsTimeValue?.format(), + 'listOfAWSTimeValue': _listOfAWSTimeValue?.map((e) => e.format()).toList(), + 'awsTimestampValue': _awsTimestampValue?.toSeconds(), + 'listOfAWSTimestampValue': + _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'enumValue': amplify_core.enumToString(_enumValue), + 'listOfEnumValue': + _listOfEnumValue?.map((e) => amplify_core.enumToString(e)).toList(), + 'customTypeValue': _customTypeValue?.toJson(), + 'listOfCustomTypeValue': + _listOfCustomTypeValue ?.map((SimpleCustomType? e) => e?.toJson()) - .toList() - }; + .toList(), + }; Map toMap() => { - 'stringValue': _stringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue, - 'listOfAWSDateValue': _listOfAWSDateValue, - 'awsDateTimeValue': _awsDateTimeValue, - 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, - 'awsTimeValue': _awsTimeValue, - 'listOfAWSTimeValue': _listOfAWSTimeValue, - 'awsTimestampValue': _awsTimestampValue, - 'listOfAWSTimestampValue': _listOfAWSTimestampValue, - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'enumValue': _enumValue, - 'listOfEnumValue': _listOfEnumValue, - 'customTypeValue': _customTypeValue, - 'listOfCustomTypeValue': _listOfCustomTypeValue - }; + 'stringValue': _stringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue, + 'listOfAWSDateValue': _listOfAWSDateValue, + 'awsDateTimeValue': _awsDateTimeValue, + 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, + 'awsTimeValue': _awsTimeValue, + 'listOfAWSTimeValue': _listOfAWSTimeValue, + 'awsTimestampValue': _awsTimestampValue, + 'listOfAWSTimestampValue': _listOfAWSTimestampValue, + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'enumValue': _enumValue, + 'listOfEnumValue': _listOfEnumValue, + 'customTypeValue': _customTypeValue, + 'listOfCustomTypeValue': _listOfCustomTypeValue, + }; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "CustomTypeWithAppsyncScalarTypes"; - modelSchemaDefinition.pluralName = "CustomTypeWithAppsyncScalarTypes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "CustomTypeWithAppsyncScalarTypes"; + modelSchemaDefinition.pluralName = "CustomTypeWithAppsyncScalarTypes"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'stringValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'stringValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfStringValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfStringValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'intValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField( + fieldName: 'intValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfIntValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.int.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfIntValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.int.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'floatValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.double))); - - modelSchemaDefinition.addField( + fieldName: 'floatValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.double, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfFloatValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.double.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfFloatValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.double.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'booleanValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.bool))); - - modelSchemaDefinition.addField( + fieldName: 'booleanValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.bool, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfBooleanValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.bool.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfBooleanValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.bool.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsDateValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.date))); - - modelSchemaDefinition.addField( + fieldName: 'awsDateValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.date, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSDateValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.date.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSDateValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.date.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsDateTimeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'awsDateTimeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSDateTimeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSDateTimeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsTimeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.time))); - - modelSchemaDefinition.addField( + fieldName: 'awsTimeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.time, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSTimeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.time.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSTimeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.time.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsTimestampValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.timestamp))); - - modelSchemaDefinition.addField( + fieldName: 'awsTimestampValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.timestamp, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSTimestampValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSTimestampValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsEmailValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsEmailValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSEmailValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSEmailValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsJsonValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsJsonValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSJsonValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSJsonValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsPhoneValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsPhoneValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSPhoneValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSPhoneValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsURLValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsURLValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSURLValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSURLValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'awsIPAddressValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'awsIPAddressValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfAWSIPAddressValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField( + fieldName: 'listOfAWSIPAddressValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'enumValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.enumeration))); - - modelSchemaDefinition.addField( + fieldName: 'enumValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.enumeration, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'listOfEnumValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.collection, - ofModelName: - amplify_core.ModelFieldTypeEnum.enumeration.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'customTypeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( + fieldName: 'listOfEnumValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.collection, + ofModelName: amplify_core.ModelFieldTypeEnum.enumeration.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'customTypeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'SimpleCustomType'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'listOfCustomTypeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofCustomTypeName: 'SimpleCustomType', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'listOfCustomTypeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'SimpleCustomType'))); - }); + ofCustomTypeName: 'SimpleCustomType', + ), + ), + ); + }, + ); } diff --git a/packages/api/amplify_api_dart/test/test_models/ModelProvider.dart b/packages/api/amplify_api_dart/test/test_models/ModelProvider.dart index 90c63bbb48..7e5bca7bf5 100644 --- a/packages/api/amplify_api_dart/test/test_models/ModelProvider.dart +++ b/packages/api/amplify_api_dart/test/test_models/ModelProvider.dart @@ -70,12 +70,12 @@ class ModelProvider implements amplify_core.ModelProviderInterface { ModelWithCustomType.schema, Post.schema, PostTags.schema, - Tag.schema + Tag.schema, ]; @override List customTypeSchemas = [ CustomTypeWithAppsyncScalarTypes.schema, - SimpleCustomType.schema + SimpleCustomType.schema, ]; static final ModelProvider _instance = ModelProvider(); @@ -111,8 +111,8 @@ class ModelProvider implements amplify_core.ModelProviderInterface { return Tag.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/api/amplify_api_dart/test/test_models/ModelWithAppsyncScalarTypes.dart b/packages/api/amplify_api_dart/test/test_models/ModelWithAppsyncScalarTypes.dart index eaeedd656d..5946e6253f 100644 --- a/packages/api/amplify_api_dart/test/test_models/ModelWithAppsyncScalarTypes.dart +++ b/packages/api/amplify_api_dart/test/test_models/ModelWithAppsyncScalarTypes.dart @@ -62,7 +62,8 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -190,157 +191,174 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { return _updatedAt; } - const ModelWithAppsyncScalarTypes._internal( - {required this.id, - stringValue, - altStringValue, - listOfStringValue, - intValue, - altIntValue, - listOfIntValue, - floatValue, - listOfFloatValue, - booleanValue, - listOfBooleanValue, - awsDateValue, - listOfAWSDateValue, - awsTimeValue, - listOfAWSTimeValue, - awsDateTimeValue, - listOfAWSDateTimeValue, - awsTimestampValue, - listOfAWSTimestampValue, - awsEmailValue, - listOfAWSEmailValue, - awsJsonValue, - listOfAWSJsonValue, - awsPhoneValue, - listOfAWSPhoneValue, - awsURLValue, - listOfAWSURLValue, - awsIPAddressValue, - listOfAWSIPAddressValue, - createdAt, - updatedAt}) - : _stringValue = stringValue, - _altStringValue = altStringValue, - _listOfStringValue = listOfStringValue, - _intValue = intValue, - _altIntValue = altIntValue, - _listOfIntValue = listOfIntValue, - _floatValue = floatValue, - _listOfFloatValue = listOfFloatValue, - _booleanValue = booleanValue, - _listOfBooleanValue = listOfBooleanValue, - _awsDateValue = awsDateValue, - _listOfAWSDateValue = listOfAWSDateValue, - _awsTimeValue = awsTimeValue, - _listOfAWSTimeValue = listOfAWSTimeValue, - _awsDateTimeValue = awsDateTimeValue, - _listOfAWSDateTimeValue = listOfAWSDateTimeValue, - _awsTimestampValue = awsTimestampValue, - _listOfAWSTimestampValue = listOfAWSTimestampValue, - _awsEmailValue = awsEmailValue, - _listOfAWSEmailValue = listOfAWSEmailValue, - _awsJsonValue = awsJsonValue, - _listOfAWSJsonValue = listOfAWSJsonValue, - _awsPhoneValue = awsPhoneValue, - _listOfAWSPhoneValue = listOfAWSPhoneValue, - _awsURLValue = awsURLValue, - _listOfAWSURLValue = listOfAWSURLValue, - _awsIPAddressValue = awsIPAddressValue, - _listOfAWSIPAddressValue = listOfAWSIPAddressValue, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory ModelWithAppsyncScalarTypes( - {String? id, - String? stringValue, - String? altStringValue, - List? listOfStringValue, - int? intValue, - int? altIntValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue}) { + const ModelWithAppsyncScalarTypes._internal({ + required this.id, + stringValue, + altStringValue, + listOfStringValue, + intValue, + altIntValue, + listOfIntValue, + floatValue, + listOfFloatValue, + booleanValue, + listOfBooleanValue, + awsDateValue, + listOfAWSDateValue, + awsTimeValue, + listOfAWSTimeValue, + awsDateTimeValue, + listOfAWSDateTimeValue, + awsTimestampValue, + listOfAWSTimestampValue, + awsEmailValue, + listOfAWSEmailValue, + awsJsonValue, + listOfAWSJsonValue, + awsPhoneValue, + listOfAWSPhoneValue, + awsURLValue, + listOfAWSURLValue, + awsIPAddressValue, + listOfAWSIPAddressValue, + createdAt, + updatedAt, + }) : _stringValue = stringValue, + _altStringValue = altStringValue, + _listOfStringValue = listOfStringValue, + _intValue = intValue, + _altIntValue = altIntValue, + _listOfIntValue = listOfIntValue, + _floatValue = floatValue, + _listOfFloatValue = listOfFloatValue, + _booleanValue = booleanValue, + _listOfBooleanValue = listOfBooleanValue, + _awsDateValue = awsDateValue, + _listOfAWSDateValue = listOfAWSDateValue, + _awsTimeValue = awsTimeValue, + _listOfAWSTimeValue = listOfAWSTimeValue, + _awsDateTimeValue = awsDateTimeValue, + _listOfAWSDateTimeValue = listOfAWSDateTimeValue, + _awsTimestampValue = awsTimestampValue, + _listOfAWSTimestampValue = listOfAWSTimestampValue, + _awsEmailValue = awsEmailValue, + _listOfAWSEmailValue = listOfAWSEmailValue, + _awsJsonValue = awsJsonValue, + _listOfAWSJsonValue = listOfAWSJsonValue, + _awsPhoneValue = awsPhoneValue, + _listOfAWSPhoneValue = listOfAWSPhoneValue, + _awsURLValue = awsURLValue, + _listOfAWSURLValue = listOfAWSURLValue, + _awsIPAddressValue = awsIPAddressValue, + _listOfAWSIPAddressValue = listOfAWSIPAddressValue, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory ModelWithAppsyncScalarTypes({ + String? id, + String? stringValue, + String? altStringValue, + List? listOfStringValue, + int? intValue, + int? altIntValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + }) { return ModelWithAppsyncScalarTypes._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - stringValue: stringValue, - altStringValue: altStringValue, - listOfStringValue: listOfStringValue != null - ? List.unmodifiable(listOfStringValue) - : listOfStringValue, - intValue: intValue, - altIntValue: altIntValue, - listOfIntValue: listOfIntValue != null - ? List.unmodifiable(listOfIntValue) - : listOfIntValue, - floatValue: floatValue, - listOfFloatValue: listOfFloatValue != null - ? List.unmodifiable(listOfFloatValue) - : listOfFloatValue, - booleanValue: booleanValue, - listOfBooleanValue: listOfBooleanValue != null - ? List.unmodifiable(listOfBooleanValue) - : listOfBooleanValue, - awsDateValue: awsDateValue, - listOfAWSDateValue: listOfAWSDateValue != null - ? List.unmodifiable(listOfAWSDateValue) - : listOfAWSDateValue, - awsTimeValue: awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue != null - ? List.unmodifiable(listOfAWSTimeValue) - : listOfAWSTimeValue, - awsDateTimeValue: awsDateTimeValue, - listOfAWSDateTimeValue: listOfAWSDateTimeValue != null - ? List.unmodifiable( - listOfAWSDateTimeValue) - : listOfAWSDateTimeValue, - awsTimestampValue: awsTimestampValue, - listOfAWSTimestampValue: listOfAWSTimestampValue != null - ? List.unmodifiable( - listOfAWSTimestampValue) - : listOfAWSTimestampValue, - awsEmailValue: awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue != null - ? List.unmodifiable(listOfAWSEmailValue) - : listOfAWSEmailValue, - awsJsonValue: awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue != null - ? List.unmodifiable(listOfAWSJsonValue) - : listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue != null - ? List.unmodifiable(listOfAWSPhoneValue) - : listOfAWSPhoneValue, - awsURLValue: awsURLValue, - listOfAWSURLValue: listOfAWSURLValue != null - ? List.unmodifiable(listOfAWSURLValue) - : listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue, - listOfAWSIPAddressValue: listOfAWSIPAddressValue != null - ? List.unmodifiable(listOfAWSIPAddressValue) - : listOfAWSIPAddressValue); + id: id == null ? amplify_core.UUID.getUUID() : id, + stringValue: stringValue, + altStringValue: altStringValue, + listOfStringValue: + listOfStringValue != null + ? List.unmodifiable(listOfStringValue) + : listOfStringValue, + intValue: intValue, + altIntValue: altIntValue, + listOfIntValue: + listOfIntValue != null + ? List.unmodifiable(listOfIntValue) + : listOfIntValue, + floatValue: floatValue, + listOfFloatValue: + listOfFloatValue != null + ? List.unmodifiable(listOfFloatValue) + : listOfFloatValue, + booleanValue: booleanValue, + listOfBooleanValue: + listOfBooleanValue != null + ? List.unmodifiable(listOfBooleanValue) + : listOfBooleanValue, + awsDateValue: awsDateValue, + listOfAWSDateValue: + listOfAWSDateValue != null + ? List.unmodifiable(listOfAWSDateValue) + : listOfAWSDateValue, + awsTimeValue: awsTimeValue, + listOfAWSTimeValue: + listOfAWSTimeValue != null + ? List.unmodifiable(listOfAWSTimeValue) + : listOfAWSTimeValue, + awsDateTimeValue: awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue != null + ? List.unmodifiable( + listOfAWSDateTimeValue, + ) + : listOfAWSDateTimeValue, + awsTimestampValue: awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue != null + ? List.unmodifiable( + listOfAWSTimestampValue, + ) + : listOfAWSTimestampValue, + awsEmailValue: awsEmailValue, + listOfAWSEmailValue: + listOfAWSEmailValue != null + ? List.unmodifiable(listOfAWSEmailValue) + : listOfAWSEmailValue, + awsJsonValue: awsJsonValue, + listOfAWSJsonValue: + listOfAWSJsonValue != null + ? List.unmodifiable(listOfAWSJsonValue) + : listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue, + listOfAWSPhoneValue: + listOfAWSPhoneValue != null + ? List.unmodifiable(listOfAWSPhoneValue) + : listOfAWSPhoneValue, + awsURLValue: awsURLValue, + listOfAWSURLValue: + listOfAWSURLValue != null + ? List.unmodifiable(listOfAWSURLValue) + : listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue != null + ? List.unmodifiable(listOfAWSIPAddressValue) + : listOfAWSIPAddressValue, + ); } bool equals(Object other) { @@ -354,45 +372,71 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { id == other.id && _stringValue == other._stringValue && _altStringValue == other._altStringValue && - DeepCollectionEquality() - .equals(_listOfStringValue, other._listOfStringValue) && + DeepCollectionEquality().equals( + _listOfStringValue, + other._listOfStringValue, + ) && _intValue == other._intValue && _altIntValue == other._altIntValue && - DeepCollectionEquality() - .equals(_listOfIntValue, other._listOfIntValue) && + DeepCollectionEquality().equals( + _listOfIntValue, + other._listOfIntValue, + ) && _floatValue == other._floatValue && - DeepCollectionEquality() - .equals(_listOfFloatValue, other._listOfFloatValue) && + DeepCollectionEquality().equals( + _listOfFloatValue, + other._listOfFloatValue, + ) && _booleanValue == other._booleanValue && - DeepCollectionEquality() - .equals(_listOfBooleanValue, other._listOfBooleanValue) && + DeepCollectionEquality().equals( + _listOfBooleanValue, + other._listOfBooleanValue, + ) && _awsDateValue == other._awsDateValue && - DeepCollectionEquality() - .equals(_listOfAWSDateValue, other._listOfAWSDateValue) && + DeepCollectionEquality().equals( + _listOfAWSDateValue, + other._listOfAWSDateValue, + ) && _awsTimeValue == other._awsTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSTimeValue, other._listOfAWSTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSTimeValue, + other._listOfAWSTimeValue, + ) && _awsDateTimeValue == other._awsDateTimeValue && - DeepCollectionEquality() - .equals(_listOfAWSDateTimeValue, other._listOfAWSDateTimeValue) && + DeepCollectionEquality().equals( + _listOfAWSDateTimeValue, + other._listOfAWSDateTimeValue, + ) && _awsTimestampValue == other._awsTimestampValue && - DeepCollectionEquality() - .equals(_listOfAWSTimestampValue, other._listOfAWSTimestampValue) && + DeepCollectionEquality().equals( + _listOfAWSTimestampValue, + other._listOfAWSTimestampValue, + ) && _awsEmailValue == other._awsEmailValue && - DeepCollectionEquality() - .equals(_listOfAWSEmailValue, other._listOfAWSEmailValue) && + DeepCollectionEquality().equals( + _listOfAWSEmailValue, + other._listOfAWSEmailValue, + ) && _awsJsonValue == other._awsJsonValue && - DeepCollectionEquality() - .equals(_listOfAWSJsonValue, other._listOfAWSJsonValue) && + DeepCollectionEquality().equals( + _listOfAWSJsonValue, + other._listOfAWSJsonValue, + ) && _awsPhoneValue == other._awsPhoneValue && - DeepCollectionEquality() - .equals(_listOfAWSPhoneValue, other._listOfAWSPhoneValue) && + DeepCollectionEquality().equals( + _listOfAWSPhoneValue, + other._listOfAWSPhoneValue, + ) && _awsURLValue == other._awsURLValue && - DeepCollectionEquality() - .equals(_listOfAWSURLValue, other._listOfAWSURLValue) && + DeepCollectionEquality().equals( + _listOfAWSURLValue, + other._listOfAWSURLValue, + ) && _awsIPAddressValue == other._awsIPAddressValue && - DeepCollectionEquality() - .equals(_listOfAWSIPAddressValue, other._listOfAWSIPAddressValue); + DeepCollectionEquality().equals( + _listOfAWSIPAddressValue, + other._listOfAWSIPAddressValue, + ); } @override @@ -406,671 +450,897 @@ class ModelWithAppsyncScalarTypes extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("stringValue=" + "$_stringValue" + ", "); buffer.write("altStringValue=" + "$_altStringValue" + ", "); - buffer.write("listOfStringValue=" + - (_listOfStringValue != null ? _listOfStringValue!.toString() : "null") + - ", "); - buffer.write("intValue=" + - (_intValue != null ? _intValue!.toString() : "null") + - ", "); - buffer.write("altIntValue=" + - (_altIntValue != null ? _altIntValue!.toString() : "null") + - ", "); - buffer.write("listOfIntValue=" + - (_listOfIntValue != null ? _listOfIntValue!.toString() : "null") + - ", "); - buffer.write("floatValue=" + - (_floatValue != null ? _floatValue!.toString() : "null") + - ", "); - buffer.write("listOfFloatValue=" + - (_listOfFloatValue != null ? _listOfFloatValue!.toString() : "null") + - ", "); - buffer.write("booleanValue=" + - (_booleanValue != null ? _booleanValue!.toString() : "null") + - ", "); - buffer.write("listOfBooleanValue=" + - (_listOfBooleanValue != null - ? _listOfBooleanValue!.toString() - : "null") + - ", "); - buffer.write("awsDateValue=" + - (_awsDateValue != null ? _awsDateValue!.format() : "null") + - ", "); - buffer.write("listOfAWSDateValue=" + - (_listOfAWSDateValue != null - ? _listOfAWSDateValue!.toString() - : "null") + - ", "); - buffer.write("awsTimeValue=" + - (_awsTimeValue != null ? _awsTimeValue!.format() : "null") + - ", "); - buffer.write("listOfAWSTimeValue=" + - (_listOfAWSTimeValue != null - ? _listOfAWSTimeValue!.toString() - : "null") + - ", "); - buffer.write("awsDateTimeValue=" + - (_awsDateTimeValue != null ? _awsDateTimeValue!.format() : "null") + - ", "); - buffer.write("listOfAWSDateTimeValue=" + - (_listOfAWSDateTimeValue != null - ? _listOfAWSDateTimeValue!.toString() - : "null") + - ", "); - buffer.write("awsTimestampValue=" + - (_awsTimestampValue != null ? _awsTimestampValue!.toString() : "null") + - ", "); - buffer.write("listOfAWSTimestampValue=" + - (_listOfAWSTimestampValue != null - ? _listOfAWSTimestampValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfStringValue=" + + (_listOfStringValue != null + ? _listOfStringValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "intValue=" + (_intValue != null ? _intValue!.toString() : "null") + ", ", + ); + buffer.write( + "altIntValue=" + + (_altIntValue != null ? _altIntValue!.toString() : "null") + + ", ", + ); + buffer.write( + "listOfIntValue=" + + (_listOfIntValue != null ? _listOfIntValue!.toString() : "null") + + ", ", + ); + buffer.write( + "floatValue=" + + (_floatValue != null ? _floatValue!.toString() : "null") + + ", ", + ); + buffer.write( + "listOfFloatValue=" + + (_listOfFloatValue != null ? _listOfFloatValue!.toString() : "null") + + ", ", + ); + buffer.write( + "booleanValue=" + + (_booleanValue != null ? _booleanValue!.toString() : "null") + + ", ", + ); + buffer.write( + "listOfBooleanValue=" + + (_listOfBooleanValue != null + ? _listOfBooleanValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateValue=" + + (_awsDateValue != null ? _awsDateValue!.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateValue=" + + (_listOfAWSDateValue != null + ? _listOfAWSDateValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimeValue=" + + (_awsTimeValue != null ? _awsTimeValue!.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimeValue=" + + (_listOfAWSTimeValue != null + ? _listOfAWSTimeValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsDateTimeValue=" + + (_awsDateTimeValue != null ? _awsDateTimeValue!.format() : "null") + + ", ", + ); + buffer.write( + "listOfAWSDateTimeValue=" + + (_listOfAWSDateTimeValue != null + ? _listOfAWSDateTimeValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "awsTimestampValue=" + + (_awsTimestampValue != null + ? _awsTimestampValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "listOfAWSTimestampValue=" + + (_listOfAWSTimestampValue != null + ? _listOfAWSTimestampValue!.toString() + : "null") + + ", ", + ); buffer.write("awsEmailValue=" + "$_awsEmailValue" + ", "); - buffer.write("listOfAWSEmailValue=" + - (_listOfAWSEmailValue != null - ? _listOfAWSEmailValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSEmailValue=" + + (_listOfAWSEmailValue != null + ? _listOfAWSEmailValue!.toString() + : "null") + + ", ", + ); buffer.write("awsJsonValue=" + "$_awsJsonValue" + ", "); - buffer.write("listOfAWSJsonValue=" + - (_listOfAWSJsonValue != null - ? _listOfAWSJsonValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSJsonValue=" + + (_listOfAWSJsonValue != null + ? _listOfAWSJsonValue!.toString() + : "null") + + ", ", + ); buffer.write("awsPhoneValue=" + "$_awsPhoneValue" + ", "); - buffer.write("listOfAWSPhoneValue=" + - (_listOfAWSPhoneValue != null - ? _listOfAWSPhoneValue!.toString() - : "null") + - ", "); + buffer.write( + "listOfAWSPhoneValue=" + + (_listOfAWSPhoneValue != null + ? _listOfAWSPhoneValue!.toString() + : "null") + + ", ", + ); buffer.write("awsURLValue=" + "$_awsURLValue" + ", "); - buffer.write("listOfAWSURLValue=" + - (_listOfAWSURLValue != null ? _listOfAWSURLValue!.toString() : "null") + - ", "); + buffer.write( + "listOfAWSURLValue=" + + (_listOfAWSURLValue != null + ? _listOfAWSURLValue!.toString() + : "null") + + ", ", + ); buffer.write("awsIPAddressValue=" + "$_awsIPAddressValue" + ", "); - buffer.write("listOfAWSIPAddressValue=" + - (_listOfAWSIPAddressValue != null - ? _listOfAWSIPAddressValue!.toString() - : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "listOfAWSIPAddressValue=" + + (_listOfAWSIPAddressValue != null + ? _listOfAWSIPAddressValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - ModelWithAppsyncScalarTypes copyWith( - {String? stringValue, - String? altStringValue, - List? listOfStringValue, - int? intValue, - int? altIntValue, - List? listOfIntValue, - double? floatValue, - List? listOfFloatValue, - bool? booleanValue, - List? listOfBooleanValue, - amplify_core.TemporalDate? awsDateValue, - List? listOfAWSDateValue, - amplify_core.TemporalTime? awsTimeValue, - List? listOfAWSTimeValue, - amplify_core.TemporalDateTime? awsDateTimeValue, - List? listOfAWSDateTimeValue, - amplify_core.TemporalTimestamp? awsTimestampValue, - List? listOfAWSTimestampValue, - String? awsEmailValue, - List? listOfAWSEmailValue, - String? awsJsonValue, - List? listOfAWSJsonValue, - String? awsPhoneValue, - List? listOfAWSPhoneValue, - String? awsURLValue, - List? listOfAWSURLValue, - String? awsIPAddressValue, - List? listOfAWSIPAddressValue}) { + ModelWithAppsyncScalarTypes copyWith({ + String? stringValue, + String? altStringValue, + List? listOfStringValue, + int? intValue, + int? altIntValue, + List? listOfIntValue, + double? floatValue, + List? listOfFloatValue, + bool? booleanValue, + List? listOfBooleanValue, + amplify_core.TemporalDate? awsDateValue, + List? listOfAWSDateValue, + amplify_core.TemporalTime? awsTimeValue, + List? listOfAWSTimeValue, + amplify_core.TemporalDateTime? awsDateTimeValue, + List? listOfAWSDateTimeValue, + amplify_core.TemporalTimestamp? awsTimestampValue, + List? listOfAWSTimestampValue, + String? awsEmailValue, + List? listOfAWSEmailValue, + String? awsJsonValue, + List? listOfAWSJsonValue, + String? awsPhoneValue, + List? listOfAWSPhoneValue, + String? awsURLValue, + List? listOfAWSURLValue, + String? awsIPAddressValue, + List? listOfAWSIPAddressValue, + }) { return ModelWithAppsyncScalarTypes._internal( - id: id, - stringValue: stringValue ?? this.stringValue, - altStringValue: altStringValue ?? this.altStringValue, - listOfStringValue: listOfStringValue ?? this.listOfStringValue, - intValue: intValue ?? this.intValue, - altIntValue: altIntValue ?? this.altIntValue, - listOfIntValue: listOfIntValue ?? this.listOfIntValue, - floatValue: floatValue ?? this.floatValue, - listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, - booleanValue: booleanValue ?? this.booleanValue, - listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, - awsDateValue: awsDateValue ?? this.awsDateValue, - listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, - awsTimeValue: awsTimeValue ?? this.awsTimeValue, - listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, - awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, - listOfAWSDateTimeValue: - listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, - awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, - listOfAWSTimestampValue: - listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, - awsEmailValue: awsEmailValue ?? this.awsEmailValue, - listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, - awsJsonValue: awsJsonValue ?? this.awsJsonValue, - listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, - awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, - listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, - awsURLValue: awsURLValue ?? this.awsURLValue, - listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, - awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, - listOfAWSIPAddressValue: - listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue); + id: id, + stringValue: stringValue ?? this.stringValue, + altStringValue: altStringValue ?? this.altStringValue, + listOfStringValue: listOfStringValue ?? this.listOfStringValue, + intValue: intValue ?? this.intValue, + altIntValue: altIntValue ?? this.altIntValue, + listOfIntValue: listOfIntValue ?? this.listOfIntValue, + floatValue: floatValue ?? this.floatValue, + listOfFloatValue: listOfFloatValue ?? this.listOfFloatValue, + booleanValue: booleanValue ?? this.booleanValue, + listOfBooleanValue: listOfBooleanValue ?? this.listOfBooleanValue, + awsDateValue: awsDateValue ?? this.awsDateValue, + listOfAWSDateValue: listOfAWSDateValue ?? this.listOfAWSDateValue, + awsTimeValue: awsTimeValue ?? this.awsTimeValue, + listOfAWSTimeValue: listOfAWSTimeValue ?? this.listOfAWSTimeValue, + awsDateTimeValue: awsDateTimeValue ?? this.awsDateTimeValue, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue ?? this.listOfAWSDateTimeValue, + awsTimestampValue: awsTimestampValue ?? this.awsTimestampValue, + listOfAWSTimestampValue: + listOfAWSTimestampValue ?? this.listOfAWSTimestampValue, + awsEmailValue: awsEmailValue ?? this.awsEmailValue, + listOfAWSEmailValue: listOfAWSEmailValue ?? this.listOfAWSEmailValue, + awsJsonValue: awsJsonValue ?? this.awsJsonValue, + listOfAWSJsonValue: listOfAWSJsonValue ?? this.listOfAWSJsonValue, + awsPhoneValue: awsPhoneValue ?? this.awsPhoneValue, + listOfAWSPhoneValue: listOfAWSPhoneValue ?? this.listOfAWSPhoneValue, + awsURLValue: awsURLValue ?? this.awsURLValue, + listOfAWSURLValue: listOfAWSURLValue ?? this.listOfAWSURLValue, + awsIPAddressValue: awsIPAddressValue ?? this.awsIPAddressValue, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue ?? this.listOfAWSIPAddressValue, + ); } - ModelWithAppsyncScalarTypes copyWithModelFieldValues( - {ModelFieldValue? stringValue, - ModelFieldValue? altStringValue, - ModelFieldValue?>? listOfStringValue, - ModelFieldValue? intValue, - ModelFieldValue? altIntValue, - ModelFieldValue?>? listOfIntValue, - ModelFieldValue? floatValue, - ModelFieldValue?>? listOfFloatValue, - ModelFieldValue? booleanValue, - ModelFieldValue?>? listOfBooleanValue, - ModelFieldValue? awsDateValue, - ModelFieldValue?>? listOfAWSDateValue, - ModelFieldValue? awsTimeValue, - ModelFieldValue?>? listOfAWSTimeValue, - ModelFieldValue? awsDateTimeValue, - ModelFieldValue?>? - listOfAWSDateTimeValue, - ModelFieldValue? awsTimestampValue, - ModelFieldValue?>? - listOfAWSTimestampValue, - ModelFieldValue? awsEmailValue, - ModelFieldValue?>? listOfAWSEmailValue, - ModelFieldValue? awsJsonValue, - ModelFieldValue?>? listOfAWSJsonValue, - ModelFieldValue? awsPhoneValue, - ModelFieldValue?>? listOfAWSPhoneValue, - ModelFieldValue? awsURLValue, - ModelFieldValue?>? listOfAWSURLValue, - ModelFieldValue? awsIPAddressValue, - ModelFieldValue?>? listOfAWSIPAddressValue}) { + ModelWithAppsyncScalarTypes copyWithModelFieldValues({ + ModelFieldValue? stringValue, + ModelFieldValue? altStringValue, + ModelFieldValue?>? listOfStringValue, + ModelFieldValue? intValue, + ModelFieldValue? altIntValue, + ModelFieldValue?>? listOfIntValue, + ModelFieldValue? floatValue, + ModelFieldValue?>? listOfFloatValue, + ModelFieldValue? booleanValue, + ModelFieldValue?>? listOfBooleanValue, + ModelFieldValue? awsDateValue, + ModelFieldValue?>? listOfAWSDateValue, + ModelFieldValue? awsTimeValue, + ModelFieldValue?>? listOfAWSTimeValue, + ModelFieldValue? awsDateTimeValue, + ModelFieldValue?>? + listOfAWSDateTimeValue, + ModelFieldValue? awsTimestampValue, + ModelFieldValue?>? + listOfAWSTimestampValue, + ModelFieldValue? awsEmailValue, + ModelFieldValue?>? listOfAWSEmailValue, + ModelFieldValue? awsJsonValue, + ModelFieldValue?>? listOfAWSJsonValue, + ModelFieldValue? awsPhoneValue, + ModelFieldValue?>? listOfAWSPhoneValue, + ModelFieldValue? awsURLValue, + ModelFieldValue?>? listOfAWSURLValue, + ModelFieldValue? awsIPAddressValue, + ModelFieldValue?>? listOfAWSIPAddressValue, + }) { return ModelWithAppsyncScalarTypes._internal( - id: id, - stringValue: stringValue == null ? this.stringValue : stringValue.value, - altStringValue: - altStringValue == null ? this.altStringValue : altStringValue.value, - listOfStringValue: listOfStringValue == null - ? this.listOfStringValue - : listOfStringValue.value, - intValue: intValue == null ? this.intValue : intValue.value, - altIntValue: altIntValue == null ? this.altIntValue : altIntValue.value, - listOfIntValue: - listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, - floatValue: floatValue == null ? this.floatValue : floatValue.value, - listOfFloatValue: listOfFloatValue == null - ? this.listOfFloatValue - : listOfFloatValue.value, - booleanValue: - booleanValue == null ? this.booleanValue : booleanValue.value, - listOfBooleanValue: listOfBooleanValue == null - ? this.listOfBooleanValue - : listOfBooleanValue.value, - awsDateValue: - awsDateValue == null ? this.awsDateValue : awsDateValue.value, - listOfAWSDateValue: listOfAWSDateValue == null - ? this.listOfAWSDateValue - : listOfAWSDateValue.value, - awsTimeValue: - awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, - listOfAWSTimeValue: listOfAWSTimeValue == null - ? this.listOfAWSTimeValue - : listOfAWSTimeValue.value, - awsDateTimeValue: awsDateTimeValue == null - ? this.awsDateTimeValue - : awsDateTimeValue.value, - listOfAWSDateTimeValue: listOfAWSDateTimeValue == null - ? this.listOfAWSDateTimeValue - : listOfAWSDateTimeValue.value, - awsTimestampValue: awsTimestampValue == null - ? this.awsTimestampValue - : awsTimestampValue.value, - listOfAWSTimestampValue: listOfAWSTimestampValue == null - ? this.listOfAWSTimestampValue - : listOfAWSTimestampValue.value, - awsEmailValue: - awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, - listOfAWSEmailValue: listOfAWSEmailValue == null - ? this.listOfAWSEmailValue - : listOfAWSEmailValue.value, - awsJsonValue: - awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, - listOfAWSJsonValue: listOfAWSJsonValue == null - ? this.listOfAWSJsonValue - : listOfAWSJsonValue.value, - awsPhoneValue: - awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, - listOfAWSPhoneValue: listOfAWSPhoneValue == null - ? this.listOfAWSPhoneValue - : listOfAWSPhoneValue.value, - awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, - listOfAWSURLValue: listOfAWSURLValue == null - ? this.listOfAWSURLValue - : listOfAWSURLValue.value, - awsIPAddressValue: awsIPAddressValue == null - ? this.awsIPAddressValue - : awsIPAddressValue.value, - listOfAWSIPAddressValue: listOfAWSIPAddressValue == null - ? this.listOfAWSIPAddressValue - : listOfAWSIPAddressValue.value); + id: id, + stringValue: stringValue == null ? this.stringValue : stringValue.value, + altStringValue: + altStringValue == null ? this.altStringValue : altStringValue.value, + listOfStringValue: + listOfStringValue == null + ? this.listOfStringValue + : listOfStringValue.value, + intValue: intValue == null ? this.intValue : intValue.value, + altIntValue: altIntValue == null ? this.altIntValue : altIntValue.value, + listOfIntValue: + listOfIntValue == null ? this.listOfIntValue : listOfIntValue.value, + floatValue: floatValue == null ? this.floatValue : floatValue.value, + listOfFloatValue: + listOfFloatValue == null + ? this.listOfFloatValue + : listOfFloatValue.value, + booleanValue: + booleanValue == null ? this.booleanValue : booleanValue.value, + listOfBooleanValue: + listOfBooleanValue == null + ? this.listOfBooleanValue + : listOfBooleanValue.value, + awsDateValue: + awsDateValue == null ? this.awsDateValue : awsDateValue.value, + listOfAWSDateValue: + listOfAWSDateValue == null + ? this.listOfAWSDateValue + : listOfAWSDateValue.value, + awsTimeValue: + awsTimeValue == null ? this.awsTimeValue : awsTimeValue.value, + listOfAWSTimeValue: + listOfAWSTimeValue == null + ? this.listOfAWSTimeValue + : listOfAWSTimeValue.value, + awsDateTimeValue: + awsDateTimeValue == null + ? this.awsDateTimeValue + : awsDateTimeValue.value, + listOfAWSDateTimeValue: + listOfAWSDateTimeValue == null + ? this.listOfAWSDateTimeValue + : listOfAWSDateTimeValue.value, + awsTimestampValue: + awsTimestampValue == null + ? this.awsTimestampValue + : awsTimestampValue.value, + listOfAWSTimestampValue: + listOfAWSTimestampValue == null + ? this.listOfAWSTimestampValue + : listOfAWSTimestampValue.value, + awsEmailValue: + awsEmailValue == null ? this.awsEmailValue : awsEmailValue.value, + listOfAWSEmailValue: + listOfAWSEmailValue == null + ? this.listOfAWSEmailValue + : listOfAWSEmailValue.value, + awsJsonValue: + awsJsonValue == null ? this.awsJsonValue : awsJsonValue.value, + listOfAWSJsonValue: + listOfAWSJsonValue == null + ? this.listOfAWSJsonValue + : listOfAWSJsonValue.value, + awsPhoneValue: + awsPhoneValue == null ? this.awsPhoneValue : awsPhoneValue.value, + listOfAWSPhoneValue: + listOfAWSPhoneValue == null + ? this.listOfAWSPhoneValue + : listOfAWSPhoneValue.value, + awsURLValue: awsURLValue == null ? this.awsURLValue : awsURLValue.value, + listOfAWSURLValue: + listOfAWSURLValue == null + ? this.listOfAWSURLValue + : listOfAWSURLValue.value, + awsIPAddressValue: + awsIPAddressValue == null + ? this.awsIPAddressValue + : awsIPAddressValue.value, + listOfAWSIPAddressValue: + listOfAWSIPAddressValue == null + ? this.listOfAWSIPAddressValue + : listOfAWSIPAddressValue.value, + ); } ModelWithAppsyncScalarTypes.fromJson(Map json) - : id = json['id'], - _stringValue = json['stringValue'], - _altStringValue = json['altStringValue'], - _listOfStringValue = json['listOfStringValue']?.cast(), - _intValue = (json['intValue'] as num?)?.toInt(), - _altIntValue = (json['altIntValue'] as num?)?.toInt(), - _listOfIntValue = (json['listOfIntValue'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), - _floatValue = (json['floatValue'] as num?)?.toDouble(), - _listOfFloatValue = (json['listOfFloatValue'] as List?) - ?.map((e) => (e as num).toDouble()) - .toList(), - _booleanValue = json['booleanValue'], - _listOfBooleanValue = json['listOfBooleanValue']?.cast(), - _awsDateValue = json['awsDateValue'] != null - ? amplify_core.TemporalDate.fromString(json['awsDateValue']) - : null, - _listOfAWSDateValue = (json['listOfAWSDateValue'] as List?) - ?.map((e) => amplify_core.TemporalDate.fromString(e)) - .toList(), - _awsTimeValue = json['awsTimeValue'] != null - ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) - : null, - _listOfAWSTimeValue = (json['listOfAWSTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalTime.fromString(e)) - .toList(), - _awsDateTimeValue = json['awsDateTimeValue'] != null - ? amplify_core.TemporalDateTime.fromString(json['awsDateTimeValue']) - : null, - _listOfAWSDateTimeValue = (json['listOfAWSDateTimeValue'] as List?) - ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) - .toList(), - _awsTimestampValue = json['awsTimestampValue'] != null - ? amplify_core.TemporalTimestamp.fromSeconds( - json['awsTimestampValue']) - : null, - _listOfAWSTimestampValue = (json['listOfAWSTimestampValue'] as List?) - ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) - .toList(), - _awsEmailValue = json['awsEmailValue'], - _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), - _awsJsonValue = json['awsJsonValue'], - _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), - _awsPhoneValue = json['awsPhoneValue'], - _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), - _awsURLValue = json['awsURLValue'], - _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), - _awsIPAddressValue = json['awsIPAddressValue'], - _listOfAWSIPAddressValue = - json['listOfAWSIPAddressValue']?.cast(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _stringValue = json['stringValue'], + _altStringValue = json['altStringValue'], + _listOfStringValue = json['listOfStringValue']?.cast(), + _intValue = (json['intValue'] as num?)?.toInt(), + _altIntValue = (json['altIntValue'] as num?)?.toInt(), + _listOfIntValue = + (json['listOfIntValue'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), + _floatValue = (json['floatValue'] as num?)?.toDouble(), + _listOfFloatValue = + (json['listOfFloatValue'] as List?) + ?.map((e) => (e as num).toDouble()) + .toList(), + _booleanValue = json['booleanValue'], + _listOfBooleanValue = json['listOfBooleanValue']?.cast(), + _awsDateValue = + json['awsDateValue'] != null + ? amplify_core.TemporalDate.fromString(json['awsDateValue']) + : null, + _listOfAWSDateValue = + (json['listOfAWSDateValue'] as List?) + ?.map((e) => amplify_core.TemporalDate.fromString(e)) + .toList(), + _awsTimeValue = + json['awsTimeValue'] != null + ? amplify_core.TemporalTime.fromString(json['awsTimeValue']) + : null, + _listOfAWSTimeValue = + (json['listOfAWSTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalTime.fromString(e)) + .toList(), + _awsDateTimeValue = + json['awsDateTimeValue'] != null + ? amplify_core.TemporalDateTime.fromString( + json['awsDateTimeValue'], + ) + : null, + _listOfAWSDateTimeValue = + (json['listOfAWSDateTimeValue'] as List?) + ?.map((e) => amplify_core.TemporalDateTime.fromString(e)) + .toList(), + _awsTimestampValue = + json['awsTimestampValue'] != null + ? amplify_core.TemporalTimestamp.fromSeconds( + json['awsTimestampValue'], + ) + : null, + _listOfAWSTimestampValue = + (json['listOfAWSTimestampValue'] as List?) + ?.map((e) => amplify_core.TemporalTimestamp.fromSeconds(e)) + .toList(), + _awsEmailValue = json['awsEmailValue'], + _listOfAWSEmailValue = json['listOfAWSEmailValue']?.cast(), + _awsJsonValue = json['awsJsonValue'], + _listOfAWSJsonValue = json['listOfAWSJsonValue']?.cast(), + _awsPhoneValue = json['awsPhoneValue'], + _listOfAWSPhoneValue = json['listOfAWSPhoneValue']?.cast(), + _awsURLValue = json['awsURLValue'], + _listOfAWSURLValue = json['listOfAWSURLValue']?.cast(), + _awsIPAddressValue = json['awsIPAddressValue'], + _listOfAWSIPAddressValue = + json['listOfAWSIPAddressValue']?.cast(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'stringValue': _stringValue, - 'altStringValue': _altStringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'altIntValue': _altIntValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue?.format(), - 'listOfAWSDateValue': - _listOfAWSDateValue?.map((e) => e.format()).toList(), - 'awsTimeValue': _awsTimeValue?.format(), - 'listOfAWSTimeValue': - _listOfAWSTimeValue?.map((e) => e.format()).toList(), - 'awsDateTimeValue': _awsDateTimeValue?.format(), - 'listOfAWSDateTimeValue': - _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), - 'awsTimestampValue': _awsTimestampValue?.toSeconds(), - 'listOfAWSTimestampValue': - _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'stringValue': _stringValue, + 'altStringValue': _altStringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'altIntValue': _altIntValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue?.format(), + 'listOfAWSDateValue': _listOfAWSDateValue?.map((e) => e.format()).toList(), + 'awsTimeValue': _awsTimeValue?.format(), + 'listOfAWSTimeValue': _listOfAWSTimeValue?.map((e) => e.format()).toList(), + 'awsDateTimeValue': _awsDateTimeValue?.format(), + 'listOfAWSDateTimeValue': + _listOfAWSDateTimeValue?.map((e) => e.format()).toList(), + 'awsTimestampValue': _awsTimestampValue?.toSeconds(), + 'listOfAWSTimestampValue': + _listOfAWSTimestampValue?.map((e) => e.toSeconds()).toList(), + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'stringValue': _stringValue, - 'altStringValue': _altStringValue, - 'listOfStringValue': _listOfStringValue, - 'intValue': _intValue, - 'altIntValue': _altIntValue, - 'listOfIntValue': _listOfIntValue, - 'floatValue': _floatValue, - 'listOfFloatValue': _listOfFloatValue, - 'booleanValue': _booleanValue, - 'listOfBooleanValue': _listOfBooleanValue, - 'awsDateValue': _awsDateValue, - 'listOfAWSDateValue': _listOfAWSDateValue, - 'awsTimeValue': _awsTimeValue, - 'listOfAWSTimeValue': _listOfAWSTimeValue, - 'awsDateTimeValue': _awsDateTimeValue, - 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, - 'awsTimestampValue': _awsTimestampValue, - 'listOfAWSTimestampValue': _listOfAWSTimestampValue, - 'awsEmailValue': _awsEmailValue, - 'listOfAWSEmailValue': _listOfAWSEmailValue, - 'awsJsonValue': _awsJsonValue, - 'listOfAWSJsonValue': _listOfAWSJsonValue, - 'awsPhoneValue': _awsPhoneValue, - 'listOfAWSPhoneValue': _listOfAWSPhoneValue, - 'awsURLValue': _awsURLValue, - 'listOfAWSURLValue': _listOfAWSURLValue, - 'awsIPAddressValue': _awsIPAddressValue, - 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier< - ModelWithAppsyncScalarTypesModelIdentifier>(); + 'id': id, + 'stringValue': _stringValue, + 'altStringValue': _altStringValue, + 'listOfStringValue': _listOfStringValue, + 'intValue': _intValue, + 'altIntValue': _altIntValue, + 'listOfIntValue': _listOfIntValue, + 'floatValue': _floatValue, + 'listOfFloatValue': _listOfFloatValue, + 'booleanValue': _booleanValue, + 'listOfBooleanValue': _listOfBooleanValue, + 'awsDateValue': _awsDateValue, + 'listOfAWSDateValue': _listOfAWSDateValue, + 'awsTimeValue': _awsTimeValue, + 'listOfAWSTimeValue': _listOfAWSTimeValue, + 'awsDateTimeValue': _awsDateTimeValue, + 'listOfAWSDateTimeValue': _listOfAWSDateTimeValue, + 'awsTimestampValue': _awsTimestampValue, + 'listOfAWSTimestampValue': _listOfAWSTimestampValue, + 'awsEmailValue': _awsEmailValue, + 'listOfAWSEmailValue': _listOfAWSEmailValue, + 'awsJsonValue': _awsJsonValue, + 'listOfAWSJsonValue': _listOfAWSJsonValue, + 'awsPhoneValue': _awsPhoneValue, + 'listOfAWSPhoneValue': _listOfAWSPhoneValue, + 'awsURLValue': _awsURLValue, + 'listOfAWSURLValue': _listOfAWSURLValue, + 'awsIPAddressValue': _awsIPAddressValue, + 'listOfAWSIPAddressValue': _listOfAWSIPAddressValue, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + ModelWithAppsyncScalarTypesModelIdentifier + > + MODEL_IDENTIFIER = + amplify_core.QueryModelIdentifier< + ModelWithAppsyncScalarTypesModelIdentifier + >(); static final ID = amplify_core.QueryField(fieldName: "id"); static final STRINGVALUE = amplify_core.QueryField(fieldName: "stringValue"); - static final ALTSTRINGVALUE = - amplify_core.QueryField(fieldName: "altStringValue"); - static final LISTOFSTRINGVALUE = - amplify_core.QueryField(fieldName: "listOfStringValue"); + static final ALTSTRINGVALUE = amplify_core.QueryField( + fieldName: "altStringValue", + ); + static final LISTOFSTRINGVALUE = amplify_core.QueryField( + fieldName: "listOfStringValue", + ); static final INTVALUE = amplify_core.QueryField(fieldName: "intValue"); static final ALTINTVALUE = amplify_core.QueryField(fieldName: "altIntValue"); - static final LISTOFINTVALUE = - amplify_core.QueryField(fieldName: "listOfIntValue"); + static final LISTOFINTVALUE = amplify_core.QueryField( + fieldName: "listOfIntValue", + ); static final FLOATVALUE = amplify_core.QueryField(fieldName: "floatValue"); - static final LISTOFFLOATVALUE = - amplify_core.QueryField(fieldName: "listOfFloatValue"); - static final BOOLEANVALUE = - amplify_core.QueryField(fieldName: "booleanValue"); - static final LISTOFBOOLEANVALUE = - amplify_core.QueryField(fieldName: "listOfBooleanValue"); - static final AWSDATEVALUE = - amplify_core.QueryField(fieldName: "awsDateValue"); - static final LISTOFAWSDATEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSDateValue"); - static final AWSTIMEVALUE = - amplify_core.QueryField(fieldName: "awsTimeValue"); - static final LISTOFAWSTIMEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSTimeValue"); - static final AWSDATETIMEVALUE = - amplify_core.QueryField(fieldName: "awsDateTimeValue"); - static final LISTOFAWSDATETIMEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSDateTimeValue"); - static final AWSTIMESTAMPVALUE = - amplify_core.QueryField(fieldName: "awsTimestampValue"); - static final LISTOFAWSTIMESTAMPVALUE = - amplify_core.QueryField(fieldName: "listOfAWSTimestampValue"); - static final AWSEMAILVALUE = - amplify_core.QueryField(fieldName: "awsEmailValue"); - static final LISTOFAWSEMAILVALUE = - amplify_core.QueryField(fieldName: "listOfAWSEmailValue"); - static final AWSJSONVALUE = - amplify_core.QueryField(fieldName: "awsJsonValue"); - static final LISTOFAWSJSONVALUE = - amplify_core.QueryField(fieldName: "listOfAWSJsonValue"); - static final AWSPHONEVALUE = - amplify_core.QueryField(fieldName: "awsPhoneValue"); - static final LISTOFAWSPHONEVALUE = - amplify_core.QueryField(fieldName: "listOfAWSPhoneValue"); + static final LISTOFFLOATVALUE = amplify_core.QueryField( + fieldName: "listOfFloatValue", + ); + static final BOOLEANVALUE = amplify_core.QueryField( + fieldName: "booleanValue", + ); + static final LISTOFBOOLEANVALUE = amplify_core.QueryField( + fieldName: "listOfBooleanValue", + ); + static final AWSDATEVALUE = amplify_core.QueryField( + fieldName: "awsDateValue", + ); + static final LISTOFAWSDATEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSDateValue", + ); + static final AWSTIMEVALUE = amplify_core.QueryField( + fieldName: "awsTimeValue", + ); + static final LISTOFAWSTIMEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSTimeValue", + ); + static final AWSDATETIMEVALUE = amplify_core.QueryField( + fieldName: "awsDateTimeValue", + ); + static final LISTOFAWSDATETIMEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSDateTimeValue", + ); + static final AWSTIMESTAMPVALUE = amplify_core.QueryField( + fieldName: "awsTimestampValue", + ); + static final LISTOFAWSTIMESTAMPVALUE = amplify_core.QueryField( + fieldName: "listOfAWSTimestampValue", + ); + static final AWSEMAILVALUE = amplify_core.QueryField( + fieldName: "awsEmailValue", + ); + static final LISTOFAWSEMAILVALUE = amplify_core.QueryField( + fieldName: "listOfAWSEmailValue", + ); + static final AWSJSONVALUE = amplify_core.QueryField( + fieldName: "awsJsonValue", + ); + static final LISTOFAWSJSONVALUE = amplify_core.QueryField( + fieldName: "listOfAWSJsonValue", + ); + static final AWSPHONEVALUE = amplify_core.QueryField( + fieldName: "awsPhoneValue", + ); + static final LISTOFAWSPHONEVALUE = amplify_core.QueryField( + fieldName: "listOfAWSPhoneValue", + ); static final AWSURLVALUE = amplify_core.QueryField(fieldName: "awsURLValue"); - static final LISTOFAWSURLVALUE = - amplify_core.QueryField(fieldName: "listOfAWSURLValue"); - static final AWSIPADDRESSVALUE = - amplify_core.QueryField(fieldName: "awsIPAddressValue"); - static final LISTOFAWSIPADDRESSVALUE = - amplify_core.QueryField(fieldName: "listOfAWSIPAddressValue"); + static final LISTOFAWSURLVALUE = amplify_core.QueryField( + fieldName: "listOfAWSURLValue", + ); + static final AWSIPADDRESSVALUE = amplify_core.QueryField( + fieldName: "awsIPAddressValue", + ); + static final LISTOFAWSIPADDRESSVALUE = amplify_core.QueryField( + fieldName: "listOfAWSIPAddressValue", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "ModelWithAppsyncScalarTypes"; - modelSchemaDefinition.pluralName = "ModelWithAppsyncScalarTypes"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.STRINGVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.ALTSTRINGVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "ModelWithAppsyncScalarTypes"; + modelSchemaDefinition.pluralName = "ModelWithAppsyncScalarTypes"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.STRINGVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.ALTSTRINGVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFSTRINGVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.INTVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.ALTINTVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFINTVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.INTVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.ALTINTVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFINTVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.int.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.FLOATVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.double))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFFLOATVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.int.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.FLOATVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.double, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFFLOATVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.double.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.BOOLEANVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.bool))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFBOOLEANVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.double.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.BOOLEANVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.bool, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFBOOLEANVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.bool.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSDATEVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.date))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSDATEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.bool.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSDATEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.date, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSDATEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.date.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSTIMEVALUE, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.time))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.date.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSTIMEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.time, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.time.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSDATETIMEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.time.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSDATETIMEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSDATETIMEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.timestamp))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMESTAMPVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.dateTime.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSTIMESTAMPVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.timestamp, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSTIMESTAMPVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSEMAILVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSEMAILVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.timestamp.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSEMAILVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSEMAILVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSJSONVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSJSONVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSJSONVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSJSONVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSPHONEVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSPHONEVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSPHONEVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSPHONEVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSURLVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSURLVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSURLVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSURLVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.AWSIPADDRESSVALUE, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ModelWithAppsyncScalarTypes.LISTOFAWSIPADDRESSVALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.AWSIPADDRESSVALUE, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ModelWithAppsyncScalarTypes.LISTOFAWSIPADDRESSVALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ModelWithAppsyncScalarTypesModelType @@ -1103,10 +1373,10 @@ class ModelWithAppsyncScalarTypesModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/ModelWithCustomType.dart b/packages/api/amplify_api_dart/test/test_models/ModelWithCustomType.dart index 8387940e6d..dd1decf6a0 100644 --- a/packages/api/amplify_api_dart/test/test_models/ModelWithCustomType.dart +++ b/packages/api/amplify_api_dart/test/test_models/ModelWithCustomType.dart @@ -36,7 +36,8 @@ class ModelWithCustomType extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -60,28 +61,32 @@ class ModelWithCustomType extends amplify_core.Model { return _updatedAt; } - const ModelWithCustomType._internal( - {required this.id, - customTypeValue, - listOfCustomTypeValue, - createdAt, - updatedAt}) - : _customTypeValue = customTypeValue, - _listOfCustomTypeValue = listOfCustomTypeValue, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory ModelWithCustomType( - {String? id, - CustomTypeWithAppsyncScalarTypes? customTypeValue, - List? listOfCustomTypeValue}) { + const ModelWithCustomType._internal({ + required this.id, + customTypeValue, + listOfCustomTypeValue, + createdAt, + updatedAt, + }) : _customTypeValue = customTypeValue, + _listOfCustomTypeValue = listOfCustomTypeValue, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory ModelWithCustomType({ + String? id, + CustomTypeWithAppsyncScalarTypes? customTypeValue, + List? listOfCustomTypeValue, + }) { return ModelWithCustomType._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - customTypeValue: customTypeValue, - listOfCustomTypeValue: listOfCustomTypeValue != null - ? List.unmodifiable( - listOfCustomTypeValue) - : listOfCustomTypeValue); + id: id == null ? amplify_core.UUID.getUUID() : id, + customTypeValue: customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue != null + ? List.unmodifiable( + listOfCustomTypeValue, + ) + : listOfCustomTypeValue, + ); } bool equals(Object other) { @@ -94,8 +99,10 @@ class ModelWithCustomType extends amplify_core.Model { return other is ModelWithCustomType && id == other.id && _customTypeValue == other._customTypeValue && - DeepCollectionEquality() - .equals(_listOfCustomTypeValue, other._listOfCustomTypeValue); + DeepCollectionEquality().equals( + _listOfCustomTypeValue, + other._listOfCustomTypeValue, + ); } @override @@ -107,137 +114,179 @@ class ModelWithCustomType extends amplify_core.Model { buffer.write("ModelWithCustomType {"); buffer.write("id=" + "$id" + ", "); - buffer.write("customTypeValue=" + - (_customTypeValue != null ? _customTypeValue!.toString() : "null") + - ", "); - buffer.write("listOfCustomTypeValue=" + - (_listOfCustomTypeValue != null - ? _listOfCustomTypeValue!.toString() - : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "customTypeValue=" + + (_customTypeValue != null ? _customTypeValue!.toString() : "null") + + ", ", + ); + buffer.write( + "listOfCustomTypeValue=" + + (_listOfCustomTypeValue != null + ? _listOfCustomTypeValue!.toString() + : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - ModelWithCustomType copyWith( - {CustomTypeWithAppsyncScalarTypes? customTypeValue, - List? listOfCustomTypeValue}) { + ModelWithCustomType copyWith({ + CustomTypeWithAppsyncScalarTypes? customTypeValue, + List? listOfCustomTypeValue, + }) { return ModelWithCustomType._internal( - id: id, - customTypeValue: customTypeValue ?? this.customTypeValue, - listOfCustomTypeValue: - listOfCustomTypeValue ?? this.listOfCustomTypeValue); + id: id, + customTypeValue: customTypeValue ?? this.customTypeValue, + listOfCustomTypeValue: + listOfCustomTypeValue ?? this.listOfCustomTypeValue, + ); } - ModelWithCustomType copyWithModelFieldValues( - {ModelFieldValue? customTypeValue, - ModelFieldValue?>? - listOfCustomTypeValue}) { + ModelWithCustomType copyWithModelFieldValues({ + ModelFieldValue? customTypeValue, + ModelFieldValue?>? + listOfCustomTypeValue, + }) { return ModelWithCustomType._internal( - id: id, - customTypeValue: customTypeValue == null - ? this.customTypeValue - : customTypeValue.value, - listOfCustomTypeValue: listOfCustomTypeValue == null - ? this.listOfCustomTypeValue - : listOfCustomTypeValue.value); + id: id, + customTypeValue: + customTypeValue == null + ? this.customTypeValue + : customTypeValue.value, + listOfCustomTypeValue: + listOfCustomTypeValue == null + ? this.listOfCustomTypeValue + : listOfCustomTypeValue.value, + ); } ModelWithCustomType.fromJson(Map json) - : id = json['id'], - _customTypeValue = json['customTypeValue'] != null - ? json['customTypeValue']['serializedData'] != null - ? CustomTypeWithAppsyncScalarTypes.fromJson( + : id = json['id'], + _customTypeValue = + json['customTypeValue'] != null + ? json['customTypeValue']['serializedData'] != null + ? CustomTypeWithAppsyncScalarTypes.fromJson( new Map.from( - json['customTypeValue']['serializedData'])) - : CustomTypeWithAppsyncScalarTypes.fromJson( - new Map.from(json['customTypeValue'])) - : null, - _listOfCustomTypeValue = json['listOfCustomTypeValue'] is List - ? (json['listOfCustomTypeValue'] as List) - .where((e) => e != null) - .map((e) => CustomTypeWithAppsyncScalarTypes.fromJson( - new Map.from(e['serializedData'] ?? e))) - .toList() - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + json['customTypeValue']['serializedData'], + ), + ) + : CustomTypeWithAppsyncScalarTypes.fromJson( + new Map.from(json['customTypeValue']), + ) + : null, + _listOfCustomTypeValue = + json['listOfCustomTypeValue'] is List + ? (json['listOfCustomTypeValue'] as List) + .where((e) => e != null) + .map( + (e) => CustomTypeWithAppsyncScalarTypes.fromJson( + new Map.from(e['serializedData'] ?? e), + ), + ) + .toList() + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'customTypeValue': _customTypeValue?.toJson(), - 'listOfCustomTypeValue': _listOfCustomTypeValue + 'id': id, + 'customTypeValue': _customTypeValue?.toJson(), + 'listOfCustomTypeValue': + _listOfCustomTypeValue ?.map((CustomTypeWithAppsyncScalarTypes? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'customTypeValue': _customTypeValue, - 'listOfCustomTypeValue': _listOfCustomTypeValue, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'customTypeValue': _customTypeValue, + 'listOfCustomTypeValue': _listOfCustomTypeValue, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + ModelWithCustomTypeModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); - static final CUSTOMTYPEVALUE = - amplify_core.QueryField(fieldName: "customTypeValue"); - static final LISTOFCUSTOMTYPEVALUE = - amplify_core.QueryField(fieldName: "listOfCustomTypeValue"); + static final CUSTOMTYPEVALUE = amplify_core.QueryField( + fieldName: "customTypeValue", + ); + static final LISTOFCUSTOMTYPEVALUE = amplify_core.QueryField( + fieldName: "listOfCustomTypeValue", + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "ModelWithCustomType"; - modelSchemaDefinition.pluralName = "ModelWithCustomTypes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "ModelWithCustomType"; + modelSchemaDefinition.pluralName = "ModelWithCustomTypes"; - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'customTypeValue', - isRequired: false, - ofType: amplify_core.ModelFieldType( + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'customTypeValue', + isRequired: false, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'listOfCustomTypeValue', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'listOfCustomTypeValue', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes'))); + ofCustomTypeName: 'CustomTypeWithAppsyncScalarTypes', + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ModelWithCustomTypeModelType @@ -270,10 +319,10 @@ class ModelWithCustomTypeModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/Post.dart b/packages/api/amplify_api_dart/test/test_models/Post.dart index 3818f96f41..6759ad35e5 100644 --- a/packages/api/amplify_api_dart/test/test_models/Post.dart +++ b/packages/api/amplify_api_dart/test/test_models/Post.dart @@ -40,7 +40,8 @@ class Post extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -53,11 +54,15 @@ class Post extends amplify_core.Model { return _title!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -66,11 +71,15 @@ class Post extends amplify_core.Model { return _rating!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -98,42 +107,44 @@ class Post extends amplify_core.Model { return _updatedAt; } - const Post._internal( - {required this.id, - required title, - required rating, - created, - blog, - comments, - tags, - createdAt, - updatedAt}) - : _title = title, - _rating = rating, - _created = created, - _blog = blog, - _comments = comments, - _tags = tags, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Post( - {String? id, - required String title, - required int rating, - amplify_core.TemporalDateTime? created, - Blog? blog, - List? comments, - List? tags}) { + const Post._internal({ + required this.id, + required title, + required rating, + created, + blog, + comments, + tags, + createdAt, + updatedAt, + }) : _title = title, + _rating = rating, + _created = created, + _blog = blog, + _comments = comments, + _tags = tags, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Post({ + String? id, + required String title, + required int rating, + amplify_core.TemporalDateTime? created, + Blog? blog, + List? comments, + List? tags, + }) { return Post._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - title: title, - rating: rating, - created: created, - blog: blog, - comments: - comments != null ? List.unmodifiable(comments) : comments, - tags: tags != null ? List.unmodifiable(tags) : tags); + id: id == null ? amplify_core.UUID.getUUID() : id, + title: title, + rating: rating, + created: created, + blog: blog, + comments: + comments != null ? List.unmodifiable(comments) : comments, + tags: tags != null ? List.unmodifiable(tags) : tags, + ); } bool equals(Object other) { @@ -164,213 +175,274 @@ class Post extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("title=" + "$_title" + ", "); buffer.write( - "rating=" + (_rating != null ? _rating!.toString() : "null") + ", "); + "rating=" + (_rating != null ? _rating!.toString() : "null") + ", ", + ); buffer.write( - "created=" + (_created != null ? _created!.format() : "null") + ", "); + "created=" + (_created != null ? _created!.format() : "null") + ", ", + ); buffer.write("blog=" + (_blog != null ? _blog!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Post copyWith( - {String? title, - int? rating, - amplify_core.TemporalDateTime? created, - Blog? blog, - List? comments, - List? tags}) { + Post copyWith({ + String? title, + int? rating, + amplify_core.TemporalDateTime? created, + Blog? blog, + List? comments, + List? tags, + }) { return Post._internal( - id: id, - title: title ?? this.title, - rating: rating ?? this.rating, - created: created ?? this.created, - blog: blog ?? this.blog, - comments: comments ?? this.comments, - tags: tags ?? this.tags); + id: id, + title: title ?? this.title, + rating: rating ?? this.rating, + created: created ?? this.created, + blog: blog ?? this.blog, + comments: comments ?? this.comments, + tags: tags ?? this.tags, + ); } - Post copyWithModelFieldValues( - {ModelFieldValue? title, - ModelFieldValue? rating, - ModelFieldValue? created, - ModelFieldValue? blog, - ModelFieldValue?>? comments, - ModelFieldValue?>? tags}) { + Post copyWithModelFieldValues({ + ModelFieldValue? title, + ModelFieldValue? rating, + ModelFieldValue? created, + ModelFieldValue? blog, + ModelFieldValue?>? comments, + ModelFieldValue?>? tags, + }) { return Post._internal( - id: id, - title: title == null ? this.title : title.value, - rating: rating == null ? this.rating : rating.value, - created: created == null ? this.created : created.value, - blog: blog == null ? this.blog : blog.value, - comments: comments == null ? this.comments : comments.value, - tags: tags == null ? this.tags : tags.value); + id: id, + title: title == null ? this.title : title.value, + rating: rating == null ? this.rating : rating.value, + created: created == null ? this.created : created.value, + blog: blog == null ? this.blog : blog.value, + comments: comments == null ? this.comments : comments.value, + tags: tags == null ? this.tags : tags.value, + ); } Post.fromJson(Map json) - : id = json['id'], - _title = json['title'], - _rating = (json['rating'] as num?)?.toInt(), - _created = json['created'] != null - ? amplify_core.TemporalDateTime.fromString(json['created']) - : null, - _blog = json['blog'] != null - ? json['blog']['serializedData'] != null - ? Blog.fromJson(new Map.from( - json['blog']['serializedData'])) - : Blog.fromJson(new Map.from(json['blog'])) - : null, - _comments = json['comments'] is Map - ? (json['comments']['items'] is List - ? (json['comments']['items'] as List) - .where((e) => e != null) - .map((e) => - Comment.fromJson(new Map.from(e))) - .toList() - : null) - : (json['comments'] is List - ? (json['comments'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Comment.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _tags = json['tags'] is Map - ? (json['tags']['items'] is List - ? (json['tags']['items'] as List) - .where((e) => e != null) - .map((e) => - PostTags.fromJson(new Map.from(e))) - .toList() - : null) - : (json['tags'] is List - ? (json['tags'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => PostTags.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _title = json['title'], + _rating = (json['rating'] as num?)?.toInt(), + _created = + json['created'] != null + ? amplify_core.TemporalDateTime.fromString(json['created']) + : null, + _blog = + json['blog'] != null + ? json['blog']['serializedData'] != null + ? Blog.fromJson( + new Map.from( + json['blog']['serializedData'], + ), + ) + : Blog.fromJson(new Map.from(json['blog'])) + : null, + _comments = + json['comments'] is Map + ? (json['comments']['items'] is List + ? (json['comments']['items'] as List) + .where((e) => e != null) + .map( + (e) => + Comment.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['comments'] is List + ? (json['comments'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Comment.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _tags = + json['tags'] is Map + ? (json['tags']['items'] is List + ? (json['tags']['items'] as List) + .where((e) => e != null) + .map( + (e) => + PostTags.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['tags'] is List + ? (json['tags'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => PostTags.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'created': _created?.format(), - 'blog': _blog?.toJson(), - 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), - 'tags': _tags?.map((PostTags? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'created': _created?.format(), + 'blog': _blog?.toJson(), + 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), + 'tags': _tags?.map((PostTags? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'created': _created, - 'blog': _blog, - 'comments': _comments, - 'tags': _tags, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'created': _created, + 'blog': _blog, + 'comments': _comments, + 'tags': _tags, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final TITLE = amplify_core.QueryField(fieldName: "title"); static final RATING = amplify_core.QueryField(fieldName: "rating"); static final CREATED = amplify_core.QueryField(fieldName: "created"); static final BLOG = amplify_core.QueryField( - fieldName: "blog", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Blog')); + fieldName: "blog", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Blog', + ), + ); static final COMMENTS = amplify_core.QueryField( - fieldName: "comments", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Comment')); + fieldName: "comments", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Comment', + ), + ); static final TAGS = amplify_core.QueryField( - fieldName: "tags", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'PostTags')); + fieldName: "tags", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'PostTags', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Post"; - modelSchemaDefinition.pluralName = "Posts"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["blogID"], name: "byBlog") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.TITLE, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.RATING, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.CREATED, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Post.BLOG, - isRequired: false, - targetNames: ['blogID'], - ofModelName: 'Blog')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Post.COMMENTS, - isRequired: false, - ofModelName: 'Comment', - associatedKey: Comment.POST)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Post.TAGS, - isRequired: false, - ofModelName: 'PostTags', - associatedKey: PostTags.POST)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Post"; + modelSchemaDefinition.pluralName = "Posts"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["blogID"], name: "byBlog"), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.TITLE, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.RATING, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.CREATED, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Post.BLOG, + isRequired: false, + targetNames: ['blogID'], + ofModelName: 'Blog', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Post.COMMENTS, + isRequired: false, + ofModelName: 'Comment', + associatedKey: Comment.POST, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Post.TAGS, + isRequired: false, + ofModelName: 'PostTags', + associatedKey: PostTags.POST, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PostModelType extends amplify_core.ModelType { @@ -401,10 +473,10 @@ class PostModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/PostTags.dart b/packages/api/amplify_api_dart/test/test_models/PostTags.dart index 9bb0ca1689..c8f57dbe7e 100644 --- a/packages/api/amplify_api_dart/test/test_models/PostTags.dart +++ b/packages/api/amplify_api_dart/test/test_models/PostTags.dart @@ -35,7 +35,8 @@ class PostTags extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -48,11 +49,15 @@ class PostTags extends amplify_core.Model { return _post!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,11 +66,15 @@ class PostTags extends amplify_core.Model { return _tag!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -77,18 +86,23 @@ class PostTags extends amplify_core.Model { return _updatedAt; } - const PostTags._internal( - {required this.id, required post, required tag, createdAt, updatedAt}) - : _post = post, - _tag = tag, - _createdAt = createdAt, - _updatedAt = updatedAt; + const PostTags._internal({ + required this.id, + required post, + required tag, + createdAt, + updatedAt, + }) : _post = post, + _tag = tag, + _createdAt = createdAt, + _updatedAt = updatedAt; factory PostTags({String? id, required Post post, required Tag tag}) { return PostTags._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - post: post, - tag: tag); + id: id == null ? amplify_core.UUID.getUUID() : id, + post: post, + tag: tag, + ); } bool equals(Object other) { @@ -115,11 +129,14 @@ class PostTags extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("post=" + (_post != null ? _post!.toString() : "null") + ", "); buffer.write("tag=" + (_tag != null ? _tag!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -127,108 +144,141 @@ class PostTags extends amplify_core.Model { PostTags copyWith({Post? post, Tag? tag}) { return PostTags._internal( - id: id, post: post ?? this.post, tag: tag ?? this.tag); + id: id, + post: post ?? this.post, + tag: tag ?? this.tag, + ); } - PostTags copyWithModelFieldValues( - {ModelFieldValue? post, ModelFieldValue? tag}) { + PostTags copyWithModelFieldValues({ + ModelFieldValue? post, + ModelFieldValue? tag, + }) { return PostTags._internal( - id: id, - post: post == null ? this.post : post.value, - tag: tag == null ? this.tag : tag.value); + id: id, + post: post == null ? this.post : post.value, + tag: tag == null ? this.tag : tag.value, + ); } PostTags.fromJson(Map json) - : id = json['id'], - _post = json['post'] != null - ? json['post']['serializedData'] != null - ? Post.fromJson(new Map.from( - json['post']['serializedData'])) - : Post.fromJson(new Map.from(json['post'])) - : null, - _tag = json['tag'] != null - ? json['tag']['serializedData'] != null - ? Tag.fromJson(new Map.from( - json['tag']['serializedData'])) - : Tag.fromJson(new Map.from(json['tag'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _post = + json['post'] != null + ? json['post']['serializedData'] != null + ? Post.fromJson( + new Map.from( + json['post']['serializedData'], + ), + ) + : Post.fromJson(new Map.from(json['post'])) + : null, + _tag = + json['tag'] != null + ? json['tag']['serializedData'] != null + ? Tag.fromJson( + new Map.from( + json['tag']['serializedData'], + ), + ) + : Tag.fromJson(new Map.from(json['tag'])) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'post': _post?.toJson(), - 'tag': _tag?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'post': _post?.toJson(), + 'tag': _tag?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'post': _post, - 'tag': _tag, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'post': _post, + 'tag': _tag, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final POST = amplify_core.QueryField( - fieldName: "post", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "post", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static final TAG = amplify_core.QueryField( - fieldName: "tag", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Tag')); + fieldName: "tag", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Tag', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "PostTags"; - modelSchemaDefinition.pluralName = "PostTags"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["postId"], name: "byPost"), - amplify_core.ModelIndex(fields: const ["tagId"], name: "byTag") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: PostTags.POST, - isRequired: true, - targetNames: ['postId'], - ofModelName: 'Post')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: PostTags.TAG, - isRequired: true, - targetNames: ['tagId'], - ofModelName: 'Tag')); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "PostTags"; + modelSchemaDefinition.pluralName = "PostTags"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["postId"], name: "byPost"), + amplify_core.ModelIndex(fields: const ["tagId"], name: "byTag"), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: PostTags.POST, + isRequired: true, + targetNames: ['postId'], + ofModelName: 'Post', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: PostTags.TAG, + isRequired: true, + targetNames: ['tagId'], + ofModelName: 'Tag', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PostTagsModelType extends amplify_core.ModelType { @@ -260,10 +310,10 @@ class PostTagsModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/SimpleCustomType.dart b/packages/api/amplify_api_dart/test/test_models/SimpleCustomType.dart index eaaace2b8e..6235bd8bca 100644 --- a/packages/api/amplify_api_dart/test/test_models/SimpleCustomType.dart +++ b/packages/api/amplify_api_dart/test/test_models/SimpleCustomType.dart @@ -31,11 +31,15 @@ class SimpleCustomType { return _foo!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,15 +88,19 @@ class SimpleCustomType { Map toMap() => {'foo': _foo}; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "SimpleCustomType"; - modelSchemaDefinition.pluralName = "SimpleCustomTypes"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "SimpleCustomType"; + modelSchemaDefinition.pluralName = "SimpleCustomTypes"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'foo', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'foo', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } diff --git a/packages/api/amplify_api_dart/test/test_models/Tag.dart b/packages/api/amplify_api_dart/test/test_models/Tag.dart index 00dc33f017..aaaeb6826d 100644 --- a/packages/api/amplify_api_dart/test/test_models/Tag.dart +++ b/packages/api/amplify_api_dart/test/test_models/Tag.dart @@ -36,7 +36,8 @@ class Tag extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -49,11 +50,15 @@ class Tag extends amplify_core.Model { return _label!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -69,18 +74,23 @@ class Tag extends amplify_core.Model { return _updatedAt; } - const Tag._internal( - {required this.id, required label, posts, createdAt, updatedAt}) - : _label = label, - _posts = posts, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Tag._internal({ + required this.id, + required label, + posts, + createdAt, + updatedAt, + }) : _label = label, + _posts = posts, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Tag({String? id, required String label, List? posts}) { return Tag._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - label: label, - posts: posts != null ? List.unmodifiable(posts) : posts); + id: id == null ? amplify_core.UUID.getUUID() : id, + label: label, + posts: posts != null ? List.unmodifiable(posts) : posts, + ); } bool equals(Object other) { @@ -106,11 +116,14 @@ class Tag extends amplify_core.Model { buffer.write("Tag {"); buffer.write("id=" + "$id" + ", "); buffer.write("label=" + "$_label" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,104 +131,132 @@ class Tag extends amplify_core.Model { Tag copyWith({String? label, List? posts}) { return Tag._internal( - id: id, label: label ?? this.label, posts: posts ?? this.posts); + id: id, + label: label ?? this.label, + posts: posts ?? this.posts, + ); } - Tag copyWithModelFieldValues( - {ModelFieldValue? label, - ModelFieldValue?>? posts}) { + Tag copyWithModelFieldValues({ + ModelFieldValue? label, + ModelFieldValue?>? posts, + }) { return Tag._internal( - id: id, - label: label == null ? this.label : label.value, - posts: posts == null ? this.posts : posts.value); + id: id, + label: label == null ? this.label : label.value, + posts: posts == null ? this.posts : posts.value, + ); } Tag.fromJson(Map json) - : id = json['id'], - _label = json['label'], - _posts = json['posts'] is Map - ? (json['posts']['items'] is List - ? (json['posts']['items'] as List) - .where((e) => e != null) - .map((e) => - PostTags.fromJson(new Map.from(e))) - .toList() - : null) - : (json['posts'] is List - ? (json['posts'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => PostTags.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _label = json['label'], + _posts = + json['posts'] is Map + ? (json['posts']['items'] is List + ? (json['posts']['items'] as List) + .where((e) => e != null) + .map( + (e) => + PostTags.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['posts'] is List + ? (json['posts'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => PostTags.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'label': _label, - 'posts': _posts?.map((PostTags? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'label': _label, + 'posts': _posts?.map((PostTags? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'label': _label, - 'posts': _posts, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'label': _label, + 'posts': _posts, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final LABEL = amplify_core.QueryField(fieldName: "label"); static final POSTS = amplify_core.QueryField( - fieldName: "posts", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'PostTags')); + fieldName: "posts", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'PostTags', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Tag"; - modelSchemaDefinition.pluralName = "Tags"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Tag.LABEL, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Tag.POSTS, - isRequired: false, - ofModelName: 'PostTags', - associatedKey: PostTags.TAG)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Tag"; + modelSchemaDefinition.pluralName = "Tags"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Tag.LABEL, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Tag.POSTS, + isRequired: false, + ofModelName: 'PostTags', + associatedKey: PostTags.TAG, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _TagModelType extends amplify_core.ModelType { @@ -246,10 +287,10 @@ class TagModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/many_to_many/FirstMtmRelation.dart b/packages/api/amplify_api_dart/test/test_models/many_to_many/FirstMtmRelation.dart index 46f3596926..80997c65a6 100644 --- a/packages/api/amplify_api_dart/test/test_models/many_to_many/FirstMtmRelation.dart +++ b/packages/api/amplify_api_dart/test/test_models/many_to_many/FirstMtmRelation.dart @@ -35,7 +35,8 @@ class FirstMtmRelation extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -48,11 +49,15 @@ class FirstMtmRelation extends amplify_core.Model { return _manyToManyPrimary!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,11 +66,15 @@ class FirstMtmRelation extends amplify_core.Model { return _manyToManySecondary!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -77,25 +86,27 @@ class FirstMtmRelation extends amplify_core.Model { return _updatedAt; } - const FirstMtmRelation._internal( - {required this.id, - required manyToManyPrimary, - required manyToManySecondary, - createdAt, - updatedAt}) - : _manyToManyPrimary = manyToManyPrimary, - _manyToManySecondary = manyToManySecondary, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory FirstMtmRelation( - {String? id, - required ManyToManyPrimary manyToManyPrimary, - required ManyToManySecondary manyToManySecondary}) { + const FirstMtmRelation._internal({ + required this.id, + required manyToManyPrimary, + required manyToManySecondary, + createdAt, + updatedAt, + }) : _manyToManyPrimary = manyToManyPrimary, + _manyToManySecondary = manyToManySecondary, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory FirstMtmRelation({ + String? id, + required ManyToManyPrimary manyToManyPrimary, + required ManyToManySecondary manyToManySecondary, + }) { return FirstMtmRelation._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - manyToManyPrimary: manyToManyPrimary, - manyToManySecondary: manyToManySecondary); + id: id == null ? amplify_core.UUID.getUUID() : id, + manyToManyPrimary: manyToManyPrimary, + manyToManySecondary: manyToManySecondary, + ); } bool equals(Object other) { @@ -120,142 +131,191 @@ class FirstMtmRelation extends amplify_core.Model { buffer.write("FirstMtmRelation {"); buffer.write("id=" + "$id" + ", "); - buffer.write("manyToManyPrimary=" + - (_manyToManyPrimary != null ? _manyToManyPrimary!.toString() : "null") + - ", "); - buffer.write("manyToManySecondary=" + - (_manyToManySecondary != null - ? _manyToManySecondary!.toString() - : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "manyToManyPrimary=" + + (_manyToManyPrimary != null + ? _manyToManyPrimary!.toString() + : "null") + + ", ", + ); + buffer.write( + "manyToManySecondary=" + + (_manyToManySecondary != null + ? _manyToManySecondary!.toString() + : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - FirstMtmRelation copyWith( - {ManyToManyPrimary? manyToManyPrimary, - ManyToManySecondary? manyToManySecondary}) { + FirstMtmRelation copyWith({ + ManyToManyPrimary? manyToManyPrimary, + ManyToManySecondary? manyToManySecondary, + }) { return FirstMtmRelation._internal( - id: id, - manyToManyPrimary: manyToManyPrimary ?? this.manyToManyPrimary, - manyToManySecondary: manyToManySecondary ?? this.manyToManySecondary); + id: id, + manyToManyPrimary: manyToManyPrimary ?? this.manyToManyPrimary, + manyToManySecondary: manyToManySecondary ?? this.manyToManySecondary, + ); } - FirstMtmRelation copyWithModelFieldValues( - {ModelFieldValue? manyToManyPrimary, - ModelFieldValue? manyToManySecondary}) { + FirstMtmRelation copyWithModelFieldValues({ + ModelFieldValue? manyToManyPrimary, + ModelFieldValue? manyToManySecondary, + }) { return FirstMtmRelation._internal( - id: id, - manyToManyPrimary: manyToManyPrimary == null - ? this.manyToManyPrimary - : manyToManyPrimary.value, - manyToManySecondary: manyToManySecondary == null - ? this.manyToManySecondary - : manyToManySecondary.value); + id: id, + manyToManyPrimary: + manyToManyPrimary == null + ? this.manyToManyPrimary + : manyToManyPrimary.value, + manyToManySecondary: + manyToManySecondary == null + ? this.manyToManySecondary + : manyToManySecondary.value, + ); } FirstMtmRelation.fromJson(Map json) - : id = json['id'], - _manyToManyPrimary = json['manyToManyPrimary'] != null - ? json['manyToManyPrimary']['serializedData'] != null - ? ManyToManyPrimary.fromJson(new Map.from( - json['manyToManyPrimary']['serializedData'])) - : ManyToManyPrimary.fromJson( - new Map.from(json['manyToManyPrimary'])) - : null, - _manyToManySecondary = json['manyToManySecondary'] != null - ? json['manyToManySecondary']['serializedData'] != null - ? ManyToManySecondary.fromJson(new Map.from( - json['manyToManySecondary']['serializedData'])) - : ManyToManySecondary.fromJson( - new Map.from(json['manyToManySecondary'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _manyToManyPrimary = + json['manyToManyPrimary'] != null + ? json['manyToManyPrimary']['serializedData'] != null + ? ManyToManyPrimary.fromJson( + new Map.from( + json['manyToManyPrimary']['serializedData'], + ), + ) + : ManyToManyPrimary.fromJson( + new Map.from(json['manyToManyPrimary']), + ) + : null, + _manyToManySecondary = + json['manyToManySecondary'] != null + ? json['manyToManySecondary']['serializedData'] != null + ? ManyToManySecondary.fromJson( + new Map.from( + json['manyToManySecondary']['serializedData'], + ), + ) + : ManyToManySecondary.fromJson( + new Map.from(json['manyToManySecondary']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'manyToManyPrimary': _manyToManyPrimary?.toJson(), - 'manyToManySecondary': _manyToManySecondary?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'manyToManyPrimary': _manyToManyPrimary?.toJson(), + 'manyToManySecondary': _manyToManySecondary?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'manyToManyPrimary': _manyToManyPrimary, - 'manyToManySecondary': _manyToManySecondary, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'id': id, + 'manyToManyPrimary': _manyToManyPrimary, + 'manyToManySecondary': _manyToManySecondary, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + FirstMtmRelationModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final MANYTOMANYPRIMARY = amplify_core.QueryField( - fieldName: "manyToManyPrimary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'ManyToManyPrimary')); + fieldName: "manyToManyPrimary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'ManyToManyPrimary', + ), + ); static final MANYTOMANYSECONDARY = amplify_core.QueryField( - fieldName: "manyToManySecondary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'ManyToManySecondary')); + fieldName: "manyToManySecondary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'ManyToManySecondary', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "FirstMtmRelation"; - modelSchemaDefinition.pluralName = "FirstMtmRelations"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["manyToManyPrimaryId"], name: "byManyToManyPrimary"), - amplify_core.ModelIndex( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "FirstMtmRelation"; + modelSchemaDefinition.pluralName = "FirstMtmRelations"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["manyToManyPrimaryId"], + name: "byManyToManyPrimary", + ), + amplify_core.ModelIndex( fields: const ["manyToManySecondaryId"], - name: "byManyToManySecondary") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: FirstMtmRelation.MANYTOMANYPRIMARY, - isRequired: true, - targetNames: ['manyToManyPrimaryId'], - ofModelName: 'ManyToManyPrimary')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: FirstMtmRelation.MANYTOMANYSECONDARY, - isRequired: true, - targetNames: ['manyToManySecondaryId'], - ofModelName: 'ManyToManySecondary')); - - modelSchemaDefinition.addField( + name: "byManyToManySecondary", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: FirstMtmRelation.MANYTOMANYPRIMARY, + isRequired: true, + targetNames: ['manyToManyPrimaryId'], + ofModelName: 'ManyToManyPrimary', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: FirstMtmRelation.MANYTOMANYSECONDARY, + isRequired: true, + targetNames: ['manyToManySecondaryId'], + ofModelName: 'ManyToManySecondary', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _FirstMtmRelationModelType @@ -288,10 +348,10 @@ class FirstMtmRelationModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManyPrimary.dart b/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManyPrimary.dart index 27e98693f0..9036e87360 100644 --- a/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManyPrimary.dart +++ b/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManyPrimary.dart @@ -37,7 +37,8 @@ class ManyToManyPrimary extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -50,11 +51,15 @@ class ManyToManyPrimary extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -74,33 +79,37 @@ class ManyToManyPrimary extends amplify_core.Model { return _updatedAt; } - const ManyToManyPrimary._internal( - {required this.id, - required name, - firstMtmToSecondary, - secondMtmToSecondary, - createdAt, - updatedAt}) - : _name = name, - _firstMtmToSecondary = firstMtmToSecondary, - _secondMtmToSecondary = secondMtmToSecondary, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory ManyToManyPrimary( - {String? id, - required String name, - List? firstMtmToSecondary, - List? secondMtmToSecondary}) { + const ManyToManyPrimary._internal({ + required this.id, + required name, + firstMtmToSecondary, + secondMtmToSecondary, + createdAt, + updatedAt, + }) : _name = name, + _firstMtmToSecondary = firstMtmToSecondary, + _secondMtmToSecondary = secondMtmToSecondary, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory ManyToManyPrimary({ + String? id, + required String name, + List? firstMtmToSecondary, + List? secondMtmToSecondary, + }) { return ManyToManyPrimary._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - firstMtmToSecondary: firstMtmToSecondary != null - ? List.unmodifiable(firstMtmToSecondary) - : firstMtmToSecondary, - secondMtmToSecondary: secondMtmToSecondary != null - ? List.unmodifiable(secondMtmToSecondary) - : secondMtmToSecondary); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + firstMtmToSecondary: + firstMtmToSecondary != null + ? List.unmodifiable(firstMtmToSecondary) + : firstMtmToSecondary, + secondMtmToSecondary: + secondMtmToSecondary != null + ? List.unmodifiable(secondMtmToSecondary) + : secondMtmToSecondary, + ); } bool equals(Object other) { @@ -113,10 +122,14 @@ class ManyToManyPrimary extends amplify_core.Model { return other is ManyToManyPrimary && id == other.id && _name == other._name && - DeepCollectionEquality() - .equals(_firstMtmToSecondary, other._firstMtmToSecondary) && - DeepCollectionEquality() - .equals(_secondMtmToSecondary, other._secondMtmToSecondary); + DeepCollectionEquality().equals( + _firstMtmToSecondary, + other._firstMtmToSecondary, + ) && + DeepCollectionEquality().equals( + _secondMtmToSecondary, + other._secondMtmToSecondary, + ); } @override @@ -129,161 +142,210 @@ class ManyToManyPrimary extends amplify_core.Model { buffer.write("ManyToManyPrimary {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - ManyToManyPrimary copyWith( - {String? name, - List? firstMtmToSecondary, - List? secondMtmToSecondary}) { + ManyToManyPrimary copyWith({ + String? name, + List? firstMtmToSecondary, + List? secondMtmToSecondary, + }) { return ManyToManyPrimary._internal( - id: id, - name: name ?? this.name, - firstMtmToSecondary: firstMtmToSecondary ?? this.firstMtmToSecondary, - secondMtmToSecondary: - secondMtmToSecondary ?? this.secondMtmToSecondary); + id: id, + name: name ?? this.name, + firstMtmToSecondary: firstMtmToSecondary ?? this.firstMtmToSecondary, + secondMtmToSecondary: secondMtmToSecondary ?? this.secondMtmToSecondary, + ); } - ManyToManyPrimary copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue?>? firstMtmToSecondary, - ModelFieldValue?>? secondMtmToSecondary}) { + ManyToManyPrimary copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? firstMtmToSecondary, + ModelFieldValue?>? secondMtmToSecondary, + }) { return ManyToManyPrimary._internal( - id: id, - name: name == null ? this.name : name.value, - firstMtmToSecondary: firstMtmToSecondary == null - ? this.firstMtmToSecondary - : firstMtmToSecondary.value, - secondMtmToSecondary: secondMtmToSecondary == null - ? this.secondMtmToSecondary - : secondMtmToSecondary.value); + id: id, + name: name == null ? this.name : name.value, + firstMtmToSecondary: + firstMtmToSecondary == null + ? this.firstMtmToSecondary + : firstMtmToSecondary.value, + secondMtmToSecondary: + secondMtmToSecondary == null + ? this.secondMtmToSecondary + : secondMtmToSecondary.value, + ); } ManyToManyPrimary.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _firstMtmToSecondary = json['firstMtmToSecondary'] is Map - ? (json['firstMtmToSecondary']['items'] is List - ? (json['firstMtmToSecondary']['items'] as List) - .where((e) => e != null) - .map((e) => FirstMtmRelation.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['firstMtmToSecondary'] is List - ? (json['firstMtmToSecondary'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => FirstMtmRelation.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _secondMtmToSecondary = json['secondMtmToSecondary'] is Map - ? (json['secondMtmToSecondary']['items'] is List - ? (json['secondMtmToSecondary']['items'] as List) - .where((e) => e != null) - .map((e) => SecondMtmRelation.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['secondMtmToSecondary'] is List - ? (json['secondMtmToSecondary'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => SecondMtmRelation.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _firstMtmToSecondary = + json['firstMtmToSecondary'] is Map + ? (json['firstMtmToSecondary']['items'] is List + ? (json['firstMtmToSecondary']['items'] as List) + .where((e) => e != null) + .map( + (e) => FirstMtmRelation.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['firstMtmToSecondary'] is List + ? (json['firstMtmToSecondary'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => FirstMtmRelation.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _secondMtmToSecondary = + json['secondMtmToSecondary'] is Map + ? (json['secondMtmToSecondary']['items'] is List + ? (json['secondMtmToSecondary']['items'] as List) + .where((e) => e != null) + .map( + (e) => SecondMtmRelation.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['secondMtmToSecondary'] is List + ? (json['secondMtmToSecondary'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => SecondMtmRelation.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'firstMtmToSecondary': _firstMtmToSecondary + 'id': id, + 'name': _name, + 'firstMtmToSecondary': + _firstMtmToSecondary ?.map((FirstMtmRelation? e) => e?.toJson()) .toList(), - 'secondMtmToSecondary': _secondMtmToSecondary + 'secondMtmToSecondary': + _secondMtmToSecondary ?.map((SecondMtmRelation? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'firstMtmToSecondary': _firstMtmToSecondary, - 'secondMtmToSecondary': _secondMtmToSecondary, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'id': id, + 'name': _name, + 'firstMtmToSecondary': _firstMtmToSecondary, + 'secondMtmToSecondary': _secondMtmToSecondary, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + ManyToManyPrimaryModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final FIRSTMTMTOSECONDARY = amplify_core.QueryField( - fieldName: "firstMtmToSecondary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'FirstMtmRelation')); + fieldName: "firstMtmToSecondary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'FirstMtmRelation', + ), + ); static final SECONDMTMTOSECONDARY = amplify_core.QueryField( - fieldName: "secondMtmToSecondary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'SecondMtmRelation')); + fieldName: "secondMtmToSecondary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'SecondMtmRelation', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "ManyToManyPrimary"; - modelSchemaDefinition.pluralName = "ManyToManyPrimaries"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ManyToManyPrimary.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: ManyToManyPrimary.FIRSTMTMTOSECONDARY, - isRequired: false, - ofModelName: 'FirstMtmRelation', - associatedKey: FirstMtmRelation.MANYTOMANYPRIMARY)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: ManyToManyPrimary.SECONDMTMTOSECONDARY, - isRequired: false, - ofModelName: 'SecondMtmRelation', - associatedKey: SecondMtmRelation.MANYTOMANYPRIMARY)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "ManyToManyPrimary"; + modelSchemaDefinition.pluralName = "ManyToManyPrimaries"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ManyToManyPrimary.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: ManyToManyPrimary.FIRSTMTMTOSECONDARY, + isRequired: false, + ofModelName: 'FirstMtmRelation', + associatedKey: FirstMtmRelation.MANYTOMANYPRIMARY, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: ManyToManyPrimary.SECONDMTMTOSECONDARY, + isRequired: false, + ofModelName: 'SecondMtmRelation', + associatedKey: SecondMtmRelation.MANYTOMANYPRIMARY, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ManyToManyPrimaryModelType @@ -316,10 +378,10 @@ class ManyToManyPrimaryModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManySecondary.dart b/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManySecondary.dart index 080eed5ba6..1a5dea4d02 100644 --- a/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManySecondary.dart +++ b/packages/api/amplify_api_dart/test/test_models/many_to_many/ManyToManySecondary.dart @@ -37,7 +37,8 @@ class ManyToManySecondary extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -50,11 +51,15 @@ class ManyToManySecondary extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -74,33 +79,37 @@ class ManyToManySecondary extends amplify_core.Model { return _updatedAt; } - const ManyToManySecondary._internal( - {required this.id, - required name, - firstMtmToPrimary, - secondMtmToPrimary, - createdAt, - updatedAt}) - : _name = name, - _firstMtmToPrimary = firstMtmToPrimary, - _secondMtmToPrimary = secondMtmToPrimary, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory ManyToManySecondary( - {String? id, - required String name, - List? firstMtmToPrimary, - List? secondMtmToPrimary}) { + const ManyToManySecondary._internal({ + required this.id, + required name, + firstMtmToPrimary, + secondMtmToPrimary, + createdAt, + updatedAt, + }) : _name = name, + _firstMtmToPrimary = firstMtmToPrimary, + _secondMtmToPrimary = secondMtmToPrimary, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory ManyToManySecondary({ + String? id, + required String name, + List? firstMtmToPrimary, + List? secondMtmToPrimary, + }) { return ManyToManySecondary._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - firstMtmToPrimary: firstMtmToPrimary != null - ? List.unmodifiable(firstMtmToPrimary) - : firstMtmToPrimary, - secondMtmToPrimary: secondMtmToPrimary != null - ? List.unmodifiable(secondMtmToPrimary) - : secondMtmToPrimary); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + firstMtmToPrimary: + firstMtmToPrimary != null + ? List.unmodifiable(firstMtmToPrimary) + : firstMtmToPrimary, + secondMtmToPrimary: + secondMtmToPrimary != null + ? List.unmodifiable(secondMtmToPrimary) + : secondMtmToPrimary, + ); } bool equals(Object other) { @@ -113,10 +122,14 @@ class ManyToManySecondary extends amplify_core.Model { return other is ManyToManySecondary && id == other.id && _name == other._name && - DeepCollectionEquality() - .equals(_firstMtmToPrimary, other._firstMtmToPrimary) && - DeepCollectionEquality() - .equals(_secondMtmToPrimary, other._secondMtmToPrimary); + DeepCollectionEquality().equals( + _firstMtmToPrimary, + other._firstMtmToPrimary, + ) && + DeepCollectionEquality().equals( + _secondMtmToPrimary, + other._secondMtmToPrimary, + ); } @override @@ -129,161 +142,208 @@ class ManyToManySecondary extends amplify_core.Model { buffer.write("ManyToManySecondary {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - ManyToManySecondary copyWith( - {String? name, - List? firstMtmToPrimary, - List? secondMtmToPrimary}) { + ManyToManySecondary copyWith({ + String? name, + List? firstMtmToPrimary, + List? secondMtmToPrimary, + }) { return ManyToManySecondary._internal( - id: id, - name: name ?? this.name, - firstMtmToPrimary: firstMtmToPrimary ?? this.firstMtmToPrimary, - secondMtmToPrimary: secondMtmToPrimary ?? this.secondMtmToPrimary); + id: id, + name: name ?? this.name, + firstMtmToPrimary: firstMtmToPrimary ?? this.firstMtmToPrimary, + secondMtmToPrimary: secondMtmToPrimary ?? this.secondMtmToPrimary, + ); } - ManyToManySecondary copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue?>? firstMtmToPrimary, - ModelFieldValue?>? secondMtmToPrimary}) { + ManyToManySecondary copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? firstMtmToPrimary, + ModelFieldValue?>? secondMtmToPrimary, + }) { return ManyToManySecondary._internal( - id: id, - name: name == null ? this.name : name.value, - firstMtmToPrimary: firstMtmToPrimary == null - ? this.firstMtmToPrimary - : firstMtmToPrimary.value, - secondMtmToPrimary: secondMtmToPrimary == null - ? this.secondMtmToPrimary - : secondMtmToPrimary.value); + id: id, + name: name == null ? this.name : name.value, + firstMtmToPrimary: + firstMtmToPrimary == null + ? this.firstMtmToPrimary + : firstMtmToPrimary.value, + secondMtmToPrimary: + secondMtmToPrimary == null + ? this.secondMtmToPrimary + : secondMtmToPrimary.value, + ); } ManyToManySecondary.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _firstMtmToPrimary = json['firstMtmToPrimary'] is Map - ? (json['firstMtmToPrimary']['items'] is List - ? (json['firstMtmToPrimary']['items'] as List) - .where((e) => e != null) - .map((e) => FirstMtmRelation.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['firstMtmToPrimary'] is List - ? (json['firstMtmToPrimary'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => FirstMtmRelation.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _secondMtmToPrimary = json['secondMtmToPrimary'] is Map - ? (json['secondMtmToPrimary']['items'] is List - ? (json['secondMtmToPrimary']['items'] as List) - .where((e) => e != null) - .map((e) => SecondMtmRelation.fromJson( - new Map.from(e))) - .toList() - : null) - : (json['secondMtmToPrimary'] is List - ? (json['secondMtmToPrimary'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => SecondMtmRelation.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _firstMtmToPrimary = + json['firstMtmToPrimary'] is Map + ? (json['firstMtmToPrimary']['items'] is List + ? (json['firstMtmToPrimary']['items'] as List) + .where((e) => e != null) + .map( + (e) => FirstMtmRelation.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['firstMtmToPrimary'] is List + ? (json['firstMtmToPrimary'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => FirstMtmRelation.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _secondMtmToPrimary = + json['secondMtmToPrimary'] is Map + ? (json['secondMtmToPrimary']['items'] is List + ? (json['secondMtmToPrimary']['items'] as List) + .where((e) => e != null) + .map( + (e) => SecondMtmRelation.fromJson( + new Map.from(e), + ), + ) + .toList() + : null) + : (json['secondMtmToPrimary'] is List + ? (json['secondMtmToPrimary'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => SecondMtmRelation.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'firstMtmToPrimary': _firstMtmToPrimary - ?.map((FirstMtmRelation? e) => e?.toJson()) - .toList(), - 'secondMtmToPrimary': _secondMtmToPrimary + 'id': id, + 'name': _name, + 'firstMtmToPrimary': + _firstMtmToPrimary?.map((FirstMtmRelation? e) => e?.toJson()).toList(), + 'secondMtmToPrimary': + _secondMtmToPrimary ?.map((SecondMtmRelation? e) => e?.toJson()) .toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'firstMtmToPrimary': _firstMtmToPrimary, - 'secondMtmToPrimary': _secondMtmToPrimary, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'name': _name, + 'firstMtmToPrimary': _firstMtmToPrimary, + 'secondMtmToPrimary': _secondMtmToPrimary, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + ManyToManySecondaryModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final FIRSTMTMTOPRIMARY = amplify_core.QueryField( - fieldName: "firstMtmToPrimary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'FirstMtmRelation')); + fieldName: "firstMtmToPrimary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'FirstMtmRelation', + ), + ); static final SECONDMTMTOPRIMARY = amplify_core.QueryField( - fieldName: "secondMtmToPrimary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'SecondMtmRelation')); + fieldName: "secondMtmToPrimary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'SecondMtmRelation', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "ManyToManySecondary"; - modelSchemaDefinition.pluralName = "ManyToManySecondaries"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: ManyToManySecondary.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: ManyToManySecondary.FIRSTMTMTOPRIMARY, - isRequired: false, - ofModelName: 'FirstMtmRelation', - associatedKey: FirstMtmRelation.MANYTOMANYSECONDARY)); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: ManyToManySecondary.SECONDMTMTOPRIMARY, - isRequired: false, - ofModelName: 'SecondMtmRelation', - associatedKey: SecondMtmRelation.MANYTOMANYSECONDARY)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "ManyToManySecondary"; + modelSchemaDefinition.pluralName = "ManyToManySecondaries"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: ManyToManySecondary.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: ManyToManySecondary.FIRSTMTMTOPRIMARY, + isRequired: false, + ofModelName: 'FirstMtmRelation', + associatedKey: FirstMtmRelation.MANYTOMANYSECONDARY, + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: ManyToManySecondary.SECONDMTMTOPRIMARY, + isRequired: false, + ofModelName: 'SecondMtmRelation', + associatedKey: SecondMtmRelation.MANYTOMANYSECONDARY, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ManyToManySecondaryModelType @@ -316,10 +376,10 @@ class ManyToManySecondaryModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/test_models/many_to_many/MtmModelProvider.dart b/packages/api/amplify_api_dart/test/test_models/many_to_many/MtmModelProvider.dart index 05c2895359..af42510517 100644 --- a/packages/api/amplify_api_dart/test/test_models/many_to_many/MtmModelProvider.dart +++ b/packages/api/amplify_api_dart/test/test_models/many_to_many/MtmModelProvider.dart @@ -38,7 +38,7 @@ class MtmModelProvider implements amplify_core.ModelProviderInterface { FirstMtmRelation.schema, ManyToManyPrimary.schema, ManyToManySecondary.schema, - SecondMtmRelation.schema + SecondMtmRelation.schema, ]; @override List customTypeSchemas = []; @@ -58,8 +58,8 @@ class MtmModelProvider implements amplify_core.ModelProviderInterface { return SecondMtmRelation.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/api/amplify_api_dart/test/test_models/many_to_many/SecondMtmRelation.dart b/packages/api/amplify_api_dart/test/test_models/many_to_many/SecondMtmRelation.dart index 7d5a848c64..09bec5b99f 100644 --- a/packages/api/amplify_api_dart/test/test_models/many_to_many/SecondMtmRelation.dart +++ b/packages/api/amplify_api_dart/test/test_models/many_to_many/SecondMtmRelation.dart @@ -35,7 +35,8 @@ class SecondMtmRelation extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -48,11 +49,15 @@ class SecondMtmRelation extends amplify_core.Model { return _manyToManyPrimary!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -61,11 +66,15 @@ class SecondMtmRelation extends amplify_core.Model { return _manyToManySecondary!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -77,25 +86,27 @@ class SecondMtmRelation extends amplify_core.Model { return _updatedAt; } - const SecondMtmRelation._internal( - {required this.id, - required manyToManyPrimary, - required manyToManySecondary, - createdAt, - updatedAt}) - : _manyToManyPrimary = manyToManyPrimary, - _manyToManySecondary = manyToManySecondary, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory SecondMtmRelation( - {String? id, - required ManyToManyPrimary manyToManyPrimary, - required ManyToManySecondary manyToManySecondary}) { + const SecondMtmRelation._internal({ + required this.id, + required manyToManyPrimary, + required manyToManySecondary, + createdAt, + updatedAt, + }) : _manyToManyPrimary = manyToManyPrimary, + _manyToManySecondary = manyToManySecondary, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory SecondMtmRelation({ + String? id, + required ManyToManyPrimary manyToManyPrimary, + required ManyToManySecondary manyToManySecondary, + }) { return SecondMtmRelation._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - manyToManyPrimary: manyToManyPrimary, - manyToManySecondary: manyToManySecondary); + id: id == null ? amplify_core.UUID.getUUID() : id, + manyToManyPrimary: manyToManyPrimary, + manyToManySecondary: manyToManySecondary, + ); } bool equals(Object other) { @@ -120,142 +131,191 @@ class SecondMtmRelation extends amplify_core.Model { buffer.write("SecondMtmRelation {"); buffer.write("id=" + "$id" + ", "); - buffer.write("manyToManyPrimary=" + - (_manyToManyPrimary != null ? _manyToManyPrimary!.toString() : "null") + - ", "); - buffer.write("manyToManySecondary=" + - (_manyToManySecondary != null - ? _manyToManySecondary!.toString() - : "null") + - ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "manyToManyPrimary=" + + (_manyToManyPrimary != null + ? _manyToManyPrimary!.toString() + : "null") + + ", ", + ); + buffer.write( + "manyToManySecondary=" + + (_manyToManySecondary != null + ? _manyToManySecondary!.toString() + : "null") + + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - SecondMtmRelation copyWith( - {ManyToManyPrimary? manyToManyPrimary, - ManyToManySecondary? manyToManySecondary}) { + SecondMtmRelation copyWith({ + ManyToManyPrimary? manyToManyPrimary, + ManyToManySecondary? manyToManySecondary, + }) { return SecondMtmRelation._internal( - id: id, - manyToManyPrimary: manyToManyPrimary ?? this.manyToManyPrimary, - manyToManySecondary: manyToManySecondary ?? this.manyToManySecondary); + id: id, + manyToManyPrimary: manyToManyPrimary ?? this.manyToManyPrimary, + manyToManySecondary: manyToManySecondary ?? this.manyToManySecondary, + ); } - SecondMtmRelation copyWithModelFieldValues( - {ModelFieldValue? manyToManyPrimary, - ModelFieldValue? manyToManySecondary}) { + SecondMtmRelation copyWithModelFieldValues({ + ModelFieldValue? manyToManyPrimary, + ModelFieldValue? manyToManySecondary, + }) { return SecondMtmRelation._internal( - id: id, - manyToManyPrimary: manyToManyPrimary == null - ? this.manyToManyPrimary - : manyToManyPrimary.value, - manyToManySecondary: manyToManySecondary == null - ? this.manyToManySecondary - : manyToManySecondary.value); + id: id, + manyToManyPrimary: + manyToManyPrimary == null + ? this.manyToManyPrimary + : manyToManyPrimary.value, + manyToManySecondary: + manyToManySecondary == null + ? this.manyToManySecondary + : manyToManySecondary.value, + ); } SecondMtmRelation.fromJson(Map json) - : id = json['id'], - _manyToManyPrimary = json['manyToManyPrimary'] != null - ? json['manyToManyPrimary']['serializedData'] != null - ? ManyToManyPrimary.fromJson(new Map.from( - json['manyToManyPrimary']['serializedData'])) - : ManyToManyPrimary.fromJson( - new Map.from(json['manyToManyPrimary'])) - : null, - _manyToManySecondary = json['manyToManySecondary'] != null - ? json['manyToManySecondary']['serializedData'] != null - ? ManyToManySecondary.fromJson(new Map.from( - json['manyToManySecondary']['serializedData'])) - : ManyToManySecondary.fromJson( - new Map.from(json['manyToManySecondary'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _manyToManyPrimary = + json['manyToManyPrimary'] != null + ? json['manyToManyPrimary']['serializedData'] != null + ? ManyToManyPrimary.fromJson( + new Map.from( + json['manyToManyPrimary']['serializedData'], + ), + ) + : ManyToManyPrimary.fromJson( + new Map.from(json['manyToManyPrimary']), + ) + : null, + _manyToManySecondary = + json['manyToManySecondary'] != null + ? json['manyToManySecondary']['serializedData'] != null + ? ManyToManySecondary.fromJson( + new Map.from( + json['manyToManySecondary']['serializedData'], + ), + ) + : ManyToManySecondary.fromJson( + new Map.from(json['manyToManySecondary']), + ) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'manyToManyPrimary': _manyToManyPrimary?.toJson(), - 'manyToManySecondary': _manyToManySecondary?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'manyToManyPrimary': _manyToManyPrimary?.toJson(), + 'manyToManySecondary': _manyToManySecondary?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'manyToManyPrimary': _manyToManyPrimary, - 'manyToManySecondary': _manyToManySecondary, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'id': id, + 'manyToManyPrimary': _manyToManyPrimary, + 'manyToManySecondary': _manyToManySecondary, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + SecondMtmRelationModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final MANYTOMANYPRIMARY = amplify_core.QueryField( - fieldName: "manyToManyPrimary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'ManyToManyPrimary')); + fieldName: "manyToManyPrimary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'ManyToManyPrimary', + ), + ); static final MANYTOMANYSECONDARY = amplify_core.QueryField( - fieldName: "manyToManySecondary", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'ManyToManySecondary')); + fieldName: "manyToManySecondary", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'ManyToManySecondary', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "SecondMtmRelation"; - modelSchemaDefinition.pluralName = "SecondMtmRelations"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["manyToManyPrimaryId"], name: "byManyToManyPrimary"), - amplify_core.ModelIndex( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "SecondMtmRelation"; + modelSchemaDefinition.pluralName = "SecondMtmRelations"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["manyToManyPrimaryId"], + name: "byManyToManyPrimary", + ), + amplify_core.ModelIndex( fields: const ["manyToManySecondaryId"], - name: "byManyToManySecondary") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: SecondMtmRelation.MANYTOMANYPRIMARY, - isRequired: true, - targetNames: ['manyToManyPrimaryId'], - ofModelName: 'ManyToManyPrimary')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: SecondMtmRelation.MANYTOMANYSECONDARY, - isRequired: true, - targetNames: ['manyToManySecondaryId'], - ofModelName: 'ManyToManySecondary')); - - modelSchemaDefinition.addField( + name: "byManyToManySecondary", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: SecondMtmRelation.MANYTOMANYPRIMARY, + isRequired: true, + targetNames: ['manyToManyPrimaryId'], + ofModelName: 'ManyToManyPrimary', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: SecondMtmRelation.MANYTOMANYSECONDARY, + isRequired: true, + targetNames: ['manyToManySecondaryId'], + ofModelName: 'ManyToManySecondary', + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _SecondMtmRelationModelType @@ -288,10 +348,10 @@ class SecondMtmRelationModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/api/amplify_api_dart/test/util.dart b/packages/api/amplify_api_dart/test/util.dart index 0d65f7ee93..083cc433bb 100644 --- a/packages/api/amplify_api_dart/test/util.dart +++ b/packages/api/amplify_api_dart/test/util.dart @@ -64,10 +64,7 @@ class TestTokenAuthProvider extends TokenAmplifyAuthProvider { } void validateSignedRequest(AWSBaseHttpRequest request) { - expect( - request.headers[AWSHeaders.platformUserAgent], - contains('aws-sigv4'), - ); + expect(request.headers[AWSHeaders.platformUserAgent], contains('aws-sigv4')); } const testApiKeyConfig = DataOutputs( @@ -75,18 +72,14 @@ const testApiKeyConfig = DataOutputs( awsRegion: 'us-east-1', defaultAuthorizationType: APIAuthorizationType.apiKey, apiKey: 'abc-123', - authorizationTypes: [ - APIAuthorizationType.apiKey, - ], + authorizationTypes: [APIAuthorizationType.apiKey], ); const testApiKeyConfigCustomDomain = DataOutputs( url: 'https://foo.bar.aws.dev/graphql ', awsRegion: 'us-east-1', defaultAuthorizationType: APIAuthorizationType.apiKey, apiKey: 'abc-123', - authorizationTypes: [ - APIAuthorizationType.apiKey, - ], + authorizationTypes: [APIAuthorizationType.apiKey], ); const expectedApiKeyWebSocketConnectionUrl = @@ -95,11 +88,11 @@ const expectedApiKeyWebSocketConnectionUrlCustomDomain = 'wss://foo.bar.aws.dev/graphql/realtime?payload=e30%3D'; AmplifyAuthProviderRepository getTestAuthProviderRepo() { - final testAuthProviderRepo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.apiKey.authProviderToken, - AppSyncApiKeyAuthProvider(), - ); + final testAuthProviderRepo = + AmplifyAuthProviderRepository()..registerAuthProvider( + APIAuthorizationType.apiKey.authProviderToken, + AppSyncApiKeyAuthProvider(), + ); return testAuthProviderRepo; } @@ -170,15 +163,10 @@ WebSocketChannel getMockWebSocketChannel(Uri uri) { return MockWebSocketChannel(); } -WebSocketMessage startAck(String subscriptionID) => WebSocketMessage( - messageType: MessageType.startAck, - id: subscriptionID, - ); +WebSocketMessage startAck(String subscriptionID) => + WebSocketMessage(messageType: MessageType.startAck, id: subscriptionID); -void sendMockConnectionAck( - WebSocketBloc bloc, - MockWebSocketService service, -) { +void sendMockConnectionAck(WebSocketBloc bloc, MockWebSocketService service) { bloc.stream.listen((event) { final state = event; if (state is ConnectingState && @@ -223,8 +211,10 @@ class MockWebSocketChannel extends WebSocketChannel { // ignore: close_sinks final controller = StreamController.broadcast(); - static StreamChannel> streamChannel = - StreamChannel(const Stream.empty(), NullStreamSink()); + static StreamChannel> streamChannel = StreamChannel( + const Stream.empty(), + NullStreamSink(), + ); @override Stream get stream => controller.stream; @@ -275,13 +265,13 @@ class MockWebSocketService extends AmplifyWebSocketService { } @override - Future unsubscribe( - String subscriptionId, - ) async { + Future unsubscribe(String subscriptionId) async { await super.unsubscribe(subscriptionId); - final completeMessage = - jsonEncode({'id': subscriptionId, 'type': 'complete'}); + final completeMessage = jsonEncode({ + 'id': subscriptionId, + 'type': 'complete', + }); channel.sink.add(completeMessage); } } @@ -302,20 +292,14 @@ class MockPollClient { return MockAWSHttpClient((request, _) async { if (sendUnhealthyResponse) { - return AWSHttpResponse( - statusCode: 400, - body: utf8.encode('unhealthy'), - ); + return AWSHttpResponse(statusCode: 400, body: utf8.encode('unhealthy')); } if (induceTimeout && mockPollFailCount++ <= maxFailAttempts) { await Future.delayed(const Duration(seconds: 10)); } - return AWSHttpResponse( - statusCode: 200, - body: utf8.encode('healthy'), - ); + return AWSHttpResponse(statusCode: 200, body: utf8.encode('healthy')); }); } } @@ -359,11 +343,9 @@ final deepEquals = const DeepCollectionEquality().equals; APIAuthorizationType type, [ String? apiKey, ]) { - final repo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - type.authProviderToken, - authProvider, - ); + final repo = + AmplifyAuthProviderRepository() + ..registerAuthProvider(type.authProviderToken, authProvider); final outputs = DataOutputs( awsRegion: 'us-east-1', url: 'https://example.com/', diff --git a/packages/api/amplify_api_dart/test/web_socket/web_socket_auth_utils_test.dart b/packages/api/amplify_api_dart/test/web_socket/web_socket_auth_utils_test.dart index c32396435e..f700c472b0 100644 --- a/packages/api/amplify_api_dart/test/web_socket/web_socket_auth_utils_test.dart +++ b/packages/api/amplify_api_dart/test/web_socket/web_socket_auth_utils_test.dart @@ -10,15 +10,16 @@ import 'package:test/test.dart'; import '../util.dart'; void main() { - final authProviderRepo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.apiKey.authProviderToken, - AppSyncApiKeyAuthProvider(), - ) - ..registerAuthProvider( - APIAuthorizationType.userPools.authProviderToken, - TestTokenAuthProvider(), - ); + final authProviderRepo = + AmplifyAuthProviderRepository() + ..registerAuthProvider( + APIAuthorizationType.apiKey.authProviderToken, + AppSyncApiKeyAuthProvider(), + ) + ..registerAuthProvider( + APIAuthorizationType.userPools.authProviderToken, + TestTokenAuthProvider(), + ); const graphQLDocument = '''subscription MySubscription { onCreateBlog { @@ -78,38 +79,34 @@ void main() { authorizedMessage.payload as SubscriptionRegistrationPayload; assertBasicSubscriptionPayloadHeaders(payload); - expect( - payload.authorizationHeaders[xApiKey], - testApiKeyConfig.apiKey, - ); + expect(payload.authorizationHeaders[xApiKey], testApiKeyConfig.apiKey); }); - test('should generate an authorized message with custom authorizationMode', - () async { - final subscriptionRequestUserPools = GraphQLRequest( - document: graphQLDocument, - authorizationMode: APIAuthorizationType.userPools, - ); - - final authorizedMessage = await generateSubscriptionRegistrationMessage( - testApiKeyConfig, - id: 'abc123', - authRepo: authProviderRepo, - request: subscriptionRequestUserPools, - ); - final payload = - authorizedMessage.payload as SubscriptionRegistrationPayload; - - assertBasicSubscriptionPayloadHeaders(payload); - expect( - payload.authorizationHeaders[xApiKey], - isNull, - ); - expect( - payload.authorizationHeaders[AWSHeaders.authorization], - testAccessToken, - ); - }); + test( + 'should generate an authorized message with custom authorizationMode', + () async { + final subscriptionRequestUserPools = GraphQLRequest( + document: graphQLDocument, + authorizationMode: APIAuthorizationType.userPools, + ); + + final authorizedMessage = await generateSubscriptionRegistrationMessage( + testApiKeyConfig, + id: 'abc123', + authRepo: authProviderRepo, + request: subscriptionRequestUserPools, + ); + final payload = + authorizedMessage.payload as SubscriptionRegistrationPayload; + + assertBasicSubscriptionPayloadHeaders(payload); + expect(payload.authorizationHeaders[xApiKey], isNull); + expect( + payload.authorizationHeaders[AWSHeaders.authorization], + testAccessToken, + ); + }, + ); test('should generate an authorized message with custom headers', () async { const testCustomToken = 'xyz567'; @@ -128,10 +125,7 @@ void main() { authorizedMessage.payload as SubscriptionRegistrationPayload; assertBasicSubscriptionPayloadHeaders(payload); - expect( - payload.authorizationHeaders[xApiKey], - isNull, - ); + expect(payload.authorizationHeaders[xApiKey], isNull); expect( payload.authorizationHeaders[AWSHeaders.authorization], testCustomToken, diff --git a/packages/api/amplify_api_dart/test/web_socket/web_socket_bloc_test.dart b/packages/api/amplify_api_dart/test/web_socket/web_socket_bloc_test.dart index 297970268f..3d951bd33b 100644 --- a/packages/api/amplify_api_dart/test/web_socket/web_socket_bloc_test.dart +++ b/packages/api/amplify_api_dart/test/web_socket/web_socket_bloc_test.dart @@ -14,8 +14,9 @@ import 'package:test/test.dart'; import '../util.dart'; -const mockConnectionAck = - ConnectionAckMessageEvent(ConnectionAckMessagePayload(300000)); +const mockConnectionAck = ConnectionAckMessageEvent( + ConnectionAckMessagePayload(300000), +); void main() { late WebSocketBloc? bloc; @@ -43,13 +44,12 @@ void main() { final mockDataString = jsonEncode({ 'id': subscriptionRequest.id, 'type': 'data', - 'payload': { - 'data': mockSubscriptionData, - }, + 'payload': {'data': mockSubscriptionData}, }); - const subscriptionOptions = - GraphQLSubscriptionOptions(pollInterval: Duration(seconds: 1)); + const subscriptionOptions = GraphQLSubscriptionOptions( + pollInterval: Duration(seconds: 1), + ); WebSocketBloc getWebSocketBloc({bool noConnectivity = false}) { if (!noConnectivity) { @@ -65,9 +65,10 @@ void main() { wsService: service!, subscriptionOptions: subscriptionOptions, pollClientOverride: mockPollClient.client, - connectivity: noConnectivity - ? const ConnectivityPlatform() - : const MockConnectivity(), + connectivity: + noConnectivity + ? const ConnectivityPlatform() + : const MockConnectivity(), processLifeCycle: const MockProcessLifeCycle(), ); @@ -90,97 +91,82 @@ void main() { }); test('should init a connection & call onEstablishCallback', () async { - final subscribeEvent = - SubscribeEvent(subscriptionRequest, expectAsync0(() {})); - - getWebSocketBloc().subscribe( - subscribeEvent, + final subscribeEvent = SubscribeEvent( + subscriptionRequest, + expectAsync0(() {}), ); + + getWebSocketBloc().subscribe(subscribeEvent); }); test('subscribe() should return a subscription stream', () async { final dataCompleter = Completer(); - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { - service!.channel.sink.add(mockDataString); - }, - ); + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { + service!.channel.sink.add(mockDataString); + }); final bloc = getWebSocketBloc(); bloc - .subscribe( - subscribeEvent, - ) + .subscribe(subscribeEvent) .listen( - expectAsync1((event) { - expect(event.data, json.encode(mockSubscriptionData)); - dataCompleter.complete(event.data); - }), - ); + expectAsync1((event) { + expect(event.data, json.encode(mockSubscriptionData)); + dataCompleter.complete(event.data); + }), + ); await dataCompleter.future; }); test( - 'should return a subscription stream with default connectivity (empty stream)', - () async { - final dataCompleter = Completer(); - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { + 'should return a subscription stream with default connectivity (empty stream)', + () async { + final dataCompleter = Completer(); + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { service!.channel.sink.add(mockDataString); - }, - ); - - final bloc = getWebSocketBloc(noConnectivity: true); - bloc - .subscribe( - subscribeEvent, - ) - .listen( - expectAsync1((event) { - expect(event.data, json.encode(mockSubscriptionData)); - dataCompleter.complete(event.data); - }), - ); - await dataCompleter.future; - }); + }); + + final bloc = getWebSocketBloc(noConnectivity: true); + bloc + .subscribe(subscribeEvent) + .listen( + expectAsync1((event) { + expect(event.data, json.encode(mockSubscriptionData)); + dataCompleter.complete(event.data); + }), + ); + await dataCompleter.future; + }, + ); }); test('should reconnect when data turns on/off', () async { var dataCompleter = Completer(); - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { - service!.channel.sink.add(mockDataString); - }, - ); + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { + service!.channel.sink.add(mockDataString); + }); final bloc = getWebSocketBloc(); expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), ); - bloc.subscribe(subscribeEvent).listen( - expectAsync1( - (event) { - expect(event.data, json.encode(mockSubscriptionData)); - dataCompleter.complete(event.data); - }, - count: 2, - ), + bloc + .subscribe(subscribeEvent) + .listen( + expectAsync1((event) { + expect(event.data, json.encode(mockSubscriptionData)); + dataCompleter.complete(event.data); + }, count: 2), ); await dataCompleter.future; @@ -207,23 +193,19 @@ void main() { expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), reason: 'Bloc should debounce multiple reconnection triggers while reconnecting.', ); - bloc.subscribe( - subscribeEvent, - ); + bloc.subscribe(subscribeEvent); await blocReady.future; @@ -247,10 +229,7 @@ void main() { blocReady.complete, ); - final bloc = getWebSocketBloc() - ..subscribe( - subscribeEvent, - ); + final bloc = getWebSocketBloc()..subscribe(subscribeEvent); await blocReady.future; @@ -280,27 +259,22 @@ void main() { }); test('should reconnect after 13 seconds during retry/back off', () async { - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { - service!.channel.sink.add(mockDataString); - }, - ); + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { + service!.channel.sink.add(mockDataString); + }); final bloc = getWebSocketBloc()..subscribe(subscribeEvent); expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), ); mockPollClient.induceTimeout = true; @@ -312,37 +286,31 @@ void main() { test('should reconnect when process resumes', () async { var dataCompleter = Completer(); - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { - service!.channel.sink.add(mockDataString); - }, - ); + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { + service!.channel.sink.add(mockDataString); + }); final bloc = getWebSocketBloc(); expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), ); - bloc.subscribe(subscribeEvent).listen( - expectAsync1( - (event) { - expect(event.data, json.encode(mockSubscriptionData)); - dataCompleter.complete(event.data); - }, - count: 2, - ), + bloc + .subscribe(subscribeEvent) + .listen( + expectAsync1((event) { + expect(event.data, json.encode(mockSubscriptionData)); + dataCompleter.complete(event.data); + }, count: 2), ); await dataCompleter.future; @@ -369,23 +337,19 @@ void main() { expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), reason: 'Bloc should debounce multiple reconnection triggers while resuming.', ); - bloc.subscribe( - subscribeEvent, - ); + bloc.subscribe(subscribeEvent); await blocReady.future; @@ -409,10 +373,7 @@ void main() { blocReady.complete, ); - final bloc = getWebSocketBloc() - ..subscribe( - subscribeEvent, - ); + final bloc = getWebSocketBloc()..subscribe(subscribeEvent); await blocReady.future; @@ -454,108 +415,84 @@ void main() { }); test( - 'subscribe() ignores a WebSocket message that comes while the bloc is disconnected', - () async { - final establishCompleter = Completer(); - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - establishCompleter.complete, - ); + 'subscribe() ignores a WebSocket message that comes while the bloc is disconnected', + () async { + final establishCompleter = Completer(); + final subscribeEvent = SubscribeEvent( + subscriptionRequest, + establishCompleter.complete, + ); - final bloc = getWebSocketBloc(); - bloc - .subscribe( - subscribeEvent, - ) - .listen(null); - await establishCompleter.future; + final bloc = getWebSocketBloc(); + bloc.subscribe(subscribeEvent).listen(null); + await establishCompleter.future; - bloc.add(const ShutdownEvent()); - await bloc.done.future; + bloc.add(const ShutdownEvent()); + await bloc.done.future; - service!.channel.sink.add(mockDataString); - await expectLater(service!.channel.sink.done, completes); - }); + service!.channel.sink.add(mockDataString); + await expectLater(service!.channel.sink.done, completes); + }, + ); group('should close when', () { tearDown(() async { bloc = null; service = null; // service gets closed in bloc }); - test( - 'triggering FailureState on Exception during init', - () async { - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { - service!.channel.sink.add(mockDataString); - }, - ); - - final badService = MockWebSocketService(badInit: true); - mockNetworkStreamController = StreamController(); - mockProcessLifeCycleController = StreamController(); - final bloc = WebSocketBloc( - config: testApiKeyConfig, - authProviderRepo: getTestAuthProviderRepo(), - wsService: badService, - subscriptionOptions: subscriptionOptions, - pollClientOverride: mockPollClient.client, - connectivity: const MockConnectivity(), - processLifeCycle: const MockProcessLifeCycle(), - ); + test('triggering FailureState on Exception during init', () async { + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { + service!.channel.sink.add(mockDataString); + }); + + final badService = MockWebSocketService(badInit: true); + mockNetworkStreamController = StreamController(); + mockProcessLifeCycleController = StreamController(); + final bloc = WebSocketBloc( + config: testApiKeyConfig, + authProviderRepo: getTestAuthProviderRepo(), + wsService: badService, + subscriptionOptions: subscriptionOptions, + pollClientOverride: mockPollClient.client, + connectivity: const MockConnectivity(), + processLifeCycle: const MockProcessLifeCycle(), + ); - expect( - bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), - ); + expect( + bloc.stream, + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + ]), + ); - bloc.subscribe( - subscribeEvent, - ); - // TODO(equartey): Fix this test on web - }, - skip: zIsWeb, - ); + bloc.subscribe(subscribeEvent); + // TODO(equartey): Fix this test on web + }, skip: zIsWeb); test('Exception from service and should return error to user', () async { - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { - service!.channel.sink.addError(Exception('unknown exception')); - }, - ); + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { + service!.channel.sink.addError(Exception('unknown exception')); + }); final bloc = getWebSocketBloc(); expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), ); - final subscription = bloc.subscribe( - subscribeEvent, - ); - expect( - subscription, - emitsError(isA()), - ); + final subscription = bloc.subscribe(subscribeEvent); + expect(subscription, emitsError(isA())); }); test('an exception when poll responds unhealthy', () async { @@ -568,46 +505,38 @@ void main() { expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), ); - bloc.subscribe(subscribeEvent).listen( - null, - onError: expectAsync1((event) { - expect( - event, - isA(), + bloc + .subscribe(subscribeEvent) + .listen( + null, + onError: expectAsync1((event) { + expect(event, isA()); + }), ); - }), - ); await blocReady.future; mockPollClient.sendUnhealthyResponse = true; }); test('cancel() sends a stop message', () async { - final subscribeEvent = SubscribeEvent( - subscriptionRequest, - () { - service!.channel.sink.add(mockDataString); - }, - ); + final subscribeEvent = SubscribeEvent(subscriptionRequest, () { + service!.channel.sink.add(mockDataString); + }); final dataCompleter = Completer(); final bloc = getWebSocketBloc(); - final subscription = bloc.subscribe( - subscribeEvent, - ); + final subscription = bloc.subscribe(subscribeEvent); final streamSub = subscription.listen( (event) => dataCompleter.complete(event.data), @@ -617,20 +546,18 @@ void main() { expect( service!.channel.stream, - emitsInOrder( - [ - isA().having( - (event) => json.decode(event), - 'web socket stop message', - containsPair('type', 'stop'), - ), - isA().having( - (event) => json.decode(event), - 'web socket complete message', - containsPair('type', 'complete'), - ), - ], - ), + emitsInOrder([ + isA().having( + (event) => json.decode(event), + 'web socket stop message', + containsPair('type', 'stop'), + ), + isA().having( + (event) => json.decode(event), + 'web socket complete message', + containsPair('type', 'complete'), + ), + ]), ); // bloc should disconnect due to no active subscriptions expect(bloc.stream, emitsThrough(isA())); @@ -650,30 +577,27 @@ void main() { expect( bloc.stream, - emitsInOrder( - [ - isA(), - isA(), - isA(), - isA(), - isA(), - isA(), - ], - ), + emitsInOrder([ + isA(), + isA(), + isA(), + isA(), + isA(), + isA(), + ]), ); // ignore: invalid_use_of_internal_member WebSocketOptions.autoReconnect = false; - bloc.subscribe(subscribeEvent).listen( - null, - onError: expectAsync1((event) { - expect( - event, - isA(), + bloc + .subscribe(subscribeEvent) + .listen( + null, + onError: expectAsync1((event) { + expect(event, isA()); + }), ); - }), - ); await blocReady.future; diff --git a/packages/api/amplify_api_dart/test/web_socket/web_socket_service_test.dart b/packages/api/amplify_api_dart/test/web_socket/web_socket_service_test.dart index 7c4759b64d..7d765860e9 100644 --- a/packages/api/amplify_api_dart/test/web_socket/web_socket_service_test.dart +++ b/packages/api/amplify_api_dart/test/web_socket/web_socket_service_test.dart @@ -14,24 +14,26 @@ void main() { group('AmplifyWebSocketService', () { group('generateProtocols', () {}); const apiKey = 'fake-key'; - test('should generate a protocol that includes the appropriate headers', - () async { - final (outputs, repo) = createOutputsAndRepo( - AppSyncApiKeyAuthProvider(), - APIAuthorizationType.apiKey, - apiKey, - ); - final service = AmplifyWebSocketService(); - final protocols = await service.generateProtocols(outputs, repo); - final encodedHeaders = protocols[1].replaceFirst('header-', ''); - final headers = json.decode( - String.fromCharCodes(base64Url.decode(encodedHeaders)), - ) as Map; - expect(headers[xApiKey], apiKey); - expect(headers.containsKey(AWSHeaders.accept), true); - expect(headers.containsKey(AWSHeaders.contentEncoding), true); - expect(headers.containsKey(AWSHeaders.contentType), true); - expect(headers.containsKey(AWSHeaders.host), true); - }); + test( + 'should generate a protocol that includes the appropriate headers', + () async { + final (outputs, repo) = createOutputsAndRepo( + AppSyncApiKeyAuthProvider(), + APIAuthorizationType.apiKey, + apiKey, + ); + final service = AmplifyWebSocketService(); + final protocols = await service.generateProtocols(outputs, repo); + final encodedHeaders = protocols[1].replaceFirst('header-', ''); + final headers = + json.decode(String.fromCharCodes(base64Url.decode(encodedHeaders))) + as Map; + expect(headers[xApiKey], apiKey); + expect(headers.containsKey(AWSHeaders.accept), true); + expect(headers.containsKey(AWSHeaders.contentEncoding), true); + expect(headers.containsKey(AWSHeaders.contentType), true); + expect(headers.containsKey(AWSHeaders.host), true); + }, + ); }); } diff --git a/packages/api/amplify_api_dart/test/web_socket/web_socket_types_test.dart b/packages/api/amplify_api_dart/test/web_socket/web_socket_types_test.dart index 14e26ea68f..4b6515d6f0 100644 --- a/packages/api/amplify_api_dart/test/web_socket/web_socket_types_test.dart +++ b/packages/api/amplify_api_dart/test/web_socket/web_socket_types_test.dart @@ -15,71 +15,54 @@ class MessageTypeTestEntry { void main() { final expectedResults = [ - MessageTypeTestEntry( - { - 'type': 'connection_ack', - 'payload': {'connectionTimeoutMs': 300000}, - }, - MessageType.connectionAck, - ), - MessageTypeTestEntry( - { - 'type': 'ka', - }, - MessageType.keepAlive, - ), - MessageTypeTestEntry( - {'id': 'abc-123', 'type': 'start_ack'}, - MessageType.startAck, - ), - MessageTypeTestEntry( - { - 'id': 'xyz-456', - 'type': 'data', - 'payload': { - 'data': { - 'onCreateBlog': { - 'id': 'def-789', - 'name': 'Integration Test Blog - subscription create', - 'createdAt': '2022-09-26T21:41:14.711Z', - 'updatedAt': '2022-09-26T21:41:14.711Z', - }, + MessageTypeTestEntry({ + 'type': 'connection_ack', + 'payload': {'connectionTimeoutMs': 300000}, + }, MessageType.connectionAck), + MessageTypeTestEntry({'type': 'ka'}, MessageType.keepAlive), + MessageTypeTestEntry({ + 'id': 'abc-123', + 'type': 'start_ack', + }, MessageType.startAck), + MessageTypeTestEntry({ + 'id': 'xyz-456', + 'type': 'data', + 'payload': { + 'data': { + 'onCreateBlog': { + 'id': 'def-789', + 'name': 'Integration Test Blog - subscription create', + 'createdAt': '2022-09-26T21:41:14.711Z', + 'updatedAt': '2022-09-26T21:41:14.711Z', }, - 'errors': null, }, + 'errors': null, }, - MessageType.data, - ), - MessageTypeTestEntry( - { - 'id': 'abc-456', - 'type': 'error', - 'payload': { - 'errors': [ - { - 'errorType': 'UnknownOperationError', - 'message': 'Unknown operation id abc-456', - } - ], - }, + }, MessageType.data), + MessageTypeTestEntry({ + 'id': 'abc-456', + 'type': 'error', + 'payload': { + 'errors': [ + { + 'errorType': 'UnknownOperationError', + 'message': 'Unknown operation id abc-456', + }, + ], }, - MessageType.error, - ), - MessageTypeTestEntry( - { - 'id': 'abc-456', - 'type': 'connection_error', - 'payload': { - 'errors': [ - { - 'errorType': 'UnknownConnectionError', - 'message': 'Unknown connection id abc-456', - } - ], - }, + }, MessageType.error), + MessageTypeTestEntry({ + 'id': 'abc-456', + 'type': 'connection_error', + 'payload': { + 'errors': [ + { + 'errorType': 'UnknownConnectionError', + 'message': 'Unknown connection id abc-456', + }, + ], }, - MessageType.connectionError, - ), + }, MessageType.connectionError), ]; group('WebSocketMessage should create expected messages from JSON', () { @@ -99,7 +82,7 @@ void main() { { 'message': errorMessage, 'path': ['onCreateBlog', 'updatedAt'], - } + }, ]; final entry = { 'id': 'xyz-456', @@ -108,22 +91,14 @@ void main() { }; final message = WebSocketMessage.fromJson(entry); expect(message.messageType, MessageType.data); - expect( - message.payload!.toJson()['errors'], - errors, - ); + expect(message.payload!.toJson()['errors'], errors); /// GraphQLResponseDecoder should handle a payload with errors. final response = GraphQLResponseDecoder.instance.decode( - request: GraphQLRequest( - document: '', - ), + request: GraphQLRequest(document: ''), response: message.payload!.toJson(), ); - expect( - response.errors.first.message, - errorMessage, - ); + expect(response.errors.first.message, errorMessage); }); test('WebsocketMessage should decode errors as a Map', () { const errorMessage = 'Max number of 100 subscriptions reached'; @@ -136,22 +111,14 @@ void main() { }; final message = WebSocketMessage.fromJson(entry); expect(message.messageType, MessageType.error); - expect( - message.payload!.toJson()['errors'], - [errorMap], - ); + expect(message.payload!.toJson()['errors'], [errorMap]); /// GraphQLResponseDecoder should handle a payload with errors. final response = GraphQLResponseDecoder.instance.decode( - request: GraphQLRequest( - document: '', - ), + request: GraphQLRequest(document: ''), response: message.payload!.toJson(), ); - expect( - response.errors.first.message, - errorMessage, - ); + expect(response.errors.first.message, errorMessage); }); }); } diff --git a/packages/auth/amplify_auth_cognito/CHANGELOG.md b/packages/auth/amplify_auth_cognito/CHANGELOG.md index c88cbd8f80..63d08c9053 100644 --- a/packages/auth/amplify_auth_cognito/CHANGELOG.md +++ b/packages/auth/amplify_auth_cognito/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/auth/amplify_auth_cognito/example/android/.gitignore b/packages/auth/amplify_auth_cognito/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/auth/amplify_auth_cognito/example/android/.gitignore +++ b/packages/auth/amplify_auth_cognito/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/auth/amplify_auth_cognito/example/android/app/build.gradle b/packages/auth/amplify_auth_cognito/example/android/app/build.gradle index f99934a941..0f3f703617 100644 --- a/packages/auth/amplify_auth_cognito/example/android/app/build.gradle +++ b/packages/auth/amplify_auth_cognito/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -66,6 +68,8 @@ flutter { } dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") + testImplementation 'junit:junit:4.13.2' // These versions must exactly match the ones supported by Flutter, which may not always be diff --git a/packages/auth/amplify_auth_cognito/example/android/app/proguard-rules.pro b/packages/auth/amplify_auth_cognito/example/android/app/proguard-rules.pro new file mode 100644 index 0000000000..24657f9e4f --- /dev/null +++ b/packages/auth/amplify_auth_cognito/example/android/app/proguard-rules.pro @@ -0,0 +1,9 @@ +-dontwarn com.amazonaws.mobile.auth.facebook.FacebookButton +-dontwarn com.amazonaws.mobile.auth.facebook.FacebookSignInProvider +-dontwarn com.amazonaws.mobile.auth.google.GoogleButton +-dontwarn com.amazonaws.mobile.auth.google.GoogleSignInProvider +-dontwarn com.amazonaws.mobile.auth.ui.AuthUIConfiguration$Builder +-dontwarn com.amazonaws.mobile.auth.ui.AuthUIConfiguration +-dontwarn com.amazonaws.mobile.auth.ui.SignInUI$LoginBuilder +-dontwarn com.amazonaws.mobile.auth.ui.SignInUI +-dontwarn com.amazonaws.mobile.auth.userpools.CognitoUserPoolsSignInProvider diff --git a/packages/auth/amplify_auth_cognito/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/auth/amplify_auth_cognito/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/auth/amplify_auth_cognito/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/auth/amplify_auth_cognito/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/auth/amplify_auth_cognito/example/android/settings.gradle b/packages/auth/amplify_auth_cognito/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/auth/amplify_auth_cognito/example/android/settings.gradle +++ b/packages/auth/amplify_auth_cognito/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/asf_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/asf_test.dart index 9ec8255b02..d4e46a60d2 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/asf_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/asf_test.dart @@ -21,9 +21,7 @@ void main() { late String phoneNumber; setUp(() async { - await testRunner.configure( - environmentName: 'asf-audit', - ); + await testRunner.configure(environmentName: 'asf-audit'); username = generateUsername(); password = generatePassword(); email = generateEmail(); @@ -42,14 +40,16 @@ void main() { expect( event.eventContextData?.deviceName, isNot('Other, Other'), - reason: 'When no `DeviceName` is provided, Cognito defaults to ' + reason: + 'When no `DeviceName` is provided, Cognito defaults to ' '"Other, Other"', ); expect(event.eventRisk, isNotNull); expect( event.eventRisk!.riskDecision, RiskDecisionType.noRisk, - reason: 'When the signature algorithm is performed correctly, ' + reason: + 'When the signature algorithm is performed correctly, ' 'Cognito should return a `NoRisk` decision', ); } @@ -114,9 +114,7 @@ void main() { }, ); - final signInCode = await getOtpCode( - UserAttribute.phone(phoneNumber), - ); + final signInCode = await getOtpCode(UserAttribute.phone(phoneNumber)); final signInResult = await Amplify.Auth.signIn( username: username, password: password, @@ -129,10 +127,7 @@ void main() { final confirmSignInResult = await Amplify.Auth.confirmSignIn( confirmationValue: await signInCode.code, ); - expect( - confirmSignInResult.nextStep.signInStep, - AuthSignInStep.done, - ); + expect(confirmSignInResult.nextStep.signInStep, AuthSignInStep.done); final authEvents = await adminListAuthEvents(username); validateEvents(authEvents, EventType.signIn); @@ -167,24 +162,23 @@ void main() { AuthResetPasswordStep.confirmResetPasswordWithCode, ); - final forgotPasswordEvents = (await adminListAuthEvents(username)) - .toSet() - .difference(signInEvents); + final forgotPasswordEvents = (await adminListAuthEvents( + username, + )).toSet().difference(signInEvents); validateEvents(forgotPasswordEvents, EventType.forgotPassword); password = generatePassword(); - final confirmForgotPasswordResult = - await Amplify.Auth.confirmResetPassword( + final confirmForgotPasswordResult = await Amplify + .Auth.confirmResetPassword( username: username, newPassword: password, confirmationCode: await resetCode.code, ); expect(confirmForgotPasswordResult.isPasswordReset, isTrue); - final confirmForgotPasswordEvents = (await adminListAuthEvents(username)) - .toSet() - .difference(signInEvents) - .difference(forgotPasswordEvents); + final confirmForgotPasswordEvents = (await adminListAuthEvents( + username, + )).toSet().difference(signInEvents).difference(forgotPasswordEvents); validateEvents(confirmForgotPasswordEvents, EventType.forgotPassword); }); @@ -208,9 +202,9 @@ void main() { final resendSignUpCode = await getOtpCode(UserAttribute.email(email)); await Amplify.Auth.resendSignUpCode(username: username); - final resendEvents = (await adminListAuthEvents(username)) - .toSet() - .difference(signUpEvents); + final resendEvents = (await adminListAuthEvents( + username, + )).toSet().difference(signUpEvents); validateEvents(resendEvents, EventType.resendCode); final confirmSignUpResult = await Amplify.Auth.confirmSignUp( @@ -219,10 +213,9 @@ void main() { ); expect(confirmSignUpResult.nextStep.signUpStep, AuthSignUpStep.done); - final confirmEvents = (await adminListAuthEvents(username)) - .toSet() - .difference(signUpEvents) - .difference(resendEvents); + final confirmEvents = (await adminListAuthEvents( + username, + )).toSet().difference(signUpEvents).difference(resendEvents); validateEvents(confirmEvents, EventType.signUp); }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_in_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_in_test.dart index 34517cd556..ddafc96ca4 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_in_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_in_test.dart @@ -64,9 +64,7 @@ void main() { final otpCode = await otpResult.code; await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: otpCode, - ), + Amplify.Auth.confirmSignIn(confirmationValue: otpCode), completion( isA().having( (res) => res.isSignedIn, @@ -92,16 +90,12 @@ void main() { final otpCode = await otpResult.code; await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: 'incorrect-code', - ), + Amplify.Auth.confirmSignIn(confirmationValue: 'incorrect-code'), throwsA(isA()), ); await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: otpCode, - ), + Amplify.Auth.confirmSignIn(confirmationValue: otpCode), completion( isA().having( (res) => res.isSignedIn, @@ -115,9 +109,7 @@ void main() { asyncTest('allows retrying on weak password', (_) async { const weakPassword = 'weak'; await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: weakPassword, - ), + Amplify.Auth.confirmSignIn(confirmationValue: weakPassword), throwsA(isA()), ); @@ -149,9 +141,7 @@ void main() { password, autoConfirm: false, autoFillAttributes: false, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber, - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber}, ); final signInRes = await Amplify.Auth.signIn( @@ -184,10 +174,7 @@ void main() { ), ), ); - expect( - confirmSignInRes.nextStep.signInStep, - AuthSignInStep.done, - ); + expect(confirmSignInRes.nextStep.signInStep, AuthSignInStep.done); final userAttributes = await Amplify.Auth.fetchUserAttributes(); expect( diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_up_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_up_test.dart index c4359ca97e..221942e025 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_up_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/confirm_sign_up_test.dart @@ -12,128 +12,123 @@ import 'test_runner.dart'; void main() { testRunner.setupTests(); - group( - 'confirmSignUp', - () { - for (final environment in userPoolEnvironments) { - group(environment.name, () { - setUp(() async { - await testRunner.configure( - environmentName: environment.name, - useAmplifyOutputs: environment.useAmplifyOutputs, - ); - }); - - Future signUpWithoutConfirming( - String username, - String password, - ) async { - final userAttributes = switch (environment.loginMethod) { - LoginMethod.email => {AuthUserAttributeKey.email: username}, - LoginMethod.phone => {AuthUserAttributeKey.phoneNumber: username}, - LoginMethod.username => { - AuthUserAttributeKey.email: generateEmail(), - AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), - } - }; - final signUpResult = await Amplify.Auth.signUp( - username: username, - password: password, - options: SignUpOptions( - userAttributes: userAttributes, - ), - ) as CognitoSignUpResult; - expect(signUpResult.isSignUpComplete, false); - expect( - signUpResult.nextStep.codeDeliveryDetails?.deliveryMedium, - environment.confirmationDeliveryMedium, - ); - expect(signUpResult.userId, isNotNull); - } - - asyncTest('can confirm sign up', (_) async { - final username = environment.generateUsername(); - final password = generatePassword(); - - // Sign up, but do not confirm, user - final otpResult = await getOtpCode( - environment.getLoginAttribute(username), - ); - await signUpWithoutConfirming(username, password); - - // Confirm sign up and complete sign in - final confirmResult = await Amplify.Auth.confirmSignUp( - username: username, - confirmationCode: await otpResult.code, - ); - expect(confirmResult.isSignUpComplete, true); - }); - - asyncTest('can sign up after sign in', (_) async { - final username = environment.generateUsername(); - final password = generatePassword(); - - // Sign up, but do not confirm, user - final otpResult = await getOtpCode( - environment.getLoginAttribute(username), - ); - await signUpWithoutConfirming(username, password); - - // Sign in - final signInResult = await Amplify.Auth.signIn( - username: username, - password: password, - ); - expect( - signInResult.nextStep.signInStep, - AuthSignInStep.confirmSignUp, - ); - - // Confirm sign up and complete sign in - final confirmResult = await Amplify.Auth.confirmSignUp( - username: username, - confirmationCode: await otpResult.code, - ); - expect(confirmResult.isSignUpComplete, true); - - final signInComplete = await Amplify.Auth.signIn( - username: username, - password: password, - ); - expect(signInComplete.nextStep.signInStep, AuthSignInStep.done); - }); - - asyncTest('can resend sign up code', (_) async { - final username = environment.generateUsername(); - final password = generatePassword(); - - // Sign up, but do not confirm, user - var otpResult = await getOtpCode( - environment.getLoginAttribute(username), - ); - await signUpWithoutConfirming(username, password); - - // Throw away code and get next one - await otpResult.code; - otpResult = await getOtpCode( - environment.getLoginAttribute(username), - ); - final resendResult = await Amplify.Auth.resendSignUpCode( - username: username, - ); - expect( - resendResult.codeDeliveryDetails.deliveryMedium, - environment.confirmationDeliveryMedium, - ); - - final confirmResult = await Amplify.Auth.confirmSignUp( - username: username, - confirmationCode: await otpResult.code, - ); - expect(confirmResult.isSignUpComplete, true); - }); + group('confirmSignUp', () { + for (final environment in userPoolEnvironments) { + group(environment.name, () { + setUp(() async { + await testRunner.configure( + environmentName: environment.name, + useAmplifyOutputs: environment.useAmplifyOutputs, + ); }); - } - }, - ); + + Future signUpWithoutConfirming( + String username, + String password, + ) async { + final userAttributes = switch (environment.loginMethod) { + LoginMethod.email => {AuthUserAttributeKey.email: username}, + LoginMethod.phone => {AuthUserAttributeKey.phoneNumber: username}, + LoginMethod.username => { + AuthUserAttributeKey.email: generateEmail(), + AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), + }, + }; + final signUpResult = + await Amplify.Auth.signUp( + username: username, + password: password, + options: SignUpOptions(userAttributes: userAttributes), + ) + as CognitoSignUpResult; + expect(signUpResult.isSignUpComplete, false); + expect( + signUpResult.nextStep.codeDeliveryDetails?.deliveryMedium, + environment.confirmationDeliveryMedium, + ); + expect(signUpResult.userId, isNotNull); + } + + asyncTest('can confirm sign up', (_) async { + final username = environment.generateUsername(); + final password = generatePassword(); + + // Sign up, but do not confirm, user + final otpResult = await getOtpCode( + environment.getLoginAttribute(username), + ); + await signUpWithoutConfirming(username, password); + + // Confirm sign up and complete sign in + final confirmResult = await Amplify.Auth.confirmSignUp( + username: username, + confirmationCode: await otpResult.code, + ); + expect(confirmResult.isSignUpComplete, true); + }); + + asyncTest('can sign up after sign in', (_) async { + final username = environment.generateUsername(); + final password = generatePassword(); + + // Sign up, but do not confirm, user + final otpResult = await getOtpCode( + environment.getLoginAttribute(username), + ); + await signUpWithoutConfirming(username, password); + + // Sign in + final signInResult = await Amplify.Auth.signIn( + username: username, + password: password, + ); + expect( + signInResult.nextStep.signInStep, + AuthSignInStep.confirmSignUp, + ); + + // Confirm sign up and complete sign in + final confirmResult = await Amplify.Auth.confirmSignUp( + username: username, + confirmationCode: await otpResult.code, + ); + expect(confirmResult.isSignUpComplete, true); + + final signInComplete = await Amplify.Auth.signIn( + username: username, + password: password, + ); + expect(signInComplete.nextStep.signInStep, AuthSignInStep.done); + }); + + asyncTest('can resend sign up code', (_) async { + final username = environment.generateUsername(); + final password = generatePassword(); + + // Sign up, but do not confirm, user + var otpResult = await getOtpCode( + environment.getLoginAttribute(username), + ); + await signUpWithoutConfirming(username, password); + + // Throw away code and get next one + await otpResult.code; + otpResult = await getOtpCode(environment.getLoginAttribute(username)); + final resendResult = await Amplify.Auth.resendSignUpCode( + username: username, + ); + expect( + resendResult.codeDeliveryDetails.deliveryMedium, + environment.confirmationDeliveryMedium, + ); + + final confirmResult = await Amplify.Auth.confirmSignUp( + username: username, + confirmationCode: await otpResult.code, + ); + expect(confirmResult.isSignUpComplete, true); + }); + }); + } + }); } diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/custom_auth_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/custom_auth_test.dart index df4795681f..4e7bbea9e2 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/custom_auth_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/custom_auth_test.dart @@ -40,9 +40,7 @@ void main() { ); setUp(() async { - await testRunner.configure( - environmentName: environmentName, - ); + await testRunner.configure(environmentName: environmentName); username = generateUsername(); password = generatePassword(); @@ -55,43 +53,41 @@ void main() { ); }); - asyncTest( - 'signIn should return data from the auth challenge lambda', - (_) async { - final res = await Amplify.Auth.signIn( - username: username, - options: options, - ); - expect( - res.nextStep.signInStep, - AuthSignInStep.confirmSignInWithCustomChallenge, - ); + asyncTest('signIn should return data from the auth challenge lambda', ( + _, + ) async { + final res = await Amplify.Auth.signIn( + username: username, + options: options, + ); + expect( + res.nextStep.signInStep, + AuthSignInStep.confirmSignInWithCustomChallenge, + ); - // additionalInfo key values defined in lambda code - expect(res.nextStep.additionalInfo, { - 'test-key': 'test-value', - 'USERNAME': username, - }); - }, - ); + // additionalInfo key values defined in lambda code + expect(res.nextStep.additionalInfo, { + 'test-key': 'test-value', + 'USERNAME': username, + }); + }); - asyncTest( - 'a correct challenge reply should sign in the user in', - (_) async { - final signInRes = await Amplify.Auth.signIn( - username: username, - options: options, - ); - expect( - signInRes.nextStep.signInStep, - AuthSignInStep.confirmSignInWithCustomChallenge, - ); - final res = await Amplify.Auth.confirmSignIn( - confirmationValue: confirmationValue, - ); - expect(res.isSignedIn, isTrue); - }, - ); + asyncTest('a correct challenge reply should sign in the user in', ( + _, + ) async { + final signInRes = await Amplify.Auth.signIn( + username: username, + options: options, + ); + expect( + signInRes.nextStep.signInStep, + AuthSignInStep.confirmSignInWithCustomChallenge, + ); + final res = await Amplify.Auth.confirmSignIn( + confirmationValue: confirmationValue, + ); + expect(res.isSignedIn, isTrue); + }); asyncTest( 'an incorrect challenge reply should throw a NotAuthorizedException', @@ -120,51 +116,44 @@ void main() { ); } await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: 'wrong', - ), + Amplify.Auth.confirmSignIn(confirmationValue: 'wrong'), throwsA(isA()), reason: 'After 3 tries, fail completely', ); }, ); - asyncTest( - 'challenges can be re-attempted on failure', - (_) async { - final res = await Amplify.Auth.signIn( - username: username, - options: options, - ); - expect( - res.nextStep.signInStep, - AuthSignInStep.confirmSignInWithCustomChallenge, - ); - final confirmRes = await Amplify.Auth.confirmSignIn( - confirmationValue: 'wrong', - ); - expect( - confirmRes.nextStep.signInStep, - AuthSignInStep.confirmSignInWithCustomChallenge, - ); - expect( - confirmRes.nextStep.additionalInfo, - containsPair('errorCode', 'NotAuthorizedException'), - ); - await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: confirmationValue, - ), - completion( - isA().having( - (res) => res.isSignedIn, - 'isSignedIn', - isTrue, - ), + asyncTest('challenges can be re-attempted on failure', (_) async { + final res = await Amplify.Auth.signIn( + username: username, + options: options, + ); + expect( + res.nextStep.signInStep, + AuthSignInStep.confirmSignInWithCustomChallenge, + ); + final confirmRes = await Amplify.Auth.confirmSignIn( + confirmationValue: 'wrong', + ); + expect( + confirmRes.nextStep.signInStep, + AuthSignInStep.confirmSignInWithCustomChallenge, + ); + expect( + confirmRes.nextStep.additionalInfo, + containsPair('errorCode', 'NotAuthorizedException'), + ); + await expectLater( + Amplify.Auth.confirmSignIn(confirmationValue: confirmationValue), + completion( + isA().having( + (res) => res.isSignedIn, + 'isSignedIn', + isTrue, ), - ); - }, - ); + ), + ); + }); asyncTest('fails when including a password', (_) async { await expectLater( @@ -177,27 +166,23 @@ void main() { ); }); - asyncTest( - 'passes client metadata to signIn', - (_) async { - await expectLater( - () => Amplify.Auth.signIn( - username: username, - options: const SignInOptions( - pluginOptions: CognitoSignInPluginOptions( - authFlowType: AuthenticationFlowType.customAuthWithoutSrp, - clientMetadata: { - 'should-fail': 'true', - }, - ), + asyncTest('passes client metadata to signIn', (_) async { + await expectLater( + () => Amplify.Auth.signIn( + username: username, + options: const SignInOptions( + pluginOptions: CognitoSignInPluginOptions( + authFlowType: AuthenticationFlowType.customAuthWithoutSrp, + clientMetadata: {'should-fail': 'true'}, ), ), - throwsA(isA()), - skip: 'Cognito does not pass InitiateAuth client metadata to the ' - 'custom auth triggers: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html#CognitoUserPools-InitiateAuth-request-ClientMetadata', - ); - }, - ); + ), + throwsA(isA()), + skip: + 'Cognito does not pass InitiateAuth client metadata to the ' + 'custom auth triggers: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html#CognitoUserPools-InitiateAuth-request-ClientMetadata', + ); + }); asyncTest('passes client metadata to confirmSignIn', (_) async { final res = await Amplify.Auth.signIn( @@ -213,18 +198,14 @@ void main() { confirmationValue: confirmationValue, options: const ConfirmSignInOptions( pluginOptions: CognitoConfirmSignInPluginOptions( - clientMetadata: { - 'should-fail': 'true', - }, + clientMetadata: {'should-fail': 'true'}, ), ), ), throwsA(isA()), ); await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: confirmationValue, - ), + Amplify.Auth.confirmSignIn(confirmationValue: confirmationValue), throwsA(isA()), reason: 'Authorization failures are not retryable', ); @@ -244,9 +225,7 @@ void main() { ); setUp(() async { - await testRunner.configure( - environmentName: environmentName, - ); + await testRunner.configure(environmentName: environmentName); username = generateUsername(); password = generatePassword(); @@ -259,21 +238,18 @@ void main() { ); }); - asyncTest( - 'if a password is provided but is incorrect, throw ' - 'NotAuthorizedException', - (_) async { - // '123' is the arbitrary challenge answer defined in lambda code - await expectLater( - Amplify.Auth.signIn( - username: username, - password: 'wrong', - options: options, - ), - throwsA(isA()), - ); - }, - ); + asyncTest('if a password is provided but is incorrect, throw ' + 'NotAuthorizedException', (_) async { + // '123' is the arbitrary challenge answer defined in lambda code + await expectLater( + Amplify.Auth.signIn( + username: username, + password: 'wrong', + options: options, + ), + throwsA(isA()), + ); + }); asyncTest( 'a correct password and correct challenge reply should sign in ' @@ -314,33 +290,25 @@ void main() { }, ); - asyncTest( - 'should return data from the auth challenge lambda ' - '(with password)', - (_) async { - final res = await Amplify.Auth.signIn( - username: username, - password: password, - options: options, - ); - expect( - res.nextStep.signInStep, - AuthSignInStep.confirmSignInWithCustomChallenge, - ); + asyncTest('should return data from the auth challenge lambda ' + '(with password)', (_) async { + final res = await Amplify.Auth.signIn( + username: username, + password: password, + options: options, + ); + expect( + res.nextStep.signInStep, + AuthSignInStep.confirmSignInWithCustomChallenge, + ); - // additionalInfo key values defined in lambda code - expect(res.nextStep.additionalInfo, { - 'test-key': 'test-value', - }); - }, - ); + // additionalInfo key values defined in lambda code + expect(res.nextStep.additionalInfo, {'test-key': 'test-value'}); + }); asyncTest('fails when excluding a password', (_) async { await expectLater( - Amplify.Auth.signIn( - username: username, - options: options, - ), + Amplify.Auth.signIn(username: username, options: options), throwsA(isA()), ); }); @@ -353,14 +321,13 @@ void main() { options: const SignInOptions( pluginOptions: CognitoSignInPluginOptions( authFlowType: AuthenticationFlowType.customAuthWithSrp, - clientMetadata: { - 'should-fail': 'true', - }, + clientMetadata: {'should-fail': 'true'}, ), ), ), throwsA(isA()), - skip: 'Cognito does not pass InitiateAuth client metadata to the ' + skip: + 'Cognito does not pass InitiateAuth client metadata to the ' 'custom auth triggers: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html#CognitoUserPools-InitiateAuth-request-ClientMetadata', ); }); @@ -380,18 +347,14 @@ void main() { confirmationValue: confirmationValue, options: const ConfirmSignInOptions( pluginOptions: CognitoConfirmSignInPluginOptions( - clientMetadata: { - 'should-fail': 'true', - }, + clientMetadata: {'should-fail': 'true'}, ), ), ), throwsA(isA()), ); await expectLater( - Amplify.Auth.confirmSignIn( - confirmationValue: confirmationValue, - ), + Amplify.Auth.confirmSignIn(confirmationValue: confirmationValue), throwsA(isA()), reason: 'Authorization failures are not retryable', ); @@ -404,19 +367,17 @@ void main() { // See: https://github.com/aws-amplify/amplify-flutter/issues/3541#issuecomment-1675384073 ( 'custom-auth-device-with-srp', - AuthenticationFlowType.customAuthWithSrp + AuthenticationFlowType.customAuthWithSrp, ), // See: https://github.com/aws-amplify/amplify-flutter/issues/3596#issue-1862400577 ( 'custom-auth-device-without-srp', - AuthenticationFlowType.customAuthWithoutSrp + AuthenticationFlowType.customAuthWithoutSrp, ), ]) { group(environmentName, () { setUp(() async { - await testRunner.configure( - environmentName: environmentName, - ); + await testRunner.configure(environmentName: environmentName); username = generateUsername(); password = generatePassword(); @@ -432,23 +393,23 @@ void main() { Future signIn() async { final signInRes = await switch (authFlowType) { AuthenticationFlowType.customAuthWithSrp => Amplify.Auth.signIn( - username: username, - password: password, - options: const SignInOptions( - pluginOptions: CognitoSignInPluginOptions( - authFlowType: AuthenticationFlowType.customAuthWithSrp, - ), + username: username, + password: password, + options: const SignInOptions( + pluginOptions: CognitoSignInPluginOptions( + authFlowType: AuthenticationFlowType.customAuthWithSrp, ), ), - AuthenticationFlowType.customAuthWithoutSrp => - Amplify.Auth.signIn( - username: username, - options: const SignInOptions( - pluginOptions: CognitoSignInPluginOptions( - authFlowType: AuthenticationFlowType.customAuthWithoutSrp, - ), + ), + AuthenticationFlowType.customAuthWithoutSrp => Amplify + .Auth.signIn( + username: username, + options: const SignInOptions( + pluginOptions: CognitoSignInPluginOptions( + authFlowType: AuthenticationFlowType.customAuthWithoutSrp, ), ), + ), _ => throw StateError('unreachable'), }; expect( @@ -465,8 +426,9 @@ void main() { // On initial sign-in, the device will be untracked and unremembered. await signIn(); - final deviceRepo = cognitoPlugin.stateMachine - .getOrCreate(); + final deviceRepo = + cognitoPlugin.stateMachine + .getOrCreate(); await expectLater( deviceRepo.get(username), completion( @@ -490,7 +452,8 @@ void main() { ChallengeNameType.devicePasswordVerifier, ), ), - reason: 'Devices which are tracked and remembered automatically ' + reason: + 'Devices which are tracked and remembered automatically ' 'trigger device SRP at the end of a custom auth flow', ); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/custom_authorizer_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/custom_authorizer_test.dart index 3b6ff9fb6d..69c445e6a9 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/custom_authorizer_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/custom_authorizer_test.dart @@ -27,284 +27,231 @@ void main() { testRunner.setupTests(); group('Custom Authorizer', () { - const customHeaders = { - 'x-lower-case': 'value', - 'X-UPPER-CASE': 'VALUE', - }; + const customHeaders = {'x-lower-case': 'value', 'X-UPPER-CASE': 'VALUE'}; const queryParameters = { 'test-key': 'test-value', 'special-key': r'!@#$%^&*() _-+={}[]\/;', }; const userPoolEnv = 'custom-authorizer-user-pools'; - group( - 'User Pools', - skip: testRunner.shouldSkip(userPoolEnv), - () { - final configJson = amplifyEnvironments[userPoolEnv]!; - final config = AmplifyConfig.fromJson( - jsonDecode(configJson) as Map, - ); + group('User Pools', skip: testRunner.shouldSkip(userPoolEnv), () { + final configJson = amplifyEnvironments[userPoolEnv]!; + final config = AmplifyConfig.fromJson( + jsonDecode(configJson) as Map, + ); - for (final supportedProtocols in SupportedProtocols.values) { - group(supportedProtocols.name, () { - late AWSHttpClient client; + for (final supportedProtocols in SupportedProtocols.values) { + group(supportedProtocols.name, () { + late AWSHttpClient client; - setUp(() async { - client = AWSHttpClient()..supportedProtocols = supportedProtocols; - addTearDown(client.close); - await testRunner.configure( - environmentName: userPoolEnv, - apiAuthProviders: const [ - CognitoUserPoolsAuthorizer(), - ], - baseClient: client, - ); - addTearDown(Amplify.Auth.deleteUser); - }); + setUp(() async { + client = AWSHttpClient()..supportedProtocols = supportedProtocols; + addTearDown(client.close); + await testRunner.configure( + environmentName: userPoolEnv, + apiAuthProviders: const [CognitoUserPoolsAuthorizer()], + baseClient: client, + ); + addTearDown(Amplify.Auth.deleteUser); + }); - asyncTest('can invoke with HTTP client', (_) async { - final username = generateUsername(); - final password = generatePassword(); + asyncTest('can invoke with HTTP client', (_) async { + final username = generateUsername(); + final password = generatePassword(); - final signUpRes = await Amplify.Auth.signUp( - username: username, - password: password, - ); - expect(signUpRes.isSignUpComplete, isTrue); + final signUpRes = await Amplify.Auth.signUp( + username: username, + password: password, + ); + expect(signUpRes.isSignUpComplete, isTrue); - final signInRes = await Amplify.Auth.signIn( - username: username, - password: password, - ); - expect(signInRes.isSignedIn, isTrue); + final signInRes = await Amplify.Auth.signIn( + username: username, + password: password, + ); + expect(signInRes.isSignedIn, isTrue); - final session = - await Amplify.Auth.fetchAuthSession() as CognitoAuthSession; - expect(session.userPoolTokensResult.valueOrNull, isNotNull); + final session = + await Amplify.Auth.fetchAuthSession() as CognitoAuthSession; + expect(session.userPoolTokensResult.valueOrNull, isNotNull); - final apiUrl = config.api!.awsPlugin!.values - .singleWhere((e) => e.endpointType == EndpointType.rest) - .endpoint; + final apiUrl = + config.api!.awsPlugin!.values + .singleWhere((e) => e.endpointType == EndpointType.rest) + .endpoint; - // Verifies invocation with the ID token. Invocation with an access - // token requires integration with a resource server/OAuth and is, thus, - // not tested. - // - // https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-enable-cognito-user-pool.html + // Verifies invocation with the ID token. Invocation with an access + // token requires integration with a resource server/OAuth and is, thus, + // not tested. + // + // https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-enable-cognito-user-pool.html - final request = AWSStreamedHttpRequest.post( - Uri.parse(apiUrl).replace( - queryParameters: queryParameters, - ), - headers: { - AWSHeaders.accept: 'application/json;charset=utf-8', - AWSHeaders.authorization: - session.userPoolTokensResult.value.idToken.raw, - ...customHeaders, - }, - body: HttpPayload.json({'request': 'hello'}), - ); - final resp = await client.send(request).response; - final body = await resp.decodeBody(); - expect(resp.statusCode, 200, reason: body); - expect( - jsonDecode(body), - equals({'response': 'hello'}), - ); - customHeaders.forEach((key, value) { - expect( - resp.headers, - containsPair(key, value), - ); - }); - queryParameters.forEach((key, value) { - expect( - resp.headers, - containsPair('x-query-$key', value), - ); - }); + final request = AWSStreamedHttpRequest.post( + Uri.parse(apiUrl).replace(queryParameters: queryParameters), + headers: { + AWSHeaders.accept: 'application/json;charset=utf-8', + AWSHeaders.authorization: + session.userPoolTokensResult.value.idToken.raw, + ...customHeaders, + }, + body: HttpPayload.json({'request': 'hello'}), + ); + final resp = await client.send(request).response; + final body = await resp.decodeBody(); + expect(resp.statusCode, 200, reason: body); + expect(jsonDecode(body), equals({'response': 'hello'})); + customHeaders.forEach((key, value) { + expect(resp.headers, containsPair(key, value)); + }); + queryParameters.forEach((key, value) { + expect(resp.headers, containsPair('x-query-$key', value)); }); + }); - asyncTest('can invoke with API plugin', (_) async { - final username = generateUsername(); - final password = generatePassword(); + asyncTest('can invoke with API plugin', (_) async { + final username = generateUsername(); + final password = generatePassword(); - final signUpRes = await Amplify.Auth.signUp( - username: username, - password: password, - ); - expect(signUpRes.isSignUpComplete, isTrue); + final signUpRes = await Amplify.Auth.signUp( + username: username, + password: password, + ); + expect(signUpRes.isSignUpComplete, isTrue); - final signInRes = await Amplify.Auth.signIn( - username: username, - password: password, - ); - expect(signInRes.isSignedIn, isTrue); + final signInRes = await Amplify.Auth.signIn( + username: username, + password: password, + ); + expect(signInRes.isSignedIn, isTrue); - final restOperation = Amplify.API.post( - '/', - queryParameters: queryParameters, - headers: customHeaders, - body: HttpPayload.json({'request': 'hello'}), - ); - try { - final resp = await restOperation.response; - final body = resp.decodeBody(); - expect(resp.statusCode, 200, reason: body); - expect( - jsonDecode(body), - equals({'response': 'hello'}), - ); - customHeaders.forEach((key, value) { - expect( - resp.headers, - containsPair(key, value), - ); - }); - queryParameters.forEach((key, value) { - expect( - resp.headers, - containsPair('x-query-$key', value), - ); - }); - } on HttpStatusException catch (e) { - fail('${e.response.statusCode}: ${e.response.decodeBody()}'); - } - }); + final restOperation = Amplify.API.post( + '/', + queryParameters: queryParameters, + headers: customHeaders, + body: HttpPayload.json({'request': 'hello'}), + ); + try { + final resp = await restOperation.response; + final body = resp.decodeBody(); + expect(resp.statusCode, 200, reason: body); + expect(jsonDecode(body), equals({'response': 'hello'})); + customHeaders.forEach((key, value) { + expect(resp.headers, containsPair(key, value)); + }); + queryParameters.forEach((key, value) { + expect(resp.headers, containsPair('x-query-$key', value)); + }); + } on HttpStatusException catch (e) { + fail('${e.response.statusCode}: ${e.response.decodeBody()}'); + } }); - } - }, - ); + }); + } + }); group('IAM', () { for (final backend in [ 'custom-authorizer-iam', 'custom-authorizer-custom-domain', ]) { - group( - backend, - skip: testRunner.shouldSkip(backend), - () { - final configJson = amplifyEnvironments[backend]; - if (configJson == null) return; + group(backend, skip: testRunner.shouldSkip(backend), () { + final configJson = amplifyEnvironments[backend]; + if (configJson == null) return; - final config = AmplifyConfig.fromJson( - jsonDecode(configJson) as Map, - ); - for (final supportedProtocols in SupportedProtocols.values) { - group(supportedProtocols.name, () { - late AWSHttpClient client; + final config = AmplifyConfig.fromJson( + jsonDecode(configJson) as Map, + ); + for (final supportedProtocols in SupportedProtocols.values) { + group(supportedProtocols.name, () { + late AWSHttpClient client; - setUp(() async { - client = AWSHttpClient() - ..supportedProtocols = supportedProtocols; - addTearDown(client.close); - await testRunner.configure( - environmentName: backend, - baseClient: client, - ); - }); + setUp(() async { + client = + AWSHttpClient()..supportedProtocols = supportedProtocols; + addTearDown(client.close); + await testRunner.configure( + environmentName: backend, + baseClient: client, + ); + }); - asyncTest('can invoke with HTTP client', (_) async { - final cognitoPlugin = Amplify.Auth.getPlugin( - AmplifyAuthCognito.pluginKey, - ); - final session = await cognitoPlugin.fetchAuthSession(); - expect(session.credentialsResult.valueOrNull, isNotNull); + asyncTest('can invoke with HTTP client', (_) async { + final cognitoPlugin = Amplify.Auth.getPlugin( + AmplifyAuthCognito.pluginKey, + ); + final session = await cognitoPlugin.fetchAuthSession(); + expect(session.credentialsResult.valueOrNull, isNotNull); - final restApi = config.api!.awsPlugin!.values - .singleWhere((e) => e.endpointType == EndpointType.rest); - final apiUrl = Uri.parse(restApi.endpoint); + final restApi = config.api!.awsPlugin!.values.singleWhere( + (e) => e.endpointType == EndpointType.rest, + ); + final apiUrl = Uri.parse(restApi.endpoint); - final payload = jsonEncode({'request': 'hello'}); - final request = AWSHttpRequest.post( - apiUrl.replace( - queryParameters: queryParameters, - ), - headers: const { - AWSHeaders.accept: 'application/json;charset=utf-8', - ...customHeaders, - }, - body: utf8.encode(payload), - ); - final signer = AWSSigV4Signer( - credentialsProvider: AWSCredentialsProvider( - session.credentialsResult.value, - ), - ); - final scope = AWSCredentialScope( - region: restApi.region, - service: AWSService.apiGatewayManagementApi, - ); - final signedRequest = await signer.sign( - request, - credentialScope: scope, - ); - final resp = await client.send(signedRequest).response; - final body = await resp.decodeBody(); + final payload = jsonEncode({'request': 'hello'}); + final request = AWSHttpRequest.post( + apiUrl.replace(queryParameters: queryParameters), + headers: const { + AWSHeaders.accept: 'application/json;charset=utf-8', + ...customHeaders, + }, + body: utf8.encode(payload), + ); + final signer = AWSSigV4Signer( + credentialsProvider: AWSCredentialsProvider( + session.credentialsResult.value, + ), + ); + final scope = AWSCredentialScope( + region: restApi.region, + service: AWSService.apiGatewayManagementApi, + ); + final signedRequest = await signer.sign( + request, + credentialScope: scope, + ); + final resp = await client.send(signedRequest).response; + final body = await resp.decodeBody(); + expect(resp.statusCode, 200, reason: body); + expect(jsonDecode(body), equals({'response': 'hello'})); + customHeaders.forEach((key, value) { + expect(resp.headers, containsPair(key, value)); + }); + queryParameters.forEach((key, value) { + expect(resp.headers, containsPair('x-query-$key', value)); + }); + }); + + asyncTest('can invoke with API plugin', (_) async { + final cognitoPlugin = Amplify.Auth.getPlugin( + AmplifyAuthCognito.pluginKey, + ); + final session = await cognitoPlugin.fetchAuthSession(); + expect(session.credentialsResult.valueOrNull, isNotNull); + + final restOperation = Amplify.API.post( + '/', + queryParameters: queryParameters, + headers: customHeaders, + body: HttpPayload.json({'request': 'hello'}), + ); + try { + final resp = await restOperation.response; + final body = resp.decodeBody(); expect(resp.statusCode, 200, reason: body); - expect( - jsonDecode(body), - equals({'response': 'hello'}), - ); + expect(jsonDecode(body), equals({'response': 'hello'})); customHeaders.forEach((key, value) { - expect( - resp.headers, - containsPair(key, value), - ); + expect(resp.headers, containsPair(key, value)); }); queryParameters.forEach((key, value) { - expect( - resp.headers, - containsPair('x-query-$key', value), - ); + expect(resp.headers, containsPair('x-query-$key', value)); }); - }); - - asyncTest('can invoke with API plugin', (_) async { - final cognitoPlugin = Amplify.Auth.getPlugin( - AmplifyAuthCognito.pluginKey, - ); - final session = await cognitoPlugin.fetchAuthSession(); - expect(session.credentialsResult.valueOrNull, isNotNull); - - final restOperation = Amplify.API.post( - '/', - queryParameters: queryParameters, - headers: customHeaders, - body: HttpPayload.json({'request': 'hello'}), - ); - try { - final resp = await restOperation.response; - final body = resp.decodeBody(); - expect(resp.statusCode, 200, reason: body); - expect( - jsonDecode(body), - equals({'response': 'hello'}), - ); - customHeaders.forEach((key, value) { - expect( - resp.headers, - containsPair(key, value), - ); - }); - queryParameters.forEach((key, value) { - expect( - resp.headers, - containsPair('x-query-$key', value), - ); - }); - } on HttpStatusException catch (e) { - fail( - '${e.response.statusCode}: ${e.response.decodeBody()}', - ); - } - }); + } on HttpStatusException catch (e) { + fail('${e.response.statusCode}: ${e.response.decodeBody()}'); + } }); - } - }, - ); + }); + } + }); } }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/delete_user_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/delete_user_test.dart index 60dee36c70..8e09734e4c 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/delete_user_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/delete_user_test.dart @@ -43,15 +43,13 @@ void main() { await Amplify.Auth.deleteUser(); - final expectedException = environment.preventUserExistenceErrors - ? isA() - : isA(); + final expectedException = + environment.preventUserExistenceErrors + ? isA() + : isA(); await expectLater( - Amplify.Auth.signIn( - username: username, - password: password, - ), + Amplify.Auth.signIn(username: username, password: password), throwsA(expectedException), reason: 'Subsequent signIn calls should fail', ); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/device_tracking_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/device_tracking_test.dart index c877ffca52..6402e8cc2f 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/device_tracking_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/device_tracking_test.dart @@ -68,15 +68,14 @@ void main() { autoConfirm: true, verifyAttributes: true, enableMfa: enableMfa, - attributes: { - if (emailAlias) AuthUserAttributeKey.email: username!, - }, + attributes: {if (emailAlias) AuthUserAttributeKey.email: username!}, ); if (emailAlias) { expect( cognitoUsername, isNot(username), - reason: 'When using an alias, Cognito should assign a UUID ' + reason: + 'When using an alias, Cognito should assign a UUID ' 'as the username', ); } @@ -116,9 +115,7 @@ void main() { group('Opt-In', () { group(environmentName, () { setUp(() async { - await testRunner.configure( - environmentName: environmentName, - ); + await testRunner.configure(environmentName: environmentName); await signIn(); }); @@ -170,64 +167,57 @@ void main() { }); } - group( - 'Opt-In (MFA)', - () { - setUp(() async { - await testRunner.configure( - environmentName: 'device-tracking-opt-in', - ); + group('Opt-In (MFA)', () { + setUp(() async { + await testRunner.configure(environmentName: 'device-tracking-opt-in'); - await signIn(enableMfa: true); - }); + await signIn(enableMfa: true); + }); - asyncTest('cannot bypass MFA when device is not remembered', (_) async { - await signOutUser(); + asyncTest('cannot bypass MFA when device is not remembered', (_) async { + await signOutUser(); - final res = await Amplify.Auth.signIn( - username: username!, - password: password, - ); - expect( - res.nextStep.signInStep, - AuthSignInStep.confirmSignInWithSmsMfaCode, - reason: 'Subsequent sign-in attempts should require MFA', - ); - }); + final res = await Amplify.Auth.signIn( + username: username!, + password: password, + ); + expect( + res.nextStep.signInStep, + AuthSignInStep.confirmSignInWithSmsMfaCode, + reason: 'Subsequent sign-in attempts should require MFA', + ); + }); - asyncTest('can bypass MFA when device is remembered', (_) async { - await Amplify.Auth.rememberDevice(); - await signOutUser(); + asyncTest('can bypass MFA when device is remembered', (_) async { + await Amplify.Auth.rememberDevice(); + await signOutUser(); - final res = await Amplify.Auth.signIn( - username: username!, - password: password, - ); - expect( - res.isSignedIn, - isTrue, - reason: 'Subsequent sign-in attempts should not require MFA', - ); - }); + final res = await Amplify.Auth.signIn( + username: username!, + password: password, + ); + expect( + res.isSignedIn, + isTrue, + reason: 'Subsequent sign-in attempts should not require MFA', + ); + }); - asyncTest('can login when device is removed in Cognito', (_) async { - final deviceKey = await getDeviceKey(); - expect(deviceKey, isNotNull); - await signOutUser(); - await deleteDevice(cognitoUsername, deviceKey!); - await expectLater(signIn(enableMfa: true), completes); - final newDeviceKey = await getDeviceKey(); - expect(newDeviceKey, isNotNull); - expect(newDeviceKey, isNot(deviceKey)); - }); - }, - ); + asyncTest('can login when device is removed in Cognito', (_) async { + final deviceKey = await getDeviceKey(); + expect(deviceKey, isNotNull); + await signOutUser(); + await deleteDevice(cognitoUsername, deviceKey!); + await expectLater(signIn(enableMfa: true), completes); + final newDeviceKey = await getDeviceKey(); + expect(newDeviceKey, isNotNull); + expect(newDeviceKey, isNot(deviceKey)); + }); + }); group('Always', () { setUp(() async { - await testRunner.configure( - environmentName: 'device-tracking-always', - ); + await testRunner.configure(environmentName: 'device-tracking-always'); await signIn(); }); @@ -248,36 +238,39 @@ void main() { }); asyncTest( - 'The device from fetchCurrentDevice isnt equal to another device.', - (_) async { - final previousDeviceKey = await getDeviceKey(); - await signOutUser(); - await deleteDevice(cognitoUsername, previousDeviceKey!); - await signIn(); - final newCurrentTestDevice = await Amplify.Auth.fetchCurrentDevice(); - expect(newCurrentTestDevice.id, isNot(previousDeviceKey)); - }); + 'The device from fetchCurrentDevice isnt equal to another device.', + (_) async { + final previousDeviceKey = await getDeviceKey(); + await signOutUser(); + await deleteDevice(cognitoUsername, previousDeviceKey!); + await signIn(); + final newCurrentTestDevice = await Amplify.Auth.fetchCurrentDevice(); + expect(newCurrentTestDevice.id, isNot(previousDeviceKey)); + }, + ); asyncTest( - 'fetchCurrentDevice throws a DeviceNotTrackedException when device is forgotten.', - (_) async { - expect(await getDeviceState(), DeviceState.remembered); - await Amplify.Auth.forgetDevice(); - await expectLater( - Amplify.Auth.fetchCurrentDevice, - throwsA(isA()), - ); - }); + 'fetchCurrentDevice throws a DeviceNotTrackedException when device is forgotten.', + (_) async { + expect(await getDeviceState(), DeviceState.remembered); + await Amplify.Auth.forgetDevice(); + await expectLater( + Amplify.Auth.fetchCurrentDevice, + throwsA(isA()), + ); + }, + ); asyncTest( - 'fetchCurrentDevice throws a SignedOutException when device signs out.', - (_) async { - await signOutUser(); - await expectLater( - Amplify.Auth.fetchCurrentDevice, - throwsA(isA()), - ); - }); + 'fetchCurrentDevice throws a SignedOutException when device signs out.', + (_) async { + await signOutUser(); + await expectLater( + Amplify.Auth.fetchCurrentDevice, + throwsA(isA()), + ); + }, + ); asyncTest('forgetDevice stops tracking', (_) async { expect(await getDeviceState(), DeviceState.remembered); @@ -311,9 +304,7 @@ void main() { group('Always (MFA)', () { setUp(() async { - await testRunner.configure( - environmentName: 'device-tracking-always', - ); + await testRunner.configure(environmentName: 'device-tracking-always'); await signIn(enableMfa: true); }); @@ -431,10 +422,7 @@ void main() { expect(deviceKey, isNotNull); await signOutUser(); await deleteDevice(cognitoUsername, deviceKey!); - await expectLater( - signIn(emailAlias: true, enableMfa: true), - completes, - ); + await expectLater(signIn(emailAlias: true, enableMfa: true), completes); final newDeviceKey = await getDeviceKey(); expect(newDeviceKey, isNotNull); expect(newDeviceKey, isNot(deviceKey)); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/federated_sign_in_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/federated_sign_in_test.dart index c796b8ec4b..3d5e6d71ec 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/federated_sign_in_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/federated_sign_in_test.dart @@ -18,9 +18,8 @@ import 'package:flutter_test/flutter_test.dart'; import 'test_runner.dart'; -AmplifyAuthCognito get cognitoPlugin => Amplify.Auth.getPlugin( - AmplifyAuthCognito.pluginKey, - ); +AmplifyAuthCognito get cognitoPlugin => + Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey); void main() { testRunner.setupTests(); @@ -30,9 +29,10 @@ void main() { // `federateWithIdentityPool` with `AuthProvider.custom` allows testing // the critical code paths related to federated sign-in, even though on // the surface it resembles an ordinary call to fetchAuthSession. - final userPoolConfig = AmplifyConfig.fromJson( - jsonDecode(amplifyconfig) as Map, - ).auth!.awsPlugin!.cognitoUserPool!.default$!; + final userPoolConfig = + AmplifyConfig.fromJson( + jsonDecode(amplifyconfig) as Map, + ).auth!.awsPlugin!.cognitoUserPool!.default$!; final provider = AuthProvider.custom( 'cognito-idp.${userPoolConfig.region}.amazonaws.com/${userPoolConfig.poolId}', ); @@ -45,9 +45,10 @@ void main() { await cognitoPlugin.stateMachine.acceptAndComplete( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = username - ..password = password, + (b) => + b + ..username = username + ..password = password, ), ), ); @@ -211,15 +212,12 @@ void main() { await federateToIdentityPool(); final session = await cognitoPlugin.fetchAuthSession(); - expect( - session.isSignedIn, - isTrue, - reason: 'API requirement', - ); + expect(session.isSignedIn, isTrue, reason: 'API requirement'); await expectLater( cognitoPlugin.getCurrentUser(), throwsA(isA()), - reason: 'API requirement. getCurrentUser should throw ' + reason: + 'API requirement. getCurrentUser should throw ' 'even though isSignedIn=true', ); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/fetch_auth_session_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/fetch_auth_session_test.dart index 88a5882de9..27cb6734f4 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/fetch_auth_session_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/fetch_auth_session_test.dart @@ -17,9 +17,7 @@ void main() { group('unauthenticated access enabled', () { group('no user pool', () { setUp(() async { - await testRunner.configure( - environmentName: 'identity-pool-only', - ); + await testRunner.configure(environmentName: 'identity-pool-only'); }); asyncTest('allows retrieving credentials', (_) async { @@ -60,21 +58,18 @@ void main() { expect(res.isSignedIn, isTrue); }); - asyncTest( - 'should return user credentials', - (_) async { - final res = - await Amplify.Auth.fetchAuthSession() as CognitoAuthSession; - expect(res.isSignedIn, isTrue); - expect(isValidUserSub(res.userSubResult.value), isTrue); - expect(isValidIdentityId(res.identityIdResult.value), isTrue); - expect(isValidAWSCredentials(res.credentialsResult.value), isTrue); - expect( - isValidAWSCognitoUserPoolTokens(res.userPoolTokensResult.value), - isTrue, - ); - }, - ); + asyncTest('should return user credentials', (_) async { + final res = + await Amplify.Auth.fetchAuthSession() as CognitoAuthSession; + expect(res.isSignedIn, isTrue); + expect(isValidUserSub(res.userSubResult.value), isTrue); + expect(isValidIdentityId(res.identityIdResult.value), isTrue); + expect(isValidAWSCredentials(res.credentialsResult.value), isTrue); + expect( + isValidAWSCognitoUserPoolTokens(res.userPoolTokensResult.value), + isTrue, + ); + }); group('user is signed out', () { asyncTest( @@ -105,9 +100,7 @@ void main() { group('unauthenticated access disabled', () { setUp(() async { - await testRunner.configure( - environmentName: 'authenticated-users-only', - ); + await testRunner.configure(environmentName: 'authenticated-users-only'); }); Future retrieveUnauthenticatedCredentials() async { @@ -162,30 +155,16 @@ void main() { final session = await Amplify.Auth.fetchAuthSession() as CognitoAuthSession; expect(session.isSignedIn, isTrue); - expect( - () => session.credentialsResult.value, - returnsNormally, - ); - expect( - () => session.identityIdResult.value, - returnsNormally, - ); - expect( - () => session.userPoolTokensResult.value, - returnsNormally, - ); - expect( - () => session.userSubResult.value, - returnsNormally, - ); + expect(() => session.credentialsResult.value, returnsNormally); + expect(() => session.identityIdResult.value, returnsNormally); + expect(() => session.userPoolTokensResult.value, returnsNormally); + expect(() => session.userSubResult.value, returnsNormally); }); }); group('user pool-only', () { setUp(() async { - await testRunner.configure( - environmentName: 'user-pool-only', - ); + await testRunner.configure(environmentName: 'user-pool-only'); }); Future retrieveUnauthenticatedCredentials() async { @@ -248,14 +227,8 @@ void main() { () => session.identityIdResult.value, throwsA(isA()), ); - expect( - () => session.userPoolTokensResult.value, - returnsNormally, - ); - expect( - () => session.userSubResult.value, - returnsNormally, - ); + expect(() => session.userPoolTokensResult.value, returnsNormally); + expect(() => session.userSubResult.value, returnsNormally); }); }); @@ -264,9 +237,13 @@ void main() { Future> getCustomAttributes({ bool forceRefresh = false, }) async { - final session = await Amplify.Auth.fetchAuthSession( - options: FetchAuthSessionOptions(forceRefresh: forceRefresh), - ) as CognitoAuthSession; + final session = + await Amplify.Auth.fetchAuthSession( + options: FetchAuthSessionOptions( + forceRefresh: forceRefresh, + ), + ) + as CognitoAuthSession; final idToken = session.userPoolTokensResult.value.idToken; return idToken.claims.customClaims; } @@ -325,11 +302,11 @@ void main() { final password = generatePassword(); final attributeKey = switch (environment.loginMethod) { LoginMethod.phone => AuthUserAttributeKey.phoneNumber, - _ => AuthUserAttributeKey.email + _ => AuthUserAttributeKey.email, }; final originalAttributeValue = switch (environment.loginMethod) { LoginMethod.username => generateEmail(), - _ => username + _ => username, }; await adminCreateUser( @@ -338,9 +315,7 @@ void main() { autoConfirm: true, verifyAttributes: true, autoFillAttributes: environment.loginMethod.isUsername, - attributes: { - attributeKey: originalAttributeValue, - }, + attributes: {attributeKey: originalAttributeValue}, ); final res = await Amplify.Auth.signIn( diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/get_current_user_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/get_current_user_test.dart index a7b84ddf7a..cef4f22c61 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/get_current_user_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/get_current_user_test.dart @@ -35,10 +35,7 @@ void main() { autoFillAttributes: environment.loginMethod.isUsername, ); await signOutUser(); - await Amplify.Auth.signIn( - username: username, - password: password, - ); + await Amplify.Auth.signIn(username: username, password: password); }); asyncTest('should return the current user', (_) async { @@ -71,67 +68,59 @@ void main() { }); } - group( - 'with alias', - () { - late String username; - late String password; + group('with alias', () { + late String username; + late String password; - setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-phone', - ); + setUp(() async { + await testRunner.configure(environmentName: 'sign-in-with-phone'); - username = generatePhoneNumber(); - password = generatePassword(); - final cognitoUsername = await adminCreateUser( - username, - password, - autoConfirm: true, - verifyAttributes: true, - enableMfa: true, - attributes: { - AuthUserAttributeKey.phoneNumber: username, - }, - ); + username = generatePhoneNumber(); + password = generatePassword(); + final cognitoUsername = await adminCreateUser( + username, + password, + autoConfirm: true, + verifyAttributes: true, + enableMfa: true, + attributes: {AuthUserAttributeKey.phoneNumber: username}, + ); - final code = await getOtpCode( - UserAttribute.username(cognitoUsername), - ); - final signInRes = await Amplify.Auth.signIn( - username: username, - password: password, - ); - expect( - signInRes.nextStep.signInStep, - AuthSignInStep.confirmSignInWithSmsMfaCode, - ); - final confirmSignInRes = await Amplify.Auth.confirmSignIn( - confirmationValue: await code.code, - ); - expect(confirmSignInRes.isSignedIn, isTrue); - }); + final code = await getOtpCode(UserAttribute.username(cognitoUsername)); + final signInRes = await Amplify.Auth.signIn( + username: username, + password: password, + ); + expect( + signInRes.nextStep.signInStep, + AuthSignInStep.confirmSignInWithSmsMfaCode, + ); + final confirmSignInRes = await Amplify.Auth.confirmSignIn( + confirmationValue: await code.code, + ); + expect(confirmSignInRes.isSignedIn, isTrue); + }); - asyncTest('should return the current user', (_) async { - final authUser = await Amplify.Auth.getCurrentUser(); - expect( - authUser.username, - isNot(username), - reason: 'Cognito should assign an alias username', - ); - expect(isValidUserSub(authUser.userId), isTrue); - expect( - authUser.signInDetails, - isA().having( - (details) => details.username, - 'username', - username, - ), - reason: 'Should return the phone number alias since it ' - 'was used to sign in', - ); - }); - }, - ); + asyncTest('should return the current user', (_) async { + final authUser = await Amplify.Auth.getCurrentUser(); + expect( + authUser.username, + isNot(username), + reason: 'Cognito should assign an alias username', + ); + expect(isValidUserSub(authUser.userId), isTrue); + expect( + authUser.signInDetails, + isA().having( + (details) => details.username, + 'username', + username, + ), + reason: + 'Should return the phone number alias since it ' + 'was used to sign in', + ); + }); + }); }); } diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/hosted_ui_webview_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/hosted_ui_webview_test.dart index b3aa7fea8d..2f535ca8ea 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/hosted_ui_webview_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/hosted_ui_webview_test.dart @@ -40,25 +40,16 @@ void main() { late String password; setUp(() async { - await testRunner.configure( - environmentName: 'hosted-ui', - ); + await testRunner.configure(environmentName: 'hosted-ui'); plugin = Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey); stateMachine = plugin.stateMachine; username = generateUsername(); password = generatePassword(); - await adminCreateUser( - username, - password, - autoConfirm: true, - ); + await adminCreateUser(username, password, autoConfirm: true); }); - Future signIn( - WidgetTester tester, { - bool cancel = false, - }) async { + Future signIn(WidgetTester tester, {bool cancel = false}) async { stateMachine.addInstance( HostedUiTestPlatform( tester, @@ -71,13 +62,12 @@ void main() { _logger.debug('Signing in with Web UI'); if (cancel) { final expectation = expectLater( - plugin.signInWithWebUI( - provider: AuthProvider.cognito, - ), + plugin.signInWithWebUI(provider: AuthProvider.cognito), throwsA(isA()), ); - final hostedUiMachine = - stateMachine.expect(HostedUiStateMachine.type); + final hostedUiMachine = stateMachine.expect( + HostedUiStateMachine.type, + ); expect( hostedUiMachine.stream, emitsInOrder([ @@ -105,28 +95,14 @@ void main() { Future signOut({required bool globalSignOut}) async { final result = await plugin.signOut( - options: SignOutOptions( - globalSignOut: globalSignOut, - ), + options: SignOutOptions(globalSignOut: globalSignOut), ); expect(result, isA()); final credentials = await stateMachine.loadCredentials(); - expect( - credentials.awsCredentials, - isNull, - ); - expect( - credentials.identityId, - isNull, - ); - expect( - credentials.signInDetails, - isNull, - ); - expect( - credentials.userPoolTokens, - isNull, - ); + expect(credentials.awsCredentials, isNull); + expect(credentials.identityId, isNull); + expect(credentials.signInDetails, isNull); + expect(credentials.userPoolTokens, isNull); await expectLater( plugin.getCurrentUser(), throwsA(isA()), @@ -184,12 +160,7 @@ class HostedUiTestPlatform extends HostedUiPlatformImpl { throw const UserCancelledException('Cancelled'); } final signInUri = await getSignInUri(provider: provider); - await tester.pumpWidget( - HostedUiApp( - platform: this, - initialUri: signInUri, - ), - ); + await tester.pumpWidget(HostedUiApp(platform: this, initialUri: signInUri)); await tester.pumpAndSettle(); final controller = await _controller.future; await tester.pump(const Duration(seconds: 2)); @@ -215,9 +186,7 @@ loginButton.click(); '${details.code} ${details.domain} ${details.localizedDescription}', ); } else { - _logger.error( - 'Error running JavaScript: $details', - ); + _logger.error('Error running JavaScript: $details'); } rethrow; } @@ -256,40 +225,41 @@ class HostedUiApp extends StatefulWidget { class _HostedUiAppState extends State { late final controller = () { late final WebViewController controller; - controller = WebViewController() - ..setJavaScriptMode(JavaScriptMode.unrestricted) - ..setNavigationDelegate( - NavigationDelegate( - onWebResourceError: (error) { - _logger.error( - 'Web resource error: ${error.errorCode} ${error.description} ${error.errorType}', - ); - }, - onPageStarted: (url) { - _logger.info('Started loading: $url'); - }, - onPageFinished: (url) { - _logger.info('Finished loading: $url'); - if (!widget.platform._controller.isCompleted) { - widget.platform._controller.complete(controller); - } - }, - onNavigationRequest: (request) { - _logger.info('Request to load: ${request.url}'); - final uri = Uri.parse(request.url); - if (uri.scheme == widget.platform.signInRedirectUri.scheme) { - if (!widget.platform._oauthParameters.isCompleted) { - widget.platform._oauthParameters.complete( - OAuthParameters.fromJson(uri.queryParameters), + controller = + WebViewController() + ..setJavaScriptMode(JavaScriptMode.unrestricted) + ..setNavigationDelegate( + NavigationDelegate( + onWebResourceError: (error) { + _logger.error( + 'Web resource error: ${error.errorCode} ${error.description} ${error.errorType}', ); - } - return NavigationDecision.prevent; - } - return NavigationDecision.navigate; - }, - ), - ) - ..loadRequest(widget.initialUri); + }, + onPageStarted: (url) { + _logger.info('Started loading: $url'); + }, + onPageFinished: (url) { + _logger.info('Finished loading: $url'); + if (!widget.platform._controller.isCompleted) { + widget.platform._controller.complete(controller); + } + }, + onNavigationRequest: (request) { + _logger.info('Request to load: ${request.url}'); + final uri = Uri.parse(request.url); + if (uri.scheme == widget.platform.signInRedirectUri.scheme) { + if (!widget.platform._oauthParameters.isCompleted) { + widget.platform._oauthParameters.complete( + OAuthParameters.fromJson(uri.queryParameters), + ); + } + return NavigationDecision.prevent; + } + return NavigationDecision.navigate; + }, + ), + ) + ..loadRequest(widget.initialUri); return controller; }(); @@ -297,11 +267,7 @@ class _HostedUiAppState extends State { Widget build(BuildContext context) { return MaterialApp( home: Scaffold( - body: Center( - child: WebViewWidget( - controller: controller, - ), - ), + body: Center(child: WebViewWidget(controller: controller)), ), ); } diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/hub_events_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/hub_events_test.dart index 23dd5e8529..f0cff6852f 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/hub_events_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/hub_events_test.dart @@ -34,33 +34,26 @@ void main() { Matcher hasEventName(String name) => isA().having((e) => e.eventName, 'eventName', name); - asyncTest( - 'should broadcast events for sign in and sign out', - (expectations) async { - expectations.add( - expectLater( - authEventStream, - emitsInOrder([ - hasEventName('SIGNED_IN'), - hasEventName('SIGNED_OUT'), - hasEventName('SIGNED_IN'), - hasEventName('SIGNED_OUT'), - ]), - ), - ); + asyncTest('should broadcast events for sign in and sign out', ( + expectations, + ) async { + expectations.add( + expectLater( + authEventStream, + emitsInOrder([ + hasEventName('SIGNED_IN'), + hasEventName('SIGNED_OUT'), + hasEventName('SIGNED_IN'), + hasEventName('SIGNED_OUT'), + ]), + ), + ); - await Amplify.Auth.signIn( - username: username, - password: password, - ); - await Amplify.Auth.signOut(); - await Amplify.Auth.signIn( - username: username, - password: password, - ); - await Amplify.Auth.signOut(); - }, - ); + await Amplify.Auth.signIn(username: username, password: password); + await Amplify.Auth.signOut(); + await Amplify.Auth.signIn(username: username, password: password); + await Amplify.Auth.signOut(); + }); asyncTest('should broadcast events for deleteUser', (expectations) async { expectations.add( @@ -74,10 +67,7 @@ void main() { ), ); - await Amplify.Auth.signIn( - username: username, - password: password, - ); + await Amplify.Auth.signIn(username: username, password: password); await Amplify.Auth.deleteUser(); }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_optional_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_optional_test.dart index 0fed40593b..25c5d2dcba 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_optional_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_optional_test.dart @@ -23,9 +23,7 @@ void main() { password, autoConfirm: true, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); final signInRes = await Amplify.Auth.signIn( @@ -37,9 +35,7 @@ void main() { because: 'MFA is optional', ).equals(AuthSignInStep.done); - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( @@ -51,16 +47,15 @@ void main() { Future signInWithEmail() async { await signOutUser(assertComplete: true); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); final signInRes = await Amplify.Auth.signIn( username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(signInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_required_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_required_test.dart index 5cd4809ad6..9aedd7c44b 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_required_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_required_test.dart @@ -18,26 +18,23 @@ void main() { final username = env.generateUsername(); final password = generatePassword(); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); await adminCreateUser( username, password, autoConfirm: true, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); final signInRes = await Amplify.Auth.signIn( username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await otpResult.code, @@ -54,16 +51,15 @@ void main() { Future signInWithEmail() async { await signOutUser(assertComplete: true); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); final signInRes = await Amplify.Auth.signIn( username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(signInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_optional_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_optional_test.dart index 16a9987e1c..2e4ef7924c 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_optional_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_optional_test.dart @@ -24,9 +24,7 @@ void main() { password, autoConfirm: true, autoFillAttributes: false, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); final signInRes = await Amplify.Auth.signIn( @@ -38,8 +36,9 @@ void main() { signInRes.nextStep.signInStep, ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); await setUpTotp(); @@ -58,14 +57,19 @@ void main() { ); check( signInRes.nextStep.signInStep, - because: 'Once TOTP MFA is preferred, it is performed ' + because: + 'Once TOTP MFA is preferred, it is performed ' 'on every sign-in attempt.', ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -84,9 +88,7 @@ void main() { check( because: 'Disabling TOTP should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); asyncTest('can select TOTP MFA', (_) async { @@ -99,9 +101,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); final signInRes = await Amplify.Auth.signIn( @@ -113,8 +113,9 @@ void main() { because: 'MFA is optional', ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); await setUpTotp(); @@ -143,22 +144,28 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.continueSignInWithMfaSelection); - check(signInRes.nextStep.allowedMfaTypes) - .isNotNull() - .deepEquals({MfaType.email, MfaType.totp}); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.continueSignInWithMfaSelection); + check( + signInRes.nextStep.allowedMfaTypes, + ).isNotNull().deepEquals({MfaType.email, MfaType.totp}); final selectRes = await Amplify.Auth.confirmSignIn( confirmationValue: 'TOTP', ); - check(selectRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + selectRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(selectRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -175,9 +182,7 @@ void main() { // Verify we can set TOTP as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check( await cognitoPlugin.fetchMfaPreference(), because: 'TOTP should be marked preferred', @@ -195,13 +200,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -211,9 +221,7 @@ void main() { // Verify we can switch to EMAIL as preferred. - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.email, MfaType.totp}, @@ -229,8 +237,9 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(signInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -283,9 +292,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); asyncTest('can select EMAIL MFA', (_) async { @@ -298,9 +305,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); final signInRes = await Amplify.Auth.signIn( @@ -312,8 +317,9 @@ void main() { because: 'MFA is optional', ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); await setUpTotp(); @@ -343,17 +349,19 @@ void main() { username: username, password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.continueSignInWithMfaSelection); - check(resignInRes.nextStep.allowedMfaTypes) - .isNotNull() - .deepEquals({MfaType.email, MfaType.totp}); + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.continueSignInWithMfaSelection); + check( + resignInRes.nextStep.allowedMfaTypes, + ).isNotNull().deepEquals({MfaType.email, MfaType.totp}); final selectRes = await Amplify.Auth.confirmSignIn( confirmationValue: 'EMAIL', ); - check(selectRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + selectRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(selectRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -373,9 +381,7 @@ void main() { // Verify we can set EMAIL as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.email, MfaType.totp}, @@ -391,8 +397,9 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(signInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -406,9 +413,7 @@ void main() { // Verify we can switch to TOTP as preferred. - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check( await cognitoPlugin.fetchMfaPreference(), because: 'TOTP should be marked preferred', @@ -426,13 +431,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -481,9 +491,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_required_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_required_test.dart index b7f49da0e6..440cf699a3 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_required_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_email_totp_required_test.dart @@ -59,8 +59,9 @@ void main() { username: username, password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(resignInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -84,9 +85,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); { @@ -137,20 +136,25 @@ void main() { resignInRes.nextStep.signInStep, because: 'Both EMAIL + TOTP are activated with no preference', ).equals(AuthSignInStep.continueSignInWithMfaSelection); - check(resignInRes.nextStep.allowedMfaTypes) - .isNotNull() - .deepEquals({MfaType.email, MfaType.totp}); + check( + resignInRes.nextStep.allowedMfaTypes, + ).isNotNull().deepEquals({MfaType.email, MfaType.totp}); final selectRes = await Amplify.Auth.confirmSignIn( confirmationValue: 'TOTP', ); - check(selectRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + selectRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(selectRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -167,9 +171,7 @@ void main() { // Verify we can set TOTP as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.email, MfaType.totp}, @@ -189,10 +191,14 @@ void main() { because: 'Preference is TOTP MFA now', ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -202,9 +208,7 @@ void main() { // Verify we can switch to EMAIL as preferred. - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.email, MfaType.totp}, @@ -268,7 +272,8 @@ void main() { // Verify that we can disable MFA { await check( - because: 'Interestingly, Cognito does not throw and allows ' + because: + 'Interestingly, Cognito does not throw and allows ' 'MFA to be disabled even when required.', cognitoPlugin.updateMfaPreference( email: MfaPreference.disabled, @@ -279,12 +284,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference( - enabled: {}, - preferred: null, - ), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); } }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_optional_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_optional_test.dart index 4be77b4f06..9546c34da7 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_optional_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_optional_test.dart @@ -35,12 +35,11 @@ void main() { signInRes.nextStep.signInStep, ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( @@ -52,9 +51,7 @@ void main() { Future signInWithEmail() async { await signOutUser(assertComplete: true); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); final signInRes = await Amplify.Auth.signIn( username: username, @@ -62,7 +59,8 @@ void main() { ); check( signInRes.nextStep.signInStep, - because: 'Once Email MFA is preferred, it is performed ' + because: + 'Once Email MFA is preferred, it is performed ' 'on every sign-in attempt.', ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(signInRes.nextStep.codeDeliveryDetails) @@ -87,9 +85,7 @@ void main() { check( because: 'Disabling EMAIL should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); asyncTest('can select EMAIL MFA', (_) async { @@ -97,9 +93,7 @@ void main() { final password = generatePassword(); final phoneNumber = generatePhoneNumber(); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); // Create a user with an unverified phone number. await adminCreateUser( @@ -122,12 +116,11 @@ void main() { because: 'MFA is optional', ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( @@ -136,9 +129,7 @@ void main() { ), ); - await cognitoPlugin.updateMfaPreference( - sms: MfaPreference.enabled, - ); + await cognitoPlugin.updateMfaPreference(sms: MfaPreference.enabled); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( @@ -154,8 +145,9 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(signInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -176,9 +168,7 @@ void main() { // Verify we can switch to SMS as preferred. - await cognitoPlugin.updateMfaPreference( - sms: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(sms: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.email}, @@ -194,14 +184,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -236,9 +230,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); asyncTest('can select SMS MFA', (_) async { @@ -267,8 +259,9 @@ void main() { because: 'MFA is optional', ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); await cognitoPlugin.updateMfaPreference( sms: MfaPreference.preferred, @@ -301,14 +294,18 @@ void main() { username: username, password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(resignInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -325,9 +322,7 @@ void main() { // Verify we can set SMS as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - sms: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(sms: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.email}, @@ -343,14 +338,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -360,9 +359,7 @@ void main() { // Verify we can switch to EMAIL as preferred. - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check( await cognitoPlugin.fetchMfaPreference(), because: 'EMAIL should be marked preferred', @@ -376,17 +373,16 @@ void main() { { await signOutUser(assertComplete: true); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); final signInRes = await Amplify.Auth.signIn( username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(signInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -425,9 +421,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_required_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_required_test.dart index 6a3da16919..a787d2809d 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_required_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_email_required_test.dart @@ -18,18 +18,14 @@ void main() { final username = env.generateUsername(); final password = generatePassword(); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); // Create a user with no phone number. await adminCreateUser( username, password, autoConfirm: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, autoFillAttributes: false, ); @@ -39,7 +35,8 @@ void main() { ); check( signInRes.nextStep.signInStep, - because: 'MFA is required, and EMAIL is chosen when ' + because: + 'MFA is required, and EMAIL is chosen when ' 'no phone number is registered', ).equals(AuthSignInStep.confirmSignInWithOtpCode); @@ -59,16 +56,16 @@ void main() { // Verify we can sign in with EMAIL MFA as the preferred method and forego selection. - final otpResult2 = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult2 = await getOtpCode(env.getLoginAttribute(username)); final resignInRes = await Amplify.Auth.signIn( username: username, password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(resignInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -103,9 +100,18 @@ void main() { username: username, password: password, ); + check( signInRes.nextStep.signInStep, - because: 'MFA is required so Cognito automatically enables SMS MFA', + because: 'MFA is required so Cognito will ask for MFA type', + ).equals(AuthSignInStep.continueSignInWithMfaSelection); + + final selectMfaRes = await Amplify.Auth.confirmSignIn( + confirmationValue: 'SMS', + ); + + check( + selectMfaRes.nextStep.signInStep, ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); final confirmRes = await Amplify.Auth.confirmSignIn( @@ -123,9 +129,7 @@ void main() { ), ); - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( @@ -137,9 +141,7 @@ void main() { await signOutUser(assertComplete: true); { - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); final resignInRes = await Amplify.Auth.signIn( username: username, password: password, @@ -184,7 +186,8 @@ void main() { // Verify that we can disable MFA { await check( - because: 'Interestingly, Cognito does not throw and allows ' + because: + 'Interestingly, Cognito does not throw and allows ' 'MFA to be disabled even when required.', cognitoPlugin.updateMfaPreference( sms: MfaPreference.disabled, @@ -195,12 +198,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference( - enabled: {}, - preferred: null, - ), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); } }); @@ -227,9 +225,18 @@ void main() { username: username, password: password, ); + check( signInRes.nextStep.signInStep, - because: 'MFA is required so Cognito automatically enables SMS MFA', + because: 'MFA is required so Cognito prompts MFA type selection', + ).equals(AuthSignInStep.continueSignInWithMfaSelection); + + final selectMfaRes = await Amplify.Auth.confirmSignIn( + confirmationValue: 'SMS', + ); + + check( + selectMfaRes.nextStep.signInStep, ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); final confirmRes = await Amplify.Auth.confirmSignIn( @@ -239,7 +246,8 @@ void main() { check( await cognitoPlugin.fetchMfaPreference(), - because: 'MFA is required so Cognito automatically enables SMS MFA', + because: + 'SMS MFA has been selected so Cognito fetches SMS as preferred', ).equals( const UserMfaPreference( enabled: {MfaType.sms}, @@ -247,38 +255,9 @@ void main() { ), ); - // Verify we can set SMS as preferred and forego selection. - - { - await signOutUser(assertComplete: true); - - final mfaCode = await getOtpCode(UserAttribute.phone(phoneNumber)); - final signInRes = await Amplify.Auth.signIn( - username: username, - password: password, - ); - check( - signInRes.nextStep.signInStep, - because: 'Preference is SMS MFA now', - ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); - check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); - - final confirmRes = await Amplify.Auth.confirmSignIn( - confirmationValue: await mfaCode.code, - ); - check(confirmRes.nextStep.signInStep).equals(AuthSignInStep.done); - } - // Verify we can switch to EMAIL as preferred. - await cognitoPlugin.updateMfaPreference( - email: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(email: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.email}, @@ -289,9 +268,7 @@ void main() { { await signOutUser(assertComplete: true); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); final signInRes = await Amplify.Auth.signIn( username: username, @@ -330,7 +307,8 @@ void main() { // Verify that we can disable MFA { await check( - because: 'Interestingly, Cognito does not throw and allows ' + because: + 'Interestingly, Cognito does not throw and allows ' 'MFA to be disabled even when required.', cognitoPlugin.updateMfaPreference( sms: MfaPreference.disabled, @@ -341,12 +319,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference( - enabled: {}, - preferred: null, - ), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); } }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_test.dart index 6d56410548..d51c89b4e3 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_test.dart @@ -18,45 +18,43 @@ void main() { ); for (final environment in smsEnvironments) { testRunner.withEnvironment(environment, (env) { - asyncTest( - 'can sign in with SMS MFA enabled by administrator', - (_) async { - final username = env.generateUsername(); - final password = generatePassword(); - - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); - - await adminCreateUser( - username, - password, - autoConfirm: true, - verifyAttributes: true, - attributes: env.getDefaultAttributes(username), - enableMfa: true, - ); - - final signInRes = await Amplify.Auth.signIn( - username: username, - password: password, - ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); - - final confirmRes = await Amplify.Auth.confirmSignIn( - confirmationValue: await otpResult.code, - ); - check(confirmRes.nextStep.signInStep).equals(AuthSignInStep.done); - - check(await cognitoPlugin.fetchMfaPreference()).equals( - const UserMfaPreference( - enabled: {MfaType.sms}, - preferred: MfaType.sms, - ), - ); - }, - ); + asyncTest('can sign in with SMS MFA enabled by administrator', ( + _, + ) async { + final username = env.generateUsername(); + final password = generatePassword(); + + final otpResult = await getOtpCode(env.getLoginAttribute(username)); + + await adminCreateUser( + username, + password, + autoConfirm: true, + verifyAttributes: true, + attributes: env.getDefaultAttributes(username), + enableMfa: true, + ); + + final signInRes = await Amplify.Auth.signIn( + username: username, + password: password, + ); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + + final confirmRes = await Amplify.Auth.confirmSignIn( + confirmationValue: await otpResult.code, + ); + check(confirmRes.nextStep.signInStep).equals(AuthSignInStep.done); + + check(await cognitoPlugin.fetchMfaPreference()).equals( + const UserMfaPreference( + enabled: {MfaType.sms}, + preferred: MfaType.sms, + ), + ); + }); }); } @@ -73,9 +71,7 @@ void main() { attributes: env.getDefaultAttributes(username), ); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); final signInRes = await Amplify.Auth.signIn( username: username, @@ -83,7 +79,8 @@ void main() { ); check( signInRes.nextStep.signInStep, - because: 'When MFA is required, it must be configured during ' + because: + 'When MFA is required, it must be configured during ' 'the first sign-in', ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); @@ -126,60 +123,60 @@ void main() { ); check( signInRes.nextStep.signInStep, - because: 'When MFA is not required, it can be skipped during ' + because: + 'When MFA is not required, it can be skipped during ' 'the first sign-in', ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); }); - asyncTest( - 'fetchMfaPreference returns SMS when enabled outside library', - (_) async { - final username = env.generateUsername(); - final password = generatePassword(); + asyncTest('fetchMfaPreference returns SMS when enabled outside library', ( + _, + ) async { + final username = env.generateUsername(); + final password = generatePassword(); - final cognitoUsername = await adminCreateUser( - username, - password, - autoConfirm: true, - verifyAttributes: true, - attributes: env.getDefaultAttributes(username), - ); + final cognitoUsername = await adminCreateUser( + username, + password, + autoConfirm: true, + verifyAttributes: true, + attributes: env.getDefaultAttributes(username), + ); - final signInRes = await Amplify.Auth.signIn( - username: username, - password: password, - ); - check( - signInRes.nextStep.signInStep, - because: 'When MFA is not required, it can be skipped during ' - 'the first sign-in', - ).equals(AuthSignInStep.done); + final signInRes = await Amplify.Auth.signIn( + username: username, + password: password, + ); + check( + signInRes.nextStep.signInStep, + because: + 'When MFA is not required, it can be skipped during ' + 'the first sign-in', + ).equals(AuthSignInStep.done); - await adminEnableSmsMfa(cognitoUsername); + await adminEnableSmsMfa(cognitoUsername); - check(await cognitoPlugin.fetchMfaPreference()).equals( - const UserMfaPreference( - enabled: {MfaType.sms}, - preferred: MfaType.sms, - ), - ); + check(await cognitoPlugin.fetchMfaPreference()).equals( + const UserMfaPreference( + enabled: {MfaType.sms}, + preferred: MfaType.sms, + ), + ); - await check( - because: 'SMS can be disabled when optional', - cognitoPlugin.updateMfaPreference(sms: MfaPreference.disabled), - ).completes(); + await check( + because: 'SMS can be disabled when optional', + cognitoPlugin.updateMfaPreference(sms: MfaPreference.disabled), + ).completes(); - check( - because: 'Disabling SMS should mark it as not preferred', - await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); - }, - ); + check( + because: 'Disabling SMS should mark it as not preferred', + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); + }); }); }); } diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_optional_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_optional_test.dart index ca25f39e31..30b2824a8a 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_optional_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_optional_test.dart @@ -35,8 +35,9 @@ void main() { signInRes.nextStep.signInStep, ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); await setUpTotp(); @@ -55,14 +56,19 @@ void main() { ); check( signInRes.nextStep.signInStep, - because: 'Once TOTP MFA is preferred, it is performed ' + because: + 'Once TOTP MFA is preferred, it is performed ' 'on every sign-in attempt.', ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -81,9 +87,7 @@ void main() { check( because: 'Disabling TOTP should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); asyncTest('can select TOTP MFA', (_) async { @@ -97,9 +101,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber, - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber}, ); final signInRes = await Amplify.Auth.signIn( @@ -111,8 +113,9 @@ void main() { because: 'MFA is optional', ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); await setUpTotp(); @@ -141,22 +144,28 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.continueSignInWithMfaSelection); - check(signInRes.nextStep.allowedMfaTypes) - .isNotNull() - .deepEquals({MfaType.sms, MfaType.totp}); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.continueSignInWithMfaSelection); + check( + signInRes.nextStep.allowedMfaTypes, + ).isNotNull().deepEquals({MfaType.sms, MfaType.totp}); final selectRes = await Amplify.Auth.confirmSignIn( confirmationValue: 'TOTP', ); - check(selectRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + selectRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(selectRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -173,9 +182,7 @@ void main() { // Verify we can set TOTP as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check( await cognitoPlugin.fetchMfaPreference(), because: 'TOTP should be marked preferred', @@ -193,13 +200,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -209,9 +221,7 @@ void main() { // Verify we can switch to SMS as preferred. - await cognitoPlugin.updateMfaPreference( - sms: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(sms: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.totp}, @@ -227,14 +237,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -283,9 +297,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); asyncTest('can select SMS MFA', (_) async { @@ -299,9 +311,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber, - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber}, ); final signInRes = await Amplify.Auth.signIn( @@ -313,8 +323,9 @@ void main() { because: 'MFA is optional', ).equals(AuthSignInStep.done); - check(await cognitoPlugin.fetchMfaPreference()) - .equals(const UserMfaPreference()); + check( + await cognitoPlugin.fetchMfaPreference(), + ).equals(const UserMfaPreference()); await setUpTotp(); @@ -342,24 +353,29 @@ void main() { username: username, password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.continueSignInWithMfaSelection); - check(resignInRes.nextStep.allowedMfaTypes) - .isNotNull() - .deepEquals({MfaType.sms, MfaType.totp}); + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.continueSignInWithMfaSelection); + check( + resignInRes.nextStep.allowedMfaTypes, + ).isNotNull().deepEquals({MfaType.sms, MfaType.totp}); final mfaCode = await getOtpCode(UserAttribute.phone(phoneNumber)); final selectRes = await Amplify.Auth.confirmSignIn( confirmationValue: 'SMS', ); - check(selectRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + check( + selectRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(selectRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -375,9 +391,7 @@ void main() { // Verify we can set SMS as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - sms: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(sms: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.totp}, @@ -393,14 +407,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -410,9 +428,7 @@ void main() { // Verify we can switch to TOTP as preferred. - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check( await cognitoPlugin.fetchMfaPreference(), because: 'TOTP should be marked preferred', @@ -430,13 +446,18 @@ void main() { username: username, password: password, ); - check(signInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + signInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -485,9 +506,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); }); }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_required_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_required_test.dart index 2f5c1422e3..932573517e 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_required_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_sms_totp_required_test.dart @@ -33,7 +33,8 @@ void main() { ); check( signInRes.nextStep.signInStep, - because: 'MFA is required, and TOTP is chosen when ' + because: + 'MFA is required, and TOTP is chosen when ' 'no phone number is registered', ).equals(AuthSignInStep.continueSignInWithMfaSetupSelection); @@ -61,11 +62,14 @@ void main() { username: username, password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(resignInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) ..has((d) => d.destination, 'destination').equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( @@ -85,9 +89,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber, - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber}, ); { @@ -137,20 +139,25 @@ void main() { resignInRes.nextStep.signInStep, because: 'Both SMS + TOTP are activated with no preference', ).equals(AuthSignInStep.continueSignInWithMfaSelection); - check(resignInRes.nextStep.allowedMfaTypes) - .isNotNull() - .deepEquals({MfaType.sms, MfaType.totp}); + check( + resignInRes.nextStep.allowedMfaTypes, + ).isNotNull().deepEquals({MfaType.sms, MfaType.totp}); final selectRes = await Amplify.Auth.confirmSignIn( confirmationValue: 'TOTP', ); - check(selectRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithTotpMfaCode); + check( + selectRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(selectRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -167,9 +174,7 @@ void main() { // Verify we can set TOTP as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.totp}, @@ -189,10 +194,14 @@ void main() { because: 'Preference is TOTP MFA now', ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -202,9 +211,7 @@ void main() { // Verify we can switch to SMS as preferred. - await cognitoPlugin.updateMfaPreference( - sms: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(sms: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.totp}, @@ -225,11 +232,14 @@ void main() { because: 'Preference is SMS MFA now', ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -269,7 +279,8 @@ void main() { // Verify that we can disable MFA { await check( - because: 'Interestingly, Cognito does not throw and allows ' + because: + 'Interestingly, Cognito does not throw and allows ' 'MFA to be disabled even when required.', cognitoPlugin.updateMfaPreference( sms: MfaPreference.disabled, @@ -280,12 +291,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference( - enabled: {}, - preferred: null, - ), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); } }); @@ -300,9 +306,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber, - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber}, ); { @@ -351,22 +355,26 @@ void main() { signInRes.nextStep.signInStep, because: 'Both SMS + TOTP are activated', ).equals(AuthSignInStep.continueSignInWithMfaSelection); - check(signInRes.nextStep.allowedMfaTypes) - .isNotNull() - .unorderedEquals([MfaType.sms, MfaType.totp]); + check( + signInRes.nextStep.allowedMfaTypes, + ).isNotNull().unorderedEquals([MfaType.sms, MfaType.totp]); final mfaCode = await getOtpCode(UserAttribute.phone(phoneNumber)); final selectRes = await Amplify.Auth.confirmSignIn( confirmationValue: 'SMS', ); - check(selectRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithSmsMfaCode); + check( + selectRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(selectRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -383,9 +391,7 @@ void main() { // Verify we can set SMS as preferred and forego selection. - await cognitoPlugin.updateMfaPreference( - sms: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(sms: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.totp}, @@ -406,11 +412,14 @@ void main() { because: 'Preference is SMS MFA now', ).equals(AuthSignInStep.confirmSignInWithSmsMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.sms) - ..has((d) => d.destination, 'destination') - .isNotNull() - .startsWith('+'); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.sms) + ..has( + (d) => d.destination, + 'destination', + ).isNotNull().startsWith('+'); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await mfaCode.code, @@ -420,9 +429,7 @@ void main() { // Verify we can switch to TOTP as preferred. - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.sms, MfaType.totp}, @@ -442,10 +449,14 @@ void main() { because: 'Preference is TOTP MFA now', ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), @@ -485,7 +496,8 @@ void main() { // Verify that we can disable MFA { await check( - because: 'Interestingly, Cognito does not throw and allows ' + because: + 'Interestingly, Cognito does not throw and allows ' 'MFA to be disabled even when required.', cognitoPlugin.updateMfaPreference( sms: MfaPreference.disabled, @@ -496,12 +508,7 @@ void main() { check( because: 'Disabling MFA should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference( - enabled: {}, - preferred: null, - ), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); } }); }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_optional_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_optional_test.dart index 42b1822372..76f3dcae9b 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_optional_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_optional_test.dart @@ -36,9 +36,7 @@ void main() { await setUpTotp(deviceName: friendlyDeviceName); - await cognitoPlugin.updateMfaPreference( - totp: MfaPreference.preferred, - ); + await cognitoPlugin.updateMfaPreference(totp: MfaPreference.preferred); check(await cognitoPlugin.fetchMfaPreference()).equals( const UserMfaPreference( enabled: {MfaType.totp}, @@ -54,12 +52,15 @@ void main() { ); check( resignInRes.nextStep.signInStep, - because: 'Once TOTP MFA is enabled, it is performed ' + because: + 'Once TOTP MFA is enabled, it is performed ' 'on every sign-in attempt.', ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(resignInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) ..has((d) => d.destination, 'destination').equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( @@ -79,17 +80,12 @@ void main() { check( because: 'Disabling TOTP should mark it as not preferred', await cognitoPlugin.fetchMfaPreference(), - ).equals( - const UserMfaPreference(enabled: {}, preferred: null), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); } testRunner.withEnvironment(mfaOptionalTotp, (env) { group('can sign in with TOTP MFA', () { - asyncTest( - 'w/ no device name', - (_) => runTest(), - ); + asyncTest('w/ no device name', (_) => runTest()); asyncTest( 'w/ device name', (_) => runTest(friendlyDeviceName: friendlyDeviceName), @@ -131,12 +127,7 @@ void main() { check( await cognitoPlugin.fetchMfaPreference(), because: 'TOTP should not be enabled', - ).equals( - const UserMfaPreference( - enabled: {}, - preferred: null, - ), - ); + ).equals(const UserMfaPreference(enabled: {}, preferred: null)); try { await Amplify.Auth.verifyTotpSetup( diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_required_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_required_test.dart index 323700b9f6..ec1a4fbac9 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_required_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_totp_required_test.dart @@ -65,10 +65,14 @@ void main() { because: 'TOTP MFA is performed on every sign-in attempt.', ).equals(AuthSignInStep.confirmSignInWithTotpMfaCode); check(signInRes.nextStep.codeDeliveryDetails).isNotNull() - ..has((d) => d.deliveryMedium, 'deliveryMedium') - .equals(DeliveryMedium.totp) - ..has((d) => d.destination, 'destination') - .equals(friendlyDeviceName); + ..has( + (d) => d.deliveryMedium, + 'deliveryMedium', + ).equals(DeliveryMedium.totp) + ..has( + (d) => d.destination, + 'destination', + ).equals(friendlyDeviceName); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(sharedSecret), diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_username_login_required_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_username_login_required_test.dart index 9903ed6e2d..295ff903b3 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/mfa_username_login_required_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/mfa_username_login_required_test.dart @@ -42,13 +42,9 @@ void main() { 'When an email is registered and the userpool has email MFA enabled, Cognito will automatically enable email MFA as the preferred MFA method.', ).equals(AuthSignInStep.continueSignInWithMfaSetupSelection); - await Amplify.Auth.confirmSignIn( - confirmationValue: 'EMAIL', - ); + await Amplify.Auth.confirmSignIn(confirmationValue: 'EMAIL'); - await Amplify.Auth.confirmSignIn( - confirmationValue: email, - ); + await Amplify.Auth.confirmSignIn(confirmationValue: email); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await otpResult.code, @@ -71,8 +67,9 @@ void main() { username: username, password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(resignInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -168,13 +165,9 @@ void main() { 'When both EMAIL and TOTP are enabled but email attribute isnt verified, choose an mfa method to set up.', ).equals(AuthSignInStep.continueSignInWithMfaSetupSelection); - await Amplify.Auth.confirmSignIn( - confirmationValue: 'EMAIL', - ); + await Amplify.Auth.confirmSignIn(confirmationValue: 'EMAIL'); - await Amplify.Auth.confirmSignIn( - confirmationValue: email, - ); + await Amplify.Auth.confirmSignIn(confirmationValue: email); final confirmRes = await Amplify.Auth.confirmSignIn( confirmationValue: await otpResult.code, @@ -198,8 +191,9 @@ void main() { password: password, ); - check(resignInRes.nextStep.signInStep) - .equals(AuthSignInStep.confirmSignInWithOtpCode); + check( + resignInRes.nextStep.signInStep, + ).equals(AuthSignInStep.confirmSignInWithOtpCode); check(resignInRes.nextStep.codeDeliveryDetails) .isNotNull() .has((d) => d.deliveryMedium, 'deliveryMedium') @@ -227,13 +221,12 @@ void main() { password: password, ); - check(resignInRes2.nextStep.signInStep) - .equals(AuthSignInStep.continueSignInWithMfaSelection); + check( + resignInRes2.nextStep.signInStep, + ).equals(AuthSignInStep.continueSignInWithMfaSelection); // select totp as the preferred method - await Amplify.Auth.confirmSignIn( - confirmationValue: 'TOTP', - ); + await Amplify.Auth.confirmSignIn(confirmationValue: 'TOTP'); final confirmRes3 = await Amplify.Auth.confirmSignIn( confirmationValue: await generateTotpCode(), diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/native_auth_bridge_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/native_auth_bridge_test.dart index 5bee21a3e3..b261aa7ba1 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/native_auth_bridge_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/native_auth_bridge_test.dart @@ -34,14 +34,15 @@ void main() { late HostedUiPlatformImpl platform; setUp(() async { - dependencyManager = DependencyManager() - ..addInstance(mockConfig.auth!) - ..addInstance(MockSecureStorage()) - ..addInstance( - MockClient((request) { - throw UnimplementedError(); - }), - ); + dependencyManager = + DependencyManager() + ..addInstance(mockConfig.auth!) + ..addInstance(MockSecureStorage()) + ..addInstance( + MockClient((request) { + throw UnimplementedError(); + }), + ); platform = HostedUiPlatformImpl(dependencyManager); }); @@ -97,27 +98,26 @@ void main() { ..addInstance>( const MockDispatcher(), ); - await platform.signOut( - options: options, - ); + await platform.signOut(options: options); }); }, ); } -typedef SignInOutFn = Future Function( - String argUrl, - String argCallbackurlscheme, - bool argPreferprivatesession, - String? argBrowserpackagename, -); +typedef SignInOutFn = + Future Function( + String argUrl, + String argCallbackurlscheme, + bool argPreferprivatesession, + String? argBrowserpackagename, + ); class MockNativeAuthBridge extends Fake implements NativeAuthBridge { MockNativeAuthBridge({ SignInOutFn>? signInWithUrl, SignInOutFn? signOutWithUrl, - }) : _signInWithUrl = signInWithUrl, - _signOutWithUrl = signOutWithUrl; + }) : _signInWithUrl = signInWithUrl, + _signOutWithUrl = signOutWithUrl; final SignInOutFn>? _signInWithUrl; final SignInOutFn? _signOutWithUrl; diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/reset_password_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/reset_password_test.dart index 47555320d0..eb38e731cc 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/reset_password_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/reset_password_test.dart @@ -36,10 +36,7 @@ void main() { attributes: environment.getDefaultAttributes(username), ); - await Amplify.Auth.signIn( - username: username, - password: password, - ); + await Amplify.Auth.signIn(username: username, password: password); }); asyncTest('can reset password', (_) async { @@ -72,10 +69,7 @@ void main() { completes, ); - await Amplify.Auth.signIn( - username: username, - password: password, - ); + await Amplify.Auth.signIn(username: username, password: password); }); }); } diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/security_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/security_test.dart index 95e13af798..b013748d05 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/security_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/security_test.dart @@ -14,9 +14,7 @@ import 'package:flutter_test/flutter_test.dart'; import 'test_runner.dart'; class InlineHttpClient extends AWSCustomHttpClient { - InlineHttpClient({ - this.transformRequest, - }); + InlineHttpClient({this.transformRequest}); final AWSBaseHttpRequest Function(AWSBaseHttpRequest)? transformRequest; diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/sign_in_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/sign_in_test.dart index 0ff3a176c2..f52a9625b1 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/sign_in_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/sign_in_test.dart @@ -75,9 +75,10 @@ void main() { asyncTest( 'should throw a UserNotFoundException with a non-existent user', (_) async { - final expectedException = environment.preventUserExistenceErrors - ? isA() - : isA(); + final expectedException = + environment.preventUserExistenceErrors + ? isA() + : isA(); final incorrectUsername = generateUsername(); await expectLater( Amplify.Auth.signIn( diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/sign_out_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/sign_out_test.dart index 08e68d7f21..ad3d99f374 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/sign_out_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/sign_out_test.dart @@ -15,9 +15,8 @@ import 'package:flutter_test/flutter_test.dart'; import 'test_runner.dart'; -AmplifyAuthCognito get cognitoPlugin => Amplify.Auth.getPlugin( - AmplifyAuthCognito.pluginKey, - ); +AmplifyAuthCognito get cognitoPlugin => + Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey); void main() { testRunner.setupTests(); @@ -53,8 +52,8 @@ void main() { // ignore: invalid_use_of_internal_member final config = await Amplify.asyncConfig; final authConfig = config.auth!; - client = AWSHttpClient() - ..supportedProtocols = SupportedProtocols.http1; + client = + AWSHttpClient()..supportedProtocols = SupportedProtocols.http1; cognitoClient = cognito_idp.CognitoIdentityProviderClient( region: authConfig.awsRegion, ); @@ -85,15 +84,14 @@ void main() { expect(finalAuthSession.isSignedIn, isFalse); }); - asyncTest( - 'should not throw even if there is no user to sign out', - (_) async { - final authSession = await Amplify.Auth.fetchAuthSession(); - expect(authSession.isSignedIn, isFalse); - final signOutResult = await Amplify.Auth.signOut(); - expect(signOutResult, isA()); - }, - ); + asyncTest('should not throw even if there is no user to sign out', ( + _, + ) async { + final authSession = await Amplify.Auth.fetchAuthSession(); + expect(authSession.isSignedIn, isFalse); + final signOutResult = await Amplify.Auth.signOut(); + expect(signOutResult, isA()); + }); asyncTest('global signout invalidates previous sessions', (_) async { await cognitoPlugin.signIn(username: username, password: password); @@ -148,46 +146,54 @@ void main() { because: 'Sign out should succeed even if user is deleted', cognitoPlugin.signOut(), ).completes( - (it) => it - ..has((res) => res.signedOutLocally, 'signedOutLocally').isTrue(), + (it) => + it + ..has( + (res) => res.signedOutLocally, + 'signedOutLocally', + ).isTrue(), ); }); - asyncTest('can call sign out after admin delete and session expiration', - (_) async { - final username = environment.generateUsername(); - final password = generatePassword(); - - await adminCreateUser( - username, - password, - autoConfirm: true, - verifyAttributes: true, - autoFillAttributes: environment.loginMethod.isUsername, - ); - - final res = await Amplify.Auth.signIn( - username: username, - password: password, - ); - check(res.isSignedIn).isTrue(); - - await adminDeleteUser(username); - - cognitoPlugin.stateMachine - .expect(FetchAuthSessionStateMachine.type) - .invalidate(); - - await check( - because: 'Sign out should succeed even if user is deleted and ' - 'credentials are expired', - cognitoPlugin.signOut(), - ).completes( - (it) => it - .has((res) => res.signedOutLocally, 'signedOutLocally') - .isTrue(), - ); - }); + asyncTest( + 'can call sign out after admin delete and session expiration', + (_) async { + final username = environment.generateUsername(); + final password = generatePassword(); + + await adminCreateUser( + username, + password, + autoConfirm: true, + verifyAttributes: true, + autoFillAttributes: environment.loginMethod.isUsername, + ); + + final res = await Amplify.Auth.signIn( + username: username, + password: password, + ); + check(res.isSignedIn).isTrue(); + + await adminDeleteUser(username); + + cognitoPlugin.stateMachine + .expect(FetchAuthSessionStateMachine.type) + .invalidate(); + + await check( + because: + 'Sign out should succeed even if user is deleted and ' + 'credentials are expired', + cognitoPlugin.signOut(), + ).completes( + (it) => + it + .has((res) => res.signedOutLocally, 'signedOutLocally') + .isTrue(), + ); + }, + ); }); } }); diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/sign_up_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/sign_up_test.dart index 967f760ca6..0c25f72d45 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/sign_up_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/sign_up_test.dart @@ -16,25 +16,25 @@ void main() { for (final environmentName in ['main']) { group(environmentName, () { setUp(() async { - await testRunner.configure( - environmentName: environmentName, - ); + await testRunner.configure(environmentName: environmentName); }); asyncTest('should signUp a user with valid parameters', (_) async { final username = generateUsername(); final password = generatePassword(); - final res = await Amplify.Auth.signUp( - username: username, - password: password, - options: SignUpOptions( - userAttributes: { - AuthUserAttributeKey.email: generateEmail(), - AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), - }, - ), - ) as CognitoSignUpResult; + final res = + await Amplify.Auth.signUp( + username: username, + password: password, + options: SignUpOptions( + userAttributes: { + AuthUserAttributeKey.email: generateEmail(), + AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), + }, + ), + ) + as CognitoSignUpResult; expect( res.isSignUpComplete, isFalse, @@ -78,168 +78,155 @@ void main() { }, ); - asyncTest( - 'should throw a UsernameExistsException for a username that ' - 'already exists', - (_) async { - // create username for both sign up attempts - final username = generateUsername(); + asyncTest('should throw a UsernameExistsException for a username that ' + 'already exists', (_) async { + // create username for both sign up attempts + final username = generateUsername(); - // sign up first user - final userOnePassword = generatePassword(); - final userOneOptions = SignUpOptions( - userAttributes: { - AuthUserAttributeKey.email: generateEmail(), - AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), - }, - ); - await Amplify.Auth.signUp( + // sign up first user + final userOnePassword = generatePassword(); + final userOneOptions = SignUpOptions( + userAttributes: { + AuthUserAttributeKey.email: generateEmail(), + AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), + }, + ); + await Amplify.Auth.signUp( + username: username, + password: userOnePassword, + options: userOneOptions, + ); + + // attempt to sign up second user with the same username + final userTwoPassword = generatePassword(); + final userTwoOptions = SignUpOptions( + userAttributes: { + AuthUserAttributeKey.email: generateEmail(), + AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), + }, + ); + await expectLater( + Amplify.Auth.signUp( username: username, - password: userOnePassword, - options: userOneOptions, - ); + password: userTwoPassword, + options: userTwoOptions, + ), + throwsA(isA()), + ); + }); + + asyncTest('should verify phone when email+phone are passed', (_) async { + final username = generateUsername(); + final password = generatePassword(); + final email = generateEmail(); + final phoneNumber = generatePhoneNumber(); - // attempt to sign up second user with the same username - final userTwoPassword = generatePassword(); - final userTwoOptions = SignUpOptions( + final phoneCode = await getOtpCode(UserAttribute.phone(phoneNumber)); + final signUpRes = await Amplify.Auth.signUp( + username: username, + password: password, + options: SignUpOptions( userAttributes: { - AuthUserAttributeKey.email: generateEmail(), - AuthUserAttributeKey.phoneNumber: generatePhoneNumber(), + AuthUserAttributeKey.email: email, + AuthUserAttributeKey.phoneNumber: phoneNumber, }, - ); - await expectLater( - Amplify.Auth.signUp( - username: username, - password: userTwoPassword, - options: userTwoOptions, - ), - throwsA(isA()), - ); - }, - ); + ), + ); + expect(signUpRes.isSignUpComplete, false); + expect(signUpRes.nextStep.signUpStep, AuthSignUpStep.confirmSignUp); + expect( + signUpRes.nextStep.codeDeliveryDetails, + isA() + .having( + (d) => d.attributeKey, + 'attributeKey', + AuthUserAttributeKey.phoneNumber, + ) + .having( + (d) => d.deliveryMedium, + 'deliveryMedium', + DeliveryMedium.sms, + ) + .having((d) => d.destination, 'destination', isNotNull), + ); - asyncTest( - 'should verify phone when email+phone are passed', - (_) async { - final username = generateUsername(); - final password = generatePassword(); - final email = generateEmail(); - final phoneNumber = generatePhoneNumber(); + final confirmSignUpRes = await Amplify.Auth.confirmSignUp( + username: username, + confirmationCode: await phoneCode.code, + ); + expect(confirmSignUpRes.isSignUpComplete, true); - final phoneCode = await getOtpCode( - UserAttribute.phone(phoneNumber), - ); - final signUpRes = await Amplify.Auth.signUp( - username: username, - password: password, - options: SignUpOptions( - userAttributes: { - AuthUserAttributeKey.email: email, - AuthUserAttributeKey.phoneNumber: phoneNumber, - }, - ), - ); - expect(signUpRes.isSignUpComplete, false); - expect(signUpRes.nextStep.signUpStep, AuthSignUpStep.confirmSignUp); - expect( - signUpRes.nextStep.codeDeliveryDetails, - isA() - .having( - (d) => d.attributeKey, - 'attributeKey', - AuthUserAttributeKey.phoneNumber, - ) - .having( - (d) => d.deliveryMedium, - 'deliveryMedium', - DeliveryMedium.sms, - ) - .having((d) => d.destination, 'destination', isNotNull), - ); + // Login and confirm email + final signInRes = await Amplify.Auth.signIn( + username: username, + password: password, + ); + expect(signInRes.isSignedIn, true); - final confirmSignUpRes = await Amplify.Auth.confirmSignUp( - username: username, - confirmationCode: await phoneCode.code, - ); - expect(confirmSignUpRes.isSignUpComplete, true); + final userAttributes = await Amplify.Auth.fetchUserAttributes(); + expect( + userAttributes.toMap(), + allOf([ + containsPair(AuthUserAttributeKey.email, email), + containsPair(AuthUserAttributeKey.emailVerified, 'false'), + containsPair(AuthUserAttributeKey.phoneNumber, phoneNumber), + containsPair(AuthUserAttributeKey.phoneNumberVerified, 'true'), + ]), + reason: + 'When both phone and email are passed during sign up, only ' + 'phone is verified by Cognito. It is the responsibility of developers ' + 'to all sendUserAttributeVerificationCode to receive a code for ' + 'verifying the other attribute.', + ); - // Login and confirm email - final signInRes = await Amplify.Auth.signIn( - username: username, - password: password, - ); - expect(signInRes.isSignedIn, true); - - final userAttributes = await Amplify.Auth.fetchUserAttributes(); - expect( - userAttributes.toMap(), - allOf([ - containsPair(AuthUserAttributeKey.email, email), - containsPair(AuthUserAttributeKey.emailVerified, 'false'), - containsPair(AuthUserAttributeKey.phoneNumber, phoneNumber), - containsPair(AuthUserAttributeKey.phoneNumberVerified, 'true'), - ]), - reason: - 'When both phone and email are passed during sign up, only ' - 'phone is verified by Cognito. It is the responsibility of developers ' - 'to all sendUserAttributeVerificationCode to receive a code for ' - 'verifying the other attribute.', - ); + final emailCode = await getOtpCode(UserAttribute.email(email)); + final resendRes = await Amplify + .Auth.sendUserAttributeVerificationCode( + userAttributeKey: AuthUserAttributeKey.email, + ); + expect( + resendRes.codeDeliveryDetails.attributeKey, + AuthUserAttributeKey.email, + ); + expect( + resendRes.codeDeliveryDetails.deliveryMedium, + DeliveryMedium.email, + ); + expect(resendRes.codeDeliveryDetails.destination, isNotNull); - final emailCode = await getOtpCode(UserAttribute.email(email)); - final resendRes = - await Amplify.Auth.sendUserAttributeVerificationCode( + await expectLater( + Amplify.Auth.confirmUserAttribute( userAttributeKey: AuthUserAttributeKey.email, - ); - expect( - resendRes.codeDeliveryDetails.attributeKey, - AuthUserAttributeKey.email, - ); - expect( - resendRes.codeDeliveryDetails.deliveryMedium, - DeliveryMedium.email, - ); - expect(resendRes.codeDeliveryDetails.destination, isNotNull); - - await expectLater( - Amplify.Auth.confirmUserAttribute( - userAttributeKey: AuthUserAttributeKey.email, - confirmationCode: await emailCode.code, - ), - completes, - ); + confirmationCode: await emailCode.code, + ), + completes, + ); - final updatedUserAttributes = - await Amplify.Auth.fetchUserAttributes(); - expect( - updatedUserAttributes.toMap(), - allOf([ - containsPair(AuthUserAttributeKey.email, email), - containsPair(AuthUserAttributeKey.emailVerified, 'true'), - containsPair(AuthUserAttributeKey.phoneNumber, phoneNumber), - containsPair(AuthUserAttributeKey.phoneNumberVerified, 'true'), - ]), - ); - }, - ); + final updatedUserAttributes = + await Amplify.Auth.fetchUserAttributes(); + expect( + updatedUserAttributes.toMap(), + allOf([ + containsPair(AuthUserAttributeKey.email, email), + containsPair(AuthUserAttributeKey.emailVerified, 'true'), + containsPair(AuthUserAttributeKey.phoneNumber, phoneNumber), + containsPair(AuthUserAttributeKey.phoneNumberVerified, 'true'), + ]), + ); + }); }); } group('identity pool-only', () { setUp(() async { - await testRunner.configure( - environmentName: 'identity-pool-only', - ); + await testRunner.configure(environmentName: 'identity-pool-only'); }); asyncTest('throws on sign-up attempt', (_) async { final username = generateUsername(); final password = generatePassword(); await expectLater( - Amplify.Auth.signUp( - username: username, - password: password, - ), + Amplify.Auth.signUp(username: username, password: password), throwsA(isA()), ); }); @@ -249,6 +236,6 @@ void main() { extension on List { Map toMap() => { - for (final attr in this) attr.userAttributeKey: attr.value, - }; + for (final attr in this) attr.userAttributeKey: attr.value, + }; } diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/update_password_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/update_password_test.dart index 0d2e8afc13..7416578853 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/update_password_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/update_password_test.dart @@ -62,21 +62,18 @@ void main() { expect(res.isSignedIn, isTrue); }); - asyncTest( - 'should throw a NotAuthorizedException for an incorrect ' - 'current password', - (_) async { - final incorrectPassword = generatePassword(); - final newPassword = generatePassword(); - await expectLater( - Amplify.Auth.updatePassword( - oldPassword: incorrectPassword, - newPassword: newPassword, - ), - throwsA(isA()), - ); - }, - ); + asyncTest('should throw a NotAuthorizedException for an incorrect ' + 'current password', (_) async { + final incorrectPassword = generatePassword(); + final newPassword = generatePassword(); + await expectLater( + Amplify.Auth.updatePassword( + oldPassword: incorrectPassword, + newPassword: newPassword, + ), + throwsA(isA()), + ); + }); asyncTest( 'should throw an InvalidPasswordException for a new password that ' diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/user_attributes_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/user_attributes_test.dart index b81c2cacdc..11fabf362f 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/user_attributes_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/user_attributes_test.dart @@ -31,12 +31,14 @@ void main() { Future createAndLoginUser([EnvironmentInfo? environment]) async { username = environment?.generateUsername() ?? generateUsername(); password = generatePassword(); - email = environment?.loginMethod == LoginMethod.email - ? username - : generateEmail(); - phoneNumber = environment?.loginMethod == LoginMethod.phone - ? username - : generatePhoneNumber(); + email = + environment?.loginMethod == LoginMethod.email + ? username + : generateEmail(); + phoneNumber = + environment?.loginMethod == LoginMethod.phone + ? username + : generatePhoneNumber(); name = generateNameAttribute(); await adminCreateUser( @@ -49,10 +51,10 @@ void main() { LoginMethod.email => {AuthUserAttributeKey.name: name}, LoginMethod.phone => {AuthUserAttributeKey.name: name}, _ => { - AuthUserAttributeKey.email: email, - AuthUserAttributeKey.phoneNumber: phoneNumber, - AuthUserAttributeKey.name: name, - }, + AuthUserAttributeKey.email: email, + AuthUserAttributeKey.phoneNumber: phoneNumber, + AuthUserAttributeKey.name: name, + }, }, ); @@ -101,10 +103,7 @@ void main() { phoneNumber, skip: environment.loginMethod.isEmail, ); - expect( - userAttributes.valueOf(AuthUserAttributeKey.name), - name, - ); + expect(userAttributes.valueOf(AuthUserAttributeKey.name), name); }); }); @@ -128,35 +127,30 @@ void main() { ); }); - asyncTest( - 'should throw an InvalidParameterException for an invalid ' - 'attribute key', - (_) async { - await expectLater( - Amplify.Auth.updateUserAttribute( - userAttributeKey: - CognitoUserAttributeKey.parse('fake-key-name'), - value: 'mock-value', + asyncTest('should throw an InvalidParameterException for an invalid ' + 'attribute key', (_) async { + await expectLater( + Amplify.Auth.updateUserAttribute( + userAttributeKey: CognitoUserAttributeKey.parse( + 'fake-key-name', ), - throwsA(isA()), - ); - }, - ); + value: 'mock-value', + ), + throwsA(isA()), + ); + }); - asyncTest( - 'should throw an InvalidParameterException for an invalid ' - 'attribute value', - (_) async { - const invalidEmailAddress = 'invalidEmailFormat.com'; - await expectLater( - Amplify.Auth.updateUserAttribute( - userAttributeKey: AuthUserAttributeKey.email, - value: invalidEmailAddress, - ), - throwsA(isA()), - ); - }, - ); + asyncTest('should throw an InvalidParameterException for an invalid ' + 'attribute value', (_) async { + const invalidEmailAddress = 'invalidEmailFormat.com'; + await expectLater( + Amplify.Auth.updateUserAttribute( + userAttributeKey: AuthUserAttributeKey.email, + value: invalidEmailAddress, + ), + throwsA(isA()), + ); + }); }); group('updateUserAttributes', () { @@ -237,9 +231,7 @@ void main() { ]) { group(environmentName, () { setUp(() async { - await testRunner.configure( - environmentName: environmentName, - ); + await testRunner.configure(environmentName: environmentName); await createAndLoginUser(); }); @@ -290,8 +282,8 @@ void main() { final resentCode = await getOtpCode( UserAttribute.email(keepOriginal ? email : newEmail), ); - final resendResult = - await Amplify.Auth.sendUserAttributeVerificationCode( + final resendResult = await Amplify + .Auth.sendUserAttributeVerificationCode( userAttributeKey: AuthUserAttributeKey.email, ); expect( @@ -302,10 +294,7 @@ void main() { resendResult.codeDeliveryDetails.deliveryMedium, DeliveryMedium.email, ); - expect( - resendResult.codeDeliveryDetails.destination, - isNotNull, - ); + expect(resendResult.codeDeliveryDetails.destination, isNotNull); await expectLater( Amplify.Auth.confirmUserAttribute( @@ -361,8 +350,8 @@ void main() { final resentCode = await getOtpCode( UserAttribute.phone(keepOriginal ? phoneNumber : newPhoneNumber), ); - final resendResult = - await Amplify.Auth.sendUserAttributeVerificationCode( + final resendResult = await Amplify + .Auth.sendUserAttributeVerificationCode( userAttributeKey: AuthUserAttributeKey.phoneNumber, ); expect( @@ -373,10 +362,7 @@ void main() { resendResult.codeDeliveryDetails.deliveryMedium, DeliveryMedium.sms, ); - expect( - resendResult.codeDeliveryDetails.destination, - isNotNull, - ); + expect(resendResult.codeDeliveryDetails.destination, isNotNull); await expectLater( Amplify.Auth.confirmUserAttribute( diff --git a/packages/auth/amplify_auth_cognito/example/integration_test/version_upgrade_test.dart b/packages/auth/amplify_auth_cognito/example/integration_test/version_upgrade_test.dart index 579039c829..3449bf7a6e 100644 --- a/packages/auth/amplify_auth_cognito/example/integration_test/version_upgrade_test.dart +++ b/packages/auth/amplify_auth_cognito/example/integration_test/version_upgrade_test.dart @@ -72,9 +72,7 @@ void main() { // confirm tokens can be refreshed final session3 = await plugin.fetchAuthSession( - options: const FetchAuthSessionOptions( - forceRefresh: true, - ), + options: const FetchAuthSessionOptions(forceRefresh: true), ); expect(session3.isSignedIn, isTrue); diff --git a/packages/auth/amplify_auth_cognito/example/lib/main.dart b/packages/auth/amplify_auth_cognito/example/lib/main.dart index adc26661b6..e194788f51 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/main.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/main.dart @@ -37,34 +37,38 @@ class _MyAppState extends State { ), GoRoute( path: '/view-user-attributes', - builder: (BuildContext _, GoRouterState __) => - const ViewUserAttributesScreen(), + builder: + (BuildContext _, GoRouterState __) => + const ViewUserAttributesScreen(), ), GoRoute( path: '/update-user-attribute', - builder: (BuildContext _, GoRouterState state) => - UpdateUserAttributeScreen( - userAttributeKey: state.extra as CognitoUserAttributeKey?, - ), + builder: + (BuildContext _, GoRouterState state) => UpdateUserAttributeScreen( + userAttributeKey: state.extra as CognitoUserAttributeKey?, + ), ), GoRoute( path: '/update-user-attributes', - builder: (BuildContext _, GoRouterState state) => - const UpdateUserAttributesScreen(), + builder: + (BuildContext _, GoRouterState state) => + const UpdateUserAttributesScreen(), ), GoRoute( path: '/confirm-user-attribute/email', - builder: (BuildContext _, GoRouterState state) => - const ConfirmUserAttributeScreen( - userAttributeKey: CognitoUserAttributeKey.email, - ), + builder: + (BuildContext _, GoRouterState state) => + const ConfirmUserAttributeScreen( + userAttributeKey: CognitoUserAttributeKey.email, + ), ), GoRoute( path: '/confirm-user-attribute/phone_number', - builder: (BuildContext _, GoRouterState state) => - const ConfirmUserAttributeScreen( - userAttributeKey: CognitoUserAttributeKey.phoneNumber, - ), + builder: + (BuildContext _, GoRouterState state) => + const ConfirmUserAttributeScreen( + userAttributeKey: CognitoUserAttributeKey.phoneNumber, + ), ), ], ); @@ -85,8 +89,8 @@ class _MyAppState extends State { /// https://docs.amplify.aws/lib/project-setup/platform-setup/q/platform/flutter/#enable-keychain secureStorageFactory: AmplifySecureStorage.factoryFrom( macOSOptions: - // ignore: invalid_use_of_visible_for_testing_member - MacOSSecureStorageOptions(useDataProtection: false), + // ignore: invalid_use_of_visible_for_testing_member + MacOSSecureStorageOptions(useDataProtection: false), ), ), ]); @@ -161,9 +165,7 @@ class _HomeScreenState extends State { Future _fetchAuthSession() async { final authSession = await Amplify.Auth.fetchAuthSession(); - _logger.info( - prettyPrintJson(authSession.toJson()), - ); + _logger.info(prettyPrintJson(authSession.toJson())); } Future _requestGreeting() async { @@ -171,12 +173,10 @@ class _HomeScreenState extends State { _loading = true; }); try { - final response = await Amplify.API - .post( - '/hello', - body: HttpPayload.string(_controller.text), - ) - .response; + final response = + await Amplify.API + .post('/hello', body: HttpPayload.string(_controller.text)) + .response; final decodedBody = response.decodeBody(); setState(() { _greeting = decodedBody; @@ -195,9 +195,7 @@ class _HomeScreenState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Amplify Auth Example'), - ), + appBar: AppBar(title: const Text('Amplify Auth Example')), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, diff --git a/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_in.dart b/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_in.dart index 426a40a5a5..cdf45da2e9 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_in.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_in.dart @@ -31,9 +31,7 @@ class _ConfirmSignInWidgetState extends State { final res = await Amplify.Auth.confirmSignIn( confirmationValue: confirmationCodeController.text.trim(), ); - widget.showResult( - 'Confirm Sign In Status = ${res.nextStep.signInStep}', - ); + widget.showResult('Confirm Sign In Status = ${res.nextStep.signInStep}'); widget.changeDisplay( res.nextStep.signInStep == AuthSignInStep.done ? 'SIGNED_IN' diff --git a/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_up.dart b/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_up.dart index 5793753916..4fd4eeb83b 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_up.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_sign_up.dart @@ -32,9 +32,7 @@ class _ConfirmSignUpWidgetState extends State { username: usernameController.text.trim(), confirmationCode: confirmationCodeController.text.trim(), ); - widget.showResult( - 'Confirm Sign Up Status = ${res.nextStep.signUpStep}', - ); + widget.showResult('Confirm Sign Up Status = ${res.nextStep.signUpStep}'); widget.changeDisplay( res.nextStep.signUpStep != AuthSignUpStep.done ? 'SHOW_CONFIRM' diff --git a/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_user_attribute.dart b/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_user_attribute.dart index 436289641c..a44f3408df 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_user_attribute.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/screens/confirm_user_attribute.dart @@ -5,10 +5,7 @@ import 'package:amplify_flutter/amplify_flutter.dart'; import 'package:flutter/material.dart'; class ConfirmUserAttributeScreen extends StatefulWidget { - const ConfirmUserAttributeScreen({ - required this.userAttributeKey, - super.key, - }); + const ConfirmUserAttributeScreen({required this.userAttributeKey, super.key}); final AuthUserAttributeKey userAttributeKey; @@ -68,9 +65,7 @@ class _ConfirmUserAttributeScreenState @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Confirm Attribute'), - ), + appBar: AppBar(title: const Text('Confirm Attribute')), body: Padding( padding: const EdgeInsets.all(16), child: ListView( @@ -79,15 +74,11 @@ class _ConfirmUserAttributeScreenState TextFormField( initialValue: widget.userAttributeKey.key, enabled: false, - decoration: const InputDecoration( - labelText: 'Attribute Name', - ), + decoration: const InputDecoration(labelText: 'Attribute Name'), ), TextFormField( controller: _confirmationCodeController, - decoration: const InputDecoration( - labelText: 'Confirmation Code', - ), + decoration: const InputDecoration(labelText: 'Confirmation Code'), ), const SizedBox(height: 12), ElevatedButton( diff --git a/packages/auth/amplify_auth_cognito/example/lib/screens/sign_in.dart b/packages/auth/amplify_auth_cognito/example/lib/screens/sign_in.dart index cc706478f9..ac12e3e341 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/screens/sign_in.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/screens/sign_in.dart @@ -39,9 +39,7 @@ class _SignInWidgetState extends State { username: usernameController.text.trim(), password: passwordController.text.trim(), ); - widget.showResult( - 'Sign In Status = ${res.nextStep.signInStep}', - ); + widget.showResult('Sign In Status = ${res.nextStep.signInStep}'); widget.changeDisplay( res.isSignedIn ? 'SIGNED_IN' : 'SHOW_CONFIRM_SIGN_IN', ); @@ -186,16 +184,19 @@ class _SignInWidgetState extends State { } }); }, - items: [ - AuthProvider.google, - AuthProvider.facebook, - AuthProvider.amazon, - ].map>((AuthProvider value) { - return DropdownMenuItem( - value: value, - child: Text(value.toString()), - ); - }).toList(), + items: + [ + AuthProvider.google, + AuthProvider.facebook, + AuthProvider.amazon, + ].map>(( + AuthProvider value, + ) { + return DropdownMenuItem( + value: value, + child: Text(value.toString()), + ); + }).toList(), ), ], ), diff --git a/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attribute.dart b/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attribute.dart index 5f3ea91861..9f6e6b9384 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attribute.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attribute.dart @@ -31,40 +31,33 @@ class _UpdateUserAttributeScreenState extends State { void _showSuccess(String message) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - backgroundColor: Colors.green[800], - content: Text(message), - ), + SnackBar(backgroundColor: Colors.green[800], content: Text(message)), ); } void _showInfo(String message) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - backgroundColor: Colors.blue[800], - content: Text(message), - ), + SnackBar(backgroundColor: Colors.blue[800], content: Text(message)), ); } void _showError(String message) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - backgroundColor: Colors.red[900], - content: Text(message), - ), + SnackBar(backgroundColor: Colors.red[900], content: Text(message)), ); } Future _updateAttribute() async { try { final key = _keyController.text; - final isCustom = !CognitoUserAttributeKey.values - .map((value) => value.key) - .contains(key); - final userAttributeKey = isCustom - ? CognitoUserAttributeKey.custom(key) - : CognitoUserAttributeKey.parse(key); + final isCustom = + !CognitoUserAttributeKey.values + .map((value) => value.key) + .contains(key); + final userAttributeKey = + isCustom + ? CognitoUserAttributeKey.custom(key) + : CognitoUserAttributeKey.parse(key); final res = await Amplify.Auth.updateUserAttribute( userAttributeKey: userAttributeKey, value: _valueController.text, @@ -90,9 +83,7 @@ class _UpdateUserAttributeScreenState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Update Attribute'), - ), + appBar: AppBar(title: const Text('Update Attribute')), body: Padding( padding: const EdgeInsets.all(16), child: ListView( @@ -101,15 +92,11 @@ class _UpdateUserAttributeScreenState extends State { TextFormField( controller: _keyController, enabled: _isNewAttribute, - decoration: const InputDecoration( - labelText: 'Attribute Name', - ), + decoration: const InputDecoration(labelText: 'Attribute Name'), ), TextFormField( controller: _valueController, - decoration: const InputDecoration( - labelText: 'Attribute Value', - ), + decoration: const InputDecoration(labelText: 'Attribute Value'), ), const SizedBox(height: 12), ElevatedButton( @@ -117,9 +104,10 @@ class _UpdateUserAttributeScreenState extends State { child: const Text('Update Attribute'), ), TextButton( - onPressed: () => context.push( - '/confirm-user-attribute/${_keyController.text.trim()}', - ), + onPressed: + () => context.push( + '/confirm-user-attribute/${_keyController.text.trim()}', + ), child: const Text('Confirm User Attribute'), ), ], diff --git a/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attributes.dart b/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attributes.dart index bf371daf94..6ab7ac1ac4 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attributes.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/screens/update_user_attributes.dart @@ -38,28 +38,19 @@ class _UpdateUserAttributesScreenState void _showSuccess(String message) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - backgroundColor: Colors.green[800], - content: Text(message), - ), + SnackBar(backgroundColor: Colors.green[800], content: Text(message)), ); } void _showInfo(String message) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - backgroundColor: Colors.blue[800], - content: Text(message), - ), + SnackBar(backgroundColor: Colors.blue[800], content: Text(message)), ); } void _showError(String message) { ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - backgroundColor: Colors.red[900], - content: Text(message), - ), + SnackBar(backgroundColor: Colors.red[900], content: Text(message)), ); } @@ -68,27 +59,29 @@ class _UpdateUserAttributesScreenState return; } try { - final attributes = _userAttributeControllers - .map( - (controller) => AuthUserAttribute( - userAttributeKey: CognitoUserAttributeKey.parse( - controller.keyController.text, - ), - value: controller.valueController.text, - ), - ) - .toList(); + final attributes = + _userAttributeControllers + .map( + (controller) => AuthUserAttribute( + userAttributeKey: CognitoUserAttributeKey.parse( + controller.keyController.text, + ), + value: controller.valueController.text, + ), + ) + .toList(); final res = await Amplify.Auth.updateUserAttributes( attributes: attributes, ); - final attributesWithConfirmation = res.entries - .where( - (element) => - element.value.nextStep.updateAttributeStep == - AuthUpdateAttributeStep.confirmAttributeWithCode, - ) - .map((element) => element.key) - .toList(); + final attributesWithConfirmation = + res.entries + .where( + (element) => + element.value.nextStep.updateAttributeStep == + AuthUpdateAttributeStep.confirmAttributeWithCode, + ) + .map((element) => element.key) + .toList(); if (attributesWithConfirmation.isNotEmpty) { _showInfo( 'Confirmation Code sent for attributes: ' @@ -120,9 +113,7 @@ class _UpdateUserAttributesScreenState @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Update Attributes'), - ), + appBar: AppBar(title: const Text('Update Attributes')), body: Padding( padding: const EdgeInsets.all(8), child: Form( @@ -173,10 +164,7 @@ class _UpdateUserAttributesScreenState children: [ IconButton( padding: EdgeInsets.zero, - icon: const Icon( - Icons.close, - size: 18, - ), + icon: const Icon(Icons.close, size: 18), onPressed: () => _removeAttribute(element), ), ], diff --git a/packages/auth/amplify_auth_cognito/example/lib/screens/view_user_attributes.dart b/packages/auth/amplify_auth_cognito/example/lib/screens/view_user_attributes.dart index f00f0ec154..f210412b5d 100644 --- a/packages/auth/amplify_auth_cognito/example/lib/screens/view_user_attributes.dart +++ b/packages/auth/amplify_auth_cognito/example/lib/screens/view_user_attributes.dart @@ -99,15 +99,17 @@ class _ViewUserAttributesScreenState extends State { return ListTile( title: Text(userAttributeKey.key), subtitle: Text(value), - trailing: userAttributeKey.readOnly - ? null - : IconButton( - icon: const Icon(Icons.edit), - onPressed: () => context.push( - '/update-user-attribute', - extra: userAttributeKey, + trailing: + userAttributeKey.readOnly + ? null + : IconButton( + icon: const Icon(Icons.edit), + onPressed: + () => context.push( + '/update-user-attribute', + extra: userAttributeKey, + ), ), - ), ); }, ), diff --git a/packages/auth/amplify_auth_cognito/example/pubspec.yaml b/packages/auth/amplify_auth_cognito/example/pubspec.yaml index fadb891bdb..65ad9f7bbb 100644 --- a/packages/auth/amplify_auth_cognito/example/pubspec.yaml +++ b/packages/auth/amplify_auth_cognito/example/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_api: any diff --git a/packages/auth/amplify_auth_cognito/example/test_driver/hosted_ui_test.dart b/packages/auth/amplify_auth_cognito/example/test_driver/hosted_ui_test.dart index d2b1f71215..e6d91ce730 100644 --- a/packages/auth/amplify_auth_cognito/example/test_driver/hosted_ui_test.dart +++ b/packages/auth/amplify_auth_cognito/example/test_driver/hosted_ui_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('windows || mac-os || linux') +library; import 'package:amplify_api_dart/amplify_api_dart.dart'; import 'package:amplify_auth_cognito_example/amplifyconfiguration.dart'; @@ -79,9 +80,9 @@ void main() { { final credentials = await application.getCredentials(); check( - because: 'User should be signed out without redirecting', - credentials, - ) + because: 'User should be signed out without redirecting', + credentials, + ) ..has((creds) => creds.awsCredentials, 'awsCredentials').isNull() ..has((creds) => creds.identityId, 'identityId').isNull() ..has((creds) => creds.userPoolTokens, 'userPoolTokens').isNull(); diff --git a/packages/auth/amplify_auth_cognito/example/test_driver/integration_test.dart b/packages/auth/amplify_auth_cognito/example/test_driver/integration_test.dart index 4c063aba98..1e904607f2 100644 --- a/packages/auth/amplify_auth_cognito/example/test_driver/integration_test.dart +++ b/packages/auth/amplify_auth_cognito/example/test_driver/integration_test.dart @@ -5,6 +5,4 @@ import 'package:integration_test/integration_test_driver.dart'; // Required for running integration tests in the browser // https://docs.flutter.dev/cookbook/testing/integration/introduction#5b-web -Future main() => integrationDriver( - timeout: const Duration(minutes: 90), - ); +Future main() => integrationDriver(timeout: const Duration(minutes: 90)); diff --git a/packages/auth/amplify_auth_cognito/lib/amplify_auth_cognito.dart b/packages/auth/amplify_auth_cognito/lib/amplify_auth_cognito.dart index 27c7e86a42..42c238b45c 100644 --- a/packages/auth/amplify_auth_cognito/lib/amplify_auth_cognito.dart +++ b/packages/auth/amplify_auth_cognito/lib/amplify_auth_cognito.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Amplify Auth Cognito -library amplify_auth_cognito; +library; export 'package:amplify_auth_cognito_dart/amplify_auth_cognito_dart.dart' hide AmplifyAuthCognitoDart; diff --git a/packages/auth/amplify_auth_cognito/lib/src/auth_plugin_impl.dart b/packages/auth/amplify_auth_cognito/lib/src/auth_plugin_impl.dart index 15cb606344..18614b53cd 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/auth_plugin_impl.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/auth_plugin_impl.dart @@ -35,13 +35,12 @@ class AmplifyAuthCognito extends AmplifyAuthCognitoDart with AWSDebuggable { /// To change the default behavior of credential storage, /// provide a [SecureStorageFactory] value. If no value is provided, /// storage will be configured with default [AmplifySecureStorageConfig] values. - AmplifyAuthCognito({ - SecureStorageFactory? secureStorageFactory, - }) : super( - secureStorageFactory: - secureStorageFactory ?? AmplifySecureStorage.factoryFrom(), - hostedUiPlatformFactory: HostedUiPlatformImpl.new, - ); + AmplifyAuthCognito({SecureStorageFactory? secureStorageFactory}) + : super( + secureStorageFactory: + secureStorageFactory ?? AmplifySecureStorage.factoryFrom(), + hostedUiPlatformFactory: HostedUiPlatformImpl.new, + ); /// A plugin key which can be used with `Amplify.Auth.getPlugin` to retrieve /// a Cognito-specific Auth category interface. @@ -85,10 +84,7 @@ class AmplifyAuthCognito extends AmplifyAuthCognitoDart with AWSDebuggable { FlutterEndpointInfoStoreManager(), ); - await super.configure( - config: config, - authProviderRepo: authProviderRepo, - ); + await super.configure(config: config, authProviderRepo: authProviderRepo); } @override @@ -112,10 +108,7 @@ class AmplifyAuthCognito extends AmplifyAuthCognitoDart with AWSDebuggable { userAttributes: options.userAttributes, pluginOptions: CognitoSignUpPluginOptions( clientMetadata: pluginOptions.clientMetadata, - validationData: { - ...pluginOptions.validationData, - ...?validationData, - }, + validationData: {...pluginOptions.validationData, ...?validationData}, ), ); return super.signUp( diff --git a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_android.dart b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_android.dart index 19e59eec2d..2c182b2b3c 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_android.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_android.dart @@ -19,7 +19,7 @@ import 'package:amplify_core/src/config/amplify_outputs/auth/auth_outputs.dart'; class LegacyCredentialProviderAndroid implements LegacyCredentialProvider { /// {@macro amplify_auth_cognito.legacy_android_credential_provider} LegacyCredentialProviderAndroid(CognitoAuthStateMachine stateMachine) - : _stateMachine = stateMachine; + : _stateMachine = stateMachine; final CognitoAuthStateMachine _stateMachine; @override @@ -35,9 +35,7 @@ class LegacyCredentialProviderAndroid implements LegacyCredentialProvider { } @override - Future deleteLegacyCredentials( - AuthOutputs authOutputs, - ) { + Future deleteLegacyCredentials(AuthOutputs authOutputs) { final bridge = _stateMachine.expect(); return bridge.clearLegacyCredentials(); } @@ -50,10 +48,7 @@ class LegacyCredentialProviderAndroid implements LegacyCredentialProvider { final userPoolId = authOutputs.userPoolId; if (userPoolId == null) return null; final bridge = _stateMachine.expect(); - final device = await bridge.fetchLegacyDeviceSecrets( - username, - userPoolId, - ); + final device = await bridge.fetchLegacyDeviceSecrets(username, userPoolId); return device?.toLegacyDeviceDetails(); } @@ -65,9 +60,6 @@ class LegacyCredentialProviderAndroid implements LegacyCredentialProvider { final userPoolId = authOutputs.userPoolId; if (userPoolId == null) return; final bridge = _stateMachine.expect(); - return bridge.deleteLegacyDeviceSecrets( - username, - userPoolId, - ); + return bridge.deleteLegacyDeviceSecrets(username, userPoolId); } } diff --git a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_impl.dart b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_impl.dart index 113eaea679..35fb2b680e 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_impl.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_impl.dart @@ -22,7 +22,7 @@ import 'package:amplify_core/src/config/amplify_outputs/auth/auth_outputs.dart'; class LegacyCredentialProviderImpl implements LegacyCredentialProvider { /// {@macro amplify_auth_cognito.legacy_credential_provider_impl} LegacyCredentialProviderImpl(CognitoAuthStateMachine stateMachine) - : _stateMachine = stateMachine; + : _stateMachine = stateMachine; final CognitoAuthStateMachine _stateMachine; late final LegacyCredentialProvider? _instance = () { @@ -41,19 +41,13 @@ class LegacyCredentialProviderImpl implements LegacyCredentialProvider { AuthOutputs authOutputs, ) async { if (_instance == null) return null; - return _instance.fetchLegacyCredentials( - authOutputs, - ); + return _instance.fetchLegacyCredentials(authOutputs); } @override - Future deleteLegacyCredentials( - AuthOutputs authOutputs, - ) async { + Future deleteLegacyCredentials(AuthOutputs authOutputs) async { if (_instance == null) return; - return _instance.deleteLegacyCredentials( - authOutputs, - ); + return _instance.deleteLegacyCredentials(authOutputs); } @override @@ -62,10 +56,7 @@ class LegacyCredentialProviderImpl implements LegacyCredentialProvider { AuthOutputs authOutputs, ) async { if (_instance == null) return null; - return _instance.fetchLegacyDeviceSecrets( - username, - authOutputs, - ); + return _instance.fetchLegacyDeviceSecrets(username, authOutputs); } @override @@ -74,9 +65,6 @@ class LegacyCredentialProviderImpl implements LegacyCredentialProvider { AuthOutputs authOutputs, ) async { if (_instance == null) return; - return _instance.deleteLegacyDeviceSecrets( - username, - authOutputs, - ); + return _instance.deleteLegacyDeviceSecrets(username, authOutputs); } } diff --git a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_ios.dart b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_ios.dart index 0c388bd54b..a0a9d8be1a 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_ios.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_provider_ios.dart @@ -26,7 +26,7 @@ import 'package:async/async.dart'; class LegacyCredentialProviderIOS implements LegacyCredentialProvider { /// {@macro amplify_auth_cognito.legacy_ios_credential_provider} LegacyCredentialProviderIOS(CognitoAuthStateMachine stateMachine) - : _stateMachine = stateMachine; + : _stateMachine = stateMachine; final CognitoAuthStateMachine _stateMachine; @override @@ -57,9 +57,10 @@ class LegacyCredentialProviderIOS implements LegacyCredentialProvider { ); if (accessToken != null && refreshToken != null && idToken != null) { // TODO(Jordan-Nelson): fetch sign in method from keychain on iOS - final signInMethod = authOutputs.oauth != null - ? CognitoSignInMethod.hostedUi - : CognitoSignInMethod.default$; + final signInMethod = + authOutputs.oauth != null + ? CognitoSignInMethod.hostedUi + : CognitoSignInMethod.default$; userPoolTokens = CognitoUserPoolTokens( signInMethod: signInMethod, accessToken: JsonWebToken.parse(accessToken), @@ -74,9 +75,7 @@ class LegacyCredentialProviderIOS implements LegacyCredentialProvider { AWSCredentials? awsCredentials; final identityPoolId = authOutputs.identityPoolId; if (identityPoolId != null) { - final identityPoolStorage = await _getIdentityPoolStorage( - identityPoolId, - ); + final identityPoolStorage = await _getIdentityPoolStorage(identityPoolId); const identityPoolKeys = LegacyCognitoIdentityPoolKeys(); identityId = await identityPoolStorage.read( key: identityPoolKeys[LegacyCognitoIdentityPoolKey.identityId], @@ -123,9 +122,7 @@ class LegacyCredentialProviderIOS implements LegacyCredentialProvider { } @override - Future deleteLegacyCredentials( - AuthOutputs authOutputs, - ) async { + Future deleteLegacyCredentials(AuthOutputs authOutputs) async { final userPoolClientId = authOutputs.userPoolClientId; if (userPoolClientId != null) { final userPoolStorage = await _getUserPoolStorage(); @@ -148,8 +145,9 @@ class LegacyCredentialProviderIOS implements LegacyCredentialProvider { } if (authOutputs.identityPoolId != null) { - final identityPoolStorage = - await _getIdentityPoolStorage(authOutputs.identityPoolId!); + final identityPoolStorage = await _getIdentityPoolStorage( + authOutputs.identityPoolId!, + ); const identityPoolKeys = LegacyCognitoIdentityPoolKeys(); await identityPoolStorage.deleteMany([ identityPoolKeys[LegacyCognitoIdentityPoolKey.identityId], @@ -175,10 +173,7 @@ class LegacyCredentialProviderIOS implements LegacyCredentialProvider { ); final userPoolId = authOutputs.userPoolId; if (currentUserId == null || userPoolId == null) return null; - final keys = LegacyDeviceSecretKeys( - currentUserId, - userPoolId, - ); + final keys = LegacyDeviceSecretKeys(currentUserId, userPoolId); final deviceKey = await userPoolStorage.read( key: keys[LegacyDeviceSecretKey.id], ); @@ -246,8 +241,8 @@ class LegacyCredentialProviderIOS implements LegacyCredentialProvider { /// repository name on Android. SecureStorageInterface _getSecureStorageInstance(String namespace) { return _secureStorageInstances[namespace] ??= - // ignore: invalid_use_of_internal_member - AmplifySecureStorageDart( + // ignore: invalid_use_of_internal_member + AmplifySecureStorageDart( config: AmplifySecureStorageConfig.byNamespace(namespace: namespace), ); } diff --git a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_store_data_extension.dart b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_store_data_extension.dart index b6eda0b6b3..b5fd2c7114 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_store_data_extension.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_credential_store_data_extension.dart @@ -14,23 +14,24 @@ import 'package:amplify_core/amplify_core.dart'; extension LegacyCredentialStoreDataX on LegacyCredentialStoreData { /// {@macro amplify_auth_cognito.legacy_credential_store_data_extension} CredentialStoreData toCredentialStoreData() { - final awsCredentialsData = accessKeyId != null && secretAccessKey != null - ? AWSCredentials( - accessKeyId!, - secretAccessKey!, - sessionToken, - expirationMsSinceEpoch != null - ? DateTime.fromMillisecondsSinceEpoch(expirationMsSinceEpoch!) - : null, - ) - : null; + final awsCredentialsData = + accessKeyId != null && secretAccessKey != null + ? AWSCredentials( + accessKeyId!, + secretAccessKey!, + sessionToken, + expirationMsSinceEpoch != null + ? DateTime.fromMillisecondsSinceEpoch(expirationMsSinceEpoch!) + : null, + ) + : null; final userPoolTokensData = accessToken != null && refreshToken != null && idToken != null ? CognitoUserPoolTokens( - accessToken: JsonWebToken.parse(accessToken!), - refreshToken: refreshToken!, - idToken: JsonWebToken.parse(idToken!), - ) + accessToken: JsonWebToken.parse(accessToken!), + refreshToken: refreshToken!, + idToken: JsonWebToken.parse(idToken!), + ) : null; return CredentialStoreData( identityId: identityId, diff --git a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_ios_cognito_keys.dart b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_ios_cognito_keys.dart index f1479a35df..7f6f6d3c1c 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_ios_cognito_keys.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/credentials/legacy_ios_cognito_keys.dart @@ -7,7 +7,7 @@ /// - https://github.com/aws-amplify/aws-sdk-ios/blob/main/AWSCognitoIdentityProvider/AWSCognitoIdentityUserPool.m /// - https://github.com/aws-amplify/aws-sdk-ios/blob/main/AWSCore/Authentication/AWSCredentialsProvider.m @internal -library amplify_auth_cognito.credentials.legacy_ios_cognito_keys; +library; import 'dart:collection'; @@ -16,7 +16,7 @@ import 'package:meta/meta.dart'; /// Discrete keys stored for Legacy Cognito operations on iOS. enum LegacyCognitoKey { /// The ID of the user that is currently authenticated. - currentUser; + currentUser, } /// Discrete keys stored for Legacy Cognito User Pool operations on iOS. @@ -67,7 +67,7 @@ enum LegacyDeviceSecretKey { /// Discrete keys stored for Legacy ASF on iOS. enum LegacyAsfDeviceKey { /// The advanced security feature (ASF) device identifier. - id; + id, } /// {@template amplify_auth_cognito.legacy_cognito_identity_pool_keys} diff --git a/packages/auth/amplify_auth_cognito/lib/src/credentials/secure_storage_extension.dart b/packages/auth/amplify_auth_cognito/lib/src/credentials/secure_storage_extension.dart index 9c9f8809fd..ce3b941154 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/credentials/secure_storage_extension.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/credentials/secure_storage_extension.dart @@ -9,10 +9,6 @@ import 'package:meta/meta.dart'; extension SecureStorageInterfaceX on SecureStorageInterface { /// Delete all key-value pairs from storage Future deleteMany(Iterable keys) { - return Future.wait( - keys.map( - (key) async => delete(key: key), - ), - ); + return Future.wait(keys.map((key) async => delete(key: key))); } } diff --git a/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_flutter.dart b/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_flutter.dart index 091770841b..c16063c89d 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_flutter.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_flutter.dart @@ -58,7 +58,9 @@ class HostedUiPlatformImpl extends io.HostedUiPlatformImpl { if (!_isMobile) { return super.signInRedirectUri; } - return authOutputs.oauth!.redirectSignInUri.map(Uri.parse).firstWhere( + return authOutputs.oauth!.redirectSignInUri + .map(Uri.parse) + .firstWhere( (uri) => uri.scheme != 'https' && uri.scheme != 'http', orElse: () => _noSuitableRedirect(signIn: true), ); @@ -69,7 +71,9 @@ class HostedUiPlatformImpl extends io.HostedUiPlatformImpl { if (!_isMobile) { return super.signOutRedirectUri; } - return authOutputs.oauth!.redirectSignOutUri.map(Uri.parse).firstWhere( + return authOutputs.oauth!.redirectSignOutUri + .map(Uri.parse) + .firstWhere( (uri) => uri.scheme != 'https' && uri.scheme != 'http', orElse: () => _noSuitableRedirect(signIn: false), ); diff --git a/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart b/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart index 68fb95952d..399ec091ce 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart @@ -19,9 +19,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { } @override - Future signOut({ - required CognitoSignInWithWebUIPluginOptions options, - }) { + Future signOut({required CognitoSignInWithWebUIPluginOptions options}) { throw UnimplementedError(); } diff --git a/packages/auth/amplify_auth_cognito/lib/src/native_auth_plugin.g.dart b/packages/auth/amplify_auth_cognito/lib/src/native_auth_plugin.g.dart index 9cd7791034..544467aeb0 100644 --- a/packages/auth/amplify_auth_cognito/lib/src/native_auth_plugin.g.dart +++ b/packages/auth/amplify_auth_cognito/lib/src/native_auth_plugin.g.dart @@ -18,8 +18,11 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -163,12 +166,7 @@ class LegacyDeviceDetailsSecret { String? asfDeviceId; Object encode() { - return [ - deviceKey, - deviceGroupKey, - devicePassword, - asfDeviceId, - ]; + return [deviceKey, deviceGroupKey, devicePassword, asfDeviceId]; } static LegacyDeviceDetailsSecret decode(Object result) { @@ -234,23 +232,27 @@ abstract class NativeAuthPlugin { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthPlugin.exchange$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthPlugin.exchange$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.amplify_auth_cognito.NativeAuthPlugin.exchange was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.amplify_auth_cognito.NativeAuthPlugin.exchange was null.', + ); final List args = (message as List?)!; final Map? arg_params = (args[0] as Map?)?.cast(); - assert(arg_params != null, - 'Argument for dev.flutter.pigeon.amplify_auth_cognito.NativeAuthPlugin.exchange was null, expected non-null Map.'); + assert( + arg_params != null, + 'Argument for dev.flutter.pigeon.amplify_auth_cognito.NativeAuthPlugin.exchange was null, expected non-null Map.', + ); try { api.exchange(arg_params!); return wrapResponse(empty: true); @@ -258,7 +260,8 @@ abstract class NativeAuthPlugin { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -270,11 +273,12 @@ class NativeAuthBridge { /// Constructor for [NativeAuthBridge]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NativeAuthBridge( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NativeAuthBridge({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -286,25 +290,27 @@ class NativeAuthBridge { /// /// If [preferPrivateSession] is `true`, do not persist session cookies. Future> signInWithUrl( - String url, - String callbackUrlScheme, - bool preferPrivateSession, - String? browserPackageName) async { + String url, + String callbackUrlScheme, + bool preferPrivateSession, + String? browserPackageName, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.signInWithUrl$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([ - url, - callbackUrlScheme, - preferPrivateSession, - browserPackageName - ]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([ + url, + callbackUrlScheme, + preferPrivateSession, + browserPackageName, + ]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -326,23 +332,28 @@ class NativeAuthBridge { /// Sign out by presenting [url] and waiting for a response to a URL with /// [callbackUrlScheme]. - Future signOutWithUrl(String url, String callbackUrlScheme, - bool preferPrivateSession, String? browserPackageName) async { + Future signOutWithUrl( + String url, + String callbackUrlScheme, + bool preferPrivateSession, + String? browserPackageName, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.signOutWithUrl$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([ - url, - callbackUrlScheme, - preferPrivateSession, - browserPackageName - ]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([ + url, + callbackUrlScheme, + preferPrivateSession, + browserPackageName, + ]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -362,10 +373,10 @@ class NativeAuthBridge { 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.getValidationData$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -393,10 +404,10 @@ class NativeAuthBridge { 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.getContextData$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -422,10 +433,10 @@ class NativeAuthBridge { 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.getBundleId$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -448,17 +459,20 @@ class NativeAuthBridge { /// Fetch legacy credentials stored by native SDKs. Future getLegacyCredentials( - String? identityPoolId, String? appClientId) async { + String? identityPoolId, + String? appClientId, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.getLegacyCredentials$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([identityPoolId, appClientId]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([identityPoolId, appClientId]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -483,10 +497,10 @@ class NativeAuthBridge { 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.clearLegacyCredentials$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -504,17 +518,20 @@ class NativeAuthBridge { /// Fetch legacy device secrets stored by native SDKs. Future fetchLegacyDeviceSecrets( - String username, String userPoolId) async { + String username, + String userPoolId, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.fetchLegacyDeviceSecrets$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([username, userPoolId]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([username, userPoolId]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -530,17 +547,20 @@ class NativeAuthBridge { /// Clears the legacy device secrets. Future deleteLegacyDeviceSecrets( - String username, String userPoolId) async { + String username, + String userPoolId, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_auth_cognito.NativeAuthBridge.deleteLegacyDeviceSecrets$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([username, userPoolId]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([username, userPoolId]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/packages/auth/amplify_auth_cognito/pigeons/native_auth_plugin.dart b/packages/auth/amplify_auth_cognito/pigeons/native_auth_plugin.dart index 97904c58f7..6ce2e518a7 100644 --- a/packages/auth/amplify_auth_cognito/pigeons/native_auth_plugin.dart +++ b/packages/auth/amplify_auth_cognito/pigeons/native_auth_plugin.dart @@ -15,7 +15,7 @@ swiftOut: 'darwin/classes/pigeons/messages.g.swift', ), ) -library native_auth_plugin; +library; import 'package:pigeon/pigeon.dart'; @@ -79,10 +79,7 @@ abstract class NativeAuthBridge { /// Clears the legacy device secrets. @async - void deleteLegacyDeviceSecrets( - String username, - String userPoolId, - ); + void deleteLegacyDeviceSecrets(String username, String userPoolId); } class NativeUserContextData { diff --git a/packages/auth/amplify_auth_cognito/pubspec.yaml b/packages/auth/amplify_auth_cognito/pubspec.yaml index 5bec836512..7cc0649c6c 100644 --- a/packages/auth/amplify_auth_cognito/pubspec.yaml +++ b/packages/auth/amplify_auth_cognito/pubspec.yaml @@ -1,13 +1,13 @@ name: amplify_auth_cognito description: The Amplify Flutter Auth category plugin using the AWS Cognito provider. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/auth/amplify_auth_cognito issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" # Helps `pana` since we do not use Flutter plugins for most platforms platforms: @@ -19,23 +19,23 @@ platforms: web: dependencies: - amplify_analytics_pinpoint: ">=2.6.1 <2.7.0" - amplify_analytics_pinpoint_dart: ">=0.4.8 <0.5.0" - amplify_auth_cognito_dart: ">=0.11.9 <0.12.0" - amplify_core: ">=2.6.1 <2.7.0" - amplify_flutter: ">=2.6.1 <2.7.0" - amplify_secure_storage: ">=0.5.8 <0.6.0" + amplify_analytics_pinpoint: ">=2.6.2 <2.7.0" + amplify_analytics_pinpoint_dart: ">=0.4.9 <0.5.0" + amplify_auth_cognito_dart: ">=0.11.10 <0.12.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_flutter: ">=2.6.2 <2.7.0" + amplify_secure_storage: ">=0.5.9 <0.6.0" async: ^2.10.0 flutter: sdk: flutter - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" plugin_platform_interface: ^2.0.0 dev_dependencies: amplify_auth_cognito_test: path: ../amplify_auth_cognito_test - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" flutter_test: sdk: flutter pigeon: ^22.6.2 diff --git a/packages/auth/amplify_auth_cognito/test/hosted_ui_platform_flutter_test.dart b/packages/auth/amplify_auth_cognito/test/hosted_ui_platform_flutter_test.dart index 3ee187f4f9..b770699751 100644 --- a/packages/auth/amplify_auth_cognito/test/hosted_ui_platform_flutter_test.dart +++ b/packages/auth/amplify_auth_cognito/test/hosted_ui_platform_flutter_test.dart @@ -25,14 +25,16 @@ void main() { setUp(() async { secureStorage = MockSecureStorage(); - dependencyManager = DependencyManager() - ..addInstance(mockConfig.auth!) - ..addInstance(secureStorage) - ..addInstance(ThrowingNativeBridge()); - plugin = AmplifyAuthCognito() - ..stateMachine = CognitoAuthStateMachine( - dependencyManager: dependencyManager, - ); + dependencyManager = + DependencyManager() + ..addInstance(mockConfig.auth!) + ..addInstance(secureStorage) + ..addInstance(ThrowingNativeBridge()); + plugin = + AmplifyAuthCognito() + ..stateMachine = CognitoAuthStateMachine( + dependencyManager: dependencyManager, + ); plugin.stateMachine.addBuilder( HostedUiPlatformImpl.new, ); @@ -50,13 +52,12 @@ void main() { addTearDown(() => debugDefaultTargetPlatformOverride = null); final expectation = expectLater( - plugin.signInWithWebUI( - provider: AuthProvider.cognito, - ), + plugin.signInWithWebUI(provider: AuthProvider.cognito), throwsA(isA()), ); - final hostedUiMachine = - plugin.stateMachine.expect(HostedUiStateMachine.type); + final hostedUiMachine = plugin.stateMachine.expect( + HostedUiStateMachine.type, + ); expect( hostedUiMachine.stream, emitsInOrder([ diff --git a/packages/auth/amplify_auth_cognito_dart/CHANGELOG.md b/packages/auth/amplify_auth_cognito_dart/CHANGELOG.md index d04235b8cf..ced0cadf3a 100644 --- a/packages/auth/amplify_auth_cognito_dart/CHANGELOG.md +++ b/packages/auth/amplify_auth_cognito_dart/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.11.10 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.11.9 - Minor bug fixes and improvements diff --git a/packages/auth/amplify_auth_cognito_dart/example/bin/example.dart b/packages/auth/amplify_auth_cognito_dart/example/bin/example.dart index 858d3aa65e..6fc0fc2e73 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/bin/example.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/bin/example.dart @@ -14,13 +14,13 @@ import 'package:qr/qr.dart'; Future main(List args) async { AWSLogger().logLevel = LogLevel.debug; - final argParser = ArgParser() - ..addOption( - 'environment', - abbr: 'e', - help: 'The Amplify environment to configure', - defaultsTo: 'main', - ); + final argParser = + ArgParser()..addOption( + 'environment', + abbr: 'e', + help: 'The Amplify environment to configure', + defaultsTo: 'main', + ); final argResults = argParser.parse(args); final environmentName = argResults['environment'] as String; @@ -48,10 +48,7 @@ Future main(List args) async { final password = prompt('Enter your password: '); stdout.writeln('Logging in...'); try { - var res = await signIn( - username: username, - password: password, - ); + var res = await signIn(username: username, password: password); while (!res.isSignedIn) { res = await _processSignInResult( res, @@ -135,8 +132,9 @@ Future _processSignInResult( switch (signInStep) { case AuthSignInStep.continueSignInWithMfaSelection: while (true) { - final smsOrTotp = - prompt('Which MFA method would you prefer (SMS/TOTP)? '); + final smsOrTotp = prompt( + 'Which MFA method would you prefer (SMS/TOTP)? ', + ); if (MfaType.values .map((t) => t.name) .contains(smsOrTotp.toLowerCase())) { @@ -144,8 +142,9 @@ Future _processSignInResult( } } case AuthSignInStep.continueSignInWithTotpSetup: - final setupUri = - nextStep.totpSetupDetails!.getSetupUri(appName: 'AuthExample'); + final setupUri = nextStep.totpSetupDetails!.getSetupUri( + appName: 'AuthExample', + ); final qrCode = QrCode.fromData( data: setupUri.toString(), errorCorrectLevel: QrErrorCorrectLevel.L, @@ -158,12 +157,12 @@ Future _processSignInResult( final mfaCode = prompt('Enter an MFA code to confirm registration: '); return confirmSignIn(mfaCode); case AuthSignInStep.confirmSignInWithTotpMfaCode: - final mfaCode = prompt( - switch (nextStep.codeDeliveryDetails?.destination) { - final deviceName? => 'Enter an MFA code (sent to "$deviceName"): ', - _ => 'Enter an MFA code (sent to registered authenticator app): ', - }, - ); + final mfaCode = prompt(switch (nextStep + .codeDeliveryDetails + ?.destination) { + final deviceName? => 'Enter an MFA code (sent to "$deviceName"): ', + _ => 'Enter an MFA code (sent to registered authenticator app): ', + }); return confirmSignIn(mfaCode); case AuthSignInStep.confirmSignInWithSmsMfaCode: case AuthSignInStep.confirmSignInWithCustomChallenge: @@ -178,10 +177,7 @@ Future _processSignInResult( userAttributes[missingAttribute] = attributeValue; } final newPassword = prompt('Enter your new password: '); - return confirmSignIn( - newPassword, - userAttributes: userAttributes, - ); + return confirmSignIn(newPassword, userAttributes: userAttributes); case AuthSignInStep.resetPassword: final result = await resetPassword(username: username); stdout diff --git a/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_test.dart b/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_test.dart index 27f37175af..67b0f85ed6 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_test.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_test.dart @@ -25,14 +25,11 @@ Future runApp() async { '--port=$chromedriverPort', ]); } - final application = await manager.spawnBackgroundInTest( - 'dart', - ['integration_test/hosted_ui.dart'], - ); + final application = await manager.spawnBackgroundInTest('dart', [ + 'integration_test/hosted_ui.dart', + ]); await application.stdout.first; // Wait for server to connect. - return HostedUiClient.connect( - amplifyEnvironments['hosted-ui']!, - ); + return HostedUiClient.connect(amplifyEnvironments['hosted-ui']!); } /// Tests Hosted UI on VM by driving `hosted_ui.dart` via an RPC server. @@ -42,65 +39,61 @@ Future runApp() async { /// dart test integration_test/hosted_ui_test.dart /// ``` void main() { - group( - 'HostedUI', - () { - group('VM', () { - late HostedUiClient application; - late WebDriver driver; - late String username; - late String password; + group('HostedUI', () { + group('VM', () { + late HostedUiClient application; + late WebDriver driver; + late String username; + late String password; - setUp(() async { - application = await runApp(); - addTearDown(application.close); + setUp(() async { + application = await runApp(); + addTearDown(application.close); - await Amplify.configure(jsonEncode(config)); - addTearDown(Amplify.reset); + await Amplify.configure(jsonEncode(config)); + addTearDown(Amplify.reset); - username = generateUsername(); - password = generatePassword(); + username = generateUsername(); + password = generatePassword(); - logger.debug('Creating user $username...'); - await adminCreateUser(username, password, autoConfirm: true); - addTearDown(() => adminDeleteUser(username)); + logger.debug('Creating user $username...'); + await adminCreateUser(username, password, autoConfirm: true); + addTearDown(() => adminDeleteUser(username)); - driver = await createWebDriver(); - addTearDown(driver.quit); - }); + driver = await createWebDriver(); + addTearDown(driver.quit); + }); - test('sign in / sign out', () async { - // Launch Hosted UI - final signInUrl = await application.signInWithWebUI(); - logger.info('Launching URL: $signInUrl'); - await driver.get(signInUrl); + test('sign in / sign out', () async { + // Launch Hosted UI + final signInUrl = await application.signInWithWebUI(); + logger.info('Launching URL: $signInUrl'); + await driver.get(signInUrl); - await driver.signInCognito(username: username, password: password); - { - final credentials = await application.getCredentials(); - check( - because: 'User should be logged in after redirect', - credentials.userPoolTokens, - ).isNotNull(); - } + await driver.signInCognito(username: username, password: password); + { + final credentials = await application.getCredentials(); + check( + because: 'User should be logged in after redirect', + credentials.userPoolTokens, + ).isNotNull(); + } - final signOutUrl = await application.signOutWithWebUI(); - logger.info('Launching URL: $signOutUrl'); - await driver.get(signOutUrl); - { - final credentials = await application.getCredentials(); + final signOutUrl = await application.signOutWithWebUI(); + logger.info('Launching URL: $signOutUrl'); + await driver.get(signOutUrl); + { + final credentials = await application.getCredentials(); - check( + check( because: 'User should be signed out without redirecting', credentials, ) - ..has((creds) => creds.awsCredentials, 'awsCredentials').isNull() - ..has((creds) => creds.identityId, 'identityId').isNull() - ..has((creds) => creds.userPoolTokens, 'userPoolTokens').isNull(); - } - }); + ..has((creds) => creds.awsCredentials, 'awsCredentials').isNull() + ..has((creds) => creds.identityId, 'identityId').isNull() + ..has((creds) => creds.userPoolTokens, 'userPoolTokens').isNull(); + } }); - }, - timeout: const Timeout(Duration(minutes: 10)), - ); + }); + }, timeout: const Timeout(Duration(minutes: 10))); } diff --git a/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_web_test.dart b/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_web_test.dart index ece679f1f9..53a46fe909 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_web_test.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/integration_test/hosted_ui_web_test.dart @@ -30,8 +30,8 @@ import 'common.dart'; final Uri applicationUri = Uri.parse('http://localhost:3000/'); final ProcessManager processManager = ProcessManager(); -final AWSHttpClient httpClient = AWSHttpClient() - ..supportedProtocols = SupportedProtocols.http1; +final AWSHttpClient httpClient = + AWSHttpClient()..supportedProtocols = SupportedProtocols.http1; enum Compiler { ddc('DDC'), @@ -44,7 +44,8 @@ enum Compiler { /// Kills all processes listening on [port]. Future killAll(int port) async { - final pipeline = Script('lsof -i :$port') | + final pipeline = + Script('lsof -i :$port') | Script('grep LISTEN') | Script(r"awk -F\ '{print $2}'"); await for (final pid in pipeline.lines.map(int.parse)) { @@ -85,11 +86,14 @@ Future buildAndRun(Compiler compiler) async { await Future.doWhile(() async { await Future.delayed(const Duration(seconds: 5)); try { - final response = await httpClient - .send( - AWSHttpRequest.get(Uri.parse('http://localhost:$servePort')), - ) - .response; + final response = + await httpClient + .send( + AWSHttpRequest.get( + Uri.parse('http://localhost:$servePort'), + ), + ) + .response; return response.statusCode != 200; } on Exception { return true; @@ -111,8 +115,9 @@ Future buildAndRun(Compiler compiler) async { // Serve the built website at `applicationUri` with appropriate fallbacks. // This is done so that, for example, `/auth` can be properly handled without // needing front-end routing or other tricks. - final handler = - const Pipeline().addMiddleware(logRequests()).addHandler((request) async { + final handler = const Pipeline().addMiddleware(logRequests()).addHandler(( + request, + ) async { if (request.method != 'GET') { return Response(HttpStatus.methodNotAllowed); } @@ -126,16 +131,10 @@ Future buildAndRun(Compiler compiler) async { final mimeType = mimeResolver.lookup(path); return Response.ok( await file.readAsBytes(), - headers: { - if (mimeType != null) 'Content-Type': mimeType, - }, + headers: {if (mimeType != null) 'Content-Type': mimeType}, ); }); - final fileServer = await io.serve( - handler, - 'localhost', - applicationUri.port, - ); + final fileServer = await io.serve(handler, 'localhost', applicationUri.port); addTearDown(() => fileServer.close(force: true)); } @@ -149,97 +148,89 @@ Future buildAndRun(Compiler compiler) async { Future main() async { AWSLogger().logLevel = LogLevel.verbose; - group( - 'Hosted UI', - () { - late WebDriver driver; - late String username; - late String password; + group('Hosted UI', () { + late WebDriver driver; + late String username; + late String password; - tearDownAll(() async { - await httpClient.close(); - }); + tearDownAll(() async { + await httpClient.close(); + }); - for (final compiler in Compiler.values) { - group(compiler.name, () { - setUp(() async { - await buildAndRun(compiler); + for (final compiler in Compiler.values) { + group(compiler.name, () { + setUp(() async { + await buildAndRun(compiler); - await Amplify.configure(jsonEncode(config)); - addTearDown(Amplify.reset); + await Amplify.configure(jsonEncode(config)); + addTearDown(Amplify.reset); - username = generateUsername(); - password = generatePassword(); + username = generateUsername(); + password = generatePassword(); - logger.debug('Creating user $username...'); - await adminCreateUser(username, password, autoConfirm: true); - addTearDown(() => adminDeleteUser(username)); + logger.debug('Creating user $username...'); + await adminCreateUser(username, password, autoConfirm: true); + addTearDown(() => adminDeleteUser(username)); - logger.info('Launching Chrome...'); - driver = await createWebDriver(); - addTearDown(driver.quit); + logger.info('Launching Chrome...'); + driver = await createWebDriver(); + addTearDown(driver.quit); - await driver.get(applicationUri); - }); + await driver.get(applicationUri); + }); - test('sign in/sign out', () async { - await driver.signIn(username: username, password: password); - { - final credentials = await driver.getCredentials(); + test('sign in/sign out', () async { + await driver.signIn(username: username, password: password); + { + final credentials = await driver.getCredentials(); - check( - because: 'User should be logged in after redirect', - credentials.userPoolTokens, - ).isNotNull(); - } + check( + because: 'User should be logged in after redirect', + credentials.userPoolTokens, + ).isNotNull(); + } - await driver.signOut(); - { - final credentials = await driver.getCredentials(); + await driver.signOut(); + { + final credentials = await driver.getCredentials(); - check( + check( because: 'User should be signed out after redirect', credentials, ) - ..has((creds) => creds.awsCredentials, 'awsCredentials') - .isNull() - ..has((creds) => creds.identityId, 'identityId').isNull() - ..has((creds) => creds.userPoolTokens, 'userPoolTokens') - .isNull(); - } - }); - - test('incomplete sign out', () async { - await driver.signIn(username: username, password: password); - { - final credentials = await driver.getCredentials(); - - check( - because: 'User should be logged in after redirect', - credentials.userPoolTokens, - ).isNotNull(); - } - - await driver.incompleteSignOut(); - { - final credentials = await driver.getCredentials(); - - check( + ..has((creds) => creds.awsCredentials, 'awsCredentials').isNull() + ..has((creds) => creds.identityId, 'identityId').isNull() + ..has((creds) => creds.userPoolTokens, 'userPoolTokens').isNull(); + } + }); + + test('incomplete sign out', () async { + await driver.signIn(username: username, password: password); + { + final credentials = await driver.getCredentials(); + + check( + because: 'User should be logged in after redirect', + credentials.userPoolTokens, + ).isNotNull(); + } + + await driver.incompleteSignOut(); + { + final credentials = await driver.getCredentials(); + + check( because: 'User should be signed out without redirecting', credentials, ) - ..has((creds) => creds.awsCredentials, 'awsCredentials') - .isNull() - ..has((creds) => creds.identityId, 'identityId').isNull() - ..has((creds) => creds.userPoolTokens, 'userPoolTokens') - .isNull(); - } - }); + ..has((creds) => creds.awsCredentials, 'awsCredentials').isNull() + ..has((creds) => creds.identityId, 'identityId').isNull() + ..has((creds) => creds.userPoolTokens, 'userPoolTokens').isNull(); + } }); - } - }, - timeout: const Timeout(Duration(minutes: 30)), - ); + }); + } + }, timeout: const Timeout(Duration(minutes: 30))); } extension on WebDriver { @@ -252,9 +243,7 @@ extension on WebDriver { await loginWithCognitoButton.click(); logger.info('REDIRECTING TO COGNITO'); - await locationChanges.firstWhere( - (uri) => uri.host != 'localhost', - ); + await locationChanges.firstWhere((uri) => uri.host != 'localhost'); logger.info('REDIRECTED TO COGNITO'); await signInCognito(username: username, password: password); logger.info('REDIRECTED AFTER SIGN IN'); @@ -265,8 +254,7 @@ extension on WebDriver { /// Performs an "incomplete sign out" on Web platform by mimicking a redirect /// which never completes. Future incompleteSignOut() async { - await driver.execute( - ''' + await driver.execute(''' const windowOpen = window.open; window.open = function(url, target) { // Restore functionality for future calls. @@ -280,9 +268,7 @@ window.open = function(url, target) { // this error will go unhandled and propagate to user code. throw new Error('Sign out aborted'); }; -''', - [], - ); +''', []); final currentUri = Uri.parse(await currentUrl); @@ -319,8 +305,9 @@ window.open = function(url, target) { /// Gets credentials from the browser via IndexedDB. Future getCredentials() async { - final json = await executeAsync( - r''' + final json = + await executeAsync( + r''' const [ databaseName, @@ -370,8 +357,9 @@ await new Promise((resolve, reject) => { callback(JSON.stringify(items)); ''', - [webDatabaseName], - ) as String; + [webDatabaseName], + ) + as String; final data = (jsonDecode(json) as Map).cast(); final keys = HostedUiKeys( @@ -399,8 +387,11 @@ callback(JSON.stringify(items)); data[awsKeys[CognitoIdentityPoolKey.secretAccessKey]]; final sessionToken = data[awsKeys[CognitoIdentityPoolKey.sessionToken]]; if (accessKeyId != null && secretAccessKey != null) { - awsCredentials = - AWSCredentials(accessKeyId, secretAccessKey, sessionToken); + awsCredentials = AWSCredentials( + accessKeyId, + secretAccessKey, + sessionToken, + ); } return CredentialStoreData( userPoolTokens: userPoolTokens, diff --git a/packages/auth/amplify_auth_cognito_dart/example/lib/common.dart b/packages/auth/amplify_auth_cognito_dart/example/lib/common.dart index b266f9ee7d..f93ae4b33a 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/lib/common.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/lib/common.dart @@ -37,15 +37,10 @@ Future signIn({ required String username, required String password, }) async { - return Amplify.Auth.signIn( - username: username, - password: password, - ); + return Amplify.Auth.signIn(username: username, password: password); } -Future hostedSignIn({ - AuthProvider? provider, -}) async { +Future hostedSignIn({AuthProvider? provider}) async { return Amplify.Auth.signInWithWebUI(provider: provider); } @@ -67,9 +62,7 @@ Future confirmSignIn( ); } -Future resetPassword({ - required String username, -}) { +Future resetPassword({required String username}) { return Amplify.Auth.resetPassword(username: username); } @@ -133,7 +126,7 @@ Future updateUserAttribute({ } Future> - updateUserAttributes({ +updateUserAttributes({ required List attributes, UpdateUserAttributesOptions? options, }) async { @@ -154,7 +147,7 @@ Future confirmUserAttribute({ } Future - sendUserAttributeVerificationCode({ +sendUserAttributeVerificationCode({ required AuthUserAttributeKey key, SendUserAttributeVerificationCodeOptions? options, }) async { @@ -166,9 +159,7 @@ Future Future signOut({required bool globalSignOut}) async { final plugin = Amplify.Auth.getPlugin(AmplifyAuthCognitoDart.pluginKey); - return plugin.signOut( - options: SignOutOptions(globalSignOut: globalSignOut), - ); + return plugin.signOut(options: SignOutOptions(globalSignOut: globalSignOut)); } Future deleteUser() async { diff --git a/packages/auth/amplify_auth_cognito_dart/example/pubspec.yaml b/packages/auth/amplify_auth_cognito_dart/example/pubspec.yaml index 089f80f5d1..c67ccccc37 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/pubspec.yaml +++ b/packages/auth/amplify_auth_cognito_dart/example/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_auth_cognito_dart: any diff --git a/packages/auth/amplify_auth_cognito_dart/example/web/components/app_component.dart b/packages/auth/amplify_auth_cognito_dart/example/web/components/app_component.dart index 90fe967c2d..d4fff908b7 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/web/components/app_component.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/web/components/app_component.dart @@ -38,16 +38,12 @@ enum AuthState { /// global state for the application class AppState { - AppState({ - this.authState = AuthState.loading, - }); + AppState({this.authState = AuthState.loading}); final AuthState authState; AppState copyWith({AuthState? authState}) { - return AppState( - authState: authState ?? this.authState, - ); + return AppState(authState: authState ?? this.authState); } } @@ -70,13 +66,11 @@ class AppComponent extends StatefulComponent { // ignore: invalid_use_of_internal_member Amplify.asyncConfig.then((_) { if (!appState.authState.isAuthenticatedRoute) { - setState( - (() { - appState = appState.copyWith( - authState: AuthState.authenticated, - ); - }), - ); + setState((() { + appState = appState.copyWith( + authState: AuthState.authenticated, + ); + })); } }); } @@ -92,16 +86,12 @@ class AppComponent extends StatefulComponent { } setState(() { - appState = appState.copyWith( - authState: startingAuthState, - ); + appState = appState.copyWith(authState: startingAuthState); }); } on AmplifyException catch (e) { setState(() { _error = e.message; - appState = appState.copyWith( - authState: AuthState.error, - ); + appState = appState.copyWith(authState: AuthState.error); }); } } @@ -117,9 +107,7 @@ class AppComponent extends StatefulComponent { switch (res.nextStep.signInStep) { case AuthSignInStep.confirmSignInWithSmsMfaCode: setState(() { - appState = appState.copyWith( - authState: AuthState.confirmSignin, - ); + appState = appState.copyWith(authState: AuthState.confirmSignin); }); return; case AuthSignInStep.confirmSignInWithNewPassword: @@ -133,20 +121,14 @@ class AppComponent extends StatefulComponent { break; } } - setState( - (() { - appState = appState.copyWith( - authState: AuthState.authenticated, - ); - }), - ); + setState((() { + appState = appState.copyWith(authState: AuthState.authenticated); + })); } Future _fetchUnAuthCredentials() async { final session = await fetchAuthSession(); - safePrint( - 'sessionToken : ${session.credentialsResult.value.sessionToken}', - ); + safePrint('sessionToken : ${session.credentialsResult.value.sessionToken}'); } @override @@ -162,39 +144,31 @@ class AppComponent extends StatefulComponent { case AuthState.authenticated: return UserComponent( navigateTo: (AuthState screen) { - setState( - (() { - appState = appState.copyWith( - authState: screen, - ); - }), - ); + setState((() { + appState = appState.copyWith(authState: screen); + })); }, ); case AuthState.login: return ColumnComponent( children: [ - LoginFormComponent( - onSuccess: _processSignInResult, - ), + LoginFormComponent(onSuccess: _processSignInResult), ButtonComponent( innerHtml: 'Forgot Password?', onClick: () { - setState( - (() { - appState = appState.copyWith( - authState: AuthState.forgotPassword, - ); - }), - ); + setState((() { + appState = appState.copyWith( + authState: AuthState.forgotPassword, + ); + })); }, ), if (config.auth!.oauth != null) ButtonComponent( id: 'hostedUiLogin', innerHtml: 'Login with Hosted UI', - onClick: () => - hostedSignIn(provider: AuthProvider.cognito), + onClick: + () => hostedSignIn(provider: AuthProvider.cognito), ), ButtonComponent( innerHtml: 'Fetch Guess Token', @@ -207,25 +181,21 @@ class AppComponent extends StatefulComponent { children: [ ForgotPasswordFormComponent( onSuccess: () { - setState( - (() { - appState = appState.copyWith( - authState: AuthState.confirmNewPassword, - ); - }), - ); + setState((() { + appState = appState.copyWith( + authState: AuthState.confirmNewPassword, + ); + })); }, ), ButtonComponent( innerHtml: 'Back to Login', onClick: () { - setState( - (() { - appState = appState.copyWith( - authState: AuthState.login, - ); - }), - ); + setState((() { + appState = appState.copyWith( + authState: AuthState.login, + ); + })); }, ), ], @@ -235,25 +205,21 @@ class AppComponent extends StatefulComponent { children: [ ConfirmNewPasswordFormComponent( onSuccess: () { - setState( - (() { - appState = appState.copyWith( - authState: AuthState.login, - ); - }), - ); + setState((() { + appState = appState.copyWith( + authState: AuthState.login, + ); + })); }, ), ButtonComponent( innerHtml: 'Back to Login', onClick: () { - setState( - (() { - appState = appState.copyWith( - authState: AuthState.login, - ); - }), - ); + setState((() { + appState = appState.copyWith( + authState: AuthState.login, + ); + })); }, ), ], @@ -263,46 +229,32 @@ class AppComponent extends StatefulComponent { case AuthState.manageAttributes: return UserAttributeComponent( onBack: () { - setState( - (() { - appState = appState.copyWith( - authState: AuthState.authenticated, - ); - }), - ); + setState((() { + appState = appState.copyWith( + authState: AuthState.authenticated, + ); + })); }, onConfirm: (appAuthState) { - setState( - (() { - appState = appState.copyWith( - authState: appAuthState, - ); - }), - ); + setState((() { + appState = appState.copyWith(authState: appAuthState); + })); }, ); case AuthState.confirmPhone: return ConfirmPhoneComponent( onNavigate: (appAuthState) { - setState( - (() { - appState = appState.copyWith( - authState: appAuthState, - ); - }), - ); + setState((() { + appState = appState.copyWith(authState: appAuthState); + })); }, ); case AuthState.confirmEmail: return ConfirmEmailComponent( onNavigate: (appAuthState) { - setState( - (() { - appState = appState.copyWith( - authState: appAuthState, - ); - }), - ); + setState((() { + appState = appState.copyWith(authState: appAuthState); + })); }, ); case AuthState.changePassword: diff --git a/packages/auth/amplify_auth_cognito_dart/example/web/components/attribute_component.dart b/packages/auth/amplify_auth_cognito_dart/example/web/components/attribute_component.dart index 05a88990fa..6b3049944f 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/web/components/attribute_component.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/web/components/attribute_component.dart @@ -11,9 +11,7 @@ import 'app_component.dart'; class UserAttributeComponent extends StatefulComponent { UserAttributeComponent({required this.onBack, required this.onConfirm}); - final void Function( - AuthState authState, - ) onConfirm; + final void Function(AuthState authState) onConfirm; final void Function() onBack; String? _errorText; @@ -39,7 +37,8 @@ class UserAttributeComponent extends StatefulComponent { labelText: attr.userAttributeKey.toString(), onChanged: (value) { _modifiedAttributes[attr.userAttributeKey - .toCognitoUserAttributeKey()] = value ?? ''; + .toCognitoUserAttributeKey()] = + value ?? ''; }, ), ); @@ -58,9 +57,7 @@ class UserAttributeComponent extends StatefulComponent { value: _modifiedAttributes.entries.first.value, options: const UpdateUserAttributeOptions( pluginOptions: CognitoUpdateUserAttributePluginOptions( - clientMetadata: { - 'method': 'updateUserAttribute', - }, + clientMetadata: {'method': 'updateUserAttribute'}, ), ), ); @@ -85,9 +82,7 @@ class UserAttributeComponent extends StatefulComponent { attributes: List.from(_modifiedAttributes.entries), options: const UpdateUserAttributesOptions( pluginOptions: CognitoUpdateUserAttributesPluginOptions( - clientMetadata: { - 'method': 'updateUserAttributes', - }, + clientMetadata: {'method': 'updateUserAttributes'}, ), ), ); @@ -115,13 +110,7 @@ class UserAttributeComponent extends StatefulComponent { children: [ if (_errorText != null) TextComponent(_errorText!), ButtonComponent(innerHtml: 'Back', onClick: onBack), - FormComponent( - children: [ - ColumnComponent( - children: _attributeFields, - ), - ], - ), + FormComponent(children: [ColumnComponent(children: _attributeFields)]), ButtonComponent(innerHtml: 'Submit', onClick: _save), ], ); diff --git a/packages/auth/amplify_auth_cognito_dart/example/web/components/change_password_component.dart b/packages/auth/amplify_auth_cognito_dart/example/web/components/change_password_component.dart index 93d3d9b886..eada2a9398 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/web/components/change_password_component.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/web/components/change_password_component.dart @@ -30,10 +30,7 @@ class ChangePasswordComponent extends StatefulComponent { } try { - await changePassword( - oldPassword: oldPassword, - newPassword: newPassword, - ); + await changePassword(oldPassword: oldPassword, newPassword: newPassword); onSuccess(); } on AmplifyException catch (e) { setState(() { diff --git a/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_attribute_component.dart b/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_attribute_component.dart index 5c42d065a3..df749e6b68 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_attribute_component.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_attribute_component.dart @@ -25,9 +25,7 @@ abstract class ConfirmAttributeComponent extends StatefulComponent { key: key, options: const SendUserAttributeVerificationCodeOptions( pluginOptions: CognitoSendUserAttributeVerificationCodePluginOptions( - clientMetadata: { - 'method': 'sendUserAttributeVerificationCode', - }, + clientMetadata: {'method': 'sendUserAttributeVerificationCode'}, ), ), ); @@ -35,10 +33,7 @@ abstract class ConfirmAttributeComponent extends StatefulComponent { Future _confirm() async { try { - await confirmUserAttribute( - key: key, - confirmationCode: _confirmationCode, - ); + await confirmUserAttribute(key: key, confirmationCode: _confirmationCode); onNavigate(AuthState.manageAttributes); } on AuthException catch (e) { setState(() { diff --git a/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_sign_in_component.dart b/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_sign_in_component.dart index f69d1d41d7..384227bc5b 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_sign_in_component.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/web/components/confirm_sign_in_component.dart @@ -6,9 +6,7 @@ import 'package:cognito_example/common.dart'; import 'package:example_common/example_common.dart'; class ConfirmSignInComponent extends StatefulComponent { - ConfirmSignInComponent({ - required this.onSuccess, - }); + ConfirmSignInComponent({required this.onSuccess}); final void Function(SignInResult) onSuccess; diff --git a/packages/auth/amplify_auth_cognito_dart/example/web/components/login_form_component.dart b/packages/auth/amplify_auth_cognito_dart/example/web/components/login_form_component.dart index 7d51efd049..1018c4b33f 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/web/components/login_form_component.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/web/components/login_form_component.dart @@ -31,10 +31,7 @@ class LoginFormComponent extends StatefulComponent { } try { - final res = await signIn( - username: username, - password: password, - ); + final res = await signIn(username: username, password: password); onSuccess(res); } on AmplifyException catch (e) { setState(() { diff --git a/packages/auth/amplify_auth_cognito_dart/example/web/components/user_component.dart b/packages/auth/amplify_auth_cognito_dart/example/web/components/user_component.dart index ab72cc21cf..cadcf09a26 100644 --- a/packages/auth/amplify_auth_cognito_dart/example/web/components/user_component.dart +++ b/packages/auth/amplify_auth_cognito_dart/example/web/components/user_component.dart @@ -12,9 +12,7 @@ import 'package:example_common/example_common.dart'; import 'app_component.dart'; class UserComponent extends StatefulComponent { - UserComponent({ - required this.navigateTo, - }); + UserComponent({required this.navigateTo}); static final logger = AWSLogger().createChild('UserComponent'); @@ -42,7 +40,9 @@ class UserComponent extends StatefulComponent { 'credential session', session.credentialsResult.value.sessionToken ?? 'null', ], - ...devices.map((device) => device.asCognitoDevice).map( + ...devices + .map((device) => device.asCognitoDevice) + .map( (device) => [ 'Device: ${device.id}', device.attributes.toString(), @@ -62,14 +62,8 @@ class UserComponent extends StatefulComponent { alignItems: AlignItems.center, children: [ TextComponent('You are logged in!'), - ButtonComponent( - innerHtml: 'Remember Device', - onClick: rememberDevice, - ), - ButtonComponent( - innerHtml: 'Forget Device', - onClick: forgetDevice, - ), + ButtonComponent(innerHtml: 'Remember Device', onClick: rememberDevice), + ButtonComponent(innerHtml: 'Forget Device', onClick: forgetDevice), ButtonComponent( innerHtml: 'Manage Attributes', onClick: () => navigateTo(AuthState.manageAttributes), @@ -80,10 +74,7 @@ class UserComponent extends StatefulComponent { onClick: _fetchAuthSession, ), if (_showSession) ...[ - ButtonComponent( - innerHtml: 'Hide Session', - onClick: _hideSession, - ), + ButtonComponent(innerHtml: 'Hide Session', onClick: _hideSession), TableComponent( tableDefinition: TableDefinition( headers: ['Key', 'Value'], diff --git a/packages/auth/amplify_auth_cognito_dart/lib/amplify_auth_cognito_dart.dart b/packages/auth/amplify_auth_cognito_dart/lib/amplify_auth_cognito_dart.dart index 398860faf0..32f86bdeb2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/amplify_auth_cognito_dart.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/amplify_auth_cognito_dart.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Amplify Auth Cognito for Dart -library amplify_auth_cognito_dart; +library; export 'package:amplify_core/src/types/auth/auth_types.dart'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.dart index 722ff1042f..adb644c48e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.dart @@ -85,22 +85,20 @@ abstract class ASFContextData @override Map toJson() => { - if (deviceName != null) 'DeviceName': deviceName!, - if (thirdPartyDeviceId != null) - 'ThirdPartyDeviceId': thirdPartyDeviceId!, - if (deviceFingerprint != null) 'DeviceFingerprint': deviceFingerprint!, - if (clientTimezone != null) 'ClientTimezone': clientTimezone!, - if (applicationName != null) 'ApplicationName': applicationName!, - if (applicationVersion != null) - 'ApplicationVersion': applicationVersion!, - if (deviceLanguage != null) 'DeviceLanguage': deviceLanguage!, - if (deviceOsReleaseVersion != null) - 'DeviceOsReleaseVersion': deviceOsReleaseVersion!, - if (screenHeightPixels != null) - 'ScreenHeightPixels': screenHeightPixels!.toString(), - if (screenWidthPixels != null) - 'ScreenWidthPixels': screenWidthPixels!.toString(), - }; + if (deviceName != null) 'DeviceName': deviceName!, + if (thirdPartyDeviceId != null) 'ThirdPartyDeviceId': thirdPartyDeviceId!, + if (deviceFingerprint != null) 'DeviceFingerprint': deviceFingerprint!, + if (clientTimezone != null) 'ClientTimezone': clientTimezone!, + if (applicationName != null) 'ApplicationName': applicationName!, + if (applicationVersion != null) 'ApplicationVersion': applicationVersion!, + if (deviceLanguage != null) 'DeviceLanguage': deviceLanguage!, + if (deviceOsReleaseVersion != null) + 'DeviceOsReleaseVersion': deviceOsReleaseVersion!, + if (screenHeightPixels != null) + 'ScreenHeightPixels': screenHeightPixels!.toString(), + if (screenWidthPixels != null) + 'ScreenWidthPixels': screenWidthPixels!.toString(), + }; /// The [ASFContextData] serializer. static Serializer get serializer => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.g.dart index 712825149e..682991e464 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_context_data.g.dart @@ -17,65 +17,76 @@ class _$ASFContextDataSerializer final String wireName = 'ASFContextData'; @override - Iterable serialize(Serializers serializers, ASFContextData object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ASFContextData object, { + FullType specifiedType = FullType.unspecified, + }) { final result = []; Object? value; value = object.deviceName; if (value != null) { result ..add('deviceName') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.thirdPartyDeviceId; if (value != null) { result ..add('thirdPartyDeviceId') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.deviceFingerprint; if (value != null) { result ..add('deviceFingerprint') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.clientTimezone; if (value != null) { result ..add('clientTimezone') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.applicationName; if (value != null) { result ..add('applicationName') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.applicationVersion; if (value != null) { result ..add('applicationVersion') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.deviceLanguage; if (value != null) { result ..add('deviceLanguage') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.deviceOsReleaseVersion; if (value != null) { result ..add('deviceOsReleaseVersion') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.screenHeightPixels; if (value != null) { @@ -94,8 +105,10 @@ class _$ASFContextDataSerializer @override ASFContextData deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ASFContextDataBuilder(); final iterator = serialized.iterator; @@ -105,44 +118,78 @@ class _$ASFContextDataSerializer final Object? value = iterator.current; switch (key) { case 'deviceName': - result.deviceName = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.deviceName = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'thirdPartyDeviceId': - result.thirdPartyDeviceId = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.thirdPartyDeviceId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'deviceFingerprint': - result.deviceFingerprint = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.deviceFingerprint = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'clientTimezone': - result.clientTimezone = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.clientTimezone = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'applicationName': - result.applicationName = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.applicationName = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'applicationVersion': - result.applicationVersion = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.applicationVersion = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'deviceLanguage': - result.deviceLanguage = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.deviceLanguage = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'deviceOsReleaseVersion': - result.deviceOsReleaseVersion = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.deviceOsReleaseVersion = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'screenHeightPixels': - result.screenHeightPixels = serializers.deserialize(value, - specifiedType: const FullType(int)) as int?; + result.screenHeightPixels = + serializers.deserialize(value, specifiedType: const FullType(int)) + as int?; break; case 'screenWidthPixels': - result.screenWidthPixels = serializers.deserialize(value, - specifiedType: const FullType(int)) as int?; + result.screenWidthPixels = + serializers.deserialize(value, specifiedType: const FullType(int)) + as int?; break; } } @@ -176,18 +223,18 @@ class _$ASFContextData extends ASFContextData { factory _$ASFContextData([void Function(ASFContextDataBuilder)? updates]) => (new ASFContextDataBuilder()..update(updates))._build(); - _$ASFContextData._( - {this.deviceName, - this.thirdPartyDeviceId, - this.deviceFingerprint, - this.clientTimezone, - this.applicationName, - this.applicationVersion, - this.deviceLanguage, - this.deviceOsReleaseVersion, - this.screenHeightPixels, - this.screenWidthPixels}) - : super._(); + _$ASFContextData._({ + this.deviceName, + this.thirdPartyDeviceId, + this.deviceFingerprint, + this.clientTimezone, + this.applicationName, + this.applicationVersion, + this.deviceLanguage, + this.deviceOsReleaseVersion, + this.screenHeightPixels, + this.screenWidthPixels, + }) : super._(); @override ASFContextData rebuild(void Function(ASFContextDataBuilder) updates) => @@ -335,7 +382,8 @@ class ASFContextDataBuilder ASFContextData build() => _build(); _$ASFContextData _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ASFContextData._( deviceName: deviceName, thirdPartyDeviceId: thirdPartyDeviceId, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.dart index 85f1319815..f3d1fdb5f2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.dart @@ -13,17 +13,18 @@ import 'package:amplify_core/src/platform/platform.dart'; import 'package:clock/clock.dart'; import 'package:meta/meta.dart'; -typedef _NativeDeviceInfo = ( - String? deviceName, - String? thirdPartyDeviceId, - String? deviceFingerprint, - String? applicationName, - String? applicationVersion, - String? deviceLanguage, - String? deviceOsReleaseVersion, - int? screenHeightPixels, - int? screenWidthPixels, -); +typedef _NativeDeviceInfo = + ( + String? deviceName, + String? thirdPartyDeviceId, + String? deviceFingerprint, + String? applicationName, + String? applicationVersion, + String? deviceLanguage, + String? deviceOsReleaseVersion, + int? screenHeightPixels, + int? screenWidthPixels, + ); /// {@template amplify_auth_cognito_dart.asf.asf_device_info_collector} /// Retrieves context data as required for advanced security features (ASF). @@ -112,17 +113,18 @@ abstract base class NativeASFDeviceInfoCollector extends ASFDeviceInfoCollector Future getNativeContextData() async { _NativeDeviceInfo data; try { - data = await ( - this.deviceName, - this.thirdPartyDeviceId, - this.deviceFingerprint, - this.applicationName, - this.applicationVersion, - this.deviceLanguage, - this.deviceOsReleaseVersion, - this.screenHeightPixels, - this.screenWidthPixels, - ).wait; + data = + await ( + this.deviceName, + this.thirdPartyDeviceId, + this.deviceFingerprint, + this.applicationName, + this.applicationVersion, + this.deviceLanguage, + this.deviceOsReleaseVersion, + this.screenHeightPixels, + this.screenWidthPixels, + ).wait; } on ParallelWaitError<_NativeDeviceInfo, Record> catch (error) { // Allow for partial failures, in which case take the values which // succeeded and log the errors. diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.js.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.js.dart index 644a500243..6930a256c1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.js.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.js.dart @@ -29,30 +29,30 @@ final class ASFDeviceInfoPlatform extends NativeASFDeviceInfoCollector { /// For Dart apps, there is not a good mechanism to retrieve this info. final AsyncMemoizer _packageInfoMemo = AsyncMemoizer(); Future get _packageInfo => _packageInfoMemo.runOnce(() async { - final cacheBuster = DateTime.now().millisecondsSinceEpoch; - final uri = Uri.parse(url.join(_baseUrl, 'version.json')).replace( - queryParameters: {'cachebuster': cacheBuster.toString()}, - ); - try { - final versionResp = await AWSHttpRequest.get(uri).send().response; - final versionJson = await versionResp.decodeBody(); - final versionData = jsonDecode(versionJson) as Map; - return PackageInfo.fromJson(versionData); - } on Exception { - return const PackageInfo(); - } - }); + final cacheBuster = DateTime.now().millisecondsSinceEpoch; + final uri = Uri.parse( + url.join(_baseUrl, 'version.json'), + ).replace(queryParameters: {'cachebuster': cacheBuster.toString()}); + try { + final versionResp = await AWSHttpRequest.get(uri).send().response; + final versionJson = await versionResp.decodeBody(); + final versionData = jsonDecode(versionJson) as Map; + return PackageInfo.fromJson(versionData); + } on Exception { + return const PackageInfo(); + } + }); @override Future get applicationName async => (await _packageInfo).appName; @override Future get applicationVersion async => switch (await _packageInfo) { - PackageInfo(:final version?, :final buildNumber?) => - '$version($buildNumber)', - PackageInfo(:final version?) => version, - _ => null, - }; + PackageInfo(:final version?, :final buildNumber?) => + '$version($buildNumber)', + PackageInfo(:final version?) => version, + _ => null, + }; @override Future get deviceFingerprint async => null; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.linux.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.linux.dart index 12015d766e..2b16378845 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.linux.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.linux.dart @@ -23,33 +23,32 @@ final class ASFDeviceInfoLinux extends ASFDeviceInfoPlatform { /// For Dart apps, there is not a good mechanism to retrieve this info. final AsyncMemoizer _packageInfoMemo = AsyncMemoizer(); Future get _packageInfo => _packageInfoMemo.runOnce(() async { - final exePath = await File('/proc/self/exe').resolveSymbolicLinks(); - final appPath = p.dirname(exePath); - final assetPath = p.join(appPath, 'data', 'flutter_assets'); - final versionFile = File(p.join(assetPath, 'version.json')); - final versionJson = await versionFile.exists() - ? await versionFile.readAsString() - : null; - if (versionJson == null) { - return PackageInfo( - // Fallback to the name of the executable in Dart-only environments. - appName: p.basename(exePath), - ); - } - final versionData = jsonDecode(versionJson) as Map; - return PackageInfo.fromJson(versionData); - }); + final exePath = await File('/proc/self/exe').resolveSymbolicLinks(); + final appPath = p.dirname(exePath); + final assetPath = p.join(appPath, 'data', 'flutter_assets'); + final versionFile = File(p.join(assetPath, 'version.json')); + final versionJson = + await versionFile.exists() ? await versionFile.readAsString() : null; + if (versionJson == null) { + return PackageInfo( + // Fallback to the name of the executable in Dart-only environments. + appName: p.basename(exePath), + ); + } + final versionData = jsonDecode(versionJson) as Map; + return PackageInfo.fromJson(versionData); + }); @override Future get applicationName async => (await _packageInfo).appName; @override Future get applicationVersion async => switch (await _packageInfo) { - PackageInfo(:final version?, :final buildNumber?) => - '$version($buildNumber)', - PackageInfo(:final version?) => version, - _ => null, - }; + PackageInfo(:final version?, :final buildNumber?) => + '$version($buildNumber)', + PackageInfo(:final version?) => version, + _ => null, + }; @override Future get deviceFingerprint async => null; @@ -85,9 +84,8 @@ final class ASFDeviceInfoLinux extends ASFDeviceInfoPlatform { '/usr/lib/extension-release.d/extension-release.IMAGE', ].fold?>>( Future.value(null), - (values, path) => values.then( - (values) async => values ?? await _tryReadValues(path), - ), + (values, path) => + values.then((values) async => values ?? await _tryReadValues(path)), ); @override @@ -125,8 +123,10 @@ final class ASFDeviceInfoLinux extends ASFDeviceInfoPlatform { lines .map( (line) => switch (line.split('=')) { - [final key, final value] when value.isNotEmpty => - MapEntry(key, unescape(value)), + [final key, final value] when value.isNotEmpty => MapEntry( + key, + unescape(value), + ), _ => null, }, ) @@ -153,7 +153,7 @@ final class ASFDeviceInfoLinux extends ASFDeviceInfoPlatform { } String? _env(String key) => switch (Platform.environment[key]) { - final value? when value.isNotEmpty => value, - _ => null, - }; + final value? when value.isNotEmpty => value, + _ => null, + }; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.macos.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.macos.dart index 52343632d4..0edfa0d3cd 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.macos.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.macos.dart @@ -24,8 +24,8 @@ final class ASFDeviceInfoMacOS extends ASFDeviceInfoPlatform { final _native = NativeMacOsFramework(DynamicLibrary.process()); - late final _kCFBundleShortVersionString = - 'CFBundleShortVersionString'.toNSString(_native); + late final _kCFBundleShortVersionString = 'CFBundleShortVersionString' + .toNSString(_native); late final _kCFBundleVersionKey = NSString.castFromPointer( _native, _native.kCFBundleVersionKey.cast(), @@ -44,17 +44,20 @@ final class ASFDeviceInfoMacOS extends ASFDeviceInfoPlatform { @override Future get applicationVersion async { - final nsAppVersion = - _bundle?.objectForInfoDictionaryKey_(_kCFBundleShortVersionString); + final nsAppVersion = _bundle?.objectForInfoDictionaryKey_( + _kCFBundleShortVersionString, + ); if (nsAppVersion == null || !NSString.isInstance(nsAppVersion)) { return null; } final appVersion = NSString.castFrom(nsAppVersion).toString(); - final nsAppBuild = - _bundle?.objectForInfoDictionaryKey_(_kCFBundleVersionKey); - final appBuild = nsAppBuild != null && NSString.isInstance(nsAppBuild) - ? NSString.castFrom(nsAppBuild).toString() - : null; + final nsAppBuild = _bundle?.objectForInfoDictionaryKey_( + _kCFBundleVersionKey, + ); + final appBuild = + nsAppBuild != null && NSString.isInstance(nsAppBuild) + ? NSString.castFrom(nsAppBuild).toString() + : null; return appBuild == null || appVersion == appBuild ? appVersion : '$appVersion($appBuild)'; @@ -62,28 +65,29 @@ final class ASFDeviceInfoMacOS extends ASFDeviceInfoPlatform { @override Future get deviceFingerprint async => using((arena) { - final model = _ioValueFor('model'); - final systemInfo = arena(); - var type = ''; - if (_native.uname(systemInfo) == 0) { - final sysname = systemInfo.ref.sysname; - final bytes = []; - for (var i = 0;; i++) { - final byte = sysname[i]; - if (byte == 0) break; - bytes.add(byte); - } - type = utf8.decode(bytes); - } - const build = zDebugMode ? 'debug' : 'release'; - - return 'Apple/$model/$type/-:$_osVersion/-/-:-/$build'; - }); + final model = _ioValueFor('model'); + final systemInfo = arena(); + var type = ''; + if (_native.uname(systemInfo) == 0) { + final sysname = systemInfo.ref.sysname; + final bytes = []; + for (var i = 0; ; i++) { + final byte = sysname[i]; + if (byte == 0) break; + bytes.add(byte); + } + type = utf8.decode(bytes); + } + const build = zDebugMode ? 'debug' : 'release'; + + return 'Apple/$model/$type/-:$_osVersion/-/-:-/$build'; + }); @override Future get deviceLanguage async { - final nsDeviceLanguage = - NSLocale.getPreferredLanguages(_native)?.objectAtIndex_(0); + final nsDeviceLanguage = NSLocale.getPreferredLanguages( + _native, + )?.objectAtIndex_(0); return nsDeviceLanguage == null || !NSString.isInstance(nsDeviceLanguage) ? null : NSString.castFrom(nsDeviceLanguage).toString(); @@ -111,35 +115,35 @@ final class ASFDeviceInfoMacOS extends ASFDeviceInfoPlatform { _mainScreen?.visibleFrame.size.width.toInt() ?? 0; String? _ioValueFor(String key) => using((arena) { - const serviceName = 'IOPlatformExpertDevice'; - final service = _native.IOServiceGetMatchingService( - _native.kIOMasterPortDefault, - _native.IOServiceMatching( - serviceName.toNativeUtf8(allocator: arena).cast(), - ), - ); - logger.verbose('Found service matching $serviceName: $service'); - if (service == IO_OBJECT_NULL) { - return null; - } - arena.onReleaseAll(() => _native.IOObjectRelease(service)); - final data = _native.IORegistryEntryCreateCFProperty( - service, - key.toCFString(lib: _native, arena: arena).cast(), - _native.kCFAllocatorDefault, - 0, - ); - logger.verbose('Got data for $key: $data'); - if (data == nullptr) { - return null; - } - arena.onReleaseAll(() => _native.CFRelease(data)); - return switch (CFType) { - const (CFData) => data.cast().toDartString(_native), - const (CFString) => data.cast().toDartString(_native), - _ => null, - }; - }); + const serviceName = 'IOPlatformExpertDevice'; + final service = _native.IOServiceGetMatchingService( + _native.kIOMasterPortDefault, + _native.IOServiceMatching( + serviceName.toNativeUtf8(allocator: arena).cast(), + ), + ); + logger.verbose('Found service matching $serviceName: $service'); + if (service == IO_OBJECT_NULL) { + return null; + } + arena.onReleaseAll(() => _native.IOObjectRelease(service)); + final data = _native.IORegistryEntryCreateCFProperty( + service, + key.toCFString(lib: _native, arena: arena).cast(), + _native.kCFAllocatorDefault, + 0, + ); + logger.verbose('Got data for $key: $data'); + if (data == nullptr) { + return null; + } + arena.onReleaseAll(() => _native.CFRelease(data)); + return switch (CFType) { + const (CFData) => data.cast().toDartString(_native), + const (CFString) => data.cast().toDartString(_native), + _ => null, + }; + }); @override Future get thirdPartyDeviceId async => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.vm.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.vm.dart index 016e4b3f32..b4ae4b5af9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.vm.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.vm.dart @@ -14,12 +14,12 @@ import 'package:amplify_auth_cognito_dart/src/asf/asf_device_info_collector.wind abstract base class ASFDeviceInfoPlatform extends NativeASFDeviceInfoCollector { /// {@macro amplify_auth_cognito_dart.asf.asf_device_info_vm} factory ASFDeviceInfoPlatform() => switch (Platform.operatingSystem) { - _ when Platform.isMacOS => ASFDeviceInfoMacOS(), - _ when Platform.isLinux => ASFDeviceInfoLinux(), - _ when Platform.isWindows => ASFDeviceInfoWindows(), - final unsupportedOs => - throw UnsupportedError('Unsupported platform: $unsupportedOs'), - }; + _ when Platform.isMacOS => ASFDeviceInfoMacOS(), + _ when Platform.isLinux => ASFDeviceInfoLinux(), + _ when Platform.isWindows => ASFDeviceInfoWindows(), + final unsupportedOs => + throw UnsupportedError('Unsupported platform: $unsupportedOs'), + }; /// {@macro amplify_auth_cognito_dart.asf.asf_device_info_vm} const ASFDeviceInfoPlatform.base(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.windows.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.windows.dart index 5405dfd754..dd4248342c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.windows.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.windows.dart @@ -20,10 +20,7 @@ final class _LANGANDCODEPAGE extends Struct { external int wCodepage; } -typedef _WindowsDeviceInfo = ({ - String? osVersion, - String? deviceId, -}); +typedef _WindowsDeviceInfo = ({String? osVersion, String? deviceId}); /// {@template amplify_auth_cognito_dart.asf.asf_device_info_windows} /// The Windows implementation of [NativeASFDeviceInfoCollector]. @@ -43,9 +40,7 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { late final PackageInfo? _packageInfo = using((arena) { final lptstrFilename = wsalloc(MAX_PATH); arena.onReleaseAll(() => free(lptstrFilename)); - if (FAILED( - GetModuleFileName(0, lptstrFilename, MAX_PATH), - )) { + if (FAILED(GetModuleFileName(0, lptstrFilename, MAX_PATH))) { logger.error('Could not retrieve filename', _lastException); return null; } @@ -55,9 +50,7 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { return null; } final verData = arena(verSize); - if (FAILED( - GetFileVersionInfo(lptstrFilename, NULL, verSize, verData), - )) { + if (FAILED(GetFileVersionInfo(lptstrFilename, NULL, verSize, verData))) { logger.error('Could not retrieve file info', _lastException); return null; } @@ -66,9 +59,7 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { final lenFileInfo = arena(); final lpSubBlock = TEXT(r'\'); arena.onReleaseAll(() => free(lpSubBlock)); - if (FAILED( - VerQueryValue(verData, lpSubBlock, fileInfoPtr, lenFileInfo), - )) { + if (FAILED(VerQueryValue(verData, lpSubBlock, fileInfoPtr, lenFileInfo))) { logger.error('Could not query file info', _lastException); return null; } @@ -86,12 +77,7 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { final lpTranslateSubBlock = TEXT(r'\VarFileInfo\Translation'); arena.onReleaseAll(() => free(lpTranslateSubBlock)); if (FAILED( - VerQueryValue( - verData, - lpTranslateSubBlock, - lpTranslate, - lenTranslate, - ), + VerQueryValue(verData, lpTranslateSubBlock, lpTranslate, lenTranslate), )) { logger.error('Could not retrieve translation info', _lastException); } @@ -114,12 +100,7 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { final lpSubBlock = TEXT('\\StringFileInfo\\$lang$codepage\\$name'); arena.onReleaseAll(() => free(lpSubBlock)); if (SUCCEEDED( - VerQueryValue( - lpTranslateSubBlock, - lpSubBlock, - lpBuffer, - puLen, - ), + VerQueryValue(lpTranslateSubBlock, lpSubBlock, lpBuffer, puLen), )) { if (lpBuffer != nullptr && puLen.value > 0) { return lpBuffer.value.toDartString(length: puLen.value); @@ -143,11 +124,11 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { @override Future get applicationVersion async => switch (_packageInfo) { - PackageInfo(:final version?, :final buildNumber?) => - '$version($buildNumber)', - PackageInfo(:final version?) => version, - _ => null, - }; + PackageInfo(:final version?, :final buildNumber?) => + '$version($buildNumber)', + PackageInfo(:final version?) => version, + _ => null, + }; // Device methods adapted from `device_info_plus`: // https://github.com/fluttercommunity/plus_plugins/blob/e8d3b445ce52012456126a3844ddb49b92c5c850/packages/device_info_plus/device_info_plus/lib/src/device_info_plus_windows.dart @@ -158,8 +139,9 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { // - https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getversionexw // - https://github.com/dart-windows/win32/blob/5f305167bfe181abbc663a7f7f2a0787910fac21/example/manifest/README.md var osVersion = 'Windows'; - final osVersionInfo = arena() - ..ref.dwOSVersionInfoSize = sizeOf(); + final osVersionInfo = + arena() + ..ref.dwOSVersionInfoSize = sizeOf(); if (SUCCEEDED(GetVersionEx(osVersionInfo))) { final OSVERSIONINFO(:dwMajorVersion, :dwMinorVersion, :dwBuildNumber) = osVersionInfo.ref; @@ -178,7 +160,7 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform { RegistryHive.localMachine, path: r'SOFTWARE\Microsoft\SQMClient', ); - final deviceId = sqmClientKey.getValueAsString('MachineId'); + final deviceId = sqmClientKey.getStringValue('MachineId'); return (osVersion: osVersion, deviceId: deviceId); }); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.dart index f9e23c8361..58a63e591f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.dart @@ -30,15 +30,14 @@ abstract class ASFWorkerRequest required String username, required String deviceId, required ASFContextData nativeContextData, - }) => - _$ASFWorkerRequest._( - requestId: _requestId++, - userPoolId: userPoolId, - clientId: clientId, - username: username, - deviceId: deviceId, - nativeContextData: nativeContextData, - ); + }) => _$ASFWorkerRequest._( + requestId: _requestId++, + userPoolId: userPoolId, + clientId: clientId, + username: username, + deviceId: deviceId, + nativeContextData: nativeContextData, + ); /// {@macro amplify_auth_cognito_dart.asf.asf_worker_request} factory ASFWorkerRequest.build([ @@ -144,10 +143,11 @@ abstract class ASFWorker final hash = Hmac(sha256, secret); final versionBytes = utf8.encode(_version); final payloadBytes = utf8.encode(payloadJson); - final bytes = (BytesBuilder(copy: false) - ..add(versionBytes) - ..add(payloadBytes)) - .takeBytes(); + final bytes = + (BytesBuilder(copy: false) + ..add(versionBytes) + ..add(payloadBytes)) + .takeBytes(); final signature = base64Encode(hash.convert(bytes).bytes); final contextData = { @@ -161,9 +161,10 @@ abstract class ASFWorker respond.add( ASFWorkerResponse( - (b) => b - ..requestId = requestId - ..userContextData.encodedData = encodedContextData, + (b) => + b + ..requestId = requestId + ..userContextData.encodedData = encodedContextData, ), ); } @@ -171,11 +172,7 @@ abstract class ASFWorker } } -@SerializersFor([ - ASFContextData, - ASFWorkerRequest, - ASFWorkerResponse, -]) -final Serializers _serializers = (_$_serializers.toBuilder() - ..addAll(UserContextDataType.serializers)) - .build(); +@SerializersFor([ASFContextData, ASFWorkerRequest, ASFWorkerResponse]) +final Serializers _serializers = + (_$_serializers.toBuilder()..addAll(UserContextDataType.serializers)) + .build(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.g.dart index 7dccce1157..0bee1c4704 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.g.dart @@ -6,11 +6,12 @@ part of 'asf_worker.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$_serializers = (new Serializers().toBuilder() - ..add(ASFContextData.serializer) - ..add(ASFWorkerRequest.serializer) - ..add(ASFWorkerResponse.serializer)) - .build(); +Serializers _$_serializers = + (new Serializers().toBuilder() + ..add(ASFContextData.serializer) + ..add(ASFWorkerRequest.serializer) + ..add(ASFWorkerResponse.serializer)) + .build(); Serializer _$aSFWorkerRequestSerializer = new _$ASFWorkerRequestSerializer(); Serializer _$aSFWorkerResponseSerializer = @@ -24,27 +25,42 @@ class _$ASFWorkerRequestSerializer final String wireName = 'ASFWorkerRequest'; @override - Iterable serialize(Serializers serializers, ASFWorkerRequest object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ASFWorkerRequest object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'requestId', - serializers.serialize(object.requestId, - specifiedType: const FullType(int)), + serializers.serialize( + object.requestId, + specifiedType: const FullType(int), + ), 'userPoolId', - serializers.serialize(object.userPoolId, - specifiedType: const FullType(String)), + serializers.serialize( + object.userPoolId, + specifiedType: const FullType(String), + ), 'clientId', - serializers.serialize(object.clientId, - specifiedType: const FullType(String)), + serializers.serialize( + object.clientId, + specifiedType: const FullType(String), + ), 'username', - serializers.serialize(object.username, - specifiedType: const FullType(String)), + serializers.serialize( + object.username, + specifiedType: const FullType(String), + ), 'deviceId', - serializers.serialize(object.deviceId, - specifiedType: const FullType(String)), + serializers.serialize( + object.deviceId, + specifiedType: const FullType(String), + ), 'nativeContextData', - serializers.serialize(object.nativeContextData, - specifiedType: const FullType(ASFContextData)), + serializers.serialize( + object.nativeContextData, + specifiedType: const FullType(ASFContextData), + ), ]; return result; @@ -52,8 +68,10 @@ class _$ASFWorkerRequestSerializer @override ASFWorkerRequest deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ASFWorkerRequestBuilder(); final iterator = serialized.iterator; @@ -63,29 +81,53 @@ class _$ASFWorkerRequestSerializer final Object? value = iterator.current; switch (key) { case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; + result.requestId = + serializers.deserialize( + value, + specifiedType: const FullType(int), + )! + as int; break; case 'userPoolId': - result.userPoolId = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.userPoolId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'clientId': - result.clientId = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.clientId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'username': - result.username = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.username = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'deviceId': - result.deviceId = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.deviceId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'nativeContextData': - result.nativeContextData.replace(serializers.deserialize(value, - specifiedType: const FullType(ASFContextData))! - as ASFContextData); + result.nativeContextData.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ASFContextData), + )! + as ASFContextData, + ); break; } } @@ -102,15 +144,22 @@ class _$ASFWorkerResponseSerializer final String wireName = 'ASFWorkerResponse'; @override - Iterable serialize(Serializers serializers, ASFWorkerResponse object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ASFWorkerResponse object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'requestId', - serializers.serialize(object.requestId, - specifiedType: const FullType(int)), + serializers.serialize( + object.requestId, + specifiedType: const FullType(int), + ), 'userContextData', - serializers.serialize(object.userContextData, - specifiedType: const FullType(UserContextDataType)), + serializers.serialize( + object.userContextData, + specifiedType: const FullType(UserContextDataType), + ), ]; return result; @@ -118,8 +167,10 @@ class _$ASFWorkerResponseSerializer @override ASFWorkerResponse deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ASFWorkerResponseBuilder(); final iterator = serialized.iterator; @@ -129,13 +180,21 @@ class _$ASFWorkerResponseSerializer final Object? value = iterator.current; switch (key) { case 'requestId': - result.requestId = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; + result.requestId = + serializers.deserialize( + value, + specifiedType: const FullType(int), + )! + as int; break; case 'userContextData': - result.userContextData.replace(serializers.deserialize(value, - specifiedType: const FullType(UserContextDataType))! - as UserContextDataType); + result.userContextData.replace( + serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + )! + as UserContextDataType, + ); break; } } @@ -158,30 +217,48 @@ class _$ASFWorkerRequest extends ASFWorkerRequest { @override final ASFContextData nativeContextData; - factory _$ASFWorkerRequest( - [void Function(ASFWorkerRequestBuilder)? updates]) => - (new ASFWorkerRequestBuilder()..update(updates))._build(); - - _$ASFWorkerRequest._( - {required this.requestId, - required this.userPoolId, - required this.clientId, - required this.username, - required this.deviceId, - required this.nativeContextData}) - : super._() { + factory _$ASFWorkerRequest([ + void Function(ASFWorkerRequestBuilder)? updates, + ]) => (new ASFWorkerRequestBuilder()..update(updates))._build(); + + _$ASFWorkerRequest._({ + required this.requestId, + required this.userPoolId, + required this.clientId, + required this.username, + required this.deviceId, + required this.nativeContextData, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - requestId, r'ASFWorkerRequest', 'requestId'); + requestId, + r'ASFWorkerRequest', + 'requestId', + ); BuiltValueNullFieldError.checkNotNull( - userPoolId, r'ASFWorkerRequest', 'userPoolId'); + userPoolId, + r'ASFWorkerRequest', + 'userPoolId', + ); BuiltValueNullFieldError.checkNotNull( - clientId, r'ASFWorkerRequest', 'clientId'); + clientId, + r'ASFWorkerRequest', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - username, r'ASFWorkerRequest', 'username'); + username, + r'ASFWorkerRequest', + 'username', + ); BuiltValueNullFieldError.checkNotNull( - deviceId, r'ASFWorkerRequest', 'deviceId'); + deviceId, + r'ASFWorkerRequest', + 'deviceId', + ); BuiltValueNullFieldError.checkNotNull( - nativeContextData, r'ASFWorkerRequest', 'nativeContextData'); + nativeContextData, + r'ASFWorkerRequest', + 'nativeContextData', + ); } @override @@ -295,18 +372,34 @@ class ASFWorkerRequestBuilder _$ASFWorkerRequest _build() { _$ASFWorkerRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ASFWorkerRequest._( requestId: BuiltValueNullFieldError.checkNotNull( - requestId, r'ASFWorkerRequest', 'requestId'), + requestId, + r'ASFWorkerRequest', + 'requestId', + ), userPoolId: BuiltValueNullFieldError.checkNotNull( - userPoolId, r'ASFWorkerRequest', 'userPoolId'), + userPoolId, + r'ASFWorkerRequest', + 'userPoolId', + ), clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'ASFWorkerRequest', 'clientId'), + clientId, + r'ASFWorkerRequest', + 'clientId', + ), username: BuiltValueNullFieldError.checkNotNull( - username, r'ASFWorkerRequest', 'username'), + username, + r'ASFWorkerRequest', + 'username', + ), deviceId: BuiltValueNullFieldError.checkNotNull( - deviceId, r'ASFWorkerRequest', 'deviceId'), + deviceId, + r'ASFWorkerRequest', + 'deviceId', + ), nativeContextData: nativeContextData.build(), ); } catch (_) { @@ -316,7 +409,10 @@ class ASFWorkerRequestBuilder nativeContextData.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ASFWorkerRequest', _$failedField, e.toString()); + r'ASFWorkerRequest', + _$failedField, + e.toString(), + ); } rethrow; } @@ -331,17 +427,24 @@ class _$ASFWorkerResponse extends ASFWorkerResponse { @override final UserContextDataType userContextData; - factory _$ASFWorkerResponse( - [void Function(ASFWorkerResponseBuilder)? updates]) => - (new ASFWorkerResponseBuilder()..update(updates))._build(); + factory _$ASFWorkerResponse([ + void Function(ASFWorkerResponseBuilder)? updates, + ]) => (new ASFWorkerResponseBuilder()..update(updates))._build(); - _$ASFWorkerResponse._( - {required this.requestId, required this.userContextData}) - : super._() { + _$ASFWorkerResponse._({ + required this.requestId, + required this.userContextData, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - requestId, r'ASFWorkerResponse', 'requestId'); + requestId, + r'ASFWorkerResponse', + 'requestId', + ); BuiltValueNullFieldError.checkNotNull( - userContextData, r'ASFWorkerResponse', 'userContextData'); + userContextData, + r'ASFWorkerResponse', + 'userContextData', + ); } @override @@ -421,10 +524,14 @@ class ASFWorkerResponseBuilder _$ASFWorkerResponse _build() { _$ASFWorkerResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ASFWorkerResponse._( requestId: BuiltValueNullFieldError.checkNotNull( - requestId, r'ASFWorkerResponse', 'requestId'), + requestId, + r'ASFWorkerResponse', + 'requestId', + ), userContextData: userContextData.build(), ); } catch (_) { @@ -434,7 +541,10 @@ class ASFWorkerResponseBuilder userContextData.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ASFWorkerResponse', _$failedField, e.toString()); + r'ASFWorkerResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.dart index 54e7292d3e..31f1746574 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.dart @@ -1,3 +1,4 @@ +// dart format width=80 // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.js.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.js.dart index a1c724e4c0..db999d35e8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.js.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.js.dart @@ -29,18 +29,17 @@ class ASFWorkerImpl extends ASFWorker { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' - : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' + : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.vm.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.vm.dart index 03565fb37e..6fba0a45a5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.vm.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_worker.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.dart index 1ee23dfbdf..b143369d8d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.dart @@ -13,10 +13,7 @@ part 'package_info.g.dart'; /// {@template amplify_auth_cognito_dart.asf.package_info} /// Package information for the current application. /// {@endtemplate} -@JsonSerializable( - fieldRename: FieldRename.snake, - includeIfNull: false, -) +@JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false) class PackageInfo with AWSEquatable, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.g.dart index 9333db4e48..632aafab93 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/asf/package_info.g.dart @@ -7,24 +7,16 @@ part of 'package_info.dart'; // ************************************************************************** PackageInfo _$PackageInfoFromJson(Map json) => PackageInfo( - appName: json['app_name'] as String?, - version: json['version'] as String?, - buildNumber: json['build_number'] as String?, - packageName: json['package_name'] as String?, - ); + appName: json['app_name'] as String?, + version: json['version'] as String?, + buildNumber: json['build_number'] as String?, + packageName: json['package_name'] as String?, +); -Map _$PackageInfoToJson(PackageInfo instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('app_name', instance.appName); - writeNotNull('version', instance.version); - writeNotNull('build_number', instance.buildNumber); - writeNotNull('package_name', instance.packageName); - return val; -} +Map _$PackageInfoToJson(PackageInfo instance) => + { + if (instance.appName case final value?) 'app_name': value, + if (instance.version case final value?) 'version': value, + if (instance.buildNumber case final value?) 'build_number': value, + if (instance.packageName case final value?) 'package_name': value, + }; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/auth_plugin_impl.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/auth_plugin_impl.dart index e6a848919e..e4677352d0 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/auth_plugin_impl.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/auth_plugin_impl.dart @@ -64,9 +64,9 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface AmplifyAuthCognitoDart({ SecureStorageFactory? secureStorageFactory, @protected HostedUiPlatformFactory? hostedUiPlatformFactory, - }) : _secureStorageFactory = - secureStorageFactory ?? AmplifySecureStorageWorker.factoryFrom(), - _hostedUiPlatformFactory = hostedUiPlatformFactory; + }) : _secureStorageFactory = + secureStorageFactory ?? AmplifySecureStorageWorker.factoryFrom(), + _hostedUiPlatformFactory = hostedUiPlatformFactory; /// A plugin key which can be used with `Amplify.Auth.getPlugin` to retrieve /// a Cognito-specific Auth category interface. @@ -174,8 +174,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface (state) { final hubEvent = switch (state) { HostedUiSignedIn(:final user) || - SignInSuccess(:final user) => - AuthHubEvent.signedIn(user), + SignInSuccess(:final user) => AuthHubEvent.signedIn(user), FetchAuthSessionSuccess(:final session) when session.userPoolTokensResult.exception is SessionExpiredException => @@ -251,10 +250,10 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface Future fetchAuthSession({ FetchAuthSessionOptions? options, }) async { - final sessionState = - await _stateMachine.acceptAndComplete( - FetchAuthSessionEvent.fetch(options), - ); + final sessionState = await _stateMachine + .acceptAndComplete( + FetchAuthSessionEvent.fetch(options), + ); return sessionState.session; } @@ -275,25 +274,22 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface required AuthProvider provider, FederateToIdentityPoolOptions? options, }) async { - return identifyCall( - AuthCategoryMethod.federateToIdentityPool, - () async { - final request = FederateToIdentityPoolRequest( - token: token, - provider: provider, - options: options, - ); - final sessionState = - await _stateMachine.acceptAndComplete( - FetchAuthSessionEvent.federate(request), - ); - final session = sessionState.session; - return FederateToIdentityPoolResult( - identityId: session.identityIdResult.value, - credentials: session.credentialsResult.value, - ); - }, - ); + return identifyCall(AuthCategoryMethod.federateToIdentityPool, () async { + final request = FederateToIdentityPoolRequest( + token: token, + provider: provider, + options: options, + ); + final sessionState = await _stateMachine + .acceptAndComplete( + FetchAuthSessionEvent.federate(request), + ); + final session = sessionState.session; + return FederateToIdentityPoolResult( + identityId: session.identityIdResult.value, + credentials: session.credentialsResult.value, + ); + }); } /// {@template amplify_auth_cognito_dart.impl.clear_federation_to_identity_pool} @@ -328,10 +324,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface final stateMachine = _stateMachine.create(HostedUiStateMachine.type); await _stateMachine .accept( - HostedUiEvent.signIn( - options: pluginOptions, - provider: provider, - ), + HostedUiEvent.signIn(options: pluginOptions, provider: provider), ) .accepted; @@ -346,9 +339,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface case HostedUiSignedIn _: return const CognitoSignInResult( isSignedIn: true, - nextStep: AuthNextSignInStep( - signInStep: AuthSignInStep.done, - ), + nextStep: AuthNextSignInStep(signInStep: AuthSignInStep.done), ); case HostedUiFailure(:final exception, :final stackTrace): Error.throwWithStackTrace(exception, stackTrace); @@ -360,9 +351,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface CognitoSignUpResult _processSignUpResult(SignUpState result) { return switch (result) { - SignUpNotStarted _ || - SignUpInitiating _ || - SignUpConfirming _ => + SignUpNotStarted _ || SignUpInitiating _ || SignUpConfirming _ => // This should never happen. throw UnknownException( 'Sign up could not be completed', @@ -378,12 +367,10 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface ), ), SignUpSuccess(:final userId) => CognitoSignUpResult( - userId: userId, - isSignUpComplete: true, - nextStep: const AuthNextSignUpStep( - signUpStep: AuthSignUpStep.done, - ), - ), + userId: userId, + isSignUpComplete: true, + nextStep: const AuthNextSignUpStep(signUpStep: AuthSignUpStep.done), + ), SignUpFailure(:final exception, :final stackTrace) => Error.throwWithStackTrace(exception, stackTrace), }; @@ -403,9 +390,10 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface final result = await _stateMachine.acceptAndComplete( SignUpEvent.initiate( parameters: SignUpParameters( - (p) => p - ..username = username - ..password = password, + (p) => + p + ..username = username + ..password = password, ), userAttributes: options.userAttributes, clientMetadata: pluginOptions.clientMetadata, @@ -446,31 +434,34 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface defaultPluginOptions: const CognitoResendSignUpCodePluginOptions(), ); final userContextData = await _getContextData(username); - final result = await _cognitoIdp.resendConfirmationCode( - cognito.ResendConfirmationCodeRequest.build((b) { - b - ..clientId = _authOutputs.userPoolClientId - ..username = username - ..analyticsMetadata = _analyticsMetadata?.toBuilder(); - - // ignore: invalid_use_of_internal_member - final clientSecret = _authOutputs.appClientSecret; - if (clientSecret != null) { - b.secretHash = computeSecretHash( - username, - _authOutputs.userPoolClientId!, - clientSecret, - ); - } - - final clientMetadata = pluginOptions.clientMetadata; - b.clientMetadata.addAll(clientMetadata); - - if (userContextData != null) { - b.userContextData.replace(userContextData); - } - }), - ).result; + final result = + await _cognitoIdp + .resendConfirmationCode( + cognito.ResendConfirmationCodeRequest.build((b) { + b + ..clientId = _authOutputs.userPoolClientId + ..username = username + ..analyticsMetadata = _analyticsMetadata?.toBuilder(); + + // ignore: invalid_use_of_internal_member + final clientSecret = _authOutputs.appClientSecret; + if (clientSecret != null) { + b.secretHash = computeSecretHash( + username, + _authOutputs.userPoolClientId!, + clientSecret, + ); + } + + final clientMetadata = pluginOptions.clientMetadata; + b.clientMetadata.addAll(clientMetadata); + + if (userContextData != null) { + b.userContextData.replace(userContextData); + } + }), + ) + .result; final codeDeliveryDetails = result.codeDeliveryDetails?.asAuthCodeDeliveryDetails; @@ -511,14 +502,12 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface case SignInSuccess(): return const CognitoSignInResult( isSignedIn: true, - nextStep: AuthNextSignInStep( - signInStep: AuthSignInStep.done, - ), + nextStep: AuthNextSignInStep(signInStep: AuthSignInStep.done), ); case final SignInFailure failure: Error.throwWithStackTrace(failure.exception, failure.stackTrace); -// To satisfy Dart's requirements, even if unreachable + // To satisfy Dart's requirements, even if unreachable } } @@ -538,9 +527,10 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface SignInEvent.initiate( authFlowType: pluginOptions.authFlowType, parameters: SignInParameters( - (p) => p - ..username = username - ..password = password, + (p) => + p + ..username = username + ..password = password, ), clientMetadata: pluginOptions.clientMetadata, ), @@ -550,16 +540,12 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface } on PasswordResetRequiredException { return const CognitoSignInResult( isSignedIn: false, - nextStep: AuthNextSignInStep( - signInStep: AuthSignInStep.resetPassword, - ), + nextStep: AuthNextSignInStep(signInStep: AuthSignInStep.resetPassword), ); } on UserNotConfirmedException { return const CognitoSignInResult( isSignedIn: false, - nextStep: AuthNextSignInStep( - signInStep: AuthSignInStep.confirmSignUp, - ), + nextStep: AuthNextSignInStep(signInStep: AuthSignInStep.confirmSignUp), ); } } @@ -591,13 +577,12 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface FetchUserAttributesOptions? options, }) async { final tokens = await stateMachine.getUserPoolTokens(); - final resp = await _cognitoIdp - .getUser( - cognito.GetUserRequest( - accessToken: tokens.accessToken.raw, - ), - ) - .result; + final resp = + await _cognitoIdp + .getUser( + cognito.GetUserRequest(accessToken: tokens.accessToken.raw), + ) + .result; return [ for (final attributeType in resp.userAttributes) attributeType.asAuthUserAttribute, @@ -616,10 +601,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface ); final results = await updateUserAttributes( attributes: [ - AuthUserAttribute( - userAttributeKey: userAttributeKey, - value: value, - ), + AuthUserAttribute(userAttributeKey: userAttributeKey, value: value), ], options: UpdateUserAttributesOptions( pluginOptions: CognitoUpdateUserAttributesPluginOptions( @@ -632,7 +614,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface @override Future> - updateUserAttributes({ + updateUserAttributes({ required List attributes, UpdateUserAttributesOptions? options, }) async { @@ -641,20 +623,23 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface defaultPluginOptions: const CognitoUpdateUserAttributesPluginOptions(), ); final tokens = await stateMachine.getUserPoolTokens(); - final response = await _cognitoIdp - .updateUserAttributes( - cognito.UpdateUserAttributesRequest.build( - (b) => b - ..accessToken = tokens.accessToken.raw - ..clientMetadata.addAll(pluginOptions.clientMetadata) - ..userAttributes.addAll({ - for (final attr in attributes) attr.asAttributeType, - }), - ), - ) - .result; + final response = + await _cognitoIdp + .updateUserAttributes( + cognito.UpdateUserAttributesRequest.build( + (b) => + b + ..accessToken = tokens.accessToken.raw + ..clientMetadata.addAll(pluginOptions.clientMetadata) + ..userAttributes.addAll({ + for (final attr in attributes) attr.asAttributeType, + }), + ), + ) + .result; final result = {}; - final codeDeliveryDetailsList = response.codeDeliveryDetailsList ?? + final codeDeliveryDetailsList = + response.codeDeliveryDetailsList ?? const []; for (final attribute in attributes) { final codeDeliveryDetails = codeDeliveryDetailsList.firstWhereOrNull( @@ -665,11 +650,12 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface // was successfully updated since otherwise the call to Cognito would have // thrown an exception. final isUpdated = codeDeliveryDetails == null; - final nextStep = isUpdated - ? AuthUpdateAttributeStep.done - : AuthUpdateAttributeStep.confirmAttributeWithCode; - result[attribute.userAttributeKey.toCognitoUserAttributeKey()] = - UpdateUserAttributeResult( + final nextStep = + isUpdated + ? AuthUpdateAttributeStep.done + : AuthUpdateAttributeStep.confirmAttributeWithCode; + result[attribute.userAttributeKey + .toCognitoUserAttributeKey()] = UpdateUserAttributeResult( isUpdated: isUpdated, nextStep: AuthNextUpdateAttributeStep( updateAttributeStep: nextStep, @@ -701,7 +687,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface @override Future - sendUserAttributeVerificationCode({ + sendUserAttributeVerificationCode({ required AuthUserAttributeKey userAttributeKey, SendUserAttributeVerificationCodeOptions? options, }) async { @@ -711,15 +697,16 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface const CognitoSendUserAttributeVerificationCodePluginOptions(), ); final tokens = await stateMachine.getUserPoolTokens(); - final result = await _cognitoIdp - .getUserAttributeVerificationCode( - cognito.GetUserAttributeVerificationCodeRequest( - accessToken: tokens.accessToken.raw, - attributeName: userAttributeKey.key, - clientMetadata: pluginOptions.clientMetadata, - ), - ) - .result; + final result = + await _cognitoIdp + .getUserAttributeVerificationCode( + cognito.GetUserAttributeVerificationCodeRequest( + accessToken: tokens.accessToken.raw, + attributeName: userAttributeKey.key, + clientMetadata: pluginOptions.clientMetadata, + ), + ) + .result; final codeDeliveryDetails = result.codeDeliveryDetails?.asAuthCodeDeliveryDetails; if (codeDeliveryDetails == null) { @@ -759,29 +746,32 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface defaultPluginOptions: const CognitoResetPasswordPluginOptions(), ); final userContextData = await _getContextData(username); - final result = await _cognitoIdp.forgotPassword( - cognito.ForgotPasswordRequest.build((b) { - b - ..clientId = _authOutputs.userPoolClientId - ..username = username - ..analyticsMetadata = _analyticsMetadata?.toBuilder() - ..clientMetadata.addAll(pluginOptions.clientMetadata); - - // ignore: invalid_use_of_internal_member - final clientSecret = _authOutputs.appClientSecret; - if (clientSecret != null) { - b.secretHash = computeSecretHash( - username, - _authOutputs.userPoolClientId!, - clientSecret, - ); - } - - if (userContextData != null) { - b.userContextData.replace(userContextData); - } - }), - ).result; + final result = + await _cognitoIdp + .forgotPassword( + cognito.ForgotPasswordRequest.build((b) { + b + ..clientId = _authOutputs.userPoolClientId + ..username = username + ..analyticsMetadata = _analyticsMetadata?.toBuilder() + ..clientMetadata.addAll(pluginOptions.clientMetadata); + + // ignore: invalid_use_of_internal_member + final clientSecret = _authOutputs.appClientSecret; + if (clientSecret != null) { + b.secretHash = computeSecretHash( + username, + _authOutputs.userPoolClientId!, + clientSecret, + ); + } + + if (userContextData != null) { + b.userContextData.replace(userContextData); + } + }), + ) + .result; final codeDeliveryDetails = result.codeDeliveryDetails?.asAuthCodeDeliveryDetails; @@ -811,31 +801,33 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface defaultPluginOptions: const CognitoConfirmResetPasswordPluginOptions(), ); final userContextData = await _getContextData(username); - await _cognitoIdp.confirmForgotPassword( - cognito.ConfirmForgotPasswordRequest.build((b) { - b - ..username = username - ..password = newPassword - ..confirmationCode = confirmationCode - ..clientId = _authOutputs.userPoolClientId - ..clientMetadata.addAll(pluginOptions.clientMetadata) - ..analyticsMetadata = _analyticsMetadata?.toBuilder(); - - // ignore: invalid_use_of_internal_member - final clientSecret = _authOutputs.appClientSecret; - if (clientSecret != null) { - b.secretHash = computeSecretHash( - username, - _authOutputs.userPoolClientId!, - clientSecret, - ); - } - - if (userContextData != null) { - b.userContextData.replace(userContextData); - } - }), - ).result; + await _cognitoIdp + .confirmForgotPassword( + cognito.ConfirmForgotPasswordRequest.build((b) { + b + ..username = username + ..password = newPassword + ..confirmationCode = confirmationCode + ..clientId = _authOutputs.userPoolClientId + ..clientMetadata.addAll(pluginOptions.clientMetadata) + ..analyticsMetadata = _analyticsMetadata?.toBuilder(); + + // ignore: invalid_use_of_internal_member + final clientSecret = _authOutputs.appClientSecret; + if (clientSecret != null) { + b.secretHash = computeSecretHash( + username, + _authOutputs.userPoolClientId!, + clientSecret, + ); + } + + if (userContextData != null) { + b.userContextData.replace(userContextData); + } + }), + ) + .result; return const CognitoResetPasswordResult( isPasswordReset: true, @@ -847,10 +839,10 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface Future getCurrentUser({ GetCurrentUserOptions? options, }) async { - final credentialsState = - await stateMachine.acceptAndComplete( - const CredentialStoreEvent.loadCredentialStore(), - ); + final credentialsState = await stateMachine + .acceptAndComplete( + const CredentialStoreEvent.loadCredentialStore(), + ); final credentials = credentialsState.data; final signInDetails = credentials.signInDetails; // Per the `federateToIdentityPool` design, users cannot access user pool @@ -877,9 +869,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface /// {@endtemplate} Future fetchMfaPreference() async { final tokens = await _stateMachine.getUserPoolTokens(); - return _cognitoIdp.getMfaSettings( - accessToken: tokens.accessToken.raw, - ); + return _cognitoIdp.getMfaSettings(accessToken: tokens.accessToken.raw); } /// {@template amplify_core.amplify_auth_category.update_mfa_preference} @@ -905,14 +895,12 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface } @override - Future setUpTotp({ - TotpSetupOptions? options, - }) async { + Future setUpTotp({TotpSetupOptions? options}) async { final machine = _stateMachine.getOrCreate(TotpSetupStateMachine.type); - final state = - await machine.dispatchAndComplete( - const TotpSetupEvent.initiate(), - ); + final state = await machine + .dispatchAndComplete( + const TotpSetupEvent.initiate(), + ); return state.result; } @@ -1011,14 +999,15 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface late GetDeviceResponse response; try { - response = await _cognitoIdp - .getDevice( - cognito.GetDeviceRequest( - deviceKey: deviceKey, - accessToken: tokens.accessToken.raw, - ), - ) - .result; + response = + await _cognitoIdp + .getDevice( + cognito.GetDeviceRequest( + deviceKey: deviceKey, + accessToken: tokens.accessToken.raw, + ), + ) + .result; } on Exception catch (error) { throw AuthException.fromException(error); } @@ -1047,15 +1036,16 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface do { final tokens = await stateMachine.getUserPoolTokens(); const devicePageLimit = 60; - final resp = await _cognitoIdp - .listDevices( - cognito.ListDevicesRequest( - accessToken: tokens.accessToken.raw, - limit: devicePageLimit, - paginationToken: paginationToken, - ), - ) - .result; + final resp = + await _cognitoIdp + .listDevices( + cognito.ListDevicesRequest( + accessToken: tokens.accessToken.raw, + limit: devicePageLimit, + paginationToken: paginationToken, + ), + ) + .result; final devices = resp.devices ?? const []; for (final device in devices) { final attributes = @@ -1084,9 +1074,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface } @override - Future signOut({ - SignOutOptions? options, - }) async { + Future signOut({SignOutOptions? options}) async { options ??= const SignOutOptions(); final result = await stateMachine.acceptAndComplete( @@ -1096,15 +1084,14 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface final signOutResult = switch (result) { SignOutSuccess _ => const CognitoSignOutResult.complete(), SignOutPartialFailure _ => CognitoSignOutResult.partial( - hostedUiException: result.hostedUiException, - globalSignOutException: result.globalSignOutException, - revokeTokenException: result.revokeTokenException, - ), + hostedUiException: result.hostedUiException, + globalSignOutException: result.globalSignOutException, + revokeTokenException: result.revokeTokenException, + ), SignOutFailure(:final exception) => CognitoSignOutResult.failed( - AuthException.fromException(exception), - ), - SignOutIdle _ || - SignOutSigningOut _ => + AuthException.fromException(exception), + ), + SignOutIdle _ || SignOutSigningOut _ => // This should never happen. throw UnknownException( 'Sign in could not be completed', @@ -1122,9 +1109,7 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface final tokens = await stateMachine.getUserPoolTokens(); await _cognitoIdp .deleteUser( - cognito.DeleteUserRequest( - accessToken: tokens.accessToken.raw, - ), + cognito.DeleteUserRequest(accessToken: tokens.accessToken.raw), ) .result; await stateMachine.acceptAndComplete( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/cognito_keys.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/cognito_keys.dart index a100198fd2..235de5b28a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/cognito_keys.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/cognito_keys.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_auth_cognito.credentials.cognito_keys; +library; import 'dart:collection'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/device_metadata_repository.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/device_metadata_repository.dart index f3e3521e85..14571464ba 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/device_metadata_repository.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/device_metadata_repository.dart @@ -15,10 +15,7 @@ import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; /// {@endtemplate} class DeviceMetadataRepository { /// {@macro amplify_auth_cognito_dart.credentials.device_metadata_repository} - const DeviceMetadataRepository( - this._authOutputs, - this._secureStorage, - ); + const DeviceMetadataRepository(this._authOutputs, this._secureStorage); /// {@macro amplify_auth_cognito_dart.credentials.device_metadata_repository} factory DeviceMetadataRepository.fromDependencies( @@ -28,10 +25,7 @@ class DeviceMetadataRepository { if (authOutputs.userPoolClientId == null) { throw const InvalidAccountTypeException.noUserPool(); } - return DeviceMetadataRepository( - authOutputs, - dependencies.getOrCreate(), - ); + return DeviceMetadataRepository(authOutputs, dependencies.getOrCreate()); } final AuthOutputs _authOutputs; @@ -40,8 +34,10 @@ class DeviceMetadataRepository { /// Retrieves the device secrets for [username]. Future get(String username) async { CognitoDeviceSecrets? deviceSecrets; - final deviceKeys = - CognitoDeviceKeys(_authOutputs.userPoolClientId!, username); + final deviceKeys = CognitoDeviceKeys( + _authOutputs.userPoolClientId!, + username, + ); final deviceKey = await _secureStorage.read( key: deviceKeys[CognitoDeviceKey.deviceKey], ); @@ -56,13 +52,15 @@ class DeviceMetadataRepository { ); if (deviceKey != null && deviceGroupKey != null && devicePassword != null) { deviceSecrets = CognitoDeviceSecrets( - (b) => b - ..deviceKey = deviceKey - ..deviceGroupKey = deviceGroupKey - ..devicePassword = devicePassword - ..deviceStatus = deviceStatus == null - ? null - : DeviceRememberedStatusType.values.byValue(deviceStatus), + (b) => + b + ..deviceKey = deviceKey + ..deviceGroupKey = deviceGroupKey + ..devicePassword = devicePassword + ..deviceStatus = + deviceStatus == null + ? null + : DeviceRememberedStatusType.values.byValue(deviceStatus), ); } return deviceSecrets; @@ -70,8 +68,10 @@ class DeviceMetadataRepository { /// Save the [deviceSecrets] for [username]. Future put(String username, CognitoDeviceSecrets deviceSecrets) async { - final deviceKeys = - CognitoDeviceKeys(_authOutputs.userPoolClientId!, username); + final deviceKeys = CognitoDeviceKeys( + _authOutputs.userPoolClientId!, + username, + ); await _secureStorage.write( key: deviceKeys[CognitoDeviceKey.deviceKey], value: deviceSecrets.deviceKey, @@ -92,8 +92,10 @@ class DeviceMetadataRepository { /// Clears the device secrets for [username]. Future remove(String username) async { - final deviceKeys = - CognitoDeviceKeys(_authOutputs.userPoolClientId!, username); + final deviceKeys = CognitoDeviceKeys( + _authOutputs.userPoolClientId!, + username, + ); for (final key in deviceKeys) { await _secureStorage.delete(key: key); } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/legacy_credential_provider.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/legacy_credential_provider.dart index 2ffeeaaf91..c751f037d7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/legacy_credential_provider.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/legacy_credential_provider.dart @@ -13,9 +13,7 @@ abstract interface class LegacyCredentialProvider { const LegacyCredentialProvider(); /// Fetches legacy credentials if they are present. - Future fetchLegacyCredentials( - AuthOutputs authOutputs, - ); + Future fetchLegacyCredentials(AuthOutputs authOutputs); /// Fetches legacy device secrets if they are present. Future fetchLegacyDeviceSecrets( @@ -24,9 +22,7 @@ abstract interface class LegacyCredentialProvider { ); /// Deletes legacy credentials if they are present. - Future deleteLegacyCredentials( - AuthOutputs authOutputs, - ); + Future deleteLegacyCredentials(AuthOutputs authOutputs); /// Deletes legacy device secrets if they are present. Future deleteLegacyDeviceSecrets( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/secure_storage_extension.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/secure_storage_extension.dart index 87ec2436ef..072cedb083 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/secure_storage_extension.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/credentials/secure_storage_extension.dart @@ -18,10 +18,6 @@ extension SecureStorageInterfaceX on SecureStorageInterface { /// Delete all key-value pairs from storage Future deleteMany(Iterable keys) { - return Future.wait( - keys.map( - (key) async => delete(key: key), - ), - ); + return Future.wait(keys.map((key) async => delete(key: key))); } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/hkdf.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/hkdf.dart index e6dae0dff8..6ce6f91fc8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/hkdf.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/hkdf.dart @@ -43,10 +43,11 @@ final class HkdfSha256 { final outputKeyMaterial = Uint8List(length); for (var i = 1; i <= numHashes; i++) { - final block = BytesBuilder() - ..add(hashedBlock) - ..add(info) - ..addByte(i); + final block = + BytesBuilder() + ..add(hashedBlock) + ..add(info) + ..addByte(i); hashedBlock = hmac.convert(block.toBytes()).bytes; outputKeyMaterial.setRange( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/oauth.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/oauth.dart index 297cbdaccd..af74d1d4c1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/oauth.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/crypto/oauth.dart @@ -3,7 +3,7 @@ /// Utilities for the OAuth flow. @internal -library amplify_auth_cognito.crypto.oauth; +library; import 'dart:convert'; import 'dart:typed_data'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/exception/device_not_tracked_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/exception/device_not_tracked_exception.dart index 09a6104b45..74bf794f64 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/exception/device_not_tracked_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/exception/device_not_tracked_exception.dart @@ -13,9 +13,9 @@ final class DeviceNotTrackedException extends AuthServiceException { super.recoverySuggestion, super.underlyingException, }) : super( - 'This device does not have an id, either it was never tracked or ' - 'previously forgotten.', - ); + 'This device does not have an id, either it was never tracked or ' + 'previously forgotten.', + ); @override String get runtimeTypeName => 'DeviceNotTrackedException'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/exception/invalid_account_type_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/exception/invalid_account_type_exception.dart index 8d99599d0e..74be44a47d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/exception/invalid_account_type_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/exception/invalid_account_type_exception.dart @@ -20,17 +20,17 @@ final class InvalidAccountTypeException extends AuthServiceException { const InvalidAccountTypeException.noIdentityPool({ String recoverySuggestion = 'Register an identity pool using the CLI', }) : this( - 'No identity pool registered for this account', - recoverySuggestion: recoverySuggestion, - ); + 'No identity pool registered for this account', + recoverySuggestion: recoverySuggestion, + ); /// Thrown when no user pool is available, but a user pool operation /// was explicitly requested. const InvalidAccountTypeException.noUserPool() - : this( - 'No user pool registered for this account', - recoverySuggestion: 'Register a user pool using the CLI', - ); + : this( + 'No user pool registered for this account', + recoverySuggestion: 'Register a user pool using the CLI', + ); @override String get runtimeTypeName => 'InvalidAccountTypeException'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/exception/srp_error.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/exception/srp_error.dart index a64e6fddb2..2e6aa83d37 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/exception/srp_error.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/exception/srp_error.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_auth_cognito_dart.exception.srp_error; +library; import 'package:amplify_core/amplify_core.dart'; import 'package:meta/meta.dart'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.dart index 45a3863b55..b50126e625 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.dart @@ -95,23 +95,22 @@ abstract class ConfirmDeviceWorker // Generate a random BigInt final salt = encodeBigInt(decodeBigInt(getRandomBytes(16))); - final verifier = SrpHelper.calculateDeviceVerifier( - salt, - deviceKeyHash, - ); + final verifier = SrpHelper.calculateDeviceVerifier(salt, deviceKeyHash); final request = ConfirmDeviceRequest.build((b) { b ..accessToken = accessToken ..deviceKey = deviceKey - ..deviceSecretVerifierConfig.passwordVerifier = - base64Encode(encodeBigInt(verifier)) + ..deviceSecretVerifierConfig.passwordVerifier = base64Encode( + encodeBigInt(verifier), + ) ..deviceSecretVerifierConfig.salt = base64Encode(salt); }); respond.add( ConfirmDeviceResponse( - (b) => b - ..request.replace(request) - ..devicePassword = devicePassword, + (b) => + b + ..request.replace(request) + ..devicePassword = devicePassword, ), ); } @@ -121,12 +120,10 @@ abstract class ConfirmDeviceWorker } /// Serializers for the [ConfirmDeviceWorker] worker. -@SerializersFor([ - ConfirmDeviceMessage, - ConfirmDeviceResponse, -]) -final Serializers _serializers = (_$_serializers.toBuilder() - ..addAll(NewDeviceMetadataType.serializers) - ..addAll(ConfirmDeviceRequest.serializers) - ..addAll(DeviceSecretVerifierConfigType.serializers)) - .build(); +@SerializersFor([ConfirmDeviceMessage, ConfirmDeviceResponse]) +final Serializers _serializers = + (_$_serializers.toBuilder() + ..addAll(NewDeviceMetadataType.serializers) + ..addAll(ConfirmDeviceRequest.serializers) + ..addAll(DeviceSecretVerifierConfigType.serializers)) + .build(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.g.dart index bedb37768f..4aa61766b4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.g.dart @@ -6,10 +6,11 @@ part of 'confirm_device_worker.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$_serializers = (new Serializers().toBuilder() - ..add(ConfirmDeviceMessage.serializer) - ..add(ConfirmDeviceResponse.serializer)) - .build(); +Serializers _$_serializers = + (new Serializers().toBuilder() + ..add(ConfirmDeviceMessage.serializer) + ..add(ConfirmDeviceResponse.serializer)) + .build(); Serializer _$confirmDeviceMessageSerializer = new _$ConfirmDeviceMessageSerializer(); Serializer _$confirmDeviceResponseSerializer = @@ -20,22 +21,28 @@ class _$ConfirmDeviceMessageSerializer @override final Iterable types = const [ ConfirmDeviceMessage, - _$ConfirmDeviceMessage + _$ConfirmDeviceMessage, ]; @override final String wireName = 'ConfirmDeviceMessage'; @override Iterable serialize( - Serializers serializers, ConfirmDeviceMessage object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + ConfirmDeviceMessage object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'accessToken', - serializers.serialize(object.accessToken, - specifiedType: const FullType(String)), + serializers.serialize( + object.accessToken, + specifiedType: const FullType(String), + ), 'newDeviceMetadata', - serializers.serialize(object.newDeviceMetadata, - specifiedType: const FullType(NewDeviceMetadataType)), + serializers.serialize( + object.newDeviceMetadata, + specifiedType: const FullType(NewDeviceMetadataType), + ), ]; return result; @@ -43,8 +50,10 @@ class _$ConfirmDeviceMessageSerializer @override ConfirmDeviceMessage deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ConfirmDeviceMessageBuilder(); final iterator = serialized.iterator; @@ -54,13 +63,21 @@ class _$ConfirmDeviceMessageSerializer final Object? value = iterator.current; switch (key) { case 'accessToken': - result.accessToken = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.accessToken = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'newDeviceMetadata': - result.newDeviceMetadata.replace(serializers.deserialize(value, - specifiedType: const FullType(NewDeviceMetadataType))! - as NewDeviceMetadataType); + result.newDeviceMetadata.replace( + serializers.deserialize( + value, + specifiedType: const FullType(NewDeviceMetadataType), + )! + as NewDeviceMetadataType, + ); break; } } @@ -74,22 +91,28 @@ class _$ConfirmDeviceResponseSerializer @override final Iterable types = const [ ConfirmDeviceResponse, - _$ConfirmDeviceResponse + _$ConfirmDeviceResponse, ]; @override final String wireName = 'ConfirmDeviceResponse'; @override Iterable serialize( - Serializers serializers, ConfirmDeviceResponse object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + ConfirmDeviceResponse object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'devicePassword', - serializers.serialize(object.devicePassword, - specifiedType: const FullType(String)), + serializers.serialize( + object.devicePassword, + specifiedType: const FullType(String), + ), 'request', - serializers.serialize(object.request, - specifiedType: const FullType(ConfirmDeviceRequest)), + serializers.serialize( + object.request, + specifiedType: const FullType(ConfirmDeviceRequest), + ), ]; return result; @@ -97,8 +120,10 @@ class _$ConfirmDeviceResponseSerializer @override ConfirmDeviceResponse deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ConfirmDeviceResponseBuilder(); final iterator = serialized.iterator; @@ -108,13 +133,21 @@ class _$ConfirmDeviceResponseSerializer final Object? value = iterator.current; switch (key) { case 'devicePassword': - result.devicePassword = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.devicePassword = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'request': - result.request.replace(serializers.deserialize(value, - specifiedType: const FullType(ConfirmDeviceRequest))! - as ConfirmDeviceRequest); + result.request.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ConfirmDeviceRequest), + )! + as ConfirmDeviceRequest, + ); break; } } @@ -129,23 +162,30 @@ class _$ConfirmDeviceMessage extends ConfirmDeviceMessage { @override final NewDeviceMetadataType newDeviceMetadata; - factory _$ConfirmDeviceMessage( - [void Function(ConfirmDeviceMessageBuilder)? updates]) => - (new ConfirmDeviceMessageBuilder()..update(updates))._build(); + factory _$ConfirmDeviceMessage([ + void Function(ConfirmDeviceMessageBuilder)? updates, + ]) => (new ConfirmDeviceMessageBuilder()..update(updates))._build(); - _$ConfirmDeviceMessage._( - {required this.accessToken, required this.newDeviceMetadata}) - : super._() { + _$ConfirmDeviceMessage._({ + required this.accessToken, + required this.newDeviceMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'ConfirmDeviceMessage', 'accessToken'); + accessToken, + r'ConfirmDeviceMessage', + 'accessToken', + ); BuiltValueNullFieldError.checkNotNull( - newDeviceMetadata, r'ConfirmDeviceMessage', 'newDeviceMetadata'); + newDeviceMetadata, + r'ConfirmDeviceMessage', + 'newDeviceMetadata', + ); } @override ConfirmDeviceMessage rebuild( - void Function(ConfirmDeviceMessageBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmDeviceMessageBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmDeviceMessageBuilder toBuilder() => @@ -220,10 +260,14 @@ class ConfirmDeviceMessageBuilder _$ConfirmDeviceMessage _build() { _$ConfirmDeviceMessage _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ConfirmDeviceMessage._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'ConfirmDeviceMessage', 'accessToken'), + accessToken, + r'ConfirmDeviceMessage', + 'accessToken', + ), newDeviceMetadata: newDeviceMetadata.build(), ); } catch (_) { @@ -233,7 +277,10 @@ class ConfirmDeviceMessageBuilder newDeviceMetadata.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ConfirmDeviceMessage', _$failedField, e.toString()); + r'ConfirmDeviceMessage', + _$failedField, + e.toString(), + ); } rethrow; } @@ -248,23 +295,30 @@ class _$ConfirmDeviceResponse extends ConfirmDeviceResponse { @override final ConfirmDeviceRequest request; - factory _$ConfirmDeviceResponse( - [void Function(ConfirmDeviceResponseBuilder)? updates]) => - (new ConfirmDeviceResponseBuilder()..update(updates))._build(); + factory _$ConfirmDeviceResponse([ + void Function(ConfirmDeviceResponseBuilder)? updates, + ]) => (new ConfirmDeviceResponseBuilder()..update(updates))._build(); - _$ConfirmDeviceResponse._( - {required this.devicePassword, required this.request}) - : super._() { + _$ConfirmDeviceResponse._({ + required this.devicePassword, + required this.request, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - devicePassword, r'ConfirmDeviceResponse', 'devicePassword'); + devicePassword, + r'ConfirmDeviceResponse', + 'devicePassword', + ); BuiltValueNullFieldError.checkNotNull( - request, r'ConfirmDeviceResponse', 'request'); + request, + r'ConfirmDeviceResponse', + 'request', + ); } @override ConfirmDeviceResponse rebuild( - void Function(ConfirmDeviceResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmDeviceResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmDeviceResponseBuilder toBuilder() => @@ -340,10 +394,14 @@ class ConfirmDeviceResponseBuilder _$ConfirmDeviceResponse _build() { _$ConfirmDeviceResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ConfirmDeviceResponse._( devicePassword: BuiltValueNullFieldError.checkNotNull( - devicePassword, r'ConfirmDeviceResponse', 'devicePassword'), + devicePassword, + r'ConfirmDeviceResponse', + 'devicePassword', + ), request: request.build(), ); } catch (_) { @@ -353,7 +411,10 @@ class ConfirmDeviceResponseBuilder request.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ConfirmDeviceResponse', _$failedField, e.toString()); + r'ConfirmDeviceResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.dart index acc6892750..e908e39238 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.dart @@ -1,3 +1,4 @@ +// dart format width=80 // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.js.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.js.dart index 7ac15bcd8b..13a1430b55 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.js.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.js.dart @@ -29,18 +29,17 @@ class ConfirmDeviceWorkerImpl extends ConfirmDeviceWorker { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' - : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' + : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.vm.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.vm.dart index 6a76f9c9dd..22d263a967 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.vm.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/device/confirm_device_worker.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/helpers.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/helpers.dart index 7a87aca425..648d94aa62 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/helpers.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/helpers.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_auth_cognito.flow.helpers; +library; import 'dart:convert'; @@ -10,11 +10,7 @@ import 'package:crypto/crypto.dart'; import 'package:meta/meta.dart'; /// Computes the client's secret hash for use in Cognito operations. -String computeSecretHash( - String userId, - String clientId, - String clientSecret, -) { +String computeSecretHash(String userId, String clientId, String clientSecret) { final message = '$userId$clientId'; final keyBytes = utf8.encode(clientSecret); final messageBytes = utf8.encode(message); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform.dart index 4d1a33ca63..3737f6b540 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform.dart @@ -23,9 +23,8 @@ import 'package:meta/meta.dart'; import 'package:oauth2/oauth2.dart' as oauth2; /// A factory constructor for a [HostedUiPlatform] instance. -typedef HostedUiPlatformFactory = HostedUiPlatform Function( - DependencyManager dependencyManager, -); +typedef HostedUiPlatformFactory = + HostedUiPlatform Function(DependencyManager dependencyManager); /// {@template amplify_auth_cognito.hosted_ui_platform} /// Platform-specific behavior for the Hosted UI flow. @@ -103,19 +102,13 @@ abstract class HostedUiPlatform implements Closeable { @protected @visibleForTesting @nonVirtual - Future getSignInUri({ - Uri? redirectUri, - AuthProvider? provider, - }) async { + Future getSignInUri({Uri? redirectUri, AuthProvider? provider}) async { final state = generateState(); final codeVerifier = createCodeVerifier(); await Future.wait( [ - _secureStorage.write( - key: _keys[HostedUiKey.state], - value: state, - ), + _secureStorage.write(key: _keys[HostedUiKey.state], value: state), _secureStorage.write( key: _keys[HostedUiKey.codeVerifier], value: codeVerifier, @@ -124,7 +117,8 @@ abstract class HostedUiPlatform implements Closeable { ); _authCodeGrant = createGrant( - authOutputs.oauth!, authOutputs.userPoolClientId!, + authOutputs.oauth!, + authOutputs.userPoolClientId!, // ignore: invalid_use_of_internal_member appClientSecret: authOutputs.appClientSecret, codeVerifier: codeVerifier, @@ -138,9 +132,7 @@ abstract class HostedUiPlatform implements Closeable { ); return uri.replace( - queryParameters: { - ...uri.queryParameters, - }, + queryParameters: {...uri.queryParameters}, ); } @@ -149,8 +141,9 @@ abstract class HostedUiPlatform implements Closeable { @visibleForTesting @nonVirtual Uri getSignOutUri({Uri? redirectUri}) { - final signOutUri = HostedUiConfig(authOutputs.oauth!) - .signOutUri(authOutputs.userPoolClientId!); + final signOutUri = HostedUiConfig( + authOutputs.oauth!, + ).signOutUri(authOutputs.userPoolClientId!); return signOutUri.replace( queryParameters: { @@ -296,9 +289,7 @@ abstract class HostedUiPlatform implements Closeable { Future cancelSignIn() async {} /// Sign out the current user. - Future signOut({ - required CognitoSignInWithWebUIPluginOptions options, - }); + Future signOut({required CognitoSignInWithWebUIPluginOptions options}); @override FutureOr close() {} diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_html.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_html.dart index 159029e6cc..2112676d35 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_html.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_html.dart @@ -31,19 +31,19 @@ class HostedUiPlatformImpl extends HostedUiPlatform { @override Uri get signInRedirectUri => Uri.parse( - authOutputs.oauth!.redirectSignInUri.firstWhere( - (uri) => uri.startsWith(_baseUrl), - orElse: () => _noSuitableRedirect(signIn: true), - ), - ); + authOutputs.oauth!.redirectSignInUri.firstWhere( + (uri) => uri.startsWith(_baseUrl), + orElse: () => _noSuitableRedirect(signIn: true), + ), + ); @override Uri get signOutRedirectUri => Uri.parse( - authOutputs.oauth!.redirectSignOutUri.firstWhere( - (uri) => uri.startsWith(_baseUrl), - orElse: () => _noSuitableRedirect(signIn: false), - ), - ); + authOutputs.oauth!.redirectSignOutUri.firstWhere( + (uri) => uri.startsWith(_baseUrl), + orElse: () => _noSuitableRedirect(signIn: false), + ), + ); /// Launches the given URL. Future launchUrl(String url) async { diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_io.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_io.dart index c05eb28d6e..42667c22f2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_io.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_io.dart @@ -99,9 +99,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { @override Uri get signInRedirectUri => authOutputs.oauth!.redirectSignInUri - .map( - Uri.parse, - ) + .map(Uri.parse) .firstWhere( (uri) => uri.scheme == 'http' && @@ -111,9 +109,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { @override Uri get signOutRedirectUri => authOutputs.oauth!.redirectSignOutUri - .map( - Uri.parse, - ) + .map(Uri.parse) .firstWhere( (uri) => uri.scheme == 'http' && @@ -153,10 +149,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { ); } } on Exception catch (e) { - throw UrlLauncherException( - couldNotLaunch, - underlyingException: e, - ); + throw UrlLauncherException(couldNotLaunch, underlyingException: e); } } @@ -172,10 +165,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { late Uri selectedUri; for (final uri in uris) { try { - server = await HttpServer.bind( - InternetAddress.loopbackIPv4, - uri.port, - ); + server = await HttpServer.bind(InternetAddress.loopbackIPv4, uri.port); selectedUri = uri; break; } on Exception { @@ -211,9 +201,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { AuthProvider? provider, }) async { final signInUris = authOutputs.oauth!.redirectSignInUri - .map( - Uri.parse, - ) + .map(Uri.parse) .where( (uri) => uri.scheme == 'http' && @@ -225,11 +213,11 @@ class HostedUiPlatformImpl extends HostedUiPlatform { final localServer = await localConnect(signInUris); try { - final signInUrl = (await getSignInUri( - provider: provider, - redirectUri: localServer.uri, - )) - .toString(); + final signInUrl = + (await getSignInUri( + provider: provider, + redirectUri: localServer.uri, + )).toString(); await launchUrl(signInUrl); await for (final request in localServer.server) { @@ -250,27 +238,19 @@ class HostedUiPlatformImpl extends HostedUiPlatform { if ((!queryParams.containsKey('code') && !queryParams.containsKey('error')) || !queryParams.containsKey('state')) { - await _respond( - request, - HttpStatus.badRequest, - 'Missing parameter', - ); + await _respond(request, HttpStatus.badRequest, 'Missing parameter'); continue; } dispatcher .dispatch( - HostedUiEvent.exchange( - OAuthParameters.fromJson(queryParams), - ), + HostedUiEvent.exchange(OAuthParameters.fromJson(queryParams)), ) .ignore(); await _respond( request, HttpStatus.ok, _htmlForParams(queryParams, signIn: true), - headers: { - AWSHeaders.contentType: 'text/html', - }, + headers: {AWSHeaders.contentType: 'text/html'}, ); break; } @@ -287,9 +267,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { required CognitoSignInWithWebUIPluginOptions options, }) async { final signOutUris = authOutputs.oauth!.redirectSignOutUri - .map( - Uri.parse, - ) + .map(Uri.parse) .where( (uri) => uri.scheme == 'http' && @@ -323,9 +301,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { request, HttpStatus.ok, _htmlForParams(queryParams, signIn: false), - headers: { - AWSHeaders.contentType: 'text/html', - }, + headers: {AWSHeaders.contentType: 'text/html'}, ); break; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart index ade59c7cbd..d54de33252 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/hosted_ui/hosted_ui_platform_stub.dart @@ -18,9 +18,7 @@ class HostedUiPlatformImpl extends HostedUiPlatform { } @override - Future signOut({ - required CognitoSignInWithWebUIPluginOptions options, - }) { + Future signOut({required CognitoSignInWithWebUIPluginOptions options}) { throw UnimplementedError(); } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.dart index f68912418a..5702efbbda 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.dart @@ -24,8 +24,10 @@ part 'srp_device_password_verifier_worker.g.dart'; @BuiltValue(nestedBuilders: false) abstract class SrpDevicePasswordVerifierMessage implements - Built { + Built< + SrpDevicePasswordVerifierMessage, + SrpDevicePasswordVerifierMessageBuilder + > { /// {@macro amplify_auth_cognito.srp_device_password_verifier_message} factory SrpDevicePasswordVerifierMessage([ void Function(SrpDevicePasswordVerifierMessageBuilder) updates, @@ -57,8 +59,12 @@ abstract class SrpDevicePasswordVerifierMessage /// Worker bee for handling the SRP device password verifier challenge routine. /// {@endtemplate} @WorkerBee('lib/src/workers/workers.dart') -abstract class SrpDevicePasswordVerifierWorker extends WorkerBeeBase< - SrpDevicePasswordVerifierMessage, RespondToAuthChallengeRequest> { +abstract class SrpDevicePasswordVerifierWorker + extends + WorkerBeeBase< + SrpDevicePasswordVerifierMessage, + RespondToAuthChallengeRequest + > { /// {@macro amplify_auth_cognito.srp_device_password_verifier_worker} SrpDevicePasswordVerifierWorker() : super(serializers: serializers); @@ -117,10 +123,12 @@ abstract class SrpDevicePasswordVerifierWorker extends WorkerBeeBase< b ..clientId = clientId ..challengeName = ChallengeNameType.devicePasswordVerifier - ..challengeResponses[ - CognitoConstants.challengeParamPasswordSecretBlock] = secretBlock - ..challengeResponses[ - CognitoConstants.challengeParamPasswordSignature] = encodedClaim + ..challengeResponses[CognitoConstants + .challengeParamPasswordSecretBlock] = + secretBlock + ..challengeResponses[CognitoConstants + .challengeParamPasswordSignature] = + encodedClaim ..challengeResponses[CognitoConstants.challengeParamUsername] = username ..challengeResponses[CognitoConstants.challengeParamTimestamp] = @@ -141,15 +149,13 @@ abstract class SrpDevicePasswordVerifierWorker extends WorkerBeeBase< } /// Serializers for the [SrpDevicePasswordVerifierWorker] worker. -@SerializersFor([ - SrpDevicePasswordVerifierMessage, -]) -final Serializers serializers = (_$serializers.toBuilder() - ..addAll(const [ - ...RespondToAuthChallengeRequest.serializers, - ...AnalyticsMetadataType.serializers, - ...ChallengeNameType.serializers, - ...UserContextDataType.serializers, - ...DeviceRememberedStatusType.serializers, - ])) - .build(); +@SerializersFor([SrpDevicePasswordVerifierMessage]) +final Serializers serializers = + (_$serializers.toBuilder()..addAll(const [ + ...RespondToAuthChallengeRequest.serializers, + ...AnalyticsMetadataType.serializers, + ...ChallengeNameType.serializers, + ...UserContextDataType.serializers, + ...DeviceRememberedStatusType.serializers, + ])) + .build(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.g.dart index 77f21f20ba..cd5b165196 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.g.dart @@ -6,17 +6,21 @@ part of 'srp_device_password_verifier_worker.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$serializers = (new Serializers().toBuilder() - ..add(CognitoDeviceSecrets.serializer) - ..add(SrpDevicePasswordVerifierMessage.serializer) - ..add(SrpInitResult.serializer) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder())) - .build(); +Serializers _$serializers = + (new Serializers().toBuilder() + ..add(CognitoDeviceSecrets.serializer) + ..add(SrpDevicePasswordVerifierMessage.serializer) + ..add(SrpInitResult.serializer) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + () => new MapBuilder(), + )) + .build(); Serializer - _$srpDevicePasswordVerifierMessageSerializer = +_$srpDevicePasswordVerifierMessageSerializer = new _$SrpDevicePasswordVerifierMessageSerializer(); class _$SrpDevicePasswordVerifierMessageSerializer @@ -24,45 +28,60 @@ class _$SrpDevicePasswordVerifierMessageSerializer @override final Iterable types = const [ SrpDevicePasswordVerifierMessage, - _$SrpDevicePasswordVerifierMessage + _$SrpDevicePasswordVerifierMessage, ]; @override final String wireName = 'SrpDevicePasswordVerifierMessage'; @override Iterable serialize( - Serializers serializers, SrpDevicePasswordVerifierMessage object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + SrpDevicePasswordVerifierMessage object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'initResult', - serializers.serialize(object.initResult, - specifiedType: const FullType(SrpInitResult)), + serializers.serialize( + object.initResult, + specifiedType: const FullType(SrpInitResult), + ), 'clientId', - serializers.serialize(object.clientId, - specifiedType: const FullType(String)), + serializers.serialize( + object.clientId, + specifiedType: const FullType(String), + ), 'deviceSecrets', - serializers.serialize(object.deviceSecrets, - specifiedType: const FullType(CognitoDeviceSecrets)), + serializers.serialize( + object.deviceSecrets, + specifiedType: const FullType(CognitoDeviceSecrets), + ), 'challengeParameters', - serializers.serialize(object.challengeParameters, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(String)])), + serializers.serialize( + object.challengeParameters, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + ), ]; Object? value; value = object.clientSecret; if (value != null) { result ..add('clientSecret') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override SrpDevicePasswordVerifierMessage deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new SrpDevicePasswordVerifierMessageBuilder(); final iterator = serialized.iterator; @@ -72,28 +91,47 @@ class _$SrpDevicePasswordVerifierMessageSerializer final Object? value = iterator.current; switch (key) { case 'initResult': - result.initResult = serializers.deserialize(value, - specifiedType: const FullType(SrpInitResult))! as SrpInitResult; + result.initResult = + serializers.deserialize( + value, + specifiedType: const FullType(SrpInitResult), + )! + as SrpInitResult; break; case 'clientId': - result.clientId = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.clientId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'clientSecret': - result.clientSecret = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.clientSecret = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'deviceSecrets': - result.deviceSecrets = serializers.deserialize(value, - specifiedType: const FullType(CognitoDeviceSecrets))! - as CognitoDeviceSecrets; + result.deviceSecrets = + serializers.deserialize( + value, + specifiedType: const FullType(CognitoDeviceSecrets), + )! + as CognitoDeviceSecrets; break; case 'challengeParameters': - result.challengeParameters = serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, const [ - const FullType(String), - const FullType(String) - ]))! as BuiltMap; + result.challengeParameters = + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + )! + as BuiltMap; break; } } @@ -115,31 +153,44 @@ class _$SrpDevicePasswordVerifierMessage @override final BuiltMap challengeParameters; - factory _$SrpDevicePasswordVerifierMessage( - [void Function(SrpDevicePasswordVerifierMessageBuilder)? updates]) => + factory _$SrpDevicePasswordVerifierMessage([ + void Function(SrpDevicePasswordVerifierMessageBuilder)? updates, + ]) => (new SrpDevicePasswordVerifierMessageBuilder()..update(updates))._build(); - _$SrpDevicePasswordVerifierMessage._( - {required this.initResult, - required this.clientId, - this.clientSecret, - required this.deviceSecrets, - required this.challengeParameters}) - : super._() { + _$SrpDevicePasswordVerifierMessage._({ + required this.initResult, + required this.clientId, + this.clientSecret, + required this.deviceSecrets, + required this.challengeParameters, + }) : super._() { + BuiltValueNullFieldError.checkNotNull( + initResult, + r'SrpDevicePasswordVerifierMessage', + 'initResult', + ); BuiltValueNullFieldError.checkNotNull( - initResult, r'SrpDevicePasswordVerifierMessage', 'initResult'); + clientId, + r'SrpDevicePasswordVerifierMessage', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - clientId, r'SrpDevicePasswordVerifierMessage', 'clientId'); + deviceSecrets, + r'SrpDevicePasswordVerifierMessage', + 'deviceSecrets', + ); BuiltValueNullFieldError.checkNotNull( - deviceSecrets, r'SrpDevicePasswordVerifierMessage', 'deviceSecrets'); - BuiltValueNullFieldError.checkNotNull(challengeParameters, - r'SrpDevicePasswordVerifierMessage', 'challengeParameters'); + challengeParameters, + r'SrpDevicePasswordVerifierMessage', + 'challengeParameters', + ); } @override SrpDevicePasswordVerifierMessage rebuild( - void Function(SrpDevicePasswordVerifierMessageBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SrpDevicePasswordVerifierMessageBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SrpDevicePasswordVerifierMessageBuilder toBuilder() => @@ -182,8 +233,10 @@ class _$SrpDevicePasswordVerifierMessage class SrpDevicePasswordVerifierMessageBuilder implements - Builder { + Builder< + SrpDevicePasswordVerifierMessage, + SrpDevicePasswordVerifierMessageBuilder + > { _$SrpDevicePasswordVerifierMessage? _$v; SrpInitResult? _initResult; @@ -239,19 +292,30 @@ class SrpDevicePasswordVerifierMessageBuilder SrpDevicePasswordVerifierMessage build() => _build(); _$SrpDevicePasswordVerifierMessage _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SrpDevicePasswordVerifierMessage._( initResult: BuiltValueNullFieldError.checkNotNull( - initResult, r'SrpDevicePasswordVerifierMessage', 'initResult'), + initResult, + r'SrpDevicePasswordVerifierMessage', + 'initResult', + ), clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'SrpDevicePasswordVerifierMessage', 'clientId'), + clientId, + r'SrpDevicePasswordVerifierMessage', + 'clientId', + ), clientSecret: clientSecret, - deviceSecrets: BuiltValueNullFieldError.checkNotNull(deviceSecrets, - r'SrpDevicePasswordVerifierMessage', 'deviceSecrets'), + deviceSecrets: BuiltValueNullFieldError.checkNotNull( + deviceSecrets, + r'SrpDevicePasswordVerifierMessage', + 'deviceSecrets', + ), challengeParameters: BuiltValueNullFieldError.checkNotNull( - challengeParameters, - r'SrpDevicePasswordVerifierMessage', - 'challengeParameters'), + challengeParameters, + r'SrpDevicePasswordVerifierMessage', + 'challengeParameters', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.dart index 32249d5ab2..eb566af070 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.dart @@ -1,3 +1,4 @@ +// dart format width=80 // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.js.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.js.dart index d19e7ed7c0..41cf7da320 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.js.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.js.dart @@ -30,18 +30,17 @@ class SrpDevicePasswordVerifierWorkerImpl .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' - : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' + : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.vm.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.vm.dart index 4c7cbe3723..6ba49bec21 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.vm.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_device_password_verifier_worker.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_helper.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_helper.dart index c3d15bb553..60cc303059 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_helper.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_helper.dart @@ -49,9 +49,10 @@ class SrpHelper { final a = decodeBigInt(aBytes); final A = g.modPow(a, N); return SrpInitResult( - (b) => b - ..privateA = a - ..publicA = A, + (b) => + b + ..privateA = a + ..publicA = A, ); } @@ -157,9 +158,7 @@ class SrpHelper { // The user will abort if he receives B == 0 (mod N) or u == 0. if (u == BigInt.zero) { - throw SrpError( - 'Hash of A and B cannot be zero', - ); + throw SrpError('Hash of A and B cannot be zero'); } // x = H(salt | H(poolName | userId | ":" | password)) @@ -180,14 +179,8 @@ class SrpHelper { // Use HKDF to get final password authentication key // K = H(S) - final hkdf = HkdfSha256( - encodeBigInt(u), - encodeBigInt(second), - ); - return hkdf.expand( - utf8.encode(_derivedKeyInfo), - _derivedKeySizeBytes, - ); + final hkdf = HkdfSha256(encodeBigInt(u), encodeBigInt(second)); + return hkdf.expand(utf8.encode(_derivedKeyInfo), _derivedKeySizeBytes); } /// Creates the device password verifier claim, or signature, for the SRP @@ -238,9 +231,7 @@ class SrpHelper { // The user will abort if he receives B == 0 (mod N) or u == 0. if (publicB % N == BigInt.zero) { - throw SrpError( - 'Hash of A and B cannot be zero', - ); + throw SrpError('Hash of A and B cannot be zero'); } return authenticateUser( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_result.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_result.g.dart index 0d37f5b14b..ccf4ab4d7b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_result.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_result.g.dart @@ -16,15 +16,22 @@ class _$SrpInitResultSerializer implements StructuredSerializer { final String wireName = 'SrpInitResult'; @override - Iterable serialize(Serializers serializers, SrpInitResult object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + SrpInitResult object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'privateA', - serializers.serialize(object.privateA, - specifiedType: const FullType(BigInt)), + serializers.serialize( + object.privateA, + specifiedType: const FullType(BigInt), + ), 'publicA', - serializers.serialize(object.publicA, - specifiedType: const FullType(BigInt)), + serializers.serialize( + object.publicA, + specifiedType: const FullType(BigInt), + ), ]; return result; @@ -32,8 +39,10 @@ class _$SrpInitResultSerializer implements StructuredSerializer { @override SrpInitResult deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new SrpInitResultBuilder(); final iterator = serialized.iterator; @@ -43,12 +52,20 @@ class _$SrpInitResultSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'privateA': - result.privateA = serializers.deserialize(value, - specifiedType: const FullType(BigInt))! as BigInt; + result.privateA = + serializers.deserialize( + value, + specifiedType: const FullType(BigInt), + )! + as BigInt; break; case 'publicA': - result.publicA = serializers.deserialize(value, - specifiedType: const FullType(BigInt))! as BigInt; + result.publicA = + serializers.deserialize( + value, + specifiedType: const FullType(BigInt), + )! + as BigInt; break; } } @@ -67,9 +84,12 @@ class _$SrpInitResult extends SrpInitResult { (new SrpInitResultBuilder()..update(updates))._build(); _$SrpInitResult._({required this.privateA, required this.publicA}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - privateA, r'SrpInitResult', 'privateA'); + privateA, + r'SrpInitResult', + 'privateA', + ); BuiltValueNullFieldError.checkNotNull(publicA, r'SrpInitResult', 'publicA'); } @@ -145,12 +165,19 @@ class SrpInitResultBuilder SrpInitResult build() => _build(); _$SrpInitResult _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SrpInitResult._( privateA: BuiltValueNullFieldError.checkNotNull( - privateA, r'SrpInitResult', 'privateA'), + privateA, + r'SrpInitResult', + 'privateA', + ), publicA: BuiltValueNullFieldError.checkNotNull( - publicA, r'SrpInitResult', 'publicA'), + publicA, + r'SrpInitResult', + 'publicA', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.dart index a42c47e8a8..440c896485 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.dart @@ -52,8 +52,5 @@ abstract class SrpInitWorker } /// Serializers for the [SrpInitWorker] worker. -@SerializersFor([ - SrpInitResult, - SrpInitMessage, -]) +@SerializersFor([SrpInitResult, SrpInitMessage]) final Serializers serializers = _$serializers; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.g.dart index 039c60703a..9d3d355967 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.g.dart @@ -6,10 +6,11 @@ part of 'srp_init_worker.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$serializers = (new Serializers().toBuilder() - ..add(SrpInitMessage.serializer) - ..add(SrpInitResult.serializer)) - .build(); +Serializers _$serializers = + (new Serializers().toBuilder() + ..add(SrpInitMessage.serializer) + ..add(SrpInitResult.serializer)) + .build(); Serializer _$srpInitMessageSerializer = new _$SrpInitMessageSerializer(); @@ -21,15 +22,20 @@ class _$SrpInitMessageSerializer final String wireName = 'SrpInitMessage'; @override - Iterable serialize(Serializers serializers, SrpInitMessage object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + SrpInitMessage object, { + FullType specifiedType = FullType.unspecified, + }) { return []; } @override SrpInitMessage deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { return new SrpInitMessageBuilder().build(); } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.dart index 1c7dae2f94..22b7ca3c08 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.dart @@ -1,3 +1,4 @@ +// dart format width=80 // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.js.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.js.dart index d3db92f44f..3fb626cf4f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.js.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.js.dart @@ -29,18 +29,17 @@ class SrpInitWorkerImpl extends SrpInitWorker { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' - : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' + : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.vm.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.vm.dart index b02aaa6dd8..83325930c6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.vm.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_init_worker.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.dart index b7a885e8b1..ecc4e425fb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.dart @@ -69,8 +69,12 @@ abstract class SrpPasswordVerifierMessage /// Worker bee for handling the SRP password verifier challenge routine. /// {@endtemplate} @WorkerBee('lib/src/workers/workers.dart') -abstract class SrpPasswordVerifierWorker extends WorkerBeeBase< - SrpPasswordVerifierMessage, RespondToAuthChallengeRequest> { +abstract class SrpPasswordVerifierWorker + extends + WorkerBeeBase< + SrpPasswordVerifierMessage, + RespondToAuthChallengeRequest + > { /// {@macro amplify_auth_cognito.srp_password_verifier_worker} SrpPasswordVerifierWorker() : super(serializers: serializers); @@ -134,10 +138,12 @@ abstract class SrpPasswordVerifierWorker extends WorkerBeeBase< b ..clientId = clientId ..challengeName = ChallengeNameType.passwordVerifier - ..challengeResponses[ - CognitoConstants.challengeParamPasswordSecretBlock] = secretBlock - ..challengeResponses[ - CognitoConstants.challengeParamPasswordSignature] = encodedClaim + ..challengeResponses[CognitoConstants + .challengeParamPasswordSecretBlock] = + secretBlock + ..challengeResponses[CognitoConstants + .challengeParamPasswordSignature] = + encodedClaim ..challengeResponses[CognitoConstants.challengeParamUsername] = username ..challengeResponses[CognitoConstants.challengeParamTimestamp] = @@ -160,14 +166,12 @@ abstract class SrpPasswordVerifierWorker extends WorkerBeeBase< } /// Serializers for the [SrpPasswordVerifierWorker] worker. -@SerializersFor([ - SrpPasswordVerifierMessage, -]) -final Serializers serializers = (_$serializers.toBuilder() - ..addAll(const [ - ...RespondToAuthChallengeRequest.serializers, - ...AnalyticsMetadataType.serializers, - ...ChallengeNameType.serializers, - ...UserContextDataType.serializers, - ])) - .build(); +@SerializersFor([SrpPasswordVerifierMessage]) +final Serializers serializers = + (_$serializers.toBuilder()..addAll(const [ + ...RespondToAuthChallengeRequest.serializers, + ...AnalyticsMetadataType.serializers, + ...ChallengeNameType.serializers, + ...UserContextDataType.serializers, + ])) + .build(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.g.dart index 9435283544..5988e81129 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.g.dart @@ -6,15 +6,19 @@ part of 'srp_password_verifier_worker.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$serializers = (new Serializers().toBuilder() - ..add(SignInParameters.serializer) - ..add(SrpInitResult.serializer) - ..add(SrpPasswordVerifierMessage.serializer) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder())) - .build(); +Serializers _$serializers = + (new Serializers().toBuilder() + ..add(SignInParameters.serializer) + ..add(SrpInitResult.serializer) + ..add(SrpPasswordVerifierMessage.serializer) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + () => new MapBuilder(), + )) + .build(); Serializer _$srpPasswordVerifierMessageSerializer = new _$SrpPasswordVerifierMessageSerializer(); @@ -23,58 +27,78 @@ class _$SrpPasswordVerifierMessageSerializer @override final Iterable types = const [ SrpPasswordVerifierMessage, - _$SrpPasswordVerifierMessage + _$SrpPasswordVerifierMessage, ]; @override final String wireName = 'SrpPasswordVerifierMessage'; @override Iterable serialize( - Serializers serializers, SrpPasswordVerifierMessage object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + SrpPasswordVerifierMessage object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'initResult', - serializers.serialize(object.initResult, - specifiedType: const FullType(SrpInitResult)), + serializers.serialize( + object.initResult, + specifiedType: const FullType(SrpInitResult), + ), 'clientId', - serializers.serialize(object.clientId, - specifiedType: const FullType(String)), + serializers.serialize( + object.clientId, + specifiedType: const FullType(String), + ), 'poolId', - serializers.serialize(object.poolId, - specifiedType: const FullType(String)), + serializers.serialize( + object.poolId, + specifiedType: const FullType(String), + ), 'parameters', - serializers.serialize(object.parameters, - specifiedType: const FullType(SignInParameters)), + serializers.serialize( + object.parameters, + specifiedType: const FullType(SignInParameters), + ), 'challengeParameters', - serializers.serialize(object.challengeParameters, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(String)])), + serializers.serialize( + object.challengeParameters, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + ), 'timestamp', - serializers.serialize(object.timestamp, - specifiedType: const FullType(DateTime)), + serializers.serialize( + object.timestamp, + specifiedType: const FullType(DateTime), + ), ]; Object? value; value = object.clientSecret; if (value != null) { result ..add('clientSecret') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.deviceKey; if (value != null) { result ..add('deviceKey') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override SrpPasswordVerifierMessage deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new SrpPasswordVerifierMessageBuilder(); final iterator = serialized.iterator; @@ -84,40 +108,71 @@ class _$SrpPasswordVerifierMessageSerializer final Object? value = iterator.current; switch (key) { case 'initResult': - result.initResult = serializers.deserialize(value, - specifiedType: const FullType(SrpInitResult))! as SrpInitResult; + result.initResult = + serializers.deserialize( + value, + specifiedType: const FullType(SrpInitResult), + )! + as SrpInitResult; break; case 'clientId': - result.clientId = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.clientId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'clientSecret': - result.clientSecret = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.clientSecret = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'poolId': - result.poolId = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.poolId = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'deviceKey': - result.deviceKey = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.deviceKey = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'parameters': - result.parameters = serializers.deserialize(value, - specifiedType: const FullType(SignInParameters))! - as SignInParameters; + result.parameters = + serializers.deserialize( + value, + specifiedType: const FullType(SignInParameters), + )! + as SignInParameters; break; case 'challengeParameters': - result.challengeParameters = serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, const [ - const FullType(String), - const FullType(String) - ]))! as BuiltMap; + result.challengeParameters = + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + )! + as BuiltMap; break; case 'timestamp': - result.timestamp = serializers.deserialize(value, - specifiedType: const FullType(DateTime))! as DateTime; + result.timestamp = + serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + )! + as DateTime; break; } } @@ -144,38 +199,56 @@ class _$SrpPasswordVerifierMessage extends SrpPasswordVerifierMessage { @override final DateTime timestamp; - factory _$SrpPasswordVerifierMessage( - [void Function(SrpPasswordVerifierMessageBuilder)? updates]) => - (new SrpPasswordVerifierMessageBuilder()..update(updates))._build(); - - _$SrpPasswordVerifierMessage._( - {required this.initResult, - required this.clientId, - this.clientSecret, - required this.poolId, - this.deviceKey, - required this.parameters, - required this.challengeParameters, - required this.timestamp}) - : super._() { + factory _$SrpPasswordVerifierMessage([ + void Function(SrpPasswordVerifierMessageBuilder)? updates, + ]) => (new SrpPasswordVerifierMessageBuilder()..update(updates))._build(); + + _$SrpPasswordVerifierMessage._({ + required this.initResult, + required this.clientId, + this.clientSecret, + required this.poolId, + this.deviceKey, + required this.parameters, + required this.challengeParameters, + required this.timestamp, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - initResult, r'SrpPasswordVerifierMessage', 'initResult'); + initResult, + r'SrpPasswordVerifierMessage', + 'initResult', + ); BuiltValueNullFieldError.checkNotNull( - clientId, r'SrpPasswordVerifierMessage', 'clientId'); + clientId, + r'SrpPasswordVerifierMessage', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - poolId, r'SrpPasswordVerifierMessage', 'poolId'); + poolId, + r'SrpPasswordVerifierMessage', + 'poolId', + ); BuiltValueNullFieldError.checkNotNull( - parameters, r'SrpPasswordVerifierMessage', 'parameters'); - BuiltValueNullFieldError.checkNotNull(challengeParameters, - r'SrpPasswordVerifierMessage', 'challengeParameters'); + parameters, + r'SrpPasswordVerifierMessage', + 'parameters', + ); + BuiltValueNullFieldError.checkNotNull( + challengeParameters, + r'SrpPasswordVerifierMessage', + 'challengeParameters', + ); BuiltValueNullFieldError.checkNotNull( - timestamp, r'SrpPasswordVerifierMessage', 'timestamp'); + timestamp, + r'SrpPasswordVerifierMessage', + 'timestamp', + ); } @override SrpPasswordVerifierMessage rebuild( - void Function(SrpPasswordVerifierMessageBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SrpPasswordVerifierMessageBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SrpPasswordVerifierMessageBuilder toBuilder() => @@ -299,24 +372,41 @@ class SrpPasswordVerifierMessageBuilder _$SrpPasswordVerifierMessage _build() { SrpPasswordVerifierMessage._init(this); - final _$result = _$v ?? + final _$result = + _$v ?? new _$SrpPasswordVerifierMessage._( initResult: BuiltValueNullFieldError.checkNotNull( - initResult, r'SrpPasswordVerifierMessage', 'initResult'), + initResult, + r'SrpPasswordVerifierMessage', + 'initResult', + ), clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'SrpPasswordVerifierMessage', 'clientId'), + clientId, + r'SrpPasswordVerifierMessage', + 'clientId', + ), clientSecret: clientSecret, poolId: BuiltValueNullFieldError.checkNotNull( - poolId, r'SrpPasswordVerifierMessage', 'poolId'), + poolId, + r'SrpPasswordVerifierMessage', + 'poolId', + ), deviceKey: deviceKey, parameters: BuiltValueNullFieldError.checkNotNull( - parameters, r'SrpPasswordVerifierMessage', 'parameters'), + parameters, + r'SrpPasswordVerifierMessage', + 'parameters', + ), challengeParameters: BuiltValueNullFieldError.checkNotNull( - challengeParameters, - r'SrpPasswordVerifierMessage', - 'challengeParameters'), + challengeParameters, + r'SrpPasswordVerifierMessage', + 'challengeParameters', + ), timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'SrpPasswordVerifierMessage', 'timestamp'), + timestamp, + r'SrpPasswordVerifierMessage', + 'timestamp', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.dart index 3ab98a9db8..520d43cf39 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.dart @@ -1,3 +1,4 @@ +// dart format width=80 // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.js.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.js.dart index bca44f8a8e..27124fde4c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.js.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.js.dart @@ -29,18 +29,17 @@ class SrpPasswordVerifierWorkerImpl extends SrpPasswordVerifierWorker { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' - : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js' + : 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.vm.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.vm.dart index 8c4cdc593e..fc3c309d03 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.vm.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/flows/srp/srp_password_verifier_worker.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/jwt.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/jwt.dart index a40fcdf0e1..722a37f6ad 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/jwt.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/jwt.dart @@ -9,7 +9,7 @@ /// - [JSON Web Signature (JWS)](https://datatracker.ietf.org/doc/html/rfc7515) /// - [JSON Web Key (JWK)](https://datatracker.ietf.org/doc/html/rfc7517) @internal -library amplify_auth_cognito.jwt; +library; import 'package:meta/meta.dart'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.dart index 5e1fbc40f4..972fba8776 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.dart @@ -15,15 +15,7 @@ part 'claims.g.dart'; /// Standard claims, as defined by /// [RFC 7519](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1). -const _standardClaims = [ - 'iss', - 'sub', - 'aud', - 'exp', - 'nbf', - 'iat', - 'jti', -]; +const _standardClaims = ['iss', 'sub', 'aud', 'exp', 'nbf', 'iat', 'jti']; /// {@template amplify_auth_cognito.json_web_claims} /// The body of a [JsonWebToken]. @@ -49,8 +41,9 @@ class JsonWebClaims with AWSEquatable, AWSSerializable { /// {@macro amplify_auth_cognito.json_web_claims} factory JsonWebClaims.fromJson(Map json) { final instance = _$JsonWebClaimsFromJson(json); - final customClaims = - json.entries.where((entry) => !_standardClaims.contains(entry.key)); + final customClaims = json.entries.where( + (entry) => !_standardClaims.contains(entry.key), + ); return JsonWebClaims( issuer: instance.issuer, subject: instance.subject, @@ -120,23 +113,20 @@ class JsonWebClaims with AWSEquatable, AWSSerializable { @override List get props => [ - issuer, - subject, - audience, - expiration, - notBefore, - issuedAt, - jwtId, - customClaims, - ]; + issuer, + subject, + audience, + expiration, + notBefore, + issuedAt, + jwtId, + customClaims, + ]; @override Map toJson() { final map = _$JsonWebClaimsToJson(this); - return SplayTreeMap.from({ - ...map, - ...customClaims, - }); + return SplayTreeMap.from({...map, ...customClaims}); } /// Encodes the claims to UTF-8 JSON. diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.g.dart index 63016d8cf1..e4b17d0db5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/claims.g.dart @@ -17,21 +17,13 @@ JsonWebClaims _$JsonWebClaimsFromJson(Map json) => jwtId: json['jti'] as String?, ); -Map _$JsonWebClaimsToJson(JsonWebClaims instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('iss', instance.issuer); - writeNotNull('sub', instance.subject); - writeNotNull('aud', instance.audience); - writeNotNull('exp', encodeDateTime(instance.expiration)); - writeNotNull('nbf', encodeDateTime(instance.notBefore)); - writeNotNull('iat', encodeDateTime(instance.issuedAt)); - writeNotNull('jti', instance.jwtId); - return val; -} +Map _$JsonWebClaimsToJson(JsonWebClaims instance) => + { + if (instance.issuer case final value?) 'iss': value, + if (instance.subject case final value?) 'sub': value, + if (instance.audience case final value?) 'aud': value, + if (encodeDateTime(instance.expiration) case final value?) 'exp': value, + if (encodeDateTime(instance.notBefore) case final value?) 'nbf': value, + if (encodeDateTime(instance.issuedAt) case final value?) 'iat': value, + if (instance.jwtId case final value?) 'jti': value, + }; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/cognito.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/cognito.dart index 09eb32c8cb..837cae4351 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/cognito.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/cognito.dart @@ -220,15 +220,13 @@ extension CognitoIdToken on JsonWebToken { /// /// [Reference](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-the-id-token.html) Map get customAttributes => Map.fromEntries( - claims.customClaims.entries - .where( - (entry) => CognitoUserAttributeKey.hasCustomPrefix(entry.key), - ) - .map( - (entry) => MapEntry( - CognitoUserAttributeKey.custom(entry.key), - entry.value ?? '', - ), - ), - ); + claims.customClaims.entries + .where((entry) => CognitoUserAttributeKey.hasCustomPrefix(entry.key)) + .map( + (entry) => MapEntry( + CognitoUserAttributeKey.custom(entry.key), + entry.value ?? '', + ), + ), + ); } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/elliptic_curve.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/elliptic_curve.dart index 554965d548..4caefd57d5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/elliptic_curve.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/elliptic_curve.dart @@ -11,7 +11,7 @@ enum EllipticCurve { p384, /// P-521 curve - p521 + p521, } /// Elliptic curve helpers. diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.dart index 4c844dff0d..6092400f95 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.dart @@ -153,18 +153,18 @@ class JsonWebHeader with AWSEquatable, AWSSerializable { @override List get props => [ - algorithm, - jwkSetUri, - jwk, - keyId, - x509CertChain, - x509sha1Thumbprint, - x509sha256Thumbprint, - x509Uri, - type, - contentType, - critical, - ]; + algorithm, + jwkSetUri, + jwk, + keyId, + x509CertChain, + x509sha1Thumbprint, + x509sha256Thumbprint, + x509Uri, + type, + contentType, + critical, + ]; @override Map toJson() => _$JsonWebHeaderToJson(this); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.g.dart index 8b739db9a6..56204eb3a9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/header.g.dart @@ -10,9 +10,10 @@ JsonWebHeader _$JsonWebHeaderFromJson(Map json) => JsonWebHeader( algorithm: AlgorithmX.fromJson(json['alg'] as String), jwkSetUri: json['jku'] == null ? null : Uri.parse(json['jku'] as String), - jwk: json['jwk'] == null - ? null - : JsonWebKey.fromJson(json['jwk'] as Map), + jwk: + json['jwk'] == null + ? null + : JsonWebKey.fromJson(json['jwk'] as Map), keyId: json['kid'] as String?, x509CertChain: (json['x5c'] as List?)?.map((e) => e as String).toList(), @@ -26,25 +27,17 @@ JsonWebHeader _$JsonWebHeaderFromJson(Map json) => (json['crit'] as List?)?.map((e) => e as String).toList(), ); -Map _$JsonWebHeaderToJson(JsonWebHeader instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('alg', AlgorithmX.toJson(instance.algorithm)); - writeNotNull('jku', instance.jwkSetUri?.toString()); - writeNotNull('jwk', instance.jwk?.toJson()); - writeNotNull('kid', instance.keyId); - writeNotNull('x5u', instance.x509Uri?.toString()); - writeNotNull('x5c', instance.x509CertChain); - writeNotNull('x5t', instance.x509sha1Thumbprint); - writeNotNull('x5t#S256', instance.x509sha256Thumbprint); - writeNotNull('typ', instance.type); - writeNotNull('cty', instance.contentType); - writeNotNull('crit', instance.critical); - return val; -} +Map _$JsonWebHeaderToJson(JsonWebHeader instance) => + { + if (AlgorithmX.toJson(instance.algorithm) case final value?) 'alg': value, + if (instance.jwkSetUri?.toString() case final value?) 'jku': value, + if (instance.jwk?.toJson() case final value?) 'jwk': value, + if (instance.keyId case final value?) 'kid': value, + if (instance.x509Uri?.toString() case final value?) 'x5u': value, + if (instance.x509CertChain case final value?) 'x5c': value, + if (instance.x509sha1Thumbprint case final value?) 'x5t': value, + if (instance.x509sha256Thumbprint case final value?) 'x5t#S256': value, + if (instance.type case final value?) 'typ': value, + if (instance.contentType case final value?) 'cty': value, + if (instance.critical case final value?) 'crit': value, + }; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.dart index 20140d6eaa..8ac30038ec 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.dart @@ -356,29 +356,29 @@ class JsonWebKey with AWSEquatable, AWSSerializable { @override List get props => [ - keyType, - publicKeyUse, - keyOperations, - algorithm, - keyId, - x509Url, - x509CertChain, - x509Sha1Thumbprint, - x509Sha256Thumbprint, - ellipticCurve, - x, - y, - n, - e, - k, - d, - p, - q, - dp, - dq, - qi, - otherPrimes, - ]; + keyType, + publicKeyUse, + keyOperations, + algorithm, + keyId, + x509Url, + x509CertChain, + x509Sha1Thumbprint, + x509Sha256Thumbprint, + ellipticCurve, + x, + y, + n, + e, + k, + d, + p, + q, + dp, + dq, + qi, + otherPrimes, + ]; @override Map toJson() { @@ -417,11 +417,7 @@ class JsonWebKey with AWSEquatable, AWSSerializable { @jwtSerializable class OtherPrime with AWSEquatable, AWSSerializable { /// {@macro amplify_auth_cognito.other_prime} - const OtherPrime({ - required this.r, - required this.d, - required this.t, - }); + const OtherPrime({required this.r, required this.d, required this.t}); /// {@macro amplify_auth_cognito.other_prime} factory OtherPrime.fromJson(Map json) => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.g.dart index 9c6e4fa793..dff8e1c568 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/key.g.dart @@ -7,69 +7,68 @@ part of 'key.dart'; // ************************************************************************** JsonWebKey _$JsonWebKeyFromJson(Map json) => JsonWebKey( - keyType: KeyTypeX.fromJson(json['kty'] as String), - publicKeyUse: PublicKeyUseX.fromJson(json['use'] as String?), - keyOperations: (json['key_ops'] as List?) + keyType: KeyTypeX.fromJson(json['kty'] as String), + publicKeyUse: PublicKeyUseX.fromJson(json['use'] as String?), + keyOperations: + (json['key_ops'] as List?) ?.map((e) => $enumDecode(_$KeyOperationEnumMap, e)) .toList(), - algorithm: AlgorithmX.tryFromJson(json['alg'] as String?), - keyId: json['kid'] as String?, - x509Url: json['x5u'] as String?, - x509CertChain: - (json['x5c'] as List?)?.map((e) => e as String).toList(), - x509Sha1Thumbprint: json['x5t'] as String?, - x509Sha256Thumbprint: json['x5t#S256'] as String?, - ellipticCurve: EllipticCurveX.fromJson(json['crv'] as String?), - x: base64UrlUintTryDecode(json['x'] as String?), - y: base64UrlUintTryDecode(json['y'] as String?), - n: base64UrlUintTryDecode(json['n'] as String?), - e: base64UrlUintTryDecode(json['e'] as String?), - k: symmetricKeyFromJson(json['k'] as String?), - d: base64UrlUintTryDecode(json['d'] as String?), - p: base64UrlUintTryDecode(json['p'] as String?), - q: base64UrlUintTryDecode(json['q'] as String?), - dp: base64UrlUintTryDecode(json['dp'] as String?), - dq: base64UrlUintTryDecode(json['dq'] as String?), - qi: base64UrlUintTryDecode(json['qi'] as String?), - otherPrimes: (json['oth'] as List?) + algorithm: AlgorithmX.tryFromJson(json['alg'] as String?), + keyId: json['kid'] as String?, + x509Url: json['x5u'] as String?, + x509CertChain: + (json['x5c'] as List?)?.map((e) => e as String).toList(), + x509Sha1Thumbprint: json['x5t'] as String?, + x509Sha256Thumbprint: json['x5t#S256'] as String?, + ellipticCurve: EllipticCurveX.fromJson(json['crv'] as String?), + x: base64UrlUintTryDecode(json['x'] as String?), + y: base64UrlUintTryDecode(json['y'] as String?), + n: base64UrlUintTryDecode(json['n'] as String?), + e: base64UrlUintTryDecode(json['e'] as String?), + k: symmetricKeyFromJson(json['k'] as String?), + d: base64UrlUintTryDecode(json['d'] as String?), + p: base64UrlUintTryDecode(json['p'] as String?), + q: base64UrlUintTryDecode(json['q'] as String?), + dp: base64UrlUintTryDecode(json['dp'] as String?), + dq: base64UrlUintTryDecode(json['dq'] as String?), + qi: base64UrlUintTryDecode(json['qi'] as String?), + otherPrimes: + (json['oth'] as List?) ?.map((e) => OtherPrime.fromJson(e as Map)) .toList(), - ); +); -Map _$JsonWebKeyToJson(JsonWebKey instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('kty', KeyTypeX.toJson(instance.keyType)); - writeNotNull('use', PublicKeyUseX.toJson(instance.publicKeyUse)); - writeNotNull('key_ops', - instance.keyOperations?.map((e) => _$KeyOperationEnumMap[e]!).toList()); - writeNotNull('alg', AlgorithmX.toJson(instance.algorithm)); - writeNotNull('kid', instance.keyId); - writeNotNull('x5u', instance.x509Url); - writeNotNull('x5c', instance.x509CertChain); - writeNotNull('x5t', instance.x509Sha1Thumbprint); - writeNotNull('x5t#S256', instance.x509Sha256Thumbprint); - writeNotNull('crv', EllipticCurveX.toJson(instance.ellipticCurve)); - writeNotNull('x', base64UrlUintEncode(instance.x)); - writeNotNull('y', base64UrlUintEncode(instance.y)); - writeNotNull('n', base64UrlUintEncode(instance.n)); - writeNotNull('e', base64UrlUintEncode(instance.e)); - writeNotNull('k', symmetricKeyToJson(instance.k)); - writeNotNull('d', base64UrlUintEncode(instance.d)); - writeNotNull('p', base64UrlUintEncode(instance.p)); - writeNotNull('q', base64UrlUintEncode(instance.q)); - writeNotNull('dp', base64UrlUintEncode(instance.dp)); - writeNotNull('dq', base64UrlUintEncode(instance.dq)); - writeNotNull('qi', base64UrlUintEncode(instance.qi)); - writeNotNull('oth', instance.otherPrimes?.map((e) => e.toJson()).toList()); - return val; -} +Map _$JsonWebKeyToJson( + JsonWebKey instance, +) => { + if (KeyTypeX.toJson(instance.keyType) case final value?) 'kty': value, + if (PublicKeyUseX.toJson(instance.publicKeyUse) case final value?) + 'use': value, + if (instance.keyOperations?.map((e) => _$KeyOperationEnumMap[e]!).toList() + case final value?) + 'key_ops': value, + if (AlgorithmX.toJson(instance.algorithm) case final value?) 'alg': value, + if (instance.keyId case final value?) 'kid': value, + if (instance.x509Url case final value?) 'x5u': value, + if (instance.x509CertChain case final value?) 'x5c': value, + if (instance.x509Sha1Thumbprint case final value?) 'x5t': value, + if (instance.x509Sha256Thumbprint case final value?) 'x5t#S256': value, + if (EllipticCurveX.toJson(instance.ellipticCurve) case final value?) + 'crv': value, + if (base64UrlUintEncode(instance.x) case final value?) 'x': value, + if (base64UrlUintEncode(instance.y) case final value?) 'y': value, + if (base64UrlUintEncode(instance.n) case final value?) 'n': value, + if (base64UrlUintEncode(instance.e) case final value?) 'e': value, + if (symmetricKeyToJson(instance.k) case final value?) 'k': value, + if (base64UrlUintEncode(instance.d) case final value?) 'd': value, + if (base64UrlUintEncode(instance.p) case final value?) 'p': value, + if (base64UrlUintEncode(instance.q) case final value?) 'q': value, + if (base64UrlUintEncode(instance.dp) case final value?) 'dp': value, + if (base64UrlUintEncode(instance.dq) case final value?) 'dq': value, + if (base64UrlUintEncode(instance.qi) case final value?) 'qi': value, + if (instance.otherPrimes?.map((e) => e.toJson()).toList() case final value?) + 'oth': value, +}; const _$KeyOperationEnumMap = { KeyOperation.sign: 'sign', @@ -83,22 +82,14 @@ const _$KeyOperationEnumMap = { }; OtherPrime _$OtherPrimeFromJson(Map json) => OtherPrime( - r: base64UrlUintDecode(json['r'] as String), - d: base64UrlUintDecode(json['d'] as String), - t: base64UrlUintDecode(json['t'] as String), - ); - -Map _$OtherPrimeToJson(OtherPrime instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } + r: base64UrlUintDecode(json['r'] as String), + d: base64UrlUintDecode(json['d'] as String), + t: base64UrlUintDecode(json['t'] as String), +); - writeNotNull('r', base64UrlUintEncode(instance.r)); - writeNotNull('d', base64UrlUintEncode(instance.d)); - writeNotNull('t', base64UrlUintEncode(instance.t)); - return val; -} +Map _$OtherPrimeToJson(OtherPrime instance) => + { + if (base64UrlUintEncode(instance.r) case final value?) 'r': value, + if (base64UrlUintEncode(instance.d) case final value?) 'd': value, + if (base64UrlUintEncode(instance.t) case final value?) 't': value, + }; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/keyset.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/keyset.g.dart index 789aa3a69e..bf0eaae331 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/keyset.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/keyset.g.dart @@ -14,6 +14,4 @@ JsonWebKeySet _$JsonWebKeySetFromJson(Map json) => ); Map _$JsonWebKeySetToJson(JsonWebKeySet instance) => - { - 'keys': instance.keys.map((e) => e.toJson()).toList(), - }; + {'keys': instance.keys.map((e) => e.toJson()).toList()}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/prefs.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/prefs.dart index cca186345f..0ea177bbe3 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/prefs.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/prefs.dart @@ -4,5 +4,7 @@ import 'package:json_annotation/json_annotation.dart'; /// Default serialization options for JWTs. -const jwtSerializable = - JsonSerializable(includeIfNull: false, explicitToJson: true); +const jwtSerializable = JsonSerializable( + includeIfNull: false, + explicitToJson: true, +); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/token.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/token.dart index 9f5af0a6f5..a4c08f0832 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/token.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/jwt/src/token.dart @@ -75,25 +75,21 @@ class JsonWebToken with AWSEquatable, AWSSerializable { final List signature; @override - List get props => [ - raw, - header, - claims, - signature, - ]; + List get props => [raw, header, claims, signature]; @override String toJson() => raw; @override String toString() => prettyPrintJson({ - 'header': header.toJson(), - 'claims': claims.toJson(), - 'signature': base64Encode(signature), - }); + 'header': header.toJson(), + 'claims': claims.toJson(), + 'signature': base64Encode(signature), + }); /// Encodes the JWT to a `.`-delimited string. - String encode() => '${header.encodeBase64()}.' + String encode() => + '${header.encodeBase64()}.' '${claims.encodeBase64()}.' '${base64RawUrl.encode(signature)}'; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.dart index 18ff9d691e..fde5e40349 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.dart @@ -17,8 +17,7 @@ class CognitoConfirmUserAttributePluginOptions /// {@macro amplify_auth_cognito.model.cognito_confirm_user_attribute_plugin_options} factory CognitoConfirmUserAttributePluginOptions.fromJson( Map json, - ) => - _$CognitoConfirmUserAttributePluginOptionsFromJson(json); + ) => _$CognitoConfirmUserAttributePluginOptionsFromJson(json); @override List get props => []; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.g.dart index 7cfb2cfbdc..1fb7d284c8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_confirm_user_attribute_plugin_options.g.dart @@ -7,17 +7,14 @@ part of 'cognito_confirm_user_attribute_plugin_options.dart'; // ************************************************************************** CognitoConfirmUserAttributePluginOptions - _$CognitoConfirmUserAttributePluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoConfirmUserAttributePluginOptions', - json, - ($checkedConvert) { - final val = CognitoConfirmUserAttributePluginOptions(); - return val; - }, - ); +_$CognitoConfirmUserAttributePluginOptionsFromJson(Map json) => + $checkedCreate('CognitoConfirmUserAttributePluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoConfirmUserAttributePluginOptions(); + return val; + }); Map _$CognitoConfirmUserAttributePluginOptionsToJson( - CognitoConfirmUserAttributePluginOptions instance) => - {}; + CognitoConfirmUserAttributePluginOptions instance, +) => {}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.dart index b91c40e684..55fe9050c6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.dart @@ -17,8 +17,7 @@ class CognitoFetchUserAttributesPluginOptions /// {@macro amplify_auth_cognito.model.cognito_fetch_user_attributes_plugin_options} factory CognitoFetchUserAttributesPluginOptions.fromJson( Map json, - ) => - _$CognitoFetchUserAttributesPluginOptionsFromJson(json); + ) => _$CognitoFetchUserAttributesPluginOptionsFromJson(json); @override List get props => []; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.g.dart index dbafe4fb8d..ea9b178378 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_fetch_user_attributes_plugin_options.g.dart @@ -7,17 +7,14 @@ part of 'cognito_fetch_user_attributes_plugin_options.dart'; // ************************************************************************** CognitoFetchUserAttributesPluginOptions - _$CognitoFetchUserAttributesPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoFetchUserAttributesPluginOptions', - json, - ($checkedConvert) { - final val = CognitoFetchUserAttributesPluginOptions(); - return val; - }, - ); +_$CognitoFetchUserAttributesPluginOptionsFromJson(Map json) => + $checkedCreate('CognitoFetchUserAttributesPluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoFetchUserAttributesPluginOptions(); + return val; + }); Map _$CognitoFetchUserAttributesPluginOptionsToJson( - CognitoFetchUserAttributesPluginOptions instance) => - {}; + CognitoFetchUserAttributesPluginOptions instance, +) => {}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.dart index d4f9033bc8..a87a5fd3d2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.dart @@ -19,8 +19,7 @@ class CognitoSendUserAttributeVerificationCodePluginOptions /// {@macro amplify_auth_cognito.model.cognito_send_user_attribute_verification_code_plugin_options} factory CognitoSendUserAttributeVerificationCodePluginOptions.fromJson( Map json, - ) => - _$CognitoSendUserAttributeVerificationCodePluginOptionsFromJson(json); + ) => _$CognitoSendUserAttributeVerificationCodePluginOptionsFromJson(json); /// {@template amplify_auth_cognito.model.cognito_send_user_attribute_verification_code_plugin_options.client_metadata} /// A map of custom key-value pairs that you can provide as input for certain diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.g.dart index 3fd5fa70f8..0d4b10ae21 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_send_user_attribute_verification_code_plugin_options.g.dart @@ -7,26 +7,25 @@ part of 'cognito_send_user_attribute_verification_code_plugin_options.dart'; // ************************************************************************** CognitoSendUserAttributeVerificationCodePluginOptions - _$CognitoSendUserAttributeVerificationCodePluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoSendUserAttributeVerificationCodePluginOptions', - json, - ($checkedConvert) { - final val = CognitoSendUserAttributeVerificationCodePluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - ); - return val; - }, - ); +_$CognitoSendUserAttributeVerificationCodePluginOptionsFromJson( + Map json, +) => $checkedCreate( + 'CognitoSendUserAttributeVerificationCodePluginOptions', + json, + ($checkedConvert) { + final val = CognitoSendUserAttributeVerificationCodePluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + ); + return val; + }, +); Map - _$CognitoSendUserAttributeVerificationCodePluginOptionsToJson( - CognitoSendUserAttributeVerificationCodePluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - }; +_$CognitoSendUserAttributeVerificationCodePluginOptionsToJson( + CognitoSendUserAttributeVerificationCodePluginOptions instance, +) => {'clientMetadata': instance.clientMetadata}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.dart index 63e3b797ac..e246189c66 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.dart @@ -19,8 +19,7 @@ class CognitoUpdateUserAttributePluginOptions /// {@macro amplify_auth_cognito.model.cognito_update_user_attribute_plugin_options} factory CognitoUpdateUserAttributePluginOptions.fromJson( Map json, - ) => - _$CognitoUpdateUserAttributePluginOptionsFromJson(json); + ) => _$CognitoUpdateUserAttributePluginOptionsFromJson(json); /// {@template amplify_auth_cognito.model.cognito_update_user_attribute_plugin_options.client_metadata} /// A map of custom key-value pairs that you can provide as input for certain diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.g.dart index ef3097f86f..71f6f5a3f2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attribute_plugin_options.g.dart @@ -7,25 +7,21 @@ part of 'cognito_update_user_attribute_plugin_options.dart'; // ************************************************************************** CognitoUpdateUserAttributePluginOptions - _$CognitoUpdateUserAttributePluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoUpdateUserAttributePluginOptions', - json, - ($checkedConvert) { - final val = CognitoUpdateUserAttributePluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - ); - return val; - }, - ); +_$CognitoUpdateUserAttributePluginOptionsFromJson(Map json) => + $checkedCreate('CognitoUpdateUserAttributePluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoUpdateUserAttributePluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + ); + return val; + }); Map _$CognitoUpdateUserAttributePluginOptionsToJson( - CognitoUpdateUserAttributePluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - }; + CognitoUpdateUserAttributePluginOptions instance, +) => {'clientMetadata': instance.clientMetadata}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.dart index 737e5afe5d..aabb0b9c50 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.dart @@ -19,8 +19,7 @@ class CognitoUpdateUserAttributesPluginOptions /// {@macro amplify_auth_cognito.model.cognito_update_user_attributes_plugin_options} factory CognitoUpdateUserAttributesPluginOptions.fromJson( Map json, - ) => - _$CognitoUpdateUserAttributesPluginOptionsFromJson(json); + ) => _$CognitoUpdateUserAttributesPluginOptionsFromJson(json); /// {@template amplify_auth_cognito.model.cognito_update_user_attributes_plugin_options.client_metadata} /// A map of custom key-value pairs that you can provide as input for certain diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.g.dart index d18072732d..625032a3f7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/attribute/cognito_update_user_attributes_plugin_options.g.dart @@ -7,25 +7,21 @@ part of 'cognito_update_user_attributes_plugin_options.dart'; // ************************************************************************** CognitoUpdateUserAttributesPluginOptions - _$CognitoUpdateUserAttributesPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoUpdateUserAttributesPluginOptions', - json, - ($checkedConvert) { - final val = CognitoUpdateUserAttributesPluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - ); - return val; - }, - ); +_$CognitoUpdateUserAttributesPluginOptionsFromJson(Map json) => + $checkedCreate('CognitoUpdateUserAttributesPluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoUpdateUserAttributesPluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + ); + return val; + }); Map _$CognitoUpdateUserAttributesPluginOptionsToJson( - CognitoUpdateUserAttributesPluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - }; + CognitoUpdateUserAttributesPluginOptions instance, +) => {'clientMetadata': instance.clientMetadata}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_result.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_result.dart index 454fde14f5..29c924dc9b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_result.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_result.dart @@ -7,8 +7,8 @@ import 'package:amplify_core/amplify_core.dart'; typedef AuthResult = AWSResult; /// A successful result to an Auth operation. -typedef AuthSuccessResult - = AWSSuccessResult; +typedef AuthSuccessResult = + AWSSuccessResult; /// A failed result to an Auth operation. typedef AuthErrorResult = AWSErrorResult; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_user_ext.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_user_ext.dart index 4ec8c25316..beefc2dcc3 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_user_ext.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/auth_user_ext.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_auth_cognito_dart.model.auth_user_ext; +library; import 'package:amplify_auth_cognito_dart/amplify_auth_cognito_dart.dart'; import 'package:amplify_auth_cognito_dart/src/model/cognito_user.dart'; @@ -13,18 +13,18 @@ import 'package:meta/meta.dart'; extension UserPoolTokensAuthUser on CredentialStoreData { /// The [CognitoAuthUser] represented by these tokens. CognitoAuthUser get authUser => CognitoAuthUser( - userId: CognitoToken(userPoolTokens!.idToken).userId, - username: CognitoIdToken(userPoolTokens!.idToken).username, - signInDetails: signInDetails!, - ); + userId: CognitoToken(userPoolTokens!.idToken).userId, + username: CognitoIdToken(userPoolTokens!.idToken).username, + signInDetails: signInDetails!, + ); } /// Helper for getting an [CognitoAuthUser] from a [CognitoUser]. extension CognitoUserAuthUser on CognitoUser { /// The [CognitoAuthUser] representing this user. CognitoAuthUser get authUser => CognitoAuthUser( - userId: userId, - username: username, - signInDetails: signInDetails, - ); + userId: userId, + username: username, + signInDetails: signInDetails, + ); } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_device_secrets.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_device_secrets.g.dart index ec12550100..d86acacdf9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_device_secrets.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_device_secrets.g.dart @@ -14,28 +14,38 @@ class _$CognitoDeviceSecretsSerializer @override final Iterable types = const [ CognitoDeviceSecrets, - _$CognitoDeviceSecrets + _$CognitoDeviceSecrets, ]; @override final String wireName = 'CognitoDeviceSecrets'; @override Iterable serialize( - Serializers serializers, CognitoDeviceSecrets object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + CognitoDeviceSecrets object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'deviceGroupKey', - serializers.serialize(object.deviceGroupKey, - specifiedType: const FullType(String)), + serializers.serialize( + object.deviceGroupKey, + specifiedType: const FullType(String), + ), 'deviceKey', - serializers.serialize(object.deviceKey, - specifiedType: const FullType(String)), + serializers.serialize( + object.deviceKey, + specifiedType: const FullType(String), + ), 'devicePassword', - serializers.serialize(object.devicePassword, - specifiedType: const FullType(String)), + serializers.serialize( + object.devicePassword, + specifiedType: const FullType(String), + ), 'deviceStatus', - serializers.serialize(object.deviceStatus, - specifiedType: const FullType(DeviceRememberedStatusType)), + serializers.serialize( + object.deviceStatus, + specifiedType: const FullType(DeviceRememberedStatusType), + ), ]; return result; @@ -43,8 +53,10 @@ class _$CognitoDeviceSecretsSerializer @override CognitoDeviceSecrets deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new CognitoDeviceSecretsBuilder(); final iterator = serialized.iterator; @@ -54,21 +66,36 @@ class _$CognitoDeviceSecretsSerializer final Object? value = iterator.current; switch (key) { case 'deviceGroupKey': - result.deviceGroupKey = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.deviceGroupKey = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'deviceKey': - result.deviceKey = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.deviceKey = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'devicePassword': - result.devicePassword = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.devicePassword = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'deviceStatus': - result.deviceStatus = serializers.deserialize(value, - specifiedType: const FullType(DeviceRememberedStatusType))! - as DeviceRememberedStatusType; + result.deviceStatus = + serializers.deserialize( + value, + specifiedType: const FullType(DeviceRememberedStatusType), + )! + as DeviceRememberedStatusType; break; } } @@ -87,30 +114,42 @@ class _$CognitoDeviceSecrets extends CognitoDeviceSecrets { @override final DeviceRememberedStatusType deviceStatus; - factory _$CognitoDeviceSecrets( - [void Function(CognitoDeviceSecretsBuilder)? updates]) => - (new CognitoDeviceSecretsBuilder()..update(updates))._build(); + factory _$CognitoDeviceSecrets([ + void Function(CognitoDeviceSecretsBuilder)? updates, + ]) => (new CognitoDeviceSecretsBuilder()..update(updates))._build(); - _$CognitoDeviceSecrets._( - {required this.deviceGroupKey, - required this.deviceKey, - required this.devicePassword, - required this.deviceStatus}) - : super._() { + _$CognitoDeviceSecrets._({ + required this.deviceGroupKey, + required this.deviceKey, + required this.devicePassword, + required this.deviceStatus, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - deviceGroupKey, r'CognitoDeviceSecrets', 'deviceGroupKey'); + deviceGroupKey, + r'CognitoDeviceSecrets', + 'deviceGroupKey', + ); BuiltValueNullFieldError.checkNotNull( - deviceKey, r'CognitoDeviceSecrets', 'deviceKey'); + deviceKey, + r'CognitoDeviceSecrets', + 'deviceKey', + ); BuiltValueNullFieldError.checkNotNull( - devicePassword, r'CognitoDeviceSecrets', 'devicePassword'); + devicePassword, + r'CognitoDeviceSecrets', + 'devicePassword', + ); BuiltValueNullFieldError.checkNotNull( - deviceStatus, r'CognitoDeviceSecrets', 'deviceStatus'); + deviceStatus, + r'CognitoDeviceSecrets', + 'deviceStatus', + ); } @override CognitoDeviceSecrets rebuild( - void Function(CognitoDeviceSecretsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CognitoDeviceSecretsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CognitoDeviceSecretsBuilder toBuilder() => @@ -201,16 +240,29 @@ class CognitoDeviceSecretsBuilder _$CognitoDeviceSecrets _build() { CognitoDeviceSecrets._init(this); - final _$result = _$v ?? + final _$result = + _$v ?? new _$CognitoDeviceSecrets._( deviceGroupKey: BuiltValueNullFieldError.checkNotNull( - deviceGroupKey, r'CognitoDeviceSecrets', 'deviceGroupKey'), + deviceGroupKey, + r'CognitoDeviceSecrets', + 'deviceGroupKey', + ), deviceKey: BuiltValueNullFieldError.checkNotNull( - deviceKey, r'CognitoDeviceSecrets', 'deviceKey'), + deviceKey, + r'CognitoDeviceSecrets', + 'deviceKey', + ), devicePassword: BuiltValueNullFieldError.checkNotNull( - devicePassword, r'CognitoDeviceSecrets', 'devicePassword'), + devicePassword, + r'CognitoDeviceSecrets', + 'devicePassword', + ), deviceStatus: BuiltValueNullFieldError.checkNotNull( - deviceStatus, r'CognitoDeviceSecrets', 'deviceStatus'), + deviceStatus, + r'CognitoDeviceSecrets', + 'deviceStatus', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_user.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_user.g.dart index 5d387df654..b6d2a824bb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_user.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/cognito_user.g.dart @@ -27,22 +27,28 @@ class _$CognitoUser extends CognitoUser { factory _$CognitoUser([void Function(CognitoUserBuilder)? updates]) => (new CognitoUserBuilder()..update(updates))._build(); - _$CognitoUser._( - {this.identityId, - this.awsCredentials, - this.userPoolTokens, - this.deviceSecrets, - required this.userId, - required this.username, - required this.signInDetails, - required this.attributes}) - : super._() { + _$CognitoUser._({ + this.identityId, + this.awsCredentials, + this.userPoolTokens, + this.deviceSecrets, + required this.userId, + required this.username, + required this.signInDetails, + required this.attributes, + }) : super._() { BuiltValueNullFieldError.checkNotNull(userId, r'CognitoUser', 'userId'); BuiltValueNullFieldError.checkNotNull(username, r'CognitoUser', 'username'); BuiltValueNullFieldError.checkNotNull( - signInDetails, r'CognitoUser', 'signInDetails'); + signInDetails, + r'CognitoUser', + 'signInDetails', + ); BuiltValueNullFieldError.checkNotNull( - attributes, r'CognitoUser', 'attributes'); + attributes, + r'CognitoUser', + 'attributes', + ); } @override @@ -174,18 +180,28 @@ class CognitoUserBuilder implements Builder { CognitoUser._finalize(this); _$CognitoUser _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$CognitoUser._( identityId: identityId, awsCredentials: awsCredentials, userPoolTokens: _userPoolTokens?.build(), deviceSecrets: _deviceSecrets?.build(), userId: BuiltValueNullFieldError.checkNotNull( - userId, r'CognitoUser', 'userId'), + userId, + r'CognitoUser', + 'userId', + ), username: BuiltValueNullFieldError.checkNotNull( - username, r'CognitoUser', 'username'), + username, + r'CognitoUser', + 'username', + ), signInDetails: BuiltValueNullFieldError.checkNotNull( - signInDetails, r'CognitoUser', 'signInDetails'), + signInDetails, + r'CognitoUser', + 'signInDetails', + ), attributes: attributes.build(), ); } catch (_) { @@ -200,7 +216,10 @@ class CognitoUserBuilder implements Builder { attributes.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CognitoUser', _$failedField, e.toString()); + r'CognitoUser', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/device/cognito_device.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/device/cognito_device.dart index a3dbeadec8..50e385a929 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/device/cognito_device.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/device/cognito_device.dart @@ -7,9 +7,10 @@ import 'package:meta/meta.dart'; /// Helper functions for [AuthDevice]. extension AuthDeviceX on AuthDevice { /// Returns this device as a [CognitoDevice]. - CognitoDevice get asCognitoDevice => this is CognitoDevice - ? this as CognitoDevice - : CognitoDevice(id: id, name: name); + CognitoDevice get asCognitoDevice => + this is CognitoDevice + ? this as CognitoDevice + : CognitoDevice(id: id, name: name); } /// {@template amplify_auth_cognito.cognito_device} @@ -38,15 +39,18 @@ class CognitoDevice extends AuthDevice with AWSEquatable { name: json['name'] as String?, attributes: attributes == null ? null : Map.from(attributes), - createdDate: createdDate == null - ? null - : DateTime.fromMillisecondsSinceEpoch(createdDate), - lastAuthenticatedDate: lastAuthenticatedDate == null - ? null - : DateTime.fromMillisecondsSinceEpoch(lastAuthenticatedDate), - lastModifiedDate: lastModifiedDate == null - ? null - : DateTime.fromMillisecondsSinceEpoch(lastModifiedDate), + createdDate: + createdDate == null + ? null + : DateTime.fromMillisecondsSinceEpoch(createdDate), + lastAuthenticatedDate: + lastAuthenticatedDate == null + ? null + : DateTime.fromMillisecondsSinceEpoch(lastAuthenticatedDate), + lastModifiedDate: + lastModifiedDate == null + ? null + : DateTime.fromMillisecondsSinceEpoch(lastModifiedDate), ); } @@ -76,25 +80,23 @@ class CognitoDevice extends AuthDevice with AWSEquatable { @override Map toJson() => { - 'id': id, - 'name': name, - if (attributes != null) 'attributes': attributes, - if (createdDate != null) - 'createdDate': createdDate!.millisecondsSinceEpoch, - if (lastAuthenticatedDate != null) - 'lastAuthenticatedDate': - lastAuthenticatedDate!.millisecondsSinceEpoch, - if (lastModifiedDate != null) - 'lastModifiedDate': lastModifiedDate!.millisecondsSinceEpoch, - }; + 'id': id, + 'name': name, + if (attributes != null) 'attributes': attributes, + if (createdDate != null) 'createdDate': createdDate!.millisecondsSinceEpoch, + if (lastAuthenticatedDate != null) + 'lastAuthenticatedDate': lastAuthenticatedDate!.millisecondsSinceEpoch, + if (lastModifiedDate != null) + 'lastModifiedDate': lastModifiedDate!.millisecondsSinceEpoch, + }; @override List get props => [ - id, - name, - attributes, - createdDate, - lastAuthenticatedDate, - lastModifiedDate, - ]; + id, + name, + attributes, + createdDate, + lastAuthenticatedDate, + lastModifiedDate, + ]; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.dart index 4f52adf21e..eab8545cdc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_auth_cognito.hostedui.oauth_parameters; +library; import 'package:amplify_core/amplify_core.dart'; import 'package:built_collection/built_collection.dart'; @@ -272,9 +272,6 @@ abstract class OAuthParameters } /// Serializers for OAuth flow parameters. -@SerializersFor([ - OAuthErrorCode, - OAuthParameters, -]) +@SerializersFor([OAuthErrorCode, OAuthParameters]) final Serializers oauthSerializers = (_$oauthSerializers.toBuilder()..addPlugin(StandardJsonPlugin())).build(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.g.dart index 86524b94e0..c1a695faeb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/hosted_ui/oauth_parameters.g.dart @@ -6,34 +6,46 @@ part of 'oauth_parameters.dart'; // BuiltValueGenerator // ************************************************************************** -const OAuthErrorCode _$invalidRequest = - const OAuthErrorCode._('invalidRequest'); -const OAuthErrorCode _$unauthorizedClient = - const OAuthErrorCode._('unauthorizedClient'); +const OAuthErrorCode _$invalidRequest = const OAuthErrorCode._( + 'invalidRequest', +); +const OAuthErrorCode _$unauthorizedClient = const OAuthErrorCode._( + 'unauthorizedClient', +); const OAuthErrorCode _$accessDenied = const OAuthErrorCode._('accessDenied'); -const OAuthErrorCode _$unsupportedResponseType = - const OAuthErrorCode._('unsupportedResponseType'); +const OAuthErrorCode _$unsupportedResponseType = const OAuthErrorCode._( + 'unsupportedResponseType', +); const OAuthErrorCode _$invalidScope = const OAuthErrorCode._('invalidScope'); const OAuthErrorCode _$serverError = const OAuthErrorCode._('serverError'); -const OAuthErrorCode _$temporarilyUnavailable = - const OAuthErrorCode._('temporarilyUnavailable'); -const OAuthErrorCode _$interactionRequired = - const OAuthErrorCode._('interactionRequired'); +const OAuthErrorCode _$temporarilyUnavailable = const OAuthErrorCode._( + 'temporarilyUnavailable', +); +const OAuthErrorCode _$interactionRequired = const OAuthErrorCode._( + 'interactionRequired', +); const OAuthErrorCode _$loginRequired = const OAuthErrorCode._('loginRequired'); -const OAuthErrorCode _$accountSelectionRequired = - const OAuthErrorCode._('accountSelectionRequired'); -const OAuthErrorCode _$consentRequired = - const OAuthErrorCode._('consentRequired'); -const OAuthErrorCode _$invalidRequestUri = - const OAuthErrorCode._('invalidRequestUri'); -const OAuthErrorCode _$invalidRequestObject = - const OAuthErrorCode._('invalidRequestObject'); -const OAuthErrorCode _$requestNotSupported = - const OAuthErrorCode._('requestNotSupported'); -const OAuthErrorCode _$requestUriNotSupported = - const OAuthErrorCode._('requestUriNotSupported'); -const OAuthErrorCode _$registrationUriNotSupported = - const OAuthErrorCode._('registrationUriNotSupported'); +const OAuthErrorCode _$accountSelectionRequired = const OAuthErrorCode._( + 'accountSelectionRequired', +); +const OAuthErrorCode _$consentRequired = const OAuthErrorCode._( + 'consentRequired', +); +const OAuthErrorCode _$invalidRequestUri = const OAuthErrorCode._( + 'invalidRequestUri', +); +const OAuthErrorCode _$invalidRequestObject = const OAuthErrorCode._( + 'invalidRequestObject', +); +const OAuthErrorCode _$requestNotSupported = const OAuthErrorCode._( + 'requestNotSupported', +); +const OAuthErrorCode _$requestUriNotSupported = const OAuthErrorCode._( + 'requestUriNotSupported', +); +const OAuthErrorCode _$registrationUriNotSupported = const OAuthErrorCode._( + 'registrationUriNotSupported', +); OAuthErrorCode _$valueOf(String name) { switch (name) { @@ -76,28 +88,29 @@ OAuthErrorCode _$valueOf(String name) { final BuiltSet _$values = new BuiltSet(const [ - _$invalidRequest, - _$unauthorizedClient, - _$accessDenied, - _$unsupportedResponseType, - _$invalidScope, - _$serverError, - _$temporarilyUnavailable, - _$interactionRequired, - _$loginRequired, - _$accountSelectionRequired, - _$consentRequired, - _$invalidRequestUri, - _$invalidRequestObject, - _$requestNotSupported, - _$requestUriNotSupported, - _$registrationUriNotSupported, -]); - -Serializers _$oauthSerializers = (new Serializers().toBuilder() - ..add(OAuthErrorCode.serializer) - ..add(OAuthParameters.serializer)) - .build(); + _$invalidRequest, + _$unauthorizedClient, + _$accessDenied, + _$unsupportedResponseType, + _$invalidScope, + _$serverError, + _$temporarilyUnavailable, + _$interactionRequired, + _$loginRequired, + _$accountSelectionRequired, + _$consentRequired, + _$invalidRequestUri, + _$invalidRequestObject, + _$requestNotSupported, + _$requestUriNotSupported, + _$registrationUriNotSupported, + ]); + +Serializers _$oauthSerializers = + (new Serializers().toBuilder() + ..add(OAuthErrorCode.serializer) + ..add(OAuthParameters.serializer)) + .build(); Serializer _$oAuthErrorCodeSerializer = new _$OAuthErrorCodeSerializer(); Serializer _$oAuthParametersSerializer = @@ -148,15 +161,20 @@ class _$OAuthErrorCodeSerializer final String wireName = 'OAuthErrorCode'; @override - Object serialize(Serializers serializers, OAuthErrorCode object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; + Object serialize( + Serializers serializers, + OAuthErrorCode object, { + FullType specifiedType = FullType.unspecified, + }) => _toWire[object.name] ?? object.name; @override - OAuthErrorCode deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - OAuthErrorCode.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); + OAuthErrorCode deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => OAuthErrorCode.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : ''), + ); } class _$OAuthParametersSerializer @@ -167,49 +185,63 @@ class _$OAuthParametersSerializer final String wireName = 'OAuthParameters'; @override - Iterable serialize(Serializers serializers, OAuthParameters object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + OAuthParameters object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'state', - serializers.serialize(object.state, - specifiedType: const FullType(String)), + serializers.serialize( + object.state, + specifiedType: const FullType(String), + ), ]; Object? value; value = object.code; if (value != null) { result ..add('code') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.error; if (value != null) { result ..add('error') - ..add(serializers.serialize(value, - specifiedType: const FullType(OAuthErrorCode))); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(OAuthErrorCode), + ), + ); } value = object.errorDescription; if (value != null) { result ..add('error_description') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.errorUri; if (value != null) { result ..add('error_uri') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override OAuthParameters deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new OAuthParametersBuilder(); final iterator = serialized.iterator; @@ -219,24 +251,44 @@ class _$OAuthParametersSerializer final Object? value = iterator.current; switch (key) { case 'state': - result.state = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.state = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'code': - result.code = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.code = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'error': - result.error = serializers.deserialize(value, - specifiedType: const FullType(OAuthErrorCode)) as OAuthErrorCode?; + result.error = + serializers.deserialize( + value, + specifiedType: const FullType(OAuthErrorCode), + ) + as OAuthErrorCode?; break; case 'error_description': - result.errorDescription = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.errorDescription = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'error_uri': - result.errorUri = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.errorUri = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; } } @@ -260,13 +312,13 @@ class _$OAuthParameters extends OAuthParameters { factory _$OAuthParameters([void Function(OAuthParametersBuilder)? updates]) => (new OAuthParametersBuilder()..update(updates))._build(); - _$OAuthParameters._( - {required this.state, - this.code, - this.error, - this.errorDescription, - this.errorUri}) - : super._() { + _$OAuthParameters._({ + required this.state, + this.code, + this.error, + this.errorDescription, + this.errorUri, + }) : super._() { BuiltValueNullFieldError.checkNotNull(state, r'OAuthParameters', 'state'); } @@ -369,10 +421,14 @@ class OAuthParametersBuilder _$OAuthParameters _build() { OAuthParameters._finalize(this); - final _$result = _$v ?? + final _$result = + _$v ?? new _$OAuthParameters._( state: BuiltValueNullFieldError.checkNotNull( - state, r'OAuthParameters', 'state'), + state, + r'OAuthParameters', + 'state', + ), code: code, error: error, errorDescription: errorDescription, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.dart index 090c737502..909869c3f4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.dart @@ -11,15 +11,12 @@ part 'cognito_verify_totp_setup_plugin_options.g.dart'; @zAmplifySerializable class CognitoVerifyTotpSetupPluginOptions extends VerifyTotpSetupPluginOptions { /// {@macro amplify_auth_cognito.model.cognito_verify_totp_setup_plugin_options} - const CognitoVerifyTotpSetupPluginOptions({ - this.friendlyDeviceName, - }); + const CognitoVerifyTotpSetupPluginOptions({this.friendlyDeviceName}); /// {@macro amplify_auth_cognito.model.cognito_verify_totp_setup_plugin_options} factory CognitoVerifyTotpSetupPluginOptions.fromJson( Map json, - ) => - _$CognitoVerifyTotpSetupPluginOptionsFromJson(json); + ) => _$CognitoVerifyTotpSetupPluginOptionsFromJson(json); /// A unique name to help identify the registered TOTP device. final String? friendlyDeviceName; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.g.dart index 8960279098..28d044d684 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/mfa/cognito_verify_totp_setup_plugin_options.g.dart @@ -7,29 +7,22 @@ part of 'cognito_verify_totp_setup_plugin_options.dart'; // ************************************************************************** CognitoVerifyTotpSetupPluginOptions - _$CognitoVerifyTotpSetupPluginOptionsFromJson(Map json) => - $checkedCreate( - 'CognitoVerifyTotpSetupPluginOptions', - json, - ($checkedConvert) { - final val = CognitoVerifyTotpSetupPluginOptions( - friendlyDeviceName: - $checkedConvert('friendlyDeviceName', (v) => v as String?), - ); - return val; - }, - ); +_$CognitoVerifyTotpSetupPluginOptionsFromJson(Map json) => + $checkedCreate('CognitoVerifyTotpSetupPluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoVerifyTotpSetupPluginOptions( + friendlyDeviceName: $checkedConvert( + 'friendlyDeviceName', + (v) => v as String?, + ), + ); + return val; + }); Map _$CognitoVerifyTotpSetupPluginOptionsToJson( - CognitoVerifyTotpSetupPluginOptions instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('friendlyDeviceName', instance.friendlyDeviceName); - return val; -} + CognitoVerifyTotpSetupPluginOptions instance, +) => { + if (instance.friendlyDeviceName case final value?) + 'friendlyDeviceName': value, +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.dart index 276fd3788d..4ea7d4304c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.dart @@ -19,8 +19,7 @@ class CognitoConfirmResetPasswordPluginOptions /// {@macro amplify_auth_cognito.model.cognito_confirm_reset_password_plugin_options} factory CognitoConfirmResetPasswordPluginOptions.fromJson( Map json, - ) => - _$CognitoConfirmResetPasswordPluginOptionsFromJson(json); + ) => _$CognitoConfirmResetPasswordPluginOptionsFromJson(json); /// Additional custom attributes to be sent to the service such as information /// about the client. diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.g.dart index 59289f61da..5483569eb1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_confirm_reset_password_plugin_options.g.dart @@ -7,25 +7,21 @@ part of 'cognito_confirm_reset_password_plugin_options.dart'; // ************************************************************************** CognitoConfirmResetPasswordPluginOptions - _$CognitoConfirmResetPasswordPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoConfirmResetPasswordPluginOptions', - json, - ($checkedConvert) { - final val = CognitoConfirmResetPasswordPluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - ); - return val; - }, - ); +_$CognitoConfirmResetPasswordPluginOptionsFromJson(Map json) => + $checkedCreate('CognitoConfirmResetPasswordPluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoConfirmResetPasswordPluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ), + ), + ); + return val; + }); Map _$CognitoConfirmResetPasswordPluginOptionsToJson( - CognitoConfirmResetPasswordPluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - }; + CognitoConfirmResetPasswordPluginOptions instance, +) => {'clientMetadata': instance.clientMetadata}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.dart index 31b8856752..4ead662381 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.dart @@ -11,15 +11,13 @@ part 'cognito_reset_password_plugin_options.g.dart'; @zAmplifySerializable class CognitoResetPasswordPluginOptions extends ResetPasswordPluginOptions { /// {@macro amplify_auth_cognito.model.cognito_reset_password_plugin_options} - const CognitoResetPasswordPluginOptions({ - Map? clientMetadata, - }) : clientMetadata = clientMetadata ?? const {}; + const CognitoResetPasswordPluginOptions({Map? clientMetadata}) + : clientMetadata = clientMetadata ?? const {}; /// {@macro amplify_auth_cognito.model.cognito_reset_password_plugin_options} factory CognitoResetPasswordPluginOptions.fromJson( Map json, - ) => - _$CognitoResetPasswordPluginOptionsFromJson(json); + ) => _$CognitoResetPasswordPluginOptionsFromJson(json); /// Additional custom attributes to be sent to the service such as information /// about the client. diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.g.dart index 9c50b24837..295f16332e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_plugin_options.g.dart @@ -7,24 +7,20 @@ part of 'cognito_reset_password_plugin_options.dart'; // ************************************************************************** CognitoResetPasswordPluginOptions _$CognitoResetPasswordPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoResetPasswordPluginOptions', - json, - ($checkedConvert) { - final val = CognitoResetPasswordPluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoResetPasswordPluginOptions', json, ( + $checkedConvert, +) { + final val = CognitoResetPasswordPluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as String)), + ), + ); + return val; +}); Map _$CognitoResetPasswordPluginOptionsToJson( - CognitoResetPasswordPluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - }; + CognitoResetPasswordPluginOptions instance, +) => {'clientMetadata': instance.clientMetadata}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_result.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_result.g.dart index 3994d0e9e2..13397b30db 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_result.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_reset_password_result.g.dart @@ -7,23 +7,21 @@ part of 'cognito_reset_password_result.dart'; // ************************************************************************** CognitoResetPasswordResult _$CognitoResetPasswordResultFromJson( - Map json) => - $checkedCreate( - 'CognitoResetPasswordResult', - json, - ($checkedConvert) { - final val = CognitoResetPasswordResult( - isPasswordReset: $checkedConvert('isPasswordReset', (v) => v as bool), - nextStep: $checkedConvert('nextStep', - (v) => ResetPasswordStep.fromJson(v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoResetPasswordResult', json, ($checkedConvert) { + final val = CognitoResetPasswordResult( + isPasswordReset: $checkedConvert('isPasswordReset', (v) => v as bool), + nextStep: $checkedConvert( + 'nextStep', + (v) => ResetPasswordStep.fromJson(v as Map), + ), + ); + return val; +}); Map _$CognitoResetPasswordResultToJson( - CognitoResetPasswordResult instance) => - { - 'isPasswordReset': instance.isPasswordReset, - 'nextStep': instance.nextStep.toJson(), - }; + CognitoResetPasswordResult instance, +) => { + 'isPasswordReset': instance.isPasswordReset, + 'nextStep': instance.nextStep.toJson(), +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.dart index b40de6d6dc..9d51380c0b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.dart @@ -16,8 +16,7 @@ class CognitoUpdatePasswordPluginOptions extends UpdatePasswordPluginOptions { /// {@macro amplify_auth_cognito.model.cognito_update_password_plugin_options} factory CognitoUpdatePasswordPluginOptions.fromJson( Map json, - ) => - _$CognitoUpdatePasswordPluginOptionsFromJson(json); + ) => _$CognitoUpdatePasswordPluginOptionsFromJson(json); @override List get props => []; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.g.dart index 133e8125fe..8b1c4aca87 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/password/cognito_update_password_plugin_options.g.dart @@ -7,16 +7,14 @@ part of 'cognito_update_password_plugin_options.dart'; // ************************************************************************** CognitoUpdatePasswordPluginOptions _$CognitoUpdatePasswordPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoUpdatePasswordPluginOptions', - json, - ($checkedConvert) { - final val = CognitoUpdatePasswordPluginOptions(); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoUpdatePasswordPluginOptions', json, ( + $checkedConvert, +) { + final val = CognitoUpdatePasswordPluginOptions(); + return val; +}); Map _$CognitoUpdatePasswordPluginOptionsToJson( - CognitoUpdatePasswordPluginOptions instance) => - {}; + CognitoUpdatePasswordPluginOptions instance, +) => {}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_session.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_session.dart index c8fa3d0b44..43e69609c7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_session.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_session.dart @@ -35,27 +35,27 @@ class CognitoAuthSession extends AuthSession @override List get props => [ - userPoolTokensResult, - userSubResult, - credentialsResult, - identityIdResult, - ]; + userPoolTokensResult, + userSubResult, + credentialsResult, + identityIdResult, + ]; @override Map toJson() => { - 'isSignedIn': isSignedIn, - 'userSub': userSubResult.valueOrNull, - 'userPoolTokens': userPoolTokensResult.valueOrNull, - 'credentials': credentialsResult.valueOrNull, - 'identityId': identityIdResult.valueOrNull, - }; + 'isSignedIn': isSignedIn, + 'userSub': userSubResult.valueOrNull, + 'userPoolTokens': userPoolTokensResult.valueOrNull, + 'credentials': credentialsResult.valueOrNull, + 'identityId': identityIdResult.valueOrNull, + }; @override String toString() => prettyPrintJson({ - 'isSignedIn': isSignedIn, - 'userSub': userSubResult.toString(), - 'userPoolTokens': userPoolTokensResult.toString(), - 'credentials': credentialsResult.toString(), - 'identityId': identityIdResult.toString(), - }); + 'isSignedIn': isSignedIn, + 'userSub': userSubResult.toString(), + 'userPoolTokens': userPoolTokensResult.toString(), + 'credentials': credentialsResult.toString(), + 'identityId': identityIdResult.toString(), + }); } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_user.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_user.g.dart index 1c65f38ca2..dd4c91694b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_user.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_auth_user.g.dart @@ -7,19 +7,17 @@ part of 'cognito_auth_user.dart'; // ************************************************************************** CognitoAuthUser _$CognitoAuthUserFromJson(Map json) => - $checkedCreate( - 'CognitoAuthUser', - json, - ($checkedConvert) { - final val = CognitoAuthUser( - userId: $checkedConvert('userId', (v) => v as String), - username: $checkedConvert('username', (v) => v as String), - signInDetails: $checkedConvert('signInDetails', - (v) => CognitoSignInDetails.fromJson(v as Map)), - ); - return val; - }, - ); + $checkedCreate('CognitoAuthUser', json, ($checkedConvert) { + final val = CognitoAuthUser( + userId: $checkedConvert('userId', (v) => v as String), + username: $checkedConvert('username', (v) => v as String), + signInDetails: $checkedConvert( + 'signInDetails', + (v) => CognitoSignInDetails.fromJson(v as Map), + ), + ); + return val; + }); Map _$CognitoAuthUserToJson(CognitoAuthUser instance) => { diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.dart index 11db18b80c..f2580d311f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.dart @@ -17,8 +17,7 @@ class CognitoFetchAuthSessionPluginOptions /// {@macro amplify_auth_cognito.model.cognito_fetch_auth_session_plugin_options} factory CognitoFetchAuthSessionPluginOptions.fromJson( Map json, - ) => - _$CognitoFetchAuthSessionPluginOptionsFromJson(json); + ) => _$CognitoFetchAuthSessionPluginOptionsFromJson(json); @override List get props => []; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.g.dart index 877f68e0de..6e7bb85470 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_fetch_auth_session_plugin_options.g.dart @@ -7,16 +7,14 @@ part of 'cognito_fetch_auth_session_plugin_options.dart'; // ************************************************************************** CognitoFetchAuthSessionPluginOptions - _$CognitoFetchAuthSessionPluginOptionsFromJson(Map json) => - $checkedCreate( - 'CognitoFetchAuthSessionPluginOptions', - json, - ($checkedConvert) { - final val = CognitoFetchAuthSessionPluginOptions(); - return val; - }, - ); +_$CognitoFetchAuthSessionPluginOptionsFromJson(Map json) => + $checkedCreate('CognitoFetchAuthSessionPluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoFetchAuthSessionPluginOptions(); + return val; + }); Map _$CognitoFetchAuthSessionPluginOptionsToJson( - CognitoFetchAuthSessionPluginOptions instance) => - {}; + CognitoFetchAuthSessionPluginOptions instance, +) => {}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.dart index 8fa35706f4..81a58a1617 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.dart @@ -16,8 +16,7 @@ class CognitoGetCurrentUserPluginOptions extends GetCurrentUserPluginOptions { /// {@macro amplify_auth_cognito.model.cognito_get_current_user_plugin_options} factory CognitoGetCurrentUserPluginOptions.fromJson( Map json, - ) => - _$CognitoGetCurrentUserPluginOptionsFromJson(json); + ) => _$CognitoGetCurrentUserPluginOptionsFromJson(json); @override List get props => []; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.g.dart index 1fa04ec718..00586d8674 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_get_current_user_plugin_options.g.dart @@ -7,16 +7,14 @@ part of 'cognito_get_current_user_plugin_options.dart'; // ************************************************************************** CognitoGetCurrentUserPluginOptions _$CognitoGetCurrentUserPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoGetCurrentUserPluginOptions', - json, - ($checkedConvert) { - final val = CognitoGetCurrentUserPluginOptions(); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoGetCurrentUserPluginOptions', json, ( + $checkedConvert, +) { + final val = CognitoGetCurrentUserPluginOptions(); + return val; +}); Map _$CognitoGetCurrentUserPluginOptionsToJson( - CognitoGetCurrentUserPluginOptions instance) => - {}; + CognitoGetCurrentUserPluginOptions instance, +) => {}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.dart index 15db4a6345..e9b8c5dfe2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.dart @@ -56,9 +56,8 @@ abstract class CognitoSignInDetails extends SignInDetails { }) = CognitoSignInDetailsApiBased; /// {@macro amplify_auth_cognito_dart.cognito_sign_in_details_hosted_ui} - const factory CognitoSignInDetails.hostedUi({ - AuthProvider? provider, - }) = CognitoSignInDetailsHostedUi; + const factory CognitoSignInDetails.hostedUi({AuthProvider? provider}) = + CognitoSignInDetailsHostedUi; /// {@macro amplify_auth_cognito_dart.cognito_sign_in_type} final CognitoSignInType signInType; @@ -92,9 +91,9 @@ class CognitoSignInDetailsApiBased extends CognitoSignInDetails @override Map toJson() => { - 'signInType': signInType.name, - ..._$CognitoSignInDetailsApiBasedToJson(this), - }; + 'signInType': signInType.name, + ..._$CognitoSignInDetailsApiBasedToJson(this), + }; } /// {@template amplify_auth_cognito_dart.cognito_sign_in_details_hosted_ui} @@ -104,9 +103,8 @@ class CognitoSignInDetailsApiBased extends CognitoSignInDetails class CognitoSignInDetailsHostedUi extends CognitoSignInDetails with AWSSerializable>, AWSDebuggable { /// {@macro amplify_auth_cognito_dart.cognito_sign_in_details_hosted_ui} - const CognitoSignInDetailsHostedUi({ - this.provider, - }) : super(CognitoSignInType.hostedUi); + const CognitoSignInDetailsHostedUi({this.provider}) + : super(CognitoSignInType.hostedUi); /// {@macro amplify_auth_cognito_dart.cognito_sign_in_details_hosted_ui} factory CognitoSignInDetailsHostedUi.fromJson(Map json) => @@ -120,9 +118,9 @@ class CognitoSignInDetailsHostedUi extends CognitoSignInDetails @override Map toJson() => { - 'signInType': signInType.name, - ..._$CognitoSignInDetailsHostedUiToJson(this), - }; + 'signInType': signInType.name, + ..._$CognitoSignInDetailsHostedUiToJson(this), + }; } /// {@template amplify_auth_cognito_dart.cognito_sign_in_details_federated} @@ -150,9 +148,9 @@ class CognitoSignInDetailsFederated extends CognitoSignInDetails @override Map toJson() => { - 'signInType': signInType.name, - ..._$CognitoSignInDetailsFederatedToJson(this), - }; + 'signInType': signInType.name, + ..._$CognitoSignInDetailsFederatedToJson(this), + }; } /// The method by which the user logged in and retrieved the accompanying diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.g.dart index ee8064d2d8..3d9840e9a7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_sign_in_details.g.dart @@ -22,9 +22,9 @@ CognitoSignInMethod _$CognitoSignInMethodValueOf(String name) { final BuiltSet _$CognitoSignInMethodValues = new BuiltSet(const [ - _$default$, - _$hostedUi, -]); + _$default$, + _$hostedUi, + ]); // ignore_for_file: deprecated_member_use_from_same_package,type=lint @@ -33,102 +33,78 @@ final BuiltSet _$CognitoSignInMethodValues = // ************************************************************************** CognitoSignInDetailsApiBased _$CognitoSignInDetailsApiBasedFromJson( - Map json) => - $checkedCreate( - 'CognitoSignInDetailsApiBased', - json, - ($checkedConvert) { - final val = CognitoSignInDetailsApiBased( - username: $checkedConvert('username', (v) => v as String), - authFlowType: $checkedConvert( - 'authFlowType', - (v) => _$JsonConverterFromJson( - v, const _AuthFlowTypeSerializer().fromJson)), - ); - return val; - }, - ); - -Map _$CognitoSignInDetailsApiBasedToJson( - CognitoSignInDetailsApiBased instance) { - final val = { - 'username': instance.username, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull( + Map json, +) => $checkedCreate('CognitoSignInDetailsApiBased', json, ($checkedConvert) { + final val = CognitoSignInDetailsApiBased( + username: $checkedConvert('username', (v) => v as String), + authFlowType: $checkedConvert( 'authFlowType', - _$JsonConverterToJson( - instance.authFlowType, const _AuthFlowTypeSerializer().toJson)); + (v) => _$JsonConverterFromJson( + v, + const _AuthFlowTypeSerializer().fromJson, + ), + ), + ); return val; -} +}); + +Map _$CognitoSignInDetailsApiBasedToJson( + CognitoSignInDetailsApiBased instance, +) => { + 'username': instance.username, + if (_$JsonConverterToJson( + instance.authFlowType, + const _AuthFlowTypeSerializer().toJson, + ) + case final value?) + 'authFlowType': value, +}; Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); Json? _$JsonConverterToJson( Value? value, Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); +) => value == null ? null : toJson(value); CognitoSignInDetailsHostedUi _$CognitoSignInDetailsHostedUiFromJson( - Map json) => - $checkedCreate( - 'CognitoSignInDetailsHostedUi', - json, - ($checkedConvert) { - final val = CognitoSignInDetailsHostedUi( - provider: $checkedConvert( - 'provider', - (v) => v == null - ? null - : AuthProvider.fromJson(v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoSignInDetailsHostedUi', json, ($checkedConvert) { + final val = CognitoSignInDetailsHostedUi( + provider: $checkedConvert( + 'provider', + (v) => + v == null ? null : AuthProvider.fromJson(v as Map), + ), + ); + return val; +}); Map _$CognitoSignInDetailsHostedUiToJson( - CognitoSignInDetailsHostedUi instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('provider', instance.provider?.toJson()); - return val; -} + CognitoSignInDetailsHostedUi instance, +) => { + if (instance.provider?.toJson() case final value?) 'provider': value, +}; CognitoSignInDetailsFederated _$CognitoSignInDetailsFederatedFromJson( - Map json) => - $checkedCreate( - 'CognitoSignInDetailsFederated', - json, - ($checkedConvert) { - final val = CognitoSignInDetailsFederated( - token: $checkedConvert('token', (v) => v as String), - provider: $checkedConvert('provider', - (v) => AuthProvider.fromJson(v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoSignInDetailsFederated', json, ($checkedConvert) { + final val = CognitoSignInDetailsFederated( + token: $checkedConvert('token', (v) => v as String), + provider: $checkedConvert( + 'provider', + (v) => AuthProvider.fromJson(v as Map), + ), + ); + return val; +}); Map _$CognitoSignInDetailsFederatedToJson( - CognitoSignInDetailsFederated instance) => - { - 'token': instance.token, - 'provider': instance.provider.toJson(), - }; + CognitoSignInDetailsFederated instance, +) => { + 'token': instance.token, + 'provider': instance.provider.toJson(), +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_user_pool_tokens.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_user_pool_tokens.g.dart index f92152a2d4..d75eebde98 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_user_pool_tokens.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/cognito_user_pool_tokens.g.dart @@ -16,30 +16,42 @@ class _$CognitoUserPoolTokens extends CognitoUserPoolTokens { @override final JsonWebToken idToken; - factory _$CognitoUserPoolTokens( - [void Function(CognitoUserPoolTokensBuilder)? updates]) => - (new CognitoUserPoolTokensBuilder()..update(updates))._build(); - - _$CognitoUserPoolTokens._( - {required this.signInMethod, - required this.accessToken, - required this.refreshToken, - required this.idToken}) - : super._() { + factory _$CognitoUserPoolTokens([ + void Function(CognitoUserPoolTokensBuilder)? updates, + ]) => (new CognitoUserPoolTokensBuilder()..update(updates))._build(); + + _$CognitoUserPoolTokens._({ + required this.signInMethod, + required this.accessToken, + required this.refreshToken, + required this.idToken, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - signInMethod, r'CognitoUserPoolTokens', 'signInMethod'); + signInMethod, + r'CognitoUserPoolTokens', + 'signInMethod', + ); BuiltValueNullFieldError.checkNotNull( - accessToken, r'CognitoUserPoolTokens', 'accessToken'); + accessToken, + r'CognitoUserPoolTokens', + 'accessToken', + ); BuiltValueNullFieldError.checkNotNull( - refreshToken, r'CognitoUserPoolTokens', 'refreshToken'); + refreshToken, + r'CognitoUserPoolTokens', + 'refreshToken', + ); BuiltValueNullFieldError.checkNotNull( - idToken, r'CognitoUserPoolTokens', 'idToken'); + idToken, + r'CognitoUserPoolTokens', + 'idToken', + ); } @override CognitoUserPoolTokens rebuild( - void Function(CognitoUserPoolTokensBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CognitoUserPoolTokensBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CognitoUserPoolTokensBuilder toBuilder() => @@ -119,16 +131,29 @@ class CognitoUserPoolTokensBuilder _$CognitoUserPoolTokens _build() { CognitoUserPoolTokens._finalize(this); - final _$result = _$v ?? + final _$result = + _$v ?? new _$CognitoUserPoolTokens._( signInMethod: BuiltValueNullFieldError.checkNotNull( - signInMethod, r'CognitoUserPoolTokens', 'signInMethod'), + signInMethod, + r'CognitoUserPoolTokens', + 'signInMethod', + ), accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'CognitoUserPoolTokens', 'accessToken'), + accessToken, + r'CognitoUserPoolTokens', + 'accessToken', + ), refreshToken: BuiltValueNullFieldError.checkNotNull( - refreshToken, r'CognitoUserPoolTokens', 'refreshToken'), + refreshToken, + r'CognitoUserPoolTokens', + 'refreshToken', + ), idToken: BuiltValueNullFieldError.checkNotNull( - idToken, r'CognitoUserPoolTokens', 'idToken'), + idToken, + r'CognitoUserPoolTokens', + 'idToken', + ), ); replace(_$result); return _$result; @@ -142,35 +167,36 @@ class CognitoUserPoolTokensBuilder // ************************************************************************** CognitoUserPoolTokens _$CognitoUserPoolTokensFromJson( - Map json) => - $checkedCreate( - 'CognitoUserPoolTokens', - json, - ($checkedConvert) { - final val = CognitoUserPoolTokens( - signInMethod: $checkedConvert( - 'signInMethod', - (v) => v == null - ? CognitoSignInMethod.default$ - : const _CognitoSignInMethodSerializer() - .fromJson(v as String)), - accessToken: $checkedConvert('accessToken', - (v) => const _JsonWebTokenSerializer().fromJson(v as String)), - refreshToken: $checkedConvert('refreshToken', (v) => v as String), - idToken: $checkedConvert('idToken', - (v) => const _JsonWebTokenSerializer().fromJson(v as String)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoUserPoolTokens', json, ($checkedConvert) { + final val = CognitoUserPoolTokens( + signInMethod: $checkedConvert( + 'signInMethod', + (v) => + v == null + ? CognitoSignInMethod.default$ + : const _CognitoSignInMethodSerializer().fromJson(v as String), + ), + accessToken: $checkedConvert( + 'accessToken', + (v) => const _JsonWebTokenSerializer().fromJson(v as String), + ), + refreshToken: $checkedConvert('refreshToken', (v) => v as String), + idToken: $checkedConvert( + 'idToken', + (v) => const _JsonWebTokenSerializer().fromJson(v as String), + ), + ); + return val; +}); Map _$CognitoUserPoolTokensToJson( - CognitoUserPoolTokens instance) => - { - 'signInMethod': - const _CognitoSignInMethodSerializer().toJson(instance.signInMethod), - 'accessToken': - const _JsonWebTokenSerializer().toJson(instance.accessToken), - 'refreshToken': instance.refreshToken, - 'idToken': const _JsonWebTokenSerializer().toJson(instance.idToken), - }; + CognitoUserPoolTokens instance, +) => { + 'signInMethod': const _CognitoSignInMethodSerializer().toJson( + instance.signInMethod, + ), + 'accessToken': const _JsonWebTokenSerializer().toJson(instance.accessToken), + 'refreshToken': instance.refreshToken, + 'idToken': const _JsonWebTokenSerializer().toJson(instance.idToken), +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.dart index 672204528f..b7f2da3c59 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.dart @@ -16,9 +16,7 @@ class FederateToIdentityPoolOptions AWSSerializable>, AWSDebuggable { /// {@macro amplify_auth_cognito_dart.model.session.federate_to_identity_pool_options} - const FederateToIdentityPoolOptions({ - this.developerProvidedIdentityId, - }); + const FederateToIdentityPoolOptions({this.developerProvidedIdentityId}); /// {@macro amplify_auth_cognito_dart.model.session.federate_to_identity_pool_options} factory FederateToIdentityPoolOptions.fromJson(Map json) => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.g.dart index 74de29c120..819522672d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_options.g.dart @@ -7,30 +7,20 @@ part of 'federate_to_identity_pool_options.dart'; // ************************************************************************** FederateToIdentityPoolOptions _$FederateToIdentityPoolOptionsFromJson( - Map json) => - $checkedCreate( - 'FederateToIdentityPoolOptions', - json, - ($checkedConvert) { - final val = FederateToIdentityPoolOptions( - developerProvidedIdentityId: $checkedConvert( - 'developerProvidedIdentityId', (v) => v as String?), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('FederateToIdentityPoolOptions', json, ($checkedConvert) { + final val = FederateToIdentityPoolOptions( + developerProvidedIdentityId: $checkedConvert( + 'developerProvidedIdentityId', + (v) => v as String?, + ), + ); + return val; +}); Map _$FederateToIdentityPoolOptionsToJson( - FederateToIdentityPoolOptions instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull( - 'developerProvidedIdentityId', instance.developerProvidedIdentityId); - return val; -} + FederateToIdentityPoolOptions instance, +) => { + if (instance.developerProvidedIdentityId case final value?) + 'developerProvidedIdentityId': value, +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.dart index 08dca3efa2..64de38a4df 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.dart @@ -41,9 +41,7 @@ class FederateToIdentityPoolRequest /// /// See the [docs](https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html) /// for more information on how to configure external providers. - @JsonKey( - fromJson: _authProviderFromJson, - ) + @JsonKey(fromJson: _authProviderFromJson) final AuthProvider provider; /// Additional options for the request. diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.g.dart index e8668ad2e1..2de1cd853c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_request.g.dart @@ -7,39 +7,31 @@ part of 'federate_to_identity_pool_request.dart'; // ************************************************************************** FederateToIdentityPoolRequest _$FederateToIdentityPoolRequestFromJson( - Map json) => - $checkedCreate( - 'FederateToIdentityPoolRequest', - json, - ($checkedConvert) { - final val = FederateToIdentityPoolRequest( - token: $checkedConvert('token', (v) => v as String), - provider: $checkedConvert( - 'provider', (v) => _authProviderFromJson(v as String)), - options: $checkedConvert( - 'options', - (v) => v == null - ? null - : FederateToIdentityPoolOptions.fromJson( - v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('FederateToIdentityPoolRequest', json, ($checkedConvert) { + final val = FederateToIdentityPoolRequest( + token: $checkedConvert('token', (v) => v as String), + provider: $checkedConvert( + 'provider', + (v) => _authProviderFromJson(v as String), + ), + options: $checkedConvert( + 'options', + (v) => + v == null + ? null + : FederateToIdentityPoolOptions.fromJson( + v as Map, + ), + ), + ); + return val; +}); Map _$FederateToIdentityPoolRequestToJson( - FederateToIdentityPoolRequest instance) { - final val = { - 'token': instance.token, - 'provider': instance.provider.toJson(), - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('options', instance.options?.toJson()); - return val; -} + FederateToIdentityPoolRequest instance, +) => { + 'token': instance.token, + 'provider': instance.provider.toJson(), + if (instance.options?.toJson() case final value?) 'options': value, +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_result.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_result.g.dart index 082ac6ece4..0d81c70307 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_result.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/session/federate_to_identity_pool_result.g.dart @@ -7,23 +7,21 @@ part of 'federate_to_identity_pool_result.dart'; // ************************************************************************** FederateToIdentityPoolResult _$FederateToIdentityPoolResultFromJson( - Map json) => - $checkedCreate( - 'FederateToIdentityPoolResult', - json, - ($checkedConvert) { - final val = FederateToIdentityPoolResult( - identityId: $checkedConvert('identityId', (v) => v as String), - credentials: $checkedConvert('credentials', - (v) => AWSCredentials.fromJson(v as Map)), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('FederateToIdentityPoolResult', json, ($checkedConvert) { + final val = FederateToIdentityPoolResult( + identityId: $checkedConvert('identityId', (v) => v as String), + credentials: $checkedConvert( + 'credentials', + (v) => AWSCredentials.fromJson(v as Map), + ), + ); + return val; +}); Map _$FederateToIdentityPoolResultToJson( - FederateToIdentityPoolResult instance) => - { - 'identityId': instance.identityId, - 'credentials': instance.credentials.toJson(), - }; + FederateToIdentityPoolResult instance, +) => { + 'identityId': instance.identityId, + 'credentials': instance.credentials.toJson(), +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.dart index 53a377825d..149c18d06c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_auth_cognito.model.sign_in_parameters; +library; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.g.dart index e5077bd291..d6f63cb54b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_in_parameters.g.dart @@ -17,28 +17,36 @@ class _$SignInParametersSerializer final String wireName = 'SignInParameters'; @override - Iterable serialize(Serializers serializers, SignInParameters object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + SignInParameters object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'username', - serializers.serialize(object.username, - specifiedType: const FullType(String)), + serializers.serialize( + object.username, + specifiedType: const FullType(String), + ), ]; Object? value; value = object.password; if (value != null) { result ..add('password') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override SignInParameters deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new SignInParametersBuilder(); final iterator = serialized.iterator; @@ -48,12 +56,20 @@ class _$SignInParametersSerializer final Object? value = iterator.current; switch (key) { case 'username': - result.username = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.username = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'password': - result.password = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.password = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; } } @@ -68,13 +84,16 @@ class _$SignInParameters extends SignInParameters { @override final String? password; - factory _$SignInParameters( - [void Function(SignInParametersBuilder)? updates]) => - (new SignInParametersBuilder()..update(updates))._build(); + factory _$SignInParameters([ + void Function(SignInParametersBuilder)? updates, + ]) => (new SignInParametersBuilder()..update(updates))._build(); _$SignInParameters._({required this.username, this.password}) : super._() { BuiltValueNullFieldError.checkNotNull( - username, r'SignInParameters', 'username'); + username, + r'SignInParameters', + 'username', + ); } @override @@ -150,10 +169,14 @@ class SignInParametersBuilder SignInParameters build() => _build(); _$SignInParameters _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SignInParameters._( username: BuiltValueNullFieldError.checkNotNull( - username, r'SignInParameters', 'username'), + username, + r'SignInParameters', + 'username', + ), password: password, ); replace(_$result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.dart index 9d0d0e256e..4e9ccacefd 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_auth_cognito.model.sign_up_parameters; +library; import 'package:built_value/built_value.dart'; import 'package:meta/meta.dart'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.g.dart index 167b6dfc91..0b869a6f7f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/sign_up_parameters.g.dart @@ -12,16 +12,22 @@ class _$SignUpParameters extends SignUpParameters { @override final String password; - factory _$SignUpParameters( - [void Function(SignUpParametersBuilder)? updates]) => - (new SignUpParametersBuilder()..update(updates))._build(); + factory _$SignUpParameters([ + void Function(SignUpParametersBuilder)? updates, + ]) => (new SignUpParametersBuilder()..update(updates))._build(); _$SignUpParameters._({required this.username, required this.password}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - username, r'SignUpParameters', 'username'); + username, + r'SignUpParameters', + 'username', + ); BuiltValueNullFieldError.checkNotNull( - password, r'SignUpParameters', 'password'); + password, + r'SignUpParameters', + 'password', + ); } @override @@ -97,12 +103,19 @@ class SignUpParametersBuilder SignUpParameters build() => _build(); _$SignUpParameters _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SignUpParameters._( username: BuiltValueNullFieldError.checkNotNull( - username, r'SignUpParameters', 'username'), + username, + r'SignUpParameters', + 'username', + ), password: BuiltValueNullFieldError.checkNotNull( - password, r'SignUpParameters', 'password'), + password, + r'SignUpParameters', + 'password', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.dart index 33aa44e65f..c4091d9c6f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.dart @@ -15,14 +15,13 @@ class CognitoConfirmSignInPluginOptions extends ConfirmSignInPluginOptions { Map? clientMetadata, Map? userAttributes, this.friendlyDeviceName, - }) : clientMetadata = clientMetadata ?? const {}, - userAttributes = userAttributes ?? const {}; + }) : clientMetadata = clientMetadata ?? const {}, + userAttributes = userAttributes ?? const {}; /// {@macro amplify_auth_cognito.model.cognito_confirm_sign_in_plugin_options} factory CognitoConfirmSignInPluginOptions.fromJson( Map json, - ) => - _$CognitoConfirmSignInPluginOptionsFromJson(json); + ) => _$CognitoConfirmSignInPluginOptionsFromJson(json); /// A map of custom key-value pairs that you can provide as input for certain /// custom workflows that this action triggers. @@ -37,10 +36,10 @@ class CognitoConfirmSignInPluginOptions extends ConfirmSignInPluginOptions { @override List get props => [ - clientMetadata, - userAttributes, - friendlyDeviceName, - ]; + clientMetadata, + userAttributes, + friendlyDeviceName, + ]; @override String get runtimeTypeName => 'CognitoConfirmSignInPluginOptions'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.g.dart index ca2f11b894..e1de43cacd 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_confirm_sign_in_plugin_options.g.dart @@ -7,49 +7,43 @@ part of 'cognito_confirm_sign_in_plugin_options.dart'; // ************************************************************************** CognitoConfirmSignInPluginOptions _$CognitoConfirmSignInPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoConfirmSignInPluginOptions', - json, - ($checkedConvert) { - final val = CognitoConfirmSignInPluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - userAttributes: $checkedConvert( - 'userAttributes', - (v) => _$JsonConverterFromJson, - Map>( - v, const CognitoUserAttributeMapConverter().fromJson)), - friendlyDeviceName: - $checkedConvert('friendlyDeviceName', (v) => v as String?), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoConfirmSignInPluginOptions', json, ( + $checkedConvert, +) { + final val = CognitoConfirmSignInPluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as String)), + ), + userAttributes: $checkedConvert( + 'userAttributes', + (v) => _$JsonConverterFromJson< + Map, + Map + >(v, const CognitoUserAttributeMapConverter().fromJson), + ), + friendlyDeviceName: $checkedConvert( + 'friendlyDeviceName', + (v) => v as String?, + ), + ); + return val; +}); Map _$CognitoConfirmSignInPluginOptionsToJson( - CognitoConfirmSignInPluginOptions instance) { - final val = { - 'clientMetadata': instance.clientMetadata, - 'userAttributes': const CognitoUserAttributeMapConverter() - .toJson(instance.userAttributes), - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('friendlyDeviceName', instance.friendlyDeviceName); - return val; -} + CognitoConfirmSignInPluginOptions instance, +) => { + 'clientMetadata': instance.clientMetadata, + 'userAttributes': const CognitoUserAttributeMapConverter().toJson( + instance.userAttributes, + ), + if (instance.friendlyDeviceName case final value?) + 'friendlyDeviceName': value, +}; Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_plugin_options.g.dart index f2bb4c3c05..abc80b23e9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_plugin_options.g.dart @@ -7,41 +7,32 @@ part of 'cognito_sign_in_plugin_options.dart'; // ************************************************************************** CognitoSignInPluginOptions _$CognitoSignInPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoSignInPluginOptions', - json, - ($checkedConvert) { - final val = CognitoSignInPluginOptions( - authFlowType: $checkedConvert('authFlowType', - (v) => $enumDecodeNullable(_$AuthenticationFlowTypeEnumMap, v)), - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => - (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoSignInPluginOptions', json, ($checkedConvert) { + final val = CognitoSignInPluginOptions( + authFlowType: $checkedConvert( + 'authFlowType', + (v) => $enumDecodeNullable(_$AuthenticationFlowTypeEnumMap, v), + ), + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => + (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, + ), + ); + return val; +}); Map _$CognitoSignInPluginOptionsToJson( - CognitoSignInPluginOptions instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull( - 'authFlowType', _$AuthenticationFlowTypeEnumMap[instance.authFlowType]); - val['clientMetadata'] = instance.clientMetadata; - return val; -} + CognitoSignInPluginOptions instance, +) => { + if (_$AuthenticationFlowTypeEnumMap[instance.authFlowType] case final value?) + 'authFlowType': value, + 'clientMetadata': instance.clientMetadata, +}; const _$AuthenticationFlowTypeEnumMap = { AuthenticationFlowType.userSrpAuth: 'USER_SRP_AUTH', diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.dart index dbf01ffce7..7d9c861513 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.dart @@ -19,8 +19,7 @@ class CognitoSignInWithWebUIPluginOptions extends SignInWithWebUIPluginOptions { /// {@macro amplify_auth_cognito.model.cognito_sign_in_with_web_ui_plugin_options} factory CognitoSignInWithWebUIPluginOptions.fromJson( Map json, - ) => - _$CognitoSignInWithWebUIPluginOptionsFromJson(json); + ) => _$CognitoSignInWithWebUIPluginOptionsFromJson(json); /// {@template amplify_auth_cognito.model.cognito_sign_in_with_web_ui_options.private_session} /// iOS-only: Starts the webUI signin in a private browser session, if supported by the current browser. diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.g.dart index 3ebc7c5915..c27f60ae44 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signin/cognito_sign_in_with_web_ui_plugin_options.g.dart @@ -7,33 +7,27 @@ part of 'cognito_sign_in_with_web_ui_plugin_options.dart'; // ************************************************************************** CognitoSignInWithWebUIPluginOptions - _$CognitoSignInWithWebUIPluginOptionsFromJson(Map json) => - $checkedCreate( - 'CognitoSignInWithWebUIPluginOptions', - json, - ($checkedConvert) { - final val = CognitoSignInWithWebUIPluginOptions( - isPreferPrivateSession: $checkedConvert( - 'isPreferPrivateSession', (v) => v as bool? ?? false), - browserPackageName: - $checkedConvert('browserPackageName', (v) => v as String?), - ); - return val; - }, - ); +_$CognitoSignInWithWebUIPluginOptionsFromJson(Map json) => + $checkedCreate('CognitoSignInWithWebUIPluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoSignInWithWebUIPluginOptions( + isPreferPrivateSession: $checkedConvert( + 'isPreferPrivateSession', + (v) => v as bool? ?? false, + ), + browserPackageName: $checkedConvert( + 'browserPackageName', + (v) => v as String?, + ), + ); + return val; + }); Map _$CognitoSignInWithWebUIPluginOptionsToJson( - CognitoSignInWithWebUIPluginOptions instance) { - final val = { - 'isPreferPrivateSession': instance.isPreferPrivateSession, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('browserPackageName', instance.browserPackageName); - return val; -} + CognitoSignInWithWebUIPluginOptions instance, +) => { + 'isPreferPrivateSession': instance.isPreferPrivateSession, + if (instance.browserPackageName case final value?) + 'browserPackageName': value, +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.dart index 03a61e040d..bf7d926e3e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.dart @@ -14,9 +14,7 @@ class CognitoSignOutPluginOptions extends SignOutPluginOptions { const CognitoSignOutPluginOptions(); /// {@macro amplify_auth_cognito.model.cognito_sign_out_plugin_options} - factory CognitoSignOutPluginOptions.fromJson( - Map json, - ) => + factory CognitoSignOutPluginOptions.fromJson(Map json) => _$CognitoSignOutPluginOptionsFromJson(json); @override diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.g.dart index efc6803763..037eb5ab53 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_plugin_options.g.dart @@ -7,16 +7,12 @@ part of 'cognito_sign_out_plugin_options.dart'; // ************************************************************************** CognitoSignOutPluginOptions _$CognitoSignOutPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoSignOutPluginOptions', - json, - ($checkedConvert) { - final val = CognitoSignOutPluginOptions(); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoSignOutPluginOptions', json, ($checkedConvert) { + final val = CognitoSignOutPluginOptions(); + return val; +}); Map _$CognitoSignOutPluginOptionsToJson( - CognitoSignOutPluginOptions instance) => - {}; + CognitoSignOutPluginOptions instance, +) => {}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_result.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_result.dart index d3119a0b17..4a95178dc2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_result.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signout/cognito_sign_out_result.dart @@ -38,9 +38,7 @@ sealed class CognitoSignOutResult extends SignOutResult String get runtimeTypeName => 'CognitoSignOutResult'; @override - Map toJson() => { - 'signedOutLocally': signedOutLocally, - }; + Map toJson() => {'signedOutLocally': signedOutLocally}; } /// {@template amplify_auth_cognito_dart.model.cognito_complete_sign_out} @@ -72,9 +70,9 @@ final class CognitoFailedSignOut extends CognitoSignOutResult { @override Map toJson() => { - 'exception': exception.toString(), - 'signedOutLocally': signedOutLocally, - }; + 'exception': exception.toString(), + 'signedOutLocally': signedOutLocally, + }; } /// {@template amplify_auth_cognito_dart.model.cognito_partial_sign_out} @@ -103,19 +101,19 @@ final class CognitoPartialSignOut extends CognitoSignOutResult { @override List get props => [ - hostedUiException, - globalSignOutException, - revokeTokenException, - signedOutLocally, - ]; + hostedUiException, + globalSignOutException, + revokeTokenException, + signedOutLocally, + ]; @override Map toJson() => { - 'hostedUiException': hostedUiException?.toString(), - 'globalSignOutException': globalSignOutException?.toString(), - 'revokeTokenException': revokeTokenException?.toString(), - 'signedOutLocally': signedOutLocally, - }; + 'hostedUiException': hostedUiException?.toString(), + 'globalSignOutException': globalSignOutException?.toString(), + 'revokeTokenException': revokeTokenException?.toString(), + 'signedOutLocally': signedOutLocally, + }; } /// {@template amplify_auth_cognito_dart.model.signout.hosted_ui_exception} @@ -123,12 +121,11 @@ final class CognitoPartialSignOut extends CognitoSignOutResult { /// {@endtemplate} final class HostedUiException extends UnknownException { /// {@macro amplify_auth_cognito_dart.model.signout.hosted_ui_exception} - const HostedUiException({ - super.underlyingException, - }) : super( - 'Failed to perform Hosted UI sign out', - recoverySuggestion: 'See underlyingException for more details', - ); + const HostedUiException({super.underlyingException}) + : super( + 'Failed to perform Hosted UI sign out', + recoverySuggestion: 'See underlyingException for more details', + ); @override String get runtimeTypeName => 'HostedUiException'; @@ -143,9 +140,9 @@ final class GlobalSignOutException extends AuthServiceException { required this.accessToken, super.underlyingException, }) : super( - 'Failed to sign out globally', - recoverySuggestion: 'See underlyingException for more details', - ); + 'Failed to sign out globally', + recoverySuggestion: 'See underlyingException for more details', + ); /// The access token which failed global sign out. /// @@ -165,9 +162,9 @@ final class RevokeTokenException extends AuthServiceException { required this.refreshToken, super.underlyingException, }) : super( - 'Failed to revoke token', - recoverySuggestion: 'See underlyingException for more details', - ); + 'Failed to revoke token', + recoverySuggestion: 'See underlyingException for more details', + ); /// The refresh token which failed to revoke. /// diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.dart index 9acd9dcdd7..07145a12c5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.dart @@ -11,15 +11,12 @@ part 'cognito_confirm_sign_up_plugin_options.g.dart'; @zAmplifySerializable class CognitoConfirmSignUpPluginOptions extends ConfirmSignUpPluginOptions { /// {@macro amplify_auth_cognito_dart.cognito_confirm_sign_up_plugin_options} - const CognitoConfirmSignUpPluginOptions({ - this.clientMetadata = const {}, - }); + const CognitoConfirmSignUpPluginOptions({this.clientMetadata = const {}}); /// {@macro amplify_auth_cognito_dart.cognito_confirm_sign_up_plugin_options} factory CognitoConfirmSignUpPluginOptions.fromJson( Map json, - ) => - _$CognitoConfirmSignUpPluginOptionsFromJson(json); + ) => _$CognitoConfirmSignUpPluginOptionsFromJson(json); /// {@template amplify_auth_cognito_dart.cognito_confirm_sign_up_plugin_options.client_metadata} /// A map of custom key-value pairs that you can provide as input for certain diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.g.dart index 71f2c82488..3e5e519658 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_confirm_sign_up_plugin_options.g.dart @@ -7,26 +7,23 @@ part of 'cognito_confirm_sign_up_plugin_options.dart'; // ************************************************************************** CognitoConfirmSignUpPluginOptions _$CognitoConfirmSignUpPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoConfirmSignUpPluginOptions', - json, - ($checkedConvert) { - final val = CognitoConfirmSignUpPluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => - (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoConfirmSignUpPluginOptions', json, ( + $checkedConvert, +) { + final val = CognitoConfirmSignUpPluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => + (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, + ), + ); + return val; +}); Map _$CognitoConfirmSignUpPluginOptionsToJson( - CognitoConfirmSignUpPluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - }; + CognitoConfirmSignUpPluginOptions instance, +) => {'clientMetadata': instance.clientMetadata}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.dart index 0fed14f3e0..5f9061fc11 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.dart @@ -12,15 +12,12 @@ part 'cognito_resend_sign_up_code_plugin_options.g.dart'; class CognitoResendSignUpCodePluginOptions extends ResendSignUpCodePluginOptions { /// {@macro amplify_auth_cognito_dart.model.cognito_resend_sign_up_code_plugin_options} - const CognitoResendSignUpCodePluginOptions({ - this.clientMetadata = const {}, - }); + const CognitoResendSignUpCodePluginOptions({this.clientMetadata = const {}}); /// {@macro amplify_auth_cognito_dart.model.cognito_resend_sign_up_code_plugin_options} factory CognitoResendSignUpCodePluginOptions.fromJson( Map json, - ) => - _$CognitoResendSignUpCodePluginOptionsFromJson(json); + ) => _$CognitoResendSignUpCodePluginOptionsFromJson(json); /// {@template amplify_auth_cognito_dart.model.cognito_resend_sign_up_code_plugin_options.client_metadata} /// Additional custom attributes to be sent to the service such as information diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.g.dart index 626dc10535..b80fc67380 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_resend_sign_up_code_plugin_options.g.dart @@ -7,26 +7,23 @@ part of 'cognito_resend_sign_up_code_plugin_options.dart'; // ************************************************************************** CognitoResendSignUpCodePluginOptions - _$CognitoResendSignUpCodePluginOptionsFromJson(Map json) => - $checkedCreate( - 'CognitoResendSignUpCodePluginOptions', - json, - ($checkedConvert) { - final val = CognitoResendSignUpCodePluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => - (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}), - ); - return val; - }, - ); +_$CognitoResendSignUpCodePluginOptionsFromJson(Map json) => + $checkedCreate('CognitoResendSignUpCodePluginOptions', json, ( + $checkedConvert, + ) { + final val = CognitoResendSignUpCodePluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => + (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, + ), + ); + return val; + }); Map _$CognitoResendSignUpCodePluginOptionsToJson( - CognitoResendSignUpCodePluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - }; + CognitoResendSignUpCodePluginOptions instance, +) => {'clientMetadata': instance.clientMetadata}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.dart index 8afafc3a9b..46357d2a31 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.dart @@ -14,8 +14,8 @@ class CognitoSignUpPluginOptions extends SignUpPluginOptions { const CognitoSignUpPluginOptions({ Map? clientMetadata, Map? validationData, - }) : validationData = validationData ?? const {}, - clientMetadata = clientMetadata ?? const {}; + }) : validationData = validationData ?? const {}, + clientMetadata = clientMetadata ?? const {}; /// {@macro amplify_auth_cognito.model.cognito_sign_up_plugin_options} factory CognitoSignUpPluginOptions.fromJson(Map json) => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.g.dart index 1e20a391f2..948868601b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/model/signup/cognito_sign_up_plugin_options.g.dart @@ -7,30 +7,26 @@ part of 'cognito_sign_up_plugin_options.dart'; // ************************************************************************** CognitoSignUpPluginOptions _$CognitoSignUpPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'CognitoSignUpPluginOptions', - json, - ($checkedConvert) { - final val = CognitoSignUpPluginOptions( - clientMetadata: $checkedConvert( - 'clientMetadata', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - validationData: $checkedConvert( - 'validationData', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - )), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('CognitoSignUpPluginOptions', json, ($checkedConvert) { + final val = CognitoSignUpPluginOptions( + clientMetadata: $checkedConvert( + 'clientMetadata', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as String)), + ), + validationData: $checkedConvert( + 'validationData', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as String)), + ), + ); + return val; +}); Map _$CognitoSignUpPluginOptionsToJson( - CognitoSignUpPluginOptions instance) => - { - 'clientMetadata': instance.clientMetadata, - 'validationData': instance.validationData, - }; + CognitoSignUpPluginOptions instance, +) => { + 'clientMetadata': instance.clientMetadata, + 'validationData': instance.validationData, +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_bindings.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_bindings.g.dart index 8d0517291d..480180c14c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_bindings.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_bindings.g.dart @@ -17,29 +17,25 @@ import 'package:ffi/ffi.dart' as pkg_ffi; class NativeMacOsFramework { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. NativeMacOsFramework(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. NativeMacOsFramework.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; - int uname( - ffi.Pointer arg0, - ) { - return _uname( - arg0, - ); + int uname(ffi.Pointer arg0) { + return _uname(arg0); } late final _unamePtr = _lookup)>>( - 'uname'); + 'uname', + ); late final _uname = _unamePtr.asFunction)>(); @@ -53,12 +49,8 @@ class NativeMacOsFramework { set kCFAllocatorDefault(ffi.Pointer<__CFAllocator> value) => _kCFAllocatorDefault.value = value; - void CFRelease( - CFTypeRef cf, - ) { - return _CFRelease( - cf, - ); + void CFRelease(CFTypeRef cf) { + return _CFRelease(cf); } late final _CFReleasePtr = @@ -84,92 +76,103 @@ class NativeMacOsFramework { } late final _CFDictionaryCreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<__CFAllocator>, - ffi.Pointer>, - ffi.Pointer>, - ffi.Long, - ffi.Pointer, - ffi.Pointer)>>('CFDictionaryCreate'); - late final _CFDictionaryCreate = _CFDictionaryCreatePtr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( + ffi.Pointer<__CFAllocator>, + ffi.Pointer>, + ffi.Pointer>, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDictionaryCreate'); + late final _CFDictionaryCreate = + _CFDictionaryCreatePtr.asFunction< + ffi.Pointer Function( ffi.Pointer<__CFAllocator>, ffi.Pointer>, ffi.Pointer>, int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); ffi.Pointer CFDataCreate( ffi.Pointer<__CFAllocator> allocator, ffi.Pointer bytes, int length, ) { - return _CFDataCreate( - allocator, - bytes, - length, - ); + return _CFDataCreate(allocator, bytes, length); } late final _CFDataCreatePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<__CFAllocator>, - ffi.Pointer, ffi.Long)>>('CFDataCreate'); - late final _CFDataCreate = _CFDataCreatePtr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer<__CFAllocator>, ffi.Pointer, int)>(); + ffi.Pointer<__CFAllocator>, + ffi.Pointer, + ffi.Long, + ) + > + >('CFDataCreate'); + late final _CFDataCreate = + _CFDataCreatePtr.asFunction< + ffi.Pointer Function( + ffi.Pointer<__CFAllocator>, + ffi.Pointer, + int, + ) + >(); - ffi.Pointer CFDataGetBytePtr( - ffi.Pointer theData, - ) { - return _CFDataGetBytePtr( - theData, - ); + ffi.Pointer CFDataGetBytePtr(ffi.Pointer theData) { + return _CFDataGetBytePtr(theData); } late final _CFDataGetBytePtrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('CFDataGetBytePtr'); - late final _CFDataGetBytePtr = _CFDataGetBytePtrPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('CFDataGetBytePtr'); + late final _CFDataGetBytePtr = + _CFDataGetBytePtrPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); ffi.Pointer CFStringCreateWithCString( ffi.Pointer<__CFAllocator> alloc, ffi.Pointer cStr, int encoding, ) { - return _CFStringCreateWithCString( - alloc, - cStr, - encoding, - ); + return _CFStringCreateWithCString(alloc, cStr, encoding); } late final _CFStringCreateWithCStringPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<__CFAllocator>, - ffi.Pointer, - ffi.UnsignedInt)>>('CFStringCreateWithCString'); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<__CFAllocator>, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('CFStringCreateWithCString'); late final _CFStringCreateWithCString = _CFStringCreateWithCStringPtr.asFunction< - ffi.Pointer Function( - ffi.Pointer<__CFAllocator>, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer<__CFAllocator>, + ffi.Pointer, + int, + ) + >(); - int CFStringGetLength( - ffi.Pointer theString, - ) { - return _CFStringGetLength( - theString, - ); + int CFStringGetLength(ffi.Pointer theString) { + return _CFStringGetLength(theString); } late final _CFStringGetLengthPtr = _lookup)>>( - 'CFStringGetLength'); + 'CFStringGetLength', + ); late final _CFStringGetLength = _CFStringGetLengthPtr.asFunction)>(); @@ -179,57 +182,53 @@ class NativeMacOsFramework { int bufferSize, int encoding, ) { - return _CFStringGetCString( - theString, - buffer, - bufferSize, - encoding, - ); + return _CFStringGetCString(theString, buffer, bufferSize, encoding); } late final _CFStringGetCStringPtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.UnsignedInt)>>('CFStringGetCString'); - late final _CFStringGetCString = _CFStringGetCStringPtr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, int)>(); + ffi.NativeFunction< + ffi.UnsignedChar Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.UnsignedInt, + ) + > + >('CFStringGetCString'); + late final _CFStringGetCString = + _CFStringGetCStringPtr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int) + >(); ffi.Pointer CFStringGetCStringPtr( ffi.Pointer theString, int encoding, ) { - return _CFStringGetCStringPtr1( - theString, - encoding, - ); + return _CFStringGetCStringPtr1(theString, encoding); } late final _CFStringGetCStringPtrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.UnsignedInt)>>('CFStringGetCStringPtr'); - late final _CFStringGetCStringPtr1 = _CFStringGetCStringPtrPtr.asFunction< - ffi.Pointer Function(ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, ffi.UnsignedInt) + > + >('CFStringGetCStringPtr'); + late final _CFStringGetCStringPtr1 = + _CFStringGetCStringPtrPtr.asFunction< + ffi.Pointer Function(ffi.Pointer, int) + >(); - int CFStringGetMaximumSizeForEncoding( - int length, - int encoding, - ) { - return _CFStringGetMaximumSizeForEncoding( - length, - encoding, - ); + int CFStringGetMaximumSizeForEncoding(int length, int encoding) { + return _CFStringGetMaximumSizeForEncoding(length, encoding); } late final _CFStringGetMaximumSizeForEncodingPtr = _lookup>( - 'CFStringGetMaximumSizeForEncoding'); + 'CFStringGetMaximumSizeForEncoding', + ); late final _CFStringGetMaximumSizeForEncoding = _CFStringGetMaximumSizeForEncodingPtr.asFunction< - int Function(int, int)>(); + int Function(int, int) + >(); /// The bundle identifier (for CFBundleGetBundleWithIdentifier()) late final ffi.Pointer> _kCFBundleVersionKey = @@ -247,20 +246,16 @@ class NativeMacOsFramework { return sel; } - ffi.Pointer _sel_registerName( - ffi.Pointer str, - ) { - return __sel_registerName( - str, - ); + ffi.Pointer _sel_registerName(ffi.Pointer str) { + return __sel_registerName(str); } late final __sel_registerNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('sel_registerName'); - late final __sel_registerName = __sel_registerNamePtr - .asFunction Function(ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Pointer)> + >('sel_registerName'); + late final __sel_registerName = + __sel_registerNamePtr + .asFunction Function(ffi.Pointer)>(); ffi.Pointer _getClass1(String name) { final cstr = name.toNativeUtf8(); @@ -272,70 +267,64 @@ class NativeMacOsFramework { return clazz; } - ffi.Pointer _objc_getClass( - ffi.Pointer str, - ) { - return __objc_getClass( - str, - ); + ffi.Pointer _objc_getClass(ffi.Pointer str) { + return __objc_getClass(str); } late final __objc_getClassPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('objc_getClass'); - late final __objc_getClass = __objc_getClassPtr - .asFunction Function(ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Pointer)> + >('objc_getClass'); + late final __objc_getClass = + __objc_getClassPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - ffi.Pointer _objc_retain( - ffi.Pointer value, - ) { - return __objc_retain( - value, - ); + ffi.Pointer _objc_retain(ffi.Pointer value) { + return __objc_retain(value); } late final __objc_retainPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('objc_retain'); - late final __objc_retain = __objc_retainPtr - .asFunction Function(ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('objc_retain'); + late final __objc_retain = + __objc_retainPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); - void _objc_release( - ffi.Pointer value, - ) { - return __objc_release( - value, - ); + void _objc_release(ffi.Pointer value) { + return __objc_release(value); } late final __objc_releasePtr = _lookup)>>( - 'objc_release'); + 'objc_release', + ); late final __objc_release = __objc_releasePtr.asFunction)>(); - late final _objc_releaseFinalizer2 = - ffi.NativeFinalizer(__objc_releasePtr.cast()); + late final _objc_releaseFinalizer2 = ffi.NativeFinalizer( + __objc_releasePtr.cast(), + ); late final _class_NSObject1 = _getClass1("NSObject"); late final _sel_load1 = _registerName1("load"); - void _objc_msgSend_1( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1( - obj, - sel, - ); + void _objc_msgSend_1(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_1(obj, sel); } late final __objc_msgSend_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1 = __objc_msgSend_1Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_1 = + __objc_msgSend_1Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_initialize1 = _registerName1("initialize"); late final _sel_init1 = _registerName1("init"); @@ -343,18 +332,19 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_2( - obj, - sel, - ); + return __objc_msgSend_2(obj, sel); } late final __objc_msgSend_2Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_2 = __objc_msgSend_2Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_2 = + __objc_msgSend_2Ptr + .asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_new1 = _registerName1("new"); late final _sel_allocWithZone_1 = _registerName1("allocWithZone:"); @@ -363,20 +353,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_3( - obj, - sel, - zone, - ); + return __objc_msgSend_3(obj, sel, zone); } late final __objc_msgSend_3Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_3 = __objc_msgSend_3Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>(); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSZone>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_3 = + __objc_msgSend_3Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSZone>, + ) + >(); late final _sel_alloc1 = _registerName1("alloc"); late final _sel_dealloc1 = _registerName1("dealloc"); @@ -384,49 +381,65 @@ class NativeMacOsFramework { late final _sel_copy1 = _registerName1("copy"); late final _sel_mutableCopy1 = _registerName1("mutableCopy"); late final _sel_copyWithZone_1 = _registerName1("copyWithZone:"); - late final _sel_mutableCopyWithZone_1 = - _registerName1("mutableCopyWithZone:"); - late final _sel_instancesRespondToSelector_1 = - _registerName1("instancesRespondToSelector:"); + late final _sel_mutableCopyWithZone_1 = _registerName1( + "mutableCopyWithZone:", + ); + late final _sel_instancesRespondToSelector_1 = _registerName1( + "instancesRespondToSelector:", + ); bool _objc_msgSend_4( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_4( - obj, - sel, - aSelector, - ); + return __objc_msgSend_4(obj, sel, aSelector); } late final __objc_msgSend_4Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_4 = __objc_msgSend_4Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_4 = + __objc_msgSend_4Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); bool _objc_msgSend_0( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer clazz, ) { - return __objc_msgSend_0( - obj, - sel, - clazz, - ); + return __objc_msgSend_0(obj, sel, clazz); } late final __objc_msgSend_0Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_0 = __objc_msgSend_0Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_0 = + __objc_msgSend_0Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isKindOfClass_1 = _registerName1("isKindOfClass:"); late final _class_Protocol1 = _getClass1("Protocol"); @@ -436,20 +449,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer protocol, ) { - return __objc_msgSend_5( - obj, - sel, - protocol, - ); + return __objc_msgSend_5(obj, sel, protocol); } late final __objc_msgSend_5Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_5 = __objc_msgSend_5Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_5 = + __objc_msgSend_5Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_methodForSelector_1 = _registerName1("methodForSelector:"); ffi.Pointer> _objc_msgSend_6( @@ -457,70 +477,90 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_6( - obj, - sel, - aSelector, - ); + return __objc_msgSend_6(obj, sel, aSelector); } late final __objc_msgSend_6Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer> Function( + ffi.NativeFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_6 = + __objc_msgSend_6Ptr + .asFunction< + ffi.Pointer> Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_6 = __objc_msgSend_6Ptr.asFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_instanceMethodForSelector_1 = - _registerName1("instanceMethodForSelector:"); - late final _sel_doesNotRecognizeSelector_1 = - _registerName1("doesNotRecognizeSelector:"); + ffi.Pointer, + ) + >(); + + late final _sel_instanceMethodForSelector_1 = _registerName1( + "instanceMethodForSelector:", + ); + late final _sel_doesNotRecognizeSelector_1 = _registerName1( + "doesNotRecognizeSelector:", + ); void _objc_msgSend_7( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_7( - obj, - sel, - aSelector, - ); + return __objc_msgSend_7(obj, sel, aSelector); } late final __objc_msgSend_7Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_7 = __objc_msgSend_7Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_forwardingTargetForSelector_1 = - _registerName1("forwardingTargetForSelector:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_7 = + __objc_msgSend_7Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_forwardingTargetForSelector_1 = _registerName1( + "forwardingTargetForSelector:", + ); ffi.Pointer _objc_msgSend_8( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_8( - obj, - sel, - aSelector, - ); + return __objc_msgSend_8(obj, sel, aSelector); } late final __objc_msgSend_8Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_8 = __objc_msgSend_8Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_8 = + __objc_msgSend_8Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _class_NSInvocation1 = _getClass1("NSInvocation"); late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); @@ -529,86 +569,99 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer anInvocation, ) { - return __objc_msgSend_9( - obj, - sel, - anInvocation, - ); + return __objc_msgSend_9(obj, sel, anInvocation); } late final __objc_msgSend_9Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_9 = __objc_msgSend_9Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_9 = + __objc_msgSend_9Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _class_NSMethodSignature1 = _getClass1("NSMethodSignature"); - late final _sel_methodSignatureForSelector_1 = - _registerName1("methodSignatureForSelector:"); + late final _sel_methodSignatureForSelector_1 = _registerName1( + "methodSignatureForSelector:", + ); ffi.Pointer _objc_msgSend_10( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ) { - return __objc_msgSend_10( - obj, - sel, - aSelector, - ); + return __objc_msgSend_10(obj, sel, aSelector); } late final __objc_msgSend_10Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_10 = __objc_msgSend_10Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_instanceMethodSignatureForSelector_1 = - _registerName1("instanceMethodSignatureForSelector:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_10 = + __objc_msgSend_10Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_instanceMethodSignatureForSelector_1 = _registerName1( + "instanceMethodSignatureForSelector:", + ); late final _sel_allowsWeakReference1 = _registerName1("allowsWeakReference"); - bool _objc_msgSend_11( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_11( - obj, - sel, - ); + bool _objc_msgSend_11(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_11(obj, sel); } late final __objc_msgSend_11Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_11 = __objc_msgSend_11Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_11 = + __objc_msgSend_11Ptr + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_retainWeakReference1 = _registerName1("retainWeakReference"); late final _sel_isSubclassOfClass_1 = _registerName1("isSubclassOfClass:"); late final _sel_resolveClassMethod_1 = _registerName1("resolveClassMethod:"); - late final _sel_resolveInstanceMethod_1 = - _registerName1("resolveInstanceMethod:"); + late final _sel_resolveInstanceMethod_1 = _registerName1( + "resolveInstanceMethod:", + ); late final _sel_hash1 = _registerName1("hash"); - int _objc_msgSend_12( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_12( - obj, - sel, - ); + int _objc_msgSend_12(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_12(obj, sel); } late final __objc_msgSend_12Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_12 = __objc_msgSend_12Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_12 = + __objc_msgSend_12Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_superclass1 = _registerName1("superclass"); late final _sel_class1 = _registerName1("class"); @@ -620,44 +673,57 @@ class NativeMacOsFramework { ffi.Pointer sel, int index, ) { - return __objc_msgSend_13( - obj, - sel, - index, - ); + return __objc_msgSend_13(obj, sel, index); } late final __objc_msgSend_13Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedShort Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_13 = __objc_msgSend_13Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_13 = + __objc_msgSend_13Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); late final _class_NSCoder1 = _getClass1("NSCoder"); - late final _sel_encodeValueOfObjCType_at_1 = - _registerName1("encodeValueOfObjCType:at:"); + late final _sel_encodeValueOfObjCType_at_1 = _registerName1( + "encodeValueOfObjCType:at:", + ); void _objc_msgSend_14( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer type, ffi.Pointer addr, ) { - return __objc_msgSend_14( - obj, - sel, - type, - addr, - ); + return __objc_msgSend_14(obj, sel, type, addr); } late final __objc_msgSend_14Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_14 = __objc_msgSend_14Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_14 = + __objc_msgSend_14Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _class_NSData1 = _getClass1("NSData"); late final _sel_bytes1 = _registerName1("bytes"); @@ -665,19 +731,25 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_15( - obj, - sel, - ); + return __objc_msgSend_15(obj, sel); } late final __objc_msgSend_15Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_15 = __objc_msgSend_15Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_15 = + __objc_msgSend_15Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_encodeDataObject_1 = _registerName1("encodeDataObject:"); void _objc_msgSend_16( @@ -685,42 +757,56 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_16( - obj, - sel, - data, - ); + return __objc_msgSend_16(obj, sel, data); } late final __objc_msgSend_16Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_16 = __objc_msgSend_16Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_16 = + __objc_msgSend_16Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeDataObject1 = _registerName1("decodeDataObject"); ffi.Pointer _objc_msgSend_17( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_17( - obj, - sel, - ); + return __objc_msgSend_17(obj, sel); } late final __objc_msgSend_17Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_17 = + __objc_msgSend_17Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_decodeValueOfObjCType_at_size_1 = - _registerName1("decodeValueOfObjCType:at:size:"); + late final _sel_decodeValueOfObjCType_at_size_1 = _registerName1( + "decodeValueOfObjCType:at:size:", + ); void _objc_msgSend_18( ffi.Pointer obj, ffi.Pointer sel, @@ -728,48 +814,61 @@ class NativeMacOsFramework { ffi.Pointer data, int size, ) { - return __objc_msgSend_18( - obj, - sel, - type, - data, - size, - ); + return __objc_msgSend_18(obj, sel, type, data, size); } late final __objc_msgSend_18Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_18 = + __objc_msgSend_18Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + int, + ) + >(); - late final _sel_versionForClassName_1 = - _registerName1("versionForClassName:"); + late final _sel_versionForClassName_1 = _registerName1( + "versionForClassName:", + ); int _objc_msgSend_19( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer className, ) { - return __objc_msgSend_19( - obj, - sel, - className, - ); + return __objc_msgSend_19(obj, sel, className); } late final __objc_msgSend_19Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_19 = + __objc_msgSend_19Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_encodeObject_1 = _registerName1("encodeObject:"); void _objc_msgSend_20( @@ -777,50 +876,67 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer object, ) { - return __objc_msgSend_20( - obj, - sel, - object, - ); + return __objc_msgSend_20(obj, sel, object); } late final __objc_msgSend_20Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_20 = + __objc_msgSend_20Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_encodeRootObject_1 = _registerName1("encodeRootObject:"); late final _sel_encodeBycopyObject_1 = _registerName1("encodeBycopyObject:"); late final _sel_encodeByrefObject_1 = _registerName1("encodeByrefObject:"); - late final _sel_encodeConditionalObject_1 = - _registerName1("encodeConditionalObject:"); - late final _sel_encodeValuesOfObjCTypes_1 = - _registerName1("encodeValuesOfObjCTypes:"); + late final _sel_encodeConditionalObject_1 = _registerName1( + "encodeConditionalObject:", + ); + late final _sel_encodeValuesOfObjCTypes_1 = _registerName1( + "encodeValuesOfObjCTypes:", + ); void _objc_msgSend_21( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer types, ) { - return __objc_msgSend_21( - obj, - sel, - types, - ); + return __objc_msgSend_21(obj, sel, types); } late final __objc_msgSend_21Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_encodeArrayOfObjCType_count_at_1 = - _registerName1("encodeArrayOfObjCType:count:at:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_21 = + __objc_msgSend_21Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_encodeArrayOfObjCType_count_at_1 = _registerName1( + "encodeArrayOfObjCType:count:at:", + ); void _objc_msgSend_22( ffi.Pointer obj, ffi.Pointer sel, @@ -828,26 +944,31 @@ class NativeMacOsFramework { int count, ffi.Pointer array, ) { - return __objc_msgSend_22( - obj, - sel, - type, - count, - array, - ); + return __objc_msgSend_22(obj, sel, type, count, array); } late final __objc_msgSend_22Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_22 = + __objc_msgSend_22Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); + int, + ffi.Pointer, + ) + >(); late final _sel_encodeBytes_length_1 = _registerName1("encodeBytes:length:"); void _objc_msgSend_23( @@ -856,75 +977,97 @@ class NativeMacOsFramework { ffi.Pointer byteaddr, int length, ) { - return __objc_msgSend_23( - obj, - sel, - byteaddr, - length, - ); + return __objc_msgSend_23(obj, sel, byteaddr, length); } late final __objc_msgSend_23Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_decodeObject1 = _registerName1("decodeObject"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_23 = + __objc_msgSend_23Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_decodeObject1 = _registerName1("decodeObject"); late final _class_NSError1 = _getClass1("NSError"); - late final _sel_decodeTopLevelObjectAndReturnError_1 = - _registerName1("decodeTopLevelObjectAndReturnError:"); + late final _sel_decodeTopLevelObjectAndReturnError_1 = _registerName1( + "decodeTopLevelObjectAndReturnError:", + ); ffi.Pointer _objc_msgSend_24( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_24( - obj, - sel, - error, - ); + return __objc_msgSend_24(obj, sel, error); } late final __objc_msgSend_24Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_24 = + __objc_msgSend_24Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_decodeValuesOfObjCTypes_1 = - _registerName1("decodeValuesOfObjCTypes:"); - late final _sel_decodeArrayOfObjCType_count_at_1 = - _registerName1("decodeArrayOfObjCType:count:at:"); - late final _sel_decodeBytesWithReturnedLength_1 = - _registerName1("decodeBytesWithReturnedLength:"); + ffi.Pointer>, + ) + >(); + + late final _sel_decodeValuesOfObjCTypes_1 = _registerName1( + "decodeValuesOfObjCTypes:", + ); + late final _sel_decodeArrayOfObjCType_count_at_1 = _registerName1( + "decodeArrayOfObjCType:count:at:", + ); + late final _sel_decodeBytesWithReturnedLength_1 = _registerName1( + "decodeBytesWithReturnedLength:", + ); ffi.Pointer _objc_msgSend_25( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer lengthp, ) { - return __objc_msgSend_25( - obj, - sel, - lengthp, - ); + return __objc_msgSend_25(obj, sel, lengthp); } late final __objc_msgSend_25Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_25 = + __objc_msgSend_25Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_encodePropertyList_1 = _registerName1("encodePropertyList:"); late final _sel_decodePropertyList1 = _registerName1("decodePropertyList"); @@ -934,88 +1077,106 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_26( - obj, - sel, - zone, - ); + return __objc_msgSend_26(obj, sel, zone); } late final __objc_msgSend_26Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSZone>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_26 = + __objc_msgSend_26Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSZone>, + ) + >(); late final _sel_objectZone1 = _registerName1("objectZone"); ffi.Pointer<_NSZone> _objc_msgSend_27( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_27( - obj, - sel, - ); + return __objc_msgSend_27(obj, sel); } late final __objc_msgSend_27Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_NSZone> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer<_NSZone> Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_27 = + __objc_msgSend_27Ptr + .asFunction< + ffi.Pointer<_NSZone> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_systemVersion1 = _registerName1("systemVersion"); - int _objc_msgSend_28( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_28( - obj, - sel, - ); + int _objc_msgSend_28(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_28(obj, sel); } late final __objc_msgSend_28Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_28 = + __objc_msgSend_28Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_allowsKeyedCoding1 = _registerName1("allowsKeyedCoding"); - late final _sel_encodeObject_forKey_1 = - _registerName1("encodeObject:forKey:"); + late final _sel_encodeObject_forKey_1 = _registerName1( + "encodeObject:forKey:", + ); void _objc_msgSend_29( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer key, ) { - return __objc_msgSend_29( - obj, - sel, - object, - key, - ); + return __objc_msgSend_29(obj, sel, object, key); } late final __objc_msgSend_29Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_29 = + __objc_msgSend_29Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_encodeConditionalObject_forKey_1 = - _registerName1("encodeConditionalObject:forKey:"); + late final _sel_encodeConditionalObject_forKey_1 = _registerName1( + "encodeConditionalObject:forKey:", + ); late final _sel_encodeBool_forKey_1 = _registerName1("encodeBool:forKey:"); void _objc_msgSend_30( ffi.Pointer obj, @@ -1023,21 +1184,29 @@ class NativeMacOsFramework { bool value, ffi.Pointer key, ) { - return __objc_msgSend_30( - obj, - sel, - value, - key, - ); + return __objc_msgSend_30(obj, sel, value, key); } late final __objc_msgSend_30Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_30 = + __objc_msgSend_30Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ) + >(); late final _sel_encodeInt_forKey_1 = _registerName1("encodeInt:forKey:"); void _objc_msgSend_31( @@ -1046,21 +1215,29 @@ class NativeMacOsFramework { int value, ffi.Pointer key, ) { - return __objc_msgSend_31( - obj, - sel, - value, - key, - ); + return __objc_msgSend_31(obj, sel, value, key); } late final __objc_msgSend_31Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_31 = + __objc_msgSend_31Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); late final _sel_encodeInt32_forKey_1 = _registerName1("encodeInt32:forKey:"); void _objc_msgSend_32( @@ -1069,21 +1246,29 @@ class NativeMacOsFramework { int value, ffi.Pointer key, ) { - return __objc_msgSend_32( - obj, - sel, - value, - key, - ); + return __objc_msgSend_32(obj, sel, value, key); } late final __objc_msgSend_32Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_32 = + __objc_msgSend_32Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); late final _sel_encodeInt64_forKey_1 = _registerName1("encodeInt64:forKey:"); void _objc_msgSend_33( @@ -1092,21 +1277,29 @@ class NativeMacOsFramework { int value, ffi.Pointer key, ) { - return __objc_msgSend_33( - obj, - sel, - value, - key, - ); + return __objc_msgSend_33(obj, sel, value, key); } late final __objc_msgSend_33Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_33 = + __objc_msgSend_33Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); late final _sel_encodeFloat_forKey_1 = _registerName1("encodeFloat:forKey:"); void _objc_msgSend_34( @@ -1115,48 +1308,66 @@ class NativeMacOsFramework { double value, ffi.Pointer key, ) { - return __objc_msgSend_34( - obj, - sel, - value, - key, - ); + return __objc_msgSend_34(obj, sel, value, key); } late final __objc_msgSend_34Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Float, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double, - ffi.Pointer)>(); - - late final _sel_encodeDouble_forKey_1 = - _registerName1("encodeDouble:forKey:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_34 = + __objc_msgSend_34Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); + + late final _sel_encodeDouble_forKey_1 = _registerName1( + "encodeDouble:forKey:", + ); void _objc_msgSend_35( ffi.Pointer obj, ffi.Pointer sel, double value, ffi.Pointer key, ) { - return __objc_msgSend_35( - obj, - sel, - value, - key, - ); + return __objc_msgSend_35(obj, sel, value, key); } late final __objc_msgSend_35Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double, - ffi.Pointer)>(); - - late final _sel_encodeBytes_length_forKey_1 = - _registerName1("encodeBytes:length:forKey:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_35 = + __objc_msgSend_35Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); + + late final _sel_encodeBytes_length_forKey_1 = _registerName1( + "encodeBytes:length:forKey:", + ); void _objc_msgSend_36( ffi.Pointer obj, ffi.Pointer sel, @@ -1164,48 +1375,61 @@ class NativeMacOsFramework { int length, ffi.Pointer key, ) { - return __objc_msgSend_36( - obj, - sel, - bytes, - length, - key, - ); + return __objc_msgSend_36(obj, sel, bytes, length, key); } late final __objc_msgSend_36Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_36 = + __objc_msgSend_36Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_containsValueForKey_1 = - _registerName1("containsValueForKey:"); + int, + ffi.Pointer, + ) + >(); + + late final _sel_containsValueForKey_1 = _registerName1( + "containsValueForKey:", + ); bool _objc_msgSend_37( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_37( - obj, - sel, - key, - ); + return __objc_msgSend_37(obj, sel, key); } late final __objc_msgSend_37Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_37 = + __objc_msgSend_37Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeObjectForKey_1 = _registerName1("decodeObjectForKey:"); ffi.Pointer _objc_msgSend_38( @@ -1213,50 +1437,60 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_38( - obj, - sel, - key, - ); + return __objc_msgSend_38(obj, sel, key); } late final __objc_msgSend_38Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_decodeTopLevelObjectForKey_error_1 = - _registerName1("decodeTopLevelObjectForKey:error:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_38 = + __objc_msgSend_38Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_decodeTopLevelObjectForKey_error_1 = _registerName1( + "decodeTopLevelObjectForKey:error:", + ); ffi.Pointer _objc_msgSend_39( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_39( - obj, - sel, - key, - error, - ); + return __objc_msgSend_39(obj, sel, key, error); } late final __objc_msgSend_39Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_39 = + __objc_msgSend_39Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); late final _sel_decodeBoolForKey_1 = _registerName1("decodeBoolForKey:"); late final _sel_decodeIntForKey_1 = _registerName1("decodeIntForKey:"); @@ -1265,20 +1499,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_40( - obj, - sel, - key, - ); + return __objc_msgSend_40(obj, sel, key); } late final __objc_msgSend_40Ptr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_40 = + __objc_msgSend_40Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeInt32ForKey_1 = _registerName1("decodeInt32ForKey:"); int _objc_msgSend_41( @@ -1286,20 +1527,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_41( - obj, - sel, - key, - ); + return __objc_msgSend_41(obj, sel, key); } late final __objc_msgSend_41Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_41 = + __objc_msgSend_41Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeInt64ForKey_1 = _registerName1("decodeInt64ForKey:"); int _objc_msgSend_42( @@ -1307,20 +1555,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_42( - obj, - sel, - key, - ); + return __objc_msgSend_42(obj, sel, key); } late final __objc_msgSend_42Ptr = _lookup< - ffi.NativeFunction< - ffi.Int64 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_42 = + __objc_msgSend_42Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeFloatForKey_1 = _registerName1("decodeFloatForKey:"); double _objc_msgSend_43( @@ -1328,20 +1583,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_43( - obj, - sel, - key, - ); + return __objc_msgSend_43(obj, sel, key); } late final __objc_msgSend_43Ptr = _lookup< - ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_43 = + __objc_msgSend_43Ptr + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeDoubleForKey_1 = _registerName1("decodeDoubleForKey:"); double _objc_msgSend_44( @@ -1349,111 +1611,136 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_44( - obj, - sel, - key, - ); + return __objc_msgSend_44(obj, sel, key); } late final __objc_msgSend_44Ptr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeBytesForKey_returnedLength_1 = - _registerName1("decodeBytesForKey:returnedLength:"); + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_44 = + __objc_msgSend_44Ptr + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_decodeBytesForKey_returnedLength_1 = _registerName1( + "decodeBytesForKey:returnedLength:", + ); ffi.Pointer _objc_msgSend_45( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer lengthp, ) { - return __objc_msgSend_45( - obj, - sel, - key, - lengthp, - ); + return __objc_msgSend_45(obj, sel, key, lengthp); } late final __objc_msgSend_45Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_45 = + __objc_msgSend_45Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_encodeInteger_forKey_1 = - _registerName1("encodeInteger:forKey:"); + late final _sel_encodeInteger_forKey_1 = _registerName1( + "encodeInteger:forKey:", + ); void _objc_msgSend_46( ffi.Pointer obj, ffi.Pointer sel, int value, ffi.Pointer key, ) { - return __objc_msgSend_46( - obj, - sel, - value, - key, - ); + return __objc_msgSend_46(obj, sel, value, key); } late final __objc_msgSend_46Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_decodeIntegerForKey_1 = - _registerName1("decodeIntegerForKey:"); - late final _sel_requiresSecureCoding1 = - _registerName1("requiresSecureCoding"); - late final _sel_decodeObjectOfClass_forKey_1 = - _registerName1("decodeObjectOfClass:forKey:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_46 = + __objc_msgSend_46Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); + + late final _sel_decodeIntegerForKey_1 = _registerName1( + "decodeIntegerForKey:", + ); + late final _sel_requiresSecureCoding1 = _registerName1( + "requiresSecureCoding", + ); + late final _sel_decodeObjectOfClass_forKey_1 = _registerName1( + "decodeObjectOfClass:forKey:", + ); ffi.Pointer _objc_msgSend_47( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer key, ) { - return __objc_msgSend_47( - obj, - sel, - aClass, - key, - ); + return __objc_msgSend_47(obj, sel, aClass, key); } late final __objc_msgSend_47Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_47 = + __objc_msgSend_47Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = - _registerName1("decodeTopLevelObjectOfClass:forKey:error:"); + late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = _registerName1( + "decodeTopLevelObjectOfClass:forKey:error:", + ); ffi.Pointer _objc_msgSend_48( ffi.Pointer obj, ffi.Pointer sel, @@ -1461,30 +1748,31 @@ class NativeMacOsFramework { ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_48( - obj, - sel, - aClass, - key, - error, - ); + return __objc_msgSend_48(obj, sel, aClass, key, error); } late final __objc_msgSend_48Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_48 = + __objc_msgSend_48Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); late final _class_NSArray1 = _getClass1("NSArray"); late final _sel_count1 = _registerName1("count"); @@ -1494,47 +1782,60 @@ class NativeMacOsFramework { ffi.Pointer sel, int index, ) { - return __objc_msgSend_49( - obj, - sel, - index, - ); + return __objc_msgSend_49(obj, sel, index); } late final __objc_msgSend_49Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_49 = + __objc_msgSend_49Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_initWithObjects_count_1 = - _registerName1("initWithObjects:count:"); + late final _sel_initWithObjects_count_1 = _registerName1( + "initWithObjects:count:", + ); instancetype _objc_msgSend_50( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int cnt, ) { - return __objc_msgSend_50( - obj, - sel, - objects, - cnt, - ); + return __objc_msgSend_50(obj, sel, objects, cnt); } late final __objc_msgSend_50Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_50 = + __objc_msgSend_50Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, int)>(); + int, + ) + >(); late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); instancetype _objc_msgSend_51( @@ -1542,86 +1843,117 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_51( - obj, - sel, - coder, - ); + return __objc_msgSend_51(obj, sel, coder); } late final __objc_msgSend_51Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_arrayByAddingObject_1 = - _registerName1("arrayByAddingObject:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_51 = + __objc_msgSend_51Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_arrayByAddingObject_1 = _registerName1( + "arrayByAddingObject:", + ); ffi.Pointer _objc_msgSend_52( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_52( - obj, - sel, - anObject, - ); + return __objc_msgSend_52(obj, sel, anObject); } late final __objc_msgSend_52Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_arrayByAddingObjectsFromArray_1 = - _registerName1("arrayByAddingObjectsFromArray:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_52 = + __objc_msgSend_52Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_arrayByAddingObjectsFromArray_1 = _registerName1( + "arrayByAddingObjectsFromArray:", + ); ffi.Pointer _objc_msgSend_53( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_53( - obj, - sel, - otherArray, - ); + return __objc_msgSend_53(obj, sel, otherArray); } late final __objc_msgSend_53Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_componentsJoinedByString_1 = - _registerName1("componentsJoinedByString:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_53 = + __objc_msgSend_53Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_componentsJoinedByString_1 = _registerName1( + "componentsJoinedByString:", + ); ffi.Pointer _objc_msgSend_54( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_54( - obj, - sel, - separator, - ); + return __objc_msgSend_54(obj, sel, separator); } late final __objc_msgSend_54Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_54 = + __objc_msgSend_54Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_containsObject_1 = _registerName1("containsObject:"); late final _sel_description1 = _registerName1("description"); @@ -1629,90 +1961,118 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_55( - obj, - sel, - ); + return __objc_msgSend_55(obj, sel); } late final __objc_msgSend_55Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_55 = + __objc_msgSend_55Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_descriptionWithLocale_1 = - _registerName1("descriptionWithLocale:"); + late final _sel_descriptionWithLocale_1 = _registerName1( + "descriptionWithLocale:", + ); ffi.Pointer _objc_msgSend_56( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_56( - obj, - sel, - locale, - ); + return __objc_msgSend_56(obj, sel, locale); } late final __objc_msgSend_56Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_descriptionWithLocale_indent_1 = - _registerName1("descriptionWithLocale:indent:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_56 = + __objc_msgSend_56Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_descriptionWithLocale_indent_1 = _registerName1( + "descriptionWithLocale:indent:", + ); ffi.Pointer _objc_msgSend_57( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, int level, ) { - return __objc_msgSend_57( - obj, - sel, - locale, - level, - ); + return __objc_msgSend_57(obj, sel, locale, level); } late final __objc_msgSend_57Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_57 = + __objc_msgSend_57Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + int, + ) + >(); - late final _sel_firstObjectCommonWithArray_1 = - _registerName1("firstObjectCommonWithArray:"); + late final _sel_firstObjectCommonWithArray_1 = _registerName1( + "firstObjectCommonWithArray:", + ); ffi.Pointer _objc_msgSend_58( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_58( - obj, - sel, - otherArray, - ); + return __objc_msgSend_58(obj, sel, otherArray); } late final __objc_msgSend_58Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_58 = + __objc_msgSend_58Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); void _objc_msgSend_59( @@ -1721,21 +2081,29 @@ class NativeMacOsFramework { ffi.Pointer> objects, _NSRange range, ) { - return __objc_msgSend_59( - obj, - sel, - objects, - range, - ); + return __objc_msgSend_59(obj, sel, objects, range); } late final __objc_msgSend_59Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, _NSRange)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_59 = + __objc_msgSend_59Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + _NSRange, + ) + >(); late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); int _objc_msgSend_60( @@ -1743,72 +2111,94 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_60( - obj, - sel, - anObject, - ); + return __objc_msgSend_60(obj, sel, anObject); } late final __objc_msgSend_60Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_indexOfObject_inRange_1 = - _registerName1("indexOfObject:inRange:"); + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_60 = + __objc_msgSend_60Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_indexOfObject_inRange_1 = _registerName1( + "indexOfObject:inRange:", + ); int _objc_msgSend_61( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, _NSRange range, ) { - return __objc_msgSend_61( - obj, - sel, - anObject, - range, - ); + return __objc_msgSend_61(obj, sel, anObject, range); } late final __objc_msgSend_61Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_61 = + __objc_msgSend_61Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - late final _sel_indexOfObjectIdenticalTo_1 = - _registerName1("indexOfObjectIdenticalTo:"); - late final _sel_indexOfObjectIdenticalTo_inRange_1 = - _registerName1("indexOfObjectIdenticalTo:inRange:"); + _NSRange, + ) + >(); + + late final _sel_indexOfObjectIdenticalTo_1 = _registerName1( + "indexOfObjectIdenticalTo:", + ); + late final _sel_indexOfObjectIdenticalTo_inRange_1 = _registerName1( + "indexOfObjectIdenticalTo:inRange:", + ); late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); bool _objc_msgSend_62( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_62( - obj, - sel, - otherArray, - ); + return __objc_msgSend_62(obj, sel, otherArray); } late final __objc_msgSend_62Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_62 = + __objc_msgSend_62Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_firstObject1 = _registerName1("firstObject"); late final _sel_lastObject1 = _registerName1("lastObject"); @@ -1820,128 +2210,178 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_63( - obj, - sel, - ); + return __objc_msgSend_63(obj, sel); } late final __objc_msgSend_63Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_63 = + __objc_msgSend_63Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_reverseObjectEnumerator1 = - _registerName1("reverseObjectEnumerator"); + late final _sel_reverseObjectEnumerator1 = _registerName1( + "reverseObjectEnumerator", + ); late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); - late final _sel_sortedArrayUsingFunction_context_1 = - _registerName1("sortedArrayUsingFunction:context:"); + late final _sel_sortedArrayUsingFunction_context_1 = _registerName1( + "sortedArrayUsingFunction:context:", + ); ffi.Pointer _objc_msgSend_64( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, ffi.Pointer context, ) { - return __objc_msgSend_64( - obj, - sel, - comparator, - context, - ); + return __objc_msgSend_64(obj, sel, comparator, context); } late final __objc_msgSend_64Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_64 = + __objc_msgSend_64Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); - - late final _sel_sortedArrayUsingFunction_context_hint_1 = - _registerName1("sortedArrayUsingFunction:context:hint:"); + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); + + late final _sel_sortedArrayUsingFunction_context_hint_1 = _registerName1( + "sortedArrayUsingFunction:context:hint:", + ); ffi.Pointer _objc_msgSend_65( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, ffi.Pointer context, ffi.Pointer hint, ) { - return __objc_msgSend_65( - obj, - sel, - comparator, - context, - hint, - ); + return __objc_msgSend_65(obj, sel, comparator, context, hint); } late final __objc_msgSend_65Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_65 = + __objc_msgSend_65Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_sortedArrayUsingSelector_1 = - _registerName1("sortedArrayUsingSelector:"); + late final _sel_sortedArrayUsingSelector_1 = _registerName1( + "sortedArrayUsingSelector:", + ); ffi.Pointer _objc_msgSend_66( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comparator, ) { - return __objc_msgSend_66( - obj, - sel, - comparator, - ); + return __objc_msgSend_66(obj, sel, comparator); } late final __objc_msgSend_66Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_66 = + __objc_msgSend_66Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); ffi.Pointer _objc_msgSend_67( @@ -1949,20 +2389,27 @@ class NativeMacOsFramework { ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_67( - obj, - sel, - range, - ); + return __objc_msgSend_67(obj, sel, range); } late final __objc_msgSend_67Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_67 = + __objc_msgSend_67Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); late final _class_NSURL1 = _getClass1("NSURL"); late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); @@ -1972,98 +2419,129 @@ class NativeMacOsFramework { ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_68( - obj, - sel, - url, - error, - ); + return __objc_msgSend_68(obj, sel, url, error); } late final __objc_msgSend_68Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_68 = + __objc_msgSend_68Ptr + .asFunction< + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_makeObjectsPerformSelector_1 = - _registerName1("makeObjectsPerformSelector:"); - late final _sel_makeObjectsPerformSelector_withObject_1 = - _registerName1("makeObjectsPerformSelector:withObject:"); + ffi.Pointer>, + ) + >(); + + late final _sel_makeObjectsPerformSelector_1 = _registerName1( + "makeObjectsPerformSelector:", + ); + late final _sel_makeObjectsPerformSelector_withObject_1 = _registerName1( + "makeObjectsPerformSelector:withObject:", + ); void _objc_msgSend_69( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer argument, ) { - return __objc_msgSend_69( - obj, - sel, - aSelector, - argument, - ); + return __objc_msgSend_69(obj, sel, aSelector, argument); } late final __objc_msgSend_69Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_69 = + __objc_msgSend_69Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _class_NSIndexSet1 = _getClass1("NSIndexSet"); late final _sel_indexSet1 = _registerName1("indexSet"); late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); - late final _sel_indexSetWithIndexesInRange_1 = - _registerName1("indexSetWithIndexesInRange:"); + late final _sel_indexSetWithIndexesInRange_1 = _registerName1( + "indexSetWithIndexesInRange:", + ); instancetype _objc_msgSend_70( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_70( - obj, - sel, - range, - ); + return __objc_msgSend_70(obj, sel, range); } late final __objc_msgSend_70Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + ffi.NativeFunction< instancetype Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_70 = + __objc_msgSend_70Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); - late final _sel_initWithIndexesInRange_1 = - _registerName1("initWithIndexesInRange:"); + late final _sel_initWithIndexesInRange_1 = _registerName1( + "initWithIndexesInRange:", + ); late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); instancetype _objc_msgSend_71( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_71( - obj, - sel, - indexSet, - ); + return __objc_msgSend_71(obj, sel, indexSet); } late final __objc_msgSend_71Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_71 = + __objc_msgSend_71Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); @@ -2072,51 +2550,66 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer indexSet, ) { - return __objc_msgSend_72( - obj, - sel, - indexSet, - ); + return __objc_msgSend_72(obj, sel, indexSet); } late final __objc_msgSend_72Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_72 = + __objc_msgSend_72Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_firstIndex1 = _registerName1("firstIndex"); late final _sel_lastIndex1 = _registerName1("lastIndex"); - late final _sel_indexGreaterThanIndex_1 = - _registerName1("indexGreaterThanIndex:"); + late final _sel_indexGreaterThanIndex_1 = _registerName1( + "indexGreaterThanIndex:", + ); int _objc_msgSend_73( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_73( - obj, - sel, - value, - ); + return __objc_msgSend_73(obj, sel, value); } late final __objc_msgSend_73Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_73 = + __objc_msgSend_73Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer, int) + >(); late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); - late final _sel_indexGreaterThanOrEqualToIndex_1 = - _registerName1("indexGreaterThanOrEqualToIndex:"); - late final _sel_indexLessThanOrEqualToIndex_1 = - _registerName1("indexLessThanOrEqualToIndex:"); - late final _sel_getIndexes_maxCount_inIndexRange_1 = - _registerName1("getIndexes:maxCount:inIndexRange:"); + late final _sel_indexGreaterThanOrEqualToIndex_1 = _registerName1( + "indexGreaterThanOrEqualToIndex:", + ); + late final _sel_indexLessThanOrEqualToIndex_1 = _registerName1( + "indexLessThanOrEqualToIndex:", + ); + late final _sel_getIndexes_maxCount_inIndexRange_1 = _registerName1( + "getIndexes:maxCount:inIndexRange:", + ); int _objc_msgSend_74( ffi.Pointer obj, ffi.Pointer sel, @@ -2124,47 +2617,61 @@ class NativeMacOsFramework { int bufferSize, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_74( - obj, - sel, - indexBuffer, - bufferSize, - range, - ); + return __objc_msgSend_74(obj, sel, indexBuffer, bufferSize, range); } late final __objc_msgSend_74Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_74 = + __objc_msgSend_74Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_74 = __objc_msgSend_74Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); - - late final _sel_countOfIndexesInRange_1 = - _registerName1("countOfIndexesInRange:"); + int, + ffi.Pointer<_NSRange>, + ) + >(); + + late final _sel_countOfIndexesInRange_1 = _registerName1( + "countOfIndexesInRange:", + ); int _objc_msgSend_75( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_75( - obj, - sel, - range, - ); + return __objc_msgSend_75(obj, sel, range); } late final __objc_msgSend_75Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_75 = + __objc_msgSend_75Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); late final _sel_containsIndex_1 = _registerName1("containsIndex:"); bool _objc_msgSend_76( @@ -2172,47 +2679,58 @@ class NativeMacOsFramework { ffi.Pointer sel, int value, ) { - return __objc_msgSend_76( - obj, - sel, - value, - ); + return __objc_msgSend_76(obj, sel, value); } late final __objc_msgSend_76Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_containsIndexesInRange_1 = - _registerName1("containsIndexesInRange:"); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_76 = + __objc_msgSend_76Ptr + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int) + >(); + + late final _sel_containsIndexesInRange_1 = _registerName1( + "containsIndexesInRange:", + ); bool _objc_msgSend_77( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_77( - obj, - sel, - range, - ); + return __objc_msgSend_77(obj, sel, range); } late final __objc_msgSend_77Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, _NSRange) + > + >('objc_msgSend'); + late final __objc_msgSend_77 = + __objc_msgSend_77Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); - late final _sel_intersectsIndexesInRange_1 = - _registerName1("intersectsIndexesInRange:"); + late final _sel_intersectsIndexesInRange_1 = _registerName1( + "intersectsIndexesInRange:", + ); ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { - final d = - pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); + final d = pkg_ffi.calloc.allocate<_ObjCBlockDesc>( + ffi.sizeOf<_ObjCBlockDesc>(), + ); d.ref.reserved = 0; d.ref.size = ffi.sizeOf<_ObjCBlock>(); d.ref.copy_helper = ffi.nullptr; @@ -2222,10 +2740,13 @@ class NativeMacOsFramework { } late final _objc_block_desc1 = _newBlockDesc1(); - late final _objc_concrete_global_block1 = - _lookup('_NSConcreteGlobalBlock'); + late final _objc_concrete_global_block1 = _lookup( + '_NSConcreteGlobalBlock', + ); ffi.Pointer<_ObjCBlock> _newBlock1( - ffi.Pointer invoke, ffi.Pointer target) { + ffi.Pointer invoke, + ffi.Pointer target, + ) { final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); b.ref.isa = _objc_concrete_global_block1; b.ref.flags = 0; @@ -2238,108 +2759,129 @@ class NativeMacOsFramework { return copy; } - ffi.Pointer _Block_copy( - ffi.Pointer value, - ) { - return __Block_copy( - value, - ); + ffi.Pointer _Block_copy(ffi.Pointer value) { + return __Block_copy(value); } late final __Block_copyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('_Block_copy'); - late final __Block_copy = __Block_copyPtr - .asFunction Function(ffi.Pointer)>(); + ffi.NativeFunction Function(ffi.Pointer)> + >('_Block_copy'); + late final __Block_copy = + __Block_copyPtr + .asFunction Function(ffi.Pointer)>(); - void _Block_release( - ffi.Pointer value, - ) { - return __Block_release( - value, - ); + void _Block_release(ffi.Pointer value) { + return __Block_release(value); } late final __Block_releasePtr = _lookup)>>( - '_Block_release'); + '_Block_release', + ); late final __Block_release = __Block_releasePtr.asFunction)>(); - late final _objc_releaseFinalizer11 = - ffi.NativeFinalizer(__Block_releasePtr.cast()); - late final _sel_enumerateIndexesUsingBlock_1 = - _registerName1("enumerateIndexesUsingBlock:"); + late final _objc_releaseFinalizer11 = ffi.NativeFinalizer( + __Block_releasePtr.cast(), + ); + late final _sel_enumerateIndexesUsingBlock_1 = _registerName1( + "enumerateIndexesUsingBlock:", + ); void _objc_msgSend_78( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_78( - obj, - sel, - block, - ); + return __objc_msgSend_78(obj, sel, block); } late final __objc_msgSend_78Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateIndexesWithOptions_usingBlock_1 = - _registerName1("enumerateIndexesWithOptions:usingBlock:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_78 = + __objc_msgSend_78Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_enumerateIndexesWithOptions_usingBlock_1 = _registerName1( + "enumerateIndexesWithOptions:usingBlock:", + ); void _objc_msgSend_79( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_79( - obj, - sel, - opts, - block, - ); + return __objc_msgSend_79(obj, sel, opts, block); } late final __objc_msgSend_79Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateIndexesInRange_options_usingBlock_1 = - _registerName1("enumerateIndexesInRange:options:usingBlock:"); - void _objc_msgSend_80( - ffi.Pointer obj, + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_79 = + __objc_msgSend_79Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_enumerateIndexesInRange_options_usingBlock_1 = _registerName1( + "enumerateIndexesInRange:options:usingBlock:", + ); + void _objc_msgSend_80( + ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_80( - obj, - sel, - range, - opts, - block, - ); + return __objc_msgSend_80(obj, sel, range, opts, block); } late final __objc_msgSend_80Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_80 = + __objc_msgSend_80Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); int _objc_msgSend_81( @@ -2347,50 +2889,64 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_81( - obj, - sel, - predicate, - ); + return __objc_msgSend_81(obj, sel, predicate); } late final __objc_msgSend_81Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexWithOptions_passingTest_1 = - _registerName1("indexWithOptions:passingTest:"); + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_81 = + __objc_msgSend_81Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexWithOptions_passingTest_1 = _registerName1( + "indexWithOptions:passingTest:", + ); int _objc_msgSend_82( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_82( - obj, - sel, - opts, - predicate, - ); + return __objc_msgSend_82(obj, sel, opts, predicate); } late final __objc_msgSend_82Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_82 = + __objc_msgSend_82Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexInRange_options_passingTest_1 = - _registerName1("indexInRange:options:passingTest:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexInRange_options_passingTest_1 = _registerName1( + "indexInRange:options:passingTest:", + ); int _objc_msgSend_83( ffi.Pointer obj, ffi.Pointer sel, @@ -2398,26 +2954,31 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_83( - obj, - sel, - range, - opts, - predicate, - ); + return __objc_msgSend_83(obj, sel, range, opts, predicate); } late final __objc_msgSend_83Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_83 = + __objc_msgSend_83Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, _NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); ffi.Pointer _objc_msgSend_84( @@ -2425,50 +2986,64 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_84( - obj, - sel, - predicate, - ); + return __objc_msgSend_84(obj, sel, predicate); } late final __objc_msgSend_84Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesWithOptions_passingTest_1 = - _registerName1("indexesWithOptions:passingTest:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_84 = + __objc_msgSend_84Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexesWithOptions_passingTest_1 = _registerName1( + "indexesWithOptions:passingTest:", + ); ffi.Pointer _objc_msgSend_85( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_85( - obj, - sel, - opts, - predicate, - ); + return __objc_msgSend_85(obj, sel, opts, predicate); } late final __objc_msgSend_85Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_85 = + __objc_msgSend_85Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesInRange_options_passingTest_1 = - _registerName1("indexesInRange:options:passingTest:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexesInRange_options_passingTest_1 = _registerName1( + "indexesInRange:options:passingTest:", + ); ffi.Pointer _objc_msgSend_86( ffi.Pointer obj, ffi.Pointer sel, @@ -2476,75 +3051,98 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_86( - obj, - sel, - range, - opts, - predicate, - ); + return __objc_msgSend_86(obj, sel, range, opts, predicate); } late final __objc_msgSend_86Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_86 = + __objc_msgSend_86Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateRangesUsingBlock_1 = - _registerName1("enumerateRangesUsingBlock:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_enumerateRangesUsingBlock_1 = _registerName1( + "enumerateRangesUsingBlock:", + ); void _objc_msgSend_87( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_87( - obj, - sel, - block, - ); + return __objc_msgSend_87(obj, sel, block); } late final __objc_msgSend_87Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateRangesWithOptions_usingBlock_1 = - _registerName1("enumerateRangesWithOptions:usingBlock:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_87 = + __objc_msgSend_87Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_enumerateRangesWithOptions_usingBlock_1 = _registerName1( + "enumerateRangesWithOptions:usingBlock:", + ); void _objc_msgSend_88( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_88( - obj, - sel, - opts, - block, - ); + return __objc_msgSend_88(obj, sel, opts, block); } late final __objc_msgSend_88Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateRangesInRange_options_usingBlock_1 = - _registerName1("enumerateRangesInRange:options:usingBlock:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_88 = + __objc_msgSend_88Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_enumerateRangesInRange_options_usingBlock_1 = _registerName1( + "enumerateRangesInRange:options:usingBlock:", + ); void _objc_msgSend_89( ffi.Pointer obj, ffi.Pointer sel, @@ -2552,22 +3150,31 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_89( - obj, - sel, - range, - opts, - block, - ); + return __objc_msgSend_89(obj, sel, range, opts, block); } late final __objc_msgSend_89Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_89 = + __objc_msgSend_89Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); ffi.Pointer _objc_msgSend_90( @@ -2575,68 +3182,93 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_90( - obj, - sel, - indexes, - ); + return __objc_msgSend_90(obj, sel, indexes); } late final __objc_msgSend_90Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_objectAtIndexedSubscript_1 = - _registerName1("objectAtIndexedSubscript:"); - late final _sel_enumerateObjectsUsingBlock_1 = - _registerName1("enumerateObjectsUsingBlock:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_90 = + __objc_msgSend_90Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_objectAtIndexedSubscript_1 = _registerName1( + "objectAtIndexedSubscript:", + ); + late final _sel_enumerateObjectsUsingBlock_1 = _registerName1( + "enumerateObjectsUsingBlock:", + ); void _objc_msgSend_91( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_91( - obj, - sel, - block, - ); + return __objc_msgSend_91(obj, sel, block); } late final __objc_msgSend_91Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateObjectsWithOptions_usingBlock_1 = - _registerName1("enumerateObjectsWithOptions:usingBlock:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_91 = + __objc_msgSend_91Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_enumerateObjectsWithOptions_usingBlock_1 = _registerName1( + "enumerateObjectsWithOptions:usingBlock:", + ); void _objc_msgSend_92( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_92( - obj, - sel, - opts, - block, - ); + return __objc_msgSend_92(obj, sel, opts, block); } late final __objc_msgSend_92Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_92 = + __objc_msgSend_92Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); @@ -2647,78 +3279,98 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_93( - obj, - sel, - s, - opts, - block, - ); + return __objc_msgSend_93(obj, sel, s, opts, block); } late final __objc_msgSend_93Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_93 = + __objc_msgSend_93Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectPassingTest_1 = - _registerName1("indexOfObjectPassingTest:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexOfObjectPassingTest_1 = _registerName1( + "indexOfObjectPassingTest:", + ); int _objc_msgSend_94( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_94( - obj, - sel, - predicate, - ); + return __objc_msgSend_94(obj, sel, predicate); } late final __objc_msgSend_94Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectWithOptions_passingTest_1 = - _registerName1("indexOfObjectWithOptions:passingTest:"); + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_94 = + __objc_msgSend_94Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexOfObjectWithOptions_passingTest_1 = _registerName1( + "indexOfObjectWithOptions:passingTest:", + ); int _objc_msgSend_95( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_95( - obj, - sel, - opts, - predicate, - ); + return __objc_msgSend_95(obj, sel, opts, predicate); } late final __objc_msgSend_95Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_95 = + __objc_msgSend_95Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = - _registerName1("indexOfObjectAtIndexes:options:passingTest:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = _registerName1( + "indexOfObjectAtIndexes:options:passingTest:", + ); int _objc_msgSend_96( ffi.Pointer obj, ffi.Pointer sel, @@ -2726,75 +3378,94 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_96( - obj, - sel, - s, - opts, - predicate, - ); + return __objc_msgSend_96(obj, sel, s, opts, predicate); } late final __objc_msgSend_96Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_96 = + __objc_msgSend_96Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesOfObjectsPassingTest_1 = - _registerName1("indexesOfObjectsPassingTest:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexesOfObjectsPassingTest_1 = _registerName1( + "indexesOfObjectsPassingTest:", + ); ffi.Pointer _objc_msgSend_97( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_97( - obj, - sel, - predicate, - ); + return __objc_msgSend_97(obj, sel, predicate); } late final __objc_msgSend_97Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesOfObjectsWithOptions_passingTest_1 = - _registerName1("indexesOfObjectsWithOptions:passingTest:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_97 = + __objc_msgSend_97Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_indexesOfObjectsWithOptions_passingTest_1 = _registerName1( + "indexesOfObjectsWithOptions:passingTest:", + ); ffi.Pointer _objc_msgSend_98( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_98( - obj, - sel, - opts, - predicate, - ); + return __objc_msgSend_98(obj, sel, opts, predicate); } late final __objc_msgSend_98Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_98 = + __objc_msgSend_98Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); @@ -2805,79 +3476,94 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_99( - obj, - sel, - s, - opts, - predicate, - ); + return __objc_msgSend_99(obj, sel, s, opts, predicate); } late final __objc_msgSend_99Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_99 = + __objc_msgSend_99Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_sortedArrayUsingComparator_1 = - _registerName1("sortedArrayUsingComparator:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_sortedArrayUsingComparator_1 = _registerName1( + "sortedArrayUsingComparator:", + ); ffi.Pointer _objc_msgSend_100( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_100( - obj, - sel, - cmptr, - ); + return __objc_msgSend_100(obj, sel, cmptr); } late final __objc_msgSend_100Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_sortedArrayWithOptions_usingComparator_1 = - _registerName1("sortedArrayWithOptions:usingComparator:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_100 = + __objc_msgSend_100Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_sortedArrayWithOptions_usingComparator_1 = _registerName1( + "sortedArrayWithOptions:usingComparator:", + ); ffi.Pointer _objc_msgSend_101( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_101( - obj, - sel, - opts, - cmptr, - ); + return __objc_msgSend_101(obj, sel, opts, cmptr); } late final __objc_msgSend_101Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_101 = + __objc_msgSend_101Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); @@ -2889,28 +3575,33 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> cmp, ) { - return __objc_msgSend_102( - obj, - sel, - obj1, - r, - opts, - cmp, - ); + return __objc_msgSend_102(obj, sel, obj1, r, opts, cmp); } late final __objc_msgSend_102Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_102 = + __objc_msgSend_102Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_array1 = _registerName1("array"); late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); @@ -2919,83 +3610,104 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_103( - obj, - sel, - anObject, - ); + return __objc_msgSend_103(obj, sel, anObject); } late final __objc_msgSend_103Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_arrayWithObjects_count_1 = - _registerName1("arrayWithObjects:count:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_103 = + __objc_msgSend_103Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_arrayWithObjects_count_1 = _registerName1( + "arrayWithObjects:count:", + ); late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); late final _sel_initWithArray_1 = _registerName1("initWithArray:"); - late final _sel_initWithArray_copyItems_1 = - _registerName1("initWithArray:copyItems:"); + late final _sel_initWithArray_copyItems_1 = _registerName1( + "initWithArray:copyItems:", + ); instancetype _objc_msgSend_104( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, bool flag, ) { - return __objc_msgSend_104( - obj, - sel, - array, - flag, - ); + return __objc_msgSend_104(obj, sel, array, flag); } late final __objc_msgSend_104Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_initWithContentsOfURL_error_1 = - _registerName1("initWithContentsOfURL:error:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_104 = + __objc_msgSend_104Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); + + late final _sel_initWithContentsOfURL_error_1 = _registerName1( + "initWithContentsOfURL:error:", + ); ffi.Pointer _objc_msgSend_105( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_105( - obj, - sel, - url, - error, - ); + return __objc_msgSend_105(obj, sel, url, error); } late final __objc_msgSend_105Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_105 = + __objc_msgSend_105Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - late final _sel_arrayWithContentsOfURL_error_1 = - _registerName1("arrayWithContentsOfURL:error:"); + late final _sel_arrayWithContentsOfURL_error_1 = _registerName1( + "arrayWithContentsOfURL:error:", + ); late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); ffi.Pointer _objc_msgSend_106( @@ -3005,214 +3717,270 @@ class NativeMacOsFramework { int options, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_106( - obj, - sel, - other, - options, - block, - ); + return __objc_msgSend_106(obj, sel, other, options, block); } late final __objc_msgSend_106Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_106 = + __objc_msgSend_106Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_differenceFromArray_withOptions_1 = - _registerName1("differenceFromArray:withOptions:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_differenceFromArray_withOptions_1 = _registerName1( + "differenceFromArray:withOptions:", + ); ffi.Pointer _objc_msgSend_107( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ) { - return __objc_msgSend_107( - obj, - sel, - other, - options, - ); + return __objc_msgSend_107(obj, sel, other, options); } late final __objc_msgSend_107Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_107 = + __objc_msgSend_107Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_differenceFromArray_1 = - _registerName1("differenceFromArray:"); - late final _sel_arrayByApplyingDifference_1 = - _registerName1("arrayByApplyingDifference:"); + int, + ) + >(); + + late final _sel_differenceFromArray_1 = _registerName1( + "differenceFromArray:", + ); + late final _sel_arrayByApplyingDifference_1 = _registerName1( + "arrayByApplyingDifference:", + ); late final _sel_getObjects_1 = _registerName1("getObjects:"); void _objc_msgSend_108( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, ) { - return __objc_msgSend_108( - obj, - sel, - objects, - ); + return __objc_msgSend_108(obj, sel, objects); } late final __objc_msgSend_108Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_arrayWithContentsOfFile_1 = - _registerName1("arrayWithContentsOfFile:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_108 = + __objc_msgSend_108Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); + + late final _sel_arrayWithContentsOfFile_1 = _registerName1( + "arrayWithContentsOfFile:", + ); ffi.Pointer _objc_msgSend_109( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_109( - obj, - sel, - path, - ); + return __objc_msgSend_109(obj, sel, path); } late final __objc_msgSend_109Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_arrayWithContentsOfURL_1 = - _registerName1("arrayWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_110( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_109 = + __objc_msgSend_109Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_arrayWithContentsOfURL_1 = _registerName1( + "arrayWithContentsOfURL:", + ); + ffi.Pointer _objc_msgSend_110( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_110( - obj, - sel, - url, - ); + return __objc_msgSend_110(obj, sel, url); } late final __objc_msgSend_110Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithContentsOfFile_1 = - _registerName1("initWithContentsOfFile:"); - late final _sel_initWithContentsOfURL_1 = - _registerName1("initWithContentsOfURL:"); - late final _sel_writeToFile_atomically_1 = - _registerName1("writeToFile:atomically:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_110 = + __objc_msgSend_110Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_initWithContentsOfFile_1 = _registerName1( + "initWithContentsOfFile:", + ); + late final _sel_initWithContentsOfURL_1 = _registerName1( + "initWithContentsOfURL:", + ); + late final _sel_writeToFile_atomically_1 = _registerName1( + "writeToFile:atomically:", + ); bool _objc_msgSend_111( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool useAuxiliaryFile, ) { - return __objc_msgSend_111( - obj, - sel, - path, - useAuxiliaryFile, - ); + return __objc_msgSend_111(obj, sel, path, useAuxiliaryFile); } late final __objc_msgSend_111Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_writeToURL_atomically_1 = - _registerName1("writeToURL:atomically:"); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_111 = + __objc_msgSend_111Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); + + late final _sel_writeToURL_atomically_1 = _registerName1( + "writeToURL:atomically:", + ); bool _objc_msgSend_112( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, bool atomically, ) { - return __objc_msgSend_112( - obj, - sel, - url, - atomically, - ); + return __objc_msgSend_112(obj, sel, url, atomically); } late final __objc_msgSend_112Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = - _registerName1("decodeArrayOfObjectsOfClass:forKey:"); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_112 = + __objc_msgSend_112Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); + + late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = _registerName1( + "decodeArrayOfObjectsOfClass:forKey:", + ); ffi.Pointer _objc_msgSend_113( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cls, ffi.Pointer key, ) { - return __objc_msgSend_113( - obj, - sel, - cls, - key, - ); + return __objc_msgSend_113(obj, sel, cls, key); } late final __objc_msgSend_113Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_113 = + __objc_msgSend_113Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _class_NSDictionary1 = _getClass1("NSDictionary"); late final _sel_objectForKey_1 = _registerName1("objectForKey:"); late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); - late final _sel_initWithObjects_forKeys_count_1 = - _registerName1("initWithObjects:forKeys:count:"); + late final _sel_initWithObjects_forKeys_count_1 = _registerName1( + "initWithObjects:forKeys:count:", + ); instancetype _objc_msgSend_114( ffi.Pointer obj, ffi.Pointer sel, @@ -3220,110 +3988,131 @@ class NativeMacOsFramework { ffi.Pointer> keys, int cnt, ) { - return __objc_msgSend_114( - obj, - sel, - objects, - keys, - cnt, - ); + return __objc_msgSend_114(obj, sel, objects, keys, cnt); } late final __objc_msgSend_114Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_114 = + __objc_msgSend_114Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); + int, + ) + >(); late final _sel_allKeys1 = _registerName1("allKeys"); ffi.Pointer _objc_msgSend_115( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_115( - obj, - sel, - ); + return __objc_msgSend_115(obj, sel); } late final __objc_msgSend_115Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_115 = + __objc_msgSend_115Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_allKeysForObject_1 = _registerName1("allKeysForObject:"); late final _sel_allValues1 = _registerName1("allValues"); - late final _sel_descriptionInStringsFileFormat1 = - _registerName1("descriptionInStringsFileFormat"); - late final _sel_isEqualToDictionary_1 = - _registerName1("isEqualToDictionary:"); + late final _sel_descriptionInStringsFileFormat1 = _registerName1( + "descriptionInStringsFileFormat", + ); + late final _sel_isEqualToDictionary_1 = _registerName1( + "isEqualToDictionary:", + ); bool _objc_msgSend_116( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, ) { - return __objc_msgSend_116( - obj, - sel, - otherDictionary, - ); + return __objc_msgSend_116(obj, sel, otherDictionary); } late final __objc_msgSend_116Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_objectsForKeys_notFoundMarker_1 = - _registerName1("objectsForKeys:notFoundMarker:"); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_116 = + __objc_msgSend_116Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_objectsForKeys_notFoundMarker_1 = _registerName1( + "objectsForKeys:notFoundMarker:", + ); ffi.Pointer _objc_msgSend_117( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer marker, ) { - return __objc_msgSend_117( - obj, - sel, - keys, - marker, - ); + return __objc_msgSend_117(obj, sel, keys, marker); } late final __objc_msgSend_117Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_117 = + __objc_msgSend_117Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_keysSortedByValueUsingSelector_1 = - _registerName1("keysSortedByValueUsingSelector:"); - late final _sel_getObjects_andKeys_count_1 = - _registerName1("getObjects:andKeys:count:"); + ffi.Pointer, + ) + >(); + + late final _sel_keysSortedByValueUsingSelector_1 = _registerName1( + "keysSortedByValueUsingSelector:", + ); + late final _sel_getObjects_andKeys_count_1 = _registerName1( + "getObjects:andKeys:count:", + ); void _objc_msgSend_118( ffi.Pointer obj, ffi.Pointer sel, @@ -3331,54 +4120,64 @@ class NativeMacOsFramework { ffi.Pointer> keys, int count, ) { - return __objc_msgSend_118( - obj, - sel, - objects, - keys, - count, - ); + return __objc_msgSend_118(obj, sel, objects, keys, count); } late final __objc_msgSend_118Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_118 = + __objc_msgSend_118Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); - - late final _sel_objectForKeyedSubscript_1 = - _registerName1("objectForKeyedSubscript:"); - late final _sel_enumerateKeysAndObjectsUsingBlock_1 = - _registerName1("enumerateKeysAndObjectsUsingBlock:"); + int, + ) + >(); + + late final _sel_objectForKeyedSubscript_1 = _registerName1( + "objectForKeyedSubscript:", + ); + late final _sel_enumerateKeysAndObjectsUsingBlock_1 = _registerName1( + "enumerateKeysAndObjectsUsingBlock:", + ); void _objc_msgSend_119( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_119( - obj, - sel, - block, - ); + return __objc_msgSend_119(obj, sel, block); } late final __objc_msgSend_119Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_119 = + __objc_msgSend_119Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); @@ -3388,74 +4187,97 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_120( - obj, - sel, - opts, - block, - ); + return __objc_msgSend_120(obj, sel, opts, block); } late final __objc_msgSend_120Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_keysSortedByValueUsingComparator_1 = - _registerName1("keysSortedByValueUsingComparator:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_120 = + __objc_msgSend_120Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_keysSortedByValueUsingComparator_1 = _registerName1( + "keysSortedByValueUsingComparator:", + ); late final _sel_keysSortedByValueWithOptions_usingComparator_1 = _registerName1("keysSortedByValueWithOptions:usingComparator:"); - late final _sel_keysOfEntriesPassingTest_1 = - _registerName1("keysOfEntriesPassingTest:"); + late final _sel_keysOfEntriesPassingTest_1 = _registerName1( + "keysOfEntriesPassingTest:", + ); ffi.Pointer _objc_msgSend_121( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_121( - obj, - sel, - predicate, - ); + return __objc_msgSend_121(obj, sel, predicate); } late final __objc_msgSend_121Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_keysOfEntriesWithOptions_passingTest_1 = - _registerName1("keysOfEntriesWithOptions:passingTest:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_121 = + __objc_msgSend_121Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_keysOfEntriesWithOptions_passingTest_1 = _registerName1( + "keysOfEntriesWithOptions:passingTest:", + ); ffi.Pointer _objc_msgSend_122( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_122( - obj, - sel, - opts, - predicate, - ); + return __objc_msgSend_122(obj, sel, opts, predicate); } late final __objc_msgSend_122Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_122 = + __objc_msgSend_122Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); void _objc_msgSend_123( @@ -3464,216 +4286,272 @@ class NativeMacOsFramework { ffi.Pointer> objects, ffi.Pointer> keys, ) { - return __objc_msgSend_123( - obj, - sel, - objects, - keys, - ); + return __objc_msgSend_123(obj, sel, objects, keys); } late final __objc_msgSend_123Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_123 = + __objc_msgSend_123Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - late final _sel_dictionaryWithContentsOfFile_1 = - _registerName1("dictionaryWithContentsOfFile:"); + late final _sel_dictionaryWithContentsOfFile_1 = _registerName1( + "dictionaryWithContentsOfFile:", + ); ffi.Pointer _objc_msgSend_124( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_124( - obj, - sel, - path, - ); + return __objc_msgSend_124(obj, sel, path); } late final __objc_msgSend_124Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dictionaryWithContentsOfURL_1 = - _registerName1("dictionaryWithContentsOfURL:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_124 = + __objc_msgSend_124Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_dictionaryWithContentsOfURL_1 = _registerName1( + "dictionaryWithContentsOfURL:", + ); ffi.Pointer _objc_msgSend_125( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_125( - obj, - sel, - url, - ); + return __objc_msgSend_125(obj, sel, url); } late final __objc_msgSend_125Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_125 = + __objc_msgSend_125Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_dictionary1 = _registerName1("dictionary"); - late final _sel_dictionaryWithObject_forKey_1 = - _registerName1("dictionaryWithObject:forKey:"); + late final _sel_dictionaryWithObject_forKey_1 = _registerName1( + "dictionaryWithObject:forKey:", + ); instancetype _objc_msgSend_126( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, ffi.Pointer key, ) { - return __objc_msgSend_126( - obj, - sel, - object, - key, - ); + return __objc_msgSend_126(obj, sel, object, key); } late final __objc_msgSend_126Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_126 = + __objc_msgSend_126Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dictionaryWithObjects_forKeys_count_1 = - _registerName1("dictionaryWithObjects:forKeys:count:"); - late final _sel_dictionaryWithObjectsAndKeys_1 = - _registerName1("dictionaryWithObjectsAndKeys:"); - late final _sel_dictionaryWithDictionary_1 = - _registerName1("dictionaryWithDictionary:"); + ffi.Pointer, + ) + >(); + + late final _sel_dictionaryWithObjects_forKeys_count_1 = _registerName1( + "dictionaryWithObjects:forKeys:count:", + ); + late final _sel_dictionaryWithObjectsAndKeys_1 = _registerName1( + "dictionaryWithObjectsAndKeys:", + ); + late final _sel_dictionaryWithDictionary_1 = _registerName1( + "dictionaryWithDictionary:", + ); instancetype _objc_msgSend_127( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_127( - obj, - sel, - dict, - ); + return __objc_msgSend_127(obj, sel, dict); } late final __objc_msgSend_127Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_dictionaryWithObjects_forKeys_1 = - _registerName1("dictionaryWithObjects:forKeys:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_127 = + __objc_msgSend_127Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_dictionaryWithObjects_forKeys_1 = _registerName1( + "dictionaryWithObjects:forKeys:", + ); instancetype _objc_msgSend_128( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer keys, ) { - return __objc_msgSend_128( - obj, - sel, - objects, - keys, - ); + return __objc_msgSend_128(obj, sel, objects, keys); } late final __objc_msgSend_128Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_128 = + __objc_msgSend_128Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_initWithObjectsAndKeys_1 = - _registerName1("initWithObjectsAndKeys:"); + late final _sel_initWithObjectsAndKeys_1 = _registerName1( + "initWithObjectsAndKeys:", + ); late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); - late final _sel_initWithDictionary_copyItems_1 = - _registerName1("initWithDictionary:copyItems:"); + late final _sel_initWithDictionary_copyItems_1 = _registerName1( + "initWithDictionary:copyItems:", + ); instancetype _objc_msgSend_129( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, bool flag, ) { - return __objc_msgSend_129( - obj, - sel, - otherDictionary, - flag, - ); + return __objc_msgSend_129(obj, sel, otherDictionary, flag); } late final __objc_msgSend_129Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_initWithObjects_forKeys_1 = - _registerName1("initWithObjects:forKeys:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_129 = + __objc_msgSend_129Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); + + late final _sel_initWithObjects_forKeys_1 = _registerName1( + "initWithObjects:forKeys:", + ); ffi.Pointer _objc_msgSend_130( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_130( - obj, - sel, - url, - error, - ); + return __objc_msgSend_130(obj, sel, url, error); } late final __objc_msgSend_130Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_130 = + __objc_msgSend_130Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_dictionaryWithContentsOfURL_error_1 = - _registerName1("dictionaryWithContentsOfURL:error:"); - late final _sel_sharedKeySetForKeys_1 = - _registerName1("sharedKeySetForKeys:"); - late final _sel_countByEnumeratingWithState_objects_count_1 = - _registerName1("countByEnumeratingWithState:objects:count:"); + ffi.Pointer>, + ) + >(); + + late final _sel_dictionaryWithContentsOfURL_error_1 = _registerName1( + "dictionaryWithContentsOfURL:error:", + ); + late final _sel_sharedKeySetForKeys_1 = _registerName1( + "sharedKeySetForKeys:", + ); + late final _sel_countByEnumeratingWithState_objects_count_1 = _registerName1( + "countByEnumeratingWithState:objects:count:", + ); int _objc_msgSend_131( ffi.Pointer obj, ffi.Pointer sel, @@ -3681,30 +4559,31 @@ class NativeMacOsFramework { ffi.Pointer> buffer, int len, ) { - return __objc_msgSend_131( - obj, - sel, - state, - buffer, - len, - ); + return __objc_msgSend_131(obj, sel, state, buffer, len); } late final __objc_msgSend_131Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_131 = + __objc_msgSend_131Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); + int, + ) + >(); late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1 = _registerName1("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); @@ -3715,30 +4594,31 @@ class NativeMacOsFramework { ffi.Pointer objectCls, ffi.Pointer key, ) { - return __objc_msgSend_132( - obj, - sel, - keyCls, - objectCls, - key, - ); + return __objc_msgSend_132(obj, sel, keyCls, objectCls, key); } late final __objc_msgSend_132Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_132 = + __objc_msgSend_132Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _class_NSSet1 = _getClass1("NSSet"); late final _sel_member_1 = _registerName1("member:"); @@ -3749,20 +4629,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_133( - obj, - sel, - otherSet, - ); + return __objc_msgSend_133(obj, sel, otherSet); } late final __objc_msgSend_133Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_133 = + __objc_msgSend_133Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isEqualToSet_1 = _registerName1("isEqualToSet:"); late final _sel_isSubsetOfSet_1 = _registerName1("isSubsetOfSet:"); @@ -3772,84 +4659,114 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_134( - obj, - sel, - anObject, - ); + return __objc_msgSend_134(obj, sel, anObject); } late final __objc_msgSend_134Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setByAddingObjectsFromSet_1 = - _registerName1("setByAddingObjectsFromSet:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_134 = + __objc_msgSend_134Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_setByAddingObjectsFromSet_1 = _registerName1( + "setByAddingObjectsFromSet:", + ); ffi.Pointer _objc_msgSend_135( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_135( - obj, - sel, - other, - ); + return __objc_msgSend_135(obj, sel, other); } late final __objc_msgSend_135Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setByAddingObjectsFromArray_1 = - _registerName1("setByAddingObjectsFromArray:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_135 = + __objc_msgSend_135Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_setByAddingObjectsFromArray_1 = _registerName1( + "setByAddingObjectsFromArray:", + ); ffi.Pointer _objc_msgSend_136( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_136( - obj, - sel, - other, - ); + return __objc_msgSend_136(obj, sel, other); } late final __objc_msgSend_136Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_136 = + __objc_msgSend_136Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); void _objc_msgSend_137( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_137( - obj, - sel, - block, - ); + return __objc_msgSend_137(obj, sel, block); } late final __objc_msgSend_137Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_137 = + __objc_msgSend_137Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); void _objc_msgSend_138( ffi.Pointer obj, @@ -3857,21 +4774,29 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_138( - obj, - sel, - opts, - block, - ); + return __objc_msgSend_138(obj, sel, opts, block); } late final __objc_msgSend_138Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_138 = + __objc_msgSend_138Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_objectsPassingTest_1 = _registerName1("objectsPassingTest:"); ffi.Pointer _objc_msgSend_139( @@ -3879,52 +4804,66 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_139( - obj, - sel, - predicate, - ); + return __objc_msgSend_139(obj, sel, predicate); } late final __objc_msgSend_139Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_objectsWithOptions_passingTest_1 = - _registerName1("objectsWithOptions:passingTest:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_139 = + __objc_msgSend_139Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_objectsWithOptions_passingTest_1 = _registerName1( + "objectsWithOptions:passingTest:", + ); ffi.Pointer _objc_msgSend_140( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> predicate, ) { - return __objc_msgSend_140( - obj, - sel, - opts, - predicate, - ); + return __objc_msgSend_140(obj, sel, opts, predicate); } late final __objc_msgSend_140Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_140 = + __objc_msgSend_140Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_set1 = _registerName1("set"); late final _sel_setWithObject_1 = _registerName1("setWithObject:"); - late final _sel_setWithObjects_count_1 = - _registerName1("setWithObjects:count:"); + late final _sel_setWithObjects_count_1 = _registerName1( + "setWithObjects:count:", + ); late final _sel_setWithObjects_1 = _registerName1("setWithObjects:"); late final _sel_setWithSet_1 = _registerName1("setWithSet:"); instancetype _objc_msgSend_141( @@ -3932,79 +4871,99 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_141( - obj, - sel, - set1, - ); + return __objc_msgSend_141(obj, sel, set1); } late final __objc_msgSend_141Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_141 = + __objc_msgSend_141Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_setWithArray_1 = _registerName1("setWithArray:"); late final _sel_initWithSet_1 = _registerName1("initWithSet:"); - late final _sel_initWithSet_copyItems_1 = - _registerName1("initWithSet:copyItems:"); + late final _sel_initWithSet_copyItems_1 = _registerName1( + "initWithSet:copyItems:", + ); instancetype _objc_msgSend_142( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_142( - obj, - sel, - set1, - flag, - ); + return __objc_msgSend_142(obj, sel, set1, flag); } late final __objc_msgSend_142Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_decodeObjectOfClasses_forKey_1 = - _registerName1("decodeObjectOfClasses:forKey:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_142 = + __objc_msgSend_142Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); + + late final _sel_decodeObjectOfClasses_forKey_1 = _registerName1( + "decodeObjectOfClasses:forKey:", + ); ffi.Pointer _objc_msgSend_143( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_143( - obj, - sel, - classes, - key, - ); + return __objc_msgSend_143(obj, sel, classes, key); } late final __objc_msgSend_143Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_143 = + __objc_msgSend_143Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = - _registerName1("decodeTopLevelObjectOfClasses:forKey:error:"); + late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = _registerName1( + "decodeTopLevelObjectOfClasses:forKey:error:", + ); ffi.Pointer _objc_msgSend_144( ffi.Pointer obj, ffi.Pointer sel, @@ -4012,64 +4971,69 @@ class NativeMacOsFramework { ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_144( - obj, - sel, - classes, - key, - error, - ); + return __objc_msgSend_144(obj, sel, classes, key, error); } late final __objc_msgSend_144Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_144 = + __objc_msgSend_144Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = - _registerName1("decodeArrayOfObjectsOfClasses:forKey:"); + late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = _registerName1( + "decodeArrayOfObjectsOfClasses:forKey:", + ); ffi.Pointer _objc_msgSend_145( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classes, ffi.Pointer key, ) { - return __objc_msgSend_145( - obj, - sel, - classes, - key, - ); + return __objc_msgSend_145(obj, sel, classes, key); } late final __objc_msgSend_145Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_145 = + __objc_msgSend_145Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1 = _registerName1( - "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"); + "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:", + ); ffi.Pointer _objc_msgSend_146( ffi.Pointer obj, ffi.Pointer sel, @@ -4077,51 +5041,59 @@ class NativeMacOsFramework { ffi.Pointer objectClasses, ffi.Pointer key, ) { - return __objc_msgSend_146( - obj, - sel, - keyClasses, - objectClasses, - key, - ); + return __objc_msgSend_146(obj, sel, keyClasses, objectClasses, key); } late final __objc_msgSend_146Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_146 = + __objc_msgSend_146Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_decodePropertyListForKey_1 = - _registerName1("decodePropertyListForKey:"); + late final _sel_decodePropertyListForKey_1 = _registerName1( + "decodePropertyListForKey:", + ); late final _sel_allowedClasses1 = _registerName1("allowedClasses"); ffi.Pointer _objc_msgSend_147( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_147( - obj, - sel, - ); + return __objc_msgSend_147(obj, sel); } late final __objc_msgSend_147Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_147 = + __objc_msgSend_147Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_failWithError_1 = _registerName1("failWithError:"); void _objc_msgSend_148( @@ -4129,100 +5101,118 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer error, ) { - return __objc_msgSend_148( - obj, - sel, - error, - ); + return __objc_msgSend_148(obj, sel, error); } late final __objc_msgSend_148Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_148 = + __objc_msgSend_148Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_decodingFailurePolicy1 = - _registerName1("decodingFailurePolicy"); - int _objc_msgSend_149( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_149( - obj, - sel, - ); + late final _sel_decodingFailurePolicy1 = _registerName1( + "decodingFailurePolicy", + ); + int _objc_msgSend_149(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_149(obj, sel); } late final __objc_msgSend_149Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_149 = + __objc_msgSend_149Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_error1 = _registerName1("error"); ffi.Pointer _objc_msgSend_150( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_150( - obj, - sel, - ); + return __objc_msgSend_150(obj, sel); } late final __objc_msgSend_150Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_150 = + __objc_msgSend_150Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_encodeNXObject_1 = _registerName1("encodeNXObject:"); late final _sel_decodeNXObject1 = _registerName1("decodeNXObject"); - late final _sel_decodeValueOfObjCType_at_1 = - _registerName1("decodeValueOfObjCType:at:"); + late final _sel_decodeValueOfObjCType_at_1 = _registerName1( + "decodeValueOfObjCType:at:", + ); late final _sel_encodePoint_1 = _registerName1("encodePoint:"); void _objc_msgSend_151( ffi.Pointer obj, ffi.Pointer sel, CGPoint point, ) { - return __objc_msgSend_151( - obj, - sel, - point, - ); + return __objc_msgSend_151(obj, sel, point); } late final __objc_msgSend_151Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGPoint)>>('objc_msgSend'); - late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGPoint)>(); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, CGPoint) + > + >('objc_msgSend'); + late final __objc_msgSend_151 = + __objc_msgSend_151Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + CGPoint, + ) + >(); late final _sel_decodePoint1 = _registerName1("decodePoint"); CGPoint _objc_msgSend_152( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_152( - obj, - sel, - ); + return __objc_msgSend_152(obj, sel); } late final __objc_msgSend_152Ptr = _lookup< - ffi.NativeFunction< - CGPoint Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< - CGPoint Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + CGPoint Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_152 = + __objc_msgSend_152Ptr + .asFunction< + CGPoint Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_encodeSize_1 = _registerName1("encodeSize:"); void _objc_msgSend_153( @@ -4230,37 +5220,38 @@ class NativeMacOsFramework { ffi.Pointer sel, CGSize size, ) { - return __objc_msgSend_153( - obj, - sel, - size, - ); + return __objc_msgSend_153(obj, sel, size); } late final __objc_msgSend_153Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGSize)>>('objc_msgSend'); - late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGSize)>(); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, CGSize) + > + >('objc_msgSend'); + late final __objc_msgSend_153 = + __objc_msgSend_153Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGSize) + >(); late final _sel_decodeSize1 = _registerName1("decodeSize"); CGSize _objc_msgSend_154( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_154( - obj, - sel, - ); + return __objc_msgSend_154(obj, sel); } late final __objc_msgSend_154Ptr = _lookup< - ffi.NativeFunction< - CGSize Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< - CGSize Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + CGSize Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_154 = + __objc_msgSend_154Ptr + .asFunction< + CGSize Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_encodeRect_1 = _registerName1("encodeRect:"); void _objc_msgSend_155( @@ -4268,37 +5259,38 @@ class NativeMacOsFramework { ffi.Pointer sel, CGRect rect, ) { - return __objc_msgSend_155( - obj, - sel, - rect, - ); + return __objc_msgSend_155(obj, sel, rect); } late final __objc_msgSend_155Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGRect)>>('objc_msgSend'); - late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGRect)>(); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, CGRect) + > + >('objc_msgSend'); + late final __objc_msgSend_155 = + __objc_msgSend_155Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGRect) + >(); late final _sel_decodeRect1 = _registerName1("decodeRect"); CGRect _objc_msgSend_156( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_156( - obj, - sel, - ); + return __objc_msgSend_156(obj, sel); } late final __objc_msgSend_156Ptr = _lookup< - ffi.NativeFunction< - CGRect Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< - CGRect Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + CGRect Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_156 = + __objc_msgSend_156Ptr + .asFunction< + CGRect Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_encodePoint_forKey_1 = _registerName1("encodePoint:forKey:"); void _objc_msgSend_157( @@ -4307,21 +5299,29 @@ class NativeMacOsFramework { CGPoint point, ffi.Pointer key, ) { - return __objc_msgSend_157( - obj, - sel, - point, - key, - ); + return __objc_msgSend_157(obj, sel, point, key); } late final __objc_msgSend_157Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGPoint, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGPoint, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CGPoint, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_157 = + __objc_msgSend_157Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + CGPoint, + ffi.Pointer, + ) + >(); late final _sel_encodeSize_forKey_1 = _registerName1("encodeSize:forKey:"); void _objc_msgSend_158( @@ -4330,21 +5330,29 @@ class NativeMacOsFramework { CGSize size, ffi.Pointer key, ) { - return __objc_msgSend_158( - obj, - sel, - size, - key, - ); + return __objc_msgSend_158(obj, sel, size, key); } late final __objc_msgSend_158Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGSize, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGSize, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CGSize, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_158 = + __objc_msgSend_158Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + CGSize, + ffi.Pointer, + ) + >(); late final _sel_encodeRect_forKey_1 = _registerName1("encodeRect:forKey:"); void _objc_msgSend_159( @@ -4353,21 +5361,29 @@ class NativeMacOsFramework { CGRect rect, ffi.Pointer key, ) { - return __objc_msgSend_159( - obj, - sel, - rect, - key, - ); + return __objc_msgSend_159(obj, sel, rect, key); } late final __objc_msgSend_159Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGRect, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGRect, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + CGRect, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_159 = + __objc_msgSend_159Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + CGRect, + ffi.Pointer, + ) + >(); late final _sel_decodePointForKey_1 = _registerName1("decodePointForKey:"); CGPoint _objc_msgSend_160( @@ -4375,20 +5391,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_160( - obj, - sel, - key, - ); + return __objc_msgSend_160(obj, sel, key); } late final __objc_msgSend_160Ptr = _lookup< - ffi.NativeFunction< - CGPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< - CGPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_160 = + __objc_msgSend_160Ptr + .asFunction< + CGPoint Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeSizeForKey_1 = _registerName1("decodeSizeForKey:"); CGSize _objc_msgSend_161( @@ -4396,20 +5419,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_161( - obj, - sel, - key, - ); + return __objc_msgSend_161(obj, sel, key); } late final __objc_msgSend_161Ptr = _lookup< - ffi.NativeFunction< - CGSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< - CGSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + CGSize Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_161 = + __objc_msgSend_161Ptr + .asFunction< + CGSize Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_decodeRectForKey_1 = _registerName1("decodeRectForKey:"); CGRect _objc_msgSend_162( @@ -4417,20 +5447,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_162( - obj, - sel, - key, - ); + return __objc_msgSend_162(obj, sel, key); } late final __objc_msgSend_162Ptr = _lookup< - ffi.NativeFunction< - CGRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< - CGRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + CGRect Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_162 = + __objc_msgSend_162Ptr + .asFunction< + CGRect Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); ffi.Pointer _objc_msgSend_163( @@ -4438,20 +5475,27 @@ class NativeMacOsFramework { ffi.Pointer sel, int from, ) { - return __objc_msgSend_163( - obj, - sel, - from, - ); + return __objc_msgSend_163(obj, sel, from); } late final __objc_msgSend_163Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_163 = + __objc_msgSend_163Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); @@ -4460,44 +5504,60 @@ class NativeMacOsFramework { ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_164( - obj, - sel, - range, - ); + return __objc_msgSend_164(obj, sel, range); } late final __objc_msgSend_164Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_164 = + __objc_msgSend_164Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); - late final _sel_getCharacters_range_1 = - _registerName1("getCharacters:range:"); + late final _sel_getCharacters_range_1 = _registerName1( + "getCharacters:range:", + ); void _objc_msgSend_165( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, _NSRange range, ) { - return __objc_msgSend_165( - obj, - sel, - buffer, - range, - ); + return __objc_msgSend_165(obj, sel, buffer, range); } late final __objc_msgSend_165Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_165 = + __objc_msgSend_165Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); late final _sel_compare_1 = _registerName1("compare:"); int _objc_msgSend_166( @@ -4505,20 +5565,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_166( - obj, - sel, - string, - ); + return __objc_msgSend_166(obj, sel, string); } late final __objc_msgSend_166Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_166 = + __objc_msgSend_166Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_compare_options_1 = _registerName1("compare:options:"); int _objc_msgSend_167( @@ -4527,24 +5594,33 @@ class NativeMacOsFramework { ffi.Pointer string, int mask, ) { - return __objc_msgSend_167( - obj, - sel, - string, - mask, - ); + return __objc_msgSend_167(obj, sel, string, mask); } late final __objc_msgSend_167Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_compare_options_range_1 = - _registerName1("compare:options:range:"); + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_167 = + __objc_msgSend_167Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_compare_options_range_1 = _registerName1( + "compare:options:range:", + ); int _objc_msgSend_168( ffi.Pointer obj, ffi.Pointer sel, @@ -4552,25 +5628,35 @@ class NativeMacOsFramework { int mask, _NSRange rangeOfReceiverToCompare, ) { - return __objc_msgSend_168( - obj, - sel, - string, - mask, - rangeOfReceiverToCompare, - ); + return __objc_msgSend_168(obj, sel, string, mask, rangeOfReceiverToCompare); } late final __objc_msgSend_168Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_compare_options_range_locale_1 = - _registerName1("compare:options:range:locale:"); + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_168 = + __objc_msgSend_168Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ) + >(); + + late final _sel_compare_options_range_locale_1 = _registerName1( + "compare:options:range:locale:", + ); int _objc_msgSend_169( ffi.Pointer obj, ffi.Pointer sel, @@ -4590,109 +5676,150 @@ class NativeMacOsFramework { } late final __objc_msgSend_169Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_169 = + __objc_msgSend_169Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, + int, _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_caseInsensitiveCompare_1 = - _registerName1("caseInsensitiveCompare:"); + late final _sel_caseInsensitiveCompare_1 = _registerName1( + "caseInsensitiveCompare:", + ); late final _sel_localizedCompare_1 = _registerName1("localizedCompare:"); - late final _sel_localizedCaseInsensitiveCompare_1 = - _registerName1("localizedCaseInsensitiveCompare:"); - late final _sel_localizedStandardCompare_1 = - _registerName1("localizedStandardCompare:"); + late final _sel_localizedCaseInsensitiveCompare_1 = _registerName1( + "localizedCaseInsensitiveCompare:", + ); + late final _sel_localizedStandardCompare_1 = _registerName1( + "localizedStandardCompare:", + ); late final _sel_isEqualToString_1 = _registerName1("isEqualToString:"); late final _sel_hasPrefix_1 = _registerName1("hasPrefix:"); late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); - late final _sel_commonPrefixWithString_options_1 = - _registerName1("commonPrefixWithString:options:"); + late final _sel_commonPrefixWithString_options_1 = _registerName1( + "commonPrefixWithString:options:", + ); ffi.Pointer _objc_msgSend_170( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, int mask, ) { - return __objc_msgSend_170( - obj, - sel, - str, - mask, - ); + return __objc_msgSend_170(obj, sel, str, mask); } late final __objc_msgSend_170Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_170 = + __objc_msgSend_170Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + int, + ) + >(); late final _sel_containsString_1 = _registerName1("containsString:"); - late final _sel_localizedCaseInsensitiveContainsString_1 = - _registerName1("localizedCaseInsensitiveContainsString:"); - late final _sel_localizedStandardContainsString_1 = - _registerName1("localizedStandardContainsString:"); - late final _sel_localizedStandardRangeOfString_1 = - _registerName1("localizedStandardRangeOfString:"); + late final _sel_localizedCaseInsensitiveContainsString_1 = _registerName1( + "localizedCaseInsensitiveContainsString:", + ); + late final _sel_localizedStandardContainsString_1 = _registerName1( + "localizedStandardContainsString:", + ); + late final _sel_localizedStandardRangeOfString_1 = _registerName1( + "localizedStandardRangeOfString:", + ); _NSRange _objc_msgSend_171( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, ) { - return __objc_msgSend_171( - obj, - sel, - str, - ); + return __objc_msgSend_171(obj, sel, str); } late final __objc_msgSend_171Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_171 = + __objc_msgSend_171Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); - late final _sel_rangeOfString_options_1 = - _registerName1("rangeOfString:options:"); + late final _sel_rangeOfString_options_1 = _registerName1( + "rangeOfString:options:", + ); _NSRange _objc_msgSend_172( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, ) { - return __objc_msgSend_172( - obj, - sel, - searchString, - mask, - ); + return __objc_msgSend_172(obj, sel, searchString, mask); } late final __objc_msgSend_172Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_rangeOfString_options_range_1 = - _registerName1("rangeOfString:options:range:"); + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_172 = + __objc_msgSend_172Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_rangeOfString_options_range_1 = _registerName1( + "rangeOfString:options:range:", + ); _NSRange _objc_msgSend_173( ffi.Pointer obj, ffi.Pointer sel, @@ -4710,236 +5837,322 @@ class NativeMacOsFramework { } late final __objc_msgSend_173Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_173 = + __objc_msgSend_173Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ) + >(); late final _class_NSLocale1 = _getClass1("NSLocale"); - late final _sel_displayNameForKey_value_1 = - _registerName1("displayNameForKey:value:"); + late final _sel_displayNameForKey_value_1 = _registerName1( + "displayNameForKey:value:", + ); ffi.Pointer _objc_msgSend_174( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_174( - obj, - sel, - key, - value, - ); + return __objc_msgSend_174(obj, sel, key, value); } late final __objc_msgSend_174Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_174 = + __objc_msgSend_174Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_initWithLocaleIdentifier_1 = - _registerName1("initWithLocaleIdentifier:"); + late final _sel_initWithLocaleIdentifier_1 = _registerName1( + "initWithLocaleIdentifier:", + ); late final _sel_localeIdentifier1 = _registerName1("localeIdentifier"); - late final _sel_localizedStringForLocaleIdentifier_1 = - _registerName1("localizedStringForLocaleIdentifier:"); + late final _sel_localizedStringForLocaleIdentifier_1 = _registerName1( + "localizedStringForLocaleIdentifier:", + ); late final _sel_languageCode1 = _registerName1("languageCode"); - late final _sel_localizedStringForLanguageCode_1 = - _registerName1("localizedStringForLanguageCode:"); + late final _sel_localizedStringForLanguageCode_1 = _registerName1( + "localizedStringForLanguageCode:", + ); late final _sel_countryCode1 = _registerName1("countryCode"); - late final _sel_localizedStringForCountryCode_1 = - _registerName1("localizedStringForCountryCode:"); + late final _sel_localizedStringForCountryCode_1 = _registerName1( + "localizedStringForCountryCode:", + ); late final _sel_scriptCode1 = _registerName1("scriptCode"); - late final _sel_localizedStringForScriptCode_1 = - _registerName1("localizedStringForScriptCode:"); + late final _sel_localizedStringForScriptCode_1 = _registerName1( + "localizedStringForScriptCode:", + ); late final _sel_variantCode1 = _registerName1("variantCode"); - late final _sel_localizedStringForVariantCode_1 = - _registerName1("localizedStringForVariantCode:"); + late final _sel_localizedStringForVariantCode_1 = _registerName1( + "localizedStringForVariantCode:", + ); late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); - late final _sel_exemplarCharacterSet1 = - _registerName1("exemplarCharacterSet"); + late final _sel_exemplarCharacterSet1 = _registerName1( + "exemplarCharacterSet", + ); ffi.Pointer _objc_msgSend_175( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_175( - obj, - sel, - ); + return __objc_msgSend_175(obj, sel); } late final __objc_msgSend_175Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_175 = + __objc_msgSend_175Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_calendarIdentifier1 = _registerName1("calendarIdentifier"); - late final _sel_localizedStringForCalendarIdentifier_1 = - _registerName1("localizedStringForCalendarIdentifier:"); + late final _sel_localizedStringForCalendarIdentifier_1 = _registerName1( + "localizedStringForCalendarIdentifier:", + ); late final _sel_collationIdentifier1 = _registerName1("collationIdentifier"); - late final _sel_localizedStringForCollationIdentifier_1 = - _registerName1("localizedStringForCollationIdentifier:"); + late final _sel_localizedStringForCollationIdentifier_1 = _registerName1( + "localizedStringForCollationIdentifier:", + ); late final _sel_usesMetricSystem1 = _registerName1("usesMetricSystem"); late final _sel_decimalSeparator1 = _registerName1("decimalSeparator"); late final _sel_groupingSeparator1 = _registerName1("groupingSeparator"); late final _sel_currencySymbol1 = _registerName1("currencySymbol"); late final _sel_currencyCode1 = _registerName1("currencyCode"); - late final _sel_localizedStringForCurrencyCode_1 = - _registerName1("localizedStringForCurrencyCode:"); + late final _sel_localizedStringForCurrencyCode_1 = _registerName1( + "localizedStringForCurrencyCode:", + ); late final _sel_collatorIdentifier1 = _registerName1("collatorIdentifier"); - late final _sel_localizedStringForCollatorIdentifier_1 = - _registerName1("localizedStringForCollatorIdentifier:"); - late final _sel_quotationBeginDelimiter1 = - _registerName1("quotationBeginDelimiter"); - late final _sel_quotationEndDelimiter1 = - _registerName1("quotationEndDelimiter"); - late final _sel_alternateQuotationBeginDelimiter1 = - _registerName1("alternateQuotationBeginDelimiter"); - late final _sel_alternateQuotationEndDelimiter1 = - _registerName1("alternateQuotationEndDelimiter"); - late final _sel_autoupdatingCurrentLocale1 = - _registerName1("autoupdatingCurrentLocale"); + late final _sel_localizedStringForCollatorIdentifier_1 = _registerName1( + "localizedStringForCollatorIdentifier:", + ); + late final _sel_quotationBeginDelimiter1 = _registerName1( + "quotationBeginDelimiter", + ); + late final _sel_quotationEndDelimiter1 = _registerName1( + "quotationEndDelimiter", + ); + late final _sel_alternateQuotationBeginDelimiter1 = _registerName1( + "alternateQuotationBeginDelimiter", + ); + late final _sel_alternateQuotationEndDelimiter1 = _registerName1( + "alternateQuotationEndDelimiter", + ); + late final _sel_autoupdatingCurrentLocale1 = _registerName1( + "autoupdatingCurrentLocale", + ); ffi.Pointer _objc_msgSend_176( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_176( - obj, - sel, - ); + return __objc_msgSend_176(obj, sel); } late final __objc_msgSend_176Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_176 = + __objc_msgSend_176Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_currentLocale1 = _registerName1("currentLocale"); late final _sel_systemLocale1 = _registerName1("systemLocale"); - late final _sel_localeWithLocaleIdentifier_1 = - _registerName1("localeWithLocaleIdentifier:"); - late final _sel_availableLocaleIdentifiers1 = - _registerName1("availableLocaleIdentifiers"); + late final _sel_localeWithLocaleIdentifier_1 = _registerName1( + "localeWithLocaleIdentifier:", + ); + late final _sel_availableLocaleIdentifiers1 = _registerName1( + "availableLocaleIdentifiers", + ); late final _sel_ISOLanguageCodes1 = _registerName1("ISOLanguageCodes"); late final _sel_ISOCountryCodes1 = _registerName1("ISOCountryCodes"); late final _sel_ISOCurrencyCodes1 = _registerName1("ISOCurrencyCodes"); - late final _sel_commonISOCurrencyCodes1 = - _registerName1("commonISOCurrencyCodes"); + late final _sel_commonISOCurrencyCodes1 = _registerName1( + "commonISOCurrencyCodes", + ); late final _sel_preferredLanguages1 = _registerName1("preferredLanguages"); - late final _sel_componentsFromLocaleIdentifier_1 = - _registerName1("componentsFromLocaleIdentifier:"); - late final _sel_localeIdentifierFromComponents_1 = - _registerName1("localeIdentifierFromComponents:"); + late final _sel_componentsFromLocaleIdentifier_1 = _registerName1( + "componentsFromLocaleIdentifier:", + ); + late final _sel_localeIdentifierFromComponents_1 = _registerName1( + "localeIdentifierFromComponents:", + ); ffi.Pointer _objc_msgSend_177( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dict, ) { - return __objc_msgSend_177( - obj, - sel, - dict, - ); + return __objc_msgSend_177(obj, sel, dict); } late final __objc_msgSend_177Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_canonicalLocaleIdentifierFromString_1 = - _registerName1("canonicalLocaleIdentifierFromString:"); - late final _sel_canonicalLanguageIdentifierFromString_1 = - _registerName1("canonicalLanguageIdentifierFromString:"); - late final _sel_localeIdentifierFromWindowsLocaleCode_1 = - _registerName1("localeIdentifierFromWindowsLocaleCode:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_177 = + __objc_msgSend_177Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_canonicalLocaleIdentifierFromString_1 = _registerName1( + "canonicalLocaleIdentifierFromString:", + ); + late final _sel_canonicalLanguageIdentifierFromString_1 = _registerName1( + "canonicalLanguageIdentifierFromString:", + ); + late final _sel_localeIdentifierFromWindowsLocaleCode_1 = _registerName1( + "localeIdentifierFromWindowsLocaleCode:", + ); ffi.Pointer _objc_msgSend_178( ffi.Pointer obj, ffi.Pointer sel, int lcid, ) { - return __objc_msgSend_178( - obj, - sel, - lcid, - ); + return __objc_msgSend_178(obj, sel, lcid); } late final __objc_msgSend_178Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Uint32)>>('objc_msgSend'); - late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Uint32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_178 = + __objc_msgSend_178Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_windowsLocaleCodeFromLocaleIdentifier_1 = - _registerName1("windowsLocaleCodeFromLocaleIdentifier:"); + late final _sel_windowsLocaleCodeFromLocaleIdentifier_1 = _registerName1( + "windowsLocaleCodeFromLocaleIdentifier:", + ); int _objc_msgSend_179( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localeIdentifier, ) { - return __objc_msgSend_179( - obj, - sel, - localeIdentifier, - ); + return __objc_msgSend_179(obj, sel, localeIdentifier); } late final __objc_msgSend_179Ptr = _lookup< - ffi.NativeFunction< - ffi.Uint32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_characterDirectionForLanguage_1 = - _registerName1("characterDirectionForLanguage:"); + ffi.NativeFunction< + ffi.Uint32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_179 = + __objc_msgSend_179Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_characterDirectionForLanguage_1 = _registerName1( + "characterDirectionForLanguage:", + ); int _objc_msgSend_180( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer isoLangCode, ) { - return __objc_msgSend_180( - obj, - sel, - isoLangCode, - ); + return __objc_msgSend_180(obj, sel, isoLangCode); } late final __objc_msgSend_180Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_lineDirectionForLanguage_1 = - _registerName1("lineDirectionForLanguage:"); - late final _sel_rangeOfString_options_range_locale_1 = - _registerName1("rangeOfString:options:range:locale:"); + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_180 = + __objc_msgSend_180Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_lineDirectionForLanguage_1 = _registerName1( + "lineDirectionForLanguage:", + ); + late final _sel_rangeOfString_options_range_locale_1 = _registerName1( + "rangeOfString:options:range:locale:", + ); _NSRange _objc_msgSend_181( ffi.Pointer obj, ffi.Pointer sel, @@ -4959,66 +6172,96 @@ class NativeMacOsFramework { } late final __objc_msgSend_181Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function( + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_181 = + __objc_msgSend_181Ptr + .asFunction< + _NSRange Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, + int, _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_rangeOfCharacterFromSet_1 = - _registerName1("rangeOfCharacterFromSet:"); + late final _sel_rangeOfCharacterFromSet_1 = _registerName1( + "rangeOfCharacterFromSet:", + ); _NSRange _objc_msgSend_182( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, ) { - return __objc_msgSend_182( - obj, - sel, - searchSet, - ); + return __objc_msgSend_182(obj, sel, searchSet); } late final __objc_msgSend_182Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_rangeOfCharacterFromSet_options_1 = - _registerName1("rangeOfCharacterFromSet:options:"); + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_182 = + __objc_msgSend_182Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_rangeOfCharacterFromSet_options_1 = _registerName1( + "rangeOfCharacterFromSet:options:", + ); _NSRange _objc_msgSend_183( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, ) { - return __objc_msgSend_183( - obj, - sel, - searchSet, - mask, - ); + return __objc_msgSend_183(obj, sel, searchSet, mask); } late final __objc_msgSend_183Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_rangeOfCharacterFromSet_options_range_1 = - _registerName1("rangeOfCharacterFromSet:options:range:"); + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_183 = + __objc_msgSend_183Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_rangeOfCharacterFromSet_options_range_1 = _registerName1( + "rangeOfCharacterFromSet:options:range:", + ); _NSRange _objc_msgSend_184( ffi.Pointer obj, ffi.Pointer sel, @@ -5036,188 +6279,228 @@ class NativeMacOsFramework { } late final __objc_msgSend_184Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = - _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_184 = + __objc_msgSend_184Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ) + >(); + + late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = _registerName1( + "rangeOfComposedCharacterSequenceAtIndex:", + ); _NSRange _objc_msgSend_185( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_185( - obj, - sel, - index, - ); + return __objc_msgSend_185(obj, sel, index); } late final __objc_msgSend_185Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_185 = + __objc_msgSend_185Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_rangeOfComposedCharacterSequencesForRange_1 = - _registerName1("rangeOfComposedCharacterSequencesForRange:"); + late final _sel_rangeOfComposedCharacterSequencesForRange_1 = _registerName1( + "rangeOfComposedCharacterSequencesForRange:", + ); _NSRange _objc_msgSend_186( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_186( - obj, - sel, - range, - ); + return __objc_msgSend_186(obj, sel, range); } late final __objc_msgSend_186Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< - _NSRange Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_stringByAppendingString_1 = - _registerName1("stringByAppendingString:"); - late final _sel_stringByAppendingFormat_1 = - _registerName1("stringByAppendingFormat:"); + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, _NSRange) + > + >('objc_msgSend'); + late final __objc_msgSend_186 = + __objc_msgSend_186Ptr + .asFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); + + late final _sel_stringByAppendingString_1 = _registerName1( + "stringByAppendingString:", + ); + late final _sel_stringByAppendingFormat_1 = _registerName1( + "stringByAppendingFormat:", + ); late final _sel_doubleValue1 = _registerName1("doubleValue"); double _objc_msgSend_187( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_187( - obj, - sel, - ); + return __objc_msgSend_187(obj, sel); } late final __objc_msgSend_187Ptr = _lookup< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_187 = + __objc_msgSend_187Ptr + .asFunction< + double Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_floatValue1 = _registerName1("floatValue"); double _objc_msgSend_188( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_188( - obj, - sel, - ); + return __objc_msgSend_188(obj, sel); } late final __objc_msgSend_188Ptr = _lookup< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Float Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_188 = + __objc_msgSend_188Ptr + .asFunction< + double Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_intValue1 = _registerName1("intValue"); - int _objc_msgSend_189( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_189( - obj, - sel, - ); + int _objc_msgSend_189(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_189(obj, sel); } late final __objc_msgSend_189Ptr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_189 = + __objc_msgSend_189Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_integerValue1 = _registerName1("integerValue"); - int _objc_msgSend_190( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_190( - obj, - sel, - ); + int _objc_msgSend_190(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_190(obj, sel); } late final __objc_msgSend_190Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_190 = + __objc_msgSend_190Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_191( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_191( - obj, - sel, - ); + int _objc_msgSend_191(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_191(obj, sel); } late final __objc_msgSend_191Ptr = _lookup< - ffi.NativeFunction< - ffi.LongLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.LongLong Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_191 = + __objc_msgSend_191Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_boolValue1 = _registerName1("boolValue"); late final _sel_uppercaseString1 = _registerName1("uppercaseString"); late final _sel_lowercaseString1 = _registerName1("lowercaseString"); late final _sel_capitalizedString1 = _registerName1("capitalizedString"); - late final _sel_localizedUppercaseString1 = - _registerName1("localizedUppercaseString"); - late final _sel_localizedLowercaseString1 = - _registerName1("localizedLowercaseString"); - late final _sel_localizedCapitalizedString1 = - _registerName1("localizedCapitalizedString"); - late final _sel_uppercaseStringWithLocale_1 = - _registerName1("uppercaseStringWithLocale:"); + late final _sel_localizedUppercaseString1 = _registerName1( + "localizedUppercaseString", + ); + late final _sel_localizedLowercaseString1 = _registerName1( + "localizedLowercaseString", + ); + late final _sel_localizedCapitalizedString1 = _registerName1( + "localizedCapitalizedString", + ); + late final _sel_uppercaseStringWithLocale_1 = _registerName1( + "uppercaseStringWithLocale:", + ); ffi.Pointer _objc_msgSend_192( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer locale, ) { - return __objc_msgSend_192( - obj, - sel, - locale, - ); + return __objc_msgSend_192(obj, sel, locale); } late final __objc_msgSend_192Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_lowercaseStringWithLocale_1 = - _registerName1("lowercaseStringWithLocale:"); - late final _sel_capitalizedStringWithLocale_1 = - _registerName1("capitalizedStringWithLocale:"); - late final _sel_getLineStart_end_contentsEnd_forRange_1 = - _registerName1("getLineStart:end:contentsEnd:forRange:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_192 = + __objc_msgSend_192Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_lowercaseStringWithLocale_1 = _registerName1( + "lowercaseStringWithLocale:", + ); + late final _sel_capitalizedStringWithLocale_1 = _registerName1( + "capitalizedStringWithLocale:", + ); + late final _sel_getLineStart_end_contentsEnd_forRange_1 = _registerName1( + "getLineStart:end:contentsEnd:forRange:", + ); void _objc_msgSend_193( ffi.Pointer obj, ffi.Pointer sel, @@ -5237,28 +6520,37 @@ class NativeMacOsFramework { } late final __objc_msgSend_193Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_193 = + __objc_msgSend_193Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange)>(); + _NSRange, + ) + >(); late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); - late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = - _registerName1("getParagraphStart:end:contentsEnd:forRange:"); - late final _sel_paragraphRangeForRange_1 = - _registerName1("paragraphRangeForRange:"); + late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = _registerName1( + "getParagraphStart:end:contentsEnd:forRange:", + ); + late final _sel_paragraphRangeForRange_1 = _registerName1( + "paragraphRangeForRange:", + ); late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = _registerName1("enumerateSubstringsInRange:options:usingBlock:"); void _objc_msgSend_194( @@ -5268,92 +6560,121 @@ class NativeMacOsFramework { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_194( - obj, - sel, - range, - opts, - block, - ); + return __objc_msgSend_194(obj, sel, range, opts, block); } late final __objc_msgSend_194Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateLinesUsingBlock_1 = - _registerName1("enumerateLinesUsingBlock:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_194 = + __objc_msgSend_194Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_enumerateLinesUsingBlock_1 = _registerName1( + "enumerateLinesUsingBlock:", + ); void _objc_msgSend_195( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_195( - obj, - sel, - block, - ); + return __objc_msgSend_195(obj, sel, block); } late final __objc_msgSend_195Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_195 = + __objc_msgSend_195Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_UTF8String1 = _registerName1("UTF8String"); ffi.Pointer _objc_msgSend_196( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_196( - obj, - sel, - ); + return __objc_msgSend_196(obj, sel); } late final __objc_msgSend_196Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_196 = + __objc_msgSend_196Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_fastestEncoding1 = _registerName1("fastestEncoding"); late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); - late final _sel_dataUsingEncoding_allowLossyConversion_1 = - _registerName1("dataUsingEncoding:allowLossyConversion:"); + late final _sel_dataUsingEncoding_allowLossyConversion_1 = _registerName1( + "dataUsingEncoding:allowLossyConversion:", + ); ffi.Pointer _objc_msgSend_197( ffi.Pointer obj, ffi.Pointer sel, int encoding, bool lossy, ) { - return __objc_msgSend_197( - obj, - sel, - encoding, - lossy, - ); + return __objc_msgSend_197(obj, sel, encoding, lossy); } late final __objc_msgSend_197Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_197 = + __objc_msgSend_197Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, bool)>(); + int, + bool, + ) + >(); late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); ffi.Pointer _objc_msgSend_198( @@ -5361,47 +6682,64 @@ class NativeMacOsFramework { ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_198( - obj, - sel, - encoding, - ); + return __objc_msgSend_198(obj, sel, encoding); } late final __objc_msgSend_198Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_canBeConvertedToEncoding_1 = - _registerName1("canBeConvertedToEncoding:"); - late final _sel_cStringUsingEncoding_1 = - _registerName1("cStringUsingEncoding:"); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_198 = + __objc_msgSend_198Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_canBeConvertedToEncoding_1 = _registerName1( + "canBeConvertedToEncoding:", + ); + late final _sel_cStringUsingEncoding_1 = _registerName1( + "cStringUsingEncoding:", + ); ffi.Pointer _objc_msgSend_199( ffi.Pointer obj, ffi.Pointer sel, int encoding, ) { - return __objc_msgSend_199( - obj, - sel, - encoding, - ); + return __objc_msgSend_199(obj, sel, encoding); } late final __objc_msgSend_199Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_199 = + __objc_msgSend_199Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_getCString_maxLength_encoding_1 = - _registerName1("getCString:maxLength:encoding:"); + late final _sel_getCString_maxLength_encoding_1 = _registerName1( + "getCString:maxLength:encoding:", + ); bool _objc_msgSend_200( ffi.Pointer obj, ffi.Pointer sel, @@ -5409,30 +6747,36 @@ class NativeMacOsFramework { int maxBufferCount, int encoding, ) { - return __objc_msgSend_200( - obj, - sel, - buffer, - maxBufferCount, - encoding, - ); + return __objc_msgSend_200(obj, sel, buffer, maxBufferCount, encoding); } late final __objc_msgSend_200Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_200 = + __objc_msgSend_200Ptr + .asFunction< + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int, + ) + >(); late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = _registerName1( - "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); + "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:", + ); bool _objc_msgSend_201( ffi.Pointer obj, ffi.Pointer sel, @@ -5458,110 +6802,149 @@ class NativeMacOsFramework { } late final __objc_msgSend_201Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Int32, + _NSRange, + ffi.Pointer<_NSRange>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_201 = + __objc_msgSend_201Ptr + .asFunction< + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + int, ffi.Pointer, - ffi.UnsignedLong, - ffi.Int32, + int, + int, _NSRange, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - int, - _NSRange, - ffi.Pointer<_NSRange>)>(); - - late final _sel_maximumLengthOfBytesUsingEncoding_1 = - _registerName1("maximumLengthOfBytesUsingEncoding:"); - late final _sel_lengthOfBytesUsingEncoding_1 = - _registerName1("lengthOfBytesUsingEncoding:"); - late final _sel_availableStringEncodings1 = - _registerName1("availableStringEncodings"); + ffi.Pointer<_NSRange>, + ) + >(); + + late final _sel_maximumLengthOfBytesUsingEncoding_1 = _registerName1( + "maximumLengthOfBytesUsingEncoding:", + ); + late final _sel_lengthOfBytesUsingEncoding_1 = _registerName1( + "lengthOfBytesUsingEncoding:", + ); + late final _sel_availableStringEncodings1 = _registerName1( + "availableStringEncodings", + ); ffi.Pointer _objc_msgSend_202( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_202( - obj, - sel, - ); + return __objc_msgSend_202(obj, sel); } late final __objc_msgSend_202Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_localizedNameOfStringEncoding_1 = - _registerName1("localizedNameOfStringEncoding:"); - late final _sel_defaultCStringEncoding1 = - _registerName1("defaultCStringEncoding"); - late final _sel_decomposedStringWithCanonicalMapping1 = - _registerName1("decomposedStringWithCanonicalMapping"); - late final _sel_precomposedStringWithCanonicalMapping1 = - _registerName1("precomposedStringWithCanonicalMapping"); - late final _sel_decomposedStringWithCompatibilityMapping1 = - _registerName1("decomposedStringWithCompatibilityMapping"); - late final _sel_precomposedStringWithCompatibilityMapping1 = - _registerName1("precomposedStringWithCompatibilityMapping"); - late final _sel_componentsSeparatedByString_1 = - _registerName1("componentsSeparatedByString:"); - late final _sel_componentsSeparatedByCharactersInSet_1 = - _registerName1("componentsSeparatedByCharactersInSet:"); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_202 = + __objc_msgSend_202Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_localizedNameOfStringEncoding_1 = _registerName1( + "localizedNameOfStringEncoding:", + ); + late final _sel_defaultCStringEncoding1 = _registerName1( + "defaultCStringEncoding", + ); + late final _sel_decomposedStringWithCanonicalMapping1 = _registerName1( + "decomposedStringWithCanonicalMapping", + ); + late final _sel_precomposedStringWithCanonicalMapping1 = _registerName1( + "precomposedStringWithCanonicalMapping", + ); + late final _sel_decomposedStringWithCompatibilityMapping1 = _registerName1( + "decomposedStringWithCompatibilityMapping", + ); + late final _sel_precomposedStringWithCompatibilityMapping1 = _registerName1( + "precomposedStringWithCompatibilityMapping", + ); + late final _sel_componentsSeparatedByString_1 = _registerName1( + "componentsSeparatedByString:", + ); + late final _sel_componentsSeparatedByCharactersInSet_1 = _registerName1( + "componentsSeparatedByCharactersInSet:", + ); ffi.Pointer _objc_msgSend_203( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer separator, ) { - return __objc_msgSend_203( - obj, - sel, - separator, - ); + return __objc_msgSend_203(obj, sel, separator); } late final __objc_msgSend_203Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_stringByTrimmingCharactersInSet_1 = - _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_204( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_203 = + __objc_msgSend_203Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_stringByTrimmingCharactersInSet_1 = _registerName1( + "stringByTrimmingCharactersInSet:", + ); + ffi.Pointer _objc_msgSend_204( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_204( - obj, - sel, - set1, - ); + return __objc_msgSend_204(obj, sel, set1); } late final __objc_msgSend_204Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_204 = + __objc_msgSend_204Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); @@ -5572,57 +6955,69 @@ class NativeMacOsFramework { ffi.Pointer padString, int padIndex, ) { - return __objc_msgSend_205( - obj, - sel, - newLength, - padString, - padIndex, - ); + return __objc_msgSend_205(obj, sel, newLength, padString, padIndex); } late final __objc_msgSend_205Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_205 = + __objc_msgSend_205Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + int, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); + int, + ) + >(); - late final _sel_stringByFoldingWithOptions_locale_1 = - _registerName1("stringByFoldingWithOptions:locale:"); + late final _sel_stringByFoldingWithOptions_locale_1 = _registerName1( + "stringByFoldingWithOptions:locale:", + ); ffi.Pointer _objc_msgSend_206( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer locale, ) { - return __objc_msgSend_206( - obj, - sel, - options, - locale, - ); + return __objc_msgSend_206(obj, sel, options, locale); } late final __objc_msgSend_206Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_206 = + __objc_msgSend_206Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); + int, + ffi.Pointer, + ) + >(); late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = _registerName1( - "stringByReplacingOccurrencesOfString:withString:options:range:"); + "stringByReplacingOccurrencesOfString:withString:options:range:", + ); ffi.Pointer _objc_msgSend_207( ffi.Pointer obj, ffi.Pointer sel, @@ -5642,22 +7037,29 @@ class NativeMacOsFramework { } late final __objc_msgSend_207Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_207 = + __objc_msgSend_207Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - _NSRange)>(); + int, + _NSRange, + ) + >(); late final _sel_stringByReplacingOccurrencesOfString_withString_1 = _registerName1("stringByReplacingOccurrencesOfString:withString:"); @@ -5667,27 +7069,29 @@ class NativeMacOsFramework { ffi.Pointer target, ffi.Pointer replacement, ) { - return __objc_msgSend_208( - obj, - sel, - target, - replacement, - ); + return __objc_msgSend_208(obj, sel, target, replacement); } late final __objc_msgSend_208Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_208 = + __objc_msgSend_208Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_stringByReplacingCharactersInRange_withString_1 = _registerName1("stringByReplacingCharactersInRange:withString:"); @@ -5697,54 +7101,66 @@ class NativeMacOsFramework { _NSRange range, ffi.Pointer replacement, ) { - return __objc_msgSend_209( - obj, - sel, - range, - replacement, - ); + return __objc_msgSend_209(obj, sel, range, replacement); } late final __objc_msgSend_209Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_209 = + __objc_msgSend_209Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_stringByApplyingTransform_reverse_1 = - _registerName1("stringByApplyingTransform:reverse:"); + late final _sel_stringByApplyingTransform_reverse_1 = _registerName1( + "stringByApplyingTransform:reverse:", + ); ffi.Pointer _objc_msgSend_210( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer transform, bool reverse, ) { - return __objc_msgSend_210( - obj, - sel, - transform, - reverse, - ); + return __objc_msgSend_210(obj, sel, transform, reverse); } late final __objc_msgSend_210Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_210 = + __objc_msgSend_210Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); + bool, + ) + >(); - late final _sel_writeToURL_atomically_encoding_error_1 = - _registerName1("writeToURL:atomically:encoding:error:"); + late final _sel_writeToURL_atomically_encoding_error_1 = _registerName1( + "writeToURL:atomically:encoding:error:", + ); bool _objc_msgSend_211( ffi.Pointer obj, ffi.Pointer sel, @@ -5753,36 +7169,37 @@ class NativeMacOsFramework { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_211( - obj, - sel, - url, - useAuxiliaryFile, - enc, - error, - ); + return __objc_msgSend_211(obj, sel, url, useAuxiliaryFile, enc, error); } late final __objc_msgSend_211Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_211 = + __objc_msgSend_211Ptr + .asFunction< + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>)>(); + bool, + int, + ffi.Pointer>, + ) + >(); - late final _sel_writeToFile_atomically_encoding_error_1 = - _registerName1("writeToFile:atomically:encoding:error:"); + late final _sel_writeToFile_atomically_encoding_error_1 = _registerName1( + "writeToFile:atomically:encoding:error:", + ); bool _objc_msgSend_212( ffi.Pointer obj, ffi.Pointer sel, @@ -5791,33 +7208,33 @@ class NativeMacOsFramework { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_212( - obj, - sel, - path, - useAuxiliaryFile, - enc, - error, - ); + return __objc_msgSend_212(obj, sel, path, useAuxiliaryFile, enc, error); } late final __objc_msgSend_212Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_212 = + __objc_msgSend_212Ptr + .asFunction< + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>)>(); + bool, + int, + ffi.Pointer>, + ) + >(); late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); @@ -5828,26 +7245,31 @@ class NativeMacOsFramework { int length, bool freeBuffer, ) { - return __objc_msgSend_213( - obj, - sel, - characters, - length, - freeBuffer, - ); + return __objc_msgSend_213(obj, sel, characters, length, freeBuffer); } late final __objc_msgSend_213Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_213 = + __objc_msgSend_213Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, bool)>(); + int, + bool, + ) + >(); late final _sel_initWithCharactersNoCopy_length_deallocator_1 = _registerName1("initWithCharactersNoCopy:length:deallocator:"); @@ -5858,53 +7280,64 @@ class NativeMacOsFramework { int len, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_214( - obj, - sel, - chars, - len, - deallocator, - ); + return __objc_msgSend_214(obj, sel, chars, len, deallocator); } late final __objc_msgSend_214Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_214 = + __objc_msgSend_214Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_initWithCharacters_length_1 = - _registerName1("initWithCharacters:length:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_initWithCharacters_length_1 = _registerName1( + "initWithCharacters:length:", + ); instancetype _objc_msgSend_215( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer characters, int length, ) { - return __objc_msgSend_215( - obj, - sel, - characters, - length, - ); + return __objc_msgSend_215(obj, sel, characters, length); } late final __objc_msgSend_215Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_215 = + __objc_msgSend_215Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + int, + ) + >(); late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); instancetype _objc_msgSend_216( @@ -5912,76 +7345,99 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer nullTerminatedCString, ) { - return __objc_msgSend_216( - obj, - sel, - nullTerminatedCString, - ); + return __objc_msgSend_216(obj, sel, nullTerminatedCString); } late final __objc_msgSend_216Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_216 = + __objc_msgSend_216Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_initWithString_1 = _registerName1("initWithString:"); late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); - late final _sel_initWithFormat_arguments_1 = - _registerName1("initWithFormat:arguments:"); + late final _sel_initWithFormat_arguments_1 = _registerName1( + "initWithFormat:arguments:", + ); instancetype _objc_msgSend_217( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer argList, ) { - return __objc_msgSend_217( - obj, - sel, - format, - argList, - ); + return __objc_msgSend_217(obj, sel, format, argList); } late final __objc_msgSend_217Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithFormat_locale_1 = - _registerName1("initWithFormat:locale:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_217 = + __objc_msgSend_217Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_initWithFormat_locale_1 = _registerName1( + "initWithFormat:locale:", + ); instancetype _objc_msgSend_218( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, ) { - return __objc_msgSend_218( - obj, - sel, - format, - locale, - ); + return __objc_msgSend_218(obj, sel, format, locale); } late final __objc_msgSend_218Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_218 = + __objc_msgSend_218Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_initWithFormat_locale_arguments_1 = - _registerName1("initWithFormat:locale:arguments:"); + late final _sel_initWithFormat_locale_arguments_1 = _registerName1( + "initWithFormat:locale:arguments:", + ); instancetype _objc_msgSend_219( ffi.Pointer obj, ffi.Pointer sel, @@ -5989,30 +7445,31 @@ class NativeMacOsFramework { ffi.Pointer locale, ffi.Pointer argList, ) { - return __objc_msgSend_219( - obj, - sel, - format, - locale, - argList, - ); + return __objc_msgSend_219(obj, sel, format, locale, argList); } late final __objc_msgSend_219Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_219 = + __objc_msgSend_219Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); @@ -6023,34 +7480,36 @@ class NativeMacOsFramework { ffi.Pointer validFormatSpecifiers, ffi.Pointer> error, ) { - return __objc_msgSend_220( - obj, - sel, - format, - validFormatSpecifiers, - error, - ); + return __objc_msgSend_220(obj, sel, format, validFormatSpecifiers, error); } late final __objc_msgSend_220Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_220 = + __objc_msgSend_220Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); + "initWithValidatedFormat:validFormatSpecifiers:locale:error:", + ); instancetype _objc_msgSend_221( ffi.Pointer obj, ffi.Pointer sel, @@ -6070,26 +7529,34 @@ class NativeMacOsFramework { } late final __objc_msgSend_221Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_221 = + __objc_msgSend_221Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); + "initWithValidatedFormat:validFormatSpecifiers:arguments:error:", + ); instancetype _objc_msgSend_222( ffi.Pointer obj, ffi.Pointer sel, @@ -6109,26 +7576,34 @@ class NativeMacOsFramework { } late final __objc_msgSend_222Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_222 = + __objc_msgSend_222Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); + "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:", + ); instancetype _objc_msgSend_223( ffi.Pointer obj, ffi.Pointer sel, @@ -6150,51 +7625,68 @@ class NativeMacOsFramework { } late final __objc_msgSend_223Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_223 = + __objc_msgSend_223Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - late final _sel_initWithData_encoding_1 = - _registerName1("initWithData:encoding:"); + late final _sel_initWithData_encoding_1 = _registerName1( + "initWithData:encoding:", + ); instancetype _objc_msgSend_224( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int encoding, ) { - return __objc_msgSend_224( - obj, - sel, - data, - encoding, - ); + return __objc_msgSend_224(obj, sel, data, encoding); } late final __objc_msgSend_224Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_initWithBytes_length_encoding_1 = - _registerName1("initWithBytes:length:encoding:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_224 = + __objc_msgSend_224Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_initWithBytes_length_encoding_1 = _registerName1( + "initWithBytes:length:encoding:", + ); instancetype _objc_msgSend_225( ffi.Pointer obj, ffi.Pointer sel, @@ -6202,26 +7694,31 @@ class NativeMacOsFramework { int len, int encoding, ) { - return __objc_msgSend_225( - obj, - sel, - bytes, - len, - encoding, - ); + return __objc_msgSend_225(obj, sel, bytes, len, encoding); } late final __objc_msgSend_225Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_225 = + __objc_msgSend_225Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); + int, + int, + ) + >(); late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); @@ -6233,28 +7730,33 @@ class NativeMacOsFramework { int encoding, bool freeBuffer, ) { - return __objc_msgSend_226( - obj, - sel, - bytes, - len, - encoding, - freeBuffer, - ); + return __objc_msgSend_226(obj, sel, bytes, len, encoding, freeBuffer); } late final __objc_msgSend_226Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_226 = + __objc_msgSend_226Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, bool)>(); + int, + int, + bool, + ) + >(); late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); @@ -6266,71 +7768,91 @@ class NativeMacOsFramework { int encoding, ffi.Pointer<_ObjCBlock> deallocator, ) { - return __objc_msgSend_227( - obj, - sel, - bytes, - len, - encoding, - deallocator, - ); + return __objc_msgSend_227(obj, sel, bytes, len, encoding, deallocator); } late final __objc_msgSend_227Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_227 = + __objc_msgSend_227Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + int, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_string1 = _registerName1("string"); late final _sel_stringWithString_1 = _registerName1("stringWithString:"); - late final _sel_stringWithCharacters_length_1 = - _registerName1("stringWithCharacters:length:"); - late final _sel_stringWithUTF8String_1 = - _registerName1("stringWithUTF8String:"); + late final _sel_stringWithCharacters_length_1 = _registerName1( + "stringWithCharacters:length:", + ); + late final _sel_stringWithUTF8String_1 = _registerName1( + "stringWithUTF8String:", + ); late final _sel_stringWithFormat_1 = _registerName1("stringWithFormat:"); - late final _sel_localizedStringWithFormat_1 = - _registerName1("localizedStringWithFormat:"); + late final _sel_localizedStringWithFormat_1 = _registerName1( + "localizedStringWithFormat:", + ); late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_1 = _registerName1("stringWithValidatedFormat:validFormatSpecifiers:error:"); late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1 = _registerName1( - "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); - late final _sel_initWithCString_encoding_1 = - _registerName1("initWithCString:encoding:"); + "localizedStringWithValidatedFormat:validFormatSpecifiers:error:", + ); + late final _sel_initWithCString_encoding_1 = _registerName1( + "initWithCString:encoding:", + ); instancetype _objc_msgSend_228( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer nullTerminatedCString, int encoding, ) { - return __objc_msgSend_228( - obj, - sel, - nullTerminatedCString, - encoding, - ); + return __objc_msgSend_228(obj, sel, nullTerminatedCString, encoding); } late final __objc_msgSend_228Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_stringWithCString_encoding_1 = - _registerName1("stringWithCString:encoding:"); - late final _sel_initWithContentsOfURL_encoding_error_1 = - _registerName1("initWithContentsOfURL:encoding:error:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_228 = + __objc_msgSend_228Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_stringWithCString_encoding_1 = _registerName1( + "stringWithCString:encoding:", + ); + late final _sel_initWithContentsOfURL_encoding_error_1 = _registerName1( + "initWithContentsOfURL:encoding:error:", + ); instancetype _objc_msgSend_229( ffi.Pointer obj, ffi.Pointer sel, @@ -6338,33 +7860,35 @@ class NativeMacOsFramework { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_229( - obj, - sel, - url, - enc, - error, - ); + return __objc_msgSend_229(obj, sel, url, enc, error); } late final __objc_msgSend_229Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_229 = + __objc_msgSend_229Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + int, + ffi.Pointer>, + ) + >(); - late final _sel_initWithContentsOfFile_encoding_error_1 = - _registerName1("initWithContentsOfFile:encoding:error:"); + late final _sel_initWithContentsOfFile_encoding_error_1 = _registerName1( + "initWithContentsOfFile:encoding:error:", + ); instancetype _objc_msgSend_230( ffi.Pointer obj, ffi.Pointer sel, @@ -6372,37 +7896,41 @@ class NativeMacOsFramework { int enc, ffi.Pointer> error, ) { - return __objc_msgSend_230( - obj, - sel, - path, - enc, - error, - ); + return __objc_msgSend_230(obj, sel, path, enc, error); } late final __objc_msgSend_230Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_230 = + __objc_msgSend_230Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_stringWithContentsOfURL_encoding_error_1 = - _registerName1("stringWithContentsOfURL:encoding:error:"); - late final _sel_stringWithContentsOfFile_encoding_error_1 = - _registerName1("stringWithContentsOfFile:encoding:error:"); - late final _sel_initWithContentsOfURL_usedEncoding_error_1 = - _registerName1("initWithContentsOfURL:usedEncoding:error:"); + int, + ffi.Pointer>, + ) + >(); + + late final _sel_stringWithContentsOfURL_encoding_error_1 = _registerName1( + "stringWithContentsOfURL:encoding:error:", + ); + late final _sel_stringWithContentsOfFile_encoding_error_1 = _registerName1( + "stringWithContentsOfFile:encoding:error:", + ); + late final _sel_initWithContentsOfURL_usedEncoding_error_1 = _registerName1( + "initWithContentsOfURL:usedEncoding:error:", + ); instancetype _objc_msgSend_231( ffi.Pointer obj, ffi.Pointer sel, @@ -6410,33 +7938,35 @@ class NativeMacOsFramework { ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_231( - obj, - sel, - url, - enc, - error, - ); + return __objc_msgSend_231(obj, sel, url, enc, error); } late final __objc_msgSend_231Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_231 = + __objc_msgSend_231Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - late final _sel_initWithContentsOfFile_usedEncoding_error_1 = - _registerName1("initWithContentsOfFile:usedEncoding:error:"); + late final _sel_initWithContentsOfFile_usedEncoding_error_1 = _registerName1( + "initWithContentsOfFile:usedEncoding:error:", + ); instancetype _objc_msgSend_232( ffi.Pointer obj, ffi.Pointer sel, @@ -6444,38 +7974,41 @@ class NativeMacOsFramework { ffi.Pointer enc, ffi.Pointer> error, ) { - return __objc_msgSend_232( - obj, - sel, - path, - enc, - error, - ); + return __objc_msgSend_232(obj, sel, path, enc, error); } late final __objc_msgSend_232Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_232 = + __objc_msgSend_232Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = - _registerName1("stringWithContentsOfURL:usedEncoding:error:"); + late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = _registerName1( + "stringWithContentsOfURL:usedEncoding:error:", + ); late final _sel_stringWithContentsOfFile_usedEncoding_error_1 = _registerName1("stringWithContentsOfFile:usedEncoding:error:"); late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = _registerName1( - "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); + "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:", + ); int _objc_msgSend_233( ffi.Pointer obj, ffi.Pointer sel, @@ -6495,74 +8028,98 @@ class NativeMacOsFramework { } late final __objc_msgSend_233Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_233 = + __objc_msgSend_233Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_propertyList1 = _registerName1("propertyList"); - late final _sel_propertyListFromStringsFileFormat1 = - _registerName1("propertyListFromStringsFileFormat"); + late final _sel_propertyListFromStringsFileFormat1 = _registerName1( + "propertyListFromStringsFileFormat", + ); ffi.Pointer _objc_msgSend_234( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_234( - obj, - sel, - ); + return __objc_msgSend_234(obj, sel); } late final __objc_msgSend_234Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_234 = + __objc_msgSend_234Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_cString1 = _registerName1("cString"); late final _sel_lossyCString1 = _registerName1("lossyCString"); late final _sel_cStringLength1 = _registerName1("cStringLength"); late final _sel_getCString_1 = _registerName1("getCString:"); - late final _sel_getCString_maxLength_1 = - _registerName1("getCString:maxLength:"); + late final _sel_getCString_maxLength_1 = _registerName1( + "getCString:maxLength:", + ); void _objc_msgSend_235( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bytes, int maxLength, ) { - return __objc_msgSend_235( - obj, - sel, - bytes, - maxLength, - ); + return __objc_msgSend_235(obj, sel, bytes, maxLength); } late final __objc_msgSend_235Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_getCString_maxLength_range_remainingRange_1 = - _registerName1("getCString:maxLength:range:remainingRange:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_235 = + __objc_msgSend_235Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_getCString_maxLength_range_remainingRange_1 = _registerName1( + "getCString:maxLength:range:remainingRange:", + ); void _objc_msgSend_236( ffi.Pointer obj, ffi.Pointer sel, @@ -6582,44 +8139,66 @@ class NativeMacOsFramework { } late final __objc_msgSend_236Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + _NSRange, + ffi.Pointer<_NSRange>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_236 = + __objc_msgSend_236Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, + int, _NSRange, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer<_NSRange>)>(); + ffi.Pointer<_NSRange>, + ) + >(); ffi.Pointer _objc_msgSend_237( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_237( - obj, - sel, - url, - ); + return __objc_msgSend_237(obj, sel, url); } late final __objc_msgSend_237Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_stringWithContentsOfFile_1 = - _registerName1("stringWithContentsOfFile:"); - late final _sel_stringWithContentsOfURL_1 = - _registerName1("stringWithContentsOfURL:"); - late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = - _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_237 = + __objc_msgSend_237Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_stringWithContentsOfFile_1 = _registerName1( + "stringWithContentsOfFile:", + ); + late final _sel_stringWithContentsOfURL_1 = _registerName1( + "stringWithContentsOfURL:", + ); + late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = _registerName1( + "initWithCStringNoCopy:length:freeWhenDone:", + ); ffi.Pointer _objc_msgSend_238( ffi.Pointer obj, ffi.Pointer sel, @@ -6627,32 +8206,39 @@ class NativeMacOsFramework { int length, bool freeBuffer, ) { - return __objc_msgSend_238( - obj, - sel, - bytes, - length, - freeBuffer, - ); + return __objc_msgSend_238(obj, sel, bytes, length, freeBuffer); } late final __objc_msgSend_238Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_238 = + __objc_msgSend_238Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, bool)>(); - - late final _sel_initWithCString_length_1 = - _registerName1("initWithCString:length:"); + int, + bool, + ) + >(); + + late final _sel_initWithCString_length_1 = _registerName1( + "initWithCString:length:", + ); late final _sel_initWithCString_1 = _registerName1("initWithCString:"); - late final _sel_stringWithCString_length_1 = - _registerName1("stringWithCString:length:"); + late final _sel_stringWithCString_length_1 = _registerName1( + "stringWithCString:length:", + ); late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); late final _sel_getCharacters_1 = _registerName1("getCharacters:"); void _objc_msgSend_239( @@ -6660,42 +8246,57 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer buffer, ) { - return __objc_msgSend_239( - obj, - sel, - buffer, - ); + return __objc_msgSend_239(obj, sel, buffer); } late final __objc_msgSend_239Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_variantFittingPresentationWidth_1 = - _registerName1("variantFittingPresentationWidth:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_239 = + __objc_msgSend_239Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_variantFittingPresentationWidth_1 = _registerName1( + "variantFittingPresentationWidth:", + ); ffi.Pointer _objc_msgSend_240( ffi.Pointer obj, ffi.Pointer sel, int width, ) { - return __objc_msgSend_240( - obj, - sel, - width, - ); + return __objc_msgSend_240(obj, sel, width); } late final __objc_msgSend_240Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_240 = + __objc_msgSend_240Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_debugDescription1 = _registerName1("debugDescription"); late final _sel_version1 = _registerName1("version"); @@ -6705,130 +8306,161 @@ class NativeMacOsFramework { ffi.Pointer sel, int aVersion, ) { - return __objc_msgSend_241( - obj, - sel, - aVersion, - ); + return __objc_msgSend_241(obj, sel, aVersion); } late final __objc_msgSend_241Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long) + > + >('objc_msgSend'); + late final __objc_msgSend_241 = + __objc_msgSend_241Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); late final _sel_classForCoder1 = _registerName1("classForCoder"); - late final _sel_replacementObjectForCoder_1 = - _registerName1("replacementObjectForCoder:"); - late final _sel_awakeAfterUsingCoder_1 = - _registerName1("awakeAfterUsingCoder:"); + late final _sel_replacementObjectForCoder_1 = _registerName1( + "replacementObjectForCoder:", + ); + late final _sel_awakeAfterUsingCoder_1 = _registerName1( + "awakeAfterUsingCoder:", + ); late final _sel_poseAsClass_1 = _registerName1("poseAsClass:"); - late final _sel_autoContentAccessingProxy1 = - _registerName1("autoContentAccessingProxy"); + late final _sel_autoContentAccessingProxy1 = _registerName1( + "autoContentAccessingProxy", + ); late final _class_NSValue1 = _getClass1("NSValue"); late final _sel_getValue_size_1 = _registerName1("getValue:size:"); late final _sel_objCType1 = _registerName1("objCType"); - late final _sel_initWithBytes_objCType_1 = - _registerName1("initWithBytes:objCType:"); + late final _sel_initWithBytes_objCType_1 = _registerName1( + "initWithBytes:objCType:", + ); instancetype _objc_msgSend_242( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_242( - obj, - sel, - value, - type, - ); + return __objc_msgSend_242(obj, sel, value, type); } late final __objc_msgSend_242Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_valueWithBytes_objCType_1 = - _registerName1("valueWithBytes:objCType:"); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_242 = + __objc_msgSend_242Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_valueWithBytes_objCType_1 = _registerName1( + "valueWithBytes:objCType:", + ); ffi.Pointer _objc_msgSend_243( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer type, ) { - return __objc_msgSend_243( - obj, - sel, - value, - type, - ); + return __objc_msgSend_243(obj, sel, value, type); } late final __objc_msgSend_243Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_243 = + __objc_msgSend_243Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); - late final _sel_valueWithNonretainedObject_1 = - _registerName1("valueWithNonretainedObject:"); + late final _sel_valueWithNonretainedObject_1 = _registerName1( + "valueWithNonretainedObject:", + ); ffi.Pointer _objc_msgSend_244( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ) { - return __objc_msgSend_244( - obj, - sel, - anObject, - ); + return __objc_msgSend_244(obj, sel, anObject); } late final __objc_msgSend_244Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_nonretainedObjectValue1 = - _registerName1("nonretainedObjectValue"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_244 = + __objc_msgSend_244Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_nonretainedObjectValue1 = _registerName1( + "nonretainedObjectValue", + ); late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); ffi.Pointer _objc_msgSend_245( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pointer, ) { - return __objc_msgSend_245( - obj, - sel, - pointer, - ); + return __objc_msgSend_245(obj, sel, pointer); } late final __objc_msgSend_245Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_245 = + __objc_msgSend_245Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_pointerValue1 = _registerName1("pointerValue"); late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); @@ -6837,20 +8469,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_246( - obj, - sel, - value, - ); + return __objc_msgSend_246(obj, sel, value); } late final __objc_msgSend_246Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_246 = + __objc_msgSend_246Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_getValue_1 = _registerName1("getValue:"); void _objc_msgSend_247( @@ -6858,20 +8497,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_247( - obj, - sel, - value, - ); + return __objc_msgSend_247(obj, sel, value); } late final __objc_msgSend_247Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_247 = + __objc_msgSend_247Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); ffi.Pointer _objc_msgSend_248( @@ -6879,38 +8525,46 @@ class NativeMacOsFramework { ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_248( - obj, - sel, - range, - ); + return __objc_msgSend_248(obj, sel, range); } late final __objc_msgSend_248Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_248 = + __objc_msgSend_248Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); late final _sel_rangeValue1 = _registerName1("rangeValue"); _NSRange _objc_msgSend_249( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_249( - obj, - sel, - ); + return __objc_msgSend_249(obj, sel); } late final __objc_msgSend_249Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_249 = + __objc_msgSend_249Ptr + .asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_valueWithPoint_1 = _registerName1("valueWithPoint:"); ffi.Pointer _objc_msgSend_250( @@ -6918,20 +8572,27 @@ class NativeMacOsFramework { ffi.Pointer sel, CGPoint point, ) { - return __objc_msgSend_250( - obj, - sel, - point, - ); + return __objc_msgSend_250(obj, sel, point); } late final __objc_msgSend_250Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, CGPoint)>>('objc_msgSend'); - late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CGPoint)>(); + ffi.Pointer, + ffi.Pointer, + CGPoint, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_250 = + __objc_msgSend_250Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + CGPoint, + ) + >(); late final _sel_valueWithSize_1 = _registerName1("valueWithSize:"); ffi.Pointer _objc_msgSend_251( @@ -6939,20 +8600,27 @@ class NativeMacOsFramework { ffi.Pointer sel, CGSize size, ) { - return __objc_msgSend_251( - obj, - sel, - size, - ); + return __objc_msgSend_251(obj, sel, size); } late final __objc_msgSend_251Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, CGSize)>>('objc_msgSend'); - late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CGSize)>(); + ffi.Pointer, + ffi.Pointer, + CGSize, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_251 = + __objc_msgSend_251Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + CGSize, + ) + >(); late final _sel_valueWithRect_1 = _registerName1("valueWithRect:"); ffi.Pointer _objc_msgSend_252( @@ -6960,42 +8628,57 @@ class NativeMacOsFramework { ffi.Pointer sel, CGRect rect, ) { - return __objc_msgSend_252( - obj, - sel, - rect, - ); + return __objc_msgSend_252(obj, sel, rect); } late final __objc_msgSend_252Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, CGRect)>>('objc_msgSend'); - late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CGRect)>(); + ffi.Pointer, + ffi.Pointer, + CGRect, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_252 = + __objc_msgSend_252Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + CGRect, + ) + >(); - late final _sel_valueWithEdgeInsets_1 = - _registerName1("valueWithEdgeInsets:"); + late final _sel_valueWithEdgeInsets_1 = _registerName1( + "valueWithEdgeInsets:", + ); ffi.Pointer _objc_msgSend_253( ffi.Pointer obj, ffi.Pointer sel, NSEdgeInsets insets, ) { - return __objc_msgSend_253( - obj, - sel, - insets, - ); + return __objc_msgSend_253(obj, sel, insets); } late final __objc_msgSend_253Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSEdgeInsets)>>('objc_msgSend'); - late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSEdgeInsets)>(); + ffi.Pointer, + ffi.Pointer, + NSEdgeInsets, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_253 = + __objc_msgSend_253Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + NSEdgeInsets, + ) + >(); late final _sel_pointValue1 = _registerName1("pointValue"); late final _sel_sizeValue1 = _registerName1("sizeValue"); @@ -7005,18 +8688,19 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_254( - obj, - sel, - ); + return __objc_msgSend_254(obj, sel); } late final __objc_msgSend_254Ptr = _lookup< - ffi.NativeFunction< - NSEdgeInsets Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< - NSEdgeInsets Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + NSEdgeInsets Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_254 = + __objc_msgSend_254Ptr + .asFunction< + NSEdgeInsets Function(ffi.Pointer, ffi.Pointer) + >(); late final _class_NSNumber1 = _getClass1("NSNumber"); late final _sel_initWithChar_1 = _registerName1("initWithChar:"); @@ -7025,42 +8709,57 @@ class NativeMacOsFramework { ffi.Pointer sel, int value, ) { - return __objc_msgSend_255( - obj, - sel, - value, - ); + return __objc_msgSend_255(obj, sel, value); } late final __objc_msgSend_255Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Char)>>('objc_msgSend'); - late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Char, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_255 = + __objc_msgSend_255Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_initWithUnsignedChar_1 = - _registerName1("initWithUnsignedChar:"); + late final _sel_initWithUnsignedChar_1 = _registerName1( + "initWithUnsignedChar:", + ); ffi.Pointer _objc_msgSend_256( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_256( - obj, - sel, - value, - ); + return __objc_msgSend_256(obj, sel, value); } late final __objc_msgSend_256Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedChar, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_256 = + __objc_msgSend_256Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_initWithShort_1 = _registerName1("initWithShort:"); ffi.Pointer _objc_msgSend_257( @@ -7068,42 +8767,57 @@ class NativeMacOsFramework { ffi.Pointer sel, int value, ) { - return __objc_msgSend_257( - obj, - sel, - value, - ); + return __objc_msgSend_257(obj, sel, value); } late final __objc_msgSend_257Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Short)>>('objc_msgSend'); - late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Short, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_257 = + __objc_msgSend_257Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_initWithUnsignedShort_1 = - _registerName1("initWithUnsignedShort:"); + late final _sel_initWithUnsignedShort_1 = _registerName1( + "initWithUnsignedShort:", + ); ffi.Pointer _objc_msgSend_258( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_258( - obj, - sel, - value, - ); + return __objc_msgSend_258(obj, sel, value); } late final __objc_msgSend_258Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedShort, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_258 = + __objc_msgSend_258Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_initWithInt_1 = _registerName1("initWithInt:"); ffi.Pointer _objc_msgSend_259( @@ -7111,42 +8825,57 @@ class NativeMacOsFramework { ffi.Pointer sel, int value, ) { - return __objc_msgSend_259( - obj, - sel, - value, - ); + return __objc_msgSend_259(obj, sel, value); } late final __objc_msgSend_259Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Int, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_259 = + __objc_msgSend_259Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_initWithUnsignedInt_1 = - _registerName1("initWithUnsignedInt:"); + late final _sel_initWithUnsignedInt_1 = _registerName1( + "initWithUnsignedInt:", + ); ffi.Pointer _objc_msgSend_260( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_260( - obj, - sel, - value, - ); + return __objc_msgSend_260(obj, sel, value); } late final __objc_msgSend_260Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_260 = + __objc_msgSend_260Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_initWithLong_1 = _registerName1("initWithLong:"); ffi.Pointer _objc_msgSend_261( @@ -7154,42 +8883,57 @@ class NativeMacOsFramework { ffi.Pointer sel, int value, ) { - return __objc_msgSend_261( - obj, - sel, - value, - ); + return __objc_msgSend_261(obj, sel, value); } late final __objc_msgSend_261Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_261 = + __objc_msgSend_261Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_initWithUnsignedLong_1 = - _registerName1("initWithUnsignedLong:"); + late final _sel_initWithUnsignedLong_1 = _registerName1( + "initWithUnsignedLong:", + ); ffi.Pointer _objc_msgSend_262( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_262( - obj, - sel, - value, - ); + return __objc_msgSend_262(obj, sel, value); } late final __objc_msgSend_262Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_262 = + __objc_msgSend_262Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); ffi.Pointer _objc_msgSend_263( @@ -7197,42 +8941,57 @@ class NativeMacOsFramework { ffi.Pointer sel, int value, ) { - return __objc_msgSend_263( - obj, - sel, - value, - ); + return __objc_msgSend_263(obj, sel, value); } late final __objc_msgSend_263Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); - late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.LongLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_263 = + __objc_msgSend_263Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_initWithUnsignedLongLong_1 = - _registerName1("initWithUnsignedLongLong:"); + late final _sel_initWithUnsignedLongLong_1 = _registerName1( + "initWithUnsignedLongLong:", + ); ffi.Pointer _objc_msgSend_264( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_264( - obj, - sel, - value, - ); + return __objc_msgSend_264(obj, sel, value); } late final __objc_msgSend_264Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLongLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_264 = + __objc_msgSend_264Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); ffi.Pointer _objc_msgSend_265( @@ -7240,20 +8999,27 @@ class NativeMacOsFramework { ffi.Pointer sel, double value, ) { - return __objc_msgSend_265( - obj, - sel, - value, - ); + return __objc_msgSend_265(obj, sel, value); } late final __objc_msgSend_265Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, double)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Float, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_265 = + __objc_msgSend_265Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); ffi.Pointer _objc_msgSend_266( @@ -7261,20 +9027,27 @@ class NativeMacOsFramework { ffi.Pointer sel, double value, ) { - return __objc_msgSend_266( - obj, - sel, - value, - ); + return __objc_msgSend_266(obj, sel, value); } late final __objc_msgSend_266Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, double)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_266 = + __objc_msgSend_266Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); late final _sel_initWithBool_1 = _registerName1("initWithBool:"); ffi.Pointer _objc_msgSend_267( @@ -7282,140 +9055,150 @@ class NativeMacOsFramework { ffi.Pointer sel, bool value, ) { - return __objc_msgSend_267( - obj, - sel, - value, - ); + return __objc_msgSend_267(obj, sel, value); } late final __objc_msgSend_267Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_267 = + __objc_msgSend_267Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + bool, + ) + >(); late final _sel_initWithInteger_1 = _registerName1("initWithInteger:"); - late final _sel_initWithUnsignedInteger_1 = - _registerName1("initWithUnsignedInteger:"); + late final _sel_initWithUnsignedInteger_1 = _registerName1( + "initWithUnsignedInteger:", + ); late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_268( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_268( - obj, - sel, - ); + int _objc_msgSend_268(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_268(obj, sel); } late final __objc_msgSend_268Ptr = _lookup< - ffi.NativeFunction< - ffi.Char Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Char Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_268 = + __objc_msgSend_268Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_269( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_269( - obj, - sel, - ); + int _objc_msgSend_269(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_269(obj, sel); } late final __objc_msgSend_269Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.UnsignedChar Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_269 = + __objc_msgSend_269Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_270( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_270( - obj, - sel, - ); + int _objc_msgSend_270(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_270(obj, sel); } late final __objc_msgSend_270Ptr = _lookup< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Short Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_270 = + __objc_msgSend_270Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - int _objc_msgSend_271( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_271( - obj, - sel, - ); + int _objc_msgSend_271(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_271(obj, sel); } late final __objc_msgSend_271Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedShort Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.UnsignedShort Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_271 = + __objc_msgSend_271Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); late final _sel_longValue1 = _registerName1("longValue"); late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); - late final _sel_unsignedLongLongValue1 = - _registerName1("unsignedLongLongValue"); - int _objc_msgSend_272( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_272( - obj, - sel, - ); + late final _sel_unsignedLongLongValue1 = _registerName1( + "unsignedLongLongValue", + ); + int _objc_msgSend_272(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_272(obj, sel); } late final __objc_msgSend_272Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_unsignedIntegerValue1 = - _registerName1("unsignedIntegerValue"); + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_272 = + __objc_msgSend_272Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); + + late final _sel_unsignedIntegerValue1 = _registerName1( + "unsignedIntegerValue", + ); late final _sel_stringValue1 = _registerName1("stringValue"); int _objc_msgSend_273( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherNumber, ) { - return __objc_msgSend_273( - obj, - sel, - otherNumber, - ); + return __objc_msgSend_273(obj, sel, otherNumber); } late final __objc_msgSend_273Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_273 = + __objc_msgSend_273Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); bool _objc_msgSend_274( @@ -7423,239 +9206,316 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_274( - obj, - sel, - number, - ); + return __objc_msgSend_274(obj, sel, number); } late final __objc_msgSend_274Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_274 = + __objc_msgSend_274Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_numberWithChar_1 = _registerName1("numberWithChar:"); - late final _sel_numberWithUnsignedChar_1 = - _registerName1("numberWithUnsignedChar:"); + late final _sel_numberWithUnsignedChar_1 = _registerName1( + "numberWithUnsignedChar:", + ); late final _sel_numberWithShort_1 = _registerName1("numberWithShort:"); - late final _sel_numberWithUnsignedShort_1 = - _registerName1("numberWithUnsignedShort:"); + late final _sel_numberWithUnsignedShort_1 = _registerName1( + "numberWithUnsignedShort:", + ); late final _sel_numberWithInt_1 = _registerName1("numberWithInt:"); - late final _sel_numberWithUnsignedInt_1 = - _registerName1("numberWithUnsignedInt:"); + late final _sel_numberWithUnsignedInt_1 = _registerName1( + "numberWithUnsignedInt:", + ); late final _sel_numberWithLong_1 = _registerName1("numberWithLong:"); - late final _sel_numberWithUnsignedLong_1 = - _registerName1("numberWithUnsignedLong:"); + late final _sel_numberWithUnsignedLong_1 = _registerName1( + "numberWithUnsignedLong:", + ); late final _sel_numberWithLongLong_1 = _registerName1("numberWithLongLong:"); - late final _sel_numberWithUnsignedLongLong_1 = - _registerName1("numberWithUnsignedLongLong:"); + late final _sel_numberWithUnsignedLongLong_1 = _registerName1( + "numberWithUnsignedLongLong:", + ); late final _sel_numberWithFloat_1 = _registerName1("numberWithFloat:"); late final _sel_numberWithDouble_1 = _registerName1("numberWithDouble:"); late final _sel_numberWithBool_1 = _registerName1("numberWithBool:"); late final _sel_numberWithInteger_1 = _registerName1("numberWithInteger:"); - late final _sel_numberWithUnsignedInteger_1 = - _registerName1("numberWithUnsignedInteger:"); + late final _sel_numberWithUnsignedInteger_1 = _registerName1( + "numberWithUnsignedInteger:", + ); late final _class_NSMutableArray1 = _getClass1("NSMutableArray"); late final _sel_addObject_1 = _registerName1("addObject:"); - late final _sel_insertObject_atIndex_1 = - _registerName1("insertObject:atIndex:"); + late final _sel_insertObject_atIndex_1 = _registerName1( + "insertObject:atIndex:", + ); void _objc_msgSend_275( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int index, ) { - return __objc_msgSend_275( - obj, - sel, - anObject, - index, - ); + return __objc_msgSend_275(obj, sel, anObject, index); } late final __objc_msgSend_275Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_275 = + __objc_msgSend_275Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_removeLastObject1 = _registerName1("removeLastObject"); - late final _sel_removeObjectAtIndex_1 = - _registerName1("removeObjectAtIndex:"); + late final _sel_removeObjectAtIndex_1 = _registerName1( + "removeObjectAtIndex:", + ); void _objc_msgSend_276( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_276( - obj, - sel, - index, - ); + return __objc_msgSend_276(obj, sel, index); } late final __objc_msgSend_276Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_replaceObjectAtIndex_withObject_1 = - _registerName1("replaceObjectAtIndex:withObject:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_276 = + __objc_msgSend_276Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); + + late final _sel_replaceObjectAtIndex_withObject_1 = _registerName1( + "replaceObjectAtIndex:withObject:", + ); void _objc_msgSend_277( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer anObject, ) { - return __objc_msgSend_277( - obj, - sel, - index, - anObject, - ); + return __objc_msgSend_277(obj, sel, index, anObject); } late final __objc_msgSend_277Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_277 = + __objc_msgSend_277Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ) + >(); late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); - late final _sel_addObjectsFromArray_1 = - _registerName1("addObjectsFromArray:"); + late final _sel_addObjectsFromArray_1 = _registerName1( + "addObjectsFromArray:", + ); void _objc_msgSend_278( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_278( - obj, - sel, - otherArray, - ); + return __objc_msgSend_278(obj, sel, otherArray); } late final __objc_msgSend_278Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = - _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_278 = + __objc_msgSend_278Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = _registerName1( + "exchangeObjectAtIndex:withObjectAtIndex:", + ); void _objc_msgSend_279( ffi.Pointer obj, ffi.Pointer sel, int idx1, int idx2, ) { - return __objc_msgSend_279( - obj, - sel, - idx1, - idx2, - ); + return __objc_msgSend_279(obj, sel, idx1, idx2); } late final __objc_msgSend_279Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_279 = + __objc_msgSend_279Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ) + >(); late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); - late final _sel_removeObject_inRange_1 = - _registerName1("removeObject:inRange:"); + late final _sel_removeObject_inRange_1 = _registerName1( + "removeObject:inRange:", + ); void _objc_msgSend_280( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, _NSRange range, ) { - return __objc_msgSend_280( - obj, - sel, - anObject, - range, - ); + return __objc_msgSend_280(obj, sel, anObject, range); } late final __objc_msgSend_280Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_280 = + __objc_msgSend_280Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); late final _sel_removeObject_1 = _registerName1("removeObject:"); - late final _sel_removeObjectIdenticalTo_inRange_1 = - _registerName1("removeObjectIdenticalTo:inRange:"); - late final _sel_removeObjectIdenticalTo_1 = - _registerName1("removeObjectIdenticalTo:"); - late final _sel_removeObjectsFromIndices_numIndices_1 = - _registerName1("removeObjectsFromIndices:numIndices:"); + late final _sel_removeObjectIdenticalTo_inRange_1 = _registerName1( + "removeObjectIdenticalTo:inRange:", + ); + late final _sel_removeObjectIdenticalTo_1 = _registerName1( + "removeObjectIdenticalTo:", + ); + late final _sel_removeObjectsFromIndices_numIndices_1 = _registerName1( + "removeObjectsFromIndices:numIndices:", + ); void _objc_msgSend_281( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indices, int cnt, ) { - return __objc_msgSend_281( - obj, - sel, - indices, - cnt, - ); + return __objc_msgSend_281(obj, sel, indices, cnt); } late final __objc_msgSend_281Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_281 = + __objc_msgSend_281Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_removeObjectsInArray_1 = - _registerName1("removeObjectsInArray:"); - late final _sel_removeObjectsInRange_1 = - _registerName1("removeObjectsInRange:"); + int, + ) + >(); + + late final _sel_removeObjectsInArray_1 = _registerName1( + "removeObjectsInArray:", + ); + late final _sel_removeObjectsInRange_1 = _registerName1( + "removeObjectsInRange:", + ); void _objc_msgSend_282( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_282( - obj, - sel, - range, - ); + return __objc_msgSend_282(obj, sel, range); } late final __objc_msgSend_282Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange) + > + >('objc_msgSend'); + late final __objc_msgSend_282 = + __objc_msgSend_282Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ) + >(); late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); @@ -7666,212 +9526,286 @@ class NativeMacOsFramework { ffi.Pointer otherArray, _NSRange otherRange, ) { - return __objc_msgSend_283( - obj, - sel, - range, - otherArray, - otherRange, - ); + return __objc_msgSend_283(obj, sel, range, otherArray, otherRange); } late final __objc_msgSend_283Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer, _NSRange)>(); - - late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = - _registerName1("replaceObjectsInRange:withObjectsFromArray:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_283 = + __objc_msgSend_283Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + _NSRange, + ) + >(); + + late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1( + "replaceObjectsInRange:withObjectsFromArray:", + ); void _objc_msgSend_284( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer otherArray, ) { - return __objc_msgSend_284( - obj, - sel, - range, - otherArray, - ); + return __objc_msgSend_284(obj, sel, range, otherArray); } late final __objc_msgSend_284Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_284 = + __objc_msgSend_284Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ) + >(); late final _sel_setArray_1 = _registerName1("setArray:"); - late final _sel_sortUsingFunction_context_1 = - _registerName1("sortUsingFunction:context:"); + late final _sel_sortUsingFunction_context_1 = _registerName1( + "sortUsingFunction:context:", + ); void _objc_msgSend_285( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + compare, ffi.Pointer context, ) { - return __objc_msgSend_285( - obj, - sel, - compare, - context, - ); + return __objc_msgSend_285(obj, sel, compare, context); } late final __objc_msgSend_285Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_285 = + __objc_msgSend_285Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >, + ffi.Pointer, + ) + >(); late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); - late final _sel_insertObjects_atIndexes_1 = - _registerName1("insertObjects:atIndexes:"); + late final _sel_insertObjects_atIndexes_1 = _registerName1( + "insertObjects:atIndexes:", + ); void _objc_msgSend_286( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer indexes, ) { - return __objc_msgSend_286( - obj, - sel, - objects, - indexes, - ); + return __objc_msgSend_286(obj, sel, objects, indexes); } late final __objc_msgSend_286Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_286 = + __objc_msgSend_286Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_removeObjectsAtIndexes_1 = - _registerName1("removeObjectsAtIndexes:"); + late final _sel_removeObjectsAtIndexes_1 = _registerName1( + "removeObjectsAtIndexes:", + ); void _objc_msgSend_287( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_287( - obj, - sel, - indexes, - ); + return __objc_msgSend_287(obj, sel, indexes); } late final __objc_msgSend_287Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_replaceObjectsAtIndexes_withObjects_1 = - _registerName1("replaceObjectsAtIndexes:withObjects:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_287 = + __objc_msgSend_287Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_replaceObjectsAtIndexes_withObjects_1 = _registerName1( + "replaceObjectsAtIndexes:withObjects:", + ); void _objc_msgSend_288( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ffi.Pointer objects, ) { - return __objc_msgSend_288( - obj, - sel, - indexes, - objects, - ); + return __objc_msgSend_288(obj, sel, indexes, objects); } late final __objc_msgSend_288Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_288 = + __objc_msgSend_288Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setObject_atIndexedSubscript_1 = - _registerName1("setObject:atIndexedSubscript:"); - late final _sel_sortUsingComparator_1 = - _registerName1("sortUsingComparator:"); + ffi.Pointer, + ) + >(); + + late final _sel_setObject_atIndexedSubscript_1 = _registerName1( + "setObject:atIndexedSubscript:", + ); + late final _sel_sortUsingComparator_1 = _registerName1( + "sortUsingComparator:", + ); void _objc_msgSend_289( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_289( - obj, - sel, - cmptr, - ); + return __objc_msgSend_289(obj, sel, cmptr); } late final __objc_msgSend_289Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_sortWithOptions_usingComparator_1 = - _registerName1("sortWithOptions:usingComparator:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_289 = + __objc_msgSend_289Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_sortWithOptions_usingComparator_1 = _registerName1( + "sortWithOptions:usingComparator:", + ); void _objc_msgSend_290( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_290( - obj, - sel, - opts, - cmptr, - ); + return __objc_msgSend_290(obj, sel, opts, cmptr); } late final __objc_msgSend_290Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_290 = + __objc_msgSend_290Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); ffi.Pointer _objc_msgSend_291( @@ -7879,40 +9813,54 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_291( - obj, - sel, - path, - ); + return __objc_msgSend_291(obj, sel, path); } late final __objc_msgSend_291Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_291 = + __objc_msgSend_291Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); ffi.Pointer _objc_msgSend_292( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_292( - obj, - sel, - url, - ); + return __objc_msgSend_292(obj, sel, url); } late final __objc_msgSend_292Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_292 = + __objc_msgSend_292Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_applyDifference_1 = _registerName1("applyDifference:"); late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); @@ -7922,44 +9870,59 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_293( - obj, - sel, - ); + return __objc_msgSend_293(obj, sel); } late final __objc_msgSend_293Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_293 = + __objc_msgSend_293Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_progressWithTotalUnitCount_1 = - _registerName1("progressWithTotalUnitCount:"); + late final _sel_progressWithTotalUnitCount_1 = _registerName1( + "progressWithTotalUnitCount:", + ); ffi.Pointer _objc_msgSend_294( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_294( - obj, - sel, - unitCount, - ); + return __objc_msgSend_294(obj, sel, unitCount); } late final __objc_msgSend_294Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_294 = + __objc_msgSend_294Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_discreteProgressWithTotalUnitCount_1 = - _registerName1("discreteProgressWithTotalUnitCount:"); + late final _sel_discreteProgressWithTotalUnitCount_1 = _registerName1( + "discreteProgressWithTotalUnitCount:", + ); late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); ffi.Pointer _objc_msgSend_295( @@ -7979,64 +9942,86 @@ class NativeMacOsFramework { } late final __objc_msgSend_295Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ffi.Int64, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_295 = + __objc_msgSend_295Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int64, + int, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); + int, + ) + >(); - late final _sel_initWithParent_userInfo_1 = - _registerName1("initWithParent:userInfo:"); + late final _sel_initWithParent_userInfo_1 = _registerName1( + "initWithParent:userInfo:", + ); instancetype _objc_msgSend_296( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer parentProgressOrNil, ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_296( - obj, - sel, - parentProgressOrNil, - userInfoOrNil, - ); + return __objc_msgSend_296(obj, sel, parentProgressOrNil, userInfoOrNil); } late final __objc_msgSend_296Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_296 = + __objc_msgSend_296Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_becomeCurrentWithPendingUnitCount_1 = - _registerName1("becomeCurrentWithPendingUnitCount:"); + late final _sel_becomeCurrentWithPendingUnitCount_1 = _registerName1( + "becomeCurrentWithPendingUnitCount:", + ); void _objc_msgSend_297( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_297( - obj, - sel, - unitCount, - ); + return __objc_msgSend_297(obj, sel, unitCount); } late final __objc_msgSend_297Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_297 = + __objc_msgSend_297Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); @@ -8046,64 +10031,79 @@ class NativeMacOsFramework { int unitCount, ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_298( - obj, - sel, - unitCount, - work, - ); + return __objc_msgSend_298(obj, sel, unitCount, work); } late final __objc_msgSend_298Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_298 = + __objc_msgSend_298Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_resignCurrent1 = _registerName1("resignCurrent"); - late final _sel_addChild_withPendingUnitCount_1 = - _registerName1("addChild:withPendingUnitCount:"); + late final _sel_addChild_withPendingUnitCount_1 = _registerName1( + "addChild:withPendingUnitCount:", + ); void _objc_msgSend_299( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int inUnitCount, ) { - return __objc_msgSend_299( - obj, - sel, - child, - inUnitCount, - ); + return __objc_msgSend_299(obj, sel, child, inUnitCount); } late final __objc_msgSend_299Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_299 = + __objc_msgSend_299Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_300( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_300( - obj, - sel, - ); + int _objc_msgSend_300(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_300(obj, sel); } late final __objc_msgSend_300Ptr = _lookup< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int64 Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_300 = + __objc_msgSend_300Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); void _objc_msgSend_301( @@ -8111,51 +10111,67 @@ class NativeMacOsFramework { ffi.Pointer sel, int value, ) { - return __objc_msgSend_301( - obj, - sel, - value, - ); + return __objc_msgSend_301(obj, sel, value); } late final __objc_msgSend_301Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_301 = + __objc_msgSend_301Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, int) + >(); late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); - late final _sel_setCompletedUnitCount_1 = - _registerName1("setCompletedUnitCount:"); - late final _sel_localizedDescription1 = - _registerName1("localizedDescription"); - late final _sel_setLocalizedDescription_1 = - _registerName1("setLocalizedDescription:"); + late final _sel_setCompletedUnitCount_1 = _registerName1( + "setCompletedUnitCount:", + ); + late final _sel_localizedDescription1 = _registerName1( + "localizedDescription", + ); + late final _sel_setLocalizedDescription_1 = _registerName1( + "setLocalizedDescription:", + ); void _objc_msgSend_302( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_302( - obj, - sel, - value, - ); + return __objc_msgSend_302(obj, sel, value); } late final __objc_msgSend_302Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_localizedAdditionalDescription1 = - _registerName1("localizedAdditionalDescription"); - late final _sel_setLocalizedAdditionalDescription_1 = - _registerName1("setLocalizedAdditionalDescription:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_302 = + __objc_msgSend_302Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_localizedAdditionalDescription1 = _registerName1( + "localizedAdditionalDescription", + ); + late final _sel_setLocalizedAdditionalDescription_1 = _registerName1( + "setLocalizedAdditionalDescription:", + ); late final _sel_isCancellable1 = _registerName1("isCancellable"); late final _sel_setCancellable_1 = _registerName1("setCancellable:"); void _objc_msgSend_303( @@ -8163,19 +10179,19 @@ class NativeMacOsFramework { ffi.Pointer sel, bool value, ) { - return __objc_msgSend_303( - obj, - sel, - value, - ); + return __objc_msgSend_303(obj, sel, value); } late final __objc_msgSend_303Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool)>(); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool) + > + >('objc_msgSend'); + late final __objc_msgSend_303 = + __objc_msgSend_303Ptr + .asFunction< + void Function(ffi.Pointer, ffi.Pointer, bool) + >(); late final _sel_isPausable1 = _registerName1("isPausable"); late final _sel_setPausable_1 = _registerName1("setPausable:"); @@ -8186,48 +10202,63 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_304( - obj, - sel, - ); + return __objc_msgSend_304(obj, sel); } late final __objc_msgSend_304Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_304 = + __objc_msgSend_304Ptr + .asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_setCancellationHandler_1 = - _registerName1("setCancellationHandler:"); + late final _sel_setCancellationHandler_1 = _registerName1( + "setCancellationHandler:", + ); void _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_305( - obj, - sel, - value, - ); + return __objc_msgSend_305(obj, sel, value); } late final __objc_msgSend_305Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_305 = + __objc_msgSend_305Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_pausingHandler1 = _registerName1("pausingHandler"); late final _sel_setPausingHandler_1 = _registerName1("setPausingHandler:"); late final _sel_resumingHandler1 = _registerName1("resumingHandler"); late final _sel_setResumingHandler_1 = _registerName1("setResumingHandler:"); - late final _sel_setUserInfoObject_forKey_1 = - _registerName1("setUserInfoObject:forKey:"); + late final _sel_setUserInfoObject_forKey_1 = _registerName1( + "setUserInfoObject:forKey:", + ); late final _sel_isIndeterminate1 = _registerName1("isIndeterminate"); late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); late final _sel_isFinished1 = _registerName1("isFinished"); @@ -8237,71 +10268,93 @@ class NativeMacOsFramework { late final _sel_userInfo1 = _registerName1("userInfo"); late final _sel_kind1 = _registerName1("kind"); late final _sel_setKind_1 = _registerName1("setKind:"); - late final _sel_estimatedTimeRemaining1 = - _registerName1("estimatedTimeRemaining"); + late final _sel_estimatedTimeRemaining1 = _registerName1( + "estimatedTimeRemaining", + ); ffi.Pointer _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_306( - obj, - sel, - ); + return __objc_msgSend_306(obj, sel); } late final __objc_msgSend_306Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_306 = + __objc_msgSend_306Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_setEstimatedTimeRemaining_1 = - _registerName1("setEstimatedTimeRemaining:"); + late final _sel_setEstimatedTimeRemaining_1 = _registerName1( + "setEstimatedTimeRemaining:", + ); void _objc_msgSend_307( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_307( - obj, - sel, - value, - ); + return __objc_msgSend_307(obj, sel, value); } late final __objc_msgSend_307Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_307 = + __objc_msgSend_307Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_throughput1 = _registerName1("throughput"); late final _sel_setThroughput_1 = _registerName1("setThroughput:"); late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); - late final _sel_setFileOperationKind_1 = - _registerName1("setFileOperationKind:"); + late final _sel_setFileOperationKind_1 = _registerName1( + "setFileOperationKind:", + ); late final _sel_fileURL1 = _registerName1("fileURL"); ffi.Pointer _objc_msgSend_308( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_308( - obj, - sel, - ); + return __objc_msgSend_308(obj, sel); } late final __objc_msgSend_308Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_308 = + __objc_msgSend_308Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_setFileURL_1 = _registerName1("setFileURL:"); void _objc_msgSend_309( @@ -8309,26 +10362,34 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_309( - obj, - sel, - value, - ); + return __objc_msgSend_309(obj, sel, value); } late final __objc_msgSend_309Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_309 = + __objc_msgSend_309Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); - late final _sel_setFileCompletedCount_1 = - _registerName1("setFileCompletedCount:"); + late final _sel_setFileCompletedCount_1 = _registerName1( + "setFileCompletedCount:", + ); late final _sel_publish1 = _registerName1("publish"); late final _sel_unpublish1 = _registerName1("unpublish"); late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = @@ -8339,33 +10400,36 @@ class NativeMacOsFramework { ffi.Pointer url, ffi.Pointer<_ObjCBlock> publishingHandler, ) { - return __objc_msgSend_310( - obj, - sel, - url, - publishingHandler, - ); + return __objc_msgSend_310(obj, sel, url, publishingHandler); } late final __objc_msgSend_310Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_310 = + __objc_msgSend_310Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); late final _sel_isOld1 = _registerName1("isOld"); late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( - "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); + "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:", + ); void _objc_msgSend_311( ffi.Pointer obj, ffi.Pointer sel, @@ -8383,20 +10447,32 @@ class NativeMacOsFramework { } late final __objc_msgSend_311Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_311 = + __objc_msgSend_311Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = _registerName1( - "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); + "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:", + ); void _objc_msgSend_312( ffi.Pointer obj, ffi.Pointer sel, @@ -8416,188 +10492,237 @@ class NativeMacOsFramework { } late final __objc_msgSend_312Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_312 = + __objc_msgSend_312Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_registeredTypeIdentifiers1 = - _registerName1("registeredTypeIdentifiers"); - late final _sel_registeredTypeIdentifiersWithFileOptions_1 = - _registerName1("registeredTypeIdentifiersWithFileOptions:"); + int, + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_registeredTypeIdentifiers1 = _registerName1( + "registeredTypeIdentifiers", + ); + late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1( + "registeredTypeIdentifiersWithFileOptions:", + ); ffi.Pointer _objc_msgSend_313( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_313( - obj, - sel, - fileOptions, - ); + return __objc_msgSend_313(obj, sel, fileOptions); } late final __objc_msgSend_313Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_313 = + __objc_msgSend_313Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); - late final _sel_hasItemConformingToTypeIdentifier_1 = - _registerName1("hasItemConformingToTypeIdentifier:"); + late final _sel_hasItemConformingToTypeIdentifier_1 = _registerName1( + "hasItemConformingToTypeIdentifier:", + ); late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( - "hasRepresentationConformingToTypeIdentifier:fileOptions:"); + "hasRepresentationConformingToTypeIdentifier:fileOptions:", + ); bool _objc_msgSend_314( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_314( - obj, - sel, - typeIdentifier, - fileOptions, - ); + return __objc_msgSend_314(obj, sel, typeIdentifier, fileOptions); } late final __objc_msgSend_314Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_314 = + __objc_msgSend_314Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( - "loadDataRepresentationForTypeIdentifier:completionHandler:"); + "loadDataRepresentationForTypeIdentifier:completionHandler:", + ); ffi.Pointer _objc_msgSend_315( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_315( - obj, - sel, - typeIdentifier, - completionHandler, - ); + return __objc_msgSend_315(obj, sel, typeIdentifier, completionHandler); } late final __objc_msgSend_315Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_315 = + __objc_msgSend_315Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( - "loadFileRepresentationForTypeIdentifier:completionHandler:"); + "loadFileRepresentationForTypeIdentifier:completionHandler:", + ); ffi.Pointer _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_316( - obj, - sel, - typeIdentifier, - completionHandler, - ); + return __objc_msgSend_316(obj, sel, typeIdentifier, completionHandler); } late final __objc_msgSend_316Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_316 = + __objc_msgSend_316Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( - "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); + "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:", + ); ffi.Pointer _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_317( - obj, - sel, - typeIdentifier, - completionHandler, - ); + return __objc_msgSend_317(obj, sel, typeIdentifier, completionHandler); } late final __objc_msgSend_317Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_317 = + __objc_msgSend_317Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_suggestedName1 = _registerName1("suggestedName"); late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); late final _sel_initWithObject_1 = _registerName1("initWithObject:"); - late final _sel_registerObject_visibility_1 = - _registerName1("registerObject:visibility:"); + late final _sel_registerObject_visibility_1 = _registerName1( + "registerObject:visibility:", + ); void _objc_msgSend_318( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_318( - obj, - sel, - object, - visibility, - ); + return __objc_msgSend_318(obj, sel, object, visibility); } late final __objc_msgSend_318Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_318 = + __objc_msgSend_318Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); @@ -8608,87 +10733,103 @@ class NativeMacOsFramework { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_319( - obj, - sel, - aClass, - visibility, - loadHandler, - ); + return __objc_msgSend_319(obj, sel, aClass, visibility, loadHandler); } late final __objc_msgSend_319Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_319 = + __objc_msgSend_319Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_canLoadObjectOfClass_1 = - _registerName1("canLoadObjectOfClass:"); - late final _sel_loadObjectOfClass_completionHandler_1 = - _registerName1("loadObjectOfClass:completionHandler:"); + int, + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_canLoadObjectOfClass_1 = _registerName1( + "canLoadObjectOfClass:", + ); + late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1( + "loadObjectOfClass:completionHandler:", + ); ffi.Pointer _objc_msgSend_320( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_320( - obj, - sel, - aClass, - completionHandler, - ); + return __objc_msgSend_320(obj, sel, aClass, completionHandler); } late final __objc_msgSend_320Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_320 = + __objc_msgSend_320Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_initWithItem_typeIdentifier_1 = - _registerName1("initWithItem:typeIdentifier:"); - late final _sel_registerItemForTypeIdentifier_loadHandler_1 = - _registerName1("registerItemForTypeIdentifier:loadHandler:"); + ffi.Pointer<_ObjCBlock>, + ) + >(); + + late final _sel_initWithItem_typeIdentifier_1 = _registerName1( + "initWithItem:typeIdentifier:", + ); + late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1( + "registerItemForTypeIdentifier:loadHandler:", + ); void _objc_msgSend_321( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_321( - obj, - sel, - typeIdentifier, - loadHandler, - ); + return __objc_msgSend_321(obj, sel, typeIdentifier, loadHandler); } late final __objc_msgSend_321Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_321 = + __objc_msgSend_321Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); @@ -8709,61 +10850,82 @@ class NativeMacOsFramework { } late final __objc_msgSend_322Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_322 = + __objc_msgSend_322Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); ffi.Pointer<_ObjCBlock> _objc_msgSend_323( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_323( - obj, - sel, - ); + return __objc_msgSend_323(obj, sel); } late final __objc_msgSend_323Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_323 = + __objc_msgSend_323Ptr + .asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_setPreviewImageHandler_1 = - _registerName1("setPreviewImageHandler:"); + late final _sel_setPreviewImageHandler_1 = _registerName1( + "setPreviewImageHandler:", + ); void _objc_msgSend_324( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_324( - obj, - sel, - value, - ); + return __objc_msgSend_324(obj, sel, value); } late final __objc_msgSend_324Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_324 = + __objc_msgSend_324Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); @@ -8773,96 +10935,127 @@ class NativeMacOsFramework { ffi.Pointer options, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_325( - obj, - sel, - options, - completionHandler, - ); + return __objc_msgSend_325(obj, sel, options, completionHandler); } late final __objc_msgSend_325Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_325 = + __objc_msgSend_325Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _class_NSMutableString1 = _getClass1("NSMutableString"); - late final _sel_replaceCharactersInRange_withString_1 = - _registerName1("replaceCharactersInRange:withString:"); + late final _sel_replaceCharactersInRange_withString_1 = _registerName1( + "replaceCharactersInRange:withString:", + ); void _objc_msgSend_326( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_326( - obj, - sel, - range, - aString, - ); + return __objc_msgSend_326(obj, sel, range, aString); } late final __objc_msgSend_326Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>(); - - late final _sel_insertString_atIndex_1 = - _registerName1("insertString:atIndex:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_326 = + __objc_msgSend_326Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ) + >(); + + late final _sel_insertString_atIndex_1 = _registerName1( + "insertString:atIndex:", + ); void _objc_msgSend_327( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_327( - obj, - sel, - aString, - loc, - ); + return __objc_msgSend_327(obj, sel, aString, loc); } late final __objc_msgSend_327Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_deleteCharactersInRange_1 = - _registerName1("deleteCharactersInRange:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_327 = + __objc_msgSend_327Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); + + late final _sel_deleteCharactersInRange_1 = _registerName1( + "deleteCharactersInRange:", + ); late final _sel_appendString_1 = _registerName1("appendString:"); void _objc_msgSend_328( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, ) { - return __objc_msgSend_328( - obj, - sel, - aString, - ); + return __objc_msgSend_328(obj, sel, aString); } late final __objc_msgSend_328Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_328 = + __objc_msgSend_328Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_appendFormat_1 = _registerName1("appendFormat:"); late final _sel_setString_1 = _registerName1("setString:"); @@ -8887,20 +11080,33 @@ class NativeMacOsFramework { } late final __objc_msgSend_329Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_329 = + __objc_msgSend_329Ptr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + int, + _NSRange, + ) + >(); - late final _sel_applyTransform_reverse_range_updatedRange_1 = - _registerName1("applyTransform:reverse:range:updatedRange:"); + late final _sel_applyTransform_reverse_range_updatedRange_1 = _registerName1( + "applyTransform:reverse:range:updatedRange:", + ); bool _objc_msgSend_330( ffi.Pointer obj, ffi.Pointer sel, @@ -8920,37 +11126,56 @@ class NativeMacOsFramework { } late final __objc_msgSend_330Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + _NSRange, + ffi.Pointer<_NSRange>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_330 = + __objc_msgSend_330Ptr + .asFunction< + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Bool, + bool, _NSRange, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); + ffi.Pointer<_NSRange>, + ) + >(); ffi.Pointer _objc_msgSend_331( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_331( - obj, - sel, - capacity, - ); + return __objc_msgSend_331(obj, sel, capacity); } late final __objc_msgSend_331Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_331 = + __objc_msgSend_331Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ) + >(); late final _sel_stringWithCapacity_1 = _registerName1("stringWithCapacity:"); late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); @@ -8962,115 +11187,153 @@ class NativeMacOsFramework { ffi.Pointer anObject, ffi.Pointer aKey, ) { - return __objc_msgSend_332( - obj, - sel, - anObject, - aKey, - ); + return __objc_msgSend_332(obj, sel, anObject, aKey); } late final __objc_msgSend_332Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_332 = + __objc_msgSend_332Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_addEntriesFromDictionary_1 = - _registerName1("addEntriesFromDictionary:"); + late final _sel_addEntriesFromDictionary_1 = _registerName1( + "addEntriesFromDictionary:", + ); void _objc_msgSend_333( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherDictionary, ) { - return __objc_msgSend_333( - obj, - sel, - otherDictionary, - ); + return __objc_msgSend_333(obj, sel, otherDictionary); } late final __objc_msgSend_333Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeObjectsForKeys_1 = - _registerName1("removeObjectsForKeys:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_333 = + __objc_msgSend_333Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_removeObjectsForKeys_1 = _registerName1( + "removeObjectsForKeys:", + ); late final _sel_setDictionary_1 = _registerName1("setDictionary:"); - late final _sel_setObject_forKeyedSubscript_1 = - _registerName1("setObject:forKeyedSubscript:"); - late final _sel_dictionaryWithCapacity_1 = - _registerName1("dictionaryWithCapacity:"); + late final _sel_setObject_forKeyedSubscript_1 = _registerName1( + "setObject:forKeyedSubscript:", + ); + late final _sel_dictionaryWithCapacity_1 = _registerName1( + "dictionaryWithCapacity:", + ); ffi.Pointer _objc_msgSend_334( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_334( - obj, - sel, - path, - ); + return __objc_msgSend_334(obj, sel, path); } late final __objc_msgSend_334Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_334 = + __objc_msgSend_334Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); ffi.Pointer _objc_msgSend_335( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_335( - obj, - sel, - url, - ); + return __objc_msgSend_335(obj, sel, url); } late final __objc_msgSend_335Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dictionaryWithSharedKeySet_1 = - _registerName1("dictionaryWithSharedKeySet:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_335 = + __objc_msgSend_335Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_dictionaryWithSharedKeySet_1 = _registerName1( + "dictionaryWithSharedKeySet:", + ); ffi.Pointer _objc_msgSend_336( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyset, ) { - return __objc_msgSend_336( - obj, - sel, - keyset, - ); + return __objc_msgSend_336(obj, sel, keyset); } late final __objc_msgSend_336Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_336 = + __objc_msgSend_336Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _class_NSMutableSet1 = _getClass1("NSMutableSet"); late final _sel_intersectSet_1 = _registerName1("intersectSet:"); @@ -9079,20 +11342,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer otherSet, ) { - return __objc_msgSend_337( - obj, - sel, - otherSet, - ); + return __objc_msgSend_337(obj, sel, otherSet); } late final __objc_msgSend_337Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_337 = + __objc_msgSend_337Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_minusSet_1 = _registerName1("minusSet:"); late final _sel_unionSet_1 = _registerName1("unionSet:"); @@ -9101,8 +11371,9 @@ class NativeMacOsFramework { late final _class_NSNotification1 = _getClass1("NSNotification"); late final _sel_name1 = _registerName1("name"); late final _sel_object1 = _registerName1("object"); - late final _sel_initWithName_object_userInfo_1 = - _registerName1("initWithName:object:userInfo:"); + late final _sel_initWithName_object_userInfo_1 = _registerName1( + "initWithName:object:userInfo:", + ); instancetype _objc_msgSend_338( ffi.Pointer obj, ffi.Pointer sel, @@ -9110,54 +11381,63 @@ class NativeMacOsFramework { ffi.Pointer object, ffi.Pointer userInfo, ) { - return __objc_msgSend_338( - obj, - sel, - name, - object, - userInfo, - ); + return __objc_msgSend_338(obj, sel, name, object, userInfo); } late final __objc_msgSend_338Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_338 = + __objc_msgSend_338Ptr + .asFunction< + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_notificationWithName_object_1 = - _registerName1("notificationWithName:object:"); - late final _sel_notificationWithName_object_userInfo_1 = - _registerName1("notificationWithName:object:userInfo:"); + ffi.Pointer, + ) + >(); + + late final _sel_notificationWithName_object_1 = _registerName1( + "notificationWithName:object:", + ); + late final _sel_notificationWithName_object_userInfo_1 = _registerName1( + "notificationWithName:object:userInfo:", + ); late final _class_NSBundle1 = _getClass1("NSBundle"); late final _sel_mainBundle1 = _registerName1("mainBundle"); ffi.Pointer _objc_msgSend_339( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_339( - obj, - sel, - ); + return __objc_msgSend_339(obj, sel); } late final __objc_msgSend_339Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_339 = + __objc_msgSend_339Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_bundleWithPath_1 = _registerName1("bundleWithPath:"); late final _sel_initWithPath_1 = _registerName1("initWithPath:"); @@ -9169,97 +11449,129 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_340( - obj, - sel, - aClass, - ); + return __objc_msgSend_340(obj, sel, aClass); } late final __objc_msgSend_340Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_bundleWithIdentifier_1 = - _registerName1("bundleWithIdentifier:"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_340 = + __objc_msgSend_340Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_bundleWithIdentifier_1 = _registerName1( + "bundleWithIdentifier:", + ); ffi.Pointer _objc_msgSend_341( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_341( - obj, - sel, - identifier, - ); + return __objc_msgSend_341(obj, sel, identifier); } late final __objc_msgSend_341Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_341 = + __objc_msgSend_341Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_allBundles1 = _registerName1("allBundles"); late final _sel_allFrameworks1 = _registerName1("allFrameworks"); late final _sel_isLoaded1 = _registerName1("isLoaded"); late final _sel_unload1 = _registerName1("unload"); - late final _sel_preflightAndReturnError_1 = - _registerName1("preflightAndReturnError:"); + late final _sel_preflightAndReturnError_1 = _registerName1( + "preflightAndReturnError:", + ); bool _objc_msgSend_342( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_342( - obj, - sel, - error, - ); + return __objc_msgSend_342(obj, sel, error); } late final __objc_msgSend_342Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_342 = + __objc_msgSend_342Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + >(); late final _sel_loadAndReturnError_1 = _registerName1("loadAndReturnError:"); late final _sel_bundleURL1 = _registerName1("bundleURL"); late final _sel_resourceURL1 = _registerName1("resourceURL"); late final _sel_executableURL1 = _registerName1("executableURL"); - late final _sel_URLForAuxiliaryExecutable_1 = - _registerName1("URLForAuxiliaryExecutable:"); + late final _sel_URLForAuxiliaryExecutable_1 = _registerName1( + "URLForAuxiliaryExecutable:", + ); ffi.Pointer _objc_msgSend_343( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer executableName, ) { - return __objc_msgSend_343( - obj, - sel, - executableName, - ); + return __objc_msgSend_343(obj, sel, executableName); } late final __objc_msgSend_343Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_privateFrameworksURL1 = - _registerName1("privateFrameworksURL"); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_343 = + __objc_msgSend_343Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_privateFrameworksURL1 = _registerName1( + "privateFrameworksURL", + ); late final _sel_sharedFrameworksURL1 = _registerName1("sharedFrameworksURL"); late final _sel_sharedSupportURL1 = _registerName1("sharedSupportURL"); late final _sel_builtInPlugInsURL1 = _registerName1("builtInPlugInsURL"); @@ -9267,17 +11579,21 @@ class NativeMacOsFramework { late final _sel_bundlePath1 = _registerName1("bundlePath"); late final _sel_resourcePath1 = _registerName1("resourcePath"); late final _sel_executablePath1 = _registerName1("executablePath"); - late final _sel_pathForAuxiliaryExecutable_1 = - _registerName1("pathForAuxiliaryExecutable:"); - late final _sel_privateFrameworksPath1 = - _registerName1("privateFrameworksPath"); - late final _sel_sharedFrameworksPath1 = - _registerName1("sharedFrameworksPath"); + late final _sel_pathForAuxiliaryExecutable_1 = _registerName1( + "pathForAuxiliaryExecutable:", + ); + late final _sel_privateFrameworksPath1 = _registerName1( + "privateFrameworksPath", + ); + late final _sel_sharedFrameworksPath1 = _registerName1( + "sharedFrameworksPath", + ); late final _sel_sharedSupportPath1 = _registerName1("sharedSupportPath"); late final _sel_builtInPlugInsPath1 = _registerName1("builtInPlugInsPath"); late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = _registerName1( - "URLForResource:withExtension:subdirectory:inBundleWithURL:"); + "URLForResource:withExtension:subdirectory:inBundleWithURL:", + ); ffi.Pointer _objc_msgSend_344( ffi.Pointer obj, ffi.Pointer sel, @@ -9286,37 +11602,38 @@ class NativeMacOsFramework { ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_344( - obj, - sel, - name, - ext, - subpath, - bundleURL, - ); + return __objc_msgSend_344(obj, sel, name, ext, subpath, bundleURL); } late final __objc_msgSend_344Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_344 = + __objc_msgSend_344Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = _registerName1( - "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); + "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:", + ); ffi.Pointer _objc_msgSend_345( ffi.Pointer obj, ffi.Pointer sel, @@ -9324,63 +11641,68 @@ class NativeMacOsFramework { ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_345( - obj, - sel, - ext, - subpath, - bundleURL, - ); + return __objc_msgSend_345(obj, sel, ext, subpath, bundleURL); } late final __objc_msgSend_345Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_345 = + __objc_msgSend_345Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_URLForResource_withExtension_1 = - _registerName1("URLForResource:withExtension:"); + late final _sel_URLForResource_withExtension_1 = _registerName1( + "URLForResource:withExtension:", + ); ffi.Pointer _objc_msgSend_346( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ) { - return __objc_msgSend_346( - obj, - sel, - name, - ext, - ); + return __objc_msgSend_346(obj, sel, name, ext); } late final __objc_msgSend_346Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_346 = + __objc_msgSend_346Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_URLForResource_withExtension_subdirectory_1 = - _registerName1("URLForResource:withExtension:subdirectory:"); + late final _sel_URLForResource_withExtension_subdirectory_1 = _registerName1( + "URLForResource:withExtension:subdirectory:", + ); ffi.Pointer _objc_msgSend_347( ffi.Pointer obj, ffi.Pointer sel, @@ -9388,30 +11710,31 @@ class NativeMacOsFramework { ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_347( - obj, - sel, - name, - ext, - subpath, - ); + return __objc_msgSend_347(obj, sel, name, ext, subpath); } late final __objc_msgSend_347Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_347 = + __objc_msgSend_347Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_URLForResource_withExtension_subdirectory_localization_1 = _registerName1("URLForResource:withExtension:subdirectory:localization:"); @@ -9423,67 +11746,71 @@ class NativeMacOsFramework { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_348( - obj, - sel, - name, - ext, - subpath, - localizationName, - ); + return __objc_msgSend_348(obj, sel, name, ext, subpath, localizationName); } late final __objc_msgSend_348Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_348 = + __objc_msgSend_348Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_URLsForResourcesWithExtension_subdirectory_1 = - _registerName1("URLsForResourcesWithExtension:subdirectory:"); + late final _sel_URLsForResourcesWithExtension_subdirectory_1 = _registerName1( + "URLsForResourcesWithExtension:subdirectory:", + ); ffi.Pointer _objc_msgSend_349( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_349( - obj, - sel, - ext, - subpath, - ); + return __objc_msgSend_349(obj, sel, ext, subpath); } late final __objc_msgSend_349Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_349 = + __objc_msgSend_349Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = _registerName1( - "URLsForResourcesWithExtension:subdirectory:localization:"); + "URLsForResourcesWithExtension:subdirectory:localization:", + ); ffi.Pointer _objc_msgSend_350( ffi.Pointer obj, ffi.Pointer sel, @@ -9491,33 +11818,35 @@ class NativeMacOsFramework { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_350( - obj, - sel, - ext, - subpath, - localizationName, - ); + return __objc_msgSend_350(obj, sel, ext, subpath, localizationName); } late final __objc_msgSend_350Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_350 = + __objc_msgSend_350Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); - late final _sel_pathForResource_ofType_inDirectory_1 = - _registerName1("pathForResource:ofType:inDirectory:"); + late final _sel_pathForResource_ofType_inDirectory_1 = _registerName1( + "pathForResource:ofType:inDirectory:", + ); ffi.Pointer _objc_msgSend_351( ffi.Pointer obj, ffi.Pointer sel, @@ -9525,35 +11854,38 @@ class NativeMacOsFramework { ffi.Pointer ext, ffi.Pointer bundlePath, ) { - return __objc_msgSend_351( - obj, - sel, - name, - ext, - bundlePath, - ); + return __objc_msgSend_351(obj, sel, name, ext, bundlePath); } late final __objc_msgSend_351Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_351 = + __objc_msgSend_351Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_pathsForResourcesOfType_inDirectory_1 = - _registerName1("pathsForResourcesOfType:inDirectory:"); - late final _sel_pathForResource_ofType_1 = - _registerName1("pathForResource:ofType:"); + ffi.Pointer, + ) + >(); + + late final _sel_pathsForResourcesOfType_inDirectory_1 = _registerName1( + "pathsForResourcesOfType:inDirectory:", + ); + late final _sel_pathForResource_ofType_1 = _registerName1( + "pathForResource:ofType:", + ); late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); ffi.Pointer _objc_msgSend_352( @@ -9564,38 +11896,39 @@ class NativeMacOsFramework { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_352( - obj, - sel, - name, - ext, - subpath, - localizationName, - ); + return __objc_msgSend_352(obj, sel, name, ext, subpath, localizationName); } late final __objc_msgSend_352Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_352 = + __objc_msgSend_352Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); - late final _sel_localizedStringForKey_value_table_1 = - _registerName1("localizedStringForKey:value:table:"); + late final _sel_localizedStringForKey_value_table_1 = _registerName1( + "localizedStringForKey:value:table:", + ); late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); late final _sel_localizedAttributedStringForKey_value_table_1 = _registerName1("localizedAttributedStringForKey:value:table:"); @@ -9606,46 +11939,52 @@ class NativeMacOsFramework { ffi.Pointer value, ffi.Pointer tableName, ) { - return __objc_msgSend_353( - obj, - sel, - key, - value, - tableName, - ); + return __objc_msgSend_353(obj, sel, key, value, tableName); } late final __objc_msgSend_353Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_353 = + __objc_msgSend_353Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); late final _sel_bundleIdentifier1 = _registerName1("bundleIdentifier"); late final _sel_infoDictionary1 = _registerName1("infoDictionary"); - late final _sel_localizedInfoDictionary1 = - _registerName1("localizedInfoDictionary"); - late final _sel_objectForInfoDictionaryKey_1 = - _registerName1("objectForInfoDictionaryKey:"); + late final _sel_localizedInfoDictionary1 = _registerName1( + "localizedInfoDictionary", + ); + late final _sel_objectForInfoDictionaryKey_1 = _registerName1( + "objectForInfoDictionaryKey:", + ); late final _sel_classNamed_1 = _registerName1("classNamed:"); late final _sel_principalClass1 = _registerName1("principalClass"); - late final _sel_preferredLocalizations1 = - _registerName1("preferredLocalizations"); + late final _sel_preferredLocalizations1 = _registerName1( + "preferredLocalizations", + ); late final _sel_localizations1 = _registerName1("localizations"); - late final _sel_developmentLocalization1 = - _registerName1("developmentLocalization"); - late final _sel_preferredLocalizationsFromArray_1 = - _registerName1("preferredLocalizationsFromArray:"); + late final _sel_developmentLocalization1 = _registerName1( + "developmentLocalization", + ); + late final _sel_preferredLocalizationsFromArray_1 = _registerName1( + "preferredLocalizationsFromArray:", + ); late final _sel_preferredLocalizationsFromArray_forPreferences_1 = _registerName1("preferredLocalizationsFromArray:forPreferences:"); ffi.Pointer _objc_msgSend_354( @@ -9654,130 +11993,170 @@ class NativeMacOsFramework { ffi.Pointer localizationsArray, ffi.Pointer preferencesArray, ) { - return __objc_msgSend_354( - obj, - sel, - localizationsArray, - preferencesArray, - ); + return __objc_msgSend_354(obj, sel, localizationsArray, preferencesArray); } late final __objc_msgSend_354Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_354 = + __objc_msgSend_354Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_executableArchitectures1 = - _registerName1("executableArchitectures"); - late final _sel_setPreservationPriority_forTags_1 = - _registerName1("setPreservationPriority:forTags:"); + ffi.Pointer, + ) + >(); + + late final _sel_executableArchitectures1 = _registerName1( + "executableArchitectures", + ); + late final _sel_setPreservationPriority_forTags_1 = _registerName1( + "setPreservationPriority:forTags:", + ); void _objc_msgSend_355( ffi.Pointer obj, ffi.Pointer sel, double priority, ffi.Pointer tags, ) { - return __objc_msgSend_355( - obj, - sel, - priority, - tags, - ); + return __objc_msgSend_355(obj, sel, priority, tags); } late final __objc_msgSend_355Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double, - ffi.Pointer)>(); - - late final _sel_preservationPriorityForTag_1 = - _registerName1("preservationPriorityForTag:"); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_355 = + __objc_msgSend_355Ptr + .asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); + + late final _sel_preservationPriorityForTag_1 = _registerName1( + "preservationPriorityForTag:", + ); late final _class_NSDate1 = _getClass1("NSDate"); - late final _sel_timeIntervalSinceReferenceDate1 = - _registerName1("timeIntervalSinceReferenceDate"); - late final _sel_initWithTimeIntervalSinceReferenceDate_1 = - _registerName1("initWithTimeIntervalSinceReferenceDate:"); + late final _sel_timeIntervalSinceReferenceDate1 = _registerName1( + "timeIntervalSinceReferenceDate", + ); + late final _sel_initWithTimeIntervalSinceReferenceDate_1 = _registerName1( + "initWithTimeIntervalSinceReferenceDate:", + ); instancetype _objc_msgSend_356( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_356( - obj, - sel, - ti, - ); + return __objc_msgSend_356(obj, sel, ti); } late final __objc_msgSend_356Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + ffi.NativeFunction< instancetype Function( - ffi.Pointer, ffi.Pointer, double)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_356 = + __objc_msgSend_356Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + double, + ) + >(); - late final _sel_timeIntervalSinceDate_1 = - _registerName1("timeIntervalSinceDate:"); + late final _sel_timeIntervalSinceDate_1 = _registerName1( + "timeIntervalSinceDate:", + ); double _objc_msgSend_357( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_357( - obj, - sel, - anotherDate, - ); + return __objc_msgSend_357(obj, sel, anotherDate); } late final __objc_msgSend_357Ptr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_timeIntervalSinceNow1 = - _registerName1("timeIntervalSinceNow"); - late final _sel_timeIntervalSince19701 = - _registerName1("timeIntervalSince1970"); + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_357 = + __objc_msgSend_357Ptr + .asFunction< + double Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); + + late final _sel_timeIntervalSinceNow1 = _registerName1( + "timeIntervalSinceNow", + ); + late final _sel_timeIntervalSince19701 = _registerName1( + "timeIntervalSince1970", + ); late final _sel_addTimeInterval_1 = _registerName1("addTimeInterval:"); - late final _sel_dateByAddingTimeInterval_1 = - _registerName1("dateByAddingTimeInterval:"); + late final _sel_dateByAddingTimeInterval_1 = _registerName1( + "dateByAddingTimeInterval:", + ); late final _sel_earlierDate_1 = _registerName1("earlierDate:"); ffi.Pointer _objc_msgSend_358( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anotherDate, ) { - return __objc_msgSend_358( - obj, - sel, - anotherDate, - ); + return __objc_msgSend_358(obj, sel, anotherDate); } late final __objc_msgSend_358Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_358 = + __objc_msgSend_358Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_laterDate_1 = _registerName1("laterDate:"); int _objc_msgSend_359( @@ -9785,20 +12164,27 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_359( - obj, - sel, - other, - ); + return __objc_msgSend_359(obj, sel, other); } late final __objc_msgSend_359Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_359 = + __objc_msgSend_359Ptr + .asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); bool _objc_msgSend_360( @@ -9806,98 +12192,132 @@ class NativeMacOsFramework { ffi.Pointer sel, ffi.Pointer otherDate, ) { - return __objc_msgSend_360( - obj, - sel, - otherDate, - ); + return __objc_msgSend_360(obj, sel, otherDate); } late final __objc_msgSend_360Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_360 = + __objc_msgSend_360Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_date1 = _registerName1("date"); - late final _sel_dateWithTimeIntervalSinceNow_1 = - _registerName1("dateWithTimeIntervalSinceNow:"); - late final _sel_dateWithTimeIntervalSinceReferenceDate_1 = - _registerName1("dateWithTimeIntervalSinceReferenceDate:"); - late final _sel_dateWithTimeIntervalSince1970_1 = - _registerName1("dateWithTimeIntervalSince1970:"); - late final _sel_dateWithTimeInterval_sinceDate_1 = - _registerName1("dateWithTimeInterval:sinceDate:"); + late final _sel_dateWithTimeIntervalSinceNow_1 = _registerName1( + "dateWithTimeIntervalSinceNow:", + ); + late final _sel_dateWithTimeIntervalSinceReferenceDate_1 = _registerName1( + "dateWithTimeIntervalSinceReferenceDate:", + ); + late final _sel_dateWithTimeIntervalSince1970_1 = _registerName1( + "dateWithTimeIntervalSince1970:", + ); + late final _sel_dateWithTimeInterval_sinceDate_1 = _registerName1( + "dateWithTimeInterval:sinceDate:", + ); instancetype _objc_msgSend_361( ffi.Pointer obj, ffi.Pointer sel, double secsToBeAdded, ffi.Pointer date, ) { - return __objc_msgSend_361( - obj, - sel, - secsToBeAdded, - date, - ); + return __objc_msgSend_361(obj, sel, secsToBeAdded, date); } late final __objc_msgSend_361Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - double, ffi.Pointer)>(); + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_361 = + __objc_msgSend_361Ptr + .asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ) + >(); late final _sel_distantFuture1 = _registerName1("distantFuture"); ffi.Pointer _objc_msgSend_362( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_362( - obj, - sel, - ); + return __objc_msgSend_362(obj, sel); } late final __objc_msgSend_362Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_362 = + __objc_msgSend_362Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_distantPast1 = _registerName1("distantPast"); late final _sel_now1 = _registerName1("now"); - late final _sel_initWithTimeIntervalSinceNow_1 = - _registerName1("initWithTimeIntervalSinceNow:"); - late final _sel_initWithTimeIntervalSince1970_1 = - _registerName1("initWithTimeIntervalSince1970:"); - late final _sel_initWithTimeInterval_sinceDate_1 = - _registerName1("initWithTimeInterval:sinceDate:"); + late final _sel_initWithTimeIntervalSinceNow_1 = _registerName1( + "initWithTimeIntervalSinceNow:", + ); + late final _sel_initWithTimeIntervalSince1970_1 = _registerName1( + "initWithTimeIntervalSince1970:", + ); + late final _sel_initWithTimeInterval_sinceDate_1 = _registerName1( + "initWithTimeInterval:sinceDate:", + ); late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); late final _sel_processInfo1 = _registerName1("processInfo"); ffi.Pointer _objc_msgSend_363( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_363( - obj, - sel, - ); + return __objc_msgSend_363(obj, sel); } late final __objc_msgSend_363Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_363 = + __objc_msgSend_363Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_environment1 = _registerName1("environment"); late final _sel_arguments1 = _registerName1("arguments"); @@ -9905,97 +12325,127 @@ class NativeMacOsFramework { late final _sel_processName1 = _registerName1("processName"); late final _sel_setProcessName_1 = _registerName1("setProcessName:"); late final _sel_processIdentifier1 = _registerName1("processIdentifier"); - late final _sel_globallyUniqueString1 = - _registerName1("globallyUniqueString"); + late final _sel_globallyUniqueString1 = _registerName1( + "globallyUniqueString", + ); late final _sel_operatingSystem1 = _registerName1("operatingSystem"); late final _sel_operatingSystemName1 = _registerName1("operatingSystemName"); - late final _sel_operatingSystemVersionString1 = - _registerName1("operatingSystemVersionString"); - late final _sel_operatingSystemVersion1 = - _registerName1("operatingSystemVersion"); + late final _sel_operatingSystemVersionString1 = _registerName1( + "operatingSystemVersionString", + ); + late final _sel_operatingSystemVersion1 = _registerName1( + "operatingSystemVersion", + ); NSOperatingSystemVersion _objc_msgSend_364( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_364( - obj, - sel, - ); + return __objc_msgSend_364(obj, sel); } late final __objc_msgSend_364Ptr = _lookup< - ffi.NativeFunction< - NSOperatingSystemVersion Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + ffi.NativeFunction< NSOperatingSystemVersion Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_364 = + __objc_msgSend_364Ptr + .asFunction< + NSOperatingSystemVersion Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_processorCount1 = _registerName1("processorCount"); - late final _sel_activeProcessorCount1 = - _registerName1("activeProcessorCount"); + late final _sel_activeProcessorCount1 = _registerName1( + "activeProcessorCount", + ); late final _sel_physicalMemory1 = _registerName1("physicalMemory"); - late final _sel_isOperatingSystemAtLeastVersion_1 = - _registerName1("isOperatingSystemAtLeastVersion:"); + late final _sel_isOperatingSystemAtLeastVersion_1 = _registerName1( + "isOperatingSystemAtLeastVersion:", + ); bool _objc_msgSend_365( ffi.Pointer obj, ffi.Pointer sel, NSOperatingSystemVersion version, ) { - return __objc_msgSend_365( - obj, - sel, - version, - ); + return __objc_msgSend_365(obj, sel, version); } late final __objc_msgSend_365Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSOperatingSystemVersion)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - NSOperatingSystemVersion)>(); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + NSOperatingSystemVersion, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_365 = + __objc_msgSend_365Ptr + .asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + NSOperatingSystemVersion, + ) + >(); late final _sel_systemUptime1 = _registerName1("systemUptime"); - late final _sel_disableSuddenTermination1 = - _registerName1("disableSuddenTermination"); - late final _sel_enableSuddenTermination1 = - _registerName1("enableSuddenTermination"); - late final _sel_disableAutomaticTermination_1 = - _registerName1("disableAutomaticTermination:"); - late final _sel_enableAutomaticTermination_1 = - _registerName1("enableAutomaticTermination:"); - late final _sel_automaticTerminationSupportEnabled1 = - _registerName1("automaticTerminationSupportEnabled"); - late final _sel_setAutomaticTerminationSupportEnabled_1 = - _registerName1("setAutomaticTerminationSupportEnabled:"); - late final _sel_beginActivityWithOptions_reason_1 = - _registerName1("beginActivityWithOptions:reason:"); + late final _sel_disableSuddenTermination1 = _registerName1( + "disableSuddenTermination", + ); + late final _sel_enableSuddenTermination1 = _registerName1( + "enableSuddenTermination", + ); + late final _sel_disableAutomaticTermination_1 = _registerName1( + "disableAutomaticTermination:", + ); + late final _sel_enableAutomaticTermination_1 = _registerName1( + "enableAutomaticTermination:", + ); + late final _sel_automaticTerminationSupportEnabled1 = _registerName1( + "automaticTerminationSupportEnabled", + ); + late final _sel_setAutomaticTerminationSupportEnabled_1 = _registerName1( + "setAutomaticTerminationSupportEnabled:", + ); + late final _sel_beginActivityWithOptions_reason_1 = _registerName1( + "beginActivityWithOptions:reason:", + ); ffi.Pointer _objc_msgSend_366( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ) { - return __objc_msgSend_366( - obj, - sel, - options, - reason, - ); + return __objc_msgSend_366(obj, sel, options, reason); } late final __objc_msgSend_366Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_366 = + __objc_msgSend_366Ptr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); + int, + ffi.Pointer, + ) + >(); late final _sel_endActivity_1 = _registerName1("endActivity:"); late final _sel_performActivityWithOptions_reason_usingBlock_1 = @@ -10007,26 +12457,31 @@ class NativeMacOsFramework { ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_367( - obj, - sel, - options, - reason, - block, - ); + return __objc_msgSend_367(obj, sel, options, reason, block); } late final __objc_msgSend_367Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_367 = + __objc_msgSend_367Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, + int, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_performExpiringActivityWithReason_usingBlock_1 = _registerName1("performExpiringActivityWithReason:usingBlock:"); @@ -10036,47 +12491,51 @@ class NativeMacOsFramework { ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_368( - obj, - sel, - reason, - block, - ); + return __objc_msgSend_368(obj, sel, reason, block); } late final __objc_msgSend_368Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_368 = + __objc_msgSend_368Ptr + .asFunction< + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer<_ObjCBlock>, + ) + >(); late final _sel_userName1 = _registerName1("userName"); late final _sel_fullUserName1 = _registerName1("fullUserName"); late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_369( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_369( - obj, - sel, - ); + int _objc_msgSend_369(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_369(obj, sel); } late final __objc_msgSend_369Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isLowPowerModeEnabled1 = - _registerName1("isLowPowerModeEnabled"); + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_369 = + __objc_msgSend_369Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); + + late final _sel_isLowPowerModeEnabled1 = _registerName1( + "isLowPowerModeEnabled", + ); late final _sel_isMacCatalystApp1 = _registerName1("isMacCatalystApp"); late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); late final _class_NSScreen1 = _getClass1("NSScreen"); @@ -10086,40 +12545,45 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_370( - obj, - sel, - ); + return __objc_msgSend_370(obj, sel); } late final __objc_msgSend_370Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_370 = + __objc_msgSend_370Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); late final _sel_deepestScreen1 = _registerName1("deepestScreen"); - late final _sel_screensHaveSeparateSpaces1 = - _registerName1("screensHaveSeparateSpaces"); + late final _sel_screensHaveSeparateSpaces1 = _registerName1( + "screensHaveSeparateSpaces", + ); late final _sel_depth1 = _registerName1("depth"); - int _objc_msgSend_371( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_371( - obj, - sel, - ); + int _objc_msgSend_371(ffi.Pointer obj, ffi.Pointer sel) { + return __objc_msgSend_371(obj, sel); } late final __objc_msgSend_371Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer) + > + >('objc_msgSend'); + late final __objc_msgSend_371 = + __objc_msgSend_371Ptr + .asFunction< + int Function(ffi.Pointer, ffi.Pointer) + >(); late final _sel_frame1 = _registerName1("frame"); late final _sel_visibleFrame1 = _registerName1("visibleFrame"); @@ -10130,133 +12594,174 @@ class NativeMacOsFramework { ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_372( - obj, - sel, - ); + return __objc_msgSend_372(obj, sel); } late final __objc_msgSend_372Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_372 = + __objc_msgSend_372Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_supportedWindowDepths1 = - _registerName1("supportedWindowDepths"); + late final _sel_supportedWindowDepths1 = _registerName1( + "supportedWindowDepths", + ); ffi.Pointer _objc_msgSend_373( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_373( - obj, - sel, - ); + return __objc_msgSend_373(obj, sel); } late final __objc_msgSend_373Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_373 = + __objc_msgSend_373Ptr + .asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ) + >(); - late final _sel_canRepresentDisplayGamut_1 = - _registerName1("canRepresentDisplayGamut:"); + late final _sel_canRepresentDisplayGamut_1 = _registerName1( + "canRepresentDisplayGamut:", + ); bool _objc_msgSend_374( ffi.Pointer obj, ffi.Pointer sel, int displayGamut, ) { - return __objc_msgSend_374( - obj, - sel, - displayGamut, - ); + return __objc_msgSend_374(obj, sel, displayGamut); } late final __objc_msgSend_374Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_convertRectToBacking_1 = - _registerName1("convertRectToBacking:"); + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_374 = + __objc_msgSend_374Ptr + .asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int) + >(); + + late final _sel_convertRectToBacking_1 = _registerName1( + "convertRectToBacking:", + ); CGRect _objc_msgSend_375( ffi.Pointer obj, ffi.Pointer sel, CGRect rect, ) { - return __objc_msgSend_375( - obj, - sel, - rect, - ); + return __objc_msgSend_375(obj, sel, rect); } late final __objc_msgSend_375Ptr = _lookup< - ffi.NativeFunction< - CGRect Function(ffi.Pointer, ffi.Pointer, - CGRect)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< - CGRect Function(ffi.Pointer, ffi.Pointer, CGRect)>(); - - late final _sel_convertRectFromBacking_1 = - _registerName1("convertRectFromBacking:"); - late final _sel_backingAlignedRect_options_1 = - _registerName1("backingAlignedRect:options:"); + ffi.NativeFunction< + CGRect Function(ffi.Pointer, ffi.Pointer, CGRect) + > + >('objc_msgSend'); + late final __objc_msgSend_375 = + __objc_msgSend_375Ptr + .asFunction< + CGRect Function( + ffi.Pointer, + ffi.Pointer, + CGRect, + ) + >(); + + late final _sel_convertRectFromBacking_1 = _registerName1( + "convertRectFromBacking:", + ); + late final _sel_backingAlignedRect_options_1 = _registerName1( + "backingAlignedRect:options:", + ); CGRect _objc_msgSend_376( ffi.Pointer obj, ffi.Pointer sel, CGRect rect, int options, ) { - return __objc_msgSend_376( - obj, - sel, - rect, - options, - ); + return __objc_msgSend_376(obj, sel, rect, options); } late final __objc_msgSend_376Ptr = _lookup< - ffi.NativeFunction< - CGRect Function(ffi.Pointer, ffi.Pointer, CGRect, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + ffi.NativeFunction< CGRect Function( - ffi.Pointer, ffi.Pointer, CGRect, int)>(); + ffi.Pointer, + ffi.Pointer, + CGRect, + ffi.Int32, + ) + > + >('objc_msgSend'); + late final __objc_msgSend_376 = + __objc_msgSend_376Ptr + .asFunction< + CGRect Function( + ffi.Pointer, + ffi.Pointer, + CGRect, + int, + ) + >(); late final _sel_backingScaleFactor1 = _registerName1("backingScaleFactor"); late final _sel_localizedName1 = _registerName1("localizedName"); late final _sel_safeAreaInsets1 = _registerName1("safeAreaInsets"); - late final _sel_auxiliaryTopLeftArea1 = - _registerName1("auxiliaryTopLeftArea"); - late final _sel_auxiliaryTopRightArea1 = - _registerName1("auxiliaryTopRightArea"); + late final _sel_auxiliaryTopLeftArea1 = _registerName1( + "auxiliaryTopLeftArea", + ); + late final _sel_auxiliaryTopRightArea1 = _registerName1( + "auxiliaryTopRightArea", + ); late final _sel_maximumExtendedDynamicRangeColorComponentValue1 = _registerName1("maximumExtendedDynamicRangeColorComponentValue"); late final _sel_maximumPotentialExtendedDynamicRangeColorComponentValue1 = _registerName1("maximumPotentialExtendedDynamicRangeColorComponentValue"); late final _sel_maximumReferenceExtendedDynamicRangeColorComponentValue1 = _registerName1("maximumReferenceExtendedDynamicRangeColorComponentValue"); - late final _sel_maximumFramesPerSecond1 = - _registerName1("maximumFramesPerSecond"); - late final _sel_minimumRefreshInterval1 = - _registerName1("minimumRefreshInterval"); - late final _sel_maximumRefreshInterval1 = - _registerName1("maximumRefreshInterval"); - late final _sel_displayUpdateGranularity1 = - _registerName1("displayUpdateGranularity"); - late final _sel_lastDisplayUpdateTimestamp1 = - _registerName1("lastDisplayUpdateTimestamp"); - late final _sel_userSpaceScaleFactor1 = - _registerName1("userSpaceScaleFactor"); + late final _sel_maximumFramesPerSecond1 = _registerName1( + "maximumFramesPerSecond", + ); + late final _sel_minimumRefreshInterval1 = _registerName1( + "minimumRefreshInterval", + ); + late final _sel_maximumRefreshInterval1 = _registerName1( + "maximumRefreshInterval", + ); + late final _sel_displayUpdateGranularity1 = _registerName1( + "displayUpdateGranularity", + ); + late final _sel_lastDisplayUpdateTimestamp1 = _registerName1( + "lastDisplayUpdateTimestamp", + ); + late final _sel_userSpaceScaleFactor1 = _registerName1( + "userSpaceScaleFactor", + ); /// ! @const kIOMasterPortDefault /// @abstract Deprecated name for kIOMainPortDefault. @@ -10272,17 +12777,14 @@ class NativeMacOsFramework { /// @discussion All objects returned by IOKitLib should be released with this function when access to them is no longer needed. Using the object after it has been released may or may not return an error, depending on how many references the task has to the same object in the kernel. /// @param object The IOKit object to release. /// @result A kern_return_t error code. - int IOObjectRelease( - int object, - ) { - return _IOObjectRelease( - object, - ); + int IOObjectRelease(int object) { + return _IOObjectRelease(object); } late final _IOObjectReleasePtr = _lookup>( - 'IOObjectRelease'); + 'IOObjectRelease', + ); late final _IOObjectRelease = _IOObjectReleasePtr.asFunction(); @@ -10297,18 +12799,18 @@ class NativeMacOsFramework { int mainPort, ffi.Pointer matching, ) { - return _IOServiceGetMatchingService( - mainPort, - matching, - ); + return _IOServiceGetMatchingService(mainPort, matching); } late final _IOServiceGetMatchingServicePtr = _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.UnsignedInt, - ffi.Pointer)>>('IOServiceGetMatchingService'); - late final _IOServiceGetMatchingService = _IOServiceGetMatchingServicePtr - .asFunction)>(); + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.UnsignedInt, ffi.Pointer) + > + >('IOServiceGetMatchingService'); + late final _IOServiceGetMatchingService = + _IOServiceGetMatchingServicePtr.asFunction< + int Function(int, ffi.Pointer) + >(); /// ! @function IORegistryEntryCreateCFProperty /// @abstract Create a CF representation of a registry entry's property. @@ -10324,45 +12826,47 @@ class NativeMacOsFramework { ffi.Pointer<__CFAllocator> allocator, int options, ) { - return _IORegistryEntryCreateCFProperty( - entry, - key, - allocator, - options, - ); + return _IORegistryEntryCreateCFProperty(entry, key, allocator, options); } late final _IORegistryEntryCreateCFPropertyPtr = _lookup< - ffi.NativeFunction< - CFTypeRef1 Function( - ffi.UnsignedInt, - ffi.Pointer, - ffi.Pointer<__CFAllocator>, - ffi.UnsignedInt)>>('IORegistryEntryCreateCFProperty'); + ffi.NativeFunction< + CFTypeRef1 Function( + ffi.UnsignedInt, + ffi.Pointer, + ffi.Pointer<__CFAllocator>, + ffi.UnsignedInt, + ) + > + >('IORegistryEntryCreateCFProperty'); late final _IORegistryEntryCreateCFProperty = _IORegistryEntryCreateCFPropertyPtr.asFunction< - CFTypeRef1 Function( - int, ffi.Pointer, ffi.Pointer<__CFAllocator>, int)>(); + CFTypeRef1 Function( + int, + ffi.Pointer, + ffi.Pointer<__CFAllocator>, + int, + ) + >(); /// ! @function IOServiceMatching /// @abstract Create a matching dictionary that specifies an IOService class match. /// @discussion A very common matching criteria for IOService is based on its class. IOServiceMatching will create a matching dictionary that specifies any IOService of a class, or its subclasses. The class is specified by C-string name. /// @param name The class name, as a const C-string. Class matching is successful on IOService's of this class or any subclass. /// @result The matching dictionary created, is returned on success, or zero on failure. The dictionary is commonly passed to IOServiceGetMatchingServices or IOServiceAddNotification which will consume a reference, otherwise it should be released with CFRelease by the caller. - ffi.Pointer IOServiceMatching( - ffi.Pointer name, - ) { - return _IOServiceMatching( - name, - ); + ffi.Pointer IOServiceMatching(ffi.Pointer name) { + return _IOServiceMatching(name); } late final _IOServiceMatchingPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('IOServiceMatching'); - late final _IOServiceMatching = _IOServiceMatchingPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('IOServiceMatching'); + late final _IOServiceMatching = + _IOServiceMatchingPtr.asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); } final class utsname extends ffi.Struct { @@ -10399,28 +12903,38 @@ final class CFDictionaryKeyCallBacks extends ffi.Struct { external int version; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<__CFAllocator>, ffi.Pointer)>> retain; + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<__CFAllocator>, + ffi.Pointer, + ) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<__CFAllocator>, ffi.Pointer)>> release; + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<__CFAllocator>, ffi.Pointer) + > + > + release; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - copyDescription; + ffi.NativeFunction Function(ffi.Pointer)> + > + copyDescription; external ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, ffi.Pointer)>> equal; + ffi.NativeFunction< + ffi.UnsignedChar Function(ffi.Pointer, ffi.Pointer) + > + > + equal; external ffi.Pointer< - ffi.NativeFunction)>> - hash; + ffi.NativeFunction)> + > + hash; } final class CFString extends ffi.Opaque {} @@ -10430,24 +12944,33 @@ final class CFDictionaryValueCallBacks extends ffi.Struct { external int version; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<__CFAllocator>, ffi.Pointer)>> retain; + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<__CFAllocator>, + ffi.Pointer, + ) + > + > + retain; external ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<__CFAllocator>, ffi.Pointer)>> release; + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<__CFAllocator>, ffi.Pointer) + > + > + release; external ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - copyDescription; + ffi.NativeFunction Function(ffi.Pointer)> + > + copyDescription; external ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, ffi.Pointer)>> equal; + ffi.NativeFunction< + ffi.UnsignedChar Function(ffi.Pointer, ffi.Pointer) + > + > + equal; } final class CFData extends ffi.Opaque {} @@ -10474,9 +12997,12 @@ class _ObjCWrapper implements ffi.Finalizable { final NativeMacOsFramework _lib; bool _pendingRelease; - _ObjCWrapper._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { + _ObjCWrapper._( + this._id, + this._lib, { + bool retain = false, + bool release = false, + }) : _pendingRelease = release { if (retain) { _lib._objc_retain(_id.cast()); } @@ -10494,7 +13020,8 @@ class _ObjCWrapper implements ffi.Finalizable { _lib._objc_releaseFinalizer2.detach(this); } else { throw StateError( - 'Released an ObjC object that was unowned or already released.'); + 'Released an ObjC object that was unowned or already released.', + ); } } @@ -10511,9 +13038,12 @@ class _ObjCWrapper implements ffi.Finalizable { } class NSObject extends _ObjCWrapper { - NSObject._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSObject._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSObject] that points to the same underlying object as [other]. static NSObject castFrom(T other) { @@ -10522,15 +13052,21 @@ class NSObject extends _ObjCWrapper { /// Returns a [NSObject] that wraps the given raw object pointer. static NSObject castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSObject._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSObject]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSObject1, + ); } static void load(NativeMacOsFramework _lib) { @@ -10552,9 +13088,14 @@ class NSObject extends _ObjCWrapper { } static NSObject allocWithZone_( - NativeMacOsFramework _lib, ffi.Pointer<_NSZone> zone) { + NativeMacOsFramework _lib, + ffi.Pointer<_NSZone> zone, + ) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); + _lib._class_NSObject1, + _lib._sel_allocWithZone_1, + zone, + ); return NSObject._(_ret, _lib, retain: false, release: true); } @@ -10582,70 +13123,114 @@ class NSObject extends _ObjCWrapper { } static NSObject copyWithZone_( - NativeMacOsFramework _lib, ffi.Pointer<_NSZone> zone) { + NativeMacOsFramework _lib, + ffi.Pointer<_NSZone> zone, + ) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); + _lib._class_NSObject1, + _lib._sel_copyWithZone_1, + zone, + ); return NSObject._(_ret, _lib, retain: false, release: true); } static NSObject mutableCopyWithZone_( - NativeMacOsFramework _lib, ffi.Pointer<_NSZone> zone) { + NativeMacOsFramework _lib, + ffi.Pointer<_NSZone> zone, + ) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); + _lib._class_NSObject1, + _lib._sel_mutableCopyWithZone_1, + zone, + ); return NSObject._(_ret, _lib, retain: false, release: true); } static bool instancesRespondToSelector_( - NativeMacOsFramework _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSObject1, - _lib._sel_instancesRespondToSelector_1, aSelector); + NativeMacOsFramework _lib, + ffi.Pointer aSelector, + ) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, + _lib._sel_instancesRespondToSelector_1, + aSelector, + ); } static bool conformsToProtocol_( - NativeMacOsFramework _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + Protocol? protocol, + ) { + return _lib._objc_msgSend_5( + _lib._class_NSObject1, + _lib._sel_conformsToProtocol_1, + protocol?._id ?? ffi.nullptr, + ); } ffi.Pointer> methodForSelector_( - ffi.Pointer aSelector) { + ffi.Pointer aSelector, + ) { return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); } static ffi.Pointer> - instanceMethodForSelector_( - NativeMacOsFramework _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_lib._class_NSObject1, - _lib._sel_instanceMethodForSelector_1, aSelector); + instanceMethodForSelector_( + NativeMacOsFramework _lib, + ffi.Pointer aSelector, + ) { + return _lib._objc_msgSend_6( + _lib._class_NSObject1, + _lib._sel_instanceMethodForSelector_1, + aSelector, + ); } void doesNotRecognizeSelector_(ffi.Pointer aSelector) { return _lib._objc_msgSend_7( - _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); + _id, + _lib._sel_doesNotRecognizeSelector_1, + aSelector, + ); } NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { final _ret = _lib._objc_msgSend_8( - _id, _lib._sel_forwardingTargetForSelector_1, aSelector); + _id, + _lib._sel_forwardingTargetForSelector_1, + aSelector, + ); return NSObject._(_ret, _lib, retain: true, release: true); } void forwardInvocation_(NSInvocation? anInvocation) { return _lib._objc_msgSend_9( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + _id, + _lib._sel_forwardInvocation_1, + anInvocation?._id ?? ffi.nullptr, + ); } NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { + ffi.Pointer aSelector, + ) { final _ret = _lib._objc_msgSend_10( - _id, _lib._sel_methodSignatureForSelector_1, aSelector); + _id, + _lib._sel_methodSignatureForSelector_1, + aSelector, + ); return NSMethodSignature._(_ret, _lib, retain: true, release: true); } static NSMethodSignature instanceMethodSignatureForSelector_( - NativeMacOsFramework _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_10(_lib._class_NSObject1, - _lib._sel_instanceMethodSignatureForSelector_1, aSelector); + NativeMacOsFramework _lib, + ffi.Pointer aSelector, + ) { + final _ret = _lib._objc_msgSend_10( + _lib._class_NSObject1, + _lib._sel_instanceMethodSignatureForSelector_1, + aSelector, + ); return NSMethodSignature._(_ret, _lib, retain: true, release: true); } @@ -10659,19 +13244,32 @@ class NSObject extends _ObjCWrapper { static bool isSubclassOfClass_(NativeMacOsFramework _lib, NSObject aClass) { return _lib._objc_msgSend_0( - _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); + _lib._class_NSObject1, + _lib._sel_isSubclassOfClass_1, + aClass._id, + ); } static bool resolveClassMethod_( - NativeMacOsFramework _lib, ffi.Pointer sel) { + NativeMacOsFramework _lib, + ffi.Pointer sel, + ) { return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); + _lib._class_NSObject1, + _lib._sel_resolveClassMethod_1, + sel, + ); } static bool resolveInstanceMethod_( - NativeMacOsFramework _lib, ffi.Pointer sel) { + NativeMacOsFramework _lib, + ffi.Pointer sel, + ) { return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); + _lib._class_NSObject1, + _lib._sel_resolveInstanceMethod_1, + sel, + ); } static int hash(NativeMacOsFramework _lib) { @@ -10679,8 +13277,10 @@ class NSObject extends _ObjCWrapper { } static NSObject superclass(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSObject1, + _lib._sel_superclass1, + ); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -10690,14 +13290,18 @@ class NSObject extends _ObjCWrapper { } static NSString description(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_55(_lib._class_NSObject1, _lib._sel_description1); + final _ret = _lib._objc_msgSend_55( + _lib._class_NSObject1, + _lib._sel_description1, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString debugDescription(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_55( - _lib._class_NSObject1, _lib._sel_debugDescription1); + _lib._class_NSObject1, + _lib._sel_debugDescription1, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -10707,7 +13311,10 @@ class NSObject extends _ObjCWrapper { static void setVersion_(NativeMacOsFramework _lib, int aVersion) { return _lib._objc_msgSend_241( - _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); + _lib._class_NSObject1, + _lib._sel_setVersion_1, + aVersion, + ); } NSObject get classForCoder { @@ -10717,24 +13324,35 @@ class NSObject extends _ObjCWrapper { NSObject replacementObjectForCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_replacementObjectForCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject awakeAfterUsingCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_awakeAfterUsingCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: false, release: true); } static void poseAsClass_(NativeMacOsFramework _lib, NSObject aClass) { return _lib._objc_msgSend_20( - _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); + _lib._class_NSObject1, + _lib._sel_poseAsClass_1, + aClass._id, + ); } NSObject get autoContentAccessingProxy { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); + final _ret = _lib._objc_msgSend_2( + _id, + _lib._sel_autoContentAccessingProxy1, + ); return NSObject._(_ret, _lib, retain: true, release: true); } } @@ -10748,9 +13366,12 @@ typedef instancetype = ffi.Pointer; final class _NSZone extends ffi.Opaque {} class Protocol extends _ObjCWrapper { - Protocol._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + Protocol._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [Protocol] that points to the same underlying object as [other]. static Protocol castFrom(T other) { @@ -10759,22 +13380,31 @@ class Protocol extends _ObjCWrapper { /// Returns a [Protocol] that wraps the given raw object pointer. static Protocol castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return Protocol._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [Protocol]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_Protocol1, + ); } } class NSInvocation extends _ObjCWrapper { - NSInvocation._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSInvocation._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSInvocation] that points to the same underlying object as [other]. static NSInvocation castFrom(T other) { @@ -10783,47 +13413,69 @@ class NSInvocation extends _ObjCWrapper { /// Returns a [NSInvocation] that wraps the given raw object pointer. static NSInvocation castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSInvocation._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSInvocation]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSInvocation1, + ); } } class NSMethodSignature extends _ObjCWrapper { - NSMethodSignature._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSMethodSignature._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. static NSMethodSignature castFrom(T other) { - return NSMethodSignature._(other._id, other._lib, - retain: true, release: true); + return NSMethodSignature._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSMethodSignature] that wraps the given raw object pointer. static NSMethodSignature castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSMethodSignature._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSMethodSignature]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMethodSignature1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMethodSignature1, + ); } } class NSString extends NSObject { - NSString._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSString._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSString] that points to the same underlying object as [other]. static NSString castFrom(T other) { @@ -10832,15 +13484,21 @@ class NSString extends NSObject { /// Returns a [NSString] that wraps the given raw object pointer. static NSString castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSString._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSString]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSString1, + ); } factory NSString(NativeMacOsFramework _lib, String str) { @@ -10852,8 +13510,9 @@ class NSString extends NSObject { @override String toString() { - final data = - dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); + final data = dataUsingEncoding_( + 0x94000100 /* NSUTF16LittleEndianStringEncoding */, + ); return data.bytes.cast().toDartString(length: length); } @@ -10873,13 +13532,19 @@ class NSString extends NSObject { NSString initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString substringFromIndex_(int from) { - final _ret = - _lib._objc_msgSend_163(_id, _lib._sel_substringFromIndex_1, from); + final _ret = _lib._objc_msgSend_163( + _id, + _lib._sel_substringFromIndex_1, + from, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -10889,177 +13554,283 @@ class NSString extends NSObject { } NSString substringWithRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_164(_id, _lib._sel_substringWithRange_1, range); + final _ret = _lib._objc_msgSend_164( + _id, + _lib._sel_substringWithRange_1, + range, + ); return NSString._(_ret, _lib, retain: true, release: true); } void getCharacters_range_( - ffi.Pointer buffer, _NSRange range) { + ffi.Pointer buffer, + _NSRange range, + ) { return _lib._objc_msgSend_165( - _id, _lib._sel_getCharacters_range_1, buffer, range); + _id, + _lib._sel_getCharacters_range_1, + buffer, + range, + ); } int compare_(NSString? string) { return _lib._objc_msgSend_166( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + _id, + _lib._sel_compare_1, + string?._id ?? ffi.nullptr, + ); } int compare_options_(NSString? string, int mask) { return _lib._objc_msgSend_167( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + _id, + _lib._sel_compare_options_1, + string?._id ?? ffi.nullptr, + mask, + ); } int compare_options_range_( - NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_168(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + NSString? string, + int mask, + _NSRange rangeOfReceiverToCompare, + ) { + return _lib._objc_msgSend_168( + _id, + _lib._sel_compare_options_range_1, + string?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToCompare, + ); } - int compare_options_range_locale_(NSString? string, int mask, - _NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_169(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + int compare_options_range_locale_( + NSString? string, + int mask, + _NSRange rangeOfReceiverToCompare, + NSObject locale, + ) { + return _lib._objc_msgSend_169( + _id, + _lib._sel_compare_options_range_locale_1, + string?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToCompare, + locale._id, + ); } int caseInsensitiveCompare_(NSString? string) { return _lib._objc_msgSend_166( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + _id, + _lib._sel_caseInsensitiveCompare_1, + string?._id ?? ffi.nullptr, + ); } int localizedCompare_(NSString? string) { return _lib._objc_msgSend_166( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedCompare_1, + string?._id ?? ffi.nullptr, + ); } int localizedCaseInsensitiveCompare_(NSString? string) { return _lib._objc_msgSend_166( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedCaseInsensitiveCompare_1, + string?._id ?? ffi.nullptr, + ); } int localizedStandardCompare_(NSString? string) { return _lib._objc_msgSend_166( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStandardCompare_1, + string?._id ?? ffi.nullptr, + ); } bool isEqualToString_(NSString? aString) { return _lib._objc_msgSend_37( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + _id, + _lib._sel_isEqualToString_1, + aString?._id ?? ffi.nullptr, + ); } bool hasPrefix_(NSString? str) { return _lib._objc_msgSend_37( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + _id, + _lib._sel_hasPrefix_1, + str?._id ?? ffi.nullptr, + ); } bool hasSuffix_(NSString? str) { return _lib._objc_msgSend_37( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + _id, + _lib._sel_hasSuffix_1, + str?._id ?? ffi.nullptr, + ); } NSString commonPrefixWithString_options_(NSString? str, int mask) { final _ret = _lib._objc_msgSend_170( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); + _id, + _lib._sel_commonPrefixWithString_options_1, + str?._id ?? ffi.nullptr, + mask, + ); return NSString._(_ret, _lib, retain: true, release: true); } bool containsString_(NSString? str) { return _lib._objc_msgSend_37( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + _id, + _lib._sel_containsString_1, + str?._id ?? ffi.nullptr, + ); } bool localizedCaseInsensitiveContainsString_(NSString? str) { return _lib._objc_msgSend_37( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedCaseInsensitiveContainsString_1, + str?._id ?? ffi.nullptr, + ); } bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_37(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + return _lib._objc_msgSend_37( + _id, + _lib._sel_localizedStandardContainsString_1, + str?._id ?? ffi.nullptr, + ); } _NSRange localizedStandardRangeOfString_(NSString? str) { - return _lib._objc_msgSend_171(_id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + return _lib._objc_msgSend_171( + _id, + _lib._sel_localizedStandardRangeOfString_1, + str?._id ?? ffi.nullptr, + ); } _NSRange rangeOfString_(NSString? searchString) { return _lib._objc_msgSend_171( - _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + _id, + _lib._sel_rangeOfString_1, + searchString?._id ?? ffi.nullptr, + ); } _NSRange rangeOfString_options_(NSString? searchString, int mask) { - return _lib._objc_msgSend_172(_id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); + return _lib._objc_msgSend_172( + _id, + _lib._sel_rangeOfString_options_1, + searchString?._id ?? ffi.nullptr, + mask, + ); } _NSRange rangeOfString_options_range_( - NSString? searchString, int mask, _NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_173(_id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + NSString? searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + ) { + return _lib._objc_msgSend_173( + _id, + _lib._sel_rangeOfString_options_range_1, + searchString?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch, + ); } - _NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, - _NSRange rangeOfReceiverToSearch, NSLocale? locale) { + _NSRange rangeOfString_options_range_locale_( + NSString? searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + NSLocale? locale, + ) { return _lib._objc_msgSend_181( - _id, - _lib._sel_rangeOfString_options_range_locale_1, - searchString?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch, - locale?._id ?? ffi.nullptr); + _id, + _lib._sel_rangeOfString_options_range_locale_1, + searchString?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch, + locale?._id ?? ffi.nullptr, + ); } _NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { - return _lib._objc_msgSend_182(_id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); + return _lib._objc_msgSend_182( + _id, + _lib._sel_rangeOfCharacterFromSet_1, + searchSet?._id ?? ffi.nullptr, + ); } _NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet? searchSet, int mask) { + NSCharacterSet? searchSet, + int mask, + ) { return _lib._objc_msgSend_183( - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); + _id, + _lib._sel_rangeOfCharacterFromSet_options_1, + searchSet?._id ?? ffi.nullptr, + mask, + ); } _NSRange rangeOfCharacterFromSet_options_range_( - NSCharacterSet? searchSet, int mask, _NSRange rangeOfReceiverToSearch) { + NSCharacterSet? searchSet, + int mask, + _NSRange rangeOfReceiverToSearch, + ) { return _lib._objc_msgSend_184( - _id, - _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch); + _id, + _lib._sel_rangeOfCharacterFromSet_options_range_1, + searchSet?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch, + ); } _NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { return _lib._objc_msgSend_185( - _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + _id, + _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, + index, + ); } _NSRange rangeOfComposedCharacterSequencesForRange_(_NSRange range) { return _lib._objc_msgSend_186( - _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + _id, + _lib._sel_rangeOfComposedCharacterSequencesForRange_1, + range, + ); } NSString stringByAppendingString_(NSString? aString) { final _ret = _lib._objc_msgSend_54( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + _id, + _lib._sel_stringByAppendingString_1, + aString?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByAppendingFormat_(NSString? format) { final _ret = _lib._objc_msgSend_54( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + _id, + _lib._sel_stringByAppendingFormat_1, + format?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -11109,24 +13880,30 @@ class NSString extends NSObject { } NSString? get localizedUppercaseString { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_localizedUppercaseString1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_localizedUppercaseString1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get localizedLowercaseString { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_localizedLowercaseString1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_localizedLowercaseString1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get localizedCapitalizedString { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_localizedCapitalizedString1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_localizedCapitalizedString1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -11134,34 +13911,45 @@ class NSString extends NSObject { NSString uppercaseStringWithLocale_(NSLocale? locale) { final _ret = _lib._objc_msgSend_192( - _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + _id, + _lib._sel_uppercaseStringWithLocale_1, + locale?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString lowercaseStringWithLocale_(NSLocale? locale) { final _ret = _lib._objc_msgSend_192( - _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + _id, + _lib._sel_lowercaseStringWithLocale_1, + locale?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString capitalizedStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_192(_id, - _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_192( + _id, + _lib._sel_capitalizedStringWithLocale_1, + locale?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } void getLineStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - _NSRange range) { + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range, + ) { return _lib._objc_msgSend_193( - _id, - _lib._sel_getLineStart_end_contentsEnd_forRange_1, - startPtr, - lineEndPtr, - contentsEndPtr, - range); + _id, + _lib._sel_getLineStart_end_contentsEnd_forRange_1, + startPtr, + lineEndPtr, + contentsEndPtr, + range, + ); } _NSRange lineRangeForRange_(_NSRange range) { @@ -11169,37 +13957,49 @@ class NSString extends NSObject { } void getParagraphStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer parEndPtr, - ffi.Pointer contentsEndPtr, - _NSRange range) { + ffi.Pointer startPtr, + ffi.Pointer parEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range, + ) { return _lib._objc_msgSend_193( - _id, - _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, - startPtr, - parEndPtr, - contentsEndPtr, - range); + _id, + _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, + startPtr, + parEndPtr, + contentsEndPtr, + range, + ); } _NSRange paragraphRangeForRange_(_NSRange range) { return _lib._objc_msgSend_186( - _id, _lib._sel_paragraphRangeForRange_1, range); + _id, + _lib._sel_paragraphRangeForRange_1, + range, + ); } void enumerateSubstringsInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock11 block) { + _NSRange range, + int opts, + ObjCBlock11 block, + ) { return _lib._objc_msgSend_194( - _id, - _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, - range, - opts, - block._id); + _id, + _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, + range, + opts, + block._id, + ); } void enumerateLinesUsingBlock_(ObjCBlock12 block) { return _lib._objc_msgSend_195( - _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); + _id, + _lib._sel_enumerateLinesUsingBlock_1, + block._id, + ); } ffi.Pointer get UTF8String { @@ -11215,88 +14015,125 @@ class NSString extends NSObject { } NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_197(_id, - _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); + final _ret = _lib._objc_msgSend_197( + _id, + _lib._sel_dataUsingEncoding_allowLossyConversion_1, + encoding, + lossy, + ); return NSData._(_ret, _lib, retain: true, release: true); } NSData dataUsingEncoding_(int encoding) { - final _ret = - _lib._objc_msgSend_198(_id, _lib._sel_dataUsingEncoding_1, encoding); + final _ret = _lib._objc_msgSend_198( + _id, + _lib._sel_dataUsingEncoding_1, + encoding, + ); return NSData._(_ret, _lib, retain: true, release: true); } bool canBeConvertedToEncoding_(int encoding) { return _lib._objc_msgSend_76( - _id, _lib._sel_canBeConvertedToEncoding_1, encoding); + _id, + _lib._sel_canBeConvertedToEncoding_1, + encoding, + ); } ffi.Pointer cStringUsingEncoding_(int encoding) { return _lib._objc_msgSend_199( - _id, _lib._sel_cStringUsingEncoding_1, encoding); + _id, + _lib._sel_cStringUsingEncoding_1, + encoding, + ); } bool getCString_maxLength_encoding_( - ffi.Pointer buffer, int maxBufferCount, int encoding) { + ffi.Pointer buffer, + int maxBufferCount, + int encoding, + ) { return _lib._objc_msgSend_200( - _id, - _lib._sel_getCString_maxLength_encoding_1, - buffer, - maxBufferCount, - encoding); + _id, + _lib._sel_getCString_maxLength_encoding_1, + buffer, + maxBufferCount, + encoding, + ); } bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( - ffi.Pointer buffer, - int maxBufferCount, - ffi.Pointer usedBufferCount, - int encoding, - int options, - _NSRange range, - ffi.Pointer<_NSRange> leftover) { + ffi.Pointer buffer, + int maxBufferCount, + ffi.Pointer usedBufferCount, + int encoding, + int options, + _NSRange range, + ffi.Pointer<_NSRange> leftover, + ) { return _lib._objc_msgSend_201( - _id, - _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, - buffer, - maxBufferCount, - usedBufferCount, - encoding, - options, - range, - leftover); + _id, + _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, + buffer, + maxBufferCount, + usedBufferCount, + encoding, + options, + range, + leftover, + ); } int maximumLengthOfBytesUsingEncoding_(int enc) { return _lib._objc_msgSend_73( - _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); + _id, + _lib._sel_maximumLengthOfBytesUsingEncoding_1, + enc, + ); } int lengthOfBytesUsingEncoding_(int enc) { return _lib._objc_msgSend_73( - _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); + _id, + _lib._sel_lengthOfBytesUsingEncoding_1, + enc, + ); } static ffi.Pointer getAvailableStringEncodings( - NativeMacOsFramework _lib) { + NativeMacOsFramework _lib, + ) { return _lib._objc_msgSend_202( - _lib._class_NSString1, _lib._sel_availableStringEncodings1); + _lib._class_NSString1, + _lib._sel_availableStringEncodings1, + ); } static NSString localizedNameOfStringEncoding_( - NativeMacOsFramework _lib, int encoding) { - final _ret = _lib._objc_msgSend_163(_lib._class_NSString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); + NativeMacOsFramework _lib, + int encoding, + ) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSString1, + _lib._sel_localizedNameOfStringEncoding_1, + encoding, + ); return NSString._(_ret, _lib, retain: true, release: true); } static int getDefaultCStringEncoding(NativeMacOsFramework _lib) { return _lib._objc_msgSend_12( - _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); + _lib._class_NSString1, + _lib._sel_defaultCStringEncoding1, + ); } NSString? get decomposedStringWithCanonicalMapping { final _ret = _lib._objc_msgSend_55( - _id, _lib._sel_decomposedStringWithCanonicalMapping1); + _id, + _lib._sel_decomposedStringWithCanonicalMapping1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -11304,7 +14141,9 @@ class NSString extends NSObject { NSString? get precomposedStringWithCanonicalMapping { final _ret = _lib._objc_msgSend_55( - _id, _lib._sel_precomposedStringWithCanonicalMapping1); + _id, + _lib._sel_precomposedStringWithCanonicalMapping1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -11312,7 +14151,9 @@ class NSString extends NSObject { NSString? get decomposedStringWithCompatibilityMapping { final _ret = _lib._objc_msgSend_55( - _id, _lib._sel_decomposedStringWithCompatibilityMapping1); + _id, + _lib._sel_decomposedStringWithCompatibilityMapping1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -11320,117 +14161,152 @@ class NSString extends NSObject { NSString? get precomposedStringWithCompatibilityMapping { final _ret = _lib._objc_msgSend_55( - _id, _lib._sel_precomposedStringWithCompatibilityMapping1); + _id, + _lib._sel_precomposedStringWithCompatibilityMapping1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSArray componentsSeparatedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_109(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_109( + _id, + _lib._sel_componentsSeparatedByString_1, + separator?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { final _ret = _lib._objc_msgSend_203( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); + _id, + _lib._sel_componentsSeparatedByCharactersInSet_1, + separator?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_204(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_204( + _id, + _lib._sel_stringByTrimmingCharactersInSet_1, + set?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString? padString, int padIndex) { + int newLength, + NSString? padString, + int padIndex, + ) { final _ret = _lib._objc_msgSend_205( - _id, - _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, - newLength, - padString?._id ?? ffi.nullptr, - padIndex); + _id, + _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, + newLength, + padString?._id ?? ffi.nullptr, + padIndex, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { final _ret = _lib._objc_msgSend_206( - _id, - _lib._sel_stringByFoldingWithOptions_locale_1, - options, - locale?._id ?? ffi.nullptr); + _id, + _lib._sel_stringByFoldingWithOptions_locale_1, + options, + locale?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, - int options, - _NSRange searchRange) { + NSString? target, + NSString? replacement, + int options, + _NSRange searchRange, + ) { final _ret = _lib._objc_msgSend_207( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingOccurrencesOfString_withString_( - NSString? target, NSString? replacement) { + NSString? target, + NSString? replacement, + ) { final _ret = _lib._objc_msgSend_208( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr); + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByReplacingCharactersInRange_withString_( - _NSRange range, NSString? replacement) { + _NSRange range, + NSString? replacement, + ) { final _ret = _lib._objc_msgSend_209( - _id, - _lib._sel_stringByReplacingCharactersInRange_withString_1, - range, - replacement?._id ?? ffi.nullptr); + _id, + _lib._sel_stringByReplacingCharactersInRange_withString_1, + range, + replacement?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString stringByApplyingTransform_reverse_( - NSString transform, bool reverse) { - final _ret = _lib._objc_msgSend_210(_id, - _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); + NSString transform, + bool reverse, + ) { + final _ret = _lib._objc_msgSend_210( + _id, + _lib._sel_stringByApplyingTransform_reverse_1, + transform._id, + reverse, + ); return NSString._(_ret, _lib, retain: true, release: true); } - bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, - int enc, ffi.Pointer> error) { + bool writeToURL_atomically_encoding_error_( + NSURL? url, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, + ) { return _lib._objc_msgSend_211( - _id, - _lib._sel_writeToURL_atomically_encoding_error_1, - url?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); + _id, + _lib._sel_writeToURL_atomically_encoding_error_1, + url?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error, + ); } bool writeToFile_atomically_encoding_error_( - NSString? path, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error) { + NSString? path, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, + ) { return _lib._objc_msgSend_212( - _id, - _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); + _id, + _lib._sel_writeToFile_atomically_encoding_error_1, + path?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error, + ); } NSString? get description { @@ -11445,177 +14321,238 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { + ffi.Pointer characters, + int length, + bool freeBuffer, + ) { final _ret = _lib._objc_msgSend_213( - _id, - _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, - characters, - length, - freeBuffer); + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer, + ); return NSString._(_ret, _lib, retain: false, release: true); } NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, int len, ObjCBlock13 deallocator) { + ffi.Pointer chars, + int len, + ObjCBlock13 deallocator, + ) { final _ret = _lib._objc_msgSend_214( - _id, - _lib._sel_initWithCharactersNoCopy_length_deallocator_1, - chars, - len, - deallocator._id); + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator._id, + ); return NSString._(_ret, _lib, retain: false, release: true); } NSString initWithCharacters_length_( - ffi.Pointer characters, int length) { + ffi.Pointer characters, + int length, + ) { final _ret = _lib._objc_msgSend_215( - _id, _lib._sel_initWithCharacters_length_1, characters, length); + _id, + _lib._sel_initWithCharacters_length_1, + characters, + length, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { final _ret = _lib._objc_msgSend_216( - _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + _id, + _lib._sel_initWithUTF8String_1, + nullTerminatedCString, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithString_(NSString? aString) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithString_1, + aString?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_(NSString? format) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithFormat_1, + format?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_arguments_( - NSString? format, ffi.Pointer argList) { + NSString? format, + ffi.Pointer argList, + ) { final _ret = _lib._objc_msgSend_217( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); + _id, + _lib._sel_initWithFormat_arguments_1, + format?._id ?? ffi.nullptr, + argList, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_218(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); + final _ret = _lib._objc_msgSend_218( + _id, + _lib._sel_initWithFormat_locale_1, + format?._id ?? ffi.nullptr, + locale._id, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer argList) { + NSString? format, + NSObject locale, + ffi.Pointer argList, + ) { final _ret = _lib._objc_msgSend_219( - _id, - _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, - argList); + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format?._id ?? ffi.nullptr, + locale._id, + argList, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_220( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer> error) { + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_221( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - error); + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer argList, - ffi.Pointer> error) { + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer argList, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_222( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - argList, - error); + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + argList, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString - initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer argList, - ffi.Pointer> error) { + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer argList, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_223( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - argList, - error); + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + argList, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_224(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); + final _ret = _lib._objc_msgSend_224( + _id, + _lib._sel_initWithData_encoding_1, + data?._id ?? ffi.nullptr, + encoding, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { + ffi.Pointer bytes, + int len, + int encoding, + ) { final _ret = _lib._objc_msgSend_225( - _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + _id, + _lib._sel_initWithBytes_length_encoding_1, + bytes, + len, + encoding, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + ffi.Pointer bytes, + int len, + int encoding, + bool freeBuffer, + ) { final _ret = _lib._objc_msgSend_226( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, - bytes, - len, - encoding, - freeBuffer); + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer, + ); return NSString._(_ret, _lib, retain: false, release: true); } NSString initWithBytesNoCopy_length_encoding_deallocator_( - ffi.Pointer bytes, - int len, - int encoding, - ObjCBlock14 deallocator) { + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock14 deallocator, + ) { final _ret = _lib._objc_msgSend_227( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, - bytes, - len, - encoding, - deallocator._id); + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator._id, + ); return NSString._(_ret, _lib, retain: false, release: true); } @@ -11625,201 +14562,267 @@ class NSString extends NSObject { } static NSString stringWithString_( - NativeMacOsFramework _lib, NSString? string) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? string, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSString1, + _lib._sel_stringWithString_1, + string?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } - static NSString stringWithCharacters_length_(NativeMacOsFramework _lib, - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_215(_lib._class_NSString1, - _lib._sel_stringWithCharacters_length_1, characters, length); + static NSString stringWithCharacters_length_( + NativeMacOsFramework _lib, + ffi.Pointer characters, + int length, + ) { + final _ret = _lib._objc_msgSend_215( + _lib._class_NSString1, + _lib._sel_stringWithCharacters_length_1, + characters, + length, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithUTF8String_( - NativeMacOsFramework _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_216(_lib._class_NSString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + NativeMacOsFramework _lib, + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _lib._objc_msgSend_216( + _lib._class_NSString1, + _lib._sel_stringWithUTF8String_1, + nullTerminatedCString, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithFormat_( - NativeMacOsFramework _lib, NSString? format) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? format, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSString1, + _lib._sel_stringWithFormat_1, + format?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString localizedStringWithFormat_( - NativeMacOsFramework _lib, NSString? format) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? format, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSString1, + _lib._sel_localizedStringWithFormat_1, + format?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeMacOsFramework _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_220( - _lib._class_NSString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); + _lib._class_NSString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NativeMacOsFramework _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + NativeMacOsFramework _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_220( - _lib._class_NSString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); + _lib._class_NSString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_228(_id, - _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + ffi.Pointer nullTerminatedCString, + int encoding, + ) { + final _ret = _lib._objc_msgSend_228( + _id, + _lib._sel_initWithCString_encoding_1, + nullTerminatedCString, + encoding, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithCString_encoding_( - NativeMacOsFramework _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_228(_lib._class_NSString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); + NativeMacOsFramework _lib, + ffi.Pointer cString, + int enc, + ) { + final _ret = _lib._objc_msgSend_228( + _lib._class_NSString1, + _lib._sel_stringWithCString_encoding_1, + cString, + enc, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { + NSURL? url, + int enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_229( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); + _id, + _lib._sel_initWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { + NSString? path, + int enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_230( - _id, - _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithContentsOfURL_encoding_error_( - NativeMacOsFramework _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSURL? url, + int enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_229( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithContentsOfFile_encoding_error_( - NativeMacOsFramework _lib, - NSString? path, - int enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSString? path, + int enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_230( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_231( - _id, - _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_232( - _id, - _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithContentsOfURL_usedEncoding_error_( - NativeMacOsFramework _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_231( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString stringWithContentsOfFile_usedEncoding_error_( - NativeMacOsFramework _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_232( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error, + ); return NSString._(_ret, _lib, retain: true, release: true); } static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - NativeMacOsFramework _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + NativeMacOsFramework _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion, + ) { return _lib._objc_msgSend_233( - _lib._class_NSString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); + _lib._class_NSString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion, + ); } NSObject propertyList() { @@ -11829,7 +14832,9 @@ class NSString extends NSObject { NSDictionary propertyListFromStringsFileFormat() { final _ret = _lib._objc_msgSend_234( - _id, _lib._sel_propertyListFromStringsFileFormat1); + _id, + _lib._sel_propertyListFromStringsFileFormat1, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -11851,90 +14856,146 @@ class NSString extends NSObject { void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { return _lib._objc_msgSend_235( - _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); + _id, + _lib._sel_getCString_maxLength_1, + bytes, + maxLength, + ); } - void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, - int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { + void getCString_maxLength_range_remainingRange_( + ffi.Pointer bytes, + int maxLength, + _NSRange aRange, + ffi.Pointer<_NSRange> leftoverRange, + ) { return _lib._objc_msgSend_236( - _id, - _lib._sel_getCString_maxLength_range_remainingRange_1, - bytes, - maxLength, - aRange, - leftoverRange); + _id, + _lib._sel_getCString_maxLength_range_remainingRange_1, + bytes, + maxLength, + aRange, + leftoverRange, + ); } bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_111(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + return _lib._objc_msgSend_111( + _id, + _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, + useAuxiliaryFile, + ); } bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_112(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + return _lib._objc_msgSend_112( + _id, + _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, + atomically, + ); } NSObject initWithContentsOfFile_(NSString? path) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject initWithContentsOfURL_(NSURL? url) { final _ret = _lib._objc_msgSend_237( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject stringWithContentsOfFile_( - NativeMacOsFramework _lib, NSString? path) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? path, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject stringWithContentsOfURL_( - NativeMacOsFramework _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSURL? url, + ) { + final _ret = _lib._objc_msgSend_237( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject initWithCStringNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool freeBuffer) { + ffi.Pointer bytes, + int length, + bool freeBuffer, + ) { final _ret = _lib._objc_msgSend_238( - _id, - _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, - bytes, - length, - freeBuffer); + _id, + _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, + bytes, + length, + freeBuffer, + ); return NSObject._(_ret, _lib, retain: false, release: true); } NSObject initWithCString_length_(ffi.Pointer bytes, int length) { final _ret = _lib._objc_msgSend_228( - _id, _lib._sel_initWithCString_length_1, bytes, length); + _id, + _lib._sel_initWithCString_length_1, + bytes, + length, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject initWithCString_(ffi.Pointer bytes) { - final _ret = - _lib._objc_msgSend_216(_id, _lib._sel_initWithCString_1, bytes); + final _ret = _lib._objc_msgSend_216( + _id, + _lib._sel_initWithCString_1, + bytes, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject stringWithCString_length_( - NativeMacOsFramework _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_228(_lib._class_NSString1, - _lib._sel_stringWithCString_length_1, bytes, length); + NativeMacOsFramework _lib, + ffi.Pointer bytes, + int length, + ) { + final _ret = _lib._objc_msgSend_228( + _lib._class_NSString1, + _lib._sel_stringWithCString_length_1, + bytes, + length, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject stringWithCString_( - NativeMacOsFramework _lib, ffi.Pointer bytes) { + NativeMacOsFramework _lib, + ffi.Pointer bytes, + ) { final _ret = _lib._objc_msgSend_216( - _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); + _lib._class_NSString1, + _lib._sel_stringWithCString_1, + bytes, + ); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -11945,7 +15006,10 @@ class NSString extends NSObject { /// For strings with length variations, such as from a stringsdict file, this method returns the variant at the given width. If there is no variant at the given width, the one for the next smaller width is returned. And if there are none smaller, the smallest available is returned. For strings without variations, this method returns self. The unit that width is expressed in is decided by the application or framework. But it is intended to be some measurement indicative of the context a string would fit best to avoid truncation and wasted space. NSString variantFittingPresentationWidth_(int width) { final _ret = _lib._objc_msgSend_240( - _id, _lib._sel_variantFittingPresentationWidth_1, width); + _id, + _lib._sel_variantFittingPresentationWidth_1, + width, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -11965,9 +15029,12 @@ extension StringToNSString on String { } class NSCoder extends NSObject { - NSCoder._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSCoder._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSCoder] that points to the same underlying object as [other]. static NSCoder castFrom(T other) { @@ -11976,26 +15043,41 @@ class NSCoder extends NSObject { /// Returns a [NSCoder] that wraps the given raw object pointer. static NSCoder castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSCoder._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSCoder]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCoder1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCoder1, + ); } void encodeValueOfObjCType_at_( - ffi.Pointer type, ffi.Pointer addr) { + ffi.Pointer type, + ffi.Pointer addr, + ) { return _lib._objc_msgSend_14( - _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); + _id, + _lib._sel_encodeValueOfObjCType_at_1, + type, + addr, + ); } void encodeDataObject_(NSData? data) { return _lib._objc_msgSend_16( - _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeDataObject_1, + data?._id ?? ffi.nullptr, + ); } NSData decodeDataObject() { @@ -12004,14 +15086,25 @@ class NSCoder extends NSObject { } void decodeValueOfObjCType_at_size_( - ffi.Pointer type, ffi.Pointer data, int size) { + ffi.Pointer type, + ffi.Pointer data, + int size, + ) { return _lib._objc_msgSend_18( - _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); + _id, + _lib._sel_decodeValueOfObjCType_at_size_1, + type, + data, + size, + ); } int versionForClassName_(NSString? className) { return _lib._objc_msgSend_19( - _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); + _id, + _lib._sel_versionForClassName_1, + className?._id ?? ffi.nullptr, + ); } void encodeObject_(NSObject object) { @@ -12020,38 +15113,65 @@ class NSCoder extends NSObject { void encodeRootObject_(NSObject rootObject) { return _lib._objc_msgSend_20( - _id, _lib._sel_encodeRootObject_1, rootObject._id); + _id, + _lib._sel_encodeRootObject_1, + rootObject._id, + ); } void encodeBycopyObject_(NSObject anObject) { return _lib._objc_msgSend_20( - _id, _lib._sel_encodeBycopyObject_1, anObject._id); + _id, + _lib._sel_encodeBycopyObject_1, + anObject._id, + ); } void encodeByrefObject_(NSObject anObject) { return _lib._objc_msgSend_20( - _id, _lib._sel_encodeByrefObject_1, anObject._id); + _id, + _lib._sel_encodeByrefObject_1, + anObject._id, + ); } void encodeConditionalObject_(NSObject object) { return _lib._objc_msgSend_20( - _id, _lib._sel_encodeConditionalObject_1, object._id); + _id, + _lib._sel_encodeConditionalObject_1, + object._id, + ); } void encodeValuesOfObjCTypes_(ffi.Pointer types) { return _lib._objc_msgSend_21( - _id, _lib._sel_encodeValuesOfObjCTypes_1, types); + _id, + _lib._sel_encodeValuesOfObjCTypes_1, + types, + ); } void encodeArrayOfObjCType_count_at_( - ffi.Pointer type, int count, ffi.Pointer array) { + ffi.Pointer type, + int count, + ffi.Pointer array, + ) { return _lib._objc_msgSend_22( - _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); + _id, + _lib._sel_encodeArrayOfObjCType_count_at_1, + type, + count, + array, + ); } void encodeBytes_length_(ffi.Pointer byteaddr, int length) { return _lib._objc_msgSend_23( - _id, _lib._sel_encodeBytes_length_1, byteaddr, length); + _id, + _lib._sel_encodeBytes_length_1, + byteaddr, + length, + ); } NSObject decodeObject() { @@ -12060,32 +15180,54 @@ class NSCoder extends NSObject { } NSObject decodeTopLevelObjectAndReturnError_( - ffi.Pointer> error) { + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_24( - _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); + _id, + _lib._sel_decodeTopLevelObjectAndReturnError_1, + error, + ); return NSObject._(_ret, _lib, retain: true, release: true); } void decodeValuesOfObjCTypes_(ffi.Pointer types) { return _lib._objc_msgSend_21( - _id, _lib._sel_decodeValuesOfObjCTypes_1, types); + _id, + _lib._sel_decodeValuesOfObjCTypes_1, + types, + ); } void decodeArrayOfObjCType_count_at_( - ffi.Pointer itemType, int count, ffi.Pointer array) { - return _lib._objc_msgSend_22(_id, - _lib._sel_decodeArrayOfObjCType_count_at_1, itemType, count, array); + ffi.Pointer itemType, + int count, + ffi.Pointer array, + ) { + return _lib._objc_msgSend_22( + _id, + _lib._sel_decodeArrayOfObjCType_count_at_1, + itemType, + count, + array, + ); } ffi.Pointer decodeBytesWithReturnedLength_( - ffi.Pointer lengthp) { + ffi.Pointer lengthp, + ) { return _lib._objc_msgSend_25( - _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); + _id, + _lib._sel_decodeBytesWithReturnedLength_1, + lengthp, + ); } void encodePropertyList_(NSObject aPropertyList) { return _lib._objc_msgSend_20( - _id, _lib._sel_encodePropertyList_1, aPropertyList._id); + _id, + _lib._sel_encodePropertyList_1, + aPropertyList._id, + ); } NSObject decodePropertyList() { @@ -12110,122 +15252,196 @@ class NSCoder extends NSObject { } void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_29(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_29( + _id, + _lib._sel_encodeObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr, + ); } void encodeConditionalObject_forKey_(NSObject object, NSString? key) { return _lib._objc_msgSend_29( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeConditionalObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr, + ); } void encodeBool_forKey_(bool value, NSString? key) { return _lib._objc_msgSend_30( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeBool_forKey_1, + value, + key?._id ?? ffi.nullptr, + ); } void encodeInt_forKey_(int value, NSString? key) { return _lib._objc_msgSend_31( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeInt_forKey_1, + value, + key?._id ?? ffi.nullptr, + ); } void encodeInt32_forKey_(int value, NSString? key) { return _lib._objc_msgSend_32( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeInt32_forKey_1, + value, + key?._id ?? ffi.nullptr, + ); } void encodeInt64_forKey_(int value, NSString? key) { return _lib._objc_msgSend_33( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeInt64_forKey_1, + value, + key?._id ?? ffi.nullptr, + ); } void encodeFloat_forKey_(double value, NSString? key) { return _lib._objc_msgSend_34( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeFloat_forKey_1, + value, + key?._id ?? ffi.nullptr, + ); } void encodeDouble_forKey_(double value, NSString? key) { return _lib._objc_msgSend_35( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeDouble_forKey_1, + value, + key?._id ?? ffi.nullptr, + ); } void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_36(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); + ffi.Pointer bytes, + int length, + NSString? key, + ) { + return _lib._objc_msgSend_36( + _id, + _lib._sel_encodeBytes_length_forKey_1, + bytes, + length, + key?._id ?? ffi.nullptr, + ); } bool containsValueForKey_(NSString? key) { return _lib._objc_msgSend_37( - _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_containsValueForKey_1, + key?._id ?? ffi.nullptr, + ); } NSObject decodeObjectForKey_(NSString? key) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_decodeObjectForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeObjectForKey_1, + key?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject decodeTopLevelObjectForKey_error_( - NSString? key, ffi.Pointer> error) { + NSString? key, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_39( - _id, - _lib._sel_decodeTopLevelObjectForKey_error_1, - key?._id ?? ffi.nullptr, - error); + _id, + _lib._sel_decodeTopLevelObjectForKey_error_1, + key?._id ?? ffi.nullptr, + error, + ); return NSObject._(_ret, _lib, retain: true, release: true); } bool decodeBoolForKey_(NSString? key) { return _lib._objc_msgSend_37( - _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeBoolForKey_1, + key?._id ?? ffi.nullptr, + ); } int decodeIntForKey_(NSString? key) { return _lib._objc_msgSend_40( - _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeIntForKey_1, + key?._id ?? ffi.nullptr, + ); } int decodeInt32ForKey_(NSString? key) { return _lib._objc_msgSend_41( - _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeInt32ForKey_1, + key?._id ?? ffi.nullptr, + ); } int decodeInt64ForKey_(NSString? key) { return _lib._objc_msgSend_42( - _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeInt64ForKey_1, + key?._id ?? ffi.nullptr, + ); } double decodeFloatForKey_(NSString? key) { return _lib._objc_msgSend_43( - _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeFloatForKey_1, + key?._id ?? ffi.nullptr, + ); } double decodeDoubleForKey_(NSString? key) { return _lib._objc_msgSend_44( - _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeDoubleForKey_1, + key?._id ?? ffi.nullptr, + ); } ffi.Pointer decodeBytesForKey_returnedLength_( - NSString? key, ffi.Pointer lengthp) { + NSString? key, + ffi.Pointer lengthp, + ) { return _lib._objc_msgSend_45( - _id, - _lib._sel_decodeBytesForKey_returnedLength_1, - key?._id ?? ffi.nullptr, - lengthp); + _id, + _lib._sel_decodeBytesForKey_returnedLength_1, + key?._id ?? ffi.nullptr, + lengthp, + ); } void encodeInteger_forKey_(int value, NSString? key) { return _lib._objc_msgSend_46( - _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeInteger_forKey_1, + value, + key?._id ?? ffi.nullptr, + ); } int decodeIntegerForKey_(NSString? key) { return _lib._objc_msgSend_19( - _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeIntegerForKey_1, + key?._id ?? ffi.nullptr, + ); } bool get requiresSecureCoding { @@ -12234,87 +15450,110 @@ class NSCoder extends NSObject { NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { final _ret = _lib._objc_msgSend_47( - _id, - _lib._sel_decodeObjectOfClass_forKey_1, - aClass._id, - key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeObjectOfClass_forKey_1, + aClass._id, + key?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, - NSString? key, ffi.Pointer> error) { + NSObject decodeTopLevelObjectOfClass_forKey_error_( + NSObject aClass, + NSString? key, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_48( - _id, - _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, - aClass._id, - key?._id ?? ffi.nullptr, - error); + _id, + _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, + aClass._id, + key?._id ?? ffi.nullptr, + error, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { final _ret = _lib._objc_msgSend_113( - _id, - _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, - cls._id, - key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, + cls._id, + key?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( - NSObject keyCls, NSObject objectCls, NSString? key) { + NSObject keyCls, + NSObject objectCls, + NSString? key, + ) { final _ret = _lib._objc_msgSend_132( - _id, - _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, - keyCls._id, - objectCls._id, - key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, + keyCls._id, + objectCls._id, + key?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { final _ret = _lib._objc_msgSend_143( - _id, - _lib._sel_decodeObjectOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeObjectOfClasses_forKey_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, - NSString? key, ffi.Pointer> error) { + NSObject decodeTopLevelObjectOfClasses_forKey_error_( + NSSet? classes, + NSString? key, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_144( - _id, - _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr, - error); + _id, + _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr, + error, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { final _ret = _lib._objc_msgSend_145( - _id, - _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( - NSSet? keyClasses, NSSet? objectClasses, NSString? key) { + NSSet? keyClasses, + NSSet? objectClasses, + NSString? key, + ) { final _ret = _lib._objc_msgSend_146( - _id, - _lib._sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1, - keyClasses?._id ?? ffi.nullptr, - objectClasses?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1, + keyClasses?._id ?? ffi.nullptr, + objectClasses?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSObject decodePropertyListForKey_(NSString? key) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_decodePropertyListForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodePropertyListForKey_1, + key?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -12327,7 +15566,10 @@ class NSCoder extends NSObject { void failWithError_(NSError? error) { return _lib._objc_msgSend_148( - _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); + _id, + _lib._sel_failWithError_1, + error?._id ?? ffi.nullptr, + ); } int get decodingFailurePolicy { @@ -12351,9 +15593,15 @@ class NSCoder extends NSObject { } void decodeValueOfObjCType_at_( - ffi.Pointer type, ffi.Pointer data) { + ffi.Pointer type, + ffi.Pointer data, + ) { return _lib._objc_msgSend_14( - _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); + _id, + _lib._sel_decodeValueOfObjCType_at_1, + type, + data, + ); } void encodePoint_(CGPoint point) { @@ -12382,32 +15630,53 @@ class NSCoder extends NSObject { void encodePoint_forKey_(CGPoint point, NSString? key) { return _lib._objc_msgSend_157( - _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodePoint_forKey_1, + point, + key?._id ?? ffi.nullptr, + ); } void encodeSize_forKey_(CGSize size, NSString? key) { return _lib._objc_msgSend_158( - _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeSize_forKey_1, + size, + key?._id ?? ffi.nullptr, + ); } void encodeRect_forKey_(CGRect rect, NSString? key) { return _lib._objc_msgSend_159( - _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); + _id, + _lib._sel_encodeRect_forKey_1, + rect, + key?._id ?? ffi.nullptr, + ); } CGPoint decodePointForKey_(NSString? key) { return _lib._objc_msgSend_160( - _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodePointForKey_1, + key?._id ?? ffi.nullptr, + ); } CGSize decodeSizeForKey_(NSString? key) { return _lib._objc_msgSend_161( - _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeSizeForKey_1, + key?._id ?? ffi.nullptr, + ); } CGRect decodeRectForKey_(NSString? key) { return _lib._objc_msgSend_162( - _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_decodeRectForKey_1, + key?._id ?? ffi.nullptr, + ); } static NSCoder new1(NativeMacOsFramework _lib) { @@ -12422,9 +15691,12 @@ class NSCoder extends NSObject { } class NSData extends _ObjCWrapper { - NSData._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSData._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSData] that points to the same underlying object as [other]. static NSData castFrom(T other) { @@ -12433,15 +15705,21 @@ class NSData extends _ObjCWrapper { /// Returns a [NSData] that wraps the given raw object pointer. static NSData castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSData._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSData]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSData1, + ); } ffi.Pointer get bytes { @@ -12450,9 +15728,12 @@ class NSData extends _ObjCWrapper { } class NSError extends _ObjCWrapper { - NSError._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSError._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSError] that points to the same underlying object as [other]. static NSError castFrom(T other) { @@ -12461,22 +15742,31 @@ class NSError extends _ObjCWrapper { /// Returns a [NSError] that wraps the given raw object pointer. static NSError castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSError._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSError]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSError1, + ); } } class NSArray extends NSObject { - NSArray._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSArray._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSArray] that points to the same underlying object as [other]. static NSArray castFrom(T other) { @@ -12485,15 +15775,21 @@ class NSArray extends NSObject { /// Returns a [NSArray] that wraps the given raw object pointer. static NSArray castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSArray._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSArray]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSArray1, + ); } int get count { @@ -12512,35 +15808,51 @@ class NSArray extends NSObject { } NSArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { + ffi.Pointer> objects, + int cnt, + ) { final _ret = _lib._objc_msgSend_50( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); + _id, + _lib._sel_initWithObjects_count_1, + objects, + cnt, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray arrayByAddingObject_(NSObject anObject) { final _ret = _lib._objc_msgSend_52( - _id, _lib._sel_arrayByAddingObject_1, anObject._id); + _id, + _lib._sel_arrayByAddingObject_1, + anObject._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { final _ret = _lib._objc_msgSend_53( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); + _id, + _lib._sel_arrayByAddingObjectsFromArray_1, + otherArray?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_54(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_54( + _id, + _lib._sel_componentsJoinedByString_1, + separator?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -12557,26 +15869,42 @@ class NSArray extends NSObject { NSString descriptionWithLocale_(NSObject locale) { final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + _id, + _lib._sel_descriptionWithLocale_1, + locale._id, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString descriptionWithLocale_indent_(NSObject locale, int level) { final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale._id, + level, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSObject firstObjectCommonWithArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_58(_id, - _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_58( + _id, + _lib._sel_firstObjectCommonWithArray_1, + otherArray?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { + ffi.Pointer> objects, + _NSRange range, + ) { return _lib._objc_msgSend_59( - _id, _lib._sel_getObjects_range_1, objects, range); + _id, + _lib._sel_getObjects_range_1, + objects, + range, + ); } int indexOfObject_(NSObject anObject) { @@ -12585,22 +15913,36 @@ class NSArray extends NSObject { int indexOfObject_inRange_(NSObject anObject, _NSRange range) { return _lib._objc_msgSend_61( - _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); + _id, + _lib._sel_indexOfObject_inRange_1, + anObject._id, + range, + ); } int indexOfObjectIdenticalTo_(NSObject anObject) { return _lib._objc_msgSend_60( - _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); + _id, + _lib._sel_indexOfObjectIdenticalTo_1, + anObject._id, + ); } int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { return _lib._objc_msgSend_61( - _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); + _id, + _lib._sel_indexOfObjectIdenticalTo_inRange_1, + anObject._id, + range, + ); } bool isEqualToArray_(NSArray? otherArray) { return _lib._objc_msgSend_62( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + _id, + _lib._sel_isEqualToArray_1, + otherArray?._id ?? ffi.nullptr, + ); } NSObject get firstObject { @@ -12631,166 +15973,251 @@ class NSArray extends NSObject { } NSArray sortedArrayUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context) { + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, + ffi.Pointer context, + ) { final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); + _id, + _lib._sel_sortedArrayUsingFunction_context_1, + comparator, + context, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayUsingFunction_context_hint_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - NSData? hint) { + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + comparator, + ffi.Pointer context, + NSData? hint, + ) { final _ret = _lib._objc_msgSend_65( - _id, - _lib._sel_sortedArrayUsingFunction_context_hint_1, - comparator, - context, - hint?._id ?? ffi.nullptr); + _id, + _lib._sel_sortedArrayUsingFunction_context_hint_1, + comparator, + context, + hint?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_sortedArrayUsingSelector_1, comparator); + _id, + _lib._sel_sortedArrayUsingSelector_1, + comparator, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray subarrayWithRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_67(_id, _lib._sel_subarrayWithRange_1, range); + final _ret = _lib._objc_msgSend_67( + _id, + _lib._sel_subarrayWithRange_1, + range, + ); return NSArray._(_ret, _lib, retain: true, release: true); } bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { + NSURL? url, + ffi.Pointer> error, + ) { return _lib._objc_msgSend_68( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + _id, + _lib._sel_writeToURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { return _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + _id, + _lib._sel_makeObjectsPerformSelector_1, + aSelector, + ); } void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { + ffi.Pointer aSelector, + NSObject argument, + ) { return _lib._objc_msgSend_69( - _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id, + ); } NSArray objectsAtIndexes_(NSIndexSet? indexes) { final _ret = _lib._objc_msgSend_90( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + _id, + _lib._sel_objectsAtIndexes_1, + indexes?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_49(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + final _ret = _lib._objc_msgSend_49( + _id, + _lib._sel_objectAtIndexedSubscript_1, + idx, + ); return NSObject._(_ret, _lib, retain: true, release: true); } void enumerateObjectsUsingBlock_(ObjCBlock3 block) { return _lib._objc_msgSend_91( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + _id, + _lib._sel_enumerateObjectsUsingBlock_1, + block._id, + ); } void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_92(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + return _lib._objc_msgSend_92( + _id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, + opts, + block._id, + ); } void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock3 block) { + NSIndexSet? s, + int opts, + ObjCBlock3 block, + ) { return _lib._objc_msgSend_93( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s?._id ?? ffi.nullptr, + opts, + block._id, + ); } int indexOfObjectPassingTest_(ObjCBlock4 predicate) { return _lib._objc_msgSend_94( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); + _id, + _lib._sel_indexOfObjectPassingTest_1, + predicate._id, + ); } int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock4 predicate) { - return _lib._objc_msgSend_95(_id, - _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); + return _lib._objc_msgSend_95( + _id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, + opts, + predicate._id, + ); } int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { + NSIndexSet? s, + int opts, + ObjCBlock4 predicate, + ) { return _lib._objc_msgSend_96( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); + _id, + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id, + ); } NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock4 predicate) { final _ret = _lib._objc_msgSend_97( - _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + _id, + _lib._sel_indexesOfObjectsPassingTest_1, + predicate._id, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock4 predicate) { + int opts, + ObjCBlock4 predicate, + ) { final _ret = _lib._objc_msgSend_98( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); + _id, + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock4 predicate) { + NSIndexSet? s, + int opts, + ObjCBlock4 predicate, + ) { final _ret = _lib._objc_msgSend_99( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayUsingComparator_(ObjCBlock5 cmptr) { final _ret = _lib._objc_msgSend_100( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); + _id, + _lib._sel_sortedArrayUsingComparator_1, + cmptr._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock5 cmptr) { - final _ret = _lib._objc_msgSend_101(_id, - _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); + final _ret = _lib._objc_msgSend_101( + _id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, + opts, + cmptr._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, _NSRange r, int opts, ObjCBlock5 cmp) { + NSObject obj, + _NSRange r, + int opts, + ObjCBlock5 cmp, + ) { return _lib._objc_msgSend_102( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - obj._id, - r, - opts, - cmp._id); + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + obj._id, + r, + opts, + cmp._id, + ); } static NSArray array(NativeMacOsFramework _lib) { @@ -12799,99 +16226,147 @@ class NSArray extends NSObject { } static NSArray arrayWithObject_( - NativeMacOsFramework _lib, NSObject anObject) { + NativeMacOsFramework _lib, + NSObject anObject, + ) { final _ret = _lib._objc_msgSend_103( - _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); + _lib._class_NSArray1, + _lib._sel_arrayWithObject_1, + anObject._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithObjects_count_(NativeMacOsFramework _lib, - ffi.Pointer> objects, int cnt) { + static NSArray arrayWithObjects_count_( + NativeMacOsFramework _lib, + ffi.Pointer> objects, + int cnt, + ) { final _ret = _lib._objc_msgSend_50( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); + _lib._class_NSArray1, + _lib._sel_arrayWithObjects_count_1, + objects, + cnt, + ); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithObjects_( - NativeMacOsFramework _lib, NSObject firstObj) { + NativeMacOsFramework _lib, + NSObject firstObj, + ) { final _ret = _lib._objc_msgSend_103( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); + _lib._class_NSArray1, + _lib._sel_arrayWithObjects_1, + firstObj._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithArray_(NativeMacOsFramework _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_58(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_58( + _lib._class_NSArray1, + _lib._sel_arrayWithArray_1, + array?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_103(_id, _lib._sel_initWithObjects_1, firstObj._id); + final _ret = _lib._objc_msgSend_103( + _id, + _lib._sel_initWithObjects_1, + firstObj._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithArray_(NSArray? array) { final _ret = _lib._objc_msgSend_58( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithArray_1, + array?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_104(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + final _ret = _lib._objc_msgSend_104( + _id, + _lib._sel_initWithArray_copyItems_1, + array?._id ?? ffi.nullptr, + flag, + ); return NSArray._(_ret, _lib, retain: false, release: true); } NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { + NSURL? url, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_105( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); + _id, + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_(NativeMacOsFramework _lib, - NSURL? url, ffi.Pointer> error) { + static NSArray arrayWithContentsOfURL_error_( + NativeMacOsFramework _lib, + NSURL? url, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_105( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); + _lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSObject differenceFromArray_withOptions_usingEquivalenceTest_( - NSArray? other, int options, ObjCBlock6 block) { + NSArray? other, + int options, + ObjCBlock6 block, + ) { final _ret = _lib._objc_msgSend_106( - _id, - _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); + _id, + _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, + other?._id ?? ffi.nullptr, + options, + block._id, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject differenceFromArray_withOptions_(NSArray? other, int options) { final _ret = _lib._objc_msgSend_107( - _id, - _lib._sel_differenceFromArray_withOptions_1, - other?._id ?? ffi.nullptr, - options); + _id, + _lib._sel_differenceFromArray_withOptions_1, + other?._id ?? ffi.nullptr, + options, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject differenceFromArray_(NSArray? other) { final _ret = _lib._objc_msgSend_58( - _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); + _id, + _lib._sel_differenceFromArray_1, + other?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSArray arrayByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_52(_id, - _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_52( + _id, + _lib._sel_arrayByApplyingDifference_1, + difference?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -12900,39 +16375,63 @@ class NSArray extends NSObject { } static NSArray arrayWithContentsOfFile_( - NativeMacOsFramework _lib, NSString? path) { - final _ret = _lib._objc_msgSend_109(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? path, + ) { + final _ret = _lib._objc_msgSend_109( + _lib._class_NSArray1, + _lib._sel_arrayWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray arrayWithContentsOfURL_( - NativeMacOsFramework _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_110(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSURL? url, + ) { + final _ret = _lib._objc_msgSend_110( + _lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithContentsOfFile_(NSString? path) { final _ret = _lib._objc_msgSend_109( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray initWithContentsOfURL_(NSURL? url) { final _ret = _lib._objc_msgSend_110( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_111(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + return _lib._objc_msgSend_111( + _id, + _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, + useAuxiliaryFile, + ); } bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_112(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + return _lib._objc_msgSend_112( + _id, + _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, + atomically, + ); } static NSArray new1(NativeMacOsFramework _lib) { @@ -12955,9 +16454,12 @@ final class _NSRange extends ffi.Struct { } class NSEnumerator extends NSObject { - NSEnumerator._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSEnumerator._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSEnumerator] that points to the same underlying object as [other]. static NSEnumerator castFrom(T other) { @@ -12966,15 +16468,21 @@ class NSEnumerator extends NSObject { /// Returns a [NSEnumerator] that wraps the given raw object pointer. static NSEnumerator castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSEnumerator._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSEnumerator]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSEnumerator1, + ); } NSObject nextObject() { @@ -12990,22 +16498,29 @@ class NSEnumerator extends NSObject { } static NSEnumerator new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSEnumerator1, + _lib._sel_new1, + ); return NSEnumerator._(_ret, _lib, retain: false, release: true); } static NSEnumerator alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSEnumerator1, + _lib._sel_alloc1, + ); return NSEnumerator._(_ret, _lib, retain: false, release: true); } } class NSURL extends _ObjCWrapper { - NSURL._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSURL._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSURL] that points to the same underlying object as [other]. static NSURL castFrom(T other) { @@ -13014,22 +16529,31 @@ class NSURL extends _ObjCWrapper { /// Returns a [NSURL] that wraps the given raw object pointer. static NSURL castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSURL._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSURL]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURL1, + ); } } class NSIndexSet extends NSObject { - NSIndexSet._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSIndexSet._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSIndexSet] that points to the same underlying object as [other]. static NSIndexSet castFrom(T other) { @@ -13038,45 +16562,67 @@ class NSIndexSet extends NSObject { /// Returns a [NSIndexSet] that wraps the given raw object pointer. static NSIndexSet castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSIndexSet._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSIndexSet]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexSet1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSIndexSet1, + ); } static NSIndexSet indexSet(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexSet1, + _lib._sel_indexSet1, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } static NSIndexSet indexSetWithIndex_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_49( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); + _lib._class_NSIndexSet1, + _lib._sel_indexSetWithIndex_1, + value, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } static NSIndexSet indexSetWithIndexesInRange_( - NativeMacOsFramework _lib, _NSRange range) { + NativeMacOsFramework _lib, + _NSRange range, + ) { final _ret = _lib._objc_msgSend_70( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); + _lib._class_NSIndexSet1, + _lib._sel_indexSetWithIndexesInRange_1, + range, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet initWithIndexesInRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_70(_id, _lib._sel_initWithIndexesInRange_1, range); + final _ret = _lib._objc_msgSend_70( + _id, + _lib._sel_initWithIndexesInRange_1, + range, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { final _ret = _lib._objc_msgSend_71( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithIndexSet_1, + indexSet?._id ?? ffi.nullptr, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } @@ -13087,7 +16633,10 @@ class NSIndexSet extends NSObject { bool isEqualToIndexSet_(NSIndexSet? indexSet) { return _lib._objc_msgSend_72( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + _id, + _lib._sel_isEqualToIndexSet_1, + indexSet?._id ?? ffi.nullptr, + ); } int get count { @@ -13112,24 +16661,32 @@ class NSIndexSet extends NSObject { int indexGreaterThanOrEqualToIndex_(int value) { return _lib._objc_msgSend_73( - _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); + _id, + _lib._sel_indexGreaterThanOrEqualToIndex_1, + value, + ); } int indexLessThanOrEqualToIndex_(int value) { return _lib._objc_msgSend_73( - _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); + _id, + _lib._sel_indexLessThanOrEqualToIndex_1, + value, + ); } int getIndexes_maxCount_inIndexRange_( - ffi.Pointer indexBuffer, - int bufferSize, - ffi.Pointer<_NSRange> range) { + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer<_NSRange> range, + ) { return _lib._objc_msgSend_74( - _id, - _lib._sel_getIndexes_maxCount_inIndexRange_1, - indexBuffer, - bufferSize, - range); + _id, + _lib._sel_getIndexes_maxCount_inIndexRange_1, + indexBuffer, + bufferSize, + range, + ); } int countOfIndexesInRange_(_NSRange range) { @@ -13142,100 +16699,153 @@ class NSIndexSet extends NSObject { bool containsIndexesInRange_(_NSRange range) { return _lib._objc_msgSend_77( - _id, _lib._sel_containsIndexesInRange_1, range); + _id, + _lib._sel_containsIndexesInRange_1, + range, + ); } bool containsIndexes_(NSIndexSet? indexSet) { return _lib._objc_msgSend_72( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + _id, + _lib._sel_containsIndexes_1, + indexSet?._id ?? ffi.nullptr, + ); } bool intersectsIndexesInRange_(_NSRange range) { return _lib._objc_msgSend_77( - _id, _lib._sel_intersectsIndexesInRange_1, range); + _id, + _lib._sel_intersectsIndexesInRange_1, + range, + ); } void enumerateIndexesUsingBlock_(ObjCBlock block) { return _lib._objc_msgSend_78( - _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); + _id, + _lib._sel_enumerateIndexesUsingBlock_1, + block._id, + ); } void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock block) { - return _lib._objc_msgSend_79(_id, - _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); + return _lib._objc_msgSend_79( + _id, + _lib._sel_enumerateIndexesWithOptions_usingBlock_1, + opts, + block._id, + ); } void enumerateIndexesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock block) { + _NSRange range, + int opts, + ObjCBlock block, + ) { return _lib._objc_msgSend_80( - _id, - _lib._sel_enumerateIndexesInRange_options_usingBlock_1, - range, - opts, - block._id); + _id, + _lib._sel_enumerateIndexesInRange_options_usingBlock_1, + range, + opts, + block._id, + ); } int indexPassingTest_(ObjCBlock1 predicate) { return _lib._objc_msgSend_81( - _id, _lib._sel_indexPassingTest_1, predicate._id); + _id, + _lib._sel_indexPassingTest_1, + predicate._id, + ); } int indexWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { return _lib._objc_msgSend_82( - _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); + _id, + _lib._sel_indexWithOptions_passingTest_1, + opts, + predicate._id, + ); } int indexInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock1 predicate) { + _NSRange range, + int opts, + ObjCBlock1 predicate, + ) { return _lib._objc_msgSend_83( - _id, - _lib._sel_indexInRange_options_passingTest_1, - range, - opts, - predicate._id); + _id, + _lib._sel_indexInRange_options_passingTest_1, + range, + opts, + predicate._id, + ); } NSIndexSet indexesPassingTest_(ObjCBlock1 predicate) { final _ret = _lib._objc_msgSend_84( - _id, _lib._sel_indexesPassingTest_1, predicate._id); + _id, + _lib._sel_indexesPassingTest_1, + predicate._id, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock1 predicate) { final _ret = _lib._objc_msgSend_85( - _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); + _id, + _lib._sel_indexesWithOptions_passingTest_1, + opts, + predicate._id, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock1 predicate) { + _NSRange range, + int opts, + ObjCBlock1 predicate, + ) { final _ret = _lib._objc_msgSend_86( - _id, - _lib._sel_indexesInRange_options_passingTest_1, - range, - opts, - predicate._id); + _id, + _lib._sel_indexesInRange_options_passingTest_1, + range, + opts, + predicate._id, + ); return NSIndexSet._(_ret, _lib, retain: true, release: true); } void enumerateRangesUsingBlock_(ObjCBlock2 block) { return _lib._objc_msgSend_87( - _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); + _id, + _lib._sel_enumerateRangesUsingBlock_1, + block._id, + ); } void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock2 block) { - return _lib._objc_msgSend_88(_id, - _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); + return _lib._objc_msgSend_88( + _id, + _lib._sel_enumerateRangesWithOptions_usingBlock_1, + opts, + block._id, + ); } void enumerateRangesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock2 block) { + _NSRange range, + int opts, + ObjCBlock2 block, + ) { return _lib._objc_msgSend_89( - _id, - _lib._sel_enumerateRangesInRange_options_usingBlock_1, - range, - opts, - block._id); + _id, + _lib._sel_enumerateRangesInRange_options_usingBlock_1, + range, + opts, + block._id, + ); } static NSIndexSet new1(NativeMacOsFramework _lib) { @@ -13244,8 +16854,10 @@ class NSIndexSet extends NSObject { } static NSIndexSet alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexSet1, + _lib._sel_alloc1, + ); return NSIndexSet._(_ret, _lib, retain: false, release: true); } } @@ -13255,9 +16867,12 @@ class _ObjCBlockBase implements ffi.Finalizable { final NativeMacOsFramework _lib; bool _pendingRelease; - _ObjCBlockBase._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { + _ObjCBlockBase._( + this._id, + this._lib, { + bool retain = false, + bool release = false, + }) : _pendingRelease = release { if (retain) { _lib._Block_copy(_id.cast()); } @@ -13275,7 +16890,8 @@ class _ObjCBlockBase implements ffi.Finalizable { _lib._objc_releaseFinalizer11.detach(this); } else { throw StateError( - 'Released an ObjC block that was unowned or already released.'); + 'Released an ObjC block that was unowned or already released.', + ); } } @@ -13292,14 +16908,20 @@ class _ObjCBlockBase implements ffi.Finalizable { } void _ObjCBlock_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + ffi.Pointer<_ObjCBlock> block, + int arg0, + ffi.Pointer arg1, +) { return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction arg1)>()( - arg0, arg1); + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + >() + .asFunction arg1)>()( + arg0, + arg1, + ); } final _ObjCBlock_closureRegistry = {}; @@ -13311,59 +16933,79 @@ ffi.Pointer _ObjCBlock_registerClosure(Function fn) { } void _ObjCBlock_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + ffi.Pointer<_ObjCBlock> block, + int arg0, + ffi.Pointer arg1, +) { return _ObjCBlock_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock extends _ObjCBlockBase { ObjCBlock._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock.fromFunction(NativeMacOsFramework lib, - void Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock_closureTrampoline) - .cast(), - _ObjCBlock_registerClosure(fn)), - lib); + ObjCBlock.fromFunction( + NativeMacOsFramework lib, + void Function(int arg0, ffi.Pointer arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock_closureTrampoline).cast(), + _ObjCBlock_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(int arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + int arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } @@ -13403,14 +17045,20 @@ abstract class NSEnumerationOptions { } bool _ObjCBlock1_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + ffi.Pointer<_ObjCBlock> block, + int arg0, + ffi.Pointer arg1, +) { return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction arg1)>()( - arg0, arg1); + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + >() + .asFunction arg1)>()( + arg0, + arg1, + ); } final _ObjCBlock1_closureRegistry = {}; @@ -13422,71 +17070,97 @@ ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { } bool _ObjCBlock1_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + ffi.Pointer<_ObjCBlock> block, + int arg0, + ffi.Pointer arg1, +) { return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock1 extends _ObjCBlockBase { ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock1.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.UnsignedLong arg0, ffi.Pointer arg1) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock1_fnPtrTrampoline, false).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock1.fromFunction(NativeMacOsFramework lib, - bool Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_closureTrampoline, false) - .cast(), - _ObjCBlock1_registerClosure(fn)), - lib); + ObjCBlock1.fromFunction( + NativeMacOsFramework lib, + bool Function(int arg0, ffi.Pointer arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock1_closureTrampoline, false).cast(), + _ObjCBlock1_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; bool call(int arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + bool Function( + ffi.Pointer<_ObjCBlock> block, + int arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } void _ObjCBlock2_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function( - _NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1) + > + >() + .asFunction arg1)>()( + arg0, + arg1, + ); } final _ObjCBlock2_closureRegistry = {}; @@ -13498,67 +17172,105 @@ ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { } void _ObjCBlock2_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1, +) { return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock2 extends _ObjCBlockBase { ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock2.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock2_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock2_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock2.fromFunction(NativeMacOsFramework lib, - void Function(_NSRange arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock2_closureTrampoline) - .cast(), - _ObjCBlock2_registerClosure(fn)), - lib); + ObjCBlock2.fromFunction( + NativeMacOsFramework lib, + void Function(_NSRange arg0, ffi.Pointer arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock2_closureTrampoline).cast(), + _ObjCBlock2_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(_NSRange arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } -void _ObjCBlock3_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { +void _ObjCBlock3_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) + >()(arg0, arg1, arg2); } final _ObjCBlock3_closureRegistry = {}; @@ -13569,86 +17281,128 @@ ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock3_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { +void _ObjCBlock3_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { return _ObjCBlock3_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); } class ObjCBlock3 extends _ObjCBlockBase { ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock3.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock3_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock3_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock3.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock3_closureTrampoline) - .cast(), - _ObjCBlock3_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock3_closureTrampoline).cast(), + _ObjCBlock3_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) + >()(_id, arg0, arg1, arg2); } } -bool _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { +bool _ObjCBlock4_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + bool Function( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) + >()(arg0, arg1, arg2); } final _ObjCBlock4_closureRegistry = {}; @@ -13659,86 +17413,122 @@ ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { +bool _ObjCBlock4_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, +) { return _ObjCBlock4_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); } class ObjCBlock4 extends _ObjCBlockBase { ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock4.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock4_fnPtrTrampoline, false).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock4.fromFunction( - NativeMacOsFramework lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_closureTrampoline, false) - .cast(), - _ObjCBlock4_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + bool Function( + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock4_closureTrampoline, false).cast(), + _ObjCBlock4_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2, + ) + >()(_id, arg0, arg1, arg2); } } -int _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +int _ObjCBlock5_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + int Function(ffi.Pointer arg0, ffi.Pointer arg1) + >()(arg0, arg1); } final _ObjCBlock5_closureRegistry = {}; @@ -13749,66 +17539,83 @@ ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -int _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +int _ObjCBlock5_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock5_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock5 extends _ObjCBlockBase { ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock5.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock5_fnPtrTrampoline, 0) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock5_fnPtrTrampoline, 0).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock5.fromFunction( - NativeMacOsFramework lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock5_closureTrampoline, 0) - .cast(), - _ObjCBlock5_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + int Function(ffi.Pointer arg0, ffi.Pointer arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock5_closureTrampoline, 0).cast(), + _ObjCBlock5_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; int call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + int Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } @@ -13837,16 +17644,26 @@ abstract class NSOrderedCollectionDifferenceCalculationOptions { static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; } -bool _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +bool _ObjCBlock6_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(arg0, arg1); } final _ObjCBlock6_closureRegistry = {}; @@ -13857,73 +17674,94 @@ ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +bool _ObjCBlock6_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock6_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock6 extends _ObjCBlockBase { ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock6.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock6_fnPtrTrampoline, false).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock6.fromFunction( - NativeMacOsFramework lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_closureTrampoline, false) - .cast(), - _ObjCBlock6_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock6_closureTrampoline, false).cast(), + _ObjCBlock6_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; bool call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } class NSDictionary extends NSObject { - NSDictionary._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSDictionary._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSDictionary] that points to the same underlying object as [other]. static NSDictionary castFrom(T other) { @@ -13932,15 +17770,21 @@ class NSDictionary extends NSObject { /// Returns a [NSDictionary] that wraps the given raw object pointer. static NSDictionary castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSDictionary._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSDictionary]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDictionary1, + ); } int get count { @@ -13948,8 +17792,11 @@ class NSDictionary extends NSObject { } NSObject objectForKey_(NSObject aKey) { - final _ret = - _lib._objc_msgSend_103(_id, _lib._sel_objectForKey_1, aKey._id); + final _ret = _lib._objc_msgSend_103( + _id, + _lib._sel_objectForKey_1, + aKey._id, + ); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -13965,17 +17812,26 @@ class NSDictionary extends NSObject { } NSDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { final _ret = _lib._objc_msgSend_114( - _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + _id, + _lib._sel_initWithObjects_forKeys_count_1, + objects, + keys, + cnt, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -13987,8 +17843,11 @@ class NSDictionary extends NSObject { } NSArray allKeysForObject_(NSObject anObject) { - final _ret = - _lib._objc_msgSend_52(_id, _lib._sel_allKeysForObject_1, anObject._id); + final _ret = _lib._objc_msgSend_52( + _id, + _lib._sel_allKeysForObject_1, + anObject._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -14007,8 +17866,10 @@ class NSDictionary extends NSObject { } NSString? get descriptionInStringsFileFormat { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_descriptionInStringsFileFormat1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_descriptionInStringsFileFormat1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -14016,19 +17877,29 @@ class NSDictionary extends NSObject { NSString descriptionWithLocale_(NSObject locale) { final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + _id, + _lib._sel_descriptionWithLocale_1, + locale._id, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSString descriptionWithLocale_indent_(NSObject locale, int level) { final _ret = _lib._objc_msgSend_57( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + _id, + _lib._sel_descriptionWithLocale_indent_1, + locale._id, + level, + ); return NSString._(_ret, _lib, retain: true, release: true); } bool isEqualToDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_116(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + return _lib._objc_msgSend_116( + _id, + _lib._sel_isEqualToDictionary_1, + otherDictionary?._id ?? ffi.nullptr, + ); } NSEnumerator objectEnumerator() { @@ -14038,272 +17909,404 @@ class NSDictionary extends NSObject { NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { final _ret = _lib._objc_msgSend_117( - _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); + _id, + _lib._sel_objectsForKeys_notFoundMarker_1, + keys?._id ?? ffi.nullptr, + marker._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { + NSURL? url, + ffi.Pointer> error, + ) { return _lib._objc_msgSend_68( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + _id, + _lib._sel_writeToURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); } NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); + _id, + _lib._sel_keysSortedByValueUsingSelector_1, + comparator, + ); return NSArray._(_ret, _lib, retain: true, release: true); } - void getObjects_andKeys_count_(ffi.Pointer> objects, - ffi.Pointer> keys, int count) { + void getObjects_andKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int count, + ) { return _lib._objc_msgSend_118( - _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); + _id, + _lib._sel_getObjects_andKeys_count_1, + objects, + keys, + count, + ); } NSObject objectForKeyedSubscript_(NSObject key) { final _ret = _lib._objc_msgSend_103( - _id, _lib._sel_objectForKeyedSubscript_1, key._id); + _id, + _lib._sel_objectForKeyedSubscript_1, + key._id, + ); return NSObject._(_ret, _lib, retain: true, release: true); } void enumerateKeysAndObjectsUsingBlock_(ObjCBlock7 block) { return _lib._objc_msgSend_119( - _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); + _id, + _lib._sel_enumerateKeysAndObjectsUsingBlock_1, + block._id, + ); } void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock7 block) { + int opts, + ObjCBlock7 block, + ) { return _lib._objc_msgSend_120( - _id, - _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, - opts, - block._id); + _id, + _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, + opts, + block._id, + ); } NSArray keysSortedByValueUsingComparator_(ObjCBlock5 cmptr) { final _ret = _lib._objc_msgSend_100( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); + _id, + _lib._sel_keysSortedByValueUsingComparator_1, + cmptr._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, ObjCBlock5 cmptr) { + int opts, + ObjCBlock5 cmptr, + ) { final _ret = _lib._objc_msgSend_101( - _id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, - opts, - cmptr._id); + _id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, + opts, + cmptr._id, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSObject keysOfEntriesPassingTest_(ObjCBlock8 predicate) { final _ret = _lib._objc_msgSend_121( - _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + _id, + _lib._sel_keysOfEntriesPassingTest_1, + predicate._id, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject keysOfEntriesWithOptions_passingTest_( - int opts, ObjCBlock8 predicate) { - final _ret = _lib._objc_msgSend_122(_id, - _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); + int opts, + ObjCBlock8 predicate, + ) { + final _ret = _lib._objc_msgSend_122( + _id, + _lib._sel_keysOfEntriesWithOptions_passingTest_1, + opts, + predicate._id, + ); return NSObject._(_ret, _lib, retain: true, release: true); } - void getObjects_andKeys_(ffi.Pointer> objects, - ffi.Pointer> keys) { + void getObjects_andKeys_( + ffi.Pointer> objects, + ffi.Pointer> keys, + ) { return _lib._objc_msgSend_123( - _id, _lib._sel_getObjects_andKeys_1, objects, keys); + _id, + _lib._sel_getObjects_andKeys_1, + objects, + keys, + ); } static NSDictionary dictionaryWithContentsOfFile_( - NativeMacOsFramework _lib, NSString? path) { - final _ret = _lib._objc_msgSend_124(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? path, + ) { + final _ret = _lib._objc_msgSend_124( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithContentsOfURL_( - NativeMacOsFramework _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_125(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSURL? url, + ) { + final _ret = _lib._objc_msgSend_125( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithContentsOfFile_(NSString? path) { final _ret = _lib._objc_msgSend_124( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithContentsOfURL_(NSURL? url) { final _ret = _lib._objc_msgSend_125( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_111(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); + return _lib._objc_msgSend_111( + _id, + _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, + useAuxiliaryFile, + ); } bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_112(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); + return _lib._objc_msgSend_112( + _id, + _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, + atomically, + ); } static NSDictionary dictionary(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDictionary1, + _lib._sel_dictionary1, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObject_forKey_( - NativeMacOsFramework _lib, NSObject object, NSObject? key) { + NativeMacOsFramework _lib, + NSObject object, + NSObject? key, + ) { final _ret = _lib._objc_msgSend_126( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjects_forKeys_count_( - NativeMacOsFramework _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_114(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + NativeMacOsFramework _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { + final _ret = _lib._objc_msgSend_114( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, + objects, + keys, + cnt, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjectsAndKeys_( - NativeMacOsFramework _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_103(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + NativeMacOsFramework _lib, + NSObject firstObject, + ) { + final _ret = _lib._objc_msgSend_103( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, + firstObject._id, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithDictionary_( - NativeMacOsFramework _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_127(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSDictionary? dict, + ) { + final _ret = _lib._objc_msgSend_127( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, + dict?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithObjects_forKeys_( - NativeMacOsFramework _lib, NSArray? objects, NSArray? keys) { + NativeMacOsFramework _lib, + NSArray? objects, + NSArray? keys, + ) { final _ret = _lib._objc_msgSend_128( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { final _ret = _lib._objc_msgSend_103( - _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + _id, + _lib._sel_initWithObjectsAndKeys_1, + firstObject._id, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_127(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_127( + _id, + _lib._sel_initWithDictionary_1, + otherDictionary?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { + NSDictionary? otherDictionary, + bool flag, + ) { final _ret = _lib._objc_msgSend_129( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); + _id, + _lib._sel_initWithDictionary_copyItems_1, + otherDictionary?._id ?? ffi.nullptr, + flag, + ); return NSDictionary._(_ret, _lib, retain: false, release: true); } NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { final _ret = _lib._objc_msgSend_128( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { + NSURL? url, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_130( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); + _id, + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithContentsOfURL_error_( - NativeMacOsFramework _lib, - NSURL? url, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSURL? url, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_130( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSObject sharedKeySetForKeys_( - NativeMacOsFramework _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_58(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSArray? keys, + ) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDictionary1, + _lib._sel_sharedKeySetForKeys_1, + keys?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { return _lib._objc_msgSend_131( - _id, - _lib._sel_countByEnumeratingWithState_objects_count_1, - state, - buffer, - len); + _id, + _lib._sel_countByEnumeratingWithState_objects_count_1, + state, + buffer, + len, + ); } static NSDictionary new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDictionary1, + _lib._sel_new1, + ); return NSDictionary._(_ret, _lib, retain: false, release: true); } static NSDictionary alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDictionary1, + _lib._sel_alloc1, + ); return NSDictionary._(_ret, _lib, retain: false, release: true); } } void _ObjCBlock7_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >()(arg0, arg1, arg2); } final _ObjCBlock7_closureRegistry = {}; @@ -14315,95 +18318,127 @@ ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { } void _ObjCBlock7_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { return _ObjCBlock7_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); } class ObjCBlock7 extends _ObjCBlockBase { ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock7.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock7_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock7_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock7.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock7_closureTrampoline) - .cast(), - _ObjCBlock7_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock7_closureTrampoline).cast(), + _ObjCBlock7_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + void call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >()(_id, arg0, arg1, arg2); } } bool _ObjCBlock8_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >()(arg0, arg1, arg2); } final _ObjCBlock8_closureRegistry = {}; @@ -14415,77 +18450,101 @@ ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { } bool _ObjCBlock8_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { return _ObjCBlock8_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); } class ObjCBlock8 extends _ObjCBlockBase { ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock8.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock8_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock8_fnPtrTrampoline, false).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock8.fromFunction( - NativeMacOsFramework lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock8_closureTrampoline, false) - .cast(), - _ObjCBlock8_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock8_closureTrampoline, false).cast(), + _ObjCBlock8_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + bool call( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >()(_id, arg0, arg1, arg2); } } @@ -14502,9 +18561,12 @@ final class NSFastEnumerationState extends ffi.Struct { } class NSSet extends NSObject { - NSSet._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSSet._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSSet] that points to the same underlying object as [other]. static NSSet castFrom(T other) { @@ -14513,15 +18575,21 @@ class NSSet extends NSObject { /// Returns a [NSSet] that wraps the given raw object pointer. static NSSet castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSSet._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSSet]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSSet1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSSet1, + ); } int get count { @@ -14545,15 +18613,24 @@ class NSSet extends NSObject { } NSSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { + ffi.Pointer> objects, + int cnt, + ) { final _ret = _lib._objc_msgSend_50( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); + _id, + _lib._sel_initWithObjects_count_1, + objects, + cnt, + ); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -14582,76 +18659,117 @@ class NSSet extends NSObject { NSString descriptionWithLocale_(NSObject locale) { final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + _id, + _lib._sel_descriptionWithLocale_1, + locale._id, + ); return NSString._(_ret, _lib, retain: true, release: true); } bool intersectsSet_(NSSet? otherSet) { return _lib._objc_msgSend_133( - _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); + _id, + _lib._sel_intersectsSet_1, + otherSet?._id ?? ffi.nullptr, + ); } bool isEqualToSet_(NSSet? otherSet) { return _lib._objc_msgSend_133( - _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); + _id, + _lib._sel_isEqualToSet_1, + otherSet?._id ?? ffi.nullptr, + ); } bool isSubsetOfSet_(NSSet? otherSet) { return _lib._objc_msgSend_133( - _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); + _id, + _lib._sel_isSubsetOfSet_1, + otherSet?._id ?? ffi.nullptr, + ); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { return _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + _id, + _lib._sel_makeObjectsPerformSelector_1, + aSelector, + ); } void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { + ffi.Pointer aSelector, + NSObject argument, + ) { return _lib._objc_msgSend_69( - _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id, + ); } NSSet setByAddingObject_(NSObject anObject) { final _ret = _lib._objc_msgSend_134( - _id, _lib._sel_setByAddingObject_1, anObject._id); + _id, + _lib._sel_setByAddingObject_1, + anObject._id, + ); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet setByAddingObjectsFromSet_(NSSet? other) { final _ret = _lib._objc_msgSend_135( - _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); + _id, + _lib._sel_setByAddingObjectsFromSet_1, + other?._id ?? ffi.nullptr, + ); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet setByAddingObjectsFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_136(_id, - _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_136( + _id, + _lib._sel_setByAddingObjectsFromArray_1, + other?._id ?? ffi.nullptr, + ); return NSSet._(_ret, _lib, retain: true, release: true); } void enumerateObjectsUsingBlock_(ObjCBlock9 block) { return _lib._objc_msgSend_137( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + _id, + _lib._sel_enumerateObjectsUsingBlock_1, + block._id, + ); } void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock9 block) { - return _lib._objc_msgSend_138(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + return _lib._objc_msgSend_138( + _id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, + opts, + block._id, + ); } NSSet objectsPassingTest_(ObjCBlock10 predicate) { final _ret = _lib._objc_msgSend_139( - _id, _lib._sel_objectsPassingTest_1, predicate._id); + _id, + _lib._sel_objectsPassingTest_1, + predicate._id, + ); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet objectsWithOptions_passingTest_(int opts, ObjCBlock10 predicate) { final _ret = _lib._objc_msgSend_140( - _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); + _id, + _lib._sel_objectsWithOptions_passingTest_1, + opts, + predicate._id, + ); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -14662,56 +18780,88 @@ class NSSet extends NSObject { static NSSet setWithObject_(NativeMacOsFramework _lib, NSObject object) { final _ret = _lib._objc_msgSend_103( - _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); + _lib._class_NSSet1, + _lib._sel_setWithObject_1, + object._id, + ); return NSSet._(_ret, _lib, retain: true, release: true); } - static NSSet setWithObjects_count_(NativeMacOsFramework _lib, - ffi.Pointer> objects, int cnt) { + static NSSet setWithObjects_count_( + NativeMacOsFramework _lib, + ffi.Pointer> objects, + int cnt, + ) { final _ret = _lib._objc_msgSend_50( - _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); + _lib._class_NSSet1, + _lib._sel_setWithObjects_count_1, + objects, + cnt, + ); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithObjects_(NativeMacOsFramework _lib, NSObject firstObj) { final _ret = _lib._objc_msgSend_103( - _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); + _lib._class_NSSet1, + _lib._sel_setWithObjects_1, + firstObj._id, + ); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithSet_(NativeMacOsFramework _lib, NSSet? set) { final _ret = _lib._objc_msgSend_141( - _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + _lib._class_NSSet1, + _lib._sel_setWithSet_1, + set?._id ?? ffi.nullptr, + ); return NSSet._(_ret, _lib, retain: true, release: true); } static NSSet setWithArray_(NativeMacOsFramework _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_58(_lib._class_NSSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_58( + _lib._class_NSSet1, + _lib._sel_setWithArray_1, + array?._id ?? ffi.nullptr, + ); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_103(_id, _lib._sel_initWithObjects_1, firstObj._id); + final _ret = _lib._objc_msgSend_103( + _id, + _lib._sel_initWithObjects_1, + firstObj._id, + ); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet initWithSet_(NSSet? set) { final _ret = _lib._objc_msgSend_141( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithSet_1, + set?._id ?? ffi.nullptr, + ); return NSSet._(_ret, _lib, retain: true, release: true); } NSSet initWithSet_copyItems_(NSSet? set, bool flag) { final _ret = _lib._objc_msgSend_142( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + _id, + _lib._sel_initWithSet_copyItems_1, + set?._id ?? ffi.nullptr, + flag, + ); return NSSet._(_ret, _lib, retain: false, release: true); } NSSet initWithArray_(NSArray? array) { final _ret = _lib._objc_msgSend_58( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithArray_1, + array?._id ?? ffi.nullptr, + ); return NSSet._(_ret, _lib, retain: true, release: true); } @@ -14726,16 +18876,23 @@ class NSSet extends NSObject { } } -void _ObjCBlock9_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock9_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + >()(arg0, arg1); } final _ObjCBlock9_closureRegistry = {}; @@ -14746,79 +18903,103 @@ ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock9_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock9_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock9_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock9 extends _ObjCBlockBase { ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock9.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock9_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock9_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock9.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock9_closureTrampoline) - .cast(), - _ObjCBlock9_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock9_closureTrampoline).cast(), + _ObjCBlock9_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } -bool _ObjCBlock10_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +bool _ObjCBlock10_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + >()(arg0, arg1); } final _ObjCBlock10_closureRegistry = {}; @@ -14829,66 +19010,83 @@ ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock10_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +bool _ObjCBlock10_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock10_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock10 extends _ObjCBlockBase { ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock10.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock10_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock10_fnPtrTrampoline, false).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock10.fromFunction( - NativeMacOsFramework lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock10_closureTrampoline, false) - .cast(), - _ObjCBlock10_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock10_closureTrampoline, false).cast(), + _ObjCBlock10_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; bool call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } @@ -14932,9 +19130,12 @@ abstract class NSStringCompareOptions { } class NSLocale extends NSObject { - NSLocale._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSLocale._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSLocale] that points to the same underlying object as [other]. static NSLocale castFrom(T other) { @@ -14943,15 +19144,21 @@ class NSLocale extends NSObject { /// Returns a [NSLocale] that wraps the given raw object pointer. static NSLocale castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSLocale._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSLocale]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSLocale1, + ); } NSObject objectForKey_(NSString key) { @@ -14961,19 +19168,29 @@ class NSLocale extends NSObject { NSString displayNameForKey_value_(NSString key, NSObject value) { final _ret = _lib._objc_msgSend_174( - _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); + _id, + _lib._sel_displayNameForKey_value_1, + key._id, + value._id, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSLocale initWithLocaleIdentifier_(NSString? string) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_initWithLocaleIdentifier_1, string?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithLocaleIdentifier_1, + string?._id ?? ffi.nullptr, + ); return NSLocale._(_ret, _lib, retain: true, release: true); } NSLocale initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSLocale._(_ret, _lib, retain: true, release: true); } @@ -14987,9 +19204,10 @@ class NSLocale extends NSObject { NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForLocaleIdentifier_1, + localeIdentifier?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15002,9 +19220,10 @@ class NSLocale extends NSObject { NSString localizedStringForLanguageCode_(NSString? languageCode) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForLanguageCode_1, - languageCode?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForLanguageCode_1, + languageCode?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15017,9 +19236,10 @@ class NSLocale extends NSObject { NSString localizedStringForCountryCode_(NSString? countryCode) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForCountryCode_1, - countryCode?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForCountryCode_1, + countryCode?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15032,9 +19252,10 @@ class NSLocale extends NSObject { NSString localizedStringForScriptCode_(NSString? scriptCode) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForScriptCode_1, - scriptCode?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForScriptCode_1, + scriptCode?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15047,9 +19268,10 @@ class NSLocale extends NSObject { NSString localizedStringForVariantCode_(NSString? variantCode) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForVariantCode_1, - variantCode?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForVariantCode_1, + variantCode?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15069,9 +19291,10 @@ class NSLocale extends NSObject { NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForCalendarIdentifier_1, - calendarIdentifier?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForCalendarIdentifier_1, + calendarIdentifier?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15083,11 +19306,13 @@ class NSLocale extends NSObject { } NSString localizedStringForCollationIdentifier_( - NSString? collationIdentifier) { + NSString? collationIdentifier, + ) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForCollationIdentifier_1, - collationIdentifier?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForCollationIdentifier_1, + collationIdentifier?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15125,9 +19350,10 @@ class NSLocale extends NSObject { NSString localizedStringForCurrencyCode_(NSString? currencyCode) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForCurrencyCode_1, - currencyCode?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForCurrencyCode_1, + currencyCode?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15140,9 +19366,10 @@ class NSLocale extends NSObject { NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_localizedStringForCollatorIdentifier_1, - collatorIdentifier?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForCollatorIdentifier_1, + collatorIdentifier?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -15161,16 +19388,20 @@ class NSLocale extends NSObject { } NSString? get alternateQuotationBeginDelimiter { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_alternateQuotationBeginDelimiter1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_alternateQuotationBeginDelimiter1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } NSString? get alternateQuotationEndDelimiter { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_alternateQuotationEndDelimiter1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_alternateQuotationEndDelimiter1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -15179,7 +19410,9 @@ class NSLocale extends NSObject { /// generally you should use this property static NSLocale? getAutoupdatingCurrentLocale(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_176( - _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); + _lib._class_NSLocale1, + _lib._sel_autoupdatingCurrentLocale1, + ); return _ret.address == 0 ? null : NSLocale._(_ret, _lib, retain: true, release: true); @@ -15187,8 +19420,10 @@ class NSLocale extends NSObject { /// an object representing the user's current locale static NSLocale? getCurrentLocale(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_176(_lib._class_NSLocale1, _lib._sel_currentLocale1); + final _ret = _lib._objc_msgSend_176( + _lib._class_NSLocale1, + _lib._sel_currentLocale1, + ); return _ret.address == 0 ? null : NSLocale._(_ret, _lib, retain: true, release: true); @@ -15196,17 +19431,24 @@ class NSLocale extends NSObject { /// the default generic root locale with little localization static NSLocale? getSystemLocale(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_176(_lib._class_NSLocale1, _lib._sel_systemLocale1); + final _ret = _lib._objc_msgSend_176( + _lib._class_NSLocale1, + _lib._sel_systemLocale1, + ); return _ret.address == 0 ? null : NSLocale._(_ret, _lib, retain: true, release: true); } static NSLocale localeWithLocaleIdentifier_( - NativeMacOsFramework _lib, NSString? ident) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSLocale1, - _lib._sel_localeWithLocaleIdentifier_1, ident?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? ident, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSLocale1, + _lib._sel_localeWithLocaleIdentifier_1, + ident?._id ?? ffi.nullptr, + ); return NSLocale._(_ret, _lib, retain: true, release: true); } @@ -15219,7 +19461,9 @@ class NSLocale extends NSObject { static NSArray? getAvailableLocaleIdentifiers(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_115( - _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); + _lib._class_NSLocale1, + _lib._sel_availableLocaleIdentifiers1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -15227,7 +19471,9 @@ class NSLocale extends NSObject { static NSArray? getISOLanguageCodes(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_115( - _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); + _lib._class_NSLocale1, + _lib._sel_ISOLanguageCodes1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -15235,7 +19481,9 @@ class NSLocale extends NSObject { static NSArray? getISOCountryCodes(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_115( - _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); + _lib._class_NSLocale1, + _lib._sel_ISOCountryCodes1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -15243,7 +19491,9 @@ class NSLocale extends NSObject { static NSArray? getISOCurrencyCodes(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_115( - _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); + _lib._class_NSLocale1, + _lib._sel_ISOCurrencyCodes1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -15251,7 +19501,9 @@ class NSLocale extends NSObject { static NSArray? getCommonISOCurrencyCodes(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_115( - _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); + _lib._class_NSLocale1, + _lib._sel_commonISOCurrencyCodes1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -15260,71 +19512,105 @@ class NSLocale extends NSObject { /// note that this list does not indicate what language the app is actually running in; the NSBundle.mainBundle object determines that at launch and knows that information static NSArray? getPreferredLanguages(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_115( - _lib._class_NSLocale1, _lib._sel_preferredLanguages1); + _lib._class_NSLocale1, + _lib._sel_preferredLanguages1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } static NSDictionary componentsFromLocaleIdentifier_( - NativeMacOsFramework _lib, NSString? string) { - final _ret = _lib._objc_msgSend_124(_lib._class_NSLocale1, - _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? string, + ) { + final _ret = _lib._objc_msgSend_124( + _lib._class_NSLocale1, + _lib._sel_componentsFromLocaleIdentifier_1, + string?._id ?? ffi.nullptr, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSString localeIdentifierFromComponents_( - NativeMacOsFramework _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_177(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSDictionary? dict, + ) { + final _ret = _lib._objc_msgSend_177( + _lib._class_NSLocale1, + _lib._sel_localeIdentifierFromComponents_1, + dict?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString canonicalLocaleIdentifierFromString_( - NativeMacOsFramework _lib, NSString? string) { + NativeMacOsFramework _lib, + NSString? string, + ) { final _ret = _lib._objc_msgSend_54( - _lib._class_NSLocale1, - _lib._sel_canonicalLocaleIdentifierFromString_1, - string?._id ?? ffi.nullptr); + _lib._class_NSLocale1, + _lib._sel_canonicalLocaleIdentifierFromString_1, + string?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString canonicalLanguageIdentifierFromString_( - NativeMacOsFramework _lib, NSString? string) { + NativeMacOsFramework _lib, + NSString? string, + ) { final _ret = _lib._objc_msgSend_54( - _lib._class_NSLocale1, - _lib._sel_canonicalLanguageIdentifierFromString_1, - string?._id ?? ffi.nullptr); + _lib._class_NSLocale1, + _lib._sel_canonicalLanguageIdentifierFromString_1, + string?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSString localeIdentifierFromWindowsLocaleCode_( - NativeMacOsFramework _lib, int lcid) { - final _ret = _lib._objc_msgSend_178(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); + NativeMacOsFramework _lib, + int lcid, + ) { + final _ret = _lib._objc_msgSend_178( + _lib._class_NSLocale1, + _lib._sel_localeIdentifierFromWindowsLocaleCode_1, + lcid, + ); return NSString._(_ret, _lib, retain: true, release: true); } static int windowsLocaleCodeFromLocaleIdentifier_( - NativeMacOsFramework _lib, NSString? localeIdentifier) { + NativeMacOsFramework _lib, + NSString? localeIdentifier, + ) { return _lib._objc_msgSend_179( - _lib._class_NSLocale1, - _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); + _lib._class_NSLocale1, + _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, + localeIdentifier?._id ?? ffi.nullptr, + ); } static int characterDirectionForLanguage_( - NativeMacOsFramework _lib, NSString? isoLangCode) { + NativeMacOsFramework _lib, + NSString? isoLangCode, + ) { return _lib._objc_msgSend_180( - _lib._class_NSLocale1, - _lib._sel_characterDirectionForLanguage_1, - isoLangCode?._id ?? ffi.nullptr); + _lib._class_NSLocale1, + _lib._sel_characterDirectionForLanguage_1, + isoLangCode?._id ?? ffi.nullptr, + ); } static int lineDirectionForLanguage_( - NativeMacOsFramework _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_180(_lib._class_NSLocale1, - _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? isoLangCode, + ) { + return _lib._objc_msgSend_180( + _lib._class_NSLocale1, + _lib._sel_lineDirectionForLanguage_1, + isoLangCode?._id ?? ffi.nullptr, + ); } static NSLocale new1(NativeMacOsFramework _lib) { @@ -15339,9 +19625,12 @@ class NSLocale extends NSObject { } class NSCharacterSet extends _ObjCWrapper { - NSCharacterSet._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSCharacterSet._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. static NSCharacterSet castFrom(T other) { @@ -15350,15 +19639,21 @@ class NSCharacterSet extends _ObjCWrapper { /// Returns a [NSCharacterSet] that wraps the given raw object pointer. static NSCharacterSet castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSCharacterSet._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSCharacterSet]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCharacterSet1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCharacterSet1, + ); } } @@ -15384,22 +19679,31 @@ abstract class NSStringEnumerationOptions { } void _ObjCBlock11_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - _NSRange arg2, ffi.Pointer arg3)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + > + >() .asFunction< - void Function( - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); + void Function( + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + >()(arg0, arg1, arg2, arg3); } final _ObjCBlock11_closureRegistry = {}; @@ -15411,93 +19715,130 @@ ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { } void _ObjCBlock11_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, +) { return _ObjCBlock11_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); + arg0, + arg1, + arg2, + arg3, + ); } class ObjCBlock11 extends _ObjCBlockBase { ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock11.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - _NSRange arg2, ffi.Pointer arg3)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock11_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + >(_ObjCBlock11_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock11.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, - ffi.Pointer arg3) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock11_closureTrampoline) - .cast(), - _ObjCBlock11_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function( + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + >(_ObjCBlock11_closureTrampoline).cast(), + _ObjCBlock11_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, - ffi.Pointer arg3) { + void call( + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3, + ) + >()(_id, arg0, arg1, arg2, arg3); } } -void _ObjCBlock12_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock12_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + >()(arg0, arg1); } final _ObjCBlock12_closureRegistry = {}; @@ -15508,66 +19849,83 @@ ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock12_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock12_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock12 extends _ObjCBlockBase { ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock12.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock12_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock12_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock12.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock12_closureTrampoline) - .cast(), - _ObjCBlock12_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock12_closureTrampoline).cast(), + _ObjCBlock12_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } @@ -15576,16 +19934,23 @@ abstract class NSStringEncodingConversionOptions { static const int NSStringEncodingConversionExternalRepresentation = 2; } -void _ObjCBlock13_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1) { +void _ObjCBlock13_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer arg0, int arg1)>()(arg0, arg1); + void Function(ffi.Pointer arg0, int arg1) + >()(arg0, arg1); } final _ObjCBlock13_closureRegistry = {}; @@ -15596,76 +19961,101 @@ ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock13_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1) { +void _ObjCBlock13_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, +) { return _ObjCBlock13_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock13 extends _ObjCBlockBase { ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock13.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock13_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + >(_ObjCBlock13_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock13.fromFunction(NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock13_closureTrampoline) - .cast(), - _ObjCBlock13_registerClosure(fn)), - lib); + ObjCBlock13.fromFunction( + NativeMacOsFramework lib, + void Function(ffi.Pointer arg0, int arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + >(_ObjCBlock13_closureTrampoline).cast(), + _ObjCBlock13_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, int arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ) + >()(_id, arg0, arg1); } } void _ObjCBlock14_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, +) { return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() - .asFunction arg0, int arg1)>()( - arg0, arg1); + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) + > + >() + .asFunction arg0, int arg1)>()( + arg0, + arg1, + ); } final _ObjCBlock14_closureRegistry = {}; @@ -15677,66 +20067,89 @@ ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { } void _ObjCBlock14_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, +) { return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock14 extends _ObjCBlockBase { ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock14.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.UnsignedLong arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock14_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.UnsignedLong arg1) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + >(_ObjCBlock14_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock14.fromFunction(NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock14_closureTrampoline) - .cast(), - _ObjCBlock14_registerClosure(fn)), - lib); + ObjCBlock14.fromFunction( + NativeMacOsFramework lib, + void Function(ffi.Pointer arg0, int arg1) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + >(_ObjCBlock14_closureTrampoline).cast(), + _ObjCBlock14_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, int arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ) + >()(_id, arg0, arg1); } } class NSValue extends NSObject { - NSValue._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSValue._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSValue] that points to the same underlying object as [other]. static NSValue castFrom(T other) { @@ -15745,15 +20158,21 @@ class NSValue extends NSObject { /// Returns a [NSValue] that wraps the given raw object pointer. static NSValue castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSValue._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSValue]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSValue1, + ); } void getValue_size_(ffi.Pointer value, int size) { @@ -15765,36 +20184,64 @@ class NSValue extends NSObject { } NSValue initWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { + ffi.Pointer value, + ffi.Pointer type, + ) { final _ret = _lib._objc_msgSend_242( - _id, _lib._sel_initWithBytes_objCType_1, value, type); + _id, + _lib._sel_initWithBytes_objCType_1, + value, + type, + ); return NSValue._(_ret, _lib, retain: true, release: true); } NSValue initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithBytes_objCType_(NativeMacOsFramework _lib, - ffi.Pointer value, ffi.Pointer type) { + static NSValue valueWithBytes_objCType_( + NativeMacOsFramework _lib, + ffi.Pointer value, + ffi.Pointer type, + ) { final _ret = _lib._objc_msgSend_243( - _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); + _lib._class_NSValue1, + _lib._sel_valueWithBytes_objCType_1, + value, + type, + ); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue value_withObjCType_(NativeMacOsFramework _lib, - ffi.Pointer value, ffi.Pointer type) { + static NSValue value_withObjCType_( + NativeMacOsFramework _lib, + ffi.Pointer value, + ffi.Pointer type, + ) { final _ret = _lib._objc_msgSend_243( - _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); + _lib._class_NSValue1, + _lib._sel_value_withObjCType_1, + value, + type, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithNonretainedObject_( - NativeMacOsFramework _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_244(_lib._class_NSValue1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + NativeMacOsFramework _lib, + NSObject anObject, + ) { + final _ret = _lib._objc_msgSend_244( + _lib._class_NSValue1, + _lib._sel_valueWithNonretainedObject_1, + anObject._id, + ); return NSValue._(_ret, _lib, retain: true, release: true); } @@ -15804,9 +20251,14 @@ class NSValue extends NSObject { } static NSValue valueWithPointer_( - NativeMacOsFramework _lib, ffi.Pointer pointer) { + NativeMacOsFramework _lib, + ffi.Pointer pointer, + ) { final _ret = _lib._objc_msgSend_245( - _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); + _lib._class_NSValue1, + _lib._sel_valueWithPointer_1, + pointer, + ); return NSValue._(_ret, _lib, retain: true, release: true); } @@ -15816,7 +20268,10 @@ class NSValue extends NSObject { bool isEqualToValue_(NSValue? value) { return _lib._objc_msgSend_246( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_isEqualToValue_1, + value?._id ?? ffi.nullptr, + ); } void getValue_(ffi.Pointer value) { @@ -15825,7 +20280,10 @@ class NSValue extends NSObject { static NSValue valueWithRange_(NativeMacOsFramework _lib, _NSRange range) { final _ret = _lib._objc_msgSend_248( - _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); + _lib._class_NSValue1, + _lib._sel_valueWithRange_1, + range, + ); return NSValue._(_ret, _lib, retain: true, release: true); } @@ -15835,26 +20293,40 @@ class NSValue extends NSObject { static NSValue valueWithPoint_(NativeMacOsFramework _lib, CGPoint point) { final _ret = _lib._objc_msgSend_250( - _lib._class_NSValue1, _lib._sel_valueWithPoint_1, point); + _lib._class_NSValue1, + _lib._sel_valueWithPoint_1, + point, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithSize_(NativeMacOsFramework _lib, CGSize size) { final _ret = _lib._objc_msgSend_251( - _lib._class_NSValue1, _lib._sel_valueWithSize_1, size); + _lib._class_NSValue1, + _lib._sel_valueWithSize_1, + size, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithRect_(NativeMacOsFramework _lib, CGRect rect) { final _ret = _lib._objc_msgSend_252( - _lib._class_NSValue1, _lib._sel_valueWithRect_1, rect); + _lib._class_NSValue1, + _lib._sel_valueWithRect_1, + rect, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithEdgeInsets_( - NativeMacOsFramework _lib, NSEdgeInsets insets) { + NativeMacOsFramework _lib, + NSEdgeInsets insets, + ) { final _ret = _lib._objc_msgSend_253( - _lib._class_NSValue1, _lib._sel_valueWithEdgeInsets_1, insets); + _lib._class_NSValue1, + _lib._sel_valueWithEdgeInsets_1, + insets, + ); return NSValue._(_ret, _lib, retain: true, release: true); } @@ -15900,9 +20372,12 @@ final class NSEdgeInsets extends ffi.Struct { } class NSNumber extends NSValue { - NSNumber._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSNumber._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSNumber] that points to the same underlying object as [other]. static NSNumber castFrom(T other) { @@ -15911,21 +20386,30 @@ class NSNumber extends NSValue { /// Returns a [NSNumber] that wraps the given raw object pointer. static NSNumber castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSNumber._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSNumber]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNumber1, + ); } @override NSNumber initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } @@ -15935,8 +20419,11 @@ class NSNumber extends NSValue { } NSNumber initWithUnsignedChar_(int value) { - final _ret = - _lib._objc_msgSend_256(_id, _lib._sel_initWithUnsignedChar_1, value); + final _ret = _lib._objc_msgSend_256( + _id, + _lib._sel_initWithUnsignedChar_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } @@ -15946,8 +20433,11 @@ class NSNumber extends NSValue { } NSNumber initWithUnsignedShort_(int value) { - final _ret = - _lib._objc_msgSend_258(_id, _lib._sel_initWithUnsignedShort_1, value); + final _ret = _lib._objc_msgSend_258( + _id, + _lib._sel_initWithUnsignedShort_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } @@ -15957,8 +20447,11 @@ class NSNumber extends NSValue { } NSNumber initWithUnsignedInt_(int value) { - final _ret = - _lib._objc_msgSend_260(_id, _lib._sel_initWithUnsignedInt_1, value); + final _ret = _lib._objc_msgSend_260( + _id, + _lib._sel_initWithUnsignedInt_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } @@ -15968,20 +20461,29 @@ class NSNumber extends NSValue { } NSNumber initWithUnsignedLong_(int value) { - final _ret = - _lib._objc_msgSend_262(_id, _lib._sel_initWithUnsignedLong_1, value); + final _ret = _lib._objc_msgSend_262( + _id, + _lib._sel_initWithUnsignedLong_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithLongLong_(int value) { - final _ret = - _lib._objc_msgSend_263(_id, _lib._sel_initWithLongLong_1, value); + final _ret = _lib._objc_msgSend_263( + _id, + _lib._sel_initWithLongLong_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedLongLong_(int value) { final _ret = _lib._objc_msgSend_264( - _id, _lib._sel_initWithUnsignedLongLong_1, value); + _id, + _lib._sel_initWithUnsignedLongLong_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } @@ -16001,14 +20503,20 @@ class NSNumber extends NSValue { } NSNumber initWithInteger_(int value) { - final _ret = - _lib._objc_msgSend_261(_id, _lib._sel_initWithInteger_1, value); + final _ret = _lib._objc_msgSend_261( + _id, + _lib._sel_initWithInteger_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } NSNumber initWithUnsignedInteger_(int value) { - final _ret = - _lib._objc_msgSend_262(_id, _lib._sel_initWithUnsignedInteger_1, value); + final _ret = _lib._objc_msgSend_262( + _id, + _lib._sel_initWithUnsignedInteger_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } @@ -16081,171 +20589,276 @@ class NSNumber extends NSValue { int compare_(NSNumber? otherNumber) { return _lib._objc_msgSend_273( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + _id, + _lib._sel_compare_1, + otherNumber?._id ?? ffi.nullptr, + ); } bool isEqualToNumber_(NSNumber? number) { return _lib._objc_msgSend_274( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); + _id, + _lib._sel_isEqualToNumber_1, + number?._id ?? ffi.nullptr, + ); } NSString descriptionWithLocale_(NSObject locale) { final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + _id, + _lib._sel_descriptionWithLocale_1, + locale._id, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithChar_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_255( - _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithChar_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedChar_( - NativeMacOsFramework _lib, int value) { + NativeMacOsFramework _lib, + int value, + ) { final _ret = _lib._objc_msgSend_256( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithUnsignedChar_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithShort_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_257( - _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithShort_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedShort_( - NativeMacOsFramework _lib, int value) { + NativeMacOsFramework _lib, + int value, + ) { final _ret = _lib._objc_msgSend_258( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithUnsignedShort_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithInt_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_259( - _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithInt_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInt_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_260( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithUnsignedInt_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLong_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_261( - _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithLong_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLong_( - NativeMacOsFramework _lib, int value) { + NativeMacOsFramework _lib, + int value, + ) { final _ret = _lib._objc_msgSend_262( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithUnsignedLong_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithLongLong_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_263( - _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithLongLong_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedLongLong_( - NativeMacOsFramework _lib, int value) { + NativeMacOsFramework _lib, + int value, + ) { final _ret = _lib._objc_msgSend_264( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithUnsignedLongLong_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithFloat_(NativeMacOsFramework _lib, double value) { final _ret = _lib._objc_msgSend_265( - _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithFloat_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithDouble_(NativeMacOsFramework _lib, double value) { final _ret = _lib._objc_msgSend_266( - _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithDouble_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithBool_(NativeMacOsFramework _lib, bool value) { final _ret = _lib._objc_msgSend_267( - _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithBool_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithInteger_(NativeMacOsFramework _lib, int value) { final _ret = _lib._objc_msgSend_261( - _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithInteger_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } static NSNumber numberWithUnsignedInteger_( - NativeMacOsFramework _lib, int value) { + NativeMacOsFramework _lib, + int value, + ) { final _ret = _lib._objc_msgSend_262( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); + _lib._class_NSNumber1, + _lib._sel_numberWithUnsignedInteger_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } - static NSValue valueWithBytes_objCType_(NativeMacOsFramework _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_243(_lib._class_NSNumber1, - _lib._sel_valueWithBytes_objCType_1, value, type); + static NSValue valueWithBytes_objCType_( + NativeMacOsFramework _lib, + ffi.Pointer value, + ffi.Pointer type, + ) { + final _ret = _lib._objc_msgSend_243( + _lib._class_NSNumber1, + _lib._sel_valueWithBytes_objCType_1, + value, + type, + ); return NSValue._(_ret, _lib, retain: true, release: true); } - static NSValue value_withObjCType_(NativeMacOsFramework _lib, - ffi.Pointer value, ffi.Pointer type) { + static NSValue value_withObjCType_( + NativeMacOsFramework _lib, + ffi.Pointer value, + ffi.Pointer type, + ) { final _ret = _lib._objc_msgSend_243( - _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); + _lib._class_NSNumber1, + _lib._sel_value_withObjCType_1, + value, + type, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithNonretainedObject_( - NativeMacOsFramework _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_244(_lib._class_NSNumber1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); + NativeMacOsFramework _lib, + NSObject anObject, + ) { + final _ret = _lib._objc_msgSend_244( + _lib._class_NSNumber1, + _lib._sel_valueWithNonretainedObject_1, + anObject._id, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPointer_( - NativeMacOsFramework _lib, ffi.Pointer pointer) { + NativeMacOsFramework _lib, + ffi.Pointer pointer, + ) { final _ret = _lib._objc_msgSend_245( - _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); + _lib._class_NSNumber1, + _lib._sel_valueWithPointer_1, + pointer, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithRange_(NativeMacOsFramework _lib, _NSRange range) { final _ret = _lib._objc_msgSend_248( - _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); + _lib._class_NSNumber1, + _lib._sel_valueWithRange_1, + range, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithPoint_(NativeMacOsFramework _lib, CGPoint point) { final _ret = _lib._objc_msgSend_250( - _lib._class_NSNumber1, _lib._sel_valueWithPoint_1, point); + _lib._class_NSNumber1, + _lib._sel_valueWithPoint_1, + point, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithSize_(NativeMacOsFramework _lib, CGSize size) { final _ret = _lib._objc_msgSend_251( - _lib._class_NSNumber1, _lib._sel_valueWithSize_1, size); + _lib._class_NSNumber1, + _lib._sel_valueWithSize_1, + size, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithRect_(NativeMacOsFramework _lib, CGRect rect) { final _ret = _lib._objc_msgSend_252( - _lib._class_NSNumber1, _lib._sel_valueWithRect_1, rect); + _lib._class_NSNumber1, + _lib._sel_valueWithRect_1, + rect, + ); return NSValue._(_ret, _lib, retain: true, release: true); } static NSValue valueWithEdgeInsets_( - NativeMacOsFramework _lib, NSEdgeInsets insets) { + NativeMacOsFramework _lib, + NSEdgeInsets insets, + ) { final _ret = _lib._objc_msgSend_253( - _lib._class_NSNumber1, _lib._sel_valueWithEdgeInsets_1, insets); + _lib._class_NSNumber1, + _lib._sel_valueWithEdgeInsets_1, + insets, + ); return NSValue._(_ret, _lib, retain: true, release: true); } @@ -16261,9 +20874,12 @@ class NSNumber extends NSValue { } class NSMutableArray extends NSArray { - NSMutableArray._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSMutableArray._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSMutableArray] that points to the same underlying object as [other]. static NSMutableArray castFrom(T other) { @@ -16272,15 +20888,21 @@ class NSMutableArray extends NSArray { /// Returns a [NSMutableArray] that wraps the given raw object pointer. static NSMutableArray castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSMutableArray._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSMutableArray]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableArray1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableArray1, + ); } void addObject_(NSObject anObject) { @@ -16289,7 +20911,11 @@ class NSMutableArray extends NSArray { void insertObject_atIndex_(NSObject anObject, int index) { return _lib._objc_msgSend_275( - _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); + _id, + _lib._sel_insertObject_atIndex_1, + anObject._id, + index, + ); } void removeLastObject() { @@ -16302,7 +20928,11 @@ class NSMutableArray extends NSArray { void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { return _lib._objc_msgSend_277( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); + _id, + _lib._sel_replaceObjectAtIndex_withObject_1, + index, + anObject._id, + ); } @override @@ -16312,26 +20942,39 @@ class NSMutableArray extends NSArray { } NSMutableArray initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_49(_id, _lib._sel_initWithCapacity_1, numItems); + final _ret = _lib._objc_msgSend_49( + _id, + _lib._sel_initWithCapacity_1, + numItems, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } @override NSMutableArray initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } void addObjectsFromArray_(NSArray? otherArray) { return _lib._objc_msgSend_278( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + _id, + _lib._sel_addObjectsFromArray_1, + otherArray?._id ?? ffi.nullptr, + ); } void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { return _lib._objc_msgSend_279( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + _id, + _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, + idx1, + idx2, + ); } void removeAllObjects() { @@ -16340,7 +20983,11 @@ class NSMutableArray extends NSArray { void removeObject_inRange_(NSObject anObject, _NSRange range) { return _lib._objc_msgSend_280( - _id, _lib._sel_removeObject_inRange_1, anObject._id, range); + _id, + _lib._sel_removeObject_inRange_1, + anObject._id, + range, + ); } void removeObject_(NSObject anObject) { @@ -16349,23 +20996,39 @@ class NSMutableArray extends NSArray { void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { return _lib._objc_msgSend_280( - _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); + _id, + _lib._sel_removeObjectIdenticalTo_inRange_1, + anObject._id, + range, + ); } void removeObjectIdenticalTo_(NSObject anObject) { return _lib._objc_msgSend_20( - _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); + _id, + _lib._sel_removeObjectIdenticalTo_1, + anObject._id, + ); } void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { + ffi.Pointer indices, + int cnt, + ) { return _lib._objc_msgSend_281( - _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); + _id, + _lib._sel_removeObjectsFromIndices_numIndices_1, + indices, + cnt, + ); } void removeObjectsInArray_(NSArray? otherArray) { return _lib._objc_msgSend_278( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); + _id, + _lib._sel_removeObjectsInArray_1, + otherArray?._id ?? ffi.nullptr, + ); } void removeObjectsInRange_(_NSRange range) { @@ -16373,38 +21036,58 @@ class NSMutableArray extends NSArray { } void replaceObjectsInRange_withObjectsFromArray_range_( - _NSRange range, NSArray? otherArray, _NSRange otherRange) { + _NSRange range, + NSArray? otherArray, + _NSRange otherRange, + ) { return _lib._objc_msgSend_283( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, - range, - otherArray?._id ?? ffi.nullptr, - otherRange); + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, + range, + otherArray?._id ?? ffi.nullptr, + otherRange, + ); } void replaceObjectsInRange_withObjectsFromArray_( - _NSRange range, NSArray? otherArray) { + _NSRange range, + NSArray? otherArray, + ) { return _lib._objc_msgSend_284( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, - range, - otherArray?._id ?? ffi.nullptr); + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, + range, + otherArray?._id ?? ffi.nullptr, + ); } void setArray_(NSArray? otherArray) { return _lib._objc_msgSend_278( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + _id, + _lib._sel_setArray_1, + otherArray?._id ?? ffi.nullptr, + ); } void sortUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context) { + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ) + > + > + compare, + ffi.Pointer context, + ) { return _lib._objc_msgSend_285( - _id, _lib._sel_sortUsingFunction_context_1, compare, context); + _id, + _lib._sel_sortUsingFunction_context_1, + compare, + context, + ); } void sortUsingSelector_(ffi.Pointer comparator) { @@ -16412,138 +21095,218 @@ class NSMutableArray extends NSArray { } void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_286(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + return _lib._objc_msgSend_286( + _id, + _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, + indexes?._id ?? ffi.nullptr, + ); } void removeObjectsAtIndexes_(NSIndexSet? indexes) { return _lib._objc_msgSend_287( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + _id, + _lib._sel_removeObjectsAtIndexes_1, + indexes?._id ?? ffi.nullptr, + ); } void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { + NSIndexSet? indexes, + NSArray? objects, + ) { return _lib._objc_msgSend_288( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); + _id, + _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, + objects?._id ?? ffi.nullptr, + ); } void setObject_atIndexedSubscript_(NSObject obj, int idx) { return _lib._objc_msgSend_275( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + _id, + _lib._sel_setObject_atIndexedSubscript_1, + obj._id, + idx, + ); } void sortUsingComparator_(ObjCBlock5 cmptr) { return _lib._objc_msgSend_289( - _id, _lib._sel_sortUsingComparator_1, cmptr._id); + _id, + _lib._sel_sortUsingComparator_1, + cmptr._id, + ); } void sortWithOptions_usingComparator_(int opts, ObjCBlock5 cmptr) { return _lib._objc_msgSend_290( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + _id, + _lib._sel_sortWithOptions_usingComparator_1, + opts, + cmptr._id, + ); } static NSMutableArray arrayWithCapacity_( - NativeMacOsFramework _lib, int numItems) { + NativeMacOsFramework _lib, + int numItems, + ) { final _ret = _lib._objc_msgSend_49( - _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); + _lib._class_NSMutableArray1, + _lib._sel_arrayWithCapacity_1, + numItems, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithContentsOfFile_( - NativeMacOsFramework _lib, NSString? path) { - final _ret = _lib._objc_msgSend_291(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? path, + ) { + final _ret = _lib._objc_msgSend_291( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithContentsOfURL_( - NativeMacOsFramework _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_292(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSURL? url, + ) { + final _ret = _lib._objc_msgSend_292( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } NSMutableArray initWithContentsOfFile_(NSString? path) { final _ret = _lib._objc_msgSend_291( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } NSMutableArray initWithContentsOfURL_(NSURL? url) { final _ret = _lib._objc_msgSend_292( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } void applyDifference_(NSObject? difference) { return _lib._objc_msgSend_20( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + _id, + _lib._sel_applyDifference_1, + difference?._id ?? ffi.nullptr, + ); } static NSMutableArray array(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableArray1, + _lib._sel_array1, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObject_( - NativeMacOsFramework _lib, NSObject anObject) { + NativeMacOsFramework _lib, + NSObject anObject, + ) { final _ret = _lib._objc_msgSend_103( - _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); + _lib._class_NSMutableArray1, + _lib._sel_arrayWithObject_1, + anObject._id, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithObjects_count_(NativeMacOsFramework _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_50(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_count_1, objects, cnt); + static NSMutableArray arrayWithObjects_count_( + NativeMacOsFramework _lib, + ffi.Pointer> objects, + int cnt, + ) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_count_1, + objects, + cnt, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithObjects_( - NativeMacOsFramework _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_103(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_1, firstObj._id); + NativeMacOsFramework _lib, + NSObject firstObj, + ) { + final _ret = _lib._objc_msgSend_103( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_1, + firstObj._id, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray arrayWithArray_( - NativeMacOsFramework _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_58(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSArray? array, + ) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithArray_1, + array?._id ?? ffi.nullptr, + ); return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSArray arrayWithContentsOfURL_error_(NativeMacOsFramework _lib, - NSURL? url, ffi.Pointer> error) { + static NSArray arrayWithContentsOfURL_error_( + NativeMacOsFramework _lib, + NSURL? url, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_105( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); + _lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); return NSArray._(_ret, _lib, retain: true, release: true); } static NSMutableArray new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableArray1, + _lib._sel_new1, + ); return NSMutableArray._(_ret, _lib, retain: false, release: true); } static NSMutableArray alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableArray1, + _lib._sel_alloc1, + ); return NSMutableArray._(_ret, _lib, retain: false, release: true); } } class NSItemProvider extends NSObject { - NSItemProvider._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSItemProvider._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSItemProvider] that points to the same underlying object as [other]. static NSItemProvider castFrom(T other) { @@ -16552,15 +21315,21 @@ class NSItemProvider extends NSObject { /// Returns a [NSItemProvider] that wraps the given raw object pointer. static NSItemProvider castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSItemProvider._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSItemProvider]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSItemProvider1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSItemProvider1, + ); } @override @@ -16570,33 +21339,41 @@ class NSItemProvider extends NSObject { } void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, int visibility, ObjCBlock15 loadHandler) { + NSString? typeIdentifier, + int visibility, + ObjCBlock15 loadHandler, + ) { return _lib._objc_msgSend_311( - _id, - _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - visibility, - loadHandler._id); + _id, + _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + visibility, + loadHandler._id, + ); } void - registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( - NSString? typeIdentifier, - int fileOptions, - int visibility, - ObjCBlock19 loadHandler) { + registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( + NSString? typeIdentifier, + int fileOptions, + int visibility, + ObjCBlock19 loadHandler, + ) { return _lib._objc_msgSend_312( - _id, - _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions, - visibility, - loadHandler._id); + _id, + _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions, + visibility, + loadHandler._id, + ); } NSArray? get registeredTypeIdentifiers { - final _ret = - _lib._objc_msgSend_115(_id, _lib._sel_registeredTypeIdentifiers1); + final _ret = _lib._objc_msgSend_115( + _id, + _lib._sel_registeredTypeIdentifiers1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -16604,53 +21381,69 @@ class NSItemProvider extends NSObject { NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { final _ret = _lib._objc_msgSend_313( - _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); + _id, + _lib._sel_registeredTypeIdentifiersWithFileOptions_1, + fileOptions, + ); return NSArray._(_ret, _lib, retain: true, release: true); } bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { return _lib._objc_msgSend_37( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); + _id, + _lib._sel_hasItemConformingToTypeIdentifier_1, + typeIdentifier?._id ?? ffi.nullptr, + ); } bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { + NSString? typeIdentifier, + int fileOptions, + ) { return _lib._objc_msgSend_314( - _id, - _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions); + _id, + _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions, + ); } NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock18 completionHandler) { + NSString? typeIdentifier, + ObjCBlock18 completionHandler, + ) { final _ret = _lib._objc_msgSend_315( - _id, - _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); + _id, + _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock21 completionHandler) { + NSString? typeIdentifier, + ObjCBlock21 completionHandler, + ) { final _ret = _lib._objc_msgSend_316( - _id, - _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); + _id, + _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock20 completionHandler) { + NSString? typeIdentifier, + ObjCBlock20 completionHandler, + ) { final _ret = _lib._objc_msgSend_317( - _id, - _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); + _id, + _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } @@ -16663,80 +21456,111 @@ class NSItemProvider extends NSObject { set suggestedName(NSString? value) { _lib._objc_msgSend_302( - _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setSuggestedName_1, + value?._id ?? ffi.nullptr, + ); } NSItemProvider initWithObject_(NSObject? object) { final _ret = _lib._objc_msgSend_103( - _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithObject_1, + object?._id ?? ffi.nullptr, + ); return NSItemProvider._(_ret, _lib, retain: true, release: true); } void registerObject_visibility_(NSObject? object, int visibility) { - return _lib._objc_msgSend_318(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); + return _lib._objc_msgSend_318( + _id, + _lib._sel_registerObject_visibility_1, + object?._id ?? ffi.nullptr, + visibility, + ); } void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, int visibility, ObjCBlock22 loadHandler) { + NSObject? aClass, + int visibility, + ObjCBlock22 loadHandler, + ) { return _lib._objc_msgSend_319( - _id, - _lib._sel_registerObjectOfClass_visibility_loadHandler_1, - aClass?._id ?? ffi.nullptr, - visibility, - loadHandler._id); + _id, + _lib._sel_registerObjectOfClass_visibility_loadHandler_1, + aClass?._id ?? ffi.nullptr, + visibility, + loadHandler._id, + ); } bool canLoadObjectOfClass_(NSObject? aClass) { return _lib._objc_msgSend_0( - _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + _id, + _lib._sel_canLoadObjectOfClass_1, + aClass?._id ?? ffi.nullptr, + ); } NSProgress loadObjectOfClass_completionHandler_( - NSObject? aClass, ObjCBlock23 completionHandler) { + NSObject? aClass, + ObjCBlock23 completionHandler, + ) { final _ret = _lib._objc_msgSend_320( - _id, - _lib._sel_loadObjectOfClass_completionHandler_1, - aClass?._id ?? ffi.nullptr, - completionHandler._id); + _id, + _lib._sel_loadObjectOfClass_completionHandler_1, + aClass?._id ?? ffi.nullptr, + completionHandler._id, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } NSItemProvider initWithItem_typeIdentifier_( - NSObject? item, NSString? typeIdentifier) { + NSObject? item, + NSString? typeIdentifier, + ) { final _ret = _lib._objc_msgSend_47( - _id, - _lib._sel_initWithItem_typeIdentifier_1, - item?._id ?? ffi.nullptr, - typeIdentifier?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithItem_typeIdentifier_1, + item?._id ?? ffi.nullptr, + typeIdentifier?._id ?? ffi.nullptr, + ); return NSItemProvider._(_ret, _lib, retain: true, release: true); } NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { final _ret = _lib._objc_msgSend_237( - _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfURL_1, + fileURL?._id ?? ffi.nullptr, + ); return NSItemProvider._(_ret, _lib, retain: true, release: true); } void registerItemForTypeIdentifier_loadHandler_( - NSString? typeIdentifier, ObjCBlock24 loadHandler) { + NSString? typeIdentifier, + ObjCBlock24 loadHandler, + ) { return _lib._objc_msgSend_321( - _id, - _lib._sel_registerItemForTypeIdentifier_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - loadHandler._id); + _id, + _lib._sel_registerItemForTypeIdentifier_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + loadHandler._id, + ); } void loadItemForTypeIdentifier_options_completionHandler_( - NSString? typeIdentifier, - NSDictionary? options, - ObjCBlock23 completionHandler) { + NSString? typeIdentifier, + NSDictionary? options, + ObjCBlock23 completionHandler, + ) { return _lib._objc_msgSend_322( - _id, - _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - completionHandler._id); + _id, + _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + completionHandler._id, + ); } ObjCBlock24 get previewImageHandler { @@ -16749,23 +21573,30 @@ class NSItemProvider extends NSObject { } void loadPreviewImageWithOptions_completionHandler_( - NSDictionary? options, ObjCBlock23 completionHandler) { + NSDictionary? options, + ObjCBlock23 completionHandler, + ) { return _lib._objc_msgSend_325( - _id, - _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler._id); + _id, + _lib._sel_loadPreviewImageWithOptions_completionHandler_1, + options?._id ?? ffi.nullptr, + completionHandler._id, + ); } static NSItemProvider new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSItemProvider1, + _lib._sel_new1, + ); return NSItemProvider._(_ret, _lib, retain: false, release: true); } static NSItemProvider alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSItemProvider1, + _lib._sel_alloc1, + ); return NSItemProvider._(_ret, _lib, retain: false, release: true); } } @@ -16778,14 +21609,18 @@ abstract class NSItemProviderRepresentationVisibility { } ffi.Pointer _ObjCBlock15_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + > + >() .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + >()(arg0); } final _ObjCBlock15_closureRegistry = {}; @@ -16797,64 +21632,84 @@ ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { } ffi.Pointer _ObjCBlock15_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, +) { return _ObjCBlock15_closureRegistry[block.ref.target.address]!(arg0); } class ObjCBlock15 extends _ObjCBlockBase { ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock15.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock15_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >(_ObjCBlock15_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock15.fromFunction(NativeMacOsFramework lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock15_closureTrampoline) - .cast(), - _ObjCBlock15_registerClosure(fn)), - lib); + ObjCBlock15.fromFunction( + NativeMacOsFramework lib, + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >(_ObjCBlock15_closureTrampoline).cast(), + _ObjCBlock15_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >()(_id, arg0); } } class NSProgress extends NSObject { - NSProgress._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSProgress._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSProgress] that points to the same underlying object as [other]. static NSProgress castFrom(T other) { @@ -16863,73 +21718,102 @@ class NSProgress extends NSObject { /// Returns a [NSProgress] that wraps the given raw object pointer. static NSProgress castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSProgress._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSProgress]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSProgress1, + ); } static NSProgress currentProgress(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_293( - _lib._class_NSProgress1, _lib._sel_currentProgress1); + _lib._class_NSProgress1, + _lib._sel_currentProgress1, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress progressWithTotalUnitCount_( - NativeMacOsFramework _lib, int unitCount) { - final _ret = _lib._objc_msgSend_294(_lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_1, unitCount); + NativeMacOsFramework _lib, + int unitCount, + ) { + final _ret = _lib._objc_msgSend_294( + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_1, + unitCount, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress discreteProgressWithTotalUnitCount_( - NativeMacOsFramework _lib, int unitCount) { - final _ret = _lib._objc_msgSend_294(_lib._class_NSProgress1, - _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); + NativeMacOsFramework _lib, + int unitCount, + ) { + final _ret = _lib._objc_msgSend_294( + _lib._class_NSProgress1, + _lib._sel_discreteProgressWithTotalUnitCount_1, + unitCount, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( - NativeMacOsFramework _lib, - int unitCount, - NSProgress? parent, - int portionOfParentTotalUnitCount) { + NativeMacOsFramework _lib, + int unitCount, + NSProgress? parent, + int portionOfParentTotalUnitCount, + ) { final _ret = _lib._objc_msgSend_295( - _lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, - unitCount, - parent?._id ?? ffi.nullptr, - portionOfParentTotalUnitCount); + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, + unitCount, + parent?._id ?? ffi.nullptr, + portionOfParentTotalUnitCount, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } NSProgress initWithParent_userInfo_( - NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + NSProgress? parentProgressOrNil, + NSObject? userInfoOrNil, + ) { final _ret = _lib._objc_msgSend_296( - _id, - _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr, - userInfoOrNil?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithParent_userInfo_1, + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr, + ); return NSProgress._(_ret, _lib, retain: true, release: true); } void becomeCurrentWithPendingUnitCount_(int unitCount) { return _lib._objc_msgSend_297( - _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); + _id, + _lib._sel_becomeCurrentWithPendingUnitCount_1, + unitCount, + ); } void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock16 work) { + int unitCount, + ObjCBlock16 work, + ) { return _lib._objc_msgSend_298( - _id, - _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, - unitCount, - work._id); + _id, + _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, + unitCount, + work._id, + ); } void resignCurrent() { @@ -16938,10 +21822,11 @@ class NSProgress extends NSObject { void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { return _lib._objc_msgSend_299( - _id, - _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, - inUnitCount); + _id, + _lib._sel_addChild_withPendingUnitCount_1, + child?._id ?? ffi.nullptr, + inUnitCount, + ); } int get totalUnitCount { @@ -16969,20 +21854,28 @@ class NSProgress extends NSObject { set localizedDescription(NSString? value) { _lib._objc_msgSend_302( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setLocalizedDescription_1, + value?._id ?? ffi.nullptr, + ); } NSString? get localizedAdditionalDescription { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_localizedAdditionalDescription1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_localizedAdditionalDescription1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } set localizedAdditionalDescription(NSString? value) { - _lib._objc_msgSend_302(_id, _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); + _lib._objc_msgSend_302( + _id, + _lib._sel_setLocalizedAdditionalDescription_1, + value?._id ?? ffi.nullptr, + ); } bool get cancellable { @@ -17038,7 +21931,11 @@ class NSProgress extends NSObject { void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { return _lib._objc_msgSend_29( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); + _id, + _lib._sel_setUserInfoObject_forKey_1, + objectOrNil._id, + key._id, + ); } bool get indeterminate { @@ -17090,7 +21987,10 @@ class NSProgress extends NSObject { set estimatedTimeRemaining(NSNumber? value) { _lib._objc_msgSend_307( - _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setEstimatedTimeRemaining_1, + value?._id ?? ffi.nullptr, + ); } NSNumber? get throughput { @@ -17102,7 +22002,10 @@ class NSProgress extends NSObject { set throughput(NSNumber? value) { _lib._objc_msgSend_307( - _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setThroughput_1, + value?._id ?? ffi.nullptr, + ); } NSString get fileOperationKind { @@ -17123,7 +22026,10 @@ class NSProgress extends NSObject { set fileURL(NSURL? value) { _lib._objc_msgSend_309( - _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setFileURL_1, + value?._id ?? ffi.nullptr, + ); } NSNumber? get fileTotalCount { @@ -17135,7 +22041,10 @@ class NSProgress extends NSObject { set fileTotalCount(NSNumber? value) { _lib._objc_msgSend_307( - _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setFileTotalCount_1, + value?._id ?? ffi.nullptr, + ); } NSNumber? get fileCompletedCount { @@ -17147,7 +22056,10 @@ class NSProgress extends NSObject { set fileCompletedCount(NSNumber? value) { _lib._objc_msgSend_307( - _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setFileCompletedCount_1, + value?._id ?? ffi.nullptr, + ); } void publish() { @@ -17159,19 +22071,28 @@ class NSProgress extends NSObject { } static NSObject addSubscriberForFileURL_withPublishingHandler_( - NativeMacOsFramework _lib, NSURL? url, ObjCBlock17 publishingHandler) { + NativeMacOsFramework _lib, + NSURL? url, + ObjCBlock17 publishingHandler, + ) { final _ret = _lib._objc_msgSend_310( - _lib._class_NSProgress1, - _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, - url?._id ?? ffi.nullptr, - publishingHandler._id); + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url?._id ?? ffi.nullptr, + publishingHandler._id, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static void removeSubscriber_( - NativeMacOsFramework _lib, NSObject subscriber) { + NativeMacOsFramework _lib, + NSObject subscriber, + ) { return _lib._objc_msgSend_20( - _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + _lib._class_NSProgress1, + _lib._sel_removeSubscriber_1, + subscriber._id, + ); } bool get old { @@ -17184,8 +22105,10 @@ class NSProgress extends NSObject { } static NSProgress alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSProgress1, + _lib._sel_alloc1, + ); return NSProgress._(_ret, _lib, retain: false, release: true); } } @@ -17210,50 +22133,59 @@ void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { class ObjCBlock16 extends _ObjCBlockBase { ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock16.fromFunctionPointer(NativeMacOsFramework lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock16_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + ObjCBlock16.fromFunctionPointer( + NativeMacOsFramework lib, + ffi.Pointer> ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block) + >(_ObjCBlock16_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock16.fromFunction(NativeMacOsFramework lib, void Function() fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock16_closureTrampoline) - .cast(), - _ObjCBlock16_registerClosure(fn)), - lib); + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block) + >(_ObjCBlock16_closureTrampoline).cast(), + _ObjCBlock16_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call() { return _id.ref.invoke .cast< - ffi - .NativeFunction block)>>() + ffi.NativeFunction block)> + >() .asFunction block)>()(_id); } } ffi.Pointer<_ObjCBlock> _ObjCBlock17_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) + > + >() .asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>()(arg0); + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) + >()(arg0); } final _ObjCBlock17_closureRegistry = {}; @@ -17265,70 +22197,97 @@ ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { } ffi.Pointer<_ObjCBlock> _ObjCBlock17_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, +) { return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0); } class ObjCBlock17 extends _ObjCBlockBase { ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock17.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock17_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ) + >(_ObjCBlock17_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock17.fromFunction(NativeMacOsFramework lib, - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock17_closureTrampoline) - .cast(), - _ObjCBlock17_registerClosure(fn)), - lib); + ObjCBlock17.fromFunction( + NativeMacOsFramework lib, + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ) + >(_ObjCBlock17_closureTrampoline).cast(), + _ObjCBlock17_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; ffi.Pointer<_ObjCBlock> call(ffi.Pointer arg0) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ) + > + >() .asFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ) + >()(_id, arg0); } } -void _ObjCBlock18_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock18_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(arg0, arg1); } final _ObjCBlock18_closureRegistry = {}; @@ -17339,66 +22298,84 @@ ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock18_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock18_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock18 extends _ObjCBlockBase { ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock18.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock18_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock18_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock18.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock18_closureTrampoline) - .cast(), - _ObjCBlock18_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock18_closureTrampoline).cast(), + _ObjCBlock18_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } @@ -17407,14 +22384,18 @@ abstract class NSItemProviderFileOptions { } ffi.Pointer _ObjCBlock19_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + > + >() .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + >()(arg0); } final _ObjCBlock19_closureRegistry = {}; @@ -17426,70 +22407,100 @@ ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { } ffi.Pointer _ObjCBlock19_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, +) { return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0); } class ObjCBlock19 extends _ObjCBlockBase { ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock19.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock19_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >(_ObjCBlock19_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock19.fromFunction(NativeMacOsFramework lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock19_closureTrampoline) - .cast(), - _ObjCBlock19_registerClosure(fn)), - lib); + ObjCBlock19.fromFunction( + NativeMacOsFramework lib, + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >(_ObjCBlock19_closureTrampoline).cast(), + _ObjCBlock19_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >()(_id, arg0); } } -void _ObjCBlock20_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { +void _ObjCBlock20_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) + >()(arg0, arg1, arg2); } final _ObjCBlock20_closureRegistry = {}; @@ -17500,86 +22511,125 @@ ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock20_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { +void _ObjCBlock20_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, +) { return _ObjCBlock20_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); } class ObjCBlock20 extends _ObjCBlockBase { ObjCBlock20._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock20.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock20_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock20_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock20.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock20_closureTrampoline) - .cast(), - _ObjCBlock20_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function( + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock20_closureTrampoline).cast(), + _ObjCBlock20_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2, + ) + >()(_id, arg0, arg1, arg2); } } -void _ObjCBlock21_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock21_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(arg0, arg1); } final _ObjCBlock21_closureRegistry = {}; @@ -17590,78 +22640,100 @@ ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock21_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock21_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock21_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock21 extends _ObjCBlockBase { ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock21.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock21_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock21_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock21.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock21_closureTrampoline) - .cast(), - _ObjCBlock21_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock21_closureTrampoline).cast(), + _ObjCBlock21_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } ffi.Pointer _ObjCBlock22_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + > + >() .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + >()(arg0); } final _ObjCBlock22_closureRegistry = {}; @@ -17673,70 +22745,97 @@ ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { } ffi.Pointer _ObjCBlock22_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, +) { return _ObjCBlock22_closureRegistry[block.ref.target.address]!(arg0); } class ObjCBlock22 extends _ObjCBlockBase { ObjCBlock22._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock22.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock22_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >(_ObjCBlock22_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock22.fromFunction(NativeMacOsFramework lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock22_closureTrampoline) - .cast(), - _ObjCBlock22_registerClosure(fn)), - lib); + ObjCBlock22.fromFunction( + NativeMacOsFramework lib, + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >(_ObjCBlock22_closureTrampoline).cast(), + _ObjCBlock22_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + > + >() .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ) + >()(_id, arg0); } } -void _ObjCBlock23_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock23_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(arg0, arg1); } final _ObjCBlock23_closureRegistry = {}; @@ -17747,86 +22846,110 @@ ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { return ffi.Pointer.fromAddress(id); } -void _ObjCBlock23_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { +void _ObjCBlock23_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, +) { return _ObjCBlock23_closureRegistry[block.ref.target.address]!(arg0, arg1); } class ObjCBlock23 extends _ObjCBlockBase { ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock23.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock23_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock23_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock23.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock23_closureTrampoline) - .cast(), - _ObjCBlock23_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >(_ObjCBlock23_closureTrampoline).cast(), + _ObjCBlock23_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ) + >()(_id, arg0, arg1); } } void _ObjCBlock24_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >()(arg0, arg1, arg2); } final _ObjCBlock24_closureRegistry = {}; @@ -17838,402 +22961,573 @@ ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { } void _ObjCBlock24_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, +) { return _ObjCBlock24_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); + arg0, + arg1, + arg2, + ); } class ObjCBlock24 extends _ObjCBlockBase { ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. ObjCBlock24.fromFunctionPointer( - NativeMacOsFramework lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock24_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + NativeMacOsFramework lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + > + ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock24_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock24.fromFunction( - NativeMacOsFramework lib, - void Function(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock24_closureTrampoline) - .cast(), - _ObjCBlock24_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >(_ObjCBlock24_closureTrampoline).cast(), + _ObjCBlock24_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + void call( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + > + >() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2, + ) + >()(_id, arg0, arg1, arg2); } } class NSMutableString extends NSString { - NSMutableString._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSMutableString._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSMutableString] that points to the same underlying object as [other]. static NSMutableString castFrom(T other) { - return NSMutableString._(other._id, other._lib, - retain: true, release: true); + return NSMutableString._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSMutableString] that wraps the given raw object pointer. static NSMutableString castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSMutableString._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSMutableString]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableString1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableString1, + ); } void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { return _lib._objc_msgSend_326( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - aString?._id ?? ffi.nullptr); + _id, + _lib._sel_replaceCharactersInRange_withString_1, + range, + aString?._id ?? ffi.nullptr, + ); } void insertString_atIndex_(NSString? aString, int loc) { - return _lib._objc_msgSend_327(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); + return _lib._objc_msgSend_327( + _id, + _lib._sel_insertString_atIndex_1, + aString?._id ?? ffi.nullptr, + loc, + ); } void deleteCharactersInRange_(_NSRange range) { return _lib._objc_msgSend_282( - _id, _lib._sel_deleteCharactersInRange_1, range); + _id, + _lib._sel_deleteCharactersInRange_1, + range, + ); } void appendString_(NSString? aString) { return _lib._objc_msgSend_328( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + _id, + _lib._sel_appendString_1, + aString?._id ?? ffi.nullptr, + ); } void appendFormat_(NSString? format) { return _lib._objc_msgSend_328( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + _id, + _lib._sel_appendFormat_1, + format?._id ?? ffi.nullptr, + ); } void setString_(NSString? aString) { return _lib._objc_msgSend_328( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + _id, + _lib._sel_setString_1, + aString?._id ?? ffi.nullptr, + ); } - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, _NSRange searchRange) { + int replaceOccurrencesOfString_withString_options_range_( + NSString? target, + NSString? replacement, + int options, + _NSRange searchRange, + ) { return _lib._objc_msgSend_329( - _id, - _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); + _id, + _lib._sel_replaceOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange, + ); } - bool applyTransform_reverse_range_updatedRange_(NSString transform, - bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { + bool applyTransform_reverse_range_updatedRange_( + NSString transform, + bool reverse, + _NSRange range, + ffi.Pointer<_NSRange> resultingRange, + ) { return _lib._objc_msgSend_330( - _id, - _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform._id, - reverse, - range, - resultingRange); + _id, + _lib._sel_applyTransform_reverse_range_updatedRange_1, + transform._id, + reverse, + range, + resultingRange, + ); } NSMutableString initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_331(_id, _lib._sel_initWithCapacity_1, capacity); + final _ret = _lib._objc_msgSend_331( + _id, + _lib._sel_initWithCapacity_1, + capacity, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithCapacity_( - NativeMacOsFramework _lib, int capacity) { + NativeMacOsFramework _lib, + int capacity, + ) { final _ret = _lib._objc_msgSend_331( - _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); + _lib._class_NSMutableString1, + _lib._sel_stringWithCapacity_1, + capacity, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static ffi.Pointer getAvailableStringEncodings( - NativeMacOsFramework _lib) { + NativeMacOsFramework _lib, + ) { return _lib._objc_msgSend_202( - _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); + _lib._class_NSMutableString1, + _lib._sel_availableStringEncodings1, + ); } static NSString localizedNameOfStringEncoding_( - NativeMacOsFramework _lib, int encoding) { - final _ret = _lib._objc_msgSend_163(_lib._class_NSMutableString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); + NativeMacOsFramework _lib, + int encoding, + ) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSMutableString1, + _lib._sel_localizedNameOfStringEncoding_1, + encoding, + ); return NSString._(_ret, _lib, retain: true, release: true); } static int getDefaultCStringEncoding(NativeMacOsFramework _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); + _lib._class_NSMutableString1, + _lib._sel_defaultCStringEncoding1, + ); } static NSMutableString string(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableString1, + _lib._sel_string1, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithString_( - NativeMacOsFramework _lib, NSString? string) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? string, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSMutableString1, + _lib._sel_stringWithString_1, + string?._id ?? ffi.nullptr, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCharacters_length_(NativeMacOsFramework _lib, - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_215(_lib._class_NSMutableString1, - _lib._sel_stringWithCharacters_length_1, characters, length); + static NSMutableString stringWithCharacters_length_( + NativeMacOsFramework _lib, + ffi.Pointer characters, + int length, + ) { + final _ret = _lib._objc_msgSend_215( + _lib._class_NSMutableString1, + _lib._sel_stringWithCharacters_length_1, + characters, + length, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithUTF8String_( - NativeMacOsFramework _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_216(_lib._class_NSMutableString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + NativeMacOsFramework _lib, + ffi.Pointer nullTerminatedCString, + ) { + final _ret = _lib._objc_msgSend_216( + _lib._class_NSMutableString1, + _lib._sel_stringWithUTF8String_1, + nullTerminatedCString, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithFormat_( - NativeMacOsFramework _lib, NSString? format) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? format, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSMutableString1, + _lib._sel_stringWithFormat_1, + format?._id ?? ffi.nullptr, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString localizedStringWithFormat_( - NativeMacOsFramework _lib, NSString? format) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? format, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSMutableString1, + _lib._sel_localizedStringWithFormat_1, + format?._id ?? ffi.nullptr, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( - NativeMacOsFramework _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_220( - _lib._class_NSMutableString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); + _lib._class_NSMutableString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - NativeMacOsFramework _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + NativeMacOsFramework _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_220( - _lib._class_NSMutableString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); + _lib._class_NSMutableString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithCString_encoding_( - NativeMacOsFramework _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_228(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); + NativeMacOsFramework _lib, + ffi.Pointer cString, + int enc, + ) { + final _ret = _lib._objc_msgSend_228( + _lib._class_NSMutableString1, + _lib._sel_stringWithCString_encoding_1, + cString, + enc, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithContentsOfURL_encoding_error_( - NativeMacOsFramework _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSURL? url, + int enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_229( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithContentsOfFile_encoding_error_( - NativeMacOsFramework _lib, - NSString? path, - int enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSString? path, + int enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_230( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithContentsOfURL_usedEncoding_error_( - NativeMacOsFramework _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_231( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static NSMutableString stringWithContentsOfFile_usedEncoding_error_( - NativeMacOsFramework _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_232( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error, + ); return NSMutableString._(_ret, _lib, retain: true, release: true); } static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - NativeMacOsFramework _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + NativeMacOsFramework _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion, + ) { return _lib._objc_msgSend_233( - _lib._class_NSMutableString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); + _lib._class_NSMutableString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion, + ); } static NSObject stringWithContentsOfFile_( - NativeMacOsFramework _lib, NSString? path) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? path, + ) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject stringWithContentsOfURL_( - NativeMacOsFramework _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSURL? url, + ) { + final _ret = _lib._objc_msgSend_237( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject stringWithCString_length_( - NativeMacOsFramework _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_228(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_length_1, bytes, length); + NativeMacOsFramework _lib, + ffi.Pointer bytes, + int length, + ) { + final _ret = _lib._objc_msgSend_228( + _lib._class_NSMutableString1, + _lib._sel_stringWithCString_length_1, + bytes, + length, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject stringWithCString_( - NativeMacOsFramework _lib, ffi.Pointer bytes) { + NativeMacOsFramework _lib, + ffi.Pointer bytes, + ) { final _ret = _lib._objc_msgSend_216( - _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); + _lib._class_NSMutableString1, + _lib._sel_stringWithCString_1, + bytes, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSMutableString new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableString1, + _lib._sel_new1, + ); return NSMutableString._(_ret, _lib, retain: false, release: true); } static NSMutableString alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableString1, + _lib._sel_alloc1, + ); return NSMutableString._(_ret, _lib, retain: false, release: true); } } class NSMutableDictionary extends NSDictionary { - NSMutableDictionary._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSMutableDictionary._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. static NSMutableDictionary castFrom(T other) { - return NSMutableDictionary._(other._id, other._lib, - retain: true, release: true); + return NSMutableDictionary._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. static NSMutableDictionary castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSMutableDictionary._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSMutableDictionary]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableDictionary1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableDictionary1, + ); } void removeObjectForKey_(NSObject aKey) { @@ -18241,8 +23535,12 @@ class NSMutableDictionary extends NSDictionary { } void setObject_forKey_(NSObject anObject, NSObject? aKey) { - return _lib._objc_msgSend_332(_id, _lib._sel_setObject_forKey_1, - anObject._id, aKey?._id ?? ffi.nullptr); + return _lib._objc_msgSend_332( + _id, + _lib._sel_setObject_forKey_1, + anObject._id, + aKey?._id ?? ffi.nullptr, + ); } @override @@ -18252,21 +23550,30 @@ class NSMutableDictionary extends NSDictionary { } NSMutableDictionary initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_49(_id, _lib._sel_initWithCapacity_1, numItems); + final _ret = _lib._objc_msgSend_49( + _id, + _lib._sel_initWithCapacity_1, + numItems, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } @override NSMutableDictionary initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_333(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + return _lib._objc_msgSend_333( + _id, + _lib._sel_addEntriesFromDictionary_1, + otherDictionary?._id ?? ffi.nullptr, + ); } void removeAllObjects() { @@ -18275,145 +23582,221 @@ class NSMutableDictionary extends NSDictionary { void removeObjectsForKeys_(NSArray? keyArray) { return _lib._objc_msgSend_278( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + _id, + _lib._sel_removeObjectsForKeys_1, + keyArray?._id ?? ffi.nullptr, + ); } void setDictionary_(NSDictionary? otherDictionary) { return _lib._objc_msgSend_333( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + _id, + _lib._sel_setDictionary_1, + otherDictionary?._id ?? ffi.nullptr, + ); } void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { - return _lib._objc_msgSend_332(_id, _lib._sel_setObject_forKeyedSubscript_1, - obj._id, key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_332( + _id, + _lib._sel_setObject_forKeyedSubscript_1, + obj._id, + key?._id ?? ffi.nullptr, + ); } static NSMutableDictionary dictionaryWithCapacity_( - NativeMacOsFramework _lib, int numItems) { - final _ret = _lib._objc_msgSend_49(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithCapacity_1, numItems); + NativeMacOsFramework _lib, + int numItems, + ) { + final _ret = _lib._objc_msgSend_49( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithCapacity_1, + numItems, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithContentsOfFile_( - NativeMacOsFramework _lib, NSString? path) { - final _ret = _lib._objc_msgSend_334(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? path, + ) { + final _ret = _lib._objc_msgSend_334( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithContentsOfURL_( - NativeMacOsFramework _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_335(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSURL? url, + ) { + final _ret = _lib._objc_msgSend_335( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } NSMutableDictionary initWithContentsOfFile_(NSString? path) { final _ret = _lib._objc_msgSend_334( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfFile_1, + path?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } NSMutableDictionary initWithContentsOfURL_(NSURL? url) { final _ret = _lib._objc_msgSend_335( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithContentsOfURL_1, + url?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithSharedKeySet_( - NativeMacOsFramework _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_336(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); + NativeMacOsFramework _lib, + NSObject keyset, + ) { + final _ret = _lib._objc_msgSend_336( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithSharedKeySet_1, + keyset._id, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionary(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); + _lib._class_NSMutableDictionary1, + _lib._sel_dictionary1, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObject_forKey_( - NativeMacOsFramework _lib, NSObject object, NSObject? key) { + NativeMacOsFramework _lib, + NSObject object, + NSObject? key, + ) { final _ret = _lib._objc_msgSend_126( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjects_forKeys_count_( - NativeMacOsFramework _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_114(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + NativeMacOsFramework _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { + final _ret = _lib._objc_msgSend_114( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, + objects, + keys, + cnt, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjectsAndKeys_( - NativeMacOsFramework _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_103(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + NativeMacOsFramework _lib, + NSObject firstObject, + ) { + final _ret = _lib._objc_msgSend_103( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, + firstObject._id, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithDictionary_( - NativeMacOsFramework _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_127(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSDictionary? dict, + ) { + final _ret = _lib._objc_msgSend_127( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, + dict?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary dictionaryWithObjects_forKeys_( - NativeMacOsFramework _lib, NSArray? objects, NSArray? keys) { + NativeMacOsFramework _lib, + NSArray? objects, + NSArray? keys, + ) { final _ret = _lib._objc_msgSend_128( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr, + ); return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } static NSDictionary dictionaryWithContentsOfURL_error_( - NativeMacOsFramework _lib, - NSURL? url, - ffi.Pointer> error) { + NativeMacOsFramework _lib, + NSURL? url, + ffi.Pointer> error, + ) { final _ret = _lib._objc_msgSend_130( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error, + ); return NSDictionary._(_ret, _lib, retain: true, release: true); } static NSObject sharedKeySetForKeys_( - NativeMacOsFramework _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_58(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSArray? keys, + ) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, + keys?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } static NSMutableDictionary new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, + _lib._sel_new1, + ); return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } static NSMutableDictionary alloc(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_alloc1); + _lib._class_NSMutableDictionary1, + _lib._sel_alloc1, + ); return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } } class NSMutableSet extends NSSet { - NSMutableSet._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSMutableSet._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSMutableSet] that points to the same underlying object as [other]. static NSMutableSet castFrom(T other) { @@ -18422,15 +23805,21 @@ class NSMutableSet extends NSSet { /// Returns a [NSMutableSet] that wraps the given raw object pointer. static NSMutableSet castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSMutableSet._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSMutableSet]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableSet1, + ); } void addObject_(NSObject object) { @@ -18444,7 +23833,10 @@ class NSMutableSet extends NSSet { @override NSMutableSet initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } @@ -18455,24 +23847,36 @@ class NSMutableSet extends NSSet { } NSMutableSet initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_49(_id, _lib._sel_initWithCapacity_1, numItems); + final _ret = _lib._objc_msgSend_49( + _id, + _lib._sel_initWithCapacity_1, + numItems, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } void addObjectsFromArray_(NSArray? array) { return _lib._objc_msgSend_278( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + _id, + _lib._sel_addObjectsFromArray_1, + array?._id ?? ffi.nullptr, + ); } void intersectSet_(NSSet? otherSet) { return _lib._objc_msgSend_337( - _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); + _id, + _lib._sel_intersectSet_1, + otherSet?._id ?? ffi.nullptr, + ); } void minusSet_(NSSet? otherSet) { return _lib._objc_msgSend_337( - _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); + _id, + _lib._sel_minusSet_1, + otherSet?._id ?? ffi.nullptr, + ); } void removeAllObjects() { @@ -18481,77 +23885,120 @@ class NSMutableSet extends NSSet { void unionSet_(NSSet? otherSet) { return _lib._objc_msgSend_337( - _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); + _id, + _lib._sel_unionSet_1, + otherSet?._id ?? ffi.nullptr, + ); } void setSet_(NSSet? otherSet) { return _lib._objc_msgSend_337( - _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); + _id, + _lib._sel_setSet_1, + otherSet?._id ?? ffi.nullptr, + ); } static NSMutableSet setWithCapacity_( - NativeMacOsFramework _lib, int numItems) { + NativeMacOsFramework _lib, + int numItems, + ) { final _ret = _lib._objc_msgSend_49( - _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); + _lib._class_NSMutableSet1, + _lib._sel_setWithCapacity_1, + numItems, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet set1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableSet1, + _lib._sel_set1, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithObject_( - NativeMacOsFramework _lib, NSObject object) { + NativeMacOsFramework _lib, + NSObject object, + ) { final _ret = _lib._objc_msgSend_103( - _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); + _lib._class_NSMutableSet1, + _lib._sel_setWithObject_1, + object._id, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet setWithObjects_count_(NativeMacOsFramework _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_50(_lib._class_NSMutableSet1, - _lib._sel_setWithObjects_count_1, objects, cnt); + static NSMutableSet setWithObjects_count_( + NativeMacOsFramework _lib, + ffi.Pointer> objects, + int cnt, + ) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSMutableSet1, + _lib._sel_setWithObjects_count_1, + objects, + cnt, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithObjects_( - NativeMacOsFramework _lib, NSObject firstObj) { + NativeMacOsFramework _lib, + NSObject firstObj, + ) { final _ret = _lib._objc_msgSend_103( - _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); + _lib._class_NSMutableSet1, + _lib._sel_setWithObjects_1, + firstObj._id, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithSet_(NativeMacOsFramework _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_141(_lib._class_NSMutableSet1, - _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_141( + _lib._class_NSMutableSet1, + _lib._sel_setWithSet_1, + set?._id ?? ffi.nullptr, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet setWithArray_(NativeMacOsFramework _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_58(_lib._class_NSMutableSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableSet1, + _lib._sel_setWithArray_1, + array?._id ?? ffi.nullptr, + ); return NSMutableSet._(_ret, _lib, retain: true, release: true); } static NSMutableSet new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableSet1, + _lib._sel_new1, + ); return NSMutableSet._(_ret, _lib, retain: false, release: true); } static NSMutableSet alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableSet1, + _lib._sel_alloc1, + ); return NSMutableSet._(_ret, _lib, retain: false, release: true); } } class NSNotification extends NSObject { - NSNotification._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSNotification._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSNotification] that points to the same underlying object as [other]. static NSNotification castFrom(T other) { @@ -18560,15 +24007,21 @@ class NSNotification extends NSObject { /// Returns a [NSNotification] that wraps the given raw object pointer. static NSNotification castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSNotification._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSNotification]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNotification1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNotification1, + ); } NSString get name { @@ -18589,40 +24042,56 @@ class NSNotification extends NSObject { } NSNotification initWithName_object_userInfo_( - NSString name, NSObject object, NSDictionary? userInfo) { + NSString name, + NSObject object, + NSDictionary? userInfo, + ) { final _ret = _lib._objc_msgSend_338( - _id, - _lib._sel_initWithName_object_userInfo_1, - name._id, - object._id, - userInfo?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithName_object_userInfo_1, + name._id, + object._id, + userInfo?._id ?? ffi.nullptr, + ); return NSNotification._(_ret, _lib, retain: true, release: true); } NSNotification initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSNotification._(_ret, _lib, retain: true, release: true); } static NSNotification notificationWithName_object_( - NativeMacOsFramework _lib, NSString aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_218(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName._id, anObject._id); + NativeMacOsFramework _lib, + NSString aName, + NSObject anObject, + ) { + final _ret = _lib._objc_msgSend_218( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, + aName._id, + anObject._id, + ); return NSNotification._(_ret, _lib, retain: true, release: true); } static NSNotification notificationWithName_object_userInfo_( - NativeMacOsFramework _lib, - NSString aName, - NSObject anObject, - NSDictionary? aUserInfo) { + NativeMacOsFramework _lib, + NSString aName, + NSObject anObject, + NSDictionary? aUserInfo, + ) { final _ret = _lib._objc_msgSend_338( - _lib._class_NSNotification1, - _lib._sel_notificationWithName_object_userInfo_1, - aName._id, - anObject._id, - aUserInfo?._id ?? ffi.nullptr); + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_userInfo_1, + aName._id, + anObject._id, + aUserInfo?._id ?? ffi.nullptr, + ); return NSNotification._(_ret, _lib, retain: true, release: true); } @@ -18633,14 +24102,18 @@ class NSNotification extends NSObject { } static NSNotification new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotification1, + _lib._sel_new1, + ); return NSNotification._(_ret, _lib, retain: false, release: true); } static NSNotification alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotification1, + _lib._sel_alloc1, + ); return NSNotification._(_ret, _lib, retain: false, release: true); } } @@ -18648,9 +24121,12 @@ class NSNotification extends NSObject { /// Because NSBundle caches allocated instances, subclasses should be prepared /// to receive an already initialized object back from [super initWithPath:] class NSBundle extends NSObject { - NSBundle._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSBundle._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSBundle] that points to the same underlying object as [other]. static NSBundle castFrom(T other) { @@ -18659,74 +24135,106 @@ class NSBundle extends NSObject { /// Returns a [NSBundle] that wraps the given raw object pointer. static NSBundle castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSBundle._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSBundle]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSBundle1, + ); } /// Methods for creating or retrieving bundle instances. static NSBundle? getMainBundle(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_339(_lib._class_NSBundle1, _lib._sel_mainBundle1); + final _ret = _lib._objc_msgSend_339( + _lib._class_NSBundle1, + _lib._sel_mainBundle1, + ); return _ret.address == 0 ? null : NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle bundleWithPath_(NativeMacOsFramework _lib, NSString? path) { - final _ret = _lib._objc_msgSend_38(_lib._class_NSBundle1, - _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_38( + _lib._class_NSBundle1, + _lib._sel_bundleWithPath_1, + path?._id ?? ffi.nullptr, + ); return NSBundle._(_ret, _lib, retain: true, release: true); } NSBundle initWithPath_(NSString? path) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithPath_1, + path?._id ?? ffi.nullptr, + ); return NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle bundleWithURL_(NativeMacOsFramework _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSBundle1, - _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_237( + _lib._class_NSBundle1, + _lib._sel_bundleWithURL_1, + url?._id ?? ffi.nullptr, + ); return NSBundle._(_ret, _lib, retain: true, release: true); } NSBundle initWithURL_(NSURL? url) { final _ret = _lib._objc_msgSend_237( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithURL_1, + url?._id ?? ffi.nullptr, + ); return NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle bundleForClass_(NativeMacOsFramework _lib, NSObject aClass) { final _ret = _lib._objc_msgSend_340( - _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); + _lib._class_NSBundle1, + _lib._sel_bundleForClass_1, + aClass._id, + ); return NSBundle._(_ret, _lib, retain: true, release: true); } static NSBundle bundleWithIdentifier_( - NativeMacOsFramework _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_341(_lib._class_NSBundle1, - _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); + NativeMacOsFramework _lib, + NSString? identifier, + ) { + final _ret = _lib._objc_msgSend_341( + _lib._class_NSBundle1, + _lib._sel_bundleWithIdentifier_1, + identifier?._id ?? ffi.nullptr, + ); return NSBundle._(_ret, _lib, retain: true, release: true); } static NSArray? getAllBundles(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_115(_lib._class_NSBundle1, _lib._sel_allBundles1); + final _ret = _lib._objc_msgSend_115( + _lib._class_NSBundle1, + _lib._sel_allBundles1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } static NSArray? getAllFrameworks(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_115(_lib._class_NSBundle1, _lib._sel_allFrameworks1); + final _ret = _lib._objc_msgSend_115( + _lib._class_NSBundle1, + _lib._sel_allFrameworks1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -18747,7 +24255,10 @@ class NSBundle extends NSObject { bool preflightAndReturnError_(ffi.Pointer> error) { return _lib._objc_msgSend_342( - _id, _lib._sel_preflightAndReturnError_1, error); + _id, + _lib._sel_preflightAndReturnError_1, + error, + ); } bool loadAndReturnError_(ffi.Pointer> error) { @@ -18778,9 +24289,10 @@ class NSBundle extends NSObject { NSURL URLForAuxiliaryExecutable_(NSString? executableName) { final _ret = _lib._objc_msgSend_343( - _id, - _lib._sel_URLForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); + _id, + _lib._sel_URLForAuxiliaryExecutable_1, + executableName?._id ?? ffi.nullptr, + ); return NSURL._(_ret, _lib, retain: true, release: true); } @@ -18842,9 +24354,10 @@ class NSBundle extends NSObject { NSString pathForAuxiliaryExecutable_(NSString? executableName) { final _ret = _lib._objc_msgSend_54( - _id, - _lib._sel_pathForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); + _id, + _lib._sel_pathForAuxiliaryExecutable_1, + executableName?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -18878,158 +24391,209 @@ class NSBundle extends NSObject { /// Methods for locating bundle resources. Instance methods locate resources in the bundle indicated by the receiver; class methods take an argument pointing to a bundle on disk. In the class methods, bundleURL is a URL pointing to the location of a bundle on disk, and may not be nil; bundlePath is the path equivalent of bundleURL, an absolute path pointing to the location of a bundle on disk. By contrast, subpath is a relative path to a subdirectory inside the relevant global or localized resource directory, and should be nil if the resource file in question is not in a subdirectory. Where appropriate, localizationName is the name of a .lproj directory in the bundle, minus the .lproj extension; passing nil for localizationName retrieves only global resources, whereas using a method without this argument retrieves both global and localized resources (using the standard localization search algorithm). static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( - NativeMacOsFramework _lib, - NSString? name, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { + NativeMacOsFramework _lib, + NSString? name, + NSString? ext, + NSString? subpath, + NSURL? bundleURL, + ) { final _ret = _lib._objc_msgSend_344( - _lib._class_NSBundle1, - _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); + _lib._class_NSBundle1, + _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL?._id ?? ffi.nullptr, + ); return NSURL._(_ret, _lib, retain: true, release: true); } static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - NativeMacOsFramework _lib, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { + NativeMacOsFramework _lib, + NSString? ext, + NSString? subpath, + NSURL? bundleURL, + ) { final _ret = _lib._objc_msgSend_345( - _lib._class_NSBundle1, - _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); + _lib._class_NSBundle1, + _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { final _ret = _lib._objc_msgSend_346( - _id, - _lib._sel_URLForResource_withExtension_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr); + _id, + _lib._sel_URLForResource_withExtension_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + ); return NSURL._(_ret, _lib, retain: true, release: true); } NSURL URLForResource_withExtension_subdirectory_( - NSString? name, NSString? ext, NSString? subpath) { + NSString? name, + NSString? ext, + NSString? subpath, + ) { final _ret = _lib._objc_msgSend_347( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); + _id, + _lib._sel_URLForResource_withExtension_subdirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + ); return NSURL._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { + NSURL URLForResource_withExtension_subdirectory_localization_( + NSString? name, + NSString? ext, + NSString? subpath, + NSString? localizationName, + ) { final _ret = _lib._objc_msgSend_348( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_localization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); + _id, + _lib._sel_URLForResource_withExtension_subdirectory_localization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr, + ); return NSURL._(_ret, _lib, retain: true, release: true); } NSArray URLsForResourcesWithExtension_subdirectory_( - NSString? ext, NSString? subpath) { + NSString? ext, + NSString? subpath, + ) { final _ret = _lib._objc_msgSend_349( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray URLsForResourcesWithExtension_subdirectory_localization_( - NSString? ext, NSString? subpath, NSString? localizationName) { + NSString? ext, + NSString? subpath, + NSString? localizationName, + ) { final _ret = _lib._objc_msgSend_350( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSString pathForResource_ofType_inDirectory_(NativeMacOsFramework _lib, - NSString? name, NSString? ext, NSString? bundlePath) { + static NSString pathForResource_ofType_inDirectory_( + NativeMacOsFramework _lib, + NSString? name, + NSString? ext, + NSString? bundlePath, + ) { final _ret = _lib._objc_msgSend_351( - _lib._class_NSBundle1, - _lib._sel_pathForResource_ofType_inDirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); + _lib._class_NSBundle1, + _lib._sel_pathForResource_ofType_inDirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + bundlePath?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } static NSArray pathsForResourcesOfType_inDirectory_( - NativeMacOsFramework _lib, NSString? ext, NSString? bundlePath) { + NativeMacOsFramework _lib, + NSString? ext, + NSString? bundlePath, + ) { final _ret = _lib._objc_msgSend_349( - _lib._class_NSBundle1, - _lib._sel_pathsForResourcesOfType_inDirectory_1, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); + _lib._class_NSBundle1, + _lib._sel_pathsForResourcesOfType_inDirectory_1, + ext?._id ?? ffi.nullptr, + bundlePath?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSString pathForResource_ofType_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_208(_id, _lib._sel_pathForResource_ofType_1, - name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); + final _ret = _lib._objc_msgSend_208( + _id, + _lib._sel_pathForResource_ofType_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } - NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { + NSString pathForResource_ofType_inDirectory_forLocalization_( + NSString? name, + NSString? ext, + NSString? subpath, + NSString? localizationName, + ) { final _ret = _lib._objc_msgSend_352( - _id, - _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); + _id, + _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSArray pathsForResourcesOfType_inDirectory_forLocalization_( - NSString? ext, NSString? subpath, NSString? localizationName) { + NSString? ext, + NSString? subpath, + NSString? localizationName, + ) { final _ret = _lib._objc_msgSend_350( - _id, - _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); + _id, + _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } /// Methods for retrieving localized strings. NSString localizedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { + NSString? key, + NSString? value, + NSString? tableName, + ) { final _ret = _lib._objc_msgSend_351( - _id, - _lib._sel_localizedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedStringForKey_value_table_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr, + ); return NSString._(_ret, _lib, retain: true, release: true); } NSAttributedString localizedAttributedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { + NSString? key, + NSString? value, + NSString? tableName, + ) { final _ret = _lib._objc_msgSend_353( - _id, - _lib._sel_localizedAttributedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); + _id, + _lib._sel_localizedAttributedStringForKey_value_table_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr, + ); return NSAttributedString._(_ret, _lib, retain: true, release: true); } @@ -19049,8 +24613,10 @@ class NSBundle extends NSObject { } NSDictionary? get localizedInfoDictionary { - final _ret = - _lib._objc_msgSend_234(_id, _lib._sel_localizedInfoDictionary1); + final _ret = _lib._objc_msgSend_234( + _id, + _lib._sel_localizedInfoDictionary1, + ); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); @@ -19058,13 +24624,19 @@ class NSBundle extends NSObject { NSObject objectForInfoDictionaryKey_(NSString? key) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); + _id, + _lib._sel_objectForInfoDictionaryKey_1, + key?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject classNamed_(NSString? className) { final _ret = _lib._objc_msgSend_38( - _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); + _id, + _lib._sel_classNamed_1, + className?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } @@ -19097,29 +24669,36 @@ class NSBundle extends NSObject { } static NSArray preferredLocalizationsFromArray_( - NativeMacOsFramework _lib, NSArray? localizationsArray) { + NativeMacOsFramework _lib, + NSArray? localizationsArray, + ) { final _ret = _lib._objc_msgSend_53( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_1, - localizationsArray?._id ?? ffi.nullptr); + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_1, + localizationsArray?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } static NSArray preferredLocalizationsFromArray_forPreferences_( - NativeMacOsFramework _lib, - NSArray? localizationsArray, - NSArray? preferencesArray) { + NativeMacOsFramework _lib, + NSArray? localizationsArray, + NSArray? preferencesArray, + ) { final _ret = _lib._objc_msgSend_354( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_forPreferences_1, - localizationsArray?._id ?? ffi.nullptr, - preferencesArray?._id ?? ffi.nullptr); + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_forPreferences_1, + localizationsArray?._id ?? ffi.nullptr, + preferencesArray?._id ?? ffi.nullptr, + ); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray? get executableArchitectures { - final _ret = - _lib._objc_msgSend_115(_id, _lib._sel_executableArchitectures1); + final _ret = _lib._objc_msgSend_115( + _id, + _lib._sel_executableArchitectures1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -19132,15 +24711,19 @@ class NSBundle extends NSObject { /// This method will throw an exception if the receiver bundle has no on demand resource tag information. void setPreservationPriority_forTags_(double priority, NSSet? tags) { return _lib._objc_msgSend_355( - _id, - _lib._sel_setPreservationPriority_forTags_1, - priority, - tags?._id ?? ffi.nullptr); + _id, + _lib._sel_setPreservationPriority_forTags_1, + priority, + tags?._id ?? ffi.nullptr, + ); } double preservationPriorityForTag_(NSString? tag) { return _lib._objc_msgSend_44( - _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + _id, + _lib._sel_preservationPriorityForTag_1, + tag?._id ?? ffi.nullptr, + ); } static NSBundle new1(NativeMacOsFramework _lib) { @@ -19155,34 +24738,50 @@ class NSBundle extends NSObject { } class NSAttributedString extends _ObjCWrapper { - NSAttributedString._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSAttributedString._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSAttributedString] that points to the same underlying object as [other]. static NSAttributedString castFrom(T other) { - return NSAttributedString._(other._id, other._lib, - retain: true, release: true); + return NSAttributedString._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSAttributedString] that wraps the given raw object pointer. static NSAttributedString castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSAttributedString._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSAttributedString]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAttributedString1); + return obj._lib._objc_msgSend_0( + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAttributedString1, + ); } } class NSDate extends NSObject { - NSDate._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSDate._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSDate] that points to the same underlying object as [other]. static NSDate castFrom(T other) { @@ -19191,20 +24790,28 @@ class NSDate extends NSObject { /// Returns a [NSDate] that wraps the given raw object pointer. static NSDate castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSDate._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSDate]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDate1, + ); } double get timeIntervalSinceReferenceDate { return _lib._objc_msgSend_187( - _id, _lib._sel_timeIntervalSinceReferenceDate1); + _id, + _lib._sel_timeIntervalSinceReferenceDate1, + ); } @override @@ -19215,19 +24822,28 @@ class NSDate extends NSObject { NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { final _ret = _lib._objc_msgSend_356( - _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + _id, + _lib._sel_initWithTimeIntervalSinceReferenceDate_1, + ti, + ); return NSDate._(_ret, _lib, retain: true, release: true); } NSDate initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_51( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithCoder_1, + coder?._id ?? ffi.nullptr, + ); return NSDate._(_ret, _lib, retain: true, release: true); } double timeIntervalSinceDate_(NSDate? anotherDate) { - return _lib._objc_msgSend_357(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); + return _lib._objc_msgSend_357( + _id, + _lib._sel_timeIntervalSinceDate_1, + anotherDate?._id ?? ffi.nullptr, + ); } double get timeIntervalSinceNow { @@ -19239,37 +24855,55 @@ class NSDate extends NSObject { } NSObject addTimeInterval_(double seconds) { - final _ret = - _lib._objc_msgSend_356(_id, _lib._sel_addTimeInterval_1, seconds); + final _ret = _lib._objc_msgSend_356( + _id, + _lib._sel_addTimeInterval_1, + seconds, + ); return NSObject._(_ret, _lib, retain: true, release: true); } NSDate dateByAddingTimeInterval_(double ti) { - final _ret = - _lib._objc_msgSend_356(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + final _ret = _lib._objc_msgSend_356( + _id, + _lib._sel_dateByAddingTimeInterval_1, + ti, + ); return NSDate._(_ret, _lib, retain: true, release: true); } NSDate earlierDate_(NSDate? anotherDate) { final _ret = _lib._objc_msgSend_358( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); + _id, + _lib._sel_earlierDate_1, + anotherDate?._id ?? ffi.nullptr, + ); return NSDate._(_ret, _lib, retain: true, release: true); } NSDate laterDate_(NSDate? anotherDate) { final _ret = _lib._objc_msgSend_358( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); + _id, + _lib._sel_laterDate_1, + anotherDate?._id ?? ffi.nullptr, + ); return NSDate._(_ret, _lib, retain: true, release: true); } int compare_(NSDate? other) { return _lib._objc_msgSend_359( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + _id, + _lib._sel_compare_1, + other?._id ?? ffi.nullptr, + ); } bool isEqualToDate_(NSDate? otherDate) { return _lib._objc_msgSend_360( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); + _id, + _lib._sel_isEqualToDate_1, + otherDate?._id ?? ffi.nullptr, + ); } NSString? get description { @@ -19281,7 +24915,10 @@ class NSDate extends NSObject { NSString descriptionWithLocale_(NSObject locale) { final _ret = _lib._objc_msgSend_56( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + _id, + _lib._sel_descriptionWithLocale_1, + locale._id, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -19291,47 +24928,70 @@ class NSDate extends NSObject { } static NSDate dateWithTimeIntervalSinceNow_( - NativeMacOsFramework _lib, double secs) { + NativeMacOsFramework _lib, + double secs, + ) { final _ret = _lib._objc_msgSend_356( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); + _lib._class_NSDate1, + _lib._sel_dateWithTimeIntervalSinceNow_1, + secs, + ); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSinceReferenceDate_( - NativeMacOsFramework _lib, double ti) { - final _ret = _lib._objc_msgSend_356(_lib._class_NSDate1, - _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); + NativeMacOsFramework _lib, + double ti, + ) { + final _ret = _lib._objc_msgSend_356( + _lib._class_NSDate1, + _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, + ti, + ); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeIntervalSince1970_( - NativeMacOsFramework _lib, double secs) { + NativeMacOsFramework _lib, + double secs, + ) { final _ret = _lib._objc_msgSend_356( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); + _lib._class_NSDate1, + _lib._sel_dateWithTimeIntervalSince1970_1, + secs, + ); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate dateWithTimeInterval_sinceDate_( - NativeMacOsFramework _lib, double secsToBeAdded, NSDate? date) { + NativeMacOsFramework _lib, + double secsToBeAdded, + NSDate? date, + ) { final _ret = _lib._objc_msgSend_361( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + _lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr, + ); return NSDate._(_ret, _lib, retain: true, release: true); } static NSDate? getDistantFuture(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_362(_lib._class_NSDate1, _lib._sel_distantFuture1); + final _ret = _lib._objc_msgSend_362( + _lib._class_NSDate1, + _lib._sel_distantFuture1, + ); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); } static NSDate? getDistantPast(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_362(_lib._class_NSDate1, _lib._sel_distantPast1); + final _ret = _lib._objc_msgSend_362( + _lib._class_NSDate1, + _lib._sel_distantPast1, + ); return _ret.address == 0 ? null : NSDate._(_ret, _lib, retain: true, release: true); @@ -19346,22 +25006,29 @@ class NSDate extends NSObject { NSDate initWithTimeIntervalSinceNow_(double secs) { final _ret = _lib._objc_msgSend_356( - _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + _id, + _lib._sel_initWithTimeIntervalSinceNow_1, + secs, + ); return NSDate._(_ret, _lib, retain: true, release: true); } NSDate initWithTimeIntervalSince1970_(double secs) { final _ret = _lib._objc_msgSend_356( - _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + _id, + _lib._sel_initWithTimeIntervalSince1970_1, + secs, + ); return NSDate._(_ret, _lib, retain: true, release: true); } NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { final _ret = _lib._objc_msgSend_361( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); + _id, + _lib._sel_initWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr, + ); return NSDate._(_ret, _lib, retain: true, release: true); } @@ -19377,9 +25044,12 @@ class NSDate extends NSObject { } class NSProcessInfo extends NSObject { - NSProcessInfo._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSProcessInfo._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSProcessInfo] that points to the same underlying object as [other]. static NSProcessInfo castFrom(T other) { @@ -19388,20 +25058,28 @@ class NSProcessInfo extends NSObject { /// Returns a [NSProcessInfo] that wraps the given raw object pointer. static NSProcessInfo castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSProcessInfo._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSProcessInfo]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSProcessInfo1, + ); } static NSProcessInfo? getProcessInfo(NativeMacOsFramework _lib) { final _ret = _lib._objc_msgSend_363( - _lib._class_NSProcessInfo1, _lib._sel_processInfo1); + _lib._class_NSProcessInfo1, + _lib._sel_processInfo1, + ); return _ret.address == 0 ? null : NSProcessInfo._(_ret, _lib, retain: true, release: true); @@ -19437,7 +25115,10 @@ class NSProcessInfo extends NSObject { set processName(NSString? value) { _lib._objc_msgSend_302( - _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + _id, + _lib._sel_setProcessName_1, + value?._id ?? ffi.nullptr, + ); } int get processIdentifier { @@ -19462,8 +25143,10 @@ class NSProcessInfo extends NSObject { /// Human readable, localized; appropriate for displaying to user or using in bug emails and such; NOT appropriate for parsing NSString? get operatingSystemVersionString { - final _ret = - _lib._objc_msgSend_55(_id, _lib._sel_operatingSystemVersionString1); + final _ret = _lib._objc_msgSend_55( + _id, + _lib._sel_operatingSystemVersionString1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -19487,7 +25170,10 @@ class NSProcessInfo extends NSObject { bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { return _lib._objc_msgSend_365( - _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); + _id, + _lib._sel_isOperatingSystemAtLeastVersion_1, + version, + ); } double get systemUptime { @@ -19511,13 +25197,19 @@ class NSProcessInfo extends NSObject { /// Each pair of calls should have a matching "reason" argument, which can be used to easily track why an application is or is not automatically terminable. /// A given reason can be used more than once at the same time (for example: two files are transferring over the network, each one disables automatic termination with the reason @"file transfer in progress") void disableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_328(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + return _lib._objc_msgSend_328( + _id, + _lib._sel_disableAutomaticTermination_1, + reason?._id ?? ffi.nullptr, + ); } void enableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_328(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + return _lib._objc_msgSend_328( + _id, + _lib._sel_enableAutomaticTermination_1, + reason?._id ?? ffi.nullptr, + ); } /// Marks the calling app as supporting automatic termination. Without calling this or setting the equivalent Info.plist key (NSSupportsAutomaticTermination), the above methods (disableAutomaticTermination:/enableAutomaticTermination:) have no effect, @@ -19525,7 +25217,9 @@ class NSProcessInfo extends NSObject { /// This should be called during -applicationDidFinishLaunching or earlier. bool get automaticTerminationSupportEnabled { return _lib._objc_msgSend_11( - _id, _lib._sel_automaticTerminationSupportEnabled1); + _id, + _lib._sel_automaticTerminationSupportEnabled1, + ); } /// Marks the calling app as supporting automatic termination. Without calling this or setting the equivalent Info.plist key (NSSupportsAutomaticTermination), the above methods (disableAutomaticTermination:/enableAutomaticTermination:) have no effect, @@ -19533,44 +25227,58 @@ class NSProcessInfo extends NSObject { /// This should be called during -applicationDidFinishLaunching or earlier. set automaticTerminationSupportEnabled(bool value) { _lib._objc_msgSend_303( - _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); + _id, + _lib._sel_setAutomaticTerminationSupportEnabled_1, + value, + ); } /// Pass in an activity to this API, and a non-NULL, non-empty reason string. Indicate completion of the activity by calling the corresponding endActivity: method with the result of the beginActivityWithOptions:reason: method. The reason string is used for debugging. NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { final _ret = _lib._objc_msgSend_366( - _id, - _lib._sel_beginActivityWithOptions_reason_1, - options, - reason?._id ?? ffi.nullptr); + _id, + _lib._sel_beginActivityWithOptions_reason_1, + options, + reason?._id ?? ffi.nullptr, + ); return NSObject._(_ret, _lib, retain: true, release: true); } /// The argument to this method is the result of beginActivityWithOptions:reason:. void endActivity_(NSObject? activity) { return _lib._objc_msgSend_20( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + _id, + _lib._sel_endActivity_1, + activity?._id ?? ffi.nullptr, + ); } /// Synchronously perform an activity. The activity will be automatically ended after your block argument returns. The reason string is used for debugging. void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock16 block) { + int options, + NSString? reason, + ObjCBlock16 block, + ) { return _lib._objc_msgSend_367( - _id, - _lib._sel_performActivityWithOptions_reason_usingBlock_1, - options, - reason?._id ?? ffi.nullptr, - block._id); + _id, + _lib._sel_performActivityWithOptions_reason_usingBlock_1, + options, + reason?._id ?? ffi.nullptr, + block._id, + ); } /// Perform an expiring background task, which obtains an expiring task assertion on iOS. The block contains any work which needs to be completed as a background-priority task. The block will be scheduled on a system-provided concurrent queue. After a system-specified time, the block will be called with the `expired` parameter set to YES. The `expired` parameter will also be YES if the system decides to prematurely terminate a previous non-expiration invocation of the block. void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock25 block) { + NSString? reason, + ObjCBlock25 block, + ) { return _lib._objc_msgSend_368( - _id, - _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, - block._id); + _id, + _lib._sel_performExpiringActivityWithReason_usingBlock_1, + reason?._id ?? ffi.nullptr, + block._id, + ); } NSString? get userName { @@ -19606,14 +25314,18 @@ class NSProcessInfo extends NSObject { } static NSProcessInfo new1(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSProcessInfo1, + _lib._sel_new1, + ); return NSProcessInfo._(_ret, _lib, retain: false, release: true); } static NSProcessInfo alloc(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSProcessInfo1, + _lib._sel_alloc1, + ); return NSProcessInfo._(_ret, _lib, retain: false, release: true); } } @@ -19709,42 +25421,50 @@ void _ObjCBlock25_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { class ObjCBlock25 extends _ObjCBlockBase { ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, NativeMacOsFramework lib) - : super._(id, lib, retain: false, release: true); + : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock25.fromFunctionPointer(NativeMacOsFramework lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock25_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); + ObjCBlock25.fromFunctionPointer( + NativeMacOsFramework lib, + ffi.Pointer> ptr, + ) : this._( + lib._newBlock1( + _cFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0) + >(_ObjCBlock25_fnPtrTrampoline).cast(), + ptr.cast(), + ), + lib, + ); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. ObjCBlock25.fromFunction( - NativeMacOsFramework lib, void Function(bool arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock25_closureTrampoline) - .cast(), - _ObjCBlock25_registerClosure(fn)), - lib); + NativeMacOsFramework lib, + void Function(bool arg0) fn, + ) : this._( + lib._newBlock1( + _dartFuncTrampoline ??= + ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0) + >(_ObjCBlock25_closureTrampoline).cast(), + _ObjCBlock25_registerClosure(fn), + ), + lib, + ); static ffi.Pointer? _dartFuncTrampoline; void call(bool arg0) { return _id.ref.invoke .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0) + > + >() + .asFunction block, bool arg0)>()( + _id, + arg0, + ); } } @@ -19764,9 +25484,12 @@ abstract class NSProcessInfoThermalState { } class NSScreen extends NSObject { - NSScreen._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSScreen._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSScreen] that points to the same underlying object as [other]. static NSScreen castFrom(T other) { @@ -19775,21 +25498,29 @@ class NSScreen extends NSObject { /// Returns a [NSScreen] that wraps the given raw object pointer. static NSScreen castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSScreen._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSScreen]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScreen1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScreen1, + ); } /// All screens; first one is "zero" screen static NSArray? getScreens(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_115(_lib._class_NSScreen1, _lib._sel_screens1); + final _ret = _lib._objc_msgSend_115( + _lib._class_NSScreen1, + _lib._sel_screens1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -19797,16 +25528,20 @@ class NSScreen extends NSObject { /// Screen with key window static NSScreen? getMainScreen(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_370(_lib._class_NSScreen1, _lib._sel_mainScreen1); + final _ret = _lib._objc_msgSend_370( + _lib._class_NSScreen1, + _lib._sel_mainScreen1, + ); return _ret.address == 0 ? null : NSScreen._(_ret, _lib, retain: true, release: true); } static NSScreen? getDeepestScreen(NativeMacOsFramework _lib) { - final _ret = - _lib._objc_msgSend_370(_lib._class_NSScreen1, _lib._sel_deepestScreen1); + final _ret = _lib._objc_msgSend_370( + _lib._class_NSScreen1, + _lib._sel_deepestScreen1, + ); return _ret.address == 0 ? null : NSScreen._(_ret, _lib, retain: true, release: true); @@ -19815,7 +25550,9 @@ class NSScreen extends NSObject { /// screensHaveSeparateSpaces returns YES if each screen has its own set of spaces. This is a system setting and does not necessarily imply that there are multiple screens, nor that there are multiple spaces on any one screen static bool getScreensHaveSeparateSpaces(NativeMacOsFramework _lib) { return _lib._objc_msgSend_11( - _lib._class_NSScreen1, _lib._sel_screensHaveSeparateSpaces1); + _lib._class_NSScreen1, + _lib._sel_screensHaveSeparateSpaces1, + ); } int get depth { @@ -19852,7 +25589,10 @@ class NSScreen extends NSObject { /// canRepresentDisplayGamut: returns YES if the colorSpace of the receiving screen is capable of representing the given display gamut bool canRepresentDisplayGamut_(int displayGamut) { return _lib._objc_msgSend_374( - _id, _lib._sel_canRepresentDisplayGamut_1, displayGamut); + _id, + _lib._sel_canRepresentDisplayGamut_1, + displayGamut, + ); } /// Convert to/from the device pixel aligned coordinates system of a display @@ -19862,13 +25602,20 @@ class NSScreen extends NSObject { CGRect convertRectFromBacking_(CGRect rect) { return _lib._objc_msgSend_375( - _id, _lib._sel_convertRectFromBacking_1, rect); + _id, + _lib._sel_convertRectFromBacking_1, + rect, + ); } /// Uses NSIntegralRectWithOptions() to produce a pixel aligned rectangle on the target screen from the given input rectangle in global screen coordinates. CGRect backingAlignedRect_options_(CGRect rect, int options) { return _lib._objc_msgSend_376( - _id, _lib._sel_backingAlignedRect_options_1, rect, options); + _id, + _lib._sel_backingAlignedRect_options_1, + rect, + options, + ); } /// Returns the scale factor representing the number of backing store pixels corresponding to each linear unit in screen space on this NSScreen. This method is provided for rare cases when the explicit scale factor is needed. Please use -convert*ToBacking: methods whenever possible. @@ -19900,19 +25647,25 @@ class NSScreen extends NSObject { /// Returns the current maximum color component value for the screen. Typically the maximum is 1.0, but if any rendering context on the screen has requested extended dynamic range, it may return a value greater than 1.0, depending on system capabilities and other conditions. Only rendering contexts that support extended dynamic range can use values greater than 1.0. When the value changes, NSApplicationDidChangeScreenParametersNotification will be posted. double get maximumExtendedDynamicRangeColorComponentValue { return _lib._objc_msgSend_187( - _id, _lib._sel_maximumExtendedDynamicRangeColorComponentValue1); + _id, + _lib._sel_maximumExtendedDynamicRangeColorComponentValue1, + ); } /// Returns the maximum color component value that the screen is capable of when extended dynamic range is enabled, regardless of whether or not extended dynamic range is currently enabled. double get maximumPotentialExtendedDynamicRangeColorComponentValue { - return _lib._objc_msgSend_187(_id, - _lib._sel_maximumPotentialExtendedDynamicRangeColorComponentValue1); + return _lib._objc_msgSend_187( + _id, + _lib._sel_maximumPotentialExtendedDynamicRangeColorComponentValue1, + ); } /// Returns the current maximum color component value for reference rendering to the screen. If values beyond this are used, the display hardware may adjust content to fit into its dynamic range. For screens that do not support reference rendering, this will return 0. double get maximumReferenceExtendedDynamicRangeColorComponentValue { - return _lib._objc_msgSend_187(_id, - _lib._sel_maximumReferenceExtendedDynamicRangeColorComponentValue1); + return _lib._objc_msgSend_187( + _id, + _lib._sel_maximumReferenceExtendedDynamicRangeColorComponentValue1, + ); } /// The maximum frames per second this screen supports. @@ -19971,9 +25724,12 @@ abstract class NSWindowDepth { } class NSColorSpace extends _ObjCWrapper { - NSColorSpace._(ffi.Pointer id, NativeMacOsFramework lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSColorSpace._( + ffi.Pointer id, + NativeMacOsFramework lib, { + bool retain = false, + bool release = false, + }) : super._(id, lib, retain: retain, release: release); /// Returns a [NSColorSpace] that points to the same underlying object as [other]. static NSColorSpace castFrom(T other) { @@ -19982,15 +25738,21 @@ class NSColorSpace extends _ObjCWrapper { /// Returns a [NSColorSpace] that wraps the given raw object pointer. static NSColorSpace castFromPointer( - NativeMacOsFramework lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { + NativeMacOsFramework lib, + ffi.Pointer other, { + bool retain = false, + bool release = false, + }) { return NSColorSpace._(other, lib, retain: retain, release: release); } /// Returns whether [obj] is an instance of [NSColorSpace]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSColorSpace1); + obj._id, + obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSColorSpace1, + ); } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_utils.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_utils.dart index 83b3fc651c..3f1a827208 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_utils.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/platform/macos_utils.dart @@ -32,7 +32,8 @@ extension CFStringPointerX on Pointer { // Call CFStringGetCString as a backup. // See: https://developer.apple.com/documentation/corefoundation/1542133-cfstringgetcstringptr final strLen = lib.CFStringGetLength(this); - final maxLen = lib.CFStringGetMaximumSizeForEncoding( + final maxLen = + lib.CFStringGetMaximumSizeForEncoding( strLen, CFStringBuiltInEncodings.kCFStringEncodingUTF8, ) + @@ -45,7 +46,7 @@ extension CFStringPointerX on Pointer { maxLen, CFStringBuiltInEncodings.kCFStringEncodingUTF8, ); - if (ret == 0 /* FALSE */) { + if (ret == 0 /* FALSE */ ) { return null; } return buffer.cast().toDartString(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity.dart index d3b8223bdb..6d78777ab0 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity.dart @@ -1,5 +1,5 @@ // Generated with smithy-dart 0.3.2. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas,unnecessary_library_name /// # Amazon Cognito Identity /// diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity_provider.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity_provider.dart index 3bc1811bc4..52a4956f41 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity_provider.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/cognito_identity_provider.dart @@ -1,5 +1,5 @@ // Generated with smithy-dart 0.3.2. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas,unnecessary_library_name /// # Amazon Cognito Identity Provider /// diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_bridge.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_bridge.dart index 9b4de91f08..6aec7e169d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_bridge.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_bridge.dart @@ -3,7 +3,7 @@ /// Bridging extensions between Cognito SDK and Amplify Flutter types. @internal -library amplify_auth_cognito.sdk.sdk_bridge; +library; import 'package:amplify_auth_cognito_dart/amplify_auth_cognito_dart.dart'; import 'package:amplify_auth_cognito_dart/src/sdk/cognito_identity.dart' @@ -21,34 +21,34 @@ import 'package:smithy/smithy.dart'; extension ChallengeNameTypeBridge on ChallengeNameType { /// The sign in step corresponding to this challenge. AuthSignInStep get signInStep => switch (this) { - ChallengeNameType.customChallenge => - AuthSignInStep.confirmSignInWithCustomChallenge, - ChallengeNameType.newPasswordRequired => - AuthSignInStep.confirmSignInWithNewPassword, - ChallengeNameType.smsMfa => AuthSignInStep.confirmSignInWithSmsMfaCode, - ChallengeNameType.selectMfaType => - AuthSignInStep.continueSignInWithMfaSelection, - ChallengeNameType.mfaSetup => - AuthSignInStep.continueSignInWithMfaSetupSelection, - ChallengeNameType.softwareTokenMfa => - AuthSignInStep.confirmSignInWithTotpMfaCode, - ChallengeNameType.emailOtp => AuthSignInStep.confirmSignInWithOtpCode, - ChallengeNameType.adminNoSrpAuth || - ChallengeNameType.passwordVerifier || - ChallengeNameType.devicePasswordVerifier || - ChallengeNameType.deviceSrpAuth || - _ => - throw InvalidStateException('Unrecognized challenge type: $this'), - }; + ChallengeNameType.customChallenge => + AuthSignInStep.confirmSignInWithCustomChallenge, + ChallengeNameType.newPasswordRequired => + AuthSignInStep.confirmSignInWithNewPassword, + ChallengeNameType.smsMfa => AuthSignInStep.confirmSignInWithSmsMfaCode, + ChallengeNameType.selectMfaType => + AuthSignInStep.continueSignInWithMfaSelection, + ChallengeNameType.mfaSetup => + AuthSignInStep.continueSignInWithMfaSetupSelection, + ChallengeNameType.softwareTokenMfa => + AuthSignInStep.confirmSignInWithTotpMfaCode, + ChallengeNameType.emailOtp => AuthSignInStep.confirmSignInWithOtpCode, + ChallengeNameType.adminNoSrpAuth || + ChallengeNameType.passwordVerifier || + ChallengeNameType.devicePasswordVerifier || + ChallengeNameType.deviceSrpAuth || + _ => throw InvalidStateException('Unrecognized challenge type: $this'), + }; } /// Bridging helpers for [CodeDeliveryDetailsType]. extension CodeDeliveryDetailsBridge on CodeDeliveryDetailsType { /// The [AuthCodeDeliveryDetails] representation of `this`. AuthCodeDeliveryDetails get asAuthCodeDeliveryDetails { - final attributeKey = attributeName == null - ? null - : CognitoUserAttributeKey.parse(attributeName!); + final attributeKey = + attributeName == null + ? null + : CognitoUserAttributeKey.parse(attributeName!); return AuthCodeDeliveryDetails( destination: destination, deliveryMedium: @@ -62,19 +62,17 @@ extension CodeDeliveryDetailsBridge on CodeDeliveryDetailsType { extension DeliveryMediumTypeBridge on DeliveryMediumType { /// The [DeliveryMedium] representation of `this`. DeliveryMedium get asDeliveryMedium => switch (this) { - DeliveryMediumType.sms => DeliveryMedium.sms, - DeliveryMediumType.email => DeliveryMedium.email, - _ => DeliveryMedium.unknown, - }; + DeliveryMediumType.sms => DeliveryMedium.sms, + DeliveryMediumType.email => DeliveryMedium.email, + _ => DeliveryMedium.unknown, + }; } /// Bridging helpers for [AuthUserAttribute]. extension AuthUserAttributeBridge on AuthUserAttribute { /// This attribute as an [AttributeType]. - AttributeType get asAttributeType => AttributeType( - name: userAttributeKey.key, - value: value, - ); + AttributeType get asAttributeType => + AttributeType(name: userAttributeKey.key, value: value); } /// Bridging helpers for [AttributeType]. @@ -82,10 +80,7 @@ extension AttributeTypeBridge on AttributeType { /// This attribute as an [AuthUserAttribute]. AuthUserAttribute get asAuthUserAttribute { final key = CognitoUserAttributeKey.parse(name); - return AuthUserAttribute( - userAttributeKey: key, - value: value ?? '', - ); + return AuthUserAttribute(userAttributeKey: key, value: value ?? ''); } } @@ -93,13 +88,11 @@ extension AttributeTypeBridge on AttributeType { extension AuthenticationFlowTypeBridge on AuthenticationFlowType { /// The Cognito SDK value of `this`. AuthFlowType get sdkValue => switch (this) { - AuthenticationFlowType.userSrpAuth => AuthFlowType.userSrpAuth, - AuthenticationFlowType.customAuthWithSrp || - AuthenticationFlowType.customAuthWithoutSrp => - AuthFlowType.customAuth, - AuthenticationFlowType.userPasswordAuth => - AuthFlowType.userPasswordAuth, - }; + AuthenticationFlowType.userSrpAuth => AuthFlowType.userSrpAuth, + AuthenticationFlowType.customAuthWithSrp || + AuthenticationFlowType.customAuthWithoutSrp => AuthFlowType.customAuth, + AuthenticationFlowType.userPasswordAuth => AuthFlowType.userPasswordAuth, + }; } /// {@template amplify_auth_cognito_dart.sdk.wrapped_cognito_identity_provider_client} @@ -112,14 +105,14 @@ class WrappedCognitoIdentityClient implements CognitoIdentityClient { required String region, required AWSCredentialsProvider credentialsProvider, required DependencyManager dependencyManager, - }) : _base = CognitoIdentityClient( - region: region, - credentialsProvider: credentialsProvider, - requestInterceptors: const [ - WithHeader(AWSHeaders.cacheControl, 'no-store'), - ], - ), - _dependencyManager = dependencyManager; + }) : _base = CognitoIdentityClient( + region: region, + credentialsProvider: credentialsProvider, + requestInterceptors: const [ + WithHeader(AWSHeaders.cacheControl, 'no-store'), + ], + ), + _dependencyManager = dependencyManager; final CognitoIdentityClient _base; final DependencyManager _dependencyManager; @@ -185,19 +178,20 @@ class WrappedCognitoIdentityProviderClient String? endpoint, required AWSCredentialsProvider credentialsProvider, required DependencyManager dependencyManager, - }) : _base = CognitoIdentityProviderClient( - region: region, - credentialsProvider: credentialsProvider, - baseUri: endpoint == null - ? null - : (endpoint.startsWith('http') - ? Uri.parse(endpoint) - : Uri.parse('https://$endpoint')), - requestInterceptors: const [ - WithHeader(AWSHeaders.cacheControl, 'no-store'), - ], - ), - _dependencyManager = dependencyManager; + }) : _base = CognitoIdentityProviderClient( + region: region, + credentialsProvider: credentialsProvider, + baseUri: + endpoint == null + ? null + : (endpoint.startsWith('http') + ? Uri.parse(endpoint) + : Uri.parse('https://$endpoint')), + requestInterceptors: const [ + WithHeader(AWSHeaders.cacheControl, 'no-store'), + ], + ), + _dependencyManager = dependencyManager; final DependencyManager _dependencyManager; final CognitoIdentityProviderClient _base; @@ -444,7 +438,7 @@ class WrappedCognitoIdentityProviderClient @override SmithyOperation - getUserAttributeVerificationCode( + getUserAttributeVerificationCode( GetUserAttributeVerificationCodeRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, @@ -761,9 +755,7 @@ extension MfaSettings on CognitoIdentityProviderClient { Future _getRawUserSettings({ required String accessToken, }) async { - final user = await getUser( - GetUserRequest(accessToken: accessToken), - ).result; + final user = await getUser(GetUserRequest(accessToken: accessToken)).result; final enabled = { ...?user.userMfaSettingList?.map((setting) => setting.mfaType), }; @@ -805,7 +797,7 @@ extension MfaSettings on CognitoIdentityProviderClient { var preferred = _getNewPreferredMethod(sms: sms, totp: totp, email: email) ?? - currentPreference; + currentPreference; if (_isCurrentPreferenceDisabled( currentPreference, @@ -899,9 +891,9 @@ extension MfaSettings on CognitoIdentityProviderClient { extension on String { /// The [MfaType] representing `this`. MfaType get mfaType => switch (this) { - 'SOFTWARE_TOKEN_MFA' => MfaType.totp, - 'SMS_MFA' => MfaType.sms, - 'EMAIL_OTP' => MfaType.email, - final invalidType => throw StateError('Invalid MFA type: $invalidType'), - }; + 'SOFTWARE_TOKEN_MFA' => MfaType.totp, + 'SMS_MFA' => MfaType.sms, + 'EMAIL_OTP' => MfaType.email, + final invalidType => throw StateError('Invalid MFA type: $invalidType'), + }; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_exception.dart index 78f5d3eaa8..58047a94a9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/sdk_exception.dart @@ -4,7 +4,7 @@ // Generated with tool/generate_sdk_exceptions.dart. Do not modify by hand. /// Exception types bridged from generated SDKs to their legacy counterparts. -library amplify_auth_cognito_dart.sdk.sdk_exception; +library; import 'package:amplify_core/amplify_core.dart' as core; import 'package:meta/meta.dart'; @@ -626,152 +626,135 @@ Object transformSdkException(Object e) { return switch (shapeName) { 'AliasExistsException' => AliasExistsException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'CodeDeliveryFailureException' => CodeDeliveryFailureException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'CodeMismatchException' => CodeMismatchException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'ConcurrentModificationException' => ConcurrentModificationException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'EnableSoftwareTokenMFAException' => EnableSoftwareTokenMfaException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'ExpiredCodeException' => ExpiredCodeException( - message, - underlyingException: e, - ), - 'ForbiddenException' => ForbiddenException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), + 'ForbiddenException' => ForbiddenException(message, underlyingException: e), 'InternalErrorException' => InternalErrorException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'InvalidEmailRoleAccessPolicyException' => - InvalidEmailRoleAccessPolicyException( - message, - underlyingException: e, - ), + InvalidEmailRoleAccessPolicyException(message, underlyingException: e), 'InvalidLambdaResponseException' => InvalidLambdaResponseException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'InvalidParameterException' => InvalidParameterException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'InvalidPasswordException' => InvalidPasswordException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'InvalidSmsRoleAccessPolicyException' => - InvalidSmsRoleAccessPolicyException( - message, - underlyingException: e, - ), + InvalidSmsRoleAccessPolicyException(message, underlyingException: e), 'InvalidSmsRoleTrustRelationshipException' => - InvalidSmsRoleTrustRelationshipException( - message, - underlyingException: e, - ), + InvalidSmsRoleTrustRelationshipException(message, underlyingException: e), 'InvalidUserPoolConfigurationException' => - InvalidUserPoolConfigurationException( - message, - underlyingException: e, - ), + InvalidUserPoolConfigurationException(message, underlyingException: e), 'LimitExceededException' => LimitExceededException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'MFAMethodNotFoundException' => MfaMethodNotFoundException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'NotAuthorizedException' => NotAuthorizedServiceException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'PasswordHistoryPolicyViolationException' => - PasswordHistoryPolicyViolationException( - message, - underlyingException: e, - ), + PasswordHistoryPolicyViolationException(message, underlyingException: e), 'PasswordResetRequiredException' => PasswordResetRequiredException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'ResourceNotFoundException' => ResourceNotFoundException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'SoftwareTokenMFANotFoundException' => SoftwareTokenMfaNotFoundException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'TooManyFailedAttemptsException' => TooManyFailedAttemptsException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'TooManyRequestsException' => TooManyRequestsException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UnauthorizedException' => UnauthorizedException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UnexpectedLambdaException' => UnexpectedLambdaException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UnsupportedOperationException' => UnsupportedOperationException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UnsupportedTokenTypeException' => UnsupportedTokenTypeException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UserLambdaValidationException' => UserLambdaValidationException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UserNotConfirmedException' => UserNotConfirmedException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UserNotFoundException' => UserNotFoundException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'UsernameExistsException' => UsernameExistsException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'ExternalServiceException' => ExternalServiceException( - message, - underlyingException: e, - ), + message, + underlyingException: e, + ), 'InvalidIdentityPoolConfigurationException' => InvalidIdentityPoolConfigurationException( message, underlyingException: e, ), 'ResourceConflictException' => ResourceConflictException( - message, - underlyingException: e, - ), - _ => (() { + message, + underlyingException: e, + ), + _ => + (() { // Some exceptions are returned as non-Lambda exceptions even though they // originated in user-defined lambdas. if (LambdaException.isLambdaException(message)) { diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/cognito_identity_client.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/cognito_identity_client.dart index 49472116d5..e3b56a13a5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/cognito_identity_client.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/cognito_identity_client.dart @@ -40,12 +40,12 @@ class CognitoIdentityClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -63,7 +63,7 @@ class CognitoIdentityClient { /// /// This is a public API. You do not need any credentials to call this API. _i3.SmithyOperation - getCredentialsForIdentity( + getCredentialsForIdentity( GetCredentialsForIdentityInput input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -74,10 +74,7 @@ class CognitoIdentityClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account. @@ -94,9 +91,6 @@ class CognitoIdentityClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/endpoint_resolver.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/endpoint_resolver.dart index aabe87df7f..49a5f5b780 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/endpoint_resolver.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/endpoint_resolver.dart @@ -72,25 +72,31 @@ final _partitions = [ ), 'me-south-1': _i1.EndpointDefinition(variants: []), 'sa-east-1': _i1.EndpointDefinition(variants: []), - 'us-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-identity-fips.us-east-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-identity-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-identity-fips.us-east-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-identity-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), 'us-west-1': _i1.EndpointDefinition(variants: []), - 'us-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-identity-fips.us-west-2.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-identity-fips.us-west-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), _i1.Partition( @@ -105,10 +111,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {'cn-north-1': _i1.EndpointDefinition(variants: [])}, ), _i1.Partition( @@ -123,10 +126,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -156,27 +156,27 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-west-1': _i1.EndpointDefinition( hostname: 'cognito-identity-fips.us-gov-west-1.amazonaws.com', credentialScope: _i1.CredentialScope(region: 'us-gov-west-1'), variants: [], ), - 'us-gov-west-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-identity-fips.us-gov-west-1.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-gov-west-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-identity-fips.us-gov-west-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Cognito Identity'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/serializers.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/serializers.dart index 13d2996e70..55137e7930 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/serializers.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/common/serializers.dart @@ -38,11 +38,6 @@ const List<_i1.SmithySerializer> serializers = [ ...LimitExceededException.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, }; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.dart index f907c481b8..073558d5bb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.dart @@ -36,7 +36,7 @@ abstract class Credentials const Credentials._(); static const List<_i2.SmithySerializer> serializers = [ - CredentialsAwsJson11Serializer() + CredentialsAwsJson11Serializer(), ]; /// The Access Key portion of the credentials. @@ -51,32 +51,16 @@ abstract class Credentials /// The date at which these credentials will expire. DateTime? get expiration; @override - List get props => [ - accessKeyId, - secretKey, - sessionToken, - expiration, - ]; + List get props => [accessKeyId, secretKey, sessionToken, expiration]; @override String toString() { - final helper = newBuiltValueToStringHelper('Credentials') - ..add( - 'accessKeyId', - accessKeyId, - ) - ..add( - 'secretKey', - '***SENSITIVE***', - ) - ..add( - 'sessionToken', - sessionToken, - ) - ..add( - 'expiration', - expiration, - ); + final helper = + newBuiltValueToStringHelper('Credentials') + ..add('accessKeyId', accessKeyId) + ..add('secretKey', '***SENSITIVE***') + ..add('sessionToken', sessionToken) + ..add('expiration', expiration); return helper.toString(); } } @@ -86,18 +70,12 @@ class CredentialsAwsJson11Serializer const CredentialsAwsJson11Serializer() : super('Credentials'); @override - Iterable get types => const [ - Credentials, - _$Credentials, - ]; + Iterable get types => const [Credentials, _$Credentials]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override Credentials deserialize( @@ -116,25 +94,33 @@ class CredentialsAwsJson11Serializer } switch (key) { case 'AccessKeyId': - result.accessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'SecretKey': - result.secretKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.secretKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'SessionToken': - result.sessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.sessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Expiration': - result.expiration = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.expiration = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -153,34 +139,42 @@ class CredentialsAwsJson11Serializer if (accessKeyId != null) { result$ ..add('AccessKeyId') - ..add(serializers.serialize( - accessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + accessKeyId, + specifiedType: const FullType(String), + ), + ); } if (secretKey != null) { result$ ..add('SecretKey') - ..add(serializers.serialize( - secretKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + secretKey, + specifiedType: const FullType(String), + ), + ); } if (sessionToken != null) { result$ ..add('SessionToken') - ..add(serializers.serialize( - sessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + sessionToken, + specifiedType: const FullType(String), + ), + ); } if (expiration != null) { result$ ..add('Expiration') - ..add(serializers.serialize( - expiration, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + expiration, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.g.dart index 934ccb7447..799fe25269 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/credentials.g.dart @@ -19,9 +19,12 @@ class _$Credentials extends Credentials { factory _$Credentials([void Function(CredentialsBuilder)? updates]) => (new CredentialsBuilder()..update(updates))._build(); - _$Credentials._( - {this.accessKeyId, this.secretKey, this.sessionToken, this.expiration}) - : super._(); + _$Credentials._({ + this.accessKeyId, + this.secretKey, + this.sessionToken, + this.expiration, + }) : super._(); @override Credentials rebuild(void Function(CredentialsBuilder) updates) => @@ -100,7 +103,8 @@ class CredentialsBuilder implements Builder { Credentials build() => _build(); _$Credentials _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$Credentials._( accessKeyId: accessKeyId, secretKey: secretKey, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.dart index 9e9500945b..a6226fcaa5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.dart @@ -22,9 +22,9 @@ abstract class ExternalServiceException } /// An exception thrown when a dependent service such as Facebook or Twitter is not responding - factory ExternalServiceException.build( - [void Function(ExternalServiceExceptionBuilder) updates]) = - _$ExternalServiceException; + factory ExternalServiceException.build([ + void Function(ExternalServiceExceptionBuilder) updates, + ]) = _$ExternalServiceException; const ExternalServiceException._(); @@ -32,22 +32,21 @@ abstract class ExternalServiceException factory ExternalServiceException.fromResponse( ExternalServiceException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ExternalServiceExceptionAwsJson11Serializer()]; + serializers = [ExternalServiceExceptionAwsJson11Serializer()]; /// The message returned by an ExternalServiceException @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ExternalServiceException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ExternalServiceException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class ExternalServiceException @override String toString() { final helper = newBuiltValueToStringHelper('ExternalServiceException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class ExternalServiceException class ExternalServiceExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ExternalServiceExceptionAwsJson11Serializer() - : super('ExternalServiceException'); + : super('ExternalServiceException'); @override Iterable get types => const [ - ExternalServiceException, - _$ExternalServiceException, - ]; + ExternalServiceException, + _$ExternalServiceException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ExternalServiceException deserialize( @@ -112,10 +105,12 @@ class ExternalServiceExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class ExternalServiceExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.g.dart index 00a7dc4ec7..de2f4dde53 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/external_service_exception.g.dart @@ -12,16 +12,16 @@ class _$ExternalServiceException extends ExternalServiceException { @override final Map? headers; - factory _$ExternalServiceException( - [void Function(ExternalServiceExceptionBuilder)? updates]) => - (new ExternalServiceExceptionBuilder()..update(updates))._build(); + factory _$ExternalServiceException([ + void Function(ExternalServiceExceptionBuilder)? updates, + ]) => (new ExternalServiceExceptionBuilder()..update(updates))._build(); _$ExternalServiceException._({this.message, this.headers}) : super._(); @override ExternalServiceException rebuild( - void Function(ExternalServiceExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ExternalServiceExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ExternalServiceExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class ExternalServiceExceptionBuilder ExternalServiceException build() => _build(); _$ExternalServiceException _build() { - final _$result = _$v ?? - new _$ExternalServiceException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$ExternalServiceException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.dart index 1ef8ddd869..dcacd43919 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.dart @@ -17,8 +17,10 @@ abstract class GetCredentialsForIdentityInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + GetCredentialsForIdentityInput, + GetCredentialsForIdentityInputBuilder + > { /// Input to the `GetCredentialsForIdentity` action. factory GetCredentialsForIdentityInput({ required String identityId, @@ -33,9 +35,9 @@ abstract class GetCredentialsForIdentityInput } /// Input to the `GetCredentialsForIdentity` action. - factory GetCredentialsForIdentityInput.build( - [void Function(GetCredentialsForIdentityInputBuilder) updates]) = - _$GetCredentialsForIdentityInput; + factory GetCredentialsForIdentityInput.build([ + void Function(GetCredentialsForIdentityInputBuilder) updates, + ]) = _$GetCredentialsForIdentityInput; const GetCredentialsForIdentityInput._(); @@ -43,11 +45,10 @@ abstract class GetCredentialsForIdentityInput GetCredentialsForIdentityInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [GetCredentialsForIdentityInputAwsJson11Serializer()]; + serializers = [GetCredentialsForIdentityInputAwsJson11Serializer()]; /// A unique identifier in the format REGION:GUID. String get identityId; @@ -65,27 +66,15 @@ abstract class GetCredentialsForIdentityInput GetCredentialsForIdentityInput getPayload() => this; @override - List get props => [ - identityId, - logins, - customRoleArn, - ]; + List get props => [identityId, logins, customRoleArn]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetCredentialsForIdentityInput') - ..add( - 'identityId', - identityId, - ) - ..add( - 'logins', - logins, - ) - ..add( - 'customRoleArn', - customRoleArn, - ); + final helper = + newBuiltValueToStringHelper('GetCredentialsForIdentityInput') + ..add('identityId', identityId) + ..add('logins', logins) + ..add('customRoleArn', customRoleArn); return helper.toString(); } } @@ -93,21 +82,18 @@ abstract class GetCredentialsForIdentityInput class GetCredentialsForIdentityInputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const GetCredentialsForIdentityInputAwsJson11Serializer() - : super('GetCredentialsForIdentityInput'); + : super('GetCredentialsForIdentityInput'); @override Iterable get types => const [ - GetCredentialsForIdentityInput, - _$GetCredentialsForIdentityInput, - ]; + GetCredentialsForIdentityInput, + _$GetCredentialsForIdentityInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetCredentialsForIdentityInput deserialize( @@ -126,26 +112,30 @@ class GetCredentialsForIdentityInputAwsJson11Serializer } switch (key) { case 'IdentityId': - result.identityId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.identityId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Logins': - result.logins.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.logins.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'CustomRoleArn': - result.customRoleArn = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.customRoleArn = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -163,32 +153,30 @@ class GetCredentialsForIdentityInputAwsJson11Serializer object; result$.addAll([ 'IdentityId', - serializers.serialize( - identityId, - specifiedType: const FullType(String), - ), + serializers.serialize(identityId, specifiedType: const FullType(String)), ]); if (logins != null) { result$ ..add('Logins') - ..add(serializers.serialize( - logins, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + logins, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (customRoleArn != null) { result$ ..add('CustomRoleArn') - ..add(serializers.serialize( - customRoleArn, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + customRoleArn, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.g.dart index 676cb8a007..08a7781c9a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_input.g.dart @@ -14,21 +14,26 @@ class _$GetCredentialsForIdentityInput extends GetCredentialsForIdentityInput { @override final String? customRoleArn; - factory _$GetCredentialsForIdentityInput( - [void Function(GetCredentialsForIdentityInputBuilder)? updates]) => - (new GetCredentialsForIdentityInputBuilder()..update(updates))._build(); - - _$GetCredentialsForIdentityInput._( - {required this.identityId, this.logins, this.customRoleArn}) - : super._() { + factory _$GetCredentialsForIdentityInput([ + void Function(GetCredentialsForIdentityInputBuilder)? updates, + ]) => (new GetCredentialsForIdentityInputBuilder()..update(updates))._build(); + + _$GetCredentialsForIdentityInput._({ + required this.identityId, + this.logins, + this.customRoleArn, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - identityId, r'GetCredentialsForIdentityInput', 'identityId'); + identityId, + r'GetCredentialsForIdentityInput', + 'identityId', + ); } @override GetCredentialsForIdentityInput rebuild( - void Function(GetCredentialsForIdentityInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetCredentialsForIdentityInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetCredentialsForIdentityInputBuilder toBuilder() => @@ -56,8 +61,10 @@ class _$GetCredentialsForIdentityInput extends GetCredentialsForIdentityInput { class GetCredentialsForIdentityInputBuilder implements - Builder { + Builder< + GetCredentialsForIdentityInput, + GetCredentialsForIdentityInputBuilder + > { _$GetCredentialsForIdentityInput? _$v; String? _identityId; @@ -104,10 +111,14 @@ class GetCredentialsForIdentityInputBuilder _$GetCredentialsForIdentityInput _build() { _$GetCredentialsForIdentityInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetCredentialsForIdentityInput._( identityId: BuiltValueNullFieldError.checkNotNull( - identityId, r'GetCredentialsForIdentityInput', 'identityId'), + identityId, + r'GetCredentialsForIdentityInput', + 'identityId', + ), logins: _logins?.build(), customRoleArn: customRoleArn, ); @@ -118,7 +129,10 @@ class GetCredentialsForIdentityInputBuilder _logins?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetCredentialsForIdentityInput', _$failedField, e.toString()); + r'GetCredentialsForIdentityInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.dart index 6f83f4cf28..df3b23a9e3 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.dart @@ -13,11 +13,12 @@ part 'get_credentials_for_identity_response.g.dart'; /// Returned in response to a successful `GetCredentialsForIdentity` operation. abstract class GetCredentialsForIdentityResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + GetCredentialsForIdentityResponse, + GetCredentialsForIdentityResponseBuilder + > { /// Returned in response to a successful `GetCredentialsForIdentity` operation. factory GetCredentialsForIdentityResponse({ String? identityId, @@ -30,9 +31,9 @@ abstract class GetCredentialsForIdentityResponse } /// Returned in response to a successful `GetCredentialsForIdentity` operation. - factory GetCredentialsForIdentityResponse.build( - [void Function(GetCredentialsForIdentityResponseBuilder) updates]) = - _$GetCredentialsForIdentityResponse; + factory GetCredentialsForIdentityResponse.build([ + void Function(GetCredentialsForIdentityResponseBuilder) updates, + ]) = _$GetCredentialsForIdentityResponse; const GetCredentialsForIdentityResponse._(); @@ -40,11 +41,10 @@ abstract class GetCredentialsForIdentityResponse factory GetCredentialsForIdentityResponse.fromResponse( GetCredentialsForIdentityResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GetCredentialsForIdentityResponseAwsJson11Serializer()]; + serializers = [GetCredentialsForIdentityResponseAwsJson11Serializer()]; /// A unique identifier in the format REGION:GUID. String? get identityId; @@ -52,23 +52,14 @@ abstract class GetCredentialsForIdentityResponse /// Credentials for the provided identity ID. Credentials? get credentials; @override - List get props => [ - identityId, - credentials, - ]; + List get props => [identityId, credentials]; @override String toString() { final helper = newBuiltValueToStringHelper('GetCredentialsForIdentityResponse') - ..add( - 'identityId', - identityId, - ) - ..add( - 'credentials', - credentials, - ); + ..add('identityId', identityId) + ..add('credentials', credentials); return helper.toString(); } } @@ -76,21 +67,18 @@ abstract class GetCredentialsForIdentityResponse class GetCredentialsForIdentityResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const GetCredentialsForIdentityResponseAwsJson11Serializer() - : super('GetCredentialsForIdentityResponse'); + : super('GetCredentialsForIdentityResponse'); @override Iterable get types => const [ - GetCredentialsForIdentityResponse, - _$GetCredentialsForIdentityResponse, - ]; + GetCredentialsForIdentityResponse, + _$GetCredentialsForIdentityResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetCredentialsForIdentityResponse deserialize( @@ -109,15 +97,20 @@ class GetCredentialsForIdentityResponseAwsJson11Serializer } switch (key) { case 'IdentityId': - result.identityId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.identityId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Credentials': - result.credentials.replace((serializers.deserialize( - value, - specifiedType: const FullType(Credentials), - ) as Credentials)); + result.credentials.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Credentials), + ) + as Credentials), + ); } } @@ -135,18 +128,22 @@ class GetCredentialsForIdentityResponseAwsJson11Serializer if (identityId != null) { result$ ..add('IdentityId') - ..add(serializers.serialize( - identityId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + identityId, + specifiedType: const FullType(String), + ), + ); } if (credentials != null) { result$ ..add('Credentials') - ..add(serializers.serialize( - credentials, - specifiedType: const FullType(Credentials), - )); + ..add( + serializers.serialize( + credentials, + specifiedType: const FullType(Credentials), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.g.dart index 176de7706c..742c1f37ed 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_credentials_for_identity_response.g.dart @@ -13,18 +13,19 @@ class _$GetCredentialsForIdentityResponse @override final Credentials? credentials; - factory _$GetCredentialsForIdentityResponse( - [void Function(GetCredentialsForIdentityResponseBuilder)? updates]) => + factory _$GetCredentialsForIdentityResponse([ + void Function(GetCredentialsForIdentityResponseBuilder)? updates, + ]) => (new GetCredentialsForIdentityResponseBuilder()..update(updates)) ._build(); _$GetCredentialsForIdentityResponse._({this.identityId, this.credentials}) - : super._(); + : super._(); @override GetCredentialsForIdentityResponse rebuild( - void Function(GetCredentialsForIdentityResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetCredentialsForIdentityResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetCredentialsForIdentityResponseBuilder toBuilder() => @@ -50,8 +51,10 @@ class _$GetCredentialsForIdentityResponse class GetCredentialsForIdentityResponseBuilder implements - Builder { + Builder< + GetCredentialsForIdentityResponse, + GetCredentialsForIdentityResponseBuilder + > { _$GetCredentialsForIdentityResponse? _$v; String? _identityId; @@ -84,7 +87,8 @@ class GetCredentialsForIdentityResponseBuilder @override void update( - void Function(GetCredentialsForIdentityResponseBuilder)? updates) { + void Function(GetCredentialsForIdentityResponseBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -94,7 +98,8 @@ class GetCredentialsForIdentityResponseBuilder _$GetCredentialsForIdentityResponse _build() { _$GetCredentialsForIdentityResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetCredentialsForIdentityResponse._( identityId: identityId, credentials: _credentials?.build(), @@ -106,7 +111,10 @@ class GetCredentialsForIdentityResponseBuilder _credentials?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetCredentialsForIdentityResponse', _$failedField, e.toString()); + r'GetCredentialsForIdentityResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.dart index 15ed362231..948b9dab7c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.dart @@ -38,11 +38,10 @@ abstract class GetIdInput GetIdInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - GetIdInputAwsJson11Serializer() + GetIdInputAwsJson11Serializer(), ]; /// A standard AWS account ID (9+ digits). @@ -69,27 +68,15 @@ abstract class GetIdInput GetIdInput getPayload() => this; @override - List get props => [ - accountId, - identityPoolId, - logins, - ]; + List get props => [accountId, identityPoolId, logins]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetIdInput') - ..add( - 'accountId', - accountId, - ) - ..add( - 'identityPoolId', - identityPoolId, - ) - ..add( - 'logins', - logins, - ); + final helper = + newBuiltValueToStringHelper('GetIdInput') + ..add('accountId', accountId) + ..add('identityPoolId', identityPoolId) + ..add('logins', logins); return helper.toString(); } } @@ -99,18 +86,12 @@ class GetIdInputAwsJson11Serializer const GetIdInputAwsJson11Serializer() : super('GetIdInput'); @override - Iterable get types => const [ - GetIdInput, - _$GetIdInput, - ]; + Iterable get types => const [GetIdInput, _$GetIdInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetIdInput deserialize( @@ -129,26 +110,30 @@ class GetIdInputAwsJson11Serializer } switch (key) { case 'AccountId': - result.accountId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accountId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'IdentityPoolId': - result.identityPoolId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.identityPoolId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Logins': - result.logins.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.logins.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -173,24 +158,25 @@ class GetIdInputAwsJson11Serializer if (accountId != null) { result$ ..add('AccountId') - ..add(serializers.serialize( - accountId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + accountId, + specifiedType: const FullType(String), + ), + ); } if (logins != null) { result$ ..add('Logins') - ..add(serializers.serialize( - logins, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + logins, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.g.dart index 08e88365ba..80eb8dd100 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_input.g.dart @@ -18,9 +18,12 @@ class _$GetIdInput extends GetIdInput { (new GetIdInputBuilder()..update(updates))._build(); _$GetIdInput._({this.accountId, required this.identityPoolId, this.logins}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - identityPoolId, r'GetIdInput', 'identityPoolId'); + identityPoolId, + r'GetIdInput', + 'identityPoolId', + ); } @override @@ -97,11 +100,15 @@ class GetIdInputBuilder implements Builder { _$GetIdInput _build() { _$GetIdInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetIdInput._( accountId: accountId, identityPoolId: BuiltValueNullFieldError.checkNotNull( - identityPoolId, r'GetIdInput', 'identityPoolId'), + identityPoolId, + r'GetIdInput', + 'identityPoolId', + ), logins: _logins?.build(), ); } catch (_) { @@ -111,7 +118,10 @@ class GetIdInputBuilder implements Builder { _logins?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetIdInput', _$failedField, e.toString()); + r'GetIdInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.dart index dfe391a845..c6151c58a6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.dart @@ -29,11 +29,10 @@ abstract class GetIdResponse factory GetIdResponse.fromResponse( GetIdResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - GetIdResponseAwsJson11Serializer() + GetIdResponseAwsJson11Serializer(), ]; /// A unique identifier in the format REGION:GUID. @@ -44,10 +43,7 @@ abstract class GetIdResponse @override String toString() { final helper = newBuiltValueToStringHelper('GetIdResponse') - ..add( - 'identityId', - identityId, - ); + ..add('identityId', identityId); return helper.toString(); } } @@ -57,18 +53,12 @@ class GetIdResponseAwsJson11Serializer const GetIdResponseAwsJson11Serializer() : super('GetIdResponse'); @override - Iterable get types => const [ - GetIdResponse, - _$GetIdResponse, - ]; + Iterable get types => const [GetIdResponse, _$GetIdResponse]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetIdResponse deserialize( @@ -87,10 +77,12 @@ class GetIdResponseAwsJson11Serializer } switch (key) { case 'IdentityId': - result.identityId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.identityId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -108,10 +100,12 @@ class GetIdResponseAwsJson11Serializer if (identityId != null) { result$ ..add('IdentityId') - ..add(serializers.serialize( - identityId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + identityId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.g.dart index 10d9d9e085..865ff629f8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/get_id_response.g.dart @@ -71,10 +71,7 @@ class GetIdResponseBuilder GetIdResponse build() => _build(); _$GetIdResponse _build() { - final _$result = _$v ?? - new _$GetIdResponse._( - identityId: identityId, - ); + final _$result = _$v ?? new _$GetIdResponse._(identityId: identityId); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.dart index 4f5a7455e9..f1b56db1b9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.dart @@ -22,9 +22,9 @@ abstract class InternalErrorException } /// Thrown when the service encounters an error during processing the request. - factory InternalErrorException.build( - [void Function(InternalErrorExceptionBuilder) updates]) = - _$InternalErrorException; + factory InternalErrorException.build([ + void Function(InternalErrorExceptionBuilder) updates, + ]) = _$InternalErrorException; const InternalErrorException._(); @@ -32,11 +32,10 @@ abstract class InternalErrorException factory InternalErrorException.fromResponse( InternalErrorException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [InternalErrorExceptionAwsJson11Serializer()]; @@ -46,9 +45,9 @@ abstract class InternalErrorException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InternalErrorException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InternalErrorException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class InternalErrorException @override String toString() { final helper = newBuiltValueToStringHelper('InternalErrorException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class InternalErrorException class InternalErrorExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InternalErrorExceptionAwsJson11Serializer() - : super('InternalErrorException'); + : super('InternalErrorException'); @override Iterable get types => const [ - InternalErrorException, - _$InternalErrorException, - ]; + InternalErrorException, + _$InternalErrorException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InternalErrorException deserialize( @@ -112,10 +105,12 @@ class InternalErrorExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class InternalErrorExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.g.dart index 90dfcf61a4..c9487b9ee1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/internal_error_exception.g.dart @@ -14,17 +14,17 @@ class _$InternalErrorException extends InternalErrorException { @override final Map? headers; - factory _$InternalErrorException( - [void Function(InternalErrorExceptionBuilder)? updates]) => - (new InternalErrorExceptionBuilder()..update(updates))._build(); + factory _$InternalErrorException([ + void Function(InternalErrorExceptionBuilder)? updates, + ]) => (new InternalErrorExceptionBuilder()..update(updates))._build(); _$InternalErrorException._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InternalErrorException rebuild( - void Function(InternalErrorExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InternalErrorExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InternalErrorExceptionBuilder toBuilder() => @@ -89,7 +89,8 @@ class InternalErrorExceptionBuilder InternalErrorException build() => _build(); _$InternalErrorException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InternalErrorException._( message: message, statusCode: statusCode, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.dart index c25b63d9fa..e06507e335 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.dart @@ -12,11 +12,12 @@ part 'invalid_identity_pool_configuration_exception.g.dart'; /// Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails. abstract class InvalidIdentityPoolConfigurationException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidIdentityPoolConfigurationException, + InvalidIdentityPoolConfigurationExceptionBuilder + >, _i2.SmithyHttpException { /// Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails. factory InvalidIdentityPoolConfigurationException({String? message}) { @@ -24,9 +25,9 @@ abstract class InvalidIdentityPoolConfigurationException } /// Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails. - factory InvalidIdentityPoolConfigurationException.build( - [void Function(InvalidIdentityPoolConfigurationExceptionBuilder) - updates]) = _$InvalidIdentityPoolConfigurationException; + factory InvalidIdentityPoolConfigurationException.build([ + void Function(InvalidIdentityPoolConfigurationExceptionBuilder) updates, + ]) = _$InvalidIdentityPoolConfigurationException; const InvalidIdentityPoolConfigurationException._(); @@ -34,15 +35,15 @@ abstract class InvalidIdentityPoolConfigurationException factory InvalidIdentityPoolConfigurationException.fromResponse( InvalidIdentityPoolConfigurationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List< - _i2.SmithySerializer> - serializers = [ - InvalidIdentityPoolConfigurationExceptionAwsJson11Serializer() + _i2.SmithySerializer + > + serializers = [ + InvalidIdentityPoolConfigurationExceptionAwsJson11Serializer(), ]; /// The message returned for an `InvalidIdentityPoolConfigurationException` @@ -50,9 +51,9 @@ abstract class InvalidIdentityPoolConfigurationException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InvalidIdentityPoolConfigurationException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InvalidIdentityPoolConfigurationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -72,34 +73,31 @@ abstract class InvalidIdentityPoolConfigurationException @override String toString() { - final helper = - newBuiltValueToStringHelper('InvalidIdentityPoolConfigurationException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'InvalidIdentityPoolConfigurationException', + )..add('message', message); return helper.toString(); } } -class InvalidIdentityPoolConfigurationExceptionAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class InvalidIdentityPoolConfigurationExceptionAwsJson11Serializer + extends + _i2.StructuredSmithySerializer< + InvalidIdentityPoolConfigurationException + > { const InvalidIdentityPoolConfigurationExceptionAwsJson11Serializer() - : super('InvalidIdentityPoolConfigurationException'); + : super('InvalidIdentityPoolConfigurationException'); @override Iterable get types => const [ - InvalidIdentityPoolConfigurationException, - _$InvalidIdentityPoolConfigurationException, - ]; + InvalidIdentityPoolConfigurationException, + _$InvalidIdentityPoolConfigurationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidIdentityPoolConfigurationException deserialize( @@ -118,10 +116,12 @@ class InvalidIdentityPoolConfigurationExceptionAwsJson11Serializer extends _i2 } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -139,10 +139,9 @@ class InvalidIdentityPoolConfigurationExceptionAwsJson11Serializer extends _i2 if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.g.dart index 6925a3907a..bb5c4bd693 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_identity_pool_configuration_exception.g.dart @@ -13,20 +13,19 @@ class _$InvalidIdentityPoolConfigurationException @override final Map? headers; - factory _$InvalidIdentityPoolConfigurationException( - [void Function(InvalidIdentityPoolConfigurationExceptionBuilder)? - updates]) => + factory _$InvalidIdentityPoolConfigurationException([ + void Function(InvalidIdentityPoolConfigurationExceptionBuilder)? updates, + ]) => (new InvalidIdentityPoolConfigurationExceptionBuilder()..update(updates)) ._build(); _$InvalidIdentityPoolConfigurationException._({this.message, this.headers}) - : super._(); + : super._(); @override InvalidIdentityPoolConfigurationException rebuild( - void Function(InvalidIdentityPoolConfigurationExceptionBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidIdentityPoolConfigurationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidIdentityPoolConfigurationExceptionBuilder toBuilder() => @@ -50,8 +49,10 @@ class _$InvalidIdentityPoolConfigurationException class InvalidIdentityPoolConfigurationExceptionBuilder implements - Builder { + Builder< + InvalidIdentityPoolConfigurationException, + InvalidIdentityPoolConfigurationExceptionBuilder + > { _$InvalidIdentityPoolConfigurationException? _$v; String? _message; @@ -82,8 +83,8 @@ class InvalidIdentityPoolConfigurationExceptionBuilder @override void update( - void Function(InvalidIdentityPoolConfigurationExceptionBuilder)? - updates) { + void Function(InvalidIdentityPoolConfigurationExceptionBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,7 +92,8 @@ class InvalidIdentityPoolConfigurationExceptionBuilder InvalidIdentityPoolConfigurationException build() => _build(); _$InvalidIdentityPoolConfigurationException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidIdentityPoolConfigurationException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.dart index 881a613f75..cf0d7bb01e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.dart @@ -22,9 +22,9 @@ abstract class InvalidParameterException } /// Thrown for missing or bad input parameter(s). - factory InvalidParameterException.build( - [void Function(InvalidParameterExceptionBuilder) updates]) = - _$InvalidParameterException; + factory InvalidParameterException.build([ + void Function(InvalidParameterExceptionBuilder) updates, + ]) = _$InvalidParameterException; const InvalidParameterException._(); @@ -32,22 +32,21 @@ abstract class InvalidParameterException factory InvalidParameterException.fromResponse( InvalidParameterException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidParameterExceptionAwsJson11Serializer()]; + serializers = [InvalidParameterExceptionAwsJson11Serializer()]; /// The message returned by an InvalidParameterException. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InvalidParameterException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InvalidParameterException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class InvalidParameterException @override String toString() { final helper = newBuiltValueToStringHelper('InvalidParameterException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class InvalidParameterException class InvalidParameterExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InvalidParameterExceptionAwsJson11Serializer() - : super('InvalidParameterException'); + : super('InvalidParameterException'); @override Iterable get types => const [ - InvalidParameterException, - _$InvalidParameterException, - ]; + InvalidParameterException, + _$InvalidParameterException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidParameterException deserialize( @@ -112,10 +105,12 @@ class InvalidParameterExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class InvalidParameterExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.g.dart index db2586e8b4..3dfadce51b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/invalid_parameter_exception.g.dart @@ -12,16 +12,16 @@ class _$InvalidParameterException extends InvalidParameterException { @override final Map? headers; - factory _$InvalidParameterException( - [void Function(InvalidParameterExceptionBuilder)? updates]) => - (new InvalidParameterExceptionBuilder()..update(updates))._build(); + factory _$InvalidParameterException([ + void Function(InvalidParameterExceptionBuilder)? updates, + ]) => (new InvalidParameterExceptionBuilder()..update(updates))._build(); _$InvalidParameterException._({this.message, this.headers}) : super._(); @override InvalidParameterException rebuild( - void Function(InvalidParameterExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidParameterExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidParameterExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class InvalidParameterExceptionBuilder InvalidParameterException build() => _build(); _$InvalidParameterException _build() { - final _$result = _$v ?? - new _$InvalidParameterException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$InvalidParameterException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.dart index 4909ca0b94..eddb95a86a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.dart @@ -22,9 +22,9 @@ abstract class LimitExceededException } /// Thrown when the total number of user pools has exceeded a preset limit. - factory LimitExceededException.build( - [void Function(LimitExceededExceptionBuilder) updates]) = - _$LimitExceededException; + factory LimitExceededException.build([ + void Function(LimitExceededExceptionBuilder) updates, + ]) = _$LimitExceededException; const LimitExceededException._(); @@ -32,10 +32,9 @@ abstract class LimitExceededException factory LimitExceededException.fromResponse( LimitExceededException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [LimitExceededExceptionAwsJson11Serializer()]; @@ -45,9 +44,9 @@ abstract class LimitExceededException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'LimitExceededException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'LimitExceededException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class LimitExceededException @override String toString() { final helper = newBuiltValueToStringHelper('LimitExceededException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class LimitExceededException class LimitExceededExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const LimitExceededExceptionAwsJson11Serializer() - : super('LimitExceededException'); + : super('LimitExceededException'); @override Iterable get types => const [ - LimitExceededException, - _$LimitExceededException, - ]; + LimitExceededException, + _$LimitExceededException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override LimitExceededException deserialize( @@ -112,10 +105,12 @@ class LimitExceededExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class LimitExceededExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.g.dart index afd0112ce7..c8ea7ac40a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/limit_exceeded_exception.g.dart @@ -12,16 +12,16 @@ class _$LimitExceededException extends LimitExceededException { @override final Map? headers; - factory _$LimitExceededException( - [void Function(LimitExceededExceptionBuilder)? updates]) => - (new LimitExceededExceptionBuilder()..update(updates))._build(); + factory _$LimitExceededException([ + void Function(LimitExceededExceptionBuilder)? updates, + ]) => (new LimitExceededExceptionBuilder()..update(updates))._build(); _$LimitExceededException._({this.message, this.headers}) : super._(); @override LimitExceededException rebuild( - void Function(LimitExceededExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(LimitExceededExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override LimitExceededExceptionBuilder toBuilder() => @@ -81,11 +81,9 @@ class LimitExceededExceptionBuilder LimitExceededException build() => _build(); _$LimitExceededException _build() { - final _$result = _$v ?? - new _$LimitExceededException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$LimitExceededException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.dart index 50add67fb4..42b7a0f83b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.dart @@ -22,9 +22,9 @@ abstract class NotAuthorizedException } /// Thrown when a user is not authorized to access the requested resource. - factory NotAuthorizedException.build( - [void Function(NotAuthorizedExceptionBuilder) updates]) = - _$NotAuthorizedException; + factory NotAuthorizedException.build([ + void Function(NotAuthorizedExceptionBuilder) updates, + ]) = _$NotAuthorizedException; const NotAuthorizedException._(); @@ -32,10 +32,9 @@ abstract class NotAuthorizedException factory NotAuthorizedException.fromResponse( NotAuthorizedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [NotAuthorizedExceptionAwsJson11Serializer()]; @@ -45,9 +44,9 @@ abstract class NotAuthorizedException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'NotAuthorizedException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'NotAuthorizedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class NotAuthorizedException @override String toString() { final helper = newBuiltValueToStringHelper('NotAuthorizedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class NotAuthorizedException class NotAuthorizedExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const NotAuthorizedExceptionAwsJson11Serializer() - : super('NotAuthorizedException'); + : super('NotAuthorizedException'); @override Iterable get types => const [ - NotAuthorizedException, - _$NotAuthorizedException, - ]; + NotAuthorizedException, + _$NotAuthorizedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NotAuthorizedException deserialize( @@ -112,10 +105,12 @@ class NotAuthorizedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class NotAuthorizedExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.g.dart index 5aa5cfb60d..1592956020 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/not_authorized_exception.g.dart @@ -12,16 +12,16 @@ class _$NotAuthorizedException extends NotAuthorizedException { @override final Map? headers; - factory _$NotAuthorizedException( - [void Function(NotAuthorizedExceptionBuilder)? updates]) => - (new NotAuthorizedExceptionBuilder()..update(updates))._build(); + factory _$NotAuthorizedException([ + void Function(NotAuthorizedExceptionBuilder)? updates, + ]) => (new NotAuthorizedExceptionBuilder()..update(updates))._build(); _$NotAuthorizedException._({this.message, this.headers}) : super._(); @override NotAuthorizedException rebuild( - void Function(NotAuthorizedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NotAuthorizedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NotAuthorizedExceptionBuilder toBuilder() => @@ -81,11 +81,9 @@ class NotAuthorizedExceptionBuilder NotAuthorizedException build() => _build(); _$NotAuthorizedException _build() { - final _$result = _$v ?? - new _$NotAuthorizedException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$NotAuthorizedException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.dart index cc4b2f9846..02550c20d8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.dart @@ -22,9 +22,9 @@ abstract class ResourceConflictException } /// Thrown when a user tries to use a login which is already linked to another account. - factory ResourceConflictException.build( - [void Function(ResourceConflictExceptionBuilder) updates]) = - _$ResourceConflictException; + factory ResourceConflictException.build([ + void Function(ResourceConflictExceptionBuilder) updates, + ]) = _$ResourceConflictException; const ResourceConflictException._(); @@ -32,22 +32,21 @@ abstract class ResourceConflictException factory ResourceConflictException.fromResponse( ResourceConflictException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceConflictExceptionAwsJson11Serializer()]; + serializers = [ResourceConflictExceptionAwsJson11Serializer()]; /// The message returned by a ResourceConflictException. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ResourceConflictException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ResourceConflictException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class ResourceConflictException @override String toString() { final helper = newBuiltValueToStringHelper('ResourceConflictException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class ResourceConflictException class ResourceConflictExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ResourceConflictExceptionAwsJson11Serializer() - : super('ResourceConflictException'); + : super('ResourceConflictException'); @override Iterable get types => const [ - ResourceConflictException, - _$ResourceConflictException, - ]; + ResourceConflictException, + _$ResourceConflictException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceConflictException deserialize( @@ -112,10 +105,12 @@ class ResourceConflictExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class ResourceConflictExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.g.dart index 5e087f4366..69db904676 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_conflict_exception.g.dart @@ -12,16 +12,16 @@ class _$ResourceConflictException extends ResourceConflictException { @override final Map? headers; - factory _$ResourceConflictException( - [void Function(ResourceConflictExceptionBuilder)? updates]) => - (new ResourceConflictExceptionBuilder()..update(updates))._build(); + factory _$ResourceConflictException([ + void Function(ResourceConflictExceptionBuilder)? updates, + ]) => (new ResourceConflictExceptionBuilder()..update(updates))._build(); _$ResourceConflictException._({this.message, this.headers}) : super._(); @override ResourceConflictException rebuild( - void Function(ResourceConflictExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceConflictExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceConflictExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class ResourceConflictExceptionBuilder ResourceConflictException build() => _build(); _$ResourceConflictException _build() { - final _$result = _$v ?? - new _$ResourceConflictException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$ResourceConflictException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.dart index 1ba7efb1b3..fb1fa246f4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.dart @@ -22,9 +22,9 @@ abstract class ResourceNotFoundException } /// Thrown when the requested resource (for example, a dataset or record) does not exist. - factory ResourceNotFoundException.build( - [void Function(ResourceNotFoundExceptionBuilder) updates]) = - _$ResourceNotFoundException; + factory ResourceNotFoundException.build([ + void Function(ResourceNotFoundExceptionBuilder) updates, + ]) = _$ResourceNotFoundException; const ResourceNotFoundException._(); @@ -32,22 +32,21 @@ abstract class ResourceNotFoundException factory ResourceNotFoundException.fromResponse( ResourceNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; + serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; /// The message returned by a ResourceNotFoundException. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ResourceNotFoundException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ResourceNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class ResourceNotFoundException @override String toString() { final helper = newBuiltValueToStringHelper('ResourceNotFoundException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class ResourceNotFoundException class ResourceNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ResourceNotFoundExceptionAwsJson11Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ - ResourceNotFoundException, - _$ResourceNotFoundException, - ]; + ResourceNotFoundException, + _$ResourceNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceNotFoundException deserialize( @@ -112,10 +105,12 @@ class ResourceNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class ResourceNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.g.dart index 464b20c64f..7b92fb4f65 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/resource_not_found_exception.g.dart @@ -12,16 +12,16 @@ class _$ResourceNotFoundException extends ResourceNotFoundException { @override final Map? headers; - factory _$ResourceNotFoundException( - [void Function(ResourceNotFoundExceptionBuilder)? updates]) => - (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); + factory _$ResourceNotFoundException([ + void Function(ResourceNotFoundExceptionBuilder)? updates, + ]) => (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); _$ResourceNotFoundException._({this.message, this.headers}) : super._(); @override ResourceNotFoundException rebuild( - void Function(ResourceNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceNotFoundExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class ResourceNotFoundExceptionBuilder ResourceNotFoundException build() => _build(); _$ResourceNotFoundException _build() { - final _$result = _$v ?? - new _$ResourceNotFoundException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$ResourceNotFoundException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.dart index e005c51ca2..c218e8c25d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.dart @@ -22,9 +22,9 @@ abstract class TooManyRequestsException } /// Thrown when a request is throttled. - factory TooManyRequestsException.build( - [void Function(TooManyRequestsExceptionBuilder) updates]) = - _$TooManyRequestsException; + factory TooManyRequestsException.build([ + void Function(TooManyRequestsExceptionBuilder) updates, + ]) = _$TooManyRequestsException; const TooManyRequestsException._(); @@ -32,22 +32,21 @@ abstract class TooManyRequestsException factory TooManyRequestsException.fromResponse( TooManyRequestsException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [TooManyRequestsExceptionAwsJson11Serializer()]; + serializers = [TooManyRequestsExceptionAwsJson11Serializer()]; /// Message returned by a TooManyRequestsException @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'TooManyRequestsException', - ); + namespace: 'com.amazonaws.cognitoidentity', + shape: 'TooManyRequestsException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class TooManyRequestsException @override String toString() { final helper = newBuiltValueToStringHelper('TooManyRequestsException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class TooManyRequestsException class TooManyRequestsExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const TooManyRequestsExceptionAwsJson11Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [ - TooManyRequestsException, - _$TooManyRequestsException, - ]; + TooManyRequestsException, + _$TooManyRequestsException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override TooManyRequestsException deserialize( @@ -112,10 +105,12 @@ class TooManyRequestsExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class TooManyRequestsExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.g.dart index b292bcbca4..c101e1193d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/model/too_many_requests_exception.g.dart @@ -12,16 +12,16 @@ class _$TooManyRequestsException extends TooManyRequestsException { @override final Map? headers; - factory _$TooManyRequestsException( - [void Function(TooManyRequestsExceptionBuilder)? updates]) => - (new TooManyRequestsExceptionBuilder()..update(updates))._build(); + factory _$TooManyRequestsException([ + void Function(TooManyRequestsExceptionBuilder)? updates, + ]) => (new TooManyRequestsExceptionBuilder()..update(updates))._build(); _$TooManyRequestsException._({this.message, this.headers}) : super._(); @override TooManyRequestsException rebuild( - void Function(TooManyRequestsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class TooManyRequestsExceptionBuilder TooManyRequestsException build() => _build(); _$TooManyRequestsException _build() { - final _$result = _$v ?? - new _$TooManyRequestsException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$TooManyRequestsException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_credentials_for_identity_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_credentials_for_identity_operation.dart index a70ab6465f..7387d075d9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_credentials_for_identity_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_credentials_for_identity_operation.dart @@ -25,11 +25,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token. /// /// This is a public API. You do not need any credentials to call this API. -class GetCredentialsForIdentityOperation extends _i1.HttpOperation< - GetCredentialsForIdentityInput, - GetCredentialsForIdentityInput, - GetCredentialsForIdentityResponse, - GetCredentialsForIdentityResponse> { +class GetCredentialsForIdentityOperation + extends + _i1.HttpOperation< + GetCredentialsForIdentityInput, + GetCredentialsForIdentityInput, + GetCredentialsForIdentityResponse, + GetCredentialsForIdentityResponse + > { /// Returns credentials for the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token. /// /// This is a public API. You do not need any credentials to call this API. @@ -40,23 +43,27 @@ class GetCredentialsForIdentityOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - GetCredentialsForIdentityInput, - GetCredentialsForIdentityInput, - GetCredentialsForIdentityResponse, - GetCredentialsForIdentityResponse>> protocols = [ + _i1.HttpProtocol< + GetCredentialsForIdentityInput, + GetCredentialsForIdentityInput, + GetCredentialsForIdentityResponse, + GetCredentialsForIdentityResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -76,7 +83,7 @@ class GetCredentialsForIdentityOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -108,95 +115,93 @@ class GetCredentialsForIdentityOperation extends _i1.HttpOperation< GetCredentialsForIdentityResponse buildOutput( GetCredentialsForIdentityResponse payload, _i4.AWSBaseHttpResponse response, - ) => - GetCredentialsForIdentityResponse.fromResponse( - payload, - response, - ); + ) => GetCredentialsForIdentityResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ExternalServiceException', - ), - _i1.ErrorKind.client, - ExternalServiceException, - statusCode: 400, - builder: ExternalServiceException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InvalidIdentityPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidIdentityPoolConfigurationException, - statusCode: 400, - builder: InvalidIdentityPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ResourceConflictException', - ), - _i1.ErrorKind.client, - ResourceConflictException, - statusCode: 409, - builder: ResourceConflictException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ExternalServiceException', + ), + _i1.ErrorKind.client, + ExternalServiceException, + statusCode: 400, + builder: ExternalServiceException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidIdentityPoolConfigurationException, + InvalidIdentityPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InvalidIdentityPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidIdentityPoolConfigurationException, + statusCode: 400, + builder: InvalidIdentityPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ResourceConflictException', + ), + _i1.ErrorKind.client, + ResourceConflictException, + statusCode: 409, + builder: ResourceConflictException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetCredentialsForIdentity'; @@ -217,11 +222,7 @@ class GetCredentialsForIdentityOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_id_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_id_operation.dart index 5a9ebaa5b3..ba6a34284d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_id_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity/operation/get_id_operation.dart @@ -25,8 +25,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account. /// /// This is a public API. You do not need any credentials to call this API. -class GetIdOperation extends _i1 - .HttpOperation { +class GetIdOperation + extends + _i1.HttpOperation< + GetIdInput, + GetIdInput, + GetIdResponse, + GetIdResponse + > { /// Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account. /// /// This is a public API. You do not need any credentials to call this API. @@ -37,21 +43,22 @@ class GetIdOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1 - .HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -71,7 +78,7 @@ class GetIdOperation extends _i1 _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -91,9 +98,9 @@ class GetIdOperation extends _i1 @override _i1.HttpRequest buildRequest(GetIdInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GetIdResponse? output]) => 200; @@ -102,94 +109,90 @@ class GetIdOperation extends _i1 GetIdResponse buildOutput( GetIdResponse payload, _i4.AWSBaseHttpResponse response, - ) => - GetIdResponse.fromResponse( - payload, - response, - ); + ) => GetIdResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ExternalServiceException', - ), - _i1.ErrorKind.client, - ExternalServiceException, - statusCode: 400, - builder: ExternalServiceException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ResourceConflictException', - ), - _i1.ErrorKind.client, - ResourceConflictException, - statusCode: 409, - builder: ResourceConflictException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentity', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ExternalServiceException', + ), + _i1.ErrorKind.client, + ExternalServiceException, + statusCode: 400, + builder: ExternalServiceException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ResourceConflictException', + ), + _i1.ErrorKind.client, + ResourceConflictException, + statusCode: 409, + builder: ResourceConflictException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentity', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetId'; @@ -210,11 +213,7 @@ class GetIdOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart index 77dc73bc98..80585fb0ce 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart @@ -157,12 +157,12 @@ class CognitoIdentityProviderClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -194,10 +194,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Changes the password for a specified user in a user pool. @@ -216,10 +213,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Confirms tracking of the device. This API call is the call that begins device tracking. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). @@ -238,10 +232,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Allows a user to enter a confirmation code to reset a forgotten password. @@ -258,10 +249,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This public API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool via the [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) API operation. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message. @@ -280,10 +268,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Allows a user to delete their own user profile. @@ -302,10 +287,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Forgets the specified device. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). @@ -324,10 +306,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Calling this API causes a message to be sent to the end user with a confirmation code that is required to change the user's password. For the `Username` parameter, you can use the username or user alias. The method used to send the confirmation code is sent according to the specified AccountRecoverySetting. For more information, see [Recovering User Accounts](https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-recover-a-user-account.html) in the _Amazon Cognito Developer Guide_. To use the confirmation code for resetting the password, call [ConfirmForgotPassword](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmForgotPassword.html). @@ -352,10 +331,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Gets the device. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). @@ -374,10 +350,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Gets the user attributes and metadata for a user. @@ -396,10 +369,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Generates a user attribute verification code for the specified attribute name. Sends a message to a user with a code that they must return in a VerifyUserAttribute request. @@ -412,7 +382,7 @@ class CognitoIdentityProviderClient { /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. _i3.SmithyOperation - getUserAttributeVerificationCode( + getUserAttributeVerificationCode( GetUserAttributeVerificationCodeRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -423,10 +393,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation when your user signs out of your app. This results in the following behavior. @@ -456,10 +423,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Initiates sign-in for a user in the Amazon Cognito user directory. You can't sign in a user with a federated IdP with `InitiateAuth`. For more information, see [Adding user pool sign-in through a third party](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html). @@ -480,10 +444,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Lists the sign-in devices that Amazon Cognito has registered to the current user. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). @@ -502,10 +463,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Resends the confirmation (for confirmation of registration) to a specific user in the user pool. @@ -526,10 +484,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. A `RespondToAuthChallenge` API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge. @@ -552,10 +507,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server. @@ -572,10 +524,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Set the user's multi-factor authentication (MFA) method preference, including which MFA factors are activated and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool. @@ -594,10 +543,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Registers the user in the specified user pool and creates a user name, password, and user attributes. @@ -618,10 +564,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Updates the device status. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). @@ -640,10 +583,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// With this operation, your users can update one or more of their attributes with their own credentials. You authorize this API request with the user's access token. To delete an attribute from your user, submit the attribute in your API request with a blank value. Custom attribute values in this request must include the `custom:` prefix. @@ -666,10 +606,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Use this API to register a user's entered time-based one-time password (TOTP) code and mark the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both. @@ -686,10 +623,7 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Verifies the specified user attributes in the user pool. @@ -710,9 +644,6 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart index 87bbaf7dc7..516291bb6e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart @@ -77,30 +77,38 @@ final _partitions = [ ), 'me-south-1': _i1.EndpointDefinition(variants: []), 'sa-east-1': _i1.EndpointDefinition(variants: []), - 'us-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-east-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-west-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-west-2.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-east-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-west-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-west-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), _i1.Partition( @@ -115,10 +123,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -133,10 +138,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -166,27 +168,27 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-west-1': _i1.EndpointDefinition( hostname: 'cognito-idp-fips.us-gov-west-1.amazonaws.com', credentialScope: _i1.CredentialScope(region: 'us-gov-west-1'), variants: [], ), - 'us-gov-west-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-gov-west-1.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-gov-west-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-gov-west-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Cognito Identity Provider'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart index 45d3210bcb..5d5b1f89b1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart @@ -196,38 +196,18 @@ const List<_i1.SmithySerializer> serializers = [ ...VerifyUserAttributeResponse.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(AttributeType)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(MfaOptionType)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DeviceType)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(CodeDeliveryDetailsType)], - ): _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(AttributeType)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(MfaOptionType)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(DeviceType)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(CodeDeliveryDetailsType)]): + _i2.ListBuilder.new, }; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.dart index 92daad3986..fccac954e9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.dart @@ -22,9 +22,9 @@ abstract class AliasExistsException } /// This exception is thrown when a user tries to confirm the account with an email address or phone number that has already been supplied as an alias for a different user profile. This exception indicates that an account with this email address or phone already exists in a user pool that you've configured to use email address or phone number as a sign-in alias. - factory AliasExistsException.build( - [void Function(AliasExistsExceptionBuilder) updates]) = - _$AliasExistsException; + factory AliasExistsException.build([ + void Function(AliasExistsExceptionBuilder) updates, + ]) = _$AliasExistsException; const AliasExistsException._(); @@ -32,13 +32,12 @@ abstract class AliasExistsException factory AliasExistsException.fromResponse( AliasExistsException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - AliasExistsExceptionAwsJson11Serializer() + AliasExistsExceptionAwsJson11Serializer(), ]; /// The message that Amazon Cognito sends to the user when the value of an alias attribute is already linked to another user profile. @@ -46,9 +45,9 @@ abstract class AliasExistsException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'AliasExistsException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'AliasExistsException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,10 +68,7 @@ abstract class AliasExistsException @override String toString() { final helper = newBuiltValueToStringHelper('AliasExistsException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,21 +76,18 @@ abstract class AliasExistsException class AliasExistsExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const AliasExistsExceptionAwsJson11Serializer() - : super('AliasExistsException'); + : super('AliasExistsException'); @override Iterable get types => const [ - AliasExistsException, - _$AliasExistsException, - ]; + AliasExistsException, + _$AliasExistsException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AliasExistsException deserialize( @@ -113,10 +106,12 @@ class AliasExistsExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,10 +129,9 @@ class AliasExistsExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.g.dart index f0cb048bb2..128c11c6f4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/alias_exists_exception.g.dart @@ -12,16 +12,16 @@ class _$AliasExistsException extends AliasExistsException { @override final Map? headers; - factory _$AliasExistsException( - [void Function(AliasExistsExceptionBuilder)? updates]) => - (new AliasExistsExceptionBuilder()..update(updates))._build(); + factory _$AliasExistsException([ + void Function(AliasExistsExceptionBuilder)? updates, + ]) => (new AliasExistsExceptionBuilder()..update(updates))._build(); _$AliasExistsException._({this.message, this.headers}) : super._(); @override AliasExistsException rebuild( - void Function(AliasExistsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AliasExistsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AliasExistsExceptionBuilder toBuilder() => @@ -81,11 +81,8 @@ class AliasExistsExceptionBuilder AliasExistsException build() => _build(); _$AliasExistsException _build() { - final _$result = _$v ?? - new _$AliasExistsException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? new _$AliasExistsException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.dart index 3ce0fd64f0..914eb1a8fc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.dart @@ -26,14 +26,14 @@ abstract class AnalyticsMetadataType /// An Amazon Pinpoint analytics endpoint. /// /// An endpoint uniquely identifies a mobile device, email address, or phone number that can receive messages from Amazon Pinpoint analytics. For more information about Amazon Web Services Regions that can contain Amazon Pinpoint resources for use with Amazon Cognito user pools, see [Using Amazon Pinpoint analytics with Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-pinpoint-integration.html). - factory AnalyticsMetadataType.build( - [void Function(AnalyticsMetadataTypeBuilder) updates]) = - _$AnalyticsMetadataType; + factory AnalyticsMetadataType.build([ + void Function(AnalyticsMetadataTypeBuilder) updates, + ]) = _$AnalyticsMetadataType; const AnalyticsMetadataType._(); static const List<_i2.SmithySerializer> serializers = [ - AnalyticsMetadataTypeAwsJson11Serializer() + AnalyticsMetadataTypeAwsJson11Serializer(), ]; /// The endpoint ID. @@ -44,10 +44,7 @@ abstract class AnalyticsMetadataType @override String toString() { final helper = newBuiltValueToStringHelper('AnalyticsMetadataType') - ..add( - 'analyticsEndpointId', - analyticsEndpointId, - ); + ..add('analyticsEndpointId', analyticsEndpointId); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class AnalyticsMetadataType class AnalyticsMetadataTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const AnalyticsMetadataTypeAwsJson11Serializer() - : super('AnalyticsMetadataType'); + : super('AnalyticsMetadataType'); @override Iterable get types => const [ - AnalyticsMetadataType, - _$AnalyticsMetadataType, - ]; + AnalyticsMetadataType, + _$AnalyticsMetadataType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AnalyticsMetadataType deserialize( @@ -88,10 +82,12 @@ class AnalyticsMetadataTypeAwsJson11Serializer } switch (key) { case 'AnalyticsEndpointId': - result.analyticsEndpointId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.analyticsEndpointId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -109,10 +105,12 @@ class AnalyticsMetadataTypeAwsJson11Serializer if (analyticsEndpointId != null) { result$ ..add('AnalyticsEndpointId') - ..add(serializers.serialize( - analyticsEndpointId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + analyticsEndpointId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.g.dart index 1c0cfa1795..6bf064359f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/analytics_metadata_type.g.dart @@ -10,16 +10,16 @@ class _$AnalyticsMetadataType extends AnalyticsMetadataType { @override final String? analyticsEndpointId; - factory _$AnalyticsMetadataType( - [void Function(AnalyticsMetadataTypeBuilder)? updates]) => - (new AnalyticsMetadataTypeBuilder()..update(updates))._build(); + factory _$AnalyticsMetadataType([ + void Function(AnalyticsMetadataTypeBuilder)? updates, + ]) => (new AnalyticsMetadataTypeBuilder()..update(updates))._build(); _$AnalyticsMetadataType._({this.analyticsEndpointId}) : super._(); @override AnalyticsMetadataType rebuild( - void Function(AnalyticsMetadataTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AnalyticsMetadataTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AnalyticsMetadataTypeBuilder toBuilder() => @@ -76,10 +76,9 @@ class AnalyticsMetadataTypeBuilder AnalyticsMetadataType build() => _build(); _$AnalyticsMetadataType _build() { - final _$result = _$v ?? - new _$AnalyticsMetadataType._( - analyticsEndpointId: analyticsEndpointId, - ); + final _$result = + _$v ?? + new _$AnalyticsMetadataType._(analyticsEndpointId: analyticsEndpointId); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.dart index 68a490b537..54937808a7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.dart @@ -15,8 +15,10 @@ abstract class AssociateSoftwareTokenRequest _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + AssociateSoftwareTokenRequest, + AssociateSoftwareTokenRequestBuilder + > { factory AssociateSoftwareTokenRequest({ String? accessToken, String? session, @@ -27,9 +29,9 @@ abstract class AssociateSoftwareTokenRequest ); } - factory AssociateSoftwareTokenRequest.build( - [void Function(AssociateSoftwareTokenRequestBuilder) updates]) = - _$AssociateSoftwareTokenRequest; + factory AssociateSoftwareTokenRequest.build([ + void Function(AssociateSoftwareTokenRequestBuilder) updates, + ]) = _$AssociateSoftwareTokenRequest; const AssociateSoftwareTokenRequest._(); @@ -37,11 +39,10 @@ abstract class AssociateSoftwareTokenRequest AssociateSoftwareTokenRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [AssociateSoftwareTokenRequestAwsJson11Serializer()]; + serializers = [AssociateSoftwareTokenRequestAwsJson11Serializer()]; /// A valid access token that Amazon Cognito issued to the user whose software token you want to generate. String? get accessToken; @@ -52,22 +53,14 @@ abstract class AssociateSoftwareTokenRequest AssociateSoftwareTokenRequest getPayload() => this; @override - List get props => [ - accessToken, - session, - ]; + List get props => [accessToken, session]; @override String toString() { - final helper = newBuiltValueToStringHelper('AssociateSoftwareTokenRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'session', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('AssociateSoftwareTokenRequest') + ..add('accessToken', '***SENSITIVE***') + ..add('session', '***SENSITIVE***'); return helper.toString(); } } @@ -75,21 +68,18 @@ abstract class AssociateSoftwareTokenRequest class AssociateSoftwareTokenRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const AssociateSoftwareTokenRequestAwsJson11Serializer() - : super('AssociateSoftwareTokenRequest'); + : super('AssociateSoftwareTokenRequest'); @override Iterable get types => const [ - AssociateSoftwareTokenRequest, - _$AssociateSoftwareTokenRequest, - ]; + AssociateSoftwareTokenRequest, + _$AssociateSoftwareTokenRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AssociateSoftwareTokenRequest deserialize( @@ -108,15 +98,19 @@ class AssociateSoftwareTokenRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Session': - result.session = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.session = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,18 +128,19 @@ class AssociateSoftwareTokenRequestAwsJson11Serializer if (accessToken != null) { result$ ..add('AccessToken') - ..add(serializers.serialize( - accessToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + accessToken, + specifiedType: const FullType(String), + ), + ); } if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(session, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.g.dart index 0a5b9d6410..00d6fefe6f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_request.g.dart @@ -12,17 +12,17 @@ class _$AssociateSoftwareTokenRequest extends AssociateSoftwareTokenRequest { @override final String? session; - factory _$AssociateSoftwareTokenRequest( - [void Function(AssociateSoftwareTokenRequestBuilder)? updates]) => - (new AssociateSoftwareTokenRequestBuilder()..update(updates))._build(); + factory _$AssociateSoftwareTokenRequest([ + void Function(AssociateSoftwareTokenRequestBuilder)? updates, + ]) => (new AssociateSoftwareTokenRequestBuilder()..update(updates))._build(); _$AssociateSoftwareTokenRequest._({this.accessToken, this.session}) - : super._(); + : super._(); @override AssociateSoftwareTokenRequest rebuild( - void Function(AssociateSoftwareTokenRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AssociateSoftwareTokenRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AssociateSoftwareTokenRequestBuilder toBuilder() => @@ -48,8 +48,10 @@ class _$AssociateSoftwareTokenRequest extends AssociateSoftwareTokenRequest { class AssociateSoftwareTokenRequestBuilder implements - Builder { + Builder< + AssociateSoftwareTokenRequest, + AssociateSoftwareTokenRequestBuilder + > { _$AssociateSoftwareTokenRequest? _$v; String? _accessToken; @@ -87,7 +89,8 @@ class AssociateSoftwareTokenRequestBuilder AssociateSoftwareTokenRequest build() => _build(); _$AssociateSoftwareTokenRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$AssociateSoftwareTokenRequest._( accessToken: accessToken, session: session, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.dart index c65a519903..142c0ccd30 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.dart @@ -11,11 +11,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'associate_software_token_response.g.dart'; abstract class AssociateSoftwareTokenResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + AssociateSoftwareTokenResponse, + AssociateSoftwareTokenResponseBuilder + > { factory AssociateSoftwareTokenResponse({ String? secretCode, String? session, @@ -26,9 +27,9 @@ abstract class AssociateSoftwareTokenResponse ); } - factory AssociateSoftwareTokenResponse.build( - [void Function(AssociateSoftwareTokenResponseBuilder) updates]) = - _$AssociateSoftwareTokenResponse; + factory AssociateSoftwareTokenResponse.build([ + void Function(AssociateSoftwareTokenResponseBuilder) updates, + ]) = _$AssociateSoftwareTokenResponse; const AssociateSoftwareTokenResponse._(); @@ -36,11 +37,10 @@ abstract class AssociateSoftwareTokenResponse factory AssociateSoftwareTokenResponse.fromResponse( AssociateSoftwareTokenResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [AssociateSoftwareTokenResponseAwsJson11Serializer()]; + serializers = [AssociateSoftwareTokenResponseAwsJson11Serializer()]; /// A unique generated shared secret code that is used in the TOTP algorithm to generate a one-time code. String? get secretCode; @@ -48,22 +48,14 @@ abstract class AssociateSoftwareTokenResponse /// The session that should be passed both ways in challenge-response calls to the service. This allows authentication of the user as part of the MFA setup process. String? get session; @override - List get props => [ - secretCode, - session, - ]; + List get props => [secretCode, session]; @override String toString() { - final helper = newBuiltValueToStringHelper('AssociateSoftwareTokenResponse') - ..add( - 'secretCode', - '***SENSITIVE***', - ) - ..add( - 'session', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('AssociateSoftwareTokenResponse') + ..add('secretCode', '***SENSITIVE***') + ..add('session', '***SENSITIVE***'); return helper.toString(); } } @@ -71,21 +63,18 @@ abstract class AssociateSoftwareTokenResponse class AssociateSoftwareTokenResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const AssociateSoftwareTokenResponseAwsJson11Serializer() - : super('AssociateSoftwareTokenResponse'); + : super('AssociateSoftwareTokenResponse'); @override Iterable get types => const [ - AssociateSoftwareTokenResponse, - _$AssociateSoftwareTokenResponse, - ]; + AssociateSoftwareTokenResponse, + _$AssociateSoftwareTokenResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AssociateSoftwareTokenResponse deserialize( @@ -104,15 +93,19 @@ class AssociateSoftwareTokenResponseAwsJson11Serializer } switch (key) { case 'SecretCode': - result.secretCode = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.secretCode = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Session': - result.session = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.session = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,18 +123,19 @@ class AssociateSoftwareTokenResponseAwsJson11Serializer if (secretCode != null) { result$ ..add('SecretCode') - ..add(serializers.serialize( - secretCode, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + secretCode, + specifiedType: const FullType(String), + ), + ); } if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(session, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.g.dart index 7017f4294e..a25b9992c6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/associate_software_token_response.g.dart @@ -12,17 +12,17 @@ class _$AssociateSoftwareTokenResponse extends AssociateSoftwareTokenResponse { @override final String? session; - factory _$AssociateSoftwareTokenResponse( - [void Function(AssociateSoftwareTokenResponseBuilder)? updates]) => - (new AssociateSoftwareTokenResponseBuilder()..update(updates))._build(); + factory _$AssociateSoftwareTokenResponse([ + void Function(AssociateSoftwareTokenResponseBuilder)? updates, + ]) => (new AssociateSoftwareTokenResponseBuilder()..update(updates))._build(); _$AssociateSoftwareTokenResponse._({this.secretCode, this.session}) - : super._(); + : super._(); @override AssociateSoftwareTokenResponse rebuild( - void Function(AssociateSoftwareTokenResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AssociateSoftwareTokenResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AssociateSoftwareTokenResponseBuilder toBuilder() => @@ -48,8 +48,10 @@ class _$AssociateSoftwareTokenResponse extends AssociateSoftwareTokenResponse { class AssociateSoftwareTokenResponseBuilder implements - Builder { + Builder< + AssociateSoftwareTokenResponse, + AssociateSoftwareTokenResponseBuilder + > { _$AssociateSoftwareTokenResponse? _$v; String? _secretCode; @@ -87,7 +89,8 @@ class AssociateSoftwareTokenResponseBuilder AssociateSoftwareTokenResponse build() => _build(); _$AssociateSoftwareTokenResponse _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$AssociateSoftwareTokenResponse._( secretCode: secretCode, session: session, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.dart index d6e81f84e6..f1fe6990bf 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.dart @@ -15,14 +15,8 @@ abstract class AttributeType with _i1.AWSEquatable implements Built { /// Specifies whether the attribute is standard or custom. - factory AttributeType({ - required String name, - String? value, - }) { - return _$AttributeType._( - name: name, - value: value, - ); + factory AttributeType({required String name, String? value}) { + return _$AttributeType._(name: name, value: value); } /// Specifies whether the attribute is standard or custom. @@ -32,7 +26,7 @@ abstract class AttributeType const AttributeType._(); static const List<_i2.SmithySerializer> serializers = [ - AttributeTypeAwsJson11Serializer() + AttributeTypeAwsJson11Serializer(), ]; /// The name of the attribute. @@ -41,22 +35,14 @@ abstract class AttributeType /// The value of the attribute. String? get value; @override - List get props => [ - name, - value, - ]; + List get props => [name, value]; @override String toString() { - final helper = newBuiltValueToStringHelper('AttributeType') - ..add( - 'name', - name, - ) - ..add( - 'value', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('AttributeType') + ..add('name', name) + ..add('value', '***SENSITIVE***'); return helper.toString(); } } @@ -66,18 +52,12 @@ class AttributeTypeAwsJson11Serializer const AttributeTypeAwsJson11Serializer() : super('AttributeType'); @override - Iterable get types => const [ - AttributeType, - _$AttributeType, - ]; + Iterable get types => const [AttributeType, _$AttributeType]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AttributeType deserialize( @@ -96,15 +76,19 @@ class AttributeTypeAwsJson11Serializer } switch (key) { case 'Name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -121,18 +105,14 @@ class AttributeTypeAwsJson11Serializer final AttributeType(:name, :value) = object; result$.addAll([ 'Name', - serializers.serialize( - name, - specifiedType: const FullType(String), - ), + serializers.serialize(name, specifiedType: const FullType(String)), ]); if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.g.dart index f94f28fff5..53ebafe17f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/attribute_type.g.dart @@ -81,10 +81,14 @@ class AttributeTypeBuilder AttributeType build() => _build(); _$AttributeType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$AttributeType._( name: BuiltValueNullFieldError.checkNotNull( - name, r'AttributeType', 'name'), + name, + r'AttributeType', + 'name', + ), value: value, ); replace(_$result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/auth_flow_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/auth_flow_type.dart index 63ef0d3e8b..0685b284f5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/auth_flow_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/auth_flow_type.dart @@ -6,11 +6,7 @@ library amplify_auth_cognito_dart.cognito_identity_provider.model.auth_flow_type import 'package:smithy/smithy.dart' as _i1; class AuthFlowType extends _i1.SmithyEnum { - const AuthFlowType._( - super.index, - super.name, - super.value, - ); + const AuthFlowType._(super.index, super.name, super.value); const AuthFlowType._sdkUnknown(super.value) : super.sdkUnknown(); @@ -26,11 +22,7 @@ class AuthFlowType extends _i1.SmithyEnum { 'ADMIN_USER_PASSWORD_AUTH', ); - static const customAuth = AuthFlowType._( - 2, - 'CUSTOM_AUTH', - 'CUSTOM_AUTH', - ); + static const customAuth = AuthFlowType._(2, 'CUSTOM_AUTH', 'CUSTOM_AUTH'); static const refreshToken = AuthFlowType._( 3, @@ -73,12 +65,9 @@ class AuthFlowType extends _i1.SmithyEnum { values: values, sdkUnknown: AuthFlowType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.dart index fe4c1436b2..2a4ec573a0 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.dart @@ -37,14 +37,14 @@ abstract class AuthenticationResultType } /// The authentication result. - factory AuthenticationResultType.build( - [void Function(AuthenticationResultTypeBuilder) updates]) = - _$AuthenticationResultType; + factory AuthenticationResultType.build([ + void Function(AuthenticationResultTypeBuilder) updates, + ]) = _$AuthenticationResultType; const AuthenticationResultType._(); static const List<_i2.SmithySerializer> - serializers = [AuthenticationResultTypeAwsJson11Serializer()]; + serializers = [AuthenticationResultTypeAwsJson11Serializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(AuthenticationResultTypeBuilder b) { @@ -70,41 +70,24 @@ abstract class AuthenticationResultType NewDeviceMetadataType? get newDeviceMetadata; @override List get props => [ - accessToken, - expiresIn, - tokenType, - refreshToken, - idToken, - newDeviceMetadata, - ]; + accessToken, + expiresIn, + tokenType, + refreshToken, + idToken, + newDeviceMetadata, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('AuthenticationResultType') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'expiresIn', - expiresIn, - ) - ..add( - 'tokenType', - tokenType, - ) - ..add( - 'refreshToken', - '***SENSITIVE***', - ) - ..add( - 'idToken', - '***SENSITIVE***', - ) - ..add( - 'newDeviceMetadata', - newDeviceMetadata, - ); + final helper = + newBuiltValueToStringHelper('AuthenticationResultType') + ..add('accessToken', '***SENSITIVE***') + ..add('expiresIn', expiresIn) + ..add('tokenType', tokenType) + ..add('refreshToken', '***SENSITIVE***') + ..add('idToken', '***SENSITIVE***') + ..add('newDeviceMetadata', newDeviceMetadata); return helper.toString(); } } @@ -112,21 +95,18 @@ abstract class AuthenticationResultType class AuthenticationResultTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const AuthenticationResultTypeAwsJson11Serializer() - : super('AuthenticationResultType'); + : super('AuthenticationResultType'); @override Iterable get types => const [ - AuthenticationResultType, - _$AuthenticationResultType, - ]; + AuthenticationResultType, + _$AuthenticationResultType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AuthenticationResultType deserialize( @@ -145,35 +125,48 @@ class AuthenticationResultTypeAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ExpiresIn': - result.expiresIn = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.expiresIn = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'TokenType': - result.tokenType = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.tokenType = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RefreshToken': - result.refreshToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.refreshToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'IdToken': - result.idToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.idToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'NewDeviceMetadata': - result.newDeviceMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(NewDeviceMetadataType), - ) as NewDeviceMetadataType)); + result.newDeviceMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NewDeviceMetadataType), + ) + as NewDeviceMetadataType), + ); } } @@ -193,54 +186,58 @@ class AuthenticationResultTypeAwsJson11Serializer :tokenType, :refreshToken, :idToken, - :newDeviceMetadata + :newDeviceMetadata, ) = object; result$.addAll([ 'ExpiresIn', - serializers.serialize( - expiresIn, - specifiedType: const FullType(int), - ), + serializers.serialize(expiresIn, specifiedType: const FullType(int)), ]); if (accessToken != null) { result$ ..add('AccessToken') - ..add(serializers.serialize( - accessToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + accessToken, + specifiedType: const FullType(String), + ), + ); } if (tokenType != null) { result$ ..add('TokenType') - ..add(serializers.serialize( - tokenType, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + tokenType, + specifiedType: const FullType(String), + ), + ); } if (refreshToken != null) { result$ ..add('RefreshToken') - ..add(serializers.serialize( - refreshToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + refreshToken, + specifiedType: const FullType(String), + ), + ); } if (idToken != null) { result$ ..add('IdToken') - ..add(serializers.serialize( - idToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(idToken, specifiedType: const FullType(String)), + ); } if (newDeviceMetadata != null) { result$ ..add('NewDeviceMetadata') - ..add(serializers.serialize( - newDeviceMetadata, - specifiedType: const FullType(NewDeviceMetadataType), - )); + ..add( + serializers.serialize( + newDeviceMetadata, + specifiedType: const FullType(NewDeviceMetadataType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.g.dart index dfe6461515..b08230bc1a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/authentication_result_type.g.dart @@ -20,26 +20,29 @@ class _$AuthenticationResultType extends AuthenticationResultType { @override final NewDeviceMetadataType? newDeviceMetadata; - factory _$AuthenticationResultType( - [void Function(AuthenticationResultTypeBuilder)? updates]) => - (new AuthenticationResultTypeBuilder()..update(updates))._build(); - - _$AuthenticationResultType._( - {this.accessToken, - required this.expiresIn, - this.tokenType, - this.refreshToken, - this.idToken, - this.newDeviceMetadata}) - : super._() { + factory _$AuthenticationResultType([ + void Function(AuthenticationResultTypeBuilder)? updates, + ]) => (new AuthenticationResultTypeBuilder()..update(updates))._build(); + + _$AuthenticationResultType._({ + this.accessToken, + required this.expiresIn, + this.tokenType, + this.refreshToken, + this.idToken, + this.newDeviceMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - expiresIn, r'AuthenticationResultType', 'expiresIn'); + expiresIn, + r'AuthenticationResultType', + 'expiresIn', + ); } @override AuthenticationResultType rebuild( - void Function(AuthenticationResultTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AuthenticationResultTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AuthenticationResultTypeBuilder toBuilder() => @@ -137,11 +140,15 @@ class AuthenticationResultTypeBuilder _$AuthenticationResultType _build() { _$AuthenticationResultType _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AuthenticationResultType._( accessToken: accessToken, expiresIn: BuiltValueNullFieldError.checkNotNull( - expiresIn, r'AuthenticationResultType', 'expiresIn'), + expiresIn, + r'AuthenticationResultType', + 'expiresIn', + ), tokenType: tokenType, refreshToken: refreshToken, idToken: idToken, @@ -154,7 +161,10 @@ class AuthenticationResultTypeBuilder _newDeviceMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AuthenticationResultType', _$failedField, e.toString()); + r'AuthenticationResultType', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/challenge_name_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/challenge_name_type.dart index 245f07151e..7020cfd33c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/challenge_name_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/challenge_name_type.dart @@ -6,11 +6,7 @@ library amplify_auth_cognito_dart.cognito_identity_provider.model.challenge_name import 'package:smithy/smithy.dart' as _i1; class ChallengeNameType extends _i1.SmithyEnum { - const ChallengeNameType._( - super.index, - super.name, - super.value, - ); + const ChallengeNameType._(super.index, super.name, super.value); const ChallengeNameType._sdkUnknown(super.value) : super.sdkUnknown(); @@ -38,17 +34,9 @@ class ChallengeNameType extends _i1.SmithyEnum { 'DEVICE_SRP_AUTH', ); - static const emailOtp = ChallengeNameType._( - 4, - 'EMAIL_OTP', - 'EMAIL_OTP', - ); + static const emailOtp = ChallengeNameType._(4, 'EMAIL_OTP', 'EMAIL_OTP'); - static const mfaSetup = ChallengeNameType._( - 5, - 'MFA_SETUP', - 'MFA_SETUP', - ); + static const mfaSetup = ChallengeNameType._(5, 'MFA_SETUP', 'MFA_SETUP'); static const newPasswordRequired = ChallengeNameType._( 6, @@ -68,11 +56,7 @@ class ChallengeNameType extends _i1.SmithyEnum { 'SELECT_MFA_TYPE', ); - static const smsMfa = ChallengeNameType._( - 9, - 'SMS_MFA', - 'SMS_MFA', - ); + static const smsMfa = ChallengeNameType._(9, 'SMS_MFA', 'SMS_MFA'); static const softwareTokenMfa = ChallengeNameType._( 10, @@ -101,12 +85,9 @@ class ChallengeNameType extends _i1.SmithyEnum { values: values, sdkUnknown: ChallengeNameType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.dart index aca8f246fd..e7f411831e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.dart @@ -30,9 +30,9 @@ abstract class ChangePasswordRequest } /// Represents the request to change a user password. - factory ChangePasswordRequest.build( - [void Function(ChangePasswordRequestBuilder) updates]) = - _$ChangePasswordRequest; + factory ChangePasswordRequest.build([ + void Function(ChangePasswordRequestBuilder) updates, + ]) = _$ChangePasswordRequest; const ChangePasswordRequest._(); @@ -40,11 +40,10 @@ abstract class ChangePasswordRequest ChangePasswordRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - ChangePasswordRequestAwsJson11Serializer() + ChangePasswordRequestAwsJson11Serializer(), ]; /// The old password. @@ -59,27 +58,15 @@ abstract class ChangePasswordRequest ChangePasswordRequest getPayload() => this; @override - List get props => [ - previousPassword, - proposedPassword, - accessToken, - ]; + List get props => [previousPassword, proposedPassword, accessToken]; @override String toString() { - final helper = newBuiltValueToStringHelper('ChangePasswordRequest') - ..add( - 'previousPassword', - '***SENSITIVE***', - ) - ..add( - 'proposedPassword', - '***SENSITIVE***', - ) - ..add( - 'accessToken', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('ChangePasswordRequest') + ..add('previousPassword', '***SENSITIVE***') + ..add('proposedPassword', '***SENSITIVE***') + ..add('accessToken', '***SENSITIVE***'); return helper.toString(); } } @@ -87,21 +74,18 @@ abstract class ChangePasswordRequest class ChangePasswordRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const ChangePasswordRequestAwsJson11Serializer() - : super('ChangePasswordRequest'); + : super('ChangePasswordRequest'); @override Iterable get types => const [ - ChangePasswordRequest, - _$ChangePasswordRequest, - ]; + ChangePasswordRequest, + _$ChangePasswordRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ChangePasswordRequest deserialize( @@ -120,20 +104,26 @@ class ChangePasswordRequestAwsJson11Serializer } switch (key) { case 'PreviousPassword': - result.previousPassword = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.previousPassword = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ProposedPassword': - result.proposedPassword = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.proposedPassword = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -150,7 +140,7 @@ class ChangePasswordRequestAwsJson11Serializer final ChangePasswordRequest( :previousPassword, :proposedPassword, - :accessToken + :accessToken, ) = object; result$.addAll([ 'PreviousPassword', @@ -164,10 +154,7 @@ class ChangePasswordRequestAwsJson11Serializer specifiedType: const FullType(String), ), 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.g.dart index cdb9eb68c3..89b3b99e42 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_request.g.dart @@ -14,27 +14,36 @@ class _$ChangePasswordRequest extends ChangePasswordRequest { @override final String accessToken; - factory _$ChangePasswordRequest( - [void Function(ChangePasswordRequestBuilder)? updates]) => - (new ChangePasswordRequestBuilder()..update(updates))._build(); - - _$ChangePasswordRequest._( - {required this.previousPassword, - required this.proposedPassword, - required this.accessToken}) - : super._() { + factory _$ChangePasswordRequest([ + void Function(ChangePasswordRequestBuilder)? updates, + ]) => (new ChangePasswordRequestBuilder()..update(updates))._build(); + + _$ChangePasswordRequest._({ + required this.previousPassword, + required this.proposedPassword, + required this.accessToken, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - previousPassword, r'ChangePasswordRequest', 'previousPassword'); + previousPassword, + r'ChangePasswordRequest', + 'previousPassword', + ); BuiltValueNullFieldError.checkNotNull( - proposedPassword, r'ChangePasswordRequest', 'proposedPassword'); + proposedPassword, + r'ChangePasswordRequest', + 'proposedPassword', + ); BuiltValueNullFieldError.checkNotNull( - accessToken, r'ChangePasswordRequest', 'accessToken'); + accessToken, + r'ChangePasswordRequest', + 'accessToken', + ); } @override ChangePasswordRequest rebuild( - void Function(ChangePasswordRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ChangePasswordRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ChangePasswordRequestBuilder toBuilder() => @@ -106,14 +115,24 @@ class ChangePasswordRequestBuilder ChangePasswordRequest build() => _build(); _$ChangePasswordRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ChangePasswordRequest._( previousPassword: BuiltValueNullFieldError.checkNotNull( - previousPassword, r'ChangePasswordRequest', 'previousPassword'), + previousPassword, + r'ChangePasswordRequest', + 'previousPassword', + ), proposedPassword: BuiltValueNullFieldError.checkNotNull( - proposedPassword, r'ChangePasswordRequest', 'proposedPassword'), + proposedPassword, + r'ChangePasswordRequest', + 'proposedPassword', + ), accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'ChangePasswordRequest', 'accessToken'), + accessToken, + r'ChangePasswordRequest', + 'accessToken', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.dart index 4dfb38ac75..1a44fe3e39 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.dart @@ -22,9 +22,9 @@ abstract class ChangePasswordResponse } /// The response from the server to the change password request. - factory ChangePasswordResponse.build( - [void Function(ChangePasswordResponseBuilder) updates]) = - _$ChangePasswordResponse; + factory ChangePasswordResponse.build([ + void Function(ChangePasswordResponseBuilder) updates, + ]) = _$ChangePasswordResponse; const ChangePasswordResponse._(); @@ -32,8 +32,7 @@ abstract class ChangePasswordResponse factory ChangePasswordResponse.fromResponse( ChangePasswordResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ChangePasswordResponseAwsJson11Serializer()]; @@ -51,21 +50,18 @@ abstract class ChangePasswordResponse class ChangePasswordResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ChangePasswordResponseAwsJson11Serializer() - : super('ChangePasswordResponse'); + : super('ChangePasswordResponse'); @override Iterable get types => const [ - ChangePasswordResponse, - _$ChangePasswordResponse, - ]; + ChangePasswordResponse, + _$ChangePasswordResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ChangePasswordResponse deserialize( @@ -81,6 +77,5 @@ class ChangePasswordResponseAwsJson11Serializer Serializers serializers, ChangePasswordResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.g.dart index fca40a7692..8b4f0b2232 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/change_password_response.g.dart @@ -7,16 +7,16 @@ part of 'change_password_response.dart'; // ************************************************************************** class _$ChangePasswordResponse extends ChangePasswordResponse { - factory _$ChangePasswordResponse( - [void Function(ChangePasswordResponseBuilder)? updates]) => - (new ChangePasswordResponseBuilder()..update(updates))._build(); + factory _$ChangePasswordResponse([ + void Function(ChangePasswordResponseBuilder)? updates, + ]) => (new ChangePasswordResponseBuilder()..update(updates))._build(); _$ChangePasswordResponse._() : super._(); @override ChangePasswordResponse rebuild( - void Function(ChangePasswordResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ChangePasswordResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ChangePasswordResponseBuilder toBuilder() => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.dart index 2017a74f76..cdf63048d8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.dart @@ -29,9 +29,9 @@ abstract class CodeDeliveryDetailsType } /// The delivery details for an email or SMS message that Amazon Cognito sent for authentication or verification. - factory CodeDeliveryDetailsType.build( - [void Function(CodeDeliveryDetailsTypeBuilder) updates]) = - _$CodeDeliveryDetailsType; + factory CodeDeliveryDetailsType.build([ + void Function(CodeDeliveryDetailsTypeBuilder) updates, + ]) = _$CodeDeliveryDetailsType; const CodeDeliveryDetailsType._(); @@ -47,27 +47,15 @@ abstract class CodeDeliveryDetailsType /// The name of the attribute that Amazon Cognito verifies with the code. String? get attributeName; @override - List get props => [ - destination, - deliveryMedium, - attributeName, - ]; + List get props => [destination, deliveryMedium, attributeName]; @override String toString() { - final helper = newBuiltValueToStringHelper('CodeDeliveryDetailsType') - ..add( - 'destination', - destination, - ) - ..add( - 'deliveryMedium', - deliveryMedium, - ) - ..add( - 'attributeName', - attributeName, - ); + final helper = + newBuiltValueToStringHelper('CodeDeliveryDetailsType') + ..add('destination', destination) + ..add('deliveryMedium', deliveryMedium) + ..add('attributeName', attributeName); return helper.toString(); } } @@ -75,21 +63,18 @@ abstract class CodeDeliveryDetailsType class CodeDeliveryDetailsTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const CodeDeliveryDetailsTypeAwsJson11Serializer() - : super('CodeDeliveryDetailsType'); + : super('CodeDeliveryDetailsType'); @override Iterable get types => const [ - CodeDeliveryDetailsType, - _$CodeDeliveryDetailsType, - ]; + CodeDeliveryDetailsType, + _$CodeDeliveryDetailsType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override CodeDeliveryDetailsType deserialize( @@ -108,20 +93,26 @@ class CodeDeliveryDetailsTypeAwsJson11Serializer } switch (key) { case 'Destination': - result.destination = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.destination = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeliveryMedium': - result.deliveryMedium = (serializers.deserialize( - value, - specifiedType: const FullType(DeliveryMediumType), - ) as DeliveryMediumType); + result.deliveryMedium = + (serializers.deserialize( + value, + specifiedType: const FullType(DeliveryMediumType), + ) + as DeliveryMediumType); case 'AttributeName': - result.attributeName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attributeName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -138,31 +129,37 @@ class CodeDeliveryDetailsTypeAwsJson11Serializer final CodeDeliveryDetailsType( :destination, :deliveryMedium, - :attributeName + :attributeName, ) = object; if (destination != null) { result$ ..add('Destination') - ..add(serializers.serialize( - destination, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + destination, + specifiedType: const FullType(String), + ), + ); } if (deliveryMedium != null) { result$ ..add('DeliveryMedium') - ..add(serializers.serialize( - deliveryMedium, - specifiedType: const FullType(DeliveryMediumType), - )); + ..add( + serializers.serialize( + deliveryMedium, + specifiedType: const FullType(DeliveryMediumType), + ), + ); } if (attributeName != null) { result$ ..add('AttributeName') - ..add(serializers.serialize( - attributeName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + attributeName, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.g.dart index 71bdc6c091..ce35da2651 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_details_type.g.dart @@ -14,18 +14,20 @@ class _$CodeDeliveryDetailsType extends CodeDeliveryDetailsType { @override final String? attributeName; - factory _$CodeDeliveryDetailsType( - [void Function(CodeDeliveryDetailsTypeBuilder)? updates]) => - (new CodeDeliveryDetailsTypeBuilder()..update(updates))._build(); + factory _$CodeDeliveryDetailsType([ + void Function(CodeDeliveryDetailsTypeBuilder)? updates, + ]) => (new CodeDeliveryDetailsTypeBuilder()..update(updates))._build(); - _$CodeDeliveryDetailsType._( - {this.destination, this.deliveryMedium, this.attributeName}) - : super._(); + _$CodeDeliveryDetailsType._({ + this.destination, + this.deliveryMedium, + this.attributeName, + }) : super._(); @override CodeDeliveryDetailsType rebuild( - void Function(CodeDeliveryDetailsTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CodeDeliveryDetailsTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CodeDeliveryDetailsTypeBuilder toBuilder() => @@ -98,7 +100,8 @@ class CodeDeliveryDetailsTypeBuilder CodeDeliveryDetailsType build() => _build(); _$CodeDeliveryDetailsType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CodeDeliveryDetailsType._( destination: destination, deliveryMedium: deliveryMedium, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.dart index f3a73bfb96..60ab2e88e6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.dart @@ -12,11 +12,12 @@ part 'code_delivery_failure_exception.g.dart'; /// This exception is thrown when a verification code fails to deliver successfully. abstract class CodeDeliveryFailureException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + CodeDeliveryFailureException, + CodeDeliveryFailureExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when a verification code fails to deliver successfully. factory CodeDeliveryFailureException({String? message}) { @@ -24,9 +25,9 @@ abstract class CodeDeliveryFailureException } /// This exception is thrown when a verification code fails to deliver successfully. - factory CodeDeliveryFailureException.build( - [void Function(CodeDeliveryFailureExceptionBuilder) updates]) = - _$CodeDeliveryFailureException; + factory CodeDeliveryFailureException.build([ + void Function(CodeDeliveryFailureExceptionBuilder) updates, + ]) = _$CodeDeliveryFailureException; const CodeDeliveryFailureException._(); @@ -34,22 +35,21 @@ abstract class CodeDeliveryFailureException factory CodeDeliveryFailureException.fromResponse( CodeDeliveryFailureException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [CodeDeliveryFailureExceptionAwsJson11Serializer()]; + serializers = [CodeDeliveryFailureExceptionAwsJson11Serializer()]; /// The message sent when a verification code fails to deliver successfully. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeDeliveryFailureException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeDeliveryFailureException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -70,10 +70,7 @@ abstract class CodeDeliveryFailureException @override String toString() { final helper = newBuiltValueToStringHelper('CodeDeliveryFailureException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -81,21 +78,18 @@ abstract class CodeDeliveryFailureException class CodeDeliveryFailureExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const CodeDeliveryFailureExceptionAwsJson11Serializer() - : super('CodeDeliveryFailureException'); + : super('CodeDeliveryFailureException'); @override Iterable get types => const [ - CodeDeliveryFailureException, - _$CodeDeliveryFailureException, - ]; + CodeDeliveryFailureException, + _$CodeDeliveryFailureException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override CodeDeliveryFailureException deserialize( @@ -114,10 +108,12 @@ class CodeDeliveryFailureExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,10 +131,9 @@ class CodeDeliveryFailureExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.g.dart index 2a2df53f42..afa5dfbd59 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_delivery_failure_exception.g.dart @@ -12,16 +12,16 @@ class _$CodeDeliveryFailureException extends CodeDeliveryFailureException { @override final Map? headers; - factory _$CodeDeliveryFailureException( - [void Function(CodeDeliveryFailureExceptionBuilder)? updates]) => - (new CodeDeliveryFailureExceptionBuilder()..update(updates))._build(); + factory _$CodeDeliveryFailureException([ + void Function(CodeDeliveryFailureExceptionBuilder)? updates, + ]) => (new CodeDeliveryFailureExceptionBuilder()..update(updates))._build(); _$CodeDeliveryFailureException._({this.message, this.headers}) : super._(); @override CodeDeliveryFailureException rebuild( - void Function(CodeDeliveryFailureExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CodeDeliveryFailureExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CodeDeliveryFailureExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$CodeDeliveryFailureException extends CodeDeliveryFailureException { class CodeDeliveryFailureExceptionBuilder implements - Builder { + Builder< + CodeDeliveryFailureException, + CodeDeliveryFailureExceptionBuilder + > { _$CodeDeliveryFailureException? _$v; String? _message; @@ -83,7 +85,8 @@ class CodeDeliveryFailureExceptionBuilder CodeDeliveryFailureException build() => _build(); _$CodeDeliveryFailureException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CodeDeliveryFailureException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.dart index 40d59d121e..b953e437cf 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.dart @@ -22,9 +22,9 @@ abstract class CodeMismatchException } /// This exception is thrown if the provided code doesn't match what the server was expecting. - factory CodeMismatchException.build( - [void Function(CodeMismatchExceptionBuilder) updates]) = - _$CodeMismatchException; + factory CodeMismatchException.build([ + void Function(CodeMismatchExceptionBuilder) updates, + ]) = _$CodeMismatchException; const CodeMismatchException._(); @@ -32,13 +32,12 @@ abstract class CodeMismatchException factory CodeMismatchException.fromResponse( CodeMismatchException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - CodeMismatchExceptionAwsJson11Serializer() + CodeMismatchExceptionAwsJson11Serializer(), ]; /// The message provided when the code mismatch exception is thrown. @@ -46,9 +45,9 @@ abstract class CodeMismatchException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeMismatchException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeMismatchException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,10 +68,7 @@ abstract class CodeMismatchException @override String toString() { final helper = newBuiltValueToStringHelper('CodeMismatchException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,21 +76,18 @@ abstract class CodeMismatchException class CodeMismatchExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const CodeMismatchExceptionAwsJson11Serializer() - : super('CodeMismatchException'); + : super('CodeMismatchException'); @override Iterable get types => const [ - CodeMismatchException, - _$CodeMismatchException, - ]; + CodeMismatchException, + _$CodeMismatchException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override CodeMismatchException deserialize( @@ -113,10 +106,12 @@ class CodeMismatchExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,10 +129,9 @@ class CodeMismatchExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.g.dart index b1d3245492..989052f5fe 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/code_mismatch_exception.g.dart @@ -12,16 +12,16 @@ class _$CodeMismatchException extends CodeMismatchException { @override final Map? headers; - factory _$CodeMismatchException( - [void Function(CodeMismatchExceptionBuilder)? updates]) => - (new CodeMismatchExceptionBuilder()..update(updates))._build(); + factory _$CodeMismatchException([ + void Function(CodeMismatchExceptionBuilder)? updates, + ]) => (new CodeMismatchExceptionBuilder()..update(updates))._build(); _$CodeMismatchException._({this.message, this.headers}) : super._(); @override CodeMismatchException rebuild( - void Function(CodeMismatchExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CodeMismatchExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CodeMismatchExceptionBuilder toBuilder() => @@ -81,11 +81,9 @@ class CodeMismatchExceptionBuilder CodeMismatchException build() => _build(); _$CodeMismatchException _build() { - final _$result = _$v ?? - new _$CodeMismatchException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$CodeMismatchException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.dart index a93d170315..eff8b8462b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.dart @@ -12,11 +12,12 @@ part 'concurrent_modification_exception.g.dart'; /// This exception is thrown if two or more modifications are happening concurrently. abstract class ConcurrentModificationException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + ConcurrentModificationException, + ConcurrentModificationExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown if two or more modifications are happening concurrently. factory ConcurrentModificationException({String? message}) { @@ -24,9 +25,9 @@ abstract class ConcurrentModificationException } /// This exception is thrown if two or more modifications are happening concurrently. - factory ConcurrentModificationException.build( - [void Function(ConcurrentModificationExceptionBuilder) updates]) = - _$ConcurrentModificationException; + factory ConcurrentModificationException.build([ + void Function(ConcurrentModificationExceptionBuilder) updates, + ]) = _$ConcurrentModificationException; const ConcurrentModificationException._(); @@ -34,22 +35,21 @@ abstract class ConcurrentModificationException factory ConcurrentModificationException.fromResponse( ConcurrentModificationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ConcurrentModificationExceptionAwsJson11Serializer()]; + serializers = [ConcurrentModificationExceptionAwsJson11Serializer()]; /// The message provided when the concurrent exception is thrown. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ConcurrentModificationException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ConcurrentModificationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,12 +69,9 @@ abstract class ConcurrentModificationException @override String toString() { - final helper = - newBuiltValueToStringHelper('ConcurrentModificationException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'ConcurrentModificationException', + )..add('message', message); return helper.toString(); } } @@ -82,21 +79,18 @@ abstract class ConcurrentModificationException class ConcurrentModificationExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ConcurrentModificationExceptionAwsJson11Serializer() - : super('ConcurrentModificationException'); + : super('ConcurrentModificationException'); @override Iterable get types => const [ - ConcurrentModificationException, - _$ConcurrentModificationException, - ]; + ConcurrentModificationException, + _$ConcurrentModificationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ConcurrentModificationException deserialize( @@ -115,10 +109,12 @@ class ConcurrentModificationExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -136,10 +132,9 @@ class ConcurrentModificationExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.g.dart index 3e5e195e88..b64d7ca6ec 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/concurrent_modification_exception.g.dart @@ -13,16 +13,17 @@ class _$ConcurrentModificationException @override final Map? headers; - factory _$ConcurrentModificationException( - [void Function(ConcurrentModificationExceptionBuilder)? updates]) => + factory _$ConcurrentModificationException([ + void Function(ConcurrentModificationExceptionBuilder)? updates, + ]) => (new ConcurrentModificationExceptionBuilder()..update(updates))._build(); _$ConcurrentModificationException._({this.message, this.headers}) : super._(); @override ConcurrentModificationException rebuild( - void Function(ConcurrentModificationExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConcurrentModificationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConcurrentModificationExceptionBuilder toBuilder() => @@ -45,8 +46,10 @@ class _$ConcurrentModificationException class ConcurrentModificationExceptionBuilder implements - Builder { + Builder< + ConcurrentModificationException, + ConcurrentModificationExceptionBuilder + > { _$ConcurrentModificationException? _$v; String? _message; @@ -84,7 +87,8 @@ class ConcurrentModificationExceptionBuilder ConcurrentModificationException build() => _build(); _$ConcurrentModificationException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConcurrentModificationException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.dart index 36ec585c57..3904b4c0bb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.dart @@ -33,9 +33,9 @@ abstract class ConfirmDeviceRequest } /// Confirms the device request. - factory ConfirmDeviceRequest.build( - [void Function(ConfirmDeviceRequestBuilder) updates]) = - _$ConfirmDeviceRequest; + factory ConfirmDeviceRequest.build([ + void Function(ConfirmDeviceRequestBuilder) updates, + ]) = _$ConfirmDeviceRequest; const ConfirmDeviceRequest._(); @@ -43,11 +43,10 @@ abstract class ConfirmDeviceRequest ConfirmDeviceRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - ConfirmDeviceRequestAwsJson11Serializer() + ConfirmDeviceRequestAwsJson11Serializer(), ]; /// A valid access token that Amazon Cognito issued to the user whose device you want to confirm. @@ -66,31 +65,20 @@ abstract class ConfirmDeviceRequest @override List get props => [ - accessToken, - deviceKey, - deviceSecretVerifierConfig, - deviceName, - ]; + accessToken, + deviceKey, + deviceSecretVerifierConfig, + deviceName, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ConfirmDeviceRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'deviceKey', - deviceKey, - ) - ..add( - 'deviceSecretVerifierConfig', - deviceSecretVerifierConfig, - ) - ..add( - 'deviceName', - deviceName, - ); + final helper = + newBuiltValueToStringHelper('ConfirmDeviceRequest') + ..add('accessToken', '***SENSITIVE***') + ..add('deviceKey', deviceKey) + ..add('deviceSecretVerifierConfig', deviceSecretVerifierConfig) + ..add('deviceName', deviceName); return helper.toString(); } } @@ -98,21 +86,18 @@ abstract class ConfirmDeviceRequest class ConfirmDeviceRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const ConfirmDeviceRequestAwsJson11Serializer() - : super('ConfirmDeviceRequest'); + : super('ConfirmDeviceRequest'); @override Iterable get types => const [ - ConfirmDeviceRequest, - _$ConfirmDeviceRequest, - ]; + ConfirmDeviceRequest, + _$ConfirmDeviceRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ConfirmDeviceRequest deserialize( @@ -131,25 +116,34 @@ class ConfirmDeviceRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceKey': - result.deviceKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceSecretVerifierConfig': - result.deviceSecretVerifierConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(DeviceSecretVerifierConfigType), - ) as DeviceSecretVerifierConfigType)); + result.deviceSecretVerifierConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(DeviceSecretVerifierConfigType), + ) + as DeviceSecretVerifierConfigType), + ); case 'DeviceName': - result.deviceName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -167,35 +161,33 @@ class ConfirmDeviceRequestAwsJson11Serializer :accessToken, :deviceKey, :deviceSecretVerifierConfig, - :deviceName + :deviceName, ) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), 'DeviceKey', - serializers.serialize( - deviceKey, - specifiedType: const FullType(String), - ), + serializers.serialize(deviceKey, specifiedType: const FullType(String)), ]); if (deviceSecretVerifierConfig != null) { result$ ..add('DeviceSecretVerifierConfig') - ..add(serializers.serialize( - deviceSecretVerifierConfig, - specifiedType: const FullType(DeviceSecretVerifierConfigType), - )); + ..add( + serializers.serialize( + deviceSecretVerifierConfig, + specifiedType: const FullType(DeviceSecretVerifierConfigType), + ), + ); } if (deviceName != null) { result$ ..add('DeviceName') - ..add(serializers.serialize( - deviceName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + deviceName, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.g.dart index 8b0ad926a8..7f62a6ecc1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_request.g.dart @@ -16,26 +16,32 @@ class _$ConfirmDeviceRequest extends ConfirmDeviceRequest { @override final String? deviceName; - factory _$ConfirmDeviceRequest( - [void Function(ConfirmDeviceRequestBuilder)? updates]) => - (new ConfirmDeviceRequestBuilder()..update(updates))._build(); - - _$ConfirmDeviceRequest._( - {required this.accessToken, - required this.deviceKey, - this.deviceSecretVerifierConfig, - this.deviceName}) - : super._() { + factory _$ConfirmDeviceRequest([ + void Function(ConfirmDeviceRequestBuilder)? updates, + ]) => (new ConfirmDeviceRequestBuilder()..update(updates))._build(); + + _$ConfirmDeviceRequest._({ + required this.accessToken, + required this.deviceKey, + this.deviceSecretVerifierConfig, + this.deviceName, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'ConfirmDeviceRequest', 'accessToken'); + accessToken, + r'ConfirmDeviceRequest', + 'accessToken', + ); BuiltValueNullFieldError.checkNotNull( - deviceKey, r'ConfirmDeviceRequest', 'deviceKey'); + deviceKey, + r'ConfirmDeviceRequest', + 'deviceKey', + ); } @override ConfirmDeviceRequest rebuild( - void Function(ConfirmDeviceRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmDeviceRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmDeviceRequestBuilder toBuilder() => @@ -80,8 +86,8 @@ class ConfirmDeviceRequestBuilder _$this._deviceSecretVerifierConfig ??= new DeviceSecretVerifierConfigTypeBuilder(); set deviceSecretVerifierConfig( - DeviceSecretVerifierConfigTypeBuilder? deviceSecretVerifierConfig) => - _$this._deviceSecretVerifierConfig = deviceSecretVerifierConfig; + DeviceSecretVerifierConfigTypeBuilder? deviceSecretVerifierConfig, + ) => _$this._deviceSecretVerifierConfig = deviceSecretVerifierConfig; String? _deviceName; String? get deviceName => _$this._deviceName; @@ -118,12 +124,19 @@ class ConfirmDeviceRequestBuilder _$ConfirmDeviceRequest _build() { _$ConfirmDeviceRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ConfirmDeviceRequest._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'ConfirmDeviceRequest', 'accessToken'), + accessToken, + r'ConfirmDeviceRequest', + 'accessToken', + ), deviceKey: BuiltValueNullFieldError.checkNotNull( - deviceKey, r'ConfirmDeviceRequest', 'deviceKey'), + deviceKey, + r'ConfirmDeviceRequest', + 'deviceKey', + ), deviceSecretVerifierConfig: _deviceSecretVerifierConfig?.build(), deviceName: deviceName, ); @@ -134,7 +147,10 @@ class ConfirmDeviceRequestBuilder _deviceSecretVerifierConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ConfirmDeviceRequest', _$failedField, e.toString()); + r'ConfirmDeviceRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.dart index 742d7b7880..4162eac33e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.dart @@ -18,13 +18,14 @@ abstract class ConfirmDeviceResponse factory ConfirmDeviceResponse({bool? userConfirmationNecessary}) { userConfirmationNecessary ??= false; return _$ConfirmDeviceResponse._( - userConfirmationNecessary: userConfirmationNecessary); + userConfirmationNecessary: userConfirmationNecessary, + ); } /// Confirms the device response. - factory ConfirmDeviceResponse.build( - [void Function(ConfirmDeviceResponseBuilder) updates]) = - _$ConfirmDeviceResponse; + factory ConfirmDeviceResponse.build([ + void Function(ConfirmDeviceResponseBuilder) updates, + ]) = _$ConfirmDeviceResponse; const ConfirmDeviceResponse._(); @@ -32,11 +33,10 @@ abstract class ConfirmDeviceResponse factory ConfirmDeviceResponse.fromResponse( ConfirmDeviceResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - ConfirmDeviceResponseAwsJson11Serializer() + ConfirmDeviceResponseAwsJson11Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -52,10 +52,7 @@ abstract class ConfirmDeviceResponse @override String toString() { final helper = newBuiltValueToStringHelper('ConfirmDeviceResponse') - ..add( - 'userConfirmationNecessary', - userConfirmationNecessary, - ); + ..add('userConfirmationNecessary', userConfirmationNecessary); return helper.toString(); } } @@ -63,21 +60,18 @@ abstract class ConfirmDeviceResponse class ConfirmDeviceResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ConfirmDeviceResponseAwsJson11Serializer() - : super('ConfirmDeviceResponse'); + : super('ConfirmDeviceResponse'); @override Iterable get types => const [ - ConfirmDeviceResponse, - _$ConfirmDeviceResponse, - ]; + ConfirmDeviceResponse, + _$ConfirmDeviceResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ConfirmDeviceResponse deserialize( @@ -96,10 +90,12 @@ class ConfirmDeviceResponseAwsJson11Serializer } switch (key) { case 'UserConfirmationNecessary': - result.userConfirmationNecessary = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.userConfirmationNecessary = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.g.dart index f8b554048b..b10fd9debc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_device_response.g.dart @@ -10,20 +10,23 @@ class _$ConfirmDeviceResponse extends ConfirmDeviceResponse { @override final bool userConfirmationNecessary; - factory _$ConfirmDeviceResponse( - [void Function(ConfirmDeviceResponseBuilder)? updates]) => - (new ConfirmDeviceResponseBuilder()..update(updates))._build(); + factory _$ConfirmDeviceResponse([ + void Function(ConfirmDeviceResponseBuilder)? updates, + ]) => (new ConfirmDeviceResponseBuilder()..update(updates))._build(); _$ConfirmDeviceResponse._({required this.userConfirmationNecessary}) - : super._() { - BuiltValueNullFieldError.checkNotNull(userConfirmationNecessary, - r'ConfirmDeviceResponse', 'userConfirmationNecessary'); + : super._() { + BuiltValueNullFieldError.checkNotNull( + userConfirmationNecessary, + r'ConfirmDeviceResponse', + 'userConfirmationNecessary', + ); } @override ConfirmDeviceResponse rebuild( - void Function(ConfirmDeviceResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmDeviceResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmDeviceResponseBuilder toBuilder() => @@ -82,12 +85,14 @@ class ConfirmDeviceResponseBuilder ConfirmDeviceResponse build() => _build(); _$ConfirmDeviceResponse _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConfirmDeviceResponse._( userConfirmationNecessary: BuiltValueNullFieldError.checkNotNull( - userConfirmationNecessary, - r'ConfirmDeviceResponse', - 'userConfirmationNecessary'), + userConfirmationNecessary, + r'ConfirmDeviceResponse', + 'userConfirmationNecessary', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.dart index 7d2eae3eb4..ff380a5404 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.dart @@ -19,8 +19,10 @@ abstract class ConfirmForgotPasswordRequest _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + ConfirmForgotPasswordRequest, + ConfirmForgotPasswordRequestBuilder + > { /// The request representing the confirmation for a password reset. factory ConfirmForgotPasswordRequest({ required String clientId, @@ -46,9 +48,9 @@ abstract class ConfirmForgotPasswordRequest } /// The request representing the confirmation for a password reset. - factory ConfirmForgotPasswordRequest.build( - [void Function(ConfirmForgotPasswordRequestBuilder) updates]) = - _$ConfirmForgotPasswordRequest; + factory ConfirmForgotPasswordRequest.build([ + void Function(ConfirmForgotPasswordRequestBuilder) updates, + ]) = _$ConfirmForgotPasswordRequest; const ConfirmForgotPasswordRequest._(); @@ -56,11 +58,10 @@ abstract class ConfirmForgotPasswordRequest ConfirmForgotPasswordRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [ConfirmForgotPasswordRequestAwsJson11Serializer()]; + serializers = [ConfirmForgotPasswordRequestAwsJson11Serializer()]; /// The app client ID of the app associated with the user pool. String get clientId; @@ -102,51 +103,28 @@ abstract class ConfirmForgotPasswordRequest @override List get props => [ - clientId, - secretHash, - username, - confirmationCode, - password, - analyticsMetadata, - userContextData, - clientMetadata, - ]; + clientId, + secretHash, + username, + confirmationCode, + password, + analyticsMetadata, + userContextData, + clientMetadata, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ConfirmForgotPasswordRequest') - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'secretHash', - '***SENSITIVE***', - ) - ..add( - 'username', - '***SENSITIVE***', - ) - ..add( - 'confirmationCode', - confirmationCode, - ) - ..add( - 'password', - '***SENSITIVE***', - ) - ..add( - 'analyticsMetadata', - analyticsMetadata, - ) - ..add( - 'userContextData', - '***SENSITIVE***', - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + final helper = + newBuiltValueToStringHelper('ConfirmForgotPasswordRequest') + ..add('clientId', '***SENSITIVE***') + ..add('secretHash', '***SENSITIVE***') + ..add('username', '***SENSITIVE***') + ..add('confirmationCode', confirmationCode) + ..add('password', '***SENSITIVE***') + ..add('analyticsMetadata', analyticsMetadata) + ..add('userContextData', '***SENSITIVE***') + ..add('clientMetadata', clientMetadata); return helper.toString(); } } @@ -154,21 +132,18 @@ abstract class ConfirmForgotPasswordRequest class ConfirmForgotPasswordRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const ConfirmForgotPasswordRequestAwsJson11Serializer() - : super('ConfirmForgotPasswordRequest'); + : super('ConfirmForgotPasswordRequest'); @override Iterable get types => const [ - ConfirmForgotPasswordRequest, - _$ConfirmForgotPasswordRequest, - ]; + ConfirmForgotPasswordRequest, + _$ConfirmForgotPasswordRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ConfirmForgotPasswordRequest deserialize( @@ -187,51 +162,67 @@ class ConfirmForgotPasswordRequestAwsJson11Serializer } switch (key) { case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'SecretHash': - result.secretHash = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.secretHash = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Username': - result.username = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.username = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ConfirmationCode': - result.confirmationCode = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.confirmationCode = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Password': - result.password = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.password = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AnalyticsMetadata': - result.analyticsMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(AnalyticsMetadataType), - ) as AnalyticsMetadataType)); + result.analyticsMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AnalyticsMetadataType), + ) + as AnalyticsMetadataType), + ); case 'UserContextData': - result.userContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(UserContextDataType), - ) as UserContextDataType)); + result.userContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + ) + as UserContextDataType), + ); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -253,67 +244,63 @@ class ConfirmForgotPasswordRequestAwsJson11Serializer :password, :analyticsMetadata, :userContextData, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), 'Username', - serializers.serialize( - username, - specifiedType: const FullType(String), - ), + serializers.serialize(username, specifiedType: const FullType(String)), 'ConfirmationCode', serializers.serialize( confirmationCode, specifiedType: const FullType(String), ), 'Password', - serializers.serialize( - password, - specifiedType: const FullType(String), - ), + serializers.serialize(password, specifiedType: const FullType(String)), ]); if (secretHash != null) { result$ ..add('SecretHash') - ..add(serializers.serialize( - secretHash, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + secretHash, + specifiedType: const FullType(String), + ), + ); } if (analyticsMetadata != null) { result$ ..add('AnalyticsMetadata') - ..add(serializers.serialize( - analyticsMetadata, - specifiedType: const FullType(AnalyticsMetadataType), - )); + ..add( + serializers.serialize( + analyticsMetadata, + specifiedType: const FullType(AnalyticsMetadataType), + ), + ); } if (userContextData != null) { result$ ..add('UserContextData') - ..add(serializers.serialize( - userContextData, - specifiedType: const FullType(UserContextDataType), - )); + ..add( + serializers.serialize( + userContextData, + specifiedType: const FullType(UserContextDataType), + ), + ); } if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.g.dart index 5c90d45570..5924c42c93 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_request.g.dart @@ -24,34 +24,46 @@ class _$ConfirmForgotPasswordRequest extends ConfirmForgotPasswordRequest { @override final _i3.BuiltMap? clientMetadata; - factory _$ConfirmForgotPasswordRequest( - [void Function(ConfirmForgotPasswordRequestBuilder)? updates]) => - (new ConfirmForgotPasswordRequestBuilder()..update(updates))._build(); - - _$ConfirmForgotPasswordRequest._( - {required this.clientId, - this.secretHash, - required this.username, - required this.confirmationCode, - required this.password, - this.analyticsMetadata, - this.userContextData, - this.clientMetadata}) - : super._() { + factory _$ConfirmForgotPasswordRequest([ + void Function(ConfirmForgotPasswordRequestBuilder)? updates, + ]) => (new ConfirmForgotPasswordRequestBuilder()..update(updates))._build(); + + _$ConfirmForgotPasswordRequest._({ + required this.clientId, + this.secretHash, + required this.username, + required this.confirmationCode, + required this.password, + this.analyticsMetadata, + this.userContextData, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - clientId, r'ConfirmForgotPasswordRequest', 'clientId'); + clientId, + r'ConfirmForgotPasswordRequest', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - username, r'ConfirmForgotPasswordRequest', 'username'); + username, + r'ConfirmForgotPasswordRequest', + 'username', + ); BuiltValueNullFieldError.checkNotNull( - confirmationCode, r'ConfirmForgotPasswordRequest', 'confirmationCode'); + confirmationCode, + r'ConfirmForgotPasswordRequest', + 'confirmationCode', + ); BuiltValueNullFieldError.checkNotNull( - password, r'ConfirmForgotPasswordRequest', 'password'); + password, + r'ConfirmForgotPasswordRequest', + 'password', + ); } @override ConfirmForgotPasswordRequest rebuild( - void Function(ConfirmForgotPasswordRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmForgotPasswordRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmForgotPasswordRequestBuilder toBuilder() => @@ -89,8 +101,10 @@ class _$ConfirmForgotPasswordRequest extends ConfirmForgotPasswordRequest { class ConfirmForgotPasswordRequestBuilder implements - Builder { + Builder< + ConfirmForgotPasswordRequest, + ConfirmForgotPasswordRequestBuilder + > { _$ConfirmForgotPasswordRequest? _$v; String? _clientId; @@ -167,19 +181,30 @@ class ConfirmForgotPasswordRequestBuilder _$ConfirmForgotPasswordRequest _build() { _$ConfirmForgotPasswordRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ConfirmForgotPasswordRequest._( clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'ConfirmForgotPasswordRequest', 'clientId'), + clientId, + r'ConfirmForgotPasswordRequest', + 'clientId', + ), secretHash: secretHash, username: BuiltValueNullFieldError.checkNotNull( - username, r'ConfirmForgotPasswordRequest', 'username'), + username, + r'ConfirmForgotPasswordRequest', + 'username', + ), confirmationCode: BuiltValueNullFieldError.checkNotNull( - confirmationCode, - r'ConfirmForgotPasswordRequest', - 'confirmationCode'), + confirmationCode, + r'ConfirmForgotPasswordRequest', + 'confirmationCode', + ), password: BuiltValueNullFieldError.checkNotNull( - password, r'ConfirmForgotPasswordRequest', 'password'), + password, + r'ConfirmForgotPasswordRequest', + 'password', + ), analyticsMetadata: _analyticsMetadata?.build(), userContextData: _userContextData?.build(), clientMetadata: _clientMetadata?.build(), @@ -195,7 +220,10 @@ class ConfirmForgotPasswordRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ConfirmForgotPasswordRequest', _$failedField, e.toString()); + r'ConfirmForgotPasswordRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.dart index a4bd14e09b..b81cebd400 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.dart @@ -12,11 +12,12 @@ part 'confirm_forgot_password_response.g.dart'; /// The response from the server that results from a user's request to retrieve a forgotten password. abstract class ConfirmForgotPasswordResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + ConfirmForgotPasswordResponse, + ConfirmForgotPasswordResponseBuilder + >, _i2.EmptyPayload { /// The response from the server that results from a user's request to retrieve a forgotten password. factory ConfirmForgotPasswordResponse() { @@ -24,9 +25,9 @@ abstract class ConfirmForgotPasswordResponse } /// The response from the server that results from a user's request to retrieve a forgotten password. - factory ConfirmForgotPasswordResponse.build( - [void Function(ConfirmForgotPasswordResponseBuilder) updates]) = - _$ConfirmForgotPasswordResponse; + factory ConfirmForgotPasswordResponse.build([ + void Function(ConfirmForgotPasswordResponseBuilder) updates, + ]) = _$ConfirmForgotPasswordResponse; const ConfirmForgotPasswordResponse._(); @@ -34,11 +35,10 @@ abstract class ConfirmForgotPasswordResponse factory ConfirmForgotPasswordResponse.fromResponse( ConfirmForgotPasswordResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [ConfirmForgotPasswordResponseAwsJson11Serializer()]; + serializers = [ConfirmForgotPasswordResponseAwsJson11Serializer()]; @override List get props => []; @@ -53,21 +53,18 @@ abstract class ConfirmForgotPasswordResponse class ConfirmForgotPasswordResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ConfirmForgotPasswordResponseAwsJson11Serializer() - : super('ConfirmForgotPasswordResponse'); + : super('ConfirmForgotPasswordResponse'); @override Iterable get types => const [ - ConfirmForgotPasswordResponse, - _$ConfirmForgotPasswordResponse, - ]; + ConfirmForgotPasswordResponse, + _$ConfirmForgotPasswordResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ConfirmForgotPasswordResponse deserialize( @@ -83,6 +80,5 @@ class ConfirmForgotPasswordResponseAwsJson11Serializer Serializers serializers, ConfirmForgotPasswordResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.g.dart index f1d421d1c7..ff64379dd0 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_forgot_password_response.g.dart @@ -7,16 +7,16 @@ part of 'confirm_forgot_password_response.dart'; // ************************************************************************** class _$ConfirmForgotPasswordResponse extends ConfirmForgotPasswordResponse { - factory _$ConfirmForgotPasswordResponse( - [void Function(ConfirmForgotPasswordResponseBuilder)? updates]) => - (new ConfirmForgotPasswordResponseBuilder()..update(updates))._build(); + factory _$ConfirmForgotPasswordResponse([ + void Function(ConfirmForgotPasswordResponseBuilder)? updates, + ]) => (new ConfirmForgotPasswordResponseBuilder()..update(updates))._build(); _$ConfirmForgotPasswordResponse._() : super._(); @override ConfirmForgotPasswordResponse rebuild( - void Function(ConfirmForgotPasswordResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmForgotPasswordResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmForgotPasswordResponseBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$ConfirmForgotPasswordResponse extends ConfirmForgotPasswordResponse { class ConfirmForgotPasswordResponseBuilder implements - Builder { + Builder< + ConfirmForgotPasswordResponse, + ConfirmForgotPasswordResponseBuilder + > { _$ConfirmForgotPasswordResponse? _$v; ConfirmForgotPasswordResponseBuilder(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.dart index a3d08239b0..9ef37a32bf 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.dart @@ -45,9 +45,9 @@ abstract class ConfirmSignUpRequest } /// Represents the request to confirm registration of a user. - factory ConfirmSignUpRequest.build( - [void Function(ConfirmSignUpRequestBuilder) updates]) = - _$ConfirmSignUpRequest; + factory ConfirmSignUpRequest.build([ + void Function(ConfirmSignUpRequestBuilder) updates, + ]) = _$ConfirmSignUpRequest; const ConfirmSignUpRequest._(); @@ -55,11 +55,10 @@ abstract class ConfirmSignUpRequest ConfirmSignUpRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - ConfirmSignUpRequestAwsJson11Serializer() + ConfirmSignUpRequestAwsJson11Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -107,51 +106,28 @@ abstract class ConfirmSignUpRequest @override List get props => [ - clientId, - secretHash, - username, - confirmationCode, - forceAliasCreation, - analyticsMetadata, - userContextData, - clientMetadata, - ]; + clientId, + secretHash, + username, + confirmationCode, + forceAliasCreation, + analyticsMetadata, + userContextData, + clientMetadata, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ConfirmSignUpRequest') - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'secretHash', - '***SENSITIVE***', - ) - ..add( - 'username', - '***SENSITIVE***', - ) - ..add( - 'confirmationCode', - confirmationCode, - ) - ..add( - 'forceAliasCreation', - forceAliasCreation, - ) - ..add( - 'analyticsMetadata', - analyticsMetadata, - ) - ..add( - 'userContextData', - '***SENSITIVE***', - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + final helper = + newBuiltValueToStringHelper('ConfirmSignUpRequest') + ..add('clientId', '***SENSITIVE***') + ..add('secretHash', '***SENSITIVE***') + ..add('username', '***SENSITIVE***') + ..add('confirmationCode', confirmationCode) + ..add('forceAliasCreation', forceAliasCreation) + ..add('analyticsMetadata', analyticsMetadata) + ..add('userContextData', '***SENSITIVE***') + ..add('clientMetadata', clientMetadata); return helper.toString(); } } @@ -159,21 +135,18 @@ abstract class ConfirmSignUpRequest class ConfirmSignUpRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const ConfirmSignUpRequestAwsJson11Serializer() - : super('ConfirmSignUpRequest'); + : super('ConfirmSignUpRequest'); @override Iterable get types => const [ - ConfirmSignUpRequest, - _$ConfirmSignUpRequest, - ]; + ConfirmSignUpRequest, + _$ConfirmSignUpRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ConfirmSignUpRequest deserialize( @@ -192,51 +165,67 @@ class ConfirmSignUpRequestAwsJson11Serializer } switch (key) { case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'SecretHash': - result.secretHash = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.secretHash = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Username': - result.username = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.username = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ConfirmationCode': - result.confirmationCode = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.confirmationCode = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ForceAliasCreation': - result.forceAliasCreation = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.forceAliasCreation = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'AnalyticsMetadata': - result.analyticsMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(AnalyticsMetadataType), - ) as AnalyticsMetadataType)); + result.analyticsMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AnalyticsMetadataType), + ) + as AnalyticsMetadataType), + ); case 'UserContextData': - result.userContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(UserContextDataType), - ) as UserContextDataType)); + result.userContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + ) + as UserContextDataType), + ); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -258,19 +247,13 @@ class ConfirmSignUpRequestAwsJson11Serializer :forceAliasCreation, :analyticsMetadata, :userContextData, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), 'Username', - serializers.serialize( - username, - specifiedType: const FullType(String), - ), + serializers.serialize(username, specifiedType: const FullType(String)), 'ConfirmationCode', serializers.serialize( confirmationCode, @@ -285,40 +268,45 @@ class ConfirmSignUpRequestAwsJson11Serializer if (secretHash != null) { result$ ..add('SecretHash') - ..add(serializers.serialize( - secretHash, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + secretHash, + specifiedType: const FullType(String), + ), + ); } if (analyticsMetadata != null) { result$ ..add('AnalyticsMetadata') - ..add(serializers.serialize( - analyticsMetadata, - specifiedType: const FullType(AnalyticsMetadataType), - )); + ..add( + serializers.serialize( + analyticsMetadata, + specifiedType: const FullType(AnalyticsMetadataType), + ), + ); } if (userContextData != null) { result$ ..add('UserContextData') - ..add(serializers.serialize( - userContextData, - specifiedType: const FullType(UserContextDataType), - )); + ..add( + serializers.serialize( + userContextData, + specifiedType: const FullType(UserContextDataType), + ), + ); } if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.g.dart index 4da146077b..4cd964d398 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_request.g.dart @@ -24,34 +24,46 @@ class _$ConfirmSignUpRequest extends ConfirmSignUpRequest { @override final _i3.BuiltMap? clientMetadata; - factory _$ConfirmSignUpRequest( - [void Function(ConfirmSignUpRequestBuilder)? updates]) => - (new ConfirmSignUpRequestBuilder()..update(updates))._build(); - - _$ConfirmSignUpRequest._( - {required this.clientId, - this.secretHash, - required this.username, - required this.confirmationCode, - required this.forceAliasCreation, - this.analyticsMetadata, - this.userContextData, - this.clientMetadata}) - : super._() { + factory _$ConfirmSignUpRequest([ + void Function(ConfirmSignUpRequestBuilder)? updates, + ]) => (new ConfirmSignUpRequestBuilder()..update(updates))._build(); + + _$ConfirmSignUpRequest._({ + required this.clientId, + this.secretHash, + required this.username, + required this.confirmationCode, + required this.forceAliasCreation, + this.analyticsMetadata, + this.userContextData, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - clientId, r'ConfirmSignUpRequest', 'clientId'); + clientId, + r'ConfirmSignUpRequest', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - username, r'ConfirmSignUpRequest', 'username'); + username, + r'ConfirmSignUpRequest', + 'username', + ); BuiltValueNullFieldError.checkNotNull( - confirmationCode, r'ConfirmSignUpRequest', 'confirmationCode'); + confirmationCode, + r'ConfirmSignUpRequest', + 'confirmationCode', + ); BuiltValueNullFieldError.checkNotNull( - forceAliasCreation, r'ConfirmSignUpRequest', 'forceAliasCreation'); + forceAliasCreation, + r'ConfirmSignUpRequest', + 'forceAliasCreation', + ); } @override ConfirmSignUpRequest rebuild( - void Function(ConfirmSignUpRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmSignUpRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmSignUpRequestBuilder toBuilder() => @@ -168,19 +180,30 @@ class ConfirmSignUpRequestBuilder _$ConfirmSignUpRequest _build() { _$ConfirmSignUpRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ConfirmSignUpRequest._( clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'ConfirmSignUpRequest', 'clientId'), + clientId, + r'ConfirmSignUpRequest', + 'clientId', + ), secretHash: secretHash, username: BuiltValueNullFieldError.checkNotNull( - username, r'ConfirmSignUpRequest', 'username'), + username, + r'ConfirmSignUpRequest', + 'username', + ), confirmationCode: BuiltValueNullFieldError.checkNotNull( - confirmationCode, r'ConfirmSignUpRequest', 'confirmationCode'), + confirmationCode, + r'ConfirmSignUpRequest', + 'confirmationCode', + ), forceAliasCreation: BuiltValueNullFieldError.checkNotNull( - forceAliasCreation, - r'ConfirmSignUpRequest', - 'forceAliasCreation'), + forceAliasCreation, + r'ConfirmSignUpRequest', + 'forceAliasCreation', + ), analyticsMetadata: _analyticsMetadata?.build(), userContextData: _userContextData?.build(), clientMetadata: _clientMetadata?.build(), @@ -196,7 +219,10 @@ class ConfirmSignUpRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ConfirmSignUpRequest', _$failedField, e.toString()); + r'ConfirmSignUpRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.dart index caba28a5c6..c2298f3b26 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.dart @@ -22,9 +22,9 @@ abstract class ConfirmSignUpResponse } /// Represents the response from the server for the registration confirmation. - factory ConfirmSignUpResponse.build( - [void Function(ConfirmSignUpResponseBuilder) updates]) = - _$ConfirmSignUpResponse; + factory ConfirmSignUpResponse.build([ + void Function(ConfirmSignUpResponseBuilder) updates, + ]) = _$ConfirmSignUpResponse; const ConfirmSignUpResponse._(); @@ -32,11 +32,10 @@ abstract class ConfirmSignUpResponse factory ConfirmSignUpResponse.fromResponse( ConfirmSignUpResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - ConfirmSignUpResponseAwsJson11Serializer() + ConfirmSignUpResponseAwsJson11Serializer(), ]; @override @@ -52,21 +51,18 @@ abstract class ConfirmSignUpResponse class ConfirmSignUpResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ConfirmSignUpResponseAwsJson11Serializer() - : super('ConfirmSignUpResponse'); + : super('ConfirmSignUpResponse'); @override Iterable get types => const [ - ConfirmSignUpResponse, - _$ConfirmSignUpResponse, - ]; + ConfirmSignUpResponse, + _$ConfirmSignUpResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ConfirmSignUpResponse deserialize( @@ -82,6 +78,5 @@ class ConfirmSignUpResponseAwsJson11Serializer Serializers serializers, ConfirmSignUpResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.g.dart index f8146a1214..cef1786c25 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/confirm_sign_up_response.g.dart @@ -7,16 +7,16 @@ part of 'confirm_sign_up_response.dart'; // ************************************************************************** class _$ConfirmSignUpResponse extends ConfirmSignUpResponse { - factory _$ConfirmSignUpResponse( - [void Function(ConfirmSignUpResponseBuilder)? updates]) => - (new ConfirmSignUpResponseBuilder()..update(updates))._build(); + factory _$ConfirmSignUpResponse([ + void Function(ConfirmSignUpResponseBuilder)? updates, + ]) => (new ConfirmSignUpResponseBuilder()..update(updates))._build(); _$ConfirmSignUpResponse._() : super._(); @override ConfirmSignUpResponse rebuild( - void Function(ConfirmSignUpResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConfirmSignUpResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConfirmSignUpResponseBuilder toBuilder() => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.dart index 6da56f6fad..86c57a0c1a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.dart @@ -20,8 +20,9 @@ abstract class DeleteUserRequest } /// Represents the request to delete a user. - factory DeleteUserRequest.build( - [void Function(DeleteUserRequestBuilder) updates]) = _$DeleteUserRequest; + factory DeleteUserRequest.build([ + void Function(DeleteUserRequestBuilder) updates, + ]) = _$DeleteUserRequest; const DeleteUserRequest._(); @@ -29,11 +30,10 @@ abstract class DeleteUserRequest DeleteUserRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - DeleteUserRequestAwsJson11Serializer() + DeleteUserRequestAwsJson11Serializer(), ]; /// A valid access token that Amazon Cognito issued to the user whose user profile you want to delete. @@ -47,10 +47,7 @@ abstract class DeleteUserRequest @override String toString() { final helper = newBuiltValueToStringHelper('DeleteUserRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ); + ..add('accessToken', '***SENSITIVE***'); return helper.toString(); } } @@ -60,18 +57,12 @@ class DeleteUserRequestAwsJson11Serializer const DeleteUserRequestAwsJson11Serializer() : super('DeleteUserRequest'); @override - Iterable get types => const [ - DeleteUserRequest, - _$DeleteUserRequest, - ]; + Iterable get types => const [DeleteUserRequest, _$DeleteUserRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override DeleteUserRequest deserialize( @@ -90,10 +81,12 @@ class DeleteUserRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -110,10 +103,7 @@ class DeleteUserRequestAwsJson11Serializer final DeleteUserRequest(:accessToken) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.g.dart index fdeec45210..cf44a164c4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delete_user_request.g.dart @@ -10,13 +10,16 @@ class _$DeleteUserRequest extends DeleteUserRequest { @override final String accessToken; - factory _$DeleteUserRequest( - [void Function(DeleteUserRequestBuilder)? updates]) => - (new DeleteUserRequestBuilder()..update(updates))._build(); + factory _$DeleteUserRequest([ + void Function(DeleteUserRequestBuilder)? updates, + ]) => (new DeleteUserRequestBuilder()..update(updates))._build(); _$DeleteUserRequest._({required this.accessToken}) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'DeleteUserRequest', 'accessToken'); + accessToken, + r'DeleteUserRequest', + 'accessToken', + ); } @override @@ -76,10 +79,14 @@ class DeleteUserRequestBuilder DeleteUserRequest build() => _build(); _$DeleteUserRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DeleteUserRequest._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'DeleteUserRequest', 'accessToken'), + accessToken, + r'DeleteUserRequest', + 'accessToken', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delivery_medium_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delivery_medium_type.dart index f2d8b3b06b..72cf2f04a4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delivery_medium_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/delivery_medium_type.dart @@ -6,25 +6,13 @@ library amplify_auth_cognito_dart.cognito_identity_provider.model.delivery_mediu import 'package:smithy/smithy.dart' as _i1; class DeliveryMediumType extends _i1.SmithyEnum { - const DeliveryMediumType._( - super.index, - super.name, - super.value, - ); + const DeliveryMediumType._(super.index, super.name, super.value); const DeliveryMediumType._sdkUnknown(super.value) : super.sdkUnknown(); - static const email = DeliveryMediumType._( - 0, - 'EMAIL', - 'EMAIL', - ); + static const email = DeliveryMediumType._(0, 'EMAIL', 'EMAIL'); - static const sms = DeliveryMediumType._( - 1, - 'SMS', - 'SMS', - ); + static const sms = DeliveryMediumType._(1, 'SMS', 'SMS'); /// All values of [DeliveryMediumType]. static const values = [ @@ -38,12 +26,9 @@ class DeliveryMediumType extends _i1.SmithyEnum { values: values, sdkUnknown: DeliveryMediumType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_remembered_status_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_remembered_status_type.dart index 6ea59d3c6e..f1e0cbc1ea 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_remembered_status_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_remembered_status_type.dart @@ -7,14 +7,10 @@ import 'package:smithy/smithy.dart' as _i1; class DeviceRememberedStatusType extends _i1.SmithyEnum { - const DeviceRememberedStatusType._( - super.index, - super.name, - super.value, - ); + const DeviceRememberedStatusType._(super.index, super.name, super.value); const DeviceRememberedStatusType._sdkUnknown(super.value) - : super.sdkUnknown(); + : super.sdkUnknown(); static const notRemembered = DeviceRememberedStatusType._( 0, @@ -35,18 +31,15 @@ class DeviceRememberedStatusType ]; static const List<_i1.SmithySerializer> - serializers = [ + serializers = [ _i1.SmithyEnumSerializer( 'DeviceRememberedStatusType', values: values, sdkUnknown: DeviceRememberedStatusType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.dart index b001642117..511671c29d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.dart @@ -12,11 +12,12 @@ part 'device_secret_verifier_config_type.g.dart'; /// The device verifier against which it is authenticated. abstract class DeviceSecretVerifierConfigType - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + DeviceSecretVerifierConfigType, + DeviceSecretVerifierConfigTypeBuilder + > { /// The device verifier against which it is authenticated. factory DeviceSecretVerifierConfigType({ String? passwordVerifier, @@ -29,14 +30,14 @@ abstract class DeviceSecretVerifierConfigType } /// The device verifier against which it is authenticated. - factory DeviceSecretVerifierConfigType.build( - [void Function(DeviceSecretVerifierConfigTypeBuilder) updates]) = - _$DeviceSecretVerifierConfigType; + factory DeviceSecretVerifierConfigType.build([ + void Function(DeviceSecretVerifierConfigTypeBuilder) updates, + ]) = _$DeviceSecretVerifierConfigType; const DeviceSecretVerifierConfigType._(); static const List<_i2.SmithySerializer> - serializers = [DeviceSecretVerifierConfigTypeAwsJson11Serializer()]; + serializers = [DeviceSecretVerifierConfigTypeAwsJson11Serializer()]; /// The password verifier. String? get passwordVerifier; @@ -44,22 +45,14 @@ abstract class DeviceSecretVerifierConfigType /// The [salt](https://en.wikipedia.org/wiki/Salt_(cryptography)) String? get salt; @override - List get props => [ - passwordVerifier, - salt, - ]; + List get props => [passwordVerifier, salt]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeviceSecretVerifierConfigType') - ..add( - 'passwordVerifier', - passwordVerifier, - ) - ..add( - 'salt', - salt, - ); + final helper = + newBuiltValueToStringHelper('DeviceSecretVerifierConfigType') + ..add('passwordVerifier', passwordVerifier) + ..add('salt', salt); return helper.toString(); } } @@ -67,21 +60,18 @@ abstract class DeviceSecretVerifierConfigType class DeviceSecretVerifierConfigTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const DeviceSecretVerifierConfigTypeAwsJson11Serializer() - : super('DeviceSecretVerifierConfigType'); + : super('DeviceSecretVerifierConfigType'); @override Iterable get types => const [ - DeviceSecretVerifierConfigType, - _$DeviceSecretVerifierConfigType, - ]; + DeviceSecretVerifierConfigType, + _$DeviceSecretVerifierConfigType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override DeviceSecretVerifierConfigType deserialize( @@ -100,15 +90,19 @@ class DeviceSecretVerifierConfigTypeAwsJson11Serializer } switch (key) { case 'PasswordVerifier': - result.passwordVerifier = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.passwordVerifier = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Salt': - result.salt = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.salt = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -126,18 +120,19 @@ class DeviceSecretVerifierConfigTypeAwsJson11Serializer if (passwordVerifier != null) { result$ ..add('PasswordVerifier') - ..add(serializers.serialize( - passwordVerifier, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + passwordVerifier, + specifiedType: const FullType(String), + ), + ); } if (salt != null) { result$ ..add('Salt') - ..add(serializers.serialize( - salt, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(salt, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.g.dart index 04c1dbf8da..18d7567780 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_secret_verifier_config_type.g.dart @@ -12,17 +12,17 @@ class _$DeviceSecretVerifierConfigType extends DeviceSecretVerifierConfigType { @override final String? salt; - factory _$DeviceSecretVerifierConfigType( - [void Function(DeviceSecretVerifierConfigTypeBuilder)? updates]) => - (new DeviceSecretVerifierConfigTypeBuilder()..update(updates))._build(); + factory _$DeviceSecretVerifierConfigType([ + void Function(DeviceSecretVerifierConfigTypeBuilder)? updates, + ]) => (new DeviceSecretVerifierConfigTypeBuilder()..update(updates))._build(); _$DeviceSecretVerifierConfigType._({this.passwordVerifier, this.salt}) - : super._(); + : super._(); @override DeviceSecretVerifierConfigType rebuild( - void Function(DeviceSecretVerifierConfigTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeviceSecretVerifierConfigTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeviceSecretVerifierConfigTypeBuilder toBuilder() => @@ -48,8 +48,10 @@ class _$DeviceSecretVerifierConfigType extends DeviceSecretVerifierConfigType { class DeviceSecretVerifierConfigTypeBuilder implements - Builder { + Builder< + DeviceSecretVerifierConfigType, + DeviceSecretVerifierConfigTypeBuilder + > { _$DeviceSecretVerifierConfigType? _$v; String? _passwordVerifier; @@ -88,7 +90,8 @@ class DeviceSecretVerifierConfigTypeBuilder DeviceSecretVerifierConfigType build() => _build(); _$DeviceSecretVerifierConfigType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DeviceSecretVerifierConfigType._( passwordVerifier: passwordVerifier, salt: salt, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.dart index b48c396c5a..33c815bd24 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.dart @@ -41,7 +41,7 @@ abstract class DeviceType const DeviceType._(); static const List<_i3.SmithySerializer> serializers = [ - DeviceTypeAwsJson11Serializer() + DeviceTypeAwsJson11Serializer(), ]; /// The device key. @@ -60,36 +60,22 @@ abstract class DeviceType DateTime? get deviceLastAuthenticatedDate; @override List get props => [ - deviceKey, - deviceAttributes, - deviceCreateDate, - deviceLastModifiedDate, - deviceLastAuthenticatedDate, - ]; + deviceKey, + deviceAttributes, + deviceCreateDate, + deviceLastModifiedDate, + deviceLastAuthenticatedDate, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeviceType') - ..add( - 'deviceKey', - deviceKey, - ) - ..add( - 'deviceAttributes', - deviceAttributes, - ) - ..add( - 'deviceCreateDate', - deviceCreateDate, - ) - ..add( - 'deviceLastModifiedDate', - deviceLastModifiedDate, - ) - ..add( - 'deviceLastAuthenticatedDate', - deviceLastAuthenticatedDate, - ); + final helper = + newBuiltValueToStringHelper('DeviceType') + ..add('deviceKey', deviceKey) + ..add('deviceAttributes', deviceAttributes) + ..add('deviceCreateDate', deviceCreateDate) + ..add('deviceLastModifiedDate', deviceLastModifiedDate) + ..add('deviceLastAuthenticatedDate', deviceLastAuthenticatedDate); return helper.toString(); } } @@ -99,18 +85,12 @@ class DeviceTypeAwsJson11Serializer const DeviceTypeAwsJson11Serializer() : super('DeviceType'); @override - Iterable get types => const [ - DeviceType, - _$DeviceType, - ]; + Iterable get types => const [DeviceType, _$DeviceType]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override DeviceType deserialize( @@ -129,33 +109,43 @@ class DeviceTypeAwsJson11Serializer } switch (key) { case 'DeviceKey': - result.deviceKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceAttributes': - result.deviceAttributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(AttributeType)], - ), - ) as _i2.BuiltList)); + result.deviceAttributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(AttributeType), + ]), + ) + as _i2.BuiltList), + ); case 'DeviceCreateDate': - result.deviceCreateDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.deviceCreateDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'DeviceLastModifiedDate': - result.deviceLastModifiedDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.deviceLastModifiedDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'DeviceLastAuthenticatedDate': - result.deviceLastAuthenticatedDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.deviceLastAuthenticatedDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -174,50 +164,59 @@ class DeviceTypeAwsJson11Serializer :deviceAttributes, :deviceCreateDate, :deviceLastModifiedDate, - :deviceLastAuthenticatedDate + :deviceLastAuthenticatedDate, ) = object; if (deviceKey != null) { result$ ..add('DeviceKey') - ..add(serializers.serialize( - deviceKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + deviceKey, + specifiedType: const FullType(String), + ), + ); } if (deviceAttributes != null) { result$ ..add('DeviceAttributes') - ..add(serializers.serialize( - deviceAttributes, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(AttributeType)], + ..add( + serializers.serialize( + deviceAttributes, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(AttributeType), + ]), ), - )); + ); } if (deviceCreateDate != null) { result$ ..add('DeviceCreateDate') - ..add(serializers.serialize( - deviceCreateDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + deviceCreateDate, + specifiedType: const FullType(DateTime), + ), + ); } if (deviceLastModifiedDate != null) { result$ ..add('DeviceLastModifiedDate') - ..add(serializers.serialize( - deviceLastModifiedDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + deviceLastModifiedDate, + specifiedType: const FullType(DateTime), + ), + ); } if (deviceLastAuthenticatedDate != null) { result$ ..add('DeviceLastAuthenticatedDate') - ..add(serializers.serialize( - deviceLastAuthenticatedDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + deviceLastAuthenticatedDate, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.g.dart index 23c5df2d42..3fb7359553 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/device_type.g.dart @@ -21,13 +21,13 @@ class _$DeviceType extends DeviceType { factory _$DeviceType([void Function(DeviceTypeBuilder)? updates]) => (new DeviceTypeBuilder()..update(updates))._build(); - _$DeviceType._( - {this.deviceKey, - this.deviceAttributes, - this.deviceCreateDate, - this.deviceLastModifiedDate, - this.deviceLastAuthenticatedDate}) - : super._(); + _$DeviceType._({ + this.deviceKey, + this.deviceAttributes, + this.deviceCreateDate, + this.deviceLastModifiedDate, + this.deviceLastAuthenticatedDate, + }) : super._(); @override DeviceType rebuild(void Function(DeviceTypeBuilder) updates) => @@ -121,7 +121,8 @@ class DeviceTypeBuilder implements Builder { _$DeviceType _build() { _$DeviceType _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$DeviceType._( deviceKey: deviceKey, deviceAttributes: _deviceAttributes?.build(), @@ -136,7 +137,10 @@ class DeviceTypeBuilder implements Builder { _deviceAttributes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'DeviceType', _$failedField, e.toString()); + r'DeviceType', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.dart index f5871bb77d..556cba6930 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.dart @@ -15,10 +15,7 @@ abstract class EmailMfaSettingsType with _i1.AWSEquatable implements Built { /// User preferences for multi-factor authentication with email messages. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. To activate this setting, [advanced security features](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html) must be active in your user pool. - factory EmailMfaSettingsType({ - bool? enabled, - bool? preferredMfa, - }) { + factory EmailMfaSettingsType({bool? enabled, bool? preferredMfa}) { enabled ??= false; preferredMfa ??= false; return _$EmailMfaSettingsType._( @@ -28,14 +25,14 @@ abstract class EmailMfaSettingsType } /// User preferences for multi-factor authentication with email messages. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. To activate this setting, [advanced security features](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html) must be active in your user pool. - factory EmailMfaSettingsType.build( - [void Function(EmailMfaSettingsTypeBuilder) updates]) = - _$EmailMfaSettingsType; + factory EmailMfaSettingsType.build([ + void Function(EmailMfaSettingsTypeBuilder) updates, + ]) = _$EmailMfaSettingsType; const EmailMfaSettingsType._(); static const List<_i2.SmithySerializer> serializers = [ - EmailMfaSettingsTypeAwsJson11Serializer() + EmailMfaSettingsTypeAwsJson11Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -51,22 +48,14 @@ abstract class EmailMfaSettingsType /// Specifies whether email message MFA is the user's preferred method. bool get preferredMfa; @override - List get props => [ - enabled, - preferredMfa, - ]; + List get props => [enabled, preferredMfa]; @override String toString() { - final helper = newBuiltValueToStringHelper('EmailMfaSettingsType') - ..add( - 'enabled', - enabled, - ) - ..add( - 'preferredMfa', - preferredMfa, - ); + final helper = + newBuiltValueToStringHelper('EmailMfaSettingsType') + ..add('enabled', enabled) + ..add('preferredMfa', preferredMfa); return helper.toString(); } } @@ -74,21 +63,18 @@ abstract class EmailMfaSettingsType class EmailMfaSettingsTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const EmailMfaSettingsTypeAwsJson11Serializer() - : super('EmailMfaSettingsType'); + : super('EmailMfaSettingsType'); @override Iterable get types => const [ - EmailMfaSettingsType, - _$EmailMfaSettingsType, - ]; + EmailMfaSettingsType, + _$EmailMfaSettingsType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EmailMfaSettingsType deserialize( @@ -107,15 +93,19 @@ class EmailMfaSettingsTypeAwsJson11Serializer } switch (key) { case 'Enabled': - result.enabled = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.enabled = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'PreferredMfa': - result.preferredMfa = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.preferredMfa = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,15 +122,9 @@ class EmailMfaSettingsTypeAwsJson11Serializer final EmailMfaSettingsType(:enabled, :preferredMfa) = object; result$.addAll([ 'Enabled', - serializers.serialize( - enabled, - specifiedType: const FullType(bool), - ), + serializers.serialize(enabled, specifiedType: const FullType(bool)), 'PreferredMfa', - serializers.serialize( - preferredMfa, - specifiedType: const FullType(bool), - ), + serializers.serialize(preferredMfa, specifiedType: const FullType(bool)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.g.dart index c6e182d5de..a7758756e8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/email_mfa_settings_type.g.dart @@ -12,22 +12,28 @@ class _$EmailMfaSettingsType extends EmailMfaSettingsType { @override final bool preferredMfa; - factory _$EmailMfaSettingsType( - [void Function(EmailMfaSettingsTypeBuilder)? updates]) => - (new EmailMfaSettingsTypeBuilder()..update(updates))._build(); + factory _$EmailMfaSettingsType([ + void Function(EmailMfaSettingsTypeBuilder)? updates, + ]) => (new EmailMfaSettingsTypeBuilder()..update(updates))._build(); _$EmailMfaSettingsType._({required this.enabled, required this.preferredMfa}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - enabled, r'EmailMfaSettingsType', 'enabled'); + enabled, + r'EmailMfaSettingsType', + 'enabled', + ); BuiltValueNullFieldError.checkNotNull( - preferredMfa, r'EmailMfaSettingsType', 'preferredMfa'); + preferredMfa, + r'EmailMfaSettingsType', + 'preferredMfa', + ); } @override EmailMfaSettingsType rebuild( - void Function(EmailMfaSettingsTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmailMfaSettingsTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmailMfaSettingsTypeBuilder toBuilder() => @@ -92,12 +98,19 @@ class EmailMfaSettingsTypeBuilder EmailMfaSettingsType build() => _build(); _$EmailMfaSettingsType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EmailMfaSettingsType._( enabled: BuiltValueNullFieldError.checkNotNull( - enabled, r'EmailMfaSettingsType', 'enabled'), + enabled, + r'EmailMfaSettingsType', + 'enabled', + ), preferredMfa: BuiltValueNullFieldError.checkNotNull( - preferredMfa, r'EmailMfaSettingsType', 'preferredMfa'), + preferredMfa, + r'EmailMfaSettingsType', + 'preferredMfa', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.dart index dfbd457723..f4261605e1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.dart @@ -12,11 +12,12 @@ part 'enable_software_token_mfa_exception.g.dart'; /// This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA). abstract class EnableSoftwareTokenMfaException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EnableSoftwareTokenMfaException, + EnableSoftwareTokenMfaExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA). factory EnableSoftwareTokenMfaException({String? message}) { @@ -24,9 +25,9 @@ abstract class EnableSoftwareTokenMfaException } /// This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA). - factory EnableSoftwareTokenMfaException.build( - [void Function(EnableSoftwareTokenMfaExceptionBuilder) updates]) = - _$EnableSoftwareTokenMfaException; + factory EnableSoftwareTokenMfaException.build([ + void Function(EnableSoftwareTokenMfaExceptionBuilder) updates, + ]) = _$EnableSoftwareTokenMfaException; const EnableSoftwareTokenMfaException._(); @@ -34,21 +35,20 @@ abstract class EnableSoftwareTokenMfaException factory EnableSoftwareTokenMfaException.fromResponse( EnableSoftwareTokenMfaException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [EnableSoftwareTokenMfaExceptionAwsJson11Serializer()]; + serializers = [EnableSoftwareTokenMfaExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'EnableSoftwareTokenMFAException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'EnableSoftwareTokenMFAException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,12 +68,9 @@ abstract class EnableSoftwareTokenMfaException @override String toString() { - final helper = - newBuiltValueToStringHelper('EnableSoftwareTokenMfaException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'EnableSoftwareTokenMfaException', + )..add('message', message); return helper.toString(); } } @@ -81,21 +78,18 @@ abstract class EnableSoftwareTokenMfaException class EnableSoftwareTokenMfaExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const EnableSoftwareTokenMfaExceptionAwsJson11Serializer() - : super('EnableSoftwareTokenMfaException'); + : super('EnableSoftwareTokenMfaException'); @override Iterable get types => const [ - EnableSoftwareTokenMfaException, - _$EnableSoftwareTokenMfaException, - ]; + EnableSoftwareTokenMfaException, + _$EnableSoftwareTokenMfaException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EnableSoftwareTokenMfaException deserialize( @@ -114,10 +108,12 @@ class EnableSoftwareTokenMfaExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,10 +131,9 @@ class EnableSoftwareTokenMfaExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.g.dart index 596afca4b9..abb5895ede 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/enable_software_token_mfa_exception.g.dart @@ -13,16 +13,17 @@ class _$EnableSoftwareTokenMfaException @override final Map? headers; - factory _$EnableSoftwareTokenMfaException( - [void Function(EnableSoftwareTokenMfaExceptionBuilder)? updates]) => + factory _$EnableSoftwareTokenMfaException([ + void Function(EnableSoftwareTokenMfaExceptionBuilder)? updates, + ]) => (new EnableSoftwareTokenMfaExceptionBuilder()..update(updates))._build(); _$EnableSoftwareTokenMfaException._({this.message, this.headers}) : super._(); @override EnableSoftwareTokenMfaException rebuild( - void Function(EnableSoftwareTokenMfaExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EnableSoftwareTokenMfaExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EnableSoftwareTokenMfaExceptionBuilder toBuilder() => @@ -45,8 +46,10 @@ class _$EnableSoftwareTokenMfaException class EnableSoftwareTokenMfaExceptionBuilder implements - Builder { + Builder< + EnableSoftwareTokenMfaException, + EnableSoftwareTokenMfaExceptionBuilder + > { _$EnableSoftwareTokenMfaException? _$v; String? _message; @@ -84,7 +87,8 @@ class EnableSoftwareTokenMfaExceptionBuilder EnableSoftwareTokenMfaException build() => _build(); _$EnableSoftwareTokenMfaException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnableSoftwareTokenMfaException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.dart index f6ab049ad0..7547568c16 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.dart @@ -22,9 +22,9 @@ abstract class ExpiredCodeException } /// This exception is thrown if a code has expired. - factory ExpiredCodeException.build( - [void Function(ExpiredCodeExceptionBuilder) updates]) = - _$ExpiredCodeException; + factory ExpiredCodeException.build([ + void Function(ExpiredCodeExceptionBuilder) updates, + ]) = _$ExpiredCodeException; const ExpiredCodeException._(); @@ -32,13 +32,12 @@ abstract class ExpiredCodeException factory ExpiredCodeException.fromResponse( ExpiredCodeException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ExpiredCodeExceptionAwsJson11Serializer() + ExpiredCodeExceptionAwsJson11Serializer(), ]; /// The message returned when the expired code exception is thrown. @@ -46,9 +45,9 @@ abstract class ExpiredCodeException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ExpiredCodeException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ExpiredCodeException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,10 +68,7 @@ abstract class ExpiredCodeException @override String toString() { final helper = newBuiltValueToStringHelper('ExpiredCodeException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,21 +76,18 @@ abstract class ExpiredCodeException class ExpiredCodeExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ExpiredCodeExceptionAwsJson11Serializer() - : super('ExpiredCodeException'); + : super('ExpiredCodeException'); @override Iterable get types => const [ - ExpiredCodeException, - _$ExpiredCodeException, - ]; + ExpiredCodeException, + _$ExpiredCodeException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ExpiredCodeException deserialize( @@ -113,10 +106,12 @@ class ExpiredCodeExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,10 +129,9 @@ class ExpiredCodeExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.g.dart index 596b4afc4d..5c9bc0cfa2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/expired_code_exception.g.dart @@ -12,16 +12,16 @@ class _$ExpiredCodeException extends ExpiredCodeException { @override final Map? headers; - factory _$ExpiredCodeException( - [void Function(ExpiredCodeExceptionBuilder)? updates]) => - (new ExpiredCodeExceptionBuilder()..update(updates))._build(); + factory _$ExpiredCodeException([ + void Function(ExpiredCodeExceptionBuilder)? updates, + ]) => (new ExpiredCodeExceptionBuilder()..update(updates))._build(); _$ExpiredCodeException._({this.message, this.headers}) : super._(); @override ExpiredCodeException rebuild( - void Function(ExpiredCodeExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ExpiredCodeExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ExpiredCodeExceptionBuilder toBuilder() => @@ -81,11 +81,8 @@ class ExpiredCodeExceptionBuilder ExpiredCodeException build() => _build(); _$ExpiredCodeException _build() { - final _$result = _$v ?? - new _$ExpiredCodeException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? new _$ExpiredCodeException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.dart index b97418f44b..97fac537d3 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.dart @@ -22,9 +22,9 @@ abstract class ForbiddenException } /// This exception is thrown when WAF doesn't allow your request based on a web ACL that's associated with your user pool. - factory ForbiddenException.build( - [void Function(ForbiddenExceptionBuilder) updates]) = - _$ForbiddenException; + factory ForbiddenException.build([ + void Function(ForbiddenExceptionBuilder) updates, + ]) = _$ForbiddenException; const ForbiddenException._(); @@ -32,13 +32,12 @@ abstract class ForbiddenException factory ForbiddenException.fromResponse( ForbiddenException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ForbiddenExceptionAwsJson11Serializer() + ForbiddenExceptionAwsJson11Serializer(), ]; /// The message returned when WAF doesn't allow your request based on a web ACL that's associated with your user pool. @@ -46,9 +45,9 @@ abstract class ForbiddenException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,10 +68,7 @@ abstract class ForbiddenException @override String toString() { final helper = newBuiltValueToStringHelper('ForbiddenException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -82,18 +78,12 @@ class ForbiddenExceptionAwsJson11Serializer const ForbiddenExceptionAwsJson11Serializer() : super('ForbiddenException'); @override - Iterable get types => const [ - ForbiddenException, - _$ForbiddenException, - ]; + Iterable get types => const [ForbiddenException, _$ForbiddenException]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ForbiddenException deserialize( @@ -112,10 +102,12 @@ class ForbiddenExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +125,9 @@ class ForbiddenExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.g.dart index d8910466b5..cf8e1f3fb9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forbidden_exception.g.dart @@ -12,16 +12,16 @@ class _$ForbiddenException extends ForbiddenException { @override final Map? headers; - factory _$ForbiddenException( - [void Function(ForbiddenExceptionBuilder)? updates]) => - (new ForbiddenExceptionBuilder()..update(updates))._build(); + factory _$ForbiddenException([ + void Function(ForbiddenExceptionBuilder)? updates, + ]) => (new ForbiddenExceptionBuilder()..update(updates))._build(); _$ForbiddenException._({this.message, this.headers}) : super._(); @override ForbiddenException rebuild( - void Function(ForbiddenExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ForbiddenExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ForbiddenExceptionBuilder toBuilder() => @@ -81,11 +81,8 @@ class ForbiddenExceptionBuilder ForbiddenException build() => _build(); _$ForbiddenException _build() { - final _$result = _$v ?? - new _$ForbiddenException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? new _$ForbiddenException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.dart index f716905bf4..f494da2e5c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.dart @@ -28,9 +28,9 @@ abstract class ForgetDeviceRequest } /// Represents the request to forget the device. - factory ForgetDeviceRequest.build( - [void Function(ForgetDeviceRequestBuilder) updates]) = - _$ForgetDeviceRequest; + factory ForgetDeviceRequest.build([ + void Function(ForgetDeviceRequestBuilder) updates, + ]) = _$ForgetDeviceRequest; const ForgetDeviceRequest._(); @@ -38,11 +38,10 @@ abstract class ForgetDeviceRequest ForgetDeviceRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - ForgetDeviceRequestAwsJson11Serializer() + ForgetDeviceRequestAwsJson11Serializer(), ]; /// A valid access token that Amazon Cognito issued to the user whose registered device you want to forget. @@ -54,22 +53,14 @@ abstract class ForgetDeviceRequest ForgetDeviceRequest getPayload() => this; @override - List get props => [ - accessToken, - deviceKey, - ]; + List get props => [accessToken, deviceKey]; @override String toString() { - final helper = newBuiltValueToStringHelper('ForgetDeviceRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'deviceKey', - deviceKey, - ); + final helper = + newBuiltValueToStringHelper('ForgetDeviceRequest') + ..add('accessToken', '***SENSITIVE***') + ..add('deviceKey', deviceKey); return helper.toString(); } } @@ -80,17 +71,14 @@ class ForgetDeviceRequestAwsJson11Serializer @override Iterable get types => const [ - ForgetDeviceRequest, - _$ForgetDeviceRequest, - ]; + ForgetDeviceRequest, + _$ForgetDeviceRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ForgetDeviceRequest deserialize( @@ -109,15 +97,19 @@ class ForgetDeviceRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceKey': - result.deviceKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,18 +126,17 @@ class ForgetDeviceRequestAwsJson11Serializer final ForgetDeviceRequest(:accessToken, :deviceKey) = object; result$.addAll([ 'DeviceKey', - serializers.serialize( - deviceKey, - specifiedType: const FullType(String), - ), + serializers.serialize(deviceKey, specifiedType: const FullType(String)), ]); if (accessToken != null) { result$ ..add('AccessToken') - ..add(serializers.serialize( - accessToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + accessToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.g.dart index 149e492489..b81c5d5a52 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forget_device_request.g.dart @@ -12,20 +12,23 @@ class _$ForgetDeviceRequest extends ForgetDeviceRequest { @override final String deviceKey; - factory _$ForgetDeviceRequest( - [void Function(ForgetDeviceRequestBuilder)? updates]) => - (new ForgetDeviceRequestBuilder()..update(updates))._build(); + factory _$ForgetDeviceRequest([ + void Function(ForgetDeviceRequestBuilder)? updates, + ]) => (new ForgetDeviceRequestBuilder()..update(updates))._build(); _$ForgetDeviceRequest._({this.accessToken, required this.deviceKey}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - deviceKey, r'ForgetDeviceRequest', 'deviceKey'); + deviceKey, + r'ForgetDeviceRequest', + 'deviceKey', + ); } @override ForgetDeviceRequest rebuild( - void Function(ForgetDeviceRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ForgetDeviceRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ForgetDeviceRequestBuilder toBuilder() => @@ -88,11 +91,15 @@ class ForgetDeviceRequestBuilder ForgetDeviceRequest build() => _build(); _$ForgetDeviceRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ForgetDeviceRequest._( accessToken: accessToken, deviceKey: BuiltValueNullFieldError.checkNotNull( - deviceKey, r'ForgetDeviceRequest', 'deviceKey'), + deviceKey, + r'ForgetDeviceRequest', + 'deviceKey', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.dart index de772a3506..58c3cc685f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.dart @@ -40,9 +40,9 @@ abstract class ForgotPasswordRequest } /// Represents the request to reset a user's password. - factory ForgotPasswordRequest.build( - [void Function(ForgotPasswordRequestBuilder) updates]) = - _$ForgotPasswordRequest; + factory ForgotPasswordRequest.build([ + void Function(ForgotPasswordRequestBuilder) updates, + ]) = _$ForgotPasswordRequest; const ForgotPasswordRequest._(); @@ -50,11 +50,10 @@ abstract class ForgotPasswordRequest ForgotPasswordRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - ForgotPasswordRequestAwsJson11Serializer() + ForgotPasswordRequestAwsJson11Serializer(), ]; /// The ID of the client associated with the user pool. @@ -91,41 +90,24 @@ abstract class ForgotPasswordRequest @override List get props => [ - clientId, - secretHash, - userContextData, - username, - analyticsMetadata, - clientMetadata, - ]; + clientId, + secretHash, + userContextData, + username, + analyticsMetadata, + clientMetadata, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ForgotPasswordRequest') - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'secretHash', - '***SENSITIVE***', - ) - ..add( - 'userContextData', - '***SENSITIVE***', - ) - ..add( - 'username', - '***SENSITIVE***', - ) - ..add( - 'analyticsMetadata', - analyticsMetadata, - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + final helper = + newBuiltValueToStringHelper('ForgotPasswordRequest') + ..add('clientId', '***SENSITIVE***') + ..add('secretHash', '***SENSITIVE***') + ..add('userContextData', '***SENSITIVE***') + ..add('username', '***SENSITIVE***') + ..add('analyticsMetadata', analyticsMetadata) + ..add('clientMetadata', clientMetadata); return helper.toString(); } } @@ -133,21 +115,18 @@ abstract class ForgotPasswordRequest class ForgotPasswordRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const ForgotPasswordRequestAwsJson11Serializer() - : super('ForgotPasswordRequest'); + : super('ForgotPasswordRequest'); @override Iterable get types => const [ - ForgotPasswordRequest, - _$ForgotPasswordRequest, - ]; + ForgotPasswordRequest, + _$ForgotPasswordRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ForgotPasswordRequest deserialize( @@ -166,41 +145,53 @@ class ForgotPasswordRequestAwsJson11Serializer } switch (key) { case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'SecretHash': - result.secretHash = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.secretHash = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UserContextData': - result.userContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(UserContextDataType), - ) as UserContextDataType)); + result.userContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + ) + as UserContextDataType), + ); case 'Username': - result.username = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.username = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AnalyticsMetadata': - result.analyticsMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(AnalyticsMetadataType), - ) as AnalyticsMetadataType)); + result.analyticsMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AnalyticsMetadataType), + ) + as AnalyticsMetadataType), + ); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -220,57 +211,56 @@ class ForgotPasswordRequestAwsJson11Serializer :userContextData, :username, :analyticsMetadata, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), 'Username', - serializers.serialize( - username, - specifiedType: const FullType(String), - ), + serializers.serialize(username, specifiedType: const FullType(String)), ]); if (secretHash != null) { result$ ..add('SecretHash') - ..add(serializers.serialize( - secretHash, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + secretHash, + specifiedType: const FullType(String), + ), + ); } if (userContextData != null) { result$ ..add('UserContextData') - ..add(serializers.serialize( - userContextData, - specifiedType: const FullType(UserContextDataType), - )); + ..add( + serializers.serialize( + userContextData, + specifiedType: const FullType(UserContextDataType), + ), + ); } if (analyticsMetadata != null) { result$ ..add('AnalyticsMetadata') - ..add(serializers.serialize( - analyticsMetadata, - specifiedType: const FullType(AnalyticsMetadataType), - )); + ..add( + serializers.serialize( + analyticsMetadata, + specifiedType: const FullType(AnalyticsMetadataType), + ), + ); } if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.g.dart index 58134a80a3..844dcd11c6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_request.g.dart @@ -20,28 +20,34 @@ class _$ForgotPasswordRequest extends ForgotPasswordRequest { @override final _i3.BuiltMap? clientMetadata; - factory _$ForgotPasswordRequest( - [void Function(ForgotPasswordRequestBuilder)? updates]) => - (new ForgotPasswordRequestBuilder()..update(updates))._build(); - - _$ForgotPasswordRequest._( - {required this.clientId, - this.secretHash, - this.userContextData, - required this.username, - this.analyticsMetadata, - this.clientMetadata}) - : super._() { + factory _$ForgotPasswordRequest([ + void Function(ForgotPasswordRequestBuilder)? updates, + ]) => (new ForgotPasswordRequestBuilder()..update(updates))._build(); + + _$ForgotPasswordRequest._({ + required this.clientId, + this.secretHash, + this.userContextData, + required this.username, + this.analyticsMetadata, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - clientId, r'ForgotPasswordRequest', 'clientId'); + clientId, + r'ForgotPasswordRequest', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - username, r'ForgotPasswordRequest', 'username'); + username, + r'ForgotPasswordRequest', + 'username', + ); } @override ForgotPasswordRequest rebuild( - void Function(ForgotPasswordRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ForgotPasswordRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ForgotPasswordRequestBuilder toBuilder() => @@ -140,14 +146,21 @@ class ForgotPasswordRequestBuilder _$ForgotPasswordRequest _build() { _$ForgotPasswordRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ForgotPasswordRequest._( clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'ForgotPasswordRequest', 'clientId'), + clientId, + r'ForgotPasswordRequest', + 'clientId', + ), secretHash: secretHash, userContextData: _userContextData?.build(), username: BuiltValueNullFieldError.checkNotNull( - username, r'ForgotPasswordRequest', 'username'), + username, + r'ForgotPasswordRequest', + 'username', + ), analyticsMetadata: _analyticsMetadata?.build(), clientMetadata: _clientMetadata?.build(), ); @@ -163,7 +176,10 @@ class ForgotPasswordRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ForgotPasswordRequest', _$failedField, e.toString()); + r'ForgotPasswordRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.dart index 2d77bdb4ac..82bc031a52 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.dart @@ -16,15 +16,16 @@ abstract class ForgotPasswordResponse with _i1.AWSEquatable implements Built { /// The response from Amazon Cognito to a request to reset a password. - factory ForgotPasswordResponse( - {CodeDeliveryDetailsType? codeDeliveryDetails}) { + factory ForgotPasswordResponse({ + CodeDeliveryDetailsType? codeDeliveryDetails, + }) { return _$ForgotPasswordResponse._(codeDeliveryDetails: codeDeliveryDetails); } /// The response from Amazon Cognito to a request to reset a password. - factory ForgotPasswordResponse.build( - [void Function(ForgotPasswordResponseBuilder) updates]) = - _$ForgotPasswordResponse; + factory ForgotPasswordResponse.build([ + void Function(ForgotPasswordResponseBuilder) updates, + ]) = _$ForgotPasswordResponse; const ForgotPasswordResponse._(); @@ -32,8 +33,7 @@ abstract class ForgotPasswordResponse factory ForgotPasswordResponse.fromResponse( ForgotPasswordResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ForgotPasswordResponseAwsJson11Serializer()]; @@ -46,10 +46,7 @@ abstract class ForgotPasswordResponse @override String toString() { final helper = newBuiltValueToStringHelper('ForgotPasswordResponse') - ..add( - 'codeDeliveryDetails', - codeDeliveryDetails, - ); + ..add('codeDeliveryDetails', codeDeliveryDetails); return helper.toString(); } } @@ -57,21 +54,18 @@ abstract class ForgotPasswordResponse class ForgotPasswordResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ForgotPasswordResponseAwsJson11Serializer() - : super('ForgotPasswordResponse'); + : super('ForgotPasswordResponse'); @override Iterable get types => const [ - ForgotPasswordResponse, - _$ForgotPasswordResponse, - ]; + ForgotPasswordResponse, + _$ForgotPasswordResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ForgotPasswordResponse deserialize( @@ -90,10 +84,13 @@ class ForgotPasswordResponseAwsJson11Serializer } switch (key) { case 'CodeDeliveryDetails': - result.codeDeliveryDetails.replace((serializers.deserialize( - value, - specifiedType: const FullType(CodeDeliveryDetailsType), - ) as CodeDeliveryDetailsType)); + result.codeDeliveryDetails.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CodeDeliveryDetailsType), + ) + as CodeDeliveryDetailsType), + ); } } @@ -111,10 +108,12 @@ class ForgotPasswordResponseAwsJson11Serializer if (codeDeliveryDetails != null) { result$ ..add('CodeDeliveryDetails') - ..add(serializers.serialize( - codeDeliveryDetails, - specifiedType: const FullType(CodeDeliveryDetailsType), - )); + ..add( + serializers.serialize( + codeDeliveryDetails, + specifiedType: const FullType(CodeDeliveryDetailsType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.g.dart index 33e20e1291..a7a08d04bd 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/forgot_password_response.g.dart @@ -10,16 +10,16 @@ class _$ForgotPasswordResponse extends ForgotPasswordResponse { @override final CodeDeliveryDetailsType? codeDeliveryDetails; - factory _$ForgotPasswordResponse( - [void Function(ForgotPasswordResponseBuilder)? updates]) => - (new ForgotPasswordResponseBuilder()..update(updates))._build(); + factory _$ForgotPasswordResponse([ + void Function(ForgotPasswordResponseBuilder)? updates, + ]) => (new ForgotPasswordResponseBuilder()..update(updates))._build(); _$ForgotPasswordResponse._({this.codeDeliveryDetails}) : super._(); @override ForgotPasswordResponse rebuild( - void Function(ForgotPasswordResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ForgotPasswordResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ForgotPasswordResponseBuilder toBuilder() => @@ -49,8 +49,8 @@ class ForgotPasswordResponseBuilder CodeDeliveryDetailsTypeBuilder get codeDeliveryDetails => _$this._codeDeliveryDetails ??= new CodeDeliveryDetailsTypeBuilder(); set codeDeliveryDetails( - CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails) => - _$this._codeDeliveryDetails = codeDeliveryDetails; + CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails, + ) => _$this._codeDeliveryDetails = codeDeliveryDetails; ForgotPasswordResponseBuilder(); @@ -80,7 +80,8 @@ class ForgotPasswordResponseBuilder _$ForgotPasswordResponse _build() { _$ForgotPasswordResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ForgotPasswordResponse._( codeDeliveryDetails: _codeDeliveryDetails?.build(), ); @@ -91,7 +92,10 @@ class ForgotPasswordResponseBuilder _codeDeliveryDetails?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ForgotPasswordResponse', _$failedField, e.toString()); + r'ForgotPasswordResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.dart index d6068a3e65..b57231b25a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.dart @@ -15,19 +15,14 @@ abstract class GetDeviceRequest with _i1.HttpInput, _i2.AWSEquatable implements Built { /// Represents the request to get the device. - factory GetDeviceRequest({ - required String deviceKey, - String? accessToken, - }) { - return _$GetDeviceRequest._( - deviceKey: deviceKey, - accessToken: accessToken, - ); + factory GetDeviceRequest({required String deviceKey, String? accessToken}) { + return _$GetDeviceRequest._(deviceKey: deviceKey, accessToken: accessToken); } /// Represents the request to get the device. - factory GetDeviceRequest.build( - [void Function(GetDeviceRequestBuilder) updates]) = _$GetDeviceRequest; + factory GetDeviceRequest.build([ + void Function(GetDeviceRequestBuilder) updates, + ]) = _$GetDeviceRequest; const GetDeviceRequest._(); @@ -35,11 +30,10 @@ abstract class GetDeviceRequest GetDeviceRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - GetDeviceRequestAwsJson11Serializer() + GetDeviceRequestAwsJson11Serializer(), ]; /// The device key. @@ -51,22 +45,14 @@ abstract class GetDeviceRequest GetDeviceRequest getPayload() => this; @override - List get props => [ - deviceKey, - accessToken, - ]; + List get props => [deviceKey, accessToken]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetDeviceRequest') - ..add( - 'deviceKey', - deviceKey, - ) - ..add( - 'accessToken', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('GetDeviceRequest') + ..add('deviceKey', deviceKey) + ..add('accessToken', '***SENSITIVE***'); return helper.toString(); } } @@ -76,18 +62,12 @@ class GetDeviceRequestAwsJson11Serializer const GetDeviceRequestAwsJson11Serializer() : super('GetDeviceRequest'); @override - Iterable get types => const [ - GetDeviceRequest, - _$GetDeviceRequest, - ]; + Iterable get types => const [GetDeviceRequest, _$GetDeviceRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetDeviceRequest deserialize( @@ -106,15 +86,19 @@ class GetDeviceRequestAwsJson11Serializer } switch (key) { case 'DeviceKey': - result.deviceKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,18 +115,17 @@ class GetDeviceRequestAwsJson11Serializer final GetDeviceRequest(:deviceKey, :accessToken) = object; result$.addAll([ 'DeviceKey', - serializers.serialize( - deviceKey, - specifiedType: const FullType(String), - ), + serializers.serialize(deviceKey, specifiedType: const FullType(String)), ]); if (accessToken != null) { result$ ..add('AccessToken') - ..add(serializers.serialize( - accessToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + accessToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.g.dart index cf728f0daa..b5469c8ede 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_request.g.dart @@ -12,14 +12,17 @@ class _$GetDeviceRequest extends GetDeviceRequest { @override final String? accessToken; - factory _$GetDeviceRequest( - [void Function(GetDeviceRequestBuilder)? updates]) => - (new GetDeviceRequestBuilder()..update(updates))._build(); + factory _$GetDeviceRequest([ + void Function(GetDeviceRequestBuilder)? updates, + ]) => (new GetDeviceRequestBuilder()..update(updates))._build(); _$GetDeviceRequest._({required this.deviceKey, this.accessToken}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - deviceKey, r'GetDeviceRequest', 'deviceKey'); + deviceKey, + r'GetDeviceRequest', + 'deviceKey', + ); } @override @@ -87,10 +90,14 @@ class GetDeviceRequestBuilder GetDeviceRequest build() => _build(); _$GetDeviceRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetDeviceRequest._( deviceKey: BuiltValueNullFieldError.checkNotNull( - deviceKey, r'GetDeviceRequest', 'deviceKey'), + deviceKey, + r'GetDeviceRequest', + 'deviceKey', + ), accessToken: accessToken, ); replace(_$result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.dart index 33bf747c39..8f38d1056b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.dart @@ -21,8 +21,9 @@ abstract class GetDeviceResponse } /// Gets the device response. - factory GetDeviceResponse.build( - [void Function(GetDeviceResponseBuilder) updates]) = _$GetDeviceResponse; + factory GetDeviceResponse.build([ + void Function(GetDeviceResponseBuilder) updates, + ]) = _$GetDeviceResponse; const GetDeviceResponse._(); @@ -30,11 +31,10 @@ abstract class GetDeviceResponse factory GetDeviceResponse.fromResponse( GetDeviceResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - GetDeviceResponseAwsJson11Serializer() + GetDeviceResponseAwsJson11Serializer(), ]; /// The device. @@ -45,10 +45,7 @@ abstract class GetDeviceResponse @override String toString() { final helper = newBuiltValueToStringHelper('GetDeviceResponse') - ..add( - 'device', - device, - ); + ..add('device', device); return helper.toString(); } } @@ -58,18 +55,12 @@ class GetDeviceResponseAwsJson11Serializer const GetDeviceResponseAwsJson11Serializer() : super('GetDeviceResponse'); @override - Iterable get types => const [ - GetDeviceResponse, - _$GetDeviceResponse, - ]; + Iterable get types => const [GetDeviceResponse, _$GetDeviceResponse]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetDeviceResponse deserialize( @@ -88,10 +79,13 @@ class GetDeviceResponseAwsJson11Serializer } switch (key) { case 'Device': - result.device.replace((serializers.deserialize( - value, - specifiedType: const FullType(DeviceType), - ) as DeviceType)); + result.device.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(DeviceType), + ) + as DeviceType), + ); } } @@ -108,10 +102,7 @@ class GetDeviceResponseAwsJson11Serializer final GetDeviceResponse(:device) = object; result$.addAll([ 'Device', - serializers.serialize( - device, - specifiedType: const FullType(DeviceType), - ), + serializers.serialize(device, specifiedType: const FullType(DeviceType)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.g.dart index 19469cc543..fd555ad76e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_device_response.g.dart @@ -10,13 +10,16 @@ class _$GetDeviceResponse extends GetDeviceResponse { @override final DeviceType device; - factory _$GetDeviceResponse( - [void Function(GetDeviceResponseBuilder)? updates]) => - (new GetDeviceResponseBuilder()..update(updates))._build(); + factory _$GetDeviceResponse([ + void Function(GetDeviceResponseBuilder)? updates, + ]) => (new GetDeviceResponseBuilder()..update(updates))._build(); _$GetDeviceResponse._({required this.device}) : super._() { BuiltValueNullFieldError.checkNotNull( - device, r'GetDeviceResponse', 'device'); + device, + r'GetDeviceResponse', + 'device', + ); } @override @@ -78,10 +81,7 @@ class GetDeviceResponseBuilder _$GetDeviceResponse _build() { _$GetDeviceResponse _$result; try { - _$result = _$v ?? - new _$GetDeviceResponse._( - device: device.build(), - ); + _$result = _$v ?? new _$GetDeviceResponse._(device: device.build()); } catch (_) { late String _$failedField; try { @@ -89,7 +89,10 @@ class GetDeviceResponseBuilder device.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetDeviceResponse', _$failedField, e.toString()); + r'GetDeviceResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.dart index bc9f259d32..3af1cb5523 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.dart @@ -17,8 +17,10 @@ abstract class GetUserAttributeVerificationCodeRequest _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + GetUserAttributeVerificationCodeRequest, + GetUserAttributeVerificationCodeRequestBuilder + > { /// Represents the request to get user attribute verification. factory GetUserAttributeVerificationCodeRequest({ required String accessToken, @@ -34,9 +36,9 @@ abstract class GetUserAttributeVerificationCodeRequest } /// Represents the request to get user attribute verification. - factory GetUserAttributeVerificationCodeRequest.build( - [void Function(GetUserAttributeVerificationCodeRequestBuilder) - updates]) = _$GetUserAttributeVerificationCodeRequest; + factory GetUserAttributeVerificationCodeRequest.build([ + void Function(GetUserAttributeVerificationCodeRequestBuilder) updates, + ]) = _$GetUserAttributeVerificationCodeRequest; const GetUserAttributeVerificationCodeRequest._(); @@ -44,14 +46,12 @@ abstract class GetUserAttributeVerificationCodeRequest GetUserAttributeVerificationCodeRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List< - _i1.SmithySerializer> - serializers = [ - GetUserAttributeVerificationCodeRequestAwsJson11Serializer() - ]; + _i1.SmithySerializer + > + serializers = [GetUserAttributeVerificationCodeRequestAwsJson11Serializer()]; /// A non-expired access token for the user whose attribute verification code you want to generate. String get accessToken; @@ -77,50 +77,37 @@ abstract class GetUserAttributeVerificationCodeRequest GetUserAttributeVerificationCodeRequest getPayload() => this; @override - List get props => [ - accessToken, - attributeName, - clientMetadata, - ]; + List get props => [accessToken, attributeName, clientMetadata]; @override String toString() { final helper = newBuiltValueToStringHelper('GetUserAttributeVerificationCodeRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'attributeName', - attributeName, - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + ..add('accessToken', '***SENSITIVE***') + ..add('attributeName', attributeName) + ..add('clientMetadata', clientMetadata); return helper.toString(); } } -class GetUserAttributeVerificationCodeRequestAwsJson11Serializer extends _i1 - .StructuredSmithySerializer { +class GetUserAttributeVerificationCodeRequestAwsJson11Serializer + extends + _i1.StructuredSmithySerializer< + GetUserAttributeVerificationCodeRequest + > { const GetUserAttributeVerificationCodeRequestAwsJson11Serializer() - : super('GetUserAttributeVerificationCodeRequest'); + : super('GetUserAttributeVerificationCodeRequest'); @override Iterable get types => const [ - GetUserAttributeVerificationCodeRequest, - _$GetUserAttributeVerificationCodeRequest, - ]; + GetUserAttributeVerificationCodeRequest, + _$GetUserAttributeVerificationCodeRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetUserAttributeVerificationCodeRequest deserialize( @@ -139,26 +126,30 @@ class GetUserAttributeVerificationCodeRequestAwsJson11Serializer extends _i1 } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AttributeName': - result.attributeName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attributeName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -175,14 +166,11 @@ class GetUserAttributeVerificationCodeRequestAwsJson11Serializer extends _i1 final GetUserAttributeVerificationCodeRequest( :accessToken, :attributeName, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), 'AttributeName', serializers.serialize( attributeName, @@ -192,16 +180,15 @@ class GetUserAttributeVerificationCodeRequestAwsJson11Serializer extends _i1 if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.g.dart index 184f8d1516..302f769fcf 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_request.g.dart @@ -15,28 +15,33 @@ class _$GetUserAttributeVerificationCodeRequest @override final _i3.BuiltMap? clientMetadata; - factory _$GetUserAttributeVerificationCodeRequest( - [void Function(GetUserAttributeVerificationCodeRequestBuilder)? - updates]) => + factory _$GetUserAttributeVerificationCodeRequest([ + void Function(GetUserAttributeVerificationCodeRequestBuilder)? updates, + ]) => (new GetUserAttributeVerificationCodeRequestBuilder()..update(updates)) ._build(); - _$GetUserAttributeVerificationCodeRequest._( - {required this.accessToken, - required this.attributeName, - this.clientMetadata}) - : super._() { + _$GetUserAttributeVerificationCodeRequest._({ + required this.accessToken, + required this.attributeName, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'GetUserAttributeVerificationCodeRequest', 'accessToken'); - BuiltValueNullFieldError.checkNotNull(attributeName, - r'GetUserAttributeVerificationCodeRequest', 'attributeName'); + accessToken, + r'GetUserAttributeVerificationCodeRequest', + 'accessToken', + ); + BuiltValueNullFieldError.checkNotNull( + attributeName, + r'GetUserAttributeVerificationCodeRequest', + 'attributeName', + ); } @override GetUserAttributeVerificationCodeRequest rebuild( - void Function(GetUserAttributeVerificationCodeRequestBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(GetUserAttributeVerificationCodeRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetUserAttributeVerificationCodeRequestBuilder toBuilder() => @@ -64,8 +69,10 @@ class _$GetUserAttributeVerificationCodeRequest class GetUserAttributeVerificationCodeRequestBuilder implements - Builder { + Builder< + GetUserAttributeVerificationCodeRequest, + GetUserAttributeVerificationCodeRequestBuilder + > { _$GetUserAttributeVerificationCodeRequest? _$v; String? _accessToken; @@ -104,7 +111,8 @@ class GetUserAttributeVerificationCodeRequestBuilder @override void update( - void Function(GetUserAttributeVerificationCodeRequestBuilder)? updates) { + void Function(GetUserAttributeVerificationCodeRequestBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -114,12 +122,19 @@ class GetUserAttributeVerificationCodeRequestBuilder _$GetUserAttributeVerificationCodeRequest _build() { _$GetUserAttributeVerificationCodeRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetUserAttributeVerificationCodeRequest._( - accessToken: BuiltValueNullFieldError.checkNotNull(accessToken, - r'GetUserAttributeVerificationCodeRequest', 'accessToken'), - attributeName: BuiltValueNullFieldError.checkNotNull(attributeName, - r'GetUserAttributeVerificationCodeRequest', 'attributeName'), + accessToken: BuiltValueNullFieldError.checkNotNull( + accessToken, + r'GetUserAttributeVerificationCodeRequest', + 'accessToken', + ), + attributeName: BuiltValueNullFieldError.checkNotNull( + attributeName, + r'GetUserAttributeVerificationCodeRequest', + 'attributeName', + ), clientMetadata: _clientMetadata?.build(), ); } catch (_) { @@ -129,9 +144,10 @@ class GetUserAttributeVerificationCodeRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetUserAttributeVerificationCodeRequest', - _$failedField, - e.toString()); + r'GetUserAttributeVerificationCodeRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.dart index 92e05abeac..65b782529e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.dart @@ -13,22 +13,25 @@ part 'get_user_attribute_verification_code_response.g.dart'; /// The verification code response returned by the server response to get the user attribute verification code. abstract class GetUserAttributeVerificationCodeResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + GetUserAttributeVerificationCodeResponse, + GetUserAttributeVerificationCodeResponseBuilder + > { /// The verification code response returned by the server response to get the user attribute verification code. - factory GetUserAttributeVerificationCodeResponse( - {CodeDeliveryDetailsType? codeDeliveryDetails}) { + factory GetUserAttributeVerificationCodeResponse({ + CodeDeliveryDetailsType? codeDeliveryDetails, + }) { return _$GetUserAttributeVerificationCodeResponse._( - codeDeliveryDetails: codeDeliveryDetails); + codeDeliveryDetails: codeDeliveryDetails, + ); } /// The verification code response returned by the server response to get the user attribute verification code. - factory GetUserAttributeVerificationCodeResponse.build( - [void Function(GetUserAttributeVerificationCodeResponseBuilder) - updates]) = _$GetUserAttributeVerificationCodeResponse; + factory GetUserAttributeVerificationCodeResponse.build([ + void Function(GetUserAttributeVerificationCodeResponseBuilder) updates, + ]) = _$GetUserAttributeVerificationCodeResponse; const GetUserAttributeVerificationCodeResponse._(); @@ -36,14 +39,12 @@ abstract class GetUserAttributeVerificationCodeResponse factory GetUserAttributeVerificationCodeResponse.fromResponse( GetUserAttributeVerificationCodeResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List< - _i2.SmithySerializer> - serializers = [ - GetUserAttributeVerificationCodeResponseAwsJson11Serializer() - ]; + _i2.SmithySerializer + > + serializers = [GetUserAttributeVerificationCodeResponseAwsJson11Serializer()]; /// The code delivery details returned by the server in response to the request to get the user attribute verification code. CodeDeliveryDetailsType? get codeDeliveryDetails; @@ -52,34 +53,31 @@ abstract class GetUserAttributeVerificationCodeResponse @override String toString() { - final helper = - newBuiltValueToStringHelper('GetUserAttributeVerificationCodeResponse') - ..add( - 'codeDeliveryDetails', - codeDeliveryDetails, - ); + final helper = newBuiltValueToStringHelper( + 'GetUserAttributeVerificationCodeResponse', + )..add('codeDeliveryDetails', codeDeliveryDetails); return helper.toString(); } } -class GetUserAttributeVerificationCodeResponseAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class GetUserAttributeVerificationCodeResponseAwsJson11Serializer + extends + _i2.StructuredSmithySerializer< + GetUserAttributeVerificationCodeResponse + > { const GetUserAttributeVerificationCodeResponseAwsJson11Serializer() - : super('GetUserAttributeVerificationCodeResponse'); + : super('GetUserAttributeVerificationCodeResponse'); @override Iterable get types => const [ - GetUserAttributeVerificationCodeResponse, - _$GetUserAttributeVerificationCodeResponse, - ]; + GetUserAttributeVerificationCodeResponse, + _$GetUserAttributeVerificationCodeResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetUserAttributeVerificationCodeResponse deserialize( @@ -98,10 +96,13 @@ class GetUserAttributeVerificationCodeResponseAwsJson11Serializer extends _i2 } switch (key) { case 'CodeDeliveryDetails': - result.codeDeliveryDetails.replace((serializers.deserialize( - value, - specifiedType: const FullType(CodeDeliveryDetailsType), - ) as CodeDeliveryDetailsType)); + result.codeDeliveryDetails.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CodeDeliveryDetailsType), + ) + as CodeDeliveryDetailsType), + ); } } @@ -120,10 +121,12 @@ class GetUserAttributeVerificationCodeResponseAwsJson11Serializer extends _i2 if (codeDeliveryDetails != null) { result$ ..add('CodeDeliveryDetails') - ..add(serializers.serialize( - codeDeliveryDetails, - specifiedType: const FullType(CodeDeliveryDetailsType), - )); + ..add( + serializers.serialize( + codeDeliveryDetails, + specifiedType: const FullType(CodeDeliveryDetailsType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.g.dart index 466cb6b8ed..20375d85fc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_attribute_verification_code_response.g.dart @@ -11,20 +11,19 @@ class _$GetUserAttributeVerificationCodeResponse @override final CodeDeliveryDetailsType? codeDeliveryDetails; - factory _$GetUserAttributeVerificationCodeResponse( - [void Function(GetUserAttributeVerificationCodeResponseBuilder)? - updates]) => + factory _$GetUserAttributeVerificationCodeResponse([ + void Function(GetUserAttributeVerificationCodeResponseBuilder)? updates, + ]) => (new GetUserAttributeVerificationCodeResponseBuilder()..update(updates)) ._build(); _$GetUserAttributeVerificationCodeResponse._({this.codeDeliveryDetails}) - : super._(); + : super._(); @override GetUserAttributeVerificationCodeResponse rebuild( - void Function(GetUserAttributeVerificationCodeResponseBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(GetUserAttributeVerificationCodeResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetUserAttributeVerificationCodeResponseBuilder toBuilder() => @@ -48,16 +47,18 @@ class _$GetUserAttributeVerificationCodeResponse class GetUserAttributeVerificationCodeResponseBuilder implements - Builder { + Builder< + GetUserAttributeVerificationCodeResponse, + GetUserAttributeVerificationCodeResponseBuilder + > { _$GetUserAttributeVerificationCodeResponse? _$v; CodeDeliveryDetailsTypeBuilder? _codeDeliveryDetails; CodeDeliveryDetailsTypeBuilder get codeDeliveryDetails => _$this._codeDeliveryDetails ??= new CodeDeliveryDetailsTypeBuilder(); set codeDeliveryDetails( - CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails) => - _$this._codeDeliveryDetails = codeDeliveryDetails; + CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails, + ) => _$this._codeDeliveryDetails = codeDeliveryDetails; GetUserAttributeVerificationCodeResponseBuilder(); @@ -78,7 +79,8 @@ class GetUserAttributeVerificationCodeResponseBuilder @override void update( - void Function(GetUserAttributeVerificationCodeResponseBuilder)? updates) { + void Function(GetUserAttributeVerificationCodeResponseBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -88,7 +90,8 @@ class GetUserAttributeVerificationCodeResponseBuilder _$GetUserAttributeVerificationCodeResponse _build() { _$GetUserAttributeVerificationCodeResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetUserAttributeVerificationCodeResponse._( codeDeliveryDetails: _codeDeliveryDetails?.build(), ); @@ -99,9 +102,10 @@ class GetUserAttributeVerificationCodeResponseBuilder _codeDeliveryDetails?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetUserAttributeVerificationCodeResponse', - _$failedField, - e.toString()); + r'GetUserAttributeVerificationCodeResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.dart index 61c037aa61..e91652e935 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.dart @@ -29,11 +29,10 @@ abstract class GetUserRequest GetUserRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - GetUserRequestAwsJson11Serializer() + GetUserRequestAwsJson11Serializer(), ]; /// A non-expired access token for the user whose information you want to query. @@ -47,10 +46,7 @@ abstract class GetUserRequest @override String toString() { final helper = newBuiltValueToStringHelper('GetUserRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ); + ..add('accessToken', '***SENSITIVE***'); return helper.toString(); } } @@ -60,18 +56,12 @@ class GetUserRequestAwsJson11Serializer const GetUserRequestAwsJson11Serializer() : super('GetUserRequest'); @override - Iterable get types => const [ - GetUserRequest, - _$GetUserRequest, - ]; + Iterable get types => const [GetUserRequest, _$GetUserRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetUserRequest deserialize( @@ -90,10 +80,12 @@ class GetUserRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -110,10 +102,7 @@ class GetUserRequestAwsJson11Serializer final GetUserRequest(:accessToken) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.g.dart index 8b4a2d2c5c..26fde9bdd1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_request.g.dart @@ -15,7 +15,10 @@ class _$GetUserRequest extends GetUserRequest { _$GetUserRequest._({required this.accessToken}) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'GetUserRequest', 'accessToken'); + accessToken, + r'GetUserRequest', + 'accessToken', + ); } @override @@ -75,10 +78,14 @@ class GetUserRequestBuilder GetUserRequest build() => _build(); _$GetUserRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetUserRequest._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'GetUserRequest', 'accessToken'), + accessToken, + r'GetUserRequest', + 'accessToken', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.dart index 249a5a3fdf..4380048878 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.dart @@ -36,8 +36,9 @@ abstract class GetUserResponse } /// Represents the response from the server from the request to get information about the user. - factory GetUserResponse.build( - [void Function(GetUserResponseBuilder) updates]) = _$GetUserResponse; + factory GetUserResponse.build([ + void Function(GetUserResponseBuilder) updates, + ]) = _$GetUserResponse; const GetUserResponse._(); @@ -45,11 +46,10 @@ abstract class GetUserResponse factory GetUserResponse.fromResponse( GetUserResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - GetUserResponseAwsJson11Serializer() + GetUserResponseAwsJson11Serializer(), ]; /// The username of the user that you requested. @@ -70,36 +70,22 @@ abstract class GetUserResponse _i2.BuiltList? get userMfaSettingList; @override List get props => [ - username, - userAttributes, - mfaOptions, - preferredMfaSetting, - userMfaSettingList, - ]; + username, + userAttributes, + mfaOptions, + preferredMfaSetting, + userMfaSettingList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetUserResponse') - ..add( - 'username', - '***SENSITIVE***', - ) - ..add( - 'userAttributes', - userAttributes, - ) - ..add( - 'mfaOptions', - mfaOptions, - ) - ..add( - 'preferredMfaSetting', - preferredMfaSetting, - ) - ..add( - 'userMfaSettingList', - userMfaSettingList, - ); + final helper = + newBuiltValueToStringHelper('GetUserResponse') + ..add('username', '***SENSITIVE***') + ..add('userAttributes', userAttributes) + ..add('mfaOptions', mfaOptions) + ..add('preferredMfaSetting', preferredMfaSetting) + ..add('userMfaSettingList', userMfaSettingList); return helper.toString(); } } @@ -109,18 +95,12 @@ class GetUserResponseAwsJson11Serializer const GetUserResponseAwsJson11Serializer() : super('GetUserResponse'); @override - Iterable get types => const [ - GetUserResponse, - _$GetUserResponse, - ]; + Iterable get types => const [GetUserResponse, _$GetUserResponse]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GetUserResponse deserialize( @@ -139,39 +119,49 @@ class GetUserResponseAwsJson11Serializer } switch (key) { case 'Username': - result.username = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.username = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UserAttributes': - result.userAttributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(AttributeType)], - ), - ) as _i2.BuiltList)); + result.userAttributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(AttributeType), + ]), + ) + as _i2.BuiltList), + ); case 'MFAOptions': - result.mfaOptions.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(MfaOptionType)], - ), - ) as _i2.BuiltList)); + result.mfaOptions.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(MfaOptionType), + ]), + ) + as _i2.BuiltList), + ); case 'PreferredMfaSetting': - result.preferredMfaSetting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.preferredMfaSetting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UserMFASettingList': - result.userMfaSettingList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.userMfaSettingList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -190,52 +180,48 @@ class GetUserResponseAwsJson11Serializer :userAttributes, :mfaOptions, :preferredMfaSetting, - :userMfaSettingList + :userMfaSettingList, ) = object; result$.addAll([ 'Username', - serializers.serialize( - username, - specifiedType: const FullType(String), - ), + serializers.serialize(username, specifiedType: const FullType(String)), 'UserAttributes', serializers.serialize( userAttributes, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(AttributeType)], - ), + specifiedType: const FullType(_i2.BuiltList, [FullType(AttributeType)]), ), ]); if (mfaOptions != null) { result$ ..add('MFAOptions') - ..add(serializers.serialize( - mfaOptions, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(MfaOptionType)], + ..add( + serializers.serialize( + mfaOptions, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(MfaOptionType), + ]), ), - )); + ); } if (preferredMfaSetting != null) { result$ ..add('PreferredMfaSetting') - ..add(serializers.serialize( - preferredMfaSetting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + preferredMfaSetting, + specifiedType: const FullType(String), + ), + ); } if (userMfaSettingList != null) { result$ ..add('UserMFASettingList') - ..add(serializers.serialize( - userMfaSettingList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + userMfaSettingList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.g.dart index c8958749e1..3356d2598d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/get_user_response.g.dart @@ -21,17 +21,23 @@ class _$GetUserResponse extends GetUserResponse { factory _$GetUserResponse([void Function(GetUserResponseBuilder)? updates]) => (new GetUserResponseBuilder()..update(updates))._build(); - _$GetUserResponse._( - {required this.username, - required this.userAttributes, - this.mfaOptions, - this.preferredMfaSetting, - this.userMfaSettingList}) - : super._() { + _$GetUserResponse._({ + required this.username, + required this.userAttributes, + this.mfaOptions, + this.preferredMfaSetting, + this.userMfaSettingList, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - username, r'GetUserResponse', 'username'); + username, + r'GetUserResponse', + 'username', + ); BuiltValueNullFieldError.checkNotNull( - userAttributes, r'GetUserResponse', 'userAttributes'); + userAttributes, + r'GetUserResponse', + 'userAttributes', + ); } @override @@ -129,10 +135,14 @@ class GetUserResponseBuilder _$GetUserResponse _build() { _$GetUserResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetUserResponse._( username: BuiltValueNullFieldError.checkNotNull( - username, r'GetUserResponse', 'username'), + username, + r'GetUserResponse', + 'username', + ), userAttributes: userAttributes.build(), mfaOptions: _mfaOptions?.build(), preferredMfaSetting: preferredMfaSetting, @@ -150,7 +160,10 @@ class GetUserResponseBuilder _userMfaSettingList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetUserResponse', _$failedField, e.toString()); + r'GetUserResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.dart index a19ee40a56..111c6a8627 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.dart @@ -22,9 +22,9 @@ abstract class GlobalSignOutRequest } /// Represents the request to sign out all devices. - factory GlobalSignOutRequest.build( - [void Function(GlobalSignOutRequestBuilder) updates]) = - _$GlobalSignOutRequest; + factory GlobalSignOutRequest.build([ + void Function(GlobalSignOutRequestBuilder) updates, + ]) = _$GlobalSignOutRequest; const GlobalSignOutRequest._(); @@ -32,11 +32,10 @@ abstract class GlobalSignOutRequest GlobalSignOutRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - GlobalSignOutRequestAwsJson11Serializer() + GlobalSignOutRequestAwsJson11Serializer(), ]; /// A valid access token that Amazon Cognito issued to the user who you want to sign out. @@ -50,10 +49,7 @@ abstract class GlobalSignOutRequest @override String toString() { final helper = newBuiltValueToStringHelper('GlobalSignOutRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ); + ..add('accessToken', '***SENSITIVE***'); return helper.toString(); } } @@ -61,21 +57,18 @@ abstract class GlobalSignOutRequest class GlobalSignOutRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const GlobalSignOutRequestAwsJson11Serializer() - : super('GlobalSignOutRequest'); + : super('GlobalSignOutRequest'); @override Iterable get types => const [ - GlobalSignOutRequest, - _$GlobalSignOutRequest, - ]; + GlobalSignOutRequest, + _$GlobalSignOutRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GlobalSignOutRequest deserialize( @@ -94,10 +87,12 @@ class GlobalSignOutRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -114,10 +109,7 @@ class GlobalSignOutRequestAwsJson11Serializer final GlobalSignOutRequest(:accessToken) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.g.dart index 5de84c566e..b2aaee795f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_request.g.dart @@ -10,19 +10,22 @@ class _$GlobalSignOutRequest extends GlobalSignOutRequest { @override final String accessToken; - factory _$GlobalSignOutRequest( - [void Function(GlobalSignOutRequestBuilder)? updates]) => - (new GlobalSignOutRequestBuilder()..update(updates))._build(); + factory _$GlobalSignOutRequest([ + void Function(GlobalSignOutRequestBuilder)? updates, + ]) => (new GlobalSignOutRequestBuilder()..update(updates))._build(); _$GlobalSignOutRequest._({required this.accessToken}) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'GlobalSignOutRequest', 'accessToken'); + accessToken, + r'GlobalSignOutRequest', + 'accessToken', + ); } @override GlobalSignOutRequest rebuild( - void Function(GlobalSignOutRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GlobalSignOutRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GlobalSignOutRequestBuilder toBuilder() => @@ -77,10 +80,14 @@ class GlobalSignOutRequestBuilder GlobalSignOutRequest build() => _build(); _$GlobalSignOutRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GlobalSignOutRequest._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'GlobalSignOutRequest', 'accessToken'), + accessToken, + r'GlobalSignOutRequest', + 'accessToken', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.dart index 0cd0cad3ba..fb3c652a68 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.dart @@ -22,9 +22,9 @@ abstract class GlobalSignOutResponse } /// The response to the request to sign out all devices. - factory GlobalSignOutResponse.build( - [void Function(GlobalSignOutResponseBuilder) updates]) = - _$GlobalSignOutResponse; + factory GlobalSignOutResponse.build([ + void Function(GlobalSignOutResponseBuilder) updates, + ]) = _$GlobalSignOutResponse; const GlobalSignOutResponse._(); @@ -32,11 +32,10 @@ abstract class GlobalSignOutResponse factory GlobalSignOutResponse.fromResponse( GlobalSignOutResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - GlobalSignOutResponseAwsJson11Serializer() + GlobalSignOutResponseAwsJson11Serializer(), ]; @override @@ -52,21 +51,18 @@ abstract class GlobalSignOutResponse class GlobalSignOutResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const GlobalSignOutResponseAwsJson11Serializer() - : super('GlobalSignOutResponse'); + : super('GlobalSignOutResponse'); @override Iterable get types => const [ - GlobalSignOutResponse, - _$GlobalSignOutResponse, - ]; + GlobalSignOutResponse, + _$GlobalSignOutResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GlobalSignOutResponse deserialize( @@ -82,6 +78,5 @@ class GlobalSignOutResponseAwsJson11Serializer Serializers serializers, GlobalSignOutResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.g.dart index 63cad3c686..d43c20748a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/global_sign_out_response.g.dart @@ -7,16 +7,16 @@ part of 'global_sign_out_response.dart'; // ************************************************************************** class _$GlobalSignOutResponse extends GlobalSignOutResponse { - factory _$GlobalSignOutResponse( - [void Function(GlobalSignOutResponseBuilder)? updates]) => - (new GlobalSignOutResponseBuilder()..update(updates))._build(); + factory _$GlobalSignOutResponse([ + void Function(GlobalSignOutResponseBuilder)? updates, + ]) => (new GlobalSignOutResponseBuilder()..update(updates))._build(); _$GlobalSignOutResponse._() : super._(); @override GlobalSignOutResponse rebuild( - void Function(GlobalSignOutResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GlobalSignOutResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GlobalSignOutResponseBuilder toBuilder() => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.dart index d950158c01..33fd533a04 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.dart @@ -42,9 +42,9 @@ abstract class InitiateAuthRequest } /// Initiates the authentication request. - factory InitiateAuthRequest.build( - [void Function(InitiateAuthRequestBuilder) updates]) = - _$InitiateAuthRequest; + factory InitiateAuthRequest.build([ + void Function(InitiateAuthRequestBuilder) updates, + ]) = _$InitiateAuthRequest; const InitiateAuthRequest._(); @@ -52,11 +52,10 @@ abstract class InitiateAuthRequest InitiateAuthRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - InitiateAuthRequestAwsJson11Serializer() + InitiateAuthRequestAwsJson11Serializer(), ]; /// The authentication flow for this call to run. The API action will depend on this value. For example: @@ -146,41 +145,24 @@ abstract class InitiateAuthRequest @override List get props => [ - authFlow, - authParameters, - clientMetadata, - clientId, - analyticsMetadata, - userContextData, - ]; + authFlow, + authParameters, + clientMetadata, + clientId, + analyticsMetadata, + userContextData, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InitiateAuthRequest') - ..add( - 'authFlow', - authFlow, - ) - ..add( - 'authParameters', - '***SENSITIVE***', - ) - ..add( - 'clientMetadata', - clientMetadata, - ) - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'analyticsMetadata', - analyticsMetadata, - ) - ..add( - 'userContextData', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('InitiateAuthRequest') + ..add('authFlow', authFlow) + ..add('authParameters', '***SENSITIVE***') + ..add('clientMetadata', clientMetadata) + ..add('clientId', '***SENSITIVE***') + ..add('analyticsMetadata', analyticsMetadata) + ..add('userContextData', '***SENSITIVE***'); return helper.toString(); } } @@ -191,17 +173,14 @@ class InitiateAuthRequestAwsJson11Serializer @override Iterable get types => const [ - InitiateAuthRequest, - _$InitiateAuthRequest, - ]; + InitiateAuthRequest, + _$InitiateAuthRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InitiateAuthRequest deserialize( @@ -220,47 +199,57 @@ class InitiateAuthRequestAwsJson11Serializer } switch (key) { case 'AuthFlow': - result.authFlow = (serializers.deserialize( - value, - specifiedType: const FullType(AuthFlowType), - ) as AuthFlowType); + result.authFlow = + (serializers.deserialize( + value, + specifiedType: const FullType(AuthFlowType), + ) + as AuthFlowType); case 'AuthParameters': - result.authParameters.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.authParameters.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AnalyticsMetadata': - result.analyticsMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(AnalyticsMetadataType), - ) as AnalyticsMetadataType)); + result.analyticsMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AnalyticsMetadataType), + ) + as AnalyticsMetadataType), + ); case 'UserContextData': - result.userContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(UserContextDataType), - ) as UserContextDataType)); + result.userContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + ) + as UserContextDataType), + ); } } @@ -280,7 +269,7 @@ class InitiateAuthRequestAwsJson11Serializer :clientMetadata, :clientId, :analyticsMetadata, - :userContextData + :userContextData, ) = object; result$.addAll([ 'AuthFlow', @@ -289,54 +278,53 @@ class InitiateAuthRequestAwsJson11Serializer specifiedType: const FullType(AuthFlowType), ), 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), ]); if (authParameters != null) { result$ ..add('AuthParameters') - ..add(serializers.serialize( - authParameters, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + authParameters, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (analyticsMetadata != null) { result$ ..add('AnalyticsMetadata') - ..add(serializers.serialize( - analyticsMetadata, - specifiedType: const FullType(AnalyticsMetadataType), - )); + ..add( + serializers.serialize( + analyticsMetadata, + specifiedType: const FullType(AnalyticsMetadataType), + ), + ); } if (userContextData != null) { result$ ..add('UserContextData') - ..add(serializers.serialize( - userContextData, - specifiedType: const FullType(UserContextDataType), - )); + ..add( + serializers.serialize( + userContextData, + specifiedType: const FullType(UserContextDataType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.g.dart index 7bd8e6571e..18733b7deb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_request.g.dart @@ -20,28 +20,34 @@ class _$InitiateAuthRequest extends InitiateAuthRequest { @override final UserContextDataType? userContextData; - factory _$InitiateAuthRequest( - [void Function(InitiateAuthRequestBuilder)? updates]) => - (new InitiateAuthRequestBuilder()..update(updates))._build(); - - _$InitiateAuthRequest._( - {required this.authFlow, - this.authParameters, - this.clientMetadata, - required this.clientId, - this.analyticsMetadata, - this.userContextData}) - : super._() { + factory _$InitiateAuthRequest([ + void Function(InitiateAuthRequestBuilder)? updates, + ]) => (new InitiateAuthRequestBuilder()..update(updates))._build(); + + _$InitiateAuthRequest._({ + required this.authFlow, + this.authParameters, + this.clientMetadata, + required this.clientId, + this.analyticsMetadata, + this.userContextData, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - authFlow, r'InitiateAuthRequest', 'authFlow'); + authFlow, + r'InitiateAuthRequest', + 'authFlow', + ); BuiltValueNullFieldError.checkNotNull( - clientId, r'InitiateAuthRequest', 'clientId'); + clientId, + r'InitiateAuthRequest', + 'clientId', + ); } @override InitiateAuthRequest rebuild( - void Function(InitiateAuthRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InitiateAuthRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InitiateAuthRequestBuilder toBuilder() => @@ -142,14 +148,21 @@ class InitiateAuthRequestBuilder _$InitiateAuthRequest _build() { _$InitiateAuthRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InitiateAuthRequest._( authFlow: BuiltValueNullFieldError.checkNotNull( - authFlow, r'InitiateAuthRequest', 'authFlow'), + authFlow, + r'InitiateAuthRequest', + 'authFlow', + ), authParameters: _authParameters?.build(), clientMetadata: _clientMetadata?.build(), clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'InitiateAuthRequest', 'clientId'), + clientId, + r'InitiateAuthRequest', + 'clientId', + ), analyticsMetadata: _analyticsMetadata?.build(), userContextData: _userContextData?.build(), ); @@ -167,7 +180,10 @@ class InitiateAuthRequestBuilder _userContextData?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InitiateAuthRequest', _$failedField, e.toString()); + r'InitiateAuthRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.dart index b4d2d39b01..927f83c844 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.dart @@ -27,17 +27,18 @@ abstract class InitiateAuthResponse return _$InitiateAuthResponse._( challengeName: challengeName, session: session, - challengeParameters: challengeParameters == null - ? null - : _i2.BuiltMap(challengeParameters), + challengeParameters: + challengeParameters == null + ? null + : _i2.BuiltMap(challengeParameters), authenticationResult: authenticationResult, ); } /// Initiates the authentication response. - factory InitiateAuthResponse.build( - [void Function(InitiateAuthResponseBuilder) updates]) = - _$InitiateAuthResponse; + factory InitiateAuthResponse.build([ + void Function(InitiateAuthResponseBuilder) updates, + ]) = _$InitiateAuthResponse; const InitiateAuthResponse._(); @@ -45,11 +46,10 @@ abstract class InitiateAuthResponse factory InitiateAuthResponse.fromResponse( InitiateAuthResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - InitiateAuthResponseAwsJson11Serializer() + InitiateAuthResponseAwsJson11Serializer(), ]; /// The name of the challenge that you're responding to with this call. This name is returned in the `InitiateAuth` response if you must pass another challenge. @@ -93,31 +93,20 @@ abstract class InitiateAuthResponse AuthenticationResultType? get authenticationResult; @override List get props => [ - challengeName, - session, - challengeParameters, - authenticationResult, - ]; + challengeName, + session, + challengeParameters, + authenticationResult, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InitiateAuthResponse') - ..add( - 'challengeName', - challengeName, - ) - ..add( - 'session', - '***SENSITIVE***', - ) - ..add( - 'challengeParameters', - challengeParameters, - ) - ..add( - 'authenticationResult', - authenticationResult, - ); + final helper = + newBuiltValueToStringHelper('InitiateAuthResponse') + ..add('challengeName', challengeName) + ..add('session', '***SENSITIVE***') + ..add('challengeParameters', challengeParameters) + ..add('authenticationResult', authenticationResult); return helper.toString(); } } @@ -125,21 +114,18 @@ abstract class InitiateAuthResponse class InitiateAuthResponseAwsJson11Serializer extends _i3.StructuredSmithySerializer { const InitiateAuthResponseAwsJson11Serializer() - : super('InitiateAuthResponse'); + : super('InitiateAuthResponse'); @override Iterable get types => const [ - InitiateAuthResponse, - _$InitiateAuthResponse, - ]; + InitiateAuthResponse, + _$InitiateAuthResponse, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InitiateAuthResponse deserialize( @@ -158,31 +144,38 @@ class InitiateAuthResponseAwsJson11Serializer } switch (key) { case 'ChallengeName': - result.challengeName = (serializers.deserialize( - value, - specifiedType: const FullType(ChallengeNameType), - ) as ChallengeNameType); + result.challengeName = + (serializers.deserialize( + value, + specifiedType: const FullType(ChallengeNameType), + ) + as ChallengeNameType); case 'Session': - result.session = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.session = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChallengeParameters': - result.challengeParameters.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i2.BuiltMap)); + result.challengeParameters.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i2.BuiltMap), + ); case 'AuthenticationResult': - result.authenticationResult.replace((serializers.deserialize( - value, - specifiedType: const FullType(AuthenticationResultType), - ) as AuthenticationResultType)); + result.authenticationResult.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AuthenticationResultType), + ) + as AuthenticationResultType), + ); } } @@ -200,45 +193,47 @@ class InitiateAuthResponseAwsJson11Serializer :challengeName, :session, :challengeParameters, - :authenticationResult + :authenticationResult, ) = object; if (challengeName != null) { result$ ..add('ChallengeName') - ..add(serializers.serialize( - challengeName, - specifiedType: const FullType(ChallengeNameType), - )); + ..add( + serializers.serialize( + challengeName, + specifiedType: const FullType(ChallengeNameType), + ), + ); } if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(session, specifiedType: const FullType(String)), + ); } if (challengeParameters != null) { result$ ..add('ChallengeParameters') - ..add(serializers.serialize( - challengeParameters, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + challengeParameters, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType.nullable(String), - ], + ]), ), - )); + ); } if (authenticationResult != null) { result$ ..add('AuthenticationResult') - ..add(serializers.serialize( - authenticationResult, - specifiedType: const FullType(AuthenticationResultType), - )); + ..add( + serializers.serialize( + authenticationResult, + specifiedType: const FullType(AuthenticationResultType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.g.dart index 1ce1d84a6a..aa5242439a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/initiate_auth_response.g.dart @@ -16,21 +16,21 @@ class _$InitiateAuthResponse extends InitiateAuthResponse { @override final AuthenticationResultType? authenticationResult; - factory _$InitiateAuthResponse( - [void Function(InitiateAuthResponseBuilder)? updates]) => - (new InitiateAuthResponseBuilder()..update(updates))._build(); + factory _$InitiateAuthResponse([ + void Function(InitiateAuthResponseBuilder)? updates, + ]) => (new InitiateAuthResponseBuilder()..update(updates))._build(); - _$InitiateAuthResponse._( - {this.challengeName, - this.session, - this.challengeParameters, - this.authenticationResult}) - : super._(); + _$InitiateAuthResponse._({ + this.challengeName, + this.session, + this.challengeParameters, + this.authenticationResult, + }) : super._(); @override InitiateAuthResponse rebuild( - void Function(InitiateAuthResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InitiateAuthResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InitiateAuthResponseBuilder toBuilder() => @@ -75,15 +75,15 @@ class InitiateAuthResponseBuilder _i2.MapBuilder get challengeParameters => _$this._challengeParameters ??= new _i2.MapBuilder(); set challengeParameters( - _i2.MapBuilder? challengeParameters) => - _$this._challengeParameters = challengeParameters; + _i2.MapBuilder? challengeParameters, + ) => _$this._challengeParameters = challengeParameters; AuthenticationResultTypeBuilder? _authenticationResult; AuthenticationResultTypeBuilder get authenticationResult => _$this._authenticationResult ??= new AuthenticationResultTypeBuilder(); set authenticationResult( - AuthenticationResultTypeBuilder? authenticationResult) => - _$this._authenticationResult = authenticationResult; + AuthenticationResultTypeBuilder? authenticationResult, + ) => _$this._authenticationResult = authenticationResult; InitiateAuthResponseBuilder(); @@ -116,7 +116,8 @@ class InitiateAuthResponseBuilder _$InitiateAuthResponse _build() { _$InitiateAuthResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InitiateAuthResponse._( challengeName: challengeName, session: session, @@ -132,7 +133,10 @@ class InitiateAuthResponseBuilder _authenticationResult?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InitiateAuthResponse', _$failedField, e.toString()); + r'InitiateAuthResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart index ba19414e69..089d92e50f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart @@ -22,9 +22,9 @@ abstract class InternalErrorException } /// This exception is thrown when Amazon Cognito encounters an internal error. - factory InternalErrorException.build( - [void Function(InternalErrorExceptionBuilder) updates]) = - _$InternalErrorException; + factory InternalErrorException.build([ + void Function(InternalErrorExceptionBuilder) updates, + ]) = _$InternalErrorException; const InternalErrorException._(); @@ -32,11 +32,10 @@ abstract class InternalErrorException factory InternalErrorException.fromResponse( InternalErrorException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [InternalErrorExceptionAwsJson11Serializer()]; @@ -46,9 +45,9 @@ abstract class InternalErrorException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class InternalErrorException @override String toString() { final helper = newBuiltValueToStringHelper('InternalErrorException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class InternalErrorException class InternalErrorExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InternalErrorExceptionAwsJson11Serializer() - : super('InternalErrorException'); + : super('InternalErrorException'); @override Iterable get types => const [ - InternalErrorException, - _$InternalErrorException, - ]; + InternalErrorException, + _$InternalErrorException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InternalErrorException deserialize( @@ -112,10 +105,12 @@ class InternalErrorExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class InternalErrorExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart index 90dfcf61a4..c9487b9ee1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart @@ -14,17 +14,17 @@ class _$InternalErrorException extends InternalErrorException { @override final Map? headers; - factory _$InternalErrorException( - [void Function(InternalErrorExceptionBuilder)? updates]) => - (new InternalErrorExceptionBuilder()..update(updates))._build(); + factory _$InternalErrorException([ + void Function(InternalErrorExceptionBuilder)? updates, + ]) => (new InternalErrorExceptionBuilder()..update(updates))._build(); _$InternalErrorException._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InternalErrorException rebuild( - void Function(InternalErrorExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InternalErrorExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InternalErrorExceptionBuilder toBuilder() => @@ -89,7 +89,8 @@ class InternalErrorExceptionBuilder InternalErrorException build() => _build(); _$InternalErrorException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InternalErrorException._( message: message, statusCode: statusCode, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.dart index 9593759c9c..2dc676674b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.dart @@ -12,11 +12,12 @@ part 'invalid_email_role_access_policy_exception.g.dart'; /// This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP status code: 400. abstract class InvalidEmailRoleAccessPolicyException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP status code: 400. factory InvalidEmailRoleAccessPolicyException({String? message}) { @@ -24,9 +25,9 @@ abstract class InvalidEmailRoleAccessPolicyException } /// This exception is thrown when Amazon Cognito isn't allowed to use your email identity. HTTP status code: 400. - factory InvalidEmailRoleAccessPolicyException.build( - [void Function(InvalidEmailRoleAccessPolicyExceptionBuilder) - updates]) = _$InvalidEmailRoleAccessPolicyException; + factory InvalidEmailRoleAccessPolicyException.build([ + void Function(InvalidEmailRoleAccessPolicyExceptionBuilder) updates, + ]) = _$InvalidEmailRoleAccessPolicyException; const InvalidEmailRoleAccessPolicyException._(); @@ -34,24 +35,21 @@ abstract class InvalidEmailRoleAccessPolicyException factory InvalidEmailRoleAccessPolicyException.fromResponse( InvalidEmailRoleAccessPolicyException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ - InvalidEmailRoleAccessPolicyExceptionAwsJson11Serializer() - ]; + serializers = [InvalidEmailRoleAccessPolicyExceptionAwsJson11Serializer()]; /// The message returned when you have an unverified email address or the identity policy isn't set on an email address that Amazon Cognito can access. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -71,34 +69,29 @@ abstract class InvalidEmailRoleAccessPolicyException @override String toString() { - final helper = - newBuiltValueToStringHelper('InvalidEmailRoleAccessPolicyException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'InvalidEmailRoleAccessPolicyException', + )..add('message', message); return helper.toString(); } } -class InvalidEmailRoleAccessPolicyExceptionAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class InvalidEmailRoleAccessPolicyExceptionAwsJson11Serializer + extends + _i2.StructuredSmithySerializer { const InvalidEmailRoleAccessPolicyExceptionAwsJson11Serializer() - : super('InvalidEmailRoleAccessPolicyException'); + : super('InvalidEmailRoleAccessPolicyException'); @override Iterable get types => const [ - InvalidEmailRoleAccessPolicyException, - _$InvalidEmailRoleAccessPolicyException, - ]; + InvalidEmailRoleAccessPolicyException, + _$InvalidEmailRoleAccessPolicyException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidEmailRoleAccessPolicyException deserialize( @@ -117,10 +110,12 @@ class InvalidEmailRoleAccessPolicyExceptionAwsJson11Serializer extends _i2 } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -138,10 +133,9 @@ class InvalidEmailRoleAccessPolicyExceptionAwsJson11Serializer extends _i2 if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.g.dart index 2793b49633..ab10939a84 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_email_role_access_policy_exception.g.dart @@ -13,20 +13,19 @@ class _$InvalidEmailRoleAccessPolicyException @override final Map? headers; - factory _$InvalidEmailRoleAccessPolicyException( - [void Function(InvalidEmailRoleAccessPolicyExceptionBuilder)? - updates]) => + factory _$InvalidEmailRoleAccessPolicyException([ + void Function(InvalidEmailRoleAccessPolicyExceptionBuilder)? updates, + ]) => (new InvalidEmailRoleAccessPolicyExceptionBuilder()..update(updates)) ._build(); _$InvalidEmailRoleAccessPolicyException._({this.message, this.headers}) - : super._(); + : super._(); @override InvalidEmailRoleAccessPolicyException rebuild( - void Function(InvalidEmailRoleAccessPolicyExceptionBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidEmailRoleAccessPolicyExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidEmailRoleAccessPolicyExceptionBuilder toBuilder() => @@ -50,8 +49,10 @@ class _$InvalidEmailRoleAccessPolicyException class InvalidEmailRoleAccessPolicyExceptionBuilder implements - Builder { + Builder< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyExceptionBuilder + > { _$InvalidEmailRoleAccessPolicyException? _$v; String? _message; @@ -82,7 +83,8 @@ class InvalidEmailRoleAccessPolicyExceptionBuilder @override void update( - void Function(InvalidEmailRoleAccessPolicyExceptionBuilder)? updates) { + void Function(InvalidEmailRoleAccessPolicyExceptionBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -90,7 +92,8 @@ class InvalidEmailRoleAccessPolicyExceptionBuilder InvalidEmailRoleAccessPolicyException build() => _build(); _$InvalidEmailRoleAccessPolicyException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidEmailRoleAccessPolicyException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.dart index dcfeb43424..784bafe14f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.dart @@ -12,11 +12,12 @@ part 'invalid_lambda_response_exception.g.dart'; /// This exception is thrown when Amazon Cognito encounters an invalid Lambda response. abstract class InvalidLambdaResponseException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidLambdaResponseException, + InvalidLambdaResponseExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when Amazon Cognito encounters an invalid Lambda response. factory InvalidLambdaResponseException({String? message}) { @@ -24,9 +25,9 @@ abstract class InvalidLambdaResponseException } /// This exception is thrown when Amazon Cognito encounters an invalid Lambda response. - factory InvalidLambdaResponseException.build( - [void Function(InvalidLambdaResponseExceptionBuilder) updates]) = - _$InvalidLambdaResponseException; + factory InvalidLambdaResponseException.build([ + void Function(InvalidLambdaResponseExceptionBuilder) updates, + ]) = _$InvalidLambdaResponseException; const InvalidLambdaResponseException._(); @@ -34,22 +35,21 @@ abstract class InvalidLambdaResponseException factory InvalidLambdaResponseException.fromResponse( InvalidLambdaResponseException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidLambdaResponseExceptionAwsJson11Serializer()]; + serializers = [InvalidLambdaResponseExceptionAwsJson11Serializer()]; /// The message returned when Amazon Cognito throws an invalid Lambda response exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -70,10 +70,7 @@ abstract class InvalidLambdaResponseException @override String toString() { final helper = newBuiltValueToStringHelper('InvalidLambdaResponseException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -81,21 +78,18 @@ abstract class InvalidLambdaResponseException class InvalidLambdaResponseExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InvalidLambdaResponseExceptionAwsJson11Serializer() - : super('InvalidLambdaResponseException'); + : super('InvalidLambdaResponseException'); @override Iterable get types => const [ - InvalidLambdaResponseException, - _$InvalidLambdaResponseException, - ]; + InvalidLambdaResponseException, + _$InvalidLambdaResponseException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidLambdaResponseException deserialize( @@ -114,10 +108,12 @@ class InvalidLambdaResponseExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,10 +131,9 @@ class InvalidLambdaResponseExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.g.dart index f87751b387..89b7d0df81 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_lambda_response_exception.g.dart @@ -12,16 +12,16 @@ class _$InvalidLambdaResponseException extends InvalidLambdaResponseException { @override final Map? headers; - factory _$InvalidLambdaResponseException( - [void Function(InvalidLambdaResponseExceptionBuilder)? updates]) => - (new InvalidLambdaResponseExceptionBuilder()..update(updates))._build(); + factory _$InvalidLambdaResponseException([ + void Function(InvalidLambdaResponseExceptionBuilder)? updates, + ]) => (new InvalidLambdaResponseExceptionBuilder()..update(updates))._build(); _$InvalidLambdaResponseException._({this.message, this.headers}) : super._(); @override InvalidLambdaResponseException rebuild( - void Function(InvalidLambdaResponseExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidLambdaResponseExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidLambdaResponseExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$InvalidLambdaResponseException extends InvalidLambdaResponseException { class InvalidLambdaResponseExceptionBuilder implements - Builder { + Builder< + InvalidLambdaResponseException, + InvalidLambdaResponseExceptionBuilder + > { _$InvalidLambdaResponseException? _$v; String? _message; @@ -83,7 +85,8 @@ class InvalidLambdaResponseExceptionBuilder InvalidLambdaResponseException build() => _build(); _$InvalidLambdaResponseException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidLambdaResponseException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart index daed39aae1..89d458dce1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart @@ -22,9 +22,9 @@ abstract class InvalidParameterException } /// This exception is thrown when the Amazon Cognito service encounters an invalid parameter. - factory InvalidParameterException.build( - [void Function(InvalidParameterExceptionBuilder) updates]) = - _$InvalidParameterException; + factory InvalidParameterException.build([ + void Function(InvalidParameterExceptionBuilder) updates, + ]) = _$InvalidParameterException; const InvalidParameterException._(); @@ -32,22 +32,21 @@ abstract class InvalidParameterException factory InvalidParameterException.fromResponse( InvalidParameterException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidParameterExceptionAwsJson11Serializer()]; + serializers = [InvalidParameterExceptionAwsJson11Serializer()]; /// The message returned when the Amazon Cognito service throws an invalid parameter exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class InvalidParameterException @override String toString() { final helper = newBuiltValueToStringHelper('InvalidParameterException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class InvalidParameterException class InvalidParameterExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InvalidParameterExceptionAwsJson11Serializer() - : super('InvalidParameterException'); + : super('InvalidParameterException'); @override Iterable get types => const [ - InvalidParameterException, - _$InvalidParameterException, - ]; + InvalidParameterException, + _$InvalidParameterException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidParameterException deserialize( @@ -112,10 +105,12 @@ class InvalidParameterExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class InvalidParameterExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart index db2586e8b4..3dfadce51b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart @@ -12,16 +12,16 @@ class _$InvalidParameterException extends InvalidParameterException { @override final Map? headers; - factory _$InvalidParameterException( - [void Function(InvalidParameterExceptionBuilder)? updates]) => - (new InvalidParameterExceptionBuilder()..update(updates))._build(); + factory _$InvalidParameterException([ + void Function(InvalidParameterExceptionBuilder)? updates, + ]) => (new InvalidParameterExceptionBuilder()..update(updates))._build(); _$InvalidParameterException._({this.message, this.headers}) : super._(); @override InvalidParameterException rebuild( - void Function(InvalidParameterExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidParameterExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidParameterExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class InvalidParameterExceptionBuilder InvalidParameterException build() => _build(); _$InvalidParameterException _build() { - final _$result = _$v ?? - new _$InvalidParameterException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$InvalidParameterException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.dart index e4f651a82b..6dc74a0659 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.dart @@ -22,9 +22,9 @@ abstract class InvalidPasswordException } /// This exception is thrown when Amazon Cognito encounters an invalid password. - factory InvalidPasswordException.build( - [void Function(InvalidPasswordExceptionBuilder) updates]) = - _$InvalidPasswordException; + factory InvalidPasswordException.build([ + void Function(InvalidPasswordExceptionBuilder) updates, + ]) = _$InvalidPasswordException; const InvalidPasswordException._(); @@ -32,22 +32,21 @@ abstract class InvalidPasswordException factory InvalidPasswordException.fromResponse( InvalidPasswordException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidPasswordExceptionAwsJson11Serializer()]; + serializers = [InvalidPasswordExceptionAwsJson11Serializer()]; /// The message returned when Amazon Cognito throws an invalid user password exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidPasswordException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidPasswordException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class InvalidPasswordException @override String toString() { final helper = newBuiltValueToStringHelper('InvalidPasswordException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class InvalidPasswordException class InvalidPasswordExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InvalidPasswordExceptionAwsJson11Serializer() - : super('InvalidPasswordException'); + : super('InvalidPasswordException'); @override Iterable get types => const [ - InvalidPasswordException, - _$InvalidPasswordException, - ]; + InvalidPasswordException, + _$InvalidPasswordException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidPasswordException deserialize( @@ -112,10 +105,12 @@ class InvalidPasswordExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class InvalidPasswordExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.g.dart index 04a72b0f96..38bafe9ccf 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_password_exception.g.dart @@ -12,16 +12,16 @@ class _$InvalidPasswordException extends InvalidPasswordException { @override final Map? headers; - factory _$InvalidPasswordException( - [void Function(InvalidPasswordExceptionBuilder)? updates]) => - (new InvalidPasswordExceptionBuilder()..update(updates))._build(); + factory _$InvalidPasswordException([ + void Function(InvalidPasswordExceptionBuilder)? updates, + ]) => (new InvalidPasswordExceptionBuilder()..update(updates))._build(); _$InvalidPasswordException._({this.message, this.headers}) : super._(); @override InvalidPasswordException rebuild( - void Function(InvalidPasswordExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidPasswordExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidPasswordExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class InvalidPasswordExceptionBuilder InvalidPasswordException build() => _build(); _$InvalidPasswordException _build() { - final _$result = _$v ?? - new _$InvalidPasswordException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$InvalidPasswordException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.dart index 857cce6009..14f09437cc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.dart @@ -12,11 +12,12 @@ part 'invalid_sms_role_access_policy_exception.g.dart'; /// This exception is returned when the role provided for SMS configuration doesn't have permission to publish using Amazon SNS. abstract class InvalidSmsRoleAccessPolicyException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is returned when the role provided for SMS configuration doesn't have permission to publish using Amazon SNS. factory InvalidSmsRoleAccessPolicyException({String? message}) { @@ -24,9 +25,9 @@ abstract class InvalidSmsRoleAccessPolicyException } /// This exception is returned when the role provided for SMS configuration doesn't have permission to publish using Amazon SNS. - factory InvalidSmsRoleAccessPolicyException.build( - [void Function(InvalidSmsRoleAccessPolicyExceptionBuilder) updates]) = - _$InvalidSmsRoleAccessPolicyException; + factory InvalidSmsRoleAccessPolicyException.build([ + void Function(InvalidSmsRoleAccessPolicyExceptionBuilder) updates, + ]) = _$InvalidSmsRoleAccessPolicyException; const InvalidSmsRoleAccessPolicyException._(); @@ -34,22 +35,21 @@ abstract class InvalidSmsRoleAccessPolicyException factory InvalidSmsRoleAccessPolicyException.fromResponse( InvalidSmsRoleAccessPolicyException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidSmsRoleAccessPolicyExceptionAwsJson11Serializer()]; + serializers = [InvalidSmsRoleAccessPolicyExceptionAwsJson11Serializer()]; /// The message returned when the invalid SMS role access policy exception is thrown. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,34 +69,29 @@ abstract class InvalidSmsRoleAccessPolicyException @override String toString() { - final helper = - newBuiltValueToStringHelper('InvalidSmsRoleAccessPolicyException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'InvalidSmsRoleAccessPolicyException', + )..add('message', message); return helper.toString(); } } -class InvalidSmsRoleAccessPolicyExceptionAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class InvalidSmsRoleAccessPolicyExceptionAwsJson11Serializer + extends + _i2.StructuredSmithySerializer { const InvalidSmsRoleAccessPolicyExceptionAwsJson11Serializer() - : super('InvalidSmsRoleAccessPolicyException'); + : super('InvalidSmsRoleAccessPolicyException'); @override Iterable get types => const [ - InvalidSmsRoleAccessPolicyException, - _$InvalidSmsRoleAccessPolicyException, - ]; + InvalidSmsRoleAccessPolicyException, + _$InvalidSmsRoleAccessPolicyException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidSmsRoleAccessPolicyException deserialize( @@ -115,10 +110,12 @@ class InvalidSmsRoleAccessPolicyExceptionAwsJson11Serializer extends _i2 } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -136,10 +133,9 @@ class InvalidSmsRoleAccessPolicyExceptionAwsJson11Serializer extends _i2 if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.g.dart index 5fa5dde39b..964561d59e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_access_policy_exception.g.dart @@ -13,19 +13,19 @@ class _$InvalidSmsRoleAccessPolicyException @override final Map? headers; - factory _$InvalidSmsRoleAccessPolicyException( - [void Function(InvalidSmsRoleAccessPolicyExceptionBuilder)? - updates]) => + factory _$InvalidSmsRoleAccessPolicyException([ + void Function(InvalidSmsRoleAccessPolicyExceptionBuilder)? updates, + ]) => (new InvalidSmsRoleAccessPolicyExceptionBuilder()..update(updates)) ._build(); _$InvalidSmsRoleAccessPolicyException._({this.message, this.headers}) - : super._(); + : super._(); @override InvalidSmsRoleAccessPolicyException rebuild( - void Function(InvalidSmsRoleAccessPolicyExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidSmsRoleAccessPolicyExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidSmsRoleAccessPolicyExceptionBuilder toBuilder() => @@ -49,8 +49,10 @@ class _$InvalidSmsRoleAccessPolicyException class InvalidSmsRoleAccessPolicyExceptionBuilder implements - Builder { + Builder< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyExceptionBuilder + > { _$InvalidSmsRoleAccessPolicyException? _$v; String? _message; @@ -81,7 +83,8 @@ class InvalidSmsRoleAccessPolicyExceptionBuilder @override void update( - void Function(InvalidSmsRoleAccessPolicyExceptionBuilder)? updates) { + void Function(InvalidSmsRoleAccessPolicyExceptionBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -89,7 +92,8 @@ class InvalidSmsRoleAccessPolicyExceptionBuilder InvalidSmsRoleAccessPolicyException build() => _build(); _$InvalidSmsRoleAccessPolicyException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidSmsRoleAccessPolicyException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.dart index cf52736fff..f0895a049b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.dart @@ -12,11 +12,12 @@ part 'invalid_sms_role_trust_relationship_exception.g.dart'; /// This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don't trust `cognito-idp.amazonaws.com` or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool. abstract class InvalidSmsRoleTrustRelationshipException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don't trust `cognito-idp.amazonaws.com` or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool. factory InvalidSmsRoleTrustRelationshipException({String? message}) { @@ -24,9 +25,9 @@ abstract class InvalidSmsRoleTrustRelationshipException } /// This exception is thrown when the trust relationship is not valid for the role provided for SMS configuration. This can happen if you don't trust `cognito-idp.amazonaws.com` or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool. - factory InvalidSmsRoleTrustRelationshipException.build( - [void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder) - updates]) = _$InvalidSmsRoleTrustRelationshipException; + factory InvalidSmsRoleTrustRelationshipException.build([ + void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder) updates, + ]) = _$InvalidSmsRoleTrustRelationshipException; const InvalidSmsRoleTrustRelationshipException._(); @@ -34,25 +35,23 @@ abstract class InvalidSmsRoleTrustRelationshipException factory InvalidSmsRoleTrustRelationshipException.fromResponse( InvalidSmsRoleTrustRelationshipException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List< - _i2.SmithySerializer> - serializers = [ - InvalidSmsRoleTrustRelationshipExceptionAwsJson11Serializer() - ]; + _i2.SmithySerializer + > + serializers = [InvalidSmsRoleTrustRelationshipExceptionAwsJson11Serializer()]; /// The message returned when the role trust relationship for the SMS message is not valid. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -72,34 +71,31 @@ abstract class InvalidSmsRoleTrustRelationshipException @override String toString() { - final helper = - newBuiltValueToStringHelper('InvalidSmsRoleTrustRelationshipException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'InvalidSmsRoleTrustRelationshipException', + )..add('message', message); return helper.toString(); } } -class InvalidSmsRoleTrustRelationshipExceptionAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class InvalidSmsRoleTrustRelationshipExceptionAwsJson11Serializer + extends + _i2.StructuredSmithySerializer< + InvalidSmsRoleTrustRelationshipException + > { const InvalidSmsRoleTrustRelationshipExceptionAwsJson11Serializer() - : super('InvalidSmsRoleTrustRelationshipException'); + : super('InvalidSmsRoleTrustRelationshipException'); @override Iterable get types => const [ - InvalidSmsRoleTrustRelationshipException, - _$InvalidSmsRoleTrustRelationshipException, - ]; + InvalidSmsRoleTrustRelationshipException, + _$InvalidSmsRoleTrustRelationshipException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidSmsRoleTrustRelationshipException deserialize( @@ -118,10 +114,12 @@ class InvalidSmsRoleTrustRelationshipExceptionAwsJson11Serializer extends _i2 } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -139,10 +137,9 @@ class InvalidSmsRoleTrustRelationshipExceptionAwsJson11Serializer extends _i2 if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.g.dart index bb65b805e5..f25791e99b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_sms_role_trust_relationship_exception.g.dart @@ -13,20 +13,19 @@ class _$InvalidSmsRoleTrustRelationshipException @override final Map? headers; - factory _$InvalidSmsRoleTrustRelationshipException( - [void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder)? - updates]) => + factory _$InvalidSmsRoleTrustRelationshipException([ + void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder)? updates, + ]) => (new InvalidSmsRoleTrustRelationshipExceptionBuilder()..update(updates)) ._build(); _$InvalidSmsRoleTrustRelationshipException._({this.message, this.headers}) - : super._(); + : super._(); @override InvalidSmsRoleTrustRelationshipException rebuild( - void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidSmsRoleTrustRelationshipExceptionBuilder toBuilder() => @@ -50,8 +49,10 @@ class _$InvalidSmsRoleTrustRelationshipException class InvalidSmsRoleTrustRelationshipExceptionBuilder implements - Builder { + Builder< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipExceptionBuilder + > { _$InvalidSmsRoleTrustRelationshipException? _$v; String? _message; @@ -82,7 +83,8 @@ class InvalidSmsRoleTrustRelationshipExceptionBuilder @override void update( - void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder)? updates) { + void Function(InvalidSmsRoleTrustRelationshipExceptionBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -90,7 +92,8 @@ class InvalidSmsRoleTrustRelationshipExceptionBuilder InvalidSmsRoleTrustRelationshipException build() => _build(); _$InvalidSmsRoleTrustRelationshipException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidSmsRoleTrustRelationshipException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.dart index 62d8b0cec2..7efb7b97ad 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.dart @@ -12,11 +12,12 @@ part 'invalid_user_pool_configuration_exception.g.dart'; /// This exception is thrown when the user pool configuration is not valid. abstract class InvalidUserPoolConfigurationException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when the user pool configuration is not valid. factory InvalidUserPoolConfigurationException({String? message}) { @@ -24,9 +25,9 @@ abstract class InvalidUserPoolConfigurationException } /// This exception is thrown when the user pool configuration is not valid. - factory InvalidUserPoolConfigurationException.build( - [void Function(InvalidUserPoolConfigurationExceptionBuilder) - updates]) = _$InvalidUserPoolConfigurationException; + factory InvalidUserPoolConfigurationException.build([ + void Function(InvalidUserPoolConfigurationExceptionBuilder) updates, + ]) = _$InvalidUserPoolConfigurationException; const InvalidUserPoolConfigurationException._(); @@ -34,24 +35,21 @@ abstract class InvalidUserPoolConfigurationException factory InvalidUserPoolConfigurationException.fromResponse( InvalidUserPoolConfigurationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ - InvalidUserPoolConfigurationExceptionAwsJson11Serializer() - ]; + serializers = [InvalidUserPoolConfigurationExceptionAwsJson11Serializer()]; /// The message returned when the user pool configuration is not valid. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -71,34 +69,29 @@ abstract class InvalidUserPoolConfigurationException @override String toString() { - final helper = - newBuiltValueToStringHelper('InvalidUserPoolConfigurationException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'InvalidUserPoolConfigurationException', + )..add('message', message); return helper.toString(); } } -class InvalidUserPoolConfigurationExceptionAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class InvalidUserPoolConfigurationExceptionAwsJson11Serializer + extends + _i2.StructuredSmithySerializer { const InvalidUserPoolConfigurationExceptionAwsJson11Serializer() - : super('InvalidUserPoolConfigurationException'); + : super('InvalidUserPoolConfigurationException'); @override Iterable get types => const [ - InvalidUserPoolConfigurationException, - _$InvalidUserPoolConfigurationException, - ]; + InvalidUserPoolConfigurationException, + _$InvalidUserPoolConfigurationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidUserPoolConfigurationException deserialize( @@ -117,10 +110,12 @@ class InvalidUserPoolConfigurationExceptionAwsJson11Serializer extends _i2 } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -138,10 +133,9 @@ class InvalidUserPoolConfigurationExceptionAwsJson11Serializer extends _i2 if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.g.dart index 26c5511d8b..6d326daafc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/invalid_user_pool_configuration_exception.g.dart @@ -13,20 +13,19 @@ class _$InvalidUserPoolConfigurationException @override final Map? headers; - factory _$InvalidUserPoolConfigurationException( - [void Function(InvalidUserPoolConfigurationExceptionBuilder)? - updates]) => + factory _$InvalidUserPoolConfigurationException([ + void Function(InvalidUserPoolConfigurationExceptionBuilder)? updates, + ]) => (new InvalidUserPoolConfigurationExceptionBuilder()..update(updates)) ._build(); _$InvalidUserPoolConfigurationException._({this.message, this.headers}) - : super._(); + : super._(); @override InvalidUserPoolConfigurationException rebuild( - void Function(InvalidUserPoolConfigurationExceptionBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidUserPoolConfigurationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidUserPoolConfigurationExceptionBuilder toBuilder() => @@ -50,8 +49,10 @@ class _$InvalidUserPoolConfigurationException class InvalidUserPoolConfigurationExceptionBuilder implements - Builder { + Builder< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationExceptionBuilder + > { _$InvalidUserPoolConfigurationException? _$v; String? _message; @@ -82,7 +83,8 @@ class InvalidUserPoolConfigurationExceptionBuilder @override void update( - void Function(InvalidUserPoolConfigurationExceptionBuilder)? updates) { + void Function(InvalidUserPoolConfigurationExceptionBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -90,7 +92,8 @@ class InvalidUserPoolConfigurationExceptionBuilder InvalidUserPoolConfigurationException build() => _build(); _$InvalidUserPoolConfigurationException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidUserPoolConfigurationException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.dart index fc3900ee8d..0220ff65c7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.dart @@ -22,9 +22,9 @@ abstract class LimitExceededException } /// This exception is thrown when a user exceeds the limit for a requested Amazon Web Services resource. - factory LimitExceededException.build( - [void Function(LimitExceededExceptionBuilder) updates]) = - _$LimitExceededException; + factory LimitExceededException.build([ + void Function(LimitExceededExceptionBuilder) updates, + ]) = _$LimitExceededException; const LimitExceededException._(); @@ -32,10 +32,9 @@ abstract class LimitExceededException factory LimitExceededException.fromResponse( LimitExceededException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [LimitExceededExceptionAwsJson11Serializer()]; @@ -45,9 +44,9 @@ abstract class LimitExceededException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class LimitExceededException @override String toString() { final helper = newBuiltValueToStringHelper('LimitExceededException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class LimitExceededException class LimitExceededExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const LimitExceededExceptionAwsJson11Serializer() - : super('LimitExceededException'); + : super('LimitExceededException'); @override Iterable get types => const [ - LimitExceededException, - _$LimitExceededException, - ]; + LimitExceededException, + _$LimitExceededException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override LimitExceededException deserialize( @@ -112,10 +105,12 @@ class LimitExceededExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class LimitExceededExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.g.dart index afd0112ce7..c8ea7ac40a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/limit_exceeded_exception.g.dart @@ -12,16 +12,16 @@ class _$LimitExceededException extends LimitExceededException { @override final Map? headers; - factory _$LimitExceededException( - [void Function(LimitExceededExceptionBuilder)? updates]) => - (new LimitExceededExceptionBuilder()..update(updates))._build(); + factory _$LimitExceededException([ + void Function(LimitExceededExceptionBuilder)? updates, + ]) => (new LimitExceededExceptionBuilder()..update(updates))._build(); _$LimitExceededException._({this.message, this.headers}) : super._(); @override LimitExceededException rebuild( - void Function(LimitExceededExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(LimitExceededExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override LimitExceededExceptionBuilder toBuilder() => @@ -81,11 +81,9 @@ class LimitExceededExceptionBuilder LimitExceededException build() => _build(); _$LimitExceededException _build() { - final _$result = _$v ?? - new _$LimitExceededException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$LimitExceededException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.dart index 3b2a6f0834..d564cbc3c6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.dart @@ -28,9 +28,9 @@ abstract class ListDevicesRequest } /// Represents the request to list the devices. - factory ListDevicesRequest.build( - [void Function(ListDevicesRequestBuilder) updates]) = - _$ListDevicesRequest; + factory ListDevicesRequest.build([ + void Function(ListDevicesRequestBuilder) updates, + ]) = _$ListDevicesRequest; const ListDevicesRequest._(); @@ -38,11 +38,10 @@ abstract class ListDevicesRequest ListDevicesRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - ListDevicesRequestAwsJson11Serializer() + ListDevicesRequestAwsJson11Serializer(), ]; /// A valid access token that Amazon Cognito issued to the user whose list of devices you want to view. @@ -57,27 +56,15 @@ abstract class ListDevicesRequest ListDevicesRequest getPayload() => this; @override - List get props => [ - accessToken, - limit, - paginationToken, - ]; + List get props => [accessToken, limit, paginationToken]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListDevicesRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'limit', - limit, - ) - ..add( - 'paginationToken', - paginationToken, - ); + final helper = + newBuiltValueToStringHelper('ListDevicesRequest') + ..add('accessToken', '***SENSITIVE***') + ..add('limit', limit) + ..add('paginationToken', paginationToken); return helper.toString(); } } @@ -87,18 +74,12 @@ class ListDevicesRequestAwsJson11Serializer const ListDevicesRequestAwsJson11Serializer() : super('ListDevicesRequest'); @override - Iterable get types => const [ - ListDevicesRequest, - _$ListDevicesRequest, - ]; + Iterable get types => const [ListDevicesRequest, _$ListDevicesRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ListDevicesRequest deserialize( @@ -117,20 +98,26 @@ class ListDevicesRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Limit': - result.limit = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.limit = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'PaginationToken': - result.paginationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.paginationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,26 +134,22 @@ class ListDevicesRequestAwsJson11Serializer final ListDevicesRequest(:accessToken, :limit, :paginationToken) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), ]); if (limit != null) { result$ ..add('Limit') - ..add(serializers.serialize( - limit, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(limit, specifiedType: const FullType(int))); } if (paginationToken != null) { result$ ..add('PaginationToken') - ..add(serializers.serialize( - paginationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + paginationToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.g.dart index c6dddc5400..ec2ebf6d7c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_request.g.dart @@ -14,21 +14,26 @@ class _$ListDevicesRequest extends ListDevicesRequest { @override final String? paginationToken; - factory _$ListDevicesRequest( - [void Function(ListDevicesRequestBuilder)? updates]) => - (new ListDevicesRequestBuilder()..update(updates))._build(); - - _$ListDevicesRequest._( - {required this.accessToken, this.limit, this.paginationToken}) - : super._() { + factory _$ListDevicesRequest([ + void Function(ListDevicesRequestBuilder)? updates, + ]) => (new ListDevicesRequestBuilder()..update(updates))._build(); + + _$ListDevicesRequest._({ + required this.accessToken, + this.limit, + this.paginationToken, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'ListDevicesRequest', 'accessToken'); + accessToken, + r'ListDevicesRequest', + 'accessToken', + ); } @override ListDevicesRequest rebuild( - void Function(ListDevicesRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListDevicesRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListDevicesRequestBuilder toBuilder() => @@ -99,10 +104,14 @@ class ListDevicesRequestBuilder ListDevicesRequest build() => _build(); _$ListDevicesRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ListDevicesRequest._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'ListDevicesRequest', 'accessToken'), + accessToken, + r'ListDevicesRequest', + 'accessToken', + ), limit: limit, paginationToken: paginationToken, ); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.dart index 8de544538a..c2745d92ba 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.dart @@ -28,9 +28,9 @@ abstract class ListDevicesResponse } /// Represents the response to list devices. - factory ListDevicesResponse.build( - [void Function(ListDevicesResponseBuilder) updates]) = - _$ListDevicesResponse; + factory ListDevicesResponse.build([ + void Function(ListDevicesResponseBuilder) updates, + ]) = _$ListDevicesResponse; const ListDevicesResponse._(); @@ -38,11 +38,10 @@ abstract class ListDevicesResponse factory ListDevicesResponse.fromResponse( ListDevicesResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - ListDevicesResponseAwsJson11Serializer() + ListDevicesResponseAwsJson11Serializer(), ]; /// The devices returned in the list devices response. @@ -51,22 +50,14 @@ abstract class ListDevicesResponse /// The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items. String? get paginationToken; @override - List get props => [ - devices, - paginationToken, - ]; + List get props => [devices, paginationToken]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListDevicesResponse') - ..add( - 'devices', - devices, - ) - ..add( - 'paginationToken', - paginationToken, - ); + final helper = + newBuiltValueToStringHelper('ListDevicesResponse') + ..add('devices', devices) + ..add('paginationToken', paginationToken); return helper.toString(); } } @@ -77,17 +68,14 @@ class ListDevicesResponseAwsJson11Serializer @override Iterable get types => const [ - ListDevicesResponse, - _$ListDevicesResponse, - ]; + ListDevicesResponse, + _$ListDevicesResponse, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ListDevicesResponse deserialize( @@ -106,18 +94,22 @@ class ListDevicesResponseAwsJson11Serializer } switch (key) { case 'Devices': - result.devices.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DeviceType)], - ), - ) as _i2.BuiltList)); + result.devices.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(DeviceType), + ]), + ) + as _i2.BuiltList), + ); case 'PaginationToken': - result.paginationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.paginationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,21 +127,24 @@ class ListDevicesResponseAwsJson11Serializer if (devices != null) { result$ ..add('Devices') - ..add(serializers.serialize( - devices, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DeviceType)], + ..add( + serializers.serialize( + devices, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(DeviceType), + ]), ), - )); + ); } if (paginationToken != null) { result$ ..add('PaginationToken') - ..add(serializers.serialize( - paginationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + paginationToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.g.dart index 304d5292d1..8134f5494b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/list_devices_response.g.dart @@ -12,16 +12,16 @@ class _$ListDevicesResponse extends ListDevicesResponse { @override final String? paginationToken; - factory _$ListDevicesResponse( - [void Function(ListDevicesResponseBuilder)? updates]) => - (new ListDevicesResponseBuilder()..update(updates))._build(); + factory _$ListDevicesResponse([ + void Function(ListDevicesResponseBuilder)? updates, + ]) => (new ListDevicesResponseBuilder()..update(updates))._build(); _$ListDevicesResponse._({this.devices, this.paginationToken}) : super._(); @override ListDevicesResponse rebuild( - void Function(ListDevicesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListDevicesResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListDevicesResponseBuilder toBuilder() => @@ -89,7 +89,8 @@ class ListDevicesResponseBuilder _$ListDevicesResponse _build() { _$ListDevicesResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListDevicesResponse._( devices: _devices?.build(), paginationToken: paginationToken, @@ -101,7 +102,10 @@ class ListDevicesResponseBuilder _devices?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListDevicesResponse', _$failedField, e.toString()); + r'ListDevicesResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.dart index f223bc69b0..e451b0fa14 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.dart @@ -22,9 +22,9 @@ abstract class MfaMethodNotFoundException } /// This exception is thrown when Amazon Cognito can't find a multi-factor authentication (MFA) method. - factory MfaMethodNotFoundException.build( - [void Function(MfaMethodNotFoundExceptionBuilder) updates]) = - _$MfaMethodNotFoundException; + factory MfaMethodNotFoundException.build([ + void Function(MfaMethodNotFoundExceptionBuilder) updates, + ]) = _$MfaMethodNotFoundException; const MfaMethodNotFoundException._(); @@ -32,22 +32,21 @@ abstract class MfaMethodNotFoundException factory MfaMethodNotFoundException.fromResponse( MfaMethodNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [MfaMethodNotFoundExceptionAwsJson11Serializer()]; + serializers = [MfaMethodNotFoundExceptionAwsJson11Serializer()]; /// The message returned when Amazon Cognito throws an MFA method not found exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'MFAMethodNotFoundException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'MFAMethodNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class MfaMethodNotFoundException @override String toString() { final helper = newBuiltValueToStringHelper('MfaMethodNotFoundException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class MfaMethodNotFoundException class MfaMethodNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const MfaMethodNotFoundExceptionAwsJson11Serializer() - : super('MfaMethodNotFoundException'); + : super('MfaMethodNotFoundException'); @override Iterable get types => const [ - MfaMethodNotFoundException, - _$MfaMethodNotFoundException, - ]; + MfaMethodNotFoundException, + _$MfaMethodNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override MfaMethodNotFoundException deserialize( @@ -112,10 +105,12 @@ class MfaMethodNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class MfaMethodNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.g.dart index a1f2837c1e..32c53f71ee 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_method_not_found_exception.g.dart @@ -12,16 +12,16 @@ class _$MfaMethodNotFoundException extends MfaMethodNotFoundException { @override final Map? headers; - factory _$MfaMethodNotFoundException( - [void Function(MfaMethodNotFoundExceptionBuilder)? updates]) => - (new MfaMethodNotFoundExceptionBuilder()..update(updates))._build(); + factory _$MfaMethodNotFoundException([ + void Function(MfaMethodNotFoundExceptionBuilder)? updates, + ]) => (new MfaMethodNotFoundExceptionBuilder()..update(updates))._build(); _$MfaMethodNotFoundException._({this.message, this.headers}) : super._(); @override MfaMethodNotFoundException rebuild( - void Function(MfaMethodNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MfaMethodNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MfaMethodNotFoundExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class MfaMethodNotFoundExceptionBuilder MfaMethodNotFoundException build() => _build(); _$MfaMethodNotFoundException _build() { - final _$result = _$v ?? - new _$MfaMethodNotFoundException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$MfaMethodNotFoundException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.dart index e6d103c6da..b2ee2d76eb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.dart @@ -33,7 +33,7 @@ abstract class MfaOptionType const MfaOptionType._(); static const List<_i2.SmithySerializer> serializers = [ - MfaOptionTypeAwsJson11Serializer() + MfaOptionTypeAwsJson11Serializer(), ]; /// The delivery medium to send the MFA code. You can use this parameter to set only the `SMS` delivery medium value. @@ -42,22 +42,14 @@ abstract class MfaOptionType /// The attribute name of the MFA option type. The only valid value is `phone_number`. String? get attributeName; @override - List get props => [ - deliveryMedium, - attributeName, - ]; + List get props => [deliveryMedium, attributeName]; @override String toString() { - final helper = newBuiltValueToStringHelper('MfaOptionType') - ..add( - 'deliveryMedium', - deliveryMedium, - ) - ..add( - 'attributeName', - attributeName, - ); + final helper = + newBuiltValueToStringHelper('MfaOptionType') + ..add('deliveryMedium', deliveryMedium) + ..add('attributeName', attributeName); return helper.toString(); } } @@ -67,18 +59,12 @@ class MfaOptionTypeAwsJson11Serializer const MfaOptionTypeAwsJson11Serializer() : super('MfaOptionType'); @override - Iterable get types => const [ - MfaOptionType, - _$MfaOptionType, - ]; + Iterable get types => const [MfaOptionType, _$MfaOptionType]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override MfaOptionType deserialize( @@ -97,15 +83,19 @@ class MfaOptionTypeAwsJson11Serializer } switch (key) { case 'DeliveryMedium': - result.deliveryMedium = (serializers.deserialize( - value, - specifiedType: const FullType(DeliveryMediumType), - ) as DeliveryMediumType); + result.deliveryMedium = + (serializers.deserialize( + value, + specifiedType: const FullType(DeliveryMediumType), + ) + as DeliveryMediumType); case 'AttributeName': - result.attributeName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attributeName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -123,18 +113,22 @@ class MfaOptionTypeAwsJson11Serializer if (deliveryMedium != null) { result$ ..add('DeliveryMedium') - ..add(serializers.serialize( - deliveryMedium, - specifiedType: const FullType(DeliveryMediumType), - )); + ..add( + serializers.serialize( + deliveryMedium, + specifiedType: const FullType(DeliveryMediumType), + ), + ); } if (attributeName != null) { result$ ..add('AttributeName') - ..add(serializers.serialize( - attributeName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + attributeName, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.g.dart index b672235f82..5f8e6d0fc9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/mfa_option_type.g.dart @@ -83,7 +83,8 @@ class MfaOptionTypeBuilder MfaOptionType build() => _build(); _$MfaOptionType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MfaOptionType._( deliveryMedium: deliveryMedium, attributeName: attributeName, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.dart index 56c8dc4549..57082a382e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.dart @@ -15,10 +15,7 @@ abstract class NewDeviceMetadataType with _i1.AWSEquatable implements Built { /// The new device metadata type. - factory NewDeviceMetadataType({ - String? deviceKey, - String? deviceGroupKey, - }) { + factory NewDeviceMetadataType({String? deviceKey, String? deviceGroupKey}) { return _$NewDeviceMetadataType._( deviceKey: deviceKey, deviceGroupKey: deviceGroupKey, @@ -26,14 +23,14 @@ abstract class NewDeviceMetadataType } /// The new device metadata type. - factory NewDeviceMetadataType.build( - [void Function(NewDeviceMetadataTypeBuilder) updates]) = - _$NewDeviceMetadataType; + factory NewDeviceMetadataType.build([ + void Function(NewDeviceMetadataTypeBuilder) updates, + ]) = _$NewDeviceMetadataType; const NewDeviceMetadataType._(); static const List<_i2.SmithySerializer> serializers = [ - NewDeviceMetadataTypeAwsJson11Serializer() + NewDeviceMetadataTypeAwsJson11Serializer(), ]; /// The device key. @@ -42,22 +39,14 @@ abstract class NewDeviceMetadataType /// The device group key. String? get deviceGroupKey; @override - List get props => [ - deviceKey, - deviceGroupKey, - ]; + List get props => [deviceKey, deviceGroupKey]; @override String toString() { - final helper = newBuiltValueToStringHelper('NewDeviceMetadataType') - ..add( - 'deviceKey', - deviceKey, - ) - ..add( - 'deviceGroupKey', - deviceGroupKey, - ); + final helper = + newBuiltValueToStringHelper('NewDeviceMetadataType') + ..add('deviceKey', deviceKey) + ..add('deviceGroupKey', deviceGroupKey); return helper.toString(); } } @@ -65,21 +54,18 @@ abstract class NewDeviceMetadataType class NewDeviceMetadataTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const NewDeviceMetadataTypeAwsJson11Serializer() - : super('NewDeviceMetadataType'); + : super('NewDeviceMetadataType'); @override Iterable get types => const [ - NewDeviceMetadataType, - _$NewDeviceMetadataType, - ]; + NewDeviceMetadataType, + _$NewDeviceMetadataType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NewDeviceMetadataType deserialize( @@ -98,15 +84,19 @@ class NewDeviceMetadataTypeAwsJson11Serializer } switch (key) { case 'DeviceKey': - result.deviceKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceGroupKey': - result.deviceGroupKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceGroupKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -124,18 +114,22 @@ class NewDeviceMetadataTypeAwsJson11Serializer if (deviceKey != null) { result$ ..add('DeviceKey') - ..add(serializers.serialize( - deviceKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + deviceKey, + specifiedType: const FullType(String), + ), + ); } if (deviceGroupKey != null) { result$ ..add('DeviceGroupKey') - ..add(serializers.serialize( - deviceGroupKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + deviceGroupKey, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.g.dart index 4aeb99bde1..f670753bc3 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/new_device_metadata_type.g.dart @@ -12,16 +12,16 @@ class _$NewDeviceMetadataType extends NewDeviceMetadataType { @override final String? deviceGroupKey; - factory _$NewDeviceMetadataType( - [void Function(NewDeviceMetadataTypeBuilder)? updates]) => - (new NewDeviceMetadataTypeBuilder()..update(updates))._build(); + factory _$NewDeviceMetadataType([ + void Function(NewDeviceMetadataTypeBuilder)? updates, + ]) => (new NewDeviceMetadataTypeBuilder()..update(updates))._build(); _$NewDeviceMetadataType._({this.deviceKey, this.deviceGroupKey}) : super._(); @override NewDeviceMetadataType rebuild( - void Function(NewDeviceMetadataTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NewDeviceMetadataTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NewDeviceMetadataTypeBuilder toBuilder() => @@ -85,7 +85,8 @@ class NewDeviceMetadataTypeBuilder NewDeviceMetadataType build() => _build(); _$NewDeviceMetadataType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$NewDeviceMetadataType._( deviceKey: deviceKey, deviceGroupKey: deviceGroupKey, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart index 667a4e4e7e..9ad99cd3ad 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart @@ -22,9 +22,9 @@ abstract class NotAuthorizedException } /// This exception is thrown when a user isn't authorized. - factory NotAuthorizedException.build( - [void Function(NotAuthorizedExceptionBuilder) updates]) = - _$NotAuthorizedException; + factory NotAuthorizedException.build([ + void Function(NotAuthorizedExceptionBuilder) updates, + ]) = _$NotAuthorizedException; const NotAuthorizedException._(); @@ -32,10 +32,9 @@ abstract class NotAuthorizedException factory NotAuthorizedException.fromResponse( NotAuthorizedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [NotAuthorizedExceptionAwsJson11Serializer()]; @@ -45,9 +44,9 @@ abstract class NotAuthorizedException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class NotAuthorizedException @override String toString() { final helper = newBuiltValueToStringHelper('NotAuthorizedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class NotAuthorizedException class NotAuthorizedExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const NotAuthorizedExceptionAwsJson11Serializer() - : super('NotAuthorizedException'); + : super('NotAuthorizedException'); @override Iterable get types => const [ - NotAuthorizedException, - _$NotAuthorizedException, - ]; + NotAuthorizedException, + _$NotAuthorizedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NotAuthorizedException deserialize( @@ -112,10 +105,12 @@ class NotAuthorizedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class NotAuthorizedExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart index 5aa5cfb60d..1592956020 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart @@ -12,16 +12,16 @@ class _$NotAuthorizedException extends NotAuthorizedException { @override final Map? headers; - factory _$NotAuthorizedException( - [void Function(NotAuthorizedExceptionBuilder)? updates]) => - (new NotAuthorizedExceptionBuilder()..update(updates))._build(); + factory _$NotAuthorizedException([ + void Function(NotAuthorizedExceptionBuilder)? updates, + ]) => (new NotAuthorizedExceptionBuilder()..update(updates))._build(); _$NotAuthorizedException._({this.message, this.headers}) : super._(); @override NotAuthorizedException rebuild( - void Function(NotAuthorizedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NotAuthorizedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NotAuthorizedExceptionBuilder toBuilder() => @@ -81,11 +81,9 @@ class NotAuthorizedExceptionBuilder NotAuthorizedException build() => _build(); _$NotAuthorizedException _build() { - final _$result = _$v ?? - new _$NotAuthorizedException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$NotAuthorizedException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.dart index 8558e99e29..912a820f90 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.dart @@ -12,11 +12,12 @@ part 'password_history_policy_violation_exception.g.dart'; /// The message returned when a user's new password matches a previous password and doesn't comply with the password-history policy. abstract class PasswordHistoryPolicyViolationException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + PasswordHistoryPolicyViolationException, + PasswordHistoryPolicyViolationExceptionBuilder + >, _i2.SmithyHttpException { /// The message returned when a user's new password matches a previous password and doesn't comply with the password-history policy. factory PasswordHistoryPolicyViolationException({String? message}) { @@ -24,9 +25,9 @@ abstract class PasswordHistoryPolicyViolationException } /// The message returned when a user's new password matches a previous password and doesn't comply with the password-history policy. - factory PasswordHistoryPolicyViolationException.build( - [void Function(PasswordHistoryPolicyViolationExceptionBuilder) - updates]) = _$PasswordHistoryPolicyViolationException; + factory PasswordHistoryPolicyViolationException.build([ + void Function(PasswordHistoryPolicyViolationExceptionBuilder) updates, + ]) = _$PasswordHistoryPolicyViolationException; const PasswordHistoryPolicyViolationException._(); @@ -34,24 +35,22 @@ abstract class PasswordHistoryPolicyViolationException factory PasswordHistoryPolicyViolationException.fromResponse( PasswordHistoryPolicyViolationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List< - _i2.SmithySerializer> - serializers = [ - PasswordHistoryPolicyViolationExceptionAwsJson11Serializer() - ]; + _i2.SmithySerializer + > + serializers = [PasswordHistoryPolicyViolationExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordHistoryPolicyViolationException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordHistoryPolicyViolationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -71,34 +70,31 @@ abstract class PasswordHistoryPolicyViolationException @override String toString() { - final helper = - newBuiltValueToStringHelper('PasswordHistoryPolicyViolationException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'PasswordHistoryPolicyViolationException', + )..add('message', message); return helper.toString(); } } -class PasswordHistoryPolicyViolationExceptionAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class PasswordHistoryPolicyViolationExceptionAwsJson11Serializer + extends + _i2.StructuredSmithySerializer< + PasswordHistoryPolicyViolationException + > { const PasswordHistoryPolicyViolationExceptionAwsJson11Serializer() - : super('PasswordHistoryPolicyViolationException'); + : super('PasswordHistoryPolicyViolationException'); @override Iterable get types => const [ - PasswordHistoryPolicyViolationException, - _$PasswordHistoryPolicyViolationException, - ]; + PasswordHistoryPolicyViolationException, + _$PasswordHistoryPolicyViolationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PasswordHistoryPolicyViolationException deserialize( @@ -117,10 +113,12 @@ class PasswordHistoryPolicyViolationExceptionAwsJson11Serializer extends _i2 } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -138,10 +136,9 @@ class PasswordHistoryPolicyViolationExceptionAwsJson11Serializer extends _i2 if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.g.dart index 91b1e8ece9..36ec570aca 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_history_policy_violation_exception.g.dart @@ -13,20 +13,19 @@ class _$PasswordHistoryPolicyViolationException @override final Map? headers; - factory _$PasswordHistoryPolicyViolationException( - [void Function(PasswordHistoryPolicyViolationExceptionBuilder)? - updates]) => + factory _$PasswordHistoryPolicyViolationException([ + void Function(PasswordHistoryPolicyViolationExceptionBuilder)? updates, + ]) => (new PasswordHistoryPolicyViolationExceptionBuilder()..update(updates)) ._build(); _$PasswordHistoryPolicyViolationException._({this.message, this.headers}) - : super._(); + : super._(); @override PasswordHistoryPolicyViolationException rebuild( - void Function(PasswordHistoryPolicyViolationExceptionBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(PasswordHistoryPolicyViolationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PasswordHistoryPolicyViolationExceptionBuilder toBuilder() => @@ -50,8 +49,10 @@ class _$PasswordHistoryPolicyViolationException class PasswordHistoryPolicyViolationExceptionBuilder implements - Builder { + Builder< + PasswordHistoryPolicyViolationException, + PasswordHistoryPolicyViolationExceptionBuilder + > { _$PasswordHistoryPolicyViolationException? _$v; String? _message; @@ -82,7 +83,8 @@ class PasswordHistoryPolicyViolationExceptionBuilder @override void update( - void Function(PasswordHistoryPolicyViolationExceptionBuilder)? updates) { + void Function(PasswordHistoryPolicyViolationExceptionBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -90,7 +92,8 @@ class PasswordHistoryPolicyViolationExceptionBuilder PasswordHistoryPolicyViolationException build() => _build(); _$PasswordHistoryPolicyViolationException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PasswordHistoryPolicyViolationException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.dart index 0e4500dc25..c5ee7078de 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.dart @@ -12,11 +12,12 @@ part 'password_reset_required_exception.g.dart'; /// This exception is thrown when a password reset is required. abstract class PasswordResetRequiredException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + PasswordResetRequiredException, + PasswordResetRequiredExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when a password reset is required. factory PasswordResetRequiredException({String? message}) { @@ -24,9 +25,9 @@ abstract class PasswordResetRequiredException } /// This exception is thrown when a password reset is required. - factory PasswordResetRequiredException.build( - [void Function(PasswordResetRequiredExceptionBuilder) updates]) = - _$PasswordResetRequiredException; + factory PasswordResetRequiredException.build([ + void Function(PasswordResetRequiredExceptionBuilder) updates, + ]) = _$PasswordResetRequiredException; const PasswordResetRequiredException._(); @@ -34,22 +35,21 @@ abstract class PasswordResetRequiredException factory PasswordResetRequiredException.fromResponse( PasswordResetRequiredException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [PasswordResetRequiredExceptionAwsJson11Serializer()]; + serializers = [PasswordResetRequiredExceptionAwsJson11Serializer()]; /// The message returned when a password reset is required. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -70,10 +70,7 @@ abstract class PasswordResetRequiredException @override String toString() { final helper = newBuiltValueToStringHelper('PasswordResetRequiredException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -81,21 +78,18 @@ abstract class PasswordResetRequiredException class PasswordResetRequiredExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const PasswordResetRequiredExceptionAwsJson11Serializer() - : super('PasswordResetRequiredException'); + : super('PasswordResetRequiredException'); @override Iterable get types => const [ - PasswordResetRequiredException, - _$PasswordResetRequiredException, - ]; + PasswordResetRequiredException, + _$PasswordResetRequiredException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PasswordResetRequiredException deserialize( @@ -114,10 +108,12 @@ class PasswordResetRequiredExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,10 +131,9 @@ class PasswordResetRequiredExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.g.dart index 3562724f54..9a37bfac2e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/password_reset_required_exception.g.dart @@ -12,16 +12,16 @@ class _$PasswordResetRequiredException extends PasswordResetRequiredException { @override final Map? headers; - factory _$PasswordResetRequiredException( - [void Function(PasswordResetRequiredExceptionBuilder)? updates]) => - (new PasswordResetRequiredExceptionBuilder()..update(updates))._build(); + factory _$PasswordResetRequiredException([ + void Function(PasswordResetRequiredExceptionBuilder)? updates, + ]) => (new PasswordResetRequiredExceptionBuilder()..update(updates))._build(); _$PasswordResetRequiredException._({this.message, this.headers}) : super._(); @override PasswordResetRequiredException rebuild( - void Function(PasswordResetRequiredExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PasswordResetRequiredExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PasswordResetRequiredExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$PasswordResetRequiredException extends PasswordResetRequiredException { class PasswordResetRequiredExceptionBuilder implements - Builder { + Builder< + PasswordResetRequiredException, + PasswordResetRequiredExceptionBuilder + > { _$PasswordResetRequiredException? _$v; String? _message; @@ -83,7 +85,8 @@ class PasswordResetRequiredExceptionBuilder PasswordResetRequiredException build() => _build(); _$PasswordResetRequiredException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PasswordResetRequiredException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.dart index 94ad518a90..12b26df9d7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.dart @@ -19,8 +19,10 @@ abstract class ResendConfirmationCodeRequest _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + ResendConfirmationCodeRequest, + ResendConfirmationCodeRequestBuilder + > { /// Represents the request to resend the confirmation code. factory ResendConfirmationCodeRequest({ required String clientId, @@ -42,9 +44,9 @@ abstract class ResendConfirmationCodeRequest } /// Represents the request to resend the confirmation code. - factory ResendConfirmationCodeRequest.build( - [void Function(ResendConfirmationCodeRequestBuilder) updates]) = - _$ResendConfirmationCodeRequest; + factory ResendConfirmationCodeRequest.build([ + void Function(ResendConfirmationCodeRequestBuilder) updates, + ]) = _$ResendConfirmationCodeRequest; const ResendConfirmationCodeRequest._(); @@ -52,11 +54,10 @@ abstract class ResendConfirmationCodeRequest ResendConfirmationCodeRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [ResendConfirmationCodeRequestAwsJson11Serializer()]; + serializers = [ResendConfirmationCodeRequestAwsJson11Serializer()]; /// The ID of the client associated with the user pool. String get clientId; @@ -92,41 +93,24 @@ abstract class ResendConfirmationCodeRequest @override List get props => [ - clientId, - secretHash, - userContextData, - username, - analyticsMetadata, - clientMetadata, - ]; + clientId, + secretHash, + userContextData, + username, + analyticsMetadata, + clientMetadata, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ResendConfirmationCodeRequest') - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'secretHash', - '***SENSITIVE***', - ) - ..add( - 'userContextData', - '***SENSITIVE***', - ) - ..add( - 'username', - '***SENSITIVE***', - ) - ..add( - 'analyticsMetadata', - analyticsMetadata, - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + final helper = + newBuiltValueToStringHelper('ResendConfirmationCodeRequest') + ..add('clientId', '***SENSITIVE***') + ..add('secretHash', '***SENSITIVE***') + ..add('userContextData', '***SENSITIVE***') + ..add('username', '***SENSITIVE***') + ..add('analyticsMetadata', analyticsMetadata) + ..add('clientMetadata', clientMetadata); return helper.toString(); } } @@ -134,21 +118,18 @@ abstract class ResendConfirmationCodeRequest class ResendConfirmationCodeRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const ResendConfirmationCodeRequestAwsJson11Serializer() - : super('ResendConfirmationCodeRequest'); + : super('ResendConfirmationCodeRequest'); @override Iterable get types => const [ - ResendConfirmationCodeRequest, - _$ResendConfirmationCodeRequest, - ]; + ResendConfirmationCodeRequest, + _$ResendConfirmationCodeRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResendConfirmationCodeRequest deserialize( @@ -167,41 +148,53 @@ class ResendConfirmationCodeRequestAwsJson11Serializer } switch (key) { case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'SecretHash': - result.secretHash = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.secretHash = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UserContextData': - result.userContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(UserContextDataType), - ) as UserContextDataType)); + result.userContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + ) + as UserContextDataType), + ); case 'Username': - result.username = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.username = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AnalyticsMetadata': - result.analyticsMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(AnalyticsMetadataType), - ) as AnalyticsMetadataType)); + result.analyticsMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AnalyticsMetadataType), + ) + as AnalyticsMetadataType), + ); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -221,57 +214,56 @@ class ResendConfirmationCodeRequestAwsJson11Serializer :userContextData, :username, :analyticsMetadata, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), 'Username', - serializers.serialize( - username, - specifiedType: const FullType(String), - ), + serializers.serialize(username, specifiedType: const FullType(String)), ]); if (secretHash != null) { result$ ..add('SecretHash') - ..add(serializers.serialize( - secretHash, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + secretHash, + specifiedType: const FullType(String), + ), + ); } if (userContextData != null) { result$ ..add('UserContextData') - ..add(serializers.serialize( - userContextData, - specifiedType: const FullType(UserContextDataType), - )); + ..add( + serializers.serialize( + userContextData, + specifiedType: const FullType(UserContextDataType), + ), + ); } if (analyticsMetadata != null) { result$ ..add('AnalyticsMetadata') - ..add(serializers.serialize( - analyticsMetadata, - specifiedType: const FullType(AnalyticsMetadataType), - )); + ..add( + serializers.serialize( + analyticsMetadata, + specifiedType: const FullType(AnalyticsMetadataType), + ), + ); } if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.g.dart index 71e23db8ff..ab72355475 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_request.g.dart @@ -20,28 +20,34 @@ class _$ResendConfirmationCodeRequest extends ResendConfirmationCodeRequest { @override final _i3.BuiltMap? clientMetadata; - factory _$ResendConfirmationCodeRequest( - [void Function(ResendConfirmationCodeRequestBuilder)? updates]) => - (new ResendConfirmationCodeRequestBuilder()..update(updates))._build(); - - _$ResendConfirmationCodeRequest._( - {required this.clientId, - this.secretHash, - this.userContextData, - required this.username, - this.analyticsMetadata, - this.clientMetadata}) - : super._() { + factory _$ResendConfirmationCodeRequest([ + void Function(ResendConfirmationCodeRequestBuilder)? updates, + ]) => (new ResendConfirmationCodeRequestBuilder()..update(updates))._build(); + + _$ResendConfirmationCodeRequest._({ + required this.clientId, + this.secretHash, + this.userContextData, + required this.username, + this.analyticsMetadata, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - clientId, r'ResendConfirmationCodeRequest', 'clientId'); + clientId, + r'ResendConfirmationCodeRequest', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - username, r'ResendConfirmationCodeRequest', 'username'); + username, + r'ResendConfirmationCodeRequest', + 'username', + ); } @override ResendConfirmationCodeRequest rebuild( - void Function(ResendConfirmationCodeRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResendConfirmationCodeRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResendConfirmationCodeRequestBuilder toBuilder() => @@ -75,8 +81,10 @@ class _$ResendConfirmationCodeRequest extends ResendConfirmationCodeRequest { class ResendConfirmationCodeRequestBuilder implements - Builder { + Builder< + ResendConfirmationCodeRequest, + ResendConfirmationCodeRequestBuilder + > { _$ResendConfirmationCodeRequest? _$v; String? _clientId; @@ -142,14 +150,21 @@ class ResendConfirmationCodeRequestBuilder _$ResendConfirmationCodeRequest _build() { _$ResendConfirmationCodeRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ResendConfirmationCodeRequest._( clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'ResendConfirmationCodeRequest', 'clientId'), + clientId, + r'ResendConfirmationCodeRequest', + 'clientId', + ), secretHash: secretHash, userContextData: _userContextData?.build(), username: BuiltValueNullFieldError.checkNotNull( - username, r'ResendConfirmationCodeRequest', 'username'), + username, + r'ResendConfirmationCodeRequest', + 'username', + ), analyticsMetadata: _analyticsMetadata?.build(), clientMetadata: _clientMetadata?.build(), ); @@ -165,7 +180,10 @@ class ResendConfirmationCodeRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ResendConfirmationCodeRequest', _$failedField, e.toString()); + r'ResendConfirmationCodeRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.dart index 6a214d00dc..e49897a81b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.dart @@ -13,22 +13,25 @@ part 'resend_confirmation_code_response.g.dart'; /// The response from the server when Amazon Cognito makes the request to resend a confirmation code. abstract class ResendConfirmationCodeResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + ResendConfirmationCodeResponse, + ResendConfirmationCodeResponseBuilder + > { /// The response from the server when Amazon Cognito makes the request to resend a confirmation code. - factory ResendConfirmationCodeResponse( - {CodeDeliveryDetailsType? codeDeliveryDetails}) { + factory ResendConfirmationCodeResponse({ + CodeDeliveryDetailsType? codeDeliveryDetails, + }) { return _$ResendConfirmationCodeResponse._( - codeDeliveryDetails: codeDeliveryDetails); + codeDeliveryDetails: codeDeliveryDetails, + ); } /// The response from the server when Amazon Cognito makes the request to resend a confirmation code. - factory ResendConfirmationCodeResponse.build( - [void Function(ResendConfirmationCodeResponseBuilder) updates]) = - _$ResendConfirmationCodeResponse; + factory ResendConfirmationCodeResponse.build([ + void Function(ResendConfirmationCodeResponseBuilder) updates, + ]) = _$ResendConfirmationCodeResponse; const ResendConfirmationCodeResponse._(); @@ -36,11 +39,10 @@ abstract class ResendConfirmationCodeResponse factory ResendConfirmationCodeResponse.fromResponse( ResendConfirmationCodeResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [ResendConfirmationCodeResponseAwsJson11Serializer()]; + serializers = [ResendConfirmationCodeResponseAwsJson11Serializer()]; /// The code delivery details returned by the server in response to the request to resend the confirmation code. CodeDeliveryDetailsType? get codeDeliveryDetails; @@ -50,10 +52,7 @@ abstract class ResendConfirmationCodeResponse @override String toString() { final helper = newBuiltValueToStringHelper('ResendConfirmationCodeResponse') - ..add( - 'codeDeliveryDetails', - codeDeliveryDetails, - ); + ..add('codeDeliveryDetails', codeDeliveryDetails); return helper.toString(); } } @@ -61,21 +60,18 @@ abstract class ResendConfirmationCodeResponse class ResendConfirmationCodeResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ResendConfirmationCodeResponseAwsJson11Serializer() - : super('ResendConfirmationCodeResponse'); + : super('ResendConfirmationCodeResponse'); @override Iterable get types => const [ - ResendConfirmationCodeResponse, - _$ResendConfirmationCodeResponse, - ]; + ResendConfirmationCodeResponse, + _$ResendConfirmationCodeResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResendConfirmationCodeResponse deserialize( @@ -94,10 +90,13 @@ class ResendConfirmationCodeResponseAwsJson11Serializer } switch (key) { case 'CodeDeliveryDetails': - result.codeDeliveryDetails.replace((serializers.deserialize( - value, - specifiedType: const FullType(CodeDeliveryDetailsType), - ) as CodeDeliveryDetailsType)); + result.codeDeliveryDetails.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CodeDeliveryDetailsType), + ) + as CodeDeliveryDetailsType), + ); } } @@ -115,10 +114,12 @@ class ResendConfirmationCodeResponseAwsJson11Serializer if (codeDeliveryDetails != null) { result$ ..add('CodeDeliveryDetails') - ..add(serializers.serialize( - codeDeliveryDetails, - specifiedType: const FullType(CodeDeliveryDetailsType), - )); + ..add( + serializers.serialize( + codeDeliveryDetails, + specifiedType: const FullType(CodeDeliveryDetailsType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.g.dart index 14a91502b9..780c6c1656 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resend_confirmation_code_response.g.dart @@ -10,16 +10,16 @@ class _$ResendConfirmationCodeResponse extends ResendConfirmationCodeResponse { @override final CodeDeliveryDetailsType? codeDeliveryDetails; - factory _$ResendConfirmationCodeResponse( - [void Function(ResendConfirmationCodeResponseBuilder)? updates]) => - (new ResendConfirmationCodeResponseBuilder()..update(updates))._build(); + factory _$ResendConfirmationCodeResponse([ + void Function(ResendConfirmationCodeResponseBuilder)? updates, + ]) => (new ResendConfirmationCodeResponseBuilder()..update(updates))._build(); _$ResendConfirmationCodeResponse._({this.codeDeliveryDetails}) : super._(); @override ResendConfirmationCodeResponse rebuild( - void Function(ResendConfirmationCodeResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResendConfirmationCodeResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResendConfirmationCodeResponseBuilder toBuilder() => @@ -43,16 +43,18 @@ class _$ResendConfirmationCodeResponse extends ResendConfirmationCodeResponse { class ResendConfirmationCodeResponseBuilder implements - Builder { + Builder< + ResendConfirmationCodeResponse, + ResendConfirmationCodeResponseBuilder + > { _$ResendConfirmationCodeResponse? _$v; CodeDeliveryDetailsTypeBuilder? _codeDeliveryDetails; CodeDeliveryDetailsTypeBuilder get codeDeliveryDetails => _$this._codeDeliveryDetails ??= new CodeDeliveryDetailsTypeBuilder(); set codeDeliveryDetails( - CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails) => - _$this._codeDeliveryDetails = codeDeliveryDetails; + CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails, + ) => _$this._codeDeliveryDetails = codeDeliveryDetails; ResendConfirmationCodeResponseBuilder(); @@ -82,7 +84,8 @@ class ResendConfirmationCodeResponseBuilder _$ResendConfirmationCodeResponse _build() { _$ResendConfirmationCodeResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ResendConfirmationCodeResponse._( codeDeliveryDetails: _codeDeliveryDetails?.build(), ); @@ -93,7 +96,10 @@ class ResendConfirmationCodeResponseBuilder _codeDeliveryDetails?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ResendConfirmationCodeResponse', _$failedField, e.toString()); + r'ResendConfirmationCodeResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart index 925645afe5..7f9b83f251 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart @@ -22,9 +22,9 @@ abstract class ResourceNotFoundException } /// This exception is thrown when the Amazon Cognito service can't find the requested resource. - factory ResourceNotFoundException.build( - [void Function(ResourceNotFoundExceptionBuilder) updates]) = - _$ResourceNotFoundException; + factory ResourceNotFoundException.build([ + void Function(ResourceNotFoundExceptionBuilder) updates, + ]) = _$ResourceNotFoundException; const ResourceNotFoundException._(); @@ -32,22 +32,21 @@ abstract class ResourceNotFoundException factory ResourceNotFoundException.fromResponse( ResourceNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; + serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; /// The message returned when the Amazon Cognito service returns a resource not found exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class ResourceNotFoundException @override String toString() { final helper = newBuiltValueToStringHelper('ResourceNotFoundException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class ResourceNotFoundException class ResourceNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ResourceNotFoundExceptionAwsJson11Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ - ResourceNotFoundException, - _$ResourceNotFoundException, - ]; + ResourceNotFoundException, + _$ResourceNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceNotFoundException deserialize( @@ -112,10 +105,12 @@ class ResourceNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class ResourceNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart index 464b20c64f..7b92fb4f65 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart @@ -12,16 +12,16 @@ class _$ResourceNotFoundException extends ResourceNotFoundException { @override final Map? headers; - factory _$ResourceNotFoundException( - [void Function(ResourceNotFoundExceptionBuilder)? updates]) => - (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); + factory _$ResourceNotFoundException([ + void Function(ResourceNotFoundExceptionBuilder)? updates, + ]) => (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); _$ResourceNotFoundException._({this.message, this.headers}) : super._(); @override ResourceNotFoundException rebuild( - void Function(ResourceNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceNotFoundExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class ResourceNotFoundExceptionBuilder ResourceNotFoundException build() => _build(); _$ResourceNotFoundException _build() { - final _$result = _$v ?? - new _$ResourceNotFoundException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$ResourceNotFoundException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.dart index 06ac52c376..d17b3b24bc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.dart @@ -20,8 +20,10 @@ abstract class RespondToAuthChallengeRequest _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + RespondToAuthChallengeRequest, + RespondToAuthChallengeRequestBuilder + > { /// The request to respond to an authentication challenge. factory RespondToAuthChallengeRequest({ required String clientId, @@ -46,9 +48,9 @@ abstract class RespondToAuthChallengeRequest } /// The request to respond to an authentication challenge. - factory RespondToAuthChallengeRequest.build( - [void Function(RespondToAuthChallengeRequestBuilder) updates]) = - _$RespondToAuthChallengeRequest; + factory RespondToAuthChallengeRequest.build([ + void Function(RespondToAuthChallengeRequestBuilder) updates, + ]) = _$RespondToAuthChallengeRequest; const RespondToAuthChallengeRequest._(); @@ -56,11 +58,10 @@ abstract class RespondToAuthChallengeRequest RespondToAuthChallengeRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [RespondToAuthChallengeRequestAwsJson11Serializer()]; + serializers = [RespondToAuthChallengeRequestAwsJson11Serializer()]; /// The app client ID. String get clientId; @@ -155,46 +156,26 @@ abstract class RespondToAuthChallengeRequest @override List get props => [ - clientId, - challengeName, - session, - challengeResponses, - analyticsMetadata, - userContextData, - clientMetadata, - ]; + clientId, + challengeName, + session, + challengeResponses, + analyticsMetadata, + userContextData, + clientMetadata, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('RespondToAuthChallengeRequest') - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'challengeName', - challengeName, - ) - ..add( - 'session', - '***SENSITIVE***', - ) - ..add( - 'challengeResponses', - '***SENSITIVE***', - ) - ..add( - 'analyticsMetadata', - analyticsMetadata, - ) - ..add( - 'userContextData', - '***SENSITIVE***', - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + final helper = + newBuiltValueToStringHelper('RespondToAuthChallengeRequest') + ..add('clientId', '***SENSITIVE***') + ..add('challengeName', challengeName) + ..add('session', '***SENSITIVE***') + ..add('challengeResponses', '***SENSITIVE***') + ..add('analyticsMetadata', analyticsMetadata) + ..add('userContextData', '***SENSITIVE***') + ..add('clientMetadata', clientMetadata); return helper.toString(); } } @@ -202,21 +183,18 @@ abstract class RespondToAuthChallengeRequest class RespondToAuthChallengeRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const RespondToAuthChallengeRequestAwsJson11Serializer() - : super('RespondToAuthChallengeRequest'); + : super('RespondToAuthChallengeRequest'); @override Iterable get types => const [ - RespondToAuthChallengeRequest, - _$RespondToAuthChallengeRequest, - ]; + RespondToAuthChallengeRequest, + _$RespondToAuthChallengeRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RespondToAuthChallengeRequest deserialize( @@ -235,52 +213,64 @@ class RespondToAuthChallengeRequestAwsJson11Serializer } switch (key) { case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChallengeName': - result.challengeName = (serializers.deserialize( - value, - specifiedType: const FullType(ChallengeNameType), - ) as ChallengeNameType); + result.challengeName = + (serializers.deserialize( + value, + specifiedType: const FullType(ChallengeNameType), + ) + as ChallengeNameType); case 'Session': - result.session = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.session = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChallengeResponses': - result.challengeResponses.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.challengeResponses.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'AnalyticsMetadata': - result.analyticsMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(AnalyticsMetadataType), - ) as AnalyticsMetadataType)); + result.analyticsMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AnalyticsMetadataType), + ) + as AnalyticsMetadataType), + ); case 'UserContextData': - result.userContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(UserContextDataType), - ) as UserContextDataType)); + result.userContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + ) + as UserContextDataType), + ); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -301,14 +291,11 @@ class RespondToAuthChallengeRequestAwsJson11Serializer :challengeResponses, :analyticsMetadata, :userContextData, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), 'ChallengeName', serializers.serialize( challengeName, @@ -318,54 +305,55 @@ class RespondToAuthChallengeRequestAwsJson11Serializer if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(session, specifiedType: const FullType(String)), + ); } if (challengeResponses != null) { result$ ..add('ChallengeResponses') - ..add(serializers.serialize( - challengeResponses, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + challengeResponses, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (analyticsMetadata != null) { result$ ..add('AnalyticsMetadata') - ..add(serializers.serialize( - analyticsMetadata, - specifiedType: const FullType(AnalyticsMetadataType), - )); + ..add( + serializers.serialize( + analyticsMetadata, + specifiedType: const FullType(AnalyticsMetadataType), + ), + ); } if (userContextData != null) { result$ ..add('UserContextData') - ..add(serializers.serialize( - userContextData, - specifiedType: const FullType(UserContextDataType), - )); + ..add( + serializers.serialize( + userContextData, + specifiedType: const FullType(UserContextDataType), + ), + ); } if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.g.dart index 94f22a664a..90a97d1a9f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_request.g.dart @@ -22,29 +22,35 @@ class _$RespondToAuthChallengeRequest extends RespondToAuthChallengeRequest { @override final _i3.BuiltMap? clientMetadata; - factory _$RespondToAuthChallengeRequest( - [void Function(RespondToAuthChallengeRequestBuilder)? updates]) => - (new RespondToAuthChallengeRequestBuilder()..update(updates))._build(); - - _$RespondToAuthChallengeRequest._( - {required this.clientId, - required this.challengeName, - this.session, - this.challengeResponses, - this.analyticsMetadata, - this.userContextData, - this.clientMetadata}) - : super._() { + factory _$RespondToAuthChallengeRequest([ + void Function(RespondToAuthChallengeRequestBuilder)? updates, + ]) => (new RespondToAuthChallengeRequestBuilder()..update(updates))._build(); + + _$RespondToAuthChallengeRequest._({ + required this.clientId, + required this.challengeName, + this.session, + this.challengeResponses, + this.analyticsMetadata, + this.userContextData, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - clientId, r'RespondToAuthChallengeRequest', 'clientId'); + clientId, + r'RespondToAuthChallengeRequest', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - challengeName, r'RespondToAuthChallengeRequest', 'challengeName'); + challengeName, + r'RespondToAuthChallengeRequest', + 'challengeName', + ); } @override RespondToAuthChallengeRequest rebuild( - void Function(RespondToAuthChallengeRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RespondToAuthChallengeRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RespondToAuthChallengeRequestBuilder toBuilder() => @@ -80,8 +86,10 @@ class _$RespondToAuthChallengeRequest extends RespondToAuthChallengeRequest { class RespondToAuthChallengeRequestBuilder implements - Builder { + Builder< + RespondToAuthChallengeRequest, + RespondToAuthChallengeRequestBuilder + > { _$RespondToAuthChallengeRequest? _$v; String? _clientId; @@ -155,12 +163,19 @@ class RespondToAuthChallengeRequestBuilder _$RespondToAuthChallengeRequest _build() { _$RespondToAuthChallengeRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RespondToAuthChallengeRequest._( clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'RespondToAuthChallengeRequest', 'clientId'), - challengeName: BuiltValueNullFieldError.checkNotNull(challengeName, - r'RespondToAuthChallengeRequest', 'challengeName'), + clientId, + r'RespondToAuthChallengeRequest', + 'clientId', + ), + challengeName: BuiltValueNullFieldError.checkNotNull( + challengeName, + r'RespondToAuthChallengeRequest', + 'challengeName', + ), session: session, challengeResponses: _challengeResponses?.build(), analyticsMetadata: _analyticsMetadata?.build(), @@ -180,7 +195,10 @@ class RespondToAuthChallengeRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RespondToAuthChallengeRequest', _$failedField, e.toString()); + r'RespondToAuthChallengeRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.dart index 8ea2f06cec..0b9cd18285 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.dart @@ -15,11 +15,12 @@ part 'respond_to_auth_challenge_response.g.dart'; /// The response to respond to the authentication challenge. abstract class RespondToAuthChallengeResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RespondToAuthChallengeResponse, + RespondToAuthChallengeResponseBuilder + > { /// The response to respond to the authentication challenge. factory RespondToAuthChallengeResponse({ ChallengeNameType? challengeName, @@ -30,17 +31,18 @@ abstract class RespondToAuthChallengeResponse return _$RespondToAuthChallengeResponse._( challengeName: challengeName, session: session, - challengeParameters: challengeParameters == null - ? null - : _i2.BuiltMap(challengeParameters), + challengeParameters: + challengeParameters == null + ? null + : _i2.BuiltMap(challengeParameters), authenticationResult: authenticationResult, ); } /// The response to respond to the authentication challenge. - factory RespondToAuthChallengeResponse.build( - [void Function(RespondToAuthChallengeResponseBuilder) updates]) = - _$RespondToAuthChallengeResponse; + factory RespondToAuthChallengeResponse.build([ + void Function(RespondToAuthChallengeResponseBuilder) updates, + ]) = _$RespondToAuthChallengeResponse; const RespondToAuthChallengeResponse._(); @@ -48,11 +50,10 @@ abstract class RespondToAuthChallengeResponse factory RespondToAuthChallengeResponse.fromResponse( RespondToAuthChallengeResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [RespondToAuthChallengeResponseAwsJson11Serializer()]; + serializers = [RespondToAuthChallengeResponseAwsJson11Serializer()]; /// The challenge name. For more information, see [InitiateAuth](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html). ChallengeNameType? get challengeName; @@ -67,31 +68,20 @@ abstract class RespondToAuthChallengeResponse AuthenticationResultType? get authenticationResult; @override List get props => [ - challengeName, - session, - challengeParameters, - authenticationResult, - ]; + challengeName, + session, + challengeParameters, + authenticationResult, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('RespondToAuthChallengeResponse') - ..add( - 'challengeName', - challengeName, - ) - ..add( - 'session', - '***SENSITIVE***', - ) - ..add( - 'challengeParameters', - challengeParameters, - ) - ..add( - 'authenticationResult', - authenticationResult, - ); + final helper = + newBuiltValueToStringHelper('RespondToAuthChallengeResponse') + ..add('challengeName', challengeName) + ..add('session', '***SENSITIVE***') + ..add('challengeParameters', challengeParameters) + ..add('authenticationResult', authenticationResult); return helper.toString(); } } @@ -99,21 +89,18 @@ abstract class RespondToAuthChallengeResponse class RespondToAuthChallengeResponseAwsJson11Serializer extends _i3.StructuredSmithySerializer { const RespondToAuthChallengeResponseAwsJson11Serializer() - : super('RespondToAuthChallengeResponse'); + : super('RespondToAuthChallengeResponse'); @override Iterable get types => const [ - RespondToAuthChallengeResponse, - _$RespondToAuthChallengeResponse, - ]; + RespondToAuthChallengeResponse, + _$RespondToAuthChallengeResponse, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RespondToAuthChallengeResponse deserialize( @@ -132,31 +119,38 @@ class RespondToAuthChallengeResponseAwsJson11Serializer } switch (key) { case 'ChallengeName': - result.challengeName = (serializers.deserialize( - value, - specifiedType: const FullType(ChallengeNameType), - ) as ChallengeNameType); + result.challengeName = + (serializers.deserialize( + value, + specifiedType: const FullType(ChallengeNameType), + ) + as ChallengeNameType); case 'Session': - result.session = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.session = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChallengeParameters': - result.challengeParameters.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i2.BuiltMap)); + result.challengeParameters.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i2.BuiltMap), + ); case 'AuthenticationResult': - result.authenticationResult.replace((serializers.deserialize( - value, - specifiedType: const FullType(AuthenticationResultType), - ) as AuthenticationResultType)); + result.authenticationResult.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AuthenticationResultType), + ) + as AuthenticationResultType), + ); } } @@ -174,45 +168,47 @@ class RespondToAuthChallengeResponseAwsJson11Serializer :challengeName, :session, :challengeParameters, - :authenticationResult + :authenticationResult, ) = object; if (challengeName != null) { result$ ..add('ChallengeName') - ..add(serializers.serialize( - challengeName, - specifiedType: const FullType(ChallengeNameType), - )); + ..add( + serializers.serialize( + challengeName, + specifiedType: const FullType(ChallengeNameType), + ), + ); } if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(session, specifiedType: const FullType(String)), + ); } if (challengeParameters != null) { result$ ..add('ChallengeParameters') - ..add(serializers.serialize( - challengeParameters, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + challengeParameters, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType.nullable(String), - ], + ]), ), - )); + ); } if (authenticationResult != null) { result$ ..add('AuthenticationResult') - ..add(serializers.serialize( - authenticationResult, - specifiedType: const FullType(AuthenticationResultType), - )); + ..add( + serializers.serialize( + authenticationResult, + specifiedType: const FullType(AuthenticationResultType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.g.dart index a3ceeb7cfe..8684792679 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/respond_to_auth_challenge_response.g.dart @@ -16,21 +16,21 @@ class _$RespondToAuthChallengeResponse extends RespondToAuthChallengeResponse { @override final AuthenticationResultType? authenticationResult; - factory _$RespondToAuthChallengeResponse( - [void Function(RespondToAuthChallengeResponseBuilder)? updates]) => - (new RespondToAuthChallengeResponseBuilder()..update(updates))._build(); + factory _$RespondToAuthChallengeResponse([ + void Function(RespondToAuthChallengeResponseBuilder)? updates, + ]) => (new RespondToAuthChallengeResponseBuilder()..update(updates))._build(); - _$RespondToAuthChallengeResponse._( - {this.challengeName, - this.session, - this.challengeParameters, - this.authenticationResult}) - : super._(); + _$RespondToAuthChallengeResponse._({ + this.challengeName, + this.session, + this.challengeParameters, + this.authenticationResult, + }) : super._(); @override RespondToAuthChallengeResponse rebuild( - void Function(RespondToAuthChallengeResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RespondToAuthChallengeResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RespondToAuthChallengeResponseBuilder toBuilder() => @@ -60,8 +60,10 @@ class _$RespondToAuthChallengeResponse extends RespondToAuthChallengeResponse { class RespondToAuthChallengeResponseBuilder implements - Builder { + Builder< + RespondToAuthChallengeResponse, + RespondToAuthChallengeResponseBuilder + > { _$RespondToAuthChallengeResponse? _$v; ChallengeNameType? _challengeName; @@ -77,15 +79,15 @@ class RespondToAuthChallengeResponseBuilder _i2.MapBuilder get challengeParameters => _$this._challengeParameters ??= new _i2.MapBuilder(); set challengeParameters( - _i2.MapBuilder? challengeParameters) => - _$this._challengeParameters = challengeParameters; + _i2.MapBuilder? challengeParameters, + ) => _$this._challengeParameters = challengeParameters; AuthenticationResultTypeBuilder? _authenticationResult; AuthenticationResultTypeBuilder get authenticationResult => _$this._authenticationResult ??= new AuthenticationResultTypeBuilder(); set authenticationResult( - AuthenticationResultTypeBuilder? authenticationResult) => - _$this._authenticationResult = authenticationResult; + AuthenticationResultTypeBuilder? authenticationResult, + ) => _$this._authenticationResult = authenticationResult; RespondToAuthChallengeResponseBuilder(); @@ -118,7 +120,8 @@ class RespondToAuthChallengeResponseBuilder _$RespondToAuthChallengeResponse _build() { _$RespondToAuthChallengeResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RespondToAuthChallengeResponse._( challengeName: challengeName, session: session, @@ -134,7 +137,10 @@ class RespondToAuthChallengeResponseBuilder _authenticationResult?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RespondToAuthChallengeResponse', _$failedField, e.toString()); + r'RespondToAuthChallengeResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.dart index 423af9fabe..6d5209814f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.dart @@ -25,9 +25,9 @@ abstract class RevokeTokenRequest ); } - factory RevokeTokenRequest.build( - [void Function(RevokeTokenRequestBuilder) updates]) = - _$RevokeTokenRequest; + factory RevokeTokenRequest.build([ + void Function(RevokeTokenRequestBuilder) updates, + ]) = _$RevokeTokenRequest; const RevokeTokenRequest._(); @@ -35,11 +35,10 @@ abstract class RevokeTokenRequest RevokeTokenRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - RevokeTokenRequestAwsJson11Serializer() + RevokeTokenRequestAwsJson11Serializer(), ]; /// The refresh token that you want to revoke. @@ -54,27 +53,15 @@ abstract class RevokeTokenRequest RevokeTokenRequest getPayload() => this; @override - List get props => [ - token, - clientId, - clientSecret, - ]; + List get props => [token, clientId, clientSecret]; @override String toString() { - final helper = newBuiltValueToStringHelper('RevokeTokenRequest') - ..add( - 'token', - '***SENSITIVE***', - ) - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'clientSecret', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('RevokeTokenRequest') + ..add('token', '***SENSITIVE***') + ..add('clientId', '***SENSITIVE***') + ..add('clientSecret', '***SENSITIVE***'); return helper.toString(); } } @@ -84,18 +71,12 @@ class RevokeTokenRequestAwsJson11Serializer const RevokeTokenRequestAwsJson11Serializer() : super('RevokeTokenRequest'); @override - Iterable get types => const [ - RevokeTokenRequest, - _$RevokeTokenRequest, - ]; + Iterable get types => const [RevokeTokenRequest, _$RevokeTokenRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RevokeTokenRequest deserialize( @@ -114,20 +95,26 @@ class RevokeTokenRequestAwsJson11Serializer } switch (key) { case 'Token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ClientSecret': - result.clientSecret = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientSecret = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -144,23 +131,19 @@ class RevokeTokenRequestAwsJson11Serializer final RevokeTokenRequest(:token, :clientId, :clientSecret) = object; result$.addAll([ 'Token', - serializers.serialize( - token, - specifiedType: const FullType(String), - ), + serializers.serialize(token, specifiedType: const FullType(String)), 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), ]); if (clientSecret != null) { result$ ..add('ClientSecret') - ..add(serializers.serialize( - clientSecret, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + clientSecret, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.g.dart index 7eaeff9237..8ed080929e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_request.g.dart @@ -14,23 +14,31 @@ class _$RevokeTokenRequest extends RevokeTokenRequest { @override final String? clientSecret; - factory _$RevokeTokenRequest( - [void Function(RevokeTokenRequestBuilder)? updates]) => - (new RevokeTokenRequestBuilder()..update(updates))._build(); - - _$RevokeTokenRequest._( - {required this.token, required this.clientId, this.clientSecret}) - : super._() { + factory _$RevokeTokenRequest([ + void Function(RevokeTokenRequestBuilder)? updates, + ]) => (new RevokeTokenRequestBuilder()..update(updates))._build(); + + _$RevokeTokenRequest._({ + required this.token, + required this.clientId, + this.clientSecret, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - token, r'RevokeTokenRequest', 'token'); + token, + r'RevokeTokenRequest', + 'token', + ); BuiltValueNullFieldError.checkNotNull( - clientId, r'RevokeTokenRequest', 'clientId'); + clientId, + r'RevokeTokenRequest', + 'clientId', + ); } @override RevokeTokenRequest rebuild( - void Function(RevokeTokenRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RevokeTokenRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RevokeTokenRequestBuilder toBuilder() => @@ -100,12 +108,19 @@ class RevokeTokenRequestBuilder RevokeTokenRequest build() => _build(); _$RevokeTokenRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$RevokeTokenRequest._( token: BuiltValueNullFieldError.checkNotNull( - token, r'RevokeTokenRequest', 'token'), + token, + r'RevokeTokenRequest', + 'token', + ), clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'RevokeTokenRequest', 'clientId'), + clientId, + r'RevokeTokenRequest', + 'clientId', + ), clientSecret: clientSecret, ); replace(_$result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.dart index d9e99039d3..6072057392 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.dart @@ -19,9 +19,9 @@ abstract class RevokeTokenResponse return _$RevokeTokenResponse._(); } - factory RevokeTokenResponse.build( - [void Function(RevokeTokenResponseBuilder) updates]) = - _$RevokeTokenResponse; + factory RevokeTokenResponse.build([ + void Function(RevokeTokenResponseBuilder) updates, + ]) = _$RevokeTokenResponse; const RevokeTokenResponse._(); @@ -29,11 +29,10 @@ abstract class RevokeTokenResponse factory RevokeTokenResponse.fromResponse( RevokeTokenResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - RevokeTokenResponseAwsJson11Serializer() + RevokeTokenResponseAwsJson11Serializer(), ]; @override @@ -52,17 +51,14 @@ class RevokeTokenResponseAwsJson11Serializer @override Iterable get types => const [ - RevokeTokenResponse, - _$RevokeTokenResponse, - ]; + RevokeTokenResponse, + _$RevokeTokenResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RevokeTokenResponse deserialize( @@ -78,6 +74,5 @@ class RevokeTokenResponseAwsJson11Serializer Serializers serializers, RevokeTokenResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.g.dart index 0cd3dcdff9..4dc3b4b71e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/revoke_token_response.g.dart @@ -7,16 +7,16 @@ part of 'revoke_token_response.dart'; // ************************************************************************** class _$RevokeTokenResponse extends RevokeTokenResponse { - factory _$RevokeTokenResponse( - [void Function(RevokeTokenResponseBuilder)? updates]) => - (new RevokeTokenResponseBuilder()..update(updates))._build(); + factory _$RevokeTokenResponse([ + void Function(RevokeTokenResponseBuilder)? updates, + ]) => (new RevokeTokenResponseBuilder()..update(updates))._build(); _$RevokeTokenResponse._() : super._(); @override RevokeTokenResponse rebuild( - void Function(RevokeTokenResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RevokeTokenResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RevokeTokenResponseBuilder toBuilder() => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.dart index 04bb1ad29b..7c968206d9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.dart @@ -33,9 +33,9 @@ abstract class SetUserMfaPreferenceRequest ); } - factory SetUserMfaPreferenceRequest.build( - [void Function(SetUserMfaPreferenceRequestBuilder) updates]) = - _$SetUserMfaPreferenceRequest; + factory SetUserMfaPreferenceRequest.build([ + void Function(SetUserMfaPreferenceRequestBuilder) updates, + ]) = _$SetUserMfaPreferenceRequest; const SetUserMfaPreferenceRequest._(); @@ -43,11 +43,10 @@ abstract class SetUserMfaPreferenceRequest SetUserMfaPreferenceRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [SetUserMfaPreferenceRequestAwsJson11Serializer()]; + serializers = [SetUserMfaPreferenceRequestAwsJson11Serializer()]; /// User preferences for SMS message MFA. Activates or deactivates SMS MFA and sets it as the preferred MFA method when multiple methods are available. SmsMfaSettingsType? get smsMfaSettings; @@ -65,31 +64,20 @@ abstract class SetUserMfaPreferenceRequest @override List get props => [ - smsMfaSettings, - softwareTokenMfaSettings, - emailMfaSettings, - accessToken, - ]; + smsMfaSettings, + softwareTokenMfaSettings, + emailMfaSettings, + accessToken, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('SetUserMfaPreferenceRequest') - ..add( - 'smsMfaSettings', - smsMfaSettings, - ) - ..add( - 'softwareTokenMfaSettings', - softwareTokenMfaSettings, - ) - ..add( - 'emailMfaSettings', - emailMfaSettings, - ) - ..add( - 'accessToken', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('SetUserMfaPreferenceRequest') + ..add('smsMfaSettings', smsMfaSettings) + ..add('softwareTokenMfaSettings', softwareTokenMfaSettings) + ..add('emailMfaSettings', emailMfaSettings) + ..add('accessToken', '***SENSITIVE***'); return helper.toString(); } } @@ -97,21 +85,18 @@ abstract class SetUserMfaPreferenceRequest class SetUserMfaPreferenceRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const SetUserMfaPreferenceRequestAwsJson11Serializer() - : super('SetUserMfaPreferenceRequest'); + : super('SetUserMfaPreferenceRequest'); @override Iterable get types => const [ - SetUserMfaPreferenceRequest, - _$SetUserMfaPreferenceRequest, - ]; + SetUserMfaPreferenceRequest, + _$SetUserMfaPreferenceRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SetUserMfaPreferenceRequest deserialize( @@ -130,25 +115,36 @@ class SetUserMfaPreferenceRequestAwsJson11Serializer } switch (key) { case 'SMSMfaSettings': - result.smsMfaSettings.replace((serializers.deserialize( - value, - specifiedType: const FullType(SmsMfaSettingsType), - ) as SmsMfaSettingsType)); + result.smsMfaSettings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(SmsMfaSettingsType), + ) + as SmsMfaSettingsType), + ); case 'SoftwareTokenMfaSettings': - result.softwareTokenMfaSettings.replace((serializers.deserialize( - value, - specifiedType: const FullType(SoftwareTokenMfaSettingsType), - ) as SoftwareTokenMfaSettingsType)); + result.softwareTokenMfaSettings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(SoftwareTokenMfaSettingsType), + ) + as SoftwareTokenMfaSettingsType), + ); case 'EmailMfaSettings': - result.emailMfaSettings.replace((serializers.deserialize( - value, - specifiedType: const FullType(EmailMfaSettingsType), - ) as EmailMfaSettingsType)); + result.emailMfaSettings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EmailMfaSettingsType), + ) + as EmailMfaSettingsType), + ); case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -166,38 +162,41 @@ class SetUserMfaPreferenceRequestAwsJson11Serializer :smsMfaSettings, :softwareTokenMfaSettings, :emailMfaSettings, - :accessToken + :accessToken, ) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), ]); if (smsMfaSettings != null) { result$ ..add('SMSMfaSettings') - ..add(serializers.serialize( - smsMfaSettings, - specifiedType: const FullType(SmsMfaSettingsType), - )); + ..add( + serializers.serialize( + smsMfaSettings, + specifiedType: const FullType(SmsMfaSettingsType), + ), + ); } if (softwareTokenMfaSettings != null) { result$ ..add('SoftwareTokenMfaSettings') - ..add(serializers.serialize( - softwareTokenMfaSettings, - specifiedType: const FullType(SoftwareTokenMfaSettingsType), - )); + ..add( + serializers.serialize( + softwareTokenMfaSettings, + specifiedType: const FullType(SoftwareTokenMfaSettingsType), + ), + ); } if (emailMfaSettings != null) { result$ ..add('EmailMfaSettings') - ..add(serializers.serialize( - emailMfaSettings, - specifiedType: const FullType(EmailMfaSettingsType), - )); + ..add( + serializers.serialize( + emailMfaSettings, + specifiedType: const FullType(EmailMfaSettingsType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.g.dart index ba29d4a4b5..cb07a27de9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_request.g.dart @@ -16,24 +16,27 @@ class _$SetUserMfaPreferenceRequest extends SetUserMfaPreferenceRequest { @override final String accessToken; - factory _$SetUserMfaPreferenceRequest( - [void Function(SetUserMfaPreferenceRequestBuilder)? updates]) => - (new SetUserMfaPreferenceRequestBuilder()..update(updates))._build(); - - _$SetUserMfaPreferenceRequest._( - {this.smsMfaSettings, - this.softwareTokenMfaSettings, - this.emailMfaSettings, - required this.accessToken}) - : super._() { + factory _$SetUserMfaPreferenceRequest([ + void Function(SetUserMfaPreferenceRequestBuilder)? updates, + ]) => (new SetUserMfaPreferenceRequestBuilder()..update(updates))._build(); + + _$SetUserMfaPreferenceRequest._({ + this.smsMfaSettings, + this.softwareTokenMfaSettings, + this.emailMfaSettings, + required this.accessToken, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'SetUserMfaPreferenceRequest', 'accessToken'); + accessToken, + r'SetUserMfaPreferenceRequest', + 'accessToken', + ); } @override SetUserMfaPreferenceRequest rebuild( - void Function(SetUserMfaPreferenceRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SetUserMfaPreferenceRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SetUserMfaPreferenceRequestBuilder toBuilder() => @@ -63,8 +66,10 @@ class _$SetUserMfaPreferenceRequest extends SetUserMfaPreferenceRequest { class SetUserMfaPreferenceRequestBuilder implements - Builder { + Builder< + SetUserMfaPreferenceRequest, + SetUserMfaPreferenceRequestBuilder + > { _$SetUserMfaPreferenceRequest? _$v; SmsMfaSettingsTypeBuilder? _smsMfaSettings; @@ -78,8 +83,8 @@ class SetUserMfaPreferenceRequestBuilder _$this._softwareTokenMfaSettings ??= new SoftwareTokenMfaSettingsTypeBuilder(); set softwareTokenMfaSettings( - SoftwareTokenMfaSettingsTypeBuilder? softwareTokenMfaSettings) => - _$this._softwareTokenMfaSettings = softwareTokenMfaSettings; + SoftwareTokenMfaSettingsTypeBuilder? softwareTokenMfaSettings, + ) => _$this._softwareTokenMfaSettings = softwareTokenMfaSettings; EmailMfaSettingsTypeBuilder? _emailMfaSettings; EmailMfaSettingsTypeBuilder get emailMfaSettings => @@ -122,13 +127,17 @@ class SetUserMfaPreferenceRequestBuilder _$SetUserMfaPreferenceRequest _build() { _$SetUserMfaPreferenceRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SetUserMfaPreferenceRequest._( smsMfaSettings: _smsMfaSettings?.build(), softwareTokenMfaSettings: _softwareTokenMfaSettings?.build(), emailMfaSettings: _emailMfaSettings?.build(), accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'SetUserMfaPreferenceRequest', 'accessToken'), + accessToken, + r'SetUserMfaPreferenceRequest', + 'accessToken', + ), ); } catch (_) { late String _$failedField; @@ -141,7 +150,10 @@ class SetUserMfaPreferenceRequestBuilder _emailMfaSettings?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SetUserMfaPreferenceRequest', _$failedField, e.toString()); + r'SetUserMfaPreferenceRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.dart index bfb06d87f1..7c4d2bfbb6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.dart @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'set_user_mfa_preference_response.g.dart'; abstract class SetUserMfaPreferenceResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + SetUserMfaPreferenceResponse, + SetUserMfaPreferenceResponseBuilder + >, _i2.EmptyPayload { factory SetUserMfaPreferenceResponse() { return _$SetUserMfaPreferenceResponse._(); } - factory SetUserMfaPreferenceResponse.build( - [void Function(SetUserMfaPreferenceResponseBuilder) updates]) = - _$SetUserMfaPreferenceResponse; + factory SetUserMfaPreferenceResponse.build([ + void Function(SetUserMfaPreferenceResponseBuilder) updates, + ]) = _$SetUserMfaPreferenceResponse; const SetUserMfaPreferenceResponse._(); @@ -31,11 +32,10 @@ abstract class SetUserMfaPreferenceResponse factory SetUserMfaPreferenceResponse.fromResponse( SetUserMfaPreferenceResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [SetUserMfaPreferenceResponseAwsJson11Serializer()]; + serializers = [SetUserMfaPreferenceResponseAwsJson11Serializer()]; @override List get props => []; @@ -50,21 +50,18 @@ abstract class SetUserMfaPreferenceResponse class SetUserMfaPreferenceResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const SetUserMfaPreferenceResponseAwsJson11Serializer() - : super('SetUserMfaPreferenceResponse'); + : super('SetUserMfaPreferenceResponse'); @override Iterable get types => const [ - SetUserMfaPreferenceResponse, - _$SetUserMfaPreferenceResponse, - ]; + SetUserMfaPreferenceResponse, + _$SetUserMfaPreferenceResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SetUserMfaPreferenceResponse deserialize( @@ -80,6 +77,5 @@ class SetUserMfaPreferenceResponseAwsJson11Serializer Serializers serializers, SetUserMfaPreferenceResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.g.dart index ca38d56f2c..99778a74e7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/set_user_mfa_preference_response.g.dart @@ -7,16 +7,16 @@ part of 'set_user_mfa_preference_response.dart'; // ************************************************************************** class _$SetUserMfaPreferenceResponse extends SetUserMfaPreferenceResponse { - factory _$SetUserMfaPreferenceResponse( - [void Function(SetUserMfaPreferenceResponseBuilder)? updates]) => - (new SetUserMfaPreferenceResponseBuilder()..update(updates))._build(); + factory _$SetUserMfaPreferenceResponse([ + void Function(SetUserMfaPreferenceResponseBuilder)? updates, + ]) => (new SetUserMfaPreferenceResponseBuilder()..update(updates))._build(); _$SetUserMfaPreferenceResponse._() : super._(); @override SetUserMfaPreferenceResponse rebuild( - void Function(SetUserMfaPreferenceResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SetUserMfaPreferenceResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SetUserMfaPreferenceResponseBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$SetUserMfaPreferenceResponse extends SetUserMfaPreferenceResponse { class SetUserMfaPreferenceResponseBuilder implements - Builder { + Builder< + SetUserMfaPreferenceResponse, + SetUserMfaPreferenceResponseBuilder + > { _$SetUserMfaPreferenceResponse? _$v; SetUserMfaPreferenceResponseBuilder(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.dart index 8709755f15..2bccee2021 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.dart @@ -56,11 +56,10 @@ abstract class SignUpRequest SignUpRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - SignUpRequestAwsJson11Serializer() + SignUpRequestAwsJson11Serializer(), ]; /// The ID of the client associated with the user pool. @@ -112,56 +111,30 @@ abstract class SignUpRequest @override List get props => [ - clientId, - secretHash, - username, - password, - userAttributes, - validationData, - analyticsMetadata, - userContextData, - clientMetadata, - ]; + clientId, + secretHash, + username, + password, + userAttributes, + validationData, + analyticsMetadata, + userContextData, + clientMetadata, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('SignUpRequest') - ..add( - 'clientId', - '***SENSITIVE***', - ) - ..add( - 'secretHash', - '***SENSITIVE***', - ) - ..add( - 'username', - '***SENSITIVE***', - ) - ..add( - 'password', - '***SENSITIVE***', - ) - ..add( - 'userAttributes', - userAttributes, - ) - ..add( - 'validationData', - validationData, - ) - ..add( - 'analyticsMetadata', - analyticsMetadata, - ) - ..add( - 'userContextData', - '***SENSITIVE***', - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + final helper = + newBuiltValueToStringHelper('SignUpRequest') + ..add('clientId', '***SENSITIVE***') + ..add('secretHash', '***SENSITIVE***') + ..add('username', '***SENSITIVE***') + ..add('password', '***SENSITIVE***') + ..add('userAttributes', userAttributes) + ..add('validationData', validationData) + ..add('analyticsMetadata', analyticsMetadata) + ..add('userContextData', '***SENSITIVE***') + ..add('clientMetadata', clientMetadata); return helper.toString(); } } @@ -171,18 +144,12 @@ class SignUpRequestAwsJson11Serializer const SignUpRequestAwsJson11Serializer() : super('SignUpRequest'); @override - Iterable get types => const [ - SignUpRequest, - _$SignUpRequest, - ]; + Iterable get types => const [SignUpRequest, _$SignUpRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SignUpRequest deserialize( @@ -201,62 +168,80 @@ class SignUpRequestAwsJson11Serializer } switch (key) { case 'ClientId': - result.clientId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.clientId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'SecretHash': - result.secretHash = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.secretHash = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Username': - result.username = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.username = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Password': - result.password = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.password = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UserAttributes': - result.userAttributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(AttributeType)], - ), - ) as _i3.BuiltList)); + result.userAttributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(AttributeType), + ]), + ) + as _i3.BuiltList), + ); case 'ValidationData': - result.validationData.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(AttributeType)], - ), - ) as _i3.BuiltList)); + result.validationData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(AttributeType), + ]), + ) + as _i3.BuiltList), + ); case 'AnalyticsMetadata': - result.analyticsMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType(AnalyticsMetadataType), - ) as AnalyticsMetadataType)); + result.analyticsMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(AnalyticsMetadataType), + ) + as AnalyticsMetadataType), + ); case 'UserContextData': - result.userContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(UserContextDataType), - ) as UserContextDataType)); + result.userContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(UserContextDataType), + ) + as UserContextDataType), + ); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -279,84 +264,82 @@ class SignUpRequestAwsJson11Serializer :validationData, :analyticsMetadata, :userContextData, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'ClientId', - serializers.serialize( - clientId, - specifiedType: const FullType(String), - ), + serializers.serialize(clientId, specifiedType: const FullType(String)), 'Username', - serializers.serialize( - username, - specifiedType: const FullType(String), - ), + serializers.serialize(username, specifiedType: const FullType(String)), 'Password', - serializers.serialize( - password, - specifiedType: const FullType(String), - ), + serializers.serialize(password, specifiedType: const FullType(String)), ]); if (secretHash != null) { result$ ..add('SecretHash') - ..add(serializers.serialize( - secretHash, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + secretHash, + specifiedType: const FullType(String), + ), + ); } if (userAttributes != null) { result$ ..add('UserAttributes') - ..add(serializers.serialize( - userAttributes, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(AttributeType)], + ..add( + serializers.serialize( + userAttributes, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(AttributeType), + ]), ), - )); + ); } if (validationData != null) { result$ ..add('ValidationData') - ..add(serializers.serialize( - validationData, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(AttributeType)], + ..add( + serializers.serialize( + validationData, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(AttributeType), + ]), ), - )); + ); } if (analyticsMetadata != null) { result$ ..add('AnalyticsMetadata') - ..add(serializers.serialize( - analyticsMetadata, - specifiedType: const FullType(AnalyticsMetadataType), - )); + ..add( + serializers.serialize( + analyticsMetadata, + specifiedType: const FullType(AnalyticsMetadataType), + ), + ); } if (userContextData != null) { result$ ..add('UserContextData') - ..add(serializers.serialize( - userContextData, - specifiedType: const FullType(UserContextDataType), - )); + ..add( + serializers.serialize( + userContextData, + specifiedType: const FullType(UserContextDataType), + ), + ); } if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.g.dart index f7ce7220fa..cdbe388650 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_request.g.dart @@ -29,23 +29,32 @@ class _$SignUpRequest extends SignUpRequest { factory _$SignUpRequest([void Function(SignUpRequestBuilder)? updates]) => (new SignUpRequestBuilder()..update(updates))._build(); - _$SignUpRequest._( - {required this.clientId, - this.secretHash, - required this.username, - required this.password, - this.userAttributes, - this.validationData, - this.analyticsMetadata, - this.userContextData, - this.clientMetadata}) - : super._() { + _$SignUpRequest._({ + required this.clientId, + this.secretHash, + required this.username, + required this.password, + this.userAttributes, + this.validationData, + this.analyticsMetadata, + this.userContextData, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - clientId, r'SignUpRequest', 'clientId'); + clientId, + r'SignUpRequest', + 'clientId', + ); BuiltValueNullFieldError.checkNotNull( - username, r'SignUpRequest', 'username'); + username, + r'SignUpRequest', + 'username', + ); BuiltValueNullFieldError.checkNotNull( - password, r'SignUpRequest', 'password'); + password, + r'SignUpRequest', + 'password', + ); } @override @@ -173,15 +182,25 @@ class SignUpRequestBuilder _$SignUpRequest _build() { _$SignUpRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SignUpRequest._( clientId: BuiltValueNullFieldError.checkNotNull( - clientId, r'SignUpRequest', 'clientId'), + clientId, + r'SignUpRequest', + 'clientId', + ), secretHash: secretHash, username: BuiltValueNullFieldError.checkNotNull( - username, r'SignUpRequest', 'username'), + username, + r'SignUpRequest', + 'username', + ), password: BuiltValueNullFieldError.checkNotNull( - password, r'SignUpRequest', 'password'), + password, + r'SignUpRequest', + 'password', + ), userAttributes: _userAttributes?.build(), validationData: _validationData?.build(), analyticsMetadata: _analyticsMetadata?.build(), @@ -203,7 +222,10 @@ class SignUpRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SignUpRequest', _$failedField, e.toString()); + r'SignUpRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.dart index 5c5dc0cf4c..9cb4105233 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.dart @@ -39,11 +39,10 @@ abstract class SignUpResponse factory SignUpResponse.fromResponse( SignUpResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - SignUpResponseAwsJson11Serializer() + SignUpResponseAwsJson11Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -60,27 +59,15 @@ abstract class SignUpResponse /// The 128-bit ID of the authenticated user. This isn't the same as `username`. String get userSub; @override - List get props => [ - userConfirmed, - codeDeliveryDetails, - userSub, - ]; + List get props => [userConfirmed, codeDeliveryDetails, userSub]; @override String toString() { - final helper = newBuiltValueToStringHelper('SignUpResponse') - ..add( - 'userConfirmed', - userConfirmed, - ) - ..add( - 'codeDeliveryDetails', - codeDeliveryDetails, - ) - ..add( - 'userSub', - userSub, - ); + final helper = + newBuiltValueToStringHelper('SignUpResponse') + ..add('userConfirmed', userConfirmed) + ..add('codeDeliveryDetails', codeDeliveryDetails) + ..add('userSub', userSub); return helper.toString(); } } @@ -90,18 +77,12 @@ class SignUpResponseAwsJson11Serializer const SignUpResponseAwsJson11Serializer() : super('SignUpResponse'); @override - Iterable get types => const [ - SignUpResponse, - _$SignUpResponse, - ]; + Iterable get types => const [SignUpResponse, _$SignUpResponse]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SignUpResponse deserialize( @@ -120,20 +101,27 @@ class SignUpResponseAwsJson11Serializer } switch (key) { case 'UserConfirmed': - result.userConfirmed = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.userConfirmed = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'CodeDeliveryDetails': - result.codeDeliveryDetails.replace((serializers.deserialize( - value, - specifiedType: const FullType(CodeDeliveryDetailsType), - ) as CodeDeliveryDetailsType)); + result.codeDeliveryDetails.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CodeDeliveryDetailsType), + ) + as CodeDeliveryDetailsType), + ); case 'UserSub': - result.userSub = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.userSub = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -151,23 +139,19 @@ class SignUpResponseAwsJson11Serializer object; result$.addAll([ 'UserConfirmed', - serializers.serialize( - userConfirmed, - specifiedType: const FullType(bool), - ), + serializers.serialize(userConfirmed, specifiedType: const FullType(bool)), 'UserSub', - serializers.serialize( - userSub, - specifiedType: const FullType(String), - ), + serializers.serialize(userSub, specifiedType: const FullType(String)), ]); if (codeDeliveryDetails != null) { result$ ..add('CodeDeliveryDetails') - ..add(serializers.serialize( - codeDeliveryDetails, - specifiedType: const FullType(CodeDeliveryDetailsType), - )); + ..add( + serializers.serialize( + codeDeliveryDetails, + specifiedType: const FullType(CodeDeliveryDetailsType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.g.dart index 2ce1fd7e65..b564644372 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sign_up_response.g.dart @@ -17,15 +17,21 @@ class _$SignUpResponse extends SignUpResponse { factory _$SignUpResponse([void Function(SignUpResponseBuilder)? updates]) => (new SignUpResponseBuilder()..update(updates))._build(); - _$SignUpResponse._( - {required this.userConfirmed, - this.codeDeliveryDetails, - required this.userSub}) - : super._() { + _$SignUpResponse._({ + required this.userConfirmed, + this.codeDeliveryDetails, + required this.userSub, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - userConfirmed, r'SignUpResponse', 'userConfirmed'); + userConfirmed, + r'SignUpResponse', + 'userConfirmed', + ); BuiltValueNullFieldError.checkNotNull( - userSub, r'SignUpResponse', 'userSub'); + userSub, + r'SignUpResponse', + 'userSub', + ); } @override @@ -69,8 +75,8 @@ class SignUpResponseBuilder CodeDeliveryDetailsTypeBuilder get codeDeliveryDetails => _$this._codeDeliveryDetails ??= new CodeDeliveryDetailsTypeBuilder(); set codeDeliveryDetails( - CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails) => - _$this._codeDeliveryDetails = codeDeliveryDetails; + CodeDeliveryDetailsTypeBuilder? codeDeliveryDetails, + ) => _$this._codeDeliveryDetails = codeDeliveryDetails; String? _userSub; String? get userSub => _$this._userSub; @@ -108,13 +114,20 @@ class SignUpResponseBuilder _$SignUpResponse _build() { _$SignUpResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SignUpResponse._( userConfirmed: BuiltValueNullFieldError.checkNotNull( - userConfirmed, r'SignUpResponse', 'userConfirmed'), + userConfirmed, + r'SignUpResponse', + 'userConfirmed', + ), codeDeliveryDetails: _codeDeliveryDetails?.build(), userSub: BuiltValueNullFieldError.checkNotNull( - userSub, r'SignUpResponse', 'userSub'), + userSub, + r'SignUpResponse', + 'userSub', + ), ); } catch (_) { late String _$failedField; @@ -123,7 +136,10 @@ class SignUpResponseBuilder _codeDeliveryDetails?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SignUpResponse', _$failedField, e.toString()); + r'SignUpResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.dart index c69f645d76..5ed5a8244b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.dart @@ -15,27 +15,21 @@ abstract class SmsMfaSettingsType with _i1.AWSEquatable implements Built { /// The type used for enabling SMS multi-factor authentication (MFA) at the user level. Phone numbers don't need to be verified to be used for SMS MFA. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you would like MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool. - factory SmsMfaSettingsType({ - bool? enabled, - bool? preferredMfa, - }) { + factory SmsMfaSettingsType({bool? enabled, bool? preferredMfa}) { enabled ??= false; preferredMfa ??= false; - return _$SmsMfaSettingsType._( - enabled: enabled, - preferredMfa: preferredMfa, - ); + return _$SmsMfaSettingsType._(enabled: enabled, preferredMfa: preferredMfa); } /// The type used for enabling SMS multi-factor authentication (MFA) at the user level. Phone numbers don't need to be verified to be used for SMS MFA. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you would like MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool. - factory SmsMfaSettingsType.build( - [void Function(SmsMfaSettingsTypeBuilder) updates]) = - _$SmsMfaSettingsType; + factory SmsMfaSettingsType.build([ + void Function(SmsMfaSettingsTypeBuilder) updates, + ]) = _$SmsMfaSettingsType; const SmsMfaSettingsType._(); static const List<_i2.SmithySerializer> serializers = [ - SmsMfaSettingsTypeAwsJson11Serializer() + SmsMfaSettingsTypeAwsJson11Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -51,22 +45,14 @@ abstract class SmsMfaSettingsType /// Specifies whether SMS is the preferred MFA method. bool get preferredMfa; @override - List get props => [ - enabled, - preferredMfa, - ]; + List get props => [enabled, preferredMfa]; @override String toString() { - final helper = newBuiltValueToStringHelper('SmsMfaSettingsType') - ..add( - 'enabled', - enabled, - ) - ..add( - 'preferredMfa', - preferredMfa, - ); + final helper = + newBuiltValueToStringHelper('SmsMfaSettingsType') + ..add('enabled', enabled) + ..add('preferredMfa', preferredMfa); return helper.toString(); } } @@ -76,18 +62,12 @@ class SmsMfaSettingsTypeAwsJson11Serializer const SmsMfaSettingsTypeAwsJson11Serializer() : super('SmsMfaSettingsType'); @override - Iterable get types => const [ - SmsMfaSettingsType, - _$SmsMfaSettingsType, - ]; + Iterable get types => const [SmsMfaSettingsType, _$SmsMfaSettingsType]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SmsMfaSettingsType deserialize( @@ -106,15 +86,19 @@ class SmsMfaSettingsTypeAwsJson11Serializer } switch (key) { case 'Enabled': - result.enabled = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.enabled = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'PreferredMfa': - result.preferredMfa = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.preferredMfa = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -131,15 +115,9 @@ class SmsMfaSettingsTypeAwsJson11Serializer final SmsMfaSettingsType(:enabled, :preferredMfa) = object; result$.addAll([ 'Enabled', - serializers.serialize( - enabled, - specifiedType: const FullType(bool), - ), + serializers.serialize(enabled, specifiedType: const FullType(bool)), 'PreferredMfa', - serializers.serialize( - preferredMfa, - specifiedType: const FullType(bool), - ), + serializers.serialize(preferredMfa, specifiedType: const FullType(bool)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.g.dart index 8db38f091f..344e67f90a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/sms_mfa_settings_type.g.dart @@ -12,22 +12,28 @@ class _$SmsMfaSettingsType extends SmsMfaSettingsType { @override final bool preferredMfa; - factory _$SmsMfaSettingsType( - [void Function(SmsMfaSettingsTypeBuilder)? updates]) => - (new SmsMfaSettingsTypeBuilder()..update(updates))._build(); + factory _$SmsMfaSettingsType([ + void Function(SmsMfaSettingsTypeBuilder)? updates, + ]) => (new SmsMfaSettingsTypeBuilder()..update(updates))._build(); _$SmsMfaSettingsType._({required this.enabled, required this.preferredMfa}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - enabled, r'SmsMfaSettingsType', 'enabled'); + enabled, + r'SmsMfaSettingsType', + 'enabled', + ); BuiltValueNullFieldError.checkNotNull( - preferredMfa, r'SmsMfaSettingsType', 'preferredMfa'); + preferredMfa, + r'SmsMfaSettingsType', + 'preferredMfa', + ); } @override SmsMfaSettingsType rebuild( - void Function(SmsMfaSettingsTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SmsMfaSettingsTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SmsMfaSettingsTypeBuilder toBuilder() => @@ -92,12 +98,19 @@ class SmsMfaSettingsTypeBuilder SmsMfaSettingsType build() => _build(); _$SmsMfaSettingsType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SmsMfaSettingsType._( enabled: BuiltValueNullFieldError.checkNotNull( - enabled, r'SmsMfaSettingsType', 'enabled'), + enabled, + r'SmsMfaSettingsType', + 'enabled', + ), preferredMfa: BuiltValueNullFieldError.checkNotNull( - preferredMfa, r'SmsMfaSettingsType', 'preferredMfa'), + preferredMfa, + r'SmsMfaSettingsType', + 'preferredMfa', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.dart index b3e013dc50..f53b9694eb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.dart @@ -12,11 +12,12 @@ part 'software_token_mfa_not_found_exception.g.dart'; /// This exception is thrown when the software token time-based one-time password (TOTP) multi-factor authentication (MFA) isn't activated for the user pool. abstract class SoftwareTokenMfaNotFoundException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + SoftwareTokenMfaNotFoundException, + SoftwareTokenMfaNotFoundExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when the software token time-based one-time password (TOTP) multi-factor authentication (MFA) isn't activated for the user pool. factory SoftwareTokenMfaNotFoundException({String? message}) { @@ -24,9 +25,9 @@ abstract class SoftwareTokenMfaNotFoundException } /// This exception is thrown when the software token time-based one-time password (TOTP) multi-factor authentication (MFA) isn't activated for the user pool. - factory SoftwareTokenMfaNotFoundException.build( - [void Function(SoftwareTokenMfaNotFoundExceptionBuilder) updates]) = - _$SoftwareTokenMfaNotFoundException; + factory SoftwareTokenMfaNotFoundException.build([ + void Function(SoftwareTokenMfaNotFoundExceptionBuilder) updates, + ]) = _$SoftwareTokenMfaNotFoundException; const SoftwareTokenMfaNotFoundException._(); @@ -34,21 +35,20 @@ abstract class SoftwareTokenMfaNotFoundException factory SoftwareTokenMfaNotFoundException.fromResponse( SoftwareTokenMfaNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [SoftwareTokenMfaNotFoundExceptionAwsJson11Serializer()]; + serializers = [SoftwareTokenMfaNotFoundExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'SoftwareTokenMFANotFoundException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'SoftwareTokenMFANotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,12 +68,9 @@ abstract class SoftwareTokenMfaNotFoundException @override String toString() { - final helper = - newBuiltValueToStringHelper('SoftwareTokenMfaNotFoundException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'SoftwareTokenMfaNotFoundException', + )..add('message', message); return helper.toString(); } } @@ -81,21 +78,18 @@ abstract class SoftwareTokenMfaNotFoundException class SoftwareTokenMfaNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const SoftwareTokenMfaNotFoundExceptionAwsJson11Serializer() - : super('SoftwareTokenMfaNotFoundException'); + : super('SoftwareTokenMfaNotFoundException'); @override Iterable get types => const [ - SoftwareTokenMfaNotFoundException, - _$SoftwareTokenMfaNotFoundException, - ]; + SoftwareTokenMfaNotFoundException, + _$SoftwareTokenMfaNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SoftwareTokenMfaNotFoundException deserialize( @@ -114,10 +108,12 @@ class SoftwareTokenMfaNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,10 +131,9 @@ class SoftwareTokenMfaNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.g.dart index 40ed789227..324260988c 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_not_found_exception.g.dart @@ -13,18 +13,19 @@ class _$SoftwareTokenMfaNotFoundException @override final Map? headers; - factory _$SoftwareTokenMfaNotFoundException( - [void Function(SoftwareTokenMfaNotFoundExceptionBuilder)? updates]) => + factory _$SoftwareTokenMfaNotFoundException([ + void Function(SoftwareTokenMfaNotFoundExceptionBuilder)? updates, + ]) => (new SoftwareTokenMfaNotFoundExceptionBuilder()..update(updates)) ._build(); _$SoftwareTokenMfaNotFoundException._({this.message, this.headers}) - : super._(); + : super._(); @override SoftwareTokenMfaNotFoundException rebuild( - void Function(SoftwareTokenMfaNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SoftwareTokenMfaNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SoftwareTokenMfaNotFoundExceptionBuilder toBuilder() => @@ -48,8 +49,10 @@ class _$SoftwareTokenMfaNotFoundException class SoftwareTokenMfaNotFoundExceptionBuilder implements - Builder { + Builder< + SoftwareTokenMfaNotFoundException, + SoftwareTokenMfaNotFoundExceptionBuilder + > { _$SoftwareTokenMfaNotFoundException? _$v; String? _message; @@ -80,7 +83,8 @@ class SoftwareTokenMfaNotFoundExceptionBuilder @override void update( - void Function(SoftwareTokenMfaNotFoundExceptionBuilder)? updates) { + void Function(SoftwareTokenMfaNotFoundExceptionBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -88,7 +92,8 @@ class SoftwareTokenMfaNotFoundExceptionBuilder SoftwareTokenMfaNotFoundException build() => _build(); _$SoftwareTokenMfaNotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SoftwareTokenMfaNotFoundException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.dart index 1aee62a4d4..339410a3d9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.dart @@ -12,16 +12,14 @@ part 'software_token_mfa_settings_type.g.dart'; /// The type used for enabling software token MFA at the user level. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool. abstract class SoftwareTokenMfaSettingsType - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + SoftwareTokenMfaSettingsType, + SoftwareTokenMfaSettingsTypeBuilder + > { /// The type used for enabling software token MFA at the user level. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool. - factory SoftwareTokenMfaSettingsType({ - bool? enabled, - bool? preferredMfa, - }) { + factory SoftwareTokenMfaSettingsType({bool? enabled, bool? preferredMfa}) { enabled ??= false; preferredMfa ??= false; return _$SoftwareTokenMfaSettingsType._( @@ -31,14 +29,14 @@ abstract class SoftwareTokenMfaSettingsType } /// The type used for enabling software token MFA at the user level. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool. - factory SoftwareTokenMfaSettingsType.build( - [void Function(SoftwareTokenMfaSettingsTypeBuilder) updates]) = - _$SoftwareTokenMfaSettingsType; + factory SoftwareTokenMfaSettingsType.build([ + void Function(SoftwareTokenMfaSettingsTypeBuilder) updates, + ]) = _$SoftwareTokenMfaSettingsType; const SoftwareTokenMfaSettingsType._(); static const List<_i2.SmithySerializer> - serializers = [SoftwareTokenMfaSettingsTypeAwsJson11Serializer()]; + serializers = [SoftwareTokenMfaSettingsTypeAwsJson11Serializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(SoftwareTokenMfaSettingsTypeBuilder b) { @@ -53,22 +51,14 @@ abstract class SoftwareTokenMfaSettingsType /// Specifies whether software token MFA is the preferred MFA method. bool get preferredMfa; @override - List get props => [ - enabled, - preferredMfa, - ]; + List get props => [enabled, preferredMfa]; @override String toString() { - final helper = newBuiltValueToStringHelper('SoftwareTokenMfaSettingsType') - ..add( - 'enabled', - enabled, - ) - ..add( - 'preferredMfa', - preferredMfa, - ); + final helper = + newBuiltValueToStringHelper('SoftwareTokenMfaSettingsType') + ..add('enabled', enabled) + ..add('preferredMfa', preferredMfa); return helper.toString(); } } @@ -76,21 +66,18 @@ abstract class SoftwareTokenMfaSettingsType class SoftwareTokenMfaSettingsTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const SoftwareTokenMfaSettingsTypeAwsJson11Serializer() - : super('SoftwareTokenMfaSettingsType'); + : super('SoftwareTokenMfaSettingsType'); @override Iterable get types => const [ - SoftwareTokenMfaSettingsType, - _$SoftwareTokenMfaSettingsType, - ]; + SoftwareTokenMfaSettingsType, + _$SoftwareTokenMfaSettingsType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SoftwareTokenMfaSettingsType deserialize( @@ -109,15 +96,19 @@ class SoftwareTokenMfaSettingsTypeAwsJson11Serializer } switch (key) { case 'Enabled': - result.enabled = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.enabled = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'PreferredMfa': - result.preferredMfa = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.preferredMfa = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -134,15 +125,9 @@ class SoftwareTokenMfaSettingsTypeAwsJson11Serializer final SoftwareTokenMfaSettingsType(:enabled, :preferredMfa) = object; result$.addAll([ 'Enabled', - serializers.serialize( - enabled, - specifiedType: const FullType(bool), - ), + serializers.serialize(enabled, specifiedType: const FullType(bool)), 'PreferredMfa', - serializers.serialize( - preferredMfa, - specifiedType: const FullType(bool), - ), + serializers.serialize(preferredMfa, specifiedType: const FullType(bool)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.g.dart index 20c7080da1..3c162338fe 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/software_token_mfa_settings_type.g.dart @@ -12,23 +12,30 @@ class _$SoftwareTokenMfaSettingsType extends SoftwareTokenMfaSettingsType { @override final bool preferredMfa; - factory _$SoftwareTokenMfaSettingsType( - [void Function(SoftwareTokenMfaSettingsTypeBuilder)? updates]) => - (new SoftwareTokenMfaSettingsTypeBuilder()..update(updates))._build(); - - _$SoftwareTokenMfaSettingsType._( - {required this.enabled, required this.preferredMfa}) - : super._() { + factory _$SoftwareTokenMfaSettingsType([ + void Function(SoftwareTokenMfaSettingsTypeBuilder)? updates, + ]) => (new SoftwareTokenMfaSettingsTypeBuilder()..update(updates))._build(); + + _$SoftwareTokenMfaSettingsType._({ + required this.enabled, + required this.preferredMfa, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - enabled, r'SoftwareTokenMfaSettingsType', 'enabled'); + enabled, + r'SoftwareTokenMfaSettingsType', + 'enabled', + ); BuiltValueNullFieldError.checkNotNull( - preferredMfa, r'SoftwareTokenMfaSettingsType', 'preferredMfa'); + preferredMfa, + r'SoftwareTokenMfaSettingsType', + 'preferredMfa', + ); } @override SoftwareTokenMfaSettingsType rebuild( - void Function(SoftwareTokenMfaSettingsTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SoftwareTokenMfaSettingsTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SoftwareTokenMfaSettingsTypeBuilder toBuilder() => @@ -54,8 +61,10 @@ class _$SoftwareTokenMfaSettingsType extends SoftwareTokenMfaSettingsType { class SoftwareTokenMfaSettingsTypeBuilder implements - Builder { + Builder< + SoftwareTokenMfaSettingsType, + SoftwareTokenMfaSettingsTypeBuilder + > { _$SoftwareTokenMfaSettingsType? _$v; bool? _enabled; @@ -95,12 +104,19 @@ class SoftwareTokenMfaSettingsTypeBuilder SoftwareTokenMfaSettingsType build() => _build(); _$SoftwareTokenMfaSettingsType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SoftwareTokenMfaSettingsType._( enabled: BuiltValueNullFieldError.checkNotNull( - enabled, r'SoftwareTokenMfaSettingsType', 'enabled'), + enabled, + r'SoftwareTokenMfaSettingsType', + 'enabled', + ), preferredMfa: BuiltValueNullFieldError.checkNotNull( - preferredMfa, r'SoftwareTokenMfaSettingsType', 'preferredMfa'), + preferredMfa, + r'SoftwareTokenMfaSettingsType', + 'preferredMfa', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.dart index df9e4d77e4..8aa3eab3c1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.dart @@ -12,11 +12,12 @@ part 'too_many_failed_attempts_exception.g.dart'; /// This exception is thrown when the user has made too many failed attempts for a given action, such as sign-in. abstract class TooManyFailedAttemptsException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + TooManyFailedAttemptsException, + TooManyFailedAttemptsExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when the user has made too many failed attempts for a given action, such as sign-in. factory TooManyFailedAttemptsException({String? message}) { @@ -24,9 +25,9 @@ abstract class TooManyFailedAttemptsException } /// This exception is thrown when the user has made too many failed attempts for a given action, such as sign-in. - factory TooManyFailedAttemptsException.build( - [void Function(TooManyFailedAttemptsExceptionBuilder) updates]) = - _$TooManyFailedAttemptsException; + factory TooManyFailedAttemptsException.build([ + void Function(TooManyFailedAttemptsExceptionBuilder) updates, + ]) = _$TooManyFailedAttemptsException; const TooManyFailedAttemptsException._(); @@ -34,22 +35,21 @@ abstract class TooManyFailedAttemptsException factory TooManyFailedAttemptsException.fromResponse( TooManyFailedAttemptsException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [TooManyFailedAttemptsExceptionAwsJson11Serializer()]; + serializers = [TooManyFailedAttemptsExceptionAwsJson11Serializer()]; /// The message returned when Amazon Cognito returns a `TooManyFailedAttempts` exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyFailedAttemptsException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyFailedAttemptsException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -70,10 +70,7 @@ abstract class TooManyFailedAttemptsException @override String toString() { final helper = newBuiltValueToStringHelper('TooManyFailedAttemptsException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -81,21 +78,18 @@ abstract class TooManyFailedAttemptsException class TooManyFailedAttemptsExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const TooManyFailedAttemptsExceptionAwsJson11Serializer() - : super('TooManyFailedAttemptsException'); + : super('TooManyFailedAttemptsException'); @override Iterable get types => const [ - TooManyFailedAttemptsException, - _$TooManyFailedAttemptsException, - ]; + TooManyFailedAttemptsException, + _$TooManyFailedAttemptsException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override TooManyFailedAttemptsException deserialize( @@ -114,10 +108,12 @@ class TooManyFailedAttemptsExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,10 +131,9 @@ class TooManyFailedAttemptsExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.g.dart index 84f1f264a4..64b0c6b818 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_failed_attempts_exception.g.dart @@ -12,16 +12,16 @@ class _$TooManyFailedAttemptsException extends TooManyFailedAttemptsException { @override final Map? headers; - factory _$TooManyFailedAttemptsException( - [void Function(TooManyFailedAttemptsExceptionBuilder)? updates]) => - (new TooManyFailedAttemptsExceptionBuilder()..update(updates))._build(); + factory _$TooManyFailedAttemptsException([ + void Function(TooManyFailedAttemptsExceptionBuilder)? updates, + ]) => (new TooManyFailedAttemptsExceptionBuilder()..update(updates))._build(); _$TooManyFailedAttemptsException._({this.message, this.headers}) : super._(); @override TooManyFailedAttemptsException rebuild( - void Function(TooManyFailedAttemptsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyFailedAttemptsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyFailedAttemptsExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$TooManyFailedAttemptsException extends TooManyFailedAttemptsException { class TooManyFailedAttemptsExceptionBuilder implements - Builder { + Builder< + TooManyFailedAttemptsException, + TooManyFailedAttemptsExceptionBuilder + > { _$TooManyFailedAttemptsException? _$v; String? _message; @@ -83,7 +85,8 @@ class TooManyFailedAttemptsExceptionBuilder TooManyFailedAttemptsException build() => _build(); _$TooManyFailedAttemptsException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TooManyFailedAttemptsException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart index dcf1d32175..cf620f4d96 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart @@ -22,9 +22,9 @@ abstract class TooManyRequestsException } /// This exception is thrown when the user has made too many requests for a given operation. - factory TooManyRequestsException.build( - [void Function(TooManyRequestsExceptionBuilder) updates]) = - _$TooManyRequestsException; + factory TooManyRequestsException.build([ + void Function(TooManyRequestsExceptionBuilder) updates, + ]) = _$TooManyRequestsException; const TooManyRequestsException._(); @@ -32,22 +32,21 @@ abstract class TooManyRequestsException factory TooManyRequestsException.fromResponse( TooManyRequestsException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [TooManyRequestsExceptionAwsJson11Serializer()]; + serializers = [TooManyRequestsExceptionAwsJson11Serializer()]; /// The message returned when the Amazon Cognito service returns a too many requests exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class TooManyRequestsException @override String toString() { final helper = newBuiltValueToStringHelper('TooManyRequestsException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class TooManyRequestsException class TooManyRequestsExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const TooManyRequestsExceptionAwsJson11Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [ - TooManyRequestsException, - _$TooManyRequestsException, - ]; + TooManyRequestsException, + _$TooManyRequestsException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override TooManyRequestsException deserialize( @@ -112,10 +105,12 @@ class TooManyRequestsExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class TooManyRequestsExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart index b292bcbca4..c101e1193d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart @@ -12,16 +12,16 @@ class _$TooManyRequestsException extends TooManyRequestsException { @override final Map? headers; - factory _$TooManyRequestsException( - [void Function(TooManyRequestsExceptionBuilder)? updates]) => - (new TooManyRequestsExceptionBuilder()..update(updates))._build(); + factory _$TooManyRequestsException([ + void Function(TooManyRequestsExceptionBuilder)? updates, + ]) => (new TooManyRequestsExceptionBuilder()..update(updates))._build(); _$TooManyRequestsException._({this.message, this.headers}) : super._(); @override TooManyRequestsException rebuild( - void Function(TooManyRequestsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class TooManyRequestsExceptionBuilder TooManyRequestsException build() => _build(); _$TooManyRequestsException _build() { - final _$result = _$v ?? - new _$TooManyRequestsException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$TooManyRequestsException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.dart index e5c09b5106..5365521623 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.dart @@ -22,9 +22,9 @@ abstract class UnauthorizedException } /// Exception that is thrown when the request isn't authorized. This can happen due to an invalid access token in the request. - factory UnauthorizedException.build( - [void Function(UnauthorizedExceptionBuilder) updates]) = - _$UnauthorizedException; + factory UnauthorizedException.build([ + void Function(UnauthorizedExceptionBuilder) updates, + ]) = _$UnauthorizedException; const UnauthorizedException._(); @@ -32,22 +32,21 @@ abstract class UnauthorizedException factory UnauthorizedException.fromResponse( UnauthorizedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - UnauthorizedExceptionAwsJson11Serializer() + UnauthorizedExceptionAwsJson11Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnauthorizedException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnauthorizedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class UnauthorizedException @override String toString() { final helper = newBuiltValueToStringHelper('UnauthorizedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class UnauthorizedException class UnauthorizedExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UnauthorizedExceptionAwsJson11Serializer() - : super('UnauthorizedException'); + : super('UnauthorizedException'); @override Iterable get types => const [ - UnauthorizedException, - _$UnauthorizedException, - ]; + UnauthorizedException, + _$UnauthorizedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnauthorizedException deserialize( @@ -112,10 +105,12 @@ class UnauthorizedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class UnauthorizedExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.g.dart index c8c92dc5f8..44a2c52972 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unauthorized_exception.g.dart @@ -12,16 +12,16 @@ class _$UnauthorizedException extends UnauthorizedException { @override final Map? headers; - factory _$UnauthorizedException( - [void Function(UnauthorizedExceptionBuilder)? updates]) => - (new UnauthorizedExceptionBuilder()..update(updates))._build(); + factory _$UnauthorizedException([ + void Function(UnauthorizedExceptionBuilder)? updates, + ]) => (new UnauthorizedExceptionBuilder()..update(updates))._build(); _$UnauthorizedException._({this.message, this.headers}) : super._(); @override UnauthorizedException rebuild( - void Function(UnauthorizedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UnauthorizedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UnauthorizedExceptionBuilder toBuilder() => @@ -81,11 +81,9 @@ class UnauthorizedExceptionBuilder UnauthorizedException build() => _build(); _$UnauthorizedException _build() { - final _$result = _$v ?? - new _$UnauthorizedException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$UnauthorizedException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.dart index 474492765a..9bae7eded4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.dart @@ -22,9 +22,9 @@ abstract class UnexpectedLambdaException } /// This exception is thrown when Amazon Cognito encounters an unexpected exception with Lambda. - factory UnexpectedLambdaException.build( - [void Function(UnexpectedLambdaExceptionBuilder) updates]) = - _$UnexpectedLambdaException; + factory UnexpectedLambdaException.build([ + void Function(UnexpectedLambdaExceptionBuilder) updates, + ]) = _$UnexpectedLambdaException; const UnexpectedLambdaException._(); @@ -32,22 +32,21 @@ abstract class UnexpectedLambdaException factory UnexpectedLambdaException.fromResponse( UnexpectedLambdaException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [UnexpectedLambdaExceptionAwsJson11Serializer()]; + serializers = [UnexpectedLambdaExceptionAwsJson11Serializer()]; /// The message returned when Amazon Cognito returns an unexpected Lambda exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class UnexpectedLambdaException @override String toString() { final helper = newBuiltValueToStringHelper('UnexpectedLambdaException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class UnexpectedLambdaException class UnexpectedLambdaExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UnexpectedLambdaExceptionAwsJson11Serializer() - : super('UnexpectedLambdaException'); + : super('UnexpectedLambdaException'); @override Iterable get types => const [ - UnexpectedLambdaException, - _$UnexpectedLambdaException, - ]; + UnexpectedLambdaException, + _$UnexpectedLambdaException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnexpectedLambdaException deserialize( @@ -112,10 +105,12 @@ class UnexpectedLambdaExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class UnexpectedLambdaExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.g.dart index c13bf21dea..212753b5c0 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unexpected_lambda_exception.g.dart @@ -12,16 +12,16 @@ class _$UnexpectedLambdaException extends UnexpectedLambdaException { @override final Map? headers; - factory _$UnexpectedLambdaException( - [void Function(UnexpectedLambdaExceptionBuilder)? updates]) => - (new UnexpectedLambdaExceptionBuilder()..update(updates))._build(); + factory _$UnexpectedLambdaException([ + void Function(UnexpectedLambdaExceptionBuilder)? updates, + ]) => (new UnexpectedLambdaExceptionBuilder()..update(updates))._build(); _$UnexpectedLambdaException._({this.message, this.headers}) : super._(); @override UnexpectedLambdaException rebuild( - void Function(UnexpectedLambdaExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UnexpectedLambdaExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UnexpectedLambdaExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class UnexpectedLambdaExceptionBuilder UnexpectedLambdaException build() => _build(); _$UnexpectedLambdaException _build() { - final _$result = _$v ?? - new _$UnexpectedLambdaException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$UnexpectedLambdaException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.dart index 0e4b511b26..02c23b0324 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.dart @@ -12,11 +12,12 @@ part 'unsupported_operation_exception.g.dart'; /// Exception that is thrown when you attempt to perform an operation that isn't enabled for the user pool client. abstract class UnsupportedOperationException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + UnsupportedOperationException, + UnsupportedOperationExceptionBuilder + >, _i2.SmithyHttpException { /// Exception that is thrown when you attempt to perform an operation that isn't enabled for the user pool client. factory UnsupportedOperationException({String? message}) { @@ -24,9 +25,9 @@ abstract class UnsupportedOperationException } /// Exception that is thrown when you attempt to perform an operation that isn't enabled for the user pool client. - factory UnsupportedOperationException.build( - [void Function(UnsupportedOperationExceptionBuilder) updates]) = - _$UnsupportedOperationException; + factory UnsupportedOperationException.build([ + void Function(UnsupportedOperationExceptionBuilder) updates, + ]) = _$UnsupportedOperationException; const UnsupportedOperationException._(); @@ -34,21 +35,20 @@ abstract class UnsupportedOperationException factory UnsupportedOperationException.fromResponse( UnsupportedOperationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [UnsupportedOperationExceptionAwsJson11Serializer()]; + serializers = [UnsupportedOperationExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnsupportedOperationException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnsupportedOperationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,10 +69,7 @@ abstract class UnsupportedOperationException @override String toString() { final helper = newBuiltValueToStringHelper('UnsupportedOperationException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,21 +77,18 @@ abstract class UnsupportedOperationException class UnsupportedOperationExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UnsupportedOperationExceptionAwsJson11Serializer() - : super('UnsupportedOperationException'); + : super('UnsupportedOperationException'); @override Iterable get types => const [ - UnsupportedOperationException, - _$UnsupportedOperationException, - ]; + UnsupportedOperationException, + _$UnsupportedOperationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnsupportedOperationException deserialize( @@ -113,10 +107,12 @@ class UnsupportedOperationExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,10 +130,9 @@ class UnsupportedOperationExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.g.dart index 8156207597..a1979b3810 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_operation_exception.g.dart @@ -12,16 +12,16 @@ class _$UnsupportedOperationException extends UnsupportedOperationException { @override final Map? headers; - factory _$UnsupportedOperationException( - [void Function(UnsupportedOperationExceptionBuilder)? updates]) => - (new UnsupportedOperationExceptionBuilder()..update(updates))._build(); + factory _$UnsupportedOperationException([ + void Function(UnsupportedOperationExceptionBuilder)? updates, + ]) => (new UnsupportedOperationExceptionBuilder()..update(updates))._build(); _$UnsupportedOperationException._({this.message, this.headers}) : super._(); @override UnsupportedOperationException rebuild( - void Function(UnsupportedOperationExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UnsupportedOperationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UnsupportedOperationExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$UnsupportedOperationException extends UnsupportedOperationException { class UnsupportedOperationExceptionBuilder implements - Builder { + Builder< + UnsupportedOperationException, + UnsupportedOperationExceptionBuilder + > { _$UnsupportedOperationException? _$v; String? _message; @@ -83,7 +85,8 @@ class UnsupportedOperationExceptionBuilder UnsupportedOperationException build() => _build(); _$UnsupportedOperationException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UnsupportedOperationException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.dart index acff97bd7d..e329889152 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.dart @@ -12,11 +12,12 @@ part 'unsupported_token_type_exception.g.dart'; /// Exception that is thrown when an unsupported token is passed to an operation. abstract class UnsupportedTokenTypeException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + UnsupportedTokenTypeException, + UnsupportedTokenTypeExceptionBuilder + >, _i2.SmithyHttpException { /// Exception that is thrown when an unsupported token is passed to an operation. factory UnsupportedTokenTypeException({String? message}) { @@ -24,9 +25,9 @@ abstract class UnsupportedTokenTypeException } /// Exception that is thrown when an unsupported token is passed to an operation. - factory UnsupportedTokenTypeException.build( - [void Function(UnsupportedTokenTypeExceptionBuilder) updates]) = - _$UnsupportedTokenTypeException; + factory UnsupportedTokenTypeException.build([ + void Function(UnsupportedTokenTypeExceptionBuilder) updates, + ]) = _$UnsupportedTokenTypeException; const UnsupportedTokenTypeException._(); @@ -34,21 +35,20 @@ abstract class UnsupportedTokenTypeException factory UnsupportedTokenTypeException.fromResponse( UnsupportedTokenTypeException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [UnsupportedTokenTypeExceptionAwsJson11Serializer()]; + serializers = [UnsupportedTokenTypeExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnsupportedTokenTypeException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnsupportedTokenTypeException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,10 +69,7 @@ abstract class UnsupportedTokenTypeException @override String toString() { final helper = newBuiltValueToStringHelper('UnsupportedTokenTypeException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,21 +77,18 @@ abstract class UnsupportedTokenTypeException class UnsupportedTokenTypeExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UnsupportedTokenTypeExceptionAwsJson11Serializer() - : super('UnsupportedTokenTypeException'); + : super('UnsupportedTokenTypeException'); @override Iterable get types => const [ - UnsupportedTokenTypeException, - _$UnsupportedTokenTypeException, - ]; + UnsupportedTokenTypeException, + _$UnsupportedTokenTypeException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnsupportedTokenTypeException deserialize( @@ -113,10 +107,12 @@ class UnsupportedTokenTypeExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,10 +130,9 @@ class UnsupportedTokenTypeExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.g.dart index 603de3265f..12f8944881 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/unsupported_token_type_exception.g.dart @@ -12,16 +12,16 @@ class _$UnsupportedTokenTypeException extends UnsupportedTokenTypeException { @override final Map? headers; - factory _$UnsupportedTokenTypeException( - [void Function(UnsupportedTokenTypeExceptionBuilder)? updates]) => - (new UnsupportedTokenTypeExceptionBuilder()..update(updates))._build(); + factory _$UnsupportedTokenTypeException([ + void Function(UnsupportedTokenTypeExceptionBuilder)? updates, + ]) => (new UnsupportedTokenTypeExceptionBuilder()..update(updates))._build(); _$UnsupportedTokenTypeException._({this.message, this.headers}) : super._(); @override UnsupportedTokenTypeException rebuild( - void Function(UnsupportedTokenTypeExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UnsupportedTokenTypeExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UnsupportedTokenTypeExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$UnsupportedTokenTypeException extends UnsupportedTokenTypeException { class UnsupportedTokenTypeExceptionBuilder implements - Builder { + Builder< + UnsupportedTokenTypeException, + UnsupportedTokenTypeExceptionBuilder + > { _$UnsupportedTokenTypeException? _$v; String? _message; @@ -83,7 +85,8 @@ class UnsupportedTokenTypeExceptionBuilder UnsupportedTokenTypeException build() => _build(); _$UnsupportedTokenTypeException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UnsupportedTokenTypeException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.dart index 3c50ce8453..9a59380a22 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.dart @@ -32,9 +32,9 @@ abstract class UpdateDeviceStatusRequest } /// Represents the request to update the device status. - factory UpdateDeviceStatusRequest.build( - [void Function(UpdateDeviceStatusRequestBuilder) updates]) = - _$UpdateDeviceStatusRequest; + factory UpdateDeviceStatusRequest.build([ + void Function(UpdateDeviceStatusRequestBuilder) updates, + ]) = _$UpdateDeviceStatusRequest; const UpdateDeviceStatusRequest._(); @@ -42,11 +42,10 @@ abstract class UpdateDeviceStatusRequest UpdateDeviceStatusRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [UpdateDeviceStatusRequestAwsJson11Serializer()]; + serializers = [UpdateDeviceStatusRequestAwsJson11Serializer()]; /// A valid access token that Amazon Cognito issued to the user whose device status you want to update. String get accessToken; @@ -60,27 +59,15 @@ abstract class UpdateDeviceStatusRequest UpdateDeviceStatusRequest getPayload() => this; @override - List get props => [ - accessToken, - deviceKey, - deviceRememberedStatus, - ]; + List get props => [accessToken, deviceKey, deviceRememberedStatus]; @override String toString() { - final helper = newBuiltValueToStringHelper('UpdateDeviceStatusRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'deviceKey', - deviceKey, - ) - ..add( - 'deviceRememberedStatus', - deviceRememberedStatus, - ); + final helper = + newBuiltValueToStringHelper('UpdateDeviceStatusRequest') + ..add('accessToken', '***SENSITIVE***') + ..add('deviceKey', deviceKey) + ..add('deviceRememberedStatus', deviceRememberedStatus); return helper.toString(); } } @@ -88,21 +75,18 @@ abstract class UpdateDeviceStatusRequest class UpdateDeviceStatusRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const UpdateDeviceStatusRequestAwsJson11Serializer() - : super('UpdateDeviceStatusRequest'); + : super('UpdateDeviceStatusRequest'); @override Iterable get types => const [ - UpdateDeviceStatusRequest, - _$UpdateDeviceStatusRequest, - ]; + UpdateDeviceStatusRequest, + _$UpdateDeviceStatusRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UpdateDeviceStatusRequest deserialize( @@ -121,20 +105,26 @@ class UpdateDeviceStatusRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceKey': - result.deviceKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceRememberedStatus': - result.deviceRememberedStatus = (serializers.deserialize( - value, - specifiedType: const FullType(DeviceRememberedStatusType), - ) as DeviceRememberedStatusType); + result.deviceRememberedStatus = + (serializers.deserialize( + value, + specifiedType: const FullType(DeviceRememberedStatusType), + ) + as DeviceRememberedStatusType); } } @@ -151,27 +141,23 @@ class UpdateDeviceStatusRequestAwsJson11Serializer final UpdateDeviceStatusRequest( :accessToken, :deviceKey, - :deviceRememberedStatus + :deviceRememberedStatus, ) = object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), 'DeviceKey', - serializers.serialize( - deviceKey, - specifiedType: const FullType(String), - ), + serializers.serialize(deviceKey, specifiedType: const FullType(String)), ]); if (deviceRememberedStatus != null) { result$ ..add('DeviceRememberedStatus') - ..add(serializers.serialize( - deviceRememberedStatus, - specifiedType: const FullType(DeviceRememberedStatusType), - )); + ..add( + serializers.serialize( + deviceRememberedStatus, + specifiedType: const FullType(DeviceRememberedStatusType), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.g.dart index 1570e54a80..f5d5d446ed 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_request.g.dart @@ -14,25 +14,31 @@ class _$UpdateDeviceStatusRequest extends UpdateDeviceStatusRequest { @override final DeviceRememberedStatusType? deviceRememberedStatus; - factory _$UpdateDeviceStatusRequest( - [void Function(UpdateDeviceStatusRequestBuilder)? updates]) => - (new UpdateDeviceStatusRequestBuilder()..update(updates))._build(); - - _$UpdateDeviceStatusRequest._( - {required this.accessToken, - required this.deviceKey, - this.deviceRememberedStatus}) - : super._() { + factory _$UpdateDeviceStatusRequest([ + void Function(UpdateDeviceStatusRequestBuilder)? updates, + ]) => (new UpdateDeviceStatusRequestBuilder()..update(updates))._build(); + + _$UpdateDeviceStatusRequest._({ + required this.accessToken, + required this.deviceKey, + this.deviceRememberedStatus, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'UpdateDeviceStatusRequest', 'accessToken'); + accessToken, + r'UpdateDeviceStatusRequest', + 'accessToken', + ); BuiltValueNullFieldError.checkNotNull( - deviceKey, r'UpdateDeviceStatusRequest', 'deviceKey'); + deviceKey, + r'UpdateDeviceStatusRequest', + 'deviceKey', + ); } @override UpdateDeviceStatusRequest rebuild( - void Function(UpdateDeviceStatusRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateDeviceStatusRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateDeviceStatusRequestBuilder toBuilder() => @@ -75,8 +81,8 @@ class UpdateDeviceStatusRequestBuilder DeviceRememberedStatusType? get deviceRememberedStatus => _$this._deviceRememberedStatus; set deviceRememberedStatus( - DeviceRememberedStatusType? deviceRememberedStatus) => - _$this._deviceRememberedStatus = deviceRememberedStatus; + DeviceRememberedStatusType? deviceRememberedStatus, + ) => _$this._deviceRememberedStatus = deviceRememberedStatus; UpdateDeviceStatusRequestBuilder(); @@ -106,12 +112,19 @@ class UpdateDeviceStatusRequestBuilder UpdateDeviceStatusRequest build() => _build(); _$UpdateDeviceStatusRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UpdateDeviceStatusRequest._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'UpdateDeviceStatusRequest', 'accessToken'), + accessToken, + r'UpdateDeviceStatusRequest', + 'accessToken', + ), deviceKey: BuiltValueNullFieldError.checkNotNull( - deviceKey, r'UpdateDeviceStatusRequest', 'deviceKey'), + deviceKey, + r'UpdateDeviceStatusRequest', + 'deviceKey', + ), deviceRememberedStatus: deviceRememberedStatus, ); replace(_$result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.dart index 81f5daaa34..66f9ae3ddc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.dart @@ -22,9 +22,9 @@ abstract class UpdateDeviceStatusResponse } /// The response to the request to update the device status. - factory UpdateDeviceStatusResponse.build( - [void Function(UpdateDeviceStatusResponseBuilder) updates]) = - _$UpdateDeviceStatusResponse; + factory UpdateDeviceStatusResponse.build([ + void Function(UpdateDeviceStatusResponseBuilder) updates, + ]) = _$UpdateDeviceStatusResponse; const UpdateDeviceStatusResponse._(); @@ -32,11 +32,10 @@ abstract class UpdateDeviceStatusResponse factory UpdateDeviceStatusResponse.fromResponse( UpdateDeviceStatusResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [UpdateDeviceStatusResponseAwsJson11Serializer()]; + serializers = [UpdateDeviceStatusResponseAwsJson11Serializer()]; @override List get props => []; @@ -51,21 +50,18 @@ abstract class UpdateDeviceStatusResponse class UpdateDeviceStatusResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UpdateDeviceStatusResponseAwsJson11Serializer() - : super('UpdateDeviceStatusResponse'); + : super('UpdateDeviceStatusResponse'); @override Iterable get types => const [ - UpdateDeviceStatusResponse, - _$UpdateDeviceStatusResponse, - ]; + UpdateDeviceStatusResponse, + _$UpdateDeviceStatusResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UpdateDeviceStatusResponse deserialize( @@ -81,6 +77,5 @@ class UpdateDeviceStatusResponseAwsJson11Serializer Serializers serializers, UpdateDeviceStatusResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.g.dart index b08f24458b..1712045428 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_device_status_response.g.dart @@ -7,16 +7,16 @@ part of 'update_device_status_response.dart'; // ************************************************************************** class _$UpdateDeviceStatusResponse extends UpdateDeviceStatusResponse { - factory _$UpdateDeviceStatusResponse( - [void Function(UpdateDeviceStatusResponseBuilder)? updates]) => - (new UpdateDeviceStatusResponseBuilder()..update(updates))._build(); + factory _$UpdateDeviceStatusResponse([ + void Function(UpdateDeviceStatusResponseBuilder)? updates, + ]) => (new UpdateDeviceStatusResponseBuilder()..update(updates))._build(); _$UpdateDeviceStatusResponse._() : super._(); @override UpdateDeviceStatusResponse rebuild( - void Function(UpdateDeviceStatusResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateDeviceStatusResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateDeviceStatusResponseBuilder toBuilder() => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.dart index 50c621fa40..ec20ec640d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.dart @@ -34,9 +34,9 @@ abstract class UpdateUserAttributesRequest } /// Represents the request to update user attributes. - factory UpdateUserAttributesRequest.build( - [void Function(UpdateUserAttributesRequestBuilder) updates]) = - _$UpdateUserAttributesRequest; + factory UpdateUserAttributesRequest.build([ + void Function(UpdateUserAttributesRequestBuilder) updates, + ]) = _$UpdateUserAttributesRequest; const UpdateUserAttributesRequest._(); @@ -44,11 +44,10 @@ abstract class UpdateUserAttributesRequest UpdateUserAttributesRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [UpdateUserAttributesRequestAwsJson11Serializer()]; + serializers = [UpdateUserAttributesRequestAwsJson11Serializer()]; /// An array of name-value pairs representing user attributes. /// @@ -78,27 +77,15 @@ abstract class UpdateUserAttributesRequest UpdateUserAttributesRequest getPayload() => this; @override - List get props => [ - userAttributes, - accessToken, - clientMetadata, - ]; + List get props => [userAttributes, accessToken, clientMetadata]; @override String toString() { - final helper = newBuiltValueToStringHelper('UpdateUserAttributesRequest') - ..add( - 'userAttributes', - userAttributes, - ) - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'clientMetadata', - clientMetadata, - ); + final helper = + newBuiltValueToStringHelper('UpdateUserAttributesRequest') + ..add('userAttributes', userAttributes) + ..add('accessToken', '***SENSITIVE***') + ..add('clientMetadata', clientMetadata); return helper.toString(); } } @@ -106,21 +93,18 @@ abstract class UpdateUserAttributesRequest class UpdateUserAttributesRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const UpdateUserAttributesRequestAwsJson11Serializer() - : super('UpdateUserAttributesRequest'); + : super('UpdateUserAttributesRequest'); @override Iterable get types => const [ - UpdateUserAttributesRequest, - _$UpdateUserAttributesRequest, - ]; + UpdateUserAttributesRequest, + _$UpdateUserAttributesRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UpdateUserAttributesRequest deserialize( @@ -139,29 +123,33 @@ class UpdateUserAttributesRequestAwsJson11Serializer } switch (key) { case 'UserAttributes': - result.userAttributes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(AttributeType)], - ), - ) as _i3.BuiltList)); + result.userAttributes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(AttributeType), + ]), + ) + as _i3.BuiltList), + ); case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ClientMetadata': - result.clientMetadata.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.clientMetadata.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -178,36 +166,29 @@ class UpdateUserAttributesRequestAwsJson11Serializer final UpdateUserAttributesRequest( :userAttributes, :accessToken, - :clientMetadata + :clientMetadata, ) = object; result$.addAll([ 'UserAttributes', serializers.serialize( userAttributes, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(AttributeType)], - ), + specifiedType: const FullType(_i3.BuiltList, [FullType(AttributeType)]), ), 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), ]); if (clientMetadata != null) { result$ ..add('ClientMetadata') - ..add(serializers.serialize( - clientMetadata, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + clientMetadata, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.g.dart index 8d7ba2976d..5aa78c9b67 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_request.g.dart @@ -14,25 +14,31 @@ class _$UpdateUserAttributesRequest extends UpdateUserAttributesRequest { @override final _i3.BuiltMap? clientMetadata; - factory _$UpdateUserAttributesRequest( - [void Function(UpdateUserAttributesRequestBuilder)? updates]) => - (new UpdateUserAttributesRequestBuilder()..update(updates))._build(); - - _$UpdateUserAttributesRequest._( - {required this.userAttributes, - required this.accessToken, - this.clientMetadata}) - : super._() { + factory _$UpdateUserAttributesRequest([ + void Function(UpdateUserAttributesRequestBuilder)? updates, + ]) => (new UpdateUserAttributesRequestBuilder()..update(updates))._build(); + + _$UpdateUserAttributesRequest._({ + required this.userAttributes, + required this.accessToken, + this.clientMetadata, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - userAttributes, r'UpdateUserAttributesRequest', 'userAttributes'); + userAttributes, + r'UpdateUserAttributesRequest', + 'userAttributes', + ); BuiltValueNullFieldError.checkNotNull( - accessToken, r'UpdateUserAttributesRequest', 'accessToken'); + accessToken, + r'UpdateUserAttributesRequest', + 'accessToken', + ); } @override UpdateUserAttributesRequest rebuild( - void Function(UpdateUserAttributesRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateUserAttributesRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateUserAttributesRequestBuilder toBuilder() => @@ -60,8 +66,10 @@ class _$UpdateUserAttributesRequest extends UpdateUserAttributesRequest { class UpdateUserAttributesRequestBuilder implements - Builder { + Builder< + UpdateUserAttributesRequest, + UpdateUserAttributesRequestBuilder + > { _$UpdateUserAttributesRequest? _$v; _i3.ListBuilder? _userAttributes; @@ -110,11 +118,15 @@ class UpdateUserAttributesRequestBuilder _$UpdateUserAttributesRequest _build() { _$UpdateUserAttributesRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$UpdateUserAttributesRequest._( userAttributes: userAttributes.build(), accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'UpdateUserAttributesRequest', 'accessToken'), + accessToken, + r'UpdateUserAttributesRequest', + 'accessToken', + ), clientMetadata: _clientMetadata?.build(), ); } catch (_) { @@ -127,7 +139,10 @@ class UpdateUserAttributesRequestBuilder _clientMetadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'UpdateUserAttributesRequest', _$failedField, e.toString()); + r'UpdateUserAttributesRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.dart index 65a464efff..f2163536af 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.dart @@ -14,24 +14,28 @@ part 'update_user_attributes_response.g.dart'; /// Represents the response from the server for the request to update user attributes. abstract class UpdateUserAttributesResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + UpdateUserAttributesResponse, + UpdateUserAttributesResponseBuilder + > { /// Represents the response from the server for the request to update user attributes. - factory UpdateUserAttributesResponse( - {List? codeDeliveryDetailsList}) { + factory UpdateUserAttributesResponse({ + List? codeDeliveryDetailsList, + }) { return _$UpdateUserAttributesResponse._( - codeDeliveryDetailsList: codeDeliveryDetailsList == null - ? null - : _i2.BuiltList(codeDeliveryDetailsList)); + codeDeliveryDetailsList: + codeDeliveryDetailsList == null + ? null + : _i2.BuiltList(codeDeliveryDetailsList), + ); } /// Represents the response from the server for the request to update user attributes. - factory UpdateUserAttributesResponse.build( - [void Function(UpdateUserAttributesResponseBuilder) updates]) = - _$UpdateUserAttributesResponse; + factory UpdateUserAttributesResponse.build([ + void Function(UpdateUserAttributesResponseBuilder) updates, + ]) = _$UpdateUserAttributesResponse; const UpdateUserAttributesResponse._(); @@ -39,11 +43,10 @@ abstract class UpdateUserAttributesResponse factory UpdateUserAttributesResponse.fromResponse( UpdateUserAttributesResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [UpdateUserAttributesResponseAwsJson11Serializer()]; + serializers = [UpdateUserAttributesResponseAwsJson11Serializer()]; /// The code delivery details list from the server for the request to update user attributes. _i2.BuiltList? get codeDeliveryDetailsList; @@ -53,10 +56,7 @@ abstract class UpdateUserAttributesResponse @override String toString() { final helper = newBuiltValueToStringHelper('UpdateUserAttributesResponse') - ..add( - 'codeDeliveryDetailsList', - codeDeliveryDetailsList, - ); + ..add('codeDeliveryDetailsList', codeDeliveryDetailsList); return helper.toString(); } } @@ -64,21 +64,18 @@ abstract class UpdateUserAttributesResponse class UpdateUserAttributesResponseAwsJson11Serializer extends _i3.StructuredSmithySerializer { const UpdateUserAttributesResponseAwsJson11Serializer() - : super('UpdateUserAttributesResponse'); + : super('UpdateUserAttributesResponse'); @override Iterable get types => const [ - UpdateUserAttributesResponse, - _$UpdateUserAttributesResponse, - ]; + UpdateUserAttributesResponse, + _$UpdateUserAttributesResponse, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UpdateUserAttributesResponse deserialize( @@ -97,13 +94,15 @@ class UpdateUserAttributesResponseAwsJson11Serializer } switch (key) { case 'CodeDeliveryDetailsList': - result.codeDeliveryDetailsList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(CodeDeliveryDetailsType)], - ), - ) as _i2.BuiltList)); + result.codeDeliveryDetailsList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(CodeDeliveryDetailsType), + ]), + ) + as _i2.BuiltList), + ); } } @@ -121,13 +120,14 @@ class UpdateUserAttributesResponseAwsJson11Serializer if (codeDeliveryDetailsList != null) { result$ ..add('CodeDeliveryDetailsList') - ..add(serializers.serialize( - codeDeliveryDetailsList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(CodeDeliveryDetailsType)], + ..add( + serializers.serialize( + codeDeliveryDetailsList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(CodeDeliveryDetailsType), + ]), ), - )); + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.g.dart index 9cbc40002f..19d591e7ce 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/update_user_attributes_response.g.dart @@ -10,16 +10,16 @@ class _$UpdateUserAttributesResponse extends UpdateUserAttributesResponse { @override final _i2.BuiltList? codeDeliveryDetailsList; - factory _$UpdateUserAttributesResponse( - [void Function(UpdateUserAttributesResponseBuilder)? updates]) => - (new UpdateUserAttributesResponseBuilder()..update(updates))._build(); + factory _$UpdateUserAttributesResponse([ + void Function(UpdateUserAttributesResponseBuilder)? updates, + ]) => (new UpdateUserAttributesResponseBuilder()..update(updates))._build(); _$UpdateUserAttributesResponse._({this.codeDeliveryDetailsList}) : super._(); @override UpdateUserAttributesResponse rebuild( - void Function(UpdateUserAttributesResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UpdateUserAttributesResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UpdateUserAttributesResponseBuilder toBuilder() => @@ -43,8 +43,10 @@ class _$UpdateUserAttributesResponse extends UpdateUserAttributesResponse { class UpdateUserAttributesResponseBuilder implements - Builder { + Builder< + UpdateUserAttributesResponse, + UpdateUserAttributesResponseBuilder + > { _$UpdateUserAttributesResponse? _$v; _i2.ListBuilder? _codeDeliveryDetailsList; @@ -52,8 +54,8 @@ class UpdateUserAttributesResponseBuilder _$this._codeDeliveryDetailsList ??= new _i2.ListBuilder(); set codeDeliveryDetailsList( - _i2.ListBuilder? codeDeliveryDetailsList) => - _$this._codeDeliveryDetailsList = codeDeliveryDetailsList; + _i2.ListBuilder? codeDeliveryDetailsList, + ) => _$this._codeDeliveryDetailsList = codeDeliveryDetailsList; UpdateUserAttributesResponseBuilder(); @@ -83,7 +85,8 @@ class UpdateUserAttributesResponseBuilder _$UpdateUserAttributesResponse _build() { _$UpdateUserAttributesResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$UpdateUserAttributesResponse._( codeDeliveryDetailsList: _codeDeliveryDetailsList?.build(), ); @@ -94,7 +97,10 @@ class UpdateUserAttributesResponseBuilder _codeDeliveryDetailsList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'UpdateUserAttributesResponse', _$failedField, e.toString()); + r'UpdateUserAttributesResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.dart index f98d85cfd4..c2ab80f77d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.dart @@ -15,10 +15,7 @@ abstract class UserContextDataType with _i1.AWSEquatable implements Built { /// Contextual data, such as the user's device fingerprint, IP address, or location, used for evaluating the risk of an unexpected event by Amazon Cognito advanced security. - factory UserContextDataType({ - String? ipAddress, - String? encodedData, - }) { + factory UserContextDataType({String? ipAddress, String? encodedData}) { return _$UserContextDataType._( ipAddress: ipAddress, encodedData: encodedData, @@ -26,14 +23,14 @@ abstract class UserContextDataType } /// Contextual data, such as the user's device fingerprint, IP address, or location, used for evaluating the risk of an unexpected event by Amazon Cognito advanced security. - factory UserContextDataType.build( - [void Function(UserContextDataTypeBuilder) updates]) = - _$UserContextDataType; + factory UserContextDataType.build([ + void Function(UserContextDataTypeBuilder) updates, + ]) = _$UserContextDataType; const UserContextDataType._(); static const List<_i2.SmithySerializer> serializers = [ - UserContextDataTypeAwsJson11Serializer() + UserContextDataTypeAwsJson11Serializer(), ]; /// The source IP address of your user's device. @@ -42,22 +39,14 @@ abstract class UserContextDataType /// Encoded device-fingerprint details that your app collected with the Amazon Cognito context data collection library. For more information, see [Adding user device and session data to API requests](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-adaptive-authentication.html#user-pool-settings-adaptive-authentication-device-fingerprint). String? get encodedData; @override - List get props => [ - ipAddress, - encodedData, - ]; + List get props => [ipAddress, encodedData]; @override String toString() { - final helper = newBuiltValueToStringHelper('UserContextDataType') - ..add( - 'ipAddress', - '***SENSITIVE***', - ) - ..add( - 'encodedData', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('UserContextDataType') + ..add('ipAddress', '***SENSITIVE***') + ..add('encodedData', '***SENSITIVE***'); return helper.toString(); } } @@ -68,17 +57,14 @@ class UserContextDataTypeAwsJson11Serializer @override Iterable get types => const [ - UserContextDataType, - _$UserContextDataType, - ]; + UserContextDataType, + _$UserContextDataType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UserContextDataType deserialize( @@ -97,15 +83,19 @@ class UserContextDataTypeAwsJson11Serializer } switch (key) { case 'IpAddress': - result.ipAddress = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.ipAddress = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EncodedData': - result.encodedData = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encodedData = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -123,18 +113,22 @@ class UserContextDataTypeAwsJson11Serializer if (ipAddress != null) { result$ ..add('IpAddress') - ..add(serializers.serialize( - ipAddress, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + ipAddress, + specifiedType: const FullType(String), + ), + ); } if (encodedData != null) { result$ ..add('EncodedData') - ..add(serializers.serialize( - encodedData, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + encodedData, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.g.dart index 6cde32416c..5c79554625 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_context_data_type.g.dart @@ -12,16 +12,16 @@ class _$UserContextDataType extends UserContextDataType { @override final String? encodedData; - factory _$UserContextDataType( - [void Function(UserContextDataTypeBuilder)? updates]) => - (new UserContextDataTypeBuilder()..update(updates))._build(); + factory _$UserContextDataType([ + void Function(UserContextDataTypeBuilder)? updates, + ]) => (new UserContextDataTypeBuilder()..update(updates))._build(); _$UserContextDataType._({this.ipAddress, this.encodedData}) : super._(); @override UserContextDataType rebuild( - void Function(UserContextDataTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UserContextDataTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UserContextDataTypeBuilder toBuilder() => @@ -84,7 +84,8 @@ class UserContextDataTypeBuilder UserContextDataType build() => _build(); _$UserContextDataType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UserContextDataType._( ipAddress: ipAddress, encodedData: encodedData, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.dart index 19a37c5299..a7eb0477a5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.dart @@ -12,11 +12,12 @@ part 'user_lambda_validation_exception.g.dart'; /// This exception is thrown when the Amazon Cognito service encounters a user validation exception with the Lambda service. abstract class UserLambdaValidationException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + UserLambdaValidationException, + UserLambdaValidationExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when the Amazon Cognito service encounters a user validation exception with the Lambda service. factory UserLambdaValidationException({String? message}) { @@ -24,9 +25,9 @@ abstract class UserLambdaValidationException } /// This exception is thrown when the Amazon Cognito service encounters a user validation exception with the Lambda service. - factory UserLambdaValidationException.build( - [void Function(UserLambdaValidationExceptionBuilder) updates]) = - _$UserLambdaValidationException; + factory UserLambdaValidationException.build([ + void Function(UserLambdaValidationExceptionBuilder) updates, + ]) = _$UserLambdaValidationException; const UserLambdaValidationException._(); @@ -34,22 +35,21 @@ abstract class UserLambdaValidationException factory UserLambdaValidationException.fromResponse( UserLambdaValidationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [UserLambdaValidationExceptionAwsJson11Serializer()]; + serializers = [UserLambdaValidationExceptionAwsJson11Serializer()]; /// The message returned when the Amazon Cognito service returns a user validation exception with the Lambda service. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -70,10 +70,7 @@ abstract class UserLambdaValidationException @override String toString() { final helper = newBuiltValueToStringHelper('UserLambdaValidationException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -81,21 +78,18 @@ abstract class UserLambdaValidationException class UserLambdaValidationExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UserLambdaValidationExceptionAwsJson11Serializer() - : super('UserLambdaValidationException'); + : super('UserLambdaValidationException'); @override Iterable get types => const [ - UserLambdaValidationException, - _$UserLambdaValidationException, - ]; + UserLambdaValidationException, + _$UserLambdaValidationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UserLambdaValidationException deserialize( @@ -114,10 +108,12 @@ class UserLambdaValidationExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -135,10 +131,9 @@ class UserLambdaValidationExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.g.dart index 021a7e34b0..4cbecb3975 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_lambda_validation_exception.g.dart @@ -12,16 +12,16 @@ class _$UserLambdaValidationException extends UserLambdaValidationException { @override final Map? headers; - factory _$UserLambdaValidationException( - [void Function(UserLambdaValidationExceptionBuilder)? updates]) => - (new UserLambdaValidationExceptionBuilder()..update(updates))._build(); + factory _$UserLambdaValidationException([ + void Function(UserLambdaValidationExceptionBuilder)? updates, + ]) => (new UserLambdaValidationExceptionBuilder()..update(updates))._build(); _$UserLambdaValidationException._({this.message, this.headers}) : super._(); @override UserLambdaValidationException rebuild( - void Function(UserLambdaValidationExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UserLambdaValidationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UserLambdaValidationExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$UserLambdaValidationException extends UserLambdaValidationException { class UserLambdaValidationExceptionBuilder implements - Builder { + Builder< + UserLambdaValidationException, + UserLambdaValidationExceptionBuilder + > { _$UserLambdaValidationException? _$v; String? _message; @@ -83,7 +85,8 @@ class UserLambdaValidationExceptionBuilder UserLambdaValidationException build() => _build(); _$UserLambdaValidationException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UserLambdaValidationException._( message: message, headers: headers, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.dart index 1ba1c2d2e8..0b742831b7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.dart @@ -22,9 +22,9 @@ abstract class UserNotConfirmedException } /// This exception is thrown when a user isn't confirmed successfully. - factory UserNotConfirmedException.build( - [void Function(UserNotConfirmedExceptionBuilder) updates]) = - _$UserNotConfirmedException; + factory UserNotConfirmedException.build([ + void Function(UserNotConfirmedExceptionBuilder) updates, + ]) = _$UserNotConfirmedException; const UserNotConfirmedException._(); @@ -32,22 +32,21 @@ abstract class UserNotConfirmedException factory UserNotConfirmedException.fromResponse( UserNotConfirmedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [UserNotConfirmedExceptionAwsJson11Serializer()]; + serializers = [UserNotConfirmedExceptionAwsJson11Serializer()]; /// The message returned when a user isn't confirmed successfully. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class UserNotConfirmedException @override String toString() { final helper = newBuiltValueToStringHelper('UserNotConfirmedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class UserNotConfirmedException class UserNotConfirmedExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UserNotConfirmedExceptionAwsJson11Serializer() - : super('UserNotConfirmedException'); + : super('UserNotConfirmedException'); @override Iterable get types => const [ - UserNotConfirmedException, - _$UserNotConfirmedException, - ]; + UserNotConfirmedException, + _$UserNotConfirmedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UserNotConfirmedException deserialize( @@ -112,10 +105,12 @@ class UserNotConfirmedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class UserNotConfirmedExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.g.dart index 83f7b29c5d..e5a32dedc0 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_confirmed_exception.g.dart @@ -12,16 +12,16 @@ class _$UserNotConfirmedException extends UserNotConfirmedException { @override final Map? headers; - factory _$UserNotConfirmedException( - [void Function(UserNotConfirmedExceptionBuilder)? updates]) => - (new UserNotConfirmedExceptionBuilder()..update(updates))._build(); + factory _$UserNotConfirmedException([ + void Function(UserNotConfirmedExceptionBuilder)? updates, + ]) => (new UserNotConfirmedExceptionBuilder()..update(updates))._build(); _$UserNotConfirmedException._({this.message, this.headers}) : super._(); @override UserNotConfirmedException rebuild( - void Function(UserNotConfirmedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UserNotConfirmedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UserNotConfirmedExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class UserNotConfirmedExceptionBuilder UserNotConfirmedException build() => _build(); _$UserNotConfirmedException _build() { - final _$result = _$v ?? - new _$UserNotConfirmedException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$UserNotConfirmedException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart index 060958dac4..b1e9a5c96b 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart @@ -22,9 +22,9 @@ abstract class UserNotFoundException } /// This exception is thrown when a user isn't found. - factory UserNotFoundException.build( - [void Function(UserNotFoundExceptionBuilder) updates]) = - _$UserNotFoundException; + factory UserNotFoundException.build([ + void Function(UserNotFoundExceptionBuilder) updates, + ]) = _$UserNotFoundException; const UserNotFoundException._(); @@ -32,13 +32,12 @@ abstract class UserNotFoundException factory UserNotFoundException.fromResponse( UserNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - UserNotFoundExceptionAwsJson11Serializer() + UserNotFoundExceptionAwsJson11Serializer(), ]; /// The message returned when a user isn't found. @@ -46,9 +45,9 @@ abstract class UserNotFoundException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,10 +68,7 @@ abstract class UserNotFoundException @override String toString() { final helper = newBuiltValueToStringHelper('UserNotFoundException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,21 +76,18 @@ abstract class UserNotFoundException class UserNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UserNotFoundExceptionAwsJson11Serializer() - : super('UserNotFoundException'); + : super('UserNotFoundException'); @override Iterable get types => const [ - UserNotFoundException, - _$UserNotFoundException, - ]; + UserNotFoundException, + _$UserNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UserNotFoundException deserialize( @@ -113,10 +106,12 @@ class UserNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,10 +129,9 @@ class UserNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart index 660fbf1b5b..033b8017e8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart @@ -12,16 +12,16 @@ class _$UserNotFoundException extends UserNotFoundException { @override final Map? headers; - factory _$UserNotFoundException( - [void Function(UserNotFoundExceptionBuilder)? updates]) => - (new UserNotFoundExceptionBuilder()..update(updates))._build(); + factory _$UserNotFoundException([ + void Function(UserNotFoundExceptionBuilder)? updates, + ]) => (new UserNotFoundExceptionBuilder()..update(updates))._build(); _$UserNotFoundException._({this.message, this.headers}) : super._(); @override UserNotFoundException rebuild( - void Function(UserNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UserNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UserNotFoundExceptionBuilder toBuilder() => @@ -81,11 +81,9 @@ class UserNotFoundExceptionBuilder UserNotFoundException build() => _build(); _$UserNotFoundException _build() { - final _$result = _$v ?? - new _$UserNotFoundException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$UserNotFoundException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.dart index 6a5e063454..9cf46f7f90 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.dart @@ -22,9 +22,9 @@ abstract class UsernameExistsException } /// This exception is thrown when Amazon Cognito encounters a user name that already exists in the user pool. - factory UsernameExistsException.build( - [void Function(UsernameExistsExceptionBuilder) updates]) = - _$UsernameExistsException; + factory UsernameExistsException.build([ + void Function(UsernameExistsExceptionBuilder) updates, + ]) = _$UsernameExistsException; const UsernameExistsException._(); @@ -32,10 +32,9 @@ abstract class UsernameExistsException factory UsernameExistsException.fromResponse( UsernameExistsException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [UsernameExistsExceptionAwsJson11Serializer()]; @@ -45,9 +44,9 @@ abstract class UsernameExistsException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UsernameExistsException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UsernameExistsException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -68,10 +67,7 @@ abstract class UsernameExistsException @override String toString() { final helper = newBuiltValueToStringHelper('UsernameExistsException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,21 +75,18 @@ abstract class UsernameExistsException class UsernameExistsExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UsernameExistsExceptionAwsJson11Serializer() - : super('UsernameExistsException'); + : super('UsernameExistsException'); @override Iterable get types => const [ - UsernameExistsException, - _$UsernameExistsException, - ]; + UsernameExistsException, + _$UsernameExistsException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UsernameExistsException deserialize( @@ -112,10 +105,12 @@ class UsernameExistsExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,10 +128,9 @@ class UsernameExistsExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.g.dart index 735225bbd7..f131978c9d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/username_exists_exception.g.dart @@ -12,16 +12,16 @@ class _$UsernameExistsException extends UsernameExistsException { @override final Map? headers; - factory _$UsernameExistsException( - [void Function(UsernameExistsExceptionBuilder)? updates]) => - (new UsernameExistsExceptionBuilder()..update(updates))._build(); + factory _$UsernameExistsException([ + void Function(UsernameExistsExceptionBuilder)? updates, + ]) => (new UsernameExistsExceptionBuilder()..update(updates))._build(); _$UsernameExistsException._({this.message, this.headers}) : super._(); @override UsernameExistsException rebuild( - void Function(UsernameExistsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UsernameExistsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UsernameExistsExceptionBuilder toBuilder() => @@ -82,11 +82,9 @@ class UsernameExistsExceptionBuilder UsernameExistsException build() => _build(); _$UsernameExistsException _build() { - final _$result = _$v ?? - new _$UsernameExistsException._( - message: message, - headers: headers, - ); + final _$result = + _$v ?? + new _$UsernameExistsException._(message: message, headers: headers); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.dart index b880b6ff91..10662f5330 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.dart @@ -30,9 +30,9 @@ abstract class VerifySoftwareTokenRequest ); } - factory VerifySoftwareTokenRequest.build( - [void Function(VerifySoftwareTokenRequestBuilder) updates]) = - _$VerifySoftwareTokenRequest; + factory VerifySoftwareTokenRequest.build([ + void Function(VerifySoftwareTokenRequestBuilder) updates, + ]) = _$VerifySoftwareTokenRequest; const VerifySoftwareTokenRequest._(); @@ -40,11 +40,10 @@ abstract class VerifySoftwareTokenRequest VerifySoftwareTokenRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [VerifySoftwareTokenRequestAwsJson11Serializer()]; + serializers = [VerifySoftwareTokenRequestAwsJson11Serializer()]; /// A valid access token that Amazon Cognito issued to the user whose software token you want to verify. String? get accessToken; @@ -62,31 +61,20 @@ abstract class VerifySoftwareTokenRequest @override List get props => [ - accessToken, - session, - userCode, - friendlyDeviceName, - ]; + accessToken, + session, + userCode, + friendlyDeviceName, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('VerifySoftwareTokenRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'session', - '***SENSITIVE***', - ) - ..add( - 'userCode', - '***SENSITIVE***', - ) - ..add( - 'friendlyDeviceName', - friendlyDeviceName, - ); + final helper = + newBuiltValueToStringHelper('VerifySoftwareTokenRequest') + ..add('accessToken', '***SENSITIVE***') + ..add('session', '***SENSITIVE***') + ..add('userCode', '***SENSITIVE***') + ..add('friendlyDeviceName', friendlyDeviceName); return helper.toString(); } } @@ -94,21 +82,18 @@ abstract class VerifySoftwareTokenRequest class VerifySoftwareTokenRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const VerifySoftwareTokenRequestAwsJson11Serializer() - : super('VerifySoftwareTokenRequest'); + : super('VerifySoftwareTokenRequest'); @override Iterable get types => const [ - VerifySoftwareTokenRequest, - _$VerifySoftwareTokenRequest, - ]; + VerifySoftwareTokenRequest, + _$VerifySoftwareTokenRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override VerifySoftwareTokenRequest deserialize( @@ -127,25 +112,33 @@ class VerifySoftwareTokenRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Session': - result.session = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.session = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UserCode': - result.userCode = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.userCode = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'FriendlyDeviceName': - result.friendlyDeviceName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.friendlyDeviceName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -163,38 +156,38 @@ class VerifySoftwareTokenRequestAwsJson11Serializer :accessToken, :session, :userCode, - :friendlyDeviceName + :friendlyDeviceName, ) = object; result$.addAll([ 'UserCode', - serializers.serialize( - userCode, - specifiedType: const FullType(String), - ), + serializers.serialize(userCode, specifiedType: const FullType(String)), ]); if (accessToken != null) { result$ ..add('AccessToken') - ..add(serializers.serialize( - accessToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + accessToken, + specifiedType: const FullType(String), + ), + ); } if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(session, specifiedType: const FullType(String)), + ); } if (friendlyDeviceName != null) { result$ ..add('FriendlyDeviceName') - ..add(serializers.serialize( - friendlyDeviceName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + friendlyDeviceName, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.g.dart index 6c60bf99c3..2bc218ce92 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_request.g.dart @@ -16,24 +16,27 @@ class _$VerifySoftwareTokenRequest extends VerifySoftwareTokenRequest { @override final String? friendlyDeviceName; - factory _$VerifySoftwareTokenRequest( - [void Function(VerifySoftwareTokenRequestBuilder)? updates]) => - (new VerifySoftwareTokenRequestBuilder()..update(updates))._build(); - - _$VerifySoftwareTokenRequest._( - {this.accessToken, - this.session, - required this.userCode, - this.friendlyDeviceName}) - : super._() { + factory _$VerifySoftwareTokenRequest([ + void Function(VerifySoftwareTokenRequestBuilder)? updates, + ]) => (new VerifySoftwareTokenRequestBuilder()..update(updates))._build(); + + _$VerifySoftwareTokenRequest._({ + this.accessToken, + this.session, + required this.userCode, + this.friendlyDeviceName, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - userCode, r'VerifySoftwareTokenRequest', 'userCode'); + userCode, + r'VerifySoftwareTokenRequest', + 'userCode', + ); } @override VerifySoftwareTokenRequest rebuild( - void Function(VerifySoftwareTokenRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(VerifySoftwareTokenRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override VerifySoftwareTokenRequestBuilder toBuilder() => @@ -112,12 +115,16 @@ class VerifySoftwareTokenRequestBuilder VerifySoftwareTokenRequest build() => _build(); _$VerifySoftwareTokenRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$VerifySoftwareTokenRequest._( accessToken: accessToken, session: session, userCode: BuiltValueNullFieldError.checkNotNull( - userCode, r'VerifySoftwareTokenRequest', 'userCode'), + userCode, + r'VerifySoftwareTokenRequest', + 'userCode', + ), friendlyDeviceName: friendlyDeviceName, ); replace(_$result); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.dart index 5084e7f717..02ed52f7ae 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.dart @@ -19,15 +19,12 @@ abstract class VerifySoftwareTokenResponse VerifySoftwareTokenResponseType? status, String? session, }) { - return _$VerifySoftwareTokenResponse._( - status: status, - session: session, - ); + return _$VerifySoftwareTokenResponse._(status: status, session: session); } - factory VerifySoftwareTokenResponse.build( - [void Function(VerifySoftwareTokenResponseBuilder) updates]) = - _$VerifySoftwareTokenResponse; + factory VerifySoftwareTokenResponse.build([ + void Function(VerifySoftwareTokenResponseBuilder) updates, + ]) = _$VerifySoftwareTokenResponse; const VerifySoftwareTokenResponse._(); @@ -35,11 +32,10 @@ abstract class VerifySoftwareTokenResponse factory VerifySoftwareTokenResponse.fromResponse( VerifySoftwareTokenResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [VerifySoftwareTokenResponseAwsJson11Serializer()]; + serializers = [VerifySoftwareTokenResponseAwsJson11Serializer()]; /// The status of the verify software token. VerifySoftwareTokenResponseType? get status; @@ -47,22 +43,14 @@ abstract class VerifySoftwareTokenResponse /// The session that should be passed both ways in challenge-response calls to the service. String? get session; @override - List get props => [ - status, - session, - ]; + List get props => [status, session]; @override String toString() { - final helper = newBuiltValueToStringHelper('VerifySoftwareTokenResponse') - ..add( - 'status', - status, - ) - ..add( - 'session', - '***SENSITIVE***', - ); + final helper = + newBuiltValueToStringHelper('VerifySoftwareTokenResponse') + ..add('status', status) + ..add('session', '***SENSITIVE***'); return helper.toString(); } } @@ -70,21 +58,18 @@ abstract class VerifySoftwareTokenResponse class VerifySoftwareTokenResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const VerifySoftwareTokenResponseAwsJson11Serializer() - : super('VerifySoftwareTokenResponse'); + : super('VerifySoftwareTokenResponse'); @override Iterable get types => const [ - VerifySoftwareTokenResponse, - _$VerifySoftwareTokenResponse, - ]; + VerifySoftwareTokenResponse, + _$VerifySoftwareTokenResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override VerifySoftwareTokenResponse deserialize( @@ -103,15 +88,21 @@ class VerifySoftwareTokenResponseAwsJson11Serializer } switch (key) { case 'Status': - result.status = (serializers.deserialize( - value, - specifiedType: const FullType(VerifySoftwareTokenResponseType), - ) as VerifySoftwareTokenResponseType); + result.status = + (serializers.deserialize( + value, + specifiedType: const FullType( + VerifySoftwareTokenResponseType, + ), + ) + as VerifySoftwareTokenResponseType); case 'Session': - result.session = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.session = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -129,18 +120,19 @@ class VerifySoftwareTokenResponseAwsJson11Serializer if (status != null) { result$ ..add('Status') - ..add(serializers.serialize( - status, - specifiedType: const FullType(VerifySoftwareTokenResponseType), - )); + ..add( + serializers.serialize( + status, + specifiedType: const FullType(VerifySoftwareTokenResponseType), + ), + ); } if (session != null) { result$ ..add('Session') - ..add(serializers.serialize( - session, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(session, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.g.dart index 120a4f06cf..d669efb7b4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response.g.dart @@ -12,16 +12,16 @@ class _$VerifySoftwareTokenResponse extends VerifySoftwareTokenResponse { @override final String? session; - factory _$VerifySoftwareTokenResponse( - [void Function(VerifySoftwareTokenResponseBuilder)? updates]) => - (new VerifySoftwareTokenResponseBuilder()..update(updates))._build(); + factory _$VerifySoftwareTokenResponse([ + void Function(VerifySoftwareTokenResponseBuilder)? updates, + ]) => (new VerifySoftwareTokenResponseBuilder()..update(updates))._build(); _$VerifySoftwareTokenResponse._({this.status, this.session}) : super._(); @override VerifySoftwareTokenResponse rebuild( - void Function(VerifySoftwareTokenResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(VerifySoftwareTokenResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override VerifySoftwareTokenResponseBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$VerifySoftwareTokenResponse extends VerifySoftwareTokenResponse { class VerifySoftwareTokenResponseBuilder implements - Builder { + Builder< + VerifySoftwareTokenResponse, + VerifySoftwareTokenResponseBuilder + > { _$VerifySoftwareTokenResponse? _$v; VerifySoftwareTokenResponseType? _status; @@ -87,11 +89,9 @@ class VerifySoftwareTokenResponseBuilder VerifySoftwareTokenResponse build() => _build(); _$VerifySoftwareTokenResponse _build() { - final _$result = _$v ?? - new _$VerifySoftwareTokenResponse._( - status: status, - session: session, - ); + final _$result = + _$v ?? + new _$VerifySoftwareTokenResponse._(status: status, session: session); replace(_$result); return _$result; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response_type.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response_type.dart index 5de62aad58..311b464170 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response_type.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_software_token_response_type.dart @@ -7,20 +7,12 @@ import 'package:smithy/smithy.dart' as _i1; class VerifySoftwareTokenResponseType extends _i1.SmithyEnum { - const VerifySoftwareTokenResponseType._( - super.index, - super.name, - super.value, - ); + const VerifySoftwareTokenResponseType._(super.index, super.name, super.value); const VerifySoftwareTokenResponseType._sdkUnknown(super.value) - : super.sdkUnknown(); + : super.sdkUnknown(); - static const error = VerifySoftwareTokenResponseType._( - 0, - 'ERROR', - 'ERROR', - ); + static const error = VerifySoftwareTokenResponseType._(0, 'ERROR', 'ERROR'); static const success = VerifySoftwareTokenResponseType._( 1, @@ -35,18 +27,15 @@ class VerifySoftwareTokenResponseType ]; static const List<_i1.SmithySerializer> - serializers = [ + serializers = [ _i1.SmithyEnumSerializer( 'VerifySoftwareTokenResponseType', values: values, sdkUnknown: VerifySoftwareTokenResponseType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.dart index 0ab9eb603b..d91b952bc3 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.dart @@ -31,9 +31,9 @@ abstract class VerifyUserAttributeRequest } /// Represents the request to verify user attributes. - factory VerifyUserAttributeRequest.build( - [void Function(VerifyUserAttributeRequestBuilder) updates]) = - _$VerifyUserAttributeRequest; + factory VerifyUserAttributeRequest.build([ + void Function(VerifyUserAttributeRequestBuilder) updates, + ]) = _$VerifyUserAttributeRequest; const VerifyUserAttributeRequest._(); @@ -41,11 +41,10 @@ abstract class VerifyUserAttributeRequest VerifyUserAttributeRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [VerifyUserAttributeRequestAwsJson11Serializer()]; + serializers = [VerifyUserAttributeRequestAwsJson11Serializer()]; /// A valid access token that Amazon Cognito issued to the user whose user attributes you want to verify. String get accessToken; @@ -59,27 +58,15 @@ abstract class VerifyUserAttributeRequest VerifyUserAttributeRequest getPayload() => this; @override - List get props => [ - accessToken, - attributeName, - code, - ]; + List get props => [accessToken, attributeName, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('VerifyUserAttributeRequest') - ..add( - 'accessToken', - '***SENSITIVE***', - ) - ..add( - 'attributeName', - attributeName, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('VerifyUserAttributeRequest') + ..add('accessToken', '***SENSITIVE***') + ..add('attributeName', attributeName) + ..add('code', code); return helper.toString(); } } @@ -87,21 +74,18 @@ abstract class VerifyUserAttributeRequest class VerifyUserAttributeRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const VerifyUserAttributeRequestAwsJson11Serializer() - : super('VerifyUserAttributeRequest'); + : super('VerifyUserAttributeRequest'); @override Iterable get types => const [ - VerifyUserAttributeRequest, - _$VerifyUserAttributeRequest, - ]; + VerifyUserAttributeRequest, + _$VerifyUserAttributeRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override VerifyUserAttributeRequest deserialize( @@ -120,20 +104,26 @@ class VerifyUserAttributeRequestAwsJson11Serializer } switch (key) { case 'AccessToken': - result.accessToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accessToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AttributeName': - result.attributeName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attributeName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -151,20 +141,14 @@ class VerifyUserAttributeRequestAwsJson11Serializer object; result$.addAll([ 'AccessToken', - serializers.serialize( - accessToken, - specifiedType: const FullType(String), - ), + serializers.serialize(accessToken, specifiedType: const FullType(String)), 'AttributeName', serializers.serialize( attributeName, specifiedType: const FullType(String), ), 'Code', - serializers.serialize( - code, - specifiedType: const FullType(String), - ), + serializers.serialize(code, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.g.dart index cb6a2db6bb..e72fc34f83 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_request.g.dart @@ -14,27 +14,36 @@ class _$VerifyUserAttributeRequest extends VerifyUserAttributeRequest { @override final String code; - factory _$VerifyUserAttributeRequest( - [void Function(VerifyUserAttributeRequestBuilder)? updates]) => - (new VerifyUserAttributeRequestBuilder()..update(updates))._build(); - - _$VerifyUserAttributeRequest._( - {required this.accessToken, - required this.attributeName, - required this.code}) - : super._() { + factory _$VerifyUserAttributeRequest([ + void Function(VerifyUserAttributeRequestBuilder)? updates, + ]) => (new VerifyUserAttributeRequestBuilder()..update(updates))._build(); + + _$VerifyUserAttributeRequest._({ + required this.accessToken, + required this.attributeName, + required this.code, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accessToken, r'VerifyUserAttributeRequest', 'accessToken'); + accessToken, + r'VerifyUserAttributeRequest', + 'accessToken', + ); BuiltValueNullFieldError.checkNotNull( - attributeName, r'VerifyUserAttributeRequest', 'attributeName'); + attributeName, + r'VerifyUserAttributeRequest', + 'attributeName', + ); BuiltValueNullFieldError.checkNotNull( - code, r'VerifyUserAttributeRequest', 'code'); + code, + r'VerifyUserAttributeRequest', + 'code', + ); } @override VerifyUserAttributeRequest rebuild( - void Function(VerifyUserAttributeRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(VerifyUserAttributeRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override VerifyUserAttributeRequestBuilder toBuilder() => @@ -106,14 +115,24 @@ class VerifyUserAttributeRequestBuilder VerifyUserAttributeRequest build() => _build(); _$VerifyUserAttributeRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$VerifyUserAttributeRequest._( accessToken: BuiltValueNullFieldError.checkNotNull( - accessToken, r'VerifyUserAttributeRequest', 'accessToken'), + accessToken, + r'VerifyUserAttributeRequest', + 'accessToken', + ), attributeName: BuiltValueNullFieldError.checkNotNull( - attributeName, r'VerifyUserAttributeRequest', 'attributeName'), + attributeName, + r'VerifyUserAttributeRequest', + 'attributeName', + ), code: BuiltValueNullFieldError.checkNotNull( - code, r'VerifyUserAttributeRequest', 'code'), + code, + r'VerifyUserAttributeRequest', + 'code', + ), ); replace(_$result); return _$result; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.dart index 2bd2b4cd53..900c91c87f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.dart @@ -22,9 +22,9 @@ abstract class VerifyUserAttributeResponse } /// A container representing the response from the server from the request to verify user attributes. - factory VerifyUserAttributeResponse.build( - [void Function(VerifyUserAttributeResponseBuilder) updates]) = - _$VerifyUserAttributeResponse; + factory VerifyUserAttributeResponse.build([ + void Function(VerifyUserAttributeResponseBuilder) updates, + ]) = _$VerifyUserAttributeResponse; const VerifyUserAttributeResponse._(); @@ -32,11 +32,10 @@ abstract class VerifyUserAttributeResponse factory VerifyUserAttributeResponse.fromResponse( VerifyUserAttributeResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [VerifyUserAttributeResponseAwsJson11Serializer()]; + serializers = [VerifyUserAttributeResponseAwsJson11Serializer()]; @override List get props => []; @@ -51,21 +50,18 @@ abstract class VerifyUserAttributeResponse class VerifyUserAttributeResponseAwsJson11Serializer extends _i2.StructuredSmithySerializer { const VerifyUserAttributeResponseAwsJson11Serializer() - : super('VerifyUserAttributeResponse'); + : super('VerifyUserAttributeResponse'); @override Iterable get types => const [ - VerifyUserAttributeResponse, - _$VerifyUserAttributeResponse, - ]; + VerifyUserAttributeResponse, + _$VerifyUserAttributeResponse, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override VerifyUserAttributeResponse deserialize( @@ -81,6 +77,5 @@ class VerifyUserAttributeResponseAwsJson11Serializer Serializers serializers, VerifyUserAttributeResponse object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.g.dart index ac5f44db8e..479ac13632 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/model/verify_user_attribute_response.g.dart @@ -7,16 +7,16 @@ part of 'verify_user_attribute_response.dart'; // ************************************************************************** class _$VerifyUserAttributeResponse extends VerifyUserAttributeResponse { - factory _$VerifyUserAttributeResponse( - [void Function(VerifyUserAttributeResponseBuilder)? updates]) => - (new VerifyUserAttributeResponseBuilder()..update(updates))._build(); + factory _$VerifyUserAttributeResponse([ + void Function(VerifyUserAttributeResponseBuilder)? updates, + ]) => (new VerifyUserAttributeResponseBuilder()..update(updates))._build(); _$VerifyUserAttributeResponse._() : super._(); @override VerifyUserAttributeResponse rebuild( - void Function(VerifyUserAttributeResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(VerifyUserAttributeResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override VerifyUserAttributeResponseBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$VerifyUserAttributeResponse extends VerifyUserAttributeResponse { class VerifyUserAttributeResponseBuilder implements - Builder { + Builder< + VerifyUserAttributeResponse, + VerifyUserAttributeResponseBuilder + > { _$VerifyUserAttributeResponse? _$v; VerifyUserAttributeResponseBuilder(); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/associate_software_token_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/associate_software_token_operation.dart index a59df7d709..aa3d47c2ee 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/associate_software_token_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/associate_software_token_operation.dart @@ -28,11 +28,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// After you set up software token MFA for your user, Amazon Cognito generates a `SOFTWARE\_TOKEN\_MFA` challenge when they authenticate. Respond to this challenge with your user's TOTP. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class AssociateSoftwareTokenOperation extends _i1.HttpOperation< - AssociateSoftwareTokenRequest, - AssociateSoftwareTokenRequest, - AssociateSoftwareTokenResponse, - AssociateSoftwareTokenResponse> { +class AssociateSoftwareTokenOperation + extends + _i1.HttpOperation< + AssociateSoftwareTokenRequest, + AssociateSoftwareTokenRequest, + AssociateSoftwareTokenResponse, + AssociateSoftwareTokenResponse + > { /// Begins setup of time-based one-time password (TOTP) multi-factor authentication (MFA) for a user, with a unique private key that Amazon Cognito generates and returns in the API response. You can authorize an `AssociateSoftwareToken` request with either the user's access token, or a session string from a challenge response that you received from Amazon Cognito. /// /// Amazon Cognito disassociates an existing software token when you verify the new token in a [VerifySoftwareToken](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerifySoftwareToken.html) API request. If you don't verify the software token and your user pool doesn't require MFA, the user can then authenticate with user name and password credentials alone. If your user pool requires TOTP MFA, Amazon Cognito generates an `MFA_SETUP` or `SOFTWARE\_TOKEN\_SETUP` challenge each time your user signs in. Complete setup with `AssociateSoftwareToken` and `VerifySoftwareToken`. @@ -47,23 +50,27 @@ class AssociateSoftwareTokenOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - AssociateSoftwareTokenRequest, - AssociateSoftwareTokenRequest, - AssociateSoftwareTokenResponse, - AssociateSoftwareTokenResponse>> protocols = [ + _i1.HttpProtocol< + AssociateSoftwareTokenRequest, + AssociateSoftwareTokenRequest, + AssociateSoftwareTokenResponse, + AssociateSoftwareTokenResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -83,7 +90,7 @@ class AssociateSoftwareTokenOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -115,86 +122,86 @@ class AssociateSoftwareTokenOperation extends _i1.HttpOperation< AssociateSoftwareTokenResponse buildOutput( AssociateSoftwareTokenResponse payload, _i4.AWSBaseHttpResponse response, - ) => - AssociateSoftwareTokenResponse.fromResponse( - payload, - response, - ); + ) => AssociateSoftwareTokenResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ConcurrentModificationException', - ), - _i1.ErrorKind.client, - ConcurrentModificationException, - statusCode: 400, - builder: ConcurrentModificationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'SoftwareTokenMFANotFoundException', - ), - _i1.ErrorKind.client, - SoftwareTokenMfaNotFoundException, - statusCode: 400, - builder: SoftwareTokenMfaNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError< + ConcurrentModificationException, + ConcurrentModificationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ConcurrentModificationException', + ), + _i1.ErrorKind.client, + ConcurrentModificationException, + statusCode: 400, + builder: ConcurrentModificationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError< + SoftwareTokenMfaNotFoundException, + SoftwareTokenMfaNotFoundException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'SoftwareTokenMFANotFoundException', + ), + _i1.ErrorKind.client, + SoftwareTokenMfaNotFoundException, + statusCode: 400, + builder: SoftwareTokenMfaNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'AssociateSoftwareToken'; @@ -215,11 +222,7 @@ class AssociateSoftwareTokenOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/change_password_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/change_password_operation.dart index 7b6f0b0a20..21aaccf6b8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/change_password_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/change_password_operation.dart @@ -31,8 +31,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class ChangePasswordOperation extends _i1.HttpOperation { +class ChangePasswordOperation + extends + _i1.HttpOperation< + ChangePasswordRequest, + ChangePasswordRequest, + ChangePasswordResponse, + ChangePasswordResponse + > { /// Changes the password for a specified user in a user pool. /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -45,20 +51,27 @@ class ChangePasswordOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ChangePasswordRequest, + ChangePasswordRequest, + ChangePasswordResponse, + ChangePasswordResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -78,7 +91,7 @@ class ChangePasswordOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -110,136 +123,136 @@ class ChangePasswordOperation extends _i1.HttpOperation - ChangePasswordResponse.fromResponse( - payload, - response, - ); + ) => ChangePasswordResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidPasswordException', - ), - _i1.ErrorKind.client, - InvalidPasswordException, - statusCode: 400, - builder: InvalidPasswordException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordHistoryPolicyViolationException', - ), - _i1.ErrorKind.client, - PasswordHistoryPolicyViolationException, - statusCode: 400, - builder: PasswordHistoryPolicyViolationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidPasswordException', + ), + _i1.ErrorKind.client, + InvalidPasswordException, + statusCode: 400, + builder: InvalidPasswordException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordHistoryPolicyViolationException, + PasswordHistoryPolicyViolationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordHistoryPolicyViolationException', + ), + _i1.ErrorKind.client, + PasswordHistoryPolicyViolationException, + statusCode: 400, + builder: PasswordHistoryPolicyViolationException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ChangePassword'; @@ -260,11 +273,7 @@ class ChangePasswordOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_device_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_device_operation.dart index 5e6c9a0969..e1e864e56d 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_device_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_device_operation.dart @@ -32,8 +32,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class ConfirmDeviceOperation extends _i1.HttpOperation { +class ConfirmDeviceOperation + extends + _i1.HttpOperation< + ConfirmDeviceRequest, + ConfirmDeviceRequest, + ConfirmDeviceResponse, + ConfirmDeviceResponse + > { /// Confirms tracking of the device. This API call is the call that begins device tracking. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -46,20 +52,27 @@ class ConfirmDeviceOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ConfirmDeviceRequest, + ConfirmDeviceRequest, + ConfirmDeviceResponse, + ConfirmDeviceResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -79,7 +92,7 @@ class ConfirmDeviceOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -111,147 +124,149 @@ class ConfirmDeviceOperation extends _i1.HttpOperation - ConfirmDeviceResponse.fromResponse( - payload, - response, - ); + ) => ConfirmDeviceResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidPasswordException', - ), - _i1.ErrorKind.client, - InvalidPasswordException, - statusCode: 400, - builder: InvalidPasswordException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UsernameExistsException', - ), - _i1.ErrorKind.client, - UsernameExistsException, - statusCode: 400, - builder: UsernameExistsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidPasswordException', + ), + _i1.ErrorKind.client, + InvalidPasswordException, + statusCode: 400, + builder: InvalidPasswordException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UsernameExistsException', + ), + _i1.ErrorKind.client, + UsernameExistsException, + statusCode: 400, + builder: UsernameExistsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ConfirmDevice'; @@ -272,11 +287,7 @@ class ConfirmDeviceOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_forgot_password_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_forgot_password_operation.dart index 7f30b91678..10bd022cd3 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_forgot_password_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_forgot_password_operation.dart @@ -34,11 +34,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Allows a user to enter a confirmation code to reset a forgotten password. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class ConfirmForgotPasswordOperation extends _i1.HttpOperation< - ConfirmForgotPasswordRequest, - ConfirmForgotPasswordRequest, - ConfirmForgotPasswordResponse, - ConfirmForgotPasswordResponse> { +class ConfirmForgotPasswordOperation + extends + _i1.HttpOperation< + ConfirmForgotPasswordRequest, + ConfirmForgotPasswordRequest, + ConfirmForgotPasswordResponse, + ConfirmForgotPasswordResponse + > { /// Allows a user to enter a confirmation code to reset a forgotten password. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). @@ -49,23 +52,27 @@ class ConfirmForgotPasswordOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ConfirmForgotPasswordRequest, - ConfirmForgotPasswordRequest, - ConfirmForgotPasswordResponse, - ConfirmForgotPasswordResponse>> protocols = [ + _i1.HttpProtocol< + ConfirmForgotPasswordRequest, + ConfirmForgotPasswordRequest, + ConfirmForgotPasswordResponse, + ConfirmForgotPasswordResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -85,7 +92,7 @@ class ConfirmForgotPasswordOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -117,188 +124,192 @@ class ConfirmForgotPasswordOperation extends _i1.HttpOperation< ConfirmForgotPasswordResponse buildOutput( ConfirmForgotPasswordResponse payload, _i4.AWSBaseHttpResponse response, - ) => - ConfirmForgotPasswordResponse.fromResponse( - payload, - response, - ); + ) => ConfirmForgotPasswordResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeMismatchException', - ), - _i1.ErrorKind.client, - CodeMismatchException, - statusCode: 400, - builder: CodeMismatchException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ExpiredCodeException', - ), - _i1.ErrorKind.client, - ExpiredCodeException, - statusCode: 400, - builder: ExpiredCodeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidPasswordException', - ), - _i1.ErrorKind.client, - InvalidPasswordException, - statusCode: 400, - builder: InvalidPasswordException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordHistoryPolicyViolationException', - ), - _i1.ErrorKind.client, - PasswordHistoryPolicyViolationException, - statusCode: 400, - builder: PasswordHistoryPolicyViolationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyFailedAttemptsException', - ), - _i1.ErrorKind.client, - TooManyFailedAttemptsException, - statusCode: 400, - builder: TooManyFailedAttemptsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeMismatchException', + ), + _i1.ErrorKind.client, + CodeMismatchException, + statusCode: 400, + builder: CodeMismatchException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ExpiredCodeException', + ), + _i1.ErrorKind.client, + ExpiredCodeException, + statusCode: 400, + builder: ExpiredCodeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidPasswordException', + ), + _i1.ErrorKind.client, + InvalidPasswordException, + statusCode: 400, + builder: InvalidPasswordException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordHistoryPolicyViolationException, + PasswordHistoryPolicyViolationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordHistoryPolicyViolationException', + ), + _i1.ErrorKind.client, + PasswordHistoryPolicyViolationException, + statusCode: 400, + builder: PasswordHistoryPolicyViolationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError< + TooManyFailedAttemptsException, + TooManyFailedAttemptsException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyFailedAttemptsException', + ), + _i1.ErrorKind.client, + TooManyFailedAttemptsException, + statusCode: 400, + builder: TooManyFailedAttemptsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ConfirmForgotPassword'; @@ -319,11 +330,7 @@ class ConfirmForgotPasswordOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_sign_up_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_sign_up_operation.dart index dd03525a4f..474d364d33 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_sign_up_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/confirm_sign_up_operation.dart @@ -34,8 +34,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users, users created with the [AdminCreateUser](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html) API operation, confirm their accounts when they respond to their invitation email message and choose a password. They do not receive a confirmation code. Instead, they receive a temporary password. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class ConfirmSignUpOperation extends _i1.HttpOperation { +class ConfirmSignUpOperation + extends + _i1.HttpOperation< + ConfirmSignUpRequest, + ConfirmSignUpRequest, + ConfirmSignUpResponse, + ConfirmSignUpResponse + > { /// This public API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool via the [SignUp](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SignUp.html) API operation. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message. /// /// Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users, users created with the [AdminCreateUser](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html) API operation, confirm their accounts when they respond to their invitation email message and choose a password. They do not receive a confirmation code. Instead, they receive a temporary password. @@ -48,20 +54,27 @@ class ConfirmSignUpOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ConfirmSignUpRequest, + ConfirmSignUpRequest, + ConfirmSignUpResponse, + ConfirmSignUpResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -81,7 +94,7 @@ class ConfirmSignUpOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -113,167 +126,169 @@ class ConfirmSignUpOperation extends _i1.HttpOperation - ConfirmSignUpResponse.fromResponse( - payload, - response, - ); + ) => ConfirmSignUpResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'AliasExistsException', - ), - _i1.ErrorKind.client, - AliasExistsException, - statusCode: 400, - builder: AliasExistsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeMismatchException', - ), - _i1.ErrorKind.client, - CodeMismatchException, - statusCode: 400, - builder: CodeMismatchException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ExpiredCodeException', - ), - _i1.ErrorKind.client, - ExpiredCodeException, - statusCode: 400, - builder: ExpiredCodeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyFailedAttemptsException', - ), - _i1.ErrorKind.client, - TooManyFailedAttemptsException, - statusCode: 400, - builder: TooManyFailedAttemptsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'AliasExistsException', + ), + _i1.ErrorKind.client, + AliasExistsException, + statusCode: 400, + builder: AliasExistsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeMismatchException', + ), + _i1.ErrorKind.client, + CodeMismatchException, + statusCode: 400, + builder: CodeMismatchException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ExpiredCodeException', + ), + _i1.ErrorKind.client, + ExpiredCodeException, + statusCode: 400, + builder: ExpiredCodeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError< + TooManyFailedAttemptsException, + TooManyFailedAttemptsException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyFailedAttemptsException', + ), + _i1.ErrorKind.client, + TooManyFailedAttemptsException, + statusCode: 400, + builder: TooManyFailedAttemptsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ConfirmSignUp'; @@ -294,11 +309,7 @@ class ConfirmSignUpOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/delete_user_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/delete_user_operation.dart index 0da8d57d87..726e4893c5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/delete_user_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/delete_user_operation.dart @@ -27,8 +27,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class DeleteUserOperation extends _i1 - .HttpOperation { +class DeleteUserOperation + extends + _i1.HttpOperation< + DeleteUserRequest, + DeleteUserRequest, + _i1.Unit, + _i1.Unit + > { /// Allows a user to delete their own user profile. /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -41,20 +47,22 @@ class DeleteUserOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -74,7 +82,7 @@ class DeleteUserOperation extends _i1 _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -94,113 +102,112 @@ class DeleteUserOperation extends _i1 @override _i1.HttpRequest buildRequest(DeleteUserRequest input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'DeleteUser'; @@ -221,11 +228,7 @@ class DeleteUserOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forget_device_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forget_device_operation.dart index 6f1357c5e7..d20b419448 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forget_device_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forget_device_operation.dart @@ -28,8 +28,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class ForgetDeviceOperation extends _i1.HttpOperation { +class ForgetDeviceOperation + extends + _i1.HttpOperation< + ForgetDeviceRequest, + ForgetDeviceRequest, + _i1.Unit, + _i1.Unit + > { /// Forgets the specified device. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -42,20 +48,27 @@ class ForgetDeviceOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ForgetDeviceRequest, + ForgetDeviceRequest, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -75,7 +88,7 @@ class ForgetDeviceOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -104,116 +117,117 @@ class ForgetDeviceOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ForgetDevice'; @@ -234,11 +248,7 @@ class ForgetDeviceOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forgot_password_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forgot_password_operation.dart index 1e5901ab17..ca6027bc0f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forgot_password_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/forgot_password_operation.dart @@ -40,8 +40,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with [Amazon Pinpoint](https://console.aws.amazon.com/pinpoint/home/). Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. -class ForgotPasswordOperation extends _i1.HttpOperation { +class ForgotPasswordOperation + extends + _i1.HttpOperation< + ForgotPasswordRequest, + ForgotPasswordRequest, + ForgotPasswordResponse, + ForgotPasswordResponse + > { /// Calling this API causes a message to be sent to the end user with a confirmation code that is required to change the user's password. For the `Username` parameter, you can use the username or user alias. The method used to send the confirmation code is sent according to the specified AccountRecoverySetting. For more information, see [Recovering User Accounts](https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-recover-a-user-account.html) in the _Amazon Cognito Developer Guide_. To use the confirmation code for resetting the password, call [ConfirmForgotPassword](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmForgotPassword.html). /// /// If neither a verified phone number nor a verified email exists, this API returns `InvalidParameterException`. If your app client has a client secret and you don't provide a `SECRET_HASH` parameter, this API returns `NotAuthorizedException`. @@ -60,20 +66,27 @@ class ForgotPasswordOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ForgotPasswordRequest, + ForgotPasswordRequest, + ForgotPasswordResponse, + ForgotPasswordResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -93,7 +106,7 @@ class ForgotPasswordOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -125,170 +138,175 @@ class ForgotPasswordOperation extends _i1.HttpOperation - ForgotPasswordResponse.fromResponse( - payload, - response, - ); + ) => ForgotPasswordResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeDeliveryFailureException', - ), - _i1.ErrorKind.client, - CodeDeliveryFailureException, - statusCode: 400, - builder: CodeDeliveryFailureException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidEmailRoleAccessPolicyException, - statusCode: 400, - builder: InvalidEmailRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleAccessPolicyException, - statusCode: 400, - builder: InvalidSmsRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleTrustRelationshipException, - statusCode: 400, - builder: InvalidSmsRoleTrustRelationshipException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeDeliveryFailureException', + ), + _i1.ErrorKind.client, + CodeDeliveryFailureException, + statusCode: 400, + builder: CodeDeliveryFailureException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidEmailRoleAccessPolicyException, + statusCode: 400, + builder: InvalidEmailRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleAccessPolicyException, + statusCode: 400, + builder: InvalidSmsRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleTrustRelationshipException, + statusCode: 400, + builder: InvalidSmsRoleTrustRelationshipException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ForgotPassword'; @@ -309,11 +327,7 @@ class ForgotPasswordOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_device_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_device_operation.dart index 8298c09218..2927b1752e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_device_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_device_operation.dart @@ -29,8 +29,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class GetDeviceOperation extends _i1.HttpOperation { +class GetDeviceOperation + extends + _i1.HttpOperation< + GetDeviceRequest, + GetDeviceRequest, + GetDeviceResponse, + GetDeviceResponse + > { /// Gets the device. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -43,20 +49,27 @@ class GetDeviceOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GetDeviceRequest, + GetDeviceRequest, + GetDeviceResponse, + GetDeviceResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -76,7 +89,7 @@ class GetDeviceOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -96,9 +109,9 @@ class GetDeviceOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GetDeviceResponse? output]) => 200; @@ -107,116 +120,116 @@ class GetDeviceOperation extends _i1.HttpOperation - GetDeviceResponse.fromResponse( - payload, - response, - ); + ) => GetDeviceResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetDevice'; @@ -237,11 +250,7 @@ class GetDeviceOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_attribute_verification_code_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_attribute_verification_code_operation.dart index e12b3de8d4..74ef859f2f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_attribute_verification_code_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_attribute_verification_code_operation.dart @@ -40,11 +40,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with [Amazon Pinpoint](https://console.aws.amazon.com/pinpoint/home/). Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. -class GetUserAttributeVerificationCodeOperation extends _i1.HttpOperation< - GetUserAttributeVerificationCodeRequest, - GetUserAttributeVerificationCodeRequest, - GetUserAttributeVerificationCodeResponse, - GetUserAttributeVerificationCodeResponse> { +class GetUserAttributeVerificationCodeOperation + extends + _i1.HttpOperation< + GetUserAttributeVerificationCodeRequest, + GetUserAttributeVerificationCodeRequest, + GetUserAttributeVerificationCodeResponse, + GetUserAttributeVerificationCodeResponse + > { /// Generates a user attribute verification code for the specified attribute name. Sends a message to a user with a code that they must return in a VerifyUserAttribute request. /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -61,23 +64,27 @@ class GetUserAttributeVerificationCodeOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - GetUserAttributeVerificationCodeRequest, - GetUserAttributeVerificationCodeRequest, - GetUserAttributeVerificationCodeResponse, - GetUserAttributeVerificationCodeResponse>> protocols = [ + _i1.HttpProtocol< + GetUserAttributeVerificationCodeRequest, + GetUserAttributeVerificationCodeRequest, + GetUserAttributeVerificationCodeResponse, + GetUserAttributeVerificationCodeResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -97,7 +104,7 @@ class GetUserAttributeVerificationCodeOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -129,191 +136,198 @@ class GetUserAttributeVerificationCodeOperation extends _i1.HttpOperation< GetUserAttributeVerificationCodeResponse buildOutput( GetUserAttributeVerificationCodeResponse payload, _i4.AWSBaseHttpResponse response, - ) => - GetUserAttributeVerificationCodeResponse.fromResponse( - payload, - response, - ); + ) => GetUserAttributeVerificationCodeResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeDeliveryFailureException', - ), - _i1.ErrorKind.client, - CodeDeliveryFailureException, - statusCode: 400, - builder: CodeDeliveryFailureException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidEmailRoleAccessPolicyException, - statusCode: 400, - builder: InvalidEmailRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleAccessPolicyException, - statusCode: 400, - builder: InvalidSmsRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleTrustRelationshipException, - statusCode: 400, - builder: InvalidSmsRoleTrustRelationshipException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeDeliveryFailureException', + ), + _i1.ErrorKind.client, + CodeDeliveryFailureException, + statusCode: 400, + builder: CodeDeliveryFailureException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidEmailRoleAccessPolicyException, + statusCode: 400, + builder: InvalidEmailRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleAccessPolicyException, + statusCode: 400, + builder: InvalidSmsRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleTrustRelationshipException, + statusCode: 400, + builder: InvalidSmsRoleTrustRelationshipException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetUserAttributeVerificationCode'; @@ -334,11 +348,7 @@ class GetUserAttributeVerificationCodeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_operation.dart index dcfae90beb..52cadf6590 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/get_user_operation.dart @@ -28,8 +28,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class GetUserOperation extends _i1.HttpOperation { +class GetUserOperation + extends + _i1.HttpOperation< + GetUserRequest, + GetUserRequest, + GetUserResponse, + GetUserResponse + > { /// Gets the user attributes and metadata for a user. /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -42,20 +48,27 @@ class GetUserOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GetUserRequest, + GetUserRequest, + GetUserResponse, + GetUserResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -75,7 +88,7 @@ class GetUserOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -95,9 +108,9 @@ class GetUserOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GetUserResponse? output]) => 200; @@ -106,105 +119,103 @@ class GetUserOperation extends _i1.HttpOperation - GetUserResponse.fromResponse( - payload, - response, - ); + ) => GetUserResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetUser'; @@ -225,11 +236,7 @@ class GetUserOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/global_sign_out_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/global_sign_out_operation.dart index 0429ddd777..c97e3697a5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/global_sign_out_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/global_sign_out_operation.dart @@ -38,8 +38,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class GlobalSignOutOperation extends _i1.HttpOperation { +class GlobalSignOutOperation + extends + _i1.HttpOperation< + GlobalSignOutRequest, + GlobalSignOutRequest, + GlobalSignOutResponse, + GlobalSignOutResponse + > { /// Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation when your user signs out of your app. This results in the following behavior. /// /// * Amazon Cognito no longer accepts _token-authorized_ user operations that you authorize with a signed-out user's access tokens. For more information, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). @@ -63,20 +69,27 @@ class GlobalSignOutOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GlobalSignOutRequest, + GlobalSignOutRequest, + GlobalSignOutResponse, + GlobalSignOutResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -96,7 +109,7 @@ class GlobalSignOutOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -128,95 +141,93 @@ class GlobalSignOutOperation extends _i1.HttpOperation - GlobalSignOutResponse.fromResponse( - payload, - response, - ); + ) => GlobalSignOutResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GlobalSignOut'; @@ -237,11 +248,7 @@ class GlobalSignOutOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/initiate_auth_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/initiate_auth_operation.dart index ad1f04985c..eef21a2ac4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/initiate_auth_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/initiate_auth_operation.dart @@ -37,8 +37,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with [Amazon Pinpoint](https://console.aws.amazon.com/pinpoint/home/). Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. -class InitiateAuthOperation extends _i1.HttpOperation { +class InitiateAuthOperation + extends + _i1.HttpOperation< + InitiateAuthRequest, + InitiateAuthRequest, + InitiateAuthResponse, + InitiateAuthResponse + > { /// Initiates sign-in for a user in the Amazon Cognito user directory. You can't sign in a user with a federated IdP with `InitiateAuth`. For more information, see [Adding user pool sign-in through a third party](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html). /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). @@ -53,20 +59,27 @@ class InitiateAuthOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + InitiateAuthRequest, + InitiateAuthRequest, + InitiateAuthResponse, + InitiateAuthResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -86,7 +99,7 @@ class InitiateAuthOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -118,181 +131,191 @@ class InitiateAuthOperation extends _i1.HttpOperation - InitiateAuthResponse.fromResponse( - payload, - response, - ); + ) => InitiateAuthResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidEmailRoleAccessPolicyException, - statusCode: 400, - builder: InvalidEmailRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleAccessPolicyException, - statusCode: 400, - builder: InvalidSmsRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleTrustRelationshipException, - statusCode: 400, - builder: InvalidSmsRoleTrustRelationshipException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidEmailRoleAccessPolicyException, + statusCode: 400, + builder: InvalidEmailRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleAccessPolicyException, + statusCode: 400, + builder: InvalidSmsRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleTrustRelationshipException, + statusCode: 400, + builder: InvalidSmsRoleTrustRelationshipException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'InitiateAuth'; @@ -313,11 +336,7 @@ class InitiateAuthOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/list_devices_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/list_devices_operation.dart index e9087a8151..aea82b4868 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/list_devices_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/list_devices_operation.dart @@ -29,8 +29,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class ListDevicesOperation extends _i1.HttpOperation { +class ListDevicesOperation + extends + _i1.HttpOperation< + ListDevicesRequest, + ListDevicesRequest, + ListDevicesResponse, + ListDevicesResponse + > { /// Lists the sign-in devices that Amazon Cognito has registered to the current user. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -43,20 +49,27 @@ class ListDevicesOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ListDevicesRequest, + ListDevicesRequest, + ListDevicesResponse, + ListDevicesResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -76,7 +89,7 @@ class ListDevicesOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -108,116 +121,116 @@ class ListDevicesOperation extends _i1.HttpOperation - ListDevicesResponse.fromResponse( - payload, - response, - ); + ) => ListDevicesResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ListDevices'; @@ -238,11 +251,7 @@ class ListDevicesOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/resend_confirmation_code_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/resend_confirmation_code_operation.dart index 16445c857f..e9b4329dd7 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/resend_confirmation_code_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/resend_confirmation_code_operation.dart @@ -36,11 +36,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with [Amazon Pinpoint](https://console.aws.amazon.com/pinpoint/home/). Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. -class ResendConfirmationCodeOperation extends _i1.HttpOperation< - ResendConfirmationCodeRequest, - ResendConfirmationCodeRequest, - ResendConfirmationCodeResponse, - ResendConfirmationCodeResponse> { +class ResendConfirmationCodeOperation + extends + _i1.HttpOperation< + ResendConfirmationCodeRequest, + ResendConfirmationCodeRequest, + ResendConfirmationCodeResponse, + ResendConfirmationCodeResponse + > { /// Resends the confirmation (for confirmation of registration) to a specific user in the user pool. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). @@ -55,23 +58,27 @@ class ResendConfirmationCodeOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ResendConfirmationCodeRequest, - ResendConfirmationCodeRequest, - ResendConfirmationCodeResponse, - ResendConfirmationCodeResponse>> protocols = [ + _i1.HttpProtocol< + ResendConfirmationCodeRequest, + ResendConfirmationCodeRequest, + ResendConfirmationCodeResponse, + ResendConfirmationCodeResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -91,7 +98,7 @@ class ResendConfirmationCodeOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -123,170 +130,175 @@ class ResendConfirmationCodeOperation extends _i1.HttpOperation< ResendConfirmationCodeResponse buildOutput( ResendConfirmationCodeResponse payload, _i4.AWSBaseHttpResponse response, - ) => - ResendConfirmationCodeResponse.fromResponse( - payload, - response, - ); + ) => ResendConfirmationCodeResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeDeliveryFailureException', - ), - _i1.ErrorKind.client, - CodeDeliveryFailureException, - statusCode: 400, - builder: CodeDeliveryFailureException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidEmailRoleAccessPolicyException, - statusCode: 400, - builder: InvalidEmailRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleAccessPolicyException, - statusCode: 400, - builder: InvalidSmsRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleTrustRelationshipException, - statusCode: 400, - builder: InvalidSmsRoleTrustRelationshipException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeDeliveryFailureException', + ), + _i1.ErrorKind.client, + CodeDeliveryFailureException, + statusCode: 400, + builder: CodeDeliveryFailureException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidEmailRoleAccessPolicyException, + statusCode: 400, + builder: InvalidEmailRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleAccessPolicyException, + statusCode: 400, + builder: InvalidSmsRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleTrustRelationshipException, + statusCode: 400, + builder: InvalidSmsRoleTrustRelationshipException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ResendConfirmationCode'; @@ -307,11 +319,7 @@ class ResendConfirmationCodeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/respond_to_auth_challenge_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/respond_to_auth_challenge_operation.dart index 78d463991e..49a7ac2277 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/respond_to_auth_challenge_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/respond_to_auth_challenge_operation.dart @@ -46,11 +46,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with [Amazon Pinpoint](https://console.aws.amazon.com/pinpoint/home/). Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. -class RespondToAuthChallengeOperation extends _i1.HttpOperation< - RespondToAuthChallengeRequest, - RespondToAuthChallengeRequest, - RespondToAuthChallengeResponse, - RespondToAuthChallengeResponse> { +class RespondToAuthChallengeOperation + extends + _i1.HttpOperation< + RespondToAuthChallengeRequest, + RespondToAuthChallengeRequest, + RespondToAuthChallengeResponse, + RespondToAuthChallengeResponse + > { /// Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. A `RespondToAuthChallenge` API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge. /// /// For more information about custom authentication challenges, see [Custom authentication challenge Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html). @@ -67,23 +70,27 @@ class RespondToAuthChallengeOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - RespondToAuthChallengeRequest, - RespondToAuthChallengeRequest, - RespondToAuthChallengeResponse, - RespondToAuthChallengeResponse>> protocols = [ + _i1.HttpProtocol< + RespondToAuthChallengeRequest, + RespondToAuthChallengeRequest, + RespondToAuthChallengeResponse, + RespondToAuthChallengeResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -103,7 +110,7 @@ class RespondToAuthChallengeOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -135,253 +142,267 @@ class RespondToAuthChallengeOperation extends _i1.HttpOperation< RespondToAuthChallengeResponse buildOutput( RespondToAuthChallengeResponse payload, _i4.AWSBaseHttpResponse response, - ) => - RespondToAuthChallengeResponse.fromResponse( - payload, - response, - ); + ) => RespondToAuthChallengeResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'AliasExistsException', - ), - _i1.ErrorKind.client, - AliasExistsException, - statusCode: 400, - builder: AliasExistsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeMismatchException', - ), - _i1.ErrorKind.client, - CodeMismatchException, - statusCode: 400, - builder: CodeMismatchException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ExpiredCodeException', - ), - _i1.ErrorKind.client, - ExpiredCodeException, - statusCode: 400, - builder: ExpiredCodeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidEmailRoleAccessPolicyException, - statusCode: 400, - builder: InvalidEmailRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidPasswordException', - ), - _i1.ErrorKind.client, - InvalidPasswordException, - statusCode: 400, - builder: InvalidPasswordException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleAccessPolicyException, - statusCode: 400, - builder: InvalidSmsRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleTrustRelationshipException, - statusCode: 400, - builder: InvalidSmsRoleTrustRelationshipException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'MFAMethodNotFoundException', - ), - _i1.ErrorKind.client, - MfaMethodNotFoundException, - statusCode: 400, - builder: MfaMethodNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordHistoryPolicyViolationException', - ), - _i1.ErrorKind.client, - PasswordHistoryPolicyViolationException, - statusCode: 400, - builder: PasswordHistoryPolicyViolationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'SoftwareTokenMFANotFoundException', - ), - _i1.ErrorKind.client, - SoftwareTokenMfaNotFoundException, - statusCode: 400, - builder: SoftwareTokenMfaNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'AliasExistsException', + ), + _i1.ErrorKind.client, + AliasExistsException, + statusCode: 400, + builder: AliasExistsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeMismatchException', + ), + _i1.ErrorKind.client, + CodeMismatchException, + statusCode: 400, + builder: CodeMismatchException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ExpiredCodeException', + ), + _i1.ErrorKind.client, + ExpiredCodeException, + statusCode: 400, + builder: ExpiredCodeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidEmailRoleAccessPolicyException, + statusCode: 400, + builder: InvalidEmailRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidPasswordException', + ), + _i1.ErrorKind.client, + InvalidPasswordException, + statusCode: 400, + builder: InvalidPasswordException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleAccessPolicyException, + statusCode: 400, + builder: InvalidSmsRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleTrustRelationshipException, + statusCode: 400, + builder: InvalidSmsRoleTrustRelationshipException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'MFAMethodNotFoundException', + ), + _i1.ErrorKind.client, + MfaMethodNotFoundException, + statusCode: 400, + builder: MfaMethodNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordHistoryPolicyViolationException, + PasswordHistoryPolicyViolationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordHistoryPolicyViolationException', + ), + _i1.ErrorKind.client, + PasswordHistoryPolicyViolationException, + statusCode: 400, + builder: PasswordHistoryPolicyViolationException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError< + SoftwareTokenMfaNotFoundException, + SoftwareTokenMfaNotFoundException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'SoftwareTokenMFANotFoundException', + ), + _i1.ErrorKind.client, + SoftwareTokenMfaNotFoundException, + statusCode: 400, + builder: SoftwareTokenMfaNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'RespondToAuthChallenge'; @@ -402,11 +423,7 @@ class RespondToAuthChallengeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/revoke_token_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/revoke_token_operation.dart index e7878fd5f7..8f10ae7469 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/revoke_token_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/revoke_token_operation.dart @@ -24,8 +24,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class RevokeTokenOperation extends _i1.HttpOperation { +class RevokeTokenOperation + extends + _i1.HttpOperation< + RevokeTokenRequest, + RevokeTokenRequest, + RevokeTokenResponse, + RevokeTokenResponse + > { /// Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). @@ -36,20 +42,27 @@ class RevokeTokenOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + RevokeTokenRequest, + RevokeTokenRequest, + RevokeTokenResponse, + RevokeTokenResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -69,7 +82,7 @@ class RevokeTokenOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -101,86 +114,86 @@ class RevokeTokenOperation extends _i1.HttpOperation - RevokeTokenResponse.fromResponse( - payload, - response, - ); + ) => RevokeTokenResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnauthorizedException', - ), - _i1.ErrorKind.client, - UnauthorizedException, - statusCode: 401, - builder: UnauthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnsupportedOperationException', - ), - _i1.ErrorKind.client, - UnsupportedOperationException, - statusCode: 400, - builder: UnsupportedOperationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnsupportedTokenTypeException', - ), - _i1.ErrorKind.client, - UnsupportedTokenTypeException, - statusCode: 400, - builder: UnsupportedTokenTypeException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnauthorizedException', + ), + _i1.ErrorKind.client, + UnauthorizedException, + statusCode: 401, + builder: UnauthorizedException.fromResponse, + ), + _i1.SmithyError< + UnsupportedOperationException, + UnsupportedOperationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnsupportedOperationException', + ), + _i1.ErrorKind.client, + UnsupportedOperationException, + statusCode: 400, + builder: UnsupportedOperationException.fromResponse, + ), + _i1.SmithyError< + UnsupportedTokenTypeException, + UnsupportedTokenTypeException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnsupportedTokenTypeException', + ), + _i1.ErrorKind.client, + UnsupportedTokenTypeException, + statusCode: 400, + builder: UnsupportedTokenTypeException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'RevokeToken'; @@ -201,11 +214,7 @@ class RevokeTokenOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/set_user_mfa_preference_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/set_user_mfa_preference_operation.dart index 259087ac94..9c2a8cc8ab 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/set_user_mfa_preference_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/set_user_mfa_preference_operation.dart @@ -27,11 +27,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class SetUserMfaPreferenceOperation extends _i1.HttpOperation< - SetUserMfaPreferenceRequest, - SetUserMfaPreferenceRequest, - SetUserMfaPreferenceResponse, - SetUserMfaPreferenceResponse> { +class SetUserMfaPreferenceOperation + extends + _i1.HttpOperation< + SetUserMfaPreferenceRequest, + SetUserMfaPreferenceRequest, + SetUserMfaPreferenceResponse, + SetUserMfaPreferenceResponse + > { /// Set the user's multi-factor authentication (MFA) method preference, including which MFA factors are activated and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in. If an MFA type is activated for a user, the user will be prompted for MFA during all sign-in attempts unless device tracking is turned on and the device has been trusted. If you want MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool. /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -44,23 +47,27 @@ class SetUserMfaPreferenceOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SetUserMfaPreferenceRequest, - SetUserMfaPreferenceRequest, - SetUserMfaPreferenceResponse, - SetUserMfaPreferenceResponse>> protocols = [ + _i1.HttpProtocol< + SetUserMfaPreferenceRequest, + SetUserMfaPreferenceRequest, + SetUserMfaPreferenceResponse, + SetUserMfaPreferenceResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -80,7 +87,7 @@ class SetUserMfaPreferenceOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -112,95 +119,93 @@ class SetUserMfaPreferenceOperation extends _i1.HttpOperation< SetUserMfaPreferenceResponse buildOutput( SetUserMfaPreferenceResponse payload, _i4.AWSBaseHttpResponse response, - ) => - SetUserMfaPreferenceResponse.fromResponse( - payload, - response, - ); + ) => SetUserMfaPreferenceResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'SetUserMFAPreference'; @@ -221,11 +226,7 @@ class SetUserMfaPreferenceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/sign_up_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/sign_up_operation.dart index da2944c565..9b43678667 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/sign_up_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/sign_up_operation.dart @@ -37,8 +37,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with [Amazon Pinpoint](https://console.aws.amazon.com/pinpoint/home/). Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. -class SignUpOperation extends _i1.HttpOperation { +class SignUpOperation + extends + _i1.HttpOperation< + SignUpRequest, + SignUpRequest, + SignUpResponse, + SignUpResponse + > { /// Registers the user in the specified user pool and creates a user name, password, and user attributes. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). @@ -53,20 +59,27 @@ class SignUpOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + SignUpRequest, + SignUpRequest, + SignUpResponse, + SignUpResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -86,7 +99,7 @@ class SignUpOperation extends _i1.HttpOperation[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -106,9 +119,9 @@ class SignUpOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([SignUpResponse? output]) => 200; @@ -117,180 +130,185 @@ class SignUpOperation extends _i1.HttpOperation - SignUpResponse.fromResponse( - payload, - response, - ); + ) => SignUpResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeDeliveryFailureException', - ), - _i1.ErrorKind.client, - CodeDeliveryFailureException, - statusCode: 400, - builder: CodeDeliveryFailureException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidEmailRoleAccessPolicyException, - statusCode: 400, - builder: InvalidEmailRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidPasswordException', - ), - _i1.ErrorKind.client, - InvalidPasswordException, - statusCode: 400, - builder: InvalidPasswordException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleAccessPolicyException, - statusCode: 400, - builder: InvalidSmsRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleTrustRelationshipException, - statusCode: 400, - builder: InvalidSmsRoleTrustRelationshipException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UsernameExistsException', - ), - _i1.ErrorKind.client, - UsernameExistsException, - statusCode: 400, - builder: UsernameExistsException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeDeliveryFailureException', + ), + _i1.ErrorKind.client, + CodeDeliveryFailureException, + statusCode: 400, + builder: CodeDeliveryFailureException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidEmailRoleAccessPolicyException, + statusCode: 400, + builder: InvalidEmailRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidPasswordException', + ), + _i1.ErrorKind.client, + InvalidPasswordException, + statusCode: 400, + builder: InvalidPasswordException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleAccessPolicyException, + statusCode: 400, + builder: InvalidSmsRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleTrustRelationshipException, + statusCode: 400, + builder: InvalidSmsRoleTrustRelationshipException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UsernameExistsException', + ), + _i1.ErrorKind.client, + UsernameExistsException, + statusCode: 400, + builder: UsernameExistsException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'SignUp'; @@ -311,11 +329,7 @@ class SignUpOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_device_status_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_device_status_operation.dart index abc656696c..95c9171629 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_device_status_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_device_status_operation.dart @@ -29,11 +29,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class UpdateDeviceStatusOperation extends _i1.HttpOperation< - UpdateDeviceStatusRequest, - UpdateDeviceStatusRequest, - UpdateDeviceStatusResponse, - UpdateDeviceStatusResponse> { +class UpdateDeviceStatusOperation + extends + _i1.HttpOperation< + UpdateDeviceStatusRequest, + UpdateDeviceStatusRequest, + UpdateDeviceStatusResponse, + UpdateDeviceStatusResponse + > { /// Updates the device status. For more information about device authentication, see [Working with user devices in your user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html). /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -46,20 +49,27 @@ class UpdateDeviceStatusOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + UpdateDeviceStatusRequest, + UpdateDeviceStatusRequest, + UpdateDeviceStatusResponse, + UpdateDeviceStatusResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -79,7 +89,7 @@ class UpdateDeviceStatusOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -111,116 +121,116 @@ class UpdateDeviceStatusOperation extends _i1.HttpOperation< UpdateDeviceStatusResponse buildOutput( UpdateDeviceStatusResponse payload, _i4.AWSBaseHttpResponse response, - ) => - UpdateDeviceStatusResponse.fromResponse( - payload, - response, - ); + ) => UpdateDeviceStatusResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UpdateDeviceStatus'; @@ -241,11 +251,7 @@ class UpdateDeviceStatusOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_user_attributes_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_user_attributes_operation.dart index d36d9f95cf..1c0a53d4c5 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_user_attributes_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/update_user_attributes_operation.dart @@ -42,11 +42,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with [Amazon Pinpoint](https://console.aws.amazon.com/pinpoint/home/). Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in. /// /// If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Servicesservice, Amazon Simple Notification Service might place your account in the SMS sandbox. In _[sandbox mode](https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html)_ , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see [SMS message settings for Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html) in the _Amazon Cognito Developer Guide_. -class UpdateUserAttributesOperation extends _i1.HttpOperation< - UpdateUserAttributesRequest, - UpdateUserAttributesRequest, - UpdateUserAttributesResponse, - UpdateUserAttributesResponse> { +class UpdateUserAttributesOperation + extends + _i1.HttpOperation< + UpdateUserAttributesRequest, + UpdateUserAttributesRequest, + UpdateUserAttributesResponse, + UpdateUserAttributesResponse + > { /// With this operation, your users can update one or more of their attributes with their own credentials. You authorize this API request with the user's access token. To delete an attribute from your user, submit the attribute in your API request with a blank value. Custom attribute values in this request must include the `custom:` prefix. /// /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. @@ -63,23 +66,27 @@ class UpdateUserAttributesOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - UpdateUserAttributesRequest, - UpdateUserAttributesRequest, - UpdateUserAttributesResponse, - UpdateUserAttributesResponse>> protocols = [ + _i1.HttpProtocol< + UpdateUserAttributesRequest, + UpdateUserAttributesRequest, + UpdateUserAttributesResponse, + UpdateUserAttributesResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -99,7 +106,7 @@ class UpdateUserAttributesOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -131,211 +138,218 @@ class UpdateUserAttributesOperation extends _i1.HttpOperation< UpdateUserAttributesResponse buildOutput( UpdateUserAttributesResponse payload, _i4.AWSBaseHttpResponse response, - ) => - UpdateUserAttributesResponse.fromResponse( - payload, - response, - ); + ) => UpdateUserAttributesResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'AliasExistsException', - ), - _i1.ErrorKind.client, - AliasExistsException, - statusCode: 400, - builder: AliasExistsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeDeliveryFailureException', - ), - _i1.ErrorKind.client, - CodeDeliveryFailureException, - statusCode: 400, - builder: CodeDeliveryFailureException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeMismatchException', - ), - _i1.ErrorKind.client, - CodeMismatchException, - statusCode: 400, - builder: CodeMismatchException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ExpiredCodeException', - ), - _i1.ErrorKind.client, - ExpiredCodeException, - statusCode: 400, - builder: ExpiredCodeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidEmailRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidEmailRoleAccessPolicyException, - statusCode: 400, - builder: InvalidEmailRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidLambdaResponseException', - ), - _i1.ErrorKind.client, - InvalidLambdaResponseException, - statusCode: 400, - builder: InvalidLambdaResponseException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleAccessPolicyException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleAccessPolicyException, - statusCode: 400, - builder: InvalidSmsRoleAccessPolicyException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidSmsRoleTrustRelationshipException', - ), - _i1.ErrorKind.client, - InvalidSmsRoleTrustRelationshipException, - statusCode: 400, - builder: InvalidSmsRoleTrustRelationshipException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UnexpectedLambdaException', - ), - _i1.ErrorKind.client, - UnexpectedLambdaException, - statusCode: 400, - builder: UnexpectedLambdaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserLambdaValidationException', - ), - _i1.ErrorKind.client, - UserLambdaValidationException, - statusCode: 400, - builder: UserLambdaValidationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'AliasExistsException', + ), + _i1.ErrorKind.client, + AliasExistsException, + statusCode: 400, + builder: AliasExistsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeDeliveryFailureException', + ), + _i1.ErrorKind.client, + CodeDeliveryFailureException, + statusCode: 400, + builder: CodeDeliveryFailureException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeMismatchException', + ), + _i1.ErrorKind.client, + CodeMismatchException, + statusCode: 400, + builder: CodeMismatchException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ExpiredCodeException', + ), + _i1.ErrorKind.client, + ExpiredCodeException, + statusCode: 400, + builder: ExpiredCodeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError< + InvalidEmailRoleAccessPolicyException, + InvalidEmailRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidEmailRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidEmailRoleAccessPolicyException, + statusCode: 400, + builder: InvalidEmailRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidLambdaResponseException, + InvalidLambdaResponseException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidLambdaResponseException', + ), + _i1.ErrorKind.client, + InvalidLambdaResponseException, + statusCode: 400, + builder: InvalidLambdaResponseException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleAccessPolicyException, + InvalidSmsRoleAccessPolicyException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleAccessPolicyException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleAccessPolicyException, + statusCode: 400, + builder: InvalidSmsRoleAccessPolicyException.fromResponse, + ), + _i1.SmithyError< + InvalidSmsRoleTrustRelationshipException, + InvalidSmsRoleTrustRelationshipException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidSmsRoleTrustRelationshipException', + ), + _i1.ErrorKind.client, + InvalidSmsRoleTrustRelationshipException, + statusCode: 400, + builder: InvalidSmsRoleTrustRelationshipException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UnexpectedLambdaException', + ), + _i1.ErrorKind.client, + UnexpectedLambdaException, + statusCode: 400, + builder: UnexpectedLambdaException.fromResponse, + ), + _i1.SmithyError< + UserLambdaValidationException, + UserLambdaValidationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserLambdaValidationException', + ), + _i1.ErrorKind.client, + UserLambdaValidationException, + statusCode: 400, + builder: UserLambdaValidationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UpdateUserAttributes'; @@ -356,11 +370,7 @@ class UpdateUserAttributesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_software_token_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_software_token_operation.dart index f92402eed0..5fa11b35d4 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_software_token_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_software_token_operation.dart @@ -30,11 +30,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Use this API to register a user's entered time-based one-time password (TOTP) code and mark the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class VerifySoftwareTokenOperation extends _i1.HttpOperation< - VerifySoftwareTokenRequest, - VerifySoftwareTokenRequest, - VerifySoftwareTokenResponse, - VerifySoftwareTokenResponse> { +class VerifySoftwareTokenOperation + extends + _i1.HttpOperation< + VerifySoftwareTokenRequest, + VerifySoftwareTokenRequest, + VerifySoftwareTokenResponse, + VerifySoftwareTokenResponse + > { /// Use this API to register a user's entered time-based one-time password (TOTP) code and mark the user's software token MFA status as "verified" if successful. The request takes an access token or a session string, but not both. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). @@ -45,23 +48,27 @@ class VerifySoftwareTokenOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - VerifySoftwareTokenRequest, - VerifySoftwareTokenRequest, - VerifySoftwareTokenResponse, - VerifySoftwareTokenResponse>> protocols = [ + _i1.HttpProtocol< + VerifySoftwareTokenRequest, + VerifySoftwareTokenRequest, + VerifySoftwareTokenResponse, + VerifySoftwareTokenResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -81,7 +88,7 @@ class VerifySoftwareTokenOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -113,148 +120,152 @@ class VerifySoftwareTokenOperation extends _i1.HttpOperation< VerifySoftwareTokenResponse buildOutput( VerifySoftwareTokenResponse payload, _i4.AWSBaseHttpResponse response, - ) => - VerifySoftwareTokenResponse.fromResponse( - payload, - response, - ); + ) => VerifySoftwareTokenResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeMismatchException', - ), - _i1.ErrorKind.client, - CodeMismatchException, - statusCode: 400, - builder: CodeMismatchException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'EnableSoftwareTokenMFAException', - ), - _i1.ErrorKind.client, - EnableSoftwareTokenMfaException, - statusCode: 400, - builder: EnableSoftwareTokenMfaException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidUserPoolConfigurationException', - ), - _i1.ErrorKind.client, - InvalidUserPoolConfigurationException, - statusCode: 400, - builder: InvalidUserPoolConfigurationException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'SoftwareTokenMFANotFoundException', - ), - _i1.ErrorKind.client, - SoftwareTokenMfaNotFoundException, - statusCode: 400, - builder: SoftwareTokenMfaNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeMismatchException', + ), + _i1.ErrorKind.client, + CodeMismatchException, + statusCode: 400, + builder: CodeMismatchException.fromResponse, + ), + _i1.SmithyError< + EnableSoftwareTokenMfaException, + EnableSoftwareTokenMfaException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'EnableSoftwareTokenMFAException', + ), + _i1.ErrorKind.client, + EnableSoftwareTokenMfaException, + statusCode: 400, + builder: EnableSoftwareTokenMfaException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError< + InvalidUserPoolConfigurationException, + InvalidUserPoolConfigurationException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidUserPoolConfigurationException', + ), + _i1.ErrorKind.client, + InvalidUserPoolConfigurationException, + statusCode: 400, + builder: InvalidUserPoolConfigurationException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError< + SoftwareTokenMfaNotFoundException, + SoftwareTokenMfaNotFoundException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'SoftwareTokenMFANotFoundException', + ), + _i1.ErrorKind.client, + SoftwareTokenMfaNotFoundException, + statusCode: 400, + builder: SoftwareTokenMfaNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'VerifySoftwareToken'; @@ -275,11 +286,7 @@ class VerifySoftwareTokenOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_user_attribute_operation.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_user_attribute_operation.dart index 2bd21c9a7a..0b86212ea8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_user_attribute_operation.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/sdk/src/cognito_identity_provider/operation/verify_user_attribute_operation.dart @@ -34,11 +34,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Authorize this action with a signed-in user's access token. It must include the scope `aws.cognito.signin.user.admin`. /// /// Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html). -class VerifyUserAttributeOperation extends _i1.HttpOperation< - VerifyUserAttributeRequest, - VerifyUserAttributeRequest, - VerifyUserAttributeResponse, - VerifyUserAttributeResponse> { +class VerifyUserAttributeOperation + extends + _i1.HttpOperation< + VerifyUserAttributeRequest, + VerifyUserAttributeRequest, + VerifyUserAttributeResponse, + VerifyUserAttributeResponse + > { /// Verifies the specified user attributes in the user pool. /// /// If your user pool requires verification before Amazon Cognito updates the attribute value, VerifyUserAttribute updates the affected attribute to its pending value. For more information, see [UserAttributeUpdateSettingsType](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UserAttributeUpdateSettingsType.html). @@ -53,23 +56,27 @@ class VerifyUserAttributeOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - VerifyUserAttributeRequest, - VerifyUserAttributeRequest, - VerifyUserAttributeResponse, - VerifyUserAttributeResponse>> protocols = [ + _i1.HttpProtocol< + VerifyUserAttributeRequest, + VerifyUserAttributeRequest, + VerifyUserAttributeResponse, + VerifyUserAttributeResponse + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -89,7 +96,7 @@ class VerifyUserAttributeOperation extends _i1.HttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -121,145 +128,143 @@ class VerifyUserAttributeOperation extends _i1.HttpOperation< VerifyUserAttributeResponse buildOutput( VerifyUserAttributeResponse payload, _i4.AWSBaseHttpResponse response, - ) => - VerifyUserAttributeResponse.fromResponse( - payload, - response, - ); + ) => VerifyUserAttributeResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'AliasExistsException', - ), - _i1.ErrorKind.client, - AliasExistsException, - statusCode: 400, - builder: AliasExistsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'CodeMismatchException', - ), - _i1.ErrorKind.client, - CodeMismatchException, - statusCode: 400, - builder: CodeMismatchException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ExpiredCodeException', - ), - _i1.ErrorKind.client, - ExpiredCodeException, - statusCode: 400, - builder: ExpiredCodeException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ForbiddenException', - ), - _i1.ErrorKind.client, - ForbiddenException, - statusCode: 403, - builder: ForbiddenException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 400, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'PasswordResetRequiredException', - ), - _i1.ErrorKind.client, - PasswordResetRequiredException, - statusCode: 400, - builder: PasswordResetRequiredException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotConfirmedException', - ), - _i1.ErrorKind.client, - UserNotConfirmedException, - statusCode: 400, - builder: UserNotConfirmedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'AliasExistsException', + ), + _i1.ErrorKind.client, + AliasExistsException, + statusCode: 400, + builder: AliasExistsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'CodeMismatchException', + ), + _i1.ErrorKind.client, + CodeMismatchException, + statusCode: 400, + builder: CodeMismatchException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ExpiredCodeException', + ), + _i1.ErrorKind.client, + ExpiredCodeException, + statusCode: 400, + builder: ExpiredCodeException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ForbiddenException', + ), + _i1.ErrorKind.client, + ForbiddenException, + statusCode: 403, + builder: ForbiddenException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 400, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError< + PasswordResetRequiredException, + PasswordResetRequiredException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'PasswordResetRequiredException', + ), + _i1.ErrorKind.client, + PasswordResetRequiredException, + statusCode: 400, + builder: PasswordResetRequiredException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotConfirmedException', + ), + _i1.ErrorKind.client, + UserNotConfirmedException, + statusCode: 400, + builder: UserNotConfirmedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'VerifyUserAttribute'; @@ -280,11 +285,7 @@ class VerifyUserAttributeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/cognito_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/cognito_state_machine.dart index 02db7f6add..ff4ef48c81 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/cognito_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/cognito_state_machine.dart @@ -15,8 +15,10 @@ import 'package:meta/meta.dart'; /// Default state machine builders for [CognitoAuthStateMachine]. @visibleForTesting -final stateMachineBuilders = >{ +final stateMachineBuilders = < + StateMachineToken, + StateMachineBuilder +>{ ConfigurationStateMachine.type: ConfigurationStateMachine.new, CredentialStoreStateMachine.type: CredentialStoreStateMachine.new, FetchAuthSessionStateMachine.type: FetchAuthSessionStateMachine.new, @@ -46,12 +48,11 @@ final defaultDependencies = { class CognitoAuthStateMachine extends StateMachineManager { /// {@macro amplify_auth_cognito.cognito_auth_state_machine} - CognitoAuthStateMachine({ - DependencyManager? dependencyManager, - }) : super( - stateMachineBuilders, - dependencyManager ?? AmplifyDependencyManager(), - ) { + CognitoAuthStateMachine({DependencyManager? dependencyManager}) + : super( + stateMachineBuilders, + dependencyManager ?? AmplifyDependencyManager(), + ) { defaultDependencies.forEach((token, builder) { addBuilder(builder, token); }); @@ -60,15 +61,16 @@ class CognitoAuthStateMachine @override StateMachineToken mapEventToMachine(AuthEvent event) { return switch (event) { - ConfigurationEvent _ => ConfigurationStateMachine.type, - CredentialStoreEvent _ => CredentialStoreStateMachine.type, - FetchAuthSessionEvent _ => FetchAuthSessionStateMachine.type, - HostedUiEvent _ => HostedUiStateMachine.type, - SignInEvent _ => SignInStateMachine.type, - SignOutEvent _ => SignOutStateMachine.type, - SignUpEvent _ => SignUpStateMachine.type, - TotpSetupEvent _ => TotpSetupStateMachine.type, - } as StateMachineToken; + ConfigurationEvent _ => ConfigurationStateMachine.type, + CredentialStoreEvent _ => CredentialStoreStateMachine.type, + FetchAuthSessionEvent _ => FetchAuthSessionStateMachine.type, + HostedUiEvent _ => HostedUiStateMachine.type, + SignInEvent _ => SignInStateMachine.type, + SignOutEvent _ => SignOutStateMachine.type, + SignUpEvent _ => SignUpStateMachine.type, + TotpSetupEvent _ => TotpSetupStateMachine.type, + } + as StateMachineToken; } /// Loads credentials from the credential store (which may be diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/configuration_event.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/configuration_event.dart index d12d0fe724..0f39a70c75 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/configuration_event.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/configuration_event.dart @@ -25,9 +25,8 @@ sealed class ConfigurationEvent const factory ConfigurationEvent.configure(AmplifyOutputs config) = Configure; /// {@macro amplify_auth_cognito.configuration_event.configure_succeeded} - const factory ConfigurationEvent.configureSucceeded( - AmplifyOutputs config, - ) = ConfigureSucceeded; + const factory ConfigurationEvent.configureSucceeded(AmplifyOutputs config) = + ConfigureSucceeded; @override PreconditionException? checkPrecondition(ConfigurationState currentState) => diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/credential_store_event.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/credential_store_event.dart index d25aa8f75f..268c866335 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/credential_store_event.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/credential_store_event.dart @@ -38,18 +38,15 @@ sealed class CredentialStoreEvent ) = CredentialStoreStoreCredentials; /// {@macro amplify_auth_cognito.clear_credentials} - const factory CredentialStoreEvent.clearCredentials([ - Iterable keys, - ]) = CredentialStoreClearCredentials; + const factory CredentialStoreEvent.clearCredentials([Iterable keys]) = + CredentialStoreClearCredentials; /// {@macro amplify_auth_cognito.credential_store_succeeded} const factory CredentialStoreEvent.succeeded(CredentialStoreData data) = CredentialStoreSucceeded; @override - PreconditionException? checkPrecondition( - CredentialStoreState currentState, - ) => + PreconditionException? checkPrecondition(CredentialStoreState currentState) => null; @override @@ -71,9 +68,7 @@ final class CredentialStoreLoadCredentialStore extends CredentialStoreEvent { List get props => [type]; @override - PreconditionException? checkPrecondition( - CredentialStoreState currentState, - ) { + PreconditionException? checkPrecondition(CredentialStoreState currentState) { if (currentState.type != CredentialStoreStateType.notConfigured && currentState.type != CredentialStoreStateType.failure) { return const AuthPreconditionException( @@ -101,15 +96,10 @@ final class CredentialStoreStoreCredentials extends CredentialStoreEvent { CredentialStoreEventType.storeCredentials; @override - List get props => [ - type, - data, - ]; + List get props => [type, data]; @override - PreconditionException? checkPrecondition( - CredentialStoreState currentState, - ) { + PreconditionException? checkPrecondition(CredentialStoreState currentState) { if (currentState.type == CredentialStoreStateType.notConfigured) { return const AuthPreconditionException( 'Credential store is not configured', @@ -129,9 +119,7 @@ final class CredentialStoreStoreCredentials extends CredentialStoreEvent { /// {@endtemplate} final class CredentialStoreClearCredentials extends CredentialStoreEvent { /// {@macro amplify_auth_cognito.clear_credentials} - const CredentialStoreClearCredentials([ - this.keys = const [], - ]) : super._(); + const CredentialStoreClearCredentials([this.keys = const []]) : super._(); /// When set, only these keys will be cleared from the store. Otherwise, /// all keys are cleared. @@ -145,9 +133,7 @@ final class CredentialStoreClearCredentials extends CredentialStoreEvent { List get props => [type, keys]; @override - PreconditionException? checkPrecondition( - CredentialStoreState currentState, - ) { + PreconditionException? checkPrecondition(CredentialStoreState currentState) { if (currentState.type == CredentialStoreStateType.notConfigured) { return const AuthPreconditionException( 'Credential store is not configured', @@ -176,15 +162,10 @@ final class CredentialStoreSucceeded extends CredentialStoreEvent { CredentialStoreEventType get type => CredentialStoreEventType.succeeded; @override - List get props => [ - type, - data, - ]; + List get props => [type, data]; @override - PreconditionException? checkPrecondition( - CredentialStoreState currentState, - ) { + PreconditionException? checkPrecondition(CredentialStoreState currentState) { if (currentState.type == CredentialStoreStateType.notConfigured) { return const AuthPreconditionException( 'Credential store is not configured', diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/fetch_auth_session_event.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/fetch_auth_session_event.dart index ea9ae034af..8cb62cdcd1 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/fetch_auth_session_event.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/fetch_auth_session_event.dart @@ -40,9 +40,8 @@ sealed class FetchAuthSessionEvent }) = FetchAuthSessionRefresh; /// {@macro amplify_auth_cognito.fetch_auth_session_succeeded} - const factory FetchAuthSessionEvent.succeeded( - CognitoAuthSession session, - ) = FetchAuthSessionSucceeded; + const factory FetchAuthSessionEvent.succeeded(CognitoAuthSession session) = + FetchAuthSessionSucceeded; @override String get runtimeTypeName => 'FetchAuthSessionEvent'; @@ -65,9 +64,7 @@ final class FetchAuthSessionFetch extends FetchAuthSessionEvent { List get props => [type, options]; @override - PreconditionException? checkPrecondition( - FetchAuthSessionState currentState, - ) { + PreconditionException? checkPrecondition(FetchAuthSessionState currentState) { if (currentState.type == FetchAuthSessionStateType.refreshing || currentState.type == FetchAuthSessionStateType.fetching) { return const AuthPreconditionException( @@ -96,9 +93,7 @@ final class FetchAuthSessionFederate extends FetchAuthSessionEvent { List get props => [type, request]; @override - PreconditionException? checkPrecondition( - FetchAuthSessionState currentState, - ) { + PreconditionException? checkPrecondition(FetchAuthSessionState currentState) { if (currentState.type == FetchAuthSessionStateType.refreshing || currentState.type == FetchAuthSessionStateType.fetching) { return const AuthPreconditionException( @@ -134,16 +129,14 @@ final class FetchAuthSessionRefresh extends FetchAuthSessionEvent { @override List get props => [ - type, - refreshAwsCredentials, - refreshUserPoolTokens, - federationOptions, - ]; + type, + refreshAwsCredentials, + refreshUserPoolTokens, + federationOptions, + ]; @override - PreconditionException? checkPrecondition( - FetchAuthSessionState currentState, - ) { + PreconditionException? checkPrecondition(FetchAuthSessionState currentState) { if (currentState.type == FetchAuthSessionStateType.refreshing) { return const AuthPreconditionException( 'Credentials are already being refreshed.', diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/hosted_ui_event.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/hosted_ui_event.dart index 0c6d2a9e4d..fde2b2a553 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/hosted_ui_event.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/hosted_ui_event.dart @@ -62,9 +62,8 @@ sealed class HostedUiEvent const factory HostedUiEvent.signOut() = HostedUiSignOut; /// {@macro amplify_auth_cognito.hosted_ui_succeeded} - const factory HostedUiEvent.succeeded( - CognitoUserPoolTokens tokens, - ) = HostedUiSucceeded; + const factory HostedUiEvent.succeeded(CognitoUserPoolTokens tokens) = + HostedUiSucceeded; @override String get runtimeTypeName => 'HostedUiEvent'; @@ -89,10 +88,8 @@ final class HostedUiConfigure extends HostedUiEvent { /// {@endtemplate} final class HostedUiFoundState extends HostedUiEvent { /// {@macro amplify_auth_cognito.hosted_ui_found_state} - const HostedUiFoundState({ - required this.state, - required this.codeVerifier, - }) : super._(); + const HostedUiFoundState({required this.state, required this.codeVerifier}) + : super._(); /// The previous OAuth state found in storage. final String state; @@ -130,12 +127,7 @@ final class HostedUiSignIn extends HostedUiEvent { final Uri? redirectUri; @override - List get props => [ - type, - options, - provider, - redirectUri, - ]; + List get props => [type, options, provider, redirectUri]; @override HostedUiEventType get type => HostedUiEventType.signIn; @@ -146,14 +138,11 @@ final class HostedUiSignIn extends HostedUiEvent { /// {@endtemplate} final class HostedUiCancelSignIn extends HostedUiEvent { /// {@macro amplify_auth_cognito.hosted_ui_cancel_sign_in} - const HostedUiCancelSignIn([ - Object? error, - this.stackTrace, - ]) : error = error ?? - const UserCancelledException( - 'The user canceled the sign-in flow', - ), - super._(); + const HostedUiCancelSignIn([Object? error, this.stackTrace]) + : error = + error ?? + const UserCancelledException('The user canceled the sign-in flow'), + super._(); /// The cause of the cancellation. final Object error; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_in_event.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_in_event.dart index 7228a10122..ab67d33908 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_in_event.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_in_event.dart @@ -59,26 +59,26 @@ sealed class SignInEvent extends AuthEvent { /// machine may have moved to a failure state as the result of an expected, /// recoverable exception.) bool _inChallengeState(SignInState currentState) => switch (currentState) { - SignInChallenge _ => true, - - // If the state machine was in a respond to challenge state when - // the exception was raised, further attempts to confirm sign in should - // be allowed. - // - // Recoverable exceptions are expected at this stage, such as - // CodeMismatchException and InvalidPasswordException. These exceptions - // prompt the user to retry if they've provided an invalid code or weak - // password, for example. It is not feasible to determine which exception - // types are non-recoverable, though. For all others, it is better to - // allow confirm sign in attempts and have Cognito continue to throw the - // exception. - SignInFailure(:final previousState) => _inChallengeState(previousState), - - // If the state machine did not reach a challenge state before the - // exception was thrown, then any attempts to confirm sign in should - // not be allowed and the entire flow must be restarted by the user. - _ => false, - }; + SignInChallenge _ => true, + + // If the state machine was in a respond to challenge state when + // the exception was raised, further attempts to confirm sign in should + // be allowed. + // + // Recoverable exceptions are expected at this stage, such as + // CodeMismatchException and InvalidPasswordException. These exceptions + // prompt the user to retry if they've provided an invalid code or weak + // password, for example. It is not feasible to determine which exception + // types are non-recoverable, though. For all others, it is better to + // allow confirm sign in attempts and have Cognito continue to throw the + // exception. + SignInFailure(:final previousState) => _inChallengeState(previousState), + + // If the state machine did not reach a challenge state before the + // exception was thrown, then any attempts to confirm sign in should + // not be allowed and the entire flow must be restarted by the user. + _ => false, + }; @override String get runtimeTypeName => 'SignInEvent'; @@ -93,8 +93,8 @@ final class SignInInitiate extends SignInEvent { this.authFlowType, required this.parameters, Map? clientMetadata, - }) : clientMetadata = clientMetadata ?? const {}, - super._(); + }) : clientMetadata = clientMetadata ?? const {}, + super._(); /// Runtime override of the Authentication flow. final AuthenticationFlowType? authFlowType; @@ -128,9 +128,9 @@ final class SignInRespondToChallenge extends SignInEvent { Map? clientMetadata, Map? userAttributes, this.friendlyDeviceName, - }) : clientMetadata = clientMetadata ?? const {}, - userAttributes = userAttributes ?? const {}, - super._(); + }) : clientMetadata = clientMetadata ?? const {}, + userAttributes = userAttributes ?? const {}, + super._(); /// The answer to the challenge. final String answer; @@ -150,12 +150,12 @@ final class SignInRespondToChallenge extends SignInEvent { @override List get props => [ - type, - answer, - clientMetadata, - userAttributes, - friendlyDeviceName, - ]; + type, + answer, + clientMetadata, + userAttributes, + friendlyDeviceName, + ]; @override PreconditionException? checkPrecondition(SignInState currentState) { diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_up_event.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_up_event.dart index b14b8c5615..d4cb5e3d81 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_up_event.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/sign_up_event.dart @@ -35,9 +35,7 @@ sealed class SignUpEvent extends AuthEvent { }) = SignUpConfirm; /// {@macro amplify_auth_cognito.sign_up_succeeded} - const factory SignUpEvent.succeeded({ - String? userId, - }) = SignUpSucceeded; + const factory SignUpEvent.succeeded({String? userId}) = SignUpSucceeded; @override String get runtimeTypeName => 'SignUpEvent'; @@ -72,12 +70,12 @@ final class SignUpInitiate extends SignUpEvent { @override List get props => [ - type, - parameters, - userAttributes, - clientMetadata, - validationData, - ]; + type, + parameters, + userAttributes, + clientMetadata, + validationData, + ]; } /// {@template amplify_auth_cognito.sign_up_confirm} @@ -89,8 +87,8 @@ final class SignUpConfirm extends SignUpEvent { required this.username, required this.confirmationCode, Map? clientMetadata, - }) : clientMetadata = clientMetadata ?? const {}, - super._(); + }) : clientMetadata = clientMetadata ?? const {}, + super._(); /// Username to confirm. final String username; @@ -105,12 +103,7 @@ final class SignUpConfirm extends SignUpEvent { SignUpEventType get type => SignUpEventType.confirm; @override - List get props => [ - type, - username, - confirmationCode, - clientMetadata, - ]; + List get props => [type, username, confirmationCode, clientMetadata]; } /// {@template amplify_auth_cognito.sign_up_succeeded} @@ -118,9 +111,7 @@ final class SignUpConfirm extends SignUpEvent { /// {@endtemplate} final class SignUpSucceeded extends SignUpEvent { /// {@macro amplify_auth_cognito.sign_up_succeeded} - const SignUpSucceeded({ - this.userId, - }) : super._(); + const SignUpSucceeded({this.userId}) : super._(); /// The ID of the user. final String? userId; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/totp_setup_event.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/totp_setup_event.dart index e5310a7d10..0ab6c94ea9 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/totp_setup_event.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/event/totp_setup_event.dart @@ -69,10 +69,8 @@ final class TotpSetupInitiate extends TotpSetupEvent { /// {@endtemplate} final class TotpSetupVerify extends TotpSetupEvent { /// {@macro amplify_auth_cognito.totp_setup_verify} - const TotpSetupVerify({ - required this.code, - this.friendlyDeviceName, - }) : super._(); + const TotpSetupVerify({required this.code, this.friendlyDeviceName}) + : super._(); /// The MFA code sent to the registered TOTP device. final String code; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/auth_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/auth_state_machine.dart index caa8016aae..e436d48f7f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/auth_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/auth_state_machine.dart @@ -9,10 +9,18 @@ import 'package:amplify_core/amplify_core.dart'; /// {@template amplify_auth_cognito_dart.state.auth_state_machine} /// Base class for state machines under a [CognitoAuthStateMachine]. /// {@endtemplate} -abstract base class AuthStateMachine - extends StateMachine { +abstract base class AuthStateMachine< + Event extends AuthEvent, + State extends AuthState +> + extends + StateMachine< + Event, + State, + AuthEvent, + AuthState, + CognitoAuthStateMachine + > { /// {@macro amplify_auth_cognito_dart.state.auth_state_machine} AuthStateMachine(super.manager, super.type); } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/configuration_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/configuration_state_machine.dart index 6e0aae5185..36230eece8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/configuration_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/configuration_state_machine.dart @@ -22,20 +22,22 @@ final class ConfigurationStateMachine extends AuthStateMachine { /// {@macro amplify_auth_cognito.configuration_state_machine} ConfigurationStateMachine(CognitoAuthStateMachine manager) - : super(manager, type); + : super(manager, type); @override ConfigurationState get initialState => const ConfigurationState.notConfigured(); /// The [ConfigurationStateMachine] type. - static const type = StateMachineToken< - ConfigurationEvent, - ConfigurationState, - AuthEvent, - AuthState, - CognitoAuthStateMachine, - ConfigurationStateMachine>(); + static const type = + StateMachineToken< + ConfigurationEvent, + ConfigurationState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + ConfigurationStateMachine + >(); @override String get runtimeTypeName => 'ConfigurationStateMachine'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/credential_store_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/credential_store_state_machine.dart index 9b66397eb8..2654801e07 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/credential_store_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/credential_store_state_machine.dart @@ -28,16 +28,18 @@ final class CredentialStoreStateMachine extends AuthStateMachine { /// {@macro amplify_auth_cognito.credential_store_state_machine} CredentialStoreStateMachine(CognitoAuthStateMachine manager) - : super(manager, type); + : super(manager, type); /// The [CredentialStoreStateMachine] type. - static const type = StateMachineToken< - CredentialStoreEvent, - CredentialStoreState, - AuthEvent, - AuthState, - CognitoAuthStateMachine, - CredentialStoreStateMachine>(); + static const type = + StateMachineToken< + CredentialStoreEvent, + CredentialStoreState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + CredentialStoreStateMachine + >(); @override CredentialStoreState get initialState => @@ -138,9 +140,10 @@ final class CredentialStoreStateMachine ); signInDetails = CognitoSignInDetails.apiBased( username: username ?? CognitoIdToken(parsedIdToken).username, - authFlowType: authFlowType == null - ? null - : AuthFlowType.values.byValue(authFlowType), + authFlowType: + authFlowType == null + ? null + : AuthFlowType.values.byValue(authFlowType), ); } } @@ -153,9 +156,7 @@ final class CredentialStoreStateMachine final refreshToken = await _secureStorage.read( key: keys[HostedUiKey.refreshToken], ); - final idToken = await _secureStorage.read( - key: keys[HostedUiKey.idToken], - ); + final idToken = await _secureStorage.read(key: keys[HostedUiKey.idToken]); final provider = await _secureStorage.read( key: keys[HostedUiKey.provider], ); @@ -302,8 +303,9 @@ final class CredentialStoreStateMachine } } if (signInDetails is CognitoSignInDetailsFederated) { - items[keys[CognitoIdentityPoolKey.provider]] = - jsonEncode(signInDetails.provider.toJson()); + items[keys[CognitoIdentityPoolKey.provider]] = jsonEncode( + signInDetails.provider.toJson(), + ); items[keys[CognitoIdentityPoolKey.idToken]] = signInDetails.token; } else { deletions @@ -338,9 +340,7 @@ final class CredentialStoreStateMachine if (provider == null) return null; CredentialStoreData? legacyData; try { - legacyData = await provider.fetchLegacyCredentials( - _authOutputs, - ); + legacyData = await provider.fetchLegacyCredentials(_authOutputs); if (legacyData != null) { await _storeCredentials(legacyData); } @@ -394,9 +394,7 @@ final class CredentialStoreStateMachine final provider = get(); if (provider == null) return; try { - await provider.deleteLegacyCredentials( - _authOutputs, - ); + await provider.deleteLegacyCredentials(_authOutputs); } on Object catch (e, s) { logger.error('Error clearing legacy credentials', e, s); } @@ -412,18 +410,14 @@ final class CredentialStoreStateMachine } /// State machine callback for the [CredentialStoreStoreCredentials] event. - Future onStoreCredentials( - CredentialStoreStoreCredentials event, - ) async { + Future onStoreCredentials(CredentialStoreStoreCredentials event) async { await _storeCredentials(event.data); final data = await _loadCredentialStore(); emit(CredentialStoreState.success(data)); } /// State machine callback for the [CredentialStoreClearCredentials] event. - Future onClearCredentials( - CredentialStoreClearCredentials event, - ) async { + Future onClearCredentials(CredentialStoreClearCredentials event) async { final clearKeys = event.keys; final deletions = []; bool shouldDelete(String key) => @@ -448,8 +442,9 @@ final class CredentialStoreStateMachine } if (_hasIdentityPool) { - final identityPoolKeys = - CognitoIdentityPoolKeys(_authOutputs.identityPoolId!); + final identityPoolKeys = CognitoIdentityPoolKeys( + _authOutputs.identityPoolId!, + ); for (final key in identityPoolKeys) { if (shouldDelete(key)) { deletions.add(key); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/fetch_auth_session_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/fetch_auth_session_state_machine.dart index 21e4c1ca65..85b753e1f8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/fetch_auth_session_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/fetch_auth_session_state_machine.dart @@ -30,16 +30,18 @@ final class FetchAuthSessionStateMachine extends AuthStateMachine { /// {@macro amplify_auth_cognito.fetch_auth_session_state_machine} FetchAuthSessionStateMachine(CognitoAuthStateMachine manager) - : super(manager, type); + : super(manager, type); /// The [FetchAuthSessionStateMachine] type. - static const type = StateMachineToken< - FetchAuthSessionEvent, - FetchAuthSessionState, - AuthEvent, - AuthState, - CognitoAuthStateMachine, - FetchAuthSessionStateMachine>(); + static const type = + StateMachineToken< + FetchAuthSessionEvent, + FetchAuthSessionState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + FetchAuthSessionStateMachine + >(); @override FetchAuthSessionState get initialState => const FetchAuthSessionState.idle(); @@ -99,10 +101,7 @@ final class FetchAuthSessionStateMachine /// /// Should be used for all SDK calls made from within this class. Future _withZoneOverrides(Future Function() fn) { - return runZoned( - fn, - zoneValues: {zInFetch: true}, - ); + return runZoned(fn, zoneValues: {zInFetch: true}); } /// The logins map, used to associate the ID token to the Cognito identity @@ -114,7 +113,8 @@ final class FetchAuthSessionStateMachine final logins = {}; if (_authConfig?.userPoolId != null && federatedIdentity.provider == AuthProvider.cognito) { - final userPoolKey = 'cognito-idp.${_authConfig?.awsRegion}.amazonaws.com/' + final userPoolKey = + 'cognito-idp.${_authConfig?.awsRegion}.amazonaws.com/' '${_authConfig?.userPoolId}'; logins[userPoolKey] = federatedIdentity.token; } else { @@ -130,14 +130,15 @@ final class FetchAuthSessionStateMachine _FederatedIdentity? federatedIdentity, }) async { final resp = await _withZoneOverrides( - () => _cognitoIdentityClient - .getId( - GetIdInput( - identityPoolId: identityPoolId, - logins: _logins(federatedIdentity), - ), - ) - .result, + () => + _cognitoIdentityClient + .getId( + GetIdInput( + identityPoolId: identityPoolId, + logins: _logins(federatedIdentity), + ), + ) + .result, ); final identityId = resp.identityId; if (identityId == null) { @@ -152,14 +153,15 @@ final class FetchAuthSessionStateMachine required _FederatedIdentity? federatedIdentity, }) async { final resp = await _withZoneOverrides( - () => _cognitoIdentityClient - .getCredentialsForIdentity( - GetCredentialsForIdentityInput( - identityId: identityId, - logins: _logins(federatedIdentity), - ), - ) - .result, + () => + _cognitoIdentityClient + .getCredentialsForIdentity( + GetCredentialsForIdentityInput( + identityId: identityId, + logins: _logins(federatedIdentity), + ), + ) + .result, ); final credentials = resp.credentials; if (credentials == null) { @@ -195,9 +197,7 @@ final class FetchAuthSessionStateMachine } /// State machine callback for the [FetchAuthSessionFetch] event. - Future onFetchAuthSession( - FetchAuthSessionFetch event, - ) async { + Future onFetchAuthSession(FetchAuthSessionFetch event) async { final options = event.options ?? const FetchAuthSessionOptions(); final result = await manager.loadCredentials(); @@ -207,7 +207,8 @@ final class FetchAuthSessionStateMachine final idTokenExpiration = userPoolTokens?.idToken.claims.expiration; final forceRefreshUserPoolTokens = userPoolTokens != null && options.forceRefresh; - final refreshUserPoolTokens = hasUserPool && + final refreshUserPoolTokens = + hasUserPool && (_invalidated || forceRefreshUserPoolTokens || _isExpired(accessTokenExpiration) || @@ -218,7 +219,8 @@ final class FetchAuthSessionStateMachine final awsCredentialsExpiration = awsCredentials?.expiration; final forceRefreshAwsCredentials = options.forceRefresh; final retrieveAwsCredentials = awsCredentials == null; - final refreshAwsCredentials = hasIdentityPool && + final refreshAwsCredentials = + hasIdentityPool && (_invalidated || retrieveAwsCredentials || forceRefreshAwsCredentials || @@ -263,18 +265,15 @@ final class FetchAuthSessionStateMachine userPoolTokensResult = result.signedOut(); userSubResult = result.signedOut(); } else { - userPoolTokensResult = AuthResult.success( - userPoolTokens, - ); - userSubResult = AuthResult.success( - userPoolTokens.userId, - ); + userPoolTokensResult = AuthResult.success(userPoolTokens); + userSubResult = AuthResult.success(userPoolTokens.userId); } emit( FetchAuthSessionState.success( CognitoAuthSession( - isSignedIn: userPoolTokens != null || + isSignedIn: + userPoolTokens != null || result.signInDetails is CognitoSignInDetailsFederated, userPoolTokensResult: userPoolTokensResult, userSubResult: userSubResult, @@ -292,7 +291,8 @@ final class FetchAuthSessionStateMachine if (userPoolTokens != null) { throw const InvalidStateException( 'Cannot federate to identity pool with active user session.', - recoverySuggestion: 'Call Amplify.Auth.signOut before calling ' + recoverySuggestion: + 'Call Amplify.Auth.signOut before calling ' 'Amplify.Auth.federateToIdentityPool.', ); } @@ -307,7 +307,8 @@ final class FetchAuthSessionStateMachine var existingIdentityId = event.request.options?.developerProvidedIdentityId; final signInDetails = result.signInDetails; - final isRefresh = signInDetails is CognitoSignInDetailsFederated && + final isRefresh = + signInDetails is CognitoSignInDetailsFederated && signInDetails.provider == event.request.provider && existingIdentityId == null; // Only retain the current identity when calling `federateToIdentityPool` @@ -463,7 +464,8 @@ final class FetchAuthSessionStateMachine throw const InvalidAccountTypeException.noIdentityPool(); } try { - final identityId = existingIdentityId ?? + final identityId = + existingIdentityId ?? await _getIdentityId( identityPoolId: _authConfig!.identityPoolId!, federatedIdentity: federatedIdentity, @@ -481,9 +483,9 @@ final class FetchAuthSessionStateMachine signInDetails: federatedIdentity != null && federatedIdentity.isFederatedSignIn ? CognitoSignInDetailsFederated( - provider: federatedIdentity.provider, - token: federatedIdentity.token, - ) + provider: federatedIdentity.provider, + token: federatedIdentity.token, + ) : null, ), ); @@ -508,8 +510,9 @@ final class FetchAuthSessionStateMachine Future _refreshUserPoolTokens( CognitoUserPoolTokens userPoolTokens, ) async { - final deviceSecrets = await getOrCreate() - .get(userPoolTokens.username); + final deviceSecrets = await getOrCreate().get( + userPoolTokens.username, + ); final refreshRequest = cognito_idp.InitiateAuthRequest.build((b) { b ..authFlow = cognito_idp.AuthFlowType.refreshTokenAuth @@ -522,8 +525,8 @@ final class FetchAuthSessionStateMachine // ignore: invalid_use_of_internal_member if (_authConfig?.appClientSecret != null && _authConfig?.userPoolClientId != null) { - b.authParameters[CognitoConstants.challengeParamSecretHash] = - computeSecretHash( + b.authParameters[CognitoConstants + .challengeParamSecretHash] = computeSecretHash( userPoolTokens.username, _authConfig!.userPoolClientId!, // ignore: invalid_use_of_internal_member @@ -552,15 +555,14 @@ final class FetchAuthSessionStateMachine signInMethod: userPoolTokens.signInMethod, accessToken: JsonWebToken.parse(accessToken), refreshToken: refreshToken ?? userPoolTokens.refreshToken, - idToken: idToken != null - ? JsonWebToken.parse(idToken) - : userPoolTokens.idToken, + idToken: + idToken != null + ? JsonWebToken.parse(idToken) + : userPoolTokens.idToken, ); await manager.storeCredentials( - CredentialStoreData( - userPoolTokens: newTokens, - ), + CredentialStoreData(userPoolTokens: newTokens), ); return newTokens; @@ -619,12 +621,12 @@ extension on AuthNotAuthorizedException { class _FederatedIdentity { const _FederatedIdentity.federated(this.provider, this.token) - : isFederatedSignIn = true; + : isFederatedSignIn = true; const _FederatedIdentity.cognito(String idToken) - : provider = AuthProvider.cognito, - token = idToken, - isFederatedSignIn = false; + : provider = AuthProvider.cognito, + token = idToken, + isFederatedSignIn = false; final bool isFederatedSignIn; final AuthProvider provider; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/hosted_ui_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/hosted_ui_state_machine.dart index 59c109122f..7f69df9fdb 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/hosted_ui_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/hosted_ui_state_machine.dart @@ -24,8 +24,15 @@ final class HostedUiStateMachine HostedUiStateMachine(CognitoAuthStateMachine manager) : super(manager, type); /// The [HostedUiStateMachine] type. - static const type = StateMachineToken(); + static const type = + StateMachineToken< + HostedUiEvent, + HostedUiState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + HostedUiStateMachine + >(); @override HostedUiState get initialState => const HostedUiState.notConfigured(); @@ -82,8 +89,9 @@ final class HostedUiStateMachine /// State machine callback for the [HostedUiConfigure] event. Future onConfigure(HostedUiConfigure event) async { final result = await manager.loadCredentials(); - if (result.userPoolTokens case CognitoUserPoolTokens(:final signInMethod) - when signInMethod == CognitoSignInMethod.hostedUi) { + if (result.userPoolTokens case CognitoUserPoolTokens( + :final signInMethod, + ) when signInMethod == CognitoSignInMethod.hostedUi) { emit(HostedUiState.signedIn(result.authUser)); return; } @@ -94,10 +102,7 @@ final class HostedUiStateMachine ); if (state != null && codeVerifier != null) { return resolve( - HostedUiEvent.foundState( - state: state, - codeVerifier: codeVerifier, - ), + HostedUiEvent.foundState(state: state, codeVerifier: codeVerifier), ); } @@ -111,9 +116,7 @@ final class HostedUiStateMachine state: event.state, codeVerifier: event.codeVerifier, ); - return resolve( - HostedUiEvent.exchange(parameters), - ); + return resolve(HostedUiEvent.exchange(parameters)); } on SignedOutException { emit(const HostedUiState.signedOut()); } @@ -137,10 +140,11 @@ final class HostedUiStateMachine unawaited( // Unblock the state machine to accept new events but ensure // that [onCancelSignIn] is called if any error occurs. - _platform.signIn(options: event.options, provider: provider).onError( - (error, stackTrace) => dispatch( - HostedUiEvent.cancelSignIn(error, stackTrace), - ), + _platform + .signIn(options: event.options, provider: provider) + .onError( + (error, stackTrace) => + dispatch(HostedUiEvent.cancelSignIn(error, stackTrace)), ), ); } @@ -171,9 +175,7 @@ final class HostedUiStateMachine final optionsMap = jsonDecode(optionsJson) as Map; options = CognitoSignInWithWebUIPluginOptions.fromJson(optionsMap); } - await _platform.signOut( - options: options, - ); + await _platform.signOut(options: options); emit(const HostedUiState.signedOut()); } @@ -183,11 +185,12 @@ final class HostedUiStateMachine key: _keys[HostedUiKey.provider], ); final signInDetails = CognitoSignInDetails.hostedUi( - provider: provider == null - ? null - : AuthProvider.fromJson( - jsonDecode(provider) as Map, - ), + provider: + provider == null + ? null + : AuthProvider.fromJson( + jsonDecode(provider) as Map, + ), ); await manager.storeCredentials( CredentialStoreData( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart index 61a725e683..a67724eed6 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_in_state_machine.dart @@ -46,8 +46,15 @@ final class SignInStateMachine SignInStateMachine(CognitoAuthStateMachine manager) : super(manager, type); /// The [SignInStateMachine] type. - static const type = StateMachineToken(); + static const type = + StateMachineToken< + SignInEvent, + SignInState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + SignInStateMachine + >(); @override String get runtimeTypeName => 'SignInStateMachine'; @@ -99,9 +106,9 @@ final class SignInStateMachine // Lazy initializers for worker types. final AsyncMemoizer _initWorkerMemoizer = AsyncMemoizer(); final AsyncMemoizer - _passwordVerifierWorkerMemoizer = AsyncMemoizer(); + _passwordVerifierWorkerMemoizer = AsyncMemoizer(); final AsyncMemoizer - _devicePasswordVerifierWorkerMemoizer = AsyncMemoizer(); + _devicePasswordVerifierWorkerMemoizer = AsyncMemoizer(); final AsyncMemoizer _confirmDeviceWorkerMemoizer = AsyncMemoizer(); @@ -201,7 +208,7 @@ final class SignInStateMachine Set? get _allowedMfaTypes { final allowedMfaTypesStr = _challengeParameters[CognitoConstants.challengeParamMfasCanSetup] ?? - _challengeParameters[CognitoConstants.challengeParamMfasCanChoose]; + _challengeParameters[CognitoConstants.challengeParamMfasCanChoose]; if (allowedMfaTypesStr == null || allowedMfaTypesStr.isEmpty) { return null; } @@ -213,9 +220,9 @@ final class SignInStateMachine 'SMS_MFA' => MfaType.sms, 'EMAIL_OTP' => MfaType.email, _ => () { - logger.error('Unrecognized MFA type: $type'); - return null; - }(), + logger.error('Unrecognized MFA type: $type'); + return null; + }(), }, ) .nonNulls @@ -223,8 +230,8 @@ final class SignInStateMachine } Map get _publicChallengeParameters { - final map = _challengeParameters.toMap() - ..removeWhere((_, value) => value == null); + final map = + _challengeParameters.toMap()..removeWhere((_, value) => value == null); return map.cast(); } @@ -254,13 +261,13 @@ final class SignInStateMachine // narrowed once a selection is made. ChallengeNameType.selectMfaType => null, ChallengeNameType.softwareTokenMfa => DeliveryMedium.totp, - _ => switch (_challengeParameters[ - CognitoConstants.challengeParamDeliveryMedium]) { - null => null, - 'SMS' => DeliveryMedium.sms, - 'EMAIL' => DeliveryMedium.email, - _ => DeliveryMedium.unknown, - } + _ => switch (_challengeParameters[CognitoConstants + .challengeParamDeliveryMedium]) { + null => null, + 'SMS' => DeliveryMedium.sms, + 'EMAIL' => DeliveryMedium.email, + _ => DeliveryMedium.unknown, + }, }; if (deliveryMedium == null) { return null; @@ -288,16 +295,19 @@ final class SignInStateMachine return password; } - authFlowType = event.authFlowType?.sdkValue ?? + authFlowType = + event.authFlowType?.sdkValue ?? AuthenticationFlowType.userSrpAuth.sdkValue; return switch (authFlowType) { AuthFlowType.userSrpAuth => () { - expectPassword(); - return initiateSrpAuth(event); - }(), + expectPassword(); + return initiateSrpAuth(event); + }(), AuthFlowType.customAuth => initiateCustomAuth(event), - AuthFlowType.userPasswordAuth => - initiateUserPasswordAuth(event, expectPassword()), + AuthFlowType.userPasswordAuth => initiateUserPasswordAuth( + event, + expectPassword(), + ), _ => throw StateError('Unsupported auth flow: $authFlowType'), }; } @@ -317,21 +327,25 @@ final class SignInStateMachine return switch (challengeName) { ChallengeNameType.customChallenge when hasUserResponse => createCustomAuthRequest(event), - ChallengeNameType.passwordVerifier => - createPasswordVerifierRequest(challengeParameters), + ChallengeNameType.passwordVerifier => createPasswordVerifierRequest( + challengeParameters, + ), ChallengeNameType.deviceSrpAuth => createDeviceSrpAuthRequest(), ChallengeNameType.devicePasswordVerifier => createDevicePasswordVerifierRequest(challengeParameters), - ChallengeNameType.smsMfa when hasUserResponse => - createSmsMfaRequest(event), + ChallengeNameType.smsMfa when hasUserResponse => createSmsMfaRequest( + event, + ), ChallengeNameType.softwareTokenMfa when hasUserResponse => createSoftwareTokenMfaRequest(event), - ChallengeNameType.emailOtp when hasUserResponse => - createEmailOtpRequest(event), + ChallengeNameType.emailOtp when hasUserResponse => createEmailOtpRequest( + event, + ), ChallengeNameType.selectMfaType when hasUserResponse => createSelectMfaRequest(event), - ChallengeNameType.mfaSetup when hasUserResponse => - handleMfaSetup(event: event), + ChallengeNameType.mfaSetup when hasUserResponse => handleMfaSetup( + event: event, + ), ChallengeNameType.newPasswordRequired when hasUserResponse => createNewPasswordRequest(event), _ => null, @@ -344,17 +358,18 @@ final class SignInStateMachine SignInRespondToChallenge event, ) async { return RespondToAuthChallengeRequest.build( - (b) => b - ..challengeName = ChallengeNameType.customChallenge - ..challengeResponses.addAll({ - CognitoConstants.challengeParamUsername: providedUsername, - CognitoConstants.challengeParamAnswer: event.answer, - if (_user.deviceSecrets?.deviceKey case final deviceKey?) - CognitoConstants.challengeParamDeviceKey: deviceKey, - }) - ..clientId = _authOutputs.userPoolClientId - ..clientMetadata.addAll(event.clientMetadata) - ..analyticsMetadata = get()?.toBuilder(), + (b) => + b + ..challengeName = ChallengeNameType.customChallenge + ..challengeResponses.addAll({ + CognitoConstants.challengeParamUsername: providedUsername, + CognitoConstants.challengeParamAnswer: event.answer, + if (_user.deviceSecrets?.deviceKey case final deviceKey?) + CognitoConstants.challengeParamDeviceKey: deviceKey, + }) + ..clientId = _authOutputs.userPoolClientId + ..clientMetadata.addAll(event.clientMetadata) + ..analyticsMetadata = get()?.toBuilder(), ); } @@ -385,9 +400,10 @@ final class SignInStateMachine ..deviceKey = _user.deviceSecrets?.deviceKey ..challengeParameters = BuiltMap(_publicChallengeParameters) ..parameters = SignInParameters( - (b) => b - ..username = username - ..password = password, + (b) => + b + ..username = username + ..password = password, ); }); worker.sink.add(workerMessage); @@ -409,8 +425,8 @@ final class SignInStateMachine CognitoConstants.challengeParamUsername: cognitoUsername, CognitoConstants.challengeParamDeviceKey: _user.deviceSecrets!.deviceKey!, - CognitoConstants.challengeParamSrpA: - _initResult!.publicA.toRadixString(16), + CognitoConstants.challengeParamSrpA: _initResult!.publicA + .toRadixString(16), }); }); } @@ -503,8 +519,7 @@ final class SignInStateMachine // requiredAttributes in the InitiateAuth response, add a // `userAttributes.attributename` parameter. This parameter can also set // values for writable attributes that aren't required by your user pool. - b.challengeResponses[ - '${CognitoConstants.challengeParamUserAttributesPrefix}${missingAttributeKey.key}'] = + b.challengeResponses['${CognitoConstants.challengeParamUserAttributesPrefix}${missingAttributeKey.key}'] = missingAttributeValue; } _attributesNeedingUpdate = newAttributes; @@ -521,8 +536,8 @@ final class SignInStateMachine ..clientId = _authOutputs.userPoolClientId ..authParameters.addAll({ CognitoConstants.challengeParamUsername: providedUsername, - CognitoConstants.challengeParamSrpA: - _initResult!.publicA.toRadixString(16), + CognitoConstants.challengeParamSrpA: _initResult!.publicA + .toRadixString(16), }) ..clientMetadata.addAll(event.clientMetadata); }); @@ -578,10 +593,11 @@ final class SignInStateMachine password != null) { final initRequest = await initiateSrpAuth(event); return initRequest.rebuild( - (b) => b - ..authFlow = AuthFlowType.customAuth - ..authParameters[CognitoConstants.challengeParamChallengeName] = - 'SRP_A', + (b) => + b + ..authFlow = AuthFlowType.customAuth + ..authParameters[CognitoConstants.challengeParamChallengeName] = + 'SRP_A', ); } @@ -596,27 +612,21 @@ final class SignInStateMachine } TotpSetupDetails _createTotpSetupResult(String sharedSecret) => - TotpSetupDetails( - sharedSecret: sharedSecret, - username: providedUsername, - ); + TotpSetupDetails(sharedSecret: sharedSecret, username: providedUsername); /// Initiates registration of a TOTP authenticator for use in TOTP MFA. @protected - Future associateSoftwareToken({ - String? accessToken, - }) async { + Future associateSoftwareToken({String? accessToken}) async { final request = AssociateSoftwareTokenRequest( accessToken: accessToken, session: _session, ); final response = await cognitoIdentityProvider.associateSoftwareToken(request).result; - if (response - case AssociateSoftwareTokenResponse( - :final session?, - :final secretCode? - )) { + if (response case AssociateSoftwareTokenResponse( + :final session?, + :final secretCode?, + )) { _session = session; return _createTotpSetupResult(secretCode); } @@ -832,9 +842,7 @@ final class SignInStateMachine // Clear anonymous credentials, if there were any, and fetch authenticated // credentials. if (_authOutputs.identityPoolId case final identityPoolId?) { - await manager.clearCredentials( - CognitoIdentityPoolKeys(identityPoolId), - ); + await manager.clearCredentials(CognitoIdentityPoolKeys(identityPoolId)); await manager.loadSession(); } @@ -886,15 +894,16 @@ final class SignInStateMachine await _loadDeviceSecrets(); var initRequest = await createInitiateAuthRequest(event); - final contextData = - await contextDataProvider.buildRequestData(cognitoUsername); + final contextData = await contextDataProvider.buildRequestData( + cognitoUsername, + ); initRequest = initRequest.rebuild((b) { b.analyticsMetadata = get()?.toBuilder(); // ignore: invalid_use_of_internal_member if (_authOutputs.appClientSecret case final appClientSecret?) { - b.authParameters[CognitoConstants.challengeParamSecretHash] = - computeSecretHash( + b.authParameters[CognitoConstants + .challengeParamSecretHash] = computeSecretHash( providedUsername, _authOutputs.userPoolClientId!, appClientSecret, @@ -937,22 +946,25 @@ final class SignInStateMachine final worker = await confirmDeviceWorker; worker.add( ConfirmDeviceMessage( - (b) => b - ..accessToken = accessToken - ..newDeviceMetadata.replace(newDeviceMetadata), + (b) => + b + ..accessToken = accessToken + ..newDeviceMetadata.replace(newDeviceMetadata), ), ); final workerResult = await worker.stream.first; - final response = await cognitoIdentityProvider - .confirmDevice(workerResult.request) - .result; + final response = + await cognitoIdentityProvider + .confirmDevice(workerResult.request) + .result; final requiresConfirmation = response.userConfirmationNecessary; return ( devicePassword: workerResult.devicePassword, - deviceStatus: requiresConfirmation - ? DeviceRememberedStatusType.notRemembered - : DeviceRememberedStatusType.remembered, + deviceStatus: + requiresConfirmation + ? DeviceRememberedStatusType.notRemembered + : DeviceRememberedStatusType.remembered, ); } @@ -968,14 +980,15 @@ final class SignInStateMachine await cognitoIdentityProvider .updateUserAttributes( UpdateUserAttributesRequest.build( - (b) => b - ..accessToken = accessToken - ..clientMetadata.addAll(clientMetadata ?? const {}) - ..userAttributes.addAll([ - for (final MapEntry(:key, :value) - in attributesNeedingUpdate.entries) - AttributeType(name: key.key, value: value), - ]), + (b) => + b + ..accessToken = accessToken + ..clientMetadata.addAll(clientMetadata ?? const {}) + ..userAttributes.addAll([ + for (final MapEntry(:key, :value) + in attributesNeedingUpdate.entries) + AttributeType(name: key.key, value: value), + ]), ), ) .result; @@ -1003,11 +1016,12 @@ final class SignInStateMachine newDeviceMetadata, ); final deviceSecrets = - _user.deviceSecrets = CognitoDeviceSecretsBuilder() - ..deviceGroupKey = newDeviceMetadata.deviceGroupKey - ..deviceKey = newDeviceMetadata.deviceKey - ..devicePassword = devicePassword - ..deviceStatus = deviceStatus; + _user.deviceSecrets = + CognitoDeviceSecretsBuilder() + ..deviceGroupKey = newDeviceMetadata.deviceGroupKey + ..deviceKey = newDeviceMetadata.deviceKey + ..devicePassword = devicePassword + ..deviceStatus = deviceStatus; await deviceRepo.put(cognitoUsername, deviceSecrets.build()); } @@ -1051,8 +1065,9 @@ final class SignInStateMachine // Configure TOTP authentication if allowed. if (_allowedMfaTypes case final allowedMfaTypes? - when _challengeParameters - .containsKey(CognitoConstants.challengeParamMfasCanSetup)) { + when _challengeParameters.containsKey( + CognitoConstants.challengeParamMfasCanSetup, + )) { if (!allowedMfaTypes.contains(MfaType.totp) && !allowedMfaTypes.contains(MfaType.email)) { throw const InvalidUserPoolConfigurationException( @@ -1116,8 +1131,8 @@ final class SignInStateMachine // ignore: invalid_use_of_internal_member if (_authOutputs.appClientSecret case final appClientSecret?) { - b.challengeResponses[CognitoConstants.challengeParamSecretHash] ??= - computeSecretHash( + b.challengeResponses[CognitoConstants + .challengeParamSecretHash] ??= computeSecretHash( cognitoUsername, _authOutputs.userPoolClientId!, appClientSecret, @@ -1131,9 +1146,10 @@ final class SignInStateMachine logger.verbose('$respondRequest'); try { - final challengeResp = await cognitoIdentityProvider - .respondToAuthChallenge(respondRequest) - .result; + final challengeResp = + await cognitoIdentityProvider + .respondToAuthChallenge(respondRequest) + .result; logger.verbose('$challengeResp'); // Update flow state @@ -1225,7 +1241,5 @@ final class SignInStateMachine } } -typedef _CreateDeviceResult = ({ - String devicePassword, - DeviceRememberedStatusType deviceStatus, -}); +typedef _CreateDeviceResult = + ({String devicePassword, DeviceRememberedStatusType deviceStatus}); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_out_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_out_state_machine.dart index daea740f73..b479f48eab 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_out_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_out_state_machine.dart @@ -19,8 +19,15 @@ final class SignOutStateMachine SignOutStateMachine(CognitoAuthStateMachine manager) : super(manager, type); /// The [SignOutStateMachine] type. - static const type = StateMachineToken(); + static const type = + StateMachineToken< + SignOutEvent, + SignOutState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + SignOutStateMachine + >(); @override SignOutState get initialState => const SignOutState.idle(); @@ -109,9 +116,7 @@ final class SignOutStateMachine try { await _cognitoIdp .globalSignOut( - GlobalSignOutRequest( - accessToken: tokens.accessToken.raw, - ), + GlobalSignOutRequest(accessToken: tokens.accessToken.raw), ) .result; } on Exception catch (e) { @@ -150,9 +155,7 @@ final class SignOutStateMachine } // Credentials are cleared for all partial sign out cases. - await dispatchAndComplete( - const CredentialStoreEvent.clearCredentials(), - ); + await dispatchAndComplete(const CredentialStoreEvent.clearCredentials()); if (globalSignOutException != null || revokeTokenException != null) { return emit( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_up_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_up_state_machine.dart index 8d4f9356d0..9c123a72be 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_up_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/sign_up_state_machine.dart @@ -19,8 +19,15 @@ final class SignUpStateMachine SignUpStateMachine(CognitoAuthStateMachine manager) : super(manager, type); /// The [SignUpStateMachine] type. - static const type = StateMachineToken(); + static const type = + StateMachineToken< + SignUpEvent, + SignUpState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + SignUpStateMachine + >(); @override SignUpState get initialState => const SignUpState.notStarted(); @@ -77,48 +84,46 @@ final class SignUpStateMachine contextData = await contextDataProvider.buildRequestData( event.parameters.username, ); - final resp = await _cognito.signUp( - SignUpRequest.build( - (b) { - b - ..clientId = _authOutputs.userPoolClientId - ..username = event.parameters.username - ..password = event.parameters.password - ..clientMetadata.addAll(event.clientMetadata) - ..userAttributes.addAll( - event.userAttributes.entries.map( - (attr) => AttributeType( - name: attr.key.key, - value: attr.value, - ), - ), + final resp = + await _cognito + .signUp( + SignUpRequest.build((b) { + b + ..clientId = _authOutputs.userPoolClientId + ..username = event.parameters.username + ..password = event.parameters.password + ..clientMetadata.addAll(event.clientMetadata) + ..userAttributes.addAll( + event.userAttributes.entries.map( + (attr) => + AttributeType(name: attr.key.key, value: attr.value), + ), + ) + ..validationData.addAll( + event.validationData.entries.map( + (attr) => + AttributeType(name: attr.key, value: attr.value), + ), + ) + ..analyticsMetadata = + get()?.toBuilder(); + + // ignore: invalid_use_of_internal_member + final clientSecret = _authOutputs.appClientSecret; + if (clientSecret != null) { + b.secretHash = computeSecretHash( + event.parameters.username, + _authOutputs.userPoolClientId!, + clientSecret, + ); + } + + if (contextData != null) { + b.userContextData.replace(contextData); + } + }), ) - ..validationData.addAll( - event.validationData.entries.map( - (attr) => AttributeType( - name: attr.key, - value: attr.value, - ), - ), - ) - ..analyticsMetadata = get()?.toBuilder(); - - // ignore: invalid_use_of_internal_member - final clientSecret = _authOutputs.appClientSecret; - if (clientSecret != null) { - b.secretHash = computeSecretHash( - event.parameters.username, - _authOutputs.userPoolClientId!, - clientSecret, - ); - } - - if (contextData != null) { - b.userContextData.replace(contextData); - } - }, - ), - ).result; + .result; if (resp.userConfirmed) { emit(SignUpState.success(userId: resp.userSub)); @@ -136,33 +141,33 @@ final class SignUpStateMachine Future onConfirm(SignUpConfirm event) async { UserContextDataType? contextData; final contextDataProvider = _contextDataProvider; - contextData = await contextDataProvider.buildRequestData( - event.username, - ); - await _cognito.confirmSignUp( - ConfirmSignUpRequest.build((b) { - b - ..clientId = _authOutputs.userPoolClientId - ..username = event.username - ..confirmationCode = event.confirmationCode - ..clientMetadata.addAll(event.clientMetadata) - ..analyticsMetadata = get()?.toBuilder(); - - // ignore: invalid_use_of_internal_member - final clientSecret = _authOutputs.appClientSecret; - if (clientSecret != null) { - b.secretHash = computeSecretHash( - event.username, - _authOutputs.userPoolClientId!, - clientSecret, - ); - } - - if (contextData != null) { - b.userContextData.replace(contextData); - } - }), - ).result; + contextData = await contextDataProvider.buildRequestData(event.username); + await _cognito + .confirmSignUp( + ConfirmSignUpRequest.build((b) { + b + ..clientId = _authOutputs.userPoolClientId + ..username = event.username + ..confirmationCode = event.confirmationCode + ..clientMetadata.addAll(event.clientMetadata) + ..analyticsMetadata = get()?.toBuilder(); + + // ignore: invalid_use_of_internal_member + final clientSecret = _authOutputs.appClientSecret; + if (clientSecret != null) { + b.secretHash = computeSecretHash( + event.username, + _authOutputs.userPoolClientId!, + clientSecret, + ); + } + + if (contextData != null) { + b.userContextData.replace(contextData); + } + }), + ) + .result; emit(const SignUpState.success()); } diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/totp_setup_state_machine.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/totp_setup_state_machine.dart index 3454d0f085..e9a89866dc 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/totp_setup_state_machine.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/machines/totp_setup_state_machine.dart @@ -19,8 +19,15 @@ final class TotpSetupStateMachine TotpSetupStateMachine(CognitoAuthStateMachine manager) : super(manager, type); /// The [TotpSetupStateMachine] type. - static const type = StateMachineToken(); + static const type = + StateMachineToken< + TotpSetupEvent, + TotpSetupState, + AuthEvent, + AuthState, + CognitoAuthStateMachine, + TotpSetupStateMachine + >(); @override TotpSetupState get initialState => const TotpSetupState.idle(); @@ -54,23 +61,20 @@ final class TotpSetupStateMachine Future _onInitiate(TotpSetupInitiate event) async { final tokens = await manager.getUserPoolTokens(); - final response = await _cognitoIdp - .associateSoftwareToken( - AssociateSoftwareTokenRequest( - accessToken: tokens.accessToken.raw, - ), - ) - .result; + final response = + await _cognitoIdp + .associateSoftwareToken( + AssociateSoftwareTokenRequest( + accessToken: tokens.accessToken.raw, + ), + ) + .result; _session = response.session; _details = TotpSetupDetails( username: CognitoIdToken(tokens.idToken).username, sharedSecret: response.secretCode!, ); - emit( - TotpSetupState.requiresVerification( - _details!, - ), - ); + emit(TotpSetupState.requiresVerification(_details!)); } Future _onVerify(TotpSetupVerify event) async { @@ -96,15 +100,8 @@ final class TotpSetupStateMachine _details != null, 'TotpSetupDetails should not be null. Please report this issue.', ); - logger.verbose( - 'Failed to verify TOTP code. Allowing retry...', - e, - ); - emit( - TotpSetupState.requiresVerification( - _details!, - ), - ); + logger.verbose('Failed to verify TOTP code. Allowing retry...', e); + emit(TotpSetupState.requiresVerification(_details!)); return; } rethrow; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state.dart index b000a23302..a6c175002f 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state.dart @@ -2,9 +2,8 @@ // SPDX-License-Identifier: Apache-2.0 @internal - /// Internal auth state machine code. -library amplify_auth_cognito.state; +library; import 'package:meta/meta.dart'; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/auth_state.g.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/auth_state.g.dart index 8087e4b411..b6409e82a0 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/auth_state.g.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/auth_state.g.dart @@ -7,44 +7,42 @@ part of 'auth_state.dart'; // ************************************************************************** CredentialStoreData _$CredentialStoreDataFromJson(Map json) => - $checkedCreate( - 'CredentialStoreData', - json, - ($checkedConvert) { - final val = CredentialStoreData( - identityId: $checkedConvert('identityId', (v) => v as String?), - awsCredentials: $checkedConvert( - 'awsCredentials', - (v) => v == null + $checkedCreate('CredentialStoreData', json, ($checkedConvert) { + final val = CredentialStoreData( + identityId: $checkedConvert('identityId', (v) => v as String?), + awsCredentials: $checkedConvert( + 'awsCredentials', + (v) => + v == null ? null - : AWSCredentials.fromJson(v as Map)), - userPoolTokens: $checkedConvert( - 'userPoolTokens', - (v) => v == null + : AWSCredentials.fromJson(v as Map), + ), + userPoolTokens: $checkedConvert( + 'userPoolTokens', + (v) => + v == null ? null - : CognitoUserPoolTokens.fromJson(v as Map)), - signInDetails: $checkedConvert( - 'signInDetails', - (v) => v == null + : CognitoUserPoolTokens.fromJson(v as Map), + ), + signInDetails: $checkedConvert( + 'signInDetails', + (v) => + v == null ? null - : CognitoSignInDetails.fromJson(v as Map)), - ); - return val; - }, - ); + : CognitoSignInDetails.fromJson(v as Map), + ), + ); + return val; + }); -Map _$CredentialStoreDataToJson(CredentialStoreData instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('identityId', instance.identityId); - writeNotNull('awsCredentials', instance.awsCredentials?.toJson()); - writeNotNull('userPoolTokens', instance.userPoolTokens?.toJson()); - writeNotNull('signInDetails', instance.signInDetails?.toJson()); - return val; -} +Map _$CredentialStoreDataToJson( + CredentialStoreData instance, +) => { + if (instance.identityId case final value?) 'identityId': value, + if (instance.awsCredentials?.toJson() case final value?) + 'awsCredentials': value, + if (instance.userPoolTokens?.toJson() case final value?) + 'userPoolTokens': value, + if (instance.signInDetails?.toJson() case final value?) + 'signInDetails': value, +}; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/credential_store_state.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/credential_store_state.dart index 1182c35dc0..4129400219 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/credential_store_state.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/credential_store_state.dart @@ -155,10 +155,7 @@ final class CredentialStoreSuccess extends CredentialStoreState CredentialStoreStateType get type => CredentialStoreStateType.success; @override - List get props => [ - type, - data, - ]; + List get props => [type, data]; } /// {@template amplify_auth_cognito.credential_store_failure} @@ -217,11 +214,11 @@ class CredentialStoreData @override List get props => [ - identityId, - awsCredentials, - userPoolTokens, - signInDetails, - ]; + identityId, + awsCredentials, + userPoolTokens, + signInDetails, + ]; @override Map toJson() => _$CredentialStoreDataToJson(this); diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/fetch_auth_session_state.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/fetch_auth_session_state.dart index ba874e2332..f36c10fb27 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/fetch_auth_session_state.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/fetch_auth_session_state.dart @@ -36,9 +36,8 @@ sealed class FetchAuthSessionState const factory FetchAuthSessionState.refreshing() = FetchAuthSessionRefreshing; /// {@macro amplify_auth_cognito.fetch_auth_session_success} - const factory FetchAuthSessionState.success( - CognitoAuthSession session, - ) = FetchAuthSessionSuccess; + const factory FetchAuthSessionState.success(CognitoAuthSession session) = + FetchAuthSessionSuccess; /// {@macro amplify_auth_cognito.fetch_auth_session_failure} const factory FetchAuthSessionState.failure( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_in_state.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_in_state.dart index 39193c4922..49ee4d5515 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_in_state.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_in_state.dart @@ -132,14 +132,14 @@ final class SignInChallenge extends SignInState { @override List get props => [ - type, - challengeName, - challengeParameters, - requiredAttributes, - codeDeliveryDetails, - allowedMfaTypes, - totpSetupResult, - ]; + type, + challengeName, + challengeParameters, + requiredAttributes, + codeDeliveryDetails, + allowedMfaTypes, + totpSetupResult, + ]; } /// {@template amplify_auth_cognito_dart.sign_in_success} diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_out_state.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_out_state.dart index 8b446ae5e6..961a6feaa2 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_out_state.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_out_state.dart @@ -102,10 +102,10 @@ final class SignOutPartialFailure extends SignOutState { @override List get props => [ - hostedUiException, - globalSignOutException, - revokeTokenException, - ]; + hostedUiException, + globalSignOutException, + revokeTokenException, + ]; @override SignOutStateType get type => SignOutStateType.partialFailure; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_up_state.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_up_state.dart index d0ca02ce3e..d6c14a8b1a 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_up_state.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/state/state/sign_up_state.dart @@ -44,9 +44,7 @@ sealed class SignUpState extends AuthState { const factory SignUpState.confirming() = SignUpConfirming; /// {@macro amplify_auth_cognito.sign_up_success} - const factory SignUpState.success({ - String? userId, - }) = SignUpSuccess; + const factory SignUpState.success({String? userId}) = SignUpSuccess; /// {@macro amplify_auth_cognito.sign_up_failure} const factory SignUpState.failure( @@ -128,9 +126,7 @@ final class SignUpConfirming extends SignUpState { /// {@endtemplate} final class SignUpSuccess extends SignUpState with SuccessState { /// {@macro amplify_auth_cognito.sign_up_success} - const SignUpSuccess({ - this.userId, - }) : super._(); + const SignUpSuccess({this.userId}) : super._(); /// The ID of the user. final String? userId; diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/util/cognito_iam_auth_provider.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/util/cognito_iam_auth_provider.dart index d657098259..c387a0e4f8 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/util/cognito_iam_auth_provider.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/util/cognito_iam_auth_provider.dart @@ -59,10 +59,7 @@ final class CognitoIamAuthProvider extends AWSIamAmplifyAuthProvider { final signer = AWSSigV4Signer( credentialsProvider: AWSCredentialsProvider(credentials), ); - final scope = AWSCredentialScope( - region: region, - service: service, - ); + final scope = AWSCredentialScope(region: region, service: service); // Finally, create and sign canonical request. return signer.sign( diff --git a/packages/auth/amplify_auth_cognito_dart/lib/src/util/credentials_providers.dart b/packages/auth/amplify_auth_cognito_dart/lib/src/util/credentials_providers.dart index 7be4be6cb3..7f22860a7e 100644 --- a/packages/auth/amplify_auth_cognito_dart/lib/src/util/credentials_providers.dart +++ b/packages/auth/amplify_auth_cognito_dart/lib/src/util/credentials_providers.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_auth_cognito.util.credentials_providers; +library; import 'dart:async'; diff --git a/packages/auth/amplify_auth_cognito_dart/pubspec.yaml b/packages/auth/amplify_auth_cognito_dart/pubspec.yaml index 41d9b97d68..123013f195 100644 --- a/packages/auth/amplify_auth_cognito_dart/pubspec.yaml +++ b/packages/auth/amplify_auth_cognito_dart/pubspec.yaml @@ -1,20 +1,20 @@ name: amplify_auth_cognito_dart description: A Dart-only implementation of the Amplify Auth plugin for Cognito. -version: 0.11.9 +version: 0.11.10 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/next/packages/auth/amplify_auth_cognito_dart issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - amplify_analytics_pinpoint_dart: ">=0.4.8 <0.5.0" - amplify_core: ">=2.6.1 <2.7.0" - amplify_secure_storage_dart: ">=0.5.4 <0.6.0" + amplify_analytics_pinpoint_dart: ">=0.4.9 <0.5.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_secure_storage_dart: ">=0.5.5 <0.6.0" async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" - aws_signature_v4: ">=0.6.4 <0.7.0" + aws_common: ">=0.7.7 <0.8.0" + aws_signature_v4: ">=0.6.5 <0.7.0" built_collection: ^5.0.0 built_value: ^8.6.0 clock: ^1.1.1 @@ -27,31 +27,31 @@ dependencies: intl: ">=0.18.0 <1.0.0" js: ">=0.6.4 <0.8.0" json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 oauth2: ^2.0.2 path: ">=1.8.0 <2.0.0" - smithy: ">=0.7.4 <0.8.0" - smithy_aws: ">=0.7.4 <0.8.0" + smithy: ">=0.7.5 <0.8.0" + smithy_aws: ">=0.7.5 <0.8.0" stream_transform: ^2.0.0 uuid: ">=3.0.6 <5.0.0" win32: ">=4.1.2 <6.0.0" - win32_registry: ^1.1.0 - worker_bee: ">=0.3.4 <0.4.0" + win32_registry: ^2.1.0 + worker_bee: ">=0.3.5 <0.4.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build: ^2.2.0 build_runner: ^2.4.9 build_verify: ^3.0.0 build_web_compilers: ^4.0.0 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 ffigen: ^9.0.0 - json_serializable: 6.8.0 + json_serializable: ^6.9.4 mockito: ^5.0.0 smithy_codegen: path: ../../smithy/smithy_codegen test: ^1.22.1 - worker_bee_builder: ">=0.3.3 <0.4.0" + worker_bee_builder: ">=0.3.4 <0.4.0" flutter: assets: diff --git a/packages/auth/amplify_auth_cognito_dart/test/ensure_build_test.dart b/packages/auth/amplify_auth_cognito_dart/test/ensure_build_test.dart index 094ea7ec6d..4304cc6847 100644 --- a/packages/auth/amplify_auth_cognito_dart/test/ensure_build_test.dart +++ b/packages/auth/amplify_auth_cognito_dart/test/ensure_build_test.dart @@ -3,6 +3,7 @@ @TestOn('vm') @Tags(['build']) +library; import 'package:build_verify/build_verify.dart'; import 'package:test/test.dart'; diff --git a/packages/auth/amplify_auth_cognito_dart/test/sdk/sdk_exception_test.dart b/packages/auth/amplify_auth_cognito_dart/test/sdk/sdk_exception_test.dart index 4fae45933d..67684ca918 100644 --- a/packages/auth/amplify_auth_cognito_dart/test/sdk/sdk_exception_test.dart +++ b/packages/auth/amplify_auth_cognito_dart/test/sdk/sdk_exception_test.dart @@ -48,16 +48,8 @@ void main() { // UserLambdaValidationException from the SDK should be mapped to // UserLambdaValidationException from Amplify isA() - .having( - (e) => e.lambdaName, - 'lambdaName', - lambdaName, - ) - .having( - (e) => e.message, - 'message', - lambdaMessage, - ), + .having((e) => e.lambdaName, 'lambdaName', lambdaName) + .having((e) => e.message, 'message', lambdaMessage), ); }); @@ -67,16 +59,8 @@ void main() { expect( transformed, isA() - .having( - (e) => e.lambdaName, - 'lambdaName', - lambdaName, - ) - .having( - (e) => e.message, - 'message', - lambdaMessage, - ), + .having((e) => e.lambdaName, 'lambdaName', lambdaName) + .having((e) => e.message, 'message', lambdaMessage), ); }); @@ -93,10 +77,7 @@ void main() { final networkException = AWSHttpException( AWSHttpRequest.get(Uri.parse('https://example.com')), ); - expect( - transformSdkException(networkException), - isA(), - ); + expect(transformSdkException(networkException), isA()); }); }); } @@ -113,10 +94,8 @@ class UnhandledException implements SmithyException { RetryConfig? get retryConfig => null; @override - ShapeId? get shapeId => const ShapeId( - shape: 'UnhandledException', - namespace: '', - ); + ShapeId? get shapeId => + const ShapeId(shape: 'UnhandledException', namespace: ''); @override Exception? get underlyingException => null; diff --git a/packages/auth/amplify_auth_cognito_dart/tool/generate_sdk_exceptions.dart b/packages/auth/amplify_auth_cognito_dart/tool/generate_sdk_exceptions.dart index 916de193e5..72e4b343cd 100755 --- a/packages/auth/amplify_auth_cognito_dart/tool/generate_sdk_exceptions.dart +++ b/packages/auth/amplify_auth_cognito_dart/tool/generate_sdk_exceptions.dart @@ -36,7 +36,7 @@ void main(List args) async { // Generated with tool/generate_sdk_exceptions.dart. Do not modify by hand. /// Exception types bridged from generated SDKs to their legacy counterparts. -library amplify_auth_cognito_dart.sdk.sdk_exception; +library; import 'package:amplify_core/amplify_core.dart' as core; import 'package:meta/meta.dart'; @@ -120,12 +120,13 @@ final class UnknownServiceException extends CognitoServiceException ); final operationShapes = ast.shapes.values.whereType(); // Find error shapes which are attached to an operation we use. - final errorShapes = - ast.shapes.values.where((s) => s.hasTrait()).where( - (e) => operationShapes.any( - (o) => o.errors.map((ref) => ref.target).contains(e.shapeId), - ), - ); + final errorShapes = ast.shapes.values + .where((s) => s.hasTrait()) + .where( + (e) => operationShapes.any( + (o) => o.errors.map((ref) => ref.target).contains(e.shapeId), + ), + ); final uniqueErrorShapes = LinkedHashSet( equals: (a, b) => a.shapeId.shape == b.shapeId.shape, hashCode: (s) => s.shapeId.shape.hashCode, diff --git a/packages/auth/amplify_auth_cognito_test/lib/amplify_auth_cognito_test.dart b/packages/auth/amplify_auth_cognito_test/lib/amplify_auth_cognito_test.dart index 889721adf3..f3bb042b1a 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/amplify_auth_cognito_test.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/amplify_auth_cognito_test.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Tests for the `amplify_auth_cognito_dart` package. -library amplify_auth_cognito_test; +library; export 'common/jwt.dart'; export 'common/matchers.dart'; diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/jwt.dart b/packages/auth/amplify_auth_cognito_test/lib/common/jwt.dart index 34f3151e60..25e3b69db6 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/jwt.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/jwt.dart @@ -11,17 +11,13 @@ JsonWebToken createJwt({ required Duration expiration, }) { return JsonWebToken( - header: const JsonWebHeader( - algorithm: Algorithm.rsaSha256, - ), - claims: JsonWebClaims.fromJson( - { - 'sub': userSub, - if (type == TokenType.access) 'username': username, - if (type == TokenType.id) 'cognito:username': username, - 'exp': (DateTime.now().add(expiration)).millisecondsSinceEpoch ~/ 1000, - }, - ), + header: const JsonWebHeader(algorithm: Algorithm.rsaSha256), + claims: JsonWebClaims.fromJson({ + 'sub': userSub, + if (type == TokenType.access) 'username': username, + if (type == TokenType.id) 'cognito:username': username, + 'exp': (DateTime.now().add(expiration)).millisecondsSinceEpoch ~/ 1000, + }), signature: const [], ); } diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/mock_clients.dart b/packages/auth/amplify_auth_cognito_test/lib/common/mock_clients.dart index 4461571da4..db541cc966 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/mock_clients.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/mock_clients.dart @@ -10,9 +10,7 @@ import 'package:smithy/src/operation.dart'; SmithyOperation mockSmithyOperation(FutureOr Function() fn) => SmithyOperation( - CancelableOperation.fromFuture( - Future.value(fn()), - ), + CancelableOperation.fromFuture(Future.value(fn())), operationName: '', requestProgress: const Stream.empty(), responseProgress: const Stream.empty(), @@ -39,14 +37,15 @@ class MockCognitoIdentityProviderClient Future Function()? getDevice, Future Function()? getUser, Future Function()? - getUserAttributeVerificationCode, + getUserAttributeVerificationCode, Future Function()? globalSignOut, Future Function(InitiateAuthRequest)? initiateAuth, Future Function()? listDevices, Future Function()? resendConfirmationCode, Future Function( RespondToAuthChallengeRequest, - )? respondToAuthChallenge, + )? + respondToAuthChallenge, Future Function()? revokeToken, Future Function()? signUp, Future Function()? updateDeviceStatus, @@ -54,36 +53,36 @@ class MockCognitoIdentityProviderClient Future Function()? verifySoftwareToken, Future Function()? verifyUserAttribute, Future Function()? setUserMfaPreference, - }) : _associateSoftwareToken = associateSoftwareToken, - _changePassword = changePassword, - _confirmDevice = confirmDevice, - _confirmForgotPassword = confirmForgotPassword, - _confirmSignUp = confirmSignUp, - _deleteUser = deleteUser, - _forgetDevice = forgetDevice, - _forgotPassword = forgotPassword, - _getDevice = getDevice, - _getUser = getUser, - _getUserAttributeVerificationCode = getUserAttributeVerificationCode, - _globalSignOut = globalSignOut, - _initiateAuth = initiateAuth, - _listDevices = listDevices, - _resendConfirmationCode = resendConfirmationCode, - _respondToAuthChallenge = respondToAuthChallenge, - _revokeToken = revokeToken, - _signUp = signUp, - _updateDeviceStatus = updateDeviceStatus, - _updateUserAttributes = updateUserAttributes, - _verifySoftwareToken = verifySoftwareToken, - _verifyUserAttribute = verifyUserAttribute, - _setUserMfaPreference = setUserMfaPreference; + }) : _associateSoftwareToken = associateSoftwareToken, + _changePassword = changePassword, + _confirmDevice = confirmDevice, + _confirmForgotPassword = confirmForgotPassword, + _confirmSignUp = confirmSignUp, + _deleteUser = deleteUser, + _forgetDevice = forgetDevice, + _forgotPassword = forgotPassword, + _getDevice = getDevice, + _getUser = getUser, + _getUserAttributeVerificationCode = getUserAttributeVerificationCode, + _globalSignOut = globalSignOut, + _initiateAuth = initiateAuth, + _listDevices = listDevices, + _resendConfirmationCode = resendConfirmationCode, + _respondToAuthChallenge = respondToAuthChallenge, + _revokeToken = revokeToken, + _signUp = signUp, + _updateDeviceStatus = updateDeviceStatus, + _updateUserAttributes = updateUserAttributes, + _verifySoftwareToken = verifySoftwareToken, + _verifyUserAttribute = verifyUserAttribute, + _setUserMfaPreference = setUserMfaPreference; final Future Function()? - _associateSoftwareToken; + _associateSoftwareToken; final Future Function()? _changePassword; final Future Function()? _confirmDevice; final Future Function()? - _confirmForgotPassword; + _confirmForgotPassword; final Future Function()? _confirmSignUp; final Future Function()? _deleteUser; final Future Function()? _forgetDevice; @@ -91,16 +90,17 @@ class MockCognitoIdentityProviderClient final Future Function()? _getDevice; final Future Function()? _getUser; final Future Function()? - _getUserAttributeVerificationCode; + _getUserAttributeVerificationCode; final Future Function()? _globalSignOut; final Future Function(InitiateAuthRequest)? - _initiateAuth; + _initiateAuth; final Future Function()? _listDevices; final Future Function()? - _resendConfirmationCode; + _resendConfirmationCode; final Future Function( RespondToAuthChallengeRequest, - )? _respondToAuthChallenge; + )? + _respondToAuthChallenge; final Future Function()? _revokeToken; final Future Function()? _signUp; final Future Function()? _updateDeviceStatus; @@ -114,203 +114,180 @@ class MockCognitoIdentityProviderClient AssociateSoftwareTokenRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_associateSoftwareToken); + }) => _mockIfProvided(_associateSoftwareToken); @override SmithyOperation changePassword( ChangePasswordRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_changePassword); + }) => _mockIfProvided(_changePassword); @override SmithyOperation confirmDevice( ConfirmDeviceRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_confirmDevice); + }) => _mockIfProvided(_confirmDevice); @override SmithyOperation confirmForgotPassword( ConfirmForgotPasswordRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_confirmForgotPassword); + }) => _mockIfProvided(_confirmForgotPassword); @override SmithyOperation confirmSignUp( ConfirmSignUpRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_confirmSignUp); + }) => _mockIfProvided(_confirmSignUp); @override SmithyOperation deleteUser( DeleteUserRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_deleteUser); + }) => _mockIfProvided(_deleteUser); @override SmithyOperation forgetDevice( ForgetDeviceRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_forgetDevice); + }) => _mockIfProvided(_forgetDevice); @override SmithyOperation forgotPassword( ForgotPasswordRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_forgotPassword); + }) => _mockIfProvided(_forgotPassword); @override SmithyOperation getDevice( GetDeviceRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_getDevice); + }) => _mockIfProvided(_getDevice); @override SmithyOperation getUser( GetUserRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_getUser); + }) => _mockIfProvided(_getUser); @override SmithyOperation - getUserAttributeVerificationCode( + getUserAttributeVerificationCode( GetUserAttributeVerificationCodeRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_getUserAttributeVerificationCode); + }) => _mockIfProvided(_getUserAttributeVerificationCode); @override SmithyOperation globalSignOut( GlobalSignOutRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_globalSignOut); + }) => _mockIfProvided(_globalSignOut); @override SmithyOperation initiateAuth( InitiateAuthRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided( - _initiateAuth == null ? null : () => _initiateAuth(input), - ); + }) => _mockIfProvided( + _initiateAuth == null ? null : () => _initiateAuth(input), + ); @override SmithyOperation listDevices( ListDevicesRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_listDevices); + }) => _mockIfProvided(_listDevices); @override SmithyOperation resendConfirmationCode( ResendConfirmationCodeRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_resendConfirmationCode); + }) => _mockIfProvided(_resendConfirmationCode); @override SmithyOperation respondToAuthChallenge( RespondToAuthChallengeRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided( - _respondToAuthChallenge == null - ? null - : () => _respondToAuthChallenge(input), - ); + }) => _mockIfProvided( + _respondToAuthChallenge == null + ? null + : () => _respondToAuthChallenge(input), + ); @override SmithyOperation revokeToken( RevokeTokenRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_revokeToken); + }) => _mockIfProvided(_revokeToken); @override SmithyOperation signUp( SignUpRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_signUp); + }) => _mockIfProvided(_signUp); @override SmithyOperation updateDeviceStatus( UpdateDeviceStatusRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_updateDeviceStatus); + }) => _mockIfProvided(_updateDeviceStatus); @override SmithyOperation updateUserAttributes( UpdateUserAttributesRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_updateUserAttributes); + }) => _mockIfProvided(_updateUserAttributes); @override SmithyOperation verifySoftwareToken( VerifySoftwareTokenRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_verifySoftwareToken); + }) => _mockIfProvided(_verifySoftwareToken); @override SmithyOperation verifyUserAttribute( VerifyUserAttributeRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_verifyUserAttribute); + }) => _mockIfProvided(_verifyUserAttribute); @override SmithyOperation setUserMfaPreference( SetUserMfaPreferenceRequest input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_setUserMfaPreference); + }) => _mockIfProvided(_setUserMfaPreference); } class MockCognitoIdentityClient implements CognitoIdentityClient { MockCognitoIdentityClient({ Future Function()? - getCredentialsForIdentity, + getCredentialsForIdentity, Future Function()? getId, - }) : _getCredentialsForIdentity = getCredentialsForIdentity, - _getId = getId; + }) : _getCredentialsForIdentity = getCredentialsForIdentity, + _getId = getId; final Future Function()? - _getCredentialsForIdentity; + _getCredentialsForIdentity; final Future Function()? _getId; @override @@ -318,14 +295,12 @@ class MockCognitoIdentityClient implements CognitoIdentityClient { GetCredentialsForIdentityInput input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_getCredentialsForIdentity); + }) => _mockIfProvided(_getCredentialsForIdentity); @override SmithyOperation getId( GetIdInput input, { AWSHttpClient? client, AWSCredentialsProvider? credentialsProvider, - }) => - _mockIfProvided(_getId); + }) => _mockIfProvided(_getId); } diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/mock_config.dart b/packages/auth/amplify_auth_cognito_test/lib/common/mock_config.dart index b97d31348a..9bc997cb69 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/mock_config.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/mock_config.dart @@ -102,9 +102,7 @@ const idToken = JsonWebToken( header: JsonWebHeader(algorithm: Algorithm.hmacSha256), claims: JsonWebClaims( subject: userSub, - customClaims: { - 'cognito:username': username, - }, + customClaims: {'cognito:username': username}, ), signature: [], ); @@ -113,9 +111,7 @@ final accessToken = JsonWebToken( claims: JsonWebClaims( subject: userSub, expiration: expiration, - customClaims: const { - 'username': username, - }, + customClaims: const {'username': username}, ), signature: const [], ); @@ -131,10 +127,13 @@ final mockConfigWithPinpoint = AmplifyOutputs.fromJson( ); final userPoolKeys = CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!); -final deviceKeys = - CognitoDeviceKeys(mockConfig.auth!.userPoolClientId!, userSub); -final identityPoolKeys = - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!); +final deviceKeys = CognitoDeviceKeys( + mockConfig.auth!.userPoolClientId!, + userSub, +); +final identityPoolKeys = CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, +); final userPoolTokens = CognitoUserPoolTokens( accessToken: accessToken, idToken: idToken, diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/mock_dispatcher.dart b/packages/auth/amplify_auth_cognito_test/lib/common/mock_dispatcher.dart index 28d5d09f7e..1f37575731 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/mock_dispatcher.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/mock_dispatcher.dart @@ -5,9 +5,7 @@ import 'package:amplify_auth_cognito_dart/src/state/state.dart'; import 'package:amplify_core/amplify_core.dart'; class MockDispatcher with Dispatcher { - const MockDispatcher({ - this.onDispatch, - }); + const MockDispatcher({this.onDispatch}); final EventCompleter? Function(AuthEvent)? onDispatch; diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/mock_hosted_ui.dart b/packages/auth/amplify_auth_cognito_test/lib/common/mock_hosted_ui.dart index 70103e1ccf..7435bf23c5 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/mock_hosted_ui.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/mock_hosted_ui.dart @@ -8,16 +8,18 @@ import 'package:amplify_auth_cognito_dart/src/flows/hosted_ui/hosted_ui_platform if (dart.library.io) 'package:amplify_auth_cognito_dart/src/flows/hosted_ui/hosted_ui_platform_io.dart'; import 'package:amplify_core/amplify_core.dart'; -typedef SignInFn = Future Function( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, - AuthProvider? provider, -); +typedef SignInFn = + Future Function( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + AuthProvider? provider, + ); -typedef SignOutFn = Future Function( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, -); +typedef SignOutFn = + Future Function( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + ); HostedUiPlatformFactory createHostedUiFactory({ required SignInFn signIn, @@ -37,8 +39,8 @@ class MockHostedUiPlatform extends HostedUiPlatformImpl { super.dependencyManager, { required SignInFn signIn, required SignOutFn signOut, - }) : _signIn = signIn, - _signOut = signOut; + }) : _signIn = signIn, + _signOut = signOut; final SignInFn _signIn; final SignOutFn _signOut; @@ -47,14 +49,12 @@ class MockHostedUiPlatform extends HostedUiPlatformImpl { Future signIn({ required CognitoSignInWithWebUIPluginOptions options, AuthProvider? provider, - }) => - _signIn(this, options, provider); + }) => _signIn(this, options, provider); @override Future signOut({ required CognitoSignInWithWebUIPluginOptions options, - }) => - _signOut(this, options); + }) => _signOut(this, options); @override Uri get signInRedirectUri => diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/mock_legacy_credential_provider.dart b/packages/auth/amplify_auth_cognito_test/lib/common/mock_legacy_credential_provider.dart index db9a6a8b5f..dcb549cb27 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/mock_legacy_credential_provider.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/mock_legacy_credential_provider.dart @@ -7,14 +7,12 @@ import 'package:amplify_core/src/config/amplify_outputs/auth/auth_outputs.dart'; class MockLegacyCredentialProvider implements LegacyCredentialProvider { MockLegacyCredentialProvider({CredentialStoreData? initialData}) - : data = initialData; + : data = initialData; CredentialStoreData? data; @override - Future deleteLegacyCredentials( - AuthOutputs authOutputs, - ) async { + Future deleteLegacyCredentials(AuthOutputs authOutputs) async { data = null; } diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/mock_oauth_server.dart b/packages/auth/amplify_auth_cognito_test/lib/common/mock_oauth_server.dart index 61698562f2..5c9b089531 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/mock_oauth_server.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/mock_oauth_server.dart @@ -50,8 +50,8 @@ class MockOAuthServer { MockOAuthServer({ MockClientHandler? tokenHandler, MockClientHandler? authorizeHandler, - }) : _tokenHandler = tokenHandler, - _authorizeHandler = authorizeHandler; + }) : _tokenHandler = tokenHandler, + _authorizeHandler = authorizeHandler; static MockClientHandler _createHandler({ MockClientHandler? tokenHandler, @@ -74,11 +74,11 @@ class MockOAuthServer { } MockClient get httpClient => MockClient( - _createHandler( - tokenHandler: tokenHandler, - authorizeHandler: authorizeHandler, - ), - ); + _createHandler( + tokenHandler: tokenHandler, + authorizeHandler: authorizeHandler, + ), + ); Future authorize(Uri authorizationUri) async { final resp = await httpClient.get(authorizationUri); @@ -93,57 +93,51 @@ class MockOAuthServer { late final MockClientHandler tokenHandler = _tokenHandler ?? createTokenHandler(); static MockClientHandler createTokenHandler() => (Request request) async { - final query = request.bodyFields; + final query = request.bodyFields; - final code = query[paramCode]; - if (code == null) { - return _missingParameter(paramCode, state: null); - } - final redirectUri = query[paramRedirectURI]; - if (redirectUri == null) { - return _missingParameter(paramRedirectURI, state: null); - } - final codeVerifier = query[paramCodeVerifier]; - if (codeVerifier == null) { - return _missingParameter(paramCodeVerifier, state: null); - } + final code = query[paramCode]; + if (code == null) { + return _missingParameter(paramCode, state: null); + } + final redirectUri = query[paramRedirectURI]; + if (redirectUri == null) { + return _missingParameter(paramRedirectURI, state: null); + } + final codeVerifier = query[paramCodeVerifier]; + if (codeVerifier == null) { + return _missingParameter(paramCodeVerifier, state: null); + } - final session = _pendingRequests[code]; - if (session == null) { - return _invalidRequest(); - } - if (session.authCode != code) { - return _invalidRequest(); - } - if (session.redirectUri != Uri.tryParse(redirectUri)) { - return _invalidRequest(); - } + final session = _pendingRequests[code]; + if (session == null) { + return _invalidRequest(); + } + if (session.authCode != code) { + return _invalidRequest(); + } + if (session.redirectUri != Uri.tryParse(redirectUri)) { + return _invalidRequest(); + } + + const exp = Duration(minutes: 5); + final jwt = createJwt(type: TokenType.access, expiration: exp); + final refreshToken = uuid(); + final idToken = createJwt(type: TokenType.id, expiration: exp); + final response = { + 'token_type': 'bearer', + 'access_token': jwt, + 'refresh_token': refreshToken, + 'id_token': idToken, + 'expires_in': exp.inSeconds, + 'scope': session.scope, + }; - const exp = Duration(minutes: 5); - final jwt = createJwt( - type: TokenType.access, - expiration: exp, - ); - final refreshToken = uuid(); - final idToken = createJwt( - type: TokenType.id, - expiration: exp, - ); - final response = { - 'token_type': 'bearer', - 'access_token': jwt, - 'refresh_token': refreshToken, - 'id_token': idToken, - 'expires_in': exp.inSeconds, - 'scope': session.scope, - }; - - return Response( - jsonEncode(response), - 200, - headers: {'content-type': 'application/json'}, - ); - }; + return Response( + jsonEncode(response), + 200, + headers: {'content-type': 'application/json'}, + ); + }; final MockClientHandler? _authorizeHandler; Future authorizeHandler(Request request) async { @@ -192,10 +186,7 @@ class MockOAuthServer { _pendingRequests[authCode] = session; return Response( - jsonEncode({ - paramCode: authCode, - paramState: state, - }), + jsonEncode({paramCode: authCode, paramState: state}), 200, headers: {'content-type': 'application/json'}, ); @@ -234,9 +225,7 @@ class MockOAuthServer { static Response _invalidRequest() { return Response( - jsonEncode({ - paramError: 'Invalid request', - }), + jsonEncode({paramError: 'Invalid request'}), 400, headers: {'content-type': 'application/json'}, ); diff --git a/packages/auth/amplify_auth_cognito_test/lib/common/mock_secure_storage.dart b/packages/auth/amplify_auth_cognito_test/lib/common/mock_secure_storage.dart index 4af296a221..4925d8fa30 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/common/mock_secure_storage.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/common/mock_secure_storage.dart @@ -49,10 +49,7 @@ void seedStorage( } if (deviceKeys != null) { secureStorage - ..write( - key: deviceKeys[CognitoDeviceKey.deviceKey], - value: deviceKey, - ) + ..write(key: deviceKeys[CognitoDeviceKey.deviceKey], value: deviceKey) ..write( key: deviceKeys[CognitoDeviceKey.deviceGroupKey], value: deviceGroupKey, @@ -91,14 +88,8 @@ void seedStorage( key: hostedUiKeys[HostedUiKey.accessToken], value: accessToken.raw, ) - ..write( - key: hostedUiKeys[HostedUiKey.refreshToken], - value: refreshToken, - ) - ..write( - key: hostedUiKeys[HostedUiKey.idToken], - value: idToken.raw, - ); + ..write(key: hostedUiKeys[HostedUiKey.refreshToken], value: refreshToken) + ..write(key: hostedUiKeys[HostedUiKey.idToken], value: idToken.raw); } if (version != null) { secureStorage.write( diff --git a/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_client.dart b/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_client.dart index 1d29a5b1ea..f52c3b0e3d 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_client.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_client.dart @@ -21,9 +21,7 @@ class HostedUiClient implements Closeable { unawaited(client.listen()); _logger.debug('Configuring...'); - await client.sendRequest('configure', { - 'config': amplifyConfig, - }); + await client.sendRequest('configure', {'config': amplifyConfig}); _logger.debug('Successfully configured'); return HostedUiClient._(client); } diff --git a/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_common.dart b/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_common.dart index 3975a890e1..eeecaa5083 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_common.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_common.dart @@ -51,7 +51,8 @@ Future createWebDriver({bool headless = false}) async { if (headless) '--headless', ], 'perfLoggingPrefs': { - 'traceCategories': 'devtools.timeline,' + 'traceCategories': + 'devtools.timeline,' 'v8,blink.console,benchmark,blink,' 'blink.user_timing', }, @@ -60,9 +61,7 @@ Future createWebDriver({bool headless = false}) async { ); // Listen to the browser's console logs and forward them to our logger. - driver.logs.get(LogType.browser).listen( - (log) => _chromeLogger.info('$log'), - ); + driver.logs.get(LogType.browser).listen((log) => _chromeLogger.info('$log')); return driver; } @@ -104,8 +103,7 @@ extension HostedUiWebDriver on WebDriver { required String username, required String password, }) async { - await execute( - ''' + await execute(''' const usernameInput = document.getElementById('signInFormUsername'); usernameInput.scrollIntoView(); usernameInput.value = '$username'; @@ -117,9 +115,7 @@ passwordInput.value = '$password'; const loginButton = document.getElementsByName('signInSubmitButton')[0]; loginButton.scrollIntoView(); loginButton.click(); -''', - [], - ); +''', []); await locationChanges.firstWhere((uri) => uri.host == 'localhost'); } diff --git a/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_server.dart b/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_server.dart index bdd072a9fc..37ccd1e3fb 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_server.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/hosted_ui/hosted_ui_server.dart @@ -43,16 +43,15 @@ class HostedUiServer implements Closeable { webSocket as WebSocketChannel; completer.setChannel(webSocket.cast()); }); - final handler = const Pipeline().addMiddleware( - logRequests( - logger: (message, isError) { - _logger.log( - isError ? LogLevel.error : LogLevel.debug, - message, - ); - }, - ), - ).addHandler(wsHandler); + final handler = const Pipeline() + .addMiddleware( + logRequests( + logger: (message, isError) { + _logger.log(isError ? LogLevel.error : LogLevel.debug, message); + }, + ), + ) + .addHandler(wsHandler); final server = await shelf_io.serve(handler, rpcUri.host, rpcUri.port); final rpcServer = Server(completer.channel); @@ -81,15 +80,16 @@ class HostedUiServer implements Closeable { await Amplify.addPlugin( AmplifyAuthCognitoDart( // ignore: invalid_use_of_visible_for_testing_member - secureStorageFactory: (scope) => AmplifySecureStorageWorker( - config: AmplifySecureStorageConfig.byNamespace( - namespace: webDatabaseName, - ).rebuild((config) { - // enabling useDataProtection requires adding the app to an - // app group, which requires setting a development team - config.macOSOptions.useDataProtection = false; - }), - ), + secureStorageFactory: + (scope) => AmplifySecureStorageWorker( + config: AmplifySecureStorageConfig.byNamespace( + namespace: webDatabaseName, + ).rebuild((config) { + // enabling useDataProtection requires adding the app to an + // app group, which requires setting a development team + config.macOSOptions.useDataProtection = false; + }), + ), hostedUiPlatformFactory: (manager) => _HostedUiPlatform(manager, this), ), ); @@ -99,22 +99,18 @@ class HostedUiServer implements Closeable { Future> _signIn(Parameters parameters) async { final username = parameters['username'].asString; final password = parameters['password'].asString; - final result = await _plugin.signIn( - username: username, - password: password, - ); + final result = await _plugin.signIn(username: username, password: password); return result.toJson(); } Future _signInWithWebUI(Parameters parameters) async { final provider = parameters['provider']; - final authProvider = provider.exists - ? AuthProvider.fromJson(provider.asMap.cast()) - : AuthProvider.cognito; + final authProvider = + provider.exists + ? AuthProvider.fromJson(provider.asMap.cast()) + : AuthProvider.cognito; _urlCompleter = Completer(); - unawaited( - _currentSignIn = _plugin.signInWithWebUI(provider: authProvider), - ); + unawaited(_currentSignIn = _plugin.signInWithWebUI(provider: authProvider)); final url = await _urlCompleter.future; return url; } diff --git a/packages/auth/amplify_auth_cognito_test/lib/src/asf/asf_tests.dart b/packages/auth/amplify_auth_cognito_test/lib/src/asf/asf_tests.dart index 3cbdcece23..d1884cbb3b 100644 --- a/packages/auth/amplify_auth_cognito_test/lib/src/asf/asf_tests.dart +++ b/packages/auth/amplify_auth_cognito_test/lib/src/asf/asf_tests.dart @@ -12,7 +12,7 @@ void runAsfDeviceInfoTests([DependencyManager Function()? getManager]) { test('ASFDeviceInfo', () async { final deviceInfo = getManager?.call().getOrCreate() ?? - ASFDeviceInfoCollector(); + ASFDeviceInfoCollector(); final contextData = await deviceInfo.getNativeContextData(); _logger.debug('Got context data: $contextData'); expect( diff --git a/packages/auth/amplify_auth_cognito_test/pubspec.yaml b/packages/auth/amplify_auth_cognito_test/pubspec.yaml index 7c55a3a1c6..fe8ce8ef07 100644 --- a/packages/auth/amplify_auth_cognito_test/pubspec.yaml +++ b/packages/auth/amplify_auth_cognito_test/pubspec.yaml @@ -3,7 +3,7 @@ description: Tests for the amplify_auth_cognito_dart package. publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_analytics_pinpoint_dart: any diff --git a/packages/auth/amplify_auth_cognito_test/test/credentials/auth_plugin_credentials_provider_test.dart b/packages/auth/amplify_auth_cognito_test/test/credentials/auth_plugin_credentials_provider_test.dart index a8c606d8d4..5ac872eccc 100644 --- a/packages/auth/amplify_auth_cognito_test/test/credentials/auth_plugin_credentials_provider_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/credentials/auth_plugin_credentials_provider_test.dart @@ -20,25 +20,26 @@ void main() { late CognitoAuthStateMachine stateMachine; setUp(() async { - stateMachine = CognitoAuthStateMachine() - ..addBuilder((_) => MockSecureStorage()) - ..dispatch(ConfigurationEvent.configure(mockConfig)).ignore(); + stateMachine = + CognitoAuthStateMachine() + ..addBuilder((_) => MockSecureStorage()) + ..dispatch(ConfigurationEvent.configure(mockConfig)).ignore(); provider = AuthPluginCredentialsProviderImpl(stateMachine); await stateMachine.stream.firstWhere((state) => state is Configured); stateMachine.addInstance( MockCognitoIdentityClient( - getCredentialsForIdentity: () async => - GetCredentialsForIdentityResponse( - credentials: Credentials( - accessKeyId: accessKeyId, - secretKey: secretAccessKey, - sessionToken: sessionToken, - expiration: expiration, - ), - identityId: identityId, - ), + getCredentialsForIdentity: + () async => GetCredentialsForIdentityResponse( + credentials: Credentials( + accessKeyId: accessKeyId, + secretKey: secretAccessKey, + sessionToken: sessionToken, + expiration: expiration, + ), + identityId: identityId, + ), getId: () async => GetIdResponse(identityId: identityId), ), ); @@ -49,12 +50,9 @@ void main() { }); test('handles concurrent requests', () async { - final allCreds = await Future.wait( - [ - for (var i = 0; i < 10; i++) provider.retrieve(), - ], - eagerError: false, - ); + final allCreds = await Future.wait([ + for (var i = 0; i < 10; i++) provider.retrieve(), + ], eagerError: false); final expectedCreds = AWSCredentials( accessKeyId, @@ -69,10 +67,7 @@ void main() { test('fails when fetching from within state machine', () async { expect( - runZoned( - () => provider.retrieve(), - zoneValues: {zInFetch: true}, - ), + runZoned(() => provider.retrieve(), zoneValues: {zInFetch: true}), throwsA(isA()), ); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/crypto/crypto_test.dart b/packages/auth/amplify_auth_cognito_test/test/crypto/crypto_test.dart index f4c389a0b8..2bac73ce30 100644 --- a/packages/auth/amplify_auth_cognito_test/test/crypto/crypto_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/crypto/crypto_test.dart @@ -26,10 +26,7 @@ void main() { ]; for (final t in tests) { - expect( - BigInt.parse(t.hex, radix: 16), - equals(BigInt.from(t.val)), - ); + expect(BigInt.parse(t.hex, radix: 16), equals(BigInt.from(t.val))); } }); diff --git a/packages/auth/amplify_auth_cognito_test/test/flows/device/confirm_device_worker_test.dart b/packages/auth/amplify_auth_cognito_test/test/flows/device/confirm_device_worker_test.dart index 5abab30ecf..438d7d3c51 100644 --- a/packages/auth/amplify_auth_cognito_test/test/flows/device/confirm_device_worker_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/flows/device/confirm_device_worker_test.dart @@ -20,17 +20,15 @@ void main() { worker.logs.listen(safePrint); await worker.spawn(); final message = ConfirmDeviceMessage( - (b) => b - ..accessToken = accessToken.raw - ..newDeviceMetadata.deviceKey = 'deviceKey' - ..newDeviceMetadata.deviceGroupKey = 'deviceGroupKey', + (b) => + b + ..accessToken = accessToken.raw + ..newDeviceMetadata.deviceKey = 'deviceKey' + ..newDeviceMetadata.deviceGroupKey = 'deviceGroupKey', ); worker.add(message); - expect( - worker.stream, - emits(isA()), - ); + expect(worker.stream, emits(isA())); }); test('failure', () async { @@ -44,14 +42,8 @@ void main() { ); worker.add(message); - expect( - worker.result, - completion(isA()), - ); - await expectLater( - worker.stream, - emitsError(isA()), - ); + expect(worker.result, completion(isA())); + await expectLater(worker.stream, emitsError(isA())); unawaited(worker.close()); }); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_io_test.dart b/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_io_test.dart index 20efc8786b..43be28d806 100644 --- a/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_io_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_io_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('windows || mac-os || linux') +library; import 'dart:async'; import 'dart:io'; @@ -55,8 +56,8 @@ void main() { test('selects from multiple URIs when a port is blocked', () async { final platform = createHostedUiFactory( signIn: expectAsync3((platform, options, provider) async { - final boundServer = - await (platform as HostedUiPlatformImpl).localConnect(uris); + final boundServer = await (platform as HostedUiPlatformImpl) + .localConnect(uris); addTearDown(() => boundServer.server.close(force: true)); expect(boundServer.uri, equals(uris[1])); }), @@ -68,34 +69,31 @@ void main() { uris[0].port, ); addTearDown(() => server.close(force: true)); - await platform(dependencyManager).signIn( - options: const CognitoSignInWithWebUIPluginOptions(), - ); + await platform( + dependencyManager, + ).signIn(options: const CognitoSignInWithWebUIPluginOptions()); }); test('multiple calls do not fail', () async { final platform = createHostedUiFactory( - signIn: expectAsync3( - count: 2, - (platform, options, provider) async { - final boundServer = - await (platform as HostedUiPlatformImpl).localConnect(uris); - addTearDown(() => boundServer.server.close(force: true)); - }, - ), + signIn: expectAsync3(count: 2, (platform, options, provider) async { + final boundServer = await (platform as HostedUiPlatformImpl) + .localConnect(uris); + addTearDown(() => boundServer.server.close(force: true)); + }), signOut: (platform, options) => throw UnimplementedError(), ); await expectLater( - platform(dependencyManager).signIn( - options: const CognitoSignInWithWebUIPluginOptions(), - ), + platform( + dependencyManager, + ).signIn(options: const CognitoSignInWithWebUIPluginOptions()), completes, ); await expectLater( - platform(dependencyManager).signIn( - options: const CognitoSignInWithWebUIPluginOptions(), - ), + platform( + dependencyManager, + ).signIn(options: const CognitoSignInWithWebUIPluginOptions()), completes, ); }); @@ -118,9 +116,9 @@ void main() { ); addTearDown(() => server.close(force: true)); } - await platform(dependencyManager).signIn( - options: const CognitoSignInWithWebUIPluginOptions(), - ); + await platform( + dependencyManager, + ).signIn(options: const CognitoSignInWithWebUIPluginOptions()); }); }); @@ -140,8 +138,9 @@ void main() { final hostedUiPlatform = MockHostedUiPlatform(dependencyManager); final redirect = Uri.parse( - mockConfig.auth!.oauth!.redirectSignInUri - .firstWhere((uri) => uri.contains('localhost')), + mockConfig.auth!.oauth!.redirectSignInUri.firstWhere( + (uri) => uri.contains('localhost'), + ), ); expect(hostedUiPlatform.signInRedirectUri, redirect); expect(hostedUiPlatform.signOutRedirectUri, redirect); @@ -158,10 +157,14 @@ void main() { await expectLater( client.get(redirect), completion( - isA() - .having((res) => res.statusCode, 'statusCode', isNot(200)), + isA().having( + (res) => res.statusCode, + 'statusCode', + isNot(200), + ), ), - reason: 'Local server should be running and able to accept ' + reason: + 'Local server should be running and able to accept ' 'requests. Should return 4xx for anything but a success/error ' 'redirect.', ); @@ -172,8 +175,11 @@ void main() { await expectLater( client.get(successRedirect), completion( - isA() - .having((res) => res.statusCode, 'statusCode', 200), + isA().having( + (res) => res.statusCode, + 'statusCode', + 200, + ), ), reason: "Server won't close until a valid redirect is performed", ); diff --git a/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_test.dart b/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_test.dart index bc32a16697..3c10400127 100644 --- a/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/flows/hostedui/hosted_ui_platform_test.dart @@ -34,11 +34,14 @@ void main() { setUp(() { server = MockOAuthServer(); secureStorage = MockSecureStorage(); - dependencyManager = DependencyManager() - ..addInstance(mockConfig.auth!) - ..addInstance(secureStorage) - ..addInstance(server.httpClient) - ..addInstance>(const MockDispatcher()); + dependencyManager = + DependencyManager() + ..addInstance(mockConfig.auth!) + ..addInstance(secureStorage) + ..addInstance(server.httpClient) + ..addInstance>( + const MockDispatcher(), + ); platform = HostedUiPlatform(dependencyManager); }); @@ -54,10 +57,7 @@ void main() { setUp(() { secureStorage ..write(key: keys[HostedUiKey.state], value: state) - ..write( - key: keys[HostedUiKey.codeVerifier], - value: codeVerifier, - ); + ..write(key: keys[HostedUiKey.codeVerifier], value: codeVerifier); }); tearDown(() { @@ -69,16 +69,15 @@ void main() { test('missing state throws', () async { final parameters = await server.authorize( await platform.getSignInUri( - redirectUri: - Uri.parse(mockConfig.auth!.oauth!.redirectSignInUri.first), + redirectUri: Uri.parse( + mockConfig.auth!.oauth!.redirectSignInUri.first, + ), ), ); expect( () => platform.exchange( - OAuthParameters( - (b) => b..code = parameters.code, - ), + OAuthParameters((b) => b..code = parameters.code), ), throwsInvalidStateException, ); @@ -87,17 +86,19 @@ void main() { test('mismatched state throws', () async { final parameters = await server.authorize( await platform.getSignInUri( - redirectUri: - Uri.parse(mockConfig.auth!.oauth!.redirectSignInUri.first), + redirectUri: Uri.parse( + mockConfig.auth!.oauth!.redirectSignInUri.first, + ), ), ); expect( platform.exchange( OAuthParameters( - (b) => b - ..code = parameters.code - ..state = '12345', + (b) => + b + ..code = parameters.code + ..state = '12345', ), ), throwsInvalidStateException, @@ -107,15 +108,13 @@ void main() { test('succeeds', () async { final parameters = await server.authorize( await platform.getSignInUri( - redirectUri: - Uri.parse(mockConfig.auth!.oauth!.redirectSignInUri.first), + redirectUri: Uri.parse( + mockConfig.auth!.oauth!.redirectSignInUri.first, + ), ), ); - expect( - platform.exchange(parameters), - completes, - ); + expect(platform.exchange(parameters), completes); }); }); @@ -124,14 +123,13 @@ void main() { setUp(() async { dependencyManager.addInstance( - CancelingHostedUiPlatform( - cancelSignIn: expectAsync0(() async {}), - ), + CancelingHostedUiPlatform(cancelSignIn: expectAsync0(() async {})), ); - plugin = AmplifyAuthCognitoDart() - ..stateMachine = CognitoAuthStateMachine( - dependencyManager: dependencyManager, - ); + plugin = + AmplifyAuthCognitoDart() + ..stateMachine = CognitoAuthStateMachine( + dependencyManager: dependencyManager, + ); await plugin.stateMachine.acceptAndComplete( ConfigurationEvent.configure(mockConfig), ); @@ -141,13 +139,12 @@ void main() { test('can cancel flow', () async { final expectation = expectLater( - plugin.signInWithWebUI( - provider: AuthProvider.cognito, - ), + plugin.signInWithWebUI(provider: AuthProvider.cognito), throwsA(isA()), ); - final hostedUiMachine = - plugin.stateMachine.expect(HostedUiStateMachine.type); + final hostedUiMachine = plugin.stateMachine.expect( + HostedUiStateMachine.type, + ); expect( hostedUiMachine.stream, emitsInOrder([ @@ -170,9 +167,8 @@ void main() { } final class CancelingHostedUiPlatform extends Fake implements HostedUiPlatform { - CancelingHostedUiPlatform({ - required Future Function() cancelSignIn, - }) : _cancelSignIn = cancelSignIn; + CancelingHostedUiPlatform({required Future Function() cancelSignIn}) + : _cancelSignIn = cancelSignIn; final Future Function() _cancelSignIn; diff --git a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_device_password_verifier_worker_test.dart b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_device_password_verifier_worker_test.dart index cc45f6fa2a..dca5a23b9e 100644 --- a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_device_password_verifier_worker_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_device_password_verifier_worker_test.dart @@ -28,23 +28,25 @@ void main() { await worker.spawn(); final message = SrpDevicePasswordVerifierMessage( - (b) => b - ..initResult = initResult - ..clientId = mockConfig.auth!.userPoolClientId - ..deviceSecrets = CognitoDeviceSecrets( - (b) => b - ..deviceKey = deviceKey - ..deviceGroupKey = deviceGroupKey - ..devicePassword = devicePassword, - ) - ..challengeParameters = BuiltMap({ - CognitoConstants.challengeParamUsername: srpUsername, - CognitoConstants.challengeParamUserIdForSrp: srpUsername, - CognitoConstants.challengeParamSecretBlock: secretBlock, - CognitoConstants.challengeParamSalt: salt, - CognitoConstants.challengeParamSrpB: publicB, - CognitoConstants.challengeParamDeviceKey: deviceKey, - }), + (b) => + b + ..initResult = initResult + ..clientId = mockConfig.auth!.userPoolClientId + ..deviceSecrets = CognitoDeviceSecrets( + (b) => + b + ..deviceKey = deviceKey + ..deviceGroupKey = deviceGroupKey + ..devicePassword = devicePassword, + ) + ..challengeParameters = BuiltMap({ + CognitoConstants.challengeParamUsername: srpUsername, + CognitoConstants.challengeParamUserIdForSrp: srpUsername, + CognitoConstants.challengeParamSecretBlock: secretBlock, + CognitoConstants.challengeParamSalt: salt, + CognitoConstants.challengeParamSrpB: publicB, + CognitoConstants.challengeParamDeviceKey: deviceKey, + }), ); worker.add(message); @@ -52,8 +54,9 @@ void main() { worker.stream, emits( isA().having( - (req) => req.challengeResponses?[ - CognitoConstants.challengeParamPasswordSignature], + (req) => + req.challengeResponses?[CognitoConstants + .challengeParamPasswordSignature], 'signature', isNotNull, ), @@ -67,28 +70,24 @@ void main() { worker.logs.listen(safePrint); await worker.spawn(); final message = SrpDevicePasswordVerifierMessage( - (b) => b - ..initResult = initResult - ..clientId = mockConfig.auth!.userPoolClientId - ..deviceSecrets = CognitoDeviceSecrets( - (b) => b - ..deviceKey = deviceKey - ..deviceGroupKey = deviceGroupKey - ..devicePassword = devicePassword, - ) - // No challenge parameters - ..challengeParameters = BuiltMap({}), + (b) => + b + ..initResult = initResult + ..clientId = mockConfig.auth!.userPoolClientId + ..deviceSecrets = CognitoDeviceSecrets( + (b) => + b + ..deviceKey = deviceKey + ..deviceGroupKey = deviceGroupKey + ..devicePassword = devicePassword, + ) + // No challenge parameters + ..challengeParameters = BuiltMap({}), ); worker.add(message); - expect( - worker.result, - completion(isA()), - ); - await expectLater( - worker.stream, - emitsError(isA()), - ); + expect(worker.result, completion(isA())); + await expectLater(worker.stream, emitsError(isA())); unawaited(worker.close()); }); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_helper_test.dart b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_helper_test.dart index 994f3218b2..5ad2eb7533 100644 --- a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_helper_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_helper_test.dart @@ -27,65 +27,66 @@ import 'package:test/test.dart'; /// this computation on the main thread during tests which can /// cause them to block the test runner. final SrpInitResult initResult = SrpInitResult( - (b) => b - ..privateA = BigInt.parse( - '8554887338191497485984190154774767548613836564676334842602610087' - '7625202497970140801275626237270744095996650336953492178283127123' - '1511516912636062560845141018885416704974269011402831235472978984' - '4389779228341895201543308914059680976942127769050210872949160001' - '9806729405270589025850982473398964776886102422035478470716093762' - '7963851768872442792168507785125720432349681512877453151918650465' - '9514161706005445881924758257452084822749930242511815203957474614' - '3254397320474293522147642573509422079824119150188174616921076269' - '1982249470609904221996240393562950353682901308625300297791256264' - '3529387458518592279647451886755070521509924251809795816702329668' - '9123255351437523938954115319560481461588362855648326902386480269' - '4899065820934467593088161878675031690106462301829707786797966663' - '0360733426421618509571687192328028366662420556626329460891075158' - '4840424169181692167629884472338111965875315824247883990455265287' - '1411266328435232131233711732693932099908855115645833740021159031' - '3263315416561415174045705563450917344425433265965483273929886717' - '5197157358002165597071264971244597737881853962421846092199634258' - '0326034693673690718678486342912576839416212009415004490584968241' - '8489722775128910408478263141795395826724335529842632325969339575' - '2562584636546896272931570803024314368950475210196453156762961714' - '0245890583404377930665609577730164947730514464173482128657151942' - '1329266656687087479343520440586842455164591676747639409815054252' - '4157825966918410141453911592515637027076761068453048152571832925' - '9810527337371378487089897558784023424947599035029659433845552465' - '2385044263908554994028092702454925446453260823176951284849477882' - '9776368096641502648307296907075777028659058205511855341793969249' - '9982326934532049402124470156981985279892230747518191246231103577' - '5264601601835504479238893764323114408443499502923892506168248005' - '9334066746580864609711493296688330092312046253487555318344572914' - '9152498968688902463975166231003961911757891214772052757049878748' - '9445282007284109408040997526411014649841212631171584468768828051' - '8108316711942800605328801723693363563810654438862126752929610894' - '4293847610936449479287004389775184915709776422285959361338010787' - '8913704751590695088888540441639249317782913135754227158206537474' - '5822177125558671342283821473052713840015577705677400399756556014' - '8376816736908646919896110677029520622490641294384598407868180410' - '5081007571125860692111623749138742664003284886086280905393024723' - '5629032438874578465400089970448174687576894398571095614965221683' - '83926177741154403966003731104256', - ) - ..publicA = BigInt.parse( - '4680905440366202979403051712823465156279080027839613035807423065' - '2473340610462246137484129918699659364511462345752207070083507060' - '6915267034077254043065097424106829765680354342236566394037516248' - '1903340258648895590221596612651146227211103722824649786043102047' - '1030745071527239946076957407886984638410751995945753207518688954' - '1780842350763466409139953841563784840433536563856556356298873518' - '5165717796036216980353458178685652630570456714695828456263725807' - '5413469597307934294952499360498909387748391495383509077962709085' - '3510286548059102604833560918454128984378535917707367830976825379' - '0705868829460477425658878928853605580284750895550995454818812335' - '2877018972589496745204920839805558932301519514073819908073683655' - '2219883729226630249463608232417411730498032654088098866936724404' - '8250958976851018795628633429081317552772543188130717141715262148' - '7405802749012638297781132717025502768296370019053119507064706813' - '32790787567298071163660158298', - ), + (b) => + b + ..privateA = BigInt.parse( + '8554887338191497485984190154774767548613836564676334842602610087' + '7625202497970140801275626237270744095996650336953492178283127123' + '1511516912636062560845141018885416704974269011402831235472978984' + '4389779228341895201543308914059680976942127769050210872949160001' + '9806729405270589025850982473398964776886102422035478470716093762' + '7963851768872442792168507785125720432349681512877453151918650465' + '9514161706005445881924758257452084822749930242511815203957474614' + '3254397320474293522147642573509422079824119150188174616921076269' + '1982249470609904221996240393562950353682901308625300297791256264' + '3529387458518592279647451886755070521509924251809795816702329668' + '9123255351437523938954115319560481461588362855648326902386480269' + '4899065820934467593088161878675031690106462301829707786797966663' + '0360733426421618509571687192328028366662420556626329460891075158' + '4840424169181692167629884472338111965875315824247883990455265287' + '1411266328435232131233711732693932099908855115645833740021159031' + '3263315416561415174045705563450917344425433265965483273929886717' + '5197157358002165597071264971244597737881853962421846092199634258' + '0326034693673690718678486342912576839416212009415004490584968241' + '8489722775128910408478263141795395826724335529842632325969339575' + '2562584636546896272931570803024314368950475210196453156762961714' + '0245890583404377930665609577730164947730514464173482128657151942' + '1329266656687087479343520440586842455164591676747639409815054252' + '4157825966918410141453911592515637027076761068453048152571832925' + '9810527337371378487089897558784023424947599035029659433845552465' + '2385044263908554994028092702454925446453260823176951284849477882' + '9776368096641502648307296907075777028659058205511855341793969249' + '9982326934532049402124470156981985279892230747518191246231103577' + '5264601601835504479238893764323114408443499502923892506168248005' + '9334066746580864609711493296688330092312046253487555318344572914' + '9152498968688902463975166231003961911757891214772052757049878748' + '9445282007284109408040997526411014649841212631171584468768828051' + '8108316711942800605328801723693363563810654438862126752929610894' + '4293847610936449479287004389775184915709776422285959361338010787' + '8913704751590695088888540441639249317782913135754227158206537474' + '5822177125558671342283821473052713840015577705677400399756556014' + '8376816736908646919896110677029520622490641294384598407868180410' + '5081007571125860692111623749138742664003284886086280905393024723' + '5629032438874578465400089970448174687576894398571095614965221683' + '83926177741154403966003731104256', + ) + ..publicA = BigInt.parse( + '4680905440366202979403051712823465156279080027839613035807423065' + '2473340610462246137484129918699659364511462345752207070083507060' + '6915267034077254043065097424106829765680354342236566394037516248' + '1903340258648895590221596612651146227211103722824649786043102047' + '1030745071527239946076957407886984638410751995945753207518688954' + '1780842350763466409139953841563784840433536563856556356298873518' + '5165717796036216980353458178685652630570456714695828456263725807' + '5413469597307934294952499360498909387748391495383509077962709085' + '3510286548059102604833560918454128984378535917707367830976825379' + '0705868829460477425658878928853605580284750895550995454818812335' + '2877018972589496745204920839805558932301519514073819908073683655' + '2219883729226630249463608232417411730498032654088098866936724404' + '8250958976851018795628633429081317552772543188130717141715262148' + '7405802749012638297781132717025502768296370019053119507064706813' + '32790787567298071163660158298', + ), ); const srpUsername = 'User5'; @@ -138,20 +139,22 @@ const formattedTimestamp = 'Thu Jun 15 07:00:00 UTC 2017'; void main() { group( 'AuthenticationHelper', - skip: zIsWeb && zDebugMode - ? 'Running SRP ops on the main thread in DDC Web tests causes flaky behavior. ' - 'These operations are tested elsewhere including via the worker tests and ' - 'E2E tests which all benefit from offloading the computations.' - : null, + skip: + zIsWeb && zDebugMode + ? 'Running SRP ops on the main thread in DDC Web tests causes flaky behavior. ' + 'These operations are tested elsewhere including via the worker tests and ' + 'E2E tests which all benefit from offloading the computations.' + : null, () { group('createPasswordClaim', () { test('authenticateUser', () { final claim = SrpHelper.createPasswordClaim( userId: srpUsername, parameters: SignInParameters( - (b) => b - ..username = srpUsername - ..password = srpPassword, + (b) => + b + ..username = srpUsername + ..password = srpPassword, ), initResult: initResult, encodedSalt: salt, @@ -172,9 +175,10 @@ void main() { () => SrpHelper.createPasswordClaim( userId: srpUsername, parameters: SignInParameters( - (b) => b - ..username = srpUsername - ..password = srpPassword, + (b) => + b + ..username = srpUsername + ..password = srpPassword, ), initResult: initResult, encodedSalt: salt, @@ -194,9 +198,10 @@ void main() { () => SrpHelper.createPasswordClaim( userId: srpUsername, parameters: SignInParameters( - (b) => b - ..username = srpUsername - ..password = srpPassword, + (b) => + b + ..username = srpUsername + ..password = srpPassword, ), initResult: initResult, encodedSalt: salt, @@ -245,11 +250,7 @@ void main() { }); test('computeSecretHash', () { - final hash = computeSecretHash( - 'Mess', - 'age', - 'secret', - ); + final hash = computeSecretHash('Mess', 'age', 'secret'); const expectedHash = 'qnR8UCqJggD55PohusaBNviGoOJ67HC6Btry4qXLVZc='; expect(hash, equals(expectedHash)); diff --git a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_init_worker_test.dart b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_init_worker_test.dart index 6168752817..11e36b7bb5 100644 --- a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_init_worker_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_init_worker_test.dart @@ -19,10 +19,7 @@ void main() { final message = SrpInitMessage(); worker.add(message); - expect( - worker.stream, - emits(isA()), - ); + expect(worker.stream, emits(isA())); }); }); } diff --git a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_password_verifier_worker_test.dart b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_password_verifier_worker_test.dart index 1db796e6f4..97c6700c73 100644 --- a/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_password_verifier_worker_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/flows/srp/srp_password_verifier_worker_test.dart @@ -27,23 +27,25 @@ void main() { worker.logs.listen(safePrint); await worker.spawn(); final message = SrpPasswordVerifierMessage( - (b) => b - ..initResult = initResult - ..clientId = mockConfig.auth!.userPoolClientId - ..poolId = 'us-east-1_$poolName' - ..parameters = SignInParameters( - (p) => p - ..username = srpUsername - ..password = srpPassword, - ) - ..challengeParameters = BuiltMap({ - CognitoConstants.challengeParamUsername: srpUsername, - CognitoConstants.challengeParamUserIdForSrp: srpUsername, - CognitoConstants.challengeParamSecretBlock: secretBlock, - CognitoConstants.challengeParamSalt: salt, - CognitoConstants.challengeParamSrpB: publicB, - }) - ..timestamp = DateTime.utc(2017, 6, 15, 7), + (b) => + b + ..initResult = initResult + ..clientId = mockConfig.auth!.userPoolClientId + ..poolId = 'us-east-1_$poolName' + ..parameters = SignInParameters( + (p) => + p + ..username = srpUsername + ..password = srpPassword, + ) + ..challengeParameters = BuiltMap({ + CognitoConstants.challengeParamUsername: srpUsername, + CognitoConstants.challengeParamUserIdForSrp: srpUsername, + CognitoConstants.challengeParamSecretBlock: secretBlock, + CognitoConstants.challengeParamSalt: salt, + CognitoConstants.challengeParamSrpB: publicB, + }) + ..timestamp = DateTime.utc(2017, 6, 15, 7), ); worker.add(message); @@ -53,8 +55,9 @@ void main() { worker.stream, emits( isA().having( - (req) => req.challengeResponses?[ - CognitoConstants.challengeParamPasswordSignature], + (req) => + req.challengeResponses?[CognitoConstants + .challengeParamPasswordSignature], 'signature', expectedSignature, ), @@ -68,29 +71,25 @@ void main() { worker.logs.listen(safePrint); await worker.spawn(); final message = SrpPasswordVerifierMessage( - (b) => b - ..initResult = initResult - ..clientId = mockConfig.auth!.userPoolClientId - ..poolId = 'us-east-1_$poolName' - ..parameters = SignInParameters( - (p) => p - ..username = srpUsername - ..password = srpPassword, - ) - // No challenge parameters - ..challengeParameters = BuiltMap({}) - ..timestamp = DateTime.utc(2017, 6, 15, 7), + (b) => + b + ..initResult = initResult + ..clientId = mockConfig.auth!.userPoolClientId + ..poolId = 'us-east-1_$poolName' + ..parameters = SignInParameters( + (p) => + p + ..username = srpUsername + ..password = srpPassword, + ) + // No challenge parameters + ..challengeParameters = BuiltMap({}) + ..timestamp = DateTime.utc(2017, 6, 15, 7), ); worker.add(message); - expect( - worker.result, - completion(isA()), - ); - await expectLater( - worker.stream, - emitsError(isA()), - ); + expect(worker.result, completion(isA())); + await expectLater(worker.stream, emitsError(isA())); unawaited(worker.close()); }); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/jwt/data/data.g.dart b/packages/auth/amplify_auth_cognito_test/test/jwt/data/data.g.dart index 3d45210b97..23e9741225 100644 --- a/packages/auth/amplify_auth_cognito_test/test/jwt/data/data.g.dart +++ b/packages/auth/amplify_auth_cognito_test/test/jwt/data/data.g.dart @@ -362,24 +362,9 @@ const testCases = [ HS512_public_jwk, HS512_jwt, ), - TestCase( - Algorithm.rsaSha256, - RS256_private_jwk, - RS256_public_jwk, - RS256_jwt, - ), - TestCase( - Algorithm.rsaSha384, - RS384_private_jwk, - RS384_public_jwk, - RS384_jwt, - ), - TestCase( - Algorithm.rsaSha512, - RS512_private_jwk, - RS512_public_jwk, - RS512_jwt, - ), + TestCase(Algorithm.rsaSha256, RS256_private_jwk, RS256_public_jwk, RS256_jwt), + TestCase(Algorithm.rsaSha384, RS384_private_jwk, RS384_public_jwk, RS384_jwt), + TestCase(Algorithm.rsaSha512, RS512_private_jwk, RS512_public_jwk, RS512_jwt), TestCase( Algorithm.ecdsaSha256, ES256_private_jwk, @@ -398,24 +383,9 @@ const testCases = [ ES512_public_jwk, ES512_jwt, ), - TestCase( - Algorithm.pssSha256, - PS256_private_jwk, - PS256_public_jwk, - PS256_jwt, - ), - TestCase( - Algorithm.pssSha384, - PS384_private_jwk, - PS384_public_jwk, - PS384_jwt, - ), - TestCase( - Algorithm.pssSha512, - PS512_private_jwk, - PS512_public_jwk, - PS512_jwt, - ), + TestCase(Algorithm.pssSha256, PS256_private_jwk, PS256_public_jwk, PS256_jwt), + TestCase(Algorithm.pssSha384, PS384_private_jwk, PS384_public_jwk, PS384_jwt), + TestCase(Algorithm.pssSha512, PS512_private_jwk, PS512_public_jwk, PS512_jwt), ]; const keySet = ''' diff --git a/packages/auth/amplify_auth_cognito_test/test/jwt/data/test_case.dart b/packages/auth/amplify_auth_cognito_test/test/jwt/data/test_case.dart index cf6d6d5425..e599211259 100644 --- a/packages/auth/amplify_auth_cognito_test/test/jwt/data/test_case.dart +++ b/packages/auth/amplify_auth_cognito_test/test/jwt/data/test_case.dart @@ -4,12 +4,7 @@ import 'package:amplify_auth_cognito_dart/src/jwt/jwt.dart'; class TestCase { - const TestCase( - this.algorithm, - this.privateJwk, - this.publicJwk, - this.jwt, - ); + const TestCase(this.algorithm, this.privateJwk, this.publicJwk, this.jwt); final Algorithm algorithm; final String privateJwk; diff --git a/packages/auth/amplify_auth_cognito_test/test/jwt/token_test.dart b/packages/auth/amplify_auth_cognito_test/test/jwt/token_test.dart index 5387203fb1..579f172585 100644 --- a/packages/auth/amplify_auth_cognito_test/test/jwt/token_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/jwt/token_test.dart @@ -19,18 +19,15 @@ void main() { late JsonWebKey publicJwk; test('parse', () { - expect( - () { - token = JsonWebToken.parse(testCase.jwt); - privateJwk = JsonWebKey.fromJson( - jsonDecode(testCase.privateJwk) as Map, - ); - publicJwk = JsonWebKey.fromJson( - jsonDecode(testCase.publicJwk) as Map, - ); - }, - returnsNormally, - ); + expect(() { + token = JsonWebToken.parse(testCase.jwt); + privateJwk = JsonWebKey.fromJson( + jsonDecode(testCase.privateJwk) as Map, + ); + publicJwk = JsonWebKey.fromJson( + jsonDecode(testCase.publicJwk) as Map, + ); + }, returnsNormally); }); test('encode', () { @@ -55,10 +52,7 @@ void main() { keyId: keyId, x509CertChain: const [cert], ), - claims: JsonWebClaims( - issuer: issuer, - expiration: expiration, - ), + claims: JsonWebClaims(issuer: issuer, expiration: expiration), signature: signature, ); final t2 = JsonWebToken( @@ -68,10 +62,7 @@ void main() { keyId: keyId, x509CertChain: const [cert], ), - claims: JsonWebClaims( - issuer: issuer, - expiration: expiration, - ), + claims: JsonWebClaims(issuer: issuer, expiration: expiration), signature: signature, ); expect(t1, t2); diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/auth_providers_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/auth_providers_test.dart index 5d75ff5223..836c0c6bc3 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/auth_providers_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/auth_providers_test.dart @@ -67,59 +67,62 @@ void main() { seedStorage( secureStorage, userPoolKeys: CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!), - identityPoolKeys: - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!), + identityPoolKeys: CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, + ), ); await plugin.addPlugin(authProviderRepo: testAuthRepo); - await plugin.configure( - config: mockConfig, - authProviderRepo: testAuthRepo, - ); + await plugin.configure(config: mockConfig, authProviderRepo: testAuthRepo); }); group( - 'AmplifyAuthCognitoDart plugin registers auth providers during addPlugin', - () { - test('registers CognitoIamAuthProvider', () async { - final authProvider = testAuthRepo.getAuthProvider( - APIAuthorizationType.iam.authProviderToken, - ); - expect(authProvider, isA()); - }); + 'AmplifyAuthCognitoDart plugin registers auth providers during addPlugin', + () { + test('registers CognitoIamAuthProvider', () async { + final authProvider = testAuthRepo.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ); + expect(authProvider, isA()); + }); - test('registers CognitoUserPoolsAuthProvider', () async { - final authProvider = testAuthRepo.getAuthProvider( - APIAuthorizationType.userPools.authProviderToken, - ); - expect(authProvider, isA()); - }); - }); + test('registers CognitoUserPoolsAuthProvider', () async { + final authProvider = testAuthRepo.getAuthProvider( + APIAuthorizationType.userPools.authProviderToken, + ); + expect(authProvider, isA()); + }); + }, + ); group('no auth plugin added', () { - test('CognitoIamAuthProvider throws when trying to authorize a request', - () async { - const authProvider = CognitoIamAuthProvider(); - await expectLater( - authProvider.authorizeRequest( - _generateTestRequest(), - options: const IamAuthProviderOptions( - region: 'us-east-1', - service: AWSService.appSync, + test( + 'CognitoIamAuthProvider throws when trying to authorize a request', + () async { + const authProvider = CognitoIamAuthProvider(); + await expectLater( + authProvider.authorizeRequest( + _generateTestRequest(), + options: const IamAuthProviderOptions( + region: 'us-east-1', + service: AWSService.appSync, + ), ), - ), - throwsA(isA()), - ); - }); + throwsA(isA()), + ); + }, + ); - test('CognitoUserPoolsAuthProvider throws when trying to authorize request', - () async { - final authProvider = CognitoUserPoolsAuthProvider(); - await expectLater( - authProvider.authorizeRequest(_generateTestRequest()), - throwsA(isA()), - ); - }); + test( + 'CognitoUserPoolsAuthProvider throws when trying to authorize request', + () async { + final authProvider = CognitoUserPoolsAuthProvider(); + await expectLater( + authProvider.authorizeRequest(_generateTestRequest()), + throwsA(isA()), + ); + }, + ); }); group('auth providers defined in auth plugin', () { @@ -158,32 +161,32 @@ void main() { ); }); - test('does not sign body when ServiceConfiguration signBody false', - () async { - const authProvider = CognitoIamAuthProvider(); - const region = 'us-east-1'; - final inputRequest = AWSHttpRequest( - method: AWSHttpMethod.post, - body: json.encode({ - 'foo': 'bar', - }).codeUnits, - uri: Uri.parse( - 'https://xyz456.execute-api.$region.amazonaws.com/test', - ), - ); - final authorizedRequest = await authProvider.authorizeRequest( - inputRequest, - options: const IamAuthProviderOptions( - region: region, - service: AWSService.apiGateway, - serviceConfiguration: ServiceConfiguration(signBody: false), - ), - ); - expect( - authorizedRequest.headers.containsKey(AWSHeaders.contentSHA256), - isFalse, - ); - }); + test( + 'does not sign body when ServiceConfiguration signBody false', + () async { + const authProvider = CognitoIamAuthProvider(); + const region = 'us-east-1'; + final inputRequest = AWSHttpRequest( + method: AWSHttpMethod.post, + body: json.encode({'foo': 'bar'}).codeUnits, + uri: Uri.parse( + 'https://xyz456.execute-api.$region.amazonaws.com/test', + ), + ); + final authorizedRequest = await authProvider.authorizeRequest( + inputRequest, + options: const IamAuthProviderOptions( + region: region, + service: AWSService.apiGateway, + serviceConfiguration: ServiceConfiguration(signBody: false), + ), + ); + expect( + authorizedRequest.headers.containsKey(AWSHeaders.contentSHA256), + isFalse, + ); + }, + ); test('throws when no options provided', () async { const authProvider = CognitoIamAuthProvider(); @@ -195,24 +198,28 @@ void main() { }); group('CognitoUserPoolsAuthProvider', () { - test('gets raw access token from Amplify.Auth.fetchAuthSession', - () async { - final authProvider = CognitoUserPoolsAuthProvider(); - final token = await authProvider.getLatestAuthToken(); - expect(token, accessToken.raw); - }); + test( + 'gets raw access token from Amplify.Auth.fetchAuthSession', + () async { + final authProvider = CognitoUserPoolsAuthProvider(); + final token = await authProvider.getLatestAuthToken(); + expect(token, accessToken.raw); + }, + ); - test('adds access token to header when calling authorizeRequest', - () async { - final authProvider = CognitoUserPoolsAuthProvider(); - final authorizedRequest = await authProvider.authorizeRequest( - _generateTestRequest(), - ); - expect( - authorizedRequest.headers[AWSHeaders.authorization], - accessToken.raw, - ); - }); + test( + 'adds access token to header when calling authorizeRequest', + () async { + final authProvider = CognitoUserPoolsAuthProvider(); + final authorizedRequest = await authProvider.authorizeRequest( + _generateTestRequest(), + ); + expect( + authorizedRequest.headers[AWSHeaders.authorization], + accessToken.raw, + ); + }, + ); }); }); @@ -233,17 +240,19 @@ void main() { }); group('CognitoUserPoolsAuthProvider', () { - test('adds access token to header when calling authorizeRequest', - () async { - final authProvider = CognitoUserPoolsAuthProvider(); - final authorizedRequest = await authProvider.authorizeRequest( - _generateTestRequest(), - ); - expect( - authorizedRequest.headers[AWSHeaders.authorization], - accessToken.raw, - ); - }); + test( + 'adds access token to header when calling authorizeRequest', + () async { + final authProvider = CognitoUserPoolsAuthProvider(); + final authorizedRequest = await authProvider.authorizeRequest( + _generateTestRequest(), + ); + expect( + authorizedRequest.headers[AWSHeaders.authorization], + accessToken.raw, + ); + }, + ); }); }); } diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/delete_user_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/delete_user_test.dart index b7944eaabb..615c5c2250 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/delete_user_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/delete_user_test.dart @@ -20,8 +20,9 @@ import 'package:test/test.dart'; void main() { final userPoolKeys = CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!); - final identityPoolKeys = - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!); + final identityPoolKeys = CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, + ); late AmplifyAuthCognitoDart plugin; late CognitoAuthStateMachine stateMachine; diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_auth_session_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_auth_session_test.dart index c9bccf223d..62a089295b 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_auth_session_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_auth_session_test.dart @@ -49,9 +49,10 @@ void main() { stateMachine.addInstance( MockCognitoIdentityProviderClient( initiateAuth: expectAsync1( - (_) async => throw const AuthNotAuthorizedException( - 'Refresh Token has expired.', - ), + (_) async => + throw const AuthNotAuthorizedException( + 'Refresh Token has expired.', + ), ), ), ); diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_current_device_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_current_device_test.dart index e59daf6985..29a995530a 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_current_device_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_current_device_test.dart @@ -15,8 +15,9 @@ void main() { AmplifyLogger().logLevel = LogLevel.verbose; final userPoolKeys = CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!); - final identityPoolKeys = - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!); + final identityPoolKeys = CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, + ); final testAuthRepo = AmplifyAuthProviderRepository(); final mockDevice = DeviceType(deviceKey: deviceKey); final mockDeviceResponse = GetDeviceResponse(device: mockDevice); @@ -31,8 +32,10 @@ void main() { secureStorage, userPoolKeys: userPoolKeys, identityPoolKeys: identityPoolKeys, - deviceKeys: - CognitoDeviceKeys(mockConfig.auth!.userPoolClientId!, username), + deviceKeys: CognitoDeviceKeys( + mockConfig.auth!.userPoolClientId!, + username, + ), ); plugin = AmplifyAuthCognitoDart( secureStorageFactory: (_) => secureStorage, @@ -54,31 +57,38 @@ void main() { }); test( - 'return the current device where the current device id is equal to the local device id', - () async { - final secrets = await repo.get(username); - final currentDeviceKey = secrets?.deviceKey; - expect(currentDeviceKey, isNotNull); - final currentDevice = await plugin.fetchCurrentDevice(); - expect(currentDeviceKey, currentDevice.id); - }); + 'return the current device where the current device id is equal to the local device id', + () async { + final secrets = await repo.get(username); + final currentDeviceKey = secrets?.deviceKey; + expect(currentDeviceKey, isNotNull); + final currentDevice = await plugin.fetchCurrentDevice(); + expect(currentDeviceKey, currentDevice.id); + }, + ); - test('throw a DeviceNotTrackedException when current device key is null', - () async { - await plugin.forgetDevice(); - await expectLater( - plugin.fetchCurrentDevice, - throwsA(isA()), - ); - }); + test( + 'throw a DeviceNotTrackedException when current device key is null', + () async { + await plugin.forgetDevice(); + await expectLater( + plugin.fetchCurrentDevice, + throwsA(isA()), + ); + }, + ); }); group('should throw', () { setUp(() async { final mockIdp = MockCognitoIdentityProviderClient( - getDevice: () async => throw AWSHttpException( - AWSHttpRequest.get(Uri.parse('https://aws.amazon.com/cognito/')), - ), + getDevice: + () async => + throw AWSHttpException( + AWSHttpRequest.get( + Uri.parse('https://aws.amazon.com/cognito/'), + ), + ), ); plugin.stateMachine.addInstance(mockIdp); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_user_attributes_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_user_attributes_test.dart index 96f0f515e7..a337bff9a3 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_user_attributes_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/fetch_user_attributes_test.dart @@ -67,16 +67,15 @@ final claims = { }; final _userPoolTokens = CognitoUserPoolTokens.build( - (b) => b - ..accessToken = JsonWebToken( - header: const JsonWebHeader(algorithm: Algorithm.rsaSha256), - claims: JsonWebClaims( - customClaims: claims, - ), - signature: const [], - ) - ..refreshToken = refreshToken - ..idToken = idToken, + (b) => + b + ..accessToken = JsonWebToken( + header: const JsonWebHeader(algorithm: Algorithm.rsaSha256), + claims: JsonWebClaims(customClaims: claims), + signature: const [], + ) + ..refreshToken = refreshToken + ..idToken = idToken, ); class MockCognitoAuthStateMachine extends CognitoAuthStateMachine { @@ -98,18 +97,20 @@ void main() { }); test('converts user attributes correctly', () async { - stateMachine = MockCognitoAuthStateMachine() - ..addInstance( - MockCognitoIdentityProviderClient( - getUser: () async => GetUserResponse( - userAttributes: [ - for (final entry in claims.entries) - AttributeType(name: entry.key, value: entry.value), - ], - username: username, - ), - ), - ); + stateMachine = + MockCognitoAuthStateMachine() + ..addInstance( + MockCognitoIdentityProviderClient( + getUser: + () async => GetUserResponse( + userAttributes: [ + for (final entry in claims.entries) + AttributeType(name: entry.key, value: entry.value), + ], + username: username, + ), + ), + ); plugin = AmplifyAuthCognitoDart()..stateMachine = stateMachine; final res = await plugin.fetchUserAttributes(); final expected = [ @@ -199,32 +200,27 @@ void main() { }); test('refreshes token before calling Cognito', () async { - stateMachine = CognitoAuthStateMachine() - ..addInstance( - MockCognitoIdentityProviderClient( - getUser: () async => GetUserResponse( - userAttributes: [], - username: username, + stateMachine = + CognitoAuthStateMachine()..addInstance( + MockCognitoIdentityProviderClient( + getUser: + () async => + GetUserResponse(userAttributes: [], username: username), ), - ), - ); + ); final secureStorage = MockSecureStorage(); SecureStorageInterface storageFactory(scope) => secureStorage; - seedStorage( - secureStorage, - userPoolKeys: userPoolKeys, - ); + seedStorage(secureStorage, userPoolKeys: userPoolKeys); // Write an expired token to storage. secureStorage.write( key: userPoolKeys[CognitoUserPoolKey.accessToken], - value: JsonWebToken( - header: const JsonWebHeader(algorithm: Algorithm.rsaSha256), - claims: JsonWebClaims( - expiration: DateTime.now(), - ), - signature: const [], - ).raw, + value: + JsonWebToken( + header: const JsonWebHeader(algorithm: Algorithm.rsaSha256), + claims: JsonWebClaims(expiration: DateTime.now()), + signature: const [], + ).raw, ); plugin = AmplifyAuthCognitoDart(secureStorageFactory: storageFactory) @@ -239,17 +235,14 @@ void main() { // // [Future.ignore] is not working in DDC, possibly due to this issue: // https://github.com/dart-lang/sdk/issues/50619 - unawaited( - plugin.fetchUserAttributes().then((_) {}).onError((_, __) {}), - ); + unawaited(plugin.fetchUserAttributes().then((_) {}).onError((_, __) {})); - final fetchAuthSessionMachine = - stateMachine.getOrCreate(FetchAuthSessionStateMachine.type); + final fetchAuthSessionMachine = stateMachine.getOrCreate( + FetchAuthSessionStateMachine.type, + ); await expectLater( fetchAuthSessionMachine.stream, - emitsThrough( - const FetchAuthSessionState.refreshing(), - ), + emitsThrough(const FetchAuthSessionState.refreshing()), ).timeout(const Duration(seconds: 2)); }); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/forget_device_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/forget_device_test.dart index d3e983c42c..ae32fd2215 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/forget_device_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/forget_device_test.dart @@ -16,8 +16,9 @@ void main() { AmplifyLogger().logLevel = LogLevel.verbose; final userPoolKeys = CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!); - final identityPoolKeys = - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!); + final identityPoolKeys = CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, + ); final testAuthRepo = AmplifyAuthProviderRepository(); late DeviceMetadataRepository repo; @@ -32,8 +33,10 @@ void main() { secureStorage, userPoolKeys: userPoolKeys, identityPoolKeys: identityPoolKeys, - deviceKeys: - CognitoDeviceKeys(mockConfig.auth!.userPoolClientId!, username), + deviceKeys: CognitoDeviceKeys( + mockConfig.auth!.userPoolClientId!, + username, + ), ); plugin = AmplifyAuthCognitoDart( secureStorageFactory: (_) => secureStorage, @@ -50,28 +53,32 @@ void main() { repo = stateMachine.getOrCreate(); }); - test('should remove the local device when called with no device ID', - () async { - expect(await repo.get(username), isNotNull); - await plugin.forgetDevice(); - expect(await repo.get(username), isNull); - }); + test( + 'should remove the local device when called with no device ID', + () async { + expect(await repo.get(username), isNotNull); + await plugin.forgetDevice(); + expect(await repo.get(username), isNull); + }, + ); test( - 'should remove the local device when the device ID matches the local device ID', - () async { - expect(await repo.get(username), isNotNull); - await plugin.forgetDevice(const CognitoDevice(id: deviceKey)); - expect(await repo.get(username), isNull); - }); + 'should remove the local device when the device ID matches the local device ID', + () async { + expect(await repo.get(username), isNotNull); + await plugin.forgetDevice(const CognitoDevice(id: deviceKey)); + expect(await repo.get(username), isNull); + }, + ); test( - 'should not remove the local device when the device ID does not match the local device ID', - () async { - expect(await repo.get(username), isNotNull); - await plugin.forgetDevice(const CognitoDevice(id: 'other-device-id')); - expect(await repo.get(username), isNotNull); - }); + 'should not remove the local device when the device ID does not match the local device ID', + () async { + expect(await repo.get(username), isNotNull); + await plugin.forgetDevice(const CognitoDevice(id: 'other-device-id')); + expect(await repo.get(username), isNotNull); + }, + ); tearDown(() async { await plugin.close(); diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/remember_device_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/remember_device_test.dart index 21e546402e..35c745d9b5 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/remember_device_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/remember_device_test.dart @@ -18,8 +18,9 @@ void main() { AmplifyLogger().logLevel = LogLevel.verbose; final userPoolKeys = CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!); - final identityPoolKeys = - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!); + final identityPoolKeys = CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, + ); final testAuthRepo = AmplifyAuthProviderRepository(); final mockUpdateDeviceStatusResponse = UpdateDeviceStatusResponse(); @@ -45,8 +46,10 @@ void main() { secureStorage, userPoolKeys: userPoolKeys, identityPoolKeys: identityPoolKeys, - deviceKeys: - CognitoDeviceKeys(mockConfig.auth!.userPoolClientId!, username), + deviceKeys: CognitoDeviceKeys( + mockConfig.auth!.userPoolClientId!, + username, + ), ); plugin = AmplifyAuthCognitoDart( secureStorageFactory: (_) => secureStorage, @@ -68,21 +71,24 @@ void main() { await plugin.close(); }); - test('rememberDevice changes the device state from tracked to remembered', - () async { - expect(await getDeviceState(), DeviceState.tracked); - await plugin.rememberDevice(); - expect(await getDeviceState(), DeviceState.remembered); - }); + test( + 'rememberDevice changes the device state from tracked to remembered', + () async { + expect(await getDeviceState(), DeviceState.tracked); + await plugin.rememberDevice(); + expect(await getDeviceState(), DeviceState.remembered); + }, + ); test( - 'rememberDevice throws a DeviceNotTrackedException when device is forgotten', - () async { - await plugin.forgetDevice(); - await expectLater( - plugin.rememberDevice, - throwsA(isA()), - ); - }); + 'rememberDevice throws a DeviceNotTrackedException when device is forgotten', + () async { + await plugin.forgetDevice(); + await expectLater( + plugin.rememberDevice, + throwsA(isA()), + ); + }, + ); }); } diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/reset_password_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/reset_password_test.dart index 60beb45545..b9f63050a3 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/reset_password_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/reset_password_test.dart @@ -17,8 +17,9 @@ import 'package:test/test.dart'; // https://github.com/aws-amplify/amplify-android/tree/main/aws-auth-cognito/src/test/resources/feature-test/testsuites/resetPassword void main() { final userPoolKeys = CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!); - final identityPoolKeys = - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!); + final identityPoolKeys = CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, + ); late AmplifyAuthCognitoDart plugin; late CognitoAuthStateMachine stateMachine; @@ -51,8 +52,11 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - forgotPassword: () async => - throw const AuthNotAuthorizedException('Cognito error message'), + forgotPassword: + () async => + throw const AuthNotAuthorizedException( + 'Cognito error message', + ), ); stateMachine.addInstance(mockIdp); @@ -81,13 +85,14 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - forgotPassword: () async => ForgotPasswordResponse( - codeDeliveryDetails: CodeDeliveryDetailsType( - destination: 'dummy destination', - deliveryMedium: DeliveryMediumType.email, - attributeName: 'email', - ), - ), + forgotPassword: + () async => ForgotPasswordResponse( + codeDeliveryDetails: CodeDeliveryDetailsType( + destination: 'dummy destination', + deliveryMedium: DeliveryMediumType.email, + attributeName: 'email', + ), + ), ); stateMachine.addInstance(mockIdp); @@ -114,13 +119,14 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - forgotPassword: () async => ForgotPasswordResponse( - codeDeliveryDetails: CodeDeliveryDetailsType( - destination: 'dummy destination', - deliveryMedium: DeliveryMediumType.email, - attributeName: 'email', - ), - ), + forgotPassword: + () async => ForgotPasswordResponse( + codeDeliveryDetails: CodeDeliveryDetailsType( + destination: 'dummy destination', + deliveryMedium: DeliveryMediumType.email, + attributeName: 'email', + ), + ), ); stateMachine.addInstance(mockIdp); diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/sign_in_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/sign_in_test.dart index f2dcee8932..d44eea2e7d 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/sign_in_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/sign_in_test.dart @@ -35,23 +35,21 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - initiateAuth: (_) async => InitiateAuthResponse( - authenticationResult: AuthenticationResultType( - accessToken: accessToken.raw, - refreshToken: refreshToken, - idToken: idToken.raw, - ), - ), + initiateAuth: + (_) async => InitiateAuthResponse( + authenticationResult: AuthenticationResultType( + accessToken: accessToken.raw, + refreshToken: refreshToken, + idToken: idToken.raw, + ), + ), globalSignOut: () async => GlobalSignOutResponse(), revokeToken: () async => RevokeTokenResponse(), ); stateMachine.addInstance(mockIdp); await expectLater( - plugin.signIn( - username: username, - password: 'password', - ), + plugin.signIn(username: username, password: 'password'), completion( isA().having( (res) => res.isSignedIn, @@ -62,10 +60,7 @@ void main() { ); await expectLater( - plugin.signIn( - username: username, - password: 'password', - ), + plugin.signIn(username: username, password: 'password'), throwsA(isA()), reason: 'Calling signIn while authenticated should fail', ); @@ -73,10 +68,7 @@ void main() { await plugin.signOut(); await expectLater( - plugin.signIn( - username: username, - password: 'password', - ), + plugin.signIn(username: username, password: 'password'), completion( isA().having( (res) => res.isSignedIn, @@ -113,10 +105,7 @@ void main() { final results = await Future.wait([ for (var i = 0; i < 10; i++) Result.capture( - plugin.signIn( - username: username, - password: password, - ), + plugin.signIn(username: username, password: password), ), ]); results.forEachIndexed((index, result) { @@ -133,10 +122,7 @@ void main() { for (var i = 0; i < 10; i++) Future.delayed(Duration(milliseconds: i * 5)).then( (_) => Result.capture( - plugin.signIn( - username: username, - password: password, - ), + plugin.signIn(username: username, password: password), ), ), ]); @@ -158,17 +144,19 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - initiateAuth: (_) async => InitiateAuthResponse( - // A challenge which requires user input - challengeName: ChallengeNameType.newPasswordRequired, - ), - respondToAuthChallenge: (_) async => RespondToAuthChallengeResponse( - authenticationResult: AuthenticationResultType( - accessToken: accessToken.raw, - refreshToken: refreshToken, - idToken: idToken.raw, - ), - ), + initiateAuth: + (_) async => InitiateAuthResponse( + // A challenge which requires user input + challengeName: ChallengeNameType.newPasswordRequired, + ), + respondToAuthChallenge: + (_) async => RespondToAuthChallengeResponse( + authenticationResult: AuthenticationResultType( + accessToken: accessToken.raw, + refreshToken: refreshToken, + idToken: idToken.raw, + ), + ), ); stateMachine.addInstance(mockIdp); }); @@ -177,10 +165,7 @@ void main() { final results = await Future.wait([ for (var i = 0; i < 10; i++) Result.capture( - plugin.signIn( - username: username, - password: password, - ), + plugin.signIn(username: username, password: password), ), ]); await expectLater( @@ -202,10 +187,7 @@ void main() { for (var i = 0; i < 10; i++) Future.delayed(Duration(milliseconds: i * 5)).then( (_) => Result.capture( - plugin.signIn( - username: username, - password: password, - ), + plugin.signIn(username: username, password: password), ), ), ]); diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/sign_out_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/sign_out_test.dart index 878d8af180..436235b493 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/sign_out_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/sign_out_test.dart @@ -24,8 +24,9 @@ final throwsSignedOutException = throwsA(isA()); // https://github.com/aws-amplify/amplify-android/tree/main/aws-auth-cognito/src/test/resources/feature-test/testsuites/signOut void main() { final userPoolKeys = CognitoUserPoolKeys(mockConfig.auth!.userPoolClientId!); - final identityPoolKeys = - CognitoIdentityPoolKeys(mockConfig.auth!.identityPoolId!); + final identityPoolKeys = CognitoIdentityPoolKeys( + mockConfig.auth!.identityPoolId!, + ); final hostedUiKeys = HostedUiKeys(mockConfig.auth!.userPoolClientId!); late AmplifyAuthCognitoDart plugin; @@ -49,20 +50,22 @@ void main() { setUp(() async { secureStorage = MockSecureStorage(); SecureStorageInterface storageFactory(scope) => secureStorage; - stateMachine = CognitoAuthStateMachine() - ..addBuilder( - createHostedUiFactory( - signIn: ( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, - AuthProvider? provider, - ) async {}, - signOut: ( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, - ) async {}, - ), - ); + stateMachine = + CognitoAuthStateMachine()..addBuilder( + createHostedUiFactory( + signIn: + ( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + AuthProvider? provider, + ) async {}, + signOut: + ( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + ) async {}, + ), + ); plugin = AmplifyAuthCognitoDart(secureStorageFactory: storageFactory) ..stateMachine = stateMachine; @@ -104,11 +107,7 @@ void main() { credentials, isA() .having((result) => result.userPoolTokens, 'tokens', isNull) - .having( - (result) => result.awsCredentials, - 'awsCreds', - isNotNull, - ), + .having((result) => result.awsCredentials, 'awsCreds', isNotNull), ); }); @@ -141,136 +140,13 @@ void main() { expect(hubEvents, emitsSignOutEvent); }); - test('clears credential store when signed in & global sign out fails', - () async { - seedStorage( - secureStorage, - userPoolKeys: userPoolKeys, - identityPoolKeys: identityPoolKeys, - ); - await plugin.configure( - config: mockConfig, - authProviderRepo: testAuthRepo, - ); - - final mockIdp = MockCognitoIdentityProviderClient( - globalSignOut: - expectAsync0(() async => throw InternalErrorException()), - revokeToken: () async => RevokeTokenResponse(), - ); - stateMachine.addInstance(mockIdp); - - await expectLater(plugin.stateMachine.getUserPoolTokens(), completes); - await expectLater( - plugin.signOut( - options: const SignOutOptions(globalSignOut: true), - ), - completion( - isA() - .having( - (res) => res.signedOutLocally, - 'signedOutLocally', - isTrue, - ) - .having( - (res) => res.globalSignOutException, - 'globalSignOutException', - isA(), - ) - .having( - (res) => res.revokeTokenException, - 'revokeTokenException', - isA().having( - (e) => e.underlyingException.toString(), - 'underlyingException', - contains('not attempted'), - ), - ), - ), - ); - expect( - plugin.stateMachine.getUserPoolTokens(), - throwsSignedOutException, - ); - expect(hubEvents, emitsSignOutEvent); - }); - - test('clears credential store when signed in & revoke token fails', - () async { - seedStorage( - secureStorage, - userPoolKeys: userPoolKeys, - identityPoolKeys: identityPoolKeys, - ); - await plugin.configure( - config: mockConfig, - authProviderRepo: testAuthRepo, - ); - - final mockIdp = MockCognitoIdentityProviderClient( - globalSignOut: () async => GlobalSignOutResponse(), - revokeToken: expectAsync0(() async => throw InternalErrorException()), - ); - stateMachine.addInstance(mockIdp); - - await expectLater(plugin.stateMachine.getUserPoolTokens(), completes); - await expectLater( - plugin.signOut( - options: const SignOutOptions(globalSignOut: true), - ), - completion( - isA() - .having( - (res) => res.signedOutLocally, - 'signedOutLocally', - isTrue, - ) - .having( - (res) => res.globalSignOutException, - 'globalSignOutException', - isNull, - ) - .having( - (res) => res.revokeTokenException, - 'revokeTokenException', - isA().having( - (e) => e.refreshToken, - 'refreshToken', - refreshToken, - ), - ), - ), - ); - expect( - plugin.stateMachine.getUserPoolTokens(), - throwsSignedOutException, - ); - expect(hubEvents, emitsSignOutEvent); - }); - - test('can sign out in user pool-only mode', () async { - seedStorage(secureStorage, userPoolKeys: userPoolKeys); - await plugin.configure( - config: mockConfigUserPoolOnly, - authProviderRepo: testAuthRepo, - ); - - final mockIdp = MockCognitoIdentityProviderClient( - globalSignOut: () async => GlobalSignOutResponse(), - revokeToken: () async => RevokeTokenResponse(), - ); - stateMachine.addInstance(mockIdp); - - expect(plugin.signOut(), completion(isA())); - }); - - group('hosted UI', () { - test('clears credential store when signed in & HTTP succeeds', - () async { + test( + 'clears credential store when signed in & global sign out fails', + () async { seedStorage( secureStorage, + userPoolKeys: userPoolKeys, identityPoolKeys: identityPoolKeys, - hostedUiKeys: hostedUiKeys, ); await plugin.configure( config: mockConfig, @@ -278,29 +154,54 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - globalSignOut: () async => GlobalSignOutResponse(), + globalSignOut: expectAsync0( + () async => throw InternalErrorException(), + ), revokeToken: () async => RevokeTokenResponse(), ); stateMachine.addInstance(mockIdp); await expectLater(plugin.stateMachine.getUserPoolTokens(), completes); await expectLater( - plugin.signOut(), - completion(isA()), + plugin.signOut(options: const SignOutOptions(globalSignOut: true)), + completion( + isA() + .having( + (res) => res.signedOutLocally, + 'signedOutLocally', + isTrue, + ) + .having( + (res) => res.globalSignOutException, + 'globalSignOutException', + isA(), + ) + .having( + (res) => res.revokeTokenException, + 'revokeTokenException', + isA().having( + (e) => e.underlyingException.toString(), + 'underlyingException', + contains('not attempted'), + ), + ), + ), ); expect( plugin.stateMachine.getUserPoolTokens(), throwsSignedOutException, ); expect(hubEvents, emitsSignOutEvent); - }); + }, + ); - test('clears credential store when signed in & global sign out fails', - () async { + test( + 'clears credential store when signed in & revoke token fails', + () async { seedStorage( secureStorage, + userPoolKeys: userPoolKeys, identityPoolKeys: identityPoolKeys, - hostedUiKeys: hostedUiKeys, ); await plugin.configure( config: mockConfig, @@ -308,23 +209,37 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - globalSignOut: - expectAsync0(() async => throw InternalErrorException()), - revokeToken: () async => RevokeTokenResponse(), + globalSignOut: () async => GlobalSignOutResponse(), + revokeToken: expectAsync0( + () async => throw InternalErrorException(), + ), ); stateMachine.addInstance(mockIdp); await expectLater(plugin.stateMachine.getUserPoolTokens(), completes); await expectLater( - plugin.signOut( - options: const SignOutOptions(globalSignOut: true), - ), + plugin.signOut(options: const SignOutOptions(globalSignOut: true)), completion( - isA().having( - (res) => res.globalSignOutException, - 'globalSignOutException', - isA(), - ), + isA() + .having( + (res) => res.signedOutLocally, + 'signedOutLocally', + isTrue, + ) + .having( + (res) => res.globalSignOutException, + 'globalSignOutException', + isNull, + ) + .having( + (res) => res.revokeTokenException, + 'revokeTokenException', + isA().having( + (e) => e.refreshToken, + 'refreshToken', + refreshToken, + ), + ), ), ); expect( @@ -332,45 +247,148 @@ void main() { throwsSignedOutException, ); expect(hubEvents, emitsSignOutEvent); - }); + }, + ); - test('clears credential store when signed in & revoke token fails', - () async { - seedStorage( - secureStorage, - identityPoolKeys: identityPoolKeys, - hostedUiKeys: hostedUiKeys, - ); - await plugin.configure( - config: mockConfig, - authProviderRepo: testAuthRepo, - ); + test('can sign out in user pool-only mode', () async { + seedStorage(secureStorage, userPoolKeys: userPoolKeys); + await plugin.configure( + config: mockConfigUserPoolOnly, + authProviderRepo: testAuthRepo, + ); - final mockIdp = MockCognitoIdentityProviderClient( - globalSignOut: () async => GlobalSignOutResponse(), - revokeToken: () async => throw InternalErrorException(), - ); - stateMachine.addInstance(mockIdp); + final mockIdp = MockCognitoIdentityProviderClient( + globalSignOut: () async => GlobalSignOutResponse(), + revokeToken: () async => RevokeTokenResponse(), + ); + stateMachine.addInstance(mockIdp); - await expectLater(plugin.stateMachine.getUserPoolTokens(), completes); - await expectLater( - plugin.signOut( - options: const SignOutOptions(globalSignOut: true), - ), - completion( - isA().having( - (res) => res.revokeTokenException, - 'revokeTokenException', - isA(), + expect(plugin.signOut(), completion(isA())); + }); + + group('hosted UI', () { + test( + 'clears credential store when signed in & HTTP succeeds', + () async { + seedStorage( + secureStorage, + identityPoolKeys: identityPoolKeys, + hostedUiKeys: hostedUiKeys, + ); + await plugin.configure( + config: mockConfig, + authProviderRepo: testAuthRepo, + ); + + final mockIdp = MockCognitoIdentityProviderClient( + globalSignOut: () async => GlobalSignOutResponse(), + revokeToken: () async => RevokeTokenResponse(), + ); + stateMachine.addInstance(mockIdp); + + await expectLater( + plugin.stateMachine.getUserPoolTokens(), + completes, + ); + await expectLater( + plugin.signOut(), + completion(isA()), + ); + expect( + plugin.stateMachine.getUserPoolTokens(), + throwsSignedOutException, + ); + expect(hubEvents, emitsSignOutEvent); + }, + ); + + test( + 'clears credential store when signed in & global sign out fails', + () async { + seedStorage( + secureStorage, + identityPoolKeys: identityPoolKeys, + hostedUiKeys: hostedUiKeys, + ); + await plugin.configure( + config: mockConfig, + authProviderRepo: testAuthRepo, + ); + + final mockIdp = MockCognitoIdentityProviderClient( + globalSignOut: expectAsync0( + () async => throw InternalErrorException(), ), - ), - ); - expect( - plugin.stateMachine.getUserPoolTokens(), - throwsSignedOutException, - ); - expect(hubEvents, emitsSignOutEvent); - }); + revokeToken: () async => RevokeTokenResponse(), + ); + stateMachine.addInstance(mockIdp); + + await expectLater( + plugin.stateMachine.getUserPoolTokens(), + completes, + ); + await expectLater( + plugin.signOut( + options: const SignOutOptions(globalSignOut: true), + ), + completion( + isA().having( + (res) => res.globalSignOutException, + 'globalSignOutException', + isA(), + ), + ), + ); + expect( + plugin.stateMachine.getUserPoolTokens(), + throwsSignedOutException, + ); + expect(hubEvents, emitsSignOutEvent); + }, + ); + + test( + 'clears credential store when signed in & revoke token fails', + () async { + seedStorage( + secureStorage, + identityPoolKeys: identityPoolKeys, + hostedUiKeys: hostedUiKeys, + ); + await plugin.configure( + config: mockConfig, + authProviderRepo: testAuthRepo, + ); + + final mockIdp = MockCognitoIdentityProviderClient( + globalSignOut: () async => GlobalSignOutResponse(), + revokeToken: () async => throw InternalErrorException(), + ); + stateMachine.addInstance(mockIdp); + + await expectLater( + plugin.stateMachine.getUserPoolTokens(), + completes, + ); + await expectLater( + plugin.signOut( + options: const SignOutOptions(globalSignOut: true), + ), + completion( + isA().having( + (res) => res.revokeTokenException, + 'revokeTokenException', + isA(), + ), + ), + ); + expect( + plugin.stateMachine.getUserPoolTokens(), + throwsSignedOutException, + ); + expect(hubEvents, emitsSignOutEvent); + }, + ); test('fails with platform exception', () async { seedStorage( @@ -380,16 +398,17 @@ void main() { ); stateMachine.addBuilder( createHostedUiFactory( - signIn: ( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, - AuthProvider? provider, - ) async {}, - signOut: ( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, - ) async => - throw _HostedUiException(), + signIn: + ( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + AuthProvider? provider, + ) async {}, + signOut: + ( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + ) async => throw _HostedUiException(), ), ); await plugin.configure( @@ -434,16 +453,17 @@ void main() { ); stateMachine.addBuilder( createHostedUiFactory( - signIn: ( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, - AuthProvider? provider, - ) async {}, - signOut: ( - HostedUiPlatform platform, - CognitoSignInWithWebUIPluginOptions options, - ) async => - throw const UserCancelledException(''), + signIn: + ( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + AuthProvider? provider, + ) async {}, + signOut: + ( + HostedUiPlatform platform, + CognitoSignInWithWebUIPluginOptions options, + ) async => throw const UserCancelledException(''), ), ); await plugin.configure( diff --git a/packages/auth/amplify_auth_cognito_test/test/plugin/sign_up_test.dart b/packages/auth/amplify_auth_cognito_test/test/plugin/sign_up_test.dart index f9ada00fb4..b887608088 100644 --- a/packages/auth/amplify_auth_cognito_test/test/plugin/sign_up_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/plugin/sign_up_test.dart @@ -42,10 +42,8 @@ void main() { ); final mockIdp = MockCognitoIdentityProviderClient( - signUp: () async => SignUpResponse( - userConfirmed: true, - userSub: userSub, - ), + signUp: + () async => SignUpResponse(userConfirmed: true, userSub: userSub), ); stateMachine.addInstance(mockIdp); @@ -90,11 +88,12 @@ void main() { attributeName: attributeName, ); final mockIdp = MockCognitoIdentityProviderClient( - signUp: () async => SignUpResponse( - userConfirmed: false, - userSub: userSub, - codeDeliveryDetails: codeDeliveryDetails, - ), + signUp: + () async => SignUpResponse( + userConfirmed: false, + userSub: userSub, + codeDeliveryDetails: codeDeliveryDetails, + ), ); stateMachine.addInstance(mockIdp); diff --git a/packages/auth/amplify_auth_cognito_test/test/state/configuration_state_machine_test.dart b/packages/auth/amplify_auth_cognito_test/test/state/configuration_state_machine_test.dart index 32bea41250..e835400b67 100644 --- a/packages/auth/amplify_auth_cognito_test/test/state/configuration_state_machine_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/state/configuration_state_machine_test.dart @@ -27,13 +27,15 @@ void main() { }); test('configure succeeds', () async { - final configurationStateMachine = - stateMachine.getOrCreate(ConfigurationStateMachine.type); + final configurationStateMachine = stateMachine.getOrCreate( + ConfigurationStateMachine.type, + ); stateMachine.dispatch(ConfigurationEvent.configure(mockConfig)).ignore(); await expectLater( - configurationStateMachine.stream - .startWith(configurationStateMachine.currentState), + configurationStateMachine.stream.startWith( + configurationStateMachine.currentState, + ), emitsInOrder([ isA(), isA(), @@ -45,8 +47,9 @@ void main() { }); test('configure fails', () async { - final configurationStateMachine = - stateMachine.getOrCreate(ConfigurationStateMachine.type); + final configurationStateMachine = stateMachine.getOrCreate( + ConfigurationStateMachine.type, + ); expect( stateMachine @@ -63,13 +66,15 @@ void main() { }); test('multiple configures are ignored', () async { - final configurationStateMachine = - stateMachine.getOrCreate(ConfigurationStateMachine.type); + final configurationStateMachine = stateMachine.getOrCreate( + ConfigurationStateMachine.type, + ); stateMachine.dispatch(ConfigurationEvent.configure(mockConfig)).ignore(); await expectLater( - configurationStateMachine.stream - .startWith(configurationStateMachine.currentState), + configurationStateMachine.stream.startWith( + configurationStateMachine.currentState, + ), emitsInOrder([ isA(), isA(), @@ -78,73 +83,70 @@ void main() { ); stateMachine.dispatch(ConfigurationEvent.configure(mockConfig)).ignore(); - expect( - configurationStateMachine.stream, - emitsDone, - ); + expect(configurationStateMachine.stream, emitsDone); await stateMachine.close(); }); - test('reads existing analytics metadata if analytics is configured', - () async { - const testEndpointId = 'testEndpointId'; - final testPinpointAppId = - mockConfigWithPinpoint.analytics!.amazonPinpoint!.appId; - - // Add state machine dependencies. - stateMachine.addInstance( - EndpointInfoStoreManager( - store: MockSecureStorage() - ..write( - key: testPinpointAppId + EndpointStoreKey.endpointId.name, - value: testEndpointId, - ), - ), - ); - - final configurationStateMachine = - stateMachine.getOrCreate(ConfigurationStateMachine.type); - - stateMachine - .dispatch(ConfigurationEvent.configure(mockConfigWithPinpoint)) - .ignore(); - await expectLater( - configurationStateMachine.stream - .startWith(configurationStateMachine.currentState), - emitsThrough( - isA(), - ), - ); - - expect( - stateMachine.get()?.analyticsEndpointId, - testEndpointId, - ); + test( + 'reads existing analytics metadata if analytics is configured', + () async { + const testEndpointId = 'testEndpointId'; + final testPinpointAppId = + mockConfigWithPinpoint.analytics!.amazonPinpoint!.appId; + + // Add state machine dependencies. + stateMachine.addInstance( + EndpointInfoStoreManager( + store: + MockSecureStorage()..write( + key: testPinpointAppId + EndpointStoreKey.endpointId.name, + value: testEndpointId, + ), + ), + ); + + final configurationStateMachine = stateMachine.getOrCreate( + ConfigurationStateMachine.type, + ); - await stateMachine.close(); - }); + stateMachine + .dispatch(ConfigurationEvent.configure(mockConfigWithPinpoint)) + .ignore(); + await expectLater( + configurationStateMachine.stream.startWith( + configurationStateMachine.currentState, + ), + emitsThrough(isA()), + ); + + expect( + stateMachine.get()?.analyticsEndpointId, + testEndpointId, + ); + + await stateMachine.close(); + }, + ); test('creates analytics metadata if analytics is configured', () async { // Add state machine dependencies. stateMachine.addInstance( - EndpointInfoStoreManager( - store: MockSecureStorage(), - ), + EndpointInfoStoreManager(store: MockSecureStorage()), ); - final configurationStateMachine = - stateMachine.getOrCreate(ConfigurationStateMachine.type); + final configurationStateMachine = stateMachine.getOrCreate( + ConfigurationStateMachine.type, + ); stateMachine .dispatch(ConfigurationEvent.configure(mockConfigWithPinpoint)) .ignore(); await expectLater( - configurationStateMachine.stream - .startWith(configurationStateMachine.currentState), - emitsThrough( - isA(), + configurationStateMachine.stream.startWith( + configurationStateMachine.currentState, ), + emitsThrough(isA()), ); expect( diff --git a/packages/auth/amplify_auth_cognito_test/test/state/credential_store_state_machine_test.dart b/packages/auth/amplify_auth_cognito_test/test/state/credential_store_state_machine_test.dart index 9b9e1926eb..9f8f8c24df 100644 --- a/packages/auth/amplify_auth_cognito_test/test/state/credential_store_state_machine_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/state/credential_store_state_machine_test.dart @@ -29,18 +29,17 @@ void main() { setUp(() { secureStorage = MockSecureStorage(); - manager = DependencyManager() - ..addInstance(secureStorage) - ..addInstance(mockConfig.auth!); + manager = + DependencyManager() + ..addInstance(secureStorage) + ..addInstance(mockConfig.auth!); stateMachine = CognitoAuthStateMachine(dependencyManager: manager); }); // Load an empty credential store. test('loadCredentialStore (empty)', () async { stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); @@ -66,9 +65,7 @@ void main() { version: CredentialStoreVersion.v1, ); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); @@ -99,9 +96,7 @@ void main() { group('storeCredentials', () { test('all', () async { stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); @@ -165,9 +160,7 @@ void main() { version: CredentialStoreVersion.v1, ); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); @@ -183,9 +176,7 @@ void main() { stateMachine .dispatch( const CredentialStoreEvent.storeCredentials( - CredentialStoreData( - identityId: identityId, - ), + CredentialStoreData(identityId: identityId), ), ) .ignore(); @@ -221,9 +212,7 @@ void main() { version: CredentialStoreVersion.v1, ); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); @@ -245,9 +234,7 @@ void main() { stateMachine .dispatch( const CredentialStoreEvent.storeCredentials( - CredentialStoreData( - awsCredentials: newCredentials, - ), + CredentialStoreData(awsCredentials: newCredentials), ), ) .ignore(); @@ -273,9 +260,7 @@ void main() { test('federation', () async { seedStorage(secureStorage, identityPoolKeys: identityPoolKeys); await stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .completed; final result = await stateMachine.loadCredentials(); @@ -313,16 +298,8 @@ void main() { expect( newResult.signInDetails, isA() - .having( - (details) => details.provider, - 'provider', - provider, - ) - .having( - (details) => details.token, - 'token', - providerToken, - ), + .having((details) => details.provider, 'provider', provider) + .having((details) => details.token, 'token', providerToken), ); await stateMachine.close(); @@ -338,9 +315,7 @@ void main() { version: CredentialStoreVersion.v1, ); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); @@ -354,9 +329,7 @@ void main() { ); stateMachine - .dispatch( - const CredentialStoreEvent.clearCredentials(), - ) + .dispatch(const CredentialStoreEvent.clearCredentials()) .ignore(); await expectLater( @@ -384,9 +357,7 @@ void main() { version: CredentialStoreVersion.v1, ); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); @@ -400,11 +371,7 @@ void main() { ); stateMachine - .dispatch( - CredentialStoreEvent.clearCredentials( - identityPoolKeys, - ), - ) + .dispatch(CredentialStoreEvent.clearCredentials(identityPoolKeys)) .ignore(); await expectLater( @@ -433,9 +400,7 @@ void main() { expect(await sm.getVersion(), CredentialStoreVersion.none); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); await expectLater( @@ -472,9 +437,7 @@ void main() { expect(await sm.getVersion(), CredentialStoreVersion.none); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); await expectLater( @@ -523,9 +486,7 @@ void main() { expect(await sm.getVersion(), CredentialStoreVersion.none); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); await expectLater( @@ -573,9 +534,7 @@ void main() { seedStorage(secureStorage, version: CredentialStoreVersion.v1); stateMachine - .dispatch( - const CredentialStoreEvent.loadCredentialStore(), - ) + .dispatch(const CredentialStoreEvent.loadCredentialStore()) .ignore(); final sm = stateMachine.getOrCreate(CredentialStoreStateMachine.type); diff --git a/packages/auth/amplify_auth_cognito_test/test/state/fetch_auth_session_state_machine_test.dart b/packages/auth/amplify_auth_cognito_test/test/state/fetch_auth_session_state_machine_test.dart index fe819884b8..a0f113c555 100644 --- a/packages/auth/amplify_auth_cognito_test/test/state/fetch_auth_session_state_machine_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/state/fetch_auth_session_state_machine_test.dart @@ -55,9 +55,7 @@ void main() { bool forceRefresh = false, required bool willRefresh, }) async { - final sm = stateMachine.getOrCreate( - FetchAuthSessionStateMachine.type, - ); + final sm = stateMachine.getOrCreate(FetchAuthSessionStateMachine.type); expect( sm.stream.startWith(sm.currentState), emitsInOrder([ @@ -67,12 +65,12 @@ void main() { isA(), ]), ); - final sessionState = - await stateMachine.dispatchAndComplete( - FetchAuthSessionEvent.fetch( - FetchAuthSessionOptions(forceRefresh: forceRefresh), - ), - ); + final sessionState = await stateMachine + .dispatchAndComplete( + FetchAuthSessionEvent.fetch( + FetchAuthSessionOptions(forceRefresh: forceRefresh), + ), + ); return sessionState.session; } @@ -82,32 +80,27 @@ void main() { String? developerProvidedIdentityId, required bool willRefresh, }) async { - final sm = stateMachine.getOrCreate( - FetchAuthSessionStateMachine.type, - ); + final sm = stateMachine.getOrCreate(FetchAuthSessionStateMachine.type); final expectation = expectLater( sm.stream, emitsInOrder([ isA(), if (willRefresh) isA(), - anyOf( - isA(), - isA(), - ), + anyOf(isA(), isA()), ]), ); - final sessionState = - await stateMachine.dispatchAndComplete( - FetchAuthSessionEvent.federate( - FederateToIdentityPoolRequest( - provider: provider, - token: token, - options: FederateToIdentityPoolOptions( - developerProvidedIdentityId: developerProvidedIdentityId, + final sessionState = await stateMachine + .dispatchAndComplete( + FetchAuthSessionEvent.federate( + FederateToIdentityPoolRequest( + provider: provider, + token: token, + options: FederateToIdentityPoolOptions( + developerProvidedIdentityId: developerProvidedIdentityId, + ), + ), ), - ), - ), - ); + ); await expectation; final session = sessionState.session; return FederateToIdentityPoolResult( @@ -118,9 +111,10 @@ void main() { setUp(() { secureStorage = MockSecureStorage(); - stateMachine = CognitoAuthStateMachine() - ..addInstance(secureStorage) - ..addInstance(mockConfig); + stateMachine = + CognitoAuthStateMachine() + ..addInstance(secureStorage) + ..addInstance(mockConfig); }); group('User Pool + Identity Pool', () { @@ -234,9 +228,10 @@ void main() { stateMachine.addInstance( MockCognitoIdentityClient( getCredentialsForIdentity: expectAsync0( - () async => throw const AuthNotAuthorizedException( - 'Not authorized', - ), + () async => + throw const AuthNotAuthorizedException( + 'Not authorized', + ), ), ), ); @@ -279,9 +274,8 @@ void main() { stateMachine.addInstance( MockCognitoIdentityClient( getCredentialsForIdentity: expectAsync0( - () async => throw AWSHttpException( - AWSHttpRequest.get(Uri()), - ), + () async => + throw AWSHttpException(AWSHttpRequest.get(Uri())), ), ), ); @@ -434,9 +428,10 @@ void main() { stateMachine.addInstance( MockCognitoIdentityProviderClient( initiateAuth: expectAsync1( - (_) async => throw const AuthNotAuthorizedException( - 'Tokens expired', - ), + (_) async => + throw const AuthNotAuthorizedException( + 'Tokens expired', + ), ), ), ); @@ -478,9 +473,8 @@ void main() { stateMachine.addInstance( MockCognitoIdentityProviderClient( initiateAuth: expectAsync1( - (_) async => throw AWSHttpException( - AWSHttpRequest.get(Uri()), - ), + (_) async => + throw AWSHttpException(AWSHttpRequest.get(Uri())), ), ), ); @@ -624,9 +618,8 @@ void main() { stateMachine.addInstance( MockCognitoIdentityProviderClient( initiateAuth: expectAsync1( - (_) async => throw AWSHttpException( - AWSHttpRequest.get(Uri()), - ), + (_) async => + throw AWSHttpException(AWSHttpRequest.get(Uri())), ), ), ); @@ -782,18 +775,20 @@ void main() { ..addInstance( MockCognitoIdentityProviderClient( initiateAuth: expectAsync1( - (_) async => throw const AuthNotAuthorizedException( - 'Tokens expired', - ), + (_) async => + throw const AuthNotAuthorizedException( + 'Tokens expired', + ), ), ), ) ..addInstance( MockCognitoIdentityClient( getCredentialsForIdentity: expectAsync0( - () async => throw const AuthNotAuthorizedException( - 'Tokens expired', - ), + () async => + throw const AuthNotAuthorizedException( + 'Tokens expired', + ), ), ), ); @@ -843,18 +838,16 @@ void main() { ..addInstance( MockCognitoIdentityProviderClient( initiateAuth: expectAsync1( - (_) async => throw AWSHttpException( - AWSHttpRequest.get(Uri()), - ), + (_) async => + throw AWSHttpException(AWSHttpRequest.get(Uri())), ), ), ) ..addInstance( MockCognitoIdentityClient( getCredentialsForIdentity: expectAsync0( - () async => throw AWSHttpException( - AWSHttpRequest.get(Uri()), - ), + () async => + throw AWSHttpException(AWSHttpRequest.get(Uri())), ), ), ); @@ -1015,9 +1008,10 @@ void main() { stateMachine.addInstance( MockCognitoIdentityClient( getId: expectAsync0( - () async => throw const AuthNotAuthorizedException( - 'Not Authorized', - ), + () async => + throw const AuthNotAuthorizedException( + 'Not Authorized', + ), ), ), ); @@ -1099,22 +1093,10 @@ void main() { willRefresh: false, ); expect(session.identityId, identityId); - expect( - session.credentials.accessKeyId, - accessKeyId, - ); - expect( - session.credentials.secretAccessKey, - secretAccessKey, - ); - expect( - session.credentials.sessionToken, - sessionToken, - ); - expect( - session.credentials.expiration, - isNotNull, - ); + expect(session.credentials.accessKeyId, accessKeyId); + expect(session.credentials.secretAccessKey, secretAccessKey); + expect(session.credentials.sessionToken, sessionToken); + expect(session.credentials.expiration, isNotNull); }); test('can refresh federation with same token', () async { @@ -1129,10 +1111,7 @@ void main() { willRefresh: true, ); expect(newSession.identityId, firstSession.identityId); - expect( - newSession.credentials, - isNot(firstSession.credentials), - ); + expect(newSession.credentials, isNot(firstSession.credentials)); }); test('can refresh federation with new token', () async { @@ -1147,10 +1126,7 @@ void main() { willRefresh: true, ); expect(newSession.identityId, firstSession.identityId); - expect( - newSession.credentials, - isNot(firstSession.credentials), - ); + expect(newSession.credentials, isNot(firstSession.credentials)); }); test('can refresh via refresh event', () async { @@ -1159,36 +1135,29 @@ void main() { provider: provider, willRefresh: false, ); - final completion = await stateMachine - .dispatch( - const FetchAuthSessionEvent.refresh( - refreshUserPoolTokens: false, - refreshAwsCredentials: true, - ), - ) - .completed; + final completion = + await stateMachine + .dispatch( + const FetchAuthSessionEvent.refresh( + refreshUserPoolTokens: false, + refreshAwsCredentials: true, + ), + ) + .completed; if (completion is! FetchAuthSessionSuccess) { fail('Refresh failed: $completion'); } final identityId = completion.session.identityIdResult.valueOrNull; - expect( - identityId, - session.identityId, - ); + expect(identityId, session.identityId); final credentials = completion.session.credentialsResult.valueOrNull; - expect( - credentials, - isNot(session.credentials), - ); + expect(credentials, isNot(session.credentials)); }); test('can federate after failure', () async { final originalClient = stateMachine.expect(); stateMachine.addInstance( - MockCognitoIdentityClient( - getId: () async => throw Exception(), - ), + MockCognitoIdentityClient(getId: () async => throw Exception()), ); await expectLater( federateToIdentityPool( @@ -1224,10 +1193,7 @@ void main() { willRefresh: true, ); expect(newSession.identityId, firstSession.identityId); - expect( - newSession.credentials, - isNot(firstSession.credentials), - ); + expect(newSession.credentials, isNot(firstSession.credentials)); }); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/state/hosted_ui_state_machine_test.dart b/packages/auth/amplify_auth_cognito_test/test/state/hosted_ui_state_machine_test.dart index 61f51eb2bc..7c3dd38ca8 100644 --- a/packages/auth/amplify_auth_cognito_test/test/state/hosted_ui_state_machine_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/state/hosted_ui_state_machine_test.dart @@ -57,9 +57,7 @@ class FailingHostedUiPlatform extends HostedUiPlatform { } @override - Future signOut({ - required CognitoSignInWithWebUIPluginOptions options, - }) { + Future signOut({required CognitoSignInWithWebUIPluginOptions options}) { throw Exception(); } @@ -86,17 +84,16 @@ void main() { server = MockOAuthServer(); secureStorage = MockSecureStorage(); - stateMachine = CognitoAuthStateMachine() - ..addInstance(server.httpClient) - ..addInstance(secureStorage) - ..addBuilder(MockHostedUiPlatform.new); + stateMachine = + CognitoAuthStateMachine() + ..addInstance(server.httpClient) + ..addInstance(secureStorage) + ..addBuilder(MockHostedUiPlatform.new); }); test('getAuthorizationUrl', () async { stateMachine - ..addInstance>( - const MockDispatcher(), - ) + ..addInstance>(const MockDispatcher()) ..addInstance(mockConfig.auth!); final platform = stateMachine.create(); @@ -125,25 +122,17 @@ void main() { expect(authorizationUri.queryParameters['code_challenge'], isNotNull); expect(authorizationUri.queryParameters['code_challenge'], isNotEmpty); - expect( - authorizationUri.queryParameters['code_challenge_method'], - 'S256', - ); + expect(authorizationUri.queryParameters['code_challenge_method'], 'S256'); }); group('onFoundState', () { test('nothing in storage', () { stateMachine - .dispatch( - ConfigurationEvent.configure(mockConfig), - ) + .dispatch(ConfigurationEvent.configure(mockConfig)) .ignore(); final sm = stateMachine.getOrCreate(HostedUiStateMachine.type); - expect( - sm.stream, - emitsThrough(isA()), - ); + expect(sm.stream, emitsThrough(isA())); }); test('clears old state', () async { @@ -151,10 +140,7 @@ void main() { const codeVerifier = 'codeVerifier'; secureStorage ..write(key: keys[HostedUiKey.state], value: state) - ..write( - key: keys[HostedUiKey.codeVerifier], - value: codeVerifier, - ); + ..write(key: keys[HostedUiKey.codeVerifier], value: codeVerifier); stateMachine .dispatch(ConfigurationEvent.configure(mockConfig)) @@ -230,11 +216,7 @@ void main() { ); stateMachine - .dispatch( - const HostedUiEvent.signIn( - provider: AuthProvider.amazon, - ), - ) + .dispatch(const HostedUiEvent.signIn(provider: AuthProvider.amazon)) .ignore(); expect(_launchUrl.future, completes); }); @@ -254,11 +236,7 @@ void main() { ); stateMachine - .dispatch( - const HostedUiEvent.signIn( - provider: AuthProvider.amazon, - ), - ) + .dispatch(const HostedUiEvent.signIn(provider: AuthProvider.amazon)) .ignore(); expect( sm.stream, @@ -287,18 +265,16 @@ void main() { stateMachine.addInstance( MockCognitoIdentityClient( - getId: () async => GetIdResponse( - identityId: identityId, - ), - getCredentialsForIdentity: () async => - GetCredentialsForIdentityResponse( - credentials: Credentials( - accessKeyId: accessKeyId, - secretKey: secretAccessKey, - sessionToken: sessionToken, - expiration: expiration, - ), - ), + getId: () async => GetIdResponse(identityId: identityId), + getCredentialsForIdentity: + () async => GetCredentialsForIdentityResponse( + credentials: Credentials( + accessKeyId: accessKeyId, + secretKey: secretAccessKey, + sessionToken: sessionToken, + expiration: expiration, + ), + ), ), ); }); @@ -365,9 +341,7 @@ void main() { const provider = AuthProvider.oidc('providerName', 'issuer'); stateMachine - .dispatch( - const HostedUiEvent.signIn(provider: provider), - ) + .dispatch(const HostedUiEvent.signIn(provider: provider)) .ignore(); final params = await server.authorize(await _launchUrl.future); stateMachine.dispatch(HostedUiEvent.exchange(params)).ignore(); @@ -423,9 +397,10 @@ void main() { .dispatch( HostedUiEvent.exchange( OAuthParameters( - (b) => b - ..error = OAuthErrorCode.invalidRequest - ..state = state, + (b) => + b + ..error = OAuthErrorCode.invalidRequest + ..state = state, ), ), ) @@ -447,9 +422,10 @@ void main() { .dispatch( HostedUiEvent.exchange( OAuthParameters( - (b) => b - ..code = 'badCode' - ..state = 'badState', + (b) => + b + ..code = 'badCode' + ..state = 'badState', ), ), ) @@ -546,14 +522,12 @@ void main() { CognitoSignInWithWebUIPluginOptions options, AuthProvider? provider, ) async { - final signInUrl = - await platform.getSignInUri(provider: provider); + final signInUrl = await platform.getSignInUri( + provider: provider, + ); _launchUrl.complete(signInUrl); }, - signOut: expectAsync2(( - platform, - options, - ) async { + signOut: expectAsync2((platform, options) async { expect(options.isPreferPrivateSession, isTrue); }), ), diff --git a/packages/auth/amplify_auth_cognito_test/test/state/sign_in_state_machine_test.dart b/packages/auth/amplify_auth_cognito_test/test/state/sign_in_state_machine_test.dart index ebb052091f..b85b4e62dd 100644 --- a/packages/auth/amplify_auth_cognito_test/test/state/sign_in_state_machine_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/state/sign_in_state_machine_test.dart @@ -29,20 +29,19 @@ void main() { setUp(() { secureStorage = MockSecureStorage(); - stateMachine = CognitoAuthStateMachine() - ..addInstance(secureStorage); + stateMachine = + CognitoAuthStateMachine() + ..addInstance(secureStorage); }); test('smoke test', () async { stateMachine - .dispatch( - ConfigurationEvent.configure(mockConfigUserPoolOnly), - ) + .dispatch(ConfigurationEvent.configure(mockConfigUserPoolOnly)) .ignore(); await expectLater( stateMachine.stream.whereType().firstWhere( - (event) => event is Configured || event is ConfigureFailure, - ), + (event) => event is Configured || event is ConfigureFailure, + ), completion(isA()), ); @@ -63,9 +62,10 @@ void main() { SignInEvent.initiate( authFlowType: AuthenticationFlowType.customAuthWithSrp, parameters: SignInParameters( - (p) => p - ..username = 'username' - ..password = 'password', + (p) => + p + ..username = 'username' + ..password = 'password', ), ), ).ignore(); @@ -96,14 +96,12 @@ void main() { group('custom auth', () { test('customAuthWithSrp requires password', () async { stateMachine - .dispatch( - ConfigurationEvent.configure(mockConfigUserPoolOnly), - ) + .dispatch(ConfigurationEvent.configure(mockConfigUserPoolOnly)) .ignore(); await expectLater( stateMachine.stream.whereType().firstWhere( - (event) => event is Configured || event is ConfigureFailure, - ), + (event) => event is Configured || event is ConfigureFailure, + ), completion(isA()), ); @@ -111,9 +109,7 @@ void main() { .dispatch( SignInEvent.initiate( authFlowType: AuthenticationFlowType.customAuthWithSrp, - parameters: SignInParameters( - (p) => p..username = 'username', - ), + parameters: SignInParameters((p) => p..username = 'username'), ), ) .ignore(); @@ -133,14 +129,12 @@ void main() { test('customAuthWithoutSrp forbids password', () async { stateMachine - .dispatch( - ConfigurationEvent.configure(mockConfigUserPoolOnly), - ) + .dispatch(ConfigurationEvent.configure(mockConfigUserPoolOnly)) .ignore(); await expectLater( stateMachine.stream.whereType().firstWhere( - (event) => event is Configured || event is ConfigureFailure, - ), + (event) => event is Configured || event is ConfigureFailure, + ), completion(isA()), ); @@ -149,9 +143,10 @@ void main() { SignInEvent.initiate( authFlowType: AuthenticationFlowType.customAuthWithoutSrp, parameters: SignInParameters( - (p) => p - ..username = 'username' - ..password = 'password', + (p) => + p + ..username = 'username' + ..password = 'password', ), ), ) @@ -176,14 +171,12 @@ void main() { setUp(() async { stateMachine - .dispatch( - ConfigurationEvent.configure(mockConfig), - ) + .dispatch(ConfigurationEvent.configure(mockConfig)) .ignore(); await expectLater( stateMachine.stream.whereType().firstWhere( - (event) => event is Configured || event is ConfigureFailure, - ), + (event) => event is Configured || event is ConfigureFailure, + ), completion(isA()), ); deviceRepo = DeviceMetadataRepository(mockConfig.auth!, secureStorage); @@ -194,10 +187,11 @@ void main() { await deviceRepo.put( srpUsername, CognitoDeviceSecrets( - (b) => b - ..deviceKey = deviceKey - ..deviceGroupKey = deviceGroupKey - ..devicePassword = devicePassword, + (b) => + b + ..deviceKey = deviceKey + ..deviceGroupKey = deviceGroupKey + ..devicePassword = devicePassword, ), ); @@ -222,17 +216,19 @@ void main() { throw cognito_idp.InvalidParameterException(); }, ); - stateMachine - .addInstance(mockClient); + stateMachine.addInstance( + mockClient, + ); expect( stateMachine .accept( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = srpUsername - ..password = srpPassword, + (b) => + b + ..username = srpUsername + ..password = srpPassword, ), ), ) @@ -266,17 +262,19 @@ void main() { throw cognito_idp.InvalidParameterException(); }), ); - stateMachine - .addInstance(mockClient); + stateMachine.addInstance( + mockClient, + ); await expectLater( stateMachine .accept( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = srpUsername - ..password = srpPassword, + (b) => + b + ..username = srpUsername + ..password = srpPassword, ), ), ) @@ -314,17 +312,19 @@ void main() { ); }), ); - stateMachine - .addInstance(mockClient); + stateMachine.addInstance( + mockClient, + ); await expectLater( stateMachine .accept( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = username - ..password = password, + (b) => + b + ..username = username + ..password = password, ), ), ) @@ -339,10 +339,11 @@ void main() { await deviceRepo.put( username, CognitoDeviceSecrets( - (b) => b - ..deviceKey = deviceKey - ..deviceGroupKey = deviceGroupKey - ..devicePassword = devicePassword, + (b) => + b + ..deviceKey = deviceKey + ..deviceGroupKey = deviceGroupKey + ..devicePassword = devicePassword, ), ); @@ -367,10 +368,7 @@ void main() { respondToAuthChallenge: expectAsync1(max: -1, (_) async { try { if (retry) { - expect( - await deviceRepo.get(username), - isNull, - ); + expect(await deviceRepo.get(username), isNull); return cognito_idp.RespondToAuthChallengeResponse( authenticationResult: cognito_idp.AuthenticationResultType( accessToken: accessToken.raw, @@ -395,17 +393,19 @@ void main() { ); }), ); - stateMachine - .addInstance(mockClient); + stateMachine.addInstance( + mockClient, + ); await expectLater( stateMachine .accept( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = username - ..password = password, + (b) => + b + ..username = username + ..password = password, ), ), ) @@ -417,76 +417,78 @@ void main() { }); test( - 'analyticsMetadata sent with InitiateAuthRequest and RespondToAuthChallengeRequest.', - () async { - const analyticsEndpointId = 'analyticsEndpointId'; - - final mockClient = MockCognitoIdentityProviderClient( - initiateAuth: expectAsync1((request) async { - expect( - request.analyticsMetadata?.analyticsEndpointId, - analyticsEndpointId, - ); - return cognito_idp.InitiateAuthResponse( - challengeName: cognito_idp.ChallengeNameType.passwordVerifier, - challengeParameters: { - CognitoConstants.challengeParamUsername: username, - CognitoConstants.challengeParamUserIdForSrp: username, - CognitoConstants.challengeParamSecretBlock: secretBlock, - CognitoConstants.challengeParamSalt: salt, - CognitoConstants.challengeParamSrpB: publicB, - }, - ); - }), - respondToAuthChallenge: expectAsync1(max: -1, (request) async { - expect( - request.analyticsMetadata?.analyticsEndpointId, - analyticsEndpointId, - ); - return cognito_idp.RespondToAuthChallengeResponse( - authenticationResult: cognito_idp.AuthenticationResultType( - accessToken: accessToken.raw, - refreshToken: refreshToken, - idToken: idToken.raw, - newDeviceMetadata: cognito_idp.NewDeviceMetadataType( - deviceKey: deviceKey, - deviceGroupKey: deviceGroupKey, + 'analyticsMetadata sent with InitiateAuthRequest and RespondToAuthChallengeRequest.', + () async { + const analyticsEndpointId = 'analyticsEndpointId'; + + final mockClient = MockCognitoIdentityProviderClient( + initiateAuth: expectAsync1((request) async { + expect( + request.analyticsMetadata?.analyticsEndpointId, + analyticsEndpointId, + ); + return cognito_idp.InitiateAuthResponse( + challengeName: cognito_idp.ChallengeNameType.passwordVerifier, + challengeParameters: { + CognitoConstants.challengeParamUsername: username, + CognitoConstants.challengeParamUserIdForSrp: username, + CognitoConstants.challengeParamSecretBlock: secretBlock, + CognitoConstants.challengeParamSalt: salt, + CognitoConstants.challengeParamSrpB: publicB, + }, + ); + }), + respondToAuthChallenge: expectAsync1(max: -1, (request) async { + expect( + request.analyticsMetadata?.analyticsEndpointId, + analyticsEndpointId, + ); + return cognito_idp.RespondToAuthChallengeResponse( + authenticationResult: cognito_idp.AuthenticationResultType( + accessToken: accessToken.raw, + refreshToken: refreshToken, + idToken: idToken.raw, + newDeviceMetadata: cognito_idp.NewDeviceMetadataType( + deviceKey: deviceKey, + deviceGroupKey: deviceGroupKey, + ), ), - ), - ); - }), - confirmDevice: expectAsync0(() async { - return cognito_idp.ConfirmDeviceResponse( - userConfirmationNecessary: false, - ); - }), - ); - - stateMachine - ..addInstance(mockClient) - ..addInstance( - cognito_idp.AnalyticsMetadataType( - analyticsEndpointId: analyticsEndpointId, - ), + ); + }), + confirmDevice: expectAsync0(() async { + return cognito_idp.ConfirmDeviceResponse( + userConfirmationNecessary: false, + ); + }), ); - await expectLater( stateMachine - .accept( - SignInEvent.initiate( - parameters: SignInParameters( - (b) => b - ..username = username - ..password = password, + ..addInstance(mockClient) + ..addInstance( + cognito_idp.AnalyticsMetadataType( + analyticsEndpointId: analyticsEndpointId, + ), + ); + + await expectLater( + stateMachine + .accept( + SignInEvent.initiate( + parameters: SignInParameters( + (b) => + b + ..username = username + ..password = password, + ), ), - ), - ) - .completed, - completion(isA()), - ); + ) + .completed, + completion(isA()), + ); - expect(await deviceRepo.get(username), isNotNull); - }); + expect(await deviceRepo.get(username), isNotNull); + }, + ); }); group('exception handling', () { @@ -524,16 +526,18 @@ void main() { ); }), ); - stateMachine - .addInstance(mockClient); + stateMachine.addInstance( + mockClient, + ); await expectLater( stateMachine.acceptAndComplete( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = username - ..password = password, + (b) => + b + ..username = username + ..password = password, ), ), ), @@ -545,7 +549,8 @@ void main() { const SignInEvent.respondToChallenge(answer: 'attempt'), ), throwsA(isA()), - reason: 'Attempting to call confirmSignIn before a successful ' + reason: + 'Attempting to call confirmSignIn before a successful ' 'signIn call should throw', ); @@ -556,9 +561,10 @@ void main() { stateMachine.acceptAndComplete( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = username - ..password = password, + (b) => + b + ..username = username + ..password = password, ), ), ), @@ -600,16 +606,18 @@ void main() { } }), ); - stateMachine - .addInstance(mockClient); + stateMachine.addInstance( + mockClient, + ); await expectLater( stateMachine.acceptAndComplete( SignInEvent.initiate( parameters: SignInParameters( - (b) => b - ..username = username - ..password = password, + (b) => + b + ..username = username + ..password = password, ), ), ), @@ -628,7 +636,8 @@ void main() { const SignInEvent.respondToChallenge(answer: 'good-answer'), ), completion(isA()), - reason: 'Attempting to confirmSignIn after any exception is thrown ' + reason: + 'Attempting to confirmSignIn after any exception is thrown ' 'should be permitted', ); }); diff --git a/packages/auth/amplify_auth_cognito_test/test/state/sign_up_state_machine_test.dart b/packages/auth/amplify_auth_cognito_test/test/state/sign_up_state_machine_test.dart index f142dfa463..6debad450f 100644 --- a/packages/auth/amplify_auth_cognito_test/test/state/sign_up_state_machine_test.dart +++ b/packages/auth/amplify_auth_cognito_test/test/state/sign_up_state_machine_test.dart @@ -22,13 +22,12 @@ void main() { const password = 'password'; final signUpEvent = SignUpEvent.initiate( parameters: SignUpParameters( - (p) => p - ..username = username - ..password = password, + (p) => + p + ..username = username + ..password = password, ), - userAttributes: { - AuthUserAttributeKey.email: 'test@example.com', - }, + userAttributes: {AuthUserAttributeKey.email: 'test@example.com'}, validationData: const {'key': 'value'}, ); @@ -40,10 +39,8 @@ void main() { test('success', () async { final client = MockCognitoIdentityProviderClient( - signUp: () async => SignUpResponse( - userSub: userSub, - userConfirmed: true, - ), + signUp: + () async => SignUpResponse(userSub: userSub, userConfirmed: true), ); stateMachine.dispatch(ConfigurationEvent.configure(mockConfig)).ignore(); await stateMachine.stream.whereType().first; @@ -67,10 +64,8 @@ void main() { test('needs confirmation', () async { final client = MockCognitoIdentityProviderClient( - signUp: () async => SignUpResponse( - userSub: userSub, - userConfirmed: false, - ), + signUp: + () async => SignUpResponse(userSub: userSub, userConfirmed: false), confirmSignUp: () async => ConfirmSignUpResponse(), ); stateMachine.dispatch(ConfigurationEvent.configure(mockConfig)).ignore(); @@ -102,10 +97,7 @@ void main() { .ignore(); expect( stateMachine.stream.whereType(), - emitsInOrder([ - isA(), - isA(), - ]), + emitsInOrder([isA(), isA()]), ); }); @@ -133,10 +125,8 @@ void main() { ); client = MockCognitoIdentityProviderClient( - signUp: () async => SignUpResponse( - userSub: userSub, - userConfirmed: true, - ), + signUp: + () async => SignUpResponse(userSub: userSub, userConfirmed: true), ); stateMachine ..addInstance(client) diff --git a/packages/authenticator/amplify_authenticator/CHANGELOG.md b/packages/authenticator/amplify_authenticator/CHANGELOG.md index e7253350c1..69b706b8ed 100644 --- a/packages/authenticator/amplify_authenticator/CHANGELOG.md +++ b/packages/authenticator/amplify_authenticator/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.3.4 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.3.3 - Minor bug fixes and improvements diff --git a/packages/authenticator/amplify_authenticator/example/android/.gitignore b/packages/authenticator/amplify_authenticator/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/authenticator/amplify_authenticator/example/android/.gitignore +++ b/packages/authenticator/amplify_authenticator/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/authenticator/amplify_authenticator/example/android/app/build.gradle b/packages/authenticator/amplify_authenticator/example/android/app/build.gradle index f4a3e75b74..0e1500ac47 100644 --- a/packages/authenticator/amplify_authenticator/example/android/app/build.gradle +++ b/packages/authenticator/amplify_authenticator/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -62,4 +64,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") +} diff --git a/packages/authenticator/amplify_authenticator/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/authenticator/amplify_authenticator/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/authenticator/amplify_authenticator/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/authenticator/amplify_authenticator/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/authenticator/amplify_authenticator/example/android/settings.gradle b/packages/authenticator/amplify_authenticator/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/authenticator/amplify_authenticator/example/android/settings.gradle +++ b/packages/authenticator/amplify_authenticator/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_email_or_phone_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_email_or_phone_test.dart index f6685237a5..65bcf17c46 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_email_or_phone_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_email_or_phone_test.dart @@ -20,128 +20,126 @@ void main() { }); // Scenario: Sign up & confirm account with email as username - testWidgets( - 'Sign up & confirm account with email as username', - (tester) async { - final signUpPage = SignUpPage(tester: tester); - final confirmSignUpPage = ConfirmSignUpPage(tester: tester); - final signInPage = SignInPage(tester: tester); - - await loadAuthenticator(tester: tester); - - expect( - tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - UnauthenticatedState.signUp, - UnauthenticatedState.confirmSignUp, - isA(), - emitsDone, - ]), - ); - - final email = generateEmail(); - final phoneNumber = generateUSPhoneNumber(); - final password = generatePassword(); - - final otpResult = await getOtpCode(UserAttribute.email(email)); + testWidgets('Sign up & confirm account with email as username', ( + tester, + ) async { + final signUpPage = SignUpPage(tester: tester); + final confirmSignUpPage = ConfirmSignUpPage(tester: tester); + final signInPage = SignInPage(tester: tester); + + await loadAuthenticator(tester: tester); + + expect( + tester.bloc.stream, + emitsInOrder([ + UnauthenticatedState.signIn, + UnauthenticatedState.signUp, + UnauthenticatedState.confirmSignUp, + isA(), + emitsDone, + ]), + ); - await signInPage.navigateToSignUp(); + final email = generateEmail(); + final phoneNumber = generateUSPhoneNumber(); + final password = generatePassword(); - // When I select email as a username - await signUpPage.selectEmail(); + final otpResult = await getOtpCode(UserAttribute.email(email)); - // And I type my email address as a username - await signUpPage.enterUsername(email); + await signInPage.navigateToSignUp(); - // And I type my password - await signUpPage.enterPassword(password); + // When I select email as a username + await signUpPage.selectEmail(); - // And I confirm my password - await signUpPage.enterPasswordConfirmation(password); + // And I type my email address as a username + await signUpPage.enterUsername(email); - // And I enter my phone number - await signUpPage.enterPhoneNumber(phoneNumber.withOutCountryCode()); + // And I type my password + await signUpPage.enterPassword(password); - // And I click the "Create Account" button - await signUpPage.submitSignUp(); + // And I confirm my password + await signUpPage.enterPasswordConfirmation(password); - // And I see "Confirmation Code" - confirmSignUpPage.expectConfirmationCodeIsPresent(); + // And I enter my phone number + await signUpPage.enterPhoneNumber(phoneNumber.withOutCountryCode()); - // And I type a valid confirmation code - await confirmSignUpPage.enterCode(await otpResult.code); + // And I click the "Create Account" button + await signUpPage.submitSignUp(); - // And I click the "Confirm" button - await confirmSignUpPage.submitConfirmSignUp(); + // And I see "Confirmation Code" + confirmSignUpPage.expectConfirmationCodeIsPresent(); - // Then I see "Sign out" - await signInPage.expectAuthenticated(); + // And I type a valid confirmation code + await confirmSignUpPage.enterCode(await otpResult.code); - await tester.bloc.close(); - }, - ); + // And I click the "Confirm" button + await confirmSignUpPage.submitConfirmSignUp(); - testWidgets( - 'Sign up & confirm account with phone number as username', - (tester) async { - final signUpPage = SignUpPage(tester: tester); - final confirmSignUpPage = ConfirmSignUpPage(tester: tester); - final signInPage = SignInPage(tester: tester); + // Then I see "Sign out" + await signInPage.expectAuthenticated(); - await loadAuthenticator(tester: tester); + await tester.bloc.close(); + }); - expect( - tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - UnauthenticatedState.signUp, - UnauthenticatedState.confirmSignUp, - isA(), - emitsDone, - ]), - ); + testWidgets('Sign up & confirm account with phone number as username', ( + tester, + ) async { + final signUpPage = SignUpPage(tester: tester); + final confirmSignUpPage = ConfirmSignUpPage(tester: tester); + final signInPage = SignInPage(tester: tester); + + await loadAuthenticator(tester: tester); + + expect( + tester.bloc.stream, + emitsInOrder([ + UnauthenticatedState.signIn, + UnauthenticatedState.signUp, + UnauthenticatedState.confirmSignUp, + isA(), + emitsDone, + ]), + ); - final email = generateEmail(); - final phoneNumber = generateUSPhoneNumber(); - final password = generatePassword(); + final email = generateEmail(); + final phoneNumber = generateUSPhoneNumber(); + final password = generatePassword(); - final otpResult = await getOtpCode(UserAttribute.email(email)); + final otpResult = await getOtpCode(UserAttribute.email(email)); - await signInPage.navigateToSignUp(); + await signInPage.navigateToSignUp(); - // When I select phone number as a username - await signUpPage.selectPhone(); + // When I select phone number as a username + await signUpPage.selectPhone(); - // And I type my phone number as a username - await signUpPage.enterUsername(phoneNumber.withOutCountryCode()); + // And I type my phone number as a username + await signUpPage.enterUsername(phoneNumber.withOutCountryCode()); - // And I type my password - await signUpPage.enterPassword(password); + // And I type my password + await signUpPage.enterPassword(password); - // And I confirm my password - await signUpPage.enterPasswordConfirmation(password); + // And I confirm my password + await signUpPage.enterPasswordConfirmation(password); - // And I enter my email address - await signUpPage.enterEmail(email); + // And I enter my email address + await signUpPage.enterEmail(email); - // And I click the "Create Account" button - await signUpPage.submitSignUp(); + // And I click the "Create Account" button + await signUpPage.submitSignUp(); - // And I see "Confirmation Code" - confirmSignUpPage.expectConfirmationCodeIsPresent(); + // And I see "Confirmation Code" + confirmSignUpPage.expectConfirmationCodeIsPresent(); - // And I type a valid confirmation code - await confirmSignUpPage.enterCode(await otpResult.code); + // And I type a valid confirmation code + await confirmSignUpPage.enterCode(await otpResult.code); - // And I click the "Confirm" button - await confirmSignUpPage.submitConfirmSignUp(); + // And I click the "Confirm" button + await confirmSignUpPage.submitConfirmSignUp(); - // Then I see "Sign out" - await signInPage.expectAuthenticated(); + // Then I see "Sign out" + await signInPage.expectAuthenticated(); - await tester.bloc.close(); - }, - ); + await tester.bloc.close(); + }); }); } diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_test.dart index 5f3f673bbb..449594ca87 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/confirm_sign_up_test.dart @@ -17,67 +17,65 @@ void main() { group('confirm-sign-up', () { // Given I'm running the example "ui/components/authenticator/confirm-sign-up" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-email', - ); + await testRunner.configure(environmentName: 'sign-in-with-email'); }); // Scenario: Confirm a new username & password with an invalid code - testWidgets( - 'Confirm a new username & password with an invalid code', - (tester) async { - final signUpPage = SignUpPage(tester: tester); - final confirmSignUpPage = ConfirmSignUpPage(tester: tester); - final signInPage = SignInPage(tester: tester); + testWidgets('Confirm a new username & password with an invalid code', ( + tester, + ) async { + final signUpPage = SignUpPage(tester: tester); + final confirmSignUpPage = ConfirmSignUpPage(tester: tester); + final signInPage = SignInPage(tester: tester); - await loadAuthenticator(tester: tester); + await loadAuthenticator(tester: tester); - expect( - tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - UnauthenticatedState.signUp, - UnauthenticatedState.confirmSignUp, - emitsDone, - ]), - ); + expect( + tester.bloc.stream, + emitsInOrder([ + UnauthenticatedState.signIn, + UnauthenticatedState.signUp, + UnauthenticatedState.confirmSignUp, + emitsDone, + ]), + ); - final username = generateEmail(); - final password = generatePassword(); + final username = generateEmail(); + final password = generatePassword(); - await signInPage.navigateToSignUp(); + await signInPage.navigateToSignUp(); - // When I type a new "email" - await signUpPage.enterUsername(username); + // When I type a new "email" + await signUpPage.enterUsername(username); - // And I type my password - await signUpPage.enterPassword(password); + // And I type my password + await signUpPage.enterPassword(password); - // And I confirm my password - await signUpPage.enterPasswordConfirmation(password); + // And I confirm my password + await signUpPage.enterPasswordConfirmation(password); - // And I click the "Create Account" button - await signUpPage.submitSignUp(); + // And I click the "Create Account" button + await signUpPage.submitSignUp(); - // And I see "Confirmation Code" - confirmSignUpPage.expectConfirmationCodeIsPresent(); + // And I see "Confirmation Code" + confirmSignUpPage.expectConfirmationCodeIsPresent(); - // And I type an invalid confirmation code - await confirmSignUpPage.enterCode('123456'); + // And I type an invalid confirmation code + await confirmSignUpPage.enterCode('123456'); - // And I click the "Confirm" button - await confirmSignUpPage.submitConfirmSignUp(); + // And I click the "Confirm" button + await confirmSignUpPage.submitConfirmSignUp(); - // Then I see "Username/client id combination not found." - confirmSignUpPage.expectInvalidVerificationCode(); + // Then I see "Username/client id combination not found." + confirmSignUpPage.expectInvalidVerificationCode(); - await tester.bloc.close(); - }, - ); + await tester.bloc.close(); + }); // Scenario: Confirm a new username & password with a valid code - testWidgets('Confirm a new username & password with a valid code', - (tester) async { + testWidgets('Confirm a new username & password with a valid code', ( + tester, + ) async { final signUpPage = SignUpPage(tester: tester); final confirmSignUpPage = ConfirmSignUpPage(tester: tester); final signInPage = SignInPage(tester: tester); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/custom_ui_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/custom_ui_test.dart index c53cc34d79..637996936d 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/custom_ui_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/custom_ui_test.dart @@ -44,9 +44,7 @@ void main() { builder: Authenticator.builder(), home: const Scaffold( key: authenticatedAppKey, - body: Center( - child: SignOutButton(), - ), + body: Center(child: SignOutButton()), ), ), ); @@ -54,9 +52,7 @@ void main() { group('custom ui', () { // Given I'm running the example "ui/components/authenticator/sign-in-with-email.feature" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-email', - ); + await testRunner.configure(environmentName: 'sign-in-with-email'); }); // Scenario: Sign in then sign out @@ -68,9 +64,7 @@ void main() { password, autoConfirm: true, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); await loadAuthenticator(tester: tester, authenticator: authenticator); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/reset_password_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/reset_password_test.dart index 869bbe9b07..3aa2a6fb94 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/reset_password_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/reset_password_test.dart @@ -16,9 +16,7 @@ void main() { group('reset-password', () { // "ui/components/authenticator/reset-password.feature" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-username', - ); + await testRunner.configure(environmentName: 'sign-in-with-username'); }); // Scenario: Reset Password with valid username diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_force_new_password_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_force_new_password_test.dart index cb13be0c85..83d4fedfa1 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_force_new_password_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_force_new_password_test.dart @@ -24,9 +24,7 @@ void main() { setUp(() async { // Given I'm running the example // "ui/components/authenticator/sign-in-with-phone" - await testRunner.configure( - environmentName: 'sign-in-with-phone', - ); + await testRunner.configure(environmentName: 'sign-in-with-phone'); phoneNumber = generateUSPhoneNumber(); password = generatePassword(); @@ -34,9 +32,7 @@ void main() { phoneNumber.toE164(), password, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber.toE164(), - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber.toE164()}, ); }); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_test.dart index f7c6986312..149b04a9fd 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_test.dart @@ -24,9 +24,7 @@ void main() { username, password, autoConfirm: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, autoFillAttributes: false, ); @@ -48,9 +46,7 @@ void main() { final signInPage = SignInPage(tester: tester); final confirmSignInPage = ConfirmSignInPage(tester: tester); - final otpResult = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult = await getOtpCode(env.getLoginAttribute(username)); // When I type my "username" await signInPage.enterUsername(username); @@ -77,9 +73,7 @@ void main() { await Amplify.Auth.signOut(); await tester.pumpAndSettle(); - final otpResult2 = await getOtpCode( - env.getLoginAttribute(username), - ); + final otpResult2 = await getOtpCode(env.getLoginAttribute(username)); // Then I see the sign in page signInPage.expectUsername(label: 'Email'); @@ -117,9 +111,7 @@ void main() { username, password, autoConfirm: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, autoFillAttributes: false, ); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_totp_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_totp_test.dart index fcee99259c..d2a8eb3e99 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_totp_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_email_totp_test.dart @@ -25,9 +25,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); await loadAuthenticator(tester: tester); @@ -127,9 +125,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); await loadAuthenticator(tester: tester); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_email_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_email_test.dart index c01460f6d5..9ecc0cde14 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_email_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_email_test.dart @@ -55,8 +55,9 @@ void main() { final signInPage = SignInPage(tester: tester); final confirmSignInPage = ConfirmSignInPage(tester: tester); - final smsResult = - await getOtpCode(UserAttribute.phone(phoneNumber.toE164())); + final smsResult = await getOtpCode( + UserAttribute.phone(phoneNumber.toE164()), + ); // When I type my "username" await signInPage.enterUsername(username); @@ -150,8 +151,9 @@ void main() { final signInPage = SignInPage(tester: tester); final confirmSignInPage = ConfirmSignInPage(tester: tester); - final smsResult_1 = - await getOtpCode(UserAttribute.phone(phoneNumber.toE164())); + final smsResult_1 = await getOtpCode( + UserAttribute.phone(phoneNumber.toE164()), + ); // When I type my "username" await signInPage.enterUsername(username); @@ -184,8 +186,9 @@ void main() { await Amplify.Auth.signOut(); await tester.pumpAndSettle(); - final smsResult_2 = - await getOtpCode(UserAttribute.phone(phoneNumber.toE164())); + final smsResult_2 = await getOtpCode( + UserAttribute.phone(phoneNumber.toE164()), + ); // Then I see the sign in page signInPage.expectEmail(); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_test.dart index 0fce2dc10b..7a294c8fd8 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_test.dart @@ -21,9 +21,7 @@ void main() { // Given I'm running the example "ui/components/authenticator/sign-in-sms-mfa.feature" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-phone', - ); + await testRunner.configure(environmentName: 'sign-in-with-phone'); phoneNumber = generateUSPhoneNumber(); password = generatePassword(); @@ -33,15 +31,14 @@ void main() { autoConfirm: true, enableMfa: true, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber.toE164(), - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber.toE164()}, ); }); // Scenario: Sign in using a valid phone number and SMS MFA - testWidgets('Sign in using a valid phone number and SMS MFA', - (tester) async { + testWidgets('Sign in using a valid phone number and SMS MFA', ( + tester, + ) async { await loadAuthenticator(tester: tester); expect( @@ -157,10 +154,7 @@ void main() { expect( tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - emitsDone, - ]), + emitsInOrder([UnauthenticatedState.signIn, emitsDone]), ); final signInPage = SignInPage(tester: tester); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_totp_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_totp_test.dart index 0395916c6e..1d4e4bb818 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_totp_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_mfa_sms_totp_test.dart @@ -26,9 +26,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber.toE164(), - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber.toE164()}, ); await loadAuthenticator(tester: tester); @@ -50,8 +48,9 @@ void main() { final signInPage = SignInPage(tester: tester); final confirmSignInPage = ConfirmSignInPage(tester: tester); - final smsResult = - await getOtpCode(UserAttribute.phone(phoneNumber.toE164())); + final smsResult = await getOtpCode( + UserAttribute.phone(phoneNumber.toE164()), + ); // When I type my "username" await signInPage.enterUsername(username); @@ -130,9 +129,7 @@ void main() { password, autoConfirm: true, verifyAttributes: false, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber.toE164(), - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber.toE164()}, ); await loadAuthenticator(tester: tester); @@ -154,8 +151,9 @@ void main() { final signInPage = SignInPage(tester: tester); final confirmSignInPage = ConfirmSignInPage(tester: tester); - final smsResult_1 = - await getOtpCode(UserAttribute.phone(phoneNumber.toE164())); + final smsResult_1 = await getOtpCode( + UserAttribute.phone(phoneNumber.toE164()), + ); // When I type my "username" await signInPage.enterUsername(username); @@ -200,8 +198,9 @@ void main() { // Then I will be redirected to the MFA selection page await confirmSignInPage.expectConfirmSignInMfaSelectionIsPresent(); - final smsResult_2 = - await getOtpCode(UserAttribute.phone(phoneNumber.toE164())); + final smsResult_2 = await getOtpCode( + UserAttribute.phone(phoneNumber.toE164()), + ); // When I select "SMS" await confirmSignInPage.selectMfaMethod(mfaMethod: MfaType.sms); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_email_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_email_test.dart index b8244f97f9..c31e27ca50 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_email_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_email_test.dart @@ -18,9 +18,7 @@ void main() { group('sign-in-with-email', () { // Given I'm running the example "ui/components/authenticator/sign-in-with-email.feature" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-email', - ); + await testRunner.configure(environmentName: 'sign-in-with-email'); }); // Scenario: Sign in with unknown credentials @@ -30,10 +28,7 @@ void main() { expect( tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - emitsDone, - ]), + emitsInOrder([UnauthenticatedState.signIn, emitsDone]), ); final signInPage = SignInPage(tester: tester); @@ -120,9 +115,7 @@ void main() { password, autoConfirm: true, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); await loadAuthenticator(tester: tester); @@ -155,8 +148,9 @@ void main() { }); // Scenario: Sign in with confirmed credentials then sign out - testWidgets('Sign in with confirmed credentials then sign out', - (tester) async { + testWidgets('Sign in with confirmed credentials then sign out', ( + tester, + ) async { final username = generateEmail(); final password = generatePassword(); await adminCreateUser( @@ -164,9 +158,7 @@ void main() { password, autoConfirm: true, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); await loadAuthenticator(tester: tester); @@ -206,16 +198,15 @@ void main() { }); // Scenario: Sign in with force change password credentials - testWidgets('Sign in with force change password credentials', - (tester) async { + testWidgets('Sign in with force change password credentials', ( + tester, + ) async { final username = generateEmail(); final password = generatePassword(); await adminCreateUser( username, password, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); await loadAuthenticator(tester: tester); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_phone_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_phone_test.dart index ed3e5e8d4d..e90b6bdb39 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_phone_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_phone_test.dart @@ -21,9 +21,7 @@ void main() { // Given I'm running the example "ui/components/authenticator/sign-in-with-phone.feature" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-phone', - ); + await testRunner.configure(environmentName: 'sign-in-with-phone'); phoneNumber = generateUSPhoneNumber(); password = generatePassword(); }); @@ -35,10 +33,7 @@ void main() { expect( tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - emitsDone, - ]), + emitsInOrder([UnauthenticatedState.signIn, emitsDone]), ); final signInPage = SignInPage(tester: tester); @@ -67,9 +62,7 @@ void main() { username: phoneNumber.toE164(), password: password, options: SignUpOptions( - userAttributes: { - AuthUserAttributeKey.email: email, - }, + userAttributes: {AuthUserAttributeKey.email: email}, ), ); @@ -105,16 +98,15 @@ void main() { }); // Scenario: Sign in with confirmed credentials then sign out - testWidgets('Sign in with confirmed credentials then sign out', - (tester) async { + testWidgets('Sign in with confirmed credentials then sign out', ( + tester, + ) async { await adminCreateUser( phoneNumber.toE164(), password, autoConfirm: true, verifyAttributes: true, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber.toE164(), - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber.toE164()}, ); await loadAuthenticator(tester: tester); @@ -154,14 +146,13 @@ void main() { }); // Scenario: Sign in with force change password credentials - testWidgets('Sign in with force change password credentials', - (tester) async { + testWidgets('Sign in with force change password credentials', ( + tester, + ) async { await adminCreateUser( phoneNumber.toE164(), password, - attributes: { - AuthUserAttributeKey.phoneNumber: phoneNumber.toE164(), - }, + attributes: {AuthUserAttributeKey.phoneNumber: phoneNumber.toE164()}, ); await loadAuthenticator(tester: tester); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_username_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_username_test.dart index aeea1e67e3..3ad0a1e04b 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_username_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_in_with_username_test.dart @@ -20,9 +20,7 @@ void main() { group('sign-in-with-username', () { // Given I'm running the example "ui/components/authenticator/sign-in-with-username.feature" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-username', - ); + await testRunner.configure(environmentName: 'sign-in-with-username'); }); // Scenario: Sign in with unknown credentials @@ -33,10 +31,7 @@ void main() { expect( tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - emitsDone, - ]), + emitsInOrder([UnauthenticatedState.signIn, emitsDone]), ); // When I type my "username" with status "UNKNOWN" @@ -93,8 +88,9 @@ void main() { }); // Scenario: Sign in with confirmed credentials then sign out - testWidgets('Sign in with confirmed credentials then sign out', - (tester) async { + testWidgets('Sign in with confirmed credentials then sign out', ( + tester, + ) async { final username = generateUsername(); final password = generatePassword(); await adminCreateUser( @@ -140,8 +136,9 @@ void main() { }); // Scenario: Sign in with force change password credentials - testWidgets('Sign in with force change password credentials', - (tester) async { + testWidgets('Sign in with force change password credentials', ( + tester, + ) async { final username = generateUsername(); final password = generatePassword(); await adminCreateUser(username, password); diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_out_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_out_test.dart index 383f667ac8..35f1e6d143 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_out_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_out_test.dart @@ -15,9 +15,7 @@ void main() { group('sign out', () { setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-username', - ); + await testRunner.configure(environmentName: 'sign-in-with-username'); }); // Scenario: Sign out with Auth.signOut() diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_test.dart index aedd8c3373..960ea989dd 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_test.dart @@ -17,9 +17,7 @@ void main() { group('sign-up-with-email', () { // Given I'm running the example "ui/components/authenticator/sign-up-with-email" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-email', - ); + await testRunner.configure(environmentName: 'sign-in-with-email'); }); // Scenario: Login mechanism set to "email" diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_with_lambda_trigger_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_with_lambda_trigger_test.dart index ee15982768..2ceff9e619 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_with_lambda_trigger_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_email_with_lambda_trigger_test.dart @@ -27,76 +27,74 @@ void main() { }); // Scenario: Login mechanism set to "email" - testWidgets( - 'Login mechanism set to "email"', - (WidgetTester tester) async { - await loadAuthenticator(tester: tester); - - expect( - tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - UnauthenticatedState.signUp, - emitsDone, - ]), - ); + testWidgets('Login mechanism set to "email"', ( + WidgetTester tester, + ) async { + await loadAuthenticator(tester: tester); + + expect( + tester.bloc.stream, + emitsInOrder([ + UnauthenticatedState.signIn, + UnauthenticatedState.signUp, + emitsDone, + ]), + ); - await SignInPage(tester: tester).navigateToSignUp(); - final po = SignUpPage(tester: tester); + await SignInPage(tester: tester).navigateToSignUp(); + final po = SignUpPage(tester: tester); - // Then I see "Email" as an input field - po.expectUsername(label: 'Email', isPresent: true); + // Then I see "Email" as an input field + po.expectUsername(label: 'Email', isPresent: true); - // And I don't see "Username" as an input field - po.expectUsername(label: 'Username', isPresent: false); + // And I don't see "Username" as an input field + po.expectUsername(label: 'Username', isPresent: false); - // And I don't see "Phone Number" as an input field - po.expectUsername(label: 'Phone Number', isPresent: false); + // And I don't see "Phone Number" as an input field + po.expectUsername(label: 'Phone Number', isPresent: false); - await tester.bloc.close(); - }, - ); + await tester.bloc.close(); + }); // Scenario: Sign up with a new email & password with confirmed info - testWidgets( - 'Sign up with a new email & password with confirmed info', - (WidgetTester tester) async { - await loadAuthenticator(tester: tester); - - expect( - tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - UnauthenticatedState.signUp, - isA(), - emitsDone, - ]), - ); + testWidgets('Sign up with a new email & password with confirmed info', ( + WidgetTester tester, + ) async { + await loadAuthenticator(tester: tester); + + expect( + tester.bloc.stream, + emitsInOrder([ + UnauthenticatedState.signIn, + UnauthenticatedState.signUp, + isA(), + emitsDone, + ]), + ); - await SignInPage(tester: tester).navigateToSignUp(); - final po = SignUpPage(tester: tester); + await SignInPage(tester: tester).navigateToSignUp(); + final po = SignUpPage(tester: tester); - final username = generateEmail(); - final password = generatePassword(); + final username = generateEmail(); + final password = generatePassword(); - // When I type a new "email" - await po.enterUsername(username); + // When I type a new "email" + await po.enterUsername(username); - // And I type my password - await po.enterPassword(password); + // And I type my password + await po.enterPassword(password); - // And I confirm my password - await po.enterPasswordConfirmation(password); + // And I confirm my password + await po.enterPasswordConfirmation(password); - // And I click the "Create Account" button - await po.submitSignUp(); + // And I click the "Create Account" button + await po.submitSignUp(); - // Then I see "Sign out" - await po.expectAuthenticated(); + // Then I see "Sign out" + await po.expectAuthenticated(); - await tester.bloc.close(); - }, - ); + await tester.bloc.close(); + }); }, ); } diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_phone_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_phone_test.dart index 2655f3f37c..574fb9583d 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_phone_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_phone_test.dart @@ -17,9 +17,7 @@ void main() { group('sign-up-with-phone', () { // Given I'm running the example "ui/components/authenticator/sign-up-with-username" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-phone', - ); + await testRunner.configure(environmentName: 'sign-in-with-phone'); }); // Scenario: Login mechanism set to "phone" @@ -49,28 +47,30 @@ void main() { }); // Scenario: "Email" is included from `aws_cognito_verification_mechanisms` - testWidgets('"Email" is included from aws_cognito_verification_mechanisms', - (tester) async { - final signUpPage = SignUpPage(tester: tester); - final signInPage = SignInPage(tester: tester); - await loadAuthenticator(tester: tester); - - expect( - tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - UnauthenticatedState.signUp, - emitsDone, - ]), - ); - - await signInPage.navigateToSignUp(); - - // Then I see "Email" as an "email" field - signUpPage.expectEmailIsPresent(); - - await tester.bloc.close(); - }); + testWidgets( + '"Email" is included from aws_cognito_verification_mechanisms', + (tester) async { + final signUpPage = SignUpPage(tester: tester); + final signInPage = SignInPage(tester: tester); + await loadAuthenticator(tester: tester); + + expect( + tester.bloc.stream, + emitsInOrder([ + UnauthenticatedState.signIn, + UnauthenticatedState.signUp, + emitsDone, + ]), + ); + + await signInPage.navigateToSignUp(); + + // Then I see "Email" as an "email" field + signUpPage.expectEmailIsPresent(); + + await tester.bloc.close(); + }, + ); // Scenario: Sign up with valid phone number & password testWidgets('Sign up a new phone number & password', (tester) async { diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_username_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_username_test.dart index 9695b50898..f630800ec7 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_username_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/sign_up_with_username_test.dart @@ -17,9 +17,7 @@ void main() { group('sign-up-with-username', () { // Given I'm running the example "ui/components/authenticator/sign-up-with-username" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-username', - ); + await testRunner.configure(environmentName: 'sign-in-with-username'); }); // Scenario: Login mechanism set to "username" @@ -44,24 +42,26 @@ void main() { }); // Scenario: "Email" is included from `aws_cognito_verification_mechanisms` - testWidgets('"Email" is included from aws_cognito_verification_mechanisms', - (tester) async { - final signUpPage = SignUpPage(tester: tester); - final signInPage = SignInPage(tester: tester); - await loadAuthenticator(tester: tester); - - expect( - tester.bloc.stream, - emitsInOrder([ - UnauthenticatedState.signIn, - UnauthenticatedState.signUp, - emitsDone, - ]), - ); - - await signInPage.navigateToSignUp(); - signUpPage.expectEmailIsPresent(); - }); + testWidgets( + '"Email" is included from aws_cognito_verification_mechanisms', + (tester) async { + final signUpPage = SignUpPage(tester: tester); + final signInPage = SignInPage(tester: tester); + await loadAuthenticator(tester: tester); + + expect( + tester.bloc.stream, + emitsInOrder([ + UnauthenticatedState.signIn, + UnauthenticatedState.signUp, + emitsDone, + ]), + ); + + await signInPage.navigateToSignUp(); + signUpPage.expectEmailIsPresent(); + }, + ); // Scenario: "Phone Number" is not included testWidgets('"Phone Number" is not included', (tester) async { diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/unprotected_routes_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/unprotected_routes_test.dart index b9b34a2dd1..5f5ef04281 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/unprotected_routes_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/unprotected_routes_test.dart @@ -18,18 +18,15 @@ void main() { initialRoute: '/routeA', routes: { '/routeA': (BuildContext context) => const RouteA(), - '/routeB': (BuildContext context) => const AuthenticatedView( - child: RouteB(), - ), + '/routeB': + (BuildContext context) => const AuthenticatedView(child: RouteB()), }, ), ); group('unprotected routes', () { setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-username', - ); + await testRunner.configure(environmentName: 'sign-in-with-username'); }); // Scenario: Sign in then sign out @@ -103,14 +100,12 @@ class RouteA extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( key: routeAKey, - appBar: AppBar( - title: const Text('Route A'), - ), + appBar: AppBar(title: const Text('Route A')), body: Center( child: ElevatedButton( key: navToRouteBButtonKey, - onPressed: () => - Navigator.of(context).pushReplacementNamed('/routeB'), + onPressed: + () => Navigator.of(context).pushReplacementNamed('/routeB'), child: const Text('Goto Route B'), ), ), @@ -125,12 +120,8 @@ class RouteB extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( key: routeBKey, - appBar: AppBar( - title: const Text('Route B'), - ), - body: const Center( - child: SignOutButton(), - ), + appBar: AppBar(title: const Text('Route B')), + body: const Center(child: SignOutButton()), ); } } diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/utils/test_utils.dart b/packages/authenticator/amplify_authenticator/example/integration_test/utils/test_utils.dart index f31123285a..6f935c96f2 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/utils/test_utils.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/utils/test_utils.dart @@ -22,9 +22,7 @@ Future loadAuthenticator({ builder: Authenticator.builder(), home: const Scaffold( key: authenticatedAppKey, - body: Center( - child: SignOutButton(), - ), + body: Center(child: SignOutButton()), ), ), ); @@ -63,8 +61,9 @@ Future signOut() async { extension BlocAccess on WidgetTester { /// The [StateMachineBloc] of the running Authenticator. StateMachineBloc get bloc { - final inheritedBloc = - widget(find.byKey(keyInheritedAuthBloc)); + final inheritedBloc = widget( + find.byKey(keyInheritedAuthBloc), + ); return inheritedBloc.authBloc; } } diff --git a/packages/authenticator/amplify_authenticator/example/integration_test/verify_user_test.dart b/packages/authenticator/amplify_authenticator/example/integration_test/verify_user_test.dart index 5cc40810f5..7a37c0a2eb 100644 --- a/packages/authenticator/amplify_authenticator/example/integration_test/verify_user_test.dart +++ b/packages/authenticator/amplify_authenticator/example/integration_test/verify_user_test.dart @@ -15,9 +15,7 @@ void main() { group('verify-user', () { // Given I'm running the example "ui/components/authenticator/verify-user" setUp(() async { - await testRunner.configure( - environmentName: 'sign-in-with-email', - ); + await testRunner.configure(environmentName: 'sign-in-with-email'); }); // Scenario: Redirect to "Verify" page @@ -42,9 +40,7 @@ void main() { username, password, autoConfirm: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); // When I type my "email" with status "UNVERIFIED" @@ -92,9 +88,7 @@ void main() { username, password, autoConfirm: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); // When I type my "email" with status "UNVERIFIED" @@ -119,9 +113,7 @@ void main() { testWidgets('Redirect to "Confirm Verify" page', (tester) async { final signInPage = SignInPage(tester: tester); final verifyUserPage = VerifyUserPage(tester: tester); - final confirmVerifyUserPage = ConfirmVerifyUserPage( - tester: tester, - ); + final confirmVerifyUserPage = ConfirmVerifyUserPage(tester: tester); await loadAuthenticator(tester: tester); expect( @@ -153,9 +145,7 @@ void main() { username, password, autoConfirm: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); // When I type my "email" with status "UNVERIFIED" @@ -195,9 +185,7 @@ void main() { testWidgets('Can confirm phone number attribute', (tester) async { final signInPage = SignInPage(tester: tester); final verifyUserPage = VerifyUserPage(tester: tester); - final confirmVerifyUserPage = ConfirmVerifyUserPage( - tester: tester, - ); + final confirmVerifyUserPage = ConfirmVerifyUserPage(tester: tester); await loadAuthenticator(tester: tester); expect( @@ -245,9 +233,7 @@ void main() { // And I click the "Sign in" button await signInPage.submitSignIn(); - final code = await getOtpCode( - UserAttribute.phone(phoneNumber.toE164()), - ); + final code = await getOtpCode(UserAttribute.phone(phoneNumber.toE164())); // And I see "Account recovery requires verified contact information" verifyUserPage.expectTitleIsVisible(); @@ -272,8 +258,9 @@ void main() { await tester.bloc.close(); }); - testWidgets('Auth.signIn does not redirect to "Verify" page', - (tester) async { + testWidgets('Auth.signIn does not redirect to "Verify" page', ( + tester, + ) async { final signInPage = SignInPage(tester: tester); await loadAuthenticator(tester: tester); @@ -293,9 +280,7 @@ void main() { username, password, autoConfirm: true, - attributes: { - AuthUserAttributeKey.email: username, - }, + attributes: {AuthUserAttributeKey.email: username}, ); // When I sign in with username and password. diff --git a/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_auth_flow.dart b/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_auth_flow.dart index 763407c7dd..bd17f62c25 100644 --- a/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_auth_flow.dart +++ b/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_auth_flow.dart @@ -68,10 +68,7 @@ class AuthenticatorWithCustomAuthFlow extends StatelessWidget { } class CustomConfirmSignInView extends StatelessWidget { - const CustomConfirmSignInView({ - super.key, - required this.state, - }); + const CustomConfirmSignInView({super.key, required this.state}); final AuthenticatorState state; @@ -111,10 +108,7 @@ class CustomConfirmSignInView extends StatelessWidget { } class CustomSignInView extends StatelessWidget { - const CustomSignInView({ - super.key, - required this.state, - }); + const CustomSignInView({super.key, required this.state}); final AuthenticatorState state; @@ -154,10 +148,7 @@ class CustomSignInView extends StatelessWidget { } class NavigateToSignInButton extends StatelessWidget { - const NavigateToSignInButton({ - super.key, - required this.state, - }); + const NavigateToSignInButton({super.key, required this.state}); final AuthenticatorState state; @@ -177,10 +168,7 @@ class NavigateToSignInButton extends StatelessWidget { } class NavigateToSignUpButton extends StatelessWidget { - const NavigateToSignUpButton({ - super.key, - required this.state, - }); + const NavigateToSignUpButton({super.key, required this.state}); final AuthenticatorState state; @@ -191,9 +179,7 @@ class NavigateToSignUpButton extends StatelessWidget { children: [ const Text('Don\'t have an account?'), TextButton( - onPressed: () => state.changeStep( - AuthenticatorStep.signUp, - ), + onPressed: () => state.changeStep(AuthenticatorStep.signUp), child: const Text('Sign Up'), ), ], diff --git a/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_layout.dart b/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_layout.dart index 80bf7f2b60..2332b10ea8 100644 --- a/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_layout.dart +++ b/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_custom_layout.dart @@ -61,10 +61,7 @@ class AuthenticatorWithCustomLayout extends StatelessWidget { // The widget a user will see when the current step is AuthenticatorStep.signIn class SignInView extends StatelessWidget { - const SignInView({ - super.key, - required this.state, - }); + const SignInView({super.key, required this.state}); final AuthenticatorState state; @@ -96,10 +93,7 @@ class SignInView extends StatelessWidget { } class SignUpView extends StatelessWidget { - const SignUpView({ - super.key, - required this.state, - }); + const SignUpView({super.key, required this.state}); final AuthenticatorState state; @@ -130,12 +124,13 @@ class SignUpView extends StatelessWidget { // custom form validation will prevent sign up if the checkbox is not // checked, and a custom error message will be displayed. TermsAndConditionsCheckBox( - onChanged: (value) => state.setCustomAttribute( - const CognitoUserAttributeKey.custom( - 'terms-and-conditions', - ), - value.toString(), - ), + onChanged: + (value) => state.setCustomAttribute( + const CognitoUserAttributeKey.custom( + 'terms-and-conditions', + ), + value.toString(), + ), ), // prebuilt sign up button from amplify_authenticator package @@ -156,10 +151,7 @@ class SignUpView extends StatelessWidget { } class NavigateToSignUpButton extends StatelessWidget { - const NavigateToSignUpButton({ - super.key, - required this.state, - }); + const NavigateToSignUpButton({super.key, required this.state}); final AuthenticatorState state; @@ -170,9 +162,7 @@ class NavigateToSignUpButton extends StatelessWidget { children: [ const Text('Don\'t have an account?'), TextButton( - onPressed: () => state.changeStep( - AuthenticatorStep.signUp, - ), + onPressed: () => state.changeStep(AuthenticatorStep.signUp), child: const Text('Sign Up'), ), ], @@ -181,10 +171,7 @@ class NavigateToSignUpButton extends StatelessWidget { } class NavigateToSignInButton extends StatelessWidget { - const NavigateToSignInButton({ - super.key, - required this.state, - }); + const NavigateToSignInButton({super.key, required this.state}); final AuthenticatorState state; @@ -195,9 +182,7 @@ class NavigateToSignInButton extends StatelessWidget { children: [ const Text('Already have an account?'), TextButton( - onPressed: () => state.changeStep( - AuthenticatorStep.signIn, - ), + onPressed: () => state.changeStep(AuthenticatorStep.signIn), child: const Text('Sign In'), ), ], @@ -206,72 +191,69 @@ class NavigateToSignInButton extends StatelessWidget { } class TermsAndConditionsCheckBox extends FormField { - TermsAndConditionsCheckBox({ - super.key, - required this.onChanged, - }) : super( - validator: (value) { - if (value != true) { - return 'You must agree to the terms and conditions'; - } - return null; - }, - initialValue: false, - builder: (FormFieldState state) { - return CheckboxListTile( - dense: true, - title: Row( - children: [ - const Text('I agree to the'), - TextButton( - style: TextButton.styleFrom( - padding: const EdgeInsets.symmetric(horizontal: 4), - ), - onPressed: () { - Navigator.of(state.context).push( - MaterialPageRoute( - builder: (BuildContext context) => - const TermsAndConditionsView(), - ), - ); - }, - child: const Text('terms and conditions'), + TermsAndConditionsCheckBox({super.key, required this.onChanged}) + : super( + validator: (value) { + if (value != true) { + return 'You must agree to the terms and conditions'; + } + return null; + }, + initialValue: false, + builder: (FormFieldState state) { + return CheckboxListTile( + dense: true, + title: Row( + children: [ + const Text('I agree to the'), + TextButton( + style: TextButton.styleFrom( + padding: const EdgeInsets.symmetric(horizontal: 4), ), - ], - ), - value: state.value, - onChanged: (value) { - onChanged(value); - state.didChange(value); - }, - subtitle: state.hasError - ? Builder( - builder: (BuildContext context) => Text( - state.errorText!, - style: TextStyle( - color: Theme.of(context).colorScheme.error, - ), + onPressed: () { + Navigator.of(state.context).push( + MaterialPageRoute( + builder: + (BuildContext context) => + const TermsAndConditionsView(), ), + ); + }, + child: const Text('terms and conditions'), + ), + ], + ), + value: state.value, + onChanged: (value) { + onChanged(value); + state.didChange(value); + }, + subtitle: + state.hasError + ? Builder( + builder: + (BuildContext context) => Text( + state.errorText!, + style: TextStyle( + color: Theme.of(context).colorScheme.error, + ), + ), ) - : null, - controlAffinity: ListTileControlAffinity.leading, - ); - }, - ); + : null, + controlAffinity: ListTileControlAffinity.leading, + ); + }, + ); final void Function(bool?) onChanged; } class TermsAndConditionsView extends StatelessWidget { - const TermsAndConditionsView({ - super.key, - }); + const TermsAndConditionsView({super.key}); @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Terms and Conditions'), - ), + appBar: AppBar(title: const Text('Terms and Conditions')), body: const SingleChildScrollView( child: Padding( padding: EdgeInsets.all(16), diff --git a/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_onboarding.dart b/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_onboarding.dart index 998ecd3f24..d192c184e9 100644 --- a/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_onboarding.dart +++ b/packages/authenticator/amplify_authenticator/example/lib/customization/authenticator_with_onboarding.dart @@ -25,12 +25,10 @@ class AuthenticatorWithOnboarding extends StatelessWidget { switch (state.currentStep) { case AuthenticatorStep.onboarding: return OnboardingView( - navigateToSignIn: () => state.changeStep( - AuthenticatorStep.signIn, - ), - navigateToSignUp: () => state.changeStep( - AuthenticatorStep.signUp, - ), + navigateToSignIn: + () => state.changeStep(AuthenticatorStep.signIn), + navigateToSignUp: + () => state.changeStep(AuthenticatorStep.signUp), ); default: // returning null will default to the prebuilt authenticator for diff --git a/packages/authenticator/amplify_authenticator/example/lib/main.dart b/packages/authenticator/amplify_authenticator/example/lib/main.dart index 44b05cac79..35e0a714a1 100644 --- a/packages/authenticator/amplify_authenticator/example/lib/main.dart +++ b/packages/authenticator/amplify_authenticator/example/lib/main.dart @@ -41,8 +41,8 @@ class _MyAppState extends State { /// https://docs.amplify.aws/lib/project-setup/platform-setup/q/platform/flutter/#enable-keychain secureStorageFactory: AmplifySecureStorage.factoryFrom( macOSOptions: - // ignore: invalid_use_of_visible_for_testing_member - MacOSSecureStorageOptions(useDataProtection: false), + // ignore: invalid_use_of_visible_for_testing_member + MacOSSecureStorageOptions(useDataProtection: false), ), ); try { @@ -107,9 +107,7 @@ class _MyAppState extends State { // Authenticator.builder() signUpForm: SignUpForm.custom( fields: [ - SignUpFormField.username( - validator: _validateUsername, - ), + SignUpFormField.username(validator: _validateUsername), SignUpFormField.email(required: true), SignUpFormField.password(), SignUpFormField.passwordConfirmation(), @@ -136,9 +134,7 @@ class _MyAppState extends State { // These lines enable our custom localizations specified in the lib/l10n // directory, which will be used later to customize the values displayed // in the Authenticator component. - localizationsDelegates: const [ - AppLocalizations.delegate, - ], + localizationsDelegates: const [AppLocalizations.delegate], supportedLocales: const [ Locale('en'), // English Locale('es'), // Spanish @@ -226,15 +222,13 @@ class RouteA extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Route A'), - ), + appBar: AppBar(title: const Text('Route A')), body: Center( child: Column( children: [ ElevatedButton( - onPressed: () => - Navigator.of(context).pushReplacementNamed('/routeB'), + onPressed: + () => Navigator.of(context).pushReplacementNamed('/routeB'), child: const Text('Goto Route B'), ), const SizedBox(height: 20), @@ -252,15 +246,13 @@ class RouteB extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Route B'), - ), + appBar: AppBar(title: const Text('Route B')), body: Center( child: Column( children: [ ElevatedButton( - onPressed: () => - Navigator.of(context).pushReplacementNamed('/routeA'), + onPressed: + () => Navigator.of(context).pushReplacementNamed('/routeA'), child: const Text('Goto Route A'), ), const SizedBox(height: 20), diff --git a/packages/authenticator/amplify_authenticator/example/pubspec.yaml b/packages/authenticator/amplify_authenticator/example/pubspec.yaml index 5dc44f3e2e..843b6bc2e7 100644 --- a/packages/authenticator/amplify_authenticator/example/pubspec.yaml +++ b/packages/authenticator/amplify_authenticator/example/pubspec.yaml @@ -18,8 +18,8 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_auth_cognito: ">=1.0.0-next.8 <1.0.0-next.9" diff --git a/packages/authenticator/amplify_authenticator/lib/amplify_authenticator.dart b/packages/authenticator/amplify_authenticator/lib/amplify_authenticator.dart index 81d94d88a8..d00665a0ae 100644 --- a/packages/authenticator/amplify_authenticator/lib/amplify_authenticator.dart +++ b/packages/authenticator/amplify_authenticator/lib/amplify_authenticator.dart @@ -4,7 +4,7 @@ /// A prebuilt sign in/sign up experience for Amplify Auth. /// /// See [Authenticator] for an overview on getting started. -library amplify_authenticator; +library; import 'dart:async'; @@ -317,19 +317,16 @@ class Authenticator extends StatefulWidget { this.dialCodeOptions = const DialCodeOptions(), this.totpOptions, @visibleForTesting this.authBlocOverride, - }) : - // ignore: prefer_asserts_with_message - assert(() { - if (!validInitialAuthenticatorSteps.contains(initialStep)) { - throw FlutterError.fromParts([ - ErrorSummary('Invalid initialStep'), - ErrorDescription( - 'initialStep must be one of the following values: \n - ${validInitialAuthenticatorSteps.join('\n -')}', - ), - ]); - } - return true; - }()); + }) { + if (!validInitialAuthenticatorSteps.contains(initialStep)) { + throw FlutterError.fromParts([ + ErrorSummary('Invalid initialStep'), + ErrorDescription( + 'initialStep must be one of the following values: \n - ${validInitialAuthenticatorSteps.join('\n -')}', + ), + ]); + } + } /// Wraps user-defined navigators for integration with [MaterialApp] and /// [Navigator]. @@ -343,18 +340,18 @@ class Authenticator extends StatefulWidget { /// ); /// ``` static TransitionBuilder builder() => (BuildContext context, Widget? child) { - if (child == null) { - throw FlutterError.fromParts([ - ErrorSummary('No Navigator or Router provided.'), - ErrorSpacer(), - ErrorDescription( - 'Did you include a home Widget or provide routes to your MaterialApp?', - ), - ErrorSpacer(), - ]); - } - return _AuthenticatorBody(child: child); - }; + if (child == null) { + throw FlutterError.fromParts([ + ErrorSummary('No Navigator or Router provided.'), + ErrorSpacer(), + ErrorDescription( + 'Did you include a home Widget or provide routes to your MaterialApp?', + ), + ErrorSpacer(), + ]); + } + return _AuthenticatorBody(child: child); + }; // Padding around each authenticator view final EdgeInsets padding; @@ -465,10 +462,7 @@ class Authenticator extends StatefulWidget { ), ) ..add( - DiagnosticsProperty( - 'preferPrivateSession', - preferPrivateSession, - ), + DiagnosticsProperty('preferPrivateSession', preferPrivateSession), ) ..add(EnumProperty('initialStep', initialStep)) ..add( @@ -519,7 +513,8 @@ class _AuthenticatorState extends State { void initState() { super.initState(); // ignore: invalid_use_of_visible_for_testing_member - _stateMachineBloc = widget.authBlocOverride ?? + _stateMachineBloc = + widget.authBlocOverride ?? (StateMachineBloc( authService: _authService, preferPrivateSession: widget.preferPrivateSession, @@ -560,10 +555,7 @@ class _AuthenticatorState extends State { if (context != null && context.mounted) { final message = resolver.resolve(context, key); _logger.info(message); - _showExceptionBanner( - type: StatusType.info, - message: message, - ); + _showExceptionBanner(type: StatusType.info, message: message); } else { _logger.info('Could not show banner for key: $key'); } @@ -587,9 +579,10 @@ class _AuthenticatorState extends State { final screenSize = MediaQuery.of(scaffoldMessengerContext).size; final isDesktop = screenSize.width > AuthenticatorContainerConstants.smallView; - location = isDesktop - ? ExceptionBannerLocation.top - : ExceptionBannerLocation.bottom; + location = + isDesktop + ? ExceptionBannerLocation.top + : ExceptionBannerLocation.bottom; } if (location == ExceptionBannerLocation.top) { scaffoldMessengerState @@ -702,7 +695,7 @@ class _AuthenticatorState extends State { child: InheritedForms( confirmSignInNewPasswordForm: widget.confirmSignInNewPasswordForm ?? - ConfirmSignInNewPasswordForm(), + ConfirmSignInNewPasswordForm(), resetPasswordForm: ResetPasswordForm(), confirmResetPasswordForm: const ConfirmResetPasswordForm(), signInForm: widget.signInForm ?? SignInForm(), @@ -736,10 +729,7 @@ class _AuthenticatorState extends State { // and rebuilds based on the provided builder, which accepts the current // AuthState. class _AuthStateBuilder extends StatelessWidget { - const _AuthStateBuilder({ - required this.child, - required this.builder, - }); + const _AuthStateBuilder({required this.child, required this.builder}); final Widget child; final Widget Function(AuthState, Widget) builder; @@ -816,9 +806,7 @@ class _AuthStateBuilder extends StatelessWidget { /// All routes are wrapped with a Navigator which allows for separation between the /// the user's navigation and the Authenticator's. class _AuthenticatorBody extends StatelessWidget { - const _AuthenticatorBody({ - required this.child, - }); + const _AuthenticatorBody({required this.child}); final Widget child; @@ -836,11 +824,7 @@ class _AuthenticatorBody extends StatelessWidget { MaterialPage( child: ScaffoldMessenger( key: _AuthenticatorState.scaffoldMessengerKey, - child: Scaffold( - body: SizedBox.expand( - child: child, - ), - ), + child: Scaffold(body: SizedBox.expand(child: child)), ), ), ], @@ -857,10 +841,7 @@ class _AuthenticatorBody extends StatelessWidget { class AuthenticatedView extends StatelessWidget { /// {@macro amplify_authenticator.authenticated_view} - const AuthenticatedView({ - super.key, - required this.child, - }); + const AuthenticatedView({super.key, required this.child}); final Widget child; @@ -877,9 +858,10 @@ class AuthenticatedView extends StatelessWidget { key: _AuthenticatorState.scaffoldMessengerKey, child: Scaffold( body: SizedBox.expand( - child: child is AuthenticatorScreen - ? SingleChildScrollView(child: child) - : child, + child: + child is AuthenticatorScreen + ? SingleChildScrollView(child: child) + : child, ), ), ); diff --git a/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart b/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart index 518957e292..392589431d 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_bloc.dart @@ -329,9 +329,7 @@ class StateMachineBloc _emit(UnauthenticatedState.confirmSignInMfa); case AuthSignInStep.confirmSignInWithCustomChallenge: _emit( - ConfirmSignInCustom( - publicParameters: result.nextStep.additionalInfo, - ), + ConfirmSignInCustom(publicParameters: result.nextStep.additionalInfo), ); case AuthSignInStep.confirmSignInWithNewPassword: _emit(UnauthenticatedState.confirmSignInNewPassword); @@ -376,10 +374,7 @@ class StateMachineBloc } if (data is AuthUsernamePasswordSignInData) { - final result = await _authService.signIn( - data.username, - data.password, - ); + final result = await _authService.signIn(data.username, data.password); await _processSignInResult(result, isSocialSignIn: false); } else if (data is AuthSocialSignInData) { // Do not await a social sign-in since multiple sign-in attempts @@ -393,19 +388,16 @@ class StateMachineBloc (result) => _processSignInResult(result, isSocialSignIn: true), ) .onError((error, stackTrace) { - final log = - error is UserCancelledException ? logger.info : logger.error; - log('Error signing in', error, stackTrace); - }); + final log = + error is UserCancelledException ? logger.info : logger.error; + log('Error signing in', error, stackTrace); + }); } else { throw StateError('Bad sign in data: $data'); } } on UserNotConfirmedException catch (e) { _exceptionController.add( - AuthenticatorException( - e.message, - showBanner: false, - ), + AuthenticatorException(e.message, showBanner: false), ); yield UnauthenticatedState.confirmSignUp; if (data is AuthUsernamePasswordSignInData) { diff --git a/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_data.dart b/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_data.dart index fa3d14c906..75ec7d5a9b 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_data.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/blocs/auth/auth_data.dart @@ -18,9 +18,7 @@ class AuthUsernamePasswordSignInData extends AuthSignInData { } class AuthSocialSignInData extends AuthSignInData { - const AuthSocialSignInData({ - required this.provider, - }); + const AuthSocialSignInData({required this.provider}); final AuthProvider provider; } @@ -54,9 +52,7 @@ class AuthConfirmSignUpData { } class AuthResetPasswordData { - const AuthResetPasswordData({ - required this.username, - }); + const AuthResetPasswordData({required this.username}); final String username; } @@ -104,9 +100,7 @@ class AuthSetUnverifiedAttributeKeysData { } class AuthVerifyUserData { - const AuthVerifyUserData({ - required this.userAttributeKey, - }); + const AuthVerifyUserData({required this.userAttributeKey}); final CognitoUserAttributeKey userAttributeKey; } diff --git a/packages/authenticator/amplify_authenticator/lib/src/constants/authenticator_constants.dart b/packages/authenticator/amplify_authenticator/lib/src/constants/authenticator_constants.dart index 8fe22f5cea..f5b26c46c0 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/constants/authenticator_constants.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/constants/authenticator_constants.dart @@ -19,16 +19,14 @@ class AuthenticatorContainerConstants { static const gap = 24.0; - static const BorderRadius borderRadius = - BorderRadius.all(Radius.circular(10)); + static const BorderRadius borderRadius = BorderRadius.all( + Radius.circular(10), + ); static const BoxShadow boxShadow = BoxShadow( color: Color.fromRGBO(0, 0, 0, 0.15), spreadRadius: 1, - offset: Offset( - 1, - 1, - ), + offset: Offset(1, 1), ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/enums/email_setup_types.dart b/packages/authenticator/amplify_authenticator/lib/src/enums/email_setup_types.dart index 88252cb4e5..0539e4a49f 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/enums/email_setup_types.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/enums/email_setup_types.dart @@ -1,6 +1,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -enum EmailSetupField { - email, -} +enum EmailSetupField { email } diff --git a/packages/authenticator/amplify_authenticator/lib/src/enums/gender.dart b/packages/authenticator/amplify_authenticator/lib/src/enums/gender.dart index 84b9de39d9..ea66b49eab 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/enums/gender.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/enums/gender.dart @@ -1,8 +1,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -enum Gender { - male, - female, - other, -} +enum Gender { male, female, other } diff --git a/packages/authenticator/amplify_authenticator/lib/src/enums/reset_password_field.dart b/packages/authenticator/amplify_authenticator/lib/src/enums/reset_password_field.dart index 1ed99e1648..cfdfddf6fa 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/enums/reset_password_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/enums/reset_password_field.dart @@ -1,8 +1,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -enum ResetPasswordField { - verificationCode, - newPassword, - passwordConfirmation, -} +enum ResetPasswordField { verificationCode, newPassword, passwordConfirmation } diff --git a/packages/authenticator/amplify_authenticator/lib/src/enums/signin_types.dart b/packages/authenticator/amplify_authenticator/lib/src/enums/signin_types.dart index 168567c8db..69e00ead9d 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/enums/signin_types.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/enums/signin_types.dart @@ -1,7 +1,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -enum SignInField { - username, - password, -} +enum SignInField { username, password } diff --git a/packages/authenticator/amplify_authenticator/lib/src/enums/status_type.dart b/packages/authenticator/amplify_authenticator/lib/src/enums/status_type.dart index 35680816ad..0aaa79a566 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/enums/status_type.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/enums/status_type.dart @@ -1,7 +1,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -enum StatusType { - info, - error, -} +enum StatusType { info, error } diff --git a/packages/authenticator/amplify_authenticator/lib/src/enums/totp_setup_types.dart b/packages/authenticator/amplify_authenticator/lib/src/enums/totp_setup_types.dart index 7034c2d6c4..70a77d5324 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/enums/totp_setup_types.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/enums/totp_setup_types.dart @@ -1,8 +1,4 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -enum TotpSetupField { - totpSetup, - totpQrCode, - totpCopyKey, -} +enum TotpSetupField { totpSetup, totpQrCode, totpCopyKey } diff --git a/packages/authenticator/amplify_authenticator/lib/src/keys.dart b/packages/authenticator/amplify_authenticator/lib/src/keys.dart index 2ad76b7c01..7b5a40bf83 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/keys.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/keys.dart @@ -12,8 +12,9 @@ const keyPasswordSignInFormField = Key('passwordSignInFormField'); const keyUsernameSignUpFormField = Key('usernameSignUpFormField'); const keyPasswordSignUpFormField = Key('passwordSignUpFormField'); -const keyPasswordConfirmationSignUpFormField = - Key('keyPasswordConfirmationSignUpFormField'); +const keyPasswordConfirmationSignUpFormField = Key( + 'keyPasswordConfirmationSignUpFormField', +); const keyAddressSignUpFormField = Key('addresslSignUpFormField'); const keyBirthdateSignUpFormField = Key('birthdateSignUpFormField'); const keyEmailSignUpFormField = Key('emailSignUpFormField'); @@ -26,11 +27,13 @@ const keyNameSignUpFormField = Key('nameSignUpFormField'); const keyNicknameSignUpFormField = Key('nicknameSignUpFormField'); const keyPhoneNumberSignUpFormField = Key('phoneNumberSignUpFormField'); const keyPictureSignUpFormField = Key('pictureSignUpFormField'); -const keyPreferredUsernameSignUpFormField = - Key('preferredUsernameSignUpFormField'); +const keyPreferredUsernameSignUpFormField = Key( + 'preferredUsernameSignUpFormField', +); const keyProfileSignUpFormField = Key('profileSignUpFormField'); -const keySelectedUsernameSignUpFormField = - Key('selectedUsernameSignUpFormField'); +const keySelectedUsernameSignUpFormField = Key( + 'selectedUsernameSignUpFormField', +); const keyZoneinfoSignUpFormField = Key('zoneinfoSignUpFormField'); const keyUpdatedAtSignUpFormField = Key('updatedAtSignUpFormField'); const keyWebsiteSignUpFormField = Key('websiteSignUpFormField'); @@ -41,57 +44,72 @@ const keyCustomSignUpFormField = Key('customSignUpFormField'); const keyUsernameConfirmSignUpFormField = Key('usernameConfirmSignUpFormField'); const keyPasswordConfirmSignUpFormField = Key('passwordConfirmSignUpFormField'); const keyEmailConfirmSignUpFormField = Key('emailConfirmSignUpFormField'); -const keyPhoneNumberConfirmSignUpFormField = - Key('phoneNumberConfirmSignUpFormField'); +const keyPhoneNumberConfirmSignUpFormField = Key( + 'phoneNumberConfirmSignUpFormField', +); const keyCodeConfirmSignUpFormField = Key('codeConfirmSignUpFormField'); //Confirm Sign In form field keys const keyCodeConfirmSignInFormField = Key('codeConfirmSignInFormField'); -const keyCustomChallengeConfirmSignInFormField = - Key('customChallengeConfirmSignInFormField'); -const keyMfaMethodRadioConfirmSignInFormField = - Key('mfaMethodRadioConfirmSignInFormField'); -const keyMfaSetupMethodRadioConfirmSignInFormField = - Key('mfaSetupMethodRadioConfirmSignInFormField'); +const keyCustomChallengeConfirmSignInFormField = Key( + 'customChallengeConfirmSignInFormField', +); +const keyMfaMethodRadioConfirmSignInFormField = Key( + 'mfaMethodRadioConfirmSignInFormField', +); +const keyMfaSetupMethodRadioConfirmSignInFormField = Key( + 'mfaSetupMethodRadioConfirmSignInFormField', +); const keyUsernameConfirmSignInFormField = Key('usernameConfirmSignInFormField'); const keyPasswordConfirmSignInFormField = Key('passwordConfirmSignInFormField'); -const keyNewPasswordConfirmSignInFormField = - Key('newPasswordConfirmSignInFormField'); -const keyConfirmNewPasswordConfirmSignInFormField = - Key('confirmNewPasswordConfirmSignInFormField'); +const keyNewPasswordConfirmSignInFormField = Key( + 'newPasswordConfirmSignInFormField', +); +const keyConfirmNewPasswordConfirmSignInFormField = Key( + 'confirmNewPasswordConfirmSignInFormField', +); const keyAddressConfirmSignInFormField = Key('addresslConfirmSignInFormField'); -const keyBirthdateConfirmSignInFormField = - Key('birthdateConfirmSignInFormField'); +const keyBirthdateConfirmSignInFormField = Key( + 'birthdateConfirmSignInFormField', +); const keyEmailConfirmSignInFormField = Key('emailConfirmSignInFormField'); -const keyFamilyNameConfirmSignInFormField = - Key('familyNameConfirmSignInFormField'); +const keyFamilyNameConfirmSignInFormField = Key( + 'familyNameConfirmSignInFormField', +); const keyGenderConfirmSignInFormField = Key('genderConfirmSignInFormField'); -const keyGivenNameConfirmSignInFormField = - Key('givenNameConfirmSignInFormField'); +const keyGivenNameConfirmSignInFormField = Key( + 'givenNameConfirmSignInFormField', +); const keyLocaleConfirmSignInFormField = Key('localeConfirmSignInFormField'); -const keyMiddleNameConfirmSignInFormField = - Key('middleNameConfirmSignInFormField'); +const keyMiddleNameConfirmSignInFormField = Key( + 'middleNameConfirmSignInFormField', +); const keyNameConfirmSignInFormField = Key('nameConfirmSignInFormField'); const keyNicknameConfirmSignInFormField = Key('nicknameConfirmSignInFormField'); -const keyPhoneNumberConfirmSignInFormField = - Key('phoneNumberConfirmSignInFormField'); +const keyPhoneNumberConfirmSignInFormField = Key( + 'phoneNumberConfirmSignInFormField', +); const keyPictureConfirmSignInFormField = Key('pictureConfirmSignInFormField'); -const keyPreferredUsernameConfirmSignInFormField = - Key('preferredUsernameConfirmSignInFormField'); +const keyPreferredUsernameConfirmSignInFormField = Key( + 'preferredUsernameConfirmSignInFormField', +); const keyProfileConfirmSignInFormField = Key('profileConfirmSignInFormField'); const keyZoneinfoConfirmSignInFormField = Key('zoneinfoConfirmSignInFormField'); -const keyUpdatedAtConfirmSignInFormField = - Key('updatedAtConfirmSignInFormField'); +const keyUpdatedAtConfirmSignInFormField = Key( + 'updatedAtConfirmSignInFormField', +); const keyWebsiteConfirmSignInFormField = Key('websiteConfirmSignInFormField'); const keyCustomConfirmSignInFormField = Key('customConfirmSignInFormField'); // Reset Password form field keys const keyPasswordResetPasswordFormField = Key('passwordResetPasswordFormField'); -const keyPasswordConfirmationResetPasswordFormField = - Key('passwordConfirmationResetPasswordFormField'); -const keyVerificationCodeResetPasswordFormField = - Key('verificationCodeResetPasswordFormField'); +const keyPasswordConfirmationResetPasswordFormField = Key( + 'passwordConfirmationResetPasswordFormField', +); +const keyVerificationCodeResetPasswordFormField = Key( + 'verificationCodeResetPasswordFormField', +); // Attribute Verification keys const keyVerifyUserRadioButtonFormField = Key('verifyUserRadioButtonFormField'); @@ -107,12 +125,15 @@ const keyBackToSignInButton = Key('backToSignInButton'); const keyGoToSignUpButton = Key('goToSignUpButton'); const keyGoToSignInButton = Key('goToSignInButton'); const keyConfirmSignInButton = Key('confirmSignInButton'); -const keyConfirmSignInMfaSelectionButton = - Key('confirmSignInMfaSelectionButton'); -const keyConfirmSignInMfaSetupSelectionButton = - Key('confirmSignInMfaSetupSelectionButton'); -const keyConfirmSignInWithEmailMfaSetupButton = - Key('confirmSignInWithEmailMfaSetupButton'); +const keyConfirmSignInMfaSelectionButton = Key( + 'confirmSignInMfaSelectionButton', +); +const keyConfirmSignInMfaSetupSelectionButton = Key( + 'confirmSignInMfaSetupSelectionButton', +); +const keyConfirmSignInWithEmailMfaSetupButton = Key( + 'confirmSignInWithEmailMfaSetupButton', +); const keyConfirmSignInCustomButton = Key('confirmSignInCustomButton'); const keyLostCodeButton = Key('lostCodeButton'); const keySendCodeButton = Key('sendCodeButton'); diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/auth_strings_resolver.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/auth_strings_resolver.dart index 901f99d275..f651ffc753 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/auth_strings_resolver.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/auth_strings_resolver.dart @@ -27,12 +27,12 @@ class AuthStringResolver { InstructionsResolver? instructions, MessageResolver? messages, TitleResolver? titles, - }) : buttons = buttons ?? const ButtonResolver(), - dialCodes = dialCodes ?? const DialCodeResolver(), - inputs = inputs ?? const InputResolver(), - instruction = instructions ?? const InstructionsResolver(), - titles = titles ?? const TitleResolver(), - messages = messages ?? const MessageResolver(); + }) : buttons = buttons ?? const ButtonResolver(), + dialCodes = dialCodes ?? const DialCodeResolver(), + inputs = inputs ?? const InputResolver(), + instruction = instructions ?? const InstructionsResolver(), + titles = titles ?? const TitleResolver(), + messages = messages ?? const MessageResolver(); /// The resolver class for shared button Widgets final ButtonResolver buttons; diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/button_resolver.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/button_resolver.dart index 0bec338e96..6075d2e076 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/button_resolver.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/button_resolver.dart @@ -29,14 +29,10 @@ enum ButtonResolverKeyType { class ButtonResolverKey { const ButtonResolverKey.signInWith(AuthProvider provider) - : this._(ButtonResolverKeyType.signInWith, provider: provider); + : this._(ButtonResolverKeyType.signInWith, provider: provider); const ButtonResolverKey.backTo(AuthenticatorStep previousStep) - : this._(ButtonResolverKeyType.backTo, previousStep: previousStep); - const ButtonResolverKey._( - this.type, { - this.provider, - this.previousStep, - }); + : this._(ButtonResolverKeyType.backTo, previousStep: previousStep); + const ButtonResolverKey._(this.type, {this.provider, this.previousStep}); final ButtonResolverKeyType type; final AuthProvider? provider; @@ -45,23 +41,29 @@ class ButtonResolverKey { static const signIn = ButtonResolverKey._(ButtonResolverKeyType.signIn); static const signUp = ButtonResolverKey._(ButtonResolverKeyType.signUp); static const confirm = ButtonResolverKey._(ButtonResolverKeyType.confirm); - static const continueLabel = - ButtonResolverKey._(ButtonResolverKeyType.continueLabel); + static const continueLabel = ButtonResolverKey._( + ButtonResolverKeyType.continueLabel, + ); static const submit = ButtonResolverKey._(ButtonResolverKeyType.submit); - static const changePassword = - ButtonResolverKey._(ButtonResolverKeyType.changePassword); + static const changePassword = ButtonResolverKey._( + ButtonResolverKeyType.changePassword, + ); static const sendCode = ButtonResolverKey._(ButtonResolverKeyType.sendCode); - static const lostCodeQuestion = - ButtonResolverKey._(ButtonResolverKeyType.lostCode); + static const lostCodeQuestion = ButtonResolverKey._( + ButtonResolverKeyType.lostCode, + ); static const verify = ButtonResolverKey._(ButtonResolverKeyType.verify); static const signout = ButtonResolverKey._(ButtonResolverKeyType.signOut); static const noAccount = ButtonResolverKey._(ButtonResolverKeyType.noAccount); - static const haveAccount = - ButtonResolverKey._(ButtonResolverKeyType.haveAccount); - static const forgotPassword = - ButtonResolverKey._(ButtonResolverKeyType.forgotPassword); - static const confirmResetPassword = - ButtonResolverKey._(ButtonResolverKeyType.confirmResetPassword); + static const haveAccount = ButtonResolverKey._( + ButtonResolverKeyType.haveAccount, + ); + static const forgotPassword = ButtonResolverKey._( + ButtonResolverKeyType.forgotPassword, + ); + static const confirmResetPassword = ButtonResolverKey._( + ButtonResolverKeyType.confirmResetPassword, + ); static const skip = ButtonResolverKey._(ButtonResolverKeyType.skip); static const copyKey = ButtonResolverKey._(ButtonResolverKeyType.copyKey); @@ -125,8 +127,9 @@ class ButtonResolver extends Resolver { /// Label of button to sign in with a social provider String signInWith(BuildContext context, AuthProvider provider) { - return AuthenticatorLocalizations.buttonsOf(context) - .signInWith(provider.name); + return AuthenticatorLocalizations.buttonsOf( + context, + ).signInWith(provider.name); } /// Hint text for the 'Go to Sign Up' button @@ -151,8 +154,9 @@ class ButtonResolver extends Resolver { /// Label of button to return to the Sign In step. String backTo(BuildContext context, AuthenticatorStep previousStep) { - return AuthenticatorLocalizations.buttonsOf(context) - .backTo(previousStep.name); + return AuthenticatorLocalizations.buttonsOf( + context, + ).backTo(previousStep.name); } /// Label of button to skip the current step or action. diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/dial_code_resolver.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/dial_code_resolver.dart index 570a618931..bb67d691da 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/dial_code_resolver.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/dial_code_resolver.dart @@ -263,8 +263,9 @@ class DialCodeResolver extends Resolver { } String noDialCodeSearchResults(BuildContext context) { - return AuthenticatorLocalizations.countriesOf(context) - .noDialCodeSearchResults; + return AuthenticatorLocalizations.countriesOf( + context, + ).noDialCodeSearchResults; } /// The label for Afghanistan. diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations.dart index ec0e34dca7..39f04e46a6 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations.dart @@ -62,7 +62,7 @@ import 'package:intl/intl.dart' as intl; /// property. abstract class AuthenticatorButtonLocalizations { AuthenticatorButtonLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale); + : localeName = intl.Intl.canonicalizedLocale(locale); final String localeName; @@ -74,7 +74,7 @@ abstract class AuthenticatorButtonLocalizations { } static const LocalizationsDelegate - delegate = _AuthenticatorButtonLocalizationsDelegate(); + delegate = _AuthenticatorButtonLocalizationsDelegate(); /// A list of this localizations delegate along with the default localizations /// delegates. @@ -88,16 +88,14 @@ abstract class AuthenticatorButtonLocalizations { /// of delegates is preferred or required. static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - ]; + static const List supportedLocales = [Locale('en')]; /// Label of the button to sign in the user. /// @@ -232,14 +230,15 @@ Future lookupAuthenticatorButtonLocalizations( switch (locale.languageCode) { case 'en': return button_localizations_en.loadLibrary().then( - (dynamic _) => - button_localizations_en.AuthenticatorButtonLocalizationsEn(), - ); + (dynamic _) => + button_localizations_en.AuthenticatorButtonLocalizationsEn(), + ); } throw FlutterError( - 'AuthenticatorButtonLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.'); + 'AuthenticatorButtonLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.', + ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations_en.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations_en.dart index fe27a1737c..d3b1ea2231 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations_en.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/button_localizations_en.dart @@ -59,36 +59,30 @@ class AuthenticatorButtonLocalizationsEn @override String backTo(String previousStep) { - final temp0 = intl.Intl.selectLogic( - previousStep, - { - 'signUp': 'Sign Up', - 'signIn': 'Sign In', - 'confirmSignUp': 'Confirm Sign-up', - 'confirmSignInMfa': 'Confirm Sign-in', - 'confirmSignInNewPassword': 'Confirm Sign-in', - 'sendCode': 'Send Code', - 'resetPassword': 'Reset Password', - 'verifyUser': 'Verify User', - 'confirmVerifyUser': 'Confirm Verify User', - 'other': 'ERROR', - }, - ); + final temp0 = intl.Intl.selectLogic(previousStep, { + 'signUp': 'Sign Up', + 'signIn': 'Sign In', + 'confirmSignUp': 'Confirm Sign-up', + 'confirmSignInMfa': 'Confirm Sign-in', + 'confirmSignInNewPassword': 'Confirm Sign-in', + 'sendCode': 'Send Code', + 'resetPassword': 'Reset Password', + 'verifyUser': 'Verify User', + 'confirmVerifyUser': 'Confirm Verify User', + 'other': 'ERROR', + }); return 'Back to $temp0'; } @override String signInWith(String provider) { - final temp0 = intl.Intl.selectLogic( - provider, - { - 'google': 'Google', - 'facebook': 'Facebook', - 'amazon': 'Amazon', - 'apple': 'Apple', - 'other': 'ERROR', - }, - ); + final temp0 = intl.Intl.selectLogic(provider, { + 'google': 'Google', + 'facebook': 'Facebook', + 'amazon': 'Amazon', + 'apple': 'Apple', + 'other': 'ERROR', + }); return 'Sign In with $temp0'; } } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/country_localizations.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/country_localizations.dart index ab765aaa1f..5fd9658e8e 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/country_localizations.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/country_localizations.dart @@ -62,7 +62,7 @@ import 'package:intl/intl.dart' as intl; /// property. abstract class AuthenticatorCountryLocalizations { AuthenticatorCountryLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale); + : localeName = intl.Intl.canonicalizedLocale(locale); final String localeName; @@ -74,7 +74,7 @@ abstract class AuthenticatorCountryLocalizations { } static const LocalizationsDelegate - delegate = _AuthenticatorCountryLocalizationsDelegate(); + delegate = _AuthenticatorCountryLocalizationsDelegate(); /// A list of this localizations delegate along with the default localizations /// delegates. @@ -88,16 +88,14 @@ abstract class AuthenticatorCountryLocalizations { /// of delegates is preferred or required. static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - ]; + static const List supportedLocales = [Locale('en')]; /// Title of select dial code modal /// @@ -1594,19 +1592,20 @@ class _AuthenticatorCountryLocalizationsDelegate } Future - lookupAuthenticatorCountryLocalizations(Locale locale) { +lookupAuthenticatorCountryLocalizations(Locale locale) { // Lookup logic when only language code is specified. switch (locale.languageCode) { case 'en': return country_localizations_en.loadLibrary().then( - (dynamic _) => - country_localizations_en.AuthenticatorCountryLocalizationsEn(), - ); + (dynamic _) => + country_localizations_en.AuthenticatorCountryLocalizationsEn(), + ); } throw FlutterError( - 'AuthenticatorCountryLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.'); + 'AuthenticatorCountryLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.', + ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations.dart index b34f12cf8e..7755033b5f 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations.dart @@ -62,7 +62,7 @@ import 'package:intl/intl.dart' as intl; /// property. abstract class AuthenticatorInputLocalizations { AuthenticatorInputLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale); + : localeName = intl.Intl.canonicalizedLocale(locale); final String localeName; @@ -88,16 +88,14 @@ abstract class AuthenticatorInputLocalizations { /// of delegates is preferred or required. static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - ]; + static const List supportedLocales = [Locale('en')]; /// User's chosen username. /// @@ -334,14 +332,15 @@ Future lookupAuthenticatorInputLocalizations( switch (locale.languageCode) { case 'en': return input_localizations_en.loadLibrary().then( - (dynamic _) => - input_localizations_en.AuthenticatorInputLocalizationsEn(), - ); + (dynamic _) => + input_localizations_en.AuthenticatorInputLocalizationsEn(), + ); } throw FlutterError( - 'AuthenticatorInputLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.'); + 'AuthenticatorInputLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.', + ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations_en.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations_en.dart index 6b6d42a494..beef616960 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations_en.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/input_localizations_en.dart @@ -44,14 +44,11 @@ class AuthenticatorInputLocalizationsEn @override String genders(String gender) { - final temp0 = intl.Intl.selectLogic( - gender, - { - 'male': 'male', - 'female': 'female', - 'other': 'other', - }, - ); + final temp0 = intl.Intl.selectLogic(gender, { + 'male': 'male', + 'female': 'female', + 'other': 'other', + }); return temp0; } @@ -106,16 +103,13 @@ class AuthenticatorInputLocalizationsEn @override String passwordRequirementsCharacterType(String characterType) { - final temp0 = intl.Intl.selectLogic( - characterType, - { - 'requiresUppercase': 'uppercase', - 'requiresLowercase': 'lowercase', - 'requiresNumbers': 'number', - 'requiresSymbols': 'symbol', - 'other': '', - }, - ); + final temp0 = intl.Intl.selectLogic(characterType, { + 'requiresUppercase': 'uppercase', + 'requiresLowercase': 'lowercase', + 'requiresNumbers': 'number', + 'requiresSymbols': 'symbol', + 'other': '', + }); return ' $temp0'; } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/instructions_localizations.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/instructions_localizations.dart index 64f32a557d..6f3f6530f3 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/instructions_localizations.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/instructions_localizations.dart @@ -62,7 +62,7 @@ import 'package:intl/intl.dart' as intl; /// property. abstract class AuthenticatorInstructionsLocalizations { AuthenticatorInstructionsLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale); + : localeName = intl.Intl.canonicalizedLocale(locale); final String localeName; @@ -74,7 +74,7 @@ abstract class AuthenticatorInstructionsLocalizations { } static const LocalizationsDelegate - delegate = _AuthenticatorInstructionsLocalizationsDelegate(); + delegate = _AuthenticatorInstructionsLocalizationsDelegate(); /// A list of this localizations delegate along with the default localizations /// delegates. @@ -88,16 +88,14 @@ abstract class AuthenticatorInstructionsLocalizations { /// of delegates is preferred or required. static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - ]; + static const List supportedLocales = [Locale('en')]; /// The title for the first step of TOTP setup /// @@ -155,19 +153,20 @@ class _AuthenticatorInstructionsLocalizationsDelegate } Future - lookupAuthenticatorInstructionsLocalizations(Locale locale) { +lookupAuthenticatorInstructionsLocalizations(Locale locale) { // Lookup logic when only language code is specified. switch (locale.languageCode) { case 'en': return instructions_localizations_en.loadLibrary().then( - (dynamic _) => instructions_localizations_en - .AuthenticatorInstructionsLocalizationsEn(), - ); + (dynamic _) => + instructions_localizations_en.AuthenticatorInstructionsLocalizationsEn(), + ); } throw FlutterError( - 'AuthenticatorInstructionsLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.'); + 'AuthenticatorInstructionsLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.', + ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/message_localizations.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/message_localizations.dart index 8a4979709f..563c9eab27 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/message_localizations.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/message_localizations.dart @@ -62,7 +62,7 @@ import 'package:intl/intl.dart' as intl; /// property. abstract class AuthenticatorMessageLocalizations { AuthenticatorMessageLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale); + : localeName = intl.Intl.canonicalizedLocale(locale); final String localeName; @@ -74,7 +74,7 @@ abstract class AuthenticatorMessageLocalizations { } static const LocalizationsDelegate - delegate = _AuthenticatorMessageLocalizationsDelegate(); + delegate = _AuthenticatorMessageLocalizationsDelegate(); /// A list of this localizations delegate along with the default localizations /// delegates. @@ -88,16 +88,14 @@ abstract class AuthenticatorMessageLocalizations { /// of delegates is preferred or required. static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - ]; + static const List supportedLocales = [Locale('en')]; /// The message that is displayed after a new confirmation code is sent via Email/SMS. /// @@ -142,19 +140,20 @@ class _AuthenticatorMessageLocalizationsDelegate } Future - lookupAuthenticatorMessageLocalizations(Locale locale) { +lookupAuthenticatorMessageLocalizations(Locale locale) { // Lookup logic when only language code is specified. switch (locale.languageCode) { case 'en': return message_localizations_en.loadLibrary().then( - (dynamic _) => - message_localizations_en.AuthenticatorMessageLocalizationsEn(), - ); + (dynamic _) => + message_localizations_en.AuthenticatorMessageLocalizationsEn(), + ); } throw FlutterError( - 'AuthenticatorMessageLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.'); + 'AuthenticatorMessageLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.', + ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/title_localizations.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/title_localizations.dart index abe2edf4ce..51f2488e3a 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/title_localizations.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/generated/title_localizations.dart @@ -62,7 +62,7 @@ import 'package:intl/intl.dart' as intl; /// property. abstract class AuthenticatorTitleLocalizations { AuthenticatorTitleLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale); + : localeName = intl.Intl.canonicalizedLocale(locale); final String localeName; @@ -88,16 +88,14 @@ abstract class AuthenticatorTitleLocalizations { /// of delegates is preferred or required. static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - ]; + static const List supportedLocales = [Locale('en')]; /// Title of the Confirm Sign Up step and form /// @@ -202,14 +200,15 @@ Future lookupAuthenticatorTitleLocalizations( switch (locale.languageCode) { case 'en': return title_localizations_en.loadLibrary().then( - (dynamic _) => - title_localizations_en.AuthenticatorTitleLocalizationsEn(), - ); + (dynamic _) => + title_localizations_en.AuthenticatorTitleLocalizationsEn(), + ); } throw FlutterError( - 'AuthenticatorTitleLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.'); + 'AuthenticatorTitleLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.', + ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/input_resolver.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/input_resolver.dart index 0eb96b26f1..caada4157c 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/input_resolver.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/input_resolver.dart @@ -46,17 +46,17 @@ enum InputResolverKeyType { usernameRequirements, passwordRequirements, format, - mismatch + mismatch, } class InputResolverKey { const InputResolverKey.passwordRequirementsUnmet( UnmetPasswordRequirements requirements, ) : this._( - InputResolverKeyType.passwordRequirements, - field: InputField.password, - unmetPasswordRequirements: requirements, - ); + InputResolverKeyType.passwordRequirements, + field: InputField.password, + unmetPasswordRequirements: requirements, + ); const InputResolverKey._( this.type, { required this.field, @@ -416,8 +416,9 @@ class InputResolver extends Resolver { case InputField.passwordConfirmation: final attributeName = AuthenticatorLocalizations.inputsOf(context).password; - return AuthenticatorLocalizations.inputsOf(context) - .confirmAttribute(attributeName); + return AuthenticatorLocalizations.inputsOf( + context, + ).confirmAttribute(attributeName); case InputField.verificationCode: return AuthenticatorLocalizations.inputsOf(context).verificationCode; case InputField.customAuthChallenge: @@ -475,8 +476,9 @@ class InputResolver extends Resolver { String hint(BuildContext context, InputField field) { final fieldName = title(context, field); final lowercasedFieldName = fieldName.toLowerCase(); - return AuthenticatorLocalizations.inputsOf(context) - .promptFill(lowercasedFieldName); + return AuthenticatorLocalizations.inputsOf( + context, + ).promptFill(lowercasedFieldName); } /// Returns the hint text used for confirmation fields where the @@ -484,21 +486,24 @@ class InputResolver extends Resolver { String confirmHint(BuildContext context, InputField field) { final fieldName = AuthenticatorLocalizations.inputsOf(context).password; final lowercasedFieldName = fieldName.toLowerCase(); - return AuthenticatorLocalizations.inputsOf(context) - .promptRefill(lowercasedFieldName); + return AuthenticatorLocalizations.inputsOf( + context, + ).promptRefill(lowercasedFieldName); } /// Returns the text displayed when a required field is left empty. String empty(BuildContext context, InputField field) { - return AuthenticatorLocalizations.inputsOf(context) - .warnEmpty(title(context, field)); + return AuthenticatorLocalizations.inputsOf( + context, + ).warnEmpty(title(context, field)); } /// Returns the text displayed when a field fails a format validation check, /// such as an invalid email format, an invalid confirmation code length, etc. String format(BuildContext context, InputField field) { - return AuthenticatorLocalizations.inputsOf(context) - .warnInvalidFormat(title(context, field).toLowerCase()); + return AuthenticatorLocalizations.inputsOf( + context, + ).warnInvalidFormat(title(context, field).toLowerCase()); } /// Returns the text displayed when the username requirements are not met @@ -517,21 +522,25 @@ class InputResolver extends Resolver { if (minLength == null && (characterReqs.isEmpty)) { return ''; } - final sb = StringBuffer() - ..writeln( - AuthenticatorLocalizations.inputsOf(context) - .passwordRequirementsPreamble, - ); + final sb = + StringBuffer()..writeln( + AuthenticatorLocalizations.inputsOf( + context, + ).passwordRequirementsPreamble, + ); if (minLength != null) { - final atLeast = AuthenticatorLocalizations.inputsOf(context) - .passwordRequirementsAtLeast(minLength, ''); + final atLeast = AuthenticatorLocalizations.inputsOf( + context, + ).passwordRequirementsAtLeast(minLength, ''); sb.writeln('* $atLeast'); } for (final characterReq in characterReqs) { - final characterType = AuthenticatorLocalizations.inputsOf(context) - .passwordRequirementsCharacterType(characterReq.name); - final atLeast = AuthenticatorLocalizations.inputsOf(context) - .passwordRequirementsAtLeast(1, characterType); + final characterType = AuthenticatorLocalizations.inputsOf( + context, + ).passwordRequirementsCharacterType(characterReq.name); + final atLeast = AuthenticatorLocalizations.inputsOf( + context, + ).passwordRequirementsAtLeast(1, characterType); sb.writeln('* $atLeast'); } return sb.toString(); diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/message_resolver.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/message_resolver.dart index 429fce4fb6..864133764c 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/message_resolver.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/message_resolver.dart @@ -5,20 +5,13 @@ import 'package:amplify_authenticator/src/l10n/authenticator_localizations.dart' import 'package:amplify_authenticator/src/l10n/resolver.dart'; import 'package:flutter/material.dart'; -enum MessageResolverKeyType { - codeSent, - copySucceeded, - copyFailed, -} +enum MessageResolverKeyType { codeSent, copySucceeded, copyFailed } class MessageResolverKey { const MessageResolverKey._(this.type, this.destination); const MessageResolverKey.codeSent(String? destination) - : this._( - MessageResolverKeyType.codeSent, - destination, - ); + : this._(MessageResolverKeyType.codeSent, destination); final MessageResolverKeyType type; final String? destination; } diff --git a/packages/authenticator/amplify_authenticator/lib/src/l10n/title_resolver.dart b/packages/authenticator/amplify_authenticator/lib/src/l10n/title_resolver.dart index 318753c227..e81ec9a329 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/l10n/title_resolver.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/l10n/title_resolver.dart @@ -27,44 +27,51 @@ class TitleResolver extends Resolver { /// The title for the confirm sign in (new passwrod) Widget. String confirmSignInNewPassword(BuildContext context) { - return AuthenticatorLocalizations.titlesOf(context) - .confirmSignInNewPassword; + return AuthenticatorLocalizations.titlesOf( + context, + ).confirmSignInNewPassword; } /// The title for the continue sign in (mfa selection) Widget. String continueSignInWithMfaSelection(BuildContext context) { - return AuthenticatorLocalizations.titlesOf(context) - .continueSignInWithMfaSelection; + return AuthenticatorLocalizations.titlesOf( + context, + ).continueSignInWithMfaSelection; } /// The title for the continue sign in (totp setup) Widget. String continueSignInWithTotpSetup(BuildContext context) { - return AuthenticatorLocalizations.titlesOf(context) - .continueSignInWithTotpSetup; + return AuthenticatorLocalizations.titlesOf( + context, + ).continueSignInWithTotpSetup; } /// The title for the confirm sign in (totp MFA code) Widget. String confirmSignInWithTotpMfaCode(BuildContext context) { - return AuthenticatorLocalizations.titlesOf(context) - .confirmSignInWithTotpMfaCode; + return AuthenticatorLocalizations.titlesOf( + context, + ).confirmSignInWithTotpMfaCode; } /// The title for the confirm sign in (email MFA code) Widget. String confirmSignInWithOtpCode(BuildContext context) { - return AuthenticatorLocalizations.titlesOf(context) - .confirmSignInWithOtpCode; + return AuthenticatorLocalizations.titlesOf( + context, + ).confirmSignInWithOtpCode; } /// The title for the continue sign in (email MFA setup) Widget. String continueSignInWithEmailMfaSetup(BuildContext context) { - return AuthenticatorLocalizations.titlesOf(context) - .continueSignInWithEmailMfaSetup; + return AuthenticatorLocalizations.titlesOf( + context, + ).continueSignInWithEmailMfaSetup; } /// The title for the continue sign in (mfa setup selection) Widget. String continueSignInWithMfaSetupSelection(BuildContext context) { - return AuthenticatorLocalizations.titlesOf(context) - .continueSignInWithMfaSetupSelection; + return AuthenticatorLocalizations.titlesOf( + context, + ).continueSignInWithMfaSetupSelection; } /// The title for the reset password Widget. diff --git a/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_date_field.dart b/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_date_field.dart index a7999b82e5..c05afc8662 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_date_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_date_field.dart @@ -5,8 +5,10 @@ import 'package:amplify_authenticator/src/widgets/form_field.dart'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; -mixin AuthenticatorDateField> +mixin AuthenticatorDateField< + FieldType extends Enum, + T extends AuthenticatorFormField +> on AuthenticatorFormFieldState { static final DateFormat _formatter = DateFormat('yyyy-MM-dd'); @@ -31,9 +33,10 @@ mixin AuthenticatorDateField pickTime() async { @@ -51,11 +54,7 @@ mixin AuthenticatorDateField> +mixin AuthenticatorPhoneFieldMixin< + FieldType extends Enum, + T extends AuthenticatorFormField +> on AuthenticatorFormFieldState implements SelectableConfig { late final DialCodeResolver _dialCodeResolver = stringResolver.dialCodes; @@ -25,10 +27,8 @@ mixin AuthenticatorPhoneFieldMixin> selections = DialCode.values .map( - (DialCode country) => InputSelection( - label: country.key, - value: country, - ), + (DialCode country) => + InputSelection(label: country.key, value: country), ) .toList(); @@ -39,9 +39,7 @@ mixin AuthenticatorPhoneFieldMixin _dialCodeResolver.resolve(context, dialCode.key), - ); + .sortedBy((dialCode) => _dialCodeResolver.resolve(context, dialCode.key)); String? formatPhoneNumber(String? phoneNumber) { return phoneNumber?.ensureStartsWith('+${state.dialCode.value}'); @@ -78,13 +76,8 @@ mixin AuthenticatorPhoneFieldMixin - dialCode.value - .contains(controller.text.replaceFirst('+', '')) || + dialCode.value.contains( + controller.text.replaceFirst('+', ''), + ) || _dialCodeResolver .resolve(context, dialCode.key) .toLowerCase() @@ -139,12 +134,10 @@ mixin AuthenticatorPhoneFieldMixin 250 - ? Text( - '+${country.value}', - style: textStyle, - ) - : null, + trailing: + constraints.maxWidth > 250 + ? Text('+${country.value}', style: textStyle) + : null, ); }, ), @@ -156,30 +149,26 @@ mixin AuthenticatorPhoneFieldMixin Padding( - padding: const EdgeInsets.symmetric(horizontal: 8), - child: InkWell( - key: keySelectCountryCode, - onTap: showCountryDialog, - child: Row( - mainAxisSize: MainAxisSize.min, - children: [ - Text( - '+${state.dialCode.value}', - style: Theme.of(context).inputDecorationTheme.hintStyle ?? - Theme.of(context).textTheme.titleMedium, - textAlign: TextAlign.center, - ), - const Flexible( - child: Icon( - Icons.arrow_drop_down, - size: 15, - ), - ), - const SizedBox(width: 5), - ], + padding: const EdgeInsets.symmetric(horizontal: 8), + child: InkWell( + key: keySelectCountryCode, + onTap: showCountryDialog, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + '+${state.dialCode.value}', + style: + Theme.of(context).inputDecorationTheme.hintStyle ?? + Theme.of(context).textTheme.titleMedium, + textAlign: TextAlign.center, ), - ), - ); + const Flexible(child: Icon(Icons.arrow_drop_down, size: 15)), + const SizedBox(width: 5), + ], + ), + ), + ); Future showCountryDialog() async { // Reset search @@ -203,7 +192,8 @@ mixin AuthenticatorPhoneFieldMixin> +mixin AuthenticatorRadioField< + FieldType extends Enum, + FieldValue extends Object, + T extends AuthenticatorFormField +> on AuthenticatorFormFieldState implements SelectableConfig { @override @@ -27,12 +30,7 @@ mixin AuthenticatorRadioField( value: selection.value, groupValue: selectionValue, diff --git a/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_text_field.dart b/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_text_field.dart index a22c708d50..a7fb3fc61e 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_text_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_text_field.dart @@ -6,24 +6,28 @@ import 'package:amplify_authenticator/src/widgets/form_field.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -mixin AuthenticatorTextField> +mixin AuthenticatorTextField< + FieldType extends Enum, + T extends AuthenticatorFormField +> on AuthenticatorFormFieldState { @override Widget buildFormField(BuildContext context) { final inputResolver = stringResolver.inputs; - final hintText = widget.hintText == null - ? widget.hintTextKey?.resolve(context, inputResolver) - : widget.hintText!; + final hintText = + widget.hintText == null + ? widget.hintTextKey?.resolve(context, inputResolver) + : widget.hintText!; return ValueListenableBuilder( valueListenable: AuthenticatorFormState.of(context).obscureTextToggleValue, builder: (BuildContext context, bool toggleObscureText, Widget? _) { final obscureText = this.obscureText && toggleObscureText; return TextFormField( - style: enabled - ? null - : TextStyle(color: Theme.of(context).disabledColor), + style: + enabled + ? null + : TextStyle(color: Theme.of(context).disabledColor), initialValue: initialValue, enabled: enabled, validator: widget.validatorOverride ?? validator, diff --git a/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_username_field.dart b/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_username_field.dart index b8187ed981..8b4c41ba5f 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_username_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/mixins/authenticator_username_field.dart @@ -10,8 +10,10 @@ import 'package:amplify_authenticator/src/widgets/component.dart'; import 'package:amplify_authenticator/src/widgets/form_field.dart'; import 'package:flutter/material.dart'; -mixin AuthenticatorUsernameField> +mixin AuthenticatorUsernameField< + FieldType extends Enum, + T extends AuthenticatorFormField +> on AuthenticatorFormFieldState { @override UsernameInput? get initialValue { @@ -76,14 +78,8 @@ mixin AuthenticatorUsernameField usernameValidator( - context: context, - inputResolver: stringResolver.inputs, - )(input?.username); + context: context, + inputResolver: stringResolver.inputs, + )(input?.username); case UsernameType.email: return (input) => validateEmail( - isOptional: isOptional, - context: context, - inputResolver: stringResolver.inputs, - )(input?.username); + isOptional: isOptional, + context: context, + inputResolver: stringResolver.inputs, + )(input?.username); case UsernameType.phoneNumber: return (input) => validatePhoneNumber( - isOptional: isOptional, - context: context, - inputResolver: stringResolver.inputs, - )(input?.username); + isOptional: isOptional, + context: context, + inputResolver: stringResolver.inputs, + )(input?.username); } } @@ -201,20 +202,14 @@ mixin AuthenticatorUsernameField getAttributeVerificationStatus(); Future - sendUserAttributeVerificationCode({ + sendUserAttributeVerificationCode({ required CognitoUserAttributeKey userAttributeKey, }); @@ -94,10 +94,7 @@ class AmplifyAuthService @override Future signIn(String username, String password) async { final result = await _withUserAgent( - () => Amplify.Auth.signIn( - username: username, - password: password, - ), + () => Amplify.Auth.signIn(username: username, password: password), ); return result; @@ -137,9 +134,7 @@ class AmplifyAuthService return Amplify.Auth.signUp( username: username, password: password, - options: SignUpOptions( - userAttributes: attributes, - ), + options: SignUpOptions(userAttributes: attributes), ); }); } @@ -173,9 +168,7 @@ class AmplifyAuthService @override Future rememberDevice() { - return _withUserAgent( - () => Amplify.Auth.rememberDevice(), - ); + return _withUserAgent(() => Amplify.Auth.rememberDevice()); } @override @@ -219,25 +212,23 @@ class AmplifyAuthService // If tokens can be retrieved without an exception, return true. AuthSuccessResult _ => true, AuthErrorResult(:final exception) => switch (exception) { - SignedOutException _ => false, + SignedOutException _ => false, - // NetworkException indicates that access and/or id tokens have expired - // and cannot be refreshed due to a network error. In this case the user - // should be treated as authenticated to allow for offline use cases. - NetworkException _ => true, + // NetworkException indicates that access and/or id tokens have expired + // and cannot be refreshed due to a network error. In this case the user + // should be treated as authenticated to allow for offline use cases. + NetworkException _ => true, - // Any other exception should be thrown to be handled appropriately. - _ => throw exception, - }, + // Any other exception should be thrown to be handled appropriately. + _ => throw exception, + }, }; }); } @override Future resetPassword(String username) { - return _withUserAgent( - () => Amplify.Auth.resetPassword(username: username), - ); + return _withUserAgent(() => Amplify.Auth.resetPassword(username: username)); } @override @@ -257,7 +248,7 @@ class AmplifyAuthService @override Future - sendUserAttributeVerificationCode({ + sendUserAttributeVerificationCode({ required CognitoUserAttributeKey userAttributeKey, }) { return _withUserAgent( @@ -286,18 +277,19 @@ class AmplifyAuthService /// https://github.com/aws-amplify/amplify-js/blob/6de9a1d743deef8de5205590bf7cf8134a5fb5f4/packages/auth/src/Auth.ts#L1199-L1224 @override Future - getAttributeVerificationStatus() async { + getAttributeVerificationStatus() async { return _withUserAgent(() async { final userAttributes = await Amplify.Auth.fetchUserAttributes(); - final verifiableAttributes = userAttributes - .map((e) => e.userAttributeKey.toCognitoUserAttributeKey()) - .where( - (element) => - element == CognitoUserAttributeKey.email || - element == CognitoUserAttributeKey.phoneNumber, - ) - .toList(); + final verifiableAttributes = + userAttributes + .map((e) => e.userAttributeKey.toCognitoUserAttributeKey()) + .where( + (element) => + element == CognitoUserAttributeKey.email || + element == CognitoUserAttributeKey.phoneNumber, + ) + .toList(); bool attributeIsVerified(CognitoUserAttributeKey userAttributeKey) { return userAttributes @@ -312,9 +304,10 @@ class AmplifyAuthService final verifiedAttributes = verifiableAttributes.where(attributeIsVerified).toList(); - final unverifiedAttributes = verifiableAttributes - .where((attribute) => !attributeIsVerified(attribute)) - .toList(); + final unverifiedAttributes = + verifiableAttributes + .where((attribute) => !attributeIsVerified(attribute)) + .toList(); return GetAttributeVerificationStatusResult( verifiedAttributes: verifiedAttributes, diff --git a/packages/authenticator/amplify_authenticator/lib/src/state/auth_state.dart b/packages/authenticator/amplify_authenticator/lib/src/state/auth_state.dart index ed4d213700..a5bfea18e0 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/state/auth_state.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/state/auth_state.dart @@ -37,12 +37,15 @@ class UnauthenticatedState extends AuthState static const signUp = UnauthenticatedState(step: AuthenticatorStep.signUp); static const signIn = UnauthenticatedState(step: AuthenticatorStep.signIn); - static const confirmSignUp = - UnauthenticatedState(step: AuthenticatorStep.confirmSignUp); - static const confirmSignInMfa = - UnauthenticatedState(step: AuthenticatorStep.confirmSignInMfa); - static const confirmSignInNewPassword = - UnauthenticatedState(step: AuthenticatorStep.confirmSignInNewPassword); + static const confirmSignUp = UnauthenticatedState( + step: AuthenticatorStep.confirmSignUp, + ); + static const confirmSignInMfa = UnauthenticatedState( + step: AuthenticatorStep.confirmSignInMfa, + ); + static const confirmSignInNewPassword = UnauthenticatedState( + step: AuthenticatorStep.confirmSignInNewPassword, + ); static const confirmSignInWithTotpMfaCode = UnauthenticatedState( step: AuthenticatorStep.confirmSignInWithTotpMfaCode, ); @@ -52,10 +55,12 @@ class UnauthenticatedState extends AuthState static const confirmSignInWithOtpCode = UnauthenticatedState( step: AuthenticatorStep.confirmSignInWithOtpCode, ); - static const resetPassword = - UnauthenticatedState(step: AuthenticatorStep.resetPassword); - static const confirmResetPassword = - UnauthenticatedState(step: AuthenticatorStep.confirmResetPassword); + static const resetPassword = UnauthenticatedState( + step: AuthenticatorStep.resetPassword, + ); + static const confirmResetPassword = UnauthenticatedState( + step: AuthenticatorStep.confirmResetPassword, + ); @override List get props => [step]; @@ -66,7 +71,7 @@ class UnauthenticatedState extends AuthState class AttributeVerificationSent extends UnauthenticatedState { const AttributeVerificationSent(this.userAttributeKey) - : super(step: AuthenticatorStep.confirmVerifyUser); + : super(step: AuthenticatorStep.confirmVerifyUser); final CognitoUserAttributeKey userAttributeKey; @@ -79,7 +84,7 @@ class AttributeVerificationSent extends UnauthenticatedState { class VerifyUserFlow extends UnauthenticatedState { const VerifyUserFlow({required this.unverifiedAttributeKeys}) - : super(step: AuthenticatorStep.verifyUser); + : super(step: AuthenticatorStep.verifyUser); final List unverifiedAttributeKeys; @override @@ -90,9 +95,8 @@ class VerifyUserFlow extends UnauthenticatedState { } class ConfirmSignInCustom extends UnauthenticatedState { - const ConfirmSignInCustom({ - this.publicParameters = const {}, - }) : super(step: AuthenticatorStep.confirmSignInCustomAuth); + const ConfirmSignInCustom({this.publicParameters = const {}}) + : super(step: AuthenticatorStep.confirmSignInCustomAuth); final Map publicParameters; @override @@ -103,10 +107,9 @@ class ConfirmSignInCustom extends UnauthenticatedState { } class ContinueSignInWithMfaSelection extends UnauthenticatedState { - const ContinueSignInWithMfaSelection({ - Set? allowedMfaTypes, - }) : allowedMfaTypes = allowedMfaTypes ?? const {}, - super(step: AuthenticatorStep.continueSignInWithMfaSelection); + const ContinueSignInWithMfaSelection({Set? allowedMfaTypes}) + : allowedMfaTypes = allowedMfaTypes ?? const {}, + super(step: AuthenticatorStep.continueSignInWithMfaSelection); final Set allowedMfaTypes; @@ -118,10 +121,9 @@ class ContinueSignInWithMfaSelection extends UnauthenticatedState { } class ContinueSignInWithMfaSetupSelection extends UnauthenticatedState { - const ContinueSignInWithMfaSetupSelection({ - Set? allowedMfaTypes, - }) : allowedMfaTypes = allowedMfaTypes ?? const {}, - super(step: AuthenticatorStep.continueSignInWithMfaSetupSelection); + const ContinueSignInWithMfaSetupSelection({Set? allowedMfaTypes}) + : allowedMfaTypes = allowedMfaTypes ?? const {}, + super(step: AuthenticatorStep.continueSignInWithMfaSetupSelection); final Set allowedMfaTypes; @@ -134,22 +136,20 @@ class ContinueSignInWithMfaSetupSelection extends UnauthenticatedState { class ContinueSignInTotpSetup extends UnauthenticatedState { const ContinueSignInTotpSetup(this.totpSetupDetails, this.totpSetupUri) - : super(step: AuthenticatorStep.continueSignInWithTotpSetup); + : super(step: AuthenticatorStep.continueSignInWithTotpSetup); static Future setupURI( TotpSetupDetails totpSetupDetails, TotpOptions? totpOptions, ) async { final setupUri = totpSetupDetails.getSetupUri( - appName: totpOptions?.issuer ?? + appName: + totpOptions?.issuer ?? // TODO(equartey): Update this once we have our own method of getting the app name (await PackageInfo.fromPlatform()).appName, ); - return ContinueSignInTotpSetup( - totpSetupDetails, - setupUri, - ); + return ContinueSignInTotpSetup(totpSetupDetails, setupUri); } final TotpSetupDetails totpSetupDetails; diff --git a/packages/authenticator/amplify_authenticator/lib/src/state/authenticator_state.dart b/packages/authenticator/amplify_authenticator/lib/src/state/authenticator_state.dart index 836c4f1a01..a3040770b7 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/state/authenticator_state.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/state/authenticator_state.dart @@ -235,11 +235,8 @@ class AuthenticatorState extends ChangeNotifier { final currentPhoneNumber = authAttributes[CognitoUserAttributeKey.phoneNumber]; if (currentPhoneNumber != null) { - authAttributes[CognitoUserAttributeKey.phoneNumber] = - currentPhoneNumber.replaceFirst( - oldDialCode.value, - newDialCode.value, - ); + authAttributes[CognitoUserAttributeKey.phoneNumber] = currentPhoneNumber + .replaceFirst(oldDialCode.value, newDialCode.value); } _dialCode = newDialCode; notifyListeners(); @@ -307,10 +304,7 @@ class AuthenticatorState extends ChangeNotifier { } set preferredUsername(String preferredUsername) { - _setAttribute( - CognitoUserAttributeKey.preferredUsername, - preferredUsername, - ); + _setAttribute(CognitoUserAttributeKey.preferredUsername, preferredUsername); } set profile(String profile) { @@ -468,9 +462,7 @@ class AuthenticatorState extends ChangeNotifier { _setIsBusy(true); - final confirm = AuthConfirmSignInData( - confirmationValue: _mfaEmail.trim(), - ); + final confirm = AuthConfirmSignInData(confirmationValue: _mfaEmail.trim()); _authBloc.add(AuthConfirmSignIn(confirm)); await nextBlocEvent(); @@ -563,9 +555,7 @@ class AuthenticatorState extends ChangeNotifier { final resetPasswordData = AuthResetPasswordData(username: _username.trim()); _authBloc.add(AuthResetPassword(resetPasswordData)); - await nextBlocEvent( - where: (state) => state is UnauthenticatedState, - ); + await nextBlocEvent(where: (state) => state is UnauthenticatedState); _setIsBusy(false); } @@ -586,9 +576,7 @@ class AuthenticatorState extends ChangeNotifier { newPassword: _newPassword.trim(), ); _authBloc.add(AuthConfirmResetPassword(confirmResetPasswordData)); - await nextBlocEvent( - where: (state) => state is UnauthenticatedState, - ); + await nextBlocEvent(where: (state) => state is UnauthenticatedState); _setIsBusy(false); } @@ -634,8 +622,9 @@ class AuthenticatorState extends ChangeNotifier { ); _authBloc.add(AuthConfirmVerifyUser(authConfirmVerifyUserData)); await nextBlocEvent( - where: (state) => - state is UnauthenticatedState || state is AuthenticatedState, + where: + (state) => + state is UnauthenticatedState || state is AuthenticatedState, ); _setIsBusy(false); } @@ -654,9 +643,7 @@ class AuthenticatorState extends ChangeNotifier { ); _authBloc.add(AuthVerifyUser(authVerifyUserData)); - await nextBlocEvent( - where: (state) => state is! LoadingState, - ); + await nextBlocEvent(where: (state) => state is! LoadingState); _setIsBusy(false); } @@ -680,10 +667,7 @@ class AuthenticatorState extends ChangeNotifier { /// /// If [reset] is `true`, clears temporary form data including username, /// password, and user attributes. - void changeStep( - AuthenticatorStep step, { - bool reset = true, - }) { + void changeStep(AuthenticatorStep step, {bool reset = true}) { _authBloc.add(AuthChangeScreen(step)); /// Clean [ViewModel] when user manually navigates widgets diff --git a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_builder.dart b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_builder.dart index 578298acf2..3a67ba8dc5 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_builder.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_builder.dart @@ -20,11 +20,15 @@ class InheritedAuthenticatorBuilder extends InheritedWidget { static AuthenticatorBuilder? of(BuildContext context, {bool listen = true}) { InheritedAuthenticatorBuilder? inheritedViewModel; if (listen) { - inheritedViewModel = context - .dependOnInheritedWidgetOfExactType(); + inheritedViewModel = + context + .dependOnInheritedWidgetOfExactType< + InheritedAuthenticatorBuilder + >(); } else { - inheritedViewModel = context - .findAncestorWidgetOfExactType(); + inheritedViewModel = + context + .findAncestorWidgetOfExactType(); } assert(() { if (inheritedViewModel == null) { diff --git a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_state.dart b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_state.dart index 6904a6d6b0..562dc76d59 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_state.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_authenticator_state.dart @@ -10,9 +10,7 @@ class InheritedAuthenticatorState extends InheritedNotifier { super.key, required super.child, required this.state, - }) : super( - notifier: state, - ); + }) : super(notifier: state); final AuthenticatorState state; @@ -22,8 +20,11 @@ class InheritedAuthenticatorState extends InheritedNotifier { static AuthenticatorState of(BuildContext context, {bool listen = true}) { InheritedAuthenticatorState? inheritedViewModel; if (listen) { - inheritedViewModel = context - .dependOnInheritedWidgetOfExactType(); + inheritedViewModel = + context + .dependOnInheritedWidgetOfExactType< + InheritedAuthenticatorState + >(); } else { inheritedViewModel = context.findAncestorWidgetOfExactType(); diff --git a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_forms.dart b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_forms.dart index 12717df25b..fd31119f6a 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_forms.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_forms.dart @@ -34,7 +34,7 @@ class InheritedForms extends InheritedWidget { final ConfirmSignInNewPasswordForm confirmSignInNewPasswordForm; final ContinueSignInWithMfaSelectionForm continueSignInWithMfaSelectionForm; final ContinueSignInWithMfaSetupSelectionForm - continueSignInWithMfaSetupSelectionForm; + continueSignInWithMfaSetupSelectionForm; final ContinueSignInWithTotpSetupForm continueSignInWithTotpSetupForm; final ContinueSignInWithEmailMfaSetupForm continueSignInWithEmailMfaSetupForm; final ConfirmSignInMFAForm confirmSignInWithTotpMfaCodeForm; diff --git a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_strings.dart b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_strings.dart index 670146dc4d..f07426f603 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/state/inherited_strings.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/state/inherited_strings.dart @@ -39,8 +39,9 @@ class InheritedStrings extends InheritedWidget { @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); - properties - .add(DiagnosticsProperty('resolver', resolver)); + properties.add( + DiagnosticsProperty('resolver', resolver), + ); } } diff --git a/packages/authenticator/amplify_authenticator/lib/src/utils/breakpoint.dart b/packages/authenticator/amplify_authenticator/lib/src/utils/breakpoint.dart index 85bff447d6..a0716ab774 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/utils/breakpoint.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/utils/breakpoint.dart @@ -26,7 +26,8 @@ enum Breakpoint { static Breakpoint of(BuildContext context) { final size = MediaQuery.of(context).size; // Determind if phone is in portrait or landscape mode - final isMobile = size.width < maxMobileWidth || + final isMobile = + size.width < maxMobileWidth || (size.width < maxMobileHeight && size.height < maxMobileWidth); if (isMobile) { diff --git a/packages/authenticator/amplify_authenticator/lib/src/utils/dial_code_options.dart b/packages/authenticator/amplify_authenticator/lib/src/utils/dial_code_options.dart index a523316874..67e7c9d0d8 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/utils/dial_code_options.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/utils/dial_code_options.dart @@ -14,9 +14,7 @@ import 'package:amplify_authenticator/amplify_authenticator.dart'; /// limit which options are shown in the modal. /// {@endtemplate} class DialCodeOptions { - const DialCodeOptions({ - this.defaultDialCode = DialCode.us, - }); + const DialCodeOptions({this.defaultDialCode = DialCode.us}); final DialCode defaultDialCode; } diff --git a/packages/authenticator/amplify_authenticator/lib/src/utils/list.dart b/packages/authenticator/amplify_authenticator/lib/src/utils/list.dart index b100ec57e0..cd7e373f32 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/utils/list.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/utils/list.dart @@ -4,10 +4,7 @@ extension ListX on List { List spacedBy(T spacer) { return [ - for (final item in this) ...[ - item, - spacer, - ], + for (final item in this) ...[item, spacer], ]..removeLast(); } } diff --git a/packages/authenticator/amplify_authenticator/lib/src/utils/validators.dart b/packages/authenticator/amplify_authenticator/lib/src/utils/validators.dart index 03cc103d1c..36969a152b 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/utils/validators.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/utils/validators.dart @@ -42,10 +42,7 @@ FormFieldValidator usernameValidator({ }) { return (String? input) { if (input == null || input.isEmpty) { - return inputResolver.resolve( - context, - InputResolverKey.usernameEmpty, - ); + return inputResolver.resolve(context, InputResolverKey.usernameEmpty); } input = input.trim(); if (!usernameRegex.hasMatch(input)) { @@ -65,35 +62,34 @@ FormFieldValidator Function(BuildContext) validateNewPassword({ }) { final passwordPolicies = amplifyOutputs?.auth?.passwordPolicy; return (BuildContext context) => (String? password) { - if (password == null || password.isEmpty) { - return inputResolver.resolve( - context, - InputResolverKey.passwordEmpty, - ); - } - password = password.trim(); - if (passwordPolicies == null) { - return null; - } + if (password == null || password.isEmpty) { + return inputResolver.resolve(context, InputResolverKey.passwordEmpty); + } + password = password.trim(); + if (passwordPolicies == null) { + return null; + } - final minLength = passwordPolicies.minLength; - final meetsMinLengthRequirement = - minLength == null || password.length >= minLength; + final minLength = passwordPolicies.minLength; + final meetsMinLengthRequirement = + minLength == null || password.length >= minLength; - final unmetCharacterReqs = - _getUnmetCharacterRequirements(password, passwordPolicies); + final unmetCharacterReqs = _getUnmetCharacterRequirements( + password, + passwordPolicies, + ); - final error = inputResolver.resolve( - context, - InputResolverKey.passwordRequirementsUnmet( - UnmetPasswordRequirements( - minLength: meetsMinLengthRequirement ? null : minLength, - characterRequirements: unmetCharacterReqs, - ), - ), - ); - return error.isEmpty ? null : error; - }; + final error = inputResolver.resolve( + context, + InputResolverKey.passwordRequirementsUnmet( + UnmetPasswordRequirements( + minLength: meetsMinLengthRequirement ? null : minLength, + characterRequirements: unmetCharacterReqs, + ), + ), + ); + return error.isEmpty ? null : error; + }; } List _getUnmetCharacterRequirements( @@ -149,10 +145,7 @@ FormFieldValidator validatePhoneNumber({ if (isOptional) { return null; } - return inputResolver.resolve( - context, - InputResolverKey.phoneNumberEmpty, - ); + return inputResolver.resolve(context, InputResolverKey.phoneNumberEmpty); } phoneNumber = phoneNumber.trim(); if (!phoneNumberRegex.hasMatch(phoneNumber)) { @@ -172,10 +165,7 @@ FormFieldValidator validateEmail({ if (isOptional) { return null; } - return inputResolver.resolve( - context, - InputResolverKey.emailEmpty, - ); + return inputResolver.resolve(context, InputResolverKey.emailEmpty); } email = email.trim(); if (!emailRegex.hasMatch(email)) { diff --git a/packages/authenticator/amplify_authenticator/lib/src/version.dart b/packages/authenticator/amplify_authenticator/lib/src/version.dart index 493e5be2c4..f665d3bb5a 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/version.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '2.3.3'; +const packageVersion = '2.3.4'; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/authenticator_banner.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/authenticator_banner.dart index 6459621c51..61ba1de475 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/authenticator_banner.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/authenticator_banner.dart @@ -32,9 +32,7 @@ MaterialBanner createMaterialBanner( Expanded( child: Text( message.trim(), - style: TextStyle( - color: colorsChoices.foreground, - ), + style: TextStyle(color: colorsChoices.foreground), ), ), ], @@ -43,10 +41,7 @@ MaterialBanner createMaterialBanner( actions: [ IconButton( onPressed: actionCallback, - icon: Icon( - Icons.close, - color: colorsChoices.foreground, - ), + icon: Icon(Icons.close, color: colorsChoices.foreground), ), ], ); @@ -79,15 +74,11 @@ SnackBar createSnackBar( crossAxisAlignment: CrossAxisAlignment.center, children: [ Icon(type.icon, color: fallbackIconColor), - const SizedBox( - width: 16, - ), + const SizedBox(width: 16), Expanded( child: Text( message.trim(), - style: TextStyle( - color: colorsChoices.foreground, - ), + style: TextStyle(color: colorsChoices.foreground), ), ), ], diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/button.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/button.dart index ccd43114da..525d948843 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/button.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/button.dart @@ -18,9 +18,7 @@ import 'package:flutter/material.dart'; abstract class AuthenticatorButton> extends AuthenticatorComponent { /// {@macro amplify_authenticator.authenticator_button} - const AuthenticatorButton({ - super.key, - }); + const AuthenticatorButton({super.key}); /// The button's `onPressed` callback. void onPressed(BuildContext context, AuthenticatorState state); @@ -43,19 +41,21 @@ abstract class AuthenticatorButton> @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); - properties - .add(DiagnosticsProperty('labelKey', labelKey)); + properties.add( + DiagnosticsProperty('labelKey', labelKey), + ); } } abstract class AuthenticatorButtonState> - extends AuthenticatorComponentState with MaterialStateMixin { + extends AuthenticatorComponentState + with MaterialStateMixin { final focusNode = FocusNode(); late final ValueChanged focusChanged = - // TODO(Jordan-Nelson): Update to `WidgetState` when min Flutter version is 3.22 or higher - // ignore: deprecated_member_use - updateMaterialState(MaterialState.focused); + // TODO(Jordan-Nelson): Update to `WidgetState` when min Flutter version is 3.22 or higher + // ignore: deprecated_member_use + updateMaterialState(MaterialState.focused); @override void initState() { @@ -109,41 +109,40 @@ class _AmplifyElevatedButtonState final loadingIndicator = widget.loadingIndicator; final onPressed = state.isBusy ? null : () => widget.onPressed(context, state); - final child = state.isBusy && loadingIndicator != null - ? loadingIndicator - : Row( - mainAxisSize: MainAxisSize.min, - children: [ - if (widget.leading != null) widget.leading!, - Flexible( - child: FittedBox( - fit: BoxFit.scaleDown, - child: Text( - buttonResolver.resolve( - context, - widget.labelKey, + final child = + state.isBusy && loadingIndicator != null + ? loadingIndicator + : Row( + mainAxisSize: MainAxisSize.min, + children: [ + if (widget.leading != null) widget.leading!, + Flexible( + child: FittedBox( + fit: BoxFit.scaleDown, + child: Text( + buttonResolver.resolve(context, widget.labelKey), + textAlign: TextAlign.center, ), - textAlign: TextAlign.center, ), ), - ), - if (widget.trailing != null) widget.trailing!, - ].spacedBy(const SizedBox(width: 10)), - ); + if (widget.trailing != null) widget.trailing!, + ].spacedBy(const SizedBox(width: 10)), + ); final useMaterial3 = Theme.of(context).useMaterial3; return SizedBox( width: double.infinity, - child: useMaterial3 - ? FilledButton( - focusNode: focusNode, - onPressed: onPressed, - child: child, - ) - : ElevatedButton( - focusNode: focusNode, - onPressed: onPressed, - child: child, - ), + child: + useMaterial3 + ? FilledButton( + focusNode: focusNode, + onPressed: onPressed, + child: child, + ) + : ElevatedButton( + focusNode: focusNode, + onPressed: onPressed, + child: child, + ), ); } } @@ -156,10 +155,7 @@ class _AmplifyElevatedButtonState /// {@endtemplate} class SignUpButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.sign_up_button} - const SignUpButton({Key? key}) - : super( - key: key ?? keySignUpButton, - ); + const SignUpButton({Key? key}) : super(key: key ?? keySignUpButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.signUp; @@ -177,10 +173,7 @@ class SignUpButton extends AuthenticatorElevatedButton { /// {@endtemplate} class SignInButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.sign_in_button} - const SignInButton({Key? key}) - : super( - key: key ?? keySignInButton, - ); + const SignInButton({Key? key}) : super(key: key ?? keySignInButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.signIn; @@ -199,9 +192,7 @@ class SignInButton extends AuthenticatorElevatedButton { class ConfirmSignUpButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.confirm_sign_up_button} const ConfirmSignUpButton({Key? key}) - : super( - key: key ?? keyConfirmSignUpButton, - ); + : super(key: key ?? keyConfirmSignUpButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.confirm; @@ -220,9 +211,7 @@ class ConfirmSignUpButton extends AuthenticatorElevatedButton { class ConfirmSignInCustomButton extends ConfirmSignInMFAButton { /// {@macro amplify_authenticator.confirm_sign_in_custom_button} const ConfirmSignInCustomButton({Key? key}) - : super( - key: key ?? keyConfirmSignInCustomButton, - ); + : super(key: key ?? keyConfirmSignInCustomButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.confirm; @@ -241,9 +230,7 @@ class ConfirmSignInCustomButton extends ConfirmSignInMFAButton { class ContinueSignInMFASelectionButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.continue_sign_in_mfa_selection_button} const ContinueSignInMFASelectionButton({Key? key}) - : super( - key: key ?? keyConfirmSignInMfaSelectionButton, - ); + : super(key: key ?? keyConfirmSignInMfaSelectionButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.continueLabel; @@ -263,9 +250,7 @@ class ContinueSignInMFASetupSelectionButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.continue_sign_in_mfa_setup_selection_button} const ContinueSignInMFASetupSelectionButton({Key? key}) - : super( - key: key ?? keyConfirmSignInMfaSetupSelectionButton, - ); + : super(key: key ?? keyConfirmSignInMfaSetupSelectionButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.continueLabel; @@ -285,9 +270,7 @@ class ContinueSignInWithEmailMfaSetupButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.continue_sign_in_with_email_mfa_setup_button} const ContinueSignInWithEmailMfaSetupButton({Key? key}) - : super( - key: key ?? keyConfirmSignInWithEmailMfaSetupButton, - ); + : super(key: key ?? keyConfirmSignInWithEmailMfaSetupButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.continueLabel; @@ -306,9 +289,7 @@ class ContinueSignInWithEmailMfaSetupButton class ConfirmSignInMFAButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.confirm_sign_in_mfa_button} const ConfirmSignInMFAButton({Key? key}) - : super( - key: key ?? keyConfirmSignInButton, - ); + : super(key: key ?? keyConfirmSignInButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.confirm; @@ -338,9 +319,7 @@ class SignOutButton extends StatelessAuthenticatorComponent { return ElevatedButton( onPressed: state.signOut, - child: Text( - buttonResolver.signout(context), - ), + child: Text(buttonResolver.signout(context)), ); } } @@ -369,9 +348,7 @@ class BackToSignInButton extends StatelessAuthenticatorComponent { ), onPressed: () { if (!abortSignIn) { - state.changeStep( - AuthenticatorStep.signIn, - ); + state.changeStep(AuthenticatorStep.signIn); } else { state.abortSignIn(); } @@ -411,9 +388,9 @@ class LostCodeButton extends StatelessAuthenticatorComponent { Expanded( child: Text( buttonResolver.lostCode(context), - style: Theme.of(context).textTheme.labelLarge?.copyWith( - fontSize: fontSize, - ), + style: Theme.of( + context, + ).textTheme.labelLarge?.copyWith(fontSize: fontSize), ), ), TextButton( @@ -445,12 +422,8 @@ class ForgotPasswordButton extends StatelessAuthenticatorComponent { ) { return TextButton( key: keyForgotPasswordButton, - child: Text( - stringResolver.buttons.forgotPassword(context), - ), - onPressed: () => state.changeStep( - AuthenticatorStep.resetPassword, - ), + child: Text(stringResolver.buttons.forgotPassword(context)), + onPressed: () => state.changeStep(AuthenticatorStep.resetPassword), ); } } @@ -463,10 +436,7 @@ class ForgotPasswordButton extends StatelessAuthenticatorComponent { /// {@endtemplate} class ResetPasswordButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.reset_password_button} - const ResetPasswordButton({Key? key}) - : super( - key: key ?? keySendCodeButton, - ); + const ResetPasswordButton({Key? key}) : super(key: key ?? keySendCodeButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.submit; @@ -485,9 +455,7 @@ class ResetPasswordButton extends AuthenticatorElevatedButton { class ConfirmResetPasswordButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.confirm_reset_password_button} const ConfirmResetPasswordButton({Key? key}) - : super( - key: key ?? keySendCodeButton, - ); + : super(key: key ?? keySendCodeButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.submit; @@ -506,9 +474,7 @@ class ConfirmResetPasswordButton extends AuthenticatorElevatedButton { class ConfirmSignInNewPasswordButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.confirm_sign_in_new_password} const ConfirmSignInNewPasswordButton({Key? key}) - : super( - key: key ?? keyConfirmSignInButton, - ); + : super(key: key ?? keyConfirmSignInButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.changePassword; @@ -527,9 +493,7 @@ class ConfirmSignInNewPasswordButton extends AuthenticatorElevatedButton { class VerifyUserButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.verify_user_button} const VerifyUserButton({Key? key}) - : super( - key: key ?? keySubmitVerifyUserButton, - ); + : super(key: key ?? keySubmitVerifyUserButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.verify; @@ -549,9 +513,7 @@ class VerifyUserButton extends AuthenticatorElevatedButton { class ConfirmVerifyUserButton extends AuthenticatorElevatedButton { /// {@macro amplify_authenticator.confirm_verify_user_button} const ConfirmVerifyUserButton({Key? key}) - : super( - key: key ?? keySubmitConfirmVerifyUserButton, - ); + : super(key: key ?? keySubmitConfirmVerifyUserButton); @override ButtonResolverKey get labelKey => ButtonResolverKey.submit; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/checkbox.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/checkbox.dart index 9312fc3770..bc2834e0d6 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/checkbox.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/checkbox.dart @@ -66,7 +66,7 @@ class _AuthenticatorCheckBoxState> class RememberDeviceCheckbox extends AuthenticatorCheckbox { const RememberDeviceCheckbox({super.key}) - : super(labelKey: InputResolverKey.rememberDevice); + : super(labelKey: InputResolverKey.rememberDevice); @override AuthenticatorComponentState createState() => diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/component.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/component.dart index 46d27c3caf..d1960bb1b9 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/component.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/component.dart @@ -14,9 +14,7 @@ import 'package:flutter/material.dart'; /// {@endtemplate} abstract class StatelessAuthenticatorComponent extends StatelessWidget { /// {@macro amplify_authenticator.stateless_authenticator_component} - const StatelessAuthenticatorComponent({ - super.key, - }); + const StatelessAuthenticatorComponent({super.key}); /// A [StatelessWidget.build] replacement which injects inherited Authenticator /// components. diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form.dart index abad5f4369..1ab7382c3e 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library authenticator.form; +library; import 'package:amplify_authenticator/amplify_authenticator.dart'; import 'package:amplify_authenticator/src/enums/enums.dart'; @@ -63,12 +63,10 @@ import 'package:flutter/material.dart'; /// - [ConfirmVerifyUserForm] class AuthenticatorForm extends AuthenticatorComponent { /// {@macro amplify_authenticator.authenticator_form_builder} - const AuthenticatorForm({ - super.key, - required this.child, - }) : fields = const [], - actions = const [], - includeDefaultSocialProviders = false; + const AuthenticatorForm({super.key, required this.child}) + : fields = const [], + actions = const [], + includeDefaultSocialProviders = false; const AuthenticatorForm._({ super.key, @@ -105,7 +103,8 @@ class AuthenticatorForm extends AuthenticatorComponent { } class AuthenticatorFormState - extends AuthenticatorComponentState with UsernameAttributes { + extends AuthenticatorComponentState + with UsernameAttributes { AuthenticatorFormState(); static AuthenticatorFormState of(BuildContext context) { @@ -134,10 +133,7 @@ class AuthenticatorFormState } /// Additional fields defined at runtime. - List runtimeFields( - BuildContext context, - ) => - const []; + List runtimeFields(BuildContext context) => const []; /// Additional actions defined at runtime. List runtimeActions(BuildContext context) => const []; @@ -173,10 +169,7 @@ class AuthenticatorFormState Widget build(BuildContext context) { final formKey = InheritedAuthenticatorState.of(context).formKey; if (widget.child != null) { - return Form( - key: formKey, - child: widget.child!, - ); + return Form(key: formKey, child: widget.child!); } final runtimeActions = this.runtimeActions(context); @@ -220,30 +213,23 @@ class AuthenticatorFormState /// {@endtemplate} class SignUpForm extends AuthenticatorForm { /// {@macro amplify_authenticator.sign_up_form} - SignUpForm({ - super.key, - }) : _includeDefaultFields = true, - super._( - fields: [ - SignUpFormField.username(), - SignUpFormField.password(), - SignUpFormField.passwordConfirmation(), - ], - actions: const [ - SignUpButton(), - ], - ); + SignUpForm({super.key}) + : _includeDefaultFields = true, + super._( + fields: [ + SignUpFormField.username(), + SignUpFormField.password(), + SignUpFormField.passwordConfirmation(), + ], + actions: const [SignUpButton()], + ); /// A custom Sign Up form. const SignUpForm.custom({ super.key, required List super.fields, - }) : _includeDefaultFields = false, - super._( - actions: const [ - SignUpButton(), - ], - ); + }) : _includeDefaultFields = false, + super._(actions: const [SignUpButton()]); /// Controls whether the default form fields are included, based on settings in /// the Auth plugin configuration. @@ -288,10 +274,7 @@ class _SignUpFormState extends AuthenticatorFormState { } // combine fields - final fields = [ - ...widget.fields, - ...runtimeFields(context), - ]; + final fields = [...widget.fields, ...runtimeFields(context)]; // sort on priority. mergeSort is used for a stable sort mergeSort( @@ -316,50 +299,51 @@ class _SignUpFormState extends AuthenticatorFormState { return const []; } - final runtimeFields = runtimeAttributes - .map((attr) { - if (attr == CognitoUserAttributeKey.address) { - return SignUpFormField.address(required: true); - } - if (attr == CognitoUserAttributeKey.birthdate) { - return SignUpFormField.birthdate(required: true); - } - if (attr == CognitoUserAttributeKey.email) { - if (selectedUsernameType == UsernameType.email) { - return null; - } - return SignUpFormField.email(required: true); - } - if (attr == CognitoUserAttributeKey.familyName) { - return SignUpFormField.familyName(required: true); - } - if (attr == CognitoUserAttributeKey.middleName) { - return SignUpFormField.middleName(required: true); - } - if (attr == CognitoUserAttributeKey.gender) { - return SignUpFormField.gender(required: true); - } - if (attr == CognitoUserAttributeKey.givenName) { - return SignUpFormField.givenName(required: true); - } - if (attr == CognitoUserAttributeKey.name) { - return SignUpFormField.name(required: true); - } - if (attr == CognitoUserAttributeKey.nickname) { - return SignUpFormField.nickname(required: true); - } - if (attr == CognitoUserAttributeKey.phoneNumber) { - if (selectedUsernameType == UsernameType.phoneNumber) { - return null; - } - return SignUpFormField.phoneNumber(required: true); - } - if (attr == CognitoUserAttributeKey.preferredUsername) { - return SignUpFormField.preferredUsername(required: true); - } - }) - .whereType() - .toList(); + final runtimeFields = + runtimeAttributes + .map((attr) { + if (attr == CognitoUserAttributeKey.address) { + return SignUpFormField.address(required: true); + } + if (attr == CognitoUserAttributeKey.birthdate) { + return SignUpFormField.birthdate(required: true); + } + if (attr == CognitoUserAttributeKey.email) { + if (selectedUsernameType == UsernameType.email) { + return null; + } + return SignUpFormField.email(required: true); + } + if (attr == CognitoUserAttributeKey.familyName) { + return SignUpFormField.familyName(required: true); + } + if (attr == CognitoUserAttributeKey.middleName) { + return SignUpFormField.middleName(required: true); + } + if (attr == CognitoUserAttributeKey.gender) { + return SignUpFormField.gender(required: true); + } + if (attr == CognitoUserAttributeKey.givenName) { + return SignUpFormField.givenName(required: true); + } + if (attr == CognitoUserAttributeKey.name) { + return SignUpFormField.name(required: true); + } + if (attr == CognitoUserAttributeKey.nickname) { + return SignUpFormField.nickname(required: true); + } + if (attr == CognitoUserAttributeKey.phoneNumber) { + if (selectedUsernameType == UsernameType.phoneNumber) { + return null; + } + return SignUpFormField.phoneNumber(required: true); + } + if (attr == CognitoUserAttributeKey.preferredUsername) { + return SignUpFormField.preferredUsername(required: true); + } + }) + .whereType() + .toList(); final hasSmsMfa = authConfig?.mfaMethods?.contains(MfaMethod.sms) ?? false; if (hasSmsMfa && selectedUsernameType != UsernameType.phoneNumber) { @@ -395,31 +379,18 @@ class _SignUpFormState extends AuthenticatorFormState { /// {@endtemplate} class SignInForm extends AuthenticatorForm { /// {@macro amplify_authenticator.sign_in_form} - SignInForm({ - super.key, - super.includeDefaultSocialProviders, - }) : super._( - fields: [ - SignInFormField.username(), - SignInFormField.password(), - ], - actions: const [ - SignInButton(), - ForgotPasswordButton(), - ], - ); + SignInForm({super.key, super.includeDefaultSocialProviders}) + : super._( + fields: [SignInFormField.username(), SignInFormField.password()], + actions: const [SignInButton(), ForgotPasswordButton()], + ); /// A custom Sign In form. const SignInForm.custom({ super.key, required super.fields, super.includeDefaultSocialProviders, - }) : super._( - actions: const [ - SignInButton(), - ForgotPasswordButton(), - ], - ); + }) : super._(actions: const [SignInButton(), ForgotPasswordButton()]); @override AuthenticatorFormState createState() => _SignInFormState(); @@ -434,11 +405,10 @@ class _SignInFormState extends AuthenticatorFormState { return const []; } - final socialProviders = InheritedConfig.of(context) - .amplifyOutputs - ?.auth - ?.oauth - ?.identityProviders; + final socialProviders = + InheritedConfig.of( + context, + ).amplifyOutputs?.auth?.oauth?.identityProviders; if (socialProviders == null || socialProviders.isEmpty) { return const []; @@ -456,18 +426,19 @@ class _SignInFormState extends AuthenticatorFormState { return [ SocialSignInButtons( - providers: socialProviders.map((e) { - switch (e) { - case IdentityProvider.facebook: - return AuthProvider.facebook; - case IdentityProvider.google: - return AuthProvider.google; - case IdentityProvider.amazon: - return AuthProvider.amazon; - case IdentityProvider.apple: - return AuthProvider.apple; - } - }).toList(), + providers: + socialProviders.map((e) { + switch (e) { + case IdentityProvider.facebook: + return AuthProvider.facebook; + case IdentityProvider.google: + return AuthProvider.google; + case IdentityProvider.amazon: + return AuthProvider.amazon; + case IdentityProvider.apple: + return AuthProvider.apple; + } + }).toList(), ), ]; } @@ -481,31 +452,22 @@ class _SignInFormState extends AuthenticatorFormState { /// {@endtemplate} class ConfirmSignUpForm extends AuthenticatorForm { /// {@macro amplify_authenticator.confirm_sign_up_form} - ConfirmSignUpForm({ - super.key, - }) : resendCodeButton = null, - super._( - fields: [ - ConfirmSignUpFormField.username(), - ConfirmSignUpFormField.verificationCode(), - ], - actions: const [ - ConfirmSignUpButton(), - BackToSignInButton(), - ], - ); + ConfirmSignUpForm({super.key}) + : resendCodeButton = null, + super._( + fields: [ + ConfirmSignUpFormField.username(), + ConfirmSignUpFormField.verificationCode(), + ], + actions: const [ConfirmSignUpButton(), BackToSignInButton()], + ); /// A custom Confirm Sign Up form. const ConfirmSignUpForm.custom({ super.key, required super.fields, this.resendCodeButton, - }) : super._( - actions: const [ - ConfirmSignUpButton(), - BackToSignInButton(), - ], - ); + }) : super._(actions: const [ConfirmSignUpButton(), BackToSignInButton()]); /// Widget to show for resending a verification code. /// @@ -524,17 +486,13 @@ class ConfirmSignUpForm extends AuthenticatorForm { class ConfirmSignInCustomAuthForm extends AuthenticatorForm { /// {@macro amplify_authenticator.confirm_sign_in_custom_auth_form} ConfirmSignInCustomAuthForm({super.key}) - : super._( - fields: [ - ConfirmSignInFormField.customChallenge(), - ], - actions: const [ - ConfirmSignInCustomButton(), - BackToSignInButton( - abortSignIn: true, - ), - ], - ); + : super._( + fields: [ConfirmSignInFormField.customChallenge()], + actions: const [ + ConfirmSignInCustomButton(), + BackToSignInButton(abortSignIn: true), + ], + ); @override AuthenticatorFormState createState() => @@ -549,15 +507,10 @@ class ConfirmSignInCustomAuthForm extends AuthenticatorForm { class ConfirmSignInMFAForm extends AuthenticatorForm { /// {@macro amplify_authenticator.confirm_sign_in_mfa_form} ConfirmSignInMFAForm({super.key}) - : super._( - fields: [ - ConfirmSignInFormField.verificationCode(), - ], - actions: const [ - ConfirmSignInMFAButton(), - BackToSignInButton(), - ], - ); + : super._( + fields: [ConfirmSignInFormField.verificationCode()], + actions: const [ConfirmSignInMFAButton(), BackToSignInButton()], + ); @override AuthenticatorFormState createState() => @@ -572,29 +525,20 @@ class ConfirmSignInMFAForm extends AuthenticatorForm { /// {@endtemplate} class ConfirmSignInNewPasswordForm extends AuthenticatorForm { /// {@macro amplify_authenticator.confirm_sign_in_new_password_form} - ConfirmSignInNewPasswordForm({ - super.key, - }) : super._( - fields: [ - ConfirmSignInFormField.newPassword(), - ConfirmSignInFormField.confirmNewPassword(), - ], - actions: const [ - ConfirmSignInNewPasswordButton(), - BackToSignInButton(), - ], - ); + ConfirmSignInNewPasswordForm({super.key}) + : super._( + fields: [ + ConfirmSignInFormField.newPassword(), + ConfirmSignInFormField.confirmNewPassword(), + ], + actions: const [ConfirmSignInNewPasswordButton(), BackToSignInButton()], + ); /// A custom Confirm Sign In with New Password form. - const ConfirmSignInNewPasswordForm.custom({ - super.key, - required super.fields, - }) : super._( - actions: const [ - ConfirmSignInNewPasswordButton(), - BackToSignInButton(), - ], - ); + const ConfirmSignInNewPasswordForm.custom({super.key, required super.fields}) + : super._( + actions: const [ConfirmSignInNewPasswordButton(), BackToSignInButton()], + ); @override AuthenticatorFormState createState() => @@ -608,15 +552,13 @@ class ConfirmSignInNewPasswordForm extends AuthenticatorForm { class ContinueSignInWithMfaSelectionForm extends AuthenticatorForm { /// {@macro amplify_authenticator.continue_sign_in_with_mfa_selection_form} ContinueSignInWithMfaSelectionForm({super.key}) - : super._( - fields: [ - ConfirmSignInFormField.mfaSelection(), - ], - actions: const [ - ContinueSignInMFASelectionButton(), - BackToSignInButton(), - ], - ); + : super._( + fields: [ConfirmSignInFormField.mfaSelection()], + actions: const [ + ContinueSignInMFASelectionButton(), + BackToSignInButton(), + ], + ); @override AuthenticatorFormState createState() => @@ -629,22 +571,19 @@ class ContinueSignInWithMfaSelectionForm extends AuthenticatorForm { /// {@endtemplate} class ContinueSignInWithMfaSetupSelectionForm extends AuthenticatorForm { /// {@macro amplify_authenticator.continue_sign_in_with__mfa_setup_selection_form} - ContinueSignInWithMfaSetupSelectionForm({ - super.key, - }) : super._( - fields: [ - ConfirmSignInFormField.mfaSetupSelection(), - ], - actions: const [ - ContinueSignInMFASetupSelectionButton(), - BackToSignInButton(), - ], - ); + ContinueSignInWithMfaSetupSelectionForm({super.key}) + : super._( + fields: [ConfirmSignInFormField.mfaSetupSelection()], + actions: const [ + ContinueSignInMFASetupSelectionButton(), + BackToSignInButton(), + ], + ); @override AuthenticatorFormState - createState() => - AuthenticatorFormState(); + createState() => + AuthenticatorFormState(); } /// {@category Prebuilt Widgets} @@ -653,17 +592,11 @@ class ContinueSignInWithMfaSetupSelectionForm extends AuthenticatorForm { /// {@endtemplate} class ContinueSignInWithTotpSetupForm extends AuthenticatorForm { /// {@macro amplify_authenticator.continue_sign_in_with_totp_setup_form} - ContinueSignInWithTotpSetupForm({ - super.key, - }) : super._( - fields: [ - TotpSetupFormField.totpSetup(), - ], - actions: const [ - ConfirmSignInMFAButton(), - BackToSignInButton(), - ], - ); + ContinueSignInWithTotpSetupForm({super.key}) + : super._( + fields: [TotpSetupFormField.totpSetup()], + actions: const [ConfirmSignInMFAButton(), BackToSignInButton()], + ); @override AuthenticatorFormState createState() => @@ -675,17 +608,14 @@ class ContinueSignInWithTotpSetupForm extends AuthenticatorForm { /// A prebuilt form for completing the email mfa setup process. /// {@endtemplate} class ContinueSignInWithEmailMfaSetupForm extends AuthenticatorForm { - ContinueSignInWithEmailMfaSetupForm({ - super.key, - }) : super._( - fields: [ - const EmailSetupFormField.email(), - ], - actions: const [ - ContinueSignInWithEmailMfaSetupButton(), - BackToSignInButton(), - ], - ); + ContinueSignInWithEmailMfaSetupForm({super.key}) + : super._( + fields: [const EmailSetupFormField.email()], + actions: const [ + ContinueSignInWithEmailMfaSetupButton(), + BackToSignInButton(), + ], + ); @override AuthenticatorFormState createState() => @@ -698,17 +628,11 @@ class ContinueSignInWithEmailMfaSetupForm extends AuthenticatorForm { /// {@endtemplate} class ResetPasswordForm extends AuthenticatorForm { /// {@macro amplify_authenticator.send_code_form} - ResetPasswordForm({ - super.key, - }) : super._( - fields: [ - SignInFormField.username(), - ], - actions: const [ - ResetPasswordButton(), - BackToSignInButton(), - ], - ); + ResetPasswordForm({super.key}) + : super._( + fields: [SignInFormField.username()], + actions: const [ResetPasswordButton(), BackToSignInButton()], + ); @override AuthenticatorFormState createState() => @@ -721,19 +645,15 @@ class ResetPasswordForm extends AuthenticatorForm { /// {@endtemplate} class ConfirmResetPasswordForm extends AuthenticatorForm { /// {@macro amplify_authenticator.reset_password_form} - const ConfirmResetPasswordForm({ - super.key, - }) : super._( - fields: const [ - ResetPasswordFormField.verificationCode(), - ResetPasswordFormField.newPassword(), - ResetPasswordFormField.passwordConfirmation(), - ], - actions: const [ - ConfirmResetPasswordButton(), - BackToSignInButton(), - ], - ); + const ConfirmResetPasswordForm({super.key}) + : super._( + fields: const [ + ResetPasswordFormField.verificationCode(), + ResetPasswordFormField.newPassword(), + ResetPasswordFormField.passwordConfirmation(), + ], + actions: const [ConfirmResetPasswordButton(), BackToSignInButton()], + ); @override AuthenticatorFormState createState() => @@ -746,17 +666,11 @@ class ConfirmResetPasswordForm extends AuthenticatorForm { /// {@endtemplate} class VerifyUserForm extends AuthenticatorForm { /// {@macro amplify_authenticator.verify_user_form} - VerifyUserForm({ - super.key, - }) : super._( - fields: [ - VerifyUserFormField.verifyAttribute(), - ], - actions: const [ - VerifyUserButton(), - SkipVerifyUserButton(), - ], - ); + VerifyUserForm({super.key}) + : super._( + fields: [VerifyUserFormField.verifyAttribute()], + actions: const [VerifyUserButton(), SkipVerifyUserButton()], + ); @override AuthenticatorFormState createState() => @@ -769,17 +683,11 @@ class VerifyUserForm extends AuthenticatorForm { /// {@endtemplate} class ConfirmVerifyUserForm extends AuthenticatorForm { /// {@macro amplify_authenticator.confirm_verify_user_form} - ConfirmVerifyUserForm({ - super.key, - }) : super._( - fields: [ - VerifyUserFormField.confirmVerifyAttribute(), - ], - actions: const [ - ConfirmVerifyUserButton(), - SkipVerifyUserButton(), - ], - ); + ConfirmVerifyUserForm({super.key}) + : super._( + fields: [VerifyUserFormField.confirmVerifyAttribute()], + actions: const [ConfirmVerifyUserButton(), SkipVerifyUserButton()], + ); @override AuthenticatorFormState createState() => diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_field.dart index 83f862044e..444715a233 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_field.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library authenticator.form_field; +library; import 'package:amplify_authenticator/amplify_authenticator.dart'; import 'package:amplify_authenticator/src/constants/authenticator_constants.dart'; @@ -49,10 +49,12 @@ part 'form_fields/verify_user_form_field.dart'; /// - [TotpSetupFormField] /// - [VerifyUserFormField] /// {@endtemplate} -abstract class AuthenticatorFormField - extends AuthenticatorComponent< - AuthenticatorFormField> { +abstract class AuthenticatorFormField< + FieldType extends Enum, + FieldValue extends Object +> + extends + AuthenticatorComponent> { /// {@macro amplify_authenticator.authenticator_form_field} const AuthenticatorFormField._({ super.key, @@ -128,9 +130,10 @@ abstract class AuthenticatorFormField> + FieldType extends Enum, + FieldValue extends Object, + T extends AuthenticatorFormField +> extends AuthenticatorComponentState { @nonVirtual Widget get visibilityToggle => diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart index 22d1253f39..6341ac70b1 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_in_form_field.dart @@ -23,40 +23,36 @@ abstract class ConfirmSignInFormField CognitoUserAttributeKey? customAttributeKey, bool? required, super.autofillHints, - }) : _customAttributeKey = customAttributeKey, - super._( - requiredOverride: required, - ); + }) : _customAttributeKey = customAttributeKey, + super._(requiredOverride: required); /// Creates a new password component. static ConfirmSignInFormField newPassword({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyNewPasswordConfirmSignInFormField, - titleKey: InputResolverKey.passwordTitle, - hintTextKey: InputResolverKey.newPasswordHint, - field: ConfirmSignInField.newPassword, - validator: validator, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyNewPasswordConfirmSignInFormField, + titleKey: InputResolverKey.passwordTitle, + hintTextKey: InputResolverKey.newPasswordHint, + field: ConfirmSignInField.newPassword, + validator: validator, + autofillHints: autofillHints, + ); /// Creates a new password component. static ConfirmSignInFormField confirmNewPassword({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyConfirmNewPasswordConfirmSignInFormField, - titleKey: InputResolverKey.passwordConfirmationTitle, - hintTextKey: InputResolverKey.passwordConfirmationHint, - field: ConfirmSignInField.confirmNewPassword, - validator: validator, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyConfirmNewPasswordConfirmSignInFormField, + titleKey: InputResolverKey.passwordConfirmationTitle, + hintTextKey: InputResolverKey.passwordConfirmationHint, + field: ConfirmSignInField.confirmNewPassword, + validator: validator, + autofillHints: autofillHints, + ); /// Creates an auth answer component. static ConfirmSignInFormField customChallenge({ @@ -65,33 +61,27 @@ abstract class ConfirmSignInFormField String? hintText, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyCustomChallengeConfirmSignInFormField, - title: title, - hintText: hintText, - titleKey: - title == null ? InputResolverKey.customAuthChallengeTitle : null, - hintTextKey: - hintText == null ? InputResolverKey.customAuthChallengeHint : null, - field: ConfirmSignInField.customChallenge, - validator: validator, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyCustomChallengeConfirmSignInFormField, + title: title, + hintText: hintText, + titleKey: title == null ? InputResolverKey.customAuthChallengeTitle : null, + hintTextKey: + hintText == null ? InputResolverKey.customAuthChallengeHint : null, + field: ConfirmSignInField.customChallenge, + validator: validator, + autofillHints: autofillHints, + ); /// Creates an mfa preference selection component. - static ConfirmSignInFormField mfaSelection({ - Key? key, - }) => + static ConfirmSignInFormField mfaSelection({Key? key}) => _MfaMethodRadioField( key: key ?? keyMfaMethodRadioConfirmSignInFormField, field: ConfirmSignInField.mfaMethod, ); /// creates an mfa preference setup selection component. - static ConfirmSignInFormField mfaSetupSelection({ - Key? key, - }) => + static ConfirmSignInFormField mfaSetupSelection({Key? key}) => _MfaSetupMethodRadioField( key: key ?? keyMfaSetupMethodRadioConfirmSignInFormField, field: ConfirmSignInField.mfaMethod, @@ -102,15 +92,14 @@ abstract class ConfirmSignInFormField Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyCodeConfirmSignInFormField, - titleKey: InputResolverKey.verificationCodeTitle, - hintTextKey: InputResolverKey.verificationCodeHint, - field: ConfirmSignInField.code, - validator: validator, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyCodeConfirmSignInFormField, + titleKey: InputResolverKey.verificationCodeTitle, + hintTextKey: InputResolverKey.verificationCodeHint, + field: ConfirmSignInField.code, + validator: validator, + autofillHints: autofillHints, + ); /// Creates an address component. static ConfirmSignInFormField address({ @@ -118,16 +107,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyAddressConfirmSignInFormField, - titleKey: InputResolverKey.addressTitle, - hintTextKey: InputResolverKey.addressHint, - field: ConfirmSignInField.address, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyAddressConfirmSignInFormField, + titleKey: InputResolverKey.addressTitle, + hintTextKey: InputResolverKey.addressHint, + field: ConfirmSignInField.address, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a birthdate component. static ConfirmSignInFormField birthdate({ @@ -135,16 +123,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInDateField( - key: key ?? keyBirthdateConfirmSignInFormField, - titleKey: InputResolverKey.birthdateTitle, - hintTextKey: InputResolverKey.birthdateHint, - field: ConfirmSignInField.birthdate, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInDateField( + key: key ?? keyBirthdateConfirmSignInFormField, + titleKey: InputResolverKey.birthdateTitle, + hintTextKey: InputResolverKey.birthdateHint, + field: ConfirmSignInField.birthdate, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates an email component. static ConfirmSignInFormField email({ @@ -152,16 +139,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyEmailConfirmSignInFormField, - titleKey: InputResolverKey.emailTitle, - hintTextKey: InputResolverKey.emailHint, - field: ConfirmSignInField.email, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyEmailConfirmSignInFormField, + titleKey: InputResolverKey.emailTitle, + hintTextKey: InputResolverKey.emailHint, + field: ConfirmSignInField.email, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a familyName component. static ConfirmSignInFormField familyName({ @@ -169,16 +155,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyFamilyNameConfirmSignInFormField, - titleKey: InputResolverKey.familyNameTitle, - hintTextKey: InputResolverKey.familyNameHint, - field: ConfirmSignInField.familyName, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyFamilyNameConfirmSignInFormField, + titleKey: InputResolverKey.familyNameTitle, + hintTextKey: InputResolverKey.familyNameHint, + field: ConfirmSignInField.familyName, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a gender component. static ConfirmSignInFormField gender({ @@ -186,16 +171,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyGenderConfirmSignInFormField, - titleKey: InputResolverKey.genderTitle, - hintTextKey: InputResolverKey.genderHint, - field: ConfirmSignInField.gender, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyGenderConfirmSignInFormField, + titleKey: InputResolverKey.genderTitle, + hintTextKey: InputResolverKey.genderHint, + field: ConfirmSignInField.gender, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a givenName component. static ConfirmSignInFormField givenName({ @@ -203,16 +187,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyGivenNameConfirmSignInFormField, - titleKey: InputResolverKey.givenNameTitle, - hintTextKey: InputResolverKey.givenNameHint, - field: ConfirmSignInField.givenName, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyGivenNameConfirmSignInFormField, + titleKey: InputResolverKey.givenNameTitle, + hintTextKey: InputResolverKey.givenNameHint, + field: ConfirmSignInField.givenName, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a middleName component. static ConfirmSignInFormField middleName({ @@ -220,16 +203,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyMiddleNameConfirmSignInFormField, - titleKey: InputResolverKey.middleNameTitle, - hintTextKey: InputResolverKey.middleNameHint, - field: ConfirmSignInField.middleName, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyMiddleNameConfirmSignInFormField, + titleKey: InputResolverKey.middleNameTitle, + hintTextKey: InputResolverKey.middleNameHint, + field: ConfirmSignInField.middleName, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a name component. static ConfirmSignInFormField name({ @@ -237,16 +219,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyNameConfirmSignInFormField, - titleKey: InputResolverKey.nameTitle, - hintTextKey: InputResolverKey.nameHint, - field: ConfirmSignInField.name, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyNameConfirmSignInFormField, + titleKey: InputResolverKey.nameTitle, + hintTextKey: InputResolverKey.nameHint, + field: ConfirmSignInField.name, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a nickname component. static ConfirmSignInFormField nickname({ @@ -254,16 +235,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyNicknameConfirmSignInFormField, - titleKey: InputResolverKey.nicknameTitle, - hintTextKey: InputResolverKey.nicknameHint, - field: ConfirmSignInField.nickname, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyNicknameConfirmSignInFormField, + titleKey: InputResolverKey.nicknameTitle, + hintTextKey: InputResolverKey.nicknameHint, + field: ConfirmSignInField.nickname, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a phoneNumber component. static ConfirmSignInFormField phoneNumber({ @@ -271,16 +251,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInPhoneField( - key: key ?? keyPhoneNumberConfirmSignInFormField, - titleKey: InputResolverKey.phoneNumberTitle, - hintTextKey: InputResolverKey.phoneNumberHint, - field: ConfirmSignInField.phoneNumber, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInPhoneField( + key: key ?? keyPhoneNumberConfirmSignInFormField, + titleKey: InputResolverKey.phoneNumberTitle, + hintTextKey: InputResolverKey.phoneNumberHint, + field: ConfirmSignInField.phoneNumber, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a preferredUsername component. static ConfirmSignInFormField preferredUsername({ @@ -288,16 +267,15 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key ?? keyPreferredUsernameConfirmSignInFormField, - titleKey: InputResolverKey.preferredUsernameTitle, - hintTextKey: InputResolverKey.preferredUsernameHint, - field: ConfirmSignInField.preferredUsername, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key ?? keyPreferredUsernameConfirmSignInFormField, + titleKey: InputResolverKey.preferredUsernameTitle, + hintTextKey: InputResolverKey.preferredUsernameHint, + field: ConfirmSignInField.preferredUsername, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a custom attribute component. static ConfirmSignInFormField custom({ @@ -308,17 +286,16 @@ abstract class ConfirmSignInFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _ConfirmSignInTextField( - key: key, - title: title, - hintText: hintText, - field: ConfirmSignInField.custom, - validator: validator, - attributeKey: attributeKey, - required: required, - autofillHints: autofillHints, - ); + }) => _ConfirmSignInTextField( + key: key, + title: title, + hintText: hintText, + field: ConfirmSignInField.custom, + validator: validator, + attributeKey: attributeKey, + required: required, + autofillHints: autofillHints, + ); /// Custom Cognito attribute key. final CognitoUserAttributeKey? _customAttributeKey; @@ -377,8 +354,12 @@ abstract class ConfirmSignInFormField } abstract class _ConfirmSignInFormFieldState - extends AuthenticatorFormFieldState> { + extends + AuthenticatorFormFieldState< + ConfirmSignInField, + FieldValue, + ConfirmSignInFormField + > { @override Widget? get surlabel { switch (widget.field) { @@ -454,58 +435,32 @@ abstract class _ConfirmSignInFormFieldState if (widget.autofillHints != null) return widget.autofillHints; switch (widget.field) { case ConfirmSignInField.code: - return const [ - AutofillHints.oneTimeCode, - ]; + return const [AutofillHints.oneTimeCode]; case ConfirmSignInField.newPassword: case ConfirmSignInField.confirmNewPassword: - return const [ - AutofillHints.newPassword, - ]; + return const [AutofillHints.newPassword]; case ConfirmSignInField.address: - return const [ - AutofillHints.fullStreetAddress, - ]; + return const [AutofillHints.fullStreetAddress]; case ConfirmSignInField.email: - return const [ - AutofillHints.email, - ]; + return const [AutofillHints.email]; case ConfirmSignInField.name: - return const [ - AutofillHints.name, - ]; + return const [AutofillHints.name]; case ConfirmSignInField.phoneNumber: - return const [ - AutofillHints.telephoneNumber, - ]; + return const [AutofillHints.telephoneNumber]; case ConfirmSignInField.birthdate: - return const [ - AutofillHints.newUsername, - ]; + return const [AutofillHints.newUsername]; case ConfirmSignInField.familyName: - return const [ - AutofillHints.familyName, - ]; + return const [AutofillHints.familyName]; case ConfirmSignInField.gender: - return const [ - AutofillHints.gender, - ]; + return const [AutofillHints.gender]; case ConfirmSignInField.givenName: - return const [ - AutofillHints.givenName, - ]; + return const [AutofillHints.givenName]; case ConfirmSignInField.middleName: - return const [ - AutofillHints.middleName, - ]; + return const [AutofillHints.middleName]; case ConfirmSignInField.nickname: - return const [ - AutofillHints.nickname, - ]; + return const [AutofillHints.nickname]; case ConfirmSignInField.preferredUsername: - return const [ - AutofillHints.newUsername, - ]; + return const [AutofillHints.newUsername]; case ConfirmSignInField.custom: case ConfirmSignInField.customChallenge: case ConfirmSignInField.mfaMethod: @@ -535,9 +490,7 @@ class _ConfirmSignInPhoneField extends ConfirmSignInFormField { super.validator, super.required, super.autofillHints, - }) : super._( - customAttributeKey: attributeKey, - ); + }) : super._(customAttributeKey: attributeKey); @override _ConfirmSignInPhoneFieldState createState() => @@ -546,8 +499,10 @@ class _ConfirmSignInPhoneField extends ConfirmSignInFormField { class _ConfirmSignInPhoneFieldState extends _ConfirmSignInTextFieldState with - AuthenticatorPhoneFieldMixin> { + AuthenticatorPhoneFieldMixin< + ConfirmSignInField, + ConfirmSignInFormField + > { @override String? get initialValue { var initialValue = state.getAttribute(CognitoUserAttributeKey.phoneNumber); @@ -590,9 +545,7 @@ class _ConfirmSignInTextField extends ConfirmSignInFormField { super.validator, super.required, super.autofillHints, - }) : super._( - customAttributeKey: attributeKey, - ); + }) : super._(customAttributeKey: attributeKey); @override _ConfirmSignInTextFieldState createState() => _ConfirmSignInTextFieldState(); @@ -600,8 +553,10 @@ class _ConfirmSignInTextField extends ConfirmSignInFormField { class _ConfirmSignInTextFieldState extends _ConfirmSignInFormFieldState with - AuthenticatorTextField> { + AuthenticatorTextField< + ConfirmSignInField, + ConfirmSignInFormField + > { @override String? get initialValue { switch (widget.field) { @@ -657,10 +612,8 @@ class _ConfirmSignInTextFieldState extends _ConfirmSignInFormFieldState case ConfirmSignInField.preferredUsername: return (v) => state.preferredUsername = v; case ConfirmSignInField.custom: - return (String value) => state.setCustomAttribute( - widget._customAttributeKey!, - value, - ); + return (String value) => + state.setCustomAttribute(widget._customAttributeKey!, value); default: return super.onChanged; } @@ -694,10 +647,7 @@ class _ConfirmSignInTextFieldState extends _ConfirmSignInFormFieldState ); case ConfirmSignInField.address: return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.addressEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.addressEmpty), isOptional: isOptional, ); case ConfirmSignInField.birthdate: @@ -718,10 +668,7 @@ class _ConfirmSignInTextFieldState extends _ConfirmSignInFormFieldState ); case ConfirmSignInField.gender: return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.genderEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.genderEmpty), isOptional: isOptional, ); case ConfirmSignInField.givenName: @@ -742,10 +689,7 @@ class _ConfirmSignInTextFieldState extends _ConfirmSignInFormFieldState ); case ConfirmSignInField.name: return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.nameEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.nameEmpty), isOptional: isOptional, ); case ConfirmSignInField.nickname: @@ -780,9 +724,7 @@ class _ConfirmSignInDateField extends ConfirmSignInFormField { super.validator, super.required, super.autofillHints, - }) : super._( - customAttributeKey: attributeKey, - ); + }) : super._(customAttributeKey: attributeKey); @override _ConfirmSignInDateFieldState createState() => _ConfirmSignInDateFieldState(); @@ -803,10 +745,7 @@ class _ConfirmSignInDateFieldState extends _ConfirmSignInFormFieldState @override FormFieldValidator get validator { return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.birthdateEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.birthdateEmpty), isOptional: isOptional, ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart index c262ba3888..16f9853b87 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/confirm_sign_up_form_field.dart @@ -28,30 +28,28 @@ abstract class ConfirmSignUpFormField Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _ConfirmSignUpUsernameField( - key: key ?? keyUsernameConfirmSignUpFormField, - titleKey: InputResolverKey.usernameTitle, - hintTextKey: InputResolverKey.usernameHint, - field: ConfirmSignUpField.username, - validator: validator, - autofillHints: autofillHints, - ); + }) => _ConfirmSignUpUsernameField( + key: key ?? keyUsernameConfirmSignUpFormField, + titleKey: InputResolverKey.usernameTitle, + hintTextKey: InputResolverKey.usernameHint, + field: ConfirmSignUpField.username, + validator: validator, + autofillHints: autofillHints, + ); /// Creates a verificationCode component. static ConfirmSignUpFormField verificationCode({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _ConfirmSignUpTextField( - key: key ?? keyCodeConfirmSignUpFormField, - titleKey: InputResolverKey.verificationCodeTitle, - hintTextKey: InputResolverKey.verificationCodeHint, - field: ConfirmSignUpField.code, - validator: validator, - autofillHints: autofillHints, - ); + }) => _ConfirmSignUpTextField( + key: key ?? keyCodeConfirmSignUpFormField, + titleKey: InputResolverKey.verificationCodeTitle, + hintTextKey: InputResolverKey.verificationCodeHint, + field: ConfirmSignUpField.code, + validator: validator, + autofillHints: autofillHints, + ); @override int get displayPriority { @@ -74,8 +72,12 @@ abstract class ConfirmSignUpFormField } abstract class _ConfirmSignUpFormFieldState - extends AuthenticatorFormFieldState> { + extends + AuthenticatorFormFieldState< + ConfirmSignUpField, + FieldValue, + ConfirmSignUpFormField + > { @override TextInputType get keyboardType { switch (widget.field) { @@ -113,13 +115,9 @@ abstract class _ConfirmSignUpFormFieldState if (widget.autofillHints != null) return widget.autofillHints; switch (widget.field) { case ConfirmSignUpField.username: - return const [ - AutofillHints.newUsername, - ]; + return const [AutofillHints.newUsername]; case ConfirmSignUpField.code: - return const [ - AutofillHints.oneTimeCode, - ]; + return const [AutofillHints.oneTimeCode]; } } } @@ -210,8 +208,10 @@ class _ConfirmSignUpUsernameField class _ConfirmSignUpUsernameFieldState extends _ConfirmSignUpFormFieldState with - AuthenticatorUsernameField> { + AuthenticatorUsernameField< + ConfirmSignUpField, + ConfirmSignUpFormField + > { @override Widget? get surlabel => null; } diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/email_setup_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/email_setup_form_field.dart index 9884b69122..e96145063b 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/email_setup_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/email_setup_form_field.dart @@ -29,24 +29,30 @@ class EmailSetupFormField FormFieldValidator? validator, Iterable? autofillHints, }) : this._( - key: key ?? keyEmailSetupFormField, - field: EmailSetupField.email, - titleKey: InputResolverKey.emailTitle, - hintTextKey: InputResolverKey.emailHint, - validator: validator, - autofillHints: autofillHints, - ); + key: key ?? keyEmailSetupFormField, + field: EmailSetupField.email, + titleKey: InputResolverKey.emailTitle, + hintTextKey: InputResolverKey.emailHint, + validator: validator, + autofillHints: autofillHints, + ); @override bool get required => true; @override AuthenticatorFormFieldState - createState() => _EmailSetupFormFieldState(); + createState() => _EmailSetupFormFieldState(); } -class _EmailSetupFormFieldState extends AuthenticatorFormFieldState< - EmailSetupField, String, EmailSetupFormField> with AuthenticatorTextField { +class _EmailSetupFormFieldState + extends + AuthenticatorFormFieldState< + EmailSetupField, + String, + EmailSetupFormField + > + with AuthenticatorTextField { @override TextInputType get keyboardType { return TextInputType.emailAddress; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart index 8d73d1aae2..6445926012 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_selection_form_field.dart @@ -9,10 +9,7 @@ part of '../form_field.dart'; /// {@endtemplate} class _MfaMethodRadioField extends ConfirmSignInFormField { - const _MfaMethodRadioField({ - super.key, - required super.field, - }) : super._(); + const _MfaMethodRadioField({super.key, required super.field}) : super._(); @override _MfaSelectionFieldState createState() => _MfaSelectionFieldState(); @@ -31,22 +28,22 @@ class _MfaSelectionFieldState extends _ConfirmSignInFormFieldState @override List> get selections => [ - if (_allowedMfaTypes.contains(MfaType.totp)) - const InputSelection( - label: InputResolverKey.selectTotp, - value: MfaType.totp, - ), - if (_allowedMfaTypes.contains(MfaType.sms)) - const InputSelection( - label: InputResolverKey.selectSms, - value: MfaType.sms, - ), - if (_allowedMfaTypes.contains(MfaType.email)) - const InputSelection( - label: InputResolverKey.selectEmail, - value: MfaType.email, - ), - ]; + if (_allowedMfaTypes.contains(MfaType.totp)) + const InputSelection( + label: InputResolverKey.selectTotp, + value: MfaType.totp, + ), + if (_allowedMfaTypes.contains(MfaType.sms)) + const InputSelection( + label: InputResolverKey.selectSms, + value: MfaType.sms, + ), + if (_allowedMfaTypes.contains(MfaType.email)) + const InputSelection( + label: InputResolverKey.selectEmail, + value: MfaType.email, + ), + ]; @override MfaType get initialValue => selections.first.value; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_setup_selection_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_setup_selection_form_field.dart index 76b4084337..3d97e290c2 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_setup_selection_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/mfa_setup_selection_form_field.dart @@ -11,10 +11,8 @@ part of '../form_field.dart'; /// A prebuilt form widget for use on the MFA setup selection step. /// {@endtemplate} class _MfaSetupMethodRadioField extends ConfirmSignInFormField { - const _MfaSetupMethodRadioField({ - super.key, - required super.field, - }) : super._(); + const _MfaSetupMethodRadioField({super.key, required super.field}) + : super._(); @override _MfaSetupSelectionFieldState createState() => _MfaSetupSelectionFieldState(); @@ -33,17 +31,17 @@ class _MfaSetupSelectionFieldState extends _ConfirmSignInFormFieldState @override List> get selections => [ - if (_allowedMfaTypes.contains(MfaType.totp)) - const InputSelection( - label: InputResolverKey.selectTotp, - value: MfaType.totp, - ), - if (_allowedMfaTypes.contains(MfaType.email)) - const InputSelection( - label: InputResolverKey.selectEmail, - value: MfaType.email, - ), - ]; + if (_allowedMfaTypes.contains(MfaType.totp)) + const InputSelection( + label: InputResolverKey.selectTotp, + value: MfaType.totp, + ), + if (_allowedMfaTypes.contains(MfaType.email)) + const InputSelection( + label: InputResolverKey.selectEmail, + value: MfaType.email, + ), + ]; @override MfaType get initialValue => selections.first.value; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/phone_number_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/phone_number_field.dart index b3cb32a3bd..44337d566e 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/phone_number_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/phone_number_field.dart @@ -16,9 +16,9 @@ class AuthenticatorPhoneField this.errorMaxLines, super.autofillHints, }) : super._( - titleKey: InputResolverKey.phoneNumberTitle, - hintTextKey: InputResolverKey.phoneNumberHint, - ); + titleKey: InputResolverKey.phoneNumberTitle, + hintTextKey: InputResolverKey.phoneNumberHint, + ); final bool? enabled; final String? initialValue; @@ -28,7 +28,7 @@ class AuthenticatorPhoneField @override AuthenticatorComponentState> - createState() => _AuthenticatorPhoneFieldState(); + createState() => _AuthenticatorPhoneFieldState(); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -50,11 +50,17 @@ class AuthenticatorPhoneField } class _AuthenticatorPhoneFieldState - extends AuthenticatorFormFieldState> + extends + AuthenticatorFormFieldState< + FieldType, + String, + AuthenticatorPhoneField + > with - AuthenticatorPhoneFieldMixin>, + AuthenticatorPhoneFieldMixin< + FieldType, + AuthenticatorPhoneField + >, AuthenticatorTextField> { @override String? get initialValue { @@ -79,9 +85,9 @@ class _AuthenticatorPhoneFieldState @override ValueChanged get onChanged => (phoneNumber) { - phoneNumber = formatPhoneNumber(phoneNumber)!; - return (widget.onChanged ?? super.onChanged)(phoneNumber); - }; + phoneNumber = formatPhoneNumber(phoneNumber)!; + return (widget.onChanged ?? super.onChanged)(phoneNumber); + }; @override FormFieldValidator get validator { @@ -101,10 +107,7 @@ class _AuthenticatorPhoneFieldState @override Iterable? get autofillHints => - widget.autofillHints ?? - const [ - AutofillHints.username, - ]; + widget.autofillHints ?? const [AutofillHints.username]; @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart index ffce3d19c8..64d117c5b9 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/reset_password_form_field.dart @@ -25,49 +25,57 @@ class ResetPasswordFormField Key? key, Iterable? autofillHints, }) : this._( - key: key ?? keyVerificationCodeResetPasswordFormField, - field: ResetPasswordField.verificationCode, - titleKey: InputResolverKey.verificationCodeTitle, - hintTextKey: InputResolverKey.verificationCodeHint, - autofillHints: autofillHints, - ); + key: key ?? keyVerificationCodeResetPasswordFormField, + field: ResetPasswordField.verificationCode, + titleKey: InputResolverKey.verificationCodeTitle, + hintTextKey: InputResolverKey.verificationCodeHint, + autofillHints: autofillHints, + ); const ResetPasswordFormField.newPassword({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, }) : this._( - key: key ?? keyPasswordResetPasswordFormField, - field: ResetPasswordField.newPassword, - titleKey: InputResolverKey.newPasswordTitle, - hintTextKey: InputResolverKey.newPasswordHint, - validator: validator, - autofillHints: autofillHints, - ); + key: key ?? keyPasswordResetPasswordFormField, + field: ResetPasswordField.newPassword, + titleKey: InputResolverKey.newPasswordTitle, + hintTextKey: InputResolverKey.newPasswordHint, + validator: validator, + autofillHints: autofillHints, + ); const ResetPasswordFormField.passwordConfirmation({ Key? key, Iterable? autofillHints, }) : this._( - key: key ?? keyPasswordConfirmationResetPasswordFormField, - field: ResetPasswordField.passwordConfirmation, - titleKey: InputResolverKey.passwordConfirmationTitle, - hintTextKey: InputResolverKey.passwordConfirmationHint, - autofillHints: autofillHints, - ); + key: key ?? keyPasswordConfirmationResetPasswordFormField, + field: ResetPasswordField.passwordConfirmation, + titleKey: InputResolverKey.passwordConfirmationTitle, + hintTextKey: InputResolverKey.passwordConfirmationHint, + autofillHints: autofillHints, + ); @override bool get required => true; @override - AuthenticatorFormFieldState createState() => _ResetPasswordFormFieldState(); -} - -class _ResetPasswordFormFieldState extends AuthenticatorFormFieldState< + AuthenticatorFormFieldState< ResetPasswordField, String, - ResetPasswordFormField> with AuthenticatorTextField { + ResetPasswordFormField + > + createState() => _ResetPasswordFormFieldState(); +} + +class _ResetPasswordFormFieldState + extends + AuthenticatorFormFieldState< + ResetPasswordField, + String, + ResetPasswordFormField + > + with AuthenticatorTextField { @override bool get obscureText { switch (widget.field) { @@ -163,14 +171,10 @@ class _ResetPasswordFormFieldState extends AuthenticatorFormFieldState< if (widget.autofillHints != null) return widget.autofillHints; switch (widget.field) { case ResetPasswordField.verificationCode: - return const [ - AutofillHints.oneTimeCode, - ]; + return const [AutofillHints.oneTimeCode]; case ResetPasswordField.newPassword: case ResetPasswordField.passwordConfirmation: - return const [ - AutofillHints.newPassword, - ]; + return const [AutofillHints.newPassword]; } } } diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart index f7f941dbcf..8df1979c61 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_in_form_field.dart @@ -26,36 +26,32 @@ abstract class SignInFormField super.validator, bool? required, super.autofillHints, - }) : super._( - requiredOverride: required, - ); + }) : super._(requiredOverride: required); /// {@macro amplify_authenticator.username_form_field} static SignInFormField username({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _SignInUsernameField( - key: key ?? keyUsernameSignInFormField, - validator: validator, - autofillHints: autofillHints, - ); + }) => _SignInUsernameField( + key: key ?? keyUsernameSignInFormField, + validator: validator, + autofillHints: autofillHints, + ); /// Creates a password FormField for the sign in step. static SignInFormField password({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _SignInTextField( - key: key ?? keyPasswordSignInFormField, - titleKey: InputResolverKey.passwordTitle, - hintTextKey: InputResolverKey.passwordHint, - field: SignInField.password, - validator: validator, - autofillHints: autofillHints, - ); + }) => _SignInTextField( + key: key ?? keyPasswordSignInFormField, + titleKey: InputResolverKey.passwordTitle, + hintTextKey: InputResolverKey.passwordHint, + field: SignInField.password, + validator: validator, + autofillHints: autofillHints, + ); @override int get displayPriority { @@ -78,8 +74,12 @@ abstract class SignInFormField } abstract class _SignInFormFieldState - extends AuthenticatorFormFieldState> { + extends + AuthenticatorFormFieldState< + SignInField, + FieldValue, + SignInFormField + > { @override bool get obscureText { switch (widget.field) { @@ -115,13 +115,9 @@ abstract class _SignInFormFieldState if (widget.autofillHints != null) return widget.autofillHints; switch (widget.field) { case SignInField.username: - return const [ - AutofillHints.username, - ]; + return const [AutofillHints.username]; case SignInField.password: - return const [ - AutofillHints.password, - ]; + return const [AutofillHints.password]; } } } @@ -186,16 +182,13 @@ class _SignInTextFieldState extends _SignInFormFieldState } class _SignInUsernameField extends SignInFormField { - const _SignInUsernameField({ - Key? key, - super.validator, - super.autofillHints, - }) : super._( - key: key ?? keyUsernameSignInFormField, - titleKey: InputResolverKey.usernameTitle, - hintTextKey: InputResolverKey.usernameHint, - field: SignInField.username, - ); + const _SignInUsernameField({Key? key, super.validator, super.autofillHints}) + : super._( + key: key ?? keyUsernameSignInFormField, + titleKey: InputResolverKey.usernameTitle, + hintTextKey: InputResolverKey.usernameHint, + field: SignInField.username, + ); @override _SignInUsernameFieldState createState() => _SignInUsernameFieldState(); diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart index d4e0687823..f819ce5f45 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/sign_up_form_field.dart @@ -23,10 +23,8 @@ abstract class SignUpFormField CognitoUserAttributeKey? customAttributeKey, bool? required, super.autofillHints, - }) : _customAttributeKey = customAttributeKey, - super._( - requiredOverride: required, - ); + }) : _customAttributeKey = customAttributeKey, + super._(requiredOverride: required); /// {@template amplify_authenticator.username_form_field} /// Creates a username component based on your app's configuration. @@ -42,42 +40,39 @@ abstract class SignUpFormField Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _SignUpUsernameField( - key: key ?? keyUsernameSignUpFormField, - validator: validator, - autofillHints: autofillHints, - ); + }) => _SignUpUsernameField( + key: key ?? keyUsernameSignUpFormField, + validator: validator, + autofillHints: autofillHints, + ); /// Creates a password component. static SignUpFormField password({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyPasswordSignUpFormField, - titleKey: InputResolverKey.passwordTitle, - hintTextKey: InputResolverKey.passwordHint, - field: SignUpField.password, - validator: validator, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyPasswordSignUpFormField, + titleKey: InputResolverKey.passwordTitle, + hintTextKey: InputResolverKey.passwordHint, + field: SignUpField.password, + validator: validator, + autofillHints: autofillHints, + ); /// Creates a passwordConfirmation component. static SignUpFormField passwordConfirmation({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyPasswordConfirmationSignUpFormField, - titleKey: InputResolverKey.passwordConfirmationTitle, - hintTextKey: InputResolverKey.passwordConfirmationHint, - field: SignUpField.passwordConfirmation, - validator: validator, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyPasswordConfirmationSignUpFormField, + titleKey: InputResolverKey.passwordConfirmationTitle, + hintTextKey: InputResolverKey.passwordConfirmationHint, + field: SignUpField.passwordConfirmation, + validator: validator, + autofillHints: autofillHints, + ); /// Creates an address component. static SignUpFormField address({ @@ -85,16 +80,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyAddressSignUpFormField, - titleKey: InputResolverKey.addressTitle, - hintTextKey: InputResolverKey.addressHint, - field: SignUpField.address, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyAddressSignUpFormField, + titleKey: InputResolverKey.addressTitle, + hintTextKey: InputResolverKey.addressHint, + field: SignUpField.address, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a birthdate component. static SignUpFormField birthdate({ @@ -102,16 +96,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpDateField( - key: key ?? keyBirthdateSignUpFormField, - titleKey: InputResolverKey.birthdateTitle, - hintTextKey: InputResolverKey.birthdateHint, - field: SignUpField.birthdate, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpDateField( + key: key ?? keyBirthdateSignUpFormField, + titleKey: InputResolverKey.birthdateTitle, + hintTextKey: InputResolverKey.birthdateHint, + field: SignUpField.birthdate, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates an email component. static SignUpFormField email({ @@ -119,16 +112,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyEmailSignUpFormField, - titleKey: InputResolverKey.emailTitle, - hintTextKey: InputResolverKey.emailHint, - field: SignUpField.email, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyEmailSignUpFormField, + titleKey: InputResolverKey.emailTitle, + hintTextKey: InputResolverKey.emailHint, + field: SignUpField.email, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a familyName component. static SignUpFormField familyName({ @@ -136,16 +128,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyFamilyNameSignUpFormField, - titleKey: InputResolverKey.familyNameTitle, - hintTextKey: InputResolverKey.familyNameHint, - field: SignUpField.familyName, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyFamilyNameSignUpFormField, + titleKey: InputResolverKey.familyNameTitle, + hintTextKey: InputResolverKey.familyNameHint, + field: SignUpField.familyName, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a gender component. static SignUpFormField gender({ @@ -153,16 +144,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyGenderSignUpFormField, - titleKey: InputResolverKey.genderTitle, - hintTextKey: InputResolverKey.genderHint, - field: SignUpField.gender, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyGenderSignUpFormField, + titleKey: InputResolverKey.genderTitle, + hintTextKey: InputResolverKey.genderHint, + field: SignUpField.gender, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a givenName component. static SignUpFormField givenName({ @@ -170,16 +160,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyGivenNameSignUpFormField, - titleKey: InputResolverKey.givenNameTitle, - hintTextKey: InputResolverKey.givenNameHint, - field: SignUpField.givenName, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyGivenNameSignUpFormField, + titleKey: InputResolverKey.givenNameTitle, + hintTextKey: InputResolverKey.givenNameHint, + field: SignUpField.givenName, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a middleName component. static SignUpFormField middleName({ @@ -187,16 +176,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyMiddleNameSignUpFormField, - titleKey: InputResolverKey.middleNameTitle, - hintTextKey: InputResolverKey.middleNameHint, - field: SignUpField.middleName, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyMiddleNameSignUpFormField, + titleKey: InputResolverKey.middleNameTitle, + hintTextKey: InputResolverKey.middleNameHint, + field: SignUpField.middleName, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a name component. static SignUpFormField name({ @@ -204,16 +192,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyNameSignUpFormField, - titleKey: InputResolverKey.nameTitle, - hintTextKey: InputResolverKey.nameHint, - field: SignUpField.name, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyNameSignUpFormField, + titleKey: InputResolverKey.nameTitle, + hintTextKey: InputResolverKey.nameHint, + field: SignUpField.name, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a nickname component. static SignUpFormField nickname({ @@ -221,16 +208,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyNicknameSignUpFormField, - titleKey: InputResolverKey.nicknameTitle, - hintTextKey: InputResolverKey.nicknameHint, - field: SignUpField.nickname, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyNicknameSignUpFormField, + titleKey: InputResolverKey.nicknameTitle, + hintTextKey: InputResolverKey.nicknameHint, + field: SignUpField.nickname, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a phoneNumber component. static SignUpFormField phoneNumber({ @@ -238,16 +224,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpPhoneField( - key: key ?? keyPhoneNumberSignUpFormField, - titleKey: InputResolverKey.phoneNumberTitle, - hintTextKey: InputResolverKey.phoneNumberHint, - field: SignUpField.phoneNumber, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpPhoneField( + key: key ?? keyPhoneNumberSignUpFormField, + titleKey: InputResolverKey.phoneNumberTitle, + hintTextKey: InputResolverKey.phoneNumberHint, + field: SignUpField.phoneNumber, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a preferredUsername component. static SignUpFormField preferredUsername({ @@ -255,16 +240,15 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key ?? keyPreferredUsernameSignUpFormField, - titleKey: InputResolverKey.preferredUsernameTitle, - hintTextKey: InputResolverKey.preferredUsernameHint, - field: SignUpField.preferredUsername, - validator: validator, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key ?? keyPreferredUsernameSignUpFormField, + titleKey: InputResolverKey.preferredUsernameTitle, + hintTextKey: InputResolverKey.preferredUsernameHint, + field: SignUpField.preferredUsername, + validator: validator, + required: required, + autofillHints: autofillHints, + ); /// Creates a custom attribute component. static SignUpFormField custom({ @@ -275,17 +259,16 @@ abstract class SignUpFormField FormFieldValidator? validator, bool? required, Iterable? autofillHints, - }) => - _SignUpTextField( - key: key, - title: title, - hintText: hintText, - field: SignUpField.custom, - validator: validator, - attributeKey: attributeKey, - required: required, - autofillHints: autofillHints, - ); + }) => _SignUpTextField( + key: key, + title: title, + hintText: hintText, + field: SignUpField.custom, + validator: validator, + attributeKey: attributeKey, + required: required, + autofillHints: autofillHints, + ); /// Custom Cognito attribute key. final CognitoUserAttributeKey? _customAttributeKey; @@ -365,8 +348,12 @@ abstract class SignUpFormField } abstract class _SignUpFormFieldState - extends AuthenticatorFormFieldState> { + extends + AuthenticatorFormFieldState< + SignUpField, + FieldValue, + SignUpFormField + > { @override bool get obscureText { switch (widget.field) { @@ -424,57 +411,31 @@ abstract class _SignUpFormFieldState switch (widget.field) { case SignUpField.password: case SignUpField.passwordConfirmation: - return const [ - AutofillHints.newPassword, - ]; + return const [AutofillHints.newPassword]; case SignUpField.address: - return const [ - AutofillHints.fullStreetAddress, - ]; + return const [AutofillHints.fullStreetAddress]; case SignUpField.email: - return const [ - AutofillHints.email, - ]; + return const [AutofillHints.email]; case SignUpField.name: - return const [ - AutofillHints.name, - ]; + return const [AutofillHints.name]; case SignUpField.phoneNumber: - return const [ - AutofillHints.telephoneNumber, - ]; + return const [AutofillHints.telephoneNumber]; case SignUpField.username: - return const [ - AutofillHints.newUsername, - ]; + return const [AutofillHints.newUsername]; case SignUpField.birthdate: - return const [ - AutofillHints.birthday, - ]; + return const [AutofillHints.birthday]; case SignUpField.familyName: - return const [ - AutofillHints.familyName, - ]; + return const [AutofillHints.familyName]; case SignUpField.gender: - return const [ - AutofillHints.gender, - ]; + return const [AutofillHints.gender]; case SignUpField.givenName: - return const [ - AutofillHints.givenName, - ]; + return const [AutofillHints.givenName]; case SignUpField.middleName: - return const [ - AutofillHints.middleName, - ]; + return const [AutofillHints.middleName]; case SignUpField.nickname: - return const [ - AutofillHints.nickname, - ]; + return const [AutofillHints.nickname]; case SignUpField.preferredUsername: - return const [ - AutofillHints.newUsername, - ]; + return const [AutofillHints.newUsername]; case SignUpField.custom: return null; } @@ -493,9 +454,7 @@ class _SignUpTextField extends SignUpFormField { super.validator, super.required, super.autofillHints, - }) : super._( - customAttributeKey: attributeKey, - ); + }) : super._(customAttributeKey: attributeKey); @override _SignUpTextFieldState createState() => _SignUpTextFieldState(); @@ -565,10 +524,8 @@ class _SignUpTextFieldState extends _SignUpFormFieldState case SignUpField.preferredUsername: return (v) => state.preferredUsername = v; case SignUpField.custom: - return (String value) => state.setCustomAttribute( - widget._customAttributeKey!, - value, - ); + return (String value) => + state.setCustomAttribute(widget._customAttributeKey!, value); default: return super.onChanged; } @@ -604,10 +561,7 @@ class _SignUpTextFieldState extends _SignUpFormFieldState ); case SignUpField.address: return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.addressEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.addressEmpty), isOptional: isOptional, ); case SignUpField.birthdate: @@ -628,10 +582,7 @@ class _SignUpTextFieldState extends _SignUpFormFieldState ); case SignUpField.gender: return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.genderEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.genderEmpty), isOptional: isOptional, ); case SignUpField.givenName: @@ -652,10 +603,7 @@ class _SignUpTextFieldState extends _SignUpFormFieldState ); case SignUpField.name: return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.nameEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.nameEmpty), isOptional: isOptional, ); case SignUpField.nickname: @@ -681,15 +629,12 @@ class _SignUpTextFieldState extends _SignUpFormFieldState } class _SignUpUsernameField extends SignUpFormField { - const _SignUpUsernameField({ - super.key, - super.validator, - super.autofillHints, - }) : super._( - field: SignUpField.username, - titleKey: InputResolverKey.usernameTitle, - hintTextKey: InputResolverKey.usernameHint, - ); + const _SignUpUsernameField({super.key, super.validator, super.autofillHints}) + : super._( + field: SignUpField.username, + titleKey: InputResolverKey.usernameTitle, + hintTextKey: InputResolverKey.usernameHint, + ); @override _SignUpUsernameFieldState createState() => _SignUpUsernameFieldState(); @@ -708,9 +653,7 @@ class _SignUpPhoneField extends SignUpFormField { super.validator, super.required, super.autofillHints, - }) : super._( - customAttributeKey: attributeKey, - ); + }) : super._(customAttributeKey: attributeKey); @override _SignUpPhoneFieldState createState() => _SignUpPhoneFieldState(); @@ -758,9 +701,7 @@ class _SignUpDateField extends SignUpFormField { super.validator, super.required, super.autofillHints, - }) : super._( - customAttributeKey: attributeKey, - ); + }) : super._(customAttributeKey: attributeKey); @override _SignUpDateFieldState createState() => _SignUpDateFieldState(); @@ -784,10 +725,7 @@ class _SignUpDateFieldState extends _SignUpFormFieldState return widget.validatorOverride!; } return simpleValidator( - stringResolver.inputs.resolve( - context, - InputResolverKey.birthdateEmpty, - ), + stringResolver.inputs.resolve(context, InputResolverKey.birthdateEmpty), isOptional: isOptional, ); } diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart index a5398cf2cb..18a17fd11e 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/totp_setup_form_field.dart @@ -16,48 +16,39 @@ abstract class TotpSetupFormField /// {@macro amplify_authenticator.instruction_form_field} /// /// Either [titleKey] or [title] is required. - const TotpSetupFormField._({ - super.key, - required super.field, - }) : super._(); + const TotpSetupFormField._({super.key, required super.field}) : super._(); /// Creates a TOTP QR code component. - static TotpSetupFormField totpQrCode({ - Key? key, - }) => + static TotpSetupFormField totpQrCode({Key? key}) => _InstructionTotpQrCodeField( key: key ?? keyQrCodeTotpSetupFormField, field: TotpSetupField.totpQrCode, ); /// Creates a TOTP Copy Key component. - static TotpSetupFormField totpCopyKey({ - Key? key, - }) => + static TotpSetupFormField totpCopyKey({Key? key}) => _InstructionTotpCopyKeyField( key: key ?? keyCopyKeyTotpSetupFormField, field: TotpSetupField.totpCopyKey, ); /// Creates a TOTP setup component. - static TotpSetupFormField totpSetup({ - Key? key, - }) => - _TotpSetupField( - key: key ?? keyTotpSetupFormField, - field: TotpSetupField.totpSetup, - ); + static TotpSetupFormField totpSetup({Key? key}) => _TotpSetupField( + key: key ?? keyTotpSetupFormField, + field: TotpSetupField.totpSetup, + ); } abstract class _InstructionFormFieldState - extends AuthenticatorFormFieldState> {} + extends + AuthenticatorFormFieldState< + TotpSetupField, + FieldValue, + TotpSetupFormField + > {} class _TotpSetupField extends TotpSetupFormField { - const _TotpSetupField({ - super.key, - required super.field, - }) : super._(); + const _TotpSetupField({super.key, required super.field}) : super._(); @override _InstructionTotpSetupFieldState createState() => @@ -69,10 +60,7 @@ class _InstructionTotpSetupFieldState static const _spacingBox = SizedBox(height: 10); String resolveInstruction(InstructionsKeyType type) => - stringResolver.instruction.resolve( - context, - type, - ); + stringResolver.instruction.resolve(context, type); @override Widget buildFormField(BuildContext context) { @@ -83,26 +71,20 @@ class _InstructionTotpSetupFieldState resolveInstruction(InstructionsKeyType.totpStep1Title), style: Theme.of(context).textTheme.titleSmall, ), - Text( - resolveInstruction(InstructionsKeyType.totpStep1Body), - ), + Text(resolveInstruction(InstructionsKeyType.totpStep1Body)), _spacingBox, Text( resolveInstruction(InstructionsKeyType.totpStep2Title), style: Theme.of(context).textTheme.titleSmall, ), - Text( - resolveInstruction(InstructionsKeyType.totpStep2Body), - ), + Text(resolveInstruction(InstructionsKeyType.totpStep2Body)), TotpSetupFormField.totpQrCode(), TotpSetupFormField.totpCopyKey(), Text( resolveInstruction(InstructionsKeyType.totpStep3Title), style: Theme.of(context).textTheme.titleSmall, ), - Text( - resolveInstruction(InstructionsKeyType.totpStep3Body), - ), + Text(resolveInstruction(InstructionsKeyType.totpStep3Body)), ConfirmSignInFormField.verificationCode(), ], ); @@ -110,10 +92,8 @@ class _InstructionTotpSetupFieldState } class _InstructionTotpCopyKeyField extends TotpSetupFormField { - const _InstructionTotpCopyKeyField({ - super.key, - required super.field, - }) : super._(); + const _InstructionTotpCopyKeyField({super.key, required super.field}) + : super._(); @override _InstructionTotpCopyKeyFieldState createState() => @@ -136,9 +116,7 @@ class _InstructionTotpCopyKeyFieldState SnackBar( backgroundColor: Theme.of(context).colorScheme.primary, content: Text( - stringResolver.messages.copySucceeded( - context, - ), + stringResolver.messages.copySucceeded(context), textAlign: TextAlign.center, ), ), @@ -149,9 +127,7 @@ class _InstructionTotpCopyKeyFieldState SnackBar( backgroundColor: Theme.of(context).colorScheme.onError, content: Text( - stringResolver.messages.copyFailed( - context, - ), + stringResolver.messages.copyFailed(context), textAlign: TextAlign.center, ), ), @@ -165,10 +141,7 @@ class _InstructionTotpCopyKeyFieldState child: OutlinedButton( onPressed: _copyKey, child: Text( - stringResolver.buttons.resolve( - context, - ButtonResolverKey.copyKey, - ), + stringResolver.buttons.resolve(context, ButtonResolverKey.copyKey), ), ), ); @@ -176,10 +149,8 @@ class _InstructionTotpCopyKeyFieldState } class _InstructionTotpQrCodeField extends TotpSetupFormField { - const _InstructionTotpQrCodeField({ - super.key, - required super.field, - }) : super._(); + const _InstructionTotpQrCodeField({super.key, required super.field}) + : super._(); @override _InstructionTotpQrCodeFieldState createState() => diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart index 124a421813..b09ee26600 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/form_fields/verify_user_form_field.dart @@ -24,35 +24,37 @@ abstract class VerifyUserFormField static VerifyUserFormField verifyAttribute({ Key? key, FormFieldValidator? validator, - }) => - _VerifyUserRadioField( - key: keyVerifyUserRadioButtonFormField, - field: VerifyAttributeField.verify, - validator: validator, - ); + }) => _VerifyUserRadioField( + key: keyVerifyUserRadioButtonFormField, + field: VerifyAttributeField.verify, + validator: validator, + ); /// Creates a password component. static VerifyUserFormField confirmVerifyAttribute({ Key? key, FormFieldValidator? validator, Iterable? autofillHints, - }) => - _VerifyUserTextField( - key: keyVerifyUserConfirmationCode, - titleKey: InputResolverKey.verificationCodeTitle, - hintTextKey: InputResolverKey.verificationCodeHint, - field: VerifyAttributeField.confirmVerify, - validator: validator, - autofillHints: autofillHints, - ); + }) => _VerifyUserTextField( + key: keyVerifyUserConfirmationCode, + titleKey: InputResolverKey.verificationCodeTitle, + hintTextKey: InputResolverKey.verificationCodeHint, + field: VerifyAttributeField.confirmVerify, + validator: validator, + autofillHints: autofillHints, + ); @override bool get required => true; } abstract class _VerifyUserFormFieldState - extends AuthenticatorFormFieldState> { + extends + AuthenticatorFormFieldState< + VerifyAttributeField, + FieldValue, + VerifyUserFormField + > { @override int get errorMaxLines { return 1; @@ -97,10 +99,7 @@ class _VerifyUserTextFieldState extends _VerifyUserFormFieldState @override Iterable? get autofillHints => - widget.autofillHints ?? - [ - AutofillHints.oneTimeCode, - ]; + widget.autofillHints ?? [AutofillHints.oneTimeCode]; @override FormFieldValidator get validator { @@ -131,7 +130,7 @@ class _VerifyAttributeFieldState with AuthenticatorRadioField { @override late final List> - selections; + selections; @override late final CognitoUserAttributeKey initialValue; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/layout.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/layout.dart index c45d255fe6..2bc94a8470 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/layout.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/layout.dart @@ -9,10 +9,7 @@ import 'package:flutter/material.dart'; /// {@endtemplate} class AdaptiveFlex extends StatelessWidget { /// {@macro amplify_authenticator.adaptive_flex}} - const AdaptiveFlex({ - super.key, - required this.children, - }); + const AdaptiveFlex({super.key, required this.children}); final List children; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/progress.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/progress.dart index cb905df295..7641a61d07 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/progress.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/progress.dart @@ -5,10 +5,7 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; class AmplifyProgressIndicator extends StatelessWidget { - const AmplifyProgressIndicator({ - super.key, - this.primary = true, - }); + const AmplifyProgressIndicator({super.key, this.primary = true}); final bool primary; diff --git a/packages/authenticator/amplify_authenticator/lib/src/widgets/social/social_button.dart b/packages/authenticator/amplify_authenticator/lib/src/widgets/social/social_button.dart index 2c75b65a17..d53befd5b2 100644 --- a/packages/authenticator/amplify_authenticator/lib/src/widgets/social/social_button.dart +++ b/packages/authenticator/amplify_authenticator/lib/src/widgets/social/social_button.dart @@ -14,10 +14,7 @@ import 'package:flutter/foundation.dart' hide Category; import 'package:flutter/material.dart'; class SocialSignInButtons extends StatelessAuthenticatorComponent { - const SocialSignInButtons({ - super.key, - required this.providers, - }); + const SocialSignInButtons({super.key, required this.providers}); final List providers; @@ -38,18 +35,14 @@ class SocialSignInButtons extends StatelessAuthenticatorComponent { context, ButtonResolverKey.signInWith(provider), ); - final style = Theme.of(context) - .outlinedButtonTheme - .style - ?.textStyle - ?.resolve({}) ?? + final style = + Theme.of( + context, + ).outlinedButtonTheme.style?.textStyle?.resolve({}) ?? Theme.of(context).textTheme.labelLarge; final tp = TextPainter( textScaler: MediaQuery.textScalerOf(context), - text: TextSpan( - text: text, - style: style, - ), + text: TextSpan(text: text, style: style), maxLines: 1, textDirection: TextDirection.ltr, )..layout(maxWidth: constraints.maxWidth); @@ -86,19 +79,19 @@ class SocialSignInButton extends AuthenticatorButton { /// A social sign-in button for Facebook. const SocialSignInButton.facebook({Key? key}) - : this(key: key, provider: AuthProvider.facebook); + : this(key: key, provider: AuthProvider.facebook); /// A social sign-in button for Google. const SocialSignInButton.google({Key? key}) - : this(key: key, provider: AuthProvider.google); + : this(key: key, provider: AuthProvider.google); /// A social sign-in button for Amazon. const SocialSignInButton.amazon({Key? key}) - : this(key: key, provider: AuthProvider.amazon); + : this(key: key, provider: AuthProvider.amazon); /// A social sign-in button for Apple. const SocialSignInButton.apple({Key? key}) - : this(key: key, provider: AuthProvider.apple); + : this(key: key, provider: AuthProvider.apple); /// The Cognito social sign-in provider. final AuthProvider provider; @@ -138,9 +131,9 @@ class _SocialSignInButtonState /// The size of the (square) logo, in pixels. static const double logoSize = 40; - static final AmplifyLogger logger = AmplifyLogger.category(Category.auth) - .createChild('Authenticator') - .createChild('SocialSignInButton'); + static final AmplifyLogger logger = AmplifyLogger.category( + Category.auth, + ).createChild('Authenticator').createChild('SocialSignInButton'); Widget get icon { final isDark = Theme.of(context).brightness == Brightness.dark; @@ -164,10 +157,7 @@ class _SocialSignInButtonState return Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - Icon( - SocialIcons.apple, - color: isDark ? Colors.white : Colors.black, - ), + Icon(SocialIcons.apple, color: isDark ? Colors.white : Colors.black), const SizedBox(height: 4), ], ); @@ -182,10 +172,7 @@ class _SocialSignInButtonState // Split the space remaining after laying out the logo, its text, // and the spacing. final textWidth = widget.maxWidth; - return max( - 0, - (constraints.maxWidth - logoSize - spacing - textWidth) / 2, - ); + return max(0, (constraints.maxWidth - logoSize - spacing - textWidth) / 2); } // TODO(Jordan-Nelson): use `WidgetStateProperty` when min flutter sdk is 3.22.0 @@ -210,21 +197,21 @@ class _SocialSignInButtonState constraints: const BoxConstraints(minHeight: 40), child: OutlinedButton( focusNode: focusNode, - style: ButtonStyle( - foregroundColor: getButtonForegroundColor(context), - ), - onPressed: state.isBusy - ? null - : () => state.signInWithProvider(widget.provider), + style: ButtonStyle(foregroundColor: getButtonForegroundColor(context)), + onPressed: + state.isBusy + ? null + : () => state.signInWithProvider(widget.provider), child: LayoutBuilder( builder: (context, constraints) { final padding = calculatePadding(constraints); return Padding( padding: EdgeInsets.symmetric(horizontal: padding), child: Row( - mainAxisAlignment: padding == 0 - ? MainAxisAlignment.center - : MainAxisAlignment.start, + mainAxisAlignment: + padding == 0 + ? MainAxisAlignment.center + : MainAxisAlignment.start, children: [ SizedBox.square( dimension: logoSize, @@ -261,7 +248,7 @@ extension on AuthProvider { /// Used to provide additional padding for the logos which don't have /// padding built into their vector image. EdgeInsets get logoInsets => switch (this) { - AuthProvider.google => const EdgeInsets.all(8), - _ => EdgeInsets.zero, - }; + AuthProvider.google => const EdgeInsets.all(8), + _ => EdgeInsets.zero, + }; } diff --git a/packages/authenticator/amplify_authenticator/pubspec.yaml b/packages/authenticator/amplify_authenticator/pubspec.yaml index e408c251a5..3fdae44e0e 100644 --- a/packages/authenticator/amplify_authenticator/pubspec.yaml +++ b/packages/authenticator/amplify_authenticator/pubspec.yaml @@ -1,31 +1,31 @@ name: amplify_authenticator description: A prebuilt Sign In and Sign Up experience for the Amplify Auth category -version: 2.3.3 +version: 2.3.4 homepage: https://ui.docs.amplify.aws/flutter/connected-components/authenticator repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/authenticator/amplify_authenticator issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: - amplify_auth_cognito: ">=2.6.1 <2.7.0" - amplify_core: ">=2.6.1 <2.7.0" - amplify_flutter: ">=2.6.1 <2.7.0" + amplify_auth_cognito: ">=2.6.2 <2.7.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_flutter: ">=2.6.2 <2.7.0" async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" + aws_common: ">=0.7.7 <0.8.0" collection: ^1.15.0 flutter: sdk: flutter flutter_localizations: sdk: flutter intl: ">=0.18.0 <1.0.0" - meta: ^1.7.0 + meta: ^1.16.0 # TODO(equartey): Remove this once we have our own method of getting the app name package_info_plus: ^8.0.0 qr_flutter: 4.1.0 - smithy: ">=0.7.4 <0.8.0" + smithy: ">=0.7.5 <0.8.0" stream_transform: ^2.0.0 url_launcher: ^6.1.11 @@ -34,7 +34,7 @@ dev_dependencies: path: ../amplify_authenticator_test amplify_integration_test: path: ../../test/amplify_integration_test - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 build_version: ^2.1.1 flutter_test: diff --git a/packages/authenticator/amplify_authenticator/test/authenticated_view_test.dart b/packages/authenticator/amplify_authenticator/test/authenticated_view_test.dart index b2e84efb4e..690d1829e2 100644 --- a/packages/authenticator/amplify_authenticator/test/authenticated_view_test.dart +++ b/packages/authenticator/amplify_authenticator/test/authenticated_view_test.dart @@ -64,61 +64,57 @@ void main() { } } - testWidgets( - 'should be navigable by keyboard events', - (tester) async { - final testWidget = MaterialApp( - home: Scaffold( - body: MockAuthenticatorApp( - child: InheritedAuthenticatorState( - state: mockState, - child: const AuthenticatedView( - child: Center(child: Text('You are signed in.')), - ), + testWidgets('should be navigable by keyboard events', (tester) async { + final testWidget = MaterialApp( + home: Scaffold( + body: MockAuthenticatorApp( + child: InheritedAuthenticatorState( + state: mockState, + child: const AuthenticatedView( + child: Center(child: Text('You are signed in.')), ), ), ), - ); - await tester.pumpWidget(testWidget); - await tester.pumpAndSettle(); - - // Set initial focus to window. - await tester.tapAt(Offset.zero); - - verifyNever(mockState.signIn); - await signInWithKeyboard(tester); - await tester.pumpAndSettle(); - verify(mockState.signIn).called(1); - }, - ); + ), + ); + await tester.pumpWidget(testWidget); + await tester.pumpAndSettle(); + + // Set initial focus to window. + await tester.tapAt(Offset.zero); + + verifyNever(mockState.signIn); + await signInWithKeyboard(tester); + await tester.pumpAndSettle(); + verify(mockState.signIn).called(1); + }); - testWidgets( - 'form should submit when enter is pressed from a text field', - (tester) async { - final testWidget = MaterialApp( - home: Scaffold( - body: MockAuthenticatorApp( - child: InheritedAuthenticatorState( - state: mockState, - child: const AuthenticatedView( - child: Center(child: Text('You are signed in.')), - ), + testWidgets('form should submit when enter is pressed from a text field', ( + tester, + ) async { + final testWidget = MaterialApp( + home: Scaffold( + body: MockAuthenticatorApp( + child: InheritedAuthenticatorState( + state: mockState, + child: const AuthenticatedView( + child: Center(child: Text('You are signed in.')), ), ), ), - ); - await tester.pumpWidget(testWidget); - await tester.pumpAndSettle(); - - // Set initial focus to window. - await tester.tapAt(Offset.zero); - - verifyNever(mockState.signIn); - await signInWithKeyboard(tester, submitViaTextField: true); - await tester.pumpAndSettle(); - verify(mockState.signIn).called(1); - }, - ); + ), + ); + await tester.pumpWidget(testWidget); + await tester.pumpAndSettle(); + + // Set initial focus to window. + await tester.tapAt(Offset.zero); + + verifyNever(mockState.signIn); + await signInWithKeyboard(tester, submitViaTextField: true); + await tester.pumpAndSettle(); + verify(mockState.signIn).called(1); + }); testWidgets( 'form should only submit once when enter is pressed multiple times from a text field', diff --git a/packages/authenticator/amplify_authenticator/test/sign_in_form_test.dart b/packages/authenticator/amplify_authenticator/test/sign_in_form_test.dart index 6a9d11b6ad..cf57da8787 100644 --- a/packages/authenticator/amplify_authenticator/test/sign_in_form_test.dart +++ b/packages/authenticator/amplify_authenticator/test/sign_in_form_test.dart @@ -69,32 +69,31 @@ void main() { }); group('form validation', () { - testWidgets( - 'displays message when submitted without any data', - (tester) async { - await tester.pumpWidget(const MockAuthenticatorApp()); - await tester.pumpAndSettle(); + testWidgets('displays message when submitted without any data', ( + tester, + ) async { + await tester.pumpWidget(const MockAuthenticatorApp()); + await tester.pumpAndSettle(); - final signInPage = SignInPage(tester: tester); - // ignore: cascade_invocations - signInPage.expectStep(AuthenticatorStep.signIn); - await signInPage.submitSignIn(); + final signInPage = SignInPage(tester: tester); + // ignore: cascade_invocations + signInPage.expectStep(AuthenticatorStep.signIn); + await signInPage.submitSignIn(); - final usernameFieldError = find.descendant( - of: signInPage.usernameField, - matching: find.text('Email field must not be blank.'), - ); + final usernameFieldError = find.descendant( + of: signInPage.usernameField, + matching: find.text('Email field must not be blank.'), + ); - expect(usernameFieldError, findsOneWidget); + expect(usernameFieldError, findsOneWidget); - final passwordFieldError = find.descendant( - of: signInPage.passwordField, - matching: find.text('Password field must not be blank.'), - ); + final passwordFieldError = find.descendant( + of: signInPage.passwordField, + matching: find.text('Password field must not be blank.'), + ); - expect(passwordFieldError, findsOneWidget); - }, - ); + expect(passwordFieldError, findsOneWidget); + }); testWidgets( 'displays message when submitted with invalid email address', @@ -118,51 +117,45 @@ void main() { }, ); - testWidgets( - 'trims the username field before validation', - (tester) async { - await tester.pumpWidget(const MockAuthenticatorApp()); - await tester.pumpAndSettle(); + testWidgets('trims the username field before validation', (tester) async { + await tester.pumpWidget(const MockAuthenticatorApp()); + await tester.pumpAndSettle(); - final signInPage = SignInPage(tester: tester); + final signInPage = SignInPage(tester: tester); - await signInPage.enterUsername('user@example.com '); - await signInPage.enterPassword('Password123'); + await signInPage.enterUsername('user@example.com '); + await signInPage.enterPassword('Password123'); - await signInPage.submitSignIn(); + await signInPage.submitSignIn(); - final usernameFieldError = find.descendant( - of: signInPage.usernameField, - matching: find.text('Invalid email format.'), - ); + final usernameFieldError = find.descendant( + of: signInPage.usernameField, + matching: find.text('Invalid email format.'), + ); - expect(usernameFieldError, findsNothing); - }, - ); + expect(usernameFieldError, findsNothing); + }); - testWidgets( - 'ensures email passed to the API is trimmed', - (tester) async { - final mockAuthService = MockAuthService(); - final mockAuthPlugin = MockAuthPlugin(mockAuthService); - final app = MockAuthenticatorApp(authPlugin: mockAuthPlugin); + testWidgets('ensures email passed to the API is trimmed', (tester) async { + final mockAuthService = MockAuthService(); + final mockAuthPlugin = MockAuthPlugin(mockAuthService); + final app = MockAuthenticatorApp(authPlugin: mockAuthPlugin); - await tester.pumpWidget(app); - await tester.pumpAndSettle(); + await tester.pumpWidget(app); + await tester.pumpAndSettle(); - final signInPage = SignInPage(tester: tester); + final signInPage = SignInPage(tester: tester); - // Enter email with trailing space and a valid password - await signInPage.enterUsername('user@example.com '); - await signInPage.enterPassword('Password123'); + // Enter email with trailing space and a valid password + await signInPage.enterUsername('user@example.com '); + await signInPage.enterPassword('Password123'); - await signInPage.submitSignIn(); - await tester.pumpAndSettle(); + await signInPage.submitSignIn(); + await tester.pumpAndSettle(); - // Verify the email was trimmed before being passed to the signIn method - expect(mockAuthService.capturedUsername, 'user@example.com'); - }, - ); + // Verify the email was trimmed before being passed to the signIn method + expect(mockAuthService.capturedUsername, 'user@example.com'); + }); }); }); } diff --git a/packages/authenticator/amplify_authenticator/test/sign_in_test.dart b/packages/authenticator/amplify_authenticator/test/sign_in_test.dart index b706239b7d..b0f17a2498 100644 --- a/packages/authenticator/amplify_authenticator/test/sign_in_test.dart +++ b/packages/authenticator/amplify_authenticator/test/sign_in_test.dart @@ -10,35 +10,34 @@ void main() { /// Tests an end to end "happy path" flow for sign in with email, with the /// auth library stubbed. - testWidgets( - 'Signs in an existing user with an email & password', - (tester) async { - final testUser = MockCognitoUser( - username: 'test-user@example.com', - email: 'test-user@example.com', - password: 'test-user@example.com', - ); - - await tester.pumpWidget( - MockAuthenticatorApp( - authPlugin: AmplifyAuthCognitoStub(users: [testUser]), - ), - ); - await tester.pumpAndSettle(); - - final signInPage = SignInPage(tester: tester); - - // When I type my "email" - await signInPage.enterUsername(testUser.email!); - - // And I type my password - await signInPage.enterPassword(testUser.password); - - // And I click the "Sign In" button - await binding.runAsync(signInPage.submitSignIn); - - // Then I see "Sign out" - await binding.runAsync(signInPage.expectAuthenticated); - }, - ); + testWidgets('Signs in an existing user with an email & password', ( + tester, + ) async { + final testUser = MockCognitoUser( + username: 'test-user@example.com', + email: 'test-user@example.com', + password: 'test-user@example.com', + ); + + await tester.pumpWidget( + MockAuthenticatorApp( + authPlugin: AmplifyAuthCognitoStub(users: [testUser]), + ), + ); + await tester.pumpAndSettle(); + + final signInPage = SignInPage(tester: tester); + + // When I type my "email" + await signInPage.enterUsername(testUser.email!); + + // And I type my password + await signInPage.enterPassword(testUser.password); + + // And I click the "Sign In" button + await binding.runAsync(signInPage.submitSignIn); + + // Then I see "Sign out" + await binding.runAsync(signInPage.expectAuthenticated); + }); } diff --git a/packages/authenticator/amplify_authenticator/test/sign_up_form_test.dart b/packages/authenticator/amplify_authenticator/test/sign_up_form_test.dart index 21fc76fe60..1bf217daa3 100644 --- a/packages/authenticator/amplify_authenticator/test/sign_up_form_test.dart +++ b/packages/authenticator/amplify_authenticator/test/sign_up_form_test.dart @@ -42,11 +42,7 @@ class MockAuthPlugin extends AmplifyAuthCognitoStub { required String password, SignUpOptions? options, }) { - return authService.signUp( - username, - password, - attributes, - ); + return authService.signUp(username, password, attributes); } } @@ -55,40 +51,39 @@ void main() { group('Sign Up View', () { group('form validation', () { - testWidgets( - 'displays message when submitted without any data', - (tester) async { - await tester.pumpWidget( - const MockAuthenticatorApp(initialStep: AuthenticatorStep.signUp), - ); - await tester.pumpAndSettle(); + testWidgets('displays message when submitted without any data', ( + tester, + ) async { + await tester.pumpWidget( + const MockAuthenticatorApp(initialStep: AuthenticatorStep.signUp), + ); + await tester.pumpAndSettle(); - final signUpPage = SignUpPage(tester: tester); + final signUpPage = SignUpPage(tester: tester); - await signUpPage.submitSignUp(); + await signUpPage.submitSignUp(); - final usernameFieldError = find.descendant( - of: signUpPage.usernameField, - matching: find.text('Email field must not be blank.'), - ); + final usernameFieldError = find.descendant( + of: signUpPage.usernameField, + matching: find.text('Email field must not be blank.'), + ); - expect(usernameFieldError, findsOneWidget); + expect(usernameFieldError, findsOneWidget); - final passwordFieldError = find.descendant( - of: signUpPage.passwordField, - matching: find.text('Password field must not be blank.'), - ); + final passwordFieldError = find.descendant( + of: signUpPage.passwordField, + matching: find.text('Password field must not be blank.'), + ); - expect(passwordFieldError, findsOneWidget); + expect(passwordFieldError, findsOneWidget); - final passwordConfirmationFieldError = find.descendant( - of: signUpPage.confirmPasswordField, - matching: find.text('Confirm Password field must not be blank.'), - ); + final passwordConfirmationFieldError = find.descendant( + of: signUpPage.confirmPasswordField, + matching: find.text('Confirm Password field must not be blank.'), + ); - expect(passwordConfirmationFieldError, findsOneWidget); - }, - ); + expect(passwordConfirmationFieldError, findsOneWidget); + }); testWidgets( 'displays message when submitted with invalid email address', @@ -115,159 +110,141 @@ void main() { }, ); - testWidgets( - 'displays message when submitted with invalid birth date', - (tester) async { - await tester.pumpWidget( - MockAuthenticatorApp( - initialStep: AuthenticatorStep.signUp, - signUpForm: SignUpForm.custom( - fields: [ - SignUpFormField.username(), - SignUpFormField.birthdate( - validator: (value) { - if (value == null || value.isEmpty) return null; - final age = DateTime.now().difference( - DateTime.parse(value), - ); - if (age < const Duration(days: 365 * 18)) { - return 'You must be 18 years or older.'; - } - return null; - }, - ), - SignUpFormField.password(), - SignUpFormField.passwordConfirmation(), - ], - ), + testWidgets('displays message when submitted with invalid birth date', ( + tester, + ) async { + await tester.pumpWidget( + MockAuthenticatorApp( + initialStep: AuthenticatorStep.signUp, + signUpForm: SignUpForm.custom( + fields: [ + SignUpFormField.username(), + SignUpFormField.birthdate( + validator: (value) { + if (value == null || value.isEmpty) return null; + final age = DateTime.now().difference( + DateTime.parse(value), + ); + if (age < const Duration(days: 365 * 18)) { + return 'You must be 18 years or older.'; + } + return null; + }, + ), + SignUpFormField.password(), + SignUpFormField.passwordConfirmation(), + ], ), - ); - await tester.pumpAndSettle(); + ), + ); + await tester.pumpAndSettle(); - final signUpPage = SignUpPage(tester: tester); + final signUpPage = SignUpPage(tester: tester); - await signUpPage.enterUsername('user123'); - await signUpPage.enterBirthDate('01/01/2020'); - await signUpPage.enterPassword('Password123'); - await signUpPage.enterPasswordConfirmation('Password123'); + await signUpPage.enterUsername('user123'); + await signUpPage.enterBirthDate('01/01/2020'); + await signUpPage.enterPassword('Password123'); + await signUpPage.enterPasswordConfirmation('Password123'); - await signUpPage.submitSignUp(); + await signUpPage.submitSignUp(); - final usernameFieldError = find.descendant( - of: signUpPage.birthdateField, - matching: find.text('You must be 18 years or older.'), - ); + final usernameFieldError = find.descendant( + of: signUpPage.birthdateField, + matching: find.text('You must be 18 years or older.'), + ); - expect(usernameFieldError, findsOneWidget); - }, - ); + expect(usernameFieldError, findsOneWidget); + }); - testWidgets( - 'displays message when password does not meet requirements', - (tester) async { - await tester.pumpWidget( - const MockAuthenticatorApp( - initialStep: AuthenticatorStep.signUp, - config: passwordReqConfig, - ), - ); - await tester.pumpAndSettle(); + testWidgets('displays message when password does not meet requirements', ( + tester, + ) async { + await tester.pumpWidget( + const MockAuthenticatorApp( + initialStep: AuthenticatorStep.signUp, + config: passwordReqConfig, + ), + ); + await tester.pumpAndSettle(); - final signUpPage = SignUpPage(tester: tester); + final signUpPage = SignUpPage(tester: tester); - await signUpPage.enterUsername('user@example.com'); - await signUpPage.enterPassword('1234'); + await signUpPage.enterUsername('user@example.com'); + await signUpPage.enterPassword('1234'); - await signUpPage.submitSignUp(); + await signUpPage.submitSignUp(); - final passwordFieldErrorLine1 = find.descendant( - of: signUpPage.passwordField, - matching: find.textContaining( - 'Password must include', - ), - ); + final passwordFieldErrorLine1 = find.descendant( + of: signUpPage.passwordField, + matching: find.textContaining('Password must include'), + ); - final passwordFieldErrorLine2 = find.descendant( - of: signUpPage.passwordField, - matching: find.textContaining( - '* at least 16 characters', - ), - ); + final passwordFieldErrorLine2 = find.descendant( + of: signUpPage.passwordField, + matching: find.textContaining('* at least 16 characters'), + ); - final passwordFieldErrorLine3 = find.descendant( - of: signUpPage.passwordField, - matching: find.textContaining( - '* at least 1 uppercase character', - ), - ); + final passwordFieldErrorLine3 = find.descendant( + of: signUpPage.passwordField, + matching: find.textContaining('* at least 1 uppercase character'), + ); - final passwordFieldErrorLine4 = find.descendant( - of: signUpPage.passwordField, - matching: find.textContaining( - '* at least 1 symbol character', - ), - ); + final passwordFieldErrorLine4 = find.descendant( + of: signUpPage.passwordField, + matching: find.textContaining('* at least 1 symbol character'), + ); - expect(passwordFieldErrorLine1, findsOneWidget); - expect(passwordFieldErrorLine2, findsOneWidget); - expect(passwordFieldErrorLine3, findsOneWidget); - expect(passwordFieldErrorLine4, findsOneWidget); - }, - ); + expect(passwordFieldErrorLine1, findsOneWidget); + expect(passwordFieldErrorLine2, findsOneWidget); + expect(passwordFieldErrorLine3, findsOneWidget); + expect(passwordFieldErrorLine4, findsOneWidget); + }); - testWidgets( - 'trims the username field before validation', - (tester) async { - await tester.pumpWidget( - const MockAuthenticatorApp( - initialStep: AuthenticatorStep.signUp, - ), - ); - await tester.pumpAndSettle(); + testWidgets('trims the username field before validation', (tester) async { + await tester.pumpWidget( + const MockAuthenticatorApp(initialStep: AuthenticatorStep.signUp), + ); + await tester.pumpAndSettle(); - final signInPage = SignUpPage(tester: tester); + final signInPage = SignUpPage(tester: tester); - await signInPage.enterUsername('user@example.com '); - await signInPage.enterPassword('Password123'); + await signInPage.enterUsername('user@example.com '); + await signInPage.enterPassword('Password123'); - await signInPage.submitSignUp(); + await signInPage.submitSignUp(); - final usernameFieldError = find.descendant( - of: signInPage.usernameField, - matching: find.text('Invalid email format.'), - ); + final usernameFieldError = find.descendant( + of: signInPage.usernameField, + matching: find.text('Invalid email format.'), + ); - expect(usernameFieldError, findsNothing); - }, - ); + expect(usernameFieldError, findsNothing); + }); - testWidgets( - 'ensures email passed to the API is trimmed', - (tester) async { - final mockAuthService = MockAuthService(); - final mockAuthPlugin = MockAuthPlugin(mockAuthService); - final app = MockAuthenticatorApp( - authPlugin: mockAuthPlugin, - initialStep: AuthenticatorStep.signUp, - ); + testWidgets('ensures email passed to the API is trimmed', (tester) async { + final mockAuthService = MockAuthService(); + final mockAuthPlugin = MockAuthPlugin(mockAuthService); + final app = MockAuthenticatorApp( + authPlugin: mockAuthPlugin, + initialStep: AuthenticatorStep.signUp, + ); - await tester.pumpWidget(app); - await tester.pumpAndSettle(); + await tester.pumpWidget(app); + await tester.pumpAndSettle(); - final signUpPage = SignUpPage(tester: tester); + final signUpPage = SignUpPage(tester: tester); - // Enter email with trailing space - await signUpPage.enterUsername('user@example.com '); - await signUpPage.enterPassword('Password123!@#%^'); - await signUpPage.enterPasswordConfirmation('Password123!@#%^'); + // Enter email with trailing space + await signUpPage.enterUsername('user@example.com '); + await signUpPage.enterPassword('Password123!@#%^'); + await signUpPage.enterPasswordConfirmation('Password123!@#%^'); - await signUpPage.submitSignUp(); - await tester.pumpAndSettle(); + await signUpPage.submitSignUp(); + await tester.pumpAndSettle(); - // Verify the email was trimmed before being passed to signUp - expect(mockAuthService.capturedUsername, 'user@example.com'); - }, - ); + // Verify the email was trimmed before being passed to signUp + expect(mockAuthService.capturedUsername, 'user@example.com'); + }); }); }); } diff --git a/packages/authenticator/amplify_authenticator/test/ui/main_test.dart b/packages/authenticator/amplify_authenticator/test/ui/main_test.dart index 1b59b4d6bf..c332f502e1 100644 --- a/packages/authenticator/amplify_authenticator/test/ui/main_test.dart +++ b/packages/authenticator/amplify_authenticator/test/ui/main_test.dart @@ -80,14 +80,10 @@ enum TestTheme { primarySwatch: Colors.red, backgroundColor: Colors.white, ), - ).copyWith( - indicatorColor: Colors.red, - ); + ).copyWith(indicatorColor: Colors.red); case TestTheme.custom: return ThemeData.light().copyWith( - tabBarTheme: const TabBarTheme( - labelColor: Colors.amber, - ), + tabBarTheme: const TabBarTheme(labelColor: Colors.amber), indicatorColor: Colors.pink, ); } @@ -113,9 +109,7 @@ enum TestTheme { ); case TestTheme.custom: return ThemeData.dark().copyWith( - tabBarTheme: const TabBarTheme( - labelColor: Colors.amber, - ), + tabBarTheme: const TabBarTheme(labelColor: Colors.amber), indicatorColor: Colors.pink, ); } diff --git a/packages/authenticator/amplify_authenticator/test/ui/utils.dart b/packages/authenticator/amplify_authenticator/test/ui/utils.dart index 981f461beb..1f932bfe54 100644 --- a/packages/authenticator/amplify_authenticator/test/ui/utils.dart +++ b/packages/authenticator/amplify_authenticator/test/ui/utils.dart @@ -73,10 +73,7 @@ void testMatrix2( void Function(D1, D2) cb, ) { testMatrix1(values1, (a) { - testMatrix1( - values2, - (b) => cb(a, b), - ); + testMatrix1(values2, (b) => cb(a, b)); }); } @@ -89,18 +86,14 @@ void testMatrix3( void Function(D1, D2, D3) cb, ) { testMatrix1(values1, (a) { - testMatrix2( - values2, - values3, - (b, c) => cb(a, b, c), - ); + testMatrix2(values2, values3, (b, c) => cb(a, b, c)); }); } /// Runs a 4-dimensional test matrix, using the three Enum values as the matrix /// dimensions. -void testMatrix4( +void +testMatrix4( List values1, List values2, List values3, @@ -119,8 +112,13 @@ void testMatrix4( +void testMatrix5< + D1 extends Enum, + D2 extends Enum, + D3 extends Enum, + D4 extends Enum, + D5 extends Enum +>( List values1, List values2, List values3, diff --git a/packages/authenticator/amplify_authenticator/tool/countries.dart b/packages/authenticator/amplify_authenticator/tool/countries.dart index f4f90dd5c4..d0a15874f3 100644 --- a/packages/authenticator/amplify_authenticator/tool/countries.dart +++ b/packages/authenticator/amplify_authenticator/tool/countries.dart @@ -28,12 +28,12 @@ var countries = [ { 'name': 'Bolivia (Plurinational State of)', 'dial_code': '+591', - 'code': 'BO' + 'code': 'BO', }, { 'name': 'Bonaire, Sint Eustatius and Saba', 'dial_code': '+599', - 'code': 'BQ' + 'code': 'BQ', }, {'name': 'Bosnia and Herzegovina', 'dial_code': '+387', 'code': 'BA'}, {'name': 'Botswana', 'dial_code': '+267', 'code': 'BW'}, @@ -125,7 +125,7 @@ var countries = [ { 'name': 'Korea (Democratic People\'s Republic of)', 'dial_code': '+850', - 'code': 'KP' + 'code': 'KP', }, {'name': 'Korea (Republic of)', 'dial_code': '+82', 'code': 'KR'}, @@ -159,7 +159,7 @@ var countries = [ { 'name': 'Micronesia (Federated States of)', 'dial_code': '+691', - 'code': 'FM' + 'code': 'FM', }, {'name': 'Moldova', 'dial_code': '+373', 'code': 'MD'}, {'name': 'Monaco', 'dial_code': '+377', 'code': 'MC'}, @@ -204,7 +204,7 @@ var countries = [ { 'name': 'Saint Helena, Ascension and Tristan Da Cunha', 'dial_code': '+290', - 'code': 'SH' + 'code': 'SH', }, {'name': 'Saint Kitts and Nevis', 'dial_code': '+1869', 'code': 'KN'}, {'name': 'Saint Lucia', 'dial_code': '+1758', 'code': 'LC'}, @@ -213,7 +213,7 @@ var countries = [ { 'name': 'Saint Vincent and the Grenadines', 'dial_code': '+1784', - 'code': 'VC' + 'code': 'VC', }, {'name': 'Samoa', 'dial_code': '+685', 'code': 'WS'}, {'name': 'San Marino', 'dial_code': '+378', 'code': 'SM'}, @@ -232,7 +232,7 @@ var countries = [ { 'name': 'South Georgia and the South Sandwich Islands', 'dial_code': '+500', - 'code': 'GS' + 'code': 'GS', }, {'name': 'South Sudan', 'dial_code': '+211', 'code': 'SS'}, {'name': 'Spain', 'dial_code': '+34', 'code': 'ES'}, @@ -264,7 +264,7 @@ var countries = [ { 'name': 'United States Minor Outlying Islands', 'dial_code': '+246', - 'code': 'UM' + 'code': 'UM', }, {'name': 'United States', 'dial_code': '+1', 'code': 'US'}, {'name': 'Uruguay', 'dial_code': '+598', 'code': 'UY'}, @@ -273,7 +273,7 @@ var countries = [ { 'name': 'Venezuela (Bolivarian Republic of)', 'dial_code': '+58', - 'code': 'VE' + 'code': 'VE', }, {'name': 'Vietnam', 'dial_code': '+84', 'code': 'VN'}, {'name': 'Virgin Islands (British)', 'dial_code': '+1284', 'code': 'VG'}, @@ -281,5 +281,5 @@ var countries = [ {'name': 'Wallis and Futuna', 'dial_code': '+681', 'code': 'WF'}, {'name': 'Yemen', 'dial_code': '+967', 'code': 'YE'}, {'name': 'Zambia', 'dial_code': '+260', 'code': 'ZM'}, - {'name': 'Zimbabwe', 'dial_code': '+263', 'code': 'ZW'} + {'name': 'Zimbabwe', 'dial_code': '+263', 'code': 'ZW'}, ]; diff --git a/packages/authenticator/amplify_authenticator/tool/generate_country_localization.dart b/packages/authenticator/amplify_authenticator/tool/generate_country_localization.dart index b82173da47..27493b36dd 100644 --- a/packages/authenticator/amplify_authenticator/tool/generate_country_localization.dart +++ b/packages/authenticator/amplify_authenticator/tool/generate_country_localization.dart @@ -16,19 +16,21 @@ class GenCountry { final String dialCode; final String key; final String code; - GenCountry( - {required this.displayName, - required this.dialCode, - required this.key, - required this.code}); + GenCountry({ + required this.displayName, + required this.dialCode, + required this.key, + required this.code, + }); // add fromJson method here factory GenCountry.fromJson(Map json) { var name = json['name'] as String; return GenCountry( - dialCode: (json['dial_code'] as String).replaceAll('+', ''), - displayName: name, - key: '${(json['code'] as String).toLowerCase()}\$', - code: json['code'] as String); + dialCode: (json['dial_code'] as String).replaceAll('+', ''), + displayName: name, + key: '${(json['code'] as String).toLowerCase()}\$', + code: json['code'] as String, + ); } } @@ -160,9 +162,11 @@ const countryCodes = [ '''); _countries.insert( - 0, - _countries - .removeAt(_countries.indexWhere((element) => element.code == 'US'))); + 0, + _countries.removeAt( + _countries.indexWhere((element) => element.code == 'US'), + ), + ); for (var element in _countries) { var comma = _countries.indexOf(element) != _countries.length - 1 ? ',' : ''; diff --git a/packages/authenticator/amplify_authenticator_test/example/android/.gitignore b/packages/authenticator/amplify_authenticator_test/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/authenticator/amplify_authenticator_test/example/android/.gitignore +++ b/packages/authenticator/amplify_authenticator_test/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/authenticator/amplify_authenticator_test/example/android/app/build.gradle b/packages/authenticator/amplify_authenticator_test/example/android/app/build.gradle index cc8fa6df29..b8ce561b01 100644 --- a/packages/authenticator/amplify_authenticator_test/example/android/app/build.gradle +++ b/packages/authenticator/amplify_authenticator_test/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -62,4 +64,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") +} diff --git a/packages/authenticator/amplify_authenticator_test/example/android/build.gradle b/packages/authenticator/amplify_authenticator_test/example/android/build.gradle index 070b4ffbfd..bc157bd1a1 100644 --- a/packages/authenticator/amplify_authenticator_test/example/android/build.gradle +++ b/packages/authenticator/amplify_authenticator_test/example/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.9.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() diff --git a/packages/authenticator/amplify_authenticator_test/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/authenticator/amplify_authenticator_test/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/authenticator/amplify_authenticator_test/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/authenticator/amplify_authenticator_test/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/authenticator/amplify_authenticator_test/example/android/settings.gradle b/packages/authenticator/amplify_authenticator_test/example/android/settings.gradle index 55c4ca8b10..6ac9fc18af 100644 --- a/packages/authenticator/amplify_authenticator_test/example/android/settings.gradle +++ b/packages/authenticator/amplify_authenticator_test/example/android/settings.gradle @@ -5,16 +5,21 @@ pluginManagement { def flutterSdkPath = properties.getProperty("flutter.sdk") assert flutterSdkPath != null, "flutter.sdk not set in local.properties" return flutterSdkPath - } - settings.ext.flutterSdkPath = flutterSdkPath() + }() - includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") - plugins { - id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + repositories { + google() + mavenCentral() + gradlePluginPortal() } } -include ":app" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.9.10" apply false +} -apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" +include ":app" diff --git a/packages/authenticator/amplify_authenticator_test/example/pubspec.yaml b/packages/authenticator/amplify_authenticator_test/example/pubspec.yaml index 7221ad617e..dafa989f21 100644 --- a/packages/authenticator/amplify_authenticator_test/example/pubspec.yaml +++ b/packages/authenticator/amplify_authenticator_test/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: "none" version: 0.1.0 environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_authenticator: any diff --git a/packages/authenticator/amplify_authenticator_test/lib/amplify_authenticator_test.dart b/packages/authenticator/amplify_authenticator_test/lib/amplify_authenticator_test.dart index 49b9300e16..7dd60caeda 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/amplify_authenticator_test.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/amplify_authenticator_test.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// A library containing test utilities for the Authenticator. -library amplify_authenticator_test; +library; export 'package:amplify_authenticator/src/state/auth_state.dart'; diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signin_finder.dart b/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signin_finder.dart index ae582c1d03..cbf8351ee2 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signin_finder.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signin_finder.dart @@ -6,7 +6,8 @@ import 'package:amplify_authenticator/src/keys.dart'; import 'package:flutter_test/flutter_test.dart'; /// Find specific widgets in the widget tree based on their keys -final codeConfirmSignInFormFieldFinder = - find.byKey(keyCodeConfirmSignInFormField); +final codeConfirmSignInFormFieldFinder = find.byKey( + keyCodeConfirmSignInFormField, +); final confirmSignInButtonFinder = find.byKey(keyConfirmSignInButton); diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signup_finder.dart b/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signup_finder.dart index fd0bcf4d06..29af8e3742 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signup_finder.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/finders/confirm_signup_finder.dart @@ -6,8 +6,10 @@ import 'package:amplify_authenticator/src/keys.dart'; import 'package:flutter_test/flutter_test.dart'; /// Find specific widgets in the widget tree based on their keys -final usernameConfirmSignUpFormFieldFinder = - find.byKey(keyUsernameConfirmSignUpFormField); -final codeConfirmSignUpFormFieldFinder = - find.byKey(keyCodeConfirmSignUpFormField); +final usernameConfirmSignUpFormFieldFinder = find.byKey( + keyUsernameConfirmSignUpFormField, +); +final codeConfirmSignUpFormFieldFinder = find.byKey( + keyCodeConfirmSignUpFormField, +); final backToSignInButtonFinder = find.byKey(keyBackToSignInButton); diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/finders/signup_finder.dart b/packages/authenticator/amplify_authenticator_test/lib/src/finders/signup_finder.dart index 8208248be6..544a77969d 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/finders/signup_finder.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/finders/signup_finder.dart @@ -8,8 +8,9 @@ import 'package:flutter_test/flutter_test.dart'; /// Find specific widgets in the widget tree based on their keys final usernameSignUpFormFieldFinder = find.byKey(keyUsernameSignUpFormField); final emailSignUpFormFieldFinder = find.byKey(keyEmailSignUpFormField); -final phoneNumberSignUpFormFieldFinder = - find.byKey(keyPhoneNumberSignUpFormField); +final phoneNumberSignUpFormFieldFinder = find.byKey( + keyPhoneNumberSignUpFormField, +); final passwordSignUpFormFieldFinder = find.byKey(keyPasswordSignUpFormField); final signUpButtonFinder = find.byKey(keySignUpButton); final gotToSignUpButtonFinder = find.byKey(keyGoToSignUpButton); diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/mock_authenticator_app.dart b/packages/authenticator/amplify_authenticator_test/lib/src/mock_authenticator_app.dart index af0fbc10f5..a9fe453c4a 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/mock_authenticator_app.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/mock_authenticator_app.dart @@ -69,11 +69,7 @@ class _MockAuthenticatorAppState extends State { case AuthenticatorStep.continueSignInWithMfaSelection: baseBloc.setState( const ContinueSignInWithMfaSelection( - allowedMfaTypes: { - MfaType.totp, - MfaType.sms, - MfaType.email, - }, + allowedMfaTypes: {MfaType.totp, MfaType.sms, MfaType.email}, ), ); case AuthenticatorStep.continueSignInWithTotpSetup: @@ -91,11 +87,7 @@ class _MockAuthenticatorAppState extends State { case AuthenticatorStep.continueSignInWithMfaSetupSelection: baseBloc.setState( const ContinueSignInWithMfaSetupSelection( - allowedMfaTypes: { - MfaType.sms, - MfaType.totp, - MfaType.email, - }, + allowedMfaTypes: {MfaType.sms, MfaType.totp, MfaType.email}, ), ); default: @@ -119,7 +111,8 @@ class _MockAuthenticatorAppState extends State { authBlocOverride: _authBloc, signInForm: widget.signInForm, signUpForm: widget.signUpForm, - child: widget.child ?? + child: + widget.child ?? MaterialApp( debugShowCheckedModeBanner: false, theme: widget.lightTheme, @@ -128,9 +121,7 @@ class _MockAuthenticatorAppState extends State { builder: Authenticator.builder(), home: const Scaffold( key: authenticatedAppKey, - body: Center( - child: SignOutButton(), - ), + body: Center(child: SignOutButton()), ), ), ); diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/pages/authenticator_page.dart b/packages/authenticator/amplify_authenticator_test/lib/src/pages/authenticator_page.dart index 78eb6148c6..e653a97963 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/pages/authenticator_page.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/pages/authenticator_page.dart @@ -28,10 +28,7 @@ abstract class AuthenticatorPage { Finder get signOutButton => find.byKey(keySignOutButton); /// Then I see "Username" as an input field - void expectUsername({ - String label = 'Username', - bool isPresent = true, - }) { + void expectUsername({String label = 'Username', bool isPresent = true}) { // username field is present expect(usernameField, findsOneWidget); // login type is "username" @@ -43,10 +40,7 @@ abstract class AuthenticatorPage { } /// Then I see "Email" as an input field - void expectEmail({ - String label = 'Email', - bool isPresent = true, - }) { + void expectEmail({String label = 'Email', bool isPresent = true}) { // email field is present expect(usernameField, findsOneWidget); // login type is "email" @@ -71,10 +65,7 @@ abstract class AuthenticatorPage { final finder = find.byKey(inputField); expect(finder, findsOneWidget); expect( - find.descendant( - of: finder, - matching: find.textContaining(errorText), - ), + find.descendant(of: finder, matching: find.textContaining(errorText)), findsOneWidget, ); } @@ -103,8 +94,9 @@ abstract class AuthenticatorPage { } Future expectState(AuthState state) async { - final inheritedBloc = - tester.widget(find.byKey(keyInheritedAuthBloc)); + final inheritedBloc = tester.widget( + find.byKey(keyInheritedAuthBloc), + ); if (inheritedBloc.authBloc.currentState != state) { await nextBlocEvent(tester); } diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/pages/confirm_sign_in_page.dart b/packages/authenticator/amplify_authenticator_test/lib/src/pages/confirm_sign_in_page.dart index 5d2d352509..9ace3b4f3c 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/pages/confirm_sign_in_page.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/pages/confirm_sign_in_page.dart @@ -127,19 +127,13 @@ class ConfirmSignInPage extends AuthenticatorPage { /// When I enter a new password Future enterNewPassword(String password) async { await tester.ensureVisible(newPasswordField); - await tester.enterText( - newPasswordField, - password, - ); + await tester.enterText(newPasswordField, password); } /// When I confirm a new password Future enterPasswordConfirmation(String password) async { await tester.ensureVisible(confirmNewPasswordField); - await tester.enterText( - confirmNewPasswordField, - password, - ); + await tester.enterText(confirmNewPasswordField, password); } /// When I click the "Confirm Sign In" button @@ -150,9 +144,7 @@ class ConfirmSignInPage extends AuthenticatorPage { } /// When I select a MFA method - Future selectMfaMethod({ - required MfaType mfaMethod, - }) async { + Future selectMfaMethod({required MfaType mfaMethod}) async { expect(selectMfaRadio, findsOneWidget); // if mfaMethod is email, don't make it uppercase except for the first letter @@ -171,9 +163,7 @@ class ConfirmSignInPage extends AuthenticatorPage { } // When I select a MFA setup method - Future selectMfaSetupMethod({ - required MfaType mfaMethod, - }) async { + Future selectMfaSetupMethod({required MfaType mfaMethod}) async { expect(selectMfaSetupRadio, findsOneWidget); final mfaMethodWidget = find.descendant( diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_in_page.dart b/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_in_page.dart index 9c11b7d0aa..40498c2e98 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_in_page.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_in_page.dart @@ -19,9 +19,9 @@ class SignInPage extends AuthenticatorPage { Finder get forgotPasswordButton => find.byKey(keyForgotPasswordButton); Finder get confirmSignInField => find.byKey(keyCodeConfirmSignInFormField); Finder get signUpTab => find.descendant( - of: find.byType(TabBar), - matching: find.byKey(const ValueKey(AuthenticatorStep.signUp)), - ); + of: find.byType(TabBar), + matching: find.byKey(const ValueKey(AuthenticatorStep.signUp)), + ); /// When I sign in with "username" and "password" Future signIn({ diff --git a/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_up_page.dart b/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_up_page.dart index 83ccdd3121..6bbfcff977 100644 --- a/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_up_page.dart +++ b/packages/authenticator/amplify_authenticator_test/lib/src/pages/sign_up_page.dart @@ -23,22 +23,22 @@ class SignUpPage extends AuthenticatorPage { find.byKey(keyPreferredUsernameSignUpFormField); Finder get birthdateField => find.byKey(keyBirthdateSignUpFormField); Finder get datePickerTextField => find.descendant( - of: find.byType(InputDatePickerFormField), - matching: find.byType(TextFormField), - ); + of: find.byType(InputDatePickerFormField), + matching: find.byType(TextFormField), + ); Finder get datePickerOkayButton => find.descendant( - of: find.byType(DatePickerDialog), - matching: find.byType(TextButton).at(1), - ); + of: find.byType(DatePickerDialog), + matching: find.byType(TextButton).at(1), + ); Finder get signUpButton => find.byKey(keySignUpButton); Finder get selectEmailButton => find.byKey(keyEmailUsernameToggleButton); Finder get selectPhoneButton => find.byKey(keyPhoneUsernameToggleButton); Finder get signInTab => find.descendant( - of: find.byType(TabBar), - matching: find.byKey(const ValueKey(AuthenticatorStep.signIn)), - ); + of: find.byType(TabBar), + matching: find.byKey(const ValueKey(AuthenticatorStep.signIn)), + ); /// When I type a new "username" Future enterUsername(String username) async { diff --git a/packages/authenticator/amplify_authenticator_test/pubspec.yaml b/packages/authenticator/amplify_authenticator_test/pubspec.yaml index 2d70087c99..637297bf79 100644 --- a/packages/authenticator/amplify_authenticator_test/pubspec.yaml +++ b/packages/authenticator/amplify_authenticator_test/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_authenticator: any diff --git a/packages/aws_common/CHANGELOG.md b/packages/aws_common/CHANGELOG.md index 474a44a8a1..5943e3a12e 100644 --- a/packages/aws_common/CHANGELOG.md +++ b/packages/aws_common/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.7.7 + +### Fixes +- fix(sigv4): Convert empty query parameters to null ([#6082](https://github.com/aws-amplify/amplify-flutter/pull/6082)) + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.7.6 - Minor bug fixes and improvements diff --git a/packages/aws_common/example/aws_common_example.dart b/packages/aws_common/example/aws_common_example.dart index 50e844c3ba..6c7259a3ee 100644 --- a/packages/aws_common/example/aws_common_example.dart +++ b/packages/aws_common/example/aws_common_example.dart @@ -9,18 +9,20 @@ class LoggingClient extends AWSBaseHttpClient { static final _logger = AWSLogger().createChild('HTTP'); Future _logRequest(AWSBaseHttpRequest request) async { - final sb = StringBuffer() - ..write(request.method.value) - ..write(' ') - ..writeln(request.uri) - ..write(await utf8.decodeStream(request.split())); + final sb = + StringBuffer() + ..write(request.method.value) + ..write(' ') + ..writeln(request.uri) + ..write(await utf8.decodeStream(request.split())); _logger.debug(sb.toString()); } Future _logResponse(AWSBaseHttpResponse response) async { - final sb = StringBuffer() - ..writeln(response.statusCode) - ..write(await utf8.decodeStream(response.split())); + final sb = + StringBuffer() + ..writeln(response.statusCode) + ..write(await utf8.decodeStream(response.split())); _logger.debug(sb.toString()); } diff --git a/packages/aws_common/lib/aws_common.dart b/packages/aws_common/lib/aws_common.dart index 8d7555d1a1..874fd906d7 100644 --- a/packages/aws_common/lib/aws_common.dart +++ b/packages/aws_common/lib/aws_common.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Common types and utilities used across AWS and Amplify packages. -library aws_common; +library; // External types used in our public APIs export 'package:async/async.dart' show CancelableOperation, CancelableCompleter; diff --git a/packages/aws_common/lib/src/collection/case_insensitive.dart b/packages/aws_common/lib/src/collection/case_insensitive.dart index 8b3c81c147..7e46879feb 100644 --- a/packages/aws_common/lib/src/collection/case_insensitive.dart +++ b/packages/aws_common/lib/src/collection/case_insensitive.dart @@ -12,12 +12,12 @@ import 'package:collection/collection.dart'; class CaseInsensitiveMap extends DelegatingMap { /// {@macro aws_common.case_insensitive_map} CaseInsensitiveMap(Map base) - : super( - LinkedHashMap( - equals: equalsIgnoreAsciiCase, - hashCode: hashIgnoreAsciiCase, - )..addAll(base), - ); + : super( + LinkedHashMap( + equals: equalsIgnoreAsciiCase, + hashCode: hashIgnoreAsciiCase, + )..addAll(base), + ); } /// {@template aws_common.case_insensitive_set} @@ -27,10 +27,10 @@ class CaseInsensitiveMap extends DelegatingMap { class CaseInsensitiveSet extends DelegatingSet { /// {@macro aws_common.case_insensitive_set} CaseInsensitiveSet(Iterable base) - : super( - LinkedHashSet( - equals: equalsIgnoreAsciiCase, - hashCode: hashIgnoreAsciiCase, - )..addAll(base), - ); + : super( + LinkedHashSet( + equals: equalsIgnoreAsciiCase, + hashCode: hashIgnoreAsciiCase, + )..addAll(base), + ); } diff --git a/packages/aws_common/lib/src/config/aws_config_value.dart b/packages/aws_common/lib/src/config/aws_config_value.dart index ac85377b7c..dea7fa666f 100644 --- a/packages/aws_common/lib/src/config/aws_config_value.dart +++ b/packages/aws_common/lib/src/config/aws_config_value.dart @@ -27,11 +27,7 @@ enum AWSConfigValue { /// The default region to use for AWS operations. /// /// Defaults to `us-east-1`. - region._( - 'AWS_REGION', - String.fromEnvironment('AWS_REGION'), - 'us-east-1', - ), + region._('AWS_REGION', String.fromEnvironment('AWS_REGION'), 'us-east-1'), /// The location (filepath) of the AWS configuration file. /// diff --git a/packages/aws_common/lib/src/config/aws_path_provider.dart b/packages/aws_common/lib/src/config/aws_path_provider.dart index 8f9a9c7b91..35a78086f0 100644 --- a/packages/aws_common/lib/src/config/aws_path_provider.dart +++ b/packages/aws_common/lib/src/config/aws_path_provider.dart @@ -49,16 +49,12 @@ abstract class AWSPathProvider { } final specifiedUser = homeDirExp.group(1); logger.debug('Getting home directory for user: $specifiedUser'); - final resolvedHome = await getHomeDirectory( - forUser: specifiedUser, - ); + final resolvedHome = await getHomeDirectory(forUser: specifiedUser); logger.debug('Resolved home directory: $resolvedHome'); if (resolvedHome == null) { return null; } - return path.normalize( - filepath.replaceFirst(_homeDirExp, resolvedHome), - ); + return path.normalize(filepath.replaceFirst(_homeDirExp, resolvedHome)); } } diff --git a/packages/aws_common/lib/src/config/aws_profile_file.dart b/packages/aws_common/lib/src/config/aws_profile_file.dart index 72b327a7c1..d6403e0553 100644 --- a/packages/aws_common/lib/src/config/aws_profile_file.dart +++ b/packages/aws_common/lib/src/config/aws_profile_file.dart @@ -43,9 +43,7 @@ abstract class AWSProfileFile with AWSSerializable> implements Built { /// {@macro aws_common.config.aws_profile_file} - factory AWSProfileFile({ - required Map profiles, - }) { + factory AWSProfileFile({required Map profiles}) { return _$AWSProfileFile._(profiles: BuiltMap(profiles)); } @@ -54,9 +52,8 @@ abstract class AWSProfileFile _serializers.deserializeWith(serializer, json) as AWSProfileFile; /// {@macro aws_common.config.aws_profile_file} - factory AWSProfileFile.build([ - void Function(AWSProfileFileBuilder) updates, - ]) = _$AWSProfileFile; + factory AWSProfileFile.build([void Function(AWSProfileFileBuilder) updates]) = + _$AWSProfileFile; const AWSProfileFile._(); @@ -98,9 +95,8 @@ abstract class AWSProfile _serializers.deserializeWith(serializer, json) as AWSProfile; /// {@macro aws_common.config.aws_profile} - factory AWSProfile.build([ - void Function(AWSProfileBuilder) updates, - ]) = _$AWSProfile; + factory AWSProfile.build([void Function(AWSProfileBuilder) updates]) = + _$AWSProfile; const AWSProfile._(); @@ -129,11 +125,7 @@ abstract class AWSProfile ); final sessionToken = properties['aws_session_token']?.value; return AWSCredentialsProvider( - AWSCredentials( - accessKeyId, - secretAccessKey!, - sessionToken, - ), + AWSCredentials(accessKeyId, secretAccessKey!, sessionToken), ); } return null; @@ -171,9 +163,8 @@ abstract class AWSProperty _serializers.deserializeWith(serializer, json) as AWSProperty; /// {@macro aws_common.config.aws_property} - factory AWSProperty.build([ - void Function(AWSPropertyBuilder) updates, - ]) = _$AWSProperty; + factory AWSProperty.build([void Function(AWSPropertyBuilder) updates]) = + _$AWSProperty; const AWSProperty._(); @@ -196,11 +187,6 @@ abstract class AWSProperty static Serializer get serializer => _$aWSPropertySerializer; } -@SerializersFor([ - AWSProfileFileType, - AWSProfileFile, - AWSProfile, - AWSProperty, -]) +@SerializersFor([AWSProfileFileType, AWSProfileFile, AWSProfile, AWSProperty]) final Serializers _serializers = (_$_serializers.toBuilder()..addPlugin(StandardJsonPlugin())).build(); diff --git a/packages/aws_common/lib/src/config/aws_profile_file.g.dart b/packages/aws_common/lib/src/config/aws_profile_file.g.dart index 21512b0ddc..e97d4aeabe 100644 --- a/packages/aws_common/lib/src/config/aws_profile_file.g.dart +++ b/packages/aws_common/lib/src/config/aws_profile_file.g.dart @@ -7,8 +7,9 @@ part of 'aws_profile_file.dart'; // ************************************************************************** const AWSProfileFileType _$config = const AWSProfileFileType._('config'); -const AWSProfileFileType _$credentials = - const AWSProfileFileType._('credentials'); +const AWSProfileFileType _$credentials = const AWSProfileFileType._( + 'credentials', +); AWSProfileFileType _$AWSProfileFileTypeValueOf(String name) { switch (name) { @@ -23,28 +24,38 @@ AWSProfileFileType _$AWSProfileFileTypeValueOf(String name) { final BuiltSet _$AWSProfileFileTypeValues = new BuiltSet(const [ - _$config, - _$credentials, -]); - -Serializers _$_serializers = (new Serializers().toBuilder() - ..add(AWSProfile.serializer) - ..add(AWSProfileFile.serializer) - ..add(AWSProfileFileType.serializer) - ..add(AWSProperty.serializer) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(AWSProfile)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(AWSProperty)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(AWSProperty)]), - () => new MapBuilder())) - .build(); + _$config, + _$credentials, + ]); + +Serializers _$_serializers = + (new Serializers().toBuilder() + ..add(AWSProfile.serializer) + ..add(AWSProfileFile.serializer) + ..add(AWSProfileFileType.serializer) + ..add(AWSProperty.serializer) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AWSProfile), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AWSProperty), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AWSProperty), + ]), + () => new MapBuilder(), + )) + .build(); Serializer _$aWSProfileFileTypeSerializer = new _$AWSProfileFileTypeSerializer(); Serializer _$aWSProfileFileSerializer = @@ -60,14 +71,18 @@ class _$AWSProfileFileTypeSerializer final String wireName = 'AWSProfileFileType'; @override - Object serialize(Serializers serializers, AWSProfileFileType object, - {FullType specifiedType = FullType.unspecified}) => - object.name; + Object serialize( + Serializers serializers, + AWSProfileFileType object, { + FullType specifiedType = FullType.unspecified, + }) => object.name; @override - AWSProfileFileType deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - AWSProfileFileType.valueOf(serialized as String); + AWSProfileFileType deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => AWSProfileFileType.valueOf(serialized as String); } class _$AWSProfileFileSerializer @@ -78,13 +93,20 @@ class _$AWSProfileFileSerializer final String wireName = 'AWSProfileFile'; @override - Iterable serialize(Serializers serializers, AWSProfileFile object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + AWSProfileFile object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'profiles', - serializers.serialize(object.profiles, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(AWSProfile)])), + serializers.serialize( + object.profiles, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AWSProfile), + ]), + ), ]; return result; @@ -92,8 +114,10 @@ class _$AWSProfileFileSerializer @override AWSProfileFile deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new AWSProfileFileBuilder(); final iterator = serialized.iterator; @@ -103,11 +127,15 @@ class _$AWSProfileFileSerializer final Object? value = iterator.current; switch (key) { case 'profiles': - result.profiles.replace(serializers.deserialize(value, + result.profiles.replace( + serializers.deserialize( + value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), - const FullType(AWSProfile) - ]))!); + const FullType(AWSProfile), + ]), + )!, + ); break; } } @@ -123,23 +151,33 @@ class _$AWSProfileSerializer implements StructuredSerializer { final String wireName = 'AWSProfile'; @override - Iterable serialize(Serializers serializers, AWSProfile object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + AWSProfile object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), 'properties', - serializers.serialize(object.properties, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(AWSProperty)])), + serializers.serialize( + object.properties, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AWSProperty), + ]), + ), ]; return result; } @override - AWSProfile deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + AWSProfile deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new AWSProfileBuilder(); final iterator = serialized.iterator; @@ -149,15 +187,23 @@ class _$AWSProfileSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'name': - result.name = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.name = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'properties': - result.properties.replace(serializers.deserialize(value, + result.properties.replace( + serializers.deserialize( + value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), - const FullType(AWSProperty) - ]))!); + const FullType(AWSProperty), + ]), + )!, + ); break; } } @@ -173,26 +219,38 @@ class _$AWSPropertySerializer implements StructuredSerializer { final String wireName = 'AWSProperty'; @override - Iterable serialize(Serializers serializers, AWSProperty object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + AWSProperty object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), 'value', - serializers.serialize(object.value, - specifiedType: const FullType(String)), + serializers.serialize( + object.value, + specifiedType: const FullType(String), + ), 'subProperties', - serializers.serialize(object.subProperties, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(AWSProperty)])), + serializers.serialize( + object.subProperties, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(AWSProperty), + ]), + ), ]; return result; } @override - AWSProperty deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + AWSProperty deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new AWSPropertyBuilder(); final iterator = serialized.iterator; @@ -202,19 +260,31 @@ class _$AWSPropertySerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'name': - result.name = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.name = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'value': - result.value = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.value = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'subProperties': - result.subProperties.replace(serializers.deserialize(value, + result.subProperties.replace( + serializers.deserialize( + value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), - const FullType(AWSProperty) - ]))!); + const FullType(AWSProperty), + ]), + )!, + ); break; } } @@ -232,7 +302,10 @@ class _$AWSProfileFile extends AWSProfileFile { _$AWSProfileFile._({required this.profiles}) : super._() { BuiltValueNullFieldError.checkNotNull( - profiles, r'AWSProfileFile', 'profiles'); + profiles, + r'AWSProfileFile', + 'profiles', + ); } @override @@ -260,8 +333,7 @@ class _$AWSProfileFile extends AWSProfileFile { @override String toString() { return (newBuiltValueToStringHelper(r'AWSProfileFile') - ..add('profiles', profiles)) - .toString(); + ..add('profiles', profiles)).toString(); } } @@ -311,7 +383,10 @@ class AWSProfileFileBuilder profiles.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AWSProfileFile', _$failedField, e.toString()); + r'AWSProfileFile', + _$failedField, + e.toString(), + ); } rethrow; } @@ -332,7 +407,10 @@ class _$AWSProfile extends AWSProfile { _$AWSProfile._({required this.name, required this.properties}) : super._() { BuiltValueNullFieldError.checkNotNull(name, r'AWSProfile', 'name'); BuiltValueNullFieldError.checkNotNull( - properties, r'AWSProfile', 'properties'); + properties, + r'AWSProfile', + 'properties', + ); } @override @@ -410,11 +488,16 @@ class AWSProfileBuilder implements Builder { _$AWSProfile _build() { _$AWSProfile _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AWSProfile._( - name: BuiltValueNullFieldError.checkNotNull( - name, r'AWSProfile', 'name'), - properties: properties.build()); + name: BuiltValueNullFieldError.checkNotNull( + name, + r'AWSProfile', + 'name', + ), + properties: properties.build(), + ); } catch (_) { late String _$failedField; try { @@ -422,7 +505,10 @@ class AWSProfileBuilder implements Builder { properties.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AWSProfile', _$failedField, e.toString()); + r'AWSProfile', + _$failedField, + e.toString(), + ); } rethrow; } @@ -442,13 +528,18 @@ class _$AWSProperty extends AWSProperty { factory _$AWSProperty([void Function(AWSPropertyBuilder)? updates]) => (new AWSPropertyBuilder()..update(updates))._build(); - _$AWSProperty._( - {required this.name, required this.value, required this.subProperties}) - : super._() { + _$AWSProperty._({ + required this.name, + required this.value, + required this.subProperties, + }) : super._() { BuiltValueNullFieldError.checkNotNull(name, r'AWSProperty', 'name'); BuiltValueNullFieldError.checkNotNull(value, r'AWSProperty', 'value'); BuiltValueNullFieldError.checkNotNull( - subProperties, r'AWSProperty', 'subProperties'); + subProperties, + r'AWSProperty', + 'subProperties', + ); } @override @@ -534,13 +625,21 @@ class AWSPropertyBuilder implements Builder { _$AWSProperty _build() { _$AWSProperty _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AWSProperty._( - name: BuiltValueNullFieldError.checkNotNull( - name, r'AWSProperty', 'name'), - value: BuiltValueNullFieldError.checkNotNull( - value, r'AWSProperty', 'value'), - subProperties: subProperties.build()); + name: BuiltValueNullFieldError.checkNotNull( + name, + r'AWSProperty', + 'name', + ), + value: BuiltValueNullFieldError.checkNotNull( + value, + r'AWSProperty', + 'value', + ), + subProperties: subProperties.build(), + ); } catch (_) { late String _$failedField; try { @@ -548,7 +647,10 @@ class AWSPropertyBuilder implements Builder { subProperties.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AWSProperty', _$failedField, e.toString()); + r'AWSProperty', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/aws_common/lib/src/config/aws_service.dart b/packages/aws_common/lib/src/config/aws_service.dart index d7659c55c2..735390c990 100644 --- a/packages/aws_common/lib/src/config/aws_service.dart +++ b/packages/aws_common/lib/src/config/aws_service.dart @@ -85,8 +85,9 @@ class AWSService { static const applicationAutoScaling = AWSService('application-autoscaling'); /// AWS Application Cost Profiler - static const applicationCostProfiler = - AWSService('application-cost-profiler'); + static const applicationCostProfiler = AWSService( + 'application-cost-profiler', + ); /// AWS Application Discovery Service static const applicationDiscoveryService = AWSService('discovery'); @@ -661,12 +662,14 @@ class AWSService { static const licenseManager = AWSService('license-manager'); /// AWS License Manager Linux Subscriptions - static const licenseManagerLinuxSubscriptions = - AWSService('license-manager-linux-subscriptions'); + static const licenseManagerLinuxSubscriptions = AWSService( + 'license-manager-linux-subscriptions', + ); /// AWS License Manager User Subscriptions - static const licenseManagerUserSubscriptions = - AWSService('license-manager-user-subscriptions'); + static const licenseManagerUserSubscriptions = AWSService( + 'license-manager-user-subscriptions', + ); /// Amazon Lightsail static const lightsail = AWSService('lightsail'); @@ -715,8 +718,9 @@ class AWSService { static const marketplaceCatalog = AWSService('aws-marketplace'); /// AWS Marketplace Commerce Analytics - static const marketplaceCommerceAnalytics = - AWSService('marketplacecommerceanalytics'); + static const marketplaceCommerceAnalytics = AWSService( + 'marketplacecommerceanalytics', + ); /// AWS Marketplace Deployment Service static const marketplaceDeployment = AWSService('aws-marketplace'); @@ -770,8 +774,9 @@ class AWSService { static const migrationHubConfig = AWSService('mgh'); /// AWS Migration Hub Orchestrator - static const migrationHubOrchestrator = - AWSService('migrationhub-orchestrator'); + static const migrationHubOrchestrator = AWSService( + 'migrationhub-orchestrator', + ); /// AWS Migration Hub Refactor Spaces static const migrationHubRefactorSpaces = AWSService('refactor-spaces'); @@ -970,12 +975,14 @@ class AWSService { static const route53RecoveryCluster = AWSService('route53-recovery-cluster'); /// AWS Route53 Recovery Control Config - static const route53RecoveryControlConfig = - AWSService('route53-recovery-control-config'); + static const route53RecoveryControlConfig = AWSService( + 'route53-recovery-control-config', + ); /// AWS Route53 Recovery Readiness - static const route53RecoveryReadiness = - AWSService('route53-recovery-readiness'); + static const route53RecoveryReadiness = AWSService( + 'route53-recovery-readiness', + ); /// Amazon Route 53 Resolver static const route53Resolver = AWSService('route53resolver'); diff --git a/packages/aws_common/lib/src/config/config_file/file_loader.dart b/packages/aws_common/lib/src/config/config_file/file_loader.dart index bfae113eea..21f1d7bbe2 100644 --- a/packages/aws_common/lib/src/config/config_file/file_loader.dart +++ b/packages/aws_common/lib/src/config/config_file/file_loader.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library aws_common.config_file.file_loader; +library; import 'package:aws_common/aws_common.dart'; import 'package:aws_common/src/config/aws_path_provider.dart'; @@ -19,9 +19,8 @@ import 'package:meta/meta.dart'; /// {@endtemplate} abstract class AWSFileLoader { /// {@macro aws_common.config_file.file_loader} - const factory AWSFileLoader({ - AWSPathProvider? pathProvider, - }) = AWSFileLoaderImpl; + const factory AWSFileLoader({AWSPathProvider? pathProvider}) = + AWSFileLoaderImpl; /// {@macro aws_common.config_file.file_loader} @protected @@ -31,10 +30,7 @@ abstract class AWSFileLoader { static final AWSLogger logger = AWSLogger('AWSFileLoader'); /// Loads the file at [filepath] or returns the empty string if unavailable. - Future loadFile( - AWSProfileFileType type, - String filepath, - ); + Future loadFile(AWSProfileFileType type, String filepath); } /// {@template aws_common.config_file.profile_file_loader} @@ -43,9 +39,7 @@ abstract class AWSFileLoader { /// {@endtemplate} class AWSProfileFileLoader { /// {@macro aws_common.config_file.profile_file_loader} - const AWSProfileFileLoader([ - this._fileLoader = const AWSFileLoader(), - ]); + const AWSProfileFileLoader([this._fileLoader = const AWSFileLoader()]); final AWSFileLoader _fileLoader; @@ -73,9 +67,6 @@ class AWSProfileFileLoader { final parsedConfig = AWSProfileFileParser(configFile).parse(); final parsedCredentials = AWSProfileFileParser(credentialsFile).parse(); - return AWSProfileFileStandardizer.merge( - parsedConfig, - parsedCredentials, - ); + return AWSProfileFileStandardizer.merge(parsedConfig, parsedCredentials); } } diff --git a/packages/aws_common/lib/src/config/config_file/file_loader_io.dart b/packages/aws_common/lib/src/config/config_file/file_loader_io.dart index 753e5f5a84..5f4bee18d2 100644 --- a/packages/aws_common/lib/src/config/config_file/file_loader_io.dart +++ b/packages/aws_common/lib/src/config/config_file/file_loader_io.dart @@ -11,10 +11,9 @@ import 'package:aws_common/src/config/config_file/resolved_file.dart'; /// {@macro aws_common.config_file.file_loader} class AWSFileLoaderImpl extends AWSFileLoader { /// {@macro aws_common.config_file.file_loader} - const AWSFileLoaderImpl({ - AWSPathProvider? pathProvider, - }) : _pathProvider = pathProvider ?? const AWSPathProvider(), - super.protected(); + const AWSFileLoaderImpl({AWSPathProvider? pathProvider}) + : _pathProvider = pathProvider ?? const AWSPathProvider(), + super.protected(); /// The path provider for locating configuration files. final AWSPathProvider _pathProvider; @@ -38,10 +37,6 @@ class AWSFileLoaderImpl extends AWSFileLoader { AWSFileLoader.logger.warn('File does not exist: $resolvedFilepath'); return _empty(type); } - return ResolvedFile( - type, - await file.readAsString(), - resolvedFilepath, - ); + return ResolvedFile(type, await file.readAsString(), resolvedFilepath); } } diff --git a/packages/aws_common/lib/src/config/config_file/file_loader_stub.dart b/packages/aws_common/lib/src/config/config_file/file_loader_stub.dart index 0f529e26f1..a908341a27 100644 --- a/packages/aws_common/lib/src/config/config_file/file_loader_stub.dart +++ b/packages/aws_common/lib/src/config/config_file/file_loader_stub.dart @@ -11,15 +11,10 @@ import 'package:aws_common/src/config/config_file/resolved_file.dart'; /// {@macro aws_common.config_file.file_loader} class AWSFileLoaderImpl extends AWSFileLoader { /// {@macro aws_common.config_file.file_loader} - const AWSFileLoaderImpl({ - AWSPathProvider? pathProvider, - }) : super.protected(); + const AWSFileLoaderImpl({AWSPathProvider? pathProvider}) : super.protected(); @override - Future loadFile( - AWSProfileFileType type, - String filepath, - ) => + Future loadFile(AWSProfileFileType type, String filepath) => Future.error( StateError( 'Loading configuration files is currently not supported on ' diff --git a/packages/aws_common/lib/src/config/config_file/parser.dart b/packages/aws_common/lib/src/config/config_file/parser.dart index 50d1425d5f..c2d87e0146 100644 --- a/packages/aws_common/lib/src/config/config_file/parser.dart +++ b/packages/aws_common/lib/src/config/config_file/parser.dart @@ -59,12 +59,10 @@ class AWSProfileFileParser { ); } final profileName = line.replaceAll(brackets, '').trim(); - _currentProfile = _configFileBuilder - .build() - .profiles[profileName] - ?.toBuilder() ?? - AWSProfileBuilder() - ..name = profileName; + _currentProfile = + _configFileBuilder.build().profiles[profileName]?.toBuilder() ?? + AWSProfileBuilder() + ..name = profileName; } AWSProperty _parseProperty(String propertyDefinition) { @@ -91,10 +89,11 @@ class AWSProfileFileParser { } return AWSProperty( name: propertyName, - value: propertyDefinition - .substring(separatorIndex + 1) - .trimTrailingComments() - .trim(), + value: + propertyDefinition + .substring(separatorIndex + 1) + .trimTrailingComments() + .trim(), ); } @@ -112,17 +111,13 @@ class AWSProfileFileParser { final newProperty = _parseProperty(line); final propertyName = newProperty.name; _currentProperty = propertyName; - currentProfile.properties.updateValue( - propertyName, - (existing) { - _logger.warn( - 'Duplicate property `$propertyName` detected in profile ' - '`${_currentProfile!.name}. The later one will be used.', - ); - return newProperty; - }, - ifAbsent: () => newProperty, - ); + currentProfile.properties.updateValue(propertyName, (existing) { + _logger.warn( + 'Duplicate property `$propertyName` detected in profile ' + '`${_currentProfile!.name}. The later one will be used.', + ); + return newProperty; + }, ifAbsent: () => newProperty); } /// PropertyContinuation = Whitespace Value @@ -197,9 +192,10 @@ class AWSProfileFileParser { } _finishProfile(); - return _cache[_resolvedFile] = _standardizer - .standardize(_configFileBuilder, _resolvedFile.type) - .build(); + return _cache[_resolvedFile] = + _standardizer + .standardize(_configFileBuilder, _resolvedFile.type) + .build(); } bool _isCommentLine(String line) => diff --git a/packages/aws_common/lib/src/config/config_file/resolved_file.dart b/packages/aws_common/lib/src/config/config_file/resolved_file.dart index 8eeb8e0bb9..891ce860f1 100644 --- a/packages/aws_common/lib/src/config/config_file/resolved_file.dart +++ b/packages/aws_common/lib/src/config/config_file/resolved_file.dart @@ -14,9 +14,7 @@ class ResolvedFile with AWSEquatable { const ResolvedFile(this.type, this.contents, [this.filepath]); /// An empty file. - const ResolvedFile.empty(this.type) - : filepath = null, - contents = ''; + const ResolvedFile.empty(this.type) : filepath = null, contents = ''; /// The type of profile file this represents. final AWSProfileFileType type; diff --git a/packages/aws_common/lib/src/config/config_file/standardizer.dart b/packages/aws_common/lib/src/config/config_file/standardizer.dart index d3b211f2c3..2398d3627e 100644 --- a/packages/aws_common/lib/src/config/config_file/standardizer.dart +++ b/packages/aws_common/lib/src/config/config_file/standardizer.dart @@ -72,10 +72,7 @@ class AWSProfileFileStandardizer { final credentialsProfile = profile.value; config.profiles.updateValue( credentialsProfileName, - (configProfile) => _mergeProfiles( - configProfile, - credentialsProfile, - ), + (configProfile) => _mergeProfiles(configProfile, credentialsProfile), ifAbsent: () => credentialsProfile, ); } @@ -153,10 +150,7 @@ class AWSProfileFileStandardizer { builder.clear(); for (final profile in profiles.entries) { final profileName = profile.key; - final standardizedName = _standardizeProfileName( - type, - profileName, - ); + final standardizedName = _standardizeProfileName(type, profileName); if (standardizedName == null) { continue; } @@ -186,14 +180,15 @@ class AWSProfileFileStandardizer { } builder[standardizedName] = profile.value.rebuild( - (p) => p - ..name = standardizedName - ..properties.replace( - _standardizeProperties( - standardizedName, - p.properties.build(), - ), - ), + (p) => + p + ..name = standardizedName + ..properties.replace( + _standardizeProperties( + standardizedName, + p.properties.build(), + ), + ), ); } }); diff --git a/packages/aws_common/lib/src/config/config_file/terms.dart b/packages/aws_common/lib/src/config/config_file/terms.dart index 937835aa7e..4eaa13ee9d 100644 --- a/packages/aws_common/lib/src/config/config_file/terms.dart +++ b/packages/aws_common/lib/src/config/config_file/terms.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library aws_common.config.config_file.terms; +library; import 'package:meta/meta.dart'; diff --git a/packages/aws_common/lib/src/credentials/aws_credentials.dart b/packages/aws_common/lib/src/credentials/aws_credentials.dart index 4061da200e..8a8dbe02cf 100644 --- a/packages/aws_common/lib/src/credentials/aws_credentials.dart +++ b/packages/aws_common/lib/src/credentials/aws_credentials.dart @@ -41,11 +41,11 @@ class AWSCredentials @override List get props => [ - accessKeyId, - secretAccessKey, - sessionToken, - expiration?.toUtc(), - ]; + accessKeyId, + secretAccessKey, + sessionToken, + expiration?.toUtc(), + ]; @override Map toJson() => _$AWSCredentialsToJson(this); diff --git a/packages/aws_common/lib/src/credentials/aws_credentials_provider.dart b/packages/aws_common/lib/src/credentials/aws_credentials_provider.dart index 8450c4992b..518cef6fcc 100644 --- a/packages/aws_common/lib/src/credentials/aws_credentials_provider.dart +++ b/packages/aws_common/lib/src/credentials/aws_credentials_provider.dart @@ -32,7 +32,7 @@ class InvalidCredentialsException implements Exception { /// Exception thrown when AWS credentials could not be loaded by an /// [AWSCredentialsProvider]. const InvalidCredentialsException.couldNotLoad([String? message]) - : this(message ?? 'Could not load credentials'); + : this(message ?? 'Could not load credentials'); /// Further information about the exception, if any. final String? message; diff --git a/packages/aws_common/lib/src/credentials/aws_credentials_provider_chain.dart b/packages/aws_common/lib/src/credentials/aws_credentials_provider_chain.dart index 60be9ec5c4..29ea95c3a3 100644 --- a/packages/aws_common/lib/src/credentials/aws_credentials_provider_chain.dart +++ b/packages/aws_common/lib/src/credentials/aws_credentials_provider_chain.dart @@ -50,10 +50,10 @@ final class DefaultCredentialsProviderChain @override List get chain => const [ - EnvironmentCredentialsProvider(), - ProfileCredentialsProvider(), - // TODO(dnys1): EC2 IMDS + ECS - ]; + EnvironmentCredentialsProvider(), + ProfileCredentialsProvider(), + // TODO(dnys1): EC2 IMDS + ECS + ]; @override String get runtimeTypeName => 'DefaultCredentialsProviderChain'; diff --git a/packages/aws_common/lib/src/exception/aws_http_exception.dart b/packages/aws_common/lib/src/exception/aws_http_exception.dart index cd410a36bc..4918468b23 100644 --- a/packages/aws_common/lib/src/exception/aws_http_exception.dart +++ b/packages/aws_common/lib/src/exception/aws_http_exception.dart @@ -15,11 +15,7 @@ class AWSHttpException implements Exception { if (underlyingException is AWSHttpException) { return underlyingException; } - return AWSHttpException._( - request.method, - request.uri, - underlyingException, - ); + return AWSHttpException._(request.method, request.uri, underlyingException); } const AWSHttpException._(this.method, this.uri, this.underlyingException); @@ -34,6 +30,7 @@ class AWSHttpException implements Exception { final Object? underlyingException; @override - String toString() => '${method.value} $uri failed' + String toString() => + '${method.value} $uri failed' '${underlyingException == null ? '' : ': $underlyingException'}'; } diff --git a/packages/aws_common/lib/src/exception/cancellation_exception.dart b/packages/aws_common/lib/src/exception/cancellation_exception.dart index fafd3c1607..c1b1d67172 100644 --- a/packages/aws_common/lib/src/exception/cancellation_exception.dart +++ b/packages/aws_common/lib/src/exception/cancellation_exception.dart @@ -12,6 +12,7 @@ class CancellationException implements Exception { final String? operationId; @override - String toString() => 'The operation was cancelled' + String toString() => + 'The operation was cancelled' '${operationId == null ? '' : ' ($operationId)'}'; } diff --git a/packages/aws_common/lib/src/http/alpn_protocol.dart b/packages/aws_common/lib/src/http/alpn_protocol.dart index 19621695be..cecebfd802 100644 --- a/packages/aws_common/lib/src/http/alpn_protocol.dart +++ b/packages/aws_common/lib/src/http/alpn_protocol.dart @@ -47,11 +47,7 @@ enum SupportedProtocols { /// /// **Note**: Currently this only supports HTTP/3 on the Web via `fetch`. /// HTTP/3 is not supported on VM. - http1_2_3._([ - AlpnProtocol.http1_1, - AlpnProtocol.http2, - AlpnProtocol.http3, - ]); + http1_2_3._([AlpnProtocol.http1_1, AlpnProtocol.http2, AlpnProtocol.http3]); const SupportedProtocols._(this.protocols); diff --git a/packages/aws_common/lib/src/http/aws_http_client.dart b/packages/aws_common/lib/src/http/aws_http_client.dart index 9edcb3d189..18a24e79b6 100644 --- a/packages/aws_common/lib/src/http/aws_http_client.dart +++ b/packages/aws_common/lib/src/http/aws_http_client.dart @@ -96,9 +96,7 @@ abstract class AWSBaseHttpClient extends AWSCustomHttpClient { @protected @visibleForOverriding @mustCallSuper - Future transformRequest( - AWSBaseHttpRequest request, - ); + Future transformRequest(AWSBaseHttpRequest request); /// Transforms a [response] before returning from [send]. /// @@ -107,8 +105,7 @@ abstract class AWSBaseHttpClient extends AWSCustomHttpClient { @visibleForOverriding Future transformResponse( AWSBaseHttpResponse response, - ) async => - response; + ) async => response; Future?> _send( AWSBaseHttpRequest request, @@ -125,15 +122,9 @@ abstract class AWSBaseHttpClient extends AWSCustomHttpClient { return null; } final operation = baseClient?.send(request) ?? super.send(request); - unawaited( - operation.requestProgress.forward(requestProgressController), - ); - unawaited( - operation.responseProgress.forward(responseProgressController), - ); - completer.completeOperation( - operation.operation.then(transformResponse), - ); + unawaited(operation.requestProgress.forward(requestProgressController)); + unawaited(operation.responseProgress.forward(responseProgressController)); + completer.completeOperation(operation.operation.then(transformResponse)); return operation; } @@ -146,10 +137,12 @@ abstract class AWSBaseHttpClient extends AWSCustomHttpClient { AWSBaseHttpRequest request, { FutureOr Function()? onCancel, }) { - final requestProgressController = - StreamController.broadcast(sync: true); - final responseProgressController = - StreamController.broadcast(sync: true); + final requestProgressController = StreamController.broadcast( + sync: true, + ); + final responseProgressController = StreamController.broadcast( + sync: true, + ); final completer = CancelableCompleter( onCancel: () { diff --git a/packages/aws_common/lib/src/http/aws_http_client_io.dart b/packages/aws_common/lib/src/http/aws_http_client_io.dart index 7e8485fd88..8aea66e0f4 100644 --- a/packages/aws_common/lib/src/http/aws_http_client_io.dart +++ b/packages/aws_common/lib/src/http/aws_http_client_io.dart @@ -66,14 +66,15 @@ class AWSHttpClientImpl extends AWSHttpClient { _inner ??= HttpClient(); _setBadCertificateCallback(_inner!, onBadCertificate); if (completer.isCanceled) return; - final ioRequest = (await _inner!.openUrl(request.method.value, request.uri)) - ..followRedirects = request.followRedirects - ..maxRedirects = request.maxRedirects - // TODO(dnys1-HuiSF): follow up on the cause issue - // https://github.com/flutter/flutter/issues/41573 - // disable this option for now to ensure stability of Storage integration - // test suite. - ..persistentConnection = false; + final ioRequest = + (await _inner!.openUrl(request.method.value, request.uri)) + ..followRedirects = request.followRedirects + ..maxRedirects = request.maxRedirects + // TODO(dnys1-HuiSF): follow up on the cause issue + // https://github.com/flutter/flutter/issues/41573 + // disable this option for now to ensure stability of Storage integration + // test suite. + ..persistentConnection = false; if (request.hasContentLength) { ioRequest.contentLength = request.contentLength as int; } else { @@ -90,21 +91,23 @@ class AWSHttpClientImpl extends AWSHttpClient { var requestBytesRead = 0; request.headers.forEach(ioRequest.headers.set); - final response = await request.body - .tap( - (chunk) { - requestBytesRead += chunk.length; - requestProgress.add(requestBytesRead); - }, - onDone: () { - if (!cancelTrigger.isCompleted) { - logger.verbose('Request sent'); - } - requestProgress.close(); - }, - ) - .takeUntil(cancelTrigger.future) - .pipe(ioRequest) as HttpClientResponse; + final response = + await request.body + .tap( + (chunk) { + requestBytesRead += chunk.length; + requestProgress.add(requestBytesRead); + }, + onDone: () { + if (!cancelTrigger.isCompleted) { + logger.verbose('Request sent'); + } + requestProgress.close(); + }, + ) + .takeUntil(cancelTrigger.future) + .pipe(ioRequest) + as HttpClientResponse; if (completer.isCanceled) return; @@ -132,9 +135,7 @@ class AWSHttpClientImpl extends AWSHttpClient { socket.destroy(); }); }; - unawaited( - response.forward(bodyController, cancelOnError: true), - ); + unawaited(response.forward(bodyController, cancelOnError: true)); logger.verbose('Received headers'); final headers = {}; @@ -197,28 +198,27 @@ class AWSHttpClientImpl extends AWSHttpClient { List<_RedirectInfo> redirects, AWSHttpMethod method, Uri uri, - ) => - [ - Header(':method'.codeUnits, utf8.encode(method.value)), + ) => [ + Header(':method'.codeUnits, utf8.encode(method.value)), + Header( + ':path'.codeUnits, + utf8.encode('${uri.path}${uri.hasQuery ? '?${uri.query}' : ''}'), + ), + Header(':scheme'.codeUnits, utf8.encode(uri.scheme)), + Header( + ':authority'.codeUnits, + utf8.encode('${uri.host}${uri.hasPort ? ':${uri.port}' : ''}'), + ), + for (final entry in request.headers.entries) + if (redirects.isEmpty || + _shouldCopyHeaderOnRedirect(entry.key, request.uri, uri)) Header( - ':path'.codeUnits, - utf8.encode('${uri.path}${uri.hasQuery ? '?${uri.query}' : ''}'), + // Lower-case headers due to: + // https://github.com/dart-lang/http2/issues/49 + utf8.encode(entry.key.toLowerCase()), + utf8.encode(entry.value), ), - Header(':scheme'.codeUnits, utf8.encode(uri.scheme)), - Header( - ':authority'.codeUnits, - utf8.encode('${uri.host}${uri.hasPort ? ':${uri.port}' : ''}'), - ), - for (final entry in request.headers.entries) - if (redirects.isEmpty || - _shouldCopyHeaderOnRedirect(entry.key, request.uri, uri)) - Header( - // Lower-case headers due to: - // https://github.com/dart-lang/http2/issues/49 - utf8.encode(entry.key.toLowerCase()), - utf8.encode(entry.value), - ), - ]; + ]; /// Sends an HTTP/2 request using `package:http2`. Future _sendH2({ @@ -267,14 +267,15 @@ class AWSHttpClientImpl extends AWSHttpClient { ); return null; } - final transport = _http2Connections[uri.authority] ??= - ClientTransportConnection.viaSocket(socket) - ..onActiveStateChanged = (isActive) { - if (!isActive) { - _logger.verbose('Closing transport: ${uri.authority}'); - _http2Connections.remove(uri.authority)?.finish(); - } - }; + final transport = + _http2Connections[uri.authority] ??= + ClientTransportConnection.viaSocket(socket) + ..onActiveStateChanged = (isActive) { + if (!isActive) { + _logger.verbose('Closing transport: ${uri.authority}'); + _http2Connections.remove(uri.authority)?.finish(); + } + }; final stream = transport.makeRequest( _requiredH2Headers(request, redirects, method, uri), ); diff --git a/packages/aws_common/lib/src/http/aws_http_client_js.dart b/packages/aws_common/lib/src/http/aws_http_client_js.dart index 1cc642e70b..e9a2d72967 100644 --- a/packages/aws_common/lib/src/http/aws_http_client_js.dart +++ b/packages/aws_common/lib/src/http/aws_http_client_js.dart @@ -59,18 +59,20 @@ class AWSHttpClientImpl extends AWSHttpClient { // - https://developer.chrome.com/articles/fetch-streaming-requests/#doesnt-work-on-http1x // - https://developer.chrome.com/articles/fetch-streaming-requests/#incompatibility-outside-of-your-control var requestBytesRead = 0; - final stream = request.body.tap( - (chunk) { - requestBytesRead += chunk.length; - requestProgressController.add(requestBytesRead); - }, - onDone: () { - if (!cancelTrigger.isCompleted) { - logger.verbose('Request sent'); - } - requestProgressController.close(); - }, - ).takeUntil(cancelTrigger.future); + final stream = request.body + .tap( + (chunk) { + requestBytesRead += chunk.length; + requestProgressController.add(requestBytesRead); + }, + onDone: () { + if (!cancelTrigger.isCompleted) { + logger.verbose('Request sent'); + } + requestProgressController.close(); + }, + ) + .takeUntil(cancelTrigger.future); final body = Uint8List.fromList(await collectBytes(stream)); if (completer.isCanceled) return; @@ -111,9 +113,7 @@ class AWSHttpClientImpl extends AWSHttpClient { cancelOnError: true, ), ); - unawaited( - streamView.forward(bodyController, cancelOnError: true), - ); + unawaited(streamView.forward(bodyController, cancelOnError: true)); final streamedResponse = AWSStreamedHttpResponse( statusCode: resp.status, headers: resp.headers, @@ -130,10 +130,7 @@ class AWSHttpClientImpl extends AWSHttpClient { ); completer.complete(streamedResponse); } on Object catch (e, st) { - completer.completeError( - AWSHttpException(request, e), - st, - ); + completer.completeError(AWSHttpException(request, e), st); } } @@ -178,9 +175,7 @@ class AWSHttpClientImpl extends AWSHttpClient { completer: completer, cancelTrigger: cancelTrigger, ).catchError( - (Object e, st) => completer.completeError( - AWSHttpException(request, e), - ), + (Object e, st) => completer.completeError(AWSHttpException(request, e)), ); _openConnections.add(WeakReference(operation)); return operation; diff --git a/packages/aws_common/lib/src/http/aws_http_operation.dart b/packages/aws_common/lib/src/http/aws_http_operation.dart index 257dfb0fc1..b598f99497 100644 --- a/packages/aws_common/lib/src/http/aws_http_operation.dart +++ b/packages/aws_common/lib/src/http/aws_http_operation.dart @@ -10,7 +10,8 @@ import 'package:aws_common/aws_common.dart'; /// in-flight HTTP requests sent with an [AWSHttpClient]. /// {@endtemplate} class AWSHttpOperation - extends AWSOperation with AWSProgressOperation { + extends AWSOperation + with AWSProgressOperation { /// Creates an [AWSHttpOperation] from a [CancelableOperation]. AWSHttpOperation( super.operation, { diff --git a/packages/aws_common/lib/src/http/aws_http_request.dart b/packages/aws_common/lib/src/http/aws_http_request.dart index e302d94937..bd3ab9277e 100644 --- a/packages/aws_common/lib/src/http/aws_http_request.dart +++ b/packages/aws_common/lib/src/http/aws_http_request.dart @@ -31,10 +31,10 @@ sealed class AWSBaseHttpRequest Map? headers, bool? followRedirects, int? maxRedirects, - }) : _queryParameters = queryParameters, - headers = CaseInsensitiveMap(headers ?? {}), - followRedirects = followRedirects ?? true, - maxRedirects = maxRedirects ?? 5; + }) : _queryParameters = queryParameters, + headers = CaseInsensitiveMap(headers ?? {}), + followRedirects = followRedirects ?? true, + maxRedirects = maxRedirects ?? 5; /// The method of the request. final AWSHttpMethod method; @@ -176,15 +176,15 @@ class AWSHttpRequest extends AWSBaseHttpRequest { List? body, super.followRedirects, super.maxRedirects, - }) : bodyBytes = body ?? const [], - contentLength = body?.length ?? 0, - super._( - scheme: uri.scheme, - host: uri.host, - port: uri.hasPort ? uri.port : null, - path: uri.path, - queryParameters: uri.hasQuery ? uri.queryParametersAll : null, - ); + }) : bodyBytes = body ?? const [], + contentLength = body?.length ?? 0, + super._( + scheme: uri.scheme, + host: uri.host, + port: uri.hasPort ? uri.port : null, + path: uri.path, + queryParameters: uri.hasQuery ? uri.queryParametersAll : null, + ); /// Creates a "raw", or unprocessed, HTTP request. Since the [Uri] constructor /// will normalize paths by default, this constructor provides an escape hatch @@ -203,9 +203,9 @@ class AWSHttpRequest extends AWSBaseHttpRequest { List? body, super.followRedirects, super.maxRedirects, - }) : bodyBytes = body ?? const [], - contentLength = body?.length ?? 0, - super._(); + }) : bodyBytes = body ?? const [], + contentLength = body?.length ?? 0, + super._(); /// Creates a `GET` request for [uri]. AWSHttpRequest.get( @@ -214,12 +214,12 @@ class AWSHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.get, - uri: uri, - headers: headers, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.get, + uri: uri, + headers: headers, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `HEAD` request for [uri]. AWSHttpRequest.head( @@ -228,12 +228,12 @@ class AWSHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.head, - uri: uri, - headers: headers, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.head, + uri: uri, + headers: headers, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `PUT` request for [uri]. AWSHttpRequest.put( @@ -243,13 +243,13 @@ class AWSHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.put, - uri: uri, - body: body, - headers: headers, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.put, + uri: uri, + body: body, + headers: headers, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `POST` request for [uri]. AWSHttpRequest.post( @@ -259,13 +259,13 @@ class AWSHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.post, - uri: uri, - body: body, - headers: headers, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.post, + uri: uri, + body: body, + headers: headers, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `PATCH` request for [uri]. AWSHttpRequest.patch( @@ -275,13 +275,13 @@ class AWSHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.patch, - uri: uri, - body: body, - headers: headers, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.patch, + uri: uri, + body: body, + headers: headers, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `DELETE` request for [uri]. AWSHttpRequest.delete( @@ -291,13 +291,13 @@ class AWSHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.delete, - uri: uri, - body: body, - headers: headers, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.delete, + uri: uri, + body: body, + headers: headers, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); @override Stream> get body => @@ -342,15 +342,15 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { int? contentLength, super.followRedirects, super.maxRedirects, - }) : _body = body ?? const Stream.empty(), - _contentLength = contentLength, - super._( - scheme: uri.scheme, - host: uri.host, - port: uri.hasPort ? uri.port : null, - path: uri.path, - queryParameters: uri.hasQuery ? uri.queryParametersAll : null, - ) { + }) : _body = body ?? const Stream.empty(), + _contentLength = contentLength, + super._( + scheme: uri.scheme, + host: uri.host, + port: uri.hasPort ? uri.port : null, + path: uri.path, + queryParameters: uri.hasQuery ? uri.queryParametersAll : null, + ) { _setContentTypeIfProvided(body); } @@ -375,9 +375,9 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { int? contentLength, super.followRedirects, super.maxRedirects, - }) : _body = body ?? const Stream.empty(), - _contentLength = contentLength, - super._() { + }) : _body = body ?? const Stream.empty(), + _contentLength = contentLength, + super._() { _setContentTypeIfProvided(body); } @@ -388,13 +388,13 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.get, - uri: uri, - headers: headers, - contentLength: 0, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.get, + uri: uri, + headers: headers, + contentLength: 0, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `HEAD` request for [uri]. AWSStreamedHttpRequest.head( @@ -403,13 +403,13 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.head, - uri: uri, - headers: headers, - contentLength: 0, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.head, + uri: uri, + headers: headers, + contentLength: 0, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `POST` request for [uri]. AWSStreamedHttpRequest.post( @@ -420,14 +420,14 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.post, - uri: uri, - headers: headers, - body: body, - contentLength: contentLength, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.post, + uri: uri, + headers: headers, + body: body, + contentLength: contentLength, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `PUT` request for [uri]. AWSStreamedHttpRequest.put( @@ -438,14 +438,14 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.put, - uri: uri, - headers: headers, - body: body, - contentLength: contentLength, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.put, + uri: uri, + headers: headers, + body: body, + contentLength: contentLength, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `PATCH` request for [uri]. AWSStreamedHttpRequest.patch( @@ -456,14 +456,14 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.patch, - uri: uri, - headers: headers, - body: body, - contentLength: contentLength, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.patch, + uri: uri, + headers: headers, + body: body, + contentLength: contentLength, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); /// Creates a `DELETE` request for [uri]. AWSStreamedHttpRequest.delete( @@ -474,14 +474,14 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { bool? followRedirects, int? maxRedirects, }) : this( - method: AWSHttpMethod.delete, - uri: uri, - headers: headers, - body: body, - contentLength: contentLength, - followRedirects: followRedirects, - maxRedirects: maxRedirects, - ); + method: AWSHttpMethod.delete, + uri: uri, + headers: headers, + body: body, + contentLength: contentLength, + followRedirects: followRedirects, + maxRedirects: maxRedirects, + ); void _setContentTypeIfProvided(Stream>? body) { if (body is HttpPayload && body.contentType != null) { @@ -536,9 +536,10 @@ class AWSStreamedHttpRequest extends AWSBaseHttpRequest { bool get hasContentLength => _contentLength != null; @override - late final FutureOr contentLength = (_contentLength ?? - split().fold(0, (length, el) => length + el.length)) - as FutureOr; + late final FutureOr contentLength = + (_contentLength ?? + split().fold(0, (length, el) => length + el.length)) + as FutureOr; @override Future close() => _splitter?.close() ?? Future.value(); diff --git a/packages/aws_common/lib/src/http/aws_http_response.dart b/packages/aws_common/lib/src/http/aws_http_response.dart index 426d6b930d..e17a6d1e66 100644 --- a/packages/aws_common/lib/src/http/aws_http_response.dart +++ b/packages/aws_common/lib/src/http/aws_http_response.dart @@ -22,9 +22,7 @@ sealed class AWSBaseHttpResponse AWSBaseHttpResponse._({ required this.statusCode, Map? headers, - }) : headers = UnmodifiableMapView( - CaseInsensitiveMap(headers ?? const {}), - ); + }) : headers = UnmodifiableMapView(CaseInsensitiveMap(headers ?? const {})); /// The response's status code. final int statusCode; @@ -46,12 +44,9 @@ sealed class AWSBaseHttpResponse @immutable class AWSHttpResponse extends AWSBaseHttpResponse { /// {@macro aws_common.aws_http_response} - AWSHttpResponse({ - required super.statusCode, - super.headers, - List? body, - }) : bodyBytes = body ?? const [], - super._(); + AWSHttpResponse({required super.statusCode, super.headers, List? body}) + : bodyBytes = body ?? const [], + super._(); @override Stream> get body => @@ -79,8 +74,8 @@ class AWSStreamedHttpResponse extends AWSBaseHttpResponse { required super.statusCode, super.headers, required Stream> body, - }) : _body = body, - super._(); + }) : _body = body, + super._(); /// Handles splitting [_body] into multiple single-subscription streams. StreamSplitter>? _splitter; diff --git a/packages/aws_common/lib/src/http/http_payload.dart b/packages/aws_common/lib/src/http/http_payload.dart index 228683e020..9178839fa4 100644 --- a/packages/aws_common/lib/src/http/http_payload.dart +++ b/packages/aws_common/lib/src/http/http_payload.dart @@ -43,48 +43,42 @@ final class HttpPayload extends StreamView> { String body, { Encoding encoding = utf8, String? contentType, - }) : contentType = contentType ?? 'text/plain; charset=${encoding.name}', - super(LazyStream(() => Stream.value(encoding.encode(body)))); + }) : contentType = contentType ?? 'text/plain; charset=${encoding.name}', + super(LazyStream(() => Stream.value(encoding.encode(body)))); /// A byte buffer HTTP body. - HttpPayload.bytes( - List body, { - this.contentType, - }) : super(Stream.value(body)); + HttpPayload.bytes(List body, {this.contentType}) + : super(Stream.value(body)); /// A form-encoded body of `key=value` pairs. HttpPayload.formFields( Map body, { Encoding encoding = utf8, String? contentType, - }) : contentType = contentType ?? - 'application/x-www-form-urlencoded; charset=${encoding.name}', - super( - LazyStream( - () => Stream.value( - encoding.encode(encodeFormValues(body, encoding: encoding)), - ), - ), - ); + }) : contentType = + contentType ?? + 'application/x-www-form-urlencoded; charset=${encoding.name}', + super( + LazyStream( + () => Stream.value( + encoding.encode(encodeFormValues(body, encoding: encoding)), + ), + ), + ); /// Encodes body as a JSON string and sets Content-Type to 'application/json'. HttpPayload.json( Object? body, { Encoding encoding = utf8, String? contentType, - }) : contentType = - contentType ?? 'application/json; charset=${encoding.name}', - super( - LazyStream( - () => Stream.value(encoding.encode(json.encode(body))), - ), - ); + }) : contentType = + contentType ?? 'application/json; charset=${encoding.name}', + super( + LazyStream(() => Stream.value(encoding.encode(json.encode(body)))), + ); /// A streaming HTTP body. - const HttpPayload.streaming( - super.body, { - this.contentType, - }); + const HttpPayload.streaming(super.body, {this.contentType}); /// A data url HTTP body. factory HttpPayload.dataUrl(String dataUrl) { @@ -123,15 +117,14 @@ final class HttpPayload extends StreamView> { static String encodeFormValues( Map params, { required Encoding encoding, - }) => - params.entries - .map( - (e) => [ - Uri.encodeQueryComponent(e.key, encoding: encoding), - Uri.encodeQueryComponent(e.value, encoding: encoding), - ].join('='), - ) - .join('&'); + }) => params.entries + .map( + (e) => [ + Uri.encodeQueryComponent(e.key, encoding: encoding), + Uri.encodeQueryComponent(e.value, encoding: encoding), + ].join('='), + ) + .join('&'); /// A [RegExp] matcher for data urls. @internal diff --git a/packages/aws_common/lib/src/http/mock.dart b/packages/aws_common/lib/src/http/mock.dart index a0e8319890..7879e41176 100644 --- a/packages/aws_common/lib/src/http/mock.dart +++ b/packages/aws_common/lib/src/http/mock.dart @@ -7,10 +7,11 @@ import 'package:aws_common/aws_common.dart'; import 'package:stream_transform/stream_transform.dart'; /// A mock request handler for use with [MockAWSHttpClient]. -typedef MockRequestHandler = FutureOr Function( - AWSHttpRequest request, - bool Function() isCancelled, -); +typedef MockRequestHandler = + FutureOr Function( + AWSHttpRequest request, + bool Function() isCancelled, + ); /// {@template aws_common.http.aws_mock_http_client} /// A mock [AWSHttpClient] for use in tests. @@ -35,10 +36,7 @@ class MockAWSHttpClient extends AWSCustomHttpClient { final readRequest = await request.read(); requestProgress.add(readRequest.bodyBytes.length); unawaited(requestProgress.close()); - final response = await _handler( - readRequest, - () => isCancelled, - ); + final response = await _handler(readRequest, () => isCancelled); if (response is AWSHttpResponse) { responseProgress.add(response.bodyBytes.length); unawaited(responseProgress.close()); diff --git a/packages/aws_common/lib/src/http/x509_certificate.dart b/packages/aws_common/lib/src/http/x509_certificate.dart index 72a41e03f6..2fce5c99df 100644 --- a/packages/aws_common/lib/src/http/x509_certificate.dart +++ b/packages/aws_common/lib/src/http/x509_certificate.dart @@ -10,11 +10,8 @@ import 'dart:typed_data'; /// certificate chain. /// /// Returning `true` allows the connection proceed regardless. -typedef BadCertificateCallback = bool Function( - X509Certificate, - String host, - int port, -); +typedef BadCertificateCallback = + bool Function(X509Certificate, String host, int port); /// {@template aws_http.x509_certificate} /// X509Certificate represents an SSL certificate, with accessors to diff --git a/packages/aws_common/lib/src/io/aws_file.dart b/packages/aws_common/lib/src/io/aws_file.dart index dc62c52b6e..104510b016 100644 --- a/packages/aws_common/lib/src/io/aws_file.dart +++ b/packages/aws_common/lib/src/io/aws_file.dart @@ -87,11 +87,8 @@ abstract class AWSFile { /// Throws [InvalidFileException] if cannot get a file content stream from the /// [path]. /// {@endtemplate} - factory AWSFile.fromPath( - String path, { - String? name, - String? contentType, - }) = AWSFilePlatform.fromPath; + factory AWSFile.fromPath(String path, {String? name, String? contentType}) = + AWSFilePlatform.fromPath; /// {@template amplify_core.io.aws_file.from_data} /// Create an [AWSFile] from a list of bytes. @@ -104,12 +101,8 @@ abstract class AWSFile { /// Protected constructor of [AWSFile]. @protected - AWSFile.protected({ - this.path, - this.bytes, - this.name, - String? contentType, - }) : _contentType = contentType; + AWSFile.protected({this.path, this.bytes, this.name, String? contentType}) + : _contentType = contentType; /// Stream of the file content. Stream> get stream; diff --git a/packages/aws_common/lib/src/io/aws_file_platform.dart b/packages/aws_common/lib/src/io/aws_file_platform.dart index 68c0fea919..0d7a3e5260 100644 --- a/packages/aws_common/lib/src/io/aws_file_platform.dart +++ b/packages/aws_common/lib/src/io/aws_file_platform.dart @@ -24,26 +24,16 @@ class AWSFilePlatform extends AWSFile { }) : super.protected(); /// {@macro amplify_core.io.aws_file.from_path} - AWSFilePlatform.fromPath( - String path, { - super.name, - super.contentType, - }) : super.protected( - path: path, - ) { + AWSFilePlatform.fromPath(String path, {super.name, super.contentType}) + : super.protected(path: path) { throw UnimplementedError( 'AWSFile is not available in the current platform', ); } /// {@macro amplify_core.io.aws_file.from_path} - AWSFilePlatform.fromData( - List data, { - super.name, - super.contentType, - }) : super.protected( - bytes: data, - ); + AWSFilePlatform.fromData(List data, {super.name, super.contentType}) + : super.protected(bytes: data); @override Future get size { diff --git a/packages/aws_common/lib/src/io/aws_file_platform_html.dart b/packages/aws_common/lib/src/io/aws_file_platform_html.dart index af0bbc22f9..ac8113a3ca 100644 --- a/packages/aws_common/lib/src/io/aws_file_platform_html.dart +++ b/packages/aws_common/lib/src/io/aws_file_platform_html.dart @@ -14,37 +14,28 @@ const _readStreamChunkSize = 64 * 1024; /// The html implementation of [AWSFile]. class AWSFilePlatform extends AWSFile { /// Creates an [AWSFile] from html [File]. - AWSFilePlatform.fromFile( - File file, { - super.contentType, - }) : _stream = null, - _inputFile = file, - _inputBlob = null, - _size = file.size, - super.protected(); + AWSFilePlatform.fromFile(File file, {super.contentType}) + : _stream = null, + _inputFile = file, + _inputBlob = null, + _size = file.size, + super.protected(); /// Creates an [AWSFile] from html [Blob]. - AWSFilePlatform.fromBlob( - Blob blob, { - super.contentType, - }) : _stream = null, - _inputBlob = blob, - _inputFile = null, - _size = blob.size, - super.protected(); + AWSFilePlatform.fromBlob(Blob blob, {super.contentType}) + : _stream = null, + _inputBlob = blob, + _inputFile = null, + _size = blob.size, + super.protected(); /// {@macro amplify_core.io.aws_file.from_path} - AWSFilePlatform.fromPath( - String path, { - super.name, - super.contentType, - }) : _stream = null, - _inputFile = null, - _inputBlob = null, - _size = null, - super.protected( - path: path, - ); + AWSFilePlatform.fromPath(String path, {super.name, super.contentType}) + : _stream = null, + _inputFile = null, + _inputBlob = null, + _size = null, + super.protected(path: path); /// {@macro amplify_core.io.aws_file.from_stream} AWSFilePlatform.fromStream( @@ -52,24 +43,19 @@ class AWSFilePlatform extends AWSFile { super.name, super.contentType, required int size, - }) : _stream = stream, - _inputFile = null, - _inputBlob = null, - _size = size, - super.protected(); + }) : _stream = stream, + _inputFile = null, + _inputBlob = null, + _size = size, + super.protected(); /// {@macro amplify_core.io.aws_file.from_path} - AWSFilePlatform.fromData( - List data, { - super.name, - super.contentType, - }) : _stream = null, - _inputBlob = null, - _inputFile = null, - _size = data.length, - super.protected( - bytes: data, - ); + AWSFilePlatform.fromData(List data, {super.name, super.contentType}) + : _stream = null, + _inputBlob = null, + _inputFile = null, + _size = data.length, + super.protected(bytes: data); final _contentTypeMemo = AsyncMemoizer(); final File? _inputFile; @@ -116,30 +102,30 @@ class AWSFilePlatform extends AWSFile { @override Future get contentType => _contentTypeMemo.runOnce(() async { - final externalContentType = await super.contentType; - if (externalContentType != null) { - return externalContentType; - } + final externalContentType = await super.contentType; + if (externalContentType != null) { + return externalContentType; + } - String? blobType; + String? blobType; - final file = _inputFile ?? _inputBlob; - final path = super.path; + final file = _inputFile ?? _inputBlob; + final path = super.path; - if (file != null) { - blobType = file.type; - } else if (path != null) { - blobType = (await _resolvedBlob).type; - } + if (file != null) { + blobType = file.type; + } else if (path != null) { + blobType = (await _resolvedBlob).type; + } - // on Web blob.type may return an empty string - // https://developer.mozilla.org/en-US/docs/Web/API/Blob/type#value - if (blobType != null) { - return blobType.isEmpty ? null : blobType; - } + // on Web blob.type may return an empty string + // https://developer.mozilla.org/en-US/docs/Web/API/Blob/type#value + if (blobType != null) { + return blobType.isEmpty ? null : blobType; + } - return blobType; - }); + return blobType; + }); @override ChunkedStreamReader getChunkedStreamReader() { @@ -230,9 +216,10 @@ class AWSFilePlatform extends AWSFile { var currentPosition = 0; while (currentPosition < blob.size) { - final readRange = currentPosition + _readStreamChunkSize > blob.size - ? blob.size - : currentPosition + _readStreamChunkSize; + final readRange = + currentPosition + _readStreamChunkSize > blob.size + ? blob.size + : currentPosition + _readStreamChunkSize; final blobToRead = blob.slice(currentPosition, readRange); fileReader.readAsArrayBuffer(blobToRead); await fileReader.onLoad.first; diff --git a/packages/aws_common/lib/src/io/aws_file_platform_io.dart b/packages/aws_common/lib/src/io/aws_file_platform_io.dart index 494cfb061f..d0eac8808b 100644 --- a/packages/aws_common/lib/src/io/aws_file_platform_io.dart +++ b/packages/aws_common/lib/src/io/aws_file_platform_io.dart @@ -10,25 +10,18 @@ import 'package:mime/mime.dart'; /// The io implementation of [AWSFile]. class AWSFilePlatform extends AWSFile { /// Creates an [AWSFile] from io [File]. - AWSFilePlatform.fromFile( - File file, { - super.contentType, - }) : _stream = null, - _inputFile = file, - _size = null, - super.protected(); + AWSFilePlatform.fromFile(File file, {super.contentType}) + : _stream = null, + _inputFile = file, + _size = null, + super.protected(); /// {@macro amplify_core.io.aws_file.from_path} - AWSFilePlatform.fromPath( - String path, { - super.name, - super.contentType, - }) : _stream = null, - _inputFile = File(path), - _size = null, - super.protected( - path: path, - ); + AWSFilePlatform.fromPath(String path, {super.name, super.contentType}) + : _stream = null, + _inputFile = File(path), + _size = null, + super.protected(path: path); /// {@macro amplify_core.io.aws_file.from_stream} AWSFilePlatform.fromStream( @@ -36,22 +29,17 @@ class AWSFilePlatform extends AWSFile { super.name, super.contentType, required int size, - }) : _stream = inputStream, - _inputFile = null, - _size = size, - super.protected(); + }) : _stream = inputStream, + _inputFile = null, + _size = size, + super.protected(); /// {@macro amplify_core.io.aws_file.from_path} - AWSFilePlatform.fromData( - List data, { - super.name, - super.contentType, - }) : _stream = null, - _inputFile = null, - _size = data.length, - super.protected( - bytes: data, - ); + AWSFilePlatform.fromData(List data, {super.name, super.contentType}) + : _stream = null, + _inputFile = null, + _size = data.length, + super.protected(bytes: data); final _contentTypeMemo = AsyncMemoizer(); final File? _inputFile; @@ -96,18 +84,18 @@ class AWSFilePlatform extends AWSFile { @override Future get contentType => _contentTypeMemo.runOnce(() async { - final externalContentType = await super.contentType; - if (externalContentType != null) { - return externalContentType; - } + final externalContentType = await super.contentType; + if (externalContentType != null) { + return externalContentType; + } - final file = _inputFile; - if (file != null) { - return lookupMimeType(file.path); - } + final file = _inputFile; + if (file != null) { + return lookupMimeType(file.path); + } - return null; - }); + return null; + }); @override ChunkedStreamReader getChunkedStreamReader() { @@ -123,9 +111,7 @@ class AWSFilePlatform extends AWSFile { final bytes = super.bytes; if (bytes != null) { - return Stream.value( - bytes.sublist(start ?? 0, end), - ); + return Stream.value(bytes.sublist(start ?? 0, end)); } throw const InvalidFileException( diff --git a/packages/aws_common/lib/src/js/common.dart b/packages/aws_common/lib/src/js/common.dart index 0a895cf776..b9ccc5fded 100644 --- a/packages/aws_common/lib/src/js/common.dart +++ b/packages/aws_common/lib/src/js/common.dart @@ -145,23 +145,21 @@ extension PropsEventTarget on EventTarget { void addEventListener( String type, EventHandler listener, - ) => - js_util.callMethod(this, 'addEventListener', [ - type, - allowInterop(listener), - false, - ]); + ) => js_util.callMethod(this, 'addEventListener', [ + type, + allowInterop(listener), + false, + ]); /// Removes [listener] as a callback for events of type [type]. void removeEventListener( String type, EventHandler listener, - ) => - js_util.callMethod(this, 'removeEventListener', [ - type, - allowInterop(listener), - false, - ]); + ) => js_util.callMethod(this, 'removeEventListener', [ + type, + allowInterop(listener), + false, + ]); } /// {@template worker_bee.js.interop.global_scope} @@ -184,14 +182,11 @@ extension PropsGlobalScope on GlobalScope { /// /// When called on a [Window], this sends a message to the parent window /// object. - void postMessage( - Object? o, [ - List? transfer, - ]) => - js_util.callMethod(this, 'postMessage', [ - js_util.jsify(o), - transfer?.map(js_util.jsify).toList(), - ]); + void postMessage(Object? o, [List? transfer]) => js_util.callMethod( + this, + 'postMessage', + [js_util.jsify(o), transfer?.map(js_util.jsify).toList()], + ); } /// {@template worker_bee.js.interop.message_event} @@ -232,28 +227,22 @@ extension PropsMessagePort on MessagePort { Stream get onMessage { final controller = StreamController(); addEventListener('message', controller.add); - addEventListener( - 'messageerror', - (event) { - controller - ..addError(event) - ..close(); - }, - ); + addEventListener('messageerror', (event) { + controller + ..addError(event) + ..close(); + }); scheduleMicrotask(start); return controller.stream; } /// Sends a message from the port, and optionally, transfers ownership of /// objects to other browsing contexts. - void postMessage( - Object? o, [ - List? transfer, - ]) => - js_util.callMethod(this, 'postMessage', [ - js_util.jsify(o), - transfer?.map(js_util.jsify).toList(), - ]); + void postMessage(Object? o, [List? transfer]) => js_util.callMethod( + this, + 'postMessage', + [js_util.jsify(o), transfer?.map(js_util.jsify).toList()], + ); /// Starts the sending of messages queued on the port. /// @@ -295,9 +284,7 @@ extension PropsLocation on Location { @staticInterop abstract class WorkerInit { /// {@macro worker_bee.js.interop.worker_init} - external factory WorkerInit({ - String? type, - }); + external factory WorkerInit({String? type}); } /// {@template worker_bee.js.interop.worker} diff --git a/packages/aws_common/lib/src/js/fetch.dart b/packages/aws_common/lib/src/js/fetch.dart index c9cd1e1530..f7a8c4979a 100644 --- a/packages/aws_common/lib/src/js/fetch.dart +++ b/packages/aws_common/lib/src/js/fetch.dart @@ -303,8 +303,7 @@ extension PropsHeaders on Headers { /// Executes [callback] once for each array element. void forEach( void Function(String value, String key, Headers parent) callback, - ) => - js_util.callMethod(this, 'forEach', [allowInterop(callback)]); + ) => js_util.callMethod(this, 'forEach', [allowInterop(callback)]); } /// {@template aws_common.js.request} @@ -335,8 +334,9 @@ final Expando _responseStreams = Expando('ResponseStreams'); /// {@macro aws_common.js.response} extension PropsResponse on Response { /// The response's body as a Dart [Stream]. - ReadableStreamView get body => _responseStreams[this] ??= - js_util.getProperty(this, 'body')?.stream ?? + ReadableStreamView get body => + _responseStreams[this] ??= + js_util.getProperty(this, 'body')?.stream ?? const ReadableStreamView.empty(); /// The response's headers. diff --git a/packages/aws_common/lib/src/js/indexed_db.dart b/packages/aws_common/lib/src/js/indexed_db.dart index 3f190b468e..b62e2eb163 100644 --- a/packages/aws_common/lib/src/js/indexed_db.dart +++ b/packages/aws_common/lib/src/js/indexed_db.dart @@ -115,10 +115,7 @@ abstract class IDBFactory {} extension PropsIDBFactory on IDBFactory { /// The current method to request opening a connection to a database. IDBOpenDBRequest open(String name, [int? version]) => - js_util.callMethod(this, 'open', [ - name, - if (version != null) version, - ]); + js_util.callMethod(this, 'open', [name, if (version != null) version]); } /// {@template amplify_secure_storage_dart.idb_database} @@ -142,8 +139,7 @@ extension PropsIDBDatabase on IDBDatabase { IDBTransaction transaction( String storeNames, { IDBTransactionMode mode = IDBTransactionMode.readonly, - }) => - js_util.callMethod(this, 'transaction', [storeNames, mode.name]); + }) => js_util.callMethod(this, 'transaction', [storeNames, mode.name]); /// Creates a new object store with the given name and options and returns a /// new [IDBObjectStore]. @@ -163,11 +159,10 @@ extension PropsIDBDatabase on IDBDatabase { params['autoIncrement'] = autoIncrement; } - return js_util.callMethod( - this, - 'createObjectStore', - [name, js_util.jsify(params)], - ); + return js_util.callMethod(this, 'createObjectStore', [ + name, + js_util.jsify(params), + ]); } /// Returns the object store for [storeName] in a new transaction. diff --git a/packages/aws_common/lib/src/js/promise.dart b/packages/aws_common/lib/src/js/promise.dart index 9f71615d4b..0313d01db7 100644 --- a/packages/aws_common/lib/src/js/promise.dart +++ b/packages/aws_common/lib/src/js/promise.dart @@ -9,10 +9,8 @@ import 'package:js/js.dart'; import 'package:js/js_util.dart' as js_util; /// A [Promise] executor callback. -typedef Executor = void Function( - void Function(T) resolve, - void Function(Object) reject, -); +typedef Executor = + void Function(void Function(T) resolve, void Function(Object) reject); /// {@template aws_common.js.promise} /// Represents the eventual completion (or failure) of an asynchronous operation @@ -32,10 +30,7 @@ abstract class Promise { /// and not reported as unhandled errors in the current [Zone]. This can /// decrease the visibility of errors in Dart code depending on the level of /// integration with JS APIs and their error-handling specifics. - factory Promise.fromFuture( - Future future, { - bool captureError = false, - }) => + factory Promise.fromFuture(Future future, {bool captureError = false}) => Promise((resolve, reject) async { try { resolve(await future); diff --git a/packages/aws_common/lib/src/js/readable_stream.dart b/packages/aws_common/lib/src/js/readable_stream.dart index 20f9943e88..679b21bad7 100644 --- a/packages/aws_common/lib/src/js/readable_stream.dart +++ b/packages/aws_common/lib/src/js/readable_stream.dart @@ -60,7 +60,8 @@ abstract class UnderlyingSource { FutureOr Function([ String? reason, ReadableStreamController? controller, - ])? cancel, + ])? + cancel, /// This property controls what type of readable stream is being dealt with. ReadableStreamType type = ReadableStreamType.default$, @@ -74,32 +75,36 @@ abstract class UnderlyingSource { /// consumer can also use a default reader. int? autoAllocateChunkSize, }) { - final startFn = start == null - ? undefined - : start is Future Function(ReadableStreamController) + final startFn = + start == null + ? undefined + : start is Future Function(ReadableStreamController) ? allowInterop((ReadableStreamController controller) { - return Promise.fromFuture(start(controller)); - }) + return Promise.fromFuture(start(controller)); + }) : allowInterop(start); - final pullFn = pull == null - ? undefined - : pull is Future Function(ReadableStreamController) + final pullFn = + pull == null + ? undefined + : pull is Future Function(ReadableStreamController) ? allowInterop((ReadableStreamController controller) { - return Promise.fromFuture(pull(controller)); - }) + return Promise.fromFuture(pull(controller)); + }) : allowInterop(pull); - final cancelFn = cancel == null - ? undefined - : cancel is Future Function([ - String? reason, - ReadableStreamController? controller, - ]) + final cancelFn = + cancel == null + ? undefined + : cancel + is Future Function([ + String? reason, + ReadableStreamController? controller, + ]) ? allowInterop(( - String? reason, - ReadableStreamController? controller, - ) { - return Promise.fromFuture(cancel(reason, controller)); - }) + String? reason, + ReadableStreamController? controller, + ) { + return Promise.fromFuture(cancel(reason, controller)); + }) : allowInterop(cancel); return UnderlyingSource._( start: startFn, @@ -182,8 +187,9 @@ abstract class ReadableStream { /// Used to expand [ReadableStream] and treat `ReadableStream.stream` as a /// `late final` property so that multiple accesses return the same value. -final Expando _readableStreamViews = - Expando('ReadableStreamViews'); +final Expando _readableStreamViews = Expando( + 'ReadableStreamViews', +); /// {@macro aws_common.js.readable_stream} extension PropsReadableStream on ReadableStream { @@ -204,8 +210,7 @@ extension PropsReadableStream on ReadableStream { /// is released. ReadableStreamReader getReader({ ReadableStreamReaderMode mode = ReadableStreamReaderMode.default$, - }) => - js_util.callMethod(this, 'getReader', [mode.jsValue]); + }) => js_util.callMethod(this, 'getReader', [mode.jsValue]); /// Creates a Dart [Stream] from `this`. ReadableStreamView get stream => @@ -282,7 +287,7 @@ enum ReadableStreamReaderMode with JSEnum { /// Results in a [ReadableStreamDefaultReader] being created that can read /// individual chunks from a stream. - default$ + default$, } /// {@template aws_common.js.readable_stream_chunk} @@ -317,15 +322,12 @@ final class ReadableStreamView extends StreamView> { // ignore: close_sinks final progressController = StreamController.broadcast(sync: true); _pipeFrom(stream, controller.sink, progressController.sink); - return ReadableStreamView._( - controller.stream, - progressController.stream, - ); + return ReadableStreamView._(controller.stream, progressController.stream); } /// Creates an empty [ReadableStreamView] which emits a single `done` event. const ReadableStreamView.empty() - : this._(const Stream.empty(), const Stream.empty()); + : this._(const Stream.empty(), const Stream.empty()); const ReadableStreamView._(super.stream, this.progress); diff --git a/packages/aws_common/lib/src/logging/aws_logger.dart b/packages/aws_common/lib/src/logging/aws_logger.dart index e804680a0e..c186587146 100644 --- a/packages/aws_common/lib/src/logging/aws_logger.dart +++ b/packages/aws_common/lib/src/logging/aws_logger.dart @@ -35,7 +35,7 @@ class AWSLogger with AWSDebuggable implements Closeable { /// /// {@macro aws_common.logging.aws_logger} AWSLogger.detached([String namespace = 'Detached']) - : _logger = Logger.detached(namespace); + : _logger = Logger.detached(namespace); /// {@macro aws_common.logging.aws_logger} @protected @@ -95,9 +95,11 @@ class AWSLogger with AWSDebuggable implements Closeable { /// Returns a plugin of type [Plugin] registered to this /// logger hierarchy or `null`. Plugin? getPlugin() { - final registeredPlugin = _subscriptions.keys - .firstWhereOrNull((element) => element.runtimeType == Plugin) - as Plugin?; + final registeredPlugin = + _subscriptions.keys.firstWhereOrNull( + (element) => element.runtimeType == Plugin, + ) + as Plugin?; return registeredPlugin ?? _parent?.getPlugin(); } @@ -106,9 +108,7 @@ class AWSLogger with AWSDebuggable implements Closeable { /// /// Throws [StateError] if a plugin with same type is registered to this /// logger hierarchy. - void registerPlugin( - T plugin, - ) { + void registerPlugin(T plugin) { bool hasPlugin(AWSLogger logger) => logger._subscriptions.keys.any((element) => element.runtimeType == T) || logger._children.any(hasPlugin); diff --git a/packages/aws_common/lib/src/logging/log_entry.dart b/packages/aws_common/lib/src/logging/log_entry.dart index daa8b7f628..27db11bc58 100644 --- a/packages/aws_common/lib/src/logging/log_entry.dart +++ b/packages/aws_common/lib/src/logging/log_entry.dart @@ -37,13 +37,13 @@ class LogEntry with AWSEquatable, AWSDebuggable { @override List get props => [ - level, - message, - loggerName, - time, - error, - stackTrace, - ]; + level, + message, + loggerName, + time, + error, + stackTrace, + ]; /// Creates a copy of `this` with the given values. LogEntry copyWith({ diff --git a/packages/aws_common/lib/src/logging/logging_ext.dart b/packages/aws_common/lib/src/logging/logging_ext.dart index 40f1817348..70fa3e6554 100644 --- a/packages/aws_common/lib/src/logging/logging_ext.dart +++ b/packages/aws_common/lib/src/logging/logging_ext.dart @@ -3,7 +3,7 @@ /// Bridge methods for `package:logging` types. @internal -library aws_common.logging.logging_ext; +library; import 'package:aws_common/aws_common.dart'; import 'package:logging/logging.dart'; diff --git a/packages/aws_common/lib/src/logging/simple_log_printer.dart b/packages/aws_common/lib/src/logging/simple_log_printer.dart index 0c7f115a99..feb91c5656 100644 --- a/packages/aws_common/lib/src/logging/simple_log_printer.dart +++ b/packages/aws_common/lib/src/logging/simple_log_printer.dart @@ -14,9 +14,10 @@ class SimpleLogPrinter implements AWSLoggerPlugin { /// Formats [logEntry] using level, namespace, and message components. static String formatLogEntry(LogEntry logEntry) { - final buffer = StringBuffer() - ..write(logEntry.level.name.toUpperCase().padRight(5)) - ..write(' | '); + final buffer = + StringBuffer() + ..write(logEntry.level.name.toUpperCase().padRight(5)) + ..write(' | '); final namespace = logEntry.loggerName.split('.').lastOrNull; if (namespace != null && namespace.isNotEmpty) { diff --git a/packages/aws_common/lib/src/operation/aws_operation.dart b/packages/aws_common/lib/src/operation/aws_operation.dart index fd97e533dd..1db8b6cef9 100644 --- a/packages/aws_common/lib/src/operation/aws_operation.dart +++ b/packages/aws_common/lib/src/operation/aws_operation.dart @@ -14,10 +14,8 @@ abstract class AWSOperation with AWSDebuggable, AWSLoggerMixin implements Cancelable, Closeable { /// Creates an [AWSOperation] from a [CancelableOperation]. - AWSOperation( - this.operation, { - FutureOr Function()? onCancel, - }) : _onCancel = onCancel; + AWSOperation(this.operation, {FutureOr Function()? onCancel}) + : _onCancel = onCancel; /// A unique identifier for the operation. final String id = uuid(); @@ -35,13 +33,13 @@ abstract class AWSOperation @override Future cancel() => _cancelMemo.runOnce(() async { - if (operation.isCanceled || operation.isCompleted) { - logger.verbose('Operation complete. Calling onCancel...'); - return _onCancel?.call(); - } - logger.verbose('Operation canceled.'); - return operation.cancel(); - }); + if (operation.isCanceled || operation.isCompleted) { + logger.verbose('Operation complete. Calling onCancel...'); + return _onCancel?.call(); + } + logger.verbose('Operation canceled.'); + return operation.cancel(); + }); @override @mustCallSuper diff --git a/packages/aws_common/lib/src/result/aws_result.dart b/packages/aws_common/lib/src/result/aws_result.dart index 3222abd243..39570173b2 100644 --- a/packages/aws_common/lib/src/result/aws_result.dart +++ b/packages/aws_common/lib/src/result/aws_result.dart @@ -43,7 +43,8 @@ sealed class AWSResult /// For successful results, [value] is guaranteed to not throw. /// {@endtemplate} final class AWSSuccessResult - extends AWSResult with AWSEquatable> { + extends AWSResult + with AWSEquatable> { /// {@macro aws_common.aws_success_result} const AWSSuccessResult(this.value) : super._(); @@ -64,24 +65,23 @@ final class AWSSuccessResult @override String get runtimeTypeName { - final typeName = StringBuffer('AWSSuccessResult<') - ..write( - switch (value) { - AWSDebuggable(:final runtimeTypeName) => runtimeTypeName, - _ => V, - }, - ) - ..write(', $E>'); + final typeName = + StringBuffer('AWSSuccessResult<') + ..write(switch (value) { + AWSDebuggable(:final runtimeTypeName) => runtimeTypeName, + _ => V, + }) + ..write(', $E>'); return typeName.toString(); } @override Map toJson() => { - 'value': switch (value) { - final AWSSerializable serializable => serializable.toJson(), - _ => value.toString(), - }, - }; + 'value': switch (value) { + final AWSSerializable serializable => serializable.toJson(), + _ => value.toString(), + }, + }; } /// {@template aws_common.aws_error_result} @@ -91,7 +91,8 @@ final class AWSSuccessResult /// to not be `null`. /// {@endtemplate} final class AWSErrorResult - extends AWSResult with AWSEquatable> { + extends AWSResult + with AWSEquatable> { /// {@macro aws_common.aws_error_result} const AWSErrorResult(this.exception, [this.stackTrace]) : super._(); @@ -118,23 +119,22 @@ final class AWSErrorResult @override String get runtimeTypeName { - final typeName = StringBuffer('AWSErrorResult<$V, ') - ..write( - switch (exception) { - AWSDebuggable(:final runtimeTypeName) => runtimeTypeName, - _ => E, - }, - ) - ..write('>'); + final typeName = + StringBuffer('AWSErrorResult<$V, ') + ..write(switch (exception) { + AWSDebuggable(:final runtimeTypeName) => runtimeTypeName, + _ => E, + }) + ..write('>'); return typeName.toString(); } @override Map toJson() => { - 'exception': switch (exception) { - final AWSSerializable serializable => serializable.toJson(), - _ => exception.toString(), - }, - 'stackTrace': stackTrace?.toString(), - }; + 'exception': switch (exception) { + final AWSSerializable serializable => serializable.toJson(), + _ => exception.toString(), + }, + 'stackTrace': stackTrace?.toString(), + }; } diff --git a/packages/aws_common/lib/src/util/debuggable.dart b/packages/aws_common/lib/src/util/debuggable.dart index 2532327d5f..c1b0e0b89c 100644 --- a/packages/aws_common/lib/src/util/debuggable.dart +++ b/packages/aws_common/lib/src/util/debuggable.dart @@ -17,9 +17,9 @@ mixin AWSDebuggable on Object { @override String toString() => switch (this) { - AWSSerializable(:final toJson) => - '$runtimeTypeName ${prettyPrintJson(toJson())}', - AWSEquatable(:final props) => '$runtimeTypeName $props', - _ => 'Instance of $runtimeTypeName', - }; + AWSSerializable(:final toJson) => + '$runtimeTypeName ${prettyPrintJson(toJson())}', + AWSEquatable(:final props) => '$runtimeTypeName $props', + _ => 'Instance of $runtimeTypeName', + }; } diff --git a/packages/aws_common/lib/src/util/globals.dart b/packages/aws_common/lib/src/util/globals.dart index 96ba244221..fa565bd974 100644 --- a/packages/aws_common/lib/src/util/globals.dart +++ b/packages/aws_common/lib/src/util/globals.dart @@ -15,12 +15,10 @@ const bool zDebugMode = !zProfileMode && !zReleaseMode; final bool zAssertsEnabled = () { var assertsEnabled = false; // ignore: prefer_asserts_with_message - assert( - () { - assertsEnabled = true; - return true; - }(), - ); + assert(() { + assertsEnabled = true; + return true; + }()); return assertsEnabled; }(); diff --git a/packages/aws_common/lib/src/util/recase.dart b/packages/aws_common/lib/src/util/recase.dart index 0e55f28b73..15c54a824d 100644 --- a/packages/aws_common/lib/src/util/recase.dart +++ b/packages/aws_common/lib/src/util/recase.dart @@ -13,7 +13,8 @@ extension StringRecase on String { } /// The `camelCase` version of `this`. - String get camelCase => groupIntoWords().mapIndexed((index, word) { + String get camelCase => + groupIntoWords().mapIndexed((index, word) { if (index == 0) return word.toLowerCase(); return word.capitalized; }).join(); @@ -26,7 +27,8 @@ extension StringRecase on String { static const _maintainCase = ['AWS']; /// The `PascalCase` version of `this`. - String get pascalCase => groupIntoWords().map((word) { + String get pascalCase => + groupIntoWords().map((word) { if (_maintainCase.contains(word)) { return word; } @@ -71,7 +73,6 @@ extension StringRecase on String { _standaloneVLower, (m) => '${m.group(1)} v${m.group(2)}', ) - // TestV4 -> "Test V4" .replaceAllMapped( _standaloneVUpper, @@ -90,8 +91,7 @@ extension StringRecase on String { return substr; }); yield result.substring(start); - }() - .join(' '); + }().join(' '); // add a space after acronyms: "ACMSuccess" -> "ACM Success" result = result.replaceAllMapped( diff --git a/packages/aws_common/lib/src/util/stoppable_timer.dart b/packages/aws_common/lib/src/util/stoppable_timer.dart index 8e57cf9f49..0bea023e31 100644 --- a/packages/aws_common/lib/src/util/stoppable_timer.dart +++ b/packages/aws_common/lib/src/util/stoppable_timer.dart @@ -18,12 +18,12 @@ class StoppableTimer { required this.duration, required Future Function() callback, required void Function(Object) onError, - }) : _callback = callback, - _timer = Timer.periodic(duration, (Timer t) { - callback().catchError((Object e) { - onError(e); - }); - }); + }) : _callback = callback, + _timer = Timer.periodic(duration, (Timer t) { + callback().catchError((Object e) { + onError(e); + }); + }); Timer _timer; /// [Duration] between invocations of the provided callback function. diff --git a/packages/aws_common/lib/src/util/uuid.dart b/packages/aws_common/lib/src/util/uuid.dart index ae163778a3..e9fc1479ed 100644 --- a/packages/aws_common/lib/src/util/uuid.dart +++ b/packages/aws_common/lib/src/util/uuid.dart @@ -11,15 +11,16 @@ import 'package:uuid/uuid.dart'; /// If [secure] is `true`, uses a crypto-secure RNG at the cost of worse /// performance (5-100x, depending on the platform). String uuid({bool secure = false}) => const Uuid().v4( - // ignore: deprecated_member_use - options: !secure + // ignore: deprecated_member_use + options: + !secure ? null : const { - 'rng': _cryptoRNG, - 'positionalArgs': [], - 'namedArgs': {}, - }, - ); + 'rng': _cryptoRNG, + 'positionalArgs': [], + 'namedArgs': {}, + }, +); /// Creates 16 digit cryptographically secure random number. Uint8List _cryptoRNG() { diff --git a/packages/aws_common/lib/testing.dart b/packages/aws_common/lib/testing.dart index df6b3aeddd..9533d72f6d 100644 --- a/packages/aws_common/lib/testing.dart +++ b/packages/aws_common/lib/testing.dart @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library aws_common.testing; +library; export 'src/http/mock.dart'; diff --git a/packages/aws_common/lib/vm.dart b/packages/aws_common/lib/vm.dart index 419b8ee500..b8da4119c2 100644 --- a/packages/aws_common/lib/vm.dart +++ b/packages/aws_common/lib/vm.dart @@ -2,6 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 /// VM-specific types and utilities used across AWS and Amplify packages. -library aws_common.vm; +library; export 'src/io/aws_file_platform_io.dart'; diff --git a/packages/aws_common/lib/web.dart b/packages/aws_common/lib/web.dart index adb7419ea9..0f9eb71a3a 100644 --- a/packages/aws_common/lib/web.dart +++ b/packages/aws_common/lib/web.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Web-specific types and utilities used across AWS and Amplify packages. -library aws_common.web; +library; export 'src/io/aws_file_platform_html.dart'; export 'src/util/get_base_element_href_from_dom.dart'; diff --git a/packages/aws_common/pubspec.yaml b/packages/aws_common/pubspec.yaml index d1d043f5d1..38f4a23022 100644 --- a/packages/aws_common/pubspec.yaml +++ b/packages/aws_common/pubspec.yaml @@ -1,12 +1,12 @@ name: aws_common description: Common types and utilities used across AWS and Amplify packages. -version: 0.7.6 +version: 0.7.7 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/aws_common issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: async: ^2.10.0 @@ -17,7 +17,7 @@ dependencies: js: ">=0.6.4 <0.8.0" json_annotation: ">=4.9.0 <4.10.0" logging: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 mime: ">=1.0.0 <3.0.0" os_detect: ^2.0.2 path: ">=1.8.0 <2.0.0" @@ -25,11 +25,11 @@ dependencies: uuid: ">=3.0.6 <5.0.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 build_test: ^2.1.5 build_web_compilers: ^4.0.0 - built_value_generator: 8.9.3 - json_serializable: 6.8.0 + built_value_generator: ^8.9.5 + json_serializable: ^6.9.4 stream_channel: ^2.1.0 test: ^1.22.1 diff --git a/packages/aws_common/test/collection/case_insensitive_test.dart b/packages/aws_common/test/collection/case_insensitive_test.dart index 1b234c7a6e..a5864cb568 100644 --- a/packages/aws_common/test/collection/case_insensitive_test.dart +++ b/packages/aws_common/test/collection/case_insensitive_test.dart @@ -77,14 +77,7 @@ void main() { group('CaseInsensitiveSet', () { test('ascii elements are case-insensitive', () { - const set = { - 'a', - 'b', - 'c', - 'A', - 'B', - 'C', - }; + const set = {'a', 'b', 'c', 'A', 'B', 'C'}; final ciSet = CaseInsensitiveSet(set); expect(ciSet, hasLength(3)); @@ -92,28 +85,11 @@ void main() { }); test('unicode elements are case-sensitive', () { - const set = { - 'á', - 'ë', - 'î', - 'Á', - 'Ë', - 'Î', - }; + const set = {'á', 'ë', 'î', 'Á', 'Ë', 'Î'}; final ciSet = CaseInsensitiveSet(set); expect(ciSet, hasLength(6)); - expect( - ciSet, - unorderedEquals([ - 'á', - 'ë', - 'î', - 'Á', - 'Ë', - 'Î', - ]), - ); + expect(ciSet, unorderedEquals(['á', 'ë', 'î', 'Á', 'Ë', 'Î'])); }); }); } diff --git a/packages/aws_common/test/config/config_test.dart b/packages/aws_common/test/config/config_test.dart index b7e1e03b23..26a48b8624 100644 --- a/packages/aws_common/test/config/config_test.dart +++ b/packages/aws_common/test/config/config_test.dart @@ -15,14 +15,9 @@ void main() { ); const maxAttempts = 123; - runZoned( - () { - expect(AWSConfigValue.maxAttempts.value, equals(maxAttempts)); - }, - zoneValues: { - AWSConfigValue.maxAttempts: 123, - }, - ); + runZoned(() { + expect(AWSConfigValue.maxAttempts.value, equals(maxAttempts)); + }, zoneValues: {AWSConfigValue.maxAttempts: 123}); }); test('parses overrides', () { @@ -32,14 +27,9 @@ void main() { ); const maxAttempts = 123; - runZoned( - () { - expect(AWSConfigValue.maxAttempts.value, equals(maxAttempts)); - }, - zoneValues: { - AWSConfigValue.maxAttempts: '123', - }, - ); + runZoned(() { + expect(AWSConfigValue.maxAttempts.value, equals(maxAttempts)); + }, zoneValues: {AWSConfigValue.maxAttempts: '123'}); }); test('throws when override cannot be parsed', () { @@ -48,17 +38,12 @@ void main() { equals(AWSConfigValue.maxAttempts.defaultValue), ); - runZoned( - () { - expect( - () => AWSConfigValue.maxAttempts.value, - throwsA(isA()), - ); - }, - zoneValues: { - AWSConfigValue.maxAttempts: 'abc', - }, - ); + runZoned(() { + expect( + () => AWSConfigValue.maxAttempts.value, + throwsA(isA()), + ); + }, zoneValues: {AWSConfigValue.maxAttempts: 'abc'}); }); }); } diff --git a/packages/aws_common/test/config/file_location_test.dart b/packages/aws_common/test/config/file_location_test.dart index 1ad94173ae..1ab93261e7 100644 --- a/packages/aws_common/test/config/file_location_test.dart +++ b/packages/aws_common/test/config/file_location_test.dart @@ -11,11 +11,9 @@ void main() { const pathProvider = AWSPathProvider(); group(testOn: 'vm', 'AWSPathProvider', () { test( - r'User home is loaded from $HOME with highest priority on non-windows platforms.', - () { - overrideOperatingSystem( - OperatingSystem('linux', ''), - () { + r'User home is loaded from $HOME with highest priority on non-windows platforms.', + () { + overrideOperatingSystem(OperatingSystem('linux', ''), () { overrideEnvironment( { 'HOME': r'/home/user', @@ -34,16 +32,14 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); test( - r'User home is loaded from $HOME with highest priority on windows platforms.', - () { - overrideOperatingSystem( - OperatingSystem('windows', ''), - () { + r'User home is loaded from $HOME with highest priority on windows platforms.', + () { + overrideOperatingSystem(OperatingSystem('windows', ''), () { overrideEnvironment( { 'HOME': r'C:\users\user', @@ -62,16 +58,14 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); test( - r'User home is loaded from $USERPROFILE on windows platforms when $HOME is not set.', - () { - overrideOperatingSystem( - OperatingSystem('windows', ''), - () { + r'User home is loaded from $USERPROFILE on windows platforms when $HOME is not set.', + () { + overrideOperatingSystem(OperatingSystem('windows', ''), () { overrideEnvironment( { 'USERPROFILE': r'C:\users\user', @@ -89,21 +83,16 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); test( - r'User home is loaded from $HOMEDRIVE$HOMEPATH on windows platforms when $HOME and $USERPROFILE are not set.', - () { - overrideOperatingSystem( - OperatingSystem('windows', ''), - () { + r'User home is loaded from $HOMEDRIVE$HOMEPATH on windows platforms when $HOME and $USERPROFILE are not set.', + () { + overrideOperatingSystem(OperatingSystem('windows', ''), () { overrideEnvironment( - { - 'HOMEDRIVE': r'C:', - 'HOMEPATH': r'\users\user', - }, + {'HOMEDRIVE': r'C:', 'HOMEPATH': r'\users\user'}, () { expect( pathProvider.configFileLocation, @@ -115,21 +104,16 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); test( - r'The default config location can be overridden by the user on non-windows platforms.', - () { - overrideOperatingSystem( - OperatingSystem('linux', ''), - () { + r'The default config location can be overridden by the user on non-windows platforms.', + () { + overrideOperatingSystem(OperatingSystem('linux', ''), () { overrideEnvironment( - { - 'AWS_CONFIG_FILE': r'/other/path/config', - 'HOME': r'/home/user', - }, + {'AWS_CONFIG_FILE': r'/other/path/config', 'HOME': r'/home/user'}, () { expect( pathProvider.configFileLocation, @@ -141,16 +125,14 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); test( - r'The default credentials location can be overridden by the user on non-windows platforms.', - () { - overrideOperatingSystem( - OperatingSystem('linux', ''), - () { + r'The default credentials location can be overridden by the user on non-windows platforms.', + () { + overrideOperatingSystem(OperatingSystem('linux', ''), () { overrideEnvironment( { 'AWS_SHARED_CREDENTIALS_FILE': r'/other/path/credentials', @@ -167,16 +149,14 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); test( - r'The default credentials location can be overridden by the user on windows platforms.', - () { - overrideOperatingSystem( - OperatingSystem('windows', ''), - () { + r'The default credentials location can be overridden by the user on windows platforms.', + () { + overrideOperatingSystem(OperatingSystem('windows', ''), () { overrideEnvironment( { 'AWS_CONFIG_FILE': r'C:\other\path\config', @@ -193,16 +173,14 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); test( - r'The default credentials location can be overridden by the user on windows platforms.', - () { - overrideOperatingSystem( - OperatingSystem('windows', ''), - () { + r'The default credentials location can be overridden by the user on windows platforms.', + () { + overrideOperatingSystem(OperatingSystem('windows', ''), () { overrideEnvironment( { 'AWS_SHARED_CREDENTIALS_FILE': r'C:\other\path\credentials', @@ -219,20 +197,16 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); - test(r'The default profile can be overridden via environment variable.', - () { - overrideOperatingSystem( - OperatingSystem('linux', ''), - () { + test( + r'The default profile can be overridden via environment variable.', + () { + overrideOperatingSystem(OperatingSystem('linux', ''), () { overrideEnvironment( - { - 'AWS_PROFILE': r'other', - 'HOME': r'/home/user', - }, + {'AWS_PROFILE': r'other', 'HOME': r'/home/user'}, () { expect( pathProvider.configFileLocation, @@ -244,8 +218,8 @@ void main() { ); }, ); - }, - ); - }); + }); + }, + ); }); } diff --git a/packages/aws_common/test/config/profile_file_parser_test.dart b/packages/aws_common/test/config/profile_file_parser_test.dart index ae933270b6..6480e8536f 100644 --- a/packages/aws_common/test/config/profile_file_parser_test.dart +++ b/packages/aws_common/test/config/profile_file_parser_test.dart @@ -17,65 +17,63 @@ void main() { test(r'Empty files have no profiles.', () { const configContents = r''' '''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test(r'Empty profiles have no properties.', () { const configContents = r''' [profile foo]'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test(r'Profile definitions must end with brackets.', () { const configContents = r''' [profile foo'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -88,65 +86,63 @@ void main() { test(r'Profile names should be trimmed.', () { const configContents = r''' [profile foo ]'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test(r'Tabs can separate profile names from profile prefix.', () { const configContents = r''' [profile foo]'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test(r'Properties must be defined in a profile.', () { const configContents = r''' name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -160,24 +156,23 @@ name = value'''; const configContents = r''' [profile foo] name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -185,24 +180,23 @@ name = value'''; const configContents = r''' [profile foo] name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -210,24 +204,23 @@ name = value'''; const configContents = r''' [profile foo] name = val=ue'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"val=ue","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -235,24 +228,23 @@ name = val=ue'''; const configContents = r''' [profile foo] name = 😂'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"😂","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -261,24 +253,23 @@ name = 😂'''; [profile foo] name = value name2 = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}},"name2":{"name":"name2","value":"value2","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -287,24 +278,23 @@ name2 = value2'''; [profile foo] name = value name2 = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}},"name2":{"name":"name2","value":"value2","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -312,24 +302,23 @@ name2 = value2'''; const configContents = r''' [profile foo] name = value '''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -337,24 +326,23 @@ name = value '''; const configContents = r''' [profile foo] name ='''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -362,17 +350,17 @@ name ='''; const configContents = r''' [profile foo] = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -386,17 +374,17 @@ name ='''; const configContents = r''' [profile foo] key : value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -410,24 +398,23 @@ key : value'''; const configContents = r''' [profile foo] [profile bar]'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{}},"bar":{"name":"bar","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -437,24 +424,23 @@ key : value'''; name = value [profile bar] name2 = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}},"bar":{"name":"bar","properties":{"name2":{"name":"name2","value":"value2","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -468,24 +454,23 @@ name = value [profile bar] '''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}},"bar":{"name":"bar","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -494,24 +479,23 @@ name = value # Comment [profile foo] # Comment name = value # Comment with # sign'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -520,24 +504,23 @@ name = value # Comment with # sign'''; ; Comment [profile foo] ; Comment name = value ; Comment with ; sign'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -546,24 +529,23 @@ name = value ; Comment with ; sign'''; # Comment [profile foo] ; Comment name = value # Comment with ; sign'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -573,24 +555,23 @@ name = value # Comment with ; sign'''; [profile foo]; name = value ; '''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -598,24 +579,23 @@ name = value ; const configContents = r''' [profile foo]; Adjacent semicolons [profile bar]# Adjacent pound signs'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{}},"bar":{"name":"bar","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -624,24 +604,23 @@ name = value ; [profile foo] name = value; Adjacent semicolons name2 = value# Adjacent pound signs'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value; Adjacent semicolons","subProperties":{}},"name2":{"name":"name2","value":"value# Adjacent pound signs","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -650,24 +629,23 @@ name2 = value# Adjacent pound signs'''; [profile foo] name = value -continued'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value\n-continued","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -677,24 +655,23 @@ name = value name = value -continued -and-continued'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value\n-continued\n-and-continued","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -703,24 +680,23 @@ name = value [profile foo] name = value -continued '''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value\n-continued","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -729,24 +705,23 @@ name = value [profile foo] name = value -continued # Comment'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value\n-continued # Comment","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -755,41 +730,40 @@ name = value [profile foo] name = value -continued ; Comment'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value\n-continued ; Comment","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test(r'Continuations cannot be used outside of a profile.', () { const configContents = r''' -continued'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -803,17 +777,17 @@ name = value const configContents = r''' [profile foo] -continued'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -829,17 +803,17 @@ name = value name = value [profile foo] -continued'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -855,24 +829,23 @@ name = value name = value [profile foo] name2 = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}},"name2":{"name":"name2","value":"value2","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -881,120 +854,121 @@ name2 = value2'''; [profile foo] name = value name = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value2","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test( - r'Duplicate properties in duplicate profiles use the last one defined.', - () { - const configContents = r''' + r'Duplicate properties in duplicate profiles use the last one defined.', + () { + const configContents = r''' [profile foo] name = value [profile foo] name = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); - final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + final expected = AWSProfileFile.fromJson( + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value2","subProperties":{}}}}}} -''', - ) as Map, - ); - expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), - completion(equals(expected)), - ); - }); +''') + as Map, + ); + expect( + loader.load(configFile: configFile, credentialsFile: credentialsFile), + completion(equals(expected)), + ); + }, + ); test( - r'Default profile with profile prefix overrides default profile without prefix when profile prefix is first.', - () { - const configContents = r''' + r'Default profile with profile prefix overrides default profile without prefix when profile prefix is first.', + () { + const configContents = r''' [profile default] name = value [default] name2 = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); - final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + final expected = AWSProfileFile.fromJson( + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, - ); - expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), - completion(equals(expected)), - ); - }); +''') + as Map, + ); + expect( + loader.load(configFile: configFile, credentialsFile: credentialsFile), + completion(equals(expected)), + ); + }, + ); test( - r'Default profile with profile prefix overrides default profile without prefix when profile prefix is last.', - () { - const configContents = r''' + r'Default profile with profile prefix overrides default profile without prefix when profile prefix is last.', + () { + const configContents = r''' [default] name2 = value2 [profile default] name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); - final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + final expected = AWSProfileFile.fromJson( + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, - ); - expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), - completion(equals(expected)), - ); - }); +''') + as Map, + ); + expect( + loader.load(configFile: configFile, credentialsFile: credentialsFile), + completion(equals(expected)), + ); + }, + ); test(r'Invalid profile names are ignored.', () { const configContents = r''' [profile in valid] name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); const credentialsContents = r''' [in valid 2] @@ -1005,17 +979,13 @@ name2 = value2'''; ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1023,48 +993,46 @@ name2 = value2'''; const configContents = r''' [profile foo] in valid = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test(r'All valid profile name characters are supported.', () { const configContents = r''' [profile ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_]'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_":{"name":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1072,24 +1040,23 @@ in valid = value'''; const configContents = r''' [profile foo] ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_ = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_":{"name":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1098,24 +1065,23 @@ ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_ = value'''; [profile foo] s3 = name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"s3":{"name":"s3","value":"","subProperties":{"name":{"name":"name","value":"value","subProperties":{}}}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1124,17 +1090,17 @@ s3 = [profile foo] s3 = invalid'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -1149,24 +1115,23 @@ s3 = [profile foo] s3 = name ='''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"s3":{"name":"s3","value":"","subProperties":{"name":{"name":"name","value":"","subProperties":{}}}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1175,17 +1140,17 @@ s3 = [profile foo] s3 = = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -1200,24 +1165,23 @@ s3 = [profile foo] s3 = in valid = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"s3":{"name":"s3","value":"","subProperties":{"in valid":{"name":"in valid","value":"value","subProperties":{}}}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1228,24 +1192,23 @@ s3 = name = value name2 = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"s3":{"name":"s3","value":"","subProperties":{"name":{"name":"name","value":"value","subProperties":{}},"name2":{"name":"name2","value":"value2","subProperties":{}}}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1253,8 +1216,10 @@ s3 = const configContents = r''' [profile foo] name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); const credentialsContents = r''' [foo] @@ -1265,51 +1230,47 @@ name2 = value2'''; ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}},"name2":{"name":"name2","value":"value2","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); test( - r'Default profiles with mixed prefixes in the config file ignore the one without prefix when merging.', - () { - const configContents = r''' + r'Default profiles with mixed prefixes in the config file ignore the one without prefix when merging.', + () { + const configContents = r''' [profile default] name = value [default] name2 = value2 [profile default] name3 = value3'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); - final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + final expected = AWSProfileFile.fromJson( + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"name":{"name":"name","value":"value","subProperties":{}},"name3":{"name":"name3","value":"value3","subProperties":{}}}}}} -''', - ) as Map, - ); - expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), - completion(equals(expected)), - ); - }); +''') + as Map, + ); + expect( + loader.load(configFile: configFile, credentialsFile: credentialsFile), + completion(equals(expected)), + ); + }, + ); test(r'Default profiles with mixed prefixes merge with credentials', () { const configContents = r''' [profile default] @@ -1318,8 +1279,10 @@ name = value name2 = value2 [profile default] name3 = value3'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); const credentialsContents = r''' [default] @@ -1330,17 +1293,13 @@ secret=foo'''; ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"name":{"name":"name","value":"value","subProperties":{}},"name3":{"name":"name3","value":"value3","subProperties":{}},"secret":{"name":"secret","value":"foo","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1348,8 +1307,10 @@ secret=foo'''; const configContents = r''' [profile foo] name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); const credentialsContents = r''' [foo] @@ -1360,17 +1321,13 @@ name = value2'''; ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value2","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1378,24 +1335,23 @@ name = value2'''; const configContents = r''' [foo] name = value'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1411,17 +1367,13 @@ name = value'''; ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1429,24 +1381,23 @@ name = value'''; const configContents = r''' [profile foo]; semicolon [profile bar]# pound'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{}},"bar":{"name":"bar","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1456,17 +1407,17 @@ name = value'''; name = value [profile foo] -continued'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), throwsA( isA().having( (e) => e.message, @@ -1481,24 +1432,23 @@ name = value [profilefoo] name = value [profile bar]'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"bar":{"name":"bar","properties":{}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1507,24 +1457,23 @@ name = value [ profile foo ] name = value [profile bar]'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"bar":{"name":"bar","properties":{}},"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1541,17 +1490,13 @@ name = value ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); @@ -1563,24 +1508,23 @@ name = value x = 1 [profile bar] name = value2'''; - const configFile = - ResolvedFile(AWSProfileFileType.config, configContents); + const configFile = ResolvedFile( + AWSProfileFileType.config, + configContents, + ); - const credentialsFile = - ResolvedFile.empty(AWSProfileFileType.credentials); + const credentialsFile = ResolvedFile.empty( + AWSProfileFileType.credentials, + ); final expected = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"bar":{"name":"bar","properties":{"name":{"name":"name","value":"value2","subProperties":{}}}},"foo":{"name":"foo","properties":{"name":{"name":"name","value":"value","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( - loader.load( - configFile: configFile, - credentialsFile: credentialsFile, - ), + loader.load(configFile: configFile, credentialsFile: credentialsFile), completion(equals(expected)), ); }); diff --git a/packages/aws_common/test/config/profile_test.dart b/packages/aws_common/test/config/profile_test.dart index ff6882f06a..dbb99fad5f 100644 --- a/packages/aws_common/test/config/profile_test.dart +++ b/packages/aws_common/test/config/profile_test.dart @@ -12,22 +12,20 @@ void main() { group('AWSProfile', () { test('Regions can be loaded from profiles', () { final profile = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}}}},"session":{"name":"session","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"789","subProperties":{}}}},"role":{"name":"role","properties":{"role_arn":{"name":"role_arn","value":"arn:aws:iam::123456789:role/MyRole","subProperties":{}},"source_profile":{"name":"source_profile","value":"default","subProperties":{}},"aws_access_key_id":{"name":"aws_access_key_id","value":"should-be-ignored","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"should-be-ignored","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"should-be-ignored","subProperties":{}}}},"region":{"name":"region","properties":{"region":{"name":"region","value":"us-east-1","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect(profile.region('region'), 'us-east-1'); }); test('Role credentials have highest priority', () { final profile = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}}}},"session":{"name":"session","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"789","subProperties":{}}}},"role":{"name":"role","properties":{"role_arn":{"name":"role_arn","value":"arn:aws:iam::123456789:role/MyRole","subProperties":{}},"source_profile":{"name":"source_profile","value":"default","subProperties":{}},"aws_access_key_id":{"name":"aws_access_key_id","value":"should-be-ignored","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"should-be-ignored","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"should-be-ignored","subProperties":{}}}},"region":{"name":"region","properties":{"region":{"name":"region","value":"us-east-1","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( @@ -38,11 +36,10 @@ void main() { }); test('Session credentials have next highest priority', () { final profile = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}}}},"session":{"name":"session","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"789","subProperties":{}}}},"role":{"name":"role","properties":{"role_arn":{"name":"role_arn","value":"arn:aws:iam::123456789:role/MyRole","subProperties":{}},"source_profile":{"name":"source_profile","value":"default","subProperties":{}},"aws_access_key_id":{"name":"aws_access_key_id","value":"should-be-ignored","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"should-be-ignored","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"should-be-ignored","subProperties":{}}}},"region":{"name":"region","properties":{"region":{"name":"region","value":"us-east-1","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( @@ -56,11 +53,10 @@ void main() { }); test('Basic credentials have lowest priority', () { final profile = AWSProfileFile.fromJson( - jsonDecode( - r''' + jsonDecode(r''' {"profiles":{"default":{"name":"default","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}}}},"session":{"name":"session","properties":{"aws_access_key_id":{"name":"aws_access_key_id","value":"123","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"456","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"789","subProperties":{}}}},"role":{"name":"role","properties":{"role_arn":{"name":"role_arn","value":"arn:aws:iam::123456789:role/MyRole","subProperties":{}},"source_profile":{"name":"source_profile","value":"default","subProperties":{}},"aws_access_key_id":{"name":"aws_access_key_id","value":"should-be-ignored","subProperties":{}},"aws_secret_access_key":{"name":"aws_secret_access_key","value":"should-be-ignored","subProperties":{}},"aws_session_token":{"name":"aws_session_token","value":"should-be-ignored","subProperties":{}}}},"region":{"name":"region","properties":{"region":{"name":"region","value":"us-east-1","subProperties":{}}}}}} -''', - ) as Map, +''') + as Map, ); expect( diff --git a/packages/aws_common/test/credentials/credentials_provider_io_test.dart b/packages/aws_common/test/credentials/credentials_provider_io_test.dart index b57c1e4cd8..c991c01984 100644 --- a/packages/aws_common/test/credentials/credentials_provider_io_test.dart +++ b/packages/aws_common/test/credentials/credentials_provider_io_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'dart:io'; @@ -20,31 +21,24 @@ void main() { final awsDir = await Directory.fromUri(tempDir.uri.resolve('.aws')).create(); final credentialsFile = File.fromUri(awsDir.uri.resolve('credentials')); - await credentialsFile.writeAsString( - ''' + await credentialsFile.writeAsString(''' [default] aws_access_key_id = $accessKeyId aws_secret_access_key = $secretAccessKey aws_session_token = $sessionToken -''', - ); +'''); return tempDir.path; } test('profile', () async { final path = await setUpProfile(); const credentialsProvider = AWSCredentialsProvider.profile(); - final credentials = await overrideEnvironment( - {'HOME': path}, - credentialsProvider.retrieve, - ); + final credentials = await overrideEnvironment({ + 'HOME': path, + }, credentialsProvider.retrieve); expect( credentials, - const AWSCredentials( - accessKeyId, - secretAccessKey, - sessionToken, - ), + const AWSCredentials(accessKeyId, secretAccessKey, sessionToken), ); }); @@ -57,28 +51,23 @@ aws_session_token = $sessionToken () => const AWSCredentialsProvider.environment().retrieve(), throwsA(isA()), ); - final credentials = await overrideEnvironment( - {'HOME': path}, - credentialsProvider.retrieve, - ); + final credentials = await overrideEnvironment({ + 'HOME': path, + }, credentialsProvider.retrieve); expect( credentials, - const AWSCredentials( - accessKeyId, - secretAccessKey, - sessionToken, - ), - reason: 'Should fall back to profile when no environment ' + const AWSCredentials(accessKeyId, secretAccessKey, sessionToken), + reason: + 'Should fall back to profile when no environment ' 'credentials are present', ); }); test('fails when no credentials are available', () async { await expectLater( - overrideEnvironment( - {'HOME': Directory.systemTemp.createTempSync('no_creds').path}, - credentialsProvider.retrieve, - ), + overrideEnvironment({ + 'HOME': Directory.systemTemp.createTempSync('no_creds').path, + }, credentialsProvider.retrieve), throwsA(isA()), ); }); diff --git a/packages/aws_common/test/credentials/credentials_provider_test.dart b/packages/aws_common/test/credentials/credentials_provider_test.dart index e9e40ce917..94f31fe417 100644 --- a/packages/aws_common/test/credentials/credentials_provider_test.dart +++ b/packages/aws_common/test/credentials/credentials_provider_test.dart @@ -13,21 +13,14 @@ void main() { group('AWSCredentialsProvider', () { test('environment', () { const credentialsProvider = EnvironmentCredentialsProvider(); - final credentials = overrideEnvironment( - { - zAccessKeyId: accessKeyId, - zSecretAccessKey: secretAccessKey, - zSessionToken: sessionToken, - }, - credentialsProvider.retrieve, - ); + final credentials = overrideEnvironment({ + zAccessKeyId: accessKeyId, + zSecretAccessKey: secretAccessKey, + zSessionToken: sessionToken, + }, credentialsProvider.retrieve); expect( credentials, - const AWSCredentials( - accessKeyId, - secretAccessKey, - sessionToken, - ), + const AWSCredentials(accessKeyId, secretAccessKey, sessionToken), ); }); @@ -35,21 +28,14 @@ void main() { const credentialsProvider = AWSCredentialsProvider.defaultChain(); test('loads from environment', () async { - final credentials = await overrideEnvironment( - { - zAccessKeyId: accessKeyId, - zSecretAccessKey: secretAccessKey, - zSessionToken: sessionToken, - }, - credentialsProvider.retrieve, - ); + final credentials = await overrideEnvironment({ + zAccessKeyId: accessKeyId, + zSecretAccessKey: secretAccessKey, + zSessionToken: sessionToken, + }, credentialsProvider.retrieve); expect( credentials, - const AWSCredentials( - accessKeyId, - secretAccessKey, - sessionToken, - ), + const AWSCredentials(accessKeyId, secretAccessKey, sessionToken), ); }); }); diff --git a/packages/aws_common/test/http/aws_http_request_test.dart b/packages/aws_common/test/http/aws_http_request_test.dart index aea8822399..b5e9697a68 100644 --- a/packages/aws_common/test/http/aws_http_request_test.dart +++ b/packages/aws_common/test/http/aws_http_request_test.dart @@ -14,8 +14,9 @@ void main() { const body = [0, 1, 2]; test('create and send request', () async { - final uri = - Uri.parse('ws://example.com:440/myPath?abc=123&abc=456&def=000'); + final uri = Uri.parse( + 'ws://example.com:440/myPath?abc=123&abc=456&def=000', + ); final client = MockAWSHttpClient((request, _) async { expect(request.uri, equals(uri)); expect(request.bodyBytes, orderedEquals([0, 1, 2])); @@ -89,10 +90,10 @@ void main() { group('AWSStreamedHttpRequest', () { Stream> makeBody() => Stream.fromIterable([ - [0], - [1], - [2], - ]); + [0], + [1], + [2], + ]); final emitsBody = emitsInOrder([ orderedEquals([0]), orderedEquals([1]), @@ -101,8 +102,9 @@ void main() { ]); test('create and send request', () async { - final uri = - Uri.parse('ws://example.com:440/myPath?abc=123&abc=456&def=000'); + final uri = Uri.parse( + 'ws://example.com:440/myPath?abc=123&abc=456&def=000', + ); final client = MockAWSHttpClient((request, _) async { expect(request.uri, equals(uri)); expect(request.bodyBytes, orderedEquals([0, 1, 2])); diff --git a/packages/aws_common/test/http/bad_certificate_test.dart b/packages/aws_common/test/http/bad_certificate_test.dart index 6df9526aa1..dd83a4be12 100644 --- a/packages/aws_common/test/http/bad_certificate_test.dart +++ b/packages/aws_common/test/http/bad_certificate_test.dart @@ -12,23 +12,17 @@ void main() { final client = AWSHttpClient(); final request = AWSHttpRequest.get(expiredCertUrl); final operation = client.send(request); - await expectLater( - operation.response, - throwsA(isA()), - ); + await expectLater(operation.response, throwsA(isA())); }); test( 'does not throw when onBadCertificate is overridden', () async { - final client = AWSHttpClient() - ..onBadCertificate = (p0, host, port) => true; + final client = + AWSHttpClient()..onBadCertificate = (p0, host, port) => true; final request = AWSHttpRequest.get(expiredCertUrl); final operation = client.send(request); - expect( - operation.response, - completes, - ); + expect(operation.response, completes); }, // onBadCertificate override is only used on vm skip: zIsWeb, diff --git a/packages/aws_common/test/http/cancellation_server.dart b/packages/aws_common/test/http/cancellation_server.dart index eeb6faf309..d2847c5444 100644 --- a/packages/aws_common/test/http/cancellation_server.dart +++ b/packages/aws_common/test/http/cancellation_server.dart @@ -66,17 +66,14 @@ Future _handleH2( ) async { final path = Uri.parse(headers[':path']!).pathSegments.singleOrNull ?? ''; if (path.isEmpty) { - return request.sendHeaders( - [Header.ascii(':status', '200')], - endStream: true, - ); + return request.sendHeaders([ + Header.ascii(':status', '200'), + ], endStream: true); } if (path == 'headers') { return; } - request.sendHeaders([ - Header.ascii(':status', '200'), - ]); + request.sendHeaders([Header.ascii(':status', '200')]); if (path == 'body') { var done = false; request.onTerminated = (_) { diff --git a/packages/aws_common/test/http/cancellation_test.dart b/packages/aws_common/test/http/cancellation_test.dart index 1bfd1334c0..6e4005752e 100644 --- a/packages/aws_common/test/http/cancellation_test.dart +++ b/packages/aws_common/test/http/cancellation_test.dart @@ -11,107 +11,93 @@ import 'cancellation_server_vm.dart' import 'http_common.dart'; void main() { - clientTest( - 'cancellation', - startServer, - (client, httpServerQueue, httpServerChannel, createUri) { - test('can cancel before sending request', () async { - final request = AWSHttpRequest.get(createUri('')); - final operation = client().send(request); - expect(operation.requestProgress, emitsDone); - expect(operation.responseProgress, emitsDone); - await expectLater(operation.cancel(), completes); - expect(operation.operation.isCanceled, true); - expect(operation.response, throwsA(isA())); - }); + clientTest('cancellation', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { + test('can cancel before sending request', () async { + final request = AWSHttpRequest.get(createUri('')); + final operation = client().send(request); + expect(operation.requestProgress, emitsDone); + expect(operation.responseProgress, emitsDone); + await expectLater(operation.cancel(), completes); + expect(operation.operation.isCanceled, true); + expect(operation.response, throwsA(isA())); + }); - test('can cancel before receiving headers', () async { - final request = AWSHttpRequest.get(createUri('/headers')); - final operation = client().send(request); - await expectLater(operation.cancel(), completes); - expect(operation.requestProgress, emitsDone); - expect(operation.responseProgress, emitsDone); - expect(operation.operation.isCanceled, true); - expect(operation.response, throwsA(isA())); - }); + test('can cancel before receiving headers', () async { + final request = AWSHttpRequest.get(createUri('/headers')); + final operation = client().send(request); + await expectLater(operation.cancel(), completes); + expect(operation.requestProgress, emitsDone); + expect(operation.responseProgress, emitsDone); + expect(operation.operation.isCanceled, true); + expect(operation.response, throwsA(isA())); + }); - test('can cancel before receiving full body', () async { - final request = AWSHttpRequest.get(createUri('/body')); - final operation = client().send(request); - final response = await operation.response; - await Future.delayed(const Duration(milliseconds: 200)); - expect(operation.requestProgress, emitsDone); - expect(operation.responseProgress, emitsDone); - expect( - response.body, - emitsThrough(emitsError(isA())), - ); - await expectLater(operation.cancel(), completes); - }); + test('can cancel before receiving full body', () async { + final request = AWSHttpRequest.get(createUri('/body')); + final operation = client().send(request); + final response = await operation.response; + await Future.delayed(const Duration(milliseconds: 200)); + expect(operation.requestProgress, emitsDone); + expect(operation.responseProgress, emitsDone); + expect( + response.body, + emitsThrough(emitsError(isA())), + ); + await expectLater(operation.cancel(), completes); + }); - test('can be cancelled via body subscription', () async { - final request = AWSHttpRequest.get(createUri('/body')); - final operation = client().send(request); - final response = await operation.response; - final subscription = response.body.listen(null); - await Future.delayed(const Duration(milliseconds: 100)); - expect( - operation.requestProgress, - emitsDone, - ); - expect( - operation.responseProgress, - emitsDone, - ); - await subscription.cancel(); - }); + test('can be cancelled via body subscription', () async { + final request = AWSHttpRequest.get(createUri('/body')); + final operation = client().send(request); + final response = await operation.response; + final subscription = response.body.listen(null); + await Future.delayed(const Duration(milliseconds: 100)); + expect(operation.requestProgress, emitsDone); + expect(operation.responseProgress, emitsDone); + await subscription.cancel(); + }); - test('can be cancelled via split body subscription', () async { - final request = AWSHttpRequest.get(createUri('/body')); - final operation = client().send(request); - final response = await operation.response; - final subscription = response.split().listen(null); - await Future.delayed(const Duration(milliseconds: 100)); - expect( - operation.requestProgress, - emitsDone, - ); - expect( - operation.responseProgress, - emitsDone, - ); - await subscription.cancel(); - await response.close(); - }); + test('can be cancelled via split body subscription', () async { + final request = AWSHttpRequest.get(createUri('/body')); + final operation = client().send(request); + final response = await operation.response; + final subscription = response.split().listen(null); + await Future.delayed(const Duration(milliseconds: 100)); + expect(operation.requestProgress, emitsDone); + expect(operation.responseProgress, emitsDone); + await subscription.cancel(); + await response.close(); + }); - test( - 'can cancel one of multiple concurrent requests without ' - 'affecting others', - () async { - final request1 = AWSHttpRequest.get(createUri('/headers')); - final operation1 = client().send(request1); - // Allow op1 to establish connection - await Future.delayed(const Duration(milliseconds: 100)); - final request2 = AWSHttpRequest.get(createUri('/full')); - final operation2 = client().send(request2); - // Allow op2 to establish connection using same transport as op1 - await Future.delayed(Duration.zero); - await operation1.cancel(); + test('can cancel one of multiple concurrent requests without ' + 'affecting others', () async { + final request1 = AWSHttpRequest.get(createUri('/headers')); + final operation1 = client().send(request1); + // Allow op1 to establish connection + await Future.delayed(const Duration(milliseconds: 100)); + final request2 = AWSHttpRequest.get(createUri('/full')); + final operation2 = client().send(request2); + // Allow op2 to establish connection using same transport as op1 + await Future.delayed(Duration.zero); + await operation1.cancel(); - final response = await operation2.response; - expect(operation2.requestProgress, emitsThrough(emitsDone)); - expect(operation2.responseProgress, emitsThrough(emitsDone)); - expect(response.body, emits(equals([1, 2, 3, 4, 5]))); - }, - ); + final response = await operation2.response; + expect(operation2.requestProgress, emitsThrough(emitsDone)); + expect(operation2.responseProgress, emitsThrough(emitsDone)); + expect(response.body, emits(equals([1, 2, 3, 4, 5]))); + }); - test('can call cancel multiple times synchronously', () async { - final client_ = client(); - final request = AWSHttpRequest.get(createUri('/body')); - final operation = client_.send(request); - unawaited(operation.operation.cancel()); - await expectLater(client_.close(), completes); - }); - }, - ); + test('can call cancel multiple times synchronously', () async { + final client_ = client(); + final request = AWSHttpRequest.get(createUri('/body')); + final operation = client_.send(request); + unawaited(operation.operation.cancel()); + await expectLater(client_.close(), completes); + }); + }); } diff --git a/packages/aws_common/test/http/client_conformance_tests/redirect_server.dart b/packages/aws_common/test/http/client_conformance_tests/redirect_server.dart index 54bd7c847b..2176495684 100644 --- a/packages/aws_common/test/http/client_conformance_tests/redirect_server.dart +++ b/packages/aws_common/test/http/client_conformance_tests/redirect_server.dart @@ -25,11 +25,7 @@ import '../http_server.dart'; Future hybridMain(StreamChannel channel) => clientHybridMain(channel, _handleH1, _handleH2); -void _handleH1( - StreamChannel channel, - HttpRequest request, - int port, -) { +void _handleH1(StreamChannel channel, HttpRequest request, int port) { final requestedScheme = request.uri.scheme; if (request.requestedUri.pathSegments.isEmpty) { request.response.close(); @@ -66,35 +62,23 @@ Future _handleH2( final method = AWSHttpMethod.fromString(headers[':method']!); final path = Uri.parse(headers[':path']!); if (method == AWSHttpMethod.options || path.pathSegments.isEmpty) { - request.sendHeaders( - [Header.ascii(':status', '200')], - endStream: true, - ); + request.sendHeaders([Header.ascii(':status', '200')], endStream: true); return; } if (path.pathSegments.last == 'loop') { - request.sendHeaders( - [ - Header.ascii(':status', '302'), - Header.ascii( - 'Location', - Uri.http('localhost:$port', '/loop').toString(), - ), - ], - endStream: true, - ); + request.sendHeaders([ + Header.ascii(':status', '302'), + Header.ascii('Location', Uri.http('localhost:$port', '/loop').toString()), + ], endStream: true); } else { final n = int.parse(path.pathSegments.last); final nextPath = n - 1 == 0 ? '' : '${n - 1}'; - request.sendHeaders( - [ - Header.ascii(':status', '302'), - Header.ascii( - 'Location', - Uri.http('localhost:$port', '/$nextPath').toString(), - ), - ], - endStream: true, - ); + request.sendHeaders([ + Header.ascii(':status', '302'), + Header.ascii( + 'Location', + Uri.http('localhost:$port', '/$nextPath').toString(), + ), + ], endStream: true); } } diff --git a/packages/aws_common/test/http/client_conformance_tests/redirect_server_test.dart b/packages/aws_common/test/http/client_conformance_tests/redirect_server_test.dart index a8643dade2..02d8ecf153 100644 --- a/packages/aws_common/test/http/client_conformance_tests/redirect_server_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/redirect_server_test.dart @@ -10,8 +10,12 @@ import 'redirect_server_vm.dart' /// Tests that the [AWSHttpClient] correctly implements HTTP redirect logic. void main() { - clientTest('redirects', startServer, - (client, httpServerQueue, httpServerChannel, createUri) { + clientTest('redirects', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { test('disallow redirect', () async { final request = AWSHttpRequest.get( createUri('/1'), @@ -54,53 +58,40 @@ void main() { ); }); - test( - 'exactly the right number of allowed redirects', - () async { - final request = AWSHttpRequest.get( - createUri('/5'), - followRedirects: true, - maxRedirects: 5, - ); - final response = await client().send(request).response; - expect(response.statusCode, 200); - }, - ); + test('exactly the right number of allowed redirects', () async { + final request = AWSHttpRequest.get( + createUri('/5'), + followRedirects: true, + maxRedirects: 5, + ); + final response = await client().send(request).response; + expect(response.statusCode, 200); + }); - test( - 'too many redirects', - () async { - final request = AWSHttpRequest.get( - createUri('/6'), - followRedirects: true, - maxRedirects: 5, - ); - expect( - client().send(request).response, - throwsA( - isA().having( - (e) => e.toString(), - 'message', - contains('Redirect limit exceeded'), - ), + test('too many redirects', () async { + final request = AWSHttpRequest.get( + createUri('/6'), + followRedirects: true, + maxRedirects: 5, + ); + expect( + client().send(request).response, + throwsA( + isA().having( + (e) => e.toString(), + 'message', + contains('Redirect limit exceeded'), ), - ); - }, - skip: zIsWeb ? 'No support for maxRedirects' : null, - ); + ), + ); + }, skip: zIsWeb ? 'No support for maxRedirects' : null); - test( - 'loop', - () async { - final request = AWSHttpRequest.get( - createUri('/loop'), - followRedirects: true, - ); - expect( - client().send(request).response, - throwsA(isA()), - ); - }, - ); + test('loop', () async { + final request = AWSHttpRequest.get( + createUri('/loop'), + followRedirects: true, + ); + expect(client().send(request).response, throwsA(isA())); + }); }); } diff --git a/packages/aws_common/test/http/client_conformance_tests/request_body_server.dart b/packages/aws_common/test/http/client_conformance_tests/request_body_server.dart index 37e4b7ce1e..7e029a4cde 100644 --- a/packages/aws_common/test/http/client_conformance_tests/request_body_server.dart +++ b/packages/aws_common/test/http/client_conformance_tests/request_body_server.dart @@ -22,11 +22,8 @@ import '../http_server.dart'; /// - send request body /// When Receive Anything: /// - exit -Future hybridMain(StreamChannel channel) => clientHybridMain( - channel, - _handleH1, - _handleH2, - ); +Future hybridMain(StreamChannel channel) => + clientHybridMain(channel, _handleH1, _handleH2); Future _handleH1( StreamChannel channel, @@ -56,21 +53,15 @@ Future _handleH2( ) async { final method = AWSHttpMethod.fromString(headers[':method']!); if (method == AWSHttpMethod.options) { - return request.sendHeaders( - [ - Header.ascii(':status', '200'), - Header.ascii('Access-Control-Allow-Methods', 'POST, DELETE'), - Header.ascii('Access-Control-Allow-Headers', 'Content-Type'), - ], - endStream: true, - ); + return request.sendHeaders([ + Header.ascii(':status', '200'), + Header.ascii('Access-Control-Allow-Methods', 'POST, DELETE'), + Header.ascii('Access-Control-Allow-Headers', 'Content-Type'), + ], endStream: true); } channel.sink.add(headers[AWSHeaders.contentType]); final serverReceivedBody = utf8.decode(await body.first); channel.sink.add(serverReceivedBody); - request.sendHeaders( - [Header.ascii(':status', '200')], - endStream: true, - ); + request.sendHeaders([Header.ascii(':status', '200')], endStream: true); } diff --git a/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_server.dart b/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_server.dart index 85a3699502..d29a2a9da3 100644 --- a/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_server.dart +++ b/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_server.dart @@ -28,9 +28,9 @@ Future _handleH1( HttpRequest request, int port, ) async { - await const LineSplitter() - .bind(const Utf8Decoder().bind(request)) - .forEach((value) { + await const LineSplitter().bind(const Utf8Decoder().bind(request)).forEach(( + value, + ) { final lastReceived = int.parse(value.trim()); if (lastReceived == 1000) { channel.sink.add(lastReceived); @@ -53,8 +53,5 @@ Future _handleH2( break; } } - request.sendHeaders( - [Header.ascii(':status', '200')], - endStream: true, - ); + request.sendHeaders([Header.ascii(':status', '200')], endStream: true); } diff --git a/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_test.dart b/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_test.dart index 8c2c4f69fb..a3f678f53e 100644 --- a/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/request_body_streamed_test.dart @@ -16,59 +16,59 @@ import 'request_body_streamed_server_vm.dart' /// Tests that the [AWSHttpClient] correctly implements streamed request body /// uploading. void main() { - clientTest('stream requests', startServer, - skip: zIsWeb - ? 'Web does not support streamed requests for HTTP/1.1' - : null, (client, httpServerQueue, httpServerChannel, createUri) { - Stream count({int? until}) async* { - var i = 0; - while (true) { - if (until != null && i > until) { - break; + clientTest( + 'stream requests', + startServer, + skip: zIsWeb ? 'Web does not support streamed requests for HTTP/1.1' : null, + (client, httpServerQueue, httpServerChannel, createUri) { + Stream count({int? until}) async* { + var i = 0; + while (true) { + if (until != null && i > until) { + break; + } + yield '${i++}\n'; + // Let the event loop run. + await Future.delayed(Duration.zero); } - yield '${i++}\n'; - // Let the event loop run. - await Future.delayed(Duration.zero); } - } - test('client.send() with StreamedRequest', () async { - // The client continuously streams data to the server until - // instructed to stop (by setting `clientWriting` to `false`). - // The server sets `serverWriting` to `false` after it has - // already received some data. - // - // This ensures that the client supports streamed data sends. - final lastReceived = StreamSplitter(httpServerQueue().rest.cast()); + test('client.send() with StreamedRequest', () async { + // The client continuously streams data to the server until + // instructed to stop (by setting `clientWriting` to `false`). + // The server sets `serverWriting` to `false` after it has + // already received some data. + // + // This ensures that the client supports streamed data sends. + final lastReceived = StreamSplitter(httpServerQueue().rest.cast()); - final body = StreamController>(); - final request = AWSStreamedHttpRequest.post( - createUri(''), - body: body.stream, - ); - const Utf8Encoder() - .bind(count()) - .takeUntil(lastReceived.split().firstWhere((el) => el >= 1000)) - .listen(body.sink.add, onDone: body.sink.close); - await client().send(request).response; + final body = StreamController>(); + final request = AWSStreamedHttpRequest.post( + createUri(''), + body: body.stream, + ); + const Utf8Encoder() + .bind(count()) + .takeUntil(lastReceived.split().firstWhere((el) => el >= 1000)) + .listen(body.sink.add, onDone: body.sink.close); + await client().send(request).response; - await expectLater( - lastReceived.split(), - emits(greaterThanOrEqualTo(1000)), - ); - unawaited(body.close()); - }); + await expectLater( + lastReceived.split(), + emits(greaterThanOrEqualTo(1000)), + ); + unawaited(body.close()); + }); - test('can leave content-type unspecified', () async { - final request = AWSStreamedHttpRequest( - method: AWSHttpMethod.get, - uri: createUri(''), - body: count(until: 1000).transform(const Utf8Encoder()), - headers: { - 'content-type': 'text/plain', - }, - ); - expect(client().send(request).response, completes); - }); - }); + test('can leave content-type unspecified', () async { + final request = AWSStreamedHttpRequest( + method: AWSHttpMethod.get, + uri: createUri(''), + body: count(until: 1000).transform(const Utf8Encoder()), + headers: {'content-type': 'text/plain'}, + ); + expect(client().send(request).response, completes); + }); + }, + ); } diff --git a/packages/aws_common/test/http/client_conformance_tests/request_body_test.dart b/packages/aws_common/test/http/client_conformance_tests/request_body_test.dart index 6e5440c7b0..524b15565d 100644 --- a/packages/aws_common/test/http/client_conformance_tests/request_body_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/request_body_test.dart @@ -37,8 +37,12 @@ class _Plus2Encoding extends Encoding { /// Tests that the [AWSHttpClient] correctly implements HTTP requests with /// bodies e.g. 'POST'. void main() { - clientTest('requestBody', startServer, - (client, httpServerQueue, httpServerChannel, createUri) { + clientTest('requestBody', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { test('POST with string body', () async { final request = AWSStreamedHttpRequest.post( createUri(''), @@ -87,10 +91,9 @@ void main() { test('POST with map body and encoding', () async { final request = AWSStreamedHttpRequest.post( createUri(''), - body: HttpPayload.formFields( - {'key': 'value'}, - encoding: _Plus2Encoding(), - ), + body: HttpPayload.formFields({ + 'key': 'value', + }, encoding: _Plus2Encoding()), ); await client().send(request).response; @@ -126,9 +129,7 @@ void main() { final request = AWSStreamedHttpRequest.post( createUri(''), body: HttpPayload.bytes([1, 2, 3, 4, 5]), - headers: { - AWSHeaders.contentType: 'image/png', - }, + headers: {AWSHeaders.contentType: 'image/png'}, ); await client().send(request).response; diff --git a/packages/aws_common/test/http/client_conformance_tests/request_headers_server.dart b/packages/aws_common/test/http/client_conformance_tests/request_headers_server.dart index 2548afdd5a..c654d7a329 100644 --- a/packages/aws_common/test/http/client_conformance_tests/request_headers_server.dart +++ b/packages/aws_common/test/http/client_conformance_tests/request_headers_server.dart @@ -16,7 +16,7 @@ import '../http_server.dart'; /// On Startup: /// - send port /// On Request Received: -/// - send headers as Map> +/// - send headers as Map of String, List of String> /// When Receive Anything: /// - exit Future hybridMain(StreamChannel channel) async => @@ -52,18 +52,12 @@ Future _handleH2( ) async { final method = AWSHttpMethod.fromString(headers[':method']!); if (method == AWSHttpMethod.options) { - return request.sendHeaders( - [ - Header.ascii(':status', '200'), - Header.ascii('Access-Control-Allow-Methods', 'GET'), - Header.ascii('Access-Control-Allow-Headers', '*'), - ], - endStream: true, - ); + return request.sendHeaders([ + Header.ascii(':status', '200'), + Header.ascii('Access-Control-Allow-Methods', 'GET'), + Header.ascii('Access-Control-Allow-Headers', '*'), + ], endStream: true); } channel.sink.add(headers); - request.sendHeaders( - [Header.ascii(':status', '200')], - endStream: true, - ); + request.sendHeaders([Header.ascii(':status', '200')], endStream: true); } diff --git a/packages/aws_common/test/http/client_conformance_tests/request_headers_test.dart b/packages/aws_common/test/http/client_conformance_tests/request_headers_test.dart index 531adb2d91..f66fd3bb3a 100644 --- a/packages/aws_common/test/http/client_conformance_tests/request_headers_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/request_headers_test.dart @@ -10,8 +10,12 @@ import 'request_headers_server_vm.dart' /// Tests that the [AWSHttpClient] correctly sends headers in the request. void main() { - clientTest('client headers', startServer, - (client, httpServerQueue, httpServerChannel, createUri) { + clientTest('client headers', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { test('single header', () async { final request = AWSHttpRequest.get( createUri(''), diff --git a/packages/aws_common/test/http/client_conformance_tests/response_body_streamed_test.dart b/packages/aws_common/test/http/client_conformance_tests/response_body_streamed_test.dart index 078f8df3f2..1399246201 100644 --- a/packages/aws_common/test/http/client_conformance_tests/response_body_streamed_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/response_body_streamed_test.dart @@ -13,8 +13,12 @@ import 'response_body_streamed_server_vm.dart' /// Tests that the [AWSHttpClient] correctly implements HTTP responses with /// bodies of unbounded size. void main() { - clientTest('streamed response body', startServer, - (client, httpServerQueue, httpServerChannel, createUri) { + clientTest('streamed response body', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { test('large response streamed without content length', () async { // The server continuously streams data to the client until // instructed to stop. @@ -26,11 +30,11 @@ void main() { await const LineSplitter() .bind(const Utf8Decoder().bind(response.body)) .forEach((s) { - lastReceived = int.parse(s.trim()); - if (lastReceived == 1000) { - httpServerChannel().sink.add(true); - } - }); + lastReceived = int.parse(s.trim()); + if (lastReceived == 1000) { + httpServerChannel().sink.add(true); + } + }); expect(response.headers[AWSHeaders.contentType], 'text/plain'); expect(lastReceived, greaterThanOrEqualTo(1000)); }); diff --git a/packages/aws_common/test/http/client_conformance_tests/response_body_test.dart b/packages/aws_common/test/http/client_conformance_tests/response_body_test.dart index 3af15b01b9..61be9dd149 100644 --- a/packages/aws_common/test/http/client_conformance_tests/response_body_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/response_body_test.dart @@ -11,8 +11,12 @@ import 'response_body_server_vm.dart' /// Tests that the [AWSHttpClient] correctly implements HTTP responses with /// bodies. void main() { - clientTest('response body', startServer, - (client, httpServerQueue, httpServerChannel, createUri) { + clientTest('response body', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { const message = 'Hello World!'; test('response with content length', () async { diff --git a/packages/aws_common/test/http/client_conformance_tests/response_headers_server.dart b/packages/aws_common/test/http/client_conformance_tests/response_headers_server.dart index 34f99d8ea7..9294a89478 100644 --- a/packages/aws_common/test/http/client_conformance_tests/response_headers_server.dart +++ b/packages/aws_common/test/http/client_conformance_tests/response_headers_server.dart @@ -49,12 +49,7 @@ Future _handleH2( Header.ascii('Access-Control-Expose-Headers', '*'), ]); headers.forEach((key, value) { - request.sendHeaders([ - Header.ascii(key, value), - ]); + request.sendHeaders([Header.ascii(key, value)]); }); - request.sendHeaders( - [Header.ascii(':status', '200')], - endStream: true, - ); + request.sendHeaders([Header.ascii(':status', '200')], endStream: true); } diff --git a/packages/aws_common/test/http/client_conformance_tests/response_headers_test.dart b/packages/aws_common/test/http/client_conformance_tests/response_headers_test.dart index ba0d6bf33f..3308158c9d 100644 --- a/packages/aws_common/test/http/client_conformance_tests/response_headers_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/response_headers_test.dart @@ -10,8 +10,12 @@ import 'response_headers_server_vm.dart' /// Tests that the [AWSHttpClient] correctly processes response headers. void main() { - clientTest('server headers', startServer, - (client, httpServerQueue, httpServerChannel, createUri) { + clientTest('server headers', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { test('single header', () async { final request = AWSHttpRequest.get( createUri(''), diff --git a/packages/aws_common/test/http/client_conformance_tests/server_errors_test.dart b/packages/aws_common/test/http/client_conformance_tests/server_errors_test.dart index 6888589500..8ff9e76429 100644 --- a/packages/aws_common/test/http/client_conformance_tests/server_errors_test.dart +++ b/packages/aws_common/test/http/client_conformance_tests/server_errors_test.dart @@ -10,8 +10,12 @@ import 'server_errors_server_vm.dart' /// Tests that the [AWSHttpClient] correctly handles server errors. void main() { - clientTest('server errors', startServer, - (client, httpServerQueue, httpServerChannel, createUri) { + clientTest('server errors', startServer, ( + client, + httpServerQueue, + httpServerChannel, + createUri, + ) { test('no such host', () async { expect( client() @@ -46,11 +50,7 @@ void main() { expect( client().send(AWSHttpRequest.get(createUri(''))).response, throwsA( - isA().having( - (e) => e.uri, - 'uri', - createUri(''), - ), + isA().having((e) => e.uri, 'uri', createUri('')), ), ); }); diff --git a/packages/aws_common/test/http/downgrade_server.dart b/packages/aws_common/test/http/downgrade_server.dart index 2b1f5307a6..5ad5acdacd 100644 --- a/packages/aws_common/test/http/downgrade_server.dart +++ b/packages/aws_common/test/http/downgrade_server.dart @@ -13,11 +13,7 @@ import 'http_server.dart'; Future hybridMain(StreamChannel channel) => clientHybridMain(channel, _handleH1, _handleH2); -void _handleH1( - StreamChannel channel, - HttpRequest request, - int port, -) { +void _handleH1(StreamChannel channel, HttpRequest request, int port) { request.response ..add('OK'.codeUnits) ..close(); diff --git a/packages/aws_common/test/http/downgrade_test.dart b/packages/aws_common/test/http/downgrade_test.dart index 3044f87a71..0eac7511b2 100644 --- a/packages/aws_common/test/http/downgrade_test.dart +++ b/packages/aws_common/test/http/downgrade_test.dart @@ -19,14 +19,14 @@ void main() { late final StreamChannel httpServerChannel; late final StreamQueue httpServerQueue; - AWSHttpRequest makeRequest() => AWSHttpRequest.get( - (isSecure ? Uri.https : Uri.http)(host, '/'), - ); + AWSHttpRequest makeRequest() => + AWSHttpRequest.get((isSecure ? Uri.https : Uri.http)(host, '/')); setUpAll(() async { - httpServerChannel = await startServer() - ..sink.add(AlpnProtocol.http1_1.value) - ..sink.add(isSecure); + httpServerChannel = + await startServer() + ..sink.add(AlpnProtocol.http1_1.value) + ..sink.add(isSecure); httpServerQueue = StreamQueue(httpServerChannel.stream); host = 'localhost:${await httpServerQueue.next}'; }); @@ -35,33 +35,26 @@ void main() { httpServerChannel.sink.add(null); }); - test( - 'downgrades to HTTP/1.1 when HTTP/2 is unavailable and ' - 'supportedProtocols contains HTTP/1.1', - () async { - final client = debugClient - ..supportedProtocols = SupportedProtocols.http1_2_3; - expect( - client.send(makeRequest()).response, - completes, - reason: 'supportedProtocols allows downgrade to HTTP/1.1', - ); - }, - ); + test('downgrades to HTTP/1.1 when HTTP/2 is unavailable and ' + 'supportedProtocols contains HTTP/1.1', () async { + final client = + debugClient..supportedProtocols = SupportedProtocols.http1_2_3; + expect( + client.send(makeRequest()).response, + completes, + reason: 'supportedProtocols allows downgrade to HTTP/1.1', + ); + }); - test( - 'fails when HTTP/2 is unavailable and supportedProtocols ' - 'does not contain HTTP/1.1', - () async { - final client = debugClient - ..supportedProtocols = SupportedProtocols.http2_3; - expect( - client.send(makeRequest()).response, - throwsA(isA()), - reason: 'supportedProtocols does not allow HTTP/1.1', - ); - }, - skip: zIsWeb ? 'Web client cannot select protocols' : null, - ); + test('fails when HTTP/2 is unavailable and supportedProtocols ' + 'does not contain HTTP/1.1', () async { + final client = + debugClient..supportedProtocols = SupportedProtocols.http2_3; + expect( + client.send(makeRequest()).response, + throwsA(isA()), + reason: 'supportedProtocols does not allow HTTP/1.1', + ); + }, skip: zIsWeb ? 'Web client cannot select protocols' : null); }); } diff --git a/packages/aws_common/test/http/http_client_test.dart b/packages/aws_common/test/http/http_client_test.dart index 99d4857620..6e7018456e 100644 --- a/packages/aws_common/test/http/http_client_test.dart +++ b/packages/aws_common/test/http/http_client_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'package:aws_common/aws_common.dart'; import 'package:test/test.dart'; @@ -18,11 +19,10 @@ class OverrideTransformRequestClient extends AWSBaseHttpClient { void main() { group('AWSBaseHttpClient', () { test('can leave baseClient unspecified', () async { - final client = OverrideTransformRequestClient() - ..supportedProtocols = SupportedProtocols.http1; - final request = AWSHttpRequest.get( - Uri.parse('https://amazon.com/ping'), - ); + final client = + OverrideTransformRequestClient() + ..supportedProtocols = SupportedProtocols.http1; + final request = AWSHttpRequest.get(Uri.parse('https://amazon.com/ping')); expect(request.send(client: client).response, completes); }); }); diff --git a/packages/aws_common/test/http/http_client_transform_test.dart b/packages/aws_common/test/http/http_client_transform_test.dart index 9cccc2061f..68aed252cc 100644 --- a/packages/aws_common/test/http/http_client_transform_test.dart +++ b/packages/aws_common/test/http/http_client_transform_test.dart @@ -15,9 +15,7 @@ final _exampleUri = Uri.parse('https://example.com'); /// Mock client to test successfully transforming request/response. class SuccessfulTransformClient extends AWSBaseHttpClient { - SuccessfulTransformClient({ - required this.baseClient, - }); + SuccessfulTransformClient({required this.baseClient}); @override final AWSHttpClient baseClient; @@ -76,39 +74,43 @@ void main() { group('AWSHttpClient', () { test( - 'transformRequest/Response will add a header to a request and response', - () async { - final transformerClient = SuccessfulTransformClient( - baseClient: mockBaseClient, - ); - final response = await transformerClient - .send(AWSHttpRequest.post(_exampleUri)) - .response; - expect(response.headers[_responseHeaderKey], _responseHeaderValue); - }); + 'transformRequest/Response will add a header to a request and response', + () async { + final transformerClient = SuccessfulTransformClient( + baseClient: mockBaseClient, + ); + final response = + await transformerClient + .send(AWSHttpRequest.post(_exampleUri)) + .response; + expect(response.headers[_responseHeaderKey], _responseHeaderValue); + }, + ); test( - 'exception thrown in transformRequest can be caught in response future', - () async { - final transformerClient = UnsuccessfulRequestTransformClient( - baseClient: mockBaseClient, - ); - await expectLater( - transformerClient.send(AWSHttpRequest.post(_exampleUri)).response, - throwsA(isA()), - ); - }); + 'exception thrown in transformRequest can be caught in response future', + () async { + final transformerClient = UnsuccessfulRequestTransformClient( + baseClient: mockBaseClient, + ); + await expectLater( + transformerClient.send(AWSHttpRequest.post(_exampleUri)).response, + throwsA(isA()), + ); + }, + ); test( - 'exception thrown in transformResponse can be caught in response future', - () async { - final transformerClient = UnsuccessfulResponseTransformClient( - baseClient: mockBaseClient, - ); - await expectLater( - transformerClient.send(AWSHttpRequest.post(_exampleUri)).response, - throwsA(isA()), - ); - }); + 'exception thrown in transformResponse can be caught in response future', + () async { + final transformerClient = UnsuccessfulResponseTransformClient( + baseClient: mockBaseClient, + ); + await expectLater( + transformerClient.send(AWSHttpRequest.post(_exampleUri)).response, + throwsA(isA()), + ); + }, + ); }); } diff --git a/packages/aws_common/test/http/http_common.dart b/packages/aws_common/test/http/http_common.dart index 4c44530540..2cbbfa6059 100644 --- a/packages/aws_common/test/http/http_common.dart +++ b/packages/aws_common/test/http/http_common.dart @@ -22,7 +22,8 @@ void clientTest( StreamQueue Function() getHttpServerQueue, StreamChannel Function() getHttpServerChannel, Uri Function(String) createUri, - ) testCases, { + ) + testCases, { Object? skip, }) { AWSLogger().logLevel = LogLevel.verbose; @@ -47,9 +48,10 @@ void clientTest( (secure ? Uri.https : Uri.http)(host, path); setUp(() async { - httpServerChannel = await startServer() - ..sink.add(protocol.value) - ..sink.add(secure); + httpServerChannel = + await startServer() + ..sink.add(protocol.value) + ..sink.add(secure); httpServerQueue = StreamQueue(httpServerChannel.stream); host = 'localhost:${await httpServerQueue.next}'; client = debugClient..supportedProtocols = supportedProtocols; diff --git a/packages/aws_common/test/http/http_payload_test.dart b/packages/aws_common/test/http/http_payload_test.dart index 36a25497d1..416919e20c 100644 --- a/packages/aws_common/test/http/http_payload_test.dart +++ b/packages/aws_common/test/http/http_payload_test.dart @@ -15,30 +15,21 @@ void main() { test('string', () { expect( HttpPayload.string('Hello'), - emitsInOrder([ - 'Hello'.codeUnits, - emitsDone, - ]), + emitsInOrder(['Hello'.codeUnits, emitsDone]), ); }); test('bytes', () { expect( HttpPayload.bytes('Hello'.codeUnits), - emitsInOrder([ - 'Hello'.codeUnits, - emitsDone, - ]), + emitsInOrder(['Hello'.codeUnits, emitsDone]), ); }); test('formFields', () { expect( HttpPayload.formFields({'key1': 'value1', 'key2': 'value2'}), - emitsInOrder([ - 'key1=value1&key2=value2'.codeUnits, - emitsDone, - ]), + emitsInOrder(['key1=value1&key2=value2'.codeUnits, emitsDone]), ); }); @@ -118,9 +109,10 @@ void main() { expect(payload.contentType, 'text/html'); expect( payload, - emitsInOrder( - [utf8.encode(''), emitsDone], - ), + emitsInOrder([ + utf8.encode(''), + emitsDone, + ]), ); }); diff --git a/packages/aws_common/test/http/http_server.dart b/packages/aws_common/test/http/http_server.dart index aea30f23ed..fa41173a8b 100644 --- a/packages/aws_common/test/http/http_server.dart +++ b/packages/aws_common/test/http/http_server.dart @@ -17,14 +17,16 @@ Future clientHybridMain( StreamChannel channel, HttpRequest request, int port, - ) handleH1, + ) + handleH1, FutureOr Function( StreamChannel channel, ServerTransportStream request, Stream> body, Map headers, int port, - ) handleH2, + ) + handleH2, ) async { final queue = StreamQueue(channel.stream); final protocol = await queue.next as String; @@ -32,9 +34,10 @@ Future clientHybridMain( late int port; late Future Function() close; - final context = SecurityContext() - ..useCertificateChain('test/http/certificates/cert.pem') - ..usePrivateKey('test/http/certificates/key.pem', password: 'amazon'); + final context = + SecurityContext() + ..useCertificateChain('test/http/certificates/cert.pem') + ..usePrivateKey('test/http/certificates/key.pem', password: 'amazon'); if (protocol == AlpnProtocol.http2.value) { final server = await MultiProtocolHttpServer.bind( InternetAddress.loopbackIPv4, @@ -49,9 +52,7 @@ Future clientHybridMain( handleH1(channel, request, port); }, (request) async { - request.sendHeaders([ - Header.ascii('Access-Control-Allow-Origin', '*'), - ]); + request.sendHeaders([Header.ascii('Access-Control-Allow-Origin', '*')]); final headers = CaseInsensitiveMap({}); final gotHeaders = Completer.sync(); final bodyController = StreamController>(sync: true); diff --git a/packages/aws_common/test/io/aws_file_html_test.dart b/packages/aws_common/test/io/aws_file_html_test.dart index ffdeec7ed7..1122c79c91 100644 --- a/packages/aws_common/test/io/aws_file_html_test.dart +++ b/packages/aws_common/test/io/aws_file_html_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('browser') +library; import 'dart:async'; import 'dart:convert'; @@ -23,11 +24,10 @@ void main() { final testBytesUtf16 = testStringContent.codeUnits; final testBlob = html.Blob([testBytes], testContentType); final testFile = html.File( - [testBlob], - 'test_file.txt', - { - 'type': testBlob.type, - }); + [testBlob], + 'test_file.txt', + {'type': testBlob.type}, + ); final testFilePath = html.Url.createObjectUrl(testFile); group('getChunkedStreamReader() API', () { @@ -99,40 +99,37 @@ void main() { }); test('should resolve contentType from underlying html File', () async { - final awsFile = AWSFilePlatform.fromFile( - testFile, - ); + final awsFile = AWSFilePlatform.fromFile(testFile); expect(await awsFile.contentType, testFile.type); }); test('should resolve contentType from underlying html Blob', () async { - final awsFile = AWSFilePlatform.fromBlob( - testBlob, - ); + final awsFile = AWSFilePlatform.fromBlob(testBlob); expect(await awsFile.contentType, testBlob.type); }); test( - 'should resolve contentType from the blob that is resolved from the path', - () async { - final awsFile = AWSFilePlatform.fromPath( - testFilePath, - ); + 'should resolve contentType from the blob that is resolved from the path', + () async { + final awsFile = AWSFilePlatform.fromPath(testFilePath); - expect(await awsFile.contentType, testFile.type); - }); + expect(await awsFile.contentType, testFile.type); + }, + ); - test('should return null as contentType if contentType is unresolvable', - () async { - final awsFile = AWSFile.fromStream( - Stream.value(testBytes), - size: testBytes.length, - ); + test( + 'should return null as contentType if contentType is unresolvable', + () async { + final awsFile = AWSFile.fromStream( + Stream.value(testBytes), + size: testBytes.length, + ); - expect(await awsFile.contentType, isNull); - }); + expect(await awsFile.contentType, isNull); + }, + ); }); group('openRead() API', () { @@ -218,7 +215,7 @@ void main() { /// Collects an asynchronous sequence of byte lists into a single list of bytes. /// -/// Similar to collectBytes from package:async, but works for any List, +/// Similar to collectBytes from package:async, but works for any List of int, /// where as collectBytes from package:async only supports [Uint8List]. Future> collectBytes(Stream> source) { final bytes = []; diff --git a/packages/aws_common/test/io/aws_file_io_test.dart b/packages/aws_common/test/io/aws_file_io_test.dart index 3d7e22c3a8..95953a1394 100644 --- a/packages/aws_common/test/io/aws_file_io_test.dart +++ b/packages/aws_common/test/io/aws_file_io_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'dart:convert'; import 'dart:io' as io; @@ -86,22 +87,22 @@ void main() { }); test('should resolve contentType from the underlying file', () async { - final awsFile = AWSFilePlatform.fromFile( - testFile, - ); + final awsFile = AWSFilePlatform.fromFile(testFile); expect(await awsFile.contentType, testContentType); }); - test('should return null as contentType if contentType is unresolvable', - () async { - final awsFile = AWSFile.fromStream( - Stream.value(testBytes), - size: testBytes.length, - ); + test( + 'should return null as contentType if contentType is unresolvable', + () async { + final awsFile = AWSFile.fromStream( + Stream.value(testBytes), + size: testBytes.length, + ); - expect(await awsFile.contentType, isNull); - }); + expect(await awsFile.contentType, isNull); + }, + ); }); group('openRead() API', () { diff --git a/packages/aws_common/test/js/readable_stream_test.dart b/packages/aws_common/test/js/readable_stream_test.dart index ea8f253282..f7bd959322 100644 --- a/packages/aws_common/test/js/readable_stream_test.dart +++ b/packages/aws_common/test/js/readable_stream_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('browser') +library; import 'dart:async'; import 'dart:typed_data'; @@ -38,14 +39,7 @@ void main() { test('progress', () { final readableStream = createReadableStream(); - expect( - readableStream.progress, - emitsInOrder([ - 5, - 10, - emitsDone, - ]), - ); + expect(readableStream.progress, emitsInOrder([5, 10, emitsDone])); }); group('asReadableStream (async)', () { @@ -63,14 +57,7 @@ void main() { emitsDone, ]), ); - expect( - readableStream.progress, - emitsInOrder([ - 5, - 10, - emitsDone, - ]), - ); + expect(readableStream.progress, emitsInOrder([5, 10, emitsDone])); }); test('onError (caught)', () async { @@ -86,13 +73,7 @@ void main() { ..add([1, 2, 3, 4, 5]) ..addError('failure') ..add([6, 7, 8, 9, 0]); - expect( - readableStream.progress, - emitsInOrder([ - 5, - emitsDone, - ]), - ); + expect(readableStream.progress, emitsInOrder([5, emitsDone])); await expectLater( readableStream.stream, emitsInOrder([ @@ -119,13 +100,7 @@ void main() { emitsDone, ]), ); - expect( - readableStream.progress, - emitsInOrder([ - 5, - emitsDone, - ]), - ); + expect(readableStream.progress, emitsInOrder([5, emitsDone])); }); }); @@ -145,14 +120,7 @@ void main() { emitsDone, ]), ); - expect( - readableStream.progress, - emitsInOrder([ - 5, - 10, - emitsDone, - ]), - ); + expect(readableStream.progress, emitsInOrder([5, 10, emitsDone])); }); test('onError (caught)', () async { @@ -168,13 +136,7 @@ void main() { ..add([1, 2, 3, 4, 5]) ..addError('failure') ..add([6, 7, 8, 9, 0]); - expect( - readableStream.progress, - emitsInOrder([ - 5, - emitsDone, - ]), - ); + expect(readableStream.progress, emitsInOrder([5, emitsDone])); await expectLater( readableStream.stream, emitsInOrder([ @@ -201,13 +163,7 @@ void main() { emitsDone, ]), ); - expect( - readableStream.progress, - emitsInOrder([ - 5, - emitsDone, - ]), - ); + expect(readableStream.progress, emitsInOrder([5, emitsDone])); }); }); diff --git a/packages/aws_common/test/logging/aws_logger_test.dart b/packages/aws_common/test/logging/aws_logger_test.dart index 158aaa2434..51afbe3812 100644 --- a/packages/aws_common/test/logging/aws_logger_test.dart +++ b/packages/aws_common/test/logging/aws_logger_test.dart @@ -75,17 +75,19 @@ void main() { }), ); - final logger = AWSLogger() - ..registerPlugin(loggerPlugin) - ..logLevel = LogLevel.verbose; + final logger = + AWSLogger() + ..registerPlugin(loggerPlugin) + ..logLevel = LogLevel.verbose; callLogger(logger); }); test('Unregistered plugin is not called', () { final loggerPlugin = MockLoggerPlugin(); - final logger = AWSLogger() - ..registerPlugin(loggerPlugin) - ..logLevel = LogLevel.verbose; + final logger = + AWSLogger() + ..registerPlugin(loggerPlugin) + ..logLevel = LogLevel.verbose; callLogger(logger); expect(loggerPlugin.timesCalled, 5); @@ -100,10 +102,11 @@ void main() { test('Multiple LoggerPlugins register and unregister properly', () async { final loggerPlugin1 = MockLoggerPlugin(); final loggerPlugin2 = MockLoggerPlugin2(); - final logger = AWSLogger() - ..registerPlugin(loggerPlugin1) - ..registerPlugin(loggerPlugin2) - ..logLevel = LogLevel.verbose; + final logger = + AWSLogger() + ..registerPlugin(loggerPlugin1) + ..registerPlugin(loggerPlugin2) + ..logLevel = LogLevel.verbose; callLogger(logger); expect(loggerPlugin1.timesCalled, 5); @@ -127,9 +130,10 @@ void main() { }), ); - final logger = AWSLogger() - ..registerPlugin(loggerPlugin) - ..logLevel = LogLevel.warn; + final logger = + AWSLogger() + ..registerPlugin(loggerPlugin) + ..logLevel = LogLevel.warn; callLogger(logger); }); @@ -167,9 +171,10 @@ void main() { final logger = AWSLogger()..logLevel = LogLevel.none; final loggerPlugin = MockLoggerPlugin(); - final categoryLogger = logger.createChild('Child') - ..registerPlugin(loggerPlugin) - ..logLevel = LogLevel.verbose; + final categoryLogger = + logger.createChild('Child') + ..registerPlugin(loggerPlugin) + ..logLevel = LogLevel.verbose; callLogger(categoryLogger); expect(loggerPlugin.timesCalled, 5); @@ -177,9 +182,10 @@ void main() { test('Logger factory constructors return the same instance', () { final loggerPlugin = MockLoggerPlugin(); - final logger = AWSLogger() - ..registerPlugin(loggerPlugin) - ..logLevel = LogLevel.none; + final logger = + AWSLogger() + ..registerPlugin(loggerPlugin) + ..logLevel = LogLevel.none; callLogger(logger); expect(loggerPlugin.timesCalled, 0); @@ -192,9 +198,10 @@ void main() { test('createChild returns the same instance for a given namespace', () { final loggerPlugin = MockLoggerPlugin(); - final logger = AWSLogger().createChild('Child') - ..registerPlugin(loggerPlugin) - ..logLevel = LogLevel.none; + final logger = + AWSLogger().createChild('Child') + ..registerPlugin(loggerPlugin) + ..logLevel = LogLevel.none; callLogger(logger); expect(loggerPlugin.timesCalled, 0); @@ -207,14 +214,16 @@ void main() { test('Detached loggers exist outside the hierarchy', () { final loggerPlugin = MockLoggerPlugin(); - final logger = AWSLogger.detached('') - ..logLevel = LogLevel.verbose - ..registerPlugin(loggerPlugin); + final logger = + AWSLogger.detached('') + ..logLevel = LogLevel.verbose + ..registerPlugin(loggerPlugin); final globalLoggerPlugin = MockLoggerPlugin(); - final globalLogger = AWSLogger() - ..logLevel = LogLevel.none - ..registerPlugin(globalLoggerPlugin); + final globalLogger = + AWSLogger() + ..logLevel = LogLevel.none + ..registerPlugin(globalLoggerPlugin); callLogger(logger); callLogger(globalLogger); @@ -240,8 +249,7 @@ void main() { expect(childLogger.getPlugin(), plugin); }); - test( - 'registerPlugin handles registering one plugin per type' + test('registerPlugin handles registering one plugin per type' ' in the logger hierarchy', () { final plugin = MockLoggerPlugin(); final childLogger = AWSLogger() diff --git a/packages/aws_common/test/util/stream_test.dart b/packages/aws_common/test/util/stream_test.dart index a0dbe77d0f..abf26e91b9 100644 --- a/packages/aws_common/test/util/stream_test.dart +++ b/packages/aws_common/test/util/stream_test.dart @@ -19,14 +19,8 @@ void main() { test('forwards errors', () { final controller = StreamController(); - expect( - Stream.error('error').forward(controller), - completes, - ); - expect( - controller.stream, - emitsInOrder([emitsError('error'), emitsDone]), - ); + expect(Stream.error('error').forward(controller), completes); + expect(controller.stream, emitsInOrder([emitsError('error'), emitsDone])); }); test('does not add events when closed', () { @@ -40,10 +34,7 @@ void main() { test('does not add errors when closed', () { final controller = StreamController()..close(); - expect( - Stream.error('error').forward(controller), - completes, - ); + expect(Stream.error('error').forward(controller), completes); expect(controller.stream, emitsDone); }); @@ -59,8 +50,7 @@ void main() { await Future.delayed(Duration.zero); yield n; } - }() - .forward(controller); + }().forward(controller); expect( controller.stream, emitsInOrder([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, emitsDone]), @@ -70,16 +60,16 @@ void main() { test('keeps controller alive', () async { final controller = StreamController(); expect( - Stream.fromIterable([1, 2, 3, 4, 5]).forward( - controller, - closeWhenDone: false, - ), + Stream.fromIterable([ + 1, + 2, + 3, + 4, + 5, + ]).forward(controller, closeWhenDone: false), completes, ); - await expectLater( - controller.stream, - emitsInOrder([1, 2, 3, 4, 5]), - ); + await expectLater(controller.stream, emitsInOrder([1, 2, 3, 4, 5])); expect(controller.isClosed, isFalse); }); diff --git a/packages/aws_common/tool/generate_tests.dart b/packages/aws_common/tool/generate_tests.dart index 57a7b15413..3ca0af68f5 100644 --- a/packages/aws_common/tool/generate_tests.dart +++ b/packages/aws_common/tool/generate_tests.dart @@ -19,8 +19,7 @@ Future generateParserTests() async { final json = jsonDecode(await file.readAsString()) as Map; final tests = (json['tests'] as List).cast>(); - final output = StringBuffer( - ''' + final output = StringBuffer(''' // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 @@ -37,50 +36,40 @@ import 'package:test/test.dart'; void main() { const loader = AWSProfileFileLoader(); group(testOn: 'vm', 'AWSProfileFileParser', () { -''', - ); +'''); for (final testJson in tests) { final test = ParserTest.fromJson(testJson.cast()); output.writeln("test(r'${test.name}', () {"); final config = test.input.configFile; if (config != null) { - output.writeln( - ''' + output.writeln(''' const configContents = r\'\'\' $config\'\'\'; const configFile = ResolvedFile(AWSProfileFileType.config, configContents); -''', - ); +'''); } else { - output.writeln( - ''' + output.writeln(''' const configFile = ResolvedFile.empty(AWSProfileFileType.config); -''', - ); +'''); } final credentials = test.input.credentialsFile; if (credentials != null) { - output.writeln( - ''' + output.writeln(''' const credentialsContents = r\'\'\' $credentials\'\'\'; const credentialsFile = ResolvedFile(AWSProfileFileType.credentials, credentialsContents,); -''', - ); +'''); } else { - output.writeln( - ''' + output.writeln(''' const credentialsFile = ResolvedFile.empty(AWSProfileFileType.credentials); -''', - ); +'''); } final error = test.output.errorContaining?.replaceAll('\'', '\\\''); if (error != null) { - output.writeln( - ''' + output.writeln(''' expect( loader.load( configFile: configFile, @@ -92,12 +81,10 @@ expect( contains('$error'), ),), ); -''', - ); +'''); } else { assert(test.output.profiles != null, 'profiles should be defined'); - output.writeln( - ''' + output.writeln(''' final expected = AWSProfileFile.fromJson(jsonDecode(r\'\'\' ${jsonEncode(test.output.toJson())} \'\'\',) as Map,); @@ -108,18 +95,15 @@ expect( ), completion(equals(expected)), ); -''', - ); +'''); } output.writeln('});'); } - output.writeln( - ''' + output.writeln(''' }); } -''', - ); +'''); await File(outputFilepath).writeAsString(output.toString()); await Process.run('dart', ['format', '--fix', outputFilepath]); } @@ -131,8 +115,7 @@ Future generateFileLocationTests() async { final json = jsonDecode(await file.readAsString()) as Map; final tests = (json['tests'] as List).cast>(); - final output = StringBuffer( - ''' + final output = StringBuffer(''' // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 @@ -145,8 +128,7 @@ import 'package:test/test.dart'; void main() { const pathProvider = AWSPathProvider(); group(testOn: 'vm', 'AWSPathProvider', () { -''', - ); +'''); for (final testJson in tests) { final test = FileLocationTest.fromJson(testJson.cast()); // These tests test resolution when no environment variables are set, but @@ -160,8 +142,7 @@ void main() { if (skipTests.contains(test.name)) { continue; } - output.writeln( - ''' + output.writeln(''' test(r'${test.name}', () { overrideOperatingSystem(OperatingSystem('${test.platform.name}', ''), () { overrideEnvironment({ @@ -172,16 +153,16 @@ test(r'${test.name}', () { },); },); }); -''', - ); +'''); } output.writeln('});}'); await File(outputFilepath).writeAsString(output.toString()); - final formatRes = await Process.run( - 'dart', - ['format', '--fix', outputFilepath], - ); + final formatRes = await Process.run('dart', [ + 'format', + '--fix', + outputFilepath, + ]); if (formatRes.exitCode != 0) { throw Exception(formatRes.stderr); } @@ -196,8 +177,7 @@ Future generateProfileTests() async { (json['testSuites'] as List).single as Map, ); - final output = StringBuffer( - ''' + final output = StringBuffer(''' // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 @@ -210,28 +190,23 @@ import 'package:test/test.dart'; void main() { group('AWSProfile', () { -''', - ); +'''); for (final test in [tests.regionTests, ...tests.credentialsTests]) { - output.writeln( - ''' + output.writeln(''' test('${test.name}', () { final profile = AWSProfileFile.fromJson(jsonDecode(r\'\'\' ${jsonEncode(tests.profiles)} \'\'\',) as Map,); -''', - ); +'''); final region = test.output.region; if (region != null) { - output.writeln( - ''' + output.writeln(''' expect( profile.region('${test.profile}'), '$region' ); -''', - ); +'''); } else { final credentialsType = test.output.credentialType!; final expect = switch (credentialsType) { @@ -255,14 +230,12 @@ isA().having( ) ''', }; - output.writeln( - ''' + output.writeln(''' expect( profile.credentials('${test.profile}'), $expect, ); -''', - ); +'''); } output.writeln('});'); } diff --git a/packages/aws_common/tool/test_models.dart b/packages/aws_common/tool/test_models.dart index 3ac4c451de..3921ac9e5c 100644 --- a/packages/aws_common/tool/test_models.dart +++ b/packages/aws_common/tool/test_models.dart @@ -12,10 +12,7 @@ const serializable = JsonSerializable( includeIfNull: false, ); -enum TestPlatform { - linux, - windows, -} +enum TestPlatform { linux, windows } @serializable class FileLocationTest with AWSSerializable> { @@ -65,10 +62,7 @@ class ParserTest with AWSSerializable> { @serializable class ParserTestInput with AWSSerializable> { - const ParserTestInput({ - this.configFile, - this.credentialsFile, - }); + const ParserTestInput({this.configFile, this.credentialsFile}); factory ParserTestInput.fromJson(Map json) => _$ParserTestInputFromJson(json); @@ -83,10 +77,7 @@ class ParserTestInput with AWSSerializable> { @serializable @NullableAWSProfileFileConverter() class ParserTestOutput with AWSSerializable> { - const ParserTestOutput({ - this.errorContaining, - this.profiles, - }); + const ParserTestOutput({this.errorContaining, this.profiles}); factory ParserTestOutput.fromJson(Map json) => _$ParserTestOutputFromJson(json); @@ -139,18 +130,11 @@ class ProfileTestCase { Map toJson() => _$ProfileTestCaseToJson(this); } -enum AWSCredentialsType { - assumeRole, - session, - basic, -} +enum AWSCredentialsType { assumeRole, session, basic } @serializable class ProfileTestOutput { - const ProfileTestOutput({ - this.region, - this.credentialType, - }); + const ProfileTestOutput({this.region, this.credentialType}); factory ProfileTestOutput.fromJson(Map json) => _$ProfileTestOutputFromJson(json); @@ -179,15 +163,13 @@ class AWSProfileFileConverter b.name = propertyName; final propertyValue = property.value as String; if (propertyValue.startsWith(lineBreakExp)) { - for (final propLine - in propertyValue.split(lineBreakExp).skip(1)) { + for (final propLine in propertyValue + .split(lineBreakExp) + .skip(1)) { final name = propLine.split('=')[0].trim(); final value = propLine.split('=')[1].trim(); b.value = ''; - b.subProperties[name] = AWSProperty( - name: name, - value: value, - ); + b.subProperties[name] = AWSProperty(name: name, value: value); } } else { b.value = propertyValue; diff --git a/packages/aws_common/tool/test_models.g.dart b/packages/aws_common/tool/test_models.g.dart index 5d2c707d7a..8770363ad6 100644 --- a/packages/aws_common/tool/test_models.g.dart +++ b/packages/aws_common/tool/test_models.g.dart @@ -9,7 +9,8 @@ part of 'test_models.dart'; FileLocationTest _$FileLocationTestFromJson(Map json) => FileLocationTest( name: json['name'] as String, - environment: (json['environment'] as Map?)?.map( + environment: + (json['environment'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ) ?? const {}, @@ -20,25 +21,17 @@ FileLocationTest _$FileLocationTestFromJson(Map json) => credentialsLocation: json['credentialsLocation'] as String, ); -Map _$FileLocationTestToJson(FileLocationTest instance) { - final val = { - 'name': instance.name, - 'environment': instance.environment, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('languageSpecificHome', instance.languageSpecificHome); - val['platform'] = _$TestPlatformEnumMap[instance.platform]!; - writeNotNull('profile', instance.profile); - val['configLocation'] = instance.configLocation; - val['credentialsLocation'] = instance.credentialsLocation; - return val; -} +Map _$FileLocationTestToJson(FileLocationTest instance) => + { + 'name': instance.name, + 'environment': instance.environment, + if (instance.languageSpecificHome case final value?) + 'languageSpecificHome': value, + 'platform': _$TestPlatformEnumMap[instance.platform]!, + if (instance.profile case final value?) 'profile': value, + 'configLocation': instance.configLocation, + 'credentialsLocation': instance.credentialsLocation, + }; const _$TestPlatformEnumMap = { TestPlatform.linux: 'linux', @@ -46,10 +39,10 @@ const _$TestPlatformEnumMap = { }; ParserTest _$ParserTestFromJson(Map json) => ParserTest( - name: json['name'] as String, - input: ParserTestInput.fromJson(json['input'] as Map), - output: ParserTestOutput.fromJson(json['output'] as Map), - ); + name: json['name'] as String, + input: ParserTestInput.fromJson(json['input'] as Map), + output: ParserTestOutput.fromJson(json['output'] as Map), +); Map _$ParserTestToJson(ParserTest instance) => { @@ -64,66 +57,56 @@ ParserTestInput _$ParserTestInputFromJson(Map json) => credentialsFile: json['credentialsFile'] as String?, ); -Map _$ParserTestInputToJson(ParserTestInput instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('configFile', instance.configFile); - writeNotNull('credentialsFile', instance.credentialsFile); - return val; -} +Map _$ParserTestInputToJson(ParserTestInput instance) => + { + if (instance.configFile case final value?) 'configFile': value, + if (instance.credentialsFile case final value?) 'credentialsFile': value, + }; ParserTestOutput _$ParserTestOutputFromJson(Map json) => ParserTestOutput( errorContaining: json['errorContaining'] as String?, - profiles: const NullableAWSProfileFileConverter() - .fromJson(json['profiles'] as Map?), + profiles: const NullableAWSProfileFileConverter().fromJson( + json['profiles'] as Map?, + ), ); -Map _$ParserTestOutputToJson(ParserTestOutput instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('errorContaining', instance.errorContaining); - writeNotNull('profiles', - const NullableAWSProfileFileConverter().toJson(instance.profiles)); - return val; -} +Map _$ParserTestOutputToJson(ParserTestOutput instance) => + { + if (instance.errorContaining case final value?) 'errorContaining': value, + if (const NullableAWSProfileFileConverter().toJson(instance.profiles) + case final value?) + 'profiles': value, + }; ProfileTest _$ProfileTestFromJson(Map json) => ProfileTest( - profiles: const AWSProfileFileConverter() - .fromJson(json['profiles'] as Map), - regionTests: - ProfileTestCase.fromJson(json['regionTests'] as Map), - credentialsTests: (json['credentialsTests'] as List) + profiles: const AWSProfileFileConverter().fromJson( + json['profiles'] as Map, + ), + regionTests: ProfileTestCase.fromJson( + json['regionTests'] as Map, + ), + credentialsTests: + (json['credentialsTests'] as List) .map((e) => ProfileTestCase.fromJson(e as Map)) .toList(), - ); - -Map _$ProfileTestToJson(ProfileTest instance) => - { - 'profiles': const AWSProfileFileConverter().toJson(instance.profiles), - 'regionTests': instance.regionTests.toJson(), - 'credentialsTests': - instance.credentialsTests.map((e) => e.toJson()).toList(), - }; +); + +Map _$ProfileTestToJson( + ProfileTest instance, +) => { + 'profiles': const AWSProfileFileConverter().toJson(instance.profiles), + 'regionTests': instance.regionTests.toJson(), + 'credentialsTests': instance.credentialsTests.map((e) => e.toJson()).toList(), +}; ProfileTestCase _$ProfileTestCaseFromJson(Map json) => ProfileTestCase( name: json['name'] as String, profile: json['profile'] as String, - output: - ProfileTestOutput.fromJson(json['output'] as Map), + output: ProfileTestOutput.fromJson( + json['output'] as Map, + ), ); Map _$ProfileTestCaseToJson(ProfileTestCase instance) => @@ -137,23 +120,18 @@ ProfileTestOutput _$ProfileTestOutputFromJson(Map json) => ProfileTestOutput( region: json['region'] as String?, credentialType: $enumDecodeNullable( - _$AWSCredentialsTypeEnumMap, json['credentialType']), + _$AWSCredentialsTypeEnumMap, + json['credentialType'], + ), ); -Map _$ProfileTestOutputToJson(ProfileTestOutput instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('region', instance.region); - writeNotNull( - 'credentialType', _$AWSCredentialsTypeEnumMap[instance.credentialType]); - return val; -} +Map _$ProfileTestOutputToJson( + ProfileTestOutput instance, +) => { + if (instance.region case final value?) 'region': value, + if (_$AWSCredentialsTypeEnumMap[instance.credentialType] case final value?) + 'credentialType': value, +}; const _$AWSCredentialsTypeEnumMap = { AWSCredentialsType.assumeRole: 'assumeRole', diff --git a/packages/aws_signature_v4/CHANGELOG.md b/packages/aws_signature_v4/CHANGELOG.md index 93afd0b039..eb855304cd 100644 --- a/packages/aws_signature_v4/CHANGELOG.md +++ b/packages/aws_signature_v4/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.6.5 + +### Fixes +- fix(sigv4): Convert empty query parameters to null ([#6082](https://github.com/aws-amplify/amplify-flutter/pull/6082)) + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.6.4 - Minor bug fixes and improvements diff --git a/packages/aws_signature_v4/example/bin/example.dart b/packages/aws_signature_v4/example/bin/example.dart index b9ca3fc21c..10684c7f01 100644 --- a/packages/aws_signature_v4/example/bin/example.dart +++ b/packages/aws_signature_v4/example/bin/example.dart @@ -39,15 +39,14 @@ Future main(List args) async { final parsedArgs = argParser.parse(args); - final bucket = parsedArgs[bucketArg] as String? ?? + final bucket = + parsedArgs[bucketArg] as String? ?? 'mybucket-${Random().nextInt(1 << 30)}'; final region = parsedArgs[regionArg] as String; final filename = parsedArgs.rest.singleOrNull; if (filename == null) { - exitWithError( - 'Usage: dart s3_example.dart --region=... ', - ); + exitWithError('Usage: dart s3_example.dart --region=... '); } // Create a signer which uses the `default` profile from the shared @@ -57,21 +56,16 @@ Future main(List args) async { ); // Set up S3 values - final scope = AWSCredentialScope( - region: region, - service: AWSService.s3, - ); + final scope = AWSCredentialScope(region: region, service: AWSService.s3); final host = '$bucket.s3.$region.amazonaws.com'; final serviceConfiguration = S3ServiceConfiguration(); // Create the bucket - final createBody = utf8.encode( - ''' + final createBody = utf8.encode(''' $region -''', - ); +'''); final createRequest = AWSHttpRequest.put( Uri.https(host, '/'), body: createBody, @@ -105,10 +99,7 @@ Future main(List args) async { final uploadRequest = AWSStreamedHttpRequest.put( Uri.https(host, path), body: file, - headers: { - AWSHeaders.host: host, - AWSHeaders.contentType: 'text/plain', - }, + headers: {AWSHeaders.host: host, AWSHeaders.contentType: 'text/plain'}, ); stdout.writeln('Uploading file $filename to $path...'); @@ -128,9 +119,7 @@ Future main(List args) async { // Create a pre-signed URL for downloading the file final urlRequest = AWSHttpRequest.get( Uri.https(host, path), - headers: { - AWSHeaders.host: host, - }, + headers: {AWSHeaders.host: host}, ); final signedUrl = await signer.presign( urlRequest, diff --git a/packages/aws_signature_v4/example/pubspec.yaml b/packages/aws_signature_v4/example/pubspec.yaml index fbf65a5171..137ae663ae 100644 --- a/packages/aws_signature_v4/example/pubspec.yaml +++ b/packages/aws_signature_v4/example/pubspec.yaml @@ -2,7 +2,7 @@ name: example publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: args: ^2.3.0 diff --git a/packages/aws_signature_v4/example/web/main.dart b/packages/aws_signature_v4/example/web/main.dart index c849a8dd6f..05263e408d 100644 --- a/packages/aws_signature_v4/example/web/main.dart +++ b/packages/aws_signature_v4/example/web/main.dart @@ -61,10 +61,7 @@ Future upload(BucketUpload bucketUpload) async { const signer = AWSSigV4Signer(); // Set up S3 values - final scope = AWSCredentialScope( - region: region, - service: AWSService.s3, - ); + final scope = AWSCredentialScope(region: region, service: AWSService.s3); final serviceConfiguration = S3ServiceConfiguration(); final host = '$bucketName.s3.$region.amazonaws.com'; final path = '/$filename'; @@ -82,10 +79,7 @@ Future upload(BucketUpload bucketUpload) async { final uploadRequest = AWSHttpRequest.put( Uri.https(host, path), body: fileBytes, - headers: { - AWSHeaders.host: host, - AWSHeaders.contentType: file.type, - }, + headers: {AWSHeaders.host: host, AWSHeaders.contentType: file.type}, ); safePrint('Uploading file $filename to $path...'); @@ -105,9 +99,7 @@ Future upload(BucketUpload bucketUpload) async { // Create a pre-signed URL for downloading the file final urlRequest = AWSHttpRequest.get( Uri.https(host, path), - headers: { - AWSHeaders.host: host, - }, + headers: {AWSHeaders.host: host}, ); final signedUrl = await signer.presign( urlRequest, @@ -135,7 +127,8 @@ BucketUpload? getBucketUpload() { final bucketName = bucketNameEl.value; final region = regionEl.value; final files = fileEl.files; - final hasInvalidProps = bucketName == null || + final hasInvalidProps = + bucketName == null || bucketName.isEmpty || region == null || region.isEmpty || diff --git a/packages/aws_signature_v4/lib/aws_signature_v4.dart b/packages/aws_signature_v4/lib/aws_signature_v4.dart index f3c56efda9..396aaf1986 100644 --- a/packages/aws_signature_v4/lib/aws_signature_v4.dart +++ b/packages/aws_signature_v4/lib/aws_signature_v4.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// HTTP request signer for AWS (Version 4). -library aws_signature_v4; +library; export 'package:aws_common/src/credentials/aws_credentials.dart'; export 'package:aws_common/src/credentials/aws_credentials_provider.dart'; diff --git a/packages/aws_signature_v4/lib/src/configuration/service_configuration.dart b/packages/aws_signature_v4/lib/src/configuration/service_configuration.dart index 28027c040a..6aa1b2b788 100644 --- a/packages/aws_signature_v4/lib/src/configuration/service_configuration.dart +++ b/packages/aws_signature_v4/lib/src/configuration/service_configuration.dart @@ -31,10 +31,10 @@ abstract class ServiceConfiguration { bool? omitSessionToken, bool? doubleEncodePathSegments, bool? signBody, - }) : normalizePath = normalizePath ?? true, - omitSessionToken = omitSessionToken ?? false, - doubleEncodePathSegments = doubleEncodePathSegments ?? true, - signBody = signBody ?? true; + }) : normalizePath = normalizePath ?? true, + omitSessionToken = omitSessionToken ?? false, + doubleEncodePathSegments = doubleEncodePathSegments ?? true, + signBody = signBody ?? true; /// Whether to normalize paths in the canonical request. /// diff --git a/packages/aws_signature_v4/lib/src/configuration/services/s3.dart b/packages/aws_signature_v4/lib/src/configuration/services/s3.dart index bb1bbd7591..1146a6dfb4 100644 --- a/packages/aws_signature_v4/lib/src/configuration/services/s3.dart +++ b/packages/aws_signature_v4/lib/src/configuration/services/s3.dart @@ -36,17 +36,17 @@ class S3ServiceConfiguration extends BaseServiceConfiguration { this.chunked = false, int chunkSize = _defaultChunkSize, this.encoding = S3PayloadEncoding.none, - }) : assert( - signPayload || !chunked, - 'S3 does not accept unsigned, chunked payloads', - ), - chunkSize = max(chunkSize, _minChunkSize), - super( - normalizePath: false, - omitSessionToken: false, - doubleEncodePathSegments: false, - signBody: signPayload, - ); + }) : assert( + signPayload || !chunked, + 'S3 does not accept unsigned, chunked payloads', + ), + chunkSize = max(chunkSize, _minChunkSize), + super( + normalizePath: false, + omitSessionToken: false, + doubleEncodePathSegments: false, + signBody: signPayload, + ); // 8 KB is the minimum chunk size. static const int _minChunkSize = 8 * 1024; @@ -79,7 +79,8 @@ class S3ServiceConfiguration extends BaseServiceConfiguration { final hashLength = sha256.blockSize; for (var i = 0; i < numChunks; i++) { final chunkLength = min(decodedLength - chunkedLength, chunkSize); - metadataLength += chunkLength.toRadixString(16).codeUnits.length + + metadataLength += + chunkLength.toRadixString(16).codeUnits.length + _sigSep.length + (2 * _sep.length) + hashLength; @@ -96,7 +97,8 @@ class S3ServiceConfiguration extends BaseServiceConfiguration { // Browser APIs (XMLHttpRequest, fetch) disallow sending bodies for these // methods and, thus, chunked requests are not possible and we should not // try. - isChunkableMethod = request.method != AWSHttpMethod.get && + isChunkableMethod = + request.method != AWSHttpMethod.get && request.method != AWSHttpMethod.head; } return chunked && isChunkableMethod; @@ -201,23 +203,25 @@ class S3ServiceConfiguration extends BaseServiceConfiguration { while (true) { final size = min(decodedLength - chunkedLength, chunkSize); final chunk = await reader.readBytes(size); - final sb = StringBuffer() - ..writeln('$algorithm-PAYLOAD') - ..writeln(credentialScope.dateTime) - ..writeln(credentialScope) - ..writeln(previousSignature) - ..writeln(emptyPayloadHash) - ..write(payloadEncoder.convert(chunk)); + final sb = + StringBuffer() + ..writeln('$algorithm-PAYLOAD') + ..writeln(credentialScope.dateTime) + ..writeln(credentialScope) + ..writeln(previousSignature) + ..writeln(emptyPayloadHash) + ..write(payloadEncoder.convert(chunk)); final stringToSign = sb.toString(); final chunkSignature = algorithm.sign(stringToSign, signingKey); - final bytes = BytesBuilder(copy: false) - ..add(size.toRadixString(16).codeUnits) - ..add(_sigSep) - ..add(chunkSignature.codeUnits) - ..add(_sep) - ..add(chunk) - ..add(_sep); + final bytes = + BytesBuilder(copy: false) + ..add(size.toRadixString(16).codeUnits) + ..add(_sigSep) + ..add(chunkSignature.codeUnits) + ..add(_sep) + ..add(chunk) + ..add(_sep); yield bytes.takeBytes(); previousSignature = chunkSignature; diff --git a/packages/aws_signature_v4/lib/src/request/aws_credential_scope.dart b/packages/aws_signature_v4/lib/src/request/aws_credential_scope.dart index 519017fc4a..7a579a86de 100644 --- a/packages/aws_signature_v4/lib/src/request/aws_credential_scope.dart +++ b/packages/aws_signature_v4/lib/src/request/aws_credential_scope.dart @@ -16,20 +16,16 @@ class AWSCredentialScope { AWSDateTime? dateTime, required String region, required AWSService service, - }) : this.raw( - region: region, - service: service.service, - dateTime: dateTime, - ); + }) : this.raw(region: region, service: service.service, dateTime: dateTime); /// {@macro aws_signature_v4.aws_credential_scope} AWSCredentialScope.raw({ AWSDateTime? dateTime, required String region, required String service, - }) : _region = region, - _service = service, - dateTime = dateTime ?? AWSDateTime.now(); + }) : _region = region, + _service = service, + dateTime = dateTime ?? AWSDateTime.now(); /// The time of the request. final AWSDateTime dateTime; diff --git a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_headers.dart b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_headers.dart index ac56f70561..018adddd06 100644 --- a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_headers.dart +++ b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_headers.dart @@ -4,9 +4,7 @@ part of 'canonical_request.dart'; // Headers to ignore during signing. -final _ignoredHeaders = CaseInsensitiveSet({ - AWSHeaders.userAgent, -}); +final _ignoredHeaders = CaseInsensitiveSet({AWSHeaders.userAgent}); /// {@template aws_signature_v4.canonical_headers} /// A map of canonicalized headers. diff --git a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_path.dart b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_path.dart index 714790cae2..f8c16cc58d 100644 --- a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_path.dart +++ b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_path.dart @@ -26,12 +26,15 @@ abstract class CanonicalPath { } } - return canonicalPath.split('/').map((segment) { - segment = _safeEncode(segment); - if (serviceConfiguration.doubleEncodePathSegments) { - segment = Uri.encodeComponent(segment); - } - return segment; - }).join('/'); + return canonicalPath + .split('/') + .map((segment) { + segment = _safeEncode(segment); + if (serviceConfiguration.doubleEncodePathSegments) { + segment = Uri.encodeComponent(segment); + } + return segment; + }) + .join('/'); } } diff --git a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_query_parameters.dart b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_query_parameters.dart index 9fea96330e..464b3387fb 100644 --- a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_query_parameters.dart +++ b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_query_parameters.dart @@ -9,12 +9,10 @@ part of 'canonical_request.dart'; class CanonicalQueryParameters extends DelegatingMap { /// {@macro aws_signature_v4.canonical_query_parameters} CanonicalQueryParameters(Map queryParameters) - : super(canonicalize(queryParameters)); + : super(canonicalize(queryParameters)); /// Encodes and sorts the query parameters. - static Map canonicalize( - Map queryParameters, - ) { + static Map canonicalize(Map queryParameters) { final map = SplayTreeMap(); for (final entry in queryParameters.entries) { final key = _safeEncode(entry.key); diff --git a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_request.dart b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_request.dart index 8d9140d0f7..88c8792cd6 100644 --- a/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_request.dart +++ b/packages/aws_signature_v4/lib/src/request/canonical_request/canonical_request.dart @@ -132,9 +132,9 @@ class CanonicalRequest { required this.presignedUrl, this.algorithm, Duration? expiresIn, - }) : normalizePath = serviceConfiguration.normalizePath, - omitSessionTokenFromSigning = serviceConfiguration.omitSessionToken, - expiresIn = expiresIn?.inSeconds; + }) : normalizePath = serviceConfiguration.normalizePath, + omitSessionTokenFromSigning = serviceConfiguration.omitSessionToken, + expiresIn = expiresIn?.inSeconds; /// The original HTTP request. final AWSBaseHttpRequest request; @@ -209,13 +209,14 @@ class CanonicalRequest { /// Creates the canonical request string. @override String toString() { - final sb = StringBuffer() - ..writeln(request.method.value) - ..writeln(canonicalPath) - ..writeln(canonicalQueryParameters) - ..writeln(canonicalHeaders) - ..writeln(signedHeaders) - ..write(payloadHash); + final sb = + StringBuffer() + ..writeln(request.method.value) + ..writeln(canonicalPath) + ..writeln(canonicalQueryParameters) + ..writeln(canonicalHeaders) + ..writeln(signedHeaders) + ..write(payloadHash); return sb.toString(); } } diff --git a/packages/aws_signature_v4/lib/src/request/canonical_request/signed_headers.dart b/packages/aws_signature_v4/lib/src/request/canonical_request/signed_headers.dart index 2829965c4a..8d75321516 100644 --- a/packages/aws_signature_v4/lib/src/request/canonical_request/signed_headers.dart +++ b/packages/aws_signature_v4/lib/src/request/canonical_request/signed_headers.dart @@ -9,7 +9,7 @@ part of 'canonical_request.dart'; class SignedHeaders extends DelegatingIterable { /// {@macro aws_signature_v4.signed_headers} SignedHeaders(Map headers) - : super(headers.keys.where((key) => !_ignoredHeaders.contains(key))); + : super(headers.keys.where((key) => !_ignoredHeaders.contains(key))); /// Creates the signed headers string. @override diff --git a/packages/aws_signature_v4/lib/src/signer/aws_algorithm.dart b/packages/aws_signature_v4/lib/src/signer/aws_algorithm.dart index 4decff88ab..0dedc3bbc5 100644 --- a/packages/aws_signature_v4/lib/src/signer/aws_algorithm.dart +++ b/packages/aws_signature_v4/lib/src/signer/aws_algorithm.dart @@ -51,8 +51,10 @@ class _AWSHmacSha256 extends AWSAlgorithm { final kSecret = credentials.secretAccessKey; // kDate = HMAC("AWS4" + kSecret, Date) - final kDate = Hmac(_hash, 'AWS4$kSecret'.codeUnits) - .convert(date.formatDate().codeUnits); + final kDate = Hmac( + _hash, + 'AWS4$kSecret'.codeUnits, + ).convert(date.formatDate().codeUnits); // kRegion = HMAC(kDate, Region) final kRegion = Hmac(_hash, kDate.bytes).convert(region.codeUnits); @@ -61,8 +63,10 @@ class _AWSHmacSha256 extends AWSAlgorithm { final kService = Hmac(_hash, kRegion.bytes).convert(service.codeUnits); // kSigning = HMAC(kService, "aws4_request") - final kSigning = Hmac(_hash, kService.bytes) - .convert(AWSSigV4Signer.terminationString.codeUnits); + final kSigning = Hmac( + _hash, + kService.bytes, + ).convert(AWSSigV4Signer.terminationString.codeUnits); return kSigning.bytes; } diff --git a/packages/aws_signature_v4/lib/src/signer/aws_signer.dart b/packages/aws_signature_v4/lib/src/signer/aws_signer.dart index b9c11023eb..befd49d595 100644 --- a/packages/aws_signature_v4/lib/src/signer/aws_signer.dart +++ b/packages/aws_signature_v4/lib/src/signer/aws_signer.dart @@ -135,9 +135,10 @@ class AWSSigV4Signer { if (credentials is! AWSCredentials) { throw ArgumentError('Must use sign'); } - final contentLength = request.hasContentLength - ? request.contentLength as int - : throw ArgumentError('Must use sign'); + final contentLength = + request.hasContentLength + ? request.contentLength as int + : throw ArgumentError('Must use sign'); final payloadHash = serviceConfiguration.hashPayloadSync( request, presignedUrl: false, @@ -165,29 +166,27 @@ class AWSSigV4Signer { Duration? expiresIn, required bool presignedUrl, }) { - final canonicalRequest = presignedUrl - ? CanonicalRequest.presignedUrl( - request: request, - credentials: credentials, - credentialScope: credentialScope, - algorithm: algorithm, - expiresIn: expiresIn!, - contentLength: contentLength, - payloadHash: payloadHash, - serviceConfiguration: serviceConfiguration, - ) - : CanonicalRequest( - request: request, - credentials: credentials, - credentialScope: credentialScope, - contentLength: contentLength, - payloadHash: payloadHash, - serviceConfiguration: serviceConfiguration, - ); - final signingKey = algorithm.deriveSigningKey( - credentials, - credentialScope, - ); + final canonicalRequest = + presignedUrl + ? CanonicalRequest.presignedUrl( + request: request, + credentials: credentials, + credentialScope: credentialScope, + algorithm: algorithm, + expiresIn: expiresIn!, + contentLength: contentLength, + payloadHash: payloadHash, + serviceConfiguration: serviceConfiguration, + ) + : CanonicalRequest( + request: request, + credentials: credentials, + credentialScope: credentialScope, + contentLength: contentLength, + payloadHash: payloadHash, + serviceConfiguration: serviceConfiguration, + ); + final signingKey = algorithm.deriveSigningKey(credentials, credentialScope); final sts = stringToSign( algorithm: algorithm, credentialScope: credentialScope, @@ -220,11 +219,12 @@ class AWSSigV4Signer { required AWSCredentialScope credentialScope, required CanonicalRequest canonicalRequest, }) { - final sb = StringBuffer() - ..writeln(algorithm) - ..writeln(credentialScope.dateTime) - ..writeln(credentialScope) - ..write(canonicalRequest.hash); + final sb = + StringBuffer() + ..writeln(algorithm) + ..writeln(credentialScope.dateTime) + ..writeln(credentialScope) + ..write(canonicalRequest.hash); return sb.toString(); } @@ -256,7 +256,9 @@ class AWSSigV4Signer { }) { // The signing process requires component keys be encoded. However, the // actual HTTP request should have the pre-encoded keys. - final queryParameters = Map.of(canonicalRequest.queryParameters); + Map? queryParameters = Map.of( + canonicalRequest.queryParameters, + ); // Similar to query parameters, some header values are canonicalized for // signing. However their original values should be included in the @@ -284,6 +286,13 @@ class AWSSigV4Signer { } } + // Web sends an OPTIONS request to verify CORS compatibility with the URL. + // A 404 can be returned if the URL contains unexpected query Parameters + // and URI.toString() appends a "?" to the URL for an empty query parameter + // map. Set the query parameter to null if it empty to avoid this. + // https://github.com/dart-lang/sdk/issues/51656 + queryParameters = queryParameters.isEmpty ? null : queryParameters; + // On Web, sign the `Host` and `Content-Length` headers, but do not send // them as part of the request, since these will be included automatically // by the browser and most now restrict the ability to set them via code. diff --git a/packages/aws_signature_v4/lib/src/version.dart b/packages/aws_signature_v4/lib/src/version.dart index cce2df57af..76c69d8e97 100644 --- a/packages/aws_signature_v4/lib/src/version.dart +++ b/packages/aws_signature_v4/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '0.6.4'; +const packageVersion = '0.6.5'; diff --git a/packages/aws_signature_v4/pubspec.yaml b/packages/aws_signature_v4/pubspec.yaml index 003d99d24a..12b598dcff 100644 --- a/packages/aws_signature_v4/pubspec.yaml +++ b/packages/aws_signature_v4/pubspec.yaml @@ -1,32 +1,32 @@ name: aws_signature_v4 description: Dart implementation of the AWS Signature Version 4 algorithm, for communication with AWS services. -version: 0.6.4 +version: 0.6.5 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/aws_signature_v4 issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" + aws_common: ">=0.7.7 <0.8.0" collection: ^1.15.0 convert: ^3.0.0 crypto: ^3.0.0 json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" args: ^2.2.0 build_runner: ^2.4.9 build_test: ^2.1.5 build_verify: ^3.0.0 build_version: ^2.1.1 build_web_compilers: ^4.0.0 - json_serializable: 6.8.0 + json_serializable: ^6.9.4 stream_channel: ^2.1.0 test: ^1.22.1 diff --git a/packages/aws_signature_v4/test/build_verify_test.dart b/packages/aws_signature_v4/test/build_verify_test.dart index ca4d98f156..6583691e8b 100644 --- a/packages/aws_signature_v4/test/build_verify_test.dart +++ b/packages/aws_signature_v4/test/build_verify_test.dart @@ -3,6 +3,7 @@ @TestOn('vm') @Tags(['build']) +library; import 'package:build_verify/build_verify.dart'; import 'package:test/test.dart'; @@ -10,9 +11,8 @@ import 'package:test/test.dart'; void main() { test( 'ensure_build', - () => expectBuildClean( - packageRelativeDirectory: 'packages/aws_signature_v4', - ), + () => + expectBuildClean(packageRelativeDirectory: 'packages/aws_signature_v4'), timeout: const Timeout(Duration(minutes: 3)), ); } diff --git a/packages/aws_signature_v4/test/c_test_suite/context.g.dart b/packages/aws_signature_v4/test/c_test_suite/context.g.dart index 654660c7af..8f9ecd7926 100644 --- a/packages/aws_signature_v4/test/c_test_suite/context.g.dart +++ b/packages/aws_signature_v4/test/c_test_suite/context.g.dart @@ -7,24 +7,25 @@ part of 'context.dart'; // ************************************************************************** Context _$ContextFromJson(Map json) => Context( - credentials: - AWSCredentials.fromJson(json['credentials'] as Map), - expirationInSeconds: (json['expiration_in_seconds'] as num).toInt(), - normalize: json['normalize'] as bool, - region: json['region'] as String, - service: json['service'] as String, - signBody: json['sign_body'] as bool, - timestamp: DateTime.parse(json['timestamp'] as String), - omitSessionToken: json['omit_session_token'] as bool?, - ); + credentials: AWSCredentials.fromJson( + json['credentials'] as Map, + ), + expirationInSeconds: (json['expiration_in_seconds'] as num).toInt(), + normalize: json['normalize'] as bool, + region: json['region'] as String, + service: json['service'] as String, + signBody: json['sign_body'] as bool, + timestamp: DateTime.parse(json['timestamp'] as String), + omitSessionToken: json['omit_session_token'] as bool?, +); Map _$ContextToJson(Context instance) => { - 'credentials': instance.credentials.toJson(), - 'expiration_in_seconds': instance.expirationInSeconds, - 'normalize': instance.normalize, - 'region': instance.region, - 'service': instance.service, - 'sign_body': instance.signBody, - 'timestamp': instance.timestamp.toIso8601String(), - 'omit_session_token': instance.omitSessionToken, - }; + 'credentials': instance.credentials.toJson(), + 'expiration_in_seconds': instance.expirationInSeconds, + 'normalize': instance.normalize, + 'region': instance.region, + 'service': instance.service, + 'sign_body': instance.signBody, + 'timestamp': instance.timestamp.toIso8601String(), + 'omit_session_token': instance.omitSessionToken, +}; diff --git a/packages/aws_signature_v4/test/c_test_suite/request_parser.dart b/packages/aws_signature_v4/test/c_test_suite/request_parser.dart index b04a53e22b..de69861fc4 100644 --- a/packages/aws_signature_v4/test/c_test_suite/request_parser.dart +++ b/packages/aws_signature_v4/test/c_test_suite/request_parser.dart @@ -51,10 +51,7 @@ class SignerRequestParser { return Map.fromEntries( requestUriParts[1].split('&').map((q) { final parts = q.split('='); - return MapEntry( - parts[0], - Uri.decodeQueryComponent(parts[1]), - ); + return MapEntry(parts[0], Uri.decodeQueryComponent(parts[1])); }), ); } @@ -175,10 +172,7 @@ class SignerRequestParser { requestParts.sublist(1, requestPartsLength - 1).join(encodedSpace), requestParts.last, ].join(space); - request = [ - requestLine, - ...requestLines.sublist(1), - ].join(newline); + request = [requestLine, ...requestLines.sublist(1)].join(newline); } return request; } diff --git a/packages/aws_signature_v4/test/c_test_suite/test_data.dart b/packages/aws_signature_v4/test/c_test_suite/test_data.dart index fe230a33f2..c0b4da7ffa 100644 --- a/packages/aws_signature_v4/test/c_test_suite/test_data.dart +++ b/packages/aws_signature_v4/test/c_test_suite/test_data.dart @@ -31,8 +31,9 @@ class SignerTestMethodData { canonicalRequest: json['canonicalRequest'] as String, stringToSign: json['stringToSign'] as String, signature: json['signature'] as String, - signedRequest: - AWSHttpRequestX.fromJson((json['signedRequest'] as Map).cast()), + signedRequest: AWSHttpRequestX.fromJson( + (json['signedRequest'] as Map).cast(), + ), ); } @@ -43,12 +44,12 @@ class SignerTestMethodData { final AWSBaseHttpRequest signedRequest; Future> toJson() async => { - 'method': method.name, - 'canonicalRequest': canonicalRequest, - 'stringToSign': stringToSign, - 'signature': signature, - 'signedRequest': await signedRequest.toJson(), - }; + 'method': method.name, + 'canonicalRequest': canonicalRequest, + 'stringToSign': stringToSign, + 'signature': signature, + 'signedRequest': await signedRequest.toJson(), + }; } /// Builder class to make it easy to lazily create a [SignerTest]. @@ -103,42 +104,45 @@ class SignerTest { this.headerTestData, this.queryTestData, ServiceConfiguration? serviceConfiguration, - }) : signer = AWSSigV4Signer( - credentialsProvider: AWSCredentialsProvider(context.credentials), - algorithm: algorithm, - ), - credentialScope = AWSCredentialScope.raw( - dateTime: context.awsDateTime, - region: context.region, - service: context.service, - ), - serviceConfiguration = serviceConfiguration ?? - BaseServiceConfiguration( - normalizePath: context.normalize, - omitSessionToken: context.omitSessionToken, + }) : signer = AWSSigV4Signer( + credentialsProvider: AWSCredentialsProvider(context.credentials), + algorithm: algorithm, + ), + credentialScope = AWSCredentialScope.raw( + dateTime: context.awsDateTime, + region: context.region, + service: context.service, + ), + serviceConfiguration = + serviceConfiguration ?? + BaseServiceConfiguration( + normalizePath: context.normalize, + omitSessionToken: context.omitSessionToken, - // Although most SigV4 services expect double encoding, the C - // tests expect single encoding like S3. - // https://github.com/awslabs/aws-c-auth/issues/162 - doubleEncodePathSegments: false, - signBody: context.signBody, - ); + // Although most SigV4 services expect double encoding, the C + // tests expect single encoding like S3. + // https://github.com/awslabs/aws-c-auth/issues/162 + doubleEncodePathSegments: false, + signBody: context.signBody, + ); factory SignerTest.fromJson(Map json) { return SignerTest( name: json['name'] as String, context: Context.fromJson((json['context'] as Map).cast()), request: AWSHttpRequestX.fromJson((json['request'] as Map).cast()), - headerTestData: json['headerTestData'] == null - ? null - : SignerTestMethodData.fromJson( - (json['headerTestData'] as Map).cast(), - ), - queryTestData: json['queryTestData'] == null - ? null - : SignerTestMethodData.fromJson( - (json['queryTestData'] as Map).cast(), - ), + headerTestData: + json['headerTestData'] == null + ? null + : SignerTestMethodData.fromJson( + (json['headerTestData'] as Map).cast(), + ), + queryTestData: + json['queryTestData'] == null + ? null + : SignerTestMethodData.fromJson( + (json['queryTestData'] as Map).cast(), + ), ); } @@ -162,35 +166,37 @@ class SignerTest { return; } final presignedUrl = method == SignerTestMethod.query; - final payloadHash = sync - ? serviceConfiguration.hashPayloadSync( - request, - presignedUrl: presignedUrl, - ) - : await serviceConfiguration.hashPayload( - request, - presignedUrl: presignedUrl, - ); + final payloadHash = + sync + ? serviceConfiguration.hashPayloadSync( + request, + presignedUrl: presignedUrl, + ) + : await serviceConfiguration.hashPayload( + request, + presignedUrl: presignedUrl, + ); final contentLength = request.contentLength as int; - final canonicalRequest = presignedUrl - ? CanonicalRequest.presignedUrl( - request: request, - credentials: context.credentials, - credentialScope: credentialScope, - algorithm: algorithm, - expiresIn: Duration(seconds: context.expirationInSeconds), - contentLength: contentLength, - payloadHash: payloadHash, - serviceConfiguration: serviceConfiguration, - ) - : CanonicalRequest( - request: request, - credentials: context.credentials, - credentialScope: credentialScope, - contentLength: contentLength, - payloadHash: payloadHash, - serviceConfiguration: serviceConfiguration, - ); + final canonicalRequest = + presignedUrl + ? CanonicalRequest.presignedUrl( + request: request, + credentials: context.credentials, + credentialScope: credentialScope, + algorithm: algorithm, + expiresIn: Duration(seconds: context.expirationInSeconds), + contentLength: contentLength, + payloadHash: payloadHash, + serviceConfiguration: serviceConfiguration, + ) + : CanonicalRequest( + request: request, + credentials: context.credentials, + credentialScope: credentialScope, + contentLength: contentLength, + payloadHash: payloadHash, + serviceConfiguration: serviceConfiguration, + ); final stringToSign = signer.stringToSign( algorithm: algorithm, credentialScope: credentialScope, @@ -210,19 +216,20 @@ class SignerTest { ); if (presignedUrl) { - final uri = sync - ? signer.presignSync( - request as AWSHttpRequest, - credentialScope: credentialScope, - expiresIn: Duration(seconds: context.expirationInSeconds), - serviceConfiguration: serviceConfiguration, - ) - : await signer.presign( - request as AWSHttpRequest, - credentialScope: credentialScope, - expiresIn: Duration(seconds: context.expirationInSeconds), - serviceConfiguration: serviceConfiguration, - ); + final uri = + sync + ? signer.presignSync( + request as AWSHttpRequest, + credentialScope: credentialScope, + expiresIn: Duration(seconds: context.expirationInSeconds), + serviceConfiguration: serviceConfiguration, + ) + : await signer.presign( + request as AWSHttpRequest, + credentialScope: credentialScope, + expiresIn: Duration(seconds: context.expirationInSeconds), + serviceConfiguration: serviceConfiguration, + ); expect( uri.queryParameters[AWSHeaders.signature], @@ -230,17 +237,18 @@ class SignerTest { reason: 'Signatures must be identical', ); } else { - final signedRequest = sync - ? signer.signSync( - request, - credentialScope: credentialScope, - serviceConfiguration: serviceConfiguration, - ) - : await signer.sign( - request, - credentialScope: credentialScope, - serviceConfiguration: serviceConfiguration, - ); + final signedRequest = + sync + ? signer.signSync( + request, + credentialScope: credentialScope, + serviceConfiguration: serviceConfiguration, + ) + : await signer.sign( + request, + credentialScope: credentialScope, + serviceConfiguration: serviceConfiguration, + ); expect( signedRequest.signature, @@ -275,11 +283,7 @@ class SignerTest { final body = await collectBytes(signedRequest.split()); final expectedRequest = testMethodData.signedRequest; final expected = await collectBytes(expectedRequest.split()); - expect( - body, - orderedEquals(expected), - reason: 'Bodies must be identical', - ); + expect(body, orderedEquals(expected), reason: 'Bodies must be identical'); } } @@ -291,14 +295,14 @@ class SignerTest { } Future> toJson() async => { - 'name': name, - 'context': context.toJson(), - 'request': await request.toJson(), - 'headerTestData': await headerTestData?.toJson(), - 'queryTestData': await queryTestData?.toJson(), - 'serviceConfiguration': - serviceConfiguration is S3ServiceConfiguration ? 's3' : null, - }; + 'name': name, + 'context': context.toJson(), + 'request': await request.toJson(), + 'headerTestData': await headerTestData?.toJson(), + 'queryTestData': await queryTestData?.toJson(), + 'serviceConfiguration': + serviceConfiguration is S3ServiceConfiguration ? 's3' : null, + }; } extension AWSHttpRequestX on AWSBaseHttpRequest { @@ -314,11 +318,11 @@ extension AWSHttpRequestX on AWSBaseHttpRequest { } Future> toJson() async => { - 'method': method.value, - 'host': host, - 'path': path, - 'queryParameters': queryParametersAll, - 'headers': headers, - 'body': await body.first.catchError((Object _) => const []), - }; + 'method': method.value, + 'host': host, + 'path': path, + 'queryParameters': queryParametersAll, + 'headers': headers, + 'body': await body.first.catchError((Object _) => const []), + }; } diff --git a/packages/aws_signature_v4/test/c_test_suite/test_data_loader.dart b/packages/aws_signature_v4/test/c_test_suite/test_data_loader.dart index a34af90a6b..d89452f57e 100644 --- a/packages/aws_signature_v4/test/c_test_suite/test_data_loader.dart +++ b/packages/aws_signature_v4/test/c_test_suite/test_data_loader.dart @@ -74,12 +74,9 @@ Future> loadAllTests() async { // since its data is used to parse other files accordingly, namely // `request.txt`. final testFiles = - testCaseDir.listSync().map((ent) => File(ent.path)).toList() - ..sort( - (a, b) => path.basename(a.path).compareTo( - path.basename(b.path), - ), - ); + testCaseDir.listSync().map((ent) => File(ent.path)).toList()..sort( + (a, b) => path.basename(a.path).compareTo(path.basename(b.path)), + ); // Some folders do not include all the necessary files. Not sure why - maybe // they are borrowing the rest of the files from other folders, but it's not @@ -104,23 +101,14 @@ Future> loadAllTests() async { } /// Parses `context.json`. -Future _parseContext( - SignerTestBuilder builder, - String data, -) async { +Future _parseContext(SignerTestBuilder builder, String data) async { final json = jsonDecode(data) as Map; builder.context = Context.fromJson(json); } /// Parses `request.txt`. -Future _parseRequest( - SignerTestBuilder builder, - String data, -) async { - builder.request = await _requestParser.parse( - data, - context: builder.context, - ); +Future _parseRequest(SignerTestBuilder builder, String data) async { + builder.request = await _requestParser.parse(data, context: builder.context); } /// query-canonical-request.txt`. diff --git a/packages/aws_signature_v4/test/canonical_request_test.dart b/packages/aws_signature_v4/test/canonical_request_test.dart index 8d9eba4afd..08d64ad276 100644 --- a/packages/aws_signature_v4/test/canonical_request_test.dart +++ b/packages/aws_signature_v4/test/canonical_request_test.dart @@ -76,9 +76,9 @@ void main() { }; test('handles special characters', () { - final uri = Uri.parse('https://example.com').replace( - queryParameters: queryParameters, - ); + final uri = Uri.parse( + 'https://example.com', + ).replace(queryParameters: queryParameters); final request = AWSHttpRequest.get(uri); expect( CanonicalQueryParameters(request.queryParameters), diff --git a/packages/aws_signature_v4/test/common.dart b/packages/aws_signature_v4/test/common.dart index d9946e9db7..bd169ad123 100644 --- a/packages/aws_signature_v4/test/common.dart +++ b/packages/aws_signature_v4/test/common.dart @@ -5,5 +5,7 @@ import 'package:aws_common/aws_common.dart'; import 'package:aws_signature_v4/aws_signature_v4.dart'; const dummyCredentials = AWSCredentials('accessKeyId', 'secretAccessKey'); -final dummyCredentialScope = - AWSCredentialScope(region: 'us-east-1', service: AWSService.iam); +final dummyCredentialScope = AWSCredentialScope( + region: 'us-east-1', + service: AWSService.iam, +); diff --git a/packages/aws_signature_v4/test/s3/multiple_chunks_test.dart b/packages/aws_signature_v4/test/s3/multiple_chunks_test.dart index 3ca5f72a90..ab05e7e32f 100644 --- a/packages/aws_signature_v4/test/s3/multiple_chunks_test.dart +++ b/packages/aws_signature_v4/test/s3/multiple_chunks_test.dart @@ -13,12 +13,7 @@ import 'testdata/multiple_chunks_testdata.dart'; void main() { group('S3 Multiple Chunks', () { test('PUT Object', () { - runZoned( - putObjectTest.run, - zoneValues: { - zSigningTest: true, - }, - ); + runZoned(putObjectTest.run, zoneValues: {zSigningTest: true}); }); }); } diff --git a/packages/aws_signature_v4/test/s3/s3_service_configuration_test.dart b/packages/aws_signature_v4/test/s3/s3_service_configuration_test.dart index cae0cf581d..00d0a85221 100644 --- a/packages/aws_signature_v4/test/s3/s3_service_configuration_test.dart +++ b/packages/aws_signature_v4/test/s3/s3_service_configuration_test.dart @@ -11,13 +11,10 @@ void main() { const bodyHash = '44ce7dd67c959e0d3524ffac1771dfbba87d2b6b4b4e99e42034a8b803f8b072'; AWSBaseHttpRequest createRequest() => AWSHttpRequest( - method: AWSHttpMethod.put, - uri: Uri.https( - 'examplebucket.s3.amazonaws.com', - r'/test$file.text', - ), - body: 'Welcome to Amazon S3.'.codeUnits, - ); + method: AWSHttpMethod.put, + uri: Uri.https('examplebucket.s3.amazonaws.com', r'/test$file.text'), + body: 'Welcome to Amazon S3.'.codeUnits, + ); Future expectHash({ required bool signPayload, @@ -51,11 +48,7 @@ void main() { }); test('signPayload=true chunked=false', () { - expectHash( - signPayload: true, - chunked: false, - expected: equals(bodyHash), - ); + expectHash(signPayload: true, chunked: false, expected: equals(bodyHash)); }); test('signPayload=false chunked=false', () { @@ -68,73 +61,56 @@ void main() { test('signPayload=false chunked=true', () { expect( - () => S3ServiceConfiguration( - signPayload: false, - chunked: true, - ), + () => S3ServiceConfiguration(signPayload: false, chunked: true), throwsA(isA()), ); }); - group( - 'GET/HEAD do not contain body on Web', - () { - final request = AWSHttpRequest.get(Uri.parse('https://example.com')); - const signer = AWSSigV4Signer( - credentialsProvider: AWSCredentialsProvider(dummyCredentials), - ); - final serviceConfigurations = [ - S3ServiceConfiguration(chunked: true, signPayload: true), - S3ServiceConfiguration(chunked: false, signPayload: true), - S3ServiceConfiguration(chunked: false, signPayload: false), - ]; + group('GET/HEAD do not contain body on Web', () { + final request = AWSHttpRequest.get(Uri.parse('https://example.com')); + const signer = AWSSigV4Signer( + credentialsProvider: AWSCredentialsProvider(dummyCredentials), + ); + final serviceConfigurations = [ + S3ServiceConfiguration(chunked: true, signPayload: true), + S3ServiceConfiguration(chunked: false, signPayload: true), + S3ServiceConfiguration(chunked: false, signPayload: false), + ]; - void expectNoContentLength(Iterable signedHeaders) { - expect( - CaseInsensitiveSet(signedHeaders), - isNot(contains(AWSHeaders.contentLength)), - ); - } + void expectNoContentLength(Iterable signedHeaders) { + expect( + CaseInsensitiveSet(signedHeaders), + isNot(contains(AWSHeaders.contentLength)), + ); + } - group('sign', () { - for (final serviceConfiguration in serviceConfigurations) { - test( - 'chunked=${serviceConfiguration.chunked}, ' - 'signPayload=${serviceConfiguration.signBody}', - () async { - final signedRequest = await signer.sign( - request, - credentialScope: dummyCredentialScope, - serviceConfiguration: serviceConfiguration, - ); - expectNoContentLength( - signedRequest.canonicalRequest.signedHeaders, - ); - }, + group('sign', () { + for (final serviceConfiguration in serviceConfigurations) { + test('chunked=${serviceConfiguration.chunked}, ' + 'signPayload=${serviceConfiguration.signBody}', () async { + final signedRequest = await signer.sign( + request, + credentialScope: dummyCredentialScope, + serviceConfiguration: serviceConfiguration, ); - } - }); + expectNoContentLength(signedRequest.canonicalRequest.signedHeaders); + }); + } + }); - group('signSync', () { - for (final serviceConfiguration in serviceConfigurations) { - test( - 'chunked=${serviceConfiguration.chunked}, ' - 'signPayload=${serviceConfiguration.signBody}', - () { - final signedRequest = signer.signSync( - request, - credentialScope: dummyCredentialScope, - serviceConfiguration: serviceConfiguration, - ); - expectNoContentLength( - signedRequest.canonicalRequest.signedHeaders, - ); - }, + group('signSync', () { + for (final serviceConfiguration in serviceConfigurations) { + test('chunked=${serviceConfiguration.chunked}, ' + 'signPayload=${serviceConfiguration.signBody}', () { + final signedRequest = signer.signSync( + request, + credentialScope: dummyCredentialScope, + serviceConfiguration: serviceConfiguration, ); - } - }); - }, - testOn: 'browser', - ); + expectNoContentLength(signedRequest.canonicalRequest.signedHeaders); + }); + } + }); + }, testOn: 'browser'); }); } diff --git a/packages/aws_signature_v4/test/s3/single_chunk_test.dart b/packages/aws_signature_v4/test/s3/single_chunk_test.dart index a28ae49f62..860aa99da4 100644 --- a/packages/aws_signature_v4/test/s3/single_chunk_test.dart +++ b/packages/aws_signature_v4/test/s3/single_chunk_test.dart @@ -15,12 +15,7 @@ void main() { group('Single Chunk', () { for (final signerTest in testCases) { test(signerTest.name, () { - runZoned( - signerTest.run, - zoneValues: { - zSigningTest: true, - }, - ); + runZoned(signerTest.run, zoneValues: {zSigningTest: true}); }); } }); diff --git a/packages/aws_signature_v4/test/s3/testdata/e2e_test.dart b/packages/aws_signature_v4/test/s3/testdata/e2e_test.dart index 3f10b31fb1..4e8b881cfe 100644 --- a/packages/aws_signature_v4/test/s3/testdata/e2e_test.dart +++ b/packages/aws_signature_v4/test/s3/testdata/e2e_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'dart:convert'; import 'dart:io'; @@ -19,9 +20,10 @@ void main() { group('S3', () { test('E2E Test', () async { final context = buildContext(); - final testBody = File.fromUri( - Directory.current.uri.resolve(chunkedRequest), - ).openRead(); + final testBody = + File.fromUri( + Directory.current.uri.resolve(chunkedRequest), + ).openRead(); final creds = AWSCredentialsProvider(context.credentials); final signer = AWSSigV4Signer(credentialsProvider: creds); diff --git a/packages/aws_signature_v4/test/s3/testdata/multiple_chunks_testdata.dart b/packages/aws_signature_v4/test/s3/testdata/multiple_chunks_testdata.dart index a5ac3f95ca..777dfb8077 100644 --- a/packages/aws_signature_v4/test/s3/testdata/multiple_chunks_testdata.dart +++ b/packages/aws_signature_v4/test/s3/testdata/multiple_chunks_testdata.dart @@ -41,10 +41,7 @@ cee3fed04b70f867d036f722359b0b1f2f0e5dc0efadbc082b76c4c60e316455''', signature: '4f232c4386841ef735655705268965c44a0e4690baa4adea153f7db9fa80a0a9', signedRequest: AWSStreamedHttpRequest( method: AWSHttpMethod.put, - uri: Uri.https( - 's3.amazonaws.com', - '/examplebucket/chunkObject.txt', - ), + uri: Uri.https('s3.amazonaws.com', '/examplebucket/chunkObject.txt'), headers: { 'Host': 's3.amazonaws.com', 'x-amz-date': '20130524T000000Z', @@ -73,16 +70,9 @@ final putObjectTest = SignerTest( context: buildContext(), request: AWSStreamedHttpRequest( method: AWSHttpMethod.put, - uri: Uri.https( - 's3.amazonaws.com', - '/examplebucket/chunkObject.txt', - ), - headers: { - 'x-amz-storage-class': 'REDUCED_REDUNDANCY', - }, - body: Stream.multi( - (controller) => controller.addStream(chunks), - ), + uri: Uri.https('s3.amazonaws.com', '/examplebucket/chunkObject.txt'), + headers: {'x-amz-storage-class': 'REDUCED_REDUNDANCY'}, + body: Stream.multi((controller) => controller.addStream(chunks)), contentLength: 66560, ), headerTestData: putObjectTestData, diff --git a/packages/aws_signature_v4/test/s3/testdata/single_chunk_testdata.dart b/packages/aws_signature_v4/test/s3/testdata/single_chunk_testdata.dart index 18c9330265..1d388276e7 100644 --- a/packages/aws_signature_v4/test/s3/testdata/single_chunk_testdata.dart +++ b/packages/aws_signature_v4/test/s3/testdata/single_chunk_testdata.dart @@ -41,10 +41,7 @@ AWS4-HMAC-SHA256 signature: 'f0e8bdb87c964420e857bd35b5d6ed310bd44f0170aba48dd91039c6036bdb41', signedRequest: AWSHttpRequest( method: AWSHttpMethod.get, - uri: Uri.https( - 'examplebucket.s3.amazonaws.com', - '/test.txt', - ), + uri: Uri.https('examplebucket.s3.amazonaws.com', '/test.txt'), headers: const { 'Host': 'examplebucket.s3.amazonaws.com', 'x-amz-date': '20130524T000000Z', @@ -62,13 +59,8 @@ final getObjectTest = SignerTest( context: buildContext(), request: AWSHttpRequest( method: AWSHttpMethod.get, - uri: Uri.https( - 'examplebucket.s3.amazonaws.com', - '/test.txt', - ), - headers: const { - 'Range': 'bytes=0-9', - }, + uri: Uri.https('examplebucket.s3.amazonaws.com', '/test.txt'), + headers: const {'Range': 'bytes=0-9'}, ), headerTestData: getObjectTestData, serviceConfiguration: serviceConfiguration, @@ -96,10 +88,7 @@ AWS4-HMAC-SHA256 signature: '98ad721746da40c64f1a55b78f14c238d841ea1380cd77a1b5971af0ece108bd', signedRequest: AWSHttpRequest( method: AWSHttpMethod.put, - uri: Uri.https( - 'examplebucket.s3.amazonaws.com', - r'test$file.text', - ), + uri: Uri.https('examplebucket.s3.amazonaws.com', r'test$file.text'), headers: const { 'x-amz-storage-class': 'REDUCED_REDUNDANCY', 'Host': 'examplebucket.s3.amazonaws.com', @@ -119,10 +108,7 @@ final putObjectTest = SignerTest( context: buildContext(), request: AWSHttpRequest( method: AWSHttpMethod.put, - uri: Uri.https( - 'examplebucket.s3.amazonaws.com', - r'test$file.text', - ), + uri: Uri.https('examplebucket.s3.amazonaws.com', r'test$file.text'), headers: const { 'Date': 'Fri, 24 May 2013 00:00:00 GMT', 'x-amz-storage-class': 'REDUCED_REDUNDANCY', @@ -156,9 +142,7 @@ AWS4-HMAC-SHA256 uri: Uri.https( 'examplebucket.s3.amazonaws.com', '/', - const { - 'lifecycle': '', - }, + const {'lifecycle': ''}, ), headers: const { 'Host': 'examplebucket.s3.amazonaws.com', @@ -179,9 +163,7 @@ final getBucketLifecycleTest = SignerTest( uri: Uri.https( 'examplebucket.s3.amazonaws.com', '/', - const { - 'lifecycle': '', - }, + const {'lifecycle': ''}, ), ), headerTestData: getBucketLifecycleTestData, @@ -211,10 +193,7 @@ df57d21db20da04d7fa30298dd4488ba3a2b47ca3a489c74750e0f1e7df1b9b7''', uri: Uri.https( 'examplebucket.s3.amazonaws.com', '/', - const { - 'max-keys': '2', - 'prefix': 'J', - }, + const {'max-keys': '2', 'prefix': 'J'}, ), headers: const { 'Host': 'examplebucket.s3.amazonaws.com', @@ -235,10 +214,7 @@ final getBucketListObjectsTest = SignerTest( uri: Uri.https( 'examplebucket.s3.amazonaws.com', '/', - const { - 'max-keys': '2', - 'prefix': 'J', - }, + const {'max-keys': '2', 'prefix': 'J'}, ), ), headerTestData: getBucketListObjectsTestData, diff --git a/packages/aws_signature_v4/test/signer_html_test.dart b/packages/aws_signature_v4/test/signer_html_test.dart index d5df56f608..b24119f35e 100644 --- a/packages/aws_signature_v4/test/signer_html_test.dart +++ b/packages/aws_signature_v4/test/signer_html_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('browser') +library; import 'dart:async'; import 'dart:convert'; @@ -22,15 +23,11 @@ Future main() async { final testCases = stream.split().skip(1).cast().take(numTests); await for (final testCaseJson in testCases) { - final signerTest = - SignerTest.fromJson((jsonDecode(testCaseJson) as Map).cast()); - safePrint('Running test: ${signerTest.name}'); - await runZoned( - signerTest.run, - zoneValues: { - zSigningTest: true, - }, + final signerTest = SignerTest.fromJson( + (jsonDecode(testCaseJson) as Map).cast(), ); + safePrint('Running test: ${signerTest.name}'); + await runZoned(signerTest.run, zoneValues: {zSigningTest: true}); } }); } diff --git a/packages/aws_signature_v4/test/signer_io_test.dart b/packages/aws_signature_v4/test/signer_io_test.dart index 96cf72ef7c..900f5312c5 100644 --- a/packages/aws_signature_v4/test/signer_io_test.dart +++ b/packages/aws_signature_v4/test/signer_io_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'package:test/test.dart'; diff --git a/packages/aws_signature_v4/test/signer_test.dart b/packages/aws_signature_v4/test/signer_test.dart index 7ccf312431..f47c664e95 100644 --- a/packages/aws_signature_v4/test/signer_test.dart +++ b/packages/aws_signature_v4/test/signer_test.dart @@ -19,9 +19,7 @@ void main() { final request = AWSHttpRequest.post( Uri.https('example.com', '/'), body: utf8.encode('hello'), - headers: const { - AWSHeaders.contentLength: '5', - }, + headers: const {AWSHeaders.contentLength: '5'}, ); final signedRequest = signer.signSync( request, @@ -33,22 +31,10 @@ void main() { final sentHeaders = signedRequest.headers; test(testOn: 'browser', 'Host, Content-Length unset by signer', () { - expect( - signedHeaders, - contains(AWSHeaders.host), - ); - expect( - signedHeaders, - contains(AWSHeaders.contentLength), - ); - expect( - sentHeaders, - isNot(contains(AWSHeaders.host)), - ); - expect( - sentHeaders, - isNot(contains(AWSHeaders.contentLength)), - ); + expect(signedHeaders, contains(AWSHeaders.host)); + expect(signedHeaders, contains(AWSHeaders.contentLength)); + expect(sentHeaders, isNot(contains(AWSHeaders.host))); + expect(sentHeaders, isNot(contains(AWSHeaders.contentLength))); }); test(testOn: 'browser', 'X-Amz-User-Agent header is included', () { @@ -56,52 +42,25 @@ void main() { sentHeaders, containsPair(AWSHeaders.amzUserAgent, contains('aws-sigv4-dart')), ); - expect( - sentHeaders, - isNot(contains(AWSHeaders.userAgent)), - ); - expect( - signedHeaders, - contains(AWSHeaders.amzUserAgent), - ); - expect( - signedHeaders, - isNot(contains(AWSHeaders.userAgent)), - ); + expect(sentHeaders, isNot(contains(AWSHeaders.userAgent))); + expect(signedHeaders, contains(AWSHeaders.amzUserAgent)); + expect(signedHeaders, isNot(contains(AWSHeaders.userAgent))); }); test(testOn: 'vm', 'Host, Content-Length, User-Agent set by signer', () { - expect( - signedHeaders, - contains(AWSHeaders.host), - ); - expect( - signedHeaders, - contains(AWSHeaders.contentLength), - ); - expect( - sentHeaders, - contains(AWSHeaders.host), - ); - expect( - sentHeaders, - contains(AWSHeaders.contentLength), - ); + expect(signedHeaders, contains(AWSHeaders.host)); + expect(signedHeaders, contains(AWSHeaders.contentLength)); + expect(sentHeaders, contains(AWSHeaders.host)); + expect(sentHeaders, contains(AWSHeaders.contentLength)); }); test(testOn: 'vm', 'User-Agent header is included', () { - expect( - sentHeaders, - isNot(contains(AWSHeaders.amzUserAgent)), - ); + expect(sentHeaders, isNot(contains(AWSHeaders.amzUserAgent))); expect( sentHeaders, containsPair(AWSHeaders.userAgent, contains('aws-sigv4-dart')), ); - expect( - signedHeaders, - isNot(contains(AWSHeaders.amzUserAgent)), - ); + expect(signedHeaders, isNot(contains(AWSHeaders.amzUserAgent))); expect( signedHeaders, isNot(contains(AWSHeaders.userAgent)), diff --git a/packages/aws_signature_v4/test/streamed_request_test.dart b/packages/aws_signature_v4/test/streamed_request_test.dart index 2585c58da3..97db1114f0 100644 --- a/packages/aws_signature_v4/test/streamed_request_test.dart +++ b/packages/aws_signature_v4/test/streamed_request_test.dart @@ -11,8 +11,8 @@ import 'package:test/test.dart'; import 'common.dart'; AWSHttpClient get mockClient => MockAWSHttpClient((req, _) { - return AWSHttpResponse(statusCode: 200); - }); + return AWSHttpResponse(statusCode: 200); +}); void main() { final uri = Uri.parse('https://example.com'); @@ -22,10 +22,10 @@ void main() { credentialsProvider: AWSCredentialsProvider(dummyCredentials), ); Stream> makeBody() => Stream.fromIterable([ - [0], - [1], - [2], - ]); + [0], + [1], + [2], + ]); group('base service configuration', () { test('| body is split twice with contentLength given', () async { diff --git a/packages/aws_signature_v4/test/zone_test.dart b/packages/aws_signature_v4/test/zone_test.dart index 8693535ff5..c1ba315920 100644 --- a/packages/aws_signature_v4/test/zone_test.dart +++ b/packages/aws_signature_v4/test/zone_test.dart @@ -39,14 +39,8 @@ void main() { test('values (with string overrides)', () async { final signedRequest = await runZoned( - () => signer.sign( - request, - credentialScope: credentialScope, - ), - zoneValues: { - #sigV4Region: 'us-east-1', - #sigV4Service: 'serviceB', - }, + () => signer.sign(request, credentialScope: credentialScope), + zoneValues: {#sigV4Region: 'us-east-1', #sigV4Service: 'serviceB'}, ); expect( signedRequest.headers['Authorization'], @@ -58,20 +52,12 @@ void main() { test('values (with typed override)', () async { final signedRequest = await runZoned( - () => signer.sign( - request, - credentialScope: credentialScope, - ), - zoneValues: { - #sigV4Region: 'us-east-1', - #sigV4Service: AWSService.s3, - }, + () => signer.sign(request, credentialScope: credentialScope), + zoneValues: {#sigV4Region: 'us-east-1', #sigV4Service: AWSService.s3}, ); expect( signedRequest.headers['Authorization'], - contains( - 'Credential=accessKeyId/20220101/us-east-1/s3/aws4_request', - ), + contains('Credential=accessKeyId/20220101/us-east-1/s3/aws4_request'), ); }); }); diff --git a/packages/common/amplify_db_common/CHANGELOG.md b/packages/common/amplify_db_common/CHANGELOG.md index d36345141a..32204c5424 100644 --- a/packages/common/amplify_db_common/CHANGELOG.md +++ b/packages/common/amplify_db_common/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.10 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.4.9 - Minor bug fixes and improvements diff --git a/packages/common/amplify_db_common/example/android/.gitignore b/packages/common/amplify_db_common/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/common/amplify_db_common/example/android/.gitignore +++ b/packages/common/amplify_db_common/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/common/amplify_db_common/example/android/app/build.gradle b/packages/common/amplify_db_common/example/android/app/build.gradle index ec1f37b255..659df4c2e2 100644 --- a/packages/common/amplify_db_common/example/android/app/build.gradle +++ b/packages/common/amplify_db_common/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -64,4 +66,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") +} diff --git a/packages/common/amplify_db_common/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/common/amplify_db_common/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/common/amplify_db_common/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/common/amplify_db_common/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/common/amplify_db_common/example/android/settings.gradle b/packages/common/amplify_db_common/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/common/amplify_db_common/example/android/settings.gradle +++ b/packages/common/amplify_db_common/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/common/amplify_db_common/example/lib/db.dart b/packages/common/amplify_db_common/example/lib/db.dart index fbf06c24ae..4ba77617a6 100644 --- a/packages/common/amplify_db_common/example/lib/db.dart +++ b/packages/common/amplify_db_common/example/lib/db.dart @@ -14,21 +14,18 @@ class AppDb extends _$AppDb { int get schemaVersion => 1; Future getLatestCount() async { - final storedCount = await (select(countTable) - ..orderBy([ - (countTable) => OrderingTerm.desc(countTable.id), - ]) - ..limit(1)) - .getSingleOrNull(); + final storedCount = + await (select(countTable) + ..orderBy([(countTable) => OrderingTerm.desc(countTable.id)]) + ..limit(1)) + .getSingleOrNull(); return storedCount?.count ?? 0; } Future incrementCount() async { return transaction(() async { final count = await getLatestCount() + 1; - await into(countTable).insert( - CountTableCompanion.insert(count: count), - ); + await into(countTable).insert(CountTableCompanion.insert(count: count)); return count; }); } @@ -36,9 +33,7 @@ class AppDb extends _$AppDb { Future decrementCount() async { return transaction(() async { final count = await getLatestCount() - 1; - await into(countTable).insert( - CountTableCompanion.insert(count: count), - ); + await into(countTable).insert(CountTableCompanion.insert(count: count)); return count; }); } diff --git a/packages/common/amplify_db_common/example/lib/db.g.dart b/packages/common/amplify_db_common/example/lib/db.g.dart index 8e89323eef..fc223d77cd 100644 --- a/packages/common/amplify_db_common/example/lib/db.g.dart +++ b/packages/common/amplify_db_common/example/lib/db.g.dart @@ -12,17 +12,25 @@ class $CountTableTable extends CountTable static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); static const VerificationMeta _countMeta = const VerificationMeta('count'); @override late final GeneratedColumn count = GeneratedColumn( - 'count', aliasedName, false, - type: DriftSqlType.int, requiredDuringInsert: true); + 'count', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); @override List get $columns => [id, count]; @override @@ -31,8 +39,10 @@ class $CountTableTable extends CountTable String get actualTableName => $name; static const String $name = 'count_table'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -40,7 +50,9 @@ class $CountTableTable extends CountTable } if (data.containsKey('count')) { context.handle( - _countMeta, count.isAcceptableOrUnknown(data['count']!, _countMeta)); + _countMeta, + count.isAcceptableOrUnknown(data['count']!, _countMeta), + ); } else if (isInserting) { context.missing(_countMeta); } @@ -53,10 +65,16 @@ class $CountTableTable extends CountTable CountTableData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return CountTableData( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - count: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}count'])!, + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + count: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}count'], + )!, ); } @@ -79,14 +97,13 @@ class CountTableData extends DataClass implements Insertable { } CountTableCompanion toCompanion(bool nullToAbsent) { - return CountTableCompanion( - id: Value(id), - count: Value(count), - ); + return CountTableCompanion(id: Value(id), count: Value(count)); } - factory CountTableData.fromJson(Map json, - {ValueSerializer? serializer}) { + factory CountTableData.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return CountTableData( id: serializer.fromJson(json['id']), @@ -102,10 +119,8 @@ class CountTableData extends DataClass implements Insertable { }; } - CountTableData copyWith({int? id, int? count}) => CountTableData( - id: id ?? this.id, - count: count ?? this.count, - ); + CountTableData copyWith({int? id, int? count}) => + CountTableData(id: id ?? this.id, count: count ?? this.count); CountTableData copyWithCompanion(CountTableCompanion data) { return CountTableData( id: data.id.present ? data.id.value : this.id, @@ -154,10 +169,7 @@ class CountTableCompanion extends UpdateCompanion { } CountTableCompanion copyWith({Value? id, Value? count}) { - return CountTableCompanion( - id: id ?? this.id, - count: count ?? this.count, - ); + return CountTableCompanion(id: id ?? this.id, count: count ?? this.count); } @override @@ -193,14 +205,10 @@ abstract class _$AppDb extends GeneratedDatabase { List get allSchemaEntities => [countTable]; } -typedef $$CountTableTableCreateCompanionBuilder = CountTableCompanion Function({ - Value id, - required int count, -}); -typedef $$CountTableTableUpdateCompanionBuilder = CountTableCompanion Function({ - Value id, - Value count, -}); +typedef $$CountTableTableCreateCompanionBuilder = + CountTableCompanion Function({Value id, required int count}); +typedef $$CountTableTableUpdateCompanionBuilder = + CountTableCompanion Function({Value id, Value count}); class $$CountTableTableFilterComposer extends Composer<_$AppDb, $CountTableTable> { @@ -212,10 +220,14 @@ class $$CountTableTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get count => $composableBuilder( - column: $table.count, builder: (column) => ColumnFilters(column)); + column: $table.count, + builder: (column) => ColumnFilters(column), + ); } class $$CountTableTableOrderingComposer @@ -228,10 +240,14 @@ class $$CountTableTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get count => $composableBuilder( - column: $table.count, builder: (column) => ColumnOrderings(column)); + column: $table.count, + builder: (column) => ColumnOrderings(column), + ); } class $$CountTableTableAnnotationComposer @@ -250,63 +266,75 @@ class $$CountTableTableAnnotationComposer $composableBuilder(column: $table.count, builder: (column) => column); } -class $$CountTableTableTableManager extends RootTableManager< - _$AppDb, - $CountTableTable, - CountTableData, - $$CountTableTableFilterComposer, - $$CountTableTableOrderingComposer, - $$CountTableTableAnnotationComposer, - $$CountTableTableCreateCompanionBuilder, - $$CountTableTableUpdateCompanionBuilder, - (CountTableData, BaseReferences<_$AppDb, $CountTableTable, CountTableData>), - CountTableData, - PrefetchHooks Function()> { +class $$CountTableTableTableManager + extends + RootTableManager< + _$AppDb, + $CountTableTable, + CountTableData, + $$CountTableTableFilterComposer, + $$CountTableTableOrderingComposer, + $$CountTableTableAnnotationComposer, + $$CountTableTableCreateCompanionBuilder, + $$CountTableTableUpdateCompanionBuilder, + ( + CountTableData, + BaseReferences<_$AppDb, $CountTableTable, CountTableData>, + ), + CountTableData, + PrefetchHooks Function() + > { $$CountTableTableTableManager(_$AppDb db, $CountTableTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$CountTableTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$CountTableTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$CountTableTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value count = const Value.absent(), - }) => - CountTableCompanion( - id: id, - count: count, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required int count, - }) => - CountTableCompanion.insert( - id: id, - count: count, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$CountTableTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$CountTableTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$CountTableTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value count = const Value.absent(), + }) => CountTableCompanion(id: id, count: count), + createCompanionCallback: + ({Value id = const Value.absent(), required int count}) => + CountTableCompanion.insert(id: id, count: count), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$CountTableTableProcessedTableManager = ProcessedTableManager< - _$AppDb, - $CountTableTable, - CountTableData, - $$CountTableTableFilterComposer, - $$CountTableTableOrderingComposer, - $$CountTableTableAnnotationComposer, - $$CountTableTableCreateCompanionBuilder, - $$CountTableTableUpdateCompanionBuilder, - (CountTableData, BaseReferences<_$AppDb, $CountTableTable, CountTableData>), - CountTableData, - PrefetchHooks Function()>; +typedef $$CountTableTableProcessedTableManager = + ProcessedTableManager< + _$AppDb, + $CountTableTable, + CountTableData, + $$CountTableTableFilterComposer, + $$CountTableTableOrderingComposer, + $$CountTableTableAnnotationComposer, + $$CountTableTableCreateCompanionBuilder, + $$CountTableTableUpdateCompanionBuilder, + ( + CountTableData, + BaseReferences<_$AppDb, $CountTableTable, CountTableData>, + ), + CountTableData, + PrefetchHooks Function() + >; class $AppDbManager { final _$AppDb _db; diff --git a/packages/common/amplify_db_common/example/lib/main.dart b/packages/common/amplify_db_common/example/lib/main.dart index 70f0120f06..0c81ed5ddf 100644 --- a/packages/common/amplify_db_common/example/lib/main.dart +++ b/packages/common/amplify_db_common/example/lib/main.dart @@ -53,13 +53,12 @@ class _MyAppState extends State { Widget build(BuildContext context) { return MaterialApp( home: Scaffold( - appBar: AppBar( - title: const Text('DB Example'), - ), + appBar: AppBar(title: const Text('DB Example')), body: Center( - child: _initialized - ? Text('Count: $_count') - : const CircularProgressIndicator(), + child: + _initialized + ? Text('Count: $_count') + : const CircularProgressIndicator(), ), floatingActionButton: Row( mainAxisAlignment: MainAxisAlignment.end, diff --git a/packages/common/amplify_db_common/example/pubspec.yaml b/packages/common/amplify_db_common/example/pubspec.yaml index 5b08595e23..f6431afe66 100644 --- a/packages/common/amplify_db_common/example/pubspec.yaml +++ b/packages/common/amplify_db_common/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the amplify_db_common plugin. publish_to: "none" environment: - flutter: ">=3.27.0" - sdk: ^3.6.0 + flutter: ">=3.29.0" + sdk: ^3.7.0 dependencies: amplify_db_common: ">=0.4.5 <0.5.0" @@ -18,7 +18,7 @@ dependencies: # powersync: 1.4.2 dev_dependencies: - amplify_lints: ^2.0.0 + amplify_lints: ^3.1.0 drift_dev: ^2.25.1 build_runner: ^2.4.9 flutter_test: diff --git a/packages/common/amplify_db_common/lib/amplify_db_common.dart b/packages/common/amplify_db_common/lib/amplify_db_common.dart index 4abaeca940..d1af0dae6c 100644 --- a/packages/common/amplify_db_common/lib/amplify_db_common.dart +++ b/packages/common/amplify_db_common/lib/amplify_db_common.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Common utilities for working with databases such as SQLite. -library amplify_db_common; +library; export 'package:amplify_db_common_dart/amplify_db_common_dart.dart' hide connect; diff --git a/packages/common/amplify_db_common/lib/src/connect_io.dart b/packages/common/amplify_db_common/lib/src/connect_io.dart index 3e79b7be30..4d3605b423 100644 --- a/packages/common/amplify_db_common/lib/src/connect_io.dart +++ b/packages/common/amplify_db_common/lib/src/connect_io.dart @@ -9,10 +9,7 @@ import 'package:drift/drift.dart'; import 'package:path_provider/path_provider.dart'; /// {@macro amplify_db_common.connect} -QueryExecutor connect({ - required String name, - FutureOr? path, -}) { +QueryExecutor connect({required String name, FutureOr? path}) { return LazyDatabase(() async { final resolvedPath = await path ?? (await getApplicationSupportDirectory()).path; diff --git a/packages/common/amplify_db_common/pubspec.yaml b/packages/common/amplify_db_common/pubspec.yaml index ecb49c426b..c824d2c5ed 100644 --- a/packages/common/amplify_db_common/pubspec.yaml +++ b/packages/common/amplify_db_common/pubspec.yaml @@ -1,16 +1,16 @@ name: amplify_db_common description: Common utilities for working with databases such as SQLite. -version: 0.4.9 +version: 0.4.10 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/common/amplify_db_common issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: - amplify_db_common_dart: ">=0.4.9 <0.5.0" + amplify_db_common_dart: ">=0.4.10 <0.5.0" drift: ^2.25.0 flutter: sdk: flutter @@ -18,7 +18,7 @@ dependencies: path_provider: ^2.0.11 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" flutter_test: sdk: flutter diff --git a/packages/common/amplify_db_common_dart/CHANGELOG.md b/packages/common/amplify_db_common_dart/CHANGELOG.md index 047e7febd6..1484b0d988 100644 --- a/packages/common/amplify_db_common_dart/CHANGELOG.md +++ b/packages/common/amplify_db_common_dart/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.10 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.4.9 - Minor bug fixes and improvements diff --git a/packages/common/amplify_db_common_dart/example/bin/database.g.dart b/packages/common/amplify_db_common_dart/example/bin/database.g.dart index 42fcfa9428..1c5e77541a 100644 --- a/packages/common/amplify_db_common_dart/example/bin/database.g.dart +++ b/packages/common/amplify_db_common_dart/example/bin/database.g.dart @@ -11,32 +11,51 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); static const VerificationMeta _titleMeta = const VerificationMeta('title'); @override late final GeneratedColumn title = GeneratedColumn( - 'title', aliasedName, false, - additionalChecks: - GeneratedColumn.checkTextLength(minTextLength: 6, maxTextLength: 32), - type: DriftSqlType.string, - requiredDuringInsert: true); - static const VerificationMeta _contentMeta = - const VerificationMeta('content'); + 'title', + aliasedName, + false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 6, + maxTextLength: 32, + ), + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _contentMeta = const VerificationMeta( + 'content', + ); @override late final GeneratedColumn content = GeneratedColumn( - 'body', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _categoryMeta = - const VerificationMeta('category'); + 'body', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _categoryMeta = const VerificationMeta( + 'category', + ); @override late final GeneratedColumn category = GeneratedColumn( - 'category', aliasedName, true, - type: DriftSqlType.int, requiredDuringInsert: false); + 'category', + aliasedName, + true, + type: DriftSqlType.int, + requiredDuringInsert: false, + ); @override List get $columns => [id, title, content, category]; @override @@ -45,8 +64,10 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { String get actualTableName => $name; static const String $name = 'todos'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -54,19 +75,25 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { } if (data.containsKey('title')) { context.handle( - _titleMeta, title.isAcceptableOrUnknown(data['title']!, _titleMeta)); + _titleMeta, + title.isAcceptableOrUnknown(data['title']!, _titleMeta), + ); } else if (isInserting) { context.missing(_titleMeta); } if (data.containsKey('body')) { - context.handle(_contentMeta, - content.isAcceptableOrUnknown(data['body']!, _contentMeta)); + context.handle( + _contentMeta, + content.isAcceptableOrUnknown(data['body']!, _contentMeta), + ); } else if (isInserting) { context.missing(_contentMeta); } if (data.containsKey('category')) { - context.handle(_categoryMeta, - category.isAcceptableOrUnknown(data['category']!, _categoryMeta)); + context.handle( + _categoryMeta, + category.isAcceptableOrUnknown(data['category']!, _categoryMeta), + ); } return context; } @@ -77,14 +104,25 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { Todo map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return Todo( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - title: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}title'])!, - content: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}body'])!, - category: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}category']), + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + title: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}title'], + )!, + content: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}body'], + )!, + category: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}category'], + ), ); } @@ -99,11 +137,12 @@ class Todo extends DataClass implements Insertable { final String title; final String content; final int? category; - const Todo( - {required this.id, - required this.title, - required this.content, - this.category}); + const Todo({ + required this.id, + required this.title, + required this.content, + this.category, + }); @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -121,14 +160,17 @@ class Todo extends DataClass implements Insertable { id: Value(id), title: Value(title), content: Value(content), - category: category == null && nullToAbsent - ? const Value.absent() - : Value(category), + category: + category == null && nullToAbsent + ? const Value.absent() + : Value(category), ); } - factory Todo.fromJson(Map json, - {ValueSerializer? serializer}) { + factory Todo.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return Todo( id: serializer.fromJson(json['id']), @@ -148,17 +190,17 @@ class Todo extends DataClass implements Insertable { }; } - Todo copyWith( - {int? id, - String? title, - String? content, - Value category = const Value.absent()}) => - Todo( - id: id ?? this.id, - title: title ?? this.title, - content: content ?? this.content, - category: category.present ? category.value : this.category, - ); + Todo copyWith({ + int? id, + String? title, + String? content, + Value category = const Value.absent(), + }) => Todo( + id: id ?? this.id, + title: title ?? this.title, + content: content ?? this.content, + category: category.present ? category.value : this.category, + ); Todo copyWithCompanion(TodosCompanion data) { return Todo( id: data.id.present ? data.id.value : this.id, @@ -207,8 +249,8 @@ class TodosCompanion extends UpdateCompanion { required String title, required String content, this.category = const Value.absent(), - }) : title = Value(title), - content = Value(content); + }) : title = Value(title), + content = Value(content); static Insertable custom({ Expression? id, Expression? title, @@ -223,11 +265,12 @@ class TodosCompanion extends UpdateCompanion { }); } - TodosCompanion copyWith( - {Value? id, - Value? title, - Value? content, - Value? category}) { + TodosCompanion copyWith({ + Value? id, + Value? title, + Value? content, + Value? category, + }) { return TodosCompanion( id: id ?? this.id, title: title ?? this.title, @@ -275,18 +318,27 @@ class $CategoriesTable extends Categories static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); - static const VerificationMeta _descriptionMeta = - const VerificationMeta('description'); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); + static const VerificationMeta _descriptionMeta = const VerificationMeta( + 'description', + ); @override late final GeneratedColumn description = GeneratedColumn( - 'description', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + 'description', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); @override List get $columns => [id, description]; @override @@ -295,8 +347,10 @@ class $CategoriesTable extends Categories String get actualTableName => $name; static const String $name = 'categories'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -304,9 +358,12 @@ class $CategoriesTable extends Categories } if (data.containsKey('description')) { context.handle( + _descriptionMeta, + description.isAcceptableOrUnknown( + data['description']!, _descriptionMeta, - description.isAcceptableOrUnknown( - data['description']!, _descriptionMeta)); + ), + ); } else if (isInserting) { context.missing(_descriptionMeta); } @@ -319,10 +376,16 @@ class $CategoriesTable extends Categories Category map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return Category( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - description: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}description'])!, + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + description: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}description'], + )!, ); } @@ -345,14 +408,13 @@ class Category extends DataClass implements Insertable { } CategoriesCompanion toCompanion(bool nullToAbsent) { - return CategoriesCompanion( - id: Value(id), - description: Value(description), - ); + return CategoriesCompanion(id: Value(id), description: Value(description)); } - factory Category.fromJson(Map json, - {ValueSerializer? serializer}) { + factory Category.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return Category( id: serializer.fromJson(json['id']), @@ -368,10 +430,8 @@ class Category extends DataClass implements Insertable { }; } - Category copyWith({int? id, String? description}) => Category( - id: id ?? this.id, - description: description ?? this.description, - ); + Category copyWith({int? id, String? description}) => + Category(id: id ?? this.id, description: description ?? this.description); Category copyWithCompanion(CategoriesCompanion data) { return Category( id: data.id.present ? data.id.value : this.id, @@ -461,18 +521,20 @@ abstract class _$MyDatabase extends GeneratedDatabase { List get allSchemaEntities => [todos, categories]; } -typedef $$TodosTableCreateCompanionBuilder = TodosCompanion Function({ - Value id, - required String title, - required String content, - Value category, -}); -typedef $$TodosTableUpdateCompanionBuilder = TodosCompanion Function({ - Value id, - Value title, - Value content, - Value category, -}); +typedef $$TodosTableCreateCompanionBuilder = + TodosCompanion Function({ + Value id, + required String title, + required String content, + Value category, + }); +typedef $$TodosTableUpdateCompanionBuilder = + TodosCompanion Function({ + Value id, + Value title, + Value content, + Value category, + }); class $$TodosTableFilterComposer extends Composer<_$MyDatabase, $TodosTable> { $$TodosTableFilterComposer({ @@ -483,16 +545,24 @@ class $$TodosTableFilterComposer extends Composer<_$MyDatabase, $TodosTable> { super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get title => $composableBuilder( - column: $table.title, builder: (column) => ColumnFilters(column)); + column: $table.title, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get content => $composableBuilder( - column: $table.content, builder: (column) => ColumnFilters(column)); + column: $table.content, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get category => $composableBuilder( - column: $table.category, builder: (column) => ColumnFilters(column)); + column: $table.category, + builder: (column) => ColumnFilters(column), + ); } class $$TodosTableOrderingComposer extends Composer<_$MyDatabase, $TodosTable> { @@ -504,16 +574,24 @@ class $$TodosTableOrderingComposer extends Composer<_$MyDatabase, $TodosTable> { super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get title => $composableBuilder( - column: $table.title, builder: (column) => ColumnOrderings(column)); + column: $table.title, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get content => $composableBuilder( - column: $table.content, builder: (column) => ColumnOrderings(column)); + column: $table.content, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get category => $composableBuilder( - column: $table.category, builder: (column) => ColumnOrderings(column)); + column: $table.category, + builder: (column) => ColumnOrderings(column), + ); } class $$TodosTableAnnotationComposer @@ -538,79 +616,89 @@ class $$TodosTableAnnotationComposer $composableBuilder(column: $table.category, builder: (column) => column); } -class $$TodosTableTableManager extends RootTableManager< - _$MyDatabase, - $TodosTable, - Todo, - $$TodosTableFilterComposer, - $$TodosTableOrderingComposer, - $$TodosTableAnnotationComposer, - $$TodosTableCreateCompanionBuilder, - $$TodosTableUpdateCompanionBuilder, - (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), - Todo, - PrefetchHooks Function()> { +class $$TodosTableTableManager + extends + RootTableManager< + _$MyDatabase, + $TodosTable, + Todo, + $$TodosTableFilterComposer, + $$TodosTableOrderingComposer, + $$TodosTableAnnotationComposer, + $$TodosTableCreateCompanionBuilder, + $$TodosTableUpdateCompanionBuilder, + (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), + Todo, + PrefetchHooks Function() + > { $$TodosTableTableManager(_$MyDatabase db, $TodosTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$TodosTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$TodosTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$TodosTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value title = const Value.absent(), - Value content = const Value.absent(), - Value category = const Value.absent(), - }) => - TodosCompanion( - id: id, - title: title, - content: content, - category: category, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required String title, - required String content, - Value category = const Value.absent(), - }) => - TodosCompanion.insert( - id: id, - title: title, - content: content, - category: category, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$TodosTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$TodosTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$TodosTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value title = const Value.absent(), + Value content = const Value.absent(), + Value category = const Value.absent(), + }) => TodosCompanion( + id: id, + title: title, + content: content, + category: category, + ), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String title, + required String content, + Value category = const Value.absent(), + }) => TodosCompanion.insert( + id: id, + title: title, + content: content, + category: category, + ), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$TodosTableProcessedTableManager = ProcessedTableManager< - _$MyDatabase, - $TodosTable, - Todo, - $$TodosTableFilterComposer, - $$TodosTableOrderingComposer, - $$TodosTableAnnotationComposer, - $$TodosTableCreateCompanionBuilder, - $$TodosTableUpdateCompanionBuilder, - (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), - Todo, - PrefetchHooks Function()>; -typedef $$CategoriesTableCreateCompanionBuilder = CategoriesCompanion Function({ - Value id, - required String description, -}); -typedef $$CategoriesTableUpdateCompanionBuilder = CategoriesCompanion Function({ - Value id, - Value description, -}); +typedef $$TodosTableProcessedTableManager = + ProcessedTableManager< + _$MyDatabase, + $TodosTable, + Todo, + $$TodosTableFilterComposer, + $$TodosTableOrderingComposer, + $$TodosTableAnnotationComposer, + $$TodosTableCreateCompanionBuilder, + $$TodosTableUpdateCompanionBuilder, + (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), + Todo, + PrefetchHooks Function() + >; +typedef $$CategoriesTableCreateCompanionBuilder = + CategoriesCompanion Function({Value id, required String description}); +typedef $$CategoriesTableUpdateCompanionBuilder = + CategoriesCompanion Function({Value id, Value description}); class $$CategoriesTableFilterComposer extends Composer<_$MyDatabase, $CategoriesTable> { @@ -622,10 +710,14 @@ class $$CategoriesTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get description => $composableBuilder( - column: $table.description, builder: (column) => ColumnFilters(column)); + column: $table.description, + builder: (column) => ColumnFilters(column), + ); } class $$CategoriesTableOrderingComposer @@ -638,10 +730,14 @@ class $$CategoriesTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get description => $composableBuilder( - column: $table.description, builder: (column) => ColumnOrderings(column)); + column: $table.description, + builder: (column) => ColumnOrderings(column), + ); } class $$CategoriesTableAnnotationComposer @@ -657,66 +753,77 @@ class $$CategoriesTableAnnotationComposer $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get description => $composableBuilder( - column: $table.description, builder: (column) => column); + column: $table.description, + builder: (column) => column, + ); } -class $$CategoriesTableTableManager extends RootTableManager< - _$MyDatabase, - $CategoriesTable, - Category, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), - Category, - PrefetchHooks Function()> { +class $$CategoriesTableTableManager + extends + RootTableManager< + _$MyDatabase, + $CategoriesTable, + Category, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), + Category, + PrefetchHooks Function() + > { $$CategoriesTableTableManager(_$MyDatabase db, $CategoriesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$CategoriesTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$CategoriesTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$CategoriesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value description = const Value.absent(), - }) => - CategoriesCompanion( - id: id, - description: description, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required String description, - }) => - CategoriesCompanion.insert( - id: id, - description: description, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$CategoriesTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$CategoriesTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$CategoriesTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value description = const Value.absent(), + }) => CategoriesCompanion(id: id, description: description), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String description, + }) => + CategoriesCompanion.insert(id: id, description: description), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$CategoriesTableProcessedTableManager = ProcessedTableManager< - _$MyDatabase, - $CategoriesTable, - Category, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), - Category, - PrefetchHooks Function()>; +typedef $$CategoriesTableProcessedTableManager = + ProcessedTableManager< + _$MyDatabase, + $CategoriesTable, + Category, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), + Category, + PrefetchHooks Function() + >; class $MyDatabaseManager { final _$MyDatabase _db; diff --git a/packages/common/amplify_db_common_dart/example/bin/example.dart b/packages/common/amplify_db_common_dart/example/bin/example.dart index 3767620bc0..893c0e5d7a 100644 --- a/packages/common/amplify_db_common_dart/example/bin/example.dart +++ b/packages/common/amplify_db_common_dart/example/bin/example.dart @@ -6,10 +6,7 @@ import 'dart:io'; import 'database.dart'; -enum InputMode { - query, - insert, -} +enum InputMode { query, insert } final db = MyDatabase(); @@ -17,9 +14,7 @@ Future main() async { InputMode? inputMode; while (inputMode == null) { - final rawInput = _prompt( - 'Would you like to query (q), or insert (i): ', - ); + final rawInput = _prompt('Would you like to query (q), or insert (i): '); final input = rawInput[0].toLowerCase(); if (input == 'q') { inputMode = InputMode.query; diff --git a/packages/common/amplify_db_common_dart/example/pubspec.yaml b/packages/common/amplify_db_common_dart/example/pubspec.yaml index 4fd534d14e..94e611630d 100644 --- a/packages/common/amplify_db_common_dart/example/pubspec.yaml +++ b/packages/common/amplify_db_common_dart/example/pubspec.yaml @@ -7,7 +7,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_db_common_dart: ">=0.4.0 <0.5.0" diff --git a/packages/common/amplify_db_common_dart/example/web/database.g.dart b/packages/common/amplify_db_common_dart/example/web/database.g.dart index 42fcfa9428..1c5e77541a 100644 --- a/packages/common/amplify_db_common_dart/example/web/database.g.dart +++ b/packages/common/amplify_db_common_dart/example/web/database.g.dart @@ -11,32 +11,51 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); static const VerificationMeta _titleMeta = const VerificationMeta('title'); @override late final GeneratedColumn title = GeneratedColumn( - 'title', aliasedName, false, - additionalChecks: - GeneratedColumn.checkTextLength(minTextLength: 6, maxTextLength: 32), - type: DriftSqlType.string, - requiredDuringInsert: true); - static const VerificationMeta _contentMeta = - const VerificationMeta('content'); + 'title', + aliasedName, + false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 6, + maxTextLength: 32, + ), + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _contentMeta = const VerificationMeta( + 'content', + ); @override late final GeneratedColumn content = GeneratedColumn( - 'body', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _categoryMeta = - const VerificationMeta('category'); + 'body', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _categoryMeta = const VerificationMeta( + 'category', + ); @override late final GeneratedColumn category = GeneratedColumn( - 'category', aliasedName, true, - type: DriftSqlType.int, requiredDuringInsert: false); + 'category', + aliasedName, + true, + type: DriftSqlType.int, + requiredDuringInsert: false, + ); @override List get $columns => [id, title, content, category]; @override @@ -45,8 +64,10 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { String get actualTableName => $name; static const String $name = 'todos'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -54,19 +75,25 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { } if (data.containsKey('title')) { context.handle( - _titleMeta, title.isAcceptableOrUnknown(data['title']!, _titleMeta)); + _titleMeta, + title.isAcceptableOrUnknown(data['title']!, _titleMeta), + ); } else if (isInserting) { context.missing(_titleMeta); } if (data.containsKey('body')) { - context.handle(_contentMeta, - content.isAcceptableOrUnknown(data['body']!, _contentMeta)); + context.handle( + _contentMeta, + content.isAcceptableOrUnknown(data['body']!, _contentMeta), + ); } else if (isInserting) { context.missing(_contentMeta); } if (data.containsKey('category')) { - context.handle(_categoryMeta, - category.isAcceptableOrUnknown(data['category']!, _categoryMeta)); + context.handle( + _categoryMeta, + category.isAcceptableOrUnknown(data['category']!, _categoryMeta), + ); } return context; } @@ -77,14 +104,25 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { Todo map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return Todo( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - title: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}title'])!, - content: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}body'])!, - category: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}category']), + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + title: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}title'], + )!, + content: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}body'], + )!, + category: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}category'], + ), ); } @@ -99,11 +137,12 @@ class Todo extends DataClass implements Insertable { final String title; final String content; final int? category; - const Todo( - {required this.id, - required this.title, - required this.content, - this.category}); + const Todo({ + required this.id, + required this.title, + required this.content, + this.category, + }); @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -121,14 +160,17 @@ class Todo extends DataClass implements Insertable { id: Value(id), title: Value(title), content: Value(content), - category: category == null && nullToAbsent - ? const Value.absent() - : Value(category), + category: + category == null && nullToAbsent + ? const Value.absent() + : Value(category), ); } - factory Todo.fromJson(Map json, - {ValueSerializer? serializer}) { + factory Todo.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return Todo( id: serializer.fromJson(json['id']), @@ -148,17 +190,17 @@ class Todo extends DataClass implements Insertable { }; } - Todo copyWith( - {int? id, - String? title, - String? content, - Value category = const Value.absent()}) => - Todo( - id: id ?? this.id, - title: title ?? this.title, - content: content ?? this.content, - category: category.present ? category.value : this.category, - ); + Todo copyWith({ + int? id, + String? title, + String? content, + Value category = const Value.absent(), + }) => Todo( + id: id ?? this.id, + title: title ?? this.title, + content: content ?? this.content, + category: category.present ? category.value : this.category, + ); Todo copyWithCompanion(TodosCompanion data) { return Todo( id: data.id.present ? data.id.value : this.id, @@ -207,8 +249,8 @@ class TodosCompanion extends UpdateCompanion { required String title, required String content, this.category = const Value.absent(), - }) : title = Value(title), - content = Value(content); + }) : title = Value(title), + content = Value(content); static Insertable custom({ Expression? id, Expression? title, @@ -223,11 +265,12 @@ class TodosCompanion extends UpdateCompanion { }); } - TodosCompanion copyWith( - {Value? id, - Value? title, - Value? content, - Value? category}) { + TodosCompanion copyWith({ + Value? id, + Value? title, + Value? content, + Value? category, + }) { return TodosCompanion( id: id ?? this.id, title: title ?? this.title, @@ -275,18 +318,27 @@ class $CategoriesTable extends Categories static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); - static const VerificationMeta _descriptionMeta = - const VerificationMeta('description'); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); + static const VerificationMeta _descriptionMeta = const VerificationMeta( + 'description', + ); @override late final GeneratedColumn description = GeneratedColumn( - 'description', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + 'description', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); @override List get $columns => [id, description]; @override @@ -295,8 +347,10 @@ class $CategoriesTable extends Categories String get actualTableName => $name; static const String $name = 'categories'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -304,9 +358,12 @@ class $CategoriesTable extends Categories } if (data.containsKey('description')) { context.handle( + _descriptionMeta, + description.isAcceptableOrUnknown( + data['description']!, _descriptionMeta, - description.isAcceptableOrUnknown( - data['description']!, _descriptionMeta)); + ), + ); } else if (isInserting) { context.missing(_descriptionMeta); } @@ -319,10 +376,16 @@ class $CategoriesTable extends Categories Category map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return Category( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - description: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}description'])!, + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + description: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}description'], + )!, ); } @@ -345,14 +408,13 @@ class Category extends DataClass implements Insertable { } CategoriesCompanion toCompanion(bool nullToAbsent) { - return CategoriesCompanion( - id: Value(id), - description: Value(description), - ); + return CategoriesCompanion(id: Value(id), description: Value(description)); } - factory Category.fromJson(Map json, - {ValueSerializer? serializer}) { + factory Category.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return Category( id: serializer.fromJson(json['id']), @@ -368,10 +430,8 @@ class Category extends DataClass implements Insertable { }; } - Category copyWith({int? id, String? description}) => Category( - id: id ?? this.id, - description: description ?? this.description, - ); + Category copyWith({int? id, String? description}) => + Category(id: id ?? this.id, description: description ?? this.description); Category copyWithCompanion(CategoriesCompanion data) { return Category( id: data.id.present ? data.id.value : this.id, @@ -461,18 +521,20 @@ abstract class _$MyDatabase extends GeneratedDatabase { List get allSchemaEntities => [todos, categories]; } -typedef $$TodosTableCreateCompanionBuilder = TodosCompanion Function({ - Value id, - required String title, - required String content, - Value category, -}); -typedef $$TodosTableUpdateCompanionBuilder = TodosCompanion Function({ - Value id, - Value title, - Value content, - Value category, -}); +typedef $$TodosTableCreateCompanionBuilder = + TodosCompanion Function({ + Value id, + required String title, + required String content, + Value category, + }); +typedef $$TodosTableUpdateCompanionBuilder = + TodosCompanion Function({ + Value id, + Value title, + Value content, + Value category, + }); class $$TodosTableFilterComposer extends Composer<_$MyDatabase, $TodosTable> { $$TodosTableFilterComposer({ @@ -483,16 +545,24 @@ class $$TodosTableFilterComposer extends Composer<_$MyDatabase, $TodosTable> { super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get title => $composableBuilder( - column: $table.title, builder: (column) => ColumnFilters(column)); + column: $table.title, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get content => $composableBuilder( - column: $table.content, builder: (column) => ColumnFilters(column)); + column: $table.content, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get category => $composableBuilder( - column: $table.category, builder: (column) => ColumnFilters(column)); + column: $table.category, + builder: (column) => ColumnFilters(column), + ); } class $$TodosTableOrderingComposer extends Composer<_$MyDatabase, $TodosTable> { @@ -504,16 +574,24 @@ class $$TodosTableOrderingComposer extends Composer<_$MyDatabase, $TodosTable> { super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get title => $composableBuilder( - column: $table.title, builder: (column) => ColumnOrderings(column)); + column: $table.title, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get content => $composableBuilder( - column: $table.content, builder: (column) => ColumnOrderings(column)); + column: $table.content, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get category => $composableBuilder( - column: $table.category, builder: (column) => ColumnOrderings(column)); + column: $table.category, + builder: (column) => ColumnOrderings(column), + ); } class $$TodosTableAnnotationComposer @@ -538,79 +616,89 @@ class $$TodosTableAnnotationComposer $composableBuilder(column: $table.category, builder: (column) => column); } -class $$TodosTableTableManager extends RootTableManager< - _$MyDatabase, - $TodosTable, - Todo, - $$TodosTableFilterComposer, - $$TodosTableOrderingComposer, - $$TodosTableAnnotationComposer, - $$TodosTableCreateCompanionBuilder, - $$TodosTableUpdateCompanionBuilder, - (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), - Todo, - PrefetchHooks Function()> { +class $$TodosTableTableManager + extends + RootTableManager< + _$MyDatabase, + $TodosTable, + Todo, + $$TodosTableFilterComposer, + $$TodosTableOrderingComposer, + $$TodosTableAnnotationComposer, + $$TodosTableCreateCompanionBuilder, + $$TodosTableUpdateCompanionBuilder, + (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), + Todo, + PrefetchHooks Function() + > { $$TodosTableTableManager(_$MyDatabase db, $TodosTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$TodosTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$TodosTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$TodosTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value title = const Value.absent(), - Value content = const Value.absent(), - Value category = const Value.absent(), - }) => - TodosCompanion( - id: id, - title: title, - content: content, - category: category, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required String title, - required String content, - Value category = const Value.absent(), - }) => - TodosCompanion.insert( - id: id, - title: title, - content: content, - category: category, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$TodosTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$TodosTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$TodosTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value title = const Value.absent(), + Value content = const Value.absent(), + Value category = const Value.absent(), + }) => TodosCompanion( + id: id, + title: title, + content: content, + category: category, + ), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String title, + required String content, + Value category = const Value.absent(), + }) => TodosCompanion.insert( + id: id, + title: title, + content: content, + category: category, + ), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$TodosTableProcessedTableManager = ProcessedTableManager< - _$MyDatabase, - $TodosTable, - Todo, - $$TodosTableFilterComposer, - $$TodosTableOrderingComposer, - $$TodosTableAnnotationComposer, - $$TodosTableCreateCompanionBuilder, - $$TodosTableUpdateCompanionBuilder, - (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), - Todo, - PrefetchHooks Function()>; -typedef $$CategoriesTableCreateCompanionBuilder = CategoriesCompanion Function({ - Value id, - required String description, -}); -typedef $$CategoriesTableUpdateCompanionBuilder = CategoriesCompanion Function({ - Value id, - Value description, -}); +typedef $$TodosTableProcessedTableManager = + ProcessedTableManager< + _$MyDatabase, + $TodosTable, + Todo, + $$TodosTableFilterComposer, + $$TodosTableOrderingComposer, + $$TodosTableAnnotationComposer, + $$TodosTableCreateCompanionBuilder, + $$TodosTableUpdateCompanionBuilder, + (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), + Todo, + PrefetchHooks Function() + >; +typedef $$CategoriesTableCreateCompanionBuilder = + CategoriesCompanion Function({Value id, required String description}); +typedef $$CategoriesTableUpdateCompanionBuilder = + CategoriesCompanion Function({Value id, Value description}); class $$CategoriesTableFilterComposer extends Composer<_$MyDatabase, $CategoriesTable> { @@ -622,10 +710,14 @@ class $$CategoriesTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get description => $composableBuilder( - column: $table.description, builder: (column) => ColumnFilters(column)); + column: $table.description, + builder: (column) => ColumnFilters(column), + ); } class $$CategoriesTableOrderingComposer @@ -638,10 +730,14 @@ class $$CategoriesTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get description => $composableBuilder( - column: $table.description, builder: (column) => ColumnOrderings(column)); + column: $table.description, + builder: (column) => ColumnOrderings(column), + ); } class $$CategoriesTableAnnotationComposer @@ -657,66 +753,77 @@ class $$CategoriesTableAnnotationComposer $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get description => $composableBuilder( - column: $table.description, builder: (column) => column); + column: $table.description, + builder: (column) => column, + ); } -class $$CategoriesTableTableManager extends RootTableManager< - _$MyDatabase, - $CategoriesTable, - Category, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), - Category, - PrefetchHooks Function()> { +class $$CategoriesTableTableManager + extends + RootTableManager< + _$MyDatabase, + $CategoriesTable, + Category, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), + Category, + PrefetchHooks Function() + > { $$CategoriesTableTableManager(_$MyDatabase db, $CategoriesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$CategoriesTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$CategoriesTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$CategoriesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value description = const Value.absent(), - }) => - CategoriesCompanion( - id: id, - description: description, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required String description, - }) => - CategoriesCompanion.insert( - id: id, - description: description, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$CategoriesTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$CategoriesTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$CategoriesTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value description = const Value.absent(), + }) => CategoriesCompanion(id: id, description: description), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String description, + }) => + CategoriesCompanion.insert(id: id, description: description), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$CategoriesTableProcessedTableManager = ProcessedTableManager< - _$MyDatabase, - $CategoriesTable, - Category, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), - Category, - PrefetchHooks Function()>; +typedef $$CategoriesTableProcessedTableManager = + ProcessedTableManager< + _$MyDatabase, + $CategoriesTable, + Category, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), + Category, + PrefetchHooks Function() + >; class $MyDatabaseManager { final _$MyDatabase _db; diff --git a/packages/common/amplify_db_common_dart/example/web/main.dart b/packages/common/amplify_db_common_dart/example/web/main.dart index 85235dfbcf..e740499a63 100644 --- a/packages/common/amplify_db_common_dart/example/web/main.dart +++ b/packages/common/amplify_db_common_dart/example/web/main.dart @@ -81,18 +81,12 @@ class AppComponent extends StatefulComponent { _content = value ?? ''; }, ), - ButtonComponent( - innerHtml: 'Add', - onClick: _insert, - ), + ButtonComponent(innerHtml: 'Add', onClick: _insert), ], ), RowComponent( children: [ - ButtonComponent( - innerHtml: 'Re-query Database', - onClick: _query, - ), + ButtonComponent(innerHtml: 'Re-query Database', onClick: _query), ], ), if (_loading) TextComponent('Loading ...'), diff --git a/packages/common/amplify_db_common_dart/lib/amplify_db_common_dart.dart b/packages/common/amplify_db_common_dart/lib/amplify_db_common_dart.dart index 41c34814ad..735ba60329 100644 --- a/packages/common/amplify_db_common_dart/lib/amplify_db_common_dart.dart +++ b/packages/common/amplify_db_common_dart/lib/amplify_db_common_dart.dart @@ -2,6 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 /// Common utilities for working with databases such as sqlite. -library amplify_db_common_dart; +library; export 'src/connect.dart'; diff --git a/packages/common/amplify_db_common_dart/lib/src/connect.dart b/packages/common/amplify_db_common_dart/lib/src/connect.dart index 66e91c1235..c795b8a84a 100644 --- a/packages/common/amplify_db_common_dart/lib/src/connect.dart +++ b/packages/common/amplify_db_common_dart/lib/src/connect.dart @@ -10,7 +10,5 @@ export 'connect_stub.dart' if (dart.library.io) 'connect_io.dart'; /// Interface of the Drift DB connect function. -typedef Connect = QueryExecutor Function({ - required String name, - FutureOr? path, -}); +typedef Connect = + QueryExecutor Function({required String name, FutureOr? path}); diff --git a/packages/common/amplify_db_common_dart/lib/src/connect_io.dart b/packages/common/amplify_db_common_dart/lib/src/connect_io.dart index 5d65aee014..96380ef14a 100644 --- a/packages/common/amplify_db_common_dart/lib/src/connect_io.dart +++ b/packages/common/amplify_db_common_dart/lib/src/connect_io.dart @@ -16,10 +16,7 @@ import 'package:path/path.dart' as p; /// See [Using drift in a background isolate](https://drift.simonbinder.eu/docs/advanced-features/isolates/#initialization-on-the-main-thread) /// and [the drift native example](https://github.com/simolus3/drift/blob/3253cd7ead51d7b163542929eb0fc8daee573fce/examples/app/lib/database/connection/native.dart) /// for more info. -QueryExecutor connect({ - required String name, - FutureOr? path, -}) { +QueryExecutor connect({required String name, FutureOr? path}) { assert(path != null, 'path cannot be null on vm.'); return DatabaseConnection.delayed( diff --git a/packages/common/amplify_db_common_dart/lib/src/connect_stub.dart b/packages/common/amplify_db_common_dart/lib/src/connect_stub.dart index 0f1fb2e777..996921504a 100644 --- a/packages/common/amplify_db_common_dart/lib/src/connect_stub.dart +++ b/packages/common/amplify_db_common_dart/lib/src/connect_stub.dart @@ -13,10 +13,7 @@ import 'package:drift/drift.dart'; /// example, "AnalyticsEventCache". /// /// [path] must be provided on vm platforms. It will be unused on web. -QueryExecutor connect({ - required String name, - FutureOr? path, -}) { +QueryExecutor connect({required String name, FutureOr? path}) { throw UnimplementedError( 'constructDb has not been implemented for this platform.', ); diff --git a/packages/common/amplify_db_common_dart/pubspec.yaml b/packages/common/amplify_db_common_dart/pubspec.yaml index b5a56a25a3..7e2bf489d9 100644 --- a/packages/common/amplify_db_common_dart/pubspec.yaml +++ b/packages/common/amplify_db_common_dart/pubspec.yaml @@ -1,24 +1,24 @@ name: amplify_db_common_dart description: Common utilities for working with databases such as sqlite. Used throughout Amplify packages. -version: 0.4.9 +version: 0.4.10 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/common/amplify_db_common_dart issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - amplify_core: ">=2.6.1 <2.7.0" + amplify_core: ">=2.6.2 <2.7.0" async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" + aws_common: ">=0.7.7 <0.8.0" drift: ^2.25.0 - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" sqlite3: ">=2.0.0 <2.7.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 build_test: ^2.0.0 build_web_compilers: ^4.0.0 diff --git a/packages/common/amplify_db_common_dart/test/database.g.dart b/packages/common/amplify_db_common_dart/test/database.g.dart index 42fcfa9428..1c5e77541a 100644 --- a/packages/common/amplify_db_common_dart/test/database.g.dart +++ b/packages/common/amplify_db_common_dart/test/database.g.dart @@ -11,32 +11,51 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); static const VerificationMeta _titleMeta = const VerificationMeta('title'); @override late final GeneratedColumn title = GeneratedColumn( - 'title', aliasedName, false, - additionalChecks: - GeneratedColumn.checkTextLength(minTextLength: 6, maxTextLength: 32), - type: DriftSqlType.string, - requiredDuringInsert: true); - static const VerificationMeta _contentMeta = - const VerificationMeta('content'); + 'title', + aliasedName, + false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 6, + maxTextLength: 32, + ), + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _contentMeta = const VerificationMeta( + 'content', + ); @override late final GeneratedColumn content = GeneratedColumn( - 'body', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _categoryMeta = - const VerificationMeta('category'); + 'body', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _categoryMeta = const VerificationMeta( + 'category', + ); @override late final GeneratedColumn category = GeneratedColumn( - 'category', aliasedName, true, - type: DriftSqlType.int, requiredDuringInsert: false); + 'category', + aliasedName, + true, + type: DriftSqlType.int, + requiredDuringInsert: false, + ); @override List get $columns => [id, title, content, category]; @override @@ -45,8 +64,10 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { String get actualTableName => $name; static const String $name = 'todos'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -54,19 +75,25 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { } if (data.containsKey('title')) { context.handle( - _titleMeta, title.isAcceptableOrUnknown(data['title']!, _titleMeta)); + _titleMeta, + title.isAcceptableOrUnknown(data['title']!, _titleMeta), + ); } else if (isInserting) { context.missing(_titleMeta); } if (data.containsKey('body')) { - context.handle(_contentMeta, - content.isAcceptableOrUnknown(data['body']!, _contentMeta)); + context.handle( + _contentMeta, + content.isAcceptableOrUnknown(data['body']!, _contentMeta), + ); } else if (isInserting) { context.missing(_contentMeta); } if (data.containsKey('category')) { - context.handle(_categoryMeta, - category.isAcceptableOrUnknown(data['category']!, _categoryMeta)); + context.handle( + _categoryMeta, + category.isAcceptableOrUnknown(data['category']!, _categoryMeta), + ); } return context; } @@ -77,14 +104,25 @@ class $TodosTable extends Todos with TableInfo<$TodosTable, Todo> { Todo map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return Todo( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - title: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}title'])!, - content: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}body'])!, - category: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}category']), + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + title: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}title'], + )!, + content: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}body'], + )!, + category: attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}category'], + ), ); } @@ -99,11 +137,12 @@ class Todo extends DataClass implements Insertable { final String title; final String content; final int? category; - const Todo( - {required this.id, - required this.title, - required this.content, - this.category}); + const Todo({ + required this.id, + required this.title, + required this.content, + this.category, + }); @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -121,14 +160,17 @@ class Todo extends DataClass implements Insertable { id: Value(id), title: Value(title), content: Value(content), - category: category == null && nullToAbsent - ? const Value.absent() - : Value(category), + category: + category == null && nullToAbsent + ? const Value.absent() + : Value(category), ); } - factory Todo.fromJson(Map json, - {ValueSerializer? serializer}) { + factory Todo.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return Todo( id: serializer.fromJson(json['id']), @@ -148,17 +190,17 @@ class Todo extends DataClass implements Insertable { }; } - Todo copyWith( - {int? id, - String? title, - String? content, - Value category = const Value.absent()}) => - Todo( - id: id ?? this.id, - title: title ?? this.title, - content: content ?? this.content, - category: category.present ? category.value : this.category, - ); + Todo copyWith({ + int? id, + String? title, + String? content, + Value category = const Value.absent(), + }) => Todo( + id: id ?? this.id, + title: title ?? this.title, + content: content ?? this.content, + category: category.present ? category.value : this.category, + ); Todo copyWithCompanion(TodosCompanion data) { return Todo( id: data.id.present ? data.id.value : this.id, @@ -207,8 +249,8 @@ class TodosCompanion extends UpdateCompanion { required String title, required String content, this.category = const Value.absent(), - }) : title = Value(title), - content = Value(content); + }) : title = Value(title), + content = Value(content); static Insertable custom({ Expression? id, Expression? title, @@ -223,11 +265,12 @@ class TodosCompanion extends UpdateCompanion { }); } - TodosCompanion copyWith( - {Value? id, - Value? title, - Value? content, - Value? category}) { + TodosCompanion copyWith({ + Value? id, + Value? title, + Value? content, + Value? category, + }) { return TodosCompanion( id: id ?? this.id, title: title ?? this.title, @@ -275,18 +318,27 @@ class $CategoriesTable extends Categories static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); - static const VerificationMeta _descriptionMeta = - const VerificationMeta('description'); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); + static const VerificationMeta _descriptionMeta = const VerificationMeta( + 'description', + ); @override late final GeneratedColumn description = GeneratedColumn( - 'description', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + 'description', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); @override List get $columns => [id, description]; @override @@ -295,8 +347,10 @@ class $CategoriesTable extends Categories String get actualTableName => $name; static const String $name = 'categories'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -304,9 +358,12 @@ class $CategoriesTable extends Categories } if (data.containsKey('description')) { context.handle( + _descriptionMeta, + description.isAcceptableOrUnknown( + data['description']!, _descriptionMeta, - description.isAcceptableOrUnknown( - data['description']!, _descriptionMeta)); + ), + ); } else if (isInserting) { context.missing(_descriptionMeta); } @@ -319,10 +376,16 @@ class $CategoriesTable extends Categories Category map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return Category( - id: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}id'])!, - description: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}description'])!, + id: + attachedDatabase.typeMapping.read( + DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + description: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}description'], + )!, ); } @@ -345,14 +408,13 @@ class Category extends DataClass implements Insertable { } CategoriesCompanion toCompanion(bool nullToAbsent) { - return CategoriesCompanion( - id: Value(id), - description: Value(description), - ); + return CategoriesCompanion(id: Value(id), description: Value(description)); } - factory Category.fromJson(Map json, - {ValueSerializer? serializer}) { + factory Category.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return Category( id: serializer.fromJson(json['id']), @@ -368,10 +430,8 @@ class Category extends DataClass implements Insertable { }; } - Category copyWith({int? id, String? description}) => Category( - id: id ?? this.id, - description: description ?? this.description, - ); + Category copyWith({int? id, String? description}) => + Category(id: id ?? this.id, description: description ?? this.description); Category copyWithCompanion(CategoriesCompanion data) { return Category( id: data.id.present ? data.id.value : this.id, @@ -461,18 +521,20 @@ abstract class _$MyDatabase extends GeneratedDatabase { List get allSchemaEntities => [todos, categories]; } -typedef $$TodosTableCreateCompanionBuilder = TodosCompanion Function({ - Value id, - required String title, - required String content, - Value category, -}); -typedef $$TodosTableUpdateCompanionBuilder = TodosCompanion Function({ - Value id, - Value title, - Value content, - Value category, -}); +typedef $$TodosTableCreateCompanionBuilder = + TodosCompanion Function({ + Value id, + required String title, + required String content, + Value category, + }); +typedef $$TodosTableUpdateCompanionBuilder = + TodosCompanion Function({ + Value id, + Value title, + Value content, + Value category, + }); class $$TodosTableFilterComposer extends Composer<_$MyDatabase, $TodosTable> { $$TodosTableFilterComposer({ @@ -483,16 +545,24 @@ class $$TodosTableFilterComposer extends Composer<_$MyDatabase, $TodosTable> { super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get title => $composableBuilder( - column: $table.title, builder: (column) => ColumnFilters(column)); + column: $table.title, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get content => $composableBuilder( - column: $table.content, builder: (column) => ColumnFilters(column)); + column: $table.content, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get category => $composableBuilder( - column: $table.category, builder: (column) => ColumnFilters(column)); + column: $table.category, + builder: (column) => ColumnFilters(column), + ); } class $$TodosTableOrderingComposer extends Composer<_$MyDatabase, $TodosTable> { @@ -504,16 +574,24 @@ class $$TodosTableOrderingComposer extends Composer<_$MyDatabase, $TodosTable> { super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get title => $composableBuilder( - column: $table.title, builder: (column) => ColumnOrderings(column)); + column: $table.title, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get content => $composableBuilder( - column: $table.content, builder: (column) => ColumnOrderings(column)); + column: $table.content, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get category => $composableBuilder( - column: $table.category, builder: (column) => ColumnOrderings(column)); + column: $table.category, + builder: (column) => ColumnOrderings(column), + ); } class $$TodosTableAnnotationComposer @@ -538,79 +616,89 @@ class $$TodosTableAnnotationComposer $composableBuilder(column: $table.category, builder: (column) => column); } -class $$TodosTableTableManager extends RootTableManager< - _$MyDatabase, - $TodosTable, - Todo, - $$TodosTableFilterComposer, - $$TodosTableOrderingComposer, - $$TodosTableAnnotationComposer, - $$TodosTableCreateCompanionBuilder, - $$TodosTableUpdateCompanionBuilder, - (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), - Todo, - PrefetchHooks Function()> { +class $$TodosTableTableManager + extends + RootTableManager< + _$MyDatabase, + $TodosTable, + Todo, + $$TodosTableFilterComposer, + $$TodosTableOrderingComposer, + $$TodosTableAnnotationComposer, + $$TodosTableCreateCompanionBuilder, + $$TodosTableUpdateCompanionBuilder, + (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), + Todo, + PrefetchHooks Function() + > { $$TodosTableTableManager(_$MyDatabase db, $TodosTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$TodosTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$TodosTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$TodosTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value title = const Value.absent(), - Value content = const Value.absent(), - Value category = const Value.absent(), - }) => - TodosCompanion( - id: id, - title: title, - content: content, - category: category, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required String title, - required String content, - Value category = const Value.absent(), - }) => - TodosCompanion.insert( - id: id, - title: title, - content: content, - category: category, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$TodosTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$TodosTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$TodosTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value title = const Value.absent(), + Value content = const Value.absent(), + Value category = const Value.absent(), + }) => TodosCompanion( + id: id, + title: title, + content: content, + category: category, + ), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String title, + required String content, + Value category = const Value.absent(), + }) => TodosCompanion.insert( + id: id, + title: title, + content: content, + category: category, + ), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$TodosTableProcessedTableManager = ProcessedTableManager< - _$MyDatabase, - $TodosTable, - Todo, - $$TodosTableFilterComposer, - $$TodosTableOrderingComposer, - $$TodosTableAnnotationComposer, - $$TodosTableCreateCompanionBuilder, - $$TodosTableUpdateCompanionBuilder, - (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), - Todo, - PrefetchHooks Function()>; -typedef $$CategoriesTableCreateCompanionBuilder = CategoriesCompanion Function({ - Value id, - required String description, -}); -typedef $$CategoriesTableUpdateCompanionBuilder = CategoriesCompanion Function({ - Value id, - Value description, -}); +typedef $$TodosTableProcessedTableManager = + ProcessedTableManager< + _$MyDatabase, + $TodosTable, + Todo, + $$TodosTableFilterComposer, + $$TodosTableOrderingComposer, + $$TodosTableAnnotationComposer, + $$TodosTableCreateCompanionBuilder, + $$TodosTableUpdateCompanionBuilder, + (Todo, BaseReferences<_$MyDatabase, $TodosTable, Todo>), + Todo, + PrefetchHooks Function() + >; +typedef $$CategoriesTableCreateCompanionBuilder = + CategoriesCompanion Function({Value id, required String description}); +typedef $$CategoriesTableUpdateCompanionBuilder = + CategoriesCompanion Function({Value id, Value description}); class $$CategoriesTableFilterComposer extends Composer<_$MyDatabase, $CategoriesTable> { @@ -622,10 +710,14 @@ class $$CategoriesTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + column: $table.id, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get description => $composableBuilder( - column: $table.description, builder: (column) => ColumnFilters(column)); + column: $table.description, + builder: (column) => ColumnFilters(column), + ); } class $$CategoriesTableOrderingComposer @@ -638,10 +730,14 @@ class $$CategoriesTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + column: $table.id, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get description => $composableBuilder( - column: $table.description, builder: (column) => ColumnOrderings(column)); + column: $table.description, + builder: (column) => ColumnOrderings(column), + ); } class $$CategoriesTableAnnotationComposer @@ -657,66 +753,77 @@ class $$CategoriesTableAnnotationComposer $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get description => $composableBuilder( - column: $table.description, builder: (column) => column); + column: $table.description, + builder: (column) => column, + ); } -class $$CategoriesTableTableManager extends RootTableManager< - _$MyDatabase, - $CategoriesTable, - Category, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), - Category, - PrefetchHooks Function()> { +class $$CategoriesTableTableManager + extends + RootTableManager< + _$MyDatabase, + $CategoriesTable, + Category, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), + Category, + PrefetchHooks Function() + > { $$CategoriesTableTableManager(_$MyDatabase db, $CategoriesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$CategoriesTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$CategoriesTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$CategoriesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value description = const Value.absent(), - }) => - CategoriesCompanion( - id: id, - description: description, - ), - createCompanionCallback: ({ - Value id = const Value.absent(), - required String description, - }) => - CategoriesCompanion.insert( - id: id, - description: description, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$CategoriesTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$CategoriesTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$CategoriesTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value description = const Value.absent(), + }) => CategoriesCompanion(id: id, description: description), + createCompanionCallback: + ({ + Value id = const Value.absent(), + required String description, + }) => + CategoriesCompanion.insert(id: id, description: description), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$CategoriesTableProcessedTableManager = ProcessedTableManager< - _$MyDatabase, - $CategoriesTable, - Category, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), - Category, - PrefetchHooks Function()>; +typedef $$CategoriesTableProcessedTableManager = + ProcessedTableManager< + _$MyDatabase, + $CategoriesTable, + Category, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (Category, BaseReferences<_$MyDatabase, $CategoriesTable, Category>), + Category, + PrefetchHooks Function() + >; class $MyDatabaseManager { final _$MyDatabase _db; diff --git a/packages/common/amplify_db_common_dart/test/main_test.dart b/packages/common/amplify_db_common_dart/test/main_test.dart index bab1b80680..0d0820bd81 100644 --- a/packages/common/amplify_db_common_dart/test/main_test.dart +++ b/packages/common/amplify_db_common_dart/test/main_test.dart @@ -3,6 +3,7 @@ // TODO(Jordan-Nelson): Run tests on web. This will require loading sqlite3.wasm @TestOn('vm') +library; import 'package:amplify_db_common_dart/amplify_db_common_dart.dart'; import 'package:test/test.dart'; @@ -14,18 +15,20 @@ void main() { group('drift utils', () { test('connect completes', () async { expect( - connect(name: 'TestDatabase', path: '/tmp').ensureOpen( - TestQueryExecutorUser(), - ), + connect( + name: 'TestDatabase', + path: '/tmp', + ).ensureOpen(TestQueryExecutorUser()), completes, ); }); test('connect completes with delayed path resolving', () async { expect( - connect(name: 'TestDatabase', path: Future.value('/tmp')).ensureOpen( - TestQueryExecutorUser(), - ), + connect( + name: 'TestDatabase', + path: Future.value('/tmp'), + ).ensureOpen(TestQueryExecutorUser()), completes, ); }); @@ -33,11 +36,10 @@ void main() { test('can delete, insert, and query', () async { final db = MyDatabase(); await db.delete(db.todos).go(); - await db.into(db.todos).insert( - TodosCompanion.insert( - title: 'New todo', - content: 'todo content', - ), + await db + .into(db.todos) + .insert( + TodosCompanion.insert(title: 'New todo', content: 'todo content'), ); final items = await db.select(db.todos).get(); expect(items.length, 1); diff --git a/packages/common/amplify_db_common_dart/test/web_test.dart b/packages/common/amplify_db_common_dart/test/web_test.dart index bf45af9dbb..01f8056d20 100644 --- a/packages/common/amplify_db_common_dart/test/web_test.dart +++ b/packages/common/amplify_db_common_dart/test/web_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('browser') +library; import 'package:amplify_core/amplify_core.dart'; import 'package:amplify_db_common_dart/src/connect_html.dart'; @@ -14,38 +15,39 @@ import 'util.dart'; void main() { group('drift utils (web)', () { - test('calling connect multiple times should only result in one http call', - () async { - var requestCount = 0; - final client = MockAWSHttpClient((request, _) { - requestCount++; - return AWSHttpResponse(statusCode: 200, body: Uint8List.fromList([])); - }); - for (var i = 0; i < 100; i++) { - try { - final db = connect( - name: 'TestDatabase', - path: '/tmp', - client: client, - ); - await db.ensureOpen(TestQueryExecutorUser()); - } on Object { - // This is expected to throw since the http request is mocked. + test( + 'calling connect multiple times should only result in one http call', + () async { + var requestCount = 0; + final client = MockAWSHttpClient((request, _) { + requestCount++; + return AWSHttpResponse(statusCode: 200, body: Uint8List.fromList([])); + }); + for (var i = 0; i < 100; i++) { + try { + final db = connect( + name: 'TestDatabase', + path: '/tmp', + client: client, + ); + await db.ensureOpen(TestQueryExecutorUser()); + } on Object { + // This is expected to throw since the http request is mocked. + } } - } - expect(requestCount, 1); - }); + expect(requestCount, 1); + }, + ); - test('loadSqlite3 should throw AmplifyException for a 4xx/5xx status code', - () async { - final client = MockAWSHttpClient((request, _) { - return AWSHttpResponse(statusCode: 404, body: Uint8List.fromList([])); - }); - final memo = AsyncMemoizer(); - expect( - () => loadSqlite3(client, memo), - throwsA(isA()), - ); - }); + test( + 'loadSqlite3 should throw AmplifyException for a 4xx/5xx status code', + () async { + final client = MockAWSHttpClient((request, _) { + return AWSHttpResponse(statusCode: 404, body: Uint8List.fromList([])); + }); + final memo = AsyncMemoizer(); + expect(() => loadSqlite3(client, memo), throwsA(isA())); + }, + ); }); } diff --git a/packages/example_common/example/pubspec.yaml b/packages/example_common/example/pubspec.yaml index 5447e7a87f..c971a0d818 100644 --- a/packages/example_common/example/pubspec.yaml +++ b/packages/example_common/example/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: example_common: diff --git a/packages/example_common/lib/example_common.dart b/packages/example_common/lib/example_common.dart index a1542e92e1..d9467f96ef 100644 --- a/packages/example_common/lib/example_common.dart +++ b/packages/example_common/lib/example_common.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Common components and utilities for example apps in amplify dart. -library example_common; +library; export 'src/components/builder_component.dart'; export 'src/components/button_component.dart'; diff --git a/packages/example_common/lib/src/components/flex_component.dart b/packages/example_common/lib/src/components/flex_component.dart index ca04cb9d66..908c22de28 100644 --- a/packages/example_common/lib/src/components/flex_component.dart +++ b/packages/example_common/lib/src/components/flex_component.dart @@ -45,12 +45,8 @@ class FlexComponent extends Component { /// {@endtemplate} class ColumnComponent extends FlexComponent { /// {@macro example_common.column_component} - ColumnComponent({ - super.alignItems, - required super.children, - }) : super( - direction: Axis.vertical, - ); + ColumnComponent({super.alignItems, required super.children}) + : super(direction: Axis.vertical); } /// {@template example_common.row_component} @@ -58,10 +54,6 @@ class ColumnComponent extends FlexComponent { /// {@endtemplate} class RowComponent extends FlexComponent { /// {@macro example_common.row_component} - RowComponent({ - super.alignItems, - required super.children, - }) : super( - direction: Axis.horizontal, - ); + RowComponent({super.alignItems, required super.children}) + : super(direction: Axis.horizontal); } diff --git a/packages/example_common/lib/src/components/table_component.dart b/packages/example_common/lib/src/components/table_component.dart index 0478b4b64a..25d0a83676 100644 --- a/packages/example_common/lib/src/components/table_component.dart +++ b/packages/example_common/lib/src/components/table_component.dart @@ -11,9 +11,7 @@ import 'package:example_common/src/components/component.dart'; /// {@endtemplate} class TableComponent extends Component { /// {@macro example_common.column_component} - TableComponent({ - required this.tableDefinition, - }); + TableComponent({required this.tableDefinition}); /// Header and Rows for to-be table final TableDefinition tableDefinition; @@ -43,10 +41,7 @@ class TableComponent extends Component { /// The input type for the [TableComponent] constructor class TableDefinition { /// {@macro example_common.form_component} - TableDefinition({ - required this.headers, - required this.rows, - }); + TableDefinition({required this.headers, required this.rows}); /// The header row for the [TableComponent] List headers; diff --git a/packages/example_common/lib/src/components/text_form_field_component.dart b/packages/example_common/lib/src/components/text_form_field_component.dart index 6a2f3b3bf7..237414e11f 100644 --- a/packages/example_common/lib/src/components/text_form_field_component.dart +++ b/packages/example_common/lib/src/components/text_form_field_component.dart @@ -50,13 +50,14 @@ class TextFormFieldComponent extends Component { final void Function(String? value) onChanged; late final _labelElement = LabelElement()..innerHtml = labelText; - late final _inputElement = InputElement() - ..type = type - ..required = required - ..id = id - ..style.width = '100%' - ..style.boxSizing = 'border-box' - ..value = initialValue; + late final _inputElement = + InputElement() + ..type = type + ..required = required + ..id = id + ..style.width = '100%' + ..style.boxSizing = 'border-box' + ..value = initialValue; @override Component render() { diff --git a/packages/example_common/lib/src/utils/component_edge_insets.dart b/packages/example_common/lib/src/utils/component_edge_insets.dart index 6b34d01ae7..8237fc2238 100644 --- a/packages/example_common/lib/src/utils/component_edge_insets.dart +++ b/packages/example_common/lib/src/utils/component_edge_insets.dart @@ -18,17 +18,17 @@ class ComponentEdgeInsets { const ComponentEdgeInsets.symmetric({ double horizontal = 0, double vertical = 0, - }) : left = horizontal, - right = horizontal, - top = vertical, - bottom = vertical; + }) : left = horizontal, + right = horizontal, + top = vertical, + bottom = vertical; /// Create [ComponentEdgeInsets] that has equal value on each side const ComponentEdgeInsets.all(double value) - : left = value, - right = value, - top = value, - bottom = value; + : left = value, + right = value, + top = value, + bottom = value; /// [ComponentEdgeInsets] with no value static const zero = ComponentEdgeInsets.all(0); diff --git a/packages/example_common/pubspec.yaml b/packages/example_common/pubspec.yaml index f25f92104d..26604ea574 100644 --- a/packages/example_common/pubspec.yaml +++ b/packages/example_common/pubspec.yaml @@ -4,10 +4,10 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - meta: ^1.7.0 + meta: ^1.16.0 dev_dependencies: amplify_lints: ">=2.0.2 <2.1.0" diff --git a/packages/example_common/test/example_common_test.dart b/packages/example_common/test/example_common_test.dart index 2425d8baef..75c08de6c5 100644 --- a/packages/example_common/test/example_common_test.dart +++ b/packages/example_common/test/example_common_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('browser') +library; //ignore: deprecated_member_use import 'dart:html'; diff --git a/packages/notifications/push/amplify_push_notifications/CHANGELOG.md b/packages/notifications/push/amplify_push_notifications/CHANGELOG.md index 128585f5b7..5774033c0b 100644 --- a/packages/notifications/push/amplify_push_notifications/CHANGELOG.md +++ b/packages/notifications/push/amplify_push_notifications/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/notifications/push/amplify_push_notifications/example/android/.gitignore b/packages/notifications/push/amplify_push_notifications/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/notifications/push/amplify_push_notifications/example/android/.gitignore +++ b/packages/notifications/push/amplify_push_notifications/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/notifications/push/amplify_push_notifications/example/android/app/build.gradle b/packages/notifications/push/amplify_push_notifications/example/android/app/build.gradle index d616df91cf..e929271886 100644 --- a/packages/notifications/push/amplify_push_notifications/example/android/app/build.gradle +++ b/packages/notifications/push/amplify_push_notifications/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -64,4 +66,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") +} diff --git a/packages/notifications/push/amplify_push_notifications/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/notifications/push/amplify_push_notifications/example/android/gradle/wrapper/gradle-wrapper.properties index 35a3ba37de..8838ba97ba 100644 --- a/packages/notifications/push/amplify_push_notifications/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/notifications/push/amplify_push_notifications/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/packages/notifications/push/amplify_push_notifications/example/android/settings.gradle b/packages/notifications/push/amplify_push_notifications/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/notifications/push/amplify_push_notifications/example/android/settings.gradle +++ b/packages/notifications/push/amplify_push_notifications/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/notifications/push/amplify_push_notifications/example/lib/main.dart b/packages/notifications/push/amplify_push_notifications/example/lib/main.dart index a7256585ad..640824f765 100644 --- a/packages/notifications/push/amplify_push_notifications/example/lib/main.dart +++ b/packages/notifications/push/amplify_push_notifications/example/lib/main.dart @@ -10,11 +10,7 @@ class MainApp extends StatelessWidget { @override Widget build(BuildContext context) { return const MaterialApp( - home: Scaffold( - body: Center( - child: Text('Hello World!'), - ), - ), + home: Scaffold(body: Center(child: Text('Hello World!'))), ); } } diff --git a/packages/notifications/push/amplify_push_notifications/example/pubspec.yaml b/packages/notifications/push/amplify_push_notifications/example/pubspec.yaml index c3c6e26913..5602cb1ed3 100644 --- a/packages/notifications/push/amplify_push_notifications/example/pubspec.yaml +++ b/packages/notifications/push/amplify_push_notifications/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: "none" version: 0.1.0 environment: - flutter: ">=3.27.0" - sdk: ^3.6.0 + flutter: ">=3.29.0" + sdk: ^3.7.0 dependencies: amplify_push_notifications: @@ -14,7 +14,7 @@ dependencies: sdk: flutter dev_dependencies: - amplify_lints: ^3.0.0 + amplify_lints: ^3.1.0 flutter_test: sdk: flutter diff --git a/packages/notifications/push/amplify_push_notifications/lib/src/amplify_push_notifications_impl.dart b/packages/notifications/push/amplify_push_notifications/lib/src/amplify_push_notifications_impl.dart index 9105e011f9..af51068a1d 100644 --- a/packages/notifications/push/amplify_push_notifications/lib/src/amplify_push_notifications_impl.dart +++ b/packages/notifications/push/amplify_push_notifications/lib/src/amplify_push_notifications_impl.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_push_notifications; +library; import 'dart:async'; import 'dart:convert'; @@ -60,8 +60,9 @@ final _needsConfigurationException = ConfigurationError( recoverySuggestion: 'Configure Amplify first.', ); -final AmplifyLogger _logger = AmplifyLogger.category(Category.pushNotifications) - .createChild('AmplifyPushNotification'); +final AmplifyLogger _logger = AmplifyLogger.category( + Category.pushNotifications, +).createChild('AmplifyPushNotification'); /// {@template amplify_push_notifications.amplify_push_notifications} /// Implementation of the Amplify Push Notifications category. @@ -76,8 +77,8 @@ abstract class AmplifyPushNotifications required ServiceProviderClient serviceProviderClient, required Future Function() backgroundProcessor, @visibleForTesting DependencyManager? dependencyManager, - }) : _serviceProviderClient = serviceProviderClient, - _backgroundProcessor = backgroundProcessor { + }) : _serviceProviderClient = serviceProviderClient, + _backgroundProcessor = backgroundProcessor { if (dependencyManager == null) { _dependencyManager = DependencyManager(); _dependencyManager @@ -94,12 +95,14 @@ abstract class AmplifyPushNotifications _dependencyManager = dependencyManager; } - _onTokenReceived = tokenReceivedEventChannel - .receiveBroadcastStream() - .cast>() - .map((payload) { - return payload['token'] as String; - }).distinct(); + _onTokenReceived = + tokenReceivedEventChannel + .receiveBroadcastStream() + .cast>() + .map((payload) { + return payload['token'] as String; + }) + .distinct(); _bufferedTokenStream = StreamQueue(_onTokenReceived); _onForegroundNotificationReceived = foregroundNotificationEventChannel .receiveBroadcastStream() @@ -163,9 +166,7 @@ abstract class AmplifyPushNotifications } @override - void onNotificationReceivedInBackground( - OnRemoteMessageCallback callback, - ) { + void onNotificationReceivedInBackground(OnRemoteMessageCallback callback) { if (os.isAndroid) { final callbackHandle = PluginUtilities.getCallbackHandle(callback); if (callbackHandle == null) { @@ -244,8 +245,9 @@ abstract class AmplifyPushNotifications final rawLaunchNotification = await _hostApi.getLaunchNotification(); if (rawLaunchNotification != null) { - final launchNotification = - PushNotificationMessage.fromJson(rawLaunchNotification.cast()); + final launchNotification = PushNotificationMessage.fromJson( + rawLaunchNotification.cast(), + ); _launchNotification = launchNotification; _flutterApi.onNullifyLaunchNotificationCallback = () { _launchNotification = null; @@ -274,11 +276,7 @@ abstract class AmplifyPushNotifications throw _needsConfigurationException; } return _hostApi.requestPermissions( - PermissionsOptions( - alert: alert, - sound: badge, - badge: sound, - ), + PermissionsOptions(alert: alert, sound: badge, badge: sound), ); } @@ -325,8 +323,9 @@ abstract class AmplifyPushNotifications } Future _registerBackgroundProcessorForAndroid() async { - final callbackHandle = - PluginUtilities.getCallbackHandle(_backgroundProcessor); + final callbackHandle = PluginUtilities.getCallbackHandle( + _backgroundProcessor, + ); if (callbackHandle == null) { throw const PushNotificationException( 'Callback is not a global or static function', @@ -334,17 +333,16 @@ abstract class AmplifyPushNotifications 'Make the function a top-level or a static function.', ); } - await _hostApi.registerCallbackFunction( - callbackHandle.toRawHandle(), - ); + await _hostApi.registerCallbackFunction(callbackHandle.toRawHandle()); _logger.debug('Successfully registered callback'); } Future _registerDeviceWhenConfigure() async { try { await _hostApi.requestInitialToken(); - final deviceToken = - await _bufferedTokenStream.peek.timeout(const Duration(seconds: 5)); + final deviceToken = await _bufferedTokenStream.peek.timeout( + const Duration(seconds: 5), + ); await _registerDevice(deviceToken); } on PlatformException catch (error) { // the error mostly like is the App doesn't have corresponding @@ -366,25 +364,23 @@ abstract class AmplifyPushNotifications void _foregroundNotificationListener( PushNotificationMessage pushNotificationMessage, - ) => - identifyCall( - PushNotificationsCategoryMethod.foregroundMessageReceived, - () => _serviceProviderClient.recordNotificationEvent( - eventType: PinpointEventType.foregroundMessageReceived, - notification: pushNotificationMessage, - ), - ); + ) => identifyCall( + PushNotificationsCategoryMethod.foregroundMessageReceived, + () => _serviceProviderClient.recordNotificationEvent( + eventType: PinpointEventType.foregroundMessageReceived, + notification: pushNotificationMessage, + ), + ); void _notificationOpenedListener( PushNotificationMessage pushNotificationMessage, - ) => - identifyCall( - PushNotificationsCategoryMethod.notificationOpened, - () => _serviceProviderClient.recordNotificationEvent( - eventType: PinpointEventType.notificationOpened, - notification: pushNotificationMessage, - ), - ); + ) => identifyCall( + PushNotificationsCategoryMethod.notificationOpened, + () => _serviceProviderClient.recordNotificationEvent( + eventType: PinpointEventType.notificationOpened, + notification: pushNotificationMessage, + ), + ); void _tokenReceivedListener(String deviceToken) { unawaited(_registerDevice(deviceToken)); @@ -412,40 +408,41 @@ abstract class AmplifyPushNotifications // Initialize listeners _eventChannelListeners ..add( - _onTokenReceived.listen(_tokenReceivedListener) - ..onError((Object error) { - _logger.error( - 'Unexpected error $error received from onTokenReceived event channel.', - ); - }), + _onTokenReceived.listen(_tokenReceivedListener)..onError(( + Object error, + ) { + _logger.error( + 'Unexpected error $error received from onTokenReceived event channel.', + ); + }), ) ..add( - _onForegroundNotificationReceived - .listen(_foregroundNotificationListener) - ..onError((Object error) { - _logger.error( - 'Unexpected error $error received from onNotificationReceivedInForeground event channel.', - ); - }), + _onForegroundNotificationReceived.listen( + _foregroundNotificationListener, + )..onError((Object error) { + _logger.error( + 'Unexpected error $error received from onNotificationReceivedInForeground event channel.', + ); + }), ) ..add( - _onNotificationOpened.listen(_notificationOpenedListener) - ..onError((Object error) { - _logger.error( - 'Unexpected error $error received from onNotificationOpened event channel.', - ); - }), + _onNotificationOpened.listen(_notificationOpenedListener)..onError(( + Object error, + ) { + _logger.error( + 'Unexpected error $error received from onNotificationOpened event channel.', + ); + }), ); } void _recordAnalyticsForLaunchNotification( PushNotificationMessage launchNotification, - ) => - identifyCall( - PushNotificationsCategoryMethod.launchNotification, - () => _serviceProviderClient.recordNotificationEvent( - eventType: PinpointEventType.notificationOpened, - notification: launchNotification, - ), - ); + ) => identifyCall( + PushNotificationsCategoryMethod.launchNotification, + () => _serviceProviderClient.recordNotificationEvent( + eventType: PinpointEventType.notificationOpened, + notification: launchNotification, + ), + ); } diff --git a/packages/notifications/push/amplify_push_notifications/lib/src/native_push_notifications_plugin.g.dart b/packages/notifications/push/amplify_push_notifications/lib/src/native_push_notifications_plugin.g.dart index 6b416d1b3a..a5f31d43d6 100644 --- a/packages/notifications/push/amplify_push_notifications/lib/src/native_push_notifications_plugin.g.dart +++ b/packages/notifications/push/amplify_push_notifications/lib/src/native_push_notifications_plugin.g.dart @@ -18,8 +18,11 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse( - {Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse({ + Object? result, + PlatformException? error, + bool empty = false, +}) { if (empty) { return []; } @@ -50,11 +53,7 @@ class PermissionsOptions { bool badge; Object encode() { - return [ - alert, - sound, - badge, - ]; + return [alert, sound, badge]; } static PermissionsOptions decode(Object result) { @@ -68,23 +67,17 @@ class PermissionsOptions { } class GetPermissionStatusResult { - GetPermissionStatusResult({ - required this.status, - }); + GetPermissionStatusResult({required this.status}); PermissionStatus status; Object encode() { - return [ - status, - ]; + return [status]; } static GetPermissionStatusResult decode(Object result) { result as List; - return GetPermissionStatusResult( - status: result[0]! as PermissionStatus, - ); + return GetPermissionStatusResult(status: result[0]! as PermissionStatus); } } @@ -129,7 +122,8 @@ abstract class PushNotificationsFlutterApi { static const MessageCodec pigeonChannelCodec = _PigeonCodec(); Future onNotificationReceivedInBackground( - Map withPayload); + Map withPayload, + ); void nullifyLaunchNotification(); @@ -141,23 +135,27 @@ abstract class PushNotificationsFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.onNotificationReceivedInBackground$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.onNotificationReceivedInBackground$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { - assert(message != null, - 'Argument for dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.onNotificationReceivedInBackground was null.'); + assert( + message != null, + 'Argument for dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.onNotificationReceivedInBackground was null.', + ); final List args = (message as List?)!; final Map? arg_withPayload = (args[0] as Map?)?.cast(); - assert(arg_withPayload != null, - 'Argument for dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.onNotificationReceivedInBackground was null, expected non-null Map.'); + assert( + arg_withPayload != null, + 'Argument for dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.onNotificationReceivedInBackground was null, expected non-null Map.', + ); try { await api.onNotificationReceivedInBackground(arg_withPayload!); return wrapResponse(empty: true); @@ -165,18 +163,19 @@ abstract class PushNotificationsFlutterApi { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } } { - final BasicMessageChannel< - Object?> pigeonVar_channel = BasicMessageChannel< - Object?>( - 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.nullifyLaunchNotification$messageChannelSuffix', - pigeonChannelCodec, - binaryMessenger: binaryMessenger); + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsFlutterApi.nullifyLaunchNotification$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { @@ -188,7 +187,8 @@ abstract class PushNotificationsFlutterApi { return wrapResponse(error: e); } catch (e) { return wrapResponse( - error: PlatformException(code: 'error', message: e.toString())); + error: PlatformException(code: 'error', message: e.toString()), + ); } }); } @@ -200,11 +200,12 @@ class PushNotificationsHostApi { /// Constructor for [PushNotificationsHostApi]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - PushNotificationsHostApi( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + PushNotificationsHostApi({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -216,10 +217,10 @@ class PushNotificationsHostApi { 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsHostApi.requestInitialToken$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -240,10 +241,10 @@ class PushNotificationsHostApi { 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsHostApi.getPermissionStatus$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -265,17 +266,19 @@ class PushNotificationsHostApi { } Future requestPermissions( - PermissionsOptions withPermissionOptions) async { + PermissionsOptions withPermissionOptions, + ) async { final String pigeonVar_channelName = 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsHostApi.requestPermissions$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([withPermissionOptions]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([withPermissionOptions]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -299,10 +302,10 @@ class PushNotificationsHostApi { 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsHostApi.getLaunchNotification$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -324,10 +327,10 @@ class PushNotificationsHostApi { 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsHostApi.getBadgeCount$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send(null) as List?; if (pigeonVar_replyList == null) { @@ -353,12 +356,13 @@ class PushNotificationsHostApi { 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsHostApi.setBadgeCount$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([withBadgeCount]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([withBadgeCount]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -377,12 +381,13 @@ class PushNotificationsHostApi { 'dev.flutter.pigeon.amplify_push_notifications.PushNotificationsHostApi.registerCallbackFunction$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([callbackHandle]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([callbackHandle]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/packages/notifications/push/amplify_push_notifications/lib/src/push_notifications_flutter_api.dart b/packages/notifications/push/amplify_push_notifications/lib/src/push_notifications_flutter_api.dart index c58dba4a5e..01701d12b8 100644 --- a/packages/notifications/push/amplify_push_notifications/lib/src/push_notifications_flutter_api.dart +++ b/packages/notifications/push/amplify_push_notifications/lib/src/push_notifications_flutter_api.dart @@ -11,8 +11,9 @@ import 'package:amplify_push_notifications/src/native_push_notifications_plugin. import 'package:flutter/widgets.dart'; import 'package:shared_preferences/shared_preferences.dart'; -final AmplifyLogger _logger = AmplifyLogger.category(Category.pushNotifications) - .createChild('AmplifyPushNotificationsFlutterApi'); +final AmplifyLogger _logger = AmplifyLogger.category( + Category.pushNotifications, +).createChild('AmplifyPushNotificationsFlutterApi'); /// {@template amplify_push_notifications.amplify_push_notifications_flutter_api} /// Internal Platform check exposed for testing purposes only. @@ -67,9 +68,7 @@ class AmplifyPushNotificationsFlutterApi /// Set a callback that to be called when [nullifyLaunchNotification] is /// called from the native implementation. /// {@endtemplate} - set onNullifyLaunchNotificationCallback( - void Function() callback, - ) { + set onNullifyLaunchNotificationCallback(void Function() callback) { _onNullifyLaunchNotificationCallback = callback; } @@ -88,9 +87,7 @@ class AmplifyPushNotificationsFlutterApi final prefs = await SharedPreferences.getInstance(); final externalHandle = prefs.getInt(externalHandleKey); if (externalHandle == null) { - _logger.debug( - 'Could not locate stored external handle', - ); + _logger.debug('Could not locate stored external handle'); return; } final externalCallback = PluginUtilities.getCallbackFromHandle( @@ -135,11 +132,11 @@ class AmplifyPushNotificationsFlutterApi if (_serviceProviderClient != null) { await Future.wait( [..._eventQueue, withItem].whereType().map( - (notification) => _serviceProviderClient!.recordNotificationEvent( - eventType: PinpointEventType.backgroundMessageReceived, - notification: notification, - ), - ), + (notification) => _serviceProviderClient!.recordNotificationEvent( + eventType: PinpointEventType.backgroundMessageReceived, + notification: notification, + ), + ), ); _eventQueue.clear(); } diff --git a/packages/notifications/push/amplify_push_notifications/pigeons/native_push_notification_plugin.dart b/packages/notifications/push/amplify_push_notifications/pigeons/native_push_notification_plugin.dart index 8444cfa2c1..641cffeec3 100644 --- a/packages/notifications/push/amplify_push_notifications/pigeons/native_push_notification_plugin.dart +++ b/packages/notifications/push/amplify_push_notifications/pigeons/native_push_notification_plugin.dart @@ -18,7 +18,7 @@ objcSourceOut: 'ios/Classes/PushNotificationsNativePlugin.m', ), ) -library push_notifications_plugin; +library; import 'package:pigeon/pigeon.dart'; @@ -35,9 +35,7 @@ class PermissionsOptions { } class GetPermissionStatusResult { - GetPermissionStatusResult({ - required this.status, - }); + GetPermissionStatusResult({required this.status}); final PermissionStatus status; } diff --git a/packages/notifications/push/amplify_push_notifications/pubspec.yaml b/packages/notifications/push/amplify_push_notifications/pubspec.yaml index cba734a4c7..d17c8e95f4 100644 --- a/packages/notifications/push/amplify_push_notifications/pubspec.yaml +++ b/packages/notifications/push/amplify_push_notifications/pubspec.yaml @@ -1,16 +1,16 @@ name: amplify_push_notifications description: The Amplify Flutter Push Notifications package implementing features agnostic of an AWS Service such as Pinpoint. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: - amplify_core: ">=2.6.1 <2.7.0" - amplify_secure_storage: ">=0.5.8 <0.6.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_secure_storage: ">=0.5.9 <0.6.0" async: ^2.10.0 flutter: sdk: flutter @@ -19,11 +19,11 @@ dependencies: shared_preferences: ^2.0.15 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" - amplify_secure_storage_dart: ">=0.5.4 <0.6.0" + amplify_lints: ">=3.1.2 <3.2.0" + amplify_secure_storage_dart: ">=0.5.5 <0.6.0" amplify_test: path: ../../../test/amplify_test - aws_signature_v4: ">=0.6.4 <0.7.0" + aws_signature_v4: ">=0.6.5 <0.7.0" build_runner: ^2.4.9 build_test: ^2.1.5 flutter_test: diff --git a/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.dart b/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.dart index 3f5bde26f7..22a034c9e0 100644 --- a/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.dart +++ b/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.dart @@ -24,22 +24,20 @@ import 'util.dart'; void testGlobalCallbackFunction(PushNotificationMessage pushMessage) {} Future testBackgroundProcessor() async {} -@GenerateMocks( - [ - PushNotificationsHostApi, - ServiceProviderClient, - AmplifySecureStorage, - AmplifyPushNotificationsFlutterApi, - ], -) +@GenerateMocks([ + PushNotificationsHostApi, + ServiceProviderClient, + AmplifySecureStorage, + AmplifyPushNotificationsFlutterApi, +]) void main() { final testWidgetsFlutterBinding = TestWidgetsFlutterBinding.ensureInitialized(); - final authProviderRepo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - const AmplifyAuthProviderToken(''), - TestIamAuthProvider(), - ); + final authProviderRepo = + AmplifyAuthProviderRepository()..registerAuthProvider( + const AmplifyAuthProviderToken(''), + TestIamAuthProvider(), + ); late AmplifyPushNotifications plugin; final mockServiceProviderClient = MockServiceProviderClient(); final mockPushNotificationsHostApi = MockPushNotificationsHostApi(); @@ -47,12 +45,13 @@ void main() { MockAmplifyPushNotificationsFlutterApi(); final mockAmplifySecureStorage = MockAmplifySecureStorage(); - final dependencyManager = DependencyManager() - ..addInstance( - mockPushNotificationsNativeToFlutterApi, - ) - ..addInstance(mockPushNotificationsHostApi) - ..addInstance(mockAmplifySecureStorage); + final dependencyManager = + DependencyManager() + ..addInstance( + mockPushNotificationsNativeToFlutterApi, + ) + ..addInstance(mockPushNotificationsHostApi) + ..addInstance(mockAmplifySecureStorage); final config = AmplifyOutputs.fromJson( jsonDecode(amplifyConfig) as Map, @@ -76,11 +75,12 @@ void main() { Future.delayed(const Duration(microseconds: 1), () async { await testWidgetsFlutterBinding.defaultBinaryMessenger .handlePlatformMessage( - tokenReceivedEventChannel.name, - tokenReceivedEventChannel.codec - .encodeSuccessEnvelope({'token': '123'}), - (_) {}, - ); + tokenReceivedEventChannel.name, + tokenReceivedEventChannel.codec.encodeSuccessEnvelope( + {'token': '123'}, + ), + (_) {}, + ); }); }); @@ -90,9 +90,9 @@ void main() { }); test('should configure correctly', () async { - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); await plugin.configure( authProviderRepo: authProviderRepo, @@ -109,54 +109,53 @@ void main() { }); test( - 'should fire both internal one time token and external token received listener', - () async { - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); + 'should fire both internal one time token and external token received listener', + () async { + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: config, + ); - verify(mockPushNotificationsHostApi.requestInitialToken()).called(1); - verify(mockServiceProviderClient.registerDevice('123')).called(1); + verify(mockPushNotificationsHostApi.requestInitialToken()).called(1); + verify(mockServiceProviderClient.registerDevice('123')).called(1); - void tokenHandler(String token) { - expect(token, '123'); - } + void tokenHandler(String token) { + expect(token, '123'); + } - plugin.onTokenReceived.listen(tokenHandler); - }); + plugin.onTokenReceived.listen(tokenHandler); + }, + ); test('should register background processor on Android', () async { - await overrideOperatingSystem( - OperatingSystem('android', ''), - () async { - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); - plugin = TestAmplifyPushNotifications( - serviceProviderClient: mockServiceProviderClient, - backgroundProcessor: testBackgroundProcessor, - dependencyManager: dependencyManager, - ); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ); + await overrideOperatingSystem(OperatingSystem('android', ''), () async { + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); + plugin = TestAmplifyPushNotifications( + serviceProviderClient: mockServiceProviderClient, + backgroundProcessor: testBackgroundProcessor, + dependencyManager: dependencyManager, + ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: config, + ); - verify(mockPushNotificationsHostApi.registerCallbackFunction(any)) - .called(1); - }, - ); + verify( + mockPushNotificationsHostApi.registerCallbackFunction(any), + ).called(1); + }); }); test('should invoke registered event listeners', () async { - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => null, - ); + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => null); plugin = TestAmplifyPushNotifications( serviceProviderClient: mockServiceProviderClient, @@ -170,11 +169,12 @@ void main() { await testWidgetsFlutterBinding.defaultBinaryMessenger .handlePlatformMessage( - notificationOpenedEventChannel.name, - notificationOpenedEventChannel.codec - .encodeSuccessEnvelope(standardAndroidPushMessage), - (_) {}, - ); + notificationOpenedEventChannel.name, + notificationOpenedEventChannel.codec.encodeSuccessEnvelope( + standardAndroidPushMessage, + ), + (_) {}, + ); verify( mockServiceProviderClient.recordNotificationEvent( @@ -185,11 +185,12 @@ void main() { await testWidgetsFlutterBinding.defaultBinaryMessenger .handlePlatformMessage( - foregroundNotificationEventChannel.name, - foregroundNotificationEventChannel.codec - .encodeSuccessEnvelope(standardAndroidPushMessage), - (_) {}, - ); + foregroundNotificationEventChannel.name, + foregroundNotificationEventChannel.codec.encodeSuccessEnvelope( + standardAndroidPushMessage, + ), + (_) {}, + ); verify( mockServiceProviderClient.recordNotificationEvent( @@ -200,25 +201,27 @@ void main() { }); }); group('Config failure cases', () { - test('should throw exception when configuring if there is no appId present', - () async { - final config = AmplifyOutputs.fromJson( - jsonDecode(amplifyConfigNoPushNotification) as Map, - ); - expect( - () async => plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ), - throwsA( - isA().having( - (e) => e.message, - 'No config', - contains('No Pinpoint plugin'), + test( + 'should throw exception when configuring if there is no appId present', + () async { + final config = AmplifyOutputs.fromJson( + jsonDecode(amplifyConfigNoPushNotification) as Map, + ); + expect( + () async => plugin.configure( + authProviderRepo: authProviderRepo, + config: config, ), - ), - ); - }); + throwsA( + isA().having( + (e) => e.message, + 'No config', + contains('No Pinpoint plugin'), + ), + ), + ); + }, + ); test('should throw PushNotificationException if not configured', () async { expect( @@ -253,73 +256,75 @@ void main() { throwsA(isA()), ); - overrideOperatingSystem( - OperatingSystem('ios', ''), - () { - expect( - () async => plugin.setBadgeCount(42), - throwsA(isA()), - ); - expect( - () async => plugin.getBadgeCount(), - throwsA(isA()), - ); - }, - ); + overrideOperatingSystem(OperatingSystem('ios', ''), () { + expect( + () async => plugin.setBadgeCount(42), + throwsA(isA()), + ); + expect( + () async => plugin.getBadgeCount(), + throwsA(isA()), + ); + }); }); - test('configure should log an error if timed out awaiting for device token', - () async { - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); - final loggerPlugin = InMemoryLogger(); - AmplifyLogger.category(Category.pushNotifications) - .registerPlugin(loggerPlugin); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ); - expect(loggerPlugin.logs.length, 1); - expect(loggerPlugin.logs.first.level, LogLevel.error); - }); - }); - test('should fail configure when registering device is unsuccessful', + test( + 'configure should log an error if timed out awaiting for device token', () async { - plugin = TestAmplifyPushNotifications( - serviceProviderClient: mockServiceProviderClient, - backgroundProcessor: () async => {}, - dependencyManager: dependencyManager, - ); - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); + final loggerPlugin = InMemoryLogger(); + AmplifyLogger.category( + Category.pushNotifications, + ).registerPlugin(loggerPlugin); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: config, + ); + expect(loggerPlugin.logs.length, 1); + expect(loggerPlugin.logs.first.level, LogLevel.error); + }, ); + }); + test( + 'should fail configure when registering device is unsuccessful', + () async { + plugin = TestAmplifyPushNotifications( + serviceProviderClient: mockServiceProviderClient, + backgroundProcessor: () async => {}, + dependencyManager: dependencyManager, + ); + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); - Future.delayed(const Duration(microseconds: 1), () async { - await testWidgetsFlutterBinding.defaultBinaryMessenger - .handlePlatformMessage( - tokenReceivedEventChannel.name, - tokenReceivedEventChannel.codec.encodeErrorEnvelope( - code: 'test', - message: 'error', + Future.delayed(const Duration(microseconds: 1), () async { + await testWidgetsFlutterBinding.defaultBinaryMessenger + .handlePlatformMessage( + tokenReceivedEventChannel.name, + tokenReceivedEventChannel.codec.encodeErrorEnvelope( + code: 'test', + message: 'error', + ), + (_) {}, + ); + }); + expect( + () async => plugin.configure( + authProviderRepo: authProviderRepo, + config: config, ), - (_) {}, - ); - }); - expect( - () async => plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ), - throwsA( - isA().having( - (e) => e.message, - 'token message', - contains('device token'), + throwsA( + isA().having( + (e) => e.message, + 'token message', + contains('device token'), + ), ), - ), - ); - }); + ); + }, + ); group('Permission APIs', () { setUp(() async { @@ -329,17 +334,18 @@ void main() { dependencyManager: dependencyManager, ); - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); Future.delayed(const Duration(microseconds: 1), () async { await testWidgetsFlutterBinding.defaultBinaryMessenger .handlePlatformMessage( - tokenReceivedEventChannel.name, - tokenReceivedEventChannel.codec - .encodeSuccessEnvelope({'token': '123'}), - (_) {}, - ); + tokenReceivedEventChannel.name, + tokenReceivedEventChannel.codec.encodeSuccessEnvelope( + {'token': '123'}, + ), + (_) {}, + ); }); await plugin.configure( authProviderRepo: authProviderRepo, @@ -353,85 +359,67 @@ void main() { ), ); final res = await plugin.getPermissionStatus(); - expect( - res, - PushNotificationPermissionStatus.granted, - ); + expect(res, PushNotificationPermissionStatus.granted); }); test('requestPermissions returns a permission status', () async { - when(mockPushNotificationsHostApi.requestPermissions(any)).thenAnswer( - (_) async => true, - ); + when( + mockPushNotificationsHostApi.requestPermissions(any), + ).thenAnswer((_) async => true); final res = await plugin.requestPermissions(); - expect( - res, - isTrue, - ); + expect(res, isTrue); }); }); group('Badge count APIs', () { setUp(() async { - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); Future.delayed(const Duration(microseconds: 1), () async { await testWidgetsFlutterBinding.defaultBinaryMessenger .handlePlatformMessage( - tokenReceivedEventChannel.name, - tokenReceivedEventChannel.codec - .encodeSuccessEnvelope({'token': '123'}), - (_) {}, - ); + tokenReceivedEventChannel.name, + tokenReceivedEventChannel.codec.encodeSuccessEnvelope( + {'token': '123'}, + ), + (_) {}, + ); }); }); test('getBadgeCount returns a badge count', () async { - await overrideOperatingSystem( - OperatingSystem('ios', ''), - () async { - plugin = TestAmplifyPushNotifications( - serviceProviderClient: mockServiceProviderClient, - backgroundProcessor: () async => {}, - dependencyManager: dependencyManager, - ); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ); - when(mockPushNotificationsHostApi.getBadgeCount()).thenAnswer( - (_) => Future( - () => 42, - ), - ); - final res = await plugin.getBadgeCount(); - expect( - res, - 42, - ); - }, - ); + await overrideOperatingSystem(OperatingSystem('ios', ''), () async { + plugin = TestAmplifyPushNotifications( + serviceProviderClient: mockServiceProviderClient, + backgroundProcessor: () async => {}, + dependencyManager: dependencyManager, + ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: config, + ); + when( + mockPushNotificationsHostApi.getBadgeCount(), + ).thenAnswer((_) => Future(() => 42)); + final res = await plugin.getBadgeCount(); + expect(res, 42); + }); }); test('setBadgeCount calls the native layer to set', () async { - await overrideOperatingSystem( - OperatingSystem('ios', ''), - () async { - plugin = TestAmplifyPushNotifications( - serviceProviderClient: mockServiceProviderClient, - backgroundProcessor: () async => {}, - dependencyManager: dependencyManager, - ); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ); - plugin.setBadgeCount(42); - verify( - mockPushNotificationsHostApi.setBadgeCount(42), - ).called(1); - }, - ); + await overrideOperatingSystem(OperatingSystem('ios', ''), () async { + plugin = TestAmplifyPushNotifications( + serviceProviderClient: mockServiceProviderClient, + backgroundProcessor: () async => {}, + dependencyManager: dependencyManager, + ); + await plugin.configure( + authProviderRepo: authProviderRepo, + config: config, + ); + plugin.setBadgeCount(42); + verify(mockPushNotificationsHostApi.setBadgeCount(42)).called(1); + }); }); }); @@ -443,18 +431,19 @@ void main() { dependencyManager: dependencyManager, ); - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); Future.delayed(const Duration(microseconds: 1), () async { await testWidgetsFlutterBinding.defaultBinaryMessenger .handlePlatformMessage( - tokenReceivedEventChannel.name, - tokenReceivedEventChannel.codec - .encodeSuccessEnvelope({'token': '123'}), - (_) {}, - ); + tokenReceivedEventChannel.name, + tokenReceivedEventChannel.codec.encodeSuccessEnvelope( + {'token': '123'}, + ), + (_) {}, + ); }); await plugin.configure( authProviderRepo: authProviderRepo, @@ -484,11 +473,9 @@ void main() { ); }); test( - 'onNotificationReceivedInBackground throws an Exception when the given callback function is not top-level or static', - () async { - overrideOperatingSystem( - OperatingSystem('android', ''), - () { + 'onNotificationReceivedInBackground throws an Exception when the given callback function is not top-level or static', + () async { + overrideOperatingSystem(OperatingSystem('android', ''), () { plugin = TestAmplifyPushNotifications( serviceProviderClient: mockServiceProviderClient, backgroundProcessor: () async => {}, @@ -505,73 +492,62 @@ void main() { ), ), ); - }, - ); - }); + }); + }, + ); }); test( - 'onNotificationReceivedInBackground should register a top-level or static callback function', - () async { - await overrideOperatingSystem( - OperatingSystem('android', ''), - () async { + 'onNotificationReceivedInBackground should register a top-level or static callback function', + () async { + await overrideOperatingSystem(OperatingSystem('android', ''), () async { SharedPreferences.setMockInitialValues({}); final pref = await SharedPreferences.getInstance(); plugin = TestAmplifyPushNotifications( serviceProviderClient: mockServiceProviderClient, backgroundProcessor: () async => {}, - )..onNotificationReceivedInBackground( - testGlobalCallbackFunction, - ); + )..onNotificationReceivedInBackground(testGlobalCallbackFunction); await Future.delayed(const Duration(microseconds: 1), () {}); expect(pref.containsKey(externalHandleKey), isTrue); - }, - ); - }); + }); + }, + ); - test('onNotificationReceivedInBackground should accept the callback on iOS', - () async { - overrideOperatingSystem( - OperatingSystem('ios', ''), - () { + test( + 'onNotificationReceivedInBackground should accept the callback on iOS', + () async { + overrideOperatingSystem(OperatingSystem('ios', ''), () { void localiOScallback(testGlobalCallbackFunction) {} plugin = TestAmplifyPushNotifications( serviceProviderClient: mockServiceProviderClient, backgroundProcessor: () async => {}, dependencyManager: dependencyManager, - )..onNotificationReceivedInBackground( - localiOScallback, - ); + )..onNotificationReceivedInBackground(localiOScallback); verify( mockPushNotificationsNativeToFlutterApi - .registerOnReceivedInBackgroundCallback( - localiOScallback, - ), + .registerOnReceivedInBackgroundCallback(localiOScallback), ).called(1); - }, - ); - }); + }); + }, + ); test('get launchNotification is consumable', () async { Future.delayed(const Duration(microseconds: 1), () async { await testWidgetsFlutterBinding.defaultBinaryMessenger .handlePlatformMessage( - tokenReceivedEventChannel.name, - tokenReceivedEventChannel.codec - .encodeSuccessEnvelope({'token': '123'}), - (_) {}, - ); + tokenReceivedEventChannel.name, + tokenReceivedEventChannel.codec.encodeSuccessEnvelope( + {'token': '123'}, + ), + (_) {}, + ); }); - when(mockPushNotificationsHostApi.getLaunchNotification()).thenAnswer( - (_) async => standardAndroidPushMessage.cast(), - ); + when( + mockPushNotificationsHostApi.getLaunchNotification(), + ).thenAnswer((_) async => standardAndroidPushMessage.cast()); - await plugin.configure( - authProviderRepo: authProviderRepo, - config: config, - ); + await plugin.configure(authProviderRepo: authProviderRepo, config: config); expect( plugin.launchNotification?.title, @@ -581,10 +557,7 @@ void main() { ).title, ), ); - expect( - plugin.launchNotification, - isNull, - ); + expect(plugin.launchNotification, isNull); }); } diff --git a/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.mocks.dart b/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.mocks.dart index a484147ca5..02aa13f120 100644 --- a/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.mocks.dart +++ b/packages/notifications/push/amplify_push_notifications/test/amplify_push_notifications_impl_test.mocks.dart @@ -34,34 +34,19 @@ import 'package:mockito/src/dummies.dart' as _i8; class _FakeGetPermissionStatusResult_0 extends _i1.SmartFake implements _i2.GetPermissionStatusResult { - _FakeGetPermissionStatusResult_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeGetPermissionStatusResult_0(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeAmplifySecureStorageConfig_1 extends _i1.SmartFake implements _i3.AmplifySecureStorageConfig { - _FakeAmplifySecureStorageConfig_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeAmplifySecureStorageConfig_1(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } class _FakeAWSLogger_2 extends _i1.SmartFake implements _i4.AWSLogger { - _FakeAWSLogger_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); + _FakeAWSLogger_2(Object parent, Invocation parentInvocation) + : super(parent, parentInvocation); } /// A class which mocks [PushNotificationsHostApi]. @@ -74,83 +59,70 @@ class MockPushNotificationsHostApi extends _i1.Mock } @override - _i5.Future requestInitialToken() => (super.noSuchMethod( - Invocation.method( - #requestInitialToken, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future requestInitialToken() => + (super.noSuchMethod( + Invocation.method(#requestInitialToken, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future<_i2.GetPermissionStatusResult> getPermissionStatus() => (super.noSuchMethod( - Invocation.method( - #getPermissionStatus, - [], - ), - returnValue: _i5.Future<_i2.GetPermissionStatusResult>.value( - _FakeGetPermissionStatusResult_0( - this, - Invocation.method( - #getPermissionStatus, - [], - ), - )), - ) as _i5.Future<_i2.GetPermissionStatusResult>); + Invocation.method(#getPermissionStatus, []), + returnValue: _i5.Future<_i2.GetPermissionStatusResult>.value( + _FakeGetPermissionStatusResult_0( + this, + Invocation.method(#getPermissionStatus, []), + ), + ), + ) + as _i5.Future<_i2.GetPermissionStatusResult>); @override _i5.Future requestPermissions( - _i2.PermissionsOptions? arg_withPermissionOptions) => + _i2.PermissionsOptions? arg_withPermissionOptions, + ) => (super.noSuchMethod( - Invocation.method( - #requestPermissions, - [arg_withPermissionOptions], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); + Invocation.method(#requestPermissions, [arg_withPermissionOptions]), + returnValue: _i5.Future.value(false), + ) + as _i5.Future); @override _i5.Future?> getLaunchNotification() => (super.noSuchMethod( - Invocation.method( - #getLaunchNotification, - [], - ), - returnValue: _i5.Future?>.value(), - ) as _i5.Future?>); + Invocation.method(#getLaunchNotification, []), + returnValue: _i5.Future?>.value(), + ) + as _i5.Future?>); @override - _i5.Future getBadgeCount() => (super.noSuchMethod( - Invocation.method( - #getBadgeCount, - [], - ), - returnValue: _i5.Future.value(0), - ) as _i5.Future); + _i5.Future getBadgeCount() => + (super.noSuchMethod( + Invocation.method(#getBadgeCount, []), + returnValue: _i5.Future.value(0), + ) + as _i5.Future); @override _i5.Future setBadgeCount(int? arg_withBadgeCount) => (super.noSuchMethod( - Invocation.method( - #setBadgeCount, - [arg_withBadgeCount], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#setBadgeCount, [arg_withBadgeCount]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future registerCallbackFunction(int? arg_callbackHandle) => (super.noSuchMethod( - Invocation.method( - #registerCallbackFunction, - [arg_callbackHandle], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#registerCallbackFunction, [arg_callbackHandle]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } /// A class which mocks [ServiceProviderClient]. @@ -168,27 +140,23 @@ class MockServiceProviderClient extends _i1.Mock required _i4.AmplifyAuthProviderRepository? authProviderRepo, }) => (super.noSuchMethod( - Invocation.method( - #init, - [], - { - #config: config, - #authProviderRepo: authProviderRepo, - }, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#init, [], { + #config: config, + #authProviderRepo: authProviderRepo, + }), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future registerDevice(String? deviceToken) => (super.noSuchMethod( - Invocation.method( - #registerDevice, - [deviceToken], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future registerDevice(String? deviceToken) => + (super.noSuchMethod( + Invocation.method(#registerDevice, [deviceToken]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future recordNotificationEvent({ @@ -196,17 +164,14 @@ class MockServiceProviderClient extends _i1.Mock required _i4.PushNotificationMessage? notification, }) => (super.noSuchMethod( - Invocation.method( - #recordNotificationEvent, - [], - { - #eventType: eventType, - #notification: notification, - }, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#recordNotificationEvent, [], { + #eventType: eventType, + #notification: notification, + }), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override _i5.Future identifyUser({ @@ -214,17 +179,14 @@ class MockServiceProviderClient extends _i1.Mock _i4.UserProfile? userProfile, }) => (super.noSuchMethod( - Invocation.method( - #identifyUser, - [], - { - #userId: userId, - #userProfile: userProfile, - }, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#identifyUser, [], { + #userId: userId, + #userProfile: userProfile, + }), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } /// A class which mocks [AmplifySecureStorage]. @@ -237,80 +199,69 @@ class MockAmplifySecureStorage extends _i1.Mock } @override - _i3.AmplifySecureStorageConfig get config => (super.noSuchMethod( - Invocation.getter(#config), - returnValue: _FakeAmplifySecureStorageConfig_1( - this, - Invocation.getter(#config), - ), - ) as _i3.AmplifySecureStorageConfig); + _i3.AmplifySecureStorageConfig get config => + (super.noSuchMethod( + Invocation.getter(#config), + returnValue: _FakeAmplifySecureStorageConfig_1( + this, + Invocation.getter(#config), + ), + ) + as _i3.AmplifySecureStorageConfig); @override - String get runtimeTypeName => (super.noSuchMethod( - Invocation.getter(#runtimeTypeName), - returnValue: _i8.dummyValue( - this, - Invocation.getter(#runtimeTypeName), - ), - ) as String); + String get runtimeTypeName => + (super.noSuchMethod( + Invocation.getter(#runtimeTypeName), + returnValue: _i8.dummyValue( + this, + Invocation.getter(#runtimeTypeName), + ), + ) + as String); @override - _i4.AWSLogger get logger => (super.noSuchMethod( - Invocation.getter(#logger), - returnValue: _FakeAWSLogger_2( - this, - Invocation.getter(#logger), - ), - ) as _i4.AWSLogger); + _i4.AWSLogger get logger => + (super.noSuchMethod( + Invocation.getter(#logger), + returnValue: _FakeAWSLogger_2(this, Invocation.getter(#logger)), + ) + as _i4.AWSLogger); @override - _i5.Future delete({required String? key}) => (super.noSuchMethod( - Invocation.method( - #delete, - [], - {#key: key}, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future delete({required String? key}) => + (super.noSuchMethod( + Invocation.method(#delete, [], {#key: key}), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future read({required String? key}) => (super.noSuchMethod( - Invocation.method( - #read, - [], - {#key: key}, - ), - returnValue: _i5.Future.value(), - ) as _i5.Future); + _i5.Future read({required String? key}) => + (super.noSuchMethod( + Invocation.method(#read, [], {#key: key}), + returnValue: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future write({ - required String? key, - required String? value, - }) => + _i5.Future write({required String? key, required String? value}) => (super.noSuchMethod( - Invocation.method( - #write, - [], - { - #key: key, - #value: value, - }, - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#write, [], {#key: key, #value: value}), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override - _i5.Future removeAll() => (super.noSuchMethod( - Invocation.method( - #removeAll, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + _i5.Future removeAll() => + (super.noSuchMethod( + Invocation.method(#removeAll, []), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); } /// A class which mocks [AmplifyPushNotificationsFlutterApi]. @@ -323,60 +274,49 @@ class MockAmplifyPushNotificationsFlutterApi extends _i1.Mock } @override - List<_i4.PushNotificationMessage> get eventQueue => (super.noSuchMethod( - Invocation.getter(#eventQueue), - returnValue: <_i4.PushNotificationMessage>[], - ) as List<_i4.PushNotificationMessage>); + List<_i4.PushNotificationMessage> get eventQueue => + (super.noSuchMethod( + Invocation.getter(#eventQueue), + returnValue: <_i4.PushNotificationMessage>[], + ) + as List<_i4.PushNotificationMessage>); @override set onNullifyLaunchNotificationCallback(void Function()? callback) => super.noSuchMethod( - Invocation.setter( - #onNullifyLaunchNotificationCallback, - callback, - ), + Invocation.setter(#onNullifyLaunchNotificationCallback, callback), returnValueForMissingStub: null, ); @override set serviceProviderClient(_i4.ServiceProviderClient? serviceProviderClient) => super.noSuchMethod( - Invocation.setter( - #serviceProviderClient, - serviceProviderClient, - ), + Invocation.setter(#serviceProviderClient, serviceProviderClient), returnValueForMissingStub: null, ); @override void registerOnReceivedInBackgroundCallback( - _i4.OnRemoteMessageCallback? callback) => - super.noSuchMethod( - Invocation.method( - #registerOnReceivedInBackgroundCallback, - [callback], - ), - returnValueForMissingStub: null, - ); + _i4.OnRemoteMessageCallback? callback, + ) => super.noSuchMethod( + Invocation.method(#registerOnReceivedInBackgroundCallback, [callback]), + returnValueForMissingStub: null, + ); @override _i5.Future onNotificationReceivedInBackground( - Map? payload) => + Map? payload, + ) => (super.noSuchMethod( - Invocation.method( - #onNotificationReceivedInBackground, - [payload], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); + Invocation.method(#onNotificationReceivedInBackground, [payload]), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) + as _i5.Future); @override void nullifyLaunchNotification() => super.noSuchMethod( - Invocation.method( - #nullifyLaunchNotification, - [], - ), - returnValueForMissingStub: null, - ); + Invocation.method(#nullifyLaunchNotification, []), + returnValueForMissingStub: null, + ); } diff --git a/packages/notifications/push/amplify_push_notifications/test/push_notification_flutter_api_test.dart b/packages/notifications/push/amplify_push_notifications/test/push_notification_flutter_api_test.dart index 9f91f710a3..b831a21fa1 100644 --- a/packages/notifications/push/amplify_push_notifications/test/push_notification_flutter_api_test.dart +++ b/packages/notifications/push/amplify_push_notifications/test/push_notification_flutter_api_test.dart @@ -17,9 +17,7 @@ import 'test_data/test_amplify_push_notifications_impl.dart'; void testGlobalCallbackFunction(PushNotificationMessage pushMessage) { expect( pushMessage.title, - PushNotificationMessage.fromJson( - standardAndroidPushMessage.cast(), - ).title, + PushNotificationMessage.fromJson(standardAndroidPushMessage.cast()).title, ); } @@ -51,9 +49,7 @@ void main() { eventType: anyNamed('eventType'), notification: anyNamed('notification'), ), - ).thenAnswer( - (_) async {}, - ); + ).thenAnswer((_) async {}); flutterApi.serviceProviderClient = mockServiceClient; await Future.delayed(const Duration(microseconds: 1), () {}); expect(flutterApi.eventQueue.length, 0); @@ -78,18 +74,14 @@ void main() { }); test( - 'should invoke the top-level or static external callback function on Android', - () async { - await overrideOperatingSystem( - OperatingSystem('android', ''), - () async { + 'should invoke the top-level or static external callback function on Android', + () async { + await overrideOperatingSystem(OperatingSystem('android', ''), () async { final pref = await SharedPreferences.getInstance(); TestAmplifyPushNotifications( serviceProviderClient: MockServiceProviderClient(), backgroundProcessor: () async => {}, - ).onNotificationReceivedInBackground( - testGlobalCallbackFunction, - ); + ).onNotificationReceivedInBackground(testGlobalCallbackFunction); // TODO(Samaritan1011001): Remove the wait time here by using expectAsync and completer if possible await Future.delayed(const Duration(microseconds: 1), () {}); @@ -98,7 +90,7 @@ void main() { await flutterApi.onNotificationReceivedInBackground( standardAndroidPushMessage.cast(), ); - }, - ); - }); + }); + }, + ); } diff --git a/packages/notifications/push/amplify_push_notifications/test/push_notification_message_test.dart b/packages/notifications/push/amplify_push_notifications/test/push_notification_message_test.dart index b64191f8f8..0a65d148f0 100644 --- a/packages/notifications/push/amplify_push_notifications/test/push_notification_message_test.dart +++ b/packages/notifications/push/amplify_push_notifications/test/push_notification_message_test.dart @@ -9,29 +9,30 @@ import 'test_data/fake_notification_messges.dart'; void main() { group('PushNotificationMessage.fromJson', () { test( - 'should parse simple standard Message with title, body and default channelId', - () { - final parsedAndroidMessage = PushNotificationMessage.fromJson( - standardAndroidPushMessage.cast(), - ); - expect(parsedAndroidMessage.title, 'TITTLE'); - expect(parsedAndroidMessage.body, 'BODY'); - expect( - parsedAndroidMessage.fcmOptions?.channelId, - 'PINPOINT.NOTIFICATION', - ); + 'should parse simple standard Message with title, body and default channelId', + () { + final parsedAndroidMessage = PushNotificationMessage.fromJson( + standardAndroidPushMessage.cast(), + ); + expect(parsedAndroidMessage.title, 'TITTLE'); + expect(parsedAndroidMessage.body, 'BODY'); + expect( + parsedAndroidMessage.fcmOptions?.channelId, + 'PINPOINT.NOTIFICATION', + ); - final parsedSimpleiOSMessage = PushNotificationMessage.fromJson( - simpleAlertiOSMessage.cast(), - ); - expect(parsedSimpleiOSMessage.title, 'Hello, world'); + final parsedSimpleiOSMessage = PushNotificationMessage.fromJson( + simpleAlertiOSMessage.cast(), + ); + expect(parsedSimpleiOSMessage.title, 'Hello, world'); - final parsediOSMessage = PushNotificationMessage.fromJson( - standardiOSMessage.cast(), - ); - expect(parsediOSMessage.title, 'TITTLE'); - expect(parsediOSMessage.body, 'BODY'); - }); + final parsediOSMessage = PushNotificationMessage.fromJson( + standardiOSMessage.cast(), + ); + expect(parsediOSMessage.title, 'TITTLE'); + expect(parsediOSMessage.body, 'BODY'); + }, + ); test('should parse url and deeplink', () { final parsedAndroidMessage = PushNotificationMessage.fromJson( diff --git a/packages/notifications/push/amplify_push_notifications/test/test_data/fake_notification_messges.dart b/packages/notifications/push/amplify_push_notifications/test/test_data/fake_notification_messges.dart index 81707a1fc9..271b3cf5bb 100644 --- a/packages/notifications/push/amplify_push_notifications/test/test_data/fake_notification_messges.dart +++ b/packages/notifications/push/amplify_push_notifications/test/test_data/fake_notification_messges.dart @@ -3,20 +3,18 @@ /// Erase types on maps to mimic how maps come back from the platform. Map _eraseTypes(Map map) => { - for (final MapEntry(:key, :value) in map.entries) - key: switch (value) { - final Map map => _eraseTypes(map), - _ => value, - }, - }; + for (final MapEntry(:key, :value) in map.entries) + key: switch (value) { + final Map map => _eraseTypes(map), + _ => value, + }, +}; final standardAndroidPushMessage = _eraseTypes({ 'title': 'TITTLE', 'body': 'BODY', 'imageUrl': null, - 'fcmOptions': { - 'channelId': 'PINPOINT.NOTIFICATION', - }, + 'fcmOptions': {'channelId': 'PINPOINT.NOTIFICATION'}, 'action': {'openApp': true, 'url': null, 'deeplink': null}, 'rawData': { 'pinpoint.openApp': true, @@ -31,9 +29,7 @@ final urlsAndroidMessage = _eraseTypes({ 'title': 'TITTLE', 'body': 'BODY', 'imageUrl': null, - 'fcmOptions': { - 'channelId': 'PINPOINT.NOTIFICATION', - }, + 'fcmOptions': {'channelId': 'PINPOINT.NOTIFICATION'}, 'action': {'openApp': null, 'url': 'URL', 'deeplink': 'DEEPLINK'}, 'rawData': { 'pinpoint.url': 'URL', @@ -48,9 +44,7 @@ final imageUrlAndroidPushMessage = _eraseTypes({ 'title': 'TITTLE', 'body': 'BODY', 'imageUrl': 'TEST_URL', - 'fcmOptions': { - 'channelId': 'PINPOINT.NOTIFICATION', - }, + 'fcmOptions': {'channelId': 'PINPOINT.NOTIFICATION'}, 'action': {'openApp': true, 'url': null, 'deeplink': null}, 'rawData': { 'pinpoint.openApp': true, @@ -70,15 +64,11 @@ final standardiOSMessage = _eraseTypes({ }); final simpleAlertiOSMessage = _eraseTypes({ - 'aps': { - 'alert': 'Hello, world', - }, + 'aps': {'alert': 'Hello, world'}, }); final imageUrliOSMessage = _eraseTypes({ - 'data': { - 'media-url': 'TEST_URL', - }, + 'data': {'media-url': 'TEST_URL'}, 'aps': { 'alert': {'title': 'TITTLE', 'body': 'BODY'}, 'mutable-content': 0, diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/CHANGELOG.md b/packages/notifications/push/amplify_push_notifications_pinpoint/CHANGELOG.md index c47cc2f583..769cdbcf3c 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/CHANGELOG.md +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/.gitignore b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/.gitignore +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/app/build.gradle b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/app/build.gradle index b681f86cac..21ac430290 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/app/build.gradle +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/app/build.gradle @@ -1,3 +1,11 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" + + id 'com.google.gms.google-services' +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +14,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,16 +24,14 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace 'com.amazonaws.amplify.example' compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -68,6 +69,5 @@ flutter { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") } -apply plugin: 'com.google.gms.google-services' diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/build.gradle b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/build.gradle index 1b31755bff..bc157bd1a1 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/build.gradle +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/build.gradle @@ -1,17 +1,3 @@ -buildscript { - ext.kotlin_version = '1.9.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.google.gms:google-services:4.3.14' - } -} - allprojects { repositories { google() diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/settings.gradle b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/settings.gradle index 44e62bcf06..7a29072ea0 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/settings.gradle +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/example/android/settings.gradle @@ -1,11 +1,27 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.9.10" apply false + + id "com.google.gms.google-services" version "4.3.14" apply false +} + +include ":app" diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/example/lib/main.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/example/lib/main.dart index 6f123acaf2..c9fc786d85 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/example/lib/main.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/example/lib/main.dart @@ -37,8 +37,9 @@ void main() async { }); // Required to call this after Amplify.configure. - Amplify.Notifications.Push.onNotificationReceivedInForeground - .listen((event) { + Amplify.Notifications.Push.onNotificationReceivedInForeground.listen(( + event, + ) { print('🚀 onNotificationReceivedInForeground $event'); }); @@ -84,17 +85,14 @@ class _MyAppState extends State { } Widget headerText(String title) => Padding( - padding: const EdgeInsets.only(top: 16), - child: Center( - child: Text( - title, - style: const TextStyle( - fontSize: 18, - fontWeight: FontWeight.bold, - ), - ), - ), - ); + padding: const EdgeInsets.only(top: 16), + child: Center( + child: Text( + title, + style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold), + ), + ), + ); @override Widget build(BuildContext context) { @@ -130,12 +128,8 @@ class _MyAppState extends State { child: const Text('requestPermissions'), ), if (requestPermissionsResult != null) - Text( - 'Requesting permission result: $requestPermissionsResult', - ), - const Divider( - height: 20, - ), + Text('Requesting permission result: $requestPermissionsResult'), + const Divider(height: 20), headerText('Analytics APIs'), ElevatedButton( onPressed: () async { @@ -146,9 +140,7 @@ class _MyAppState extends State { }, child: const Text('identifyUser'), ), - const Divider( - height: 20, - ), + const Divider(height: 20), headerText('Notification Handling APIs'), ElevatedButton( onPressed: getLaunchNotification, diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/example/pubspec.yaml b/packages/notifications/push/amplify_push_notifications_pinpoint/example/pubspec.yaml index 66af1f073d..35be2bda9f 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/example/pubspec.yaml +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the amplify_push_notifications_pinpoint plu publish_to: "none" # Remove this line if you wish to publish to pub.dev environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_auth_cognito: ">=1.0.0-next.8 <1.0.0-next.9" @@ -14,7 +14,7 @@ dependencies: sdk: flutter dev_dependencies: - amplify_lints: ^1.0.0 + amplify_lints: ^3.1.0 flutter_test: sdk: flutter diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/amplify_push_notifications_pinpoint.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/amplify_push_notifications_pinpoint.dart index bcc3027db0..d881d5692b 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/amplify_push_notifications_pinpoint.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/amplify_push_notifications_pinpoint.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_push_notifications_pinpoint; +library; import 'package:amplify_push_notifications/amplify_push_notifications.dart'; import 'package:amplify_push_notifications_pinpoint/src/pinpoint_provider.dart'; @@ -13,8 +13,8 @@ import 'package:amplify_push_notifications_pinpoint/src/push_notifications_backg class AmplifyPushNotificationsPinpoint extends AmplifyPushNotifications { /// {@macro amplify_push_notifications_pinpoint.amplify_push_notifications_pinpoint} AmplifyPushNotificationsPinpoint() - : super( - serviceProviderClient: PinpointProvider(), - backgroundProcessor: amplifyBackgroundProcessing, - ); + : super( + serviceProviderClient: PinpointProvider(), + backgroundProcessor: amplifyBackgroundProcessing, + ); } diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/event_info_type.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/event_info_type.dart index b3ee553938..881ac6524a 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/event_info_type.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/event_info_type.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class EventInfo { /// {@macro amplify_push_notifications_pinpoint.event_info} - EventInfo( - this.source, - this.properties, - ); + EventInfo(this.source, this.properties); /// [source] represents the source of the notification prefixed by campaign or journey. final String source; diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart index 081f213417..513d812239 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/pinpoint_provider.dart @@ -19,8 +19,9 @@ import 'package:amplify_push_notifications_pinpoint/src/pinpoint_event_type_sour import 'package:amplify_secure_storage/amplify_secure_storage.dart'; import 'package:flutter/widgets.dart'; -final AmplifyLogger _logger = AmplifyLogger.category(Category.pushNotifications) - .createChild('AmplifyPushNotification'); +final AmplifyLogger _logger = AmplifyLogger.category( + Category.pushNotifications, +).createChild('AmplifyPushNotification'); /// {@template amplify_push_notifications_pinpoint.pinpoint_provider} /// AWS Pinpoint provider that implements [ServiceProviderClient]. @@ -69,8 +70,9 @@ class PinpointProvider implements ServiceProviderClient { }) async { try { if (!_isInitialized) { - final authProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.iam.authProviderToken); + final authProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ); if (authProvider == null) { throw ConfigurationError( @@ -86,7 +88,8 @@ class PinpointProvider implements ServiceProviderClient { AmplifySecureStorageScope.awsPinpointAnalyticsPlugin, ); - _analyticsClient = analyticsClient ?? + _analyticsClient = + analyticsClient ?? AnalyticsClient( endpointStorage: endpointStorage, deviceContextInfoProvider: @@ -136,10 +139,7 @@ class PinpointProvider implements ServiceProviderClient { } // setUser does not have any underlying network calls, hence not running it _withUserAgent - await _analyticsClient.endpointClient.setUser( - userId, - userProfile, - ); + await _analyticsClient.endpointClient.setUser(userId, userProfile); await _withUserAgent( () async => _analyticsClient.endpointClient.updateEndpoint(), ); @@ -160,9 +160,7 @@ class PinpointProvider implements ServiceProviderClient { }) async { try { if (!_isInitialized) { - _logger.error( - 'Pinpoint provider not configured.', - ); + _logger.error('Pinpoint provider not configured.'); return; } if (notification.data.isEmpty) { @@ -188,9 +186,7 @@ class PinpointProvider implements ServiceProviderClient { @override Future registerDevice(String deviceToken) async { if (!_isInitialized) { - _logger.error( - 'Pinpoint provider not configured.', - ); + _logger.error('Pinpoint provider not configured.'); return; } _analyticsClient.endpointClient.address = deviceToken; diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/push_notifications_background_processing.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/push_notifications_background_processing.dart index faf2079b6c..2e29a0dbe2 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/push_notifications_background_processing.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/lib/src/push_notifications_background_processing.dart @@ -50,7 +50,5 @@ Future amplifyBackgroundProcessing({ } // Signal that this method finished running so queued up native to dart events if any can be flushed. - await backgroundChannel.invokeMethod( - 'amplifyBackgroundProcessorFinished', - ); + await backgroundChannel.invokeMethod('amplifyBackgroundProcessorFinished'); } diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml b/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml index c93b582645..0a891fc011 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/pubspec.yaml @@ -1,12 +1,12 @@ name: amplify_push_notifications_pinpoint description: The Amplify Flutter Push Notifications category plugin using the AWS Pinpoint provider. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" # Helps `pana` since it does not detect Android support. platforms: @@ -14,26 +14,26 @@ platforms: android: dependencies: - amplify_analytics_pinpoint: ">=2.6.1 <2.7.0" - amplify_analytics_pinpoint_dart: ">=0.4.8 <0.5.0" - amplify_auth_cognito: ">=2.6.1 <2.7.0" - amplify_core: ">=2.6.1 <2.7.0" - amplify_flutter: ">=2.6.1 <2.7.0" - amplify_push_notifications: ">=2.6.1 <2.7.0" - amplify_secure_storage: ">=0.5.8 <0.6.0" + amplify_analytics_pinpoint: ">=2.6.2 <2.7.0" + amplify_analytics_pinpoint_dart: ">=0.4.9 <0.5.0" + amplify_auth_cognito: ">=2.6.2 <2.7.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_flutter: ">=2.6.2 <2.7.0" + amplify_push_notifications: ">=2.6.2 <2.7.0" + amplify_secure_storage: ">=0.5.9 <0.6.0" flutter: sdk: flutter flutter_plugin_android_lifecycle: ^2.0.9 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" - amplify_secure_storage_dart: ">=0.5.4 <0.6.0" + amplify_lints: ">=3.1.2 <3.2.0" + amplify_secure_storage_dart: ">=0.5.5 <0.6.0" amplify_test: path: ../../../test/amplify_test - aws_common: ">=0.7.6 <0.8.0" - aws_signature_v4: ">=0.6.4 <0.7.0" + aws_common: ">=0.7.7 <0.8.0" + aws_signature_v4: ">=0.6.5 <0.7.0" build_runner: ^2.4.9 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 flutter_test: sdk: flutter mocktail: ^1.0.0 diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/test/pinpoint_provider_test.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/test/pinpoint_provider_test.dart index 1cf3ce0eb0..6b541e3bf5 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/test/pinpoint_provider_test.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/test/pinpoint_provider_test.dart @@ -47,10 +47,7 @@ void main() { ); registerFallbackValue( const AWSCredentialsProvider( - AWSCredentials( - 'accessKeyId', - 'secretAccessKey', - ), + AWSCredentials('accessKeyId', 'secretAccessKey'), ), ); }); @@ -74,89 +71,98 @@ void main() { ); }); - test('identifyUser fails when the Pinpoint Provider is not initialized', - () async { - expect( - () async => pinpointProvider.identifyUser( - userId: 'userId', - userProfile: MockUserProfile(), - ), - throwsA( - isA().having( - (e) => e.message, - 'Not configured', - contains('Provider is not initialized'), + test( + 'identifyUser fails when the Pinpoint Provider is not initialized', + () async { + expect( + () async => pinpointProvider.identifyUser( + userId: 'userId', + userProfile: MockUserProfile(), ), - ), - ); - }); + throwsA( + isA().having( + (e) => e.message, + 'Not configured', + contains('Provider is not initialized'), + ), + ), + ); + }, + ); - test('identifyUser should throw exception if the underlying call throws', - () async { - when( - () => mockAmplifyAuthProviderRepository.getAuthProvider( - APIAuthorizationType.iam.authProviderToken, - ), - ).thenReturn(awsIamAmplifyAuthProvider); - when( - () => mockAnalyticsClient.init( - pinpointAppId: any(named: 'pinpointAppId'), - region: any(named: 'region'), - authProvider: any(named: 'authProvider'), - ), - ).thenAnswer((realInvocation) async {}); + test( + 'identifyUser should throw exception if the underlying call throws', + () async { + when( + () => mockAmplifyAuthProviderRepository.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ), + ).thenReturn(awsIamAmplifyAuthProvider); + when( + () => mockAnalyticsClient.init( + pinpointAppId: any(named: 'pinpointAppId'), + region: any(named: 'region'), + authProvider: any(named: 'authProvider'), + ), + ).thenAnswer((realInvocation) async {}); - final mockEndpointClient = MockEndpointClient(); + final mockEndpointClient = MockEndpointClient(); - when( - () => mockAnalyticsClient.endpointClient, - ).thenReturn(mockEndpointClient); + when( + () => mockAnalyticsClient.endpointClient, + ).thenReturn(mockEndpointClient); - await pinpointProvider.init( - config: notificationsPinpointConfig, - authProviderRepo: mockAmplifyAuthProviderRepository, - analyticsClient: mockAnalyticsClient, - ); - when(() => mockEndpointClient.setUser(any(), any())) - .thenThrow(Exception()); - expect( - pinpointProvider.identifyUser( - userId: 'userId', - userProfile: MockUserProfile(), - ), - throwsA( - isA().having( - (e) => e.message, - 'Unable to identify user', - contains('Unable to identify user.'), + await pinpointProvider.init( + config: notificationsPinpointConfig, + authProviderRepo: mockAmplifyAuthProviderRepository, + analyticsClient: mockAnalyticsClient, + ); + when( + () => mockEndpointClient.setUser(any(), any()), + ).thenThrow(Exception()); + expect( + pinpointProvider.identifyUser( + userId: 'userId', + userProfile: MockUserProfile(), ), - ), - ); - }); + throwsA( + isA().having( + (e) => e.message, + 'Unable to identify user', + contains('Unable to identify user.'), + ), + ), + ); + }, + ); test( - 'constructEventInfo should return journey data when there is journey details in the payload', - () async { - final res = pinpointProvider.constructEventInfo( - notification: PushNotificationMessage.fromJson(androidJourneyMessage), - ); - final properties = res.properties; - final source = res.source; - expect(properties.attributes.containsKey('journey_id'), isTrue); - expect(source, equals(PinpointEventTypeSource.journey.name)); - }); + 'constructEventInfo should return journey data when there is journey details in the payload', + () async { + final res = pinpointProvider.constructEventInfo( + notification: PushNotificationMessage.fromJson(androidJourneyMessage), + ); + final properties = res.properties; + final source = res.source; + expect(properties.attributes.containsKey('journey_id'), isTrue); + expect(source, equals(PinpointEventTypeSource.journey.name)); + }, + ); test( - 'constructEventInfo should return campaign data when there is campaign details in the payload', - () async { - final res = pinpointProvider.constructEventInfo( - notification: PushNotificationMessage.fromJson(androidCampaignMessage), - ); - final properties = res.properties; - final source = res.source; - expect(properties.attributes.containsKey('campaign_id'), isTrue); - expect(source, equals(PinpointEventTypeSource.campaign.name)); - }); + 'constructEventInfo should return campaign data when there is campaign details in the payload', + () async { + final res = pinpointProvider.constructEventInfo( + notification: PushNotificationMessage.fromJson( + androidCampaignMessage, + ), + ); + final properties = res.properties; + final source = res.source; + expect(properties.attributes.containsKey('campaign_id'), isTrue); + expect(source, equals(PinpointEventTypeSource.campaign.name)); + }, + ); }); group('Happy path test', () { @@ -166,10 +172,7 @@ void main() { ); registerFallbackValue( const AWSCredentialsProvider( - AWSCredentials( - 'accessKeyId', - 'secretAccessKey', - ), + AWSCredentials('accessKeyId', 'secretAccessKey'), ), ); }); @@ -239,8 +242,9 @@ void main() { ).thenAnswer((realInvocation) async {}); final mockEndpointClient = MockEndpointClient(); - when(() => mockEndpointClient.setUser(any(), any())) - .thenAnswer((_) async => {}); + when( + () => mockEndpointClient.setUser(any(), any()), + ).thenAnswer((_) async => {}); when(mockEndpointClient.updateEndpoint).thenAnswer((_) async => {}); when( @@ -278,8 +282,9 @@ void main() { ).thenAnswer((realInvocation) async {}); final mockEndpointClient = MockEndpointClient(); - when(() => mockEndpointClient.setUser(any(), any())) - .thenAnswer((_) async => {}); + when( + () => mockEndpointClient.setUser(any(), any()), + ).thenAnswer((_) async => {}); when(mockEndpointClient.updateEndpoint).thenAnswer((_) async => {}); when( @@ -295,98 +300,89 @@ void main() { completes, ); - expect( - pinpointProvider.registerDevice( - '', - ), - completes, - ); + expect(pinpointProvider.registerDevice(''), completes); verify(mockEndpointClient.updateEndpoint); }); - test('registerDevice should run successfully when device is offline', - () async { - when( - () => mockAmplifyAuthProviderRepository.getAuthProvider( - APIAuthorizationType.iam.authProviderToken, - ), - ).thenReturn(awsIamAmplifyAuthProvider); - when( - () => mockAnalyticsClient.init( - pinpointAppId: any(named: 'pinpointAppId'), - region: any(named: 'region'), - authProvider: any(named: 'authProvider'), - ), - ).thenAnswer((realInvocation) async {}); + test( + 'registerDevice should run successfully when device is offline', + () async { + when( + () => mockAmplifyAuthProviderRepository.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ), + ).thenReturn(awsIamAmplifyAuthProvider); + when( + () => mockAnalyticsClient.init( + pinpointAppId: any(named: 'pinpointAppId'), + region: any(named: 'region'), + authProvider: any(named: 'authProvider'), + ), + ).thenAnswer((realInvocation) async {}); - final mockEndpointClient = MockEndpointClient(); + final mockEndpointClient = MockEndpointClient(); - when(mockEndpointClient.updateEndpoint) - .thenThrow(const NetworkException('message')); + when( + mockEndpointClient.updateEndpoint, + ).thenThrow(const NetworkException('message')); - when( - () => mockAnalyticsClient.endpointClient, - ).thenReturn(mockEndpointClient); + when( + () => mockAnalyticsClient.endpointClient, + ).thenReturn(mockEndpointClient); - await expectLater( - pinpointProvider.init( - config: notificationsPinpointConfig, - authProviderRepo: mockAmplifyAuthProviderRepository, - analyticsClient: mockAnalyticsClient, - ), - completes, - ); + await expectLater( + pinpointProvider.init( + config: notificationsPinpointConfig, + authProviderRepo: mockAmplifyAuthProviderRepository, + analyticsClient: mockAnalyticsClient, + ), + completes, + ); - expect( - pinpointProvider.registerDevice( - '', - ), - completes, - ); - verify(mockEndpointClient.updateEndpoint); - }); + expect(pinpointProvider.registerDevice(''), completes); + verify(mockEndpointClient.updateEndpoint); + }, + ); - test('registerDevice should run successfully when token is expired', - () async { - when( - () => mockAmplifyAuthProviderRepository.getAuthProvider( - APIAuthorizationType.iam.authProviderToken, - ), - ).thenReturn(awsIamAmplifyAuthProvider); - when( - () => mockAnalyticsClient.init( - pinpointAppId: any(named: 'pinpointAppId'), - region: any(named: 'region'), - authProvider: any(named: 'authProvider'), - ), - ).thenAnswer((realInvocation) async {}); + test( + 'registerDevice should run successfully when token is expired', + () async { + when( + () => mockAmplifyAuthProviderRepository.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ), + ).thenReturn(awsIamAmplifyAuthProvider); + when( + () => mockAnalyticsClient.init( + pinpointAppId: any(named: 'pinpointAppId'), + region: any(named: 'region'), + authProvider: any(named: 'authProvider'), + ), + ).thenAnswer((realInvocation) async {}); - final mockEndpointClient = MockEndpointClient(); + final mockEndpointClient = MockEndpointClient(); - when(mockEndpointClient.updateEndpoint) - .thenThrow(const UnknownException('message')); + when( + mockEndpointClient.updateEndpoint, + ).thenThrow(const UnknownException('message')); - when( - () => mockAnalyticsClient.endpointClient, - ).thenReturn(mockEndpointClient); + when( + () => mockAnalyticsClient.endpointClient, + ).thenReturn(mockEndpointClient); - await expectLater( - pinpointProvider.init( - config: notificationsPinpointConfig, - authProviderRepo: mockAmplifyAuthProviderRepository, - analyticsClient: mockAnalyticsClient, - ), - completes, - ); + await expectLater( + pinpointProvider.init( + config: notificationsPinpointConfig, + authProviderRepo: mockAmplifyAuthProviderRepository, + analyticsClient: mockAnalyticsClient, + ), + completes, + ); - expect( - pinpointProvider.registerDevice( - '', - ), - completes, - ); - verify(mockEndpointClient.updateEndpoint); - }); + expect(pinpointProvider.registerDevice(''), completes); + verify(mockEndpointClient.updateEndpoint); + }, + ); test('recordEvent should run successfully', () async { when( @@ -411,9 +407,7 @@ void main() { ), ).thenAnswer((_) async => {}); - when( - () => mockAnalyticsClient.eventClient, - ).thenReturn(mockEventClient); + when(() => mockAnalyticsClient.eventClient).thenReturn(mockEventClient); await expectLater( pinpointProvider.init( @@ -427,8 +421,9 @@ void main() { await expectLater( pinpointProvider.recordNotificationEvent( eventType: PinpointEventType.foregroundMessageReceived, - notification: - PushNotificationMessage.fromJson(androidCampaignMessage), + notification: PushNotificationMessage.fromJson( + androidCampaignMessage, + ), ), completes, ); diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/test/push_notifications_background_processing_test.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/test/push_notifications_background_processing_test.dart index 1095393419..137b4b0553 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/test/push_notifications_background_processing_test.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/test/push_notifications_background_processing_test.dart @@ -28,27 +28,28 @@ void main() { ); }); group('amplifyBackgroundProcessing', () { - test('should fail when the config stored in secure storage is not found', - () { - final mockStorage = MockAmplifySecureStorage(); - when(() => mockStorage.read(key: any(named: 'key'))).thenAnswer( - (_) async => null, - ); + test( + 'should fail when the config stored in secure storage is not found', + () { + final mockStorage = MockAmplifySecureStorage(); + when( + () => mockStorage.read(key: any(named: 'key')), + ).thenAnswer((_) async => null); - expect( - () async => amplifyBackgroundProcessing( - amplifySecureStorage: mockStorage, - ), - throwsA(isA()), - ); - }); + expect( + () async => + amplifyBackgroundProcessing(amplifySecureStorage: mockStorage), + throwsA(isA()), + ); + }, + ); test('should configure Amplify plugins', () async { log.clear(); final mockStorage = MockAmplifySecureStorage(); - when(() => mockStorage.read(key: any(named: 'key'))).thenAnswer( - (_) async => amplifyconfig, - ); + when( + () => mockStorage.read(key: any(named: 'key')), + ).thenAnswer((_) async => amplifyconfig); final mockAmplify = MockAmplifyClass(); diff --git a/packages/notifications/push/amplify_push_notifications_pinpoint/test/test_data/fake_notification_messges.dart b/packages/notifications/push/amplify_push_notifications_pinpoint/test/test_data/fake_notification_messges.dart index 398c7225ad..534e82e617 100644 --- a/packages/notifications/push/amplify_push_notifications_pinpoint/test/test_data/fake_notification_messges.dart +++ b/packages/notifications/push/amplify_push_notifications_pinpoint/test/test_data/fake_notification_messges.dart @@ -5,9 +5,7 @@ const androidJourneyMessage = { 'title': 'TITTLE', 'body': 'BODY', 'imageUrl': null, - 'fcmOptions': { - 'channelId': 'PINPOINT.NOTIFICATION', - }, + 'fcmOptions': {'channelId': 'PINPOINT.NOTIFICATION'}, 'action': {'openApp': true, 'url': null, 'deeplink': null}, 'data': { 'pinpoint.openApp': true, @@ -31,9 +29,7 @@ const androidCampaignMessage = { 'title': 'TITTLE', 'body': 'BODY', 'imageUrl': null, - 'fcmOptions': { - 'channelId': 'PINPOINT.NOTIFICATION', - }, + 'fcmOptions': {'channelId': 'PINPOINT.NOTIFICATION'}, 'action': {'openApp': true, 'url': null, 'deeplink': null}, 'data': { 'pinpoint.openApp': true, diff --git a/packages/secure_storage/amplify_secure_storage/CHANGELOG.md b/packages/secure_storage/amplify_secure_storage/CHANGELOG.md index 19fcd60e21..683c5bebd7 100644 --- a/packages/secure_storage/amplify_secure_storage/CHANGELOG.md +++ b/packages/secure_storage/amplify_secure_storage/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.5.9 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.5.8 - Minor bug fixes and improvements diff --git a/packages/secure_storage/amplify_secure_storage/example/android/.gitignore b/packages/secure_storage/amplify_secure_storage/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/secure_storage/amplify_secure_storage/example/android/.gitignore +++ b/packages/secure_storage/amplify_secure_storage/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/secure_storage/amplify_secure_storage/example/android/app/build.gradle b/packages/secure_storage/amplify_secure_storage/example/android/app/build.gradle index 8afb653888..3a025253be 100644 --- a/packages/secure_storage/amplify_secure_storage/example/android/app/build.gradle +++ b/packages/secure_storage/amplify_secure_storage/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -64,4 +66,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") +} diff --git a/packages/secure_storage/amplify_secure_storage/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/secure_storage/amplify_secure_storage/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/secure_storage/amplify_secure_storage/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/secure_storage/amplify_secure_storage/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/secure_storage/amplify_secure_storage/example/android/settings.gradle b/packages/secure_storage/amplify_secure_storage/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/secure_storage/amplify_secure_storage/example/android/settings.gradle +++ b/packages/secure_storage/amplify_secure_storage/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/secure_storage/amplify_secure_storage/example/integration_test/cupertino_test.dart b/packages/secure_storage/amplify_secure_storage/example/integration_test/cupertino_test.dart index 0b1953d556..b3f726b004 100644 --- a/packages/secure_storage/amplify_secure_storage/example/integration_test/cupertino_test.dart +++ b/packages/secure_storage/amplify_secure_storage/example/integration_test/cupertino_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('mac-os || ios') +library; import 'dart:io'; @@ -95,8 +96,9 @@ void main() { config: AmplifySecureStorageConfig( scope: scope, iOSOptions: IOSSecureStorageOptions( - accessible: KeychainAttributeAccessible - .accessibleAfterFirstUnlockThisDeviceOnly, + accessible: + KeychainAttributeAccessible + .accessibleAfterFirstUnlockThisDeviceOnly, ), ), ); @@ -104,8 +106,9 @@ void main() { config: AmplifySecureStorageConfig( scope: scope, iOSOptions: IOSSecureStorageOptions( - accessible: KeychainAttributeAccessible - .accessibleWhenUnlockedThisDeviceOnly, + accessible: + KeychainAttributeAccessible + .accessibleWhenUnlockedThisDeviceOnly, ), ), ); diff --git a/packages/secure_storage/amplify_secure_storage/example/integration_test/linux_test.dart b/packages/secure_storage/amplify_secure_storage/example/integration_test/linux_test.dart index 270c5d1fa5..f412af7328 100644 --- a/packages/secure_storage/amplify_secure_storage/example/integration_test/linux_test.dart +++ b/packages/secure_storage/amplify_secure_storage/example/integration_test/linux_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('linux') +library; import 'package:amplify_secure_storage/amplify_secure_storage.dart'; import 'package:flutter_test/flutter_test.dart'; @@ -48,36 +49,34 @@ void main() { expect(await storage2.read(key: key1), isNull); }); - test('Previous keys are NOT cleared on init when using an accessGroup', - () async { - // initialize storage and store a value - // ignore: invalid_use_of_internal_member - final storage = AmplifySecureStorage( - config: AmplifySecureStorageConfig( - scope: scope, - linuxOptions: LinuxSecureStorageOptions( - accessGroup: accessGroup, + test( + 'Previous keys are NOT cleared on init when using an accessGroup', + () async { + // initialize storage and store a value + // ignore: invalid_use_of_internal_member + final storage = AmplifySecureStorage( + config: AmplifySecureStorageConfig( + scope: scope, + linuxOptions: LinuxSecureStorageOptions(accessGroup: accessGroup), ), - ), - ); - await storage.write(key: key1, value: value1); + ); + await storage.write(key: key1, value: value1); - // uninstall app - await uninstall(); + // uninstall app + await uninstall(); - // re-initialize storage - // ignore: invalid_use_of_internal_member - final storage2 = AmplifySecureStorage( - config: AmplifySecureStorageConfig( - scope: scope, - linuxOptions: LinuxSecureStorageOptions( - accessGroup: accessGroup, + // re-initialize storage + // ignore: invalid_use_of_internal_member + final storage2 = AmplifySecureStorage( + config: AmplifySecureStorageConfig( + scope: scope, + linuxOptions: LinuxSecureStorageOptions(accessGroup: accessGroup), ), - ), - ); + ); - // assert value is NOT cleared - expect(await storage2.read(key: key1), value1); - }); + // assert value is NOT cleared + expect(await storage2.read(key: key1), value1); + }, + ); }); } diff --git a/packages/secure_storage/amplify_secure_storage/example/integration_test/windows_test.dart b/packages/secure_storage/amplify_secure_storage/example/integration_test/windows_test.dart index c659415212..74040f30fc 100644 --- a/packages/secure_storage/amplify_secure_storage/example/integration_test/windows_test.dart +++ b/packages/secure_storage/amplify_secure_storage/example/integration_test/windows_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('windows') +library; import 'package:amplify_secure_storage/amplify_secure_storage.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/packages/secure_storage/amplify_secure_storage/example/lib/main.dart b/packages/secure_storage/amplify_secure_storage/example/lib/main.dart index 36baf4c4e8..b7c1c6b19e 100644 --- a/packages/secure_storage/amplify_secure_storage/example/lib/main.dart +++ b/packages/secure_storage/amplify_secure_storage/example/lib/main.dart @@ -5,11 +5,7 @@ import 'package:amplify_secure_storage/amplify_secure_storage.dart'; import 'package:flutter/material.dart'; void main() { - runApp( - const MaterialApp( - home: MyApp(), - ), - ); + runApp(const MaterialApp(home: MyApp())); } class MyApp extends StatefulWidget { @@ -34,9 +30,9 @@ class _MyAppState extends State { String _value = ''; void showMessage(String message) { - ScaffoldMessenger.of(context).showSnackBar( - SnackBar(content: Text(message)), - ); + ScaffoldMessenger.of( + context, + ).showSnackBar(SnackBar(content: Text(message))); } void showException(Exception e) { @@ -73,9 +69,7 @@ class _MyAppState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Plugin example app'), - ), + appBar: AppBar(title: const Text('Plugin example app')), body: Padding( padding: const EdgeInsets.all(16), child: Form( @@ -83,31 +77,18 @@ class _MyAppState extends State { children: [ TextFormField( initialValue: _key, - decoration: const InputDecoration( - label: Text('Key'), - ), + decoration: const InputDecoration(label: Text('Key')), onChanged: (value) => setState(() => _key = value), ), TextFormField( initialValue: _key, - decoration: const InputDecoration( - label: Text('Value'), - ), + decoration: const InputDecoration(label: Text('Value')), onChanged: (value) => setState(() => _value = value), ), const SizedBox(height: 8), - ElevatedButton( - onPressed: read, - child: const Text('Read'), - ), - ElevatedButton( - onPressed: write, - child: const Text('Write'), - ), - ElevatedButton( - onPressed: delete, - child: const Text('Delete'), - ), + ElevatedButton(onPressed: read, child: const Text('Read')), + ElevatedButton(onPressed: write, child: const Text('Write')), + ElevatedButton(onPressed: delete, child: const Text('Delete')), ], ), ), diff --git a/packages/secure_storage/amplify_secure_storage/example/pubspec.yaml b/packages/secure_storage/amplify_secure_storage/example/pubspec.yaml index 7a2cfea339..05e1412a29 100644 --- a/packages/secure_storage/amplify_secure_storage/example/pubspec.yaml +++ b/packages/secure_storage/amplify_secure_storage/example/pubspec.yaml @@ -4,8 +4,8 @@ description: Demonstrates how to use the amplify_secure_storage plugin and house publish_to: "none" environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_secure_storage: ">=0.3.0 <0.4.0" diff --git a/packages/secure_storage/amplify_secure_storage/lib/amplify_secure_storage.dart b/packages/secure_storage/amplify_secure_storage/lib/amplify_secure_storage.dart index a35191e160..9232f0af1f 100644 --- a/packages/secure_storage/amplify_secure_storage/lib/amplify_secure_storage.dart +++ b/packages/secure_storage/amplify_secure_storage/lib/amplify_secure_storage.dart @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -library amplify_secure_storage; +library; export 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; diff --git a/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.android.dart b/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.android.dart index 4365a3f95a..f211b44163 100644 --- a/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.android.dart +++ b/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.android.dart @@ -7,9 +7,7 @@ import 'package:amplify_secure_storage/src/pigeons/amplify_secure_storage_pigeon import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; class AmplifySecureStorageAndroid extends AmplifySecureStorageInterface { - const AmplifySecureStorageAndroid({ - required super.config, - }); + const AmplifySecureStorageAndroid({required super.config}); static final _pigeon = AmplifySecureStoragePigeon(); diff --git a/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.vm.dart b/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.vm.dart index 4fcdbc3692..0fa82ce351 100644 --- a/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.vm.dart +++ b/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.vm.dart @@ -25,16 +25,13 @@ class AmplifySecureStorage extends AmplifySecureStorageInterface { /// external use. /// {@endtemplate} @internal - AmplifySecureStorage({ - required super.config, - }); + AmplifySecureStorage({required super.config}); /// {@template amplify_secure_storage.amplify_secure_storage.factory_from} /// Returns a factory for creating [AmplifySecureStorage] instances. /// {@endtemplate} - static AmplifySecureStorage Function( - AmplifySecureStorageScope amplifyScope, - ) factoryFrom({ + static AmplifySecureStorage Function(AmplifySecureStorageScope amplifyScope) + factoryFrom({ WebSecureStorageOptions? webOptions, WindowsSecureStorageOptions? windowsOptions, LinuxSecureStorageOptions? linuxOptions, @@ -67,37 +64,37 @@ class AmplifySecureStorage extends AmplifySecureStorageInterface { final _initMemo = AsyncMemoizer(); Future _init() async { - await _initMemo.runOnce( - () async { - if (Platform.isAndroid) { - _instance = AmplifySecureStorageAndroid(config: config); - } else { - var config = this.config; - if (Platform.isWindows) { - config = config.copyWith( - windowsOptions: config.windowsOptions.copyWith( - storagePath: config.windowsOptions.storagePath ?? - (await getApplicationLocalSupportDirectory()).path, - ), - ); - } - // ignore: invalid_use_of_internal_member - _instance = AmplifySecureStorageWorker(config: config); + await _initMemo.runOnce(() async { + if (Platform.isAndroid) { + _instance = AmplifySecureStorageAndroid(config: config); + } else { + var config = this.config; + if (Platform.isWindows) { + config = config.copyWith( + windowsOptions: config.windowsOptions.copyWith( + storagePath: + config.windowsOptions.storagePath ?? + (await getApplicationLocalSupportDirectory()).path, + ), + ); } - if (Platform.isIOS || Platform.isMacOS || Platform.isLinux) { - final accessGroup = Platform.isLinux - ? config.linuxOptions.accessGroup - : Platform.isIOS - ? config.iOSOptions.accessGroup - : config.macOSOptions.accessGroup; - // if accessGroup is set, do not clear data on initialization - // since the data can be shared across applications. - if (accessGroup == null) { - await _initializeScope(); - } + // ignore: invalid_use_of_internal_member + _instance = AmplifySecureStorageWorker(config: config); + } + if (Platform.isIOS || Platform.isMacOS || Platform.isLinux) { + final accessGroup = + Platform.isLinux + ? config.linuxOptions.accessGroup + : Platform.isIOS + ? config.iOSOptions.accessGroup + : config.macOSOptions.accessGroup; + // if accessGroup is set, do not clear data on initialization + // since the data can be shared across applications. + if (accessGroup == null) { + await _initializeScope(); } - }, - ); + } + }); } @override diff --git a/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.web.dart b/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.web.dart index 98e8d2d13d..378d0321b8 100644 --- a/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.web.dart +++ b/packages/secure_storage/amplify_secure_storage/lib/src/amplify_secure_storage.web.dart @@ -11,14 +11,11 @@ import 'package:meta/meta.dart'; class AmplifySecureStorage extends AmplifySecureStorageInterface { /// {@macro amplify_secure_storage.amplify_secure_storage.from_config} @internal - AmplifySecureStorage({ - required super.config, - }); + AmplifySecureStorage({required super.config}); /// {@macro amplify_secure_storage.amplify_secure_storage.factory_from} - static AmplifySecureStorage Function( - AmplifySecureStorageScope amplifyScope, - ) factoryFrom({ + static AmplifySecureStorage Function(AmplifySecureStorageScope amplifyScope) + factoryFrom({ WebSecureStorageOptions? webOptions, WindowsSecureStorageOptions? windowsOptions, LinuxSecureStorageOptions? linuxOptions, @@ -40,8 +37,8 @@ class AmplifySecureStorage extends AmplifySecureStorageInterface { } late final SecureStorageInterface _instance = - // ignore: invalid_use_of_internal_member - AmplifySecureStorageDart(config: config); + // ignore: invalid_use_of_internal_member + AmplifySecureStorageDart(config: config); @override FutureOr delete({required String key}) { diff --git a/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/amplify_secure_storage_pigeon.g.dart b/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/amplify_secure_storage_pigeon.g.dart index ab1fa4ef77..b8ca3a231f 100644 --- a/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/amplify_secure_storage_pigeon.g.dart +++ b/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/amplify_secure_storage_pigeon.g.dart @@ -45,11 +45,12 @@ class AmplifySecureStoragePigeon { /// Constructor for [AmplifySecureStoragePigeon]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - AmplifySecureStoragePigeon( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + AmplifySecureStoragePigeon({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -61,12 +62,13 @@ class AmplifySecureStoragePigeon { 'dev.flutter.pigeon.amplify_secure_storage.AmplifySecureStoragePigeon.read$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([namespace, key]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([namespace, key]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -85,12 +87,13 @@ class AmplifySecureStoragePigeon { 'dev.flutter.pigeon.amplify_secure_storage.AmplifySecureStoragePigeon.write$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([namespace, key, value]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([namespace, key, value]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -109,12 +112,13 @@ class AmplifySecureStoragePigeon { 'dev.flutter.pigeon.amplify_secure_storage.AmplifySecureStoragePigeon.delete$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); - final List? pigeonVar_replyList = await pigeonVar_channel - .send([namespace, key]) as List?; + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final List? pigeonVar_replyList = + await pigeonVar_channel.send([namespace, key]) + as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -133,10 +137,10 @@ class AmplifySecureStoragePigeon { 'dev.flutter.pigeon.amplify_secure_storage.AmplifySecureStoragePigeon.removeAll$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send([namespace]) as List?; if (pigeonVar_replyList == null) { diff --git a/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/ns_user_defaults_pigeon.g.dart b/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/ns_user_defaults_pigeon.g.dart index c0493f9b47..90aedc6024 100644 --- a/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/ns_user_defaults_pigeon.g.dart +++ b/packages/secure_storage/amplify_secure_storage/lib/src/pigeons/ns_user_defaults_pigeon.g.dart @@ -44,11 +44,12 @@ class NSUserDefaultsPigeon { /// Constructor for [NSUserDefaultsPigeon]. The [binaryMessenger] named argument is /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. - NSUserDefaultsPigeon( - {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + NSUserDefaultsPigeon({ + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = + messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); @@ -60,10 +61,10 @@ class NSUserDefaultsPigeon { 'dev.flutter.pigeon.amplify_secure_storage.NSUserDefaultsPigeon.setBool$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send([key, value]) as List?; if (pigeonVar_replyList == null) { @@ -84,10 +85,10 @@ class NSUserDefaultsPigeon { 'dev.flutter.pigeon.amplify_secure_storage.NSUserDefaultsPigeon.boolFor$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeonVar_channelName, - pigeonChannelCodec, - binaryMessenger: pigeonVar_binaryMessenger, - ); + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); final List? pigeonVar_replyList = await pigeonVar_channel.send([key]) as List?; if (pigeonVar_replyList == null) { diff --git a/packages/secure_storage/amplify_secure_storage/pigeons/amplify_secure_storage.dart b/packages/secure_storage/amplify_secure_storage/pigeons/amplify_secure_storage.dart index ffcb1b052d..bffebf3198 100644 --- a/packages/secure_storage/amplify_secure_storage/pigeons/amplify_secure_storage.dart +++ b/packages/secure_storage/amplify_secure_storage/pigeons/amplify_secure_storage.dart @@ -16,7 +16,6 @@ import 'package:pigeon/pigeon.dart'; copyrightHeader: 'pigeons/copyright.txt', ), ) - /// A pigeon for interacting with the native AmplifySecureStorage implementation /// on Android. @HostApi() diff --git a/packages/secure_storage/amplify_secure_storage/pigeons/ns_user_defaults.dart b/packages/secure_storage/amplify_secure_storage/pigeons/ns_user_defaults.dart index b73e35073f..b151e352bb 100644 --- a/packages/secure_storage/amplify_secure_storage/pigeons/ns_user_defaults.dart +++ b/packages/secure_storage/amplify_secure_storage/pigeons/ns_user_defaults.dart @@ -14,7 +14,6 @@ import 'package:pigeon/pigeon.dart'; copyrightHeader: 'pigeons/copyright.txt', ), ) - /// A pigeon for interacting with the NSUserDefaults API on iOS and macOS. @HostApi() abstract class NSUserDefaultsPigeon { diff --git a/packages/secure_storage/amplify_secure_storage/pubspec.yaml b/packages/secure_storage/amplify_secure_storage/pubspec.yaml index 0fb80301de..1fa0270b62 100644 --- a/packages/secure_storage/amplify_secure_storage/pubspec.yaml +++ b/packages/secure_storage/amplify_secure_storage/pubspec.yaml @@ -1,29 +1,29 @@ name: amplify_secure_storage description: A package for storing secrets, intended for use in Amplify libraries. -version: 0.5.8 +version: 0.5.9 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/secure_storage/amplify_secure_storage issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: - amplify_secure_storage_dart: ">=0.5.4 <0.6.0" + amplify_secure_storage_dart: ">=0.5.5 <0.6.0" async: ^2.10.0 file: ">=6.0.0 <8.0.0" flutter: sdk: flutter flutter_web_plugins: sdk: flutter - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" path_provider: ^2.0.0 path_provider_windows: ^2.0.0 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" flutter_test: sdk: flutter pigeon: ^22.6.2 diff --git a/packages/secure_storage/amplify_secure_storage_dart/CHANGELOG.md b/packages/secure_storage/amplify_secure_storage_dart/CHANGELOG.md index 29674ee52d..f66736805e 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/CHANGELOG.md +++ b/packages/secure_storage/amplify_secure_storage_dart/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.5.5 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.5.4 - Minor bug fixes and improvements diff --git a/packages/secure_storage/amplify_secure_storage_dart/example/bin/amplify_secure_storage_dart_example.dart b/packages/secure_storage/amplify_secure_storage_dart/example/bin/amplify_secure_storage_dart_example.dart index 1e9ac34c84..017b06c761 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/example/bin/amplify_secure_storage_dart_example.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/example/bin/amplify_secure_storage_dart_example.dart @@ -6,17 +6,11 @@ import 'dart:io'; import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; -enum InputMode { - read, - write, - delete, -} +enum InputMode { read, write, delete } // ignore: invalid_use_of_internal_member final storage = AmplifySecureStorageDart( - config: AmplifySecureStorageConfig( - scope: 'default', - ), + config: AmplifySecureStorageConfig(scope: 'default'), ); Future main() async { diff --git a/packages/secure_storage/amplify_secure_storage_dart/example/pubspec.yaml b/packages/secure_storage/amplify_secure_storage_dart/example/pubspec.yaml index ac8321a34a..3905a121be 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/example/pubspec.yaml +++ b/packages/secure_storage/amplify_secure_storage_dart/example/pubspec.yaml @@ -7,7 +7,7 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_secure_storage_dart: ">=0.5.3 <0.6.0" diff --git a/packages/secure_storage/amplify_secure_storage_dart/example/web/main.dart b/packages/secure_storage/amplify_secure_storage_dart/example/web/main.dart index 7b193ddf1d..7a95165ce7 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/example/web/main.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/example/web/main.dart @@ -6,9 +6,7 @@ import 'package:example_common/example_common.dart'; // ignore: invalid_use_of_internal_member final storage = AmplifySecureStorageDart( - config: AmplifySecureStorageConfig( - scope: 'default', - ), + config: AmplifySecureStorageConfig(scope: 'default'), ); Future main() async { renderApp(AppComponent()); @@ -83,18 +81,9 @@ class AppComponent extends StatefulComponent { ), RowComponent( children: [ - ButtonComponent( - innerHtml: 'Write', - onClick: _write, - ), - ButtonComponent( - innerHtml: 'Read', - onClick: _read, - ), - ButtonComponent( - innerHtml: 'delete', - onClick: _delete, - ), + ButtonComponent(innerHtml: 'Write', onClick: _write), + ButtonComponent(innerHtml: 'Read', onClick: _read), + ButtonComponent(innerHtml: 'delete', onClick: _delete), ], ), ], diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/amplify_secure_storage_dart.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/amplify_secure_storage_dart.dart index d1f99774fa..f72a9143db 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/amplify_secure_storage_dart.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/amplify_secure_storage_dart.dart @@ -37,14 +37,13 @@ class AmplifySecureStorageDart extends AmplifySecureStorageInterface /// external use. /// {@endtemplate} @internal - AmplifySecureStorageDart({ - required super.config, - }); + AmplifySecureStorageDart({required super.config}); /// Returns a factory for creating [AmplifySecureStorageDart] instances. static AmplifySecureStorageDart Function( AmplifySecureStorageScope amplifyScope, - ) factoryFrom({ + ) + factoryFrom({ WebSecureStorageOptions? webOptions, WindowsSecureStorageOptions? windowsOptions, LinuxSecureStorageOptions? linuxOptions, @@ -76,14 +75,13 @@ class AmplifySecureStorageWorker extends AmplifySecureStorageInterface with AWSDebuggable, AWSLoggerMixin { /// {@macro amplify_secure_storage_dart.amplify_secure_storage_dart.fromConfig} @internal - AmplifySecureStorageWorker({ - required super.config, - }); + AmplifySecureStorageWorker({required super.config}); /// Returns a factory for creating [AmplifySecureStorageWorker] instances. static AmplifySecureStorageWorker Function( AmplifySecureStorageScope amplifyScope, - ) factoryFrom({ + ) + factoryFrom({ WebSecureStorageOptions? webOptions, WindowsSecureStorageOptions? windowsOptions, LinuxSecureStorageOptions? linuxOptions, @@ -121,25 +119,19 @@ class AmplifySecureStorageWorker extends AmplifySecureStorageInterface /// performed once before any secure storage operations. /// {@endtemplate} Future _init() => _workerMemo.runOnce(() async { - _worker = SecureStorageWorker.create(); - _worker.logs.listen(_logWorkerBeeMessage); - await _worker.spawn(); - _worker.add( - SecureStorageRequest.init( - config: config, - ), - ); - await _worker.stream.first; - }); + _worker = SecureStorageWorker.create(); + _worker.logs.listen(_logWorkerBeeMessage); + await _worker.spawn(); + _worker.add(SecureStorageRequest.init(config: config)); + await _worker.stream.first; + }); @override Future delete({required String key}) async { await _init(); final request = SecureStorageRequest.delete(key: key); _worker.add(request); - await _worker.stream.firstWhere( - (event) => event.id == request.id, - ); + await _worker.stream.firstWhere((event) => event.id == request.id); } @override diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/exception/secure_storage_exception.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/exception/secure_storage_exception.dart index 841fed8f0b..aefcdc23dd 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/exception/secure_storage_exception.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/exception/secure_storage_exception.dart @@ -24,13 +24,15 @@ class SecureStorageException implements Exception { /// Underlying cause of this exception helpful for debugging (Optional) final Object? underlyingException; - static const String missingRecovery = 'An unknown exception occurred. \n' + static const String missingRecovery = + 'An unknown exception occurred. \n' 'Please take a look at https://github.com/aws-amplify/amplify-flutter/issues ' 'to see if there are any existing issues that match your scenario, ' 'and file an issue with the details of the bug if there isn\'t.'; @override - String toString() => 'SecureStorageException(message: $message, ' + String toString() => + 'SecureStorageException(message: $message, ' 'recoverySuggestion: $recoverySuggestion, ' 'underlyingException: $underlyingException)'; diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/core_foundation.bindings.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/core_foundation.bindings.g.dart index f7febc8064..b7a45527c9 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/core_foundation.bindings.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/core_foundation.bindings.g.dart @@ -10,24 +10,19 @@ import 'dart:ffi' as ffi; class CoreFoundation { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. CoreFoundation(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. CoreFoundation.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; - void CFRelease( - CFTypeRef cf, - ) { - return _CFRelease( - cf, - ); + void CFRelease(CFTypeRef cf) { + return _CFRelease(cf); } late final _CFReleasePtr = @@ -53,53 +48,55 @@ class CoreFoundation { } late final _CFDictionaryCreatePtr = _lookup< - ffi.NativeFunction< - CFDictionaryRef Function( - CFAllocatorRef, - ffi.Pointer>, - ffi.Pointer>, - CFIndex, - ffi.Pointer, - ffi.Pointer)>>('CFDictionaryCreate'); - late final _CFDictionaryCreate = _CFDictionaryCreatePtr.asFunction< + ffi.NativeFunction< CFDictionaryRef Function( + CFAllocatorRef, + ffi.Pointer>, + ffi.Pointer>, + CFIndex, + ffi.Pointer, + ffi.Pointer, + ) + > + >('CFDictionaryCreate'); + late final _CFDictionaryCreate = + _CFDictionaryCreatePtr.asFunction< + CFDictionaryRef Function( CFAllocatorRef, ffi.Pointer>, ffi.Pointer>, int, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ) + >(); CFDataRef CFDataCreate( CFAllocatorRef allocator, ffi.Pointer bytes, int length, ) { - return _CFDataCreate( - allocator, - bytes, - length, - ); + return _CFDataCreate(allocator, bytes, length); } late final _CFDataCreatePtr = _lookup< - ffi.NativeFunction< - CFDataRef Function( - CFAllocatorRef, ffi.Pointer, CFIndex)>>('CFDataCreate'); - late final _CFDataCreate = _CFDataCreatePtr.asFunction< - CFDataRef Function(CFAllocatorRef, ffi.Pointer, int)>(); - - ffi.Pointer CFDataGetBytePtr( - CFDataRef theData, - ) { - return _CFDataGetBytePtr( - theData, - ); + ffi.NativeFunction< + CFDataRef Function(CFAllocatorRef, ffi.Pointer, CFIndex) + > + >('CFDataCreate'); + late final _CFDataCreate = + _CFDataCreatePtr.asFunction< + CFDataRef Function(CFAllocatorRef, ffi.Pointer, int) + >(); + + ffi.Pointer CFDataGetBytePtr(CFDataRef theData) { + return _CFDataGetBytePtr(theData); } late final _CFDataGetBytePtrPtr = _lookup Function(CFDataRef)>>( - 'CFDataGetBytePtr'); + 'CFDataGetBytePtr', + ); late final _CFDataGetBytePtr = _CFDataGetBytePtrPtr.asFunction Function(CFDataRef)>(); @@ -108,32 +105,31 @@ class CoreFoundation { ffi.Pointer cStr, int encoding, ) { - return _CFStringCreateWithCString( - alloc, - cStr, - encoding, - ); + return _CFStringCreateWithCString(alloc, cStr, encoding); } late final _CFStringCreateWithCStringPtr = _lookup< - ffi.NativeFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, - CFStringEncoding)>>('CFStringCreateWithCString'); + ffi.NativeFunction< + CFStringRef Function( + CFAllocatorRef, + ffi.Pointer, + CFStringEncoding, + ) + > + >('CFStringCreateWithCString'); late final _CFStringCreateWithCString = _CFStringCreateWithCStringPtr.asFunction< - CFStringRef Function(CFAllocatorRef, ffi.Pointer, int)>(); + CFStringRef Function(CFAllocatorRef, ffi.Pointer, int) + >(); - int CFStringGetLength( - CFStringRef theString, - ) { - return _CFStringGetLength( - theString, - ); + int CFStringGetLength(CFStringRef theString) { + return _CFStringGetLength(theString); } late final _CFStringGetLengthPtr = _lookup>( - 'CFStringGetLength'); + 'CFStringGetLength', + ); late final _CFStringGetLength = _CFStringGetLengthPtr.asFunction(); @@ -143,54 +139,53 @@ class CoreFoundation { int bufferSize, int encoding, ) { - return _CFStringGetCString( - theString, - buffer, - bufferSize, - encoding, - ); + return _CFStringGetCString(theString, buffer, bufferSize, encoding); } late final _CFStringGetCStringPtr = _lookup< - ffi.NativeFunction< - Boolean Function(CFStringRef, ffi.Pointer, CFIndex, - CFStringEncoding)>>('CFStringGetCString'); - late final _CFStringGetCString = _CFStringGetCStringPtr.asFunction< - int Function(CFStringRef, ffi.Pointer, int, int)>(); + ffi.NativeFunction< + Boolean Function( + CFStringRef, + ffi.Pointer, + CFIndex, + CFStringEncoding, + ) + > + >('CFStringGetCString'); + late final _CFStringGetCString = + _CFStringGetCStringPtr.asFunction< + int Function(CFStringRef, ffi.Pointer, int, int) + >(); ffi.Pointer CFStringGetCStringPtr( CFStringRef theString, int encoding, ) { - return _CFStringGetCStringPtr1( - theString, - encoding, - ); + return _CFStringGetCStringPtr1(theString, encoding); } late final _CFStringGetCStringPtrPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - CFStringRef, CFStringEncoding)>>('CFStringGetCStringPtr'); - late final _CFStringGetCStringPtr1 = _CFStringGetCStringPtrPtr.asFunction< - ffi.Pointer Function(CFStringRef, int)>(); - - int CFStringGetMaximumSizeForEncoding( - int length, - int encoding, - ) { - return _CFStringGetMaximumSizeForEncoding( - length, - encoding, - ); + ffi.NativeFunction< + ffi.Pointer Function(CFStringRef, CFStringEncoding) + > + >('CFStringGetCStringPtr'); + late final _CFStringGetCStringPtr1 = + _CFStringGetCStringPtrPtr.asFunction< + ffi.Pointer Function(CFStringRef, int) + >(); + + int CFStringGetMaximumSizeForEncoding(int length, int encoding) { + return _CFStringGetMaximumSizeForEncoding(length, encoding); } late final _CFStringGetMaximumSizeForEncodingPtr = _lookup>( - 'CFStringGetMaximumSizeForEncoding'); + 'CFStringGetMaximumSizeForEncoding', + ); late final _CFStringGetMaximumSizeForEncoding = _CFStringGetMaximumSizeForEncodingPtr.asFunction< - int Function(int, int)>(); + int Function(int, int) + >(); } typedef CFTypeRef = ffi.Pointer; @@ -219,27 +214,43 @@ final class CFDictionaryKeyCallBacks extends ffi.Struct { external CFDictionaryHashCallBack hash; } -typedef CFDictionaryRetainCallBack = ffi.Pointer< - ffi.NativeFunction< +typedef CFDictionaryRetainCallBack = + ffi.Pointer< + ffi.NativeFunction< ffi.Pointer Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFDictionaryReleaseCallBack = ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - CFAllocatorRef allocator, ffi.Pointer value)>>; -typedef CFDictionaryCopyDescriptionCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; + CFAllocatorRef allocator, + ffi.Pointer value, + ) + > + >; +typedef CFDictionaryReleaseCallBack = + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(CFAllocatorRef allocator, ffi.Pointer value) + > + >; +typedef CFDictionaryCopyDescriptionCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; typedef CFStringRef = ffi.Pointer; final class CFString extends ffi.Opaque {} -typedef CFDictionaryEqualCallBack = ffi.Pointer< - ffi.NativeFunction< +typedef CFDictionaryEqualCallBack = + ffi.Pointer< + ffi.NativeFunction< Boolean Function( - ffi.Pointer value1, ffi.Pointer value2)>>; + ffi.Pointer value1, + ffi.Pointer value2, + ) + > + >; typedef Boolean = ffi.UnsignedChar; -typedef CFDictionaryHashCallBack = ffi.Pointer< - ffi.NativeFunction value)>>; +typedef CFDictionaryHashCallBack = + ffi.Pointer< + ffi.NativeFunction value)> + >; typedef CFHashCode = ffi.UnsignedLong; final class CFDictionaryValueCallBacks extends ffi.Struct { diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/cupertino.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/cupertino.dart index 883e254101..a0820b53bb 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/cupertino.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/cupertino.dart @@ -42,7 +42,8 @@ extension CFStringPointerX on Pointer { // Call CFStringGetCString as a backup. // See: https://developer.apple.com/documentation/corefoundation/1542133-cfstringgetcstringptr final strLen = coreFoundation.CFStringGetLength(this); - final maxLen = coreFoundation.CFStringGetMaximumSizeForEncoding( + final maxLen = + coreFoundation.CFStringGetMaximumSizeForEncoding( strLen, kCFStringEncodingUTF8, ) + @@ -55,7 +56,7 @@ extension CFStringPointerX on Pointer { maxLen, kCFStringEncodingUTF8, ); - if (ret == 0 /* FALSE */) { + if (ret == 0 /* FALSE */ ) { return null; } return buffer.cast().toDartString(); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/security.bindings.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/security.bindings.g.dart index aa9b5ff321..07113f7a5f 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/security.bindings.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/cupertino/security.bindings.g.dart @@ -11,37 +11,36 @@ import './core_foundation.bindings.g.dart' as coreFoundation; class Security { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. Security(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. Security.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; coreFoundation.CFStringRef SecCopyErrorMessageString( int status, ffi.Pointer reserved, ) { - return _SecCopyErrorMessageString( - status, - reserved, - ); + return _SecCopyErrorMessageString(status, reserved); } late final _SecCopyErrorMessageStringPtr = _lookup< - ffi.NativeFunction< - coreFoundation.CFStringRef Function( - OSStatus, ffi.Pointer)>>('SecCopyErrorMessageString'); + ffi.NativeFunction< + coreFoundation.CFStringRef Function(OSStatus, ffi.Pointer) + > + >('SecCopyErrorMessageString'); late final _SecCopyErrorMessageString = _SecCopyErrorMessageStringPtr.asFunction< - coreFoundation.CFStringRef Function(int, ffi.Pointer)>(); + coreFoundation.CFStringRef Function(int, ffi.Pointer) + >(); - late final ffi.Pointer _kCFBooleanTrue = - _lookup('kCFBooleanTrue'); + late final ffi.Pointer _kCFBooleanTrue = _lookup( + 'kCFBooleanTrue', + ); CFBooleanRef get kCFBooleanTrue => _kCFBooleanTrue.value; @@ -98,8 +97,9 @@ class Security { _kSecAttrService.value = value; late final ffi.Pointer - _kSecAttrAccessibleWhenUnlocked = - _lookup('kSecAttrAccessibleWhenUnlocked'); + _kSecAttrAccessibleWhenUnlocked = _lookup( + 'kSecAttrAccessibleWhenUnlocked', + ); coreFoundation.CFStringRef get kSecAttrAccessibleWhenUnlocked => _kSecAttrAccessibleWhenUnlocked.value; @@ -108,8 +108,9 @@ class Security { _kSecAttrAccessibleWhenUnlocked.value = value; late final ffi.Pointer - _kSecAttrAccessibleAfterFirstUnlock = - _lookup('kSecAttrAccessibleAfterFirstUnlock'); + _kSecAttrAccessibleAfterFirstUnlock = _lookup( + 'kSecAttrAccessibleAfterFirstUnlock', + ); coreFoundation.CFStringRef get kSecAttrAccessibleAfterFirstUnlock => _kSecAttrAccessibleAfterFirstUnlock.value; @@ -118,42 +119,45 @@ class Security { _kSecAttrAccessibleAfterFirstUnlock.value = value; late final ffi.Pointer - _kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly = + _kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly = _lookup( - 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly'); + 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly', + ); coreFoundation.CFStringRef - get kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly => - _kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly.value; + get kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly => + _kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly.value; set kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly( - coreFoundation.CFStringRef value) => - _kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly.value = value; + coreFoundation.CFStringRef value, + ) => _kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly.value = value; late final ffi.Pointer - _kSecAttrAccessibleWhenUnlockedThisDeviceOnly = + _kSecAttrAccessibleWhenUnlockedThisDeviceOnly = _lookup( - 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly'); + 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly', + ); coreFoundation.CFStringRef get kSecAttrAccessibleWhenUnlockedThisDeviceOnly => _kSecAttrAccessibleWhenUnlockedThisDeviceOnly.value; set kSecAttrAccessibleWhenUnlockedThisDeviceOnly( - coreFoundation.CFStringRef value) => - _kSecAttrAccessibleWhenUnlockedThisDeviceOnly.value = value; + coreFoundation.CFStringRef value, + ) => _kSecAttrAccessibleWhenUnlockedThisDeviceOnly.value = value; late final ffi.Pointer - _kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly = + _kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly = _lookup( - 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly'); + 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly', + ); coreFoundation.CFStringRef - get kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly => - _kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly.value; + get kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly => + _kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly.value; set kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly( - coreFoundation.CFStringRef value) => - _kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly.value = value; + coreFoundation.CFStringRef value, + ) => _kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly.value = value; late final ffi.Pointer _kSecMatchLimit = _lookup('kSecMatchLimit'); @@ -196,8 +200,9 @@ class Security { _kSecValueData.value = value; late final ffi.Pointer - _kSecUseDataProtectionKeychain = - _lookup('kSecUseDataProtectionKeychain'); + _kSecUseDataProtectionKeychain = _lookup( + 'kSecUseDataProtectionKeychain', + ); coreFoundation.CFStringRef get kSecUseDataProtectionKeychain => _kSecUseDataProtectionKeychain.value; @@ -209,69 +214,82 @@ class Security { coreFoundation.CFDictionaryRef query, ffi.Pointer result, ) { - return _SecItemCopyMatching( - query, - result, - ); + return _SecItemCopyMatching(query, result); } late final _SecItemCopyMatchingPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(coreFoundation.CFDictionaryRef, - ffi.Pointer)>>('SecItemCopyMatching'); - late final _SecItemCopyMatching = _SecItemCopyMatchingPtr.asFunction< - int Function(coreFoundation.CFDictionaryRef, - ffi.Pointer)>(); + ffi.NativeFunction< + OSStatus Function( + coreFoundation.CFDictionaryRef, + ffi.Pointer, + ) + > + >('SecItemCopyMatching'); + late final _SecItemCopyMatching = + _SecItemCopyMatchingPtr.asFunction< + int Function( + coreFoundation.CFDictionaryRef, + ffi.Pointer, + ) + >(); int SecItemAdd( coreFoundation.CFDictionaryRef attributes, ffi.Pointer result, ) { - return _SecItemAdd( - attributes, - result, - ); + return _SecItemAdd(attributes, result); } late final _SecItemAddPtr = _lookup< - ffi.NativeFunction< - OSStatus Function(coreFoundation.CFDictionaryRef, - ffi.Pointer)>>('SecItemAdd'); - late final _SecItemAdd = _SecItemAddPtr.asFunction< - int Function(coreFoundation.CFDictionaryRef, - ffi.Pointer)>(); + ffi.NativeFunction< + OSStatus Function( + coreFoundation.CFDictionaryRef, + ffi.Pointer, + ) + > + >('SecItemAdd'); + late final _SecItemAdd = + _SecItemAddPtr.asFunction< + int Function( + coreFoundation.CFDictionaryRef, + ffi.Pointer, + ) + >(); int SecItemUpdate( coreFoundation.CFDictionaryRef query, coreFoundation.CFDictionaryRef attributesToUpdate, ) { - return _SecItemUpdate( - query, - attributesToUpdate, - ); + return _SecItemUpdate(query, attributesToUpdate); } late final _SecItemUpdatePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(coreFoundation.CFDictionaryRef, - coreFoundation.CFDictionaryRef)>>('SecItemUpdate'); - late final _SecItemUpdate = _SecItemUpdatePtr.asFunction< - int Function( - coreFoundation.CFDictionaryRef, coreFoundation.CFDictionaryRef)>(); - - int SecItemDelete( - coreFoundation.CFDictionaryRef query, - ) { - return _SecItemDelete( - query, - ); + ffi.NativeFunction< + OSStatus Function( + coreFoundation.CFDictionaryRef, + coreFoundation.CFDictionaryRef, + ) + > + >('SecItemUpdate'); + late final _SecItemUpdate = + _SecItemUpdatePtr.asFunction< + int Function( + coreFoundation.CFDictionaryRef, + coreFoundation.CFDictionaryRef, + ) + >(); + + int SecItemDelete(coreFoundation.CFDictionaryRef query) { + return _SecItemDelete(query); } late final _SecItemDeletePtr = _lookup< - ffi.NativeFunction< - OSStatus Function(coreFoundation.CFDictionaryRef)>>('SecItemDelete'); - late final _SecItemDelete = _SecItemDeletePtr.asFunction< - int Function(coreFoundation.CFDictionaryRef)>(); + ffi.NativeFunction + >('SecItemDelete'); + late final _SecItemDelete = + _SecItemDeletePtr.asFunction< + int Function(coreFoundation.CFDictionaryRef) + >(); } typedef OSStatus = SInt32; diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/gio/gio.bindings.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/gio/gio.bindings.g.dart index 1e3e62a0a9..ec96f51c3d 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/gio/gio.bindings.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/gio/gio.bindings.g.dart @@ -12,32 +12,32 @@ import '../glib/glib.dart' as glib; class Gio { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. Gio(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. Gio.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; ffi.Pointer g_application_get_application_id( ffi.Pointer application, ) { - return _g_application_get_application_id( - application, - ); + return _g_application_get_application_id(application); } late final _g_application_get_application_idPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('g_application_get_application_id'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > + >('g_application_get_application_id'); late final _g_application_get_application_id = - _g_application_get_application_idPtr.asFunction< - ffi.Pointer Function(ffi.Pointer)>(); + _g_application_get_application_idPtr + .asFunction< + ffi.Pointer Function(ffi.Pointer) + >(); ffi.Pointer g_application_get_default() { return _g_application_get_default(); @@ -45,9 +45,11 @@ class Gio { late final _g_application_get_defaultPtr = _lookup Function()>>( - 'g_application_get_default'); - late final _g_application_get_default = _g_application_get_defaultPtr - .asFunction Function()>(); + 'g_application_get_default', + ); + late final _g_application_get_default = + _g_application_get_defaultPtr + .asFunction Function()>(); } typedef GApplication = _GApplication; diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.bindings.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.bindings.g.dart index d46fc5c6fb..c21604dd79 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.bindings.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.bindings.g.dart @@ -10,66 +10,62 @@ import 'dart:ffi' as ffi; class Glib { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. Glib(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. Glib.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; ffi.Pointer g_hash_table_new( GHashFunc hash_func, GEqualFunc key_equal_func, ) { - return _g_hash_table_new( - hash_func, - key_equal_func, - ); + return _g_hash_table_new(hash_func, key_equal_func); } late final _g_hash_table_newPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - GHashFunc, GEqualFunc)>>('g_hash_table_new'); - late final _g_hash_table_new = _g_hash_table_newPtr - .asFunction Function(GHashFunc, GEqualFunc)>(); - - void g_hash_table_destroy( - ffi.Pointer hash_table, - ) { - return _g_hash_table_destroy( - hash_table, - ); + ffi.NativeFunction Function(GHashFunc, GEqualFunc)> + >('g_hash_table_new'); + late final _g_hash_table_new = + _g_hash_table_newPtr + .asFunction< + ffi.Pointer Function(GHashFunc, GEqualFunc) + >(); + + void g_hash_table_destroy(ffi.Pointer hash_table) { + return _g_hash_table_destroy(hash_table); } late final _g_hash_table_destroyPtr = _lookup)>>( - 'g_hash_table_destroy'); - late final _g_hash_table_destroy = _g_hash_table_destroyPtr - .asFunction)>(); + 'g_hash_table_destroy', + ); + late final _g_hash_table_destroy = + _g_hash_table_destroyPtr + .asFunction)>(); int g_hash_table_insert( ffi.Pointer hash_table, gpointer key, gpointer value, ) { - return _g_hash_table_insert( - hash_table, - key, - value, - ); + return _g_hash_table_insert(hash_table, key, value); } late final _g_hash_table_insertPtr = _lookup< - ffi.NativeFunction< - gboolean Function(ffi.Pointer, gpointer, - gpointer)>>('g_hash_table_insert'); - late final _g_hash_table_insert = _g_hash_table_insertPtr - .asFunction, gpointer, gpointer)>(); + ffi.NativeFunction< + gboolean Function(ffi.Pointer, gpointer, gpointer) + > + >('g_hash_table_insert'); + late final _g_hash_table_insert = + _g_hash_table_insertPtr + .asFunction< + int Function(ffi.Pointer, gpointer, gpointer) + >(); } final class GError extends ffi.Struct { @@ -89,12 +85,14 @@ typedef GHashTable = _GHashTable; final class _GHashTable extends ffi.Opaque {} -typedef GHashFunc - = ffi.Pointer>; +typedef GHashFunc = + ffi.Pointer>; typedef guint = ffi.UnsignedInt; typedef gconstpointer = ffi.Pointer; -typedef GEqualFunc = ffi.Pointer< - ffi.NativeFunction>; +typedef GEqualFunc = + ffi.Pointer< + ffi.NativeFunction + >; typedef gboolean = gint; typedef gpointer = ffi.Pointer; diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.dart index 8976d7252b..e6229de14f 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/glib/glib.dart @@ -18,7 +18,7 @@ final Glib glib = Glib(glibDyLib); final gStrHashPointer = glibDyLib .lookup>('g_str_hash'); -/// Extensions on Pointer. +/// Extensions on Pointer GHashTable. extension GHashTablePointer on Pointer { /// Inserts a new String into the hash table with provided key/value. void insert({ diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.bindings.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.bindings.g.dart index 1e562752e8..422d4850e3 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.bindings.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.bindings.g.dart @@ -12,17 +12,16 @@ import 'package:ffi/ffi.dart' as pkg_ffi; class Libsecret { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) - _lookup; + _lookup; /// The symbols are looked up in [dynamicLibrary]. Libsecret(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; + : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. Libsecret.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; + ffi.Pointer Function(String symbolName) lookup, + ) : _lookup = lookup; int secret_password_storev_sync( ffi.Pointer schema, @@ -45,26 +44,31 @@ class Libsecret { } late final _secret_password_storev_syncPtr = _lookup< - ffi.NativeFunction< - glib.gboolean Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'secret_password_storev_sync'); + ffi.NativeFunction< + glib.gboolean Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('secret_password_storev_sync'); late final _secret_password_storev_sync = - _secret_password_storev_syncPtr.asFunction< - int Function( + _secret_password_storev_syncPtr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); ffi.Pointer secret_password_lookupv_sync( ffi.Pointer schema, @@ -81,20 +85,25 @@ class Libsecret { } late final _secret_password_lookupv_syncPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'secret_password_lookupv_sync'); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('secret_password_lookupv_sync'); late final _secret_password_lookupv_sync = - _secret_password_lookupv_syncPtr.asFunction< - ffi.Pointer Function( + _secret_password_lookupv_syncPtr + .asFunction< + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); int secret_password_clearv_sync( ffi.Pointer schema, @@ -102,43 +111,41 @@ class Libsecret { ffi.Pointer cancellable, ffi.Pointer> error, ) { - return _secret_password_clearv_sync( - schema, - attributes, - cancellable, - error, - ); + return _secret_password_clearv_sync(schema, attributes, cancellable, error); } late final _secret_password_clearv_syncPtr = _lookup< - ffi.NativeFunction< - glib.gboolean Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>( - 'secret_password_clearv_sync'); + ffi.NativeFunction< + glib.gboolean Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ) + > + >('secret_password_clearv_sync'); late final _secret_password_clearv_sync = - _secret_password_clearv_syncPtr.asFunction< - int Function( + _secret_password_clearv_syncPtr + .asFunction< + int Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer>, + ) + >(); - void secret_password_free( - ffi.Pointer password, - ) { - return _secret_password_free( - password, - ); + void secret_password_free(ffi.Pointer password) { + return _secret_password_free(password); } late final _secret_password_freePtr = _lookup)>>( - 'secret_password_free'); - late final _secret_password_free = _secret_password_freePtr - .asFunction)>(); + 'secret_password_free', + ); + late final _secret_password_free = + _secret_password_freePtr + .asFunction)>(); } abstract class SecretSchemaAttributeType { diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.dart index 708a134cb5..68ac019435 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/libsecret/libsecret.dart @@ -14,7 +14,7 @@ final DynamicLibrary libsecretDyLib = openDynamicLibrary('libsecret-1'); final Libsecret libsecret = Libsecret(libsecretDyLib); -/// Extensions on Pointer. +/// Extensions on Pointer SecretSchema. extension SecretSchemaPointer on Pointer { /// Inserts the attribute into the schema with a type SECRET_SCHEMA_ATTRIBUTE_STRING. void insertAttribute(int index, String attribute, {required Arena arena}) { diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/utils/linux_utils.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/utils/linux_utils.dart index cb0e6d61b1..e0f63e66b3 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/utils/linux_utils.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/utils/linux_utils.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library amplify_secure_storage_dart.ffi.linux_utils; +library; import 'dart:ffi'; import 'dart:io'; diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart index b041e0145d..48303158a6 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/data_protection.dart @@ -31,9 +31,10 @@ String decryptString(Uint8List data) { Uint8List encrypt(Uint8List list) { return using((Arena arena) { final blob = list.allocatePointerWith(arena); - final dataPtr = arena() - ..ref.cbData = list.length - ..ref.pbData = blob; + final dataPtr = + arena() + ..ref.cbData = list.length + ..ref.pbData = blob; final encryptedPtr = arena(); CryptProtectData( dataPtr, @@ -60,9 +61,10 @@ Uint8List encrypt(Uint8List list) { Uint8List decrypt(Uint8List list) { return using((Arena arena) { final blob = list.allocatePointerWith(arena); - final dataPtr = arena() - ..ref.cbData = list.length - ..ref.pbData = blob; + final dataPtr = + arena() + ..ref.cbData = list.length + ..ref.pbData = blob; final unencryptedPtr = arena(); CryptUnprotectData( dataPtr, diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/utils.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/utils.dart index 961e030899..db8c077d48 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/utils.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/ffi/win32/utils.dart @@ -20,9 +20,7 @@ extension Uint8ListBlobConversionX on Uint8List { /// Returns a [SecureStorageException] from the Win32 error code SecureStorageException getExceptionFromErrorCode(int errorCode) { - final underlying = WindowsException( - HRESULT_FROM_WIN32(errorCode), - ); + final underlying = WindowsException(HRESULT_FROM_WIN32(errorCode)); return UnknownException( 'An unknown exception occurred.', recoverySuggestion: SecureStorageException.missingRecovery, diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/interfaces/amplify_secure_storage_interface.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/interfaces/amplify_secure_storage_interface.dart index 2ff2192c8a..f93d6c2133 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/interfaces/amplify_secure_storage_interface.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/interfaces/amplify_secure_storage_interface.dart @@ -25,7 +25,8 @@ abstract class AmplifySecureStorageInterface extends SecureStorageInterface /// on other platforms. /// {@endtemplate} @internal - FutureOr removeAll() => throw UnimplementedError( + FutureOr removeAll() => + throw UnimplementedError( 'removeAll is not implemented for this platform', ); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_cupertino.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_cupertino.dart index f21142ce32..414fe6c23f 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_cupertino.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_cupertino.dart @@ -30,20 +30,20 @@ import 'package:meta/meta.dart'; /// - [Service Attribute](https://developer.apple.com/documentation/security/kSecAttrService?language=objc) class AmplifySecureStorageCupertino extends AmplifySecureStorageInterface { /// {@macro amplify_secure_storage_dart.amplify_secure_storage_cupertino} - const AmplifySecureStorageCupertino({ - required super.config, - }); + const AmplifySecureStorageCupertino({required super.config}); /// The value of the service name attribute for all keychain items. String get _serviceName => config.defaultNamespace; - String? get _accessGroup => Platform.isIOS - ? config.iOSOptions.accessGroup - : config.macOSOptions.accessGroup; + String? get _accessGroup => + Platform.isIOS + ? config.iOSOptions.accessGroup + : config.macOSOptions.accessGroup; - Pointer? get _accessible => Platform.isIOS - ? config.iOSOptions.accessible?.toCFStringRef() - : config.macOSOptions.accessible?.toCFStringRef(); + Pointer? get _accessible => + Platform.isIOS + ? config.iOSOptions.accessible?.toCFStringRef() + : config.macOSOptions.accessible?.toCFStringRef(); bool get _useDataProtection => Platform.isMacOS && config.macOSOptions.useDataProtection; @@ -144,15 +144,9 @@ class AmplifySecureStorageCupertino extends AmplifySecureStorageInterface { /// Removes an item from the keychain. /// /// throws [ItemNotFoundException] if the item is not in the keychain. - void _remove({ - required String key, - required Arena arena, - }) { + void _remove({required String key, required Arena arena}) { final baseQueryAttributes = _getBaseAttributes(key: key, arena: arena); - final query = _createCFDictionary( - map: baseQueryAttributes, - arena: arena, - ); + final query = _createCFDictionary(map: baseQueryAttributes, arena: arena); final status = security.SecItemDelete(query); if (status != errSecSuccess) { throw _getExceptionFromResultCode(status); @@ -162,9 +156,7 @@ class AmplifySecureStorageCupertino extends AmplifySecureStorageInterface { /// Removes all items from the keychain. /// /// throws [ItemNotFoundException] if no items are found in the keychain. - void _removeAll({ - required Arena arena, - }) { + void _removeAll({required Arena arena}) { final baseQueryAttributes = _getBaseAttributes(arena: arena); final query = _createCFDictionary( map: { @@ -246,7 +238,7 @@ class AmplifySecureStorageCupertino extends AmplifySecureStorageInterface { /// allocations. /// /// The attributes keys & values should be a pointer to a CF type such - /// as Pointer or Pointer + /// as Pointer CFString or PointerCFData Pointer _createCFDictionary({ required Map map, required Arena arena, @@ -294,10 +286,7 @@ class AmplifySecureStorageCupertino extends AmplifySecureStorageInterface { /// Creates a CFData Pointer from a Dart String and registers /// a callback to release it from memory when the arena frees /// allocations. - Pointer _createCFData({ - required String value, - required Arena arena, - }) { + Pointer _createCFData({required String value, required Arena arena}) { final valuePtr = value.toNativeUtf8(allocator: arena); final length = valuePtr.length; final bytes = valuePtr.cast(); @@ -328,10 +317,7 @@ class SecurityFrameworkError { factory SecurityFrameworkError.fromCode(int code) { final cfString = security.SecCopyErrorMessageString(code, nullptr); if (cfString == nullptr) { - return SecurityFrameworkError( - code: code, - message: _noErrorStringMessage, - ); + return SecurityFrameworkError(code: code, message: _noErrorStringMessage); } try { final message = cfString.toDartString() ?? _noErrorStringMessage; @@ -388,9 +374,10 @@ class SecurityFrameworkError { underlyingException: this, ); case errSecMissingEntitlement: - final recoverySuggestion = Platform.isMacOS - ? _missingEntitlementRecoveryMacOS - : SecureStorageException.missingRecovery; + final recoverySuggestion = + Platform.isMacOS + ? _missingEntitlementRecoveryMacOS + : SecureStorageException.missingRecovery; return AccessDeniedException( 'Could not access the items in the keychain due to a missing entitlement.', recoverySuggestion: recoverySuggestion, diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_linux.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_linux.dart index f4a2ec495f..bf12987df5 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_linux.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_linux.dart @@ -145,18 +145,10 @@ class AmplifySecureStorageLinux extends AmplifySecureStorageInterface { /// If no key is provided, an empty [GHashTable] is returned. /// /// The hash table will be destroyed when the arena releases memory. - Pointer _getAttributes({ - String? key, - required Arena arena, - }) { + Pointer _getAttributes({String? key, required Arena arena}) { final gHashTable = glib.g_hash_table_new(gStrHashPointer, nullptr); if (key != null) { - gHashTable.insertAll( - { - Attributes.key.name: key, - }, - arena: arena, - ); + gHashTable.insertAll({Attributes.key.name: key}, arena: arena); } arena.onReleaseAll(() { glib.g_hash_table_destroy(gHashTable); @@ -166,6 +158,4 @@ class AmplifySecureStorageLinux extends AmplifySecureStorageInterface { } /// The attributes used to identify the secret. -enum Attributes { - key, -} +enum Attributes { key } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_web.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_web.dart index ec2ce42219..1ab958ceca 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_web.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_web.dart @@ -68,9 +68,10 @@ class _IndexedDBStorage extends AmplifySecureStorageInterface { /// The name of the database /// /// Reference: https://www.w3.org/TR/IndexedDB/#name - String get databaseName => config.webOptions.databaseName != null - ? config.webOptions.databaseName! - : config.defaultNamespace; + String get databaseName => + config.webOptions.databaseName != null + ? config.webOptions.databaseName! + : config.defaultNamespace; /// The name of the object store /// diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_windows.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_windows.dart index 902d0f956c..fd86996ff0 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_windows.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/platforms/amplify_secure_storage_windows.dart @@ -11,9 +11,7 @@ import 'package:file/memory.dart'; /// The windows implementation of [SecureStorageInterface]. class AmplifySecureStorageWindows extends AmplifySecureStorageInterface { - AmplifySecureStorageWindows({ - required super.config, - }); + AmplifySecureStorageWindows({required super.config}); late final FileKeyValueStore keyValueStore = () { final directory = config.windowsOptions.storagePath; diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.dart index 6a652e2728..a182eedd30 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.dart @@ -37,9 +37,7 @@ abstract class AmplifySecureStorageConfig } /// Configuration options for overriding the default namespace. - factory AmplifySecureStorageConfig.byNamespace({ - required String namespace, - }) { + factory AmplifySecureStorageConfig.byNamespace({required String namespace}) { return _$AmplifySecureStorageConfig._( namespace: namespace, webOptions: WebSecureStorageOptions(), diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.g.dart index 2c9f88f5fd..9d67f959d6 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/amplify_secure_storage_config.g.dart @@ -14,54 +14,70 @@ class _$AmplifySecureStorageConfigSerializer @override final Iterable types = const [ AmplifySecureStorageConfig, - _$AmplifySecureStorageConfig + _$AmplifySecureStorageConfig, ]; @override final String wireName = 'AmplifySecureStorageConfig'; @override Iterable serialize( - Serializers serializers, AmplifySecureStorageConfig object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + AmplifySecureStorageConfig object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'webOptions', - serializers.serialize(object.webOptions, - specifiedType: const FullType(WebSecureStorageOptions)), + serializers.serialize( + object.webOptions, + specifiedType: const FullType(WebSecureStorageOptions), + ), 'windowsOptions', - serializers.serialize(object.windowsOptions, - specifiedType: const FullType(WindowsSecureStorageOptions)), + serializers.serialize( + object.windowsOptions, + specifiedType: const FullType(WindowsSecureStorageOptions), + ), 'linuxOptions', - serializers.serialize(object.linuxOptions, - specifiedType: const FullType(LinuxSecureStorageOptions)), + serializers.serialize( + object.linuxOptions, + specifiedType: const FullType(LinuxSecureStorageOptions), + ), 'macOSOptions', - serializers.serialize(object.macOSOptions, - specifiedType: const FullType(MacOSSecureStorageOptions)), + serializers.serialize( + object.macOSOptions, + specifiedType: const FullType(MacOSSecureStorageOptions), + ), 'iOSOptions', - serializers.serialize(object.iOSOptions, - specifiedType: const FullType(IOSSecureStorageOptions)), + serializers.serialize( + object.iOSOptions, + specifiedType: const FullType(IOSSecureStorageOptions), + ), ]; Object? value; value = object.namespace; if (value != null) { result ..add('namespace') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.scope; if (value != null) { result ..add('scope') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override AmplifySecureStorageConfig deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new AmplifySecureStorageConfigBuilder(); final iterator = serialized.iterator; @@ -71,37 +87,65 @@ class _$AmplifySecureStorageConfigSerializer final Object? value = iterator.current; switch (key) { case 'namespace': - result.namespace = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.namespace = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'scope': - result.scope = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.scope = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'webOptions': - result.webOptions.replace(serializers.deserialize(value, - specifiedType: const FullType(WebSecureStorageOptions))! - as WebSecureStorageOptions); + result.webOptions.replace( + serializers.deserialize( + value, + specifiedType: const FullType(WebSecureStorageOptions), + )! + as WebSecureStorageOptions, + ); break; case 'windowsOptions': - result.windowsOptions.replace(serializers.deserialize(value, - specifiedType: const FullType(WindowsSecureStorageOptions))! - as WindowsSecureStorageOptions); + result.windowsOptions.replace( + serializers.deserialize( + value, + specifiedType: const FullType(WindowsSecureStorageOptions), + )! + as WindowsSecureStorageOptions, + ); break; case 'linuxOptions': - result.linuxOptions.replace(serializers.deserialize(value, - specifiedType: const FullType(LinuxSecureStorageOptions))! - as LinuxSecureStorageOptions); + result.linuxOptions.replace( + serializers.deserialize( + value, + specifiedType: const FullType(LinuxSecureStorageOptions), + )! + as LinuxSecureStorageOptions, + ); break; case 'macOSOptions': - result.macOSOptions.replace(serializers.deserialize(value, - specifiedType: const FullType(MacOSSecureStorageOptions))! - as MacOSSecureStorageOptions); + result.macOSOptions.replace( + serializers.deserialize( + value, + specifiedType: const FullType(MacOSSecureStorageOptions), + )! + as MacOSSecureStorageOptions, + ); break; case 'iOSOptions': - result.iOSOptions.replace(serializers.deserialize(value, - specifiedType: const FullType(IOSSecureStorageOptions))! - as IOSSecureStorageOptions); + result.iOSOptions.replace( + serializers.deserialize( + value, + specifiedType: const FullType(IOSSecureStorageOptions), + )! + as IOSSecureStorageOptions, + ); break; } } @@ -126,35 +170,50 @@ class _$AmplifySecureStorageConfig extends AmplifySecureStorageConfig { @override final IOSSecureStorageOptions iOSOptions; - factory _$AmplifySecureStorageConfig( - [void Function(AmplifySecureStorageConfigBuilder)? updates]) => - (new AmplifySecureStorageConfigBuilder()..update(updates))._build(); + factory _$AmplifySecureStorageConfig([ + void Function(AmplifySecureStorageConfigBuilder)? updates, + ]) => (new AmplifySecureStorageConfigBuilder()..update(updates))._build(); - _$AmplifySecureStorageConfig._( - {this.namespace, - this.scope, - required this.webOptions, - required this.windowsOptions, - required this.linuxOptions, - required this.macOSOptions, - required this.iOSOptions}) - : super._() { + _$AmplifySecureStorageConfig._({ + this.namespace, + this.scope, + required this.webOptions, + required this.windowsOptions, + required this.linuxOptions, + required this.macOSOptions, + required this.iOSOptions, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - webOptions, r'AmplifySecureStorageConfig', 'webOptions'); + webOptions, + r'AmplifySecureStorageConfig', + 'webOptions', + ); BuiltValueNullFieldError.checkNotNull( - windowsOptions, r'AmplifySecureStorageConfig', 'windowsOptions'); + windowsOptions, + r'AmplifySecureStorageConfig', + 'windowsOptions', + ); BuiltValueNullFieldError.checkNotNull( - linuxOptions, r'AmplifySecureStorageConfig', 'linuxOptions'); + linuxOptions, + r'AmplifySecureStorageConfig', + 'linuxOptions', + ); BuiltValueNullFieldError.checkNotNull( - macOSOptions, r'AmplifySecureStorageConfig', 'macOSOptions'); + macOSOptions, + r'AmplifySecureStorageConfig', + 'macOSOptions', + ); BuiltValueNullFieldError.checkNotNull( - iOSOptions, r'AmplifySecureStorageConfig', 'iOSOptions'); + iOSOptions, + r'AmplifySecureStorageConfig', + 'iOSOptions', + ); } @override AmplifySecureStorageConfig rebuild( - void Function(AmplifySecureStorageConfigBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AmplifySecureStorageConfigBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AmplifySecureStorageConfigBuilder toBuilder() => @@ -278,15 +337,17 @@ class AmplifySecureStorageConfigBuilder _$AmplifySecureStorageConfig _build() { _$AmplifySecureStorageConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AmplifySecureStorageConfig._( - namespace: namespace, - scope: scope, - webOptions: webOptions.build(), - windowsOptions: windowsOptions.build(), - linuxOptions: linuxOptions.build(), - macOSOptions: macOSOptions.build(), - iOSOptions: iOSOptions.build()); + namespace: namespace, + scope: scope, + webOptions: webOptions.build(), + windowsOptions: windowsOptions.build(), + linuxOptions: linuxOptions.build(), + macOSOptions: macOSOptions.build(), + iOSOptions: iOSOptions.build(), + ); } catch (_) { late String _$failedField; try { @@ -302,7 +363,10 @@ class AmplifySecureStorageConfigBuilder iOSOptions.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AmplifySecureStorageConfig', _$failedField, e.toString()); + r'AmplifySecureStorageConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.dart index 5e0a656dbf..ce7203012c 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.dart @@ -37,10 +37,7 @@ abstract class IOSSecureStorageOptions /// This will result in the default values being used. @internal factory IOSSecureStorageOptions.empty() { - return _$IOSSecureStorageOptions._( - accessible: null, - accessGroup: null, - ); + return _$IOSSecureStorageOptions._(accessible: null, accessGroup: null); } const IOSSecureStorageOptions._(); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.g.dart index 55dea14490..cce5a04b7e 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/ios_secure_storage_options.g.dart @@ -14,38 +14,47 @@ class _$IOSSecureStorageOptionsSerializer @override final Iterable types = const [ IOSSecureStorageOptions, - _$IOSSecureStorageOptions + _$IOSSecureStorageOptions, ]; @override final String wireName = 'IOSSecureStorageOptions'; @override Iterable serialize( - Serializers serializers, IOSSecureStorageOptions object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + IOSSecureStorageOptions object, { + FullType specifiedType = FullType.unspecified, + }) { final result = []; Object? value; value = object.accessGroup; if (value != null) { result ..add('accessGroup') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.accessible; if (value != null) { result ..add('accessible') - ..add(serializers.serialize(value, - specifiedType: const FullType(KeychainAttributeAccessible))); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(KeychainAttributeAccessible), + ), + ); } return result; } @override IOSSecureStorageOptions deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new IOSSecureStorageOptionsBuilder(); final iterator = serialized.iterator; @@ -55,13 +64,20 @@ class _$IOSSecureStorageOptionsSerializer final Object? value = iterator.current; switch (key) { case 'accessGroup': - result.accessGroup = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.accessGroup = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'accessible': - result.accessible = serializers.deserialize(value, - specifiedType: const FullType(KeychainAttributeAccessible)) - as KeychainAttributeAccessible?; + result.accessible = + serializers.deserialize( + value, + specifiedType: const FullType(KeychainAttributeAccessible), + ) + as KeychainAttributeAccessible?; break; } } @@ -76,16 +92,16 @@ class _$IOSSecureStorageOptions extends IOSSecureStorageOptions { @override final KeychainAttributeAccessible? accessible; - factory _$IOSSecureStorageOptions( - [void Function(IOSSecureStorageOptionsBuilder)? updates]) => - (new IOSSecureStorageOptionsBuilder()..update(updates))._build(); + factory _$IOSSecureStorageOptions([ + void Function(IOSSecureStorageOptionsBuilder)? updates, + ]) => (new IOSSecureStorageOptionsBuilder()..update(updates))._build(); _$IOSSecureStorageOptions._({this.accessGroup, this.accessible}) : super._(); @override IOSSecureStorageOptions rebuild( - void Function(IOSSecureStorageOptionsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IOSSecureStorageOptionsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IOSSecureStorageOptionsBuilder toBuilder() => @@ -158,9 +174,12 @@ class IOSSecureStorageOptionsBuilder IOSSecureStorageOptions build() => _build(); _$IOSSecureStorageOptions _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$IOSSecureStorageOptions._( - accessGroup: accessGroup, accessible: accessible); + accessGroup: accessGroup, + accessible: accessible, + ); replace(_$result); return _$result; } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.dart index bb669b9171..6df396249c 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.dart @@ -19,7 +19,7 @@ class KeychainAttributeAccessible extends EnumClass { /// /// Reference: https://developer.apple.com/documentation/security/ksecattraccessiblewhenpasscodesetthisdeviceonly static const KeychainAttributeAccessible - accessibleWhenPasscodeSetThisDeviceOnly = + accessibleWhenPasscodeSetThisDeviceOnly = _$accessibleWhenPasscodeSetThisDeviceOnly; /// The data in the keychain item can be accessed only while the device is unlocked by the user. @@ -28,8 +28,7 @@ class KeychainAttributeAccessible extends EnumClass { /// /// Reference: https://developer.apple.com/documentation/security/ksecattraccessiblewhenunlockedthisdeviceonly static const KeychainAttributeAccessible - accessibleWhenUnlockedThisDeviceOnly = - _$accessibleWhenUnlockedThisDeviceOnly; + accessibleWhenUnlockedThisDeviceOnly = _$accessibleWhenUnlockedThisDeviceOnly; /// The data in the keychain item can be accessed only while the device is unlocked by the user. /// @@ -43,7 +42,7 @@ class KeychainAttributeAccessible extends EnumClass { /// /// Reference: https://developer.apple.com/documentation/security/ksecattraccessibleafterfirstunlockthisdeviceonly static const KeychainAttributeAccessible - accessibleAfterFirstUnlockThisDeviceOnly = + accessibleAfterFirstUnlockThisDeviceOnly = _$accessibleAfterFirstUnlockThisDeviceOnly; /// The data in the keychain item cannot be accessed after a restart until the device has been unlocked once by the user. diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.g.dart index aea9b3f48c..dabf13a5d5 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/keychain_attribute_accessible.g.dart @@ -8,14 +8,16 @@ part of 'keychain_attribute_accessible.dart'; const KeychainAttributeAccessible _$accessibleWhenPasscodeSetThisDeviceOnly = const KeychainAttributeAccessible._( - 'accessibleWhenPasscodeSetThisDeviceOnly'); + 'accessibleWhenPasscodeSetThisDeviceOnly', + ); const KeychainAttributeAccessible _$accessibleWhenUnlockedThisDeviceOnly = const KeychainAttributeAccessible._('accessibleWhenUnlockedThisDeviceOnly'); const KeychainAttributeAccessible _$accessibleWhenUnlocked = const KeychainAttributeAccessible._('accessibleWhenUnlocked'); const KeychainAttributeAccessible _$accessibleAfterFirstUnlockThisDeviceOnly = const KeychainAttributeAccessible._( - 'accessibleAfterFirstUnlockThisDeviceOnly'); + 'accessibleAfterFirstUnlockThisDeviceOnly', + ); const KeychainAttributeAccessible _$accessibleAfterFirstUnlock = const KeychainAttributeAccessible._('accessibleAfterFirstUnlock'); @@ -37,17 +39,18 @@ KeychainAttributeAccessible _$KeychainAttributeAccessibleValueOf(String name) { } final BuiltSet - _$KeychainAttributeAccessibleValues = new BuiltSet< - KeychainAttributeAccessible>(const [ - _$accessibleWhenPasscodeSetThisDeviceOnly, - _$accessibleWhenUnlockedThisDeviceOnly, - _$accessibleWhenUnlocked, - _$accessibleAfterFirstUnlockThisDeviceOnly, - _$accessibleAfterFirstUnlock, -]); +_$KeychainAttributeAccessibleValues = new BuiltSet( + const [ + _$accessibleWhenPasscodeSetThisDeviceOnly, + _$accessibleWhenUnlockedThisDeviceOnly, + _$accessibleWhenUnlocked, + _$accessibleAfterFirstUnlockThisDeviceOnly, + _$accessibleAfterFirstUnlock, + ], +); Serializer - _$keychainAttributeAccessibleSerializer = +_$keychainAttributeAccessibleSerializer = new _$KeychainAttributeAccessibleSerializer(); class _$KeychainAttributeAccessibleSerializer @@ -58,15 +61,18 @@ class _$KeychainAttributeAccessibleSerializer final String wireName = 'KeychainAttributeAccessible'; @override - Object serialize(Serializers serializers, KeychainAttributeAccessible object, - {FullType specifiedType = FullType.unspecified}) => - object.name; + Object serialize( + Serializers serializers, + KeychainAttributeAccessible object, { + FullType specifiedType = FullType.unspecified, + }) => object.name; @override KeychainAttributeAccessible deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - KeychainAttributeAccessible.valueOf(serialized as String); + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => KeychainAttributeAccessible.valueOf(serialized as String); } // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.dart index 3a394ea430..1bf6d9bd68 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.dart @@ -25,9 +25,8 @@ abstract class LinuxSecureStorageOptions /// [SecretSchema](https://developer-old.gnome.org/libsecret/unstable/libsecret-SecretSchema.html#SecretSchema) /// schema name. /// {@endtemplate} - factory LinuxSecureStorageOptions({ - String? accessGroup, - }) = _$LinuxSecureStorageOptions._; + factory LinuxSecureStorageOptions({String? accessGroup}) = + _$LinuxSecureStorageOptions._; const LinuxSecureStorageOptions._(); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.g.dart index 184e404704..4d5dd74dbd 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/linux_secure_storage_options.g.dart @@ -14,31 +14,36 @@ class _$LinuxSecureStorageOptionsSerializer @override final Iterable types = const [ LinuxSecureStorageOptions, - _$LinuxSecureStorageOptions + _$LinuxSecureStorageOptions, ]; @override final String wireName = 'LinuxSecureStorageOptions'; @override Iterable serialize( - Serializers serializers, LinuxSecureStorageOptions object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + LinuxSecureStorageOptions object, { + FullType specifiedType = FullType.unspecified, + }) { final result = []; Object? value; value = object.accessGroup; if (value != null) { result ..add('accessGroup') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override LinuxSecureStorageOptions deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new LinuxSecureStorageOptionsBuilder(); final iterator = serialized.iterator; @@ -48,8 +53,12 @@ class _$LinuxSecureStorageOptionsSerializer final Object? value = iterator.current; switch (key) { case 'accessGroup': - result.accessGroup = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.accessGroup = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; } } @@ -62,16 +71,16 @@ class _$LinuxSecureStorageOptions extends LinuxSecureStorageOptions { @override final String? accessGroup; - factory _$LinuxSecureStorageOptions( - [void Function(LinuxSecureStorageOptionsBuilder)? updates]) => - (new LinuxSecureStorageOptionsBuilder()..update(updates))._build(); + factory _$LinuxSecureStorageOptions([ + void Function(LinuxSecureStorageOptionsBuilder)? updates, + ]) => (new LinuxSecureStorageOptionsBuilder()..update(updates))._build(); _$LinuxSecureStorageOptions._({this.accessGroup}) : super._(); @override LinuxSecureStorageOptions rebuild( - void Function(LinuxSecureStorageOptionsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(LinuxSecureStorageOptionsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override LinuxSecureStorageOptionsBuilder toBuilder() => @@ -95,8 +104,7 @@ class _$LinuxSecureStorageOptions extends LinuxSecureStorageOptions { @override String toString() { return (newBuiltValueToStringHelper(r'LinuxSecureStorageOptions') - ..add('accessGroup', accessGroup)) - .toString(); + ..add('accessGroup', accessGroup)).toString(); } } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/macos_secure_storage_options.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/macos_secure_storage_options.g.dart index 48d2fd0ba4..1cd36eeef0 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/macos_secure_storage_options.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/macos_secure_storage_options.g.dart @@ -14,42 +14,53 @@ class _$MacOSSecureStorageOptionsSerializer @override final Iterable types = const [ MacOSSecureStorageOptions, - _$MacOSSecureStorageOptions + _$MacOSSecureStorageOptions, ]; @override final String wireName = 'MacOSSecureStorageOptions'; @override Iterable serialize( - Serializers serializers, MacOSSecureStorageOptions object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + MacOSSecureStorageOptions object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'useDataProtection', - serializers.serialize(object.useDataProtection, - specifiedType: const FullType(bool)), + serializers.serialize( + object.useDataProtection, + specifiedType: const FullType(bool), + ), ]; Object? value; value = object.accessGroup; if (value != null) { result ..add('accessGroup') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.accessible; if (value != null) { result ..add('accessible') - ..add(serializers.serialize(value, - specifiedType: const FullType(KeychainAttributeAccessible))); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(KeychainAttributeAccessible), + ), + ); } return result; } @override MacOSSecureStorageOptions deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new MacOSSecureStorageOptionsBuilder(); final iterator = serialized.iterator; @@ -59,17 +70,28 @@ class _$MacOSSecureStorageOptionsSerializer final Object? value = iterator.current; switch (key) { case 'useDataProtection': - result.useDataProtection = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; + result.useDataProtection = + serializers.deserialize( + value, + specifiedType: const FullType(bool), + )! + as bool; break; case 'accessGroup': - result.accessGroup = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.accessGroup = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'accessible': - result.accessible = serializers.deserialize(value, - specifiedType: const FullType(KeychainAttributeAccessible)) - as KeychainAttributeAccessible?; + result.accessible = + serializers.deserialize( + value, + specifiedType: const FullType(KeychainAttributeAccessible), + ) + as KeychainAttributeAccessible?; break; } } @@ -86,21 +108,26 @@ class _$MacOSSecureStorageOptions extends MacOSSecureStorageOptions { @override final KeychainAttributeAccessible? accessible; - factory _$MacOSSecureStorageOptions( - [void Function(MacOSSecureStorageOptionsBuilder)? updates]) => - (new MacOSSecureStorageOptionsBuilder()..update(updates))._build(); + factory _$MacOSSecureStorageOptions([ + void Function(MacOSSecureStorageOptionsBuilder)? updates, + ]) => (new MacOSSecureStorageOptionsBuilder()..update(updates))._build(); - _$MacOSSecureStorageOptions._( - {required this.useDataProtection, this.accessGroup, this.accessible}) - : super._() { + _$MacOSSecureStorageOptions._({ + required this.useDataProtection, + this.accessGroup, + this.accessible, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - useDataProtection, r'MacOSSecureStorageOptions', 'useDataProtection'); + useDataProtection, + r'MacOSSecureStorageOptions', + 'useDataProtection', + ); } @override MacOSSecureStorageOptions rebuild( - void Function(MacOSSecureStorageOptionsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MacOSSecureStorageOptionsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MacOSSecureStorageOptionsBuilder toBuilder() => @@ -182,14 +209,17 @@ class MacOSSecureStorageOptionsBuilder MacOSSecureStorageOptions build() => _build(); _$MacOSSecureStorageOptions _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MacOSSecureStorageOptions._( - useDataProtection: BuiltValueNullFieldError.checkNotNull( - useDataProtection, - r'MacOSSecureStorageOptions', - 'useDataProtection'), - accessGroup: accessGroup, - accessible: accessible); + useDataProtection: BuiltValueNullFieldError.checkNotNull( + useDataProtection, + r'MacOSSecureStorageOptions', + 'useDataProtection', + ), + accessGroup: accessGroup, + accessible: accessible, + ); replace(_$result); return _$result; } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/secure_storage_factory.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/secure_storage_factory.dart index 0bc2578ac5..beff6e0f7b 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/secure_storage_factory.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/secure_storage_factory.dart @@ -4,9 +4,8 @@ import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; /// A factory constructor for a [SecureStorageInterface] instance. -typedef SecureStorageFactory = SecureStorageInterface Function( - AmplifySecureStorageScope amplifyScope, -); +typedef SecureStorageFactory = + SecureStorageInterface Function(AmplifySecureStorageScope amplifyScope); /// Storage scope for config of [SecureStorageInterface] within Amplify. enum AmplifySecureStorageScope { diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.dart index 053684f7f9..3fd5795949 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.dart @@ -17,11 +17,10 @@ abstract class WebSecureStorageOptions factory WebSecureStorageOptions({ String? databaseName, WebPersistenceOption persistenceOption = WebPersistenceOption.indexedDB, - }) => - _$WebSecureStorageOptions._( - databaseName: databaseName, - persistenceOption: persistenceOption, - ); + }) => _$WebSecureStorageOptions._( + databaseName: databaseName, + persistenceOption: persistenceOption, + ); const WebSecureStorageOptions._(); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.g.dart index bcaa4bce78..3cff187228 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/web_secure_storage_options.g.dart @@ -6,10 +6,12 @@ part of 'web_secure_storage_options.dart'; // BuiltValueGenerator // ************************************************************************** -const WebPersistenceOption _$inMemory = - const WebPersistenceOption._('inMemory'); -const WebPersistenceOption _$indexedDB = - const WebPersistenceOption._('indexedDB'); +const WebPersistenceOption _$inMemory = const WebPersistenceOption._( + 'inMemory', +); +const WebPersistenceOption _$indexedDB = const WebPersistenceOption._( + 'indexedDB', +); WebPersistenceOption _$WebPersistenceOptionValueOf(String name) { switch (name) { @@ -24,9 +26,9 @@ WebPersistenceOption _$WebPersistenceOptionValueOf(String name) { final BuiltSet _$WebPersistenceOptionValues = new BuiltSet(const [ - _$inMemory, - _$indexedDB, -]); + _$inMemory, + _$indexedDB, + ]); Serializer _$webSecureStorageOptionsSerializer = new _$WebSecureStorageOptionsSerializer(); @@ -38,35 +40,42 @@ class _$WebSecureStorageOptionsSerializer @override final Iterable types = const [ WebSecureStorageOptions, - _$WebSecureStorageOptions + _$WebSecureStorageOptions, ]; @override final String wireName = 'WebSecureStorageOptions'; @override Iterable serialize( - Serializers serializers, WebSecureStorageOptions object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + WebSecureStorageOptions object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'persistenceOption', - serializers.serialize(object.persistenceOption, - specifiedType: const FullType(WebPersistenceOption)), + serializers.serialize( + object.persistenceOption, + specifiedType: const FullType(WebPersistenceOption), + ), ]; Object? value; value = object.databaseName; if (value != null) { result ..add('databaseName') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override WebSecureStorageOptions deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new WebSecureStorageOptionsBuilder(); final iterator = serialized.iterator; @@ -76,13 +85,20 @@ class _$WebSecureStorageOptionsSerializer final Object? value = iterator.current; switch (key) { case 'databaseName': - result.databaseName = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.databaseName = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'persistenceOption': - result.persistenceOption = serializers.deserialize(value, - specifiedType: const FullType(WebPersistenceOption))! - as WebPersistenceOption; + result.persistenceOption = + serializers.deserialize( + value, + specifiedType: const FullType(WebPersistenceOption), + )! + as WebPersistenceOption; break; } } @@ -99,14 +115,18 @@ class _$WebPersistenceOptionSerializer final String wireName = 'WebPersistenceOption'; @override - Object serialize(Serializers serializers, WebPersistenceOption object, - {FullType specifiedType = FullType.unspecified}) => - object.name; + Object serialize( + Serializers serializers, + WebPersistenceOption object, { + FullType specifiedType = FullType.unspecified, + }) => object.name; @override - WebPersistenceOption deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - WebPersistenceOption.valueOf(serialized as String); + WebPersistenceOption deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => WebPersistenceOption.valueOf(serialized as String); } class _$WebSecureStorageOptions extends WebSecureStorageOptions { @@ -115,21 +135,25 @@ class _$WebSecureStorageOptions extends WebSecureStorageOptions { @override final WebPersistenceOption persistenceOption; - factory _$WebSecureStorageOptions( - [void Function(WebSecureStorageOptionsBuilder)? updates]) => - (new WebSecureStorageOptionsBuilder()..update(updates))._build(); + factory _$WebSecureStorageOptions([ + void Function(WebSecureStorageOptionsBuilder)? updates, + ]) => (new WebSecureStorageOptionsBuilder()..update(updates))._build(); - _$WebSecureStorageOptions._( - {this.databaseName, required this.persistenceOption}) - : super._() { + _$WebSecureStorageOptions._({ + this.databaseName, + required this.persistenceOption, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - persistenceOption, r'WebSecureStorageOptions', 'persistenceOption'); + persistenceOption, + r'WebSecureStorageOptions', + 'persistenceOption', + ); } @override WebSecureStorageOptions rebuild( - void Function(WebSecureStorageOptionsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(WebSecureStorageOptionsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override WebSecureStorageOptionsBuilder toBuilder() => @@ -202,13 +226,16 @@ class WebSecureStorageOptionsBuilder WebSecureStorageOptions build() => _build(); _$WebSecureStorageOptions _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$WebSecureStorageOptions._( - databaseName: databaseName, - persistenceOption: BuiltValueNullFieldError.checkNotNull( - persistenceOption, - r'WebSecureStorageOptions', - 'persistenceOption')); + databaseName: databaseName, + persistenceOption: BuiltValueNullFieldError.checkNotNull( + persistenceOption, + r'WebSecureStorageOptions', + 'persistenceOption', + ), + ); replace(_$result); return _$result; } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.dart index 25ccc3add2..0abdffa277 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.dart @@ -23,9 +23,8 @@ abstract class WindowsSecureStorageOptions /// An in memory file system will be used when this value is not /// provided in a non-flutter application. /// {@endtemplate} - factory WindowsSecureStorageOptions({ - String? storagePath, - }) = _$WindowsSecureStorageOptions._; + factory WindowsSecureStorageOptions({String? storagePath}) = + _$WindowsSecureStorageOptions._; const WindowsSecureStorageOptions._(); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.g.dart index c852dde314..e2c97e13f9 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/types/windows_secure_storage_options.g.dart @@ -7,7 +7,7 @@ part of 'windows_secure_storage_options.dart'; // ************************************************************************** Serializer - _$windowsSecureStorageOptionsSerializer = +_$windowsSecureStorageOptionsSerializer = new _$WindowsSecureStorageOptionsSerializer(); class _$WindowsSecureStorageOptionsSerializer @@ -15,31 +15,36 @@ class _$WindowsSecureStorageOptionsSerializer @override final Iterable types = const [ WindowsSecureStorageOptions, - _$WindowsSecureStorageOptions + _$WindowsSecureStorageOptions, ]; @override final String wireName = 'WindowsSecureStorageOptions'; @override Iterable serialize( - Serializers serializers, WindowsSecureStorageOptions object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + WindowsSecureStorageOptions object, { + FullType specifiedType = FullType.unspecified, + }) { final result = []; Object? value; value = object.storagePath; if (value != null) { result ..add('storagePath') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override WindowsSecureStorageOptions deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new WindowsSecureStorageOptionsBuilder(); final iterator = serialized.iterator; @@ -49,8 +54,12 @@ class _$WindowsSecureStorageOptionsSerializer final Object? value = iterator.current; switch (key) { case 'storagePath': - result.storagePath = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.storagePath = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; } } @@ -63,16 +72,16 @@ class _$WindowsSecureStorageOptions extends WindowsSecureStorageOptions { @override final String? storagePath; - factory _$WindowsSecureStorageOptions( - [void Function(WindowsSecureStorageOptionsBuilder)? updates]) => - (new WindowsSecureStorageOptionsBuilder()..update(updates))._build(); + factory _$WindowsSecureStorageOptions([ + void Function(WindowsSecureStorageOptionsBuilder)? updates, + ]) => (new WindowsSecureStorageOptionsBuilder()..update(updates))._build(); _$WindowsSecureStorageOptions._({this.storagePath}) : super._(); @override WindowsSecureStorageOptions rebuild( - void Function(WindowsSecureStorageOptionsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(WindowsSecureStorageOptionsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override WindowsSecureStorageOptionsBuilder toBuilder() => @@ -96,15 +105,16 @@ class _$WindowsSecureStorageOptions extends WindowsSecureStorageOptions { @override String toString() { return (newBuiltValueToStringHelper(r'WindowsSecureStorageOptions') - ..add('storagePath', storagePath)) - .toString(); + ..add('storagePath', storagePath)).toString(); } } class WindowsSecureStorageOptionsBuilder implements - Builder { + Builder< + WindowsSecureStorageOptions, + WindowsSecureStorageOptionsBuilder + > { _$WindowsSecureStorageOptions? _$v; String? _storagePath; diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/utils/file_key_value_store.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/utils/file_key_value_store.dart index b87b9b1f32..5b30f3db58 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/utils/file_key_value_store.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/utils/file_key_value_store.dart @@ -42,18 +42,11 @@ class FileKeyValueStore { final pkg_file.FileSystem fs; @visibleForTesting - File get file => fs.file( - pkg_path.join( - path, - fileName, - ), - ); + File get file => fs.file(pkg_path.join(path, fileName)); /// Overwrites the existing data in [file] with the key-value pairs in [data]. @visibleForTesting - Future writeAll( - Map data, - ) async { + Future writeAll(Map data) async { if (!await file.exists()) { await file.create(recursive: true); } @@ -86,10 +79,7 @@ class FileKeyValueStore { } /// Writes a single key to storage. - Future writeKey({ - required String key, - required Object value, - }) async { + Future writeKey({required String key, required Object value}) async { return _scheduler.schedule(() async { final data = await readAll(); data[key] = value; @@ -98,9 +88,7 @@ class FileKeyValueStore { } /// Reads a single key from storage. - Future readKey({ - required String key, - }) async { + Future readKey({required String key}) async { return _scheduler.schedule(() async { final data = await readAll(); return data[key]; @@ -108,9 +96,7 @@ class FileKeyValueStore { } /// Removes a single key from storage. - Future removeKey({ - required String key, - }) async { + Future removeKey({required String key}) async { return _scheduler.schedule(() async { final data = await readAll(); data.remove(key); @@ -119,9 +105,7 @@ class FileKeyValueStore { } /// Returns true if the key exists in storage - Future containsKey({ - required String key, - }) async { + Future containsKey({required String key}) async { return _scheduler.schedule(() async { final data = await readAll(); return data.containsKey(key); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_action.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_action.g.dart index 02aedeb6ef..b6b98035c7 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_action.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_action.g.dart @@ -10,8 +10,9 @@ const SecureStorageAction _$init = const SecureStorageAction._('init'); const SecureStorageAction _$read = const SecureStorageAction._('read'); const SecureStorageAction _$write = const SecureStorageAction._('write'); const SecureStorageAction _$delete = const SecureStorageAction._('delete'); -const SecureStorageAction _$removeAll = - const SecureStorageAction._('removeAll'); +const SecureStorageAction _$removeAll = const SecureStorageAction._( + 'removeAll', +); SecureStorageAction _$SecureStorageActionValueOf(String name) { switch (name) { @@ -32,12 +33,12 @@ SecureStorageAction _$SecureStorageActionValueOf(String name) { final BuiltSet _$SecureStorageActionValues = new BuiltSet(const [ - _$init, - _$read, - _$write, - _$delete, - _$removeAll, -]); + _$init, + _$read, + _$write, + _$delete, + _$removeAll, + ]); Serializer _$secureStorageActionSerializer = new _$SecureStorageActionSerializer(); @@ -50,14 +51,18 @@ class _$SecureStorageActionSerializer final String wireName = 'SecureStorageAction'; @override - Object serialize(Serializers serializers, SecureStorageAction object, - {FullType specifiedType = FullType.unspecified}) => - object.name; + Object serialize( + Serializers serializers, + SecureStorageAction object, { + FullType specifiedType = FullType.unspecified, + }) => object.name; @override - SecureStorageAction deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - SecureStorageAction.valueOf(serialized as String); + SecureStorageAction deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => SecureStorageAction.valueOf(serialized as String); } // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.dart index ae3d98ad9e..3f94698a4d 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.dart @@ -26,20 +26,20 @@ abstract class SecureStorageRequest required AmplifySecureStorageConfig config, }) { return SecureStorageRequest( - (b) => b - ..action = SecureStorageAction.init - ..config.replace(config), + (b) => + b + ..action = SecureStorageAction.init + ..config.replace(config), ); } /// {@macro amplify_secure_storage_dart.secure_storage_interface.read} - factory SecureStorageRequest.read({ - required String key, - }) { + factory SecureStorageRequest.read({required String key}) { return SecureStorageRequest( - (b) => b - ..action = SecureStorageAction.read - ..key = key, + (b) => + b + ..action = SecureStorageAction.read + ..key = key, ); } @@ -49,21 +49,21 @@ abstract class SecureStorageRequest required String value, }) { return SecureStorageRequest( - (b) => b - ..action = SecureStorageAction.write - ..key = key - ..value = value, + (b) => + b + ..action = SecureStorageAction.write + ..key = key + ..value = value, ); } /// {@macro amplify_secure_storage_dart.secure_storage_interface.delete} - factory SecureStorageRequest.delete({ - required String key, - }) { + factory SecureStorageRequest.delete({required String key}) { return SecureStorageRequest( - (b) => b - ..action = SecureStorageAction.delete - ..key = key, + (b) => + b + ..action = SecureStorageAction.delete + ..key = key, ); } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.g.dart index cb8df6bfa8..6f4bba6ba0 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_request.g.dart @@ -14,51 +14,63 @@ class _$SecureStorageRequestSerializer @override final Iterable types = const [ SecureStorageRequest, - _$SecureStorageRequest + _$SecureStorageRequest, ]; @override final String wireName = 'SecureStorageRequest'; @override Iterable serialize( - Serializers serializers, SecureStorageRequest object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + SecureStorageRequest object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'id', serializers.serialize(object.id, specifiedType: const FullType(String)), 'action', - serializers.serialize(object.action, - specifiedType: const FullType(SecureStorageAction)), + serializers.serialize( + object.action, + specifiedType: const FullType(SecureStorageAction), + ), ]; Object? value; value = object.config; if (value != null) { result ..add('config') - ..add(serializers.serialize(value, - specifiedType: const FullType(AmplifySecureStorageConfig))); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(AmplifySecureStorageConfig), + ), + ); } value = object.key; if (value != null) { result ..add('key') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } value = object.value; if (value != null) { result ..add('value') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override SecureStorageRequest deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new SecureStorageRequestBuilder(); final iterator = serialized.iterator; @@ -68,26 +80,45 @@ class _$SecureStorageRequestSerializer final Object? value = iterator.current; switch (key) { case 'id': - result.id = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.id = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'action': - result.action = serializers.deserialize(value, - specifiedType: const FullType(SecureStorageAction))! - as SecureStorageAction; + result.action = + serializers.deserialize( + value, + specifiedType: const FullType(SecureStorageAction), + )! + as SecureStorageAction; break; case 'config': - result.config.replace(serializers.deserialize(value, - specifiedType: const FullType(AmplifySecureStorageConfig))! - as AmplifySecureStorageConfig); + result.config.replace( + serializers.deserialize( + value, + specifiedType: const FullType(AmplifySecureStorageConfig), + )! + as AmplifySecureStorageConfig, + ); break; case 'key': - result.key = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.key = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'value': - result.value = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.value = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; } } @@ -108,26 +139,29 @@ class _$SecureStorageRequest extends SecureStorageRequest { @override final String? value; - factory _$SecureStorageRequest( - [void Function(SecureStorageRequestBuilder)? updates]) => - (new SecureStorageRequestBuilder()..update(updates))._build(); - - _$SecureStorageRequest._( - {required this.id, - required this.action, - this.config, - this.key, - this.value}) - : super._() { + factory _$SecureStorageRequest([ + void Function(SecureStorageRequestBuilder)? updates, + ]) => (new SecureStorageRequestBuilder()..update(updates))._build(); + + _$SecureStorageRequest._({ + required this.id, + required this.action, + this.config, + this.key, + this.value, + }) : super._() { BuiltValueNullFieldError.checkNotNull(id, r'SecureStorageRequest', 'id'); BuiltValueNullFieldError.checkNotNull( - action, r'SecureStorageRequest', 'action'); + action, + r'SecureStorageRequest', + 'action', + ); } @override SecureStorageRequest rebuild( - void Function(SecureStorageRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SecureStorageRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SecureStorageRequestBuilder toBuilder() => @@ -216,15 +250,23 @@ class SecureStorageRequestBuilder SecureStorageRequest._init(this); _$SecureStorageRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SecureStorageRequest._( - id: BuiltValueNullFieldError.checkNotNull( - id, r'SecureStorageRequest', 'id'), - action: BuiltValueNullFieldError.checkNotNull( - action, r'SecureStorageRequest', 'action'), - config: _config?.build(), - key: key, - value: value); + id: BuiltValueNullFieldError.checkNotNull( + id, + r'SecureStorageRequest', + 'id', + ), + action: BuiltValueNullFieldError.checkNotNull( + action, + r'SecureStorageRequest', + 'action', + ), + config: _config?.build(), + key: key, + value: value, + ); } catch (_) { late String _$failedField; try { @@ -232,7 +274,10 @@ class SecureStorageRequestBuilder _config?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SecureStorageRequest', _$failedField, e.toString()); + r'SecureStorageRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.dart index 0f8f57359f..fda996690d 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.dart @@ -70,5 +70,4 @@ abstract class SecureStorageWorker SecureStorageAction, SecureStorageRequest, ]) -final Serializers serializers = - _$serializers; // TODO(dnys1): https://github.com/google/built_value.dart/pull/1202 +final Serializers serializers = _$serializers; // TODO(dnys1): https://github.com/google/built_value.dart/pull/1202 diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.g.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.g.dart index 259b9c6eda..d0e5727894 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.g.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.g.dart @@ -6,17 +6,18 @@ part of 'secure_storage_worker.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$serializers = (new Serializers().toBuilder() - ..add(AmplifySecureStorageConfig.serializer) - ..add(IOSSecureStorageOptions.serializer) - ..add(KeychainAttributeAccessible.serializer) - ..add(LinuxSecureStorageOptions.serializer) - ..add(MacOSSecureStorageOptions.serializer) - ..add(SecureStorageAction.serializer) - ..add(SecureStorageRequest.serializer) - ..add(WebPersistenceOption.serializer) - ..add(WebSecureStorageOptions.serializer) - ..add(WindowsSecureStorageOptions.serializer)) - .build(); +Serializers _$serializers = + (new Serializers().toBuilder() + ..add(AmplifySecureStorageConfig.serializer) + ..add(IOSSecureStorageOptions.serializer) + ..add(KeychainAttributeAccessible.serializer) + ..add(LinuxSecureStorageOptions.serializer) + ..add(MacOSSecureStorageOptions.serializer) + ..add(SecureStorageAction.serializer) + ..add(SecureStorageRequest.serializer) + ..add(WebPersistenceOption.serializer) + ..add(WebSecureStorageOptions.serializer) + ..add(WindowsSecureStorageOptions.serializer)) + .build(); // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.dart index 6a88751b74..154a047603 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.dart @@ -1,3 +1,4 @@ +// dart format width=80 // GENERATED CODE - DO NOT MODIFY BY HAND // ************************************************************************** diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.js.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.js.dart index 1b79fc39b0..8d6eac39dc 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.js.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.js.dart @@ -29,18 +29,17 @@ class SecureStorageWorkerImpl extends SecureStorageWorker { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/amplify_secure_storage_dart/src/worker/workers.debug.dart.js' - : 'packages/amplify_secure_storage_dart/src/worker/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/amplify_secure_storage_dart/src/worker/workers.debug.dart.js' + : 'packages/amplify_secure_storage_dart/src/worker/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.vm.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.vm.dart index b9ef02fb62..da294bbcd9 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.vm.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/secure_storage_worker.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/workers.dart b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/workers.dart index ed253d1b5a..31b0661b3e 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/workers.dart +++ b/packages/secure_storage/amplify_secure_storage_dart/lib/src/worker/workers.dart @@ -1,9 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -@WorkerHive([ - SecureStorageWorker, -]) +@WorkerHive([SecureStorageWorker]) library; import 'package:amplify_secure_storage_dart/src/worker/secure_storage_worker.dart'; diff --git a/packages/secure_storage/amplify_secure_storage_dart/pubspec.yaml b/packages/secure_storage/amplify_secure_storage_dart/pubspec.yaml index 4dd9260c27..92c82fb38a 100644 --- a/packages/secure_storage/amplify_secure_storage_dart/pubspec.yaml +++ b/packages/secure_storage/amplify_secure_storage_dart/pubspec.yaml @@ -1,12 +1,12 @@ name: amplify_secure_storage_dart description: A Dart-only implementation of `amplify_secure_storage`, using `dart:ffi` for Desktop and `dart:html` for Web. -version: 0.5.4 +version: 0.5.5 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/secure_storage/amplify_secure_storage_dart issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 # Explicitly declare platform support to help `pana` platforms: @@ -21,28 +21,28 @@ platforms: dependencies: async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" + aws_common: ">=0.7.7 <0.8.0" built_collection: ^5.0.0 built_value: ^8.6.0 ffi: ^2.0.0 file: ">=6.0.0 <8.0.0" js: ">=0.6.4 <0.8.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" win32: ">=4.1.2 <6.0.0" - worker_bee: ">=0.3.4 <0.4.0" + worker_bee: ">=0.3.5 <0.4.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" amplify_secure_storage_test: path: ../amplify_secure_storage_test build: ^2.3.0 build_runner: ^2.4.9 build_web_compilers: ^4.0.0 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 ffigen: ^9.0.0 test: ^1.22.1 - worker_bee_builder: ">=0.3.3 <0.4.0" + worker_bee_builder: ">=0.3.4 <0.4.0" flutter: assets: diff --git a/packages/secure_storage/amplify_secure_storage_test/lib/amplify_secure_storage_test.dart b/packages/secure_storage/amplify_secure_storage_test/lib/amplify_secure_storage_test.dart index 0a06704c6b..fdc740f8db 100644 --- a/packages/secure_storage/amplify_secure_storage_test/lib/amplify_secure_storage_test.dart +++ b/packages/secure_storage/amplify_secure_storage_test/lib/amplify_secure_storage_test.dart @@ -20,9 +20,10 @@ const key1 = 'key_1'; // ignore: invalid_use_of_visible_for_testing_member final macOSOptions = MacOSSecureStorageOptions(useDataProtection: false); -typedef SecureStorageFactory = AmplifySecureStorageInterface Function({ - required AmplifySecureStorageConfig config, -}); +typedef SecureStorageFactory = + AmplifySecureStorageInterface Function({ + required AmplifySecureStorageConfig config, + }); /// A common set of integration-style tests that can be shared across /// amplify_secure_storage & amplify_secure_storage_dart. @@ -181,9 +182,10 @@ void runStandardTests( await worker.spawn(); worker.add( SecureStorageRequest( - (b) => b - ..action = SecureStorageAction.read - ..key = 'key', + (b) => + b + ..action = SecureStorageAction.read + ..key = 'key', ), ); expect( diff --git a/packages/secure_storage/amplify_secure_storage_test/pubspec.yaml b/packages/secure_storage/amplify_secure_storage_test/pubspec.yaml index 9667ce776b..f23df79d9a 100644 --- a/packages/secure_storage/amplify_secure_storage_test/pubspec.yaml +++ b/packages/secure_storage/amplify_secure_storage_test/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_secure_storage_dart: any diff --git a/packages/secure_storage/amplify_secure_storage_test/test/file_key_value_store_test.dart b/packages/secure_storage/amplify_secure_storage_test/test/file_key_value_store_test.dart index 5f75aa4c37..58ee0419ff 100644 --- a/packages/secure_storage/amplify_secure_storage_test/test/file_key_value_store_test.dart +++ b/packages/secure_storage/amplify_secure_storage_test/test/file_key_value_store_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'dart:io'; @@ -69,10 +70,7 @@ void main() { test('writeAll', () async { // write key-value pairs - await storage.writeAll({ - 'key1': 'value1', - 'key2': 'value2', - }); + await storage.writeAll({'key1': 'value1', 'key2': 'value2'}); // assert values are updated final data = await storage.readAll(); @@ -118,14 +116,12 @@ void main() { // Reference: https://github.com/aws-amplify/amplify-flutter/issues/5190 test('should not corrupt the file', () async { - final futures = items.map( - (i) async { - if (i % 5 == 1) { - await storage.removeKey(key: 'key_${i - 1}'); - } - return storage.writeKey(key: 'key_$i', value: 'value_$i'); - }, - ); + final futures = items.map((i) async { + if (i % 5 == 1) { + await storage.removeKey(key: 'key_${i - 1}'); + } + return storage.writeKey(key: 'key_$i', value: 'value_$i'); + }); await Future.wait(futures); }); }); @@ -134,8 +130,10 @@ void main() { await storage.writeKey(key: 'foo', value: 'value'); final value1 = await storage.readKey(key: 'foo'); expect(value1, 'value'); - await storage.file - .writeAsString('{invalid json}', mode: FileMode.append); + await storage.file.writeAsString( + '{invalid json}', + mode: FileMode.append, + ); final value2 = await storage.readKey(key: 'foo'); expect(value2, null); await storage.writeKey(key: 'foo', value: 'value'); diff --git a/packages/secure_storage/amplify_secure_storage_test/test/linux_test.dart b/packages/secure_storage/amplify_secure_storage_test/test/linux_test.dart index f84a935111..34c5d522f2 100644 --- a/packages/secure_storage/amplify_secure_storage_test/test/linux_test.dart +++ b/packages/secure_storage/amplify_secure_storage_test/test/linux_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('linux') +library; import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; import 'package:amplify_secure_storage_dart/src/platforms/amplify_secure_storage_linux.dart'; @@ -27,9 +28,10 @@ void main() { required String appId, String? accessGroup, }) { - final linuxOptions = accessGroup != null - ? LinuxSecureStorageOptions(accessGroup: accessGroup) - : LinuxSecureStorageOptions(); + final linuxOptions = + accessGroup != null + ? LinuxSecureStorageOptions(accessGroup: accessGroup) + : LinuxSecureStorageOptions(); final instance = AmplifySecureStorageLinux( config: AmplifySecureStorageConfig( scope: scope, diff --git a/packages/secure_storage/amplify_secure_storage_test/test/mac_os_test.dart b/packages/secure_storage/amplify_secure_storage_test/test/mac_os_test.dart index 2d57a6478c..bc72aa938b 100644 --- a/packages/secure_storage/amplify_secure_storage_test/test/mac_os_test.dart +++ b/packages/secure_storage/amplify_secure_storage_test/test/mac_os_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('mac-os') +library; import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; import 'package:amplify_secure_storage_dart/src/ffi/cupertino/security.bindings.g.dart'; @@ -39,49 +40,40 @@ void main() { storage2.removeAll(); }); - test( - 'removes all keys from storage', - () { - // seed storage and confirm values are present - storage - ..write(key: key1, value: value1) - ..write(key: key2, value: value2); - expect(storage.read(key: key1), value1); - expect(storage.read(key: key2), value2); - - // remove all - storage.removeAll(); - - // assert all data was removed - expect(storage.read(key: key1), isNull); - expect(storage.read(key: key2), isNull); - }, - ); + test('removes all keys from storage', () { + // seed storage and confirm values are present + storage + ..write(key: key1, value: value1) + ..write(key: key2, value: value2); + expect(storage.read(key: key1), value1); + expect(storage.read(key: key2), value2); - test( - 'does not remove keys from other scopes', - () { - // seed storage and confirm values are present - storage.write(key: key1, value: value1); - storage2.write(key: key2, value: value2); - expect(storage.read(key: key1), value1); - expect(storage2.read(key: key2), value2); - - // remove all - storage.removeAll(); - - // assert all data was removed - expect(storage.read(key: key1), isNull); - expect(storage2.read(key: key2), value2); - }, - ); + // remove all + storage.removeAll(); - test( - 'does not throw when called with no data present', - () { - expect(storage.removeAll, returnsNormally); - }, - ); + // assert all data was removed + expect(storage.read(key: key1), isNull); + expect(storage.read(key: key2), isNull); + }); + + test('does not remove keys from other scopes', () { + // seed storage and confirm values are present + storage.write(key: key1, value: value1); + storage2.write(key: key2, value: value2); + expect(storage.read(key: key1), value1); + expect(storage2.read(key: key2), value2); + + // remove all + storage.removeAll(); + + // assert all data was removed + expect(storage.read(key: key1), isNull); + expect(storage2.read(key: key2), value2); + }); + + test('does not throw when called with no data present', () { + expect(storage.removeAll, returnsNormally); + }); }); group('SecurityError', () { diff --git a/packages/secure_storage/amplify_secure_storage_test/test/utils_test.dart b/packages/secure_storage/amplify_secure_storage_test/test/utils_test.dart index 56001c5d6c..b856537b2c 100644 --- a/packages/secure_storage/amplify_secure_storage_test/test/utils_test.dart +++ b/packages/secure_storage/amplify_secure_storage_test/test/utils_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'package:amplify_secure_storage_dart/src/exception/not_available_exception.dart'; import 'package:amplify_secure_storage_dart/src/ffi/utils/dynamic_library_utils.dart'; diff --git a/packages/secure_storage/amplify_secure_storage_test/test/windows_test.dart b/packages/secure_storage/amplify_secure_storage_test/test/windows_test.dart index 737ab77617..02816d5e28 100644 --- a/packages/secure_storage/amplify_secure_storage_test/test/windows_test.dart +++ b/packages/secure_storage/amplify_secure_storage_test/test/windows_test.dart @@ -1,6 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 @TestOn('windows') +library; import 'package:amplify_secure_storage_dart/amplify_secure_storage_dart.dart'; import 'package:amplify_secure_storage_dart/src/ffi/win32/data_protection.dart'; @@ -13,36 +14,29 @@ const value2 = 'value_2'; void main() { group('Windows', () { - test( - 'keys should be shared when using the same storage path', - () async { - // ignore: invalid_use_of_internal_member - final storage1 = AmplifySecureStorageDart( - config: AmplifySecureStorageConfig( - scope: 'default', - windowsOptions: WindowsSecureStorageOptions( - storagePath: '/tmp/app', - ), - ), - ); + test('keys should be shared when using the same storage path', () async { + // ignore: invalid_use_of_internal_member + final storage1 = AmplifySecureStorageDart( + config: AmplifySecureStorageConfig( + scope: 'default', + windowsOptions: WindowsSecureStorageOptions(storagePath: '/tmp/app'), + ), + ); - // ignore: invalid_use_of_internal_member - final storage2 = AmplifySecureStorageDart( - config: AmplifySecureStorageConfig( - scope: 'default', - windowsOptions: WindowsSecureStorageOptions( - storagePath: '/tmp/app', - ), - ), - ); + // ignore: invalid_use_of_internal_member + final storage2 = AmplifySecureStorageDart( + config: AmplifySecureStorageConfig( + scope: 'default', + windowsOptions: WindowsSecureStorageOptions(storagePath: '/tmp/app'), + ), + ); - // write to storage 1 - await storage1.write(key: key1, value: value1); + // write to storage 1 + await storage1.write(key: key1, value: value1); - // confirm value is shared with storage 2 - expect(await storage2.read(key: key1), value1); - }, - ); + // confirm value is shared with storage 2 + expect(await storage2.read(key: key1), value1); + }); test( 'keys should not collide when using different storage paths', () async { @@ -78,15 +72,16 @@ void main() { ); }); group( - 'CryptProtect/CryptUnprotect can encrypt and decrypt keys of various lengths and chars', - () { - for (final value in keyValuePairs.values) { - final testName = value.substring(0, 20); - test('encrypt / decrypt value starting with: $testName', () { - final encrypted = encryptString(value); - final decrypted = decryptString(encrypted); - expect(decrypted, value); - }); - } - }); + 'CryptProtect/CryptUnprotect can encrypt and decrypt keys of various lengths and chars', + () { + for (final value in keyValuePairs.values) { + final testName = value.substring(0, 20); + test('encrypt / decrypt value starting with: $testName', () { + final encrypted = encryptString(value); + final decrypted = decryptString(encrypted); + expect(decrypted, value); + }); + } + }, + ); } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/json_rpc_10.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/json_rpc_10.dart index 5bd57064e6..cba82312f6 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/json_rpc_10.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/json_rpc_10.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10; diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart index 22d4a2a35b..75705ee5a0 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'JSON RPC 10'; diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart index e9cf67cef2..e9a47f5f98 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -66,22 +66,13 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart index de979f6255..ed3b77d9ac 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.json_rpc10_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,11 +34,11 @@ class JsonRpc10Client { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -60,10 +60,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -72,10 +69,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -87,10 +81,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. @@ -103,10 +94,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -115,10 +103,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation uses unions for inputs and outputs. @@ -131,10 +116,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -144,24 +126,19 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -173,10 +150,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation simpleScalarProperties( @@ -188,9 +162,6 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart index d15ccc5a0e..517456be93 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.json_rpc10_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,23 +39,19 @@ abstract class JsonRpc10ServerBase extends _i1.HttpServerBase { router.add( 'POST', '/', - _i1.RpcRouter( - 'X-Amz-Target', - { - 'JsonRpc10.EmptyInputAndEmptyOutput': - service.emptyInputAndEmptyOutput, - 'JsonRpc10.EndpointOperation': service.endpointOperation, - 'JsonRpc10.EndpointWithHostLabelOperation': - service.endpointWithHostLabelOperation, - 'JsonRpc10.GreetingWithErrors': service.greetingWithErrors, - 'JsonRpc10.HostWithPathOperation': service.hostWithPathOperation, - 'JsonRpc10.JsonUnions': service.jsonUnions, - 'JsonRpc10.NoInputAndNoOutput': service.noInputAndNoOutput, - 'JsonRpc10.NoInputAndOutput': service.noInputAndOutput, - 'JsonRpc10.PutWithContentEncoding': service.putWithContentEncoding, - 'JsonRpc10.SimpleScalarProperties': service.simpleScalarProperties, - }, - ), + _i1.RpcRouter('X-Amz-Target', { + 'JsonRpc10.EmptyInputAndEmptyOutput': service.emptyInputAndEmptyOutput, + 'JsonRpc10.EndpointOperation': service.endpointOperation, + 'JsonRpc10.EndpointWithHostLabelOperation': + service.endpointWithHostLabelOperation, + 'JsonRpc10.GreetingWithErrors': service.greetingWithErrors, + 'JsonRpc10.HostWithPathOperation': service.hostWithPathOperation, + 'JsonRpc10.JsonUnions': service.jsonUnions, + 'JsonRpc10.NoInputAndNoOutput': service.noInputAndNoOutput, + 'JsonRpc10.NoInputAndOutput': service.noInputAndOutput, + 'JsonRpc10.PutWithContentEncoding': service.putWithContentEncoding, + 'JsonRpc10.SimpleScalarProperties': service.simpleScalarProperties, + }), ); return router; }(); @@ -64,10 +60,7 @@ abstract class JsonRpc10ServerBase extends _i1.HttpServerBase { EmptyInputAndEmptyOutputInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelOperation( EndpointWithHostLabelOperationInput input, _i1.Context context, @@ -84,10 +77,7 @@ abstract class JsonRpc10ServerBase extends _i1.HttpServerBase { JsonUnionsInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> noInputAndNoOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> noInputAndNoOutput(_i1.Unit input, _i1.Context context); _i3.Future noInputAndOutput( _i1.Unit input, _i1.Context context, @@ -110,78 +100,96 @@ class _JsonRpc10Server extends _i1.HttpServer { final JsonRpc10ServerBase service; late final _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> _emptyInputAndEmptyOutputProtocol = - _i2.AwsJson1_0Protocol( + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + _emptyInputAndEmptyOutputProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.AwsJson1_0Protocol( + _endpointOperationProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_0Protocol( + late final _i1.HttpProtocol< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _greetingWithErrorsProtocol = _i2.AwsJson1_0Protocol( + late final _i1.HttpProtocol< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _hostWithPathOperationProtocol = _i2.AwsJson1_0Protocol( + _hostWithPathOperationProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonUnionsInput, - JsonUnionsInput, - JsonUnionsOutput, - JsonUnionsOutput> _jsonUnionsProtocol = _i2.AwsJson1_0Protocol( + JsonUnionsInput, + JsonUnionsInput, + JsonUnionsOutput, + JsonUnionsOutput + > + _jsonUnionsProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _noInputAndNoOutputProtocol = _i2.AwsJson1_0Protocol( + _noInputAndNoOutputProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput> _noInputAndOutputProtocol = - _i2.AwsJson1_0Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + _noInputAndOutputProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.AwsJson1_0Protocol( + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInput, - SimpleScalarPropertiesInput, - SimpleScalarPropertiesOutput, - SimpleScalarPropertiesOutput> _simpleScalarPropertiesProtocol = - _i2.AwsJson1_0Protocol( + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInput, + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutput + > + _simpleScalarPropertiesProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -194,37 +202,31 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _emptyInputAndEmptyOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EmptyInputAndEmptyOutputInput), - ) as EmptyInputAndEmptyOutputInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(EmptyInputAndEmptyOutputInput), + ) + as EmptyInputAndEmptyOutputInput); final input = EmptyInputAndEmptyOutputInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.emptyInputAndEmptyOutput( - input, - context, - ); + final output = await service.emptyInputAndEmptyOutput(input, context); const statusCode = 200; - final body = - await _emptyInputAndEmptyOutputProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - EmptyInputAndEmptyOutputOutput, - [FullType(EmptyInputAndEmptyOutputOutput)], - ), - ); + final body = await _emptyInputAndEmptyOutputProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(EmptyInputAndEmptyOutputOutput, [ + FullType(EmptyInputAndEmptyOutputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -236,21 +238,16 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -258,26 +255,27 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EndpointWithHostLabelOperationInput), - ) as EndpointWithHostLabelOperationInput); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + EndpointWithHostLabelOperationInput, + ), + ) + as EndpointWithHostLabelOperationInput); final input = EndpointWithHostLabelOperationInput.fromRequest( payload, awsRequest, @@ -290,22 +288,16 @@ class _JsonRpc10Server extends _i1.HttpServer { const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -317,25 +309,22 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GreetingWithErrorsInput), - ) as GreetingWithErrorsInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(GreetingWithErrorsInput), + ) + as GreetingWithErrorsInput); final input = GreetingWithErrorsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutput)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutput), + ]), ); return _i4.Response( statusCode, @@ -345,10 +334,7 @@ class _JsonRpc10Server extends _i1.HttpServer { } on ComplexError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexError)], - ), + specifiedType: const FullType(ComplexError, [FullType(ComplexError)]), ); const statusCode = 400; return _i4.Response( @@ -359,10 +345,7 @@ class _JsonRpc10Server extends _i1.HttpServer { } on FooError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - FooError, - [FullType(FooError)], - ), + specifiedType: const FullType(FooError, [FullType(FooError)]), ); const statusCode = 500; return _i4.Response( @@ -373,10 +356,9 @@ class _JsonRpc10Server extends _i1.HttpServer { } on InvalidGreeting catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -385,10 +367,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -400,33 +379,25 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _hostWithPathOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.hostWithPathOperation( - input, - context, - ); + final output = await service.hostWithPathOperation(input, context); const statusCode = 200; - final body = - await _hostWithPathOperationProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _hostWithPathOperationProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -435,26 +406,24 @@ class _JsonRpc10Server extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonUnionsProtocol.contentType; try { - final payload = (await _jsonUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonUnionsInput), - ) as JsonUnionsInput); + final payload = + (await _jsonUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonUnionsInput), + ) + as JsonUnionsInput); final input = JsonUnionsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonUnions( - input, - context, - ); + final output = await service.jsonUnions(input, context); const statusCode = 200; final body = await _jsonUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonUnionsOutput, - [FullType(JsonUnionsOutput)], - ), + specifiedType: const FullType(JsonUnionsOutput, [ + FullType(JsonUnionsOutput), + ]), ); return _i4.Response( statusCode, @@ -462,10 +431,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -477,21 +443,16 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _noInputAndNoOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndNoOutput( - input, - context, - ); + final output = await service.noInputAndNoOutput(input, context); const statusCode = 200; final body = await _noInputAndNoOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -499,10 +460,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -514,21 +472,18 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _noInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndOutput( - input, - context, - ); + final output = await service.noInputAndOutput(input, context); const statusCode = 200; final body = await _noInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NoInputAndOutputOutput, - [FullType(NoInputAndOutputOutput)], - ), + specifiedType: const FullType(NoInputAndOutputOutput, [ + FullType(NoInputAndOutputOutput), + ]), ); return _i4.Response( statusCode, @@ -536,10 +491,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -551,37 +503,29 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInput), - ) as PutWithContentEncodingInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PutWithContentEncodingInput), + ) + as PutWithContentEncodingInput); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -593,37 +537,31 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInput), - ) as SimpleScalarPropertiesInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(SimpleScalarPropertiesInput), + ) + as SimpleScalarPropertiesInput); final input = SimpleScalarPropertiesInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesOutput, - [FullType(SimpleScalarPropertiesOutput)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesOutput, [ + FullType(SimpleScalarPropertiesOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart index 11ed641289..2c850e50f4 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsJson10Serializer() + AwsConfigAwsJson10Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsJson10Serializer const AwsConfigAwsJson10Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigAwsJson10Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigAwsJson10Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart index 63eb3e0fd8..cc2a9a220f 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsJson10Serializer() + ClientConfigAwsJson10Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsJson10Serializer const ClientConfigAwsJson10Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigAwsJson10Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -193,63 +183,71 @@ class ClientConfigAwsJson10Serializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart index 0cabe57070..0fc965b046 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorAwsJson10Serializer() + ComplexErrorAwsJson10Serializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.json10', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorAwsJson10Serializer const ComplexErrorAwsJson10Serializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexError deserialize( @@ -127,15 +106,20 @@ class ComplexErrorAwsJson10Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -153,18 +137,22 @@ class ComplexErrorAwsJson10Serializer if (topLevel != null) { result$ ..add('TopLevel') - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add('Nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart index df0cb5afa8..199cc5d47a 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataAwsJson10Serializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson10Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataAwsJson10Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +94,9 @@ class ComplexNestedErrorDataAwsJson10Serializer if (foo != null) { result$ ..add('Foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart index 9a251b0753..8d69b65527 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputAwsJson10Serializer()]; + serializers = [EmptyInputAndEmptyOutputInputAwsJson10Serializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -84,6 +82,5 @@ class EmptyInputAndEmptyOutputInputAwsJson10Serializer Serializers serializers, EmptyInputAndEmptyOutputInput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart index f5ecacbfad..b42de7554e 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputAwsJson10Serializer()]; + serializers = [EmptyInputAndEmptyOutputOutputAwsJson10Serializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -81,6 +79,5 @@ class EmptyInputAndEmptyOutputOutputAwsJson10Serializer Serializers serializers, EmptyInputAndEmptyOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart index 4e83a7e1f9..21595d12f4 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.endpoint_with_host_label_operation_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class EndpointWithHostLabelOperationInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInputBuilder + > { factory EndpointWithHostLabelOperationInput({required String label}) { return _$EndpointWithHostLabelOperationInput._(label: label); } - factory EndpointWithHostLabelOperationInput.build( - [void Function(EndpointWithHostLabelOperationInputBuilder) updates]) = - _$EndpointWithHostLabelOperationInput; + factory EndpointWithHostLabelOperationInput.build([ + void Function(EndpointWithHostLabelOperationInputBuilder) updates, + ]) = _$EndpointWithHostLabelOperationInput; const EndpointWithHostLabelOperationInput._(); @@ -31,11 +33,10 @@ abstract class EndpointWithHostLabelOperationInput EndpointWithHostLabelOperationInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EndpointWithHostLabelOperationInputAwsJson10Serializer()]; + serializers = [EndpointWithHostLabelOperationInputAwsJson10Serializer()]; String get label; @override @@ -44,10 +45,7 @@ abstract class EndpointWithHostLabelOperationInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -58,34 +56,29 @@ abstract class EndpointWithHostLabelOperationInput @override String toString() { - final helper = - newBuiltValueToStringHelper('EndpointWithHostLabelOperationInput') - ..add( - 'label', - label, - ); + final helper = newBuiltValueToStringHelper( + 'EndpointWithHostLabelOperationInput', + )..add('label', label); return helper.toString(); } } -class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i1 - .StructuredSmithySerializer { +class EndpointWithHostLabelOperationInputAwsJson10Serializer + extends + _i1.StructuredSmithySerializer { const EndpointWithHostLabelOperationInputAwsJson10Serializer() - : super('EndpointWithHostLabelOperationInput'); + : super('EndpointWithHostLabelOperationInput'); @override Iterable get types => const [ - EndpointWithHostLabelOperationInput, - _$EndpointWithHostLabelOperationInput, - ]; + EndpointWithHostLabelOperationInput, + _$EndpointWithHostLabelOperationInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EndpointWithHostLabelOperationInput deserialize( @@ -104,10 +97,12 @@ class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i1 } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -124,10 +119,7 @@ class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i1 final EndpointWithHostLabelOperationInput(:label) = object; result$.addAll([ 'label', - serializers.serialize( - label, - specifiedType: const FullType(String), - ), + serializers.serialize(label, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart index 59c16c00dc..91318dc5e7 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart @@ -11,21 +11,24 @@ class _$EndpointWithHostLabelOperationInput @override final String label; - factory _$EndpointWithHostLabelOperationInput( - [void Function(EndpointWithHostLabelOperationInputBuilder)? - updates]) => + factory _$EndpointWithHostLabelOperationInput([ + void Function(EndpointWithHostLabelOperationInputBuilder)? updates, + ]) => (new EndpointWithHostLabelOperationInputBuilder()..update(updates)) ._build(); _$EndpointWithHostLabelOperationInput._({required this.label}) : super._() { BuiltValueNullFieldError.checkNotNull( - label, r'EndpointWithHostLabelOperationInput', 'label'); + label, + r'EndpointWithHostLabelOperationInput', + 'label', + ); } @override EndpointWithHostLabelOperationInput rebuild( - void Function(EndpointWithHostLabelOperationInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EndpointWithHostLabelOperationInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EndpointWithHostLabelOperationInputBuilder toBuilder() => @@ -48,8 +51,10 @@ class _$EndpointWithHostLabelOperationInput class EndpointWithHostLabelOperationInputBuilder implements - Builder { + Builder< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInputBuilder + > { _$EndpointWithHostLabelOperationInput? _$v; String? _label; @@ -75,7 +80,8 @@ class EndpointWithHostLabelOperationInputBuilder @override void update( - void Function(EndpointWithHostLabelOperationInputBuilder)? updates) { + void Function(EndpointWithHostLabelOperationInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -83,10 +89,15 @@ class EndpointWithHostLabelOperationInputBuilder EndpointWithHostLabelOperationInput build() => _build(); _$EndpointWithHostLabelOperationInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EndpointWithHostLabelOperationInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'EndpointWithHostLabelOperationInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'EndpointWithHostLabelOperationInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart index 6a8f4b8be2..5fa27bb4d5 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsJson10Serializer() + EnvironmentConfigAwsJson10Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsJson10Serializer const EnvironmentConfigAwsJson10Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigAwsJson10Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigAwsJson10Serializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart index bddb71db7f..10db00ace9 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsJson10Serializer() + FileConfigSettingsAwsJson10Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsJson10Serializer const FileConfigSettingsAwsJson10Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsAwsJson10Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -194,63 +183,71 @@ class FileConfigSettingsAwsJson10Serializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart index 993a5b2f92..538e77e017 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart index 6895f32bd6..a34430925d 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.foo_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,21 +31,20 @@ abstract class FooError factory FooError.fromResponse( FooError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - FooErrorAwsJson10Serializer() + FooErrorAwsJson10Serializer(), ]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'FooError', - ); + namespace: 'aws.protocoltests.json10', + shape: 'FooError', + ); @override String? get message => null; @@ -77,18 +76,12 @@ class FooErrorAwsJson10Serializer const FooErrorAwsJson10Serializer() : super('FooError'); @override - Iterable get types => const [ - FooError, - _$FooError, - ]; + Iterable get types => const [FooError, _$FooError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override FooError deserialize( @@ -104,6 +97,5 @@ class FooErrorAwsJson10Serializer Serializers serializers, FooError object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart index a890b6d3a7..cd1b2e74b0 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructAwsJson10Serializer() + GreetingStructAwsJson10Serializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructAwsJson10Serializer const GreetingStructAwsJson10Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructAwsJson10Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +89,7 @@ class GreetingStructAwsJson10Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart index 67a99f169a..562eb944a5 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.greeting_with_errors_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class GreetingWithErrorsInput return _$GreetingWithErrorsInput._(greeting: greeting); } - factory GreetingWithErrorsInput.build( - [void Function(GreetingWithErrorsInputBuilder) updates]) = - _$GreetingWithErrorsInput; + factory GreetingWithErrorsInput.build([ + void Function(GreetingWithErrorsInputBuilder) updates, + ]) = _$GreetingWithErrorsInput; const GreetingWithErrorsInput._(); @@ -29,8 +29,7 @@ abstract class GreetingWithErrorsInput GreetingWithErrorsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [GreetingWithErrorsInputAwsJson10Serializer()]; @@ -45,10 +44,7 @@ abstract class GreetingWithErrorsInput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsInput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -56,21 +52,18 @@ abstract class GreetingWithErrorsInput class GreetingWithErrorsInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const GreetingWithErrorsInputAwsJson10Serializer() - : super('GreetingWithErrorsInput'); + : super('GreetingWithErrorsInput'); @override Iterable get types => const [ - GreetingWithErrorsInput, - _$GreetingWithErrorsInput, - ]; + GreetingWithErrorsInput, + _$GreetingWithErrorsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsInput deserialize( @@ -89,10 +82,12 @@ class GreetingWithErrorsInputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -110,10 +105,12 @@ class GreetingWithErrorsInputAwsJson10Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart index 7faa014526..02f4b2bf10 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsInput extends GreetingWithErrorsInput { @override final String? greeting; - factory _$GreetingWithErrorsInput( - [void Function(GreetingWithErrorsInputBuilder)? updates]) => - (new GreetingWithErrorsInputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsInput([ + void Function(GreetingWithErrorsInputBuilder)? updates, + ]) => (new GreetingWithErrorsInputBuilder()..update(updates))._build(); _$GreetingWithErrorsInput._({this.greeting}) : super._(); @override GreetingWithErrorsInput rebuild( - void Function(GreetingWithErrorsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart index c239a8c9ca..2b3ce31a5b 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputAwsJson10Serializer()]; + serializers = [GreetingWithErrorsOutputAwsJson10Serializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson10Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -85,10 +78,12 @@ class GreetingWithErrorsOutputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -106,10 +101,12 @@ class GreetingWithErrorsOutputAwsJson10Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart index 26d5e1bcc4..0c8f1ee0f8 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingAwsJson10Serializer() + InvalidGreetingAwsJson10Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.json10', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingAwsJson10Serializer const InvalidGreetingAwsJson10Serializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override InvalidGreeting deserialize( @@ -110,10 +101,12 @@ class InvalidGreetingAwsJson10Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +124,9 @@ class InvalidGreetingAwsJson10Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart index 8ac18859f2..6d1314193f 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.json_unions_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,9 @@ abstract class JsonUnionsInput return _$JsonUnionsInput._(contents: contents); } - factory JsonUnionsInput.build( - [void Function(JsonUnionsInputBuilder) updates]) = _$JsonUnionsInput; + factory JsonUnionsInput.build([ + void Function(JsonUnionsInputBuilder) updates, + ]) = _$JsonUnionsInput; const JsonUnionsInput._(); @@ -27,11 +28,10 @@ abstract class JsonUnionsInput JsonUnionsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonUnionsInputAwsJson10Serializer() + JsonUnionsInputAwsJson10Serializer(), ]; /// A union with a representative set of types for members. @@ -45,10 +45,7 @@ abstract class JsonUnionsInput @override String toString() { final helper = newBuiltValueToStringHelper('JsonUnionsInput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -58,18 +55,12 @@ class JsonUnionsInputAwsJson10Serializer const JsonUnionsInputAwsJson10Serializer() : super('JsonUnionsInput'); @override - Iterable get types => const [ - JsonUnionsInput, - _$JsonUnionsInput, - ]; + Iterable get types => const [JsonUnionsInput, _$JsonUnionsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsInput deserialize( @@ -88,10 +79,12 @@ class JsonUnionsInputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -109,10 +102,12 @@ class JsonUnionsInputAwsJson10Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart index 927559e4c2..c11d580bbb 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.json_unions_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,9 @@ abstract class JsonUnionsOutput return _$JsonUnionsOutput._(contents: contents); } - factory JsonUnionsOutput.build( - [void Function(JsonUnionsOutputBuilder) updates]) = _$JsonUnionsOutput; + factory JsonUnionsOutput.build([ + void Function(JsonUnionsOutputBuilder) updates, + ]) = _$JsonUnionsOutput; const JsonUnionsOutput._(); @@ -27,11 +28,10 @@ abstract class JsonUnionsOutput factory JsonUnionsOutput.fromResponse( JsonUnionsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - JsonUnionsOutputAwsJson10Serializer() + JsonUnionsOutputAwsJson10Serializer(), ]; /// A union with a representative set of types for members. @@ -42,10 +42,7 @@ abstract class JsonUnionsOutput @override String toString() { final helper = newBuiltValueToStringHelper('JsonUnionsOutput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -55,18 +52,12 @@ class JsonUnionsOutputAwsJson10Serializer const JsonUnionsOutputAwsJson10Serializer() : super('JsonUnionsOutput'); @override - Iterable get types => const [ - JsonUnionsOutput, - _$JsonUnionsOutput, - ]; + Iterable get types => const [JsonUnionsOutput, _$JsonUnionsOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsOutput deserialize( @@ -85,10 +76,12 @@ class JsonUnionsOutputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -106,10 +99,12 @@ class JsonUnionsOutputAwsJson10Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart index 574650792d..45930e4056 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart @@ -10,9 +10,9 @@ class _$JsonUnionsOutput extends JsonUnionsOutput { @override final MyUnion? contents; - factory _$JsonUnionsOutput( - [void Function(JsonUnionsOutputBuilder)? updates]) => - (new JsonUnionsOutputBuilder()..update(updates))._build(); + factory _$JsonUnionsOutput([ + void Function(JsonUnionsOutputBuilder)? updates, + ]) => (new JsonUnionsOutputBuilder()..update(updates))._build(); _$JsonUnionsOutput._({this.contents}) : super._(); diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart index d8c91f20f7..7b1af3289b 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.my_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,13 +38,11 @@ sealed class MyUnion extends _i1.SmithyUnion { factory MyUnion.structureValue({String? hi}) => MyUnionStructureValue$(GreetingStruct(hi: hi)); - const factory MyUnion.sdkUnknown( - String name, - Object value, - ) = MyUnionSdkUnknown$; + const factory MyUnion.sdkUnknown(String name, Object value) = + MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - MyUnionAwsJson10Serializer() + MyUnionAwsJson10Serializer(), ]; String? get stringValue => null; @@ -68,79 +66,50 @@ sealed class MyUnion extends _i1.SmithyUnion { GreetingStruct? get structureValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - numberValue ?? - blobValue ?? - timestampValue ?? - enumValue ?? - intEnumValue ?? - listValue ?? - mapValue ?? - structureValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + numberValue ?? + blobValue ?? + timestampValue ?? + enumValue ?? + intEnumValue ?? + listValue ?? + mapValue ?? + structureValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'MyUnion'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (numberValue != null) { - helper.add( - r'numberValue', - numberValue, - ); + helper.add(r'numberValue', numberValue); } if (blobValue != null) { - helper.add( - r'blobValue', - blobValue, - ); + helper.add(r'blobValue', blobValue); } if (timestampValue != null) { - helper.add( - r'timestampValue', - timestampValue, - ); + helper.add(r'timestampValue', timestampValue); } if (enumValue != null) { - helper.add( - r'enumValue', - enumValue, - ); + helper.add(r'enumValue', enumValue); } if (intEnumValue != null) { - helper.add( - r'intEnumValue', - intEnumValue, - ); + helper.add(r'intEnumValue', intEnumValue); } if (listValue != null) { - helper.add( - r'listValue', - listValue, - ); + helper.add(r'listValue', listValue); } if (mapValue != null) { - helper.add( - r'mapValue', - mapValue, - ); + helper.add(r'mapValue', mapValue); } if (structureValue != null) { - helper.add( - r'structureValue', - structureValue, - ); + helper.add(r'structureValue', structureValue); } return helper.toString(); } @@ -230,7 +199,7 @@ final class MyUnionListValue$ extends MyUnion { final class MyUnionMapValue$ extends MyUnion { MyUnionMapValue$(Map mapValue) - : this._(_i3.BuiltMap(mapValue)); + : this._(_i3.BuiltMap(mapValue)); const MyUnionMapValue$._(this.mapValue) : super._(); @@ -252,10 +221,7 @@ final class MyUnionStructureValue$ extends MyUnion { } final class MyUnionSdkUnknown$ extends MyUnion { - const MyUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const MyUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -270,26 +236,23 @@ class MyUnionAwsJson10Serializer @override Iterable get types => const [ - MyUnion, - MyUnionStringValue$, - MyUnionBooleanValue$, - MyUnionNumberValue$, - MyUnionBlobValue$, - MyUnionTimestampValue$, - MyUnionEnumValue$, - MyUnionIntEnumValue$, - MyUnionListValue$, - MyUnionMapValue$, - MyUnionStructureValue$, - ]; + MyUnion, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionIntEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override MyUnion deserialize( @@ -300,69 +263,80 @@ class MyUnionAwsJson10Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return MyUnionStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return MyUnionBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return MyUnionBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'numberValue': - return MyUnionNumberValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return MyUnionNumberValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'blobValue': - return MyUnionBlobValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List)); + return MyUnionBlobValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List), + ); case 'timestampValue': - return MyUnionTimestampValue$((serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime)); + return MyUnionTimestampValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime), + ); case 'enumValue': - return MyUnionEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum)); + return MyUnionEnumValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum), + ); case 'intEnumValue': - return MyUnionIntEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return MyUnionIntEnumValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'listValue': - return MyUnionListValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + return MyUnionListValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'mapValue': - return MyUnionMapValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + return MyUnionMapValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'structureValue': - return MyUnionStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct)); + return MyUnionStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct), + ); } - return MyUnion.sdkUnknown( - key, - value, - ); + return MyUnion.sdkUnknown(key, value); } @override @@ -375,54 +349,48 @@ class MyUnionAwsJson10Serializer object.name, switch (object) { MyUnionStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), MyUnionBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), MyUnionNumberValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), MyUnionBlobValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ), + value, + specifiedType: const FullType(_i2.Uint8List), + ), MyUnionTimestampValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(DateTime), - ), + value, + specifiedType: const FullType(DateTime), + ), MyUnionEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(FooEnum), - ), + value, + specifiedType: const FullType(FooEnum), + ), MyUnionIntEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), MyUnionListValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), + ), MyUnionMapValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ), MyUnionStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(GreetingStruct), - ), + value, + specifiedType: const FullType(GreetingStruct), + ), MyUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart index deb7cc94b6..f31ddbfc69 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputAwsJson10Serializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputAwsJson10Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override NoInputAndOutputOutput deserialize( @@ -78,6 +74,5 @@ class NoInputAndOutputOutputAwsJson10Serializer Serializers serializers, NoInputAndOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart index 8927a8b8ba..3a84198e2a 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsJson10Serializer() + OperationConfigAwsJson10Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsJson10Serializer const OperationConfigAwsJson10Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigAwsJson10Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigAwsJson10Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart index 4393f4a59c..bf028d5839 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class PutWithContentEncodingInput _i2.AWSEquatable implements Built { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -36,11 +30,10 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputAwsJson10Serializer()]; + serializers = [PutWithContentEncodingInputAwsJson10Serializer()]; String? get encoding; String? get data; @@ -48,22 +41,14 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput getPayload() => this; @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class PutWithContentEncodingInput class PutWithContentEncodingInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson10Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override PutWithContentEncodingInput deserialize( @@ -104,15 +86,19 @@ class PutWithContentEncodingInputAwsJson10Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,18 +116,19 @@ class PutWithContentEncodingInputAwsJson10Serializer if (encoding != null) { result$ ..add('encoding') - ..add(serializers.serialize( - encoding, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + encoding, + specifiedType: const FullType(String), + ), + ); } if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart index 43d33e396f..ce25012d07 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart index a3ad03e3e2..37638fb53a 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsJson10Serializer() + RetryConfigAwsJson10Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsJson10Serializer const RetryConfigAwsJson10Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigAwsJson10Serializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -121,18 +105,19 @@ class RetryConfigAwsJson10Serializer if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart index acbb24f5bd..99c9fcaccc 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart index 9ce554a70c..193b5cc183 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart index 0aff279d98..b62368ea39 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsJson10Serializer() + S3ConfigAwsJson10Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsJson10Serializer const S3ConfigAwsJson10Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigAwsJson10Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigAwsJson10Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart index 9635b24fad..cdc377d447 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsJson10Serializer() + ScopedConfigAwsJson10Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsJson10Serializer const ScopedConfigAwsJson10Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigAwsJson10Serializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigAwsJson10Serializer :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart index 27bd9e9622..db3a16a4da 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.simple_scalar_properties_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,9 +26,9 @@ abstract class SimpleScalarPropertiesInput ); } - factory SimpleScalarPropertiesInput.build( - [void Function(SimpleScalarPropertiesInputBuilder) updates]) = - _$SimpleScalarPropertiesInput; + factory SimpleScalarPropertiesInput.build([ + void Function(SimpleScalarPropertiesInputBuilder) updates, + ]) = _$SimpleScalarPropertiesInput; const SimpleScalarPropertiesInput._(); @@ -36,11 +36,10 @@ abstract class SimpleScalarPropertiesInput SimpleScalarPropertiesInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputAwsJson10Serializer()]; + serializers = [SimpleScalarPropertiesInputAwsJson10Serializer()]; double? get floatValue; double? get doubleValue; @@ -48,22 +47,14 @@ abstract class SimpleScalarPropertiesInput SimpleScalarPropertiesInput getPayload() => this; @override - List get props => [ - floatValue, - doubleValue, - ]; + List get props => [floatValue, doubleValue]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInput') - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + final helper = + newBuiltValueToStringHelper('SimpleScalarPropertiesInput') + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -71,21 +62,18 @@ abstract class SimpleScalarPropertiesInput class SimpleScalarPropertiesInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const SimpleScalarPropertiesInputAwsJson10Serializer() - : super('SimpleScalarPropertiesInput'); + : super('SimpleScalarPropertiesInput'); @override Iterable get types => const [ - SimpleScalarPropertiesInput, - _$SimpleScalarPropertiesInput, - ]; + SimpleScalarPropertiesInput, + _$SimpleScalarPropertiesInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesInput deserialize( @@ -104,15 +92,19 @@ class SimpleScalarPropertiesInputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -130,18 +122,22 @@ class SimpleScalarPropertiesInputAwsJson10Serializer if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add('doubleValue') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart index 6d11f8ba03..28bd229d56 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart @@ -12,17 +12,17 @@ class _$SimpleScalarPropertiesInput extends SimpleScalarPropertiesInput { @override final double? doubleValue; - factory _$SimpleScalarPropertiesInput( - [void Function(SimpleScalarPropertiesInputBuilder)? updates]) => - (new SimpleScalarPropertiesInputBuilder()..update(updates))._build(); + factory _$SimpleScalarPropertiesInput([ + void Function(SimpleScalarPropertiesInputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputBuilder()..update(updates))._build(); _$SimpleScalarPropertiesInput._({this.floatValue, this.doubleValue}) - : super._(); + : super._(); @override SimpleScalarPropertiesInput rebuild( - void Function(SimpleScalarPropertiesInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputBuilder toBuilder() => @@ -48,8 +48,10 @@ class _$SimpleScalarPropertiesInput extends SimpleScalarPropertiesInput { class SimpleScalarPropertiesInputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInputBuilder + > { _$SimpleScalarPropertiesInput? _$v; double? _floatValue; @@ -87,9 +89,12 @@ class SimpleScalarPropertiesInputBuilder SimpleScalarPropertiesInput build() => _build(); _$SimpleScalarPropertiesInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInput._( - floatValue: floatValue, doubleValue: doubleValue); + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart index 54308c6789..89ce4d7a2e 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.model.simple_scalar_properties_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,11 +11,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'simple_scalar_properties_output.g.dart'; abstract class SimpleScalarPropertiesOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutputBuilder + > { factory SimpleScalarPropertiesOutput({ double? floatValue, double? doubleValue, @@ -26,9 +27,9 @@ abstract class SimpleScalarPropertiesOutput ); } - factory SimpleScalarPropertiesOutput.build( - [void Function(SimpleScalarPropertiesOutputBuilder) updates]) = - _$SimpleScalarPropertiesOutput; + factory SimpleScalarPropertiesOutput.build([ + void Function(SimpleScalarPropertiesOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesOutput; const SimpleScalarPropertiesOutput._(); @@ -36,31 +37,22 @@ abstract class SimpleScalarPropertiesOutput factory SimpleScalarPropertiesOutput.fromResponse( SimpleScalarPropertiesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [SimpleScalarPropertiesOutputAwsJson10Serializer()]; + serializers = [SimpleScalarPropertiesOutputAwsJson10Serializer()]; double? get floatValue; double? get doubleValue; @override - List get props => [ - floatValue, - doubleValue, - ]; + List get props => [floatValue, doubleValue]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesOutput') - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + final helper = + newBuiltValueToStringHelper('SimpleScalarPropertiesOutput') + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -68,21 +60,18 @@ abstract class SimpleScalarPropertiesOutput class SimpleScalarPropertiesOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const SimpleScalarPropertiesOutputAwsJson10Serializer() - : super('SimpleScalarPropertiesOutput'); + : super('SimpleScalarPropertiesOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesOutput, - _$SimpleScalarPropertiesOutput, - ]; + SimpleScalarPropertiesOutput, + _$SimpleScalarPropertiesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesOutput deserialize( @@ -101,15 +90,19 @@ class SimpleScalarPropertiesOutputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -127,18 +120,22 @@ class SimpleScalarPropertiesOutputAwsJson10Serializer if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add('doubleValue') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart index efc670fb1b..5e50b8b962 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart @@ -12,17 +12,17 @@ class _$SimpleScalarPropertiesOutput extends SimpleScalarPropertiesOutput { @override final double? doubleValue; - factory _$SimpleScalarPropertiesOutput( - [void Function(SimpleScalarPropertiesOutputBuilder)? updates]) => - (new SimpleScalarPropertiesOutputBuilder()..update(updates))._build(); + factory _$SimpleScalarPropertiesOutput([ + void Function(SimpleScalarPropertiesOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesOutputBuilder()..update(updates))._build(); _$SimpleScalarPropertiesOutput._({this.floatValue, this.doubleValue}) - : super._(); + : super._(); @override SimpleScalarPropertiesOutput rebuild( - void Function(SimpleScalarPropertiesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesOutputBuilder toBuilder() => @@ -48,8 +48,10 @@ class _$SimpleScalarPropertiesOutput extends SimpleScalarPropertiesOutput { class SimpleScalarPropertiesOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutputBuilder + > { _$SimpleScalarPropertiesOutput? _$v; double? _floatValue; @@ -87,9 +89,12 @@ class SimpleScalarPropertiesOutputBuilder SimpleScalarPropertiesOutput build() => _build(); _$SimpleScalarPropertiesOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesOutput._( - floatValue: floatValue, doubleValue: doubleValue); + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart index 3242fd35d3..c06150e20a 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,46 +14,53 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.EmptyInputAndEmptyOutput', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,11 +90,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +114,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart index e12d1e3737..ad8079b156 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,31 +18,29 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonRpc10.EndpointOperation', - ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithHeader('X-Amz-Target', 'JsonRpc10.EndpointOperation'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,19 +58,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -97,11 +92,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart index d016acc41e..89f7d57be2 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,53 @@ import 'package:aws_json1_0_v1/src/json_rpc_10/model/endpoint_with_host_label_op import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1.HttpOperation< - EndpointWithHostLabelOperationInput, - EndpointWithHostLabelOperationInput, - _i1.Unit, - _i1.Unit> { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInput, + _i1.Unit, + _i1.Unit + > { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EndpointWithHostLabelOperationInput, - EndpointWithHostLabelOperationInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.EndpointWithHostLabelOperation', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,10 +86,7 @@ class EndpointWithHostLabelOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +111,7 @@ class EndpointWithHostLabelOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart index 16ebfebc92..f3aca4e892 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,44 +17,54 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. -class GreetingWithErrorsOperation extends _i1.HttpOperation< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.GreetingWithErrors', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -84,42 +94,32 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation< GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'FooError', - ), - _i1.ErrorKind.server, - FooError, - builder: FooError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json10', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json10', shape: 'FooError'), + _i1.ErrorKind.server, + FooError, + builder: FooError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json10', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -140,11 +140,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart index 6e739776a5..97ac910bb9 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,31 +18,32 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.HostWithPathOperation', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart index b4a9f3322e..58249fb0ef 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.json_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,41 +14,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation uses unions for inputs and outputs. -class JsonUnionsOperation extends _i1.HttpOperation { +class JsonUnionsOperation + extends + _i1.HttpOperation< + JsonUnionsInput, + JsonUnionsInput, + JsonUnionsOutput, + JsonUnionsOutput + > { /// This operation uses unions for inputs and outputs. JsonUnionsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonUnionsInput, + JsonUnionsInput, + JsonUnionsOutput, + JsonUnionsOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonRpc10.JsonUnions', - ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithHeader('X-Amz-Target', 'JsonRpc10.JsonUnions'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,9 +76,9 @@ class JsonUnionsOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([JsonUnionsOutput? output]) => 200; @@ -77,11 +87,7 @@ class JsonUnionsOperation extends _i1.HttpOperation - JsonUnionsOutput.fromResponse( - payload, - response, - ); + ) => JsonUnionsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class JsonUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart index 73616a24bc..3fd0b83e7a 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,31 +20,32 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.NoInputAndNoOutput', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,18 +63,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +96,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart index 16421526cc..a64202a1d8 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonRpc10.NoInputAndOutput', - ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithHeader('X-Amz-Target', 'JsonRpc10.NoInputAndOutput'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,9 +74,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -75,11 +85,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart index c2bd654890..2ad258bd8b 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,53 @@ import 'package:aws_json1_0_v1/src/json_rpc_10/model/put_with_content_encoding_i import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.PutWithContentEncoding', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,10 +90,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +115,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart index ecbf6592a5..d7de71a5cc 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v1.json_rpc_10.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,46 +13,53 @@ import 'package:aws_json1_0_v1/src/json_rpc_10/model/simple_scalar_properties_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInput, - SimpleScalarPropertiesInput, - SimpleScalarPropertiesOutput, - SimpleScalarPropertiesOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInput, + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInput, - SimpleScalarPropertiesInput, - SimpleScalarPropertiesOutput, - SimpleScalarPropertiesOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInput, + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.SimpleScalarProperties', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +89,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesOutput buildOutput( SimpleScalarPropertiesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +113,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_0/pubspec.yaml b/packages/smithy/goldens/lib/awsJson1_0/pubspec.yaml index 7c47200550..272b3ff786 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/pubspec.yaml +++ b/packages/smithy/goldens/lib/awsJson1_0/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -17,7 +17,7 @@ dependencies: built_collection: ^5.0.0 shelf_router: ^1.1.0 shelf: ^1.4.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -39,6 +39,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart index 25c2d16f50..1adcc053ad 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,50 +13,44 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10EmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10EmptyInputAndEmptyOutput', - documentation: - 'Clients must always send an empty object if input is modeled.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.EmptyInputAndEmptyOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputAwsJson10Serializer() - ], - ); - }, - ); + _i1.test('AwsJson10EmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10EmptyInputAndEmptyOutput', + documentation: + 'Clients must always send an empty object if input is modeled.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.EmptyInputAndEmptyOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputAwsJson10Serializer(), + ], + ); + }); _i1.test( 'AwsJson10EmptyInputAndEmptyOutputSendJsonObject (response)', () async { @@ -87,7 +81,7 @@ void main() { code: 200, ), outputSerializers: const [ - EmptyInputAndEmptyOutputOutputAwsJson10Serializer() + EmptyInputAndEmptyOutputOutputAwsJson10Serializer(), ], ); }, @@ -97,18 +91,15 @@ void main() { class EmptyInputAndEmptyOutputInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -132,18 +123,15 @@ class EmptyInputAndEmptyOutputInputAwsJson10Serializer class EmptyInputAndEmptyOutputOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart index f23b46e72b..db0c87f0b0 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10EndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10EndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('AwsJson10EndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10EndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart index 1ab5731eeb..27d2e68228 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,56 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10EndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10EndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{"label": "bar"}', - bodyMediaType: 'application/json', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EndpointWithHostLabelOperationInputAwsJson10Serializer() - ], - ); - }, - ); + _i1.test('AwsJson10EndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10EndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{"label": "bar"}', + bodyMediaType: 'application/json', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EndpointWithHostLabelOperationInputAwsJson10Serializer(), + ], + ); + }); } -class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i3 - .StructuredSmithySerializer { +class EndpointWithHostLabelOperationInputAwsJson10Serializer + extends + _i3.StructuredSmithySerializer { const EndpointWithHostLabelOperationInputAwsJson10Serializer() - : super('EndpointWithHostLabelOperationInput'); + : super('EndpointWithHostLabelOperationInput'); @override Iterable get types => const [EndpointWithHostLabelOperationInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EndpointWithHostLabelOperationInput deserialize( @@ -88,10 +80,12 @@ class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i3 } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart index 9723a32ff1..1e57456d4c 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,178 +17,159 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10ComplexError (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10ComplexError', - documentation: 'Parses a complex error with no message member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.json10#ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorAwsJson10Serializer(), - ComplexNestedErrorDataAwsJson10Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson10EmptyComplexError (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10EmptyComplexError', - documentation: 'Parses a complex error with an empty body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.json10#ComplexError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorAwsJson10Serializer(), - ComplexNestedErrorDataAwsJson10Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingXAmznErrorType (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingXAmznErrorType', - documentation: - 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amzn-Errortype': 'FooError'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingXAmznErrorTypeWithUri (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingXAmznErrorTypeWithUri', - documentation: - 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Amzn-Errortype': - 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); + _i1.test('AwsJson10ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10ComplexError', + documentation: 'Parses a complex error with no message member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.json10#ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson10Serializer(), + ComplexNestedErrorDataAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10EmptyComplexError (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10EmptyComplexError', + documentation: 'Parses a complex error with an empty body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.json10#ComplexError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson10Serializer(), + ComplexNestedErrorDataAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10FooErrorUsingXAmznErrorType (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingXAmznErrorType', + documentation: + 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amzn-Errortype': 'FooError'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorUsingXAmznErrorTypeWithUri (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingXAmznErrorTypeWithUri', + documentation: + 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Errortype': + 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); _i1.test( 'AwsJson10FooErrorUsingXAmznErrorTypeWithUriAndNamespace (error)', () async { await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( operation: GreetingWithErrorsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), @@ -209,7 +190,7 @@ void main() { vendorParams: {}, headers: { 'X-Amzn-Errortype': - 'aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/' + 'aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/', }, forbidHeaders: [], requireHeaders: [], @@ -221,290 +202,252 @@ void main() { ); }, ); - _i1.test( - 'AwsJson10FooErrorUsingCode (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingCode', - documentation: - 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "code": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingCodeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingCodeAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "code": "aws.protocoltests.json10#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingCodeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingCodeUriAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "code": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorWithDunderType (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorWithDunderType', - documentation: 'Some services serialize errors using __type.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "__type": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorWithDunderTypeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorWithDunderTypeAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.json10#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorWithDunderTypeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorWithDunderTypeUriAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10InvalidGreetingError', - documentation: 'Parses simple JSON errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.json10#InvalidGreeting",\n "Message": "Hi"\n}', - bodyMediaType: 'application/json', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingAwsJson10Serializer()], - ); - }, - ); + _i1.test('AwsJson10FooErrorUsingCode (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingCode', + documentation: + 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "code": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorUsingCodeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingCodeAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "code": "aws.protocoltests.json10#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorUsingCodeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingCodeUriAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "code": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorWithDunderType (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorWithDunderType', + documentation: 'Some services serialize errors using __type.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "__type": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorWithDunderTypeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorWithDunderTypeAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.json10#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorWithDunderTypeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorWithDunderTypeUriAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10InvalidGreetingError', + documentation: 'Parses simple JSON errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.json10#InvalidGreeting",\n "Message": "Hi"\n}', + bodyMediaType: 'application/json', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingAwsJson10Serializer()], + ); + }); } class GreetingWithErrorsInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsInputAwsJson10Serializer() - : super('GreetingWithErrorsInput'); + : super('GreetingWithErrorsInput'); @override Iterable get types => const [GreetingWithErrorsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsInput deserialize( @@ -523,10 +466,12 @@ class GreetingWithErrorsInputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -546,18 +491,15 @@ class GreetingWithErrorsInputAwsJson10Serializer class GreetingWithErrorsOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson10Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -576,10 +518,12 @@ class GreetingWithErrorsOutputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -605,11 +549,8 @@ class ComplexErrorAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexError deserialize( @@ -628,15 +569,20 @@ class ComplexErrorAwsJson10Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -656,18 +602,15 @@ class ComplexErrorAwsJson10Serializer class ComplexNestedErrorDataAwsJson10Serializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson10Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexNestedErrorData deserialize( @@ -686,10 +629,12 @@ class ComplexNestedErrorDataAwsJson10Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -715,11 +660,8 @@ class FooErrorAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override FooError deserialize( @@ -749,11 +691,8 @@ class InvalidGreetingAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override InvalidGreeting deserialize( @@ -772,10 +711,12 @@ class InvalidGreetingAwsJson10Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart index 16af5056a2..8f6af084f8 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10HostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10HostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('AwsJson10HostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10HostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart index 2cdc5e8225..59e61280fe 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.json_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,808 +14,676 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10SerializeStringUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeStringUnionValue', - documentation: 'Serializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} + _i1.test('AwsJson10SerializeStringUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeStringUnionValue', + documentation: 'Serializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeBooleanUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeBooleanUnionValue', + documentation: 'Serializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeNumberUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeNumberUnionValue', + documentation: 'Serializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeBlobUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeBlobUnionValue', + documentation: 'Serializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeTimestampUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeTimestampUnionValue', + documentation: 'Serializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeEnumUnionValue', + documentation: 'Serializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeIntEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeIntEnumUnionValue', + documentation: 'Serializes an intEnum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'intEnumValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeListUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeListUnionValue', + documentation: 'Serializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeMapUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeMapUnionValue', + documentation: 'Serializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeBooleanUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeBooleanUnionValue', - documentation: 'Serializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeStructureUnionValue', + documentation: 'Serializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeStringUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeStringUnionValue', + documentation: 'Deserializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeBooleanUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeBooleanUnionValue', + documentation: 'Deserializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeNumberUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeNumberUnionValue', + documentation: 'Deserializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeBlobUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeBlobUnionValue', + documentation: 'Deserializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeTimestampUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeTimestampUnionValue', + documentation: 'Deserializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeEnumUnionValue', + documentation: 'Deserializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeIntEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeIntEnumUnionValue', + documentation: 'Deserializes an intEnum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'intEnumValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeListUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeListUnionValue', + documentation: 'Deserializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeNumberUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeNumberUnionValue', - documentation: 'Serializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeMapUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeMapUnionValue', + documentation: 'Deserializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeStructureUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeStructureUnionValue', + documentation: 'Deserializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeBlobUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeBlobUnionValue', - documentation: 'Serializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeTimestampUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeTimestampUnionValue', - documentation: 'Serializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeEnumUnionValue', - documentation: 'Serializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeIntEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeIntEnumUnionValue', - documentation: 'Serializes an intEnum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'intEnumValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeListUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeListUnionValue', - documentation: 'Serializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeMapUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeMapUnionValue', - documentation: 'Serializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeStructureUnionValue', - documentation: 'Serializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeStringUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeStringUnionValue', - documentation: 'Deserializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeBooleanUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeBooleanUnionValue', - documentation: 'Deserializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeNumberUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeNumberUnionValue', - documentation: 'Deserializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeBlobUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeBlobUnionValue', - documentation: 'Deserializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeTimestampUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeTimestampUnionValue', - documentation: 'Deserializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeEnumUnionValue', - documentation: 'Deserializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeIntEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeIntEnumUnionValue', - documentation: 'Deserializes an intEnum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'intEnumValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeListUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeListUnionValue', - documentation: 'Deserializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeMapUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeMapUnionValue', - documentation: 'Deserializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeStructureUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeStructureUnionValue', - documentation: 'Deserializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); } class JsonUnionsInputAwsJson10Serializer @@ -827,11 +695,8 @@ class JsonUnionsInputAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsInput deserialize( @@ -850,10 +715,12 @@ class JsonUnionsInputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -879,11 +746,8 @@ class JsonUnionsOutputAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsOutput deserialize( @@ -902,10 +766,12 @@ class JsonUnionsOutputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart index 1984f1aaf5..e08ec490d6 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,145 +10,121 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10MustAlwaysSendEmptyJsonPayload (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10MustAlwaysSendEmptyJsonPayload', - documentation: - 'Clients must always send an empty JSON object payload for\noperations with no input (that is, `{}`). While AWS service\nimplementations support requests with no payload or requests\nthat send `{}`, always sending `{}` from the client is\npreferred for forward compatibility in case input is ever\nadded to an operation.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.NoInputAndNoOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10HandlesEmptyOutputShape (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10HandlesEmptyOutputShape', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10HandlesUnexpectedJsonOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10HandlesUnexpectedJsonOutput', - documentation: - 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "foo": true\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10ServiceRespondsWithNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10ServiceRespondsWithNoPayload', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('AwsJson10MustAlwaysSendEmptyJsonPayload (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10MustAlwaysSendEmptyJsonPayload', + documentation: + 'Clients must always send an empty JSON object payload for\noperations with no input (that is, `{}`). While AWS service\nimplementations support requests with no payload or requests\nthat send `{}`, always sending `{}` from the client is\npreferred for forward compatibility in case input is ever\nadded to an operation.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.NoInputAndNoOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('AwsJson10HandlesEmptyOutputShape (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10HandlesEmptyOutputShape', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('AwsJson10HandlesUnexpectedJsonOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10HandlesUnexpectedJsonOutput', + documentation: + 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "foo": true\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('AwsJson10ServiceRespondsWithNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10ServiceRespondsWithNoPayload', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart index adbd239608..6473ce4e39 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,98 +12,83 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10NoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10NoInputAndOutput', - documentation: - 'A client should always send and empty JSON object payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.NoInputAndOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10NoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10NoInputAndOutput', - documentation: - 'Empty output always serializes an empty object payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputAwsJson10Serializer()], - ); - }, - ); + _i1.test('AwsJson10NoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10NoInputAndOutput', + documentation: + 'A client should always send and empty JSON object payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.NoInputAndOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('AwsJson10NoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10NoInputAndOutput', + documentation: + 'Empty output always serializes an empty object payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputAwsJson10Serializer()], + ); + }); } class NoInputAndOutputOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputAwsJson10Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart index 53deafdf08..a8c375c41a 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,107 +12,111 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_awsJson1_0 (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_awsJson1_0', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', + _i1.test( + 'SDKAppliedContentEncoding_awsJson1_0 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson10Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0 (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_0 protocol.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_awsJson1_0', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_0', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson10Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputAwsJson10Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_0 protocol.\n', + protocol: _i3.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_0', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputAwsJson10Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson10Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override PutWithContentEncodingInput deserialize( @@ -131,15 +135,19 @@ class PutWithContentEncodingInputAwsJson10Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart index fa0523ff80..665f692c81 100644 --- a/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v1.json_rpc_10.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,276 +13,219 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10SupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsNaNFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesOutputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesOutputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsNegativeInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesOutputAwsJson10Serializer() - ], - ); - }, - ); + _i1.test('AwsJson10SupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsNaNFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesOutputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesOutputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsNegativeInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesOutputAwsJson10Serializer(), + ], + ); + }); } class SimpleScalarPropertiesInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputAwsJson10Serializer() - : super('SimpleScalarPropertiesInput'); + : super('SimpleScalarPropertiesInput'); @override Iterable get types => const [SimpleScalarPropertiesInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesInput deserialize( @@ -301,15 +244,19 @@ class SimpleScalarPropertiesInputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -329,18 +276,15 @@ class SimpleScalarPropertiesInputAwsJson10Serializer class SimpleScalarPropertiesOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesOutputAwsJson10Serializer() - : super('SimpleScalarPropertiesOutput'); + : super('SimpleScalarPropertiesOutput'); @override Iterable get types => const [SimpleScalarPropertiesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesOutput deserialize( @@ -359,15 +303,19 @@ class SimpleScalarPropertiesOutputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/json_protocol.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/json_protocol.dart index 351a1d2d42..d1bf742f28 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/json_protocol.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/json_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Sample Json 1.1 Protocol Service library aws_json1_1_v1.json_protocol; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/machine_learning.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/machine_learning.dart index 0d6f6ebaab..247c8d3adb 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/machine_learning.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/machine_learning.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon Machine Learning library aws_json1_1_v1.machine_learning; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart index f97d6200cd..e4495b0bdb 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Json Protocol'; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/serializers.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/serializers.dart index 9695d2b8a1..84ee101799 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -82,126 +82,50 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ) - ], - ): _i2.ListBuilder<_i2.BuiltMap>.new, - const FullType( - _i2.BuiltList, - [FullType(SimpleStruct)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ], - ): _i2.MapBuilder>.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(SimpleStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(KitchenSink)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(KitchenSink), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType.nullable(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltMap, [FullType(String), FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltMap>.new, + const FullType(_i2.BuiltList, [FullType(SimpleStruct)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(_i2.BuiltMap, [FullType(String), FullType(String)]), + ]): + _i2.MapBuilder>.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(SimpleStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(KitchenSink)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(KitchenSink)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType.nullable(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart index 4597b4323f..488364e928 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -46,12 +46,12 @@ class JsonProtocolClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -75,10 +75,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation emptyOperation({ @@ -91,10 +88,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation endpointOperation({ @@ -107,10 +101,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation endpointWithHostLabelOperation( @@ -124,10 +115,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation fractionalSeconds({ @@ -140,10 +128,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. @@ -157,10 +142,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation hostWithPathOperation({ @@ -173,10 +155,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -191,10 +170,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes intEnums as top level properties, in lists, sets, and maps. @@ -209,10 +185,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation uses unions for inputs and outputs. @@ -227,10 +200,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation kitchenSinkOperation( @@ -244,10 +214,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation nullOperation( @@ -261,14 +228,11 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation - operationWithOptionalInputOutput( + operationWithOptionalInputOutput( OperationWithOptionalInputOutputInput input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -279,15 +243,12 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes an inline document as part of the payload. _i3.SmithyOperation - putAndGetInlineDocuments( + putAndGetInlineDocuments( PutAndGetInlineDocumentsInputOutput input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -298,10 +259,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation putWithContentEncoding( @@ -315,10 +273,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation simpleScalarProperties( @@ -332,9 +287,6 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart index 61a62f25ca..896f1d32fb 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,30 +44,27 @@ abstract class JsonProtocolServerBase extends _i1.HttpServerBase { router.add( 'POST', '/', - _i1.RpcRouter( - 'X-Amz-Target', - { - 'JsonProtocol.DatetimeOffsets': service.datetimeOffsets, - 'JsonProtocol.EmptyOperation': service.emptyOperation, - 'JsonProtocol.EndpointOperation': service.endpointOperation, - 'JsonProtocol.EndpointWithHostLabelOperation': - service.endpointWithHostLabelOperation, - 'JsonProtocol.FractionalSeconds': service.fractionalSeconds, - 'JsonProtocol.GreetingWithErrors': service.greetingWithErrors, - 'JsonProtocol.HostWithPathOperation': service.hostWithPathOperation, - 'JsonProtocol.JsonEnums': service.jsonEnums, - 'JsonProtocol.JsonIntEnums': service.jsonIntEnums, - 'JsonProtocol.JsonUnions': service.jsonUnions, - 'JsonProtocol.KitchenSinkOperation': service.kitchenSinkOperation, - 'JsonProtocol.NullOperation': service.nullOperation, - 'JsonProtocol.OperationWithOptionalInputOutput': - service.operationWithOptionalInputOutput, - 'JsonProtocol.PutAndGetInlineDocuments': - service.putAndGetInlineDocuments, - 'JsonProtocol.PutWithContentEncoding': service.putWithContentEncoding, - 'JsonProtocol.SimpleScalarProperties': service.simpleScalarProperties, - }, - ), + _i1.RpcRouter('X-Amz-Target', { + 'JsonProtocol.DatetimeOffsets': service.datetimeOffsets, + 'JsonProtocol.EmptyOperation': service.emptyOperation, + 'JsonProtocol.EndpointOperation': service.endpointOperation, + 'JsonProtocol.EndpointWithHostLabelOperation': + service.endpointWithHostLabelOperation, + 'JsonProtocol.FractionalSeconds': service.fractionalSeconds, + 'JsonProtocol.GreetingWithErrors': service.greetingWithErrors, + 'JsonProtocol.HostWithPathOperation': service.hostWithPathOperation, + 'JsonProtocol.JsonEnums': service.jsonEnums, + 'JsonProtocol.JsonIntEnums': service.jsonIntEnums, + 'JsonProtocol.JsonUnions': service.jsonUnions, + 'JsonProtocol.KitchenSinkOperation': service.kitchenSinkOperation, + 'JsonProtocol.NullOperation': service.nullOperation, + 'JsonProtocol.OperationWithOptionalInputOutput': + service.operationWithOptionalInputOutput, + 'JsonProtocol.PutAndGetInlineDocuments': + service.putAndGetInlineDocuments, + 'JsonProtocol.PutWithContentEncoding': service.putWithContentEncoding, + 'JsonProtocol.SimpleScalarProperties': service.simpleScalarProperties, + }), ); return router; }(); @@ -76,14 +73,8 @@ abstract class JsonProtocolServerBase extends _i1.HttpServerBase { _i1.Unit input, _i1.Context context, ); - _i3.Future<_i1.Unit> emptyOperation( - _i1.Unit input, - _i1.Context context, - ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> emptyOperation(_i1.Unit input, _i1.Context context); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelOperation( HostLabelInput input, _i1.Context context, @@ -121,7 +112,7 @@ abstract class JsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - operationWithOptionalInputOutput( + operationWithOptionalInputOutput( OperationWithOptionalInputOutputInput input, _i1.Context context, ); @@ -146,129 +137,163 @@ class _JsonProtocolServer extends _i1.HttpServer { @override final JsonProtocolServerBase service; - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput> _datetimeOffsetsProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + _datetimeOffsetsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _emptyOperationProtocol = _i2.AwsJson1_1Protocol( + _emptyOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.AwsJson1_1Protocol( + _endpointOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + HostLabelInput, + HostLabelInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput> _fractionalSecondsProtocol = - _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + _fractionalSecondsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput> _greetingWithErrorsProtocol = - _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _hostWithPathOperationProtocol = _i2.AwsJson1_1Protocol( + _hostWithPathOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput> _jsonEnumsProtocol = _i2.AwsJson1_1Protocol( + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + _jsonEnumsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput> _jsonIntEnumsProtocol = _i2.AwsJson1_1Protocol( + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + _jsonIntEnumsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - UnionInputOutput, - UnionInputOutput, - UnionInputOutput, - UnionInputOutput> _jsonUnionsProtocol = _i2.AwsJson1_1Protocol( + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + _jsonUnionsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _kitchenSinkOperationProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + KitchenSink, + KitchenSink, + KitchenSink, + KitchenSink + > + _kitchenSinkOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput> _nullOperationProtocol = _i2.AwsJson1_1Protocol( + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput + > + _nullOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputOutput, - OperationWithOptionalInputOutputOutput> - _operationWithOptionalInputOutputProtocol = _i2.AwsJson1_1Protocol( + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutput + > + _operationWithOptionalInputOutputProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput> - _putAndGetInlineDocumentsProtocol = _i2.AwsJson1_1Protocol( + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput + > + _putAndGetInlineDocumentsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.AwsJson1_1Protocol( + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.AwsJson1_1Protocol( + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -281,21 +306,18 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _datetimeOffsetsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.datetimeOffsets( - input, - context, - ); + final output = await service.datetimeOffsets(input, context); const statusCode = 200; final body = await _datetimeOffsetsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DatetimeOffsetsOutput, - [FullType(DatetimeOffsetsOutput)], - ), + specifiedType: const FullType(DatetimeOffsetsOutput, [ + FullType(DatetimeOffsetsOutput), + ]), ); return _i4.Response( statusCode, @@ -303,10 +325,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -316,22 +335,18 @@ class _JsonProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _emptyOperationProtocol.contentType; try { - final payload = (await _emptyOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _emptyOperationProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.emptyOperation( - input, - context, - ); + final output = await service.emptyOperation(input, context); const statusCode = 200; final body = await _emptyOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -339,10 +354,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -354,21 +366,16 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -376,31 +383,26 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelInput), - ) as HostLabelInput); - final input = HostLabelInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelInput), + ) + as HostLabelInput); + final input = HostLabelInput.fromRequest(payload, awsRequest, labels: {}); final output = await service.endpointWithHostLabelOperation( input, context, @@ -408,22 +410,16 @@ class _JsonProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -435,21 +431,18 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _fractionalSecondsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.fractionalSeconds( - input, - context, - ); + final output = await service.fractionalSeconds(input, context); const statusCode = 200; final body = await _fractionalSecondsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FractionalSecondsOutput, - [FullType(FractionalSecondsOutput)], - ), + specifiedType: const FullType(FractionalSecondsOutput, [ + FullType(FractionalSecondsOutput), + ]), ); return _i4.Response( statusCode, @@ -457,10 +450,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -472,21 +462,18 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutput)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutput), + ]), ); return _i4.Response( statusCode, @@ -496,10 +483,7 @@ class _JsonProtocolServer extends _i1.HttpServer { } on ComplexError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexError)], - ), + specifiedType: const FullType(ComplexError, [FullType(ComplexError)]), ); const statusCode = 400; return _i4.Response( @@ -510,10 +494,7 @@ class _JsonProtocolServer extends _i1.HttpServer { } on FooError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - FooError, - [FullType(FooError)], - ), + specifiedType: const FullType(FooError, [FullType(FooError)]), ); const statusCode = 500; return _i4.Response( @@ -524,10 +505,9 @@ class _JsonProtocolServer extends _i1.HttpServer { } on InvalidGreeting catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -536,10 +516,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -551,33 +528,25 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _hostWithPathOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.hostWithPathOperation( - input, - context, - ); + final output = await service.hostWithPathOperation(input, context); const statusCode = 200; - final body = - await _hostWithPathOperationProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _hostWithPathOperationProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -586,26 +555,24 @@ class _JsonProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonEnumsProtocol.contentType; try { - final payload = (await _jsonEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonEnumsInputOutput), - ) as JsonEnumsInputOutput); + final payload = + (await _jsonEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonEnumsInputOutput), + ) + as JsonEnumsInputOutput); final input = JsonEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonEnums( - input, - context, - ); + final output = await service.jsonEnums(input, context); const statusCode = 200; final body = await _jsonEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonEnumsInputOutput, - [FullType(JsonEnumsInputOutput)], - ), + specifiedType: const FullType(JsonEnumsInputOutput, [ + FullType(JsonEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -613,10 +580,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -626,26 +590,24 @@ class _JsonProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _jsonIntEnumsProtocol.contentType; try { - final payload = (await _jsonIntEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonIntEnumsInputOutput), - ) as JsonIntEnumsInputOutput); + final payload = + (await _jsonIntEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonIntEnumsInputOutput), + ) + as JsonIntEnumsInputOutput); final input = JsonIntEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonIntEnums( - input, - context, - ); + final output = await service.jsonIntEnums(input, context); const statusCode = 200; final body = await _jsonIntEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonIntEnumsInputOutput, - [FullType(JsonIntEnumsInputOutput)], - ), + specifiedType: const FullType(JsonIntEnumsInputOutput, [ + FullType(JsonIntEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -653,10 +615,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -665,26 +624,24 @@ class _JsonProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonUnionsProtocol.contentType; try { - final payload = (await _jsonUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(UnionInputOutput), - ) as UnionInputOutput); + final payload = + (await _jsonUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(UnionInputOutput), + ) + as UnionInputOutput); final input = UnionInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonUnions( - input, - context, - ); + final output = await service.jsonUnions(input, context); const statusCode = 200; final body = await _jsonUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - UnionInputOutput, - [FullType(UnionInputOutput)], - ), + specifiedType: const FullType(UnionInputOutput, [ + FullType(UnionInputOutput), + ]), ); return _i4.Response( statusCode, @@ -692,10 +649,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -707,25 +661,16 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _kitchenSinkOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink); - final input = KitchenSink.fromRequest( - payload, - awsRequest, - labels: {}, - ); - final output = await service.kitchenSinkOperation( - input, - context, - ); + await awsRequest.bodyBytes, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink); + final input = KitchenSink.fromRequest(payload, awsRequest, labels: {}); + final output = await service.kitchenSinkOperation(input, context); const statusCode = 200; final body = await _kitchenSinkOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - KitchenSink, - [FullType(KitchenSink)], - ), + specifiedType: const FullType(KitchenSink, [FullType(KitchenSink)]), ); return _i4.Response( statusCode, @@ -735,10 +680,9 @@ class _JsonProtocolServer extends _i1.HttpServer { } on ErrorWithMembers catch (e) { final body = _kitchenSinkOperationProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ErrorWithMembers, - [FullType(ErrorWithMembers)], - ), + specifiedType: const FullType(ErrorWithMembers, [ + FullType(ErrorWithMembers), + ]), ); const statusCode = 400; return _i4.Response( @@ -749,10 +693,9 @@ class _JsonProtocolServer extends _i1.HttpServer { } on ErrorWithoutMembers catch (e) { final body = _kitchenSinkOperationProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ErrorWithoutMembers, - [FullType(ErrorWithoutMembers)], - ), + specifiedType: const FullType(ErrorWithoutMembers, [ + FullType(ErrorWithoutMembers), + ]), ); const statusCode = 500; return _i4.Response( @@ -761,10 +704,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -774,26 +714,24 @@ class _JsonProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _nullOperationProtocol.contentType; try { - final payload = (await _nullOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullOperationInputOutput), - ) as NullOperationInputOutput); + final payload = + (await _nullOperationProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(NullOperationInputOutput), + ) + as NullOperationInputOutput); final input = NullOperationInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullOperation( - input, - context, - ); + final output = await service.nullOperation(input, context); const statusCode = 200; final body = await _nullOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NullOperationInputOutput, - [FullType(NullOperationInputOutput)], - ), + specifiedType: const FullType(NullOperationInputOutput, [ + FullType(NullOperationInputOutput), + ]), ); return _i4.Response( statusCode, @@ -801,26 +739,27 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> operationWithOptionalInputOutput( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _operationWithOptionalInputOutputProtocol.contentType; try { - final payload = (await _operationWithOptionalInputOutputProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(OperationWithOptionalInputOutputInput), - ) as OperationWithOptionalInputOutputInput); + final payload = + (await _operationWithOptionalInputOutputProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + OperationWithOptionalInputOutputInput, + ), + ) + as OperationWithOptionalInputOutputInput); final input = OperationWithOptionalInputOutputInput.fromRequest( payload, awsRequest, @@ -834,22 +773,19 @@ class _JsonProtocolServer extends _i1.HttpServer { final body = await _operationWithOptionalInputOutputProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - OperationWithOptionalInputOutputOutput, - [FullType(OperationWithOptionalInputOutputOutput)], - ), - ); + output, + specifiedType: const FullType( + OperationWithOptionalInputOutputOutput, + [FullType(OperationWithOptionalInputOutputOutput)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -861,37 +797,33 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _putAndGetInlineDocumentsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutAndGetInlineDocumentsInputOutput), - ) as PutAndGetInlineDocumentsInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + PutAndGetInlineDocumentsInputOutput, + ), + ) + as PutAndGetInlineDocumentsInputOutput); final input = PutAndGetInlineDocumentsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putAndGetInlineDocuments( - input, - context, - ); + final output = await service.putAndGetInlineDocuments(input, context); const statusCode = 200; - final body = - await _putAndGetInlineDocumentsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - PutAndGetInlineDocumentsInputOutput, - [FullType(PutAndGetInlineDocumentsInputOutput)], - ), - ); + final body = await _putAndGetInlineDocumentsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(PutAndGetInlineDocumentsInputOutput, [ + FullType(PutAndGetInlineDocumentsInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -903,37 +835,29 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInput), - ) as PutWithContentEncodingInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PutWithContentEncodingInput), + ) + as PutWithContentEncodingInput); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -945,37 +869,33 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutput), - ) as SimpleScalarPropertiesInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutput, + ), + ) + as SimpleScalarPropertiesInputOutput); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutput)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.dart index c26bf2130c..fa519cd8ff 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsJson11Serializer() + AwsConfigAwsJson11Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsJson11Serializer const AwsConfigAwsJson11Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigAwsJson11Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigAwsJson11Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.dart index d85b24d4eb..b9fc088aff 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsJson11Serializer() + ClientConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsJson11Serializer const ClientConfigAwsJson11Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -193,63 +183,71 @@ class ClientConfigAwsJson11Serializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.dart index af8bc2efbd..5d294c6152 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorAwsJson11Serializer() + ComplexErrorAwsJson11Serializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.json', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorAwsJson11Serializer const ComplexErrorAwsJson11Serializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexError deserialize( @@ -127,15 +106,20 @@ class ComplexErrorAwsJson11Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -153,18 +137,22 @@ class ComplexErrorAwsJson11Serializer if (topLevel != null) { result$ ..add('TopLevel') - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add('Nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart index 2b33d41a30..61f1d8e54f 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson11Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataAwsJson11Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +94,9 @@ class ComplexNestedErrorDataAwsJson11Serializer if (foo != null) { result$ ..add('Foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart index 9df2c26a7c..b0c73d1497 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputAwsJson11Serializer() + DatetimeOffsetsOutputAwsJson11Serializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputAwsJson11Serializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsJson11Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -106,10 +99,9 @@ class DatetimeOffsetsOutputAwsJson11Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart index 0e4bd9aac4..1d319ee063 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.empty_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class EmptyStruct const EmptyStruct._(); static const List<_i2.SmithySerializer> serializers = [ - EmptyStructAwsJson11Serializer() + EmptyStructAwsJson11Serializer(), ]; @override @@ -41,18 +41,12 @@ class EmptyStructAwsJson11Serializer const EmptyStructAwsJson11Serializer() : super('EmptyStruct'); @override - Iterable get types => const [ - EmptyStruct, - _$EmptyStruct, - ]; + Iterable get types => const [EmptyStruct, _$EmptyStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EmptyStruct deserialize( @@ -68,6 +62,5 @@ class EmptyStructAwsJson11Serializer Serializers serializers, EmptyStruct object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.dart index 716f72f856..e063b45ffd 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsJson11Serializer() + EnvironmentConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsJson11Serializer const EnvironmentConfigAwsJson11Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigAwsJson11Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigAwsJson11Serializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart index 00d442ca71..57e69daf25 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.error_with_members; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -37,8 +37,9 @@ abstract class ErrorWithMembers ); } - factory ErrorWithMembers.build( - [void Function(ErrorWithMembersBuilder) updates]) = _$ErrorWithMembers; + factory ErrorWithMembers.build([ + void Function(ErrorWithMembersBuilder) updates, + ]) = _$ErrorWithMembers; const ErrorWithMembers._(); @@ -46,14 +47,13 @@ abstract class ErrorWithMembers factory ErrorWithMembers.fromResponse( ErrorWithMembers payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ErrorWithMembersAwsJson11Serializer() + ErrorWithMembersAwsJson11Serializer(), ]; String? get code; @@ -68,9 +68,9 @@ abstract class ErrorWithMembers String? get stringField; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithMembers', - ); + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithMembers', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -86,46 +86,26 @@ abstract class ErrorWithMembers @override List get props => [ - code, - complexData, - integerField, - listField, - mapField, - message, - stringField, - ]; + code, + complexData, + integerField, + listField, + mapField, + message, + stringField, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ErrorWithMembers') - ..add( - 'code', - code, - ) - ..add( - 'complexData', - complexData, - ) - ..add( - 'integerField', - integerField, - ) - ..add( - 'listField', - listField, - ) - ..add( - 'mapField', - mapField, - ) - ..add( - 'message', - message, - ) - ..add( - 'stringField', - stringField, - ); + final helper = + newBuiltValueToStringHelper('ErrorWithMembers') + ..add('code', code) + ..add('complexData', complexData) + ..add('integerField', integerField) + ..add('listField', listField) + ..add('mapField', mapField) + ..add('message', message) + ..add('stringField', stringField); return helper.toString(); } } @@ -135,18 +115,12 @@ class ErrorWithMembersAwsJson11Serializer const ErrorWithMembersAwsJson11Serializer() : super('ErrorWithMembers'); @override - Iterable get types => const [ - ErrorWithMembers, - _$ErrorWithMembers, - ]; + Iterable get types => const [ErrorWithMembers, _$ErrorWithMembers]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithMembers deserialize( @@ -165,49 +139,62 @@ class ErrorWithMembersAwsJson11Serializer } switch (key) { case 'Code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ComplexData': - result.complexData.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.complexData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'IntegerField': - result.integerField = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerField = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ListField': - result.listField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'MapField': - result.mapField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.mapField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StringField': - result.stringField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -228,72 +215,74 @@ class ErrorWithMembersAwsJson11Serializer :listField, :mapField, :message, - :stringField + :stringField, ) = object; if (code != null) { result$ ..add('Code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (complexData != null) { result$ ..add('ComplexData') - ..add(serializers.serialize( - complexData, - specifiedType: const FullType(KitchenSink), - )); + ..add( + serializers.serialize( + complexData, + specifiedType: const FullType(KitchenSink), + ), + ); } if (integerField != null) { result$ ..add('IntegerField') - ..add(serializers.serialize( - integerField, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerField, + specifiedType: const FullType(int), + ), + ); } if (listField != null) { result$ ..add('ListField') - ..add(serializers.serialize( - listField, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + listField, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (mapField != null) { result$ ..add('MapField') - ..add(serializers.serialize( - mapField, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + mapField, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (stringField != null) { result$ ..add('StringField') - ..add(serializers.serialize( - stringField, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringField, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart index fa81e7bf49..55a9e887ff 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart @@ -26,21 +26,21 @@ class _$ErrorWithMembers extends ErrorWithMembers { @override final Map? headers; - factory _$ErrorWithMembers( - [void Function(ErrorWithMembersBuilder)? updates]) => - (new ErrorWithMembersBuilder()..update(updates))._build(); - - _$ErrorWithMembers._( - {this.code, - this.complexData, - this.integerField, - this.listField, - this.mapField, - this.message, - this.stringField, - this.statusCode, - this.headers}) - : super._(); + factory _$ErrorWithMembers([ + void Function(ErrorWithMembersBuilder)? updates, + ]) => (new ErrorWithMembersBuilder()..update(updates))._build(); + + _$ErrorWithMembers._({ + this.code, + this.complexData, + this.integerField, + this.listField, + this.mapField, + this.message, + this.stringField, + this.statusCode, + this.headers, + }) : super._(); @override ErrorWithMembers rebuild(void Function(ErrorWithMembersBuilder) updates) => @@ -160,17 +160,19 @@ class ErrorWithMembersBuilder _$ErrorWithMembers _build() { _$ErrorWithMembers _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ErrorWithMembers._( - code: code, - complexData: _complexData?.build(), - integerField: integerField, - listField: _listField?.build(), - mapField: _mapField?.build(), - message: message, - stringField: stringField, - statusCode: statusCode, - headers: headers); + code: code, + complexData: _complexData?.build(), + integerField: integerField, + listField: _listField?.build(), + mapField: _mapField?.build(), + message: message, + stringField: stringField, + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -183,7 +185,10 @@ class ErrorWithMembersBuilder _mapField?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ErrorWithMembers', _$failedField, e.toString()); + r'ErrorWithMembers', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart index e58f94bb75..80a7e96ba4 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.error_without_members; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class ErrorWithoutMembers return _$ErrorWithoutMembers._(); } - factory ErrorWithoutMembers.build( - [void Function(ErrorWithoutMembersBuilder) updates]) = - _$ErrorWithoutMembers; + factory ErrorWithoutMembers.build([ + void Function(ErrorWithoutMembersBuilder) updates, + ]) = _$ErrorWithoutMembers; const ErrorWithoutMembers._(); @@ -30,21 +30,20 @@ abstract class ErrorWithoutMembers factory ErrorWithoutMembers.fromResponse( ErrorWithoutMembers payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ErrorWithoutMembersAwsJson11Serializer() + ErrorWithoutMembersAwsJson11Serializer(), ]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithoutMembers', - ); + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithoutMembers', + ); @override String? get message => null; @@ -77,17 +76,14 @@ class ErrorWithoutMembersAwsJson11Serializer @override Iterable get types => const [ - ErrorWithoutMembers, - _$ErrorWithoutMembers, - ]; + ErrorWithoutMembers, + _$ErrorWithoutMembers, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithoutMembers deserialize( @@ -103,6 +99,5 @@ class ErrorWithoutMembersAwsJson11Serializer Serializers serializers, ErrorWithoutMembers object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart index dbd2ad2c55..436c1989b1 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart @@ -12,16 +12,16 @@ class _$ErrorWithoutMembers extends ErrorWithoutMembers { @override final Map? headers; - factory _$ErrorWithoutMembers( - [void Function(ErrorWithoutMembersBuilder)? updates]) => - (new ErrorWithoutMembersBuilder()..update(updates))._build(); + factory _$ErrorWithoutMembers([ + void Function(ErrorWithoutMembersBuilder)? updates, + ]) => (new ErrorWithoutMembersBuilder()..update(updates))._build(); _$ErrorWithoutMembers._({this.statusCode, this.headers}) : super._(); @override ErrorWithoutMembers rebuild( - void Function(ErrorWithoutMembersBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ErrorWithoutMembersBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ErrorWithoutMembersBuilder toBuilder() => @@ -78,7 +78,8 @@ class ErrorWithoutMembersBuilder ErrorWithoutMembers build() => _build(); _$ErrorWithoutMembers _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ErrorWithoutMembers._(statusCode: statusCode, headers: headers); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart index 8b85f16508..5d047610d5 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsJson11Serializer() + FileConfigSettingsAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsJson11Serializer const FileConfigSettingsAwsJson11Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -194,63 +183,71 @@ class FileConfigSettingsAwsJson11Serializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart index c69c5d2243..70691ec819 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_error.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_error.dart index 09f33e3545..c2ae788ec4 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_error.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/foo_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.foo_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,21 +31,18 @@ abstract class FooError factory FooError.fromResponse( FooError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - FooErrorAwsJson11Serializer() + FooErrorAwsJson11Serializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'FooError', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'aws.protocoltests.json', shape: 'FooError'); @override String? get message => null; @@ -77,18 +74,12 @@ class FooErrorAwsJson11Serializer const FooErrorAwsJson11Serializer() : super('FooError'); @override - Iterable get types => const [ - FooError, - _$FooError, - ]; + Iterable get types => const [FooError, _$FooError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FooError deserialize( @@ -104,6 +95,5 @@ class FooErrorAwsJson11Serializer Serializers serializers, FooError object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart index 5364224893..686f9dd129 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputAwsJson11Serializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputAwsJson11Serializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputAwsJson11Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FractionalSecondsOutput deserialize( @@ -105,10 +98,9 @@ class FractionalSecondsOutputAwsJson11Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart index 6c595e192b..9e9b5f876f 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructAwsJson11Serializer() + GreetingStructAwsJson11Serializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructAwsJson11Serializer const GreetingStructAwsJson11Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructAwsJson11Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +89,7 @@ class GreetingStructAwsJson11Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart index d34b1c772f..6e4e0fe958 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputAwsJson11Serializer()]; + serializers = [GreetingWithErrorsOutputAwsJson11Serializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputAwsJson11Serializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson11Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -85,10 +78,12 @@ class GreetingWithErrorsOutputAwsJson11Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -106,10 +101,12 @@ class GreetingWithErrorsOutputAwsJson11Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart index 15d42b5e39..8eb1153c7c 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputAwsJson11Serializer() + HostLabelInputAwsJson11Serializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputAwsJson11Serializer const HostLabelInputAwsJson11Serializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputAwsJson11Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,10 +107,7 @@ class HostLabelInputAwsJson11Serializer final HostLabelInput(:label) = object; result$.addAll([ 'label', - serializers.serialize( - label, - specifiedType: const FullType(String), - ), + serializers.serialize(label, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart index cd587496a2..4487228ed3 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingAwsJson11Serializer() + InvalidGreetingAwsJson11Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.json', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingAwsJson11Serializer const InvalidGreetingAwsJson11Serializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidGreeting deserialize( @@ -110,10 +101,12 @@ class InvalidGreetingAwsJson11Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +124,9 @@ class InvalidGreetingAwsJson11Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart index f09575a3d3..233c1dff39 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.json_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class JsonEnumsInputOutput ); } - factory JsonEnumsInputOutput.build( - [void Function(JsonEnumsInputOutputBuilder) updates]) = - _$JsonEnumsInputOutput; + factory JsonEnumsInputOutput.build([ + void Function(JsonEnumsInputOutputBuilder) updates, + ]) = _$JsonEnumsInputOutput; const JsonEnumsInputOutput._(); @@ -45,18 +45,16 @@ abstract class JsonEnumsInputOutput JsonEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonEnumsInputOutput] from a [payload] and [response]. factory JsonEnumsInputOutput.fromResponse( JsonEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonEnumsInputOutputAwsJson11Serializer() + JsonEnumsInputOutputAwsJson11Serializer(), ]; FooEnum? get fooEnum1; @@ -70,41 +68,24 @@ abstract class JsonEnumsInputOutput @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonEnumsInputOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonEnumsInputOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -112,21 +93,18 @@ abstract class JsonEnumsInputOutput class JsonEnumsInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const JsonEnumsInputOutputAwsJson11Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [ - JsonEnumsInputOutput, - _$JsonEnumsInputOutput, - ]; + JsonEnumsInputOutput, + _$JsonEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -145,47 +123,57 @@ class JsonEnumsInputOutputAwsJson11Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i3.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i3.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -205,67 +193,70 @@ class JsonEnumsInputOutputAwsJson11Serializer :fooEnum3, :fooEnumList, :fooEnumSet, - :fooEnumMap + :fooEnumMap, ) = object; if (fooEnum1 != null) { result$ ..add('fooEnum1') - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add('fooEnum2') - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add('fooEnum3') - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add('fooEnumList') - ..add(serializers.serialize( - fooEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add('fooEnumSet') - ..add(serializers.serialize( - fooEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add('fooEnumMap') - ..add(serializers.serialize( - fooEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + fooEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart index 8900baa257..38430e2c69 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonEnumsInputOutput extends JsonEnumsInputOutput { @override final _i3.BuiltMap? fooEnumMap; - factory _$JsonEnumsInputOutput( - [void Function(JsonEnumsInputOutputBuilder)? updates]) => - (new JsonEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonEnumsInputOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + factory _$JsonEnumsInputOutput([ + void Function(JsonEnumsInputOutputBuilder)? updates, + ]) => (new JsonEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonEnumsInputOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override JsonEnumsInputOutput rebuild( - void Function(JsonEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class JsonEnumsInputOutputBuilder _$JsonEnumsInputOutput _build() { _$JsonEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonEnumsInputOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class JsonEnumsInputOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonEnumsInputOutput', _$failedField, e.toString()); + r'JsonEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart index f4ecbc0339..a7bdb8ee48 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.json_int_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,9 +34,9 @@ abstract class JsonIntEnumsInputOutput ); } - factory JsonIntEnumsInputOutput.build( - [void Function(JsonIntEnumsInputOutputBuilder) updates]) = - _$JsonIntEnumsInputOutput; + factory JsonIntEnumsInputOutput.build([ + void Function(JsonIntEnumsInputOutputBuilder) updates, + ]) = _$JsonIntEnumsInputOutput; const JsonIntEnumsInputOutput._(); @@ -44,15 +44,13 @@ abstract class JsonIntEnumsInputOutput JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonIntEnumsInputOutput] from a [payload] and [response]. factory JsonIntEnumsInputOutput.fromResponse( JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [JsonIntEnumsInputOutputAwsJson11Serializer()]; @@ -68,41 +66,24 @@ abstract class JsonIntEnumsInputOutput @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonIntEnumsInputOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonIntEnumsInputOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -110,21 +91,18 @@ abstract class JsonIntEnumsInputOutput class JsonIntEnumsInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const JsonIntEnumsInputOutputAwsJson11Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [ - JsonIntEnumsInputOutput, - _$JsonIntEnumsInputOutput, - ]; + JsonIntEnumsInputOutput, + _$JsonIntEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -143,47 +121,53 @@ class JsonIntEnumsInputOutputAwsJson11Serializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(int)], - ), - ) as _i3.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [FullType(int)]), + ) + as _i3.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i3.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -203,67 +187,61 @@ class JsonIntEnumsInputOutputAwsJson11Serializer :intEnum3, :intEnumList, :intEnumSet, - :intEnumMap + :intEnumMap, ) = object; if (intEnum1 != null) { result$ ..add('intEnum1') - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum1, specifiedType: const FullType(int)), + ); } if (intEnum2 != null) { result$ ..add('intEnum2') - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum2, specifiedType: const FullType(int)), + ); } if (intEnum3 != null) { result$ ..add('intEnum3') - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum3, specifiedType: const FullType(int)), + ); } if (intEnumList != null) { result$ ..add('intEnumList') - ..add(serializers.serialize( - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + serializers.serialize( + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (intEnumSet != null) { result$ ..add('intEnumSet') - ..add(serializers.serialize( - intEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + intEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(int)]), ), - )); + ); } if (intEnumMap != null) { result$ ..add('intEnumMap') - ..add(serializers.serialize( - intEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + intEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart index a81b61c1eb..b77c2c6859 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonIntEnumsInputOutput extends JsonIntEnumsInputOutput { @override final _i3.BuiltMap? intEnumMap; - factory _$JsonIntEnumsInputOutput( - [void Function(JsonIntEnumsInputOutputBuilder)? updates]) => - (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonIntEnumsInputOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$JsonIntEnumsInputOutput([ + void Function(JsonIntEnumsInputOutputBuilder)? updates, + ]) => (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonIntEnumsInputOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override JsonIntEnumsInputOutput rebuild( - void Function(JsonIntEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonIntEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonIntEnumsInputOutputBuilder toBuilder() => @@ -136,14 +136,16 @@ class JsonIntEnumsInputOutputBuilder _$JsonIntEnumsInputOutput _build() { _$JsonIntEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonIntEnumsInputOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -155,7 +157,10 @@ class JsonIntEnumsInputOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonIntEnumsInputOutput', _$failedField, e.toString()); + r'JsonIntEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart index 55fa684dfc..04cf4f80e2 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.kitchen_sink; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -59,30 +59,33 @@ abstract class KitchenSink integer: integer, iso8601Timestamp: iso8601Timestamp, jsonValue: jsonValue == null ? null : _i5.JsonObject(jsonValue), - listOfLists: listOfLists == null - ? null - : _i6.BuiltList(listOfLists.map((el) => _i6.BuiltList(el))), - listOfMapsOfStrings: listOfMapsOfStrings == null - ? null - : _i6.BuiltList(listOfMapsOfStrings.map((el) => _i6.BuiltMap(el))), + listOfLists: + listOfLists == null + ? null + : _i6.BuiltList(listOfLists.map((el) => _i6.BuiltList(el))), + listOfMapsOfStrings: + listOfMapsOfStrings == null + ? null + : _i6.BuiltList( + listOfMapsOfStrings.map((el) => _i6.BuiltMap(el)), + ), listOfStrings: listOfStrings == null ? null : _i6.BuiltList(listOfStrings), listOfStructs: listOfStructs == null ? null : _i6.BuiltList(listOfStructs), long: long, - mapOfListsOfStrings: mapOfListsOfStrings == null - ? null - : _i6.BuiltListMultimap(mapOfListsOfStrings), - mapOfMaps: mapOfMaps == null - ? null - : _i6.BuiltMap(mapOfMaps.map(( - key, - value, - ) => - MapEntry( - key, - _i6.BuiltMap(value), - ))), + mapOfListsOfStrings: + mapOfListsOfStrings == null + ? null + : _i6.BuiltListMultimap(mapOfListsOfStrings), + mapOfMaps: + mapOfMaps == null + ? null + : _i6.BuiltMap( + mapOfMaps.map( + (key, value) => MapEntry(key, _i6.BuiltMap(value)), + ), + ), mapOfStrings: mapOfStrings == null ? null : _i6.BuiltMap(mapOfStrings), mapOfStructs: mapOfStructs == null ? null : _i6.BuiltMap(mapOfStructs), recursiveList: @@ -106,18 +109,16 @@ abstract class KitchenSink KitchenSink payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [KitchenSink] from a [payload] and [response]. factory KitchenSink.fromResponse( KitchenSink payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - KitchenSinkAwsJson11Serializer() + KitchenSinkAwsJson11Serializer(), ]; _i3.Uint8List? get blob; @@ -151,141 +152,64 @@ abstract class KitchenSink @override List get props => [ - blob, - boolean, - double_, - emptyStruct, - float, - httpdateTimestamp, - integer, - iso8601Timestamp, - jsonValue, - listOfLists, - listOfMapsOfStrings, - listOfStrings, - listOfStructs, - long, - mapOfListsOfStrings, - mapOfMaps, - mapOfStrings, - mapOfStructs, - recursiveList, - recursiveMap, - recursiveStruct, - simpleStruct, - string, - structWithJsonName, - timestamp, - unixTimestamp, - ]; + blob, + boolean, + double_, + emptyStruct, + float, + httpdateTimestamp, + integer, + iso8601Timestamp, + jsonValue, + listOfLists, + listOfMapsOfStrings, + listOfStrings, + listOfStructs, + long, + mapOfListsOfStrings, + mapOfMaps, + mapOfStrings, + mapOfStructs, + recursiveList, + recursiveMap, + recursiveStruct, + simpleStruct, + string, + structWithJsonName, + timestamp, + unixTimestamp, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('KitchenSink') - ..add( - 'blob', - blob, - ) - ..add( - 'boolean', - boolean, - ) - ..add( - 'double_', - double_, - ) - ..add( - 'emptyStruct', - emptyStruct, - ) - ..add( - 'float', - float, - ) - ..add( - 'httpdateTimestamp', - httpdateTimestamp, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'iso8601Timestamp', - iso8601Timestamp, - ) - ..add( - 'jsonValue', - jsonValue, - ) - ..add( - 'listOfLists', - listOfLists, - ) - ..add( - 'listOfMapsOfStrings', - listOfMapsOfStrings, - ) - ..add( - 'listOfStrings', - listOfStrings, - ) - ..add( - 'listOfStructs', - listOfStructs, - ) - ..add( - 'long', - long, - ) - ..add( - 'mapOfListsOfStrings', - mapOfListsOfStrings, - ) - ..add( - 'mapOfMaps', - mapOfMaps, - ) - ..add( - 'mapOfStrings', - mapOfStrings, - ) - ..add( - 'mapOfStructs', - mapOfStructs, - ) - ..add( - 'recursiveList', - recursiveList, - ) - ..add( - 'recursiveMap', - recursiveMap, - ) - ..add( - 'recursiveStruct', - recursiveStruct, - ) - ..add( - 'simpleStruct', - simpleStruct, - ) - ..add( - 'string', - string, - ) - ..add( - 'structWithJsonName', - structWithJsonName, - ) - ..add( - 'timestamp', - timestamp, - ) - ..add( - 'unixTimestamp', - unixTimestamp, - ); + final helper = + newBuiltValueToStringHelper('KitchenSink') + ..add('blob', blob) + ..add('boolean', boolean) + ..add('double_', double_) + ..add('emptyStruct', emptyStruct) + ..add('float', float) + ..add('httpdateTimestamp', httpdateTimestamp) + ..add('integer', integer) + ..add('iso8601Timestamp', iso8601Timestamp) + ..add('jsonValue', jsonValue) + ..add('listOfLists', listOfLists) + ..add('listOfMapsOfStrings', listOfMapsOfStrings) + ..add('listOfStrings', listOfStrings) + ..add('listOfStructs', listOfStructs) + ..add('long', long) + ..add('mapOfListsOfStrings', mapOfListsOfStrings) + ..add('mapOfMaps', mapOfMaps) + ..add('mapOfStrings', mapOfStrings) + ..add('mapOfStructs', mapOfStructs) + ..add('recursiveList', recursiveList) + ..add('recursiveMap', recursiveMap) + ..add('recursiveStruct', recursiveStruct) + ..add('simpleStruct', simpleStruct) + ..add('string', string) + ..add('structWithJsonName', structWithJsonName) + ..add('timestamp', timestamp) + ..add('unixTimestamp', unixTimestamp); return helper.toString(); } } @@ -295,18 +219,12 @@ class KitchenSinkAwsJson11Serializer const KitchenSinkAwsJson11Serializer() : super('KitchenSink'); @override - Iterable get types => const [ - KitchenSink, - _$KitchenSink, - ]; + Iterable get types => const [KitchenSink, _$KitchenSink]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override KitchenSink deserialize( @@ -325,202 +243,220 @@ class KitchenSinkAwsJson11Serializer } switch (key) { case 'Blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'Boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'EmptyStruct': - result.emptyStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(EmptyStruct), - ) as EmptyStruct)); + result.emptyStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EmptyStruct), + ) + as EmptyStruct), + ); case 'Float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'HttpdateTimestamp': - result.httpdateTimestamp = - _i1.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpdateTimestamp = _i1.TimestampSerializer.httpDate + .deserialize(serializers, value); case 'Integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Iso8601Timestamp': - result.iso8601Timestamp = - _i1.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.iso8601Timestamp = _i1.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'JsonValue': - result.jsonValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.JsonObject), - ) as _i5.JsonObject); + result.jsonValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.JsonObject), + ) + as _i5.JsonObject); case 'ListOfLists': - result.listOfLists.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltList, - [FullType(String)], + result.listOfLists.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i6.BuiltList<_i6.BuiltList>)); + as _i6.BuiltList<_i6.BuiltList>), + ); case 'ListOfMapsOfStrings': - result.listOfMapsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], + result.listOfMapsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), ) - ], - ), - ) as _i6.BuiltList<_i6.BuiltMap>)); + as _i6.BuiltList<_i6.BuiltMap>), + ); case 'ListOfStrings': - result.listOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(String)], - ), - ) as _i6.BuiltList)); + result.listOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(String), + ]), + ) + as _i6.BuiltList), + ); case 'ListOfStructs': - result.listOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(SimpleStruct)], - ), - ) as _i6.BuiltList)); + result.listOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(SimpleStruct), + ]), + ) + as _i6.BuiltList), + ); case 'Long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'MapOfListsOfStrings': - result.mapOfListsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i6.BuiltListMultimap)); - case 'MapOfMaps': - result.mapOfMaps.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType( - _i6.BuiltMap, - [ + result.mapOfListsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltListMultimap, [ FullType(String), FullType(String), - ], - ), - ], - ), - ) as _i6.BuiltMap>)); + ]), + ) + as _i6.BuiltListMultimap), + ); + case 'MapOfMaps': + result.mapOfMaps.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(_i6.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), + ) + as _i6.BuiltMap>), + ); case 'MapOfStrings': - result.mapOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i6.BuiltMap)); + result.mapOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i6.BuiltMap), + ); case 'MapOfStructs': - result.mapOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(SimpleStruct), - ], - ), - ) as _i6.BuiltMap)); + result.mapOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(SimpleStruct), + ]), + ) + as _i6.BuiltMap), + ); case 'RecursiveList': - result.recursiveList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(KitchenSink)], - ), - ) as _i6.BuiltList)); + result.recursiveList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(KitchenSink), + ]), + ) + as _i6.BuiltList), + ); case 'RecursiveMap': - result.recursiveMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(KitchenSink), - ], - ), - ) as _i6.BuiltMap)); + result.recursiveMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(KitchenSink), + ]), + ) + as _i6.BuiltMap), + ); case 'RecursiveStruct': - result.recursiveStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.recursiveStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'SimpleStruct': - result.simpleStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(SimpleStruct), - ) as SimpleStruct)); + result.simpleStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(SimpleStruct), + ) + as SimpleStruct), + ); case 'String': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StructWithJsonName': - result.structWithJsonName.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructWithJsonName), - ) as StructWithJsonName)); + result.structWithJsonName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructWithJsonName), + ) + as StructWithJsonName), + ); case 'Timestamp': - result.timestamp = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.timestamp = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'UnixTimestamp': - result.unixTimestamp = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.unixTimestamp = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } @@ -560,279 +496,272 @@ class KitchenSinkAwsJson11Serializer :string, :structWithJsonName, :timestamp, - :unixTimestamp + :unixTimestamp, ) = object; if (blob != null) { result$ ..add('Blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (boolean != null) { result$ ..add('Boolean') - ..add(serializers.serialize( - boolean, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(boolean, specifiedType: const FullType(bool)), + ); } if (double_ != null) { result$ ..add('Double') - ..add(serializers.serialize( - double_, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(double_, specifiedType: const FullType(double)), + ); } if (emptyStruct != null) { result$ ..add('EmptyStruct') - ..add(serializers.serialize( - emptyStruct, - specifiedType: const FullType(EmptyStruct), - )); + ..add( + serializers.serialize( + emptyStruct, + specifiedType: const FullType(EmptyStruct), + ), + ); } if (float != null) { result$ ..add('Float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (httpdateTimestamp != null) { result$ ..add('HttpdateTimestamp') - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpdateTimestamp, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize( + serializers, + httpdateTimestamp, + ), + ); } if (integer != null) { result$ ..add('Integer') - ..add(serializers.serialize( - integer, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(integer, specifiedType: const FullType(int)), + ); } if (iso8601Timestamp != null) { result$ ..add('Iso8601Timestamp') - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - iso8601Timestamp, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize( + serializers, + iso8601Timestamp, + ), + ); } if (jsonValue != null) { result$ ..add('JsonValue') - ..add(serializers.serialize( - jsonValue, - specifiedType: const FullType(_i5.JsonObject), - )); + ..add( + serializers.serialize( + jsonValue, + specifiedType: const FullType(_i5.JsonObject), + ), + ); } if (listOfLists != null) { result$ ..add('ListOfLists') - ..add(serializers.serialize( - listOfLists, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltList, - [FullType(String)], - ) - ], + ..add( + serializers.serialize( + listOfLists, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (listOfMapsOfStrings != null) { result$ ..add('ListOfMapsOfStrings') - ..add(serializers.serialize( - listOfMapsOfStrings, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ) - ], + ..add( + serializers.serialize( + listOfMapsOfStrings, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltMap, [FullType(String), FullType(String)]), + ]), ), - )); + ); } if (listOfStrings != null) { result$ ..add('ListOfStrings') - ..add(serializers.serialize( - listOfStrings, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + listOfStrings, + specifiedType: const FullType(_i6.BuiltList, [FullType(String)]), ), - )); + ); } if (listOfStructs != null) { result$ ..add('ListOfStructs') - ..add(serializers.serialize( - listOfStructs, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(SimpleStruct)], + ..add( + serializers.serialize( + listOfStructs, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(SimpleStruct), + ]), ), - )); + ); } if (long != null) { result$ ..add('Long') - ..add(serializers.serialize( - long, - specifiedType: const FullType(_i4.Int64), - )); + ..add( + serializers.serialize(long, specifiedType: const FullType(_i4.Int64)), + ); } if (mapOfListsOfStrings != null) { result$ ..add('MapOfListsOfStrings') - ..add(serializers.serialize( - mapOfListsOfStrings, - specifiedType: const FullType( - _i6.BuiltListMultimap, - [ + ..add( + serializers.serialize( + mapOfListsOfStrings, + specifiedType: const FullType(_i6.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (mapOfMaps != null) { result$ ..add('MapOfMaps') - ..add(serializers.serialize( - mapOfMaps, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + mapOfMaps, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), - FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ], + FullType(_i6.BuiltMap, [FullType(String), FullType(String)]), + ]), ), - )); + ); } if (mapOfStrings != null) { result$ ..add('MapOfStrings') - ..add(serializers.serialize( - mapOfStrings, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + mapOfStrings, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (mapOfStructs != null) { result$ ..add('MapOfStructs') - ..add(serializers.serialize( - mapOfStructs, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + mapOfStructs, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), FullType(SimpleStruct), - ], + ]), ), - )); + ); } if (recursiveList != null) { result$ ..add('RecursiveList') - ..add(serializers.serialize( - recursiveList, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(KitchenSink)], + ..add( + serializers.serialize( + recursiveList, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(KitchenSink), + ]), ), - )); + ); } if (recursiveMap != null) { result$ ..add('RecursiveMap') - ..add(serializers.serialize( - recursiveMap, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + recursiveMap, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), FullType(KitchenSink), - ], + ]), ), - )); + ); } if (recursiveStruct != null) { result$ ..add('RecursiveStruct') - ..add(serializers.serialize( - recursiveStruct, - specifiedType: const FullType(KitchenSink), - )); + ..add( + serializers.serialize( + recursiveStruct, + specifiedType: const FullType(KitchenSink), + ), + ); } if (simpleStruct != null) { result$ ..add('SimpleStruct') - ..add(serializers.serialize( - simpleStruct, - specifiedType: const FullType(SimpleStruct), - )); + ..add( + serializers.serialize( + simpleStruct, + specifiedType: const FullType(SimpleStruct), + ), + ); } if (string != null) { result$ ..add('String') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (structWithJsonName != null) { result$ ..add('StructWithJsonName') - ..add(serializers.serialize( - structWithJsonName, - specifiedType: const FullType(StructWithJsonName), - )); + ..add( + serializers.serialize( + structWithJsonName, + specifiedType: const FullType(StructWithJsonName), + ), + ); } if (timestamp != null) { result$ ..add('Timestamp') - ..add(serializers.serialize( - timestamp, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + timestamp, + specifiedType: const FullType(DateTime), + ), + ); } if (unixTimestamp != null) { result$ ..add('UnixTimestamp') - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - unixTimestamp, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + unixTimestamp, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart index 112f4aa991..34a2506b0c 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart @@ -63,34 +63,34 @@ class _$KitchenSink extends KitchenSink { factory _$KitchenSink([void Function(KitchenSinkBuilder)? updates]) => (new KitchenSinkBuilder()..update(updates))._build(); - _$KitchenSink._( - {this.blob, - this.boolean, - this.double_, - this.emptyStruct, - this.float, - this.httpdateTimestamp, - this.integer, - this.iso8601Timestamp, - this.jsonValue, - this.listOfLists, - this.listOfMapsOfStrings, - this.listOfStrings, - this.listOfStructs, - this.long, - this.mapOfListsOfStrings, - this.mapOfMaps, - this.mapOfStrings, - this.mapOfStructs, - this.recursiveList, - this.recursiveMap, - this.recursiveStruct, - this.simpleStruct, - this.string, - this.structWithJsonName, - this.timestamp, - this.unixTimestamp}) - : super._(); + _$KitchenSink._({ + this.blob, + this.boolean, + this.double_, + this.emptyStruct, + this.float, + this.httpdateTimestamp, + this.integer, + this.iso8601Timestamp, + this.jsonValue, + this.listOfLists, + this.listOfMapsOfStrings, + this.listOfStrings, + this.listOfStructs, + this.long, + this.mapOfListsOfStrings, + this.mapOfMaps, + this.mapOfStrings, + this.mapOfStructs, + this.recursiveList, + this.recursiveMap, + this.recursiveStruct, + this.simpleStruct, + this.string, + this.structWithJsonName, + this.timestamp, + this.unixTimestamp, + }) : super._(); @override KitchenSink rebuild(void Function(KitchenSinkBuilder) updates) => @@ -219,8 +219,8 @@ class KitchenSinkBuilder implements Builder { _$this._listOfMapsOfStrings ??= new _i6.ListBuilder<_i6.BuiltMap>(); set listOfMapsOfStrings( - _i6.ListBuilder<_i6.BuiltMap>? listOfMapsOfStrings) => - _$this._listOfMapsOfStrings = listOfMapsOfStrings; + _i6.ListBuilder<_i6.BuiltMap>? listOfMapsOfStrings, + ) => _$this._listOfMapsOfStrings = listOfMapsOfStrings; _i6.ListBuilder? _listOfStrings; _i6.ListBuilder get listOfStrings => @@ -243,16 +243,16 @@ class KitchenSinkBuilder implements Builder { _$this._mapOfListsOfStrings ??= new _i6.ListMultimapBuilder(); set mapOfListsOfStrings( - _i6.ListMultimapBuilder? mapOfListsOfStrings) => - _$this._mapOfListsOfStrings = mapOfListsOfStrings; + _i6.ListMultimapBuilder? mapOfListsOfStrings, + ) => _$this._mapOfListsOfStrings = mapOfListsOfStrings; _i6.MapBuilder>? _mapOfMaps; _i6.MapBuilder> get mapOfMaps => _$this._mapOfMaps ??= new _i6.MapBuilder>(); set mapOfMaps( - _i6.MapBuilder>? mapOfMaps) => - _$this._mapOfMaps = mapOfMaps; + _i6.MapBuilder>? mapOfMaps, + ) => _$this._mapOfMaps = mapOfMaps; _i6.MapBuilder? _mapOfStrings; _i6.MapBuilder get mapOfStrings => @@ -362,34 +362,36 @@ class KitchenSinkBuilder implements Builder { _$KitchenSink _build() { _$KitchenSink _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$KitchenSink._( - blob: blob, - boolean: boolean, - double_: double_, - emptyStruct: _emptyStruct?.build(), - float: float, - httpdateTimestamp: httpdateTimestamp, - integer: integer, - iso8601Timestamp: iso8601Timestamp, - jsonValue: jsonValue, - listOfLists: _listOfLists?.build(), - listOfMapsOfStrings: _listOfMapsOfStrings?.build(), - listOfStrings: _listOfStrings?.build(), - listOfStructs: _listOfStructs?.build(), - long: long, - mapOfListsOfStrings: _mapOfListsOfStrings?.build(), - mapOfMaps: _mapOfMaps?.build(), - mapOfStrings: _mapOfStrings?.build(), - mapOfStructs: _mapOfStructs?.build(), - recursiveList: _recursiveList?.build(), - recursiveMap: _recursiveMap?.build(), - recursiveStruct: _recursiveStruct?.build(), - simpleStruct: _simpleStruct?.build(), - string: string, - structWithJsonName: _structWithJsonName?.build(), - timestamp: timestamp, - unixTimestamp: unixTimestamp); + blob: blob, + boolean: boolean, + double_: double_, + emptyStruct: _emptyStruct?.build(), + float: float, + httpdateTimestamp: httpdateTimestamp, + integer: integer, + iso8601Timestamp: iso8601Timestamp, + jsonValue: jsonValue, + listOfLists: _listOfLists?.build(), + listOfMapsOfStrings: _listOfMapsOfStrings?.build(), + listOfStrings: _listOfStrings?.build(), + listOfStructs: _listOfStructs?.build(), + long: long, + mapOfListsOfStrings: _mapOfListsOfStrings?.build(), + mapOfMaps: _mapOfMaps?.build(), + mapOfStrings: _mapOfStrings?.build(), + mapOfStructs: _mapOfStructs?.build(), + recursiveList: _recursiveList?.build(), + recursiveMap: _recursiveMap?.build(), + recursiveStruct: _recursiveStruct?.build(), + simpleStruct: _simpleStruct?.build(), + string: string, + structWithJsonName: _structWithJsonName?.build(), + timestamp: timestamp, + unixTimestamp: unixTimestamp, + ); } catch (_) { late String _$failedField; try { @@ -426,7 +428,10 @@ class KitchenSinkBuilder implements Builder { _structWithJsonName?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'KitchenSink', _$failedField, e.toString()); + r'KitchenSink', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart index 1458fa635e..d7bbccd7f1 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/my_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.my_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,13 +36,11 @@ sealed class MyUnion extends _i1.SmithyUnion { factory MyUnion.structureValue({String? hi}) => MyUnionStructureValue$(GreetingStruct(hi: hi)); - const factory MyUnion.sdkUnknown( - String name, - Object value, - ) = MyUnionSdkUnknown$; + const factory MyUnion.sdkUnknown(String name, Object value) = + MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - MyUnionAwsJson11Serializer() + MyUnionAwsJson11Serializer(), ]; String? get stringValue => null; @@ -64,72 +62,46 @@ sealed class MyUnion extends _i1.SmithyUnion { GreetingStruct? get structureValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - numberValue ?? - blobValue ?? - timestampValue ?? - enumValue ?? - listValue ?? - mapValue ?? - structureValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + numberValue ?? + blobValue ?? + timestampValue ?? + enumValue ?? + listValue ?? + mapValue ?? + structureValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'MyUnion'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (numberValue != null) { - helper.add( - r'numberValue', - numberValue, - ); + helper.add(r'numberValue', numberValue); } if (blobValue != null) { - helper.add( - r'blobValue', - blobValue, - ); + helper.add(r'blobValue', blobValue); } if (timestampValue != null) { - helper.add( - r'timestampValue', - timestampValue, - ); + helper.add(r'timestampValue', timestampValue); } if (enumValue != null) { - helper.add( - r'enumValue', - enumValue, - ); + helper.add(r'enumValue', enumValue); } if (listValue != null) { - helper.add( - r'listValue', - listValue, - ); + helper.add(r'listValue', listValue); } if (mapValue != null) { - helper.add( - r'mapValue', - mapValue, - ); + helper.add(r'mapValue', mapValue); } if (structureValue != null) { - helper.add( - r'structureValue', - structureValue, - ); + helper.add(r'structureValue', structureValue); } return helper.toString(); } @@ -209,7 +181,7 @@ final class MyUnionListValue$ extends MyUnion { final class MyUnionMapValue$ extends MyUnion { MyUnionMapValue$(Map mapValue) - : this._(_i3.BuiltMap(mapValue)); + : this._(_i3.BuiltMap(mapValue)); const MyUnionMapValue$._(this.mapValue) : super._(); @@ -231,10 +203,7 @@ final class MyUnionStructureValue$ extends MyUnion { } final class MyUnionSdkUnknown$ extends MyUnion { - const MyUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const MyUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -249,25 +218,22 @@ class MyUnionAwsJson11Serializer @override Iterable get types => const [ - MyUnion, - MyUnionStringValue$, - MyUnionBooleanValue$, - MyUnionNumberValue$, - MyUnionBlobValue$, - MyUnionTimestampValue$, - MyUnionEnumValue$, - MyUnionListValue$, - MyUnionMapValue$, - MyUnionStructureValue$, - ]; + MyUnion, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override MyUnion deserialize( @@ -278,64 +244,75 @@ class MyUnionAwsJson11Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return MyUnionStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return MyUnionBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return MyUnionBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'numberValue': - return MyUnionNumberValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return MyUnionNumberValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'blobValue': - return MyUnionBlobValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List)); + return MyUnionBlobValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List), + ); case 'timestampValue': - return MyUnionTimestampValue$((serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime)); + return MyUnionTimestampValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime), + ); case 'enumValue': - return MyUnionEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum)); + return MyUnionEnumValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum), + ); case 'listValue': - return MyUnionListValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + return MyUnionListValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'mapValue': - return MyUnionMapValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + return MyUnionMapValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'structureValue': - return MyUnionStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct)); + return MyUnionStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct), + ); } - return MyUnion.sdkUnknown( - key, - value, - ); + return MyUnion.sdkUnknown(key, value); } @override @@ -348,50 +325,44 @@ class MyUnionAwsJson11Serializer object.name, switch (object) { MyUnionStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), MyUnionBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), MyUnionNumberValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), MyUnionBlobValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ), + value, + specifiedType: const FullType(_i2.Uint8List), + ), MyUnionTimestampValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(DateTime), - ), + value, + specifiedType: const FullType(DateTime), + ), MyUnionEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(FooEnum), - ), + value, + specifiedType: const FullType(FooEnum), + ), MyUnionListValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), + ), MyUnionMapValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ), MyUnionStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(GreetingStruct), - ), + value, + specifiedType: const FullType(GreetingStruct), + ), MyUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart index 8f87d6cc9d..5edb6c7d05 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.null_operation_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,9 +31,9 @@ abstract class NullOperationInputOutput ); } - factory NullOperationInputOutput.build( - [void Function(NullOperationInputOutputBuilder) updates]) = - _$NullOperationInputOutput; + factory NullOperationInputOutput.build([ + void Function(NullOperationInputOutputBuilder) updates, + ]) = _$NullOperationInputOutput; const NullOperationInputOutput._(); @@ -41,18 +41,16 @@ abstract class NullOperationInputOutput NullOperationInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [NullOperationInputOutput] from a [payload] and [response]. factory NullOperationInputOutput.fromResponse( NullOperationInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [NullOperationInputOutputAwsJson11Serializer()]; + serializers = [NullOperationInputOutputAwsJson11Serializer()]; String? get string; _i3.BuiltList? get sparseStringList; @@ -61,27 +59,15 @@ abstract class NullOperationInputOutput NullOperationInputOutput getPayload() => this; @override - List get props => [ - string, - sparseStringList, - sparseStringMap, - ]; + List get props => [string, sparseStringList, sparseStringMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('NullOperationInputOutput') - ..add( - 'string', - string, - ) - ..add( - 'sparseStringList', - sparseStringList, - ) - ..add( - 'sparseStringMap', - sparseStringMap, - ); + final helper = + newBuiltValueToStringHelper('NullOperationInputOutput') + ..add('string', string) + ..add('sparseStringList', sparseStringList) + ..add('sparseStringMap', sparseStringMap); return helper.toString(); } } @@ -89,21 +75,18 @@ abstract class NullOperationInputOutput class NullOperationInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const NullOperationInputOutputAwsJson11Serializer() - : super('NullOperationInputOutput'); + : super('NullOperationInputOutput'); @override Iterable get types => const [ - NullOperationInputOutput, - _$NullOperationInputOutput, - ]; + NullOperationInputOutput, + _$NullOperationInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NullOperationInputOutput deserialize( @@ -122,29 +105,33 @@ class NullOperationInputOutputAwsJson11Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], - ), - ) as _i3.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i3.BuiltList), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i3.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -161,40 +148,39 @@ class NullOperationInputOutputAwsJson11Serializer final NullOperationInputOutput( :string, :sparseStringList, - :sparseStringMap + :sparseStringMap, ) = object; if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (sparseStringList != null) { result$ ..add('sparseStringList') - ..add(serializers.serialize( - sparseStringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], + ..add( + serializers.serialize( + sparseStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), ), - )); + ); } if (sparseStringMap != null) { result$ ..add('sparseStringMap') - ..add(serializers.serialize( - sparseStringMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseStringMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart index 29ba32e499..e57136b034 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart @@ -14,18 +14,20 @@ class _$NullOperationInputOutput extends NullOperationInputOutput { @override final _i3.BuiltMap? sparseStringMap; - factory _$NullOperationInputOutput( - [void Function(NullOperationInputOutputBuilder)? updates]) => - (new NullOperationInputOutputBuilder()..update(updates))._build(); + factory _$NullOperationInputOutput([ + void Function(NullOperationInputOutputBuilder)? updates, + ]) => (new NullOperationInputOutputBuilder()..update(updates))._build(); - _$NullOperationInputOutput._( - {this.string, this.sparseStringList, this.sparseStringMap}) - : super._(); + _$NullOperationInputOutput._({ + this.string, + this.sparseStringList, + this.sparseStringMap, + }) : super._(); @override NullOperationInputOutput rebuild( - void Function(NullOperationInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullOperationInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullOperationInputOutputBuilder toBuilder() => @@ -102,11 +104,13 @@ class NullOperationInputOutputBuilder _$NullOperationInputOutput _build() { _$NullOperationInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$NullOperationInputOutput._( - string: string, - sparseStringList: _sparseStringList?.build(), - sparseStringMap: _sparseStringMap?.build()); + string: string, + sparseStringList: _sparseStringList?.build(), + sparseStringMap: _sparseStringMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -116,7 +120,10 @@ class NullOperationInputOutputBuilder _sparseStringMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NullOperationInputOutput', _$failedField, e.toString()); + r'NullOperationInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.dart index 0aea65fa9a..b931b12627 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsJson11Serializer() + OperationConfigAwsJson11Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsJson11Serializer const OperationConfigAwsJson11Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigAwsJson11Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigAwsJson11Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart index ba1e53c002..ccfee31c67 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.operation_with_optional_input_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class OperationWithOptionalInputOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInputBuilder + > { factory OperationWithOptionalInputOutputInput({String? value}) { return _$OperationWithOptionalInputOutputInput._(value: value); } - factory OperationWithOptionalInputOutputInput.build( - [void Function(OperationWithOptionalInputOutputInputBuilder) - updates]) = _$OperationWithOptionalInputOutputInput; + factory OperationWithOptionalInputOutputInput.build([ + void Function(OperationWithOptionalInputOutputInputBuilder) updates, + ]) = _$OperationWithOptionalInputOutputInput; const OperationWithOptionalInputOutputInput._(); @@ -31,13 +33,10 @@ abstract class OperationWithOptionalInputOutputInput OperationWithOptionalInputOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [ - OperationWithOptionalInputOutputInputAwsJson11Serializer() - ]; + serializers = [OperationWithOptionalInputOutputInputAwsJson11Serializer()]; String? get value; @override @@ -48,34 +47,29 @@ abstract class OperationWithOptionalInputOutputInput @override String toString() { - final helper = - newBuiltValueToStringHelper('OperationWithOptionalInputOutputInput') - ..add( - 'value', - value, - ); + final helper = newBuiltValueToStringHelper( + 'OperationWithOptionalInputOutputInput', + )..add('value', value); return helper.toString(); } } -class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i1 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputInputAwsJson11Serializer + extends + _i1.StructuredSmithySerializer { const OperationWithOptionalInputOutputInputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputInput'); + : super('OperationWithOptionalInputOutputInput'); @override Iterable get types => const [ - OperationWithOptionalInputOutputInput, - _$OperationWithOptionalInputOutputInput, - ]; + OperationWithOptionalInputOutputInput, + _$OperationWithOptionalInputOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputInput deserialize( @@ -94,10 +88,12 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i1 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -115,10 +111,9 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i1 if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart index 73ed1c13f4..e3a2879df0 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart @@ -11,9 +11,9 @@ class _$OperationWithOptionalInputOutputInput @override final String? value; - factory _$OperationWithOptionalInputOutputInput( - [void Function(OperationWithOptionalInputOutputInputBuilder)? - updates]) => + factory _$OperationWithOptionalInputOutputInput([ + void Function(OperationWithOptionalInputOutputInputBuilder)? updates, + ]) => (new OperationWithOptionalInputOutputInputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$OperationWithOptionalInputOutputInput @override OperationWithOptionalInputOutputInput rebuild( - void Function(OperationWithOptionalInputOutputInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OperationWithOptionalInputOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OperationWithOptionalInputOutputInputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$OperationWithOptionalInputOutputInput class OperationWithOptionalInputOutputInputBuilder implements - Builder { + Builder< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInputBuilder + > { _$OperationWithOptionalInputOutputInput? _$v; String? _value; @@ -74,7 +75,8 @@ class OperationWithOptionalInputOutputInputBuilder @override void update( - void Function(OperationWithOptionalInputOutputInputBuilder)? updates) { + void Function(OperationWithOptionalInputOutputInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart index b13ad994da..38209efb5a 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.operation_with_optional_input_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'operation_with_optional_input_output_output.g.dart'; abstract class OperationWithOptionalInputOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutputBuilder + > { factory OperationWithOptionalInputOutputOutput({String? value}) { return _$OperationWithOptionalInputOutputOutput._(value: value); } - factory OperationWithOptionalInputOutputOutput.build( - [void Function(OperationWithOptionalInputOutputOutputBuilder) - updates]) = _$OperationWithOptionalInputOutputOutput; + factory OperationWithOptionalInputOutputOutput.build([ + void Function(OperationWithOptionalInputOutputOutputBuilder) updates, + ]) = _$OperationWithOptionalInputOutputOutput; const OperationWithOptionalInputOutputOutput._(); @@ -30,14 +31,12 @@ abstract class OperationWithOptionalInputOutputOutput factory OperationWithOptionalInputOutputOutput.fromResponse( OperationWithOptionalInputOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List< - _i2.SmithySerializer> - serializers = [ - OperationWithOptionalInputOutputOutputAwsJson11Serializer() - ]; + _i2.SmithySerializer + > + serializers = [OperationWithOptionalInputOutputOutputAwsJson11Serializer()]; String? get value; @override @@ -45,34 +44,29 @@ abstract class OperationWithOptionalInputOutputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('OperationWithOptionalInputOutputOutput') - ..add( - 'value', - value, - ); + final helper = newBuiltValueToStringHelper( + 'OperationWithOptionalInputOutputOutput', + )..add('value', value); return helper.toString(); } } -class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputOutputAwsJson11Serializer + extends + _i2.StructuredSmithySerializer { const OperationWithOptionalInputOutputOutputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputOutput'); + : super('OperationWithOptionalInputOutputOutput'); @override Iterable get types => const [ - OperationWithOptionalInputOutputOutput, - _$OperationWithOptionalInputOutputOutput, - ]; + OperationWithOptionalInputOutputOutput, + _$OperationWithOptionalInputOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputOutput deserialize( @@ -91,10 +85,12 @@ class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i2 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -112,10 +108,9 @@ class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i2 if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart index fbe3f3a5bb..36ddbf1b94 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart @@ -11,9 +11,9 @@ class _$OperationWithOptionalInputOutputOutput @override final String? value; - factory _$OperationWithOptionalInputOutputOutput( - [void Function(OperationWithOptionalInputOutputOutputBuilder)? - updates]) => + factory _$OperationWithOptionalInputOutputOutput([ + void Function(OperationWithOptionalInputOutputOutputBuilder)? updates, + ]) => (new OperationWithOptionalInputOutputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$OperationWithOptionalInputOutputOutput @override OperationWithOptionalInputOutputOutput rebuild( - void Function(OperationWithOptionalInputOutputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OperationWithOptionalInputOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OperationWithOptionalInputOutputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$OperationWithOptionalInputOutputOutput class OperationWithOptionalInputOutputOutputBuilder implements - Builder { + Builder< + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutputBuilder + > { _$OperationWithOptionalInputOutputOutput? _$v; String? _value; @@ -74,7 +75,8 @@ class OperationWithOptionalInputOutputOutputBuilder @override void update( - void Function(OperationWithOptionalInputOutputOutputBuilder)? updates) { + void Function(OperationWithOptionalInputOutputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart index 052527188d..e3ee7cd82f 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.put_and_get_inline_documents_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class PutAndGetInlineDocumentsInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutputBuilder + > { factory PutAndGetInlineDocumentsInputOutput({Object? inlineDocument}) { return _$PutAndGetInlineDocumentsInputOutput._( - inlineDocument: - inlineDocument == null ? null : _i3.JsonObject(inlineDocument)); + inlineDocument: + inlineDocument == null ? null : _i3.JsonObject(inlineDocument), + ); } - factory PutAndGetInlineDocumentsInputOutput.build( - [void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates]) = - _$PutAndGetInlineDocumentsInputOutput; + factory PutAndGetInlineDocumentsInputOutput.build([ + void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates, + ]) = _$PutAndGetInlineDocumentsInputOutput; const PutAndGetInlineDocumentsInputOutput._(); @@ -34,18 +37,16 @@ abstract class PutAndGetInlineDocumentsInputOutput PutAndGetInlineDocumentsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [PutAndGetInlineDocumentsInputOutput] from a [payload] and [response]. factory PutAndGetInlineDocumentsInputOutput.fromResponse( PutAndGetInlineDocumentsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [PutAndGetInlineDocumentsInputOutputAwsJson11Serializer()]; + serializers = [PutAndGetInlineDocumentsInputOutputAwsJson11Serializer()]; _i3.JsonObject? get inlineDocument; @override @@ -56,34 +57,29 @@ abstract class PutAndGetInlineDocumentsInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('PutAndGetInlineDocumentsInputOutput') - ..add( - 'inlineDocument', - inlineDocument, - ); + final helper = newBuiltValueToStringHelper( + 'PutAndGetInlineDocumentsInputOutput', + )..add('inlineDocument', inlineDocument); return helper.toString(); } } -class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i1 - .StructuredSmithySerializer { +class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer + extends + _i1.StructuredSmithySerializer { const PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - : super('PutAndGetInlineDocumentsInputOutput'); + : super('PutAndGetInlineDocumentsInputOutput'); @override Iterable get types => const [ - PutAndGetInlineDocumentsInputOutput, - _$PutAndGetInlineDocumentsInputOutput, - ]; + PutAndGetInlineDocumentsInputOutput, + _$PutAndGetInlineDocumentsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutAndGetInlineDocumentsInputOutput deserialize( @@ -102,10 +98,12 @@ class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i1 } switch (key) { case 'inlineDocument': - result.inlineDocument = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.JsonObject), - ) as _i3.JsonObject); + result.inlineDocument = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.JsonObject), + ) + as _i3.JsonObject); } } @@ -123,10 +121,12 @@ class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i1 if (inlineDocument != null) { result$ ..add('inlineDocument') - ..add(serializers.serialize( - inlineDocument, - specifiedType: const FullType(_i3.JsonObject), - )); + ..add( + serializers.serialize( + inlineDocument, + specifiedType: const FullType(_i3.JsonObject), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart index 7d47ad5ff3..6419d7ca21 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart @@ -11,9 +11,9 @@ class _$PutAndGetInlineDocumentsInputOutput @override final _i3.JsonObject? inlineDocument; - factory _$PutAndGetInlineDocumentsInputOutput( - [void Function(PutAndGetInlineDocumentsInputOutputBuilder)? - updates]) => + factory _$PutAndGetInlineDocumentsInputOutput([ + void Function(PutAndGetInlineDocumentsInputOutputBuilder)? updates, + ]) => (new PutAndGetInlineDocumentsInputOutputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$PutAndGetInlineDocumentsInputOutput @override PutAndGetInlineDocumentsInputOutput rebuild( - void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutAndGetInlineDocumentsInputOutputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$PutAndGetInlineDocumentsInputOutput class PutAndGetInlineDocumentsInputOutputBuilder implements - Builder { + Builder< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutputBuilder + > { _$PutAndGetInlineDocumentsInputOutput? _$v; _i3.JsonObject? _inlineDocument; @@ -74,7 +76,8 @@ class PutAndGetInlineDocumentsInputOutputBuilder @override void update( - void Function(PutAndGetInlineDocumentsInputOutputBuilder)? updates) { + void Function(PutAndGetInlineDocumentsInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -82,9 +85,11 @@ class PutAndGetInlineDocumentsInputOutputBuilder PutAndGetInlineDocumentsInputOutput build() => _build(); _$PutAndGetInlineDocumentsInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutAndGetInlineDocumentsInputOutput._( - inlineDocument: inlineDocument); + inlineDocument: inlineDocument, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart index e723410b02..a54b0e36f0 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class PutWithContentEncodingInput _i2.AWSEquatable implements Built { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -36,11 +30,10 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputAwsJson11Serializer()]; + serializers = [PutWithContentEncodingInputAwsJson11Serializer()]; String? get encoding; String? get data; @@ -48,22 +41,14 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput getPayload() => this; @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class PutWithContentEncodingInput class PutWithContentEncodingInputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson11Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutWithContentEncodingInput deserialize( @@ -104,15 +86,19 @@ class PutWithContentEncodingInputAwsJson11Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,18 +116,19 @@ class PutWithContentEncodingInputAwsJson11Serializer if (encoding != null) { result$ ..add('encoding') - ..add(serializers.serialize( - encoding, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + encoding, + specifiedType: const FullType(String), + ), + ); } if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart index 43d33e396f..ce25012d07 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_config.dart index 3ff7073072..859ae32503 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsJson11Serializer() + RetryConfigAwsJson11Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsJson11Serializer const RetryConfigAwsJson11Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigAwsJson11Serializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -121,18 +105,19 @@ class RetryConfigAwsJson11Serializer if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart index cde03211e2..c0c0cc70ff 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart index d2cb2ab3b2..8f78bfa464 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.dart index b31cf4e8df..d5052aea2d 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsJson11Serializer() + S3ConfigAwsJson11Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsJson11Serializer const S3ConfigAwsJson11Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigAwsJson11Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigAwsJson11Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart index db059c27d9..bb7a5ead55 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsJson11Serializer() + ScopedConfigAwsJson11Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsJson11Serializer const ScopedConfigAwsJson11Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigAwsJson11Serializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigAwsJson11Serializer :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart index c2cd741abd..544e433c11 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,8 +15,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { factory SimpleScalarPropertiesInputOutput({ double? floatValue, double? doubleValue, @@ -27,9 +29,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -37,18 +39,16 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputAwsJson11Serializer()]; + serializers = [SimpleScalarPropertiesInputOutputAwsJson11Serializer()]; double? get floatValue; double? get doubleValue; @@ -56,23 +56,14 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutput getPayload() => this; @override - List get props => [ - floatValue, - doubleValue, - ]; + List get props => [floatValue, doubleValue]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -80,21 +71,18 @@ abstract class SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputAwsJson11Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -113,15 +101,19 @@ class SimpleScalarPropertiesInputOutputAwsJson11Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -139,18 +131,22 @@ class SimpleScalarPropertiesInputOutputAwsJson11Serializer if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add('doubleValue') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart index 88e2244582..9e2cd78ad9 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart @@ -13,18 +13,19 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); _$SimpleScalarPropertiesInputOutput._({this.floatValue, this.doubleValue}) - : super._(); + : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -50,8 +51,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; double? _floatValue; @@ -82,7 +85,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -90,9 +94,12 @@ class SimpleScalarPropertiesInputOutputBuilder SimpleScalarPropertiesInputOutput build() => _build(); _$SimpleScalarPropertiesInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - floatValue: floatValue, doubleValue: doubleValue); + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart index 23582e2891..b46bb2a34d 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.simple_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class SimpleStruct const SimpleStruct._(); static const List<_i2.SmithySerializer> serializers = [ - SimpleStructAwsJson11Serializer() + SimpleStructAwsJson11Serializer(), ]; String? get value; @@ -33,10 +33,7 @@ abstract class SimpleStruct @override String toString() { final helper = newBuiltValueToStringHelper('SimpleStruct') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -46,18 +43,12 @@ class SimpleStructAwsJson11Serializer const SimpleStructAwsJson11Serializer() : super('SimpleStruct'); @override - Iterable get types => const [ - SimpleStruct, - _$SimpleStruct, - ]; + Iterable get types => const [SimpleStruct, _$SimpleStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleStruct deserialize( @@ -76,10 +67,12 @@ class SimpleStructAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +90,9 @@ class SimpleStructAwsJson11Serializer if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart index 4739552cdf..ee83db5bf6 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.struct_with_json_name; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,14 @@ abstract class StructWithJsonName return _$StructWithJsonName._(value: value); } - factory StructWithJsonName.build( - [void Function(StructWithJsonNameBuilder) updates]) = - _$StructWithJsonName; + factory StructWithJsonName.build([ + void Function(StructWithJsonNameBuilder) updates, + ]) = _$StructWithJsonName; const StructWithJsonName._(); static const List<_i2.SmithySerializer> serializers = [ - StructWithJsonNameAwsJson11Serializer() + StructWithJsonNameAwsJson11Serializer(), ]; String? get value; @@ -34,10 +34,7 @@ abstract class StructWithJsonName @override String toString() { final helper = newBuiltValueToStringHelper('StructWithJsonName') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -47,18 +44,12 @@ class StructWithJsonNameAwsJson11Serializer const StructWithJsonNameAwsJson11Serializer() : super('StructWithJsonName'); @override - Iterable get types => const [ - StructWithJsonName, - _$StructWithJsonName, - ]; + Iterable get types => const [StructWithJsonName, _$StructWithJsonName]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override StructWithJsonName deserialize( @@ -77,10 +68,12 @@ class StructWithJsonNameAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +91,9 @@ class StructWithJsonNameAwsJson11Serializer if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart index 106b650047..3d138f01bc 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart @@ -10,16 +10,16 @@ class _$StructWithJsonName extends StructWithJsonName { @override final String? value; - factory _$StructWithJsonName( - [void Function(StructWithJsonNameBuilder)? updates]) => - (new StructWithJsonNameBuilder()..update(updates))._build(); + factory _$StructWithJsonName([ + void Function(StructWithJsonNameBuilder)? updates, + ]) => (new StructWithJsonNameBuilder()..update(updates))._build(); _$StructWithJsonName._({this.value}) : super._(); @override StructWithJsonName rebuild( - void Function(StructWithJsonNameBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructWithJsonNameBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructWithJsonNameBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart index ce5cb8411d..4cbbdba6a3 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.model.union_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,8 +21,9 @@ abstract class UnionInputOutput } /// A shared structure that contains a single union member. - factory UnionInputOutput.build( - [void Function(UnionInputOutputBuilder) updates]) = _$UnionInputOutput; + factory UnionInputOutput.build([ + void Function(UnionInputOutputBuilder) updates, + ]) = _$UnionInputOutput; const UnionInputOutput._(); @@ -30,18 +31,16 @@ abstract class UnionInputOutput UnionInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [UnionInputOutput] from a [payload] and [response]. factory UnionInputOutput.fromResponse( UnionInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - UnionInputOutputAwsJson11Serializer() + UnionInputOutputAwsJson11Serializer(), ]; /// A union with a representative set of types for members. @@ -55,10 +54,7 @@ abstract class UnionInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('UnionInputOutput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -68,18 +64,12 @@ class UnionInputOutputAwsJson11Serializer const UnionInputOutputAwsJson11Serializer() : super('UnionInputOutput'); @override - Iterable get types => const [ - UnionInputOutput, - _$UnionInputOutput, - ]; + Iterable get types => const [UnionInputOutput, _$UnionInputOutput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnionInputOutput deserialize( @@ -98,10 +88,12 @@ class UnionInputOutputAwsJson11Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -119,10 +111,12 @@ class UnionInputOutputAwsJson11Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart index 9011ed9795..50563b878c 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart @@ -10,9 +10,9 @@ class _$UnionInputOutput extends UnionInputOutput { @override final MyUnion? contents; - factory _$UnionInputOutput( - [void Function(UnionInputOutputBuilder)? updates]) => - (new UnionInputOutputBuilder()..update(updates))._build(); + factory _$UnionInputOutput([ + void Function(UnionInputOutputBuilder)? updates, + ]) => (new UnionInputOutputBuilder()..update(updates))._build(); _$UnionInputOutput._({this.contents}) : super._(); diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart index 64cce5dcc2..d1a03c8c53 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,8 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, @@ -22,20 +28,27 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -46,14 +59,14 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,9 +86,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -84,11 +97,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i4.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +121,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart index a36c43e05d..d12fc824b8 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.empty_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,37 +21,35 @@ class EmptyOperation const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.EmptyOperation', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.EmptyOperation'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,18 +69,15 @@ class EmptyOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +102,7 @@ class EmptyOperation _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart index f9689f3237..726911c1d3 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,19 +21,20 @@ class EndpointOperation const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -44,14 +45,14 @@ class EndpointOperation service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,19 +72,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +106,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart index 1612aa5f5c..3c5b9bb877 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,8 +13,9 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, @@ -22,20 +23,22 @@ class EndpointWithHostLabelOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -47,14 +50,14 @@ class EndpointWithHostLabelOperation extends _i1 service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,19 +77,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -111,11 +111,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart index c904ff2b2f..7f57200b1f 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,8 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, @@ -22,20 +28,27 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -46,14 +59,14 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,9 +86,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -84,11 +97,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i4.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +121,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart index cc7fd5dfc4..c86143e426 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. GreetingWithErrorsOperation({ required String region, @@ -27,20 +33,27 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -51,14 +64,14 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,9 +91,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -89,42 +102,32 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i4.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'FooError', - ), - _i1.ErrorKind.server, - FooError, - builder: FooError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json', shape: 'FooError'), + _i1.ErrorKind.server, + FooError, + builder: FooError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -145,11 +148,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart index 677f568908..650519f1ae 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,19 +21,20 @@ class HostWithPathOperation const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -44,14 +45,14 @@ class HostWithPathOperation service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,18 +72,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +105,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart index 9a24b05806..c488ef654e 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.json_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes enums as top level properties, in lists, sets, and maps. -class JsonEnumsOperation extends _i1.HttpOperation { +class JsonEnumsOperation + extends + _i1.HttpOperation< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. JsonEnumsOperation({ required String region, @@ -24,39 +30,43 @@ class JsonEnumsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.JsonEnums', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.JsonEnums'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -88,11 +98,7 @@ class JsonEnumsOperation extends _i1.HttpOperation - JsonEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -116,11 +122,7 @@ class JsonEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart index b3b0471053..ab494745c4 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.json_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes intEnums as top level properties, in lists, sets, and maps. -class JsonIntEnumsOperation extends _i1.HttpOperation { +class JsonIntEnumsOperation + extends + _i1.HttpOperation< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > { /// This example serializes intEnums as top level properties, in lists, sets, and maps. JsonIntEnumsOperation({ required String region, @@ -24,39 +30,43 @@ class JsonIntEnumsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.JsonIntEnums', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.JsonIntEnums'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -88,11 +98,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation - JsonIntEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonIntEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -116,11 +122,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart index af74850efe..b231ff3dac 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.json_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This operation uses unions for inputs and outputs. -class JsonUnionsOperation extends _i1.HttpOperation { +class JsonUnionsOperation + extends + _i1.HttpOperation< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > { /// This operation uses unions for inputs and outputs. JsonUnionsOperation({ required String region, @@ -24,39 +30,43 @@ class JsonUnionsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.JsonUnions', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.JsonUnions'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,9 +86,9 @@ class JsonUnionsOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([UnionInputOutput? output]) => 200; @@ -87,11 +97,7 @@ class JsonUnionsOperation extends _i1.HttpOperation - UnionInputOutput.fromResponse( - payload, - response, - ); + ) => UnionInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -115,11 +121,7 @@ class JsonUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart index 7fc1609e9e..0e170c90b7 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.kitchen_sink_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,8 +15,9 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class KitchenSinkOperation extends _i1 - .HttpOperation { +class KitchenSinkOperation + extends + _i1.HttpOperation { KitchenSinkOperation({ required String region, Uri? baseUri, @@ -24,20 +25,22 @@ class KitchenSinkOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -49,14 +52,14 @@ class KitchenSinkOperation extends _i1 service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,9 +79,9 @@ class KitchenSinkOperation extends _i1 @override _i1.HttpRequest buildRequest(KitchenSink input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([KitchenSink? output]) => 200; @@ -87,33 +90,29 @@ class KitchenSinkOperation extends _i1 KitchenSink buildOutput( KitchenSink payload, _i4.AWSBaseHttpResponse response, - ) => - KitchenSink.fromResponse( - payload, - response, - ); + ) => KitchenSink.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithMembers', - ), - _i1.ErrorKind.client, - ErrorWithMembers, - builder: ErrorWithMembers.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithoutMembers', - ), - _i1.ErrorKind.server, - ErrorWithoutMembers, - builder: ErrorWithoutMembers.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithMembers', + ), + _i1.ErrorKind.client, + ErrorWithMembers, + builder: ErrorWithMembers.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithoutMembers', + ), + _i1.ErrorKind.server, + ErrorWithoutMembers, + builder: ErrorWithoutMembers.fromResponse, + ), + ]; @override String get runtimeTypeName => 'KitchenSinkOperation'; @@ -134,11 +133,7 @@ class KitchenSinkOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart index 2f239d4332..d8e2487279 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.null_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,11 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class NullOperation extends _i1.HttpOperation< - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput> { +class NullOperation + extends + _i1.HttpOperation< + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput + > { NullOperation({ required String region, Uri? baseUri, @@ -25,39 +28,43 @@ class NullOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.NullOperation', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.NullOperation'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -89,11 +96,7 @@ class NullOperation extends _i1.HttpOperation< NullOperationInputOutput buildOutput( NullOperationInputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - NullOperationInputOutput.fromResponse( - payload, - response, - ); + ) => NullOperationInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -117,11 +120,7 @@ class NullOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart index 8bb1d8c2ea..21aadf854c 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.operation_with_optional_input_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,11 +14,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputOutput, - OperationWithOptionalInputOutputOutput> { +class OperationWithOptionalInputOutputOperation + extends + _i1.HttpOperation< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutput + > { OperationWithOptionalInputOutputOperation({ required String region, Uri? baseUri, @@ -26,23 +29,27 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputOutput, - OperationWithOptionalInputOutputOutput>> protocols = [ + _i1.HttpProtocol< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -54,14 +61,14 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -93,11 +100,7 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< OperationWithOptionalInputOutputOutput buildOutput( OperationWithOptionalInputOutputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - OperationWithOptionalInputOutputOutput.fromResponse( - payload, - response, - ); + ) => OperationWithOptionalInputOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -121,11 +124,7 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart index 6cbabef456..c8ac087e40 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.put_and_get_inline_documents_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,11 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes an inline document as part of the payload. -class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput> { +class PutAndGetInlineDocumentsOperation + extends + _i1.HttpOperation< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput + > { /// This example serializes an inline document as part of the payload. PutAndGetInlineDocumentsOperation({ required String region, @@ -27,23 +30,27 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput>> protocols = [ + _i1.HttpProtocol< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -55,14 +62,14 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -94,11 +101,7 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< PutAndGetInlineDocumentsInputOutput buildOutput( PutAndGetInlineDocumentsInputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - PutAndGetInlineDocumentsInputOutput.fromResponse( - payload, - response, - ); + ) => PutAndGetInlineDocumentsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -122,11 +125,7 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart index f9dc2fc163..99756bed8a 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,11 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, @@ -25,20 +28,27 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -50,14 +60,14 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -91,10 +101,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -119,11 +126,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart index 237499a60f..a6ea60bd83 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.json_protocol.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,11 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, @@ -25,23 +28,27 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -53,14 +60,14 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -92,11 +99,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -120,11 +123,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart index ab033e79cc..b5f0e4a562 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -60,10 +60,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -78,10 +75,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -111,15 +105,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Machine Learning'; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/serializers.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/serializers.dart index 1e4f0ee004..fe4005742c 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/serializers.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,32 +48,15 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(DetailsAttributes), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(double)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(DetailsAttributes), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart index 96128d2275..bca93f0778 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.machine_learning_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,12 +19,12 @@ class MachineLearningClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -49,9 +49,6 @@ class MachineLearningClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart index 2884d7a248..b967c73df5 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.machine_learning_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,18 +32,14 @@ abstract class MachineLearningServerBase extends _i1.HttpServerBase { router.add( 'POST', '/', - _i1.RpcRouter( - 'X-Amz-Target', - {'AmazonML_20141212.Predict': service.predict}, - ), + _i1.RpcRouter('X-Amz-Target', { + 'AmazonML_20141212.Predict': service.predict, + }), ); return router; }(); - _i3.Future predict( - PredictInput input, - _i1.Context context, - ); + _i3.Future predict(PredictInput input, _i1.Context context); _i3.Future<_i4.Response> call(_i4.Request request) => _router(request); } @@ -53,9 +49,13 @@ class _MachineLearningServer extends _i1.HttpServer { @override final MachineLearningServerBase service; - late final _i1 - .HttpProtocol - _predictProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + PredictInput, + PredictInput, + PredictOutput, + PredictOutput + > + _predictProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -65,26 +65,18 @@ class _MachineLearningServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _predictProtocol.contentType; try { - final payload = (await _predictProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PredictInput), - ) as PredictInput); - final input = PredictInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); - final output = await service.predict( - input, - context, - ); + final payload = + (await _predictProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(PredictInput), + ) + as PredictInput); + final input = PredictInput.fromRequest(payload, awsRequest, labels: {}); + final output = await service.predict(input, context); const statusCode = 200; final body = await _predictProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - PredictOutput, - [FullType(PredictOutput)], - ), + specifiedType: const FullType(PredictOutput, [FullType(PredictOutput)]), ); return _i4.Response( statusCode, @@ -94,10 +86,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on InternalServerException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InternalServerException, - [FullType(InternalServerException)], - ), + specifiedType: const FullType(InternalServerException, [ + FullType(InternalServerException), + ]), ); const statusCode = 500; return _i4.Response( @@ -108,10 +99,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on InvalidInputException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidInputException, - [FullType(InvalidInputException)], - ), + specifiedType: const FullType(InvalidInputException, [ + FullType(InvalidInputException), + ]), ); const statusCode = 400; return _i4.Response( @@ -122,10 +112,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on LimitExceededException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - LimitExceededException, - [FullType(LimitExceededException)], - ), + specifiedType: const FullType(LimitExceededException, [ + FullType(LimitExceededException), + ]), ); const statusCode = 417; return _i4.Response( @@ -136,10 +125,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on PredictorNotMountedException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - PredictorNotMountedException, - [FullType(PredictorNotMountedException)], - ), + specifiedType: const FullType(PredictorNotMountedException, [ + FullType(PredictorNotMountedException), + ]), ); const statusCode = 400; return _i4.Response( @@ -150,10 +138,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on ResourceNotFoundException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ResourceNotFoundException, - [FullType(ResourceNotFoundException)], - ), + specifiedType: const FullType(ResourceNotFoundException, [ + FullType(ResourceNotFoundException), + ]), ); const statusCode = 404; return _i4.Response( @@ -162,10 +149,7 @@ class _MachineLearningServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.dart index 30cc84ce62..2a8b2aa8f6 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsJson11Serializer() + AwsConfigAwsJson11Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsJson11Serializer const AwsConfigAwsJson11Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigAwsJson11Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigAwsJson11Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.dart index 54bd3bf240..fda58af172 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsJson11Serializer() + ClientConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsJson11Serializer const ClientConfigAwsJson11Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -193,63 +183,71 @@ class ClientConfigAwsJson11Serializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart index a48344cf0c..9689390c29 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.details_attributes; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class DetailsAttributes extends _i1.SmithyEnum { - const DetailsAttributes._( - super.index, - super.name, - super.value, - ); + const DetailsAttributes._(super.index, super.name, super.value); const DetailsAttributes._sdkUnknown(super.value) : super.sdkUnknown(); - static const algorithm = DetailsAttributes._( - 0, - 'ALGORITHM', - 'Algorithm', - ); + static const algorithm = DetailsAttributes._(0, 'ALGORITHM', 'Algorithm'); static const predictiveModelType = DetailsAttributes._( 1, @@ -38,12 +30,9 @@ class DetailsAttributes extends _i1.SmithyEnum { values: values, sdkUnknown: DetailsAttributes._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.dart index 3bfd28feb0..9ec4fdaa88 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsJson11Serializer() + EnvironmentConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsJson11Serializer const EnvironmentConfigAwsJson11Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigAwsJson11Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigAwsJson11Serializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart index 4a1967b1a1..98b2380d8d 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsJson11Serializer() + FileConfigSettingsAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsJson11Serializer const FileConfigSettingsAwsJson11Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -194,63 +183,71 @@ class FileConfigSettingsAwsJson11Serializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart index 741c316b51..4e58162e2e 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.internal_server_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class InternalServerException implements Built, _i2.SmithyHttpException { - factory InternalServerException({ - String? message, - int? code, - }) { - return _$InternalServerException._( - message: message, - code: code, - ); + factory InternalServerException({String? message, int? code}) { + return _$InternalServerException._(message: message, code: code); } - factory InternalServerException.build( - [void Function(InternalServerExceptionBuilder) updates]) = - _$InternalServerException; + factory InternalServerException.build([ + void Function(InternalServerExceptionBuilder) updates, + ]) = _$InternalServerException; const InternalServerException._(); @@ -35,10 +29,9 @@ abstract class InternalServerException factory InternalServerException.fromResponse( InternalServerException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [InternalServerExceptionAwsJson11Serializer()]; @@ -48,9 +41,9 @@ abstract class InternalServerException int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InternalServerException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'InternalServerException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,22 +59,14 @@ abstract class InternalServerException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('InternalServerException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('InternalServerException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -89,21 +74,18 @@ abstract class InternalServerException class InternalServerExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InternalServerExceptionAwsJson11Serializer() - : super('InternalServerException'); + : super('InternalServerException'); @override Iterable get types => const [ - InternalServerException, - _$InternalServerException, - ]; + InternalServerException, + _$InternalServerException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InternalServerException deserialize( @@ -122,15 +104,19 @@ class InternalServerExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -148,18 +134,14 @@ class InternalServerExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart index 037be1aacf..ea9b68f0cb 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart @@ -14,17 +14,17 @@ class _$InternalServerException extends InternalServerException { @override final Map? headers; - factory _$InternalServerException( - [void Function(InternalServerExceptionBuilder)? updates]) => - (new InternalServerExceptionBuilder()..update(updates))._build(); + factory _$InternalServerException([ + void Function(InternalServerExceptionBuilder)? updates, + ]) => (new InternalServerExceptionBuilder()..update(updates))._build(); _$InternalServerException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override InternalServerException rebuild( - void Function(InternalServerExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InternalServerExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InternalServerExceptionBuilder toBuilder() => @@ -93,9 +93,13 @@ class InternalServerExceptionBuilder InternalServerException build() => _build(); _$InternalServerException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InternalServerException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart index 996e1107ba..f2c25e1439 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.invalid_input_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class InvalidInputException implements Built, _i2.SmithyHttpException { - factory InvalidInputException({ - String? message, - int? code, - }) { - return _$InvalidInputException._( - message: message, - code: code, - ); + factory InvalidInputException({String? message, int? code}) { + return _$InvalidInputException._(message: message, code: code); } - factory InvalidInputException.build( - [void Function(InvalidInputExceptionBuilder) updates]) = - _$InvalidInputException; + factory InvalidInputException.build([ + void Function(InvalidInputExceptionBuilder) updates, + ]) = _$InvalidInputException; const InvalidInputException._(); @@ -35,13 +29,12 @@ abstract class InvalidInputException factory InvalidInputException.fromResponse( InvalidInputException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidInputExceptionAwsJson11Serializer() + InvalidInputExceptionAwsJson11Serializer(), ]; @override @@ -49,9 +42,9 @@ abstract class InvalidInputException int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InvalidInputException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'InvalidInputException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,22 +60,14 @@ abstract class InvalidInputException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('InvalidInputException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('InvalidInputException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -90,21 +75,18 @@ abstract class InvalidInputException class InvalidInputExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InvalidInputExceptionAwsJson11Serializer() - : super('InvalidInputException'); + : super('InvalidInputException'); @override Iterable get types => const [ - InvalidInputException, - _$InvalidInputException, - ]; + InvalidInputException, + _$InvalidInputException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidInputException deserialize( @@ -123,15 +105,19 @@ class InvalidInputExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -149,18 +135,14 @@ class InvalidInputExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart index 82e93039fe..8b12c3cb3b 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart @@ -14,17 +14,17 @@ class _$InvalidInputException extends InvalidInputException { @override final Map? headers; - factory _$InvalidInputException( - [void Function(InvalidInputExceptionBuilder)? updates]) => - (new InvalidInputExceptionBuilder()..update(updates))._build(); + factory _$InvalidInputException([ + void Function(InvalidInputExceptionBuilder)? updates, + ]) => (new InvalidInputExceptionBuilder()..update(updates))._build(); _$InvalidInputException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override InvalidInputException rebuild( - void Function(InvalidInputExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidInputExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidInputExceptionBuilder toBuilder() => @@ -92,9 +92,13 @@ class InvalidInputExceptionBuilder InvalidInputException build() => _build(); _$InvalidInputException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidInputException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart index 844d2184bb..87dfc957c4 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.limit_exceeded_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class LimitExceededException implements Built, _i2.SmithyHttpException { - factory LimitExceededException({ - String? message, - int? code, - }) { - return _$LimitExceededException._( - message: message, - code: code, - ); + factory LimitExceededException({String? message, int? code}) { + return _$LimitExceededException._(message: message, code: code); } - factory LimitExceededException.build( - [void Function(LimitExceededExceptionBuilder) updates]) = - _$LimitExceededException; + factory LimitExceededException.build([ + void Function(LimitExceededExceptionBuilder) updates, + ]) = _$LimitExceededException; const LimitExceededException._(); @@ -35,10 +29,9 @@ abstract class LimitExceededException factory LimitExceededException.fromResponse( LimitExceededException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [LimitExceededExceptionAwsJson11Serializer()]; @@ -48,9 +41,9 @@ abstract class LimitExceededException int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'LimitExceededException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'LimitExceededException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,22 +59,14 @@ abstract class LimitExceededException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('LimitExceededException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('LimitExceededException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -89,21 +74,18 @@ abstract class LimitExceededException class LimitExceededExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const LimitExceededExceptionAwsJson11Serializer() - : super('LimitExceededException'); + : super('LimitExceededException'); @override Iterable get types => const [ - LimitExceededException, - _$LimitExceededException, - ]; + LimitExceededException, + _$LimitExceededException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override LimitExceededException deserialize( @@ -122,15 +104,19 @@ class LimitExceededExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -148,18 +134,14 @@ class LimitExceededExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart index ef3344a863..49c5dba315 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart @@ -14,17 +14,17 @@ class _$LimitExceededException extends LimitExceededException { @override final Map? headers; - factory _$LimitExceededException( - [void Function(LimitExceededExceptionBuilder)? updates]) => - (new LimitExceededExceptionBuilder()..update(updates))._build(); + factory _$LimitExceededException([ + void Function(LimitExceededExceptionBuilder)? updates, + ]) => (new LimitExceededExceptionBuilder()..update(updates))._build(); _$LimitExceededException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override LimitExceededException rebuild( - void Function(LimitExceededExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(LimitExceededExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override LimitExceededExceptionBuilder toBuilder() => @@ -92,9 +92,13 @@ class LimitExceededExceptionBuilder LimitExceededException build() => _build(); _$LimitExceededException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$LimitExceededException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.dart index fe5e87909e..4728f17927 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsJson11Serializer() + OperationConfigAwsJson11Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsJson11Serializer const OperationConfigAwsJson11Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigAwsJson11Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigAwsJson11Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.dart index 83165ed081..9c995a135a 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.predict_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,11 +35,10 @@ abstract class PredictInput PredictInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - PredictInputAwsJson11Serializer() + PredictInputAwsJson11Serializer(), ]; String get mlModelId; @@ -49,27 +48,15 @@ abstract class PredictInput PredictInput getPayload() => this; @override - List get props => [ - mlModelId, - record, - predictEndpoint, - ]; + List get props => [mlModelId, record, predictEndpoint]; @override String toString() { - final helper = newBuiltValueToStringHelper('PredictInput') - ..add( - 'mlModelId', - mlModelId, - ) - ..add( - 'record', - record, - ) - ..add( - 'predictEndpoint', - predictEndpoint, - ); + final helper = + newBuiltValueToStringHelper('PredictInput') + ..add('mlModelId', mlModelId) + ..add('record', record) + ..add('predictEndpoint', predictEndpoint); return helper.toString(); } } @@ -79,18 +66,12 @@ class PredictInputAwsJson11Serializer const PredictInputAwsJson11Serializer() : super('PredictInput'); @override - Iterable get types => const [ - PredictInput, - _$PredictInput, - ]; + Iterable get types => const [PredictInput, _$PredictInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictInput deserialize( @@ -109,26 +90,30 @@ class PredictInputAwsJson11Serializer } switch (key) { case 'MLModelId': - result.mlModelId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.mlModelId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Record': - result.record.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.record.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'PredictEndpoint': - result.predictEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -145,20 +130,14 @@ class PredictInputAwsJson11Serializer final PredictInput(:mlModelId, :record, :predictEndpoint) = object; result$.addAll([ 'MLModelId', - serializers.serialize( - mlModelId, - specifiedType: const FullType(String), - ), + serializers.serialize(mlModelId, specifiedType: const FullType(String)), 'Record', serializers.serialize( record, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), ), 'PredictEndpoint', serializers.serialize( diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart index ecb4bb7059..9c5ba545f4 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart @@ -17,16 +17,22 @@ class _$PredictInput extends PredictInput { factory _$PredictInput([void Function(PredictInputBuilder)? updates]) => (new PredictInputBuilder()..update(updates))._build(); - _$PredictInput._( - {required this.mlModelId, - required this.record, - required this.predictEndpoint}) - : super._() { + _$PredictInput._({ + required this.mlModelId, + required this.record, + required this.predictEndpoint, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - mlModelId, r'PredictInput', 'mlModelId'); + mlModelId, + r'PredictInput', + 'mlModelId', + ); BuiltValueNullFieldError.checkNotNull(record, r'PredictInput', 'record'); BuiltValueNullFieldError.checkNotNull( - predictEndpoint, r'PredictInput', 'predictEndpoint'); + predictEndpoint, + r'PredictInput', + 'predictEndpoint', + ); } @override @@ -104,13 +110,21 @@ class PredictInputBuilder _$PredictInput _build() { _$PredictInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PredictInput._( - mlModelId: BuiltValueNullFieldError.checkNotNull( - mlModelId, r'PredictInput', 'mlModelId'), - record: record.build(), - predictEndpoint: BuiltValueNullFieldError.checkNotNull( - predictEndpoint, r'PredictInput', 'predictEndpoint')); + mlModelId: BuiltValueNullFieldError.checkNotNull( + mlModelId, + r'PredictInput', + 'mlModelId', + ), + record: record.build(), + predictEndpoint: BuiltValueNullFieldError.checkNotNull( + predictEndpoint, + r'PredictInput', + 'predictEndpoint', + ), + ); } catch (_) { late String _$failedField; try { @@ -118,7 +132,10 @@ class PredictInputBuilder record.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PredictInput', _$failedField, e.toString()); + r'PredictInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.dart index c6678e4d65..ab61147c12 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.predict_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,11 +27,10 @@ abstract class PredictOutput factory PredictOutput.fromResponse( PredictOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - PredictOutputAwsJson11Serializer() + PredictOutputAwsJson11Serializer(), ]; Prediction? get prediction; @@ -41,10 +40,7 @@ abstract class PredictOutput @override String toString() { final helper = newBuiltValueToStringHelper('PredictOutput') - ..add( - 'prediction', - prediction, - ); + ..add('prediction', prediction); return helper.toString(); } } @@ -54,18 +50,12 @@ class PredictOutputAwsJson11Serializer const PredictOutputAwsJson11Serializer() : super('PredictOutput'); @override - Iterable get types => const [ - PredictOutput, - _$PredictOutput, - ]; + Iterable get types => const [PredictOutput, _$PredictOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictOutput deserialize( @@ -84,10 +74,13 @@ class PredictOutputAwsJson11Serializer } switch (key) { case 'Prediction': - result.prediction.replace((serializers.deserialize( - value, - specifiedType: const FullType(Prediction), - ) as Prediction)); + result.prediction.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Prediction), + ) + as Prediction), + ); } } @@ -105,10 +98,12 @@ class PredictOutputAwsJson11Serializer if (prediction != null) { result$ ..add('Prediction') - ..add(serializers.serialize( - prediction, - specifiedType: const FullType(Prediction), - )); + ..add( + serializers.serialize( + prediction, + specifiedType: const FullType(Prediction), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart index 5d3a363047..2e0d971369 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart @@ -83,7 +83,10 @@ class PredictOutputBuilder _prediction?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PredictOutput', _$failedField, e.toString()); + r'PredictOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.dart index 5a2a8bac20..fce5f805cb 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.prediction; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,7 +36,7 @@ abstract class Prediction const Prediction._(); static const List<_i3.SmithySerializer> serializers = [ - PredictionAwsJson11Serializer() + PredictionAwsJson11Serializer(), ]; String? get predictedLabel; @@ -45,31 +45,20 @@ abstract class Prediction _i2.BuiltMap? get details; @override List get props => [ - predictedLabel, - predictedValue, - predictedScores, - details, - ]; + predictedLabel, + predictedValue, + predictedScores, + details, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('Prediction') - ..add( - 'predictedLabel', - predictedLabel, - ) - ..add( - 'predictedValue', - predictedValue, - ) - ..add( - 'predictedScores', - predictedScores, - ) - ..add( - 'details', - details, - ); + final helper = + newBuiltValueToStringHelper('Prediction') + ..add('predictedLabel', predictedLabel) + ..add('predictedValue', predictedValue) + ..add('predictedScores', predictedScores) + ..add('details', details); return helper.toString(); } } @@ -79,18 +68,12 @@ class PredictionAwsJson11Serializer const PredictionAwsJson11Serializer() : super('Prediction'); @override - Iterable get types => const [ - Prediction, - _$Prediction, - ]; + Iterable get types => const [Prediction, _$Prediction]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override Prediction deserialize( @@ -109,37 +92,41 @@ class PredictionAwsJson11Serializer } switch (key) { case 'predictedLabel': - result.predictedLabel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictedLabel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'predictedValue': - result.predictedValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.predictedValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'predictedScores': - result.predictedScores.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i2.BuiltMap)); + result.predictedScores.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i2.BuiltMap), + ); case 'details': - result.details.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(DetailsAttributes), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.details.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(DetailsAttributes), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); } } @@ -157,51 +144,53 @@ class PredictionAwsJson11Serializer :predictedLabel, :predictedValue, :predictedScores, - :details + :details, ) = object; if (predictedLabel != null) { result$ ..add('predictedLabel') - ..add(serializers.serialize( - predictedLabel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + predictedLabel, + specifiedType: const FullType(String), + ), + ); } if (predictedValue != null) { result$ ..add('predictedValue') - ..add(serializers.serialize( - predictedValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + predictedValue, + specifiedType: const FullType(double), + ), + ); } if (predictedScores != null) { result$ ..add('predictedScores') - ..add(serializers.serialize( - predictedScores, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + predictedScores, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(double), - ], + ]), ), - )); + ); } if (details != null) { result$ ..add('details') - ..add(serializers.serialize( - details, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + details, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(DetailsAttributes), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart index d3b070c819..817697d964 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart @@ -19,12 +19,12 @@ class _$Prediction extends Prediction { factory _$Prediction([void Function(PredictionBuilder)? updates]) => (new PredictionBuilder()..update(updates))._build(); - _$Prediction._( - {this.predictedLabel, - this.predictedValue, - this.predictedScores, - this.details}) - : super._(); + _$Prediction._({ + this.predictedLabel, + this.predictedValue, + this.predictedScores, + this.details, + }) : super._(); @override Prediction rebuild(void Function(PredictionBuilder) updates) => @@ -111,12 +111,14 @@ class PredictionBuilder implements Builder { _$Prediction _build() { _$Prediction _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$Prediction._( - predictedLabel: predictedLabel, - predictedValue: predictedValue, - predictedScores: _predictedScores?.build(), - details: _details?.build()); + predictedLabel: predictedLabel, + predictedValue: predictedValue, + predictedScores: _predictedScores?.build(), + details: _details?.build(), + ); } catch (_) { late String _$failedField; try { @@ -126,7 +128,10 @@ class PredictionBuilder implements Builder { _details?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'Prediction', _$failedField, e.toString()); + r'Prediction', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart index b23652972d..22347620b0 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.predictor_not_mounted_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'predictor_not_mounted_exception.g.dart'; abstract class PredictorNotMountedException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + PredictorNotMountedException, + PredictorNotMountedExceptionBuilder + >, _i2.SmithyHttpException { factory PredictorNotMountedException({String? message}) { return _$PredictorNotMountedException._(message: message); } - factory PredictorNotMountedException.build( - [void Function(PredictorNotMountedExceptionBuilder) updates]) = - _$PredictorNotMountedException; + factory PredictorNotMountedException.build([ + void Function(PredictorNotMountedExceptionBuilder) updates, + ]) = _$PredictorNotMountedException; const PredictorNotMountedException._(); @@ -31,21 +32,20 @@ abstract class PredictorNotMountedException factory PredictorNotMountedException.fromResponse( PredictorNotMountedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [PredictorNotMountedExceptionAwsJson11Serializer()]; + serializers = [PredictorNotMountedExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'PredictorNotMountedException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'PredictorNotMountedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,10 +66,7 @@ abstract class PredictorNotMountedException @override String toString() { final helper = newBuiltValueToStringHelper('PredictorNotMountedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class PredictorNotMountedException class PredictorNotMountedExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const PredictorNotMountedExceptionAwsJson11Serializer() - : super('PredictorNotMountedException'); + : super('PredictorNotMountedException'); @override Iterable get types => const [ - PredictorNotMountedException, - _$PredictorNotMountedException, - ]; + PredictorNotMountedException, + _$PredictorNotMountedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictorNotMountedException deserialize( @@ -110,10 +104,12 @@ class PredictorNotMountedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +127,9 @@ class PredictorNotMountedExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart index 4187adff85..d22d98e08e 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart @@ -12,16 +12,16 @@ class _$PredictorNotMountedException extends PredictorNotMountedException { @override final Map? headers; - factory _$PredictorNotMountedException( - [void Function(PredictorNotMountedExceptionBuilder)? updates]) => - (new PredictorNotMountedExceptionBuilder()..update(updates))._build(); + factory _$PredictorNotMountedException([ + void Function(PredictorNotMountedExceptionBuilder)? updates, + ]) => (new PredictorNotMountedExceptionBuilder()..update(updates))._build(); _$PredictorNotMountedException._({this.message, this.headers}) : super._(); @override PredictorNotMountedException rebuild( - void Function(PredictorNotMountedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PredictorNotMountedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PredictorNotMountedExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$PredictorNotMountedException extends PredictorNotMountedException { class PredictorNotMountedExceptionBuilder implements - Builder { + Builder< + PredictorNotMountedException, + PredictorNotMountedExceptionBuilder + > { _$PredictorNotMountedException? _$v; String? _message; @@ -83,9 +85,12 @@ class PredictorNotMountedExceptionBuilder PredictorNotMountedException build() => _build(); _$PredictorNotMountedException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PredictorNotMountedException._( - message: message, headers: headers); + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart index 891b4c2a1e..d7fb7422db 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.resource_not_found_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class ResourceNotFoundException implements Built, _i2.SmithyHttpException { - factory ResourceNotFoundException({ - String? message, - int? code, - }) { - return _$ResourceNotFoundException._( - message: message, - code: code, - ); + factory ResourceNotFoundException({String? message, int? code}) { + return _$ResourceNotFoundException._(message: message, code: code); } - factory ResourceNotFoundException.build( - [void Function(ResourceNotFoundExceptionBuilder) updates]) = - _$ResourceNotFoundException; + factory ResourceNotFoundException.build([ + void Function(ResourceNotFoundExceptionBuilder) updates, + ]) = _$ResourceNotFoundException; const ResourceNotFoundException._(); @@ -35,22 +29,21 @@ abstract class ResourceNotFoundException factory ResourceNotFoundException.fromResponse( ResourceNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; + serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; @override String? get message; int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'ResourceNotFoundException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'ResourceNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,22 +59,14 @@ abstract class ResourceNotFoundException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('ResourceNotFoundException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('ResourceNotFoundException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -89,21 +74,18 @@ abstract class ResourceNotFoundException class ResourceNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ResourceNotFoundExceptionAwsJson11Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ - ResourceNotFoundException, - _$ResourceNotFoundException, - ]; + ResourceNotFoundException, + _$ResourceNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceNotFoundException deserialize( @@ -122,15 +104,19 @@ class ResourceNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -148,18 +134,14 @@ class ResourceNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart index c6dae427b3..e881b9336e 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart @@ -14,17 +14,17 @@ class _$ResourceNotFoundException extends ResourceNotFoundException { @override final Map? headers; - factory _$ResourceNotFoundException( - [void Function(ResourceNotFoundExceptionBuilder)? updates]) => - (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); + factory _$ResourceNotFoundException([ + void Function(ResourceNotFoundExceptionBuilder)? updates, + ]) => (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); _$ResourceNotFoundException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override ResourceNotFoundException rebuild( - void Function(ResourceNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceNotFoundExceptionBuilder toBuilder() => @@ -93,9 +93,13 @@ class ResourceNotFoundExceptionBuilder ResourceNotFoundException build() => _build(); _$ResourceNotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ResourceNotFoundException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_config.dart index c11c2f491f..9a1c8098b6 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsJson11Serializer() + RetryConfigAwsJson11Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsJson11Serializer const RetryConfigAwsJson11Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigAwsJson11Serializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -121,18 +105,19 @@ class RetryConfigAwsJson11Serializer if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart index a425cf9ae5..69dcba6002 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart index b3f1c1d9a2..3161100589 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.dart index 772e956d77..99bd391db6 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsJson11Serializer() + S3ConfigAwsJson11Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsJson11Serializer const S3ConfigAwsJson11Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigAwsJson11Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigAwsJson11Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart index 713d5650bb..08e645cae7 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsJson11Serializer() + ScopedConfigAwsJson11Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsJson11Serializer const ScopedConfigAwsJson11Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigAwsJson11Serializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigAwsJson11Serializer :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart index 874826ac90..f20279b707 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v1.machine_learning.operation.predict_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,8 +19,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class PredictOperation extends _i1 - .HttpOperation { +class PredictOperation + extends + _i1.HttpOperation< + PredictInput, + PredictInput, + PredictOutput, + PredictOutput + > { PredictOperation({ required String region, Uri? baseUri, @@ -28,39 +34,38 @@ class PredictOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'AmazonML_20141212.Predict', - ), + const _i1.WithHeader('X-Amz-Target', 'AmazonML_20141212.Predict'), _i3.WithSigV4( region: _region, service: _i4.AWSService.machineLearning, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,9 +85,9 @@ class PredictOperation extends _i1 @override _i1.HttpRequest buildRequest(PredictInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([PredictOutput? output]) => 200; @@ -91,66 +96,61 @@ class PredictOperation extends _i1 PredictOutput buildOutput( PredictOutput payload, _i4.AWSBaseHttpResponse response, - ) => - PredictOutput.fromResponse( - payload, - response, - ); + ) => PredictOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InternalServerException', - ), - _i1.ErrorKind.server, - InternalServerException, - statusCode: 500, - builder: InternalServerException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InvalidInputException', - ), - _i1.ErrorKind.client, - InvalidInputException, - statusCode: 400, - builder: InvalidInputException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 417, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'PredictorNotMountedException', - ), - _i1.ErrorKind.client, - PredictorNotMountedException, - statusCode: 400, - builder: PredictorNotMountedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'InternalServerException', + ), + _i1.ErrorKind.server, + InternalServerException, + statusCode: 500, + builder: InternalServerException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'InvalidInputException', + ), + _i1.ErrorKind.client, + InvalidInputException, + statusCode: 400, + builder: InvalidInputException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 417, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'PredictorNotMountedException', + ), + _i1.ErrorKind.client, + PredictorNotMountedException, + statusCode: 400, + builder: PredictorNotMountedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'Predict'; @@ -171,11 +171,7 @@ class PredictOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsJson1_1/pubspec.yaml b/packages/smithy/goldens/lib/awsJson1_1/pubspec.yaml index d81cf4ab1f..4fc9befaf4 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/pubspec.yaml +++ b/packages/smithy/goldens/lib/awsJson1_1/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -20,7 +20,7 @@ dependencies: fixnum: ^1.0.0 shelf_router: ^1.1.0 shelf: ^1.4.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -42,6 +42,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart index a90fa3abe2..53e9c1e708 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,101 +13,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11DateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11DateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], + ); + }); } class DatetimeOffsetsOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsJson11Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/empty_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/empty_operation_test.dart index 601733ea4e..c3d6340bb2 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/empty_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/empty_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.empty_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,98 +11,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'sends_requests_to_slash (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('sends_requests_to_slash (request)', () async { + await _i2.httpRequestTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'sends_requests_to_slash', - documentation: 'Sends requests to /', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EmptyOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'sends_requests_to_slash', + documentation: 'Sends requests to /', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EmptyOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('includes_x_amz_target_and_content_type (request)', () async { + await _i2.httpRequestTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'includes_x_amz_target_and_content_type (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'includes_x_amz_target_and_content_type', - documentation: 'Includes X-Amz-Target header and Content-Type', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EmptyOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'includes_x_amz_target_and_content_type', + documentation: 'Includes X-Amz-Target header and Content-Type', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EmptyOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); _i1.test( 'json_1_1_client_sends_empty_payload_for_no_input_shape (request)', () async { @@ -110,11 +94,12 @@ void main() { operation: EmptyOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'json_1_1_client_sends_empty_payload_for_no_input_shape', @@ -150,118 +135,94 @@ void main() { ); }, ); - _i1.test( - 'handles_empty_output_shape (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('handles_empty_output_shape (response)', () async { + await _i2.httpResponseTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'handles_empty_output_shape', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'handles_empty_output_shape', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('handles_unexpected_json_output (response)', () async { + await _i2.httpResponseTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'handles_unexpected_json_output (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'handles_unexpected_json_output', + documentation: + 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "foo": true\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('json_1_1_service_responds_with_no_payload (response)', () async { + await _i2.httpResponseTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'handles_unexpected_json_output', - documentation: - 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "foo": true\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'json_1_1_service_responds_with_no_payload (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'json_1_1_service_responds_with_no_payload', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'json_1_1_service_responds_with_no_payload', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_operation_test.dart index 34711901d6..7fe13cdb7c 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,51 +11,43 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11EndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11EndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11EndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EndpointOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11EndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EndpointOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart index d57ca5383b..40f4e5e3c1 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,53 +13,45 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11EndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11EndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11EndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"label": "bar"}', - bodyMediaType: 'application/json', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EndpointWithHostLabelOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11EndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"label": "bar"}', + bodyMediaType: 'application/json', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EndpointWithHostLabelOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputAwsJson11Serializer()], + ); + }); } class HostLabelInputAwsJson11Serializer @@ -71,11 +63,8 @@ class HostLabelInputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override HostLabelInput deserialize( @@ -94,10 +83,12 @@ class HostLabelInputAwsJson11Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart index 06bd7a7753..2b3df9a367 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,62 +13,51 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11DateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11DateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputAwsJson11Serializer()], + ); + }); } class FractionalSecondsOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const FractionalSecondsOutputAwsJson11Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart index 81274f5660..0fbddd8f8e 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,186 +17,180 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11ComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11ComplexError', - documentation: 'Parses a complex error with no message member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "__type": "ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, + _i1.test('AwsJson11ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [ - ComplexErrorAwsJson11Serializer(), - ComplexNestedErrorDataAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson11EmptyComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11EmptyComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "ComplexError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11ComplexError', + documentation: 'Parses a complex error with no message member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "__type": "ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson11Serializer(), + ComplexNestedErrorDataAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11EmptyComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [ - ComplexErrorAwsJson11Serializer(), - ComplexNestedErrorDataAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingXAmznErrorType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11EmptyComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "ComplexError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson11Serializer(), + ComplexNestedErrorDataAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11FooErrorUsingXAmznErrorType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingXAmznErrorType', - documentation: - 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amzn-Errortype': 'FooError'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingXAmznErrorType', + documentation: + 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amzn-Errortype': 'FooError'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorUsingXAmznErrorTypeWithUri (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingXAmznErrorTypeWithUri (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingXAmznErrorTypeWithUri', - documentation: - 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Amzn-Errortype': - 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingXAmznErrorTypeWithUri', + documentation: + 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Errortype': + 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); _i1.test( 'AwsJson11FooErrorUsingXAmznErrorTypeWithUriAndNamespace (error)', () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( operation: GreetingWithErrorsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), testCase: const _i2.HttpResponseTestCase( id: 'AwsJson11FooErrorUsingXAmznErrorTypeWithUriAndNamespace', @@ -214,7 +208,7 @@ void main() { vendorParams: {}, headers: { 'X-Amzn-Errortype': - 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/' + 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/', }, forbidHeaders: [], requireHeaders: [], @@ -226,296 +220,272 @@ void main() { ); }, ); - _i1.test( - 'AwsJson11FooErrorUsingCode (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11FooErrorUsingCode (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingCode', - documentation: - 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "code": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingCode', + documentation: + 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "code": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorUsingCodeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingCodeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingCodeAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorUsingCodeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingCodeAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingCodeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingCodeUriAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorWithDunderType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorWithDunderType', - documentation: 'Some services serialize errors using __type.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorWithDunderTypeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingCodeUriAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorWithDunderType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorWithDunderTypeAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorWithDunderType', + documentation: 'Some services serialize errors using __type.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorWithDunderTypeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorWithDunderTypeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorWithDunderTypeAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorWithDunderTypeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorWithDunderTypeUriAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorWithDunderTypeUriAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11InvalidGreetingError', - documentation: 'Parses simple JSON errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "InvalidGreeting",\n "Message": "Hi"\n}', - bodyMediaType: 'application/json', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11InvalidGreetingError', + documentation: 'Parses simple JSON errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "InvalidGreeting",\n "Message": "Hi"\n}', + bodyMediaType: 'application/json', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingAwsJson11Serializer()], + ); + }); } class GreetingWithErrorsOutputAwsJson11Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson11Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -534,10 +504,12 @@ class GreetingWithErrorsOutputAwsJson11Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -563,11 +535,8 @@ class ComplexErrorAwsJson11Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexError deserialize( @@ -586,15 +555,20 @@ class ComplexErrorAwsJson11Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -614,18 +588,15 @@ class ComplexErrorAwsJson11Serializer class ComplexNestedErrorDataAwsJson11Serializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson11Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexNestedErrorData deserialize( @@ -644,10 +615,12 @@ class ComplexNestedErrorDataAwsJson11Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -673,11 +646,8 @@ class FooErrorAwsJson11Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FooError deserialize( @@ -707,11 +677,8 @@ class InvalidGreetingAwsJson11Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidGreeting deserialize( @@ -730,10 +697,12 @@ class InvalidGreetingAwsJson11Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart index 15612ae69b..bff4f29269 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,50 +11,42 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11HostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11HostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11HostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.HostWithPathOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11HostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.HostWithPathOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_enums_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_enums_operation_test.dart index af7d0cdafc..090362f481 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.json_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,140 +15,103 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11Enums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11Enums (request)', () async { + await _i2.httpRequestTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11Enums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonEnums', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11Enums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonEnums', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11Enums (response)', () async { + await _i2.httpResponseTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11Enums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11Enums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11Enums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], + ); + }); } class JsonEnumsInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const JsonEnumsInputOutputAwsJson11Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [JsonEnumsInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -167,47 +130,57 @@ class JsonEnumsInputOutputAwsJson11Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(FooEnum)], - ), - ) as _i5.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i5.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i5.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i5.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart index 2d1e28951d..dcfe44f354 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.json_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,143 +14,106 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11IntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11IntEnums (request)', () async { + await _i2.httpRequestTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11IntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11IntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11IntEnums (response)', () async { + await _i2.httpResponseTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11IntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11IntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11IntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], + ); + }); } class JsonIntEnumsInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const JsonIntEnumsInputOutputAwsJson11Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [JsonIntEnumsInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -169,47 +132,53 @@ class JsonIntEnumsInputOutputAwsJson11Serializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(int)], - ), - ) as _i5.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [FullType(int)]), + ) + as _i5.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i5.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i5.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_unions_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_unions_operation_test.dart index 6ce335b0fd..10ce1c08e0 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_unions_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/json_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.json_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,821 +14,665 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11SerializeStringUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeStringUnionValue', - documentation: 'Serializes a string union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeBooleanUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeBooleanUnionValue', - documentation: 'Serializes a boolean union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', + _i1.test('AwsJson11SerializeStringUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeStringUnionValue', + documentation: 'Serializes a string union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeBooleanUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeBooleanUnionValue', + documentation: 'Serializes a boolean union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeNumberUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeNumberUnionValue', + documentation: 'Serializes a number union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeBlobUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeBlobUnionValue', + documentation: 'Serializes a blob union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeTimestampUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeTimestampUnionValue', + documentation: 'Serializes a timestamp union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeEnumUnionValue', + documentation: 'Serializes an enum union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeListUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeListUnionValue', + documentation: 'Serializes a list union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeNumberUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeNumberUnionValue', - documentation: 'Serializes a number union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeMapUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeMapUnionValue', + documentation: 'Serializes a map union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeBlobUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeBlobUnionValue', - documentation: 'Serializes a blob union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeTimestampUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeTimestampUnionValue', - documentation: 'Serializes a timestamp union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeStructureUnionValue', + documentation: 'Serializes a structure union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeStringUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeStringUnionValue', + documentation: 'Deserializes a string union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeBooleanUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeBooleanUnionValue', + documentation: 'Deserializes a boolean union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeNumberUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeNumberUnionValue', + documentation: 'Deserializes a number union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeBlobUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeBlobUnionValue', + documentation: 'Deserializes a blob union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeTimestampUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeTimestampUnionValue', + documentation: 'Deserializes a timestamp union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeEnumUnionValue', + documentation: 'Deserializes an enum union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeListUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeListUnionValue', + documentation: 'Deserializes a list union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeEnumUnionValue', - documentation: 'Serializes an enum union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeListUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeListUnionValue', - documentation: 'Serializes a list union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeMapUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeMapUnionValue', - documentation: 'Serializes a map union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeStructureUnionValue', - documentation: 'Serializes a structure union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeMapUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeMapUnionValue', + documentation: 'Deserializes a map union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeStructureUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeStructureUnionValue', + documentation: 'Deserializes a structure union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeStringUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeStringUnionValue', - documentation: 'Deserializes a string union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeBooleanUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeBooleanUnionValue', - documentation: 'Deserializes a boolean union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeNumberUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeNumberUnionValue', - documentation: 'Deserializes a number union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeBlobUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeBlobUnionValue', - documentation: 'Deserializes a blob union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeTimestampUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeTimestampUnionValue', - documentation: 'Deserializes a timestamp union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeEnumUnionValue', - documentation: 'Deserializes an enum union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeListUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeListUnionValue', - documentation: 'Deserializes a list union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeMapUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeMapUnionValue', - documentation: 'Deserializes a map union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeStructureUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeStructureUnionValue', - documentation: 'Deserializes a structure union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); } class UnionInputOutputAwsJson11Serializer @@ -840,11 +684,8 @@ class UnionInputOutputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnionInputOutput deserialize( @@ -863,10 +704,12 @@ class UnionInputOutputAwsJson11Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart index 6f2483b029..574949a005 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.kitchen_sink_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,2438 +23,485 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { + _i1.test('serializes_string_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_string_shapes', + documentation: 'Serializes string shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"String":"abc xyz"}', + bodyMediaType: 'application/json', + params: {'String': 'abc xyz'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_string_shapes_with_jsonvalue_trait (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_string_shapes_with_jsonvalue_trait', + documentation: 'Serializes string shapes with jsonvalue trait', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"JsonValue":"{\\"string\\":\\"value\\",\\"number\\":1234.5,\\"boolTrue\\":true,\\"boolFalse\\":false,\\"array\\":[1,2,3,4],\\"object\\":{\\"key\\":\\"value\\"},\\"null\\":null}"}', + bodyMediaType: 'application/json', + params: { + 'JsonValue': + '{"string":"value","number":1234.5,"boolTrue":true,"boolFalse":false,"array":[1,2,3,4],"object":{"key":"value"},"null":null}', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_integer_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_integer_shapes', + documentation: 'Serializes integer shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Integer":1234}', + bodyMediaType: 'application/json', + params: {'Integer': 1234}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_long_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_long_shapes', + documentation: 'Serializes long shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Long":999999999999}', + bodyMediaType: 'application/json', + params: {'Long': 999999999999}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_float_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_float_shapes', + documentation: 'Serializes float shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Float":1234.5}', + bodyMediaType: 'application/json', + params: {'Float': 1234.5}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_double_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_double_shapes', + documentation: 'Serializes double shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Double":1234.5}', + bodyMediaType: 'application/json', + params: {'Double': 1234.5}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_blob_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_blob_shapes', + documentation: 'Serializes blob shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Blob":"YmluYXJ5LXZhbHVl"}', + bodyMediaType: 'application/json', + params: {'Blob': 'binary-value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_boolean_shapes_true (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_boolean_shapes_true', + documentation: 'Serializes boolean shapes (true)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":true}', + bodyMediaType: 'application/json', + params: {'Boolean': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_boolean_shapes_false (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_boolean_shapes_false', + documentation: 'Serializes boolean shapes (false)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":false}', + bodyMediaType: 'application/json', + params: {'Boolean': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_timestamp_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes', + documentation: 'Serializes timestamp shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Timestamp":946845296}', + bodyMediaType: 'application/json', + params: {'Timestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); _i1.test( - 'serializes_string_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_string_shapes', - documentation: 'Serializes string shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"String":"abc xyz"}', - bodyMediaType: 'application/json', - params: {'String': 'abc xyz'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_string_shapes_with_jsonvalue_trait (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_string_shapes_with_jsonvalue_trait', - documentation: 'Serializes string shapes with jsonvalue trait', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"JsonValue":"{\\"string\\":\\"value\\",\\"number\\":1234.5,\\"boolTrue\\":true,\\"boolFalse\\":false,\\"array\\":[1,2,3,4],\\"object\\":{\\"key\\":\\"value\\"},\\"null\\":null}"}', - bodyMediaType: 'application/json', - params: { - 'JsonValue': - '{"string":"value","number":1234.5,"boolTrue":true,"boolFalse":false,"array":[1,2,3,4],"object":{"key":"value"},"null":null}' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_integer_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_integer_shapes', - documentation: 'Serializes integer shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Integer":1234}', - bodyMediaType: 'application/json', - params: {'Integer': 1234}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_long_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_long_shapes', - documentation: 'Serializes long shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Long":999999999999}', - bodyMediaType: 'application/json', - params: {'Long': 999999999999}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_float_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_float_shapes', - documentation: 'Serializes float shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Float":1234.5}', - bodyMediaType: 'application/json', - params: {'Float': 1234.5}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_double_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_double_shapes', - documentation: 'Serializes double shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Double":1234.5}', - bodyMediaType: 'application/json', - params: {'Double': 1234.5}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_blob_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_blob_shapes', - documentation: 'Serializes blob shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Blob":"YmluYXJ5LXZhbHVl"}', - bodyMediaType: 'application/json', - params: {'Blob': 'binary-value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_boolean_shapes_true (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_boolean_shapes_true', - documentation: 'Serializes boolean shapes (true)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":true}', - bodyMediaType: 'application/json', - params: {'Boolean': true}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_boolean_shapes_false (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_boolean_shapes_false', - documentation: 'Serializes boolean shapes (false)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":false}', - bodyMediaType: 'application/json', - params: {'Boolean': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes', - documentation: 'Serializes timestamp shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Timestamp":946845296}', - bodyMediaType: 'application/json', - params: {'Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes_with_iso8601_timestampformat (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes_with_iso8601_timestampformat', - documentation: - 'Serializes timestamp shapes with iso8601 timestampFormat', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', - bodyMediaType: 'application/json', - params: {'Iso8601Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes_with_httpdate_timestampformat (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes_with_httpdate_timestampformat', - documentation: - 'Serializes timestamp shapes with httpdate timestampFormat', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', - bodyMediaType: 'application/json', - params: {'HttpdateTimestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat', - documentation: - 'Serializes timestamp shapes with unixTimestamp timestampFormat', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"UnixTimestamp":946845296}', - bodyMediaType: 'application/json', - params: {'UnixTimestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_shapes', - documentation: 'Serializes list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStrings":["abc","mno","xyz"]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStrings': [ - 'abc', - 'mno', - 'xyz', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_empty_list_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_empty_list_shapes', - documentation: 'Serializes empty list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStrings":[]}', - bodyMediaType: 'application/json', - params: {'ListOfStrings': []}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_of_map_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_of_map_shapes', - documentation: 'Serializes list of map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"ListOfMapsOfStrings":[{"foo":"bar"},{"abc":"xyz"},{"red":"blue"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfMapsOfStrings': [ - {'foo': 'bar'}, - {'abc': 'xyz'}, - {'red': 'blue'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_of_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_of_structure_shapes', - documentation: 'Serializes list of structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"ListOfStructs":[{"Value":"abc"},{"Value":"mno"},{"Value":"xyz"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStructs': [ - {'Value': 'abc'}, - {'Value': 'mno'}, - {'Value': 'xyz'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_of_recursive_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_of_recursive_structure_shapes', - documentation: 'Serializes list of recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"Integer":123}]}]}]}', - bodyMediaType: 'application/json', - params: { - 'RecursiveList': [ - { - 'RecursiveList': [ - { - 'RecursiveList': [ - {'Integer': 123} - ] - } - ] - } - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_shapes', - documentation: 'Serializes map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"MapOfStrings":{"abc":"xyz","mno":"hjk"}}', - bodyMediaType: 'application/json', - params: { - 'MapOfStrings': { - 'abc': 'xyz', - 'mno': 'hjk', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_empty_map_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_empty_map_shapes', - documentation: 'Serializes empty map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"MapOfStrings":{}}', - bodyMediaType: 'application/json', - params: {'MapOfStrings': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_of_list_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_of_list_shapes', - documentation: 'Serializes map of list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"MapOfListsOfStrings":{"abc":["abc","xyz"],"mno":["xyz","abc"]}}', - bodyMediaType: 'application/json', - params: { - 'MapOfListsOfStrings': { - 'abc': [ - 'abc', - 'xyz', - ], - 'mno': [ - 'xyz', - 'abc', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_of_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_of_structure_shapes', - documentation: 'Serializes map of structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"MapOfStructs":{"key1":{"Value":"value-1"},"key2":{"Value":"value-2"}}}', - bodyMediaType: 'application/json', - params: { - 'MapOfStructs': { - 'key1': {'Value': 'value-1'}, - 'key2': {'Value': 'value-2'}, - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_of_recursive_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_of_recursive_structure_shapes', - documentation: 'Serializes map of recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"RecursiveMap":{"key1":{"RecursiveMap":{"key2":{"RecursiveMap":{"key3":{"Boolean":false}}}}}}}', - bodyMediaType: 'application/json', - params: { - 'RecursiveMap': { - 'key1': { - 'RecursiveMap': { - 'key2': { - 'RecursiveMap': { - 'key3': {'Boolean': false} - } - } - } - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_structure_shapes', - documentation: 'Serializes structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"SimpleStruct":{"Value":"abc"}}', - bodyMediaType: 'application/json', - params: { - 'SimpleStruct': {'Value': 'abc'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_structure_members_with_locationname_traits (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_structure_members_with_locationname_traits', - documentation: - 'Serializes structure members with locationName traits', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"StructWithJsonName":{"Value":"some-value"}}', - bodyMediaType: 'application/json', - params: { - 'StructWithJsonName': {'Value': 'some-value'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_empty_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_empty_structure_shapes', - documentation: 'Serializes empty structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"SimpleStruct":{}}', - bodyMediaType: 'application/json', - params: {'SimpleStruct': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_structure_which_have_no_members (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_structure_which_have_no_members', - documentation: 'Serializes structure which have no members', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"EmptyStruct":{}}', - bodyMediaType: 'application/json', - params: {'EmptyStruct': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_recursive_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_recursive_structure_shapes', - documentation: 'Serializes recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"String":"top-value","Boolean":false,"RecursiveStruct":{"String":"nested-value","Boolean":true,"RecursiveList":[{"String":"string-only"},{"RecursiveStruct":{"MapOfStrings":{"color":"red","size":"large"}}}]}}', - bodyMediaType: 'application/json', - params: { - 'String': 'top-value', - 'Boolean': false, - 'RecursiveStruct': { - 'String': 'nested-value', - 'Boolean': true, - 'RecursiveList': [ - {'String': 'string-only'}, - { - 'RecursiveStruct': { - 'MapOfStrings': { - 'color': 'red', - 'size': 'large', - } - } - }, - ], - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_operations_with_empty_json_bodies (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_operations_with_empty_json_bodies', - documentation: 'Parses operations with empty JSON bodies', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_string_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_string_shapes', - documentation: 'Parses string shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"String":"string-value"}', - bodyMediaType: 'application/json', - params: {'String': 'string-value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_integer_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_integer_shapes', - documentation: 'Parses integer shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Integer":1234}', - bodyMediaType: 'application/json', - params: {'Integer': 1234}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_long_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_long_shapes', - documentation: 'Parses long shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Long":1234567890123456789}', - bodyMediaType: 'application/json', - params: {'Long': '1234567890123456789'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - testOn: 'vm', - ); - _i1.test( - 'parses_float_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_float_shapes', - documentation: 'Parses float shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Float":1234.5}', - bodyMediaType: 'application/json', - params: {'Float': 1234.5}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_double_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_double_shapes', - documentation: 'Parses double shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Double":123456789.12345679}', - bodyMediaType: 'application/json', - params: {'Double': 123456789.12345679}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_boolean_shapes_true (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_boolean_shapes_true', - documentation: 'Parses boolean shapes (true)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":true}', - bodyMediaType: 'application/json', - params: {'Boolean': true}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_boolean_false (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_boolean_false', - documentation: 'Parses boolean (false)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":false}', - bodyMediaType: 'application/json', - params: {'Boolean': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_blob_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_blob_shapes', - documentation: 'Parses blob shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Blob":"YmluYXJ5LXZhbHVl"}', - bodyMediaType: 'application/json', - params: {'Blob': 'binary-value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_timestamp_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_timestamp_shapes', - documentation: 'Parses timestamp shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Timestamp":946845296}', - bodyMediaType: 'application/json', - params: {'Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_iso8601_timestamps (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_iso8601_timestamps', - documentation: 'Parses iso8601 timestamps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', - bodyMediaType: 'application/json', - params: {'Iso8601Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_httpdate_timestamps (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_httpdate_timestamps', - documentation: 'Parses httpdate timestamps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', - bodyMediaType: 'application/json', - params: {'HttpdateTimestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_shapes', - documentation: 'Parses list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStrings":["abc","mno","xyz"]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStrings': [ - 'abc', - 'mno', - 'xyz', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_map_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_map_shapes', - documentation: 'Parses list of map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfMapsOfStrings":[{"size":"large"},{"color":"red"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfMapsOfStrings': [ - {'size': 'large'}, - {'color': 'red'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_list_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_list_shapes', - documentation: 'Parses list of list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfLists":[["abc","mno","xyz"],["hjk","qrs","tuv"]]}', - bodyMediaType: 'application/json', - params: { - 'ListOfLists': [ - [ - 'abc', - 'mno', - 'xyz', - ], - [ - 'hjk', - 'qrs', - 'tuv', - ], - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_structure_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_structure_shapes', - documentation: 'Parses list of structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStructs":[{"Value":"value-1"},{"Value":"value-2"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStructs': [ - {'Value': 'value-1'}, - {'Value': 'value-2'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_recursive_structure_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_recursive_structure_shapes', - documentation: 'Parses list of recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"String":"value"}]}]}]}', - bodyMediaType: 'application/json', - params: { - 'RecursiveList': [ - { - 'RecursiveList': [ - { - 'RecursiveList': [ - {'String': 'value'} - ] - } - ] - } - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_map_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_shapes', - documentation: 'Parses map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"MapOfStrings":{"size":"large","color":"red"}}', - bodyMediaType: 'application/json', - params: { - 'MapOfStrings': { - 'size': 'large', - 'color': 'red', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_map_of_list_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_list_shapes', - documentation: 'Parses map of list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"MapOfListsOfStrings":{"sizes":["large","small"],"colors":["red","green"]}}', - bodyMediaType: 'application/json', - params: { - 'MapOfListsOfStrings': { - 'sizes': [ - 'large', - 'small', - ], - 'colors': [ - 'red', - 'green', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_map_of_map_shapes (response)', + 'serializes_timestamp_shapes_with_iso8601_timestampformat (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_map_shapes', - documentation: 'Parses map of map shapes', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes_with_iso8601_timestampformat', + documentation: + 'Serializes timestamp shapes with iso8601 timestampFormat', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: - '{"MapOfMaps":{"sizes":{"large":"L","medium":"M"},"colors":{"red":"R","blue":"B"}}}', + body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', bodyMediaType: 'application/json', - params: { - 'MapOfMaps': { - 'sizes': { - 'large': 'L', - 'medium': 'M', - }, - 'colors': { - 'red': 'R', - 'blue': 'B', - }, - } - }, + params: {'Iso8601Timestamp': 946845296}, vendorParamsShape: null, vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2464,45 +511,50 @@ void main() { }, ); _i1.test( - 'parses_map_of_structure_shapes (response)', + 'serializes_timestamp_shapes_with_httpdate_timestampformat (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_structure_shapes', - documentation: 'Parses map of structure shapes', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes_with_httpdate_timestampformat', + documentation: + 'Serializes timestamp shapes with httpdate timestampFormat', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: - '{"MapOfStructs":{"size":{"Value":"small"},"color":{"Value":"red"}}}', + body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', bodyMediaType: 'application/json', - params: { - 'MapOfStructs': { - 'size': {'Value': 'small'}, - 'color': {'Value': 'red'}, - } - }, + params: {'HttpdateTimestamp': 946845296}, vendorParamsShape: null, vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2512,52 +564,50 @@ void main() { }, ); _i1.test( - 'parses_map_of_recursive_structure_shapes (response)', + 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_recursive_structure_shapes', - documentation: 'Parses map of recursive structure shapes', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat', + documentation: + 'Serializes timestamp shapes with unixTimestamp timestampFormat', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: - '{"RecursiveMap":{"key-1":{"RecursiveMap":{"key-2":{"RecursiveMap":{"key-3":{"String":"value"}}}}}}}', + body: '{"UnixTimestamp":946845296}', bodyMediaType: 'application/json', - params: { - 'RecursiveMap': { - 'key-1': { - 'RecursiveMap': { - 'key-2': { - 'RecursiveMap': { - 'key-3': {'String': 'value'} - } - } - } - } - } - }, + params: {'UnixTimestamp': 946845296}, vendorParamsShape: null, vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2566,43 +616,584 @@ void main() { ); }, ); + _i1.test('serializes_list_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_shapes', + documentation: 'Serializes list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStrings":["abc","mno","xyz"]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStrings': ['abc', 'mno', 'xyz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_empty_list_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_empty_list_shapes', + documentation: 'Serializes empty list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStrings":[]}', + bodyMediaType: 'application/json', + params: {'ListOfStrings': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_list_of_map_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_of_map_shapes', + documentation: 'Serializes list of map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"ListOfMapsOfStrings":[{"foo":"bar"},{"abc":"xyz"},{"red":"blue"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfMapsOfStrings': [ + {'foo': 'bar'}, + {'abc': 'xyz'}, + {'red': 'blue'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_list_of_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_of_structure_shapes', + documentation: 'Serializes list of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"ListOfStructs":[{"Value":"abc"},{"Value":"mno"},{"Value":"xyz"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStructs': [ + {'Value': 'abc'}, + {'Value': 'mno'}, + {'Value': 'xyz'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_list_of_recursive_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_of_recursive_structure_shapes', + documentation: 'Serializes list of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"Integer":123}]}]}]}', + bodyMediaType: 'application/json', + params: { + 'RecursiveList': [ + { + 'RecursiveList': [ + { + 'RecursiveList': [ + {'Integer': 123}, + ], + }, + ], + }, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_shapes', + documentation: 'Serializes map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"MapOfStrings":{"abc":"xyz","mno":"hjk"}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStrings': {'abc': 'xyz', 'mno': 'hjk'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_empty_map_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_empty_map_shapes', + documentation: 'Serializes empty map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"MapOfStrings":{}}', + bodyMediaType: 'application/json', + params: {'MapOfStrings': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_of_list_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_of_list_shapes', + documentation: 'Serializes map of list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfListsOfStrings":{"abc":["abc","xyz"],"mno":["xyz","abc"]}}', + bodyMediaType: 'application/json', + params: { + 'MapOfListsOfStrings': { + 'abc': ['abc', 'xyz'], + 'mno': ['xyz', 'abc'], + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_of_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_of_structure_shapes', + documentation: 'Serializes map of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfStructs":{"key1":{"Value":"value-1"},"key2":{"Value":"value-2"}}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStructs': { + 'key1': {'Value': 'value-1'}, + 'key2': {'Value': 'value-2'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_of_recursive_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_of_recursive_structure_shapes', + documentation: 'Serializes map of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveMap":{"key1":{"RecursiveMap":{"key2":{"RecursiveMap":{"key3":{"Boolean":false}}}}}}}', + bodyMediaType: 'application/json', + params: { + 'RecursiveMap': { + 'key1': { + 'RecursiveMap': { + 'key2': { + 'RecursiveMap': { + 'key3': {'Boolean': false}, + }, + }, + }, + }, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_structure_shapes', + documentation: 'Serializes structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"SimpleStruct":{"Value":"abc"}}', + bodyMediaType: 'application/json', + params: { + 'SimpleStruct': {'Value': 'abc'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); _i1.test( - 'parses_the_request_id_from_the_response (response)', + 'serializes_structure_members_with_locationname_traits (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_the_request_id_from_the_response', - documentation: 'Parses the request id from the response', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_structure_members_with_locationname_traits', + documentation: + 'Serializes structure members with locationName traits', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: '{}', + body: '{"StructWithJsonName":{"Value":"some-value"}}', bodyMediaType: 'application/json', - params: {}, + params: { + 'StructWithJsonName': {'Value': 'some-value'}, + }, vendorParamsShape: null, vendorParams: {}, headers: { - 'X-Amzn-Requestid': 'amazon-uniq-request-id', 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2611,6 +1202,999 @@ void main() { ); }, ); + _i1.test('serializes_empty_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_empty_structure_shapes', + documentation: 'Serializes empty structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"SimpleStruct":{}}', + bodyMediaType: 'application/json', + params: {'SimpleStruct': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_structure_which_have_no_members (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_structure_which_have_no_members', + documentation: 'Serializes structure which have no members', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"EmptyStruct":{}}', + bodyMediaType: 'application/json', + params: {'EmptyStruct': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_recursive_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_recursive_structure_shapes', + documentation: 'Serializes recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"String":"top-value","Boolean":false,"RecursiveStruct":{"String":"nested-value","Boolean":true,"RecursiveList":[{"String":"string-only"},{"RecursiveStruct":{"MapOfStrings":{"color":"red","size":"large"}}}]}}', + bodyMediaType: 'application/json', + params: { + 'String': 'top-value', + 'Boolean': false, + 'RecursiveStruct': { + 'String': 'nested-value', + 'Boolean': true, + 'RecursiveList': [ + {'String': 'string-only'}, + { + 'RecursiveStruct': { + 'MapOfStrings': {'color': 'red', 'size': 'large'}, + }, + }, + ], + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_operations_with_empty_json_bodies (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_operations_with_empty_json_bodies', + documentation: 'Parses operations with empty JSON bodies', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_string_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_string_shapes', + documentation: 'Parses string shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"String":"string-value"}', + bodyMediaType: 'application/json', + params: {'String': 'string-value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_integer_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_integer_shapes', + documentation: 'Parses integer shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Integer":1234}', + bodyMediaType: 'application/json', + params: {'Integer': 1234}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_long_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_long_shapes', + documentation: 'Parses long shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Long":1234567890123456789}', + bodyMediaType: 'application/json', + params: {'Long': '1234567890123456789'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }, testOn: 'vm'); + _i1.test('parses_float_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_float_shapes', + documentation: 'Parses float shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Float":1234.5}', + bodyMediaType: 'application/json', + params: {'Float': 1234.5}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_double_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_double_shapes', + documentation: 'Parses double shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Double":123456789.12345679}', + bodyMediaType: 'application/json', + params: {'Double': 123456789.12345679}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_boolean_shapes_true (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_boolean_shapes_true', + documentation: 'Parses boolean shapes (true)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":true}', + bodyMediaType: 'application/json', + params: {'Boolean': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_boolean_false (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_boolean_false', + documentation: 'Parses boolean (false)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":false}', + bodyMediaType: 'application/json', + params: {'Boolean': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_blob_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_blob_shapes', + documentation: 'Parses blob shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Blob":"YmluYXJ5LXZhbHVl"}', + bodyMediaType: 'application/json', + params: {'Blob': 'binary-value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_timestamp_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_timestamp_shapes', + documentation: 'Parses timestamp shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Timestamp":946845296}', + bodyMediaType: 'application/json', + params: {'Timestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_iso8601_timestamps (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_iso8601_timestamps', + documentation: 'Parses iso8601 timestamps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', + bodyMediaType: 'application/json', + params: {'Iso8601Timestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_httpdate_timestamps (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_httpdate_timestamps', + documentation: 'Parses httpdate timestamps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', + bodyMediaType: 'application/json', + params: {'HttpdateTimestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_shapes', + documentation: 'Parses list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStrings":["abc","mno","xyz"]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStrings': ['abc', 'mno', 'xyz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_map_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_map_shapes', + documentation: 'Parses list of map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfMapsOfStrings":[{"size":"large"},{"color":"red"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfMapsOfStrings': [ + {'size': 'large'}, + {'color': 'red'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_list_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_list_shapes', + documentation: 'Parses list of list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfLists":[["abc","mno","xyz"],["hjk","qrs","tuv"]]}', + bodyMediaType: 'application/json', + params: { + 'ListOfLists': [ + ['abc', 'mno', 'xyz'], + ['hjk', 'qrs', 'tuv'], + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_structure_shapes', + documentation: 'Parses list of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStructs":[{"Value":"value-1"},{"Value":"value-2"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStructs': [ + {'Value': 'value-1'}, + {'Value': 'value-2'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_recursive_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_recursive_structure_shapes', + documentation: 'Parses list of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"String":"value"}]}]}]}', + bodyMediaType: 'application/json', + params: { + 'RecursiveList': [ + { + 'RecursiveList': [ + { + 'RecursiveList': [ + {'String': 'value'}, + ], + }, + ], + }, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_shapes', + documentation: 'Parses map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"MapOfStrings":{"size":"large","color":"red"}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStrings': {'size': 'large', 'color': 'red'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_list_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_list_shapes', + documentation: 'Parses map of list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfListsOfStrings":{"sizes":["large","small"],"colors":["red","green"]}}', + bodyMediaType: 'application/json', + params: { + 'MapOfListsOfStrings': { + 'sizes': ['large', 'small'], + 'colors': ['red', 'green'], + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_map_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_map_shapes', + documentation: 'Parses map of map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfMaps":{"sizes":{"large":"L","medium":"M"},"colors":{"red":"R","blue":"B"}}}', + bodyMediaType: 'application/json', + params: { + 'MapOfMaps': { + 'sizes': {'large': 'L', 'medium': 'M'}, + 'colors': {'red': 'R', 'blue': 'B'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_structure_shapes', + documentation: 'Parses map of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfStructs":{"size":{"Value":"small"},"color":{"Value":"red"}}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStructs': { + 'size': {'Value': 'small'}, + 'color': {'Value': 'red'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_recursive_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_recursive_structure_shapes', + documentation: 'Parses map of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveMap":{"key-1":{"RecursiveMap":{"key-2":{"RecursiveMap":{"key-3":{"String":"value"}}}}}}}', + bodyMediaType: 'application/json', + params: { + 'RecursiveMap': { + 'key-1': { + 'RecursiveMap': { + 'key-2': { + 'RecursiveMap': { + 'key-3': {'String': 'value'}, + }, + }, + }, + }, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_the_request_id_from_the_response (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_the_request_id_from_the_response', + documentation: 'Parses the request id from the response', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Requestid': 'amazon-uniq-request-id', + 'Content-Type': 'application/x-amz-json-1.1', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); } class KitchenSinkAwsJson11Serializer @@ -2622,11 +2206,8 @@ class KitchenSinkAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override KitchenSink deserialize( @@ -2645,202 +2226,218 @@ class KitchenSinkAwsJson11Serializer } switch (key) { case 'Blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.Uint8List), - ) as _i5.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Uint8List), + ) + as _i5.Uint8List); case 'Boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'EmptyStruct': - result.emptyStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(EmptyStruct), - ) as EmptyStruct)); + result.emptyStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EmptyStruct), + ) + as EmptyStruct), + ); case 'Float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'HttpdateTimestamp': - result.httpdateTimestamp = - _i4.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpdateTimestamp = _i4.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'Integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Iso8601Timestamp': - result.iso8601Timestamp = - _i4.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.iso8601Timestamp = _i4.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'JsonValue': - result.jsonValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i6.JsonObject), - ) as _i6.JsonObject); + result.jsonValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.JsonObject), + ) + as _i6.JsonObject); case 'ListOfLists': - result.listOfLists.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [ - FullType( - _i7.BuiltList, - [FullType(String)], + result.listOfLists.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(_i7.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i7.BuiltList<_i7.BuiltList>)); + as _i7.BuiltList<_i7.BuiltList>), + ); case 'ListOfMapsOfStrings': - result.listOfMapsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [ - FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(String), - ], + result.listOfMapsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), ) - ], - ), - ) as _i7.BuiltList<_i7.BuiltMap>)); + as _i7.BuiltList<_i7.BuiltMap>), + ); case 'ListOfStrings': - result.listOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(String)], - ), - ) as _i7.BuiltList)); + result.listOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(String), + ]), + ) + as _i7.BuiltList), + ); case 'ListOfStructs': - result.listOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(SimpleStruct)], - ), - ) as _i7.BuiltList)); + result.listOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(SimpleStruct), + ]), + ) + as _i7.BuiltList), + ); case 'Long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i8.Int64), - ) as _i8.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i8.Int64), + ) + as _i8.Int64); case 'MapOfListsOfStrings': - result.mapOfListsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i7.BuiltListMultimap)); - case 'MapOfMaps': - result.mapOfMaps.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType( - _i7.BuiltMap, - [ + result.mapOfListsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltListMultimap, [ FullType(String), FullType(String), - ], - ), - ], - ), - ) as _i7.BuiltMap>)); + ]), + ) + as _i7.BuiltListMultimap), + ); + case 'MapOfMaps': + result.mapOfMaps.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), + ) + as _i7.BuiltMap>), + ); case 'MapOfStrings': - result.mapOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i7.BuiltMap)); + result.mapOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i7.BuiltMap), + ); case 'MapOfStructs': - result.mapOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(SimpleStruct), - ], - ), - ) as _i7.BuiltMap)); + result.mapOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(SimpleStruct), + ]), + ) + as _i7.BuiltMap), + ); case 'RecursiveList': - result.recursiveList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(KitchenSink)], - ), - ) as _i7.BuiltList)); + result.recursiveList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(KitchenSink), + ]), + ) + as _i7.BuiltList), + ); case 'RecursiveMap': - result.recursiveMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(KitchenSink), - ], - ), - ) as _i7.BuiltMap)); + result.recursiveMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(KitchenSink), + ]), + ) + as _i7.BuiltMap), + ); case 'RecursiveStruct': - result.recursiveStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.recursiveStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'SimpleStruct': - result.simpleStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(SimpleStruct), - ) as SimpleStruct)); + result.simpleStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(SimpleStruct), + ) + as SimpleStruct), + ); case 'String': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StructWithJsonName': - result.structWithJsonName.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructWithJsonName), - ) as StructWithJsonName)); + result.structWithJsonName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructWithJsonName), + ) + as StructWithJsonName), + ); case 'Timestamp': result.timestamp = _i4.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'UnixTimestamp': - result.unixTimestamp = - _i4.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.unixTimestamp = _i4.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } @@ -2866,11 +2463,8 @@ class EmptyStructAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EmptyStruct deserialize( @@ -2900,11 +2494,8 @@ class SimpleStructAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleStruct deserialize( @@ -2923,10 +2514,12 @@ class SimpleStructAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -2952,11 +2545,8 @@ class StructWithJsonNameAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override StructWithJsonName deserialize( @@ -2975,10 +2565,12 @@ class StructWithJsonNameAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -3004,11 +2596,8 @@ class ErrorWithMembersAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithMembers deserialize( @@ -3027,49 +2616,62 @@ class ErrorWithMembersAwsJson11Serializer } switch (key) { case 'Code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ComplexData': - result.complexData.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.complexData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'IntegerField': - result.integerField = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerField = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ListField': - result.listField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(String)], - ), - ) as _i7.BuiltList)); + result.listField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(String), + ]), + ) + as _i7.BuiltList), + ); case 'MapField': - result.mapField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i7.BuiltMap)); + result.mapField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i7.BuiltMap), + ); case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StringField': - result.stringField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -3095,11 +2697,8 @@ class ErrorWithoutMembersAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithoutMembers deserialize( diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/null_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/null_operation_test.dart index 47e04637cf..78d97af669 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/null_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/null_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.null_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,286 +14,229 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11StructuresDontSerializeNullValues (request)', - () async { - await _i2.httpRequestTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11StructuresDontSerializeNullValues (request)', () async { + await _i2.httpRequestTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11StructuresDontSerializeNullValues', - documentation: 'Null structure values are dropped', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'string': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.NullOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11StructuresDontSerializeNullValues', + documentation: 'Null structure values are dropped', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'string': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.NullOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11MapsSerializeNullValues (request)', () async { + await _i2.httpRequestTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11MapsSerializeNullValues (request)', - () async { - await _i2.httpRequestTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11MapsSerializeNullValues', + documentation: 'Serializes null values in maps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringMap': {'foo': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.NullOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11ListsSerializeNull (request)', () async { + await _i2.httpRequestTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11MapsSerializeNullValues', - documentation: 'Serializes null values in maps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringMap': {'foo': null} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.NullOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11ListsSerializeNull', + documentation: 'Serializes null values in lists', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringList": [\n null\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.NullOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11StructuresDontDeserializeNullValues (response)', () async { + await _i2.httpResponseTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11ListsSerializeNull (request)', - () async { - await _i2.httpRequestTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11StructuresDontDeserializeNullValues', + documentation: 'Null structure values are dropped', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "string": null\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11MapsDeserializeNullValues (response)', () async { + await _i2.httpResponseTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11ListsSerializeNull', - documentation: 'Serializes null values in lists', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringList": [\n null\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [null] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.NullOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11MapsDeserializeNullValues', + documentation: 'Deserializes null values in maps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringMap': {'foo': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11ListsDeserializeNull (response)', () async { + await _i2.httpResponseTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11StructuresDontDeserializeNullValues (response)', - () async { - await _i2.httpResponseTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11StructuresDontDeserializeNullValues', - documentation: 'Null structure values are dropped', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "string": null\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - NullOperationInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11MapsDeserializeNullValues (response)', - () async { - await _i2.httpResponseTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11MapsDeserializeNullValues', - documentation: 'Deserializes null values in maps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringMap': {'foo': null} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - NullOperationInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11ListsDeserializeNull (response)', - () async { - await _i2.httpResponseTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11ListsDeserializeNull', - documentation: 'Deserializes null values in lists', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringList": [\n null\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [null] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - NullOperationInputOutputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11ListsDeserializeNull', + documentation: 'Deserializes null values in lists', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringList": [\n null\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); } class NullOperationInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const NullOperationInputOutputAwsJson11Serializer() - : super('NullOperationInputOutput'); + : super('NullOperationInputOutput'); @override Iterable get types => const [NullOperationInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NullOperationInputOutput deserialize( @@ -312,29 +255,33 @@ class NullOperationInputOutputAwsJson11Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType.nullable(String)], - ), - ) as _i5.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i5.BuiltList), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i5.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i5.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart index cd6a9c527d..101ce55ca9 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.operation_with_optional_input_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,119 +14,101 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'can_call_operation_with_no_input_or_output (request)', - () async { - await _i2.httpRequestTest( - operation: OperationWithOptionalInputOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('can_call_operation_with_no_input_or_output (request)', () async { + await _i2.httpRequestTest( + operation: OperationWithOptionalInputOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'can_call_operation_with_no_input_or_output', - documentation: 'Can call operations with no input or output', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'can_call_operation_with_no_input_or_output', + documentation: 'Can call operations with no input or output', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OperationWithOptionalInputOutputInputAwsJson11Serializer(), + ], + ); + }); + _i1.test('can_call_operation_with_optional_input (request)', () async { + await _i2.httpRequestTest( + operation: OperationWithOptionalInputOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - OperationWithOptionalInputOutputInputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'can_call_operation_with_optional_input (request)', - () async { - await _i2.httpRequestTest( - operation: OperationWithOptionalInputOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'can_call_operation_with_optional_input', - documentation: 'Can invoke operations with optional input', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Value":"Hi"}', - bodyMediaType: 'application/json', - params: {'Value': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OperationWithOptionalInputOutputInputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'can_call_operation_with_optional_input', + documentation: 'Can invoke operations with optional input', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Value":"Hi"}', + bodyMediaType: 'application/json', + params: {'Value': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OperationWithOptionalInputOutputInputAwsJson11Serializer(), + ], + ); + }); } -class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i4 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputInputAwsJson11Serializer + extends + _i4.StructuredSmithySerializer { const OperationWithOptionalInputOutputInputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputInput'); + : super('OperationWithOptionalInputOutputInput'); @override Iterable get types => const [OperationWithOptionalInputOutputInput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputInput deserialize( @@ -145,10 +127,12 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i4 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -165,21 +149,19 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i4 } } -class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i4 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputOutputAwsJson11Serializer + extends + _i4.StructuredSmithySerializer { const OperationWithOptionalInputOutputOutputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputOutput'); + : super('OperationWithOptionalInputOutputOutput'); @override Iterable get types => const [OperationWithOptionalInputOutputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputOutput deserialize( @@ -198,10 +180,12 @@ class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i4 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart index fa3a04449a..41974d34a2 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.put_and_get_inline_documents_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,114 +14,96 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'PutAndGetInlineDocumentsInput (request)', - () async { - await _i2.httpRequestTest( - operation: PutAndGetInlineDocumentsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('PutAndGetInlineDocumentsInput (request)', () async { + await _i2.httpRequestTest( + operation: PutAndGetInlineDocumentsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'PutAndGetInlineDocumentsInput', - documentation: 'Serializes inline documents in a JSON request.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "inlineDocument": {"foo": "bar"}\n}', - bodyMediaType: 'application/json', - params: { - 'inlineDocument': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.PutAndGetInlineDocuments', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PutAndGetInlineDocumentsInput', + documentation: 'Serializes inline documents in a JSON request.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "inlineDocument": {"foo": "bar"}\n}', + bodyMediaType: 'application/json', + params: { + 'inlineDocument': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.PutAndGetInlineDocuments', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutAndGetInlineDocumentsInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('PutAndGetInlineDocumentsInput (response)', () async { + await _i2.httpResponseTest( + operation: PutAndGetInlineDocumentsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'PutAndGetInlineDocumentsInput (response)', - () async { - await _i2.httpResponseTest( - operation: PutAndGetInlineDocumentsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PutAndGetInlineDocumentsInput', - documentation: 'Serializes inline documents in a JSON response.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "inlineDocument": {"foo": "bar"}\n}', - bodyMediaType: 'application/json', - params: { - 'inlineDocument': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PutAndGetInlineDocumentsInput', + documentation: 'Serializes inline documents in a JSON response.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "inlineDocument": {"foo": "bar"}\n}', + bodyMediaType: 'application/json', + params: { + 'inlineDocument': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PutAndGetInlineDocumentsInputOutputAwsJson11Serializer(), + ], + ); + }); } -class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i4 - .StructuredSmithySerializer { +class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer + extends + _i4.StructuredSmithySerializer { const PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - : super('PutAndGetInlineDocumentsInputOutput'); + : super('PutAndGetInlineDocumentsInputOutput'); @override Iterable get types => const [PutAndGetInlineDocumentsInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutAndGetInlineDocumentsInputOutput deserialize( @@ -140,10 +122,12 @@ class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i4 } switch (key) { case 'inlineDocument': - result.inlineDocument = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.JsonObject), - ) as _i5.JsonObject); + result.inlineDocument = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.JsonObject), + ) + as _i5.JsonObject); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart index ee9c1e95a1..abe44d48ba 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,117 +13,123 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_awsJson1_1 (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_awsJson1_1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', + _i1.test( + 'SDKAppliedContentEncoding_awsJson1_1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson11Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1 (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_1 protocol.\n', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_awsJson1_1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i4.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_1', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson11Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputAwsJson11Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_1 protocol.\n', + protocol: _i4.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_1', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputAwsJson11Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson11Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutWithContentEncodingInput deserialize( @@ -142,15 +148,19 @@ class PutWithContentEncodingInputAwsJson11Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart index cd170bf467..55984e43bf 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.json_protocol.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,306 +13,237 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11SupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11SupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsNaNFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsNegativeInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsNaNFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsNegativeInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputAwsJson11Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -331,15 +262,19 @@ class SimpleScalarPropertiesInputOutputAwsJson11Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/awsJson1_1/test/machine_learning/predict_operation_test.dart b/packages/smithy/goldens/lib/awsJson1_1/test/machine_learning/predict_operation_test.dart index 9f366d1f7f..38c7cc2e78 100644 --- a/packages/smithy/goldens/lib/awsJson1_1/test/machine_learning/predict_operation_test.dart +++ b/packages/smithy/goldens/lib/awsJson1_1/test/machine_learning/predict_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v1.machine_learning.test.predict_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,52 +22,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('MachinelearningPredictEndpoint (request)', () async { - await _i2.httpRequestTest( - operation: PredictOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'MachinelearningPredictEndpoint', - documentation: - 'MachineLearning\'s api makes use of generated endpoints that the\ncustomer is then expected to use for the Predict operation. Having\nto alter the endpoint for a specific operation would be cumbersome,\nso an AWS client should be able to do it for them.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', + _i1.test( + 'MachinelearningPredictEndpoint (request)', + () async { + await _i2.httpRequestTest( + operation: PredictOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'MachinelearningPredictEndpoint', + documentation: + 'MachineLearning\'s api makes use of generated endpoints that the\ncustomer is then expected to use for the Predict operation. Having\nto alter the endpoint for a specific operation would be cumbersome,\nso an AWS client should be able to do it for them.', + protocol: _i4.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_1', + ), + authScheme: null, + body: + '{"MLModelId": "foo", "Record": {}, "PredictEndpoint": "https://custom.example.com/"}', + bodyMediaType: 'application/json', + params: { + 'MLModelId': 'foo', + 'Record': {}, + 'PredictEndpoint': 'https://custom.example.com/', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'custom.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: - '{"MLModelId": "foo", "Record": {}, "PredictEndpoint": "https://custom.example.com/"}', - bodyMediaType: 'application/json', - params: { - 'MLModelId': 'foo', - 'Record': {}, - 'PredictEndpoint': 'https://custom.example.com/', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'custom.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PredictInputAwsJson11Serializer()], - ); - }, skip: 'ML Predict is not supported yet'); + inputSerializers: const [PredictInputAwsJson11Serializer()], + ); + }, + skip: 'ML Predict is not supported yet', + ); } class PredictInputAwsJson11Serializer @@ -79,11 +84,8 @@ class PredictInputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictInput deserialize( @@ -102,26 +104,30 @@ class PredictInputAwsJson11Serializer } switch (key) { case 'MLModelId': - result.mlModelId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.mlModelId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Record': - result.record.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i5.BuiltMap)); + result.record.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i5.BuiltMap), + ); case 'PredictEndpoint': - result.predictEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,11 +153,8 @@ class PredictOutputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictOutput deserialize( @@ -170,10 +173,13 @@ class PredictOutputAwsJson11Serializer } switch (key) { case 'Prediction': - result.prediction.replace((serializers.deserialize( - value, - specifiedType: const FullType(Prediction), - ) as Prediction)); + result.prediction.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Prediction), + ) + as Prediction), + ); } } @@ -199,11 +205,8 @@ class PredictionAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override Prediction deserialize( @@ -222,37 +225,41 @@ class PredictionAwsJson11Serializer } switch (key) { case 'predictedLabel': - result.predictedLabel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictedLabel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'predictedValue': - result.predictedValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.predictedValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'predictedScores': - result.predictedScores.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i5.BuiltMap)); + result.predictedScores.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i5.BuiltMap), + ); case 'details': - result.details.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(DetailsAttributes), - FullType(String), - ], - ), - ) as _i5.BuiltMap)); + result.details.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(DetailsAttributes), + FullType(String), + ]), + ) + as _i5.BuiltMap), + ); } } @@ -272,18 +279,15 @@ class PredictionAwsJson11Serializer class InternalServerExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const InternalServerExceptionAwsJson11Serializer() - : super('InternalServerException'); + : super('InternalServerException'); @override Iterable get types => const [InternalServerException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InternalServerException deserialize( @@ -302,15 +306,19 @@ class InternalServerExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -330,18 +338,15 @@ class InternalServerExceptionAwsJson11Serializer class InvalidInputExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const InvalidInputExceptionAwsJson11Serializer() - : super('InvalidInputException'); + : super('InvalidInputException'); @override Iterable get types => const [InvalidInputException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidInputException deserialize( @@ -360,15 +365,19 @@ class InvalidInputExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -388,18 +397,15 @@ class InvalidInputExceptionAwsJson11Serializer class LimitExceededExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const LimitExceededExceptionAwsJson11Serializer() - : super('LimitExceededException'); + : super('LimitExceededException'); @override Iterable get types => const [LimitExceededException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override LimitExceededException deserialize( @@ -418,15 +424,19 @@ class LimitExceededExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -446,18 +456,15 @@ class LimitExceededExceptionAwsJson11Serializer class PredictorNotMountedExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const PredictorNotMountedExceptionAwsJson11Serializer() - : super('PredictorNotMountedException'); + : super('PredictorNotMountedException'); @override Iterable get types => const [PredictorNotMountedException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictorNotMountedException deserialize( @@ -476,10 +483,12 @@ class PredictorNotMountedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -499,18 +508,15 @@ class PredictorNotMountedExceptionAwsJson11Serializer class ResourceNotFoundExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const ResourceNotFoundExceptionAwsJson11Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ResourceNotFoundException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceNotFoundException deserialize( @@ -529,15 +535,19 @@ class ResourceNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/query_protocol.dart b/packages/smithy/goldens/lib/awsQuery/lib/query_protocol.dart index 19087de876..77696957a8 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/query_protocol.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/query_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A query service that sends query requests and XML responses. library aws_query_v1.query_protocol; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart index 2e051e00c2..8cdd95aa41 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Query Protocol'; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/serializers.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/serializers.dart index d08837f154..b43c81ff17 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -114,95 +114,39 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(GreetingStruct)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(GreetingStruct)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(GreetingStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.dart index a20dd7983c..e04d9e4b6a 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsQuerySerializer() + AwsConfigAwsQuerySerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsQuerySerializer const AwsConfigAwsQuerySerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override AwsConfig deserialize( @@ -102,15 +82,20 @@ class AwsConfigAwsQuerySerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -127,24 +112,28 @@ class AwsConfigAwsQuerySerializer const _i2.XmlElementName( 'AwsConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.dart index 464ee8b3e6..65bc506490 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsQuerySerializer() + ClientConfigAwsQuerySerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsQuerySerializer const ClientConfigAwsQuerySerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ClientConfig deserialize( @@ -147,40 +121,56 @@ class ClientConfigAwsQuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -197,7 +187,7 @@ class ClientConfigAwsQuerySerializer const _i2.XmlElementName( 'ClientConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -206,63 +196,71 @@ class ClientConfigAwsQuerySerializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.dart index d60d09c3d8..ca18101628 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorAwsQuerySerializer() + ComplexErrorAwsQuerySerializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.query', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorAwsQuerySerializer const ComplexErrorAwsQuerySerializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexError deserialize( @@ -143,15 +122,20 @@ class ComplexErrorAwsQuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -168,24 +152,28 @@ class ComplexErrorAwsQuerySerializer const _i2.XmlElementName( 'ComplexErrorResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexError(:topLevel, :nested) = object; if (topLevel != null) { result$ ..add(const _i2.XmlElementName('TopLevel')) - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart index 9117f07abc..f0bc887cef 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataAwsQuerySerializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataAwsQuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexNestedErrorData deserialize( @@ -85,10 +79,12 @@ class ComplexNestedErrorDataAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -105,16 +101,15 @@ class ComplexNestedErrorDataAwsQuerySerializer const _i2.XmlElementName( 'ComplexNestedErrorDataResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexNestedErrorData(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.dart index 3d0da5088e..0b4a58f631 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.custom_code_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,8 +19,9 @@ abstract class CustomCodeError return _$CustomCodeError._(message: message); } - factory CustomCodeError.build( - [void Function(CustomCodeErrorBuilder) updates]) = _$CustomCodeError; + factory CustomCodeError.build([ + void Function(CustomCodeErrorBuilder) updates, + ]) = _$CustomCodeError; const CustomCodeError._(); @@ -28,23 +29,22 @@ abstract class CustomCodeError factory CustomCodeError.fromResponse( CustomCodeError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - CustomCodeErrorAwsQuerySerializer() + CustomCodeErrorAwsQuerySerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'CustomCodeError', - ); + namespace: 'aws.protocoltests.query', + shape: 'CustomCodeError', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -64,10 +64,7 @@ abstract class CustomCodeError @override String toString() { final helper = newBuiltValueToStringHelper('CustomCodeError') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -77,18 +74,12 @@ class CustomCodeErrorAwsQuerySerializer const CustomCodeErrorAwsQuerySerializer() : super('CustomCodeError'); @override - Iterable get types => const [ - CustomCodeError, - _$CustomCodeError, - ]; + Iterable get types => const [CustomCodeError, _$CustomCodeError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override CustomCodeError deserialize( @@ -123,10 +114,12 @@ class CustomCodeErrorAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -143,16 +136,15 @@ class CustomCodeErrorAwsQuerySerializer const _i2.XmlElementName( 'CustomCodeErrorResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final CustomCodeError(:message) = object; if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart index b6afa70078..495c16baeb 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart @@ -18,7 +18,7 @@ class _$CustomCodeError extends CustomCodeError { (new CustomCodeErrorBuilder()..update(updates))._build(); _$CustomCodeError._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override CustomCodeError rebuild(void Function(CustomCodeErrorBuilder) updates) => @@ -87,9 +87,13 @@ class CustomCodeErrorBuilder CustomCodeError build() => _build(); _$CustomCodeError _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CustomCodeError._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart index 20cb2bdf7e..d7a94b3b21 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputAwsQuerySerializer() + DatetimeOffsetsOutputAwsQuerySerializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsQuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -113,16 +106,15 @@ class DatetimeOffsetsOutputAwsQuerySerializer const _i2.XmlElementName( 'DatetimeOffsetsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final DatetimeOffsetsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart index 3e30ddb1e0..79886d1474 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputAwsQuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputInputAwsQuerySerializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -89,7 +87,7 @@ class EmptyInputAndEmptyOutputInputAwsQuerySerializer const _i1.XmlElementName( 'EmptyInputAndEmptyOutputInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart index 6f60a4750e..cab6834f69 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputAwsQuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputOutputAwsQuerySerializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -86,7 +84,7 @@ class EmptyInputAndEmptyOutputOutputAwsQuerySerializer const _i2.XmlElementName( 'EmptyInputAndEmptyOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.dart index e02d6cfdc9..90046eb268 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsQuerySerializer() + EnvironmentConfigAwsQuerySerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsQuerySerializer const EnvironmentConfigAwsQuerySerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EnvironmentConfig deserialize( @@ -136,35 +114,47 @@ class EnvironmentConfigAwsQuerySerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -181,7 +171,7 @@ class EnvironmentConfigAwsQuerySerializer const _i2.XmlElementName( 'EnvironmentConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -189,55 +179,67 @@ class EnvironmentConfigAwsQuerySerializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.dart index c3167db988..f848d028cc 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsQuerySerializer() + FileConfigSettingsAwsQuerySerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsQuerySerializer const FileConfigSettingsAwsQuerySerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FileConfigSettings deserialize( @@ -148,40 +122,55 @@ class FileConfigSettingsAwsQuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -198,7 +187,7 @@ class FileConfigSettingsAwsQuerySerializer const _i2.XmlElementName( 'FileConfigSettingsResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -207,63 +196,71 @@ class FileConfigSettingsAwsQuerySerializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart index a9c5a43c6f..7c5a0d729d 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.flattened_xml_map_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,12 +17,13 @@ abstract class FlattenedXmlMapOutput implements Built { factory FlattenedXmlMapOutput({Map? myMap}) { return _$FlattenedXmlMapOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapOutput.build( - [void Function(FlattenedXmlMapOutputBuilder) updates]) = - _$FlattenedXmlMapOutput; + factory FlattenedXmlMapOutput.build([ + void Function(FlattenedXmlMapOutputBuilder) updates, + ]) = _$FlattenedXmlMapOutput; const FlattenedXmlMapOutput._(); @@ -30,11 +31,10 @@ abstract class FlattenedXmlMapOutput factory FlattenedXmlMapOutput.fromResponse( FlattenedXmlMapOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - FlattenedXmlMapOutputAwsQuerySerializer() + FlattenedXmlMapOutputAwsQuerySerializer(), ]; _i2.BuiltMap? get myMap; @@ -44,10 +44,7 @@ abstract class FlattenedXmlMapOutput @override String toString() { final helper = newBuiltValueToStringHelper('FlattenedXmlMapOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class FlattenedXmlMapOutput class FlattenedXmlMapOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapOutputAwsQuerySerializer() - : super('FlattenedXmlMapOutput'); + : super('FlattenedXmlMapOutput'); @override Iterable get types => const [ - FlattenedXmlMapOutput, - _$FlattenedXmlMapOutput, - ]; + FlattenedXmlMapOutput, + _$FlattenedXmlMapOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapOutput deserialize( @@ -96,23 +90,22 @@ class FlattenedXmlMapOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - flattenedKey: 'myMap', - indexer: _i3.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + flattenedKey: 'myMap', + indexer: _i3.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -129,24 +122,23 @@ class FlattenedXmlMapOutputAwsQuerySerializer const _i3.XmlElementName( 'FlattenedXmlMapOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final FlattenedXmlMapOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - flattenedKey: 'myMap', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + flattenedKey: 'myMap', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart index da1ea6538f..05f35ac71f 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart @@ -10,16 +10,16 @@ class _$FlattenedXmlMapOutput extends FlattenedXmlMapOutput { @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapOutput( - [void Function(FlattenedXmlMapOutputBuilder)? updates]) => - (new FlattenedXmlMapOutputBuilder()..update(updates))._build(); + factory _$FlattenedXmlMapOutput([ + void Function(FlattenedXmlMapOutputBuilder)? updates, + ]) => (new FlattenedXmlMapOutputBuilder()..update(updates))._build(); _$FlattenedXmlMapOutput._({this.myMap}) : super._(); @override FlattenedXmlMapOutput rebuild( - void Function(FlattenedXmlMapOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapOutputBuilder toBuilder() => @@ -85,7 +85,10 @@ class FlattenedXmlMapOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapOutput', _$failedField, e.toString()); + r'FlattenedXmlMapOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart index 493eb4b657..8583c0642d 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.flattened_xml_map_with_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,19 +12,21 @@ import 'package:smithy/smithy.dart' as _i3; part 'flattened_xml_map_with_xml_name_output.g.dart'; abstract class FlattenedXmlMapWithXmlNameOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutputBuilder + > { factory FlattenedXmlMapWithXmlNameOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNameOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNameOutput.build( - [void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates]) = - _$FlattenedXmlMapWithXmlNameOutput; + factory FlattenedXmlMapWithXmlNameOutput.build([ + void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNameOutput; const FlattenedXmlMapWithXmlNameOutput._(); @@ -32,11 +34,10 @@ abstract class FlattenedXmlMapWithXmlNameOutput factory FlattenedXmlMapWithXmlNameOutput.fromResponse( FlattenedXmlMapWithXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer()]; + serializers = [FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer()]; _i2.BuiltMap? get myMap; @override @@ -44,12 +45,9 @@ abstract class FlattenedXmlMapWithXmlNameOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNameOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNameOutput', + )..add('myMap', myMap); return helper.toString(); } } @@ -57,21 +55,18 @@ abstract class FlattenedXmlMapWithXmlNameOutput class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNameOutput'); + : super('FlattenedXmlMapWithXmlNameOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNameOutput, - _$FlattenedXmlMapWithXmlNameOutput, - ]; + FlattenedXmlMapWithXmlNameOutput, + _$FlattenedXmlMapWithXmlNameOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNameOutput deserialize( @@ -98,25 +93,24 @@ class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer } switch (key) { case 'KVP': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -133,26 +127,25 @@ class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer const _i3.XmlElementName( 'FlattenedXmlMapWithXmlNameOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final FlattenedXmlMapWithXmlNameOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart index a81e6279af..f409c1583f 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart @@ -11,16 +11,17 @@ class _$FlattenedXmlMapWithXmlNameOutput @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNameOutput( - [void Function(FlattenedXmlMapWithXmlNameOutputBuilder)? updates]) => + factory _$FlattenedXmlMapWithXmlNameOutput([ + void Function(FlattenedXmlMapWithXmlNameOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNameOutputBuilder()..update(updates))._build(); _$FlattenedXmlMapWithXmlNameOutput._({this.myMap}) : super._(); @override FlattenedXmlMapWithXmlNameOutput rebuild( - void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNameOutputBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$FlattenedXmlMapWithXmlNameOutput class FlattenedXmlMapWithXmlNameOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutputBuilder + > { _$FlattenedXmlMapWithXmlNameOutput? _$v; _i2.MapBuilder? _myMap; @@ -80,7 +83,8 @@ class FlattenedXmlMapWithXmlNameOutputBuilder _$FlattenedXmlMapWithXmlNameOutput _build() { _$FlattenedXmlMapWithXmlNameOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNameOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -89,7 +93,10 @@ class FlattenedXmlMapWithXmlNameOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNameOutput', _$failedField, e.toString()); + r'FlattenedXmlMapWithXmlNameOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart index aa7080baa1..76333252fd 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.flattened_xml_map_with_xml_namespace_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,19 +12,21 @@ import 'package:smithy/smithy.dart' as _i3; part 'flattened_xml_map_with_xml_namespace_output.g.dart'; abstract class FlattenedXmlMapWithXmlNamespaceOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { factory FlattenedXmlMapWithXmlNamespaceOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNamespaceOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNamespaceOutput.build( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates]) = _$FlattenedXmlMapWithXmlNamespaceOutput; + factory FlattenedXmlMapWithXmlNamespaceOutput.build([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNamespaceOutput; const FlattenedXmlMapWithXmlNamespaceOutput._(); @@ -32,11 +34,10 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput factory FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( FlattenedXmlMapWithXmlNamespaceOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer()]; + serializers = [FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer()]; _i2.BuiltMap? get myMap; @override @@ -44,34 +45,29 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNamespaceOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNamespaceOutput', + )..add('myMap', myMap); return helper.toString(); } } -class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNamespaceOutput, - _$FlattenedXmlMapWithXmlNamespaceOutput, - ]; + FlattenedXmlMapWithXmlNamespaceOutput, + _$FlattenedXmlMapWithXmlNamespaceOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -98,25 +94,24 @@ class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 } switch (key) { case 'KVP': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -133,26 +128,25 @@ class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 const _i3.XmlElementName( 'FlattenedXmlMapWithXmlNamespaceOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final FlattenedXmlMapWithXmlNamespaceOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart index ca42a9f815..289564813c 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart @@ -11,9 +11,9 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNamespaceOutput( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? - updates]) => + factory _$FlattenedXmlMapWithXmlNamespaceOutput([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNamespaceOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override FlattenedXmlMapWithXmlNamespaceOutput rebuild( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNamespaceOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput class FlattenedXmlMapWithXmlNamespaceOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { _$FlattenedXmlMapWithXmlNamespaceOutput? _$v; _i2.MapBuilder? _myMap; @@ -75,7 +76,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder @override void update( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates) { + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,7 +87,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _$FlattenedXmlMapWithXmlNamespaceOutput _build() { _$FlattenedXmlMapWithXmlNamespaceOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNamespaceOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -94,9 +97,10 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNamespaceOutput', - _$failedField, - e.toString()); + r'FlattenedXmlMapWithXmlNamespaceOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/foo_enum.dart index 474314d263..f3f36eb6e7 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart index a599415c21..11be55d9cb 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputAwsQuerySerializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputAwsQuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FractionalSecondsOutput deserialize( @@ -112,16 +105,15 @@ class FractionalSecondsOutputAwsQuerySerializer const _i2.XmlElementName( 'FractionalSecondsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FractionalSecondsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_struct.dart index 41f847612f..c77a5654b0 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructAwsQuerySerializer() + GreetingStructAwsQuerySerializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructAwsQuerySerializer const GreetingStructAwsQuerySerializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -84,10 +74,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -104,16 +96,13 @@ class GreetingStructAwsQuerySerializer const _i2.XmlElementName( 'GreetingStructResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingStruct(:hi) = object; if (hi != null) { result$ ..add(const _i2.XmlElementName('hi')) - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart index 65131cc582..6151f6e2d5 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputAwsQuerySerializer()]; + serializers = [GreetingWithErrorsOutputAwsQuerySerializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsQuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -93,10 +86,12 @@ class GreetingWithErrorsOutputAwsQuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -113,16 +108,18 @@ class GreetingWithErrorsOutputAwsQuerySerializer const _i2.XmlElementName( 'GreetingWithErrorsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingWithErrorsOutput(:greeting) = object; if (greeting != null) { result$ ..add(const _i2.XmlElementName('greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.dart index 3df3a65f7c..ef056d9e16 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputAwsQuerySerializer() + HostLabelInputAwsQuerySerializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputAwsQuerySerializer const HostLabelInputAwsQuerySerializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override HostLabelInput deserialize( @@ -106,10 +93,12 @@ class HostLabelInputAwsQuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -126,15 +115,14 @@ class HostLabelInputAwsQuerySerializer const _i1.XmlElementName( 'HostLabelInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final HostLabelInput(:label) = object; result$ ..add(const _i1.XmlElementName('label')) - ..add(serializers.serialize( - label, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(label, specifiedType: const FullType(String)), + ); return result$; } } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart index c9d6b6cee9..3ef8b75458 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.ignores_wrapping_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignores_wrapping_xml_name_output.g.dart'; abstract class IgnoresWrappingXmlNameOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { factory IgnoresWrappingXmlNameOutput({String? foo}) { return _$IgnoresWrappingXmlNameOutput._(foo: foo); } - factory IgnoresWrappingXmlNameOutput.build( - [void Function(IgnoresWrappingXmlNameOutputBuilder) updates]) = - _$IgnoresWrappingXmlNameOutput; + factory IgnoresWrappingXmlNameOutput.build([ + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ]) = _$IgnoresWrappingXmlNameOutput; const IgnoresWrappingXmlNameOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoresWrappingXmlNameOutput factory IgnoresWrappingXmlNameOutput.fromResponse( IgnoresWrappingXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoresWrappingXmlNameOutputAwsQuerySerializer()]; + serializers = [IgnoresWrappingXmlNameOutputAwsQuerySerializer()]; String? get foo; @override @@ -43,10 +43,7 @@ abstract class IgnoresWrappingXmlNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('IgnoresWrappingXmlNameOutput') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -54,21 +51,18 @@ abstract class IgnoresWrappingXmlNameOutput class IgnoresWrappingXmlNameOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputAwsQuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [ - IgnoresWrappingXmlNameOutput, - _$IgnoresWrappingXmlNameOutput, - ]; + IgnoresWrappingXmlNameOutput, + _$IgnoresWrappingXmlNameOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -95,10 +89,12 @@ class IgnoresWrappingXmlNameOutputAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -115,16 +111,15 @@ class IgnoresWrappingXmlNameOutputAwsQuerySerializer const _i2.XmlElementName( 'IgnoreMeResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final IgnoresWrappingXmlNameOutput(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart index 75f7bcb29e..0a62eb4c94 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart @@ -10,16 +10,16 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { @override final String? foo; - factory _$IgnoresWrappingXmlNameOutput( - [void Function(IgnoresWrappingXmlNameOutputBuilder)? updates]) => - (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); + factory _$IgnoresWrappingXmlNameOutput([ + void Function(IgnoresWrappingXmlNameOutputBuilder)? updates, + ]) => (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); _$IgnoresWrappingXmlNameOutput._({this.foo}) : super._(); @override IgnoresWrappingXmlNameOutput rebuild( - void Function(IgnoresWrappingXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoresWrappingXmlNameOutputBuilder toBuilder() => @@ -42,8 +42,10 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { class IgnoresWrappingXmlNameOutputBuilder implements - Builder { + Builder< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { _$IgnoresWrappingXmlNameOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart index 40afca3995..4f15e58a8e 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingAwsQuerySerializer() + InvalidGreetingAwsQuerySerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.query', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingAwsQuerySerializer const InvalidGreetingAwsQuerySerializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override InvalidGreeting deserialize( @@ -126,10 +117,12 @@ class InvalidGreetingAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -146,16 +139,15 @@ class InvalidGreetingAwsQuerySerializer const _i2.XmlElementName( 'InvalidGreetingResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final InvalidGreeting(:message) = object; if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart index 41b2bfac97..e7cf68a791 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.nested_struct_with_list; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,18 @@ abstract class NestedStructWithList implements Built { factory NestedStructWithList({List? listArg}) { return _$NestedStructWithList._( - listArg: listArg == null ? null : _i2.BuiltList(listArg)); + listArg: listArg == null ? null : _i2.BuiltList(listArg), + ); } - factory NestedStructWithList.build( - [void Function(NestedStructWithListBuilder) updates]) = - _$NestedStructWithList; + factory NestedStructWithList.build([ + void Function(NestedStructWithListBuilder) updates, + ]) = _$NestedStructWithList; const NestedStructWithList._(); static const List<_i3.SmithySerializer> serializers = [ - NestedStructWithListAwsQuerySerializer() + NestedStructWithListAwsQuerySerializer(), ]; _i2.BuiltList? get listArg; @@ -36,10 +37,7 @@ abstract class NestedStructWithList @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructWithList') - ..add( - 'listArg', - listArg, - ); + ..add('listArg', listArg); return helper.toString(); } } @@ -47,21 +45,18 @@ abstract class NestedStructWithList class NestedStructWithListAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListAwsQuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [ - NestedStructWithList, - _$NestedStructWithList, - ]; + NestedStructWithList, + _$NestedStructWithList, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithList deserialize( @@ -88,16 +83,18 @@ class NestedStructWithListAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.listArg.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -114,22 +111,21 @@ class NestedStructWithListAwsQuerySerializer const _i3.XmlElementName( 'NestedStructWithListResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructWithList(:listArg) = object; if (listArg != null) { result$ ..add(const _i3.XmlElementName('ListArg')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart index 8018c2a3fb..c180ed47d2 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart @@ -10,16 +10,16 @@ class _$NestedStructWithList extends NestedStructWithList { @override final _i2.BuiltList? listArg; - factory _$NestedStructWithList( - [void Function(NestedStructWithListBuilder)? updates]) => - (new NestedStructWithListBuilder()..update(updates))._build(); + factory _$NestedStructWithList([ + void Function(NestedStructWithListBuilder)? updates, + ]) => (new NestedStructWithListBuilder()..update(updates))._build(); _$NestedStructWithList._({this.listArg}) : super._(); @override NestedStructWithList rebuild( - void Function(NestedStructWithListBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructWithListBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructWithListBuilder toBuilder() => @@ -86,7 +86,10 @@ class NestedStructWithListBuilder _listArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructWithList', _$failedField, e.toString()); + r'NestedStructWithList', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart index 47b50981bf..aeef5c7eea 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.nested_struct_with_map; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,18 @@ abstract class NestedStructWithMap implements Built { factory NestedStructWithMap({Map? mapArg}) { return _$NestedStructWithMap._( - mapArg: mapArg == null ? null : _i2.BuiltMap(mapArg)); + mapArg: mapArg == null ? null : _i2.BuiltMap(mapArg), + ); } - factory NestedStructWithMap.build( - [void Function(NestedStructWithMapBuilder) updates]) = - _$NestedStructWithMap; + factory NestedStructWithMap.build([ + void Function(NestedStructWithMapBuilder) updates, + ]) = _$NestedStructWithMap; const NestedStructWithMap._(); static const List<_i3.SmithySerializer> serializers = [ - NestedStructWithMapAwsQuerySerializer() + NestedStructWithMapAwsQuerySerializer(), ]; _i2.BuiltMap? get mapArg; @@ -36,10 +37,7 @@ abstract class NestedStructWithMap @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructWithMap') - ..add( - 'mapArg', - mapArg, - ); + ..add('mapArg', mapArg); return helper.toString(); } } @@ -50,17 +48,14 @@ class NestedStructWithMapAwsQuerySerializer @override Iterable get types => const [ - NestedStructWithMap, - _$NestedStructWithMap, - ]; + NestedStructWithMap, + _$NestedStructWithMap, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithMap deserialize( @@ -87,19 +82,18 @@ class NestedStructWithMapAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.mapArg.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } } @@ -116,25 +110,24 @@ class NestedStructWithMapAwsQuerySerializer const _i3.XmlElementName( 'NestedStructWithMapResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructWithMap(:mapArg) = object; if (mapArg != null) { result$ ..add(const _i3.XmlElementName('MapArg')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - mapArg, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapArg, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart index 1686ad52ce..f5ec78e7b5 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart @@ -10,16 +10,16 @@ class _$NestedStructWithMap extends NestedStructWithMap { @override final _i2.BuiltMap? mapArg; - factory _$NestedStructWithMap( - [void Function(NestedStructWithMapBuilder)? updates]) => - (new NestedStructWithMapBuilder()..update(updates))._build(); + factory _$NestedStructWithMap([ + void Function(NestedStructWithMapBuilder)? updates, + ]) => (new NestedStructWithMapBuilder()..update(updates))._build(); _$NestedStructWithMap._({this.mapArg}) : super._(); @override NestedStructWithMap rebuild( - void Function(NestedStructWithMapBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructWithMapBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructWithMapBuilder toBuilder() => @@ -85,7 +85,10 @@ class NestedStructWithMapBuilder _mapArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructWithMap', _$failedField, e.toString()); + r'NestedStructWithMap', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart index 52180b646d..9aaaaa7a00 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.nested_structures_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class NestedStructuresInput return _$NestedStructuresInput._(nested: nested); } - factory NestedStructuresInput.build( - [void Function(NestedStructuresInputBuilder) updates]) = - _$NestedStructuresInput; + factory NestedStructuresInput.build([ + void Function(NestedStructuresInputBuilder) updates, + ]) = _$NestedStructuresInput; const NestedStructuresInput._(); @@ -30,11 +30,10 @@ abstract class NestedStructuresInput NestedStructuresInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - NestedStructuresInputAwsQuerySerializer() + NestedStructuresInputAwsQuerySerializer(), ]; StructArg? get nested; @@ -47,10 +46,7 @@ abstract class NestedStructuresInput @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructuresInput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class NestedStructuresInput class NestedStructuresInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const NestedStructuresInputAwsQuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [ - NestedStructuresInput, - _$NestedStructuresInput, - ]; + NestedStructuresInput, + _$NestedStructuresInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructuresInput deserialize( @@ -99,10 +92,13 @@ class NestedStructuresInputAwsQuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -119,16 +115,18 @@ class NestedStructuresInputAwsQuerySerializer const _i1.XmlElementName( 'NestedStructuresInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructuresInput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart index 664840923e..c02a3d5a4c 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart @@ -10,16 +10,16 @@ class _$NestedStructuresInput extends NestedStructuresInput { @override final StructArg? nested; - factory _$NestedStructuresInput( - [void Function(NestedStructuresInputBuilder)? updates]) => - (new NestedStructuresInputBuilder()..update(updates))._build(); + factory _$NestedStructuresInput([ + void Function(NestedStructuresInputBuilder)? updates, + ]) => (new NestedStructuresInputBuilder()..update(updates))._build(); _$NestedStructuresInput._({this.nested}) : super._(); @override NestedStructuresInput rebuild( - void Function(NestedStructuresInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructuresInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructuresInputBuilder toBuilder() => @@ -84,7 +84,10 @@ class NestedStructuresInputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructuresInput', _$failedField, e.toString()); + r'NestedStructuresInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart index f75b6c8e73..bf23368744 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.no_input_and_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class NoInputAndOutputInput return _$NoInputAndOutputInput._(); } - factory NoInputAndOutputInput.build( - [void Function(NoInputAndOutputInputBuilder) updates]) = - _$NoInputAndOutputInput; + factory NoInputAndOutputInput.build([ + void Function(NoInputAndOutputInputBuilder) updates, + ]) = _$NoInputAndOutputInput; const NoInputAndOutputInput._(); @@ -31,11 +31,10 @@ abstract class NoInputAndOutputInput NoInputAndOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - NoInputAndOutputInputAwsQuerySerializer() + NoInputAndOutputInputAwsQuerySerializer(), ]; @override @@ -54,21 +53,18 @@ abstract class NoInputAndOutputInput class NoInputAndOutputInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const NoInputAndOutputInputAwsQuerySerializer() - : super('NoInputAndOutputInput'); + : super('NoInputAndOutputInput'); @override Iterable get types => const [ - NoInputAndOutputInput, - _$NoInputAndOutputInput, - ]; + NoInputAndOutputInput, + _$NoInputAndOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputInput deserialize( @@ -89,7 +85,7 @@ class NoInputAndOutputInputAwsQuerySerializer const _i1.XmlElementName( 'NoInputAndOutputInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart index 5bf6a7a892..0e6bac9a89 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_input.dart'; // ************************************************************************** class _$NoInputAndOutputInput extends NoInputAndOutputInput { - factory _$NoInputAndOutputInput( - [void Function(NoInputAndOutputInputBuilder)? updates]) => - (new NoInputAndOutputInputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputInput([ + void Function(NoInputAndOutputInputBuilder)? updates, + ]) => (new NoInputAndOutputInputBuilder()..update(updates))._build(); _$NoInputAndOutputInput._() : super._(); @override NoInputAndOutputInput rebuild( - void Function(NoInputAndOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart index 93e14ede44..b401a4c71b 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputAwsQuerySerializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputAwsQuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputOutput deserialize( @@ -83,7 +79,7 @@ class NoInputAndOutputOutputAwsQuerySerializer const _i2.XmlElementName( 'NoInputAndOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.dart index 35afbb2894..ab8f3b558c 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsQuerySerializer() + OperationConfigAwsQuerySerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsQuerySerializer const OperationConfigAwsQuerySerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override OperationConfig deserialize( @@ -89,10 +81,13 @@ class OperationConfigAwsQuerySerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -109,16 +104,15 @@ class OperationConfigAwsQuerySerializer const _i2.XmlElementName( 'OperationConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart index cf1d41f323..c8e59bbfa3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class PutWithContentEncodingInput _i2.AWSEquatable implements Built { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -36,11 +30,10 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputAwsQuerySerializer()]; + serializers = [PutWithContentEncodingInputAwsQuerySerializer()]; String? get encoding; String? get data; @@ -48,22 +41,14 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput getPayload() => this; @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class PutWithContentEncodingInput class PutWithContentEncodingInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputAwsQuerySerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override PutWithContentEncodingInput deserialize( @@ -112,15 +94,19 @@ class PutWithContentEncodingInputAwsQuerySerializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -137,24 +123,25 @@ class PutWithContentEncodingInputAwsQuerySerializer const _i1.XmlElementName( 'PutWithContentEncodingInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final PutWithContentEncodingInput(:encoding, :data) = object; if (encoding != null) { result$ ..add(const _i1.XmlElementName('encoding')) - ..add(serializers.serialize( - encoding, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + encoding, + specifiedType: const FullType(String), + ), + ); } if (data != null) { result$ ..add(const _i1.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart index 43d33e396f..ce25012d07 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart index a05015633f..ab8c439fa2 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -31,17 +33,17 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputAwsQuerySerializer()]; + serializers = [QueryIdempotencyTokenAutoFillInputAwsQuerySerializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -53,12 +55,9 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @@ -66,21 +65,18 @@ abstract class QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -107,10 +103,12 @@ class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -127,16 +125,15 @@ class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer const _i1.XmlElementName( 'QueryIdempotencyTokenAutoFillInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryIdempotencyTokenAutoFillInput(:token) = object; if (token != null) { result$ ..add(const _i1.XmlElementName('token')) - ..add(serializers.serialize( - token, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(token, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart index d13c11d730..d52f5f3185 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.dart index b20defaa6d..cbca071d9e 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.query_lists_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,18 +30,21 @@ abstract class QueryListsInput complexListArg == null ? null : _i3.BuiltList(complexListArg), flattenedListArg: flattenedListArg == null ? null : _i3.BuiltList(flattenedListArg), - listArgWithXmlNameMember: listArgWithXmlNameMember == null - ? null - : _i3.BuiltList(listArgWithXmlNameMember), - flattenedListArgWithXmlName: flattenedListArgWithXmlName == null - ? null - : _i3.BuiltList(flattenedListArgWithXmlName), + listArgWithXmlNameMember: + listArgWithXmlNameMember == null + ? null + : _i3.BuiltList(listArgWithXmlNameMember), + flattenedListArgWithXmlName: + flattenedListArgWithXmlName == null + ? null + : _i3.BuiltList(flattenedListArgWithXmlName), nestedWithList: nestedWithList, ); } - factory QueryListsInput.build( - [void Function(QueryListsInputBuilder) updates]) = _$QueryListsInput; + factory QueryListsInput.build([ + void Function(QueryListsInputBuilder) updates, + ]) = _$QueryListsInput; const QueryListsInput._(); @@ -49,11 +52,10 @@ abstract class QueryListsInput QueryListsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryListsInputAwsQuerySerializer() + QueryListsInputAwsQuerySerializer(), ]; _i3.BuiltList? get listArg; @@ -67,41 +69,24 @@ abstract class QueryListsInput @override List get props => [ - listArg, - complexListArg, - flattenedListArg, - listArgWithXmlNameMember, - flattenedListArgWithXmlName, - nestedWithList, - ]; + listArg, + complexListArg, + flattenedListArg, + listArgWithXmlNameMember, + flattenedListArgWithXmlName, + nestedWithList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryListsInput') - ..add( - 'listArg', - listArg, - ) - ..add( - 'complexListArg', - complexListArg, - ) - ..add( - 'flattenedListArg', - flattenedListArg, - ) - ..add( - 'listArgWithXmlNameMember', - listArgWithXmlNameMember, - ) - ..add( - 'flattenedListArgWithXmlName', - flattenedListArgWithXmlName, - ) - ..add( - 'nestedWithList', - nestedWithList, - ); + final helper = + newBuiltValueToStringHelper('QueryListsInput') + ..add('listArg', listArg) + ..add('complexListArg', complexListArg) + ..add('flattenedListArg', flattenedListArg) + ..add('listArgWithXmlNameMember', listArgWithXmlNameMember) + ..add('flattenedListArgWithXmlName', flattenedListArgWithXmlName) + ..add('nestedWithList', nestedWithList); return helper.toString(); } } @@ -111,18 +96,12 @@ class QueryListsInputAwsQuerySerializer const QueryListsInputAwsQuerySerializer() : super('QueryListsInput'); @override - Iterable get types => const [ - QueryListsInput, - _$QueryListsInput, - ]; + Iterable get types => const [QueryListsInput, _$QueryListsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryListsInput deserialize( @@ -149,55 +128,69 @@ class QueryListsInputAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i3.BuiltList)); + result.complexListArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i3.BuiltList), + ); case 'FlattenedListArg': - result.flattenedListArg.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListArg.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember - .replace((const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArgWithXmlNameMember.replace( + (const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'Hi': - result.flattenedListArgWithXmlName.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListArgWithXmlName.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -214,7 +207,7 @@ class QueryListsInputAwsQuerySerializer const _i1.XmlElementName( 'QueryListsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryListsInput( :listArg, @@ -222,84 +215,83 @@ class QueryListsInputAwsQuerySerializer :flattenedListArg, :listArgWithXmlNameMember, :flattenedListArgWithXmlName, - :nestedWithList + :nestedWithList, ) = object; if (listArg != null) { result$ ..add(const _i1.XmlElementName('ListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (complexListArg != null) { result$ ..add(const _i1.XmlElementName('ComplexListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .serialize( - serializers, - complexListArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + complexListArg, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), ), - )); + ); } if (flattenedListArg != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'FlattenedListArg', - indexer: _i1.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'FlattenedListArg', + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListArg, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (listArgWithXmlNameMember != null) { result$ ..add(const _i1.XmlElementName('ListArgWithXmlNameMember')) - ..add(const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.awsQueryList, - ).serialize( - serializers, - listArgWithXmlNameMember, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + listArgWithXmlNameMember, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListArgWithXmlName != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'Hi', - indexer: _i1.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListArgWithXmlName, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'Hi', + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListArgWithXmlName, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (nestedWithList != null) { result$ ..add(const _i1.XmlElementName('NestedWithList')) - ..add(serializers.serialize( - nestedWithList, - specifiedType: const FullType(NestedStructWithList), - )); + ..add( + serializers.serialize( + nestedWithList, + specifiedType: const FullType(NestedStructWithList), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart index 1d53932a4b..8c77272ab9 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart @@ -23,14 +23,14 @@ class _$QueryListsInput extends QueryListsInput { factory _$QueryListsInput([void Function(QueryListsInputBuilder)? updates]) => (new QueryListsInputBuilder()..update(updates))._build(); - _$QueryListsInput._( - {this.listArg, - this.complexListArg, - this.flattenedListArg, - this.listArgWithXmlNameMember, - this.flattenedListArgWithXmlName, - this.nestedWithList}) - : super._(); + _$QueryListsInput._({ + this.listArg, + this.complexListArg, + this.flattenedListArg, + this.listArgWithXmlNameMember, + this.flattenedListArgWithXmlName, + this.nestedWithList, + }) : super._(); @override QueryListsInput rebuild(void Function(QueryListsInputBuilder) updates) => @@ -91,15 +91,15 @@ class QueryListsInputBuilder _i3.ListBuilder get listArgWithXmlNameMember => _$this._listArgWithXmlNameMember ??= new _i3.ListBuilder(); set listArgWithXmlNameMember( - _i3.ListBuilder? listArgWithXmlNameMember) => - _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; + _i3.ListBuilder? listArgWithXmlNameMember, + ) => _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; _i3.ListBuilder? _flattenedListArgWithXmlName; _i3.ListBuilder get flattenedListArgWithXmlName => _$this._flattenedListArgWithXmlName ??= new _i3.ListBuilder(); set flattenedListArgWithXmlName( - _i3.ListBuilder? flattenedListArgWithXmlName) => - _$this._flattenedListArgWithXmlName = flattenedListArgWithXmlName; + _i3.ListBuilder? flattenedListArgWithXmlName, + ) => _$this._flattenedListArgWithXmlName = flattenedListArgWithXmlName; NestedStructWithListBuilder? _nestedWithList; NestedStructWithListBuilder get nestedWithList => @@ -141,15 +141,16 @@ class QueryListsInputBuilder _$QueryListsInput _build() { _$QueryListsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryListsInput._( - listArg: _listArg?.build(), - complexListArg: _complexListArg?.build(), - flattenedListArg: _flattenedListArg?.build(), - listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), - flattenedListArgWithXmlName: - _flattenedListArgWithXmlName?.build(), - nestedWithList: _nestedWithList?.build()); + listArg: _listArg?.build(), + complexListArg: _complexListArg?.build(), + flattenedListArg: _flattenedListArg?.build(), + listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), + flattenedListArgWithXmlName: _flattenedListArgWithXmlName?.build(), + nestedWithList: _nestedWithList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -167,7 +168,10 @@ class QueryListsInputBuilder _nestedWithList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryListsInput', _$failedField, e.toString()); + r'QueryListsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.dart index 98109e6b61..6e292cf2f0 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.query_maps_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,13 +30,15 @@ abstract class QueryMapsInput mapArg: mapArg == null ? null : _i3.BuiltMap(mapArg), renamedMapArg: renamedMapArg == null ? null : _i3.BuiltMap(renamedMapArg), complexMapArg: complexMapArg == null ? null : _i3.BuiltMap(complexMapArg), - mapWithXmlMemberName: mapWithXmlMemberName == null - ? null - : _i3.BuiltMap(mapWithXmlMemberName), + mapWithXmlMemberName: + mapWithXmlMemberName == null + ? null + : _i3.BuiltMap(mapWithXmlMemberName), flattenedMap: flattenedMap == null ? null : _i3.BuiltMap(flattenedMap), - flattenedMapWithXmlName: flattenedMapWithXmlName == null - ? null - : _i3.BuiltMap(flattenedMapWithXmlName), + flattenedMapWithXmlName: + flattenedMapWithXmlName == null + ? null + : _i3.BuiltMap(flattenedMapWithXmlName), mapOfLists: mapOfLists == null ? null : _i3.BuiltListMultimap(mapOfLists), nestedStructWithMap: nestedStructWithMap, ); @@ -51,11 +53,10 @@ abstract class QueryMapsInput QueryMapsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryMapsInputAwsQuerySerializer() + QueryMapsInputAwsQuerySerializer(), ]; _i3.BuiltMap? get mapArg; @@ -71,51 +72,28 @@ abstract class QueryMapsInput @override List get props => [ - mapArg, - renamedMapArg, - complexMapArg, - mapWithXmlMemberName, - flattenedMap, - flattenedMapWithXmlName, - mapOfLists, - nestedStructWithMap, - ]; + mapArg, + renamedMapArg, + complexMapArg, + mapWithXmlMemberName, + flattenedMap, + flattenedMapWithXmlName, + mapOfLists, + nestedStructWithMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryMapsInput') - ..add( - 'mapArg', - mapArg, - ) - ..add( - 'renamedMapArg', - renamedMapArg, - ) - ..add( - 'complexMapArg', - complexMapArg, - ) - ..add( - 'mapWithXmlMemberName', - mapWithXmlMemberName, - ) - ..add( - 'flattenedMap', - flattenedMap, - ) - ..add( - 'flattenedMapWithXmlName', - flattenedMapWithXmlName, - ) - ..add( - 'mapOfLists', - mapOfLists, - ) - ..add( - 'nestedStructWithMap', - nestedStructWithMap, - ); + final helper = + newBuiltValueToStringHelper('QueryMapsInput') + ..add('mapArg', mapArg) + ..add('renamedMapArg', renamedMapArg) + ..add('complexMapArg', complexMapArg) + ..add('mapWithXmlMemberName', mapWithXmlMemberName) + ..add('flattenedMap', flattenedMap) + ..add('flattenedMapWithXmlName', flattenedMapWithXmlName) + ..add('mapOfLists', mapOfLists) + ..add('nestedStructWithMap', nestedStructWithMap); return helper.toString(); } } @@ -125,18 +103,12 @@ class QueryMapsInputAwsQuerySerializer const QueryMapsInputAwsQuerySerializer() : super('QueryMapsInput'); @override - Iterable get types => const [ - QueryMapsInput, - _$QueryMapsInput, - ]; + Iterable get types => const [QueryMapsInput, _$QueryMapsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryMapsInput deserialize( @@ -163,120 +135,116 @@ class QueryMapsInputAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace(const _i1.XmlBuiltMapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.mapArg.replace( + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'Foo': - result.renamedMapArg.replace(const _i1.XmlBuiltMapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.renamedMapArg.replace( + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'ComplexMapArg': - result.complexMapArg.replace(const _i1.XmlBuiltMapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.complexMapArg.replace( + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); case 'MapWithXmlMemberName': - result.mapWithXmlMemberName.replace(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - indexer: _i1.XmlIndexer.awsQueryMap, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.mapWithXmlMemberName.replace( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'FlattenedMap': - result.flattenedMap.addAll(const _i1.XmlBuiltMapSerializer( - flattenedKey: 'FlattenedMap', - indexer: _i1.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.flattenedMap.addAll( + const _i1.XmlBuiltMapSerializer( + flattenedKey: 'FlattenedMap', + indexer: _i1.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); case 'Hi': - result.flattenedMapWithXmlName.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'Hi', - indexer: _i1.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.flattenedMapWithXmlName.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'Hi', + indexer: _i1.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); case 'MapOfLists': - result.mapOfLists.replace(const _i1.XmlBuiltMultimapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltListMultimap, - [ + result.mapOfLists.replace( + const _i1.XmlBuiltMultimapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'NestedStructWithMap': - result.nestedStructWithMap.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithMap), - ) as NestedStructWithMap)); + result.nestedStructWithMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithMap), + ) + as NestedStructWithMap), + ); } } @@ -293,7 +261,7 @@ class QueryMapsInputAwsQuerySerializer const _i1.XmlElementName( 'QueryMapsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryMapsInput( :mapArg, @@ -303,136 +271,131 @@ class QueryMapsInputAwsQuerySerializer :flattenedMap, :flattenedMapWithXmlName, :mapOfLists, - :nestedStructWithMap + :nestedStructWithMap, ) = object; if (mapArg != null) { result$ ..add(const _i1.XmlElementName('MapArg')) ..add( - const _i1.XmlBuiltMapSerializer(indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - mapArg, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapArg, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (renamedMapArg != null) { result$ ..add(const _i1.XmlElementName('Foo')) ..add( - const _i1.XmlBuiltMapSerializer(indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - renamedMapArg, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + renamedMapArg, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (complexMapArg != null) { result$ ..add(const _i1.XmlElementName('ComplexMapArg')) ..add( - const _i1.XmlBuiltMapSerializer(indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - complexMapArg, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + complexMapArg, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } if (mapWithXmlMemberName != null) { result$ ..add(const _i1.XmlElementName('MapWithXmlMemberName')) - ..add(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - indexer: _i1.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - mapWithXmlMemberName, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapWithXmlMemberName, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (flattenedMap != null) { - result$.addAll(const _i1.XmlBuiltMapSerializer( - flattenedKey: 'FlattenedMap', - indexer: _i1.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - flattenedMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + result$.addAll( + const _i1.XmlBuiltMapSerializer( + flattenedKey: 'FlattenedMap', + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + flattenedMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (flattenedMapWithXmlName != null) { - result$.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'Hi', - indexer: _i1.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - flattenedMapWithXmlName, - specifiedType: const FullType( - _i3.BuiltMap, - [ + result$.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'Hi', + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + flattenedMapWithXmlName, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (mapOfLists != null) { result$ ..add(const _i1.XmlElementName('MapOfLists')) - ..add(const _i1.XmlBuiltMultimapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - mapOfLists, - specifiedType: const FullType( - _i3.BuiltListMultimap, - [ + ..add( + const _i1.XmlBuiltMultimapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapOfLists, + specifiedType: const FullType(_i3.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (nestedStructWithMap != null) { result$ ..add(const _i1.XmlElementName('NestedStructWithMap')) - ..add(serializers.serialize( - nestedStructWithMap, - specifiedType: const FullType(NestedStructWithMap), - )); + ..add( + serializers.serialize( + nestedStructWithMap, + specifiedType: const FullType(NestedStructWithMap), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart index b07b2b1f32..cb0caaddea 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart @@ -27,16 +27,16 @@ class _$QueryMapsInput extends QueryMapsInput { factory _$QueryMapsInput([void Function(QueryMapsInputBuilder)? updates]) => (new QueryMapsInputBuilder()..update(updates))._build(); - _$QueryMapsInput._( - {this.mapArg, - this.renamedMapArg, - this.complexMapArg, - this.mapWithXmlMemberName, - this.flattenedMap, - this.flattenedMapWithXmlName, - this.mapOfLists, - this.nestedStructWithMap}) - : super._(); + _$QueryMapsInput._({ + this.mapArg, + this.renamedMapArg, + this.complexMapArg, + this.mapWithXmlMemberName, + this.flattenedMap, + this.flattenedMapWithXmlName, + this.mapOfLists, + this.nestedStructWithMap, + }) : super._(); @override QueryMapsInput rebuild(void Function(QueryMapsInputBuilder) updates) => @@ -101,8 +101,8 @@ class QueryMapsInputBuilder _i3.MapBuilder get mapWithXmlMemberName => _$this._mapWithXmlMemberName ??= new _i3.MapBuilder(); set mapWithXmlMemberName( - _i3.MapBuilder? mapWithXmlMemberName) => - _$this._mapWithXmlMemberName = mapWithXmlMemberName; + _i3.MapBuilder? mapWithXmlMemberName, + ) => _$this._mapWithXmlMemberName = mapWithXmlMemberName; _i3.MapBuilder? _flattenedMap; _i3.MapBuilder get flattenedMap => @@ -114,8 +114,8 @@ class QueryMapsInputBuilder _i3.MapBuilder get flattenedMapWithXmlName => _$this._flattenedMapWithXmlName ??= new _i3.MapBuilder(); set flattenedMapWithXmlName( - _i3.MapBuilder? flattenedMapWithXmlName) => - _$this._flattenedMapWithXmlName = flattenedMapWithXmlName; + _i3.MapBuilder? flattenedMapWithXmlName, + ) => _$this._flattenedMapWithXmlName = flattenedMapWithXmlName; _i3.ListMultimapBuilder? _mapOfLists; _i3.ListMultimapBuilder get mapOfLists => @@ -164,16 +164,18 @@ class QueryMapsInputBuilder _$QueryMapsInput _build() { _$QueryMapsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryMapsInput._( - mapArg: _mapArg?.build(), - renamedMapArg: _renamedMapArg?.build(), - complexMapArg: _complexMapArg?.build(), - mapWithXmlMemberName: _mapWithXmlMemberName?.build(), - flattenedMap: _flattenedMap?.build(), - flattenedMapWithXmlName: _flattenedMapWithXmlName?.build(), - mapOfLists: _mapOfLists?.build(), - nestedStructWithMap: _nestedStructWithMap?.build()); + mapArg: _mapArg?.build(), + renamedMapArg: _renamedMapArg?.build(), + complexMapArg: _complexMapArg?.build(), + mapWithXmlMemberName: _mapWithXmlMemberName?.build(), + flattenedMap: _flattenedMap?.build(), + flattenedMapWithXmlName: _flattenedMapWithXmlName?.build(), + mapOfLists: _mapOfLists?.build(), + nestedStructWithMap: _nestedStructWithMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -195,7 +197,10 @@ class QueryMapsInputBuilder _nestedStructWithMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryMapsInput', _$failedField, e.toString()); + r'QueryMapsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart index 7ff6306b98..47cc50cd1c 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.query_timestamps_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class QueryTimestampsInput ); } - factory QueryTimestampsInput.build( - [void Function(QueryTimestampsInputBuilder) updates]) = - _$QueryTimestampsInput; + factory QueryTimestampsInput.build([ + void Function(QueryTimestampsInputBuilder) updates, + ]) = _$QueryTimestampsInput; const QueryTimestampsInput._(); @@ -37,11 +37,10 @@ abstract class QueryTimestampsInput QueryTimestampsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryTimestampsInputAwsQuerySerializer() + QueryTimestampsInputAwsQuerySerializer(), ]; DateTime? get normalFormat; @@ -51,27 +50,15 @@ abstract class QueryTimestampsInput QueryTimestampsInput getPayload() => this; @override - List get props => [ - normalFormat, - epochMember, - epochTarget, - ]; + List get props => [normalFormat, epochMember, epochTarget]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryTimestampsInput') - ..add( - 'normalFormat', - normalFormat, - ) - ..add( - 'epochMember', - epochMember, - ) - ..add( - 'epochTarget', - epochTarget, - ); + final helper = + newBuiltValueToStringHelper('QueryTimestampsInput') + ..add('normalFormat', normalFormat) + ..add('epochMember', epochMember) + ..add('epochTarget', epochTarget); return helper.toString(); } } @@ -79,21 +66,18 @@ abstract class QueryTimestampsInput class QueryTimestampsInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const QueryTimestampsInputAwsQuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [ - QueryTimestampsInput, - _$QueryTimestampsInput, - ]; + QueryTimestampsInput, + _$QueryTimestampsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryTimestampsInput deserialize( @@ -120,10 +104,12 @@ class QueryTimestampsInputAwsQuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normalFormat = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'epochMember': result.epochMember = _i1.TimestampSerializer.epochSeconds.deserialize( serializers, @@ -150,33 +136,39 @@ class QueryTimestampsInputAwsQuerySerializer const _i1.XmlElementName( 'QueryTimestampsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryTimestampsInput(:normalFormat, :epochMember, :epochTarget) = object; if (normalFormat != null) { result$ ..add(const _i1.XmlElementName('normalFormat')) - ..add(serializers.serialize( - normalFormat, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normalFormat, + specifiedType: const FullType(DateTime), + ), + ); } if (epochMember != null) { result$ ..add(const _i1.XmlElementName('epochMember')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochMember, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochMember, + ), + ); } if (epochTarget != null) { result$ ..add(const _i1.XmlElementName('epochTarget')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart index e90ce16080..fc84becfa6 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart @@ -14,18 +14,20 @@ class _$QueryTimestampsInput extends QueryTimestampsInput { @override final DateTime? epochTarget; - factory _$QueryTimestampsInput( - [void Function(QueryTimestampsInputBuilder)? updates]) => - (new QueryTimestampsInputBuilder()..update(updates))._build(); + factory _$QueryTimestampsInput([ + void Function(QueryTimestampsInputBuilder)? updates, + ]) => (new QueryTimestampsInputBuilder()..update(updates))._build(); - _$QueryTimestampsInput._( - {this.normalFormat, this.epochMember, this.epochTarget}) - : super._(); + _$QueryTimestampsInput._({ + this.normalFormat, + this.epochMember, + this.epochTarget, + }) : super._(); @override QueryTimestampsInput rebuild( - void Function(QueryTimestampsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryTimestampsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryTimestampsInputBuilder toBuilder() => @@ -96,11 +98,13 @@ class QueryTimestampsInputBuilder QueryTimestampsInput build() => _build(); _$QueryTimestampsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$QueryTimestampsInput._( - normalFormat: normalFormat, - epochMember: epochMember, - epochTarget: epochTarget); + normalFormat: normalFormat, + epochMember: epochMember, + epochTarget: epochTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart index 7c063f38e0..83b15f3fd0 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.recursive_xml_shapes_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class RecursiveXmlShapesOutput return _$RecursiveXmlShapesOutput._(nested: nested); } - factory RecursiveXmlShapesOutput.build( - [void Function(RecursiveXmlShapesOutputBuilder) updates]) = - _$RecursiveXmlShapesOutput; + factory RecursiveXmlShapesOutput.build([ + void Function(RecursiveXmlShapesOutputBuilder) updates, + ]) = _$RecursiveXmlShapesOutput; const RecursiveXmlShapesOutput._(); @@ -29,11 +29,10 @@ abstract class RecursiveXmlShapesOutput factory RecursiveXmlShapesOutput.fromResponse( RecursiveXmlShapesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputAwsQuerySerializer()]; + serializers = [RecursiveXmlShapesOutputAwsQuerySerializer()]; RecursiveXmlShapesOutputNested1? get nested; @override @@ -42,10 +41,7 @@ abstract class RecursiveXmlShapesOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -53,21 +49,18 @@ abstract class RecursiveXmlShapesOutput class RecursiveXmlShapesOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputAwsQuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [ - RecursiveXmlShapesOutput, - _$RecursiveXmlShapesOutput, - ]; + RecursiveXmlShapesOutput, + _$RecursiveXmlShapesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -94,10 +87,15 @@ class RecursiveXmlShapesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -114,16 +112,18 @@ class RecursiveXmlShapesOutputAwsQuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart index 2d7e34d129..21994706b3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveXmlShapesOutput extends RecursiveXmlShapesOutput { @override final RecursiveXmlShapesOutputNested1? nested; - factory _$RecursiveXmlShapesOutput( - [void Function(RecursiveXmlShapesOutputBuilder)? updates]) => - (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); + factory _$RecursiveXmlShapesOutput([ + void Function(RecursiveXmlShapesOutputBuilder)? updates, + ]) => (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); _$RecursiveXmlShapesOutput._({this.nested}) : super._(); @override RecursiveXmlShapesOutput rebuild( - void Function(RecursiveXmlShapesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveXmlShapesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutput', _$failedField, e.toString()); + r'RecursiveXmlShapesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart index 459ef251d3..f89e358546 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.recursive_xml_shapes_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested1.g.dart'; abstract class RecursiveXmlShapesOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { factory RecursiveXmlShapesOutputNested1({ String? foo, RecursiveXmlShapesOutputNested2? nested, }) { - return _$RecursiveXmlShapesOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveXmlShapesOutputNested1._(foo: foo, nested: nested); } - factory RecursiveXmlShapesOutputNested1.build( - [void Function(RecursiveXmlShapesOutputNested1Builder) updates]) = - _$RecursiveXmlShapesOutputNested1; + factory RecursiveXmlShapesOutputNested1.build([ + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested1; const RecursiveXmlShapesOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested1AwsQuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested1AwsQuerySerializer()]; String? get foo; RecursiveXmlShapesOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1AwsQuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested1, - _$RecursiveXmlShapesOutputNested1, - ]; + RecursiveXmlShapesOutputNested1, + _$RecursiveXmlShapesOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -104,15 +90,22 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -129,24 +122,25 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested1Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested1(:foo, :nested) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart index f9749c812c..3835b660fe 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart @@ -13,16 +13,17 @@ class _$RecursiveXmlShapesOutputNested1 @override final RecursiveXmlShapesOutputNested2? nested; - factory _$RecursiveXmlShapesOutputNested1( - [void Function(RecursiveXmlShapesOutputNested1Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested1([ + void Function(RecursiveXmlShapesOutputNested1Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested1Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested1._({this.foo, this.nested}) : super._(); @override RecursiveXmlShapesOutputNested1 rebuild( - void Function(RecursiveXmlShapesOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested1Builder toBuilder() => @@ -48,8 +49,10 @@ class _$RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { _$RecursiveXmlShapesOutputNested1? _$v; String? _foo; @@ -91,9 +94,12 @@ class RecursiveXmlShapesOutputNested1Builder _$RecursiveXmlShapesOutputNested1 _build() { _$RecursiveXmlShapesOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,7 +107,10 @@ class RecursiveXmlShapesOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested1', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart index 4869ecbde5..4db63c0be7 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.recursive_xml_shapes_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested2.g.dart'; abstract class RecursiveXmlShapesOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { factory RecursiveXmlShapesOutputNested2({ String? bar, RecursiveXmlShapesOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveXmlShapesOutputNested2 ); } - factory RecursiveXmlShapesOutputNested2.build( - [void Function(RecursiveXmlShapesOutputNested2Builder) updates]) = - _$RecursiveXmlShapesOutputNested2; + factory RecursiveXmlShapesOutputNested2.build([ + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested2; const RecursiveXmlShapesOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested2AwsQuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested2AwsQuerySerializer()]; String? get bar; RecursiveXmlShapesOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2AwsQuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested2, - _$RecursiveXmlShapesOutputNested2, - ]; + RecursiveXmlShapesOutputNested2, + _$RecursiveXmlShapesOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -104,15 +93,22 @@ class RecursiveXmlShapesOutputNested2AwsQuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -129,24 +125,25 @@ class RecursiveXmlShapesOutputNested2AwsQuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested2Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested2(:bar, :recursiveMember) = object; if (bar != null) { result$ ..add(const _i2.XmlElementName('bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add(const _i2.XmlElementName('recursiveMember')) - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart index ca96543993..048cc789c9 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart @@ -13,17 +13,18 @@ class _$RecursiveXmlShapesOutputNested2 @override final RecursiveXmlShapesOutputNested1? recursiveMember; - factory _$RecursiveXmlShapesOutputNested2( - [void Function(RecursiveXmlShapesOutputNested2Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested2([ + void Function(RecursiveXmlShapesOutputNested2Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested2Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveXmlShapesOutputNested2 rebuild( - void Function(RecursiveXmlShapesOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested2Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { _$RecursiveXmlShapesOutputNested2? _$v; String? _bar; @@ -61,8 +64,8 @@ class RecursiveXmlShapesOutputNested2Builder RecursiveXmlShapesOutputNested1Builder get recursiveMember => _$this._recursiveMember ??= new RecursiveXmlShapesOutputNested1Builder(); set recursiveMember( - RecursiveXmlShapesOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveXmlShapesOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveXmlShapesOutputNested2Builder(); @@ -93,9 +96,12 @@ class RecursiveXmlShapesOutputNested2Builder _$RecursiveXmlShapesOutputNested2 _build() { _$RecursiveXmlShapesOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +109,10 @@ class RecursiveXmlShapesOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested2', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_config.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_config.dart index 8825f5e1e4..9d5bd4e4ae 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsQuerySerializer() + RetryConfigAwsQuerySerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsQuerySerializer const RetryConfigAwsQuerySerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RetryConfig deserialize( @@ -103,15 +83,19 @@ class RetryConfigAwsQuerySerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -128,24 +112,25 @@ class RetryConfigAwsQuerySerializer const _i2.XmlElementName( 'RetryConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RetryConfig(:mode, :maxAttempts) = object; if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_mode.dart index bd9ebc3e30..9c8b66e0d3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart index 5a35997831..4e4135f128 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.dart index 9aaa8ede72..47421d6c97 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsQuerySerializer() + S3ConfigAwsQuerySerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsQuerySerializer const S3ConfigAwsQuerySerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override S3Config deserialize( @@ -110,20 +96,26 @@ class S3ConfigAwsQuerySerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -140,36 +132,42 @@ class S3ConfigAwsQuerySerializer const _i2.XmlElementName( 'S3ConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.dart index e1bbea430d..37cfae6608 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsQuerySerializer() + ScopedConfigAwsQuerySerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsQuerySerializer const ScopedConfigAwsQuerySerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ScopedConfig deserialize( @@ -140,48 +120,55 @@ class ScopedConfigAwsQuerySerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -198,72 +185,76 @@ class ScopedConfigAwsQuerySerializer const _i3.XmlElementName( 'ScopedConfigResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final ScopedConfig( :environment, :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart index 0e6dc19dd7..25ca37c7cf 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.simple_input_params_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,9 +42,9 @@ abstract class SimpleInputParamsInput ); } - factory SimpleInputParamsInput.build( - [void Function(SimpleInputParamsInputBuilder) updates]) = - _$SimpleInputParamsInput; + factory SimpleInputParamsInput.build([ + void Function(SimpleInputParamsInputBuilder) updates, + ]) = _$SimpleInputParamsInput; const SimpleInputParamsInput._(); @@ -52,8 +52,7 @@ abstract class SimpleInputParamsInput SimpleInputParamsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [SimpleInputParamsInputAwsQuerySerializer()]; @@ -72,56 +71,30 @@ abstract class SimpleInputParamsInput @override List get props => [ - foo, - bar, - baz, - bam, - floatValue, - boo, - qux, - fooEnum, - integerEnum, - ]; + foo, + bar, + baz, + bam, + floatValue, + boo, + qux, + fooEnum, + integerEnum, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleInputParamsInput') - ..add( - 'foo', - foo, - ) - ..add( - 'bar', - bar, - ) - ..add( - 'baz', - baz, - ) - ..add( - 'bam', - bam, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'boo', - boo, - ) - ..add( - 'qux', - qux, - ) - ..add( - 'fooEnum', - fooEnum, - ) - ..add( - 'integerEnum', - integerEnum, - ); + final helper = + newBuiltValueToStringHelper('SimpleInputParamsInput') + ..add('foo', foo) + ..add('bar', bar) + ..add('baz', baz) + ..add('bam', bam) + ..add('floatValue', floatValue) + ..add('boo', boo) + ..add('qux', qux) + ..add('fooEnum', fooEnum) + ..add('integerEnum', integerEnum); return helper.toString(); } } @@ -129,21 +102,18 @@ abstract class SimpleInputParamsInput class SimpleInputParamsInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const SimpleInputParamsInputAwsQuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [ - SimpleInputParamsInput, - _$SimpleInputParamsInput, - ]; + SimpleInputParamsInput, + _$SimpleInputParamsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleInputParamsInput deserialize( @@ -170,50 +140,68 @@ class SimpleInputParamsInputAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'IntegerEnum': - result.integerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -230,7 +218,7 @@ class SimpleInputParamsInputAwsQuerySerializer const _i1.XmlElementName( 'SimpleInputParamsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleInputParamsInput( :foo, @@ -241,79 +229,78 @@ class SimpleInputParamsInputAwsQuerySerializer :boo, :qux, :fooEnum, - :integerEnum + :integerEnum, ) = object; if (foo != null) { result$ ..add(const _i1.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (bar != null) { result$ ..add(const _i1.XmlElementName('Bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (baz != null) { result$ ..add(const _i1.XmlElementName('Baz')) - ..add(serializers.serialize( - baz, - specifiedType: const FullType(bool), - )); + ..add(serializers.serialize(baz, specifiedType: const FullType(bool))); } if (bam != null) { result$ ..add(const _i1.XmlElementName('Bam')) - ..add(serializers.serialize( - bam, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(bam, specifiedType: const FullType(int))); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('FloatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (boo != null) { result$ ..add(const _i1.XmlElementName('Boo')) - ..add(serializers.serialize( - boo, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(boo, specifiedType: const FullType(double)), + ); } if (qux != null) { result$ ..add(const _i1.XmlElementName('Qux')) - ..add(serializers.serialize( - qux, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + qux, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (fooEnum != null) { result$ ..add(const _i1.XmlElementName('FooEnum')) - ..add(serializers.serialize( - fooEnum, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum, + specifiedType: const FullType(FooEnum), + ), + ); } if (integerEnum != null) { result$ ..add(const _i1.XmlElementName('IntegerEnum')) - ..add(serializers.serialize( - integerEnum, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerEnum, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart index 44f3e36a65..27bbe1eb21 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart @@ -26,26 +26,26 @@ class _$SimpleInputParamsInput extends SimpleInputParamsInput { @override final int? integerEnum; - factory _$SimpleInputParamsInput( - [void Function(SimpleInputParamsInputBuilder)? updates]) => - (new SimpleInputParamsInputBuilder()..update(updates))._build(); - - _$SimpleInputParamsInput._( - {this.foo, - this.bar, - this.baz, - this.bam, - this.floatValue, - this.boo, - this.qux, - this.fooEnum, - this.integerEnum}) - : super._(); + factory _$SimpleInputParamsInput([ + void Function(SimpleInputParamsInputBuilder)? updates, + ]) => (new SimpleInputParamsInputBuilder()..update(updates))._build(); + + _$SimpleInputParamsInput._({ + this.foo, + this.bar, + this.baz, + this.bam, + this.floatValue, + this.boo, + this.qux, + this.fooEnum, + this.integerEnum, + }) : super._(); @override SimpleInputParamsInput rebuild( - void Function(SimpleInputParamsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleInputParamsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleInputParamsInputBuilder toBuilder() => @@ -157,17 +157,19 @@ class SimpleInputParamsInputBuilder SimpleInputParamsInput build() => _build(); _$SimpleInputParamsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleInputParamsInput._( - foo: foo, - bar: bar, - baz: baz, - bam: bam, - floatValue: floatValue, - boo: boo, - qux: qux, - fooEnum: fooEnum, - integerEnum: integerEnum); + foo: foo, + bar: bar, + baz: baz, + bam: bam, + floatValue: floatValue, + boo: boo, + qux: qux, + fooEnum: fooEnum, + integerEnum: integerEnum, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart index 3d00426242..74b4e60059 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.simple_scalar_xml_properties_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i3; part 'simple_scalar_xml_properties_output.g.dart'; abstract class SimpleScalarXmlPropertiesOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { factory SimpleScalarXmlPropertiesOutput({ String? stringValue, String? emptyStringValue, @@ -43,9 +44,9 @@ abstract class SimpleScalarXmlPropertiesOutput ); } - factory SimpleScalarXmlPropertiesOutput.build( - [void Function(SimpleScalarXmlPropertiesOutputBuilder) updates]) = - _$SimpleScalarXmlPropertiesOutput; + factory SimpleScalarXmlPropertiesOutput.build([ + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ]) = _$SimpleScalarXmlPropertiesOutput; const SimpleScalarXmlPropertiesOutput._(); @@ -53,11 +54,10 @@ abstract class SimpleScalarXmlPropertiesOutput factory SimpleScalarXmlPropertiesOutput.fromResponse( SimpleScalarXmlPropertiesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [SimpleScalarXmlPropertiesOutputAwsQuerySerializer()]; + serializers = [SimpleScalarXmlPropertiesOutputAwsQuerySerializer()]; String? get stringValue; String? get emptyStringValue; @@ -71,62 +71,32 @@ abstract class SimpleScalarXmlPropertiesOutput double? get doubleValue; @override List get props => [ - stringValue, - emptyStringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + stringValue, + emptyStringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarXmlPropertiesOutput') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'emptyStringValue', - emptyStringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('stringValue', stringValue) + ..add('emptyStringValue', emptyStringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -134,21 +104,18 @@ abstract class SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [ - SimpleScalarXmlPropertiesOutput, - _$SimpleScalarXmlPropertiesOutput, - ]; + SimpleScalarXmlPropertiesOutput, + _$SimpleScalarXmlPropertiesOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -175,55 +142,75 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -240,7 +227,7 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer const _i3.XmlElementName( 'SimpleScalarXmlPropertiesOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleScalarXmlPropertiesOutput( :stringValue, @@ -252,87 +239,101 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer :integerValue, :longValue, :floatValue, - :doubleValue + :doubleValue, ) = object; if (stringValue != null) { result$ ..add(const _i3.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (emptyStringValue != null) { result$ ..add(const _i3.XmlElementName('emptyStringValue')) - ..add(serializers.serialize( - emptyStringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + emptyStringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i3.XmlElementName('trueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i3.XmlElementName('falseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (byteValue != null) { result$ ..add(const _i3.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (shortValue != null) { result$ ..add(const _i3.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (integerValue != null) { result$ ..add(const _i3.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i3.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (floatValue != null) { result$ ..add(const _i3.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add(const _i3.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart index 762fc06d89..da51a25ca9 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart @@ -29,27 +29,28 @@ class _$SimpleScalarXmlPropertiesOutput @override final double? doubleValue; - factory _$SimpleScalarXmlPropertiesOutput( - [void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates]) => + factory _$SimpleScalarXmlPropertiesOutput([ + void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates, + ]) => (new SimpleScalarXmlPropertiesOutputBuilder()..update(updates))._build(); - _$SimpleScalarXmlPropertiesOutput._( - {this.stringValue, - this.emptyStringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarXmlPropertiesOutput._({ + this.stringValue, + this.emptyStringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarXmlPropertiesOutput rebuild( - void Function(SimpleScalarXmlPropertiesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarXmlPropertiesOutputBuilder toBuilder() => @@ -91,8 +92,10 @@ class _$SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputBuilder implements - Builder { + Builder< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { _$SimpleScalarXmlPropertiesOutput? _$v; String? _stringValue; @@ -173,18 +176,20 @@ class SimpleScalarXmlPropertiesOutputBuilder SimpleScalarXmlPropertiesOutput build() => _build(); _$SimpleScalarXmlPropertiesOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarXmlPropertiesOutput._( - stringValue: stringValue, - emptyStringValue: emptyStringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + stringValue: stringValue, + emptyStringValue: emptyStringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.dart index 041389adfd..7891eac3d4 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.struct_arg; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,34 +31,22 @@ abstract class StructArg const StructArg._(); static const List<_i2.SmithySerializer> serializers = [ - StructArgAwsQuerySerializer() + StructArgAwsQuerySerializer(), ]; String? get stringArg; bool? get otherArg; StructArg? get recursiveArg; @override - List get props => [ - stringArg, - otherArg, - recursiveArg, - ]; + List get props => [stringArg, otherArg, recursiveArg]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructArg') - ..add( - 'stringArg', - stringArg, - ) - ..add( - 'otherArg', - otherArg, - ) - ..add( - 'recursiveArg', - recursiveArg, - ); + final helper = + newBuiltValueToStringHelper('StructArg') + ..add('stringArg', stringArg) + ..add('otherArg', otherArg) + ..add('recursiveArg', recursiveArg); return helper.toString(); } } @@ -68,18 +56,12 @@ class StructArgAwsQuerySerializer const StructArgAwsQuerySerializer() : super('StructArg'); @override - Iterable get types => const [ - StructArg, - _$StructArg, - ]; + Iterable get types => const [StructArg, _$StructArg]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructArg deserialize( @@ -106,20 +88,27 @@ class StructArgAwsQuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -136,32 +125,35 @@ class StructArgAwsQuerySerializer const _i2.XmlElementName( 'StructArgResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructArg(:stringArg, :otherArg, :recursiveArg) = object; if (stringArg != null) { result$ ..add(const _i2.XmlElementName('StringArg')) - ..add(serializers.serialize( - stringArg, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringArg, + specifiedType: const FullType(String), + ), + ); } if (otherArg != null) { result$ ..add(const _i2.XmlElementName('OtherArg')) - ..add(serializers.serialize( - otherArg, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(otherArg, specifiedType: const FullType(bool)), + ); } if (recursiveArg != null) { result$ ..add(const _i2.XmlElementName('RecursiveArg')) - ..add(serializers.serialize( - recursiveArg, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + recursiveArg, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart index 792a8afecd..9482dbfaad 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart @@ -93,11 +93,13 @@ class StructArgBuilder implements Builder { _$StructArg _build() { _$StructArg _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$StructArg._( - stringArg: stringArg, - otherArg: otherArg, - recursiveArg: _recursiveArg?.build()); + stringArg: stringArg, + otherArg: otherArg, + recursiveArg: _recursiveArg?.build(), + ); } catch (_) { late String _$failedField; try { @@ -105,7 +107,10 @@ class StructArgBuilder implements Builder { _recursiveArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'StructArg', _$failedField, e.toString()); + r'StructArg', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.dart index 30825613f6..1f71549811 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberAwsQuerySerializer() + StructureListMemberAwsQuerySerializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberAwsQuerySerializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructureListMember deserialize( @@ -99,15 +82,19 @@ class StructureListMemberAwsQuerySerializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -124,24 +111,18 @@ class StructureListMemberAwsQuerySerializer const _i2.XmlElementName( 'StructureListMemberResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructureListMember(:a, :b) = object; if (a != null) { result$ ..add(const _i2.XmlElementName('value')) - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add(const _i2.XmlElementName('other')) - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart index f8bea607d2..b668057c6b 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_blobs_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,11 +28,10 @@ abstract class XmlBlobsOutput factory XmlBlobsOutput.fromResponse( XmlBlobsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlBlobsOutputAwsQuerySerializer() + XmlBlobsOutputAwsQuerySerializer(), ]; _i2.Uint8List? get data; @@ -42,10 +41,7 @@ abstract class XmlBlobsOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlBlobsOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -55,18 +51,12 @@ class XmlBlobsOutputAwsQuerySerializer const XmlBlobsOutputAwsQuerySerializer() : super('XmlBlobsOutput'); @override - Iterable get types => const [ - XmlBlobsOutput, - _$XmlBlobsOutput, - ]; + Iterable get types => const [XmlBlobsOutput, _$XmlBlobsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlBlobsOutput deserialize( @@ -93,10 +83,12 @@ class XmlBlobsOutputAwsQuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } } @@ -113,16 +105,18 @@ class XmlBlobsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlBlobsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlBlobsOutput(:data) = object; if (data != null) { result$ ..add(const _i3.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i2.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i2.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart index e8c78c9007..7ebc972190 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,11 +42,10 @@ abstract class XmlEnumsOutput factory XmlEnumsOutput.fromResponse( XmlEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlEnumsOutputAwsQuerySerializer() + XmlEnumsOutputAwsQuerySerializer(), ]; FooEnum? get fooEnum1; @@ -57,41 +56,24 @@ abstract class XmlEnumsOutput _i2.BuiltMap? get fooEnumMap; @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlEnumsOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlEnumsOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -101,18 +83,12 @@ class XmlEnumsOutputAwsQuerySerializer const XmlEnumsOutputAwsQuerySerializer() : super('XmlEnumsOutput'); @override - Iterable get types => const [ - XmlEnumsOutput, - _$XmlEnumsOutput, - ]; + Iterable get types => const [XmlEnumsOutput, _$XmlEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlEnumsOutput deserialize( @@ -139,56 +115,65 @@ class XmlEnumsOutputAwsQuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.fooEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i2.BuiltSet)); + result.fooEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.fooEnumMap.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } } @@ -205,7 +190,7 @@ class XmlEnumsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlEnumsOutput( :fooEnum1, @@ -213,76 +198,79 @@ class XmlEnumsOutputAwsQuerySerializer :fooEnum3, :fooEnumList, :fooEnumSet, - :fooEnumMap + :fooEnumMap, ) = object; if (fooEnum1 != null) { result$ ..add(const _i3.XmlElementName('fooEnum1')) - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add(const _i3.XmlElementName('fooEnum2')) - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add(const _i3.XmlElementName('fooEnum3')) - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add(const _i3.XmlElementName('fooEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - fooEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + fooEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add(const _i3.XmlElementName('fooEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - fooEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + fooEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add(const _i3.XmlElementName('fooEnumMap')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - fooEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + fooEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart index e46d58ace9..69ec6ae825 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart @@ -23,14 +23,14 @@ class _$XmlEnumsOutput extends XmlEnumsOutput { factory _$XmlEnumsOutput([void Function(XmlEnumsOutputBuilder)? updates]) => (new XmlEnumsOutputBuilder()..update(updates))._build(); - _$XmlEnumsOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + _$XmlEnumsOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override XmlEnumsOutput rebuild(void Function(XmlEnumsOutputBuilder) updates) => @@ -133,14 +133,16 @@ class XmlEnumsOutputBuilder _$XmlEnumsOutput _build() { _$XmlEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlEnumsOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -152,7 +154,10 @@ class XmlEnumsOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlEnumsOutput', _$failedField, e.toString()); + r'XmlEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart index 32cce67115..cbc537e822 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_int_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,8 +32,9 @@ abstract class XmlIntEnumsOutput ); } - factory XmlIntEnumsOutput.build( - [void Function(XmlIntEnumsOutputBuilder) updates]) = _$XmlIntEnumsOutput; + factory XmlIntEnumsOutput.build([ + void Function(XmlIntEnumsOutputBuilder) updates, + ]) = _$XmlIntEnumsOutput; const XmlIntEnumsOutput._(); @@ -41,11 +42,10 @@ abstract class XmlIntEnumsOutput factory XmlIntEnumsOutput.fromResponse( XmlIntEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlIntEnumsOutputAwsQuerySerializer() + XmlIntEnumsOutputAwsQuerySerializer(), ]; int? get intEnum1; @@ -56,41 +56,24 @@ abstract class XmlIntEnumsOutput _i2.BuiltMap? get intEnumMap; @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlIntEnumsOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlIntEnumsOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -100,18 +83,12 @@ class XmlIntEnumsOutputAwsQuerySerializer const XmlIntEnumsOutputAwsQuerySerializer() : super('XmlIntEnumsOutput'); @override - Iterable get types => const [ - XmlIntEnumsOutput, - _$XmlIntEnumsOutput, - ]; + Iterable get types => const [XmlIntEnumsOutput, _$XmlIntEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlIntEnumsOutput deserialize( @@ -138,56 +115,61 @@ class XmlIntEnumsOutputAwsQuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(int)], - ), - ) as _i2.BuiltSet)); + result.intEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [FullType(int)]), + ) + as _i2.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.intEnumMap.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } } @@ -204,7 +186,7 @@ class XmlIntEnumsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlIntEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlIntEnumsOutput( :intEnum1, @@ -212,76 +194,70 @@ class XmlIntEnumsOutputAwsQuerySerializer :intEnum3, :intEnumList, :intEnumSet, - :intEnumMap + :intEnumMap, ) = object; if (intEnum1 != null) { result$ ..add(const _i3.XmlElementName('intEnum1')) - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum1, specifiedType: const FullType(int)), + ); } if (intEnum2 != null) { result$ ..add(const _i3.XmlElementName('intEnum2')) - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum2, specifiedType: const FullType(int)), + ); } if (intEnum3 != null) { result$ ..add(const _i3.XmlElementName('intEnum3')) - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum3, specifiedType: const FullType(int)), + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('intEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (intEnumSet != null) { result$ ..add(const _i3.XmlElementName('intEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - intEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(int)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + intEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(int)]), ), - )); + ); } if (intEnumMap != null) { result$ ..add(const _i3.XmlElementName('intEnumMap')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - intEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + intEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart index b76a54467e..abf4de8326 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart @@ -20,18 +20,18 @@ class _$XmlIntEnumsOutput extends XmlIntEnumsOutput { @override final _i2.BuiltMap? intEnumMap; - factory _$XmlIntEnumsOutput( - [void Function(XmlIntEnumsOutputBuilder)? updates]) => - (new XmlIntEnumsOutputBuilder()..update(updates))._build(); - - _$XmlIntEnumsOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$XmlIntEnumsOutput([ + void Function(XmlIntEnumsOutputBuilder)? updates, + ]) => (new XmlIntEnumsOutputBuilder()..update(updates))._build(); + + _$XmlIntEnumsOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override XmlIntEnumsOutput rebuild(void Function(XmlIntEnumsOutputBuilder) updates) => @@ -134,14 +134,16 @@ class XmlIntEnumsOutputBuilder _$XmlIntEnumsOutput _build() { _$XmlIntEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlIntEnumsOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -153,7 +155,10 @@ class XmlIntEnumsOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlIntEnumsOutput', _$failedField, e.toString()); + r'XmlIntEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart index 856c73f10f..25a3dc40cd 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_lists_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -41,21 +41,24 @@ abstract class XmlListsOutput timestampList == null ? null : _i2.BuiltList(timestampList), enumList: enumList == null ? null : _i2.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i2.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), renamedListMembers: renamedListMembers == null ? null : _i2.BuiltList(renamedListMembers), flattenedList: flattenedList == null ? null : _i2.BuiltList(flattenedList), flattenedList2: flattenedList2 == null ? null : _i2.BuiltList(flattenedList2), - flattenedListWithMemberNamespace: flattenedListWithMemberNamespace == null - ? null - : _i2.BuiltList(flattenedListWithMemberNamespace), - flattenedListWithNamespace: flattenedListWithNamespace == null - ? null - : _i2.BuiltList(flattenedListWithNamespace), + flattenedListWithMemberNamespace: + flattenedListWithMemberNamespace == null + ? null + : _i2.BuiltList(flattenedListWithMemberNamespace), + flattenedListWithNamespace: + flattenedListWithNamespace == null + ? null + : _i2.BuiltList(flattenedListWithNamespace), structureList: structureList == null ? null : _i2.BuiltList(structureList), ); @@ -70,11 +73,10 @@ abstract class XmlListsOutput factory XmlListsOutput.fromResponse( XmlListsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlListsOutputAwsQuerySerializer() + XmlListsOutputAwsQuerySerializer(), ]; _i2.BuiltList? get stringList; @@ -95,81 +97,43 @@ abstract class XmlListsOutput _i2.BuiltList? get structureList; @override List get props => [ - stringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - renamedListMembers, - flattenedList, - flattenedList2, - flattenedListWithMemberNamespace, - flattenedListWithNamespace, - structureList, - ]; + stringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + renamedListMembers, + flattenedList, + flattenedList2, + flattenedListWithMemberNamespace, + flattenedListWithNamespace, + structureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlListsOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'renamedListMembers', - renamedListMembers, - ) - ..add( - 'flattenedList', - flattenedList, - ) - ..add( - 'flattenedList2', - flattenedList2, - ) - ..add( - 'flattenedListWithMemberNamespace', - flattenedListWithMemberNamespace, - ) - ..add( - 'flattenedListWithNamespace', - flattenedListWithNamespace, - ) - ..add( - 'structureList', - structureList, - ); + final helper = + newBuiltValueToStringHelper('XmlListsOutput') + ..add('stringList', stringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('renamedListMembers', renamedListMembers) + ..add('flattenedList', flattenedList) + ..add('flattenedList2', flattenedList2) + ..add( + 'flattenedListWithMemberNamespace', + flattenedListWithMemberNamespace, + ) + ..add('flattenedListWithNamespace', flattenedListWithNamespace) + ..add('structureList', structureList); return helper.toString(); } } @@ -179,18 +143,12 @@ class XmlListsOutputAwsQuerySerializer const XmlListsOutputAwsQuerySerializer() : super('XmlListsOutput'); @override - Iterable get types => const [ - XmlListsOutput, - _$XmlListsOutput, - ]; + Iterable get types => const [XmlListsOutput, _$XmlListsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlListsOutput deserialize( @@ -217,142 +175,165 @@ class XmlListsOutputAwsQuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.stringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'stringSet': - result.stringSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], - ), - ) as _i2.BuiltSet)); + result.stringSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(String), + ]), + ) + as _i2.BuiltSet), + ); case 'integerList': - result.integerList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.integerList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'booleanList': - result.booleanList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], - ), - ) as _i2.BuiltList)); + result.booleanList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(bool), + ]), + ) + as _i2.BuiltList), + ); case 'timestampList': - result.timestampList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ), - ) as _i2.BuiltList)); + result.timestampList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i2.BuiltList), + ); case 'enumList': - result.enumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.enumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i2.BuiltList<_i2.BuiltList>)); + as _i2.BuiltList<_i2.BuiltList>), + ); case 'renamed': - result.renamedListMembers.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.renamedListMembers.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'flattenedList': - result.flattenedList.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'customName': - result.flattenedList2.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList2.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithMemberNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'myStructureList': - result.structureList.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i2.BuiltList)); + result.structureList.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i2.BuiltList), + ); } } @@ -369,7 +350,7 @@ class XmlListsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlListsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlListsOutput( :stringList, @@ -385,207 +366,192 @@ class XmlListsOutputAwsQuerySerializer :flattenedList2, :flattenedListWithMemberNamespace, :flattenedListWithNamespace, - :structureList + :structureList, ) = object; if (stringList != null) { result$ ..add(const _i3.XmlElementName('stringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - stringList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + stringList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add(const _i3.XmlElementName('stringSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - stringSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + stringSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(String)]), ), - )); + ); } if (integerList != null) { result$ ..add(const _i3.XmlElementName('integerList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - integerList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + integerList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (booleanList != null) { result$ ..add(const _i3.XmlElementName('booleanList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - booleanList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + booleanList, + specifiedType: const FullType(_i2.BuiltList, [FullType(bool)]), ), - )); + ); } if (timestampList != null) { result$ ..add(const _i3.XmlElementName('timestampList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - timestampList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + timestampList, + specifiedType: const FullType(_i2.BuiltList, [FullType(DateTime)]), ), - )); + ); } if (enumList != null) { result$ ..add(const _i3.XmlElementName('enumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - enumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + enumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('intEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (nestedStringList != null) { result$ ..add(const _i3.XmlElementName('nestedStringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - nestedStringList, - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + nestedStringList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (renamedListMembers != null) { result$ ..add(const _i3.XmlElementName('renamed')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - renamedListMembers, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + renamedListMembers, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'flattenedList', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'flattenedList', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList2 != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'customName', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedList2, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'customName', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedList2, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithMemberNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'flattenedListWithMemberNamespace', - memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListWithMemberNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'flattenedListWithMemberNamespace', + memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListWithMemberNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'flattenedListWithNamespace', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListWithNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'flattenedListWithNamespace', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListWithNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add(const _i3.XmlElementName('myStructureList')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - structureList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + structureList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart index ba7fe9417b..f735167104 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart @@ -39,22 +39,22 @@ class _$XmlListsOutput extends XmlListsOutput { factory _$XmlListsOutput([void Function(XmlListsOutputBuilder)? updates]) => (new XmlListsOutputBuilder()..update(updates))._build(); - _$XmlListsOutput._( - {this.stringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.renamedListMembers, - this.flattenedList, - this.flattenedList2, - this.flattenedListWithMemberNamespace, - this.flattenedListWithNamespace, - this.structureList}) - : super._(); + _$XmlListsOutput._({ + this.stringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.renamedListMembers, + this.flattenedList, + this.flattenedList2, + this.flattenedListWithMemberNamespace, + this.flattenedListWithNamespace, + this.structureList, + }) : super._(); @override XmlListsOutput rebuild(void Function(XmlListsOutputBuilder) updates) => @@ -157,8 +157,8 @@ class XmlListsOutputBuilder _i2.ListBuilder<_i2.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i2.ListBuilder<_i2.BuiltList>(); set nestedStringList( - _i2.ListBuilder<_i2.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i2.ListBuilder<_i2.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i2.ListBuilder? _renamedListMembers; _i2.ListBuilder get renamedListMembers => @@ -183,7 +183,8 @@ class XmlListsOutputBuilder _$this._flattenedListWithMemberNamespace ??= new _i2.ListBuilder(); set flattenedListWithMemberNamespace( - _i2.ListBuilder? flattenedListWithMemberNamespace) => + _i2.ListBuilder? flattenedListWithMemberNamespace, + ) => _$this._flattenedListWithMemberNamespace = flattenedListWithMemberNamespace; @@ -191,8 +192,8 @@ class XmlListsOutputBuilder _i2.ListBuilder get flattenedListWithNamespace => _$this._flattenedListWithNamespace ??= new _i2.ListBuilder(); set flattenedListWithNamespace( - _i2.ListBuilder? flattenedListWithNamespace) => - _$this._flattenedListWithNamespace = flattenedListWithNamespace; + _i2.ListBuilder? flattenedListWithNamespace, + ) => _$this._flattenedListWithNamespace = flattenedListWithNamespace; _i2.ListBuilder? _structureList; _i2.ListBuilder get structureList => @@ -242,23 +243,25 @@ class XmlListsOutputBuilder _$XmlListsOutput _build() { _$XmlListsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlListsOutput._( - stringList: _stringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - renamedListMembers: _renamedListMembers?.build(), - flattenedList: _flattenedList?.build(), - flattenedList2: _flattenedList2?.build(), - flattenedListWithMemberNamespace: - _flattenedListWithMemberNamespace?.build(), - flattenedListWithNamespace: _flattenedListWithNamespace?.build(), - structureList: _structureList?.build()); + stringList: _stringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + renamedListMembers: _renamedListMembers?.build(), + flattenedList: _flattenedList?.build(), + flattenedList2: _flattenedList2?.build(), + flattenedListWithMemberNamespace: + _flattenedListWithMemberNamespace?.build(), + flattenedListWithNamespace: _flattenedListWithNamespace?.build(), + structureList: _structureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -292,7 +295,10 @@ class XmlListsOutputBuilder _structureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlListsOutput', _$failedField, e.toString()); + r'XmlListsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart index a703503ac6..7161b36026 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_maps_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,11 +28,10 @@ abstract class XmlMapsOutput factory XmlMapsOutput.fromResponse( XmlMapsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlMapsOutputAwsQuerySerializer() + XmlMapsOutputAwsQuerySerializer(), ]; _i2.BuiltMap? get myMap; @@ -42,10 +41,7 @@ abstract class XmlMapsOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -55,18 +51,12 @@ class XmlMapsOutputAwsQuerySerializer const XmlMapsOutputAwsQuerySerializer() : super('XmlMapsOutput'); @override - Iterable get types => const [ - XmlMapsOutput, - _$XmlMapsOutput, - ]; + Iterable get types => const [XmlMapsOutput, _$XmlMapsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsOutput deserialize( @@ -93,19 +83,18 @@ class XmlMapsOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -122,25 +111,24 @@ class XmlMapsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlMapsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlMapsOutput(:myMap) = object; if (myMap != null) { result$ ..add(const _i3.XmlElementName('myMap')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart index 97dbd0accb..e290cb453f 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart @@ -83,7 +83,10 @@ class XmlMapsOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsOutput', _$failedField, e.toString()); + r'XmlMapsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart index 00ecf91b6f..efd0e34af8 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_maps_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,12 +17,13 @@ abstract class XmlMapsXmlNameOutput implements Built { factory XmlMapsXmlNameOutput({Map? myMap}) { return _$XmlMapsXmlNameOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory XmlMapsXmlNameOutput.build( - [void Function(XmlMapsXmlNameOutputBuilder) updates]) = - _$XmlMapsXmlNameOutput; + factory XmlMapsXmlNameOutput.build([ + void Function(XmlMapsXmlNameOutputBuilder) updates, + ]) = _$XmlMapsXmlNameOutput; const XmlMapsXmlNameOutput._(); @@ -30,11 +31,10 @@ abstract class XmlMapsXmlNameOutput factory XmlMapsXmlNameOutput.fromResponse( XmlMapsXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlMapsXmlNameOutputAwsQuerySerializer() + XmlMapsXmlNameOutputAwsQuerySerializer(), ]; _i2.BuiltMap? get myMap; @@ -44,10 +44,7 @@ abstract class XmlMapsXmlNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsXmlNameOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class XmlMapsXmlNameOutput class XmlMapsXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const XmlMapsXmlNameOutputAwsQuerySerializer() - : super('XmlMapsXmlNameOutput'); + : super('XmlMapsXmlNameOutput'); @override Iterable get types => const [ - XmlMapsXmlNameOutput, - _$XmlMapsXmlNameOutput, - ]; + XmlMapsXmlNameOutput, + _$XmlMapsXmlNameOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsXmlNameOutput deserialize( @@ -96,21 +90,20 @@ class XmlMapsXmlNameOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i3.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - indexer: _i3.XmlIndexer.awsQueryMap, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.replace( + const _i3.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -127,27 +120,26 @@ class XmlMapsXmlNameOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlMapsXmlNameOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlMapsXmlNameOutput(:myMap) = object; if (myMap != null) { result$ ..add(const _i3.XmlElementName('myMap')) - ..add(const _i3.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart index 5fd3a40246..576056c40d 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart @@ -10,16 +10,16 @@ class _$XmlMapsXmlNameOutput extends XmlMapsXmlNameOutput { @override final _i2.BuiltMap? myMap; - factory _$XmlMapsXmlNameOutput( - [void Function(XmlMapsXmlNameOutputBuilder)? updates]) => - (new XmlMapsXmlNameOutputBuilder()..update(updates))._build(); + factory _$XmlMapsXmlNameOutput([ + void Function(XmlMapsXmlNameOutputBuilder)? updates, + ]) => (new XmlMapsXmlNameOutputBuilder()..update(updates))._build(); _$XmlMapsXmlNameOutput._({this.myMap}) : super._(); @override XmlMapsXmlNameOutput rebuild( - void Function(XmlMapsXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlMapsXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlMapsXmlNameOutputBuilder toBuilder() => @@ -86,7 +86,10 @@ class XmlMapsXmlNameOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsXmlNameOutput', _$failedField, e.toString()); + r'XmlMapsXmlNameOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart index a14e7374ad..d797c1fb7f 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_namespace_nested; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,45 +14,34 @@ part 'xml_namespace_nested.g.dart'; abstract class XmlNamespaceNested with _i1.AWSEquatable implements Built { - factory XmlNamespaceNested({ - String? foo, - List? values, - }) { + factory XmlNamespaceNested({String? foo, List? values}) { return _$XmlNamespaceNested._( foo: foo, values: values == null ? null : _i2.BuiltList(values), ); } - factory XmlNamespaceNested.build( - [void Function(XmlNamespaceNestedBuilder) updates]) = - _$XmlNamespaceNested; + factory XmlNamespaceNested.build([ + void Function(XmlNamespaceNestedBuilder) updates, + ]) = _$XmlNamespaceNested; const XmlNamespaceNested._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNamespaceNestedAwsQuerySerializer() + XmlNamespaceNestedAwsQuerySerializer(), ]; String? get foo; _i2.BuiltList? get values; @override - List get props => [ - foo, - values, - ]; + List get props => [foo, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNamespaceNested') - ..add( - 'foo', - foo, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('XmlNamespaceNested') + ..add('foo', foo) + ..add('values', values); return helper.toString(); } } @@ -62,18 +51,12 @@ class XmlNamespaceNestedAwsQuerySerializer const XmlNamespaceNestedAwsQuerySerializer() : super('XmlNamespaceNested'); @override - Iterable get types => const [ - XmlNamespaceNested, - _$XmlNamespaceNested, - ]; + Iterable get types => const [XmlNamespaceNested, _$XmlNamespaceNested]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespaceNested deserialize( @@ -100,22 +83,26 @@ class XmlNamespaceNestedAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -132,40 +119,39 @@ class XmlNamespaceNestedAwsQuerySerializer const _i3.XmlElementName( 'XmlNamespaceNestedResponse', _i3.XmlNamespace('http://boo.com'), - ) + ), ]; final XmlNamespaceNested(:foo, :values) = object; if (foo != null) { result$ - ..add(const _i3.XmlElementName( - 'foo', - _i3.XmlNamespace( - 'http://baz.com', - 'baz', + ..add( + const _i3.XmlElementName( + 'foo', + _i3.XmlNamespace('http://baz.com', 'baz'), ), - )) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ) + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (values != null) { result$ - ..add(const _i3.XmlElementName( - 'values', - _i3.XmlNamespace('http://qux.com'), - )) - ..add(const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlElementName( + 'values', + _i3.XmlNamespace('http://qux.com'), + ), + ) + ..add( + const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + values, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart index 80b634991e..300ea21e0e 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart @@ -12,16 +12,16 @@ class _$XmlNamespaceNested extends XmlNamespaceNested { @override final _i2.BuiltList? values; - factory _$XmlNamespaceNested( - [void Function(XmlNamespaceNestedBuilder)? updates]) => - (new XmlNamespaceNestedBuilder()..update(updates))._build(); + factory _$XmlNamespaceNested([ + void Function(XmlNamespaceNestedBuilder)? updates, + ]) => (new XmlNamespaceNestedBuilder()..update(updates))._build(); _$XmlNamespaceNested._({this.foo, this.values}) : super._(); @override XmlNamespaceNested rebuild( - void Function(XmlNamespaceNestedBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespaceNestedBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespaceNestedBuilder toBuilder() => @@ -96,7 +96,10 @@ class XmlNamespaceNestedBuilder _values?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespaceNested', _$failedField, e.toString()); + r'XmlNamespaceNested', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart index 0c6432eb3d..110fa40ece 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_namespaces_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class XmlNamespacesOutput return _$XmlNamespacesOutput._(nested: nested); } - factory XmlNamespacesOutput.build( - [void Function(XmlNamespacesOutputBuilder) updates]) = - _$XmlNamespacesOutput; + factory XmlNamespacesOutput.build([ + void Function(XmlNamespacesOutputBuilder) updates, + ]) = _$XmlNamespacesOutput; const XmlNamespacesOutput._(); @@ -28,11 +28,10 @@ abstract class XmlNamespacesOutput factory XmlNamespacesOutput.fromResponse( XmlNamespacesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlNamespacesOutputAwsQuerySerializer() + XmlNamespacesOutputAwsQuerySerializer(), ]; XmlNamespaceNested? get nested; @@ -42,10 +41,7 @@ abstract class XmlNamespacesOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlNamespacesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -56,17 +52,14 @@ class XmlNamespacesOutputAwsQuerySerializer @override Iterable get types => const [ - XmlNamespacesOutput, - _$XmlNamespacesOutput, - ]; + XmlNamespacesOutput, + _$XmlNamespacesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespacesOutput deserialize( @@ -93,10 +86,13 @@ class XmlNamespacesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -113,16 +109,18 @@ class XmlNamespacesOutputAwsQuerySerializer const _i2.XmlElementName( 'XmlNamespacesOutputResponse', _i2.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespacesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(XmlNamespaceNested), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(XmlNamespaceNested), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart index 903b439f9c..01cfed012f 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart @@ -10,16 +10,16 @@ class _$XmlNamespacesOutput extends XmlNamespacesOutput { @override final XmlNamespaceNested? nested; - factory _$XmlNamespacesOutput( - [void Function(XmlNamespacesOutputBuilder)? updates]) => - (new XmlNamespacesOutputBuilder()..update(updates))._build(); + factory _$XmlNamespacesOutput([ + void Function(XmlNamespacesOutputBuilder)? updates, + ]) => (new XmlNamespacesOutputBuilder()..update(updates))._build(); _$XmlNamespacesOutput._({this.nested}) : super._(); @override XmlNamespacesOutput rebuild( - void Function(XmlNamespacesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespacesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespacesOutputBuilder toBuilder() => @@ -85,7 +85,10 @@ class XmlNamespacesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespacesOutput', _$failedField, e.toString()); + r'XmlNamespacesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart index 00576b2fe6..6ac7714035 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.model.xml_timestamps_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class XmlTimestampsOutput ); } - factory XmlTimestampsOutput.build( - [void Function(XmlTimestampsOutputBuilder) updates]) = - _$XmlTimestampsOutput; + factory XmlTimestampsOutput.build([ + void Function(XmlTimestampsOutputBuilder) updates, + ]) = _$XmlTimestampsOutput; const XmlTimestampsOutput._(); @@ -43,11 +43,10 @@ abstract class XmlTimestampsOutput factory XmlTimestampsOutput.fromResponse( XmlTimestampsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlTimestampsOutputAwsQuerySerializer() + XmlTimestampsOutputAwsQuerySerializer(), ]; DateTime? get normal; @@ -59,46 +58,26 @@ abstract class XmlTimestampsOutput DateTime? get httpDateOnTarget; @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlTimestampsOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('XmlTimestampsOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -109,17 +88,14 @@ class XmlTimestampsOutputAwsQuerySerializer @override Iterable get types => const [ - XmlTimestampsOutput, - _$XmlTimestampsOutput, - ]; + XmlTimestampsOutput, + _$XmlTimestampsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlTimestampsOutput deserialize( @@ -146,44 +122,34 @@ class XmlTimestampsOutputAwsQuerySerializer } switch (key) { case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'dateTime': result.dateTime = _i2.TimestampSerializer.dateTime.deserialize( serializers, value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i2.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i2.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i2.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i2.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i2.TimestampSerializer.httpDate + .deserialize(serializers, value); } } @@ -200,7 +166,7 @@ class XmlTimestampsOutputAwsQuerySerializer const _i2.XmlElementName( 'XmlTimestampsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlTimestampsOutput( :normal, @@ -209,63 +175,71 @@ class XmlTimestampsOutputAwsQuerySerializer :epochSeconds, :epochSecondsOnTarget, :httpDate, - :httpDateOnTarget + :httpDateOnTarget, ) = object; if (normal != null) { result$ ..add(const _i2.XmlElementName('normal')) - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } if (dateTime != null) { result$ ..add(const _i2.XmlElementName('dateTime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add(const _i2.XmlElementName('dateTimeOnTarget')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add(const _i2.XmlElementName('epochSeconds')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add(const _i2.XmlElementName('epochSecondsOnTarget')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add(const _i2.XmlElementName('httpDate')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add(const _i2.XmlElementName('httpDateOnTarget')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart index 87f8eb4a56..00966c20c3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart @@ -22,24 +22,24 @@ class _$XmlTimestampsOutput extends XmlTimestampsOutput { @override final DateTime? httpDateOnTarget; - factory _$XmlTimestampsOutput( - [void Function(XmlTimestampsOutputBuilder)? updates]) => - (new XmlTimestampsOutputBuilder()..update(updates))._build(); - - _$XmlTimestampsOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$XmlTimestampsOutput([ + void Function(XmlTimestampsOutputBuilder)? updates, + ]) => (new XmlTimestampsOutputBuilder()..update(updates))._build(); + + _$XmlTimestampsOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override XmlTimestampsOutput rebuild( - void Function(XmlTimestampsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlTimestampsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlTimestampsOutputBuilder toBuilder() => @@ -141,15 +141,17 @@ class XmlTimestampsOutputBuilder XmlTimestampsOutput build() => _build(); _$XmlTimestampsOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlTimestampsOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart index 24826aff20..9479b22bcf 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v1/src/query_protocol/model/datetime_offsets_output.da import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'DatetimeOffsets', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -71,11 +84,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart index 0a286d4b5c..79c2844d7e 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EmptyInputAndEmptyOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart index 4d56656603..cd1bc94faf 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class EndpointOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,19 +59,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart index b635022ee7..ada9307217 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,32 @@ import 'package:aws_query_v1/src/query_protocol/model/host_label_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -43,7 +46,7 @@ class EndpointWithHostLabelOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointWithHostLabelOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,19 +64,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +98,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart index 8fc34e8586..5fed0f4601 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.flattened_xml_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps -class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FlattenedXmlMapOutput, FlattenedXmlMapOutput> { +class FlattenedXmlMapOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapOutput, + FlattenedXmlMapOutput + > { /// Flattened maps FlattenedXmlMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FlattenedXmlMapOutput, - FlattenedXmlMapOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapOutput, + FlattenedXmlMapOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FlattenedXmlMap', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FlattenedXmlMapOutput? output]) => 200; @@ -73,11 +86,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FlattenedXmlMapOutput buildOutput( FlattenedXmlMapOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart index 81034c7df9..088eca658d 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.flattened_xml_map_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlName -class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNameOutput, - FlattenedXmlMapWithXmlNameOutput> { +class FlattenedXmlMapWithXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutput + > { /// Flattened maps with @xmlName FlattenedXmlMapWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FlattenedXmlMapWithXmlNameOutput, - FlattenedXmlMapWithXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FlattenedXmlMapWithXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,9 +75,9 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FlattenedXmlMapWithXmlNameOutput? output]) => 200; @@ -76,11 +86,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNameOutput buildOutput( FlattenedXmlMapWithXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNameOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart index 2e9f69328a..5dc061d895 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.flattened_xml_map_with_xml_namespace_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlNamespace and @xmlName -class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput> { +class FlattenedXmlMapWithXmlNamespaceOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > { /// Flattened maps with @xmlNamespace and @xmlName FlattenedXmlMapWithXmlNamespaceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +57,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FlattenedXmlMapWithXmlNamespace', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,9 +75,9 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FlattenedXmlMapWithXmlNamespaceOutput? output]) => 200; @@ -79,11 +86,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNamespaceOutput buildOutput( FlattenedXmlMapWithXmlNamespaceOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNamespaceOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -107,11 +110,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart index f7522cf665..fcca8c9250 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v1/src/query_protocol/model/fractional_seconds_output. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FractionalSeconds', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -71,11 +84,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart index 94aa60ecf1..40dcad5ead 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,29 +16,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -52,9 +65,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, shape: 'CustomCodeError', code: 'Customized', httpResponseCode: 402, - ) + ), ], - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,9 +85,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -83,42 +96,35 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'CustomCodeError', - ), - _i1.ErrorKind.client, - CustomCodeError, - builder: CustomCodeError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.query', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.query', + shape: 'CustomCodeError', + ), + _i1.ErrorKind.client, + CustomCodeError, + builder: CustomCodeError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.query', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -139,11 +145,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart index 9fcd6ba426..a2ed6d6695 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class HostWithPathOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'HostWithPathOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart index 665d4d766c..a33681ff41 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.ignores_wrapping_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response", and inside of that wrapper is another wrapper named operation name + "Result". -class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, IgnoresWrappingXmlNameOutput, IgnoresWrappingXmlNameOutput> { +class IgnoresWrappingXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > { /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response", and inside of that wrapper is another wrapper named operation name + "Result". IgnoresWrappingXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoresWrappingXmlNameOutput, - IgnoresWrappingXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'IgnoresWrappingXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([IgnoresWrappingXmlNameOutput? output]) => 200; @@ -73,11 +86,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, IgnoresWrappingXmlNameOutput buildOutput( IgnoresWrappingXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoresWrappingXmlNameOutput.fromResponse( - payload, - response, - ); + ) => IgnoresWrappingXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart index b333ae47af..cd86a5aa28 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.nested_structures_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes nested and recursive structure members. -class NestedStructuresOperation extends _i1.HttpOperation { +class NestedStructuresOperation + extends + _i1.HttpOperation< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes nested and recursive structure members. NestedStructuresOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class NestedStructuresOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'NestedStructures', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class NestedStructuresOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class NestedStructuresOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart index 73a1911bfe..659a59a113 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,20 +20,21 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +43,7 @@ class NoInputAndNoOutputOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'NoInputAndNoOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart index de10eaf790..ff2c556099 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,29 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + NoInputAndOutputInput, + NoInputAndOutputInput, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NoInputAndOutputInput, + NoInputAndOutputInput, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'NoInputAndOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +88,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +112,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart index 93e4b6bdd2..a5834d4e66 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:aws_query_v1/src/query_protocol/model/put_with_content_encoding_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'PutWithContentEncoding', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,10 +88,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +113,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart index 3ba13b72c4..6b59ace82f 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryIdempotencyTokenAutoFill', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +85,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +110,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart index 2a01c1f9cd..1a3003cba6 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.query_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,31 +13,38 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes simple and complex lists. -class QueryListsOperation extends _i1 - .HttpOperation { +class QueryListsOperation + extends + _i1.HttpOperation< + QueryListsInput, + QueryListsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes simple and complex lists. QueryListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1 - .HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +53,7 @@ class QueryListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,18 +71,15 @@ class QueryListsOperation extends _i1 @override _i1.HttpRequest buildRequest(QueryListsInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +104,7 @@ class QueryListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart index 9454f248d1..416a4785b3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.query_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,33 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes simple and complex maps. -class QueryMapsOperation extends _i1 - .HttpOperation { +class QueryMapsOperation + extends + _i1.HttpOperation { /// This test serializes simple and complex maps. QueryMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +48,7 @@ class QueryMapsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryMaps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,18 +66,15 @@ class QueryMapsOperation extends _i1 @override _i1.HttpRequest buildRequest(QueryMapsInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -99,11 +99,7 @@ class QueryMapsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart index 3cacd96792..8131533c44 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.query_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. -class QueryTimestampsOperation extends _i1.HttpOperation { +class QueryTimestampsOperation + extends + _i1.HttpOperation< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. QueryTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'QueryTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart index 75e97a4378..029364af8c 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.recursive_xml_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - RecursiveXmlShapesOutput, RecursiveXmlShapesOutput> { +class RecursiveXmlShapesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > { /// Recursive shapes RecursiveXmlShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput, - RecursiveXmlShapesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'RecursiveXmlShapes', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([RecursiveXmlShapesOutput? output]) => 200; @@ -73,11 +86,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput buildOutput( RecursiveXmlShapesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveXmlShapesOutput.fromResponse( - payload, - response, - ); + ) => RecursiveXmlShapesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart index ed94050c99..11dd3356e7 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.simple_input_params_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes strings, numbers, and boolean values. -class SimpleInputParamsOperation extends _i1.HttpOperation< - SimpleInputParamsInput, SimpleInputParamsInput, _i1.Unit, _i1.Unit> { +class SimpleInputParamsOperation + extends + _i1.HttpOperation< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes strings, numbers, and boolean values. SimpleInputParamsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleInputParams', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart index 0250f4b5e2..388a872d28 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.simple_scalar_xml_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:aws_query_v1/src/query_protocol/model/simple_scalar_xml_properti import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput> { +class SimpleScalarXmlPropertiesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > { SimpleScalarXmlPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleScalarXmlProperties', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,9 +73,9 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([SimpleScalarXmlPropertiesOutput? output]) => 200; @@ -74,11 +84,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< SimpleScalarXmlPropertiesOutput buildOutput( SimpleScalarXmlPropertiesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarXmlPropertiesOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarXmlPropertiesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +108,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart index 80a69fea2b..3aae93c6f9 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { /// Blobs are base64 encoded XmlBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart index ff71306090..7c66824f82 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_empty_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:aws_query_v1/src/query_protocol/model/xml_blobs_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlEmptyBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { XmlEmptyBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart index 9e3fbaecf8..16d3e3e48f 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:aws_query_v1/src/query_protocol/model/xml_lists_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlEmptyListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { XmlEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart index 728b5c1408..c8680335b8 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_empty_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:aws_query_v1/src/query_protocol/model/xml_maps_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyMapsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { +class XmlEmptyMapsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { XmlEmptyMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyMapsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyMaps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyMapsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlMapsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyMapsOperation extends _i1 XmlMapsOutput buildOutput( XmlMapsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyMapsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart index f8cd977a09..ad5668514e 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { +class XmlEnumsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlEnumsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlEnumsOperation extends _i1 XmlEnumsOutput buildOutput( XmlEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart index f6f5427f2a..85c1f0eafd 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,37 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlIntEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> { +class XmlIntEnumsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlIntEnumsOutput, + XmlIntEnumsOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, - XmlIntEnumsOutput>> protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +52,7 @@ class XmlIntEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlIntEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +70,9 @@ class XmlIntEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlIntEnumsOutput? output]) => 200; @@ -73,11 +81,7 @@ class XmlIntEnumsOperation extends _i1 XmlIntEnumsOutput buildOutput( XmlIntEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlIntEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlIntEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +105,7 @@ class XmlIntEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart index db1e029fca..1af99c2648 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Lists of structures. -class XmlListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Lists of structures. XmlListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart index a711094683..58cbdcede3 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests basic map serialization. -class XmlMapsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { +class XmlMapsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { /// The example tests basic map serialization. XmlMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlMapsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlMaps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlMapsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlMapsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlMapsOperation extends _i1 XmlMapsOutput buildOutput( XmlMapsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlMapsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart index 9087565104..4e560002f1 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_maps_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v1/src/query_protocol/model/xml_maps_xml_name_output.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlMapsXmlNameOutput, XmlMapsXmlNameOutput> { +class XmlMapsXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlMapsXmlNameOutput, + XmlMapsXmlNameOutput + > { XmlMapsXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsXmlNameOutput, - XmlMapsXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlMapsXmlNameOutput, + XmlMapsXmlNameOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlMapsXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlMapsXmlNameOutput? output]) => 200; @@ -71,11 +84,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlMapsXmlNameOutput buildOutput( XmlMapsXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsXmlNameOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart index c537006042..0202611047 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_namespaces_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v1/src/query_protocol/model/xml_namespaces_output.dart import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlNamespacesOutput, XmlNamespacesOutput> { +class XmlNamespacesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > { XmlNamespacesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlNamespacesOutput, - XmlNamespacesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlNamespaces', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlNamespacesOutput? output]) => 200; @@ -71,11 +84,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlNamespacesOutput buildOutput( XmlNamespacesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlNamespacesOutput.fromResponse( - payload, - response, - ); + ) => XmlNamespacesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart index 9f24bf92af..ff17d0aeb9 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.operation.xml_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlTimestampsOutput, XmlTimestampsOutput> { +class XmlTimestampsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. XmlTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlTimestampsOutput, - XmlTimestampsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlTimestampsOutput? output]) => 200; @@ -73,11 +86,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlTimestampsOutput buildOutput( XmlTimestampsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlTimestampsOutput.fromResponse( - payload, - response, - ); + ) => XmlTimestampsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_client.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_client.dart index f4f916b7cc..8700fbce90 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_client.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.query_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -77,11 +77,11 @@ class QueryProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -93,17 +93,15 @@ class QueryProtocolClient { final List<_i2.HttpResponseInterceptor> _responseInterceptors; - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. @@ -116,10 +114,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -128,10 +123,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -143,79 +135,64 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps - _i2.SmithyOperation flattenedXmlMap( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation flattenedXmlMap({ + _i1.AWSHttpClient? client, + }) { return FlattenedXmlMapOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Flattened maps with @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlName({_i1.AWSHttpClient? client}) { + flattenedXmlMapWithXmlName({_i1.AWSHttpClient? client}) { return FlattenedXmlMapWithXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Flattened maps with @xmlNamespace and @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { + flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { return FlattenedXmlMapWithXmlNamespaceOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -224,24 +201,19 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response", and inside of that wrapper is another wrapper named operation name + "Result". - _i2.SmithyOperation ignoresWrappingXmlName( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation ignoresWrappingXmlName({ + _i1.AWSHttpClient? client, + }) { return IgnoresWrappingXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes nested and recursive structure members. @@ -254,10 +226,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -267,10 +236,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. @@ -283,10 +249,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -298,10 +261,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -314,10 +274,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes simple and complex lists. @@ -330,10 +287,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes simple and complex maps. @@ -346,10 +300,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. @@ -362,24 +313,19 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes - _i2.SmithyOperation recursiveXmlShapes( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation recursiveXmlShapes({ + _i1.AWSHttpClient? client, + }) { return RecursiveXmlShapesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes strings, numbers, and boolean values. @@ -392,23 +338,17 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation - simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { + simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { return SimpleScalarXmlPropertiesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Blobs are base64 encoded @@ -418,36 +358,29 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyBlobs( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyBlobs({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyBlobsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyLists( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyLists({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyListsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation xmlEmptyMaps({_i1.AWSHttpClient? client}) { @@ -456,10 +389,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -469,24 +399,19 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. - _i2.SmithyOperation xmlIntEnums( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlIntEnums({ + _i1.AWSHttpClient? client, + }) { return XmlIntEnumsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Lists of structures. @@ -496,10 +421,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests basic map serialization. @@ -509,49 +431,40 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlMapsXmlName( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlMapsXmlName({ + _i1.AWSHttpClient? client, + }) { return XmlMapsXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlNamespaces( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlNamespaces({ + _i1.AWSHttpClient? client, + }) { return XmlNamespacesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. - _i2.SmithyOperation xmlTimestamps( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlTimestamps({ + _i1.AWSHttpClient? client, + }) { return XmlTimestampsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_server.dart b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_server.dart index 7e8568b62a..a734cb39ab 100644 --- a/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_server.dart +++ b/packages/smithy/goldens/lib/awsQuery/lib/src/query_protocol/query_protocol_server.dart @@ -1,4 +1,4 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v1.query_protocol.query_protocol_server; diff --git a/packages/smithy/goldens/lib/awsQuery/pubspec.yaml b/packages/smithy/goldens/lib/awsQuery/pubspec.yaml index 20c7578e3f..069a07bbea 100644 --- a/packages/smithy/goldens/lib/awsQuery/pubspec.yaml +++ b/packages/smithy/goldens/lib/awsQuery/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,7 +16,7 @@ dependencies: built_value: ^8.6.0 built_collection: ^5.0.0 fixnum: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -38,6 +38,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart index 560aee969d..b708bea10b 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQueryDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2019-12-16T22:48:18-01:00\n \n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQueryDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQueryDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2019-12-17T00:48:18+01:00\n \n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('AwsQueryDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQueryDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2019-12-16T22:48:18-01:00\n \n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQueryDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQueryDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2019-12-17T00:48:18+01:00\n \n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], + ); + }); } class DatetimeOffsetsOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsQuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart index ca72573a84..492872b1eb 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,97 +13,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryEmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryEmptyInputAndEmptyOutput', - documentation: 'Empty input serializes no extra query params', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'QueryEmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryEmptyInputAndEmptyOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryEmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryEmptyInputAndEmptyOutput', + documentation: 'Empty input serializes no extra query params', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryEmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryEmptyInputAndEmptyOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputAwsQuerySerializer(), + ], + ); + }); } class EmptyInputAndEmptyOutputInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -127,18 +112,15 @@ class EmptyInputAndEmptyOutputInputAwsQuerySerializer class EmptyInputAndEmptyOutputOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_operation_test.dart index 29b7fc3d59..b0eef7e7ba 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQueryEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=EndpointOperation&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('AwsQueryEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQueryEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=EndpointOperation&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart index 21d542105c..fcc0a4f033 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQueryEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&label=bar', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputAwsQuerySerializer()], - ); - }, - ); + _i1.test('AwsQueryEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQueryEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&label=bar', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputAwsQuerySerializer()], + ); + }); } class HostLabelInputAwsQuerySerializer @@ -63,11 +57,8 @@ class HostLabelInputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override HostLabelInput deserialize( @@ -86,10 +77,12 @@ class HostLabelInputAwsQuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart index 4db381ee30..5b8829a0f4 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.flattened_xml_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,61 +14,49 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryFlattenedXmlMap (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryFlattenedXmlMap', - documentation: 'Serializes flattened XML maps in responses', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n foo\n Foo\n \n \n baz\n Baz\n \n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': 'Foo', - 'baz': 'Baz', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FlattenedXmlMapOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryQueryFlattenedXmlMap (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryFlattenedXmlMap', + documentation: 'Serializes flattened XML maps in responses', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n foo\n Foo\n \n \n baz\n Baz\n \n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'foo': 'Foo', 'baz': 'Baz'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FlattenedXmlMapOutputAwsQuerySerializer()], + ); + }); } class FlattenedXmlMapOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapOutputAwsQuerySerializer() - : super('FlattenedXmlMapOutput'); + : super('FlattenedXmlMapOutput'); @override Iterable get types => const [FlattenedXmlMapOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapOutput deserialize( @@ -87,16 +75,16 @@ class FlattenedXmlMapOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart index 3710da016d..b3476a2ed1 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.flattened_xml_map_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,64 +13,52 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryFlattenedXmlMapWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryFlattenedXmlMapWithXmlName', - documentation: - 'Serializes flattened XML maps in responses that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n a\n A\n \n \n b\n B\n \n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryQueryFlattenedXmlMapWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryFlattenedXmlMapWithXmlName', + documentation: + 'Serializes flattened XML maps in responses that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n a\n A\n \n \n b\n B\n \n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer(), + ], + ); + }); } class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNameOutput'); + : super('FlattenedXmlMapWithXmlNameOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNameOutput deserialize( @@ -89,16 +77,16 @@ class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart index 52c8368413..781fb383c3 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.flattened_xml_map_with_xml_namespace_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,64 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryFlattenedXmlMapWithXmlNamespace (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryFlattenedXmlMapWithXmlNamespace', - documentation: - 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n a\n A\n \n \n b\n B\n \n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryQueryFlattenedXmlMapWithXmlNamespace (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryFlattenedXmlMapWithXmlNamespace', + documentation: + 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n a\n A\n \n \n b\n B\n \n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer(), + ], + ); + }); } -class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNamespaceOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -89,16 +78,16 @@ class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart index 6e23f5e5f4..9f4b5310e2 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,57 +12,48 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQueryDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2000-01-02T20:34:56.123Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('AwsQueryDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQueryDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2000-01-02T20:34:56.123Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputAwsQuerySerializer()], + ); + }); } class FractionalSecondsOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputAwsQuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart index de5c145cc7..69450d894f 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,165 +16,153 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryGreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryGreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how to deserialize the successful response', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Hello\n \n\n', - bodyMediaType: 'application/xml', - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GreetingWithErrorsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Sender\n ComplexError\n Top level\n \n bar\n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorAwsQuerySerializer(), - ComplexNestedErrorDataAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryCustomizedError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, CustomCodeError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryCustomizedError', - documentation: 'Parses customized XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Sender\n Customized\n Hi\n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 402, - ), - errorSerializers: const [CustomCodeErrorAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryInvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryInvalidGreetingError', - documentation: 'Parses simple XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Sender\n InvalidGreeting\n Hi\n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryGreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryGreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how to deserialize the successful response', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Hello\n \n\n', + bodyMediaType: 'application/xml', + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Sender\n ComplexError\n Top level\n \n bar\n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsQuerySerializer(), + ComplexNestedErrorDataAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryCustomizedError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + CustomCodeError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryCustomizedError', + documentation: 'Parses customized XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Sender\n Customized\n Hi\n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 402, + ), + errorSerializers: const [CustomCodeErrorAwsQuerySerializer()], + ); + }); + _i1.test('QueryInvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryInvalidGreetingError', + documentation: 'Parses simple XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Sender\n InvalidGreeting\n Hi\n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingAwsQuerySerializer()], + ); + }); } class GreetingWithErrorsOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsQuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -193,10 +181,12 @@ class GreetingWithErrorsOutputAwsQuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -222,11 +212,8 @@ class ComplexErrorAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexError deserialize( @@ -245,15 +232,20 @@ class ComplexErrorAwsQuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -273,18 +265,15 @@ class ComplexErrorAwsQuerySerializer class ComplexNestedErrorDataAwsQuerySerializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataAwsQuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexNestedErrorData deserialize( @@ -303,10 +292,12 @@ class ComplexNestedErrorDataAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -332,11 +323,8 @@ class CustomCodeErrorAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override CustomCodeError deserialize( @@ -355,10 +343,12 @@ class CustomCodeErrorAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -384,11 +374,8 @@ class InvalidGreetingAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override InvalidGreeting deserialize( @@ -407,10 +394,12 @@ class InvalidGreetingAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/host_with_path_operation_test.dart index f5a179a0bc..ea04204dbb 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryHostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryHostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=HostWithPathOperation&Version=2020-01-08', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('QueryHostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryHostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=HostWithPathOperation&Version=2020-01-08', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart index afcdc0db1b..4f448dd881 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.ignores_wrapping_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,59 +12,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryIgnoresWrappingXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoresWrappingXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryIgnoresWrappingXmlName', - documentation: - 'The xmlName trait on the output structure is ignored in AWS Query', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n bar\n \n\n', - bodyMediaType: 'application/xml', - params: {'foo': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoresWrappingXmlNameOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryIgnoresWrappingXmlName (response)', () async { + await _i2.httpResponseTest( + operation: IgnoresWrappingXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryIgnoresWrappingXmlName', + documentation: + 'The xmlName trait on the output structure is ignored in AWS Query', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n bar\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoresWrappingXmlNameOutputAwsQuerySerializer(), + ], + ); + }); } class IgnoresWrappingXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputAwsQuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [IgnoresWrappingXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -83,10 +74,12 @@ class IgnoresWrappingXmlNameOutputAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/nested_structures_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/nested_structures_operation_test.dart index ef9320883d..b8ab686690 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/nested_structures_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/nested_structures_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.nested_structures_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,71 +13,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NestedStructures (request)', - () async { - await _i2.httpRequestTest( - operation: NestedStructuresOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NestedStructures', - documentation: 'Serializes nested structures using dots', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Nested': { - 'StringArg': 'foo', - 'OtherArg': true, - 'RecursiveArg': {'StringArg': 'baz'}, - } + _i1.test('NestedStructures (request)', () async { + await _i2.httpRequestTest( + operation: NestedStructuresOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NestedStructures', + documentation: 'Serializes nested structures using dots', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'Nested': { + 'StringArg': 'foo', + 'OtherArg': true, + 'RecursiveArg': {'StringArg': 'baz'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - NestedStructuresInputAwsQuerySerializer(), - StructArgAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + NestedStructuresInputAwsQuerySerializer(), + StructArgAwsQuerySerializer(), + ], + ); + }); } class NestedStructuresInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructuresInputAwsQuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [NestedStructuresInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructuresInput deserialize( @@ -96,10 +87,13 @@ class NestedStructuresInputAwsQuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -125,11 +119,8 @@ class StructArgAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructArg deserialize( @@ -148,20 +139,27 @@ class StructArgAwsQuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart index d1b8b79f96..7e9be598bd 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,75 +10,63 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryNoInputAndNoOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNoInputAndNoOutput', - documentation: 'No input serializes no additional query params', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=NoInputAndNoOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'QueryNoInputAndNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryNoInputAndNoOutput', - documentation: - 'Empty output. Note that no assertion is made on the output body itself.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('QueryNoInputAndNoOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNoInputAndNoOutput', + documentation: 'No input serializes no additional query params', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=NoInputAndNoOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('QueryNoInputAndNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryNoInputAndNoOutput', + documentation: + 'Empty output. Note that no assertion is made on the output body itself.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart index 883e8e2810..24938962aa 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,93 +13,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryNoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNoInputAndOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=NoInputAndOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NoInputAndOutputInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryNoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryNoInputAndOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryNoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNoInputAndOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=NoInputAndOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NoInputAndOutputInputAwsQuerySerializer()], + ); + }); + _i1.test('QueryNoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryNoInputAndOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputAwsQuerySerializer()], + ); + }); } class NoInputAndOutputInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputInputAwsQuerySerializer() - : super('NoInputAndOutputInput'); + : super('NoInputAndOutputInput'); @override Iterable get types => const [NoInputAndOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputInput deserialize( @@ -123,18 +108,15 @@ class NoInputAndOutputInputAwsQuerySerializer class NoInputAndOutputOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputAwsQuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart index c31dd8b77e..428f807d18 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,103 +12,105 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_awsQuery (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_awsQuery', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', + _i1.test( + 'SDKAppliedContentEncoding_awsQuery (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputAwsQuerySerializer()], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsQuery protocol.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_awsQuery', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputAwsQuerySerializer()], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputAwsQuerySerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsQuery protocol.\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputAwsQuerySerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputAwsQuerySerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override PutWithContentEncodingInput deserialize( @@ -127,15 +129,19 @@ class PutWithContentEncodingInputAwsQuerySerializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart index 2fc5f69987..ae2b457cc3 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,8 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('QueryProtocolIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryProtocolIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000000', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); _i1.test( - 'QueryProtocolIdempotencyTokenAutoFillIsSet (request)', + 'QueryProtocolIdempotencyTokenAutoFill (request)', () async { await _i2.httpRequestTest( operation: QueryIdempotencyTokenAutoFillOperation( @@ -59,17 +21,14 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'QueryProtocolIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), + id: 'QueryProtocolIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), authScheme: null, body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000123', + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000000', bodyMediaType: 'application/x-www-form-urlencoded', - params: {'token': '00000000-0000-4000-8000-000000000123'}, + params: {}, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -86,28 +45,61 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() + QueryIdempotencyTokenAutoFillInputAwsQuerySerializer(), ], ); }, + skip: 'bool.fromEnvironment is not working in tests for some reason', ); + _i1.test('QueryProtocolIdempotencyTokenAutoFillIsSet (request)', () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryProtocolIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000123', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'token': '00000000-0000-4000-8000-000000000123'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputAwsQuerySerializer(), + ], + ); + }); } class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -126,10 +118,12 @@ class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_lists_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_lists_operation_test.dart index cf1b301fd1..d952fcad60 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.query_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,76 +15,27 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryLists (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryLists', - documentation: 'Serializes query lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&ComplexListArg.member.1.hi=hello&ComplexListArg.member.2.hi=hola', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArg': [ - 'foo', - 'bar', - 'baz', - ], - 'ComplexListArg': [ - {'hi': 'hello'}, - {'hi': 'hola'}, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test('EmptyQueryLists (request)', () async { + _i1.test('QueryLists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'EmptyQueryLists', - documentation: 'Serializes empty query lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), + id: 'QueryLists', + documentation: 'Serializes query lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&ListArg=', + body: + 'Action=QueryLists&Version=2020-01-08&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&ComplexListArg.member.1.hi=hello&ComplexListArg.member.2.hi=hola', bodyMediaType: 'application/x-www-form-urlencoded', - params: {'ListArg': []}, + params: { + 'ListArg': ['foo', 'bar', 'baz'], + 'ComplexListArg': [ + {'hi': 'hello'}, + {'hi': 'hola'}, + ], + }, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -106,9 +57,9 @@ void main() { NestedStructWithListAwsQuerySerializer(), ], ); - }, skip: 'Unclear how to reconcile with QueryEmptyQueryMaps'); + }); _i1.test( - 'FlattenedQueryLists (request)', + 'EmptyQueryLists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( @@ -116,23 +67,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'FlattenedQueryLists', - documentation: - 'Flattens query lists by repeating the member name and removing the member element', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), + id: 'EmptyQueryLists', + documentation: 'Serializes empty query lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&FlattenedListArg.1=A&FlattenedListArg.2=B', + body: 'Action=QueryLists&Version=2020-01-08&ListArg=', bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedListArg': [ - 'A', - 'B', - ] - }, + params: {'ListArg': []}, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -155,153 +96,167 @@ void main() { ], ); }, + skip: 'Unclear how to reconcile with QueryEmptyQueryMaps', ); - _i1.test( - 'QueryListArgWithXmlNameMember (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryListArgWithXmlNameMember', - documentation: 'Changes the member of lists using xmlName trait', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.item.1=A&ListArgWithXmlNameMember.item.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArgWithXmlNameMember': [ - 'A', - 'B', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryFlattenedListArgWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryFlattenedListArgWithXmlName', - documentation: - 'Changes the name of flattened lists using xmlName trait on the structure member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedListArgWithXmlName': [ - 'A', - 'B', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryNestedStructWithList (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNestedStructWithList', - documentation: 'Nested structure with a list member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.member.1=A&NestedWithList.ListArg.member.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'NestedWithList': { - 'ListArg': [ - 'A', - 'B', - ] - } + _i1.test('FlattenedQueryLists (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlattenedQueryLists', + documentation: + 'Flattens query lists by repeating the member name and removing the member element', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&FlattenedListArg.1=A&FlattenedListArg.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedListArg': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryListArgWithXmlNameMember (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryListArgWithXmlNameMember', + documentation: 'Changes the member of lists using xmlName trait', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.item.1=A&ListArgWithXmlNameMember.item.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ListArgWithXmlNameMember': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryFlattenedListArgWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryFlattenedListArgWithXmlName', + documentation: + 'Changes the name of flattened lists using xmlName trait on the structure member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedListArgWithXmlName': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryNestedStructWithList (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNestedStructWithList', + documentation: 'Nested structure with a list member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.member.1=A&NestedWithList.ListArg.member.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'NestedWithList': { + 'ListArg': ['A', 'B'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); } class QueryListsInputAwsQuerySerializer @@ -313,11 +268,8 @@ class QueryListsInputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryListsInput deserialize( @@ -336,50 +288,63 @@ class QueryListsInputAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i4.BuiltList)); + result.complexListArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltList), + ); case 'FlattenedListArg': - result.flattenedListArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArgWithXmlNameMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'FlattenedListArgWithXmlName': - result.flattenedListArgWithXmlName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListArgWithXmlName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -405,11 +370,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -428,10 +390,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -451,18 +415,15 @@ class GreetingStructAwsQuerySerializer class NestedStructWithListAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListAwsQuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [NestedStructWithList]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithList deserialize( @@ -481,13 +442,15 @@ class NestedStructWithListAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_maps_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_maps_operation_test.dart index c9658ad40a..78c9c1998d 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_maps_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.query_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,438 +15,363 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QuerySimpleQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleQueryMaps', - documentation: 'Serializes query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&MapArg.entry.1.key=bar&MapArg.entry.1.value=Bar&MapArg.entry.2.key=foo&MapArg.entry.2.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'MapArg': { - 'bar': 'Bar', - 'foo': 'Foo', - } + _i1.test('QuerySimpleQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleQueryMaps', + documentation: 'Serializes query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&MapArg.entry.1.key=bar&MapArg.entry.1.value=Bar&MapArg.entry.2.key=foo&MapArg.entry.2.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'MapArg': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QuerySimpleQueryMapsWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleQueryMapsWithXmlName', + documentation: 'Serializes query maps and uses xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&Foo.entry.1.key=foo&Foo.entry.1.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'RenamedMapArg': {'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryComplexQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryComplexQueryMaps', + documentation: 'Serializes complex query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&ComplexMapArg.entry.1.key=bar&ComplexMapArg.entry.1.value.hi=Bar&ComplexMapArg.entry.2.key=foo&ComplexMapArg.entry.2.value.hi=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ComplexMapArg': { + 'bar': {'hi': 'Bar'}, + 'foo': {'hi': 'Foo'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QuerySimpleQueryMapsWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleQueryMapsWithXmlName', - documentation: 'Serializes query maps and uses xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&Foo.entry.1.key=foo&Foo.entry.1.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'RenamedMapArg': {'foo': 'Foo'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryEmptyQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryEmptyQueryMaps', + documentation: 'Does not serialize empty query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=QueryMaps&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'MapArg': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryQueryMapWithMemberXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryQueryMapWithMemberXmlName', + documentation: + 'Serializes query maps where the member has an xmlName trait', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&MapWithXmlMemberName.entry.1.K=bar&MapWithXmlMemberName.entry.1.V=Bar&MapWithXmlMemberName.entry.2.K=foo&MapWithXmlMemberName.entry.2.V=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'MapWithXmlMemberName': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryFlattenedQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryFlattenedQueryMaps', + documentation: 'Serializes flattened query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&FlattenedMap.1.key=bar&FlattenedMap.1.value=Bar&FlattenedMap.2.key=foo&FlattenedMap.2.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedMap': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryFlattenedQueryMapsWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryFlattenedQueryMapsWithXmlName', + documentation: 'Serializes flattened query maps that use an xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&Hi.1.K=bar&Hi.1.V=Bar&Hi.2.K=foo&Hi.2.V=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedMapWithXmlName': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryQueryMapOfLists (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryQueryMapOfLists', + documentation: 'Serializes query map of lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&MapOfLists.entry.1.key=bar&MapOfLists.entry.1.value.member.1=C&MapOfLists.entry.1.value.member.2=D&MapOfLists.entry.2.key=foo&MapOfLists.entry.2.value.member.1=A&MapOfLists.entry.2.value.member.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'MapOfLists': { + 'bar': ['C', 'D'], + 'foo': ['A', 'B'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryComplexQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryComplexQueryMaps', - documentation: 'Serializes complex query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&ComplexMapArg.entry.1.key=bar&ComplexMapArg.entry.1.value.hi=Bar&ComplexMapArg.entry.2.key=foo&ComplexMapArg.entry.2.value.hi=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ComplexMapArg': { - 'bar': {'hi': 'Bar'}, - 'foo': {'hi': 'Foo'}, - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryNestedStructWithMap (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNestedStructWithMap', + documentation: 'Serializes nested struct with map member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&NestedStructWithMap.MapArg.entry.1.key=bar&NestedStructWithMap.MapArg.entry.1.value=Bar&NestedStructWithMap.MapArg.entry.2.key=foo&NestedStructWithMap.MapArg.entry.2.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'NestedStructWithMap': { + 'MapArg': {'bar': 'Bar', 'foo': 'Foo'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryEmptyQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryEmptyQueryMaps', - documentation: 'Does not serialize empty query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=QueryMaps&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'MapArg': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryQueryMapWithMemberXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryQueryMapWithMemberXmlName', - documentation: - 'Serializes query maps where the member has an xmlName trait', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&MapWithXmlMemberName.entry.1.K=bar&MapWithXmlMemberName.entry.1.V=Bar&MapWithXmlMemberName.entry.2.K=foo&MapWithXmlMemberName.entry.2.V=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'MapWithXmlMemberName': { - 'bar': 'Bar', - 'foo': 'Foo', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryFlattenedQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryFlattenedQueryMaps', - documentation: 'Serializes flattened query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&FlattenedMap.1.key=bar&FlattenedMap.1.value=Bar&FlattenedMap.2.key=foo&FlattenedMap.2.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedMap': { - 'bar': 'Bar', - 'foo': 'Foo', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryFlattenedQueryMapsWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryFlattenedQueryMapsWithXmlName', - documentation: 'Serializes flattened query maps that use an xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&Hi.1.K=bar&Hi.1.V=Bar&Hi.2.K=foo&Hi.2.V=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedMapWithXmlName': { - 'bar': 'Bar', - 'foo': 'Foo', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryQueryMapOfLists (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryQueryMapOfLists', - documentation: 'Serializes query map of lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&MapOfLists.entry.1.key=bar&MapOfLists.entry.1.value.member.1=C&MapOfLists.entry.1.value.member.2=D&MapOfLists.entry.2.key=foo&MapOfLists.entry.2.value.member.1=A&MapOfLists.entry.2.value.member.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'MapOfLists': { - 'bar': [ - 'C', - 'D', - ], - 'foo': [ - 'A', - 'B', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryNestedStructWithMap (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNestedStructWithMap', - documentation: 'Serializes nested struct with map member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&NestedStructWithMap.MapArg.entry.1.key=bar&NestedStructWithMap.MapArg.entry.1.value=Bar&NestedStructWithMap.MapArg.entry.2.key=foo&NestedStructWithMap.MapArg.entry.2.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'NestedStructWithMap': { - 'MapArg': { - 'bar': 'Bar', - 'foo': 'Foo', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); } class QueryMapsInputAwsQuerySerializer @@ -458,11 +383,8 @@ class QueryMapsInputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryMapsInput deserialize( @@ -481,87 +403,90 @@ class QueryMapsInputAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.mapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'RenamedMapArg': - result.renamedMapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.renamedMapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'ComplexMapArg': - result.complexMapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.complexMapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); case 'MapWithXmlMemberName': - result.mapWithXmlMemberName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.mapWithXmlMemberName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'FlattenedMap': - result.flattenedMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.flattenedMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'FlattenedMapWithXmlName': - result.flattenedMapWithXmlName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.flattenedMapWithXmlName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'MapOfLists': - result.mapOfLists.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.mapOfLists.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); case 'NestedStructWithMap': - result.nestedStructWithMap.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithMap), - ) as NestedStructWithMap)); + result.nestedStructWithMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithMap), + ) + as NestedStructWithMap), + ); } } @@ -587,11 +512,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -610,10 +532,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -639,11 +563,8 @@ class NestedStructWithMapAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithMap deserialize( @@ -662,16 +583,16 @@ class NestedStructWithMapAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.mapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_timestamps_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_timestamps_operation_test.dart index 94800d1ef4..a057b620ad 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/query_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.query_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryTimestampsInput (request)', - () async { - await _i2.httpRequestTest( - operation: QueryTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryTimestampsInput', - documentation: 'Serializes timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryTimestamps&Version=2020-01-08&normalFormat=2015-01-25T08%3A00%3A00Z&epochMember=1422172800&epochTarget=1422172800', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'normalFormat': 1422172800, - 'epochMember': 1422172800, - 'epochTarget': 1422172800, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryTimestampsInputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryTimestampsInput (request)', () async { + await _i2.httpRequestTest( + operation: QueryTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryTimestampsInput', + documentation: 'Serializes timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryTimestamps&Version=2020-01-08&normalFormat=2015-01-25T08%3A00%3A00Z&epochMember=1422172800&epochTarget=1422172800', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'normalFormat': 1422172800, + 'epochMember': 1422172800, + 'epochTarget': 1422172800, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryTimestampsInputAwsQuerySerializer()], + ); + }); } class QueryTimestampsInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const QueryTimestampsInputAwsQuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [QueryTimestampsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryTimestampsInput deserialize( @@ -90,11 +81,8 @@ class QueryTimestampsInputAwsQuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.normalFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochMember': result.epochMember = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart index 645a9bb51c..6dd529e7c2 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.recursive_xml_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,71 +14,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryRecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveXmlShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryRecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { + _i1.test('QueryRecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveXmlShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryRecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveXmlShapesOutputAwsQuerySerializer(), - RecursiveXmlShapesOutputNested1AwsQuerySerializer(), - RecursiveXmlShapesOutputNested2AwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveXmlShapesOutputAwsQuerySerializer(), + RecursiveXmlShapesOutputNested1AwsQuerySerializer(), + RecursiveXmlShapesOutputNested2AwsQuerySerializer(), + ], + ); + }); } class RecursiveXmlShapesOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputAwsQuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [RecursiveXmlShapesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -97,10 +88,15 @@ class RecursiveXmlShapesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -120,18 +116,15 @@ class RecursiveXmlShapesOutputAwsQuerySerializer class RecursiveXmlShapesOutputNested1AwsQuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [RecursiveXmlShapesOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -150,15 +143,22 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -178,18 +178,15 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer class RecursiveXmlShapesOutputNested2AwsQuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [RecursiveXmlShapesOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -208,15 +205,22 @@ class RecursiveXmlShapesOutputNested2AwsQuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_input_params_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_input_params_operation_test.dart index b311b47f2e..811c34a783 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_input_params_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_input_params_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.simple_input_params_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,459 +15,375 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QuerySimpleInputParamsStrings (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsStrings', - documentation: 'Serializes strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Bar': 'val2', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsStringAndBooleanTrue (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsStringAndBooleanTrue', - documentation: 'Serializes booleans that are true', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Baz': true, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsStringsAndBooleanFalse (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsStringsAndBooleanFalse', - documentation: 'Serializes booleans that are false', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Baz': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsInteger (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsInteger', - documentation: 'Serializes integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Bam': 10}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsFloat (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsFloat', - documentation: 'Serializes floats', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Boo': 10.8}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsBlob (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsBlob', - documentation: 'Blobs are base64 encoded in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Qux': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryEnums (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryEnums', - documentation: 'Serializes enums in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'FooEnum': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryIntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryIntEnums', - documentation: 'Serializes intEnums in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&IntegerEnum=1', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'IntegerEnum': 1}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQuerySupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'NaN', - 'Boo': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQuerySupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'Infinity', - 'Boo': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQuerySupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': '-Infinity', - 'Boo': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QuerySimpleInputParamsStrings (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsStrings', + documentation: 'Serializes strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Bar': 'val2'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsStringAndBooleanTrue (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsStringAndBooleanTrue', + documentation: 'Serializes booleans that are true', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Baz': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsStringsAndBooleanFalse (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsStringsAndBooleanFalse', + documentation: 'Serializes booleans that are false', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Baz': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsInteger (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsInteger', + documentation: 'Serializes integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Bam': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsFloat (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsFloat', + documentation: 'Serializes floats', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Boo': 10.8}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsBlob (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsBlob', + documentation: 'Blobs are base64 encoded in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Qux': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QueryEnums (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryEnums', + documentation: 'Serializes enums in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FooEnum': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QueryIntEnums (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryIntEnums', + documentation: 'Serializes intEnums in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&IntegerEnum=1', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'IntegerEnum': 1}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQuerySupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQuerySupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'NaN', 'Boo': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQuerySupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQuerySupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'Infinity', 'Boo': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQuerySupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQuerySupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': '-Infinity', 'Boo': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); } class SimpleInputParamsInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const SimpleInputParamsInputAwsQuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [SimpleInputParamsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleInputParamsInput deserialize( @@ -486,50 +402,68 @@ class SimpleInputParamsInputAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'IntegerEnum': - result.integerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart index 718ede8cff..d54e3b1dd6 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.simple_scalar_xml_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,183 +13,147 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QuerySimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QuerySimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringValue': 'string', - 'emptyStringValue': '', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNaNFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQuerySupportsNaNFloatOutputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n NaN\n NaN\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQuerySupportsInfinityFloatOutputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Infinity\n Infinity\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNegativeInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQuerySupportsNegativeInfinityFloatOutputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n -Infinity\n -Infinity\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QuerySimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QuerySimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringValue': 'string', + 'emptyStringValue': '', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); + _i1.test('AwsQuerySupportsNaNFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQuerySupportsNaNFloatOutputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n NaN\n NaN\n \n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); + _i1.test('AwsQuerySupportsInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQuerySupportsInfinityFloatOutputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Infinity\n Infinity\n \n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); + _i1.test('AwsQuerySupportsNegativeInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQuerySupportsNegativeInfinityFloatOutputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n -Infinity\n -Infinity\n \n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); } class SimpleScalarXmlPropertiesOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [SimpleScalarXmlPropertiesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -208,55 +172,75 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_blobs_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_blobs_operation_test.dart index 2149e12acd..e5583a03a0 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,39 +14,33 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n dmFsdWU=\n \n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n dmFsdWU=\n \n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], + ); + }); } class XmlBlobsOutputAwsQuerySerializer @@ -58,11 +52,8 @@ class XmlBlobsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlBlobsOutput deserialize( @@ -81,10 +72,12 @@ class XmlBlobsOutputAwsQuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart index bb2c674b37..bb8239ff1a 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_empty_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,73 +14,61 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEmptyBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptyBlobs', - documentation: 'Empty blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlEmptySelfClosedBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptySelfClosedBlobs', - documentation: - 'Empty self closed blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlEmptyBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptyBlobs', + documentation: 'Empty blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlEmptySelfClosedBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptySelfClosedBlobs', + documentation: + 'Empty self closed blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], + ); + }); } class XmlBlobsOutputAwsQuerySerializer @@ -92,11 +80,8 @@ class XmlBlobsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlBlobsOutput deserialize( @@ -115,10 +100,12 @@ class XmlBlobsOutputAwsQuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart index 4cdb57c2a8..e97e7c6b39 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,45 +15,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEmptyLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptyLists', - documentation: 'Deserializes empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputAwsQuerySerializer(), - StructureListMemberAwsQuerySerializer(), - ], - ); - }, - ); + _i1.test('QueryXmlEmptyLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptyLists', + documentation: 'Deserializes empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputAwsQuerySerializer(), + StructureListMemberAwsQuerySerializer(), + ], + ); + }); } class XmlListsOutputAwsQuerySerializer @@ -65,11 +56,8 @@ class XmlListsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlListsOutput deserialize( @@ -88,123 +76,141 @@ class XmlListsOutputAwsQuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -230,11 +236,8 @@ class StructureListMemberAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructureListMember deserialize( @@ -253,15 +256,19 @@ class StructureListMemberAwsQuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart index 84d956b3cd..e876c9e165 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_empty_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,78 +14,66 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEmptyMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptyMaps', - documentation: 'Deserializes Empty XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryXmlEmptySelfClosedMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptySelfClosedMaps', - documentation: 'Deserializes Self-Closed XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); + _i1.test('QueryXmlEmptyMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptyMaps', + documentation: 'Deserializes Empty XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryXmlEmptySelfClosedMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptySelfClosedMaps', + documentation: 'Deserializes Self-Closed XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); } class XmlMapsOutputAwsQuerySerializer @@ -97,11 +85,8 @@ class XmlMapsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsOutput deserialize( @@ -120,16 +105,16 @@ class XmlMapsOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -155,11 +140,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -178,10 +160,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_enums_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_enums_operation_test.dart index 13b0ed94a3..9a8b794ec3 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,55 +14,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlEnumsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlEnumsOutputAwsQuerySerializer()], + ); + }); } class XmlEnumsOutputAwsQuerySerializer @@ -74,11 +59,8 @@ class XmlEnumsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlEnumsOutput deserialize( @@ -97,47 +79,57 @@ class XmlEnumsOutputAwsQuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart index cd9aac27b9..1126e92c86 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,55 +13,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlIntEnumsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlIntEnumsOutputAwsQuerySerializer()], + ); + }); } class XmlIntEnumsOutputAwsQuerySerializer @@ -73,11 +58,8 @@ class XmlIntEnumsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlIntEnumsOutput deserialize( @@ -96,47 +78,53 @@ class XmlIntEnumsOutputAwsQuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i4.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_lists_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_lists_operation_test.dart index b0c7353df9..9eac340683 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,111 +15,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'flattenedListWithMemberNamespace': [ - 'a', - 'b', - ], - 'flattenedListWithNamespace': [ - 'a', - 'b', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputAwsQuerySerializer(), - StructureListMemberAwsQuerySerializer(), - ], - ); - }, - ); + _i1.test('QueryXmlLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'flattenedListWithMemberNamespace': ['a', 'b'], + 'flattenedListWithNamespace': ['a', 'b'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputAwsQuerySerializer(), + StructureListMemberAwsQuerySerializer(), + ], + ); + }); } class XmlListsOutputAwsQuerySerializer @@ -131,11 +77,8 @@ class XmlListsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlListsOutput deserialize( @@ -154,123 +97,141 @@ class XmlListsOutputAwsQuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -296,11 +257,8 @@ class StructureListMemberAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructureListMember deserialize( @@ -319,15 +277,19 @@ class StructureListMemberAwsQuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_operation_test.dart index 5a329ba062..b8f283d252 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,47 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlMaps', - documentation: 'Tests for XML map serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('QueryXmlMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlMaps', + documentation: 'Tests for XML map serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); } class XmlMapsOutputAwsQuerySerializer @@ -66,11 +60,8 @@ class XmlMapsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsOutput deserialize( @@ -89,16 +80,16 @@ class XmlMapsOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -124,11 +115,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -147,10 +135,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart index d56a334f5a..01da84102c 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_maps_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,64 +14,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryXmlMapsXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryXmlMapsXmlName', - documentation: 'Serializes XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('QueryQueryXmlMapsXmlName (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryXmlMapsXmlName', + documentation: 'Serializes XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsXmlNameOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsXmlNameOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); } class XmlMapsXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const XmlMapsXmlNameOutputAwsQuerySerializer() - : super('XmlMapsXmlNameOutput'); + : super('XmlMapsXmlNameOutput'); @override Iterable get types => const [XmlMapsXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsXmlNameOutput deserialize( @@ -90,16 +81,16 @@ class XmlMapsXmlNameOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -125,11 +116,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -148,10 +136,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart index 2e2438b387..370a580564 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_namespaces_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,50 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlNamespaces (response)', - () async { - await _i2.httpResponseTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n Foo\n \n Bar\n Baz\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + _i1.test('QueryXmlNamespaces (response)', () async { + await _i2.httpResponseTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n Foo\n \n Bar\n Baz\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlNamespacesOutputAwsQuerySerializer(), - XmlNamespaceNestedAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlNamespacesOutputAwsQuerySerializer(), + XmlNamespaceNestedAwsQuerySerializer(), + ], + ); + }); } class XmlNamespacesOutputAwsQuerySerializer @@ -69,11 +60,8 @@ class XmlNamespacesOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespacesOutput deserialize( @@ -92,10 +80,13 @@ class XmlNamespacesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -121,11 +112,8 @@ class XmlNamespaceNestedAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespaceNested deserialize( @@ -144,18 +132,22 @@ class XmlNamespaceNestedAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart index 358e38aa9d..b98409cfa3 100644 --- a/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v1.query_protocol.test.xml_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,242 +12,200 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2014-04-29T18:30:38Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2014-04-29T18:30:38Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithDateTimeOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2014-04-29T18:30:38Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 1398796238\n \n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithEpochSecondsOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 1398796238\n \n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithHttpDateOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2014-04-29T18:30:38Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2014-04-29T18:30:38Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithDateTimeOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2014-04-29T18:30:38Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 1398796238\n \n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithEpochSecondsOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 1398796238\n \n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithHttpDateOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); } class XmlTimestampsOutputAwsQuerySerializer @@ -259,11 +217,8 @@ class XmlTimestampsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlTimestampsOutput deserialize( @@ -292,34 +247,22 @@ class XmlTimestampsOutputAwsQuerySerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/ec2_protocol.dart b/packages/smithy/goldens/lib/ec2Query/lib/ec2_protocol.dart index 33b4df3c55..c11a1a04da 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/ec2_protocol.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/ec2_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// An EC2 query service that sends query requests and XML responses. library ec2_query_v1.ec2_protocol; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart index ad5a30935d..4a1ded0887 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'EC2 Protocol'; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/serializers.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/serializers.dart index b18e229825..6fb250ee1e 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -94,74 +94,33 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(GreetingStruct)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(GreetingStruct)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart index f2e7c87e44..6ea6114d3f 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.ec2_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -60,11 +60,11 @@ class Ec2ProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -76,17 +76,15 @@ class Ec2ProtocolClient { final List<_i2.HttpResponseInterceptor> _responseInterceptors; - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. @@ -99,10 +97,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -111,10 +106,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -126,37 +118,30 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -165,24 +150,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response". - _i2.SmithyOperation ignoresWrappingXmlName( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation ignoresWrappingXmlName({ + _i1.AWSHttpClient? client, + }) { return IgnoresWrappingXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes nested and recursive structure members. @@ -195,24 +175,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -225,10 +200,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes simple and complex lists. @@ -241,10 +213,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. @@ -257,24 +226,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes - _i2.SmithyOperation recursiveXmlShapes( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation recursiveXmlShapes({ + _i1.AWSHttpClient? client, + }) { return RecursiveXmlShapesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes strings, numbers, and boolean values. @@ -287,23 +251,17 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation - simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { + simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { return SimpleScalarXmlPropertiesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Blobs are base64 encoded @@ -313,36 +271,29 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyBlobs( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyBlobs({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyBlobsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyLists( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyLists({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyListsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -352,24 +303,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes intEnums as top level properties, in lists, sets, and maps. - _i2.SmithyOperation xmlIntEnums( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlIntEnums({ + _i1.AWSHttpClient? client, + }) { return XmlIntEnumsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. @@ -379,36 +325,29 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlNamespaces( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlNamespaces({ + _i1.AWSHttpClient? client, + }) { return XmlNamespacesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. - _i2.SmithyOperation xmlTimestamps( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlTimestamps({ + _i1.AWSHttpClient? client, + }) { return XmlTimestampsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart index 620cc2e67b..46e0a77e37 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart @@ -1,4 +1,4 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.ec2_protocol_server; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.dart index a1e049f222..a70b11af5e 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigEc2QuerySerializer() + AwsConfigEc2QuerySerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigEc2QuerySerializer const AwsConfigEc2QuerySerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigEc2QuerySerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -119,24 +104,28 @@ class AwsConfigEc2QuerySerializer const _i2.XmlElementName( 'AwsConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('ClockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('ScopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.dart index 9c841fec3a..1d7bb96cc5 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigEc2QuerySerializer() + ClientConfigEc2QuerySerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigEc2QuerySerializer const ClientConfigEc2QuerySerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigEc2QuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -189,7 +179,7 @@ class ClientConfigEc2QuerySerializer const _i2.XmlElementName( 'ClientConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -198,63 +188,71 @@ class ClientConfigEc2QuerySerializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('Aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('Aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('Aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('Region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('S3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('Retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('Aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.dart index 3f39040b5b..732cac18e9 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorEc2QuerySerializer() + ComplexErrorEc2QuerySerializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.ec2', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorEc2QuerySerializer const ComplexErrorEc2QuerySerializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexError deserialize( @@ -143,15 +122,20 @@ class ComplexErrorEc2QuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -168,24 +152,28 @@ class ComplexErrorEc2QuerySerializer const _i2.XmlElementName( 'ComplexErrorResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexError(:topLevel, :nested) = object; if (topLevel != null) { result$ ..add(const _i2.XmlElementName('TopLevel')) - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart index 23c7524d7c..983c1d05f9 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataEc2QuerySerializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataEc2QuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,16 +93,15 @@ class ComplexNestedErrorDataEc2QuerySerializer const _i2.XmlElementName( 'ComplexNestedErrorDataResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexNestedErrorData(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart index 76a800f56b..07aba4f204 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputEc2QuerySerializer() + DatetimeOffsetsOutputEc2QuerySerializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputEc2QuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -105,16 +98,15 @@ class DatetimeOffsetsOutputEc2QuerySerializer const _i2.XmlElementName( 'DatetimeOffsetsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final DatetimeOffsetsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('Datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart index 3afb8996c1..75233f2588 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputEc2QuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputInputEc2QuerySerializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -89,7 +87,7 @@ class EmptyInputAndEmptyOutputInputEc2QuerySerializer const _i1.XmlElementName( 'EmptyInputAndEmptyOutputInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart index 038971667a..909afb92c3 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputEc2QuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputOutputEc2QuerySerializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -86,7 +84,7 @@ class EmptyInputAndEmptyOutputOutputEc2QuerySerializer const _i2.XmlElementName( 'EmptyInputAndEmptyOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.dart index 123a211ceb..cc83dbea5d 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigEc2QuerySerializer() + EnvironmentConfigEc2QuerySerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigEc2QuerySerializer const EnvironmentConfigEc2QuerySerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigEc2QuerySerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -173,7 +163,7 @@ class EnvironmentConfigEc2QuerySerializer const _i2.XmlElementName( 'EnvironmentConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -181,55 +171,67 @@ class EnvironmentConfigEc2QuerySerializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart index 4be3041174..95fd2f9248 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsEc2QuerySerializer() + FileConfigSettingsEc2QuerySerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsEc2QuerySerializer const FileConfigSettingsEc2QuerySerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsEc2QuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -190,7 +179,7 @@ class FileConfigSettingsEc2QuerySerializer const _i2.XmlElementName( 'FileConfigSettingsResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -199,63 +188,71 @@ class FileConfigSettingsEc2QuerySerializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('Aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('Aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('Aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('Region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('S3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('Retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('Max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart index f5c9fdd123..ba6fc21091 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart index 13a549531e..99e790da38 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,19 +13,13 @@ part 'fractional_seconds_output.g.dart'; abstract class FractionalSecondsOutput with _i1.AWSEquatable implements Built { - factory FractionalSecondsOutput({ - DateTime? datetime, - DateTime? httpdate, - }) { - return _$FractionalSecondsOutput._( - datetime: datetime, - httpdate: httpdate, - ); + factory FractionalSecondsOutput({DateTime? datetime, DateTime? httpdate}) { + return _$FractionalSecondsOutput._(datetime: datetime, httpdate: httpdate); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -33,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputEc2QuerySerializer()]; @@ -42,22 +35,14 @@ abstract class FractionalSecondsOutput DateTime? get datetime; DateTime? get httpdate; @override - List get props => [ - datetime, - httpdate, - ]; + List get props => [datetime, httpdate]; @override String toString() { - final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ) - ..add( - 'httpdate', - httpdate, - ); + final helper = + newBuiltValueToStringHelper('FractionalSecondsOutput') + ..add('datetime', datetime) + ..add('httpdate', httpdate); return helper.toString(); } } @@ -65,21 +50,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputEc2QuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override FractionalSecondsOutput deserialize( @@ -123,24 +105,22 @@ class FractionalSecondsOutputEc2QuerySerializer const _i2.XmlElementName( 'FractionalSecondsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FractionalSecondsOutput(:datetime, :httpdate) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('Datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } if (httpdate != null) { result$ ..add(const _i2.XmlElementName('Httpdate')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpdate, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize(serializers, httpdate), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart index 3a5eec6161..572b751ff7 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart @@ -12,16 +12,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? httpdate; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime, this.httpdate}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => @@ -85,7 +85,8 @@ class FractionalSecondsOutputBuilder FractionalSecondsOutput build() => _build(); _$FractionalSecondsOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$FractionalSecondsOutput._(datetime: datetime, httpdate: httpdate); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart index e58ae25f94..4603c83fe5 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructEc2QuerySerializer() + GreetingStructEc2QuerySerializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructEc2QuerySerializer const GreetingStructEc2QuerySerializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructEc2QuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -96,16 +88,13 @@ class GreetingStructEc2QuerySerializer const _i2.XmlElementName( 'GreetingStructResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingStruct(:hi) = object; if (hi != null) { result$ ..add(const _i2.XmlElementName('Hi')) - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart index b206573b2f..50780403ed 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputEc2QuerySerializer()]; + serializers = [GreetingWithErrorsOutputEc2QuerySerializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputEc2QuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -85,10 +78,12 @@ class GreetingWithErrorsOutputEc2QuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -105,16 +100,18 @@ class GreetingWithErrorsOutputEc2QuerySerializer const _i2.XmlElementName( 'GreetingWithErrorsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingWithErrorsOutput(:greeting) = object; if (greeting != null) { result$ ..add(const _i2.XmlElementName('Greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart index 7d0e3cee70..d5af0139ad 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputEc2QuerySerializer() + HostLabelInputEc2QuerySerializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputEc2QuerySerializer const HostLabelInputEc2QuerySerializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputEc2QuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,15 +107,14 @@ class HostLabelInputEc2QuerySerializer const _i1.XmlElementName( 'HostLabelInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final HostLabelInput(:label) = object; result$ ..add(const _i1.XmlElementName('Label')) - ..add(serializers.serialize( - label, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(label, specifiedType: const FullType(String)), + ); return result$; } } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart index d9a4832962..7d09bff12f 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.ignores_wrapping_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignores_wrapping_xml_name_output.g.dart'; abstract class IgnoresWrappingXmlNameOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { factory IgnoresWrappingXmlNameOutput({String? foo}) { return _$IgnoresWrappingXmlNameOutput._(foo: foo); } - factory IgnoresWrappingXmlNameOutput.build( - [void Function(IgnoresWrappingXmlNameOutputBuilder) updates]) = - _$IgnoresWrappingXmlNameOutput; + factory IgnoresWrappingXmlNameOutput.build([ + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ]) = _$IgnoresWrappingXmlNameOutput; const IgnoresWrappingXmlNameOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoresWrappingXmlNameOutput factory IgnoresWrappingXmlNameOutput.fromResponse( IgnoresWrappingXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoresWrappingXmlNameOutputEc2QuerySerializer()]; + serializers = [IgnoresWrappingXmlNameOutputEc2QuerySerializer()]; String? get foo; @override @@ -43,10 +43,7 @@ abstract class IgnoresWrappingXmlNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('IgnoresWrappingXmlNameOutput') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -54,21 +51,18 @@ abstract class IgnoresWrappingXmlNameOutput class IgnoresWrappingXmlNameOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputEc2QuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [ - IgnoresWrappingXmlNameOutput, - _$IgnoresWrappingXmlNameOutput, - ]; + IgnoresWrappingXmlNameOutput, + _$IgnoresWrappingXmlNameOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -87,10 +81,12 @@ class IgnoresWrappingXmlNameOutputEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -107,16 +103,15 @@ class IgnoresWrappingXmlNameOutputEc2QuerySerializer const _i2.XmlElementName( 'IgnoreMeResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final IgnoresWrappingXmlNameOutput(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart index 75f7bcb29e..0a62eb4c94 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart @@ -10,16 +10,16 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { @override final String? foo; - factory _$IgnoresWrappingXmlNameOutput( - [void Function(IgnoresWrappingXmlNameOutputBuilder)? updates]) => - (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); + factory _$IgnoresWrappingXmlNameOutput([ + void Function(IgnoresWrappingXmlNameOutputBuilder)? updates, + ]) => (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); _$IgnoresWrappingXmlNameOutput._({this.foo}) : super._(); @override IgnoresWrappingXmlNameOutput rebuild( - void Function(IgnoresWrappingXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoresWrappingXmlNameOutputBuilder toBuilder() => @@ -42,8 +42,10 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { class IgnoresWrappingXmlNameOutputBuilder implements - Builder { + Builder< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { _$IgnoresWrappingXmlNameOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart index a0311e1e74..b51acc9a56 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingEc2QuerySerializer() + InvalidGreetingEc2QuerySerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.ec2', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingEc2QuerySerializer const InvalidGreetingEc2QuerySerializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override InvalidGreeting deserialize( @@ -126,10 +117,12 @@ class InvalidGreetingEc2QuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -146,16 +139,15 @@ class InvalidGreetingEc2QuerySerializer const _i2.XmlElementName( 'InvalidGreetingResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final InvalidGreeting(:message) = object; if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart index c6a5ed15e8..3b08c2865f 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.nested_struct_with_list; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,18 @@ abstract class NestedStructWithList implements Built { factory NestedStructWithList({List? listArg}) { return _$NestedStructWithList._( - listArg: listArg == null ? null : _i2.BuiltList(listArg)); + listArg: listArg == null ? null : _i2.BuiltList(listArg), + ); } - factory NestedStructWithList.build( - [void Function(NestedStructWithListBuilder) updates]) = - _$NestedStructWithList; + factory NestedStructWithList.build([ + void Function(NestedStructWithListBuilder) updates, + ]) = _$NestedStructWithList; const NestedStructWithList._(); static const List<_i3.SmithySerializer> serializers = [ - NestedStructWithListEc2QuerySerializer() + NestedStructWithListEc2QuerySerializer(), ]; _i2.BuiltList? get listArg; @@ -36,10 +37,7 @@ abstract class NestedStructWithList @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructWithList') - ..add( - 'listArg', - listArg, - ); + ..add('listArg', listArg); return helper.toString(); } } @@ -47,21 +45,18 @@ abstract class NestedStructWithList class NestedStructWithListEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListEc2QuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [ - NestedStructWithList, - _$NestedStructWithList, - ]; + NestedStructWithList, + _$NestedStructWithList, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructWithList deserialize( @@ -80,16 +75,18 @@ class NestedStructWithListEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.listArg.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -106,22 +103,21 @@ class NestedStructWithListEc2QuerySerializer const _i3.XmlElementName( 'NestedStructWithListResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructWithList(:listArg) = object; if (listArg != null) { result$ ..add(const _i3.XmlElementName('ListArg')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart index 8018c2a3fb..c180ed47d2 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart @@ -10,16 +10,16 @@ class _$NestedStructWithList extends NestedStructWithList { @override final _i2.BuiltList? listArg; - factory _$NestedStructWithList( - [void Function(NestedStructWithListBuilder)? updates]) => - (new NestedStructWithListBuilder()..update(updates))._build(); + factory _$NestedStructWithList([ + void Function(NestedStructWithListBuilder)? updates, + ]) => (new NestedStructWithListBuilder()..update(updates))._build(); _$NestedStructWithList._({this.listArg}) : super._(); @override NestedStructWithList rebuild( - void Function(NestedStructWithListBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructWithListBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructWithListBuilder toBuilder() => @@ -86,7 +86,10 @@ class NestedStructWithListBuilder _listArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructWithList', _$failedField, e.toString()); + r'NestedStructWithList', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart index b9a517ce8f..b68ef195fe 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.nested_structures_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class NestedStructuresInput return _$NestedStructuresInput._(nested: nested); } - factory NestedStructuresInput.build( - [void Function(NestedStructuresInputBuilder) updates]) = - _$NestedStructuresInput; + factory NestedStructuresInput.build([ + void Function(NestedStructuresInputBuilder) updates, + ]) = _$NestedStructuresInput; const NestedStructuresInput._(); @@ -30,11 +30,10 @@ abstract class NestedStructuresInput NestedStructuresInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - NestedStructuresInputEc2QuerySerializer() + NestedStructuresInputEc2QuerySerializer(), ]; StructArg? get nested; @@ -47,10 +46,7 @@ abstract class NestedStructuresInput @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructuresInput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class NestedStructuresInput class NestedStructuresInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const NestedStructuresInputEc2QuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [ - NestedStructuresInput, - _$NestedStructuresInput, - ]; + NestedStructuresInput, + _$NestedStructuresInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructuresInput deserialize( @@ -91,10 +84,13 @@ class NestedStructuresInputEc2QuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -111,16 +107,18 @@ class NestedStructuresInputEc2QuerySerializer const _i1.XmlElementName( 'NestedStructuresInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructuresInput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart index 664840923e..c02a3d5a4c 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart @@ -10,16 +10,16 @@ class _$NestedStructuresInput extends NestedStructuresInput { @override final StructArg? nested; - factory _$NestedStructuresInput( - [void Function(NestedStructuresInputBuilder)? updates]) => - (new NestedStructuresInputBuilder()..update(updates))._build(); + factory _$NestedStructuresInput([ + void Function(NestedStructuresInputBuilder)? updates, + ]) => (new NestedStructuresInputBuilder()..update(updates))._build(); _$NestedStructuresInput._({this.nested}) : super._(); @override NestedStructuresInput rebuild( - void Function(NestedStructuresInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructuresInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructuresInputBuilder toBuilder() => @@ -84,7 +84,10 @@ class NestedStructuresInputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructuresInput', _$failedField, e.toString()); + r'NestedStructuresInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart index 7385cc7ca0..0118b88891 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputEc2QuerySerializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputEc2QuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NoInputAndOutputOutput deserialize( @@ -83,7 +79,7 @@ class NoInputAndOutputOutputEc2QuerySerializer const _i2.XmlElementName( 'NoInputAndOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.dart index 92580cdd62..c81f7025b4 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigEc2QuerySerializer() + OperationConfigEc2QuerySerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigEc2QuerySerializer const OperationConfigEc2QuerySerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigEc2QuerySerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -101,16 +96,15 @@ class OperationConfigEc2QuerySerializer const _i2.XmlElementName( 'OperationConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('S3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart index d93ed5b9e0..caac559ce2 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -31,17 +33,17 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputEc2QuerySerializer()]; + serializers = [QueryIdempotencyTokenAutoFillInputEc2QuerySerializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -53,12 +55,9 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @@ -66,21 +65,18 @@ abstract class QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -99,10 +95,12 @@ class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -119,16 +117,15 @@ class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer const _i1.XmlElementName( 'QueryIdempotencyTokenAutoFillInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryIdempotencyTokenAutoFillInput(:token) = object; if (token != null) { result$ ..add(const _i1.XmlElementName('Token')) - ..add(serializers.serialize( - token, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(token, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart index d13c11d730..d52f5f3185 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart index c073834794..1413b2b719 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.query_lists_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,17 +27,19 @@ abstract class QueryListsInput listArg: listArg == null ? null : _i3.BuiltList(listArg), complexListArg: complexListArg == null ? null : _i3.BuiltList(complexListArg), - listArgWithXmlNameMember: listArgWithXmlNameMember == null - ? null - : _i3.BuiltList(listArgWithXmlNameMember), + listArgWithXmlNameMember: + listArgWithXmlNameMember == null + ? null + : _i3.BuiltList(listArgWithXmlNameMember), listArgWithXmlName: listArgWithXmlName == null ? null : _i3.BuiltList(listArgWithXmlName), nestedWithList: nestedWithList, ); } - factory QueryListsInput.build( - [void Function(QueryListsInputBuilder) updates]) = _$QueryListsInput; + factory QueryListsInput.build([ + void Function(QueryListsInputBuilder) updates, + ]) = _$QueryListsInput; const QueryListsInput._(); @@ -45,11 +47,10 @@ abstract class QueryListsInput QueryListsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryListsInputEc2QuerySerializer() + QueryListsInputEc2QuerySerializer(), ]; _i3.BuiltList? get listArg; @@ -62,36 +63,22 @@ abstract class QueryListsInput @override List get props => [ - listArg, - complexListArg, - listArgWithXmlNameMember, - listArgWithXmlName, - nestedWithList, - ]; + listArg, + complexListArg, + listArgWithXmlNameMember, + listArgWithXmlName, + nestedWithList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryListsInput') - ..add( - 'listArg', - listArg, - ) - ..add( - 'complexListArg', - complexListArg, - ) - ..add( - 'listArgWithXmlNameMember', - listArgWithXmlNameMember, - ) - ..add( - 'listArgWithXmlName', - listArgWithXmlName, - ) - ..add( - 'nestedWithList', - nestedWithList, - ); + final helper = + newBuiltValueToStringHelper('QueryListsInput') + ..add('listArg', listArg) + ..add('complexListArg', complexListArg) + ..add('listArgWithXmlNameMember', listArgWithXmlNameMember) + ..add('listArgWithXmlName', listArgWithXmlName) + ..add('nestedWithList', nestedWithList); return helper.toString(); } } @@ -101,18 +88,12 @@ class QueryListsInputEc2QuerySerializer const QueryListsInputEc2QuerySerializer() : super('QueryListsInput'); @override - Iterable get types => const [ - QueryListsInput, - _$QueryListsInput, - ]; + Iterable get types => const [QueryListsInput, _$QueryListsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryListsInput deserialize( @@ -131,57 +112,67 @@ class QueryListsInputEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i3.BuiltList)); + result.complexListArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i3.BuiltList), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember - .replace((const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArgWithXmlNameMember.replace( + (const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'Hi': - result.listArgWithXmlName.replace((const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArgWithXmlName.replace( + (const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -198,80 +189,80 @@ class QueryListsInputEc2QuerySerializer const _i1.XmlElementName( 'QueryListsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryListsInput( :listArg, :complexListArg, :listArgWithXmlNameMember, :listArgWithXmlName, - :nestedWithList + :nestedWithList, ) = object; if (listArg != null) { result$ ..add(const _i1.XmlElementName('ListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (complexListArg != null) { result$ ..add(const _i1.XmlElementName('ComplexListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .serialize( - serializers, - complexListArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + complexListArg, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), ), - )); + ); } if (listArgWithXmlNameMember != null) { result$ ..add(const _i1.XmlElementName('ListArgWithXmlNameMember')) - ..add(const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - listArgWithXmlNameMember, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArgWithXmlNameMember, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (listArgWithXmlName != null) { result$ ..add(const _i1.XmlElementName('Hi')) - ..add(const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - listArgWithXmlName, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArgWithXmlName, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (nestedWithList != null) { result$ ..add(const _i1.XmlElementName('NestedWithList')) - ..add(serializers.serialize( - nestedWithList, - specifiedType: const FullType(NestedStructWithList), - )); + ..add( + serializers.serialize( + nestedWithList, + specifiedType: const FullType(NestedStructWithList), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart index acd5c87be8..dcdc6c3a50 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart @@ -21,13 +21,13 @@ class _$QueryListsInput extends QueryListsInput { factory _$QueryListsInput([void Function(QueryListsInputBuilder)? updates]) => (new QueryListsInputBuilder()..update(updates))._build(); - _$QueryListsInput._( - {this.listArg, - this.complexListArg, - this.listArgWithXmlNameMember, - this.listArgWithXmlName, - this.nestedWithList}) - : super._(); + _$QueryListsInput._({ + this.listArg, + this.complexListArg, + this.listArgWithXmlNameMember, + this.listArgWithXmlName, + this.nestedWithList, + }) : super._(); @override QueryListsInput rebuild(void Function(QueryListsInputBuilder) updates) => @@ -80,8 +80,8 @@ class QueryListsInputBuilder _i3.ListBuilder get listArgWithXmlNameMember => _$this._listArgWithXmlNameMember ??= new _i3.ListBuilder(); set listArgWithXmlNameMember( - _i3.ListBuilder? listArgWithXmlNameMember) => - _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; + _i3.ListBuilder? listArgWithXmlNameMember, + ) => _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; _i3.ListBuilder? _listArgWithXmlName; _i3.ListBuilder get listArgWithXmlName => @@ -127,13 +127,15 @@ class QueryListsInputBuilder _$QueryListsInput _build() { _$QueryListsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryListsInput._( - listArg: _listArg?.build(), - complexListArg: _complexListArg?.build(), - listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), - listArgWithXmlName: _listArgWithXmlName?.build(), - nestedWithList: _nestedWithList?.build()); + listArg: _listArg?.build(), + complexListArg: _complexListArg?.build(), + listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), + listArgWithXmlName: _listArgWithXmlName?.build(), + nestedWithList: _nestedWithList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class QueryListsInputBuilder _nestedWithList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryListsInput', _$failedField, e.toString()); + r'QueryListsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart index 43e0490c7a..5cf8697d0d 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.query_timestamps_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class QueryTimestampsInput ); } - factory QueryTimestampsInput.build( - [void Function(QueryTimestampsInputBuilder) updates]) = - _$QueryTimestampsInput; + factory QueryTimestampsInput.build([ + void Function(QueryTimestampsInputBuilder) updates, + ]) = _$QueryTimestampsInput; const QueryTimestampsInput._(); @@ -37,11 +37,10 @@ abstract class QueryTimestampsInput QueryTimestampsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryTimestampsInputEc2QuerySerializer() + QueryTimestampsInputEc2QuerySerializer(), ]; DateTime? get normalFormat; @@ -51,27 +50,15 @@ abstract class QueryTimestampsInput QueryTimestampsInput getPayload() => this; @override - List get props => [ - normalFormat, - epochMember, - epochTarget, - ]; + List get props => [normalFormat, epochMember, epochTarget]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryTimestampsInput') - ..add( - 'normalFormat', - normalFormat, - ) - ..add( - 'epochMember', - epochMember, - ) - ..add( - 'epochTarget', - epochTarget, - ); + final helper = + newBuiltValueToStringHelper('QueryTimestampsInput') + ..add('normalFormat', normalFormat) + ..add('epochMember', epochMember) + ..add('epochTarget', epochTarget); return helper.toString(); } } @@ -79,21 +66,18 @@ abstract class QueryTimestampsInput class QueryTimestampsInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const QueryTimestampsInputEc2QuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [ - QueryTimestampsInput, - _$QueryTimestampsInput, - ]; + QueryTimestampsInput, + _$QueryTimestampsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryTimestampsInput deserialize( @@ -112,10 +96,12 @@ class QueryTimestampsInputEc2QuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normalFormat = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'epochMember': result.epochMember = _i1.TimestampSerializer.epochSeconds.deserialize( serializers, @@ -142,33 +128,39 @@ class QueryTimestampsInputEc2QuerySerializer const _i1.XmlElementName( 'QueryTimestampsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryTimestampsInput(:normalFormat, :epochMember, :epochTarget) = object; if (normalFormat != null) { result$ ..add(const _i1.XmlElementName('NormalFormat')) - ..add(serializers.serialize( - normalFormat, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normalFormat, + specifiedType: const FullType(DateTime), + ), + ); } if (epochMember != null) { result$ ..add(const _i1.XmlElementName('EpochMember')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochMember, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochMember, + ), + ); } if (epochTarget != null) { result$ ..add(const _i1.XmlElementName('EpochTarget')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart index e90ce16080..fc84becfa6 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart @@ -14,18 +14,20 @@ class _$QueryTimestampsInput extends QueryTimestampsInput { @override final DateTime? epochTarget; - factory _$QueryTimestampsInput( - [void Function(QueryTimestampsInputBuilder)? updates]) => - (new QueryTimestampsInputBuilder()..update(updates))._build(); + factory _$QueryTimestampsInput([ + void Function(QueryTimestampsInputBuilder)? updates, + ]) => (new QueryTimestampsInputBuilder()..update(updates))._build(); - _$QueryTimestampsInput._( - {this.normalFormat, this.epochMember, this.epochTarget}) - : super._(); + _$QueryTimestampsInput._({ + this.normalFormat, + this.epochMember, + this.epochTarget, + }) : super._(); @override QueryTimestampsInput rebuild( - void Function(QueryTimestampsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryTimestampsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryTimestampsInputBuilder toBuilder() => @@ -96,11 +98,13 @@ class QueryTimestampsInputBuilder QueryTimestampsInput build() => _build(); _$QueryTimestampsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$QueryTimestampsInput._( - normalFormat: normalFormat, - epochMember: epochMember, - epochTarget: epochTarget); + normalFormat: normalFormat, + epochMember: epochMember, + epochTarget: epochTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart index c853e4e4c7..d05e29ed88 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.recursive_xml_shapes_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class RecursiveXmlShapesOutput return _$RecursiveXmlShapesOutput._(nested: nested); } - factory RecursiveXmlShapesOutput.build( - [void Function(RecursiveXmlShapesOutputBuilder) updates]) = - _$RecursiveXmlShapesOutput; + factory RecursiveXmlShapesOutput.build([ + void Function(RecursiveXmlShapesOutputBuilder) updates, + ]) = _$RecursiveXmlShapesOutput; const RecursiveXmlShapesOutput._(); @@ -29,11 +29,10 @@ abstract class RecursiveXmlShapesOutput factory RecursiveXmlShapesOutput.fromResponse( RecursiveXmlShapesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputEc2QuerySerializer()]; + serializers = [RecursiveXmlShapesOutputEc2QuerySerializer()]; RecursiveXmlShapesOutputNested1? get nested; @override @@ -42,10 +41,7 @@ abstract class RecursiveXmlShapesOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -53,21 +49,18 @@ abstract class RecursiveXmlShapesOutput class RecursiveXmlShapesOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputEc2QuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [ - RecursiveXmlShapesOutput, - _$RecursiveXmlShapesOutput, - ]; + RecursiveXmlShapesOutput, + _$RecursiveXmlShapesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -86,10 +79,15 @@ class RecursiveXmlShapesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -106,16 +104,18 @@ class RecursiveXmlShapesOutputEc2QuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart index 2d7e34d129..21994706b3 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveXmlShapesOutput extends RecursiveXmlShapesOutput { @override final RecursiveXmlShapesOutputNested1? nested; - factory _$RecursiveXmlShapesOutput( - [void Function(RecursiveXmlShapesOutputBuilder)? updates]) => - (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); + factory _$RecursiveXmlShapesOutput([ + void Function(RecursiveXmlShapesOutputBuilder)? updates, + ]) => (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); _$RecursiveXmlShapesOutput._({this.nested}) : super._(); @override RecursiveXmlShapesOutput rebuild( - void Function(RecursiveXmlShapesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveXmlShapesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutput', _$failedField, e.toString()); + r'RecursiveXmlShapesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart index 051261696b..6990b9cdb4 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.recursive_xml_shapes_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested1.g.dart'; abstract class RecursiveXmlShapesOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { factory RecursiveXmlShapesOutputNested1({ String? foo, RecursiveXmlShapesOutputNested2? nested, }) { - return _$RecursiveXmlShapesOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveXmlShapesOutputNested1._(foo: foo, nested: nested); } - factory RecursiveXmlShapesOutputNested1.build( - [void Function(RecursiveXmlShapesOutputNested1Builder) updates]) = - _$RecursiveXmlShapesOutputNested1; + factory RecursiveXmlShapesOutputNested1.build([ + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested1; const RecursiveXmlShapesOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested1Ec2QuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested1Ec2QuerySerializer()]; String? get foo; RecursiveXmlShapesOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1Ec2QuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested1, - _$RecursiveXmlShapesOutputNested1, - ]; + RecursiveXmlShapesOutputNested1, + _$RecursiveXmlShapesOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -96,15 +82,22 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -121,24 +114,25 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested1Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested1(:foo, :nested) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart index f9749c812c..3835b660fe 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart @@ -13,16 +13,17 @@ class _$RecursiveXmlShapesOutputNested1 @override final RecursiveXmlShapesOutputNested2? nested; - factory _$RecursiveXmlShapesOutputNested1( - [void Function(RecursiveXmlShapesOutputNested1Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested1([ + void Function(RecursiveXmlShapesOutputNested1Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested1Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested1._({this.foo, this.nested}) : super._(); @override RecursiveXmlShapesOutputNested1 rebuild( - void Function(RecursiveXmlShapesOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested1Builder toBuilder() => @@ -48,8 +49,10 @@ class _$RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { _$RecursiveXmlShapesOutputNested1? _$v; String? _foo; @@ -91,9 +94,12 @@ class RecursiveXmlShapesOutputNested1Builder _$RecursiveXmlShapesOutputNested1 _build() { _$RecursiveXmlShapesOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,7 +107,10 @@ class RecursiveXmlShapesOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested1', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart index a54629fc71..7881acdab7 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.recursive_xml_shapes_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested2.g.dart'; abstract class RecursiveXmlShapesOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { factory RecursiveXmlShapesOutputNested2({ String? bar, RecursiveXmlShapesOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveXmlShapesOutputNested2 ); } - factory RecursiveXmlShapesOutputNested2.build( - [void Function(RecursiveXmlShapesOutputNested2Builder) updates]) = - _$RecursiveXmlShapesOutputNested2; + factory RecursiveXmlShapesOutputNested2.build([ + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested2; const RecursiveXmlShapesOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested2Ec2QuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested2Ec2QuerySerializer()]; String? get bar; RecursiveXmlShapesOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2Ec2QuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested2, - _$RecursiveXmlShapesOutputNested2, - ]; + RecursiveXmlShapesOutputNested2, + _$RecursiveXmlShapesOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -96,15 +85,22 @@ class RecursiveXmlShapesOutputNested2Ec2QuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -121,24 +117,25 @@ class RecursiveXmlShapesOutputNested2Ec2QuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested2Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested2(:bar, :recursiveMember) = object; if (bar != null) { result$ ..add(const _i2.XmlElementName('Bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add(const _i2.XmlElementName('RecursiveMember')) - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart index ca96543993..048cc789c9 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart @@ -13,17 +13,18 @@ class _$RecursiveXmlShapesOutputNested2 @override final RecursiveXmlShapesOutputNested1? recursiveMember; - factory _$RecursiveXmlShapesOutputNested2( - [void Function(RecursiveXmlShapesOutputNested2Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested2([ + void Function(RecursiveXmlShapesOutputNested2Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested2Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveXmlShapesOutputNested2 rebuild( - void Function(RecursiveXmlShapesOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested2Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { _$RecursiveXmlShapesOutputNested2? _$v; String? _bar; @@ -61,8 +64,8 @@ class RecursiveXmlShapesOutputNested2Builder RecursiveXmlShapesOutputNested1Builder get recursiveMember => _$this._recursiveMember ??= new RecursiveXmlShapesOutputNested1Builder(); set recursiveMember( - RecursiveXmlShapesOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveXmlShapesOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveXmlShapesOutputNested2Builder(); @@ -93,9 +96,12 @@ class RecursiveXmlShapesOutputNested2Builder _$RecursiveXmlShapesOutputNested2 _build() { _$RecursiveXmlShapesOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +109,10 @@ class RecursiveXmlShapesOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested2', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_config.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_config.dart index 4d4cd3c156..d7fec99379 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigEc2QuerySerializer() + RetryConfigEc2QuerySerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigEc2QuerySerializer const RetryConfigEc2QuerySerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigEc2QuerySerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -120,24 +104,25 @@ class RetryConfigEc2QuerySerializer const _i2.XmlElementName( 'RetryConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RetryConfig(:mode, :maxAttempts) = object; if (mode != null) { result$ ..add(const _i2.XmlElementName('Mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('Max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart index 651d14edfd..66eee8b924 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart index 897df174c1..83ae524d73 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.dart index bea874942d..a6001e17c6 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigEc2QuerySerializer() + S3ConfigEc2QuerySerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigEc2QuerySerializer const S3ConfigEc2QuerySerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigEc2QuerySerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,36 +124,42 @@ class S3ConfigEc2QuerySerializer const _i2.XmlElementName( 'S3ConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('Addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('Use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('Use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart index fbf8d888b6..0d04b9556f 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigEc2QuerySerializer() + ScopedConfigEc2QuerySerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigEc2QuerySerializer const ScopedConfigEc2QuerySerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigEc2QuerySerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -188,68 +173,72 @@ class ScopedConfigEc2QuerySerializer const _i3.XmlElementName( 'ScopedConfigResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final ScopedConfig( :environment, :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add(const _i3.XmlElementName('Environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('ConfigFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('CredentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add(const _i3.XmlElementName('Client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('Operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart index 9efbc5a5cf..520701b1db 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.simple_input_params_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -46,9 +46,9 @@ abstract class SimpleInputParamsInput ); } - factory SimpleInputParamsInput.build( - [void Function(SimpleInputParamsInputBuilder) updates]) = - _$SimpleInputParamsInput; + factory SimpleInputParamsInput.build([ + void Function(SimpleInputParamsInputBuilder) updates, + ]) = _$SimpleInputParamsInput; const SimpleInputParamsInput._(); @@ -56,8 +56,7 @@ abstract class SimpleInputParamsInput SimpleInputParamsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [SimpleInputParamsInputEc2QuerySerializer()]; @@ -78,66 +77,34 @@ abstract class SimpleInputParamsInput @override List get props => [ - foo, - bar, - baz, - bam, - floatValue, - boo, - qux, - fooEnum, - hasQueryName, - hasQueryAndXmlName, - usesXmlName, - ]; + foo, + bar, + baz, + bam, + floatValue, + boo, + qux, + fooEnum, + hasQueryName, + hasQueryAndXmlName, + usesXmlName, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleInputParamsInput') - ..add( - 'foo', - foo, - ) - ..add( - 'bar', - bar, - ) - ..add( - 'baz', - baz, - ) - ..add( - 'bam', - bam, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'boo', - boo, - ) - ..add( - 'qux', - qux, - ) - ..add( - 'fooEnum', - fooEnum, - ) - ..add( - 'hasQueryName', - hasQueryName, - ) - ..add( - 'hasQueryAndXmlName', - hasQueryAndXmlName, - ) - ..add( - 'usesXmlName', - usesXmlName, - ); + final helper = + newBuiltValueToStringHelper('SimpleInputParamsInput') + ..add('foo', foo) + ..add('bar', bar) + ..add('baz', baz) + ..add('bam', bam) + ..add('floatValue', floatValue) + ..add('boo', boo) + ..add('qux', qux) + ..add('fooEnum', fooEnum) + ..add('hasQueryName', hasQueryName) + ..add('hasQueryAndXmlName', hasQueryAndXmlName) + ..add('usesXmlName', usesXmlName); return helper.toString(); } } @@ -145,21 +112,18 @@ abstract class SimpleInputParamsInput class SimpleInputParamsInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const SimpleInputParamsInputEc2QuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [ - SimpleInputParamsInput, - _$SimpleInputParamsInput, - ]; + SimpleInputParamsInput, + _$SimpleInputParamsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleInputParamsInput deserialize( @@ -178,60 +142,82 @@ class SimpleInputParamsInputEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'HasQueryName': - result.hasQueryName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'IgnoreMe': - result.hasQueryAndXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryAndXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'c': - result.usesXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.usesXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -248,7 +234,7 @@ class SimpleInputParamsInputEc2QuerySerializer const _i1.XmlElementName( 'SimpleInputParamsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleInputParamsInput( :foo, @@ -261,95 +247,98 @@ class SimpleInputParamsInputEc2QuerySerializer :fooEnum, :hasQueryName, :hasQueryAndXmlName, - :usesXmlName + :usesXmlName, ) = object; if (foo != null) { result$ ..add(const _i1.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (bar != null) { result$ ..add(const _i1.XmlElementName('Bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (baz != null) { result$ ..add(const _i1.XmlElementName('Baz')) - ..add(serializers.serialize( - baz, - specifiedType: const FullType(bool), - )); + ..add(serializers.serialize(baz, specifiedType: const FullType(bool))); } if (bam != null) { result$ ..add(const _i1.XmlElementName('Bam')) - ..add(serializers.serialize( - bam, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(bam, specifiedType: const FullType(int))); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('FloatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (boo != null) { result$ ..add(const _i1.XmlElementName('Boo')) - ..add(serializers.serialize( - boo, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(boo, specifiedType: const FullType(double)), + ); } if (qux != null) { result$ ..add(const _i1.XmlElementName('Qux')) - ..add(serializers.serialize( - qux, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + qux, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (fooEnum != null) { result$ ..add(const _i1.XmlElementName('FooEnum')) - ..add(serializers.serialize( - fooEnum, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum, + specifiedType: const FullType(FooEnum), + ), + ); } if (hasQueryName != null) { result$ ..add(const _i1.XmlElementName('A')) - ..add(serializers.serialize( - hasQueryName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + hasQueryName, + specifiedType: const FullType(String), + ), + ); } if (hasQueryAndXmlName != null) { result$ ..add(const _i1.XmlElementName('B')) - ..add(serializers.serialize( - hasQueryAndXmlName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + hasQueryAndXmlName, + specifiedType: const FullType(String), + ), + ); } if (usesXmlName != null) { result$ ..add(const _i1.XmlElementName('C')) - ..add(serializers.serialize( - usesXmlName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + usesXmlName, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart index 22c8feca37..98ace77e86 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart @@ -30,28 +30,28 @@ class _$SimpleInputParamsInput extends SimpleInputParamsInput { @override final String? usesXmlName; - factory _$SimpleInputParamsInput( - [void Function(SimpleInputParamsInputBuilder)? updates]) => - (new SimpleInputParamsInputBuilder()..update(updates))._build(); - - _$SimpleInputParamsInput._( - {this.foo, - this.bar, - this.baz, - this.bam, - this.floatValue, - this.boo, - this.qux, - this.fooEnum, - this.hasQueryName, - this.hasQueryAndXmlName, - this.usesXmlName}) - : super._(); + factory _$SimpleInputParamsInput([ + void Function(SimpleInputParamsInputBuilder)? updates, + ]) => (new SimpleInputParamsInputBuilder()..update(updates))._build(); + + _$SimpleInputParamsInput._({ + this.foo, + this.bar, + this.baz, + this.bam, + this.floatValue, + this.boo, + this.qux, + this.fooEnum, + this.hasQueryName, + this.hasQueryAndXmlName, + this.usesXmlName, + }) : super._(); @override SimpleInputParamsInput rebuild( - void Function(SimpleInputParamsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleInputParamsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleInputParamsInputBuilder toBuilder() => @@ -178,19 +178,21 @@ class SimpleInputParamsInputBuilder SimpleInputParamsInput build() => _build(); _$SimpleInputParamsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleInputParamsInput._( - foo: foo, - bar: bar, - baz: baz, - bam: bam, - floatValue: floatValue, - boo: boo, - qux: qux, - fooEnum: fooEnum, - hasQueryName: hasQueryName, - hasQueryAndXmlName: hasQueryAndXmlName, - usesXmlName: usesXmlName); + foo: foo, + bar: bar, + baz: baz, + bam: bam, + floatValue: floatValue, + boo: boo, + qux: qux, + fooEnum: fooEnum, + hasQueryName: hasQueryName, + hasQueryAndXmlName: hasQueryAndXmlName, + usesXmlName: usesXmlName, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart index 538e8e840e..cb82ff3db4 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.simple_scalar_xml_properties_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i3; part 'simple_scalar_xml_properties_output.g.dart'; abstract class SimpleScalarXmlPropertiesOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { factory SimpleScalarXmlPropertiesOutput({ String? stringValue, String? emptyStringValue, @@ -43,9 +44,9 @@ abstract class SimpleScalarXmlPropertiesOutput ); } - factory SimpleScalarXmlPropertiesOutput.build( - [void Function(SimpleScalarXmlPropertiesOutputBuilder) updates]) = - _$SimpleScalarXmlPropertiesOutput; + factory SimpleScalarXmlPropertiesOutput.build([ + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ]) = _$SimpleScalarXmlPropertiesOutput; const SimpleScalarXmlPropertiesOutput._(); @@ -53,11 +54,10 @@ abstract class SimpleScalarXmlPropertiesOutput factory SimpleScalarXmlPropertiesOutput.fromResponse( SimpleScalarXmlPropertiesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [SimpleScalarXmlPropertiesOutputEc2QuerySerializer()]; + serializers = [SimpleScalarXmlPropertiesOutputEc2QuerySerializer()]; String? get stringValue; String? get emptyStringValue; @@ -71,62 +71,32 @@ abstract class SimpleScalarXmlPropertiesOutput double? get doubleValue; @override List get props => [ - stringValue, - emptyStringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + stringValue, + emptyStringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarXmlPropertiesOutput') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'emptyStringValue', - emptyStringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('stringValue', stringValue) + ..add('emptyStringValue', emptyStringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -134,21 +104,18 @@ abstract class SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [ - SimpleScalarXmlPropertiesOutput, - _$SimpleScalarXmlPropertiesOutput, - ]; + SimpleScalarXmlPropertiesOutput, + _$SimpleScalarXmlPropertiesOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -167,55 +134,75 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -232,7 +219,7 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer const _i3.XmlElementName( 'SimpleScalarXmlPropertiesOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleScalarXmlPropertiesOutput( :stringValue, @@ -244,87 +231,101 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer :integerValue, :longValue, :floatValue, - :doubleValue + :doubleValue, ) = object; if (stringValue != null) { result$ ..add(const _i3.XmlElementName('IgnoreMe')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (emptyStringValue != null) { result$ ..add(const _i3.XmlElementName('EmptyStringValue')) - ..add(serializers.serialize( - emptyStringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + emptyStringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i3.XmlElementName('TrueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i3.XmlElementName('FalseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (byteValue != null) { result$ ..add(const _i3.XmlElementName('ByteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (shortValue != null) { result$ ..add(const _i3.XmlElementName('ShortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (integerValue != null) { result$ ..add(const _i3.XmlElementName('IntegerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i3.XmlElementName('LongValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (floatValue != null) { result$ ..add(const _i3.XmlElementName('FloatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add(const _i3.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart index 762fc06d89..da51a25ca9 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart @@ -29,27 +29,28 @@ class _$SimpleScalarXmlPropertiesOutput @override final double? doubleValue; - factory _$SimpleScalarXmlPropertiesOutput( - [void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates]) => + factory _$SimpleScalarXmlPropertiesOutput([ + void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates, + ]) => (new SimpleScalarXmlPropertiesOutputBuilder()..update(updates))._build(); - _$SimpleScalarXmlPropertiesOutput._( - {this.stringValue, - this.emptyStringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarXmlPropertiesOutput._({ + this.stringValue, + this.emptyStringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarXmlPropertiesOutput rebuild( - void Function(SimpleScalarXmlPropertiesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarXmlPropertiesOutputBuilder toBuilder() => @@ -91,8 +92,10 @@ class _$SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputBuilder implements - Builder { + Builder< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { _$SimpleScalarXmlPropertiesOutput? _$v; String? _stringValue; @@ -173,18 +176,20 @@ class SimpleScalarXmlPropertiesOutputBuilder SimpleScalarXmlPropertiesOutput build() => _build(); _$SimpleScalarXmlPropertiesOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarXmlPropertiesOutput._( - stringValue: stringValue, - emptyStringValue: emptyStringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + stringValue: stringValue, + emptyStringValue: emptyStringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart index 63c94eeb1b..2bcb5dbd8b 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.struct_arg; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,34 +31,22 @@ abstract class StructArg const StructArg._(); static const List<_i2.SmithySerializer> serializers = [ - StructArgEc2QuerySerializer() + StructArgEc2QuerySerializer(), ]; String? get stringArg; bool? get otherArg; StructArg? get recursiveArg; @override - List get props => [ - stringArg, - otherArg, - recursiveArg, - ]; + List get props => [stringArg, otherArg, recursiveArg]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructArg') - ..add( - 'stringArg', - stringArg, - ) - ..add( - 'otherArg', - otherArg, - ) - ..add( - 'recursiveArg', - recursiveArg, - ); + final helper = + newBuiltValueToStringHelper('StructArg') + ..add('stringArg', stringArg) + ..add('otherArg', otherArg) + ..add('recursiveArg', recursiveArg); return helper.toString(); } } @@ -68,18 +56,12 @@ class StructArgEc2QuerySerializer const StructArgEc2QuerySerializer() : super('StructArg'); @override - Iterable get types => const [ - StructArg, - _$StructArg, - ]; + Iterable get types => const [StructArg, _$StructArg]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructArg deserialize( @@ -98,20 +80,27 @@ class StructArgEc2QuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -128,32 +117,35 @@ class StructArgEc2QuerySerializer const _i2.XmlElementName( 'StructArgResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructArg(:stringArg, :otherArg, :recursiveArg) = object; if (stringArg != null) { result$ ..add(const _i2.XmlElementName('StringArg')) - ..add(serializers.serialize( - stringArg, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringArg, + specifiedType: const FullType(String), + ), + ); } if (otherArg != null) { result$ ..add(const _i2.XmlElementName('OtherArg')) - ..add(serializers.serialize( - otherArg, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(otherArg, specifiedType: const FullType(bool)), + ); } if (recursiveArg != null) { result$ ..add(const _i2.XmlElementName('RecursiveArg')) - ..add(serializers.serialize( - recursiveArg, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + recursiveArg, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart index 792a8afecd..9482dbfaad 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart @@ -93,11 +93,13 @@ class StructArgBuilder implements Builder { _$StructArg _build() { _$StructArg _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$StructArg._( - stringArg: stringArg, - otherArg: otherArg, - recursiveArg: _recursiveArg?.build()); + stringArg: stringArg, + otherArg: otherArg, + recursiveArg: _recursiveArg?.build(), + ); } catch (_) { late String _$failedField; try { @@ -105,7 +107,10 @@ class StructArgBuilder implements Builder { _recursiveArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'StructArg', _$failedField, e.toString()); + r'StructArg', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart index 1fdfe24fd7..831e7a9950 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberEc2QuerySerializer() + StructureListMemberEc2QuerySerializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberEc2QuerySerializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructureListMember deserialize( @@ -91,15 +74,19 @@ class StructureListMemberEc2QuerySerializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -116,24 +103,18 @@ class StructureListMemberEc2QuerySerializer const _i2.XmlElementName( 'StructureListMemberResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructureListMember(:a, :b) = object; if (a != null) { result$ ..add(const _i2.XmlElementName('Value')) - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add(const _i2.XmlElementName('Other')) - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart index eb9b6e1c51..6a6f837f2d 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.xml_blobs_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,11 +28,10 @@ abstract class XmlBlobsOutput factory XmlBlobsOutput.fromResponse( XmlBlobsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlBlobsOutputEc2QuerySerializer() + XmlBlobsOutputEc2QuerySerializer(), ]; _i2.Uint8List? get data; @@ -42,10 +41,7 @@ abstract class XmlBlobsOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlBlobsOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -55,18 +51,12 @@ class XmlBlobsOutputEc2QuerySerializer const XmlBlobsOutputEc2QuerySerializer() : super('XmlBlobsOutput'); @override - Iterable get types => const [ - XmlBlobsOutput, - _$XmlBlobsOutput, - ]; + Iterable get types => const [XmlBlobsOutput, _$XmlBlobsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlBlobsOutput deserialize( @@ -85,10 +75,12 @@ class XmlBlobsOutputEc2QuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } } @@ -105,16 +97,18 @@ class XmlBlobsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlBlobsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlBlobsOutput(:data) = object; if (data != null) { result$ ..add(const _i3.XmlElementName('Data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i2.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i2.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart index 9d56939a49..1e40bc5c34 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.xml_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,11 +42,10 @@ abstract class XmlEnumsOutput factory XmlEnumsOutput.fromResponse( XmlEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlEnumsOutputEc2QuerySerializer() + XmlEnumsOutputEc2QuerySerializer(), ]; FooEnum? get fooEnum1; @@ -57,41 +56,24 @@ abstract class XmlEnumsOutput _i2.BuiltMap? get fooEnumMap; @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlEnumsOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlEnumsOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -101,18 +83,12 @@ class XmlEnumsOutputEc2QuerySerializer const XmlEnumsOutputEc2QuerySerializer() : super('XmlEnumsOutput'); @override - Iterable get types => const [ - XmlEnumsOutput, - _$XmlEnumsOutput, - ]; + Iterable get types => const [XmlEnumsOutput, _$XmlEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlEnumsOutput deserialize( @@ -131,55 +107,63 @@ class XmlEnumsOutputEc2QuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.fooEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i2.BuiltSet)); + result.fooEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.fooEnumMap.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } } @@ -196,7 +180,7 @@ class XmlEnumsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlEnumsOutput( :fooEnum1, @@ -204,74 +188,77 @@ class XmlEnumsOutputEc2QuerySerializer :fooEnum3, :fooEnumList, :fooEnumSet, - :fooEnumMap + :fooEnumMap, ) = object; if (fooEnum1 != null) { result$ ..add(const _i3.XmlElementName('FooEnum1')) - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add(const _i3.XmlElementName('FooEnum2')) - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add(const _i3.XmlElementName('FooEnum3')) - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add(const _i3.XmlElementName('FooEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - fooEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + fooEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add(const _i3.XmlElementName('FooEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - fooEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + fooEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add(const _i3.XmlElementName('FooEnumMap')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - fooEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + fooEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart index e46d58ace9..69ec6ae825 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart @@ -23,14 +23,14 @@ class _$XmlEnumsOutput extends XmlEnumsOutput { factory _$XmlEnumsOutput([void Function(XmlEnumsOutputBuilder)? updates]) => (new XmlEnumsOutputBuilder()..update(updates))._build(); - _$XmlEnumsOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + _$XmlEnumsOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override XmlEnumsOutput rebuild(void Function(XmlEnumsOutputBuilder) updates) => @@ -133,14 +133,16 @@ class XmlEnumsOutputBuilder _$XmlEnumsOutput _build() { _$XmlEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlEnumsOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -152,7 +154,10 @@ class XmlEnumsOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlEnumsOutput', _$failedField, e.toString()); + r'XmlEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart index a0d4f024dd..7f08679dfe 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.xml_int_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,8 +32,9 @@ abstract class XmlIntEnumsOutput ); } - factory XmlIntEnumsOutput.build( - [void Function(XmlIntEnumsOutputBuilder) updates]) = _$XmlIntEnumsOutput; + factory XmlIntEnumsOutput.build([ + void Function(XmlIntEnumsOutputBuilder) updates, + ]) = _$XmlIntEnumsOutput; const XmlIntEnumsOutput._(); @@ -41,11 +42,10 @@ abstract class XmlIntEnumsOutput factory XmlIntEnumsOutput.fromResponse( XmlIntEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlIntEnumsOutputEc2QuerySerializer() + XmlIntEnumsOutputEc2QuerySerializer(), ]; int? get intEnum1; @@ -56,41 +56,24 @@ abstract class XmlIntEnumsOutput _i2.BuiltMap? get intEnumMap; @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlIntEnumsOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlIntEnumsOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -100,18 +83,12 @@ class XmlIntEnumsOutputEc2QuerySerializer const XmlIntEnumsOutputEc2QuerySerializer() : super('XmlIntEnumsOutput'); @override - Iterable get types => const [ - XmlIntEnumsOutput, - _$XmlIntEnumsOutput, - ]; + Iterable get types => const [XmlIntEnumsOutput, _$XmlIntEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlIntEnumsOutput deserialize( @@ -130,55 +107,59 @@ class XmlIntEnumsOutputEc2QuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(int)], - ), - ) as _i2.BuiltSet)); + result.intEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [FullType(int)]), + ) + as _i2.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.intEnumMap.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } } @@ -195,7 +176,7 @@ class XmlIntEnumsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlIntEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlIntEnumsOutput( :intEnum1, @@ -203,74 +184,68 @@ class XmlIntEnumsOutputEc2QuerySerializer :intEnum3, :intEnumList, :intEnumSet, - :intEnumMap + :intEnumMap, ) = object; if (intEnum1 != null) { result$ ..add(const _i3.XmlElementName('IntEnum1')) - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum1, specifiedType: const FullType(int)), + ); } if (intEnum2 != null) { result$ ..add(const _i3.XmlElementName('IntEnum2')) - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum2, specifiedType: const FullType(int)), + ); } if (intEnum3 != null) { result$ ..add(const _i3.XmlElementName('IntEnum3')) - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum3, specifiedType: const FullType(int)), + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('IntEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (intEnumSet != null) { result$ ..add(const _i3.XmlElementName('IntEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - intEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(int)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + intEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(int)]), ), - )); + ); } if (intEnumMap != null) { result$ ..add(const _i3.XmlElementName('IntEnumMap')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - intEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + intEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart index b76a54467e..abf4de8326 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart @@ -20,18 +20,18 @@ class _$XmlIntEnumsOutput extends XmlIntEnumsOutput { @override final _i2.BuiltMap? intEnumMap; - factory _$XmlIntEnumsOutput( - [void Function(XmlIntEnumsOutputBuilder)? updates]) => - (new XmlIntEnumsOutputBuilder()..update(updates))._build(); - - _$XmlIntEnumsOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$XmlIntEnumsOutput([ + void Function(XmlIntEnumsOutputBuilder)? updates, + ]) => (new XmlIntEnumsOutputBuilder()..update(updates))._build(); + + _$XmlIntEnumsOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override XmlIntEnumsOutput rebuild(void Function(XmlIntEnumsOutputBuilder) updates) => @@ -134,14 +134,16 @@ class XmlIntEnumsOutputBuilder _$XmlIntEnumsOutput _build() { _$XmlIntEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlIntEnumsOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -153,7 +155,10 @@ class XmlIntEnumsOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlIntEnumsOutput', _$failedField, e.toString()); + r'XmlIntEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart index bfa1a9b98d..e19de6a7c2 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.xml_lists_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -41,21 +41,24 @@ abstract class XmlListsOutput timestampList == null ? null : _i2.BuiltList(timestampList), enumList: enumList == null ? null : _i2.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i2.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), renamedListMembers: renamedListMembers == null ? null : _i2.BuiltList(renamedListMembers), flattenedList: flattenedList == null ? null : _i2.BuiltList(flattenedList), flattenedList2: flattenedList2 == null ? null : _i2.BuiltList(flattenedList2), - flattenedListWithMemberNamespace: flattenedListWithMemberNamespace == null - ? null - : _i2.BuiltList(flattenedListWithMemberNamespace), - flattenedListWithNamespace: flattenedListWithNamespace == null - ? null - : _i2.BuiltList(flattenedListWithNamespace), + flattenedListWithMemberNamespace: + flattenedListWithMemberNamespace == null + ? null + : _i2.BuiltList(flattenedListWithMemberNamespace), + flattenedListWithNamespace: + flattenedListWithNamespace == null + ? null + : _i2.BuiltList(flattenedListWithNamespace), structureList: structureList == null ? null : _i2.BuiltList(structureList), ); @@ -70,11 +73,10 @@ abstract class XmlListsOutput factory XmlListsOutput.fromResponse( XmlListsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlListsOutputEc2QuerySerializer() + XmlListsOutputEc2QuerySerializer(), ]; _i2.BuiltList? get stringList; @@ -95,81 +97,43 @@ abstract class XmlListsOutput _i2.BuiltList? get structureList; @override List get props => [ - stringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - renamedListMembers, - flattenedList, - flattenedList2, - flattenedListWithMemberNamespace, - flattenedListWithNamespace, - structureList, - ]; + stringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + renamedListMembers, + flattenedList, + flattenedList2, + flattenedListWithMemberNamespace, + flattenedListWithNamespace, + structureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlListsOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'renamedListMembers', - renamedListMembers, - ) - ..add( - 'flattenedList', - flattenedList, - ) - ..add( - 'flattenedList2', - flattenedList2, - ) - ..add( - 'flattenedListWithMemberNamespace', - flattenedListWithMemberNamespace, - ) - ..add( - 'flattenedListWithNamespace', - flattenedListWithNamespace, - ) - ..add( - 'structureList', - structureList, - ); + final helper = + newBuiltValueToStringHelper('XmlListsOutput') + ..add('stringList', stringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('renamedListMembers', renamedListMembers) + ..add('flattenedList', flattenedList) + ..add('flattenedList2', flattenedList2) + ..add( + 'flattenedListWithMemberNamespace', + flattenedListWithMemberNamespace, + ) + ..add('flattenedListWithNamespace', flattenedListWithNamespace) + ..add('structureList', structureList); return helper.toString(); } } @@ -179,18 +143,12 @@ class XmlListsOutputEc2QuerySerializer const XmlListsOutputEc2QuerySerializer() : super('XmlListsOutput'); @override - Iterable get types => const [ - XmlListsOutput, - _$XmlListsOutput, - ]; + Iterable get types => const [XmlListsOutput, _$XmlListsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlListsOutput deserialize( @@ -209,142 +167,165 @@ class XmlListsOutputEc2QuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.stringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'stringSet': - result.stringSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], - ), - ) as _i2.BuiltSet)); + result.stringSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(String), + ]), + ) + as _i2.BuiltSet), + ); case 'integerList': - result.integerList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.integerList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'booleanList': - result.booleanList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], - ), - ) as _i2.BuiltList)); + result.booleanList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(bool), + ]), + ) + as _i2.BuiltList), + ); case 'timestampList': - result.timestampList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ), - ) as _i2.BuiltList)); + result.timestampList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i2.BuiltList), + ); case 'enumList': - result.enumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.enumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i2.BuiltList<_i2.BuiltList>)); + as _i2.BuiltList<_i2.BuiltList>), + ); case 'renamed': - result.renamedListMembers.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.renamedListMembers.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'flattenedList': - result.flattenedList.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'customName': - result.flattenedList2.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList2.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithMemberNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'myStructureList': - result.structureList.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i2.BuiltList)); + result.structureList.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i2.BuiltList), + ); } } @@ -361,7 +342,7 @@ class XmlListsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlListsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlListsOutput( :stringList, @@ -377,207 +358,192 @@ class XmlListsOutputEc2QuerySerializer :flattenedList2, :flattenedListWithMemberNamespace, :flattenedListWithNamespace, - :structureList + :structureList, ) = object; if (stringList != null) { result$ ..add(const _i3.XmlElementName('StringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - stringList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + stringList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add(const _i3.XmlElementName('StringSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - stringSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + stringSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(String)]), ), - )); + ); } if (integerList != null) { result$ ..add(const _i3.XmlElementName('IntegerList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - integerList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + integerList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (booleanList != null) { result$ ..add(const _i3.XmlElementName('BooleanList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - booleanList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + booleanList, + specifiedType: const FullType(_i2.BuiltList, [FullType(bool)]), ), - )); + ); } if (timestampList != null) { result$ ..add(const _i3.XmlElementName('TimestampList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - timestampList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + timestampList, + specifiedType: const FullType(_i2.BuiltList, [FullType(DateTime)]), ), - )); + ); } if (enumList != null) { result$ ..add(const _i3.XmlElementName('EnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - enumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + enumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('IntEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (nestedStringList != null) { result$ ..add(const _i3.XmlElementName('NestedStringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - nestedStringList, - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + nestedStringList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (renamedListMembers != null) { result$ ..add(const _i3.XmlElementName('Renamed')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - renamedListMembers, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + renamedListMembers, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'FlattenedList', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'FlattenedList', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList2 != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'CustomName', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedList2, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'CustomName', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedList2, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithMemberNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'FlattenedListWithMemberNamespace', - memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedListWithMemberNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'FlattenedListWithMemberNamespace', + memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedListWithMemberNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'FlattenedListWithNamespace', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedListWithNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'FlattenedListWithNamespace', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedListWithNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add(const _i3.XmlElementName('MyStructureList')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - structureList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + structureList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart index ba7fe9417b..f735167104 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart @@ -39,22 +39,22 @@ class _$XmlListsOutput extends XmlListsOutput { factory _$XmlListsOutput([void Function(XmlListsOutputBuilder)? updates]) => (new XmlListsOutputBuilder()..update(updates))._build(); - _$XmlListsOutput._( - {this.stringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.renamedListMembers, - this.flattenedList, - this.flattenedList2, - this.flattenedListWithMemberNamespace, - this.flattenedListWithNamespace, - this.structureList}) - : super._(); + _$XmlListsOutput._({ + this.stringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.renamedListMembers, + this.flattenedList, + this.flattenedList2, + this.flattenedListWithMemberNamespace, + this.flattenedListWithNamespace, + this.structureList, + }) : super._(); @override XmlListsOutput rebuild(void Function(XmlListsOutputBuilder) updates) => @@ -157,8 +157,8 @@ class XmlListsOutputBuilder _i2.ListBuilder<_i2.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i2.ListBuilder<_i2.BuiltList>(); set nestedStringList( - _i2.ListBuilder<_i2.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i2.ListBuilder<_i2.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i2.ListBuilder? _renamedListMembers; _i2.ListBuilder get renamedListMembers => @@ -183,7 +183,8 @@ class XmlListsOutputBuilder _$this._flattenedListWithMemberNamespace ??= new _i2.ListBuilder(); set flattenedListWithMemberNamespace( - _i2.ListBuilder? flattenedListWithMemberNamespace) => + _i2.ListBuilder? flattenedListWithMemberNamespace, + ) => _$this._flattenedListWithMemberNamespace = flattenedListWithMemberNamespace; @@ -191,8 +192,8 @@ class XmlListsOutputBuilder _i2.ListBuilder get flattenedListWithNamespace => _$this._flattenedListWithNamespace ??= new _i2.ListBuilder(); set flattenedListWithNamespace( - _i2.ListBuilder? flattenedListWithNamespace) => - _$this._flattenedListWithNamespace = flattenedListWithNamespace; + _i2.ListBuilder? flattenedListWithNamespace, + ) => _$this._flattenedListWithNamespace = flattenedListWithNamespace; _i2.ListBuilder? _structureList; _i2.ListBuilder get structureList => @@ -242,23 +243,25 @@ class XmlListsOutputBuilder _$XmlListsOutput _build() { _$XmlListsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlListsOutput._( - stringList: _stringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - renamedListMembers: _renamedListMembers?.build(), - flattenedList: _flattenedList?.build(), - flattenedList2: _flattenedList2?.build(), - flattenedListWithMemberNamespace: - _flattenedListWithMemberNamespace?.build(), - flattenedListWithNamespace: _flattenedListWithNamespace?.build(), - structureList: _structureList?.build()); + stringList: _stringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + renamedListMembers: _renamedListMembers?.build(), + flattenedList: _flattenedList?.build(), + flattenedList2: _flattenedList2?.build(), + flattenedListWithMemberNamespace: + _flattenedListWithMemberNamespace?.build(), + flattenedListWithNamespace: _flattenedListWithNamespace?.build(), + structureList: _structureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -292,7 +295,10 @@ class XmlListsOutputBuilder _structureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlListsOutput', _$failedField, e.toString()); + r'XmlListsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart index 2dacf1070e..83d7d78534 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.xml_namespace_nested; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,45 +14,34 @@ part 'xml_namespace_nested.g.dart'; abstract class XmlNamespaceNested with _i1.AWSEquatable implements Built { - factory XmlNamespaceNested({ - String? foo, - List? values, - }) { + factory XmlNamespaceNested({String? foo, List? values}) { return _$XmlNamespaceNested._( foo: foo, values: values == null ? null : _i2.BuiltList(values), ); } - factory XmlNamespaceNested.build( - [void Function(XmlNamespaceNestedBuilder) updates]) = - _$XmlNamespaceNested; + factory XmlNamespaceNested.build([ + void Function(XmlNamespaceNestedBuilder) updates, + ]) = _$XmlNamespaceNested; const XmlNamespaceNested._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNamespaceNestedEc2QuerySerializer() + XmlNamespaceNestedEc2QuerySerializer(), ]; String? get foo; _i2.BuiltList? get values; @override - List get props => [ - foo, - values, - ]; + List get props => [foo, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNamespaceNested') - ..add( - 'foo', - foo, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('XmlNamespaceNested') + ..add('foo', foo) + ..add('values', values); return helper.toString(); } } @@ -62,18 +51,12 @@ class XmlNamespaceNestedEc2QuerySerializer const XmlNamespaceNestedEc2QuerySerializer() : super('XmlNamespaceNested'); @override - Iterable get types => const [ - XmlNamespaceNested, - _$XmlNamespaceNested, - ]; + Iterable get types => const [XmlNamespaceNested, _$XmlNamespaceNested]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespaceNested deserialize( @@ -92,22 +75,26 @@ class XmlNamespaceNestedEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -124,40 +111,39 @@ class XmlNamespaceNestedEc2QuerySerializer const _i3.XmlElementName( 'XmlNamespaceNestedResponse', _i3.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespaceNested(:foo, :values) = object; if (foo != null) { result$ - ..add(const _i3.XmlElementName( - 'Foo', - _i3.XmlNamespace( - 'http://baz.com', - 'baz', + ..add( + const _i3.XmlElementName( + 'Foo', + _i3.XmlNamespace('http://baz.com', 'baz'), ), - )) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ) + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (values != null) { result$ - ..add(const _i3.XmlElementName( - 'Values', - _i3.XmlNamespace('http://qux.com'), - )) - ..add(const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlElementName( + 'Values', + _i3.XmlNamespace('http://qux.com'), + ), + ) + ..add( + const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + values, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart index 80b634991e..300ea21e0e 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart @@ -12,16 +12,16 @@ class _$XmlNamespaceNested extends XmlNamespaceNested { @override final _i2.BuiltList? values; - factory _$XmlNamespaceNested( - [void Function(XmlNamespaceNestedBuilder)? updates]) => - (new XmlNamespaceNestedBuilder()..update(updates))._build(); + factory _$XmlNamespaceNested([ + void Function(XmlNamespaceNestedBuilder)? updates, + ]) => (new XmlNamespaceNestedBuilder()..update(updates))._build(); _$XmlNamespaceNested._({this.foo, this.values}) : super._(); @override XmlNamespaceNested rebuild( - void Function(XmlNamespaceNestedBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespaceNestedBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespaceNestedBuilder toBuilder() => @@ -96,7 +96,10 @@ class XmlNamespaceNestedBuilder _values?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespaceNested', _$failedField, e.toString()); + r'XmlNamespaceNested', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart index 0e1852d3f2..f965973bec 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.xml_namespaces_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class XmlNamespacesOutput return _$XmlNamespacesOutput._(nested: nested); } - factory XmlNamespacesOutput.build( - [void Function(XmlNamespacesOutputBuilder) updates]) = - _$XmlNamespacesOutput; + factory XmlNamespacesOutput.build([ + void Function(XmlNamespacesOutputBuilder) updates, + ]) = _$XmlNamespacesOutput; const XmlNamespacesOutput._(); @@ -28,11 +28,10 @@ abstract class XmlNamespacesOutput factory XmlNamespacesOutput.fromResponse( XmlNamespacesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlNamespacesOutputEc2QuerySerializer() + XmlNamespacesOutputEc2QuerySerializer(), ]; XmlNamespaceNested? get nested; @@ -42,10 +41,7 @@ abstract class XmlNamespacesOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlNamespacesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -56,17 +52,14 @@ class XmlNamespacesOutputEc2QuerySerializer @override Iterable get types => const [ - XmlNamespacesOutput, - _$XmlNamespacesOutput, - ]; + XmlNamespacesOutput, + _$XmlNamespacesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespacesOutput deserialize( @@ -85,10 +78,13 @@ class XmlNamespacesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -105,16 +101,18 @@ class XmlNamespacesOutputEc2QuerySerializer const _i2.XmlElementName( 'XmlNamespacesOutputResponse', _i2.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespacesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(XmlNamespaceNested), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(XmlNamespaceNested), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart index 903b439f9c..01cfed012f 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart @@ -10,16 +10,16 @@ class _$XmlNamespacesOutput extends XmlNamespacesOutput { @override final XmlNamespaceNested? nested; - factory _$XmlNamespacesOutput( - [void Function(XmlNamespacesOutputBuilder)? updates]) => - (new XmlNamespacesOutputBuilder()..update(updates))._build(); + factory _$XmlNamespacesOutput([ + void Function(XmlNamespacesOutputBuilder)? updates, + ]) => (new XmlNamespacesOutputBuilder()..update(updates))._build(); _$XmlNamespacesOutput._({this.nested}) : super._(); @override XmlNamespacesOutput rebuild( - void Function(XmlNamespacesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespacesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespacesOutputBuilder toBuilder() => @@ -85,7 +85,10 @@ class XmlNamespacesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespacesOutput', _$failedField, e.toString()); + r'XmlNamespacesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart index e2d8b78a09..e73cc2ec51 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.model.xml_timestamps_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class XmlTimestampsOutput ); } - factory XmlTimestampsOutput.build( - [void Function(XmlTimestampsOutputBuilder) updates]) = - _$XmlTimestampsOutput; + factory XmlTimestampsOutput.build([ + void Function(XmlTimestampsOutputBuilder) updates, + ]) = _$XmlTimestampsOutput; const XmlTimestampsOutput._(); @@ -43,11 +43,10 @@ abstract class XmlTimestampsOutput factory XmlTimestampsOutput.fromResponse( XmlTimestampsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlTimestampsOutputEc2QuerySerializer() + XmlTimestampsOutputEc2QuerySerializer(), ]; DateTime? get normal; @@ -59,46 +58,26 @@ abstract class XmlTimestampsOutput DateTime? get httpDateOnTarget; @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlTimestampsOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('XmlTimestampsOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -109,17 +88,14 @@ class XmlTimestampsOutputEc2QuerySerializer @override Iterable get types => const [ - XmlTimestampsOutput, - _$XmlTimestampsOutput, - ]; + XmlTimestampsOutput, + _$XmlTimestampsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlTimestampsOutput deserialize( @@ -138,44 +114,34 @@ class XmlTimestampsOutputEc2QuerySerializer } switch (key) { case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'dateTime': result.dateTime = _i2.TimestampSerializer.dateTime.deserialize( serializers, value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i2.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i2.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i2.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i2.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i2.TimestampSerializer.httpDate + .deserialize(serializers, value); } } @@ -192,7 +158,7 @@ class XmlTimestampsOutputEc2QuerySerializer const _i2.XmlElementName( 'XmlTimestampsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlTimestampsOutput( :normal, @@ -201,63 +167,71 @@ class XmlTimestampsOutputEc2QuerySerializer :epochSeconds, :epochSecondsOnTarget, :httpDate, - :httpDateOnTarget + :httpDateOnTarget, ) = object; if (normal != null) { result$ ..add(const _i2.XmlElementName('Normal')) - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } if (dateTime != null) { result$ ..add(const _i2.XmlElementName('DateTime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add(const _i2.XmlElementName('DateTimeOnTarget')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add(const _i2.XmlElementName('EpochSeconds')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add(const _i2.XmlElementName('EpochSecondsOnTarget')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add(const _i2.XmlElementName('HttpDate')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add(const _i2.XmlElementName('HttpDateOnTarget')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart index 87f8eb4a56..00966c20c3 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart @@ -22,24 +22,24 @@ class _$XmlTimestampsOutput extends XmlTimestampsOutput { @override final DateTime? httpDateOnTarget; - factory _$XmlTimestampsOutput( - [void Function(XmlTimestampsOutputBuilder)? updates]) => - (new XmlTimestampsOutputBuilder()..update(updates))._build(); - - _$XmlTimestampsOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$XmlTimestampsOutput([ + void Function(XmlTimestampsOutputBuilder)? updates, + ]) => (new XmlTimestampsOutputBuilder()..update(updates))._build(); + + _$XmlTimestampsOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override XmlTimestampsOutput rebuild( - void Function(XmlTimestampsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlTimestampsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlTimestampsOutputBuilder toBuilder() => @@ -141,15 +141,17 @@ class XmlTimestampsOutputBuilder XmlTimestampsOutput build() => _build(); _$XmlTimestampsOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlTimestampsOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart index 707e2941d1..4a784b4f15 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:ec2_query_v1/src/ec2_protocol/model/datetime_offsets_output.dart import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'DatetimeOffsets', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -71,11 +84,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart index a98e8f46dd..0f38ede5f8 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EmptyInputAndEmptyOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart index 52733f4a87..eeeb6592bd 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class EndpointOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,19 +59,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart index d7dac779b9..c6281fe82a 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,32 @@ import 'package:ec2_query_v1/src/ec2_protocol/model/host_label_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -43,7 +46,7 @@ class EndpointWithHostLabelOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointWithHostLabelOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,19 +64,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +98,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart index 41174d2921..6671c14397 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:ec2_query_v1/src/ec2_protocol/model/fractional_seconds_output.da import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FractionalSeconds', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -71,11 +84,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart index 7ba811f3ef..9000d04332 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,29 +15,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +59,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'GreetingWithErrors', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,9 +77,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -75,33 +88,23 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.ec2', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.ec2', shape: 'InvalidGreeting'), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -122,11 +125,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart index 803cf6491b..ef1c82ecfc 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class HostWithPathOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'HostWithPathOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart index 532b0ccd7e..977a1cbb7b 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.ignores_wrapping_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response". -class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, IgnoresWrappingXmlNameOutput, IgnoresWrappingXmlNameOutput> { +class IgnoresWrappingXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > { /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response". IgnoresWrappingXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoresWrappingXmlNameOutput, - IgnoresWrappingXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'IgnoresWrappingXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([IgnoresWrappingXmlNameOutput? output]) => 200; @@ -73,11 +86,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, IgnoresWrappingXmlNameOutput buildOutput( IgnoresWrappingXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoresWrappingXmlNameOutput.fromResponse( - payload, - response, - ); + ) => IgnoresWrappingXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart index 0fa6448a38..31cfb8a011 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.nested_structures_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes nested and recursive structure members. -class NestedStructuresOperation extends _i1.HttpOperation { +class NestedStructuresOperation + extends + _i1.HttpOperation< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes nested and recursive structure members. NestedStructuresOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class NestedStructuresOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'NestedStructures', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class NestedStructuresOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class NestedStructuresOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart index 13a5a76c5e..8b1ee6dcda 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'NoInputAndOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -73,11 +86,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart index f44e2aac65..48173d0da2 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryIdempotencyTokenAutoFill', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +85,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +110,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart index bd65e0572d..19edf4b505 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.query_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,31 +13,38 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes simple and complex lists. -class QueryListsOperation extends _i1 - .HttpOperation { +class QueryListsOperation + extends + _i1.HttpOperation< + QueryListsInput, + QueryListsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes simple and complex lists. QueryListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1 - .HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +53,7 @@ class QueryListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,18 +71,15 @@ class QueryListsOperation extends _i1 @override _i1.HttpRequest buildRequest(QueryListsInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +104,7 @@ class QueryListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart index 8c0106bc38..20b65bdac1 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.query_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. -class QueryTimestampsOperation extends _i1.HttpOperation { +class QueryTimestampsOperation + extends + _i1.HttpOperation< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. QueryTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'QueryTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart index ad09b94b59..c812b29916 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.recursive_xml_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - RecursiveXmlShapesOutput, RecursiveXmlShapesOutput> { +class RecursiveXmlShapesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > { /// Recursive shapes RecursiveXmlShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput, - RecursiveXmlShapesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'RecursiveXmlShapes', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([RecursiveXmlShapesOutput? output]) => 200; @@ -73,11 +86,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput buildOutput( RecursiveXmlShapesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveXmlShapesOutput.fromResponse( - payload, - response, - ); + ) => RecursiveXmlShapesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart index 3786f91b9c..0998c47641 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.simple_input_params_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes strings, numbers, and boolean values. -class SimpleInputParamsOperation extends _i1.HttpOperation< - SimpleInputParamsInput, SimpleInputParamsInput, _i1.Unit, _i1.Unit> { +class SimpleInputParamsOperation + extends + _i1.HttpOperation< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes strings, numbers, and boolean values. SimpleInputParamsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleInputParams', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart index ad7b6c903d..c40ab10570 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.simple_scalar_xml_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:ec2_query_v1/src/ec2_protocol/model/simple_scalar_xml_properties import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput> { +class SimpleScalarXmlPropertiesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > { SimpleScalarXmlPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleScalarXmlProperties', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,9 +73,9 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([SimpleScalarXmlPropertiesOutput? output]) => 200; @@ -74,11 +84,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< SimpleScalarXmlPropertiesOutput buildOutput( SimpleScalarXmlPropertiesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarXmlPropertiesOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarXmlPropertiesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +108,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart index e6ccc56ac3..f2341f465a 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { /// Blobs are base64 encoded XmlBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart index 3ccdb47ff0..849409e676 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_empty_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:ec2_query_v1/src/ec2_protocol/model/xml_blobs_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlEmptyBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { XmlEmptyBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart index 5708fce132..0b282093ce 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:ec2_query_v1/src/ec2_protocol/model/xml_lists_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlEmptyListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { XmlEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart index 11fdcb1543..9636fd99e1 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { +class XmlEnumsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlEnumsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlEnumsOperation extends _i1 XmlEnumsOutput buildOutput( XmlEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart index a768aed630..6f172be50d 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,37 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes intEnums as top level properties, in lists, sets, and maps. -class XmlIntEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> { +class XmlIntEnumsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlIntEnumsOutput, + XmlIntEnumsOutput + > { /// This example serializes intEnums as top level properties, in lists, sets, and maps. XmlIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, - XmlIntEnumsOutput>> protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +52,7 @@ class XmlIntEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlIntEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +70,9 @@ class XmlIntEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlIntEnumsOutput? output]) => 200; @@ -73,11 +81,7 @@ class XmlIntEnumsOperation extends _i1 XmlIntEnumsOutput buildOutput( XmlIntEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlIntEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlIntEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +105,7 @@ class XmlIntEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart index 019a31fdba..097345ca8a 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. -class XmlListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. XmlListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart index c901dc1f4d..49b7ea21dd 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_namespaces_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:ec2_query_v1/src/ec2_protocol/model/xml_namespaces_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlNamespacesOutput, XmlNamespacesOutput> { +class XmlNamespacesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > { XmlNamespacesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlNamespacesOutput, - XmlNamespacesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlNamespaces', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlNamespacesOutput? output]) => 200; @@ -71,11 +84,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlNamespacesOutput buildOutput( XmlNamespacesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlNamespacesOutput.fromResponse( - payload, - response, - ); + ) => XmlNamespacesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart index 35c08427c2..f08e5a570a 100644 --- a/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart +++ b/packages/smithy/goldens/lib/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v1.ec2_protocol.operation.xml_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlTimestampsOutput, XmlTimestampsOutput> { +class XmlTimestampsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. XmlTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlTimestampsOutput, - XmlTimestampsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlTimestampsOutput? output]) => 200; @@ -73,11 +86,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlTimestampsOutput buildOutput( XmlTimestampsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlTimestampsOutput.fromResponse( - payload, - response, - ); + ) => XmlTimestampsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/ec2Query/pubspec.yaml b/packages/smithy/goldens/lib/ec2Query/pubspec.yaml index c343427d55..7659d6a785 100644 --- a/packages/smithy/goldens/lib/ec2Query/pubspec.yaml +++ b/packages/smithy/goldens/lib/ec2Query/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,7 +16,7 @@ dependencies: built_value: ^8.6.0 built_collection: ^5.0.0 fixnum: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -38,6 +38,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart index d8f2540390..53622de613 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2019-12-16T22:48:18-01:00\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QueryDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2019-12-17T00:48:18+01:00\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2019-12-16T22:48:18-01:00\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QueryDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2019-12-17T00:48:18+01:00\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], + ); + }); } class DatetimeOffsetsOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputEc2QuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart index 7dfdeb439f..2f3e08286b 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,98 +13,83 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryEmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryEmptyInputAndEmptyOutput', - documentation: 'Empty input serializes no extra query params', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QueryEmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryEmptyInputAndEmptyOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputEc2QuerySerializer() - ], - ); - }, - ); + _i1.test('Ec2QueryEmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryEmptyInputAndEmptyOutput', + documentation: 'Empty input serializes no extra query params', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QueryEmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryEmptyInputAndEmptyOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputEc2QuerySerializer(), + ], + ); + }); } class EmptyInputAndEmptyOutputInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -128,18 +113,15 @@ class EmptyInputAndEmptyOutputInputEc2QuerySerializer class EmptyInputAndEmptyOutputOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_operation_test.dart index 52326b750b..06645a4ee5 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=EndpointOperation&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('Ec2QueryEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=EndpointOperation&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart index b354674813..647b461c67 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&Label=bar', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&Label=bar', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputEc2QuerySerializer()], + ); + }); } class HostLabelInputEc2QuerySerializer @@ -63,11 +57,8 @@ class HostLabelInputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override HostLabelInput deserialize( @@ -86,10 +77,12 @@ class HostLabelInputEc2QuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart index f1e6fa9644..a04eb1318b 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2000-01-02T20:34:56.123Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QueryHttpDateWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryHttpDateWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse http-date timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Sun, 02 Jan 2000 20:34:56.456 GMT\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'httpdate': 946845296.456}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2000-01-02T20:34:56.123Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QueryHttpDateWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryHttpDateWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse http-date timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Sun, 02 Jan 2000 20:34:56.456 GMT\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'httpdate': 946845296.456}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], + ); + }); } class FractionalSecondsOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputEc2QuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart index 0673b527f0..3c2a10e6f4 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,131 +15,120 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2GreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2GreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how to deserialize the successful response', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Hello\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GreetingWithErrorsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2ComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2ComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n \n ComplexError\n Hi\n Top level\n \n bar\n \n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorEc2QuerySerializer(), - ComplexNestedErrorDataEc2QuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'Ec2InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2InvalidGreetingError', - documentation: 'Parses simple XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n \n InvalidGreeting\n Hi\n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2GreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2GreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how to deserialize the successful response', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Hello\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2ComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n \n ComplexError\n Hi\n Top level\n \n bar\n \n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorEc2QuerySerializer(), + ComplexNestedErrorDataEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2InvalidGreetingError', + documentation: 'Parses simple XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n \n InvalidGreeting\n Hi\n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingEc2QuerySerializer()], + ); + }); } class GreetingWithErrorsOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputEc2QuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -158,10 +147,12 @@ class GreetingWithErrorsOutputEc2QuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -187,11 +178,8 @@ class ComplexErrorEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexError deserialize( @@ -210,15 +198,20 @@ class ComplexErrorEc2QuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -238,18 +231,15 @@ class ComplexErrorEc2QuerySerializer class ComplexNestedErrorDataEc2QuerySerializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataEc2QuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexNestedErrorData deserialize( @@ -268,10 +258,12 @@ class ComplexNestedErrorDataEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -297,11 +289,8 @@ class InvalidGreetingEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override InvalidGreeting deserialize( @@ -320,10 +309,12 @@ class InvalidGreetingEc2QuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart index 59013b8156..72816613e2 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryHostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryHostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=HostWithPathOperation&Version=2020-01-08', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('Ec2QueryHostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryHostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=HostWithPathOperation&Version=2020-01-08', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart index 787046acc4..15cb6d63c8 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.ignores_wrapping_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,59 +12,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2IgnoresWrappingXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoresWrappingXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2IgnoresWrappingXmlName', - documentation: - 'The xmlName trait on the output structure is ignored in the ec2 protocol', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n bar\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'foo': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoresWrappingXmlNameOutputEc2QuerySerializer() - ], - ); - }, - ); + _i1.test('Ec2IgnoresWrappingXmlName (response)', () async { + await _i2.httpResponseTest( + operation: IgnoresWrappingXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2IgnoresWrappingXmlName', + documentation: + 'The xmlName trait on the output structure is ignored in the ec2 protocol', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n bar\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoresWrappingXmlNameOutputEc2QuerySerializer(), + ], + ); + }); } class IgnoresWrappingXmlNameOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputEc2QuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [IgnoresWrappingXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -83,10 +74,12 @@ class IgnoresWrappingXmlNameOutputEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart index 8c583e32ac..e6b031d7f0 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.nested_structures_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,71 +13,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2NestedStructures (request)', - () async { - await _i2.httpRequestTest( - operation: NestedStructuresOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2NestedStructures', - documentation: 'Serializes nested structures using dots', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Nested': { - 'StringArg': 'foo', - 'OtherArg': true, - 'RecursiveArg': {'StringArg': 'baz'}, - } + _i1.test('Ec2NestedStructures (request)', () async { + await _i2.httpRequestTest( + operation: NestedStructuresOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2NestedStructures', + documentation: 'Serializes nested structures using dots', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'Nested': { + 'StringArg': 'foo', + 'OtherArg': true, + 'RecursiveArg': {'StringArg': 'baz'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - NestedStructuresInputEc2QuerySerializer(), - StructArgEc2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + NestedStructuresInputEc2QuerySerializer(), + StructArgEc2QuerySerializer(), + ], + ); + }); } class NestedStructuresInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructuresInputEc2QuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [NestedStructuresInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructuresInput deserialize( @@ -96,10 +87,13 @@ class NestedStructuresInputEc2QuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -125,11 +119,8 @@ class StructArgEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructArg deserialize( @@ -148,20 +139,27 @@ class StructArgEc2QuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart index 082e8edbec..fb65ea1e6e 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,94 +12,79 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryNoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryNoInputAndOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=NoInputAndOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'Ec2QueryNoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryNoInputAndOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryNoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryNoInputAndOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=NoInputAndOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('Ec2QueryNoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryNoInputAndOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputEc2QuerySerializer()], + ); + }); } class NoInputAndOutputOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputEc2QuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart index 2fa008ff0c..f44f9c704d 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,99 +12,98 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('Ec2ProtocolIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ProtocolIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', + _i1.test( + 'Ec2ProtocolIdempotencyTokenAutoFill (request)', + () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000000', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); - _i1.test('Ec2ProtocolIdempotencyTokenAutoFillIsSet (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ProtocolIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ProtocolIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000000', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000123', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'token': '00000000-0000-4000-8000-000000000123'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputEc2QuerySerializer(), + ], + ); + }, + skip: 'bool.fromEnvironment is not working in tests for some reason', + ); + _i1.test( + 'Ec2ProtocolIdempotencyTokenAutoFillIsSet (request)', + () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ProtocolIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000123', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'token': '00000000-0000-4000-8000-000000000123'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputEc2QuerySerializer(), + ], + ); + }, + skip: 'bool.fromEnvironment is not working in tests for some reason', + ); } class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -123,10 +122,12 @@ class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_lists_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_lists_operation_test.dart index 17c12f3bc6..f91bddd7df 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.query_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,76 +15,27 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2Lists (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2Lists', - documentation: 'Serializes query lists. All EC2 lists are flattened.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&ComplexListArg.1.Hi=hello&ComplexListArg.2.Hi=hola', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArg': [ - 'foo', - 'bar', - 'baz', - ], - 'ComplexListArg': [ - {'hi': 'hello'}, - {'hi': 'hola'}, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputEc2QuerySerializer(), - GreetingStructEc2QuerySerializer(), - NestedStructWithListEc2QuerySerializer(), - ], - ); - }, - ); - _i1.test('Ec2EmptyQueryLists (request)', () async { + _i1.test('Ec2Lists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'Ec2EmptyQueryLists', - documentation: 'Serializes empty query lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), + id: 'Ec2Lists', + documentation: 'Serializes query lists. All EC2 lists are flattened.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&ListArg=', + body: + 'Action=QueryLists&Version=2020-01-08&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&ComplexListArg.1.Hi=hello&ComplexListArg.2.Hi=hola', bodyMediaType: 'application/x-www-form-urlencoded', - params: {'ListArg': []}, + params: { + 'ListArg': ['foo', 'bar', 'baz'], + 'ComplexListArg': [ + {'hi': 'hello'}, + {'hi': 'hola'}, + ], + }, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -106,9 +57,9 @@ void main() { NestedStructWithListEc2QuerySerializer(), ], ); - }, skip: 'Unclear how to reconcile with QueryEmptyQueryMaps'); + }); _i1.test( - 'Ec2ListArgWithXmlNameMember (request)', + 'Ec2EmptyQueryLists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( @@ -116,23 +67,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ListArgWithXmlNameMember', - documentation: - 'An xmlName trait in the member of a list has no effect on the list serialization.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), + id: 'Ec2EmptyQueryLists', + documentation: 'Serializes empty query lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.1=A&ListArgWithXmlNameMember.2=B', + body: 'Action=QueryLists&Version=2020-01-08&ListArg=', bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArgWithXmlNameMember': [ - 'A', - 'B', - ] - }, + params: {'ListArg': []}, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -155,104 +96,127 @@ void main() { ], ); }, + skip: 'Unclear how to reconcile with QueryEmptyQueryMaps', ); - _i1.test( - 'Ec2ListMemberWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ListMemberWithXmlName', - documentation: 'Changes the name of the list using the xmlName trait', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArgWithXmlName': [ - 'A', - 'B', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputEc2QuerySerializer(), - GreetingStructEc2QuerySerializer(), - NestedStructWithListEc2QuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'Ec2ListNestedStructWithList (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ListNestedStructWithList', - documentation: 'Nested structure with a list member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.1=A&NestedWithList.ListArg.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'NestedWithList': { - 'ListArg': [ - 'A', - 'B', - ] - } + _i1.test('Ec2ListArgWithXmlNameMember (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ListArgWithXmlNameMember', + documentation: + 'An xmlName trait in the member of a list has no effect on the list serialization.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.1=A&ListArgWithXmlNameMember.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ListArgWithXmlNameMember': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputEc2QuerySerializer(), + GreetingStructEc2QuerySerializer(), + NestedStructWithListEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2ListMemberWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ListMemberWithXmlName', + documentation: 'Changes the name of the list using the xmlName trait', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ListArgWithXmlName': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputEc2QuerySerializer(), + GreetingStructEc2QuerySerializer(), + NestedStructWithListEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2ListNestedStructWithList (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ListNestedStructWithList', + documentation: 'Nested structure with a list member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.1=A&NestedWithList.ListArg.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'NestedWithList': { + 'ListArg': ['A', 'B'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputEc2QuerySerializer(), - GreetingStructEc2QuerySerializer(), - NestedStructWithListEc2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputEc2QuerySerializer(), + GreetingStructEc2QuerySerializer(), + NestedStructWithListEc2QuerySerializer(), + ], + ); + }); } class QueryListsInputEc2QuerySerializer @@ -264,11 +228,8 @@ class QueryListsInputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryListsInput deserialize( @@ -287,42 +248,53 @@ class QueryListsInputEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i4.BuiltList)); + result.complexListArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltList), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArgWithXmlNameMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ListArgWithXmlName': - result.listArgWithXmlName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArgWithXmlName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -348,11 +320,8 @@ class GreetingStructEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingStruct deserialize( @@ -371,10 +340,12 @@ class GreetingStructEc2QuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -394,18 +365,15 @@ class GreetingStructEc2QuerySerializer class NestedStructWithListEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListEc2QuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [NestedStructWithList]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructWithList deserialize( @@ -424,13 +392,15 @@ class NestedStructWithListEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart index a9a0836d31..1becfd949c 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.query_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2TimestampsInput (request)', - () async { - await _i2.httpRequestTest( - operation: QueryTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2TimestampsInput', - documentation: 'Serializes timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=QueryTimestamps&Version=2020-01-08&NormalFormat=2015-01-25T08%3A00%3A00Z&EpochMember=1422172800&EpochTarget=1422172800', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'normalFormat': 1422172800, - 'epochMember': 1422172800, - 'epochTarget': 1422172800, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryTimestampsInputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2TimestampsInput (request)', () async { + await _i2.httpRequestTest( + operation: QueryTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2TimestampsInput', + documentation: 'Serializes timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryTimestamps&Version=2020-01-08&NormalFormat=2015-01-25T08%3A00%3A00Z&EpochMember=1422172800&EpochTarget=1422172800', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'normalFormat': 1422172800, + 'epochMember': 1422172800, + 'epochTarget': 1422172800, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryTimestampsInputEc2QuerySerializer()], + ); + }); } class QueryTimestampsInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const QueryTimestampsInputEc2QuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [QueryTimestampsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryTimestampsInput deserialize( @@ -90,11 +81,8 @@ class QueryTimestampsInputEc2QuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.normalFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochMember': result.epochMember = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart index a76eee7a62..0584b9dc6d 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.recursive_xml_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,71 +14,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2RecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveXmlShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2RecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { + _i1.test('Ec2RecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveXmlShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2RecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveXmlShapesOutputEc2QuerySerializer(), - RecursiveXmlShapesOutputNested1Ec2QuerySerializer(), - RecursiveXmlShapesOutputNested2Ec2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveXmlShapesOutputEc2QuerySerializer(), + RecursiveXmlShapesOutputNested1Ec2QuerySerializer(), + RecursiveXmlShapesOutputNested2Ec2QuerySerializer(), + ], + ); + }); } class RecursiveXmlShapesOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputEc2QuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [RecursiveXmlShapesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -97,10 +88,15 @@ class RecursiveXmlShapesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -120,18 +116,15 @@ class RecursiveXmlShapesOutputEc2QuerySerializer class RecursiveXmlShapesOutputNested1Ec2QuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [RecursiveXmlShapesOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -150,15 +143,22 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -178,18 +178,15 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer class RecursiveXmlShapesOutputNested2Ec2QuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [RecursiveXmlShapesOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -208,15 +205,22 @@ class RecursiveXmlShapesOutputNested2Ec2QuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart index 258a42c566..dad5b050e7 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.simple_input_params_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,536 +15,440 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2SimpleInputParamsStrings (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsStrings', - documentation: 'Serializes strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Bar': 'val2', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsStringAndBooleanTrue (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsStringAndBooleanTrue', - documentation: 'Serializes booleans that are true', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Baz': true, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsStringsAndBooleanFalse (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsStringsAndBooleanFalse', - documentation: 'Serializes booleans that are false', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Baz': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsInteger (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsInteger', - documentation: 'Serializes integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Bam': 10}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsFloat (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsFloat', - documentation: 'Serializes floats', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Boo': 10.8}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsBlob (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsBlob', - documentation: 'Blobs are base64 encoded in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Qux': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2Enums (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2Enums', - documentation: 'Serializes enums in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'FooEnum': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2Query (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2Query', - documentation: 'Serializes query using ec2QueryName trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&A=Hi', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'HasQueryName': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QueryIsPreferred (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryIsPreferred', - documentation: 'ec2QueryName trait is preferred over xmlName.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&B=Hi', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'HasQueryAndXmlName': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlNameIsUppercased (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2XmlNameIsUppercased', - documentation: - 'xmlName is used with the ec2 protocol, but the first character is uppercased', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&C=Hi', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'UsesXmlName': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QuerySupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'NaN', - 'Boo': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QuerySupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'Infinity', - 'Boo': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QuerySupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': '-Infinity', - 'Boo': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2SimpleInputParamsStrings (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsStrings', + documentation: 'Serializes strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Bar': 'val2'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsStringAndBooleanTrue (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsStringAndBooleanTrue', + documentation: 'Serializes booleans that are true', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Baz': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsStringsAndBooleanFalse (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsStringsAndBooleanFalse', + documentation: 'Serializes booleans that are false', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Baz': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsInteger (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsInteger', + documentation: 'Serializes integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Bam': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsFloat (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsFloat', + documentation: 'Serializes floats', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Boo': 10.8}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsBlob (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsBlob', + documentation: 'Blobs are base64 encoded in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Qux': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2Enums (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2Enums', + documentation: 'Serializes enums in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FooEnum': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2Query (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2Query', + documentation: 'Serializes query using ec2QueryName trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&A=Hi', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'HasQueryName': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QueryIsPreferred (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryIsPreferred', + documentation: 'ec2QueryName trait is preferred over xmlName.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&B=Hi', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'HasQueryAndXmlName': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlNameIsUppercased (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2XmlNameIsUppercased', + documentation: + 'xmlName is used with the ec2 protocol, but the first character is uppercased', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&C=Hi', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'UsesXmlName': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QuerySupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QuerySupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'NaN', 'Boo': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QuerySupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QuerySupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'Infinity', 'Boo': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QuerySupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QuerySupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': '-Infinity', 'Boo': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); } class SimpleInputParamsInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const SimpleInputParamsInputEc2QuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [SimpleInputParamsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleInputParamsInput deserialize( @@ -563,60 +467,82 @@ class SimpleInputParamsInputEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'HasQueryName': - result.hasQueryName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'HasQueryAndXmlName': - result.hasQueryAndXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryAndXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UsesXmlName': - result.usesXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.usesXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart index e59364f8c8..f8781a614c 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.simple_scalar_xml_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,183 +13,147 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2SimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2SimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'stringValue': 'string', - 'emptyStringValue': '', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNaNFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QuerySupportsNaNFloatOutputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n NaN\n NaN\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QuerySupportsInfinityFloatOutputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Infinity\n Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNegativeInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QuerySupportsNegativeInfinityFloatOutputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n -Infinity\n -Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); + _i1.test('Ec2SimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2SimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'stringValue': 'string', + 'emptyStringValue': '', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QuerySupportsNaNFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QuerySupportsNaNFloatOutputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n NaN\n NaN\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QuerySupportsInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QuerySupportsInfinityFloatOutputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Infinity\n Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QuerySupportsNegativeInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QuerySupportsNegativeInfinityFloatOutputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n -Infinity\n -Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); } class SimpleScalarXmlPropertiesOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [SimpleScalarXmlPropertiesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -208,55 +172,75 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart index 8b811c6c3f..f6082c18e6 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,39 +14,33 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n dmFsdWU=\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n dmFsdWU=\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], + ); + }); } class XmlBlobsOutputEc2QuerySerializer @@ -58,11 +52,8 @@ class XmlBlobsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlBlobsOutput deserialize( @@ -81,10 +72,12 @@ class XmlBlobsOutputEc2QuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart index ef637308fa..a8287052ae 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_empty_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,73 +14,61 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlEmptyBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEmptyBlobs', - documentation: 'Empty blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlEmptySelfClosedBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEmptySelfClosedBlobs', - documentation: - 'Empty self closed blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlEmptyBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEmptyBlobs', + documentation: 'Empty blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlEmptySelfClosedBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEmptySelfClosedBlobs', + documentation: + 'Empty self closed blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], + ); + }); } class XmlBlobsOutputEc2QuerySerializer @@ -92,11 +80,8 @@ class XmlBlobsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlBlobsOutput deserialize( @@ -115,10 +100,12 @@ class XmlBlobsOutputEc2QuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart index 36c015a1df..9ff533c044 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,45 +15,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlEmptyLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEmptyLists', - documentation: 'Deserializes empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputEc2QuerySerializer(), - StructureListMemberEc2QuerySerializer(), - ], - ); - }, - ); + _i1.test('Ec2XmlEmptyLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEmptyLists', + documentation: 'Deserializes empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputEc2QuerySerializer(), + StructureListMemberEc2QuerySerializer(), + ], + ); + }); } class XmlListsOutputEc2QuerySerializer @@ -65,11 +56,8 @@ class XmlListsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlListsOutput deserialize( @@ -88,123 +76,141 @@ class XmlListsOutputEc2QuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -230,11 +236,8 @@ class StructureListMemberEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructureListMember deserialize( @@ -253,15 +256,19 @@ class StructureListMemberEc2QuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart index 3879af5303..097151c0ce 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,55 +14,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlEnumsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlEnumsOutputEc2QuerySerializer()], + ); + }); } class XmlEnumsOutputEc2QuerySerializer @@ -74,11 +59,8 @@ class XmlEnumsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlEnumsOutput deserialize( @@ -97,47 +79,57 @@ class XmlEnumsOutputEc2QuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart index 5689e62311..3749d37fb8 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,55 +13,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlIntEnumsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlIntEnumsOutputEc2QuerySerializer()], + ); + }); } class XmlIntEnumsOutputEc2QuerySerializer @@ -73,11 +58,8 @@ class XmlIntEnumsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlIntEnumsOutput deserialize( @@ -96,47 +78,53 @@ class XmlIntEnumsOutputEc2QuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i4.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart index ba0f2df1f7..9112905601 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,111 +15,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'flattenedListWithMemberNamespace': [ - 'a', - 'b', - ], - 'flattenedListWithNamespace': [ - 'a', - 'b', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputEc2QuerySerializer(), - StructureListMemberEc2QuerySerializer(), - ], - ); - }, - ); + _i1.test('Ec2XmlLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'flattenedListWithMemberNamespace': ['a', 'b'], + 'flattenedListWithNamespace': ['a', 'b'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputEc2QuerySerializer(), + StructureListMemberEc2QuerySerializer(), + ], + ); + }); } class XmlListsOutputEc2QuerySerializer @@ -131,11 +77,8 @@ class XmlListsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlListsOutput deserialize( @@ -154,123 +97,141 @@ class XmlListsOutputEc2QuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -296,11 +257,8 @@ class StructureListMemberEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructureListMember deserialize( @@ -319,15 +277,19 @@ class StructureListMemberEc2QuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart index 20075a5f1f..e8a5e6e749 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_namespaces_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,50 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlNamespaces (response)', - () async { - await _i2.httpResponseTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n Foo\n \n Bar\n Baz\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + _i1.test('Ec2XmlNamespaces (response)', () async { + await _i2.httpResponseTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n Foo\n \n Bar\n Baz\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlNamespacesOutputEc2QuerySerializer(), - XmlNamespaceNestedEc2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlNamespacesOutputEc2QuerySerializer(), + XmlNamespaceNestedEc2QuerySerializer(), + ], + ); + }); } class XmlNamespacesOutputEc2QuerySerializer @@ -69,11 +60,8 @@ class XmlNamespacesOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespacesOutput deserialize( @@ -92,10 +80,13 @@ class XmlNamespacesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -121,11 +112,8 @@ class XmlNamespaceNestedEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespaceNested deserialize( @@ -144,18 +132,22 @@ class XmlNamespaceNestedEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart index e1bb0d5172..32b730a730 100644 --- a/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v1.ec2_protocol.test.xml_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,242 +12,200 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithDateTimeOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 1398796238\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithEpochSecondsOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 1398796238\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithHttpDateOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithDateTimeOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 1398796238\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithEpochSecondsOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 1398796238\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithHttpDateOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); } class XmlTimestampsOutputEc2QuerySerializer @@ -259,11 +217,8 @@ class XmlTimestampsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlTimestampsOutput deserialize( @@ -292,34 +247,22 @@ class XmlTimestampsOutputEc2QuerySerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/api_gateway.dart b/packages/smithy/goldens/lib/restJson1/lib/api_gateway.dart index 1430e21b4a..8882eec4de 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/api_gateway.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/api_gateway.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon API Gateway library rest_json1_v1.api_gateway; diff --git a/packages/smithy/goldens/lib/restJson1/lib/glacier.dart b/packages/smithy/goldens/lib/restJson1/lib/glacier.dart index b5dd165e1e..d1207bb4bc 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/glacier.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/glacier.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon Glacier library rest_json1_v1.glacier; diff --git a/packages/smithy/goldens/lib/restJson1/lib/rest_json_protocol.dart b/packages/smithy/goldens/lib/restJson1/lib/rest_json_protocol.dart index cca43b6873..5fc21958a6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/rest_json_protocol.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/rest_json_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST JSON service that sends JSON requests and responses. library rest_json1_v1.rest_json_protocol; diff --git a/packages/smithy/goldens/lib/restJson1/lib/rest_json_validation_protocol.dart b/packages/smithy/goldens/lib/restJson1/lib/rest_json_validation_protocol.dart index f497e47983..e33a539f33 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/rest_json_validation_protocol.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/rest_json_validation_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST JSON service that sends JSON requests and responses with validation applied library rest_json1_v1.rest_json_validation_protocol; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_client.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_client.dart index 7bd751f941..dac4d89f49 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_client.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.api_gateway_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,12 +20,12 @@ class ApiGatewayClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -40,7 +40,7 @@ class ApiGatewayClient { final List<_i3.HttpResponseInterceptor> _responseInterceptors; _i3.SmithyOperation<_i3.PaginatedResult<_i4.BuiltList, int, String>> - getRestApis( + getRestApis( GetRestApisRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -51,9 +51,6 @@ class ApiGatewayClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).runPaginated( - input, - client: client ?? _client, - ); + ).runPaginated(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_server.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_server.dart index 8586ce8f49..1abc0c750a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_server.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/api_gateway_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.api_gateway_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,11 +27,7 @@ abstract class ApiGatewayServerBase extends _i1.HttpServerBase { late final Router _router = () { final service = _ApiGatewayServer(this); final router = Router(); - router.add( - 'GET', - r'/restapis', - service.getRestApis, - ); + router.add('GET', r'/restapis', service.getRestApis); return router; }(); @@ -48,8 +44,13 @@ class _ApiGatewayServer extends _i1.HttpServer { @override final ApiGatewayServerBase service; - late final _i1.HttpProtocol _getRestApisProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + GetRestApisRequestPayload, + GetRestApisRequest, + RestApis, + RestApis + > + _getRestApisProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -59,26 +60,22 @@ class _ApiGatewayServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _getRestApisProtocol.contentType; try { - final payload = (await _getRestApisProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GetRestApisRequestPayload), - ) as GetRestApisRequestPayload); + final payload = + (await _getRestApisProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(GetRestApisRequestPayload), + ) + as GetRestApisRequestPayload); final input = GetRestApisRequest.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.getRestApis( - input, - context, - ); + final output = await service.getRestApis(input, context); const statusCode = 200; final body = await _getRestApisProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - RestApis, - [FullType(RestApis)], - ), + specifiedType: const FullType(RestApis, [FullType(RestApis)]), ); return _i4.Response( statusCode, @@ -89,10 +86,9 @@ class _ApiGatewayServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'BadRequestException'; final body = _getRestApisProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - BadRequestException, - [FullType(BadRequestException)], - ), + specifiedType: const FullType(BadRequestException, [ + FullType(BadRequestException), + ]), ); const statusCode = 400; return _i4.Response( @@ -104,10 +100,9 @@ class _ApiGatewayServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'TooManyRequestsException'; final body = _getRestApisProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - TooManyRequestsException, - [FullType(TooManyRequestsExceptionPayload)], - ), + specifiedType: const FullType(TooManyRequestsException, [ + FullType(TooManyRequestsExceptionPayload), + ]), ); const statusCode = 429; return _i4.Response( @@ -119,10 +114,9 @@ class _ApiGatewayServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'UnauthorizedException'; final body = _getRestApisProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - UnauthorizedException, - [FullType(UnauthorizedException)], - ), + specifiedType: const FullType(UnauthorizedException, [ + FullType(UnauthorizedException), + ]), ); const statusCode = 401; return _i4.Response( @@ -131,10 +125,7 @@ class _ApiGatewayServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart index caf05a8410..faf23a2d75 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -79,10 +79,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { 'cn-north-1': _i1.EndpointDefinition(variants: []), 'cn-northwest-1': _i1.EndpointDefinition(variants: []), @@ -100,10 +97,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {'us-iso-east-1': _i1.EndpointDefinition(variants: [])}, ), _i1.Partition( @@ -133,10 +127,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'us-gov-east-1': _i1.EndpointDefinition(variants: []), 'us-gov-west-1': _i1.EndpointDefinition(variants: []), @@ -144,7 +135,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'API Gateway'; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/serializers.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/serializers.dart index 5e99277c5c..85e00b23cd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/serializers.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,30 +48,17 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(RestApi)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(EndpointType)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(RestApi)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(EndpointType)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/api_key_source_type.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/api_key_source_type.dart index 6e7cb29b7e..7285ea12fe 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/api_key_source_type.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/api_key_source_type.dart @@ -1,30 +1,18 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.api_key_source_type; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class ApiKeySourceType extends _i1.SmithyEnum { - const ApiKeySourceType._( - super.index, - super.name, - super.value, - ); + const ApiKeySourceType._(super.index, super.name, super.value); const ApiKeySourceType._sdkUnknown(super.value) : super.sdkUnknown(); - static const authorizer = ApiKeySourceType._( - 0, - 'AUTHORIZER', - 'AUTHORIZER', - ); + static const authorizer = ApiKeySourceType._(0, 'AUTHORIZER', 'AUTHORIZER'); - static const header = ApiKeySourceType._( - 1, - 'HEADER', - 'HEADER', - ); + static const header = ApiKeySourceType._(1, 'HEADER', 'HEADER'); /// All values of [ApiKeySourceType]. static const values = [ @@ -38,12 +26,9 @@ class ApiKeySourceType extends _i1.SmithyEnum { values: values, sdkUnknown: ApiKeySourceType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.dart index 4fb9a58971..c5cc303b4c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.dart index bee2b7a6ce..26a17a3a1f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.bad_request_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class BadRequestException return _$BadRequestException._(message: message); } - factory BadRequestException.build( - [void Function(BadRequestExceptionBuilder) updates]) = - _$BadRequestException; + factory BadRequestException.build([ + void Function(BadRequestExceptionBuilder) updates, + ]) = _$BadRequestException; const BadRequestException._(); @@ -29,22 +29,21 @@ abstract class BadRequestException factory BadRequestException.fromResponse( BadRequestException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - BadRequestExceptionRestJson1Serializer() + BadRequestExceptionRestJson1Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'BadRequestException', - ); + namespace: 'com.amazonaws.apigateway', + shape: 'BadRequestException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -65,10 +64,7 @@ abstract class BadRequestException @override String toString() { final helper = newBuiltValueToStringHelper('BadRequestException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,17 +75,14 @@ class BadRequestExceptionRestJson1Serializer @override Iterable get types => const [ - BadRequestException, - _$BadRequestException, - ]; + BadRequestException, + _$BadRequestException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override BadRequestException deserialize( @@ -108,10 +101,12 @@ class BadRequestExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -129,10 +124,9 @@ class BadRequestExceptionRestJson1Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart index 98292d0f79..c6102f85b4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart @@ -12,16 +12,16 @@ class _$BadRequestException extends BadRequestException { @override final Map? headers; - factory _$BadRequestException( - [void Function(BadRequestExceptionBuilder)? updates]) => - (new BadRequestExceptionBuilder()..update(updates))._build(); + factory _$BadRequestException([ + void Function(BadRequestExceptionBuilder)? updates, + ]) => (new BadRequestExceptionBuilder()..update(updates))._build(); _$BadRequestException._({this.message, this.headers}) : super._(); @override BadRequestException rebuild( - void Function(BadRequestExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(BadRequestExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override BadRequestExceptionBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.dart index df44bb36f8..e9f1366ebb 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart index 3bbd5b65ba..440618dd34 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.endpoint_configuration; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,35 +26,27 @@ abstract class EndpointConfiguration ); } - factory EndpointConfiguration.build( - [void Function(EndpointConfigurationBuilder) updates]) = - _$EndpointConfiguration; + factory EndpointConfiguration.build([ + void Function(EndpointConfigurationBuilder) updates, + ]) = _$EndpointConfiguration; const EndpointConfiguration._(); static const List<_i3.SmithySerializer> serializers = [ - EndpointConfigurationRestJson1Serializer() + EndpointConfigurationRestJson1Serializer(), ]; _i2.BuiltList? get types; _i2.BuiltList? get vpcEndpointIds; @override - List get props => [ - types, - vpcEndpointIds, - ]; + List get props => [types, vpcEndpointIds]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointConfiguration') - ..add( - 'types', - types, - ) - ..add( - 'vpcEndpointIds', - vpcEndpointIds, - ); + final helper = + newBuiltValueToStringHelper('EndpointConfiguration') + ..add('types', types) + ..add('vpcEndpointIds', vpcEndpointIds); return helper.toString(); } } @@ -62,21 +54,18 @@ abstract class EndpointConfiguration class EndpointConfigurationRestJson1Serializer extends _i3.StructuredSmithySerializer { const EndpointConfigurationRestJson1Serializer() - : super('EndpointConfiguration'); + : super('EndpointConfiguration'); @override Iterable get types => const [ - EndpointConfiguration, - _$EndpointConfiguration, - ]; + EndpointConfiguration, + _$EndpointConfiguration, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointConfiguration deserialize( @@ -95,21 +84,25 @@ class EndpointConfigurationRestJson1Serializer } switch (key) { case 'types': - result.types.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(EndpointType)], - ), - ) as _i2.BuiltList)); + result.types.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(EndpointType), + ]), + ) + as _i2.BuiltList), + ); case 'vpcEndpointIds': - result.vpcEndpointIds.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.vpcEndpointIds.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -127,24 +120,24 @@ class EndpointConfigurationRestJson1Serializer if (types != null) { result$ ..add('types') - ..add(serializers.serialize( - types, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(EndpointType)], + ..add( + serializers.serialize( + types, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(EndpointType), + ]), ), - )); + ); } if (vpcEndpointIds != null) { result$ ..add('vpcEndpointIds') - ..add(serializers.serialize( - vpcEndpointIds, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + vpcEndpointIds, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart index 9697b828ef..7afe21e070 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart @@ -12,16 +12,16 @@ class _$EndpointConfiguration extends EndpointConfiguration { @override final _i2.BuiltList? vpcEndpointIds; - factory _$EndpointConfiguration( - [void Function(EndpointConfigurationBuilder)? updates]) => - (new EndpointConfigurationBuilder()..update(updates))._build(); + factory _$EndpointConfiguration([ + void Function(EndpointConfigurationBuilder)? updates, + ]) => (new EndpointConfigurationBuilder()..update(updates))._build(); _$EndpointConfiguration._({this.types, this.vpcEndpointIds}) : super._(); @override EndpointConfiguration rebuild( - void Function(EndpointConfigurationBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EndpointConfigurationBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EndpointConfigurationBuilder toBuilder() => @@ -89,9 +89,12 @@ class EndpointConfigurationBuilder _$EndpointConfiguration _build() { _$EndpointConfiguration _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EndpointConfiguration._( - types: _types?.build(), vpcEndpointIds: _vpcEndpointIds?.build()); + types: _types?.build(), + vpcEndpointIds: _vpcEndpointIds?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,7 +104,10 @@ class EndpointConfigurationBuilder _vpcEndpointIds?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EndpointConfiguration', _$failedField, e.toString()); + r'EndpointConfiguration', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_type.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_type.dart index b459e636ac..1183a7c2cc 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_type.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/endpoint_type.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.endpoint_type; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EndpointType extends _i1.SmithyEnum { - const EndpointType._( - super.index, - super.name, - super.value, - ); + const EndpointType._(super.index, super.name, super.value); const EndpointType._sdkUnknown(super.value) : super.sdkUnknown(); - static const edge = EndpointType._( - 0, - 'EDGE', - 'EDGE', - ); + static const edge = EndpointType._(0, 'EDGE', 'EDGE'); - static const private = EndpointType._( - 1, - 'PRIVATE', - 'PRIVATE', - ); + static const private = EndpointType._(1, 'PRIVATE', 'PRIVATE'); - static const regional = EndpointType._( - 2, - 'REGIONAL', - 'REGIONAL', - ); + static const regional = EndpointType._(2, 'REGIONAL', 'REGIONAL'); /// All values of [EndpointType]. static const values = [ @@ -45,12 +29,9 @@ class EndpointType extends _i1.SmithyEnum { values: values, sdkUnknown: EndpointType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.dart index 8c36c15395..d2524ccd46 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.dart index 37a431a391..4293b32527 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart index ffa3b8694d..6516f997c5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.get_rest_apis_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,19 +19,13 @@ abstract class GetRestApisRequest Built, _i1.EmptyPayload, _i1.HasPayload { - factory GetRestApisRequest({ - String? position, - int? limit, - }) { - return _$GetRestApisRequest._( - position: position, - limit: limit, - ); + factory GetRestApisRequest({String? position, int? limit}) { + return _$GetRestApisRequest._(position: position, limit: limit); } - factory GetRestApisRequest.build( - [void Function(GetRestApisRequestBuilder) updates]) = - _$GetRestApisRequest; + factory GetRestApisRequest.build([ + void Function(GetRestApisRequestBuilder) updates, + ]) = _$GetRestApisRequest; const GetRestApisRequest._(); @@ -39,18 +33,17 @@ abstract class GetRestApisRequest GetRestApisRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetRestApisRequest.build((b) { - if (request.queryParameters['position'] != null) { - b.position = request.queryParameters['position']!; - } - if (request.queryParameters['limit'] != null) { - b.limit = int.parse(request.queryParameters['limit']!); - } - }); + }) => GetRestApisRequest.build((b) { + if (request.queryParameters['position'] != null) { + b.position = request.queryParameters['position']!; + } + if (request.queryParameters['limit'] != null) { + b.limit = int.parse(request.queryParameters['limit']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [GetRestApisRequestRestJson1Serializer()]; + serializers = [GetRestApisRequestRestJson1Serializer()]; String? get position; int? get limit; @@ -58,22 +51,14 @@ abstract class GetRestApisRequest GetRestApisRequestPayload getPayload() => GetRestApisRequestPayload(); @override - List get props => [ - position, - limit, - ]; + List get props => [position, limit]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetRestApisRequest') - ..add( - 'position', - position, - ) - ..add( - 'limit', - limit, - ); + final helper = + newBuiltValueToStringHelper('GetRestApisRequest') + ..add('position', position) + ..add('limit', limit); return helper.toString(); } } @@ -84,9 +69,9 @@ abstract class GetRestApisRequestPayload implements Built, _i1.EmptyPayload { - factory GetRestApisRequestPayload( - [void Function(GetRestApisRequestPayloadBuilder) updates]) = - _$GetRestApisRequestPayload; + factory GetRestApisRequestPayload([ + void Function(GetRestApisRequestPayloadBuilder) updates, + ]) = _$GetRestApisRequestPayload; const GetRestApisRequestPayload._(); @@ -106,19 +91,16 @@ class GetRestApisRequestRestJson1Serializer @override Iterable get types => const [ - GetRestApisRequest, - _$GetRestApisRequest, - GetRestApisRequestPayload, - _$GetRestApisRequestPayload, - ]; + GetRestApisRequest, + _$GetRestApisRequest, + GetRestApisRequestPayload, + _$GetRestApisRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GetRestApisRequestPayload deserialize( @@ -134,6 +116,5 @@ class GetRestApisRequestRestJson1Serializer Serializers serializers, GetRestApisRequestPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart index 63a72afb96..5c4819f920 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart @@ -12,16 +12,16 @@ class _$GetRestApisRequest extends GetRestApisRequest { @override final int? limit; - factory _$GetRestApisRequest( - [void Function(GetRestApisRequestBuilder)? updates]) => - (new GetRestApisRequestBuilder()..update(updates))._build(); + factory _$GetRestApisRequest([ + void Function(GetRestApisRequestBuilder)? updates, + ]) => (new GetRestApisRequestBuilder()..update(updates))._build(); _$GetRestApisRequest._({this.position, this.limit}) : super._(); @override GetRestApisRequest rebuild( - void Function(GetRestApisRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetRestApisRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetRestApisRequestBuilder toBuilder() => @@ -92,16 +92,16 @@ class GetRestApisRequestBuilder } class _$GetRestApisRequestPayload extends GetRestApisRequestPayload { - factory _$GetRestApisRequestPayload( - [void Function(GetRestApisRequestPayloadBuilder)? updates]) => - (new GetRestApisRequestPayloadBuilder()..update(updates))._build(); + factory _$GetRestApisRequestPayload([ + void Function(GetRestApisRequestPayloadBuilder)? updates, + ]) => (new GetRestApisRequestPayloadBuilder()..update(updates))._build(); _$GetRestApisRequestPayload._() : super._(); @override GetRestApisRequestPayload rebuild( - void Function(GetRestApisRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetRestApisRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetRestApisRequestPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.dart index 839b567b25..6eb3485988 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.dart index a0f39427c0..369c307c7a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.rest_api; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -54,7 +54,7 @@ abstract class RestApi const RestApi._(); static const List<_i3.SmithySerializer> serializers = [ - RestApiRestJson1Serializer() + RestApiRestJson1Serializer(), ]; String? get id; @@ -72,76 +72,38 @@ abstract class RestApi bool? get disableExecuteApiEndpoint; @override List get props => [ - id, - name, - description, - createdDate, - version, - warnings, - binaryMediaTypes, - minimumCompressionSize, - apiKeySource, - endpointConfiguration, - policy, - tags, - disableExecuteApiEndpoint, - ]; + id, + name, + description, + createdDate, + version, + warnings, + binaryMediaTypes, + minimumCompressionSize, + apiKeySource, + endpointConfiguration, + policy, + tags, + disableExecuteApiEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('RestApi') - ..add( - 'id', - id, - ) - ..add( - 'name', - name, - ) - ..add( - 'description', - description, - ) - ..add( - 'createdDate', - createdDate, - ) - ..add( - 'version', - version, - ) - ..add( - 'warnings', - warnings, - ) - ..add( - 'binaryMediaTypes', - binaryMediaTypes, - ) - ..add( - 'minimumCompressionSize', - minimumCompressionSize, - ) - ..add( - 'apiKeySource', - apiKeySource, - ) - ..add( - 'endpointConfiguration', - endpointConfiguration, - ) - ..add( - 'policy', - policy, - ) - ..add( - 'tags', - tags, - ) - ..add( - 'disableExecuteApiEndpoint', - disableExecuteApiEndpoint, - ); + final helper = + newBuiltValueToStringHelper('RestApi') + ..add('id', id) + ..add('name', name) + ..add('description', description) + ..add('createdDate', createdDate) + ..add('version', version) + ..add('warnings', warnings) + ..add('binaryMediaTypes', binaryMediaTypes) + ..add('minimumCompressionSize', minimumCompressionSize) + ..add('apiKeySource', apiKeySource) + ..add('endpointConfiguration', endpointConfiguration) + ..add('policy', policy) + ..add('tags', tags) + ..add('disableExecuteApiEndpoint', disableExecuteApiEndpoint); return helper.toString(); } } @@ -151,18 +113,12 @@ class RestApiRestJson1Serializer const RestApiRestJson1Serializer() : super('RestApi'); @override - Iterable get types => const [ - RestApi, - _$RestApi, - ]; + Iterable get types => const [RestApi, _$RestApi]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApi deserialize( @@ -181,82 +137,107 @@ class RestApiRestJson1Serializer } switch (key) { case 'apiKeySource': - result.apiKeySource = (serializers.deserialize( - value, - specifiedType: const FullType(ApiKeySourceType), - ) as ApiKeySourceType); + result.apiKeySource = + (serializers.deserialize( + value, + specifiedType: const FullType(ApiKeySourceType), + ) + as ApiKeySourceType); case 'binaryMediaTypes': - result.binaryMediaTypes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.binaryMediaTypes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'createdDate': - result.createdDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.createdDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'description': - result.description = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.description = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'disableExecuteApiEndpoint': - result.disableExecuteApiEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.disableExecuteApiEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'endpointConfiguration': - result.endpointConfiguration.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointConfiguration), - ) as EndpointConfiguration)); + result.endpointConfiguration.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointConfiguration), + ) + as EndpointConfiguration), + ); case 'id': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'minimumCompressionSize': - result.minimumCompressionSize = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minimumCompressionSize = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'policy': - result.policy = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.policy = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'tags': - result.tags.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.tags.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); case 'version': - result.version = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.version = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'warnings': - result.warnings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.warnings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -283,123 +264,126 @@ class RestApiRestJson1Serializer :policy, :tags, :version, - :warnings + :warnings, ) = object; if (apiKeySource != null) { result$ ..add('apiKeySource') - ..add(serializers.serialize( - apiKeySource, - specifiedType: const FullType(ApiKeySourceType), - )); + ..add( + serializers.serialize( + apiKeySource, + specifiedType: const FullType(ApiKeySourceType), + ), + ); } if (binaryMediaTypes != null) { result$ ..add('binaryMediaTypes') - ..add(serializers.serialize( - binaryMediaTypes, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + binaryMediaTypes, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (createdDate != null) { result$ ..add('createdDate') - ..add(serializers.serialize( - createdDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + createdDate, + specifiedType: const FullType(DateTime), + ), + ); } if (description != null) { result$ ..add('description') - ..add(serializers.serialize( - description, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + description, + specifiedType: const FullType(String), + ), + ); } if (disableExecuteApiEndpoint != null) { result$ ..add('disableExecuteApiEndpoint') - ..add(serializers.serialize( - disableExecuteApiEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + disableExecuteApiEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (endpointConfiguration != null) { result$ ..add('endpointConfiguration') - ..add(serializers.serialize( - endpointConfiguration, - specifiedType: const FullType(EndpointConfiguration), - )); + ..add( + serializers.serialize( + endpointConfiguration, + specifiedType: const FullType(EndpointConfiguration), + ), + ); } if (id != null) { result$ ..add('id') - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } if (minimumCompressionSize != null) { result$ ..add('minimumCompressionSize') - ..add(serializers.serialize( - minimumCompressionSize, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + minimumCompressionSize, + specifiedType: const FullType(int), + ), + ); } if (name != null) { result$ ..add('name') - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } if (policy != null) { result$ ..add('policy') - ..add(serializers.serialize( - policy, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(policy, specifiedType: const FullType(String)), + ); } if (tags != null) { result$ ..add('tags') - ..add(serializers.serialize( - tags, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + tags, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (version != null) { result$ ..add('version') - ..add(serializers.serialize( - version, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(version, specifiedType: const FullType(String)), + ); } if (warnings != null) { result$ ..add('warnings') - ..add(serializers.serialize( - warnings, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + warnings, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.g.dart index 3631ff1770..4aaf6c2f10 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_api.g.dart @@ -37,21 +37,21 @@ class _$RestApi extends RestApi { factory _$RestApi([void Function(RestApiBuilder)? updates]) => (new RestApiBuilder()..update(updates))._build(); - _$RestApi._( - {this.id, - this.name, - this.description, - this.createdDate, - this.version, - this.warnings, - this.binaryMediaTypes, - this.minimumCompressionSize, - this.apiKeySource, - this.endpointConfiguration, - this.policy, - this.tags, - this.disableExecuteApiEndpoint}) - : super._(); + _$RestApi._({ + this.id, + this.name, + this.description, + this.createdDate, + this.version, + this.warnings, + this.binaryMediaTypes, + this.minimumCompressionSize, + this.apiKeySource, + this.endpointConfiguration, + this.policy, + this.tags, + this.disableExecuteApiEndpoint, + }) : super._(); @override RestApi rebuild(void Function(RestApiBuilder) updates) => @@ -149,8 +149,8 @@ class RestApiBuilder implements Builder { EndpointConfigurationBuilder get endpointConfiguration => _$this._endpointConfiguration ??= new EndpointConfigurationBuilder(); set endpointConfiguration( - EndpointConfigurationBuilder? endpointConfiguration) => - _$this._endpointConfiguration = endpointConfiguration; + EndpointConfigurationBuilder? endpointConfiguration, + ) => _$this._endpointConfiguration = endpointConfiguration; String? _policy; String? get policy => _$this._policy; @@ -206,21 +206,23 @@ class RestApiBuilder implements Builder { _$RestApi _build() { _$RestApi _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RestApi._( - id: id, - name: name, - description: description, - createdDate: createdDate, - version: version, - warnings: _warnings?.build(), - binaryMediaTypes: _binaryMediaTypes?.build(), - minimumCompressionSize: minimumCompressionSize, - apiKeySource: apiKeySource, - endpointConfiguration: _endpointConfiguration?.build(), - policy: policy, - tags: _tags?.build(), - disableExecuteApiEndpoint: disableExecuteApiEndpoint); + id: id, + name: name, + description: description, + createdDate: createdDate, + version: version, + warnings: _warnings?.build(), + binaryMediaTypes: _binaryMediaTypes?.build(), + minimumCompressionSize: minimumCompressionSize, + apiKeySource: apiKeySource, + endpointConfiguration: _endpointConfiguration?.build(), + policy: policy, + tags: _tags?.build(), + disableExecuteApiEndpoint: disableExecuteApiEndpoint, + ); } catch (_) { late String _$failedField; try { @@ -236,7 +238,10 @@ class RestApiBuilder implements Builder { _tags?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RestApi', _$failedField, e.toString()); + r'RestApi', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.dart index 80179ded66..1219c13fc9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.rest_apis; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,10 +15,7 @@ part 'rest_apis.g.dart'; abstract class RestApis with _i1.AWSEquatable implements Built { - factory RestApis({ - List? items, - String? position, - }) { + factory RestApis({List? items, String? position}) { return _$RestApis._( items: items == null ? null : _i2.BuiltList(items), position: position, @@ -33,32 +30,23 @@ abstract class RestApis factory RestApis.fromResponse( RestApis payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - RestApisRestJson1Serializer() + RestApisRestJson1Serializer(), ]; _i2.BuiltList? get items; String? get position; @override - List get props => [ - items, - position, - ]; + List get props => [items, position]; @override String toString() { - final helper = newBuiltValueToStringHelper('RestApis') - ..add( - 'items', - items, - ) - ..add( - 'position', - position, - ); + final helper = + newBuiltValueToStringHelper('RestApis') + ..add('items', items) + ..add('position', position); return helper.toString(); } } @@ -68,18 +56,12 @@ class RestApisRestJson1Serializer const RestApisRestJson1Serializer() : super('RestApis'); @override - Iterable get types => const [ - RestApis, - _$RestApis, - ]; + Iterable get types => const [RestApis, _$RestApis]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApis deserialize( @@ -98,18 +80,22 @@ class RestApisRestJson1Serializer } switch (key) { case 'item': - result.items.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(RestApi)], - ), - ) as _i2.BuiltList)); + result.items.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(RestApi), + ]), + ) + as _i2.BuiltList), + ); case 'position': - result.position = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.position = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -127,21 +113,22 @@ class RestApisRestJson1Serializer if (items != null) { result$ ..add('item') - ..add(serializers.serialize( - items, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(RestApi)], + ..add( + serializers.serialize( + items, + specifiedType: const FullType(_i2.BuiltList, [FullType(RestApi)]), ), - )); + ); } if (position != null) { result$ ..add('position') - ..add(serializers.serialize( - position, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + position, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.g.dart index 93aac89709..3d3fa09705 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/rest_apis.g.dart @@ -92,7 +92,10 @@ class RestApisBuilder implements Builder { _items?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RestApis', _$failedField, e.toString()); + r'RestApis', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_config.dart index 4ae7b65caf..a64b6b7179 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_mode.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_mode.dart index 0d758ec3d3..28eaf1091c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart index 89f25f632e..c8b2f9a8c4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.dart index 5c0e5d3dcd..9fc4e8b1b0 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.dart index 4285ebb3b5..5f22711004 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart index f40908cbfd..f85472bf31 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.too_many_requests_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class TooManyRequestsException ); } - factory TooManyRequestsException.build( - [void Function(TooManyRequestsExceptionBuilder) updates]) = - _$TooManyRequestsException; + factory TooManyRequestsException.build([ + void Function(TooManyRequestsExceptionBuilder) updates, + ]) = _$TooManyRequestsException; const TooManyRequestsException._(); @@ -37,17 +37,16 @@ abstract class TooManyRequestsException factory TooManyRequestsException.fromResponse( TooManyRequestsExceptionPayload payload, _i1.AWSBaseHttpResponse response, - ) => - TooManyRequestsException.build((b) { - b.message = payload.message; - if (response.headers['Retry-After'] != null) { - b.retryAfterSeconds = response.headers['Retry-After']!; - } - b.headers = response.headers; - }); + ) => TooManyRequestsException.build((b) { + b.message = payload.message; + if (response.headers['Retry-After'] != null) { + b.retryAfterSeconds = response.headers['Retry-After']!; + } + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [TooManyRequestsExceptionRestJson1Serializer()]; + serializers = [TooManyRequestsExceptionRestJson1Serializer()]; String? get retryAfterSeconds; @override @@ -60,9 +59,9 @@ abstract class TooManyRequestsException @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'TooManyRequestsException', - ); + namespace: 'com.amazonaws.apigateway', + shape: 'TooManyRequestsException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -78,36 +77,29 @@ abstract class TooManyRequestsException Exception? get underlyingException => null; @override - List get props => [ - retryAfterSeconds, - message, - ]; + List get props => [retryAfterSeconds, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('TooManyRequestsException') - ..add( - 'retryAfterSeconds', - retryAfterSeconds, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('TooManyRequestsException') + ..add('retryAfterSeconds', retryAfterSeconds) + ..add('message', message); return helper.toString(); } } @_i3.internal abstract class TooManyRequestsExceptionPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { - factory TooManyRequestsExceptionPayload( - [void Function(TooManyRequestsExceptionPayloadBuilder) updates]) = - _$TooManyRequestsExceptionPayload; + Built< + TooManyRequestsExceptionPayload, + TooManyRequestsExceptionPayloadBuilder + > { + factory TooManyRequestsExceptionPayload([ + void Function(TooManyRequestsExceptionPayloadBuilder) updates, + ]) = _$TooManyRequestsExceptionPayload; const TooManyRequestsExceptionPayload._(); @@ -117,12 +109,9 @@ abstract class TooManyRequestsExceptionPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TooManyRequestsExceptionPayload') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'TooManyRequestsExceptionPayload', + )..add('message', message); return helper.toString(); } } @@ -130,23 +119,20 @@ abstract class TooManyRequestsExceptionPayload class TooManyRequestsExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const TooManyRequestsExceptionRestJson1Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [ - TooManyRequestsException, - _$TooManyRequestsException, - TooManyRequestsExceptionPayload, - _$TooManyRequestsExceptionPayload, - ]; + TooManyRequestsException, + _$TooManyRequestsException, + TooManyRequestsExceptionPayload, + _$TooManyRequestsExceptionPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TooManyRequestsExceptionPayload deserialize( @@ -165,10 +151,12 @@ class TooManyRequestsExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -186,10 +174,9 @@ class TooManyRequestsExceptionRestJson1Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart index 1b229baf60..d002c2594c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart @@ -14,18 +14,20 @@ class _$TooManyRequestsException extends TooManyRequestsException { @override final Map? headers; - factory _$TooManyRequestsException( - [void Function(TooManyRequestsExceptionBuilder)? updates]) => - (new TooManyRequestsExceptionBuilder()..update(updates))._build(); + factory _$TooManyRequestsException([ + void Function(TooManyRequestsExceptionBuilder)? updates, + ]) => (new TooManyRequestsExceptionBuilder()..update(updates))._build(); - _$TooManyRequestsException._( - {this.retryAfterSeconds, this.message, this.headers}) - : super._(); + _$TooManyRequestsException._({ + this.retryAfterSeconds, + this.message, + this.headers, + }) : super._(); @override TooManyRequestsException rebuild( - void Function(TooManyRequestsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionBuilder toBuilder() => @@ -95,11 +97,13 @@ class TooManyRequestsExceptionBuilder TooManyRequestsException build() => _build(); _$TooManyRequestsException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TooManyRequestsException._( - retryAfterSeconds: retryAfterSeconds, - message: message, - headers: headers); + retryAfterSeconds: retryAfterSeconds, + message: message, + headers: headers, + ); replace(_$result); return _$result; } @@ -110,16 +114,17 @@ class _$TooManyRequestsExceptionPayload @override final String? message; - factory _$TooManyRequestsExceptionPayload( - [void Function(TooManyRequestsExceptionPayloadBuilder)? updates]) => + factory _$TooManyRequestsExceptionPayload([ + void Function(TooManyRequestsExceptionPayloadBuilder)? updates, + ]) => (new TooManyRequestsExceptionPayloadBuilder()..update(updates))._build(); _$TooManyRequestsExceptionPayload._({this.message}) : super._(); @override TooManyRequestsExceptionPayload rebuild( - void Function(TooManyRequestsExceptionPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionPayloadBuilder toBuilder() => @@ -142,8 +147,10 @@ class _$TooManyRequestsExceptionPayload class TooManyRequestsExceptionPayloadBuilder implements - Builder { + Builder< + TooManyRequestsExceptionPayload, + TooManyRequestsExceptionPayloadBuilder + > { _$TooManyRequestsExceptionPayload? _$v; String? _message; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart index 4d0c5513a2..9f93f781a1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.model.unauthorized_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class UnauthorizedException return _$UnauthorizedException._(message: message); } - factory UnauthorizedException.build( - [void Function(UnauthorizedExceptionBuilder) updates]) = - _$UnauthorizedException; + factory UnauthorizedException.build([ + void Function(UnauthorizedExceptionBuilder) updates, + ]) = _$UnauthorizedException; const UnauthorizedException._(); @@ -29,22 +29,21 @@ abstract class UnauthorizedException factory UnauthorizedException.fromResponse( UnauthorizedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - UnauthorizedExceptionRestJson1Serializer() + UnauthorizedExceptionRestJson1Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'UnauthorizedException', - ); + namespace: 'com.amazonaws.apigateway', + shape: 'UnauthorizedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -65,10 +64,7 @@ abstract class UnauthorizedException @override String toString() { final helper = newBuiltValueToStringHelper('UnauthorizedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -76,21 +72,18 @@ abstract class UnauthorizedException class UnauthorizedExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const UnauthorizedExceptionRestJson1Serializer() - : super('UnauthorizedException'); + : super('UnauthorizedException'); @override Iterable get types => const [ - UnauthorizedException, - _$UnauthorizedException, - ]; + UnauthorizedException, + _$UnauthorizedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnauthorizedException deserialize( @@ -109,10 +102,12 @@ class UnauthorizedExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,10 +125,9 @@ class UnauthorizedExceptionRestJson1Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart index 0d1cee5ec0..44a2c52972 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart @@ -12,16 +12,16 @@ class _$UnauthorizedException extends UnauthorizedException { @override final Map? headers; - factory _$UnauthorizedException( - [void Function(UnauthorizedExceptionBuilder)? updates]) => - (new UnauthorizedExceptionBuilder()..update(updates))._build(); + factory _$UnauthorizedException([ + void Function(UnauthorizedExceptionBuilder)? updates, + ]) => (new UnauthorizedExceptionBuilder()..update(updates))._build(); _$UnauthorizedException._({this.message, this.headers}) : super._(); @override UnauthorizedException rebuild( - void Function(UnauthorizedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UnauthorizedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UnauthorizedExceptionBuilder toBuilder() => @@ -81,7 +81,8 @@ class UnauthorizedExceptionBuilder UnauthorizedException build() => _build(); _$UnauthorizedException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UnauthorizedException._(message: message, headers: headers); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart index 74cf83bec8..d702eb9496 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.api_gateway.operation.get_rest_apis_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,14 +19,17 @@ import 'package:rest_json1_v1/src/api_gateway/model/unauthorized_exception.dart' import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i4; -class GetRestApisOperation extends _i1.PaginatedHttpOperation< - GetRestApisRequestPayload, - GetRestApisRequest, - RestApis, - RestApis, - String, - int, - _i2.BuiltList> { +class GetRestApisOperation + extends + _i1.PaginatedHttpOperation< + GetRestApisRequestPayload, + GetRestApisRequest, + RestApis, + RestApis, + String, + int, + _i2.BuiltList + > { GetRestApisOperation({ required String region, Uri? baseUri, @@ -34,20 +37,27 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GetRestApisRequestPayload, + GetRestApisRequest, + RestApis, + RestApis + > + > + protocols = [ _i4.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), @@ -56,18 +66,15 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< service: _i5.AWSService.apiGateway, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i4.WithSdkInvocationId(), const _i4.WithSdkRequest(), - const _i1.WithHeader( - 'Accept', - 'application/json', - ), + const _i1.WithHeader('Accept', 'application/json'), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i4.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -91,16 +98,10 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< b.method = 'GET'; b.path = r'/restapis'; if (input.position != null) { - b.queryParameters.add( - 'position', - input.position!, - ); + b.queryParameters.add('position', input.position!); } if (input.limit != null) { - b.queryParameters.add( - 'limit', - input.limit!.toString(), - ); + b.queryParameters.add('limit', input.limit!.toString()); } }); @@ -108,49 +109,42 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< int successCode([RestApis? output]) => 200; @override - RestApis buildOutput( - RestApis payload, - _i5.AWSBaseHttpResponse response, - ) => - RestApis.fromResponse( - payload, - response, - ); + RestApis buildOutput(RestApis payload, _i5.AWSBaseHttpResponse response) => + RestApis.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'BadRequestException', - ), - _i1.ErrorKind.client, - BadRequestException, - statusCode: 400, - builder: BadRequestException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'UnauthorizedException', - ), - _i1.ErrorKind.client, - UnauthorizedException, - statusCode: 401, - builder: UnauthorizedException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.apigateway', + shape: 'BadRequestException', + ), + _i1.ErrorKind.client, + BadRequestException, + statusCode: 400, + builder: BadRequestException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.apigateway', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.apigateway', + shape: 'UnauthorizedException', + ), + _i1.ErrorKind.client, + UnauthorizedException, + statusCode: 401, + builder: UnauthorizedException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetRestApis'; @@ -171,11 +165,7 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< _i1.ShapeId? useProtocol, }) { return _i6.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, @@ -195,11 +185,10 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< GetRestApisRequest input, String token, int? pageSize, - ) => - input.rebuild((b) { - b.position = token; - if (pageSize != null) { - b.limit = pageSize; - } - }); + ) => input.rebuild((b) { + b.position = token; + if (pageSize != null) { + b.limit = pageSize; + } + }); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/endpoint_resolver.dart index df245abb1e..f30efb8150 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,10 +14,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 'glacier.{region}.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.v4], credentialScope: _i1.CredentialScope(), variants: [], @@ -56,12 +53,14 @@ final _partitions = [ 'ap-southeast-1': _i1.EndpointDefinition(variants: []), 'ap-southeast-2': _i1.EndpointDefinition(variants: []), 'ap-southeast-3': _i1.EndpointDefinition(variants: []), - 'ca-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.ca-central-1.amazonaws.com', - tags: ['fips'], - ) - ]), + 'ca-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.ca-central-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), 'eu-central-1': _i1.EndpointDefinition(variants: []), 'eu-north-1': _i1.EndpointDefinition(variants: []), 'eu-south-1': _i1.EndpointDefinition(variants: []), @@ -95,30 +94,38 @@ final _partitions = [ ), 'me-south-1': _i1.EndpointDefinition(variants: []), 'sa-east-1': _i1.EndpointDefinition(variants: []), - 'us-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-east-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-west-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-west-2.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-east-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-west-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-west-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), _i1.Partition( @@ -128,18 +135,12 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 'glacier.{region}.amazonaws.com.cn', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.v4], credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { 'cn-north-1': _i1.EndpointDefinition(variants: []), 'cn-northwest-1': _i1.EndpointDefinition(variants: []), @@ -157,16 +158,10 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const { 'us-iso-east-1': _i1.EndpointDefinition( - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [], ), 'us-iso-west-1': _i1.EndpointDefinition(variants: []), @@ -199,10 +194,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'us-gov-east-1': _i1.EndpointDefinition( hostname: 'glacier.us-gov-east-1.amazonaws.com', @@ -211,10 +203,7 @@ final _partitions = [ ), 'us-gov-west-1': _i1.EndpointDefinition( hostname: 'glacier.us-gov-west-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], credentialScope: _i1.CredentialScope(region: 'us-gov-west-1'), variants: [], ), @@ -222,7 +211,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Glacier'; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/serializers.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/serializers.dart index 15269a8210..260c9740ee 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/serializers.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,11 +48,9 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_client.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_client.dart index 555e5a7a4b..41537b22be 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_client.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.glacier_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,12 +22,12 @@ class GlacierClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -52,10 +52,7 @@ class GlacierClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation uploadMultipartPart( @@ -69,9 +66,6 @@ class GlacierClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_server.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_server.dart index 43f2509f16..64fbbb917c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_server.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/glacier_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.glacier_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -62,17 +62,23 @@ class _GlacierServer extends _i1.HttpServer { final GlacierServerBase service; late final _i1.HttpProtocol< - _i3.Stream>, - UploadArchiveInput, - ArchiveCreationOutputPayload, - ArchiveCreationOutput> _uploadArchiveProtocol = _i2.RestJson1Protocol( + _i3.Stream>, + UploadArchiveInput, + ArchiveCreationOutputPayload, + ArchiveCreationOutput + > + _uploadArchiveProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i3.Stream>, UploadMultipartPartInput, - UploadMultipartPartOutputPayload, UploadMultipartPartOutput> - _uploadMultipartPartProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i3.Stream>, + UploadMultipartPartInput, + UploadMultipartPartOutputPayload, + UploadMultipartPartOutput + > + _uploadMultipartPartProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -87,37 +93,26 @@ class _GlacierServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _uploadArchiveProtocol.contentType; try { - final payload = (await _uploadArchiveProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>?); + final payload = + (await _uploadArchiveProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>?); final input = UploadArchiveInput.fromRequest( payload, awsRequest, - labels: { - 'vaultName': vaultName, - 'accountId': accountId, - }, - ); - final output = await service.uploadArchive( - input, - context, + labels: {'vaultName': vaultName, 'accountId': accountId}, ); + final output = await service.uploadArchive(input, context); const statusCode = 201; final body = await _uploadArchiveProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - ArchiveCreationOutput, - [FullType(ArchiveCreationOutputPayload)], - ), + specifiedType: const FullType(ArchiveCreationOutput, [ + FullType(ArchiveCreationOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -129,10 +124,9 @@ class _GlacierServer extends _i1.HttpServer { 'InvalidParameterValueException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidParameterValueException, - [FullType(InvalidParameterValueException)], - ), + specifiedType: const FullType(InvalidParameterValueException, [ + FullType(InvalidParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -145,10 +139,9 @@ class _GlacierServer extends _i1.HttpServer { 'MissingParameterValueException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - MissingParameterValueException, - [FullType(MissingParameterValueException)], - ), + specifiedType: const FullType(MissingParameterValueException, [ + FullType(MissingParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -160,10 +153,9 @@ class _GlacierServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'RequestTimeoutException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - RequestTimeoutException, - [FullType(RequestTimeoutException)], - ), + specifiedType: const FullType(RequestTimeoutException, [ + FullType(RequestTimeoutException), + ]), ); const statusCode = 408; return _i4.Response( @@ -176,10 +168,9 @@ class _GlacierServer extends _i1.HttpServer { 'ResourceNotFoundException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ResourceNotFoundException, - [FullType(ResourceNotFoundException)], - ), + specifiedType: const FullType(ResourceNotFoundException, [ + FullType(ResourceNotFoundException), + ]), ); const statusCode = 404; return _i4.Response( @@ -192,10 +183,9 @@ class _GlacierServer extends _i1.HttpServer { 'ServiceUnavailableException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ServiceUnavailableException, - [FullType(ServiceUnavailableException)], - ), + specifiedType: const FullType(ServiceUnavailableException, [ + FullType(ServiceUnavailableException), + ]), ); const statusCode = 500; return _i4.Response( @@ -204,10 +194,7 @@ class _GlacierServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -224,17 +211,12 @@ class _GlacierServer extends _i1.HttpServer { try { final payload = (await _uploadMultipartPartProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>?); final input = UploadMultipartPartInput.fromRequest( payload, awsRequest, @@ -244,17 +226,13 @@ class _GlacierServer extends _i1.HttpServer { 'uploadId': uploadId, }, ); - final output = await service.uploadMultipartPart( - input, - context, - ); + final output = await service.uploadMultipartPart(input, context); const statusCode = 204; final body = await _uploadMultipartPartProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - UploadMultipartPartOutput, - [FullType(UploadMultipartPartOutputPayload)], - ), + specifiedType: const FullType(UploadMultipartPartOutput, [ + FullType(UploadMultipartPartOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -266,10 +244,9 @@ class _GlacierServer extends _i1.HttpServer { 'InvalidParameterValueException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidParameterValueException, - [FullType(InvalidParameterValueException)], - ), + specifiedType: const FullType(InvalidParameterValueException, [ + FullType(InvalidParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -282,10 +259,9 @@ class _GlacierServer extends _i1.HttpServer { 'MissingParameterValueException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - MissingParameterValueException, - [FullType(MissingParameterValueException)], - ), + specifiedType: const FullType(MissingParameterValueException, [ + FullType(MissingParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -297,10 +273,9 @@ class _GlacierServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'RequestTimeoutException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - RequestTimeoutException, - [FullType(RequestTimeoutException)], - ), + specifiedType: const FullType(RequestTimeoutException, [ + FullType(RequestTimeoutException), + ]), ); const statusCode = 408; return _i4.Response( @@ -313,10 +288,9 @@ class _GlacierServer extends _i1.HttpServer { 'ResourceNotFoundException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ResourceNotFoundException, - [FullType(ResourceNotFoundException)], - ), + specifiedType: const FullType(ResourceNotFoundException, [ + FullType(ResourceNotFoundException), + ]), ); const statusCode = 404; return _i4.Response( @@ -329,10 +303,9 @@ class _GlacierServer extends _i1.HttpServer { 'ServiceUnavailableException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ServiceUnavailableException, - [FullType(ServiceUnavailableException)], - ), + specifiedType: const FullType(ServiceUnavailableException, [ + FullType(ServiceUnavailableException), + ]), ); const statusCode = 500; return _i4.Response( @@ -341,10 +314,7 @@ class _GlacierServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.dart index c568997a99..8b944e27bf 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.archive_creation_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -29,9 +29,9 @@ abstract class ArchiveCreationOutput ); } - factory ArchiveCreationOutput.build( - [void Function(ArchiveCreationOutputBuilder) updates]) = - _$ArchiveCreationOutput; + factory ArchiveCreationOutput.build([ + void Function(ArchiveCreationOutputBuilder) updates, + ]) = _$ArchiveCreationOutput; const ArchiveCreationOutput._(); @@ -39,21 +39,20 @@ abstract class ArchiveCreationOutput factory ArchiveCreationOutput.fromResponse( ArchiveCreationOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ArchiveCreationOutput.build((b) { - if (response.headers['Location'] != null) { - b.location = response.headers['Location']!; - } - if (response.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = response.headers['x-amz-sha256-tree-hash']!; - } - if (response.headers['x-amz-archive-id'] != null) { - b.archiveId = response.headers['x-amz-archive-id']!; - } - }); + ) => ArchiveCreationOutput.build((b) { + if (response.headers['Location'] != null) { + b.location = response.headers['Location']!; + } + if (response.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = response.headers['x-amz-sha256-tree-hash']!; + } + if (response.headers['x-amz-archive-id'] != null) { + b.archiveId = response.headers['x-amz-archive-id']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [ArchiveCreationOutputRestJson1Serializer()]; + serializers = [ArchiveCreationOutputRestJson1Serializer()]; String? get location; String? get checksum; @@ -62,42 +61,31 @@ abstract class ArchiveCreationOutput ArchiveCreationOutputPayload getPayload() => ArchiveCreationOutputPayload(); @override - List get props => [ - location, - checksum, - archiveId, - ]; + List get props => [location, checksum, archiveId]; @override String toString() { - final helper = newBuiltValueToStringHelper('ArchiveCreationOutput') - ..add( - 'location', - location, - ) - ..add( - 'checksum', - checksum, - ) - ..add( - 'archiveId', - archiveId, - ); + final helper = + newBuiltValueToStringHelper('ArchiveCreationOutput') + ..add('location', location) + ..add('checksum', checksum) + ..add('archiveId', archiveId); return helper.toString(); } } @_i3.internal abstract class ArchiveCreationOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + ArchiveCreationOutputPayload, + ArchiveCreationOutputPayloadBuilder + >, _i2.EmptyPayload { - factory ArchiveCreationOutputPayload( - [void Function(ArchiveCreationOutputPayloadBuilder) updates]) = - _$ArchiveCreationOutputPayload; + factory ArchiveCreationOutputPayload([ + void Function(ArchiveCreationOutputPayloadBuilder) updates, + ]) = _$ArchiveCreationOutputPayload; const ArchiveCreationOutputPayload._(); @@ -114,23 +102,20 @@ abstract class ArchiveCreationOutputPayload class ArchiveCreationOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const ArchiveCreationOutputRestJson1Serializer() - : super('ArchiveCreationOutput'); + : super('ArchiveCreationOutput'); @override Iterable get types => const [ - ArchiveCreationOutput, - _$ArchiveCreationOutput, - ArchiveCreationOutputPayload, - _$ArchiveCreationOutputPayload, - ]; + ArchiveCreationOutput, + _$ArchiveCreationOutput, + ArchiveCreationOutputPayload, + _$ArchiveCreationOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ArchiveCreationOutputPayload deserialize( @@ -146,6 +131,5 @@ class ArchiveCreationOutputRestJson1Serializer Serializers serializers, ArchiveCreationOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.g.dart index 52e2b77eef..0c34e4c220 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/archive_creation_output.g.dart @@ -14,17 +14,17 @@ class _$ArchiveCreationOutput extends ArchiveCreationOutput { @override final String? archiveId; - factory _$ArchiveCreationOutput( - [void Function(ArchiveCreationOutputBuilder)? updates]) => - (new ArchiveCreationOutputBuilder()..update(updates))._build(); + factory _$ArchiveCreationOutput([ + void Function(ArchiveCreationOutputBuilder)? updates, + ]) => (new ArchiveCreationOutputBuilder()..update(updates))._build(); _$ArchiveCreationOutput._({this.location, this.checksum, this.archiveId}) - : super._(); + : super._(); @override ArchiveCreationOutput rebuild( - void Function(ArchiveCreationOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ArchiveCreationOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ArchiveCreationOutputBuilder toBuilder() => @@ -94,25 +94,29 @@ class ArchiveCreationOutputBuilder ArchiveCreationOutput build() => _build(); _$ArchiveCreationOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ArchiveCreationOutput._( - location: location, checksum: checksum, archiveId: archiveId); + location: location, + checksum: checksum, + archiveId: archiveId, + ); replace(_$result); return _$result; } } class _$ArchiveCreationOutputPayload extends ArchiveCreationOutputPayload { - factory _$ArchiveCreationOutputPayload( - [void Function(ArchiveCreationOutputPayloadBuilder)? updates]) => - (new ArchiveCreationOutputPayloadBuilder()..update(updates))._build(); + factory _$ArchiveCreationOutputPayload([ + void Function(ArchiveCreationOutputPayloadBuilder)? updates, + ]) => (new ArchiveCreationOutputPayloadBuilder()..update(updates))._build(); _$ArchiveCreationOutputPayload._() : super._(); @override ArchiveCreationOutputPayload rebuild( - void Function(ArchiveCreationOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ArchiveCreationOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ArchiveCreationOutputPayloadBuilder toBuilder() => @@ -132,8 +136,10 @@ class _$ArchiveCreationOutputPayload extends ArchiveCreationOutputPayload { class ArchiveCreationOutputPayloadBuilder implements - Builder { + Builder< + ArchiveCreationOutputPayload, + ArchiveCreationOutputPayloadBuilder + > { _$ArchiveCreationOutputPayload? _$v; ArchiveCreationOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.dart index 9b87d7762c..87c98072a1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.dart index ee4104b297..7e8a289fac 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.dart index e6b086d05e..fbfcb31926 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.dart index 3b9565c214..377c599d41 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart index db630d5e73..920f37873a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.invalid_parameter_value_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,11 +11,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'invalid_parameter_value_exception.g.dart'; abstract class InvalidParameterValueException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidParameterValueException, + InvalidParameterValueExceptionBuilder + >, _i2.SmithyHttpException { factory InvalidParameterValueException({ String? type, @@ -29,9 +30,9 @@ abstract class InvalidParameterValueException ); } - factory InvalidParameterValueException.build( - [void Function(InvalidParameterValueExceptionBuilder) updates]) = - _$InvalidParameterValueException; + factory InvalidParameterValueException.build([ + void Function(InvalidParameterValueExceptionBuilder) updates, + ]) = _$InvalidParameterValueException; const InvalidParameterValueException._(); @@ -39,13 +40,12 @@ abstract class InvalidParameterValueException factory InvalidParameterValueException.fromResponse( InvalidParameterValueException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidParameterValueExceptionRestJson1Serializer()]; + serializers = [InvalidParameterValueExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -53,9 +53,9 @@ abstract class InvalidParameterValueException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'InvalidParameterValueException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'InvalidParameterValueException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -71,27 +71,15 @@ abstract class InvalidParameterValueException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('InvalidParameterValueException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('InvalidParameterValueException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -99,21 +87,18 @@ abstract class InvalidParameterValueException class InvalidParameterValueExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const InvalidParameterValueExceptionRestJson1Serializer() - : super('InvalidParameterValueException'); + : super('InvalidParameterValueException'); @override Iterable get types => const [ - InvalidParameterValueException, - _$InvalidParameterValueException, - ]; + InvalidParameterValueException, + _$InvalidParameterValueException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidParameterValueException deserialize( @@ -132,20 +117,26 @@ class InvalidParameterValueExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -163,26 +154,23 @@ class InvalidParameterValueExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart index f66dee1720..db3b108a7d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart @@ -16,18 +16,21 @@ class _$InvalidParameterValueException extends InvalidParameterValueException { @override final Map? headers; - factory _$InvalidParameterValueException( - [void Function(InvalidParameterValueExceptionBuilder)? updates]) => - (new InvalidParameterValueExceptionBuilder()..update(updates))._build(); + factory _$InvalidParameterValueException([ + void Function(InvalidParameterValueExceptionBuilder)? updates, + ]) => (new InvalidParameterValueExceptionBuilder()..update(updates))._build(); - _$InvalidParameterValueException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$InvalidParameterValueException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override InvalidParameterValueException rebuild( - void Function(InvalidParameterValueExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidParameterValueExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidParameterValueExceptionBuilder toBuilder() => @@ -55,8 +58,10 @@ class _$InvalidParameterValueException extends InvalidParameterValueException { class InvalidParameterValueExceptionBuilder implements - Builder { + Builder< + InvalidParameterValueException, + InvalidParameterValueExceptionBuilder + > { _$InvalidParameterValueException? _$v; String? _type; @@ -104,9 +109,14 @@ class InvalidParameterValueExceptionBuilder InvalidParameterValueException build() => _build(); _$InvalidParameterValueException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidParameterValueException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart index b96a6b710f..0c8598664e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.missing_parameter_value_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,11 +11,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'missing_parameter_value_exception.g.dart'; abstract class MissingParameterValueException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MissingParameterValueException, + MissingParameterValueExceptionBuilder + >, _i2.SmithyHttpException { factory MissingParameterValueException({ String? type, @@ -29,9 +30,9 @@ abstract class MissingParameterValueException ); } - factory MissingParameterValueException.build( - [void Function(MissingParameterValueExceptionBuilder) updates]) = - _$MissingParameterValueException; + factory MissingParameterValueException.build([ + void Function(MissingParameterValueExceptionBuilder) updates, + ]) = _$MissingParameterValueException; const MissingParameterValueException._(); @@ -39,13 +40,12 @@ abstract class MissingParameterValueException factory MissingParameterValueException.fromResponse( MissingParameterValueException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [MissingParameterValueExceptionRestJson1Serializer()]; + serializers = [MissingParameterValueExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -53,9 +53,9 @@ abstract class MissingParameterValueException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'MissingParameterValueException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'MissingParameterValueException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -71,27 +71,15 @@ abstract class MissingParameterValueException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('MissingParameterValueException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('MissingParameterValueException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -99,21 +87,18 @@ abstract class MissingParameterValueException class MissingParameterValueExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const MissingParameterValueExceptionRestJson1Serializer() - : super('MissingParameterValueException'); + : super('MissingParameterValueException'); @override Iterable get types => const [ - MissingParameterValueException, - _$MissingParameterValueException, - ]; + MissingParameterValueException, + _$MissingParameterValueException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingParameterValueException deserialize( @@ -132,20 +117,26 @@ class MissingParameterValueExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -163,26 +154,23 @@ class MissingParameterValueExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart index 6b97f962fb..bd09c458e8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart @@ -16,18 +16,21 @@ class _$MissingParameterValueException extends MissingParameterValueException { @override final Map? headers; - factory _$MissingParameterValueException( - [void Function(MissingParameterValueExceptionBuilder)? updates]) => - (new MissingParameterValueExceptionBuilder()..update(updates))._build(); + factory _$MissingParameterValueException([ + void Function(MissingParameterValueExceptionBuilder)? updates, + ]) => (new MissingParameterValueExceptionBuilder()..update(updates))._build(); - _$MissingParameterValueException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$MissingParameterValueException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override MissingParameterValueException rebuild( - void Function(MissingParameterValueExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MissingParameterValueExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MissingParameterValueExceptionBuilder toBuilder() => @@ -55,8 +58,10 @@ class _$MissingParameterValueException extends MissingParameterValueException { class MissingParameterValueExceptionBuilder implements - Builder { + Builder< + MissingParameterValueException, + MissingParameterValueExceptionBuilder + > { _$MissingParameterValueException? _$v; String? _type; @@ -104,9 +109,14 @@ class MissingParameterValueExceptionBuilder MissingParameterValueException build() => _build(); _$MissingParameterValueException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MissingParameterValueException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.dart index 00a17e32c4..bf36debf59 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.dart index 6c64187dfd..d82a8f11d6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.request_timeout_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class RequestTimeoutException ); } - factory RequestTimeoutException.build( - [void Function(RequestTimeoutExceptionBuilder) updates]) = - _$RequestTimeoutException; + factory RequestTimeoutException.build([ + void Function(RequestTimeoutExceptionBuilder) updates, + ]) = _$RequestTimeoutException; const RequestTimeoutException._(); @@ -37,10 +37,9 @@ abstract class RequestTimeoutException factory RequestTimeoutException.fromResponse( RequestTimeoutException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [RequestTimeoutExceptionRestJson1Serializer()]; @@ -51,9 +50,9 @@ abstract class RequestTimeoutException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'RequestTimeoutException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'RequestTimeoutException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,27 +68,15 @@ abstract class RequestTimeoutException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('RequestTimeoutException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('RequestTimeoutException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -97,21 +84,18 @@ abstract class RequestTimeoutException class RequestTimeoutExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const RequestTimeoutExceptionRestJson1Serializer() - : super('RequestTimeoutException'); + : super('RequestTimeoutException'); @override Iterable get types => const [ - RequestTimeoutException, - _$RequestTimeoutException, - ]; + RequestTimeoutException, + _$RequestTimeoutException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RequestTimeoutException deserialize( @@ -130,20 +114,26 @@ class RequestTimeoutExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -161,26 +151,23 @@ class RequestTimeoutExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart index f9f54614e0..b4041a1777 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart @@ -16,18 +16,21 @@ class _$RequestTimeoutException extends RequestTimeoutException { @override final Map? headers; - factory _$RequestTimeoutException( - [void Function(RequestTimeoutExceptionBuilder)? updates]) => - (new RequestTimeoutExceptionBuilder()..update(updates))._build(); + factory _$RequestTimeoutException([ + void Function(RequestTimeoutExceptionBuilder)? updates, + ]) => (new RequestTimeoutExceptionBuilder()..update(updates))._build(); - _$RequestTimeoutException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$RequestTimeoutException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override RequestTimeoutException rebuild( - void Function(RequestTimeoutExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RequestTimeoutExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RequestTimeoutExceptionBuilder toBuilder() => @@ -103,9 +106,14 @@ class RequestTimeoutExceptionBuilder RequestTimeoutException build() => _build(); _$RequestTimeoutException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$RequestTimeoutException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.dart index 800fa485d9..5393b9b609 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.resource_not_found_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class ResourceNotFoundException ); } - factory ResourceNotFoundException.build( - [void Function(ResourceNotFoundExceptionBuilder) updates]) = - _$ResourceNotFoundException; + factory ResourceNotFoundException.build([ + void Function(ResourceNotFoundExceptionBuilder) updates, + ]) = _$ResourceNotFoundException; const ResourceNotFoundException._(); @@ -37,13 +37,12 @@ abstract class ResourceNotFoundException factory ResourceNotFoundException.fromResponse( ResourceNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceNotFoundExceptionRestJson1Serializer()]; + serializers = [ResourceNotFoundExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -51,9 +50,9 @@ abstract class ResourceNotFoundException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ResourceNotFoundException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'ResourceNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,27 +68,15 @@ abstract class ResourceNotFoundException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('ResourceNotFoundException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('ResourceNotFoundException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -97,21 +84,18 @@ abstract class ResourceNotFoundException class ResourceNotFoundExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const ResourceNotFoundExceptionRestJson1Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ - ResourceNotFoundException, - _$ResourceNotFoundException, - ]; + ResourceNotFoundException, + _$ResourceNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResourceNotFoundException deserialize( @@ -130,20 +114,26 @@ class ResourceNotFoundExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -161,26 +151,23 @@ class ResourceNotFoundExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart index 55b1aae29d..371645ffdb 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart @@ -16,18 +16,21 @@ class _$ResourceNotFoundException extends ResourceNotFoundException { @override final Map? headers; - factory _$ResourceNotFoundException( - [void Function(ResourceNotFoundExceptionBuilder)? updates]) => - (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); + factory _$ResourceNotFoundException([ + void Function(ResourceNotFoundExceptionBuilder)? updates, + ]) => (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); - _$ResourceNotFoundException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$ResourceNotFoundException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override ResourceNotFoundException rebuild( - void Function(ResourceNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceNotFoundExceptionBuilder toBuilder() => @@ -103,9 +106,14 @@ class ResourceNotFoundExceptionBuilder ResourceNotFoundException build() => _build(); _$ResourceNotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ResourceNotFoundException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_config.dart index 9407ba6d33..d8029fbce3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_mode.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_mode.dart index cd6623492f..a17ac1543e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_addressing_style.dart index 997ca1849f..894bfd3347 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.dart index b99ddc4d9b..f390e9bec4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.dart index 7ceab1d2f2..84085119b9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.dart index dd6e4dbb63..cb5462e647 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.service_unavailable_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class ServiceUnavailableException ); } - factory ServiceUnavailableException.build( - [void Function(ServiceUnavailableExceptionBuilder) updates]) = - _$ServiceUnavailableException; + factory ServiceUnavailableException.build([ + void Function(ServiceUnavailableExceptionBuilder) updates, + ]) = _$ServiceUnavailableException; const ServiceUnavailableException._(); @@ -37,13 +37,12 @@ abstract class ServiceUnavailableException factory ServiceUnavailableException.fromResponse( ServiceUnavailableException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ServiceUnavailableExceptionRestJson1Serializer()]; + serializers = [ServiceUnavailableExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -51,9 +50,9 @@ abstract class ServiceUnavailableException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ServiceUnavailableException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'ServiceUnavailableException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,27 +68,15 @@ abstract class ServiceUnavailableException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('ServiceUnavailableException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('ServiceUnavailableException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -97,21 +84,18 @@ abstract class ServiceUnavailableException class ServiceUnavailableExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const ServiceUnavailableExceptionRestJson1Serializer() - : super('ServiceUnavailableException'); + : super('ServiceUnavailableException'); @override Iterable get types => const [ - ServiceUnavailableException, - _$ServiceUnavailableException, - ]; + ServiceUnavailableException, + _$ServiceUnavailableException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ServiceUnavailableException deserialize( @@ -130,20 +114,26 @@ class ServiceUnavailableExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -161,26 +151,23 @@ class ServiceUnavailableExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart index 168ebfbf85..4e2cbffd90 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart @@ -16,18 +16,21 @@ class _$ServiceUnavailableException extends ServiceUnavailableException { @override final Map? headers; - factory _$ServiceUnavailableException( - [void Function(ServiceUnavailableExceptionBuilder)? updates]) => - (new ServiceUnavailableExceptionBuilder()..update(updates))._build(); + factory _$ServiceUnavailableException([ + void Function(ServiceUnavailableExceptionBuilder)? updates, + ]) => (new ServiceUnavailableExceptionBuilder()..update(updates))._build(); - _$ServiceUnavailableException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$ServiceUnavailableException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override ServiceUnavailableException rebuild( - void Function(ServiceUnavailableExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ServiceUnavailableExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ServiceUnavailableExceptionBuilder toBuilder() => @@ -55,8 +58,10 @@ class _$ServiceUnavailableException extends ServiceUnavailableException { class ServiceUnavailableExceptionBuilder implements - Builder { + Builder< + ServiceUnavailableException, + ServiceUnavailableExceptionBuilder + > { _$ServiceUnavailableException? _$v; String? _type; @@ -104,9 +109,14 @@ class ServiceUnavailableExceptionBuilder ServiceUnavailableException build() => _build(); _$ServiceUnavailableException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ServiceUnavailableException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.dart index f3a09cb249..d8b6cba5b3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.upload_archive_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class UploadArchiveInput ); } - factory UploadArchiveInput.build( - [void Function(UploadArchiveInputBuilder) updates]) = - _$UploadArchiveInput; + factory UploadArchiveInput.build([ + void Function(UploadArchiveInputBuilder) updates, + ]) = _$UploadArchiveInput; const UploadArchiveInput._(); @@ -45,22 +45,21 @@ abstract class UploadArchiveInput _i2.Stream>? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UploadArchiveInput.build((b) { - b.body = payload; - if (request.headers['x-amz-archive-description'] != null) { - b.archiveDescription = request.headers['x-amz-archive-description']!; - } - if (request.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = request.headers['x-amz-sha256-tree-hash']!; - } - if (labels['vaultName'] != null) { - b.vaultName = labels['vaultName']!; - } - if (labels['accountId'] != null) { - b.accountId = labels['accountId']!; - } - }); + }) => UploadArchiveInput.build((b) { + b.body = payload; + if (request.headers['x-amz-archive-description'] != null) { + b.archiveDescription = request.headers['x-amz-archive-description']!; + } + if (request.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = request.headers['x-amz-sha256-tree-hash']!; + } + if (labels['vaultName'] != null) { + b.vaultName = labels['vaultName']!; + } + if (labels['accountId'] != null) { + b.accountId = labels['accountId']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>?>> serializers = [UploadArchiveInputRestJson1Serializer()]; @@ -78,10 +77,7 @@ abstract class UploadArchiveInput case 'accountId': return accountId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -89,36 +85,22 @@ abstract class UploadArchiveInput @override List get props => [ - vaultName, - accountId, - archiveDescription, - checksum, - body, - ]; + vaultName, + accountId, + archiveDescription, + checksum, + body, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadArchiveInput') - ..add( - 'vaultName', - vaultName, - ) - ..add( - 'accountId', - accountId, - ) - ..add( - 'archiveDescription', - archiveDescription, - ) - ..add( - 'checksum', - checksum, - ) - ..add( - 'body', - body, - ); + final helper = + newBuiltValueToStringHelper('UploadArchiveInput') + ..add('vaultName', vaultName) + ..add('accountId', accountId) + ..add('archiveDescription', archiveDescription) + ..add('checksum', checksum) + ..add('body', body); return helper.toString(); } } @@ -128,18 +110,12 @@ class UploadArchiveInputRestJson1Serializer const UploadArchiveInputRestJson1Serializer() : super('UploadArchiveInput'); @override - Iterable get types => const [ - UploadArchiveInput, - _$UploadArchiveInput, - ]; + Iterable get types => const [UploadArchiveInput, _$UploadArchiveInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -148,17 +124,12 @@ class UploadArchiveInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -169,15 +140,9 @@ class UploadArchiveInputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.g.dart index a719f09df2..e1ecb461bf 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_archive_input.g.dart @@ -18,27 +18,33 @@ class _$UploadArchiveInput extends UploadArchiveInput { @override final _i2.Stream>? body; - factory _$UploadArchiveInput( - [void Function(UploadArchiveInputBuilder)? updates]) => - (new UploadArchiveInputBuilder()..update(updates))._build(); - - _$UploadArchiveInput._( - {required this.vaultName, - required this.accountId, - this.archiveDescription, - this.checksum, - this.body}) - : super._() { + factory _$UploadArchiveInput([ + void Function(UploadArchiveInputBuilder)? updates, + ]) => (new UploadArchiveInputBuilder()..update(updates))._build(); + + _$UploadArchiveInput._({ + required this.vaultName, + required this.accountId, + this.archiveDescription, + this.checksum, + this.body, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadArchiveInput', 'vaultName'); + vaultName, + r'UploadArchiveInput', + 'vaultName', + ); BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadArchiveInput', 'accountId'); + accountId, + r'UploadArchiveInput', + 'accountId', + ); } @override UploadArchiveInput rebuild( - void Function(UploadArchiveInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadArchiveInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadArchiveInputBuilder toBuilder() => @@ -123,15 +129,23 @@ class UploadArchiveInputBuilder UploadArchiveInput build() => _build(); _$UploadArchiveInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UploadArchiveInput._( - vaultName: BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadArchiveInput', 'vaultName'), - accountId: BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadArchiveInput', 'accountId'), - archiveDescription: archiveDescription, - checksum: checksum, - body: body); + vaultName: BuiltValueNullFieldError.checkNotNull( + vaultName, + r'UploadArchiveInput', + 'vaultName', + ), + accountId: BuiltValueNullFieldError.checkNotNull( + accountId, + r'UploadArchiveInput', + 'accountId', + ), + archiveDescription: archiveDescription, + checksum: checksum, + body: body, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart index 19a35ea76b..68975ec0a3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.upload_multipart_part_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -37,9 +37,9 @@ abstract class UploadMultipartPartInput ); } - factory UploadMultipartPartInput.build( - [void Function(UploadMultipartPartInputBuilder) updates]) = - _$UploadMultipartPartInput; + factory UploadMultipartPartInput.build([ + void Function(UploadMultipartPartInputBuilder) updates, + ]) = _$UploadMultipartPartInput; const UploadMultipartPartInput._(); @@ -47,25 +47,24 @@ abstract class UploadMultipartPartInput _i2.Stream>? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UploadMultipartPartInput.build((b) { - b.body = payload; - if (request.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = request.headers['x-amz-sha256-tree-hash']!; - } - if (request.headers['Content-Range'] != null) { - b.range = request.headers['Content-Range']!; - } - if (labels['accountId'] != null) { - b.accountId = labels['accountId']!; - } - if (labels['vaultName'] != null) { - b.vaultName = labels['vaultName']!; - } - if (labels['uploadId'] != null) { - b.uploadId = labels['uploadId']!; - } - }); + }) => UploadMultipartPartInput.build((b) { + b.body = payload; + if (request.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = request.headers['x-amz-sha256-tree-hash']!; + } + if (request.headers['Content-Range'] != null) { + b.range = request.headers['Content-Range']!; + } + if (labels['accountId'] != null) { + b.accountId = labels['accountId']!; + } + if (labels['vaultName'] != null) { + b.vaultName = labels['vaultName']!; + } + if (labels['uploadId'] != null) { + b.uploadId = labels['uploadId']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>?>> serializers = [UploadMultipartPartInputRestJson1Serializer()]; @@ -86,10 +85,7 @@ abstract class UploadMultipartPartInput case 'uploadId': return uploadId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -97,41 +93,24 @@ abstract class UploadMultipartPartInput @override List get props => [ - accountId, - vaultName, - uploadId, - checksum, - range, - body, - ]; + accountId, + vaultName, + uploadId, + checksum, + range, + body, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadMultipartPartInput') - ..add( - 'accountId', - accountId, - ) - ..add( - 'vaultName', - vaultName, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'checksum', - checksum, - ) - ..add( - 'range', - range, - ) - ..add( - 'body', - body, - ); + final helper = + newBuiltValueToStringHelper('UploadMultipartPartInput') + ..add('accountId', accountId) + ..add('vaultName', vaultName) + ..add('uploadId', uploadId) + ..add('checksum', checksum) + ..add('range', range) + ..add('body', body); return helper.toString(); } } @@ -139,21 +118,18 @@ abstract class UploadMultipartPartInput class UploadMultipartPartInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const UploadMultipartPartInputRestJson1Serializer() - : super('UploadMultipartPartInput'); + : super('UploadMultipartPartInput'); @override Iterable get types => const [ - UploadMultipartPartInput, - _$UploadMultipartPartInput, - ]; + UploadMultipartPartInput, + _$UploadMultipartPartInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -162,17 +138,12 @@ class UploadMultipartPartInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -183,15 +154,9 @@ class UploadMultipartPartInputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart index 5e8610dedb..1a22afc5bf 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart @@ -20,30 +20,39 @@ class _$UploadMultipartPartInput extends UploadMultipartPartInput { @override final _i2.Stream>? body; - factory _$UploadMultipartPartInput( - [void Function(UploadMultipartPartInputBuilder)? updates]) => - (new UploadMultipartPartInputBuilder()..update(updates))._build(); - - _$UploadMultipartPartInput._( - {required this.accountId, - required this.vaultName, - required this.uploadId, - this.checksum, - this.range, - this.body}) - : super._() { + factory _$UploadMultipartPartInput([ + void Function(UploadMultipartPartInputBuilder)? updates, + ]) => (new UploadMultipartPartInputBuilder()..update(updates))._build(); + + _$UploadMultipartPartInput._({ + required this.accountId, + required this.vaultName, + required this.uploadId, + this.checksum, + this.range, + this.body, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadMultipartPartInput', 'accountId'); + accountId, + r'UploadMultipartPartInput', + 'accountId', + ); BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadMultipartPartInput', 'vaultName'); + vaultName, + r'UploadMultipartPartInput', + 'vaultName', + ); BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadMultipartPartInput', 'uploadId'); + uploadId, + r'UploadMultipartPartInput', + 'uploadId', + ); } @override UploadMultipartPartInput rebuild( - void Function(UploadMultipartPartInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadMultipartPartInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadMultipartPartInputBuilder toBuilder() => @@ -135,17 +144,28 @@ class UploadMultipartPartInputBuilder UploadMultipartPartInput build() => _build(); _$UploadMultipartPartInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UploadMultipartPartInput._( - accountId: BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadMultipartPartInput', 'accountId'), - vaultName: BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadMultipartPartInput', 'vaultName'), - uploadId: BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadMultipartPartInput', 'uploadId'), - checksum: checksum, - range: range, - body: body); + accountId: BuiltValueNullFieldError.checkNotNull( + accountId, + r'UploadMultipartPartInput', + 'accountId', + ), + vaultName: BuiltValueNullFieldError.checkNotNull( + vaultName, + r'UploadMultipartPartInput', + 'vaultName', + ), + uploadId: BuiltValueNullFieldError.checkNotNull( + uploadId, + r'UploadMultipartPartInput', + 'uploadId', + ), + checksum: checksum, + range: range, + body: body, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart index c432e63173..02053a9d61 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.model.upload_multipart_part_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class UploadMultipartPartOutput return _$UploadMultipartPartOutput._(checksum: checksum); } - factory UploadMultipartPartOutput.build( - [void Function(UploadMultipartPartOutputBuilder) updates]) = - _$UploadMultipartPartOutput; + factory UploadMultipartPartOutput.build([ + void Function(UploadMultipartPartOutputBuilder) updates, + ]) = _$UploadMultipartPartOutput; const UploadMultipartPartOutput._(); @@ -31,15 +31,14 @@ abstract class UploadMultipartPartOutput factory UploadMultipartPartOutput.fromResponse( UploadMultipartPartOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - UploadMultipartPartOutput.build((b) { - if (response.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = response.headers['x-amz-sha256-tree-hash']!; - } - }); + ) => UploadMultipartPartOutput.build((b) { + if (response.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = response.headers['x-amz-sha256-tree-hash']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [UploadMultipartPartOutputRestJson1Serializer()]; + serializers = [UploadMultipartPartOutputRestJson1Serializer()]; String? get checksum; @override @@ -52,25 +51,23 @@ abstract class UploadMultipartPartOutput @override String toString() { final helper = newBuiltValueToStringHelper('UploadMultipartPartOutput') - ..add( - 'checksum', - checksum, - ); + ..add('checksum', checksum); return helper.toString(); } } @_i3.internal abstract class UploadMultipartPartOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + UploadMultipartPartOutputPayload, + UploadMultipartPartOutputPayloadBuilder + >, _i2.EmptyPayload { - factory UploadMultipartPartOutputPayload( - [void Function(UploadMultipartPartOutputPayloadBuilder) updates]) = - _$UploadMultipartPartOutputPayload; + factory UploadMultipartPartOutputPayload([ + void Function(UploadMultipartPartOutputPayloadBuilder) updates, + ]) = _$UploadMultipartPartOutputPayload; const UploadMultipartPartOutputPayload._(); @@ -79,8 +76,9 @@ abstract class UploadMultipartPartOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('UploadMultipartPartOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'UploadMultipartPartOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class UploadMultipartPartOutputPayload class UploadMultipartPartOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const UploadMultipartPartOutputRestJson1Serializer() - : super('UploadMultipartPartOutput'); + : super('UploadMultipartPartOutput'); @override Iterable get types => const [ - UploadMultipartPartOutput, - _$UploadMultipartPartOutput, - UploadMultipartPartOutputPayload, - _$UploadMultipartPartOutputPayload, - ]; + UploadMultipartPartOutput, + _$UploadMultipartPartOutput, + UploadMultipartPartOutputPayload, + _$UploadMultipartPartOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadMultipartPartOutputPayload deserialize( @@ -120,6 +115,5 @@ class UploadMultipartPartOutputRestJson1Serializer Serializers serializers, UploadMultipartPartOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart index 0577cd162b..f397c227b3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart @@ -10,16 +10,16 @@ class _$UploadMultipartPartOutput extends UploadMultipartPartOutput { @override final String? checksum; - factory _$UploadMultipartPartOutput( - [void Function(UploadMultipartPartOutputBuilder)? updates]) => - (new UploadMultipartPartOutputBuilder()..update(updates))._build(); + factory _$UploadMultipartPartOutput([ + void Function(UploadMultipartPartOutputBuilder)? updates, + ]) => (new UploadMultipartPartOutputBuilder()..update(updates))._build(); _$UploadMultipartPartOutput._({this.checksum}) : super._(); @override UploadMultipartPartOutput rebuild( - void Function(UploadMultipartPartOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadMultipartPartOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadMultipartPartOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class UploadMultipartPartOutputBuilder class _$UploadMultipartPartOutputPayload extends UploadMultipartPartOutputPayload { - factory _$UploadMultipartPartOutputPayload( - [void Function(UploadMultipartPartOutputPayloadBuilder)? updates]) => + factory _$UploadMultipartPartOutputPayload([ + void Function(UploadMultipartPartOutputPayloadBuilder)? updates, + ]) => (new UploadMultipartPartOutputPayloadBuilder()..update(updates))._build(); _$UploadMultipartPartOutputPayload._() : super._(); @override UploadMultipartPartOutputPayload rebuild( - void Function(UploadMultipartPartOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadMultipartPartOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadMultipartPartOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$UploadMultipartPartOutputPayload class UploadMultipartPartOutputPayloadBuilder implements - Builder { + Builder< + UploadMultipartPartOutputPayload, + UploadMultipartPartOutputPayloadBuilder + > { _$UploadMultipartPartOutputPayload? _$v; UploadMultipartPartOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_archive_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_archive_operation.dart index 919ab84faf..140ffa88a5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_archive_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_archive_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.operation.upload_archive_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,8 +19,14 @@ import 'package:rest_json1_v1/src/glacier/model/upload_archive_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i4; -class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, - UploadArchiveInput, ArchiveCreationOutputPayload, ArchiveCreationOutput> { +class UploadArchiveOperation + extends + _i1.HttpOperation< + _i2.Stream>, + UploadArchiveInput, + ArchiveCreationOutputPayload, + ArchiveCreationOutput + > { UploadArchiveOperation({ required String region, Uri? baseUri, @@ -28,34 +34,41 @@ class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, UploadArchiveInput, - ArchiveCreationOutputPayload, ArchiveCreationOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + UploadArchiveInput, + ArchiveCreationOutputPayload, + ArchiveCreationOutput + > + > + protocols = [ _i4.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i4.WithSigV4( region: _region, service: _i5.AWSService.glacier, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i4.WithSdkInvocationId(), const _i4.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i4.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -97,68 +110,67 @@ class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, ArchiveCreationOutput buildOutput( ArchiveCreationOutputPayload payload, _i5.AWSBaseHttpResponse response, - ) => - ArchiveCreationOutput.fromResponse( - payload, - response, - ); + ) => ArchiveCreationOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'InvalidParameterValueException', - ), - _i1.ErrorKind.client, - InvalidParameterValueException, - statusCode: 400, - builder: InvalidParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'MissingParameterValueException', - ), - _i1.ErrorKind.client, - MissingParameterValueException, - statusCode: 400, - builder: MissingParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'RequestTimeoutException', - ), - _i1.ErrorKind.client, - RequestTimeoutException, - statusCode: 408, - builder: RequestTimeoutException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ServiceUnavailableException', - ), - _i1.ErrorKind.server, - ServiceUnavailableException, - statusCode: 500, - builder: ServiceUnavailableException.fromResponse, - ), - ]; + _i1.SmithyError< + InvalidParameterValueException, + InvalidParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'InvalidParameterValueException', + ), + _i1.ErrorKind.client, + InvalidParameterValueException, + statusCode: 400, + builder: InvalidParameterValueException.fromResponse, + ), + _i1.SmithyError< + MissingParameterValueException, + MissingParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'MissingParameterValueException', + ), + _i1.ErrorKind.client, + MissingParameterValueException, + statusCode: 400, + builder: MissingParameterValueException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'RequestTimeoutException', + ), + _i1.ErrorKind.client, + RequestTimeoutException, + statusCode: 408, + builder: RequestTimeoutException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ServiceUnavailableException', + ), + _i1.ErrorKind.server, + ServiceUnavailableException, + statusCode: 500, + builder: ServiceUnavailableException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UploadArchive'; @@ -179,11 +191,7 @@ class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart index ea09c4c4ea..e6d2cb9501 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.glacier.operation.upload_multipart_part_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,11 +19,14 @@ import 'package:rest_json1_v1/src/glacier/model/upload_multipart_part_output.dar import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i4; -class UploadMultipartPartOperation extends _i1.HttpOperation< - _i2.Stream>, - UploadMultipartPartInput, - UploadMultipartPartOutputPayload, - UploadMultipartPartOutput> { +class UploadMultipartPartOperation + extends + _i1.HttpOperation< + _i2.Stream>, + UploadMultipartPartInput, + UploadMultipartPartOutputPayload, + UploadMultipartPartOutput + > { UploadMultipartPartOperation({ required String region, Uri? baseUri, @@ -31,37 +34,41 @@ class UploadMultipartPartOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Stream>, - UploadMultipartPartInput, - UploadMultipartPartOutputPayload, - UploadMultipartPartOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + UploadMultipartPartInput, + UploadMultipartPartOutputPayload, + UploadMultipartPartOutput + > + > + protocols = [ _i4.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i4.WithSigV4( region: _region, service: _i5.AWSService.glacier, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i4.WithSdkInvocationId(), const _i4.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i4.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -104,68 +111,67 @@ class UploadMultipartPartOperation extends _i1.HttpOperation< UploadMultipartPartOutput buildOutput( UploadMultipartPartOutputPayload payload, _i5.AWSBaseHttpResponse response, - ) => - UploadMultipartPartOutput.fromResponse( - payload, - response, - ); + ) => UploadMultipartPartOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'InvalidParameterValueException', - ), - _i1.ErrorKind.client, - InvalidParameterValueException, - statusCode: 400, - builder: InvalidParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'MissingParameterValueException', - ), - _i1.ErrorKind.client, - MissingParameterValueException, - statusCode: 400, - builder: MissingParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'RequestTimeoutException', - ), - _i1.ErrorKind.client, - RequestTimeoutException, - statusCode: 408, - builder: RequestTimeoutException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ServiceUnavailableException', - ), - _i1.ErrorKind.server, - ServiceUnavailableException, - statusCode: 500, - builder: ServiceUnavailableException.fromResponse, - ), - ]; + _i1.SmithyError< + InvalidParameterValueException, + InvalidParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'InvalidParameterValueException', + ), + _i1.ErrorKind.client, + InvalidParameterValueException, + statusCode: 400, + builder: InvalidParameterValueException.fromResponse, + ), + _i1.SmithyError< + MissingParameterValueException, + MissingParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'MissingParameterValueException', + ), + _i1.ErrorKind.client, + MissingParameterValueException, + statusCode: 400, + builder: MissingParameterValueException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'RequestTimeoutException', + ), + _i1.ErrorKind.client, + RequestTimeoutException, + statusCode: 408, + builder: RequestTimeoutException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ServiceUnavailableException', + ), + _i1.ErrorKind.server, + ServiceUnavailableException, + statusCode: 500, + builder: ServiceUnavailableException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UploadMultipartPart'; @@ -186,11 +192,7 @@ class UploadMultipartPartOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart index dbcab501a7..daf7764d81 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Json Protocol'; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/serializers.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/serializers.dart index c4a63af923..2d1387624e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -250,141 +250,56 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(double)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType.nullable(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(bool), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(bool), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.SetMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(double)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType.nullable(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(GreetingStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType.nullable(GreetingStruct), + ]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(bool)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(bool)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSetMultimap, [FullType(String), FullType(String)]): + _i2.SetMultimapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart index 0d93b0e12d..d7e10ee3db 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.all_query_string_types_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -73,18 +73,20 @@ abstract class AllQueryStringTypesInput queryEnumList: queryEnumList == null ? null : _i4.BuiltList(queryEnumList), queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: queryIntegerEnumList == null - ? null - : _i4.BuiltList(queryIntegerEnumList), - queryParamsMapOfStringList: queryParamsMapOfStringList == null - ? null - : _i4.BuiltListMultimap(queryParamsMapOfStringList), + queryIntegerEnumList: + queryIntegerEnumList == null + ? null + : _i4.BuiltList(queryIntegerEnumList), + queryParamsMapOfStringList: + queryParamsMapOfStringList == null + ? null + : _i4.BuiltListMultimap(queryParamsMapOfStringList), ); } - factory AllQueryStringTypesInput.build( - [void Function(AllQueryStringTypesInputBuilder) updates]) = - _$AllQueryStringTypesInput; + factory AllQueryStringTypesInput.build([ + void Function(AllQueryStringTypesInputBuilder) updates, + ]) = _$AllQueryStringTypesInput; const AllQueryStringTypesInput._(); @@ -92,101 +94,120 @@ abstract class AllQueryStringTypesInput AllQueryStringTypesInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - AllQueryStringTypesInput.build((b) { - if (request.queryParameters['String'] != null) { - b.queryString = request.queryParameters['String']!; - } - if (request.queryParameters['StringList'] != null) { - b.queryStringList.addAll(_i1 - .parseHeader(request.queryParameters['StringList']!) - .map((el) => el.trim())); - } - if (request.queryParameters['StringSet'] != null) { - b.queryStringSet.addAll(_i1 - .parseHeader(request.queryParameters['StringSet']!) - .map((el) => el.trim())); - } - if (request.queryParameters['Byte'] != null) { - b.queryByte = int.parse(request.queryParameters['Byte']!); - } - if (request.queryParameters['Short'] != null) { - b.queryShort = int.parse(request.queryParameters['Short']!); - } - if (request.queryParameters['Integer'] != null) { - b.queryInteger = int.parse(request.queryParameters['Integer']!); - } - if (request.queryParameters['IntegerList'] != null) { - b.queryIntegerList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['IntegerSet'] != null) { - b.queryIntegerSet.addAll(_i1 - .parseHeader(request.queryParameters['IntegerSet']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['Long'] != null) { - b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); - } - if (request.queryParameters['Float'] != null) { - b.queryFloat = double.parse(request.queryParameters['Float']!); - } - if (request.queryParameters['Double'] != null) { - b.queryDouble = double.parse(request.queryParameters['Double']!); - } - if (request.queryParameters['DoubleList'] != null) { - b.queryDoubleList.addAll(_i1 - .parseHeader(request.queryParameters['DoubleList']!) - .map((el) => double.parse(el.trim()))); - } - if (request.queryParameters['Boolean'] != null) { - b.queryBoolean = request.queryParameters['Boolean']! == 'true'; - } - if (request.queryParameters['BooleanList'] != null) { - b.queryBooleanList.addAll(_i1 - .parseHeader(request.queryParameters['BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.queryParameters['Timestamp'] != null) { - b.queryTimestamp = _i1.Timestamp.parse( + }) => AllQueryStringTypesInput.build((b) { + if (request.queryParameters['String'] != null) { + b.queryString = request.queryParameters['String']!; + } + if (request.queryParameters['StringList'] != null) { + b.queryStringList.addAll( + _i1 + .parseHeader(request.queryParameters['StringList']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['StringSet'] != null) { + b.queryStringSet.addAll( + _i1 + .parseHeader(request.queryParameters['StringSet']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['Byte'] != null) { + b.queryByte = int.parse(request.queryParameters['Byte']!); + } + if (request.queryParameters['Short'] != null) { + b.queryShort = int.parse(request.queryParameters['Short']!); + } + if (request.queryParameters['Integer'] != null) { + b.queryInteger = int.parse(request.queryParameters['Integer']!); + } + if (request.queryParameters['IntegerList'] != null) { + b.queryIntegerList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['IntegerSet'] != null) { + b.queryIntegerSet.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerSet']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['Long'] != null) { + b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); + } + if (request.queryParameters['Float'] != null) { + b.queryFloat = double.parse(request.queryParameters['Float']!); + } + if (request.queryParameters['Double'] != null) { + b.queryDouble = double.parse(request.queryParameters['Double']!); + } + if (request.queryParameters['DoubleList'] != null) { + b.queryDoubleList.addAll( + _i1 + .parseHeader(request.queryParameters['DoubleList']!) + .map((el) => double.parse(el.trim())), + ); + } + if (request.queryParameters['Boolean'] != null) { + b.queryBoolean = request.queryParameters['Boolean']! == 'true'; + } + if (request.queryParameters['BooleanList'] != null) { + b.queryBooleanList.addAll( + _i1 + .parseHeader(request.queryParameters['BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.queryParameters['Timestamp'] != null) { + b.queryTimestamp = + _i1.Timestamp.parse( request.queryParameters['Timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.queryParameters['TimestampList'] != null) { - b.queryTimestampList.addAll(_i1 - .parseHeader( - request.queryParameters['TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + } + if (request.queryParameters['TimestampList'] != null) { + b.queryTimestampList.addAll( + _i1 + .parseHeader( + request.queryParameters['TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.queryParameters['Enum'] != null) { - b.queryEnum = - FooEnum.values.byValue(request.queryParameters['Enum']!); - } - if (request.queryParameters['EnumList'] != null) { - b.queryEnumList.addAll(_i1 - .parseHeader(request.queryParameters['EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.queryParameters['IntegerEnum'] != null) { - b.queryIntegerEnum = - int.parse(request.queryParameters['IntegerEnum']!); - } - if (request.queryParameters['IntegerEnumList'] != null) { - b.queryIntegerEnumList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerEnumList']!) - .map((el) => int.parse(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (request.queryParameters['Enum'] != null) { + b.queryEnum = FooEnum.values.byValue(request.queryParameters['Enum']!); + } + if (request.queryParameters['EnumList'] != null) { + b.queryEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.queryParameters['IntegerEnum'] != null) { + b.queryIntegerEnum = int.parse(request.queryParameters['IntegerEnum']!); + } + if (request.queryParameters['IntegerEnumList'] != null) { + b.queryIntegerEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerEnumList']!) + .map((el) => int.parse(el.trim())), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [AllQueryStringTypesInputRestJson1Serializer()]; + serializers = [AllQueryStringTypesInputRestJson1Serializer()]; String? get queryString; _i4.BuiltList? get queryStringList; @@ -215,131 +236,70 @@ abstract class AllQueryStringTypesInput @override List get props => [ - queryString, - queryStringList, - queryStringSet, - queryByte, - queryShort, - queryInteger, - queryIntegerList, - queryIntegerSet, - queryLong, - queryFloat, - queryDouble, - queryDoubleList, - queryBoolean, - queryBooleanList, - queryTimestamp, - queryTimestampList, - queryEnum, - queryEnumList, - queryIntegerEnum, - queryIntegerEnumList, - queryParamsMapOfStringList, - ]; + queryString, + queryStringList, + queryStringSet, + queryByte, + queryShort, + queryInteger, + queryIntegerList, + queryIntegerSet, + queryLong, + queryFloat, + queryDouble, + queryDoubleList, + queryBoolean, + queryBooleanList, + queryTimestamp, + queryTimestampList, + queryEnum, + queryEnumList, + queryIntegerEnum, + queryIntegerEnumList, + queryParamsMapOfStringList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('AllQueryStringTypesInput') - ..add( - 'queryString', - queryString, - ) - ..add( - 'queryStringList', - queryStringList, - ) - ..add( - 'queryStringSet', - queryStringSet, - ) - ..add( - 'queryByte', - queryByte, - ) - ..add( - 'queryShort', - queryShort, - ) - ..add( - 'queryInteger', - queryInteger, - ) - ..add( - 'queryIntegerList', - queryIntegerList, - ) - ..add( - 'queryIntegerSet', - queryIntegerSet, - ) - ..add( - 'queryLong', - queryLong, - ) - ..add( - 'queryFloat', - queryFloat, - ) - ..add( - 'queryDouble', - queryDouble, - ) - ..add( - 'queryDoubleList', - queryDoubleList, - ) - ..add( - 'queryBoolean', - queryBoolean, - ) - ..add( - 'queryBooleanList', - queryBooleanList, - ) - ..add( - 'queryTimestamp', - queryTimestamp, - ) - ..add( - 'queryTimestampList', - queryTimestampList, - ) - ..add( - 'queryEnum', - queryEnum, - ) - ..add( - 'queryEnumList', - queryEnumList, - ) - ..add( - 'queryIntegerEnum', - queryIntegerEnum, - ) - ..add( - 'queryIntegerEnumList', - queryIntegerEnumList, - ) - ..add( - 'queryParamsMapOfStringList', - queryParamsMapOfStringList, - ); + final helper = + newBuiltValueToStringHelper('AllQueryStringTypesInput') + ..add('queryString', queryString) + ..add('queryStringList', queryStringList) + ..add('queryStringSet', queryStringSet) + ..add('queryByte', queryByte) + ..add('queryShort', queryShort) + ..add('queryInteger', queryInteger) + ..add('queryIntegerList', queryIntegerList) + ..add('queryIntegerSet', queryIntegerSet) + ..add('queryLong', queryLong) + ..add('queryFloat', queryFloat) + ..add('queryDouble', queryDouble) + ..add('queryDoubleList', queryDoubleList) + ..add('queryBoolean', queryBoolean) + ..add('queryBooleanList', queryBooleanList) + ..add('queryTimestamp', queryTimestamp) + ..add('queryTimestampList', queryTimestampList) + ..add('queryEnum', queryEnum) + ..add('queryEnumList', queryEnumList) + ..add('queryIntegerEnum', queryIntegerEnum) + ..add('queryIntegerEnumList', queryIntegerEnumList) + ..add('queryParamsMapOfStringList', queryParamsMapOfStringList); return helper.toString(); } } @_i5.internal abstract class AllQueryStringTypesInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + >, _i1.EmptyPayload { - factory AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder) updates]) = - _$AllQueryStringTypesInputPayload; + factory AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ]) = _$AllQueryStringTypesInputPayload; const AllQueryStringTypesInputPayload._(); @@ -348,8 +308,9 @@ abstract class AllQueryStringTypesInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('AllQueryStringTypesInputPayload'); + final helper = newBuiltValueToStringHelper( + 'AllQueryStringTypesInputPayload', + ); return helper.toString(); } } @@ -357,23 +318,20 @@ abstract class AllQueryStringTypesInputPayload class AllQueryStringTypesInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const AllQueryStringTypesInputRestJson1Serializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [ - AllQueryStringTypesInput, - _$AllQueryStringTypesInput, - AllQueryStringTypesInputPayload, - _$AllQueryStringTypesInputPayload, - ]; + AllQueryStringTypesInput, + _$AllQueryStringTypesInput, + AllQueryStringTypesInputPayload, + _$AllQueryStringTypesInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AllQueryStringTypesInputPayload deserialize( @@ -389,6 +347,5 @@ class AllQueryStringTypesInputRestJson1Serializer Serializers serializers, AllQueryStringTypesInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart index f3f3d252b6..f1b157ffbc 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart @@ -50,38 +50,38 @@ class _$AllQueryStringTypesInput extends AllQueryStringTypesInput { @override final _i4.BuiltListMultimap? queryParamsMapOfStringList; - factory _$AllQueryStringTypesInput( - [void Function(AllQueryStringTypesInputBuilder)? updates]) => - (new AllQueryStringTypesInputBuilder()..update(updates))._build(); - - _$AllQueryStringTypesInput._( - {this.queryString, - this.queryStringList, - this.queryStringSet, - this.queryByte, - this.queryShort, - this.queryInteger, - this.queryIntegerList, - this.queryIntegerSet, - this.queryLong, - this.queryFloat, - this.queryDouble, - this.queryDoubleList, - this.queryBoolean, - this.queryBooleanList, - this.queryTimestamp, - this.queryTimestampList, - this.queryEnum, - this.queryEnumList, - this.queryIntegerEnum, - this.queryIntegerEnumList, - this.queryParamsMapOfStringList}) - : super._(); + factory _$AllQueryStringTypesInput([ + void Function(AllQueryStringTypesInputBuilder)? updates, + ]) => (new AllQueryStringTypesInputBuilder()..update(updates))._build(); + + _$AllQueryStringTypesInput._({ + this.queryString, + this.queryStringList, + this.queryStringSet, + this.queryByte, + this.queryShort, + this.queryInteger, + this.queryIntegerList, + this.queryIntegerSet, + this.queryLong, + this.queryFloat, + this.queryDouble, + this.queryDoubleList, + this.queryBoolean, + this.queryBooleanList, + this.queryTimestamp, + this.queryTimestampList, + this.queryEnum, + this.queryEnumList, + this.queryIntegerEnum, + this.queryIntegerEnumList, + this.queryParamsMapOfStringList, + }) : super._(); @override AllQueryStringTypesInput rebuild( - void Function(AllQueryStringTypesInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputBuilder toBuilder() => @@ -253,9 +253,8 @@ class AllQueryStringTypesInputBuilder _$this._queryParamsMapOfStringList ??= new _i4.ListMultimapBuilder(); set queryParamsMapOfStringList( - _i4.ListMultimapBuilder? - queryParamsMapOfStringList) => - _$this._queryParamsMapOfStringList = queryParamsMapOfStringList; + _i4.ListMultimapBuilder? queryParamsMapOfStringList, + ) => _$this._queryParamsMapOfStringList = queryParamsMapOfStringList; AllQueryStringTypesInputBuilder(); @@ -305,29 +304,31 @@ class AllQueryStringTypesInputBuilder _$AllQueryStringTypesInput _build() { _$AllQueryStringTypesInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AllQueryStringTypesInput._( - queryString: queryString, - queryStringList: _queryStringList?.build(), - queryStringSet: _queryStringSet?.build(), - queryByte: queryByte, - queryShort: queryShort, - queryInteger: queryInteger, - queryIntegerList: _queryIntegerList?.build(), - queryIntegerSet: _queryIntegerSet?.build(), - queryLong: queryLong, - queryFloat: queryFloat, - queryDouble: queryDouble, - queryDoubleList: _queryDoubleList?.build(), - queryBoolean: queryBoolean, - queryBooleanList: _queryBooleanList?.build(), - queryTimestamp: queryTimestamp, - queryTimestampList: _queryTimestampList?.build(), - queryEnum: queryEnum, - queryEnumList: _queryEnumList?.build(), - queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: _queryIntegerEnumList?.build(), - queryParamsMapOfStringList: _queryParamsMapOfStringList?.build()); + queryString: queryString, + queryStringList: _queryStringList?.build(), + queryStringSet: _queryStringSet?.build(), + queryByte: queryByte, + queryShort: queryShort, + queryInteger: queryInteger, + queryIntegerList: _queryIntegerList?.build(), + queryIntegerSet: _queryIntegerSet?.build(), + queryLong: queryLong, + queryFloat: queryFloat, + queryDouble: queryDouble, + queryDoubleList: _queryDoubleList?.build(), + queryBoolean: queryBoolean, + queryBooleanList: _queryBooleanList?.build(), + queryTimestamp: queryTimestamp, + queryTimestampList: _queryTimestampList?.build(), + queryEnum: queryEnum, + queryEnumList: _queryEnumList?.build(), + queryIntegerEnum: queryIntegerEnum, + queryIntegerEnumList: _queryIntegerEnumList?.build(), + queryParamsMapOfStringList: _queryParamsMapOfStringList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -359,7 +360,10 @@ class AllQueryStringTypesInputBuilder _queryParamsMapOfStringList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AllQueryStringTypesInput', _$failedField, e.toString()); + r'AllQueryStringTypesInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -370,16 +374,17 @@ class AllQueryStringTypesInputBuilder class _$AllQueryStringTypesInputPayload extends AllQueryStringTypesInputPayload { - factory _$AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder)? updates]) => + factory _$AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder)? updates, + ]) => (new AllQueryStringTypesInputPayloadBuilder()..update(updates))._build(); _$AllQueryStringTypesInputPayload._() : super._(); @override AllQueryStringTypesInputPayload rebuild( - void Function(AllQueryStringTypesInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputPayloadBuilder toBuilder() => @@ -399,8 +404,10 @@ class _$AllQueryStringTypesInputPayload class AllQueryStringTypesInputPayloadBuilder implements - Builder { + Builder< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + > { _$AllQueryStringTypesInputPayload? _$v; AllQueryStringTypesInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.dart index 1483f38f67..da4ec43cb0 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.dart index 49f3044ffa..60773e3a5b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.dart index d3a2a9d5e6..e4ab626fc8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -25,11 +25,7 @@ abstract class ComplexError String? topLevel, ComplexNestedErrorData? nested, }) { - return _$ComplexError._( - header: header, - topLevel: topLevel, - nested: nested, - ); + return _$ComplexError._(header: header, topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -42,20 +38,19 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexErrorPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ComplexError.build((b) { - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.topLevel = payload.topLevel; - if (response.headers['X-Header'] != null) { - b.header = response.headers['X-Header']!; - } - b.headers = response.headers; - }); + ) => ComplexError.build((b) { + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.topLevel = payload.topLevel; + if (response.headers['X-Header'] != null) { + b.header = response.headers['X-Header']!; + } + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorRestJson1Serializer() + ComplexErrorRestJson1Serializer(), ]; String? get header; @@ -63,17 +58,17 @@ abstract class ComplexError ComplexNestedErrorData? get nested; @override ComplexErrorPayload getPayload() => ComplexErrorPayload((b) { - if (nested != null) { - b.nested.replace(nested!); - } - b.topLevel = topLevel; - }); + if (nested != null) { + b.nested.replace(nested!); + } + b.topLevel = topLevel; + }); @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.restjson', + shape: 'ComplexError', + ); @override String? get message => null; @@ -92,27 +87,15 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - header, - topLevel, - nested, - ]; + List get props => [header, topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'header', - header, - ) - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('header', header) + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -121,31 +104,23 @@ abstract class ComplexError abstract class ComplexErrorPayload with _i1.AWSEquatable implements Built { - factory ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder) updates]) = - _$ComplexErrorPayload; + factory ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder) updates, + ]) = _$ComplexErrorPayload; const ComplexErrorPayload._(); ComplexNestedErrorData? get nested; String? get topLevel; @override - List get props => [ - nested, - topLevel, - ]; + List get props => [nested, topLevel]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexErrorPayload') - ..add( - 'nested', - nested, - ) - ..add( - 'topLevel', - topLevel, - ); + final helper = + newBuiltValueToStringHelper('ComplexErrorPayload') + ..add('nested', nested) + ..add('topLevel', topLevel); return helper.toString(); } } @@ -156,19 +131,16 @@ class ComplexErrorRestJson1Serializer @override Iterable get types => const [ - ComplexError, - _$ComplexError, - ComplexErrorPayload, - _$ComplexErrorPayload, - ]; + ComplexError, + _$ComplexError, + ComplexErrorPayload, + _$ComplexErrorPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexErrorPayload deserialize( @@ -187,15 +159,20 @@ class ComplexErrorRestJson1Serializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -213,18 +190,22 @@ class ComplexErrorRestJson1Serializer if (nested != null) { result$ ..add('Nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } if (topLevel != null) { result$ ..add('TopLevel') - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart index 46d3a12ed9..835defabfe 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.header, this.topLevel, this.nested, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -101,12 +101,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - header: header, - topLevel: topLevel, - nested: _nested?.build(), - headers: headers); + header: header, + topLevel: topLevel, + nested: _nested?.build(), + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -114,7 +116,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } @@ -129,16 +134,16 @@ class _$ComplexErrorPayload extends ComplexErrorPayload { @override final String? topLevel; - factory _$ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder)? updates]) => - (new ComplexErrorPayloadBuilder()..update(updates))._build(); + factory _$ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder)? updates, + ]) => (new ComplexErrorPayloadBuilder()..update(updates))._build(); _$ComplexErrorPayload._({this.nested, this.topLevel}) : super._(); @override ComplexErrorPayload rebuild( - void Function(ComplexErrorPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexErrorPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexErrorPayloadBuilder toBuilder() => @@ -204,9 +209,12 @@ class ComplexErrorPayloadBuilder _$ComplexErrorPayload _build() { _$ComplexErrorPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexErrorPayload._( - nested: _nested?.build(), topLevel: topLevel); + nested: _nested?.build(), + topLevel: topLevel, + ); } catch (_) { late String _$failedField; try { @@ -214,7 +222,10 @@ class ComplexErrorPayloadBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexErrorPayload', _$failedField, e.toString()); + r'ComplexErrorPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart index 1bfc75674a..9bbffbc5ba 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataRestJson1Serializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataRestJson1Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataRestJson1Serializer } switch (key) { case 'Fooooo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +94,9 @@ class ComplexNestedErrorDataRestJson1Serializer if (foo != null) { result$ ..add('Fooooo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart index f3f8ceb9f4..a4fa3e25c6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.constant_and_variable_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class ConstantAndVariableQueryStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { - factory ConstantAndVariableQueryStringInput({ - String? baz, - String? maybeSet, - }) { + factory ConstantAndVariableQueryStringInput({String? baz, String? maybeSet}) { return _$ConstantAndVariableQueryStringInput._( baz: baz, maybeSet: maybeSet, ); } - factory ConstantAndVariableQueryStringInput.build( - [void Function(ConstantAndVariableQueryStringInputBuilder) updates]) = - _$ConstantAndVariableQueryStringInput; + factory ConstantAndVariableQueryStringInput.build([ + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInput; const ConstantAndVariableQueryStringInput._(); @@ -40,19 +39,19 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantAndVariableQueryStringInput.build((b) { - if (request.queryParameters['baz'] != null) { - b.baz = request.queryParameters['baz']!; - } - if (request.queryParameters['maybeSet'] != null) { - b.maybeSet = request.queryParameters['maybeSet']!; - } - }); + }) => ConstantAndVariableQueryStringInput.build((b) { + if (request.queryParameters['baz'] != null) { + b.baz = request.queryParameters['baz']!; + } + if (request.queryParameters['maybeSet'] != null) { + b.maybeSet = request.queryParameters['maybeSet']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [ConstantAndVariableQueryStringInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [ConstantAndVariableQueryStringInputRestJson1Serializer()]; String? get baz; String? get maybeSet; @@ -61,38 +60,30 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload(); @override - List get props => [ - baz, - maybeSet, - ]; + List get props => [baz, maybeSet]; @override String toString() { final helper = newBuiltValueToStringHelper('ConstantAndVariableQueryStringInput') - ..add( - 'baz', - baz, - ) - ..add( - 'maybeSet', - maybeSet, - ); + ..add('baz', baz) + ..add('maybeSet', maybeSet); return helper.toString(); } } @_i3.internal abstract class ConstantAndVariableQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates]) = _$ConstantAndVariableQueryStringInputPayload; + factory ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInputPayload; const ConstantAndVariableQueryStringInputPayload._(); @@ -102,31 +93,32 @@ abstract class ConstantAndVariableQueryStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'ConstantAndVariableQueryStringInputPayload'); + 'ConstantAndVariableQueryStringInputPayload', + ); return helper.toString(); } } -class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + ConstantAndVariableQueryStringInputPayload + > { const ConstantAndVariableQueryStringInputRestJson1Serializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ - ConstantAndVariableQueryStringInput, - _$ConstantAndVariableQueryStringInput, - ConstantAndVariableQueryStringInputPayload, - _$ConstantAndVariableQueryStringInputPayload, - ]; + ConstantAndVariableQueryStringInput, + _$ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputPayload, + _$ConstantAndVariableQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantAndVariableQueryStringInputPayload deserialize( @@ -142,6 +134,5 @@ class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i1 Serializers serializers, ConstantAndVariableQueryStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart index 935bf6bdfc..addd673aba 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart @@ -13,19 +13,19 @@ class _$ConstantAndVariableQueryStringInput @override final String? maybeSet; - factory _$ConstantAndVariableQueryStringInput( - [void Function(ConstantAndVariableQueryStringInputBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInput([ + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputBuilder()..update(updates)) ._build(); _$ConstantAndVariableQueryStringInput._({this.baz, this.maybeSet}) - : super._(); + : super._(); @override ConstantAndVariableQueryStringInput rebuild( - void Function(ConstantAndVariableQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$ConstantAndVariableQueryStringInput class ConstantAndVariableQueryStringInputBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + > { _$ConstantAndVariableQueryStringInput? _$v; String? _baz; @@ -83,7 +85,8 @@ class ConstantAndVariableQueryStringInputBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputBuilder)? updates) { + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class ConstantAndVariableQueryStringInputBuilder ConstantAndVariableQueryStringInput build() => _build(); _$ConstantAndVariableQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantAndVariableQueryStringInput._( - baz: baz, maybeSet: maybeSet); + baz: baz, + maybeSet: maybeSet, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class ConstantAndVariableQueryStringInputBuilder class _$ConstantAndVariableQueryStringInputPayload extends ConstantAndVariableQueryStringInputPayload { - factory _$ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$ConstantAndVariableQueryStringInputPayload @override ConstantAndVariableQueryStringInputPayload rebuild( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$ConstantAndVariableQueryStringInputPayload class ConstantAndVariableQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + > { _$ConstantAndVariableQueryStringInputPayload? _$v; ConstantAndVariableQueryStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class ConstantAndVariableQueryStringInputPayloadBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates) { + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart index 4c33d2a175..9614623509 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.constant_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class ConstantQueryStringInput return _$ConstantQueryStringInput._(hello: hello); } - factory ConstantQueryStringInput.build( - [void Function(ConstantQueryStringInputBuilder) updates]) = - _$ConstantQueryStringInput; + factory ConstantQueryStringInput.build([ + void Function(ConstantQueryStringInputBuilder) updates, + ]) = _$ConstantQueryStringInput; const ConstantQueryStringInput._(); @@ -33,15 +33,14 @@ abstract class ConstantQueryStringInput ConstantQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantQueryStringInput.build((b) { - if (labels['hello'] != null) { - b.hello = labels['hello']!; - } - }); + }) => ConstantQueryStringInput.build((b) { + if (labels['hello'] != null) { + b.hello = labels['hello']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ConstantQueryStringInputRestJson1Serializer()]; + serializers = [ConstantQueryStringInputRestJson1Serializer()]; String get hello; @override @@ -50,10 +49,7 @@ abstract class ConstantQueryStringInput case 'hello': return hello; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -66,25 +62,23 @@ abstract class ConstantQueryStringInput @override String toString() { final helper = newBuiltValueToStringHelper('ConstantQueryStringInput') - ..add( - 'hello', - hello, - ); + ..add('hello', hello); return helper.toString(); } } @_i3.internal abstract class ConstantQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder) updates]) = - _$ConstantQueryStringInputPayload; + factory ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantQueryStringInputPayload; const ConstantQueryStringInputPayload._(); @@ -93,8 +87,9 @@ abstract class ConstantQueryStringInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('ConstantQueryStringInputPayload'); + final helper = newBuiltValueToStringHelper( + 'ConstantQueryStringInputPayload', + ); return helper.toString(); } } @@ -102,23 +97,20 @@ abstract class ConstantQueryStringInputPayload class ConstantQueryStringInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const ConstantQueryStringInputRestJson1Serializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ - ConstantQueryStringInput, - _$ConstantQueryStringInput, - ConstantQueryStringInputPayload, - _$ConstantQueryStringInputPayload, - ]; + ConstantQueryStringInput, + _$ConstantQueryStringInput, + ConstantQueryStringInputPayload, + _$ConstantQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantQueryStringInputPayload deserialize( @@ -134,6 +126,5 @@ class ConstantQueryStringInputRestJson1Serializer Serializers serializers, ConstantQueryStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart index b8d7dc6f8b..69522d2b0a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart @@ -10,19 +10,22 @@ class _$ConstantQueryStringInput extends ConstantQueryStringInput { @override final String hello; - factory _$ConstantQueryStringInput( - [void Function(ConstantQueryStringInputBuilder)? updates]) => - (new ConstantQueryStringInputBuilder()..update(updates))._build(); + factory _$ConstantQueryStringInput([ + void Function(ConstantQueryStringInputBuilder)? updates, + ]) => (new ConstantQueryStringInputBuilder()..update(updates))._build(); _$ConstantQueryStringInput._({required this.hello}) : super._() { BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello'); + hello, + r'ConstantQueryStringInput', + 'hello', + ); } @override ConstantQueryStringInput rebuild( - void Function(ConstantQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputBuilder toBuilder() => @@ -78,10 +81,15 @@ class ConstantQueryStringInputBuilder ConstantQueryStringInput build() => _build(); _$ConstantQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantQueryStringInput._( - hello: BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello')); + hello: BuiltValueNullFieldError.checkNotNull( + hello, + r'ConstantQueryStringInput', + 'hello', + ), + ); replace(_$result); return _$result; } @@ -89,16 +97,17 @@ class ConstantQueryStringInputBuilder class _$ConstantQueryStringInputPayload extends ConstantQueryStringInputPayload { - factory _$ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder)? updates]) => + factory _$ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantQueryStringInputPayloadBuilder()..update(updates))._build(); _$ConstantQueryStringInputPayload._() : super._(); @override ConstantQueryStringInputPayload rebuild( - void Function(ConstantQueryStringInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputPayloadBuilder toBuilder() => @@ -118,8 +127,10 @@ class _$ConstantQueryStringInputPayload class ConstantQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + > { _$ConstantQueryStringInputPayload? _$v; ConstantQueryStringInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart index 1c0e3c9999..b8ac70baa5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputRestJson1Serializer() + DatetimeOffsetsOutputRestJson1Serializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputRestJson1Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -106,10 +99,9 @@ class DatetimeOffsetsOutputRestJson1Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart index 173388bc16..f7b6261c56 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.document_type_as_payload_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,18 +16,21 @@ abstract class DocumentTypeAsPayloadInputOutput _i1.HttpInput<_i2.JsonObject>, _i3.AWSEquatable implements - Built, + Built< + DocumentTypeAsPayloadInputOutput, + DocumentTypeAsPayloadInputOutputBuilder + >, _i1.HasPayload<_i2.JsonObject> { factory DocumentTypeAsPayloadInputOutput({Object? documentValue}) { return _$DocumentTypeAsPayloadInputOutput._( - documentValue: - documentValue == null ? null : _i2.JsonObject(documentValue)); + documentValue: + documentValue == null ? null : _i2.JsonObject(documentValue), + ); } - factory DocumentTypeAsPayloadInputOutput.build( - [void Function(DocumentTypeAsPayloadInputOutputBuilder) updates]) = - _$DocumentTypeAsPayloadInputOutput; + factory DocumentTypeAsPayloadInputOutput.build([ + void Function(DocumentTypeAsPayloadInputOutputBuilder) updates, + ]) = _$DocumentTypeAsPayloadInputOutput; const DocumentTypeAsPayloadInputOutput._(); @@ -35,22 +38,20 @@ abstract class DocumentTypeAsPayloadInputOutput _i2.JsonObject? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - DocumentTypeAsPayloadInputOutput.build((b) { - b.documentValue = payload; - }); + }) => DocumentTypeAsPayloadInputOutput.build((b) { + b.documentValue = payload; + }); /// Constructs a [DocumentTypeAsPayloadInputOutput] from a [payload] and [response]. factory DocumentTypeAsPayloadInputOutput.fromResponse( _i2.JsonObject? payload, _i3.AWSBaseHttpResponse response, - ) => - DocumentTypeAsPayloadInputOutput.build((b) { - b.documentValue = payload; - }); + ) => DocumentTypeAsPayloadInputOutput.build((b) { + b.documentValue = payload; + }); static const List<_i1.SmithySerializer<_i2.JsonObject?>> serializers = [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), ]; _i2.JsonObject? get documentValue; @@ -62,12 +63,9 @@ abstract class DocumentTypeAsPayloadInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('DocumentTypeAsPayloadInputOutput') - ..add( - 'documentValue', - documentValue, - ); + final helper = newBuiltValueToStringHelper( + 'DocumentTypeAsPayloadInputOutput', + )..add('documentValue', documentValue); return helper.toString(); } } @@ -75,21 +73,18 @@ abstract class DocumentTypeAsPayloadInputOutput class DocumentTypeAsPayloadInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.JsonObject> { const DocumentTypeAsPayloadInputOutputRestJson1Serializer() - : super('DocumentTypeAsPayloadInputOutput'); + : super('DocumentTypeAsPayloadInputOutput'); @override Iterable get types => const [ - DocumentTypeAsPayloadInputOutput, - _$DocumentTypeAsPayloadInputOutput, - ]; + DocumentTypeAsPayloadInputOutput, + _$DocumentTypeAsPayloadInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.JsonObject deserialize( @@ -98,9 +93,10 @@ class DocumentTypeAsPayloadInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.JsonObject), - ) as _i2.JsonObject); + serialized, + specifiedType: const FullType(_i2.JsonObject), + ) + as _i2.JsonObject); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart index 3074882bc4..e3a40f1015 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart @@ -11,16 +11,17 @@ class _$DocumentTypeAsPayloadInputOutput @override final _i2.JsonObject? documentValue; - factory _$DocumentTypeAsPayloadInputOutput( - [void Function(DocumentTypeAsPayloadInputOutputBuilder)? updates]) => + factory _$DocumentTypeAsPayloadInputOutput([ + void Function(DocumentTypeAsPayloadInputOutputBuilder)? updates, + ]) => (new DocumentTypeAsPayloadInputOutputBuilder()..update(updates))._build(); _$DocumentTypeAsPayloadInputOutput._({this.documentValue}) : super._(); @override DocumentTypeAsPayloadInputOutput rebuild( - void Function(DocumentTypeAsPayloadInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DocumentTypeAsPayloadInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DocumentTypeAsPayloadInputOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$DocumentTypeAsPayloadInputOutput class DocumentTypeAsPayloadInputOutputBuilder implements - Builder { + Builder< + DocumentTypeAsPayloadInputOutput, + DocumentTypeAsPayloadInputOutputBuilder + > { _$DocumentTypeAsPayloadInputOutput? _$v; _i2.JsonObject? _documentValue; @@ -79,7 +82,8 @@ class DocumentTypeAsPayloadInputOutputBuilder DocumentTypeAsPayloadInputOutput build() => _build(); _$DocumentTypeAsPayloadInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DocumentTypeAsPayloadInputOutput._(documentValue: documentValue); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart index a30f1a4d0c..f3138cca50 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.document_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class DocumentTypeInputOutput ); } - factory DocumentTypeInputOutput.build( - [void Function(DocumentTypeInputOutputBuilder) updates]) = - _$DocumentTypeInputOutput; + factory DocumentTypeInputOutput.build([ + void Function(DocumentTypeInputOutputBuilder) updates, + ]) = _$DocumentTypeInputOutput; const DocumentTypeInputOutput._(); @@ -37,15 +37,13 @@ abstract class DocumentTypeInputOutput DocumentTypeInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [DocumentTypeInputOutput] from a [payload] and [response]. factory DocumentTypeInputOutput.fromResponse( DocumentTypeInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [DocumentTypeInputOutputRestJson1Serializer()]; @@ -56,22 +54,14 @@ abstract class DocumentTypeInputOutput DocumentTypeInputOutput getPayload() => this; @override - List get props => [ - stringValue, - documentValue, - ]; + List get props => [stringValue, documentValue]; @override String toString() { - final helper = newBuiltValueToStringHelper('DocumentTypeInputOutput') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'documentValue', - documentValue, - ); + final helper = + newBuiltValueToStringHelper('DocumentTypeInputOutput') + ..add('stringValue', stringValue) + ..add('documentValue', documentValue); return helper.toString(); } } @@ -79,21 +69,18 @@ abstract class DocumentTypeInputOutput class DocumentTypeInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const DocumentTypeInputOutputRestJson1Serializer() - : super('DocumentTypeInputOutput'); + : super('DocumentTypeInputOutput'); @override Iterable get types => const [ - DocumentTypeInputOutput, - _$DocumentTypeInputOutput, - ]; + DocumentTypeInputOutput, + _$DocumentTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DocumentTypeInputOutput deserialize( @@ -112,15 +99,19 @@ class DocumentTypeInputOutputRestJson1Serializer } switch (key) { case 'documentValue': - result.documentValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.JsonObject), - ) as _i3.JsonObject); + result.documentValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.JsonObject), + ) + as _i3.JsonObject); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -138,18 +129,22 @@ class DocumentTypeInputOutputRestJson1Serializer if (documentValue != null) { result$ ..add('documentValue') - ..add(serializers.serialize( - documentValue, - specifiedType: const FullType(_i3.JsonObject), - )); + ..add( + serializers.serialize( + documentValue, + specifiedType: const FullType(_i3.JsonObject), + ), + ); } if (stringValue != null) { result$ ..add('stringValue') - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart index 1a17c427ff..b6fe1a2c2b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart @@ -12,17 +12,17 @@ class _$DocumentTypeInputOutput extends DocumentTypeInputOutput { @override final _i3.JsonObject? documentValue; - factory _$DocumentTypeInputOutput( - [void Function(DocumentTypeInputOutputBuilder)? updates]) => - (new DocumentTypeInputOutputBuilder()..update(updates))._build(); + factory _$DocumentTypeInputOutput([ + void Function(DocumentTypeInputOutputBuilder)? updates, + ]) => (new DocumentTypeInputOutputBuilder()..update(updates))._build(); _$DocumentTypeInputOutput._({this.stringValue, this.documentValue}) - : super._(); + : super._(); @override DocumentTypeInputOutput rebuild( - void Function(DocumentTypeInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DocumentTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DocumentTypeInputOutputBuilder toBuilder() => @@ -87,9 +87,12 @@ class DocumentTypeInputOutputBuilder DocumentTypeInputOutput build() => _build(); _$DocumentTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DocumentTypeInputOutput._( - stringValue: stringValue, documentValue: documentValue); + stringValue: stringValue, + documentValue: documentValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart index cb07f0b69c..e0f0c62be8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputRestJson1Serializer()]; + serializers = [EmptyInputAndEmptyOutputInputRestJson1Serializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -84,6 +82,5 @@ class EmptyInputAndEmptyOutputInputRestJson1Serializer Serializers serializers, EmptyInputAndEmptyOutputInput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart index bf123b8272..2dce3d33c6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputRestJson1Serializer()]; + serializers = [EmptyInputAndEmptyOutputOutputRestJson1Serializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -81,6 +79,5 @@ class EmptyInputAndEmptyOutputOutputRestJson1Serializer Serializers serializers, EmptyInputAndEmptyOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart index 4e83a62e82..30fc7485eb 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.enum_payload_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,8 +20,9 @@ abstract class EnumPayloadInput return _$EnumPayloadInput._(payload: payload); } - factory EnumPayloadInput.build( - [void Function(EnumPayloadInputBuilder) updates]) = _$EnumPayloadInput; + factory EnumPayloadInput.build([ + void Function(EnumPayloadInputBuilder) updates, + ]) = _$EnumPayloadInput; const EnumPayloadInput._(); @@ -29,22 +30,20 @@ abstract class EnumPayloadInput StringEnum? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - EnumPayloadInput.build((b) { - b.payload = payload; - }); + }) => EnumPayloadInput.build((b) { + b.payload = payload; + }); /// Constructs a [EnumPayloadInput] from a [payload] and [response]. factory EnumPayloadInput.fromResponse( StringEnum? payload, _i2.AWSBaseHttpResponse response, - ) => - EnumPayloadInput.build((b) { - b.payload = payload; - }); + ) => EnumPayloadInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer> serializers = [ - EnumPayloadInputRestJson1Serializer() + EnumPayloadInputRestJson1Serializer(), ]; StringEnum? get payload; @@ -57,10 +56,7 @@ abstract class EnumPayloadInput @override String toString() { final helper = newBuiltValueToStringHelper('EnumPayloadInput') - ..add( - 'payload', - payload, - ); + ..add('payload', payload); return helper.toString(); } } @@ -70,18 +66,12 @@ class EnumPayloadInputRestJson1Serializer const EnumPayloadInputRestJson1Serializer() : super('EnumPayloadInput'); @override - Iterable get types => const [ - EnumPayloadInput, - _$EnumPayloadInput, - ]; + Iterable get types => const [EnumPayloadInput, _$EnumPayloadInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StringEnum deserialize( @@ -90,9 +80,10 @@ class EnumPayloadInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(StringEnum), - ) as StringEnum); + serialized, + specifiedType: const FullType(StringEnum), + ) + as StringEnum); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart index ed59d17016..459c49e5f4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart @@ -10,9 +10,9 @@ class _$EnumPayloadInput extends EnumPayloadInput { @override final StringEnum? payload; - factory _$EnumPayloadInput( - [void Function(EnumPayloadInputBuilder)? updates]) => - (new EnumPayloadInputBuilder()..update(updates))._build(); + factory _$EnumPayloadInput([ + void Function(EnumPayloadInputBuilder)? updates, + ]) => (new EnumPayloadInputBuilder()..update(updates))._build(); _$EnumPayloadInput._({this.payload}) : super._(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.dart index e1ae340df4..bfeae077eb 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart index b98da85b0d..beeb2d9d67 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart index ce6d8f03fc..7569db6943 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_error.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_error.dart index 115689855a..5e36a746a9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_error.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/foo_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.foo_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,20 +31,19 @@ abstract class FooError factory FooError.fromResponse( FooError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - FooErrorRestJson1Serializer() + FooErrorRestJson1Serializer(), ]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'FooError', - ); + namespace: 'aws.protocoltests.restjson', + shape: 'FooError', + ); @override String? get message => null; @@ -77,18 +76,12 @@ class FooErrorRestJson1Serializer const FooErrorRestJson1Serializer() : super('FooError'); @override - Iterable get types => const [ - FooError, - _$FooError, - ]; + Iterable get types => const [FooError, _$FooError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FooError deserialize( @@ -104,6 +97,5 @@ class FooErrorRestJson1Serializer Serializers serializers, FooError object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart index fb9413735e..b3d31a762c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputRestJson1Serializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputRestJson1Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FractionalSecondsOutput deserialize( @@ -105,10 +98,9 @@ class FractionalSecondsOutputRestJson1Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart index 90c8f2f942..528c7d2ee9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,18 +26,16 @@ abstract class GreetingStruct GreetingStruct payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [GreetingStruct] from a [payload] and [response]. factory GreetingStruct.fromResponse( GreetingStruct payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - GreetingStructRestJson1Serializer() + GreetingStructRestJson1Serializer(), ]; String? get hi; @@ -49,11 +47,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -63,18 +57,12 @@ class GreetingStructRestJson1Serializer const GreetingStructRestJson1Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingStruct deserialize( @@ -93,10 +81,12 @@ class GreetingStructRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -114,10 +104,7 @@ class GreetingStructRestJson1Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart index 56975538a3..bbe558ad60 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -31,15 +31,14 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.build((b) { - if (response.headers['X-Greeting'] != null) { - b.greeting = response.headers['X-Greeting']!; - } - }); + ) => GreetingWithErrorsOutput.build((b) { + if (response.headers['X-Greeting'] != null) { + b.greeting = response.headers['X-Greeting']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputRestJson1Serializer()]; + serializers = [GreetingWithErrorsOutputRestJson1Serializer()]; String? get greeting; @override @@ -52,25 +51,23 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @_i3.internal abstract class GreetingWithErrorsOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + >, _i2.EmptyPayload { - factory GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder) updates]) = - _$GreetingWithErrorsOutputPayload; + factory GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ]) = _$GreetingWithErrorsOutputPayload; const GreetingWithErrorsOutputPayload._(); @@ -79,8 +76,9 @@ abstract class GreetingWithErrorsOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('GreetingWithErrorsOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'GreetingWithErrorsOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputRestJson1Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - GreetingWithErrorsOutputPayload, - _$GreetingWithErrorsOutputPayload, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + GreetingWithErrorsOutputPayload, + _$GreetingWithErrorsOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingWithErrorsOutputPayload deserialize( @@ -120,6 +115,5 @@ class GreetingWithErrorsOutputRestJson1Serializer Serializers serializers, GreetingWithErrorsOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart index d5fcb6414c..36833d7d7d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class GreetingWithErrorsOutputBuilder class _$GreetingWithErrorsOutputPayload extends GreetingWithErrorsOutputPayload { - factory _$GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder)? updates]) => + factory _$GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder)? updates, + ]) => (new GreetingWithErrorsOutputPayloadBuilder()..update(updates))._build(); _$GreetingWithErrorsOutputPayload._() : super._(); @override GreetingWithErrorsOutputPayload rebuild( - void Function(GreetingWithErrorsOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputPayloadBuilder implements - Builder { + Builder< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + > { _$GreetingWithErrorsOutputPayload? _$v; GreetingWithErrorsOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart index de156b11ff..fef94ae633 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputRestJson1Serializer() + HostLabelInputRestJson1Serializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputRestJson1Serializer const HostLabelInputRestJson1Serializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputRestJson1Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,10 +107,7 @@ class HostLabelInputRestJson1Serializer final HostLabelInput(:label) = object; result$.addAll([ 'label', - serializers.serialize( - label, - specifiedType: const FullType(String), - ), + serializers.serialize(label, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart index 8f398bbee7..178e428a41 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_checksum_required_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class HttpChecksumRequiredInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutputBuilder + > { factory HttpChecksumRequiredInputOutput({String? foo}) { return _$HttpChecksumRequiredInputOutput._(foo: foo); } - factory HttpChecksumRequiredInputOutput.build( - [void Function(HttpChecksumRequiredInputOutputBuilder) updates]) = - _$HttpChecksumRequiredInputOutput; + factory HttpChecksumRequiredInputOutput.build([ + void Function(HttpChecksumRequiredInputOutputBuilder) updates, + ]) = _$HttpChecksumRequiredInputOutput; const HttpChecksumRequiredInputOutput._(); @@ -31,18 +33,16 @@ abstract class HttpChecksumRequiredInputOutput HttpChecksumRequiredInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [HttpChecksumRequiredInputOutput] from a [payload] and [response]. factory HttpChecksumRequiredInputOutput.fromResponse( HttpChecksumRequiredInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [HttpChecksumRequiredInputOutputRestJson1Serializer()]; + serializers = [HttpChecksumRequiredInputOutputRestJson1Serializer()]; String? get foo; @override @@ -53,12 +53,9 @@ abstract class HttpChecksumRequiredInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpChecksumRequiredInputOutput') - ..add( - 'foo', - foo, - ); + final helper = newBuiltValueToStringHelper( + 'HttpChecksumRequiredInputOutput', + )..add('foo', foo); return helper.toString(); } } @@ -66,21 +63,18 @@ abstract class HttpChecksumRequiredInputOutput class HttpChecksumRequiredInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpChecksumRequiredInputOutputRestJson1Serializer() - : super('HttpChecksumRequiredInputOutput'); + : super('HttpChecksumRequiredInputOutput'); @override Iterable get types => const [ - HttpChecksumRequiredInputOutput, - _$HttpChecksumRequiredInputOutput, - ]; + HttpChecksumRequiredInputOutput, + _$HttpChecksumRequiredInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumRequiredInputOutput deserialize( @@ -99,10 +93,12 @@ class HttpChecksumRequiredInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -120,10 +116,9 @@ class HttpChecksumRequiredInputOutputRestJson1Serializer if (foo != null) { result$ ..add('foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart index e51aa2e372..d77f96cd04 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart @@ -11,16 +11,17 @@ class _$HttpChecksumRequiredInputOutput @override final String? foo; - factory _$HttpChecksumRequiredInputOutput( - [void Function(HttpChecksumRequiredInputOutputBuilder)? updates]) => + factory _$HttpChecksumRequiredInputOutput([ + void Function(HttpChecksumRequiredInputOutputBuilder)? updates, + ]) => (new HttpChecksumRequiredInputOutputBuilder()..update(updates))._build(); _$HttpChecksumRequiredInputOutput._({this.foo}) : super._(); @override HttpChecksumRequiredInputOutput rebuild( - void Function(HttpChecksumRequiredInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpChecksumRequiredInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpChecksumRequiredInputOutputBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$HttpChecksumRequiredInputOutput class HttpChecksumRequiredInputOutputBuilder implements - Builder { + Builder< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutputBuilder + > { _$HttpChecksumRequiredInputOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart index 5cd6bce257..71c02a6772 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_payload_traits_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,18 @@ abstract class HttpPayloadTraitsInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { - factory HttpPayloadTraitsInputOutput({ - String? foo, - _i2.Uint8List? blob, - }) { - return _$HttpPayloadTraitsInputOutput._( - foo: foo, - blob: blob, - ); + factory HttpPayloadTraitsInputOutput({String? foo, _i2.Uint8List? blob}) { + return _$HttpPayloadTraitsInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsInputOutput.build( - [void Function(HttpPayloadTraitsInputOutputBuilder) updates]) = - _$HttpPayloadTraitsInputOutput; + factory HttpPayloadTraitsInputOutput.build([ + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsInputOutput; const HttpPayloadTraitsInputOutput._(); @@ -40,28 +36,26 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsInputOutputRestJson1Serializer() + HttpPayloadTraitsInputOutputRestJson1Serializer(), ]; String? get foo; @@ -70,22 +64,14 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + final helper = + newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -93,21 +79,18 @@ abstract class HttpPayloadTraitsInputOutput class HttpPayloadTraitsInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsInputOutput, - _$HttpPayloadTraitsInputOutput, - ]; + HttpPayloadTraitsInputOutput, + _$HttpPayloadTraitsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -116,9 +99,10 @@ class HttpPayloadTraitsInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart index 4b3e90e888..80b78468b7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsInputOutput( - [void Function(HttpPayloadTraitsInputOutputBuilder)? updates]) => - (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); + factory _$HttpPayloadTraitsInputOutput([ + void Function(HttpPayloadTraitsInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); _$HttpPayloadTraitsInputOutput._({this.foo, this.blob}) : super._(); @override HttpPayloadTraitsInputOutput rebuild( - void Function(HttpPayloadTraitsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { class HttpPayloadTraitsInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + > { _$HttpPayloadTraitsInputOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart index 1b04a65b43..ad813d8999 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_payload_traits_with_media_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,21 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpPayloadTraitsWithMediaTypeInputOutput({ String? foo, _i2.Uint8List? blob, }) { - return _$HttpPayloadTraitsWithMediaTypeInputOutput._( - foo: foo, - blob: blob, - ); + return _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsWithMediaTypeInputOutput.build( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; + factory HttpPayloadTraitsWithMediaTypeInputOutput.build([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; const HttpPayloadTraitsWithMediaTypeInputOutput._(); @@ -40,28 +39,26 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsWithMediaTypeInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer(), ]; String? get foo; @@ -70,23 +67,14 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpPayloadTraitsWithMediaTypeInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -94,21 +82,18 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsWithMediaTypeInputOutput, - _$HttpPayloadTraitsWithMediaTypeInputOutput, - ]; + HttpPayloadTraitsWithMediaTypeInputOutput, + _$HttpPayloadTraitsWithMediaTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -117,9 +102,10 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart index 01e00915a8..d83cb9dd90 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart @@ -13,20 +13,19 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsWithMediaTypeInputOutput( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates]) => + factory _$HttpPayloadTraitsWithMediaTypeInputOutput([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsWithMediaTypeInputOutputBuilder()..update(updates)) ._build(); _$HttpPayloadTraitsWithMediaTypeInputOutput._({this.foo, this.blob}) - : super._(); + : super._(); @override HttpPayloadTraitsWithMediaTypeInputOutput rebuild( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsWithMediaTypeInputOutputBuilder toBuilder() => @@ -52,8 +51,10 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + > { _$HttpPayloadTraitsWithMediaTypeInputOutput? _$v; String? _foo; @@ -84,8 +85,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder @override void update( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates) { + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -93,7 +94,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder HttpPayloadTraitsWithMediaTypeInputOutput build() => _build(); _$HttpPayloadTraitsWithMediaTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart index 934e5974f2..489e10910b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_payload_with_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,18 @@ abstract class HttpPayloadWithStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + >, _i1.HasPayload { factory HttpPayloadWithStructureInputOutput({NestedPayload? nested}) { return _$HttpPayloadWithStructureInputOutput._(nested: nested); } - factory HttpPayloadWithStructureInputOutput.build( - [void Function(HttpPayloadWithStructureInputOutputBuilder) updates]) = - _$HttpPayloadWithStructureInputOutput; + factory HttpPayloadWithStructureInputOutput.build([ + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ]) = _$HttpPayloadWithStructureInputOutput; const HttpPayloadWithStructureInputOutput._(); @@ -33,26 +35,24 @@ abstract class HttpPayloadWithStructureInputOutput NestedPayload? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithStructureInputOutput] from a [payload] and [response]. factory HttpPayloadWithStructureInputOutput.fromResponse( NestedPayload? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithStructureInputOutputRestJson1Serializer() + HttpPayloadWithStructureInputOutputRestJson1Serializer(), ]; NestedPayload? get nested; @@ -64,12 +64,9 @@ abstract class HttpPayloadWithStructureInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithStructureInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithStructureInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const HttpPayloadWithStructureInputOutputRestJson1Serializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [ - HttpPayloadWithStructureInputOutput, - _$HttpPayloadWithStructureInputOutput, - ]; + HttpPayloadWithStructureInputOutput, + _$HttpPayloadWithStructureInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NestedPayload deserialize( @@ -100,9 +94,10 @@ class HttpPayloadWithStructureInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(NestedPayload), - ) as NestedPayload); + serialized, + specifiedType: const FullType(NestedPayload), + ) + as NestedPayload); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart index 0422d70a2c..5174c4f637 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithStructureInputOutput @override final NestedPayload? nested; - factory _$HttpPayloadWithStructureInputOutput( - [void Function(HttpPayloadWithStructureInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithStructureInputOutput([ + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithStructureInputOutputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$HttpPayloadWithStructureInputOutput @override HttpPayloadWithStructureInputOutput rebuild( - void Function(HttpPayloadWithStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithStructureInputOutputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + > { _$HttpPayloadWithStructureInputOutput? _$v; NestedPayloadBuilder? _nested; @@ -74,7 +76,8 @@ class HttpPayloadWithStructureInputOutputBuilder @override void update( - void Function(HttpPayloadWithStructureInputOutputBuilder)? updates) { + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,7 +87,8 @@ class HttpPayloadWithStructureInputOutputBuilder _$HttpPayloadWithStructureInputOutput _build() { _$HttpPayloadWithStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithStructureInputOutput._(nested: _nested?.build()); } catch (_) { late String _$failedField; @@ -93,9 +97,10 @@ class HttpPayloadWithStructureInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithStructureInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart index c84254430b..bc4fb26264 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_prefix_headers_in_response_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class HttpPrefixHeadersInResponseInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInputBuilder + >, _i1.EmptyPayload { factory HttpPrefixHeadersInResponseInput() { return _$HttpPrefixHeadersInResponseInput._(); } - factory HttpPrefixHeadersInResponseInput.build( - [void Function(HttpPrefixHeadersInResponseInputBuilder) updates]) = - _$HttpPrefixHeadersInResponseInput; + factory HttpPrefixHeadersInResponseInput.build([ + void Function(HttpPrefixHeadersInResponseInputBuilder) updates, + ]) = _$HttpPrefixHeadersInResponseInput; const HttpPrefixHeadersInResponseInput._(); @@ -32,11 +34,10 @@ abstract class HttpPrefixHeadersInResponseInput HttpPrefixHeadersInResponseInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [HttpPrefixHeadersInResponseInputRestJson1Serializer()]; + serializers = [HttpPrefixHeadersInResponseInputRestJson1Serializer()]; @override HttpPrefixHeadersInResponseInput getPayload() => this; @@ -46,8 +47,9 @@ abstract class HttpPrefixHeadersInResponseInput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInResponseInput'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInResponseInput', + ); return helper.toString(); } } @@ -55,21 +57,18 @@ abstract class HttpPrefixHeadersInResponseInput class HttpPrefixHeadersInResponseInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpPrefixHeadersInResponseInputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseInput'); + : super('HttpPrefixHeadersInResponseInput'); @override Iterable get types => const [ - HttpPrefixHeadersInResponseInput, - _$HttpPrefixHeadersInResponseInput, - ]; + HttpPrefixHeadersInResponseInput, + _$HttpPrefixHeadersInResponseInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseInput deserialize( @@ -85,6 +84,5 @@ class HttpPrefixHeadersInResponseInputRestJson1Serializer Serializers serializers, HttpPrefixHeadersInResponseInput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart index c9a2587a1b..554c88b266 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart @@ -8,16 +8,17 @@ part of 'http_prefix_headers_in_response_input.dart'; class _$HttpPrefixHeadersInResponseInput extends HttpPrefixHeadersInResponseInput { - factory _$HttpPrefixHeadersInResponseInput( - [void Function(HttpPrefixHeadersInResponseInputBuilder)? updates]) => + factory _$HttpPrefixHeadersInResponseInput([ + void Function(HttpPrefixHeadersInResponseInputBuilder)? updates, + ]) => (new HttpPrefixHeadersInResponseInputBuilder()..update(updates))._build(); _$HttpPrefixHeadersInResponseInput._() : super._(); @override HttpPrefixHeadersInResponseInput rebuild( - void Function(HttpPrefixHeadersInResponseInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInResponseInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInResponseInputBuilder toBuilder() => @@ -37,8 +38,10 @@ class _$HttpPrefixHeadersInResponseInput class HttpPrefixHeadersInResponseInputBuilder implements - Builder { + Builder< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInputBuilder + > { _$HttpPrefixHeadersInResponseInput? _$v; HttpPrefixHeadersInResponseInputBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart index 3ff77967d0..64cb92a27a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_prefix_headers_in_response_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,23 +13,25 @@ import 'package:smithy/smithy.dart' as _i2; part 'http_prefix_headers_in_response_output.g.dart'; abstract class HttpPrefixHeadersInResponseOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInResponseOutput, + HttpPrefixHeadersInResponseOutputBuilder + >, _i2.EmptyPayload, _i2.HasPayload { - factory HttpPrefixHeadersInResponseOutput( - {Map? prefixHeaders}) { + factory HttpPrefixHeadersInResponseOutput({ + Map? prefixHeaders, + }) { return _$HttpPrefixHeadersInResponseOutput._( - prefixHeaders: - prefixHeaders == null ? null : _i3.BuiltMap(prefixHeaders)); + prefixHeaders: prefixHeaders == null ? null : _i3.BuiltMap(prefixHeaders), + ); } - factory HttpPrefixHeadersInResponseOutput.build( - [void Function(HttpPrefixHeadersInResponseOutputBuilder) updates]) = - _$HttpPrefixHeadersInResponseOutput; + factory HttpPrefixHeadersInResponseOutput.build([ + void Function(HttpPrefixHeadersInResponseOutputBuilder) updates, + ]) = _$HttpPrefixHeadersInResponseOutput; const HttpPrefixHeadersInResponseOutput._(); @@ -37,14 +39,14 @@ abstract class HttpPrefixHeadersInResponseOutput factory HttpPrefixHeadersInResponseOutput.fromResponse( HttpPrefixHeadersInResponseOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInResponseOutput.build((b) { - b.prefixHeaders.addEntries(response.headers.entries); - }); + ) => HttpPrefixHeadersInResponseOutput.build((b) { + b.prefixHeaders.addEntries(response.headers.entries); + }); static const List< - _i2.SmithySerializer> - serializers = [HttpPrefixHeadersInResponseOutputRestJson1Serializer()]; + _i2.SmithySerializer + > + serializers = [HttpPrefixHeadersInResponseOutputRestJson1Serializer()]; _i3.BuiltMap? get prefixHeaders; @override @@ -56,27 +58,25 @@ abstract class HttpPrefixHeadersInResponseOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInResponseOutput') - ..add( - 'prefixHeaders', - prefixHeaders, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInResponseOutput', + )..add('prefixHeaders', prefixHeaders); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersInResponseOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpPrefixHeadersInResponseOutputPayload( - [void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) - updates]) = _$HttpPrefixHeadersInResponseOutputPayload; + factory HttpPrefixHeadersInResponseOutputPayload([ + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersInResponseOutputPayload; const HttpPrefixHeadersInResponseOutputPayload._(); @@ -85,32 +85,33 @@ abstract class HttpPrefixHeadersInResponseOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInResponseOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInResponseOutputPayload', + ); return helper.toString(); } } -class HttpPrefixHeadersInResponseOutputRestJson1Serializer extends _i2 - .StructuredSmithySerializer { +class HttpPrefixHeadersInResponseOutputRestJson1Serializer + extends + _i2.StructuredSmithySerializer< + HttpPrefixHeadersInResponseOutputPayload + > { const HttpPrefixHeadersInResponseOutputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseOutput'); + : super('HttpPrefixHeadersInResponseOutput'); @override Iterable get types => const [ - HttpPrefixHeadersInResponseOutput, - _$HttpPrefixHeadersInResponseOutput, - HttpPrefixHeadersInResponseOutputPayload, - _$HttpPrefixHeadersInResponseOutputPayload, - ]; + HttpPrefixHeadersInResponseOutput, + _$HttpPrefixHeadersInResponseOutput, + HttpPrefixHeadersInResponseOutputPayload, + _$HttpPrefixHeadersInResponseOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseOutputPayload deserialize( @@ -126,6 +127,5 @@ class HttpPrefixHeadersInResponseOutputRestJson1Serializer extends _i2 Serializers serializers, HttpPrefixHeadersInResponseOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart index 54fd413cb1..6ca595566a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart @@ -11,8 +11,9 @@ class _$HttpPrefixHeadersInResponseOutput @override final _i3.BuiltMap? prefixHeaders; - factory _$HttpPrefixHeadersInResponseOutput( - [void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates]) => + factory _$HttpPrefixHeadersInResponseOutput([ + void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates, + ]) => (new HttpPrefixHeadersInResponseOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$HttpPrefixHeadersInResponseOutput @override HttpPrefixHeadersInResponseOutput rebuild( - void Function(HttpPrefixHeadersInResponseOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInResponseOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInResponseOutputBuilder toBuilder() => @@ -45,8 +46,10 @@ class _$HttpPrefixHeadersInResponseOutput class HttpPrefixHeadersInResponseOutputBuilder implements - Builder { + Builder< + HttpPrefixHeadersInResponseOutput, + HttpPrefixHeadersInResponseOutputBuilder + > { _$HttpPrefixHeadersInResponseOutput? _$v; _i3.MapBuilder? _prefixHeaders; @@ -74,7 +77,8 @@ class HttpPrefixHeadersInResponseOutputBuilder @override void update( - void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates) { + void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,9 +88,11 @@ class HttpPrefixHeadersInResponseOutputBuilder _$HttpPrefixHeadersInResponseOutput _build() { _$HttpPrefixHeadersInResponseOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersInResponseOutput._( - prefixHeaders: _prefixHeaders?.build()); + prefixHeaders: _prefixHeaders?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +100,10 @@ class HttpPrefixHeadersInResponseOutputBuilder _prefixHeaders?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersInResponseOutput', _$failedField, e.toString()); + r'HttpPrefixHeadersInResponseOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -105,9 +114,9 @@ class HttpPrefixHeadersInResponseOutputBuilder class _$HttpPrefixHeadersInResponseOutputPayload extends HttpPrefixHeadersInResponseOutputPayload { - factory _$HttpPrefixHeadersInResponseOutputPayload( - [void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? - updates]) => + factory _$HttpPrefixHeadersInResponseOutputPayload([ + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersInResponseOutputPayloadBuilder()..update(updates)) ._build(); @@ -115,9 +124,8 @@ class _$HttpPrefixHeadersInResponseOutputPayload @override HttpPrefixHeadersInResponseOutputPayload rebuild( - void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInResponseOutputPayloadBuilder toBuilder() => @@ -137,8 +145,10 @@ class _$HttpPrefixHeadersInResponseOutputPayload class HttpPrefixHeadersInResponseOutputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutputPayloadBuilder + > { _$HttpPrefixHeadersInResponseOutputPayload? _$v; HttpPrefixHeadersInResponseOutputPayloadBuilder(); @@ -151,7 +161,8 @@ class HttpPrefixHeadersInResponseOutputPayloadBuilder @override void update( - void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? updates) { + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart index 9d9dcffbdd..fbb08a1638 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_prefix_headers_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,19 +20,16 @@ abstract class HttpPrefixHeadersInput Built, _i1.EmptyPayload, _i1.HasPayload { - factory HttpPrefixHeadersInput({ - String? foo, - Map? fooMap, - }) { + factory HttpPrefixHeadersInput({String? foo, Map? fooMap}) { return _$HttpPrefixHeadersInput._( foo: foo, fooMap: fooMap == null ? null : _i3.BuiltMap(fooMap), ); } - factory HttpPrefixHeadersInput.build( - [void Function(HttpPrefixHeadersInputBuilder) updates]) = - _$HttpPrefixHeadersInput; + factory HttpPrefixHeadersInput.build([ + void Function(HttpPrefixHeadersInputBuilder) updates, + ]) = _$HttpPrefixHeadersInput; const HttpPrefixHeadersInput._(); @@ -40,24 +37,19 @@ abstract class HttpPrefixHeadersInput HttpPrefixHeadersInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPrefixHeadersInput.build((b) { - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - b.fooMap.addEntries(request.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + }) => HttpPrefixHeadersInput.build((b) { + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + b.fooMap.addEntries( + request.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); static const List<_i1.SmithySerializer> - serializers = [HttpPrefixHeadersInputRestJson1Serializer()]; + serializers = [HttpPrefixHeadersInputRestJson1Serializer()]; String? get foo; _i3.BuiltMap? get fooMap; @@ -65,37 +57,30 @@ abstract class HttpPrefixHeadersInput HttpPrefixHeadersInputPayload getPayload() => HttpPrefixHeadersInputPayload(); @override - List get props => [ - foo, - fooMap, - ]; + List get props => [foo, fooMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPrefixHeadersInput') - ..add( - 'foo', - foo, - ) - ..add( - 'fooMap', - fooMap, - ); + final helper = + newBuiltValueToStringHelper('HttpPrefixHeadersInput') + ..add('foo', foo) + ..add('fooMap', fooMap); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpPrefixHeadersInputPayload( - [void Function(HttpPrefixHeadersInputPayloadBuilder) updates]) = - _$HttpPrefixHeadersInputPayload; + factory HttpPrefixHeadersInputPayload([ + void Function(HttpPrefixHeadersInputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersInputPayload; const HttpPrefixHeadersInputPayload._(); @@ -112,23 +97,20 @@ abstract class HttpPrefixHeadersInputPayload class HttpPrefixHeadersInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpPrefixHeadersInputRestJson1Serializer() - : super('HttpPrefixHeadersInput'); + : super('HttpPrefixHeadersInput'); @override Iterable get types => const [ - HttpPrefixHeadersInput, - _$HttpPrefixHeadersInput, - HttpPrefixHeadersInputPayload, - _$HttpPrefixHeadersInputPayload, - ]; + HttpPrefixHeadersInput, + _$HttpPrefixHeadersInput, + HttpPrefixHeadersInputPayload, + _$HttpPrefixHeadersInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInputPayload deserialize( @@ -144,6 +126,5 @@ class HttpPrefixHeadersInputRestJson1Serializer Serializers serializers, HttpPrefixHeadersInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart index 8ce0de819d..83a600071f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart @@ -12,16 +12,16 @@ class _$HttpPrefixHeadersInput extends HttpPrefixHeadersInput { @override final _i3.BuiltMap? fooMap; - factory _$HttpPrefixHeadersInput( - [void Function(HttpPrefixHeadersInputBuilder)? updates]) => - (new HttpPrefixHeadersInputBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersInput([ + void Function(HttpPrefixHeadersInputBuilder)? updates, + ]) => (new HttpPrefixHeadersInputBuilder()..update(updates))._build(); _$HttpPrefixHeadersInput._({this.foo, this.fooMap}) : super._(); @override HttpPrefixHeadersInput rebuild( - void Function(HttpPrefixHeadersInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputBuilder toBuilder() => @@ -87,7 +87,8 @@ class HttpPrefixHeadersInputBuilder _$HttpPrefixHeadersInput _build() { _$HttpPrefixHeadersInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersInput._(foo: foo, fooMap: _fooMap?.build()); } catch (_) { late String _$failedField; @@ -96,7 +97,10 @@ class HttpPrefixHeadersInputBuilder _fooMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersInput', _$failedField, e.toString()); + r'HttpPrefixHeadersInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -106,16 +110,16 @@ class HttpPrefixHeadersInputBuilder } class _$HttpPrefixHeadersInputPayload extends HttpPrefixHeadersInputPayload { - factory _$HttpPrefixHeadersInputPayload( - [void Function(HttpPrefixHeadersInputPayloadBuilder)? updates]) => - (new HttpPrefixHeadersInputPayloadBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersInputPayload([ + void Function(HttpPrefixHeadersInputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersInputPayloadBuilder()..update(updates))._build(); _$HttpPrefixHeadersInputPayload._() : super._(); @override HttpPrefixHeadersInputPayload rebuild( - void Function(HttpPrefixHeadersInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputPayloadBuilder toBuilder() => @@ -135,8 +139,10 @@ class _$HttpPrefixHeadersInputPayload extends HttpPrefixHeadersInputPayload { class HttpPrefixHeadersInputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInputPayloadBuilder + > { _$HttpPrefixHeadersInputPayload? _$v; HttpPrefixHeadersInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart index 2ad8b6b2d0..c508b0e472 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_prefix_headers_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,19 +18,16 @@ abstract class HttpPrefixHeadersOutput Built, _i2.EmptyPayload, _i2.HasPayload { - factory HttpPrefixHeadersOutput({ - String? foo, - Map? fooMap, - }) { + factory HttpPrefixHeadersOutput({String? foo, Map? fooMap}) { return _$HttpPrefixHeadersOutput._( foo: foo, fooMap: fooMap == null ? null : _i3.BuiltMap(fooMap), ); } - factory HttpPrefixHeadersOutput.build( - [void Function(HttpPrefixHeadersOutputBuilder) updates]) = - _$HttpPrefixHeadersOutput; + factory HttpPrefixHeadersOutput.build([ + void Function(HttpPrefixHeadersOutputBuilder) updates, + ]) = _$HttpPrefixHeadersOutput; const HttpPrefixHeadersOutput._(); @@ -38,24 +35,19 @@ abstract class HttpPrefixHeadersOutput factory HttpPrefixHeadersOutput.fromResponse( HttpPrefixHeadersOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersOutput.build((b) { - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - b.fooMap.addEntries(response.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + ) => HttpPrefixHeadersOutput.build((b) { + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + b.fooMap.addEntries( + response.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); static const List<_i2.SmithySerializer> - serializers = [HttpPrefixHeadersOutputRestJson1Serializer()]; + serializers = [HttpPrefixHeadersOutputRestJson1Serializer()]; String? get foo; _i3.BuiltMap? get fooMap; @@ -64,37 +56,30 @@ abstract class HttpPrefixHeadersOutput HttpPrefixHeadersOutputPayload(); @override - List get props => [ - foo, - fooMap, - ]; + List get props => [foo, fooMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPrefixHeadersOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'fooMap', - fooMap, - ); + final helper = + newBuiltValueToStringHelper('HttpPrefixHeadersOutput') + ..add('foo', foo) + ..add('fooMap', fooMap); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpPrefixHeadersOutputPayload( - [void Function(HttpPrefixHeadersOutputPayloadBuilder) updates]) = - _$HttpPrefixHeadersOutputPayload; + factory HttpPrefixHeadersOutputPayload([ + void Function(HttpPrefixHeadersOutputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersOutputPayload; const HttpPrefixHeadersOutputPayload._(); @@ -103,8 +88,9 @@ abstract class HttpPrefixHeadersOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersOutputPayload', + ); return helper.toString(); } } @@ -112,23 +98,20 @@ abstract class HttpPrefixHeadersOutputPayload class HttpPrefixHeadersOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const HttpPrefixHeadersOutputRestJson1Serializer() - : super('HttpPrefixHeadersOutput'); + : super('HttpPrefixHeadersOutput'); @override Iterable get types => const [ - HttpPrefixHeadersOutput, - _$HttpPrefixHeadersOutput, - HttpPrefixHeadersOutputPayload, - _$HttpPrefixHeadersOutputPayload, - ]; + HttpPrefixHeadersOutput, + _$HttpPrefixHeadersOutput, + HttpPrefixHeadersOutputPayload, + _$HttpPrefixHeadersOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersOutputPayload deserialize( @@ -144,6 +127,5 @@ class HttpPrefixHeadersOutputRestJson1Serializer Serializers serializers, HttpPrefixHeadersOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart index 09f226e9c2..afcf3b2ccf 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPrefixHeadersOutput extends HttpPrefixHeadersOutput { @override final _i3.BuiltMap? fooMap; - factory _$HttpPrefixHeadersOutput( - [void Function(HttpPrefixHeadersOutputBuilder)? updates]) => - (new HttpPrefixHeadersOutputBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersOutput([ + void Function(HttpPrefixHeadersOutputBuilder)? updates, + ]) => (new HttpPrefixHeadersOutputBuilder()..update(updates))._build(); _$HttpPrefixHeadersOutput._({this.foo, this.fooMap}) : super._(); @override HttpPrefixHeadersOutput rebuild( - void Function(HttpPrefixHeadersOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersOutputBuilder toBuilder() => @@ -88,7 +88,8 @@ class HttpPrefixHeadersOutputBuilder _$HttpPrefixHeadersOutput _build() { _$HttpPrefixHeadersOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersOutput._(foo: foo, fooMap: _fooMap?.build()); } catch (_) { late String _$failedField; @@ -97,7 +98,10 @@ class HttpPrefixHeadersOutputBuilder _fooMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersOutput', _$failedField, e.toString()); + r'HttpPrefixHeadersOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -107,16 +111,16 @@ class HttpPrefixHeadersOutputBuilder } class _$HttpPrefixHeadersOutputPayload extends HttpPrefixHeadersOutputPayload { - factory _$HttpPrefixHeadersOutputPayload( - [void Function(HttpPrefixHeadersOutputPayloadBuilder)? updates]) => - (new HttpPrefixHeadersOutputPayloadBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersOutputPayload([ + void Function(HttpPrefixHeadersOutputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersOutputPayloadBuilder()..update(updates))._build(); _$HttpPrefixHeadersOutputPayload._() : super._(); @override HttpPrefixHeadersOutputPayload rebuild( - void Function(HttpPrefixHeadersOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersOutputPayloadBuilder toBuilder() => @@ -136,8 +140,10 @@ class _$HttpPrefixHeadersOutputPayload extends HttpPrefixHeadersOutputPayload { class HttpPrefixHeadersOutputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutputPayloadBuilder + > { _$HttpPrefixHeadersOutputPayload? _$v; HttpPrefixHeadersOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart index 53c6571da0..e90b197af6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_request_with_float_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithFloatLabelsInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithFloatLabelsInput({ required double float, required double double_, }) { - return _$HttpRequestWithFloatLabelsInput._( - float: float, - double_: double_, - ); + return _$HttpRequestWithFloatLabelsInput._(float: float, double_: double_); } - factory HttpRequestWithFloatLabelsInput.build( - [void Function(HttpRequestWithFloatLabelsInputBuilder) updates]) = - _$HttpRequestWithFloatLabelsInput; + factory HttpRequestWithFloatLabelsInput.build([ + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInput; const HttpRequestWithFloatLabelsInput._(); @@ -40,19 +39,19 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithFloatLabelsInput.build((b) { - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - }); + }) => HttpRequestWithFloatLabelsInput.build((b) { + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithFloatLabelsInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithFloatLabelsInputRestJson1Serializer()]; double get float; double get double_; @@ -64,10 +63,7 @@ abstract class HttpRequestWithFloatLabelsInput case 'double': return double_.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -75,38 +71,30 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload(); @override - List get props => [ - float, - double_, - ]; + List get props => [float, double_]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInput') - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ); + ..add('float', float) + ..add('double_', double_); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithFloatLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates]) = _$HttpRequestWithFloatLabelsInputPayload; + factory HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInputPayload; const HttpRequestWithFloatLabelsInputPayload._(); @@ -115,32 +103,31 @@ abstract class HttpRequestWithFloatLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithFloatLabelsInputPayload', + ); return helper.toString(); } } -class HttpRequestWithFloatLabelsInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithFloatLabelsInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestJson1Serializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [ - HttpRequestWithFloatLabelsInput, - _$HttpRequestWithFloatLabelsInput, - HttpRequestWithFloatLabelsInputPayload, - _$HttpRequestWithFloatLabelsInputPayload, - ]; + HttpRequestWithFloatLabelsInput, + _$HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputPayload, + _$HttpRequestWithFloatLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithFloatLabelsInputPayload deserialize( @@ -156,6 +143,5 @@ class HttpRequestWithFloatLabelsInputRestJson1Serializer extends _i1 Serializers serializers, HttpRequestWithFloatLabelsInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart index c76e934e86..7aefc65834 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart @@ -13,23 +13,31 @@ class _$HttpRequestWithFloatLabelsInput @override final double double_; - factory _$HttpRequestWithFloatLabelsInput( - [void Function(HttpRequestWithFloatLabelsInputBuilder)? updates]) => + factory _$HttpRequestWithFloatLabelsInput([ + void Function(HttpRequestWithFloatLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputBuilder()..update(updates))._build(); - _$HttpRequestWithFloatLabelsInput._( - {required this.float, required this.double_}) - : super._() { + _$HttpRequestWithFloatLabelsInput._({ + required this.float, + required this.double_, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'); + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_'); + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ); } @override HttpRequestWithFloatLabelsInput rebuild( - void Function(HttpRequestWithFloatLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputBuilder toBuilder() => @@ -55,8 +63,10 @@ class _$HttpRequestWithFloatLabelsInput class HttpRequestWithFloatLabelsInputBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + > { _$HttpRequestWithFloatLabelsInput? _$v; double? _float; @@ -94,12 +104,20 @@ class HttpRequestWithFloatLabelsInputBuilder HttpRequestWithFloatLabelsInput build() => _build(); _$HttpRequestWithFloatLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithFloatLabelsInput._( - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_')); + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ), + ); replace(_$result); return _$result; } @@ -107,9 +125,9 @@ class HttpRequestWithFloatLabelsInputBuilder class _$HttpRequestWithFloatLabelsInputPayload extends HttpRequestWithFloatLabelsInputPayload { - factory _$HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -117,9 +135,8 @@ class _$HttpRequestWithFloatLabelsInputPayload @override HttpRequestWithFloatLabelsInputPayload rebuild( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputPayloadBuilder toBuilder() => @@ -139,8 +156,10 @@ class _$HttpRequestWithFloatLabelsInputPayload class HttpRequestWithFloatLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + > { _$HttpRequestWithFloatLabelsInputPayload? _$v; HttpRequestWithFloatLabelsInputPayloadBuilder(); @@ -153,7 +172,8 @@ class HttpRequestWithFloatLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart index 38fb24c770..dbebcfe28e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_request_with_greedy_label_in_path_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithGreedyLabelInPathInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithGreedyLabelInPathInput({ required String foo, required String baz, }) { - return _$HttpRequestWithGreedyLabelInPathInput._( - foo: foo, - baz: baz, - ); + return _$HttpRequestWithGreedyLabelInPathInput._(foo: foo, baz: baz); } - factory HttpRequestWithGreedyLabelInPathInput.build( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInput; + factory HttpRequestWithGreedyLabelInPathInput.build([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInput; const HttpRequestWithGreedyLabelInPathInput._(); @@ -40,21 +39,19 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithGreedyLabelInPathInput.build((b) { - if (labels['foo'] != null) { - b.foo = labels['foo']!; - } - if (labels['baz'] != null) { - b.baz = labels['baz']!; - } - }); + }) => HttpRequestWithGreedyLabelInPathInput.build((b) { + if (labels['foo'] != null) { + b.foo = labels['foo']!; + } + if (labels['baz'] != null) { + b.baz = labels['baz']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [ - HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - ]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithGreedyLabelInPathInputRestJson1Serializer()]; String get foo; String get baz; @@ -66,10 +63,7 @@ abstract class HttpRequestWithGreedyLabelInPathInput case 'baz': return baz; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -77,38 +71,30 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithGreedyLabelInPathInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithGreedyLabelInPathInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInputPayload; + factory HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInputPayload; const HttpRequestWithGreedyLabelInPathInputPayload._(); @@ -118,31 +104,32 @@ abstract class HttpRequestWithGreedyLabelInPathInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithGreedyLabelInPathInputPayload'); + 'HttpRequestWithGreedyLabelInPathInputPayload', + ); return helper.toString(); } } -class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + HttpRequestWithGreedyLabelInPathInputPayload + > { const HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [ - HttpRequestWithGreedyLabelInPathInput, - _$HttpRequestWithGreedyLabelInPathInput, - HttpRequestWithGreedyLabelInPathInputPayload, - _$HttpRequestWithGreedyLabelInPathInputPayload, - ]; + HttpRequestWithGreedyLabelInPathInput, + _$HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputPayload, + _$HttpRequestWithGreedyLabelInPathInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithGreedyLabelInPathInputPayload deserialize( @@ -158,6 +145,5 @@ class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i1 Serializers serializers, HttpRequestWithGreedyLabelInPathInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart index 17074744a3..82b442bac4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart @@ -13,26 +13,32 @@ class _$HttpRequestWithGreedyLabelInPathInput @override final String baz; - factory _$HttpRequestWithGreedyLabelInPathInput( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInput([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputBuilder()..update(updates)) ._build(); - _$HttpRequestWithGreedyLabelInPathInput._( - {required this.foo, required this.baz}) - : super._() { + _$HttpRequestWithGreedyLabelInPathInput._({ + required this.foo, + required this.baz, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'); + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ); BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz'); + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ); } @override HttpRequestWithGreedyLabelInPathInput rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputBuilder toBuilder() => @@ -58,8 +64,10 @@ class _$HttpRequestWithGreedyLabelInPathInput class HttpRequestWithGreedyLabelInPathInputBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + > { _$HttpRequestWithGreedyLabelInPathInput? _$v; String? _foo; @@ -90,7 +98,8 @@ class HttpRequestWithGreedyLabelInPathInputBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates) { + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -98,12 +107,20 @@ class HttpRequestWithGreedyLabelInPathInputBuilder HttpRequestWithGreedyLabelInPathInput build() => _build(); _$HttpRequestWithGreedyLabelInPathInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithGreedyLabelInPathInput._( - foo: BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'), - baz: BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz')); + foo: BuiltValueNullFieldError.checkNotNull( + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ), + baz: BuiltValueNullFieldError.checkNotNull( + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ), + ); replace(_$result); return _$result; } @@ -111,9 +128,9 @@ class HttpRequestWithGreedyLabelInPathInputBuilder class _$HttpRequestWithGreedyLabelInPathInputPayload extends HttpRequestWithGreedyLabelInPathInputPayload { - factory _$HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputPayloadBuilder() ..update(updates)) ._build(); @@ -122,9 +139,8 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload @override HttpRequestWithGreedyLabelInPathInputPayload rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputPayloadBuilder toBuilder() => @@ -144,8 +160,10 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload class HttpRequestWithGreedyLabelInPathInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + > { _$HttpRequestWithGreedyLabelInPathInputPayload? _$v; HttpRequestWithGreedyLabelInPathInputPayloadBuilder(); @@ -158,8 +176,8 @@ class HttpRequestWithGreedyLabelInPathInputPayloadBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart index e5881870f0..43fd45c51e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_request_with_labels_and_timestamp_format_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithLabelsAndTimestampFormatInput({ @@ -40,9 +42,9 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput ); } - factory HttpRequestWithLabelsAndTimestampFormatInput.build( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInput; + factory HttpRequestWithLabelsAndTimestampFormatInput.build([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInput; const HttpRequestWithLabelsAndTimestampFormatInput._(); @@ -50,56 +52,63 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput HttpRequestWithLabelsAndTimestampFormatInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsAndTimestampFormatInput.build((b) { - if (labels['memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsAndTimestampFormatInput.build((b) { + if (labels['memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (labels['memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( labels['memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (labels['memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( labels['memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (labels['defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( labels['defaultFormat']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (labels['targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (labels['targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( labels['targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (labels['targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( labels['targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload>> serializers = [ - HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() + _i1.SmithySerializer + > + serializers = [ + HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer(), ]; DateTime get memberEpochSeconds; @@ -113,38 +122,35 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput String labelFor(String key) { switch (key) { case 'memberEpochSeconds': - return _i1.Timestamp(memberEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + memberEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'memberHttpDate': - return _i1.Timestamp(memberHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + memberHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'memberDateTime': - return _i1.Timestamp(memberDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + memberDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'defaultFormat': - return _i1.Timestamp(defaultFormat) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + defaultFormat, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'targetEpochSeconds': - return _i1.Timestamp(targetEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + targetEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'targetHttpDate': - return _i1.Timestamp(targetHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + targetHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'targetDateTime': - return _i1.Timestamp(targetDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + targetDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -153,62 +159,45 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInput') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper( + 'HttpRequestWithLabelsAndTimestampFormatInput', + ) + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; + factory HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; const HttpRequestWithLabelsAndTimestampFormatInputPayload._(); @@ -218,32 +207,32 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInputPayload'); + 'HttpRequestWithLabelsAndTimestampFormatInputPayload', + ); return helper.toString(); } } class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer - extends _i1.StructuredSmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload> { + extends + _i1.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInputPayload + > { const HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override Iterable get types => const [ - HttpRequestWithLabelsAndTimestampFormatInput, - _$HttpRequestWithLabelsAndTimestampFormatInput, - HttpRequestWithLabelsAndTimestampFormatInputPayload, - _$HttpRequestWithLabelsAndTimestampFormatInputPayload, - ]; + HttpRequestWithLabelsAndTimestampFormatInput, + _$HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputPayload, + _$HttpRequestWithLabelsAndTimestampFormatInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInputPayload deserialize( @@ -259,6 +248,5 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer Serializers serializers, HttpRequestWithLabelsAndTimestampFormatInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart index 369c8ce5b1..1aa19a195a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart @@ -23,43 +23,63 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput @override final DateTime targetDateTime; - factory _$HttpRequestWithLabelsAndTimestampFormatInput( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInput([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputBuilder() ..update(updates)) ._build(); - _$HttpRequestWithLabelsAndTimestampFormatInput._( - {required this.memberEpochSeconds, - required this.memberHttpDate, - required this.memberDateTime, - required this.defaultFormat, - required this.targetEpochSeconds, - required this.targetHttpDate, - required this.targetDateTime}) - : super._() { - BuiltValueNullFieldError.checkNotNull(memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(memberHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'); - BuiltValueNullFieldError.checkNotNull(memberDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'); - BuiltValueNullFieldError.checkNotNull(defaultFormat, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'); - BuiltValueNullFieldError.checkNotNull(targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(targetHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'); - BuiltValueNullFieldError.checkNotNull(targetDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime'); + _$HttpRequestWithLabelsAndTimestampFormatInput._({ + required this.memberEpochSeconds, + required this.memberHttpDate, + required this.memberDateTime, + required this.defaultFormat, + required this.targetEpochSeconds, + required this.targetHttpDate, + required this.targetDateTime, + }) : super._() { + BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ); + BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ); + BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ); } @override HttpRequestWithLabelsAndTimestampFormatInput rebuild( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputBuilder toBuilder() => @@ -95,8 +115,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput class HttpRequestWithLabelsAndTimestampFormatInputBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInput? _$v; DateTime? _memberEpochSeconds; @@ -159,8 +181,8 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -168,25 +190,45 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder HttpRequestWithLabelsAndTimestampFormatInput build() => _build(); _$HttpRequestWithLabelsAndTimestampFormatInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsAndTimestampFormatInput._( - memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( - memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'memberEpochSeconds'), - memberHttpDate: BuiltValueNullFieldError.checkNotNull( - memberHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'), - memberDateTime: BuiltValueNullFieldError.checkNotNull( - memberDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'), - defaultFormat: BuiltValueNullFieldError.checkNotNull( - defaultFormat, r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'), - targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( - targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'targetEpochSeconds'), - targetHttpDate: BuiltValueNullFieldError.checkNotNull( - targetHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'), - targetDateTime: BuiltValueNullFieldError.checkNotNull(targetDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime')); + memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ), + memberHttpDate: BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ), + memberDateTime: BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ), + defaultFormat: BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ), + targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ), + targetHttpDate: BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ), + targetDateTime: BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ), + ); replace(_$result); return _$result; } @@ -194,10 +236,10 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder class _$HttpRequestWithLabelsAndTimestampFormatInputPayload extends HttpRequestWithLabelsAndTimestampFormatInputPayload { - factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder() ..update(updates)) ._build(); @@ -206,10 +248,9 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload @override HttpRequestWithLabelsAndTimestampFormatInputPayload rebuild( - void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder toBuilder() => @@ -230,8 +271,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInputPayload? _$v; HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder(); @@ -244,8 +287,9 @@ class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart index cc2e260baa..a4035c4e70 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_request_with_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,9 +42,9 @@ abstract class HttpRequestWithLabelsInput ); } - factory HttpRequestWithLabelsInput.build( - [void Function(HttpRequestWithLabelsInputBuilder) updates]) = - _$HttpRequestWithLabelsInput; + factory HttpRequestWithLabelsInput.build([ + void Function(HttpRequestWithLabelsInputBuilder) updates, + ]) = _$HttpRequestWithLabelsInput; const HttpRequestWithLabelsInput._(); @@ -52,39 +52,39 @@ abstract class HttpRequestWithLabelsInput HttpRequestWithLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsInput.build((b) { - if (labels['string'] != null) { - b.string = labels['string']!; - } - if (labels['short'] != null) { - b.short = int.parse(labels['short']!); - } - if (labels['integer'] != null) { - b.integer = int.parse(labels['integer']!); - } - if (labels['long'] != null) { - b.long = _i3.Int64.parseInt(labels['long']!); - } - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - if (labels['boolean'] != null) { - b.boolean = labels['boolean']! == 'true'; - } - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsInput.build((b) { + if (labels['string'] != null) { + b.string = labels['string']!; + } + if (labels['short'] != null) { + b.short = int.parse(labels['short']!); + } + if (labels['integer'] != null) { + b.integer = int.parse(labels['integer']!); + } + if (labels['long'] != null) { + b.long = _i3.Int64.parseInt(labels['long']!); + } + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + if (labels['boolean'] != null) { + b.boolean = labels['boolean']! == 'true'; + } + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [HttpRequestWithLabelsInputRestJson1Serializer()]; + serializers = [HttpRequestWithLabelsInputRestJson1Serializer()]; String get string; int get short; @@ -116,14 +116,11 @@ abstract class HttpRequestWithLabelsInput case 'boolean': return boolean.toString(); case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -132,66 +129,44 @@ abstract class HttpRequestWithLabelsInput @override List get props => [ - string, - short, - integer, - long, - float, - double_, - boolean, - timestamp, - ]; + string, + short, + integer, + long, + float, + double_, + boolean, + timestamp, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpRequestWithLabelsInput') - ..add( - 'string', - string, - ) - ..add( - 'short', - short, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'long', - long, - ) - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ) - ..add( - 'boolean', - boolean, - ) - ..add( - 'timestamp', - timestamp, - ); + final helper = + newBuiltValueToStringHelper('HttpRequestWithLabelsInput') + ..add('string', string) + ..add('short', short) + ..add('integer', integer) + ..add('long', long) + ..add('float', float) + ..add('double_', double_) + ..add('boolean', boolean) + ..add('timestamp', timestamp); return helper.toString(); } } @_i4.internal abstract class HttpRequestWithLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder) updates]) = - _$HttpRequestWithLabelsInputPayload; + factory HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithLabelsInputPayload; const HttpRequestWithLabelsInputPayload._(); @@ -200,8 +175,9 @@ abstract class HttpRequestWithLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithLabelsInputPayload', + ); return helper.toString(); } } @@ -209,23 +185,20 @@ abstract class HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestJson1Serializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [ - HttpRequestWithLabelsInput, - _$HttpRequestWithLabelsInput, - HttpRequestWithLabelsInputPayload, - _$HttpRequestWithLabelsInputPayload, - ]; + HttpRequestWithLabelsInput, + _$HttpRequestWithLabelsInput, + HttpRequestWithLabelsInputPayload, + _$HttpRequestWithLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsInputPayload deserialize( @@ -241,6 +214,5 @@ class HttpRequestWithLabelsInputRestJson1Serializer Serializers serializers, HttpRequestWithLabelsInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart index b0121ae103..843933b2b9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart @@ -24,42 +24,66 @@ class _$HttpRequestWithLabelsInput extends HttpRequestWithLabelsInput { @override final DateTime timestamp; - factory _$HttpRequestWithLabelsInput( - [void Function(HttpRequestWithLabelsInputBuilder)? updates]) => - (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); - - _$HttpRequestWithLabelsInput._( - {required this.string, - required this.short, - required this.integer, - required this.long, - required this.float, - required this.double_, - required this.boolean, - required this.timestamp}) - : super._() { + factory _$HttpRequestWithLabelsInput([ + void Function(HttpRequestWithLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); + + _$HttpRequestWithLabelsInput._({ + required this.string, + required this.short, + required this.integer, + required this.long, + required this.float, + required this.double_, + required this.boolean, + required this.timestamp, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'); + string, + r'HttpRequestWithLabelsInput', + 'string', + ); BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'); + short, + r'HttpRequestWithLabelsInput', + 'short', + ); BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'); + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ); BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'); + long, + r'HttpRequestWithLabelsInput', + 'long', + ); BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'); + float, + r'HttpRequestWithLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'); + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ); BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'); + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ); BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp'); + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ); } @override HttpRequestWithLabelsInput rebuild( - void Function(HttpRequestWithLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputBuilder toBuilder() => @@ -165,24 +189,50 @@ class HttpRequestWithLabelsInputBuilder HttpRequestWithLabelsInput build() => _build(); _$HttpRequestWithLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsInput._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'), - short: BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'), - integer: BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'), - long: BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'), - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'), - boolean: BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'), - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'HttpRequestWithLabelsInput', + 'string', + ), + short: BuiltValueNullFieldError.checkNotNull( + short, + r'HttpRequestWithLabelsInput', + 'short', + ), + integer: BuiltValueNullFieldError.checkNotNull( + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ), + long: BuiltValueNullFieldError.checkNotNull( + long, + r'HttpRequestWithLabelsInput', + 'long', + ), + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ), + boolean: BuiltValueNullFieldError.checkNotNull( + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ), + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -190,8 +240,9 @@ class HttpRequestWithLabelsInputBuilder class _$HttpRequestWithLabelsInputPayload extends HttpRequestWithLabelsInputPayload { - factory _$HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates]) => + factory _$HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -199,8 +250,8 @@ class _$HttpRequestWithLabelsInputPayload @override HttpRequestWithLabelsInputPayload rebuild( - void Function(HttpRequestWithLabelsInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputPayloadBuilder toBuilder() => @@ -220,8 +271,10 @@ class _$HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + > { _$HttpRequestWithLabelsInputPayload? _$v; HttpRequestWithLabelsInputPayloadBuilder(); @@ -234,7 +287,8 @@ class HttpRequestWithLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart index a274cf40f6..442376a89e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_request_with_regex_literal_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class HttpRequestWithRegexLiteralInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithRegexLiteralInput, + HttpRequestWithRegexLiteralInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithRegexLiteralInput({required String str}) { return _$HttpRequestWithRegexLiteralInput._(str: str); } - factory HttpRequestWithRegexLiteralInput.build( - [void Function(HttpRequestWithRegexLiteralInputBuilder) updates]) = - _$HttpRequestWithRegexLiteralInput; + factory HttpRequestWithRegexLiteralInput.build([ + void Function(HttpRequestWithRegexLiteralInputBuilder) updates, + ]) = _$HttpRequestWithRegexLiteralInput; const HttpRequestWithRegexLiteralInput._(); @@ -34,16 +36,16 @@ abstract class HttpRequestWithRegexLiteralInput HttpRequestWithRegexLiteralInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithRegexLiteralInput.build((b) { - if (labels['str'] != null) { - b.str = labels['str']!; - } - }); + }) => HttpRequestWithRegexLiteralInput.build((b) { + if (labels['str'] != null) { + b.str = labels['str']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithRegexLiteralInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithRegexLiteralInputRestJson1Serializer()]; String get str; @override @@ -52,10 +54,7 @@ abstract class HttpRequestWithRegexLiteralInput case 'str': return str; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -67,27 +66,25 @@ abstract class HttpRequestWithRegexLiteralInput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithRegexLiteralInput') - ..add( - 'str', - str, - ); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithRegexLiteralInput', + )..add('str', str); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithRegexLiteralInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithRegexLiteralInputPayload( - [void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) - updates]) = _$HttpRequestWithRegexLiteralInputPayload; + factory HttpRequestWithRegexLiteralInputPayload([ + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) updates, + ]) = _$HttpRequestWithRegexLiteralInputPayload; const HttpRequestWithRegexLiteralInputPayload._(); @@ -96,32 +93,33 @@ abstract class HttpRequestWithRegexLiteralInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithRegexLiteralInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithRegexLiteralInputPayload', + ); return helper.toString(); } } -class HttpRequestWithRegexLiteralInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithRegexLiteralInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + HttpRequestWithRegexLiteralInputPayload + > { const HttpRequestWithRegexLiteralInputRestJson1Serializer() - : super('HttpRequestWithRegexLiteralInput'); + : super('HttpRequestWithRegexLiteralInput'); @override Iterable get types => const [ - HttpRequestWithRegexLiteralInput, - _$HttpRequestWithRegexLiteralInput, - HttpRequestWithRegexLiteralInputPayload, - _$HttpRequestWithRegexLiteralInputPayload, - ]; + HttpRequestWithRegexLiteralInput, + _$HttpRequestWithRegexLiteralInput, + HttpRequestWithRegexLiteralInputPayload, + _$HttpRequestWithRegexLiteralInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithRegexLiteralInputPayload deserialize( @@ -137,6 +135,5 @@ class HttpRequestWithRegexLiteralInputRestJson1Serializer extends _i1 Serializers serializers, HttpRequestWithRegexLiteralInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart index b915337db2..fbf65cf0c2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart @@ -11,19 +11,23 @@ class _$HttpRequestWithRegexLiteralInput @override final String str; - factory _$HttpRequestWithRegexLiteralInput( - [void Function(HttpRequestWithRegexLiteralInputBuilder)? updates]) => + factory _$HttpRequestWithRegexLiteralInput([ + void Function(HttpRequestWithRegexLiteralInputBuilder)? updates, + ]) => (new HttpRequestWithRegexLiteralInputBuilder()..update(updates))._build(); _$HttpRequestWithRegexLiteralInput._({required this.str}) : super._() { BuiltValueNullFieldError.checkNotNull( - str, r'HttpRequestWithRegexLiteralInput', 'str'); + str, + r'HttpRequestWithRegexLiteralInput', + 'str', + ); } @override HttpRequestWithRegexLiteralInput rebuild( - void Function(HttpRequestWithRegexLiteralInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithRegexLiteralInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithRegexLiteralInputBuilder toBuilder() => @@ -46,8 +50,10 @@ class _$HttpRequestWithRegexLiteralInput class HttpRequestWithRegexLiteralInputBuilder implements - Builder { + Builder< + HttpRequestWithRegexLiteralInput, + HttpRequestWithRegexLiteralInputBuilder + > { _$HttpRequestWithRegexLiteralInput? _$v; String? _str; @@ -80,10 +86,15 @@ class HttpRequestWithRegexLiteralInputBuilder HttpRequestWithRegexLiteralInput build() => _build(); _$HttpRequestWithRegexLiteralInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithRegexLiteralInput._( - str: BuiltValueNullFieldError.checkNotNull( - str, r'HttpRequestWithRegexLiteralInput', 'str')); + str: BuiltValueNullFieldError.checkNotNull( + str, + r'HttpRequestWithRegexLiteralInput', + 'str', + ), + ); replace(_$result); return _$result; } @@ -91,9 +102,9 @@ class HttpRequestWithRegexLiteralInputBuilder class _$HttpRequestWithRegexLiteralInputPayload extends HttpRequestWithRegexLiteralInputPayload { - factory _$HttpRequestWithRegexLiteralInputPayload( - [void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithRegexLiteralInputPayload([ + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithRegexLiteralInputPayloadBuilder()..update(updates)) ._build(); @@ -101,9 +112,8 @@ class _$HttpRequestWithRegexLiteralInputPayload @override HttpRequestWithRegexLiteralInputPayload rebuild( - void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithRegexLiteralInputPayloadBuilder toBuilder() => @@ -123,8 +133,10 @@ class _$HttpRequestWithRegexLiteralInputPayload class HttpRequestWithRegexLiteralInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInputPayloadBuilder + > { _$HttpRequestWithRegexLiteralInputPayload? _$v; HttpRequestWithRegexLiteralInputPayloadBuilder(); @@ -137,7 +149,8 @@ class HttpRequestWithRegexLiteralInputPayloadBuilder @override void update( - void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? updates) { + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart index e68851d96e..200b661054 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.http_response_code_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class HttpResponseCodeOutput return _$HttpResponseCodeOutput._(status: status); } - factory HttpResponseCodeOutput.build( - [void Function(HttpResponseCodeOutputBuilder) updates]) = - _$HttpResponseCodeOutput; + factory HttpResponseCodeOutput.build([ + void Function(HttpResponseCodeOutputBuilder) updates, + ]) = _$HttpResponseCodeOutput; const HttpResponseCodeOutput._(); @@ -31,13 +31,12 @@ abstract class HttpResponseCodeOutput factory HttpResponseCodeOutput.fromResponse( HttpResponseCodeOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.build((b) { - b.status = response.statusCode; - }); + ) => HttpResponseCodeOutput.build((b) { + b.status = response.statusCode; + }); static const List<_i2.SmithySerializer> - serializers = [HttpResponseCodeOutputRestJson1Serializer()]; + serializers = [HttpResponseCodeOutputRestJson1Serializer()]; int? get status; @override @@ -49,25 +48,23 @@ abstract class HttpResponseCodeOutput @override String toString() { final helper = newBuiltValueToStringHelper('HttpResponseCodeOutput') - ..add( - 'status', - status, - ); + ..add('status', status); return helper.toString(); } } @_i3.internal abstract class HttpResponseCodeOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder) updates]) = - _$HttpResponseCodeOutputPayload; + factory HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ]) = _$HttpResponseCodeOutputPayload; const HttpResponseCodeOutputPayload._(); @@ -84,23 +81,20 @@ abstract class HttpResponseCodeOutputPayload class HttpResponseCodeOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const HttpResponseCodeOutputRestJson1Serializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [ - HttpResponseCodeOutput, - _$HttpResponseCodeOutput, - HttpResponseCodeOutputPayload, - _$HttpResponseCodeOutputPayload, - ]; + HttpResponseCodeOutput, + _$HttpResponseCodeOutput, + HttpResponseCodeOutputPayload, + _$HttpResponseCodeOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpResponseCodeOutputPayload deserialize( @@ -116,6 +110,5 @@ class HttpResponseCodeOutputRestJson1Serializer Serializers serializers, HttpResponseCodeOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart index 52c9134fa6..8ce35b317a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart @@ -10,16 +10,16 @@ class _$HttpResponseCodeOutput extends HttpResponseCodeOutput { @override final int? status; - factory _$HttpResponseCodeOutput( - [void Function(HttpResponseCodeOutputBuilder)? updates]) => - (new HttpResponseCodeOutputBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutput([ + void Function(HttpResponseCodeOutputBuilder)? updates, + ]) => (new HttpResponseCodeOutputBuilder()..update(updates))._build(); _$HttpResponseCodeOutput._({this.status}) : super._(); @override HttpResponseCodeOutput rebuild( - void Function(HttpResponseCodeOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputBuilder toBuilder() => @@ -81,16 +81,16 @@ class HttpResponseCodeOutputBuilder } class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { - factory _$HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder)? updates]) => - (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder)? updates, + ]) => (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); _$HttpResponseCodeOutputPayload._() : super._(); @override HttpResponseCodeOutputPayload rebuild( - void Function(HttpResponseCodeOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { class HttpResponseCodeOutputPayloadBuilder implements - Builder { + Builder< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + > { _$HttpResponseCodeOutputPayload? _$v; HttpResponseCodeOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart index 743ecdbcab..792912ea15 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.ignore_query_params_in_response_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignore_query_params_in_response_output.g.dart'; abstract class IgnoreQueryParamsInResponseOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { factory IgnoreQueryParamsInResponseOutput({String? baz}) { return _$IgnoreQueryParamsInResponseOutput._(baz: baz); } - factory IgnoreQueryParamsInResponseOutput.build( - [void Function(IgnoreQueryParamsInResponseOutputBuilder) updates]) = - _$IgnoreQueryParamsInResponseOutput; + factory IgnoreQueryParamsInResponseOutput.build([ + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ]) = _$IgnoreQueryParamsInResponseOutput; const IgnoreQueryParamsInResponseOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoreQueryParamsInResponseOutput factory IgnoreQueryParamsInResponseOutput.fromResponse( IgnoreQueryParamsInResponseOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoreQueryParamsInResponseOutputRestJson1Serializer()]; + serializers = [IgnoreQueryParamsInResponseOutputRestJson1Serializer()]; String? get baz; @override @@ -42,12 +42,9 @@ abstract class IgnoreQueryParamsInResponseOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('IgnoreQueryParamsInResponseOutput') - ..add( - 'baz', - baz, - ); + final helper = newBuiltValueToStringHelper( + 'IgnoreQueryParamsInResponseOutput', + )..add('baz', baz); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestJson1Serializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [ - IgnoreQueryParamsInResponseOutput, - _$IgnoreQueryParamsInResponseOutput, - ]; + IgnoreQueryParamsInResponseOutput, + _$IgnoreQueryParamsInResponseOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -88,10 +82,12 @@ class IgnoreQueryParamsInResponseOutputRestJson1Serializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -109,10 +105,9 @@ class IgnoreQueryParamsInResponseOutputRestJson1Serializer if (baz != null) { result$ ..add('baz') - ..add(serializers.serialize( - baz, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(baz, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart index a893debc6f..c6019441a5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart @@ -11,8 +11,9 @@ class _$IgnoreQueryParamsInResponseOutput @override final String? baz; - factory _$IgnoreQueryParamsInResponseOutput( - [void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates]) => + factory _$IgnoreQueryParamsInResponseOutput([ + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ]) => (new IgnoreQueryParamsInResponseOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$IgnoreQueryParamsInResponseOutput @override IgnoreQueryParamsInResponseOutput rebuild( - void Function(IgnoreQueryParamsInResponseOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoreQueryParamsInResponseOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputBuilder implements - Builder { + Builder< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { _$IgnoreQueryParamsInResponseOutput? _$v; String? _baz; @@ -71,7 +74,8 @@ class IgnoreQueryParamsInResponseOutputBuilder @override void update( - void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates) { + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart index 820a058a8f..bd3290ae18 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.input_and_output_with_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -60,22 +60,24 @@ abstract class InputAndOutputWithHeadersIo headerIntegerList == null ? null : _i4.BuiltList(headerIntegerList), headerBooleanList: headerBooleanList == null ? null : _i4.BuiltList(headerBooleanList), - headerTimestampList: headerTimestampList == null - ? null - : _i4.BuiltList(headerTimestampList), + headerTimestampList: + headerTimestampList == null + ? null + : _i4.BuiltList(headerTimestampList), headerEnum: headerEnum, headerEnumList: headerEnumList == null ? null : _i4.BuiltList(headerEnumList), headerIntegerEnum: headerIntegerEnum, - headerIntegerEnumList: headerIntegerEnumList == null - ? null - : _i4.BuiltList(headerIntegerEnumList), + headerIntegerEnumList: + headerIntegerEnumList == null + ? null + : _i4.BuiltList(headerIntegerEnumList), ); } - factory InputAndOutputWithHeadersIo.build( - [void Function(InputAndOutputWithHeadersIoBuilder) updates]) = - _$InputAndOutputWithHeadersIo; + factory InputAndOutputWithHeadersIo.build([ + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ]) = _$InputAndOutputWithHeadersIo; const InputAndOutputWithHeadersIo._(); @@ -83,168 +85,198 @@ abstract class InputAndOutputWithHeadersIo InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - InputAndOutputWithHeadersIo.build((b) { - if (request.headers['X-String'] != null) { - b.headerString = request.headers['X-String']!; - } - if (request.headers['X-Byte'] != null) { - b.headerByte = int.parse(request.headers['X-Byte']!); - } - if (request.headers['X-Short'] != null) { - b.headerShort = int.parse(request.headers['X-Short']!); - } - if (request.headers['X-Integer'] != null) { - b.headerInteger = int.parse(request.headers['X-Integer']!); - } - if (request.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); - } - if (request.headers['X-Float'] != null) { - b.headerFloat = double.parse(request.headers['X-Float']!); - } - if (request.headers['X-Double'] != null) { - b.headerDouble = double.parse(request.headers['X-Double']!); - } - if (request.headers['X-Boolean1'] != null) { - b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; - } - if (request.headers['X-Boolean2'] != null) { - b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; - } - if (request.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(request.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (request.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(request.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (request.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(request.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(request.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - request.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + }) => InputAndOutputWithHeadersIo.build((b) { + if (request.headers['X-String'] != null) { + b.headerString = request.headers['X-String']!; + } + if (request.headers['X-Byte'] != null) { + b.headerByte = int.parse(request.headers['X-Byte']!); + } + if (request.headers['X-Short'] != null) { + b.headerShort = int.parse(request.headers['X-Short']!); + } + if (request.headers['X-Integer'] != null) { + b.headerInteger = int.parse(request.headers['X-Integer']!); + } + if (request.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); + } + if (request.headers['X-Float'] != null) { + b.headerFloat = double.parse(request.headers['X-Float']!); + } + if (request.headers['X-Double'] != null) { + b.headerDouble = double.parse(request.headers['X-Double']!); + } + if (request.headers['X-Boolean1'] != null) { + b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; + } + if (request.headers['X-Boolean2'] != null) { + b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; + } + if (request.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(request.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (request.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1.parseHeader(request.headers['X-StringSet']!).map((el) => el.trim()), + ); + } + if (request.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(request.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(request.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + request.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); - } - if (request.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(request.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.headers['X-IntegerEnum'] != null) { - b.headerIntegerEnum = int.parse(request.headers['X-IntegerEnum']!); - } - if (request.headers['X-IntegerEnumList'] != null) { - b.headerIntegerEnumList.addAll(_i1 - .parseHeader(request.headers['X-IntegerEnumList']!) - .map((el) => int.parse(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (request.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); + } + if (request.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(request.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.headers['X-IntegerEnum'] != null) { + b.headerIntegerEnum = int.parse(request.headers['X-IntegerEnum']!); + } + if (request.headers['X-IntegerEnumList'] != null) { + b.headerIntegerEnumList.addAll( + _i1 + .parseHeader(request.headers['X-IntegerEnumList']!) + .map((el) => int.parse(el.trim())), + ); + } + }); /// Constructs a [InputAndOutputWithHeadersIo] from a [payload] and [response]. factory InputAndOutputWithHeadersIo.fromResponse( InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.build((b) { - if (response.headers['X-String'] != null) { - b.headerString = response.headers['X-String']!; - } - if (response.headers['X-Byte'] != null) { - b.headerByte = int.parse(response.headers['X-Byte']!); - } - if (response.headers['X-Short'] != null) { - b.headerShort = int.parse(response.headers['X-Short']!); - } - if (response.headers['X-Integer'] != null) { - b.headerInteger = int.parse(response.headers['X-Integer']!); - } - if (response.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); - } - if (response.headers['X-Float'] != null) { - b.headerFloat = double.parse(response.headers['X-Float']!); - } - if (response.headers['X-Double'] != null) { - b.headerDouble = double.parse(response.headers['X-Double']!); - } - if (response.headers['X-Boolean1'] != null) { - b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; - } - if (response.headers['X-Boolean2'] != null) { - b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; - } - if (response.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(response.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (response.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(response.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (response.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(response.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (response.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(response.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (response.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - response.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + ) => InputAndOutputWithHeadersIo.build((b) { + if (response.headers['X-String'] != null) { + b.headerString = response.headers['X-String']!; + } + if (response.headers['X-Byte'] != null) { + b.headerByte = int.parse(response.headers['X-Byte']!); + } + if (response.headers['X-Short'] != null) { + b.headerShort = int.parse(response.headers['X-Short']!); + } + if (response.headers['X-Integer'] != null) { + b.headerInteger = int.parse(response.headers['X-Integer']!); + } + if (response.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); + } + if (response.headers['X-Float'] != null) { + b.headerFloat = double.parse(response.headers['X-Float']!); + } + if (response.headers['X-Double'] != null) { + b.headerDouble = double.parse(response.headers['X-Double']!); + } + if (response.headers['X-Boolean1'] != null) { + b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; + } + if (response.headers['X-Boolean2'] != null) { + b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; + } + if (response.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(response.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1 + .parseHeader(response.headers['X-StringSet']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(response.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (response.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(response.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (response.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + response.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (response.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); - } - if (response.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(response.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (response.headers['X-IntegerEnum'] != null) { - b.headerIntegerEnum = int.parse(response.headers['X-IntegerEnum']!); - } - if (response.headers['X-IntegerEnumList'] != null) { - b.headerIntegerEnumList.addAll(_i1 - .parseHeader(response.headers['X-IntegerEnumList']!) - .map((el) => int.parse(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (response.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); + } + if (response.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(response.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (response.headers['X-IntegerEnum'] != null) { + b.headerIntegerEnum = int.parse(response.headers['X-IntegerEnum']!); + } + if (response.headers['X-IntegerEnumList'] != null) { + b.headerIntegerEnumList.addAll( + _i1 + .parseHeader(response.headers['X-IntegerEnumList']!) + .map((el) => int.parse(el.trim())), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [InputAndOutputWithHeadersIoRestJson1Serializer()]; + serializers = [InputAndOutputWithHeadersIoRestJson1Serializer()]; String? get headerString; int? get headerByte; @@ -270,116 +302,64 @@ abstract class InputAndOutputWithHeadersIo @override List get props => [ - headerString, - headerByte, - headerShort, - headerInteger, - headerLong, - headerFloat, - headerDouble, - headerTrueBool, - headerFalseBool, - headerStringList, - headerStringSet, - headerIntegerList, - headerBooleanList, - headerTimestampList, - headerEnum, - headerEnumList, - headerIntegerEnum, - headerIntegerEnumList, - ]; + headerString, + headerByte, + headerShort, + headerInteger, + headerLong, + headerFloat, + headerDouble, + headerTrueBool, + headerFalseBool, + headerStringList, + headerStringSet, + headerIntegerList, + headerBooleanList, + headerTimestampList, + headerEnum, + headerEnumList, + headerIntegerEnum, + headerIntegerEnumList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') - ..add( - 'headerString', - headerString, - ) - ..add( - 'headerByte', - headerByte, - ) - ..add( - 'headerShort', - headerShort, - ) - ..add( - 'headerInteger', - headerInteger, - ) - ..add( - 'headerLong', - headerLong, - ) - ..add( - 'headerFloat', - headerFloat, - ) - ..add( - 'headerDouble', - headerDouble, - ) - ..add( - 'headerTrueBool', - headerTrueBool, - ) - ..add( - 'headerFalseBool', - headerFalseBool, - ) - ..add( - 'headerStringList', - headerStringList, - ) - ..add( - 'headerStringSet', - headerStringSet, - ) - ..add( - 'headerIntegerList', - headerIntegerList, - ) - ..add( - 'headerBooleanList', - headerBooleanList, - ) - ..add( - 'headerTimestampList', - headerTimestampList, - ) - ..add( - 'headerEnum', - headerEnum, - ) - ..add( - 'headerEnumList', - headerEnumList, - ) - ..add( - 'headerIntegerEnum', - headerIntegerEnum, - ) - ..add( - 'headerIntegerEnumList', - headerIntegerEnumList, - ); + final helper = + newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') + ..add('headerString', headerString) + ..add('headerByte', headerByte) + ..add('headerShort', headerShort) + ..add('headerInteger', headerInteger) + ..add('headerLong', headerLong) + ..add('headerFloat', headerFloat) + ..add('headerDouble', headerDouble) + ..add('headerTrueBool', headerTrueBool) + ..add('headerFalseBool', headerFalseBool) + ..add('headerStringList', headerStringList) + ..add('headerStringSet', headerStringSet) + ..add('headerIntegerList', headerIntegerList) + ..add('headerBooleanList', headerBooleanList) + ..add('headerTimestampList', headerTimestampList) + ..add('headerEnum', headerEnum) + ..add('headerEnumList', headerEnumList) + ..add('headerIntegerEnum', headerIntegerEnum) + ..add('headerIntegerEnumList', headerIntegerEnumList); return helper.toString(); } } @_i5.internal abstract class InputAndOutputWithHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates]) = - _$InputAndOutputWithHeadersIoPayload; + factory InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ]) = _$InputAndOutputWithHeadersIoPayload; const InputAndOutputWithHeadersIoPayload._(); @@ -388,8 +368,9 @@ abstract class InputAndOutputWithHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('InputAndOutputWithHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'InputAndOutputWithHeadersIoPayload', + ); return helper.toString(); } } @@ -397,23 +378,20 @@ abstract class InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoRestJson1Serializer extends _i1.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestJson1Serializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [ - InputAndOutputWithHeadersIo, - _$InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - _$InputAndOutputWithHeadersIoPayload, - ]; + InputAndOutputWithHeadersIo, + _$InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + _$InputAndOutputWithHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InputAndOutputWithHeadersIoPayload deserialize( @@ -429,6 +407,5 @@ class InputAndOutputWithHeadersIoRestJson1Serializer Serializers serializers, InputAndOutputWithHeadersIoPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart index 1927835b15..4898e2893b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart @@ -44,35 +44,35 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { @override final _i4.BuiltList? headerIntegerEnumList; - factory _$InputAndOutputWithHeadersIo( - [void Function(InputAndOutputWithHeadersIoBuilder)? updates]) => - (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); - - _$InputAndOutputWithHeadersIo._( - {this.headerString, - this.headerByte, - this.headerShort, - this.headerInteger, - this.headerLong, - this.headerFloat, - this.headerDouble, - this.headerTrueBool, - this.headerFalseBool, - this.headerStringList, - this.headerStringSet, - this.headerIntegerList, - this.headerBooleanList, - this.headerTimestampList, - this.headerEnum, - this.headerEnumList, - this.headerIntegerEnum, - this.headerIntegerEnumList}) - : super._(); + factory _$InputAndOutputWithHeadersIo([ + void Function(InputAndOutputWithHeadersIoBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); + + _$InputAndOutputWithHeadersIo._({ + this.headerString, + this.headerByte, + this.headerShort, + this.headerInteger, + this.headerLong, + this.headerFloat, + this.headerDouble, + this.headerTrueBool, + this.headerFalseBool, + this.headerStringList, + this.headerStringSet, + this.headerIntegerList, + this.headerBooleanList, + this.headerTimestampList, + this.headerEnum, + this.headerEnumList, + this.headerIntegerEnum, + this.headerIntegerEnumList, + }) : super._(); @override InputAndOutputWithHeadersIo rebuild( - void Function(InputAndOutputWithHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoBuilder toBuilder() => @@ -130,8 +130,10 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { class InputAndOutputWithHeadersIoBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoBuilder + > { _$InputAndOutputWithHeadersIo? _$v; String? _headerString; @@ -269,26 +271,28 @@ class InputAndOutputWithHeadersIoBuilder _$InputAndOutputWithHeadersIo _build() { _$InputAndOutputWithHeadersIo _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InputAndOutputWithHeadersIo._( - headerString: headerString, - headerByte: headerByte, - headerShort: headerShort, - headerInteger: headerInteger, - headerLong: headerLong, - headerFloat: headerFloat, - headerDouble: headerDouble, - headerTrueBool: headerTrueBool, - headerFalseBool: headerFalseBool, - headerStringList: _headerStringList?.build(), - headerStringSet: _headerStringSet?.build(), - headerIntegerList: _headerIntegerList?.build(), - headerBooleanList: _headerBooleanList?.build(), - headerTimestampList: _headerTimestampList?.build(), - headerEnum: headerEnum, - headerEnumList: _headerEnumList?.build(), - headerIntegerEnum: headerIntegerEnum, - headerIntegerEnumList: _headerIntegerEnumList?.build()); + headerString: headerString, + headerByte: headerByte, + headerShort: headerShort, + headerInteger: headerInteger, + headerLong: headerLong, + headerFloat: headerFloat, + headerDouble: headerDouble, + headerTrueBool: headerTrueBool, + headerFalseBool: headerFalseBool, + headerStringList: _headerStringList?.build(), + headerStringSet: _headerStringSet?.build(), + headerIntegerList: _headerIntegerList?.build(), + headerBooleanList: _headerBooleanList?.build(), + headerTimestampList: _headerTimestampList?.build(), + headerEnum: headerEnum, + headerEnumList: _headerEnumList?.build(), + headerIntegerEnum: headerIntegerEnum, + headerIntegerEnumList: _headerIntegerEnumList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -310,7 +314,10 @@ class InputAndOutputWithHeadersIoBuilder _headerIntegerEnumList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InputAndOutputWithHeadersIo', _$failedField, e.toString()); + r'InputAndOutputWithHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -321,9 +328,9 @@ class InputAndOutputWithHeadersIoBuilder class _$InputAndOutputWithHeadersIoPayload extends InputAndOutputWithHeadersIoPayload { - factory _$InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder)? - updates]) => + factory _$InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoPayloadBuilder()..update(updates)) ._build(); @@ -331,8 +338,8 @@ class _$InputAndOutputWithHeadersIoPayload @override InputAndOutputWithHeadersIoPayload rebuild( - void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoPayloadBuilder toBuilder() => @@ -352,8 +359,10 @@ class _$InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoPayloadBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + > { _$InputAndOutputWithHeadersIoPayload? _$v; InputAndOutputWithHeadersIoPayloadBuilder(); @@ -366,7 +375,8 @@ class InputAndOutputWithHeadersIoPayloadBuilder @override void update( - void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates) { + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart index 438862b523..a55f984368 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,22 +32,21 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingRestJson1Serializer() + InvalidGreetingRestJson1Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.restjson', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingRestJson1Serializer const InvalidGreetingRestJson1Serializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidGreeting deserialize( @@ -110,10 +101,12 @@ class InvalidGreetingRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +124,9 @@ class InvalidGreetingRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart index 9bbac9b721..ca222d5e7f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.json_blobs_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class JsonBlobsInputOutput return _$JsonBlobsInputOutput._(data: data); } - factory JsonBlobsInputOutput.build( - [void Function(JsonBlobsInputOutputBuilder) updates]) = - _$JsonBlobsInputOutput; + factory JsonBlobsInputOutput.build([ + void Function(JsonBlobsInputOutputBuilder) updates, + ]) = _$JsonBlobsInputOutput; const JsonBlobsInputOutput._(); @@ -31,18 +31,16 @@ abstract class JsonBlobsInputOutput JsonBlobsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonBlobsInputOutput] from a [payload] and [response]. factory JsonBlobsInputOutput.fromResponse( JsonBlobsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonBlobsInputOutputRestJson1Serializer() + JsonBlobsInputOutputRestJson1Serializer(), ]; _i3.Uint8List? get data; @@ -55,10 +53,7 @@ abstract class JsonBlobsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('JsonBlobsInputOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -66,21 +61,18 @@ abstract class JsonBlobsInputOutput class JsonBlobsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonBlobsInputOutputRestJson1Serializer() - : super('JsonBlobsInputOutput'); + : super('JsonBlobsInputOutput'); @override Iterable get types => const [ - JsonBlobsInputOutput, - _$JsonBlobsInputOutput, - ]; + JsonBlobsInputOutput, + _$JsonBlobsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonBlobsInputOutput deserialize( @@ -99,10 +91,12 @@ class JsonBlobsInputOutputRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } } @@ -120,10 +114,12 @@ class JsonBlobsInputOutputRestJson1Serializer if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart index 443245dbf5..b7d402967f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart @@ -10,16 +10,16 @@ class _$JsonBlobsInputOutput extends JsonBlobsInputOutput { @override final _i3.Uint8List? data; - factory _$JsonBlobsInputOutput( - [void Function(JsonBlobsInputOutputBuilder)? updates]) => - (new JsonBlobsInputOutputBuilder()..update(updates))._build(); + factory _$JsonBlobsInputOutput([ + void Function(JsonBlobsInputOutputBuilder)? updates, + ]) => (new JsonBlobsInputOutputBuilder()..update(updates))._build(); _$JsonBlobsInputOutput._({this.data}) : super._(); @override JsonBlobsInputOutput rebuild( - void Function(JsonBlobsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonBlobsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonBlobsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart index 090ef9db6d..1f79c4a5c6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.json_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class JsonEnumsInputOutput ); } - factory JsonEnumsInputOutput.build( - [void Function(JsonEnumsInputOutputBuilder) updates]) = - _$JsonEnumsInputOutput; + factory JsonEnumsInputOutput.build([ + void Function(JsonEnumsInputOutputBuilder) updates, + ]) = _$JsonEnumsInputOutput; const JsonEnumsInputOutput._(); @@ -45,18 +45,16 @@ abstract class JsonEnumsInputOutput JsonEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonEnumsInputOutput] from a [payload] and [response]. factory JsonEnumsInputOutput.fromResponse( JsonEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonEnumsInputOutputRestJson1Serializer() + JsonEnumsInputOutputRestJson1Serializer(), ]; FooEnum? get fooEnum1; @@ -70,41 +68,24 @@ abstract class JsonEnumsInputOutput @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonEnumsInputOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonEnumsInputOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -112,21 +93,18 @@ abstract class JsonEnumsInputOutput class JsonEnumsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonEnumsInputOutputRestJson1Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [ - JsonEnumsInputOutput, - _$JsonEnumsInputOutput, - ]; + JsonEnumsInputOutput, + _$JsonEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -145,47 +123,57 @@ class JsonEnumsInputOutputRestJson1Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i3.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i3.BuiltMap), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i3.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltSet), + ); } } @@ -205,67 +193,70 @@ class JsonEnumsInputOutputRestJson1Serializer :fooEnum3, :fooEnumList, :fooEnumMap, - :fooEnumSet + :fooEnumSet, ) = object; if (fooEnum1 != null) { result$ ..add('fooEnum1') - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add('fooEnum2') - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add('fooEnum3') - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add('fooEnumList') - ..add(serializers.serialize( - fooEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add('fooEnumMap') - ..add(serializers.serialize( - fooEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + fooEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add('fooEnumSet') - ..add(serializers.serialize( - fooEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart index 8900baa257..38430e2c69 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonEnumsInputOutput extends JsonEnumsInputOutput { @override final _i3.BuiltMap? fooEnumMap; - factory _$JsonEnumsInputOutput( - [void Function(JsonEnumsInputOutputBuilder)? updates]) => - (new JsonEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonEnumsInputOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + factory _$JsonEnumsInputOutput([ + void Function(JsonEnumsInputOutputBuilder)? updates, + ]) => (new JsonEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonEnumsInputOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override JsonEnumsInputOutput rebuild( - void Function(JsonEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class JsonEnumsInputOutputBuilder _$JsonEnumsInputOutput _build() { _$JsonEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonEnumsInputOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class JsonEnumsInputOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonEnumsInputOutput', _$failedField, e.toString()); + r'JsonEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart index 73c78cf0ab..79cc6ab501 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.json_int_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -37,9 +37,9 @@ abstract class JsonIntEnumsInputOutput ); } - factory JsonIntEnumsInputOutput.build( - [void Function(JsonIntEnumsInputOutputBuilder) updates]) = - _$JsonIntEnumsInputOutput; + factory JsonIntEnumsInputOutput.build([ + void Function(JsonIntEnumsInputOutputBuilder) updates, + ]) = _$JsonIntEnumsInputOutput; const JsonIntEnumsInputOutput._(); @@ -47,15 +47,13 @@ abstract class JsonIntEnumsInputOutput JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonIntEnumsInputOutput] from a [payload] and [response]. factory JsonIntEnumsInputOutput.fromResponse( JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [JsonIntEnumsInputOutputRestJson1Serializer()]; @@ -71,41 +69,24 @@ abstract class JsonIntEnumsInputOutput @override List get props => [ - integerEnum1, - integerEnum2, - integerEnum3, - integerEnumList, - integerEnumSet, - integerEnumMap, - ]; + integerEnum1, + integerEnum2, + integerEnum3, + integerEnumList, + integerEnumSet, + integerEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonIntEnumsInputOutput') - ..add( - 'integerEnum1', - integerEnum1, - ) - ..add( - 'integerEnum2', - integerEnum2, - ) - ..add( - 'integerEnum3', - integerEnum3, - ) - ..add( - 'integerEnumList', - integerEnumList, - ) - ..add( - 'integerEnumSet', - integerEnumSet, - ) - ..add( - 'integerEnumMap', - integerEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonIntEnumsInputOutput') + ..add('integerEnum1', integerEnum1) + ..add('integerEnum2', integerEnum2) + ..add('integerEnum3', integerEnum3) + ..add('integerEnumList', integerEnumList) + ..add('integerEnumSet', integerEnumSet) + ..add('integerEnumMap', integerEnumMap); return helper.toString(); } } @@ -113,21 +94,18 @@ abstract class JsonIntEnumsInputOutput class JsonIntEnumsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonIntEnumsInputOutputRestJson1Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [ - JsonIntEnumsInputOutput, - _$JsonIntEnumsInputOutput, - ]; + JsonIntEnumsInputOutput, + _$JsonIntEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -146,47 +124,53 @@ class JsonIntEnumsInputOutputRestJson1Serializer } switch (key) { case 'integerEnum1': - result.integerEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerEnum2': - result.integerEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerEnum3': - result.integerEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerEnumList': - result.integerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.integerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'integerEnumMap': - result.integerEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i3.BuiltMap)); + result.integerEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i3.BuiltMap), + ); case 'integerEnumSet': - result.integerEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(int)], - ), - ) as _i3.BuiltSet)); + result.integerEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [FullType(int)]), + ) + as _i3.BuiltSet), + ); } } @@ -206,67 +190,70 @@ class JsonIntEnumsInputOutputRestJson1Serializer :integerEnum3, :integerEnumList, :integerEnumMap, - :integerEnumSet + :integerEnumSet, ) = object; if (integerEnum1 != null) { result$ ..add('integerEnum1') - ..add(serializers.serialize( - integerEnum1, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerEnum1, + specifiedType: const FullType(int), + ), + ); } if (integerEnum2 != null) { result$ ..add('integerEnum2') - ..add(serializers.serialize( - integerEnum2, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerEnum2, + specifiedType: const FullType(int), + ), + ); } if (integerEnum3 != null) { result$ ..add('integerEnum3') - ..add(serializers.serialize( - integerEnum3, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerEnum3, + specifiedType: const FullType(int), + ), + ); } if (integerEnumList != null) { result$ ..add('integerEnumList') - ..add(serializers.serialize( - integerEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + serializers.serialize( + integerEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (integerEnumMap != null) { result$ ..add('integerEnumMap') - ..add(serializers.serialize( - integerEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + integerEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } if (integerEnumSet != null) { result$ ..add('integerEnumSet') - ..add(serializers.serialize( - integerEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + integerEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(int)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart index 23fc7590c7..77299e6011 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonIntEnumsInputOutput extends JsonIntEnumsInputOutput { @override final _i3.BuiltMap? integerEnumMap; - factory _$JsonIntEnumsInputOutput( - [void Function(JsonIntEnumsInputOutputBuilder)? updates]) => - (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonIntEnumsInputOutput._( - {this.integerEnum1, - this.integerEnum2, - this.integerEnum3, - this.integerEnumList, - this.integerEnumSet, - this.integerEnumMap}) - : super._(); + factory _$JsonIntEnumsInputOutput([ + void Function(JsonIntEnumsInputOutputBuilder)? updates, + ]) => (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonIntEnumsInputOutput._({ + this.integerEnum1, + this.integerEnum2, + this.integerEnum3, + this.integerEnumList, + this.integerEnumSet, + this.integerEnumMap, + }) : super._(); @override JsonIntEnumsInputOutput rebuild( - void Function(JsonIntEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonIntEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonIntEnumsInputOutputBuilder toBuilder() => @@ -136,14 +136,16 @@ class JsonIntEnumsInputOutputBuilder _$JsonIntEnumsInputOutput _build() { _$JsonIntEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonIntEnumsInputOutput._( - integerEnum1: integerEnum1, - integerEnum2: integerEnum2, - integerEnum3: integerEnum3, - integerEnumList: _integerEnumList?.build(), - integerEnumSet: _integerEnumSet?.build(), - integerEnumMap: _integerEnumMap?.build()); + integerEnum1: integerEnum1, + integerEnum2: integerEnum2, + integerEnum3: integerEnum3, + integerEnumList: _integerEnumList?.build(), + integerEnumSet: _integerEnumSet?.build(), + integerEnumMap: _integerEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -155,7 +157,10 @@ class JsonIntEnumsInputOutputBuilder _integerEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonIntEnumsInputOutput', _$failedField, e.toString()); + r'JsonIntEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart index 3cea4fe2f1..ee9d5ff36c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.json_lists_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -41,17 +41,18 @@ abstract class JsonListsInputOutput timestampList == null ? null : _i3.BuiltList(timestampList), enumList: enumList == null ? null : _i3.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i3.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), structureList: structureList == null ? null : _i3.BuiltList(structureList), ); } - factory JsonListsInputOutput.build( - [void Function(JsonListsInputOutputBuilder) updates]) = - _$JsonListsInputOutput; + factory JsonListsInputOutput.build([ + void Function(JsonListsInputOutputBuilder) updates, + ]) = _$JsonListsInputOutput; const JsonListsInputOutput._(); @@ -59,18 +60,16 @@ abstract class JsonListsInputOutput JsonListsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonListsInputOutput] from a [payload] and [response]. factory JsonListsInputOutput.fromResponse( JsonListsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonListsInputOutputRestJson1Serializer() + JsonListsInputOutputRestJson1Serializer(), ]; _i3.BuiltList? get stringList; @@ -90,61 +89,32 @@ abstract class JsonListsInputOutput @override List get props => [ - stringList, - sparseStringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - structureList, - ]; + stringList, + sparseStringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + structureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonListsInputOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'sparseStringList', - sparseStringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'structureList', - structureList, - ); + final helper = + newBuiltValueToStringHelper('JsonListsInputOutput') + ..add('stringList', stringList) + ..add('sparseStringList', sparseStringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('structureList', structureList); return helper.toString(); } } @@ -152,21 +122,18 @@ abstract class JsonListsInputOutput class JsonListsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonListsInputOutputRestJson1Serializer() - : super('JsonListsInputOutput'); + : super('JsonListsInputOutput'); @override Iterable get types => const [ - JsonListsInputOutput, - _$JsonListsInputOutput, - ]; + JsonListsInputOutput, + _$JsonListsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonListsInputOutput deserialize( @@ -185,90 +152,101 @@ class JsonListsInputOutputRestJson1Serializer } switch (key) { case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], - ), - ) as _i3.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(bool), + ]), + ) + as _i3.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i3.BuiltList<_i3.BuiltList>)); + as _i3.BuiltList<_i3.BuiltList>), + ); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], - ), - ) as _i3.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], - ), - ) as _i3.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(String), + ]), + ) + as _i3.BuiltSet), + ); case 'myStructureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i3.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i3.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], - ), - ) as _i3.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i3.BuiltList), + ); } } @@ -292,122 +270,113 @@ class JsonListsInputOutputRestJson1Serializer :stringList, :stringSet, :structureList, - :timestampList + :timestampList, ) = object; if (booleanList != null) { result$ ..add('booleanList') - ..add(serializers.serialize( - booleanList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], + ..add( + serializers.serialize( + booleanList, + specifiedType: const FullType(_i3.BuiltList, [FullType(bool)]), ), - )); + ); } if (enumList != null) { result$ ..add('enumList') - ..add(serializers.serialize( - enumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + serializers.serialize( + enumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (intEnumList != null) { result$ ..add('intEnumList') - ..add(serializers.serialize( - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + serializers.serialize( + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (integerList != null) { result$ ..add('integerList') - ..add(serializers.serialize( - integerList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + serializers.serialize( + integerList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (nestedStringList != null) { result$ ..add('nestedStringList') - ..add(serializers.serialize( - nestedStringList, - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], - ) - ], + ..add( + serializers.serialize( + nestedStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (sparseStringList != null) { result$ ..add('sparseStringList') - ..add(serializers.serialize( - sparseStringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], + ..add( + serializers.serialize( + sparseStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), ), - )); + ); } if (stringList != null) { result$ ..add('stringList') - ..add(serializers.serialize( - stringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + stringList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add('stringSet') - ..add(serializers.serialize( - stringSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], + ..add( + serializers.serialize( + stringSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add('myStructureList') - ..add(serializers.serialize( - structureList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], + ..add( + serializers.serialize( + structureList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } if (timestampList != null) { result$ ..add('timestampList') - ..add(serializers.serialize( - timestampList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], + ..add( + serializers.serialize( + timestampList, + specifiedType: const FullType(_i3.BuiltList, [FullType(DateTime)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart index d3d94f4e15..058b8aead1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart @@ -28,27 +28,27 @@ class _$JsonListsInputOutput extends JsonListsInputOutput { @override final _i3.BuiltList? structureList; - factory _$JsonListsInputOutput( - [void Function(JsonListsInputOutputBuilder)? updates]) => - (new JsonListsInputOutputBuilder()..update(updates))._build(); - - _$JsonListsInputOutput._( - {this.stringList, - this.sparseStringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.structureList}) - : super._(); + factory _$JsonListsInputOutput([ + void Function(JsonListsInputOutputBuilder)? updates, + ]) => (new JsonListsInputOutputBuilder()..update(updates))._build(); + + _$JsonListsInputOutput._({ + this.stringList, + this.sparseStringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.structureList, + }) : super._(); @override JsonListsInputOutput rebuild( - void Function(JsonListsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonListsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonListsInputOutputBuilder toBuilder() => @@ -144,8 +144,8 @@ class JsonListsInputOutputBuilder _i3.ListBuilder<_i3.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i3.ListBuilder<_i3.BuiltList>(); set nestedStringList( - _i3.ListBuilder<_i3.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i3.ListBuilder<_i3.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i3.ListBuilder? _structureList; _i3.ListBuilder get structureList => @@ -190,18 +190,20 @@ class JsonListsInputOutputBuilder _$JsonListsInputOutput _build() { _$JsonListsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonListsInputOutput._( - stringList: _stringList?.build(), - sparseStringList: _sparseStringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - structureList: _structureList?.build()); + stringList: _stringList?.build(), + sparseStringList: _sparseStringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + structureList: _structureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -227,7 +229,10 @@ class JsonListsInputOutputBuilder _structureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonListsInputOutput', _$failedField, e.toString()); + r'JsonListsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart index 8dfb115a6b..2756b0e587 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.json_maps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -53,9 +53,9 @@ abstract class JsonMapsInputOutput ); } - factory JsonMapsInputOutput.build( - [void Function(JsonMapsInputOutputBuilder) updates]) = - _$JsonMapsInputOutput; + factory JsonMapsInputOutput.build([ + void Function(JsonMapsInputOutputBuilder) updates, + ]) = _$JsonMapsInputOutput; const JsonMapsInputOutput._(); @@ -63,18 +63,16 @@ abstract class JsonMapsInputOutput JsonMapsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonMapsInputOutput] from a [payload] and [response]. factory JsonMapsInputOutput.fromResponse( JsonMapsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonMapsInputOutputRestJson1Serializer() + JsonMapsInputOutputRestJson1Serializer(), ]; _i3.BuiltMap? get denseStructMap; @@ -92,61 +90,32 @@ abstract class JsonMapsInputOutput @override List get props => [ - denseStructMap, - sparseStructMap, - denseNumberMap, - denseBooleanMap, - denseStringMap, - sparseNumberMap, - sparseBooleanMap, - sparseStringMap, - denseSetMap, - sparseSetMap, - ]; + denseStructMap, + sparseStructMap, + denseNumberMap, + denseBooleanMap, + denseStringMap, + sparseNumberMap, + sparseBooleanMap, + sparseStringMap, + denseSetMap, + sparseSetMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonMapsInputOutput') - ..add( - 'denseStructMap', - denseStructMap, - ) - ..add( - 'sparseStructMap', - sparseStructMap, - ) - ..add( - 'denseNumberMap', - denseNumberMap, - ) - ..add( - 'denseBooleanMap', - denseBooleanMap, - ) - ..add( - 'denseStringMap', - denseStringMap, - ) - ..add( - 'sparseNumberMap', - sparseNumberMap, - ) - ..add( - 'sparseBooleanMap', - sparseBooleanMap, - ) - ..add( - 'sparseStringMap', - sparseStringMap, - ) - ..add( - 'denseSetMap', - denseSetMap, - ) - ..add( - 'sparseSetMap', - sparseSetMap, - ); + final helper = + newBuiltValueToStringHelper('JsonMapsInputOutput') + ..add('denseStructMap', denseStructMap) + ..add('sparseStructMap', sparseStructMap) + ..add('denseNumberMap', denseNumberMap) + ..add('denseBooleanMap', denseBooleanMap) + ..add('denseStringMap', denseStringMap) + ..add('sparseNumberMap', sparseNumberMap) + ..add('sparseBooleanMap', sparseBooleanMap) + ..add('sparseStringMap', sparseStringMap) + ..add('denseSetMap', denseSetMap) + ..add('sparseSetMap', sparseSetMap); return helper.toString(); } } @@ -157,17 +126,14 @@ class JsonMapsInputOutputRestJson1Serializer @override Iterable get types => const [ - JsonMapsInputOutput, - _$JsonMapsInputOutput, - ]; + JsonMapsInputOutput, + _$JsonMapsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonMapsInputOutput deserialize( @@ -186,115 +152,115 @@ class JsonMapsInputOutputRestJson1Serializer } switch (key) { case 'denseBooleanMap': - result.denseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(bool), - ], - ), - ) as _i3.BuiltMap)); + result.denseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(bool), + ]), + ) + as _i3.BuiltMap), + ); case 'denseNumberMap': - result.denseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i3.BuiltMap)); + result.denseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i3.BuiltMap), + ); case 'denseSetMap': - result.denseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltSetMultimap)); + result.denseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltSetMultimap), + ); case 'denseStringMap': - result.denseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.denseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'denseStructMap': - result.denseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i3.BuiltMap)); + result.denseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseBooleanMap': - result.sparseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(bool), - ], - ), - ) as _i3.BuiltMap)); + result.sparseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(bool), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseNumberMap': - result.sparseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(int), - ], - ), - ) as _i3.BuiltMap)); + result.sparseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(int), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseSetMap': - result.sparseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltSetMultimap)); + result.sparseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltSetMultimap), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i3.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseStructMap': - result.sparseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(GreetingStruct), - ], - ), - ) as _i3.BuiltMap)); + result.sparseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(GreetingStruct), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -318,147 +284,137 @@ class JsonMapsInputOutputRestJson1Serializer :sparseNumberMap, :sparseSetMap, :sparseStringMap, - :sparseStructMap + :sparseStructMap, ) = object; if (denseBooleanMap != null) { result$ ..add('denseBooleanMap') - ..add(serializers.serialize( - denseBooleanMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseBooleanMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(bool), - ], + ]), ), - )); + ); } if (denseNumberMap != null) { result$ ..add('denseNumberMap') - ..add(serializers.serialize( - denseNumberMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseNumberMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } if (denseSetMap != null) { result$ ..add('denseSetMap') - ..add(serializers.serialize( - denseSetMap, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ + ..add( + serializers.serialize( + denseSetMap, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (denseStringMap != null) { result$ ..add('denseStringMap') - ..add(serializers.serialize( - denseStringMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseStringMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (denseStructMap != null) { result$ ..add('denseStructMap') - ..add(serializers.serialize( - denseStructMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseStructMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } if (sparseBooleanMap != null) { result$ ..add('sparseBooleanMap') - ..add(serializers.serialize( - sparseBooleanMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseBooleanMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(bool), - ], + ]), ), - )); + ); } if (sparseNumberMap != null) { result$ ..add('sparseNumberMap') - ..add(serializers.serialize( - sparseNumberMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseNumberMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(int), - ], + ]), ), - )); + ); } if (sparseSetMap != null) { result$ ..add('sparseSetMap') - ..add(serializers.serialize( - sparseSetMap, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ + ..add( + serializers.serialize( + sparseSetMap, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (sparseStringMap != null) { result$ ..add('sparseStringMap') - ..add(serializers.serialize( - sparseStringMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseStringMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(String), - ], + ]), ), - )); + ); } if (sparseStructMap != null) { result$ ..add('sparseStructMap') - ..add(serializers.serialize( - sparseStructMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseStructMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart index ad9d98f11a..3b11acafbd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart @@ -28,27 +28,27 @@ class _$JsonMapsInputOutput extends JsonMapsInputOutput { @override final _i3.BuiltSetMultimap? sparseSetMap; - factory _$JsonMapsInputOutput( - [void Function(JsonMapsInputOutputBuilder)? updates]) => - (new JsonMapsInputOutputBuilder()..update(updates))._build(); - - _$JsonMapsInputOutput._( - {this.denseStructMap, - this.sparseStructMap, - this.denseNumberMap, - this.denseBooleanMap, - this.denseStringMap, - this.sparseNumberMap, - this.sparseBooleanMap, - this.sparseStringMap, - this.denseSetMap, - this.sparseSetMap}) - : super._(); + factory _$JsonMapsInputOutput([ + void Function(JsonMapsInputOutputBuilder)? updates, + ]) => (new JsonMapsInputOutputBuilder()..update(updates))._build(); + + _$JsonMapsInputOutput._({ + this.denseStructMap, + this.sparseStructMap, + this.denseNumberMap, + this.denseBooleanMap, + this.denseStringMap, + this.sparseNumberMap, + this.sparseBooleanMap, + this.sparseStringMap, + this.denseSetMap, + this.sparseSetMap, + }) : super._(); @override JsonMapsInputOutput rebuild( - void Function(JsonMapsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonMapsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonMapsInputOutputBuilder toBuilder() => @@ -102,8 +102,8 @@ class JsonMapsInputOutputBuilder _i3.MapBuilder get sparseStructMap => _$this._sparseStructMap ??= new _i3.MapBuilder(); set sparseStructMap( - _i3.MapBuilder? sparseStructMap) => - _$this._sparseStructMap = sparseStructMap; + _i3.MapBuilder? sparseStructMap, + ) => _$this._sparseStructMap = sparseStructMap; _i3.MapBuilder? _denseNumberMap; _i3.MapBuilder get denseNumberMap => @@ -190,18 +190,20 @@ class JsonMapsInputOutputBuilder _$JsonMapsInputOutput _build() { _$JsonMapsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonMapsInputOutput._( - denseStructMap: _denseStructMap?.build(), - sparseStructMap: _sparseStructMap?.build(), - denseNumberMap: _denseNumberMap?.build(), - denseBooleanMap: _denseBooleanMap?.build(), - denseStringMap: _denseStringMap?.build(), - sparseNumberMap: _sparseNumberMap?.build(), - sparseBooleanMap: _sparseBooleanMap?.build(), - sparseStringMap: _sparseStringMap?.build(), - denseSetMap: _denseSetMap?.build(), - sparseSetMap: _sparseSetMap?.build()); + denseStructMap: _denseStructMap?.build(), + sparseStructMap: _sparseStructMap?.build(), + denseNumberMap: _denseNumberMap?.build(), + denseBooleanMap: _denseBooleanMap?.build(), + denseStringMap: _denseStringMap?.build(), + sparseNumberMap: _sparseNumberMap?.build(), + sparseBooleanMap: _sparseBooleanMap?.build(), + sparseStringMap: _sparseStringMap?.build(), + denseSetMap: _denseSetMap?.build(), + sparseSetMap: _sparseSetMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -227,7 +229,10 @@ class JsonMapsInputOutputBuilder _sparseSetMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonMapsInputOutput', _$failedField, e.toString()); + r'JsonMapsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart index 78a621d93c..e62483074a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.json_timestamps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,9 +36,9 @@ abstract class JsonTimestampsInputOutput ); } - factory JsonTimestampsInputOutput.build( - [void Function(JsonTimestampsInputOutputBuilder) updates]) = - _$JsonTimestampsInputOutput; + factory JsonTimestampsInputOutput.build([ + void Function(JsonTimestampsInputOutputBuilder) updates, + ]) = _$JsonTimestampsInputOutput; const JsonTimestampsInputOutput._(); @@ -46,18 +46,16 @@ abstract class JsonTimestampsInputOutput JsonTimestampsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonTimestampsInputOutput] from a [payload] and [response]. factory JsonTimestampsInputOutput.fromResponse( JsonTimestampsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [JsonTimestampsInputOutputRestJson1Serializer()]; + serializers = [JsonTimestampsInputOutputRestJson1Serializer()]; DateTime? get normal; DateTime? get dateTime; @@ -71,46 +69,26 @@ abstract class JsonTimestampsInputOutput @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonTimestampsInputOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('JsonTimestampsInputOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -118,21 +96,18 @@ abstract class JsonTimestampsInputOutput class JsonTimestampsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonTimestampsInputOutputRestJson1Serializer() - : super('JsonTimestampsInputOutput'); + : super('JsonTimestampsInputOutput'); @override Iterable get types => const [ - JsonTimestampsInputOutput, - _$JsonTimestampsInputOutput, - ]; + JsonTimestampsInputOutput, + _$JsonTimestampsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonTimestampsInputOutput deserialize( @@ -156,39 +131,29 @@ class JsonTimestampsInputOutputRestJson1Serializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i1.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i1.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i1.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i1.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i1.TimestampSerializer.httpDate + .deserialize(serializers, value); case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -209,63 +174,71 @@ class JsonTimestampsInputOutputRestJson1Serializer :epochSecondsOnTarget, :httpDate, :httpDateOnTarget, - :normal + :normal, ) = object; if (dateTime != null) { result$ ..add('dateTime') - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add('dateTimeOnTarget') - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add('epochSeconds') - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add('epochSecondsOnTarget') - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add('httpDate') - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add('httpDateOnTarget') - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } if (normal != null) { result$ ..add('normal') - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart index a10abdcf43..0c5e69b073 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart @@ -22,24 +22,24 @@ class _$JsonTimestampsInputOutput extends JsonTimestampsInputOutput { @override final DateTime? httpDateOnTarget; - factory _$JsonTimestampsInputOutput( - [void Function(JsonTimestampsInputOutputBuilder)? updates]) => - (new JsonTimestampsInputOutputBuilder()..update(updates))._build(); - - _$JsonTimestampsInputOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$JsonTimestampsInputOutput([ + void Function(JsonTimestampsInputOutputBuilder)? updates, + ]) => (new JsonTimestampsInputOutputBuilder()..update(updates))._build(); + + _$JsonTimestampsInputOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override JsonTimestampsInputOutput rebuild( - void Function(JsonTimestampsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonTimestampsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonTimestampsInputOutputBuilder toBuilder() => @@ -142,15 +142,17 @@ class JsonTimestampsInputOutputBuilder JsonTimestampsInputOutput build() => _build(); _$JsonTimestampsInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$JsonTimestampsInputOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart index a1bcc685a2..754546c0d8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_accept_with_generic_string_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'malformed_accept_with_generic_string_output.g.dart'; abstract class MalformedAcceptWithGenericStringOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MalformedAcceptWithGenericStringOutput, + MalformedAcceptWithGenericStringOutputBuilder + >, _i2.HasPayload { factory MalformedAcceptWithGenericStringOutput({String? payload}) { return _$MalformedAcceptWithGenericStringOutput._(payload: payload); } - factory MalformedAcceptWithGenericStringOutput.build( - [void Function(MalformedAcceptWithGenericStringOutputBuilder) - updates]) = _$MalformedAcceptWithGenericStringOutput; + factory MalformedAcceptWithGenericStringOutput.build([ + void Function(MalformedAcceptWithGenericStringOutputBuilder) updates, + ]) = _$MalformedAcceptWithGenericStringOutput; const MalformedAcceptWithGenericStringOutput._(); @@ -31,13 +32,12 @@ abstract class MalformedAcceptWithGenericStringOutput factory MalformedAcceptWithGenericStringOutput.fromResponse( String? payload, _i1.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithGenericStringOutput.build((b) { - b.payload = payload; - }); + ) => MalformedAcceptWithGenericStringOutput.build((b) { + b.payload = payload; + }); static const List<_i2.SmithySerializer> serializers = [ - MalformedAcceptWithGenericStringOutputRestJson1Serializer() + MalformedAcceptWithGenericStringOutputRestJson1Serializer(), ]; String? get payload; @@ -49,12 +49,9 @@ abstract class MalformedAcceptWithGenericStringOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedAcceptWithGenericStringOutput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedAcceptWithGenericStringOutput', + )..add('payload', payload); return helper.toString(); } } @@ -62,21 +59,18 @@ abstract class MalformedAcceptWithGenericStringOutput class MalformedAcceptWithGenericStringOutputRestJson1Serializer extends _i2.PrimitiveSmithySerializer { const MalformedAcceptWithGenericStringOutputRestJson1Serializer() - : super('MalformedAcceptWithGenericStringOutput'); + : super('MalformedAcceptWithGenericStringOutput'); @override Iterable get types => const [ - MalformedAcceptWithGenericStringOutput, - _$MalformedAcceptWithGenericStringOutput, - ]; + MalformedAcceptWithGenericStringOutput, + _$MalformedAcceptWithGenericStringOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override String deserialize( @@ -85,9 +79,10 @@ class MalformedAcceptWithGenericStringOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(String), - ) as String); + serialized, + specifiedType: const FullType(String), + ) + as String); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart index a5a081dec5..26cf8f9fdc 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart @@ -11,9 +11,9 @@ class _$MalformedAcceptWithGenericStringOutput @override final String? payload; - factory _$MalformedAcceptWithGenericStringOutput( - [void Function(MalformedAcceptWithGenericStringOutputBuilder)? - updates]) => + factory _$MalformedAcceptWithGenericStringOutput([ + void Function(MalformedAcceptWithGenericStringOutputBuilder)? updates, + ]) => (new MalformedAcceptWithGenericStringOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$MalformedAcceptWithGenericStringOutput @override MalformedAcceptWithGenericStringOutput rebuild( - void Function(MalformedAcceptWithGenericStringOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedAcceptWithGenericStringOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedAcceptWithGenericStringOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$MalformedAcceptWithGenericStringOutput class MalformedAcceptWithGenericStringOutputBuilder implements - Builder { + Builder< + MalformedAcceptWithGenericStringOutput, + MalformedAcceptWithGenericStringOutputBuilder + > { _$MalformedAcceptWithGenericStringOutput? _$v; String? _payload; @@ -74,7 +75,8 @@ class MalformedAcceptWithGenericStringOutputBuilder @override void update( - void Function(MalformedAcceptWithGenericStringOutputBuilder)? updates) { + void Function(MalformedAcceptWithGenericStringOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart index eb3ecdc47f..0d452ee3e7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_accept_with_payload_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,19 +13,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'malformed_accept_with_payload_output.g.dart'; abstract class MalformedAcceptWithPayloadOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MalformedAcceptWithPayloadOutput, + MalformedAcceptWithPayloadOutputBuilder + >, _i2.HasPayload<_i3.Uint8List> { factory MalformedAcceptWithPayloadOutput({_i3.Uint8List? payload}) { return _$MalformedAcceptWithPayloadOutput._(payload: payload); } - factory MalformedAcceptWithPayloadOutput.build( - [void Function(MalformedAcceptWithPayloadOutputBuilder) updates]) = - _$MalformedAcceptWithPayloadOutput; + factory MalformedAcceptWithPayloadOutput.build([ + void Function(MalformedAcceptWithPayloadOutputBuilder) updates, + ]) = _$MalformedAcceptWithPayloadOutput; const MalformedAcceptWithPayloadOutput._(); @@ -33,13 +34,12 @@ abstract class MalformedAcceptWithPayloadOutput factory MalformedAcceptWithPayloadOutput.fromResponse( _i3.Uint8List? payload, _i1.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithPayloadOutput.build((b) { - b.payload = payload; - }); + ) => MalformedAcceptWithPayloadOutput.build((b) { + b.payload = payload; + }); static const List<_i2.SmithySerializer<_i3.Uint8List?>> serializers = [ - MalformedAcceptWithPayloadOutputRestJson1Serializer() + MalformedAcceptWithPayloadOutputRestJson1Serializer(), ]; _i3.Uint8List? get payload; @@ -51,12 +51,9 @@ abstract class MalformedAcceptWithPayloadOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedAcceptWithPayloadOutput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedAcceptWithPayloadOutput', + )..add('payload', payload); return helper.toString(); } } @@ -64,21 +61,18 @@ abstract class MalformedAcceptWithPayloadOutput class MalformedAcceptWithPayloadOutputRestJson1Serializer extends _i2.PrimitiveSmithySerializer<_i3.Uint8List> { const MalformedAcceptWithPayloadOutputRestJson1Serializer() - : super('MalformedAcceptWithPayloadOutput'); + : super('MalformedAcceptWithPayloadOutput'); @override Iterable get types => const [ - MalformedAcceptWithPayloadOutput, - _$MalformedAcceptWithPayloadOutput, - ]; + MalformedAcceptWithPayloadOutput, + _$MalformedAcceptWithPayloadOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i3.Uint8List deserialize( @@ -87,9 +81,10 @@ class MalformedAcceptWithPayloadOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + serialized, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart index 6fcbd0c8fe..fc5e9f3d2a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart @@ -11,16 +11,17 @@ class _$MalformedAcceptWithPayloadOutput @override final _i3.Uint8List? payload; - factory _$MalformedAcceptWithPayloadOutput( - [void Function(MalformedAcceptWithPayloadOutputBuilder)? updates]) => + factory _$MalformedAcceptWithPayloadOutput([ + void Function(MalformedAcceptWithPayloadOutputBuilder)? updates, + ]) => (new MalformedAcceptWithPayloadOutputBuilder()..update(updates))._build(); _$MalformedAcceptWithPayloadOutput._({this.payload}) : super._(); @override MalformedAcceptWithPayloadOutput rebuild( - void Function(MalformedAcceptWithPayloadOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedAcceptWithPayloadOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedAcceptWithPayloadOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$MalformedAcceptWithPayloadOutput class MalformedAcceptWithPayloadOutputBuilder implements - Builder { + Builder< + MalformedAcceptWithPayloadOutput, + MalformedAcceptWithPayloadOutputBuilder + > { _$MalformedAcceptWithPayloadOutput? _$v; _i3.Uint8List? _payload; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart index 36d6470c8d..9eb453f6c9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_blob_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class MalformedBlobInput return _$MalformedBlobInput._(blob: blob); } - factory MalformedBlobInput.build( - [void Function(MalformedBlobInputBuilder) updates]) = - _$MalformedBlobInput; + factory MalformedBlobInput.build([ + void Function(MalformedBlobInputBuilder) updates, + ]) = _$MalformedBlobInput; const MalformedBlobInput._(); @@ -29,11 +29,10 @@ abstract class MalformedBlobInput MalformedBlobInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedBlobInputRestJson1Serializer() + MalformedBlobInputRestJson1Serializer(), ]; _i3.Uint8List? get blob; @@ -46,10 +45,7 @@ abstract class MalformedBlobInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedBlobInput') - ..add( - 'blob', - blob, - ); + ..add('blob', blob); return helper.toString(); } } @@ -59,18 +55,12 @@ class MalformedBlobInputRestJson1Serializer const MalformedBlobInputRestJson1Serializer() : super('MalformedBlobInput'); @override - Iterable get types => const [ - MalformedBlobInput, - _$MalformedBlobInput, - ]; + Iterable get types => const [MalformedBlobInput, _$MalformedBlobInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedBlobInput deserialize( @@ -89,10 +79,12 @@ class MalformedBlobInputRestJson1Serializer } switch (key) { case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } } @@ -110,10 +102,12 @@ class MalformedBlobInputRestJson1Serializer if (blob != null) { result$ ..add('blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart index 5e8cbd793b..222aa51748 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedBlobInput extends MalformedBlobInput { @override final _i3.Uint8List? blob; - factory _$MalformedBlobInput( - [void Function(MalformedBlobInputBuilder)? updates]) => - (new MalformedBlobInputBuilder()..update(updates))._build(); + factory _$MalformedBlobInput([ + void Function(MalformedBlobInputBuilder)? updates, + ]) => (new MalformedBlobInputBuilder()..update(updates))._build(); _$MalformedBlobInput._({this.blob}) : super._(); @override MalformedBlobInput rebuild( - void Function(MalformedBlobInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedBlobInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedBlobInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart index 6d769233c7..dc741b22ac 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_boolean_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedBooleanInput ); } - factory MalformedBooleanInput.build( - [void Function(MalformedBooleanInputBuilder) updates]) = - _$MalformedBooleanInput; + factory MalformedBooleanInput.build([ + void Function(MalformedBooleanInputBuilder) updates, + ]) = _$MalformedBooleanInput; const MalformedBooleanInput._(); @@ -42,23 +42,21 @@ abstract class MalformedBooleanInput MalformedBooleanInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedBooleanInput.build((b) { - b.booleanInBody = payload.booleanInBody; - if (request.headers['booleanInHeader'] != null) { - b.booleanInHeader = request.headers['booleanInHeader']! == 'true'; - } - if (request.queryParameters['booleanInQuery'] != null) { - b.booleanInQuery = - request.queryParameters['booleanInQuery']! == 'true'; - } - if (labels['booleanInPath'] != null) { - b.booleanInPath = labels['booleanInPath']! == 'true'; - } - }); + }) => MalformedBooleanInput.build((b) { + b.booleanInBody = payload.booleanInBody; + if (request.headers['booleanInHeader'] != null) { + b.booleanInHeader = request.headers['booleanInHeader']! == 'true'; + } + if (request.queryParameters['booleanInQuery'] != null) { + b.booleanInQuery = request.queryParameters['booleanInQuery']! == 'true'; + } + if (labels['booleanInPath'] != null) { + b.booleanInPath = labels['booleanInPath']! == 'true'; + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedBooleanInputRestJson1Serializer()]; + serializers = [MalformedBooleanInputRestJson1Serializer()]; bool? get booleanInBody; bool get booleanInPath; @@ -70,10 +68,7 @@ abstract class MalformedBooleanInput case 'booleanInPath': return booleanInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -84,45 +79,35 @@ abstract class MalformedBooleanInput @override List get props => [ - booleanInBody, - booleanInPath, - booleanInQuery, - booleanInHeader, - ]; + booleanInBody, + booleanInPath, + booleanInQuery, + booleanInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedBooleanInput') - ..add( - 'booleanInBody', - booleanInBody, - ) - ..add( - 'booleanInPath', - booleanInPath, - ) - ..add( - 'booleanInQuery', - booleanInQuery, - ) - ..add( - 'booleanInHeader', - booleanInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedBooleanInput') + ..add('booleanInBody', booleanInBody) + ..add('booleanInPath', booleanInPath) + ..add('booleanInQuery', booleanInQuery) + ..add('booleanInHeader', booleanInHeader); return helper.toString(); } } @_i3.internal abstract class MalformedBooleanInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory MalformedBooleanInputPayload( - [void Function(MalformedBooleanInputPayloadBuilder) updates]) = - _$MalformedBooleanInputPayload; + Built< + MalformedBooleanInputPayload, + MalformedBooleanInputPayloadBuilder + > { + factory MalformedBooleanInputPayload([ + void Function(MalformedBooleanInputPayloadBuilder) updates, + ]) = _$MalformedBooleanInputPayload; const MalformedBooleanInputPayload._(); @@ -133,10 +118,7 @@ abstract class MalformedBooleanInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedBooleanInputPayload') - ..add( - 'booleanInBody', - booleanInBody, - ); + ..add('booleanInBody', booleanInBody); return helper.toString(); } } @@ -144,23 +126,20 @@ abstract class MalformedBooleanInputPayload class MalformedBooleanInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedBooleanInputRestJson1Serializer() - : super('MalformedBooleanInput'); + : super('MalformedBooleanInput'); @override Iterable get types => const [ - MalformedBooleanInput, - _$MalformedBooleanInput, - MalformedBooleanInputPayload, - _$MalformedBooleanInputPayload, - ]; + MalformedBooleanInput, + _$MalformedBooleanInput, + MalformedBooleanInputPayload, + _$MalformedBooleanInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedBooleanInputPayload deserialize( @@ -179,10 +158,12 @@ class MalformedBooleanInputRestJson1Serializer } switch (key) { case 'booleanInBody': - result.booleanInBody = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.booleanInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -200,10 +181,12 @@ class MalformedBooleanInputRestJson1Serializer if (booleanInBody != null) { result$ ..add('booleanInBody') - ..add(serializers.serialize( - booleanInBody, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + booleanInBody, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart index 71dee91ff7..9ab3976959 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedBooleanInput extends MalformedBooleanInput { @override final bool? booleanInHeader; - factory _$MalformedBooleanInput( - [void Function(MalformedBooleanInputBuilder)? updates]) => - (new MalformedBooleanInputBuilder()..update(updates))._build(); - - _$MalformedBooleanInput._( - {this.booleanInBody, - required this.booleanInPath, - this.booleanInQuery, - this.booleanInHeader}) - : super._() { + factory _$MalformedBooleanInput([ + void Function(MalformedBooleanInputBuilder)? updates, + ]) => (new MalformedBooleanInputBuilder()..update(updates))._build(); + + _$MalformedBooleanInput._({ + this.booleanInBody, + required this.booleanInPath, + this.booleanInQuery, + this.booleanInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - booleanInPath, r'MalformedBooleanInput', 'booleanInPath'); + booleanInPath, + r'MalformedBooleanInput', + 'booleanInPath', + ); } @override MalformedBooleanInput rebuild( - void Function(MalformedBooleanInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedBooleanInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedBooleanInputBuilder toBuilder() => @@ -114,13 +117,18 @@ class MalformedBooleanInputBuilder MalformedBooleanInput build() => _build(); _$MalformedBooleanInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedBooleanInput._( - booleanInBody: booleanInBody, - booleanInPath: BuiltValueNullFieldError.checkNotNull( - booleanInPath, r'MalformedBooleanInput', 'booleanInPath'), - booleanInQuery: booleanInQuery, - booleanInHeader: booleanInHeader); + booleanInBody: booleanInBody, + booleanInPath: BuiltValueNullFieldError.checkNotNull( + booleanInPath, + r'MalformedBooleanInput', + 'booleanInPath', + ), + booleanInQuery: booleanInQuery, + booleanInHeader: booleanInHeader, + ); replace(_$result); return _$result; } @@ -130,16 +138,16 @@ class _$MalformedBooleanInputPayload extends MalformedBooleanInputPayload { @override final bool? booleanInBody; - factory _$MalformedBooleanInputPayload( - [void Function(MalformedBooleanInputPayloadBuilder)? updates]) => - (new MalformedBooleanInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedBooleanInputPayload([ + void Function(MalformedBooleanInputPayloadBuilder)? updates, + ]) => (new MalformedBooleanInputPayloadBuilder()..update(updates))._build(); _$MalformedBooleanInputPayload._({this.booleanInBody}) : super._(); @override MalformedBooleanInputPayload rebuild( - void Function(MalformedBooleanInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedBooleanInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedBooleanInputPayloadBuilder toBuilder() => @@ -163,8 +171,10 @@ class _$MalformedBooleanInputPayload extends MalformedBooleanInputPayload { class MalformedBooleanInputPayloadBuilder implements - Builder { + Builder< + MalformedBooleanInputPayload, + MalformedBooleanInputPayloadBuilder + > { _$MalformedBooleanInputPayload? _$v; bool? _booleanInBody; @@ -198,7 +208,8 @@ class MalformedBooleanInputPayloadBuilder MalformedBooleanInputPayload build() => _build(); _$MalformedBooleanInputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedBooleanInputPayload._(booleanInBody: booleanInBody); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart index a427a9a24d..90e89fd229 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_byte_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedByteInput ); } - factory MalformedByteInput.build( - [void Function(MalformedByteInputBuilder) updates]) = - _$MalformedByteInput; + factory MalformedByteInput.build([ + void Function(MalformedByteInputBuilder) updates, + ]) = _$MalformedByteInput; const MalformedByteInput._(); @@ -42,22 +42,21 @@ abstract class MalformedByteInput MalformedByteInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedByteInput.build((b) { - b.byteInBody = payload.byteInBody; - if (request.headers['byteInHeader'] != null) { - b.byteInHeader = int.parse(request.headers['byteInHeader']!); - } - if (request.queryParameters['byteInQuery'] != null) { - b.byteInQuery = int.parse(request.queryParameters['byteInQuery']!); - } - if (labels['byteInPath'] != null) { - b.byteInPath = int.parse(labels['byteInPath']!); - } - }); + }) => MalformedByteInput.build((b) { + b.byteInBody = payload.byteInBody; + if (request.headers['byteInHeader'] != null) { + b.byteInHeader = int.parse(request.headers['byteInHeader']!); + } + if (request.queryParameters['byteInQuery'] != null) { + b.byteInQuery = int.parse(request.queryParameters['byteInQuery']!); + } + if (labels['byteInPath'] != null) { + b.byteInPath = int.parse(labels['byteInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedByteInputRestJson1Serializer()]; + serializers = [MalformedByteInputRestJson1Serializer()]; int? get byteInBody; int get byteInPath; @@ -69,44 +68,30 @@ abstract class MalformedByteInput case 'byteInPath': return byteInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedByteInputPayload getPayload() => MalformedByteInputPayload((b) { - b.byteInBody = byteInBody; - }); + b.byteInBody = byteInBody; + }); @override List get props => [ - byteInBody, - byteInPath, - byteInQuery, - byteInHeader, - ]; + byteInBody, + byteInPath, + byteInQuery, + byteInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedByteInput') - ..add( - 'byteInBody', - byteInBody, - ) - ..add( - 'byteInPath', - byteInPath, - ) - ..add( - 'byteInQuery', - byteInQuery, - ) - ..add( - 'byteInHeader', - byteInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedByteInput') + ..add('byteInBody', byteInBody) + ..add('byteInPath', byteInPath) + ..add('byteInQuery', byteInQuery) + ..add('byteInHeader', byteInHeader); return helper.toString(); } } @@ -116,9 +101,9 @@ abstract class MalformedByteInputPayload with _i2.AWSEquatable implements Built { - factory MalformedByteInputPayload( - [void Function(MalformedByteInputPayloadBuilder) updates]) = - _$MalformedByteInputPayload; + factory MalformedByteInputPayload([ + void Function(MalformedByteInputPayloadBuilder) updates, + ]) = _$MalformedByteInputPayload; const MalformedByteInputPayload._(); @@ -129,10 +114,7 @@ abstract class MalformedByteInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedByteInputPayload') - ..add( - 'byteInBody', - byteInBody, - ); + ..add('byteInBody', byteInBody); return helper.toString(); } } @@ -143,19 +125,16 @@ class MalformedByteInputRestJson1Serializer @override Iterable get types => const [ - MalformedByteInput, - _$MalformedByteInput, - MalformedByteInputPayload, - _$MalformedByteInputPayload, - ]; + MalformedByteInput, + _$MalformedByteInput, + MalformedByteInputPayload, + _$MalformedByteInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedByteInputPayload deserialize( @@ -174,10 +153,12 @@ class MalformedByteInputRestJson1Serializer } switch (key) { case 'byteInBody': - result.byteInBody = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -195,10 +176,9 @@ class MalformedByteInputRestJson1Serializer if (byteInBody != null) { result$ ..add('byteInBody') - ..add(serializers.serialize( - byteInBody, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteInBody, specifiedType: const FullType(int)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart index 097c576260..7afbaa2f43 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedByteInput extends MalformedByteInput { @override final int? byteInHeader; - factory _$MalformedByteInput( - [void Function(MalformedByteInputBuilder)? updates]) => - (new MalformedByteInputBuilder()..update(updates))._build(); - - _$MalformedByteInput._( - {this.byteInBody, - required this.byteInPath, - this.byteInQuery, - this.byteInHeader}) - : super._() { + factory _$MalformedByteInput([ + void Function(MalformedByteInputBuilder)? updates, + ]) => (new MalformedByteInputBuilder()..update(updates))._build(); + + _$MalformedByteInput._({ + this.byteInBody, + required this.byteInPath, + this.byteInQuery, + this.byteInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - byteInPath, r'MalformedByteInput', 'byteInPath'); + byteInPath, + r'MalformedByteInput', + 'byteInPath', + ); } @override MalformedByteInput rebuild( - void Function(MalformedByteInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedByteInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedByteInputBuilder toBuilder() => @@ -110,13 +113,18 @@ class MalformedByteInputBuilder MalformedByteInput build() => _build(); _$MalformedByteInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedByteInput._( - byteInBody: byteInBody, - byteInPath: BuiltValueNullFieldError.checkNotNull( - byteInPath, r'MalformedByteInput', 'byteInPath'), - byteInQuery: byteInQuery, - byteInHeader: byteInHeader); + byteInBody: byteInBody, + byteInPath: BuiltValueNullFieldError.checkNotNull( + byteInPath, + r'MalformedByteInput', + 'byteInPath', + ), + byteInQuery: byteInQuery, + byteInHeader: byteInHeader, + ); replace(_$result); return _$result; } @@ -126,16 +134,16 @@ class _$MalformedByteInputPayload extends MalformedByteInputPayload { @override final int? byteInBody; - factory _$MalformedByteInputPayload( - [void Function(MalformedByteInputPayloadBuilder)? updates]) => - (new MalformedByteInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedByteInputPayload([ + void Function(MalformedByteInputPayloadBuilder)? updates, + ]) => (new MalformedByteInputPayloadBuilder()..update(updates))._build(); _$MalformedByteInputPayload._({this.byteInBody}) : super._(); @override MalformedByteInputPayload rebuild( - void Function(MalformedByteInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedByteInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedByteInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart index 4ed829efbc..62563b63e9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_content_type_with_generic_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class MalformedContentTypeWithGenericStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithGenericStringInput, + MalformedContentTypeWithGenericStringInputBuilder + >, _i1.HasPayload { factory MalformedContentTypeWithGenericStringInput({String? payload}) { return _$MalformedContentTypeWithGenericStringInput._(payload: payload); } - factory MalformedContentTypeWithGenericStringInput.build( - [void Function(MalformedContentTypeWithGenericStringInputBuilder) - updates]) = _$MalformedContentTypeWithGenericStringInput; + factory MalformedContentTypeWithGenericStringInput.build([ + void Function(MalformedContentTypeWithGenericStringInputBuilder) updates, + ]) = _$MalformedContentTypeWithGenericStringInput; const MalformedContentTypeWithGenericStringInput._(); @@ -32,13 +34,12 @@ abstract class MalformedContentTypeWithGenericStringInput String? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedContentTypeWithGenericStringInput.build((b) { - b.payload = payload; - }); + }) => MalformedContentTypeWithGenericStringInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer> serializers = [ - MalformedContentTypeWithGenericStringInputRestJson1Serializer() + MalformedContentTypeWithGenericStringInputRestJson1Serializer(), ]; String? get payload; @@ -51,11 +52,8 @@ abstract class MalformedContentTypeWithGenericStringInput @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedContentTypeWithGenericStringInput') - ..add( - 'payload', - payload, - ); + 'MalformedContentTypeWithGenericStringInput', + )..add('payload', payload); return helper.toString(); } } @@ -63,21 +61,18 @@ abstract class MalformedContentTypeWithGenericStringInput class MalformedContentTypeWithGenericStringInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const MalformedContentTypeWithGenericStringInputRestJson1Serializer() - : super('MalformedContentTypeWithGenericStringInput'); + : super('MalformedContentTypeWithGenericStringInput'); @override Iterable get types => const [ - MalformedContentTypeWithGenericStringInput, - _$MalformedContentTypeWithGenericStringInput, - ]; + MalformedContentTypeWithGenericStringInput, + _$MalformedContentTypeWithGenericStringInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override String deserialize( @@ -86,9 +81,10 @@ class MalformedContentTypeWithGenericStringInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(String), - ) as String); + serialized, + specifiedType: const FullType(String), + ) + as String); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart index c9c6a0133c..b310e30c41 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart @@ -11,9 +11,9 @@ class _$MalformedContentTypeWithGenericStringInput @override final String? payload; - factory _$MalformedContentTypeWithGenericStringInput( - [void Function(MalformedContentTypeWithGenericStringInputBuilder)? - updates]) => + factory _$MalformedContentTypeWithGenericStringInput([ + void Function(MalformedContentTypeWithGenericStringInputBuilder)? updates, + ]) => (new MalformedContentTypeWithGenericStringInputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$MalformedContentTypeWithGenericStringInput @override MalformedContentTypeWithGenericStringInput rebuild( - void Function(MalformedContentTypeWithGenericStringInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithGenericStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithGenericStringInputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$MalformedContentTypeWithGenericStringInput class MalformedContentTypeWithGenericStringInputBuilder implements - Builder { + Builder< + MalformedContentTypeWithGenericStringInput, + MalformedContentTypeWithGenericStringInputBuilder + > { _$MalformedContentTypeWithGenericStringInput? _$v; String? _payload; @@ -74,8 +75,8 @@ class MalformedContentTypeWithGenericStringInputBuilder @override void update( - void Function(MalformedContentTypeWithGenericStringInputBuilder)? - updates) { + void Function(MalformedContentTypeWithGenericStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -83,7 +84,8 @@ class MalformedContentTypeWithGenericStringInputBuilder MalformedContentTypeWithGenericStringInput build() => _build(); _$MalformedContentTypeWithGenericStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedContentTypeWithGenericStringInput._(payload: payload); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart index 734d9c37f3..9f36c4c41f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_content_type_with_payload_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,16 +17,18 @@ abstract class MalformedContentTypeWithPayloadInput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithPayloadInput, + MalformedContentTypeWithPayloadInputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory MalformedContentTypeWithPayloadInput({_i2.Uint8List? payload}) { return _$MalformedContentTypeWithPayloadInput._(payload: payload); } - factory MalformedContentTypeWithPayloadInput.build( - [void Function(MalformedContentTypeWithPayloadInputBuilder) - updates]) = _$MalformedContentTypeWithPayloadInput; + factory MalformedContentTypeWithPayloadInput.build([ + void Function(MalformedContentTypeWithPayloadInputBuilder) updates, + ]) = _$MalformedContentTypeWithPayloadInput; const MalformedContentTypeWithPayloadInput._(); @@ -34,13 +36,12 @@ abstract class MalformedContentTypeWithPayloadInput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedContentTypeWithPayloadInput.build((b) { - b.payload = payload; - }); + }) => MalformedContentTypeWithPayloadInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - MalformedContentTypeWithPayloadInputRestJson1Serializer() + MalformedContentTypeWithPayloadInputRestJson1Serializer(), ]; _i2.Uint8List? get payload; @@ -52,12 +53,9 @@ abstract class MalformedContentTypeWithPayloadInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedContentTypeWithPayloadInput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedContentTypeWithPayloadInput', + )..add('payload', payload); return helper.toString(); } } @@ -65,21 +63,18 @@ abstract class MalformedContentTypeWithPayloadInput class MalformedContentTypeWithPayloadInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const MalformedContentTypeWithPayloadInputRestJson1Serializer() - : super('MalformedContentTypeWithPayloadInput'); + : super('MalformedContentTypeWithPayloadInput'); @override Iterable get types => const [ - MalformedContentTypeWithPayloadInput, - _$MalformedContentTypeWithPayloadInput, - ]; + MalformedContentTypeWithPayloadInput, + _$MalformedContentTypeWithPayloadInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -88,9 +83,10 @@ class MalformedContentTypeWithPayloadInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart index cfc5edf4a4..d5f20d4066 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart @@ -11,9 +11,9 @@ class _$MalformedContentTypeWithPayloadInput @override final _i2.Uint8List? payload; - factory _$MalformedContentTypeWithPayloadInput( - [void Function(MalformedContentTypeWithPayloadInputBuilder)? - updates]) => + factory _$MalformedContentTypeWithPayloadInput([ + void Function(MalformedContentTypeWithPayloadInputBuilder)? updates, + ]) => (new MalformedContentTypeWithPayloadInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$MalformedContentTypeWithPayloadInput @override MalformedContentTypeWithPayloadInput rebuild( - void Function(MalformedContentTypeWithPayloadInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithPayloadInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithPayloadInputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$MalformedContentTypeWithPayloadInput class MalformedContentTypeWithPayloadInputBuilder implements - Builder { + Builder< + MalformedContentTypeWithPayloadInput, + MalformedContentTypeWithPayloadInputBuilder + > { _$MalformedContentTypeWithPayloadInput? _$v; _i2.Uint8List? _payload; @@ -73,7 +75,8 @@ class MalformedContentTypeWithPayloadInputBuilder @override void update( - void Function(MalformedContentTypeWithPayloadInputBuilder)? updates) { + void Function(MalformedContentTypeWithPayloadInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart index aa82d4febc..a51998cf51 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_content_type_without_body_empty_input_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithoutBodyEmptyInputInput, + MalformedContentTypeWithoutBodyEmptyInputInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedContentTypeWithoutBodyEmptyInputInput({String? header}) { return _$MalformedContentTypeWithoutBodyEmptyInputInput._(header: header); } - factory MalformedContentTypeWithoutBodyEmptyInputInput.build( - [void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) - updates]) = _$MalformedContentTypeWithoutBodyEmptyInputInput; + factory MalformedContentTypeWithoutBodyEmptyInputInput.build([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) + updates, + ]) = _$MalformedContentTypeWithoutBodyEmptyInputInput; const MalformedContentTypeWithoutBodyEmptyInputInput._(); @@ -34,18 +37,17 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInput MalformedContentTypeWithoutBodyEmptyInputInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedContentTypeWithoutBodyEmptyInputInput.build((b) { - if (request.headers['header'] != null) { - b.header = request.headers['header']!; - } - }); + }) => MalformedContentTypeWithoutBodyEmptyInputInput.build((b) { + if (request.headers['header'] != null) { + b.header = request.headers['header']!; + } + }); static const List< - _i1.SmithySerializer< - MalformedContentTypeWithoutBodyEmptyInputInputPayload>> - serializers = [ - MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer() + _i1.SmithySerializer + > + serializers = [ + MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer(), ]; String? get header; @@ -59,27 +61,25 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInput @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedContentTypeWithoutBodyEmptyInputInput') - ..add( - 'header', - header, - ); + 'MalformedContentTypeWithoutBodyEmptyInputInput', + )..add('header', header); return helper.toString(); } } @_i3.internal abstract class MalformedContentTypeWithoutBodyEmptyInputInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedContentTypeWithoutBodyEmptyInputInputPayload( - [void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) - updates]) = _$MalformedContentTypeWithoutBodyEmptyInputInputPayload; + factory MalformedContentTypeWithoutBodyEmptyInputInputPayload([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) + updates, + ]) = _$MalformedContentTypeWithoutBodyEmptyInputInputPayload; const MalformedContentTypeWithoutBodyEmptyInputInputPayload._(); @@ -89,32 +89,32 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedContentTypeWithoutBodyEmptyInputInputPayload'); + 'MalformedContentTypeWithoutBodyEmptyInputInputPayload', + ); return helper.toString(); } } class MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer - extends _i1.StructuredSmithySerializer< - MalformedContentTypeWithoutBodyEmptyInputInputPayload> { + extends + _i1.StructuredSmithySerializer< + MalformedContentTypeWithoutBodyEmptyInputInputPayload + > { const MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer() - : super('MalformedContentTypeWithoutBodyEmptyInputInput'); + : super('MalformedContentTypeWithoutBodyEmptyInputInput'); @override Iterable get types => const [ - MalformedContentTypeWithoutBodyEmptyInputInput, - _$MalformedContentTypeWithoutBodyEmptyInputInput, - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - _$MalformedContentTypeWithoutBodyEmptyInputInputPayload, - ]; + MalformedContentTypeWithoutBodyEmptyInputInput, + _$MalformedContentTypeWithoutBodyEmptyInputInput, + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + _$MalformedContentTypeWithoutBodyEmptyInputInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedContentTypeWithoutBodyEmptyInputInputPayload deserialize( @@ -131,6 +131,5 @@ class MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer Serializers serializers, MalformedContentTypeWithoutBodyEmptyInputInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart index faa53e5f9c..fdb9890565 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart @@ -11,9 +11,10 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInput @override final String? header; - factory _$MalformedContentTypeWithoutBodyEmptyInputInput( - [void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? - updates]) => + factory _$MalformedContentTypeWithoutBodyEmptyInputInput([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? + updates, + ]) => (new MalformedContentTypeWithoutBodyEmptyInputInputBuilder() ..update(updates)) ._build(); @@ -22,9 +23,9 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInput @override MalformedContentTypeWithoutBodyEmptyInputInput rebuild( - void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithoutBodyEmptyInputInputBuilder toBuilder() => @@ -49,8 +50,10 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInput class MalformedContentTypeWithoutBodyEmptyInputInputBuilder implements - Builder { + Builder< + MalformedContentTypeWithoutBodyEmptyInputInput, + MalformedContentTypeWithoutBodyEmptyInputInputBuilder + > { _$MalformedContentTypeWithoutBodyEmptyInputInput? _$v; String? _header; @@ -76,8 +79,9 @@ class MalformedContentTypeWithoutBodyEmptyInputInputBuilder @override void update( - void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? - updates) { + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? + updates, + ) { if (updates != null) updates(this); } @@ -85,7 +89,8 @@ class MalformedContentTypeWithoutBodyEmptyInputInputBuilder MalformedContentTypeWithoutBodyEmptyInputInput build() => _build(); _$MalformedContentTypeWithoutBodyEmptyInputInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedContentTypeWithoutBodyEmptyInputInput._(header: header); replace(_$result); return _$result; @@ -94,10 +99,10 @@ class MalformedContentTypeWithoutBodyEmptyInputInputBuilder class _$MalformedContentTypeWithoutBodyEmptyInputInputPayload extends MalformedContentTypeWithoutBodyEmptyInputInputPayload { - factory _$MalformedContentTypeWithoutBodyEmptyInputInputPayload( - [void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? - updates]) => + factory _$MalformedContentTypeWithoutBodyEmptyInputInputPayload([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? + updates, + ]) => (new MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder() ..update(updates)) ._build(); @@ -106,10 +111,9 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInputPayload @override MalformedContentTypeWithoutBodyEmptyInputInputPayload rebuild( - void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder toBuilder() => @@ -130,8 +134,10 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInputPayload class MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder implements - Builder { + Builder< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder + > { _$MalformedContentTypeWithoutBodyEmptyInputInputPayload? _$v; MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder(); @@ -144,9 +150,9 @@ class MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder @override void update( - void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? - updates) { + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? + updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart index 09a13698df..7eea5f9c86 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_double_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedDoubleInput ); } - factory MalformedDoubleInput.build( - [void Function(MalformedDoubleInputBuilder) updates]) = - _$MalformedDoubleInput; + factory MalformedDoubleInput.build([ + void Function(MalformedDoubleInputBuilder) updates, + ]) = _$MalformedDoubleInput; const MalformedDoubleInput._(); @@ -42,23 +42,21 @@ abstract class MalformedDoubleInput MalformedDoubleInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedDoubleInput.build((b) { - b.doubleInBody = payload.doubleInBody; - if (request.headers['doubleInHeader'] != null) { - b.doubleInHeader = double.parse(request.headers['doubleInHeader']!); - } - if (request.queryParameters['doubleInQuery'] != null) { - b.doubleInQuery = - double.parse(request.queryParameters['doubleInQuery']!); - } - if (labels['doubleInPath'] != null) { - b.doubleInPath = double.parse(labels['doubleInPath']!); - } - }); + }) => MalformedDoubleInput.build((b) { + b.doubleInBody = payload.doubleInBody; + if (request.headers['doubleInHeader'] != null) { + b.doubleInHeader = double.parse(request.headers['doubleInHeader']!); + } + if (request.queryParameters['doubleInQuery'] != null) { + b.doubleInQuery = double.parse(request.queryParameters['doubleInQuery']!); + } + if (labels['doubleInPath'] != null) { + b.doubleInPath = double.parse(labels['doubleInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedDoubleInputRestJson1Serializer()]; + serializers = [MalformedDoubleInputRestJson1Serializer()]; double? get doubleInBody; double get doubleInPath; @@ -70,44 +68,30 @@ abstract class MalformedDoubleInput case 'doubleInPath': return doubleInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedDoubleInputPayload getPayload() => MalformedDoubleInputPayload((b) { - b.doubleInBody = doubleInBody; - }); + b.doubleInBody = doubleInBody; + }); @override List get props => [ - doubleInBody, - doubleInPath, - doubleInQuery, - doubleInHeader, - ]; + doubleInBody, + doubleInPath, + doubleInQuery, + doubleInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedDoubleInput') - ..add( - 'doubleInBody', - doubleInBody, - ) - ..add( - 'doubleInPath', - doubleInPath, - ) - ..add( - 'doubleInQuery', - doubleInQuery, - ) - ..add( - 'doubleInHeader', - doubleInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedDoubleInput') + ..add('doubleInBody', doubleInBody) + ..add('doubleInPath', doubleInPath) + ..add('doubleInQuery', doubleInQuery) + ..add('doubleInHeader', doubleInHeader); return helper.toString(); } } @@ -117,9 +101,9 @@ abstract class MalformedDoubleInputPayload with _i2.AWSEquatable implements Built { - factory MalformedDoubleInputPayload( - [void Function(MalformedDoubleInputPayloadBuilder) updates]) = - _$MalformedDoubleInputPayload; + factory MalformedDoubleInputPayload([ + void Function(MalformedDoubleInputPayloadBuilder) updates, + ]) = _$MalformedDoubleInputPayload; const MalformedDoubleInputPayload._(); @@ -130,10 +114,7 @@ abstract class MalformedDoubleInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedDoubleInputPayload') - ..add( - 'doubleInBody', - doubleInBody, - ); + ..add('doubleInBody', doubleInBody); return helper.toString(); } } @@ -141,23 +122,20 @@ abstract class MalformedDoubleInputPayload class MalformedDoubleInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedDoubleInputRestJson1Serializer() - : super('MalformedDoubleInput'); + : super('MalformedDoubleInput'); @override Iterable get types => const [ - MalformedDoubleInput, - _$MalformedDoubleInput, - MalformedDoubleInputPayload, - _$MalformedDoubleInputPayload, - ]; + MalformedDoubleInput, + _$MalformedDoubleInput, + MalformedDoubleInputPayload, + _$MalformedDoubleInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedDoubleInputPayload deserialize( @@ -176,10 +154,12 @@ class MalformedDoubleInputRestJson1Serializer } switch (key) { case 'doubleInBody': - result.doubleInBody = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -197,10 +177,12 @@ class MalformedDoubleInputRestJson1Serializer if (doubleInBody != null) { result$ ..add('doubleInBody') - ..add(serializers.serialize( - doubleInBody, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleInBody, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart index 3522ce2954..ed73fedf20 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedDoubleInput extends MalformedDoubleInput { @override final double? doubleInHeader; - factory _$MalformedDoubleInput( - [void Function(MalformedDoubleInputBuilder)? updates]) => - (new MalformedDoubleInputBuilder()..update(updates))._build(); - - _$MalformedDoubleInput._( - {this.doubleInBody, - required this.doubleInPath, - this.doubleInQuery, - this.doubleInHeader}) - : super._() { + factory _$MalformedDoubleInput([ + void Function(MalformedDoubleInputBuilder)? updates, + ]) => (new MalformedDoubleInputBuilder()..update(updates))._build(); + + _$MalformedDoubleInput._({ + this.doubleInBody, + required this.doubleInPath, + this.doubleInQuery, + this.doubleInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - doubleInPath, r'MalformedDoubleInput', 'doubleInPath'); + doubleInPath, + r'MalformedDoubleInput', + 'doubleInPath', + ); } @override MalformedDoubleInput rebuild( - void Function(MalformedDoubleInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedDoubleInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedDoubleInputBuilder toBuilder() => @@ -112,13 +115,18 @@ class MalformedDoubleInputBuilder MalformedDoubleInput build() => _build(); _$MalformedDoubleInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedDoubleInput._( - doubleInBody: doubleInBody, - doubleInPath: BuiltValueNullFieldError.checkNotNull( - doubleInPath, r'MalformedDoubleInput', 'doubleInPath'), - doubleInQuery: doubleInQuery, - doubleInHeader: doubleInHeader); + doubleInBody: doubleInBody, + doubleInPath: BuiltValueNullFieldError.checkNotNull( + doubleInPath, + r'MalformedDoubleInput', + 'doubleInPath', + ), + doubleInQuery: doubleInQuery, + doubleInHeader: doubleInHeader, + ); replace(_$result); return _$result; } @@ -128,16 +136,16 @@ class _$MalformedDoubleInputPayload extends MalformedDoubleInputPayload { @override final double? doubleInBody; - factory _$MalformedDoubleInputPayload( - [void Function(MalformedDoubleInputPayloadBuilder)? updates]) => - (new MalformedDoubleInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedDoubleInputPayload([ + void Function(MalformedDoubleInputPayloadBuilder)? updates, + ]) => (new MalformedDoubleInputPayloadBuilder()..update(updates))._build(); _$MalformedDoubleInputPayload._({this.doubleInBody}) : super._(); @override MalformedDoubleInputPayload rebuild( - void Function(MalformedDoubleInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedDoubleInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedDoubleInputPayloadBuilder toBuilder() => @@ -161,8 +169,10 @@ class _$MalformedDoubleInputPayload extends MalformedDoubleInputPayload { class MalformedDoubleInputPayloadBuilder implements - Builder { + Builder< + MalformedDoubleInputPayload, + MalformedDoubleInputPayloadBuilder + > { _$MalformedDoubleInputPayload? _$v; double? _doubleInBody; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart index fd62e262c6..3e2cab25a8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_float_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedFloatInput ); } - factory MalformedFloatInput.build( - [void Function(MalformedFloatInputBuilder) updates]) = - _$MalformedFloatInput; + factory MalformedFloatInput.build([ + void Function(MalformedFloatInputBuilder) updates, + ]) = _$MalformedFloatInput; const MalformedFloatInput._(); @@ -42,23 +42,21 @@ abstract class MalformedFloatInput MalformedFloatInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedFloatInput.build((b) { - b.floatInBody = payload.floatInBody; - if (request.headers['floatInHeader'] != null) { - b.floatInHeader = double.parse(request.headers['floatInHeader']!); - } - if (request.queryParameters['floatInQuery'] != null) { - b.floatInQuery = - double.parse(request.queryParameters['floatInQuery']!); - } - if (labels['floatInPath'] != null) { - b.floatInPath = double.parse(labels['floatInPath']!); - } - }); + }) => MalformedFloatInput.build((b) { + b.floatInBody = payload.floatInBody; + if (request.headers['floatInHeader'] != null) { + b.floatInHeader = double.parse(request.headers['floatInHeader']!); + } + if (request.queryParameters['floatInQuery'] != null) { + b.floatInQuery = double.parse(request.queryParameters['floatInQuery']!); + } + if (labels['floatInPath'] != null) { + b.floatInPath = double.parse(labels['floatInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedFloatInputRestJson1Serializer()]; + serializers = [MalformedFloatInputRestJson1Serializer()]; double? get floatInBody; double get floatInPath; @@ -70,44 +68,30 @@ abstract class MalformedFloatInput case 'floatInPath': return floatInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedFloatInputPayload getPayload() => MalformedFloatInputPayload((b) { - b.floatInBody = floatInBody; - }); + b.floatInBody = floatInBody; + }); @override List get props => [ - floatInBody, - floatInPath, - floatInQuery, - floatInHeader, - ]; + floatInBody, + floatInPath, + floatInQuery, + floatInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedFloatInput') - ..add( - 'floatInBody', - floatInBody, - ) - ..add( - 'floatInPath', - floatInPath, - ) - ..add( - 'floatInQuery', - floatInQuery, - ) - ..add( - 'floatInHeader', - floatInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedFloatInput') + ..add('floatInBody', floatInBody) + ..add('floatInPath', floatInPath) + ..add('floatInQuery', floatInQuery) + ..add('floatInHeader', floatInHeader); return helper.toString(); } } @@ -117,9 +101,9 @@ abstract class MalformedFloatInputPayload with _i2.AWSEquatable implements Built { - factory MalformedFloatInputPayload( - [void Function(MalformedFloatInputPayloadBuilder) updates]) = - _$MalformedFloatInputPayload; + factory MalformedFloatInputPayload([ + void Function(MalformedFloatInputPayloadBuilder) updates, + ]) = _$MalformedFloatInputPayload; const MalformedFloatInputPayload._(); @@ -130,10 +114,7 @@ abstract class MalformedFloatInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedFloatInputPayload') - ..add( - 'floatInBody', - floatInBody, - ); + ..add('floatInBody', floatInBody); return helper.toString(); } } @@ -144,19 +125,16 @@ class MalformedFloatInputRestJson1Serializer @override Iterable get types => const [ - MalformedFloatInput, - _$MalformedFloatInput, - MalformedFloatInputPayload, - _$MalformedFloatInputPayload, - ]; + MalformedFloatInput, + _$MalformedFloatInput, + MalformedFloatInputPayload, + _$MalformedFloatInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedFloatInputPayload deserialize( @@ -175,10 +153,12 @@ class MalformedFloatInputRestJson1Serializer } switch (key) { case 'floatInBody': - result.floatInBody = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -196,10 +176,12 @@ class MalformedFloatInputRestJson1Serializer if (floatInBody != null) { result$ ..add('floatInBody') - ..add(serializers.serialize( - floatInBody, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatInBody, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart index 14774f758a..7547af165a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedFloatInput extends MalformedFloatInput { @override final double? floatInHeader; - factory _$MalformedFloatInput( - [void Function(MalformedFloatInputBuilder)? updates]) => - (new MalformedFloatInputBuilder()..update(updates))._build(); - - _$MalformedFloatInput._( - {this.floatInBody, - required this.floatInPath, - this.floatInQuery, - this.floatInHeader}) - : super._() { + factory _$MalformedFloatInput([ + void Function(MalformedFloatInputBuilder)? updates, + ]) => (new MalformedFloatInputBuilder()..update(updates))._build(); + + _$MalformedFloatInput._({ + this.floatInBody, + required this.floatInPath, + this.floatInQuery, + this.floatInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - floatInPath, r'MalformedFloatInput', 'floatInPath'); + floatInPath, + r'MalformedFloatInput', + 'floatInPath', + ); } @override MalformedFloatInput rebuild( - void Function(MalformedFloatInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedFloatInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedFloatInputBuilder toBuilder() => @@ -111,13 +114,18 @@ class MalformedFloatInputBuilder MalformedFloatInput build() => _build(); _$MalformedFloatInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedFloatInput._( - floatInBody: floatInBody, - floatInPath: BuiltValueNullFieldError.checkNotNull( - floatInPath, r'MalformedFloatInput', 'floatInPath'), - floatInQuery: floatInQuery, - floatInHeader: floatInHeader); + floatInBody: floatInBody, + floatInPath: BuiltValueNullFieldError.checkNotNull( + floatInPath, + r'MalformedFloatInput', + 'floatInPath', + ), + floatInQuery: floatInQuery, + floatInHeader: floatInHeader, + ); replace(_$result); return _$result; } @@ -127,16 +135,16 @@ class _$MalformedFloatInputPayload extends MalformedFloatInputPayload { @override final double? floatInBody; - factory _$MalformedFloatInputPayload( - [void Function(MalformedFloatInputPayloadBuilder)? updates]) => - (new MalformedFloatInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedFloatInputPayload([ + void Function(MalformedFloatInputPayloadBuilder)? updates, + ]) => (new MalformedFloatInputPayloadBuilder()..update(updates))._build(); _$MalformedFloatInputPayload._({this.floatInBody}) : super._(); @override MalformedFloatInputPayload rebuild( - void Function(MalformedFloatInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedFloatInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedFloatInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart index f5e61a4b27..b9902b41f1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_integer_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedIntegerInput ); } - factory MalformedIntegerInput.build( - [void Function(MalformedIntegerInputBuilder) updates]) = - _$MalformedIntegerInput; + factory MalformedIntegerInput.build([ + void Function(MalformedIntegerInputBuilder) updates, + ]) = _$MalformedIntegerInput; const MalformedIntegerInput._(); @@ -42,23 +42,21 @@ abstract class MalformedIntegerInput MalformedIntegerInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedIntegerInput.build((b) { - b.integerInBody = payload.integerInBody; - if (request.headers['integerInHeader'] != null) { - b.integerInHeader = int.parse(request.headers['integerInHeader']!); - } - if (request.queryParameters['integerInQuery'] != null) { - b.integerInQuery = - int.parse(request.queryParameters['integerInQuery']!); - } - if (labels['integerInPath'] != null) { - b.integerInPath = int.parse(labels['integerInPath']!); - } - }); + }) => MalformedIntegerInput.build((b) { + b.integerInBody = payload.integerInBody; + if (request.headers['integerInHeader'] != null) { + b.integerInHeader = int.parse(request.headers['integerInHeader']!); + } + if (request.queryParameters['integerInQuery'] != null) { + b.integerInQuery = int.parse(request.queryParameters['integerInQuery']!); + } + if (labels['integerInPath'] != null) { + b.integerInPath = int.parse(labels['integerInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedIntegerInputRestJson1Serializer()]; + serializers = [MalformedIntegerInputRestJson1Serializer()]; int? get integerInBody; int get integerInPath; @@ -70,10 +68,7 @@ abstract class MalformedIntegerInput case 'integerInPath': return integerInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -84,45 +79,35 @@ abstract class MalformedIntegerInput @override List get props => [ - integerInBody, - integerInPath, - integerInQuery, - integerInHeader, - ]; + integerInBody, + integerInPath, + integerInQuery, + integerInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedIntegerInput') - ..add( - 'integerInBody', - integerInBody, - ) - ..add( - 'integerInPath', - integerInPath, - ) - ..add( - 'integerInQuery', - integerInQuery, - ) - ..add( - 'integerInHeader', - integerInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedIntegerInput') + ..add('integerInBody', integerInBody) + ..add('integerInPath', integerInPath) + ..add('integerInQuery', integerInQuery) + ..add('integerInHeader', integerInHeader); return helper.toString(); } } @_i3.internal abstract class MalformedIntegerInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory MalformedIntegerInputPayload( - [void Function(MalformedIntegerInputPayloadBuilder) updates]) = - _$MalformedIntegerInputPayload; + Built< + MalformedIntegerInputPayload, + MalformedIntegerInputPayloadBuilder + > { + factory MalformedIntegerInputPayload([ + void Function(MalformedIntegerInputPayloadBuilder) updates, + ]) = _$MalformedIntegerInputPayload; const MalformedIntegerInputPayload._(); @@ -133,10 +118,7 @@ abstract class MalformedIntegerInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedIntegerInputPayload') - ..add( - 'integerInBody', - integerInBody, - ); + ..add('integerInBody', integerInBody); return helper.toString(); } } @@ -144,23 +126,20 @@ abstract class MalformedIntegerInputPayload class MalformedIntegerInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedIntegerInputRestJson1Serializer() - : super('MalformedIntegerInput'); + : super('MalformedIntegerInput'); @override Iterable get types => const [ - MalformedIntegerInput, - _$MalformedIntegerInput, - MalformedIntegerInputPayload, - _$MalformedIntegerInputPayload, - ]; + MalformedIntegerInput, + _$MalformedIntegerInput, + MalformedIntegerInputPayload, + _$MalformedIntegerInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedIntegerInputPayload deserialize( @@ -179,10 +158,12 @@ class MalformedIntegerInputRestJson1Serializer } switch (key) { case 'integerInBody': - result.integerInBody = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -200,10 +181,12 @@ class MalformedIntegerInputRestJson1Serializer if (integerInBody != null) { result$ ..add('integerInBody') - ..add(serializers.serialize( - integerInBody, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerInBody, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart index 4c4bfa7f99..8413ba13e8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedIntegerInput extends MalformedIntegerInput { @override final int? integerInHeader; - factory _$MalformedIntegerInput( - [void Function(MalformedIntegerInputBuilder)? updates]) => - (new MalformedIntegerInputBuilder()..update(updates))._build(); - - _$MalformedIntegerInput._( - {this.integerInBody, - required this.integerInPath, - this.integerInQuery, - this.integerInHeader}) - : super._() { + factory _$MalformedIntegerInput([ + void Function(MalformedIntegerInputBuilder)? updates, + ]) => (new MalformedIntegerInputBuilder()..update(updates))._build(); + + _$MalformedIntegerInput._({ + this.integerInBody, + required this.integerInPath, + this.integerInQuery, + this.integerInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - integerInPath, r'MalformedIntegerInput', 'integerInPath'); + integerInPath, + r'MalformedIntegerInput', + 'integerInPath', + ); } @override MalformedIntegerInput rebuild( - void Function(MalformedIntegerInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedIntegerInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedIntegerInputBuilder toBuilder() => @@ -114,13 +117,18 @@ class MalformedIntegerInputBuilder MalformedIntegerInput build() => _build(); _$MalformedIntegerInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedIntegerInput._( - integerInBody: integerInBody, - integerInPath: BuiltValueNullFieldError.checkNotNull( - integerInPath, r'MalformedIntegerInput', 'integerInPath'), - integerInQuery: integerInQuery, - integerInHeader: integerInHeader); + integerInBody: integerInBody, + integerInPath: BuiltValueNullFieldError.checkNotNull( + integerInPath, + r'MalformedIntegerInput', + 'integerInPath', + ), + integerInQuery: integerInQuery, + integerInHeader: integerInHeader, + ); replace(_$result); return _$result; } @@ -130,16 +138,16 @@ class _$MalformedIntegerInputPayload extends MalformedIntegerInputPayload { @override final int? integerInBody; - factory _$MalformedIntegerInputPayload( - [void Function(MalformedIntegerInputPayloadBuilder)? updates]) => - (new MalformedIntegerInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedIntegerInputPayload([ + void Function(MalformedIntegerInputPayloadBuilder)? updates, + ]) => (new MalformedIntegerInputPayloadBuilder()..update(updates))._build(); _$MalformedIntegerInputPayload._({this.integerInBody}) : super._(); @override MalformedIntegerInputPayload rebuild( - void Function(MalformedIntegerInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedIntegerInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedIntegerInputPayloadBuilder toBuilder() => @@ -163,8 +171,10 @@ class _$MalformedIntegerInputPayload extends MalformedIntegerInputPayload { class MalformedIntegerInputPayloadBuilder implements - Builder { + Builder< + MalformedIntegerInputPayload, + MalformedIntegerInputPayloadBuilder + > { _$MalformedIntegerInputPayload? _$v; int? _integerInBody; @@ -198,7 +208,8 @@ class MalformedIntegerInputPayloadBuilder MalformedIntegerInputPayload build() => _build(); _$MalformedIntegerInputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedIntegerInputPayload._(integerInBody: integerInBody); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart index 8b994b5e2b..f7ccf89c3c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_list_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,12 +16,13 @@ abstract class MalformedListInput implements Built { factory MalformedListInput({List? bodyList}) { return _$MalformedListInput._( - bodyList: bodyList == null ? null : _i3.BuiltList(bodyList)); + bodyList: bodyList == null ? null : _i3.BuiltList(bodyList), + ); } - factory MalformedListInput.build( - [void Function(MalformedListInputBuilder) updates]) = - _$MalformedListInput; + factory MalformedListInput.build([ + void Function(MalformedListInputBuilder) updates, + ]) = _$MalformedListInput; const MalformedListInput._(); @@ -29,11 +30,10 @@ abstract class MalformedListInput MalformedListInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedListInputRestJson1Serializer() + MalformedListInputRestJson1Serializer(), ]; _i3.BuiltList? get bodyList; @@ -46,10 +46,7 @@ abstract class MalformedListInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedListInput') - ..add( - 'bodyList', - bodyList, - ); + ..add('bodyList', bodyList); return helper.toString(); } } @@ -59,18 +56,12 @@ class MalformedListInputRestJson1Serializer const MalformedListInputRestJson1Serializer() : super('MalformedListInput'); @override - Iterable get types => const [ - MalformedListInput, - _$MalformedListInput, - ]; + Iterable get types => const [MalformedListInput, _$MalformedListInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedListInput deserialize( @@ -89,13 +80,15 @@ class MalformedListInputRestJson1Serializer } switch (key) { case 'bodyList': - result.bodyList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.bodyList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); } } @@ -113,13 +106,12 @@ class MalformedListInputRestJson1Serializer if (bodyList != null) { result$ ..add('bodyList') - ..add(serializers.serialize( - bodyList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + bodyList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart index 1059a5956a..25baa04f03 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedListInput extends MalformedListInput { @override final _i3.BuiltList? bodyList; - factory _$MalformedListInput( - [void Function(MalformedListInputBuilder)? updates]) => - (new MalformedListInputBuilder()..update(updates))._build(); + factory _$MalformedListInput([ + void Function(MalformedListInputBuilder)? updates, + ]) => (new MalformedListInputBuilder()..update(updates))._build(); _$MalformedListInput._({this.bodyList}) : super._(); @override MalformedListInput rebuild( - void Function(MalformedListInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedListInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedListInputBuilder toBuilder() => @@ -87,7 +87,10 @@ class MalformedListInputBuilder _bodyList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedListInput', _$failedField, e.toString()); + r'MalformedListInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart index 333d3625f1..cc61485122 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_long_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class MalformedLongInput ); } - factory MalformedLongInput.build( - [void Function(MalformedLongInputBuilder) updates]) = - _$MalformedLongInput; + factory MalformedLongInput.build([ + void Function(MalformedLongInputBuilder) updates, + ]) = _$MalformedLongInput; const MalformedLongInput._(); @@ -43,23 +43,23 @@ abstract class MalformedLongInput MalformedLongInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedLongInput.build((b) { - b.longInBody = payload.longInBody; - if (request.headers['longInHeader'] != null) { - b.longInHeader = _i3.Int64.parseInt(request.headers['longInHeader']!); - } - if (request.queryParameters['longInQuery'] != null) { - b.longInQuery = - _i3.Int64.parseInt(request.queryParameters['longInQuery']!); - } - if (labels['longInPath'] != null) { - b.longInPath = _i3.Int64.parseInt(labels['longInPath']!); - } - }); + }) => MalformedLongInput.build((b) { + b.longInBody = payload.longInBody; + if (request.headers['longInHeader'] != null) { + b.longInHeader = _i3.Int64.parseInt(request.headers['longInHeader']!); + } + if (request.queryParameters['longInQuery'] != null) { + b.longInQuery = _i3.Int64.parseInt( + request.queryParameters['longInQuery']!, + ); + } + if (labels['longInPath'] != null) { + b.longInPath = _i3.Int64.parseInt(labels['longInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedLongInputRestJson1Serializer()]; + serializers = [MalformedLongInputRestJson1Serializer()]; _i3.Int64? get longInBody; _i3.Int64 get longInPath; @@ -71,44 +71,30 @@ abstract class MalformedLongInput case 'longInPath': return longInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedLongInputPayload getPayload() => MalformedLongInputPayload((b) { - b.longInBody = longInBody; - }); + b.longInBody = longInBody; + }); @override List get props => [ - longInBody, - longInPath, - longInQuery, - longInHeader, - ]; + longInBody, + longInPath, + longInQuery, + longInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedLongInput') - ..add( - 'longInBody', - longInBody, - ) - ..add( - 'longInPath', - longInPath, - ) - ..add( - 'longInQuery', - longInQuery, - ) - ..add( - 'longInHeader', - longInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedLongInput') + ..add('longInBody', longInBody) + ..add('longInPath', longInPath) + ..add('longInQuery', longInQuery) + ..add('longInHeader', longInHeader); return helper.toString(); } } @@ -118,9 +104,9 @@ abstract class MalformedLongInputPayload with _i2.AWSEquatable implements Built { - factory MalformedLongInputPayload( - [void Function(MalformedLongInputPayloadBuilder) updates]) = - _$MalformedLongInputPayload; + factory MalformedLongInputPayload([ + void Function(MalformedLongInputPayloadBuilder) updates, + ]) = _$MalformedLongInputPayload; const MalformedLongInputPayload._(); @@ -131,10 +117,7 @@ abstract class MalformedLongInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedLongInputPayload') - ..add( - 'longInBody', - longInBody, - ); + ..add('longInBody', longInBody); return helper.toString(); } } @@ -145,19 +128,16 @@ class MalformedLongInputRestJson1Serializer @override Iterable get types => const [ - MalformedLongInput, - _$MalformedLongInput, - MalformedLongInputPayload, - _$MalformedLongInputPayload, - ]; + MalformedLongInput, + _$MalformedLongInput, + MalformedLongInputPayload, + _$MalformedLongInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLongInputPayload deserialize( @@ -176,10 +156,12 @@ class MalformedLongInputRestJson1Serializer } switch (key) { case 'longInBody': - result.longInBody = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); } } @@ -197,10 +179,12 @@ class MalformedLongInputRestJson1Serializer if (longInBody != null) { result$ ..add('longInBody') - ..add(serializers.serialize( - longInBody, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longInBody, + specifiedType: const FullType(_i3.Int64), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart index 3b318e7dc6..5da7171ac9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedLongInput extends MalformedLongInput { @override final _i3.Int64? longInHeader; - factory _$MalformedLongInput( - [void Function(MalformedLongInputBuilder)? updates]) => - (new MalformedLongInputBuilder()..update(updates))._build(); - - _$MalformedLongInput._( - {this.longInBody, - required this.longInPath, - this.longInQuery, - this.longInHeader}) - : super._() { + factory _$MalformedLongInput([ + void Function(MalformedLongInputBuilder)? updates, + ]) => (new MalformedLongInputBuilder()..update(updates))._build(); + + _$MalformedLongInput._({ + this.longInBody, + required this.longInPath, + this.longInQuery, + this.longInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - longInPath, r'MalformedLongInput', 'longInPath'); + longInPath, + r'MalformedLongInput', + 'longInPath', + ); } @override MalformedLongInput rebuild( - void Function(MalformedLongInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLongInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLongInputBuilder toBuilder() => @@ -111,13 +114,18 @@ class MalformedLongInputBuilder MalformedLongInput build() => _build(); _$MalformedLongInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedLongInput._( - longInBody: longInBody, - longInPath: BuiltValueNullFieldError.checkNotNull( - longInPath, r'MalformedLongInput', 'longInPath'), - longInQuery: longInQuery, - longInHeader: longInHeader); + longInBody: longInBody, + longInPath: BuiltValueNullFieldError.checkNotNull( + longInPath, + r'MalformedLongInput', + 'longInPath', + ), + longInQuery: longInQuery, + longInHeader: longInHeader, + ); replace(_$result); return _$result; } @@ -127,16 +135,16 @@ class _$MalformedLongInputPayload extends MalformedLongInputPayload { @override final _i3.Int64? longInBody; - factory _$MalformedLongInputPayload( - [void Function(MalformedLongInputPayloadBuilder)? updates]) => - (new MalformedLongInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedLongInputPayload([ + void Function(MalformedLongInputPayloadBuilder)? updates, + ]) => (new MalformedLongInputPayloadBuilder()..update(updates))._build(); _$MalformedLongInputPayload._({this.longInBody}) : super._(); @override MalformedLongInputPayload rebuild( - void Function(MalformedLongInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLongInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLongInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart index d7a11f831e..4da14b25e0 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_map_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,11 +16,13 @@ abstract class MalformedMapInput implements Built { factory MalformedMapInput({Map? bodyMap}) { return _$MalformedMapInput._( - bodyMap: bodyMap == null ? null : _i3.BuiltMap(bodyMap)); + bodyMap: bodyMap == null ? null : _i3.BuiltMap(bodyMap), + ); } - factory MalformedMapInput.build( - [void Function(MalformedMapInputBuilder) updates]) = _$MalformedMapInput; + factory MalformedMapInput.build([ + void Function(MalformedMapInputBuilder) updates, + ]) = _$MalformedMapInput; const MalformedMapInput._(); @@ -28,11 +30,10 @@ abstract class MalformedMapInput MalformedMapInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedMapInputRestJson1Serializer() + MalformedMapInputRestJson1Serializer(), ]; _i3.BuiltMap? get bodyMap; @@ -45,10 +46,7 @@ abstract class MalformedMapInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedMapInput') - ..add( - 'bodyMap', - bodyMap, - ); + ..add('bodyMap', bodyMap); return helper.toString(); } } @@ -58,18 +56,12 @@ class MalformedMapInputRestJson1Serializer const MalformedMapInputRestJson1Serializer() : super('MalformedMapInput'); @override - Iterable get types => const [ - MalformedMapInput, - _$MalformedMapInput, - ]; + Iterable get types => const [MalformedMapInput, _$MalformedMapInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedMapInput deserialize( @@ -88,16 +80,16 @@ class MalformedMapInputRestJson1Serializer } switch (key) { case 'bodyMap': - result.bodyMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.bodyMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -115,16 +107,15 @@ class MalformedMapInputRestJson1Serializer if (bodyMap != null) { result$ ..add('bodyMap') - ..add(serializers.serialize( - bodyMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + bodyMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart index 0608940c04..cea194bf36 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart @@ -10,9 +10,9 @@ class _$MalformedMapInput extends MalformedMapInput { @override final _i3.BuiltMap? bodyMap; - factory _$MalformedMapInput( - [void Function(MalformedMapInputBuilder)? updates]) => - (new MalformedMapInputBuilder()..update(updates))._build(); + factory _$MalformedMapInput([ + void Function(MalformedMapInputBuilder)? updates, + ]) => (new MalformedMapInputBuilder()..update(updates))._build(); _$MalformedMapInput._({this.bodyMap}) : super._(); @@ -85,7 +85,10 @@ class MalformedMapInputBuilder _bodyMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedMapInput', _$failedField, e.toString()); + r'MalformedMapInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart index f02ee50f17..88875ddae6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_request_body_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class MalformedRequestBodyInput _i2.AWSEquatable implements Built { - factory MalformedRequestBodyInput({ - int? int_, - double? float, - }) { - return _$MalformedRequestBodyInput._( - int_: int_, - float: float, - ); + factory MalformedRequestBodyInput({int? int_, double? float}) { + return _$MalformedRequestBodyInput._(int_: int_, float: float); } - factory MalformedRequestBodyInput.build( - [void Function(MalformedRequestBodyInputBuilder) updates]) = - _$MalformedRequestBodyInput; + factory MalformedRequestBodyInput.build([ + void Function(MalformedRequestBodyInputBuilder) updates, + ]) = _$MalformedRequestBodyInput; const MalformedRequestBodyInput._(); @@ -36,11 +30,10 @@ abstract class MalformedRequestBodyInput MalformedRequestBodyInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedRequestBodyInputRestJson1Serializer()]; + serializers = [MalformedRequestBodyInputRestJson1Serializer()]; int? get int_; double? get float; @@ -48,22 +41,14 @@ abstract class MalformedRequestBodyInput MalformedRequestBodyInput getPayload() => this; @override - List get props => [ - int_, - float, - ]; + List get props => [int_, float]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRequestBodyInput') - ..add( - 'int_', - int_, - ) - ..add( - 'float', - float, - ); + final helper = + newBuiltValueToStringHelper('MalformedRequestBodyInput') + ..add('int_', int_) + ..add('float', float); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class MalformedRequestBodyInput class MalformedRequestBodyInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedRequestBodyInputRestJson1Serializer() - : super('MalformedRequestBodyInput'); + : super('MalformedRequestBodyInput'); @override Iterable get types => const [ - MalformedRequestBodyInput, - _$MalformedRequestBodyInput, - ]; + MalformedRequestBodyInput, + _$MalformedRequestBodyInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRequestBodyInput deserialize( @@ -104,15 +86,19 @@ class MalformedRequestBodyInputRestJson1Serializer } switch (key) { case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'int': - result.int_ = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.int_ = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -130,18 +116,14 @@ class MalformedRequestBodyInputRestJson1Serializer if (float != null) { result$ ..add('float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (int_ != null) { result$ ..add('int') - ..add(serializers.serialize( - int_, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(int_, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart index 03f513b33d..8b19e5f219 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart @@ -12,16 +12,16 @@ class _$MalformedRequestBodyInput extends MalformedRequestBodyInput { @override final double? float; - factory _$MalformedRequestBodyInput( - [void Function(MalformedRequestBodyInputBuilder)? updates]) => - (new MalformedRequestBodyInputBuilder()..update(updates))._build(); + factory _$MalformedRequestBodyInput([ + void Function(MalformedRequestBodyInputBuilder)? updates, + ]) => (new MalformedRequestBodyInputBuilder()..update(updates))._build(); _$MalformedRequestBodyInput._({this.int_, this.float}) : super._(); @override MalformedRequestBodyInput rebuild( - void Function(MalformedRequestBodyInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRequestBodyInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRequestBodyInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart index e829ebcf68..398567be70 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_short_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedShortInput ); } - factory MalformedShortInput.build( - [void Function(MalformedShortInputBuilder) updates]) = - _$MalformedShortInput; + factory MalformedShortInput.build([ + void Function(MalformedShortInputBuilder) updates, + ]) = _$MalformedShortInput; const MalformedShortInput._(); @@ -42,22 +42,21 @@ abstract class MalformedShortInput MalformedShortInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedShortInput.build((b) { - b.shortInBody = payload.shortInBody; - if (request.headers['shortInHeader'] != null) { - b.shortInHeader = int.parse(request.headers['shortInHeader']!); - } - if (request.queryParameters['shortInQuery'] != null) { - b.shortInQuery = int.parse(request.queryParameters['shortInQuery']!); - } - if (labels['shortInPath'] != null) { - b.shortInPath = int.parse(labels['shortInPath']!); - } - }); + }) => MalformedShortInput.build((b) { + b.shortInBody = payload.shortInBody; + if (request.headers['shortInHeader'] != null) { + b.shortInHeader = int.parse(request.headers['shortInHeader']!); + } + if (request.queryParameters['shortInQuery'] != null) { + b.shortInQuery = int.parse(request.queryParameters['shortInQuery']!); + } + if (labels['shortInPath'] != null) { + b.shortInPath = int.parse(labels['shortInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedShortInputRestJson1Serializer()]; + serializers = [MalformedShortInputRestJson1Serializer()]; int? get shortInBody; int get shortInPath; @@ -69,44 +68,30 @@ abstract class MalformedShortInput case 'shortInPath': return shortInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedShortInputPayload getPayload() => MalformedShortInputPayload((b) { - b.shortInBody = shortInBody; - }); + b.shortInBody = shortInBody; + }); @override List get props => [ - shortInBody, - shortInPath, - shortInQuery, - shortInHeader, - ]; + shortInBody, + shortInPath, + shortInQuery, + shortInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedShortInput') - ..add( - 'shortInBody', - shortInBody, - ) - ..add( - 'shortInPath', - shortInPath, - ) - ..add( - 'shortInQuery', - shortInQuery, - ) - ..add( - 'shortInHeader', - shortInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedShortInput') + ..add('shortInBody', shortInBody) + ..add('shortInPath', shortInPath) + ..add('shortInQuery', shortInQuery) + ..add('shortInHeader', shortInHeader); return helper.toString(); } } @@ -116,9 +101,9 @@ abstract class MalformedShortInputPayload with _i2.AWSEquatable implements Built { - factory MalformedShortInputPayload( - [void Function(MalformedShortInputPayloadBuilder) updates]) = - _$MalformedShortInputPayload; + factory MalformedShortInputPayload([ + void Function(MalformedShortInputPayloadBuilder) updates, + ]) = _$MalformedShortInputPayload; const MalformedShortInputPayload._(); @@ -129,10 +114,7 @@ abstract class MalformedShortInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedShortInputPayload') - ..add( - 'shortInBody', - shortInBody, - ); + ..add('shortInBody', shortInBody); return helper.toString(); } } @@ -143,19 +125,16 @@ class MalformedShortInputRestJson1Serializer @override Iterable get types => const [ - MalformedShortInput, - _$MalformedShortInput, - MalformedShortInputPayload, - _$MalformedShortInputPayload, - ]; + MalformedShortInput, + _$MalformedShortInput, + MalformedShortInputPayload, + _$MalformedShortInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedShortInputPayload deserialize( @@ -174,10 +153,12 @@ class MalformedShortInputRestJson1Serializer } switch (key) { case 'shortInBody': - result.shortInBody = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -195,10 +176,12 @@ class MalformedShortInputRestJson1Serializer if (shortInBody != null) { result$ ..add('shortInBody') - ..add(serializers.serialize( - shortInBody, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + shortInBody, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart index 6b3749555d..eb93702c36 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedShortInput extends MalformedShortInput { @override final int? shortInHeader; - factory _$MalformedShortInput( - [void Function(MalformedShortInputBuilder)? updates]) => - (new MalformedShortInputBuilder()..update(updates))._build(); - - _$MalformedShortInput._( - {this.shortInBody, - required this.shortInPath, - this.shortInQuery, - this.shortInHeader}) - : super._() { + factory _$MalformedShortInput([ + void Function(MalformedShortInputBuilder)? updates, + ]) => (new MalformedShortInputBuilder()..update(updates))._build(); + + _$MalformedShortInput._({ + this.shortInBody, + required this.shortInPath, + this.shortInQuery, + this.shortInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - shortInPath, r'MalformedShortInput', 'shortInPath'); + shortInPath, + r'MalformedShortInput', + 'shortInPath', + ); } @override MalformedShortInput rebuild( - void Function(MalformedShortInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedShortInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedShortInputBuilder toBuilder() => @@ -111,13 +114,18 @@ class MalformedShortInputBuilder MalformedShortInput build() => _build(); _$MalformedShortInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedShortInput._( - shortInBody: shortInBody, - shortInPath: BuiltValueNullFieldError.checkNotNull( - shortInPath, r'MalformedShortInput', 'shortInPath'), - shortInQuery: shortInQuery, - shortInHeader: shortInHeader); + shortInBody: shortInBody, + shortInPath: BuiltValueNullFieldError.checkNotNull( + shortInPath, + r'MalformedShortInput', + 'shortInPath', + ), + shortInQuery: shortInQuery, + shortInHeader: shortInHeader, + ); replace(_$result); return _$result; } @@ -127,16 +135,16 @@ class _$MalformedShortInputPayload extends MalformedShortInputPayload { @override final int? shortInBody; - factory _$MalformedShortInputPayload( - [void Function(MalformedShortInputPayloadBuilder)? updates]) => - (new MalformedShortInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedShortInputPayload([ + void Function(MalformedShortInputPayloadBuilder)? updates, + ]) => (new MalformedShortInputPayloadBuilder()..update(updates))._build(); _$MalformedShortInputPayload._({this.shortInBody}) : super._(); @override MalformedShortInputPayload rebuild( - void Function(MalformedShortInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedShortInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedShortInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart index 8c649b306d..176ddedce2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -24,12 +24,13 @@ abstract class MalformedStringInput _i1.HasPayload { factory MalformedStringInput({Object? blob}) { return _$MalformedStringInput._( - blob: blob == null ? null : _i3.JsonObject(blob)); + blob: blob == null ? null : _i3.JsonObject(blob), + ); } - factory MalformedStringInput.build( - [void Function(MalformedStringInputBuilder) updates]) = - _$MalformedStringInput; + factory MalformedStringInput.build([ + void Function(MalformedStringInputBuilder) updates, + ]) = _$MalformedStringInput; const MalformedStringInput._(); @@ -37,16 +38,20 @@ abstract class MalformedStringInput MalformedStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedStringInput.build((b) { - if (request.headers['amz-media-typed-header'] != null) { - b.blob = _i3.JsonObject(_i4.jsonDecode(_i4.utf8.decode( - _i4.base64Decode(request.headers['amz-media-typed-header']!)))); - } - }); + }) => MalformedStringInput.build((b) { + if (request.headers['amz-media-typed-header'] != null) { + b.blob = _i3.JsonObject( + _i4.jsonDecode( + _i4.utf8.decode( + _i4.base64Decode(request.headers['amz-media-typed-header']!), + ), + ), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedStringInputRestJson1Serializer()]; + serializers = [MalformedStringInputRestJson1Serializer()]; _i3.JsonObject? get blob; @override @@ -58,10 +63,7 @@ abstract class MalformedStringInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedStringInput') - ..add( - 'blob', - blob, - ); + ..add('blob', blob); return helper.toString(); } } @@ -72,9 +74,9 @@ abstract class MalformedStringInputPayload implements Built, _i1.EmptyPayload { - factory MalformedStringInputPayload( - [void Function(MalformedStringInputPayloadBuilder) updates]) = - _$MalformedStringInputPayload; + factory MalformedStringInputPayload([ + void Function(MalformedStringInputPayloadBuilder) updates, + ]) = _$MalformedStringInputPayload; const MalformedStringInputPayload._(); @@ -91,23 +93,20 @@ abstract class MalformedStringInputPayload class MalformedStringInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedStringInputRestJson1Serializer() - : super('MalformedStringInput'); + : super('MalformedStringInput'); @override Iterable get types => const [ - MalformedStringInput, - _$MalformedStringInput, - MalformedStringInputPayload, - _$MalformedStringInputPayload, - ]; + MalformedStringInput, + _$MalformedStringInput, + MalformedStringInputPayload, + _$MalformedStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedStringInputPayload deserialize( @@ -123,6 +122,5 @@ class MalformedStringInputRestJson1Serializer Serializers serializers, MalformedStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart index e8b68cd1f3..c49238d50c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedStringInput extends MalformedStringInput { @override final _i3.JsonObject? blob; - factory _$MalformedStringInput( - [void Function(MalformedStringInputBuilder)? updates]) => - (new MalformedStringInputBuilder()..update(updates))._build(); + factory _$MalformedStringInput([ + void Function(MalformedStringInputBuilder)? updates, + ]) => (new MalformedStringInputBuilder()..update(updates))._build(); _$MalformedStringInput._({this.blob}) : super._(); @override MalformedStringInput rebuild( - void Function(MalformedStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedStringInputBuilder toBuilder() => @@ -81,16 +81,16 @@ class MalformedStringInputBuilder } class _$MalformedStringInputPayload extends MalformedStringInputPayload { - factory _$MalformedStringInputPayload( - [void Function(MalformedStringInputPayloadBuilder)? updates]) => - (new MalformedStringInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedStringInputPayload([ + void Function(MalformedStringInputPayloadBuilder)? updates, + ]) => (new MalformedStringInputPayloadBuilder()..update(updates))._build(); _$MalformedStringInputPayload._() : super._(); @override MalformedStringInputPayload rebuild( - void Function(MalformedStringInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedStringInputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$MalformedStringInputPayload extends MalformedStringInputPayload { class MalformedStringInputPayloadBuilder implements - Builder { + Builder< + MalformedStringInputPayload, + MalformedStringInputPayloadBuilder + > { _$MalformedStringInputPayload? _$v; MalformedStringInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart index a9404ec176..519a2b459c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_body_date_time_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class MalformedTimestampBodyDateTimeInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInputBuilder + > { factory MalformedTimestampBodyDateTimeInput({required DateTime timestamp}) { return _$MalformedTimestampBodyDateTimeInput._(timestamp: timestamp); } - factory MalformedTimestampBodyDateTimeInput.build( - [void Function(MalformedTimestampBodyDateTimeInputBuilder) updates]) = - _$MalformedTimestampBodyDateTimeInput; + factory MalformedTimestampBodyDateTimeInput.build([ + void Function(MalformedTimestampBodyDateTimeInputBuilder) updates, + ]) = _$MalformedTimestampBodyDateTimeInput; const MalformedTimestampBodyDateTimeInput._(); @@ -31,11 +33,10 @@ abstract class MalformedTimestampBodyDateTimeInput MalformedTimestampBodyDateTimeInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedTimestampBodyDateTimeInputRestJson1Serializer()]; + serializers = [MalformedTimestampBodyDateTimeInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -46,34 +47,29 @@ abstract class MalformedTimestampBodyDateTimeInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampBodyDateTimeInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampBodyDateTimeInput', + )..add('timestamp', timestamp); return helper.toString(); } } -class MalformedTimestampBodyDateTimeInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampBodyDateTimeInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const MalformedTimestampBodyDateTimeInputRestJson1Serializer() - : super('MalformedTimestampBodyDateTimeInput'); + : super('MalformedTimestampBodyDateTimeInput'); @override Iterable get types => const [ - MalformedTimestampBodyDateTimeInput, - _$MalformedTimestampBodyDateTimeInput, - ]; + MalformedTimestampBodyDateTimeInput, + _$MalformedTimestampBodyDateTimeInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampBodyDateTimeInput deserialize( @@ -112,10 +108,7 @@ class MalformedTimestampBodyDateTimeInputRestJson1Serializer extends _i1 final MalformedTimestampBodyDateTimeInput(:timestamp) = object; result$.addAll([ 'timestamp', - _i1.TimestampSerializer.dateTime.serialize( - serializers, - timestamp, - ), + _i1.TimestampSerializer.dateTime.serialize(serializers, timestamp), ]); return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart index 0d10ece765..656a793571 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampBodyDateTimeInput @override final DateTime timestamp; - factory _$MalformedTimestampBodyDateTimeInput( - [void Function(MalformedTimestampBodyDateTimeInputBuilder)? - updates]) => + factory _$MalformedTimestampBodyDateTimeInput([ + void Function(MalformedTimestampBodyDateTimeInputBuilder)? updates, + ]) => (new MalformedTimestampBodyDateTimeInputBuilder()..update(updates)) ._build(); _$MalformedTimestampBodyDateTimeInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyDateTimeInput', 'timestamp'); + timestamp, + r'MalformedTimestampBodyDateTimeInput', + 'timestamp', + ); } @override MalformedTimestampBodyDateTimeInput rebuild( - void Function(MalformedTimestampBodyDateTimeInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampBodyDateTimeInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampBodyDateTimeInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampBodyDateTimeInput class MalformedTimestampBodyDateTimeInputBuilder implements - Builder { + Builder< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInputBuilder + > { _$MalformedTimestampBodyDateTimeInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampBodyDateTimeInputBuilder @override void update( - void Function(MalformedTimestampBodyDateTimeInputBuilder)? updates) { + void Function(MalformedTimestampBodyDateTimeInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampBodyDateTimeInputBuilder MalformedTimestampBodyDateTimeInput build() => _build(); _$MalformedTimestampBodyDateTimeInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampBodyDateTimeInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampBodyDateTimeInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampBodyDateTimeInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart index 03be088d8a..afc2a63f57 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_body_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class MalformedTimestampBodyDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInputBuilder + > { factory MalformedTimestampBodyDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampBodyDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampBodyDefaultInput.build( - [void Function(MalformedTimestampBodyDefaultInputBuilder) updates]) = - _$MalformedTimestampBodyDefaultInput; + factory MalformedTimestampBodyDefaultInput.build([ + void Function(MalformedTimestampBodyDefaultInputBuilder) updates, + ]) = _$MalformedTimestampBodyDefaultInput; const MalformedTimestampBodyDefaultInput._(); @@ -31,11 +33,10 @@ abstract class MalformedTimestampBodyDefaultInput MalformedTimestampBodyDefaultInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedTimestampBodyDefaultInputRestJson1Serializer()]; + serializers = [MalformedTimestampBodyDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -46,12 +47,9 @@ abstract class MalformedTimestampBodyDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampBodyDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampBodyDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @@ -59,21 +57,18 @@ abstract class MalformedTimestampBodyDefaultInput class MalformedTimestampBodyDefaultInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedTimestampBodyDefaultInputRestJson1Serializer() - : super('MalformedTimestampBodyDefaultInput'); + : super('MalformedTimestampBodyDefaultInput'); @override Iterable get types => const [ - MalformedTimestampBodyDefaultInput, - _$MalformedTimestampBodyDefaultInput, - ]; + MalformedTimestampBodyDefaultInput, + _$MalformedTimestampBodyDefaultInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampBodyDefaultInput deserialize( @@ -92,10 +87,12 @@ class MalformedTimestampBodyDefaultInputRestJson1Serializer } switch (key) { case 'timestamp': - result.timestamp = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.timestamp = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -112,10 +109,7 @@ class MalformedTimestampBodyDefaultInputRestJson1Serializer final MalformedTimestampBodyDefaultInput(:timestamp) = object; result$.addAll([ 'timestamp', - serializers.serialize( - timestamp, - specifiedType: const FullType(DateTime), - ), + serializers.serialize(timestamp, specifiedType: const FullType(DateTime)), ]); return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart index bd4f746563..3dff43c189 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampBodyDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampBodyDefaultInput( - [void Function(MalformedTimestampBodyDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampBodyDefaultInput([ + void Function(MalformedTimestampBodyDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampBodyDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampBodyDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampBodyDefaultInput', + 'timestamp', + ); } @override MalformedTimestampBodyDefaultInput rebuild( - void Function(MalformedTimestampBodyDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampBodyDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampBodyDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampBodyDefaultInput class MalformedTimestampBodyDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInputBuilder + > { _$MalformedTimestampBodyDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampBodyDefaultInputBuilder @override void update( - void Function(MalformedTimestampBodyDefaultInputBuilder)? updates) { + void Function(MalformedTimestampBodyDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampBodyDefaultInputBuilder MalformedTimestampBodyDefaultInput build() => _build(); _$MalformedTimestampBodyDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampBodyDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampBodyDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart index 50db492ec7..e69a3c0316 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_body_http_date_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class MalformedTimestampBodyHttpDateInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInputBuilder + > { factory MalformedTimestampBodyHttpDateInput({required DateTime timestamp}) { return _$MalformedTimestampBodyHttpDateInput._(timestamp: timestamp); } - factory MalformedTimestampBodyHttpDateInput.build( - [void Function(MalformedTimestampBodyHttpDateInputBuilder) updates]) = - _$MalformedTimestampBodyHttpDateInput; + factory MalformedTimestampBodyHttpDateInput.build([ + void Function(MalformedTimestampBodyHttpDateInputBuilder) updates, + ]) = _$MalformedTimestampBodyHttpDateInput; const MalformedTimestampBodyHttpDateInput._(); @@ -31,11 +33,10 @@ abstract class MalformedTimestampBodyHttpDateInput MalformedTimestampBodyHttpDateInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedTimestampBodyHttpDateInputRestJson1Serializer()]; + serializers = [MalformedTimestampBodyHttpDateInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -46,34 +47,29 @@ abstract class MalformedTimestampBodyHttpDateInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampBodyHttpDateInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampBodyHttpDateInput', + )..add('timestamp', timestamp); return helper.toString(); } } -class MalformedTimestampBodyHttpDateInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampBodyHttpDateInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const MalformedTimestampBodyHttpDateInputRestJson1Serializer() - : super('MalformedTimestampBodyHttpDateInput'); + : super('MalformedTimestampBodyHttpDateInput'); @override Iterable get types => const [ - MalformedTimestampBodyHttpDateInput, - _$MalformedTimestampBodyHttpDateInput, - ]; + MalformedTimestampBodyHttpDateInput, + _$MalformedTimestampBodyHttpDateInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampBodyHttpDateInput deserialize( @@ -112,10 +108,7 @@ class MalformedTimestampBodyHttpDateInputRestJson1Serializer extends _i1 final MalformedTimestampBodyHttpDateInput(:timestamp) = object; result$.addAll([ 'timestamp', - _i1.TimestampSerializer.httpDate.serialize( - serializers, - timestamp, - ), + _i1.TimestampSerializer.httpDate.serialize(serializers, timestamp), ]); return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart index 5cadff6427..1c9dc003c9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampBodyHttpDateInput @override final DateTime timestamp; - factory _$MalformedTimestampBodyHttpDateInput( - [void Function(MalformedTimestampBodyHttpDateInputBuilder)? - updates]) => + factory _$MalformedTimestampBodyHttpDateInput([ + void Function(MalformedTimestampBodyHttpDateInputBuilder)? updates, + ]) => (new MalformedTimestampBodyHttpDateInputBuilder()..update(updates)) ._build(); _$MalformedTimestampBodyHttpDateInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyHttpDateInput', 'timestamp'); + timestamp, + r'MalformedTimestampBodyHttpDateInput', + 'timestamp', + ); } @override MalformedTimestampBodyHttpDateInput rebuild( - void Function(MalformedTimestampBodyHttpDateInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampBodyHttpDateInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampBodyHttpDateInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampBodyHttpDateInput class MalformedTimestampBodyHttpDateInputBuilder implements - Builder { + Builder< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInputBuilder + > { _$MalformedTimestampBodyHttpDateInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampBodyHttpDateInputBuilder @override void update( - void Function(MalformedTimestampBodyHttpDateInputBuilder)? updates) { + void Function(MalformedTimestampBodyHttpDateInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampBodyHttpDateInputBuilder MalformedTimestampBodyHttpDateInput build() => _build(); _$MalformedTimestampBodyHttpDateInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampBodyHttpDateInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampBodyHttpDateInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampBodyHttpDateInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart index 77fc028afb..8532824e96 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_header_date_time_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampHeaderDateTimeInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDateTimeInput, + MalformedTimestampHeaderDateTimeInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampHeaderDateTimeInput({required DateTime timestamp}) { return _$MalformedTimestampHeaderDateTimeInput._(timestamp: timestamp); } - factory MalformedTimestampHeaderDateTimeInput.build( - [void Function(MalformedTimestampHeaderDateTimeInputBuilder) - updates]) = _$MalformedTimestampHeaderDateTimeInput; + factory MalformedTimestampHeaderDateTimeInput.build([ + void Function(MalformedTimestampHeaderDateTimeInputBuilder) updates, + ]) = _$MalformedTimestampHeaderDateTimeInput; const MalformedTimestampHeaderDateTimeInput._(); @@ -34,21 +36,20 @@ abstract class MalformedTimestampHeaderDateTimeInput MalformedTimestampHeaderDateTimeInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampHeaderDateTimeInput.build((b) { - if (request.headers['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampHeaderDateTimeInput.build((b) { + if (request.headers['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.headers['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [ - MalformedTimestampHeaderDateTimeInputRestJson1Serializer() - ]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampHeaderDateTimeInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -60,27 +61,25 @@ abstract class MalformedTimestampHeaderDateTimeInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampHeaderDateTimeInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampHeaderDateTimeInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampHeaderDateTimeInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampHeaderDateTimeInputPayload( - [void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) - updates]) = _$MalformedTimestampHeaderDateTimeInputPayload; + factory MalformedTimestampHeaderDateTimeInputPayload([ + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) updates, + ]) = _$MalformedTimestampHeaderDateTimeInputPayload; const MalformedTimestampHeaderDateTimeInputPayload._(); @@ -90,31 +89,32 @@ abstract class MalformedTimestampHeaderDateTimeInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampHeaderDateTimeInputPayload'); + 'MalformedTimestampHeaderDateTimeInputPayload', + ); return helper.toString(); } } -class MalformedTimestampHeaderDateTimeInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampHeaderDateTimeInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampHeaderDateTimeInputPayload + > { const MalformedTimestampHeaderDateTimeInputRestJson1Serializer() - : super('MalformedTimestampHeaderDateTimeInput'); + : super('MalformedTimestampHeaderDateTimeInput'); @override Iterable get types => const [ - MalformedTimestampHeaderDateTimeInput, - _$MalformedTimestampHeaderDateTimeInput, - MalformedTimestampHeaderDateTimeInputPayload, - _$MalformedTimestampHeaderDateTimeInputPayload, - ]; + MalformedTimestampHeaderDateTimeInput, + _$MalformedTimestampHeaderDateTimeInput, + MalformedTimestampHeaderDateTimeInputPayload, + _$MalformedTimestampHeaderDateTimeInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampHeaderDateTimeInputPayload deserialize( @@ -130,6 +130,5 @@ class MalformedTimestampHeaderDateTimeInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampHeaderDateTimeInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart index 6be4be2bdd..53b2c1c8dd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart @@ -11,23 +11,25 @@ class _$MalformedTimestampHeaderDateTimeInput @override final DateTime timestamp; - factory _$MalformedTimestampHeaderDateTimeInput( - [void Function(MalformedTimestampHeaderDateTimeInputBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDateTimeInput([ + void Function(MalformedTimestampHeaderDateTimeInputBuilder)? updates, + ]) => (new MalformedTimestampHeaderDateTimeInputBuilder()..update(updates)) ._build(); _$MalformedTimestampHeaderDateTimeInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderDateTimeInput', 'timestamp'); + timestamp, + r'MalformedTimestampHeaderDateTimeInput', + 'timestamp', + ); } @override MalformedTimestampHeaderDateTimeInput rebuild( - void Function(MalformedTimestampHeaderDateTimeInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDateTimeInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDateTimeInputBuilder toBuilder() => @@ -51,8 +53,10 @@ class _$MalformedTimestampHeaderDateTimeInput class MalformedTimestampHeaderDateTimeInputBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDateTimeInput, + MalformedTimestampHeaderDateTimeInputBuilder + > { _$MalformedTimestampHeaderDateTimeInput? _$v; DateTime? _timestamp; @@ -78,7 +82,8 @@ class MalformedTimestampHeaderDateTimeInputBuilder @override void update( - void Function(MalformedTimestampHeaderDateTimeInputBuilder)? updates) { + void Function(MalformedTimestampHeaderDateTimeInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -86,10 +91,15 @@ class MalformedTimestampHeaderDateTimeInputBuilder MalformedTimestampHeaderDateTimeInput build() => _build(); _$MalformedTimestampHeaderDateTimeInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampHeaderDateTimeInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampHeaderDateTimeInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampHeaderDateTimeInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -97,9 +107,9 @@ class MalformedTimestampHeaderDateTimeInputBuilder class _$MalformedTimestampHeaderDateTimeInputPayload extends MalformedTimestampHeaderDateTimeInputPayload { - factory _$MalformedTimestampHeaderDateTimeInputPayload( - [void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDateTimeInputPayload([ + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampHeaderDateTimeInputPayloadBuilder() ..update(updates)) ._build(); @@ -108,9 +118,8 @@ class _$MalformedTimestampHeaderDateTimeInputPayload @override MalformedTimestampHeaderDateTimeInputPayload rebuild( - void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDateTimeInputPayloadBuilder toBuilder() => @@ -130,8 +139,10 @@ class _$MalformedTimestampHeaderDateTimeInputPayload class MalformedTimestampHeaderDateTimeInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInputPayloadBuilder + > { _$MalformedTimestampHeaderDateTimeInputPayload? _$v; MalformedTimestampHeaderDateTimeInputPayloadBuilder(); @@ -144,8 +155,8 @@ class MalformedTimestampHeaderDateTimeInputPayloadBuilder @override void update( - void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart index 6f8efeb032..708e27b914 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_header_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampHeaderDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDefaultInput, + MalformedTimestampHeaderDefaultInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampHeaderDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampHeaderDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampHeaderDefaultInput.build( - [void Function(MalformedTimestampHeaderDefaultInputBuilder) - updates]) = _$MalformedTimestampHeaderDefaultInput; + factory MalformedTimestampHeaderDefaultInput.build([ + void Function(MalformedTimestampHeaderDefaultInputBuilder) updates, + ]) = _$MalformedTimestampHeaderDefaultInput; const MalformedTimestampHeaderDefaultInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampHeaderDefaultInput MalformedTimestampHeaderDefaultInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampHeaderDefaultInput.build((b) { - if (request.headers['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampHeaderDefaultInput.build((b) { + if (request.headers['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.headers['timestamp']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampHeaderDefaultInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampHeaderDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampHeaderDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampHeaderDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampHeaderDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampHeaderDefaultInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampHeaderDefaultInputPayload( - [void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) - updates]) = _$MalformedTimestampHeaderDefaultInputPayload; + factory MalformedTimestampHeaderDefaultInputPayload([ + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) updates, + ]) = _$MalformedTimestampHeaderDefaultInputPayload; const MalformedTimestampHeaderDefaultInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampHeaderDefaultInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampHeaderDefaultInputPayload'); + 'MalformedTimestampHeaderDefaultInputPayload', + ); return helper.toString(); } } -class MalformedTimestampHeaderDefaultInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampHeaderDefaultInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampHeaderDefaultInputPayload + > { const MalformedTimestampHeaderDefaultInputRestJson1Serializer() - : super('MalformedTimestampHeaderDefaultInput'); + : super('MalformedTimestampHeaderDefaultInput'); @override Iterable get types => const [ - MalformedTimestampHeaderDefaultInput, - _$MalformedTimestampHeaderDefaultInput, - MalformedTimestampHeaderDefaultInputPayload, - _$MalformedTimestampHeaderDefaultInputPayload, - ]; + MalformedTimestampHeaderDefaultInput, + _$MalformedTimestampHeaderDefaultInput, + MalformedTimestampHeaderDefaultInputPayload, + _$MalformedTimestampHeaderDefaultInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampHeaderDefaultInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampHeaderDefaultInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampHeaderDefaultInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart index 1577e96471..cc419a5fe1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampHeaderDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampHeaderDefaultInput( - [void Function(MalformedTimestampHeaderDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDefaultInput([ + void Function(MalformedTimestampHeaderDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampHeaderDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampHeaderDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampHeaderDefaultInput', + 'timestamp', + ); } @override MalformedTimestampHeaderDefaultInput rebuild( - void Function(MalformedTimestampHeaderDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampHeaderDefaultInput class MalformedTimestampHeaderDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDefaultInput, + MalformedTimestampHeaderDefaultInputBuilder + > { _$MalformedTimestampHeaderDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampHeaderDefaultInputBuilder @override void update( - void Function(MalformedTimestampHeaderDefaultInputBuilder)? updates) { + void Function(MalformedTimestampHeaderDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampHeaderDefaultInputBuilder MalformedTimestampHeaderDefaultInput build() => _build(); _$MalformedTimestampHeaderDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampHeaderDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampHeaderDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampHeaderDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampHeaderDefaultInputBuilder class _$MalformedTimestampHeaderDefaultInputPayload extends MalformedTimestampHeaderDefaultInputPayload { - factory _$MalformedTimestampHeaderDefaultInputPayload( - [void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDefaultInputPayload([ + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampHeaderDefaultInputPayloadBuilder() ..update(updates)) ._build(); @@ -107,9 +118,8 @@ class _$MalformedTimestampHeaderDefaultInputPayload @override MalformedTimestampHeaderDefaultInputPayload rebuild( - void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDefaultInputPayloadBuilder toBuilder() => @@ -129,8 +139,10 @@ class _$MalformedTimestampHeaderDefaultInputPayload class MalformedTimestampHeaderDefaultInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInputPayloadBuilder + > { _$MalformedTimestampHeaderDefaultInputPayload? _$v; MalformedTimestampHeaderDefaultInputPayloadBuilder(); @@ -143,8 +155,8 @@ class MalformedTimestampHeaderDefaultInputPayloadBuilder @override void update( - void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart index d2378ed363..019972d81c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_header_epoch_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampHeaderEpochInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderEpochInput, + MalformedTimestampHeaderEpochInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampHeaderEpochInput({required DateTime timestamp}) { return _$MalformedTimestampHeaderEpochInput._(timestamp: timestamp); } - factory MalformedTimestampHeaderEpochInput.build( - [void Function(MalformedTimestampHeaderEpochInputBuilder) updates]) = - _$MalformedTimestampHeaderEpochInput; + factory MalformedTimestampHeaderEpochInput.build([ + void Function(MalformedTimestampHeaderEpochInputBuilder) updates, + ]) = _$MalformedTimestampHeaderEpochInput; const MalformedTimestampHeaderEpochInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampHeaderEpochInput MalformedTimestampHeaderEpochInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampHeaderEpochInput.build((b) { - if (request.headers['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampHeaderEpochInput.build((b) { + if (request.headers['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( int.parse(request.headers['timestamp']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampHeaderEpochInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampHeaderEpochInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampHeaderEpochInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampHeaderEpochInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampHeaderEpochInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampHeaderEpochInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampHeaderEpochInputPayload( - [void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) - updates]) = _$MalformedTimestampHeaderEpochInputPayload; + factory MalformedTimestampHeaderEpochInputPayload([ + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) updates, + ]) = _$MalformedTimestampHeaderEpochInputPayload; const MalformedTimestampHeaderEpochInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampHeaderEpochInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampHeaderEpochInputPayload'); + 'MalformedTimestampHeaderEpochInputPayload', + ); return helper.toString(); } } -class MalformedTimestampHeaderEpochInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampHeaderEpochInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampHeaderEpochInputPayload + > { const MalformedTimestampHeaderEpochInputRestJson1Serializer() - : super('MalformedTimestampHeaderEpochInput'); + : super('MalformedTimestampHeaderEpochInput'); @override Iterable get types => const [ - MalformedTimestampHeaderEpochInput, - _$MalformedTimestampHeaderEpochInput, - MalformedTimestampHeaderEpochInputPayload, - _$MalformedTimestampHeaderEpochInputPayload, - ]; + MalformedTimestampHeaderEpochInput, + _$MalformedTimestampHeaderEpochInput, + MalformedTimestampHeaderEpochInputPayload, + _$MalformedTimestampHeaderEpochInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampHeaderEpochInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampHeaderEpochInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampHeaderEpochInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart index 8680768fb1..5c22ef7d86 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampHeaderEpochInput @override final DateTime timestamp; - factory _$MalformedTimestampHeaderEpochInput( - [void Function(MalformedTimestampHeaderEpochInputBuilder)? - updates]) => + factory _$MalformedTimestampHeaderEpochInput([ + void Function(MalformedTimestampHeaderEpochInputBuilder)? updates, + ]) => (new MalformedTimestampHeaderEpochInputBuilder()..update(updates)) ._build(); _$MalformedTimestampHeaderEpochInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderEpochInput', 'timestamp'); + timestamp, + r'MalformedTimestampHeaderEpochInput', + 'timestamp', + ); } @override MalformedTimestampHeaderEpochInput rebuild( - void Function(MalformedTimestampHeaderEpochInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderEpochInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderEpochInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampHeaderEpochInput class MalformedTimestampHeaderEpochInputBuilder implements - Builder { + Builder< + MalformedTimestampHeaderEpochInput, + MalformedTimestampHeaderEpochInputBuilder + > { _$MalformedTimestampHeaderEpochInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampHeaderEpochInputBuilder @override void update( - void Function(MalformedTimestampHeaderEpochInputBuilder)? updates) { + void Function(MalformedTimestampHeaderEpochInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampHeaderEpochInputBuilder MalformedTimestampHeaderEpochInput build() => _build(); _$MalformedTimestampHeaderEpochInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampHeaderEpochInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderEpochInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampHeaderEpochInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampHeaderEpochInputBuilder class _$MalformedTimestampHeaderEpochInputPayload extends MalformedTimestampHeaderEpochInputPayload { - factory _$MalformedTimestampHeaderEpochInputPayload( - [void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampHeaderEpochInputPayload([ + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampHeaderEpochInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampHeaderEpochInputPayload @override MalformedTimestampHeaderEpochInputPayload rebuild( - void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderEpochInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampHeaderEpochInputPayload class MalformedTimestampHeaderEpochInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInputPayloadBuilder + > { _$MalformedTimestampHeaderEpochInputPayload? _$v; MalformedTimestampHeaderEpochInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampHeaderEpochInputPayloadBuilder @override void update( - void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart index cae3f34c25..8c7abeefc3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_path_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampPathDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathDefaultInput, + MalformedTimestampPathDefaultInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampPathDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampPathDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampPathDefaultInput.build( - [void Function(MalformedTimestampPathDefaultInputBuilder) updates]) = - _$MalformedTimestampPathDefaultInput; + factory MalformedTimestampPathDefaultInput.build([ + void Function(MalformedTimestampPathDefaultInputBuilder) updates, + ]) = _$MalformedTimestampPathDefaultInput; const MalformedTimestampPathDefaultInput._(); @@ -34,33 +36,31 @@ abstract class MalformedTimestampPathDefaultInput MalformedTimestampPathDefaultInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampPathDefaultInput.build((b) { - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampPathDefaultInput.build((b) { + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampPathDefaultInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampPathDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override String labelFor(String key) { switch (key) { case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -72,27 +72,25 @@ abstract class MalformedTimestampPathDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampPathDefaultInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampPathDefaultInputPayload( - [void Function(MalformedTimestampPathDefaultInputPayloadBuilder) - updates]) = _$MalformedTimestampPathDefaultInputPayload; + factory MalformedTimestampPathDefaultInputPayload([ + void Function(MalformedTimestampPathDefaultInputPayloadBuilder) updates, + ]) = _$MalformedTimestampPathDefaultInputPayload; const MalformedTimestampPathDefaultInputPayload._(); @@ -102,31 +100,32 @@ abstract class MalformedTimestampPathDefaultInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampPathDefaultInputPayload'); + 'MalformedTimestampPathDefaultInputPayload', + ); return helper.toString(); } } -class MalformedTimestampPathDefaultInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampPathDefaultInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampPathDefaultInputPayload + > { const MalformedTimestampPathDefaultInputRestJson1Serializer() - : super('MalformedTimestampPathDefaultInput'); + : super('MalformedTimestampPathDefaultInput'); @override Iterable get types => const [ - MalformedTimestampPathDefaultInput, - _$MalformedTimestampPathDefaultInput, - MalformedTimestampPathDefaultInputPayload, - _$MalformedTimestampPathDefaultInputPayload, - ]; + MalformedTimestampPathDefaultInput, + _$MalformedTimestampPathDefaultInput, + MalformedTimestampPathDefaultInputPayload, + _$MalformedTimestampPathDefaultInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampPathDefaultInputPayload deserialize( @@ -142,6 +141,5 @@ class MalformedTimestampPathDefaultInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampPathDefaultInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart index 6891ac160d..043062bc5d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampPathDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampPathDefaultInput( - [void Function(MalformedTimestampPathDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampPathDefaultInput([ + void Function(MalformedTimestampPathDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampPathDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampPathDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampPathDefaultInput', + 'timestamp', + ); } @override MalformedTimestampPathDefaultInput rebuild( - void Function(MalformedTimestampPathDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampPathDefaultInput class MalformedTimestampPathDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampPathDefaultInput, + MalformedTimestampPathDefaultInputBuilder + > { _$MalformedTimestampPathDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampPathDefaultInputBuilder @override void update( - void Function(MalformedTimestampPathDefaultInputBuilder)? updates) { + void Function(MalformedTimestampPathDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampPathDefaultInputBuilder MalformedTimestampPathDefaultInput build() => _build(); _$MalformedTimestampPathDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampPathDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampPathDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampPathDefaultInputBuilder class _$MalformedTimestampPathDefaultInputPayload extends MalformedTimestampPathDefaultInputPayload { - factory _$MalformedTimestampPathDefaultInputPayload( - [void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampPathDefaultInputPayload([ + void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampPathDefaultInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampPathDefaultInputPayload @override MalformedTimestampPathDefaultInputPayload rebuild( - void Function(MalformedTimestampPathDefaultInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathDefaultInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathDefaultInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampPathDefaultInputPayload class MalformedTimestampPathDefaultInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInputPayloadBuilder + > { _$MalformedTimestampPathDefaultInputPayload? _$v; MalformedTimestampPathDefaultInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampPathDefaultInputPayloadBuilder @override void update( - void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart index e5fc11df46..0a3b9c3fdd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_path_epoch_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampPathEpochInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathEpochInput, + MalformedTimestampPathEpochInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampPathEpochInput({required DateTime timestamp}) { return _$MalformedTimestampPathEpochInput._(timestamp: timestamp); } - factory MalformedTimestampPathEpochInput.build( - [void Function(MalformedTimestampPathEpochInputBuilder) updates]) = - _$MalformedTimestampPathEpochInput; + factory MalformedTimestampPathEpochInput.build([ + void Function(MalformedTimestampPathEpochInputBuilder) updates, + ]) = _$MalformedTimestampPathEpochInput; const MalformedTimestampPathEpochInput._(); @@ -34,33 +36,31 @@ abstract class MalformedTimestampPathEpochInput MalformedTimestampPathEpochInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampPathEpochInput.build((b) { - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampPathEpochInput.build((b) { + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( int.parse(labels['timestamp']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampPathEpochInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampPathEpochInputRestJson1Serializer()]; DateTime get timestamp; @override String labelFor(String key) { switch (key) { case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -72,27 +72,25 @@ abstract class MalformedTimestampPathEpochInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathEpochInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathEpochInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampPathEpochInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampPathEpochInputPayload( - [void Function(MalformedTimestampPathEpochInputPayloadBuilder) - updates]) = _$MalformedTimestampPathEpochInputPayload; + factory MalformedTimestampPathEpochInputPayload([ + void Function(MalformedTimestampPathEpochInputPayloadBuilder) updates, + ]) = _$MalformedTimestampPathEpochInputPayload; const MalformedTimestampPathEpochInputPayload._(); @@ -101,32 +99,33 @@ abstract class MalformedTimestampPathEpochInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathEpochInputPayload'); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathEpochInputPayload', + ); return helper.toString(); } } -class MalformedTimestampPathEpochInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampPathEpochInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampPathEpochInputPayload + > { const MalformedTimestampPathEpochInputRestJson1Serializer() - : super('MalformedTimestampPathEpochInput'); + : super('MalformedTimestampPathEpochInput'); @override Iterable get types => const [ - MalformedTimestampPathEpochInput, - _$MalformedTimestampPathEpochInput, - MalformedTimestampPathEpochInputPayload, - _$MalformedTimestampPathEpochInputPayload, - ]; + MalformedTimestampPathEpochInput, + _$MalformedTimestampPathEpochInput, + MalformedTimestampPathEpochInputPayload, + _$MalformedTimestampPathEpochInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampPathEpochInputPayload deserialize( @@ -142,6 +141,5 @@ class MalformedTimestampPathEpochInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampPathEpochInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart index 592caa7325..95971f4431 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart @@ -11,19 +11,23 @@ class _$MalformedTimestampPathEpochInput @override final DateTime timestamp; - factory _$MalformedTimestampPathEpochInput( - [void Function(MalformedTimestampPathEpochInputBuilder)? updates]) => + factory _$MalformedTimestampPathEpochInput([ + void Function(MalformedTimestampPathEpochInputBuilder)? updates, + ]) => (new MalformedTimestampPathEpochInputBuilder()..update(updates))._build(); _$MalformedTimestampPathEpochInput._({required this.timestamp}) : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathEpochInput', 'timestamp'); + timestamp, + r'MalformedTimestampPathEpochInput', + 'timestamp', + ); } @override MalformedTimestampPathEpochInput rebuild( - void Function(MalformedTimestampPathEpochInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathEpochInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathEpochInputBuilder toBuilder() => @@ -47,8 +51,10 @@ class _$MalformedTimestampPathEpochInput class MalformedTimestampPathEpochInputBuilder implements - Builder { + Builder< + MalformedTimestampPathEpochInput, + MalformedTimestampPathEpochInputBuilder + > { _$MalformedTimestampPathEpochInput? _$v; DateTime? _timestamp; @@ -81,10 +87,15 @@ class MalformedTimestampPathEpochInputBuilder MalformedTimestampPathEpochInput build() => _build(); _$MalformedTimestampPathEpochInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampPathEpochInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathEpochInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampPathEpochInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -92,9 +103,9 @@ class MalformedTimestampPathEpochInputBuilder class _$MalformedTimestampPathEpochInputPayload extends MalformedTimestampPathEpochInputPayload { - factory _$MalformedTimestampPathEpochInputPayload( - [void Function(MalformedTimestampPathEpochInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampPathEpochInputPayload([ + void Function(MalformedTimestampPathEpochInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampPathEpochInputPayloadBuilder()..update(updates)) ._build(); @@ -102,9 +113,8 @@ class _$MalformedTimestampPathEpochInputPayload @override MalformedTimestampPathEpochInputPayload rebuild( - void Function(MalformedTimestampPathEpochInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathEpochInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathEpochInputPayloadBuilder toBuilder() => @@ -124,8 +134,10 @@ class _$MalformedTimestampPathEpochInputPayload class MalformedTimestampPathEpochInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInputPayloadBuilder + > { _$MalformedTimestampPathEpochInputPayload? _$v; MalformedTimestampPathEpochInputPayloadBuilder(); @@ -138,7 +150,8 @@ class MalformedTimestampPathEpochInputPayloadBuilder @override void update( - void Function(MalformedTimestampPathEpochInputPayloadBuilder)? updates) { + void Function(MalformedTimestampPathEpochInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart index 6db2d13971..d020aeeb8a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_path_http_date_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampPathHttpDateInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathHttpDateInput, + MalformedTimestampPathHttpDateInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampPathHttpDateInput({required DateTime timestamp}) { return _$MalformedTimestampPathHttpDateInput._(timestamp: timestamp); } - factory MalformedTimestampPathHttpDateInput.build( - [void Function(MalformedTimestampPathHttpDateInputBuilder) updates]) = - _$MalformedTimestampPathHttpDateInput; + factory MalformedTimestampPathHttpDateInput.build([ + void Function(MalformedTimestampPathHttpDateInputBuilder) updates, + ]) = _$MalformedTimestampPathHttpDateInput; const MalformedTimestampPathHttpDateInput._(); @@ -34,33 +36,31 @@ abstract class MalformedTimestampPathHttpDateInput MalformedTimestampPathHttpDateInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampPathHttpDateInput.build((b) { - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampPathHttpDateInput.build((b) { + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampPathHttpDateInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampPathHttpDateInputRestJson1Serializer()]; DateTime get timestamp; @override String labelFor(String key) { switch (key) { case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.httpDate).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -72,27 +72,25 @@ abstract class MalformedTimestampPathHttpDateInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathHttpDateInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathHttpDateInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampPathHttpDateInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampPathHttpDateInputPayload( - [void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) - updates]) = _$MalformedTimestampPathHttpDateInputPayload; + factory MalformedTimestampPathHttpDateInputPayload([ + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) updates, + ]) = _$MalformedTimestampPathHttpDateInputPayload; const MalformedTimestampPathHttpDateInputPayload._(); @@ -102,31 +100,32 @@ abstract class MalformedTimestampPathHttpDateInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampPathHttpDateInputPayload'); + 'MalformedTimestampPathHttpDateInputPayload', + ); return helper.toString(); } } -class MalformedTimestampPathHttpDateInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampPathHttpDateInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampPathHttpDateInputPayload + > { const MalformedTimestampPathHttpDateInputRestJson1Serializer() - : super('MalformedTimestampPathHttpDateInput'); + : super('MalformedTimestampPathHttpDateInput'); @override Iterable get types => const [ - MalformedTimestampPathHttpDateInput, - _$MalformedTimestampPathHttpDateInput, - MalformedTimestampPathHttpDateInputPayload, - _$MalformedTimestampPathHttpDateInputPayload, - ]; + MalformedTimestampPathHttpDateInput, + _$MalformedTimestampPathHttpDateInput, + MalformedTimestampPathHttpDateInputPayload, + _$MalformedTimestampPathHttpDateInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampPathHttpDateInputPayload deserialize( @@ -142,6 +141,5 @@ class MalformedTimestampPathHttpDateInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampPathHttpDateInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart index b03477af41..a4e18f5297 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampPathHttpDateInput @override final DateTime timestamp; - factory _$MalformedTimestampPathHttpDateInput( - [void Function(MalformedTimestampPathHttpDateInputBuilder)? - updates]) => + factory _$MalformedTimestampPathHttpDateInput([ + void Function(MalformedTimestampPathHttpDateInputBuilder)? updates, + ]) => (new MalformedTimestampPathHttpDateInputBuilder()..update(updates)) ._build(); _$MalformedTimestampPathHttpDateInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathHttpDateInput', 'timestamp'); + timestamp, + r'MalformedTimestampPathHttpDateInput', + 'timestamp', + ); } @override MalformedTimestampPathHttpDateInput rebuild( - void Function(MalformedTimestampPathHttpDateInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathHttpDateInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathHttpDateInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampPathHttpDateInput class MalformedTimestampPathHttpDateInputBuilder implements - Builder { + Builder< + MalformedTimestampPathHttpDateInput, + MalformedTimestampPathHttpDateInputBuilder + > { _$MalformedTimestampPathHttpDateInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampPathHttpDateInputBuilder @override void update( - void Function(MalformedTimestampPathHttpDateInputBuilder)? updates) { + void Function(MalformedTimestampPathHttpDateInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampPathHttpDateInputBuilder MalformedTimestampPathHttpDateInput build() => _build(); _$MalformedTimestampPathHttpDateInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampPathHttpDateInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampPathHttpDateInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampPathHttpDateInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampPathHttpDateInputBuilder class _$MalformedTimestampPathHttpDateInputPayload extends MalformedTimestampPathHttpDateInputPayload { - factory _$MalformedTimestampPathHttpDateInputPayload( - [void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampPathHttpDateInputPayload([ + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampPathHttpDateInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampPathHttpDateInputPayload @override MalformedTimestampPathHttpDateInputPayload rebuild( - void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathHttpDateInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampPathHttpDateInputPayload class MalformedTimestampPathHttpDateInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInputPayloadBuilder + > { _$MalformedTimestampPathHttpDateInputPayload? _$v; MalformedTimestampPathHttpDateInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampPathHttpDateInputPayloadBuilder @override void update( - void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart index 0aa38269ff..b1721c8122 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_query_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampQueryDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryDefaultInput, + MalformedTimestampQueryDefaultInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampQueryDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampQueryDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampQueryDefaultInput.build( - [void Function(MalformedTimestampQueryDefaultInputBuilder) updates]) = - _$MalformedTimestampQueryDefaultInput; + factory MalformedTimestampQueryDefaultInput.build([ + void Function(MalformedTimestampQueryDefaultInputBuilder) updates, + ]) = _$MalformedTimestampQueryDefaultInput; const MalformedTimestampQueryDefaultInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampQueryDefaultInput MalformedTimestampQueryDefaultInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampQueryDefaultInput.build((b) { - if (request.queryParameters['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampQueryDefaultInput.build((b) { + if (request.queryParameters['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.queryParameters['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampQueryDefaultInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampQueryDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampQueryDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampQueryDefaultInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampQueryDefaultInputPayload( - [void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) - updates]) = _$MalformedTimestampQueryDefaultInputPayload; + factory MalformedTimestampQueryDefaultInputPayload([ + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) updates, + ]) = _$MalformedTimestampQueryDefaultInputPayload; const MalformedTimestampQueryDefaultInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampQueryDefaultInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampQueryDefaultInputPayload'); + 'MalformedTimestampQueryDefaultInputPayload', + ); return helper.toString(); } } -class MalformedTimestampQueryDefaultInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampQueryDefaultInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampQueryDefaultInputPayload + > { const MalformedTimestampQueryDefaultInputRestJson1Serializer() - : super('MalformedTimestampQueryDefaultInput'); + : super('MalformedTimestampQueryDefaultInput'); @override Iterable get types => const [ - MalformedTimestampQueryDefaultInput, - _$MalformedTimestampQueryDefaultInput, - MalformedTimestampQueryDefaultInputPayload, - _$MalformedTimestampQueryDefaultInputPayload, - ]; + MalformedTimestampQueryDefaultInput, + _$MalformedTimestampQueryDefaultInput, + MalformedTimestampQueryDefaultInputPayload, + _$MalformedTimestampQueryDefaultInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampQueryDefaultInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampQueryDefaultInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampQueryDefaultInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart index 66d5b0bdae..3358f306ea 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampQueryDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampQueryDefaultInput( - [void Function(MalformedTimestampQueryDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampQueryDefaultInput([ + void Function(MalformedTimestampQueryDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampQueryDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampQueryDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampQueryDefaultInput', + 'timestamp', + ); } @override MalformedTimestampQueryDefaultInput rebuild( - void Function(MalformedTimestampQueryDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampQueryDefaultInput class MalformedTimestampQueryDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampQueryDefaultInput, + MalformedTimestampQueryDefaultInputBuilder + > { _$MalformedTimestampQueryDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampQueryDefaultInputBuilder @override void update( - void Function(MalformedTimestampQueryDefaultInputBuilder)? updates) { + void Function(MalformedTimestampQueryDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampQueryDefaultInputBuilder MalformedTimestampQueryDefaultInput build() => _build(); _$MalformedTimestampQueryDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampQueryDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampQueryDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampQueryDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampQueryDefaultInputBuilder class _$MalformedTimestampQueryDefaultInputPayload extends MalformedTimestampQueryDefaultInputPayload { - factory _$MalformedTimestampQueryDefaultInputPayload( - [void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampQueryDefaultInputPayload([ + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampQueryDefaultInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampQueryDefaultInputPayload @override MalformedTimestampQueryDefaultInputPayload rebuild( - void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryDefaultInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampQueryDefaultInputPayload class MalformedTimestampQueryDefaultInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInputPayloadBuilder + > { _$MalformedTimestampQueryDefaultInputPayload? _$v; MalformedTimestampQueryDefaultInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampQueryDefaultInputPayloadBuilder @override void update( - void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart index e0cc4894c9..8572f86524 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_query_epoch_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampQueryEpochInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryEpochInput, + MalformedTimestampQueryEpochInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampQueryEpochInput({required DateTime timestamp}) { return _$MalformedTimestampQueryEpochInput._(timestamp: timestamp); } - factory MalformedTimestampQueryEpochInput.build( - [void Function(MalformedTimestampQueryEpochInputBuilder) updates]) = - _$MalformedTimestampQueryEpochInput; + factory MalformedTimestampQueryEpochInput.build([ + void Function(MalformedTimestampQueryEpochInputBuilder) updates, + ]) = _$MalformedTimestampQueryEpochInput; const MalformedTimestampQueryEpochInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampQueryEpochInput MalformedTimestampQueryEpochInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampQueryEpochInput.build((b) { - if (request.queryParameters['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampQueryEpochInput.build((b) { + if (request.queryParameters['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( int.parse(request.queryParameters['timestamp']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampQueryEpochInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampQueryEpochInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampQueryEpochInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryEpochInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryEpochInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampQueryEpochInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampQueryEpochInputPayload( - [void Function(MalformedTimestampQueryEpochInputPayloadBuilder) - updates]) = _$MalformedTimestampQueryEpochInputPayload; + factory MalformedTimestampQueryEpochInputPayload([ + void Function(MalformedTimestampQueryEpochInputPayloadBuilder) updates, + ]) = _$MalformedTimestampQueryEpochInputPayload; const MalformedTimestampQueryEpochInputPayload._(); @@ -87,32 +88,33 @@ abstract class MalformedTimestampQueryEpochInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryEpochInputPayload'); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryEpochInputPayload', + ); return helper.toString(); } } -class MalformedTimestampQueryEpochInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampQueryEpochInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampQueryEpochInputPayload + > { const MalformedTimestampQueryEpochInputRestJson1Serializer() - : super('MalformedTimestampQueryEpochInput'); + : super('MalformedTimestampQueryEpochInput'); @override Iterable get types => const [ - MalformedTimestampQueryEpochInput, - _$MalformedTimestampQueryEpochInput, - MalformedTimestampQueryEpochInputPayload, - _$MalformedTimestampQueryEpochInputPayload, - ]; + MalformedTimestampQueryEpochInput, + _$MalformedTimestampQueryEpochInput, + MalformedTimestampQueryEpochInputPayload, + _$MalformedTimestampQueryEpochInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampQueryEpochInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampQueryEpochInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampQueryEpochInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart index 4df3438bd2..f8fd67dcec 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart @@ -11,20 +11,24 @@ class _$MalformedTimestampQueryEpochInput @override final DateTime timestamp; - factory _$MalformedTimestampQueryEpochInput( - [void Function(MalformedTimestampQueryEpochInputBuilder)? updates]) => + factory _$MalformedTimestampQueryEpochInput([ + void Function(MalformedTimestampQueryEpochInputBuilder)? updates, + ]) => (new MalformedTimestampQueryEpochInputBuilder()..update(updates)) ._build(); _$MalformedTimestampQueryEpochInput._({required this.timestamp}) : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryEpochInput', 'timestamp'); + timestamp, + r'MalformedTimestampQueryEpochInput', + 'timestamp', + ); } @override MalformedTimestampQueryEpochInput rebuild( - void Function(MalformedTimestampQueryEpochInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryEpochInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryEpochInputBuilder toBuilder() => @@ -48,8 +52,10 @@ class _$MalformedTimestampQueryEpochInput class MalformedTimestampQueryEpochInputBuilder implements - Builder { + Builder< + MalformedTimestampQueryEpochInput, + MalformedTimestampQueryEpochInputBuilder + > { _$MalformedTimestampQueryEpochInput? _$v; DateTime? _timestamp; @@ -75,7 +81,8 @@ class MalformedTimestampQueryEpochInputBuilder @override void update( - void Function(MalformedTimestampQueryEpochInputBuilder)? updates) { + void Function(MalformedTimestampQueryEpochInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -83,10 +90,15 @@ class MalformedTimestampQueryEpochInputBuilder MalformedTimestampQueryEpochInput build() => _build(); _$MalformedTimestampQueryEpochInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampQueryEpochInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryEpochInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampQueryEpochInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -94,9 +106,9 @@ class MalformedTimestampQueryEpochInputBuilder class _$MalformedTimestampQueryEpochInputPayload extends MalformedTimestampQueryEpochInputPayload { - factory _$MalformedTimestampQueryEpochInputPayload( - [void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampQueryEpochInputPayload([ + void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampQueryEpochInputPayloadBuilder()..update(updates)) ._build(); @@ -104,9 +116,8 @@ class _$MalformedTimestampQueryEpochInputPayload @override MalformedTimestampQueryEpochInputPayload rebuild( - void Function(MalformedTimestampQueryEpochInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryEpochInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryEpochInputPayloadBuilder toBuilder() => @@ -126,8 +137,10 @@ class _$MalformedTimestampQueryEpochInputPayload class MalformedTimestampQueryEpochInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInputPayloadBuilder + > { _$MalformedTimestampQueryEpochInputPayload? _$v; MalformedTimestampQueryEpochInputPayloadBuilder(); @@ -140,7 +153,8 @@ class MalformedTimestampQueryEpochInputPayloadBuilder @override void update( - void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? updates) { + void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart index 3ef03de88b..2b87b5a8f4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_timestamp_query_http_date_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampQueryHttpDateInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryHttpDateInput, + MalformedTimestampQueryHttpDateInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampQueryHttpDateInput({required DateTime timestamp}) { return _$MalformedTimestampQueryHttpDateInput._(timestamp: timestamp); } - factory MalformedTimestampQueryHttpDateInput.build( - [void Function(MalformedTimestampQueryHttpDateInputBuilder) - updates]) = _$MalformedTimestampQueryHttpDateInput; + factory MalformedTimestampQueryHttpDateInput.build([ + void Function(MalformedTimestampQueryHttpDateInputBuilder) updates, + ]) = _$MalformedTimestampQueryHttpDateInput; const MalformedTimestampQueryHttpDateInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampQueryHttpDateInput MalformedTimestampQueryHttpDateInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampQueryHttpDateInput.build((b) { - if (request.queryParameters['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampQueryHttpDateInput.build((b) { + if (request.queryParameters['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.queryParameters['timestamp']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampQueryHttpDateInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampQueryHttpDateInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampQueryHttpDateInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryHttpDateInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryHttpDateInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampQueryHttpDateInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampQueryHttpDateInputPayload( - [void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) - updates]) = _$MalformedTimestampQueryHttpDateInputPayload; + factory MalformedTimestampQueryHttpDateInputPayload([ + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) updates, + ]) = _$MalformedTimestampQueryHttpDateInputPayload; const MalformedTimestampQueryHttpDateInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampQueryHttpDateInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampQueryHttpDateInputPayload'); + 'MalformedTimestampQueryHttpDateInputPayload', + ); return helper.toString(); } } -class MalformedTimestampQueryHttpDateInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampQueryHttpDateInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampQueryHttpDateInputPayload + > { const MalformedTimestampQueryHttpDateInputRestJson1Serializer() - : super('MalformedTimestampQueryHttpDateInput'); + : super('MalformedTimestampQueryHttpDateInput'); @override Iterable get types => const [ - MalformedTimestampQueryHttpDateInput, - _$MalformedTimestampQueryHttpDateInput, - MalformedTimestampQueryHttpDateInputPayload, - _$MalformedTimestampQueryHttpDateInputPayload, - ]; + MalformedTimestampQueryHttpDateInput, + _$MalformedTimestampQueryHttpDateInput, + MalformedTimestampQueryHttpDateInputPayload, + _$MalformedTimestampQueryHttpDateInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampQueryHttpDateInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampQueryHttpDateInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampQueryHttpDateInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart index d8afcc59d3..a4b7f256ee 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampQueryHttpDateInput @override final DateTime timestamp; - factory _$MalformedTimestampQueryHttpDateInput( - [void Function(MalformedTimestampQueryHttpDateInputBuilder)? - updates]) => + factory _$MalformedTimestampQueryHttpDateInput([ + void Function(MalformedTimestampQueryHttpDateInputBuilder)? updates, + ]) => (new MalformedTimestampQueryHttpDateInputBuilder()..update(updates)) ._build(); _$MalformedTimestampQueryHttpDateInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryHttpDateInput', 'timestamp'); + timestamp, + r'MalformedTimestampQueryHttpDateInput', + 'timestamp', + ); } @override MalformedTimestampQueryHttpDateInput rebuild( - void Function(MalformedTimestampQueryHttpDateInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryHttpDateInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryHttpDateInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampQueryHttpDateInput class MalformedTimestampQueryHttpDateInputBuilder implements - Builder { + Builder< + MalformedTimestampQueryHttpDateInput, + MalformedTimestampQueryHttpDateInputBuilder + > { _$MalformedTimestampQueryHttpDateInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampQueryHttpDateInputBuilder @override void update( - void Function(MalformedTimestampQueryHttpDateInputBuilder)? updates) { + void Function(MalformedTimestampQueryHttpDateInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampQueryHttpDateInputBuilder MalformedTimestampQueryHttpDateInput build() => _build(); _$MalformedTimestampQueryHttpDateInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampQueryHttpDateInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampQueryHttpDateInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampQueryHttpDateInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampQueryHttpDateInputBuilder class _$MalformedTimestampQueryHttpDateInputPayload extends MalformedTimestampQueryHttpDateInputPayload { - factory _$MalformedTimestampQueryHttpDateInputPayload( - [void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampQueryHttpDateInputPayload([ + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampQueryHttpDateInputPayloadBuilder() ..update(updates)) ._build(); @@ -107,9 +118,8 @@ class _$MalformedTimestampQueryHttpDateInputPayload @override MalformedTimestampQueryHttpDateInputPayload rebuild( - void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryHttpDateInputPayloadBuilder toBuilder() => @@ -129,8 +139,10 @@ class _$MalformedTimestampQueryHttpDateInputPayload class MalformedTimestampQueryHttpDateInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInputPayloadBuilder + > { _$MalformedTimestampQueryHttpDateInputPayload? _$v; MalformedTimestampQueryHttpDateInputPayloadBuilder(); @@ -143,8 +155,8 @@ class MalformedTimestampQueryHttpDateInputPayloadBuilder @override void update( - void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart index 186355b78a..a2d09ab157 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.malformed_union_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class MalformedUnionInput return _$MalformedUnionInput._(union: union); } - factory MalformedUnionInput.build( - [void Function(MalformedUnionInputBuilder) updates]) = - _$MalformedUnionInput; + factory MalformedUnionInput.build([ + void Function(MalformedUnionInputBuilder) updates, + ]) = _$MalformedUnionInput; const MalformedUnionInput._(); @@ -30,11 +30,10 @@ abstract class MalformedUnionInput MalformedUnionInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedUnionInputRestJson1Serializer() + MalformedUnionInputRestJson1Serializer(), ]; SimpleUnion? get union; @@ -47,10 +46,7 @@ abstract class MalformedUnionInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedUnionInput') - ..add( - 'union', - union, - ); + ..add('union', union); return helper.toString(); } } @@ -61,17 +57,14 @@ class MalformedUnionInputRestJson1Serializer @override Iterable get types => const [ - MalformedUnionInput, - _$MalformedUnionInput, - ]; + MalformedUnionInput, + _$MalformedUnionInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedUnionInput deserialize( @@ -90,10 +83,12 @@ class MalformedUnionInputRestJson1Serializer } switch (key) { case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(SimpleUnion), - ) as SimpleUnion); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(SimpleUnion), + ) + as SimpleUnion); } } @@ -111,10 +106,12 @@ class MalformedUnionInputRestJson1Serializer if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(SimpleUnion), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(SimpleUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart index 205cf2b63f..2d32f8ff38 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedUnionInput extends MalformedUnionInput { @override final SimpleUnion? union; - factory _$MalformedUnionInput( - [void Function(MalformedUnionInputBuilder)? updates]) => - (new MalformedUnionInputBuilder()..update(updates))._build(); + factory _$MalformedUnionInput([ + void Function(MalformedUnionInputBuilder)? updates, + ]) => (new MalformedUnionInputBuilder()..update(updates))._build(); _$MalformedUnionInput._({this.union}) : super._(); @override MalformedUnionInput rebuild( - void Function(MalformedUnionInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedUnionInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedUnionInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart index dbf914b80c..f339fe4532 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.media_type_header_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -24,12 +24,13 @@ abstract class MediaTypeHeaderInput _i1.HasPayload { factory MediaTypeHeaderInput({Object? json}) { return _$MediaTypeHeaderInput._( - json: json == null ? null : _i3.JsonObject(json)); + json: json == null ? null : _i3.JsonObject(json), + ); } - factory MediaTypeHeaderInput.build( - [void Function(MediaTypeHeaderInputBuilder) updates]) = - _$MediaTypeHeaderInput; + factory MediaTypeHeaderInput.build([ + void Function(MediaTypeHeaderInputBuilder) updates, + ]) = _$MediaTypeHeaderInput; const MediaTypeHeaderInput._(); @@ -37,16 +38,18 @@ abstract class MediaTypeHeaderInput MediaTypeHeaderInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MediaTypeHeaderInput.build((b) { - if (request.headers['X-Json'] != null) { - b.json = _i3.JsonObject(_i4.jsonDecode( - _i4.utf8.decode(_i4.base64Decode(request.headers['X-Json']!)))); - } - }); + }) => MediaTypeHeaderInput.build((b) { + if (request.headers['X-Json'] != null) { + b.json = _i3.JsonObject( + _i4.jsonDecode( + _i4.utf8.decode(_i4.base64Decode(request.headers['X-Json']!)), + ), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [MediaTypeHeaderInputRestJson1Serializer()]; + serializers = [MediaTypeHeaderInputRestJson1Serializer()]; _i3.JsonObject? get json; @override @@ -58,10 +61,7 @@ abstract class MediaTypeHeaderInput @override String toString() { final helper = newBuiltValueToStringHelper('MediaTypeHeaderInput') - ..add( - 'json', - json, - ); + ..add('json', json); return helper.toString(); } } @@ -72,9 +72,9 @@ abstract class MediaTypeHeaderInputPayload implements Built, _i1.EmptyPayload { - factory MediaTypeHeaderInputPayload( - [void Function(MediaTypeHeaderInputPayloadBuilder) updates]) = - _$MediaTypeHeaderInputPayload; + factory MediaTypeHeaderInputPayload([ + void Function(MediaTypeHeaderInputPayloadBuilder) updates, + ]) = _$MediaTypeHeaderInputPayload; const MediaTypeHeaderInputPayload._(); @@ -91,23 +91,20 @@ abstract class MediaTypeHeaderInputPayload class MediaTypeHeaderInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MediaTypeHeaderInputRestJson1Serializer() - : super('MediaTypeHeaderInput'); + : super('MediaTypeHeaderInput'); @override Iterable get types => const [ - MediaTypeHeaderInput, - _$MediaTypeHeaderInput, - MediaTypeHeaderInputPayload, - _$MediaTypeHeaderInputPayload, - ]; + MediaTypeHeaderInput, + _$MediaTypeHeaderInput, + MediaTypeHeaderInputPayload, + _$MediaTypeHeaderInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderInputPayload deserialize( @@ -123,6 +120,5 @@ class MediaTypeHeaderInputRestJson1Serializer Serializers serializers, MediaTypeHeaderInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart index eeead14ba9..1b13608f33 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart @@ -10,16 +10,16 @@ class _$MediaTypeHeaderInput extends MediaTypeHeaderInput { @override final _i3.JsonObject? json; - factory _$MediaTypeHeaderInput( - [void Function(MediaTypeHeaderInputBuilder)? updates]) => - (new MediaTypeHeaderInputBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderInput([ + void Function(MediaTypeHeaderInputBuilder)? updates, + ]) => (new MediaTypeHeaderInputBuilder()..update(updates))._build(); _$MediaTypeHeaderInput._({this.json}) : super._(); @override MediaTypeHeaderInput rebuild( - void Function(MediaTypeHeaderInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderInputBuilder toBuilder() => @@ -81,16 +81,16 @@ class MediaTypeHeaderInputBuilder } class _$MediaTypeHeaderInputPayload extends MediaTypeHeaderInputPayload { - factory _$MediaTypeHeaderInputPayload( - [void Function(MediaTypeHeaderInputPayloadBuilder)? updates]) => - (new MediaTypeHeaderInputPayloadBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderInputPayload([ + void Function(MediaTypeHeaderInputPayloadBuilder)? updates, + ]) => (new MediaTypeHeaderInputPayloadBuilder()..update(updates))._build(); _$MediaTypeHeaderInputPayload._() : super._(); @override MediaTypeHeaderInputPayload rebuild( - void Function(MediaTypeHeaderInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderInputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$MediaTypeHeaderInputPayload extends MediaTypeHeaderInputPayload { class MediaTypeHeaderInputPayloadBuilder implements - Builder { + Builder< + MediaTypeHeaderInputPayload, + MediaTypeHeaderInputPayloadBuilder + > { _$MediaTypeHeaderInputPayload? _$v; MediaTypeHeaderInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart index dfd03f3d62..1322ab1ae1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.media_type_header_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,12 +22,13 @@ abstract class MediaTypeHeaderOutput _i2.HasPayload { factory MediaTypeHeaderOutput({Object? json}) { return _$MediaTypeHeaderOutput._( - json: json == null ? null : _i3.JsonObject(json)); + json: json == null ? null : _i3.JsonObject(json), + ); } - factory MediaTypeHeaderOutput.build( - [void Function(MediaTypeHeaderOutputBuilder) updates]) = - _$MediaTypeHeaderOutput; + factory MediaTypeHeaderOutput.build([ + void Function(MediaTypeHeaderOutputBuilder) updates, + ]) = _$MediaTypeHeaderOutput; const MediaTypeHeaderOutput._(); @@ -35,16 +36,18 @@ abstract class MediaTypeHeaderOutput factory MediaTypeHeaderOutput.fromResponse( MediaTypeHeaderOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - MediaTypeHeaderOutput.build((b) { - if (response.headers['X-Json'] != null) { - b.json = _i3.JsonObject(_i4.jsonDecode( - _i4.utf8.decode(_i4.base64Decode(response.headers['X-Json']!)))); - } - }); + ) => MediaTypeHeaderOutput.build((b) { + if (response.headers['X-Json'] != null) { + b.json = _i3.JsonObject( + _i4.jsonDecode( + _i4.utf8.decode(_i4.base64Decode(response.headers['X-Json']!)), + ), + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [MediaTypeHeaderOutputRestJson1Serializer()]; + serializers = [MediaTypeHeaderOutputRestJson1Serializer()]; _i3.JsonObject? get json; @override @@ -56,25 +59,23 @@ abstract class MediaTypeHeaderOutput @override String toString() { final helper = newBuiltValueToStringHelper('MediaTypeHeaderOutput') - ..add( - 'json', - json, - ); + ..add('json', json); return helper.toString(); } } @_i5.internal abstract class MediaTypeHeaderOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutputPayloadBuilder + >, _i2.EmptyPayload { - factory MediaTypeHeaderOutputPayload( - [void Function(MediaTypeHeaderOutputPayloadBuilder) updates]) = - _$MediaTypeHeaderOutputPayload; + factory MediaTypeHeaderOutputPayload([ + void Function(MediaTypeHeaderOutputPayloadBuilder) updates, + ]) = _$MediaTypeHeaderOutputPayload; const MediaTypeHeaderOutputPayload._(); @@ -91,23 +92,20 @@ abstract class MediaTypeHeaderOutputPayload class MediaTypeHeaderOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const MediaTypeHeaderOutputRestJson1Serializer() - : super('MediaTypeHeaderOutput'); + : super('MediaTypeHeaderOutput'); @override Iterable get types => const [ - MediaTypeHeaderOutput, - _$MediaTypeHeaderOutput, - MediaTypeHeaderOutputPayload, - _$MediaTypeHeaderOutputPayload, - ]; + MediaTypeHeaderOutput, + _$MediaTypeHeaderOutput, + MediaTypeHeaderOutputPayload, + _$MediaTypeHeaderOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderOutputPayload deserialize( @@ -123,6 +121,5 @@ class MediaTypeHeaderOutputRestJson1Serializer Serializers serializers, MediaTypeHeaderOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart index 0c3210504b..3c606d4638 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart @@ -10,16 +10,16 @@ class _$MediaTypeHeaderOutput extends MediaTypeHeaderOutput { @override final _i3.JsonObject? json; - factory _$MediaTypeHeaderOutput( - [void Function(MediaTypeHeaderOutputBuilder)? updates]) => - (new MediaTypeHeaderOutputBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderOutput([ + void Function(MediaTypeHeaderOutputBuilder)? updates, + ]) => (new MediaTypeHeaderOutputBuilder()..update(updates))._build(); _$MediaTypeHeaderOutput._({this.json}) : super._(); @override MediaTypeHeaderOutput rebuild( - void Function(MediaTypeHeaderOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderOutputBuilder toBuilder() => @@ -81,16 +81,16 @@ class MediaTypeHeaderOutputBuilder } class _$MediaTypeHeaderOutputPayload extends MediaTypeHeaderOutputPayload { - factory _$MediaTypeHeaderOutputPayload( - [void Function(MediaTypeHeaderOutputPayloadBuilder)? updates]) => - (new MediaTypeHeaderOutputPayloadBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderOutputPayload([ + void Function(MediaTypeHeaderOutputPayloadBuilder)? updates, + ]) => (new MediaTypeHeaderOutputPayloadBuilder()..update(updates))._build(); _$MediaTypeHeaderOutputPayload._() : super._(); @override MediaTypeHeaderOutputPayload rebuild( - void Function(MediaTypeHeaderOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderOutputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$MediaTypeHeaderOutputPayload extends MediaTypeHeaderOutputPayload { class MediaTypeHeaderOutputPayloadBuilder implements - Builder { + Builder< + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutputPayloadBuilder + > { _$MediaTypeHeaderOutputPayload? _$v; MediaTypeHeaderOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart index 2d9fd00171..c46af966f6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/my_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.my_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -40,13 +40,11 @@ sealed class MyUnion extends _i1.SmithyUnion { factory MyUnion.renamedStructureValue({String? salutation}) => MyUnionRenamedStructureValue$(RenamedGreeting(salutation: salutation)); - const factory MyUnion.sdkUnknown( - String name, - Object value, - ) = MyUnionSdkUnknown$; + const factory MyUnion.sdkUnknown(String name, Object value) = + MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - MyUnionRestJson1Serializer() + MyUnionRestJson1Serializer(), ]; String? get stringValue => null; @@ -70,79 +68,50 @@ sealed class MyUnion extends _i1.SmithyUnion { RenamedGreeting? get renamedStructureValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - numberValue ?? - blobValue ?? - timestampValue ?? - enumValue ?? - listValue ?? - mapValue ?? - structureValue ?? - renamedStructureValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + numberValue ?? + blobValue ?? + timestampValue ?? + enumValue ?? + listValue ?? + mapValue ?? + structureValue ?? + renamedStructureValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'MyUnion'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (numberValue != null) { - helper.add( - r'numberValue', - numberValue, - ); + helper.add(r'numberValue', numberValue); } if (blobValue != null) { - helper.add( - r'blobValue', - blobValue, - ); + helper.add(r'blobValue', blobValue); } if (timestampValue != null) { - helper.add( - r'timestampValue', - timestampValue, - ); + helper.add(r'timestampValue', timestampValue); } if (enumValue != null) { - helper.add( - r'enumValue', - enumValue, - ); + helper.add(r'enumValue', enumValue); } if (listValue != null) { - helper.add( - r'listValue', - listValue, - ); + helper.add(r'listValue', listValue); } if (mapValue != null) { - helper.add( - r'mapValue', - mapValue, - ); + helper.add(r'mapValue', mapValue); } if (structureValue != null) { - helper.add( - r'structureValue', - structureValue, - ); + helper.add(r'structureValue', structureValue); } if (renamedStructureValue != null) { - helper.add( - r'renamedStructureValue', - renamedStructureValue, - ); + helper.add(r'renamedStructureValue', renamedStructureValue); } return helper.toString(); } @@ -222,7 +191,7 @@ final class MyUnionListValue$ extends MyUnion { final class MyUnionMapValue$ extends MyUnion { MyUnionMapValue$(Map mapValue) - : this._(_i3.BuiltMap(mapValue)); + : this._(_i3.BuiltMap(mapValue)); const MyUnionMapValue$._(this.mapValue) : super._(); @@ -254,10 +223,7 @@ final class MyUnionRenamedStructureValue$ extends MyUnion { } final class MyUnionSdkUnknown$ extends MyUnion { - const MyUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const MyUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -272,26 +238,23 @@ class MyUnionRestJson1Serializer @override Iterable get types => const [ - MyUnion, - MyUnionStringValue$, - MyUnionBooleanValue$, - MyUnionNumberValue$, - MyUnionBlobValue$, - MyUnionTimestampValue$, - MyUnionEnumValue$, - MyUnionListValue$, - MyUnionMapValue$, - MyUnionStructureValue$, - MyUnionRenamedStructureValue$, - ]; + MyUnion, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + MyUnionRenamedStructureValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MyUnion deserialize( @@ -302,69 +265,83 @@ class MyUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return MyUnionStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return MyUnionBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return MyUnionBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'numberValue': - return MyUnionNumberValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return MyUnionNumberValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'blobValue': - return MyUnionBlobValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List)); + return MyUnionBlobValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List), + ); case 'timestampValue': - return MyUnionTimestampValue$((serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime)); + return MyUnionTimestampValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime), + ); case 'enumValue': - return MyUnionEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum)); + return MyUnionEnumValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum), + ); case 'listValue': - return MyUnionListValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + return MyUnionListValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'mapValue': - return MyUnionMapValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + return MyUnionMapValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'structureValue': - return MyUnionStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct)); + return MyUnionStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct), + ); case 'renamedStructureValue': - return MyUnionRenamedStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(RenamedGreeting), - ) as RenamedGreeting)); + return MyUnionRenamedStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(RenamedGreeting), + ) + as RenamedGreeting), + ); } - return MyUnion.sdkUnknown( - key, - value, - ); + return MyUnion.sdkUnknown(key, value); } @override @@ -377,54 +354,48 @@ class MyUnionRestJson1Serializer object.name, switch (object) { MyUnionStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), MyUnionBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), MyUnionNumberValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), MyUnionBlobValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ), + value, + specifiedType: const FullType(_i2.Uint8List), + ), MyUnionTimestampValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(DateTime), - ), + value, + specifiedType: const FullType(DateTime), + ), MyUnionEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(FooEnum), - ), + value, + specifiedType: const FullType(FooEnum), + ), MyUnionListValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), + ), MyUnionMapValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ), MyUnionStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(GreetingStruct), - ), + value, + specifiedType: const FullType(GreetingStruct), + ), MyUnionRenamedStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RenamedGreeting), - ), + value, + specifiedType: const FullType(RenamedGreeting), + ), MyUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart index feeaa789b6..ffd9a0f70d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.nested_payload; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,14 +13,8 @@ part 'nested_payload.g.dart'; abstract class NestedPayload with _i1.AWSEquatable implements Built { - factory NestedPayload({ - String? greeting, - String? name, - }) { - return _$NestedPayload._( - greeting: greeting, - name: name, - ); + factory NestedPayload({String? greeting, String? name}) { + return _$NestedPayload._(greeting: greeting, name: name); } factory NestedPayload.build([void Function(NestedPayloadBuilder) updates]) = @@ -29,28 +23,20 @@ abstract class NestedPayload const NestedPayload._(); static const List<_i2.SmithySerializer> serializers = [ - NestedPayloadRestJson1Serializer() + NestedPayloadRestJson1Serializer(), ]; String? get greeting; String? get name; @override - List get props => [ - greeting, - name, - ]; + List get props => [greeting, name]; @override String toString() { - final helper = newBuiltValueToStringHelper('NestedPayload') - ..add( - 'greeting', - greeting, - ) - ..add( - 'name', - name, - ); + final helper = + newBuiltValueToStringHelper('NestedPayload') + ..add('greeting', greeting) + ..add('name', name); return helper.toString(); } } @@ -60,18 +46,12 @@ class NestedPayloadRestJson1Serializer const NestedPayloadRestJson1Serializer() : super('NestedPayload'); @override - Iterable get types => const [ - NestedPayload, - _$NestedPayload, - ]; + Iterable get types => const [NestedPayload, _$NestedPayload]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NestedPayload deserialize( @@ -90,15 +70,19 @@ class NestedPayloadRestJson1Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -116,18 +100,19 @@ class NestedPayloadRestJson1Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } if (name != null) { result$ ..add('name') - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart index 90eab9f62b..4219f07cf3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputRestJson1Serializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputRestJson1Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NoInputAndOutputOutput deserialize( @@ -78,6 +74,5 @@ class NoInputAndOutputOutputRestJson1Serializer Serializers serializers, NoInputAndOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart index 2550007cdd..6b9061387c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.null_and_empty_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,11 +20,7 @@ abstract class NullAndEmptyHeadersIo Built, _i1.EmptyPayload, _i1.HasPayload { - factory NullAndEmptyHeadersIo({ - String? a, - String? b, - List? c, - }) { + factory NullAndEmptyHeadersIo({String? a, String? b, List? c}) { return _$NullAndEmptyHeadersIo._( a: a, b: b, @@ -32,9 +28,9 @@ abstract class NullAndEmptyHeadersIo ); } - factory NullAndEmptyHeadersIo.build( - [void Function(NullAndEmptyHeadersIoBuilder) updates]) = - _$NullAndEmptyHeadersIo; + factory NullAndEmptyHeadersIo.build([ + void Function(NullAndEmptyHeadersIoBuilder) updates, + ]) = _$NullAndEmptyHeadersIo; const NullAndEmptyHeadersIo._(); @@ -42,40 +38,40 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - NullAndEmptyHeadersIo.build((b) { - if (request.headers['X-A'] != null) { - b.a = request.headers['X-A']!; - } - if (request.headers['X-B'] != null) { - b.b = request.headers['X-B']!; - } - if (request.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim())); - } - }); + }) => NullAndEmptyHeadersIo.build((b) { + if (request.headers['X-A'] != null) { + b.a = request.headers['X-A']!; + } + if (request.headers['X-B'] != null) { + b.b = request.headers['X-B']!; + } + if (request.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim()), + ); + } + }); /// Constructs a [NullAndEmptyHeadersIo] from a [payload] and [response]. factory NullAndEmptyHeadersIo.fromResponse( NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.build((b) { - if (response.headers['X-A'] != null) { - b.a = response.headers['X-A']!; - } - if (response.headers['X-B'] != null) { - b.b = response.headers['X-B']!; - } - if (response.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim())); - } - }); + ) => NullAndEmptyHeadersIo.build((b) { + if (response.headers['X-A'] != null) { + b.a = response.headers['X-A']!; + } + if (response.headers['X-B'] != null) { + b.b = response.headers['X-B']!; + } + if (response.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim()), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [NullAndEmptyHeadersIoRestJson1Serializer()]; + serializers = [NullAndEmptyHeadersIoRestJson1Serializer()]; String? get a; String? get b; @@ -84,42 +80,31 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload getPayload() => NullAndEmptyHeadersIoPayload(); @override - List get props => [ - a, - b, - c, - ]; + List get props => [a, b, c]; @override String toString() { - final helper = newBuiltValueToStringHelper('NullAndEmptyHeadersIo') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ) - ..add( - 'c', - c, - ); + final helper = + newBuiltValueToStringHelper('NullAndEmptyHeadersIo') + ..add('a', a) + ..add('b', b) + ..add('c', c); return helper.toString(); } } @_i4.internal abstract class NullAndEmptyHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder) updates]) = - _$NullAndEmptyHeadersIoPayload; + factory NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ]) = _$NullAndEmptyHeadersIoPayload; const NullAndEmptyHeadersIoPayload._(); @@ -136,23 +121,20 @@ abstract class NullAndEmptyHeadersIoPayload class NullAndEmptyHeadersIoRestJson1Serializer extends _i1.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestJson1Serializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [ - NullAndEmptyHeadersIo, - _$NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - _$NullAndEmptyHeadersIoPayload, - ]; + NullAndEmptyHeadersIo, + _$NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + _$NullAndEmptyHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NullAndEmptyHeadersIoPayload deserialize( @@ -168,6 +150,5 @@ class NullAndEmptyHeadersIoRestJson1Serializer Serializers serializers, NullAndEmptyHeadersIoPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart index e519841018..8594dc19c2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart @@ -14,16 +14,16 @@ class _$NullAndEmptyHeadersIo extends NullAndEmptyHeadersIo { @override final _i3.BuiltList? c; - factory _$NullAndEmptyHeadersIo( - [void Function(NullAndEmptyHeadersIoBuilder)? updates]) => - (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIo([ + void Function(NullAndEmptyHeadersIoBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIo._({this.a, this.b, this.c}) : super._(); @override NullAndEmptyHeadersIo rebuild( - void Function(NullAndEmptyHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoBuilder toBuilder() => @@ -104,7 +104,10 @@ class NullAndEmptyHeadersIoBuilder _c?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NullAndEmptyHeadersIo', _$failedField, e.toString()); + r'NullAndEmptyHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -114,16 +117,16 @@ class NullAndEmptyHeadersIoBuilder } class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { - factory _$NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates]) => - (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIoPayload._() : super._(); @override NullAndEmptyHeadersIoPayload rebuild( - void Function(NullAndEmptyHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoPayloadBuilder toBuilder() => @@ -143,8 +146,10 @@ class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { class NullAndEmptyHeadersIoPayloadBuilder implements - Builder { + Builder< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + > { _$NullAndEmptyHeadersIoPayload? _$v; NullAndEmptyHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart index 514c1b414b..b1fc3bc824 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.omits_null_serializes_empty_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class OmitsNullSerializesEmptyStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory OmitsNullSerializesEmptyStringInput({ @@ -30,9 +32,9 @@ abstract class OmitsNullSerializesEmptyStringInput ); } - factory OmitsNullSerializesEmptyStringInput.build( - [void Function(OmitsNullSerializesEmptyStringInputBuilder) updates]) = - _$OmitsNullSerializesEmptyStringInput; + factory OmitsNullSerializesEmptyStringInput.build([ + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInput; const OmitsNullSerializesEmptyStringInput._(); @@ -40,19 +42,19 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - OmitsNullSerializesEmptyStringInput.build((b) { - if (request.queryParameters['Null'] != null) { - b.nullValue = request.queryParameters['Null']!; - } - if (request.queryParameters['Empty'] != null) { - b.emptyString = request.queryParameters['Empty']!; - } - }); + }) => OmitsNullSerializesEmptyStringInput.build((b) { + if (request.queryParameters['Null'] != null) { + b.nullValue = request.queryParameters['Null']!; + } + if (request.queryParameters['Empty'] != null) { + b.emptyString = request.queryParameters['Empty']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [OmitsNullSerializesEmptyStringInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [OmitsNullSerializesEmptyStringInputRestJson1Serializer()]; String? get nullValue; String? get emptyString; @@ -61,38 +63,30 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload(); @override - List get props => [ - nullValue, - emptyString, - ]; + List get props => [nullValue, emptyString]; @override String toString() { final helper = newBuiltValueToStringHelper('OmitsNullSerializesEmptyStringInput') - ..add( - 'nullValue', - nullValue, - ) - ..add( - 'emptyString', - emptyString, - ); + ..add('nullValue', nullValue) + ..add('emptyString', emptyString); return helper.toString(); } } @_i3.internal abstract class OmitsNullSerializesEmptyStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates]) = _$OmitsNullSerializesEmptyStringInputPayload; + factory OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInputPayload; const OmitsNullSerializesEmptyStringInputPayload._(); @@ -102,31 +96,32 @@ abstract class OmitsNullSerializesEmptyStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'OmitsNullSerializesEmptyStringInputPayload'); + 'OmitsNullSerializesEmptyStringInputPayload', + ); return helper.toString(); } } -class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + OmitsNullSerializesEmptyStringInputPayload + > { const OmitsNullSerializesEmptyStringInputRestJson1Serializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [ - OmitsNullSerializesEmptyStringInput, - _$OmitsNullSerializesEmptyStringInput, - OmitsNullSerializesEmptyStringInputPayload, - _$OmitsNullSerializesEmptyStringInputPayload, - ]; + OmitsNullSerializesEmptyStringInput, + _$OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputPayload, + _$OmitsNullSerializesEmptyStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsNullSerializesEmptyStringInputPayload deserialize( @@ -142,6 +137,5 @@ class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i1 Serializers serializers, OmitsNullSerializesEmptyStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart index 5f2c498b34..d20fee8e14 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart @@ -13,19 +13,19 @@ class _$OmitsNullSerializesEmptyStringInput @override final String? emptyString; - factory _$OmitsNullSerializesEmptyStringInput( - [void Function(OmitsNullSerializesEmptyStringInputBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInput([ + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputBuilder()..update(updates)) ._build(); _$OmitsNullSerializesEmptyStringInput._({this.nullValue, this.emptyString}) - : super._(); + : super._(); @override OmitsNullSerializesEmptyStringInput rebuild( - void Function(OmitsNullSerializesEmptyStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$OmitsNullSerializesEmptyStringInput class OmitsNullSerializesEmptyStringInputBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + > { _$OmitsNullSerializesEmptyStringInput? _$v; String? _nullValue; @@ -83,7 +85,8 @@ class OmitsNullSerializesEmptyStringInputBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates) { + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class OmitsNullSerializesEmptyStringInputBuilder OmitsNullSerializesEmptyStringInput build() => _build(); _$OmitsNullSerializesEmptyStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$OmitsNullSerializesEmptyStringInput._( - nullValue: nullValue, emptyString: emptyString); + nullValue: nullValue, + emptyString: emptyString, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class OmitsNullSerializesEmptyStringInputBuilder class _$OmitsNullSerializesEmptyStringInputPayload extends OmitsNullSerializesEmptyStringInputPayload { - factory _$OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$OmitsNullSerializesEmptyStringInputPayload @override OmitsNullSerializesEmptyStringInputPayload rebuild( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$OmitsNullSerializesEmptyStringInputPayload class OmitsNullSerializesEmptyStringInputPayloadBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + > { _$OmitsNullSerializesEmptyStringInputPayload? _$v; OmitsNullSerializesEmptyStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class OmitsNullSerializesEmptyStringInputPayloadBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates) { + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart index 8b7f90ec42..5f74231f5a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.omits_serializing_empty_lists_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class OmitsSerializingEmptyListsInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + OmitsSerializingEmptyListsInput, + OmitsSerializingEmptyListsInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory OmitsSerializingEmptyListsInput({ @@ -44,15 +46,16 @@ abstract class OmitsSerializingEmptyListsInput queryTimestampList == null ? null : _i3.BuiltList(queryTimestampList), queryEnumList: queryEnumList == null ? null : _i3.BuiltList(queryEnumList), - queryIntegerEnumList: queryIntegerEnumList == null - ? null - : _i3.BuiltList(queryIntegerEnumList), + queryIntegerEnumList: + queryIntegerEnumList == null + ? null + : _i3.BuiltList(queryIntegerEnumList), ); } - factory OmitsSerializingEmptyListsInput.build( - [void Function(OmitsSerializingEmptyListsInputBuilder) updates]) = - _$OmitsSerializingEmptyListsInput; + factory OmitsSerializingEmptyListsInput.build([ + void Function(OmitsSerializingEmptyListsInputBuilder) updates, + ]) = _$OmitsSerializingEmptyListsInput; const OmitsSerializingEmptyListsInput._(); @@ -60,54 +63,71 @@ abstract class OmitsSerializingEmptyListsInput OmitsSerializingEmptyListsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - OmitsSerializingEmptyListsInput.build((b) { - if (request.queryParameters['StringList'] != null) { - b.queryStringList.addAll(_i1 - .parseHeader(request.queryParameters['StringList']!) - .map((el) => el.trim())); - } - if (request.queryParameters['IntegerList'] != null) { - b.queryIntegerList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['DoubleList'] != null) { - b.queryDoubleList.addAll(_i1 - .parseHeader(request.queryParameters['DoubleList']!) - .map((el) => double.parse(el.trim()))); - } - if (request.queryParameters['BooleanList'] != null) { - b.queryBooleanList.addAll(_i1 - .parseHeader(request.queryParameters['BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.queryParameters['TimestampList'] != null) { - b.queryTimestampList.addAll(_i1 - .parseHeader( - request.queryParameters['TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + }) => OmitsSerializingEmptyListsInput.build((b) { + if (request.queryParameters['StringList'] != null) { + b.queryStringList.addAll( + _i1 + .parseHeader(request.queryParameters['StringList']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['IntegerList'] != null) { + b.queryIntegerList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['DoubleList'] != null) { + b.queryDoubleList.addAll( + _i1 + .parseHeader(request.queryParameters['DoubleList']!) + .map((el) => double.parse(el.trim())), + ); + } + if (request.queryParameters['BooleanList'] != null) { + b.queryBooleanList.addAll( + _i1 + .parseHeader(request.queryParameters['BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.queryParameters['TimestampList'] != null) { + b.queryTimestampList.addAll( + _i1 + .parseHeader( + request.queryParameters['TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.queryParameters['EnumList'] != null) { - b.queryEnumList.addAll(_i1 - .parseHeader(request.queryParameters['EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.queryParameters['IntegerEnumList'] != null) { - b.queryIntegerEnumList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerEnumList']!) - .map((el) => int.parse(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (request.queryParameters['EnumList'] != null) { + b.queryEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.queryParameters['IntegerEnumList'] != null) { + b.queryIntegerEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerEnumList']!) + .map((el) => int.parse(el.trim())), + ); + } + }); static const List< - _i1.SmithySerializer> - serializers = [OmitsSerializingEmptyListsInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [OmitsSerializingEmptyListsInputRestJson1Serializer()]; _i3.BuiltList? get queryStringList; _i3.BuiltList? get queryIntegerList; @@ -122,62 +142,42 @@ abstract class OmitsSerializingEmptyListsInput @override List get props => [ - queryStringList, - queryIntegerList, - queryDoubleList, - queryBooleanList, - queryTimestampList, - queryEnumList, - queryIntegerEnumList, - ]; + queryStringList, + queryIntegerList, + queryDoubleList, + queryBooleanList, + queryTimestampList, + queryEnumList, + queryIntegerEnumList, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('OmitsSerializingEmptyListsInput') - ..add( - 'queryStringList', - queryStringList, - ) - ..add( - 'queryIntegerList', - queryIntegerList, - ) - ..add( - 'queryDoubleList', - queryDoubleList, - ) - ..add( - 'queryBooleanList', - queryBooleanList, - ) - ..add( - 'queryTimestampList', - queryTimestampList, - ) - ..add( - 'queryEnumList', - queryEnumList, - ) - ..add( - 'queryIntegerEnumList', - queryIntegerEnumList, - ); + ..add('queryStringList', queryStringList) + ..add('queryIntegerList', queryIntegerList) + ..add('queryDoubleList', queryDoubleList) + ..add('queryBooleanList', queryBooleanList) + ..add('queryTimestampList', queryTimestampList) + ..add('queryEnumList', queryEnumList) + ..add('queryIntegerEnumList', queryIntegerEnumList); return helper.toString(); } } @_i4.internal abstract class OmitsSerializingEmptyListsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInputPayloadBuilder + >, _i1.EmptyPayload { - factory OmitsSerializingEmptyListsInputPayload( - [void Function(OmitsSerializingEmptyListsInputPayloadBuilder) - updates]) = _$OmitsSerializingEmptyListsInputPayload; + factory OmitsSerializingEmptyListsInputPayload([ + void Function(OmitsSerializingEmptyListsInputPayloadBuilder) updates, + ]) = _$OmitsSerializingEmptyListsInputPayload; const OmitsSerializingEmptyListsInputPayload._(); @@ -186,32 +186,31 @@ abstract class OmitsSerializingEmptyListsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('OmitsSerializingEmptyListsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'OmitsSerializingEmptyListsInputPayload', + ); return helper.toString(); } } -class OmitsSerializingEmptyListsInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class OmitsSerializingEmptyListsInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const OmitsSerializingEmptyListsInputRestJson1Serializer() - : super('OmitsSerializingEmptyListsInput'); + : super('OmitsSerializingEmptyListsInput'); @override Iterable get types => const [ - OmitsSerializingEmptyListsInput, - _$OmitsSerializingEmptyListsInput, - OmitsSerializingEmptyListsInputPayload, - _$OmitsSerializingEmptyListsInputPayload, - ]; + OmitsSerializingEmptyListsInput, + _$OmitsSerializingEmptyListsInput, + OmitsSerializingEmptyListsInputPayload, + _$OmitsSerializingEmptyListsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsSerializingEmptyListsInputPayload deserialize( @@ -227,6 +226,5 @@ class OmitsSerializingEmptyListsInputRestJson1Serializer extends _i1 Serializers serializers, OmitsSerializingEmptyListsInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart index 99c8df0074..e02f188794 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart @@ -23,24 +23,25 @@ class _$OmitsSerializingEmptyListsInput @override final _i3.BuiltList? queryIntegerEnumList; - factory _$OmitsSerializingEmptyListsInput( - [void Function(OmitsSerializingEmptyListsInputBuilder)? updates]) => + factory _$OmitsSerializingEmptyListsInput([ + void Function(OmitsSerializingEmptyListsInputBuilder)? updates, + ]) => (new OmitsSerializingEmptyListsInputBuilder()..update(updates))._build(); - _$OmitsSerializingEmptyListsInput._( - {this.queryStringList, - this.queryIntegerList, - this.queryDoubleList, - this.queryBooleanList, - this.queryTimestampList, - this.queryEnumList, - this.queryIntegerEnumList}) - : super._(); + _$OmitsSerializingEmptyListsInput._({ + this.queryStringList, + this.queryIntegerList, + this.queryDoubleList, + this.queryBooleanList, + this.queryTimestampList, + this.queryEnumList, + this.queryIntegerEnumList, + }) : super._(); @override OmitsSerializingEmptyListsInput rebuild( - void Function(OmitsSerializingEmptyListsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsSerializingEmptyListsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsSerializingEmptyListsInputBuilder toBuilder() => @@ -76,8 +77,10 @@ class _$OmitsSerializingEmptyListsInput class OmitsSerializingEmptyListsInputBuilder implements - Builder { + Builder< + OmitsSerializingEmptyListsInput, + OmitsSerializingEmptyListsInputBuilder + > { _$OmitsSerializingEmptyListsInput? _$v; _i3.ListBuilder? _queryStringList; @@ -156,15 +159,17 @@ class OmitsSerializingEmptyListsInputBuilder _$OmitsSerializingEmptyListsInput _build() { _$OmitsSerializingEmptyListsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$OmitsSerializingEmptyListsInput._( - queryStringList: _queryStringList?.build(), - queryIntegerList: _queryIntegerList?.build(), - queryDoubleList: _queryDoubleList?.build(), - queryBooleanList: _queryBooleanList?.build(), - queryTimestampList: _queryTimestampList?.build(), - queryEnumList: _queryEnumList?.build(), - queryIntegerEnumList: _queryIntegerEnumList?.build()); + queryStringList: _queryStringList?.build(), + queryIntegerList: _queryIntegerList?.build(), + queryDoubleList: _queryDoubleList?.build(), + queryBooleanList: _queryBooleanList?.build(), + queryTimestampList: _queryTimestampList?.build(), + queryEnumList: _queryEnumList?.build(), + queryIntegerEnumList: _queryIntegerEnumList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -184,7 +189,10 @@ class OmitsSerializingEmptyListsInputBuilder _queryIntegerEnumList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OmitsSerializingEmptyListsInput', _$failedField, e.toString()); + r'OmitsSerializingEmptyListsInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -195,9 +203,9 @@ class OmitsSerializingEmptyListsInputBuilder class _$OmitsSerializingEmptyListsInputPayload extends OmitsSerializingEmptyListsInputPayload { - factory _$OmitsSerializingEmptyListsInputPayload( - [void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? - updates]) => + factory _$OmitsSerializingEmptyListsInputPayload([ + void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? updates, + ]) => (new OmitsSerializingEmptyListsInputPayloadBuilder()..update(updates)) ._build(); @@ -205,9 +213,8 @@ class _$OmitsSerializingEmptyListsInputPayload @override OmitsSerializingEmptyListsInputPayload rebuild( - void Function(OmitsSerializingEmptyListsInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsSerializingEmptyListsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsSerializingEmptyListsInputPayloadBuilder toBuilder() => @@ -227,8 +234,10 @@ class _$OmitsSerializingEmptyListsInputPayload class OmitsSerializingEmptyListsInputPayloadBuilder implements - Builder { + Builder< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInputPayloadBuilder + > { _$OmitsSerializingEmptyListsInputPayload? _$v; OmitsSerializingEmptyListsInputPayloadBuilder(); @@ -241,7 +250,8 @@ class OmitsSerializingEmptyListsInputPayloadBuilder @override void update( - void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? updates) { + void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.dart index 6ddad48d2c..c50dc45849 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/payload_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/payload_config.dart index 0baaeec0ac..fc0201e92a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/payload_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/payload_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.payload_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class PayloadConfig const PayloadConfig._(); static const List<_i2.SmithySerializer> serializers = [ - PayloadConfigRestJson1Serializer() + PayloadConfigRestJson1Serializer(), ]; int? get data; @@ -33,10 +33,7 @@ abstract class PayloadConfig @override String toString() { final helper = newBuiltValueToStringHelper('PayloadConfig') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -46,18 +43,12 @@ class PayloadConfigRestJson1Serializer const PayloadConfigRestJson1Serializer() : super('PayloadConfig'); @override - Iterable get types => const [ - PayloadConfig, - _$PayloadConfig, - ]; + Iterable get types => const [PayloadConfig, _$PayloadConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PayloadConfig deserialize( @@ -76,10 +67,12 @@ class PayloadConfigRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -97,10 +90,7 @@ class PayloadConfigRestJson1Serializer if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(data, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart index 911b3fba17..7f59028cab 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.player_action; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,13 +12,11 @@ sealed class PlayerAction extends _i1.SmithyUnion { const factory PlayerAction.quit() = PlayerActionQuit$; - const factory PlayerAction.sdkUnknown( - String name, - Object value, - ) = PlayerActionSdkUnknown$; + const factory PlayerAction.sdkUnknown(String name, Object value) = + PlayerActionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - PlayerActionRestJson1Serializer() + PlayerActionRestJson1Serializer(), ]; /// Quit the game. @@ -31,10 +29,7 @@ sealed class PlayerAction extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'PlayerAction'); if (quit != null) { - helper.add( - r'quit', - quit, - ); + helper.add(r'quit', quit); } return helper.toString(); } @@ -51,10 +46,7 @@ final class PlayerActionQuit$ extends PlayerAction { } final class PlayerActionSdkUnknown$ extends PlayerAction { - const PlayerActionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const PlayerActionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -68,18 +60,12 @@ class PlayerActionRestJson1Serializer const PlayerActionRestJson1Serializer() : super('PlayerAction'); @override - Iterable get types => const [ - PlayerAction, - PlayerActionQuit$, - ]; + Iterable get types => const [PlayerAction, PlayerActionQuit$]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PlayerAction deserialize( @@ -92,10 +78,7 @@ class PlayerActionRestJson1Serializer case 'quit': return const PlayerActionQuit$(); } - return PlayerAction.sdkUnknown( - key, - value, - ); + return PlayerAction.sdkUnknown(key, value); } @override @@ -108,9 +91,9 @@ class PlayerActionRestJson1Serializer object.name, switch (object) { PlayerActionQuit$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i1.Unit), - ), + value, + specifiedType: const FullType(_i1.Unit), + ), PlayerActionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart index e9da854017..4ec5235a36 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.post_player_action_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class PostPlayerActionInput return _$PostPlayerActionInput._(action: action); } - factory PostPlayerActionInput.build( - [void Function(PostPlayerActionInputBuilder) updates]) = - _$PostPlayerActionInput; + factory PostPlayerActionInput.build([ + void Function(PostPlayerActionInputBuilder) updates, + ]) = _$PostPlayerActionInput; const PostPlayerActionInput._(); @@ -30,11 +30,10 @@ abstract class PostPlayerActionInput PostPlayerActionInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - PostPlayerActionInputRestJson1Serializer() + PostPlayerActionInputRestJson1Serializer(), ]; PlayerAction? get action; @@ -47,10 +46,7 @@ abstract class PostPlayerActionInput @override String toString() { final helper = newBuiltValueToStringHelper('PostPlayerActionInput') - ..add( - 'action', - action, - ); + ..add('action', action); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class PostPlayerActionInput class PostPlayerActionInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const PostPlayerActionInputRestJson1Serializer() - : super('PostPlayerActionInput'); + : super('PostPlayerActionInput'); @override Iterable get types => const [ - PostPlayerActionInput, - _$PostPlayerActionInput, - ]; + PostPlayerActionInput, + _$PostPlayerActionInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionInput deserialize( @@ -91,10 +84,12 @@ class PostPlayerActionInputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } @@ -112,10 +107,12 @@ class PostPlayerActionInputRestJson1Serializer if (action != null) { result$ ..add('action') - ..add(serializers.serialize( - action, - specifiedType: const FullType(PlayerAction), - )); + ..add( + serializers.serialize( + action, + specifiedType: const FullType(PlayerAction), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart index 9c245f8056..c28f89e8a2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart @@ -10,16 +10,16 @@ class _$PostPlayerActionInput extends PostPlayerActionInput { @override final PlayerAction? action; - factory _$PostPlayerActionInput( - [void Function(PostPlayerActionInputBuilder)? updates]) => - (new PostPlayerActionInputBuilder()..update(updates))._build(); + factory _$PostPlayerActionInput([ + void Function(PostPlayerActionInputBuilder)? updates, + ]) => (new PostPlayerActionInputBuilder()..update(updates))._build(); _$PostPlayerActionInput._({this.action}) : super._(); @override PostPlayerActionInput rebuild( - void Function(PostPlayerActionInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostPlayerActionInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostPlayerActionInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart index dc9e412773..67be92d706 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.post_player_action_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class PostPlayerActionOutput return _$PostPlayerActionOutput._(action: action); } - factory PostPlayerActionOutput.build( - [void Function(PostPlayerActionOutputBuilder) updates]) = - _$PostPlayerActionOutput; + factory PostPlayerActionOutput.build([ + void Function(PostPlayerActionOutputBuilder) updates, + ]) = _$PostPlayerActionOutput; const PostPlayerActionOutput._(); @@ -28,8 +28,7 @@ abstract class PostPlayerActionOutput factory PostPlayerActionOutput.fromResponse( PostPlayerActionOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [PostPlayerActionOutputRestJson1Serializer()]; @@ -41,10 +40,7 @@ abstract class PostPlayerActionOutput @override String toString() { final helper = newBuiltValueToStringHelper('PostPlayerActionOutput') - ..add( - 'action', - action, - ); + ..add('action', action); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class PostPlayerActionOutput class PostPlayerActionOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const PostPlayerActionOutputRestJson1Serializer() - : super('PostPlayerActionOutput'); + : super('PostPlayerActionOutput'); @override Iterable get types => const [ - PostPlayerActionOutput, - _$PostPlayerActionOutput, - ]; + PostPlayerActionOutput, + _$PostPlayerActionOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionOutput deserialize( @@ -85,10 +78,12 @@ class PostPlayerActionOutputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart index 067f8cfbc8..c131107ca7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart @@ -10,19 +10,22 @@ class _$PostPlayerActionOutput extends PostPlayerActionOutput { @override final PlayerAction action; - factory _$PostPlayerActionOutput( - [void Function(PostPlayerActionOutputBuilder)? updates]) => - (new PostPlayerActionOutputBuilder()..update(updates))._build(); + factory _$PostPlayerActionOutput([ + void Function(PostPlayerActionOutputBuilder)? updates, + ]) => (new PostPlayerActionOutputBuilder()..update(updates))._build(); _$PostPlayerActionOutput._({required this.action}) : super._() { BuiltValueNullFieldError.checkNotNull( - action, r'PostPlayerActionOutput', 'action'); + action, + r'PostPlayerActionOutput', + 'action', + ); } @override PostPlayerActionOutput rebuild( - void Function(PostPlayerActionOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostPlayerActionOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostPlayerActionOutputBuilder toBuilder() => @@ -77,10 +80,15 @@ class PostPlayerActionOutputBuilder PostPlayerActionOutput build() => _build(); _$PostPlayerActionOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PostPlayerActionOutput._( - action: BuiltValueNullFieldError.checkNotNull( - action, r'PostPlayerActionOutput', 'action')); + action: BuiltValueNullFieldError.checkNotNull( + action, + r'PostPlayerActionOutput', + 'action', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart index 7df5272bf5..6dfe4bf98b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.post_union_with_json_name_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class PostUnionWithJsonNameInput return _$PostUnionWithJsonNameInput._(value: value); } - factory PostUnionWithJsonNameInput.build( - [void Function(PostUnionWithJsonNameInputBuilder) updates]) = - _$PostUnionWithJsonNameInput; + factory PostUnionWithJsonNameInput.build([ + void Function(PostUnionWithJsonNameInputBuilder) updates, + ]) = _$PostUnionWithJsonNameInput; const PostUnionWithJsonNameInput._(); @@ -31,11 +31,10 @@ abstract class PostUnionWithJsonNameInput PostUnionWithJsonNameInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PostUnionWithJsonNameInputRestJson1Serializer()]; + serializers = [PostUnionWithJsonNameInputRestJson1Serializer()]; UnionWithJsonName? get value; @override @@ -47,10 +46,7 @@ abstract class PostUnionWithJsonNameInput @override String toString() { final helper = newBuiltValueToStringHelper('PostUnionWithJsonNameInput') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class PostUnionWithJsonNameInput class PostUnionWithJsonNameInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const PostUnionWithJsonNameInputRestJson1Serializer() - : super('PostUnionWithJsonNameInput'); + : super('PostUnionWithJsonNameInput'); @override Iterable get types => const [ - PostUnionWithJsonNameInput, - _$PostUnionWithJsonNameInput, - ]; + PostUnionWithJsonNameInput, + _$PostUnionWithJsonNameInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameInput deserialize( @@ -91,10 +84,12 @@ class PostUnionWithJsonNameInputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } @@ -112,10 +107,12 @@ class PostUnionWithJsonNameInputRestJson1Serializer if (value != null) { result$ ..add('value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(UnionWithJsonName), - )); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart index 5792938d14..519d23d309 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart @@ -10,16 +10,16 @@ class _$PostUnionWithJsonNameInput extends PostUnionWithJsonNameInput { @override final UnionWithJsonName? value; - factory _$PostUnionWithJsonNameInput( - [void Function(PostUnionWithJsonNameInputBuilder)? updates]) => - (new PostUnionWithJsonNameInputBuilder()..update(updates))._build(); + factory _$PostUnionWithJsonNameInput([ + void Function(PostUnionWithJsonNameInputBuilder)? updates, + ]) => (new PostUnionWithJsonNameInputBuilder()..update(updates))._build(); _$PostUnionWithJsonNameInput._({this.value}) : super._(); @override PostUnionWithJsonNameInput rebuild( - void Function(PostUnionWithJsonNameInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostUnionWithJsonNameInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostUnionWithJsonNameInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart index d88f5f526e..0bcd3746a2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.post_union_with_json_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class PostUnionWithJsonNameOutput return _$PostUnionWithJsonNameOutput._(value: value); } - factory PostUnionWithJsonNameOutput.build( - [void Function(PostUnionWithJsonNameOutputBuilder) updates]) = - _$PostUnionWithJsonNameOutput; + factory PostUnionWithJsonNameOutput.build([ + void Function(PostUnionWithJsonNameOutputBuilder) updates, + ]) = _$PostUnionWithJsonNameOutput; const PostUnionWithJsonNameOutput._(); @@ -29,11 +29,10 @@ abstract class PostUnionWithJsonNameOutput factory PostUnionWithJsonNameOutput.fromResponse( PostUnionWithJsonNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [PostUnionWithJsonNameOutputRestJson1Serializer()]; + serializers = [PostUnionWithJsonNameOutputRestJson1Serializer()]; UnionWithJsonName get value; @override @@ -42,10 +41,7 @@ abstract class PostUnionWithJsonNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('PostUnionWithJsonNameOutput') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -53,21 +49,18 @@ abstract class PostUnionWithJsonNameOutput class PostUnionWithJsonNameOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const PostUnionWithJsonNameOutputRestJson1Serializer() - : super('PostUnionWithJsonNameOutput'); + : super('PostUnionWithJsonNameOutput'); @override Iterable get types => const [ - PostUnionWithJsonNameOutput, - _$PostUnionWithJsonNameOutput, - ]; + PostUnionWithJsonNameOutput, + _$PostUnionWithJsonNameOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameOutput deserialize( @@ -86,10 +79,12 @@ class PostUnionWithJsonNameOutputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart index 9d5dcd9228..c093b0aad8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart @@ -10,19 +10,22 @@ class _$PostUnionWithJsonNameOutput extends PostUnionWithJsonNameOutput { @override final UnionWithJsonName value; - factory _$PostUnionWithJsonNameOutput( - [void Function(PostUnionWithJsonNameOutputBuilder)? updates]) => - (new PostUnionWithJsonNameOutputBuilder()..update(updates))._build(); + factory _$PostUnionWithJsonNameOutput([ + void Function(PostUnionWithJsonNameOutputBuilder)? updates, + ]) => (new PostUnionWithJsonNameOutputBuilder()..update(updates))._build(); _$PostUnionWithJsonNameOutput._({required this.value}) : super._() { BuiltValueNullFieldError.checkNotNull( - value, r'PostUnionWithJsonNameOutput', 'value'); + value, + r'PostUnionWithJsonNameOutput', + 'value', + ); } @override PostUnionWithJsonNameOutput rebuild( - void Function(PostUnionWithJsonNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostUnionWithJsonNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostUnionWithJsonNameOutputBuilder toBuilder() => @@ -45,8 +48,10 @@ class _$PostUnionWithJsonNameOutput extends PostUnionWithJsonNameOutput { class PostUnionWithJsonNameOutputBuilder implements - Builder { + Builder< + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutputBuilder + > { _$PostUnionWithJsonNameOutput? _$v; UnionWithJsonName? _value; @@ -79,10 +84,15 @@ class PostUnionWithJsonNameOutputBuilder PostUnionWithJsonNameOutput build() => _build(); _$PostUnionWithJsonNameOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PostUnionWithJsonNameOutput._( - value: BuiltValueNullFieldError.checkNotNull( - value, r'PostUnionWithJsonNameOutput', 'value')); + value: BuiltValueNullFieldError.checkNotNull( + value, + r'PostUnionWithJsonNameOutput', + 'value', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart index 806f757669..b6563dd318 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,19 +18,13 @@ abstract class PutWithContentEncodingInput implements Built, _i1.HasPayload { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -38,16 +32,15 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - PutWithContentEncodingInput.build((b) { - b.data = payload.data; - if (request.headers['Content-Encoding'] != null) { - b.encoding = request.headers['Content-Encoding']!; - } - }); + }) => PutWithContentEncodingInput.build((b) { + b.data = payload.data; + if (request.headers['Content-Encoding'] != null) { + b.encoding = request.headers['Content-Encoding']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputRestJson1Serializer()]; + serializers = [PutWithContentEncodingInputRestJson1Serializer()]; String? get encoding; String? get data; @@ -58,36 +51,29 @@ abstract class PutWithContentEncodingInput }); @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @_i3.internal abstract class PutWithContentEncodingInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder) updates]) = - _$PutWithContentEncodingInputPayload; + Built< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { + factory PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ]) = _$PutWithContentEncodingInputPayload; const PutWithContentEncodingInputPayload._(); @@ -97,12 +83,9 @@ abstract class PutWithContentEncodingInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('PutWithContentEncodingInputPayload') - ..add( - 'data', - data, - ); + final helper = newBuiltValueToStringHelper( + 'PutWithContentEncodingInputPayload', + )..add('data', data); return helper.toString(); } } @@ -110,23 +93,20 @@ abstract class PutWithContentEncodingInputPayload class PutWithContentEncodingInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputRestJson1Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - PutWithContentEncodingInputPayload, - _$PutWithContentEncodingInputPayload, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + PutWithContentEncodingInputPayload, + _$PutWithContentEncodingInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PutWithContentEncodingInputPayload deserialize( @@ -145,10 +125,12 @@ class PutWithContentEncodingInputRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -166,10 +148,9 @@ class PutWithContentEncodingInputRestJson1Serializer if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart index 4259e06363..c303950602 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; @@ -98,9 +101,9 @@ class _$PutWithContentEncodingInputPayload @override final String? data; - factory _$PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder)? - updates]) => + factory _$PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ]) => (new PutWithContentEncodingInputPayloadBuilder()..update(updates)) ._build(); @@ -108,8 +111,8 @@ class _$PutWithContentEncodingInputPayload @override PutWithContentEncodingInputPayload rebuild( - void Function(PutWithContentEncodingInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputPayloadBuilder toBuilder() => @@ -132,8 +135,10 @@ class _$PutWithContentEncodingInputPayload class PutWithContentEncodingInputPayloadBuilder implements - Builder { + Builder< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { _$PutWithContentEncodingInputPayload? _$v; String? _data; @@ -159,7 +164,8 @@ class PutWithContentEncodingInputPayloadBuilder @override void update( - void Function(PutWithContentEncodingInputPayloadBuilder)? updates) { + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart index b947ec1cc4..2dc001667e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -34,22 +36,23 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryIdempotencyTokenAutoFillInput.build((b) { - if (request.queryParameters['token'] != null) { - b.token = request.queryParameters['token']!; - } - }); + }) => QueryIdempotencyTokenAutoFillInput.build((b) { + if (request.queryParameters['token'] != null) { + b.token = request.queryParameters['token']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [QueryIdempotencyTokenAutoFillInputRestJson1Serializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -62,27 +65,25 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @_i3.internal abstract class QueryIdempotencyTokenAutoFillInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates]) = _$QueryIdempotencyTokenAutoFillInputPayload; + factory QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInputPayload; const QueryIdempotencyTokenAutoFillInputPayload._(); @@ -92,31 +93,32 @@ abstract class QueryIdempotencyTokenAutoFillInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'QueryIdempotencyTokenAutoFillInputPayload'); + 'QueryIdempotencyTokenAutoFillInputPayload', + ); return helper.toString(); } } -class QueryIdempotencyTokenAutoFillInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class QueryIdempotencyTokenAutoFillInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + QueryIdempotencyTokenAutoFillInputPayload + > { const QueryIdempotencyTokenAutoFillInputRestJson1Serializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInputPayload, - _$QueryIdempotencyTokenAutoFillInputPayload, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputPayload, + _$QueryIdempotencyTokenAutoFillInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryIdempotencyTokenAutoFillInputPayload deserialize( @@ -132,6 +134,5 @@ class QueryIdempotencyTokenAutoFillInputRestJson1Serializer extends _i1 Serializers serializers, QueryIdempotencyTokenAutoFillInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart index 77f1132aa1..e587f2ad82 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,9 @@ class QueryIdempotencyTokenAutoFillInputBuilder class _$QueryIdempotencyTokenAutoFillInputPayload extends QueryIdempotencyTokenAutoFillInputPayload { - factory _$QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputPayloadBuilder()..update(updates)) ._build(); @@ -101,9 +104,8 @@ class _$QueryIdempotencyTokenAutoFillInputPayload @override QueryIdempotencyTokenAutoFillInputPayload rebuild( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputPayloadBuilder toBuilder() => @@ -123,8 +125,10 @@ class _$QueryIdempotencyTokenAutoFillInputPayload class QueryIdempotencyTokenAutoFillInputPayloadBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + > { _$QueryIdempotencyTokenAutoFillInputPayload? _$v; QueryIdempotencyTokenAutoFillInputPayloadBuilder(); @@ -137,8 +141,8 @@ class QueryIdempotencyTokenAutoFillInputPayloadBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates) { + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart index f8db41f695..84196dd471 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.query_params_as_string_list_map_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class QueryParamsAsStringListMapInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryParamsAsStringListMapInput({ @@ -31,9 +33,9 @@ abstract class QueryParamsAsStringListMapInput ); } - factory QueryParamsAsStringListMapInput.build( - [void Function(QueryParamsAsStringListMapInputBuilder) updates]) = - _$QueryParamsAsStringListMapInput; + factory QueryParamsAsStringListMapInput.build([ + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ]) = _$QueryParamsAsStringListMapInput; const QueryParamsAsStringListMapInput._(); @@ -41,16 +43,16 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryParamsAsStringListMapInput.build((b) { - if (request.queryParameters['corge'] != null) { - b.qux = request.queryParameters['corge']!; - } - }); + }) => QueryParamsAsStringListMapInput.build((b) { + if (request.queryParameters['corge'] != null) { + b.qux = request.queryParameters['corge']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryParamsAsStringListMapInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [QueryParamsAsStringListMapInputRestJson1Serializer()]; String? get qux; _i3.BuiltListMultimap? get foo; @@ -59,38 +61,30 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload(); @override - List get props => [ - qux, - foo, - ]; + List get props => [qux, foo]; @override String toString() { final helper = newBuiltValueToStringHelper('QueryParamsAsStringListMapInput') - ..add( - 'qux', - qux, - ) - ..add( - 'foo', - foo, - ); + ..add('qux', qux) + ..add('foo', foo); return helper.toString(); } } @_i4.internal abstract class QueryParamsAsStringListMapInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates]) = _$QueryParamsAsStringListMapInputPayload; + factory QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ]) = _$QueryParamsAsStringListMapInputPayload; const QueryParamsAsStringListMapInputPayload._(); @@ -99,32 +93,31 @@ abstract class QueryParamsAsStringListMapInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryParamsAsStringListMapInputPayload'); + final helper = newBuiltValueToStringHelper( + 'QueryParamsAsStringListMapInputPayload', + ); return helper.toString(); } } -class QueryParamsAsStringListMapInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class QueryParamsAsStringListMapInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestJson1Serializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [ - QueryParamsAsStringListMapInput, - _$QueryParamsAsStringListMapInput, - QueryParamsAsStringListMapInputPayload, - _$QueryParamsAsStringListMapInputPayload, - ]; + QueryParamsAsStringListMapInput, + _$QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputPayload, + _$QueryParamsAsStringListMapInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryParamsAsStringListMapInputPayload deserialize( @@ -140,6 +133,5 @@ class QueryParamsAsStringListMapInputRestJson1Serializer extends _i1 Serializers serializers, QueryParamsAsStringListMapInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart index eb0a5eeece..5410fceab0 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart @@ -13,16 +13,17 @@ class _$QueryParamsAsStringListMapInput @override final _i3.BuiltListMultimap? foo; - factory _$QueryParamsAsStringListMapInput( - [void Function(QueryParamsAsStringListMapInputBuilder)? updates]) => + factory _$QueryParamsAsStringListMapInput([ + void Function(QueryParamsAsStringListMapInputBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputBuilder()..update(updates))._build(); _$QueryParamsAsStringListMapInput._({this.qux, this.foo}) : super._(); @override QueryParamsAsStringListMapInput rebuild( - void Function(QueryParamsAsStringListMapInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputBuilder toBuilder() => @@ -48,8 +49,10 @@ class _$QueryParamsAsStringListMapInput class QueryParamsAsStringListMapInputBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + > { _$QueryParamsAsStringListMapInput? _$v; String? _qux; @@ -90,7 +93,8 @@ class QueryParamsAsStringListMapInputBuilder _$QueryParamsAsStringListMapInput _build() { _$QueryParamsAsStringListMapInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryParamsAsStringListMapInput._(qux: qux, foo: _foo?.build()); } catch (_) { late String _$failedField; @@ -99,7 +103,10 @@ class QueryParamsAsStringListMapInputBuilder _foo?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryParamsAsStringListMapInput', _$failedField, e.toString()); + r'QueryParamsAsStringListMapInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -110,9 +117,9 @@ class QueryParamsAsStringListMapInputBuilder class _$QueryParamsAsStringListMapInputPayload extends QueryParamsAsStringListMapInputPayload { - factory _$QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder)? - updates]) => + factory _$QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputPayloadBuilder()..update(updates)) ._build(); @@ -120,9 +127,8 @@ class _$QueryParamsAsStringListMapInputPayload @override QueryParamsAsStringListMapInputPayload rebuild( - void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputPayloadBuilder toBuilder() => @@ -142,8 +148,10 @@ class _$QueryParamsAsStringListMapInputPayload class QueryParamsAsStringListMapInputPayloadBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + > { _$QueryParamsAsStringListMapInputPayload? _$v; QueryParamsAsStringListMapInputPayloadBuilder(); @@ -156,7 +164,8 @@ class QueryParamsAsStringListMapInputPayloadBuilder @override void update( - void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates) { + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart index 6803f02c3c..04ca8a7a72 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.query_precedence_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,19 +20,16 @@ abstract class QueryPrecedenceInput Built, _i1.EmptyPayload, _i1.HasPayload { - factory QueryPrecedenceInput({ - String? foo, - Map? baz, - }) { + factory QueryPrecedenceInput({String? foo, Map? baz}) { return _$QueryPrecedenceInput._( foo: foo, baz: baz == null ? null : _i3.BuiltMap(baz), ); } - factory QueryPrecedenceInput.build( - [void Function(QueryPrecedenceInputBuilder) updates]) = - _$QueryPrecedenceInput; + factory QueryPrecedenceInput.build([ + void Function(QueryPrecedenceInputBuilder) updates, + ]) = _$QueryPrecedenceInput; const QueryPrecedenceInput._(); @@ -40,15 +37,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryPrecedenceInput.build((b) { - if (request.queryParameters['bar'] != null) { - b.foo = request.queryParameters['bar']!; - } - }); + }) => QueryPrecedenceInput.build((b) { + if (request.queryParameters['bar'] != null) { + b.foo = request.queryParameters['bar']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [QueryPrecedenceInputRestJson1Serializer()]; + serializers = [QueryPrecedenceInputRestJson1Serializer()]; String? get foo; _i3.BuiltMap? get baz; @@ -56,22 +52,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload getPayload() => QueryPrecedenceInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryPrecedenceInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + final helper = + newBuiltValueToStringHelper('QueryPrecedenceInput') + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @@ -82,9 +70,9 @@ abstract class QueryPrecedenceInputPayload implements Built, _i1.EmptyPayload { - factory QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder) updates]) = - _$QueryPrecedenceInputPayload; + factory QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ]) = _$QueryPrecedenceInputPayload; const QueryPrecedenceInputPayload._(); @@ -101,23 +89,20 @@ abstract class QueryPrecedenceInputPayload class QueryPrecedenceInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const QueryPrecedenceInputRestJson1Serializer() - : super('QueryPrecedenceInput'); + : super('QueryPrecedenceInput'); @override Iterable get types => const [ - QueryPrecedenceInput, - _$QueryPrecedenceInput, - QueryPrecedenceInputPayload, - _$QueryPrecedenceInputPayload, - ]; + QueryPrecedenceInput, + _$QueryPrecedenceInput, + QueryPrecedenceInputPayload, + _$QueryPrecedenceInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryPrecedenceInputPayload deserialize( @@ -133,6 +118,5 @@ class QueryPrecedenceInputRestJson1Serializer Serializers serializers, QueryPrecedenceInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart index 66a51ce432..f8c1ab2779 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart @@ -12,16 +12,16 @@ class _$QueryPrecedenceInput extends QueryPrecedenceInput { @override final _i3.BuiltMap? baz; - factory _$QueryPrecedenceInput( - [void Function(QueryPrecedenceInputBuilder)? updates]) => - (new QueryPrecedenceInputBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInput([ + void Function(QueryPrecedenceInputBuilder)? updates, + ]) => (new QueryPrecedenceInputBuilder()..update(updates))._build(); _$QueryPrecedenceInput._({this.foo, this.baz}) : super._(); @override QueryPrecedenceInput rebuild( - void Function(QueryPrecedenceInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputBuilder toBuilder() => @@ -96,7 +96,10 @@ class QueryPrecedenceInputBuilder _baz?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryPrecedenceInput', _$failedField, e.toString()); + r'QueryPrecedenceInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -106,16 +109,16 @@ class QueryPrecedenceInputBuilder } class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { - factory _$QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder)? updates]) => - (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder)? updates, + ]) => (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); _$QueryPrecedenceInputPayload._() : super._(); @override QueryPrecedenceInputPayload rebuild( - void Function(QueryPrecedenceInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputPayloadBuilder toBuilder() => @@ -135,8 +138,10 @@ class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { class QueryPrecedenceInputPayloadBuilder implements - Builder { + Builder< + QueryPrecedenceInputPayload, + QueryPrecedenceInputPayloadBuilder + > { _$QueryPrecedenceInputPayload? _$v; QueryPrecedenceInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart index dfd088347c..da61fef43a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.recursive_shapes_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,15 @@ abstract class RecursiveShapesInputOutput _i2.AWSEquatable implements Built { - factory RecursiveShapesInputOutput( - {RecursiveShapesInputOutputNested1? nested}) { + factory RecursiveShapesInputOutput({ + RecursiveShapesInputOutputNested1? nested, + }) { return _$RecursiveShapesInputOutput._(nested: nested); } - factory RecursiveShapesInputOutput.build( - [void Function(RecursiveShapesInputOutputBuilder) updates]) = - _$RecursiveShapesInputOutput; + factory RecursiveShapesInputOutput.build([ + void Function(RecursiveShapesInputOutputBuilder) updates, + ]) = _$RecursiveShapesInputOutput; const RecursiveShapesInputOutput._(); @@ -32,18 +33,16 @@ abstract class RecursiveShapesInputOutput RecursiveShapesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [RecursiveShapesInputOutput] from a [payload] and [response]. factory RecursiveShapesInputOutput.fromResponse( RecursiveShapesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [RecursiveShapesInputOutputRestJson1Serializer()]; + serializers = [RecursiveShapesInputOutputRestJson1Serializer()]; RecursiveShapesInputOutputNested1? get nested; @override @@ -55,10 +54,7 @@ abstract class RecursiveShapesInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -66,21 +62,18 @@ abstract class RecursiveShapesInputOutput class RecursiveShapesInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const RecursiveShapesInputOutputRestJson1Serializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [ - RecursiveShapesInputOutput, - _$RecursiveShapesInputOutput, - ]; + RecursiveShapesInputOutput, + _$RecursiveShapesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -99,10 +92,15 @@ class RecursiveShapesInputOutputRestJson1Serializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -120,10 +118,12 @@ class RecursiveShapesInputOutputRestJson1Serializer if (nested != null) { result$ ..add('nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart index fc89700ff1..b737463f66 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveShapesInputOutput extends RecursiveShapesInputOutput { @override final RecursiveShapesInputOutputNested1? nested; - factory _$RecursiveShapesInputOutput( - [void Function(RecursiveShapesInputOutputBuilder)? updates]) => - (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); + factory _$RecursiveShapesInputOutput([ + void Function(RecursiveShapesInputOutputBuilder)? updates, + ]) => (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); _$RecursiveShapesInputOutput._({this.nested}) : super._(); @override RecursiveShapesInputOutput rebuild( - void Function(RecursiveShapesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveShapesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutput', _$failedField, e.toString()); + r'RecursiveShapesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart index b23233c9b5..4259d44883 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.recursive_shapes_input_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested1.g.dart'; abstract class RecursiveShapesInputOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { factory RecursiveShapesInputOutputNested1({ String? foo, RecursiveShapesInputOutputNested2? nested, }) { - return _$RecursiveShapesInputOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveShapesInputOutputNested1._(foo: foo, nested: nested); } - factory RecursiveShapesInputOutputNested1.build( - [void Function(RecursiveShapesInputOutputNested1Builder) updates]) = - _$RecursiveShapesInputOutputNested1; + factory RecursiveShapesInputOutputNested1.build([ + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ]) = _$RecursiveShapesInputOutputNested1; const RecursiveShapesInputOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested1RestJson1Serializer()]; + serializers = [RecursiveShapesInputOutputNested1RestJson1Serializer()]; String? get foo; RecursiveShapesInputOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1RestJson1Serializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestJson1Serializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested1, - _$RecursiveShapesInputOutputNested1, - ]; + RecursiveShapesInputOutputNested1, + _$RecursiveShapesInputOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -96,15 +82,22 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -122,18 +115,19 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer if (foo != null) { result$ ..add('foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add('nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart index 658695aa86..a74cf81627 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart @@ -13,8 +13,9 @@ class _$RecursiveShapesInputOutputNested1 @override final RecursiveShapesInputOutputNested2? nested; - factory _$RecursiveShapesInputOutputNested1( - [void Function(RecursiveShapesInputOutputNested1Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested1([ + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested1Builder()..update(updates)) ._build(); @@ -22,8 +23,8 @@ class _$RecursiveShapesInputOutputNested1 @override RecursiveShapesInputOutputNested1 rebuild( - void Function(RecursiveShapesInputOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested1Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { _$RecursiveShapesInputOutputNested1? _$v; String? _foo; @@ -83,7 +86,8 @@ class RecursiveShapesInputOutputNested1Builder @override void update( - void Function(RecursiveShapesInputOutputNested1Builder)? updates) { + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ) { if (updates != null) updates(this); } @@ -93,9 +97,12 @@ class RecursiveShapesInputOutputNested1Builder _$RecursiveShapesInputOutputNested1 _build() { _$RecursiveShapesInputOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +110,10 @@ class RecursiveShapesInputOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested1', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart index 428e41ae71..2fab70f75d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.recursive_shapes_input_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested2.g.dart'; abstract class RecursiveShapesInputOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { factory RecursiveShapesInputOutputNested2({ String? bar, RecursiveShapesInputOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveShapesInputOutputNested2 ); } - factory RecursiveShapesInputOutputNested2.build( - [void Function(RecursiveShapesInputOutputNested2Builder) updates]) = - _$RecursiveShapesInputOutputNested2; + factory RecursiveShapesInputOutputNested2.build([ + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ]) = _$RecursiveShapesInputOutputNested2; const RecursiveShapesInputOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested2RestJson1Serializer()]; + serializers = [RecursiveShapesInputOutputNested2RestJson1Serializer()]; String? get bar; RecursiveShapesInputOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2RestJson1Serializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestJson1Serializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested2, - _$RecursiveShapesInputOutputNested2, - ]; + RecursiveShapesInputOutputNested2, + _$RecursiveShapesInputOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -96,15 +85,22 @@ class RecursiveShapesInputOutputNested2RestJson1Serializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -122,18 +118,19 @@ class RecursiveShapesInputOutputNested2RestJson1Serializer if (bar != null) { result$ ..add('bar') - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add('recursiveMember') - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart index 5d6e059eed..335c218759 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart @@ -13,18 +13,19 @@ class _$RecursiveShapesInputOutputNested2 @override final RecursiveShapesInputOutputNested1? recursiveMember; - factory _$RecursiveShapesInputOutputNested2( - [void Function(RecursiveShapesInputOutputNested2Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested2([ + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested2Builder()..update(updates)) ._build(); _$RecursiveShapesInputOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveShapesInputOutputNested2 rebuild( - void Function(RecursiveShapesInputOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested2Builder toBuilder() => @@ -50,8 +51,10 @@ class _$RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { _$RecursiveShapesInputOutputNested2? _$v; String? _bar; @@ -63,8 +66,8 @@ class RecursiveShapesInputOutputNested2Builder _$this._recursiveMember ??= new RecursiveShapesInputOutputNested1Builder(); set recursiveMember( - RecursiveShapesInputOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveShapesInputOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveShapesInputOutputNested2Builder(); @@ -86,7 +89,8 @@ class RecursiveShapesInputOutputNested2Builder @override void update( - void Function(RecursiveShapesInputOutputNested2Builder)? updates) { + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ) { if (updates != null) updates(this); } @@ -96,9 +100,12 @@ class RecursiveShapesInputOutputNested2Builder _$RecursiveShapesInputOutputNested2 _build() { _$RecursiveShapesInputOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -106,7 +113,10 @@ class RecursiveShapesInputOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested2', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart index 75a4daf954..064d4679d7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.renamed_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,13 +17,14 @@ abstract class RenamedGreeting return _$RenamedGreeting._(salutation: salutation); } - factory RenamedGreeting.build( - [void Function(RenamedGreetingBuilder) updates]) = _$RenamedGreeting; + factory RenamedGreeting.build([ + void Function(RenamedGreetingBuilder) updates, + ]) = _$RenamedGreeting; const RenamedGreeting._(); static const List<_i2.SmithySerializer> serializers = [ - RenamedGreetingRestJson1Serializer() + RenamedGreetingRestJson1Serializer(), ]; String? get salutation; @@ -33,10 +34,7 @@ abstract class RenamedGreeting @override String toString() { final helper = newBuiltValueToStringHelper('RenamedGreeting') - ..add( - 'salutation', - salutation, - ); + ..add('salutation', salutation); return helper.toString(); } } @@ -46,18 +44,12 @@ class RenamedGreetingRestJson1Serializer const RenamedGreetingRestJson1Serializer() : super('RenamedGreeting'); @override - Iterable get types => const [ - RenamedGreeting, - _$RenamedGreeting, - ]; + Iterable get types => const [RenamedGreeting, _$RenamedGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RenamedGreeting deserialize( @@ -76,10 +68,12 @@ class RenamedGreetingRestJson1Serializer } switch (key) { case 'salutation': - result.salutation = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.salutation = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +91,12 @@ class RenamedGreetingRestJson1Serializer if (salutation != null) { result$ ..add('salutation') - ..add(serializers.serialize( - salutation, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + salutation, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart index c624225ffc..4f859edca3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.response_code_http_fallback_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class ResponseCodeHttpFallbackInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutputBuilder + >, _i1.EmptyPayload { factory ResponseCodeHttpFallbackInputOutput() { return _$ResponseCodeHttpFallbackInputOutput._(); } - factory ResponseCodeHttpFallbackInputOutput.build( - [void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates]) = - _$ResponseCodeHttpFallbackInputOutput; + factory ResponseCodeHttpFallbackInputOutput.build([ + void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates, + ]) = _$ResponseCodeHttpFallbackInputOutput; const ResponseCodeHttpFallbackInputOutput._(); @@ -32,18 +34,16 @@ abstract class ResponseCodeHttpFallbackInputOutput ResponseCodeHttpFallbackInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [ResponseCodeHttpFallbackInputOutput] from a [payload] and [response]. factory ResponseCodeHttpFallbackInputOutput.fromResponse( ResponseCodeHttpFallbackInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [ResponseCodeHttpFallbackInputOutputRestJson1Serializer()]; + serializers = [ResponseCodeHttpFallbackInputOutputRestJson1Serializer()]; @override ResponseCodeHttpFallbackInputOutput getPayload() => this; @@ -53,30 +53,29 @@ abstract class ResponseCodeHttpFallbackInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('ResponseCodeHttpFallbackInputOutput'); + final helper = newBuiltValueToStringHelper( + 'ResponseCodeHttpFallbackInputOutput', + ); return helper.toString(); } } -class ResponseCodeHttpFallbackInputOutputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class ResponseCodeHttpFallbackInputOutputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const ResponseCodeHttpFallbackInputOutputRestJson1Serializer() - : super('ResponseCodeHttpFallbackInputOutput'); + : super('ResponseCodeHttpFallbackInputOutput'); @override Iterable get types => const [ - ResponseCodeHttpFallbackInputOutput, - _$ResponseCodeHttpFallbackInputOutput, - ]; + ResponseCodeHttpFallbackInputOutput, + _$ResponseCodeHttpFallbackInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResponseCodeHttpFallbackInputOutput deserialize( @@ -92,6 +91,5 @@ class ResponseCodeHttpFallbackInputOutputRestJson1Serializer extends _i1 Serializers serializers, ResponseCodeHttpFallbackInputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart index ff79b393ff..d7a82c6769 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart @@ -8,9 +8,9 @@ part of 'response_code_http_fallback_input_output.dart'; class _$ResponseCodeHttpFallbackInputOutput extends ResponseCodeHttpFallbackInputOutput { - factory _$ResponseCodeHttpFallbackInputOutput( - [void Function(ResponseCodeHttpFallbackInputOutputBuilder)? - updates]) => + factory _$ResponseCodeHttpFallbackInputOutput([ + void Function(ResponseCodeHttpFallbackInputOutputBuilder)? updates, + ]) => (new ResponseCodeHttpFallbackInputOutputBuilder()..update(updates)) ._build(); @@ -18,8 +18,8 @@ class _$ResponseCodeHttpFallbackInputOutput @override ResponseCodeHttpFallbackInputOutput rebuild( - void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResponseCodeHttpFallbackInputOutputBuilder toBuilder() => @@ -39,8 +39,10 @@ class _$ResponseCodeHttpFallbackInputOutput class ResponseCodeHttpFallbackInputOutputBuilder implements - Builder { + Builder< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutputBuilder + > { _$ResponseCodeHttpFallbackInputOutput? _$v; ResponseCodeHttpFallbackInputOutputBuilder(); @@ -53,7 +55,8 @@ class ResponseCodeHttpFallbackInputOutputBuilder @override void update( - void Function(ResponseCodeHttpFallbackInputOutputBuilder)? updates) { + void Function(ResponseCodeHttpFallbackInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart index 1f8a4187a1..6a1bc8fd63 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.response_code_required_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class ResponseCodeRequiredOutput return _$ResponseCodeRequiredOutput._(responseCode: responseCode); } - factory ResponseCodeRequiredOutput.build( - [void Function(ResponseCodeRequiredOutputBuilder) updates]) = - _$ResponseCodeRequiredOutput; + factory ResponseCodeRequiredOutput.build([ + void Function(ResponseCodeRequiredOutputBuilder) updates, + ]) = _$ResponseCodeRequiredOutput; const ResponseCodeRequiredOutput._(); @@ -31,13 +31,12 @@ abstract class ResponseCodeRequiredOutput factory ResponseCodeRequiredOutput.fromResponse( ResponseCodeRequiredOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ResponseCodeRequiredOutput.build((b) { - b.responseCode = response.statusCode; - }); + ) => ResponseCodeRequiredOutput.build((b) { + b.responseCode = response.statusCode; + }); static const List<_i2.SmithySerializer> - serializers = [ResponseCodeRequiredOutputRestJson1Serializer()]; + serializers = [ResponseCodeRequiredOutputRestJson1Serializer()]; int get responseCode; @override @@ -50,25 +49,23 @@ abstract class ResponseCodeRequiredOutput @override String toString() { final helper = newBuiltValueToStringHelper('ResponseCodeRequiredOutput') - ..add( - 'responseCode', - responseCode, - ); + ..add('responseCode', responseCode); return helper.toString(); } } @_i3.internal abstract class ResponseCodeRequiredOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutputPayloadBuilder + >, _i2.EmptyPayload { - factory ResponseCodeRequiredOutputPayload( - [void Function(ResponseCodeRequiredOutputPayloadBuilder) updates]) = - _$ResponseCodeRequiredOutputPayload; + factory ResponseCodeRequiredOutputPayload([ + void Function(ResponseCodeRequiredOutputPayloadBuilder) updates, + ]) = _$ResponseCodeRequiredOutputPayload; const ResponseCodeRequiredOutputPayload._(); @@ -77,8 +74,9 @@ abstract class ResponseCodeRequiredOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('ResponseCodeRequiredOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'ResponseCodeRequiredOutputPayload', + ); return helper.toString(); } } @@ -86,23 +84,20 @@ abstract class ResponseCodeRequiredOutputPayload class ResponseCodeRequiredOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const ResponseCodeRequiredOutputRestJson1Serializer() - : super('ResponseCodeRequiredOutput'); + : super('ResponseCodeRequiredOutput'); @override Iterable get types => const [ - ResponseCodeRequiredOutput, - _$ResponseCodeRequiredOutput, - ResponseCodeRequiredOutputPayload, - _$ResponseCodeRequiredOutputPayload, - ]; + ResponseCodeRequiredOutput, + _$ResponseCodeRequiredOutput, + ResponseCodeRequiredOutputPayload, + _$ResponseCodeRequiredOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResponseCodeRequiredOutputPayload deserialize( @@ -118,6 +113,5 @@ class ResponseCodeRequiredOutputRestJson1Serializer Serializers serializers, ResponseCodeRequiredOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart index 7686030273..24e203985d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart @@ -10,19 +10,22 @@ class _$ResponseCodeRequiredOutput extends ResponseCodeRequiredOutput { @override final int responseCode; - factory _$ResponseCodeRequiredOutput( - [void Function(ResponseCodeRequiredOutputBuilder)? updates]) => - (new ResponseCodeRequiredOutputBuilder()..update(updates))._build(); + factory _$ResponseCodeRequiredOutput([ + void Function(ResponseCodeRequiredOutputBuilder)? updates, + ]) => (new ResponseCodeRequiredOutputBuilder()..update(updates))._build(); _$ResponseCodeRequiredOutput._({required this.responseCode}) : super._() { BuiltValueNullFieldError.checkNotNull( - responseCode, r'ResponseCodeRequiredOutput', 'responseCode'); + responseCode, + r'ResponseCodeRequiredOutput', + 'responseCode', + ); } @override ResponseCodeRequiredOutput rebuild( - void Function(ResponseCodeRequiredOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResponseCodeRequiredOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResponseCodeRequiredOutputBuilder toBuilder() => @@ -79,10 +82,15 @@ class ResponseCodeRequiredOutputBuilder ResponseCodeRequiredOutput build() => _build(); _$ResponseCodeRequiredOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ResponseCodeRequiredOutput._( - responseCode: BuiltValueNullFieldError.checkNotNull( - responseCode, r'ResponseCodeRequiredOutput', 'responseCode')); + responseCode: BuiltValueNullFieldError.checkNotNull( + responseCode, + r'ResponseCodeRequiredOutput', + 'responseCode', + ), + ); replace(_$result); return _$result; } @@ -90,8 +98,9 @@ class ResponseCodeRequiredOutputBuilder class _$ResponseCodeRequiredOutputPayload extends ResponseCodeRequiredOutputPayload { - factory _$ResponseCodeRequiredOutputPayload( - [void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates]) => + factory _$ResponseCodeRequiredOutputPayload([ + void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates, + ]) => (new ResponseCodeRequiredOutputPayloadBuilder()..update(updates)) ._build(); @@ -99,8 +108,8 @@ class _$ResponseCodeRequiredOutputPayload @override ResponseCodeRequiredOutputPayload rebuild( - void Function(ResponseCodeRequiredOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResponseCodeRequiredOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResponseCodeRequiredOutputPayloadBuilder toBuilder() => @@ -120,8 +129,10 @@ class _$ResponseCodeRequiredOutputPayload class ResponseCodeRequiredOutputPayloadBuilder implements - Builder { + Builder< + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutputPayloadBuilder + > { _$ResponseCodeRequiredOutputPayload? _$v; ResponseCodeRequiredOutputPayloadBuilder(); @@ -134,7 +145,8 @@ class ResponseCodeRequiredOutputPayloadBuilder @override void update( - void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates) { + void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_config.dart index 147553b423..c2264c7554 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart index 385b98be64..58e5a9ad08 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart index ff804fcd06..e036588b12 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.dart index 59390ad679..0811cbec8a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart index 482498668b..c8132cdd37 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart index 47ad8ea828..ecd73d4f4c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + >, _i1.HasPayload { factory SimpleScalarPropertiesInputOutput({ String? foo, @@ -46,9 +48,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -56,45 +58,44 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [SimpleScalarPropertiesInputOutputRestJson1Serializer()]; String? get foo; String? get stringValue; @@ -122,76 +123,47 @@ abstract class SimpleScalarPropertiesInputOutput @override List get props => [ - foo, - stringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + foo, + stringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('foo', foo) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @_i4.internal abstract class SimpleScalarPropertiesInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates]) = _$SimpleScalarPropertiesInputOutputPayload; + Built< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { + factory SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutputPayload; const SimpleScalarPropertiesInputOutputPayload._(); @@ -206,81 +178,54 @@ abstract class SimpleScalarPropertiesInputOutputPayload bool? get trueBooleanValue; @override List get props => [ - byteValue, - doubleValue, - falseBooleanValue, - floatValue, - integerValue, - longValue, - shortValue, - stringValue, - trueBooleanValue, - ]; + byteValue, + doubleValue, + falseBooleanValue, + floatValue, + integerValue, + longValue, + shortValue, + stringValue, + trueBooleanValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutputPayload') - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'doubleValue', - doubleValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ); + ..add('byteValue', byteValue) + ..add('doubleValue', doubleValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('floatValue', floatValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('shortValue', shortValue) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue); return helper.toString(); } } -class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class SimpleScalarPropertiesInputOutputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + SimpleScalarPropertiesInputOutputPayload + > { const SimpleScalarPropertiesInputOutputRestJson1Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - _$SimpleScalarPropertiesInputOutputPayload, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + _$SimpleScalarPropertiesInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SimpleScalarPropertiesInputOutputPayload deserialize( @@ -299,50 +244,68 @@ class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i1 } switch (key) { case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -365,79 +328,91 @@ class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i1 :longValue, :shortValue, :stringValue, - :trueBooleanValue + :trueBooleanValue, ) = object; if (byteValue != null) { result$ ..add('byteValue') - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add('DoubleDribble') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (falseBooleanValue != null) { result$ ..add('falseBooleanValue') - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add('integerValue') - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add('longValue') - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (shortValue != null) { result$ ..add('shortValue') - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add('stringValue') - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add('trueBooleanValue') - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart index e7b332a395..760a6cb211 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart @@ -29,28 +29,29 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutput._( - {this.foo, - this.stringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarPropertiesInputOutput._({ + this.foo, + this.stringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -92,8 +93,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; String? _foo; @@ -166,7 +169,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -174,18 +178,20 @@ class SimpleScalarPropertiesInputOutputBuilder SimpleScalarPropertiesInputOutput build() => _build(); _$SimpleScalarPropertiesInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - foo: foo, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + foo: foo, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } @@ -212,29 +218,28 @@ class _$SimpleScalarPropertiesInputOutputPayload @override final bool? trueBooleanValue; - factory _$SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? - updates]) => + factory _$SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputPayloadBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutputPayload._( - {this.byteValue, - this.doubleValue, - this.falseBooleanValue, - this.floatValue, - this.integerValue, - this.longValue, - this.shortValue, - this.stringValue, - this.trueBooleanValue}) - : super._(); + _$SimpleScalarPropertiesInputOutputPayload._({ + this.byteValue, + this.doubleValue, + this.falseBooleanValue, + this.floatValue, + this.integerValue, + this.longValue, + this.shortValue, + this.stringValue, + this.trueBooleanValue, + }) : super._(); @override SimpleScalarPropertiesInputOutputPayload rebuild( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputPayloadBuilder toBuilder() => @@ -274,8 +279,10 @@ class _$SimpleScalarPropertiesInputOutputPayload class SimpleScalarPropertiesInputOutputPayloadBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { _$SimpleScalarPropertiesInputOutputPayload? _$v; int? _byteValue; @@ -343,7 +350,8 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -351,17 +359,19 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder SimpleScalarPropertiesInputOutputPayload build() => _build(); _$SimpleScalarPropertiesInputOutputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutputPayload._( - byteValue: byteValue, - doubleValue: doubleValue, - falseBooleanValue: falseBooleanValue, - floatValue: floatValue, - integerValue: integerValue, - longValue: longValue, - shortValue: shortValue, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue); + byteValue: byteValue, + doubleValue: doubleValue, + falseBooleanValue: falseBooleanValue, + floatValue: floatValue, + integerValue: integerValue, + longValue: longValue, + shortValue: shortValue, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart index 1551f7f9a6..c3ca5ee0cc 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/simple_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.simple_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,13 +14,11 @@ sealed class SimpleUnion extends _i1.SmithyUnion { const factory SimpleUnion.string(String string) = SimpleUnionString$; - const factory SimpleUnion.sdkUnknown( - String name, - Object value, - ) = SimpleUnionSdkUnknown$; + const factory SimpleUnion.sdkUnknown(String name, Object value) = + SimpleUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - SimpleUnionRestJson1Serializer() + SimpleUnionRestJson1Serializer(), ]; int? get int$ => null; @@ -34,16 +32,10 @@ sealed class SimpleUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'SimpleUnion'); if (int$ != null) { - helper.add( - r'int$', - int$, - ); + helper.add(r'int$', int$); } if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } return helper.toString(); } @@ -70,10 +62,7 @@ final class SimpleUnionString$ extends SimpleUnion { } final class SimpleUnionSdkUnknown$ extends SimpleUnion { - const SimpleUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const SimpleUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,18 +77,15 @@ class SimpleUnionRestJson1Serializer @override Iterable get types => const [ - SimpleUnion, - SimpleUnionInt$, - SimpleUnionString$, - ]; + SimpleUnion, + SimpleUnionInt$, + SimpleUnionString$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SimpleUnion deserialize( @@ -110,20 +96,17 @@ class SimpleUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'int': - return SimpleUnionInt$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return SimpleUnionInt$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'string': - return SimpleUnionString$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return SimpleUnionString$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return SimpleUnion.sdkUnknown( - key, - value, - ); + return SimpleUnion.sdkUnknown(key, value); } @override @@ -136,13 +119,13 @@ class SimpleUnionRestJson1Serializer object.name, switch (object) { SimpleUnionInt$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), SimpleUnionString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), SimpleUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart index df58fe0ec0..22674d3df1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.streaming_traits_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,15 +23,12 @@ abstract class StreamingTraitsInputOutput String? foo, _i2.Stream>? blob, }) { - return _$StreamingTraitsInputOutput._( - foo: foo, - blob: blob, - ); + return _$StreamingTraitsInputOutput._(foo: foo, blob: blob); } - factory StreamingTraitsInputOutput.build( - [void Function(StreamingTraitsInputOutputBuilder) updates]) = - _$StreamingTraitsInputOutput; + factory StreamingTraitsInputOutput.build([ + void Function(StreamingTraitsInputOutputBuilder) updates, + ]) = _$StreamingTraitsInputOutput; const StreamingTraitsInputOutput._(); @@ -39,25 +36,23 @@ abstract class StreamingTraitsInputOutput _i2.Stream>? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StreamingTraitsInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => StreamingTraitsInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [StreamingTraitsInputOutput] from a [payload] and [response]. factory StreamingTraitsInputOutput.fromResponse( _i2.Stream>? payload, _i3.AWSBaseHttpResponse response, - ) => - StreamingTraitsInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => StreamingTraitsInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>?>> serializers = [StreamingTraitsInputOutputRestJson1Serializer()]; @@ -68,22 +63,14 @@ abstract class StreamingTraitsInputOutput _i2.Stream>? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { - final helper = newBuiltValueToStringHelper('StreamingTraitsInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + final helper = + newBuiltValueToStringHelper('StreamingTraitsInputOutput') + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -91,21 +78,18 @@ abstract class StreamingTraitsInputOutput class StreamingTraitsInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const StreamingTraitsInputOutputRestJson1Serializer() - : super('StreamingTraitsInputOutput'); + : super('StreamingTraitsInputOutput'); @override Iterable get types => const [ - StreamingTraitsInputOutput, - _$StreamingTraitsInputOutput, - ]; + StreamingTraitsInputOutput, + _$StreamingTraitsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -114,17 +98,12 @@ class StreamingTraitsInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -135,15 +114,9 @@ class StreamingTraitsInputOutputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart index 9f160cb5bb..82a54af318 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart @@ -12,16 +12,16 @@ class _$StreamingTraitsInputOutput extends StreamingTraitsInputOutput { @override final _i2.Stream>? blob; - factory _$StreamingTraitsInputOutput( - [void Function(StreamingTraitsInputOutputBuilder)? updates]) => - (new StreamingTraitsInputOutputBuilder()..update(updates))._build(); + factory _$StreamingTraitsInputOutput([ + void Function(StreamingTraitsInputOutputBuilder)? updates, + ]) => (new StreamingTraitsInputOutputBuilder()..update(updates))._build(); _$StreamingTraitsInputOutput._({this.foo, this.blob}) : super._(); @override StreamingTraitsInputOutput rebuild( - void Function(StreamingTraitsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StreamingTraitsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StreamingTraitsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart index d4b8bd4a90..2e5e26ded5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.streaming_traits_require_length_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,21 @@ abstract class StreamingTraitsRequireLengthInput _i1.HttpInput<_i2.Stream>>, _i3.AWSEquatable implements - Built, + Built< + StreamingTraitsRequireLengthInput, + StreamingTraitsRequireLengthInputBuilder + >, _i1.HasPayload<_i2.Stream>> { factory StreamingTraitsRequireLengthInput({ String? foo, _i2.Stream>? blob, }) { - return _$StreamingTraitsRequireLengthInput._( - foo: foo, - blob: blob, - ); + return _$StreamingTraitsRequireLengthInput._(foo: foo, blob: blob); } - factory StreamingTraitsRequireLengthInput.build( - [void Function(StreamingTraitsRequireLengthInputBuilder) updates]) = - _$StreamingTraitsRequireLengthInput; + factory StreamingTraitsRequireLengthInput.build([ + void Function(StreamingTraitsRequireLengthInputBuilder) updates, + ]) = _$StreamingTraitsRequireLengthInput; const StreamingTraitsRequireLengthInput._(); @@ -40,13 +39,12 @@ abstract class StreamingTraitsRequireLengthInput _i2.Stream>? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StreamingTraitsRequireLengthInput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => StreamingTraitsRequireLengthInput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>?>> serializers = [StreamingTraitsRequireLengthInputRestJson1Serializer()]; @@ -57,23 +55,14 @@ abstract class StreamingTraitsRequireLengthInput _i2.Stream>? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('StreamingTraitsRequireLengthInput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -81,21 +70,18 @@ abstract class StreamingTraitsRequireLengthInput class StreamingTraitsRequireLengthInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const StreamingTraitsRequireLengthInputRestJson1Serializer() - : super('StreamingTraitsRequireLengthInput'); + : super('StreamingTraitsRequireLengthInput'); @override Iterable get types => const [ - StreamingTraitsRequireLengthInput, - _$StreamingTraitsRequireLengthInput, - ]; + StreamingTraitsRequireLengthInput, + _$StreamingTraitsRequireLengthInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -104,17 +90,12 @@ class StreamingTraitsRequireLengthInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -125,15 +106,9 @@ class StreamingTraitsRequireLengthInputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart index 4d1e47940b..2f367202b8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart @@ -13,8 +13,9 @@ class _$StreamingTraitsRequireLengthInput @override final _i2.Stream>? blob; - factory _$StreamingTraitsRequireLengthInput( - [void Function(StreamingTraitsRequireLengthInputBuilder)? updates]) => + factory _$StreamingTraitsRequireLengthInput([ + void Function(StreamingTraitsRequireLengthInputBuilder)? updates, + ]) => (new StreamingTraitsRequireLengthInputBuilder()..update(updates)) ._build(); @@ -22,8 +23,8 @@ class _$StreamingTraitsRequireLengthInput @override StreamingTraitsRequireLengthInput rebuild( - void Function(StreamingTraitsRequireLengthInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StreamingTraitsRequireLengthInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StreamingTraitsRequireLengthInputBuilder toBuilder() => @@ -49,8 +50,10 @@ class _$StreamingTraitsRequireLengthInput class StreamingTraitsRequireLengthInputBuilder implements - Builder { + Builder< + StreamingTraitsRequireLengthInput, + StreamingTraitsRequireLengthInputBuilder + > { _$StreamingTraitsRequireLengthInput? _$v; String? _foo; @@ -81,7 +84,8 @@ class StreamingTraitsRequireLengthInputBuilder @override void update( - void Function(StreamingTraitsRequireLengthInputBuilder)? updates) { + void Function(StreamingTraitsRequireLengthInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart index 1f87263f9d..3a728d0417 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.streaming_traits_with_media_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,21 @@ abstract class StreamingTraitsWithMediaTypeInputOutput _i1.HttpInput<_i2.Stream>>, _i3.AWSEquatable implements - Built, + Built< + StreamingTraitsWithMediaTypeInputOutput, + StreamingTraitsWithMediaTypeInputOutputBuilder + >, _i1.HasPayload<_i2.Stream>> { factory StreamingTraitsWithMediaTypeInputOutput({ String? foo, _i2.Stream>? blob, }) { - return _$StreamingTraitsWithMediaTypeInputOutput._( - foo: foo, - blob: blob, - ); + return _$StreamingTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); } - factory StreamingTraitsWithMediaTypeInputOutput.build( - [void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) - updates]) = _$StreamingTraitsWithMediaTypeInputOutput; + factory StreamingTraitsWithMediaTypeInputOutput.build([ + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) updates, + ]) = _$StreamingTraitsWithMediaTypeInputOutput; const StreamingTraitsWithMediaTypeInputOutput._(); @@ -40,25 +39,23 @@ abstract class StreamingTraitsWithMediaTypeInputOutput _i2.Stream>? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StreamingTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => StreamingTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [StreamingTraitsWithMediaTypeInputOutput] from a [payload] and [response]. factory StreamingTraitsWithMediaTypeInputOutput.fromResponse( _i2.Stream>? payload, _i3.AWSBaseHttpResponse response, - ) => - StreamingTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => StreamingTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>?>> serializers = [StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer()]; @@ -69,23 +66,14 @@ abstract class StreamingTraitsWithMediaTypeInputOutput _i2.Stream>? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('StreamingTraitsWithMediaTypeInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -93,21 +81,18 @@ abstract class StreamingTraitsWithMediaTypeInputOutput class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('StreamingTraitsWithMediaTypeInputOutput'); + : super('StreamingTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [ - StreamingTraitsWithMediaTypeInputOutput, - _$StreamingTraitsWithMediaTypeInputOutput, - ]; + StreamingTraitsWithMediaTypeInputOutput, + _$StreamingTraitsWithMediaTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -116,17 +101,12 @@ class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -137,15 +117,9 @@ class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart index da7a039c5d..009d65df92 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart @@ -13,20 +13,19 @@ class _$StreamingTraitsWithMediaTypeInputOutput @override final _i2.Stream>? blob; - factory _$StreamingTraitsWithMediaTypeInputOutput( - [void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? - updates]) => + factory _$StreamingTraitsWithMediaTypeInputOutput([ + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? updates, + ]) => (new StreamingTraitsWithMediaTypeInputOutputBuilder()..update(updates)) ._build(); _$StreamingTraitsWithMediaTypeInputOutput._({this.foo, this.blob}) - : super._(); + : super._(); @override StreamingTraitsWithMediaTypeInputOutput rebuild( - void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StreamingTraitsWithMediaTypeInputOutputBuilder toBuilder() => @@ -52,8 +51,10 @@ class _$StreamingTraitsWithMediaTypeInputOutput class StreamingTraitsWithMediaTypeInputOutputBuilder implements - Builder { + Builder< + StreamingTraitsWithMediaTypeInputOutput, + StreamingTraitsWithMediaTypeInputOutputBuilder + > { _$StreamingTraitsWithMediaTypeInputOutput? _$v; String? _foo; @@ -84,7 +85,8 @@ class StreamingTraitsWithMediaTypeInputOutputBuilder @override void update( - void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? updates) { + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -92,7 +94,8 @@ class StreamingTraitsWithMediaTypeInputOutputBuilder StreamingTraitsWithMediaTypeInputOutput build() => _build(); _$StreamingTraitsWithMediaTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$StreamingTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_enum.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_enum.dart index 9065b0a21c..94bc1c46f1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_enum.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_enum.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.string_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class StringEnum extends _i1.SmithyEnum { - const StringEnum._( - super.index, - super.name, - super.value, - ); + const StringEnum._(super.index, super.name, super.value); const StringEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const v = StringEnum._( - 0, - 'V', - 'enumvalue', - ); + static const v = StringEnum._(0, 'V', 'enumvalue'); /// All values of [StringEnum]. static const values = [StringEnum.v]; @@ -29,12 +21,9 @@ class StringEnum extends _i1.SmithyEnum { values: values, sdkUnknown: StringEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart index 2e5e90ae7a..bf179dc09d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.string_payload_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class StringPayloadInput return _$StringPayloadInput._(payload: payload); } - factory StringPayloadInput.build( - [void Function(StringPayloadInputBuilder) updates]) = - _$StringPayloadInput; + factory StringPayloadInput.build([ + void Function(StringPayloadInputBuilder) updates, + ]) = _$StringPayloadInput; const StringPayloadInput._(); @@ -29,22 +29,20 @@ abstract class StringPayloadInput String? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StringPayloadInput.build((b) { - b.payload = payload; - }); + }) => StringPayloadInput.build((b) { + b.payload = payload; + }); /// Constructs a [StringPayloadInput] from a [payload] and [response]. factory StringPayloadInput.fromResponse( String? payload, _i2.AWSBaseHttpResponse response, - ) => - StringPayloadInput.build((b) { - b.payload = payload; - }); + ) => StringPayloadInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer> serializers = [ - StringPayloadInputRestJson1Serializer() + StringPayloadInputRestJson1Serializer(), ]; String? get payload; @@ -57,10 +55,7 @@ abstract class StringPayloadInput @override String toString() { final helper = newBuiltValueToStringHelper('StringPayloadInput') - ..add( - 'payload', - payload, - ); + ..add('payload', payload); return helper.toString(); } } @@ -70,18 +65,12 @@ class StringPayloadInputRestJson1Serializer const StringPayloadInputRestJson1Serializer() : super('StringPayloadInput'); @override - Iterable get types => const [ - StringPayloadInput, - _$StringPayloadInput, - ]; + Iterable get types => const [StringPayloadInput, _$StringPayloadInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override String deserialize( @@ -90,9 +79,10 @@ class StringPayloadInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(String), - ) as String); + serialized, + specifiedType: const FullType(String), + ) + as String); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart index 18c39f5a09..b459b31e64 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart @@ -10,16 +10,16 @@ class _$StringPayloadInput extends StringPayloadInput { @override final String? payload; - factory _$StringPayloadInput( - [void Function(StringPayloadInputBuilder)? updates]) => - (new StringPayloadInputBuilder()..update(updates))._build(); + factory _$StringPayloadInput([ + void Function(StringPayloadInputBuilder)? updates, + ]) => (new StringPayloadInputBuilder()..update(updates))._build(); _$StringPayloadInput._({this.payload}) : super._(); @override StringPayloadInput rebuild( - void Function(StringPayloadInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StringPayloadInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StringPayloadInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart index 29fca8261f..eba91d2b1b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberRestJson1Serializer() + StructureListMemberRestJson1Serializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberRestJson1Serializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StructureListMember deserialize( @@ -91,15 +74,19 @@ class StructureListMemberRestJson1Serializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -117,18 +104,12 @@ class StructureListMemberRestJson1Serializer if (a != null) { result$ ..add('value') - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add('other') - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart index ae9cae7c0f..39bcf8cf02 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.test_body_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class TestBodyStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + TestBodyStructureInputOutput, + TestBodyStructureInputOutputBuilder + >, _i1.HasPayload { factory TestBodyStructureInputOutput({ String? testId, @@ -30,9 +32,9 @@ abstract class TestBodyStructureInputOutput ); } - factory TestBodyStructureInputOutput.build( - [void Function(TestBodyStructureInputOutputBuilder) updates]) = - _$TestBodyStructureInputOutput; + factory TestBodyStructureInputOutput.build([ + void Function(TestBodyStructureInputOutputBuilder) updates, + ]) = _$TestBodyStructureInputOutput; const TestBodyStructureInputOutput._(); @@ -40,32 +42,30 @@ abstract class TestBodyStructureInputOutput TestBodyStructureInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestBodyStructureInputOutput.build((b) { - if (payload.testConfig != null) { - b.testConfig.replace(payload.testConfig!); - } - if (request.headers['x-amz-test-id'] != null) { - b.testId = request.headers['x-amz-test-id']!; - } - }); + }) => TestBodyStructureInputOutput.build((b) { + if (payload.testConfig != null) { + b.testConfig.replace(payload.testConfig!); + } + if (request.headers['x-amz-test-id'] != null) { + b.testId = request.headers['x-amz-test-id']!; + } + }); /// Constructs a [TestBodyStructureInputOutput] from a [payload] and [response]. factory TestBodyStructureInputOutput.fromResponse( TestBodyStructureInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TestBodyStructureInputOutput.build((b) { - if (payload.testConfig != null) { - b.testConfig.replace(payload.testConfig!); - } - if (response.headers['x-amz-test-id'] != null) { - b.testId = response.headers['x-amz-test-id']!; - } - }); + ) => TestBodyStructureInputOutput.build((b) { + if (payload.testConfig != null) { + b.testConfig.replace(payload.testConfig!); + } + if (response.headers['x-amz-test-id'] != null) { + b.testId = response.headers['x-amz-test-id']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [TestBodyStructureInputOutputRestJson1Serializer()]; + serializers = [TestBodyStructureInputOutputRestJson1Serializer()]; String? get testId; TestConfig? get testConfig; @@ -78,36 +78,29 @@ abstract class TestBodyStructureInputOutput }); @override - List get props => [ - testId, - testConfig, - ]; + List get props => [testId, testConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('TestBodyStructureInputOutput') - ..add( - 'testId', - testId, - ) - ..add( - 'testConfig', - testConfig, - ); + final helper = + newBuiltValueToStringHelper('TestBodyStructureInputOutput') + ..add('testId', testId) + ..add('testConfig', testConfig); return helper.toString(); } } @_i3.internal abstract class TestBodyStructureInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory TestBodyStructureInputOutputPayload( - [void Function(TestBodyStructureInputOutputPayloadBuilder) updates]) = - _$TestBodyStructureInputOutputPayload; + Built< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutputPayloadBuilder + > { + factory TestBodyStructureInputOutputPayload([ + void Function(TestBodyStructureInputOutputPayloadBuilder) updates, + ]) = _$TestBodyStructureInputOutputPayload; const TestBodyStructureInputOutputPayload._(); @@ -117,36 +110,31 @@ abstract class TestBodyStructureInputOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TestBodyStructureInputOutputPayload') - ..add( - 'testConfig', - testConfig, - ); + final helper = newBuiltValueToStringHelper( + 'TestBodyStructureInputOutputPayload', + )..add('testConfig', testConfig); return helper.toString(); } } -class TestBodyStructureInputOutputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class TestBodyStructureInputOutputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const TestBodyStructureInputOutputRestJson1Serializer() - : super('TestBodyStructureInputOutput'); + : super('TestBodyStructureInputOutput'); @override Iterable get types => const [ - TestBodyStructureInputOutput, - _$TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - _$TestBodyStructureInputOutputPayload, - ]; + TestBodyStructureInputOutput, + _$TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + _$TestBodyStructureInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestBodyStructureInputOutputPayload deserialize( @@ -165,10 +153,13 @@ class TestBodyStructureInputOutputRestJson1Serializer extends _i1 } switch (key) { case 'testConfig': - result.testConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(TestConfig), - ) as TestConfig)); + result.testConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(TestConfig), + ) + as TestConfig), + ); } } @@ -186,10 +177,12 @@ class TestBodyStructureInputOutputRestJson1Serializer extends _i1 if (testConfig != null) { result$ ..add('testConfig') - ..add(serializers.serialize( - testConfig, - specifiedType: const FullType(TestConfig), - )); + ..add( + serializers.serialize( + testConfig, + specifiedType: const FullType(TestConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart index 3901fdbf51..9d267ad0d5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart @@ -12,16 +12,16 @@ class _$TestBodyStructureInputOutput extends TestBodyStructureInputOutput { @override final TestConfig? testConfig; - factory _$TestBodyStructureInputOutput( - [void Function(TestBodyStructureInputOutputBuilder)? updates]) => - (new TestBodyStructureInputOutputBuilder()..update(updates))._build(); + factory _$TestBodyStructureInputOutput([ + void Function(TestBodyStructureInputOutputBuilder)? updates, + ]) => (new TestBodyStructureInputOutputBuilder()..update(updates))._build(); _$TestBodyStructureInputOutput._({this.testId, this.testConfig}) : super._(); @override TestBodyStructureInputOutput rebuild( - void Function(TestBodyStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestBodyStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestBodyStructureInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$TestBodyStructureInputOutput extends TestBodyStructureInputOutput { class TestBodyStructureInputOutputBuilder implements - Builder { + Builder< + TestBodyStructureInputOutput, + TestBodyStructureInputOutputBuilder + > { _$TestBodyStructureInputOutput? _$v; String? _testId; @@ -90,9 +92,12 @@ class TestBodyStructureInputOutputBuilder _$TestBodyStructureInputOutput _build() { _$TestBodyStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$TestBodyStructureInputOutput._( - testId: testId, testConfig: _testConfig?.build()); + testId: testId, + testConfig: _testConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -100,7 +105,10 @@ class TestBodyStructureInputOutputBuilder _testConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'TestBodyStructureInputOutput', _$failedField, e.toString()); + r'TestBodyStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -114,9 +122,9 @@ class _$TestBodyStructureInputOutputPayload @override final TestConfig? testConfig; - factory _$TestBodyStructureInputOutputPayload( - [void Function(TestBodyStructureInputOutputPayloadBuilder)? - updates]) => + factory _$TestBodyStructureInputOutputPayload([ + void Function(TestBodyStructureInputOutputPayloadBuilder)? updates, + ]) => (new TestBodyStructureInputOutputPayloadBuilder()..update(updates)) ._build(); @@ -124,8 +132,8 @@ class _$TestBodyStructureInputOutputPayload @override TestBodyStructureInputOutputPayload rebuild( - void Function(TestBodyStructureInputOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestBodyStructureInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestBodyStructureInputOutputPayloadBuilder toBuilder() => @@ -149,8 +157,10 @@ class _$TestBodyStructureInputOutputPayload class TestBodyStructureInputOutputPayloadBuilder implements - Builder { + Builder< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutputPayloadBuilder + > { _$TestBodyStructureInputOutputPayload? _$v; TestConfigBuilder? _testConfig; @@ -178,7 +188,8 @@ class TestBodyStructureInputOutputPayloadBuilder @override void update( - void Function(TestBodyStructureInputOutputPayloadBuilder)? updates) { + void Function(TestBodyStructureInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -188,9 +199,11 @@ class TestBodyStructureInputOutputPayloadBuilder _$TestBodyStructureInputOutputPayload _build() { _$TestBodyStructureInputOutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$TestBodyStructureInputOutputPayload._( - testConfig: _testConfig?.build()); + testConfig: _testConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -198,9 +211,10 @@ class TestBodyStructureInputOutputPayloadBuilder _testConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'TestBodyStructureInputOutputPayload', - _$failedField, - e.toString()); + r'TestBodyStructureInputOutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_config.dart index 3f09930467..6c05e55550 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.test_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class TestConfig const TestConfig._(); static const List<_i2.SmithySerializer> serializers = [ - TestConfigRestJson1Serializer() + TestConfigRestJson1Serializer(), ]; int? get timeout; @@ -33,10 +33,7 @@ abstract class TestConfig @override String toString() { final helper = newBuiltValueToStringHelper('TestConfig') - ..add( - 'timeout', - timeout, - ); + ..add('timeout', timeout); return helper.toString(); } } @@ -46,18 +43,12 @@ class TestConfigRestJson1Serializer const TestConfigRestJson1Serializer() : super('TestConfig'); @override - Iterable get types => const [ - TestConfig, - _$TestConfig, - ]; + Iterable get types => const [TestConfig, _$TestConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestConfig deserialize( @@ -76,10 +67,12 @@ class TestConfigRestJson1Serializer } switch (key) { case 'timeout': - result.timeout = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.timeout = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -97,10 +90,9 @@ class TestConfigRestJson1Serializer if (timeout != null) { result$ ..add('timeout') - ..add(serializers.serialize( - timeout, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(timeout, specifiedType: const FullType(int)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart index f98ab8c66a..4e2e94246d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.test_no_payload_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class TestNoPayloadInputOutput return _$TestNoPayloadInputOutput._(testId: testId); } - factory TestNoPayloadInputOutput.build( - [void Function(TestNoPayloadInputOutputBuilder) updates]) = - _$TestNoPayloadInputOutput; + factory TestNoPayloadInputOutput.build([ + void Function(TestNoPayloadInputOutputBuilder) updates, + ]) = _$TestNoPayloadInputOutput; const TestNoPayloadInputOutput._(); @@ -33,26 +33,24 @@ abstract class TestNoPayloadInputOutput TestNoPayloadInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestNoPayloadInputOutput.build((b) { - if (request.headers['X-Amz-Test-Id'] != null) { - b.testId = request.headers['X-Amz-Test-Id']!; - } - }); + }) => TestNoPayloadInputOutput.build((b) { + if (request.headers['X-Amz-Test-Id'] != null) { + b.testId = request.headers['X-Amz-Test-Id']!; + } + }); /// Constructs a [TestNoPayloadInputOutput] from a [payload] and [response]. factory TestNoPayloadInputOutput.fromResponse( TestNoPayloadInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TestNoPayloadInputOutput.build((b) { - if (response.headers['X-Amz-Test-Id'] != null) { - b.testId = response.headers['X-Amz-Test-Id']!; - } - }); + ) => TestNoPayloadInputOutput.build((b) { + if (response.headers['X-Amz-Test-Id'] != null) { + b.testId = response.headers['X-Amz-Test-Id']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [TestNoPayloadInputOutputRestJson1Serializer()]; + serializers = [TestNoPayloadInputOutputRestJson1Serializer()]; String? get testId; @override @@ -65,25 +63,23 @@ abstract class TestNoPayloadInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('TestNoPayloadInputOutput') - ..add( - 'testId', - testId, - ); + ..add('testId', testId); return helper.toString(); } } @_i3.internal abstract class TestNoPayloadInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutputPayloadBuilder + >, _i1.EmptyPayload { - factory TestNoPayloadInputOutputPayload( - [void Function(TestNoPayloadInputOutputPayloadBuilder) updates]) = - _$TestNoPayloadInputOutputPayload; + factory TestNoPayloadInputOutputPayload([ + void Function(TestNoPayloadInputOutputPayloadBuilder) updates, + ]) = _$TestNoPayloadInputOutputPayload; const TestNoPayloadInputOutputPayload._(); @@ -92,8 +88,9 @@ abstract class TestNoPayloadInputOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TestNoPayloadInputOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'TestNoPayloadInputOutputPayload', + ); return helper.toString(); } } @@ -101,23 +98,20 @@ abstract class TestNoPayloadInputOutputPayload class TestNoPayloadInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const TestNoPayloadInputOutputRestJson1Serializer() - : super('TestNoPayloadInputOutput'); + : super('TestNoPayloadInputOutput'); @override Iterable get types => const [ - TestNoPayloadInputOutput, - _$TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - _$TestNoPayloadInputOutputPayload, - ]; + TestNoPayloadInputOutput, + _$TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + _$TestNoPayloadInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestNoPayloadInputOutputPayload deserialize( @@ -133,6 +127,5 @@ class TestNoPayloadInputOutputRestJson1Serializer Serializers serializers, TestNoPayloadInputOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart index de46af1ea3..d438419b45 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart @@ -10,16 +10,16 @@ class _$TestNoPayloadInputOutput extends TestNoPayloadInputOutput { @override final String? testId; - factory _$TestNoPayloadInputOutput( - [void Function(TestNoPayloadInputOutputBuilder)? updates]) => - (new TestNoPayloadInputOutputBuilder()..update(updates))._build(); + factory _$TestNoPayloadInputOutput([ + void Function(TestNoPayloadInputOutputBuilder)? updates, + ]) => (new TestNoPayloadInputOutputBuilder()..update(updates))._build(); _$TestNoPayloadInputOutput._({this.testId}) : super._(); @override TestNoPayloadInputOutput rebuild( - void Function(TestNoPayloadInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestNoPayloadInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestNoPayloadInputOutputBuilder toBuilder() => @@ -83,16 +83,17 @@ class TestNoPayloadInputOutputBuilder class _$TestNoPayloadInputOutputPayload extends TestNoPayloadInputOutputPayload { - factory _$TestNoPayloadInputOutputPayload( - [void Function(TestNoPayloadInputOutputPayloadBuilder)? updates]) => + factory _$TestNoPayloadInputOutputPayload([ + void Function(TestNoPayloadInputOutputPayloadBuilder)? updates, + ]) => (new TestNoPayloadInputOutputPayloadBuilder()..update(updates))._build(); _$TestNoPayloadInputOutputPayload._() : super._(); @override TestNoPayloadInputOutputPayload rebuild( - void Function(TestNoPayloadInputOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestNoPayloadInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestNoPayloadInputOutputPayloadBuilder toBuilder() => @@ -112,8 +113,10 @@ class _$TestNoPayloadInputOutputPayload class TestNoPayloadInputOutputPayloadBuilder implements - Builder { + Builder< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutputPayloadBuilder + > { _$TestNoPayloadInputOutputPayload? _$v; TestNoPayloadInputOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart index bcfb9c8a52..b4e7d30c60 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.test_payload_blob_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,15 +23,12 @@ abstract class TestPayloadBlobInputOutput String? contentType, _i2.Uint8List? data, }) { - return _$TestPayloadBlobInputOutput._( - contentType: contentType, - data: data, - ); + return _$TestPayloadBlobInputOutput._(contentType: contentType, data: data); } - factory TestPayloadBlobInputOutput.build( - [void Function(TestPayloadBlobInputOutputBuilder) updates]) = - _$TestPayloadBlobInputOutput; + factory TestPayloadBlobInputOutput.build([ + void Function(TestPayloadBlobInputOutputBuilder) updates, + ]) = _$TestPayloadBlobInputOutput; const TestPayloadBlobInputOutput._(); @@ -39,28 +36,26 @@ abstract class TestPayloadBlobInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestPayloadBlobInputOutput.build((b) { - b.data = payload; - if (request.headers['Content-Type'] != null) { - b.contentType = request.headers['Content-Type']!; - } - }); + }) => TestPayloadBlobInputOutput.build((b) { + b.data = payload; + if (request.headers['Content-Type'] != null) { + b.contentType = request.headers['Content-Type']!; + } + }); /// Constructs a [TestPayloadBlobInputOutput] from a [payload] and [response]. factory TestPayloadBlobInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - TestPayloadBlobInputOutput.build((b) { - b.data = payload; - if (response.headers['Content-Type'] != null) { - b.contentType = response.headers['Content-Type']!; - } - }); + ) => TestPayloadBlobInputOutput.build((b) { + b.data = payload; + if (response.headers['Content-Type'] != null) { + b.contentType = response.headers['Content-Type']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - TestPayloadBlobInputOutputRestJson1Serializer() + TestPayloadBlobInputOutputRestJson1Serializer(), ]; String? get contentType; @@ -69,22 +64,14 @@ abstract class TestPayloadBlobInputOutput _i2.Uint8List? getPayload() => data; @override - List get props => [ - contentType, - data, - ]; + List get props => [contentType, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('TestPayloadBlobInputOutput') - ..add( - 'contentType', - contentType, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('TestPayloadBlobInputOutput') + ..add('contentType', contentType) + ..add('data', data); return helper.toString(); } } @@ -92,21 +79,18 @@ abstract class TestPayloadBlobInputOutput class TestPayloadBlobInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const TestPayloadBlobInputOutputRestJson1Serializer() - : super('TestPayloadBlobInputOutput'); + : super('TestPayloadBlobInputOutput'); @override Iterable get types => const [ - TestPayloadBlobInputOutput, - _$TestPayloadBlobInputOutput, - ]; + TestPayloadBlobInputOutput, + _$TestPayloadBlobInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -115,9 +99,10 @@ class TestPayloadBlobInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart index 35452922ab..59aa922380 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart @@ -12,16 +12,16 @@ class _$TestPayloadBlobInputOutput extends TestPayloadBlobInputOutput { @override final _i2.Uint8List? data; - factory _$TestPayloadBlobInputOutput( - [void Function(TestPayloadBlobInputOutputBuilder)? updates]) => - (new TestPayloadBlobInputOutputBuilder()..update(updates))._build(); + factory _$TestPayloadBlobInputOutput([ + void Function(TestPayloadBlobInputOutputBuilder)? updates, + ]) => (new TestPayloadBlobInputOutputBuilder()..update(updates))._build(); _$TestPayloadBlobInputOutput._({this.contentType, this.data}) : super._(); @override TestPayloadBlobInputOutput rebuild( - void Function(TestPayloadBlobInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestPayloadBlobInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestPayloadBlobInputOutputBuilder toBuilder() => @@ -85,9 +85,12 @@ class TestPayloadBlobInputOutputBuilder TestPayloadBlobInputOutput build() => _build(); _$TestPayloadBlobInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TestPayloadBlobInputOutput._( - contentType: contentType, data: data); + contentType: contentType, + data: data, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart index 67cb5023ae..f9fdeb8d40 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.test_payload_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class TestPayloadStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + TestPayloadStructureInputOutput, + TestPayloadStructureInputOutputBuilder + >, _i1.HasPayload { factory TestPayloadStructureInputOutput({ String? testId, @@ -29,9 +31,9 @@ abstract class TestPayloadStructureInputOutput ); } - factory TestPayloadStructureInputOutput.build( - [void Function(TestPayloadStructureInputOutputBuilder) updates]) = - _$TestPayloadStructureInputOutput; + factory TestPayloadStructureInputOutput.build([ + void Function(TestPayloadStructureInputOutputBuilder) updates, + ]) = _$TestPayloadStructureInputOutput; const TestPayloadStructureInputOutput._(); @@ -39,32 +41,30 @@ abstract class TestPayloadStructureInputOutput PayloadConfig? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestPayloadStructureInputOutput.build((b) { - if (payload != null) { - b.payloadConfig.replace(payload); - } - if (request.headers['x-amz-test-id'] != null) { - b.testId = request.headers['x-amz-test-id']!; - } - }); + }) => TestPayloadStructureInputOutput.build((b) { + if (payload != null) { + b.payloadConfig.replace(payload); + } + if (request.headers['x-amz-test-id'] != null) { + b.testId = request.headers['x-amz-test-id']!; + } + }); /// Constructs a [TestPayloadStructureInputOutput] from a [payload] and [response]. factory TestPayloadStructureInputOutput.fromResponse( PayloadConfig? payload, _i2.AWSBaseHttpResponse response, - ) => - TestPayloadStructureInputOutput.build((b) { - if (payload != null) { - b.payloadConfig.replace(payload); - } - if (response.headers['x-amz-test-id'] != null) { - b.testId = response.headers['x-amz-test-id']!; - } - }); + ) => TestPayloadStructureInputOutput.build((b) { + if (payload != null) { + b.payloadConfig.replace(payload); + } + if (response.headers['x-amz-test-id'] != null) { + b.testId = response.headers['x-amz-test-id']!; + } + }); static const List<_i1.SmithySerializer> serializers = [ - TestPayloadStructureInputOutputRestJson1Serializer() + TestPayloadStructureInputOutputRestJson1Serializer(), ]; String? get testId; @@ -73,23 +73,14 @@ abstract class TestPayloadStructureInputOutput PayloadConfig? getPayload() => payloadConfig ?? PayloadConfig(); @override - List get props => [ - testId, - payloadConfig, - ]; + List get props => [testId, payloadConfig]; @override String toString() { final helper = newBuiltValueToStringHelper('TestPayloadStructureInputOutput') - ..add( - 'testId', - testId, - ) - ..add( - 'payloadConfig', - payloadConfig, - ); + ..add('testId', testId) + ..add('payloadConfig', payloadConfig); return helper.toString(); } } @@ -97,21 +88,18 @@ abstract class TestPayloadStructureInputOutput class TestPayloadStructureInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const TestPayloadStructureInputOutputRestJson1Serializer() - : super('TestPayloadStructureInputOutput'); + : super('TestPayloadStructureInputOutput'); @override Iterable get types => const [ - TestPayloadStructureInputOutput, - _$TestPayloadStructureInputOutput, - ]; + TestPayloadStructureInputOutput, + _$TestPayloadStructureInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PayloadConfig deserialize( @@ -120,9 +108,10 @@ class TestPayloadStructureInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(PayloadConfig), - ) as PayloadConfig); + serialized, + specifiedType: const FullType(PayloadConfig), + ) + as PayloadConfig); } @override diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart index 8f4099baf5..caa4e6ff70 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart @@ -13,17 +13,18 @@ class _$TestPayloadStructureInputOutput @override final PayloadConfig? payloadConfig; - factory _$TestPayloadStructureInputOutput( - [void Function(TestPayloadStructureInputOutputBuilder)? updates]) => + factory _$TestPayloadStructureInputOutput([ + void Function(TestPayloadStructureInputOutputBuilder)? updates, + ]) => (new TestPayloadStructureInputOutputBuilder()..update(updates))._build(); _$TestPayloadStructureInputOutput._({this.testId, this.payloadConfig}) - : super._(); + : super._(); @override TestPayloadStructureInputOutput rebuild( - void Function(TestPayloadStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestPayloadStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestPayloadStructureInputOutputBuilder toBuilder() => @@ -49,8 +50,10 @@ class _$TestPayloadStructureInputOutput class TestPayloadStructureInputOutputBuilder implements - Builder { + Builder< + TestPayloadStructureInputOutput, + TestPayloadStructureInputOutputBuilder + > { _$TestPayloadStructureInputOutput? _$v; String? _testId; @@ -92,9 +95,12 @@ class TestPayloadStructureInputOutputBuilder _$TestPayloadStructureInputOutput _build() { _$TestPayloadStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$TestPayloadStructureInputOutput._( - testId: testId, payloadConfig: _payloadConfig?.build()); + testId: testId, + payloadConfig: _payloadConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -102,7 +108,10 @@ class TestPayloadStructureInputOutputBuilder _payloadConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'TestPayloadStructureInputOutput', _$failedField, e.toString()); + r'TestPayloadStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart index 5220e45812..914ceb28ee 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.timestamp_format_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,9 +39,9 @@ abstract class TimestampFormatHeadersIo ); } - factory TimestampFormatHeadersIo.build( - [void Function(TimestampFormatHeadersIoBuilder) updates]) = - _$TimestampFormatHeadersIo; + factory TimestampFormatHeadersIo.build([ + void Function(TimestampFormatHeadersIoBuilder) updates, + ]) = _$TimestampFormatHeadersIo; const TimestampFormatHeadersIo._(); @@ -49,104 +49,116 @@ abstract class TimestampFormatHeadersIo TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TimestampFormatHeadersIo.build((b) { - if (request.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => TimestampFormatHeadersIo.build((b) { + if (request.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( request.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( request.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (request.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( request.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (request.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( request.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( request.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); /// Constructs a [TimestampFormatHeadersIo] from a [payload] and [response]. factory TimestampFormatHeadersIo.fromResponse( TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.build((b) { - if (response.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + ) => TimestampFormatHeadersIo.build((b) { + if (response.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( response.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( response.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (response.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (response.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( response.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (response.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( response.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( response.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [TimestampFormatHeadersIoRestJson1Serializer()]; + serializers = [TimestampFormatHeadersIoRestJson1Serializer()]; DateTime? get memberEpochSeconds; DateTime? get memberHttpDate; @@ -161,61 +173,42 @@ abstract class TimestampFormatHeadersIo @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('TimestampFormatHeadersIo') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper('TimestampFormatHeadersIo') + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class TimestampFormatHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder) updates]) = - _$TimestampFormatHeadersIoPayload; + factory TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ]) = _$TimestampFormatHeadersIoPayload; const TimestampFormatHeadersIoPayload._(); @@ -224,8 +217,9 @@ abstract class TimestampFormatHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TimestampFormatHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'TimestampFormatHeadersIoPayload', + ); return helper.toString(); } } @@ -233,23 +227,20 @@ abstract class TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoRestJson1Serializer extends _i1.StructuredSmithySerializer { const TimestampFormatHeadersIoRestJson1Serializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [ - TimestampFormatHeadersIo, - _$TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - _$TimestampFormatHeadersIoPayload, - ]; + TimestampFormatHeadersIo, + _$TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + _$TimestampFormatHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TimestampFormatHeadersIoPayload deserialize( @@ -265,6 +256,5 @@ class TimestampFormatHeadersIoRestJson1Serializer Serializers serializers, TimestampFormatHeadersIoPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart index f1498c3462..1e275a6d7c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart @@ -22,24 +22,24 @@ class _$TimestampFormatHeadersIo extends TimestampFormatHeadersIo { @override final DateTime? targetDateTime; - factory _$TimestampFormatHeadersIo( - [void Function(TimestampFormatHeadersIoBuilder)? updates]) => - (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); + factory _$TimestampFormatHeadersIo([ + void Function(TimestampFormatHeadersIoBuilder)? updates, + ]) => (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); - _$TimestampFormatHeadersIo._( - {this.memberEpochSeconds, - this.memberHttpDate, - this.memberDateTime, - this.defaultFormat, - this.targetEpochSeconds, - this.targetHttpDate, - this.targetDateTime}) - : super._(); + _$TimestampFormatHeadersIo._({ + this.memberEpochSeconds, + this.memberHttpDate, + this.memberDateTime, + this.defaultFormat, + this.targetEpochSeconds, + this.targetHttpDate, + this.targetDateTime, + }) : super._(); @override TimestampFormatHeadersIo rebuild( - void Function(TimestampFormatHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoBuilder toBuilder() => @@ -145,15 +145,17 @@ class TimestampFormatHeadersIoBuilder TimestampFormatHeadersIo build() => _build(); _$TimestampFormatHeadersIo _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TimestampFormatHeadersIo._( - memberEpochSeconds: memberEpochSeconds, - memberHttpDate: memberHttpDate, - memberDateTime: memberDateTime, - defaultFormat: defaultFormat, - targetEpochSeconds: targetEpochSeconds, - targetHttpDate: targetHttpDate, - targetDateTime: targetDateTime); + memberEpochSeconds: memberEpochSeconds, + memberHttpDate: memberHttpDate, + memberDateTime: memberDateTime, + defaultFormat: defaultFormat, + targetEpochSeconds: targetEpochSeconds, + targetHttpDate: targetHttpDate, + targetDateTime: targetDateTime, + ); replace(_$result); return _$result; } @@ -161,16 +163,17 @@ class TimestampFormatHeadersIoBuilder class _$TimestampFormatHeadersIoPayload extends TimestampFormatHeadersIoPayload { - factory _$TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder)? updates]) => + factory _$TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder)? updates, + ]) => (new TimestampFormatHeadersIoPayloadBuilder()..update(updates))._build(); _$TimestampFormatHeadersIoPayload._() : super._(); @override TimestampFormatHeadersIoPayload rebuild( - void Function(TimestampFormatHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoPayloadBuilder toBuilder() => @@ -190,8 +193,10 @@ class _$TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoPayloadBuilder implements - Builder { + Builder< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + > { _$TimestampFormatHeadersIoPayload? _$v; TimestampFormatHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart index 083f246d28..0a165d6456 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.union_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,8 +21,9 @@ abstract class UnionInputOutput } /// A shared structure that contains a single union member. - factory UnionInputOutput.build( - [void Function(UnionInputOutputBuilder) updates]) = _$UnionInputOutput; + factory UnionInputOutput.build([ + void Function(UnionInputOutputBuilder) updates, + ]) = _$UnionInputOutput; const UnionInputOutput._(); @@ -30,18 +31,16 @@ abstract class UnionInputOutput UnionInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [UnionInputOutput] from a [payload] and [response]. factory UnionInputOutput.fromResponse( UnionInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - UnionInputOutputRestJson1Serializer() + UnionInputOutputRestJson1Serializer(), ]; /// A union with a representative set of types for members. @@ -55,10 +54,7 @@ abstract class UnionInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('UnionInputOutput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -68,18 +64,12 @@ class UnionInputOutputRestJson1Serializer const UnionInputOutputRestJson1Serializer() : super('UnionInputOutput'); @override - Iterable get types => const [ - UnionInputOutput, - _$UnionInputOutput, - ]; + Iterable get types => const [UnionInputOutput, _$UnionInputOutput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnionInputOutput deserialize( @@ -98,10 +88,12 @@ class UnionInputOutputRestJson1Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -119,10 +111,12 @@ class UnionInputOutputRestJson1Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart index 9011ed9795..50563b878c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart @@ -10,9 +10,9 @@ class _$UnionInputOutput extends UnionInputOutput { @override final MyUnion? contents; - factory _$UnionInputOutput( - [void Function(UnionInputOutputBuilder)? updates]) => - (new UnionInputOutputBuilder()..update(updates))._build(); + factory _$UnionInputOutput([ + void Function(UnionInputOutputBuilder)? updates, + ]) => (new UnionInputOutputBuilder()..update(updates))._build(); _$UnionInputOutput._({this.contents}) : super._(); diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart index 764b1d9df9..77c8727176 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.model.union_with_json_name; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,13 +16,11 @@ sealed class UnionWithJsonName extends _i1.SmithyUnion { const factory UnionWithJsonName.baz(String baz) = UnionWithJsonNameBaz$; - const factory UnionWithJsonName.sdkUnknown( - String name, - Object value, - ) = UnionWithJsonNameSdkUnknown$; + const factory UnionWithJsonName.sdkUnknown(String name, Object value) = + UnionWithJsonNameSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - UnionWithJsonNameRestJson1Serializer() + UnionWithJsonNameRestJson1Serializer(), ]; String? get foo => null; @@ -38,22 +36,13 @@ sealed class UnionWithJsonName extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'UnionWithJsonName'); if (foo != null) { - helper.add( - r'foo', - foo, - ); + helper.add(r'foo', foo); } if (bar != null) { - helper.add( - r'bar', - bar, - ); + helper.add(r'bar', bar); } if (baz != null) { - helper.add( - r'baz', - baz, - ); + helper.add(r'baz', baz); } return helper.toString(); } @@ -90,10 +79,7 @@ final class UnionWithJsonNameBaz$ extends UnionWithJsonName { } final class UnionWithJsonNameSdkUnknown$ extends UnionWithJsonName { - const UnionWithJsonNameSdkUnknown$( - this.name, - this.value, - ) : super._(); + const UnionWithJsonNameSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -108,19 +94,16 @@ class UnionWithJsonNameRestJson1Serializer @override Iterable get types => const [ - UnionWithJsonName, - UnionWithJsonNameFoo$, - UnionWithJsonNameBar$, - UnionWithJsonNameBaz$, - ]; + UnionWithJsonName, + UnionWithJsonNameFoo$, + UnionWithJsonNameBar$, + UnionWithJsonNameBaz$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnionWithJsonName deserialize( @@ -131,25 +114,22 @@ class UnionWithJsonNameRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'FOO': - return UnionWithJsonNameFoo$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return UnionWithJsonNameFoo$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'bar': - return UnionWithJsonNameBar$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return UnionWithJsonNameBar$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case '_baz': - return UnionWithJsonNameBaz$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return UnionWithJsonNameBaz$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return UnionWithJsonName.sdkUnknown( - key, - value, - ); + return UnionWithJsonName.sdkUnknown(key, value); } @override @@ -158,25 +138,22 @@ class UnionWithJsonNameRestJson1Serializer UnionWithJsonName object, { FullType specifiedType = FullType.unspecified, }) { - const renames = { - 'foo': 'FOO', - 'baz': '_baz', - }; + const renames = {'foo': 'FOO', 'baz': '_baz'}; return [ renames[object.name] ?? object.name, switch (object) { UnionWithJsonNameFoo$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), UnionWithJsonNameBar$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), UnionWithJsonNameBaz$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), UnionWithJsonNameSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart index d6fbf45220..ca3c5e8e1b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.all_query_string_types_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses all query string types. -class AllQueryStringTypesOperation extends _i1.HttpOperation< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> { +class AllQueryStringTypesOperation + extends + _i1.HttpOperation< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > { /// This example uses all query string types. AllQueryStringTypesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,172 +74,111 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(AllQueryStringTypesInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/AllQueryStringTypesInput'; - if (input.queryString != null) { - b.queryParameters.add( - 'String', - input.queryString!, - ); - } - if (input.queryStringList != null) { - for (var value in input.queryStringList!) { - b.queryParameters.add( - 'StringList', - value, - ); - } - } - if (input.queryStringSet != null) { - for (var value in input.queryStringSet!) { - b.queryParameters.add( - 'StringSet', - value, - ); - } - } - if (input.queryByte != null) { - b.queryParameters.add( - 'Byte', - input.queryByte!.toString(), - ); - } - if (input.queryShort != null) { - b.queryParameters.add( - 'Short', - input.queryShort!.toString(), - ); - } - if (input.queryInteger != null) { - b.queryParameters.add( - 'Integer', - input.queryInteger!.toString(), - ); - } - if (input.queryIntegerList != null) { - for (var value in input.queryIntegerList!) { - b.queryParameters.add( - 'IntegerList', - value.toString(), - ); - } - } - if (input.queryIntegerSet != null) { - for (var value in input.queryIntegerSet!) { - b.queryParameters.add( - 'IntegerSet', - value.toString(), - ); - } - } - if (input.queryLong != null) { - b.queryParameters.add( - 'Long', - input.queryLong!.toString(), - ); - } - if (input.queryFloat != null) { - b.queryParameters.add( - 'Float', - input.queryFloat!.toString(), - ); - } - if (input.queryDouble != null) { - b.queryParameters.add( - 'Double', - input.queryDouble!.toString(), - ); - } - if (input.queryDoubleList != null) { - for (var value in input.queryDoubleList!) { - b.queryParameters.add( - 'DoubleList', - value.toString(), - ); - } - } - if (input.queryBoolean != null) { - b.queryParameters.add( - 'Boolean', - input.queryBoolean!.toString(), - ); - } - if (input.queryBooleanList != null) { - for (var value in input.queryBooleanList!) { - b.queryParameters.add( - 'BooleanList', - value.toString(), - ); - } - } - if (input.queryTimestamp != null) { - b.queryParameters.add( - 'Timestamp', - _i1.Timestamp(input.queryTimestamp!) - .format(_i1.TimestampFormat.dateTime) - .toString(), - ); - } - if (input.queryTimestampList != null) { - for (var value in input.queryTimestampList!) { - b.queryParameters.add( - 'TimestampList', - _i1.Timestamp(value) - .format(_i1.TimestampFormat.dateTime) - .toString(), - ); - } - } - if (input.queryEnum != null) { - b.queryParameters.add( - 'Enum', - input.queryEnum!.value, - ); - } - if (input.queryEnumList != null) { - for (var value in input.queryEnumList!) { - b.queryParameters.add( - 'EnumList', - value.value, - ); - } - } - if (input.queryIntegerEnum != null) { - b.queryParameters.add( - 'IntegerEnum', - input.queryIntegerEnum!.toString(), - ); - } - if (input.queryIntegerEnumList != null) { - for (var value in input.queryIntegerEnumList!) { - b.queryParameters.add( - 'IntegerEnumList', - value.toString(), - ); - } - } - if (input.queryParamsMapOfStringList != null) { - for (var entry in input.queryParamsMapOfStringList!.toMap().entries) { - for (var value in entry.value) { - b.queryParameters.add( - entry.key, - value, - ); - } - } - } - }); + _i1.HttpRequest buildRequest( + AllQueryStringTypesInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = r'/AllQueryStringTypesInput'; + if (input.queryString != null) { + b.queryParameters.add('String', input.queryString!); + } + if (input.queryStringList != null) { + for (var value in input.queryStringList!) { + b.queryParameters.add('StringList', value); + } + } + if (input.queryStringSet != null) { + for (var value in input.queryStringSet!) { + b.queryParameters.add('StringSet', value); + } + } + if (input.queryByte != null) { + b.queryParameters.add('Byte', input.queryByte!.toString()); + } + if (input.queryShort != null) { + b.queryParameters.add('Short', input.queryShort!.toString()); + } + if (input.queryInteger != null) { + b.queryParameters.add('Integer', input.queryInteger!.toString()); + } + if (input.queryIntegerList != null) { + for (var value in input.queryIntegerList!) { + b.queryParameters.add('IntegerList', value.toString()); + } + } + if (input.queryIntegerSet != null) { + for (var value in input.queryIntegerSet!) { + b.queryParameters.add('IntegerSet', value.toString()); + } + } + if (input.queryLong != null) { + b.queryParameters.add('Long', input.queryLong!.toString()); + } + if (input.queryFloat != null) { + b.queryParameters.add('Float', input.queryFloat!.toString()); + } + if (input.queryDouble != null) { + b.queryParameters.add('Double', input.queryDouble!.toString()); + } + if (input.queryDoubleList != null) { + for (var value in input.queryDoubleList!) { + b.queryParameters.add('DoubleList', value.toString()); + } + } + if (input.queryBoolean != null) { + b.queryParameters.add('Boolean', input.queryBoolean!.toString()); + } + if (input.queryBooleanList != null) { + for (var value in input.queryBooleanList!) { + b.queryParameters.add('BooleanList', value.toString()); + } + } + if (input.queryTimestamp != null) { + b.queryParameters.add( + 'Timestamp', + _i1.Timestamp( + input.queryTimestamp!, + ).format(_i1.TimestampFormat.dateTime).toString(), + ); + } + if (input.queryTimestampList != null) { + for (var value in input.queryTimestampList!) { + b.queryParameters.add( + 'TimestampList', + _i1.Timestamp(value).format(_i1.TimestampFormat.dateTime).toString(), + ); + } + } + if (input.queryEnum != null) { + b.queryParameters.add('Enum', input.queryEnum!.value); + } + if (input.queryEnumList != null) { + for (var value in input.queryEnumList!) { + b.queryParameters.add('EnumList', value.value); + } + } + if (input.queryIntegerEnum != null) { + b.queryParameters.add('IntegerEnum', input.queryIntegerEnum!.toString()); + } + if (input.queryIntegerEnumList != null) { + for (var value in input.queryIntegerEnumList!) { + b.queryParameters.add('IntegerEnumList', value.toString()); + } + } + if (input.queryParamsMapOfStringList != null) { + for (var entry in input.queryParamsMapOfStringList!.toMap().entries) { + for (var value in entry.value) { + b.queryParameters.add(entry.key, value); + } + } + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -254,11 +203,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart index 1f70f148c2..f81abbfacd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.constant_and_variable_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). -class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantAndVariableQueryStringOperation + extends + _i1.HttpOperation< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). ConstantAndVariableQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,16 +79,10 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/ConstantAndVariableQueryString?foo=bar'; if (input.baz != null) { - b.queryParameters.add( - 'baz', - input.baz!, - ); + b.queryParameters.add('baz', input.baz!); } if (input.maybeSet != null) { - b.queryParameters.add( - 'maybeSet', - input.maybeSet!, - ); + b.queryParameters.add('maybeSet', input.maybeSet!); } }); @@ -89,10 +90,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -117,11 +115,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart index fa3b9fdc2f..f380e65b6c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.constant_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. -class ConstantQueryStringOperation extends _i1.HttpOperation< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantQueryStringOperation + extends + _i1.HttpOperation< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. ConstantQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +84,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +109,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart index 0362200403..5e38643705 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/datetime_offsets_outp import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/DatetimeOffsets'; - }); + b.method = 'POST'; + b.path = r'/DatetimeOffsets'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -71,11 +84,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart index 4a761bc516..70b74b19a8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.document_type_as_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,40 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes a document as the entire HTTP payload. -class DocumentTypeAsPayloadOperation extends _i1.HttpOperation< - _i2.JsonObject, - DocumentTypeAsPayloadInputOutput, - _i2.JsonObject, - DocumentTypeAsPayloadInputOutput> { +class DocumentTypeAsPayloadOperation + extends + _i1.HttpOperation< + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput, + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput + > { /// This example serializes a document as the entire HTTP payload. DocumentTypeAsPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.JsonObject, DocumentTypeAsPayloadInputOutput, - _i2.JsonObject, DocumentTypeAsPayloadInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput, + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class DocumentTypeAsPayloadOperation extends _i1.HttpOperation< DocumentTypeAsPayloadInputOutput buildOutput( _i2.JsonObject? payload, _i4.AWSBaseHttpResponse response, - ) => - DocumentTypeAsPayloadInputOutput.fromResponse( - payload, - response, - ); + ) => DocumentTypeAsPayloadInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class DocumentTypeAsPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart index 56c6e7a51a..7d2e72dc2f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.document_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes a document as part of the payload. -class DocumentTypeOperation extends _i1.HttpOperation { +class DocumentTypeOperation + extends + _i1.HttpOperation< + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput + > { /// This example serializes a document as part of the payload. DocumentTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class DocumentTypeOperation extends _i1.HttpOperation - DocumentTypeInputOutput.fromResponse( - payload, - response, - ); + ) => DocumentTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class DocumentTypeOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart index 85b45915ac..522734d551 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,44 +14,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart index eaf72e0123..9f89b663af 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,29 +18,30 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,19 +59,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointOperation'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/EndpointOperation'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart index 0f5b0e4a71..9fa42d6ae4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,39 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/host_label_input.dart import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,19 +62,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointWithHostLabelOperation'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/EndpointWithHostLabelOperation'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +96,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart index fe0a935e74..83197833aa 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/fractional_seconds_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/FractionalSeconds'; - }); + b.method = 'POST'; + b.path = r'/FractionalSeconds'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -71,11 +84,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart index d43fdef0f2..bf8a047007 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,38 +16,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has four possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. 4. A FooError. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > { /// This operation has four possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. 4. A FooError. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,9 +78,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/GreetingWithErrors'; - }); + b.method = 'PUT'; + b.path = r'/GreetingWithErrors'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -76,45 +89,38 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - statusCode: 403, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'FooError', - ), - _i1.ErrorKind.server, - FooError, - statusCode: 500, - builder: FooError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - statusCode: 400, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restjson', + shape: 'ComplexError', + ), + _i1.ErrorKind.client, + ComplexError, + statusCode: 403, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.restjson', shape: 'FooError'), + _i1.ErrorKind.server, + FooError, + statusCode: 500, + builder: FooError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restjson', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + statusCode: 400, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -135,11 +141,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart index 8e910c4918..72f7baedc3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,29 +18,30 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/HostWithPathOperation'; - }); + b.method = 'GET'; + b.path = r'/HostWithPathOperation'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart index 45d16035d3..5b2e403fac 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_checksum_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,46 +13,52 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example tests httpChecksumRequired trait -class HttpChecksumRequiredOperation extends _i1.HttpOperation< - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput> { +class HttpChecksumRequiredOperation + extends + _i1.HttpOperation< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput + > { /// This example tests httpChecksumRequired trait HttpChecksumRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput>> protocols = [ + _i1.HttpProtocol< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithChecksum(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, - responseInterceptors: <_i1.HttpResponseInterceptor>[ - const _i1.ValidateChecksum() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i1.ValidateChecksum()] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +88,7 @@ class HttpChecksumRequiredOperation extends _i1.HttpOperation< HttpChecksumRequiredInputOutput buildOutput( HttpChecksumRequiredInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - HttpChecksumRequiredInputOutput.fromResponse( - payload, - response, - ); + ) => HttpChecksumRequiredInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +112,7 @@ class HttpChecksumRequiredOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart index c503ac13a9..7fca15f262 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_enum_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,44 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/string_enum.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpEnumPayloadOperation extends _i1 - .HttpOperation { +class HttpEnumPayloadOperation + extends + _i1.HttpOperation< + StringEnum, + EnumPayloadInput, + StringEnum, + EnumPayloadInput + > { HttpEnumPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +68,9 @@ class HttpEnumPayloadOperation extends _i1 @override _i1.HttpRequest buildRequest(EnumPayloadInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EnumPayload'; - }); + b.method = 'POST'; + b.path = r'/EnumPayload'; + }); @override int successCode([EnumPayloadInput? output]) => 200; @@ -71,11 +79,7 @@ class HttpEnumPayloadOperation extends _i1 EnumPayloadInput buildOutput( StringEnum? payload, _i3.AWSBaseHttpResponse response, - ) => - EnumPayloadInput.fromResponse( - payload, - response, - ); + ) => EnumPayloadInput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +103,7 @@ class HttpEnumPayloadOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart index 2fc0ecb0fe..7f5310d0fd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_payload_traits_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,37 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a blob shape in the payload. In this example, no JSON document is synthesized because the payload is not a structure or a union type. -class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, - HttpPayloadTraitsInputOutput, _i2.Uint8List, HttpPayloadTraitsInputOutput> { +class HttpPayloadTraitsOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > { /// This examples serializes a blob shape in the payload. In this example, no JSON document is synthesized because the payload is not a structure or a union type. HttpPayloadTraitsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpPayloadTraitsInputOutput, - _i2.Uint8List, HttpPayloadTraitsInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,11 +92,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, HttpPayloadTraitsInputOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadTraitsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -107,11 +116,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart index ee59b8e466..aa4b991f0f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_payload_traits_with_media_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. -class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> { +class HttpPayloadTraitsWithMediaTypeOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > { /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. HttpPayloadTraitsWithMediaTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'text/plain', - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,16 +76,16 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - HttpPayloadTraitsWithMediaTypeInputOutput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/HttpPayloadTraitsWithMediaType'; - if (input.foo != null) { - if (input.foo!.isNotEmpty) { - b.headers['X-Foo'] = input.foo!; - } - } - }); + HttpPayloadTraitsWithMediaTypeInputOutput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/HttpPayloadTraitsWithMediaType'; + if (input.foo != null) { + if (input.foo!.isNotEmpty) { + b.headers['X-Foo'] = input.foo!; + } + } + }); @override int successCode([HttpPayloadTraitsWithMediaTypeInputOutput? output]) => 200; @@ -88,10 +95,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, ) => - HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( - payload, - response, - ); + HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -115,11 +119,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart index 438b7ed963..699dbe05c5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_payload_with_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,40 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. -class HttpPayloadWithStructureOperation extends _i1.HttpOperation< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> { +class HttpPayloadWithStructureOperation + extends + _i1.HttpOperation< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > { /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. HttpPayloadWithStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< HttpPayloadWithStructureInputOutput buildOutput( NestedPayload? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart index f6911276b0..acf0abbc7f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_prefix_headers_in_response_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,44 +14,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Clients that perform this test extract all headers from the response. -class HttpPrefixHeadersInResponseOperation extends _i1.HttpOperation< - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseOutputPayload, - HttpPrefixHeadersInResponseOutput> { +class HttpPrefixHeadersInResponseOperation + extends + _i1.HttpOperation< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutput + > { /// Clients that perform this test extract all headers from the response. HttpPrefixHeadersInResponseOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseOutputPayload, - HttpPrefixHeadersInResponseOutput>> protocols = [ + _i1.HttpProtocol< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class HttpPrefixHeadersInResponseOperation extends _i1.HttpOperation< HttpPrefixHeadersInResponseOutput buildOutput( HttpPrefixHeadersInResponseOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInResponseOutput.fromResponse( - payload, - response, - ); + ) => HttpPrefixHeadersInResponseOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class HttpPrefixHeadersInResponseOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart index 6fa2aa4fd1..5e67712298 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_prefix_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,11 +17,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) -class HttpPrefixHeadersOperation extends _i1.HttpOperation< - HttpPrefixHeadersInputPayload, - HttpPrefixHeadersInput, - HttpPrefixHeadersOutputPayload, - HttpPrefixHeadersOutput> { +class HttpPrefixHeadersOperation + extends + _i1.HttpOperation< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInput, + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutput + > { /// This examples adds headers to the input of a request and response by prefix./// /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) @@ -31,33 +34,37 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpPrefixHeadersInputPayload, - HttpPrefixHeadersInput, - HttpPrefixHeadersOutputPayload, - HttpPrefixHeadersOutput>> protocols = [ + _i1.HttpProtocol< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInput, + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -99,11 +106,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< HttpPrefixHeadersOutput buildOutput( HttpPrefixHeadersOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersOutput.fromResponse( - payload, - response, - ); + ) => HttpPrefixHeadersOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -127,11 +130,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart index 164e7b2696..7e384bf383 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_request_with_float_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/http_request_with_flo import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithFloatLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithFloatLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart index 23b86ccbe0..911efab21b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_request_with_greedy_label_in_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/http_request_with_gre import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithGreedyLabelInPathOperation + extends + _i1.HttpOperation< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithGreedyLabelInPathOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +82,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +107,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart index 2843b79b37..c518cde3ec 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_request_with_labels_and_timestamp_format_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,44 +14,50 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests serialize different timestamp formats in the URI path. class HttpRequestWithLabelsAndTimestampFormatOperation - extends _i1.HttpOperation< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> { + extends + _i1.HttpOperation< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests serialize different timestamp formats in the URI path. HttpRequestWithLabelsAndTimestampFormatOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,21 +75,18 @@ class HttpRequestWithLabelsAndTimestampFormatOperation @override _i1.HttpRequest buildRequest( - HttpRequestWithLabelsAndTimestampFormatInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; - }); + HttpRequestWithLabelsAndTimestampFormatInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +111,7 @@ class HttpRequestWithLabelsAndTimestampFormatOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart index 668645ced7..7099682a90 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_request_with_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. -class HttpRequestWithLabelsOperation extends _i1.HttpOperation< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. HttpRequestWithLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,21 +74,19 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(HttpRequestWithLabelsInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; - }); + _i1.HttpRequest buildRequest( + HttpRequestWithLabelsInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +111,7 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart index 73230f46f9..46c873fec6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_request_with_regex_literal_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/http_request_with_reg import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithRegexLiteralOperation extends _i1.HttpOperation< - HttpRequestWithRegexLiteralInputPayload, - HttpRequestWithRegexLiteralInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithRegexLiteralOperation + extends + _i1.HttpOperation< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithRegexLiteralOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class HttpRequestWithRegexLiteralOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class HttpRequestWithRegexLiteralOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart index 0ef480066b..77c1e259d8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_response_code_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/http_response_code_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - HttpResponseCodeOutputPayload, HttpResponseCodeOutput> { +class HttpResponseCodeOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > { HttpResponseCodeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/HttpResponseCode'; - }); + b.method = 'PUT'; + b.path = r'/HttpResponseCode'; + }); @override int successCode([HttpResponseCodeOutput? output]) => output?.status ?? 200; @@ -71,11 +84,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, HttpResponseCodeOutput buildOutput( HttpResponseCodeOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.fromResponse( - payload, - response, - ); + ) => HttpResponseCodeOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart index 8bb2425dce..3180e53600 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.http_string_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,44 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/string_payload_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpStringPayloadOperation extends _i1 - .HttpOperation { +class HttpStringPayloadOperation + extends + _i1.HttpOperation< + String, + StringPayloadInput, + String, + StringPayloadInput + > { HttpStringPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1 - .HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +79,7 @@ class HttpStringPayloadOperation extends _i1 StringPayloadInput buildOutput( String? payload, _i3.AWSBaseHttpResponse response, - ) => - StringPayloadInput.fromResponse( - payload, - response, - ); + ) => StringPayloadInput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +103,7 @@ class HttpStringPayloadOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart index ff32cbae14..d602070add 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.ignore_query_params_in_response_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. -class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput> { +class IgnoreQueryParamsInResponseOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > { /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. IgnoreQueryParamsInResponseOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,9 +75,9 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/IgnoreQueryParamsInResponse'; - }); + b.method = 'GET'; + b.path = r'/IgnoreQueryParamsInResponse'; + }); @override int successCode([IgnoreQueryParamsInResponseOutput? output]) => 200; @@ -76,11 +86,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< IgnoreQueryParamsInResponseOutput buildOutput( IgnoreQueryParamsInResponseOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoreQueryParamsInResponseOutput.fromResponse( - payload, - response, - ); + ) => IgnoreQueryParamsInResponseOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart index 53391afebd..897050423b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.input_and_output_with_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. -class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> { +class InputAndOutputWithHeadersOperation + extends + _i1.HttpOperation< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > { /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. InputAndOutputWithHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo>> protocols = [ + _i1.HttpProtocol< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -133,13 +140,13 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< if (input.headerTimestampList != null) { if (input.headerTimestampList!.isNotEmpty) { b.headers['X-TimestampList'] = input.headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } } @@ -174,11 +181,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< InputAndOutputWithHeadersIo buildOutput( InputAndOutputWithHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.fromResponse( - payload, - response, - ); + ) => InputAndOutputWithHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -202,11 +205,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart index ea92ee54fa..74da78a9cd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.json_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class JsonBlobsOperation extends _i1.HttpOperation { +class JsonBlobsOperation + extends + _i1.HttpOperation< + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput + > { /// Blobs are base64 encoded JsonBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonBlobsOperation extends _i1.HttpOperation - JsonBlobsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonBlobsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonBlobsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart index 438812ac8f..3210f1fd89 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.json_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class JsonEnumsOperation extends _i1.HttpOperation { +class JsonEnumsOperation + extends + _i1.HttpOperation< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. JsonEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonEnumsOperation extends _i1.HttpOperation - JsonEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart index bba52c3a30..056f745136 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.json_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes intEnums as top level properties, in lists, sets, and maps. -class JsonIntEnumsOperation extends _i1.HttpOperation { +class JsonIntEnumsOperation + extends + _i1.HttpOperation< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > { /// This example serializes intEnums as top level properties, in lists, sets, and maps. JsonIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation - JsonIntEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonIntEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart index d25cd3795b..df4d5f8085 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.json_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes JSON lists for the following cases for both input and output: 1. Normal JSON lists. 2. Normal JSON sets. 3. JSON lists of lists. 4. Lists of structures. -class JsonListsOperation extends _i1.HttpOperation { +class JsonListsOperation + extends + _i1.HttpOperation< + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput + > { /// This test case serializes JSON lists for the following cases for both input and output: 1. Normal JSON lists. 2. Normal JSON sets. 3. JSON lists of lists. 4. Lists of structures. JsonListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonListsOperation extends _i1.HttpOperation - JsonListsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonListsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonListsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart index 231ec8e0c1..fbddfdc41b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.json_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests basic map serialization. -class JsonMapsOperation extends _i1.HttpOperation { +class JsonMapsOperation + extends + _i1.HttpOperation< + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput + > { /// The example tests basic map serialization. JsonMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonMapsOperation extends _i1.HttpOperation - JsonMapsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonMapsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart index 73aad6af6a..9363d91dff 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.json_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class JsonTimestampsOperation extends _i1.HttpOperation< - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput> { +class JsonTimestampsOperation + extends + _i1.HttpOperation< + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. JsonTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,11 +86,7 @@ class JsonTimestampsOperation extends _i1.HttpOperation< JsonTimestampsInputOutput buildOutput( JsonTimestampsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - JsonTimestampsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonTimestampsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class JsonTimestampsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart index eb66bc39ad..ed56777ddb 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.json_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation uses unions for inputs and outputs. -class JsonUnionsOperation extends _i1.HttpOperation { +class JsonUnionsOperation + extends + _i1.HttpOperation< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > { /// This operation uses unions for inputs and outputs. JsonUnionsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,9 +74,9 @@ class JsonUnionsOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/JsonUnions'; - }); + b.method = 'PUT'; + b.path = r'/JsonUnions'; + }); @override int successCode([UnionInputOutput? output]) => 200; @@ -72,11 +85,7 @@ class JsonUnionsOperation extends _i1.HttpOperation - UnionInputOutput.fromResponse( - payload, - response, - ); + ) => UnionInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class JsonUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart index 299b025896..0481de6d71 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_accept_with_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,40 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/greeting_struct.dart' import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedAcceptWithBodyOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> { +class MalformedAcceptWithBodyOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> { MalformedAcceptWithBodyOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class MalformedAcceptWithBodyOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedAcceptWithBody'; - }); + b.method = 'POST'; + b.path = r'/MalformedAcceptWithBody'; + }); @override int successCode([GreetingStruct? output]) => 200; @@ -71,11 +74,7 @@ class MalformedAcceptWithBodyOperation extends _i1 GreetingStruct buildOutput( GreetingStruct payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingStruct.fromResponse( - payload, - response, - ); + ) => GreetingStruct.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class MalformedAcceptWithBodyOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart index f3393f51a5..7c9fdbcbf3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_accept_with_generic_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_accept_with import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< - _i1.Unit, _i1.Unit, String, MalformedAcceptWithGenericStringOutput> { +class MalformedAcceptWithGenericStringOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + String, + MalformedAcceptWithGenericStringOutput + > { MalformedAcceptWithGenericStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, String, - MalformedAcceptWithGenericStringOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + String, + MalformedAcceptWithGenericStringOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedAcceptWithGenericString'; - }); + b.method = 'POST'; + b.path = r'/MalformedAcceptWithGenericString'; + }); @override int successCode([MalformedAcceptWithGenericStringOutput? output]) => 200; @@ -71,11 +84,7 @@ class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< MalformedAcceptWithGenericStringOutput buildOutput( String? payload, _i3.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithGenericStringOutput.fromResponse( - payload, - response, - ); + ) => MalformedAcceptWithGenericStringOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart index 98d0dcb36f..881fee9ebd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_accept_with_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_accept_with import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, _i2.Uint8List, MalformedAcceptWithPayloadOutput> { +class MalformedAcceptWithPayloadOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + _i2.Uint8List, + MalformedAcceptWithPayloadOutput + > { MalformedAcceptWithPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i2.Uint8List, - MalformedAcceptWithPayloadOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + _i2.Uint8List, + MalformedAcceptWithPayloadOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,9 +74,9 @@ class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedAcceptWithPayload'; - }); + b.method = 'POST'; + b.path = r'/MalformedAcceptWithPayload'; + }); @override int successCode([MalformedAcceptWithPayloadOutput? output]) => 200; @@ -72,11 +85,7 @@ class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, MalformedAcceptWithPayloadOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithPayloadOutput.fromResponse( - payload, - response, - ); + ) => MalformedAcceptWithPayloadOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart index e282c67aa2..1bd9d12982 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_blob_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,44 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_blob_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedBlobOperation extends _i1 - .HttpOperation { +class MalformedBlobOperation + extends + _i1.HttpOperation< + MalformedBlobInput, + MalformedBlobInput, + _i1.Unit, + _i1.Unit + > { MalformedBlobOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +76,7 @@ class MalformedBlobOperation extends _i1 int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +101,7 @@ class MalformedBlobOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart index fba64ead28..84ed25c228 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_boolean_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_boolean_inp import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedBooleanOperation extends _i1.HttpOperation< - MalformedBooleanInputPayload, MalformedBooleanInput, _i1.Unit, _i1.Unit> { +class MalformedBooleanOperation + extends + _i1.HttpOperation< + MalformedBooleanInputPayload, + MalformedBooleanInput, + _i1.Unit, + _i1.Unit + > { MalformedBooleanOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedBooleanInputPayload, + MalformedBooleanInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,29 +71,24 @@ class MalformedBooleanOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(MalformedBooleanInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedBoolean/{booleanInPath}'; - if (input.booleanInHeader != null) { - b.headers['booleanInHeader'] = input.booleanInHeader!.toString(); - } - if (input.booleanInQuery != null) { - b.queryParameters.add( - 'booleanInQuery', - input.booleanInQuery!.toString(), - ); - } - }); + _i1.HttpRequest buildRequest(MalformedBooleanInput input) => _i1.HttpRequest(( + b, + ) { + b.method = 'POST'; + b.path = r'/MalformedBoolean/{booleanInPath}'; + if (input.booleanInHeader != null) { + b.headers['booleanInHeader'] = input.booleanInHeader!.toString(); + } + if (input.booleanInQuery != null) { + b.queryParameters.add('booleanInQuery', input.booleanInQuery!.toString()); + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +113,7 @@ class MalformedBooleanOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart index 9698e7f114..9f543375e0 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_byte_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_byte_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedByteOperation extends _i1.HttpOperation< - MalformedByteInputPayload, MalformedByteInput, _i1.Unit, _i1.Unit> { +class MalformedByteOperation + extends + _i1.HttpOperation< + MalformedByteInputPayload, + MalformedByteInput, + _i1.Unit, + _i1.Unit + > { MalformedByteOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedByteInputPayload, + MalformedByteInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedByteOperation extends _i1.HttpOperation< b.headers['byteInHeader'] = input.byteInHeader!.toString(); } if (input.byteInQuery != null) { - b.queryParameters.add( - 'byteInQuery', - input.byteInQuery!.toString(), - ); + b.queryParameters.add('byteInQuery', input.byteInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedByteOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedByteOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart index 1e97f73796..4c2a699e6e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_content_type_with_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,39 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/greeting_struct.dart' import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedContentTypeWithBodyOperation extends _i1 - .HttpOperation { +class MalformedContentTypeWithBodyOperation + extends + _i1.HttpOperation { MalformedContentTypeWithBodyOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,18 +62,15 @@ class MalformedContentTypeWithBodyOperation extends _i1 @override _i1.HttpRequest buildRequest(GreetingStruct input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithBody'; - }); + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithBody'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +95,7 @@ class MalformedContentTypeWithBodyOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart index d50e5de8e2..47a4af92a1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_content_type_with_generic_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_content_typ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedContentTypeWithGenericStringOperation extends _i1.HttpOperation< - String, MalformedContentTypeWithGenericStringInput, _i1.Unit, _i1.Unit> { +class MalformedContentTypeWithGenericStringOperation + extends + _i1.HttpOperation< + String, + MalformedContentTypeWithGenericStringInput, + _i1.Unit, + _i1.Unit + > { MalformedContentTypeWithGenericStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + String, + MalformedContentTypeWithGenericStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,20 +72,17 @@ class MalformedContentTypeWithGenericStringOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - MalformedContentTypeWithGenericStringInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithGenericString'; - }); + MalformedContentTypeWithGenericStringInput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithGenericString'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -97,11 +107,7 @@ class MalformedContentTypeWithGenericStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart index fc8a5e8079..5b6c4eb5e5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_content_type_with_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_content_typ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< - _i2.Uint8List, MalformedContentTypeWithPayloadInput, _i1.Unit, _i1.Unit> { +class MalformedContentTypeWithPayloadOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + MalformedContentTypeWithPayloadInput, + _i1.Unit, + _i1.Unit + > { MalformedContentTypeWithPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, MalformedContentTypeWithPayloadInput, - _i1.Unit, _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + MalformedContentTypeWithPayloadInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -43,7 +56,7 @@ class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'image/jpeg', - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,10 +83,7 @@ class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +108,7 @@ class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart index d087945c92..ea61f3ea98 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_content_type_without_body_empty_input_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,43 +13,49 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; class MalformedContentTypeWithoutBodyEmptyInputOperation - extends _i1.HttpOperation< - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - MalformedContentTypeWithoutBodyEmptyInputInput, - _i1.Unit, - _i1.Unit> { + extends + _i1.HttpOperation< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInput, + _i1.Unit, + _i1.Unit + > { MalformedContentTypeWithoutBodyEmptyInputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - MalformedContentTypeWithoutBodyEmptyInputInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -67,25 +73,22 @@ class MalformedContentTypeWithoutBodyEmptyInputOperation @override _i1.HttpRequest buildRequest( - MalformedContentTypeWithoutBodyEmptyInputInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithoutBodyEmptyInput'; - if (input.header != null) { - if (input.header!.isNotEmpty) { - b.headers['header'] = input.header!; - } - } - }); + MalformedContentTypeWithoutBodyEmptyInputInput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithoutBodyEmptyInput'; + if (input.header != null) { + if (input.header!.isNotEmpty) { + b.headers['header'] = input.header!; + } + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -110,11 +113,7 @@ class MalformedContentTypeWithoutBodyEmptyInputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart index 224ca43a16..eb1c943532 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_content_type_without_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,29 +18,30 @@ class MalformedContentTypeWithoutBodyOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class MalformedContentTypeWithoutBodyOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithoutBody'; - }); + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithoutBody'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class MalformedContentTypeWithoutBodyOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart index ea4bbdf685..d77e9aa8dc 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_double_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_double_inpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedDoubleOperation extends _i1.HttpOperation< - MalformedDoubleInputPayload, MalformedDoubleInput, _i1.Unit, _i1.Unit> { +class MalformedDoubleOperation + extends + _i1.HttpOperation< + MalformedDoubleInputPayload, + MalformedDoubleInput, + _i1.Unit, + _i1.Unit + > { MalformedDoubleOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedDoubleInputPayload, + MalformedDoubleInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,29 +71,24 @@ class MalformedDoubleOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(MalformedDoubleInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedDouble/{doubleInPath}'; - if (input.doubleInHeader != null) { - b.headers['doubleInHeader'] = input.doubleInHeader!.toString(); - } - if (input.doubleInQuery != null) { - b.queryParameters.add( - 'doubleInQuery', - input.doubleInQuery!.toString(), - ); - } - }); + _i1.HttpRequest buildRequest(MalformedDoubleInput input) => _i1.HttpRequest(( + b, + ) { + b.method = 'POST'; + b.path = r'/MalformedDouble/{doubleInPath}'; + if (input.doubleInHeader != null) { + b.headers['doubleInHeader'] = input.doubleInHeader!.toString(); + } + if (input.doubleInQuery != null) { + b.queryParameters.add('doubleInQuery', input.doubleInQuery!.toString()); + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +113,7 @@ class MalformedDoubleOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart index 1c6d127302..731aa9166a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_float_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_float_input import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedFloatOperation extends _i1.HttpOperation< - MalformedFloatInputPayload, MalformedFloatInput, _i1.Unit, _i1.Unit> { +class MalformedFloatOperation + extends + _i1.HttpOperation< + MalformedFloatInputPayload, + MalformedFloatInput, + _i1.Unit, + _i1.Unit + > { MalformedFloatOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedFloatInputPayload, + MalformedFloatInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedFloatOperation extends _i1.HttpOperation< b.headers['floatInHeader'] = input.floatInHeader!.toString(); } if (input.floatInQuery != null) { - b.queryParameters.add( - 'floatInQuery', - input.floatInQuery!.toString(), - ); + b.queryParameters.add('floatInQuery', input.floatInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedFloatOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedFloatOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart index 2c09ece7e2..9d9d1ebbe5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_integer_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_integer_inp import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedIntegerOperation extends _i1.HttpOperation< - MalformedIntegerInputPayload, MalformedIntegerInput, _i1.Unit, _i1.Unit> { +class MalformedIntegerOperation + extends + _i1.HttpOperation< + MalformedIntegerInputPayload, + MalformedIntegerInput, + _i1.Unit, + _i1.Unit + > { MalformedIntegerOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedIntegerInputPayload, + MalformedIntegerInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,29 +71,24 @@ class MalformedIntegerOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(MalformedIntegerInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedInteger/{integerInPath}'; - if (input.integerInHeader != null) { - b.headers['integerInHeader'] = input.integerInHeader!.toString(); - } - if (input.integerInQuery != null) { - b.queryParameters.add( - 'integerInQuery', - input.integerInQuery!.toString(), - ); - } - }); + _i1.HttpRequest buildRequest(MalformedIntegerInput input) => _i1.HttpRequest(( + b, + ) { + b.method = 'POST'; + b.path = r'/MalformedInteger/{integerInPath}'; + if (input.integerInHeader != null) { + b.headers['integerInHeader'] = input.integerInHeader!.toString(); + } + if (input.integerInQuery != null) { + b.queryParameters.add('integerInQuery', input.integerInQuery!.toString()); + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +113,7 @@ class MalformedIntegerOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart index 14ae17ce49..8d7324a90e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_list_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,44 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_list_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedListOperation extends _i1 - .HttpOperation { +class MalformedListOperation + extends + _i1.HttpOperation< + MalformedListInput, + MalformedListInput, + _i1.Unit, + _i1.Unit + > { MalformedListOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +76,7 @@ class MalformedListOperation extends _i1 int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +101,7 @@ class MalformedListOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart index 92747d100a..31465beb8b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_long_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_long_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLongOperation extends _i1.HttpOperation< - MalformedLongInputPayload, MalformedLongInput, _i1.Unit, _i1.Unit> { +class MalformedLongOperation + extends + _i1.HttpOperation< + MalformedLongInputPayload, + MalformedLongInput, + _i1.Unit, + _i1.Unit + > { MalformedLongOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLongInputPayload, + MalformedLongInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedLongOperation extends _i1.HttpOperation< b.headers['longInHeader'] = input.longInHeader!.toString(); } if (input.longInQuery != null) { - b.queryParameters.add( - 'longInQuery', - input.longInQuery!.toString(), - ); + b.queryParameters.add('longInQuery', input.longInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedLongOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedLongOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart index 4d549a8d9f..da01a9736e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,44 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_map_input.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedMapOperation extends _i1 - .HttpOperation { +class MalformedMapOperation + extends + _i1.HttpOperation< + MalformedMapInput, + MalformedMapInput, + _i1.Unit, + _i1.Unit + > { MalformedMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,18 +67,15 @@ class MalformedMapOperation extends _i1 @override _i1.HttpRequest buildRequest(MalformedMapInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedMap'; - }); + b.method = 'POST'; + b.path = r'/MalformedMap'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +100,7 @@ class MalformedMapOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart index 53217af464..f1e97d084f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_request_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_request_bod import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRequestBodyOperation extends _i1.HttpOperation< - MalformedRequestBodyInput, MalformedRequestBodyInput, _i1.Unit, _i1.Unit> { +class MalformedRequestBodyOperation + extends + _i1.HttpOperation< + MalformedRequestBodyInput, + MalformedRequestBodyInput, + _i1.Unit, + _i1.Unit + > { MalformedRequestBodyOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRequestBodyInput, + MalformedRequestBodyInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +81,7 @@ class MalformedRequestBodyOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +106,7 @@ class MalformedRequestBodyOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart index 43cd82e757..86854acb7d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_short_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_short_input import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedShortOperation extends _i1.HttpOperation< - MalformedShortInputPayload, MalformedShortInput, _i1.Unit, _i1.Unit> { +class MalformedShortOperation + extends + _i1.HttpOperation< + MalformedShortInputPayload, + MalformedShortInput, + _i1.Unit, + _i1.Unit + > { MalformedShortOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedShortInputPayload, + MalformedShortInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedShortOperation extends _i1.HttpOperation< b.headers['shortInHeader'] = input.shortInHeader!.toString(); } if (input.shortInQuery != null) { - b.queryParameters.add( - 'shortInQuery', - input.shortInQuery!.toString(), - ); + b.queryParameters.add('shortInQuery', input.shortInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedShortOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedShortOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart index 9caa64edec..844d86965d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_string_inpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedStringOperation extends _i1.HttpOperation< - MalformedStringInputPayload, MalformedStringInput, _i1.Unit, _i1.Unit> { +class MalformedStringOperation + extends + _i1.HttpOperation< + MalformedStringInputPayload, + MalformedStringInput, + _i1.Unit, + _i1.Unit + > { MalformedStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedStringInputPayload, + MalformedStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,8 +78,9 @@ class MalformedStringOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/MalformedString'; if (input.blob != null) { - b.headers['amz-media-typed-header'] = _i3 - .base64Encode(_i3.utf8.encode(_i3.jsonEncode(input.blob!.value))); + b.headers['amz-media-typed-header'] = _i3.base64Encode( + _i3.utf8.encode(_i3.jsonEncode(input.blob!.value)), + ); } }); @@ -74,10 +88,7 @@ class MalformedStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +113,7 @@ class MalformedStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart index 3638df3de1..25f0b9ddac 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_body_date_time_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,42 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_b import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampBodyDateTimeOperation extends _i1.HttpOperation< - MalformedTimestampBodyDateTimeInput, - MalformedTimestampBodyDateTimeInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampBodyDateTimeOperation + extends + _i1.HttpOperation< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampBodyDateTimeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampBodyDateTimeInput, - MalformedTimestampBodyDateTimeInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +81,7 @@ class MalformedTimestampBodyDateTimeOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +106,7 @@ class MalformedTimestampBodyDateTimeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart index a2fdd439f3..306003c7a2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_body_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,39 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_b import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampBodyDefaultOperation extends _i1.HttpOperation< - MalformedTimestampBodyDefaultInput, - MalformedTimestampBodyDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampBodyDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampBodyDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,10 +81,7 @@ class MalformedTimestampBodyDefaultOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -99,11 +106,7 @@ class MalformedTimestampBodyDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart index 197a9f68d5..3dca41a4c3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_body_http_date_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,42 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_b import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampBodyHttpDateOperation extends _i1.HttpOperation< - MalformedTimestampBodyHttpDateInput, - MalformedTimestampBodyHttpDateInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampBodyHttpDateOperation + extends + _i1.HttpOperation< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampBodyHttpDateOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampBodyHttpDateInput, - MalformedTimestampBodyHttpDateInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +81,7 @@ class MalformedTimestampBodyHttpDateOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +106,7 @@ class MalformedTimestampBodyHttpDateOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart index 6d9830541b..ad6d14c108 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_header_date_time_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_h import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampHeaderDateTimeOperation extends _i1.HttpOperation< - MalformedTimestampHeaderDateTimeInputPayload, - MalformedTimestampHeaderDateTimeInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampHeaderDateTimeOperation + extends + _i1.HttpOperation< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampHeaderDateTimeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampHeaderDateTimeInputPayload, - MalformedTimestampHeaderDateTimeInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,19 +76,17 @@ class MalformedTimestampHeaderDateTimeOperation extends _i1.HttpOperation< _i1.HttpRequest((b) { b.method = 'POST'; b.path = r'/MalformedTimestampHeaderDateTime'; - b.headers['timestamp'] = _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['timestamp'] = + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +111,7 @@ class MalformedTimestampHeaderDateTimeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart index f9f4ab1752..afc4d30c57 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_header_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_h import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampHeaderDefaultOperation extends _i1.HttpOperation< - MalformedTimestampHeaderDefaultInputPayload, - MalformedTimestampHeaderDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampHeaderDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampHeaderDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampHeaderDefaultInputPayload, - MalformedTimestampHeaderDefaultInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,19 +76,17 @@ class MalformedTimestampHeaderDefaultOperation extends _i1.HttpOperation< _i1.HttpRequest((b) { b.method = 'POST'; b.path = r'/MalformedTimestampHeaderDefault'; - b.headers['timestamp'] = _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['timestamp'] = + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.httpDate).toString(); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +111,7 @@ class MalformedTimestampHeaderDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart index 75c0492680..c1a7bbd9e2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_header_epoch_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_h import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampHeaderEpochOperation extends _i1.HttpOperation< - MalformedTimestampHeaderEpochInputPayload, - MalformedTimestampHeaderEpochInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampHeaderEpochOperation + extends + _i1.HttpOperation< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampHeaderEpochOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,19 +76,17 @@ class MalformedTimestampHeaderEpochOperation extends _i1.HttpOperation< _i1.HttpRequest((b) { b.method = 'POST'; b.path = r'/MalformedTimestampHeaderEpoch'; - b.headers['timestamp'] = _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + b.headers['timestamp'] = + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.epochSeconds).toString(); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +111,7 @@ class MalformedTimestampHeaderEpochOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart index c914b9ada5..cac984f5aa 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_path_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_p import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampPathDefaultOperation extends _i1.HttpOperation< - MalformedTimestampPathDefaultInputPayload, - MalformedTimestampPathDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampPathDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampPathDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class MalformedTimestampPathDefaultOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class MalformedTimestampPathDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart index 0c19eeadd7..52de990b7e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_path_epoch_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_p import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampPathEpochOperation extends _i1.HttpOperation< - MalformedTimestampPathEpochInputPayload, - MalformedTimestampPathEpochInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampPathEpochOperation + extends + _i1.HttpOperation< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampPathEpochOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class MalformedTimestampPathEpochOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class MalformedTimestampPathEpochOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart index b8f9274dd8..03b87bddc9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_path_http_date_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_p import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampPathHttpDateOperation extends _i1.HttpOperation< - MalformedTimestampPathHttpDateInputPayload, - MalformedTimestampPathHttpDateInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampPathHttpDateOperation + extends + _i1.HttpOperation< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampPathHttpDateOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampPathHttpDateInputPayload, - MalformedTimestampPathHttpDateInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +82,7 @@ class MalformedTimestampPathHttpDateOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +107,7 @@ class MalformedTimestampPathHttpDateOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart index 8d22d71c6e..7fd54aa301 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_query_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_q import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< - MalformedTimestampQueryDefaultInputPayload, - MalformedTimestampQueryDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampQueryDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampQueryDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampQueryDefaultInputPayload, - MalformedTimestampQueryDefaultInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,9 +78,9 @@ class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< b.path = r'/MalformedTimestampQueryDefault'; b.queryParameters.add( 'timestamp', - _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(), ); }); @@ -81,10 +88,7 @@ class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -109,11 +113,7 @@ class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart index 2f83f78695..cc9c9cba71 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_query_epoch_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_q import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< - MalformedTimestampQueryEpochInputPayload, - MalformedTimestampQueryEpochInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampQueryEpochOperation + extends + _i1.HttpOperation< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampQueryEpochOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,9 +78,9 @@ class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< b.path = r'/MalformedTimestampQueryEpoch'; b.queryParameters.add( 'timestamp', - _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(), ); }); @@ -78,10 +88,7 @@ class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +113,7 @@ class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart index 8948a76c76..474daa357a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_timestamp_query_http_date_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_timestamp_q import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< - MalformedTimestampQueryHttpDateInputPayload, - MalformedTimestampQueryHttpDateInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampQueryHttpDateOperation + extends + _i1.HttpOperation< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampQueryHttpDateOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampQueryHttpDateInputPayload, - MalformedTimestampQueryHttpDateInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,9 +78,9 @@ class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< b.path = r'/MalformedTimestampQueryHttpDate'; b.queryParameters.add( 'timestamp', - _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(), ); }); @@ -81,10 +88,7 @@ class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -109,11 +113,7 @@ class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart index 31707ef62c..4000f2bd8e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.malformed_union_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/malformed_union_input import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedUnionOperation extends _i1.HttpOperation { +class MalformedUnionOperation + extends + _i1.HttpOperation< + MalformedUnionInput, + MalformedUnionInput, + _i1.Unit, + _i1.Unit + > { MalformedUnionOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedUnionInput, + MalformedUnionInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +81,7 @@ class MalformedUnionOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +106,7 @@ class MalformedUnionOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart index a67bb4ec58..51f4dccb05 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.media_type_header_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,41 +15,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example ensures that mediaType strings are base64 encoded in headers. -class MediaTypeHeaderOperation extends _i1.HttpOperation< - MediaTypeHeaderInputPayload, - MediaTypeHeaderInput, - MediaTypeHeaderOutputPayload, - MediaTypeHeaderOutput> { +class MediaTypeHeaderOperation + extends + _i1.HttpOperation< + MediaTypeHeaderInputPayload, + MediaTypeHeaderInput, + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutput + > { /// This example ensures that mediaType strings are base64 encoded in headers. MediaTypeHeaderOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MediaTypeHeaderInputPayload, + MediaTypeHeaderInput, + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,8 +81,9 @@ class MediaTypeHeaderOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/MediaTypeHeader'; if (input.json != null) { - b.headers['X-Json'] = _i3 - .base64Encode(_i3.utf8.encode(_i3.jsonEncode(input.json!.value))); + b.headers['X-Json'] = _i3.base64Encode( + _i3.utf8.encode(_i3.jsonEncode(input.json!.value)), + ); } }); @@ -83,11 +94,7 @@ class MediaTypeHeaderOperation extends _i1.HttpOperation< MediaTypeHeaderOutput buildOutput( MediaTypeHeaderOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - MediaTypeHeaderOutput.fromResponse( - payload, - response, - ); + ) => MediaTypeHeaderOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +118,7 @@ class MediaTypeHeaderOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart index 781ddec546..0d8e68d372 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,29 +20,30 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndNoOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndNoOutput'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart index f94aafd3da..2ee67931f5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,38 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndOutputOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndOutputOutput'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -73,11 +86,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart index d201292cce..891fa7ae58 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.null_and_empty_headers_client_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersClientOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersClientOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,8 +90,9 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -93,11 +104,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -121,11 +128,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart index b7fe5fea96..faa6e0cc83 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.null_and_empty_headers_server_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersServerOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersServerOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,8 +90,9 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -93,11 +104,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -121,11 +128,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart index 0e9e9973bc..9e94c106d8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.omits_null_serializes_empty_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Omits null, but serializes empty string value. -class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> { +class OmitsNullSerializesEmptyStringOperation + extends + _i1.HttpOperation< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > { /// Omits null, but serializes empty string value. OmitsNullSerializesEmptyStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,16 +79,10 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/OmitsNullSerializesEmptyString'; if (input.nullValue != null) { - b.queryParameters.add( - 'Null', - input.nullValue!, - ); + b.queryParameters.add('Null', input.nullValue!); } if (input.emptyString != null) { - b.queryParameters.add( - 'Empty', - input.emptyString!, - ); + b.queryParameters.add('Empty', input.emptyString!); } }); @@ -89,10 +90,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -117,11 +115,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart index d49662286a..80a1fa2868 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.omits_serializing_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Omits serializing empty lists. Because empty strings are serilized as \`Foo=\`, empty lists cannot also be serialized as \`Foo=\` and instead must be omitted. -class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< - OmitsSerializingEmptyListsInputPayload, - OmitsSerializingEmptyListsInput, - _i1.Unit, - _i1.Unit> { +class OmitsSerializingEmptyListsOperation + extends + _i1.HttpOperation< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInput, + _i1.Unit, + _i1.Unit + > { /// Omits serializing empty lists. Because empty strings are serilized as \`Foo=\`, empty lists cannot also be serialized as \`Foo=\` and instead must be omitted. OmitsSerializingEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,60 +80,42 @@ class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< b.path = r'/OmitsSerializingEmptyLists'; if (input.queryStringList != null) { for (var value in input.queryStringList!) { - b.queryParameters.add( - 'StringList', - value, - ); + b.queryParameters.add('StringList', value); } } if (input.queryIntegerList != null) { for (var value in input.queryIntegerList!) { - b.queryParameters.add( - 'IntegerList', - value.toString(), - ); + b.queryParameters.add('IntegerList', value.toString()); } } if (input.queryDoubleList != null) { for (var value in input.queryDoubleList!) { - b.queryParameters.add( - 'DoubleList', - value.toString(), - ); + b.queryParameters.add('DoubleList', value.toString()); } } if (input.queryBooleanList != null) { for (var value in input.queryBooleanList!) { - b.queryParameters.add( - 'BooleanList', - value.toString(), - ); + b.queryParameters.add('BooleanList', value.toString()); } } if (input.queryTimestampList != null) { for (var value in input.queryTimestampList!) { b.queryParameters.add( 'TimestampList', - _i1.Timestamp(value) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + value, + ).format(_i1.TimestampFormat.dateTime).toString(), ); } } if (input.queryEnumList != null) { for (var value in input.queryEnumList!) { - b.queryParameters.add( - 'EnumList', - value.value, - ); + b.queryParameters.add('EnumList', value.value); } } if (input.queryIntegerEnumList != null) { for (var value in input.queryIntegerEnumList!) { - b.queryParameters.add( - 'IntegerEnumList', - value.toString(), - ); + b.queryParameters.add('IntegerEnumList', value.toString()); } } }); @@ -132,10 +124,7 @@ class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -160,11 +149,7 @@ class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart index e398ec6431..b24248a8e5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.post_player_action_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,37 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation defines a union with a Unit member. -class PostPlayerActionOperation extends _i1.HttpOperation { +class PostPlayerActionOperation + extends + _i1.HttpOperation< + PostPlayerActionInput, + PostPlayerActionInput, + PostPlayerActionOutput, + PostPlayerActionOutput + > { /// This operation defines a union with a Unit member. PostPlayerActionOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PostPlayerActionInput, + PostPlayerActionInput, + PostPlayerActionOutput, + PostPlayerActionOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class PostPlayerActionOperation extends _i1.HttpOperation - PostPlayerActionOutput.fromResponse( - payload, - response, - ); + ) => PostPlayerActionOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class PostPlayerActionOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart index 1cfe80bd37..d08838b0be 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.post_union_with_json_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,43 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation defines a union that uses jsonName on some members. -class PostUnionWithJsonNameOperation extends _i1.HttpOperation< - PostUnionWithJsonNameInput, - PostUnionWithJsonNameInput, - PostUnionWithJsonNameOutput, - PostUnionWithJsonNameOutput> { +class PostUnionWithJsonNameOperation + extends + _i1.HttpOperation< + PostUnionWithJsonNameInput, + PostUnionWithJsonNameInput, + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutput + > { /// This operation defines a union that uses jsonName on some members. PostUnionWithJsonNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PostUnionWithJsonNameInput, - PostUnionWithJsonNameInput, - PostUnionWithJsonNameOutput, - PostUnionWithJsonNameOutput>> protocols = [ + _i1.HttpProtocol< + PostUnionWithJsonNameInput, + PostUnionWithJsonNameInput, + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +87,7 @@ class PostUnionWithJsonNameOperation extends _i1.HttpOperation< PostUnionWithJsonNameOutput buildOutput( PostUnionWithJsonNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - PostUnionWithJsonNameOutput.fromResponse( - payload, - response, - ); + ) => PostUnionWithJsonNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +111,7 @@ class PostUnionWithJsonNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart index e01655368b..7673203b58 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,39 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/put_with_content_enco import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,10 +86,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -104,11 +111,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart index f41cf73814..2fbe9cb49d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,10 +79,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/QueryIdempotencyTokenAutoFill'; if (input.token != null) { - b.queryParameters.add( - 'token', - input.token!, - ); + b.queryParameters.add('token', input.token!); } }); @@ -80,10 +87,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +112,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart index 92f46b6f8a..1c9a1c8cfd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.query_params_as_string_list_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/query_params_as_strin import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> { +class QueryParamsAsStringListMapOperation + extends + _i1.HttpOperation< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > { QueryParamsAsStringListMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -67,18 +77,12 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/StringListMap'; if (input.qux != null) { - b.queryParameters.add( - 'corge', - input.qux!, - ); + b.queryParameters.add('corge', input.qux!); } if (input.foo != null) { for (var entry in input.foo!.toMap().entries) { for (var value in entry.value) { - b.queryParameters.add( - entry.key, - value, - ); + b.queryParameters.add(entry.key, value); } } } @@ -88,10 +92,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -116,11 +117,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart index 1fe3c7ffd4..472ebb665b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.query_precedence_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/query_precedence_inpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryPrecedenceOperation extends _i1.HttpOperation< - QueryPrecedenceInputPayload, QueryPrecedenceInput, _i1.Unit, _i1.Unit> { +class QueryPrecedenceOperation + extends + _i1.HttpOperation< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > { QueryPrecedenceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,17 +77,11 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/Precedence'; if (input.foo != null) { - b.queryParameters.add( - 'bar', - input.foo!, - ); + b.queryParameters.add('bar', input.foo!); } if (input.baz != null) { for (var entry in input.baz!.toMap().entries) { - b.queryParameters.add( - entry.key, - entry.value, - ); + b.queryParameters.add(entry.key, entry.value); } } }); @@ -83,10 +90,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -111,11 +115,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart index 119d7af925..7d9e1aab97 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.recursive_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveShapesOperation extends _i1.HttpOperation< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> { +class RecursiveShapesOperation + extends + _i1.HttpOperation< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > { /// Recursive shapes RecursiveShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,11 +86,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< RecursiveShapesInputOutput buildOutput( RecursiveShapesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveShapesInputOutput.fromResponse( - payload, - response, - ); + ) => RecursiveShapesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart index 3ff2a0d36b..6598e03f39 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.response_code_http_fallback_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/response_code_http_fa import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class ResponseCodeHttpFallbackOperation extends _i1.HttpOperation< - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput> { +class ResponseCodeHttpFallbackOperation + extends + _i1.HttpOperation< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput + > { ResponseCodeHttpFallbackOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput>> protocols = [ + _i1.HttpProtocol< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,11 +85,7 @@ class ResponseCodeHttpFallbackOperation extends _i1.HttpOperation< ResponseCodeHttpFallbackInputOutput buildOutput( ResponseCodeHttpFallbackInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - ResponseCodeHttpFallbackInputOutput.fromResponse( - payload, - response, - ); + ) => ResponseCodeHttpFallbackInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +109,7 @@ class ResponseCodeHttpFallbackOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart index e7fd2d8719..0128ae720c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.response_code_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/response_code_require import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, ResponseCodeRequiredOutputPayload, ResponseCodeRequiredOutput> { +class ResponseCodeRequiredOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutput + > { ResponseCodeRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, ResponseCodeRequiredOutputPayload, - ResponseCodeRequiredOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/responseCodeRequired'; - }); + b.method = 'GET'; + b.path = r'/responseCodeRequired'; + }); @override int successCode([ResponseCodeRequiredOutput? output]) => @@ -72,11 +85,7 @@ class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, ResponseCodeRequiredOutput buildOutput( ResponseCodeRequiredOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - ResponseCodeRequiredOutput.fromResponse( - payload, - response, - ); + ) => ResponseCodeRequiredOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart index a6aa01d74b..5d2a4ef215 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,42 +12,49 @@ import 'package:rest_json1_v1/src/rest_json_protocol/model/simple_scalar_propert import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +89,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +113,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart index 56841c17d9..9c8f978a17 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.streaming_traits_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a streaming blob shape in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. -class StreamingTraitsOperation extends _i1.HttpOperation< - _i2.Stream>, - StreamingTraitsInputOutput, - _i2.Stream>, - StreamingTraitsInputOutput> { +class StreamingTraitsOperation + extends + _i1.HttpOperation< + _i2.Stream>, + StreamingTraitsInputOutput, + _i2.Stream>, + StreamingTraitsInputOutput + > { /// This examples serializes a streaming blob shape in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. StreamingTraitsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, StreamingTraitsInputOutput, - _i2.Stream>, StreamingTraitsInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + StreamingTraitsInputOutput, + _i2.Stream>, + StreamingTraitsInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +90,7 @@ class StreamingTraitsOperation extends _i1.HttpOperation< StreamingTraitsInputOutput buildOutput( _i2.Stream>? payload, _i4.AWSBaseHttpResponse response, - ) => - StreamingTraitsInputOutput.fromResponse( - payload, - response, - ); + ) => StreamingTraitsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +114,7 @@ class StreamingTraitsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart index a8fe15526c..60eacc60c1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.streaming_traits_require_length_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a streaming blob shape with a required content length in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. -class StreamingTraitsRequireLengthOperation extends _i1.HttpOperation< - _i2.Stream>, - StreamingTraitsRequireLengthInput, - _i1.Unit, - _i1.Unit> { +class StreamingTraitsRequireLengthOperation + extends + _i1.HttpOperation< + _i2.Stream>, + StreamingTraitsRequireLengthInput, + _i1.Unit, + _i1.Unit + > { /// This examples serializes a streaming blob shape with a required content length in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. StreamingTraitsRequireLengthOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, StreamingTraitsRequireLengthInput, - _i1.Unit, _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + StreamingTraitsRequireLengthInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,10 +88,7 @@ class StreamingTraitsRequireLengthOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +113,7 @@ class StreamingTraitsRequireLengthOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart index 3b37ea0db5..aad913d2b5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.streaming_traits_with_media_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a streaming media-typed blob shape in the request body. This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. -class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput, - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput> { +class StreamingTraitsWithMediaTypeOperation + extends + _i1.HttpOperation< + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput, + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput + > { /// This examples serializes a streaming media-typed blob shape in the request body. This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. StreamingTraitsWithMediaTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput, - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput, + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'text/plain', - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -84,11 +91,7 @@ class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< StreamingTraitsWithMediaTypeInputOutput buildOutput( _i2.Stream>? payload, _i4.AWSBaseHttpResponse response, - ) => - StreamingTraitsWithMediaTypeInputOutput.fromResponse( - payload, - response, - ); + ) => StreamingTraitsWithMediaTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +115,7 @@ class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart index b4cc7b6548..671e85bc7b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.test_body_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,43 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example operation serializes a structure in the HTTP body. It should ensure Content-Type: application/json is used in all requests and that an "empty" body is an empty JSON document ({}). -class TestBodyStructureOperation extends _i1.HttpOperation< - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput> { +class TestBodyStructureOperation + extends + _i1.HttpOperation< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput + > { /// This example operation serializes a structure in the HTTP body. It should ensure Content-Type: application/json is used in all requests and that an "empty" body is an empty JSON document ({}). TestBodyStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput>> protocols = [ + _i1.HttpProtocol< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -84,11 +91,7 @@ class TestBodyStructureOperation extends _i1.HttpOperation< TestBodyStructureInputOutput buildOutput( TestBodyStructureInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TestBodyStructureInputOutput.fromResponse( - payload, - response, - ); + ) => TestBodyStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +115,7 @@ class TestBodyStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart index 5a94f32961..e26d7a5ed2 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.test_no_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example operation serializes a request without an HTTP body. These tests are to ensure we do not attach a body or related headers (Content-Length, Content-Type) to operations that semantically cannot produce an HTTP body. -class TestNoPayloadOperation extends _i1.HttpOperation< - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput> { +class TestNoPayloadOperation + extends + _i1.HttpOperation< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput + > { /// This example operation serializes a request without an HTTP body. These tests are to ensure we do not attach a body or related headers (Content-Length, Content-Type) to operations that semantically cannot produce an HTTP body. TestNoPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput>> protocols = [ + _i1.HttpProtocol< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -85,11 +92,7 @@ class TestNoPayloadOperation extends _i1.HttpOperation< TestNoPayloadInputOutput buildOutput( TestNoPayloadInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TestNoPayloadInputOutput.fromResponse( - payload, - response, - ); + ) => TestNoPayloadInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -113,11 +116,7 @@ class TestNoPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart index 177366e6c3..a2176b29ce 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.test_payload_blob_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,37 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example operation serializes a payload targeting a blob. The Blob shape is not structured content and we cannot make assumptions about what data will be sent. This test ensures only a generic "Content-Type: application/octet-stream" header is used, and that we are not treating an empty body as an empty JSON document. -class TestPayloadBlobOperation extends _i1.HttpOperation<_i2.Uint8List, - TestPayloadBlobInputOutput, _i2.Uint8List, TestPayloadBlobInputOutput> { +class TestPayloadBlobOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + TestPayloadBlobInputOutput, + _i2.Uint8List, + TestPayloadBlobInputOutput + > { /// This example operation serializes a payload targeting a blob. The Blob shape is not structured content and we cannot make assumptions about what data will be sent. This test ensures only a generic "Content-Type: application/octet-stream" header is used, and that we are not treating an empty body as an empty JSON document. TestPayloadBlobOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, TestPayloadBlobInputOutput, _i2.Uint8List, - TestPayloadBlobInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + TestPayloadBlobInputOutput, + _i2.Uint8List, + TestPayloadBlobInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,11 +92,7 @@ class TestPayloadBlobOperation extends _i1.HttpOperation<_i2.Uint8List, TestPayloadBlobInputOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - TestPayloadBlobInputOutput.fromResponse( - payload, - response, - ); + ) => TestPayloadBlobInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -107,11 +116,7 @@ class TestPayloadBlobOperation extends _i1.HttpOperation<_i2.Uint8List, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart index 2c07af37b2..ec7007aac6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.test_payload_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,40 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example operation serializes a payload targeting a structure. This enforces the same requirements as TestBodyStructure but with the body specified by the @httpPayload trait. -class TestPayloadStructureOperation extends _i1.HttpOperation< - PayloadConfig, - TestPayloadStructureInputOutput, - PayloadConfig, - TestPayloadStructureInputOutput> { +class TestPayloadStructureOperation + extends + _i1.HttpOperation< + PayloadConfig, + TestPayloadStructureInputOutput, + PayloadConfig, + TestPayloadStructureInputOutput + > { /// This example operation serializes a payload targeting a structure. This enforces the same requirements as TestBodyStructure but with the body specified by the @httpPayload trait. TestPayloadStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PayloadConfig, + TestPayloadStructureInputOutput, + PayloadConfig, + TestPayloadStructureInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +92,7 @@ class TestPayloadStructureOperation extends _i1.HttpOperation< TestPayloadStructureInputOutput buildOutput( PayloadConfig? payload, _i3.AWSBaseHttpResponse response, - ) => - TestPayloadStructureInputOutput.fromResponse( - payload, - response, - ); + ) => TestPayloadStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +116,7 @@ class TestPayloadStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart index bca3ce3bec..df3fc3f1cf 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.timestamp_format_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example tests how timestamp request and response headers are serialized. -class TimestampFormatHeadersOperation extends _i1.HttpOperation< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> { +class TimestampFormatHeadersOperation + extends + _i1.HttpOperation< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > { /// This example tests how timestamp request and response headers are serialized. TimestampFormatHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo>> protocols = [ + _i1.HttpProtocol< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,40 +80,45 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< b.path = r'/TimestampFormatHeaders'; if (input.memberEpochSeconds != null) { b.headers['X-memberEpochSeconds'] = - _i1.Timestamp(input.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.memberHttpDate != null) { - b.headers['X-memberHttpDate'] = _i1.Timestamp(input.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-memberHttpDate'] = + _i1.Timestamp( + input.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.memberDateTime != null) { - b.headers['X-memberDateTime'] = _i1.Timestamp(input.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-memberDateTime'] = + _i1.Timestamp( + input.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (input.defaultFormat != null) { - b.headers['X-defaultFormat'] = _i1.Timestamp(input.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-defaultFormat'] = + _i1.Timestamp( + input.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetEpochSeconds != null) { b.headers['X-targetEpochSeconds'] = - _i1.Timestamp(input.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.targetHttpDate != null) { - b.headers['X-targetHttpDate'] = _i1.Timestamp(input.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-targetHttpDate'] = + _i1.Timestamp( + input.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetDateTime != null) { - b.headers['X-targetDateTime'] = _i1.Timestamp(input.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-targetDateTime'] = + _i1.Timestamp( + input.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } }); @@ -117,11 +129,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< TimestampFormatHeadersIo buildOutput( TimestampFormatHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.fromResponse( - payload, - response, - ); + ) => TimestampFormatHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -145,11 +153,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart index a358e5eab9..559d3d632d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.operation.unit_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,29 +20,30 @@ class UnitInputAndOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class UnitInputAndOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/UnitInputAndOutput'; - }); + b.method = 'POST'; + b.path = r'/UnitInputAndOutput'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class UnitInputAndOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart index e08d3dd0f2..9d5d9ad6e4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.rest_json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -202,11 +202,11 @@ class RestJsonProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -228,10 +228,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). @@ -244,10 +241,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. @@ -260,23 +254,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes a document as part of the payload. @@ -289,10 +278,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes a document as the entire HTTP payload. @@ -305,10 +291,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. @@ -321,10 +304,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -333,10 +313,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -348,37 +325,30 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has four possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. 4. A FooError. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -387,10 +357,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example tests httpChecksumRequired trait @@ -403,10 +370,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpEnumPayload( @@ -418,10 +382,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a blob shape in the payload. In this example, no JSON document is synthesized because the payload is not a structure or a union type. @@ -434,15 +395,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. _i2.SmithyOperation - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -451,15 +409,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. _i2.SmithyOperation - httpPayloadWithStructure( + httpPayloadWithStructure( HttpPayloadWithStructureInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -468,10 +423,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples adds headers to the input of a request and response by prefix./// @@ -487,15 +439,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Clients that perform this test extract all headers from the response. _i2.SmithyOperation - httpPrefixHeadersInResponse( + httpPrefixHeadersInResponse( HttpPrefixHeadersInResponseInput input, { _i1.AWSHttpClient? client, }) { @@ -504,10 +453,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithFloatLabels( @@ -519,10 +465,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithGreedyLabelInPath( @@ -534,10 +477,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. @@ -550,10 +490,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests serialize different timestamp formats in the URI path. @@ -566,10 +503,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithRegexLiteral( @@ -581,23 +515,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation httpResponseCode( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation httpResponseCode({ + _i1.AWSHttpClient? client, + }) { return HttpResponseCodeOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation httpStringPayload( @@ -609,24 +538,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. _i2.SmithyOperation - ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { + ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { return IgnoreQueryParamsInResponseOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. @@ -639,10 +562,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Blobs are base64 encoded @@ -655,10 +575,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -671,10 +588,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes intEnums as top level properties, in lists, sets, and maps. @@ -687,10 +601,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test case serializes JSON lists for the following cases for both input and output: 1. Normal JSON lists. 2. Normal JSON sets. 3. JSON lists of lists. 4. Lists of structures. @@ -703,10 +614,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests basic map serialization. @@ -719,10 +627,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. @@ -735,10 +640,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation uses unions for inputs and outputs. @@ -751,49 +653,38 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation malformedAcceptWithBody( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation malformedAcceptWithBody({ + _i1.AWSHttpClient? client, + }) { return MalformedAcceptWithBodyOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation - malformedAcceptWithGenericString({_i1.AWSHttpClient? client}) { + malformedAcceptWithGenericString({_i1.AWSHttpClient? client}) { return MalformedAcceptWithGenericStringOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation - malformedAcceptWithPayload({_i1.AWSHttpClient? client}) { + malformedAcceptWithPayload({_i1.AWSHttpClient? client}) { return MalformedAcceptWithPayloadOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation malformedBlob( @@ -805,10 +696,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedBoolean( @@ -820,10 +708,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedByte( @@ -835,10 +720,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithBody( @@ -850,10 +732,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithGenericString( @@ -865,10 +744,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithPayload( @@ -880,23 +756,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation malformedContentTypeWithoutBody( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation malformedContentTypeWithoutBody({ + _i1.AWSHttpClient? client, + }) { return MalformedContentTypeWithoutBodyOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithoutBodyEmptyInput( @@ -908,10 +779,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedDouble( @@ -923,10 +791,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedFloat( @@ -938,10 +803,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedInteger( @@ -953,10 +815,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedList( @@ -968,10 +827,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLong( @@ -983,10 +839,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedMap( @@ -998,10 +851,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRequestBody( @@ -1013,10 +863,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedShort( @@ -1028,10 +875,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedString( @@ -1043,10 +887,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampBodyDateTime( @@ -1058,10 +899,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampBodyDefault( @@ -1073,10 +911,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampBodyHttpDate( @@ -1088,10 +923,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampHeaderDateTime( @@ -1103,10 +935,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampHeaderDefault( @@ -1118,10 +947,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampHeaderEpoch( @@ -1133,10 +959,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampPathDefault( @@ -1148,10 +971,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampPathEpoch( @@ -1163,10 +983,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampPathHttpDate( @@ -1178,10 +995,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampQueryDefault( @@ -1193,10 +1007,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampQueryEpoch( @@ -1208,10 +1019,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampQueryHttpDate( @@ -1223,10 +1031,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedUnion( @@ -1238,10 +1043,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example ensures that mediaType strings are base64 encoded in headers. @@ -1254,10 +1056,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -1267,24 +1066,19 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -1297,10 +1091,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -1313,10 +1104,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Omits null, but serializes empty string value. @@ -1329,10 +1117,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Omits serializing empty lists. Because empty strings are serilized as \`Foo=\`, empty lists cannot also be serialized as \`Foo=\` and instead must be omitted. @@ -1345,10 +1130,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation defines a union with a Unit member. @@ -1361,10 +1143,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation defines a union that uses jsonName on some members. @@ -1377,10 +1156,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -1392,10 +1168,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -1408,10 +1181,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryParamsAsStringListMap( @@ -1423,10 +1193,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryPrecedence( @@ -1438,10 +1205,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes @@ -1454,14 +1218,11 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation - responseCodeHttpFallback( + responseCodeHttpFallback( ResponseCodeHttpFallbackInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -1470,23 +1231,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation responseCodeRequired( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation responseCodeRequired({ + _i1.AWSHttpClient? client, + }) { return ResponseCodeRequiredOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation simpleScalarProperties( @@ -1498,10 +1254,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a streaming blob shape in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. @@ -1514,10 +1267,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a streaming blob shape with a required content length in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. @@ -1530,15 +1280,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a streaming media-typed blob shape in the request body. This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. _i2.SmithyOperation - streamingTraitsWithMediaType( + streamingTraitsWithMediaType( StreamingTraitsWithMediaTypeInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -1547,10 +1294,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a structure in the HTTP body. It should ensure Content-Type: application/json is used in all requests and that an "empty" body is an empty JSON document ({}). @@ -1563,10 +1307,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a request without an HTTP body. These tests are to ensure we do not attach a body or related headers (Content-Length, Content-Type) to operations that semantically cannot produce an HTTP body. @@ -1579,10 +1320,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a payload targeting a blob. The Blob shape is not structured content and we cannot make assumptions about what data will be sent. This test ensures only a generic "Content-Type: application/octet-stream" header is used, and that we are not treating an empty body as an empty JSON document. @@ -1595,10 +1333,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a payload targeting a structure. This enforces the same requirements as TestBodyStructure but with the body specified by the @httpPayload trait. @@ -1611,10 +1346,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example tests how timestamp request and response headers are serialized. @@ -1627,10 +1359,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test is similar to NoInputAndNoOutput, but uses explicit Unit types. @@ -1640,9 +1369,6 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart index 613c95051b..2f265639b3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_protocol.rest_json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -138,66 +138,26 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/ConstantQueryString/?foo=bar&hello', service.constantQueryString, ); - router.add( - 'POST', - r'/DatetimeOffsets', - service.datetimeOffsets, - ); - router.add( - 'PUT', - r'/DocumentType', - service.documentType, - ); - router.add( - 'PUT', - r'/DocumentTypeAsPayload', - service.documentTypeAsPayload, - ); + router.add('POST', r'/DatetimeOffsets', service.datetimeOffsets); + router.add('PUT', r'/DocumentType', service.documentType); + router.add('PUT', r'/DocumentTypeAsPayload', service.documentTypeAsPayload); router.add( 'POST', r'/EmptyInputAndEmptyOutput', service.emptyInputAndEmptyOutput, ); - router.add( - 'POST', - r'/EndpointOperation', - service.endpointOperation, - ); + router.add('POST', r'/EndpointOperation', service.endpointOperation); router.add( 'POST', r'/EndpointWithHostLabelOperation', service.endpointWithHostLabelOperation, ); - router.add( - 'POST', - r'/FractionalSeconds', - service.fractionalSeconds, - ); - router.add( - 'PUT', - r'/GreetingWithErrors', - service.greetingWithErrors, - ); - router.add( - 'GET', - r'/HostWithPathOperation', - service.hostWithPathOperation, - ); - router.add( - 'POST', - r'/HttpChecksumRequired', - service.httpChecksumRequired, - ); - router.add( - 'POST', - r'/EnumPayload', - service.httpEnumPayload, - ); - router.add( - 'POST', - r'/HttpPayloadTraits', - service.httpPayloadTraits, - ); + router.add('POST', r'/FractionalSeconds', service.fractionalSeconds); + router.add('PUT', r'/GreetingWithErrors', service.greetingWithErrors); + router.add('GET', r'/HostWithPathOperation', service.hostWithPathOperation); + router.add('POST', r'/HttpChecksumRequired', service.httpChecksumRequired); + router.add('POST', r'/EnumPayload', service.httpEnumPayload); + router.add('POST', r'/HttpPayloadTraits', service.httpPayloadTraits); router.add( 'POST', r'/HttpPayloadTraitsWithMediaType', @@ -208,11 +168,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/HttpPayloadWithStructure', service.httpPayloadWithStructure, ); - router.add( - 'GET', - r'/HttpPrefixHeaders', - service.httpPrefixHeaders, - ); + router.add('GET', r'/HttpPrefixHeaders', service.httpPrefixHeaders); router.add( 'GET', r'/HttpPrefixHeadersResponse', @@ -243,16 +199,8 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/ReDosLiteral//(a+)+', service.httpRequestWithRegexLiteral, ); - router.add( - 'PUT', - r'/HttpResponseCode', - service.httpResponseCode, - ); - router.add( - 'POST', - r'/StringPayload', - service.httpStringPayload, - ); + router.add('PUT', r'/HttpResponseCode', service.httpResponseCode); + router.add('POST', r'/StringPayload', service.httpStringPayload); router.add( 'GET', r'/IgnoreQueryParamsInResponse', @@ -263,41 +211,13 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/InputAndOutputWithHeaders', service.inputAndOutputWithHeaders, ); - router.add( - 'POST', - r'/JsonBlobs', - service.jsonBlobs, - ); - router.add( - 'PUT', - r'/JsonEnums', - service.jsonEnums, - ); - router.add( - 'PUT', - r'/JsonIntEnums', - service.jsonIntEnums, - ); - router.add( - 'PUT', - r'/JsonLists', - service.jsonLists, - ); - router.add( - 'POST', - r'/JsonMaps', - service.jsonMaps, - ); - router.add( - 'POST', - r'/JsonTimestamps', - service.jsonTimestamps, - ); - router.add( - 'PUT', - r'/JsonUnions', - service.jsonUnions, - ); + router.add('POST', r'/JsonBlobs', service.jsonBlobs); + router.add('PUT', r'/JsonEnums', service.jsonEnums); + router.add('PUT', r'/JsonIntEnums', service.jsonIntEnums); + router.add('PUT', r'/JsonLists', service.jsonLists); + router.add('POST', r'/JsonMaps', service.jsonMaps); + router.add('POST', r'/JsonTimestamps', service.jsonTimestamps); + router.add('PUT', r'/JsonUnions', service.jsonUnions); router.add( 'POST', r'/MalformedAcceptWithBody', @@ -313,21 +233,13 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/MalformedAcceptWithPayload', service.malformedAcceptWithPayload, ); - router.add( - 'POST', - r'/MalformedBlob', - service.malformedBlob, - ); + router.add('POST', r'/MalformedBlob', service.malformedBlob); router.add( 'POST', r'/MalformedBoolean/', service.malformedBoolean, ); - router.add( - 'POST', - r'/MalformedByte/', - service.malformedByte, - ); + router.add('POST', r'/MalformedByte/', service.malformedByte); router.add( 'POST', r'/MalformedContentTypeWithBody', @@ -368,36 +280,16 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/MalformedInteger/', service.malformedInteger, ); - router.add( - 'POST', - r'/MalformedList', - service.malformedList, - ); - router.add( - 'POST', - r'/MalformedLong/', - service.malformedLong, - ); - router.add( - 'POST', - r'/MalformedMap', - service.malformedMap, - ); - router.add( - 'POST', - r'/MalformedRequestBody', - service.malformedRequestBody, - ); + router.add('POST', r'/MalformedList', service.malformedList); + router.add('POST', r'/MalformedLong/', service.malformedLong); + router.add('POST', r'/MalformedMap', service.malformedMap); + router.add('POST', r'/MalformedRequestBody', service.malformedRequestBody); router.add( 'POST', r'/MalformedShort/', service.malformedShort, ); - router.add( - 'POST', - r'/MalformedString', - service.malformedString, - ); + router.add('POST', r'/MalformedString', service.malformedString); router.add( 'POST', r'/MalformedTimestampBodyDateTime', @@ -458,26 +350,10 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/MalformedTimestampQueryHttpDate', service.malformedTimestampQueryHttpDate, ); - router.add( - 'POST', - r'/MalformedUnion', - service.malformedUnion, - ); - router.add( - 'GET', - r'/MediaTypeHeader', - service.mediaTypeHeader, - ); - router.add( - 'POST', - r'/NoInputAndNoOutput', - service.noInputAndNoOutput, - ); - router.add( - 'POST', - r'/NoInputAndOutputOutput', - service.noInputAndOutput, - ); + router.add('POST', r'/MalformedUnion', service.malformedUnion); + router.add('GET', r'/MediaTypeHeader', service.mediaTypeHeader); + router.add('POST', r'/NoInputAndNoOutput', service.noInputAndNoOutput); + router.add('POST', r'/NoInputAndOutputOutput', service.noInputAndOutput); router.add( 'GET', r'/NullAndEmptyHeadersClient', @@ -498,11 +374,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/OmitsSerializingEmptyLists', service.omitsSerializingEmptyLists, ); - router.add( - 'POST', - r'/PostPlayerAction', - service.postPlayerAction, - ); + router.add('POST', r'/PostPlayerAction', service.postPlayerAction); router.add( 'POST', r'/PostUnionWithJsonName', @@ -518,41 +390,21 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/QueryIdempotencyTokenAutoFill', service.queryIdempotencyTokenAutoFill, ); - router.add( - 'POST', - r'/StringListMap', - service.queryParamsAsStringListMap, - ); - router.add( - 'POST', - r'/Precedence', - service.queryPrecedence, - ); - router.add( - 'PUT', - r'/RecursiveShapes', - service.recursiveShapes, - ); + router.add('POST', r'/StringListMap', service.queryParamsAsStringListMap); + router.add('POST', r'/Precedence', service.queryPrecedence); + router.add('PUT', r'/RecursiveShapes', service.recursiveShapes); router.add( 'GET', r'/responseCodeHttpFallback', service.responseCodeHttpFallback, ); - router.add( - 'GET', - r'/responseCodeRequired', - service.responseCodeRequired, - ); + router.add('GET', r'/responseCodeRequired', service.responseCodeRequired); router.add( 'PUT', r'/SimpleScalarProperties', service.simpleScalarProperties, ); - router.add( - 'POST', - r'/StreamingTraits', - service.streamingTraits, - ); + router.add('POST', r'/StreamingTraits', service.streamingTraits); router.add( 'POST', r'/StreamingTraitsRequireLength', @@ -563,36 +415,16 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/StreamingTraitsWithMediaType', service.streamingTraitsWithMediaType, ); - router.add( - 'POST', - r'/body', - service.testBodyStructure, - ); - router.add( - 'GET', - r'/no_payload', - service.testNoPayload, - ); - router.add( - 'POST', - r'/blob_payload', - service.testPayloadBlob, - ); - router.add( - 'POST', - r'/payload', - service.testPayloadStructure, - ); + router.add('POST', r'/body', service.testBodyStructure); + router.add('GET', r'/no_payload', service.testNoPayload); + router.add('POST', r'/blob_payload', service.testPayloadBlob); + router.add('POST', r'/payload', service.testPayloadStructure); router.add( 'POST', r'/TimestampFormatHeaders', service.timestampFormatHeaders, ); - router.add( - 'POST', - r'/UnitInputAndOutput', - service.unitInputAndOutput, - ); + router.add('POST', r'/UnitInputAndOutput', service.unitInputAndOutput); return router; }(); @@ -624,10 +456,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { EmptyInputAndEmptyOutputInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelOperation( HostLabelInput input, _i1.Context context, @@ -657,7 +486,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, _i1.Context context, ); @@ -742,10 +571,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - malformedAcceptWithGenericString( - _i1.Unit input, - _i1.Context context, - ); + malformedAcceptWithGenericString(_i1.Unit input, _i1.Context context); _i3.Future malformedAcceptWithPayload( _i1.Unit input, _i1.Context context, @@ -874,10 +700,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { MediaTypeHeaderInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> noInputAndNoOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> noInputAndNoOutput(_i1.Unit input, _i1.Context context); _i3.Future noInputAndOutput( _i1.Unit input, _i1.Context context, @@ -947,7 +770,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - streamingTraitsWithMediaType( + streamingTraitsWithMediaType( StreamingTraitsWithMediaTypeInputOutput input, _i1.Context context, ); @@ -971,10 +794,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { TimestampFormatHeadersIo input, _i1.Context context, ); - _i3.Future<_i1.Unit> unitInputAndOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> unitInputAndOutput(_i1.Unit input, _i1.Context context); _i3.Future<_i4.Response> call(_i4.Request request) => _router(request); } @@ -986,771 +806,1013 @@ class _RestJsonProtocolServer final RestJsonProtocolServerBase service; late final _i1.HttpProtocol< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> _allQueryStringTypesProtocol = _i2.RestJson1Protocol( + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + _allQueryStringTypesProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> _constantAndVariableQueryStringProtocol = _i2.RestJson1Protocol( + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantAndVariableQueryStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> _constantQueryStringProtocol = _i2.RestJson1Protocol( + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantQueryStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput> _datetimeOffsetsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + _datetimeOffsetsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - DocumentTypeInputOutput, - DocumentTypeInputOutput, - DocumentTypeInputOutput, - DocumentTypeInputOutput> _documentTypeProtocol = _i2.RestJson1Protocol( + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput + > + _documentTypeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i5.JsonObject, DocumentTypeAsPayloadInputOutput, - _i5.JsonObject, DocumentTypeAsPayloadInputOutput> - _documentTypeAsPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i5.JsonObject, + DocumentTypeAsPayloadInputOutput, + _i5.JsonObject, + DocumentTypeAsPayloadInputOutput + > + _documentTypeAsPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> _emptyInputAndEmptyOutputProtocol = - _i2.RestJson1Protocol( + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + _emptyInputAndEmptyOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.RestJson1Protocol( + _endpointOperationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + HostLabelInput, + HostLabelInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput> _fractionalSecondsProtocol = - _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + _fractionalSecondsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> - _greetingWithErrorsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _hostWithPathOperationProtocol = _i2.RestJson1Protocol( + _hostWithPathOperationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput> _httpChecksumRequiredProtocol = - _i2.RestJson1Protocol( + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput + > + _httpChecksumRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _httpEnumPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + StringEnum, + EnumPayloadInput, + StringEnum, + EnumPayloadInput + > + _httpEnumPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i6.Uint8List, HttpPayloadTraitsInputOutput, - _i6.Uint8List, HttpPayloadTraitsInputOutput> - _httpPayloadTraitsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i6.Uint8List, + HttpPayloadTraitsInputOutput, + _i6.Uint8List, + HttpPayloadTraitsInputOutput + > + _httpPayloadTraitsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i6.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i6.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> - _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( + _i6.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i6.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'text/plain', ); late final _i1.HttpProtocol< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> - _httpPayloadWithStructureProtocol = _i2.RestJson1Protocol( + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + _httpPayloadWithStructureProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpPrefixHeadersInputPayload, - HttpPrefixHeadersInput, - HttpPrefixHeadersOutputPayload, - HttpPrefixHeadersOutput> _httpPrefixHeadersProtocol = - _i2.RestJson1Protocol( + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInput, + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutput + > + _httpPrefixHeadersProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseOutputPayload, - HttpPrefixHeadersInResponseOutput> - _httpPrefixHeadersInResponseProtocol = _i2.RestJson1Protocol( + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutput + > + _httpPrefixHeadersInResponseProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithFloatLabelsProtocol = _i2.RestJson1Protocol( + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithFloatLabelsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _httpRequestWithGreedyLabelInPathProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithGreedyLabelInPathProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsProtocol = _i2.RestJson1Protocol( + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsAndTimestampFormatProtocol = - _i2.RestJson1Protocol( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsAndTimestampFormatProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithRegexLiteralInputPayload, - HttpRequestWithRegexLiteralInput, - _i1.Unit, - _i1.Unit> _httpRequestWithRegexLiteralProtocol = _i2.RestJson1Protocol( + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithRegexLiteralProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput> _httpResponseCodeProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + _httpResponseCodeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _httpStringPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + String, + StringPayloadInput, + String, + StringPayloadInput + > + _httpStringPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - IgnoreQueryParamsInResponseOutput, IgnoreQueryParamsInResponseOutput> - _ignoreQueryParamsInResponseProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + _ignoreQueryParamsInResponseProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> _inputAndOutputWithHeadersProtocol = - _i2.RestJson1Protocol( + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + _inputAndOutputWithHeadersProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonBlobsInputOutput, - JsonBlobsInputOutput, - JsonBlobsInputOutput, - JsonBlobsInputOutput> _jsonBlobsProtocol = _i2.RestJson1Protocol( + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput + > + _jsonBlobsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput> _jsonEnumsProtocol = _i2.RestJson1Protocol( + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + _jsonEnumsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput> _jsonIntEnumsProtocol = _i2.RestJson1Protocol( + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + _jsonIntEnumsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonListsInputOutput, - JsonListsInputOutput, - JsonListsInputOutput, - JsonListsInputOutput> _jsonListsProtocol = _i2.RestJson1Protocol( + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput + > + _jsonListsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonMapsInputOutput, - JsonMapsInputOutput, - JsonMapsInputOutput, - JsonMapsInputOutput> _jsonMapsProtocol = _i2.RestJson1Protocol( + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput + > + _jsonMapsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput> _jsonTimestampsProtocol = - _i2.RestJson1Protocol( + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput + > + _jsonTimestampsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - UnionInputOutput, - UnionInputOutput, - UnionInputOutput, - UnionInputOutput> _jsonUnionsProtocol = _i2.RestJson1Protocol( + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + _jsonUnionsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> - _malformedAcceptWithBodyProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingStruct, + GreetingStruct + > + _malformedAcceptWithBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, String, - MalformedAcceptWithGenericStringOutput> - _malformedAcceptWithGenericStringProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + String, + MalformedAcceptWithGenericStringOutput + > + _malformedAcceptWithGenericStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i6.Uint8List, - MalformedAcceptWithPayloadOutput> - _malformedAcceptWithPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + _i6.Uint8List, + MalformedAcceptWithPayloadOutput + > + _malformedAcceptWithPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedBlobProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedBlobInput, + MalformedBlobInput, + _i1.Unit, + _i1.Unit + > + _malformedBlobProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedBooleanInputPayload, - MalformedBooleanInput, - _i1.Unit, - _i1.Unit> _malformedBooleanProtocol = _i2.RestJson1Protocol( + MalformedBooleanInputPayload, + MalformedBooleanInput, + _i1.Unit, + _i1.Unit + > + _malformedBooleanProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedByteProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedByteInputPayload, + MalformedByteInput, + _i1.Unit, + _i1.Unit + > + _malformedByteProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedContentTypeWithBodyProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + GreetingStruct, + GreetingStruct, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedContentTypeWithGenericStringProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + String, + MalformedContentTypeWithGenericStringInput, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithGenericStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i6.Uint8List, - MalformedContentTypeWithPayloadInput, _i1.Unit, _i1.Unit> - _malformedContentTypeWithPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i6.Uint8List, + MalformedContentTypeWithPayloadInput, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'image/jpeg', ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _malformedContentTypeWithoutBodyProtocol = _i2.RestJson1Protocol( + _malformedContentTypeWithoutBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - MalformedContentTypeWithoutBodyEmptyInputInput, - _i1.Unit, - _i1.Unit> _malformedContentTypeWithoutBodyEmptyInputProtocol = - _i2.RestJson1Protocol( + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInput, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithoutBodyEmptyInputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedDoubleProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedDoubleInputPayload, + MalformedDoubleInput, + _i1.Unit, + _i1.Unit + > + _malformedDoubleProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedFloatProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedFloatInputPayload, + MalformedFloatInput, + _i1.Unit, + _i1.Unit + > + _malformedFloatProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedIntegerInputPayload, - MalformedIntegerInput, - _i1.Unit, - _i1.Unit> _malformedIntegerProtocol = _i2.RestJson1Protocol( + MalformedIntegerInputPayload, + MalformedIntegerInput, + _i1.Unit, + _i1.Unit + > + _malformedIntegerProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedListProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedListInput, + MalformedListInput, + _i1.Unit, + _i1.Unit + > + _malformedListProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedLongProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedLongInputPayload, + MalformedLongInput, + _i1.Unit, + _i1.Unit + > + _malformedLongProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedMapProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedMapInput, + MalformedMapInput, + _i1.Unit, + _i1.Unit + > + _malformedMapProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedRequestBodyInput, - MalformedRequestBodyInput, - _i1.Unit, - _i1.Unit> _malformedRequestBodyProtocol = _i2.RestJson1Protocol( + MalformedRequestBodyInput, + MalformedRequestBodyInput, + _i1.Unit, + _i1.Unit + > + _malformedRequestBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedShortProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedShortInputPayload, + MalformedShortInput, + _i1.Unit, + _i1.Unit + > + _malformedShortProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedStringProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedStringInputPayload, + MalformedStringInput, + _i1.Unit, + _i1.Unit + > + _malformedStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampBodyDateTimeInput, - MalformedTimestampBodyDateTimeInput, - _i1.Unit, - _i1.Unit> _malformedTimestampBodyDateTimeProtocol = _i2.RestJson1Protocol( + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampBodyDateTimeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampBodyDefaultInput, - MalformedTimestampBodyDefaultInput, - _i1.Unit, - _i1.Unit> _malformedTimestampBodyDefaultProtocol = _i2.RestJson1Protocol( + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampBodyDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampBodyHttpDateInput, - MalformedTimestampBodyHttpDateInput, - _i1.Unit, - _i1.Unit> _malformedTimestampBodyHttpDateProtocol = _i2.RestJson1Protocol( + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampBodyHttpDateProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedTimestampHeaderDateTimeProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampHeaderDateTimeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedTimestampHeaderDefaultProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampHeaderDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampHeaderEpochInputPayload, - MalformedTimestampHeaderEpochInput, - _i1.Unit, - _i1.Unit> _malformedTimestampHeaderEpochProtocol = _i2.RestJson1Protocol( + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampHeaderEpochProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampPathDefaultInputPayload, - MalformedTimestampPathDefaultInput, - _i1.Unit, - _i1.Unit> _malformedTimestampPathDefaultProtocol = _i2.RestJson1Protocol( + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampPathDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampPathEpochInputPayload, - MalformedTimestampPathEpochInput, - _i1.Unit, - _i1.Unit> _malformedTimestampPathEpochProtocol = _i2.RestJson1Protocol( + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampPathEpochProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampPathHttpDateInputPayload, - MalformedTimestampPathHttpDateInput, - _i1.Unit, - _i1.Unit> _malformedTimestampPathHttpDateProtocol = _i2.RestJson1Protocol( + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampPathHttpDateProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampQueryDefaultInputPayload, - MalformedTimestampQueryDefaultInput, - _i1.Unit, - _i1.Unit> _malformedTimestampQueryDefaultProtocol = _i2.RestJson1Protocol( + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampQueryDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampQueryEpochInputPayload, - MalformedTimestampQueryEpochInput, - _i1.Unit, - _i1.Unit> _malformedTimestampQueryEpochProtocol = _i2.RestJson1Protocol( + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampQueryEpochProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedTimestampQueryHttpDateProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampQueryHttpDateProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedUnionProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedUnionInput, + MalformedUnionInput, + _i1.Unit, + _i1.Unit + > + _malformedUnionProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MediaTypeHeaderInputPayload, - MediaTypeHeaderInput, - MediaTypeHeaderOutputPayload, - MediaTypeHeaderOutput> _mediaTypeHeaderProtocol = _i2.RestJson1Protocol( + MediaTypeHeaderInputPayload, + MediaTypeHeaderInput, + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutput + > + _mediaTypeHeaderProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _noInputAndNoOutputProtocol = _i2.RestJson1Protocol( + _noInputAndNoOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput> _noInputAndOutputProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + _noInputAndOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersClientProtocol = - _i2.RestJson1Protocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersClientProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersServerProtocol = - _i2.RestJson1Protocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersServerProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> _omitsNullSerializesEmptyStringProtocol = _i2.RestJson1Protocol( + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + _omitsNullSerializesEmptyStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - OmitsSerializingEmptyListsInputPayload, - OmitsSerializingEmptyListsInput, - _i1.Unit, - _i1.Unit> _omitsSerializingEmptyListsProtocol = _i2.RestJson1Protocol( + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInput, + _i1.Unit, + _i1.Unit + > + _omitsSerializingEmptyListsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PostPlayerActionInput, - PostPlayerActionInput, - PostPlayerActionOutput, - PostPlayerActionOutput> _postPlayerActionProtocol = _i2.RestJson1Protocol( + PostPlayerActionInput, + PostPlayerActionInput, + PostPlayerActionOutput, + PostPlayerActionOutput + > + _postPlayerActionProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PostUnionWithJsonNameInput, - PostUnionWithJsonNameInput, - PostUnionWithJsonNameOutput, - PostUnionWithJsonNameOutput> _postUnionWithJsonNameProtocol = - _i2.RestJson1Protocol( + PostUnionWithJsonNameInput, + PostUnionWithJsonNameInput, + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutput + > + _postUnionWithJsonNameProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.RestJson1Protocol( + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> _queryIdempotencyTokenAutoFillProtocol = _i2.RestJson1Protocol( + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + _queryIdempotencyTokenAutoFillProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> _queryParamsAsStringListMapProtocol = _i2.RestJson1Protocol( + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + _queryParamsAsStringListMapProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _queryPrecedenceProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + _queryPrecedenceProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> _recursiveShapesProtocol = - _i2.RestJson1Protocol( + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + _recursiveShapesProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput> - _responseCodeHttpFallbackProtocol = _i2.RestJson1Protocol( + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput + > + _responseCodeHttpFallbackProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - ResponseCodeRequiredOutputPayload, ResponseCodeRequiredOutput> - _responseCodeRequiredProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutput + > + _responseCodeRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.RestJson1Protocol( + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i3.Stream>, StreamingTraitsInputOutput, - _i3.Stream>, StreamingTraitsInputOutput> - _streamingTraitsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i3.Stream>, + StreamingTraitsInputOutput, + _i3.Stream>, + StreamingTraitsInputOutput + > + _streamingTraitsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i3.Stream>, - StreamingTraitsRequireLengthInput, - _i1.Unit, - _i1.Unit> _streamingTraitsRequireLengthProtocol = _i2.RestJson1Protocol( + _i3.Stream>, + StreamingTraitsRequireLengthInput, + _i1.Unit, + _i1.Unit + > + _streamingTraitsRequireLengthProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i3.Stream>, - StreamingTraitsWithMediaTypeInputOutput, - _i3.Stream>, - StreamingTraitsWithMediaTypeInputOutput> - _streamingTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( + _i3.Stream>, + StreamingTraitsWithMediaTypeInputOutput, + _i3.Stream>, + StreamingTraitsWithMediaTypeInputOutput + > + _streamingTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'text/plain', ); late final _i1.HttpProtocol< - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput> _testBodyStructureProtocol = - _i2.RestJson1Protocol( + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput + > + _testBodyStructureProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput> _testNoPayloadProtocol = _i2.RestJson1Protocol( + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput + > + _testNoPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i6.Uint8List, TestPayloadBlobInputOutput, - _i6.Uint8List, TestPayloadBlobInputOutput> _testPayloadBlobProtocol = - _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i6.Uint8List, + TestPayloadBlobInputOutput, + _i6.Uint8List, + TestPayloadBlobInputOutput + > + _testPayloadBlobProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _testPayloadStructureProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + PayloadConfig, + TestPayloadStructureInputOutput, + PayloadConfig, + TestPayloadStructureInputOutput + > + _testPayloadStructureProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> _timestampFormatHeadersProtocol = - _i2.RestJson1Protocol( + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + _timestampFormatHeadersProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _unitInputAndOutputProtocol = _i2.RestJson1Protocol( + _unitInputAndOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -1763,25 +1825,20 @@ class _RestJsonProtocolServer try { final payload = (await _allQueryStringTypesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(AllQueryStringTypesInputPayload), - ) as AllQueryStringTypesInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(AllQueryStringTypesInputPayload), + ) + as AllQueryStringTypesInputPayload); final input = AllQueryStringTypesInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.allQueryStringTypes( - input, - context, - ); + final output = await service.allQueryStringTypes(input, context); const statusCode = 200; final body = await _allQueryStringTypesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1789,27 +1846,27 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> constantAndVariableQueryString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _constantAndVariableQueryStringProtocol.contentType; try { - final payload = (await _constantAndVariableQueryStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(ConstantAndVariableQueryStringInputPayload), - ) as ConstantAndVariableQueryStringInputPayload); + final payload = + (await _constantAndVariableQueryStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + ConstantAndVariableQueryStringInputPayload, + ), + ) + as ConstantAndVariableQueryStringInputPayload); final input = ConstantAndVariableQueryStringInput.fromRequest( payload, awsRequest, @@ -1822,22 +1879,16 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _constantAndVariableQueryStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1852,25 +1903,20 @@ class _RestJsonProtocolServer try { final payload = (await _constantQueryStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ConstantQueryStringInputPayload), - ) as ConstantQueryStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(ConstantQueryStringInputPayload), + ) + as ConstantQueryStringInputPayload); final input = ConstantQueryStringInput.fromRequest( payload, awsRequest, labels: {'hello': hello}, ); - final output = await service.constantQueryString( - input, - context, - ); + final output = await service.constantQueryString(input, context); const statusCode = 200; final body = await _constantQueryStringProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1878,10 +1924,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1893,21 +1936,18 @@ class _RestJsonProtocolServer try { final payload = (await _datetimeOffsetsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.datetimeOffsets( - input, - context, - ); + final output = await service.datetimeOffsets(input, context); const statusCode = 200; final body = await _datetimeOffsetsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DatetimeOffsetsOutput, - [FullType(DatetimeOffsetsOutput)], - ), + specifiedType: const FullType(DatetimeOffsetsOutput, [ + FullType(DatetimeOffsetsOutput), + ]), ); return _i4.Response( statusCode, @@ -1915,10 +1955,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1928,26 +1965,24 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _documentTypeProtocol.contentType; try { - final payload = (await _documentTypeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(DocumentTypeInputOutput), - ) as DocumentTypeInputOutput); + final payload = + (await _documentTypeProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(DocumentTypeInputOutput), + ) + as DocumentTypeInputOutput); final input = DocumentTypeInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.documentType( - input, - context, - ); + final output = await service.documentType(input, context); const statusCode = 200; final body = await _documentTypeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DocumentTypeInputOutput, - [FullType(DocumentTypeInputOutput)], - ), + specifiedType: const FullType(DocumentTypeInputOutput, [ + FullType(DocumentTypeInputOutput), + ]), ); return _i4.Response( statusCode, @@ -1955,10 +1990,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1970,37 +2002,31 @@ class _RestJsonProtocolServer try { final payload = (await _documentTypeAsPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.JsonObject), - ) as _i5.JsonObject?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.JsonObject), + ) + as _i5.JsonObject?); final input = DocumentTypeAsPayloadInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.documentTypeAsPayload( - input, - context, - ); + final output = await service.documentTypeAsPayload(input, context); const statusCode = 200; - final body = - await _documentTypeAsPayloadProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - DocumentTypeAsPayloadInputOutput, - [FullType.nullable(_i5.JsonObject)], - ), - ); + final body = await _documentTypeAsPayloadProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(DocumentTypeAsPayloadInputOutput, [ + FullType.nullable(_i5.JsonObject), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2012,37 +2038,31 @@ class _RestJsonProtocolServer try { final payload = (await _emptyInputAndEmptyOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EmptyInputAndEmptyOutputInput), - ) as EmptyInputAndEmptyOutputInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(EmptyInputAndEmptyOutputInput), + ) + as EmptyInputAndEmptyOutputInput); final input = EmptyInputAndEmptyOutputInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.emptyInputAndEmptyOutput( - input, - context, - ); + final output = await service.emptyInputAndEmptyOutput(input, context); const statusCode = 200; - final body = - await _emptyInputAndEmptyOutputProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - EmptyInputAndEmptyOutputOutput, - [FullType(EmptyInputAndEmptyOutputOutput)], - ), - ); + final body = await _emptyInputAndEmptyOutputProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(EmptyInputAndEmptyOutputOutput, [ + FullType(EmptyInputAndEmptyOutputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2054,21 +2074,16 @@ class _RestJsonProtocolServer try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -2076,31 +2091,26 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelInput), - ) as HostLabelInput); - final input = HostLabelInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelInput), + ) + as HostLabelInput); + final input = HostLabelInput.fromRequest(payload, awsRequest, labels: {}); final output = await service.endpointWithHostLabelOperation( input, context, @@ -2108,22 +2118,16 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2135,21 +2139,18 @@ class _RestJsonProtocolServer try { final payload = (await _fractionalSecondsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.fractionalSeconds( - input, - context, - ); + final output = await service.fractionalSeconds(input, context); const statusCode = 200; final body = await _fractionalSecondsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FractionalSecondsOutput, - [FullType(FractionalSecondsOutput)], - ), + specifiedType: const FullType(FractionalSecondsOutput, [ + FullType(FractionalSecondsOutput), + ]), ); return _i4.Response( statusCode, @@ -2157,10 +2158,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2172,21 +2170,18 @@ class _RestJsonProtocolServer try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutputPayload)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2197,10 +2192,9 @@ class _RestJsonProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ComplexError'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexErrorPayload)], - ), + specifiedType: const FullType(ComplexError, [ + FullType(ComplexErrorPayload), + ]), ); const statusCode = 403; return _i4.Response( @@ -2212,10 +2206,7 @@ class _RestJsonProtocolServer context.response.headers['X-Amzn-Errortype'] = 'FooError'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - FooError, - [FullType(FooError)], - ), + specifiedType: const FullType(FooError, [FullType(FooError)]), ); const statusCode = 500; return _i4.Response( @@ -2227,10 +2218,9 @@ class _RestJsonProtocolServer context.response.headers['X-Amzn-Errortype'] = 'InvalidGreeting'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -2239,10 +2229,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2254,33 +2241,25 @@ class _RestJsonProtocolServer try { final payload = (await _hostWithPathOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.hostWithPathOperation( - input, - context, - ); + final output = await service.hostWithPathOperation(input, context); const statusCode = 200; - final body = - await _hostWithPathOperationProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _hostWithPathOperationProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2292,25 +2271,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpChecksumRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpChecksumRequiredInputOutput), - ) as HttpChecksumRequiredInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(HttpChecksumRequiredInputOutput), + ) + as HttpChecksumRequiredInputOutput); final input = HttpChecksumRequiredInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpChecksumRequired( - input, - context, - ); + final output = await service.httpChecksumRequired(input, context); const statusCode = 200; final body = await _httpChecksumRequiredProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpChecksumRequiredInputOutput, - [FullType(HttpChecksumRequiredInputOutput)], - ), + specifiedType: const FullType(HttpChecksumRequiredInputOutput, [ + FullType(HttpChecksumRequiredInputOutput), + ]), ); return _i4.Response( statusCode, @@ -2318,10 +2294,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2333,25 +2306,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpEnumPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(StringEnum), - ) as StringEnum?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(StringEnum), + ) + as StringEnum?); final input = EnumPayloadInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpEnumPayload( - input, - context, - ); + final output = await service.httpEnumPayload(input, context); const statusCode = 200; final body = await _httpEnumPayloadProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - EnumPayloadInput, - [FullType.nullable(StringEnum)], - ), + specifiedType: const FullType(EnumPayloadInput, [ + FullType.nullable(StringEnum), + ]), ); return _i4.Response( statusCode, @@ -2359,10 +2329,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2374,28 +2341,25 @@ class _RestJsonProtocolServer try { final payload = (await _httpPayloadTraitsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = HttpPayloadTraitsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadTraits( - input, - context, - ); + final output = await service.httpPayloadTraits(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _httpPayloadTraitsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPayloadTraitsInputOutput, - [FullType.nullable(_i6.Uint8List)], - ), + specifiedType: const FullType(HttpPayloadTraitsInputOutput, [ + FullType.nullable(_i6.Uint8List), + ]), ); return _i4.Response( statusCode, @@ -2403,26 +2367,25 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadTraitsWithMediaType( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadTraitsWithMediaTypeProtocol.contentType; try { - final payload = (await _httpPayloadTraitsWithMediaTypeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + final payload = + (await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = HttpPayloadTraitsWithMediaTypeInputOutput.fromRequest( payload, awsRequest, @@ -2438,22 +2401,19 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - HttpPayloadTraitsWithMediaTypeInputOutput, - [FullType.nullable(_i6.Uint8List)], - ), - ); + output, + specifiedType: const FullType( + HttpPayloadTraitsWithMediaTypeInputOutput, + [FullType.nullable(_i6.Uint8List)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2465,37 +2425,31 @@ class _RestJsonProtocolServer try { final payload = (await _httpPayloadWithStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(NestedPayload), - ) as NestedPayload?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(NestedPayload), + ) + as NestedPayload?); final input = HttpPayloadWithStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithStructure( - input, - context, - ); + final output = await service.httpPayloadWithStructure(input, context); const statusCode = 200; - final body = - await _httpPayloadWithStructureProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithStructureInputOutput, - [FullType.nullable(NestedPayload)], - ), - ); + final body = await _httpPayloadWithStructureProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPayloadWithStructureInputOutput, [ + FullType.nullable(NestedPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2507,25 +2461,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpPrefixHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpPrefixHeadersInputPayload), - ) as HttpPrefixHeadersInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(HttpPrefixHeadersInputPayload), + ) + as HttpPrefixHeadersInputPayload); final input = HttpPrefixHeadersInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPrefixHeaders( - input, - context, - ); + final output = await service.httpPrefixHeaders(input, context); const statusCode = 200; final body = await _httpPrefixHeadersProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPrefixHeadersOutput, - [FullType(HttpPrefixHeadersOutputPayload)], - ), + specifiedType: const FullType(HttpPrefixHeadersOutput, [ + FullType(HttpPrefixHeadersOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2533,53 +2484,48 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPrefixHeadersInResponse( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPrefixHeadersInResponseProtocol.contentType; try { - final payload = (await _httpPrefixHeadersInResponseProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpPrefixHeadersInResponseInput), - ) as HttpPrefixHeadersInResponseInput); + final payload = + (await _httpPrefixHeadersInResponseProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpPrefixHeadersInResponseInput, + ), + ) + as HttpPrefixHeadersInResponseInput); final input = HttpPrefixHeadersInResponseInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPrefixHeadersInResponse( - input, - context, - ); + final output = await service.httpPrefixHeadersInResponse(input, context); const statusCode = 200; - final body = - await _httpPrefixHeadersInResponseProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPrefixHeadersInResponseOutput, - [FullType(HttpPrefixHeadersInResponseOutputPayload)], - ), - ); + final body = await _httpPrefixHeadersInResponseProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPrefixHeadersInResponseOutput, [ + FullType(HttpPrefixHeadersInResponseOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2595,40 +2541,31 @@ class _RestJsonProtocolServer try { final payload = (await _httpRequestWithFloatLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithFloatLabelsInputPayload), - ) as HttpRequestWithFloatLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithFloatLabelsInputPayload, + ), + ) + as HttpRequestWithFloatLabelsInputPayload); final input = HttpRequestWithFloatLabelsInput.fromRequest( payload, awsRequest, - labels: { - 'float': float, - 'double': double, - }, - ); - final output = await service.httpRequestWithFloatLabels( - input, - context, + labels: {'float': float, 'double': double}, ); + final output = await service.httpRequestWithFloatLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithFloatLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithFloatLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2642,20 +2579,19 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _httpRequestWithGreedyLabelInPathProtocol.contentType; try { - final payload = (await _httpRequestWithGreedyLabelInPathProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithGreedyLabelInPathInputPayload), - ) as HttpRequestWithGreedyLabelInPathInputPayload); + final payload = + (await _httpRequestWithGreedyLabelInPathProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithGreedyLabelInPathInputPayload, + ), + ) + as HttpRequestWithGreedyLabelInPathInputPayload); final input = HttpRequestWithGreedyLabelInPathInput.fromRequest( payload, awsRequest, - labels: { - 'foo': foo, - 'baz': baz, - }, + labels: {'foo': foo, 'baz': baz}, ); final output = await service.httpRequestWithGreedyLabelInPath( input, @@ -2665,22 +2601,16 @@ class _RestJsonProtocolServer final body = await _httpRequestWithGreedyLabelInPathProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2702,9 +2632,12 @@ class _RestJsonProtocolServer try { final payload = (await _httpRequestWithLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithLabelsInputPayload), - ) as HttpRequestWithLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsInputPayload, + ), + ) + as HttpRequestWithLabelsInputPayload); final input = HttpRequestWithLabelsInput.fromRequest( payload, awsRequest, @@ -2719,29 +2652,20 @@ class _RestJsonProtocolServer 'timestamp': timestamp, }, ); - final output = await service.httpRequestWithLabels( - input, - context, - ); + final output = await service.httpRequestWithLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2760,13 +2684,15 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _httpRequestWithLabelsAndTimestampFormatProtocol.contentType; try { - final payload = (await _httpRequestWithLabelsAndTimestampFormatProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithLabelsAndTimestampFormatInputPayload), - ) as HttpRequestWithLabelsAndTimestampFormatInputPayload); + final payload = + (await _httpRequestWithLabelsAndTimestampFormatProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + ), + ) + as HttpRequestWithLabelsAndTimestampFormatInputPayload); final input = HttpRequestWithLabelsAndTimestampFormatInput.fromRequest( payload, awsRequest, @@ -2788,22 +2714,16 @@ class _RestJsonProtocolServer final body = await _httpRequestWithLabelsAndTimestampFormatProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2816,39 +2736,34 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _httpRequestWithRegexLiteralProtocol.contentType; try { - final payload = (await _httpRequestWithRegexLiteralProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithRegexLiteralInputPayload), - ) as HttpRequestWithRegexLiteralInputPayload); + final payload = + (await _httpRequestWithRegexLiteralProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithRegexLiteralInputPayload, + ), + ) + as HttpRequestWithRegexLiteralInputPayload); final input = HttpRequestWithRegexLiteralInput.fromRequest( payload, awsRequest, labels: {'str': str}, ); - final output = await service.httpRequestWithRegexLiteral( - input, - context, - ); + final output = await service.httpRequestWithRegexLiteral(input, context); const statusCode = 200; - final body = - await _httpRequestWithRegexLiteralProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithRegexLiteralProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2860,21 +2775,18 @@ class _RestJsonProtocolServer try { final payload = (await _httpResponseCodeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.httpResponseCode( - input, - context, - ); + final output = await service.httpResponseCode(input, context); const statusCode = 200; final body = await _httpResponseCodeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpResponseCodeOutput, - [FullType(HttpResponseCodeOutputPayload)], - ), + specifiedType: const FullType(HttpResponseCodeOutput, [ + FullType(HttpResponseCodeOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2882,10 +2794,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2897,25 +2806,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpStringPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(String), - ) as String?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(String), + ) + as String?); final input = StringPayloadInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpStringPayload( - input, - context, - ); + final output = await service.httpStringPayload(input, context); const statusCode = 200; final body = await _httpStringPayloadProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - StringPayloadInput, - [FullType.nullable(String)], - ), + specifiedType: const FullType(StringPayloadInput, [ + FullType.nullable(String), + ]), ); return _i4.Response( statusCode, @@ -2923,54 +2829,48 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> ignoreQueryParamsInResponse( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _ignoreQueryParamsInResponseProtocol.contentType; try { - final payload = (await _ignoreQueryParamsInResponseProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _ignoreQueryParamsInResponseProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.ignoreQueryParamsInResponse( - input, - context, - ); + final output = await service.ignoreQueryParamsInResponse(input, context); const statusCode = 200; - final body = - await _ignoreQueryParamsInResponseProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - IgnoreQueryParamsInResponseOutput, - [FullType(IgnoreQueryParamsInResponseOutput)], - ), - ); + final body = await _ignoreQueryParamsInResponseProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(IgnoreQueryParamsInResponseOutput, [ + FullType(IgnoreQueryParamsInResponseOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> inputAndOutputWithHeaders( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2978,18 +2878,18 @@ class _RestJsonProtocolServer try { final payload = (await _inputAndOutputWithHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(InputAndOutputWithHeadersIoPayload), - ) as InputAndOutputWithHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + InputAndOutputWithHeadersIoPayload, + ), + ) + as InputAndOutputWithHeadersIoPayload); final input = InputAndOutputWithHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.inputAndOutputWithHeaders( - input, - context, - ); + final output = await service.inputAndOutputWithHeaders(input, context); if (output.headerString != null) { context.response.headers['X-String'] = output.headerString!; } @@ -3045,13 +2945,13 @@ class _RestJsonProtocolServer if (output.headerTimestampList != null) { context.response.headers['X-TimestampList'] = output .headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } if (output.headerEnum != null) { @@ -3075,24 +2975,20 @@ class _RestJsonProtocolServer .join(', '); } const statusCode = 200; - final body = - await _inputAndOutputWithHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - InputAndOutputWithHeadersIo, - [FullType(InputAndOutputWithHeadersIoPayload)], - ), - ); + final body = await _inputAndOutputWithHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(InputAndOutputWithHeadersIo, [ + FullType(InputAndOutputWithHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3101,26 +2997,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonBlobsProtocol.contentType; try { - final payload = (await _jsonBlobsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonBlobsInputOutput), - ) as JsonBlobsInputOutput); + final payload = + (await _jsonBlobsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonBlobsInputOutput), + ) + as JsonBlobsInputOutput); final input = JsonBlobsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonBlobs( - input, - context, - ); + final output = await service.jsonBlobs(input, context); const statusCode = 200; final body = await _jsonBlobsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonBlobsInputOutput, - [FullType(JsonBlobsInputOutput)], - ), + specifiedType: const FullType(JsonBlobsInputOutput, [ + FullType(JsonBlobsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3128,10 +3022,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3140,26 +3031,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonEnumsProtocol.contentType; try { - final payload = (await _jsonEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonEnumsInputOutput), - ) as JsonEnumsInputOutput); + final payload = + (await _jsonEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonEnumsInputOutput), + ) + as JsonEnumsInputOutput); final input = JsonEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonEnums( - input, - context, - ); + final output = await service.jsonEnums(input, context); const statusCode = 200; final body = await _jsonEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonEnumsInputOutput, - [FullType(JsonEnumsInputOutput)], - ), + specifiedType: const FullType(JsonEnumsInputOutput, [ + FullType(JsonEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3167,10 +3056,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3180,26 +3066,24 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _jsonIntEnumsProtocol.contentType; try { - final payload = (await _jsonIntEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonIntEnumsInputOutput), - ) as JsonIntEnumsInputOutput); + final payload = + (await _jsonIntEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonIntEnumsInputOutput), + ) + as JsonIntEnumsInputOutput); final input = JsonIntEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonIntEnums( - input, - context, - ); + final output = await service.jsonIntEnums(input, context); const statusCode = 200; final body = await _jsonIntEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonIntEnumsInputOutput, - [FullType(JsonIntEnumsInputOutput)], - ), + specifiedType: const FullType(JsonIntEnumsInputOutput, [ + FullType(JsonIntEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3207,10 +3091,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3219,26 +3100,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonListsProtocol.contentType; try { - final payload = (await _jsonListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonListsInputOutput), - ) as JsonListsInputOutput); + final payload = + (await _jsonListsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonListsInputOutput), + ) + as JsonListsInputOutput); final input = JsonListsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonLists( - input, - context, - ); + final output = await service.jsonLists(input, context); const statusCode = 200; final body = await _jsonListsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonListsInputOutput, - [FullType(JsonListsInputOutput)], - ), + specifiedType: const FullType(JsonListsInputOutput, [ + FullType(JsonListsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3246,10 +3125,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3258,26 +3134,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonMapsProtocol.contentType; try { - final payload = (await _jsonMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonMapsInputOutput), - ) as JsonMapsInputOutput); + final payload = + (await _jsonMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonMapsInputOutput), + ) + as JsonMapsInputOutput); final input = JsonMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonMaps( - input, - context, - ); + final output = await service.jsonMaps(input, context); const statusCode = 200; final body = await _jsonMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonMapsInputOutput, - [FullType(JsonMapsInputOutput)], - ), + specifiedType: const FullType(JsonMapsInputOutput, [ + FullType(JsonMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3285,10 +3159,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3298,26 +3169,24 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _jsonTimestampsProtocol.contentType; try { - final payload = (await _jsonTimestampsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonTimestampsInputOutput), - ) as JsonTimestampsInputOutput); + final payload = + (await _jsonTimestampsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonTimestampsInputOutput), + ) + as JsonTimestampsInputOutput); final input = JsonTimestampsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonTimestamps( - input, - context, - ); + final output = await service.jsonTimestamps(input, context); const statusCode = 200; final body = await _jsonTimestampsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonTimestampsInputOutput, - [FullType(JsonTimestampsInputOutput)], - ), + specifiedType: const FullType(JsonTimestampsInputOutput, [ + FullType(JsonTimestampsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3325,10 +3194,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3337,26 +3203,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonUnionsProtocol.contentType; try { - final payload = (await _jsonUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(UnionInputOutput), - ) as UnionInputOutput); + final payload = + (await _jsonUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(UnionInputOutput), + ) + as UnionInputOutput); final input = UnionInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonUnions( - input, - context, - ); + final output = await service.jsonUnions(input, context); const statusCode = 200; final body = await _jsonUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - UnionInputOutput, - [FullType(UnionInputOutput)], - ), + specifiedType: const FullType(UnionInputOutput, [ + FullType(UnionInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3364,10 +3228,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3379,49 +3240,45 @@ class _RestJsonProtocolServer try { final payload = (await _malformedAcceptWithBodyProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.malformedAcceptWithBody( - input, - context, - ); + final output = await service.malformedAcceptWithBody(input, context); const statusCode = 200; - final body = - await _malformedAcceptWithBodyProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - GreetingStruct, - [FullType(GreetingStruct)], - ), - ); + final body = await _malformedAcceptWithBodyProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(GreetingStruct, [ + FullType(GreetingStruct), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedAcceptWithGenericString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedAcceptWithGenericStringProtocol.contentType; try { - final payload = (await _malformedAcceptWithGenericStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _malformedAcceptWithGenericStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; final output = await service.malformedAcceptWithGenericString( input, @@ -3431,27 +3288,25 @@ class _RestJsonProtocolServer final body = await _malformedAcceptWithGenericStringProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - MalformedAcceptWithGenericStringOutput, - [FullType.nullable(String)], - ), - ); + output, + specifiedType: const FullType( + MalformedAcceptWithGenericStringOutput, + [FullType.nullable(String)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedAcceptWithPayload( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -3459,33 +3314,27 @@ class _RestJsonProtocolServer try { final payload = (await _malformedAcceptWithPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.malformedAcceptWithPayload( - input, - context, - ); + final output = await service.malformedAcceptWithPayload(input, context); const statusCode = 200; - final body = - await _malformedAcceptWithPayloadProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - MalformedAcceptWithPayloadOutput, - [FullType.nullable(_i6.Uint8List)], - ), - ); + final body = await _malformedAcceptWithPayloadProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(MalformedAcceptWithPayloadOutput, [ + FullType.nullable(_i6.Uint8List), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3495,26 +3344,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedBlobProtocol.contentType; try { - final payload = (await _malformedBlobProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedBlobInput), - ) as MalformedBlobInput); + final payload = + (await _malformedBlobProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedBlobInput), + ) + as MalformedBlobInput); final input = MalformedBlobInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedBlob( - input, - context, - ); + final output = await service.malformedBlob(input, context); const statusCode = 200; final body = await _malformedBlobProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3522,10 +3367,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3540,25 +3382,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedBooleanProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedBooleanInputPayload), - ) as MalformedBooleanInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedBooleanInputPayload), + ) + as MalformedBooleanInputPayload); final input = MalformedBooleanInput.fromRequest( payload, awsRequest, labels: {'booleanInPath': booleanInPath}, ); - final output = await service.malformedBoolean( - input, - context, - ); + final output = await service.malformedBoolean(input, context); const statusCode = 200; final body = await _malformedBooleanProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3566,10 +3403,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3582,26 +3416,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedByteProtocol.contentType; try { - final payload = (await _malformedByteProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedByteInputPayload), - ) as MalformedByteInputPayload); + final payload = + (await _malformedByteProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedByteInputPayload), + ) + as MalformedByteInputPayload); final input = MalformedByteInput.fromRequest( payload, awsRequest, labels: {'byteInPath': byteInPath}, ); - final output = await service.malformedByte( - input, - context, - ); + final output = await service.malformedByte(input, context); const statusCode = 200; final body = await _malformedByteProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3609,70 +3439,58 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithBody( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithBodyProtocol.contentType; try { - final payload = (await _malformedContentTypeWithBodyProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct); - final input = GreetingStruct.fromRequest( - payload, - awsRequest, - labels: {}, - ); - final output = await service.malformedContentTypeWithBody( - input, - context, - ); + final payload = + (await _malformedContentTypeWithBodyProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct); + final input = GreetingStruct.fromRequest(payload, awsRequest, labels: {}); + final output = await service.malformedContentTypeWithBody(input, context); const statusCode = 200; - final body = - await _malformedContentTypeWithBodyProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedContentTypeWithBodyProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithGenericString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithGenericStringProtocol.contentType; try { - final payload = (await _malformedContentTypeWithGenericStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(String), - ) as String?); + final payload = + (await _malformedContentTypeWithGenericStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(String), + ) + as String?); final input = MalformedContentTypeWithGenericStringInput.fromRequest( payload, awsRequest, @@ -3686,38 +3504,34 @@ class _RestJsonProtocolServer final body = await _malformedContentTypeWithGenericStringProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithPayload( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithPayloadProtocol.contentType; try { - final payload = (await _malformedContentTypeWithPayloadProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + final payload = + (await _malformedContentTypeWithPayloadProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = MalformedContentTypeWithPayloadInput.fromRequest( payload, awsRequest, @@ -3730,38 +3544,34 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedContentTypeWithPayloadProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithoutBody( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithoutBodyProtocol.contentType; try { - final payload = (await _malformedContentTypeWithoutBodyProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _malformedContentTypeWithoutBodyProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; final output = await service.malformedContentTypeWithoutBody( input, @@ -3770,39 +3580,37 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedContentTypeWithoutBodyProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithoutBodyEmptyInput( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithoutBodyEmptyInputProtocol.contentType; try { - final payload = (await _malformedContentTypeWithoutBodyEmptyInputProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType( - MalformedContentTypeWithoutBodyEmptyInputInputPayload), - ) as MalformedContentTypeWithoutBodyEmptyInputInputPayload); + final payload = + (await _malformedContentTypeWithoutBodyEmptyInputProtocol + .wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + ), + ) + as MalformedContentTypeWithoutBodyEmptyInputInputPayload); final input = MalformedContentTypeWithoutBodyEmptyInputInput.fromRequest( payload, awsRequest, @@ -3816,22 +3624,16 @@ class _RestJsonProtocolServer final body = await _malformedContentTypeWithoutBodyEmptyInputProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3846,25 +3648,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedDoubleProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedDoubleInputPayload), - ) as MalformedDoubleInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedDoubleInputPayload), + ) + as MalformedDoubleInputPayload); final input = MalformedDoubleInput.fromRequest( payload, awsRequest, labels: {'doubleInPath': doubleInPath}, ); - final output = await service.malformedDouble( - input, - context, - ); + final output = await service.malformedDouble(input, context); const statusCode = 200; final body = await _malformedDoubleProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3872,10 +3669,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3888,26 +3682,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedFloatProtocol.contentType; try { - final payload = (await _malformedFloatProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedFloatInputPayload), - ) as MalformedFloatInputPayload); + final payload = + (await _malformedFloatProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedFloatInputPayload), + ) + as MalformedFloatInputPayload); final input = MalformedFloatInput.fromRequest( payload, awsRequest, labels: {'floatInPath': floatInPath}, ); - final output = await service.malformedFloat( - input, - context, - ); + final output = await service.malformedFloat(input, context); const statusCode = 200; final body = await _malformedFloatProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3915,10 +3705,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3933,25 +3720,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedIntegerProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedIntegerInputPayload), - ) as MalformedIntegerInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedIntegerInputPayload), + ) + as MalformedIntegerInputPayload); final input = MalformedIntegerInput.fromRequest( payload, awsRequest, labels: {'integerInPath': integerInPath}, ); - final output = await service.malformedInteger( - input, - context, - ); + final output = await service.malformedInteger(input, context); const statusCode = 200; final body = await _malformedIntegerProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3959,10 +3741,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3972,26 +3751,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedListProtocol.contentType; try { - final payload = (await _malformedListProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedListInput), - ) as MalformedListInput); + final payload = + (await _malformedListProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedListInput), + ) + as MalformedListInput); final input = MalformedListInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedList( - input, - context, - ); + final output = await service.malformedList(input, context); const statusCode = 200; final body = await _malformedListProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3999,10 +3774,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4015,26 +3787,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedLongProtocol.contentType; try { - final payload = (await _malformedLongProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLongInputPayload), - ) as MalformedLongInputPayload); + final payload = + (await _malformedLongProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedLongInputPayload), + ) + as MalformedLongInputPayload); final input = MalformedLongInput.fromRequest( payload, awsRequest, labels: {'longInPath': longInPath}, ); - final output = await service.malformedLong( - input, - context, - ); + final output = await service.malformedLong(input, context); const statusCode = 200; final body = await _malformedLongProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4042,10 +3810,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4055,26 +3820,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedMapProtocol.contentType; try { - final payload = (await _malformedMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedMapInput), - ) as MalformedMapInput); + final payload = + (await _malformedMapProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedMapInput), + ) + as MalformedMapInput); final input = MalformedMapInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedMap( - input, - context, - ); + final output = await service.malformedMap(input, context); const statusCode = 200; final body = await _malformedMapProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4082,10 +3843,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4097,25 +3855,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedRequestBodyProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRequestBodyInput), - ) as MalformedRequestBodyInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRequestBodyInput), + ) + as MalformedRequestBodyInput); final input = MalformedRequestBodyInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRequestBody( - input, - context, - ); + final output = await service.malformedRequestBody(input, context); const statusCode = 200; final body = await _malformedRequestBodyProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4123,10 +3876,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4139,26 +3889,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedShortProtocol.contentType; try { - final payload = (await _malformedShortProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedShortInputPayload), - ) as MalformedShortInputPayload); + final payload = + (await _malformedShortProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedShortInputPayload), + ) + as MalformedShortInputPayload); final input = MalformedShortInput.fromRequest( payload, awsRequest, labels: {'shortInPath': shortInPath}, ); - final output = await service.malformedShort( - input, - context, - ); + final output = await service.malformedShort(input, context); const statusCode = 200; final body = await _malformedShortProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4166,10 +3912,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4181,25 +3924,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedStringInputPayload), - ) as MalformedStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedStringInputPayload), + ) + as MalformedStringInputPayload); final input = MalformedStringInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedString( - input, - context, - ); + final output = await service.malformedString(input, context); const statusCode = 200; final body = await _malformedStringProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4207,26 +3945,27 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampBodyDateTime( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampBodyDateTimeProtocol.contentType; try { - final payload = (await _malformedTimestampBodyDateTimeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampBodyDateTimeInput), - ) as MalformedTimestampBodyDateTimeInput); + final payload = + (await _malformedTimestampBodyDateTimeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampBodyDateTimeInput, + ), + ) + as MalformedTimestampBodyDateTimeInput); final input = MalformedTimestampBodyDateTimeInput.fromRequest( payload, awsRequest, @@ -4239,38 +3978,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampBodyDateTimeProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampBodyDefault( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampBodyDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampBodyDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampBodyDefaultInput), - ) as MalformedTimestampBodyDefaultInput); + final payload = + (await _malformedTimestampBodyDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampBodyDefaultInput, + ), + ) + as MalformedTimestampBodyDefaultInput); final input = MalformedTimestampBodyDefaultInput.fromRequest( payload, awsRequest, @@ -4281,40 +4018,38 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _malformedTimestampBodyDefaultProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampBodyDefaultProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampBodyHttpDate( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampBodyHttpDateProtocol.contentType; try { - final payload = (await _malformedTimestampBodyHttpDateProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampBodyHttpDateInput), - ) as MalformedTimestampBodyHttpDateInput); + final payload = + (await _malformedTimestampBodyHttpDateProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampBodyHttpDateInput, + ), + ) + as MalformedTimestampBodyHttpDateInput); final input = MalformedTimestampBodyHttpDateInput.fromRequest( payload, awsRequest, @@ -4327,39 +4062,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampBodyHttpDateProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampHeaderDateTime( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampHeaderDateTimeProtocol.contentType; try { - final payload = (await _malformedTimestampHeaderDateTimeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampHeaderDateTimeInputPayload), - ) as MalformedTimestampHeaderDateTimeInputPayload); + final payload = + (await _malformedTimestampHeaderDateTimeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampHeaderDateTimeInputPayload, + ), + ) + as MalformedTimestampHeaderDateTimeInputPayload); final input = MalformedTimestampHeaderDateTimeInput.fromRequest( payload, awsRequest, @@ -4373,39 +4105,36 @@ class _RestJsonProtocolServer final body = await _malformedTimestampHeaderDateTimeProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampHeaderDefault( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampHeaderDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampHeaderDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampHeaderDefaultInputPayload), - ) as MalformedTimestampHeaderDefaultInputPayload); + final payload = + (await _malformedTimestampHeaderDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampHeaderDefaultInputPayload, + ), + ) + as MalformedTimestampHeaderDefaultInputPayload); final input = MalformedTimestampHeaderDefaultInput.fromRequest( payload, awsRequest, @@ -4418,39 +4147,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampHeaderDefaultProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampHeaderEpoch( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampHeaderEpochProtocol.contentType; try { - final payload = (await _malformedTimestampHeaderEpochProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampHeaderEpochInputPayload), - ) as MalformedTimestampHeaderEpochInputPayload); + final payload = + (await _malformedTimestampHeaderEpochProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampHeaderEpochInputPayload, + ), + ) + as MalformedTimestampHeaderEpochInputPayload); final input = MalformedTimestampHeaderEpochInput.fromRequest( payload, awsRequest, @@ -4461,24 +4187,18 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _malformedTimestampHeaderEpochProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampHeaderEpochProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4491,13 +4211,15 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedTimestampPathDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampPathDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampPathDefaultInputPayload), - ) as MalformedTimestampPathDefaultInputPayload); + final payload = + (await _malformedTimestampPathDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampPathDefaultInputPayload, + ), + ) + as MalformedTimestampPathDefaultInputPayload); final input = MalformedTimestampPathDefaultInput.fromRequest( payload, awsRequest, @@ -4508,24 +4230,18 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _malformedTimestampPathDefaultProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampPathDefaultProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4538,39 +4254,34 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedTimestampPathEpochProtocol.contentType; try { - final payload = (await _malformedTimestampPathEpochProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampPathEpochInputPayload), - ) as MalformedTimestampPathEpochInputPayload); + final payload = + (await _malformedTimestampPathEpochProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampPathEpochInputPayload, + ), + ) + as MalformedTimestampPathEpochInputPayload); final input = MalformedTimestampPathEpochInput.fromRequest( payload, awsRequest, labels: {'timestamp': timestamp}, ); - final output = await service.malformedTimestampPathEpoch( - input, - context, - ); + final output = await service.malformedTimestampPathEpoch(input, context); const statusCode = 200; - final body = - await _malformedTimestampPathEpochProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampPathEpochProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4583,13 +4294,15 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedTimestampPathHttpDateProtocol.contentType; try { - final payload = (await _malformedTimestampPathHttpDateProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampPathHttpDateInputPayload), - ) as MalformedTimestampPathHttpDateInputPayload); + final payload = + (await _malformedTimestampPathHttpDateProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampPathHttpDateInputPayload, + ), + ) + as MalformedTimestampPathHttpDateInputPayload); final input = MalformedTimestampPathHttpDateInput.fromRequest( payload, awsRequest, @@ -4602,39 +4315,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampPathHttpDateProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampQueryDefault( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampQueryDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampQueryDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampQueryDefaultInputPayload), - ) as MalformedTimestampQueryDefaultInputPayload); + final payload = + (await _malformedTimestampQueryDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampQueryDefaultInputPayload, + ), + ) + as MalformedTimestampQueryDefaultInputPayload); final input = MalformedTimestampQueryDefaultInput.fromRequest( payload, awsRequest, @@ -4647,83 +4357,75 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampQueryDefaultProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampQueryEpoch( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampQueryEpochProtocol.contentType; try { - final payload = (await _malformedTimestampQueryEpochProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampQueryEpochInputPayload), - ) as MalformedTimestampQueryEpochInputPayload); + final payload = + (await _malformedTimestampQueryEpochProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampQueryEpochInputPayload, + ), + ) + as MalformedTimestampQueryEpochInputPayload); final input = MalformedTimestampQueryEpochInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedTimestampQueryEpoch( - input, - context, - ); + final output = await service.malformedTimestampQueryEpoch(input, context); const statusCode = 200; - final body = - await _malformedTimestampQueryEpochProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampQueryEpochProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampQueryHttpDate( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampQueryHttpDateProtocol.contentType; try { - final payload = (await _malformedTimestampQueryHttpDateProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampQueryHttpDateInputPayload), - ) as MalformedTimestampQueryHttpDateInputPayload); + final payload = + (await _malformedTimestampQueryHttpDateProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampQueryHttpDateInputPayload, + ), + ) + as MalformedTimestampQueryHttpDateInputPayload); final input = MalformedTimestampQueryHttpDateInput.fromRequest( payload, awsRequest, @@ -4736,22 +4438,16 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampQueryHttpDateProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4761,26 +4457,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedUnionProtocol.contentType; try { - final payload = (await _malformedUnionProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedUnionInput), - ) as MalformedUnionInput); + final payload = + (await _malformedUnionProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedUnionInput), + ) + as MalformedUnionInput); final input = MalformedUnionInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedUnion( - input, - context, - ); + final output = await service.malformedUnion(input, context); const statusCode = 200; final body = await _malformedUnionProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4788,10 +4480,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4803,25 +4492,22 @@ class _RestJsonProtocolServer try { final payload = (await _mediaTypeHeaderProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MediaTypeHeaderInputPayload), - ) as MediaTypeHeaderInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MediaTypeHeaderInputPayload), + ) + as MediaTypeHeaderInputPayload); final input = MediaTypeHeaderInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.mediaTypeHeader( - input, - context, - ); + final output = await service.mediaTypeHeader(input, context); const statusCode = 200; final body = await _mediaTypeHeaderProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - MediaTypeHeaderOutput, - [FullType(MediaTypeHeaderOutputPayload)], - ), + specifiedType: const FullType(MediaTypeHeaderOutput, [ + FullType(MediaTypeHeaderOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -4829,10 +4515,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4844,21 +4527,16 @@ class _RestJsonProtocolServer try { final payload = (await _noInputAndNoOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndNoOutput( - input, - context, - ); + final output = await service.noInputAndNoOutput(input, context); const statusCode = 200; final body = await _noInputAndNoOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4866,10 +4544,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4881,21 +4556,18 @@ class _RestJsonProtocolServer try { final payload = (await _noInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndOutput( - input, - context, - ); + final output = await service.noInputAndOutput(input, context); const statusCode = 200; final body = await _noInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NoInputAndOutputOutput, - [FullType(NoInputAndOutputOutput)], - ), + specifiedType: const FullType(NoInputAndOutputOutput, [ + FullType(NoInputAndOutputOutput), + ]), ); return _i4.Response( statusCode, @@ -4903,15 +4575,13 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersClient( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -4919,18 +4589,16 @@ class _RestJsonProtocolServer try { final payload = (await _nullAndEmptyHeadersClientProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersClient( - input, - context, - ); + final output = await service.nullAndEmptyHeadersClient(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -4938,33 +4606,31 @@ class _RestJsonProtocolServer context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersClientProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersClientProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersServer( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -4972,18 +4638,16 @@ class _RestJsonProtocolServer try { final payload = (await _nullAndEmptyHeadersServerProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersServer( - input, - context, - ); + final output = await service.nullAndEmptyHeadersServer(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -4991,45 +4655,45 @@ class _RestJsonProtocolServer context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersServerProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersServerProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> omitsNullSerializesEmptyString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _omitsNullSerializesEmptyStringProtocol.contentType; try { - final payload = (await _omitsNullSerializesEmptyStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(OmitsNullSerializesEmptyStringInputPayload), - ) as OmitsNullSerializesEmptyStringInputPayload); + final payload = + (await _omitsNullSerializesEmptyStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + OmitsNullSerializesEmptyStringInputPayload, + ), + ) + as OmitsNullSerializesEmptyStringInputPayload); final input = OmitsNullSerializesEmptyStringInput.fromRequest( payload, awsRequest, @@ -5042,27 +4706,22 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _omitsNullSerializesEmptyStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> omitsSerializingEmptyLists( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -5070,37 +4729,31 @@ class _RestJsonProtocolServer try { final payload = (await _omitsSerializingEmptyListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(OmitsSerializingEmptyListsInputPayload), - ) as OmitsSerializingEmptyListsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + OmitsSerializingEmptyListsInputPayload, + ), + ) + as OmitsSerializingEmptyListsInputPayload); final input = OmitsSerializingEmptyListsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.omitsSerializingEmptyLists( - input, - context, - ); + final output = await service.omitsSerializingEmptyLists(input, context); const statusCode = 200; - final body = - await _omitsSerializingEmptyListsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _omitsSerializingEmptyListsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5112,25 +4765,22 @@ class _RestJsonProtocolServer try { final payload = (await _postPlayerActionProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PostPlayerActionInput), - ) as PostPlayerActionInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PostPlayerActionInput), + ) + as PostPlayerActionInput); final input = PostPlayerActionInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.postPlayerAction( - input, - context, - ); + final output = await service.postPlayerAction(input, context); const statusCode = 200; final body = await _postPlayerActionProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - PostPlayerActionOutput, - [FullType(PostPlayerActionOutput)], - ), + specifiedType: const FullType(PostPlayerActionOutput, [ + FullType(PostPlayerActionOutput), + ]), ); return _i4.Response( statusCode, @@ -5138,10 +4788,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5153,37 +4800,31 @@ class _RestJsonProtocolServer try { final payload = (await _postUnionWithJsonNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PostUnionWithJsonNameInput), - ) as PostUnionWithJsonNameInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PostUnionWithJsonNameInput), + ) + as PostUnionWithJsonNameInput); final input = PostUnionWithJsonNameInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.postUnionWithJsonName( - input, - context, - ); + final output = await service.postUnionWithJsonName(input, context); const statusCode = 200; - final body = - await _postUnionWithJsonNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - PostUnionWithJsonNameOutput, - [FullType(PostUnionWithJsonNameOutput)], - ), - ); + final body = await _postUnionWithJsonNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(PostUnionWithJsonNameOutput, [ + FullType(PostUnionWithJsonNameOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5195,54 +4836,51 @@ class _RestJsonProtocolServer try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInputPayload), - ) as PutWithContentEncodingInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + PutWithContentEncodingInputPayload, + ), + ) + as PutWithContentEncodingInputPayload); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryIdempotencyTokenAutoFill( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _queryIdempotencyTokenAutoFillProtocol.contentType; try { - final payload = (await _queryIdempotencyTokenAutoFillProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(QueryIdempotencyTokenAutoFillInputPayload), - ) as QueryIdempotencyTokenAutoFillInputPayload); + final payload = + (await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryIdempotencyTokenAutoFillInputPayload, + ), + ) + as QueryIdempotencyTokenAutoFillInputPayload); final input = QueryIdempotencyTokenAutoFillInput.fromRequest( payload, awsRequest, @@ -5253,29 +4891,24 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _queryIdempotencyTokenAutoFillProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryParamsAsStringListMap( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -5283,37 +4916,31 @@ class _RestJsonProtocolServer try { final payload = (await _queryParamsAsStringListMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryParamsAsStringListMapInputPayload), - ) as QueryParamsAsStringListMapInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryParamsAsStringListMapInputPayload, + ), + ) + as QueryParamsAsStringListMapInputPayload); final input = QueryParamsAsStringListMapInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryParamsAsStringListMap( - input, - context, - ); + final output = await service.queryParamsAsStringListMap(input, context); const statusCode = 200; - final body = - await _queryParamsAsStringListMapProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryParamsAsStringListMapProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5325,25 +4952,20 @@ class _RestJsonProtocolServer try { final payload = (await _queryPrecedenceProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryPrecedenceInputPayload), - ) as QueryPrecedenceInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(QueryPrecedenceInputPayload), + ) + as QueryPrecedenceInputPayload); final input = QueryPrecedenceInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryPrecedence( - input, - context, - ); + final output = await service.queryPrecedence(input, context); const statusCode = 200; final body = await _queryPrecedenceProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -5351,10 +4973,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5366,25 +4985,22 @@ class _RestJsonProtocolServer try { final payload = (await _recursiveShapesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(RecursiveShapesInputOutput), - ) as RecursiveShapesInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(RecursiveShapesInputOutput), + ) + as RecursiveShapesInputOutput); final input = RecursiveShapesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.recursiveShapes( - input, - context, - ); + final output = await service.recursiveShapes(input, context); const statusCode = 200; final body = await _recursiveShapesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - RecursiveShapesInputOutput, - [FullType(RecursiveShapesInputOutput)], - ), + specifiedType: const FullType(RecursiveShapesInputOutput, [ + FullType(RecursiveShapesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -5392,10 +5008,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5407,37 +5020,33 @@ class _RestJsonProtocolServer try { final payload = (await _responseCodeHttpFallbackProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ResponseCodeHttpFallbackInputOutput), - ) as ResponseCodeHttpFallbackInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + ResponseCodeHttpFallbackInputOutput, + ), + ) + as ResponseCodeHttpFallbackInputOutput); final input = ResponseCodeHttpFallbackInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.responseCodeHttpFallback( - input, - context, - ); + final output = await service.responseCodeHttpFallback(input, context); const statusCode = 201; - final body = - await _responseCodeHttpFallbackProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - ResponseCodeHttpFallbackInputOutput, - [FullType(ResponseCodeHttpFallbackInputOutput)], - ), - ); + final body = await _responseCodeHttpFallbackProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(ResponseCodeHttpFallbackInputOutput, [ + FullType(ResponseCodeHttpFallbackInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5449,21 +5058,18 @@ class _RestJsonProtocolServer try { final payload = (await _responseCodeRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.responseCodeRequired( - input, - context, - ); + final output = await service.responseCodeRequired(input, context); const statusCode = 200; final body = await _responseCodeRequiredProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - ResponseCodeRequiredOutput, - [FullType(ResponseCodeRequiredOutputPayload)], - ), + specifiedType: const FullType(ResponseCodeRequiredOutput, [ + FullType(ResponseCodeRequiredOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -5471,10 +5077,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5486,40 +5089,36 @@ class _RestJsonProtocolServer try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutputPayload), - ) as SimpleScalarPropertiesInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutputPayload, + ), + ) + as SimpleScalarPropertiesInputOutputPayload); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutputPayload)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5531,46 +5130,29 @@ class _RestJsonProtocolServer try { final payload = (await _streamingTraitsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>?); final input = StreamingTraitsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.streamingTraits( - input, - context, - ); + final output = await service.streamingTraits(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _streamingTraitsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - StreamingTraitsInputOutput, - [ - FullType.nullable( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ) - ], - ), + specifiedType: const FullType(StreamingTraitsInputOutput, [ + FullType.nullable(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ]), ); return _i4.Response( statusCode, @@ -5578,127 +5160,95 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> streamingTraitsRequireLength( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _streamingTraitsRequireLengthProtocol.contentType; try { - final payload = (await _streamingTraitsRequireLengthProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>?); + final payload = + (await _streamingTraitsRequireLengthProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>?); final input = StreamingTraitsRequireLengthInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.streamingTraitsRequireLength( - input, - context, - ); + final output = await service.streamingTraitsRequireLength(input, context); const statusCode = 200; - final body = - await _streamingTraitsRequireLengthProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _streamingTraitsRequireLengthProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> streamingTraitsWithMediaType( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _streamingTraitsWithMediaTypeProtocol.contentType; try { - final payload = (await _streamingTraitsWithMediaTypeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>?); + final payload = + (await _streamingTraitsWithMediaTypeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>?); final input = StreamingTraitsWithMediaTypeInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.streamingTraitsWithMediaType( - input, - context, - ); + final output = await service.streamingTraitsWithMediaType(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _streamingTraitsWithMediaTypeProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - StreamingTraitsWithMediaTypeInputOutput, - [ - FullType.nullable( - _i3.Stream, + final body = await _streamingTraitsWithMediaTypeProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + StreamingTraitsWithMediaTypeInputOutput, [ - FullType( - List, - [FullType(int)], - ) + FullType.nullable(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), ], - ) - ], - ), - ); + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5710,28 +5260,27 @@ class _RestJsonProtocolServer try { final payload = (await _testBodyStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TestBodyStructureInputOutputPayload), - ) as TestBodyStructureInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + TestBodyStructureInputOutputPayload, + ), + ) + as TestBodyStructureInputOutputPayload); final input = TestBodyStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testBodyStructure( - input, - context, - ); + final output = await service.testBodyStructure(input, context); if (output.testId != null) { context.response.headers['x-amz-test-id'] = output.testId!; } const statusCode = 200; final body = await _testBodyStructureProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestBodyStructureInputOutput, - [FullType(TestBodyStructureInputOutputPayload)], - ), + specifiedType: const FullType(TestBodyStructureInputOutput, [ + FullType(TestBodyStructureInputOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -5739,10 +5288,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5752,29 +5298,27 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _testNoPayloadProtocol.contentType; try { - final payload = (await _testNoPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TestNoPayloadInputOutputPayload), - ) as TestNoPayloadInputOutputPayload); + final payload = + (await _testNoPayloadProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(TestNoPayloadInputOutputPayload), + ) + as TestNoPayloadInputOutputPayload); final input = TestNoPayloadInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testNoPayload( - input, - context, - ); + final output = await service.testNoPayload(input, context); if (output.testId != null) { context.response.headers['X-Amz-Test-Id'] = output.testId!; } const statusCode = 200; final body = await _testNoPayloadProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestNoPayloadInputOutput, - [FullType(TestNoPayloadInputOutputPayload)], - ), + specifiedType: const FullType(TestNoPayloadInputOutput, [ + FullType(TestNoPayloadInputOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -5782,10 +5326,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5797,28 +5338,25 @@ class _RestJsonProtocolServer try { final payload = (await _testPayloadBlobProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = TestPayloadBlobInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testPayloadBlob( - input, - context, - ); + final output = await service.testPayloadBlob(input, context); if (output.contentType != null) { context.response.headers['Content-Type'] = output.contentType!; } const statusCode = 200; final body = await _testPayloadBlobProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestPayloadBlobInputOutput, - [FullType.nullable(_i6.Uint8List)], - ), + specifiedType: const FullType(TestPayloadBlobInputOutput, [ + FullType.nullable(_i6.Uint8List), + ]), ); return _i4.Response( statusCode, @@ -5826,10 +5364,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5841,28 +5376,25 @@ class _RestJsonProtocolServer try { final payload = (await _testPayloadStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadConfig), - ) as PayloadConfig?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(PayloadConfig), + ) + as PayloadConfig?); final input = TestPayloadStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testPayloadStructure( - input, - context, - ); + final output = await service.testPayloadStructure(input, context); if (output.testId != null) { context.response.headers['x-amz-test-id'] = output.testId!; } const statusCode = 200; final body = await _testPayloadStructureProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestPayloadStructureInputOutput, - [FullType.nullable(PayloadConfig)], - ), + specifiedType: const FullType(TestPayloadStructureInputOutput, [ + FullType.nullable(PayloadConfig), + ]), ); return _i4.Response( statusCode, @@ -5870,10 +5402,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5885,79 +5414,73 @@ class _RestJsonProtocolServer try { final payload = (await _timestampFormatHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TimestampFormatHeadersIoPayload), - ) as TimestampFormatHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(TimestampFormatHeadersIoPayload), + ) + as TimestampFormatHeadersIoPayload); final input = TimestampFormatHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.timestampFormatHeaders( - input, - context, - ); + final output = await service.timestampFormatHeaders(input, context); if (output.memberEpochSeconds != null) { context.response.headers['X-memberEpochSeconds'] = - _i1.Timestamp(output.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.memberHttpDate != null) { context.response.headers['X-memberHttpDate'] = - _i1.Timestamp(output.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.memberDateTime != null) { context.response.headers['X-memberDateTime'] = - _i1.Timestamp(output.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (output.defaultFormat != null) { context.response.headers['X-defaultFormat'] = - _i1.Timestamp(output.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetEpochSeconds != null) { context.response.headers['X-targetEpochSeconds'] = - _i1.Timestamp(output.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.targetHttpDate != null) { context.response.headers['X-targetHttpDate'] = - _i1.Timestamp(output.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetDateTime != null) { context.response.headers['X-targetDateTime'] = - _i1.Timestamp(output.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } const statusCode = 200; - final body = - await _timestampFormatHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - TimestampFormatHeadersIo, - [FullType(TimestampFormatHeadersIoPayload)], - ), - ); + final body = await _timestampFormatHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(TimestampFormatHeadersIo, [ + FullType(TimestampFormatHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5969,21 +5492,16 @@ class _RestJsonProtocolServer try { final payload = (await _unitInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.unitInputAndOutput( - input, - context, - ); + final output = await service.unitInputAndOutput(input, context); const statusCode = 200; final body = await _unitInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -5991,10 +5509,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart index 535b1995ef..bc5a66df44 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Json Validation Protocol'; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart index 043a55b2d4..8314093d3e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -85,93 +85,42 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(EnumString)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(EnumString), - FullType(EnumString), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(ValidationExceptionField)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(_i3.Uint8List)], - ): _i2.SetBuilder<_i3.Uint8List>.new, - const FullType( - _i2.BuiltSet, - [FullType(bool)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(_i4.Int64)], - ): _i2.SetBuilder<_i4.Int64>.new, - const FullType( - _i2.BuiltSet, - [FullType(DateTime)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.SetBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltSet, - [FullType(GreetingStruct)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(MissingKeyStructure)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooUnion)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(EnumString)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(EnumString), FullType(EnumString)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(ValidationExceptionField)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(_i3.Uint8List)]): + _i2.SetBuilder<_i3.Uint8List>.new, + const FullType(_i2.BuiltSet, [FullType(bool)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(_i4.Int64)]): + _i2.SetBuilder<_i4.Int64>.new, + const FullType(_i2.BuiltSet, [FullType(DateTime)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.SetBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltSet, [FullType(GreetingStruct)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(MissingKeyStructure)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooUnion)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart index 2efe29f773..655a715da8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart index 54cf6fb718..22795b4b00 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart index a638a1f225..e138818b77 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart @@ -1,42 +1,22 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.enum_string; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EnumString extends _i1.SmithyEnum { - const EnumString._( - super.index, - super.name, - super.value, - ); + const EnumString._(super.index, super.name, super.value); const EnumString._sdkUnknown(super.value) : super.sdkUnknown(); - static const abc = EnumString._( - 0, - 'ABC', - 'abc', - ); + static const abc = EnumString._(0, 'ABC', 'abc'); - static const def = EnumString._( - 1, - 'DEF', - 'def', - ); + static const def = EnumString._(1, 'DEF', 'def'); - static const ghi = EnumString._( - 2, - 'GHI', - 'ghi', - ); + static const ghi = EnumString._(2, 'GHI', 'ghi'); - static const jkl = EnumString._( - 3, - 'JKL', - 'jkl', - ); + static const jkl = EnumString._(3, 'JKL', 'jkl'); /// All values of [EnumString]. static const values = [ @@ -52,12 +32,9 @@ class EnumString extends _i1.SmithyEnum { values: values, sdkUnknown: EnumString._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart index e40ab30723..b2720250db 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.enum_trait_string; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EnumTraitString extends _i1.SmithyEnum { - const EnumTraitString._( - super.index, - super.name, - super.value, - ); + const EnumTraitString._(super.index, super.name, super.value); const EnumTraitString._sdkUnknown(super.value) : super.sdkUnknown(); - static const abc = EnumTraitString._( - 0, - 'ABC', - 'abc', - ); + static const abc = EnumTraitString._(0, 'ABC', 'abc'); - static const def = EnumTraitString._( - 1, - 'DEF', - 'def', - ); + static const def = EnumTraitString._(1, 'DEF', 'def'); - static const ghi = EnumTraitString._( - 2, - 'GHI', - 'ghi', - ); + static const ghi = EnumTraitString._(2, 'GHI', 'ghi'); /// All values of [EnumTraitString]. static const values = [ @@ -45,12 +29,9 @@ class EnumTraitString extends _i1.SmithyEnum { values: values, sdkUnknown: EnumTraitString._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart index 8fed9a3317..ebc9babe7e 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.enum_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,13 +15,11 @@ sealed class EnumUnion extends _i1.SmithyUnion { const factory EnumUnion.second(EnumString second) = EnumUnionSecond$; - const factory EnumUnion.sdkUnknown( - String name, - Object value, - ) = EnumUnionSdkUnknown$; + const factory EnumUnion.sdkUnknown(String name, Object value) = + EnumUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - EnumUnionRestJson1Serializer() + EnumUnionRestJson1Serializer(), ]; EnumString? get first => null; @@ -35,16 +33,10 @@ sealed class EnumUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'EnumUnion'); if (first != null) { - helper.add( - r'first', - first, - ); + helper.add(r'first', first); } if (second != null) { - helper.add( - r'second', - second, - ); + helper.add(r'second', second); } return helper.toString(); } @@ -71,10 +63,7 @@ final class EnumUnionSecond$ extends EnumUnion { } final class EnumUnionSdkUnknown$ extends EnumUnion { - const EnumUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const EnumUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -89,18 +78,15 @@ class EnumUnionRestJson1Serializer @override Iterable get types => const [ - EnumUnion, - EnumUnionFirst$, - EnumUnionSecond$, - ]; + EnumUnion, + EnumUnionFirst$, + EnumUnionSecond$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnumUnion deserialize( @@ -111,20 +97,23 @@ class EnumUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return EnumUnionFirst$((serializers.deserialize( - value, - specifiedType: const FullType(EnumString), - ) as EnumString)); + return EnumUnionFirst$( + (serializers.deserialize( + value, + specifiedType: const FullType(EnumString), + ) + as EnumString), + ); case 'second': - return EnumUnionSecond$((serializers.deserialize( - value, - specifiedType: const FullType(EnumString), - ) as EnumString)); + return EnumUnionSecond$( + (serializers.deserialize( + value, + specifiedType: const FullType(EnumString), + ) + as EnumString), + ); } - return EnumUnion.sdkUnknown( - key, - value, - ); + return EnumUnion.sdkUnknown(key, value); } @override @@ -137,13 +126,13 @@ class EnumUnionRestJson1Serializer object.name, switch (object) { EnumUnionFirst$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(EnumString), - ), + value, + specifiedType: const FullType(EnumString), + ), EnumUnionSecond$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(EnumString), - ), + value, + specifiedType: const FullType(EnumString), + ), EnumUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart index b9118a1a30..a52f7a7d8c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart index b7b7a3ed53..ed0ad62031 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart index f0286da530..b5e7ad5b61 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart index a5574c1e0e..462113f435 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.foo_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,13 +14,11 @@ sealed class FooUnion extends _i1.SmithyUnion { const factory FooUnion.integer(int integer) = FooUnionInteger$; - const factory FooUnion.sdkUnknown( - String name, - Object value, - ) = FooUnionSdkUnknown$; + const factory FooUnion.sdkUnknown(String name, Object value) = + FooUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - FooUnionRestJson1Serializer() + FooUnionRestJson1Serializer(), ]; String? get string => null; @@ -34,16 +32,10 @@ sealed class FooUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'FooUnion'); if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } if (integer != null) { - helper.add( - r'integer', - integer, - ); + helper.add(r'integer', integer); } return helper.toString(); } @@ -70,10 +62,7 @@ final class FooUnionInteger$ extends FooUnion { } final class FooUnionSdkUnknown$ extends FooUnion { - const FooUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const FooUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,18 +77,15 @@ class FooUnionRestJson1Serializer @override Iterable get types => const [ - FooUnion, - FooUnionString$, - FooUnionInteger$, - ]; + FooUnion, + FooUnionString$, + FooUnionInteger$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FooUnion deserialize( @@ -110,20 +96,17 @@ class FooUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return FooUnionString$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return FooUnionString$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'integer': - return FooUnionInteger$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return FooUnionInteger$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); } - return FooUnion.sdkUnknown( - key, - value, - ); + return FooUnion.sdkUnknown(key, value); } @override @@ -136,13 +119,13 @@ class FooUnionRestJson1Serializer object.name, switch (object) { FooUnionString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), FooUnionInteger$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), FooUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart index 6364cfe154..c7491e1714 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,18 +26,16 @@ abstract class GreetingStruct GreetingStruct payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [GreetingStruct] from a [payload] and [response]. factory GreetingStruct.fromResponse( GreetingStruct payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - GreetingStructRestJson1Serializer() + GreetingStructRestJson1Serializer(), ]; String? get hi; @@ -49,11 +47,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -63,18 +57,12 @@ class GreetingStructRestJson1Serializer const GreetingStructRestJson1Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingStruct deserialize( @@ -93,10 +81,12 @@ class GreetingStructRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -114,10 +104,7 @@ class GreetingStructRestJson1Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart index c6a9bdb625..20a3f0913a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_enum_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class MalformedEnumInput ); } - factory MalformedEnumInput.build( - [void Function(MalformedEnumInputBuilder) updates]) = - _$MalformedEnumInput; + factory MalformedEnumInput.build([ + void Function(MalformedEnumInputBuilder) updates, + ]) = _$MalformedEnumInput; const MalformedEnumInput._(); @@ -43,11 +43,10 @@ abstract class MalformedEnumInput MalformedEnumInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedEnumInputRestJson1Serializer() + MalformedEnumInputRestJson1Serializer(), ]; EnumString? get string; @@ -59,37 +58,17 @@ abstract class MalformedEnumInput MalformedEnumInput getPayload() => this; @override - List get props => [ - string, - stringWithEnumTrait, - list, - map, - union, - ]; + List get props => [string, stringWithEnumTrait, list, map, union]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedEnumInput') - ..add( - 'string', - string, - ) - ..add( - 'stringWithEnumTrait', - stringWithEnumTrait, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ) - ..add( - 'union', - union, - ); + final helper = + newBuiltValueToStringHelper('MalformedEnumInput') + ..add('string', string) + ..add('stringWithEnumTrait', stringWithEnumTrait) + ..add('list', list) + ..add('map', map) + ..add('union', union); return helper.toString(); } } @@ -99,18 +78,12 @@ class MalformedEnumInputRestJson1Serializer const MalformedEnumInputRestJson1Serializer() : super('MalformedEnumInput'); @override - Iterable get types => const [ - MalformedEnumInput, - _$MalformedEnumInput, - ]; + Iterable get types => const [MalformedEnumInput, _$MalformedEnumInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedEnumInput deserialize( @@ -129,39 +102,47 @@ class MalformedEnumInputRestJson1Serializer } switch (key) { case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(EnumString)], - ), - ) as _i3.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(EnumString), + ]), + ) + as _i3.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(EnumString), - FullType(EnumString), - ], - ), - ) as _i3.BuiltMap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(EnumString), + FullType(EnumString), + ]), + ) + as _i3.BuiltMap), + ); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(EnumString), - ) as EnumString); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(EnumString), + ) + as EnumString); case 'stringWithEnumTrait': - result.stringWithEnumTrait = (serializers.deserialize( - value, - specifiedType: const FullType(EnumTraitString), - ) as EnumTraitString); + result.stringWithEnumTrait = + (serializers.deserialize( + value, + specifiedType: const FullType(EnumTraitString), + ) + as EnumTraitString); case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(EnumUnion), - ) as EnumUnion); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(EnumUnion), + ) + as EnumUnion); } } @@ -180,56 +161,62 @@ class MalformedEnumInputRestJson1Serializer :map, :string, :stringWithEnumTrait, - :union + :union, ) = object; if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(EnumString)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(EnumString), + ]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(EnumString), FullType(EnumString), - ], + ]), ), - )); + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(EnumString), - )); + ..add( + serializers.serialize( + string, + specifiedType: const FullType(EnumString), + ), + ); } if (stringWithEnumTrait != null) { result$ ..add('stringWithEnumTrait') - ..add(serializers.serialize( - stringWithEnumTrait, - specifiedType: const FullType(EnumTraitString), - )); + ..add( + serializers.serialize( + stringWithEnumTrait, + specifiedType: const FullType(EnumTraitString), + ), + ); } if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(EnumUnion), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(EnumUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart index eadc789302..3f67ab553d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart @@ -18,18 +18,22 @@ class _$MalformedEnumInput extends MalformedEnumInput { @override final EnumUnion? union; - factory _$MalformedEnumInput( - [void Function(MalformedEnumInputBuilder)? updates]) => - (new MalformedEnumInputBuilder()..update(updates))._build(); - - _$MalformedEnumInput._( - {this.string, this.stringWithEnumTrait, this.list, this.map, this.union}) - : super._(); + factory _$MalformedEnumInput([ + void Function(MalformedEnumInputBuilder)? updates, + ]) => (new MalformedEnumInputBuilder()..update(updates))._build(); + + _$MalformedEnumInput._({ + this.string, + this.stringWithEnumTrait, + this.list, + this.map, + this.union, + }) : super._(); @override MalformedEnumInput rebuild( - void Function(MalformedEnumInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedEnumInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedEnumInputBuilder toBuilder() => @@ -118,13 +122,15 @@ class MalformedEnumInputBuilder _$MalformedEnumInput _build() { _$MalformedEnumInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedEnumInput._( - string: string, - stringWithEnumTrait: stringWithEnumTrait, - list: _list?.build(), - map: _map?.build(), - union: union); + string: string, + stringWithEnumTrait: stringWithEnumTrait, + list: _list?.build(), + map: _map?.build(), + union: union, + ); } catch (_) { late String _$failedField; try { @@ -134,7 +140,10 @@ class MalformedEnumInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedEnumInput', _$failedField, e.toString()); + r'MalformedEnumInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart index 4b9b9fd600..6cdadd8156 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_length_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,9 +36,9 @@ abstract class MalformedLengthInput ); } - factory MalformedLengthInput.build( - [void Function(MalformedLengthInputBuilder) updates]) = - _$MalformedLengthInput; + factory MalformedLengthInput.build([ + void Function(MalformedLengthInputBuilder) updates, + ]) = _$MalformedLengthInput; const MalformedLengthInput._(); @@ -46,11 +46,10 @@ abstract class MalformedLengthInput MalformedLengthInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedLengthInputRestJson1Serializer() + MalformedLengthInputRestJson1Serializer(), ]; _i3.Uint8List? get blob; @@ -63,42 +62,18 @@ abstract class MalformedLengthInput MalformedLengthInput getPayload() => this; @override - List get props => [ - blob, - string, - minString, - maxString, - list, - map, - ]; + List get props => [blob, string, minString, maxString, list, map]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedLengthInput') - ..add( - 'blob', - blob, - ) - ..add( - 'string', - string, - ) - ..add( - 'minString', - minString, - ) - ..add( - 'maxString', - maxString, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ); + final helper = + newBuiltValueToStringHelper('MalformedLengthInput') + ..add('blob', blob) + ..add('string', string) + ..add('minString', minString) + ..add('maxString', maxString) + ..add('list', list) + ..add('map', map); return helper.toString(); } } @@ -106,21 +81,18 @@ abstract class MalformedLengthInput class MalformedLengthInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedLengthInputRestJson1Serializer() - : super('MalformedLengthInput'); + : super('MalformedLengthInput'); @override Iterable get types => const [ - MalformedLengthInput, - _$MalformedLengthInput, - ]; + MalformedLengthInput, + _$MalformedLengthInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLengthInput deserialize( @@ -139,44 +111,54 @@ class MalformedLengthInputRestJson1Serializer } switch (key) { case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); case 'maxString': - result.maxString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maxString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'minString': - result.minString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.minString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -196,64 +178,67 @@ class MalformedLengthInputRestJson1Serializer :map, :maxString, :minString, - :string + :string, ) = object; if (blob != null) { result$ ..add('blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i4.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i4.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (maxString != null) { result$ ..add('maxString') - ..add(serializers.serialize( - maxString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + maxString, + specifiedType: const FullType(String), + ), + ); } if (minString != null) { result$ ..add('minString') - ..add(serializers.serialize( - minString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + minString, + specifiedType: const FullType(String), + ), + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart index 9598bde1da..e73dc101fc 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart @@ -20,23 +20,23 @@ class _$MalformedLengthInput extends MalformedLengthInput { @override final _i4.BuiltListMultimap? map; - factory _$MalformedLengthInput( - [void Function(MalformedLengthInputBuilder)? updates]) => - (new MalformedLengthInputBuilder()..update(updates))._build(); - - _$MalformedLengthInput._( - {this.blob, - this.string, - this.minString, - this.maxString, - this.list, - this.map}) - : super._(); + factory _$MalformedLengthInput([ + void Function(MalformedLengthInputBuilder)? updates, + ]) => (new MalformedLengthInputBuilder()..update(updates))._build(); + + _$MalformedLengthInput._({ + this.blob, + this.string, + this.minString, + this.maxString, + this.list, + this.map, + }) : super._(); @override MalformedLengthInput rebuild( - void Function(MalformedLengthInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthInputBuilder toBuilder() => @@ -131,14 +131,16 @@ class MalformedLengthInputBuilder _$MalformedLengthInput _build() { _$MalformedLengthInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedLengthInput._( - blob: blob, - string: string, - minString: minString, - maxString: maxString, - list: _list?.build(), - map: _map?.build()); + blob: blob, + string: string, + minString: minString, + maxString: maxString, + list: _list?.build(), + map: _map?.build(), + ); } catch (_) { late String _$failedField; try { @@ -148,7 +150,10 @@ class MalformedLengthInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedLengthInput', _$failedField, e.toString()); + r'MalformedLengthInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart index e8b880753a..6768b77bf4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_length_override_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class MalformedLengthOverrideInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedLengthOverrideInput, + MalformedLengthOverrideInputBuilder + > { factory MalformedLengthOverrideInput({ _i3.Uint8List? blob, String? string, @@ -38,9 +40,9 @@ abstract class MalformedLengthOverrideInput ); } - factory MalformedLengthOverrideInput.build( - [void Function(MalformedLengthOverrideInputBuilder) updates]) = - _$MalformedLengthOverrideInput; + factory MalformedLengthOverrideInput.build([ + void Function(MalformedLengthOverrideInputBuilder) updates, + ]) = _$MalformedLengthOverrideInput; const MalformedLengthOverrideInput._(); @@ -48,11 +50,10 @@ abstract class MalformedLengthOverrideInput MalformedLengthOverrideInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedLengthOverrideInputRestJson1Serializer()]; + serializers = [MalformedLengthOverrideInputRestJson1Serializer()]; _i3.Uint8List? get blob; String? get string; @@ -64,42 +65,18 @@ abstract class MalformedLengthOverrideInput MalformedLengthOverrideInput getPayload() => this; @override - List get props => [ - blob, - string, - minString, - maxString, - list, - map, - ]; + List get props => [blob, string, minString, maxString, list, map]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedLengthOverrideInput') - ..add( - 'blob', - blob, - ) - ..add( - 'string', - string, - ) - ..add( - 'minString', - minString, - ) - ..add( - 'maxString', - maxString, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ); + final helper = + newBuiltValueToStringHelper('MalformedLengthOverrideInput') + ..add('blob', blob) + ..add('string', string) + ..add('minString', minString) + ..add('maxString', maxString) + ..add('list', list) + ..add('map', map); return helper.toString(); } } @@ -107,21 +84,18 @@ abstract class MalformedLengthOverrideInput class MalformedLengthOverrideInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedLengthOverrideInputRestJson1Serializer() - : super('MalformedLengthOverrideInput'); + : super('MalformedLengthOverrideInput'); @override Iterable get types => const [ - MalformedLengthOverrideInput, - _$MalformedLengthOverrideInput, - ]; + MalformedLengthOverrideInput, + _$MalformedLengthOverrideInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLengthOverrideInput deserialize( @@ -140,44 +114,54 @@ class MalformedLengthOverrideInputRestJson1Serializer } switch (key) { case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); case 'maxString': - result.maxString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maxString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'minString': - result.minString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.minString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -197,64 +181,67 @@ class MalformedLengthOverrideInputRestJson1Serializer :map, :maxString, :minString, - :string + :string, ) = object; if (blob != null) { result$ ..add('blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i4.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i4.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (maxString != null) { result$ ..add('maxString') - ..add(serializers.serialize( - maxString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + maxString, + specifiedType: const FullType(String), + ), + ); } if (minString != null) { result$ ..add('minString') - ..add(serializers.serialize( - minString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + minString, + specifiedType: const FullType(String), + ), + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart index 808f200004..c8bd484bc8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart @@ -20,23 +20,23 @@ class _$MalformedLengthOverrideInput extends MalformedLengthOverrideInput { @override final _i4.BuiltListMultimap? map; - factory _$MalformedLengthOverrideInput( - [void Function(MalformedLengthOverrideInputBuilder)? updates]) => - (new MalformedLengthOverrideInputBuilder()..update(updates))._build(); - - _$MalformedLengthOverrideInput._( - {this.blob, - this.string, - this.minString, - this.maxString, - this.list, - this.map}) - : super._(); + factory _$MalformedLengthOverrideInput([ + void Function(MalformedLengthOverrideInputBuilder)? updates, + ]) => (new MalformedLengthOverrideInputBuilder()..update(updates))._build(); + + _$MalformedLengthOverrideInput._({ + this.blob, + this.string, + this.minString, + this.maxString, + this.list, + this.map, + }) : super._(); @override MalformedLengthOverrideInput rebuild( - void Function(MalformedLengthOverrideInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthOverrideInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthOverrideInputBuilder toBuilder() => @@ -70,8 +70,10 @@ class _$MalformedLengthOverrideInput extends MalformedLengthOverrideInput { class MalformedLengthOverrideInputBuilder implements - Builder { + Builder< + MalformedLengthOverrideInput, + MalformedLengthOverrideInputBuilder + > { _$MalformedLengthOverrideInput? _$v; _i3.Uint8List? _blob; @@ -133,14 +135,16 @@ class MalformedLengthOverrideInputBuilder _$MalformedLengthOverrideInput _build() { _$MalformedLengthOverrideInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedLengthOverrideInput._( - blob: blob, - string: string, - minString: minString, - maxString: maxString, - list: _list?.build(), - map: _map?.build()); + blob: blob, + string: string, + minString: minString, + maxString: maxString, + list: _list?.build(), + map: _map?.build(), + ); } catch (_) { late String _$failedField; try { @@ -150,7 +154,10 @@ class MalformedLengthOverrideInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedLengthOverrideInput', _$failedField, e.toString()); + r'MalformedLengthOverrideInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart index 48d1e3597e..5973921953 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_length_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedLengthQueryStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedLengthQueryStringInput, + MalformedLengthQueryStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedLengthQueryStringInput({String? string}) { return _$MalformedLengthQueryStringInput._(string: string); } - factory MalformedLengthQueryStringInput.build( - [void Function(MalformedLengthQueryStringInputBuilder) updates]) = - _$MalformedLengthQueryStringInput; + factory MalformedLengthQueryStringInput.build([ + void Function(MalformedLengthQueryStringInputBuilder) updates, + ]) = _$MalformedLengthQueryStringInput; const MalformedLengthQueryStringInput._(); @@ -34,16 +36,16 @@ abstract class MalformedLengthQueryStringInput MalformedLengthQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedLengthQueryStringInput.build((b) { - if (request.queryParameters['string'] != null) { - b.string = request.queryParameters['string']!; - } - }); + }) => MalformedLengthQueryStringInput.build((b) { + if (request.queryParameters['string'] != null) { + b.string = request.queryParameters['string']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedLengthQueryStringInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedLengthQueryStringInputRestJson1Serializer()]; String? get string; @override @@ -55,27 +57,25 @@ abstract class MalformedLengthQueryStringInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedLengthQueryStringInput') - ..add( - 'string', - string, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedLengthQueryStringInput', + )..add('string', string); return helper.toString(); } } @_i3.internal abstract class MalformedLengthQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedLengthQueryStringInputPayload( - [void Function(MalformedLengthQueryStringInputPayloadBuilder) - updates]) = _$MalformedLengthQueryStringInputPayload; + factory MalformedLengthQueryStringInputPayload([ + void Function(MalformedLengthQueryStringInputPayloadBuilder) updates, + ]) = _$MalformedLengthQueryStringInputPayload; const MalformedLengthQueryStringInputPayload._(); @@ -84,32 +84,31 @@ abstract class MalformedLengthQueryStringInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedLengthQueryStringInputPayload'); + final helper = newBuiltValueToStringHelper( + 'MalformedLengthQueryStringInputPayload', + ); return helper.toString(); } } -class MalformedLengthQueryStringInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedLengthQueryStringInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const MalformedLengthQueryStringInputRestJson1Serializer() - : super('MalformedLengthQueryStringInput'); + : super('MalformedLengthQueryStringInput'); @override Iterable get types => const [ - MalformedLengthQueryStringInput, - _$MalformedLengthQueryStringInput, - MalformedLengthQueryStringInputPayload, - _$MalformedLengthQueryStringInputPayload, - ]; + MalformedLengthQueryStringInput, + _$MalformedLengthQueryStringInput, + MalformedLengthQueryStringInputPayload, + _$MalformedLengthQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLengthQueryStringInputPayload deserialize( @@ -125,6 +124,5 @@ class MalformedLengthQueryStringInputRestJson1Serializer extends _i1 Serializers serializers, MalformedLengthQueryStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart index 27de51316e..89e15a6105 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart @@ -11,16 +11,17 @@ class _$MalformedLengthQueryStringInput @override final String? string; - factory _$MalformedLengthQueryStringInput( - [void Function(MalformedLengthQueryStringInputBuilder)? updates]) => + factory _$MalformedLengthQueryStringInput([ + void Function(MalformedLengthQueryStringInputBuilder)? updates, + ]) => (new MalformedLengthQueryStringInputBuilder()..update(updates))._build(); _$MalformedLengthQueryStringInput._({this.string}) : super._(); @override MalformedLengthQueryStringInput rebuild( - void Function(MalformedLengthQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthQueryStringInputBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$MalformedLengthQueryStringInput class MalformedLengthQueryStringInputBuilder implements - Builder { + Builder< + MalformedLengthQueryStringInput, + MalformedLengthQueryStringInputBuilder + > { _$MalformedLengthQueryStringInput? _$v; String? _string; @@ -86,9 +89,9 @@ class MalformedLengthQueryStringInputBuilder class _$MalformedLengthQueryStringInputPayload extends MalformedLengthQueryStringInputPayload { - factory _$MalformedLengthQueryStringInputPayload( - [void Function(MalformedLengthQueryStringInputPayloadBuilder)? - updates]) => + factory _$MalformedLengthQueryStringInputPayload([ + void Function(MalformedLengthQueryStringInputPayloadBuilder)? updates, + ]) => (new MalformedLengthQueryStringInputPayloadBuilder()..update(updates)) ._build(); @@ -96,9 +99,8 @@ class _$MalformedLengthQueryStringInputPayload @override MalformedLengthQueryStringInputPayload rebuild( - void Function(MalformedLengthQueryStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthQueryStringInputPayloadBuilder toBuilder() => @@ -118,8 +120,10 @@ class _$MalformedLengthQueryStringInputPayload class MalformedLengthQueryStringInputPayloadBuilder implements - Builder { + Builder< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInputPayloadBuilder + > { _$MalformedLengthQueryStringInputPayload? _$v; MalformedLengthQueryStringInputPayloadBuilder(); @@ -132,7 +136,8 @@ class MalformedLengthQueryStringInputPayloadBuilder @override void update( - void Function(MalformedLengthQueryStringInputPayloadBuilder)? updates) { + void Function(MalformedLengthQueryStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart index f9fbc5fc41..c9f621690a 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_pattern_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class MalformedPatternInput ); } - factory MalformedPatternInput.build( - [void Function(MalformedPatternInputBuilder) updates]) = - _$MalformedPatternInput; + factory MalformedPatternInput.build([ + void Function(MalformedPatternInputBuilder) updates, + ]) = _$MalformedPatternInput; const MalformedPatternInput._(); @@ -43,11 +43,10 @@ abstract class MalformedPatternInput MalformedPatternInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedPatternInputRestJson1Serializer() + MalformedPatternInputRestJson1Serializer(), ]; String? get string; @@ -59,37 +58,17 @@ abstract class MalformedPatternInput MalformedPatternInput getPayload() => this; @override - List get props => [ - string, - evilString, - list, - map, - union, - ]; + List get props => [string, evilString, list, map, union]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedPatternInput') - ..add( - 'string', - string, - ) - ..add( - 'evilString', - evilString, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ) - ..add( - 'union', - union, - ); + final helper = + newBuiltValueToStringHelper('MalformedPatternInput') + ..add('string', string) + ..add('evilString', evilString) + ..add('list', list) + ..add('map', map) + ..add('union', union); return helper.toString(); } } @@ -97,21 +76,18 @@ abstract class MalformedPatternInput class MalformedPatternInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedPatternInputRestJson1Serializer() - : super('MalformedPatternInput'); + : super('MalformedPatternInput'); @override Iterable get types => const [ - MalformedPatternInput, - _$MalformedPatternInput, - ]; + MalformedPatternInput, + _$MalformedPatternInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedPatternInput deserialize( @@ -130,39 +106,47 @@ class MalformedPatternInputRestJson1Serializer } switch (key) { case 'evilString': - result.evilString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.evilString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(PatternUnion), - ) as PatternUnion); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(PatternUnion), + ) + as PatternUnion); } } @@ -181,51 +165,52 @@ class MalformedPatternInputRestJson1Serializer if (evilString != null) { result$ ..add('evilString') - ..add(serializers.serialize( - evilString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + evilString, + specifiedType: const FullType(String), + ), + ); } if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(PatternUnion), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(PatternUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart index acb069a745..08ce7b645c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart @@ -18,18 +18,22 @@ class _$MalformedPatternInput extends MalformedPatternInput { @override final PatternUnion? union; - factory _$MalformedPatternInput( - [void Function(MalformedPatternInputBuilder)? updates]) => - (new MalformedPatternInputBuilder()..update(updates))._build(); - - _$MalformedPatternInput._( - {this.string, this.evilString, this.list, this.map, this.union}) - : super._(); + factory _$MalformedPatternInput([ + void Function(MalformedPatternInputBuilder)? updates, + ]) => (new MalformedPatternInputBuilder()..update(updates))._build(); + + _$MalformedPatternInput._({ + this.string, + this.evilString, + this.list, + this.map, + this.union, + }) : super._(); @override MalformedPatternInput rebuild( - void Function(MalformedPatternInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedPatternInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedPatternInputBuilder toBuilder() => @@ -117,13 +121,15 @@ class MalformedPatternInputBuilder _$MalformedPatternInput _build() { _$MalformedPatternInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedPatternInput._( - string: string, - evilString: evilString, - list: _list?.build(), - map: _map?.build(), - union: union); + string: string, + evilString: evilString, + list: _list?.build(), + map: _map?.build(), + union: union, + ); } catch (_) { late String _$failedField; try { @@ -133,7 +139,10 @@ class MalformedPatternInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedPatternInput', _$failedField, e.toString()); + r'MalformedPatternInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart index cb712ab3bf..188575cc0c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_pattern_override_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class MalformedPatternOverrideInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedPatternOverrideInput, + MalformedPatternOverrideInputBuilder + > { factory MalformedPatternOverrideInput({ String? string, List? list, @@ -33,9 +35,9 @@ abstract class MalformedPatternOverrideInput ); } - factory MalformedPatternOverrideInput.build( - [void Function(MalformedPatternOverrideInputBuilder) updates]) = - _$MalformedPatternOverrideInput; + factory MalformedPatternOverrideInput.build([ + void Function(MalformedPatternOverrideInputBuilder) updates, + ]) = _$MalformedPatternOverrideInput; const MalformedPatternOverrideInput._(); @@ -43,11 +45,10 @@ abstract class MalformedPatternOverrideInput MalformedPatternOverrideInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedPatternOverrideInputRestJson1Serializer()]; + serializers = [MalformedPatternOverrideInputRestJson1Serializer()]; String? get string; _i3.BuiltList? get list; @@ -57,32 +58,16 @@ abstract class MalformedPatternOverrideInput MalformedPatternOverrideInput getPayload() => this; @override - List get props => [ - string, - list, - map, - union, - ]; + List get props => [string, list, map, union]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedPatternOverrideInput') - ..add( - 'string', - string, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ) - ..add( - 'union', - union, - ); + final helper = + newBuiltValueToStringHelper('MalformedPatternOverrideInput') + ..add('string', string) + ..add('list', list) + ..add('map', map) + ..add('union', union); return helper.toString(); } } @@ -90,21 +75,18 @@ abstract class MalformedPatternOverrideInput class MalformedPatternOverrideInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedPatternOverrideInputRestJson1Serializer() - : super('MalformedPatternOverrideInput'); + : super('MalformedPatternOverrideInput'); @override Iterable get types => const [ - MalformedPatternOverrideInput, - _$MalformedPatternOverrideInput, - ]; + MalformedPatternOverrideInput, + _$MalformedPatternOverrideInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedPatternOverrideInput deserialize( @@ -123,34 +105,40 @@ class MalformedPatternOverrideInputRestJson1Serializer } switch (key) { case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(PatternUnionOverride), - ) as PatternUnionOverride); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(PatternUnionOverride), + ) + as PatternUnionOverride); } } @@ -168,43 +156,42 @@ class MalformedPatternOverrideInputRestJson1Serializer if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(PatternUnionOverride), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(PatternUnionOverride), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart index 69927876ad..c1346e8f34 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart @@ -16,18 +16,21 @@ class _$MalformedPatternOverrideInput extends MalformedPatternOverrideInput { @override final PatternUnionOverride? union; - factory _$MalformedPatternOverrideInput( - [void Function(MalformedPatternOverrideInputBuilder)? updates]) => - (new MalformedPatternOverrideInputBuilder()..update(updates))._build(); + factory _$MalformedPatternOverrideInput([ + void Function(MalformedPatternOverrideInputBuilder)? updates, + ]) => (new MalformedPatternOverrideInputBuilder()..update(updates))._build(); - _$MalformedPatternOverrideInput._( - {this.string, this.list, this.map, this.union}) - : super._(); + _$MalformedPatternOverrideInput._({ + this.string, + this.list, + this.map, + this.union, + }) : super._(); @override MalformedPatternOverrideInput rebuild( - void Function(MalformedPatternOverrideInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedPatternOverrideInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedPatternOverrideInputBuilder toBuilder() => @@ -57,8 +60,10 @@ class _$MalformedPatternOverrideInput extends MalformedPatternOverrideInput { class MalformedPatternOverrideInputBuilder implements - Builder { + Builder< + MalformedPatternOverrideInput, + MalformedPatternOverrideInputBuilder + > { _$MalformedPatternOverrideInput? _$v; String? _string; @@ -110,12 +115,14 @@ class MalformedPatternOverrideInputBuilder _$MalformedPatternOverrideInput _build() { _$MalformedPatternOverrideInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedPatternOverrideInput._( - string: string, - list: _list?.build(), - map: _map?.build(), - union: union); + string: string, + list: _list?.build(), + map: _map?.build(), + union: union, + ); } catch (_) { late String _$failedField; try { @@ -125,7 +132,10 @@ class MalformedPatternOverrideInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedPatternOverrideInput', _$failedField, e.toString()); + r'MalformedPatternOverrideInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart index 808effb7cc..d056220179 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_range_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -52,9 +52,9 @@ abstract class MalformedRangeInput ); } - factory MalformedRangeInput.build( - [void Function(MalformedRangeInputBuilder) updates]) = - _$MalformedRangeInput; + factory MalformedRangeInput.build([ + void Function(MalformedRangeInputBuilder) updates, + ]) = _$MalformedRangeInput; const MalformedRangeInput._(); @@ -62,11 +62,10 @@ abstract class MalformedRangeInput MalformedRangeInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedRangeInputRestJson1Serializer() + MalformedRangeInputRestJson1Serializer(), ]; int? get byte; @@ -89,86 +88,42 @@ abstract class MalformedRangeInput @override List get props => [ - byte, - minByte, - maxByte, - short, - minShort, - maxShort, - integer, - minInteger, - maxInteger, - long, - minLong, - maxLong, - float, - minFloat, - maxFloat, - ]; + byte, + minByte, + maxByte, + short, + minShort, + maxShort, + integer, + minInteger, + maxInteger, + long, + minLong, + maxLong, + float, + minFloat, + maxFloat, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRangeInput') - ..add( - 'byte', - byte, - ) - ..add( - 'minByte', - minByte, - ) - ..add( - 'maxByte', - maxByte, - ) - ..add( - 'short', - short, - ) - ..add( - 'minShort', - minShort, - ) - ..add( - 'maxShort', - maxShort, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'minInteger', - minInteger, - ) - ..add( - 'maxInteger', - maxInteger, - ) - ..add( - 'long', - long, - ) - ..add( - 'minLong', - minLong, - ) - ..add( - 'maxLong', - maxLong, - ) - ..add( - 'float', - float, - ) - ..add( - 'minFloat', - minFloat, - ) - ..add( - 'maxFloat', - maxFloat, - ); + final helper = + newBuiltValueToStringHelper('MalformedRangeInput') + ..add('byte', byte) + ..add('minByte', minByte) + ..add('maxByte', maxByte) + ..add('short', short) + ..add('minShort', minShort) + ..add('maxShort', maxShort) + ..add('integer', integer) + ..add('minInteger', minInteger) + ..add('maxInteger', maxInteger) + ..add('long', long) + ..add('minLong', minLong) + ..add('maxLong', maxLong) + ..add('float', float) + ..add('minFloat', minFloat) + ..add('maxFloat', maxFloat); return helper.toString(); } } @@ -179,17 +134,14 @@ class MalformedRangeInputRestJson1Serializer @override Iterable get types => const [ - MalformedRangeInput, - _$MalformedRangeInput, - ]; + MalformedRangeInput, + _$MalformedRangeInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRangeInput deserialize( @@ -208,80 +160,110 @@ class MalformedRangeInputRestJson1Serializer } switch (key) { case 'byte': - result.byte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxByte': - result.maxByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxFloat': - result.maxFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.maxFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'maxInteger': - result.maxInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxLong': - result.maxLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.maxLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxShort': - result.maxShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minByte': - result.minByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minFloat': - result.minFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.minFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'minInteger': - result.minInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minLong': - result.minLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.minLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'minShort': - result.minShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -310,127 +292,120 @@ class MalformedRangeInputRestJson1Serializer :minInteger, :minLong, :minShort, - :short + :short, ) = object; if (byte != null) { result$ ..add('byte') - ..add(serializers.serialize( - byte, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(byte, specifiedType: const FullType(int))); } if (float != null) { result$ ..add('float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (integer != null) { result$ ..add('integer') - ..add(serializers.serialize( - integer, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(integer, specifiedType: const FullType(int)), + ); } if (long != null) { result$ ..add('long') - ..add(serializers.serialize( - long, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize(long, specifiedType: const FullType(_i3.Int64)), + ); } if (maxByte != null) { result$ ..add('maxByte') - ..add(serializers.serialize( - maxByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxByte, specifiedType: const FullType(int)), + ); } if (maxFloat != null) { result$ ..add('maxFloat') - ..add(serializers.serialize( - maxFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + maxFloat, + specifiedType: const FullType(double), + ), + ); } if (maxInteger != null) { result$ ..add('maxInteger') - ..add(serializers.serialize( - maxInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxInteger, specifiedType: const FullType(int)), + ); } if (maxLong != null) { result$ ..add('maxLong') - ..add(serializers.serialize( - maxLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + maxLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (maxShort != null) { result$ ..add('maxShort') - ..add(serializers.serialize( - maxShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxShort, specifiedType: const FullType(int)), + ); } if (minByte != null) { result$ ..add('minByte') - ..add(serializers.serialize( - minByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minByte, specifiedType: const FullType(int)), + ); } if (minFloat != null) { result$ ..add('minFloat') - ..add(serializers.serialize( - minFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + minFloat, + specifiedType: const FullType(double), + ), + ); } if (minInteger != null) { result$ ..add('minInteger') - ..add(serializers.serialize( - minInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minInteger, specifiedType: const FullType(int)), + ); } if (minLong != null) { result$ ..add('minLong') - ..add(serializers.serialize( - minLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + minLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (minShort != null) { result$ ..add('minShort') - ..add(serializers.serialize( - minShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minShort, specifiedType: const FullType(int)), + ); } if (short != null) { result$ ..add('short') - ..add(serializers.serialize( - short, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(short, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart index 4d19209046..a11b8706e9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart @@ -38,32 +38,32 @@ class _$MalformedRangeInput extends MalformedRangeInput { @override final double? maxFloat; - factory _$MalformedRangeInput( - [void Function(MalformedRangeInputBuilder)? updates]) => - (new MalformedRangeInputBuilder()..update(updates))._build(); - - _$MalformedRangeInput._( - {this.byte, - this.minByte, - this.maxByte, - this.short, - this.minShort, - this.maxShort, - this.integer, - this.minInteger, - this.maxInteger, - this.long, - this.minLong, - this.maxLong, - this.float, - this.minFloat, - this.maxFloat}) - : super._(); + factory _$MalformedRangeInput([ + void Function(MalformedRangeInputBuilder)? updates, + ]) => (new MalformedRangeInputBuilder()..update(updates))._build(); + + _$MalformedRangeInput._({ + this.byte, + this.minByte, + this.maxByte, + this.short, + this.minShort, + this.maxShort, + this.integer, + this.minInteger, + this.maxInteger, + this.long, + this.minLong, + this.maxLong, + this.float, + this.minFloat, + this.maxFloat, + }) : super._(); @override MalformedRangeInput rebuild( - void Function(MalformedRangeInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRangeInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRangeInputBuilder toBuilder() => @@ -217,23 +217,25 @@ class MalformedRangeInputBuilder MalformedRangeInput build() => _build(); _$MalformedRangeInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRangeInput._( - byte: byte, - minByte: minByte, - maxByte: maxByte, - short: short, - minShort: minShort, - maxShort: maxShort, - integer: integer, - minInteger: minInteger, - maxInteger: maxInteger, - long: long, - minLong: minLong, - maxLong: maxLong, - float: float, - minFloat: minFloat, - maxFloat: maxFloat); + byte: byte, + minByte: minByte, + maxByte: maxByte, + short: short, + minShort: minShort, + maxShort: maxShort, + integer: integer, + minInteger: minInteger, + maxInteger: maxInteger, + long: long, + minLong: minLong, + maxLong: maxLong, + float: float, + minFloat: minFloat, + maxFloat: maxFloat, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart index 4219c7dd7a..efeaf1c12f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_range_override_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -53,9 +53,9 @@ abstract class MalformedRangeOverrideInput ); } - factory MalformedRangeOverrideInput.build( - [void Function(MalformedRangeOverrideInputBuilder) updates]) = - _$MalformedRangeOverrideInput; + factory MalformedRangeOverrideInput.build([ + void Function(MalformedRangeOverrideInputBuilder) updates, + ]) = _$MalformedRangeOverrideInput; const MalformedRangeOverrideInput._(); @@ -63,11 +63,10 @@ abstract class MalformedRangeOverrideInput MalformedRangeOverrideInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedRangeOverrideInputRestJson1Serializer()]; + serializers = [MalformedRangeOverrideInputRestJson1Serializer()]; int? get byte; int? get minByte; @@ -89,86 +88,42 @@ abstract class MalformedRangeOverrideInput @override List get props => [ - byte, - minByte, - maxByte, - short, - minShort, - maxShort, - integer, - minInteger, - maxInteger, - long, - minLong, - maxLong, - float, - minFloat, - maxFloat, - ]; + byte, + minByte, + maxByte, + short, + minShort, + maxShort, + integer, + minInteger, + maxInteger, + long, + minLong, + maxLong, + float, + minFloat, + maxFloat, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRangeOverrideInput') - ..add( - 'byte', - byte, - ) - ..add( - 'minByte', - minByte, - ) - ..add( - 'maxByte', - maxByte, - ) - ..add( - 'short', - short, - ) - ..add( - 'minShort', - minShort, - ) - ..add( - 'maxShort', - maxShort, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'minInteger', - minInteger, - ) - ..add( - 'maxInteger', - maxInteger, - ) - ..add( - 'long', - long, - ) - ..add( - 'minLong', - minLong, - ) - ..add( - 'maxLong', - maxLong, - ) - ..add( - 'float', - float, - ) - ..add( - 'minFloat', - minFloat, - ) - ..add( - 'maxFloat', - maxFloat, - ); + final helper = + newBuiltValueToStringHelper('MalformedRangeOverrideInput') + ..add('byte', byte) + ..add('minByte', minByte) + ..add('maxByte', maxByte) + ..add('short', short) + ..add('minShort', minShort) + ..add('maxShort', maxShort) + ..add('integer', integer) + ..add('minInteger', minInteger) + ..add('maxInteger', maxInteger) + ..add('long', long) + ..add('minLong', minLong) + ..add('maxLong', maxLong) + ..add('float', float) + ..add('minFloat', minFloat) + ..add('maxFloat', maxFloat); return helper.toString(); } } @@ -176,21 +131,18 @@ abstract class MalformedRangeOverrideInput class MalformedRangeOverrideInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedRangeOverrideInputRestJson1Serializer() - : super('MalformedRangeOverrideInput'); + : super('MalformedRangeOverrideInput'); @override Iterable get types => const [ - MalformedRangeOverrideInput, - _$MalformedRangeOverrideInput, - ]; + MalformedRangeOverrideInput, + _$MalformedRangeOverrideInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRangeOverrideInput deserialize( @@ -209,80 +161,110 @@ class MalformedRangeOverrideInputRestJson1Serializer } switch (key) { case 'byte': - result.byte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxByte': - result.maxByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxFloat': - result.maxFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.maxFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'maxInteger': - result.maxInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxLong': - result.maxLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.maxLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxShort': - result.maxShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minByte': - result.minByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minFloat': - result.minFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.minFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'minInteger': - result.minInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minLong': - result.minLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.minLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'minShort': - result.minShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -311,127 +293,120 @@ class MalformedRangeOverrideInputRestJson1Serializer :minInteger, :minLong, :minShort, - :short + :short, ) = object; if (byte != null) { result$ ..add('byte') - ..add(serializers.serialize( - byte, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(byte, specifiedType: const FullType(int))); } if (float != null) { result$ ..add('float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (integer != null) { result$ ..add('integer') - ..add(serializers.serialize( - integer, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(integer, specifiedType: const FullType(int)), + ); } if (long != null) { result$ ..add('long') - ..add(serializers.serialize( - long, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize(long, specifiedType: const FullType(_i3.Int64)), + ); } if (maxByte != null) { result$ ..add('maxByte') - ..add(serializers.serialize( - maxByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxByte, specifiedType: const FullType(int)), + ); } if (maxFloat != null) { result$ ..add('maxFloat') - ..add(serializers.serialize( - maxFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + maxFloat, + specifiedType: const FullType(double), + ), + ); } if (maxInteger != null) { result$ ..add('maxInteger') - ..add(serializers.serialize( - maxInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxInteger, specifiedType: const FullType(int)), + ); } if (maxLong != null) { result$ ..add('maxLong') - ..add(serializers.serialize( - maxLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + maxLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (maxShort != null) { result$ ..add('maxShort') - ..add(serializers.serialize( - maxShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxShort, specifiedType: const FullType(int)), + ); } if (minByte != null) { result$ ..add('minByte') - ..add(serializers.serialize( - minByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minByte, specifiedType: const FullType(int)), + ); } if (minFloat != null) { result$ ..add('minFloat') - ..add(serializers.serialize( - minFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + minFloat, + specifiedType: const FullType(double), + ), + ); } if (minInteger != null) { result$ ..add('minInteger') - ..add(serializers.serialize( - minInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minInteger, specifiedType: const FullType(int)), + ); } if (minLong != null) { result$ ..add('minLong') - ..add(serializers.serialize( - minLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + minLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (minShort != null) { result$ ..add('minShort') - ..add(serializers.serialize( - minShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minShort, specifiedType: const FullType(int)), + ); } if (short != null) { result$ ..add('short') - ..add(serializers.serialize( - short, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(short, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart index 8ed5634c5c..bdc86120c5 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart @@ -38,32 +38,32 @@ class _$MalformedRangeOverrideInput extends MalformedRangeOverrideInput { @override final double? maxFloat; - factory _$MalformedRangeOverrideInput( - [void Function(MalformedRangeOverrideInputBuilder)? updates]) => - (new MalformedRangeOverrideInputBuilder()..update(updates))._build(); - - _$MalformedRangeOverrideInput._( - {this.byte, - this.minByte, - this.maxByte, - this.short, - this.minShort, - this.maxShort, - this.integer, - this.minInteger, - this.maxInteger, - this.long, - this.minLong, - this.maxLong, - this.float, - this.minFloat, - this.maxFloat}) - : super._(); + factory _$MalformedRangeOverrideInput([ + void Function(MalformedRangeOverrideInputBuilder)? updates, + ]) => (new MalformedRangeOverrideInputBuilder()..update(updates))._build(); + + _$MalformedRangeOverrideInput._({ + this.byte, + this.minByte, + this.maxByte, + this.short, + this.minShort, + this.maxShort, + this.integer, + this.minInteger, + this.maxInteger, + this.long, + this.minLong, + this.maxLong, + this.float, + this.minFloat, + this.maxFloat, + }) : super._(); @override MalformedRangeOverrideInput rebuild( - void Function(MalformedRangeOverrideInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRangeOverrideInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRangeOverrideInputBuilder toBuilder() => @@ -115,8 +115,10 @@ class _$MalformedRangeOverrideInput extends MalformedRangeOverrideInput { class MalformedRangeOverrideInputBuilder implements - Builder { + Builder< + MalformedRangeOverrideInput, + MalformedRangeOverrideInputBuilder + > { _$MalformedRangeOverrideInput? _$v; int? _byte; @@ -219,23 +221,25 @@ class MalformedRangeOverrideInputBuilder MalformedRangeOverrideInput build() => _build(); _$MalformedRangeOverrideInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRangeOverrideInput._( - byte: byte, - minByte: minByte, - maxByte: maxByte, - short: short, - minShort: minShort, - maxShort: maxShort, - integer: integer, - minInteger: minInteger, - maxInteger: maxInteger, - long: long, - minLong: minLong, - maxLong: maxLong, - float: float, - minFloat: minFloat, - maxFloat: maxFloat); + byte: byte, + minByte: minByte, + maxByte: maxByte, + short: short, + minShort: minShort, + maxShort: maxShort, + integer: integer, + minInteger: minInteger, + maxInteger: maxInteger, + long: long, + minLong: minLong, + maxLong: maxLong, + float: float, + minFloat: minFloat, + maxFloat: maxFloat, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart index 3e96d40a61..644e25102f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_required_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,9 +30,9 @@ abstract class MalformedRequiredInput ); } - factory MalformedRequiredInput.build( - [void Function(MalformedRequiredInputBuilder) updates]) = - _$MalformedRequiredInput; + factory MalformedRequiredInput.build([ + void Function(MalformedRequiredInputBuilder) updates, + ]) = _$MalformedRequiredInput; const MalformedRequiredInput._(); @@ -40,19 +40,18 @@ abstract class MalformedRequiredInput MalformedRequiredInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedRequiredInput.build((b) { - b.string = payload.string; - if (request.headers['string-in-headers'] != null) { - b.stringInHeader = request.headers['string-in-headers']!; - } - if (request.queryParameters['stringInQuery'] != null) { - b.stringInQuery = request.queryParameters['stringInQuery']!; - } - }); + }) => MalformedRequiredInput.build((b) { + b.string = payload.string; + if (request.headers['string-in-headers'] != null) { + b.stringInHeader = request.headers['string-in-headers']!; + } + if (request.queryParameters['stringInQuery'] != null) { + b.stringInQuery = request.queryParameters['stringInQuery']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedRequiredInputRestJson1Serializer()]; + serializers = [MalformedRequiredInputRestJson1Serializer()]; String get string; String get stringInQuery; @@ -64,41 +63,30 @@ abstract class MalformedRequiredInput }); @override - List get props => [ - string, - stringInQuery, - stringInHeader, - ]; + List get props => [string, stringInQuery, stringInHeader]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRequiredInput') - ..add( - 'string', - string, - ) - ..add( - 'stringInQuery', - stringInQuery, - ) - ..add( - 'stringInHeader', - stringInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedRequiredInput') + ..add('string', string) + ..add('stringInQuery', stringInQuery) + ..add('stringInHeader', stringInHeader); return helper.toString(); } } @_i3.internal abstract class MalformedRequiredInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory MalformedRequiredInputPayload( - [void Function(MalformedRequiredInputPayloadBuilder) updates]) = - _$MalformedRequiredInputPayload; + Built< + MalformedRequiredInputPayload, + MalformedRequiredInputPayloadBuilder + > { + factory MalformedRequiredInputPayload([ + void Function(MalformedRequiredInputPayloadBuilder) updates, + ]) = _$MalformedRequiredInputPayload; const MalformedRequiredInputPayload._(); @@ -109,10 +97,7 @@ abstract class MalformedRequiredInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedRequiredInputPayload') - ..add( - 'string', - string, - ); + ..add('string', string); return helper.toString(); } } @@ -120,23 +105,20 @@ abstract class MalformedRequiredInputPayload class MalformedRequiredInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedRequiredInputRestJson1Serializer() - : super('MalformedRequiredInput'); + : super('MalformedRequiredInput'); @override Iterable get types => const [ - MalformedRequiredInput, - _$MalformedRequiredInput, - MalformedRequiredInputPayload, - _$MalformedRequiredInputPayload, - ]; + MalformedRequiredInput, + _$MalformedRequiredInput, + MalformedRequiredInputPayload, + _$MalformedRequiredInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRequiredInputPayload deserialize( @@ -155,10 +137,12 @@ class MalformedRequiredInputRestJson1Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -175,10 +159,7 @@ class MalformedRequiredInputRestJson1Serializer final MalformedRequiredInputPayload(:string) = object; result$.addAll([ 'string', - serializers.serialize( - string, - specifiedType: const FullType(String), - ), + serializers.serialize(string, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart index 12b97cea25..544d152457 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart @@ -14,27 +14,36 @@ class _$MalformedRequiredInput extends MalformedRequiredInput { @override final String stringInHeader; - factory _$MalformedRequiredInput( - [void Function(MalformedRequiredInputBuilder)? updates]) => - (new MalformedRequiredInputBuilder()..update(updates))._build(); - - _$MalformedRequiredInput._( - {required this.string, - required this.stringInQuery, - required this.stringInHeader}) - : super._() { + factory _$MalformedRequiredInput([ + void Function(MalformedRequiredInputBuilder)? updates, + ]) => (new MalformedRequiredInputBuilder()..update(updates))._build(); + + _$MalformedRequiredInput._({ + required this.string, + required this.stringInQuery, + required this.stringInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInput', 'string'); + string, + r'MalformedRequiredInput', + 'string', + ); BuiltValueNullFieldError.checkNotNull( - stringInQuery, r'MalformedRequiredInput', 'stringInQuery'); + stringInQuery, + r'MalformedRequiredInput', + 'stringInQuery', + ); BuiltValueNullFieldError.checkNotNull( - stringInHeader, r'MalformedRequiredInput', 'stringInHeader'); + stringInHeader, + r'MalformedRequiredInput', + 'stringInHeader', + ); } @override MalformedRequiredInput rebuild( - void Function(MalformedRequiredInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRequiredInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRequiredInputBuilder toBuilder() => @@ -106,14 +115,25 @@ class MalformedRequiredInputBuilder MalformedRequiredInput build() => _build(); _$MalformedRequiredInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRequiredInput._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInput', 'string'), - stringInQuery: BuiltValueNullFieldError.checkNotNull( - stringInQuery, r'MalformedRequiredInput', 'stringInQuery'), - stringInHeader: BuiltValueNullFieldError.checkNotNull( - stringInHeader, r'MalformedRequiredInput', 'stringInHeader')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'MalformedRequiredInput', + 'string', + ), + stringInQuery: BuiltValueNullFieldError.checkNotNull( + stringInQuery, + r'MalformedRequiredInput', + 'stringInQuery', + ), + stringInHeader: BuiltValueNullFieldError.checkNotNull( + stringInHeader, + r'MalformedRequiredInput', + 'stringInHeader', + ), + ); replace(_$result); return _$result; } @@ -123,19 +143,22 @@ class _$MalformedRequiredInputPayload extends MalformedRequiredInputPayload { @override final String string; - factory _$MalformedRequiredInputPayload( - [void Function(MalformedRequiredInputPayloadBuilder)? updates]) => - (new MalformedRequiredInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedRequiredInputPayload([ + void Function(MalformedRequiredInputPayloadBuilder)? updates, + ]) => (new MalformedRequiredInputPayloadBuilder()..update(updates))._build(); _$MalformedRequiredInputPayload._({required this.string}) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInputPayload', 'string'); + string, + r'MalformedRequiredInputPayload', + 'string', + ); } @override MalformedRequiredInputPayload rebuild( - void Function(MalformedRequiredInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRequiredInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRequiredInputPayloadBuilder toBuilder() => @@ -158,8 +181,10 @@ class _$MalformedRequiredInputPayload extends MalformedRequiredInputPayload { class MalformedRequiredInputPayloadBuilder implements - Builder { + Builder< + MalformedRequiredInputPayload, + MalformedRequiredInputPayloadBuilder + > { _$MalformedRequiredInputPayload? _$v; String? _string; @@ -192,10 +217,15 @@ class MalformedRequiredInputPayloadBuilder MalformedRequiredInputPayload build() => _build(); _$MalformedRequiredInputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRequiredInputPayload._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInputPayload', 'string')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'MalformedRequiredInputPayload', + 'string', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart index d1a670d95d..568c4a9cc9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.malformed_unique_items_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -55,20 +55,22 @@ abstract class MalformedUniqueItemsInput httpDateList: httpDateList == null ? null : _i5.BuiltSet(httpDateList), enumList: enumList == null ? null : _i5.BuiltSet(enumList), intEnumList: intEnumList == null ? null : _i5.BuiltSet(intEnumList), - listList: listList == null - ? null - : _i5.BuiltSet(listList.map((el) => _i5.BuiltList(el))), + listList: + listList == null + ? null + : _i5.BuiltSet(listList.map((el) => _i5.BuiltList(el))), structureList: structureList == null ? null : _i5.BuiltSet(structureList), - structureListWithNoKey: structureListWithNoKey == null - ? null - : _i5.BuiltSet(structureListWithNoKey), + structureListWithNoKey: + structureListWithNoKey == null + ? null + : _i5.BuiltSet(structureListWithNoKey), unionList: unionList == null ? null : _i5.BuiltSet(unionList), ); } - factory MalformedUniqueItemsInput.build( - [void Function(MalformedUniqueItemsInputBuilder) updates]) = - _$MalformedUniqueItemsInput; + factory MalformedUniqueItemsInput.build([ + void Function(MalformedUniqueItemsInputBuilder) updates, + ]) = _$MalformedUniqueItemsInput; const MalformedUniqueItemsInput._(); @@ -76,11 +78,10 @@ abstract class MalformedUniqueItemsInput MalformedUniqueItemsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedUniqueItemsInputRestJson1Serializer()]; + serializers = [MalformedUniqueItemsInputRestJson1Serializer()]; _i5.BuiltSet<_i3.Uint8List>? get blobList; _i5.BuiltSet? get booleanList; @@ -103,91 +104,44 @@ abstract class MalformedUniqueItemsInput @override List get props => [ - blobList, - booleanList, - stringList, - byteList, - shortList, - integerList, - longList, - timestampList, - dateTimeList, - httpDateList, - enumList, - intEnumList, - listList, - structureList, - structureListWithNoKey, - unionList, - ]; + blobList, + booleanList, + stringList, + byteList, + shortList, + integerList, + longList, + timestampList, + dateTimeList, + httpDateList, + enumList, + intEnumList, + listList, + structureList, + structureListWithNoKey, + unionList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedUniqueItemsInput') - ..add( - 'blobList', - blobList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'stringList', - stringList, - ) - ..add( - 'byteList', - byteList, - ) - ..add( - 'shortList', - shortList, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'longList', - longList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'dateTimeList', - dateTimeList, - ) - ..add( - 'httpDateList', - httpDateList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'listList', - listList, - ) - ..add( - 'structureList', - structureList, - ) - ..add( - 'structureListWithNoKey', - structureListWithNoKey, - ) - ..add( - 'unionList', - unionList, - ); + final helper = + newBuiltValueToStringHelper('MalformedUniqueItemsInput') + ..add('blobList', blobList) + ..add('booleanList', booleanList) + ..add('stringList', stringList) + ..add('byteList', byteList) + ..add('shortList', shortList) + ..add('integerList', integerList) + ..add('longList', longList) + ..add('timestampList', timestampList) + ..add('dateTimeList', dateTimeList) + ..add('httpDateList', httpDateList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('listList', listList) + ..add('structureList', structureList) + ..add('structureListWithNoKey', structureListWithNoKey) + ..add('unionList', unionList); return helper.toString(); } } @@ -195,21 +149,18 @@ abstract class MalformedUniqueItemsInput class MalformedUniqueItemsInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedUniqueItemsInputRestJson1Serializer() - : super('MalformedUniqueItemsInput'); + : super('MalformedUniqueItemsInput'); @override Iterable get types => const [ - MalformedUniqueItemsInput, - _$MalformedUniqueItemsInput, - ]; + MalformedUniqueItemsInput, + _$MalformedUniqueItemsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedUniqueItemsInput deserialize( @@ -228,138 +179,155 @@ class MalformedUniqueItemsInputRestJson1Serializer } switch (key) { case 'blobList': - result.blobList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i3.Uint8List)], - ), - ) as _i5.BuiltSet<_i3.Uint8List>)); + result.blobList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i3.Uint8List), + ]), + ) + as _i5.BuiltSet<_i3.Uint8List>), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(bool)], - ), - ) as _i5.BuiltSet)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(bool)]), + ) + as _i5.BuiltSet), + ); case 'byteList': - result.byteList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.byteList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'dateTimeList': - result.dateTimeList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], - ), - ) as _i5.BuiltSet)); + result.dateTimeList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltSet), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i5.BuiltSet)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltSet), + ); case 'httpDateList': - result.httpDateList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], - ), - ) as _i5.BuiltSet)); + result.httpDateList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltSet), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'listList': - result.listList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [ - FullType( - _i5.BuiltList, - [FullType(String)], + result.listList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i5.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i5.BuiltSet<_i5.BuiltList>)); + as _i5.BuiltSet<_i5.BuiltList>), + ); case 'longList': - result.longList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i4.Int64)], - ), - ) as _i5.BuiltSet<_i4.Int64>)); + result.longList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i4.Int64), + ]), + ) + as _i5.BuiltSet<_i4.Int64>), + ); case 'shortList': - result.shortList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.shortList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], - ), - ) as _i5.BuiltSet)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(String), + ]), + ) + as _i5.BuiltSet), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(GreetingStruct)], - ), - ) as _i5.BuiltSet)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(GreetingStruct), + ]), + ) + as _i5.BuiltSet), + ); case 'structureListWithNoKey': - result.structureListWithNoKey.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(MissingKeyStructure)], - ), - ) as _i5.BuiltSet)); + result.structureListWithNoKey.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(MissingKeyStructure), + ]), + ) + as _i5.BuiltSet), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], - ), - ) as _i5.BuiltSet)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltSet), + ); case 'unionList': - result.unionList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooUnion)], - ), - ) as _i5.BuiltSet)); + result.unionList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(FooUnion), + ]), + ) + as _i5.BuiltSet), + ); } } @@ -389,188 +357,175 @@ class MalformedUniqueItemsInputRestJson1Serializer :structureList, :structureListWithNoKey, :timestampList, - :unionList + :unionList, ) = object; if (blobList != null) { result$ ..add('blobList') - ..add(serializers.serialize( - blobList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i3.Uint8List)], + ..add( + serializers.serialize( + blobList, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i3.Uint8List), + ]), ), - )); + ); } if (booleanList != null) { result$ ..add('booleanList') - ..add(serializers.serialize( - booleanList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(bool)], + ..add( + serializers.serialize( + booleanList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(bool)]), ), - )); + ); } if (byteList != null) { result$ ..add('byteList') - ..add(serializers.serialize( - byteList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + byteList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), ), - )); + ); } if (dateTimeList != null) { result$ ..add('dateTimeList') - ..add(serializers.serialize( - dateTimeList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], + ..add( + serializers.serialize( + dateTimeList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(DateTime)]), ), - )); + ); } if (enumList != null) { result$ ..add('enumList') - ..add(serializers.serialize( - enumList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooEnum)], + ..add( + serializers.serialize( + enumList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (httpDateList != null) { result$ ..add('httpDateList') - ..add(serializers.serialize( - httpDateList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], + ..add( + serializers.serialize( + httpDateList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(DateTime)]), ), - )); + ); } if (intEnumList != null) { result$ ..add('intEnumList') - ..add(serializers.serialize( - intEnumList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + intEnumList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), ), - )); + ); } if (integerList != null) { result$ ..add('integerList') - ..add(serializers.serialize( - integerList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + integerList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), ), - )); + ); } if (listList != null) { result$ ..add('listList') - ..add(serializers.serialize( - listList, - specifiedType: const FullType( - _i5.BuiltSet, - [ - FullType( - _i5.BuiltList, - [FullType(String)], - ) - ], + ..add( + serializers.serialize( + listList, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i5.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (longList != null) { result$ ..add('longList') - ..add(serializers.serialize( - longList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i4.Int64)], + ..add( + serializers.serialize( + longList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(_i4.Int64)]), ), - )); + ); } if (shortList != null) { result$ ..add('shortList') - ..add(serializers.serialize( - shortList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + shortList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), ), - )); + ); } if (stringList != null) { result$ ..add('stringList') - ..add(serializers.serialize( - stringList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], + ..add( + serializers.serialize( + stringList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add('structureList') - ..add(serializers.serialize( - structureList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(GreetingStruct)], + ..add( + serializers.serialize( + structureList, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(GreetingStruct), + ]), ), - )); + ); } if (structureListWithNoKey != null) { result$ ..add('structureListWithNoKey') - ..add(serializers.serialize( - structureListWithNoKey, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(MissingKeyStructure)], + ..add( + serializers.serialize( + structureListWithNoKey, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(MissingKeyStructure), + ]), ), - )); + ); } if (timestampList != null) { result$ ..add('timestampList') - ..add(serializers.serialize( - timestampList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], + ..add( + serializers.serialize( + timestampList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(DateTime)]), ), - )); + ); } if (unionList != null) { result$ ..add('unionList') - ..add(serializers.serialize( - unionList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooUnion)], + ..add( + serializers.serialize( + unionList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(FooUnion)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart index dd4e7569a5..77718be0c7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart @@ -40,33 +40,33 @@ class _$MalformedUniqueItemsInput extends MalformedUniqueItemsInput { @override final _i5.BuiltSet? unionList; - factory _$MalformedUniqueItemsInput( - [void Function(MalformedUniqueItemsInputBuilder)? updates]) => - (new MalformedUniqueItemsInputBuilder()..update(updates))._build(); - - _$MalformedUniqueItemsInput._( - {this.blobList, - this.booleanList, - this.stringList, - this.byteList, - this.shortList, - this.integerList, - this.longList, - this.timestampList, - this.dateTimeList, - this.httpDateList, - this.enumList, - this.intEnumList, - this.listList, - this.structureList, - this.structureListWithNoKey, - this.unionList}) - : super._(); + factory _$MalformedUniqueItemsInput([ + void Function(MalformedUniqueItemsInputBuilder)? updates, + ]) => (new MalformedUniqueItemsInputBuilder()..update(updates))._build(); + + _$MalformedUniqueItemsInput._({ + this.blobList, + this.booleanList, + this.stringList, + this.byteList, + this.shortList, + this.integerList, + this.longList, + this.timestampList, + this.dateTimeList, + this.httpDateList, + this.enumList, + this.intEnumList, + this.listList, + this.structureList, + this.structureListWithNoKey, + this.unionList, + }) : super._(); @override MalformedUniqueItemsInput rebuild( - void Function(MalformedUniqueItemsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedUniqueItemsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedUniqueItemsInputBuilder toBuilder() => @@ -211,8 +211,8 @@ class MalformedUniqueItemsInputBuilder _$this._structureListWithNoKey ??= new _i5.SetBuilder(); set structureListWithNoKey( - _i5.SetBuilder? structureListWithNoKey) => - _$this._structureListWithNoKey = structureListWithNoKey; + _i5.SetBuilder? structureListWithNoKey, + ) => _$this._structureListWithNoKey = structureListWithNoKey; _i5.SetBuilder? _unionList; _i5.SetBuilder get unionList => @@ -263,24 +263,26 @@ class MalformedUniqueItemsInputBuilder _$MalformedUniqueItemsInput _build() { _$MalformedUniqueItemsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedUniqueItemsInput._( - blobList: _blobList?.build(), - booleanList: _booleanList?.build(), - stringList: _stringList?.build(), - byteList: _byteList?.build(), - shortList: _shortList?.build(), - integerList: _integerList?.build(), - longList: _longList?.build(), - timestampList: _timestampList?.build(), - dateTimeList: _dateTimeList?.build(), - httpDateList: _httpDateList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - listList: _listList?.build(), - structureList: _structureList?.build(), - structureListWithNoKey: _structureListWithNoKey?.build(), - unionList: _unionList?.build()); + blobList: _blobList?.build(), + booleanList: _booleanList?.build(), + stringList: _stringList?.build(), + byteList: _byteList?.build(), + shortList: _shortList?.build(), + integerList: _integerList?.build(), + longList: _longList?.build(), + timestampList: _timestampList?.build(), + dateTimeList: _dateTimeList?.build(), + httpDateList: _httpDateList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + listList: _listList?.build(), + structureList: _structureList?.build(), + structureListWithNoKey: _structureListWithNoKey?.build(), + unionList: _unionList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -318,7 +320,10 @@ class MalformedUniqueItemsInputBuilder _unionList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedUniqueItemsInput', _$failedField, e.toString()); + r'MalformedUniqueItemsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart index 8ff4e595e5..e2dd5d9eb7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.missing_key_structure; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,14 @@ abstract class MissingKeyStructure return _$MissingKeyStructure._(hi: hi); } - factory MissingKeyStructure.build( - [void Function(MissingKeyStructureBuilder) updates]) = - _$MissingKeyStructure; + factory MissingKeyStructure.build([ + void Function(MissingKeyStructureBuilder) updates, + ]) = _$MissingKeyStructure; const MissingKeyStructure._(); static const List<_i2.SmithySerializer> serializers = [ - MissingKeyStructureRestJson1Serializer() + MissingKeyStructureRestJson1Serializer(), ]; String get hi; @@ -34,10 +34,7 @@ abstract class MissingKeyStructure @override String toString() { final helper = newBuiltValueToStringHelper('MissingKeyStructure') - ..add( - 'hi', - hi, - ); + ..add('hi', hi); return helper.toString(); } } @@ -48,17 +45,14 @@ class MissingKeyStructureRestJson1Serializer @override Iterable get types => const [ - MissingKeyStructure, - _$MissingKeyStructure, - ]; + MissingKeyStructure, + _$MissingKeyStructure, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingKeyStructure deserialize( @@ -77,10 +71,12 @@ class MissingKeyStructureRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +93,7 @@ class MissingKeyStructureRestJson1Serializer final MissingKeyStructure(:hi) = object; result$.addAll([ 'hi', - serializers.serialize( - hi, - specifiedType: const FullType(String), - ), + serializers.serialize(hi, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart index 2401470671..d7f80168a7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart @@ -10,9 +10,9 @@ class _$MissingKeyStructure extends MissingKeyStructure { @override final String hi; - factory _$MissingKeyStructure( - [void Function(MissingKeyStructureBuilder)? updates]) => - (new MissingKeyStructureBuilder()..update(updates))._build(); + factory _$MissingKeyStructure([ + void Function(MissingKeyStructureBuilder)? updates, + ]) => (new MissingKeyStructureBuilder()..update(updates))._build(); _$MissingKeyStructure._({required this.hi}) : super._() { BuiltValueNullFieldError.checkNotNull(hi, r'MissingKeyStructure', 'hi'); @@ -20,8 +20,8 @@ class _$MissingKeyStructure extends MissingKeyStructure { @override MissingKeyStructure rebuild( - void Function(MissingKeyStructureBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MissingKeyStructureBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MissingKeyStructureBuilder toBuilder() => @@ -76,10 +76,15 @@ class MissingKeyStructureBuilder MissingKeyStructure build() => _build(); _$MissingKeyStructure _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MissingKeyStructure._( - hi: BuiltValueNullFieldError.checkNotNull( - hi, r'MissingKeyStructure', 'hi')); + hi: BuiltValueNullFieldError.checkNotNull( + hi, + r'MissingKeyStructure', + 'hi', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart index fc5e62cc12..5cb9f33e15 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart index 5e80e0b97e..98b769efa0 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.pattern_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,13 +14,11 @@ sealed class PatternUnion extends _i1.SmithyUnion { const factory PatternUnion.second(String second) = PatternUnionSecond$; - const factory PatternUnion.sdkUnknown( - String name, - Object value, - ) = PatternUnionSdkUnknown$; + const factory PatternUnion.sdkUnknown(String name, Object value) = + PatternUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - PatternUnionRestJson1Serializer() + PatternUnionRestJson1Serializer(), ]; String? get first => null; @@ -34,16 +32,10 @@ sealed class PatternUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'PatternUnion'); if (first != null) { - helper.add( - r'first', - first, - ); + helper.add(r'first', first); } if (second != null) { - helper.add( - r'second', - second, - ); + helper.add(r'second', second); } return helper.toString(); } @@ -70,10 +62,7 @@ final class PatternUnionSecond$ extends PatternUnion { } final class PatternUnionSdkUnknown$ extends PatternUnion { - const PatternUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const PatternUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,18 +77,15 @@ class PatternUnionRestJson1Serializer @override Iterable get types => const [ - PatternUnion, - PatternUnionFirst$, - PatternUnionSecond$, - ]; + PatternUnion, + PatternUnionFirst$, + PatternUnionSecond$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PatternUnion deserialize( @@ -110,20 +96,17 @@ class PatternUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionFirst$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionFirst$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'second': - return PatternUnionSecond$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionSecond$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return PatternUnion.sdkUnknown( - key, - value, - ); + return PatternUnion.sdkUnknown(key, value); } @override @@ -136,13 +119,13 @@ class PatternUnionRestJson1Serializer object.name, switch (object) { PatternUnionFirst$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionSecond$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart index 24ec111f95..4b1fbdd434 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.pattern_union_override; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,13 +17,11 @@ sealed class PatternUnionOverride const factory PatternUnionOverride.second(String second) = PatternUnionOverrideSecond$; - const factory PatternUnionOverride.sdkUnknown( - String name, - Object value, - ) = PatternUnionOverrideSdkUnknown$; + const factory PatternUnionOverride.sdkUnknown(String name, Object value) = + PatternUnionOverrideSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - PatternUnionOverrideRestJson1Serializer() + PatternUnionOverrideRestJson1Serializer(), ]; String? get first => null; @@ -37,16 +35,10 @@ sealed class PatternUnionOverride String toString() { final helper = newBuiltValueToStringHelper(r'PatternUnionOverride'); if (first != null) { - helper.add( - r'first', - first, - ); + helper.add(r'first', first); } if (second != null) { - helper.add( - r'second', - second, - ); + helper.add(r'second', second); } return helper.toString(); } @@ -73,10 +65,7 @@ final class PatternUnionOverrideSecond$ extends PatternUnionOverride { } final class PatternUnionOverrideSdkUnknown$ extends PatternUnionOverride { - const PatternUnionOverrideSdkUnknown$( - this.name, - this.value, - ) : super._(); + const PatternUnionOverrideSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,22 +77,19 @@ final class PatternUnionOverrideSdkUnknown$ extends PatternUnionOverride { class PatternUnionOverrideRestJson1Serializer extends _i1.StructuredSmithySerializer { const PatternUnionOverrideRestJson1Serializer() - : super('PatternUnionOverride'); + : super('PatternUnionOverride'); @override Iterable get types => const [ - PatternUnionOverride, - PatternUnionOverrideFirst$, - PatternUnionOverrideSecond$, - ]; + PatternUnionOverride, + PatternUnionOverrideFirst$, + PatternUnionOverrideSecond$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PatternUnionOverride deserialize( @@ -114,20 +100,17 @@ class PatternUnionOverrideRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionOverrideFirst$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionOverrideFirst$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'second': - return PatternUnionOverrideSecond$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionOverrideSecond$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return PatternUnionOverride.sdkUnknown( - key, - value, - ); + return PatternUnionOverride.sdkUnknown(key, value); } @override @@ -140,13 +123,13 @@ class PatternUnionOverrideRestJson1Serializer object.name, switch (object) { PatternUnionOverrideFirst$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionOverrideSecond$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionOverrideSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart index 8f0a0b15be..b95264b3d0 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart @@ -1,30 +1,18 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.recursive_enum_string; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class RecursiveEnumString extends _i1.SmithyEnum { - const RecursiveEnumString._( - super.index, - super.name, - super.value, - ); + const RecursiveEnumString._(super.index, super.name, super.value); const RecursiveEnumString._sdkUnknown(super.value) : super.sdkUnknown(); - static const abc = RecursiveEnumString._( - 0, - 'ABC', - 'abc', - ); + static const abc = RecursiveEnumString._(0, 'ABC', 'abc'); - static const def = RecursiveEnumString._( - 1, - 'DEF', - 'def', - ); + static const def = RecursiveEnumString._(1, 'DEF', 'def'); /// All values of [RecursiveEnumString]. static const values = [ @@ -38,12 +26,9 @@ class RecursiveEnumString extends _i1.SmithyEnum { values: values, sdkUnknown: RecursiveEnumString._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart index f5325648d0..2429ba6293 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.recursive_structures_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class RecursiveStructuresInput return _$RecursiveStructuresInput._(union: union); } - factory RecursiveStructuresInput.build( - [void Function(RecursiveStructuresInputBuilder) updates]) = - _$RecursiveStructuresInput; + factory RecursiveStructuresInput.build([ + void Function(RecursiveStructuresInputBuilder) updates, + ]) = _$RecursiveStructuresInput; const RecursiveStructuresInput._(); @@ -31,11 +31,10 @@ abstract class RecursiveStructuresInput RecursiveStructuresInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [RecursiveStructuresInputRestJson1Serializer()]; + serializers = [RecursiveStructuresInputRestJson1Serializer()]; RecursiveUnionOne? get union; @override @@ -47,10 +46,7 @@ abstract class RecursiveStructuresInput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveStructuresInput') - ..add( - 'union', - union, - ); + ..add('union', union); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class RecursiveStructuresInput class RecursiveStructuresInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const RecursiveStructuresInputRestJson1Serializer() - : super('RecursiveStructuresInput'); + : super('RecursiveStructuresInput'); @override Iterable get types => const [ - RecursiveStructuresInput, - _$RecursiveStructuresInput, - ]; + RecursiveStructuresInput, + _$RecursiveStructuresInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveStructuresInput deserialize( @@ -91,10 +84,12 @@ class RecursiveStructuresInputRestJson1Serializer } switch (key) { case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ) as RecursiveUnionOne); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionOne), + ) + as RecursiveUnionOne); } } @@ -112,10 +107,12 @@ class RecursiveStructuresInputRestJson1Serializer if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(RecursiveUnionOne), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(RecursiveUnionOne), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart index 3ddf632e4d..b9d6a8cba3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart @@ -10,16 +10,16 @@ class _$RecursiveStructuresInput extends RecursiveStructuresInput { @override final RecursiveUnionOne? union; - factory _$RecursiveStructuresInput( - [void Function(RecursiveStructuresInputBuilder)? updates]) => - (new RecursiveStructuresInputBuilder()..update(updates))._build(); + factory _$RecursiveStructuresInput([ + void Function(RecursiveStructuresInputBuilder)? updates, + ]) => (new RecursiveStructuresInputBuilder()..update(updates))._build(); _$RecursiveStructuresInput._({this.union}) : super._(); @override RecursiveStructuresInput rebuild( - void Function(RecursiveStructuresInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveStructuresInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveStructuresInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart index 52ae9c73cf..7cf961333c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.recursive_union_one; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,13 +18,11 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { const factory RecursiveUnionOne.union(RecursiveUnionTwo union) = RecursiveUnionOneUnion$; - const factory RecursiveUnionOne.sdkUnknown( - String name, - Object value, - ) = RecursiveUnionOneSdkUnknown$; + const factory RecursiveUnionOne.sdkUnknown(String name, Object value) = + RecursiveUnionOneSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - RecursiveUnionOneRestJson1Serializer() + RecursiveUnionOneRestJson1Serializer(), ]; RecursiveEnumString? get string => null; @@ -38,16 +36,10 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'RecursiveUnionOne'); if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } if (union != null) { - helper.add( - r'union', - union, - ); + helper.add(r'union', union); } return helper.toString(); } @@ -74,10 +66,7 @@ final class RecursiveUnionOneUnion$ extends RecursiveUnionOne { } final class RecursiveUnionOneSdkUnknown$ extends RecursiveUnionOne { - const RecursiveUnionOneSdkUnknown$( - this.name, - this.value, - ) : super._(); + const RecursiveUnionOneSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -92,18 +81,15 @@ class RecursiveUnionOneRestJson1Serializer @override Iterable get types => const [ - RecursiveUnionOne, - RecursiveUnionOneString$, - RecursiveUnionOneUnion$, - ]; + RecursiveUnionOne, + RecursiveUnionOneString$, + RecursiveUnionOneUnion$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveUnionOne deserialize( @@ -114,20 +100,23 @@ class RecursiveUnionOneRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionOneString$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ) as RecursiveEnumString)); + return RecursiveUnionOneString$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveEnumString), + ) + as RecursiveEnumString), + ); case 'union': - return RecursiveUnionOneUnion$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionTwo), - ) as RecursiveUnionTwo)); + return RecursiveUnionOneUnion$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionTwo), + ) + as RecursiveUnionTwo), + ); } - return RecursiveUnionOne.sdkUnknown( - key, - value, - ); + return RecursiveUnionOne.sdkUnknown(key, value); } @override @@ -140,13 +129,13 @@ class RecursiveUnionOneRestJson1Serializer object.name, switch (object) { RecursiveUnionOneString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ), + value, + specifiedType: const FullType(RecursiveEnumString), + ), RecursiveUnionOneUnion$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveUnionTwo), - ), + value, + specifiedType: const FullType(RecursiveUnionTwo), + ), RecursiveUnionOneSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart index 2bbcbb4181..41d3db7114 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.recursive_union_two; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,13 +18,11 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { const factory RecursiveUnionTwo.union(RecursiveUnionOne union) = RecursiveUnionTwoUnion$; - const factory RecursiveUnionTwo.sdkUnknown( - String name, - Object value, - ) = RecursiveUnionTwoSdkUnknown$; + const factory RecursiveUnionTwo.sdkUnknown(String name, Object value) = + RecursiveUnionTwoSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - RecursiveUnionTwoRestJson1Serializer() + RecursiveUnionTwoRestJson1Serializer(), ]; RecursiveEnumString? get string => null; @@ -38,16 +36,10 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'RecursiveUnionTwo'); if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } if (union != null) { - helper.add( - r'union', - union, - ); + helper.add(r'union', union); } return helper.toString(); } @@ -74,10 +66,7 @@ final class RecursiveUnionTwoUnion$ extends RecursiveUnionTwo { } final class RecursiveUnionTwoSdkUnknown$ extends RecursiveUnionTwo { - const RecursiveUnionTwoSdkUnknown$( - this.name, - this.value, - ) : super._(); + const RecursiveUnionTwoSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -92,18 +81,15 @@ class RecursiveUnionTwoRestJson1Serializer @override Iterable get types => const [ - RecursiveUnionTwo, - RecursiveUnionTwoString$, - RecursiveUnionTwoUnion$, - ]; + RecursiveUnionTwo, + RecursiveUnionTwoString$, + RecursiveUnionTwoUnion$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveUnionTwo deserialize( @@ -114,20 +100,23 @@ class RecursiveUnionTwoRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionTwoString$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ) as RecursiveEnumString)); + return RecursiveUnionTwoString$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveEnumString), + ) + as RecursiveEnumString), + ); case 'union': - return RecursiveUnionTwoUnion$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ) as RecursiveUnionOne)); + return RecursiveUnionTwoUnion$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionOne), + ) + as RecursiveUnionOne), + ); } - return RecursiveUnionTwo.sdkUnknown( - key, - value, - ); + return RecursiveUnionTwo.sdkUnknown(key, value); } @override @@ -140,13 +129,13 @@ class RecursiveUnionTwoRestJson1Serializer object.name, switch (object) { RecursiveUnionTwoString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ), + value, + specifiedType: const FullType(RecursiveEnumString), + ), RecursiveUnionTwoUnion$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ), + value, + specifiedType: const FullType(RecursiveUnionOne), + ), RecursiveUnionTwoSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart index 12349ec078..7a9afcd6dd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart index 7d4f2f7ad5..318af1c4f9 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart index aff00882cf..cd0fb1038d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart index 8022da559b..51b2a553da 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart index 43393cc165..48d420a741 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart index e9ccadba80..b9226d46bb 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.sensitive_validation_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class SensitiveValidationInput return _$SensitiveValidationInput._(string: string); } - factory SensitiveValidationInput.build( - [void Function(SensitiveValidationInputBuilder) updates]) = - _$SensitiveValidationInput; + factory SensitiveValidationInput.build([ + void Function(SensitiveValidationInputBuilder) updates, + ]) = _$SensitiveValidationInput; const SensitiveValidationInput._(); @@ -30,11 +30,10 @@ abstract class SensitiveValidationInput SensitiveValidationInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [SensitiveValidationInputRestJson1Serializer()]; + serializers = [SensitiveValidationInputRestJson1Serializer()]; String? get string; @override @@ -46,10 +45,7 @@ abstract class SensitiveValidationInput @override String toString() { final helper = newBuiltValueToStringHelper('SensitiveValidationInput') - ..add( - 'string', - '***SENSITIVE***', - ); + ..add('string', '***SENSITIVE***'); return helper.toString(); } } @@ -57,21 +53,18 @@ abstract class SensitiveValidationInput class SensitiveValidationInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const SensitiveValidationInputRestJson1Serializer() - : super('SensitiveValidationInput'); + : super('SensitiveValidationInput'); @override Iterable get types => const [ - SensitiveValidationInput, - _$SensitiveValidationInput, - ]; + SensitiveValidationInput, + _$SensitiveValidationInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SensitiveValidationInput deserialize( @@ -90,10 +83,12 @@ class SensitiveValidationInputRestJson1Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -111,10 +106,9 @@ class SensitiveValidationInputRestJson1Serializer if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart index 42d4a3b3c2..5e9f8e98ac 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart @@ -10,16 +10,16 @@ class _$SensitiveValidationInput extends SensitiveValidationInput { @override final String? string; - factory _$SensitiveValidationInput( - [void Function(SensitiveValidationInputBuilder)? updates]) => - (new SensitiveValidationInputBuilder()..update(updates))._build(); + factory _$SensitiveValidationInput([ + void Function(SensitiveValidationInputBuilder)? updates, + ]) => (new SensitiveValidationInputBuilder()..update(updates))._build(); _$SensitiveValidationInput._({this.string}) : super._(); @override SensitiveValidationInput rebuild( - void Function(SensitiveValidationInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SensitiveValidationInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SensitiveValidationInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart index f8aa6ee227..8b31bb81b3 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.validation_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,9 +30,9 @@ abstract class ValidationException } /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints. - factory ValidationException.build( - [void Function(ValidationExceptionBuilder) updates]) = - _$ValidationException; + factory ValidationException.build([ + void Function(ValidationExceptionBuilder) updates, + ]) = _$ValidationException; const ValidationException._(); @@ -40,14 +40,13 @@ abstract class ValidationException factory ValidationException.fromResponse( ValidationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ValidationExceptionRestJson1Serializer() + ValidationExceptionRestJson1Serializer(), ]; /// A summary of the validation failure. @@ -58,9 +57,9 @@ abstract class ValidationException _i3.BuiltList? get fieldList; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ); + namespace: 'smithy.framework', + shape: 'ValidationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -75,22 +74,14 @@ abstract class ValidationException Exception? get underlyingException => null; @override - List get props => [ - message, - fieldList, - ]; + List get props => [message, fieldList]; @override String toString() { - final helper = newBuiltValueToStringHelper('ValidationException') - ..add( - 'message', - message, - ) - ..add( - 'fieldList', - fieldList, - ); + final helper = + newBuiltValueToStringHelper('ValidationException') + ..add('message', message) + ..add('fieldList', fieldList); return helper.toString(); } } @@ -101,17 +92,14 @@ class ValidationExceptionRestJson1Serializer @override Iterable get types => const [ - ValidationException, - _$ValidationException, - ]; + ValidationException, + _$ValidationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationException deserialize( @@ -130,18 +118,22 @@ class ValidationExceptionRestJson1Serializer } switch (key) { case 'fieldList': - result.fieldList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(ValidationExceptionField)], - ), - ) as _i3.BuiltList)); + result.fieldList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(ValidationExceptionField), + ]), + ) + as _i3.BuiltList), + ); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -158,21 +150,19 @@ class ValidationExceptionRestJson1Serializer final ValidationException(:fieldList, :message) = object; result$.addAll([ 'message', - serializers.serialize( - message, - specifiedType: const FullType(String), - ), + serializers.serialize(message, specifiedType: const FullType(String)), ]); if (fieldList != null) { result$ ..add('fieldList') - ..add(serializers.serialize( - fieldList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(ValidationExceptionField)], + ..add( + serializers.serialize( + fieldList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(ValidationExceptionField), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart index 2fc609a05d..ba6151fbe6 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart @@ -16,21 +16,27 @@ class _$ValidationException extends ValidationException { @override final Map? headers; - factory _$ValidationException( - [void Function(ValidationExceptionBuilder)? updates]) => - (new ValidationExceptionBuilder()..update(updates))._build(); - - _$ValidationException._( - {required this.message, this.fieldList, this.statusCode, this.headers}) - : super._() { + factory _$ValidationException([ + void Function(ValidationExceptionBuilder)? updates, + ]) => (new ValidationExceptionBuilder()..update(updates))._build(); + + _$ValidationException._({ + required this.message, + this.fieldList, + this.statusCode, + this.headers, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - message, r'ValidationException', 'message'); + message, + r'ValidationException', + 'message', + ); } @override ValidationException rebuild( - void Function(ValidationExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ValidationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ValidationExceptionBuilder toBuilder() => @@ -107,13 +113,18 @@ class ValidationExceptionBuilder _$ValidationException _build() { _$ValidationException _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ValidationException._( - message: BuiltValueNullFieldError.checkNotNull( - message, r'ValidationException', 'message'), - fieldList: _fieldList?.build(), - statusCode: statusCode, - headers: headers); + message: BuiltValueNullFieldError.checkNotNull( + message, + r'ValidationException', + 'message', + ), + fieldList: _fieldList?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -121,7 +132,10 @@ class ValidationExceptionBuilder _fieldList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ValidationException', _$failedField, e.toString()); + r'ValidationException', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart index 9c7c161dff..552cbff34c 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.model.validation_exception_field; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,21 +20,18 @@ abstract class ValidationExceptionField required String path, required String message, }) { - return _$ValidationExceptionField._( - path: path, - message: message, - ); + return _$ValidationExceptionField._(path: path, message: message); } /// Describes one specific validation failure for an input member. - factory ValidationExceptionField.build( - [void Function(ValidationExceptionFieldBuilder) updates]) = - _$ValidationExceptionField; + factory ValidationExceptionField.build([ + void Function(ValidationExceptionFieldBuilder) updates, + ]) = _$ValidationExceptionField; const ValidationExceptionField._(); static const List<_i2.SmithySerializer> - serializers = [ValidationExceptionFieldRestJson1Serializer()]; + serializers = [ValidationExceptionFieldRestJson1Serializer()]; /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints. String get path; @@ -42,22 +39,14 @@ abstract class ValidationExceptionField /// A detailed description of the validation failure. String get message; @override - List get props => [ - path, - message, - ]; + List get props => [path, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('ValidationExceptionField') - ..add( - 'path', - path, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('ValidationExceptionField') + ..add('path', path) + ..add('message', message); return helper.toString(); } } @@ -65,21 +54,18 @@ abstract class ValidationExceptionField class ValidationExceptionFieldRestJson1Serializer extends _i2.StructuredSmithySerializer { const ValidationExceptionFieldRestJson1Serializer() - : super('ValidationExceptionField'); + : super('ValidationExceptionField'); @override Iterable get types => const [ - ValidationExceptionField, - _$ValidationExceptionField, - ]; + ValidationExceptionField, + _$ValidationExceptionField, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationExceptionField deserialize( @@ -98,15 +84,19 @@ class ValidationExceptionFieldRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'path': - result.path = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.path = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -123,15 +113,9 @@ class ValidationExceptionFieldRestJson1Serializer final ValidationExceptionField(:message, :path) = object; result$.addAll([ 'message', - serializers.serialize( - message, - specifiedType: const FullType(String), - ), + serializers.serialize(message, specifiedType: const FullType(String)), 'path', - serializers.serialize( - path, - specifiedType: const FullType(String), - ), + serializers.serialize(path, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart index 9cbdc19bda..8610498da7 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart @@ -12,22 +12,28 @@ class _$ValidationExceptionField extends ValidationExceptionField { @override final String message; - factory _$ValidationExceptionField( - [void Function(ValidationExceptionFieldBuilder)? updates]) => - (new ValidationExceptionFieldBuilder()..update(updates))._build(); + factory _$ValidationExceptionField([ + void Function(ValidationExceptionFieldBuilder)? updates, + ]) => (new ValidationExceptionFieldBuilder()..update(updates))._build(); _$ValidationExceptionField._({required this.path, required this.message}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - path, r'ValidationExceptionField', 'path'); + path, + r'ValidationExceptionField', + 'path', + ); BuiltValueNullFieldError.checkNotNull( - message, r'ValidationExceptionField', 'message'); + message, + r'ValidationExceptionField', + 'message', + ); } @override ValidationExceptionField rebuild( - void Function(ValidationExceptionFieldBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ValidationExceptionFieldBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ValidationExceptionFieldBuilder toBuilder() => @@ -91,12 +97,20 @@ class ValidationExceptionFieldBuilder ValidationExceptionField build() => _build(); _$ValidationExceptionField _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ValidationExceptionField._( - path: BuiltValueNullFieldError.checkNotNull( - path, r'ValidationExceptionField', 'path'), - message: BuiltValueNullFieldError.checkNotNull( - message, r'ValidationExceptionField', 'message')); + path: BuiltValueNullFieldError.checkNotNull( + path, + r'ValidationExceptionField', + 'path', + ), + message: BuiltValueNullFieldError.checkNotNull( + message, + r'ValidationExceptionField', + 'message', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart index f1258036d2..0f792a24cd 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_enum_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,44 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedEnumOperation extends _i1 - .HttpOperation { +class MalformedEnumOperation + extends + _i1.HttpOperation< + MalformedEnumInput, + MalformedEnumInput, + _i1.Unit, + _i1.Unit + > { MalformedEnumOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +77,18 @@ class MalformedEnumOperation extends _i1 int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedEnum'; @@ -107,11 +109,7 @@ class MalformedEnumOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart index caca5b9695..f22c12f8ad 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_length_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLengthOperation extends _i1.HttpOperation { +class MalformedLengthOperation + extends + _i1.HttpOperation< + MalformedLengthInput, + MalformedLengthInput, + _i1.Unit, + _i1.Unit + > { MalformedLengthOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLengthInput, + MalformedLengthInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedLengthOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedLength'; @@ -107,11 +114,7 @@ class MalformedLengthOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart index cd23ac0712..1ee8e22f21 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_length_override_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLengthOverrideOperation extends _i1.HttpOperation< - MalformedLengthOverrideInput, - MalformedLengthOverrideInput, - _i1.Unit, - _i1.Unit> { +class MalformedLengthOverrideOperation + extends + _i1.HttpOperation< + MalformedLengthOverrideInput, + MalformedLengthOverrideInput, + _i1.Unit, + _i1.Unit + > { MalformedLengthOverrideOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLengthOverrideInput, + MalformedLengthOverrideInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,24 +82,18 @@ class MalformedLengthOverrideOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedLengthOverride'; @@ -110,11 +114,7 @@ class MalformedLengthOverrideOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart index 7385d51f86..dee19fd94f 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_length_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLengthQueryStringOperation extends _i1.HttpOperation< - MalformedLengthQueryStringInputPayload, - MalformedLengthQueryStringInput, - _i1.Unit, - _i1.Unit> { +class MalformedLengthQueryStringOperation + extends + _i1.HttpOperation< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInput, + _i1.Unit, + _i1.Unit + > { MalformedLengthQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +78,7 @@ class MalformedLengthQueryStringOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/MalformedLengthQueryString'; if (input.string != null) { - b.queryParameters.add( - 'string', - input.string!, - ); + b.queryParameters.add('string', input.string!); } }); @@ -79,24 +86,18 @@ class MalformedLengthQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedLengthQueryString'; @@ -117,11 +118,7 @@ class MalformedLengthQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart index fb9413e4fb..4f61ef1135 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_pattern_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedPatternOperation extends _i1.HttpOperation { +class MalformedPatternOperation + extends + _i1.HttpOperation< + MalformedPatternInput, + MalformedPatternInput, + _i1.Unit, + _i1.Unit + > { MalformedPatternOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedPatternInput, + MalformedPatternInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedPatternOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedPattern'; @@ -107,11 +114,7 @@ class MalformedPatternOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart index 4d856ed2a9..966a62cc0d 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_pattern_override_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedPatternOverrideOperation extends _i1.HttpOperation< - MalformedPatternOverrideInput, - MalformedPatternOverrideInput, - _i1.Unit, - _i1.Unit> { +class MalformedPatternOverrideOperation + extends + _i1.HttpOperation< + MalformedPatternOverrideInput, + MalformedPatternOverrideInput, + _i1.Unit, + _i1.Unit + > { MalformedPatternOverrideOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedPatternOverrideInput, + MalformedPatternOverrideInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,24 +82,18 @@ class MalformedPatternOverrideOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedPatternOverride'; @@ -110,11 +114,7 @@ class MalformedPatternOverrideOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart index 841ec2f987..aa9572eac4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_range_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRangeOperation extends _i1.HttpOperation { +class MalformedRangeOperation + extends + _i1.HttpOperation< + MalformedRangeInput, + MalformedRangeInput, + _i1.Unit, + _i1.Unit + > { MalformedRangeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRangeInput, + MalformedRangeInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedRangeOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedRange'; @@ -107,11 +114,7 @@ class MalformedRangeOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart index 6f6aff63ef..7479561039 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_range_override_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRangeOverrideOperation extends _i1.HttpOperation< - MalformedRangeOverrideInput, - MalformedRangeOverrideInput, - _i1.Unit, - _i1.Unit> { +class MalformedRangeOverrideOperation + extends + _i1.HttpOperation< + MalformedRangeOverrideInput, + MalformedRangeOverrideInput, + _i1.Unit, + _i1.Unit + > { MalformedRangeOverrideOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRangeOverrideInput, + MalformedRangeOverrideInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,24 +82,18 @@ class MalformedRangeOverrideOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedRangeOverride'; @@ -110,11 +114,7 @@ class MalformedRangeOverrideOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart index 946310a64b..bde986e81b 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRequiredOperation extends _i1.HttpOperation< - MalformedRequiredInputPayload, MalformedRequiredInput, _i1.Unit, _i1.Unit> { +class MalformedRequiredOperation + extends + _i1.HttpOperation< + MalformedRequiredInputPayload, + MalformedRequiredInput, + _i1.Unit, + _i1.Unit + > { MalformedRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRequiredInputPayload, + MalformedRequiredInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,34 +79,25 @@ class MalformedRequiredOperation extends _i1.HttpOperation< if (input.stringInHeader.isNotEmpty) { b.headers['string-in-headers'] = input.stringInHeader; } - b.queryParameters.add( - 'stringInQuery', - input.stringInQuery, - ); + b.queryParameters.add('stringInQuery', input.stringInQuery); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedRequired'; @@ -114,11 +118,7 @@ class MalformedRequiredOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart index baa6f247a7..fd868f56d4 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.malformed_unique_items_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedUniqueItemsOperation extends _i1.HttpOperation< - MalformedUniqueItemsInput, MalformedUniqueItemsInput, _i1.Unit, _i1.Unit> { +class MalformedUniqueItemsOperation + extends + _i1.HttpOperation< + MalformedUniqueItemsInput, + MalformedUniqueItemsInput, + _i1.Unit, + _i1.Unit + > { MalformedUniqueItemsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedUniqueItemsInput, + MalformedUniqueItemsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedUniqueItemsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedUniqueItems'; @@ -107,11 +114,7 @@ class MalformedUniqueItemsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart index 8686ef4ab6..6d4330ded8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.recursive_structures_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class RecursiveStructuresOperation extends _i1.HttpOperation< - RecursiveStructuresInput, RecursiveStructuresInput, _i1.Unit, _i1.Unit> { +class RecursiveStructuresOperation + extends + _i1.HttpOperation< + RecursiveStructuresInput, + RecursiveStructuresInput, + _i1.Unit, + _i1.Unit + > { RecursiveStructuresOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + RecursiveStructuresInput, + RecursiveStructuresInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class RecursiveStructuresOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'RecursiveStructures'; @@ -107,11 +114,7 @@ class RecursiveStructuresOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart index c3af966470..480915c8a8 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.operation.sensitive_validation_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v1/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SensitiveValidationOperation extends _i1.HttpOperation< - SensitiveValidationInput, SensitiveValidationInput, _i1.Unit, _i1.Unit> { +class SensitiveValidationOperation + extends + _i1.HttpOperation< + SensitiveValidationInput, + SensitiveValidationInput, + _i1.Unit, + _i1.Unit + > { SensitiveValidationOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + SensitiveValidationInput, + SensitiveValidationInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class SensitiveValidationOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'SensitiveValidation'; @@ -107,11 +114,7 @@ class SensitiveValidationOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart index 019e989f79..4866caf919 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.rest_json_validation_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,11 +39,11 @@ class RestJsonValidationProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -64,10 +64,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLength( @@ -79,10 +76,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLengthOverride( @@ -94,10 +88,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLengthQueryString( @@ -109,10 +100,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedPattern( @@ -124,10 +112,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedPatternOverride( @@ -139,10 +124,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRange( @@ -154,10 +136,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRangeOverride( @@ -169,10 +148,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRequired( @@ -184,10 +160,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedUniqueItems( @@ -199,10 +172,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation recursiveStructures( @@ -214,10 +184,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation sensitiveValidation( @@ -229,9 +196,6 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart index e40cea9589..1ccb8ef398 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v1.rest_json_validation_protocol.rest_json_validation_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,16 +35,8 @@ abstract class RestJsonValidationProtocolServerBase extends _i1.HttpServerBase { late final Router _router = () { final service = _RestJsonValidationProtocolServer(this); final router = Router(); - router.add( - 'POST', - r'/MalformedEnum', - service.malformedEnum, - ); - router.add( - 'POST', - r'/MalformedLength', - service.malformedLength, - ); + router.add('POST', r'/MalformedEnum', service.malformedEnum); + router.add('POST', r'/MalformedLength', service.malformedLength); router.add( 'POST', r'/MalformedLengthOverride', @@ -55,46 +47,22 @@ abstract class RestJsonValidationProtocolServerBase extends _i1.HttpServerBase { r'/MalformedLengthQueryString', service.malformedLengthQueryString, ); - router.add( - 'POST', - r'/MalformedPattern', - service.malformedPattern, - ); + router.add('POST', r'/MalformedPattern', service.malformedPattern); router.add( 'POST', r'/MalformedPatternOverride', service.malformedPatternOverride, ); - router.add( - 'POST', - r'/MalformedRange', - service.malformedRange, - ); + router.add('POST', r'/MalformedRange', service.malformedRange); router.add( 'POST', r'/MalformedRangeOverride', service.malformedRangeOverride, ); - router.add( - 'POST', - r'/MalformedRequired', - service.malformedRequired, - ); - router.add( - 'POST', - r'/MalformedUniqueItems', - service.malformedUniqueItems, - ); - router.add( - 'POST', - r'/RecursiveStructures', - service.recursiveStructures, - ); - router.add( - 'POST', - r'/SensitiveValidation', - service.sensitiveValidation, - ); + router.add('POST', r'/MalformedRequired', service.malformedRequired); + router.add('POST', r'/MalformedUniqueItems', service.malformedUniqueItems); + router.add('POST', r'/RecursiveStructures', service.recursiveStructures); + router.add('POST', r'/SensitiveValidation', service.sensitiveValidation); return router; }(); @@ -156,99 +124,134 @@ class _RestJsonValidationProtocolServer @override final RestJsonValidationProtocolServerBase service; - late final _i1 - .HttpProtocol - _malformedEnumProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedEnumInput, + MalformedEnumInput, + _i1.Unit, + _i1.Unit + > + _malformedEnumProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedLengthProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedLengthInput, + MalformedLengthInput, + _i1.Unit, + _i1.Unit + > + _malformedLengthProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedLengthOverrideInput, - MalformedLengthOverrideInput, - _i1.Unit, - _i1.Unit> _malformedLengthOverrideProtocol = _i2.RestJson1Protocol( + MalformedLengthOverrideInput, + MalformedLengthOverrideInput, + _i1.Unit, + _i1.Unit + > + _malformedLengthOverrideProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedLengthQueryStringInputPayload, - MalformedLengthQueryStringInput, - _i1.Unit, - _i1.Unit> _malformedLengthQueryStringProtocol = _i2.RestJson1Protocol( + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInput, + _i1.Unit, + _i1.Unit + > + _malformedLengthQueryStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedPatternProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedPatternInput, + MalformedPatternInput, + _i1.Unit, + _i1.Unit + > + _malformedPatternProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedPatternOverrideInput, - MalformedPatternOverrideInput, - _i1.Unit, - _i1.Unit> _malformedPatternOverrideProtocol = _i2.RestJson1Protocol( + MalformedPatternOverrideInput, + MalformedPatternOverrideInput, + _i1.Unit, + _i1.Unit + > + _malformedPatternOverrideProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedRangeProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedRangeInput, + MalformedRangeInput, + _i1.Unit, + _i1.Unit + > + _malformedRangeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedRangeOverrideInput, - MalformedRangeOverrideInput, - _i1.Unit, - _i1.Unit> _malformedRangeOverrideProtocol = _i2.RestJson1Protocol( + MalformedRangeOverrideInput, + MalformedRangeOverrideInput, + _i1.Unit, + _i1.Unit + > + _malformedRangeOverrideProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedRequiredInputPayload, - MalformedRequiredInput, - _i1.Unit, - _i1.Unit> _malformedRequiredProtocol = _i2.RestJson1Protocol( + MalformedRequiredInputPayload, + MalformedRequiredInput, + _i1.Unit, + _i1.Unit + > + _malformedRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedUniqueItemsInput, - MalformedUniqueItemsInput, - _i1.Unit, - _i1.Unit> _malformedUniqueItemsProtocol = _i2.RestJson1Protocol( + MalformedUniqueItemsInput, + MalformedUniqueItemsInput, + _i1.Unit, + _i1.Unit + > + _malformedUniqueItemsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - RecursiveStructuresInput, - RecursiveStructuresInput, - _i1.Unit, - _i1.Unit> _recursiveStructuresProtocol = _i2.RestJson1Protocol( + RecursiveStructuresInput, + RecursiveStructuresInput, + _i1.Unit, + _i1.Unit + > + _recursiveStructuresProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SensitiveValidationInput, - SensitiveValidationInput, - _i1.Unit, - _i1.Unit> _sensitiveValidationProtocol = _i2.RestJson1Protocol( + SensitiveValidationInput, + SensitiveValidationInput, + _i1.Unit, + _i1.Unit + > + _sensitiveValidationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -259,26 +262,22 @@ class _RestJsonValidationProtocolServer context.response.headers['Content-Type'] = _malformedEnumProtocol.contentType; try { - final payload = (await _malformedEnumProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedEnumInput), - ) as MalformedEnumInput); + final payload = + (await _malformedEnumProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedEnumInput), + ) + as MalformedEnumInput); final input = MalformedEnumInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedEnum( - input, - context, - ); + final output = await service.malformedEnum(input, context); const statusCode = 200; final body = await _malformedEnumProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -289,10 +288,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedEnumProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -301,10 +299,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -316,25 +311,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedLengthProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLengthInput), - ) as MalformedLengthInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedLengthInput), + ) + as MalformedLengthInput); final input = MalformedLengthInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedLength( - input, - context, - ); + final output = await service.malformedLength(input, context); const statusCode = 200; final body = await _malformedLengthProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -345,10 +335,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedLengthProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -357,10 +346,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -372,27 +358,22 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedLengthOverrideProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLengthOverrideInput), - ) as MalformedLengthOverrideInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedLengthOverrideInput), + ) + as MalformedLengthOverrideInput); final input = MalformedLengthOverrideInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedLengthOverride( - input, - context, - ); + final output = await service.malformedLengthOverride(input, context); const statusCode = 200; - final body = - await _malformedLengthOverrideProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedLengthOverrideProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -402,10 +383,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedLengthOverrideProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -414,15 +394,13 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedLengthQueryString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -430,27 +408,24 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedLengthQueryStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLengthQueryStringInputPayload), - ) as MalformedLengthQueryStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedLengthQueryStringInputPayload, + ), + ) + as MalformedLengthQueryStringInputPayload); final input = MalformedLengthQueryStringInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedLengthQueryString( - input, - context, - ); + final output = await service.malformedLengthQueryString(input, context); const statusCode = 200; - final body = - await _malformedLengthQueryStringProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedLengthQueryStringProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -460,10 +435,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedLengthQueryStringProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -472,10 +446,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -487,25 +458,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedPatternProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedPatternInput), - ) as MalformedPatternInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedPatternInput), + ) + as MalformedPatternInput); final input = MalformedPatternInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedPattern( - input, - context, - ); + final output = await service.malformedPattern(input, context); const statusCode = 200; final body = await _malformedPatternProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -516,10 +482,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedPatternProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -528,10 +493,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -543,27 +505,22 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedPatternOverrideProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedPatternOverrideInput), - ) as MalformedPatternOverrideInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedPatternOverrideInput), + ) + as MalformedPatternOverrideInput); final input = MalformedPatternOverrideInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedPatternOverride( - input, - context, - ); + final output = await service.malformedPatternOverride(input, context); const statusCode = 200; - final body = - await _malformedPatternOverrideProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedPatternOverrideProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -573,10 +530,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedPatternOverrideProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -585,10 +541,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -598,26 +551,22 @@ class _RestJsonValidationProtocolServer context.response.headers['Content-Type'] = _malformedRangeProtocol.contentType; try { - final payload = (await _malformedRangeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRangeInput), - ) as MalformedRangeInput); + final payload = + (await _malformedRangeProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRangeInput), + ) + as MalformedRangeInput); final input = MalformedRangeInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRange( - input, - context, - ); + final output = await service.malformedRange(input, context); const statusCode = 200; final body = await _malformedRangeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -628,10 +577,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedRangeProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -640,10 +588,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -655,27 +600,22 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedRangeOverrideProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRangeOverrideInput), - ) as MalformedRangeOverrideInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRangeOverrideInput), + ) + as MalformedRangeOverrideInput); final input = MalformedRangeOverrideInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRangeOverride( - input, - context, - ); + final output = await service.malformedRangeOverride(input, context); const statusCode = 200; - final body = - await _malformedRangeOverrideProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedRangeOverrideProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -685,10 +625,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedRangeOverrideProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -697,10 +636,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -712,25 +648,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRequiredInputPayload), - ) as MalformedRequiredInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRequiredInputPayload), + ) + as MalformedRequiredInputPayload); final input = MalformedRequiredInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRequired( - input, - context, - ); + final output = await service.malformedRequired(input, context); const statusCode = 200; final body = await _malformedRequiredProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -741,10 +672,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedRequiredProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -753,10 +683,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -768,25 +695,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedUniqueItemsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedUniqueItemsInput), - ) as MalformedUniqueItemsInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedUniqueItemsInput), + ) + as MalformedUniqueItemsInput); final input = MalformedUniqueItemsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedUniqueItems( - input, - context, - ); + final output = await service.malformedUniqueItems(input, context); const statusCode = 200; final body = await _malformedUniqueItemsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -797,10 +719,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedUniqueItemsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -809,10 +730,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -824,25 +742,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _recursiveStructuresProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(RecursiveStructuresInput), - ) as RecursiveStructuresInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(RecursiveStructuresInput), + ) + as RecursiveStructuresInput); final input = RecursiveStructuresInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.recursiveStructures( - input, - context, - ); + final output = await service.recursiveStructures(input, context); const statusCode = 200; final body = await _recursiveStructuresProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -853,10 +766,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _recursiveStructuresProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -865,10 +777,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -880,25 +789,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _sensitiveValidationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SensitiveValidationInput), - ) as SensitiveValidationInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(SensitiveValidationInput), + ) + as SensitiveValidationInput); final input = SensitiveValidationInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.sensitiveValidation( - input, - context, - ); + final output = await service.sensitiveValidation(input, context); const statusCode = 200; final body = await _sensitiveValidationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -909,10 +813,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _sensitiveValidationProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -921,10 +824,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/restJson1/pubspec.yaml b/packages/smithy/goldens/lib/restJson1/pubspec.yaml index 8b1e2b8b4e..a37d1204c2 100644 --- a/packages/smithy/goldens/lib/restJson1/pubspec.yaml +++ b/packages/smithy/goldens/lib/restJson1/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,7 +16,7 @@ dependencies: built_value: ^8.6.0 fixnum: ^1.0.0 built_collection: ^5.0.0 - meta: ^1.7.0 + meta: ^1.16.0 shelf_router: ^1.1.0 shelf: ^1.4.0 aws_signature_v4: @@ -42,6 +42,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib/restJson1/test/api_gateway/get_rest_apis_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/api_gateway/get_rest_apis_operation_test.dart index 90ce35d76f..48c336bea7 100644 --- a/packages/smithy/goldens/lib/restJson1/test/api_gateway/get_rest_apis_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/api_gateway/get_rest_apis_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.api_gateway.test.get_rest_apis_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,50 +22,42 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'ApiGatewayAccept (request)', - () async { - await _i2.httpRequestTest( - operation: GetRestApisOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('ApiGatewayAccept (request)', () async { + await _i2.httpRequestTest( + operation: GetRestApisOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'ApiGatewayAccept', - documentation: - 'API Gateway requires that this Accept header is set on all requests.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Accept': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/restapis', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [GetRestApisRequestRestJson1Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ApiGatewayAccept', + documentation: + 'API Gateway requires that this Accept header is set on all requests.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Accept': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/restapis', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [GetRestApisRequestRestJson1Serializer()], + ); + }); } class GetRestApisRequestRestJson1Serializer @@ -77,11 +69,8 @@ class GetRestApisRequestRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GetRestApisRequest deserialize( @@ -100,15 +89,19 @@ class GetRestApisRequestRestJson1Serializer } switch (key) { case 'position': - result.position = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.position = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'limit': - result.limit = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.limit = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -134,11 +127,8 @@ class RestApisRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApis deserialize( @@ -157,18 +147,22 @@ class RestApisRestJson1Serializer } switch (key) { case 'items': - result.items.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(RestApi)], - ), - ) as _i5.BuiltList)); + result.items.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(RestApi), + ]), + ) + as _i5.BuiltList), + ); case 'position': - result.position = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.position = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -194,11 +188,8 @@ class RestApiRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApi deserialize( @@ -217,82 +208,105 @@ class RestApiRestJson1Serializer } switch (key) { case 'id': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'description': - result.description = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.description = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'createdDate': result.createdDate = _i4.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'version': - result.version = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.version = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'warnings': - result.warnings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.warnings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'binaryMediaTypes': - result.binaryMediaTypes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.binaryMediaTypes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'minimumCompressionSize': - result.minimumCompressionSize = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minimumCompressionSize = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'apiKeySource': - result.apiKeySource = (serializers.deserialize( - value, - specifiedType: const FullType(ApiKeySourceType), - ) as ApiKeySourceType); + result.apiKeySource = + (serializers.deserialize( + value, + specifiedType: const FullType(ApiKeySourceType), + ) + as ApiKeySourceType); case 'endpointConfiguration': - result.endpointConfiguration.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointConfiguration), - ) as EndpointConfiguration)); + result.endpointConfiguration.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointConfiguration), + ) + as EndpointConfiguration), + ); case 'policy': - result.policy = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.policy = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'tags': - result.tags.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i5.BuiltMap)); + result.tags.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i5.BuiltMap), + ); case 'disableExecuteApiEndpoint': - result.disableExecuteApiEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.disableExecuteApiEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -312,18 +326,15 @@ class RestApiRestJson1Serializer class EndpointConfigurationRestJson1Serializer extends _i4.StructuredSmithySerializer { const EndpointConfigurationRestJson1Serializer() - : super('EndpointConfiguration'); + : super('EndpointConfiguration'); @override Iterable get types => const [EndpointConfiguration]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointConfiguration deserialize( @@ -342,21 +353,25 @@ class EndpointConfigurationRestJson1Serializer } switch (key) { case 'types': - result.types.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(EndpointType)], - ), - ) as _i5.BuiltList)); + result.types.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(EndpointType), + ]), + ) + as _i5.BuiltList), + ); case 'vpcEndpointIds': - result.vpcEndpointIds.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.vpcEndpointIds.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); } } @@ -382,11 +397,8 @@ class BadRequestExceptionRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override BadRequestException deserialize( @@ -405,10 +417,12 @@ class BadRequestExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -428,18 +442,15 @@ class BadRequestExceptionRestJson1Serializer class TooManyRequestsExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const TooManyRequestsExceptionRestJson1Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [TooManyRequestsException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TooManyRequestsException deserialize( @@ -458,15 +469,19 @@ class TooManyRequestsExceptionRestJson1Serializer } switch (key) { case 'retryAfterSeconds': - result.retryAfterSeconds = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.retryAfterSeconds = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -486,18 +501,15 @@ class TooManyRequestsExceptionRestJson1Serializer class UnauthorizedExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const UnauthorizedExceptionRestJson1Serializer() - : super('UnauthorizedException'); + : super('UnauthorizedException'); @override Iterable get types => const [UnauthorizedException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnauthorizedException deserialize( @@ -516,10 +528,12 @@ class UnauthorizedExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/glacier/upload_archive_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/glacier/upload_archive_operation_test.dart index ad322362f3..607ea37958 100644 --- a/packages/smithy/goldens/lib/restJson1/test/glacier/upload_archive_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/glacier/upload_archive_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.glacier.test.upload_archive_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,27 +26,19 @@ void main() { operation: UploadArchiveOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierVersionHeader', documentation: 'Glacier requires that a version header be set on all requests.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'accountId': 'foo', - 'vaultName': 'bar', - }, + params: {'accountId': 'foo', 'vaultName': 'bar'}, vendorParamsShape: null, vendorParams: {}, headers: {'X-Amz-Glacier-Version': '2012-06-01'}, @@ -70,28 +62,19 @@ void main() { operation: UploadArchiveOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierChecksums', documentation: 'Glacier requires checksum headers that are cumbersome to provide.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'hello world', bodyMediaType: null, - params: { - 'accountId': 'foo', - 'vaultName': 'bar', - 'body': 'hello world', - }, + params: {'accountId': 'foo', 'vaultName': 'bar', 'body': 'hello world'}, vendorParamsShape: null, vendorParams: {}, headers: { @@ -121,27 +104,19 @@ void main() { operation: UploadArchiveOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierAccountId', documentation: 'Glacier requires that the account id be set, but you can just use a\nhyphen (-) to indicate the current account. This should be default\nbehavior if the customer provides a null or empty string.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'accountId': '', - 'vaultName': 'bar', - }, + params: {'accountId': '', 'vaultName': 'bar'}, vendorParamsShape: null, vendorParams: {}, headers: {'X-Amz-Glacier-Version': '2012-06-01'}, @@ -171,11 +146,8 @@ class UploadArchiveInputRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadArchiveInput deserialize( @@ -194,38 +166,42 @@ class UploadArchiveInputRestJson1Serializer } switch (key) { case 'vaultName': - result.vaultName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.vaultName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'accountId': - result.accountId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accountId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'archiveDescription': - result.archiveDescription = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.archiveDescription = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'body': - result.body = (serializers.deserialize( - value, - specifiedType: const FullType( - _i5.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i5.Stream>); + result.body = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i5.Stream>); } } @@ -246,18 +222,15 @@ class UploadArchiveInputRestJson1Serializer class ArchiveCreationOutputRestJson1Serializer extends _i4.StructuredSmithySerializer { const ArchiveCreationOutputRestJson1Serializer() - : super('ArchiveCreationOutput'); + : super('ArchiveCreationOutput'); @override Iterable get types => const [ArchiveCreationOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ArchiveCreationOutput deserialize( @@ -276,20 +249,26 @@ class ArchiveCreationOutputRestJson1Serializer } switch (key) { case 'location': - result.location = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.location = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'archiveId': - result.archiveId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.archiveId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -309,18 +288,15 @@ class ArchiveCreationOutputRestJson1Serializer class InvalidParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const InvalidParameterValueExceptionRestJson1Serializer() - : super('InvalidParameterValueException'); + : super('InvalidParameterValueException'); @override Iterable get types => const [InvalidParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidParameterValueException deserialize( @@ -339,20 +315,26 @@ class InvalidParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -372,18 +354,15 @@ class InvalidParameterValueExceptionRestJson1Serializer class MissingParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const MissingParameterValueExceptionRestJson1Serializer() - : super('MissingParameterValueException'); + : super('MissingParameterValueException'); @override Iterable get types => const [MissingParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingParameterValueException deserialize( @@ -402,20 +381,26 @@ class MissingParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -435,18 +420,15 @@ class MissingParameterValueExceptionRestJson1Serializer class RequestTimeoutExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const RequestTimeoutExceptionRestJson1Serializer() - : super('RequestTimeoutException'); + : super('RequestTimeoutException'); @override Iterable get types => const [RequestTimeoutException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RequestTimeoutException deserialize( @@ -465,20 +447,26 @@ class RequestTimeoutExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -498,18 +486,15 @@ class RequestTimeoutExceptionRestJson1Serializer class ResourceNotFoundExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ResourceNotFoundExceptionRestJson1Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ResourceNotFoundException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResourceNotFoundException deserialize( @@ -528,20 +513,26 @@ class ResourceNotFoundExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -561,18 +552,15 @@ class ResourceNotFoundExceptionRestJson1Serializer class ServiceUnavailableExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ServiceUnavailableExceptionRestJson1Serializer() - : super('ServiceUnavailableException'); + : super('ServiceUnavailableException'); @override Iterable get types => const [ServiceUnavailableException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ServiceUnavailableException deserialize( @@ -591,20 +579,26 @@ class ServiceUnavailableExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/glacier/upload_multipart_part_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/glacier/upload_multipart_part_operation_test.dart index 4d3a424d93..d577faa047 100644 --- a/packages/smithy/goldens/lib/restJson1/test/glacier/upload_multipart_part_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/glacier/upload_multipart_part_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.glacier.test.upload_multipart_part_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,20 +26,15 @@ void main() { operation: UploadMultipartPartOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierMultipartChecksums', documentation: 'Glacier requires checksum headers that are cumbersome to provide.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'hello world', bodyMediaType: null, @@ -78,18 +73,15 @@ void main() { class UploadMultipartPartInputRestJson1Serializer extends _i4.StructuredSmithySerializer { const UploadMultipartPartInputRestJson1Serializer() - : super('UploadMultipartPartInput'); + : super('UploadMultipartPartInput'); @override Iterable get types => const [UploadMultipartPartInput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadMultipartPartInput deserialize( @@ -108,43 +100,49 @@ class UploadMultipartPartInputRestJson1Serializer } switch (key) { case 'accountId': - result.accountId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accountId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'vaultName': - result.vaultName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.vaultName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'uploadId': - result.uploadId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.uploadId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'range': - result.range = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.range = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'body': - result.body = (serializers.deserialize( - value, - specifiedType: const FullType( - _i5.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i5.Stream>); + result.body = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i5.Stream>); } } @@ -165,18 +163,15 @@ class UploadMultipartPartInputRestJson1Serializer class UploadMultipartPartOutputRestJson1Serializer extends _i4.StructuredSmithySerializer { const UploadMultipartPartOutputRestJson1Serializer() - : super('UploadMultipartPartOutput'); + : super('UploadMultipartPartOutput'); @override Iterable get types => const [UploadMultipartPartOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadMultipartPartOutput deserialize( @@ -195,10 +190,12 @@ class UploadMultipartPartOutputRestJson1Serializer } switch (key) { case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -218,18 +215,15 @@ class UploadMultipartPartOutputRestJson1Serializer class InvalidParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const InvalidParameterValueExceptionRestJson1Serializer() - : super('InvalidParameterValueException'); + : super('InvalidParameterValueException'); @override Iterable get types => const [InvalidParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidParameterValueException deserialize( @@ -248,20 +242,26 @@ class InvalidParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -281,18 +281,15 @@ class InvalidParameterValueExceptionRestJson1Serializer class MissingParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const MissingParameterValueExceptionRestJson1Serializer() - : super('MissingParameterValueException'); + : super('MissingParameterValueException'); @override Iterable get types => const [MissingParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingParameterValueException deserialize( @@ -311,20 +308,26 @@ class MissingParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -344,18 +347,15 @@ class MissingParameterValueExceptionRestJson1Serializer class RequestTimeoutExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const RequestTimeoutExceptionRestJson1Serializer() - : super('RequestTimeoutException'); + : super('RequestTimeoutException'); @override Iterable get types => const [RequestTimeoutException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RequestTimeoutException deserialize( @@ -374,20 +374,26 @@ class RequestTimeoutExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -407,18 +413,15 @@ class RequestTimeoutExceptionRestJson1Serializer class ResourceNotFoundExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ResourceNotFoundExceptionRestJson1Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ResourceNotFoundException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResourceNotFoundException deserialize( @@ -437,20 +440,26 @@ class ResourceNotFoundExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -470,18 +479,15 @@ class ResourceNotFoundExceptionRestJson1Serializer class ServiceUnavailableExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ServiceUnavailableExceptionRestJson1Serializer() - : super('ServiceUnavailableException'); + : super('ServiceUnavailableException'); @override Iterable get types => const [ServiceUnavailableException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ServiceUnavailableException deserialize( @@ -500,20 +506,26 @@ class ServiceUnavailableExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart index bcdf6f2a56..18cb5acba0 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.all_query_string_types_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,387 +15,280 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonAllQueryStringTypes (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonAllQueryStringTypes', - documentation: - 'Serializes query string parameters with all supported types', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryString': 'Hello there', - 'queryStringList': [ - 'a', - 'b', - 'c', + _i1.test('RestJsonAllQueryStringTypes (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonAllQueryStringTypes', + documentation: + 'Serializes query string parameters with all supported types', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryString': 'Hello there', + 'queryStringList': ['a', 'b', 'c'], + 'queryStringSet': ['a', 'b', 'c'], + 'queryByte': 1, + 'queryShort': 2, + 'queryInteger': 3, + 'queryIntegerList': [1, 2, 3], + 'queryIntegerSet': [1, 2, 3], + 'queryLong': 4, + 'queryFloat': 1.1, + 'queryDouble': 1.1, + 'queryDoubleList': [1.1, 2.1, 3.1], + 'queryBoolean': true, + 'queryBooleanList': [true, false, true], + 'queryTimestamp': 1, + 'queryTimestampList': [1, 2, 3], + 'queryEnum': 'Foo', + 'queryEnumList': ['Foo', 'Baz', 'Bar'], + 'queryIntegerEnum': 1, + 'queryIntegerEnumList': [1, 2, 3], + 'queryParamsMapOfStringList': { + 'String': ['Hello there'], + 'StringList': ['a', 'b', 'c'], + 'StringSet': ['a', 'b', 'c'], + 'Byte': ['1'], + 'Short': ['2'], + 'Integer': ['3'], + 'IntegerList': ['1', '2', '3'], + 'IntegerSet': ['1', '2', '3'], + 'Long': ['4'], + 'Float': ['1.1'], + 'Double': ['1.1'], + 'DoubleList': ['1.1', '2.1', '3.1'], + 'Boolean': ['true'], + 'BooleanList': ['true', 'false', 'true'], + 'Timestamp': ['1970-01-01T00:00:01Z'], + 'TimestampList': [ + '1970-01-01T00:00:01Z', + '1970-01-01T00:00:02Z', + '1970-01-01T00:00:03Z', ], - 'queryStringSet': [ - 'a', - 'b', - 'c', - ], - 'queryByte': 1, - 'queryShort': 2, - 'queryInteger': 3, - 'queryIntegerList': [ - 1, - 2, - 3, - ], - 'queryIntegerSet': [ - 1, - 2, - 3, - ], - 'queryLong': 4, - 'queryFloat': 1.1, - 'queryDouble': 1.1, - 'queryDoubleList': [ - 1.1, - 2.1, - 3.1, - ], - 'queryBoolean': true, - 'queryBooleanList': [ - true, - false, - true, - ], - 'queryTimestamp': 1, - 'queryTimestampList': [ - 1, - 2, - 3, - ], - 'queryEnum': 'Foo', - 'queryEnumList': [ - 'Foo', - 'Baz', - 'Bar', - ], - 'queryIntegerEnum': 1, - 'queryIntegerEnumList': [ - 1, - 2, - 3, - ], - 'queryParamsMapOfStringList': { - 'String': ['Hello there'], - 'StringList': [ - 'a', - 'b', - 'c', - ], - 'StringSet': [ - 'a', - 'b', - 'c', - ], - 'Byte': ['1'], - 'Short': ['2'], - 'Integer': ['3'], - 'IntegerList': [ - '1', - '2', - '3', - ], - 'IntegerSet': [ - '1', - '2', - '3', - ], - 'Long': ['4'], - 'Float': ['1.1'], - 'Double': ['1.1'], - 'DoubleList': [ - '1.1', - '2.1', - '3.1', - ], - 'Boolean': ['true'], - 'BooleanList': [ - 'true', - 'false', - 'true', - ], - 'Timestamp': ['1970-01-01T00:00:01Z'], - 'TimestampList': [ - '1970-01-01T00:00:01Z', - '1970-01-01T00:00:02Z', - '1970-01-01T00:00:03Z', - ], - 'Enum': ['Foo'], - 'EnumList': [ - 'Foo', - 'Baz', - 'Bar', - ], - 'IntegerEnum': ['1'], - 'IntegerEnumList': [ - '1', - '2', - '3', - ], - }, + 'Enum': ['Foo'], + 'EnumList': ['Foo', 'Baz', 'Bar'], + 'IntegerEnum': ['1'], + 'IntegerEnumList': ['1', '2', '3'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=Hello%20there', - 'StringList=a', - 'StringList=b', - 'StringList=c', - 'StringSet=a', - 'StringSet=b', - 'StringSet=c', - 'Byte=1', - 'Short=2', - 'Integer=3', - 'IntegerList=1', - 'IntegerList=2', - 'IntegerList=3', - 'IntegerSet=1', - 'IntegerSet=2', - 'IntegerSet=3', - 'Long=4', - 'Float=1.1', - 'Double=1.1', - 'DoubleList=1.1', - 'DoubleList=2.1', - 'DoubleList=3.1', - 'Boolean=true', - 'BooleanList=true', - 'BooleanList=false', - 'BooleanList=true', - 'Timestamp=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A02Z', - 'TimestampList=1970-01-01T00%3A00%3A03Z', - 'Enum=Foo', - 'EnumList=Foo', - 'EnumList=Baz', - 'EnumList=Bar', - 'IntegerEnum=1', - 'IntegerEnumList=1', - 'IntegerEnumList=2', - 'IntegerEnumList=3', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonQueryStringMap (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryStringMap', - documentation: 'Handles query string maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryParamsMapOfStringList': { - 'QueryParamsStringKeyA': ['Foo'], - 'QueryParamsStringKeyB': ['Bar'], - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=Hello%20there', + 'StringList=a', + 'StringList=b', + 'StringList=c', + 'StringSet=a', + 'StringSet=b', + 'StringSet=c', + 'Byte=1', + 'Short=2', + 'Integer=3', + 'IntegerList=1', + 'IntegerList=2', + 'IntegerList=3', + 'IntegerSet=1', + 'IntegerSet=2', + 'IntegerSet=3', + 'Long=4', + 'Float=1.1', + 'Double=1.1', + 'DoubleList=1.1', + 'DoubleList=2.1', + 'DoubleList=3.1', + 'Boolean=true', + 'BooleanList=true', + 'BooleanList=false', + 'BooleanList=true', + 'Timestamp=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A02Z', + 'TimestampList=1970-01-01T00%3A00%3A03Z', + 'Enum=Foo', + 'EnumList=Foo', + 'EnumList=Baz', + 'EnumList=Bar', + 'IntegerEnum=1', + 'IntegerEnumList=1', + 'IntegerEnumList=2', + 'IntegerEnumList=3', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonQueryStringMap (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryStringMap', + documentation: 'Handles query string maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryParamsMapOfStringList': { + 'QueryParamsStringKeyA': ['Foo'], + 'QueryParamsStringKeyB': ['Bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'QueryParamsStringKeyA=Foo', - 'QueryParamsStringKeyB=Bar', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonQueryStringEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryStringEscaping', - documentation: - 'Handles escaping all required characters in the query string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryString': ' %:/?#[]@!\$&\'()*+,;=😹', - 'queryParamsMapOfStringList': { - 'String': [' %:/?#[]@!\$&\'()*+,;=😹'] - }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['QueryParamsStringKeyA=Foo', 'QueryParamsStringKeyB=Bar'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonQueryStringEscaping (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryStringEscaping', + documentation: + 'Handles escaping all required characters in the query string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryString': ' %:/?#[]@!\$&\'()*+,;=😹', + 'queryParamsMapOfStringList': { + 'String': [' %:/?#[]@!\$&\'()*+,;=😹'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9' - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatQueryValues', - documentation: 'Supports handling NaN float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'NaN', - 'queryDouble': 'NaN', - 'queryParamsMapOfStringList': { - 'Float': ['NaN'], - 'Double': ['NaN'], - }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSupportsNaNFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatQueryValues', + documentation: 'Supports handling NaN float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryFloat': 'NaN', + 'queryDouble': 'NaN', + 'queryParamsMapOfStringList': { + 'Float': ['NaN'], + 'Double': ['NaN'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=NaN', - 'Double=NaN', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatQueryValues', - documentation: 'Supports handling Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'Infinity', - 'queryDouble': 'Infinity', - 'queryParamsMapOfStringList': { - 'Float': ['Infinity'], - 'Double': ['Infinity'], - }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=NaN', 'Double=NaN'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatQueryValues', + documentation: 'Supports handling Infinity float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryFloat': 'Infinity', + 'queryDouble': 'Infinity', + 'queryParamsMapOfStringList': { + 'Float': ['Infinity'], + 'Double': ['Infinity'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=Infinity', - 'Double=Infinity', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=Infinity', 'Double=Infinity'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonSupportsNegativeInfinityFloatQueryValues (request)', () async { @@ -407,10 +300,7 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonSupportsNegativeInfinityFloatQueryValues', documentation: 'Supports handling -Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, @@ -433,10 +323,7 @@ void main() { uri: '/AllQueryStringTypesInput', host: null, resolvedHost: null, - queryParams: [ - 'Float=-Infinity', - 'Double=-Infinity', - ], + queryParams: ['Float=-Infinity', 'Double=-Infinity'], forbidQueryParams: [], requireQueryParams: [], ), @@ -449,18 +336,15 @@ void main() { class AllQueryStringTypesInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const AllQueryStringTypesInputRestJson1Serializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [AllQueryStringTypesInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AllQueryStringTypesInput deserialize( @@ -479,144 +363,173 @@ class AllQueryStringTypesInputRestJson1Serializer } switch (key) { case 'queryString': - result.queryString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.queryString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'queryStringList': - result.queryStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.queryStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'queryStringSet': - result.queryStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.queryStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'queryByte': - result.queryByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryShort': - result.queryShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryInteger': - result.queryInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryIntegerList': - result.queryIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryIntegerSet': - result.queryIntegerSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.queryIntegerSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'queryLong': - result.queryLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.Int64), - ) as _i5.Int64); + result.queryLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Int64), + ) + as _i5.Int64); case 'queryFloat': - result.queryFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDouble': - result.queryDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDoubleList': - result.queryDoubleList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(double)], - ), - ) as _i4.BuiltList)); + result.queryDoubleList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(double), + ]), + ) + as _i4.BuiltList), + ); case 'queryBoolean': - result.queryBoolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.queryBoolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'queryBooleanList': - result.queryBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); - case 'queryTimestamp': - result.queryTimestamp = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, + result.queryBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), ); + case 'queryTimestamp': + result.queryTimestamp = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'queryTimestampList': - result.queryTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.queryTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'queryEnum': - result.queryEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.queryEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'queryEnumList': - result.queryEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.queryEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerEnum': - result.queryIntegerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryIntegerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryIntegerEnumList': - result.queryIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryParamsMapOfStringList': - result.queryParamsMapOfStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.queryParamsMapOfStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart index 6eaafd3736..b9fd5d9d6d 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.constant_and_variable_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,10 +23,7 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonConstantAndVariableQueryStringMissingOneValue', documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, @@ -42,15 +39,12 @@ void main() { uri: '/ConstantAndVariableQueryString', host: null, resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - ], + queryParams: ['foo=bar', 'baz=bam'], forbidQueryParams: ['maybeSet'], requireQueryParams: [], ), inputSerializers: const [ - ConstantAndVariableQueryStringInputRestJson1Serializer() + ConstantAndVariableQueryStringInputRestJson1Serializer(), ], ); }, @@ -66,17 +60,11 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonConstantAndVariableQueryStringAllValues', documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'baz': 'bam', - 'maybeSet': 'yes', - }, + params: {'baz': 'bam', 'maybeSet': 'yes'}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -88,37 +76,31 @@ void main() { uri: '/ConstantAndVariableQueryString', host: null, resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - 'maybeSet=yes', - ], + queryParams: ['foo=bar', 'baz=bam', 'maybeSet=yes'], forbidQueryParams: [], requireQueryParams: [], ), inputSerializers: const [ - ConstantAndVariableQueryStringInputRestJson1Serializer() + ConstantAndVariableQueryStringInputRestJson1Serializer(), ], ); }, ); } -class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const ConstantAndVariableQueryStringInputRestJson1Serializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ConstantAndVariableQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantAndVariableQueryStringInput deserialize( @@ -137,15 +119,19 @@ class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i3 } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'maybeSet': - result.maybeSet = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maybeSet = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart index e66f54efa1..12b249dd62 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.constant_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,52 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonConstantQueryString (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonConstantQueryString', - documentation: 'Includes constant query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'hello': 'hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantQueryString/hi', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'hello', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ConstantQueryStringInputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonConstantQueryString (request)', () async { + await _i2.httpRequestTest( + operation: ConstantQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonConstantQueryString', + documentation: 'Includes constant query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'hello': 'hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantQueryString/hi', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'hello'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ConstantQueryStringInputRestJson1Serializer()], + ); + }); } class ConstantQueryStringInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const ConstantQueryStringInputRestJson1Serializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ConstantQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantQueryStringInput deserialize( @@ -88,10 +76,12 @@ class ConstantQueryStringInputRestJson1Serializer } switch (key) { case 'hello': - result.hello = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hello = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart index c6d8f6e927..e837465da5 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], + ); + }); } class DatetimeOffsetsOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputRestJson1Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart index 29874c5e75..640778f0f2 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.document_type_as_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,178 +13,151 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'DocumentTypeAsPayloadInput (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentTypeAsPayloadInput', - documentation: - 'Serializes a document as the target of the httpPayload trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "foo": "bar"\n}', - bodyMediaType: 'application/json', - params: { - 'documentValue': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentTypeAsPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'DocumentTypeAsPayloadInputString (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentTypeAsPayloadInputString', - documentation: - 'Serializes a document as the target of the httpPayload trait using a string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '"hello"', - bodyMediaType: 'application/json', - params: {'documentValue': 'hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentTypeAsPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'DocumentTypeAsPayloadOutput (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentTypeAsPayloadOutput', - documentation: - 'Serializes a document as the target of the httpPayload trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "foo": "bar"\n}', - bodyMediaType: 'application/json', - params: { - 'documentValue': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'DocumentTypeAsPayloadOutputString (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentTypeAsPayloadOutputString', - documentation: 'Serializes a document as a payload string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '"hello"', - bodyMediaType: 'application/json', - params: {'documentValue': 'hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('DocumentTypeAsPayloadInput (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentTypeAsPayloadInput', + documentation: + 'Serializes a document as the target of the httpPayload trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "foo": "bar"\n}', + bodyMediaType: 'application/json', + params: { + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentTypeAsPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('DocumentTypeAsPayloadInputString (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentTypeAsPayloadInputString', + documentation: + 'Serializes a document as the target of the httpPayload trait using a string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '"hello"', + bodyMediaType: 'application/json', + params: {'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentTypeAsPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('DocumentTypeAsPayloadOutput (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentTypeAsPayloadOutput', + documentation: + 'Serializes a document as the target of the httpPayload trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "foo": "bar"\n}', + bodyMediaType: 'application/json', + params: { + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('DocumentTypeAsPayloadOutputString (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentTypeAsPayloadOutputString', + documentation: 'Serializes a document as a payload string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '"hello"', + bodyMediaType: 'application/json', + params: {'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); } class DocumentTypeAsPayloadInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const DocumentTypeAsPayloadInputOutputRestJson1Serializer() - : super('DocumentTypeAsPayloadInputOutput'); + : super('DocumentTypeAsPayloadInputOutput'); @override Iterable get types => const [DocumentTypeAsPayloadInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DocumentTypeAsPayloadInputOutput deserialize( @@ -203,10 +176,12 @@ class DocumentTypeAsPayloadInputOutputRestJson1Serializer } switch (key) { case 'documentValue': - result.documentValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.JsonObject), - ) as _i4.JsonObject); + result.documentValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.JsonObject), + ) + as _i4.JsonObject); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_operation_test.dart index 7d1897eee5..494c6c38bb 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/document_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.document_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,430 +13,339 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'DocumentTypeInputWithObject (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentTypeInputWithObject', - documentation: - 'Serializes document types as part of the JSON request payload with no escaping.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': {'foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithString (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithString', - documentation: 'Serializes document types using a string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": "hello"\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 'hello', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithNumber (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithNumber', - documentation: 'Serializes document types using a number.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": "string",\n "documentValue": 10\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 10, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithBoolean (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithBoolean', - documentation: 'Serializes document types using a boolean.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": "string",\n "documentValue": true\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': true, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithList (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithList', - documentation: 'Serializes document types using a list.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": [\n true,\n "hi",\n [\n 1,\n 2\n ],\n {\n "foo": {\n "baz": [\n 3,\n 4\n ]\n }\n }\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': [ - true, - 'hi', - [ - 1, - 2, - ], - { - 'foo': { - 'baz': [ - 3, - 4, - ] - } + _i1.test('DocumentTypeInputWithObject (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentTypeInputWithObject', + documentation: + 'Serializes document types as part of the JSON request payload with no escaping.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithString (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithString', + documentation: 'Serializes document types using a string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": "hello"\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithNumber (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithNumber', + documentation: 'Serializes document types using a number.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": 10\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithBoolean (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithBoolean', + documentation: 'Serializes document types using a boolean.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": true\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithList (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithList', + documentation: 'Serializes document types using a list.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": [\n true,\n "hi",\n [\n 1,\n 2\n ],\n {\n "foo": {\n "baz": [\n 3,\n 4\n ]\n }\n }\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': [ + true, + 'hi', + [1, 2], + { + 'foo': { + 'baz': [3, 4], }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutput (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutput', - documentation: - 'Serializes documents as part of the JSON response payload with no escaping.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': {'foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputString (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputString', - documentation: 'Document types can be JSON scalars too.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": "hello"\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 'hello', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputNumber (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputNumber', - documentation: 'Document types can be JSON scalars too.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": "string",\n "documentValue": 10\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 10, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputBoolean (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputBoolean', - documentation: 'Document types can be JSON scalars too.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": false\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': false, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputArray (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputArray', - documentation: 'Document types can be JSON arrays.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": [\n true,\n false\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': [ - true, - false, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); + }, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutput (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutput', + documentation: + 'Serializes documents as part of the JSON response payload with no escaping.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputString (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputString', + documentation: 'Document types can be JSON scalars too.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": "hello"\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputNumber (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputNumber', + documentation: 'Document types can be JSON scalars too.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": 10\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputBoolean (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputBoolean', + documentation: 'Document types can be JSON scalars too.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": false\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputArray (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputArray', + documentation: 'Document types can be JSON arrays.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": [\n true,\n false\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': [true, false], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); } class DocumentTypeInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const DocumentTypeInputOutputRestJson1Serializer() - : super('DocumentTypeInputOutput'); + : super('DocumentTypeInputOutput'); @override Iterable get types => const [DocumentTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DocumentTypeInputOutput deserialize( @@ -455,15 +364,19 @@ class DocumentTypeInputOutputRestJson1Serializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'documentValue': - result.documentValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.JsonObject), - ) as _i4.JsonObject); + result.documentValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.JsonObject), + ) + as _i4.JsonObject); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart index 42632d88b6..4e4e8c1937 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,82 +13,70 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonEmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonEmptyInputAndEmptyOutput', - documentation: - 'Clients should not serialize a JSON payload when no parameters\nare given that are sent in the body. A service will tolerate\nclients that omit a payload or that send a JSON object.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EmptyInputAndEmptyOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonEmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonEmptyInputAndEmptyOutput', - documentation: - 'As of January 2021, server implementations are expected to\nrespond with a JSON object regardless of if the output\nparameters are empty.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonEmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonEmptyInputAndEmptyOutput', + documentation: + 'Clients should not serialize a JSON payload when no parameters\nare given that are sent in the body. A service will tolerate\nclients that omit a payload or that send a JSON object.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EmptyInputAndEmptyOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonEmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonEmptyInputAndEmptyOutput', + documentation: + 'As of January 2021, server implementations are expected to\nrespond with a JSON object regardless of if the output\nparameters are empty.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonEmptyInputAndEmptyOutputJsonObjectOutput (response)', () async { @@ -101,10 +89,7 @@ void main() { id: 'RestJsonEmptyInputAndEmptyOutputJsonObjectOutput', documentation: 'This test ensures that clients can gracefully handle\nsituations where a service omits a JSON payload entirely.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, @@ -119,7 +104,7 @@ void main() { code: 200, ), outputSerializers: const [ - EmptyInputAndEmptyOutputOutputRestJson1Serializer() + EmptyInputAndEmptyOutputOutputRestJson1Serializer(), ], ); }, @@ -129,18 +114,15 @@ void main() { class EmptyInputAndEmptyOutputInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -164,18 +146,15 @@ class EmptyInputAndEmptyOutputInputRestJson1Serializer class EmptyInputAndEmptyOutputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_operation_test.dart index c22ff103e0..202d90a2bd 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointOperation', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointOperation', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart index a1a5912022..b1ec195bd9 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,39 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{"label": "bar"}', - bodyMediaType: 'application/json', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointWithHostLabelOperation', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{"label": "bar"}', + bodyMediaType: 'application/json', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointWithHostLabelOperation', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputRestJson1Serializer()], + ); + }); } class HostLabelInputRestJson1Serializer @@ -62,11 +56,8 @@ class HostLabelInputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HostLabelInput deserialize( @@ -85,10 +76,12 @@ class HostLabelInputRestJson1Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart index d9ec560b0f..34a801ae24 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,57 +12,48 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputRestJson1Serializer()], + ); + }); } class FractionalSecondsOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputRestJson1Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart index 680981bbfc..c542696646 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,244 +16,221 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonGreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonGreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how\nto deserialize a successful response. As of January 2021,\nserver implementations are expected to respond with a\nJSON object regardless of if the output parameters are\nempty.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Greeting': 'Hello'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - GreetingWithErrorsOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonGreetingWithErrorsNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonGreetingWithErrorsNoPayload', - documentation: - 'This test is similar to RestJsonGreetingWithErrors, but it\nensures that clients can gracefully deal with a server\nomitting a response payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Greeting': 'Hello'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - GreetingWithErrorsOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonComplexErrorWithNoMessage (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonComplexErrorWithNoMessage', - documentation: 'Serializes a complex error with no message member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "TopLevel": "Top level",\n "Nested": {\n "Fooooo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'Header': 'Header', - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Header': 'Header', - 'X-Amzn-Errortype': 'ComplexError', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 403, - ), - errorSerializers: const [ - ComplexErrorRestJson1Serializer(), - ComplexNestedErrorDataRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonEmptyComplexErrorWithNoMessage (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonEmptyComplexErrorWithNoMessage', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Amzn-Errortype': 'ComplexError', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 403, - ), - errorSerializers: const [ - ComplexErrorRestJson1Serializer(), - ComplexNestedErrorDataRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingXAmznErrorType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingXAmznErrorType', - documentation: - 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amzn-Errortype': 'FooError'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingXAmznErrorTypeWithUri (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingXAmznErrorTypeWithUri', - documentation: - 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Amzn-Errortype': - 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonGreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonGreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how\nto deserialize a successful response. As of January 2021,\nserver implementations are expected to respond with a\nJSON object regardless of if the output parameters are\nempty.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Greeting': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonGreetingWithErrorsNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonGreetingWithErrorsNoPayload', + documentation: + 'This test is similar to RestJsonGreetingWithErrors, but it\nensures that clients can gracefully deal with a server\nomitting a response payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Greeting': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonComplexErrorWithNoMessage (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonComplexErrorWithNoMessage', + documentation: 'Serializes a complex error with no message member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "TopLevel": "Top level",\n "Nested": {\n "Fooooo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'Header': 'Header', + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Header': 'Header', + 'X-Amzn-Errortype': 'ComplexError', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 403, + ), + errorSerializers: const [ + ComplexErrorRestJson1Serializer(), + ComplexNestedErrorDataRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonEmptyComplexErrorWithNoMessage (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonEmptyComplexErrorWithNoMessage', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Amzn-Errortype': 'ComplexError', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 403, + ), + errorSerializers: const [ + ComplexErrorRestJson1Serializer(), + ComplexNestedErrorDataRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonFooErrorUsingXAmznErrorType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingXAmznErrorType', + documentation: + 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amzn-Errortype': 'FooError'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorUsingXAmznErrorTypeWithUri (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingXAmznErrorTypeWithUri', + documentation: + 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Errortype': + 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonFooErrorUsingXAmznErrorTypeWithUriAndNamespace (error)', () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( operation: GreetingWithErrorsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), @@ -262,10 +239,7 @@ void main() { id: 'RestJsonFooErrorUsingXAmznErrorTypeWithUriAndNamespace', documentation: 'X-Amzn-Errortype might contain a URL and a namespace. Client should extract only the shape name. This is a pathalogical case that might not actually happen in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: null, bodyMediaType: null, @@ -274,7 +248,7 @@ void main() { vendorParams: {}, headers: { 'X-Amzn-Errortype': - 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/' + 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/', }, forbidHeaders: [], requireHeaders: [], @@ -286,268 +260,254 @@ void main() { ); }, ); - _i1.test( - 'RestJsonFooErrorUsingCode (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingCode', - documentation: - 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "code": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingCodeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingCodeAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingCodeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingCodeUriAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorWithDunderType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorWithDunderType', - documentation: 'Some services serialize errors using __type.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "__type": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorWithDunderTypeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorWithDunderTypeAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorWithDunderTypeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorWithDunderTypeUriAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonInvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInvalidGreetingError', - documentation: 'Parses simple JSON errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "Message": "Hi"\n}', - bodyMediaType: 'application/json', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Amzn-Errortype': 'InvalidGreeting', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonFooErrorUsingCode (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingCode', + documentation: + 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "code": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorUsingCodeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingCodeAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorUsingCodeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingCodeUriAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorWithDunderType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorWithDunderType', + documentation: 'Some services serialize errors using __type.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "__type": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorWithDunderTypeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorWithDunderTypeAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorWithDunderTypeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorWithDunderTypeUriAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonInvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInvalidGreetingError', + documentation: 'Parses simple JSON errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "Message": "Hi"\n}', + bodyMediaType: 'application/json', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Amzn-Errortype': 'InvalidGreeting', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingRestJson1Serializer()], + ); + }); } class GreetingWithErrorsOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputRestJson1Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -566,10 +526,12 @@ class GreetingWithErrorsOutputRestJson1Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -595,11 +557,8 @@ class ComplexErrorRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexError deserialize( @@ -618,20 +577,27 @@ class ComplexErrorRestJson1Serializer } switch (key) { case 'Header': - result.header = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.header = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -651,18 +617,15 @@ class ComplexErrorRestJson1Serializer class ComplexNestedErrorDataRestJson1Serializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataRestJson1Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexNestedErrorData deserialize( @@ -681,10 +644,12 @@ class ComplexNestedErrorDataRestJson1Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -710,11 +675,8 @@ class FooErrorRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FooError deserialize( @@ -744,11 +706,8 @@ class InvalidGreetingRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidGreeting deserialize( @@ -767,10 +726,12 @@ class InvalidGreetingRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart index 19c32a2bde..71aa15bd70 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/custom/HostWithPathOperation', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonHostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/custom/HostWithPathOperation', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart index f1b395de58..8b35399495 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_checksum_required_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpChecksumRequired (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpChecksumRequired', - documentation: 'Adds Content-MD5 header', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "foo":"base64 encoded md5 checksum"\n}\n', - bodyMediaType: 'application/json', - params: {'foo': 'base64 encoded md5 checksum'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'Content-MD5': 'iB0/3YSo7maijL0IGOgA9g==', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpChecksumRequired', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpChecksumRequired (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpChecksumRequired', + documentation: 'Adds Content-MD5 header', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "foo":"base64 encoded md5 checksum"\n}\n', + bodyMediaType: 'application/json', + params: {'foo': 'base64 encoded md5 checksum'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'Content-MD5': 'iB0/3YSo7maijL0IGOgA9g==', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpChecksumRequired', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumRequiredInputOutputRestJson1Serializer(), + ], + ); + }); } class HttpChecksumRequiredInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpChecksumRequiredInputOutputRestJson1Serializer() - : super('HttpChecksumRequiredInputOutput'); + : super('HttpChecksumRequiredInputOutput'); @override Iterable get types => const [HttpChecksumRequiredInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumRequiredInputOutput deserialize( @@ -90,10 +81,12 @@ class HttpChecksumRequiredInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart index 9993f6560f..1546478d86 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_enum_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,76 +13,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'EnumPayloadRequest (request)', - () async { - await _i2.httpRequestTest( - operation: HttpEnumPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'EnumPayloadRequest', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'enumvalue', - bodyMediaType: null, - params: {'payload': 'enumvalue'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EnumPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [EnumPayloadInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'EnumPayloadResponse (response)', - () async { - await _i2.httpResponseTest( - operation: HttpEnumPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'EnumPayloadResponse', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'enumvalue', - bodyMediaType: null, - params: {'payload': 'enumvalue'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [EnumPayloadInputRestJson1Serializer()], - ); - }, - ); + _i1.test('EnumPayloadRequest (request)', () async { + await _i2.httpRequestTest( + operation: HttpEnumPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'EnumPayloadRequest', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'enumvalue', + bodyMediaType: null, + params: {'payload': 'enumvalue'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EnumPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [EnumPayloadInputRestJson1Serializer()], + ); + }); + _i1.test('EnumPayloadResponse (response)', () async { + await _i2.httpResponseTest( + operation: HttpEnumPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'EnumPayloadResponse', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'enumvalue', + bodyMediaType: null, + params: {'payload': 'enumvalue'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [EnumPayloadInputRestJson1Serializer()], + ); + }); } class EnumPayloadInputRestJson1Serializer @@ -94,11 +82,8 @@ class EnumPayloadInputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnumPayloadInput deserialize( @@ -117,10 +102,12 @@ class EnumPayloadInputRestJson1Serializer } switch (key) { case 'payload': - result.payload = (serializers.deserialize( - value, - specifiedType: const FullType(StringEnum), - ) as StringEnum); + result.payload = + (serializers.deserialize( + value, + specifiedType: const FullType(StringEnum), + ) + as StringEnum); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart index cf5c25560d..9f2d750897 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_payload_traits_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,180 +14,144 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpPayloadTraitsWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadTraitsWithNoBlobBody (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadTraitsWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadTraitsWithNoBlobBody (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpPayloadTraitsWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/octet-stream', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadTraitsWithNoBlobBody (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadTraitsWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadTraitsWithNoBlobBody (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); } class HttpPayloadTraitsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPayloadTraitsInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [HttpPayloadTraitsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPayloadTraitsInputOutput deserialize( @@ -206,15 +170,19 @@ class HttpPayloadTraitsInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart index ca57227533..c6dfb440d7 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_payload_traits_with_media_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,23 +26,14 @@ void main() { id: 'RestJsonHttpPayloadTraitsWithMediaTypeWithBlob', documentation: 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'blobby blob blob', bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, forbidHeaders: [], requireHeaders: ['Content-Length'], tags: [], @@ -56,7 +47,7 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer(), ], ); }, @@ -73,23 +64,14 @@ void main() { id: 'RestJsonHttpPayloadTraitsWithMediaTypeWithBlob', documentation: 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'blobby blob blob', bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -97,28 +79,28 @@ void main() { code: 200, ), outputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer(), ], ); }, ); } -class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer + extends + _i3.StructuredSmithySerializer< + HttpPayloadTraitsWithMediaTypeInputOutput + > { const HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [HttpPayloadTraitsWithMediaTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPayloadTraitsWithMediaTypeInputOutput deserialize( @@ -137,15 +119,19 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart index e3d9136572..f5b1be56f4 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_payload_with_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,109 +13,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpPayloadWithStructure (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', - bodyMediaType: 'application/json', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithStructure', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithStructureInputOutputRestJson1Serializer(), - NestedPayloadRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadWithStructure (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', - bodyMediaType: 'application/json', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithStructureInputOutputRestJson1Serializer(), - NestedPayloadRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonHttpPayloadWithStructure (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', + bodyMediaType: 'application/json', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithStructure', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithStructureInputOutputRestJson1Serializer(), + NestedPayloadRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadWithStructure (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', + bodyMediaType: 'application/json', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithStructureInputOutputRestJson1Serializer(), + NestedPayloadRestJson1Serializer(), + ], + ); + }); } -class HttpPayloadWithStructureInputOutputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithStructureInputOutputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const HttpPayloadWithStructureInputOutputRestJson1Serializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [HttpPayloadWithStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPayloadWithStructureInputOutput deserialize( @@ -134,10 +114,13 @@ class HttpPayloadWithStructureInputOutputRestJson1Serializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedPayload), - ) as NestedPayload)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedPayload), + ) + as NestedPayload), + ); } } @@ -163,11 +146,8 @@ class NestedPayloadRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NestedPayload deserialize( @@ -186,15 +166,19 @@ class NestedPayloadRestJson1Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart index b49e04107d..8f61670d8b 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_prefix_headers_in_response_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,65 +14,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPrefixHeadersResponse (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPrefixHeadersResponse', - documentation: '(de)serializes all response headers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'prefixHeaders': { - 'X-Foo': 'Foo', - 'Hello': 'Hello', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Hello': 'Hello', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPrefixHeadersInResponseOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('HttpPrefixHeadersResponse (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPrefixHeadersResponse', + documentation: '(de)serializes all response headers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'prefixHeaders': {'X-Foo': 'Foo', 'Hello': 'Hello'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Hello': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPrefixHeadersInResponseOutputRestJson1Serializer(), + ], + ); + }); } class HttpPrefixHeadersInResponseInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInResponseInputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseInput'); + : super('HttpPrefixHeadersInResponseInput'); @override Iterable get types => const [HttpPrefixHeadersInResponseInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseInput deserialize( @@ -96,18 +81,15 @@ class HttpPrefixHeadersInResponseInputRestJson1Serializer class HttpPrefixHeadersInResponseOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInResponseOutputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseOutput'); + : super('HttpPrefixHeadersInResponseOutput'); @override Iterable get types => const [HttpPrefixHeadersInResponseOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseOutput deserialize( @@ -126,16 +108,16 @@ class HttpPrefixHeadersInResponseOutputRestJson1Serializer } switch (key) { case 'prefixHeaders': - result.prefixHeaders.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.prefixHeaders.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart index 577f3ceb65..fb66509a17 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_prefix_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,155 +14,125 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpPrefixHeadersArePresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpPrefixHeadersAreNotPresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPrefixHeadersAreNotPresent', - documentation: - 'No prefix headers are serialized because the value is empty', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': {}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpPrefixHeadersArePresent (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [HttpPrefixHeadersOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonHttpPrefixHeadersArePresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpPrefixHeadersAreNotPresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPrefixHeadersAreNotPresent', + documentation: + 'No prefix headers are serialized because the value is empty', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo', 'fooMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpPrefixHeadersArePresent (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [HttpPrefixHeadersOutputRestJson1Serializer()], + ); + }); } class HttpPrefixHeadersInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInputRestJson1Serializer() - : super('HttpPrefixHeadersInput'); + : super('HttpPrefixHeadersInput'); @override Iterable get types => const [HttpPrefixHeadersInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInput deserialize( @@ -181,21 +151,23 @@ class HttpPrefixHeadersInputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fooMap': - result.fooMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.fooMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -215,18 +187,15 @@ class HttpPrefixHeadersInputRestJson1Serializer class HttpPrefixHeadersOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersOutputRestJson1Serializer() - : super('HttpPrefixHeadersOutput'); + : super('HttpPrefixHeadersOutput'); @override Iterable get types => const [HttpPrefixHeadersOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersOutput deserialize( @@ -245,21 +214,23 @@ class HttpPrefixHeadersOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fooMap': - result.fooMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.fooMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart index 7b385e7d9e..678aaf634b 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_request_with_float_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,152 +12,122 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonSupportsNaNFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatLabels', - documentation: 'Supports handling NaN float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'NaN', - 'double': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/NaN/NaN', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatLabels', - documentation: 'Supports handling Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'Infinity', - 'double': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/Infinity/Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNegativeInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNegativeInfinityFloatLabels', - documentation: 'Supports handling -Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': '-Infinity', - 'double': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/-Infinity/-Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonSupportsNaNFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatLabels', + documentation: 'Supports handling NaN float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'NaN', 'double': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/NaN/NaN', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatLabels', + documentation: 'Supports handling Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'Infinity', 'double': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/Infinity/Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNegativeInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNegativeInfinityFloatLabels', + documentation: 'Supports handling -Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': '-Infinity', 'double': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/-Infinity/-Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestJson1Serializer(), + ], + ); + }); } class HttpRequestWithFloatLabelsInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestJson1Serializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [HttpRequestWithFloatLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithFloatLabelsInput deserialize( @@ -176,15 +146,19 @@ class HttpRequestWithFloatLabelsInputRestJson1Serializer } switch (key) { case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart index cab56c13c2..f67917a86f 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_request_with_greedy_label_in_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,67 +12,56 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpRequestWithGreedyLabelInPath (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithGreedyLabelInPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpRequestWithGreedyLabelInPath', - documentation: 'Serializes greedy labels and normal labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'hello/escape', - 'baz': 'there/guy', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithGreedyLabelInPath/foo/hello%2Fescape/baz/there/guy', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpRequestWithGreedyLabelInPath (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithGreedyLabelInPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpRequestWithGreedyLabelInPath', + documentation: 'Serializes greedy labels and normal labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'hello/escape', 'baz': 'there/guy'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithGreedyLabelInPath/foo/hello%2Fescape/baz/there/guy', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithGreedyLabelInPathInputRestJson1Serializer(), + ], + ); + }); } -class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [HttpRequestWithGreedyLabelInPathInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithGreedyLabelInPathInput deserialize( @@ -91,15 +80,19 @@ class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart index 4edf42ebe1..38830a8ddc 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_request_with_labels_and_timestamp_format_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,74 +12,68 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpRequestWithLabelsAndTimestampFormat (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsAndTimestampFormatOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpRequestWithLabelsAndTimestampFormat', - documentation: 'Serializes different timestamp formats in URI labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpRequestWithLabelsAndTimestampFormat (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsAndTimestampFormatOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpRequestWithLabelsAndTimestampFormat', + documentation: 'Serializes different timestamp formats in URI labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer(), + ], + ); + }); } class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer - extends _i3 - .StructuredSmithySerializer { + extends + _i3.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInput + > { const HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override - Iterable get types => - const [HttpRequestWithLabelsAndTimestampFormatInput]; + Iterable get types => const [ + HttpRequestWithLabelsAndTimestampFormatInput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInput deserialize( @@ -98,47 +92,26 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart index df487c4138..8c4c5e74be 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_request_with_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,123 +13,104 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonInputWithHeadersAndAllParams (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputWithHeadersAndAllParams', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': 'string', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpRequestLabelEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpRequestLabelEscaping', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': ' %:/?#[]@!\$&\'()*+,;=😹', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonInputWithHeadersAndAllParams (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputWithHeadersAndAllParams', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': 'string', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpRequestLabelEscaping (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpRequestLabelEscaping', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': ' %:/?#[]@!\$&\'()*+,;=😹', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestJson1Serializer()], + ); + }); } class HttpRequestWithLabelsInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestJson1Serializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [HttpRequestWithLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsInput deserialize( @@ -148,40 +129,54 @@ class HttpRequestWithLabelsInputRestJson1Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'timestamp': result.timestamp = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart index 0360490665..563e0fb31b 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_request_with_regex_literal_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonToleratesRegexCharsInSegments (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithRegexLiteralOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonToleratesRegexCharsInSegments', - documentation: - 'Path matching is not broken by regex expressions in literal segments', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'str': 'abc'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ReDosLiteral/abc/(a+)+', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithRegexLiteralInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonToleratesRegexCharsInSegments (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithRegexLiteralOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonToleratesRegexCharsInSegments', + documentation: + 'Path matching is not broken by regex expressions in literal segments', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'str': 'abc'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ReDosLiteral/abc/(a+)+', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithRegexLiteralInputRestJson1Serializer(), + ], + ); + }); } class HttpRequestWithRegexLiteralInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpRequestWithRegexLiteralInputRestJson1Serializer() - : super('HttpRequestWithRegexLiteralInput'); + : super('HttpRequestWithRegexLiteralInput'); @override Iterable get types => const [HttpRequestWithRegexLiteralInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithRegexLiteralInput deserialize( @@ -88,10 +79,12 @@ class HttpRequestWithRegexLiteralInputRestJson1Serializer } switch (key) { case 'str': - result.str = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.str = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart index 0c345222e8..86c1149e72 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_response_code_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,89 +12,74 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpResponseCode (response)', - () async { - await _i2.httpResponseTest( - operation: HttpResponseCodeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpResponseCode', - documentation: - 'Binds the http response code to an output structure. Note that\neven though all members are bound outside of the payload, an\nempty JSON object is serialized in the response. However,\nclients should be able to handle an empty JSON object or an\nempty payload without failing to deserialize a response.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'Status': 201}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 201, - ), - outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpResponseCodeWithNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: HttpResponseCodeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpResponseCodeWithNoPayload', - documentation: - 'This test ensures that clients gracefully handle cases where\nthe service responds with no payload rather than an empty JSON\nobject.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Status': 201}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 201, - ), - outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonHttpResponseCode (response)', () async { + await _i2.httpResponseTest( + operation: HttpResponseCodeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpResponseCode', + documentation: + 'Binds the http response code to an output structure. Note that\neven though all members are bound outside of the payload, an\nempty JSON object is serialized in the response. However,\nclients should be able to handle an empty JSON object or an\nempty payload without failing to deserialize a response.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'Status': 201}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 201, + ), + outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpResponseCodeWithNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: HttpResponseCodeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpResponseCodeWithNoPayload', + documentation: + 'This test ensures that clients gracefully handle cases where\nthe service responds with no payload rather than an empty JSON\nobject.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Status': 201}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 201, + ), + outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], + ); + }); } class HttpResponseCodeOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpResponseCodeOutputRestJson1Serializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [HttpResponseCodeOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpResponseCodeOutput deserialize( @@ -113,10 +98,12 @@ class HttpResponseCodeOutputRestJson1Serializer } switch (key) { case 'Status': - result.status = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.status = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart index a8d03ed1de..6a754c31c4 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.http_string_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,76 +12,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'StringPayloadRequest (request)', - () async { - await _i2.httpRequestTest( - operation: HttpStringPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'StringPayloadRequest', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'rawstring', - bodyMediaType: null, - params: {'payload': 'rawstring'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StringPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [StringPayloadInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'StringPayloadResponse (response)', - () async { - await _i2.httpResponseTest( - operation: HttpStringPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'StringPayloadResponse', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'rawstring', - bodyMediaType: null, - params: {'payload': 'rawstring'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [StringPayloadInputRestJson1Serializer()], - ); - }, - ); + _i1.test('StringPayloadRequest (request)', () async { + await _i2.httpRequestTest( + operation: HttpStringPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'StringPayloadRequest', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'rawstring', + bodyMediaType: null, + params: {'payload': 'rawstring'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StringPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [StringPayloadInputRestJson1Serializer()], + ); + }); + _i1.test('StringPayloadResponse (response)', () async { + await _i2.httpResponseTest( + operation: HttpStringPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'StringPayloadResponse', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'rawstring', + bodyMediaType: null, + params: {'payload': 'rawstring'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [StringPayloadInputRestJson1Serializer()], + ); + }); } class StringPayloadInputRestJson1Serializer @@ -93,11 +81,8 @@ class StringPayloadInputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StringPayloadInput deserialize( @@ -116,10 +101,12 @@ class StringPayloadInputRestJson1Serializer } switch (key) { case 'payload': - result.payload = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.payload = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart index 474bd1e012..c87bb77b71 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.ignore_query_params_in_response_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,93 +12,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonIgnoreQueryParamsInResponse (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoreQueryParamsInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonIgnoreQueryParamsInResponse', - documentation: - 'Query parameters must be ignored when serializing the output\nof an operation. As of January 2021, server implementations\nare expected to respond with a JSON object regardless of\nif the output parameters are empty.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoreQueryParamsInResponseOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonIgnoreQueryParamsInResponseNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoreQueryParamsInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonIgnoreQueryParamsInResponseNoPayload', - documentation: - 'This test is similar to RestJsonIgnoreQueryParamsInResponse,\nbut it ensures that clients gracefully handle responses from\nthe server that do not serialize an empty JSON object.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - IgnoreQueryParamsInResponseOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonIgnoreQueryParamsInResponse (response)', () async { + await _i2.httpResponseTest( + operation: IgnoreQueryParamsInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonIgnoreQueryParamsInResponse', + documentation: + 'Query parameters must be ignored when serializing the output\nof an operation. As of January 2021, server implementations\nare expected to respond with a JSON object regardless of\nif the output parameters are empty.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoreQueryParamsInResponseOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonIgnoreQueryParamsInResponseNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: IgnoreQueryParamsInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonIgnoreQueryParamsInResponseNoPayload', + documentation: + 'This test is similar to RestJsonIgnoreQueryParamsInResponse,\nbut it ensures that clients gracefully handle responses from\nthe server that do not serialize an empty JSON object.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + IgnoreQueryParamsInResponseOutputRestJson1Serializer(), + ], + ); + }); } class IgnoreQueryParamsInResponseOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestJson1Serializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [IgnoreQueryParamsInResponseOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -117,10 +102,12 @@ class IgnoreQueryParamsInResponseOutputRestJson1Serializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart index 504b4edfd3..6601ef835e 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.input_and_output_with_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,461 +15,358 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonInputAndOutputWithStringHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithStringHeaders', - documentation: 'Tests requests with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithQuotedStringHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithQuotedStringHeaders', - documentation: - 'Tests requests with string list header bindings that require quoting', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerStringList': [ - 'b,c', - '"def"', - 'a', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithNumericHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithNumericHeaders', - documentation: 'Tests requests with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithBooleanHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithBooleanHeaders', - documentation: 'Tests requests with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithTimestampHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithTimestampHeaders', - documentation: 'Tests requests with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithEnumHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithEnumHeaders', - documentation: 'Tests requests with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithIntEnumHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithIntEnumHeaders', - documentation: 'Tests requests with intEnum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerIntegerEnum': 1, - 'headerIntegerEnumList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-IntegerEnum': '1', - 'X-IntegerEnumList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatHeaderInputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatHeaderInputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonInputAndOutputWithStringHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithStringHeaders', + documentation: 'Tests requests with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithQuotedStringHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithQuotedStringHeaders', + documentation: + 'Tests requests with string list header bindings that require quoting', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerStringList': ['b,c', '"def"', 'a'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithNumericHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithNumericHeaders', + documentation: 'Tests requests with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithBooleanHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithBooleanHeaders', + documentation: 'Tests requests with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithTimestampHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithTimestampHeaders', + documentation: 'Tests requests with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithEnumHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithEnumHeaders', + documentation: 'Tests requests with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithIntEnumHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithIntEnumHeaders', + documentation: 'Tests requests with intEnum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerIntegerEnum': 1, + 'headerIntegerEnumList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-IntegerEnum': '1', 'X-IntegerEnumList': '1, 2, 3'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatHeaderInputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatHeaderInputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonSupportsNegativeInfinityFloatHeaderInputs (request)', () async { @@ -481,23 +378,14 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonSupportsNegativeInfinityFloatHeaderInputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -511,412 +399,309 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithStringHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithStringHeaders', - documentation: 'Tests responses with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithQuotedStringHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithQuotedStringHeaders', - documentation: - 'Tests responses with string list header bindings that require quoting', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerStringList': [ - 'b,c', - '"def"', - 'a', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithNumericHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithNumericHeaders', - documentation: 'Tests responses with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithBooleanHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithBooleanHeaders', - documentation: 'Tests responses with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithTimestampHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithTimestampHeaders', - documentation: 'Tests responses with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithEnumHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithEnumHeaders', - documentation: 'Tests responses with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithIntEnumHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithIntEnumHeaders', - documentation: 'Tests responses with intEnum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerIntegerEnum': 1, - 'headerIntegerEnumList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-IntegerEnum': '1', - 'X-IntegerEnumList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsNaNFloatHeaderOutputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsInfinityFloatHeaderOutputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() + InputAndOutputWithHeadersIoRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonInputAndOutputWithStringHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithStringHeaders', + documentation: 'Tests responses with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithQuotedStringHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithQuotedStringHeaders', + documentation: + 'Tests responses with string list header bindings that require quoting', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerStringList': ['b,c', '"def"', 'a'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithNumericHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithNumericHeaders', + documentation: 'Tests responses with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithBooleanHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithBooleanHeaders', + documentation: 'Tests responses with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithTimestampHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithTimestampHeaders', + documentation: 'Tests responses with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithEnumHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithEnumHeaders', + documentation: 'Tests responses with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithIntEnumHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithIntEnumHeaders', + documentation: 'Tests responses with intEnum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerIntegerEnum': 1, + 'headerIntegerEnumList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-IntegerEnum': '1', 'X-IntegerEnumList': '1, 2, 3'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsNaNFloatHeaderOutputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsInfinityFloatHeaderOutputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonSupportsNegativeInfinityFloatHeaderOutputs (response)', () async { @@ -928,23 +713,14 @@ void main() { testCase: const _i2.HttpResponseTestCase( id: 'RestJsonSupportsNegativeInfinityFloatHeaderOutputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: null, bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -952,7 +728,7 @@ void main() { code: 200, ), outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() + InputAndOutputWithHeadersIoRestJson1Serializer(), ], ); }, @@ -962,18 +738,15 @@ void main() { class InputAndOutputWithHeadersIoRestJson1Serializer extends _i3.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestJson1Serializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [InputAndOutputWithHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InputAndOutputWithHeadersIo deserialize( @@ -992,116 +765,148 @@ class InputAndOutputWithHeadersIoRestJson1Serializer } switch (key) { case 'headerString': - result.headerString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.headerString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'headerByte': - result.headerByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerShort': - result.headerShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerInteger': - result.headerInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerLong': - result.headerLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.headerLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'headerFloat': - result.headerFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerDouble': - result.headerDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerTrueBool': - result.headerTrueBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerTrueBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerFalseBool': - result.headerFalseBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerFalseBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerStringList': - result.headerStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.headerStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'headerStringSet': - result.headerStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], - ), - ) as _i5.BuiltSet)); + result.headerStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(String), + ]), + ) + as _i5.BuiltSet), + ); case 'headerIntegerList': - result.headerIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(int)], - ), - ) as _i5.BuiltList)); + result.headerIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [FullType(int)]), + ) + as _i5.BuiltList), + ); case 'headerBooleanList': - result.headerBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(bool)], - ), - ) as _i5.BuiltList)); + result.headerBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(bool), + ]), + ) + as _i5.BuiltList), + ); case 'headerTimestampList': - result.headerTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(DateTime)], - ), - ) as _i5.BuiltList)); + result.headerTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltList), + ); case 'headerEnum': - result.headerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.headerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'headerEnumList': - result.headerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(FooEnum)], - ), - ) as _i5.BuiltList)); + result.headerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltList), + ); case 'headerIntegerEnum': - result.headerIntegerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerIntegerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerIntegerEnumList': - result.headerIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(int)], - ), - ) as _i5.BuiltList)); + result.headerIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [FullType(int)]), + ) + as _i5.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart index 0fa5b93069..3a1d68265b 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.json_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,93 +14,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonBlobs (request)', - () async { - await _i2.httpRequestTest( - operation: JsonBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "data": "dmFsdWU="\n}', - bodyMediaType: 'application/json', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonBlobs', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonJsonBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: JsonBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "data": "dmFsdWU="\n}', - bodyMediaType: 'application/json', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonJsonBlobs (request)', () async { + await _i2.httpRequestTest( + operation: JsonBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "data": "dmFsdWU="\n}', + bodyMediaType: 'application/json', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonBlobs', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonBlobs (response)', () async { + await _i2.httpResponseTest( + operation: JsonBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "data": "dmFsdWU="\n}', + bodyMediaType: 'application/json', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], + ); + }); } class JsonBlobsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonBlobsInputOutputRestJson1Serializer() - : super('JsonBlobsInputOutput'); + : super('JsonBlobsInputOutput'); @override Iterable get types => const [JsonBlobsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonBlobsInputOutput deserialize( @@ -119,10 +104,12 @@ class JsonBlobsInputOutputRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_enums_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_enums_operation_test.dart index f958a377bb..999db548e8 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.json_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,127 +14,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonEnums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonJsonEnums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonJsonEnums (request)', () async { + await _i2.httpRequestTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonEnums (response)', () async { + await _i2.httpResponseTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], + ); + }); } class JsonEnumsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonEnumsInputOutputRestJson1Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [JsonEnumsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -153,47 +120,57 @@ class JsonEnumsInputOutputRestJson1Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart index 82177a39aa..124934a437 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.json_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,129 +13,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonIntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonIntEnums', - documentation: 'Serializes intEnums as integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'integerEnum1': 1, - 'integerEnum2': 2, - 'integerEnum3': 3, - 'integerEnumList': [ - 1, - 2, - 3, - ], - 'integerEnumSet': [ - 1, - 2, - ], - 'integerEnumMap': { - 'abc': 1, - 'def': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonIntEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonJsonIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonIntEnums', - documentation: 'Serializes intEnums as integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'integerEnum1': 1, - 'integerEnum2': 2, - 'integerEnum3': 3, - 'integerEnumList': [ - 1, - 2, - 3, - ], - 'integerEnumSet': [ - 1, - 2, - ], - 'integerEnumMap': { - 'abc': 1, - 'def': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonJsonIntEnums (request)', () async { + await _i2.httpRequestTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonIntEnums', + documentation: 'Serializes intEnums as integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'integerEnum1': 1, + 'integerEnum2': 2, + 'integerEnum3': 3, + 'integerEnumList': [1, 2, 3], + 'integerEnumSet': [1, 2], + 'integerEnumMap': {'abc': 1, 'def': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonIntEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonIntEnums', + documentation: 'Serializes intEnums as integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'integerEnum1': 1, + 'integerEnum2': 2, + 'integerEnum3': 3, + 'integerEnumList': [1, 2, 3], + 'integerEnumSet': [1, 2], + 'integerEnumMap': {'abc': 1, 'def': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], + ); + }); } class JsonIntEnumsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonIntEnumsInputOutputRestJson1Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [JsonIntEnumsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -154,47 +119,53 @@ class JsonIntEnumsInputOutputRestJson1Serializer } switch (key) { case 'integerEnum1': - result.integerEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerEnum2': - result.integerEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerEnum3': - result.integerEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerEnumList': - result.integerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'integerEnumSet': - result.integerEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.integerEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'integerEnumMap': - result.integerEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i4.BuiltMap)); + result.integerEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_lists_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_lists_operation_test.dart index 5576dcbe87..31734b882d 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.json_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,363 +15,252 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonLists (request)', - () async { - await _i2.httpRequestTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonLists', - documentation: 'Serializes JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsEmpty (request)', - () async { - await _i2.httpRequestTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonListsEmpty', - documentation: 'Serializes empty JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringList": []\n}', - bodyMediaType: 'application/json', - params: {'stringList': []}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsSerializeNull (request)', - () async { - await _i2.httpRequestTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonListsSerializeNull', - documentation: 'Serializes null values in lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [ - null, - 'hi', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonLists (response)', - () async { - await _i2.httpResponseTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonLists', - documentation: 'Serializes JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsEmpty (response)', - () async { - await _i2.httpResponseTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonListsEmpty', - documentation: 'Serializes empty JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringList": []\n}', - bodyMediaType: 'application/json', - params: {'stringList': []}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsSerializeNull (response)', - () async { - await _i2.httpResponseTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonListsSerializeNull', - documentation: 'Serializes null values in sparse lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [ - null, - 'hi', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonLists (request)', () async { + await _i2.httpRequestTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonLists', + documentation: 'Serializes JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsEmpty (request)', () async { + await _i2.httpRequestTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonListsEmpty', + documentation: 'Serializes empty JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringList": []\n}', + bodyMediaType: 'application/json', + params: {'stringList': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsSerializeNull (request)', () async { + await _i2.httpRequestTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonListsSerializeNull', + documentation: 'Serializes null values in lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null, 'hi'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonLists (response)', () async { + await _i2.httpResponseTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonLists', + documentation: 'Serializes JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsEmpty (response)', () async { + await _i2.httpResponseTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonListsEmpty', + documentation: 'Serializes empty JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringList": []\n}', + bodyMediaType: 'application/json', + params: {'stringList': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsSerializeNull (response)', () async { + await _i2.httpResponseTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonListsSerializeNull', + documentation: 'Serializes null values in sparse lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null, 'hi'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); } class JsonListsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonListsInputOutputRestJson1Serializer() - : super('JsonListsInputOutput'); + : super('JsonListsInputOutput'); @override Iterable get types => const [JsonListsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonListsInputOutput deserialize( @@ -390,90 +279,101 @@ class JsonListsInputOutputRestJson1Serializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType.nullable(String)], - ), - ) as _i4.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -499,11 +399,8 @@ class StructureListMemberRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StructureListMember deserialize( @@ -522,15 +419,19 @@ class StructureListMemberRestJson1Serializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_maps_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_maps_operation_test.dart index e7b2ad6633..c1f0ea54d0 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_maps_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.json_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,136 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { + _i1.test('RestJsonJsonMaps (request)', () async { + await _i2.httpRequestTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonMaps', + documentation: 'Serializes JSON maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + 'sparseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSerializesNullMapValues (request)', () async { + await _i2.httpRequestTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializesNullMapValues', + documentation: 'Serializes JSON map values in sparse maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseBooleanMap': {'x': null}, + 'sparseNumberMap': {'x': null}, + 'sparseStringMap': {'x': null}, + 'sparseStructMap': {'x': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSerializesZeroValuesInMaps (request)', () async { + await _i2.httpRequestTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializesZeroValuesInMaps', + documentation: + 'Ensure that 0 and false are sent over the wire in all maps and lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseNumberMap': {'x': 0}, + 'sparseNumberMap': {'x': 0}, + 'denseBooleanMap': {'x': false}, + 'sparseBooleanMap': {'x': false}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); _i1.test( - 'RestJsonJsonMaps (request)', + 'RestJsonSerializesSparseSetMap (request)', () async { await _i2.httpRequestTest( operation: JsonMapsOperation( @@ -23,24 +151,17 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonMaps', - documentation: 'Serializes JSON maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonSerializesSparseSetMap', + documentation: 'A request that contains a sparse map of sets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: - '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', + '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', bodyMediaType: 'application/json', params: { - 'denseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - }, - 'sparseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, + 'sparseSetMap': { + 'x': [], + 'y': ['a', 'b'], }, }, vendorParamsShape: null, @@ -64,9 +185,10 @@ void main() { ], ); }, + skip: 'Cannot handle this at the moment (empty vs. null).', ); _i1.test( - 'RestJsonSerializesNullMapValues (request)', + 'RestJsonSerializesDenseSetMap (request)', () async { await _i2.httpRequestTest( operation: JsonMapsOperation( @@ -74,21 +196,18 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesNullMapValues', - documentation: 'Serializes JSON map values in sparse maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonSerializesDenseSetMap', + documentation: 'A request that contains a dense map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: - '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', + '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', bodyMediaType: 'application/json', params: { - 'sparseBooleanMap': {'x': null}, - 'sparseNumberMap': {'x': null}, - 'sparseStringMap': {'x': null}, - 'sparseStructMap': {'x': null}, + 'denseSetMap': { + 'x': [], + 'y': ['a', 'b'], + }, }, vendorParamsShape: null, vendorParams: {}, @@ -111,9 +230,10 @@ void main() { ], ); }, + skip: 'Cannot handle this at the moment (empty vs. null).', ); _i1.test( - 'RestJsonSerializesZeroValuesInMaps (request)', + 'RestJsonSerializesSparseSetMapAndRetainsNull (request)', () async { await _i2.httpRequestTest( operation: JsonMapsOperation( @@ -121,22 +241,19 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesZeroValuesInMaps', - documentation: - 'Ensure that 0 and false are sent over the wire in all maps and lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonSerializesSparseSetMapAndRetainsNull', + documentation: 'A request that contains a sparse map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: - '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', + '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', bodyMediaType: 'application/json', params: { - 'denseNumberMap': {'x': 0}, - 'sparseNumberMap': {'x': 0}, - 'denseBooleanMap': {'x': false}, - 'sparseBooleanMap': {'x': false}, + 'sparseSetMap': { + 'x': [], + 'y': ['a', 'b'], + 'z': null, + }, }, vendorParamsShape: null, vendorParams: {}, @@ -159,20 +276,128 @@ void main() { ], ); }, + skip: 'Cannot handle this at the moment (empty vs. null).', ); - _i1.test('RestJsonSerializesSparseSetMap (request)', () async { - await _i2.httpRequestTest( + _i1.test('RestJsonJsonMaps (response)', () async { + await _i2.httpResponseTest( operation: JsonMapsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesSparseSetMap', - documentation: 'A request that contains a sparse map of sets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonMaps', + documentation: 'Deserializes JSON maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + 'sparseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDeserializesNullMapValues (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesNullMapValues', + documentation: 'Deserializes null JSON map values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseBooleanMap': {'x': null}, + 'sparseNumberMap': {'x': null}, + 'sparseStringMap': {'x': null}, + 'sparseStructMap': {'x': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDeserializesZeroValuesInMaps (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesZeroValuesInMaps', + documentation: + 'Ensure that 0 and false are sent over the wire in all maps and lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseNumberMap': {'x': 0}, + 'sparseNumberMap': {'x': 0}, + 'denseBooleanMap': {'x': false}, + 'sparseBooleanMap': {'x': false}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDeserializesSparseSetMap (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesSparseSetMap', + documentation: 'A response that contains a sparse map of sets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', @@ -180,11 +405,8 @@ void main() { params: { 'sparseSetMap': { 'x': [], - 'y': [ - 'a', - 'b', - ], - } + 'y': ['a', 'b'], + }, }, vendorParamsShape: null, vendorParams: {}, @@ -193,33 +415,24 @@ void main() { requireHeaders: [], tags: [], appliesTo: null, - method: 'POST', - uri: '/JsonMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + code: 200, ), - inputSerializers: const [ + outputSerializers: const [ JsonMapsInputOutputRestJson1Serializer(), GreetingStructRestJson1Serializer(), ], ); - }, skip: 'Cannot handle this at the moment (empty vs. null).'); - _i1.test('RestJsonSerializesDenseSetMap (request)', () async { - await _i2.httpRequestTest( + }); + _i1.test('RestJsonDeserializesDenseSetMap (response)', () async { + await _i2.httpResponseTest( operation: JsonMapsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesDenseSetMap', - documentation: 'A request that contains a dense map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesDenseSetMap', + documentation: 'A response that contains a dense map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', @@ -227,11 +440,8 @@ void main() { params: { 'denseSetMap': { 'x': [], - 'y': [ - 'a', - 'b', - ], - } + 'y': ['a', 'b'], + }, }, vendorParamsShape: null, vendorParams: {}, @@ -240,33 +450,24 @@ void main() { requireHeaders: [], tags: [], appliesTo: null, - method: 'POST', - uri: '/JsonMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + code: 200, ), - inputSerializers: const [ + outputSerializers: const [ JsonMapsInputOutputRestJson1Serializer(), GreetingStructRestJson1Serializer(), ], ); - }, skip: 'Cannot handle this at the moment (empty vs. null).'); - _i1.test('RestJsonSerializesSparseSetMapAndRetainsNull (request)', () async { - await _i2.httpRequestTest( + }); + _i1.test('RestJsonDeserializesSparseSetMapAndRetainsNull (response)', () async { + await _i2.httpResponseTest( operation: JsonMapsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesSparseSetMapAndRetainsNull', - documentation: 'A request that contains a sparse map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesSparseSetMapAndRetainsNull', + documentation: 'A response that contains a sparse map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', @@ -274,12 +475,9 @@ void main() { params: { 'sparseSetMap': { 'x': [], - 'y': [ - 'a', - 'b', - ], + 'y': ['a', 'b'], 'z': null, - } + }, }, vendorParamsShape: null, vendorParams: {}, @@ -288,326 +486,50 @@ void main() { requireHeaders: [], tags: [], appliesTo: null, - method: 'POST', - uri: '/JsonMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + code: 200, ), - inputSerializers: const [ + outputSerializers: const [ JsonMapsInputOutputRestJson1Serializer(), GreetingStructRestJson1Serializer(), ], ); - }, skip: 'Cannot handle this at the moment (empty vs. null).'); - _i1.test( - 'RestJsonJsonMaps (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonMaps', - documentation: 'Deserializes JSON maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - }, - 'sparseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesNullMapValues (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesNullMapValues', - documentation: 'Deserializes null JSON map values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseBooleanMap': {'x': null}, - 'sparseNumberMap': {'x': null}, - 'sparseStringMap': {'x': null}, - 'sparseStructMap': {'x': null}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesZeroValuesInMaps (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesZeroValuesInMaps', - documentation: - 'Ensure that 0 and false are sent over the wire in all maps and lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseNumberMap': {'x': 0}, - 'sparseNumberMap': {'x': 0}, - 'denseBooleanMap': {'x': false}, - 'sparseBooleanMap': {'x': false}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesSparseSetMap (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesSparseSetMap', - documentation: 'A response that contains a sparse map of sets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesDenseSetMap (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesDenseSetMap', - documentation: 'A response that contains a dense map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesSparseSetMapAndRetainsNull (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesSparseSetMapAndRetainsNull', - documentation: 'A response that contains a sparse map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - 'z': null, - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesDenseSetMapAndSkipsNull (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesDenseSetMapAndSkipsNull', - documentation: - 'Clients SHOULD tolerate seeing a null value in a dense map, and they SHOULD\ndrop the null key-value pair.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - } + }); + _i1.test('RestJsonDeserializesDenseSetMapAndSkipsNull (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesDenseSetMapAndSkipsNull', + documentation: + 'Clients SHOULD tolerate seeing a null value in a dense map, and they SHOULD\ndrop the null key-value pair.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseSetMap': { + 'x': [], + 'y': ['a', 'b'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); } class JsonMapsInputOutputRestJson1Serializer @@ -619,11 +541,8 @@ class JsonMapsInputOutputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonMapsInputOutput deserialize( @@ -642,115 +561,115 @@ class JsonMapsInputOutputRestJson1Serializer } switch (key) { case 'denseStructMap': - result.denseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.denseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseStructMap': - result.sparseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.sparseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); case 'denseNumberMap': - result.denseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i4.BuiltMap)); + result.denseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i4.BuiltMap), + ); case 'denseBooleanMap': - result.denseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(bool), - ], - ), - ) as _i4.BuiltMap)); + result.denseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(bool), + ]), + ) + as _i4.BuiltMap), + ); case 'denseStringMap': - result.denseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.denseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseNumberMap': - result.sparseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(int), - ], - ), - ) as _i4.BuiltMap)); + result.sparseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(int), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseBooleanMap': - result.sparseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(bool), - ], - ), - ) as _i4.BuiltMap)); + result.sparseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(bool), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i4.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i4.BuiltMap), + ); case 'denseSetMap': - result.denseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltSetMultimap)); + result.denseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltSetMultimap), + ); case 'sparseSetMap': - result.sparseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltSetMultimap)); + result.sparseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltSetMultimap), + ); } } @@ -776,11 +695,8 @@ class GreetingStructRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingStruct deserialize( @@ -799,10 +715,12 @@ class GreetingStructRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart index 9fe6ce42dd..997b049b9a 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.json_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,87 +12,71 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonTimestamps (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "normal": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithDateTimeFormat (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', - bodyMediaType: 'application/json', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonJsonTimestamps (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "normal": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonTimestampsWithDateTimeFormat (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', + bodyMediaType: 'application/json', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat (request)', () async { @@ -105,10 +89,7 @@ void main() { id: 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat', documentation: 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "dateTimeOnTarget": "2014-04-29T18:30:38Z"\n}', bodyMediaType: 'application/json', @@ -129,52 +110,44 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithEpochSecondsFormat (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "epochSeconds": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithEpochSecondsFormat (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "epochSeconds": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat (request)', () async { @@ -187,10 +160,7 @@ void main() { id: 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat', documentation: 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "epochSecondsOnTarget": 1398796238\n}', bodyMediaType: 'application/json', @@ -211,51 +181,43 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithHttpDateFormat (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', - bodyMediaType: 'application/json', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithHttpDateFormat (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', + bodyMediaType: 'application/json', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat (request)', () async { @@ -268,10 +230,7 @@ void main() { id: 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat', documentation: 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "httpDateOnTarget": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', bodyMediaType: 'application/json', @@ -292,80 +251,64 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "normal": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', - bodyMediaType: 'application/json', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "normal": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', + bodyMediaType: 'application/json', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat (response)', () async { @@ -378,10 +321,7 @@ void main() { id: 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat', documentation: 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "dateTimeOnTarget": "2014-04-29T18:30:38Z"\n}', bodyMediaType: 'application/json', @@ -396,46 +336,38 @@ void main() { code: 200, ), outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "epochSeconds": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "epochSeconds": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat (response)', () async { @@ -448,10 +380,7 @@ void main() { id: 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat', documentation: 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "epochSecondsOnTarget": 1398796238\n}', bodyMediaType: 'application/json', @@ -466,45 +395,37 @@ void main() { code: 200, ), outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', - bodyMediaType: 'application/json', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', + bodyMediaType: 'application/json', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat (response)', () async { @@ -517,10 +438,7 @@ void main() { id: 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat', documentation: 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "httpDateOnTarget": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', bodyMediaType: 'application/json', @@ -535,7 +453,7 @@ void main() { code: 200, ), outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, @@ -545,18 +463,15 @@ void main() { class JsonTimestampsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonTimestampsInputOutputRestJson1Serializer() - : super('JsonTimestampsInputOutput'); + : super('JsonTimestampsInputOutput'); @override Iterable get types => const [JsonTimestampsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonTimestampsInputOutput deserialize( @@ -585,34 +500,22 @@ class JsonTimestampsInputOutputRestJson1Serializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_unions_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_unions_operation_test.dart index 915eb70641..b646adce49 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_unions_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/json_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.json_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,747 +13,621 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonSerializeStringUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeStringUnionValue', - documentation: 'Serializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} + _i1.test('RestJsonSerializeStringUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeStringUnionValue', + documentation: 'Serializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeBooleanUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeBooleanUnionValue', + documentation: 'Serializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeNumberUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeNumberUnionValue', + documentation: 'Serializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeBlobUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeBlobUnionValue', + documentation: 'Serializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeTimestampUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeTimestampUnionValue', + documentation: 'Serializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeEnumUnionValue', + documentation: 'Serializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeListUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeListUnionValue', + documentation: 'Serializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeBooleanUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeBooleanUnionValue', - documentation: 'Serializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeMapUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeMapUnionValue', + documentation: 'Serializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeNumberUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeNumberUnionValue', - documentation: 'Serializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeStructureUnionValue', + documentation: 'Serializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeBlobUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeBlobUnionValue', - documentation: 'Serializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeRenamedStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeRenamedStructureUnionValue', + documentation: 'Serializes a renamed structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "renamedStructureValue": {\n "salutation": "hello!"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'renamedStructureValue': {'salutation': 'hello!'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeTimestampUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeTimestampUnionValue', - documentation: 'Serializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeStringUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeStringUnionValue', + documentation: 'Deserializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeBooleanUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeBooleanUnionValue', + documentation: 'Deserializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeNumberUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeNumberUnionValue', + documentation: 'Deserializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeBlobUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeBlobUnionValue', + documentation: 'Deserializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeTimestampUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeTimestampUnionValue', + documentation: 'Deserializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeEnumUnionValue', + documentation: 'Deserializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeListUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeListUnionValue', + documentation: 'Deserializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeEnumUnionValue', - documentation: 'Serializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeMapUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeMapUnionValue', + documentation: 'Deserializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeListUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeListUnionValue', - documentation: 'Serializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeStructureUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeStructureUnionValue', + documentation: 'Deserializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeMapUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeMapUnionValue', - documentation: 'Serializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeStructureUnionValue', - documentation: 'Serializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeRenamedStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeRenamedStructureUnionValue', - documentation: 'Serializes a renamed structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "renamedStructureValue": {\n "salutation": "hello!"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'renamedStructureValue': {'salutation': 'hello!'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeStringUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeStringUnionValue', - documentation: 'Deserializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeBooleanUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeBooleanUnionValue', - documentation: 'Deserializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeNumberUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeNumberUnionValue', - documentation: 'Deserializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeBlobUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeBlobUnionValue', - documentation: 'Deserializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeTimestampUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeTimestampUnionValue', - documentation: 'Deserializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeEnumUnionValue', - documentation: 'Deserializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeListUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeListUnionValue', - documentation: 'Deserializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeMapUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeMapUnionValue', - documentation: 'Deserializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeStructureUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeStructureUnionValue', - documentation: 'Deserializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); } class UnionInputOutputRestJson1Serializer @@ -765,11 +639,8 @@ class UnionInputOutputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnionInputOutput deserialize( @@ -788,10 +659,12 @@ class UnionInputOutputRestJson1Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart index 58e1ce2d2a..f2f52b2ffd 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.media_type_header_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,95 +13,80 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'MediaTypeHeaderInputBase64 (request)', - () async { - await _i2.httpRequestTest( - operation: MediaTypeHeaderOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'MediaTypeHeaderInputBase64', - documentation: - 'Headers that target strings with a mediaType are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'json': 'true'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Json': 'dHJ1ZQ=='}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/MediaTypeHeader', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [MediaTypeHeaderInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'MediaTypeHeaderOutputBase64 (response)', - () async { - await _i2.httpResponseTest( - operation: MediaTypeHeaderOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'MediaTypeHeaderOutputBase64', - documentation: - 'Headers that target strings with a mediaType are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {'json': 'true'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Json': 'dHJ1ZQ=='}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [MediaTypeHeaderOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('MediaTypeHeaderInputBase64 (request)', () async { + await _i2.httpRequestTest( + operation: MediaTypeHeaderOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'MediaTypeHeaderInputBase64', + documentation: + 'Headers that target strings with a mediaType are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'json': 'true'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Json': 'dHJ1ZQ=='}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/MediaTypeHeader', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [MediaTypeHeaderInputRestJson1Serializer()], + ); + }); + _i1.test('MediaTypeHeaderOutputBase64 (response)', () async { + await _i2.httpResponseTest( + operation: MediaTypeHeaderOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'MediaTypeHeaderOutputBase64', + documentation: + 'Headers that target strings with a mediaType are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {'json': 'true'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Json': 'dHJ1ZQ=='}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [MediaTypeHeaderOutputRestJson1Serializer()], + ); + }); } class MediaTypeHeaderInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const MediaTypeHeaderInputRestJson1Serializer() - : super('MediaTypeHeaderInput'); + : super('MediaTypeHeaderInput'); @override Iterable get types => const [MediaTypeHeaderInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderInput deserialize( @@ -143,18 +128,15 @@ class MediaTypeHeaderInputRestJson1Serializer class MediaTypeHeaderOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const MediaTypeHeaderOutputRestJson1Serializer() - : super('MediaTypeHeaderOutput'); + : super('MediaTypeHeaderOutput'); @override Iterable get types => const [MediaTypeHeaderOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderOutput deserialize( diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart index 0d24691ad9..dd7ca74bbf 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,76 +10,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonNoInputAndNoOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonNoInputAndNoOutput', - documentation: - 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndNoOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'RestJsonNoInputAndNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonNoInputAndNoOutput', - documentation: - 'When an operation does not define output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonNoInputAndNoOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonNoInputAndNoOutput', + documentation: + 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndNoOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('RestJsonNoInputAndNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonNoInputAndNoOutput', + documentation: + 'When an operation does not define output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart index ce561b00af..7afc620296 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,128 +12,107 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonNoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonNoInputAndOutput', - documentation: - 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndOutputOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'RestJsonNoInputAndOutputWithJson (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonNoInputAndOutputWithJson', - documentation: - 'Operations that define output and do not bind anything to\nthe payload return a JSON object in the response.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonNoInputAndOutputNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonNoInputAndOutputNoPayload', - documentation: - 'This test is similar to RestJsonNoInputAndOutputWithJson, but\nit ensures that clients can gracefully handle responses that\nomit a JSON payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonNoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonNoInputAndOutput', + documentation: + 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndOutputOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('RestJsonNoInputAndOutputWithJson (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonNoInputAndOutputWithJson', + documentation: + 'Operations that define output and do not bind anything to\nthe payload return a JSON object in the response.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonNoInputAndOutputNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonNoInputAndOutputNoPayload', + documentation: + 'This test is similar to RestJsonNoInputAndOutputWithJson, but\nit ensures that clients can gracefully handle responses that\nomit a JSON payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], + ); + }); } class NoInputAndOutputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputRestJson1Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart index 3eeb273c5c..475d766f1d 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.null_and_empty_headers_client_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,70 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonNullAndEmptyHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: NullAndEmptyHeadersClientOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonNullAndEmptyHeaders', - documentation: - 'Do not send null values, empty strings, or empty lists over the wire in headers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'a': null, - 'b': '', - 'c': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [ - 'X-A', - 'X-B', - 'X-C', - ], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/NullAndEmptyHeadersClient', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NullAndEmptyHeadersIoRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonNullAndEmptyHeaders (request)', () async { + await _i2.httpRequestTest( + operation: NullAndEmptyHeadersClientOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonNullAndEmptyHeaders', + documentation: + 'Do not send null values, empty strings, or empty lists over the wire in headers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'a': null, 'b': '', 'c': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: ['X-A', 'X-B', 'X-C'], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/NullAndEmptyHeadersClient', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullAndEmptyHeadersIoRestJson1Serializer()], + ); + }); } class NullAndEmptyHeadersIoRestJson1Serializer extends _i3.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestJson1Serializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [NullAndEmptyHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NullAndEmptyHeadersIo deserialize( @@ -95,23 +78,29 @@ class NullAndEmptyHeadersIoRestJson1Serializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'c': - result.c.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.c.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart index ba328a6fa8..8a8b132d77 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.omits_null_serializes_empty_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,103 +12,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonOmitsNullQuery (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonOmitsNullQuery', - documentation: 'Omits null query values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'nullValue': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSerializesEmptyQueryValue (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesEmptyQueryValue', - documentation: 'Serializes empty query strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: ['Empty='], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonOmitsNullQuery (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonOmitsNullQuery', + documentation: 'Omits null query values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'nullValue': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSerializesEmptyQueryValue (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializesEmptyQueryValue', + documentation: 'Serializes empty query strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: ['Empty='], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestJson1Serializer(), + ], + ); + }); } -class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const OmitsNullSerializesEmptyStringInputRestJson1Serializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [OmitsNullSerializesEmptyStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsNullSerializesEmptyStringInput deserialize( @@ -127,15 +113,19 @@ class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i3 } switch (key) { case 'nullValue': - result.nullValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart index 523af29ff8..e36d499eed 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.omits_serializing_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,71 +14,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonOmitsEmptyListQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsSerializingEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonOmitsEmptyListQueryValues', - documentation: 'Supports omitting empty lists.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryStringList': [], - 'queryIntegerList': [], - 'queryDoubleList': [], - 'queryBooleanList': [], - 'queryTimestampList': [], - 'queryEnumList': [], - 'queryIntegerEnumList': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/OmitsSerializingEmptyLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsSerializingEmptyListsInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonOmitsEmptyListQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: OmitsSerializingEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonOmitsEmptyListQueryValues', + documentation: 'Supports omitting empty lists.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryStringList': [], + 'queryIntegerList': [], + 'queryDoubleList': [], + 'queryBooleanList': [], + 'queryTimestampList': [], + 'queryEnumList': [], + 'queryIntegerEnumList': [], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/OmitsSerializingEmptyLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsSerializingEmptyListsInputRestJson1Serializer(), + ], + ); + }); } class OmitsSerializingEmptyListsInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const OmitsSerializingEmptyListsInputRestJson1Serializer() - : super('OmitsSerializingEmptyListsInput'); + : super('OmitsSerializingEmptyListsInput'); @override Iterable get types => const [OmitsSerializingEmptyListsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsSerializingEmptyListsInput deserialize( @@ -97,61 +88,71 @@ class OmitsSerializingEmptyListsInputRestJson1Serializer } switch (key) { case 'queryStringList': - result.queryStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.queryStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerList': - result.queryIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryDoubleList': - result.queryDoubleList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(double)], - ), - ) as _i4.BuiltList)); + result.queryDoubleList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(double), + ]), + ) + as _i4.BuiltList), + ); case 'queryBooleanList': - result.queryBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.queryBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'queryTimestampList': - result.queryTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.queryTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'queryEnumList': - result.queryEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.queryEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerEnumList': - result.queryIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart index 2e49a350d2..a5300582c9 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.post_player_action_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,99 +14,84 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonInputUnionWithUnitMember (request)', - () async { - await _i2.httpRequestTest( - operation: PostPlayerActionOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputUnionWithUnitMember', - documentation: - 'Unit types in unions are serialized like normal structures in requests.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "action": {\n "quit": {}\n }\n}', - bodyMediaType: 'application/json', - params: { - 'action': {'quit': {}} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostPlayerAction', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PostPlayerActionInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonOutputUnionWithUnitMember (response)', - () async { - await _i2.httpResponseTest( - operation: PostPlayerActionOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonOutputUnionWithUnitMember', - documentation: - 'Unit types in unions are serialized like normal structures in responses.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "action": {\n "quit": {}\n }\n}', - bodyMediaType: 'application/json', - params: { - 'action': {'quit': {}} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [PostPlayerActionOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonInputUnionWithUnitMember (request)', () async { + await _i2.httpRequestTest( + operation: PostPlayerActionOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputUnionWithUnitMember', + documentation: + 'Unit types in unions are serialized like normal structures in requests.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "action": {\n "quit": {}\n }\n}', + bodyMediaType: 'application/json', + params: { + 'action': {'quit': {}}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostPlayerAction', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostPlayerActionInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonOutputUnionWithUnitMember (response)', () async { + await _i2.httpResponseTest( + operation: PostPlayerActionOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonOutputUnionWithUnitMember', + documentation: + 'Unit types in unions are serialized like normal structures in responses.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "action": {\n "quit": {}\n }\n}', + bodyMediaType: 'application/json', + params: { + 'action': {'quit': {}}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [PostPlayerActionOutputRestJson1Serializer()], + ); + }); } class PostPlayerActionInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostPlayerActionInputRestJson1Serializer() - : super('PostPlayerActionInput'); + : super('PostPlayerActionInput'); @override Iterable get types => const [PostPlayerActionInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionInput deserialize( @@ -125,10 +110,12 @@ class PostPlayerActionInputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } @@ -148,18 +135,15 @@ class PostPlayerActionInputRestJson1Serializer class PostPlayerActionOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostPlayerActionOutputRestJson1Serializer() - : super('PostPlayerActionOutput'); + : super('PostPlayerActionOutput'); @override Iterable get types => const [PostPlayerActionOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionOutput deserialize( @@ -178,10 +162,12 @@ class PostPlayerActionOutputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart index 5c245fd6c5..b3ecf87c66 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.post_union_with_json_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,257 +14,212 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'PostUnionWithJsonNameRequest1 (request)', - () async { - await _i2.httpRequestTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'PostUnionWithJsonNameRequest1', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "FOO": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'foo': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostUnionWithJsonName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PostUnionWithJsonNameInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameRequest2 (request)', - () async { - await _i2.httpRequestTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'PostUnionWithJsonNameRequest2', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "_baz": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'baz': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostUnionWithJsonName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PostUnionWithJsonNameInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameRequest3 (request)', - () async { - await _i2.httpRequestTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'PostUnionWithJsonNameRequest3', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "bar": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'bar': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostUnionWithJsonName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PostUnionWithJsonNameInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameResponse1 (response)', - () async { - await _i2.httpResponseTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PostUnionWithJsonNameResponse1', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "FOO": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'foo': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PostUnionWithJsonNameOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameResponse2 (response)', - () async { - await _i2.httpResponseTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PostUnionWithJsonNameResponse2', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "_baz": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'baz': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PostUnionWithJsonNameOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameResponse3 (response)', - () async { - await _i2.httpResponseTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PostUnionWithJsonNameResponse3', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "bar": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'bar': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PostUnionWithJsonNameOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('PostUnionWithJsonNameRequest1 (request)', () async { + await _i2.httpRequestTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PostUnionWithJsonNameRequest1', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "FOO": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'foo': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostUnionWithJsonName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostUnionWithJsonNameInputRestJson1Serializer()], + ); + }); + _i1.test('PostUnionWithJsonNameRequest2 (request)', () async { + await _i2.httpRequestTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PostUnionWithJsonNameRequest2', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "_baz": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'baz': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostUnionWithJsonName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostUnionWithJsonNameInputRestJson1Serializer()], + ); + }); + _i1.test('PostUnionWithJsonNameRequest3 (request)', () async { + await _i2.httpRequestTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PostUnionWithJsonNameRequest3', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "bar": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'bar': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostUnionWithJsonName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostUnionWithJsonNameInputRestJson1Serializer()], + ); + }); + _i1.test('PostUnionWithJsonNameResponse1 (response)', () async { + await _i2.httpResponseTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PostUnionWithJsonNameResponse1', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "FOO": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'foo': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PostUnionWithJsonNameOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('PostUnionWithJsonNameResponse2 (response)', () async { + await _i2.httpResponseTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PostUnionWithJsonNameResponse2', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "_baz": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'baz': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PostUnionWithJsonNameOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('PostUnionWithJsonNameResponse3 (response)', () async { + await _i2.httpResponseTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PostUnionWithJsonNameResponse3', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "bar": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'bar': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PostUnionWithJsonNameOutputRestJson1Serializer(), + ], + ); + }); } class PostUnionWithJsonNameInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostUnionWithJsonNameInputRestJson1Serializer() - : super('PostUnionWithJsonNameInput'); + : super('PostUnionWithJsonNameInput'); @override Iterable get types => const [PostUnionWithJsonNameInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameInput deserialize( @@ -283,10 +238,12 @@ class PostUnionWithJsonNameInputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } @@ -306,18 +263,15 @@ class PostUnionWithJsonNameInputRestJson1Serializer class PostUnionWithJsonNameOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostUnionWithJsonNameOutputRestJson1Serializer() - : super('PostUnionWithJsonNameOutput'); + : super('PostUnionWithJsonNameOutput'); @override Iterable get types => const [PostUnionWithJsonNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameOutput deserialize( @@ -336,10 +290,12 @@ class PostUnionWithJsonNameOutputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart index ba5d7357fe..142a8bb346 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,107 +12,105 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_restJson1 (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_restJson1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', + _i1.test( + 'SDKAppliedContentEncoding_restJson1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputRestJson1Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendedGzipAfterProvidedEncoding_restJson1 (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendedGzipAfterProvidedEncoding_restJson1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_restJson1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'custom, gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputRestJson1Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputRestJson1Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendedGzipAfterProvidedEncoding_restJson1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendedGzipAfterProvidedEncoding_restJson1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'custom, gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputRestJson1Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputRestJson1Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PutWithContentEncodingInput deserialize( @@ -131,15 +129,19 @@ class PutWithContentEncodingInputRestJson1Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart index 1f11394c79..f3f0f2b9af 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,8 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('RestJsonQueryIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/QueryIdempotencyTokenAutoFill', - host: null, - resolvedHost: null, - queryParams: ['token=00000000-0000-4000-8000-000000000000'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestJson1Serializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); _i1.test( - 'RestJsonQueryIdempotencyTokenAutoFillIsSet (request)', + 'RestJsonQueryIdempotencyTokenAutoFill (request)', () async { await _i2.httpRequestTest( operation: QueryIdempotencyTokenAutoFillOperation( @@ -58,16 +21,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonQueryIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: {'token': '00000000-0000-4000-8000-000000000000'}, + params: {}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -84,28 +44,60 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestJson1Serializer() + QueryIdempotencyTokenAutoFillInputRestJson1Serializer(), ], ); }, + skip: 'bool.fromEnvironment is not working in tests for some reason', ); + _i1.test('RestJsonQueryIdempotencyTokenAutoFillIsSet (request)', () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'token': '00000000-0000-4000-8000-000000000000'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/QueryIdempotencyTokenAutoFill', + host: null, + resolvedHost: null, + queryParams: ['token=00000000-0000-4000-8000-000000000000'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputRestJson1Serializer(), + ], + ); + }); } class QueryIdempotencyTokenAutoFillInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputRestJson1Serializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -124,10 +116,12 @@ class QueryIdempotencyTokenAutoFillInputRestJson1Serializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart index 48d3a60184..2c39ae9a1a 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.query_params_as_string_list_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,75 +13,59 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonQueryParamsStringListMap (request)', - () async { - await _i2.httpRequestTest( - operation: QueryParamsAsStringListMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryParamsStringListMap', - documentation: 'Serialize query params from map of list strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'qux': 'named', - 'foo': { - 'baz': [ - 'bar', - 'qux', - ] - }, + _i1.test('RestJsonQueryParamsStringListMap (request)', () async { + await _i2.httpRequestTest( + operation: QueryParamsAsStringListMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryParamsStringListMap', + documentation: 'Serialize query params from map of list strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'qux': 'named', + 'foo': { + 'baz': ['bar', 'qux'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/StringListMap', - host: null, - resolvedHost: null, - queryParams: [ - 'corge=named', - 'baz=bar', - 'baz=qux', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryParamsAsStringListMapInputRestJson1Serializer() - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/StringListMap', + host: null, + resolvedHost: null, + queryParams: ['corge=named', 'baz=bar', 'baz=qux'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryParamsAsStringListMapInputRestJson1Serializer(), + ], + ); + }); } class QueryParamsAsStringListMapInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestJson1Serializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [QueryParamsAsStringListMapInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryParamsAsStringListMapInput deserialize( @@ -100,21 +84,23 @@ class QueryParamsAsStringListMapInputRestJson1Serializer } switch (key) { case 'qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'foo': - result.foo.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.foo.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart index 0d059cc909..cdd5e77a9c 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.query_precedence_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,70 +13,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonQueryPrecedence (request)', - () async { - await _i2.httpRequestTest( - operation: QueryPrecedenceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryPrecedence', - documentation: 'Prefer named query parameters when serializing', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'named', - 'baz': { - 'bar': 'fromMap', - 'qux': 'alsoFromMap', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/Precedence', - host: null, - resolvedHost: null, - queryParams: [ - 'bar=named', - 'qux=alsoFromMap', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryPrecedenceInputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonQueryPrecedence (request)', () async { + await _i2.httpRequestTest( + operation: QueryPrecedenceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryPrecedence', + documentation: 'Prefer named query parameters when serializing', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'named', + 'baz': {'bar': 'fromMap', 'qux': 'alsoFromMap'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/Precedence', + host: null, + resolvedHost: null, + queryParams: ['bar=named', 'qux=alsoFromMap'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryPrecedenceInputRestJson1Serializer()], + ); + }); } class QueryPrecedenceInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const QueryPrecedenceInputRestJson1Serializer() - : super('QueryPrecedenceInput'); + : super('QueryPrecedenceInput'); @override Iterable get types => const [QueryPrecedenceInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryPrecedenceInput deserialize( @@ -95,21 +80,23 @@ class QueryPrecedenceInputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.baz.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart index 64f68ecb18..59cd7020c6 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.recursive_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,125 +14,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonRecursiveShapes (request)', - () async { - await _i2.httpRequestTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonRecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', - bodyMediaType: 'application/json', - params: { + _i1.test('RestJsonRecursiveShapes (request)', () async { + await _i2.httpRequestTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonRecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/RecursiveShapes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - RecursiveShapesInputOutputRestJson1Serializer(), - RecursiveShapesInputOutputNested1RestJson1Serializer(), - RecursiveShapesInputOutputNested2RestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonRecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonRecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', - bodyMediaType: 'application/json', - params: { + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/RecursiveShapes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + RecursiveShapesInputOutputRestJson1Serializer(), + RecursiveShapesInputOutputNested1RestJson1Serializer(), + RecursiveShapesInputOutputNested2RestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonRecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonRecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveShapesInputOutputRestJson1Serializer(), - RecursiveShapesInputOutputNested1RestJson1Serializer(), - RecursiveShapesInputOutputNested2RestJson1Serializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveShapesInputOutputRestJson1Serializer(), + RecursiveShapesInputOutputNested1RestJson1Serializer(), + RecursiveShapesInputOutputNested2RestJson1Serializer(), + ], + ); + }); } class RecursiveShapesInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputRestJson1Serializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [RecursiveShapesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -151,10 +136,15 @@ class RecursiveShapesInputOutputRestJson1Serializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -174,18 +164,15 @@ class RecursiveShapesInputOutputRestJson1Serializer class RecursiveShapesInputOutputNested1RestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestJson1Serializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [RecursiveShapesInputOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -204,15 +191,22 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -232,18 +226,15 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer class RecursiveShapesInputOutputNested2RestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestJson1Serializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [RecursiveShapesInputOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -262,15 +253,22 @@ class RecursiveShapesInputOutputNested2RestJson1Serializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart index 326a03157b..ad04a9f96e 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,446 +13,358 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonSimpleScalarProperties (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', - bodyMediaType: 'application/json', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonDoesntSerializeNullStructureValues (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonDoesntSerializeNullStructureValues', - documentation: 'Rest Json should not serialize null structure values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'stringValue': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', - bodyMediaType: 'application/json', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonDoesntDeserializeNullStructureValues (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDoesntDeserializeNullStructureValues', - documentation: - 'Rest Json should not deserialize null structure values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": null\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNegativeInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonSimpleScalarProperties (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', + bodyMediaType: 'application/json', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDoesntSerializeNullStructureValues (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonDoesntSerializeNullStructureValues', + documentation: 'Rest Json should not serialize null structure values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'stringValue': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', + bodyMediaType: 'application/json', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDoesntDeserializeNullStructureValues (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDoesntDeserializeNullStructureValues', + documentation: 'Rest Json should not deserialize null structure values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": null\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNegativeInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputRestJson1Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -471,55 +383,75 @@ class SimpleScalarPropertiesInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart index 75a9dace1f..a02cbb9cef 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.streaming_traits_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,183 +14,140 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonStreamingTraitsWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'application/octet-stream', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithNoBlobBody (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonStreamingTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'application/octet-stream', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithNoBlobBody (response)', - () async { - await _i2.httpResponseTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonStreamingTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonStreamingTraitsWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [StreamingTraitsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonStreamingTraitsWithNoBlobBody (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [StreamingTraitsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonStreamingTraitsWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonStreamingTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + StreamingTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonStreamingTraitsWithNoBlobBody (response)', () async { + await _i2.httpResponseTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonStreamingTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + StreamingTraitsInputOutputRestJson1Serializer(), + ], + ); + }); } class StreamingTraitsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const StreamingTraitsInputOutputRestJson1Serializer() - : super('StreamingTraitsInputOutput'); + : super('StreamingTraitsInputOutput'); @override Iterable get types => const [StreamingTraitsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StreamingTraitsInputOutput deserialize( @@ -209,23 +166,21 @@ class StreamingTraitsInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType( - _i4.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i4.Stream>); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i4.Stream>); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart index 5806907ac1..65f2e235fb 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.streaming_traits_require_length_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,53 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonStreamingTraitsRequireLengthWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsRequireLengthOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsRequireLengthWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a required length', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'application/octet-stream', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraitsRequireLength', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsRequireLengthInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonStreamingTraitsRequireLengthWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsRequireLengthOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsRequireLengthWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a required length', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraitsRequireLength', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + StreamingTraitsRequireLengthInputRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonStreamingTraitsRequireLengthWithNoBlobBody (request)', () async { @@ -72,10 +60,7 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonStreamingTraitsRequireLengthWithNoBlobBody', documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: 'application/octet-stream', @@ -96,7 +81,7 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - StreamingTraitsRequireLengthInputRestJson1Serializer() + StreamingTraitsRequireLengthInputRestJson1Serializer(), ], ); }, @@ -106,18 +91,15 @@ void main() { class StreamingTraitsRequireLengthInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const StreamingTraitsRequireLengthInputRestJson1Serializer() - : super('StreamingTraitsRequireLengthInput'); + : super('StreamingTraitsRequireLengthInput'); @override Iterable get types => const [StreamingTraitsRequireLengthInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StreamingTraitsRequireLengthInput deserialize( @@ -136,23 +118,21 @@ class StreamingTraitsRequireLengthInputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType( - _i4.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i4.Stream>); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i4.Stream>); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart index 92a7d40c7c..a29823539c 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.streaming_traits_with_media_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,111 +14,87 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonStreamingTraitsWithMediaTypeWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraitsWithMediaType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithMediaTypeWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: StreamingTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonStreamingTraitsWithMediaTypeWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraitsWithMediaType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonStreamingTraitsWithMediaTypeWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: StreamingTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer(), + ], + ); + }); } -class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer + extends + _i3.StructuredSmithySerializer< + StreamingTraitsWithMediaTypeInputOutput + > { const StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('StreamingTraitsWithMediaTypeInputOutput'); + : super('StreamingTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [StreamingTraitsWithMediaTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StreamingTraitsWithMediaTypeInputOutput deserialize( @@ -137,23 +113,21 @@ class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType( - _i4.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i4.Stream>); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i4.Stream>); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart index 78d22ce917..d1f45457b8 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.test_body_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,107 +13,92 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonTestBodyStructure (request)', - () async { - await _i2.httpRequestTest( - operation: TestBodyStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTestBodyStructure', - documentation: 'Serializes a structure', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{"testConfig":\n {"timeout": 10}\n}', - bodyMediaType: 'application/json', - params: { - 'testConfig': {'timeout': 10} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/body', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestBodyStructureInputOutputRestJson1Serializer(), - TestConfigRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpWithEmptyBody (request)', - () async { - await _i2.httpRequestTest( - operation: TestBodyStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithEmptyBody', - documentation: 'Serializes an empty structure in the body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/body', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestBodyStructureInputOutputRestJson1Serializer(), - TestConfigRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonTestBodyStructure (request)', () async { + await _i2.httpRequestTest( + operation: TestBodyStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTestBodyStructure', + documentation: 'Serializes a structure', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{"testConfig":\n {"timeout": 10}\n}', + bodyMediaType: 'application/json', + params: { + 'testConfig': {'timeout': 10}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/body', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestBodyStructureInputOutputRestJson1Serializer(), + TestConfigRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpWithEmptyBody (request)', () async { + await _i2.httpRequestTest( + operation: TestBodyStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithEmptyBody', + documentation: 'Serializes an empty structure in the body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/body', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestBodyStructureInputOutputRestJson1Serializer(), + TestConfigRestJson1Serializer(), + ], + ); + }); } class TestBodyStructureInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestBodyStructureInputOutputRestJson1Serializer() - : super('TestBodyStructureInputOutput'); + : super('TestBodyStructureInputOutput'); @override Iterable get types => const [TestBodyStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestBodyStructureInputOutput deserialize( @@ -132,15 +117,20 @@ class TestBodyStructureInputOutputRestJson1Serializer } switch (key) { case 'testId': - result.testId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.testId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'testConfig': - result.testConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(TestConfig), - ) as TestConfig)); + result.testConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(TestConfig), + ) + as TestConfig), + ); } } @@ -166,11 +156,8 @@ class TestConfigRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestConfig deserialize( @@ -189,10 +176,12 @@ class TestConfigRestJson1Serializer } switch (key) { case 'timeout': - result.timeout = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.timeout = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart index cb969fe8b0..9432d0cf08 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.test_no_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,106 +12,85 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpWithNoModeledBody (request)', - () async { - await _i2.httpRequestTest( - operation: TestNoPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithNoModeledBody', - documentation: 'Serializes a GET request with no modeled body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [ - 'Content-Length', - 'Content-Type', - ], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/no_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpWithHeaderMemberNoModeledBody (request)', - () async { - await _i2.httpRequestTest( - operation: TestNoPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithHeaderMemberNoModeledBody', - documentation: - 'Serializes a GET request with header member but no modeled body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'testId': 't-12345'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amz-Test-Id': 't-12345'}, - forbidHeaders: [ - 'Content-Length', - 'Content-Type', - ], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/no_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonHttpWithNoModeledBody (request)', () async { + await _i2.httpRequestTest( + operation: TestNoPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithNoModeledBody', + documentation: 'Serializes a GET request with no modeled body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: ['Content-Length', 'Content-Type'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/no_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpWithHeaderMemberNoModeledBody (request)', () async { + await _i2.httpRequestTest( + operation: TestNoPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithHeaderMemberNoModeledBody', + documentation: + 'Serializes a GET request with header member but no modeled body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'testId': 't-12345'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amz-Test-Id': 't-12345'}, + forbidHeaders: ['Content-Length', 'Content-Type'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/no_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], + ); + }); } class TestNoPayloadInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestNoPayloadInputOutputRestJson1Serializer() - : super('TestNoPayloadInputOutput'); + : super('TestNoPayloadInputOutput'); @override Iterable get types => const [TestNoPayloadInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestNoPayloadInputOutput deserialize( @@ -130,10 +109,12 @@ class TestNoPayloadInputOutputRestJson1Serializer } switch (key) { case 'testId': - result.testId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.testId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart index c8c5528048..b4fdfb78e3 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.test_payload_blob_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,106 +14,84 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpWithEmptyBlobPayload (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadBlobOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithEmptyBlobPayload', - documentation: 'Serializes a payload targeting an empty blob', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/octet-stream'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/blob_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadBlobInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonTestPayloadBlob (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadBlobOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTestPayloadBlob', - documentation: 'Serializes a payload targeting a blob', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '1234', - bodyMediaType: 'image/jpg', - params: { - 'contentType': 'image/jpg', - 'data': '1234', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'image/jpg'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/blob_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadBlobInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpWithEmptyBlobPayload (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadBlobOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithEmptyBlobPayload', + documentation: 'Serializes a payload targeting an empty blob', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/blob_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestPayloadBlobInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonTestPayloadBlob (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadBlobOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTestPayloadBlob', + documentation: 'Serializes a payload targeting a blob', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '1234', + bodyMediaType: 'image/jpg', + params: {'contentType': 'image/jpg', 'data': '1234'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'image/jpg'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/blob_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestPayloadBlobInputOutputRestJson1Serializer()], + ); + }); } class TestPayloadBlobInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestPayloadBlobInputOutputRestJson1Serializer() - : super('TestPayloadBlobInputOutput'); + : super('TestPayloadBlobInputOutput'); @override Iterable get types => const [TestPayloadBlobInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestPayloadBlobInputOutput deserialize( @@ -132,15 +110,19 @@ class TestPayloadBlobInputOutputRestJson1Serializer } switch (key) { case 'contentType': - result.contentType = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.contentType = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart index d37d844ea5..780db31ccf 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.test_payload_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,152 +13,131 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpWithEmptyStructurePayload (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithEmptyStructurePayload', - documentation: 'Serializes a payload targeting an empty structure', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadStructureInputOutputRestJson1Serializer(), - PayloadConfigRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonTestPayloadStructure (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTestPayloadStructure', - documentation: 'Serializes a payload targeting a structure', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{"data": 25\n}', - bodyMediaType: 'application/json', - params: { - 'payloadConfig': {'data': 25} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadStructureInputOutputRestJson1Serializer(), - PayloadConfigRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpWithHeadersButNoPayload (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithHeadersButNoPayload', - documentation: - 'Serializes an request with header members but no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'testId': 't-12345'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Amz-Test-Id': 't-12345', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadStructureInputOutputRestJson1Serializer(), - PayloadConfigRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonHttpWithEmptyStructurePayload (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithEmptyStructurePayload', + documentation: 'Serializes a payload targeting an empty structure', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestPayloadStructureInputOutputRestJson1Serializer(), + PayloadConfigRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonTestPayloadStructure (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTestPayloadStructure', + documentation: 'Serializes a payload targeting a structure', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{"data": 25\n}', + bodyMediaType: 'application/json', + params: { + 'payloadConfig': {'data': 25}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestPayloadStructureInputOutputRestJson1Serializer(), + PayloadConfigRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpWithHeadersButNoPayload (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithHeadersButNoPayload', + documentation: + 'Serializes an request with header members but no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'testId': 't-12345'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Amz-Test-Id': 't-12345', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestPayloadStructureInputOutputRestJson1Serializer(), + PayloadConfigRestJson1Serializer(), + ], + ); + }); } class TestPayloadStructureInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestPayloadStructureInputOutputRestJson1Serializer() - : super('TestPayloadStructureInputOutput'); + : super('TestPayloadStructureInputOutput'); @override Iterable get types => const [TestPayloadStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestPayloadStructureInputOutput deserialize( @@ -177,15 +156,20 @@ class TestPayloadStructureInputOutputRestJson1Serializer } switch (key) { case 'testId': - result.testId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.testId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'payloadConfig': - result.payloadConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadConfig), - ) as PayloadConfig)); + result.payloadConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadConfig), + ) + as PayloadConfig), + ); } } @@ -211,11 +195,8 @@ class PayloadConfigRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PayloadConfig deserialize( @@ -234,10 +215,12 @@ class PayloadConfigRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart index af8a3a67f7..a1b792478c 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.timestamp_format_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,127 +12,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonTimestampFormatHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTimestampFormatHeaders', - documentation: 'Tests how timestamp request headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/TimestampFormatHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TimestampFormatHeadersIoRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonTimestampFormatHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonTimestampFormatHeaders', - documentation: 'Tests how timestamp response headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - TimestampFormatHeadersIoRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonTimestampFormatHeaders (request)', () async { + await _i2.httpRequestTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTimestampFormatHeaders', + documentation: 'Tests how timestamp request headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/TimestampFormatHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TimestampFormatHeadersIoRestJson1Serializer()], + ); + }); + _i1.test('RestJsonTimestampFormatHeaders (response)', () async { + await _i2.httpResponseTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonTimestampFormatHeaders', + documentation: 'Tests how timestamp response headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [TimestampFormatHeadersIoRestJson1Serializer()], + ); + }); } class TimestampFormatHeadersIoRestJson1Serializer extends _i3.StructuredSmithySerializer { const TimestampFormatHeadersIoRestJson1Serializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [TimestampFormatHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TimestampFormatHeadersIo deserialize( @@ -151,47 +134,26 @@ class TimestampFormatHeadersIoRestJson1Serializer } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart index 90cd6163d3..83c4bc501b 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_protocol.test.unit_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,76 +10,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonUnitInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: UnitInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonUnitInputAndOutput', - documentation: - 'A unit type input serializes no payload. When clients do not\nneed to serialize any data in the payload, they should omit\na payload altogether.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/UnitInputAndOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'RestJsonUnitInputAndOutputNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: UnitInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonUnitInputAndOutputNoOutput', - documentation: - 'When an operation defines Unit output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonUnitInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: UnitInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonUnitInputAndOutput', + documentation: + 'A unit type input serializes no payload. When clients do not\nneed to serialize any data in the payload, they should omit\na payload altogether.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/UnitInputAndOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('RestJsonUnitInputAndOutputNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: UnitInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonUnitInputAndOutputNoOutput', + documentation: + 'When an operation defines Unit output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart b/packages/smithy/goldens/lib/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart index a27bf4e4d3..c11c4ab593 100644 --- a/packages/smithy/goldens/lib/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart +++ b/packages/smithy/goldens/lib/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v1.rest_json_validation_protocol.test.recursive_structures_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,68 +16,59 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonRecursiveStructuresValidate (request)', - () async { - await _i2.httpRequestTest( - operation: RecursiveStructuresOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonRecursiveStructuresValidate', - documentation: 'Validation should work with recursive structures.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{ "union" : {\n "union" : {\n "union" : { "string" : "abc" }\n }\n }\n}', - bodyMediaType: 'application/json', - params: { + _i1.test('RestJsonRecursiveStructuresValidate (request)', () async { + await _i2.httpRequestTest( + operation: RecursiveStructuresOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonRecursiveStructuresValidate', + documentation: 'Validation should work with recursive structures.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{ "union" : {\n "union" : {\n "union" : { "string" : "abc" }\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'union': { 'union': { - 'union': { - 'union': {'string': 'abc'} - } - } + 'union': {'string': 'abc'}, + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'content-type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/RecursiveStructures', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [RecursiveStructuresInputRestJson1Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'content-type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/RecursiveStructures', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [RecursiveStructuresInputRestJson1Serializer()], + ); + }); } class RecursiveStructuresInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveStructuresInputRestJson1Serializer() - : super('RecursiveStructuresInput'); + : super('RecursiveStructuresInput'); @override Iterable get types => const [RecursiveStructuresInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveStructuresInput deserialize( @@ -96,10 +87,12 @@ class RecursiveStructuresInputRestJson1Serializer } switch (key) { case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ) as RecursiveUnionOne); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionOne), + ) + as RecursiveUnionOne); } } @@ -125,11 +118,8 @@ class ValidationExceptionRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationException deserialize( @@ -148,18 +138,22 @@ class ValidationExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fieldList': - result.fieldList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(ValidationExceptionField)], - ), - ) as _i4.BuiltList)); + result.fieldList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(ValidationExceptionField), + ]), + ) + as _i4.BuiltList), + ); } } @@ -179,18 +173,15 @@ class ValidationExceptionRestJson1Serializer class ValidationExceptionFieldRestJson1Serializer extends _i3.StructuredSmithySerializer { const ValidationExceptionFieldRestJson1Serializer() - : super('ValidationExceptionField'); + : super('ValidationExceptionField'); @override Iterable get types => const [ValidationExceptionField]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationExceptionField deserialize( @@ -209,15 +200,19 @@ class ValidationExceptionFieldRestJson1Serializer } switch (key) { case 'path': - result.path = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.path = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/lib/rest_xml_protocol.dart b/packages/smithy/goldens/lib/restXml/lib/rest_xml_protocol.dart index 15b1ee535f..5741f10b97 100644 --- a/packages/smithy/goldens/lib/restXml/lib/rest_xml_protocol.dart +++ b/packages/smithy/goldens/lib/restXml/lib/rest_xml_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST XML service that sends XML requests and responses. library rest_xml_v1.rest_xml_protocol; diff --git a/packages/smithy/goldens/lib/restXml/lib/s3.dart b/packages/smithy/goldens/lib/restXml/lib/s3.dart index 0e766b288b..4f6e8dc54e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/s3.dart +++ b/packages/smithy/goldens/lib/restXml/lib/s3.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon Simple Storage Service library rest_xml_v1.s3; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart index 190109d75c..5ac81fa02f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Xml Protocol'; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/serializers.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/serializers.dart index b75c877253..d7fef07a99 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -164,108 +164,44 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(double)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], - ): _i2.MapBuilder>.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(double)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]): + _i2.MapBuilder>.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(GreetingStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart index 860899a1b8..79c0d86348 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.all_query_string_types_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -73,18 +73,20 @@ abstract class AllQueryStringTypesInput queryEnumList: queryEnumList == null ? null : _i4.BuiltList(queryEnumList), queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: queryIntegerEnumList == null - ? null - : _i4.BuiltList(queryIntegerEnumList), - queryParamsMapOfStrings: queryParamsMapOfStrings == null - ? null - : _i4.BuiltMap(queryParamsMapOfStrings), + queryIntegerEnumList: + queryIntegerEnumList == null + ? null + : _i4.BuiltList(queryIntegerEnumList), + queryParamsMapOfStrings: + queryParamsMapOfStrings == null + ? null + : _i4.BuiltMap(queryParamsMapOfStrings), ); } - factory AllQueryStringTypesInput.build( - [void Function(AllQueryStringTypesInputBuilder) updates]) = - _$AllQueryStringTypesInput; + factory AllQueryStringTypesInput.build([ + void Function(AllQueryStringTypesInputBuilder) updates, + ]) = _$AllQueryStringTypesInput; const AllQueryStringTypesInput._(); @@ -92,101 +94,120 @@ abstract class AllQueryStringTypesInput AllQueryStringTypesInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - AllQueryStringTypesInput.build((b) { - if (request.queryParameters['String'] != null) { - b.queryString = request.queryParameters['String']!; - } - if (request.queryParameters['StringList'] != null) { - b.queryStringList.addAll(_i1 - .parseHeader(request.queryParameters['StringList']!) - .map((el) => el.trim())); - } - if (request.queryParameters['StringSet'] != null) { - b.queryStringSet.addAll(_i1 - .parseHeader(request.queryParameters['StringSet']!) - .map((el) => el.trim())); - } - if (request.queryParameters['Byte'] != null) { - b.queryByte = int.parse(request.queryParameters['Byte']!); - } - if (request.queryParameters['Short'] != null) { - b.queryShort = int.parse(request.queryParameters['Short']!); - } - if (request.queryParameters['Integer'] != null) { - b.queryInteger = int.parse(request.queryParameters['Integer']!); - } - if (request.queryParameters['IntegerList'] != null) { - b.queryIntegerList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['IntegerSet'] != null) { - b.queryIntegerSet.addAll(_i1 - .parseHeader(request.queryParameters['IntegerSet']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['Long'] != null) { - b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); - } - if (request.queryParameters['Float'] != null) { - b.queryFloat = double.parse(request.queryParameters['Float']!); - } - if (request.queryParameters['Double'] != null) { - b.queryDouble = double.parse(request.queryParameters['Double']!); - } - if (request.queryParameters['DoubleList'] != null) { - b.queryDoubleList.addAll(_i1 - .parseHeader(request.queryParameters['DoubleList']!) - .map((el) => double.parse(el.trim()))); - } - if (request.queryParameters['Boolean'] != null) { - b.queryBoolean = request.queryParameters['Boolean']! == 'true'; - } - if (request.queryParameters['BooleanList'] != null) { - b.queryBooleanList.addAll(_i1 - .parseHeader(request.queryParameters['BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.queryParameters['Timestamp'] != null) { - b.queryTimestamp = _i1.Timestamp.parse( + }) => AllQueryStringTypesInput.build((b) { + if (request.queryParameters['String'] != null) { + b.queryString = request.queryParameters['String']!; + } + if (request.queryParameters['StringList'] != null) { + b.queryStringList.addAll( + _i1 + .parseHeader(request.queryParameters['StringList']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['StringSet'] != null) { + b.queryStringSet.addAll( + _i1 + .parseHeader(request.queryParameters['StringSet']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['Byte'] != null) { + b.queryByte = int.parse(request.queryParameters['Byte']!); + } + if (request.queryParameters['Short'] != null) { + b.queryShort = int.parse(request.queryParameters['Short']!); + } + if (request.queryParameters['Integer'] != null) { + b.queryInteger = int.parse(request.queryParameters['Integer']!); + } + if (request.queryParameters['IntegerList'] != null) { + b.queryIntegerList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['IntegerSet'] != null) { + b.queryIntegerSet.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerSet']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['Long'] != null) { + b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); + } + if (request.queryParameters['Float'] != null) { + b.queryFloat = double.parse(request.queryParameters['Float']!); + } + if (request.queryParameters['Double'] != null) { + b.queryDouble = double.parse(request.queryParameters['Double']!); + } + if (request.queryParameters['DoubleList'] != null) { + b.queryDoubleList.addAll( + _i1 + .parseHeader(request.queryParameters['DoubleList']!) + .map((el) => double.parse(el.trim())), + ); + } + if (request.queryParameters['Boolean'] != null) { + b.queryBoolean = request.queryParameters['Boolean']! == 'true'; + } + if (request.queryParameters['BooleanList'] != null) { + b.queryBooleanList.addAll( + _i1 + .parseHeader(request.queryParameters['BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.queryParameters['Timestamp'] != null) { + b.queryTimestamp = + _i1.Timestamp.parse( request.queryParameters['Timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.queryParameters['TimestampList'] != null) { - b.queryTimestampList.addAll(_i1 - .parseHeader( - request.queryParameters['TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + } + if (request.queryParameters['TimestampList'] != null) { + b.queryTimestampList.addAll( + _i1 + .parseHeader( + request.queryParameters['TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.queryParameters['Enum'] != null) { - b.queryEnum = - FooEnum.values.byValue(request.queryParameters['Enum']!); - } - if (request.queryParameters['EnumList'] != null) { - b.queryEnumList.addAll(_i1 - .parseHeader(request.queryParameters['EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.queryParameters['IntegerEnum'] != null) { - b.queryIntegerEnum = - int.parse(request.queryParameters['IntegerEnum']!); - } - if (request.queryParameters['IntegerEnumList'] != null) { - b.queryIntegerEnumList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerEnumList']!) - .map((el) => int.parse(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (request.queryParameters['Enum'] != null) { + b.queryEnum = FooEnum.values.byValue(request.queryParameters['Enum']!); + } + if (request.queryParameters['EnumList'] != null) { + b.queryEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.queryParameters['IntegerEnum'] != null) { + b.queryIntegerEnum = int.parse(request.queryParameters['IntegerEnum']!); + } + if (request.queryParameters['IntegerEnumList'] != null) { + b.queryIntegerEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerEnumList']!) + .map((el) => int.parse(el.trim())), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [AllQueryStringTypesInputRestXmlSerializer()]; + serializers = [AllQueryStringTypesInputRestXmlSerializer()]; String? get queryString; _i4.BuiltList? get queryStringList; @@ -215,131 +236,70 @@ abstract class AllQueryStringTypesInput @override List get props => [ - queryString, - queryStringList, - queryStringSet, - queryByte, - queryShort, - queryInteger, - queryIntegerList, - queryIntegerSet, - queryLong, - queryFloat, - queryDouble, - queryDoubleList, - queryBoolean, - queryBooleanList, - queryTimestamp, - queryTimestampList, - queryEnum, - queryEnumList, - queryIntegerEnum, - queryIntegerEnumList, - queryParamsMapOfStrings, - ]; + queryString, + queryStringList, + queryStringSet, + queryByte, + queryShort, + queryInteger, + queryIntegerList, + queryIntegerSet, + queryLong, + queryFloat, + queryDouble, + queryDoubleList, + queryBoolean, + queryBooleanList, + queryTimestamp, + queryTimestampList, + queryEnum, + queryEnumList, + queryIntegerEnum, + queryIntegerEnumList, + queryParamsMapOfStrings, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('AllQueryStringTypesInput') - ..add( - 'queryString', - queryString, - ) - ..add( - 'queryStringList', - queryStringList, - ) - ..add( - 'queryStringSet', - queryStringSet, - ) - ..add( - 'queryByte', - queryByte, - ) - ..add( - 'queryShort', - queryShort, - ) - ..add( - 'queryInteger', - queryInteger, - ) - ..add( - 'queryIntegerList', - queryIntegerList, - ) - ..add( - 'queryIntegerSet', - queryIntegerSet, - ) - ..add( - 'queryLong', - queryLong, - ) - ..add( - 'queryFloat', - queryFloat, - ) - ..add( - 'queryDouble', - queryDouble, - ) - ..add( - 'queryDoubleList', - queryDoubleList, - ) - ..add( - 'queryBoolean', - queryBoolean, - ) - ..add( - 'queryBooleanList', - queryBooleanList, - ) - ..add( - 'queryTimestamp', - queryTimestamp, - ) - ..add( - 'queryTimestampList', - queryTimestampList, - ) - ..add( - 'queryEnum', - queryEnum, - ) - ..add( - 'queryEnumList', - queryEnumList, - ) - ..add( - 'queryIntegerEnum', - queryIntegerEnum, - ) - ..add( - 'queryIntegerEnumList', - queryIntegerEnumList, - ) - ..add( - 'queryParamsMapOfStrings', - queryParamsMapOfStrings, - ); + final helper = + newBuiltValueToStringHelper('AllQueryStringTypesInput') + ..add('queryString', queryString) + ..add('queryStringList', queryStringList) + ..add('queryStringSet', queryStringSet) + ..add('queryByte', queryByte) + ..add('queryShort', queryShort) + ..add('queryInteger', queryInteger) + ..add('queryIntegerList', queryIntegerList) + ..add('queryIntegerSet', queryIntegerSet) + ..add('queryLong', queryLong) + ..add('queryFloat', queryFloat) + ..add('queryDouble', queryDouble) + ..add('queryDoubleList', queryDoubleList) + ..add('queryBoolean', queryBoolean) + ..add('queryBooleanList', queryBooleanList) + ..add('queryTimestamp', queryTimestamp) + ..add('queryTimestampList', queryTimestampList) + ..add('queryEnum', queryEnum) + ..add('queryEnumList', queryEnumList) + ..add('queryIntegerEnum', queryIntegerEnum) + ..add('queryIntegerEnumList', queryIntegerEnumList) + ..add('queryParamsMapOfStrings', queryParamsMapOfStrings); return helper.toString(); } } @_i5.internal abstract class AllQueryStringTypesInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + >, _i1.EmptyPayload { - factory AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder) updates]) = - _$AllQueryStringTypesInputPayload; + factory AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ]) = _$AllQueryStringTypesInputPayload; const AllQueryStringTypesInputPayload._(); @@ -348,8 +308,9 @@ abstract class AllQueryStringTypesInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('AllQueryStringTypesInputPayload'); + final helper = newBuiltValueToStringHelper( + 'AllQueryStringTypesInputPayload', + ); return helper.toString(); } } @@ -357,23 +318,20 @@ abstract class AllQueryStringTypesInputPayload class AllQueryStringTypesInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const AllQueryStringTypesInputRestXmlSerializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [ - AllQueryStringTypesInput, - _$AllQueryStringTypesInput, - AllQueryStringTypesInputPayload, - _$AllQueryStringTypesInputPayload, - ]; + AllQueryStringTypesInput, + _$AllQueryStringTypesInput, + AllQueryStringTypesInputPayload, + _$AllQueryStringTypesInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AllQueryStringTypesInputPayload deserialize( @@ -391,7 +349,7 @@ class AllQueryStringTypesInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('AllQueryStringTypesInput') + const _i1.XmlElementName('AllQueryStringTypesInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart index e42d2b9df0..2c0f217a78 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart @@ -50,38 +50,38 @@ class _$AllQueryStringTypesInput extends AllQueryStringTypesInput { @override final _i4.BuiltMap? queryParamsMapOfStrings; - factory _$AllQueryStringTypesInput( - [void Function(AllQueryStringTypesInputBuilder)? updates]) => - (new AllQueryStringTypesInputBuilder()..update(updates))._build(); - - _$AllQueryStringTypesInput._( - {this.queryString, - this.queryStringList, - this.queryStringSet, - this.queryByte, - this.queryShort, - this.queryInteger, - this.queryIntegerList, - this.queryIntegerSet, - this.queryLong, - this.queryFloat, - this.queryDouble, - this.queryDoubleList, - this.queryBoolean, - this.queryBooleanList, - this.queryTimestamp, - this.queryTimestampList, - this.queryEnum, - this.queryEnumList, - this.queryIntegerEnum, - this.queryIntegerEnumList, - this.queryParamsMapOfStrings}) - : super._(); + factory _$AllQueryStringTypesInput([ + void Function(AllQueryStringTypesInputBuilder)? updates, + ]) => (new AllQueryStringTypesInputBuilder()..update(updates))._build(); + + _$AllQueryStringTypesInput._({ + this.queryString, + this.queryStringList, + this.queryStringSet, + this.queryByte, + this.queryShort, + this.queryInteger, + this.queryIntegerList, + this.queryIntegerSet, + this.queryLong, + this.queryFloat, + this.queryDouble, + this.queryDoubleList, + this.queryBoolean, + this.queryBooleanList, + this.queryTimestamp, + this.queryTimestampList, + this.queryEnum, + this.queryEnumList, + this.queryIntegerEnum, + this.queryIntegerEnumList, + this.queryParamsMapOfStrings, + }) : super._(); @override AllQueryStringTypesInput rebuild( - void Function(AllQueryStringTypesInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputBuilder toBuilder() => @@ -252,8 +252,8 @@ class AllQueryStringTypesInputBuilder _i4.MapBuilder get queryParamsMapOfStrings => _$this._queryParamsMapOfStrings ??= new _i4.MapBuilder(); set queryParamsMapOfStrings( - _i4.MapBuilder? queryParamsMapOfStrings) => - _$this._queryParamsMapOfStrings = queryParamsMapOfStrings; + _i4.MapBuilder? queryParamsMapOfStrings, + ) => _$this._queryParamsMapOfStrings = queryParamsMapOfStrings; AllQueryStringTypesInputBuilder(); @@ -303,29 +303,31 @@ class AllQueryStringTypesInputBuilder _$AllQueryStringTypesInput _build() { _$AllQueryStringTypesInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AllQueryStringTypesInput._( - queryString: queryString, - queryStringList: _queryStringList?.build(), - queryStringSet: _queryStringSet?.build(), - queryByte: queryByte, - queryShort: queryShort, - queryInteger: queryInteger, - queryIntegerList: _queryIntegerList?.build(), - queryIntegerSet: _queryIntegerSet?.build(), - queryLong: queryLong, - queryFloat: queryFloat, - queryDouble: queryDouble, - queryDoubleList: _queryDoubleList?.build(), - queryBoolean: queryBoolean, - queryBooleanList: _queryBooleanList?.build(), - queryTimestamp: queryTimestamp, - queryTimestampList: _queryTimestampList?.build(), - queryEnum: queryEnum, - queryEnumList: _queryEnumList?.build(), - queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: _queryIntegerEnumList?.build(), - queryParamsMapOfStrings: _queryParamsMapOfStrings?.build()); + queryString: queryString, + queryStringList: _queryStringList?.build(), + queryStringSet: _queryStringSet?.build(), + queryByte: queryByte, + queryShort: queryShort, + queryInteger: queryInteger, + queryIntegerList: _queryIntegerList?.build(), + queryIntegerSet: _queryIntegerSet?.build(), + queryLong: queryLong, + queryFloat: queryFloat, + queryDouble: queryDouble, + queryDoubleList: _queryDoubleList?.build(), + queryBoolean: queryBoolean, + queryBooleanList: _queryBooleanList?.build(), + queryTimestamp: queryTimestamp, + queryTimestampList: _queryTimestampList?.build(), + queryEnum: queryEnum, + queryEnumList: _queryEnumList?.build(), + queryIntegerEnum: queryIntegerEnum, + queryIntegerEnumList: _queryIntegerEnumList?.build(), + queryParamsMapOfStrings: _queryParamsMapOfStrings?.build(), + ); } catch (_) { late String _$failedField; try { @@ -357,7 +359,10 @@ class AllQueryStringTypesInputBuilder _queryParamsMapOfStrings?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AllQueryStringTypesInput', _$failedField, e.toString()); + r'AllQueryStringTypesInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -368,16 +373,17 @@ class AllQueryStringTypesInputBuilder class _$AllQueryStringTypesInputPayload extends AllQueryStringTypesInputPayload { - factory _$AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder)? updates]) => + factory _$AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder)? updates, + ]) => (new AllQueryStringTypesInputPayloadBuilder()..update(updates))._build(); _$AllQueryStringTypesInputPayload._() : super._(); @override AllQueryStringTypesInputPayload rebuild( - void Function(AllQueryStringTypesInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputPayloadBuilder toBuilder() => @@ -397,8 +403,10 @@ class _$AllQueryStringTypesInputPayload class AllQueryStringTypesInputPayloadBuilder implements - Builder { + Builder< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + > { _$AllQueryStringTypesInputPayload? _$v; AllQueryStringTypesInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.dart index ac5026f0cf..d5bbd58707 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestXmlSerializer() + AwsConfigRestXmlSerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestXmlSerializer const AwsConfigRestXmlSerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestXmlSerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestXmlSerializer if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart index 15bc50f153..a0dd19cf56 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.body_with_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class BodyWithXmlNameInputOutput return _$BodyWithXmlNameInputOutput._(nested: nested); } - factory BodyWithXmlNameInputOutput.build( - [void Function(BodyWithXmlNameInputOutputBuilder) updates]) = - _$BodyWithXmlNameInputOutput; + factory BodyWithXmlNameInputOutput.build([ + void Function(BodyWithXmlNameInputOutputBuilder) updates, + ]) = _$BodyWithXmlNameInputOutput; const BodyWithXmlNameInputOutput._(); @@ -31,18 +31,16 @@ abstract class BodyWithXmlNameInputOutput BodyWithXmlNameInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [BodyWithXmlNameInputOutput] from a [payload] and [response]. factory BodyWithXmlNameInputOutput.fromResponse( BodyWithXmlNameInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [BodyWithXmlNameInputOutputRestXmlSerializer()]; + serializers = [BodyWithXmlNameInputOutputRestXmlSerializer()]; PayloadWithXmlName? get nested; @override @@ -54,10 +52,7 @@ abstract class BodyWithXmlNameInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('BodyWithXmlNameInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -65,21 +60,18 @@ abstract class BodyWithXmlNameInputOutput class BodyWithXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const BodyWithXmlNameInputOutputRestXmlSerializer() - : super('BodyWithXmlNameInputOutput'); + : super('BodyWithXmlNameInputOutput'); @override Iterable get types => const [ - BodyWithXmlNameInputOutput, - _$BodyWithXmlNameInputOutput, - ]; + BodyWithXmlNameInputOutput, + _$BodyWithXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override BodyWithXmlNameInputOutput deserialize( @@ -98,10 +90,13 @@ class BodyWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -119,10 +114,12 @@ class BodyWithXmlNameInputOutputRestXmlSerializer if (nested != null) { result$ ..add(const _i1.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(PayloadWithXmlName), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(PayloadWithXmlName), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart index d63ce04422..839608c4a3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart @@ -10,16 +10,16 @@ class _$BodyWithXmlNameInputOutput extends BodyWithXmlNameInputOutput { @override final PayloadWithXmlName? nested; - factory _$BodyWithXmlNameInputOutput( - [void Function(BodyWithXmlNameInputOutputBuilder)? updates]) => - (new BodyWithXmlNameInputOutputBuilder()..update(updates))._build(); + factory _$BodyWithXmlNameInputOutput([ + void Function(BodyWithXmlNameInputOutputBuilder)? updates, + ]) => (new BodyWithXmlNameInputOutputBuilder()..update(updates))._build(); _$BodyWithXmlNameInputOutput._({this.nested}) : super._(); @override BodyWithXmlNameInputOutput rebuild( - void Function(BodyWithXmlNameInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(BodyWithXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override BodyWithXmlNameInputOutputBuilder toBuilder() => @@ -87,7 +87,10 @@ class BodyWithXmlNameInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'BodyWithXmlNameInputOutput', _$failedField, e.toString()); + r'BodyWithXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.dart index f23eac670c..f24829dffa 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestXmlSerializer() + ClientConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestXmlSerializer const ClientConfigRestXmlSerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestXmlSerializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.dart index ab14bcaa92..ded62b7edb 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -25,11 +25,7 @@ abstract class ComplexError String? topLevel, ComplexNestedErrorData? nested, }) { - return _$ComplexError._( - header: header, - topLevel: topLevel, - nested: nested, - ); + return _$ComplexError._(header: header, topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -42,20 +38,19 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexErrorPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ComplexError.build((b) { - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.topLevel = payload.topLevel; - if (response.headers['X-Header'] != null) { - b.header = response.headers['X-Header']!; - } - b.headers = response.headers; - }); + ) => ComplexError.build((b) { + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.topLevel = payload.topLevel; + if (response.headers['X-Header'] != null) { + b.header = response.headers['X-Header']!; + } + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorRestXmlSerializer() + ComplexErrorRestXmlSerializer(), ]; String? get header; @@ -63,17 +58,17 @@ abstract class ComplexError ComplexNestedErrorData? get nested; @override ComplexErrorPayload getPayload() => ComplexErrorPayload((b) { - if (nested != null) { - b.nested.replace(nested!); - } - b.topLevel = topLevel; - }); + if (nested != null) { + b.nested.replace(nested!); + } + b.topLevel = topLevel; + }); @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.restxml', + shape: 'ComplexError', + ); @override String? get message => null; @@ -92,27 +87,15 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - header, - topLevel, - nested, - ]; + List get props => [header, topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'header', - header, - ) - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('header', header) + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -121,31 +104,23 @@ abstract class ComplexError abstract class ComplexErrorPayload with _i1.AWSEquatable implements Built { - factory ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder) updates]) = - _$ComplexErrorPayload; + factory ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder) updates, + ]) = _$ComplexErrorPayload; const ComplexErrorPayload._(); ComplexNestedErrorData? get nested; String? get topLevel; @override - List get props => [ - nested, - topLevel, - ]; + List get props => [nested, topLevel]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexErrorPayload') - ..add( - 'nested', - nested, - ) - ..add( - 'topLevel', - topLevel, - ); + final helper = + newBuiltValueToStringHelper('ComplexErrorPayload') + ..add('nested', nested) + ..add('topLevel', topLevel); return helper.toString(); } } @@ -156,19 +131,16 @@ class ComplexErrorRestXmlSerializer @override Iterable get types => const [ - ComplexError, - _$ComplexError, - ComplexErrorPayload, - _$ComplexErrorPayload, - ]; + ComplexError, + _$ComplexError, + ComplexErrorPayload, + _$ComplexErrorPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexErrorPayload deserialize( @@ -195,15 +167,20 @@ class ComplexErrorRestXmlSerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -221,18 +198,22 @@ class ComplexErrorRestXmlSerializer if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } if (topLevel != null) { result$ ..add(const _i2.XmlElementName('TopLevel')) - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart index 46d3a12ed9..835defabfe 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.header, this.topLevel, this.nested, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -101,12 +101,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - header: header, - topLevel: topLevel, - nested: _nested?.build(), - headers: headers); + header: header, + topLevel: topLevel, + nested: _nested?.build(), + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -114,7 +116,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } @@ -129,16 +134,16 @@ class _$ComplexErrorPayload extends ComplexErrorPayload { @override final String? topLevel; - factory _$ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder)? updates]) => - (new ComplexErrorPayloadBuilder()..update(updates))._build(); + factory _$ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder)? updates, + ]) => (new ComplexErrorPayloadBuilder()..update(updates))._build(); _$ComplexErrorPayload._({this.nested, this.topLevel}) : super._(); @override ComplexErrorPayload rebuild( - void Function(ComplexErrorPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexErrorPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexErrorPayloadBuilder toBuilder() => @@ -204,9 +209,12 @@ class ComplexErrorPayloadBuilder _$ComplexErrorPayload _build() { _$ComplexErrorPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexErrorPayload._( - nested: _nested?.build(), topLevel: topLevel); + nested: _nested?.build(), + topLevel: topLevel, + ); } catch (_) { late String _$failedField; try { @@ -214,7 +222,10 @@ class ComplexErrorPayloadBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexErrorPayload', _$failedField, e.toString()); + r'ComplexErrorPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart index 2ac18846ec..10e494e5b8 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataRestXmlSerializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataRestXmlSerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataRestXmlSerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -94,16 +90,15 @@ class ComplexNestedErrorDataRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('ComplexNestedErrorData') + const _i2.XmlElementName('ComplexNestedErrorData'), ]; final ComplexNestedErrorData(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart index 6057eb1c82..69fe9ba325 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.constant_and_variable_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class ConstantAndVariableQueryStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { - factory ConstantAndVariableQueryStringInput({ - String? baz, - String? maybeSet, - }) { + factory ConstantAndVariableQueryStringInput({String? baz, String? maybeSet}) { return _$ConstantAndVariableQueryStringInput._( baz: baz, maybeSet: maybeSet, ); } - factory ConstantAndVariableQueryStringInput.build( - [void Function(ConstantAndVariableQueryStringInputBuilder) updates]) = - _$ConstantAndVariableQueryStringInput; + factory ConstantAndVariableQueryStringInput.build([ + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInput; const ConstantAndVariableQueryStringInput._(); @@ -40,19 +39,19 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantAndVariableQueryStringInput.build((b) { - if (request.queryParameters['baz'] != null) { - b.baz = request.queryParameters['baz']!; - } - if (request.queryParameters['maybeSet'] != null) { - b.maybeSet = request.queryParameters['maybeSet']!; - } - }); + }) => ConstantAndVariableQueryStringInput.build((b) { + if (request.queryParameters['baz'] != null) { + b.baz = request.queryParameters['baz']!; + } + if (request.queryParameters['maybeSet'] != null) { + b.maybeSet = request.queryParameters['maybeSet']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [ConstantAndVariableQueryStringInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [ConstantAndVariableQueryStringInputRestXmlSerializer()]; String? get baz; String? get maybeSet; @@ -61,38 +60,30 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload(); @override - List get props => [ - baz, - maybeSet, - ]; + List get props => [baz, maybeSet]; @override String toString() { final helper = newBuiltValueToStringHelper('ConstantAndVariableQueryStringInput') - ..add( - 'baz', - baz, - ) - ..add( - 'maybeSet', - maybeSet, - ); + ..add('baz', baz) + ..add('maybeSet', maybeSet); return helper.toString(); } } @_i3.internal abstract class ConstantAndVariableQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates]) = _$ConstantAndVariableQueryStringInputPayload; + factory ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInputPayload; const ConstantAndVariableQueryStringInputPayload._(); @@ -102,31 +93,32 @@ abstract class ConstantAndVariableQueryStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'ConstantAndVariableQueryStringInputPayload'); + 'ConstantAndVariableQueryStringInputPayload', + ); return helper.toString(); } } -class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + ConstantAndVariableQueryStringInputPayload + > { const ConstantAndVariableQueryStringInputRestXmlSerializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ - ConstantAndVariableQueryStringInput, - _$ConstantAndVariableQueryStringInput, - ConstantAndVariableQueryStringInputPayload, - _$ConstantAndVariableQueryStringInputPayload, - ]; + ConstantAndVariableQueryStringInput, + _$ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputPayload, + _$ConstantAndVariableQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantAndVariableQueryStringInputPayload deserialize( @@ -144,7 +136,7 @@ class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('ConstantAndVariableQueryStringInput') + const _i1.XmlElementName('ConstantAndVariableQueryStringInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart index 935bf6bdfc..addd673aba 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart @@ -13,19 +13,19 @@ class _$ConstantAndVariableQueryStringInput @override final String? maybeSet; - factory _$ConstantAndVariableQueryStringInput( - [void Function(ConstantAndVariableQueryStringInputBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInput([ + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputBuilder()..update(updates)) ._build(); _$ConstantAndVariableQueryStringInput._({this.baz, this.maybeSet}) - : super._(); + : super._(); @override ConstantAndVariableQueryStringInput rebuild( - void Function(ConstantAndVariableQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$ConstantAndVariableQueryStringInput class ConstantAndVariableQueryStringInputBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + > { _$ConstantAndVariableQueryStringInput? _$v; String? _baz; @@ -83,7 +85,8 @@ class ConstantAndVariableQueryStringInputBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputBuilder)? updates) { + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class ConstantAndVariableQueryStringInputBuilder ConstantAndVariableQueryStringInput build() => _build(); _$ConstantAndVariableQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantAndVariableQueryStringInput._( - baz: baz, maybeSet: maybeSet); + baz: baz, + maybeSet: maybeSet, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class ConstantAndVariableQueryStringInputBuilder class _$ConstantAndVariableQueryStringInputPayload extends ConstantAndVariableQueryStringInputPayload { - factory _$ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$ConstantAndVariableQueryStringInputPayload @override ConstantAndVariableQueryStringInputPayload rebuild( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$ConstantAndVariableQueryStringInputPayload class ConstantAndVariableQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + > { _$ConstantAndVariableQueryStringInputPayload? _$v; ConstantAndVariableQueryStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class ConstantAndVariableQueryStringInputPayloadBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates) { + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart index 3d31be7332..c5aacf13e8 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.constant_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class ConstantQueryStringInput return _$ConstantQueryStringInput._(hello: hello); } - factory ConstantQueryStringInput.build( - [void Function(ConstantQueryStringInputBuilder) updates]) = - _$ConstantQueryStringInput; + factory ConstantQueryStringInput.build([ + void Function(ConstantQueryStringInputBuilder) updates, + ]) = _$ConstantQueryStringInput; const ConstantQueryStringInput._(); @@ -33,15 +33,14 @@ abstract class ConstantQueryStringInput ConstantQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantQueryStringInput.build((b) { - if (labels['hello'] != null) { - b.hello = labels['hello']!; - } - }); + }) => ConstantQueryStringInput.build((b) { + if (labels['hello'] != null) { + b.hello = labels['hello']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ConstantQueryStringInputRestXmlSerializer()]; + serializers = [ConstantQueryStringInputRestXmlSerializer()]; String get hello; @override @@ -50,10 +49,7 @@ abstract class ConstantQueryStringInput case 'hello': return hello; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -66,25 +62,23 @@ abstract class ConstantQueryStringInput @override String toString() { final helper = newBuiltValueToStringHelper('ConstantQueryStringInput') - ..add( - 'hello', - hello, - ); + ..add('hello', hello); return helper.toString(); } } @_i3.internal abstract class ConstantQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder) updates]) = - _$ConstantQueryStringInputPayload; + factory ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantQueryStringInputPayload; const ConstantQueryStringInputPayload._(); @@ -93,8 +87,9 @@ abstract class ConstantQueryStringInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('ConstantQueryStringInputPayload'); + final helper = newBuiltValueToStringHelper( + 'ConstantQueryStringInputPayload', + ); return helper.toString(); } } @@ -102,23 +97,20 @@ abstract class ConstantQueryStringInputPayload class ConstantQueryStringInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const ConstantQueryStringInputRestXmlSerializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ - ConstantQueryStringInput, - _$ConstantQueryStringInput, - ConstantQueryStringInputPayload, - _$ConstantQueryStringInputPayload, - ]; + ConstantQueryStringInput, + _$ConstantQueryStringInput, + ConstantQueryStringInputPayload, + _$ConstantQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantQueryStringInputPayload deserialize( @@ -136,7 +128,7 @@ class ConstantQueryStringInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('ConstantQueryStringInput') + const _i1.XmlElementName('ConstantQueryStringInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart index b8d7dc6f8b..69522d2b0a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart @@ -10,19 +10,22 @@ class _$ConstantQueryStringInput extends ConstantQueryStringInput { @override final String hello; - factory _$ConstantQueryStringInput( - [void Function(ConstantQueryStringInputBuilder)? updates]) => - (new ConstantQueryStringInputBuilder()..update(updates))._build(); + factory _$ConstantQueryStringInput([ + void Function(ConstantQueryStringInputBuilder)? updates, + ]) => (new ConstantQueryStringInputBuilder()..update(updates))._build(); _$ConstantQueryStringInput._({required this.hello}) : super._() { BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello'); + hello, + r'ConstantQueryStringInput', + 'hello', + ); } @override ConstantQueryStringInput rebuild( - void Function(ConstantQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputBuilder toBuilder() => @@ -78,10 +81,15 @@ class ConstantQueryStringInputBuilder ConstantQueryStringInput build() => _build(); _$ConstantQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantQueryStringInput._( - hello: BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello')); + hello: BuiltValueNullFieldError.checkNotNull( + hello, + r'ConstantQueryStringInput', + 'hello', + ), + ); replace(_$result); return _$result; } @@ -89,16 +97,17 @@ class ConstantQueryStringInputBuilder class _$ConstantQueryStringInputPayload extends ConstantQueryStringInputPayload { - factory _$ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder)? updates]) => + factory _$ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantQueryStringInputPayloadBuilder()..update(updates))._build(); _$ConstantQueryStringInputPayload._() : super._(); @override ConstantQueryStringInputPayload rebuild( - void Function(ConstantQueryStringInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputPayloadBuilder toBuilder() => @@ -118,8 +127,10 @@ class _$ConstantQueryStringInputPayload class ConstantQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + > { _$ConstantQueryStringInputPayload? _$v; ConstantQueryStringInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart index 95b5dbc091..4994822927 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputRestXmlSerializer() + DatetimeOffsetsOutputRestXmlSerializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputRestXmlSerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -102,16 +95,15 @@ class DatetimeOffsetsOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('DatetimeOffsetsOutput') + const _i2.XmlElementName('DatetimeOffsetsOutput'), ]; final DatetimeOffsetsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart index acdb081eb7..5a66487e1a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputRestXmlSerializer()]; + serializers = [EmptyInputAndEmptyOutputInputRestXmlSerializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -86,7 +84,7 @@ class EmptyInputAndEmptyOutputInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('EmptyInputAndEmptyOutputInput') + const _i1.XmlElementName('EmptyInputAndEmptyOutputInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart index aaf3017357..af86c3d9a7 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputRestXmlSerializer()]; + serializers = [EmptyInputAndEmptyOutputOutputRestXmlSerializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -83,7 +81,7 @@ class EmptyInputAndEmptyOutputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('EmptyInputAndEmptyOutputOutput') + const _i2.XmlElementName('EmptyInputAndEmptyOutputOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.dart index 77398fec49..d20f7b7da4 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestXmlSerializer() + EnvironmentConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestXmlSerializer const EnvironmentConfigRestXmlSerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestXmlSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestXmlSerializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart index 898e7414bc..8a9b4164cc 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestXmlSerializer() + FileConfigSettingsRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestXmlSerializer const FileConfigSettingsRestXmlSerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestXmlSerializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart index 6419811d40..466d9ab993 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.flattened_xml_map_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,12 +20,13 @@ abstract class FlattenedXmlMapInputOutput Built { factory FlattenedXmlMapInputOutput({Map? myMap}) { return _$FlattenedXmlMapInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory FlattenedXmlMapInputOutput.build( - [void Function(FlattenedXmlMapInputOutputBuilder) updates]) = - _$FlattenedXmlMapInputOutput; + factory FlattenedXmlMapInputOutput.build([ + void Function(FlattenedXmlMapInputOutputBuilder) updates, + ]) = _$FlattenedXmlMapInputOutput; const FlattenedXmlMapInputOutput._(); @@ -33,18 +34,16 @@ abstract class FlattenedXmlMapInputOutput FlattenedXmlMapInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [FlattenedXmlMapInputOutput] from a [payload] and [response]. factory FlattenedXmlMapInputOutput.fromResponse( FlattenedXmlMapInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [FlattenedXmlMapInputOutputRestXmlSerializer()]; + serializers = [FlattenedXmlMapInputOutputRestXmlSerializer()]; _i3.BuiltMap? get myMap; @override @@ -56,10 +55,7 @@ abstract class FlattenedXmlMapInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('FlattenedXmlMapInputOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -67,21 +63,18 @@ abstract class FlattenedXmlMapInputOutput class FlattenedXmlMapInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const FlattenedXmlMapInputOutputRestXmlSerializer() - : super('FlattenedXmlMapInputOutput'); + : super('FlattenedXmlMapInputOutput'); @override Iterable get types => const [ - FlattenedXmlMapInputOutput, - _$FlattenedXmlMapInputOutput, - ]; + FlattenedXmlMapInputOutput, + _$FlattenedXmlMapInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapInputOutput deserialize( @@ -100,21 +93,19 @@ class FlattenedXmlMapInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap - .addAll(const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap') - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) - .toMap() - .cast()); + result.myMap.addAll( + const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap') + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + .toMap() + .cast(), + ); } } @@ -128,22 +119,20 @@ class FlattenedXmlMapInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('FlattenedXmlMapInputOutput') + const _i1.XmlElementName('FlattenedXmlMapInputOutput'), ]; final FlattenedXmlMapInputOutput(:myMap) = object; if (myMap != null) { result$.addAll( - const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap').serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap').serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart index 4cd196f9f9..8acff82bd7 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart @@ -10,16 +10,16 @@ class _$FlattenedXmlMapInputOutput extends FlattenedXmlMapInputOutput { @override final _i3.BuiltMap? myMap; - factory _$FlattenedXmlMapInputOutput( - [void Function(FlattenedXmlMapInputOutputBuilder)? updates]) => - (new FlattenedXmlMapInputOutputBuilder()..update(updates))._build(); + factory _$FlattenedXmlMapInputOutput([ + void Function(FlattenedXmlMapInputOutputBuilder)? updates, + ]) => (new FlattenedXmlMapInputOutputBuilder()..update(updates))._build(); _$FlattenedXmlMapInputOutput._({this.myMap}) : super._(); @override FlattenedXmlMapInputOutput rebuild( - void Function(FlattenedXmlMapInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapInputOutputBuilder toBuilder() => @@ -87,7 +87,10 @@ class FlattenedXmlMapInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapInputOutput', _$failedField, e.toString()); + r'FlattenedXmlMapInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart index 9290f93681..678a413490 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.flattened_xml_map_with_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,19 @@ abstract class FlattenedXmlMapWithXmlNameInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutputBuilder + > { factory FlattenedXmlMapWithXmlNameInputOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNameInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNameInputOutput.build( - [void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) - updates]) = _$FlattenedXmlMapWithXmlNameInputOutput; + factory FlattenedXmlMapWithXmlNameInputOutput.build([ + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNameInputOutput; const FlattenedXmlMapWithXmlNameInputOutput._(); @@ -33,18 +36,16 @@ abstract class FlattenedXmlMapWithXmlNameInputOutput FlattenedXmlMapWithXmlNameInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [FlattenedXmlMapWithXmlNameInputOutput] from a [payload] and [response]. factory FlattenedXmlMapWithXmlNameInputOutput.fromResponse( FlattenedXmlMapWithXmlNameInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer()]; + serializers = [FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer()]; _i3.BuiltMap? get myMap; @override @@ -55,34 +56,29 @@ abstract class FlattenedXmlMapWithXmlNameInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNameInputOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNameInputOutput', + )..add('myMap', myMap); return helper.toString(); } } -class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNameInputOutput'); + : super('FlattenedXmlMapWithXmlNameInputOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNameInputOutput, - _$FlattenedXmlMapWithXmlNameInputOutput, - ]; + FlattenedXmlMapWithXmlNameInputOutput, + _$FlattenedXmlMapWithXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNameInputOutput deserialize( @@ -101,24 +97,23 @@ class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i1 } switch (key) { case 'KVP': - result.myMap.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.myMap.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -132,25 +127,24 @@ class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('FlattenedXmlMapWithXmlNameInputOutput') + const _i1.XmlElementName('FlattenedXmlMapWithXmlNameInputOutput'), ]; final FlattenedXmlMapWithXmlNameInputOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + result$.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart index 1dd474e1cc..a52e1f5b7b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart @@ -11,9 +11,9 @@ class _$FlattenedXmlMapWithXmlNameInputOutput @override final _i3.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNameInputOutput( - [void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? - updates]) => + factory _$FlattenedXmlMapWithXmlNameInputOutput([ + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNameInputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$FlattenedXmlMapWithXmlNameInputOutput @override FlattenedXmlMapWithXmlNameInputOutput rebuild( - void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNameInputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$FlattenedXmlMapWithXmlNameInputOutput class FlattenedXmlMapWithXmlNameInputOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutputBuilder + > { _$FlattenedXmlMapWithXmlNameInputOutput? _$v; _i3.MapBuilder? _myMap; @@ -75,7 +76,8 @@ class FlattenedXmlMapWithXmlNameInputOutputBuilder @override void update( - void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? updates) { + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,7 +87,8 @@ class FlattenedXmlMapWithXmlNameInputOutputBuilder _$FlattenedXmlMapWithXmlNameInputOutput _build() { _$FlattenedXmlMapWithXmlNameInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNameInputOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -94,9 +97,10 @@ class FlattenedXmlMapWithXmlNameInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNameInputOutput', - _$failedField, - e.toString()); + r'FlattenedXmlMapWithXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart index 2b2a51bd58..08b62e55cc 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.flattened_xml_map_with_xml_namespace_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,19 +12,21 @@ import 'package:smithy/smithy.dart' as _i3; part 'flattened_xml_map_with_xml_namespace_output.g.dart'; abstract class FlattenedXmlMapWithXmlNamespaceOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { factory FlattenedXmlMapWithXmlNamespaceOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNamespaceOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNamespaceOutput.build( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates]) = _$FlattenedXmlMapWithXmlNamespaceOutput; + factory FlattenedXmlMapWithXmlNamespaceOutput.build([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNamespaceOutput; const FlattenedXmlMapWithXmlNamespaceOutput._(); @@ -32,11 +34,10 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput factory FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( FlattenedXmlMapWithXmlNamespaceOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer()]; + serializers = [FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer()]; _i2.BuiltMap? get myMap; @override @@ -44,34 +45,29 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNamespaceOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNamespaceOutput', + )..add('myMap', myMap); return helper.toString(); } } -class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNamespaceOutput, - _$FlattenedXmlMapWithXmlNamespaceOutput, - ]; + FlattenedXmlMapWithXmlNamespaceOutput, + _$FlattenedXmlMapWithXmlNamespaceOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -90,24 +86,23 @@ class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 } switch (key) { case 'KVP': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -121,25 +116,24 @@ class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i3.XmlElementName('FlattenedXmlMapWithXmlNamespaceOutput') + const _i3.XmlElementName('FlattenedXmlMapWithXmlNamespaceOutput'), ]; final FlattenedXmlMapWithXmlNamespaceOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart index ca42a9f815..289564813c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart @@ -11,9 +11,9 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNamespaceOutput( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? - updates]) => + factory _$FlattenedXmlMapWithXmlNamespaceOutput([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNamespaceOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override FlattenedXmlMapWithXmlNamespaceOutput rebuild( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNamespaceOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput class FlattenedXmlMapWithXmlNamespaceOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { _$FlattenedXmlMapWithXmlNamespaceOutput? _$v; _i2.MapBuilder? _myMap; @@ -75,7 +76,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder @override void update( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates) { + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,7 +87,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _$FlattenedXmlMapWithXmlNamespaceOutput _build() { _$FlattenedXmlMapWithXmlNamespaceOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNamespaceOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -94,9 +97,10 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNamespaceOutput', - _$failedField, - e.toString()); + r'FlattenedXmlMapWithXmlNamespaceOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart index c33737bfe4..a9f1d85ca2 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart index e5d85775e2..a497444f5a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputRestXmlSerializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputRestXmlSerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FractionalSecondsOutput deserialize( @@ -101,16 +94,15 @@ class FractionalSecondsOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('FractionalSecondsOutput') + const _i2.XmlElementName('FractionalSecondsOutput'), ]; final FractionalSecondsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart index 962609b6f4..6d3baf2a47 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructRestXmlSerializer() + GreetingStructRestXmlSerializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructRestXmlSerializer const GreetingStructRestXmlSerializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +89,7 @@ class GreetingStructRestXmlSerializer if (hi != null) { result$ ..add(const _i2.XmlElementName('hi')) - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart index 4851a71c3f..8beca7cbb9 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -31,15 +31,14 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.build((b) { - if (response.headers['X-Greeting'] != null) { - b.greeting = response.headers['X-Greeting']!; - } - }); + ) => GreetingWithErrorsOutput.build((b) { + if (response.headers['X-Greeting'] != null) { + b.greeting = response.headers['X-Greeting']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputRestXmlSerializer()]; + serializers = [GreetingWithErrorsOutputRestXmlSerializer()]; String? get greeting; @override @@ -52,25 +51,23 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @_i3.internal abstract class GreetingWithErrorsOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + >, _i2.EmptyPayload { - factory GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder) updates]) = - _$GreetingWithErrorsOutputPayload; + factory GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ]) = _$GreetingWithErrorsOutputPayload; const GreetingWithErrorsOutputPayload._(); @@ -79,8 +76,9 @@ abstract class GreetingWithErrorsOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('GreetingWithErrorsOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'GreetingWithErrorsOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputRestXmlSerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - GreetingWithErrorsOutputPayload, - _$GreetingWithErrorsOutputPayload, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + GreetingWithErrorsOutputPayload, + _$GreetingWithErrorsOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingWithErrorsOutputPayload deserialize( @@ -122,7 +117,7 @@ class GreetingWithErrorsOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('GreetingWithErrorsOutput') + const _i2.XmlElementName('GreetingWithErrorsOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart index d5fcb6414c..36833d7d7d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class GreetingWithErrorsOutputBuilder class _$GreetingWithErrorsOutputPayload extends GreetingWithErrorsOutputPayload { - factory _$GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder)? updates]) => + factory _$GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder)? updates, + ]) => (new GreetingWithErrorsOutputPayloadBuilder()..update(updates))._build(); _$GreetingWithErrorsOutputPayload._() : super._(); @override GreetingWithErrorsOutputPayload rebuild( - void Function(GreetingWithErrorsOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputPayloadBuilder implements - Builder { + Builder< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + > { _$GreetingWithErrorsOutputPayload? _$v; GreetingWithErrorsOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart index 8299218e1f..732351f084 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.host_label_header_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class HostLabelHeaderInput return _$HostLabelHeaderInput._(accountId: accountId); } - factory HostLabelHeaderInput.build( - [void Function(HostLabelHeaderInputBuilder) updates]) = - _$HostLabelHeaderInput; + factory HostLabelHeaderInput.build([ + void Function(HostLabelHeaderInputBuilder) updates, + ]) = _$HostLabelHeaderInput; const HostLabelHeaderInput._(); @@ -33,15 +33,14 @@ abstract class HostLabelHeaderInput HostLabelHeaderInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HostLabelHeaderInput.build((b) { - if (request.headers['X-Amz-Account-Id'] != null) { - b.accountId = request.headers['X-Amz-Account-Id']!; - } - }); + }) => HostLabelHeaderInput.build((b) { + if (request.headers['X-Amz-Account-Id'] != null) { + b.accountId = request.headers['X-Amz-Account-Id']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [HostLabelHeaderInputRestXmlSerializer()]; + serializers = [HostLabelHeaderInputRestXmlSerializer()]; String get accountId; @override @@ -50,10 +49,7 @@ abstract class HostLabelHeaderInput case 'accountId': return accountId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -65,10 +61,7 @@ abstract class HostLabelHeaderInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelHeaderInput') - ..add( - 'accountId', - accountId, - ); + ..add('accountId', accountId); return helper.toString(); } } @@ -79,9 +72,9 @@ abstract class HostLabelHeaderInputPayload implements Built, _i1.EmptyPayload { - factory HostLabelHeaderInputPayload( - [void Function(HostLabelHeaderInputPayloadBuilder) updates]) = - _$HostLabelHeaderInputPayload; + factory HostLabelHeaderInputPayload([ + void Function(HostLabelHeaderInputPayloadBuilder) updates, + ]) = _$HostLabelHeaderInputPayload; const HostLabelHeaderInputPayload._(); @@ -101,19 +94,16 @@ class HostLabelHeaderInputRestXmlSerializer @override Iterable get types => const [ - HostLabelHeaderInput, - _$HostLabelHeaderInput, - HostLabelHeaderInputPayload, - _$HostLabelHeaderInputPayload, - ]; + HostLabelHeaderInput, + _$HostLabelHeaderInput, + HostLabelHeaderInputPayload, + _$HostLabelHeaderInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelHeaderInputPayload deserialize( diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart index 148b709144..adcf3e01b5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart @@ -10,19 +10,22 @@ class _$HostLabelHeaderInput extends HostLabelHeaderInput { @override final String accountId; - factory _$HostLabelHeaderInput( - [void Function(HostLabelHeaderInputBuilder)? updates]) => - (new HostLabelHeaderInputBuilder()..update(updates))._build(); + factory _$HostLabelHeaderInput([ + void Function(HostLabelHeaderInputBuilder)? updates, + ]) => (new HostLabelHeaderInputBuilder()..update(updates))._build(); _$HostLabelHeaderInput._({required this.accountId}) : super._() { BuiltValueNullFieldError.checkNotNull( - accountId, r'HostLabelHeaderInput', 'accountId'); + accountId, + r'HostLabelHeaderInput', + 'accountId', + ); } @override HostLabelHeaderInput rebuild( - void Function(HostLabelHeaderInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HostLabelHeaderInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HostLabelHeaderInputBuilder toBuilder() => @@ -77,26 +80,31 @@ class HostLabelHeaderInputBuilder HostLabelHeaderInput build() => _build(); _$HostLabelHeaderInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelHeaderInput._( - accountId: BuiltValueNullFieldError.checkNotNull( - accountId, r'HostLabelHeaderInput', 'accountId')); + accountId: BuiltValueNullFieldError.checkNotNull( + accountId, + r'HostLabelHeaderInput', + 'accountId', + ), + ); replace(_$result); return _$result; } } class _$HostLabelHeaderInputPayload extends HostLabelHeaderInputPayload { - factory _$HostLabelHeaderInputPayload( - [void Function(HostLabelHeaderInputPayloadBuilder)? updates]) => - (new HostLabelHeaderInputPayloadBuilder()..update(updates))._build(); + factory _$HostLabelHeaderInputPayload([ + void Function(HostLabelHeaderInputPayloadBuilder)? updates, + ]) => (new HostLabelHeaderInputPayloadBuilder()..update(updates))._build(); _$HostLabelHeaderInputPayload._() : super._(); @override HostLabelHeaderInputPayload rebuild( - void Function(HostLabelHeaderInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HostLabelHeaderInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HostLabelHeaderInputPayloadBuilder toBuilder() => @@ -116,8 +124,10 @@ class _$HostLabelHeaderInputPayload extends HostLabelHeaderInputPayload { class HostLabelHeaderInputPayloadBuilder implements - Builder { + Builder< + HostLabelHeaderInputPayload, + HostLabelHeaderInputPayloadBuilder + > { _$HostLabelHeaderInputPayload? _$v; HostLabelHeaderInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart index 205bf14437..5b29ab76f2 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputRestXmlSerializer() + HostLabelInputRestXmlSerializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputRestXmlSerializer const HostLabelInputRestXmlSerializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputRestXmlSerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,10 +107,9 @@ class HostLabelInputRestXmlSerializer final HostLabelInput(:label) = object; result$ ..add(const _i1.XmlElementName('label')) - ..add(serializers.serialize( - label, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(label, specifiedType: const FullType(String)), + ); return result$; } } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart index 6c54c6dd1d..b6698b5f6e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_payload_traits_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,18 @@ abstract class HttpPayloadTraitsInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { - factory HttpPayloadTraitsInputOutput({ - String? foo, - _i2.Uint8List? blob, - }) { - return _$HttpPayloadTraitsInputOutput._( - foo: foo, - blob: blob, - ); + factory HttpPayloadTraitsInputOutput({String? foo, _i2.Uint8List? blob}) { + return _$HttpPayloadTraitsInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsInputOutput.build( - [void Function(HttpPayloadTraitsInputOutputBuilder) updates]) = - _$HttpPayloadTraitsInputOutput; + factory HttpPayloadTraitsInputOutput.build([ + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsInputOutput; const HttpPayloadTraitsInputOutput._(); @@ -40,28 +36,26 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsInputOutputRestXmlSerializer() + HttpPayloadTraitsInputOutputRestXmlSerializer(), ]; String? get foo; @@ -70,22 +64,14 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + final helper = + newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -93,21 +79,18 @@ abstract class HttpPayloadTraitsInputOutput class HttpPayloadTraitsInputOutputRestXmlSerializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsInputOutput, - _$HttpPayloadTraitsInputOutput, - ]; + HttpPayloadTraitsInputOutput, + _$HttpPayloadTraitsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i2.Uint8List deserialize( @@ -116,9 +99,10 @@ class HttpPayloadTraitsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override @@ -128,13 +112,15 @@ class HttpPayloadTraitsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpPayloadTraitsInputOutput') + const _i1.XmlElementName('HttpPayloadTraitsInputOutput'), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType(_i2.Uint8List), - )); + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i2.Uint8List), + ), + ); return result$; } } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart index 4b3e90e888..80b78468b7 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsInputOutput( - [void Function(HttpPayloadTraitsInputOutputBuilder)? updates]) => - (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); + factory _$HttpPayloadTraitsInputOutput([ + void Function(HttpPayloadTraitsInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); _$HttpPayloadTraitsInputOutput._({this.foo, this.blob}) : super._(); @override HttpPayloadTraitsInputOutput rebuild( - void Function(HttpPayloadTraitsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { class HttpPayloadTraitsInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + > { _$HttpPayloadTraitsInputOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart index 2548325ecf..951fd752bb 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_payload_traits_with_media_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,21 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpPayloadTraitsWithMediaTypeInputOutput({ String? foo, _i2.Uint8List? blob, }) { - return _$HttpPayloadTraitsWithMediaTypeInputOutput._( - foo: foo, - blob: blob, - ); + return _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsWithMediaTypeInputOutput.build( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; + factory HttpPayloadTraitsWithMediaTypeInputOutput.build([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; const HttpPayloadTraitsWithMediaTypeInputOutput._(); @@ -40,28 +39,26 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsWithMediaTypeInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer(), ]; String? get foo; @@ -70,23 +67,14 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpPayloadTraitsWithMediaTypeInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -94,21 +82,18 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsWithMediaTypeInputOutput, - _$HttpPayloadTraitsWithMediaTypeInputOutput, - ]; + HttpPayloadTraitsWithMediaTypeInputOutput, + _$HttpPayloadTraitsWithMediaTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i2.Uint8List deserialize( @@ -117,9 +102,10 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override @@ -129,13 +115,15 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpPayloadTraitsWithMediaTypeInputOutput') + const _i1.XmlElementName('HttpPayloadTraitsWithMediaTypeInputOutput'), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType(_i2.Uint8List), - )); + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i2.Uint8List), + ), + ); return result$; } } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart index 01e00915a8..d83cb9dd90 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart @@ -13,20 +13,19 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsWithMediaTypeInputOutput( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates]) => + factory _$HttpPayloadTraitsWithMediaTypeInputOutput([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsWithMediaTypeInputOutputBuilder()..update(updates)) ._build(); _$HttpPayloadTraitsWithMediaTypeInputOutput._({this.foo, this.blob}) - : super._(); + : super._(); @override HttpPayloadTraitsWithMediaTypeInputOutput rebuild( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsWithMediaTypeInputOutputBuilder toBuilder() => @@ -52,8 +51,10 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + > { _$HttpPayloadTraitsWithMediaTypeInputOutput? _$v; String? _foo; @@ -84,8 +85,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder @override void update( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates) { + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -93,7 +94,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder HttpPayloadTraitsWithMediaTypeInputOutput build() => _build(); _$HttpPayloadTraitsWithMediaTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart index 041c265b55..ae5bbdad3c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_payload_with_member_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithMemberXmlNameInputOutput, + HttpPayloadWithMemberXmlNameInputOutputBuilder + >, _i1.HasPayload { - factory HttpPayloadWithMemberXmlNameInputOutput( - {PayloadWithXmlName? nested}) { + factory HttpPayloadWithMemberXmlNameInputOutput({ + PayloadWithXmlName? nested, + }) { return _$HttpPayloadWithMemberXmlNameInputOutput._(nested: nested); } - factory HttpPayloadWithMemberXmlNameInputOutput.build( - [void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) - updates]) = _$HttpPayloadWithMemberXmlNameInputOutput; + factory HttpPayloadWithMemberXmlNameInputOutput.build([ + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) updates, + ]) = _$HttpPayloadWithMemberXmlNameInputOutput; const HttpPayloadWithMemberXmlNameInputOutput._(); @@ -34,26 +37,24 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput PayloadWithXmlName? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithMemberXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithMemberXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithMemberXmlNameInputOutput] from a [payload] and [response]. factory HttpPayloadWithMemberXmlNameInputOutput.fromResponse( PayloadWithXmlName? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithMemberXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithMemberXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer() + HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), ]; PayloadWithXmlName? get nested; @@ -65,12 +66,9 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithMemberXmlNameInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithMemberXmlNameInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -78,21 +76,18 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithMemberXmlNameInputOutput'); + : super('HttpPayloadWithMemberXmlNameInputOutput'); @override Iterable get types => const [ - HttpPayloadWithMemberXmlNameInputOutput, - _$HttpPayloadWithMemberXmlNameInputOutput, - ]; + HttpPayloadWithMemberXmlNameInputOutput, + _$HttpPayloadWithMemberXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -111,10 +106,12 @@ class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -132,10 +129,9 @@ class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart index 317cb33f32..e5917b153d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithMemberXmlNameInputOutput @override final PayloadWithXmlName? nested; - factory _$HttpPayloadWithMemberXmlNameInputOutput( - [void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithMemberXmlNameInputOutput([ + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithMemberXmlNameInputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$HttpPayloadWithMemberXmlNameInputOutput @override HttpPayloadWithMemberXmlNameInputOutput rebuild( - void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithMemberXmlNameInputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$HttpPayloadWithMemberXmlNameInputOutput class HttpPayloadWithMemberXmlNameInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithMemberXmlNameInputOutput, + HttpPayloadWithMemberXmlNameInputOutputBuilder + > { _$HttpPayloadWithMemberXmlNameInputOutput? _$v; PayloadWithXmlNameBuilder? _nested; @@ -75,7 +76,8 @@ class HttpPayloadWithMemberXmlNameInputOutputBuilder @override void update( - void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? updates) { + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,9 +87,11 @@ class HttpPayloadWithMemberXmlNameInputOutputBuilder _$HttpPayloadWithMemberXmlNameInputOutput _build() { _$HttpPayloadWithMemberXmlNameInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithMemberXmlNameInputOutput._( - nested: _nested?.build()); + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -95,9 +99,10 @@ class HttpPayloadWithMemberXmlNameInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithMemberXmlNameInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithMemberXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart index 3d42394273..0b9b980aa4 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_payload_with_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,18 @@ abstract class HttpPayloadWithStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + >, _i1.HasPayload { factory HttpPayloadWithStructureInputOutput({NestedPayload? nested}) { return _$HttpPayloadWithStructureInputOutput._(nested: nested); } - factory HttpPayloadWithStructureInputOutput.build( - [void Function(HttpPayloadWithStructureInputOutputBuilder) updates]) = - _$HttpPayloadWithStructureInputOutput; + factory HttpPayloadWithStructureInputOutput.build([ + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ]) = _$HttpPayloadWithStructureInputOutput; const HttpPayloadWithStructureInputOutput._(); @@ -33,26 +35,24 @@ abstract class HttpPayloadWithStructureInputOutput NestedPayload? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithStructureInputOutput] from a [payload] and [response]. factory HttpPayloadWithStructureInputOutput.fromResponse( NestedPayload? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithStructureInputOutputRestXmlSerializer() + HttpPayloadWithStructureInputOutputRestXmlSerializer(), ]; NestedPayload? get nested; @@ -64,12 +64,9 @@ abstract class HttpPayloadWithStructureInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithStructureInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithStructureInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithStructureInputOutputRestXmlSerializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [ - HttpPayloadWithStructureInputOutput, - _$HttpPayloadWithStructureInputOutput, - ]; + HttpPayloadWithStructureInputOutput, + _$HttpPayloadWithStructureInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedPayload deserialize( @@ -110,15 +104,19 @@ class HttpPayloadWithStructureInputOutputRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -136,18 +134,19 @@ class HttpPayloadWithStructureInputOutputRestXmlSerializer if (greeting != null) { result$ ..add(const _i1.XmlElementName('greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart index 0422d70a2c..5174c4f637 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithStructureInputOutput @override final NestedPayload? nested; - factory _$HttpPayloadWithStructureInputOutput( - [void Function(HttpPayloadWithStructureInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithStructureInputOutput([ + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithStructureInputOutputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$HttpPayloadWithStructureInputOutput @override HttpPayloadWithStructureInputOutput rebuild( - void Function(HttpPayloadWithStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithStructureInputOutputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + > { _$HttpPayloadWithStructureInputOutput? _$v; NestedPayloadBuilder? _nested; @@ -74,7 +76,8 @@ class HttpPayloadWithStructureInputOutputBuilder @override void update( - void Function(HttpPayloadWithStructureInputOutputBuilder)? updates) { + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,7 +87,8 @@ class HttpPayloadWithStructureInputOutputBuilder _$HttpPayloadWithStructureInputOutput _build() { _$HttpPayloadWithStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithStructureInputOutput._(nested: _nested?.build()); } catch (_) { late String _$failedField; @@ -93,9 +97,10 @@ class HttpPayloadWithStructureInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithStructureInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart index 85b9722c90..5c7993753f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_payload_with_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,18 @@ abstract class HttpPayloadWithXmlNameInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithXmlNameInputOutput, + HttpPayloadWithXmlNameInputOutputBuilder + >, _i1.HasPayload { factory HttpPayloadWithXmlNameInputOutput({PayloadWithXmlName? nested}) { return _$HttpPayloadWithXmlNameInputOutput._(nested: nested); } - factory HttpPayloadWithXmlNameInputOutput.build( - [void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates]) = - _$HttpPayloadWithXmlNameInputOutput; + factory HttpPayloadWithXmlNameInputOutput.build([ + void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates, + ]) = _$HttpPayloadWithXmlNameInputOutput; const HttpPayloadWithXmlNameInputOutput._(); @@ -33,26 +35,24 @@ abstract class HttpPayloadWithXmlNameInputOutput PayloadWithXmlName? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithXmlNameInputOutput] from a [payload] and [response]. factory HttpPayloadWithXmlNameInputOutput.fromResponse( PayloadWithXmlName? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithXmlNameInputOutputRestXmlSerializer() + HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), ]; PayloadWithXmlName? get nested; @@ -64,12 +64,9 @@ abstract class HttpPayloadWithXmlNameInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithXmlNameInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithXmlNameInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class HttpPayloadWithXmlNameInputOutput class HttpPayloadWithXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNameInputOutput'); + : super('HttpPayloadWithXmlNameInputOutput'); @override Iterable get types => const [ - HttpPayloadWithXmlNameInputOutput, - _$HttpPayloadWithXmlNameInputOutput, - ]; + HttpPayloadWithXmlNameInputOutput, + _$HttpPayloadWithXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -110,10 +104,12 @@ class HttpPayloadWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +127,9 @@ class HttpPayloadWithXmlNameInputOutputRestXmlSerializer if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart index b48ea92482..7d7eaf3e55 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart @@ -11,8 +11,9 @@ class _$HttpPayloadWithXmlNameInputOutput @override final PayloadWithXmlName? nested; - factory _$HttpPayloadWithXmlNameInputOutput( - [void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates]) => + factory _$HttpPayloadWithXmlNameInputOutput([ + void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithXmlNameInputOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$HttpPayloadWithXmlNameInputOutput @override HttpPayloadWithXmlNameInputOutput rebuild( - void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithXmlNameInputOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$HttpPayloadWithXmlNameInputOutput class HttpPayloadWithXmlNameInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithXmlNameInputOutput, + HttpPayloadWithXmlNameInputOutputBuilder + > { _$HttpPayloadWithXmlNameInputOutput? _$v; PayloadWithXmlNameBuilder? _nested; @@ -72,7 +75,8 @@ class HttpPayloadWithXmlNameInputOutputBuilder @override void update( - void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates) { + void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -82,7 +86,8 @@ class HttpPayloadWithXmlNameInputOutputBuilder _$HttpPayloadWithXmlNameInputOutput _build() { _$HttpPayloadWithXmlNameInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithXmlNameInputOutput._(nested: _nested?.build()); } catch (_) { late String _$failedField; @@ -91,7 +96,10 @@ class HttpPayloadWithXmlNameInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithXmlNameInputOutput', _$failedField, e.toString()); + r'HttpPayloadWithXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart index dd9436c638..c9e975d741 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_payload_with_xml_namespace_and_prefix_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,21 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder + >, _i1.HasPayload { - factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput( - {PayloadWithXmlNamespaceAndPrefix? nested}) { + factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput({ + PayloadWithXmlNamespaceAndPrefix? nested, + }) { return _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput._(nested: nested); } - factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build( - [void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) - updates]) = _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput; + factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build([ + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) + updates, + ]) = _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput; const HttpPayloadWithXmlNamespaceAndPrefixInputOutput._(); @@ -34,27 +38,25 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput PayloadWithXmlNamespaceAndPrefix? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithXmlNamespaceAndPrefixInputOutput] from a [payload] and [response]. factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromResponse( PayloadWithXmlNamespaceAndPrefix? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> - serializers = [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer() + serializers = [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), ]; PayloadWithXmlNamespaceAndPrefix? get nested; @@ -68,11 +70,8 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpPayloadWithXmlNamespaceAndPrefixInputOutput') - ..add( - 'nested', - nested, - ); + 'HttpPayloadWithXmlNamespaceAndPrefixInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -80,21 +79,18 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); + : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); @override Iterable get types => const [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - ]; + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespaceAndPrefix deserialize( @@ -113,10 +109,12 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -132,20 +130,16 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer final result$ = [ const _i1.XmlElementName( 'PayloadWithXmlNamespaceAndPrefix', - _i1.XmlNamespace( - 'http://foo.com', - 'baz', - ), - ) + _i1.XmlNamespace('http://foo.com', 'baz'), + ), ]; final PayloadWithXmlNamespaceAndPrefix(:name) = object; if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart index 04e303e5bf..9899560cc7 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart @@ -11,22 +11,22 @@ class _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput @override final PayloadWithXmlNamespaceAndPrefix? nested; - factory _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput( - [void Function( - HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput([ + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? + updates, + ]) => (new HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder() ..update(updates)) ._build(); _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput._({this.nested}) - : super._(); + : super._(); @override HttpPayloadWithXmlNamespaceAndPrefixInputOutput rebuild( - void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder + > { _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput? _$v; PayloadWithXmlNamespaceAndPrefixBuilder? _nested; @@ -80,8 +82,9 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder @override void update( - void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? - updates) { + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? + updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,11 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput _build() { _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput._( - nested: _nested?.build()); + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,9 +106,10 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithXmlNamespaceAndPrefixInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithXmlNamespaceAndPrefixInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart index 72ea4d2c29..67c27d0c90 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_payload_with_xml_namespace_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithXmlNamespaceInputOutput, + HttpPayloadWithXmlNamespaceInputOutputBuilder + >, _i1.HasPayload { - factory HttpPayloadWithXmlNamespaceInputOutput( - {PayloadWithXmlNamespace? nested}) { + factory HttpPayloadWithXmlNamespaceInputOutput({ + PayloadWithXmlNamespace? nested, + }) { return _$HttpPayloadWithXmlNamespaceInputOutput._(nested: nested); } - factory HttpPayloadWithXmlNamespaceInputOutput.build( - [void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) - updates]) = _$HttpPayloadWithXmlNamespaceInputOutput; + factory HttpPayloadWithXmlNamespaceInputOutput.build([ + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) updates, + ]) = _$HttpPayloadWithXmlNamespaceInputOutput; const HttpPayloadWithXmlNamespaceInputOutput._(); @@ -34,26 +37,24 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput PayloadWithXmlNamespace? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithXmlNamespaceInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithXmlNamespaceInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithXmlNamespaceInputOutput] from a [payload] and [response]. factory HttpPayloadWithXmlNamespaceInputOutput.fromResponse( PayloadWithXmlNamespace? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithXmlNamespaceInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> - serializers = [HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer()]; + serializers = [HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer()]; PayloadWithXmlNamespace? get nested; @override @@ -64,12 +65,9 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithXmlNamespaceInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithXmlNamespaceInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +75,18 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceInputOutput'); + : super('HttpPayloadWithXmlNamespaceInputOutput'); @override Iterable get types => const [ - HttpPayloadWithXmlNamespaceInputOutput, - _$HttpPayloadWithXmlNamespaceInputOutput, - ]; + HttpPayloadWithXmlNamespaceInputOutput, + _$HttpPayloadWithXmlNamespaceInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespace deserialize( @@ -110,10 +105,12 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,16 +127,15 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer const _i1.XmlElementName( 'PayloadWithXmlNamespace', _i1.XmlNamespace('http://foo.com'), - ) + ), ]; final PayloadWithXmlNamespace(:name) = object; if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart index 939f8a65d4..22b9f202d7 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithXmlNamespaceInputOutput @override final PayloadWithXmlNamespace? nested; - factory _$HttpPayloadWithXmlNamespaceInputOutput( - [void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithXmlNamespaceInputOutput([ + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithXmlNamespaceInputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$HttpPayloadWithXmlNamespaceInputOutput @override HttpPayloadWithXmlNamespaceInputOutput rebuild( - void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithXmlNamespaceInputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$HttpPayloadWithXmlNamespaceInputOutput class HttpPayloadWithXmlNamespaceInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithXmlNamespaceInputOutput, + HttpPayloadWithXmlNamespaceInputOutputBuilder + > { _$HttpPayloadWithXmlNamespaceInputOutput? _$v; PayloadWithXmlNamespaceBuilder? _nested; @@ -75,7 +76,8 @@ class HttpPayloadWithXmlNamespaceInputOutputBuilder @override void update( - void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? updates) { + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,9 +87,11 @@ class HttpPayloadWithXmlNamespaceInputOutputBuilder _$HttpPayloadWithXmlNamespaceInputOutput _build() { _$HttpPayloadWithXmlNamespaceInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithXmlNamespaceInputOutput._( - nested: _nested?.build()); + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -95,9 +99,10 @@ class HttpPayloadWithXmlNamespaceInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithXmlNamespaceInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithXmlNamespaceInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart index 7c1263fdac..2a0ac53196 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_prefix_headers_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class HttpPrefixHeadersInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpPrefixHeadersInputOutput({ @@ -31,9 +33,9 @@ abstract class HttpPrefixHeadersInputOutput ); } - factory HttpPrefixHeadersInputOutput.build( - [void Function(HttpPrefixHeadersInputOutputBuilder) updates]) = - _$HttpPrefixHeadersInputOutput; + factory HttpPrefixHeadersInputOutput.build([ + void Function(HttpPrefixHeadersInputOutputBuilder) updates, + ]) = _$HttpPrefixHeadersInputOutput; const HttpPrefixHeadersInputOutput._(); @@ -41,44 +43,34 @@ abstract class HttpPrefixHeadersInputOutput HttpPrefixHeadersInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPrefixHeadersInputOutput.build((b) { - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - b.fooMap.addEntries(request.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + }) => HttpPrefixHeadersInputOutput.build((b) { + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + b.fooMap.addEntries( + request.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); /// Constructs a [HttpPrefixHeadersInputOutput] from a [payload] and [response]. factory HttpPrefixHeadersInputOutput.fromResponse( HttpPrefixHeadersInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInputOutput.build((b) { - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - b.fooMap.addEntries(response.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + ) => HttpPrefixHeadersInputOutput.build((b) { + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + b.fooMap.addEntries( + response.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); static const List<_i1.SmithySerializer> - serializers = [HttpPrefixHeadersInputOutputRestXmlSerializer()]; + serializers = [HttpPrefixHeadersInputOutputRestXmlSerializer()]; String? get foo; _i3.BuiltMap? get fooMap; @@ -87,37 +79,30 @@ abstract class HttpPrefixHeadersInputOutput HttpPrefixHeadersInputOutputPayload(); @override - List get props => [ - foo, - fooMap, - ]; + List get props => [foo, fooMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPrefixHeadersInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'fooMap', - fooMap, - ); + final helper = + newBuiltValueToStringHelper('HttpPrefixHeadersInputOutput') + ..add('foo', foo) + ..add('fooMap', fooMap); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpPrefixHeadersInputOutputPayload( - [void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates]) = - _$HttpPrefixHeadersInputOutputPayload; + factory HttpPrefixHeadersInputOutputPayload([ + void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersInputOutputPayload; const HttpPrefixHeadersInputOutputPayload._(); @@ -126,32 +111,31 @@ abstract class HttpPrefixHeadersInputOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInputOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInputOutputPayload', + ); return helper.toString(); } } -class HttpPrefixHeadersInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class HttpPrefixHeadersInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const HttpPrefixHeadersInputOutputRestXmlSerializer() - : super('HttpPrefixHeadersInputOutput'); + : super('HttpPrefixHeadersInputOutput'); @override Iterable get types => const [ - HttpPrefixHeadersInputOutput, - _$HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - _$HttpPrefixHeadersInputOutputPayload, - ]; + HttpPrefixHeadersInputOutput, + _$HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + _$HttpPrefixHeadersInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPrefixHeadersInputOutputPayload deserialize( @@ -169,7 +153,7 @@ class HttpPrefixHeadersInputOutputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpPrefixHeadersInputOutput') + const _i1.XmlElementName('HttpPrefixHeadersInputOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart index 91b4b572d9..893073817f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPrefixHeadersInputOutput extends HttpPrefixHeadersInputOutput { @override final _i3.BuiltMap? fooMap; - factory _$HttpPrefixHeadersInputOutput( - [void Function(HttpPrefixHeadersInputOutputBuilder)? updates]) => - (new HttpPrefixHeadersInputOutputBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersInputOutput([ + void Function(HttpPrefixHeadersInputOutputBuilder)? updates, + ]) => (new HttpPrefixHeadersInputOutputBuilder()..update(updates))._build(); _$HttpPrefixHeadersInputOutput._({this.foo, this.fooMap}) : super._(); @override HttpPrefixHeadersInputOutput rebuild( - void Function(HttpPrefixHeadersInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$HttpPrefixHeadersInputOutput extends HttpPrefixHeadersInputOutput { class HttpPrefixHeadersInputOutputBuilder implements - Builder { + Builder< + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputBuilder + > { _$HttpPrefixHeadersInputOutput? _$v; String? _foo; @@ -89,9 +91,12 @@ class HttpPrefixHeadersInputOutputBuilder _$HttpPrefixHeadersInputOutput _build() { _$HttpPrefixHeadersInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersInputOutput._( - foo: foo, fooMap: _fooMap?.build()); + foo: foo, + fooMap: _fooMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -99,7 +104,10 @@ class HttpPrefixHeadersInputOutputBuilder _fooMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersInputOutput', _$failedField, e.toString()); + r'HttpPrefixHeadersInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -110,9 +118,9 @@ class HttpPrefixHeadersInputOutputBuilder class _$HttpPrefixHeadersInputOutputPayload extends HttpPrefixHeadersInputOutputPayload { - factory _$HttpPrefixHeadersInputOutputPayload( - [void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? - updates]) => + factory _$HttpPrefixHeadersInputOutputPayload([ + void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersInputOutputPayloadBuilder()..update(updates)) ._build(); @@ -120,8 +128,8 @@ class _$HttpPrefixHeadersInputOutputPayload @override HttpPrefixHeadersInputOutputPayload rebuild( - void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputOutputPayloadBuilder toBuilder() => @@ -141,8 +149,10 @@ class _$HttpPrefixHeadersInputOutputPayload class HttpPrefixHeadersInputOutputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutputPayloadBuilder + > { _$HttpPrefixHeadersInputOutputPayload? _$v; HttpPrefixHeadersInputOutputPayloadBuilder(); @@ -155,7 +165,8 @@ class HttpPrefixHeadersInputOutputPayloadBuilder @override void update( - void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? updates) { + void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart index e65ba220b3..ea789b5ad8 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_request_with_float_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithFloatLabelsInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithFloatLabelsInput({ required double float, required double double_, }) { - return _$HttpRequestWithFloatLabelsInput._( - float: float, - double_: double_, - ); + return _$HttpRequestWithFloatLabelsInput._(float: float, double_: double_); } - factory HttpRequestWithFloatLabelsInput.build( - [void Function(HttpRequestWithFloatLabelsInputBuilder) updates]) = - _$HttpRequestWithFloatLabelsInput; + factory HttpRequestWithFloatLabelsInput.build([ + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInput; const HttpRequestWithFloatLabelsInput._(); @@ -40,19 +39,19 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithFloatLabelsInput.build((b) { - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - }); + }) => HttpRequestWithFloatLabelsInput.build((b) { + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithFloatLabelsInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithFloatLabelsInputRestXmlSerializer()]; double get float; double get double_; @@ -64,10 +63,7 @@ abstract class HttpRequestWithFloatLabelsInput case 'double': return double_.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -75,38 +71,30 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload(); @override - List get props => [ - float, - double_, - ]; + List get props => [float, double_]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInput') - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ); + ..add('float', float) + ..add('double_', double_); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithFloatLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates]) = _$HttpRequestWithFloatLabelsInputPayload; + factory HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInputPayload; const HttpRequestWithFloatLabelsInputPayload._(); @@ -115,32 +103,31 @@ abstract class HttpRequestWithFloatLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithFloatLabelsInputPayload', + ); return helper.toString(); } } -class HttpRequestWithFloatLabelsInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithFloatLabelsInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestXmlSerializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [ - HttpRequestWithFloatLabelsInput, - _$HttpRequestWithFloatLabelsInput, - HttpRequestWithFloatLabelsInputPayload, - _$HttpRequestWithFloatLabelsInputPayload, - ]; + HttpRequestWithFloatLabelsInput, + _$HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputPayload, + _$HttpRequestWithFloatLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithFloatLabelsInputPayload deserialize( @@ -158,7 +145,7 @@ class HttpRequestWithFloatLabelsInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithFloatLabelsInput') + const _i1.XmlElementName('HttpRequestWithFloatLabelsInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart index c76e934e86..7aefc65834 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart @@ -13,23 +13,31 @@ class _$HttpRequestWithFloatLabelsInput @override final double double_; - factory _$HttpRequestWithFloatLabelsInput( - [void Function(HttpRequestWithFloatLabelsInputBuilder)? updates]) => + factory _$HttpRequestWithFloatLabelsInput([ + void Function(HttpRequestWithFloatLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputBuilder()..update(updates))._build(); - _$HttpRequestWithFloatLabelsInput._( - {required this.float, required this.double_}) - : super._() { + _$HttpRequestWithFloatLabelsInput._({ + required this.float, + required this.double_, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'); + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_'); + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ); } @override HttpRequestWithFloatLabelsInput rebuild( - void Function(HttpRequestWithFloatLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputBuilder toBuilder() => @@ -55,8 +63,10 @@ class _$HttpRequestWithFloatLabelsInput class HttpRequestWithFloatLabelsInputBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + > { _$HttpRequestWithFloatLabelsInput? _$v; double? _float; @@ -94,12 +104,20 @@ class HttpRequestWithFloatLabelsInputBuilder HttpRequestWithFloatLabelsInput build() => _build(); _$HttpRequestWithFloatLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithFloatLabelsInput._( - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_')); + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ), + ); replace(_$result); return _$result; } @@ -107,9 +125,9 @@ class HttpRequestWithFloatLabelsInputBuilder class _$HttpRequestWithFloatLabelsInputPayload extends HttpRequestWithFloatLabelsInputPayload { - factory _$HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -117,9 +135,8 @@ class _$HttpRequestWithFloatLabelsInputPayload @override HttpRequestWithFloatLabelsInputPayload rebuild( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputPayloadBuilder toBuilder() => @@ -139,8 +156,10 @@ class _$HttpRequestWithFloatLabelsInputPayload class HttpRequestWithFloatLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + > { _$HttpRequestWithFloatLabelsInputPayload? _$v; HttpRequestWithFloatLabelsInputPayloadBuilder(); @@ -153,7 +172,8 @@ class HttpRequestWithFloatLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart index eda364a2e4..6a628e0340 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_request_with_greedy_label_in_path_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithGreedyLabelInPathInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithGreedyLabelInPathInput({ required String foo, required String baz, }) { - return _$HttpRequestWithGreedyLabelInPathInput._( - foo: foo, - baz: baz, - ); + return _$HttpRequestWithGreedyLabelInPathInput._(foo: foo, baz: baz); } - factory HttpRequestWithGreedyLabelInPathInput.build( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInput; + factory HttpRequestWithGreedyLabelInPathInput.build([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInput; const HttpRequestWithGreedyLabelInPathInput._(); @@ -40,19 +39,19 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithGreedyLabelInPathInput.build((b) { - if (labels['foo'] != null) { - b.foo = labels['foo']!; - } - if (labels['baz'] != null) { - b.baz = labels['baz']!; - } - }); + }) => HttpRequestWithGreedyLabelInPathInput.build((b) { + if (labels['foo'] != null) { + b.foo = labels['foo']!; + } + if (labels['baz'] != null) { + b.baz = labels['baz']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithGreedyLabelInPathInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithGreedyLabelInPathInputRestXmlSerializer()]; String get foo; String get baz; @@ -64,10 +63,7 @@ abstract class HttpRequestWithGreedyLabelInPathInput case 'baz': return baz; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -75,38 +71,30 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithGreedyLabelInPathInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithGreedyLabelInPathInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInputPayload; + factory HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInputPayload; const HttpRequestWithGreedyLabelInPathInputPayload._(); @@ -116,31 +104,32 @@ abstract class HttpRequestWithGreedyLabelInPathInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithGreedyLabelInPathInputPayload'); + 'HttpRequestWithGreedyLabelInPathInputPayload', + ); return helper.toString(); } } -class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + HttpRequestWithGreedyLabelInPathInputPayload + > { const HttpRequestWithGreedyLabelInPathInputRestXmlSerializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [ - HttpRequestWithGreedyLabelInPathInput, - _$HttpRequestWithGreedyLabelInPathInput, - HttpRequestWithGreedyLabelInPathInputPayload, - _$HttpRequestWithGreedyLabelInPathInputPayload, - ]; + HttpRequestWithGreedyLabelInPathInput, + _$HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputPayload, + _$HttpRequestWithGreedyLabelInPathInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithGreedyLabelInPathInputPayload deserialize( @@ -158,7 +147,7 @@ class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithGreedyLabelInPathInput') + const _i1.XmlElementName('HttpRequestWithGreedyLabelInPathInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart index 17074744a3..82b442bac4 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart @@ -13,26 +13,32 @@ class _$HttpRequestWithGreedyLabelInPathInput @override final String baz; - factory _$HttpRequestWithGreedyLabelInPathInput( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInput([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputBuilder()..update(updates)) ._build(); - _$HttpRequestWithGreedyLabelInPathInput._( - {required this.foo, required this.baz}) - : super._() { + _$HttpRequestWithGreedyLabelInPathInput._({ + required this.foo, + required this.baz, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'); + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ); BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz'); + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ); } @override HttpRequestWithGreedyLabelInPathInput rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputBuilder toBuilder() => @@ -58,8 +64,10 @@ class _$HttpRequestWithGreedyLabelInPathInput class HttpRequestWithGreedyLabelInPathInputBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + > { _$HttpRequestWithGreedyLabelInPathInput? _$v; String? _foo; @@ -90,7 +98,8 @@ class HttpRequestWithGreedyLabelInPathInputBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates) { + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -98,12 +107,20 @@ class HttpRequestWithGreedyLabelInPathInputBuilder HttpRequestWithGreedyLabelInPathInput build() => _build(); _$HttpRequestWithGreedyLabelInPathInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithGreedyLabelInPathInput._( - foo: BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'), - baz: BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz')); + foo: BuiltValueNullFieldError.checkNotNull( + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ), + baz: BuiltValueNullFieldError.checkNotNull( + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ), + ); replace(_$result); return _$result; } @@ -111,9 +128,9 @@ class HttpRequestWithGreedyLabelInPathInputBuilder class _$HttpRequestWithGreedyLabelInPathInputPayload extends HttpRequestWithGreedyLabelInPathInputPayload { - factory _$HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputPayloadBuilder() ..update(updates)) ._build(); @@ -122,9 +139,8 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload @override HttpRequestWithGreedyLabelInPathInputPayload rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputPayloadBuilder toBuilder() => @@ -144,8 +160,10 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload class HttpRequestWithGreedyLabelInPathInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + > { _$HttpRequestWithGreedyLabelInPathInputPayload? _$v; HttpRequestWithGreedyLabelInPathInputPayloadBuilder(); @@ -158,8 +176,8 @@ class HttpRequestWithGreedyLabelInPathInputPayloadBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart index 166e01179f..90f59a378b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_request_with_labels_and_timestamp_format_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithLabelsAndTimestampFormatInput({ @@ -40,9 +42,9 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput ); } - factory HttpRequestWithLabelsAndTimestampFormatInput.build( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInput; + factory HttpRequestWithLabelsAndTimestampFormatInput.build([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInput; const HttpRequestWithLabelsAndTimestampFormatInput._(); @@ -50,56 +52,63 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput HttpRequestWithLabelsAndTimestampFormatInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsAndTimestampFormatInput.build((b) { - if (labels['memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsAndTimestampFormatInput.build((b) { + if (labels['memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (labels['memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( labels['memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (labels['memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( labels['memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (labels['defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( labels['defaultFormat']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (labels['targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (labels['targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( labels['targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (labels['targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( labels['targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload>> serializers = [ - HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() + _i1.SmithySerializer + > + serializers = [ + HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer(), ]; DateTime get memberEpochSeconds; @@ -113,38 +122,35 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput String labelFor(String key) { switch (key) { case 'memberEpochSeconds': - return _i1.Timestamp(memberEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + memberEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'memberHttpDate': - return _i1.Timestamp(memberHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + memberHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'memberDateTime': - return _i1.Timestamp(memberDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + memberDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'defaultFormat': - return _i1.Timestamp(defaultFormat) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + defaultFormat, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'targetEpochSeconds': - return _i1.Timestamp(targetEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + targetEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'targetHttpDate': - return _i1.Timestamp(targetHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + targetHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'targetDateTime': - return _i1.Timestamp(targetDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + targetDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -153,62 +159,45 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInput') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper( + 'HttpRequestWithLabelsAndTimestampFormatInput', + ) + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; + factory HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; const HttpRequestWithLabelsAndTimestampFormatInputPayload._(); @@ -218,32 +207,32 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInputPayload'); + 'HttpRequestWithLabelsAndTimestampFormatInputPayload', + ); return helper.toString(); } } class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer - extends _i1.StructuredSmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload> { + extends + _i1.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInputPayload + > { const HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override Iterable get types => const [ - HttpRequestWithLabelsAndTimestampFormatInput, - _$HttpRequestWithLabelsAndTimestampFormatInput, - HttpRequestWithLabelsAndTimestampFormatInputPayload, - _$HttpRequestWithLabelsAndTimestampFormatInputPayload, - ]; + HttpRequestWithLabelsAndTimestampFormatInput, + _$HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputPayload, + _$HttpRequestWithLabelsAndTimestampFormatInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInputPayload deserialize( @@ -261,7 +250,7 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithLabelsAndTimestampFormatInput') + const _i1.XmlElementName('HttpRequestWithLabelsAndTimestampFormatInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart index 369c8ce5b1..1aa19a195a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart @@ -23,43 +23,63 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput @override final DateTime targetDateTime; - factory _$HttpRequestWithLabelsAndTimestampFormatInput( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInput([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputBuilder() ..update(updates)) ._build(); - _$HttpRequestWithLabelsAndTimestampFormatInput._( - {required this.memberEpochSeconds, - required this.memberHttpDate, - required this.memberDateTime, - required this.defaultFormat, - required this.targetEpochSeconds, - required this.targetHttpDate, - required this.targetDateTime}) - : super._() { - BuiltValueNullFieldError.checkNotNull(memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(memberHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'); - BuiltValueNullFieldError.checkNotNull(memberDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'); - BuiltValueNullFieldError.checkNotNull(defaultFormat, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'); - BuiltValueNullFieldError.checkNotNull(targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(targetHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'); - BuiltValueNullFieldError.checkNotNull(targetDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime'); + _$HttpRequestWithLabelsAndTimestampFormatInput._({ + required this.memberEpochSeconds, + required this.memberHttpDate, + required this.memberDateTime, + required this.defaultFormat, + required this.targetEpochSeconds, + required this.targetHttpDate, + required this.targetDateTime, + }) : super._() { + BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ); + BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ); + BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ); } @override HttpRequestWithLabelsAndTimestampFormatInput rebuild( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputBuilder toBuilder() => @@ -95,8 +115,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput class HttpRequestWithLabelsAndTimestampFormatInputBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInput? _$v; DateTime? _memberEpochSeconds; @@ -159,8 +181,8 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -168,25 +190,45 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder HttpRequestWithLabelsAndTimestampFormatInput build() => _build(); _$HttpRequestWithLabelsAndTimestampFormatInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsAndTimestampFormatInput._( - memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( - memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'memberEpochSeconds'), - memberHttpDate: BuiltValueNullFieldError.checkNotNull( - memberHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'), - memberDateTime: BuiltValueNullFieldError.checkNotNull( - memberDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'), - defaultFormat: BuiltValueNullFieldError.checkNotNull( - defaultFormat, r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'), - targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( - targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'targetEpochSeconds'), - targetHttpDate: BuiltValueNullFieldError.checkNotNull( - targetHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'), - targetDateTime: BuiltValueNullFieldError.checkNotNull(targetDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime')); + memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ), + memberHttpDate: BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ), + memberDateTime: BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ), + defaultFormat: BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ), + targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ), + targetHttpDate: BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ), + targetDateTime: BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ), + ); replace(_$result); return _$result; } @@ -194,10 +236,10 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder class _$HttpRequestWithLabelsAndTimestampFormatInputPayload extends HttpRequestWithLabelsAndTimestampFormatInputPayload { - factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder() ..update(updates)) ._build(); @@ -206,10 +248,9 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload @override HttpRequestWithLabelsAndTimestampFormatInputPayload rebuild( - void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder toBuilder() => @@ -230,8 +271,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInputPayload? _$v; HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder(); @@ -244,8 +287,9 @@ class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart index eacfadf140..dfbfadb7c3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_request_with_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,9 +42,9 @@ abstract class HttpRequestWithLabelsInput ); } - factory HttpRequestWithLabelsInput.build( - [void Function(HttpRequestWithLabelsInputBuilder) updates]) = - _$HttpRequestWithLabelsInput; + factory HttpRequestWithLabelsInput.build([ + void Function(HttpRequestWithLabelsInputBuilder) updates, + ]) = _$HttpRequestWithLabelsInput; const HttpRequestWithLabelsInput._(); @@ -52,39 +52,39 @@ abstract class HttpRequestWithLabelsInput HttpRequestWithLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsInput.build((b) { - if (labels['string'] != null) { - b.string = labels['string']!; - } - if (labels['short'] != null) { - b.short = int.parse(labels['short']!); - } - if (labels['integer'] != null) { - b.integer = int.parse(labels['integer']!); - } - if (labels['long'] != null) { - b.long = _i3.Int64.parseInt(labels['long']!); - } - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - if (labels['boolean'] != null) { - b.boolean = labels['boolean']! == 'true'; - } - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsInput.build((b) { + if (labels['string'] != null) { + b.string = labels['string']!; + } + if (labels['short'] != null) { + b.short = int.parse(labels['short']!); + } + if (labels['integer'] != null) { + b.integer = int.parse(labels['integer']!); + } + if (labels['long'] != null) { + b.long = _i3.Int64.parseInt(labels['long']!); + } + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + if (labels['boolean'] != null) { + b.boolean = labels['boolean']! == 'true'; + } + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [HttpRequestWithLabelsInputRestXmlSerializer()]; + serializers = [HttpRequestWithLabelsInputRestXmlSerializer()]; String get string; int get short; @@ -116,14 +116,11 @@ abstract class HttpRequestWithLabelsInput case 'boolean': return boolean.toString(); case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -132,66 +129,44 @@ abstract class HttpRequestWithLabelsInput @override List get props => [ - string, - short, - integer, - long, - float, - double_, - boolean, - timestamp, - ]; + string, + short, + integer, + long, + float, + double_, + boolean, + timestamp, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpRequestWithLabelsInput') - ..add( - 'string', - string, - ) - ..add( - 'short', - short, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'long', - long, - ) - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ) - ..add( - 'boolean', - boolean, - ) - ..add( - 'timestamp', - timestamp, - ); + final helper = + newBuiltValueToStringHelper('HttpRequestWithLabelsInput') + ..add('string', string) + ..add('short', short) + ..add('integer', integer) + ..add('long', long) + ..add('float', float) + ..add('double_', double_) + ..add('boolean', boolean) + ..add('timestamp', timestamp); return helper.toString(); } } @_i4.internal abstract class HttpRequestWithLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder) updates]) = - _$HttpRequestWithLabelsInputPayload; + factory HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithLabelsInputPayload; const HttpRequestWithLabelsInputPayload._(); @@ -200,8 +175,9 @@ abstract class HttpRequestWithLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithLabelsInputPayload', + ); return helper.toString(); } } @@ -209,23 +185,20 @@ abstract class HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestXmlSerializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [ - HttpRequestWithLabelsInput, - _$HttpRequestWithLabelsInput, - HttpRequestWithLabelsInputPayload, - _$HttpRequestWithLabelsInputPayload, - ]; + HttpRequestWithLabelsInput, + _$HttpRequestWithLabelsInput, + HttpRequestWithLabelsInputPayload, + _$HttpRequestWithLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsInputPayload deserialize( @@ -243,7 +216,7 @@ class HttpRequestWithLabelsInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithLabelsInput') + const _i1.XmlElementName('HttpRequestWithLabelsInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart index b0121ae103..843933b2b9 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart @@ -24,42 +24,66 @@ class _$HttpRequestWithLabelsInput extends HttpRequestWithLabelsInput { @override final DateTime timestamp; - factory _$HttpRequestWithLabelsInput( - [void Function(HttpRequestWithLabelsInputBuilder)? updates]) => - (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); - - _$HttpRequestWithLabelsInput._( - {required this.string, - required this.short, - required this.integer, - required this.long, - required this.float, - required this.double_, - required this.boolean, - required this.timestamp}) - : super._() { + factory _$HttpRequestWithLabelsInput([ + void Function(HttpRequestWithLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); + + _$HttpRequestWithLabelsInput._({ + required this.string, + required this.short, + required this.integer, + required this.long, + required this.float, + required this.double_, + required this.boolean, + required this.timestamp, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'); + string, + r'HttpRequestWithLabelsInput', + 'string', + ); BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'); + short, + r'HttpRequestWithLabelsInput', + 'short', + ); BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'); + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ); BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'); + long, + r'HttpRequestWithLabelsInput', + 'long', + ); BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'); + float, + r'HttpRequestWithLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'); + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ); BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'); + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ); BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp'); + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ); } @override HttpRequestWithLabelsInput rebuild( - void Function(HttpRequestWithLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputBuilder toBuilder() => @@ -165,24 +189,50 @@ class HttpRequestWithLabelsInputBuilder HttpRequestWithLabelsInput build() => _build(); _$HttpRequestWithLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsInput._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'), - short: BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'), - integer: BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'), - long: BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'), - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'), - boolean: BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'), - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'HttpRequestWithLabelsInput', + 'string', + ), + short: BuiltValueNullFieldError.checkNotNull( + short, + r'HttpRequestWithLabelsInput', + 'short', + ), + integer: BuiltValueNullFieldError.checkNotNull( + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ), + long: BuiltValueNullFieldError.checkNotNull( + long, + r'HttpRequestWithLabelsInput', + 'long', + ), + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ), + boolean: BuiltValueNullFieldError.checkNotNull( + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ), + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -190,8 +240,9 @@ class HttpRequestWithLabelsInputBuilder class _$HttpRequestWithLabelsInputPayload extends HttpRequestWithLabelsInputPayload { - factory _$HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates]) => + factory _$HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -199,8 +250,8 @@ class _$HttpRequestWithLabelsInputPayload @override HttpRequestWithLabelsInputPayload rebuild( - void Function(HttpRequestWithLabelsInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputPayloadBuilder toBuilder() => @@ -220,8 +271,10 @@ class _$HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + > { _$HttpRequestWithLabelsInputPayload? _$v; HttpRequestWithLabelsInputPayloadBuilder(); @@ -234,7 +287,8 @@ class HttpRequestWithLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart index e4a2549e56..ce8cf7efcc 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.http_response_code_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class HttpResponseCodeOutput return _$HttpResponseCodeOutput._(status: status); } - factory HttpResponseCodeOutput.build( - [void Function(HttpResponseCodeOutputBuilder) updates]) = - _$HttpResponseCodeOutput; + factory HttpResponseCodeOutput.build([ + void Function(HttpResponseCodeOutputBuilder) updates, + ]) = _$HttpResponseCodeOutput; const HttpResponseCodeOutput._(); @@ -31,13 +31,12 @@ abstract class HttpResponseCodeOutput factory HttpResponseCodeOutput.fromResponse( HttpResponseCodeOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.build((b) { - b.status = response.statusCode; - }); + ) => HttpResponseCodeOutput.build((b) { + b.status = response.statusCode; + }); static const List<_i2.SmithySerializer> - serializers = [HttpResponseCodeOutputRestXmlSerializer()]; + serializers = [HttpResponseCodeOutputRestXmlSerializer()]; int? get status; @override @@ -49,25 +48,23 @@ abstract class HttpResponseCodeOutput @override String toString() { final helper = newBuiltValueToStringHelper('HttpResponseCodeOutput') - ..add( - 'status', - status, - ); + ..add('status', status); return helper.toString(); } } @_i3.internal abstract class HttpResponseCodeOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder) updates]) = - _$HttpResponseCodeOutputPayload; + factory HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ]) = _$HttpResponseCodeOutputPayload; const HttpResponseCodeOutputPayload._(); @@ -84,23 +81,20 @@ abstract class HttpResponseCodeOutputPayload class HttpResponseCodeOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const HttpResponseCodeOutputRestXmlSerializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [ - HttpResponseCodeOutput, - _$HttpResponseCodeOutput, - HttpResponseCodeOutputPayload, - _$HttpResponseCodeOutputPayload, - ]; + HttpResponseCodeOutput, + _$HttpResponseCodeOutput, + HttpResponseCodeOutputPayload, + _$HttpResponseCodeOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpResponseCodeOutputPayload deserialize( @@ -118,7 +112,7 @@ class HttpResponseCodeOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('HttpResponseCodeOutput') + const _i2.XmlElementName('HttpResponseCodeOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart index 52c9134fa6..8ce35b317a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart @@ -10,16 +10,16 @@ class _$HttpResponseCodeOutput extends HttpResponseCodeOutput { @override final int? status; - factory _$HttpResponseCodeOutput( - [void Function(HttpResponseCodeOutputBuilder)? updates]) => - (new HttpResponseCodeOutputBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutput([ + void Function(HttpResponseCodeOutputBuilder)? updates, + ]) => (new HttpResponseCodeOutputBuilder()..update(updates))._build(); _$HttpResponseCodeOutput._({this.status}) : super._(); @override HttpResponseCodeOutput rebuild( - void Function(HttpResponseCodeOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputBuilder toBuilder() => @@ -81,16 +81,16 @@ class HttpResponseCodeOutputBuilder } class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { - factory _$HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder)? updates]) => - (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder)? updates, + ]) => (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); _$HttpResponseCodeOutputPayload._() : super._(); @override HttpResponseCodeOutputPayload rebuild( - void Function(HttpResponseCodeOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { class HttpResponseCodeOutputPayloadBuilder implements - Builder { + Builder< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + > { _$HttpResponseCodeOutputPayload? _$v; HttpResponseCodeOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart index 084782b2ed..28e41b509d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.ignore_query_params_in_response_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignore_query_params_in_response_output.g.dart'; abstract class IgnoreQueryParamsInResponseOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { factory IgnoreQueryParamsInResponseOutput({String? baz}) { return _$IgnoreQueryParamsInResponseOutput._(baz: baz); } - factory IgnoreQueryParamsInResponseOutput.build( - [void Function(IgnoreQueryParamsInResponseOutputBuilder) updates]) = - _$IgnoreQueryParamsInResponseOutput; + factory IgnoreQueryParamsInResponseOutput.build([ + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ]) = _$IgnoreQueryParamsInResponseOutput; const IgnoreQueryParamsInResponseOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoreQueryParamsInResponseOutput factory IgnoreQueryParamsInResponseOutput.fromResponse( IgnoreQueryParamsInResponseOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoreQueryParamsInResponseOutputRestXmlSerializer()]; + serializers = [IgnoreQueryParamsInResponseOutputRestXmlSerializer()]; String? get baz; @override @@ -42,12 +42,9 @@ abstract class IgnoreQueryParamsInResponseOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('IgnoreQueryParamsInResponseOutput') - ..add( - 'baz', - baz, - ); + final helper = newBuiltValueToStringHelper( + 'IgnoreQueryParamsInResponseOutput', + )..add('baz', baz); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestXmlSerializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [ - IgnoreQueryParamsInResponseOutput, - _$IgnoreQueryParamsInResponseOutput, - ]; + IgnoreQueryParamsInResponseOutput, + _$IgnoreQueryParamsInResponseOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -88,10 +82,12 @@ class IgnoreQueryParamsInResponseOutputRestXmlSerializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -105,16 +101,15 @@ class IgnoreQueryParamsInResponseOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('IgnoreQueryParamsInResponseOutput') + const _i2.XmlElementName('IgnoreQueryParamsInResponseOutput'), ]; final IgnoreQueryParamsInResponseOutput(:baz) = object; if (baz != null) { result$ ..add(const _i2.XmlElementName('baz')) - ..add(serializers.serialize( - baz, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(baz, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart index a893debc6f..c6019441a5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart @@ -11,8 +11,9 @@ class _$IgnoreQueryParamsInResponseOutput @override final String? baz; - factory _$IgnoreQueryParamsInResponseOutput( - [void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates]) => + factory _$IgnoreQueryParamsInResponseOutput([ + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ]) => (new IgnoreQueryParamsInResponseOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$IgnoreQueryParamsInResponseOutput @override IgnoreQueryParamsInResponseOutput rebuild( - void Function(IgnoreQueryParamsInResponseOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoreQueryParamsInResponseOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputBuilder implements - Builder { + Builder< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { _$IgnoreQueryParamsInResponseOutput? _$v; String? _baz; @@ -71,7 +74,8 @@ class IgnoreQueryParamsInResponseOutputBuilder @override void update( - void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates) { + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart index f6efea1e29..9b67770e72 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.input_and_output_with_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -58,18 +58,19 @@ abstract class InputAndOutputWithHeadersIo headerIntegerList == null ? null : _i4.BuiltList(headerIntegerList), headerBooleanList: headerBooleanList == null ? null : _i4.BuiltList(headerBooleanList), - headerTimestampList: headerTimestampList == null - ? null - : _i4.BuiltList(headerTimestampList), + headerTimestampList: + headerTimestampList == null + ? null + : _i4.BuiltList(headerTimestampList), headerEnum: headerEnum, headerEnumList: headerEnumList == null ? null : _i4.BuiltList(headerEnumList), ); } - factory InputAndOutputWithHeadersIo.build( - [void Function(InputAndOutputWithHeadersIoBuilder) updates]) = - _$InputAndOutputWithHeadersIo; + factory InputAndOutputWithHeadersIo.build([ + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ]) = _$InputAndOutputWithHeadersIo; const InputAndOutputWithHeadersIo._(); @@ -77,152 +78,178 @@ abstract class InputAndOutputWithHeadersIo InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - InputAndOutputWithHeadersIo.build((b) { - if (request.headers['X-String'] != null) { - b.headerString = request.headers['X-String']!; - } - if (request.headers['X-Byte'] != null) { - b.headerByte = int.parse(request.headers['X-Byte']!); - } - if (request.headers['X-Short'] != null) { - b.headerShort = int.parse(request.headers['X-Short']!); - } - if (request.headers['X-Integer'] != null) { - b.headerInteger = int.parse(request.headers['X-Integer']!); - } - if (request.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); - } - if (request.headers['X-Float'] != null) { - b.headerFloat = double.parse(request.headers['X-Float']!); - } - if (request.headers['X-Double'] != null) { - b.headerDouble = double.parse(request.headers['X-Double']!); - } - if (request.headers['X-Boolean1'] != null) { - b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; - } - if (request.headers['X-Boolean2'] != null) { - b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; - } - if (request.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(request.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (request.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(request.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (request.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(request.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(request.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - request.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + }) => InputAndOutputWithHeadersIo.build((b) { + if (request.headers['X-String'] != null) { + b.headerString = request.headers['X-String']!; + } + if (request.headers['X-Byte'] != null) { + b.headerByte = int.parse(request.headers['X-Byte']!); + } + if (request.headers['X-Short'] != null) { + b.headerShort = int.parse(request.headers['X-Short']!); + } + if (request.headers['X-Integer'] != null) { + b.headerInteger = int.parse(request.headers['X-Integer']!); + } + if (request.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); + } + if (request.headers['X-Float'] != null) { + b.headerFloat = double.parse(request.headers['X-Float']!); + } + if (request.headers['X-Double'] != null) { + b.headerDouble = double.parse(request.headers['X-Double']!); + } + if (request.headers['X-Boolean1'] != null) { + b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; + } + if (request.headers['X-Boolean2'] != null) { + b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; + } + if (request.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(request.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (request.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1.parseHeader(request.headers['X-StringSet']!).map((el) => el.trim()), + ); + } + if (request.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(request.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(request.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + request.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); - } - if (request.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(request.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (request.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); + } + if (request.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(request.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + }); /// Constructs a [InputAndOutputWithHeadersIo] from a [payload] and [response]. factory InputAndOutputWithHeadersIo.fromResponse( InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.build((b) { - if (response.headers['X-String'] != null) { - b.headerString = response.headers['X-String']!; - } - if (response.headers['X-Byte'] != null) { - b.headerByte = int.parse(response.headers['X-Byte']!); - } - if (response.headers['X-Short'] != null) { - b.headerShort = int.parse(response.headers['X-Short']!); - } - if (response.headers['X-Integer'] != null) { - b.headerInteger = int.parse(response.headers['X-Integer']!); - } - if (response.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); - } - if (response.headers['X-Float'] != null) { - b.headerFloat = double.parse(response.headers['X-Float']!); - } - if (response.headers['X-Double'] != null) { - b.headerDouble = double.parse(response.headers['X-Double']!); - } - if (response.headers['X-Boolean1'] != null) { - b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; - } - if (response.headers['X-Boolean2'] != null) { - b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; - } - if (response.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(response.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (response.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(response.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (response.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(response.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (response.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(response.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (response.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - response.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + ) => InputAndOutputWithHeadersIo.build((b) { + if (response.headers['X-String'] != null) { + b.headerString = response.headers['X-String']!; + } + if (response.headers['X-Byte'] != null) { + b.headerByte = int.parse(response.headers['X-Byte']!); + } + if (response.headers['X-Short'] != null) { + b.headerShort = int.parse(response.headers['X-Short']!); + } + if (response.headers['X-Integer'] != null) { + b.headerInteger = int.parse(response.headers['X-Integer']!); + } + if (response.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); + } + if (response.headers['X-Float'] != null) { + b.headerFloat = double.parse(response.headers['X-Float']!); + } + if (response.headers['X-Double'] != null) { + b.headerDouble = double.parse(response.headers['X-Double']!); + } + if (response.headers['X-Boolean1'] != null) { + b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; + } + if (response.headers['X-Boolean2'] != null) { + b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; + } + if (response.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(response.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1 + .parseHeader(response.headers['X-StringSet']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(response.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (response.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(response.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (response.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + response.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (response.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); - } - if (response.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(response.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (response.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); + } + if (response.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(response.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [InputAndOutputWithHeadersIoRestXmlSerializer()]; + serializers = [InputAndOutputWithHeadersIoRestXmlSerializer()]; String? get headerString; int? get headerByte; @@ -246,106 +273,60 @@ abstract class InputAndOutputWithHeadersIo @override List get props => [ - headerString, - headerByte, - headerShort, - headerInteger, - headerLong, - headerFloat, - headerDouble, - headerTrueBool, - headerFalseBool, - headerStringList, - headerStringSet, - headerIntegerList, - headerBooleanList, - headerTimestampList, - headerEnum, - headerEnumList, - ]; + headerString, + headerByte, + headerShort, + headerInteger, + headerLong, + headerFloat, + headerDouble, + headerTrueBool, + headerFalseBool, + headerStringList, + headerStringSet, + headerIntegerList, + headerBooleanList, + headerTimestampList, + headerEnum, + headerEnumList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') - ..add( - 'headerString', - headerString, - ) - ..add( - 'headerByte', - headerByte, - ) - ..add( - 'headerShort', - headerShort, - ) - ..add( - 'headerInteger', - headerInteger, - ) - ..add( - 'headerLong', - headerLong, - ) - ..add( - 'headerFloat', - headerFloat, - ) - ..add( - 'headerDouble', - headerDouble, - ) - ..add( - 'headerTrueBool', - headerTrueBool, - ) - ..add( - 'headerFalseBool', - headerFalseBool, - ) - ..add( - 'headerStringList', - headerStringList, - ) - ..add( - 'headerStringSet', - headerStringSet, - ) - ..add( - 'headerIntegerList', - headerIntegerList, - ) - ..add( - 'headerBooleanList', - headerBooleanList, - ) - ..add( - 'headerTimestampList', - headerTimestampList, - ) - ..add( - 'headerEnum', - headerEnum, - ) - ..add( - 'headerEnumList', - headerEnumList, - ); + final helper = + newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') + ..add('headerString', headerString) + ..add('headerByte', headerByte) + ..add('headerShort', headerShort) + ..add('headerInteger', headerInteger) + ..add('headerLong', headerLong) + ..add('headerFloat', headerFloat) + ..add('headerDouble', headerDouble) + ..add('headerTrueBool', headerTrueBool) + ..add('headerFalseBool', headerFalseBool) + ..add('headerStringList', headerStringList) + ..add('headerStringSet', headerStringSet) + ..add('headerIntegerList', headerIntegerList) + ..add('headerBooleanList', headerBooleanList) + ..add('headerTimestampList', headerTimestampList) + ..add('headerEnum', headerEnum) + ..add('headerEnumList', headerEnumList); return helper.toString(); } } @_i5.internal abstract class InputAndOutputWithHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates]) = - _$InputAndOutputWithHeadersIoPayload; + factory InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ]) = _$InputAndOutputWithHeadersIoPayload; const InputAndOutputWithHeadersIoPayload._(); @@ -354,8 +335,9 @@ abstract class InputAndOutputWithHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('InputAndOutputWithHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'InputAndOutputWithHeadersIoPayload', + ); return helper.toString(); } } @@ -363,23 +345,20 @@ abstract class InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoRestXmlSerializer extends _i1.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestXmlSerializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [ - InputAndOutputWithHeadersIo, - _$InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - _$InputAndOutputWithHeadersIoPayload, - ]; + InputAndOutputWithHeadersIo, + _$InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + _$InputAndOutputWithHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InputAndOutputWithHeadersIoPayload deserialize( @@ -397,7 +376,7 @@ class InputAndOutputWithHeadersIoRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('InputAndOutputWithHeadersIo') + const _i1.XmlElementName('InputAndOutputWithHeadersIo'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart index 565101fd3c..f6aed76349 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart @@ -40,33 +40,33 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { @override final _i4.BuiltList? headerEnumList; - factory _$InputAndOutputWithHeadersIo( - [void Function(InputAndOutputWithHeadersIoBuilder)? updates]) => - (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); - - _$InputAndOutputWithHeadersIo._( - {this.headerString, - this.headerByte, - this.headerShort, - this.headerInteger, - this.headerLong, - this.headerFloat, - this.headerDouble, - this.headerTrueBool, - this.headerFalseBool, - this.headerStringList, - this.headerStringSet, - this.headerIntegerList, - this.headerBooleanList, - this.headerTimestampList, - this.headerEnum, - this.headerEnumList}) - : super._(); + factory _$InputAndOutputWithHeadersIo([ + void Function(InputAndOutputWithHeadersIoBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); + + _$InputAndOutputWithHeadersIo._({ + this.headerString, + this.headerByte, + this.headerShort, + this.headerInteger, + this.headerLong, + this.headerFloat, + this.headerDouble, + this.headerTrueBool, + this.headerFalseBool, + this.headerStringList, + this.headerStringSet, + this.headerIntegerList, + this.headerBooleanList, + this.headerTimestampList, + this.headerEnum, + this.headerEnumList, + }) : super._(); @override InputAndOutputWithHeadersIo rebuild( - void Function(InputAndOutputWithHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoBuilder toBuilder() => @@ -120,8 +120,10 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { class InputAndOutputWithHeadersIoBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoBuilder + > { _$InputAndOutputWithHeadersIo? _$v; String? _headerString; @@ -246,24 +248,26 @@ class InputAndOutputWithHeadersIoBuilder _$InputAndOutputWithHeadersIo _build() { _$InputAndOutputWithHeadersIo _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InputAndOutputWithHeadersIo._( - headerString: headerString, - headerByte: headerByte, - headerShort: headerShort, - headerInteger: headerInteger, - headerLong: headerLong, - headerFloat: headerFloat, - headerDouble: headerDouble, - headerTrueBool: headerTrueBool, - headerFalseBool: headerFalseBool, - headerStringList: _headerStringList?.build(), - headerStringSet: _headerStringSet?.build(), - headerIntegerList: _headerIntegerList?.build(), - headerBooleanList: _headerBooleanList?.build(), - headerTimestampList: _headerTimestampList?.build(), - headerEnum: headerEnum, - headerEnumList: _headerEnumList?.build()); + headerString: headerString, + headerByte: headerByte, + headerShort: headerShort, + headerInteger: headerInteger, + headerLong: headerLong, + headerFloat: headerFloat, + headerDouble: headerDouble, + headerTrueBool: headerTrueBool, + headerFalseBool: headerFalseBool, + headerStringList: _headerStringList?.build(), + headerStringSet: _headerStringSet?.build(), + headerIntegerList: _headerIntegerList?.build(), + headerBooleanList: _headerBooleanList?.build(), + headerTimestampList: _headerTimestampList?.build(), + headerEnum: headerEnum, + headerEnumList: _headerEnumList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -282,7 +286,10 @@ class InputAndOutputWithHeadersIoBuilder _headerEnumList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InputAndOutputWithHeadersIo', _$failedField, e.toString()); + r'InputAndOutputWithHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -293,9 +300,9 @@ class InputAndOutputWithHeadersIoBuilder class _$InputAndOutputWithHeadersIoPayload extends InputAndOutputWithHeadersIoPayload { - factory _$InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder)? - updates]) => + factory _$InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoPayloadBuilder()..update(updates)) ._build(); @@ -303,8 +310,8 @@ class _$InputAndOutputWithHeadersIoPayload @override InputAndOutputWithHeadersIoPayload rebuild( - void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoPayloadBuilder toBuilder() => @@ -324,8 +331,10 @@ class _$InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoPayloadBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + > { _$InputAndOutputWithHeadersIoPayload? _$v; InputAndOutputWithHeadersIoPayloadBuilder(); @@ -338,7 +347,8 @@ class InputAndOutputWithHeadersIoPayloadBuilder @override void update( - void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates) { + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart index f432c3fd75..ef630dfa79 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,22 +32,21 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingRestXmlSerializer() + InvalidGreetingRestXmlSerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.restxml', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingRestXmlSerializer const InvalidGreetingRestXmlSerializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InvalidGreeting deserialize( @@ -118,10 +109,12 @@ class InvalidGreetingRestXmlSerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -139,10 +132,9 @@ class InvalidGreetingRestXmlSerializer if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart index b7d493e542..6a670c4535 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.nested_payload; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,14 +13,8 @@ part 'nested_payload.g.dart'; abstract class NestedPayload with _i1.AWSEquatable implements Built { - factory NestedPayload({ - String? greeting, - String? name, - }) { - return _$NestedPayload._( - greeting: greeting, - name: name, - ); + factory NestedPayload({String? greeting, String? name}) { + return _$NestedPayload._(greeting: greeting, name: name); } factory NestedPayload.build([void Function(NestedPayloadBuilder) updates]) = @@ -29,28 +23,20 @@ abstract class NestedPayload const NestedPayload._(); static const List<_i2.SmithySerializer> serializers = [ - NestedPayloadRestXmlSerializer() + NestedPayloadRestXmlSerializer(), ]; String? get greeting; String? get name; @override - List get props => [ - greeting, - name, - ]; + List get props => [greeting, name]; @override String toString() { - final helper = newBuiltValueToStringHelper('NestedPayload') - ..add( - 'greeting', - greeting, - ) - ..add( - 'name', - name, - ); + final helper = + newBuiltValueToStringHelper('NestedPayload') + ..add('greeting', greeting) + ..add('name', name); return helper.toString(); } } @@ -60,18 +46,12 @@ class NestedPayloadRestXmlSerializer const NestedPayloadRestXmlSerializer() : super('NestedPayload'); @override - Iterable get types => const [ - NestedPayload, - _$NestedPayload, - ]; + Iterable get types => const [NestedPayload, _$NestedPayload]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedPayload deserialize( @@ -90,15 +70,19 @@ class NestedPayloadRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -116,18 +100,19 @@ class NestedPayloadRestXmlSerializer if (greeting != null) { result$ ..add(const _i2.XmlElementName('greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart index dde36fa947..d7a9f8ba14 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.nested_xml_maps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,32 +23,28 @@ abstract class NestedXmlMapsInputOutput Map>? flatNestedMap, }) { return _$NestedXmlMapsInputOutput._( - nestedMap: nestedMap == null - ? null - : _i3.BuiltMap(nestedMap.map(( - key, - value, - ) => - MapEntry( - key, - _i3.BuiltMap(value), - ))), - flatNestedMap: flatNestedMap == null - ? null - : _i3.BuiltMap(flatNestedMap.map(( - key, - value, - ) => - MapEntry( - key, - _i3.BuiltMap(value), - ))), + nestedMap: + nestedMap == null + ? null + : _i3.BuiltMap( + nestedMap.map( + (key, value) => MapEntry(key, _i3.BuiltMap(value)), + ), + ), + flatNestedMap: + flatNestedMap == null + ? null + : _i3.BuiltMap( + flatNestedMap.map( + (key, value) => MapEntry(key, _i3.BuiltMap(value)), + ), + ), ); } - factory NestedXmlMapsInputOutput.build( - [void Function(NestedXmlMapsInputOutputBuilder) updates]) = - _$NestedXmlMapsInputOutput; + factory NestedXmlMapsInputOutput.build([ + void Function(NestedXmlMapsInputOutputBuilder) updates, + ]) = _$NestedXmlMapsInputOutput; const NestedXmlMapsInputOutput._(); @@ -56,18 +52,16 @@ abstract class NestedXmlMapsInputOutput NestedXmlMapsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [NestedXmlMapsInputOutput] from a [payload] and [response]. factory NestedXmlMapsInputOutput.fromResponse( NestedXmlMapsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [NestedXmlMapsInputOutputRestXmlSerializer()]; + serializers = [NestedXmlMapsInputOutputRestXmlSerializer()]; _i3.BuiltMap>? get nestedMap; _i3.BuiltMap>? get flatNestedMap; @@ -75,22 +69,14 @@ abstract class NestedXmlMapsInputOutput NestedXmlMapsInputOutput getPayload() => this; @override - List get props => [ - nestedMap, - flatNestedMap, - ]; + List get props => [nestedMap, flatNestedMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('NestedXmlMapsInputOutput') - ..add( - 'nestedMap', - nestedMap, - ) - ..add( - 'flatNestedMap', - flatNestedMap, - ); + final helper = + newBuiltValueToStringHelper('NestedXmlMapsInputOutput') + ..add('nestedMap', nestedMap) + ..add('flatNestedMap', flatNestedMap); return helper.toString(); } } @@ -98,21 +84,18 @@ abstract class NestedXmlMapsInputOutput class NestedXmlMapsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const NestedXmlMapsInputOutputRestXmlSerializer() - : super('NestedXmlMapsInputOutput'); + : super('NestedXmlMapsInputOutput'); @override Iterable get types => const [ - NestedXmlMapsInputOutput, - _$NestedXmlMapsInputOutput, - ]; + NestedXmlMapsInputOutput, + _$NestedXmlMapsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedXmlMapsInputOutput deserialize( @@ -132,45 +115,32 @@ class NestedXmlMapsInputOutputRestXmlSerializer switch (key) { case 'flatNestedMap': result.flatNestedMap.addAll( - const _i1.XmlBuiltMapSerializer(flattenedKey: 'flatNestedMap') - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], - ), - ) - .toMap() - .cast()); + const _i1.XmlBuiltMapSerializer(flattenedKey: 'flatNestedMap') + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ]), + ) + .toMap() + .cast(), + ); case 'nestedMap': - result.nestedMap - .replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.nestedMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], + FullType(_i3.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]), ), - )); + ); } } @@ -184,50 +154,36 @@ class NestedXmlMapsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('NestedXmlMapsInputOutput') + const _i1.XmlElementName('NestedXmlMapsInputOutput'), ]; final NestedXmlMapsInputOutput(:flatNestedMap, :nestedMap) = object; if (flatNestedMap != null) { result$.addAll( - const _i1.XmlBuiltMapSerializer(flattenedKey: 'flatNestedMap') - .serialize( - serializers, - flatNestedMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + flattenedKey: 'flatNestedMap', + ).serialize( + serializers, + flatNestedMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], + FullType(_i3.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]), ), - )); + ); } if (nestedMap != null) { result$ ..add(const _i1.XmlElementName('nestedMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - nestedMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + nestedMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], + FullType(_i3.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart index f4bfe1575d..48cc66973f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart @@ -12,17 +12,17 @@ class _$NestedXmlMapsInputOutput extends NestedXmlMapsInputOutput { @override final _i3.BuiltMap>? flatNestedMap; - factory _$NestedXmlMapsInputOutput( - [void Function(NestedXmlMapsInputOutputBuilder)? updates]) => - (new NestedXmlMapsInputOutputBuilder()..update(updates))._build(); + factory _$NestedXmlMapsInputOutput([ + void Function(NestedXmlMapsInputOutputBuilder)? updates, + ]) => (new NestedXmlMapsInputOutputBuilder()..update(updates))._build(); _$NestedXmlMapsInputOutput._({this.nestedMap, this.flatNestedMap}) - : super._(); + : super._(); @override NestedXmlMapsInputOutput rebuild( - void Function(NestedXmlMapsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedXmlMapsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedXmlMapsInputOutputBuilder toBuilder() => @@ -56,17 +56,16 @@ class NestedXmlMapsInputOutputBuilder _$this._nestedMap ??= new _i3.MapBuilder>(); set nestedMap( - _i3.MapBuilder>? nestedMap) => - _$this._nestedMap = nestedMap; + _i3.MapBuilder>? nestedMap, + ) => _$this._nestedMap = nestedMap; _i3.MapBuilder>? _flatNestedMap; _i3.MapBuilder> get flatNestedMap => _$this._flatNestedMap ??= new _i3.MapBuilder>(); set flatNestedMap( - _i3.MapBuilder>? - flatNestedMap) => - _$this._flatNestedMap = flatNestedMap; + _i3.MapBuilder>? flatNestedMap, + ) => _$this._flatNestedMap = flatNestedMap; NestedXmlMapsInputOutputBuilder(); @@ -97,10 +96,12 @@ class NestedXmlMapsInputOutputBuilder _$NestedXmlMapsInputOutput _build() { _$NestedXmlMapsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$NestedXmlMapsInputOutput._( - nestedMap: _nestedMap?.build(), - flatNestedMap: _flatNestedMap?.build()); + nestedMap: _nestedMap?.build(), + flatNestedMap: _flatNestedMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -110,7 +111,10 @@ class NestedXmlMapsInputOutputBuilder _flatNestedMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedXmlMapsInputOutput', _$failedField, e.toString()); + r'NestedXmlMapsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart index 70f660b1a9..677d6b4623 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputRestXmlSerializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputRestXmlSerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoInputAndOutputOutput deserialize( @@ -80,7 +76,7 @@ class NoInputAndOutputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('NoInputAndOutputOutput') + const _i2.XmlElementName('NoInputAndOutputOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart index 7858cd02b7..a546c6fd97 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.null_and_empty_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,11 +20,7 @@ abstract class NullAndEmptyHeadersIo Built, _i1.EmptyPayload, _i1.HasPayload { - factory NullAndEmptyHeadersIo({ - String? a, - String? b, - List? c, - }) { + factory NullAndEmptyHeadersIo({String? a, String? b, List? c}) { return _$NullAndEmptyHeadersIo._( a: a, b: b, @@ -32,9 +28,9 @@ abstract class NullAndEmptyHeadersIo ); } - factory NullAndEmptyHeadersIo.build( - [void Function(NullAndEmptyHeadersIoBuilder) updates]) = - _$NullAndEmptyHeadersIo; + factory NullAndEmptyHeadersIo.build([ + void Function(NullAndEmptyHeadersIoBuilder) updates, + ]) = _$NullAndEmptyHeadersIo; const NullAndEmptyHeadersIo._(); @@ -42,40 +38,40 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - NullAndEmptyHeadersIo.build((b) { - if (request.headers['X-A'] != null) { - b.a = request.headers['X-A']!; - } - if (request.headers['X-B'] != null) { - b.b = request.headers['X-B']!; - } - if (request.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim())); - } - }); + }) => NullAndEmptyHeadersIo.build((b) { + if (request.headers['X-A'] != null) { + b.a = request.headers['X-A']!; + } + if (request.headers['X-B'] != null) { + b.b = request.headers['X-B']!; + } + if (request.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim()), + ); + } + }); /// Constructs a [NullAndEmptyHeadersIo] from a [payload] and [response]. factory NullAndEmptyHeadersIo.fromResponse( NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.build((b) { - if (response.headers['X-A'] != null) { - b.a = response.headers['X-A']!; - } - if (response.headers['X-B'] != null) { - b.b = response.headers['X-B']!; - } - if (response.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim())); - } - }); + ) => NullAndEmptyHeadersIo.build((b) { + if (response.headers['X-A'] != null) { + b.a = response.headers['X-A']!; + } + if (response.headers['X-B'] != null) { + b.b = response.headers['X-B']!; + } + if (response.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim()), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [NullAndEmptyHeadersIoRestXmlSerializer()]; + serializers = [NullAndEmptyHeadersIoRestXmlSerializer()]; String? get a; String? get b; @@ -84,42 +80,31 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload getPayload() => NullAndEmptyHeadersIoPayload(); @override - List get props => [ - a, - b, - c, - ]; + List get props => [a, b, c]; @override String toString() { - final helper = newBuiltValueToStringHelper('NullAndEmptyHeadersIo') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ) - ..add( - 'c', - c, - ); + final helper = + newBuiltValueToStringHelper('NullAndEmptyHeadersIo') + ..add('a', a) + ..add('b', b) + ..add('c', c); return helper.toString(); } } @_i4.internal abstract class NullAndEmptyHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder) updates]) = - _$NullAndEmptyHeadersIoPayload; + factory NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ]) = _$NullAndEmptyHeadersIoPayload; const NullAndEmptyHeadersIoPayload._(); @@ -136,23 +121,20 @@ abstract class NullAndEmptyHeadersIoPayload class NullAndEmptyHeadersIoRestXmlSerializer extends _i1.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestXmlSerializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [ - NullAndEmptyHeadersIo, - _$NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - _$NullAndEmptyHeadersIoPayload, - ]; + NullAndEmptyHeadersIo, + _$NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + _$NullAndEmptyHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NullAndEmptyHeadersIoPayload deserialize( @@ -170,7 +152,7 @@ class NullAndEmptyHeadersIoRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('NullAndEmptyHeadersIo') + const _i1.XmlElementName('NullAndEmptyHeadersIo'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart index e519841018..8594dc19c2 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart @@ -14,16 +14,16 @@ class _$NullAndEmptyHeadersIo extends NullAndEmptyHeadersIo { @override final _i3.BuiltList? c; - factory _$NullAndEmptyHeadersIo( - [void Function(NullAndEmptyHeadersIoBuilder)? updates]) => - (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIo([ + void Function(NullAndEmptyHeadersIoBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIo._({this.a, this.b, this.c}) : super._(); @override NullAndEmptyHeadersIo rebuild( - void Function(NullAndEmptyHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoBuilder toBuilder() => @@ -104,7 +104,10 @@ class NullAndEmptyHeadersIoBuilder _c?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NullAndEmptyHeadersIo', _$failedField, e.toString()); + r'NullAndEmptyHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -114,16 +117,16 @@ class NullAndEmptyHeadersIoBuilder } class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { - factory _$NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates]) => - (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIoPayload._() : super._(); @override NullAndEmptyHeadersIoPayload rebuild( - void Function(NullAndEmptyHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoPayloadBuilder toBuilder() => @@ -143,8 +146,10 @@ class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { class NullAndEmptyHeadersIoPayloadBuilder implements - Builder { + Builder< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + > { _$NullAndEmptyHeadersIoPayload? _$v; NullAndEmptyHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart index 0c53df97c0..f3c7c9dbe9 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.omits_null_serializes_empty_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class OmitsNullSerializesEmptyStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory OmitsNullSerializesEmptyStringInput({ @@ -30,9 +32,9 @@ abstract class OmitsNullSerializesEmptyStringInput ); } - factory OmitsNullSerializesEmptyStringInput.build( - [void Function(OmitsNullSerializesEmptyStringInputBuilder) updates]) = - _$OmitsNullSerializesEmptyStringInput; + factory OmitsNullSerializesEmptyStringInput.build([ + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInput; const OmitsNullSerializesEmptyStringInput._(); @@ -40,19 +42,19 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - OmitsNullSerializesEmptyStringInput.build((b) { - if (request.queryParameters['Null'] != null) { - b.nullValue = request.queryParameters['Null']!; - } - if (request.queryParameters['Empty'] != null) { - b.emptyString = request.queryParameters['Empty']!; - } - }); + }) => OmitsNullSerializesEmptyStringInput.build((b) { + if (request.queryParameters['Null'] != null) { + b.nullValue = request.queryParameters['Null']!; + } + if (request.queryParameters['Empty'] != null) { + b.emptyString = request.queryParameters['Empty']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [OmitsNullSerializesEmptyStringInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [OmitsNullSerializesEmptyStringInputRestXmlSerializer()]; String? get nullValue; String? get emptyString; @@ -61,38 +63,30 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload(); @override - List get props => [ - nullValue, - emptyString, - ]; + List get props => [nullValue, emptyString]; @override String toString() { final helper = newBuiltValueToStringHelper('OmitsNullSerializesEmptyStringInput') - ..add( - 'nullValue', - nullValue, - ) - ..add( - 'emptyString', - emptyString, - ); + ..add('nullValue', nullValue) + ..add('emptyString', emptyString); return helper.toString(); } } @_i3.internal abstract class OmitsNullSerializesEmptyStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates]) = _$OmitsNullSerializesEmptyStringInputPayload; + factory OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInputPayload; const OmitsNullSerializesEmptyStringInputPayload._(); @@ -102,31 +96,32 @@ abstract class OmitsNullSerializesEmptyStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'OmitsNullSerializesEmptyStringInputPayload'); + 'OmitsNullSerializesEmptyStringInputPayload', + ); return helper.toString(); } } -class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + OmitsNullSerializesEmptyStringInputPayload + > { const OmitsNullSerializesEmptyStringInputRestXmlSerializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [ - OmitsNullSerializesEmptyStringInput, - _$OmitsNullSerializesEmptyStringInput, - OmitsNullSerializesEmptyStringInputPayload, - _$OmitsNullSerializesEmptyStringInputPayload, - ]; + OmitsNullSerializesEmptyStringInput, + _$OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputPayload, + _$OmitsNullSerializesEmptyStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OmitsNullSerializesEmptyStringInputPayload deserialize( @@ -144,7 +139,7 @@ class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('OmitsNullSerializesEmptyStringInput') + const _i1.XmlElementName('OmitsNullSerializesEmptyStringInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart index 5f2c498b34..d20fee8e14 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart @@ -13,19 +13,19 @@ class _$OmitsNullSerializesEmptyStringInput @override final String? emptyString; - factory _$OmitsNullSerializesEmptyStringInput( - [void Function(OmitsNullSerializesEmptyStringInputBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInput([ + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputBuilder()..update(updates)) ._build(); _$OmitsNullSerializesEmptyStringInput._({this.nullValue, this.emptyString}) - : super._(); + : super._(); @override OmitsNullSerializesEmptyStringInput rebuild( - void Function(OmitsNullSerializesEmptyStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$OmitsNullSerializesEmptyStringInput class OmitsNullSerializesEmptyStringInputBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + > { _$OmitsNullSerializesEmptyStringInput? _$v; String? _nullValue; @@ -83,7 +85,8 @@ class OmitsNullSerializesEmptyStringInputBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates) { + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class OmitsNullSerializesEmptyStringInputBuilder OmitsNullSerializesEmptyStringInput build() => _build(); _$OmitsNullSerializesEmptyStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$OmitsNullSerializesEmptyStringInput._( - nullValue: nullValue, emptyString: emptyString); + nullValue: nullValue, + emptyString: emptyString, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class OmitsNullSerializesEmptyStringInputBuilder class _$OmitsNullSerializesEmptyStringInputPayload extends OmitsNullSerializesEmptyStringInputPayload { - factory _$OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$OmitsNullSerializesEmptyStringInputPayload @override OmitsNullSerializesEmptyStringInputPayload rebuild( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$OmitsNullSerializesEmptyStringInputPayload class OmitsNullSerializesEmptyStringInputPayloadBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + > { _$OmitsNullSerializesEmptyStringInputPayload? _$v; OmitsNullSerializesEmptyStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class OmitsNullSerializesEmptyStringInputPayloadBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates) { + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.dart index 9570854bf7..71ad792305 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestXmlSerializer() + OperationConfigRestXmlSerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestXmlSerializer const OperationConfigRestXmlSerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestXmlSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestXmlSerializer if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart index 4af6860916..7e002243fd 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.payload_with_xml_name; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,14 @@ abstract class PayloadWithXmlName return _$PayloadWithXmlName._(name: name); } - factory PayloadWithXmlName.build( - [void Function(PayloadWithXmlNameBuilder) updates]) = - _$PayloadWithXmlName; + factory PayloadWithXmlName.build([ + void Function(PayloadWithXmlNameBuilder) updates, + ]) = _$PayloadWithXmlName; const PayloadWithXmlName._(); static const List<_i2.SmithySerializer> serializers = [ - PayloadWithXmlNameRestXmlSerializer() + PayloadWithXmlNameRestXmlSerializer(), ]; String? get name; @@ -34,10 +34,7 @@ abstract class PayloadWithXmlName @override String toString() { final helper = newBuiltValueToStringHelper('PayloadWithXmlName') - ..add( - 'name', - name, - ); + ..add('name', name); return helper.toString(); } } @@ -47,18 +44,12 @@ class PayloadWithXmlNameRestXmlSerializer const PayloadWithXmlNameRestXmlSerializer() : super('PayloadWithXmlName'); @override - Iterable get types => const [ - PayloadWithXmlName, - _$PayloadWithXmlName, - ]; + Iterable get types => const [PayloadWithXmlName, _$PayloadWithXmlName]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -77,10 +68,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +91,9 @@ class PayloadWithXmlNameRestXmlSerializer if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart index be317d29c1..1599733e3b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart @@ -10,16 +10,16 @@ class _$PayloadWithXmlName extends PayloadWithXmlName { @override final String? name; - factory _$PayloadWithXmlName( - [void Function(PayloadWithXmlNameBuilder)? updates]) => - (new PayloadWithXmlNameBuilder()..update(updates))._build(); + factory _$PayloadWithXmlName([ + void Function(PayloadWithXmlNameBuilder)? updates, + ]) => (new PayloadWithXmlNameBuilder()..update(updates))._build(); _$PayloadWithXmlName._({this.name}) : super._(); @override PayloadWithXmlName rebuild( - void Function(PayloadWithXmlNameBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PayloadWithXmlNameBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PayloadWithXmlNameBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart index c8630fe5f4..90e80aba66 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.payload_with_xml_namespace; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class PayloadWithXmlNamespace return _$PayloadWithXmlNamespace._(name: name); } - factory PayloadWithXmlNamespace.build( - [void Function(PayloadWithXmlNamespaceBuilder) updates]) = - _$PayloadWithXmlNamespace; + factory PayloadWithXmlNamespace.build([ + void Function(PayloadWithXmlNamespaceBuilder) updates, + ]) = _$PayloadWithXmlNamespace; const PayloadWithXmlNamespace._(); @@ -33,10 +33,7 @@ abstract class PayloadWithXmlNamespace @override String toString() { final helper = newBuiltValueToStringHelper('PayloadWithXmlNamespace') - ..add( - 'name', - name, - ); + ..add('name', name); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class PayloadWithXmlNamespace class PayloadWithXmlNamespaceRestXmlSerializer extends _i2.StructuredSmithySerializer { const PayloadWithXmlNamespaceRestXmlSerializer() - : super('PayloadWithXmlNamespace'); + : super('PayloadWithXmlNamespace'); @override Iterable get types => const [ - PayloadWithXmlNamespace, - _$PayloadWithXmlNamespace, - ]; + PayloadWithXmlNamespace, + _$PayloadWithXmlNamespace, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespace deserialize( @@ -77,10 +71,12 @@ class PayloadWithXmlNamespaceRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,16 +93,15 @@ class PayloadWithXmlNamespaceRestXmlSerializer const _i2.XmlElementName( 'PayloadWithXmlNamespace', _i2.XmlNamespace('http://foo.com'), - ) + ), ]; final PayloadWithXmlNamespace(:name) = object; if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart index fb50c399d4..d8f8077aad 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart @@ -10,16 +10,16 @@ class _$PayloadWithXmlNamespace extends PayloadWithXmlNamespace { @override final String? name; - factory _$PayloadWithXmlNamespace( - [void Function(PayloadWithXmlNamespaceBuilder)? updates]) => - (new PayloadWithXmlNamespaceBuilder()..update(updates))._build(); + factory _$PayloadWithXmlNamespace([ + void Function(PayloadWithXmlNamespaceBuilder)? updates, + ]) => (new PayloadWithXmlNamespaceBuilder()..update(updates))._build(); _$PayloadWithXmlNamespace._({this.name}) : super._(); @override PayloadWithXmlNamespace rebuild( - void Function(PayloadWithXmlNamespaceBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PayloadWithXmlNamespaceBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PayloadWithXmlNamespaceBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart index cc094b78f4..78954288d4 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.payload_with_xml_namespace_and_prefix; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,23 +11,24 @@ import 'package:smithy/smithy.dart' as _i2; part 'payload_with_xml_namespace_and_prefix.g.dart'; abstract class PayloadWithXmlNamespaceAndPrefix - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + PayloadWithXmlNamespaceAndPrefix, + PayloadWithXmlNamespaceAndPrefixBuilder + > { factory PayloadWithXmlNamespaceAndPrefix({String? name}) { return _$PayloadWithXmlNamespaceAndPrefix._(name: name); } - factory PayloadWithXmlNamespaceAndPrefix.build( - [void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates]) = - _$PayloadWithXmlNamespaceAndPrefix; + factory PayloadWithXmlNamespaceAndPrefix.build([ + void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates, + ]) = _$PayloadWithXmlNamespaceAndPrefix; const PayloadWithXmlNamespaceAndPrefix._(); static const List<_i2.SmithySerializer> - serializers = [PayloadWithXmlNamespaceAndPrefixRestXmlSerializer()]; + serializers = [PayloadWithXmlNamespaceAndPrefixRestXmlSerializer()]; String? get name; @override @@ -35,12 +36,9 @@ abstract class PayloadWithXmlNamespaceAndPrefix @override String toString() { - final helper = - newBuiltValueToStringHelper('PayloadWithXmlNamespaceAndPrefix') - ..add( - 'name', - name, - ); + final helper = newBuiltValueToStringHelper( + 'PayloadWithXmlNamespaceAndPrefix', + )..add('name', name); return helper.toString(); } } @@ -48,21 +46,18 @@ abstract class PayloadWithXmlNamespaceAndPrefix class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer extends _i2.StructuredSmithySerializer { const PayloadWithXmlNamespaceAndPrefixRestXmlSerializer() - : super('PayloadWithXmlNamespaceAndPrefix'); + : super('PayloadWithXmlNamespaceAndPrefix'); @override Iterable get types => const [ - PayloadWithXmlNamespaceAndPrefix, - _$PayloadWithXmlNamespaceAndPrefix, - ]; + PayloadWithXmlNamespaceAndPrefix, + _$PayloadWithXmlNamespaceAndPrefix, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespaceAndPrefix deserialize( @@ -81,10 +76,12 @@ class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -100,20 +97,16 @@ class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer final result$ = [ const _i2.XmlElementName( 'PayloadWithXmlNamespaceAndPrefix', - _i2.XmlNamespace( - 'http://foo.com', - 'baz', - ), - ) + _i2.XmlNamespace('http://foo.com', 'baz'), + ), ]; final PayloadWithXmlNamespaceAndPrefix(:name) = object; if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart index 5b712cf773..356a0d1aaf 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart @@ -11,16 +11,17 @@ class _$PayloadWithXmlNamespaceAndPrefix @override final String? name; - factory _$PayloadWithXmlNamespaceAndPrefix( - [void Function(PayloadWithXmlNamespaceAndPrefixBuilder)? updates]) => + factory _$PayloadWithXmlNamespaceAndPrefix([ + void Function(PayloadWithXmlNamespaceAndPrefixBuilder)? updates, + ]) => (new PayloadWithXmlNamespaceAndPrefixBuilder()..update(updates))._build(); _$PayloadWithXmlNamespaceAndPrefix._({this.name}) : super._(); @override PayloadWithXmlNamespaceAndPrefix rebuild( - void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PayloadWithXmlNamespaceAndPrefixBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$PayloadWithXmlNamespaceAndPrefix class PayloadWithXmlNamespaceAndPrefixBuilder implements - Builder { + Builder< + PayloadWithXmlNamespaceAndPrefix, + PayloadWithXmlNamespaceAndPrefixBuilder + > { _$PayloadWithXmlNamespaceAndPrefix? _$v; String? _name; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart index a3fd64b6ec..ca22349dc0 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,19 +18,13 @@ abstract class PutWithContentEncodingInput implements Built, _i1.HasPayload { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -38,16 +32,15 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - PutWithContentEncodingInput.build((b) { - b.data = payload.data; - if (request.headers['Content-Encoding'] != null) { - b.encoding = request.headers['Content-Encoding']!; - } - }); + }) => PutWithContentEncodingInput.build((b) { + b.data = payload.data; + if (request.headers['Content-Encoding'] != null) { + b.encoding = request.headers['Content-Encoding']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputRestXmlSerializer()]; + serializers = [PutWithContentEncodingInputRestXmlSerializer()]; String? get encoding; String? get data; @@ -58,36 +51,29 @@ abstract class PutWithContentEncodingInput }); @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @_i3.internal abstract class PutWithContentEncodingInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder) updates]) = - _$PutWithContentEncodingInputPayload; + Built< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { + factory PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ]) = _$PutWithContentEncodingInputPayload; const PutWithContentEncodingInputPayload._(); @@ -97,12 +83,9 @@ abstract class PutWithContentEncodingInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('PutWithContentEncodingInputPayload') - ..add( - 'data', - data, - ); + final helper = newBuiltValueToStringHelper( + 'PutWithContentEncodingInputPayload', + )..add('data', data); return helper.toString(); } } @@ -110,23 +93,20 @@ abstract class PutWithContentEncodingInputPayload class PutWithContentEncodingInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputRestXmlSerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - PutWithContentEncodingInputPayload, - _$PutWithContentEncodingInputPayload, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + PutWithContentEncodingInputPayload, + _$PutWithContentEncodingInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PutWithContentEncodingInputPayload deserialize( @@ -145,10 +125,12 @@ class PutWithContentEncodingInputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -162,16 +144,15 @@ class PutWithContentEncodingInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('PutWithContentEncodingInput') + const _i1.XmlElementName('PutWithContentEncodingInput'), ]; final PutWithContentEncodingInputPayload(:data) = object; if (data != null) { result$ ..add(const _i1.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart index 4259e06363..c303950602 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; @@ -98,9 +101,9 @@ class _$PutWithContentEncodingInputPayload @override final String? data; - factory _$PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder)? - updates]) => + factory _$PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ]) => (new PutWithContentEncodingInputPayloadBuilder()..update(updates)) ._build(); @@ -108,8 +111,8 @@ class _$PutWithContentEncodingInputPayload @override PutWithContentEncodingInputPayload rebuild( - void Function(PutWithContentEncodingInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputPayloadBuilder toBuilder() => @@ -132,8 +135,10 @@ class _$PutWithContentEncodingInputPayload class PutWithContentEncodingInputPayloadBuilder implements - Builder { + Builder< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { _$PutWithContentEncodingInputPayload? _$v; String? _data; @@ -159,7 +164,8 @@ class PutWithContentEncodingInputPayloadBuilder @override void update( - void Function(PutWithContentEncodingInputPayloadBuilder)? updates) { + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart index 3f287e6cf8..fa49d3d5d3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -34,22 +36,23 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryIdempotencyTokenAutoFillInput.build((b) { - if (request.queryParameters['token'] != null) { - b.token = request.queryParameters['token']!; - } - }); + }) => QueryIdempotencyTokenAutoFillInput.build((b) { + if (request.queryParameters['token'] != null) { + b.token = request.queryParameters['token']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [QueryIdempotencyTokenAutoFillInputRestXmlSerializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -62,27 +65,25 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @_i3.internal abstract class QueryIdempotencyTokenAutoFillInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates]) = _$QueryIdempotencyTokenAutoFillInputPayload; + factory QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInputPayload; const QueryIdempotencyTokenAutoFillInputPayload._(); @@ -92,31 +93,32 @@ abstract class QueryIdempotencyTokenAutoFillInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'QueryIdempotencyTokenAutoFillInputPayload'); + 'QueryIdempotencyTokenAutoFillInputPayload', + ); return helper.toString(); } } -class QueryIdempotencyTokenAutoFillInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class QueryIdempotencyTokenAutoFillInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + QueryIdempotencyTokenAutoFillInputPayload + > { const QueryIdempotencyTokenAutoFillInputRestXmlSerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInputPayload, - _$QueryIdempotencyTokenAutoFillInputPayload, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputPayload, + _$QueryIdempotencyTokenAutoFillInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryIdempotencyTokenAutoFillInputPayload deserialize( @@ -134,7 +136,7 @@ class QueryIdempotencyTokenAutoFillInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('QueryIdempotencyTokenAutoFillInput') + const _i1.XmlElementName('QueryIdempotencyTokenAutoFillInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart index 77f1132aa1..e587f2ad82 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,9 @@ class QueryIdempotencyTokenAutoFillInputBuilder class _$QueryIdempotencyTokenAutoFillInputPayload extends QueryIdempotencyTokenAutoFillInputPayload { - factory _$QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputPayloadBuilder()..update(updates)) ._build(); @@ -101,9 +104,8 @@ class _$QueryIdempotencyTokenAutoFillInputPayload @override QueryIdempotencyTokenAutoFillInputPayload rebuild( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputPayloadBuilder toBuilder() => @@ -123,8 +125,10 @@ class _$QueryIdempotencyTokenAutoFillInputPayload class QueryIdempotencyTokenAutoFillInputPayloadBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + > { _$QueryIdempotencyTokenAutoFillInputPayload? _$v; QueryIdempotencyTokenAutoFillInputPayloadBuilder(); @@ -137,8 +141,8 @@ class QueryIdempotencyTokenAutoFillInputPayloadBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates) { + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart index 64b3ba280c..909dc1f6a5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.query_params_as_string_list_map_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class QueryParamsAsStringListMapInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryParamsAsStringListMapInput({ @@ -31,9 +33,9 @@ abstract class QueryParamsAsStringListMapInput ); } - factory QueryParamsAsStringListMapInput.build( - [void Function(QueryParamsAsStringListMapInputBuilder) updates]) = - _$QueryParamsAsStringListMapInput; + factory QueryParamsAsStringListMapInput.build([ + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ]) = _$QueryParamsAsStringListMapInput; const QueryParamsAsStringListMapInput._(); @@ -41,16 +43,16 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryParamsAsStringListMapInput.build((b) { - if (request.queryParameters['corge'] != null) { - b.qux = request.queryParameters['corge']!; - } - }); + }) => QueryParamsAsStringListMapInput.build((b) { + if (request.queryParameters['corge'] != null) { + b.qux = request.queryParameters['corge']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryParamsAsStringListMapInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [QueryParamsAsStringListMapInputRestXmlSerializer()]; String? get qux; _i3.BuiltListMultimap? get foo; @@ -59,38 +61,30 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload(); @override - List get props => [ - qux, - foo, - ]; + List get props => [qux, foo]; @override String toString() { final helper = newBuiltValueToStringHelper('QueryParamsAsStringListMapInput') - ..add( - 'qux', - qux, - ) - ..add( - 'foo', - foo, - ); + ..add('qux', qux) + ..add('foo', foo); return helper.toString(); } } @_i4.internal abstract class QueryParamsAsStringListMapInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates]) = _$QueryParamsAsStringListMapInputPayload; + factory QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ]) = _$QueryParamsAsStringListMapInputPayload; const QueryParamsAsStringListMapInputPayload._(); @@ -99,32 +93,31 @@ abstract class QueryParamsAsStringListMapInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryParamsAsStringListMapInputPayload'); + final helper = newBuiltValueToStringHelper( + 'QueryParamsAsStringListMapInputPayload', + ); return helper.toString(); } } -class QueryParamsAsStringListMapInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class QueryParamsAsStringListMapInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestXmlSerializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [ - QueryParamsAsStringListMapInput, - _$QueryParamsAsStringListMapInput, - QueryParamsAsStringListMapInputPayload, - _$QueryParamsAsStringListMapInputPayload, - ]; + QueryParamsAsStringListMapInput, + _$QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputPayload, + _$QueryParamsAsStringListMapInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryParamsAsStringListMapInputPayload deserialize( @@ -142,7 +135,7 @@ class QueryParamsAsStringListMapInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('QueryParamsAsStringListMapInput') + const _i1.XmlElementName('QueryParamsAsStringListMapInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart index eb0a5eeece..5410fceab0 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart @@ -13,16 +13,17 @@ class _$QueryParamsAsStringListMapInput @override final _i3.BuiltListMultimap? foo; - factory _$QueryParamsAsStringListMapInput( - [void Function(QueryParamsAsStringListMapInputBuilder)? updates]) => + factory _$QueryParamsAsStringListMapInput([ + void Function(QueryParamsAsStringListMapInputBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputBuilder()..update(updates))._build(); _$QueryParamsAsStringListMapInput._({this.qux, this.foo}) : super._(); @override QueryParamsAsStringListMapInput rebuild( - void Function(QueryParamsAsStringListMapInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputBuilder toBuilder() => @@ -48,8 +49,10 @@ class _$QueryParamsAsStringListMapInput class QueryParamsAsStringListMapInputBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + > { _$QueryParamsAsStringListMapInput? _$v; String? _qux; @@ -90,7 +93,8 @@ class QueryParamsAsStringListMapInputBuilder _$QueryParamsAsStringListMapInput _build() { _$QueryParamsAsStringListMapInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryParamsAsStringListMapInput._(qux: qux, foo: _foo?.build()); } catch (_) { late String _$failedField; @@ -99,7 +103,10 @@ class QueryParamsAsStringListMapInputBuilder _foo?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryParamsAsStringListMapInput', _$failedField, e.toString()); + r'QueryParamsAsStringListMapInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -110,9 +117,9 @@ class QueryParamsAsStringListMapInputBuilder class _$QueryParamsAsStringListMapInputPayload extends QueryParamsAsStringListMapInputPayload { - factory _$QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder)? - updates]) => + factory _$QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputPayloadBuilder()..update(updates)) ._build(); @@ -120,9 +127,8 @@ class _$QueryParamsAsStringListMapInputPayload @override QueryParamsAsStringListMapInputPayload rebuild( - void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputPayloadBuilder toBuilder() => @@ -142,8 +148,10 @@ class _$QueryParamsAsStringListMapInputPayload class QueryParamsAsStringListMapInputPayloadBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + > { _$QueryParamsAsStringListMapInputPayload? _$v; QueryParamsAsStringListMapInputPayloadBuilder(); @@ -156,7 +164,8 @@ class QueryParamsAsStringListMapInputPayloadBuilder @override void update( - void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates) { + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart index bc08286f2f..e0dda889ce 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.query_precedence_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,19 +20,16 @@ abstract class QueryPrecedenceInput Built, _i1.EmptyPayload, _i1.HasPayload { - factory QueryPrecedenceInput({ - String? foo, - Map? baz, - }) { + factory QueryPrecedenceInput({String? foo, Map? baz}) { return _$QueryPrecedenceInput._( foo: foo, baz: baz == null ? null : _i3.BuiltMap(baz), ); } - factory QueryPrecedenceInput.build( - [void Function(QueryPrecedenceInputBuilder) updates]) = - _$QueryPrecedenceInput; + factory QueryPrecedenceInput.build([ + void Function(QueryPrecedenceInputBuilder) updates, + ]) = _$QueryPrecedenceInput; const QueryPrecedenceInput._(); @@ -40,15 +37,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryPrecedenceInput.build((b) { - if (request.queryParameters['bar'] != null) { - b.foo = request.queryParameters['bar']!; - } - }); + }) => QueryPrecedenceInput.build((b) { + if (request.queryParameters['bar'] != null) { + b.foo = request.queryParameters['bar']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [QueryPrecedenceInputRestXmlSerializer()]; + serializers = [QueryPrecedenceInputRestXmlSerializer()]; String? get foo; _i3.BuiltMap? get baz; @@ -56,22 +52,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload getPayload() => QueryPrecedenceInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryPrecedenceInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + final helper = + newBuiltValueToStringHelper('QueryPrecedenceInput') + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @@ -82,9 +70,9 @@ abstract class QueryPrecedenceInputPayload implements Built, _i1.EmptyPayload { - factory QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder) updates]) = - _$QueryPrecedenceInputPayload; + factory QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ]) = _$QueryPrecedenceInputPayload; const QueryPrecedenceInputPayload._(); @@ -104,19 +92,16 @@ class QueryPrecedenceInputRestXmlSerializer @override Iterable get types => const [ - QueryPrecedenceInput, - _$QueryPrecedenceInput, - QueryPrecedenceInputPayload, - _$QueryPrecedenceInputPayload, - ]; + QueryPrecedenceInput, + _$QueryPrecedenceInput, + QueryPrecedenceInputPayload, + _$QueryPrecedenceInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryPrecedenceInputPayload deserialize( diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart index 66a51ce432..f8c1ab2779 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart @@ -12,16 +12,16 @@ class _$QueryPrecedenceInput extends QueryPrecedenceInput { @override final _i3.BuiltMap? baz; - factory _$QueryPrecedenceInput( - [void Function(QueryPrecedenceInputBuilder)? updates]) => - (new QueryPrecedenceInputBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInput([ + void Function(QueryPrecedenceInputBuilder)? updates, + ]) => (new QueryPrecedenceInputBuilder()..update(updates))._build(); _$QueryPrecedenceInput._({this.foo, this.baz}) : super._(); @override QueryPrecedenceInput rebuild( - void Function(QueryPrecedenceInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputBuilder toBuilder() => @@ -96,7 +96,10 @@ class QueryPrecedenceInputBuilder _baz?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryPrecedenceInput', _$failedField, e.toString()); + r'QueryPrecedenceInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -106,16 +109,16 @@ class QueryPrecedenceInputBuilder } class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { - factory _$QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder)? updates]) => - (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder)? updates, + ]) => (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); _$QueryPrecedenceInputPayload._() : super._(); @override QueryPrecedenceInputPayload rebuild( - void Function(QueryPrecedenceInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputPayloadBuilder toBuilder() => @@ -135,8 +138,10 @@ class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { class QueryPrecedenceInputPayloadBuilder implements - Builder { + Builder< + QueryPrecedenceInputPayload, + QueryPrecedenceInputPayloadBuilder + > { _$QueryPrecedenceInputPayload? _$v; QueryPrecedenceInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart index 19000d655a..ce5e1b0483 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.recursive_shapes_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,15 @@ abstract class RecursiveShapesInputOutput _i2.AWSEquatable implements Built { - factory RecursiveShapesInputOutput( - {RecursiveShapesInputOutputNested1? nested}) { + factory RecursiveShapesInputOutput({ + RecursiveShapesInputOutputNested1? nested, + }) { return _$RecursiveShapesInputOutput._(nested: nested); } - factory RecursiveShapesInputOutput.build( - [void Function(RecursiveShapesInputOutputBuilder) updates]) = - _$RecursiveShapesInputOutput; + factory RecursiveShapesInputOutput.build([ + void Function(RecursiveShapesInputOutputBuilder) updates, + ]) = _$RecursiveShapesInputOutput; const RecursiveShapesInputOutput._(); @@ -32,18 +33,16 @@ abstract class RecursiveShapesInputOutput RecursiveShapesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [RecursiveShapesInputOutput] from a [payload] and [response]. factory RecursiveShapesInputOutput.fromResponse( RecursiveShapesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [RecursiveShapesInputOutputRestXmlSerializer()]; + serializers = [RecursiveShapesInputOutputRestXmlSerializer()]; RecursiveShapesInputOutputNested1? get nested; @override @@ -55,10 +54,7 @@ abstract class RecursiveShapesInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -66,21 +62,18 @@ abstract class RecursiveShapesInputOutput class RecursiveShapesInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const RecursiveShapesInputOutputRestXmlSerializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [ - RecursiveShapesInputOutput, - _$RecursiveShapesInputOutput, - ]; + RecursiveShapesInputOutput, + _$RecursiveShapesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -99,10 +92,15 @@ class RecursiveShapesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -116,16 +114,18 @@ class RecursiveShapesInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('RecursiveShapesInputOutput') + const _i1.XmlElementName('RecursiveShapesInputOutput'), ]; final RecursiveShapesInputOutput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart index fc89700ff1..b737463f66 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveShapesInputOutput extends RecursiveShapesInputOutput { @override final RecursiveShapesInputOutputNested1? nested; - factory _$RecursiveShapesInputOutput( - [void Function(RecursiveShapesInputOutputBuilder)? updates]) => - (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); + factory _$RecursiveShapesInputOutput([ + void Function(RecursiveShapesInputOutputBuilder)? updates, + ]) => (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); _$RecursiveShapesInputOutput._({this.nested}) : super._(); @override RecursiveShapesInputOutput rebuild( - void Function(RecursiveShapesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveShapesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutput', _$failedField, e.toString()); + r'RecursiveShapesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart index 2e27d171b2..93d96b1b11 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.recursive_shapes_input_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested1.g.dart'; abstract class RecursiveShapesInputOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { factory RecursiveShapesInputOutputNested1({ String? foo, RecursiveShapesInputOutputNested2? nested, }) { - return _$RecursiveShapesInputOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveShapesInputOutputNested1._(foo: foo, nested: nested); } - factory RecursiveShapesInputOutputNested1.build( - [void Function(RecursiveShapesInputOutputNested1Builder) updates]) = - _$RecursiveShapesInputOutputNested1; + factory RecursiveShapesInputOutputNested1.build([ + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ]) = _$RecursiveShapesInputOutputNested1; const RecursiveShapesInputOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested1RestXmlSerializer()]; + serializers = [RecursiveShapesInputOutputNested1RestXmlSerializer()]; String? get foo; RecursiveShapesInputOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1RestXmlSerializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestXmlSerializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested1, - _$RecursiveShapesInputOutputNested1, - ]; + RecursiveShapesInputOutputNested1, + _$RecursiveShapesInputOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -96,15 +82,22 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -118,24 +111,25 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('RecursiveShapesInputOutputNested1') + const _i2.XmlElementName('RecursiveShapesInputOutputNested1'), ]; final RecursiveShapesInputOutputNested1(:foo, :nested) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart index 658695aa86..a74cf81627 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart @@ -13,8 +13,9 @@ class _$RecursiveShapesInputOutputNested1 @override final RecursiveShapesInputOutputNested2? nested; - factory _$RecursiveShapesInputOutputNested1( - [void Function(RecursiveShapesInputOutputNested1Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested1([ + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested1Builder()..update(updates)) ._build(); @@ -22,8 +23,8 @@ class _$RecursiveShapesInputOutputNested1 @override RecursiveShapesInputOutputNested1 rebuild( - void Function(RecursiveShapesInputOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested1Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { _$RecursiveShapesInputOutputNested1? _$v; String? _foo; @@ -83,7 +86,8 @@ class RecursiveShapesInputOutputNested1Builder @override void update( - void Function(RecursiveShapesInputOutputNested1Builder)? updates) { + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ) { if (updates != null) updates(this); } @@ -93,9 +97,12 @@ class RecursiveShapesInputOutputNested1Builder _$RecursiveShapesInputOutputNested1 _build() { _$RecursiveShapesInputOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +110,10 @@ class RecursiveShapesInputOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested1', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart index ef56c44203..8e204a2f70 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.recursive_shapes_input_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested2.g.dart'; abstract class RecursiveShapesInputOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { factory RecursiveShapesInputOutputNested2({ String? bar, RecursiveShapesInputOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveShapesInputOutputNested2 ); } - factory RecursiveShapesInputOutputNested2.build( - [void Function(RecursiveShapesInputOutputNested2Builder) updates]) = - _$RecursiveShapesInputOutputNested2; + factory RecursiveShapesInputOutputNested2.build([ + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ]) = _$RecursiveShapesInputOutputNested2; const RecursiveShapesInputOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested2RestXmlSerializer()]; + serializers = [RecursiveShapesInputOutputNested2RestXmlSerializer()]; String? get bar; RecursiveShapesInputOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2RestXmlSerializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestXmlSerializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested2, - _$RecursiveShapesInputOutputNested2, - ]; + RecursiveShapesInputOutputNested2, + _$RecursiveShapesInputOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -96,15 +85,22 @@ class RecursiveShapesInputOutputNested2RestXmlSerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -118,24 +114,25 @@ class RecursiveShapesInputOutputNested2RestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('RecursiveShapesInputOutputNested2') + const _i2.XmlElementName('RecursiveShapesInputOutputNested2'), ]; final RecursiveShapesInputOutputNested2(:bar, :recursiveMember) = object; if (bar != null) { result$ ..add(const _i2.XmlElementName('bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add(const _i2.XmlElementName('recursiveMember')) - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart index 5d6e059eed..335c218759 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart @@ -13,18 +13,19 @@ class _$RecursiveShapesInputOutputNested2 @override final RecursiveShapesInputOutputNested1? recursiveMember; - factory _$RecursiveShapesInputOutputNested2( - [void Function(RecursiveShapesInputOutputNested2Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested2([ + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested2Builder()..update(updates)) ._build(); _$RecursiveShapesInputOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveShapesInputOutputNested2 rebuild( - void Function(RecursiveShapesInputOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested2Builder toBuilder() => @@ -50,8 +51,10 @@ class _$RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { _$RecursiveShapesInputOutputNested2? _$v; String? _bar; @@ -63,8 +66,8 @@ class RecursiveShapesInputOutputNested2Builder _$this._recursiveMember ??= new RecursiveShapesInputOutputNested1Builder(); set recursiveMember( - RecursiveShapesInputOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveShapesInputOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveShapesInputOutputNested2Builder(); @@ -86,7 +89,8 @@ class RecursiveShapesInputOutputNested2Builder @override void update( - void Function(RecursiveShapesInputOutputNested2Builder)? updates) { + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ) { if (updates != null) updates(this); } @@ -96,9 +100,12 @@ class RecursiveShapesInputOutputNested2Builder _$RecursiveShapesInputOutputNested2 _build() { _$RecursiveShapesInputOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -106,7 +113,10 @@ class RecursiveShapesInputOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested2', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_config.dart index c619ccffd3..089ab797ef 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestXmlSerializer() + RetryConfigRestXmlSerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestXmlSerializer const RetryConfigRestXmlSerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestXmlSerializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestXmlSerializer if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart index 4d604f2779..ace1bfd07c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart index 2520cab3e6..5e2decc530 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.dart index 3aefd485d1..dd837063c3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestXmlSerializer() + S3ConfigRestXmlSerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestXmlSerializer const S3ConfigRestXmlSerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestXmlSerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestXmlSerializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart index 77494cbeaf..b22dc7807d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestXmlSerializer() + ScopedConfigRestXmlSerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestXmlSerializer const ScopedConfigRestXmlSerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigRestXmlSerializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -190,61 +175,65 @@ class ScopedConfigRestXmlSerializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart index 351686d429..247198cb3e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + >, _i1.HasPayload { factory SimpleScalarPropertiesInputOutput({ String? foo, @@ -46,9 +48,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -56,45 +58,44 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; String? get foo; String? get stringValue; @@ -122,76 +123,47 @@ abstract class SimpleScalarPropertiesInputOutput @override List get props => [ - foo, - stringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + foo, + stringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('foo', foo) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @_i4.internal abstract class SimpleScalarPropertiesInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates]) = _$SimpleScalarPropertiesInputOutputPayload; + Built< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { + factory SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutputPayload; const SimpleScalarPropertiesInputOutputPayload._(); @@ -206,81 +178,54 @@ abstract class SimpleScalarPropertiesInputOutputPayload bool? get trueBooleanValue; @override List get props => [ - byteValue, - doubleValue, - falseBooleanValue, - floatValue, - integerValue, - longValue, - shortValue, - stringValue, - trueBooleanValue, - ]; + byteValue, + doubleValue, + falseBooleanValue, + floatValue, + integerValue, + longValue, + shortValue, + stringValue, + trueBooleanValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutputPayload') - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'doubleValue', - doubleValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ); + ..add('byteValue', byteValue) + ..add('doubleValue', doubleValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('floatValue', floatValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('shortValue', shortValue) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue); return helper.toString(); } } -class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class SimpleScalarPropertiesInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + SimpleScalarPropertiesInputOutputPayload + > { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - _$SimpleScalarPropertiesInputOutputPayload, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + _$SimpleScalarPropertiesInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutputPayload deserialize( @@ -299,50 +244,68 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 } switch (key) { case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -356,7 +319,7 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('SimpleScalarPropertiesInputOutput') + const _i1.XmlElementName('SimpleScalarPropertiesInputOutput'), ]; final SimpleScalarPropertiesInputOutputPayload( :byteValue, @@ -367,79 +330,91 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 :longValue, :shortValue, :stringValue, - :trueBooleanValue + :trueBooleanValue, ) = object; if (byteValue != null) { result$ ..add(const _i1.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add(const _i1.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i1.XmlElementName('falseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add(const _i1.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i1.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (shortValue != null) { result$ ..add(const _i1.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add(const _i1.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i1.XmlElementName('trueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart index e7b332a395..760a6cb211 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart @@ -29,28 +29,29 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutput._( - {this.foo, - this.stringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarPropertiesInputOutput._({ + this.foo, + this.stringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -92,8 +93,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; String? _foo; @@ -166,7 +169,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -174,18 +178,20 @@ class SimpleScalarPropertiesInputOutputBuilder SimpleScalarPropertiesInputOutput build() => _build(); _$SimpleScalarPropertiesInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - foo: foo, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + foo: foo, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } @@ -212,29 +218,28 @@ class _$SimpleScalarPropertiesInputOutputPayload @override final bool? trueBooleanValue; - factory _$SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? - updates]) => + factory _$SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputPayloadBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutputPayload._( - {this.byteValue, - this.doubleValue, - this.falseBooleanValue, - this.floatValue, - this.integerValue, - this.longValue, - this.shortValue, - this.stringValue, - this.trueBooleanValue}) - : super._(); + _$SimpleScalarPropertiesInputOutputPayload._({ + this.byteValue, + this.doubleValue, + this.falseBooleanValue, + this.floatValue, + this.integerValue, + this.longValue, + this.shortValue, + this.stringValue, + this.trueBooleanValue, + }) : super._(); @override SimpleScalarPropertiesInputOutputPayload rebuild( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputPayloadBuilder toBuilder() => @@ -274,8 +279,10 @@ class _$SimpleScalarPropertiesInputOutputPayload class SimpleScalarPropertiesInputOutputPayloadBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { _$SimpleScalarPropertiesInputOutputPayload? _$v; int? _byteValue; @@ -343,7 +350,8 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -351,17 +359,19 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder SimpleScalarPropertiesInputOutputPayload build() => _build(); _$SimpleScalarPropertiesInputOutputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutputPayload._( - byteValue: byteValue, - doubleValue: doubleValue, - falseBooleanValue: falseBooleanValue, - floatValue: floatValue, - integerValue: integerValue, - longValue: longValue, - shortValue: shortValue, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue); + byteValue: byteValue, + doubleValue: doubleValue, + falseBooleanValue: falseBooleanValue, + floatValue: floatValue, + integerValue: integerValue, + longValue: longValue, + shortValue: shortValue, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart index e58443dd4c..32107add6a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberRestXmlSerializer() + StructureListMemberRestXmlSerializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberRestXmlSerializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override StructureListMember deserialize( @@ -91,15 +74,19 @@ class StructureListMemberRestXmlSerializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -117,18 +104,12 @@ class StructureListMemberRestXmlSerializer if (a != null) { result$ ..add(const _i2.XmlElementName('value')) - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add(const _i2.XmlElementName('other')) - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart index 8ab3780016..458fb1da27 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.timestamp_format_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,9 +39,9 @@ abstract class TimestampFormatHeadersIo ); } - factory TimestampFormatHeadersIo.build( - [void Function(TimestampFormatHeadersIoBuilder) updates]) = - _$TimestampFormatHeadersIo; + factory TimestampFormatHeadersIo.build([ + void Function(TimestampFormatHeadersIoBuilder) updates, + ]) = _$TimestampFormatHeadersIo; const TimestampFormatHeadersIo._(); @@ -49,104 +49,116 @@ abstract class TimestampFormatHeadersIo TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TimestampFormatHeadersIo.build((b) { - if (request.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => TimestampFormatHeadersIo.build((b) { + if (request.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( request.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( request.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (request.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( request.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (request.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( request.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( request.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); /// Constructs a [TimestampFormatHeadersIo] from a [payload] and [response]. factory TimestampFormatHeadersIo.fromResponse( TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.build((b) { - if (response.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + ) => TimestampFormatHeadersIo.build((b) { + if (response.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( response.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( response.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (response.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (response.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( response.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (response.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( response.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( response.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [TimestampFormatHeadersIoRestXmlSerializer()]; + serializers = [TimestampFormatHeadersIoRestXmlSerializer()]; DateTime? get memberEpochSeconds; DateTime? get memberHttpDate; @@ -161,61 +173,42 @@ abstract class TimestampFormatHeadersIo @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('TimestampFormatHeadersIo') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper('TimestampFormatHeadersIo') + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class TimestampFormatHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder) updates]) = - _$TimestampFormatHeadersIoPayload; + factory TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ]) = _$TimestampFormatHeadersIoPayload; const TimestampFormatHeadersIoPayload._(); @@ -224,8 +217,9 @@ abstract class TimestampFormatHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TimestampFormatHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'TimestampFormatHeadersIoPayload', + ); return helper.toString(); } } @@ -233,23 +227,20 @@ abstract class TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoRestXmlSerializer extends _i1.StructuredSmithySerializer { const TimestampFormatHeadersIoRestXmlSerializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [ - TimestampFormatHeadersIo, - _$TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - _$TimestampFormatHeadersIoPayload, - ]; + TimestampFormatHeadersIo, + _$TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + _$TimestampFormatHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override TimestampFormatHeadersIoPayload deserialize( @@ -267,7 +258,7 @@ class TimestampFormatHeadersIoRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('TimestampFormatHeadersIo') + const _i1.XmlElementName('TimestampFormatHeadersIo'), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart index f1498c3462..1e275a6d7c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart @@ -22,24 +22,24 @@ class _$TimestampFormatHeadersIo extends TimestampFormatHeadersIo { @override final DateTime? targetDateTime; - factory _$TimestampFormatHeadersIo( - [void Function(TimestampFormatHeadersIoBuilder)? updates]) => - (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); + factory _$TimestampFormatHeadersIo([ + void Function(TimestampFormatHeadersIoBuilder)? updates, + ]) => (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); - _$TimestampFormatHeadersIo._( - {this.memberEpochSeconds, - this.memberHttpDate, - this.memberDateTime, - this.defaultFormat, - this.targetEpochSeconds, - this.targetHttpDate, - this.targetDateTime}) - : super._(); + _$TimestampFormatHeadersIo._({ + this.memberEpochSeconds, + this.memberHttpDate, + this.memberDateTime, + this.defaultFormat, + this.targetEpochSeconds, + this.targetHttpDate, + this.targetDateTime, + }) : super._(); @override TimestampFormatHeadersIo rebuild( - void Function(TimestampFormatHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoBuilder toBuilder() => @@ -145,15 +145,17 @@ class TimestampFormatHeadersIoBuilder TimestampFormatHeadersIo build() => _build(); _$TimestampFormatHeadersIo _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TimestampFormatHeadersIo._( - memberEpochSeconds: memberEpochSeconds, - memberHttpDate: memberHttpDate, - memberDateTime: memberDateTime, - defaultFormat: defaultFormat, - targetEpochSeconds: targetEpochSeconds, - targetHttpDate: targetHttpDate, - targetDateTime: targetDateTime); + memberEpochSeconds: memberEpochSeconds, + memberHttpDate: memberHttpDate, + memberDateTime: memberDateTime, + defaultFormat: defaultFormat, + targetEpochSeconds: targetEpochSeconds, + targetHttpDate: targetHttpDate, + targetDateTime: targetDateTime, + ); replace(_$result); return _$result; } @@ -161,16 +163,17 @@ class TimestampFormatHeadersIoBuilder class _$TimestampFormatHeadersIoPayload extends TimestampFormatHeadersIoPayload { - factory _$TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder)? updates]) => + factory _$TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder)? updates, + ]) => (new TimestampFormatHeadersIoPayloadBuilder()..update(updates))._build(); _$TimestampFormatHeadersIoPayload._() : super._(); @override TimestampFormatHeadersIoPayload rebuild( - void Function(TimestampFormatHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoPayloadBuilder toBuilder() => @@ -190,8 +193,10 @@ class _$TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoPayloadBuilder implements - Builder { + Builder< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + > { _$TimestampFormatHeadersIoPayload? _$v; TimestampFormatHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart index 2954093a2c..04b40ed754 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_attributes_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,19 +17,13 @@ abstract class XmlAttributesInputOutput _i2.AWSEquatable implements Built { - factory XmlAttributesInputOutput({ - String? foo, - String? attr, - }) { - return _$XmlAttributesInputOutput._( - foo: foo, - attr: attr, - ); + factory XmlAttributesInputOutput({String? foo, String? attr}) { + return _$XmlAttributesInputOutput._(foo: foo, attr: attr); } - factory XmlAttributesInputOutput.build( - [void Function(XmlAttributesInputOutputBuilder) updates]) = - _$XmlAttributesInputOutput; + factory XmlAttributesInputOutput.build([ + void Function(XmlAttributesInputOutputBuilder) updates, + ]) = _$XmlAttributesInputOutput; const XmlAttributesInputOutput._(); @@ -37,18 +31,16 @@ abstract class XmlAttributesInputOutput XmlAttributesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlAttributesInputOutput] from a [payload] and [response]. factory XmlAttributesInputOutput.fromResponse( XmlAttributesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlAttributesInputOutputRestXmlSerializer()]; + serializers = [XmlAttributesInputOutputRestXmlSerializer()]; String? get foo; String? get attr; @@ -56,22 +48,14 @@ abstract class XmlAttributesInputOutput XmlAttributesInputOutput getPayload() => this; @override - List get props => [ - foo, - attr, - ]; + List get props => [foo, attr]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlAttributesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'attr', - attr, - ); + final helper = + newBuiltValueToStringHelper('XmlAttributesInputOutput') + ..add('foo', foo) + ..add('attr', attr); return helper.toString(); } } @@ -79,21 +63,18 @@ abstract class XmlAttributesInputOutput class XmlAttributesInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlAttributesInputOutputRestXmlSerializer() - : super('XmlAttributesInputOutput'); + : super('XmlAttributesInputOutput'); @override Iterable get types => const [ - XmlAttributesInputOutput, - _$XmlAttributesInputOutput, - ]; + XmlAttributesInputOutput, + _$XmlAttributesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -112,15 +93,19 @@ class XmlAttributesInputOutputRestXmlSerializer } switch (key) { case 'test': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,25 +119,24 @@ class XmlAttributesInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlAttributesInputOutput') + const _i1.XmlElementName('XmlAttributesInputOutput'), ]; final XmlAttributesInputOutput(:attr, :foo) = object; if (attr != null) { - result$.add(_i3.XmlAttribute( - _i3.XmlName('test'), - (serializers.serialize( - attr, - specifiedType: const FullType(String), - ) as String), - )); + result$.add( + _i3.XmlAttribute( + _i3.XmlName('test'), + (serializers.serialize(attr, specifiedType: const FullType(String)) + as String), + ), + ); } if (foo != null) { result$ ..add(const _i1.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart index f60ad4b868..fdada1f258 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart @@ -12,16 +12,16 @@ class _$XmlAttributesInputOutput extends XmlAttributesInputOutput { @override final String? attr; - factory _$XmlAttributesInputOutput( - [void Function(XmlAttributesInputOutputBuilder)? updates]) => - (new XmlAttributesInputOutputBuilder()..update(updates))._build(); + factory _$XmlAttributesInputOutput([ + void Function(XmlAttributesInputOutputBuilder)? updates, + ]) => (new XmlAttributesInputOutputBuilder()..update(updates))._build(); _$XmlAttributesInputOutput._({this.foo, this.attr}) : super._(); @override XmlAttributesInputOutput rebuild( - void Function(XmlAttributesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlAttributesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlAttributesInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart index 329f6704a0..b2043c9ddf 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_attributes_on_payload_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,17 +17,20 @@ abstract class XmlAttributesOnPayloadInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + XmlAttributesOnPayloadInputOutput, + XmlAttributesOnPayloadInputOutputBuilder + >, _i1.HasPayload { - factory XmlAttributesOnPayloadInputOutput( - {XmlAttributesInputOutput? payload}) { + factory XmlAttributesOnPayloadInputOutput({ + XmlAttributesInputOutput? payload, + }) { return _$XmlAttributesOnPayloadInputOutput._(payload: payload); } - factory XmlAttributesOnPayloadInputOutput.build( - [void Function(XmlAttributesOnPayloadInputOutputBuilder) updates]) = - _$XmlAttributesOnPayloadInputOutput; + factory XmlAttributesOnPayloadInputOutput.build([ + void Function(XmlAttributesOnPayloadInputOutputBuilder) updates, + ]) = _$XmlAttributesOnPayloadInputOutput; const XmlAttributesOnPayloadInputOutput._(); @@ -35,26 +38,24 @@ abstract class XmlAttributesOnPayloadInputOutput XmlAttributesInputOutput? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - XmlAttributesOnPayloadInputOutput.build((b) { - if (payload != null) { - b.payload.replace(payload); - } - }); + }) => XmlAttributesOnPayloadInputOutput.build((b) { + if (payload != null) { + b.payload.replace(payload); + } + }); /// Constructs a [XmlAttributesOnPayloadInputOutput] from a [payload] and [response]. factory XmlAttributesOnPayloadInputOutput.fromResponse( XmlAttributesInputOutput? payload, _i2.AWSBaseHttpResponse response, - ) => - XmlAttributesOnPayloadInputOutput.build((b) { - if (payload != null) { - b.payload.replace(payload); - } - }); + ) => XmlAttributesOnPayloadInputOutput.build((b) { + if (payload != null) { + b.payload.replace(payload); + } + }); static const List<_i1.SmithySerializer> - serializers = [XmlAttributesOnPayloadInputOutputRestXmlSerializer()]; + serializers = [XmlAttributesOnPayloadInputOutputRestXmlSerializer()]; XmlAttributesInputOutput? get payload; @override @@ -66,12 +67,9 @@ abstract class XmlAttributesOnPayloadInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('XmlAttributesOnPayloadInputOutput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'XmlAttributesOnPayloadInputOutput', + )..add('payload', payload); return helper.toString(); } } @@ -79,21 +77,18 @@ abstract class XmlAttributesOnPayloadInputOutput class XmlAttributesOnPayloadInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlAttributesOnPayloadInputOutputRestXmlSerializer() - : super('XmlAttributesOnPayloadInputOutput'); + : super('XmlAttributesOnPayloadInputOutput'); @override Iterable get types => const [ - XmlAttributesOnPayloadInputOutput, - _$XmlAttributesOnPayloadInputOutput, - ]; + XmlAttributesOnPayloadInputOutput, + _$XmlAttributesOnPayloadInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -112,15 +107,19 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'test': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,25 +133,24 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlAttributesInputOutput') + const _i1.XmlElementName('XmlAttributesInputOutput'), ]; final XmlAttributesInputOutput(:foo, :attr) = object; if (attr != null) { - result$.add(_i3.XmlAttribute( - _i3.XmlName('test'), - (serializers.serialize( - attr, - specifiedType: const FullType(String), - ) as String), - )); + result$.add( + _i3.XmlAttribute( + _i3.XmlName('test'), + (serializers.serialize(attr, specifiedType: const FullType(String)) + as String), + ), + ); } if (foo != null) { result$ ..add(const _i1.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart index 8a23a56cf8..334e2e3740 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart @@ -11,8 +11,9 @@ class _$XmlAttributesOnPayloadInputOutput @override final XmlAttributesInputOutput? payload; - factory _$XmlAttributesOnPayloadInputOutput( - [void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates]) => + factory _$XmlAttributesOnPayloadInputOutput([ + void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates, + ]) => (new XmlAttributesOnPayloadInputOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$XmlAttributesOnPayloadInputOutput @override XmlAttributesOnPayloadInputOutput rebuild( - void Function(XmlAttributesOnPayloadInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlAttributesOnPayloadInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlAttributesOnPayloadInputOutputBuilder toBuilder() => @@ -45,8 +46,10 @@ class _$XmlAttributesOnPayloadInputOutput class XmlAttributesOnPayloadInputOutputBuilder implements - Builder { + Builder< + XmlAttributesOnPayloadInputOutput, + XmlAttributesOnPayloadInputOutputBuilder + > { _$XmlAttributesOnPayloadInputOutput? _$v; XmlAttributesInputOutputBuilder? _payload; @@ -74,7 +77,8 @@ class XmlAttributesOnPayloadInputOutputBuilder @override void update( - void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates) { + void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,7 +88,8 @@ class XmlAttributesOnPayloadInputOutputBuilder _$XmlAttributesOnPayloadInputOutput _build() { _$XmlAttributesOnPayloadInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlAttributesOnPayloadInputOutput._(payload: _payload?.build()); } catch (_) { late String _$failedField; @@ -93,7 +98,10 @@ class XmlAttributesOnPayloadInputOutputBuilder _payload?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlAttributesOnPayloadInputOutput', _$failedField, e.toString()); + r'XmlAttributesOnPayloadInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart index 9c23cff5c1..60a9bb206c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_blobs_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class XmlBlobsInputOutput return _$XmlBlobsInputOutput._(data: data); } - factory XmlBlobsInputOutput.build( - [void Function(XmlBlobsInputOutputBuilder) updates]) = - _$XmlBlobsInputOutput; + factory XmlBlobsInputOutput.build([ + void Function(XmlBlobsInputOutputBuilder) updates, + ]) = _$XmlBlobsInputOutput; const XmlBlobsInputOutput._(); @@ -31,18 +31,16 @@ abstract class XmlBlobsInputOutput XmlBlobsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlBlobsInputOutput] from a [payload] and [response]. factory XmlBlobsInputOutput.fromResponse( XmlBlobsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlBlobsInputOutputRestXmlSerializer() + XmlBlobsInputOutputRestXmlSerializer(), ]; _i3.Uint8List? get data; @@ -55,10 +53,7 @@ abstract class XmlBlobsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlBlobsInputOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -69,17 +64,14 @@ class XmlBlobsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlBlobsInputOutput, - _$XmlBlobsInputOutput, - ]; + XmlBlobsInputOutput, + _$XmlBlobsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlBlobsInputOutput deserialize( @@ -98,10 +90,12 @@ class XmlBlobsInputOutputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } } @@ -119,10 +113,12 @@ class XmlBlobsInputOutputRestXmlSerializer if (data != null) { result$ ..add(const _i1.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart index fd7f4e4e2f..1722d8d8cb 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlBlobsInputOutput extends XmlBlobsInputOutput { @override final _i3.Uint8List? data; - factory _$XmlBlobsInputOutput( - [void Function(XmlBlobsInputOutputBuilder)? updates]) => - (new XmlBlobsInputOutputBuilder()..update(updates))._build(); + factory _$XmlBlobsInputOutput([ + void Function(XmlBlobsInputOutputBuilder)? updates, + ]) => (new XmlBlobsInputOutputBuilder()..update(updates))._build(); _$XmlBlobsInputOutput._({this.data}) : super._(); @override XmlBlobsInputOutput rebuild( - void Function(XmlBlobsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlBlobsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlBlobsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart index 95c4889f3a..adad6f6bc2 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_empty_strings_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class XmlEmptyStringsInputOutput return _$XmlEmptyStringsInputOutput._(emptyString: emptyString); } - factory XmlEmptyStringsInputOutput.build( - [void Function(XmlEmptyStringsInputOutputBuilder) updates]) = - _$XmlEmptyStringsInputOutput; + factory XmlEmptyStringsInputOutput.build([ + void Function(XmlEmptyStringsInputOutputBuilder) updates, + ]) = _$XmlEmptyStringsInputOutput; const XmlEmptyStringsInputOutput._(); @@ -30,18 +30,16 @@ abstract class XmlEmptyStringsInputOutput XmlEmptyStringsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlEmptyStringsInputOutput] from a [payload] and [response]. factory XmlEmptyStringsInputOutput.fromResponse( XmlEmptyStringsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlEmptyStringsInputOutputRestXmlSerializer()]; + serializers = [XmlEmptyStringsInputOutputRestXmlSerializer()]; String? get emptyString; @override @@ -53,10 +51,7 @@ abstract class XmlEmptyStringsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlEmptyStringsInputOutput') - ..add( - 'emptyString', - emptyString, - ); + ..add('emptyString', emptyString); return helper.toString(); } } @@ -64,21 +59,18 @@ abstract class XmlEmptyStringsInputOutput class XmlEmptyStringsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlEmptyStringsInputOutputRestXmlSerializer() - : super('XmlEmptyStringsInputOutput'); + : super('XmlEmptyStringsInputOutput'); @override Iterable get types => const [ - XmlEmptyStringsInputOutput, - _$XmlEmptyStringsInputOutput, - ]; + XmlEmptyStringsInputOutput, + _$XmlEmptyStringsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEmptyStringsInputOutput deserialize( @@ -97,10 +89,12 @@ class XmlEmptyStringsInputOutputRestXmlSerializer } switch (key) { case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -114,16 +108,18 @@ class XmlEmptyStringsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlEmptyStringsInputOutput') + const _i1.XmlElementName('XmlEmptyStringsInputOutput'), ]; final XmlEmptyStringsInputOutput(:emptyString) = object; if (emptyString != null) { result$ ..add(const _i1.XmlElementName('emptyString')) - ..add(serializers.serialize( - emptyString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + emptyString, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart index 1b8bfe7a8e..2a2299ac44 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlEmptyStringsInputOutput extends XmlEmptyStringsInputOutput { @override final String? emptyString; - factory _$XmlEmptyStringsInputOutput( - [void Function(XmlEmptyStringsInputOutputBuilder)? updates]) => - (new XmlEmptyStringsInputOutputBuilder()..update(updates))._build(); + factory _$XmlEmptyStringsInputOutput([ + void Function(XmlEmptyStringsInputOutputBuilder)? updates, + ]) => (new XmlEmptyStringsInputOutputBuilder()..update(updates))._build(); _$XmlEmptyStringsInputOutput._({this.emptyString}) : super._(); @override XmlEmptyStringsInputOutput rebuild( - void Function(XmlEmptyStringsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlEmptyStringsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlEmptyStringsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart index 15ea93e67e..5810e5258f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class XmlEnumsInputOutput ); } - factory XmlEnumsInputOutput.build( - [void Function(XmlEnumsInputOutputBuilder) updates]) = - _$XmlEnumsInputOutput; + factory XmlEnumsInputOutput.build([ + void Function(XmlEnumsInputOutputBuilder) updates, + ]) = _$XmlEnumsInputOutput; const XmlEnumsInputOutput._(); @@ -45,18 +45,16 @@ abstract class XmlEnumsInputOutput XmlEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlEnumsInputOutput] from a [payload] and [response]. factory XmlEnumsInputOutput.fromResponse( XmlEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlEnumsInputOutputRestXmlSerializer() + XmlEnumsInputOutputRestXmlSerializer(), ]; FooEnum? get fooEnum1; @@ -70,41 +68,24 @@ abstract class XmlEnumsInputOutput @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlEnumsInputOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlEnumsInputOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -115,17 +96,14 @@ class XmlEnumsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlEnumsInputOutput, - _$XmlEnumsInputOutput, - ]; + XmlEnumsInputOutput, + _$XmlEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEnumsInputOutput deserialize( @@ -144,53 +122,59 @@ class XmlEnumsInputOutputRestXmlSerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.fooEnumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'fooEnumMap': - result.fooEnumMap - .replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.fooEnumMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); case 'fooEnumSet': - result.fooEnumSet - .replace((const _i1.XmlBuiltSetSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i3.BuiltSet)); + result.fooEnumSet.replace( + (const _i1.XmlBuiltSetSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltSet), + ); } } @@ -210,70 +194,73 @@ class XmlEnumsInputOutputRestXmlSerializer :fooEnum3, :fooEnumList, :fooEnumMap, - :fooEnumSet + :fooEnumSet, ) = object; if (fooEnum1 != null) { result$ ..add(const _i1.XmlElementName('fooEnum1')) - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add(const _i1.XmlElementName('fooEnum2')) - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add(const _i1.XmlElementName('fooEnum3')) - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add(const _i1.XmlElementName('fooEnumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - fooEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + fooEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add(const _i1.XmlElementName('fooEnumMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - fooEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + fooEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add(const _i1.XmlElementName('fooEnumSet')) - ..add(const _i1.XmlBuiltSetSerializer().serialize( - serializers, - fooEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], + ..add( + const _i1.XmlBuiltSetSerializer().serialize( + serializers, + fooEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart index b055e639ae..6f0720850e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$XmlEnumsInputOutput extends XmlEnumsInputOutput { @override final _i3.BuiltMap? fooEnumMap; - factory _$XmlEnumsInputOutput( - [void Function(XmlEnumsInputOutputBuilder)? updates]) => - (new XmlEnumsInputOutputBuilder()..update(updates))._build(); - - _$XmlEnumsInputOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + factory _$XmlEnumsInputOutput([ + void Function(XmlEnumsInputOutputBuilder)? updates, + ]) => (new XmlEnumsInputOutputBuilder()..update(updates))._build(); + + _$XmlEnumsInputOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override XmlEnumsInputOutput rebuild( - void Function(XmlEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class XmlEnumsInputOutputBuilder _$XmlEnumsInputOutput _build() { _$XmlEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlEnumsInputOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class XmlEnumsInputOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlEnumsInputOutput', _$failedField, e.toString()); + r'XmlEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart index 120ed1641e..78a8342c7a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_int_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,9 +34,9 @@ abstract class XmlIntEnumsInputOutput ); } - factory XmlIntEnumsInputOutput.build( - [void Function(XmlIntEnumsInputOutputBuilder) updates]) = - _$XmlIntEnumsInputOutput; + factory XmlIntEnumsInputOutput.build([ + void Function(XmlIntEnumsInputOutputBuilder) updates, + ]) = _$XmlIntEnumsInputOutput; const XmlIntEnumsInputOutput._(); @@ -44,15 +44,13 @@ abstract class XmlIntEnumsInputOutput XmlIntEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlIntEnumsInputOutput] from a [payload] and [response]. factory XmlIntEnumsInputOutput.fromResponse( XmlIntEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [XmlIntEnumsInputOutputRestXmlSerializer()]; @@ -68,41 +66,24 @@ abstract class XmlIntEnumsInputOutput @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlIntEnumsInputOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlIntEnumsInputOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -110,21 +91,18 @@ abstract class XmlIntEnumsInputOutput class XmlIntEnumsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlIntEnumsInputOutputRestXmlSerializer() - : super('XmlIntEnumsInputOutput'); + : super('XmlIntEnumsInputOutput'); @override Iterable get types => const [ - XmlIntEnumsInputOutput, - _$XmlIntEnumsInputOutput, - ]; + XmlIntEnumsInputOutput, + _$XmlIntEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlIntEnumsInputOutput deserialize( @@ -143,53 +121,55 @@ class XmlIntEnumsInputOutputRestXmlSerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'intEnumMap': - result.intEnumMap - .replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.intEnumMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); case 'intEnumSet': - result.intEnumSet - .replace((const _i1.XmlBuiltSetSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(int)], - ), - ) as _i3.BuiltSet)); + result.intEnumSet.replace( + (const _i1.XmlBuiltSetSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltSet, [FullType(int)]), + ) + as _i3.BuiltSet), + ); } } @@ -203,7 +183,7 @@ class XmlIntEnumsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlIntEnumsInputOutput') + const _i1.XmlElementName('XmlIntEnumsInputOutput'), ]; final XmlIntEnumsInputOutput( :intEnum1, @@ -211,70 +191,64 @@ class XmlIntEnumsInputOutputRestXmlSerializer :intEnum3, :intEnumList, :intEnumMap, - :intEnumSet + :intEnumSet, ) = object; if (intEnum1 != null) { result$ ..add(const _i1.XmlElementName('intEnum1')) - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum1, specifiedType: const FullType(int)), + ); } if (intEnum2 != null) { result$ ..add(const _i1.XmlElementName('intEnum2')) - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum2, specifiedType: const FullType(int)), + ); } if (intEnum3 != null) { result$ ..add(const _i1.XmlElementName('intEnum3')) - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(intEnum3, specifiedType: const FullType(int)), + ); } if (intEnumList != null) { result$ ..add(const _i1.XmlElementName('intEnumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (intEnumMap != null) { result$ ..add(const _i1.XmlElementName('intEnumMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - intEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + intEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } if (intEnumSet != null) { result$ ..add(const _i1.XmlElementName('intEnumSet')) - ..add(const _i1.XmlBuiltSetSerializer().serialize( - serializers, - intEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(int)], + ..add( + const _i1.XmlBuiltSetSerializer().serialize( + serializers, + intEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(int)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart index b823c04914..4ae36f20c0 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$XmlIntEnumsInputOutput extends XmlIntEnumsInputOutput { @override final _i3.BuiltMap? intEnumMap; - factory _$XmlIntEnumsInputOutput( - [void Function(XmlIntEnumsInputOutputBuilder)? updates]) => - (new XmlIntEnumsInputOutputBuilder()..update(updates))._build(); - - _$XmlIntEnumsInputOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$XmlIntEnumsInputOutput([ + void Function(XmlIntEnumsInputOutputBuilder)? updates, + ]) => (new XmlIntEnumsInputOutputBuilder()..update(updates))._build(); + + _$XmlIntEnumsInputOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override XmlIntEnumsInputOutput rebuild( - void Function(XmlIntEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlIntEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlIntEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class XmlIntEnumsInputOutputBuilder _$XmlIntEnumsInputOutput _build() { _$XmlIntEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlIntEnumsInputOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class XmlIntEnumsInputOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlIntEnumsInputOutput', _$failedField, e.toString()); + r'XmlIntEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart index 050a13fe37..b44bf08130 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_lists_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,32 +44,36 @@ abstract class XmlListsInputOutput timestampList == null ? null : _i3.BuiltList(timestampList), enumList: enumList == null ? null : _i3.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i3.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), renamedListMembers: renamedListMembers == null ? null : _i3.BuiltList(renamedListMembers), flattenedList: flattenedList == null ? null : _i3.BuiltList(flattenedList), flattenedList2: flattenedList2 == null ? null : _i3.BuiltList(flattenedList2), - flattenedListWithMemberNamespace: flattenedListWithMemberNamespace == null - ? null - : _i3.BuiltList(flattenedListWithMemberNamespace), - flattenedListWithNamespace: flattenedListWithNamespace == null - ? null - : _i3.BuiltList(flattenedListWithNamespace), + flattenedListWithMemberNamespace: + flattenedListWithMemberNamespace == null + ? null + : _i3.BuiltList(flattenedListWithMemberNamespace), + flattenedListWithNamespace: + flattenedListWithNamespace == null + ? null + : _i3.BuiltList(flattenedListWithNamespace), structureList: structureList == null ? null : _i3.BuiltList(structureList), - flattenedStructureList: flattenedStructureList == null - ? null - : _i3.BuiltList(flattenedStructureList), + flattenedStructureList: + flattenedStructureList == null + ? null + : _i3.BuiltList(flattenedStructureList), ); } - factory XmlListsInputOutput.build( - [void Function(XmlListsInputOutputBuilder) updates]) = - _$XmlListsInputOutput; + factory XmlListsInputOutput.build([ + void Function(XmlListsInputOutputBuilder) updates, + ]) = _$XmlListsInputOutput; const XmlListsInputOutput._(); @@ -77,18 +81,16 @@ abstract class XmlListsInputOutput XmlListsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlListsInputOutput] from a [payload] and [response]. factory XmlListsInputOutput.fromResponse( XmlListsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlListsInputOutputRestXmlSerializer() + XmlListsInputOutputRestXmlSerializer(), ]; _i3.BuiltList? get stringList; @@ -113,86 +115,45 @@ abstract class XmlListsInputOutput @override List get props => [ - stringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - renamedListMembers, - flattenedList, - flattenedList2, - flattenedListWithMemberNamespace, - flattenedListWithNamespace, - structureList, - flattenedStructureList, - ]; + stringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + renamedListMembers, + flattenedList, + flattenedList2, + flattenedListWithMemberNamespace, + flattenedListWithNamespace, + structureList, + flattenedStructureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlListsInputOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'renamedListMembers', - renamedListMembers, - ) - ..add( - 'flattenedList', - flattenedList, - ) - ..add( - 'flattenedList2', - flattenedList2, - ) - ..add( - 'flattenedListWithMemberNamespace', - flattenedListWithMemberNamespace, - ) - ..add( - 'flattenedListWithNamespace', - flattenedListWithNamespace, - ) - ..add( - 'structureList', - structureList, - ) - ..add( - 'flattenedStructureList', - flattenedStructureList, - ); + final helper = + newBuiltValueToStringHelper('XmlListsInputOutput') + ..add('stringList', stringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('renamedListMembers', renamedListMembers) + ..add('flattenedList', flattenedList) + ..add('flattenedList2', flattenedList2) + ..add( + 'flattenedListWithMemberNamespace', + flattenedListWithMemberNamespace, + ) + ..add('flattenedListWithNamespace', flattenedListWithNamespace) + ..add('structureList', structureList) + ..add('flattenedStructureList', flattenedStructureList); return helper.toString(); } } @@ -203,17 +164,14 @@ class XmlListsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlListsInputOutput, - _$XmlListsInputOutput, - ]; + XmlListsInputOutput, + _$XmlListsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlListsInputOutput deserialize( @@ -232,135 +190,151 @@ class XmlListsInputOutputRestXmlSerializer } switch (key) { case 'booleanList': - result.booleanList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], - ), - ) as _i3.BuiltList)); + result.booleanList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(bool), + ]), + ) + as _i3.BuiltList), + ); case 'enumList': - result.enumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.enumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'flattenedList': - result.flattenedList.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'customName': - result.flattenedList2.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList2.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithMemberNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedStructureList': - result.flattenedStructureList.add((serializers.deserialize( - value, - specifiedType: const FullType(StructureListMember), - ) as StructureListMember)); + result.flattenedStructureList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(StructureListMember), + ) + as StructureListMember), + ); case 'intEnumList': - result.intEnumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'integerList': - result.integerList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.integerList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'nestedStringList': - result.nestedStringList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i3.BuiltList<_i3.BuiltList>)); + as _i3.BuiltList<_i3.BuiltList>), + ); case 'renamed': result.renamedListMembers.replace( - (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringList': - result.stringList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.stringList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringSet': - result.stringSet - .replace((const _i1.XmlBuiltSetSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], - ), - ) as _i3.BuiltSet)); + result.stringSet.replace( + (const _i1.XmlBuiltSetSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(String), + ]), + ) + as _i3.BuiltSet), + ); case 'myStructureList': result.structureList.replace( - (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i3.BuiltList)); + (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i3.BuiltList), + ); case 'timestampList': - result.timestampList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], - ), - ) as _i3.BuiltList)); + result.timestampList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i3.BuiltList), + ); } } @@ -389,192 +363,175 @@ class XmlListsInputOutputRestXmlSerializer :stringList, :stringSet, :structureList, - :timestampList + :timestampList, ) = object; if (booleanList != null) { result$ ..add(const _i1.XmlElementName('booleanList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - booleanList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + booleanList, + specifiedType: const FullType(_i3.BuiltList, [FullType(bool)]), ), - )); + ); } if (enumList != null) { result$ ..add(const _i1.XmlElementName('enumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - enumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + enumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (flattenedList != null) { result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'flattenedList') - .serialize( - serializers, - flattenedList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + const _i1.XmlBuiltListSerializer(memberName: 'flattenedList').serialize( + serializers, + flattenedList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList2 != null) { result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'customName').serialize( - serializers, - flattenedList2, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + const _i1.XmlBuiltListSerializer(memberName: 'customName').serialize( + serializers, + flattenedList2, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithMemberNamespace != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'flattenedListWithMemberNamespace', - memberNamespace: _i1.XmlNamespace('https://xml-member.example.com'), - ).serialize( - serializers, - flattenedListWithMemberNamespace, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'flattenedListWithMemberNamespace', + memberNamespace: _i1.XmlNamespace('https://xml-member.example.com'), + ).serialize( + serializers, + flattenedListWithMemberNamespace, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithNamespace != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'flattenedListWithNamespace') - .serialize( - serializers, - flattenedListWithNamespace, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'flattenedListWithNamespace', + ).serialize( + serializers, + flattenedListWithNamespace, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedStructureList != null) { result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'flattenedStructureList') - .serialize( - serializers, - flattenedStructureList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], + const _i1.XmlBuiltListSerializer( + memberName: 'flattenedStructureList', + ).serialize( + serializers, + flattenedStructureList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } if (intEnumList != null) { result$ ..add(const _i1.XmlElementName('intEnumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (integerList != null) { result$ ..add(const _i1.XmlElementName('integerList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - integerList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + integerList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (nestedStringList != null) { result$ ..add(const _i1.XmlElementName('nestedStringList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - nestedStringList, - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], - ) - ], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + nestedStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (renamedListMembers != null) { result$ ..add(const _i1.XmlElementName('renamed')) - ..add(const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( - serializers, - renamedListMembers, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( + serializers, + renamedListMembers, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (stringList != null) { result$ ..add(const _i1.XmlElementName('stringList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - stringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + stringList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add(const _i1.XmlElementName('stringSet')) - ..add(const _i1.XmlBuiltSetSerializer().serialize( - serializers, - stringSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], + ..add( + const _i1.XmlBuiltSetSerializer().serialize( + serializers, + stringSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add(const _i1.XmlElementName('myStructureList')) - ..add(const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( - serializers, - structureList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], + ..add( + const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( + serializers, + structureList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } if (timestampList != null) { result$ ..add(const _i1.XmlElementName('timestampList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - timestampList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + timestampList, + specifiedType: const FullType(_i3.BuiltList, [FullType(DateTime)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart index ffc42d14af..c13a296ca8 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart @@ -38,32 +38,32 @@ class _$XmlListsInputOutput extends XmlListsInputOutput { @override final _i3.BuiltList? flattenedStructureList; - factory _$XmlListsInputOutput( - [void Function(XmlListsInputOutputBuilder)? updates]) => - (new XmlListsInputOutputBuilder()..update(updates))._build(); - - _$XmlListsInputOutput._( - {this.stringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.renamedListMembers, - this.flattenedList, - this.flattenedList2, - this.flattenedListWithMemberNamespace, - this.flattenedListWithNamespace, - this.structureList, - this.flattenedStructureList}) - : super._(); + factory _$XmlListsInputOutput([ + void Function(XmlListsInputOutputBuilder)? updates, + ]) => (new XmlListsInputOutputBuilder()..update(updates))._build(); + + _$XmlListsInputOutput._({ + this.stringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.renamedListMembers, + this.flattenedList, + this.flattenedList2, + this.flattenedListWithMemberNamespace, + this.flattenedListWithNamespace, + this.structureList, + this.flattenedStructureList, + }) : super._(); @override XmlListsInputOutput rebuild( - void Function(XmlListsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlListsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlListsInputOutputBuilder toBuilder() => @@ -164,8 +164,8 @@ class XmlListsInputOutputBuilder _i3.ListBuilder<_i3.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i3.ListBuilder<_i3.BuiltList>(); set nestedStringList( - _i3.ListBuilder<_i3.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i3.ListBuilder<_i3.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i3.ListBuilder? _renamedListMembers; _i3.ListBuilder get renamedListMembers => @@ -190,7 +190,8 @@ class XmlListsInputOutputBuilder _$this._flattenedListWithMemberNamespace ??= new _i3.ListBuilder(); set flattenedListWithMemberNamespace( - _i3.ListBuilder? flattenedListWithMemberNamespace) => + _i3.ListBuilder? flattenedListWithMemberNamespace, + ) => _$this._flattenedListWithMemberNamespace = flattenedListWithMemberNamespace; @@ -198,8 +199,8 @@ class XmlListsInputOutputBuilder _i3.ListBuilder get flattenedListWithNamespace => _$this._flattenedListWithNamespace ??= new _i3.ListBuilder(); set flattenedListWithNamespace( - _i3.ListBuilder? flattenedListWithNamespace) => - _$this._flattenedListWithNamespace = flattenedListWithNamespace; + _i3.ListBuilder? flattenedListWithNamespace, + ) => _$this._flattenedListWithNamespace = flattenedListWithNamespace; _i3.ListBuilder? _structureList; _i3.ListBuilder get structureList => @@ -212,8 +213,8 @@ class XmlListsInputOutputBuilder _$this._flattenedStructureList ??= new _i3.ListBuilder(); set flattenedStructureList( - _i3.ListBuilder? flattenedStructureList) => - _$this._flattenedStructureList = flattenedStructureList; + _i3.ListBuilder? flattenedStructureList, + ) => _$this._flattenedStructureList = flattenedStructureList; XmlListsInputOutputBuilder(); @@ -258,24 +259,26 @@ class XmlListsInputOutputBuilder _$XmlListsInputOutput _build() { _$XmlListsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlListsInputOutput._( - stringList: _stringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - renamedListMembers: _renamedListMembers?.build(), - flattenedList: _flattenedList?.build(), - flattenedList2: _flattenedList2?.build(), - flattenedListWithMemberNamespace: - _flattenedListWithMemberNamespace?.build(), - flattenedListWithNamespace: _flattenedListWithNamespace?.build(), - structureList: _structureList?.build(), - flattenedStructureList: _flattenedStructureList?.build()); + stringList: _stringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + renamedListMembers: _renamedListMembers?.build(), + flattenedList: _flattenedList?.build(), + flattenedList2: _flattenedList2?.build(), + flattenedListWithMemberNamespace: + _flattenedListWithMemberNamespace?.build(), + flattenedListWithNamespace: _flattenedListWithNamespace?.build(), + structureList: _structureList?.build(), + flattenedStructureList: _flattenedStructureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -311,7 +314,10 @@ class XmlListsInputOutputBuilder _flattenedStructureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlListsInputOutput', _$failedField, e.toString()); + r'XmlListsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart index de199bf84b..cee2a9ec67 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_maps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,12 +17,13 @@ abstract class XmlMapsInputOutput implements Built { factory XmlMapsInputOutput({Map? myMap}) { return _$XmlMapsInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory XmlMapsInputOutput.build( - [void Function(XmlMapsInputOutputBuilder) updates]) = - _$XmlMapsInputOutput; + factory XmlMapsInputOutput.build([ + void Function(XmlMapsInputOutputBuilder) updates, + ]) = _$XmlMapsInputOutput; const XmlMapsInputOutput._(); @@ -30,18 +31,16 @@ abstract class XmlMapsInputOutput XmlMapsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlMapsInputOutput] from a [payload] and [response]. factory XmlMapsInputOutput.fromResponse( XmlMapsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlMapsInputOutputRestXmlSerializer() + XmlMapsInputOutputRestXmlSerializer(), ]; _i3.BuiltMap? get myMap; @@ -54,10 +53,7 @@ abstract class XmlMapsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsInputOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -67,18 +63,12 @@ class XmlMapsInputOutputRestXmlSerializer const XmlMapsInputOutputRestXmlSerializer() : super('XmlMapsInputOutput'); @override - Iterable get types => const [ - XmlMapsInputOutput, - _$XmlMapsInputOutput, - ]; + Iterable get types => const [XmlMapsInputOutput, _$XmlMapsInputOutput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsInputOutput deserialize( @@ -97,17 +87,16 @@ class XmlMapsInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.myMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -125,17 +114,16 @@ class XmlMapsInputOutputRestXmlSerializer if (myMap != null) { result$ ..add(const _i1.XmlElementName('myMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart index f035192106..970b629dab 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlMapsInputOutput extends XmlMapsInputOutput { @override final _i3.BuiltMap? myMap; - factory _$XmlMapsInputOutput( - [void Function(XmlMapsInputOutputBuilder)? updates]) => - (new XmlMapsInputOutputBuilder()..update(updates))._build(); + factory _$XmlMapsInputOutput([ + void Function(XmlMapsInputOutputBuilder)? updates, + ]) => (new XmlMapsInputOutputBuilder()..update(updates))._build(); _$XmlMapsInputOutput._({this.myMap}) : super._(); @override XmlMapsInputOutput rebuild( - void Function(XmlMapsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlMapsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlMapsInputOutputBuilder toBuilder() => @@ -86,7 +86,10 @@ class XmlMapsInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsInputOutput', _$failedField, e.toString()); + r'XmlMapsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart index 5cfae7868b..27b32c544b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_maps_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,12 +20,13 @@ abstract class XmlMapsXmlNameInputOutput Built { factory XmlMapsXmlNameInputOutput({Map? myMap}) { return _$XmlMapsXmlNameInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory XmlMapsXmlNameInputOutput.build( - [void Function(XmlMapsXmlNameInputOutputBuilder) updates]) = - _$XmlMapsXmlNameInputOutput; + factory XmlMapsXmlNameInputOutput.build([ + void Function(XmlMapsXmlNameInputOutputBuilder) updates, + ]) = _$XmlMapsXmlNameInputOutput; const XmlMapsXmlNameInputOutput._(); @@ -33,18 +34,16 @@ abstract class XmlMapsXmlNameInputOutput XmlMapsXmlNameInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlMapsXmlNameInputOutput] from a [payload] and [response]. factory XmlMapsXmlNameInputOutput.fromResponse( XmlMapsXmlNameInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlMapsXmlNameInputOutputRestXmlSerializer()]; + serializers = [XmlMapsXmlNameInputOutputRestXmlSerializer()]; _i3.BuiltMap? get myMap; @override @@ -56,10 +55,7 @@ abstract class XmlMapsXmlNameInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsXmlNameInputOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -67,21 +63,18 @@ abstract class XmlMapsXmlNameInputOutput class XmlMapsXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlMapsXmlNameInputOutputRestXmlSerializer() - : super('XmlMapsXmlNameInputOutput'); + : super('XmlMapsXmlNameInputOutput'); @override Iterable get types => const [ - XmlMapsXmlNameInputOutput, - _$XmlMapsXmlNameInputOutput, - ]; + XmlMapsXmlNameInputOutput, + _$XmlMapsXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsXmlNameInputOutput deserialize( @@ -100,20 +93,19 @@ class XmlMapsXmlNameInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i1.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.myMap.replace( + const _i1.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -127,26 +119,25 @@ class XmlMapsXmlNameInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlMapsXmlNameInputOutput') + const _i1.XmlElementName('XmlMapsXmlNameInputOutput'), ]; final XmlMapsXmlNameInputOutput(:myMap) = object; if (myMap != null) { result$ ..add(const _i1.XmlElementName('myMap')) - ..add(const _i1.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart index d68b261d01..a8ef98d937 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlMapsXmlNameInputOutput extends XmlMapsXmlNameInputOutput { @override final _i3.BuiltMap? myMap; - factory _$XmlMapsXmlNameInputOutput( - [void Function(XmlMapsXmlNameInputOutputBuilder)? updates]) => - (new XmlMapsXmlNameInputOutputBuilder()..update(updates))._build(); + factory _$XmlMapsXmlNameInputOutput([ + void Function(XmlMapsXmlNameInputOutputBuilder)? updates, + ]) => (new XmlMapsXmlNameInputOutputBuilder()..update(updates))._build(); _$XmlMapsXmlNameInputOutput._({this.myMap}) : super._(); @override XmlMapsXmlNameInputOutput rebuild( - void Function(XmlMapsXmlNameInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlMapsXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlMapsXmlNameInputOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class XmlMapsXmlNameInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsXmlNameInputOutput', _$failedField, e.toString()); + r'XmlMapsXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart index 8d9d2fbdb3..8ecb16d2b6 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_namespace_nested; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,45 +14,34 @@ part 'xml_namespace_nested.g.dart'; abstract class XmlNamespaceNested with _i1.AWSEquatable implements Built { - factory XmlNamespaceNested({ - String? foo, - List? values, - }) { + factory XmlNamespaceNested({String? foo, List? values}) { return _$XmlNamespaceNested._( foo: foo, values: values == null ? null : _i2.BuiltList(values), ); } - factory XmlNamespaceNested.build( - [void Function(XmlNamespaceNestedBuilder) updates]) = - _$XmlNamespaceNested; + factory XmlNamespaceNested.build([ + void Function(XmlNamespaceNestedBuilder) updates, + ]) = _$XmlNamespaceNested; const XmlNamespaceNested._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNamespaceNestedRestXmlSerializer() + XmlNamespaceNestedRestXmlSerializer(), ]; String? get foo; _i2.BuiltList? get values; @override - List get props => [ - foo, - values, - ]; + List get props => [foo, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNamespaceNested') - ..add( - 'foo', - foo, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('XmlNamespaceNested') + ..add('foo', foo) + ..add('values', values); return helper.toString(); } } @@ -62,18 +51,12 @@ class XmlNamespaceNestedRestXmlSerializer const XmlNamespaceNestedRestXmlSerializer() : super('XmlNamespaceNested'); @override - Iterable get types => const [ - XmlNamespaceNested, - _$XmlNamespaceNested, - ]; + Iterable get types => const [XmlNamespaceNested, _$XmlNamespaceNested]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespaceNested deserialize( @@ -92,21 +75,25 @@ class XmlNamespaceNestedRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com')) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -123,39 +110,38 @@ class XmlNamespaceNestedRestXmlSerializer const _i3.XmlElementName( 'XmlNamespaceNested', _i3.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespaceNested(:foo, :values) = object; if (foo != null) { result$ - ..add(const _i3.XmlElementName( - 'foo', - _i3.XmlNamespace( - 'http://baz.com', - 'baz', + ..add( + const _i3.XmlElementName( + 'foo', + _i3.XmlNamespace('http://baz.com', 'baz'), ), - )) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ) + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (values != null) { result$ - ..add(const _i3.XmlElementName( - 'values', - _i3.XmlNamespace('http://qux.com'), - )) - ..add(const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com')) - .serialize( - serializers, - values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlElementName( + 'values', + _i3.XmlNamespace('http://qux.com'), + ), + ) + ..add( + const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + ).serialize( + serializers, + values, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart index 80b634991e..300ea21e0e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart @@ -12,16 +12,16 @@ class _$XmlNamespaceNested extends XmlNamespaceNested { @override final _i2.BuiltList? values; - factory _$XmlNamespaceNested( - [void Function(XmlNamespaceNestedBuilder)? updates]) => - (new XmlNamespaceNestedBuilder()..update(updates))._build(); + factory _$XmlNamespaceNested([ + void Function(XmlNamespaceNestedBuilder)? updates, + ]) => (new XmlNamespaceNestedBuilder()..update(updates))._build(); _$XmlNamespaceNested._({this.foo, this.values}) : super._(); @override XmlNamespaceNested rebuild( - void Function(XmlNamespaceNestedBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespaceNestedBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespaceNestedBuilder toBuilder() => @@ -96,7 +96,10 @@ class XmlNamespaceNestedBuilder _values?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespaceNested', _$failedField, e.toString()); + r'XmlNamespaceNested', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart index d2805de623..96d86b6be8 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_namespaces_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class XmlNamespacesInputOutput return _$XmlNamespacesInputOutput._(nested: nested); } - factory XmlNamespacesInputOutput.build( - [void Function(XmlNamespacesInputOutputBuilder) updates]) = - _$XmlNamespacesInputOutput; + factory XmlNamespacesInputOutput.build([ + void Function(XmlNamespacesInputOutputBuilder) updates, + ]) = _$XmlNamespacesInputOutput; const XmlNamespacesInputOutput._(); @@ -31,18 +31,16 @@ abstract class XmlNamespacesInputOutput XmlNamespacesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlNamespacesInputOutput] from a [payload] and [response]. factory XmlNamespacesInputOutput.fromResponse( XmlNamespacesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlNamespacesInputOutputRestXmlSerializer()]; + serializers = [XmlNamespacesInputOutputRestXmlSerializer()]; XmlNamespaceNested? get nested; @override @@ -54,10 +52,7 @@ abstract class XmlNamespacesInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlNamespacesInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -65,21 +60,18 @@ abstract class XmlNamespacesInputOutput class XmlNamespacesInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlNamespacesInputOutputRestXmlSerializer() - : super('XmlNamespacesInputOutput'); + : super('XmlNamespacesInputOutput'); @override Iterable get types => const [ - XmlNamespacesInputOutput, - _$XmlNamespacesInputOutput, - ]; + XmlNamespacesInputOutput, + _$XmlNamespacesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespacesInputOutput deserialize( @@ -98,10 +90,13 @@ class XmlNamespacesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -118,16 +113,18 @@ class XmlNamespacesInputOutputRestXmlSerializer const _i1.XmlElementName( 'XmlNamespacesInputOutput', _i1.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespacesInputOutput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(XmlNamespaceNested), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(XmlNamespaceNested), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart index ff90027594..771a418a41 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlNamespacesInputOutput extends XmlNamespacesInputOutput { @override final XmlNamespaceNested? nested; - factory _$XmlNamespacesInputOutput( - [void Function(XmlNamespacesInputOutputBuilder)? updates]) => - (new XmlNamespacesInputOutputBuilder()..update(updates))._build(); + factory _$XmlNamespacesInputOutput([ + void Function(XmlNamespacesInputOutputBuilder)? updates, + ]) => (new XmlNamespacesInputOutputBuilder()..update(updates))._build(); _$XmlNamespacesInputOutput._({this.nested}) : super._(); @override XmlNamespacesInputOutput rebuild( - void Function(XmlNamespacesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespacesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespacesInputOutputBuilder toBuilder() => @@ -87,7 +87,10 @@ class XmlNamespacesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespacesInputOutput', _$failedField, e.toString()); + r'XmlNamespacesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart index f5e62befe3..5eac9a553e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_nested_union_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,14 +36,14 @@ abstract class XmlNestedUnionStruct ); } - factory XmlNestedUnionStruct.build( - [void Function(XmlNestedUnionStructBuilder) updates]) = - _$XmlNestedUnionStruct; + factory XmlNestedUnionStruct.build([ + void Function(XmlNestedUnionStructBuilder) updates, + ]) = _$XmlNestedUnionStruct; const XmlNestedUnionStruct._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNestedUnionStructRestXmlSerializer() + XmlNestedUnionStructRestXmlSerializer(), ]; String? get stringValue; @@ -56,51 +56,28 @@ abstract class XmlNestedUnionStruct double? get doubleValue; @override List get props => [ - stringValue, - booleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + stringValue, + booleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNestedUnionStruct') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'booleanValue', - booleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + final helper = + newBuiltValueToStringHelper('XmlNestedUnionStruct') + ..add('stringValue', stringValue) + ..add('booleanValue', booleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -111,17 +88,14 @@ class XmlNestedUnionStructRestXmlSerializer @override Iterable get types => const [ - XmlNestedUnionStruct, - _$XmlNestedUnionStruct, - ]; + XmlNestedUnionStruct, + _$XmlNestedUnionStruct, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNestedUnionStruct deserialize( @@ -140,45 +114,61 @@ class XmlNestedUnionStructRestXmlSerializer } switch (key) { case 'booleanValue': - result.booleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.booleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -200,71 +190,81 @@ class XmlNestedUnionStructRestXmlSerializer :integerValue, :longValue, :shortValue, - :stringValue + :stringValue, ) = object; if (booleanValue != null) { result$ ..add(const _i3.XmlElementName('booleanValue')) - ..add(serializers.serialize( - booleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + booleanValue, + specifiedType: const FullType(bool), + ), + ); } if (byteValue != null) { result$ ..add(const _i3.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add(const _i3.XmlElementName('doubleValue')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (floatValue != null) { result$ ..add(const _i3.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add(const _i3.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i3.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (shortValue != null) { result$ ..add(const _i3.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add(const _i3.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart index 0f7ae09760..c959cd4a11 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart @@ -24,25 +24,25 @@ class _$XmlNestedUnionStruct extends XmlNestedUnionStruct { @override final double? doubleValue; - factory _$XmlNestedUnionStruct( - [void Function(XmlNestedUnionStructBuilder)? updates]) => - (new XmlNestedUnionStructBuilder()..update(updates))._build(); - - _$XmlNestedUnionStruct._( - {this.stringValue, - this.booleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + factory _$XmlNestedUnionStruct([ + void Function(XmlNestedUnionStructBuilder)? updates, + ]) => (new XmlNestedUnionStructBuilder()..update(updates))._build(); + + _$XmlNestedUnionStruct._({ + this.stringValue, + this.booleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override XmlNestedUnionStruct rebuild( - void Function(XmlNestedUnionStructBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNestedUnionStructBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNestedUnionStructBuilder toBuilder() => @@ -147,16 +147,18 @@ class XmlNestedUnionStructBuilder XmlNestedUnionStruct build() => _build(); _$XmlNestedUnionStruct _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlNestedUnionStruct._( - stringValue: stringValue, - booleanValue: booleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + stringValue: stringValue, + booleanValue: booleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart index c04ff9b9af..2024f2797f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_timestamps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,9 +36,9 @@ abstract class XmlTimestampsInputOutput ); } - factory XmlTimestampsInputOutput.build( - [void Function(XmlTimestampsInputOutputBuilder) updates]) = - _$XmlTimestampsInputOutput; + factory XmlTimestampsInputOutput.build([ + void Function(XmlTimestampsInputOutputBuilder) updates, + ]) = _$XmlTimestampsInputOutput; const XmlTimestampsInputOutput._(); @@ -46,18 +46,16 @@ abstract class XmlTimestampsInputOutput XmlTimestampsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlTimestampsInputOutput] from a [payload] and [response]. factory XmlTimestampsInputOutput.fromResponse( XmlTimestampsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlTimestampsInputOutputRestXmlSerializer()]; + serializers = [XmlTimestampsInputOutputRestXmlSerializer()]; DateTime? get normal; DateTime? get dateTime; @@ -71,46 +69,26 @@ abstract class XmlTimestampsInputOutput @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlTimestampsInputOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('XmlTimestampsInputOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -118,21 +96,18 @@ abstract class XmlTimestampsInputOutput class XmlTimestampsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlTimestampsInputOutputRestXmlSerializer() - : super('XmlTimestampsInputOutput'); + : super('XmlTimestampsInputOutput'); @override Iterable get types => const [ - XmlTimestampsInputOutput, - _$XmlTimestampsInputOutput, - ]; + XmlTimestampsInputOutput, + _$XmlTimestampsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlTimestampsInputOutput deserialize( @@ -156,39 +131,29 @@ class XmlTimestampsInputOutputRestXmlSerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i1.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i1.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i1.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i1.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i1.TimestampSerializer.httpDate + .deserialize(serializers, value); case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -202,7 +167,7 @@ class XmlTimestampsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlTimestampsInputOutput') + const _i1.XmlElementName('XmlTimestampsInputOutput'), ]; final XmlTimestampsInputOutput( :dateTime, @@ -211,63 +176,71 @@ class XmlTimestampsInputOutputRestXmlSerializer :epochSecondsOnTarget, :httpDate, :httpDateOnTarget, - :normal + :normal, ) = object; if (dateTime != null) { result$ ..add(const _i1.XmlElementName('dateTime')) - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add(const _i1.XmlElementName('dateTimeOnTarget')) - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add(const _i1.XmlElementName('epochSeconds')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add(const _i1.XmlElementName('epochSecondsOnTarget')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add(const _i1.XmlElementName('httpDate')) - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add(const _i1.XmlElementName('httpDateOnTarget')) - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } if (normal != null) { result$ ..add(const _i1.XmlElementName('normal')) - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart index 23cbf355df..a6133ca3a5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart @@ -22,24 +22,24 @@ class _$XmlTimestampsInputOutput extends XmlTimestampsInputOutput { @override final DateTime? httpDateOnTarget; - factory _$XmlTimestampsInputOutput( - [void Function(XmlTimestampsInputOutputBuilder)? updates]) => - (new XmlTimestampsInputOutputBuilder()..update(updates))._build(); - - _$XmlTimestampsInputOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$XmlTimestampsInputOutput([ + void Function(XmlTimestampsInputOutputBuilder)? updates, + ]) => (new XmlTimestampsInputOutputBuilder()..update(updates))._build(); + + _$XmlTimestampsInputOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override XmlTimestampsInputOutput rebuild( - void Function(XmlTimestampsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlTimestampsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlTimestampsInputOutputBuilder toBuilder() => @@ -142,15 +142,17 @@ class XmlTimestampsInputOutputBuilder XmlTimestampsInputOutput build() => _build(); _$XmlTimestampsInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlTimestampsInputOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart index d7b36be154..7b207f8e7d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_union_shape; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,25 +48,24 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { _i2.Int64? longValue, double? floatValue, double? doubleValue, - }) => - XmlUnionShapeStructValue$(XmlNestedUnionStruct( - stringValue: stringValue, - booleanValue: booleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue, - )); - - const factory XmlUnionShape.sdkUnknown( - String name, - Object value, - ) = XmlUnionShapeSdkUnknown$; + }) => XmlUnionShapeStructValue$( + XmlNestedUnionStruct( + stringValue: stringValue, + booleanValue: booleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ), + ); + + const factory XmlUnionShape.sdkUnknown(String name, Object value) = + XmlUnionShapeSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - XmlUnionShapeRestXmlSerializer() + XmlUnionShapeRestXmlSerializer(), ]; String? get stringValue => null; @@ -90,79 +89,50 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { XmlNestedUnionStruct? get structValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - byteValue ?? - shortValue ?? - integerValue ?? - longValue ?? - floatValue ?? - doubleValue ?? - unionValue ?? - structValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + byteValue ?? + shortValue ?? + integerValue ?? + longValue ?? + floatValue ?? + doubleValue ?? + unionValue ?? + structValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'XmlUnionShape'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (byteValue != null) { - helper.add( - r'byteValue', - byteValue, - ); + helper.add(r'byteValue', byteValue); } if (shortValue != null) { - helper.add( - r'shortValue', - shortValue, - ); + helper.add(r'shortValue', shortValue); } if (integerValue != null) { - helper.add( - r'integerValue', - integerValue, - ); + helper.add(r'integerValue', integerValue); } if (longValue != null) { - helper.add( - r'longValue', - longValue, - ); + helper.add(r'longValue', longValue); } if (floatValue != null) { - helper.add( - r'floatValue', - floatValue, - ); + helper.add(r'floatValue', floatValue); } if (doubleValue != null) { - helper.add( - r'doubleValue', - doubleValue, - ); + helper.add(r'doubleValue', doubleValue); } if (unionValue != null) { - helper.add( - r'unionValue', - unionValue, - ); + helper.add(r'unionValue', unionValue); } if (structValue != null) { - helper.add( - r'structValue', - structValue, - ); + helper.add(r'structValue', structValue); } return helper.toString(); } @@ -269,10 +239,7 @@ final class XmlUnionShapeStructValue$ extends XmlUnionShape { } final class XmlUnionShapeSdkUnknown$ extends XmlUnionShape { - const XmlUnionShapeSdkUnknown$( - this.name, - this.value, - ) : super._(); + const XmlUnionShapeSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -287,26 +254,23 @@ class XmlUnionShapeRestXmlSerializer @override Iterable get types => const [ - XmlUnionShape, - XmlUnionShapeStringValue$, - XmlUnionShapeBooleanValue$, - XmlUnionShapeByteValue$, - XmlUnionShapeShortValue$, - XmlUnionShapeIntegerValue$, - XmlUnionShapeLongValue$, - XmlUnionShapeFloatValue$, - XmlUnionShapeDoubleValue$, - XmlUnionShapeUnionValue$, - XmlUnionShapeStructValue$, - ]; + XmlUnionShape, + XmlUnionShapeStringValue$, + XmlUnionShapeBooleanValue$, + XmlUnionShapeByteValue$, + XmlUnionShapeShortValue$, + XmlUnionShapeIntegerValue$, + XmlUnionShapeLongValue$, + XmlUnionShapeFloatValue$, + XmlUnionShapeDoubleValue$, + XmlUnionShapeUnionValue$, + XmlUnionShapeStructValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlUnionShape deserialize( @@ -317,60 +281,66 @@ class XmlUnionShapeRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return XmlUnionShapeStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return XmlUnionShapeStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return XmlUnionShapeBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return XmlUnionShapeBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'byteValue': - return XmlUnionShapeByteValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return XmlUnionShapeByteValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'shortValue': - return XmlUnionShapeShortValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return XmlUnionShapeShortValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'integerValue': - return XmlUnionShapeIntegerValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return XmlUnionShapeIntegerValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'longValue': - return XmlUnionShapeLongValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64)); + return XmlUnionShapeLongValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64), + ); case 'floatValue': - return XmlUnionShapeFloatValue$((serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double)); + return XmlUnionShapeFloatValue$( + (serializers.deserialize(value, specifiedType: const FullType(double)) + as double), + ); case 'doubleValue': - return XmlUnionShapeDoubleValue$((serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double)); + return XmlUnionShapeDoubleValue$( + (serializers.deserialize(value, specifiedType: const FullType(double)) + as double), + ); case 'unionValue': - return XmlUnionShapeUnionValue$((serializers.deserialize( - value, - specifiedType: const FullType(XmlUnionShape), - ) as XmlUnionShape)); + return XmlUnionShapeUnionValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlUnionShape), + ) + as XmlUnionShape), + ); case 'structValue': - return XmlUnionShapeStructValue$((serializers.deserialize( - value, - specifiedType: const FullType(XmlNestedUnionStruct), - ) as XmlNestedUnionStruct)); + return XmlUnionShapeStructValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNestedUnionStruct), + ) + as XmlNestedUnionStruct), + ); } - return XmlUnionShape.sdkUnknown( - key, - value, - ); + return XmlUnionShape.sdkUnknown(key, value); } @override @@ -383,45 +353,45 @@ class XmlUnionShapeRestXmlSerializer object.name, switch (object) { XmlUnionShapeStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), XmlUnionShapeBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), XmlUnionShapeByteValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), XmlUnionShapeShortValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), XmlUnionShapeIntegerValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), XmlUnionShapeLongValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Int64), - ), + value, + specifiedType: const FullType(_i2.Int64), + ), XmlUnionShapeFloatValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(double), - ), + value, + specifiedType: const FullType(double), + ), XmlUnionShapeDoubleValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(double), - ), + value, + specifiedType: const FullType(double), + ), XmlUnionShapeUnionValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(XmlUnionShape), - ), + value, + specifiedType: const FullType(XmlUnionShape), + ), XmlUnionShapeStructValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(XmlNestedUnionStruct), - ), + value, + specifiedType: const FullType(XmlNestedUnionStruct), + ), XmlUnionShapeSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart index 3d45dabb4f..7499586fb1 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.model.xml_unions_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class XmlUnionsInputOutput return _$XmlUnionsInputOutput._(unionValue: unionValue); } - factory XmlUnionsInputOutput.build( - [void Function(XmlUnionsInputOutputBuilder) updates]) = - _$XmlUnionsInputOutput; + factory XmlUnionsInputOutput.build([ + void Function(XmlUnionsInputOutputBuilder) updates, + ]) = _$XmlUnionsInputOutput; const XmlUnionsInputOutput._(); @@ -30,18 +30,16 @@ abstract class XmlUnionsInputOutput XmlUnionsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlUnionsInputOutput] from a [payload] and [response]. factory XmlUnionsInputOutput.fromResponse( XmlUnionsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlUnionsInputOutputRestXmlSerializer() + XmlUnionsInputOutputRestXmlSerializer(), ]; XmlUnionShape? get unionValue; @@ -54,10 +52,7 @@ abstract class XmlUnionsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlUnionsInputOutput') - ..add( - 'unionValue', - unionValue, - ); + ..add('unionValue', unionValue); return helper.toString(); } } @@ -68,17 +63,14 @@ class XmlUnionsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlUnionsInputOutput, - _$XmlUnionsInputOutput, - ]; + XmlUnionsInputOutput, + _$XmlUnionsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlUnionsInputOutput deserialize( @@ -97,10 +89,12 @@ class XmlUnionsInputOutputRestXmlSerializer } switch (key) { case 'unionValue': - result.unionValue = (serializers.deserialize( - value, - specifiedType: const FullType(XmlUnionShape), - ) as XmlUnionShape); + result.unionValue = + (serializers.deserialize( + value, + specifiedType: const FullType(XmlUnionShape), + ) + as XmlUnionShape); } } @@ -118,10 +112,12 @@ class XmlUnionsInputOutputRestXmlSerializer if (unionValue != null) { result$ ..add(const _i1.XmlElementName('unionValue')) - ..add(serializers.serialize( - unionValue, - specifiedType: const FullType(XmlUnionShape), - )); + ..add( + serializers.serialize( + unionValue, + specifiedType: const FullType(XmlUnionShape), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart index 388e50c2be..ebefb73702 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlUnionsInputOutput extends XmlUnionsInputOutput { @override final XmlUnionShape? unionValue; - factory _$XmlUnionsInputOutput( - [void Function(XmlUnionsInputOutputBuilder)? updates]) => - (new XmlUnionsInputOutputBuilder()..update(updates))._build(); + factory _$XmlUnionsInputOutput([ + void Function(XmlUnionsInputOutputBuilder)? updates, + ]) => (new XmlUnionsInputOutputBuilder()..update(updates))._build(); _$XmlUnionsInputOutput._({this.unionValue}) : super._(); @override XmlUnionsInputOutput rebuild( - void Function(XmlUnionsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlUnionsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlUnionsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart index 42339836b6..f834ce3e55 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.all_query_string_types_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses all query string types. -class AllQueryStringTypesOperation extends _i1.HttpOperation< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> { +class AllQueryStringTypesOperation + extends + _i1.HttpOperation< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > { /// This example uses all query string types. AllQueryStringTypesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,170 +73,109 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(AllQueryStringTypesInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/AllQueryStringTypesInput'; - if (input.queryString != null) { - b.queryParameters.add( - 'String', - input.queryString!, - ); - } - if (input.queryStringList != null) { - for (var value in input.queryStringList!) { - b.queryParameters.add( - 'StringList', - value, - ); - } - } - if (input.queryStringSet != null) { - for (var value in input.queryStringSet!) { - b.queryParameters.add( - 'StringSet', - value, - ); - } - } - if (input.queryByte != null) { - b.queryParameters.add( - 'Byte', - input.queryByte!.toString(), - ); - } - if (input.queryShort != null) { - b.queryParameters.add( - 'Short', - input.queryShort!.toString(), - ); - } - if (input.queryInteger != null) { - b.queryParameters.add( - 'Integer', - input.queryInteger!.toString(), - ); - } - if (input.queryIntegerList != null) { - for (var value in input.queryIntegerList!) { - b.queryParameters.add( - 'IntegerList', - value.toString(), - ); - } - } - if (input.queryIntegerSet != null) { - for (var value in input.queryIntegerSet!) { - b.queryParameters.add( - 'IntegerSet', - value.toString(), - ); - } - } - if (input.queryLong != null) { - b.queryParameters.add( - 'Long', - input.queryLong!.toString(), - ); - } - if (input.queryFloat != null) { - b.queryParameters.add( - 'Float', - input.queryFloat!.toString(), - ); - } - if (input.queryDouble != null) { - b.queryParameters.add( - 'Double', - input.queryDouble!.toString(), - ); - } - if (input.queryDoubleList != null) { - for (var value in input.queryDoubleList!) { - b.queryParameters.add( - 'DoubleList', - value.toString(), - ); - } - } - if (input.queryBoolean != null) { - b.queryParameters.add( - 'Boolean', - input.queryBoolean!.toString(), - ); - } - if (input.queryBooleanList != null) { - for (var value in input.queryBooleanList!) { - b.queryParameters.add( - 'BooleanList', - value.toString(), - ); - } - } - if (input.queryTimestamp != null) { - b.queryParameters.add( - 'Timestamp', - _i1.Timestamp(input.queryTimestamp!) - .format(_i1.TimestampFormat.dateTime) - .toString(), - ); - } - if (input.queryTimestampList != null) { - for (var value in input.queryTimestampList!) { - b.queryParameters.add( - 'TimestampList', - _i1.Timestamp(value) - .format(_i1.TimestampFormat.dateTime) - .toString(), - ); - } - } - if (input.queryEnum != null) { - b.queryParameters.add( - 'Enum', - input.queryEnum!.value, - ); - } - if (input.queryEnumList != null) { - for (var value in input.queryEnumList!) { - b.queryParameters.add( - 'EnumList', - value.value, - ); - } - } - if (input.queryIntegerEnum != null) { - b.queryParameters.add( - 'IntegerEnum', - input.queryIntegerEnum!.toString(), - ); - } - if (input.queryIntegerEnumList != null) { - for (var value in input.queryIntegerEnumList!) { - b.queryParameters.add( - 'IntegerEnumList', - value.toString(), - ); - } - } - if (input.queryParamsMapOfStrings != null) { - for (var entry in input.queryParamsMapOfStrings!.toMap().entries) { - b.queryParameters.add( - entry.key, - entry.value, - ); - } - } - }); + _i1.HttpRequest buildRequest( + AllQueryStringTypesInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = r'/AllQueryStringTypesInput'; + if (input.queryString != null) { + b.queryParameters.add('String', input.queryString!); + } + if (input.queryStringList != null) { + for (var value in input.queryStringList!) { + b.queryParameters.add('StringList', value); + } + } + if (input.queryStringSet != null) { + for (var value in input.queryStringSet!) { + b.queryParameters.add('StringSet', value); + } + } + if (input.queryByte != null) { + b.queryParameters.add('Byte', input.queryByte!.toString()); + } + if (input.queryShort != null) { + b.queryParameters.add('Short', input.queryShort!.toString()); + } + if (input.queryInteger != null) { + b.queryParameters.add('Integer', input.queryInteger!.toString()); + } + if (input.queryIntegerList != null) { + for (var value in input.queryIntegerList!) { + b.queryParameters.add('IntegerList', value.toString()); + } + } + if (input.queryIntegerSet != null) { + for (var value in input.queryIntegerSet!) { + b.queryParameters.add('IntegerSet', value.toString()); + } + } + if (input.queryLong != null) { + b.queryParameters.add('Long', input.queryLong!.toString()); + } + if (input.queryFloat != null) { + b.queryParameters.add('Float', input.queryFloat!.toString()); + } + if (input.queryDouble != null) { + b.queryParameters.add('Double', input.queryDouble!.toString()); + } + if (input.queryDoubleList != null) { + for (var value in input.queryDoubleList!) { + b.queryParameters.add('DoubleList', value.toString()); + } + } + if (input.queryBoolean != null) { + b.queryParameters.add('Boolean', input.queryBoolean!.toString()); + } + if (input.queryBooleanList != null) { + for (var value in input.queryBooleanList!) { + b.queryParameters.add('BooleanList', value.toString()); + } + } + if (input.queryTimestamp != null) { + b.queryParameters.add( + 'Timestamp', + _i1.Timestamp( + input.queryTimestamp!, + ).format(_i1.TimestampFormat.dateTime).toString(), + ); + } + if (input.queryTimestampList != null) { + for (var value in input.queryTimestampList!) { + b.queryParameters.add( + 'TimestampList', + _i1.Timestamp(value).format(_i1.TimestampFormat.dateTime).toString(), + ); + } + } + if (input.queryEnum != null) { + b.queryParameters.add('Enum', input.queryEnum!.value); + } + if (input.queryEnumList != null) { + for (var value in input.queryEnumList!) { + b.queryParameters.add('EnumList', value.value); + } + } + if (input.queryIntegerEnum != null) { + b.queryParameters.add('IntegerEnum', input.queryIntegerEnum!.toString()); + } + if (input.queryIntegerEnumList != null) { + for (var value in input.queryIntegerEnumList!) { + b.queryParameters.add('IntegerEnumList', value.toString()); + } + } + if (input.queryParamsMapOfStrings != null) { + for (var entry in input.queryParamsMapOfStrings!.toMap().entries) { + b.queryParameters.add(entry.key, entry.value); + } + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -251,11 +200,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart index c335c271fa..4ceb1f4f68 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.body_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a body that uses an XML name, changing the wrapper name. -class BodyWithXmlNameOperation extends _i1.HttpOperation< - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput> { +class BodyWithXmlNameOperation + extends + _i1.HttpOperation< + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput + > { /// The following example serializes a body that uses an XML name, changing the wrapper name. BodyWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class BodyWithXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class BodyWithXmlNameOperation extends _i1.HttpOperation< BodyWithXmlNameInputOutput buildOutput( BodyWithXmlNameInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - BodyWithXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => BodyWithXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class BodyWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart index 25321adfbd..aca22b586b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.constant_and_variable_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). -class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantAndVariableQueryStringOperation + extends + _i1.HttpOperation< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). ConstantAndVariableQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,16 +78,10 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/ConstantAndVariableQueryString?foo=bar'; if (input.baz != null) { - b.queryParameters.add( - 'baz', - input.baz!, - ); + b.queryParameters.add('baz', input.baz!); } if (input.maybeSet != null) { - b.queryParameters.add( - 'maybeSet', - input.maybeSet!, - ); + b.queryParameters.add('maybeSet', input.maybeSet!); } }); @@ -88,10 +89,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -116,11 +114,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart index 9901f820b0..83bbb54ce8 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.constant_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. -class ConstantQueryStringOperation extends _i1.HttpOperation< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantQueryStringOperation + extends + _i1.HttpOperation< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. ConstantQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,10 +83,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -101,11 +108,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart index 63d7636ecc..99482ebc48 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/datetime_offsets_output. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,9 +72,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/DatetimeOffsets'; - }); + b.method = 'POST'; + b.path = r'/DatetimeOffsets'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -70,11 +83,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -98,11 +107,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart index ad90851f44..62943d063a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +57,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +87,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +111,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart index a333b172f9..f33513eb61 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -39,7 +40,7 @@ class EndpointOperation responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -57,19 +58,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointOperation'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/EndpointOperation'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart index bfaa20176d..44f3864d98 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.endpoint_with_host_label_header_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/host_label_header_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< - HostLabelHeaderInputPayload, HostLabelHeaderInput, _i1.Unit, _i1.Unit> { +class EndpointWithHostLabelHeaderOperation + extends + _i1.HttpOperation< + HostLabelHeaderInputPayload, + HostLabelHeaderInput, + _i1.Unit, + _i1.Unit + > { EndpointWithHostLabelHeaderOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HostLabelHeaderInputPayload, + HostLabelHeaderInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart index 0cc4b822de..970df263f4 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,32 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/host_label_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class EndpointWithHostLabelOperation extends _i1 responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,19 +63,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointWithHostLabelOperation'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/EndpointWithHostLabelOperation'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -97,11 +97,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart index 5a14d77353..ade5e63b5b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.flattened_xml_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps -class FlattenedXmlMapOperation extends _i1.HttpOperation< - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput> { +class FlattenedXmlMapOperation + extends + _i1.HttpOperation< + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput + > { /// Flattened maps FlattenedXmlMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation< FlattenedXmlMapInputOutput buildOutput( FlattenedXmlMapInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapInputOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart index 4183c5dcf3..51fa740bf7 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.flattened_xml_map_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlName -class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput> { +class FlattenedXmlMapWithXmlNameOperation + extends + _i1.HttpOperation< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput + > { /// Flattened maps with @xmlName FlattenedXmlMapWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput>> protocols = [ + _i1.HttpProtocol< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +57,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +87,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNameInputOutput buildOutput( FlattenedXmlMapWithXmlNameInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +111,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart index 1b74e37283..9e3e5bbf66 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.flattened_xml_map_with_xml_namespace_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlNamespace and @xmlName -class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput> { +class FlattenedXmlMapWithXmlNamespaceOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > { /// Flattened maps with @xmlNamespace and @xmlName FlattenedXmlMapWithXmlNamespaceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -67,9 +74,9 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/FlattenedXmlMapWithXmlNamespace'; - }); + b.method = 'POST'; + b.path = r'/FlattenedXmlMapWithXmlNamespace'; + }); @override int successCode([FlattenedXmlMapWithXmlNamespaceOutput? output]) => 200; @@ -78,11 +85,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNamespaceOutput buildOutput( FlattenedXmlMapWithXmlNamespaceOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNamespaceOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +109,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart index 52924e7b67..4d17fce067 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/fractional_seconds_outpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,9 +72,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/FractionalSeconds'; - }); + b.method = 'POST'; + b.path = r'/FractionalSeconds'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -70,11 +83,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -98,11 +107,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart index 237277f5a7..7bbb2d82b5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,29 +15,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,9 +76,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/GreetingWithErrors'; - }); + b.method = 'PUT'; + b.path = r'/GreetingWithErrors'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -74,35 +87,31 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - statusCode: 403, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - statusCode: 400, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restxml', + shape: 'ComplexError', + ), + _i1.ErrorKind.client, + ComplexError, + statusCode: 403, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restxml', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + statusCode: 400, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -123,11 +132,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart index 559a523aa1..2f7d32be0c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_payload_traits_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,30 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a blob shape in the payload. In this example, no XML document is synthesized because the payload is not a structure or a union type. -class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, - HttpPayloadTraitsInputOutput, _i2.Uint8List, HttpPayloadTraitsInputOutput> { +class HttpPayloadTraitsOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > { /// This examples serializes a blob shape in the payload. In this example, no XML document is synthesized because the payload is not a structure or a union type. HttpPayloadTraitsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpPayloadTraitsInputOutput, - _i2.Uint8List, HttpPayloadTraitsInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +93,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, HttpPayloadTraitsInputOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadTraitsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +117,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart index e47f377b83..9b5c7ff0dc 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_payload_traits_with_media_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. -class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> { +class HttpPayloadTraitsWithMediaTypeOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > { /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. HttpPayloadTraitsWithMediaTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -52,7 +59,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'text/plain', noErrorWrapping: false, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,16 +77,16 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - HttpPayloadTraitsWithMediaTypeInputOutput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/HttpPayloadTraitsWithMediaType'; - if (input.foo != null) { - if (input.foo!.isNotEmpty) { - b.headers['X-Foo'] = input.foo!; - } - } - }); + HttpPayloadTraitsWithMediaTypeInputOutput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/HttpPayloadTraitsWithMediaType'; + if (input.foo != null) { + if (input.foo!.isNotEmpty) { + b.headers['X-Foo'] = input.foo!; + } + } + }); @override int successCode([HttpPayloadTraitsWithMediaTypeInputOutput? output]) => 200; @@ -89,10 +96,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, ) => - HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( - payload, - response, - ); + HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -116,11 +120,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart index a66f01e351..2d239bd67a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_payload_with_member_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML name on the member, changing the wrapper name. -class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput> { +class HttpPayloadWithMemberXmlNameOperation + extends + _i1.HttpOperation< + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput + > { /// The following example serializes a payload that uses an XML name on the member, changing the wrapper name. HttpPayloadWithMemberXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput>> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< HttpPayloadWithMemberXmlNameInputOutput buildOutput( PayloadWithXmlName? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithMemberXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithMemberXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart index 37e5330f45..e6a81d2e5a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_payload_with_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,33 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. -class HttpPayloadWithStructureOperation extends _i1.HttpOperation< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> { +class HttpPayloadWithStructureOperation + extends + _i1.HttpOperation< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > { /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. HttpPayloadWithStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,11 +88,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< HttpPayloadWithStructureInputOutput buildOutput( NestedPayload? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +112,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart index 0c55e30cb4..2ffb475a6e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_payload_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,33 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML name, changing the wrapper name. -class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput> { +class HttpPayloadWithXmlNameOperation + extends + _i1.HttpOperation< + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput + > { /// The following example serializes a payload that uses an XML name, changing the wrapper name. HttpPayloadWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,11 +88,7 @@ class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< HttpPayloadWithXmlNameInputOutput buildOutput( PayloadWithXmlName? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +112,7 @@ class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart index 8f458e4209..f5c6ccca45 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_payload_with_xml_namespace_and_prefix_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML namespace. -class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput> { +class HttpPayloadWithXmlNamespaceAndPrefixOperation + extends + _i1.HttpOperation< + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > { /// The following example serializes a payload that uses an XML namespace. HttpPayloadWithXmlNamespaceAndPrefixOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput>> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,11 +76,11 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - HttpPayloadWithXmlNamespaceAndPrefixInputOutput input) => - _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/HttpPayloadWithXmlNamespaceAndPrefix'; - }); + HttpPayloadWithXmlNamespaceAndPrefixInputOutput input, + ) => _i1.HttpRequest((b) { + b.method = 'PUT'; + b.path = r'/HttpPayloadWithXmlNamespaceAndPrefix'; + }); @override int successCode([HttpPayloadWithXmlNamespaceAndPrefixInputOutput? output]) => @@ -83,11 +90,10 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< HttpPayloadWithXmlNamespaceAndPrefixInputOutput buildOutput( PayloadWithXmlNamespaceAndPrefix? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromResponse( + payload, + response, + ); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +117,7 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart index e60dae1fb1..3c33a37a1d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_payload_with_xml_namespace_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML namespace. -class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput, - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput> { +class HttpPayloadWithXmlNamespaceOperation + extends + _i1.HttpOperation< + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput, + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput + > { /// The following example serializes a payload that uses an XML namespace. HttpPayloadWithXmlNamespaceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput, - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput>> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput, + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< HttpPayloadWithXmlNamespaceInputOutput buildOutput( PayloadWithXmlNamespace? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithXmlNamespaceInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart index b3f8686f07..64c02bbd43 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_prefix_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,11 +16,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) -class HttpPrefixHeadersOperation extends _i1.HttpOperation< - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput> { +class HttpPrefixHeadersOperation + extends + _i1.HttpOperation< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput + > { /// This examples adds headers to the input of a request and response by prefix./// /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) @@ -30,24 +33,28 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput>> protocols = [ + _i1.HttpProtocol< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -55,7 +62,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -97,11 +104,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< HttpPrefixHeadersInputOutput buildOutput( HttpPrefixHeadersInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPrefixHeadersInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -125,11 +128,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart index e21b6e1339..ca4d4250be 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_request_with_float_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/http_request_with_float_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithFloatLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithFloatLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +54,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,10 +81,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -99,11 +106,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart index 1136a47cfe..3241355c80 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_request_with_greedy_label_in_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,34 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/http_request_with_greedy import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithGreedyLabelInPathOperation + extends + _i1.HttpOperation< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithGreedyLabelInPathOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +54,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +81,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +106,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart index 1428155eb5..c2b30bfab5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_request_with_labels_and_timestamp_format_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,41 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests serialize different timestamp formats in the URI path. class HttpRequestWithLabelsAndTimestampFormatOperation - extends _i1.HttpOperation< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> { + extends + _i1.HttpOperation< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests serialize different timestamp formats in the URI path. HttpRequestWithLabelsAndTimestampFormatOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +56,7 @@ class HttpRequestWithLabelsAndTimestampFormatOperation responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,21 +74,18 @@ class HttpRequestWithLabelsAndTimestampFormatOperation @override _i1.HttpRequest buildRequest( - HttpRequestWithLabelsAndTimestampFormatInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; - }); + HttpRequestWithLabelsAndTimestampFormatInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +110,7 @@ class HttpRequestWithLabelsAndTimestampFormatOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart index 0aa89b92f5..b93bdfbf77 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_request_with_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. -class HttpRequestWithLabelsOperation extends _i1.HttpOperation< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. HttpRequestWithLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,21 +73,19 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(HttpRequestWithLabelsInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; - }); + _i1.HttpRequest buildRequest( + HttpRequestWithLabelsInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +110,7 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart index ca8f1312aa..f2f2705cf7 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.http_response_code_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/http_response_code_outpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - HttpResponseCodeOutputPayload, HttpResponseCodeOutput> { +class HttpResponseCodeOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > { HttpResponseCodeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,9 +72,9 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/HttpResponseCode'; - }); + b.method = 'PUT'; + b.path = r'/HttpResponseCode'; + }); @override int successCode([HttpResponseCodeOutput? output]) => output?.status ?? 200; @@ -70,11 +83,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, HttpResponseCodeOutput buildOutput( HttpResponseCodeOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.fromResponse( - payload, - response, - ); + ) => HttpResponseCodeOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -98,11 +107,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart index 7f758cbb0d..08fcc52d4d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.ignore_query_params_in_response_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. -class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput> { +class IgnoreQueryParamsInResponseOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > { /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. IgnoreQueryParamsInResponseOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,9 +74,9 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/IgnoreQueryParamsInResponse'; - }); + b.method = 'GET'; + b.path = r'/IgnoreQueryParamsInResponse'; + }); @override int successCode([IgnoreQueryParamsInResponseOutput? output]) => 200; @@ -75,11 +85,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< IgnoreQueryParamsInResponseOutput buildOutput( IgnoreQueryParamsInResponseOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoreQueryParamsInResponseOutput.fromResponse( - payload, - response, - ); + ) => IgnoreQueryParamsInResponseOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart index 7dd199b0cf..8a3a3c1fec 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.input_and_output_with_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. -class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> { +class InputAndOutputWithHeadersOperation + extends + _i1.HttpOperation< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > { /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. InputAndOutputWithHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo>> protocols = [ + _i1.HttpProtocol< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -132,13 +139,13 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< if (input.headerTimestampList != null) { if (input.headerTimestampList!.isNotEmpty) { b.headers['X-TimestampList'] = input.headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } } @@ -162,11 +169,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< InputAndOutputWithHeadersIo buildOutput( InputAndOutputWithHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.fromResponse( - payload, - response, - ); + ) => InputAndOutputWithHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -190,11 +193,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart index c8fc59dc08..b93a181914 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.nested_xml_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/nested_xml_maps_input_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class NestedXmlMapsOperation extends _i1.HttpOperation< - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput> { +class NestedXmlMapsOperation + extends + _i1.HttpOperation< + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput + > { NestedXmlMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class NestedXmlMapsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class NestedXmlMapsOperation extends _i1.HttpOperation< NestedXmlMapsInputOutput buildOutput( NestedXmlMapsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NestedXmlMapsInputOutput.fromResponse( - payload, - response, - ); + ) => NestedXmlMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class NestedXmlMapsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart index 1a3c7acea2..eafd871638 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,20 +20,21 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +42,7 @@ class NoInputAndNoOutputOperation responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,18 +60,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndNoOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndNoOutput'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart index 3187ea34ab..c1c3f2468c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -43,7 +56,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,9 +74,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndOutputOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndOutputOutput'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -72,11 +85,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart index 9f0652d389..293152c088 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.null_and_empty_headers_client_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersClientOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersClientOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,8 +89,9 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -92,11 +103,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -120,11 +127,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart index 13a1130b9f..46309821dd 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.null_and_empty_headers_server_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersServerOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersServerOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,8 +89,9 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -92,11 +103,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -120,11 +127,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart index 38ff1be480..f0dc3c632d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.omits_null_serializes_empty_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Omits null, but serializes empty string value. -class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> { +class OmitsNullSerializesEmptyStringOperation + extends + _i1.HttpOperation< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > { /// Omits null, but serializes empty string value. OmitsNullSerializesEmptyStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,16 +78,10 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/OmitsNullSerializesEmptyString'; if (input.nullValue != null) { - b.queryParameters.add( - 'Null', - input.nullValue!, - ); + b.queryParameters.add('Null', input.nullValue!); } if (input.emptyString != null) { - b.queryParameters.add( - 'Empty', - input.emptyString!, - ); + b.queryParameters.add('Empty', input.emptyString!); } }); @@ -88,10 +89,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -116,11 +114,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart index 16bf6972eb..f1c3833531 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/put_with_content_encodin import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,10 +87,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart index 6a98199744..81f466bdd5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +78,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/QueryIdempotencyTokenAutoFill'; if (input.token != null) { - b.queryParameters.add( - 'token', - input.token!, - ); + b.queryParameters.add('token', input.token!); } }); @@ -79,10 +86,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +111,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart index 4d78de73a5..f558a77cba 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.query_params_as_string_list_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/query_params_as_string_l import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> { +class QueryParamsAsStringListMapOperation + extends + _i1.HttpOperation< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > { QueryParamsAsStringListMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +54,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,18 +76,12 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/StringListMap'; if (input.qux != null) { - b.queryParameters.add( - 'corge', - input.qux!, - ); + b.queryParameters.add('corge', input.qux!); } if (input.foo != null) { for (var entry in input.foo!.toMap().entries) { for (var value in entry.value) { - b.queryParameters.add( - entry.key, - value, - ); + b.queryParameters.add(entry.key, value); } } } @@ -87,10 +91,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -115,11 +116,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart index d520d3e762..edfbf21e20 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.query_precedence_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/query_precedence_input.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryPrecedenceOperation extends _i1.HttpOperation< - QueryPrecedenceInputPayload, QueryPrecedenceInput, _i1.Unit, _i1.Unit> { +class QueryPrecedenceOperation + extends + _i1.HttpOperation< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > { QueryPrecedenceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,17 +76,11 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/Precedence'; if (input.foo != null) { - b.queryParameters.add( - 'bar', - input.foo!, - ); + b.queryParameters.add('bar', input.foo!); } if (input.baz != null) { for (var entry in input.baz!.toMap().entries) { - b.queryParameters.add( - entry.key, - entry.value, - ); + b.queryParameters.add(entry.key, entry.value); } } }); @@ -82,10 +89,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -110,11 +114,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart index d0a6439e09..0b95a638fd 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.recursive_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveShapesOperation extends _i1.HttpOperation< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> { +class RecursiveShapesOperation + extends + _i1.HttpOperation< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > { /// Recursive shapes RecursiveShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< RecursiveShapesInputOutput buildOutput( RecursiveShapesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveShapesInputOutput.fromResponse( - payload, - response, - ); + ) => RecursiveShapesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart index 092932f8c7..75d870882d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,35 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/simple_scalar_properties import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +55,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,11 +90,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +114,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart index 347fa33417..a99f8146ee 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.timestamp_format_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how timestamp request and response headers are serialized. -class TimestampFormatHeadersOperation extends _i1.HttpOperation< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> { +class TimestampFormatHeadersOperation + extends + _i1.HttpOperation< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > { /// The example tests how timestamp request and response headers are serialized. TimestampFormatHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo>> protocols = [ + _i1.HttpProtocol< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,40 +79,45 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< b.path = r'/TimestampFormatHeaders'; if (input.memberEpochSeconds != null) { b.headers['X-memberEpochSeconds'] = - _i1.Timestamp(input.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.memberHttpDate != null) { - b.headers['X-memberHttpDate'] = _i1.Timestamp(input.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-memberHttpDate'] = + _i1.Timestamp( + input.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.memberDateTime != null) { - b.headers['X-memberDateTime'] = _i1.Timestamp(input.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-memberDateTime'] = + _i1.Timestamp( + input.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (input.defaultFormat != null) { - b.headers['X-defaultFormat'] = _i1.Timestamp(input.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-defaultFormat'] = + _i1.Timestamp( + input.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetEpochSeconds != null) { b.headers['X-targetEpochSeconds'] = - _i1.Timestamp(input.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.targetHttpDate != null) { - b.headers['X-targetHttpDate'] = _i1.Timestamp(input.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-targetHttpDate'] = + _i1.Timestamp( + input.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetDateTime != null) { - b.headers['X-targetDateTime'] = _i1.Timestamp(input.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-targetDateTime'] = + _i1.Timestamp( + input.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } }); @@ -116,11 +128,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< TimestampFormatHeadersIo buildOutput( TimestampFormatHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.fromResponse( - payload, - response, - ); + ) => TimestampFormatHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -144,11 +152,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart index 6a37b6d897..a3a1d39f60 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_attributes_on_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes an XML attributes on a document targeted by httpPayload. -class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput, - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput> { +class XmlAttributesOnPayloadOperation + extends + _i1.HttpOperation< + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput, + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput + > { /// This example serializes an XML attributes on a document targeted by httpPayload. XmlAttributesOnPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput, - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput>> protocols = [ + _i1.HttpProtocol< + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput, + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< XmlAttributesOnPayloadInputOutput buildOutput( XmlAttributesInputOutput? payload, _i3.AWSBaseHttpResponse response, - ) => - XmlAttributesOnPayloadInputOutput.fromResponse( - payload, - response, - ); + ) => XmlAttributesOnPayloadInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart index a70a6243ca..d6b1a1fbec 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_attributes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes an XML attributes on synthesized document. -class XmlAttributesOperation extends _i1.HttpOperation< - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput> { +class XmlAttributesOperation + extends + _i1.HttpOperation< + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput + > { /// This example serializes an XML attributes on synthesized document. XmlAttributesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class XmlAttributesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class XmlAttributesOperation extends _i1.HttpOperation< XmlAttributesInputOutput buildOutput( XmlAttributesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlAttributesInputOutput.fromResponse( - payload, - response, - ); + ) => XmlAttributesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class XmlAttributesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart index 05cfad4376..933df962b4 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlBlobsOperation extends _i1.HttpOperation { +class XmlBlobsOperation + extends + _i1.HttpOperation< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > { /// Blobs are base64 encoded XmlBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlBlobsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlBlobsOperation extends _i1.HttpOperation - XmlBlobsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlBlobsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart index 4956f9b1ed..873a11d045 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_empty_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlEmptyBlobsOperation extends _i1.HttpOperation { +class XmlEmptyBlobsOperation + extends + _i1.HttpOperation< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > { /// Blobs are base64 encoded XmlEmptyBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlEmptyBlobsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlEmptyBlobsOperation extends _i1.HttpOperation - XmlBlobsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlEmptyBlobsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart index 98bedcb0ed..824a8ad030 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/xml_lists_input_output.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyListsOperation extends _i1.HttpOperation { +class XmlEmptyListsOperation + extends + _i1.HttpOperation< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > { XmlEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlEmptyListsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +85,7 @@ class XmlEmptyListsOperation extends _i1.HttpOperation - XmlListsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlListsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class XmlEmptyListsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart index 24b3b51195..077d9f505f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_empty_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/xml_maps_input_output.da import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyMapsOperation extends _i1.HttpOperation { +class XmlEmptyMapsOperation + extends + _i1.HttpOperation< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > { XmlEmptyMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlEmptyMapsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +85,7 @@ class XmlEmptyMapsOperation extends _i1.HttpOperation - XmlMapsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class XmlEmptyMapsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart index 57b72d0255..a55c39b8fc 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_empty_strings_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/xml_empty_strings_input_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyStringsOperation extends _i1.HttpOperation< - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput> { +class XmlEmptyStringsOperation + extends + _i1.HttpOperation< + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput + > { XmlEmptyStringsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class XmlEmptyStringsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class XmlEmptyStringsOperation extends _i1.HttpOperation< XmlEmptyStringsInputOutput buildOutput( XmlEmptyStringsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlEmptyStringsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlEmptyStringsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class XmlEmptyStringsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart index 73e3117eda..0f2fa45df2 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlEnumsOperation extends _i1.HttpOperation { +class XmlEnumsOperation + extends + _i1.HttpOperation< + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlEnumsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlEnumsOperation extends _i1.HttpOperation - XmlEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart index e78ab77b20..952fbff245 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlIntEnumsOperation extends _i1.HttpOperation { +class XmlIntEnumsOperation + extends + _i1.HttpOperation< + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlIntEnumsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlIntEnumsOperation extends _i1.HttpOperation - XmlIntEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlIntEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlIntEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart index 8d4b16ca83..80baf33b1d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. 9. Flattened XML list of structures -class XmlListsOperation extends _i1.HttpOperation { +class XmlListsOperation + extends + _i1.HttpOperation< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > { /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. 9. Flattened XML list of structures XmlListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlListsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlListsOperation extends _i1.HttpOperation - XmlListsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlListsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlListsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart index 1fc383737c..25e2fc17a9 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests basic map serialization. -class XmlMapsOperation extends _i1.HttpOperation { +class XmlMapsOperation + extends + _i1.HttpOperation< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > { /// The example tests basic map serialization. XmlMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlMapsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlMapsOperation extends _i1.HttpOperation - XmlMapsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlMapsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart index f7d46fa7ec..4d63565856 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_maps_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/xml_maps_xml_name_input_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlMapsXmlNameOperation extends _i1.HttpOperation< - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput> { +class XmlMapsXmlNameOperation + extends + _i1.HttpOperation< + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput + > { XmlMapsXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation< XmlMapsXmlNameInputOutput buildOutput( XmlMapsXmlNameInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart index 59629b9330..a32f3c1e8a 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_namespaces_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/xml_namespaces_input_out import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlNamespacesOperation extends _i1.HttpOperation< - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput> { +class XmlNamespacesOperation + extends + _i1.HttpOperation< + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput + > { XmlNamespacesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation< XmlNamespacesInputOutput buildOutput( XmlNamespacesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlNamespacesInputOutput.fromResponse( - payload, - response, - ); + ) => XmlNamespacesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart index 0d8fa062b5..0336742d7e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class XmlTimestampsOperation extends _i1.HttpOperation< - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput> { +class XmlTimestampsOperation + extends + _i1.HttpOperation< + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. XmlTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation< XmlTimestampsInputOutput buildOutput( XmlTimestampsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlTimestampsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlTimestampsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart index b0c3a3f8f2..b1128b41ce 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.operation.xml_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,42 @@ import 'package:rest_xml_v1/src/rest_xml_protocol/model/xml_unions_input_output. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlUnionsOperation extends _i1.HttpOperation { +class XmlUnionsOperation + extends + _i1.HttpOperation< + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput + > { XmlUnionsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlUnionsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +85,7 @@ class XmlUnionsOperation extends _i1.HttpOperation - XmlUnionsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlUnionsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class XmlUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart index 7aafbbb62b..96506b4063 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.rest_xml_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -124,11 +124,11 @@ class RestXmlProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -150,10 +150,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a body that uses an XML name, changing the wrapper name. @@ -166,10 +163,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). @@ -182,10 +176,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. @@ -198,23 +189,18 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. @@ -227,10 +213,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -239,10 +222,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelHeaderOperation( @@ -254,10 +234,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -269,10 +246,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps @@ -285,15 +259,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps with @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlName( + flattenedXmlMapWithXmlName( FlattenedXmlMapWithXmlNameInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -302,51 +273,41 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps with @xmlNamespace and @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { + flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { return FlattenedXmlMapWithXmlNamespaceOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This examples serializes a blob shape in the payload. In this example, no XML document is synthesized because the payload is not a structure or a union type. @@ -359,15 +320,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. _i2.SmithyOperation - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -376,15 +334,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML name on the member, changing the wrapper name. _i2.SmithyOperation - httpPayloadWithMemberXmlName( + httpPayloadWithMemberXmlName( HttpPayloadWithMemberXmlNameInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -393,15 +348,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. _i2.SmithyOperation - httpPayloadWithStructure( + httpPayloadWithStructure( HttpPayloadWithStructureInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -410,10 +362,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML name, changing the wrapper name. @@ -426,15 +375,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML namespace. _i2.SmithyOperation - httpPayloadWithXmlNamespace( + httpPayloadWithXmlNamespace( HttpPayloadWithXmlNamespaceInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -443,15 +389,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML namespace. _i2.SmithyOperation - httpPayloadWithXmlNamespaceAndPrefix( + httpPayloadWithXmlNamespaceAndPrefix( HttpPayloadWithXmlNamespaceAndPrefixInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -460,10 +403,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples adds headers to the input of a request and response by prefix./// @@ -479,10 +419,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithFloatLabels( @@ -494,10 +431,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithGreedyLabelInPath( @@ -509,10 +443,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. @@ -525,10 +456,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests serialize different timestamp formats in the URI path. @@ -541,37 +469,29 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation httpResponseCode( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation httpResponseCode({ + _i1.AWSHttpClient? client, + }) { return HttpResponseCodeOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. _i2.SmithyOperation - ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { + ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { return IgnoreQueryParamsInResponseOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. @@ -584,10 +504,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation nestedXmlMaps( @@ -599,10 +516,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -612,24 +526,19 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -642,10 +551,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -658,10 +564,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Omits null, but serializes empty string value. @@ -674,10 +577,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -689,10 +589,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -705,10 +602,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryParamsAsStringListMap( @@ -720,10 +614,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryPrecedence( @@ -735,10 +626,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes @@ -751,10 +639,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation simpleScalarProperties( @@ -766,10 +651,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how timestamp request and response headers are serialized. @@ -782,10 +664,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes an XML attributes on synthesized document. @@ -798,10 +677,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes an XML attributes on a document targeted by httpPayload. @@ -814,10 +690,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Blobs are base64 encoded @@ -830,10 +703,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Blobs are base64 encoded @@ -846,10 +716,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlEmptyLists( @@ -861,10 +728,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlEmptyMaps( @@ -876,10 +740,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlEmptyStrings( @@ -891,10 +752,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -907,10 +765,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -923,10 +778,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. 9. Flattened XML list of structures @@ -939,10 +791,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests basic map serialization. @@ -955,10 +804,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlMapsXmlName( @@ -970,10 +816,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlNamespaces( @@ -985,10 +828,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. @@ -1001,10 +841,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlUnions( @@ -1016,9 +853,6 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart index 39f3871fcc..bc0cffbff2 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.rest_xml_protocol.rest_xml_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -86,11 +86,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/AllQueryStringTypesInput', service.allQueryStringTypes, ); - router.add( - 'PUT', - r'/BodyWithXmlName', - service.bodyWithXmlName, - ); + router.add('PUT', r'/BodyWithXmlName', service.bodyWithXmlName); router.add( 'GET', r'/ConstantAndVariableQueryString?foo=bar', @@ -101,21 +97,13 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/ConstantQueryString/?foo=bar&hello', service.constantQueryString, ); - router.add( - 'POST', - r'/DatetimeOffsets', - service.datetimeOffsets, - ); + router.add('POST', r'/DatetimeOffsets', service.datetimeOffsets); router.add( 'POST', r'/EmptyInputAndEmptyOutput', service.emptyInputAndEmptyOutput, ); - router.add( - 'POST', - r'/EndpointOperation', - service.endpointOperation, - ); + router.add('POST', r'/EndpointOperation', service.endpointOperation); router.add( 'POST', r'/EndpointWithHostLabelHeaderOperation', @@ -126,11 +114,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/EndpointWithHostLabelOperation', service.endpointWithHostLabelOperation, ); - router.add( - 'POST', - r'/FlattenedXmlMap', - service.flattenedXmlMap, - ); + router.add('POST', r'/FlattenedXmlMap', service.flattenedXmlMap); router.add( 'POST', r'/FlattenedXmlMapWithXmlName', @@ -141,21 +125,9 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/FlattenedXmlMapWithXmlNamespace', service.flattenedXmlMapWithXmlNamespace, ); - router.add( - 'POST', - r'/FractionalSeconds', - service.fractionalSeconds, - ); - router.add( - 'PUT', - r'/GreetingWithErrors', - service.greetingWithErrors, - ); - router.add( - 'POST', - r'/HttpPayloadTraits', - service.httpPayloadTraits, - ); + router.add('POST', r'/FractionalSeconds', service.fractionalSeconds); + router.add('PUT', r'/GreetingWithErrors', service.greetingWithErrors); + router.add('POST', r'/HttpPayloadTraits', service.httpPayloadTraits); router.add( 'POST', r'/HttpPayloadTraitsWithMediaType', @@ -186,11 +158,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/HttpPayloadWithXmlNamespaceAndPrefix', service.httpPayloadWithXmlNamespaceAndPrefix, ); - router.add( - 'GET', - r'/HttpPrefixHeaders', - service.httpPrefixHeaders, - ); + router.add('GET', r'/HttpPrefixHeaders', service.httpPrefixHeaders); router.add( 'GET', r'/FloatHttpLabels//', @@ -211,11 +179,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/HttpRequestWithLabelsAndTimestampFormat///////', service.httpRequestWithLabelsAndTimestampFormat, ); - router.add( - 'PUT', - r'/HttpResponseCode', - service.httpResponseCode, - ); + router.add('PUT', r'/HttpResponseCode', service.httpResponseCode); router.add( 'GET', r'/IgnoreQueryParamsInResponse', @@ -226,21 +190,9 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/InputAndOutputWithHeaders', service.inputAndOutputWithHeaders, ); - router.add( - 'POST', - r'/NestedXmlMaps', - service.nestedXmlMaps, - ); - router.add( - 'POST', - r'/NoInputAndNoOutput', - service.noInputAndNoOutput, - ); - router.add( - 'POST', - r'/NoInputAndOutputOutput', - service.noInputAndOutput, - ); + router.add('POST', r'/NestedXmlMaps', service.nestedXmlMaps); + router.add('POST', r'/NoInputAndNoOutput', service.noInputAndNoOutput); + router.add('POST', r'/NoInputAndOutputOutput', service.noInputAndOutput); router.add( 'GET', r'/NullAndEmptyHeadersClient', @@ -266,21 +218,9 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/QueryIdempotencyTokenAutoFill', service.queryIdempotencyTokenAutoFill, ); - router.add( - 'POST', - r'/StringListMap', - service.queryParamsAsStringListMap, - ); - router.add( - 'POST', - r'/Precedence', - service.queryPrecedence, - ); - router.add( - 'PUT', - r'/RecursiveShapes', - service.recursiveShapes, - ); + router.add('POST', r'/StringListMap', service.queryParamsAsStringListMap); + router.add('POST', r'/Precedence', service.queryPrecedence); + router.add('PUT', r'/RecursiveShapes', service.recursiveShapes); router.add( 'PUT', r'/SimpleScalarProperties', @@ -291,81 +231,25 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/TimestampFormatHeaders', service.timestampFormatHeaders, ); - router.add( - 'PUT', - r'/XmlAttributes', - service.xmlAttributes, - ); + router.add('PUT', r'/XmlAttributes', service.xmlAttributes); router.add( 'PUT', r'/XmlAttributesOnPayload', service.xmlAttributesOnPayload, ); - router.add( - 'POST', - r'/XmlBlobs', - service.xmlBlobs, - ); - router.add( - 'POST', - r'/XmlEmptyBlobs', - service.xmlEmptyBlobs, - ); - router.add( - 'PUT', - r'/XmlEmptyLists', - service.xmlEmptyLists, - ); - router.add( - 'POST', - r'/XmlEmptyMaps', - service.xmlEmptyMaps, - ); - router.add( - 'PUT', - r'/XmlEmptyStrings', - service.xmlEmptyStrings, - ); - router.add( - 'PUT', - r'/XmlEnums', - service.xmlEnums, - ); - router.add( - 'PUT', - r'/XmlIntEnums', - service.xmlIntEnums, - ); - router.add( - 'PUT', - r'/XmlLists', - service.xmlLists, - ); - router.add( - 'POST', - r'/XmlMaps', - service.xmlMaps, - ); - router.add( - 'POST', - r'/XmlMapsXmlName', - service.xmlMapsXmlName, - ); - router.add( - 'POST', - r'/XmlNamespaces', - service.xmlNamespaces, - ); - router.add( - 'POST', - r'/XmlTimestamps', - service.xmlTimestamps, - ); - router.add( - 'PUT', - r'/XmlUnions', - service.xmlUnions, - ); + router.add('POST', r'/XmlBlobs', service.xmlBlobs); + router.add('POST', r'/XmlEmptyBlobs', service.xmlEmptyBlobs); + router.add('PUT', r'/XmlEmptyLists', service.xmlEmptyLists); + router.add('POST', r'/XmlEmptyMaps', service.xmlEmptyMaps); + router.add('PUT', r'/XmlEmptyStrings', service.xmlEmptyStrings); + router.add('PUT', r'/XmlEnums', service.xmlEnums); + router.add('PUT', r'/XmlIntEnums', service.xmlIntEnums); + router.add('PUT', r'/XmlLists', service.xmlLists); + router.add('POST', r'/XmlMaps', service.xmlMaps); + router.add('POST', r'/XmlMapsXmlName', service.xmlMapsXmlName); + router.add('POST', r'/XmlNamespaces', service.xmlNamespaces); + router.add('POST', r'/XmlTimestamps', service.xmlTimestamps); + router.add('PUT', r'/XmlUnions', service.xmlUnions); return router; }(); @@ -393,10 +277,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { EmptyInputAndEmptyOutputInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelHeaderOperation( HostLabelHeaderInput input, _i1.Context context, @@ -414,10 +295,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - flattenedXmlMapWithXmlNamespace( - _i1.Unit input, - _i1.Context context, - ); + flattenedXmlMapWithXmlNamespace(_i1.Unit input, _i1.Context context); _i3.Future fractionalSeconds( _i1.Unit input, _i1.Context context, @@ -431,12 +309,12 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, _i1.Context context, ); _i3.Future - httpPayloadWithMemberXmlName( + httpPayloadWithMemberXmlName( HttpPayloadWithMemberXmlNameInputOutput input, _i1.Context context, ); @@ -449,12 +327,12 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - httpPayloadWithXmlNamespace( + httpPayloadWithXmlNamespace( HttpPayloadWithXmlNamespaceInputOutput input, _i1.Context context, ); _i3.Future - httpPayloadWithXmlNamespaceAndPrefix( + httpPayloadWithXmlNamespaceAndPrefix( HttpPayloadWithXmlNamespaceAndPrefixInputOutput input, _i1.Context context, ); @@ -494,10 +372,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { NestedXmlMapsInputOutput input, _i1.Context context, ); - _i3.Future<_i1.Unit> noInputAndNoOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> noInputAndNoOutput(_i1.Unit input, _i1.Context context); _i3.Future noInputAndOutput( _i1.Unit input, _i1.Context context, @@ -612,149 +487,187 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final RestXmlProtocolServerBase service; late final _i1.HttpProtocol< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> _allQueryStringTypesProtocol = _i2.RestXmlProtocol( + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + _allQueryStringTypesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput> _bodyWithXmlNameProtocol = - _i2.RestXmlProtocol( + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput + > + _bodyWithXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> _constantAndVariableQueryStringProtocol = _i2.RestXmlProtocol( + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantAndVariableQueryStringProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> _constantQueryStringProtocol = _i2.RestXmlProtocol( + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantQueryStringProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput> _datetimeOffsetsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + _datetimeOffsetsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> _emptyInputAndEmptyOutputProtocol = - _i2.RestXmlProtocol( + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + _emptyInputAndEmptyOutputProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.RestXmlProtocol( + _endpointOperationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol _endpointWithHostLabelHeaderOperationProtocol = - _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + HostLabelHeaderInputPayload, + HostLabelHeaderInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelHeaderOperationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1 - .HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + HostLabelInput, + HostLabelInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput> _flattenedXmlMapProtocol = - _i2.RestXmlProtocol( + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput + > + _flattenedXmlMapProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput> - _flattenedXmlMapWithXmlNameProtocol = _i2.RestXmlProtocol( + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput + > + _flattenedXmlMapWithXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput> - _flattenedXmlMapWithXmlNamespaceProtocol = _i2.RestXmlProtocol( + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > + _flattenedXmlMapWithXmlNamespaceProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput> _fractionalSecondsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + _fractionalSecondsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> - _greetingWithErrorsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i5.Uint8List, HttpPayloadTraitsInputOutput, - _i5.Uint8List, HttpPayloadTraitsInputOutput> - _httpPayloadTraitsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i5.Uint8List, + HttpPayloadTraitsInputOutput, + _i5.Uint8List, + HttpPayloadTraitsInputOutput + > + _httpPayloadTraitsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - _i5.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i5.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> - _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestXmlProtocol( + _i5.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i5.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'text/plain', @@ -762,411 +675,487 @@ class _RestXmlProtocolServer extends _i1.HttpServer { ); late final _i1.HttpProtocol< - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput> - _httpPayloadWithMemberXmlNameProtocol = _i2.RestXmlProtocol( + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput + > + _httpPayloadWithMemberXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> - _httpPayloadWithStructureProtocol = _i2.RestXmlProtocol( + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + _httpPayloadWithStructureProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput> _httpPayloadWithXmlNameProtocol = - _i2.RestXmlProtocol( + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput + > + _httpPayloadWithXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput, - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput> - _httpPayloadWithXmlNamespaceProtocol = _i2.RestXmlProtocol( + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput, + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput + > + _httpPayloadWithXmlNamespaceProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput> - _httpPayloadWithXmlNamespaceAndPrefixProtocol = _i2.RestXmlProtocol( + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > + _httpPayloadWithXmlNamespaceAndPrefixProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput> _httpPrefixHeadersProtocol = - _i2.RestXmlProtocol( + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput + > + _httpPrefixHeadersProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithFloatLabelsProtocol = _i2.RestXmlProtocol( + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithFloatLabelsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit> _httpRequestWithGreedyLabelInPathProtocol = _i2.RestXmlProtocol( + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithGreedyLabelInPathProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsProtocol = _i2.RestXmlProtocol( + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsAndTimestampFormatProtocol = - _i2.RestXmlProtocol( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsAndTimestampFormatProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput> _httpResponseCodeProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + _httpResponseCodeProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - IgnoreQueryParamsInResponseOutput, IgnoreQueryParamsInResponseOutput> - _ignoreQueryParamsInResponseProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + _ignoreQueryParamsInResponseProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> _inputAndOutputWithHeadersProtocol = - _i2.RestXmlProtocol( + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + _inputAndOutputWithHeadersProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput> _nestedXmlMapsProtocol = _i2.RestXmlProtocol( + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput + > + _nestedXmlMapsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _noInputAndNoOutputProtocol = _i2.RestXmlProtocol( + _noInputAndNoOutputProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput> _noInputAndOutputProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + _noInputAndOutputProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersClientProtocol = - _i2.RestXmlProtocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersClientProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersServerProtocol = - _i2.RestXmlProtocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersServerProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> _omitsNullSerializesEmptyStringProtocol = _i2.RestXmlProtocol( + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + _omitsNullSerializesEmptyStringProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.RestXmlProtocol( + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> _queryIdempotencyTokenAutoFillProtocol = _i2.RestXmlProtocol( + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + _queryIdempotencyTokenAutoFillProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> _queryParamsAsStringListMapProtocol = _i2.RestXmlProtocol( + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + _queryParamsAsStringListMapProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol _queryPrecedenceProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + _queryPrecedenceProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> _recursiveShapesProtocol = - _i2.RestXmlProtocol( + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + _recursiveShapesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.RestXmlProtocol( + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> _timestampFormatHeadersProtocol = - _i2.RestXmlProtocol( + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + _timestampFormatHeadersProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput> _xmlAttributesProtocol = _i2.RestXmlProtocol( + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput + > + _xmlAttributesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput, - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput> _xmlAttributesOnPayloadProtocol = - _i2.RestXmlProtocol( + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput, + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput + > + _xmlAttributesOnPayloadProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput> _xmlBlobsProtocol = _i2.RestXmlProtocol( + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + _xmlBlobsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput> _xmlEmptyBlobsProtocol = _i2.RestXmlProtocol( + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + _xmlEmptyBlobsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput> _xmlEmptyListsProtocol = _i2.RestXmlProtocol( + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + _xmlEmptyListsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput> _xmlEmptyMapsProtocol = _i2.RestXmlProtocol( + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + _xmlEmptyMapsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput> _xmlEmptyStringsProtocol = - _i2.RestXmlProtocol( + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput + > + _xmlEmptyStringsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlEnumsInputOutput, - XmlEnumsInputOutput, - XmlEnumsInputOutput, - XmlEnumsInputOutput> _xmlEnumsProtocol = _i2.RestXmlProtocol( + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput + > + _xmlEnumsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlIntEnumsInputOutput, - XmlIntEnumsInputOutput, - XmlIntEnumsInputOutput, - XmlIntEnumsInputOutput> _xmlIntEnumsProtocol = _i2.RestXmlProtocol( + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput + > + _xmlIntEnumsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput> _xmlListsProtocol = _i2.RestXmlProtocol( + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + _xmlListsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput> _xmlMapsProtocol = _i2.RestXmlProtocol( + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + _xmlMapsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput> _xmlMapsXmlNameProtocol = _i2.RestXmlProtocol( + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput + > + _xmlMapsXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput> _xmlNamespacesProtocol = _i2.RestXmlProtocol( + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput + > + _xmlNamespacesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput> _xmlTimestampsProtocol = _i2.RestXmlProtocol( + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput + > + _xmlTimestampsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlUnionsInputOutput, - XmlUnionsInputOutput, - XmlUnionsInputOutput, - XmlUnionsInputOutput> _xmlUnionsProtocol = _i2.RestXmlProtocol( + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput + > + _xmlUnionsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, @@ -1180,25 +1169,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _allQueryStringTypesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(AllQueryStringTypesInputPayload), - ) as AllQueryStringTypesInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(AllQueryStringTypesInputPayload), + ) + as AllQueryStringTypesInputPayload); final input = AllQueryStringTypesInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.allQueryStringTypes( - input, - context, - ); + final output = await service.allQueryStringTypes(input, context); const statusCode = 200; final body = await _allQueryStringTypesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1206,10 +1190,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1221,25 +1202,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _bodyWithXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(BodyWithXmlNameInputOutput), - ) as BodyWithXmlNameInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(BodyWithXmlNameInputOutput), + ) + as BodyWithXmlNameInputOutput); final input = BodyWithXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.bodyWithXmlName( - input, - context, - ); + final output = await service.bodyWithXmlName(input, context); const statusCode = 200; final body = await _bodyWithXmlNameProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - BodyWithXmlNameInputOutput, - [FullType(BodyWithXmlNameInputOutput)], - ), + specifiedType: const FullType(BodyWithXmlNameInputOutput, [ + FullType(BodyWithXmlNameInputOutput), + ]), ); return _i4.Response( statusCode, @@ -1247,27 +1225,27 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> constantAndVariableQueryString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _constantAndVariableQueryStringProtocol.contentType; try { - final payload = (await _constantAndVariableQueryStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(ConstantAndVariableQueryStringInputPayload), - ) as ConstantAndVariableQueryStringInputPayload); + final payload = + (await _constantAndVariableQueryStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + ConstantAndVariableQueryStringInputPayload, + ), + ) + as ConstantAndVariableQueryStringInputPayload); final input = ConstantAndVariableQueryStringInput.fromRequest( payload, awsRequest, @@ -1280,22 +1258,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _constantAndVariableQueryStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1310,25 +1282,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _constantQueryStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ConstantQueryStringInputPayload), - ) as ConstantQueryStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(ConstantQueryStringInputPayload), + ) + as ConstantQueryStringInputPayload); final input = ConstantQueryStringInput.fromRequest( payload, awsRequest, labels: {'hello': hello}, ); - final output = await service.constantQueryString( - input, - context, - ); + final output = await service.constantQueryString(input, context); const statusCode = 200; final body = await _constantQueryStringProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1336,10 +1303,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1351,21 +1315,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _datetimeOffsetsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.datetimeOffsets( - input, - context, - ); + final output = await service.datetimeOffsets(input, context); const statusCode = 200; final body = await _datetimeOffsetsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DatetimeOffsetsOutput, - [FullType(DatetimeOffsetsOutput)], - ), + specifiedType: const FullType(DatetimeOffsetsOutput, [ + FullType(DatetimeOffsetsOutput), + ]), ); return _i4.Response( statusCode, @@ -1373,10 +1334,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1388,37 +1346,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _emptyInputAndEmptyOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EmptyInputAndEmptyOutputInput), - ) as EmptyInputAndEmptyOutputInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(EmptyInputAndEmptyOutputInput), + ) + as EmptyInputAndEmptyOutputInput); final input = EmptyInputAndEmptyOutputInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.emptyInputAndEmptyOutput( - input, - context, - ); + final output = await service.emptyInputAndEmptyOutput(input, context); const statusCode = 200; - final body = - await _emptyInputAndEmptyOutputProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - EmptyInputAndEmptyOutputOutput, - [FullType(EmptyInputAndEmptyOutputOutput)], - ), - ); + final body = await _emptyInputAndEmptyOutputProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(EmptyInputAndEmptyOutputOutput, [ + FullType(EmptyInputAndEmptyOutputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1430,21 +1382,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1452,26 +1399,25 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelHeaderOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelHeaderOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelHeaderOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelHeaderInputPayload), - ) as HostLabelHeaderInputPayload); + final payload = + (await _endpointWithHostLabelHeaderOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelHeaderInputPayload), + ) + as HostLabelHeaderInputPayload); final input = HostLabelHeaderInput.fromRequest( payload, awsRequest, @@ -1485,43 +1431,35 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _endpointWithHostLabelHeaderOperationProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelInput), - ) as HostLabelInput); - final input = HostLabelInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelInput), + ) + as HostLabelInput); + final input = HostLabelInput.fromRequest(payload, awsRequest, labels: {}); final output = await service.endpointWithHostLabelOperation( input, context, @@ -1529,22 +1467,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1556,25 +1488,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _flattenedXmlMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(FlattenedXmlMapInputOutput), - ) as FlattenedXmlMapInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(FlattenedXmlMapInputOutput), + ) + as FlattenedXmlMapInputOutput); final input = FlattenedXmlMapInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.flattenedXmlMap( - input, - context, - ); + final output = await service.flattenedXmlMap(input, context); const statusCode = 200; final body = await _flattenedXmlMapProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FlattenedXmlMapInputOutput, - [FullType(FlattenedXmlMapInputOutput)], - ), + specifiedType: const FullType(FlattenedXmlMapInputOutput, [ + FullType(FlattenedXmlMapInputOutput), + ]), ); return _i4.Response( statusCode, @@ -1582,15 +1511,13 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> flattenedXmlMapWithXmlName( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -1598,53 +1525,52 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _flattenedXmlMapWithXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(FlattenedXmlMapWithXmlNameInputOutput), - ) as FlattenedXmlMapWithXmlNameInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + FlattenedXmlMapWithXmlNameInputOutput, + ), + ) + as FlattenedXmlMapWithXmlNameInputOutput); final input = FlattenedXmlMapWithXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.flattenedXmlMapWithXmlName( - input, - context, - ); + final output = await service.flattenedXmlMapWithXmlName(input, context); const statusCode = 200; - final body = - await _flattenedXmlMapWithXmlNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - FlattenedXmlMapWithXmlNameInputOutput, - [FullType(FlattenedXmlMapWithXmlNameInputOutput)], - ), - ); + final body = await _flattenedXmlMapWithXmlNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + FlattenedXmlMapWithXmlNameInputOutput, + [FullType(FlattenedXmlMapWithXmlNameInputOutput)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> flattenedXmlMapWithXmlNamespace( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _flattenedXmlMapWithXmlNamespaceProtocol.contentType; try { - final payload = (await _flattenedXmlMapWithXmlNamespaceProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _flattenedXmlMapWithXmlNamespaceProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; final output = await service.flattenedXmlMapWithXmlNamespace( input, @@ -1653,22 +1579,19 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _flattenedXmlMapWithXmlNamespaceProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - FlattenedXmlMapWithXmlNamespaceOutput, - [FullType(FlattenedXmlMapWithXmlNamespaceOutput)], - ), - ); + output, + specifiedType: const FullType( + FlattenedXmlMapWithXmlNamespaceOutput, + [FullType(FlattenedXmlMapWithXmlNamespaceOutput)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1680,21 +1603,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _fractionalSecondsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.fractionalSeconds( - input, - context, - ); + final output = await service.fractionalSeconds(input, context); const statusCode = 200; final body = await _fractionalSecondsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FractionalSecondsOutput, - [FullType(FractionalSecondsOutput)], - ), + specifiedType: const FullType(FractionalSecondsOutput, [ + FullType(FractionalSecondsOutput), + ]), ); return _i4.Response( statusCode, @@ -1702,10 +1622,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1717,21 +1634,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutputPayload)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -1742,10 +1656,9 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'ComplexError'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexErrorPayload)], - ), + specifiedType: const FullType(ComplexError, [ + FullType(ComplexErrorPayload), + ]), ); const statusCode = 403; return _i4.Response( @@ -1757,10 +1670,9 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'InvalidGreeting'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -1769,10 +1681,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1784,28 +1693,25 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPayloadTraitsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpPayloadTraitsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadTraits( - input, - context, - ); + final output = await service.httpPayloadTraits(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _httpPayloadTraitsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPayloadTraitsInputOutput, - [FullType.nullable(_i5.Uint8List)], - ), + specifiedType: const FullType(HttpPayloadTraitsInputOutput, [ + FullType.nullable(_i5.Uint8List), + ]), ); return _i4.Response( statusCode, @@ -1813,26 +1719,25 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadTraitsWithMediaType( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadTraitsWithMediaTypeProtocol.contentType; try { - final payload = (await _httpPayloadTraitsWithMediaTypeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + final payload = + (await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpPayloadTraitsWithMediaTypeInputOutput.fromRequest( payload, awsRequest, @@ -1848,66 +1753,59 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - HttpPayloadTraitsWithMediaTypeInputOutput, - [FullType.nullable(_i5.Uint8List)], - ), - ); + output, + specifiedType: const FullType( + HttpPayloadTraitsWithMediaTypeInputOutput, + [FullType.nullable(_i5.Uint8List)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadWithMemberXmlName( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadWithMemberXmlNameProtocol.contentType; try { - final payload = (await _httpPayloadWithMemberXmlNameProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadWithXmlName), - ) as PayloadWithXmlName?); + final payload = + (await _httpPayloadWithMemberXmlNameProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(PayloadWithXmlName), + ) + as PayloadWithXmlName?); final input = HttpPayloadWithMemberXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithMemberXmlName( - input, - context, - ); + final output = await service.httpPayloadWithMemberXmlName(input, context); const statusCode = 200; - final body = - await _httpPayloadWithMemberXmlNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithMemberXmlNameInputOutput, - [FullType.nullable(PayloadWithXmlName)], - ), - ); + final body = await _httpPayloadWithMemberXmlNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + HttpPayloadWithMemberXmlNameInputOutput, + [FullType.nullable(PayloadWithXmlName)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1919,37 +1817,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPayloadWithStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(NestedPayload), - ) as NestedPayload?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(NestedPayload), + ) + as NestedPayload?); final input = HttpPayloadWithStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithStructure( - input, - context, - ); + final output = await service.httpPayloadWithStructure(input, context); const statusCode = 200; - final body = - await _httpPayloadWithStructureProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithStructureInputOutput, - [FullType.nullable(NestedPayload)], - ), - ); + final body = await _httpPayloadWithStructureProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPayloadWithStructureInputOutput, [ + FullType.nullable(NestedPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1961,97 +1853,93 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPayloadWithXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadWithXmlName), - ) as PayloadWithXmlName?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(PayloadWithXmlName), + ) + as PayloadWithXmlName?); final input = HttpPayloadWithXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithXmlName( - input, - context, - ); + final output = await service.httpPayloadWithXmlName(input, context); const statusCode = 200; - final body = - await _httpPayloadWithXmlNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithXmlNameInputOutput, - [FullType.nullable(PayloadWithXmlName)], - ), - ); + final body = await _httpPayloadWithXmlNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPayloadWithXmlNameInputOutput, [ + FullType.nullable(PayloadWithXmlName), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadWithXmlNamespace( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadWithXmlNamespaceProtocol.contentType; try { - final payload = (await _httpPayloadWithXmlNamespaceProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadWithXmlNamespace), - ) as PayloadWithXmlNamespace?); + final payload = + (await _httpPayloadWithXmlNamespaceProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable( + PayloadWithXmlNamespace, + ), + ) + as PayloadWithXmlNamespace?); final input = HttpPayloadWithXmlNamespaceInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithXmlNamespace( - input, - context, - ); + final output = await service.httpPayloadWithXmlNamespace(input, context); const statusCode = 200; - final body = - await _httpPayloadWithXmlNamespaceProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithXmlNamespaceInputOutput, - [FullType.nullable(PayloadWithXmlNamespace)], - ), - ); + final body = await _httpPayloadWithXmlNamespaceProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + HttpPayloadWithXmlNamespaceInputOutput, + [FullType.nullable(PayloadWithXmlNamespace)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadWithXmlNamespaceAndPrefix( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadWithXmlNamespaceAndPrefixProtocol.contentType; try { - final payload = (await _httpPayloadWithXmlNamespaceAndPrefixProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType.nullable(PayloadWithXmlNamespaceAndPrefix), - ) as PayloadWithXmlNamespaceAndPrefix?); + final payload = + (await _httpPayloadWithXmlNamespaceAndPrefixProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable( + PayloadWithXmlNamespaceAndPrefix, + ), + ) + as PayloadWithXmlNamespaceAndPrefix?); final input = HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromRequest( payload, awsRequest, @@ -2065,22 +1953,19 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _httpPayloadWithXmlNamespaceAndPrefixProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - [FullType.nullable(PayloadWithXmlNamespaceAndPrefix)], - ), - ); + output, + specifiedType: const FullType( + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + [FullType.nullable(PayloadWithXmlNamespaceAndPrefix)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2092,28 +1977,27 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPrefixHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpPrefixHeadersInputOutputPayload), - ) as HttpPrefixHeadersInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpPrefixHeadersInputOutputPayload, + ), + ) + as HttpPrefixHeadersInputOutputPayload); final input = HttpPrefixHeadersInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPrefixHeaders( - input, - context, - ); + final output = await service.httpPrefixHeaders(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _httpPrefixHeadersProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPrefixHeadersInputOutput, - [FullType(HttpPrefixHeadersInputOutputPayload)], - ), + specifiedType: const FullType(HttpPrefixHeadersInputOutput, [ + FullType(HttpPrefixHeadersInputOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2121,10 +2005,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2140,40 +2021,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpRequestWithFloatLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithFloatLabelsInputPayload), - ) as HttpRequestWithFloatLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithFloatLabelsInputPayload, + ), + ) + as HttpRequestWithFloatLabelsInputPayload); final input = HttpRequestWithFloatLabelsInput.fromRequest( payload, awsRequest, - labels: { - 'float': float, - 'double': double, - }, - ); - final output = await service.httpRequestWithFloatLabels( - input, - context, + labels: {'float': float, 'double': double}, ); + final output = await service.httpRequestWithFloatLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithFloatLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithFloatLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2187,20 +2059,19 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _httpRequestWithGreedyLabelInPathProtocol.contentType; try { - final payload = (await _httpRequestWithGreedyLabelInPathProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithGreedyLabelInPathInputPayload), - ) as HttpRequestWithGreedyLabelInPathInputPayload); + final payload = + (await _httpRequestWithGreedyLabelInPathProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithGreedyLabelInPathInputPayload, + ), + ) + as HttpRequestWithGreedyLabelInPathInputPayload); final input = HttpRequestWithGreedyLabelInPathInput.fromRequest( payload, awsRequest, - labels: { - 'foo': foo, - 'baz': baz, - }, + labels: {'foo': foo, 'baz': baz}, ); final output = await service.httpRequestWithGreedyLabelInPath( input, @@ -2210,22 +2081,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _httpRequestWithGreedyLabelInPathProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2247,9 +2112,12 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpRequestWithLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithLabelsInputPayload), - ) as HttpRequestWithLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsInputPayload, + ), + ) + as HttpRequestWithLabelsInputPayload); final input = HttpRequestWithLabelsInput.fromRequest( payload, awsRequest, @@ -2264,29 +2132,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { 'timestamp': timestamp, }, ); - final output = await service.httpRequestWithLabels( - input, - context, - ); + final output = await service.httpRequestWithLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2305,13 +2164,15 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _httpRequestWithLabelsAndTimestampFormatProtocol.contentType; try { - final payload = (await _httpRequestWithLabelsAndTimestampFormatProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithLabelsAndTimestampFormatInputPayload), - ) as HttpRequestWithLabelsAndTimestampFormatInputPayload); + final payload = + (await _httpRequestWithLabelsAndTimestampFormatProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + ), + ) + as HttpRequestWithLabelsAndTimestampFormatInputPayload); final input = HttpRequestWithLabelsAndTimestampFormatInput.fromRequest( payload, awsRequest, @@ -2333,22 +2194,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _httpRequestWithLabelsAndTimestampFormatProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2360,21 +2215,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpResponseCodeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.httpResponseCode( - input, - context, - ); + final output = await service.httpResponseCode(input, context); const statusCode = 200; final body = await _httpResponseCodeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpResponseCodeOutput, - [FullType(HttpResponseCodeOutputPayload)], - ), + specifiedType: const FullType(HttpResponseCodeOutput, [ + FullType(HttpResponseCodeOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2382,54 +2234,48 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> ignoreQueryParamsInResponse( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _ignoreQueryParamsInResponseProtocol.contentType; try { - final payload = (await _ignoreQueryParamsInResponseProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _ignoreQueryParamsInResponseProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.ignoreQueryParamsInResponse( - input, - context, - ); + final output = await service.ignoreQueryParamsInResponse(input, context); const statusCode = 200; - final body = - await _ignoreQueryParamsInResponseProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - IgnoreQueryParamsInResponseOutput, - [FullType(IgnoreQueryParamsInResponseOutput)], - ), - ); + final body = await _ignoreQueryParamsInResponseProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(IgnoreQueryParamsInResponseOutput, [ + FullType(IgnoreQueryParamsInResponseOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> inputAndOutputWithHeaders( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2437,18 +2283,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _inputAndOutputWithHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(InputAndOutputWithHeadersIoPayload), - ) as InputAndOutputWithHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + InputAndOutputWithHeadersIoPayload, + ), + ) + as InputAndOutputWithHeadersIoPayload); final input = InputAndOutputWithHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.inputAndOutputWithHeaders( - input, - context, - ); + final output = await service.inputAndOutputWithHeaders(input, context); if (output.headerString != null) { context.response.headers['X-String'] = output.headerString!; } @@ -2504,13 +2350,13 @@ class _RestXmlProtocolServer extends _i1.HttpServer { if (output.headerTimestampList != null) { context.response.headers['X-TimestampList'] = output .headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } if (output.headerEnum != null) { @@ -2523,24 +2369,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { .join(', '); } const statusCode = 200; - final body = - await _inputAndOutputWithHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - InputAndOutputWithHeadersIo, - [FullType(InputAndOutputWithHeadersIoPayload)], - ), - ); + final body = await _inputAndOutputWithHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(InputAndOutputWithHeadersIo, [ + FullType(InputAndOutputWithHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2550,26 +2392,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _nestedXmlMapsProtocol.contentType; try { - final payload = (await _nestedXmlMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NestedXmlMapsInputOutput), - ) as NestedXmlMapsInputOutput); + final payload = + (await _nestedXmlMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(NestedXmlMapsInputOutput), + ) + as NestedXmlMapsInputOutput); final input = NestedXmlMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nestedXmlMaps( - input, - context, - ); + final output = await service.nestedXmlMaps(input, context); const statusCode = 200; final body = await _nestedXmlMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NestedXmlMapsInputOutput, - [FullType(NestedXmlMapsInputOutput)], - ), + specifiedType: const FullType(NestedXmlMapsInputOutput, [ + FullType(NestedXmlMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -2577,10 +2417,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2592,21 +2429,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _noInputAndNoOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndNoOutput( - input, - context, - ); + final output = await service.noInputAndNoOutput(input, context); const statusCode = 200; final body = await _noInputAndNoOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -2614,10 +2446,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2629,21 +2458,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _noInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndOutput( - input, - context, - ); + final output = await service.noInputAndOutput(input, context); const statusCode = 200; final body = await _noInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NoInputAndOutputOutput, - [FullType(NoInputAndOutputOutput)], - ), + specifiedType: const FullType(NoInputAndOutputOutput, [ + FullType(NoInputAndOutputOutput), + ]), ); return _i4.Response( statusCode, @@ -2651,15 +2477,13 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersClient( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2667,18 +2491,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _nullAndEmptyHeadersClientProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersClient( - input, - context, - ); + final output = await service.nullAndEmptyHeadersClient(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -2686,33 +2508,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersClientProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersClientProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersServer( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2720,18 +2540,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _nullAndEmptyHeadersServerProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersServer( - input, - context, - ); + final output = await service.nullAndEmptyHeadersServer(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -2739,45 +2557,45 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersServerProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersServerProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> omitsNullSerializesEmptyString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _omitsNullSerializesEmptyStringProtocol.contentType; try { - final payload = (await _omitsNullSerializesEmptyStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(OmitsNullSerializesEmptyStringInputPayload), - ) as OmitsNullSerializesEmptyStringInputPayload); + final payload = + (await _omitsNullSerializesEmptyStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + OmitsNullSerializesEmptyStringInputPayload, + ), + ) + as OmitsNullSerializesEmptyStringInputPayload); final input = OmitsNullSerializesEmptyStringInput.fromRequest( payload, awsRequest, @@ -2790,22 +2608,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _omitsNullSerializesEmptyStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2817,54 +2629,51 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInputPayload), - ) as PutWithContentEncodingInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + PutWithContentEncodingInputPayload, + ), + ) + as PutWithContentEncodingInputPayload); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryIdempotencyTokenAutoFill( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _queryIdempotencyTokenAutoFillProtocol.contentType; try { - final payload = (await _queryIdempotencyTokenAutoFillProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(QueryIdempotencyTokenAutoFillInputPayload), - ) as QueryIdempotencyTokenAutoFillInputPayload); + final payload = + (await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryIdempotencyTokenAutoFillInputPayload, + ), + ) + as QueryIdempotencyTokenAutoFillInputPayload); final input = QueryIdempotencyTokenAutoFillInput.fromRequest( payload, awsRequest, @@ -2875,29 +2684,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context, ); const statusCode = 200; - final body = - await _queryIdempotencyTokenAutoFillProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryParamsAsStringListMap( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2905,37 +2709,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _queryParamsAsStringListMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryParamsAsStringListMapInputPayload), - ) as QueryParamsAsStringListMapInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryParamsAsStringListMapInputPayload, + ), + ) + as QueryParamsAsStringListMapInputPayload); final input = QueryParamsAsStringListMapInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryParamsAsStringListMap( - input, - context, - ); + final output = await service.queryParamsAsStringListMap(input, context); const statusCode = 200; - final body = - await _queryParamsAsStringListMapProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryParamsAsStringListMapProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2947,25 +2745,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _queryPrecedenceProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryPrecedenceInputPayload), - ) as QueryPrecedenceInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(QueryPrecedenceInputPayload), + ) + as QueryPrecedenceInputPayload); final input = QueryPrecedenceInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryPrecedence( - input, - context, - ); + final output = await service.queryPrecedence(input, context); const statusCode = 200; final body = await _queryPrecedenceProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -2973,10 +2766,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2988,25 +2778,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _recursiveShapesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(RecursiveShapesInputOutput), - ) as RecursiveShapesInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(RecursiveShapesInputOutput), + ) + as RecursiveShapesInputOutput); final input = RecursiveShapesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.recursiveShapes( - input, - context, - ); + final output = await service.recursiveShapes(input, context); const statusCode = 200; final body = await _recursiveShapesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - RecursiveShapesInputOutput, - [FullType(RecursiveShapesInputOutput)], - ), + specifiedType: const FullType(RecursiveShapesInputOutput, [ + FullType(RecursiveShapesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3014,10 +2801,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3029,40 +2813,36 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutputPayload), - ) as SimpleScalarPropertiesInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutputPayload, + ), + ) + as SimpleScalarPropertiesInputOutputPayload); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutputPayload)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3074,79 +2854,73 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _timestampFormatHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TimestampFormatHeadersIoPayload), - ) as TimestampFormatHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(TimestampFormatHeadersIoPayload), + ) + as TimestampFormatHeadersIoPayload); final input = TimestampFormatHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.timestampFormatHeaders( - input, - context, - ); + final output = await service.timestampFormatHeaders(input, context); if (output.memberEpochSeconds != null) { context.response.headers['X-memberEpochSeconds'] = - _i1.Timestamp(output.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.memberHttpDate != null) { context.response.headers['X-memberHttpDate'] = - _i1.Timestamp(output.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.memberDateTime != null) { context.response.headers['X-memberDateTime'] = - _i1.Timestamp(output.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (output.defaultFormat != null) { context.response.headers['X-defaultFormat'] = - _i1.Timestamp(output.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetEpochSeconds != null) { context.response.headers['X-targetEpochSeconds'] = - _i1.Timestamp(output.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.targetHttpDate != null) { context.response.headers['X-targetHttpDate'] = - _i1.Timestamp(output.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetDateTime != null) { context.response.headers['X-targetDateTime'] = - _i1.Timestamp(output.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } const statusCode = 200; - final body = - await _timestampFormatHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - TimestampFormatHeadersIo, - [FullType(TimestampFormatHeadersIoPayload)], - ), - ); + final body = await _timestampFormatHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(TimestampFormatHeadersIo, [ + FullType(TimestampFormatHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3156,26 +2930,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlAttributesProtocol.contentType; try { - final payload = (await _xmlAttributesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlAttributesInputOutput), - ) as XmlAttributesInputOutput); + final payload = + (await _xmlAttributesProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlAttributesInputOutput), + ) + as XmlAttributesInputOutput); final input = XmlAttributesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlAttributes( - input, - context, - ); + final output = await service.xmlAttributes(input, context); const statusCode = 200; final body = await _xmlAttributesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlAttributesInputOutput, - [FullType(XmlAttributesInputOutput)], - ), + specifiedType: const FullType(XmlAttributesInputOutput, [ + FullType(XmlAttributesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3183,10 +2955,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3198,37 +2967,33 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _xmlAttributesOnPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(XmlAttributesInputOutput), - ) as XmlAttributesInputOutput?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable( + XmlAttributesInputOutput, + ), + ) + as XmlAttributesInputOutput?); final input = XmlAttributesOnPayloadInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlAttributesOnPayload( - input, - context, - ); + final output = await service.xmlAttributesOnPayload(input, context); const statusCode = 200; - final body = - await _xmlAttributesOnPayloadProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - XmlAttributesOnPayloadInputOutput, - [FullType.nullable(XmlAttributesInputOutput)], - ), - ); + final body = await _xmlAttributesOnPayloadProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(XmlAttributesOnPayloadInputOutput, [ + FullType.nullable(XmlAttributesInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3237,26 +3002,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlBlobsProtocol.contentType; try { - final payload = (await _xmlBlobsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlBlobsInputOutput), - ) as XmlBlobsInputOutput); + final payload = + (await _xmlBlobsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlBlobsInputOutput), + ) + as XmlBlobsInputOutput); final input = XmlBlobsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlBlobs( - input, - context, - ); + final output = await service.xmlBlobs(input, context); const statusCode = 200; final body = await _xmlBlobsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlBlobsInputOutput, - [FullType(XmlBlobsInputOutput)], - ), + specifiedType: const FullType(XmlBlobsInputOutput, [ + FullType(XmlBlobsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3264,10 +3027,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3277,26 +3037,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlEmptyBlobsProtocol.contentType; try { - final payload = (await _xmlEmptyBlobsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlBlobsInputOutput), - ) as XmlBlobsInputOutput); + final payload = + (await _xmlEmptyBlobsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlBlobsInputOutput), + ) + as XmlBlobsInputOutput); final input = XmlBlobsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyBlobs( - input, - context, - ); + final output = await service.xmlEmptyBlobs(input, context); const statusCode = 200; final body = await _xmlEmptyBlobsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlBlobsInputOutput, - [FullType(XmlBlobsInputOutput)], - ), + specifiedType: const FullType(XmlBlobsInputOutput, [ + FullType(XmlBlobsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3304,10 +3062,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3317,26 +3072,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlEmptyListsProtocol.contentType; try { - final payload = (await _xmlEmptyListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlListsInputOutput), - ) as XmlListsInputOutput); + final payload = + (await _xmlEmptyListsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlListsInputOutput), + ) + as XmlListsInputOutput); final input = XmlListsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyLists( - input, - context, - ); + final output = await service.xmlEmptyLists(input, context); const statusCode = 200; final body = await _xmlEmptyListsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlListsInputOutput, - [FullType(XmlListsInputOutput)], - ), + specifiedType: const FullType(XmlListsInputOutput, [ + FullType(XmlListsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3344,10 +3097,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3357,26 +3107,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlEmptyMapsProtocol.contentType; try { - final payload = (await _xmlEmptyMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlMapsInputOutput), - ) as XmlMapsInputOutput); + final payload = + (await _xmlEmptyMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlMapsInputOutput), + ) + as XmlMapsInputOutput); final input = XmlMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyMaps( - input, - context, - ); + final output = await service.xmlEmptyMaps(input, context); const statusCode = 200; final body = await _xmlEmptyMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlMapsInputOutput, - [FullType(XmlMapsInputOutput)], - ), + specifiedType: const FullType(XmlMapsInputOutput, [ + FullType(XmlMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3384,10 +3132,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3399,25 +3144,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _xmlEmptyStringsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlEmptyStringsInputOutput), - ) as XmlEmptyStringsInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlEmptyStringsInputOutput), + ) + as XmlEmptyStringsInputOutput); final input = XmlEmptyStringsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyStrings( - input, - context, - ); + final output = await service.xmlEmptyStrings(input, context); const statusCode = 200; final body = await _xmlEmptyStringsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlEmptyStringsInputOutput, - [FullType(XmlEmptyStringsInputOutput)], - ), + specifiedType: const FullType(XmlEmptyStringsInputOutput, [ + FullType(XmlEmptyStringsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3425,10 +3167,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3437,26 +3176,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlEnumsProtocol.contentType; try { - final payload = (await _xmlEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlEnumsInputOutput), - ) as XmlEnumsInputOutput); + final payload = + (await _xmlEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlEnumsInputOutput), + ) + as XmlEnumsInputOutput); final input = XmlEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEnums( - input, - context, - ); + final output = await service.xmlEnums(input, context); const statusCode = 200; final body = await _xmlEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlEnumsInputOutput, - [FullType(XmlEnumsInputOutput)], - ), + specifiedType: const FullType(XmlEnumsInputOutput, [ + FullType(XmlEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3464,10 +3201,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3476,26 +3210,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlIntEnumsProtocol.contentType; try { - final payload = (await _xmlIntEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlIntEnumsInputOutput), - ) as XmlIntEnumsInputOutput); + final payload = + (await _xmlIntEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlIntEnumsInputOutput), + ) + as XmlIntEnumsInputOutput); final input = XmlIntEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlIntEnums( - input, - context, - ); + final output = await service.xmlIntEnums(input, context); const statusCode = 200; final body = await _xmlIntEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlIntEnumsInputOutput, - [FullType(XmlIntEnumsInputOutput)], - ), + specifiedType: const FullType(XmlIntEnumsInputOutput, [ + FullType(XmlIntEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3503,10 +3235,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3515,26 +3244,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlListsProtocol.contentType; try { - final payload = (await _xmlListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlListsInputOutput), - ) as XmlListsInputOutput); + final payload = + (await _xmlListsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlListsInputOutput), + ) + as XmlListsInputOutput); final input = XmlListsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlLists( - input, - context, - ); + final output = await service.xmlLists(input, context); const statusCode = 200; final body = await _xmlListsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlListsInputOutput, - [FullType(XmlListsInputOutput)], - ), + specifiedType: const FullType(XmlListsInputOutput, [ + FullType(XmlListsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3542,10 +3269,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3554,26 +3278,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlMapsProtocol.contentType; try { - final payload = (await _xmlMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlMapsInputOutput), - ) as XmlMapsInputOutput); + final payload = + (await _xmlMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlMapsInputOutput), + ) + as XmlMapsInputOutput); final input = XmlMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlMaps( - input, - context, - ); + final output = await service.xmlMaps(input, context); const statusCode = 200; final body = await _xmlMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlMapsInputOutput, - [FullType(XmlMapsInputOutput)], - ), + specifiedType: const FullType(XmlMapsInputOutput, [ + FullType(XmlMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3581,10 +3303,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3594,26 +3313,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlMapsXmlNameProtocol.contentType; try { - final payload = (await _xmlMapsXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlMapsXmlNameInputOutput), - ) as XmlMapsXmlNameInputOutput); + final payload = + (await _xmlMapsXmlNameProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlMapsXmlNameInputOutput), + ) + as XmlMapsXmlNameInputOutput); final input = XmlMapsXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlMapsXmlName( - input, - context, - ); + final output = await service.xmlMapsXmlName(input, context); const statusCode = 200; final body = await _xmlMapsXmlNameProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlMapsXmlNameInputOutput, - [FullType(XmlMapsXmlNameInputOutput)], - ), + specifiedType: const FullType(XmlMapsXmlNameInputOutput, [ + FullType(XmlMapsXmlNameInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3621,10 +3338,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3634,26 +3348,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlNamespacesProtocol.contentType; try { - final payload = (await _xmlNamespacesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlNamespacesInputOutput), - ) as XmlNamespacesInputOutput); + final payload = + (await _xmlNamespacesProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlNamespacesInputOutput), + ) + as XmlNamespacesInputOutput); final input = XmlNamespacesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlNamespaces( - input, - context, - ); + final output = await service.xmlNamespaces(input, context); const statusCode = 200; final body = await _xmlNamespacesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlNamespacesInputOutput, - [FullType(XmlNamespacesInputOutput)], - ), + specifiedType: const FullType(XmlNamespacesInputOutput, [ + FullType(XmlNamespacesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3661,10 +3373,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3674,26 +3383,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlTimestampsProtocol.contentType; try { - final payload = (await _xmlTimestampsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlTimestampsInputOutput), - ) as XmlTimestampsInputOutput); + final payload = + (await _xmlTimestampsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlTimestampsInputOutput), + ) + as XmlTimestampsInputOutput); final input = XmlTimestampsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlTimestamps( - input, - context, - ); + final output = await service.xmlTimestamps(input, context); const statusCode = 200; final body = await _xmlTimestampsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlTimestampsInputOutput, - [FullType(XmlTimestampsInputOutput)], - ), + specifiedType: const FullType(XmlTimestampsInputOutput, [ + FullType(XmlTimestampsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3701,10 +3408,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3713,26 +3417,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlUnionsProtocol.contentType; try { - final payload = (await _xmlUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlUnionsInputOutput), - ) as XmlUnionsInputOutput); + final payload = + (await _xmlUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlUnionsInputOutput), + ) + as XmlUnionsInputOutput); final input = XmlUnionsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlUnions( - input, - context, - ); + final output = await service.xmlUnions(input, context); const statusCode = 200; final body = await _xmlUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlUnionsInputOutput, - [FullType(XmlUnionsInputOutput)], - ), + specifiedType: const FullType(XmlUnionsInputOutput, [ + FullType(XmlUnionsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3740,10 +3442,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/common/endpoint_resolver.dart index 41fd513b79..4184de2ce5 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,10 +14,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -50,18 +47,22 @@ final _partitions = [ 'us-west-2', }, endpoints: const { - 'af-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.af-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-east-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'af-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.af-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-east-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-northeast-1': _i1.EndpointDefinition( hostname: 's3.ap-northeast-1.amazonaws.com', signatureVersions: [ @@ -72,27 +73,33 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-northeast-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'ap-northeast-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-northeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'ap-northeast-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-northeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-southeast-1': _i1.EndpointDefinition( hostname: 's3.ap-southeast-1.amazonaws.com', signatureVersions: [ @@ -103,7 +110,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'ap-southeast-2': _i1.EndpointDefinition( @@ -116,15 +123,17 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-2.amazonaws.com', tags: ['dualstack'], - ) + ), + ], + ), + 'ap-southeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', + tags: ['dualstack'], + ), ], ), - 'ap-southeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), 'aws-global': _i1.EndpointDefinition( hostname: 's3.amazonaws.com', signatureVersions: [ @@ -134,41 +143,46 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-east-1'), variants: [], ), - 'ca-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.ca-central-1.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ca-central-1.amazonaws.com', - tags: ['dualstack'], - ), - ]), - 'eu-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-central-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-north-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'ca-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.ca-central-1.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-north-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'eu-west-1': _i1.EndpointDefinition( hostname: 's3.eu-west-1.amazonaws.com', signatureVersions: [ @@ -179,21 +193,25 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.eu-west-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'eu-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-west-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'eu-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-west-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'fips-ca-central-1': _i1.EndpointDefinition( hostname: 's3-fips.ca-central-1.amazonaws.com', credentialScope: _i1.CredentialScope(region: 'ca-central-1'), @@ -219,12 +237,14 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-west-2'), variants: [], ), - 'me-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.me-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'me-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.me-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 's3-external-1': _i1.EndpointDefinition( hostname: 's3-external-1.amazonaws.com', signatureVersions: [ @@ -244,7 +264,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.sa-east-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'us-east-1': _i1.EndpointDefinition( @@ -256,10 +276,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-east-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-east-1.amazonaws.com', @@ -271,23 +288,22 @@ final _partitions = [ ), ], ), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.us-east-2.amazonaws.com', - tags: ['dualstack'], - ), - ]), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'us-west-1': _i1.EndpointDefinition( hostname: 's3.us-west-1.amazonaws.com', signatureVersions: [ @@ -297,10 +313,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-1.amazonaws.com', @@ -321,10 +334,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-2.amazonaws.com', @@ -345,10 +355,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com.cn', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -356,23 +363,24 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { - 'cn-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), - 'cn-northwest-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), + 'cn-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), + 'cn-northwest-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), }, ), _i1.Partition( @@ -390,16 +398,10 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const { 'us-iso-east-1': _i1.EndpointDefinition( - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.s3v4], variants: [], ), @@ -413,10 +415,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.sc2s.sgov.gov', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -443,10 +442,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-east-1': _i1.EndpointDefinition( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -460,10 +456,7 @@ final _partitions = [ ), 'us-gov-east-1': _i1.EndpointDefinition( hostname: 's3.us-gov-east-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -477,10 +470,7 @@ final _partitions = [ ), 'us-gov-west-1': _i1.EndpointDefinition( hostname: 's3.us-gov-west-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-west-1.amazonaws.com', @@ -496,7 +486,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'S3'; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/common/serializers.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/common/serializers.dart index 0c2a556e44..7d0c688f04 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/common/serializers.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -58,19 +58,13 @@ const List<_i1.SmithySerializer> serializers = [ ...S3AddressingStyle.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(S3Object)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(CommonPrefix)], - ): _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(S3Object)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(CommonPrefix)]): + _i2.ListBuilder.new, }; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.dart index 874dfc39fa..fa73b556b6 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestXmlSerializer() + AwsConfigRestXmlSerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestXmlSerializer const AwsConfigRestXmlSerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestXmlSerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -119,24 +104,28 @@ class AwsConfigRestXmlSerializer const _i2.XmlElementName( 'AwsConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/bucket_location_constraint.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/bucket_location_constraint.dart index 79e62bfdba..b6d7608491 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/bucket_location_constraint.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/bucket_location_constraint.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.bucket_location_constraint; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,11 +7,7 @@ import 'package:smithy/smithy.dart' as _i1; class BucketLocationConstraint extends _i1.SmithyEnum { - const BucketLocationConstraint._( - super.index, - super.name, - super.value, - ); + const BucketLocationConstraint._(super.index, super.name, super.value); const BucketLocationConstraint._sdkUnknown(super.value) : super.sdkUnknown(); @@ -23,22 +19,19 @@ class BucketLocationConstraint /// All values of [BucketLocationConstraint]. static const values = [ - BucketLocationConstraint.usWest2 + BucketLocationConstraint.usWest2, ]; static const List<_i1.SmithySerializer> - serializers = [ + serializers = [ _i1.SmithyEnumSerializer( 'BucketLocationConstraint', values: values, sdkUnknown: BucketLocationConstraint._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.dart index e7b6915707..be443321e1 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestXmlSerializer() + ClientConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestXmlSerializer const ClientConfigRestXmlSerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -189,7 +179,7 @@ class ClientConfigRestXmlSerializer const _i2.XmlElementName( 'ClientConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -198,63 +188,71 @@ class ClientConfigRestXmlSerializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/common_prefix.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/common_prefix.dart index 55ffd0a795..d88a064174 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/common_prefix.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/common_prefix.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.common_prefix; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class CommonPrefix const CommonPrefix._(); static const List<_i2.SmithySerializer> serializers = [ - CommonPrefixRestXmlSerializer() + CommonPrefixRestXmlSerializer(), ]; String? get prefix; @@ -33,10 +33,7 @@ abstract class CommonPrefix @override String toString() { final helper = newBuiltValueToStringHelper('CommonPrefix') - ..add( - 'prefix', - prefix, - ); + ..add('prefix', prefix); return helper.toString(); } } @@ -46,18 +43,12 @@ class CommonPrefixRestXmlSerializer const CommonPrefixRestXmlSerializer() : super('CommonPrefix'); @override - Iterable get types => const [ - CommonPrefix, - _$CommonPrefix, - ]; + Iterable get types => const [CommonPrefix, _$CommonPrefix]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CommonPrefix deserialize( @@ -76,10 +67,12 @@ class CommonPrefixRestXmlSerializer } switch (key) { case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -96,16 +89,15 @@ class CommonPrefixRestXmlSerializer const _i2.XmlElementName( 'CommonPrefix', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CommonPrefix(:prefix) = object; if (prefix != null) { result$ ..add(const _i2.XmlElementName('Prefix')) - ..add(serializers.serialize( - prefix, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(prefix, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.dart index 71dfe1bd42..aaf9adb114 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.delete_object_tagging_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class DeleteObjectTaggingOutput return _$DeleteObjectTaggingOutput._(versionId: versionId); } - factory DeleteObjectTaggingOutput.build( - [void Function(DeleteObjectTaggingOutputBuilder) updates]) = - _$DeleteObjectTaggingOutput; + factory DeleteObjectTaggingOutput.build([ + void Function(DeleteObjectTaggingOutputBuilder) updates, + ]) = _$DeleteObjectTaggingOutput; const DeleteObjectTaggingOutput._(); @@ -31,15 +31,14 @@ abstract class DeleteObjectTaggingOutput factory DeleteObjectTaggingOutput.fromResponse( DeleteObjectTaggingOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - DeleteObjectTaggingOutput.build((b) { - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - }); + ) => DeleteObjectTaggingOutput.build((b) { + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [DeleteObjectTaggingOutputRestXmlSerializer()]; + serializers = [DeleteObjectTaggingOutputRestXmlSerializer()]; String? get versionId; @override @@ -52,25 +51,23 @@ abstract class DeleteObjectTaggingOutput @override String toString() { final helper = newBuiltValueToStringHelper('DeleteObjectTaggingOutput') - ..add( - 'versionId', - versionId, - ); + ..add('versionId', versionId); return helper.toString(); } } @_i3.internal abstract class DeleteObjectTaggingOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutputPayloadBuilder + >, _i2.EmptyPayload { - factory DeleteObjectTaggingOutputPayload( - [void Function(DeleteObjectTaggingOutputPayloadBuilder) updates]) = - _$DeleteObjectTaggingOutputPayload; + factory DeleteObjectTaggingOutputPayload([ + void Function(DeleteObjectTaggingOutputPayloadBuilder) updates, + ]) = _$DeleteObjectTaggingOutputPayload; const DeleteObjectTaggingOutputPayload._(); @@ -79,8 +76,9 @@ abstract class DeleteObjectTaggingOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('DeleteObjectTaggingOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'DeleteObjectTaggingOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class DeleteObjectTaggingOutputPayload class DeleteObjectTaggingOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const DeleteObjectTaggingOutputRestXmlSerializer() - : super('DeleteObjectTaggingOutput'); + : super('DeleteObjectTaggingOutput'); @override Iterable get types => const [ - DeleteObjectTaggingOutput, - _$DeleteObjectTaggingOutput, - DeleteObjectTaggingOutputPayload, - _$DeleteObjectTaggingOutputPayload, - ]; + DeleteObjectTaggingOutput, + _$DeleteObjectTaggingOutput, + DeleteObjectTaggingOutputPayload, + _$DeleteObjectTaggingOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingOutputPayload deserialize( @@ -125,7 +120,7 @@ class DeleteObjectTaggingOutputRestXmlSerializer const _i2.XmlElementName( 'DeleteObjectTaggingOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart index a2c8572e88..752ca9bb19 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart @@ -10,16 +10,16 @@ class _$DeleteObjectTaggingOutput extends DeleteObjectTaggingOutput { @override final String? versionId; - factory _$DeleteObjectTaggingOutput( - [void Function(DeleteObjectTaggingOutputBuilder)? updates]) => - (new DeleteObjectTaggingOutputBuilder()..update(updates))._build(); + factory _$DeleteObjectTaggingOutput([ + void Function(DeleteObjectTaggingOutputBuilder)? updates, + ]) => (new DeleteObjectTaggingOutputBuilder()..update(updates))._build(); _$DeleteObjectTaggingOutput._({this.versionId}) : super._(); @override DeleteObjectTaggingOutput rebuild( - void Function(DeleteObjectTaggingOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class DeleteObjectTaggingOutputBuilder class _$DeleteObjectTaggingOutputPayload extends DeleteObjectTaggingOutputPayload { - factory _$DeleteObjectTaggingOutputPayload( - [void Function(DeleteObjectTaggingOutputPayloadBuilder)? updates]) => + factory _$DeleteObjectTaggingOutputPayload([ + void Function(DeleteObjectTaggingOutputPayloadBuilder)? updates, + ]) => (new DeleteObjectTaggingOutputPayloadBuilder()..update(updates))._build(); _$DeleteObjectTaggingOutputPayload._() : super._(); @override DeleteObjectTaggingOutputPayload rebuild( - void Function(DeleteObjectTaggingOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$DeleteObjectTaggingOutputPayload class DeleteObjectTaggingOutputPayloadBuilder implements - Builder { + Builder< + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutputPayloadBuilder + > { _$DeleteObjectTaggingOutputPayload? _$v; DeleteObjectTaggingOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.dart index 6aab7a88e0..4c5d6eb3b6 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.delete_object_tagging_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class DeleteObjectTaggingRequest ); } - factory DeleteObjectTaggingRequest.build( - [void Function(DeleteObjectTaggingRequestBuilder) updates]) = - _$DeleteObjectTaggingRequest; + factory DeleteObjectTaggingRequest.build([ + void Function(DeleteObjectTaggingRequestBuilder) updates, + ]) = _$DeleteObjectTaggingRequest; const DeleteObjectTaggingRequest._(); @@ -43,25 +43,23 @@ abstract class DeleteObjectTaggingRequest DeleteObjectTaggingRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - DeleteObjectTaggingRequest.build((b) { - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.queryParameters['versionId'] != null) { - b.versionId = request.queryParameters['versionId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => DeleteObjectTaggingRequest.build((b) { + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.queryParameters['versionId'] != null) { + b.versionId = request.queryParameters['versionId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [DeleteObjectTaggingRequestRestXmlSerializer()]; + serializers = [DeleteObjectTaggingRequestRestXmlSerializer()]; String get bucket; String get key; @@ -75,10 +73,7 @@ abstract class DeleteObjectTaggingRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -86,47 +81,32 @@ abstract class DeleteObjectTaggingRequest DeleteObjectTaggingRequestPayload(); @override - List get props => [ - bucket, - key, - versionId, - expectedBucketOwner, - ]; + List get props => [bucket, key, versionId, expectedBucketOwner]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeleteObjectTaggingRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('DeleteObjectTaggingRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('versionId', versionId) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @_i3.internal abstract class DeleteObjectTaggingRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequestPayloadBuilder + >, _i1.EmptyPayload { - factory DeleteObjectTaggingRequestPayload( - [void Function(DeleteObjectTaggingRequestPayloadBuilder) updates]) = - _$DeleteObjectTaggingRequestPayload; + factory DeleteObjectTaggingRequestPayload([ + void Function(DeleteObjectTaggingRequestPayloadBuilder) updates, + ]) = _$DeleteObjectTaggingRequestPayload; const DeleteObjectTaggingRequestPayload._(); @@ -135,8 +115,9 @@ abstract class DeleteObjectTaggingRequestPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('DeleteObjectTaggingRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'DeleteObjectTaggingRequestPayload', + ); return helper.toString(); } } @@ -144,23 +125,20 @@ abstract class DeleteObjectTaggingRequestPayload class DeleteObjectTaggingRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const DeleteObjectTaggingRequestRestXmlSerializer() - : super('DeleteObjectTaggingRequest'); + : super('DeleteObjectTaggingRequest'); @override Iterable get types => const [ - DeleteObjectTaggingRequest, - _$DeleteObjectTaggingRequest, - DeleteObjectTaggingRequestPayload, - _$DeleteObjectTaggingRequestPayload, - ]; + DeleteObjectTaggingRequest, + _$DeleteObjectTaggingRequest, + DeleteObjectTaggingRequestPayload, + _$DeleteObjectTaggingRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingRequestPayload deserialize( @@ -181,7 +159,7 @@ class DeleteObjectTaggingRequestRestXmlSerializer const _i1.XmlElementName( 'DeleteObjectTaggingRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart index 6988463011..7ce8c4e226 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart @@ -16,26 +16,32 @@ class _$DeleteObjectTaggingRequest extends DeleteObjectTaggingRequest { @override final String? expectedBucketOwner; - factory _$DeleteObjectTaggingRequest( - [void Function(DeleteObjectTaggingRequestBuilder)? updates]) => - (new DeleteObjectTaggingRequestBuilder()..update(updates))._build(); - - _$DeleteObjectTaggingRequest._( - {required this.bucket, - required this.key, - this.versionId, - this.expectedBucketOwner}) - : super._() { + factory _$DeleteObjectTaggingRequest([ + void Function(DeleteObjectTaggingRequestBuilder)? updates, + ]) => (new DeleteObjectTaggingRequestBuilder()..update(updates))._build(); + + _$DeleteObjectTaggingRequest._({ + required this.bucket, + required this.key, + this.versionId, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectTaggingRequest', 'bucket'); + bucket, + r'DeleteObjectTaggingRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - key, r'DeleteObjectTaggingRequest', 'key'); + key, + r'DeleteObjectTaggingRequest', + 'key', + ); } @override DeleteObjectTaggingRequest rebuild( - void Function(DeleteObjectTaggingRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingRequestBuilder toBuilder() => @@ -114,14 +120,22 @@ class DeleteObjectTaggingRequestBuilder DeleteObjectTaggingRequest build() => _build(); _$DeleteObjectTaggingRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DeleteObjectTaggingRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectTaggingRequest', 'bucket'), - key: BuiltValueNullFieldError.checkNotNull( - key, r'DeleteObjectTaggingRequest', 'key'), - versionId: versionId, - expectedBucketOwner: expectedBucketOwner); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'DeleteObjectTaggingRequest', + 'bucket', + ), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'DeleteObjectTaggingRequest', + 'key', + ), + versionId: versionId, + expectedBucketOwner: expectedBucketOwner, + ); replace(_$result); return _$result; } @@ -129,8 +143,9 @@ class DeleteObjectTaggingRequestBuilder class _$DeleteObjectTaggingRequestPayload extends DeleteObjectTaggingRequestPayload { - factory _$DeleteObjectTaggingRequestPayload( - [void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates]) => + factory _$DeleteObjectTaggingRequestPayload([ + void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates, + ]) => (new DeleteObjectTaggingRequestPayloadBuilder()..update(updates)) ._build(); @@ -138,8 +153,8 @@ class _$DeleteObjectTaggingRequestPayload @override DeleteObjectTaggingRequestPayload rebuild( - void Function(DeleteObjectTaggingRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingRequestPayloadBuilder toBuilder() => @@ -159,8 +174,10 @@ class _$DeleteObjectTaggingRequestPayload class DeleteObjectTaggingRequestPayloadBuilder implements - Builder { + Builder< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequestPayloadBuilder + > { _$DeleteObjectTaggingRequestPayload? _$v; DeleteObjectTaggingRequestPayloadBuilder(); @@ -173,7 +190,8 @@ class DeleteObjectTaggingRequestPayloadBuilder @override void update( - void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates) { + void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/encoding_type.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/encoding_type.dart index 65b8ffab91..6ae728ae28 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/encoding_type.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/encoding_type.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.encoding_type; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EncodingType extends _i1.SmithyEnum { - const EncodingType._( - super.index, - super.name, - super.value, - ); + const EncodingType._(super.index, super.name, super.value); const EncodingType._sdkUnknown(super.value) : super.sdkUnknown(); - static const url = EncodingType._( - 0, - 'url', - 'url', - ); + static const url = EncodingType._(0, 'url', 'url'); /// All values of [EncodingType]. static const values = [EncodingType.url]; @@ -29,12 +21,9 @@ class EncodingType extends _i1.SmithyEnum { values: values, sdkUnknown: EncodingType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.dart index 934d3b8845..d9802cd824 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestXmlSerializer() + EnvironmentConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestXmlSerializer const EnvironmentConfigRestXmlSerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestXmlSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -173,7 +163,7 @@ class EnvironmentConfigRestXmlSerializer const _i2.XmlElementName( 'EnvironmentConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -181,55 +171,67 @@ class EnvironmentConfigRestXmlSerializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.dart index d297a0cd92..194bd4478d 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestXmlSerializer() + FileConfigSettingsRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestXmlSerializer const FileConfigSettingsRestXmlSerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -190,7 +179,7 @@ class FileConfigSettingsRestXmlSerializer const _i2.XmlElementName( 'FileConfigSettings', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -199,63 +188,71 @@ class FileConfigSettingsRestXmlSerializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.dart index a3c1f5c9f6..a6c0a671fb 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.get_bucket_location_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,15 @@ abstract class GetBucketLocationOutput implements Built, _i2.HasPayload { - factory GetBucketLocationOutput( - {BucketLocationConstraint? locationConstraint}) { + factory GetBucketLocationOutput({ + BucketLocationConstraint? locationConstraint, + }) { return _$GetBucketLocationOutput._(locationConstraint: locationConstraint); } - factory GetBucketLocationOutput.build( - [void Function(GetBucketLocationOutputBuilder) updates]) = - _$GetBucketLocationOutput; + factory GetBucketLocationOutput.build([ + void Function(GetBucketLocationOutputBuilder) updates, + ]) = _$GetBucketLocationOutput; const GetBucketLocationOutput._(); @@ -31,13 +32,12 @@ abstract class GetBucketLocationOutput factory GetBucketLocationOutput.fromResponse( BucketLocationConstraint? payload, _i1.AWSBaseHttpResponse response, - ) => - GetBucketLocationOutput.build((b) { - b.locationConstraint = payload; - }); + ) => GetBucketLocationOutput.build((b) { + b.locationConstraint = payload; + }); static const List<_i2.SmithySerializer> - serializers = [GetBucketLocationOutputRestXmlSerializer()]; + serializers = [GetBucketLocationOutputRestXmlSerializer()]; BucketLocationConstraint? get locationConstraint; @override @@ -49,10 +49,7 @@ abstract class GetBucketLocationOutput @override String toString() { final helper = newBuiltValueToStringHelper('GetBucketLocationOutput') - ..add( - 'locationConstraint', - locationConstraint, - ); + ..add('locationConstraint', locationConstraint); return helper.toString(); } } @@ -60,21 +57,18 @@ abstract class GetBucketLocationOutput class GetBucketLocationOutputRestXmlSerializer extends _i2.PrimitiveSmithySerializer { const GetBucketLocationOutputRestXmlSerializer() - : super('GetBucketLocationOutput'); + : super('GetBucketLocationOutput'); @override Iterable get types => const [ - GetBucketLocationOutput, - _$GetBucketLocationOutput, - ]; + GetBucketLocationOutput, + _$GetBucketLocationOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override BucketLocationConstraint deserialize( @@ -83,9 +77,10 @@ class GetBucketLocationOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(BucketLocationConstraint), - ) as BucketLocationConstraint); + serialized, + specifiedType: const FullType(BucketLocationConstraint), + ) + as BucketLocationConstraint); } @override @@ -98,13 +93,15 @@ class GetBucketLocationOutputRestXmlSerializer const _i2.XmlElementName( 'LocationConstraint', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType(BucketLocationConstraint), - )); + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(BucketLocationConstraint), + ), + ); return result$; } } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.g.dart index 1b68fbc472..ab835c4acf 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_output.g.dart @@ -10,16 +10,16 @@ class _$GetBucketLocationOutput extends GetBucketLocationOutput { @override final BucketLocationConstraint? locationConstraint; - factory _$GetBucketLocationOutput( - [void Function(GetBucketLocationOutputBuilder)? updates]) => - (new GetBucketLocationOutputBuilder()..update(updates))._build(); + factory _$GetBucketLocationOutput([ + void Function(GetBucketLocationOutputBuilder)? updates, + ]) => (new GetBucketLocationOutputBuilder()..update(updates))._build(); _$GetBucketLocationOutput._({this.locationConstraint}) : super._(); @override GetBucketLocationOutput rebuild( - void Function(GetBucketLocationOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetBucketLocationOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetBucketLocationOutputBuilder toBuilder() => @@ -78,7 +78,8 @@ class GetBucketLocationOutputBuilder GetBucketLocationOutput build() => _build(); _$GetBucketLocationOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetBucketLocationOutput._(locationConstraint: locationConstraint); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.dart index 6a353fa224..03759d19bc 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.get_bucket_location_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class GetBucketLocationRequest return _$GetBucketLocationRequest._(bucket: bucket); } - factory GetBucketLocationRequest.build( - [void Function(GetBucketLocationRequestBuilder) updates]) = - _$GetBucketLocationRequest; + factory GetBucketLocationRequest.build([ + void Function(GetBucketLocationRequestBuilder) updates, + ]) = _$GetBucketLocationRequest; const GetBucketLocationRequest._(); @@ -33,15 +33,14 @@ abstract class GetBucketLocationRequest GetBucketLocationRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetBucketLocationRequest.build((b) { - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - }); + }) => GetBucketLocationRequest.build((b) { + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [GetBucketLocationRequestRestXmlSerializer()]; + serializers = [GetBucketLocationRequestRestXmlSerializer()]; String get bucket; @override @@ -50,10 +49,7 @@ abstract class GetBucketLocationRequest case 'Bucket': return bucket; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -66,25 +62,23 @@ abstract class GetBucketLocationRequest @override String toString() { final helper = newBuiltValueToStringHelper('GetBucketLocationRequest') - ..add( - 'bucket', - bucket, - ); + ..add('bucket', bucket); return helper.toString(); } } @_i3.internal abstract class GetBucketLocationRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + GetBucketLocationRequestPayload, + GetBucketLocationRequestPayloadBuilder + >, _i1.EmptyPayload { - factory GetBucketLocationRequestPayload( - [void Function(GetBucketLocationRequestPayloadBuilder) updates]) = - _$GetBucketLocationRequestPayload; + factory GetBucketLocationRequestPayload([ + void Function(GetBucketLocationRequestPayloadBuilder) updates, + ]) = _$GetBucketLocationRequestPayload; const GetBucketLocationRequestPayload._(); @@ -93,8 +87,9 @@ abstract class GetBucketLocationRequestPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('GetBucketLocationRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'GetBucketLocationRequestPayload', + ); return helper.toString(); } } @@ -102,23 +97,20 @@ abstract class GetBucketLocationRequestPayload class GetBucketLocationRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const GetBucketLocationRequestRestXmlSerializer() - : super('GetBucketLocationRequest'); + : super('GetBucketLocationRequest'); @override Iterable get types => const [ - GetBucketLocationRequest, - _$GetBucketLocationRequest, - GetBucketLocationRequestPayload, - _$GetBucketLocationRequestPayload, - ]; + GetBucketLocationRequest, + _$GetBucketLocationRequest, + GetBucketLocationRequestPayload, + _$GetBucketLocationRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetBucketLocationRequestPayload deserialize( @@ -139,7 +131,7 @@ class GetBucketLocationRequestRestXmlSerializer const _i1.XmlElementName( 'GetBucketLocationRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.g.dart index 6c9a4c6315..2a6a75677b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/get_bucket_location_request.g.dart @@ -10,19 +10,22 @@ class _$GetBucketLocationRequest extends GetBucketLocationRequest { @override final String bucket; - factory _$GetBucketLocationRequest( - [void Function(GetBucketLocationRequestBuilder)? updates]) => - (new GetBucketLocationRequestBuilder()..update(updates))._build(); + factory _$GetBucketLocationRequest([ + void Function(GetBucketLocationRequestBuilder)? updates, + ]) => (new GetBucketLocationRequestBuilder()..update(updates))._build(); _$GetBucketLocationRequest._({required this.bucket}) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'GetBucketLocationRequest', 'bucket'); + bucket, + r'GetBucketLocationRequest', + 'bucket', + ); } @override GetBucketLocationRequest rebuild( - void Function(GetBucketLocationRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetBucketLocationRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetBucketLocationRequestBuilder toBuilder() => @@ -78,10 +81,15 @@ class GetBucketLocationRequestBuilder GetBucketLocationRequest build() => _build(); _$GetBucketLocationRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetBucketLocationRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'GetBucketLocationRequest', 'bucket')); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'GetBucketLocationRequest', + 'bucket', + ), + ); replace(_$result); return _$result; } @@ -89,16 +97,17 @@ class GetBucketLocationRequestBuilder class _$GetBucketLocationRequestPayload extends GetBucketLocationRequestPayload { - factory _$GetBucketLocationRequestPayload( - [void Function(GetBucketLocationRequestPayloadBuilder)? updates]) => + factory _$GetBucketLocationRequestPayload([ + void Function(GetBucketLocationRequestPayloadBuilder)? updates, + ]) => (new GetBucketLocationRequestPayloadBuilder()..update(updates))._build(); _$GetBucketLocationRequestPayload._() : super._(); @override GetBucketLocationRequestPayload rebuild( - void Function(GetBucketLocationRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetBucketLocationRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetBucketLocationRequestPayloadBuilder toBuilder() => @@ -118,8 +127,10 @@ class _$GetBucketLocationRequestPayload class GetBucketLocationRequestPayloadBuilder implements - Builder { + Builder< + GetBucketLocationRequestPayload, + GetBucketLocationRequestPayloadBuilder + > { _$GetBucketLocationRequestPayload? _$v; GetBucketLocationRequestPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.dart index 0642c0cca9..aa3ada7790 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.list_objects_v2_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,9 +48,9 @@ abstract class ListObjectsV2Output ); } - factory ListObjectsV2Output.build( - [void Function(ListObjectsV2OutputBuilder) updates]) = - _$ListObjectsV2Output; + factory ListObjectsV2Output.build([ + void Function(ListObjectsV2OutputBuilder) updates, + ]) = _$ListObjectsV2Output; const ListObjectsV2Output._(); @@ -58,11 +58,10 @@ abstract class ListObjectsV2Output factory ListObjectsV2Output.fromResponse( ListObjectsV2Output payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - ListObjectsV2OutputRestXmlSerializer() + ListObjectsV2OutputRestXmlSerializer(), ]; bool? get isTruncated; @@ -79,71 +78,36 @@ abstract class ListObjectsV2Output String? get startAfter; @override List get props => [ - isTruncated, - contents, - name, - prefix, - delimiter, - maxKeys, - commonPrefixes, - encodingType, - keyCount, - continuationToken, - nextContinuationToken, - startAfter, - ]; + isTruncated, + contents, + name, + prefix, + delimiter, + maxKeys, + commonPrefixes, + encodingType, + keyCount, + continuationToken, + nextContinuationToken, + startAfter, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListObjectsV2Output') - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'contents', - contents, - ) - ..add( - 'name', - name, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'maxKeys', - maxKeys, - ) - ..add( - 'commonPrefixes', - commonPrefixes, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'keyCount', - keyCount, - ) - ..add( - 'continuationToken', - continuationToken, - ) - ..add( - 'nextContinuationToken', - nextContinuationToken, - ) - ..add( - 'startAfter', - startAfter, - ); + final helper = + newBuiltValueToStringHelper('ListObjectsV2Output') + ..add('isTruncated', isTruncated) + ..add('contents', contents) + ..add('name', name) + ..add('prefix', prefix) + ..add('delimiter', delimiter) + ..add('maxKeys', maxKeys) + ..add('commonPrefixes', commonPrefixes) + ..add('encodingType', encodingType) + ..add('keyCount', keyCount) + ..add('continuationToken', continuationToken) + ..add('nextContinuationToken', nextContinuationToken) + ..add('startAfter', startAfter); return helper.toString(); } } @@ -154,17 +118,14 @@ class ListObjectsV2OutputRestXmlSerializer @override Iterable get types => const [ - ListObjectsV2Output, - _$ListObjectsV2Output, - ]; + ListObjectsV2Output, + _$ListObjectsV2Output, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2Output deserialize( @@ -183,65 +144,91 @@ class ListObjectsV2OutputRestXmlSerializer } switch (key) { case 'CommonPrefixes': - result.commonPrefixes.add((serializers.deserialize( - value, - specifiedType: const FullType(CommonPrefix), - ) as CommonPrefix)); + result.commonPrefixes.add( + (serializers.deserialize( + value, + specifiedType: const FullType(CommonPrefix), + ) + as CommonPrefix), + ); case 'Contents': - result.contents.add((serializers.deserialize( - value, - specifiedType: const FullType(S3Object), - ) as S3Object)); + result.contents.add( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Object), + ) + as S3Object), + ); case 'ContinuationToken': - result.continuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.continuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'IsTruncated': - result.isTruncated = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isTruncated = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'KeyCount': - result.keyCount = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.keyCount = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'MaxKeys': - result.maxKeys = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxKeys = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'NextContinuationToken': - result.nextContinuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextContinuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StartAfter': - result.startAfter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startAfter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -258,7 +245,7 @@ class ListObjectsV2OutputRestXmlSerializer const _i3.XmlElementName( 'ListObjectsV2Output', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ListObjectsV2Output( :commonPrefixes, @@ -272,110 +259,117 @@ class ListObjectsV2OutputRestXmlSerializer :name, :nextContinuationToken, :prefix, - :startAfter + :startAfter, ) = object; if (commonPrefixes != null) { result$.addAll( - const _i3.XmlBuiltListSerializer(memberName: 'CommonPrefixes') - .serialize( - serializers, - commonPrefixes, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(CommonPrefix)], + const _i3.XmlBuiltListSerializer( + memberName: 'CommonPrefixes', + ).serialize( + serializers, + commonPrefixes, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(CommonPrefix), + ]), ), - )); + ); } if (contents != null) { result$.addAll( - const _i3.XmlBuiltListSerializer(memberName: 'Contents').serialize( - serializers, - contents, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(S3Object)], + const _i3.XmlBuiltListSerializer(memberName: 'Contents').serialize( + serializers, + contents, + specifiedType: const FullType(_i2.BuiltList, [FullType(S3Object)]), ), - )); + ); } if (continuationToken != null) { result$ ..add(const _i3.XmlElementName('ContinuationToken')) - ..add(serializers.serialize( - continuationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + continuationToken, + specifiedType: const FullType(String), + ), + ); } if (delimiter != null) { result$ ..add(const _i3.XmlElementName('Delimiter')) - ..add(serializers.serialize( - delimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + delimiter, + specifiedType: const FullType(String), + ), + ); } if (encodingType != null) { result$ ..add(const _i3.XmlElementName('EncodingType')) - ..add(serializers.serialize( - encodingType, - specifiedType: const FullType(EncodingType), - )); + ..add( + serializers.serialize( + encodingType, + specifiedType: const FullType(EncodingType), + ), + ); } if (isTruncated != null) { result$ ..add(const _i3.XmlElementName('IsTruncated')) - ..add(serializers.serialize( - isTruncated, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + isTruncated, + specifiedType: const FullType(bool), + ), + ); } if (keyCount != null) { result$ ..add(const _i3.XmlElementName('KeyCount')) - ..add(serializers.serialize( - keyCount, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(keyCount, specifiedType: const FullType(int)), + ); } if (maxKeys != null) { result$ ..add(const _i3.XmlElementName('MaxKeys')) - ..add(serializers.serialize( - maxKeys, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxKeys, specifiedType: const FullType(int)), + ); } if (name != null) { result$ ..add(const _i3.XmlElementName('Name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } if (nextContinuationToken != null) { result$ ..add(const _i3.XmlElementName('NextContinuationToken')) - ..add(serializers.serialize( - nextContinuationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextContinuationToken, + specifiedType: const FullType(String), + ), + ); } if (prefix != null) { result$ ..add(const _i3.XmlElementName('Prefix')) - ..add(serializers.serialize( - prefix, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(prefix, specifiedType: const FullType(String)), + ); } if (startAfter != null) { result$ ..add(const _i3.XmlElementName('StartAfter')) - ..add(serializers.serialize( - startAfter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + startAfter, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.g.dart index 4ca3d93f4c..b6366ca990 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_output.g.dart @@ -32,29 +32,29 @@ class _$ListObjectsV2Output extends ListObjectsV2Output { @override final String? startAfter; - factory _$ListObjectsV2Output( - [void Function(ListObjectsV2OutputBuilder)? updates]) => - (new ListObjectsV2OutputBuilder()..update(updates))._build(); - - _$ListObjectsV2Output._( - {this.isTruncated, - this.contents, - this.name, - this.prefix, - this.delimiter, - this.maxKeys, - this.commonPrefixes, - this.encodingType, - this.keyCount, - this.continuationToken, - this.nextContinuationToken, - this.startAfter}) - : super._(); + factory _$ListObjectsV2Output([ + void Function(ListObjectsV2OutputBuilder)? updates, + ]) => (new ListObjectsV2OutputBuilder()..update(updates))._build(); + + _$ListObjectsV2Output._({ + this.isTruncated, + this.contents, + this.name, + this.prefix, + this.delimiter, + this.maxKeys, + this.commonPrefixes, + this.encodingType, + this.keyCount, + this.continuationToken, + this.nextContinuationToken, + this.startAfter, + }) : super._(); @override ListObjectsV2Output rebuild( - void Function(ListObjectsV2OutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2OutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2OutputBuilder toBuilder() => @@ -196,20 +196,22 @@ class ListObjectsV2OutputBuilder _$ListObjectsV2Output _build() { _$ListObjectsV2Output _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListObjectsV2Output._( - isTruncated: isTruncated, - contents: _contents?.build(), - name: name, - prefix: prefix, - delimiter: delimiter, - maxKeys: maxKeys, - commonPrefixes: _commonPrefixes?.build(), - encodingType: encodingType, - keyCount: keyCount, - continuationToken: continuationToken, - nextContinuationToken: nextContinuationToken, - startAfter: startAfter); + isTruncated: isTruncated, + contents: _contents?.build(), + name: name, + prefix: prefix, + delimiter: delimiter, + maxKeys: maxKeys, + commonPrefixes: _commonPrefixes?.build(), + encodingType: encodingType, + keyCount: keyCount, + continuationToken: continuationToken, + nextContinuationToken: nextContinuationToken, + startAfter: startAfter, + ); } catch (_) { late String _$failedField; try { @@ -220,7 +222,10 @@ class ListObjectsV2OutputBuilder _commonPrefixes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListObjectsV2Output', _$failedField, e.toString()); + r'ListObjectsV2Output', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.dart index 380d8fe43d..b5755fd352 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.list_objects_v2_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -47,9 +47,9 @@ abstract class ListObjectsV2Request ); } - factory ListObjectsV2Request.build( - [void Function(ListObjectsV2RequestBuilder) updates]) = - _$ListObjectsV2Request; + factory ListObjectsV2Request.build([ + void Function(ListObjectsV2RequestBuilder) updates, + ]) = _$ListObjectsV2Request; const ListObjectsV2Request._(); @@ -57,45 +57,45 @@ abstract class ListObjectsV2Request ListObjectsV2RequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ListObjectsV2Request.build((b) { - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.queryParameters['delimiter'] != null) { - b.delimiter = request.queryParameters['delimiter']!; - } - if (request.queryParameters['encoding-type'] != null) { - b.encodingType = EncodingType.values - .byValue(request.queryParameters['encoding-type']!); - } - if (request.queryParameters['max-keys'] != null) { - b.maxKeys = int.parse(request.queryParameters['max-keys']!); - } - if (request.queryParameters['prefix'] != null) { - b.prefix = request.queryParameters['prefix']!; - } - if (request.queryParameters['continuation-token'] != null) { - b.continuationToken = request.queryParameters['continuation-token']!; - } - if (request.queryParameters['fetch-owner'] != null) { - b.fetchOwner = request.queryParameters['fetch-owner']! == 'true'; - } - if (request.queryParameters['start-after'] != null) { - b.startAfter = request.queryParameters['start-after']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - }); + }) => ListObjectsV2Request.build((b) { + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.queryParameters['delimiter'] != null) { + b.delimiter = request.queryParameters['delimiter']!; + } + if (request.queryParameters['encoding-type'] != null) { + b.encodingType = EncodingType.values.byValue( + request.queryParameters['encoding-type']!, + ); + } + if (request.queryParameters['max-keys'] != null) { + b.maxKeys = int.parse(request.queryParameters['max-keys']!); + } + if (request.queryParameters['prefix'] != null) { + b.prefix = request.queryParameters['prefix']!; + } + if (request.queryParameters['continuation-token'] != null) { + b.continuationToken = request.queryParameters['continuation-token']!; + } + if (request.queryParameters['fetch-owner'] != null) { + b.fetchOwner = request.queryParameters['fetch-owner']! == 'true'; + } + if (request.queryParameters['start-after'] != null) { + b.startAfter = request.queryParameters['start-after']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ListObjectsV2RequestRestXmlSerializer()]; + serializers = [ListObjectsV2RequestRestXmlSerializer()]; String get bucket; String? get delimiter; @@ -113,10 +113,7 @@ abstract class ListObjectsV2Request case 'Bucket': return bucket; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -124,61 +121,32 @@ abstract class ListObjectsV2Request @override List get props => [ - bucket, - delimiter, - encodingType, - maxKeys, - prefix, - continuationToken, - fetchOwner, - startAfter, - requestPayer, - expectedBucketOwner, - ]; + bucket, + delimiter, + encodingType, + maxKeys, + prefix, + continuationToken, + fetchOwner, + startAfter, + requestPayer, + expectedBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListObjectsV2Request') - ..add( - 'bucket', - bucket, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'maxKeys', - maxKeys, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'continuationToken', - continuationToken, - ) - ..add( - 'fetchOwner', - fetchOwner, - ) - ..add( - 'startAfter', - startAfter, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('ListObjectsV2Request') + ..add('bucket', bucket) + ..add('delimiter', delimiter) + ..add('encodingType', encodingType) + ..add('maxKeys', maxKeys) + ..add('prefix', prefix) + ..add('continuationToken', continuationToken) + ..add('fetchOwner', fetchOwner) + ..add('startAfter', startAfter) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @@ -189,9 +157,9 @@ abstract class ListObjectsV2RequestPayload implements Built, _i1.EmptyPayload { - factory ListObjectsV2RequestPayload( - [void Function(ListObjectsV2RequestPayloadBuilder) updates]) = - _$ListObjectsV2RequestPayload; + factory ListObjectsV2RequestPayload([ + void Function(ListObjectsV2RequestPayloadBuilder) updates, + ]) = _$ListObjectsV2RequestPayload; const ListObjectsV2RequestPayload._(); @@ -211,19 +179,16 @@ class ListObjectsV2RequestRestXmlSerializer @override Iterable get types => const [ - ListObjectsV2Request, - _$ListObjectsV2Request, - ListObjectsV2RequestPayload, - _$ListObjectsV2RequestPayload, - ]; + ListObjectsV2Request, + _$ListObjectsV2Request, + ListObjectsV2RequestPayload, + _$ListObjectsV2RequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2RequestPayload deserialize( @@ -244,7 +209,7 @@ class ListObjectsV2RequestRestXmlSerializer const _i1.XmlElementName( 'ListObjectsV2Request', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.g.dart index 62b1551105..db1312ec8c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/list_objects_v2_request.g.dart @@ -28,30 +28,33 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { @override final String? expectedBucketOwner; - factory _$ListObjectsV2Request( - [void Function(ListObjectsV2RequestBuilder)? updates]) => - (new ListObjectsV2RequestBuilder()..update(updates))._build(); - - _$ListObjectsV2Request._( - {required this.bucket, - this.delimiter, - this.encodingType, - this.maxKeys, - this.prefix, - this.continuationToken, - this.fetchOwner, - this.startAfter, - this.requestPayer, - this.expectedBucketOwner}) - : super._() { + factory _$ListObjectsV2Request([ + void Function(ListObjectsV2RequestBuilder)? updates, + ]) => (new ListObjectsV2RequestBuilder()..update(updates))._build(); + + _$ListObjectsV2Request._({ + required this.bucket, + this.delimiter, + this.encodingType, + this.maxKeys, + this.prefix, + this.continuationToken, + this.fetchOwner, + this.startAfter, + this.requestPayer, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'); + bucket, + r'ListObjectsV2Request', + 'bucket', + ); } @override ListObjectsV2Request rebuild( - void Function(ListObjectsV2RequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2RequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2RequestBuilder toBuilder() => @@ -174,35 +177,40 @@ class ListObjectsV2RequestBuilder ListObjectsV2Request build() => _build(); _$ListObjectsV2Request _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ListObjectsV2Request._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'), - delimiter: delimiter, - encodingType: encodingType, - maxKeys: maxKeys, - prefix: prefix, - continuationToken: continuationToken, - fetchOwner: fetchOwner, - startAfter: startAfter, - requestPayer: requestPayer, - expectedBucketOwner: expectedBucketOwner); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'ListObjectsV2Request', + 'bucket', + ), + delimiter: delimiter, + encodingType: encodingType, + maxKeys: maxKeys, + prefix: prefix, + continuationToken: continuationToken, + fetchOwner: fetchOwner, + startAfter: startAfter, + requestPayer: requestPayer, + expectedBucketOwner: expectedBucketOwner, + ); replace(_$result); return _$result; } } class _$ListObjectsV2RequestPayload extends ListObjectsV2RequestPayload { - factory _$ListObjectsV2RequestPayload( - [void Function(ListObjectsV2RequestPayloadBuilder)? updates]) => - (new ListObjectsV2RequestPayloadBuilder()..update(updates))._build(); + factory _$ListObjectsV2RequestPayload([ + void Function(ListObjectsV2RequestPayloadBuilder)? updates, + ]) => (new ListObjectsV2RequestPayloadBuilder()..update(updates))._build(); _$ListObjectsV2RequestPayload._() : super._(); @override ListObjectsV2RequestPayload rebuild( - void Function(ListObjectsV2RequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2RequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2RequestPayloadBuilder toBuilder() => @@ -222,8 +230,10 @@ class _$ListObjectsV2RequestPayload extends ListObjectsV2RequestPayload { class ListObjectsV2RequestPayloadBuilder implements - Builder { + Builder< + ListObjectsV2RequestPayload, + ListObjectsV2RequestPayloadBuilder + > { _$ListObjectsV2RequestPayload? _$v; ListObjectsV2RequestPayloadBuilder(); diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/no_such_bucket.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/no_such_bucket.dart index 7f64b381fc..17cf69f950 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/no_such_bucket.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/no_such_bucket.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.no_such_bucket; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -29,21 +29,18 @@ abstract class NoSuchBucket factory NoSuchBucket.fromResponse( NoSuchBucket payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - NoSuchBucketRestXmlSerializer() + NoSuchBucketRestXmlSerializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchBucket', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchBucket'); @override String? get message => null; @@ -75,18 +72,12 @@ class NoSuchBucketRestXmlSerializer const NoSuchBucketRestXmlSerializer() : super('NoSuchBucket'); @override - Iterable get types => const [ - NoSuchBucket, - _$NoSuchBucket, - ]; + Iterable get types => const [NoSuchBucket, _$NoSuchBucket]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoSuchBucket deserialize( @@ -107,7 +98,7 @@ class NoSuchBucketRestXmlSerializer const _i2.XmlElementName( 'NoSuchBucket', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.dart index 3d0b4a0d72..dd01c912bb 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.object; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,7 +38,7 @@ abstract class S3Object const S3Object._(); static const List<_i2.SmithySerializer> serializers = [ - ObjectRestXmlSerializer() + ObjectRestXmlSerializer(), ]; String? get key; @@ -49,41 +49,24 @@ abstract class S3Object Owner? get owner; @override List get props => [ - key, - lastModified, - eTag, - size, - storageClass, - owner, - ]; + key, + lastModified, + eTag, + size, + storageClass, + owner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Object') - ..add( - 'key', - key, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'size', - size, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'owner', - owner, - ); + final helper = + newBuiltValueToStringHelper('S3Object') + ..add('key', key) + ..add('lastModified', lastModified) + ..add('eTag', eTag) + ..add('size', size) + ..add('storageClass', storageClass) + ..add('owner', owner); return helper.toString(); } } @@ -92,18 +75,12 @@ class ObjectRestXmlSerializer extends _i2.StructuredSmithySerializer { const ObjectRestXmlSerializer() : super('Object'); @override - Iterable get types => const [ - S3Object, - _$S3Object, - ]; + Iterable get types => const [S3Object, _$S3Object]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Object deserialize( @@ -122,35 +99,48 @@ class ObjectRestXmlSerializer extends _i2.StructuredSmithySerializer { } switch (key) { case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'Owner': - result.owner.replace((serializers.deserialize( - value, - specifiedType: const FullType(Owner), - ) as Owner)); + result.owner.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Owner), + ) + as Owner), + ); case 'Size': - result.size = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.size = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(ObjectStorageClass), - ) as ObjectStorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(ObjectStorageClass), + ) + as ObjectStorageClass); } } @@ -167,57 +157,55 @@ class ObjectRestXmlSerializer extends _i2.StructuredSmithySerializer { const _i2.XmlElementName( 'Object', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final S3Object(:eTag, :key, :lastModified, :owner, :size, :storageClass) = object; if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i2.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } if (owner != null) { result$ ..add(const _i2.XmlElementName('Owner')) - ..add(serializers.serialize( - owner, - specifiedType: const FullType(Owner), - )); + ..add( + serializers.serialize(owner, specifiedType: const FullType(Owner)), + ); } if (size != null) { result$ ..add(const _i2.XmlElementName('Size')) - ..add(serializers.serialize( - size, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(size, specifiedType: const FullType(int))); } if (storageClass != null) { result$ ..add(const _i2.XmlElementName('StorageClass')) - ..add(serializers.serialize( - storageClass, - specifiedType: const FullType(ObjectStorageClass), - )); + ..add( + serializers.serialize( + storageClass, + specifiedType: const FullType(ObjectStorageClass), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.g.dart index bcd6a2a703..8940f5912e 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object.g.dart @@ -23,14 +23,14 @@ class _$S3Object extends S3Object { factory _$S3Object([void Function(S3ObjectBuilder)? updates]) => (new S3ObjectBuilder()..update(updates))._build(); - _$S3Object._( - {this.key, - this.lastModified, - this.eTag, - this.size, - this.storageClass, - this.owner}) - : super._(); + _$S3Object._({ + this.key, + this.lastModified, + this.eTag, + this.size, + this.storageClass, + this.owner, + }) : super._(); @override S3Object rebuild(void Function(S3ObjectBuilder) updates) => @@ -127,14 +127,16 @@ class S3ObjectBuilder implements Builder { _$S3Object _build() { _$S3Object _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$S3Object._( - key: key, - lastModified: lastModified, - eTag: eTag, - size: size, - storageClass: storageClass, - owner: _owner?.build()); + key: key, + lastModified: lastModified, + eTag: eTag, + size: size, + storageClass: storageClass, + owner: _owner?.build(), + ); } catch (_) { late String _$failedField; try { @@ -142,7 +144,10 @@ class S3ObjectBuilder implements Builder { _owner?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'S3Object', _$failedField, e.toString()); + r'S3Object', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object_storage_class.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object_storage_class.dart index f5e3d34eee..41b1aad95c 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object_storage_class.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/object_storage_class.dart @@ -1,16 +1,12 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.object_storage_class; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class ObjectStorageClass extends _i1.SmithyEnum { - const ObjectStorageClass._( - super.index, - super.name, - super.value, - ); + const ObjectStorageClass._(super.index, super.name, super.value); const ObjectStorageClass._sdkUnknown(super.value) : super.sdkUnknown(); @@ -20,11 +16,7 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'DEEP_ARCHIVE', ); - static const glacier = ObjectStorageClass._( - 1, - 'GLACIER', - 'GLACIER', - ); + static const glacier = ObjectStorageClass._(1, 'GLACIER', 'GLACIER'); static const intelligentTiering = ObjectStorageClass._( 2, @@ -32,17 +24,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'INTELLIGENT_TIERING', ); - static const onezoneIa = ObjectStorageClass._( - 3, - 'ONEZONE_IA', - 'ONEZONE_IA', - ); + static const onezoneIa = ObjectStorageClass._(3, 'ONEZONE_IA', 'ONEZONE_IA'); - static const outposts = ObjectStorageClass._( - 4, - 'OUTPOSTS', - 'OUTPOSTS', - ); + static const outposts = ObjectStorageClass._(4, 'OUTPOSTS', 'OUTPOSTS'); static const reducedRedundancy = ObjectStorageClass._( 5, @@ -50,11 +34,7 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'REDUCED_REDUNDANCY', ); - static const standard = ObjectStorageClass._( - 6, - 'STANDARD', - 'STANDARD', - ); + static const standard = ObjectStorageClass._(6, 'STANDARD', 'STANDARD'); static const standardIa = ObjectStorageClass._( 7, @@ -80,12 +60,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { values: values, sdkUnknown: ObjectStorageClass._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.dart index 9bfc442cee..d85ad7edd9 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestXmlSerializer() + OperationConfigRestXmlSerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestXmlSerializer const OperationConfigRestXmlSerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestXmlSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -101,16 +96,15 @@ class OperationConfigRestXmlSerializer const _i2.XmlElementName( 'OperationConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/owner.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/owner.dart index 729827d468..bc5d6fab0f 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/owner.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/owner.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.owner; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,14 +13,8 @@ part 'owner.g.dart'; abstract class Owner with _i1.AWSEquatable implements Built { - factory Owner({ - String? displayName, - String? id, - }) { - return _$Owner._( - displayName: displayName, - id: id, - ); + factory Owner({String? displayName, String? id}) { + return _$Owner._(displayName: displayName, id: id); } factory Owner.build([void Function(OwnerBuilder) updates]) = _$Owner; @@ -28,28 +22,20 @@ abstract class Owner const Owner._(); static const List<_i2.SmithySerializer> serializers = [ - OwnerRestXmlSerializer() + OwnerRestXmlSerializer(), ]; String? get displayName; String? get id; @override - List get props => [ - displayName, - id, - ]; + List get props => [displayName, id]; @override String toString() { - final helper = newBuiltValueToStringHelper('Owner') - ..add( - 'displayName', - displayName, - ) - ..add( - 'id', - id, - ); + final helper = + newBuiltValueToStringHelper('Owner') + ..add('displayName', displayName) + ..add('id', id); return helper.toString(); } } @@ -58,18 +44,12 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { const OwnerRestXmlSerializer() : super('Owner'); @override - Iterable get types => const [ - Owner, - _$Owner, - ]; + Iterable get types => const [Owner, _$Owner]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Owner deserialize( @@ -88,15 +68,19 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { } switch (key) { case 'DisplayName': - result.displayName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.displayName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ID': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -113,24 +97,23 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { const _i2.XmlElementName( 'Owner', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Owner(:displayName, :id) = object; if (displayName != null) { result$ ..add(const _i2.XmlElementName('DisplayName')) - ..add(serializers.serialize( - displayName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + displayName, + specifiedType: const FullType(String), + ), + ); } if (id != null) { result$ ..add(const _i2.XmlElementName('ID')) - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/request_payer.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/request_payer.dart index 89bf22400a..68d8bec440 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/request_payer.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/request_payer.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.request_payer; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class RequestPayer extends _i1.SmithyEnum { - const RequestPayer._( - super.index, - super.name, - super.value, - ); + const RequestPayer._(super.index, super.name, super.value); const RequestPayer._sdkUnknown(super.value) : super.sdkUnknown(); - static const requester = RequestPayer._( - 0, - 'requester', - 'requester', - ); + static const requester = RequestPayer._(0, 'requester', 'requester'); /// All values of [RequestPayer]. static const values = [RequestPayer.requester]; @@ -29,12 +21,9 @@ class RequestPayer extends _i1.SmithyEnum { values: values, sdkUnknown: RequestPayer._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_config.dart index 287ee0b941..d0eac9e906 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestXmlSerializer() + RetryConfigRestXmlSerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestXmlSerializer const RetryConfigRestXmlSerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestXmlSerializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -120,24 +104,25 @@ class RetryConfigRestXmlSerializer const _i2.XmlElementName( 'RetryConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final RetryConfig(:maxAttempts, :mode) = object; if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_mode.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_mode.dart index 1ab8106e88..d9b6bb620b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_addressing_style.dart index 83084c22fe..0a8cc3f86b 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.dart index b10a00b732..c963a9b4be 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestXmlSerializer() + S3ConfigRestXmlSerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestXmlSerializer const S3ConfigRestXmlSerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestXmlSerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,36 +124,42 @@ class S3ConfigRestXmlSerializer const _i2.XmlElementName( 'S3Config', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.dart index e1fd5fa6c7..49ccc480fd 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestXmlSerializer() + ScopedConfigRestXmlSerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestXmlSerializer const ScopedConfigRestXmlSerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigRestXmlSerializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -188,68 +173,72 @@ class ScopedConfigRestXmlSerializer const _i3.XmlElementName( 'ScopedConfig', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ScopedConfig( :client, :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.g.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart index 43b8a13847..9923c6c7c3 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.operation.delete_object_tagging_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,11 +14,14 @@ import 'package:rest_xml_v1/src/s3/model/delete_object_tagging_request.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DeleteObjectTaggingOperation extends _i1.HttpOperation< - DeleteObjectTaggingRequestPayload, - DeleteObjectTaggingRequest, - DeleteObjectTaggingOutputPayload, - DeleteObjectTaggingOutput> { +class DeleteObjectTaggingOperation + extends + _i1.HttpOperation< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequest, + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutput + > { DeleteObjectTaggingOperation({ required String region, Uri? baseUri, @@ -27,33 +30,38 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - DeleteObjectTaggingRequestPayload, - DeleteObjectTaggingRequest, - DeleteObjectTaggingOutputPayload, - DeleteObjectTaggingOutput>> protocols = [ + _i1.HttpProtocol< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequest, + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -61,7 +69,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -85,9 +93,10 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< _i1.HttpRequest buildRequest(DeleteObjectTaggingRequest input) => _i1.HttpRequest((b) { b.method = 'DELETE'; - b.path = _s3ClientConfig.usePathStyle - ? r'/{Bucket}/{Key+}?tagging' - : r'/{Key+}?tagging'; + b.path = + _s3ClientConfig.usePathStyle + ? r'/{Bucket}/{Key+}?tagging' + : r'/{Key+}?tagging'; b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; if (input.expectedBucketOwner != null) { if (input.expectedBucketOwner!.isNotEmpty) { @@ -96,10 +105,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< } } if (input.versionId != null) { - b.queryParameters.add( - 'versionId', - input.versionId!, - ); + b.queryParameters.add('versionId', input.versionId!); } }); @@ -110,11 +116,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< DeleteObjectTaggingOutput buildOutput( DeleteObjectTaggingOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - DeleteObjectTaggingOutput.fromResponse( - payload, - response, - ); + ) => DeleteObjectTaggingOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -153,11 +155,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/get_bucket_location_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/get_bucket_location_operation.dart index 8feada9a25..cbf7d6b178 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/get_bucket_location_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/get_bucket_location_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.operation.get_bucket_location_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,11 +15,14 @@ import 'package:rest_xml_v1/src/s3/model/get_bucket_location_request.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class GetBucketLocationOperation extends _i1.HttpOperation< - GetBucketLocationRequestPayload, - GetBucketLocationRequest, - BucketLocationConstraint, - GetBucketLocationOutput> { +class GetBucketLocationOperation + extends + _i1.HttpOperation< + GetBucketLocationRequestPayload, + GetBucketLocationRequest, + BucketLocationConstraint, + GetBucketLocationOutput + > { GetBucketLocationOperation({ required String region, Uri? baseUri, @@ -28,33 +31,38 @@ class GetBucketLocationOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - GetBucketLocationRequestPayload, - GetBucketLocationRequest, - BucketLocationConstraint, - GetBucketLocationOutput>> protocols = [ + _i1.HttpProtocol< + GetBucketLocationRequestPayload, + GetBucketLocationRequest, + BucketLocationConstraint, + GetBucketLocationOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -62,7 +70,7 @@ class GetBucketLocationOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -86,9 +94,10 @@ class GetBucketLocationOperation extends _i1.HttpOperation< _i1.HttpRequest buildRequest(GetBucketLocationRequest input) => _i1.HttpRequest((b) { b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle - ? r'/{Bucket}?location' - : r'/?location'; + b.path = + _s3ClientConfig.usePathStyle + ? r'/{Bucket}?location' + : r'/?location'; b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; }); @@ -99,11 +108,7 @@ class GetBucketLocationOperation extends _i1.HttpOperation< GetBucketLocationOutput buildOutput( BucketLocationConstraint? payload, _i4.AWSBaseHttpResponse response, - ) => - GetBucketLocationOutput.fromResponse( - payload, - response, - ); + ) => GetBucketLocationOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -142,11 +147,7 @@ class GetBucketLocationOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/list_objects_v2_operation.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/list_objects_v2_operation.dart index 87949a938c..a17438b6a4 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/list_objects_v2_operation.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/operation/list_objects_v2_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.operation.list_objects_v2_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,14 +15,17 @@ import 'package:rest_xml_v1/src/s3/model/no_such_bucket.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< - ListObjectsV2RequestPayload, - ListObjectsV2Request, - ListObjectsV2Output, - ListObjectsV2Output, - String, - int, - ListObjectsV2Output> { +class ListObjectsV2Operation + extends + _i1.PaginatedHttpOperation< + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2Output, + ListObjectsV2Output, + String, + int, + ListObjectsV2Output + > { ListObjectsV2Operation({ required String region, Uri? baseUri, @@ -31,30 +34,38 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2Output, + ListObjectsV2Output + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -62,7 +73,7 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,65 +94,45 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(ListObjectsV2Request input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest(ListObjectsV2Request input) => _i1.HttpRequest(( + b, + ) { + b.method = 'GET'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}?list-type=2' : r'/?list-type=2'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.delimiter != null) { - b.queryParameters.add( - 'delimiter', - input.delimiter!, - ); - } - if (input.encodingType != null) { - b.queryParameters.add( - 'encoding-type', - input.encodingType!.value, - ); - } - if (input.maxKeys != null) { - b.queryParameters.add( - 'max-keys', - input.maxKeys!.toString(), - ); - } - if (input.prefix != null) { - b.queryParameters.add( - 'prefix', - input.prefix!, - ); - } - if (input.continuationToken != null) { - b.queryParameters.add( - 'continuation-token', - input.continuationToken!, - ); - } - if (input.fetchOwner != null) { - b.queryParameters.add( - 'fetch-owner', - input.fetchOwner!.toString(), - ); - } - if (input.startAfter != null) { - b.queryParameters.add( - 'start-after', - input.startAfter!, - ); - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.delimiter != null) { + b.queryParameters.add('delimiter', input.delimiter!); + } + if (input.encodingType != null) { + b.queryParameters.add('encoding-type', input.encodingType!.value); + } + if (input.maxKeys != null) { + b.queryParameters.add('max-keys', input.maxKeys!.toString()); + } + if (input.prefix != null) { + b.queryParameters.add('prefix', input.prefix!); + } + if (input.continuationToken != null) { + b.queryParameters.add('continuation-token', input.continuationToken!); + } + if (input.fetchOwner != null) { + b.queryParameters.add('fetch-owner', input.fetchOwner!.toString()); + } + if (input.startAfter != null) { + b.queryParameters.add('start-after', input.startAfter!); + } + }); @override int successCode([ListObjectsV2Output? output]) => 200; @@ -150,24 +141,17 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< ListObjectsV2Output buildOutput( ListObjectsV2Output payload, _i4.AWSBaseHttpResponse response, - ) => - ListObjectsV2Output.fromResponse( - payload, - response, - ); + ) => ListObjectsV2Output.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchBucket', - ), - _i1.ErrorKind.client, - NoSuchBucket, - builder: NoSuchBucket.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchBucket'), + _i1.ErrorKind.client, + NoSuchBucket, + builder: NoSuchBucket.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ListObjectsV2'; @@ -203,11 +187,7 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, @@ -226,11 +206,10 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< ListObjectsV2Request input, String token, int? pageSize, - ) => - input.rebuild((b) { - b.continuationToken = token; - if (pageSize != null) { - b.maxKeys = pageSize; - } - }); + ) => input.rebuild((b) { + b.continuationToken = token; + if (pageSize != null) { + b.maxKeys = pageSize; + } + }); } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_client.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_client.dart index 7a72d66c02..db335939ef 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_client.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.s3_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,13 +27,13 @@ class S3Client { const _i3.AWSCredentialsProvider.defaultChain(), List<_i4.HttpRequestInterceptor> requestInterceptors = const [], List<_i4.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -62,10 +62,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i4.SmithyOperation getBucketLocation( @@ -81,14 +78,11 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i4.SmithyOperation<_i4.PaginatedResult> - listObjectsV2( + listObjectsV2( ListObjectsV2Request input, { _i1.AWSHttpClient? client, _i2.S3ClientConfig? s3ClientConfig, @@ -101,9 +95,6 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).runPaginated( - input, - client: client ?? _client, - ); + ).runPaginated(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_server.dart b/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_server.dart index c679b342cd..4b6fe36663 100644 --- a/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_server.dart +++ b/packages/smithy/goldens/lib/restXml/lib/src/s3/s3_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v1.s3.s3_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,16 +35,8 @@ abstract class S3ServerBase extends _i1.HttpServerBase { r'//?tagging', service.deleteObjectTagging, ); - router.add( - 'GET', - r'/?location', - service.getBucketLocation, - ); - router.add( - 'GET', - r'/?list-type=2', - service.listObjectsV2, - ); + router.add('GET', r'/?location', service.getBucketLocation); + router.add('GET', r'/?list-type=2', service.listObjectsV2); return router; }(); @@ -70,31 +62,36 @@ class _S3Server extends _i1.HttpServer { final S3ServerBase service; late final _i1.HttpProtocol< - DeleteObjectTaggingRequestPayload, - DeleteObjectTaggingRequest, - DeleteObjectTaggingOutputPayload, - DeleteObjectTaggingOutput> _deleteObjectTaggingProtocol = - _i2.RestXmlProtocol( + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequest, + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutput + > + _deleteObjectTaggingProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, ); late final _i1.HttpProtocol< - GetBucketLocationRequestPayload, - GetBucketLocationRequest, - BucketLocationConstraint, - GetBucketLocationOutput> _getBucketLocationProtocol = _i2.RestXmlProtocol( + GetBucketLocationRequestPayload, + GetBucketLocationRequest, + BucketLocationConstraint, + GetBucketLocationOutput + > + _getBucketLocationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, ); late final _i1.HttpProtocol< - ListObjectsV2RequestPayload, - ListObjectsV2Request, - ListObjectsV2Output, - ListObjectsV2Output> _listObjectsV2Protocol = _i2.RestXmlProtocol( + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2Output, + ListObjectsV2Output + > + _listObjectsV2Protocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, @@ -112,28 +109,24 @@ class _S3Server extends _i1.HttpServer { try { final payload = (await _deleteObjectTaggingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(DeleteObjectTaggingRequestPayload), - ) as DeleteObjectTaggingRequestPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + DeleteObjectTaggingRequestPayload, + ), + ) + as DeleteObjectTaggingRequestPayload); final input = DeleteObjectTaggingRequest.fromRequest( payload, awsRequest, - labels: { - 'Bucket': Bucket, - 'Key': Key, - }, - ); - final output = await service.deleteObjectTagging( - input, - context, + labels: {'Bucket': Bucket, 'Key': Key}, ); + final output = await service.deleteObjectTagging(input, context); const statusCode = 204; final body = await _deleteObjectTaggingProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DeleteObjectTaggingOutput, - [FullType(DeleteObjectTaggingOutputPayload)], - ), + specifiedType: const FullType(DeleteObjectTaggingOutput, [ + FullType(DeleteObjectTaggingOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -141,10 +134,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -159,25 +149,22 @@ class _S3Server extends _i1.HttpServer { try { final payload = (await _getBucketLocationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GetBucketLocationRequestPayload), - ) as GetBucketLocationRequestPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(GetBucketLocationRequestPayload), + ) + as GetBucketLocationRequestPayload); final input = GetBucketLocationRequest.fromRequest( payload, awsRequest, labels: {'Bucket': Bucket}, ); - final output = await service.getBucketLocation( - input, - context, - ); + final output = await service.getBucketLocation(input, context); const statusCode = 200; final body = await _getBucketLocationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GetBucketLocationOutput, - [FullType.nullable(BucketLocationConstraint)], - ), + specifiedType: const FullType(GetBucketLocationOutput, [ + FullType.nullable(BucketLocationConstraint), + ]), ); return _i4.Response( statusCode, @@ -185,10 +172,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -201,26 +185,24 @@ class _S3Server extends _i1.HttpServer { context.response.headers['Content-Type'] = _listObjectsV2Protocol.contentType; try { - final payload = (await _listObjectsV2Protocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ListObjectsV2RequestPayload), - ) as ListObjectsV2RequestPayload); + final payload = + (await _listObjectsV2Protocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(ListObjectsV2RequestPayload), + ) + as ListObjectsV2RequestPayload); final input = ListObjectsV2Request.fromRequest( payload, awsRequest, labels: {'Bucket': Bucket}, ); - final output = await service.listObjectsV2( - input, - context, - ); + final output = await service.listObjectsV2(input, context); const statusCode = 200; final body = await _listObjectsV2Protocol.wireSerializer.serialize( output, - specifiedType: const FullType( - ListObjectsV2Output, - [FullType(ListObjectsV2Output)], - ), + specifiedType: const FullType(ListObjectsV2Output, [ + FullType(ListObjectsV2Output), + ]), ); return _i4.Response( statusCode, @@ -231,10 +213,7 @@ class _S3Server extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'NoSuchBucket'; final body = _listObjectsV2Protocol.wireSerializer.serialize( e, - specifiedType: const FullType( - NoSuchBucket, - [FullType(NoSuchBucket)], - ), + specifiedType: const FullType(NoSuchBucket, [FullType(NoSuchBucket)]), ); const statusCode = 400; return _i4.Response( @@ -243,10 +222,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/restXml/pubspec.yaml b/packages/smithy/goldens/lib/restXml/pubspec.yaml index 4562b64c4c..b8d3a10799 100644 --- a/packages/smithy/goldens/lib/restXml/pubspec.yaml +++ b/packages/smithy/goldens/lib/restXml/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,8 +16,8 @@ dependencies: built_value: ^8.6.0 fixnum: ^1.0.0 built_collection: ^5.0.0 - meta: ^1.7.0 - xml: ">=6.3.0 <=6.5.0" + meta: ^1.16.0 + xml: 6.3.0 shelf_router: ^1.1.0 shelf: ^1.4.0 aws_signature_v4: @@ -43,6 +43,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart index 0de2f00232..8790ef3328 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.all_query_string_types_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,314 +15,234 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AllQueryStringTypes (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AllQueryStringTypes', - documentation: - 'Serializes query string parameters with all supported types', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryString': 'Hello there', - 'queryStringList': [ - 'a', - 'b', - 'c', - ], - 'queryStringSet': [ - 'a', - 'b', - 'c', - ], - 'queryByte': 1, - 'queryShort': 2, - 'queryInteger': 3, - 'queryIntegerList': [ - 1, - 2, - 3, - ], - 'queryIntegerSet': [ - 1, - 2, - 3, - ], - 'queryLong': 4, - 'queryFloat': 1.1, - 'queryDouble': 1.1, - 'queryDoubleList': [ - 1.1, - 2.1, - 3.1, - ], - 'queryBoolean': true, - 'queryBooleanList': [ - true, - false, - true, - ], - 'queryTimestamp': 1, - 'queryTimestampList': [ - 1, - 2, - 3, - ], - 'queryEnum': 'Foo', - 'queryEnumList': [ - 'Foo', - 'Baz', - 'Bar', - ], - 'queryIntegerEnum': 1, - 'queryIntegerEnumList': [ - 1, - 2, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=Hello%20there', - 'StringList=a', - 'StringList=b', - 'StringList=c', - 'StringSet=a', - 'StringSet=b', - 'StringSet=c', - 'Byte=1', - 'Short=2', - 'Integer=3', - 'IntegerList=1', - 'IntegerList=2', - 'IntegerList=3', - 'IntegerSet=1', - 'IntegerSet=2', - 'IntegerSet=3', - 'Long=4', - 'Float=1.1', - 'Double=1.1', - 'DoubleList=1.1', - 'DoubleList=2.1', - 'DoubleList=3.1', - 'Boolean=true', - 'BooleanList=true', - 'BooleanList=false', - 'BooleanList=true', - 'Timestamp=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A02Z', - 'TimestampList=1970-01-01T00%3A00%3A03Z', - 'Enum=Foo', - 'EnumList=Foo', - 'EnumList=Baz', - 'EnumList=Bar', - 'IntegerEnum=1', - 'IntegerEnumList=1', - 'IntegerEnumList=2', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlQueryStringMap (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryStringMap', - documentation: 'Handles query string maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryParamsMapOfStrings': { - 'QueryParamsStringKeyA': 'Foo', - 'QueryParamsStringKeyB': 'Bar', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'QueryParamsStringKeyA=Foo', - 'QueryParamsStringKeyB=Bar', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlQueryStringEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryStringEscaping', - documentation: - 'Handles escaping all required characters in the query string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'queryString': ' %:/?#[]@!\$&\'()*+,;=😹'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9' - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatQueryValues', - documentation: 'Supports handling NaN float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'NaN', - 'queryDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=NaN', - 'Double=NaN', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatQueryValues', - documentation: 'Supports handling Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'Infinity', - 'queryDouble': 'Infinity', + _i1.test('AllQueryStringTypes (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AllQueryStringTypes', + documentation: + 'Serializes query string parameters with all supported types', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryString': 'Hello there', + 'queryStringList': ['a', 'b', 'c'], + 'queryStringSet': ['a', 'b', 'c'], + 'queryByte': 1, + 'queryShort': 2, + 'queryInteger': 3, + 'queryIntegerList': [1, 2, 3], + 'queryIntegerSet': [1, 2, 3], + 'queryLong': 4, + 'queryFloat': 1.1, + 'queryDouble': 1.1, + 'queryDoubleList': [1.1, 2.1, 3.1], + 'queryBoolean': true, + 'queryBooleanList': [true, false, true], + 'queryTimestamp': 1, + 'queryTimestampList': [1, 2, 3], + 'queryEnum': 'Foo', + 'queryEnumList': ['Foo', 'Baz', 'Bar'], + 'queryIntegerEnum': 1, + 'queryIntegerEnumList': [1, 2], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=Hello%20there', + 'StringList=a', + 'StringList=b', + 'StringList=c', + 'StringSet=a', + 'StringSet=b', + 'StringSet=c', + 'Byte=1', + 'Short=2', + 'Integer=3', + 'IntegerList=1', + 'IntegerList=2', + 'IntegerList=3', + 'IntegerSet=1', + 'IntegerSet=2', + 'IntegerSet=3', + 'Long=4', + 'Float=1.1', + 'Double=1.1', + 'DoubleList=1.1', + 'DoubleList=2.1', + 'DoubleList=3.1', + 'Boolean=true', + 'BooleanList=true', + 'BooleanList=false', + 'BooleanList=true', + 'Timestamp=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A02Z', + 'TimestampList=1970-01-01T00%3A00%3A03Z', + 'Enum=Foo', + 'EnumList=Foo', + 'EnumList=Baz', + 'EnumList=Bar', + 'IntegerEnum=1', + 'IntegerEnumList=1', + 'IntegerEnumList=2', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlQueryStringMap (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryStringMap', + documentation: 'Handles query string maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryParamsMapOfStrings': { + 'QueryParamsStringKeyA': 'Foo', + 'QueryParamsStringKeyB': 'Bar', }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=Infinity', - 'Double=Infinity', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['QueryParamsStringKeyA=Foo', 'QueryParamsStringKeyB=Bar'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlQueryStringEscaping (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryStringEscaping', + documentation: + 'Handles escaping all required characters in the query string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'queryString': ' %:/?#[]@!\$&\'()*+,;=😹'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsNaNFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatQueryValues', + documentation: 'Supports handling NaN float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'queryFloat': 'NaN', 'queryDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=NaN', 'Double=NaN'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatQueryValues', + documentation: 'Supports handling Infinity float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'queryFloat': 'Infinity', 'queryDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=Infinity', 'Double=Infinity'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); _i1.test( 'RestXmlSupportsNegativeInfinityFloatQueryValues (request)', () async { @@ -334,17 +254,11 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestXmlSupportsNegativeInfinityFloatQueryValues', documentation: 'Supports handling -Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'queryFloat': '-Infinity', - 'queryDouble': '-Infinity', - }, + params: {'queryFloat': '-Infinity', 'queryDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -356,10 +270,7 @@ void main() { uri: '/AllQueryStringTypesInput', host: null, resolvedHost: null, - queryParams: [ - 'Float=-Infinity', - 'Double=-Infinity', - ], + queryParams: ['Float=-Infinity', 'Double=-Infinity'], forbidQueryParams: [], requireQueryParams: [], ), @@ -372,18 +283,15 @@ void main() { class AllQueryStringTypesInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const AllQueryStringTypesInputRestXmlSerializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [AllQueryStringTypesInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AllQueryStringTypesInput deserialize( @@ -402,144 +310,173 @@ class AllQueryStringTypesInputRestXmlSerializer } switch (key) { case 'queryString': - result.queryString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.queryString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'queryStringList': - result.queryStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.queryStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'queryStringSet': - result.queryStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.queryStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'queryByte': - result.queryByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryShort': - result.queryShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryInteger': - result.queryInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryIntegerList': - result.queryIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryIntegerSet': - result.queryIntegerSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.queryIntegerSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'queryLong': - result.queryLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.Int64), - ) as _i5.Int64); + result.queryLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Int64), + ) + as _i5.Int64); case 'queryFloat': - result.queryFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDouble': - result.queryDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDoubleList': - result.queryDoubleList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(double)], - ), - ) as _i4.BuiltList)); + result.queryDoubleList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(double), + ]), + ) + as _i4.BuiltList), + ); case 'queryBoolean': - result.queryBoolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.queryBoolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'queryBooleanList': - result.queryBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); - case 'queryTimestamp': - result.queryTimestamp = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, + result.queryBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), ); + case 'queryTimestamp': + result.queryTimestamp = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'queryTimestampList': - result.queryTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.queryTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'queryEnum': - result.queryEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.queryEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'queryEnumList': - result.queryEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.queryEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerEnum': - result.queryIntegerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryIntegerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryIntegerEnumList': - result.queryIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryParamsMapOfStrings': - result.queryParamsMapOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.queryParamsMapOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart index 5d399ed305..67972f77fd 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.body_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,105 +13,90 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'BodyWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: BodyWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'BodyWithXmlName', - documentation: - 'Serializes a payload using a wrapper name based on the xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/BodyWithXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - BodyWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'BodyWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: BodyWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'BodyWithXmlName', - documentation: - 'Serializes a payload using a wrapper name based on the xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - BodyWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('BodyWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: BodyWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'BodyWithXmlName', + documentation: + 'Serializes a payload using a wrapper name based on the xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/BodyWithXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + BodyWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); + _i1.test('BodyWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: BodyWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'BodyWithXmlName', + documentation: + 'Serializes a payload using a wrapper name based on the xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + BodyWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); } class BodyWithXmlNameInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const BodyWithXmlNameInputOutputRestXmlSerializer() - : super('BodyWithXmlNameInputOutput'); + : super('BodyWithXmlNameInputOutput'); @override Iterable get types => const [BodyWithXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override BodyWithXmlNameInputOutput deserialize( @@ -130,10 +115,13 @@ class BodyWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -159,11 +147,8 @@ class PayloadWithXmlNameRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -182,10 +167,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart index 08193410bc..1fc4e2998a 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.constant_and_variable_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,113 +12,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'ConstantAndVariableQueryStringMissingOneValue (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantAndVariableQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'ConstantAndVariableQueryStringMissingOneValue', - documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'baz': 'bam'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantAndVariableQueryString', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - ], - forbidQueryParams: ['maybeSet'], - requireQueryParams: [], - ), - inputSerializers: const [ - ConstantAndVariableQueryStringInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'ConstantAndVariableQueryStringAllValues (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantAndVariableQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'ConstantAndVariableQueryStringAllValues', - documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'baz': 'bam', - 'maybeSet': 'yes', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantAndVariableQueryString', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - 'maybeSet=yes', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - ConstantAndVariableQueryStringInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('ConstantAndVariableQueryStringMissingOneValue (request)', () async { + await _i2.httpRequestTest( + operation: ConstantAndVariableQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ConstantAndVariableQueryStringMissingOneValue', + documentation: 'Mixes constant and variable query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'baz': 'bam'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantAndVariableQueryString', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'baz=bam'], + forbidQueryParams: ['maybeSet'], + requireQueryParams: [], + ), + inputSerializers: const [ + ConstantAndVariableQueryStringInputRestXmlSerializer(), + ], + ); + }); + _i1.test('ConstantAndVariableQueryStringAllValues (request)', () async { + await _i2.httpRequestTest( + operation: ConstantAndVariableQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ConstantAndVariableQueryStringAllValues', + documentation: 'Mixes constant and variable query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'baz': 'bam', 'maybeSet': 'yes'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantAndVariableQueryString', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'baz=bam', 'maybeSet=yes'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + ConstantAndVariableQueryStringInputRestXmlSerializer(), + ], + ); + }); } -class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const ConstantAndVariableQueryStringInputRestXmlSerializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ConstantAndVariableQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantAndVariableQueryStringInput deserialize( @@ -137,15 +113,19 @@ class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i3 } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'maybeSet': - result.maybeSet = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maybeSet = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart index ae4a0fbf89..550c84903b 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.constant_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,52 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'ConstantQueryString (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'ConstantQueryString', - documentation: 'Includes constant query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'hello': 'hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantQueryString/hi', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'hello', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ConstantQueryStringInputRestXmlSerializer()], - ); - }, - ); + _i1.test('ConstantQueryString (request)', () async { + await _i2.httpRequestTest( + operation: ConstantQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ConstantQueryString', + documentation: 'Includes constant query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'hello': 'hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantQueryString/hi', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'hello'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ConstantQueryStringInputRestXmlSerializer()], + ); + }); } class ConstantQueryStringInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const ConstantQueryStringInputRestXmlSerializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ConstantQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantQueryStringInput deserialize( @@ -88,10 +76,12 @@ class ConstantQueryStringInputRestXmlSerializer } switch (key) { case 'hello': - result.hello = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hello = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart index ed08b44a59..40603741f3 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2019-12-16T22:48:18-01:00\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2019-12-17T00:48:18+01:00\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2019-12-16T22:48:18-01:00\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2019-12-17T00:48:18+01:00\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], + ); + }); } class DatetimeOffsetsOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputRestXmlSerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart index 8d7e72b418..6229979e72 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,97 +13,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'EmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'EmptyInputAndEmptyOutput', - documentation: 'Empty input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EmptyInputAndEmptyOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'EmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'EmptyInputAndEmptyOutput', - documentation: 'Empty output serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('EmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'EmptyInputAndEmptyOutput', + documentation: 'Empty input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EmptyInputAndEmptyOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputRestXmlSerializer(), + ], + ); + }); + _i1.test('EmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'EmptyInputAndEmptyOutput', + documentation: 'Empty output serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputRestXmlSerializer(), + ], + ); + }); } class EmptyInputAndEmptyOutputInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -127,18 +112,15 @@ class EmptyInputAndEmptyOutputInputRestXmlSerializer class EmptyInputAndEmptyOutputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_operation_test.dart index 3eb30421cc..502517617c 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointOperation', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('RestXmlEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointOperation', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart index 0ee4bebe46..e24292e69f 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.endpoint_with_host_label_header_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,39 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlEndpointTraitWithHostLabelAndHttpBinding (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelHeaderOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlEndpointTraitWithHostLabelAndHttpBinding', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input. The label must also\nbe serialized in into any other location it is bound to, such\nas the body or in this case an http header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/xml', - params: {'accountId': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amz-Account-Id': 'bar'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointWithHostLabelHeaderOperation', - host: 'example.com', - resolvedHost: 'bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelHeaderInputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlEndpointTraitWithHostLabelAndHttpBinding (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelHeaderOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlEndpointTraitWithHostLabelAndHttpBinding', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input. The label must also\nbe serialized in into any other location it is bound to, such\nas the body or in this case an http header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: 'application/xml', + params: {'accountId': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amz-Account-Id': 'bar'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointWithHostLabelHeaderOperation', + host: 'example.com', + resolvedHost: 'bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelHeaderInputRestXmlSerializer()], + ); + }); } class HostLabelHeaderInputRestXmlSerializer @@ -62,11 +56,8 @@ class HostLabelHeaderInputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelHeaderInput deserialize( @@ -85,10 +76,12 @@ class HostLabelHeaderInputRestXmlSerializer } switch (key) { case 'accountId': - result.accountId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accountId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart index dbe4f102c0..b8d5951240 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,39 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '\n \n\n', - bodyMediaType: 'application/xml', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointWithHostLabelOperation', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '\n \n\n', + bodyMediaType: 'application/xml', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointWithHostLabelOperation', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputRestXmlSerializer()], + ); + }); } class HostLabelInputRestXmlSerializer @@ -62,11 +56,8 @@ class HostLabelInputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelInput deserialize( @@ -85,10 +76,12 @@ class HostLabelInputRestXmlSerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart index 2629b8681f..491ea2860b 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.flattened_xml_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,107 +14,84 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'FlattenedXmlMap (request)', - () async { - await _i2.httpRequestTest( - operation: FlattenedXmlMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'FlattenedXmlMap', - documentation: 'Serializes flattened XML maps in requests', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': 'Foo', - 'baz': 'Baz', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/FlattenedXmlMap', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [FlattenedXmlMapInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'FlattenedXmlMap (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'FlattenedXmlMap', - documentation: 'Serializes flattened XML maps in responses', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': 'Foo', - 'baz': 'Baz', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('FlattenedXmlMap (request)', () async { + await _i2.httpRequestTest( + operation: FlattenedXmlMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlattenedXmlMap', + documentation: 'Serializes flattened XML maps in requests', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'foo': 'Foo', 'baz': 'Baz'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/FlattenedXmlMap', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [FlattenedXmlMapInputOutputRestXmlSerializer()], + ); + }); + _i1.test('FlattenedXmlMap (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'FlattenedXmlMap', + documentation: 'Serializes flattened XML maps in responses', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'foo': 'Foo', 'baz': 'Baz'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FlattenedXmlMapInputOutputRestXmlSerializer()], + ); + }); } class FlattenedXmlMapInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapInputOutputRestXmlSerializer() - : super('FlattenedXmlMapInputOutput'); + : super('FlattenedXmlMapInputOutput'); @override Iterable get types => const [FlattenedXmlMapInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapInputOutput deserialize( @@ -133,16 +110,16 @@ class FlattenedXmlMapInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart index 05c3260d24..b76955bcb8 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.flattened_xml_map_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,111 +13,91 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'FlattenedXmlMapWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: FlattenedXmlMapWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'FlattenedXmlMapWithXmlName', - documentation: - 'Serializes flattened XML maps in requests that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n a\n A\n \n \n b\n B\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/FlattenedXmlMapWithXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'FlattenedXmlMapWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'FlattenedXmlMapWithXmlName', - documentation: - 'Serializes flattened XML maps in responses that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n a\n A\n \n \n b\n B\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('FlattenedXmlMapWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: FlattenedXmlMapWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlattenedXmlMapWithXmlName', + documentation: + 'Serializes flattened XML maps in requests that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n a\n A\n \n \n b\n B\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/FlattenedXmlMapWithXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('FlattenedXmlMapWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'FlattenedXmlMapWithXmlName', + documentation: + 'Serializes flattened XML maps in responses that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n a\n A\n \n \n b\n B\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer(), + ], + ); + }); } -class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNameInputOutput'); + : super('FlattenedXmlMapWithXmlNameInputOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNameInputOutput deserialize( @@ -136,16 +116,16 @@ class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart index 081851ae6d..542292a4a2 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.flattened_xml_map_with_xml_namespace_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,64 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlFlattenedXmlMapWithXmlNamespace (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlFlattenedXmlMapWithXmlNamespace', - documentation: - 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n a\n A\n \n \n b\n B\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('RestXmlFlattenedXmlMapWithXmlNamespace (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlFlattenedXmlMapWithXmlNamespace', + documentation: + 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n a\n A\n \n \n b\n B\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer(), + ], + ); + }); } -class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNamespaceOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -89,16 +78,16 @@ class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart index d05ce8042d..98cce0aab2 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,57 +12,48 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2000-01-02T20:34:56.123Z\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2000-01-02T20:34:56.123Z\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputRestXmlSerializer()], + ); + }); } class FractionalSecondsOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputRestXmlSerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart index 13c99e0d72..be2f6a53f9 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,142 +15,120 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'GreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'GreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how to deserialize the successful response', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Greeting': 'Hello'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GreetingWithErrorsOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'ComplexError (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'ComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Sender\n ComplexError\n Hi\n Top level\n \n bar\n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: { - 'Header': 'Header', - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Header': 'Header', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorRestXmlSerializer(), - ComplexNestedErrorDataRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InvalidGreetingError', - documentation: 'Parses simple XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Sender\n InvalidGreeting\n Hi\n setting\n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingRestXmlSerializer()], - ); - }, - ); + _i1.test('GreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'GreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how to deserialize the successful response', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Greeting': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputRestXmlSerializer()], + ); + }); + _i1.test('ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'ComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Sender\n ComplexError\n Hi\n Top level\n \n bar\n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: { + 'Header': 'Header', + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Header': 'Header'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorRestXmlSerializer(), + ComplexNestedErrorDataRestXmlSerializer(), + ], + ); + }); + _i1.test('InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InvalidGreetingError', + documentation: 'Parses simple XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Sender\n InvalidGreeting\n Hi\n setting\n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingRestXmlSerializer()], + ); + }); } class GreetingWithErrorsOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputRestXmlSerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -169,10 +147,12 @@ class GreetingWithErrorsOutputRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -198,11 +178,8 @@ class ComplexErrorRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexError deserialize( @@ -221,20 +198,27 @@ class ComplexErrorRestXmlSerializer } switch (key) { case 'Header': - result.header = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.header = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -254,18 +238,15 @@ class ComplexErrorRestXmlSerializer class ComplexNestedErrorDataRestXmlSerializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataRestXmlSerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexNestedErrorData deserialize( @@ -284,10 +265,12 @@ class ComplexNestedErrorDataRestXmlSerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -313,11 +296,8 @@ class InvalidGreetingRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InvalidGreeting deserialize( @@ -336,10 +316,12 @@ class InvalidGreetingRestXmlSerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart index e3ac4fa1cd..3295bd665e 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_payload_traits_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,177 +14,140 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadTraitsWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithNoBlobBody (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithNoBlobBody (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpPayloadTraitsWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPayloadTraitsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPayloadTraitsWithNoBlobBody (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPayloadTraitsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPayloadTraitsWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadTraitsWithNoBlobBody (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestXmlSerializer(), + ], + ); + }); } class HttpPayloadTraitsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpPayloadTraitsInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [HttpPayloadTraitsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadTraitsInputOutput deserialize( @@ -203,15 +166,19 @@ class HttpPayloadTraitsInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart index 8fb3924997..52103c600e 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_payload_traits_with_media_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,111 +14,87 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadTraitsWithMediaTypeWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraitsWithMediaType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithMediaTypeWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpPayloadTraitsWithMediaTypeWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraitsWithMediaType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadTraitsWithMediaTypeWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer< + HttpPayloadTraitsWithMediaTypeInputOutput + > { const HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [HttpPayloadTraitsWithMediaTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadTraitsWithMediaTypeInputOutput deserialize( @@ -137,15 +113,19 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart index 9589f48eca..ef358b4b94 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_payload_with_member_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,105 +13,93 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithMemberXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithMemberXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithMemberXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on member xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithMemberXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithMemberXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithMemberXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithMemberXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on member xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithMemberXmlName (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithMemberXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithMemberXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on member xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithMemberXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithMemberXmlName (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithMemberXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithMemberXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on member xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer< + HttpPayloadWithMemberXmlNameInputOutput + > { const HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithMemberXmlNameInputOutput'); + : super('HttpPayloadWithMemberXmlNameInputOutput'); @override Iterable get types => const [HttpPayloadWithMemberXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithMemberXmlNameInputOutput deserialize( @@ -130,10 +118,13 @@ class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -159,11 +150,8 @@ class PayloadWithXmlNameRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -182,10 +170,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart index b2e77e2e0e..8a3f3e97c7 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_payload_with_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,111 +13,91 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithStructure (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hello\n Phreddy\n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithStructure', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithStructureInputOutputRestXmlSerializer(), - NestedPayloadRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithStructure (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hello\n Phreddy\n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithStructureInputOutputRestXmlSerializer(), - NestedPayloadRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithStructure (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hello\n Phreddy\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithStructure', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithStructureInputOutputRestXmlSerializer(), + NestedPayloadRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithStructure (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hello\n Phreddy\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithStructureInputOutputRestXmlSerializer(), + NestedPayloadRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadWithStructureInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithStructureInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const HttpPayloadWithStructureInputOutputRestXmlSerializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [HttpPayloadWithStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithStructureInputOutput deserialize( @@ -136,10 +116,13 @@ class HttpPayloadWithStructureInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedPayload), - ) as NestedPayload)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedPayload), + ) + as NestedPayload), + ); } } @@ -165,11 +148,8 @@ class NestedPayloadRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedPayload deserialize( @@ -188,15 +168,19 @@ class NestedPayloadRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart index 9bac0ca035..8f4f93f489 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_payload_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,105 +13,90 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); } class HttpPayloadWithXmlNameInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpPayloadWithXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNameInputOutput'); + : super('HttpPayloadWithXmlNameInputOutput'); @override Iterable get types => const [HttpPayloadWithXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithXmlNameInputOutput deserialize( @@ -130,10 +115,13 @@ class HttpPayloadWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -159,11 +147,8 @@ class PayloadWithXmlNameRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -182,10 +167,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart index 4de38af5b0..3355b66eae 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_payload_with_xml_namespace_and_prefix_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,109 +13,97 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithXmlNamespaceAndPrefix (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithXmlNamespaceAndPrefix', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithXmlNamespaceAndPrefix', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithXmlNamespaceAndPrefix (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithXmlNamespaceAndPrefix', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithXmlNamespaceAndPrefix (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithXmlNamespaceAndPrefix', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithXmlNamespaceAndPrefix', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithXmlNamespaceAndPrefix (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithXmlNamespaceAndPrefix', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), + ], + ); + }); } class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer - extends _i3.StructuredSmithySerializer< - HttpPayloadWithXmlNamespaceAndPrefixInputOutput> { + extends + _i3.StructuredSmithySerializer< + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > { const HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); + : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); @override - Iterable get types => - const [HttpPayloadWithXmlNamespaceAndPrefixInputOutput]; + Iterable get types => const [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithXmlNamespaceAndPrefixInputOutput deserialize( @@ -134,10 +122,15 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlNamespaceAndPrefix), - ) as PayloadWithXmlNamespaceAndPrefix)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + PayloadWithXmlNamespaceAndPrefix, + ), + ) + as PayloadWithXmlNamespaceAndPrefix), + ); } } @@ -157,18 +150,15 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer extends _i3.StructuredSmithySerializer { const PayloadWithXmlNamespaceAndPrefixRestXmlSerializer() - : super('PayloadWithXmlNamespaceAndPrefix'); + : super('PayloadWithXmlNamespaceAndPrefix'); @override Iterable get types => const [PayloadWithXmlNamespaceAndPrefix]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespaceAndPrefix deserialize( @@ -187,10 +177,12 @@ class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart index 3c7d3096fe..ee48b34c42 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_payload_with_xml_namespace_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,107 +13,93 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithXmlNamespace (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithXmlNamespace', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithXmlNamespace', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithXmlNamespace (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithXmlNamespace', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithXmlNamespace (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithXmlNamespace', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithXmlNamespace', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithXmlNamespace (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithXmlNamespace', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceInputOutput'); + : super('HttpPayloadWithXmlNamespaceInputOutput'); @override Iterable get types => const [HttpPayloadWithXmlNamespaceInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithXmlNamespaceInputOutput deserialize( @@ -132,10 +118,13 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlNamespace), - ) as PayloadWithXmlNamespace)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlNamespace), + ) + as PayloadWithXmlNamespace), + ); } } @@ -155,18 +144,15 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i3 class PayloadWithXmlNamespaceRestXmlSerializer extends _i3.StructuredSmithySerializer { const PayloadWithXmlNamespaceRestXmlSerializer() - : super('PayloadWithXmlNamespace'); + : super('PayloadWithXmlNamespace'); @override Iterable get types => const [PayloadWithXmlNamespace]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespace deserialize( @@ -185,10 +171,12 @@ class PayloadWithXmlNamespaceRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart index 2bef41f971..7616373f94 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_prefix_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,199 +13,156 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPrefixHeadersArePresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPrefixHeadersAreNotPresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPrefixHeadersAreNotPresent', - documentation: - 'No prefix headers are serialized because the value is empty', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': {}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPrefixHeadersArePresent (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPrefixHeadersAreNotPresent (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPrefixHeadersAreNotPresent', - documentation: - 'No prefix headers are serialized because the value is empty', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': {}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpPrefixHeadersArePresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPrefixHeadersAreNotPresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPrefixHeadersAreNotPresent', + documentation: + 'No prefix headers are serialized because the value is empty', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo', 'fooMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPrefixHeadersArePresent (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPrefixHeadersInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPrefixHeadersAreNotPresent (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPrefixHeadersAreNotPresent', + documentation: + 'No prefix headers are serialized because the value is empty', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo', 'fooMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPrefixHeadersInputOutputRestXmlSerializer(), + ], + ); + }); } class HttpPrefixHeadersInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInputOutputRestXmlSerializer() - : super('HttpPrefixHeadersInputOutput'); + : super('HttpPrefixHeadersInputOutput'); @override Iterable get types => const [HttpPrefixHeadersInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPrefixHeadersInputOutput deserialize( @@ -224,21 +181,23 @@ class HttpPrefixHeadersInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fooMap': - result.fooMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.fooMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart index 2b418b2ca8..ccb476867e 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_request_with_float_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,152 +12,122 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlSupportsNaNFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatLabels', - documentation: 'Supports handling NaN float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'NaN', - 'double': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/NaN/NaN', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatLabels', - documentation: 'Supports handling Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'Infinity', - 'double': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/Infinity/Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNegativeInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNegativeInfinityFloatLabels', - documentation: 'Supports handling -Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': '-Infinity', - 'double': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/-Infinity/-Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('RestXmlSupportsNaNFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatLabels', + documentation: 'Supports handling NaN float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'NaN', 'double': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/NaN/NaN', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatLabels', + documentation: 'Supports handling Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'Infinity', 'double': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/Infinity/Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNegativeInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNegativeInfinityFloatLabels', + documentation: 'Supports handling -Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': '-Infinity', 'double': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/-Infinity/-Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestXmlSerializer(), + ], + ); + }); } class HttpRequestWithFloatLabelsInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestXmlSerializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [HttpRequestWithFloatLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithFloatLabelsInput deserialize( @@ -176,15 +146,19 @@ class HttpRequestWithFloatLabelsInputRestXmlSerializer } switch (key) { case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart index bc9a30e1b4..5f7be6fac0 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_request_with_greedy_label_in_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpRequestWithGreedyLabelInPath (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithGreedyLabelInPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpRequestWithGreedyLabelInPath', - documentation: 'Serializes greedy labels and normal labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'hello', - 'baz': 'there/guy', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/HttpRequestWithGreedyLabelInPath/foo/hello/baz/there/guy', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithGreedyLabelInPathInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpRequestWithGreedyLabelInPath (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithGreedyLabelInPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpRequestWithGreedyLabelInPath', + documentation: 'Serializes greedy labels and normal labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'hello', 'baz': 'there/guy'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/HttpRequestWithGreedyLabelInPath/foo/hello/baz/there/guy', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithGreedyLabelInPathInputRestXmlSerializer(), + ], + ); + }); } -class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const HttpRequestWithGreedyLabelInPathInputRestXmlSerializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [HttpRequestWithGreedyLabelInPathInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithGreedyLabelInPathInput deserialize( @@ -90,15 +79,19 @@ class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart index 5d493b727f..cb79c4a223 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_request_with_labels_and_timestamp_format_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,73 +12,68 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpRequestWithLabelsAndTimestampFormat (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsAndTimestampFormatOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpRequestWithLabelsAndTimestampFormat', - documentation: 'Serializes different timestamp formats in URI labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpRequestWithLabelsAndTimestampFormat (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsAndTimestampFormatOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpRequestWithLabelsAndTimestampFormat', + documentation: 'Serializes different timestamp formats in URI labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer(), + ], + ); + }); } -class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInput + > { const HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override - Iterable get types => - const [HttpRequestWithLabelsAndTimestampFormatInput]; + Iterable get types => const [ + HttpRequestWithLabelsAndTimestampFormatInput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInput deserialize( @@ -97,47 +92,26 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer extends _i3 } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart index a4b9346f33..34e43cde18 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_request_with_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,119 +13,104 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'InputWithHeadersAndAllParams (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputWithHeadersAndAllParams', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': 'string', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'HttpRequestLabelEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpRequestLabelEscaping', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': ' %:/?#[]@!\$&\'()*+,;=😹', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], - ); - }, - ); + _i1.test('InputWithHeadersAndAllParams (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputWithHeadersAndAllParams', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': 'string', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], + ); + }); + _i1.test('HttpRequestLabelEscaping (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpRequestLabelEscaping', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': ' %:/?#[]@!\$&\'()*+,;=😹', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], + ); + }); } class HttpRequestWithLabelsInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestXmlSerializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [HttpRequestWithLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsInput deserialize( @@ -144,40 +129,54 @@ class HttpRequestWithLabelsInputRestXmlSerializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'timestamp': result.timestamp = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart index 0ef9ec40ff..161901f532 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.http_response_code_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,55 +12,46 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlHttpResponseCode (response)', - () async { - await _i2.httpResponseTest( - operation: HttpResponseCodeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlHttpResponseCode', - documentation: 'Binds the http response code to an output structure.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/xml', - params: {'Status': 201}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 201, - ), - outputSerializers: const [HttpResponseCodeOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlHttpResponseCode (response)', () async { + await _i2.httpResponseTest( + operation: HttpResponseCodeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlHttpResponseCode', + documentation: 'Binds the http response code to an output structure.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: 'application/xml', + params: {'Status': 201}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 201, + ), + outputSerializers: const [HttpResponseCodeOutputRestXmlSerializer()], + ); + }); } class HttpResponseCodeOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpResponseCodeOutputRestXmlSerializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [HttpResponseCodeOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpResponseCodeOutput deserialize( @@ -79,10 +70,12 @@ class HttpResponseCodeOutputRestXmlSerializer } switch (key) { case 'Status': - result.status = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.status = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart index 521648a09b..75cab15c50 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.ignore_query_params_in_response_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,59 +12,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'IgnoreQueryParamsInResponse (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoreQueryParamsInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'IgnoreQueryParamsInResponse', - documentation: - 'Query parameters must be ignored when serializing the output of an operation', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - 'bam', - bodyMediaType: 'application/xml', - params: {'baz': 'bam'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoreQueryParamsInResponseOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('IgnoreQueryParamsInResponse (response)', () async { + await _i2.httpResponseTest( + operation: IgnoreQueryParamsInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'IgnoreQueryParamsInResponse', + documentation: + 'Query parameters must be ignored when serializing the output of an operation', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + 'bam', + bodyMediaType: 'application/xml', + params: {'baz': 'bam'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoreQueryParamsInResponseOutputRestXmlSerializer(), + ], + ); + }); } class IgnoreQueryParamsInResponseOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestXmlSerializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [IgnoreQueryParamsInResponseOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -83,10 +74,12 @@ class IgnoreQueryParamsInResponseOutputRestXmlSerializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart index 20e9107dc7..bdbc1d8361 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.input_and_output_with_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,364 +15,270 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'InputAndOutputWithStringHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithStringHeaders', - documentation: 'Tests requests with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithNumericHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithNumericHeaders', - documentation: 'Tests requests with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithBooleanHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithBooleanHeaders', - documentation: 'Tests requests with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithTimestampHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithTimestampHeaders', - documentation: 'Tests requests with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithEnumHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithEnumHeaders', - documentation: 'Tests requests with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatHeaderInputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatHeaderInputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); + _i1.test('InputAndOutputWithStringHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithStringHeaders', + documentation: 'Tests requests with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithNumericHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithNumericHeaders', + documentation: 'Tests requests with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithBooleanHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithBooleanHeaders', + documentation: 'Tests requests with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithTimestampHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithTimestampHeaders', + documentation: 'Tests requests with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithEnumHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithEnumHeaders', + documentation: 'Tests requests with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsNaNFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatHeaderInputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatHeaderInputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); _i1.test( 'RestXmlSupportsNegativeInfinityFloatHeaderInputs (request)', () async { @@ -384,23 +290,14 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestXmlSupportsNegativeInfinityFloatHeaderInputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -414,327 +311,233 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithStringHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithStringHeaders', - documentation: 'Tests responses with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithNumericHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithNumericHeaders', - documentation: 'Tests responses with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithBooleanHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithBooleanHeaders', - documentation: 'Tests responses with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithTimestampHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithTimestampHeaders', - documentation: 'Tests responses with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithEnumHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithEnumHeaders', - documentation: 'Tests responses with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsNaNFloatHeaderOutputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsInfinityFloatHeaderOutputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() + InputAndOutputWithHeadersIoRestXmlSerializer(), ], ); }, ); + _i1.test('InputAndOutputWithStringHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithStringHeaders', + documentation: 'Tests responses with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithNumericHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithNumericHeaders', + documentation: 'Tests responses with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithBooleanHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithBooleanHeaders', + documentation: 'Tests responses with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithTimestampHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithTimestampHeaders', + documentation: 'Tests responses with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithEnumHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithEnumHeaders', + documentation: 'Tests responses with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsNaNFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsNaNFloatHeaderOutputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsInfinityFloatHeaderOutputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); _i1.test( 'RestXmlSupportsNegativeInfinityFloatHeaderOutputs (response)', () async { @@ -746,23 +549,14 @@ void main() { testCase: const _i2.HttpResponseTestCase( id: 'RestXmlSupportsNegativeInfinityFloatHeaderOutputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -770,7 +564,7 @@ void main() { code: 200, ), outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() + InputAndOutputWithHeadersIoRestXmlSerializer(), ], ); }, @@ -780,18 +574,15 @@ void main() { class InputAndOutputWithHeadersIoRestXmlSerializer extends _i3.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestXmlSerializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [InputAndOutputWithHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InputAndOutputWithHeadersIo deserialize( @@ -810,103 +601,133 @@ class InputAndOutputWithHeadersIoRestXmlSerializer } switch (key) { case 'headerString': - result.headerString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.headerString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'headerByte': - result.headerByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerShort': - result.headerShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerInteger': - result.headerInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerLong': - result.headerLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.headerLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'headerFloat': - result.headerFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerDouble': - result.headerDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerTrueBool': - result.headerTrueBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerTrueBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerFalseBool': - result.headerFalseBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerFalseBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerStringList': - result.headerStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.headerStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'headerStringSet': - result.headerStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], - ), - ) as _i5.BuiltSet)); + result.headerStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(String), + ]), + ) + as _i5.BuiltSet), + ); case 'headerIntegerList': - result.headerIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(int)], - ), - ) as _i5.BuiltList)); + result.headerIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [FullType(int)]), + ) + as _i5.BuiltList), + ); case 'headerBooleanList': - result.headerBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(bool)], - ), - ) as _i5.BuiltList)); + result.headerBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(bool), + ]), + ) + as _i5.BuiltList), + ); case 'headerTimestampList': - result.headerTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(DateTime)], - ), - ) as _i5.BuiltList)); + result.headerTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltList), + ); case 'headerEnum': - result.headerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.headerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'headerEnumList': - result.headerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(FooEnum)], - ), - ) as _i5.BuiltList)); + result.headerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart index f2102c281d..dea22f1ab6 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.nested_xml_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,185 +14,158 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NestedXmlMapRequest (request)', - () async { - await _i2.httpRequestTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NestedXmlMapRequest', - documentation: 'Tests requests with nested maps.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'nestedMap': { - 'foo': {'bar': 'Bar'} - } + _i1.test('NestedXmlMapRequest (request)', () async { + await _i2.httpRequestTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NestedXmlMapRequest', + documentation: 'Tests requests with nested maps.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'nestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NestedXmlMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'FlatNestedXmlMapRequest (request)', - () async { - await _i2.httpRequestTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'FlatNestedXmlMapRequest', - documentation: - 'Tests requests with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n \n \n bar\n Bar\n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'flatNestedMap': { - 'foo': {'bar': 'Bar'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NestedXmlMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('FlatNestedXmlMapRequest (request)', () async { + await _i2.httpRequestTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlatNestedXmlMapRequest', + documentation: + 'Tests requests with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n \n \n bar\n Bar\n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'flatNestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NestedXmlMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'NestedXmlMapResponse (response)', - () async { - await _i2.httpResponseTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'NestedXmlMapResponse', - documentation: 'Tests responses with nested maps.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'nestedMap': { - 'foo': {'bar': 'Bar'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NestedXmlMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('NestedXmlMapResponse (response)', () async { + await _i2.httpResponseTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'NestedXmlMapResponse', + documentation: 'Tests responses with nested maps.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'nestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'FlatNestedXmlMapResponse (response)', - () async { - await _i2.httpResponseTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'FlatNestedXmlMapResponse', - documentation: - 'Tests responses with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n \n \n bar\n Bar\n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'flatNestedMap': { - 'foo': {'bar': 'Bar'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('FlatNestedXmlMapResponse (response)', () async { + await _i2.httpResponseTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'FlatNestedXmlMapResponse', + documentation: + 'Tests responses with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n \n \n bar\n Bar\n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'flatNestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); } class NestedXmlMapsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const NestedXmlMapsInputOutputRestXmlSerializer() - : super('NestedXmlMapsInputOutput'); + : super('NestedXmlMapsInputOutput'); @override Iterable get types => const [NestedXmlMapsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedXmlMapsInputOutput deserialize( @@ -211,39 +184,33 @@ class NestedXmlMapsInputOutputRestXmlSerializer } switch (key) { case 'nestedMap': - result.nestedMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType( - _i4.BuiltMap, - [ + result.nestedMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ FullType(String), - FullType(FooEnum), - ], - ), - ], - ), - ) as _i4.BuiltMap>)); + FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ]), + ) + as _i4.BuiltMap>), + ); case 'flatNestedMap': - result.flatNestedMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType( - _i4.BuiltMap, - [ + result.flatNestedMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ FullType(String), - FullType(FooEnum), - ], - ), - ], - ), - ) as _i4.BuiltMap>)); + FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ]), + ) + as _i4.BuiltMap>), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart index 8ac7112e93..084ae08061 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,74 +10,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NoInputAndNoOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NoInputAndNoOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndNoOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'NoInputAndNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'NoInputAndNoOutput', - documentation: 'No output serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('NoInputAndNoOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NoInputAndNoOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndNoOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('NoInputAndNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'NoInputAndNoOutput', + documentation: 'No output serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart index a4339e33bd..b3b2511430 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,93 +12,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NoInputAndOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndOutputOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'NoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'NoInputAndOutput', - documentation: 'Empty output serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('NoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NoInputAndOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndOutputOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('NoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'NoInputAndOutput', + documentation: 'Empty output serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputRestXmlSerializer()], + ); + }); } class NoInputAndOutputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputRestXmlSerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart index 4b600e42c1..7a9370a127 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.null_and_empty_headers_client_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,70 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NullAndEmptyHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: NullAndEmptyHeadersClientOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NullAndEmptyHeaders', - documentation: - 'Do not send null values, empty strings, or empty lists over the wire in headers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'a': null, - 'b': '', - 'c': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [ - 'X-A', - 'X-B', - 'X-C', - ], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/NullAndEmptyHeadersClient', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NullAndEmptyHeadersIoRestXmlSerializer()], - ); - }, - ); + _i1.test('NullAndEmptyHeaders (request)', () async { + await _i2.httpRequestTest( + operation: NullAndEmptyHeadersClientOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NullAndEmptyHeaders', + documentation: + 'Do not send null values, empty strings, or empty lists over the wire in headers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'a': null, 'b': '', 'c': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: ['X-A', 'X-B', 'X-C'], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/NullAndEmptyHeadersClient', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullAndEmptyHeadersIoRestXmlSerializer()], + ); + }); } class NullAndEmptyHeadersIoRestXmlSerializer extends _i3.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestXmlSerializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [NullAndEmptyHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NullAndEmptyHeadersIo deserialize( @@ -95,23 +78,29 @@ class NullAndEmptyHeadersIoRestXmlSerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'c': - result.c.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.c.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart index 7290894b7f..45a2fd7446 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.omits_null_serializes_empty_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,103 +12,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlOmitsNullQuery (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlOmitsNullQuery', - documentation: 'Omits null query values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'nullValue': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSerializesEmptyString (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSerializesEmptyString', - documentation: 'Serializes empty query strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: ['Empty='], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('RestXmlOmitsNullQuery (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlOmitsNullQuery', + documentation: 'Omits null query values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'nullValue': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSerializesEmptyString (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSerializesEmptyString', + documentation: 'Serializes empty query strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: ['Empty='], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestXmlSerializer(), + ], + ); + }); } -class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const OmitsNullSerializesEmptyStringInputRestXmlSerializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [OmitsNullSerializesEmptyStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OmitsNullSerializesEmptyStringInput deserialize( @@ -127,15 +113,19 @@ class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i3 } switch (key) { case 'nullValue': - result.nullValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart index 6dbd41284e..e3ee2f7be3 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,102 +12,105 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_restXml (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_restXml', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', + _i1.test( + 'SDKAppliedContentEncoding_restXml (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputRestXmlSerializer()], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendedGzipAfterProvidedEncoding_restXml (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendedGzipAfterProvidedEncoding_restXml', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_restXml', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'custom, gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputRestXmlSerializer()], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputRestXmlSerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendedGzipAfterProvidedEncoding_restXml (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendedGzipAfterProvidedEncoding_restXml', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'custom, gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputRestXmlSerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputRestXmlSerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PutWithContentEncodingInput deserialize( @@ -126,15 +129,19 @@ class PutWithContentEncodingInputRestXmlSerializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart index 27039e31cc..7a4ec6d1c3 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,8 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('QueryIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/QueryIdempotencyTokenAutoFill', - host: null, - resolvedHost: null, - queryParams: ['token=00000000-0000-4000-8000-000000000000'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestXmlSerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); _i1.test( - 'QueryIdempotencyTokenAutoFillIsSet (request)', + 'QueryIdempotencyTokenAutoFill (request)', () async { await _i2.httpRequestTest( operation: QueryIdempotencyTokenAutoFillOperation( @@ -58,16 +21,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'QueryIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + id: 'QueryIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: {'token': '00000000-0000-4000-8000-000000000000'}, + params: {}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -84,28 +44,60 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestXmlSerializer() + QueryIdempotencyTokenAutoFillInputRestXmlSerializer(), ], ); }, + skip: 'bool.fromEnvironment is not working in tests for some reason', ); + _i1.test('QueryIdempotencyTokenAutoFillIsSet (request)', () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'token': '00000000-0000-4000-8000-000000000000'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/QueryIdempotencyTokenAutoFill', + host: null, + resolvedHost: null, + queryParams: ['token=00000000-0000-4000-8000-000000000000'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputRestXmlSerializer(), + ], + ); + }); } class QueryIdempotencyTokenAutoFillInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputRestXmlSerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -124,10 +116,12 @@ class QueryIdempotencyTokenAutoFillInputRestXmlSerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart index 4e50f2f3fc..0a6016005c 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.query_params_as_string_list_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,75 +13,59 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlQueryParamsStringListMap (request)', - () async { - await _i2.httpRequestTest( - operation: QueryParamsAsStringListMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryParamsStringListMap', - documentation: 'Serialize query params from map of list strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'qux': 'named', - 'foo': { - 'baz': [ - 'bar', - 'qux', - ] - }, + _i1.test('RestXmlQueryParamsStringListMap (request)', () async { + await _i2.httpRequestTest( + operation: QueryParamsAsStringListMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryParamsStringListMap', + documentation: 'Serialize query params from map of list strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'qux': 'named', + 'foo': { + 'baz': ['bar', 'qux'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/StringListMap', - host: null, - resolvedHost: null, - queryParams: [ - 'corge=named', - 'baz=bar', - 'baz=qux', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryParamsAsStringListMapInputRestXmlSerializer() - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/StringListMap', + host: null, + resolvedHost: null, + queryParams: ['corge=named', 'baz=bar', 'baz=qux'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryParamsAsStringListMapInputRestXmlSerializer(), + ], + ); + }); } class QueryParamsAsStringListMapInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestXmlSerializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [QueryParamsAsStringListMapInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryParamsAsStringListMapInput deserialize( @@ -100,21 +84,23 @@ class QueryParamsAsStringListMapInputRestXmlSerializer } switch (key) { case 'qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'foo': - result.foo.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.foo.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart index 76ba3e72b7..9503a2c56d 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.query_precedence_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,53 +13,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlQueryPrecedence (request)', - () async { - await _i2.httpRequestTest( - operation: QueryPrecedenceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryPrecedence', - documentation: 'Prefer named query parameters when serializing', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'named', - 'baz': { - 'bar': 'fromMap', - 'qux': 'alsoFromMap', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/Precedence', - host: null, - resolvedHost: null, - queryParams: [ - 'bar=named', - 'qux=alsoFromMap', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryPrecedenceInputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlQueryPrecedence (request)', () async { + await _i2.httpRequestTest( + operation: QueryPrecedenceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryPrecedence', + documentation: 'Prefer named query parameters when serializing', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'named', + 'baz': {'bar': 'fromMap', 'qux': 'alsoFromMap'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/Precedence', + host: null, + resolvedHost: null, + queryParams: ['bar=named', 'qux=alsoFromMap'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryPrecedenceInputRestXmlSerializer()], + ); + }); } class QueryPrecedenceInputRestXmlSerializer @@ -71,11 +59,8 @@ class QueryPrecedenceInputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryPrecedenceInput deserialize( @@ -94,21 +79,23 @@ class QueryPrecedenceInputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.baz.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart index 7822c7be26..438d412c33 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.recursive_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,125 +14,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RecursiveShapes (request)', - () async { - await _i2.httpRequestTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { + _i1.test('RecursiveShapes (request)', () async { + await _i2.httpRequestTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/RecursiveShapes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - RecursiveShapesInputOutputRestXmlSerializer(), - RecursiveShapesInputOutputNested1RestXmlSerializer(), - RecursiveShapesInputOutputNested2RestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'RecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/RecursiveShapes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + RecursiveShapesInputOutputRestXmlSerializer(), + RecursiveShapesInputOutputNested1RestXmlSerializer(), + RecursiveShapesInputOutputNested2RestXmlSerializer(), + ], + ); + }); + _i1.test('RecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveShapesInputOutputRestXmlSerializer(), - RecursiveShapesInputOutputNested1RestXmlSerializer(), - RecursiveShapesInputOutputNested2RestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveShapesInputOutputRestXmlSerializer(), + RecursiveShapesInputOutputNested1RestXmlSerializer(), + RecursiveShapesInputOutputNested2RestXmlSerializer(), + ], + ); + }); } class RecursiveShapesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputRestXmlSerializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [RecursiveShapesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -151,10 +136,15 @@ class RecursiveShapesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -174,18 +164,15 @@ class RecursiveShapesInputOutputRestXmlSerializer class RecursiveShapesInputOutputNested1RestXmlSerializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestXmlSerializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [RecursiveShapesInputOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -204,15 +191,22 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -232,18 +226,15 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer class RecursiveShapesInputOutputNested2RestXmlSerializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestXmlSerializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [RecursiveShapesInputOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -262,15 +253,22 @@ class RecursiveShapesInputOutputNested2RestXmlSerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart index 0f238ad739..1a7e7f2325 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,721 +13,550 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'SimpleScalarProperties (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithEscapedCharacter (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarPropertiesWithEscapedCharacter', - documentation: 'Serializes string with escaping', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n <string>\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': '', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithWhiteSpace (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarPropertiesWithWhiteSpace', - documentation: 'Serializes string containing white space', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string with white space \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' string with white space ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesPureWhiteSpace (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarPropertiesPureWhiteSpace', - documentation: 'Serializes string containing exclusively whitespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n NaN\n NaN\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Infinity\n Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n -Infinity\n -Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesComplexEscapes (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesComplexEscapes', - documentation: - 'Serializes string with escaping.\n\nThis validates the three escape types: literal, decimal and hexadecimal. It also validates that unescaping properly\nhandles the case where unescaping an & produces a newly formed escape sequence (this should not be re-unescaped).\n\nServers may produce different output, this test is designed different unescapes clients must handle\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n escaped data: &lt; \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'escaped data: <\r\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithEscapedCharacter (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesWithEscapedCharacter', - documentation: 'Serializes string with escaping', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n <string>\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': '', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithXMLPreamble (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesWithXMLPreamble', - documentation: - 'Serializes simple scalar properties with xml preamble, comments and CDATA', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n\n \n string\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithWhiteSpace (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesWithWhiteSpace', - documentation: 'Serializes string containing white space', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n\n string with white space \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' string with white space ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesPureWhiteSpace (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesPureWhiteSpace', - documentation: 'Serializes string containing white space', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsNaNFloatOutputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n NaN\n NaN\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsInfinityFloatOutputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Infinity\n Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNegativeInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsNegativeInfinityFloatOutputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n -Infinity\n -Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('SimpleScalarProperties (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithEscapedCharacter (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarPropertiesWithEscapedCharacter', + documentation: 'Serializes string with escaping', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n <string>\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithWhiteSpace (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarPropertiesWithWhiteSpace', + documentation: 'Serializes string containing white space', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string with white space \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' string with white space '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesPureWhiteSpace (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarPropertiesPureWhiteSpace', + documentation: 'Serializes string containing exclusively whitespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n NaN\n NaN\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Infinity\n Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n -Infinity\n -Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesComplexEscapes (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesComplexEscapes', + documentation: + 'Serializes string with escaping.\n\nThis validates the three escape types: literal, decimal and hexadecimal. It also validates that unescaping properly\nhandles the case where unescaping an & produces a newly formed escape sequence (this should not be re-unescaped).\n\nServers may produce different output, this test is designed different unescapes clients must handle\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n escaped data: &lt; \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': 'escaped data: <\r\n'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithEscapedCharacter (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesWithEscapedCharacter', + documentation: 'Serializes string with escaping', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n <string>\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithXMLPreamble (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesWithXMLPreamble', + documentation: + 'Serializes simple scalar properties with xml preamble, comments and CDATA', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n\n \n string\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': 'string'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithWhiteSpace (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesWithWhiteSpace', + documentation: 'Serializes string containing white space', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n\n string with white space \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' string with white space '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesPureWhiteSpace (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesPureWhiteSpace', + documentation: 'Serializes string containing white space', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNaNFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsNaNFloatOutputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n NaN\n NaN\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsInfinityFloatOutputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Infinity\n Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNegativeInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsNegativeInfinityFloatOutputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n -Infinity\n -Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -746,55 +575,75 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart index bb3897a565..6073e6508c 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.timestamp_format_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,125 +12,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'TimestampFormatHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'TimestampFormatHeaders', - documentation: 'Tests how timestamp request headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/TimestampFormatHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'TimestampFormatHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'TimestampFormatHeaders', - documentation: 'Tests how timestamp response headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], - ); - }, - ); + _i1.test('TimestampFormatHeaders (request)', () async { + await _i2.httpRequestTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'TimestampFormatHeaders', + documentation: 'Tests how timestamp request headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/TimestampFormatHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('TimestampFormatHeaders (response)', () async { + await _i2.httpResponseTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'TimestampFormatHeaders', + documentation: 'Tests how timestamp response headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], + ); + }); } class TimestampFormatHeadersIoRestXmlSerializer extends _i3.StructuredSmithySerializer { const TimestampFormatHeadersIoRestXmlSerializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [TimestampFormatHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override TimestampFormatHeadersIo deserialize( @@ -149,47 +134,26 @@ class TimestampFormatHeadersIoRestXmlSerializer } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart index 8e20f7ec33..1bac620445 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_attributes_on_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,112 +13,90 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlAttributesOnPayload (request)', - () async { - await _i2.httpRequestTest( - operation: XmlAttributesOnPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlAttributesOnPayload', - documentation: - 'Serializes XML attributes on the synthesized document', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'payload': { - 'foo': 'hi', - 'attr': 'test', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlAttributesOnPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlAttributesOnPayloadInputOutputRestXmlSerializer(), - XmlAttributesInputOutputRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlAttributesOnPayload (response)', - () async { - await _i2.httpResponseTest( - operation: XmlAttributesOnPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlAttributesOnPayload', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'payload': { - 'foo': 'hi', - 'attr': 'test', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlAttributesOnPayloadInputOutputRestXmlSerializer(), - XmlAttributesInputOutputRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlAttributesOnPayload (request)', () async { + await _i2.httpRequestTest( + operation: XmlAttributesOnPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlAttributesOnPayload', + documentation: 'Serializes XML attributes on the synthesized document', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: { + 'payload': {'foo': 'hi', 'attr': 'test'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlAttributesOnPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlAttributesOnPayloadInputOutputRestXmlSerializer(), + XmlAttributesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlAttributesOnPayload (response)', () async { + await _i2.httpResponseTest( + operation: XmlAttributesOnPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlAttributesOnPayload', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: { + 'payload': {'foo': 'hi', 'attr': 'test'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlAttributesOnPayloadInputOutputRestXmlSerializer(), + XmlAttributesInputOutputRestXmlSerializer(), + ], + ); + }); } class XmlAttributesOnPayloadInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlAttributesOnPayloadInputOutputRestXmlSerializer() - : super('XmlAttributesOnPayloadInputOutput'); + : super('XmlAttributesOnPayloadInputOutput'); @override Iterable get types => const [XmlAttributesOnPayloadInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesOnPayloadInputOutput deserialize( @@ -137,10 +115,13 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer } switch (key) { case 'payload': - result.payload.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlAttributesInputOutput), - ) as XmlAttributesInputOutput)); + result.payload.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlAttributesInputOutput), + ) + as XmlAttributesInputOutput), + ); } } @@ -160,18 +141,15 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer class XmlAttributesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlAttributesInputOutputRestXmlSerializer() - : super('XmlAttributesInputOutput'); + : super('XmlAttributesInputOutput'); @override Iterable get types => const [XmlAttributesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -190,15 +168,19 @@ class XmlAttributesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'attr': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart index 678cf21a9f..7fdff5c702 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_attributes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,145 +12,114 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlAttributes (request)', - () async { - await _i2.httpRequestTest( - operation: XmlAttributesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlAttributes', - documentation: - 'Serializes XML attributes on the synthesized document', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'hi', - 'attr': 'test', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlAttributes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlAttributesWithEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: XmlAttributesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlAttributesWithEscaping', - documentation: - 'Serializes XML attributes with escaped characters on the synthesized document', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'hi', - 'attr': '', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlAttributes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlAttributes (response)', - () async { - await _i2.httpResponseTest( - operation: XmlAttributesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlAttributes', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'hi', - 'attr': 'test', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlAttributes (request)', () async { + await _i2.httpRequestTest( + operation: XmlAttributesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlAttributes', + documentation: 'Serializes XML attributes on the synthesized document', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'hi', 'attr': 'test'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlAttributes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlAttributesWithEscaping (request)', () async { + await _i2.httpRequestTest( + operation: XmlAttributesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlAttributesWithEscaping', + documentation: + 'Serializes XML attributes with escaped characters on the synthesized document', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'hi', 'attr': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlAttributes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlAttributes (response)', () async { + await _i2.httpResponseTest( + operation: XmlAttributesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlAttributes', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'hi', 'attr': 'test'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], + ); + }); } class XmlAttributesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlAttributesInputOutputRestXmlSerializer() - : super('XmlAttributesInputOutput'); + : super('XmlAttributesInputOutput'); @override Iterable get types => const [XmlAttributesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -169,15 +138,19 @@ class XmlAttributesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'attr': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart index f474349391..9e63af40e3 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,78 +14,66 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlBlobs (request)', - () async { - await _i2.httpRequestTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n dmFsdWU=\n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlBlobs', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n dmFsdWU=\n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlBlobs (request)', () async { + await _i2.httpRequestTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n dmFsdWU=\n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlBlobs', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n dmFsdWU=\n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); } class XmlBlobsInputOutputRestXmlSerializer @@ -97,11 +85,8 @@ class XmlBlobsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlBlobsInputOutput deserialize( @@ -120,10 +105,12 @@ class XmlBlobsInputOutputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart index a4a3420db4..49b3b018fc 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_empty_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,72 +14,60 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyBlobs', - documentation: 'Empty blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlEmptySelfClosedBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptySelfClosedBlobs', - documentation: - 'Empty self closed blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '\n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlEmptyBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyBlobs', + documentation: 'Empty blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEmptySelfClosedBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptySelfClosedBlobs', + documentation: + 'Empty self closed blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '\n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); } class XmlBlobsInputOutputRestXmlSerializer @@ -91,11 +79,8 @@ class XmlBlobsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlBlobsInputOutput deserialize( @@ -114,10 +99,12 @@ class XmlBlobsInputOutputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart index 678d359017..9066bbf51a 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,90 +15,72 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyLists (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEmptyLists', - documentation: 'Serializes Empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'PUT', - uri: '/XmlEmptyLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlEmptyLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyLists', - documentation: 'Deserializes Empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlEmptyLists (request)', () async { + await _i2.httpRequestTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEmptyLists', + documentation: 'Serializes Empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'PUT', + uri: '/XmlEmptyLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlEmptyLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyLists', + documentation: 'Deserializes Empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); } class XmlListsInputOutputRestXmlSerializer @@ -110,11 +92,8 @@ class XmlListsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlListsInputOutput deserialize( @@ -133,131 +112,151 @@ class XmlListsInputOutputRestXmlSerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedStructureList': - result.flattenedStructureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.flattenedStructureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -283,11 +282,8 @@ class StructureListMemberRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override StructureListMember deserialize( @@ -306,15 +302,19 @@ class StructureListMemberRestXmlSerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart index 6ad3c1463b..830c39d055 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_empty_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,119 +14,101 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyMaps (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEmptyMaps', - documentation: 'Serializes Empty XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/XmlEmptyMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlEmptyMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyMaps', - documentation: 'Deserializes Empty XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlEmptySelfClosedMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptySelfClosedMaps', - documentation: 'Deserializes Empty Self-closed XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '\n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlEmptyMaps (request)', () async { + await _i2.httpRequestTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEmptyMaps', + documentation: 'Serializes Empty XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/XmlEmptyMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlEmptyMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyMaps', + documentation: 'Deserializes Empty XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlEmptySelfClosedMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptySelfClosedMaps', + documentation: 'Deserializes Empty Self-closed XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '\n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); } class XmlMapsInputOutputRestXmlSerializer @@ -138,11 +120,8 @@ class XmlMapsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsInputOutput deserialize( @@ -161,16 +140,16 @@ class XmlMapsInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -196,11 +175,8 @@ class GreetingStructRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -219,10 +195,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart index 07437d6df1..6568aa6541 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_empty_strings_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,133 +12,108 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyStrings (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEmptyStringsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEmptyStrings', - documentation: 'Serializes xml empty strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'PUT', - uri: '/XmlEmptyStrings', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlEmptyStrings (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyStringsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyStrings', - documentation: 'Deserializes xml empty strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlEmptyStringsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'XmlEmptySelfClosedStrings (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyStringsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptySelfClosedStrings', - documentation: - 'Empty self closed string are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlEmptyStringsInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('XmlEmptyStrings (request)', () async { + await _i2.httpRequestTest( + operation: XmlEmptyStringsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEmptyStrings', + documentation: 'Serializes xml empty strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'PUT', + uri: '/XmlEmptyStrings', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEmptyStrings (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyStringsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyStrings', + documentation: 'Deserializes xml empty strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEmptySelfClosedStrings (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyStringsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptySelfClosedStrings', + documentation: + 'Empty self closed string are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], + ); + }); } class XmlEmptyStringsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlEmptyStringsInputOutputRestXmlSerializer() - : super('XmlEmptyStringsInputOutput'); + : super('XmlEmptyStringsInputOutput'); @override Iterable get types => const [XmlEmptyStringsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEmptyStringsInputOutput deserialize( @@ -157,10 +132,12 @@ class XmlEmptyStringsInputOutputRestXmlSerializer } switch (key) { case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart index 154db8324f..52d9062456 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,110 +14,80 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEnums (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlEnums (request)', () async { + await _i2.httpRequestTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], + ); + }); } class XmlEnumsInputOutputRestXmlSerializer @@ -129,11 +99,8 @@ class XmlEnumsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEnumsInputOutput deserialize( @@ -152,47 +119,57 @@ class XmlEnumsInputOutputRestXmlSerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart index 878ddbb592..7a2f2f78bf 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,127 +13,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlIntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlIntEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlIntEnums (request)', () async { + await _i2.httpRequestTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlIntEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], + ); + }); } class XmlIntEnumsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlIntEnumsInputOutputRestXmlSerializer() - : super('XmlIntEnumsInputOutput'); + : super('XmlIntEnumsInputOutput'); @override Iterable get types => const [XmlIntEnumsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlIntEnumsInputOutput deserialize( @@ -152,47 +119,53 @@ class XmlIntEnumsInputOutputRestXmlSerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i4.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart index 9f67eb08a1..5ce14a720a 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,234 +15,120 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlLists (request)', - () async { - await _i2.httpRequestTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - 'flattenedStructureList': [ - { - 'a': '5', - 'b': '6', - }, - { - 'a': '7', - 'b': '8', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'flattenedListWithMemberNamespace': [ - 'a', - 'b', - ], - 'flattenedListWithNamespace': [ - 'a', - 'b', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - 'flattenedStructureList': [ - { - 'a': '5', - 'b': '6', - }, - { - 'a': '7', - 'b': '8', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlLists (request)', () async { + await _i2.httpRequestTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + 'flattenedStructureList': [ + {'a': '5', 'b': '6'}, + {'a': '7', 'b': '8'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'flattenedListWithMemberNamespace': ['a', 'b'], + 'flattenedListWithNamespace': ['a', 'b'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + 'flattenedStructureList': [ + {'a': '5', 'b': '6'}, + {'a': '7', 'b': '8'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); } class XmlListsInputOutputRestXmlSerializer @@ -254,11 +140,8 @@ class XmlListsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlListsInputOutput deserialize( @@ -277,131 +160,151 @@ class XmlListsInputOutputRestXmlSerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedStructureList': - result.flattenedStructureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.flattenedStructureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -427,11 +330,8 @@ class StructureListMemberRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override StructureListMember deserialize( @@ -450,15 +350,19 @@ class StructureListMemberRestXmlSerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart index fa26fe7352..1ebfddc9f5 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,94 +14,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlMaps (request)', - () async { - await _i2.httpRequestTest( - operation: XmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlMaps', - documentation: 'Tests for XML map serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('XmlMaps (request)', () async { + await _i2.httpRequestTest( + operation: XmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlMaps', + documentation: 'Tests for XML map serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlMaps', - documentation: 'Tests for XML map serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlMaps', + documentation: 'Tests for XML map serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); } class XmlMapsInputOutputRestXmlSerializer @@ -113,11 +101,8 @@ class XmlMapsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsInputOutput deserialize( @@ -136,16 +121,16 @@ class XmlMapsInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -171,11 +156,8 @@ class GreetingStructRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -194,10 +176,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart index 2a030dd149..9c6c821edc 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_maps_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,111 +14,96 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlMapsXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: XmlMapsXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlMapsXmlName', - documentation: 'Serializes XML maps that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('XmlMapsXmlName (request)', () async { + await _i2.httpRequestTest( + operation: XmlMapsXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlMapsXmlName', + documentation: 'Serializes XML maps that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlMapsXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlMapsXmlNameInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlMapsXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlMapsXmlName', - documentation: 'Serializes XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlMapsXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlMapsXmlNameInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlMapsXmlName (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlMapsXmlName', + documentation: 'Serializes XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsXmlNameInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsXmlNameInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); } class XmlMapsXmlNameInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlMapsXmlNameInputOutputRestXmlSerializer() - : super('XmlMapsXmlNameInputOutput'); + : super('XmlMapsXmlNameInputOutput'); @override Iterable get types => const [XmlMapsXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsXmlNameInputOutput deserialize( @@ -137,16 +122,16 @@ class XmlMapsXmlNameInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -172,11 +157,8 @@ class GreetingStructRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -195,10 +177,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart index 772179d683..758e61d837 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_namespaces_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,117 +14,96 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlNamespaces (request)', - () async { - await _i2.httpRequestTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo\n \n Bar\n Baz\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + _i1.test('XmlNamespaces (request)', () async { + await _i2.httpRequestTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo\n \n Bar\n Baz\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlNamespaces', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlNamespacesInputOutputRestXmlSerializer(), - XmlNamespaceNestedRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlNamespaces (response)', - () async { - await _i2.httpResponseTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo\n \n Bar\n Baz\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlNamespaces', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlNamespacesInputOutputRestXmlSerializer(), + XmlNamespaceNestedRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlNamespaces (response)', () async { + await _i2.httpResponseTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo\n \n Bar\n Baz\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlNamespacesInputOutputRestXmlSerializer(), - XmlNamespaceNestedRestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlNamespacesInputOutputRestXmlSerializer(), + XmlNamespaceNestedRestXmlSerializer(), + ], + ); + }); } class XmlNamespacesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlNamespacesInputOutputRestXmlSerializer() - : super('XmlNamespacesInputOutput'); + : super('XmlNamespacesInputOutput'); @override Iterable get types => const [XmlNamespacesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespacesInputOutput deserialize( @@ -143,10 +122,13 @@ class XmlNamespacesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -172,11 +154,8 @@ class XmlNamespaceNestedRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespaceNested deserialize( @@ -195,18 +174,22 @@ class XmlNamespaceNestedRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart index 5a8b2e7b26..2ddedfe946 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,537 +12,450 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlTimestamps (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeOnTargetFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsOnTargetFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateOnTargetFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlTimestamps (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeOnTargetFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsOnTargetFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateOnTargetFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); } class XmlTimestampsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlTimestampsInputOutputRestXmlSerializer() - : super('XmlTimestampsInputOutput'); + : super('XmlTimestampsInputOutput'); @override Iterable get types => const [XmlTimestampsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlTimestampsInputOutput deserialize( @@ -571,34 +484,22 @@ class XmlTimestampsInputOutputRestXmlSerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart index ba3f9ee3da..be4c620e86 100644 --- a/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.rest_xml_protocol.test.xml_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,336 +13,288 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlUnionsWithStructMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithStructMember', - documentation: 'Serializes union struct member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'structValue': { - 'stringValue': 'string', - 'booleanValue': true, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - } - } + _i1.test('XmlUnionsWithStructMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithStructMember', + documentation: 'Serializes union struct member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'structValue': { + 'stringValue': 'string', + 'booleanValue': true, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithStringMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithStringMember', - documentation: 'serialize union string member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n some string\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'stringValue': 'some string'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithStringMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithStringMember', + documentation: 'serialize union string member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n some string\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'stringValue': 'some string'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithBooleanMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithBooleanMember', + documentation: 'Serializes union boolean member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n true\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithUnionMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithUnionMember', + documentation: 'Serializes union member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n true\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'unionValue': {'booleanValue': true}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithBooleanMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithBooleanMember', - documentation: 'Serializes union boolean member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n true\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'booleanValue': true} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithStructMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithStructMember', + documentation: 'Serializes union struct member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'structValue': { + 'stringValue': 'string', + 'booleanValue': true, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithUnionMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithUnionMember', - documentation: 'Serializes union member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n true\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'unionValue': {'booleanValue': true} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithStringMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithStringMember', + documentation: 'Serializes union string member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n some string\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'stringValue': 'some string'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithBooleanMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithBooleanMember', + documentation: 'Serializes union boolean member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n true\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithUnionMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithUnionMember', + documentation: 'Serializes union member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n true\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'unionValue': {'booleanValue': true}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithStructMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithStructMember', - documentation: 'Serializes union struct member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'structValue': { - 'stringValue': 'string', - 'booleanValue': true, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithStringMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithStringMember', - documentation: 'Serializes union string member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n some string\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'stringValue': 'some string'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithBooleanMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithBooleanMember', - documentation: 'Serializes union boolean member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n true\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithUnionMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithUnionMember', - documentation: 'Serializes union member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n true\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'unionValue': {'booleanValue': true} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); } class XmlUnionsInputOutputRestXmlSerializer @@ -354,11 +306,8 @@ class XmlUnionsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlUnionsInputOutput deserialize( @@ -377,10 +326,12 @@ class XmlUnionsInputOutputRestXmlSerializer } switch (key) { case 'unionValue': - result.unionValue = (serializers.deserialize( - value, - specifiedType: const FullType(XmlUnionShape), - ) as XmlUnionShape); + result.unionValue = + (serializers.deserialize( + value, + specifiedType: const FullType(XmlUnionShape), + ) + as XmlUnionShape); } } diff --git a/packages/smithy/goldens/lib/restXml/test/s3/delete_object_tagging_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/s3/delete_object_tagging_operation_test.dart index d1f07a5dfb..6b83873195 100644 --- a/packages/smithy/goldens/lib/restXml/test/s3/delete_object_tagging_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/s3/delete_object_tagging_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.s3.test.delete_object_tagging_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,198 +26,173 @@ import 'package:smithy_test/smithy_test.dart' as _i1; import 'package:test/test.dart' as _i2; void main() { - final vendorSerializers = (_i1.testSerializers.toBuilder() - ..addAll(const [ - AwsConfigSerializer(), - ScopedConfigSerializer(), - EnvironmentConfigSerializer(), - FileConfigSettingsSerializer(), - S3ConfigSerializer(), - ClientConfigSerializer(), - RetryConfigSerializer(), - OperationConfigSerializer(), - ...RetryMode.serializers, - ...S3AddressingStyle.serializers, - ])) - .build(); - - _i2.test( - 'S3EscapeObjectKeyInUriLabel (request)', - () async { - final config = (vendorSerializers.deserialize( - { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } - }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: DeleteObjectTaggingOperation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + final vendorSerializers = + (_i1.testSerializers.toBuilder()..addAll(const [ + AwsConfigSerializer(), + ScopedConfigSerializer(), + EnvironmentConfigSerializer(), + FileConfigSettingsSerializer(), + S3ConfigSerializer(), + ClientConfigSerializer(), + RetryConfigSerializer(), + OperationConfigSerializer(), + ...RetryMode.serializers, + ...S3AddressingStyle.serializers, + ])) + .build(); + + _i2.test('S3EscapeObjectKeyInUriLabel (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: DeleteObjectTaggingOperation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3EscapeObjectKeyInUriLabel', - documentation: - ' S3 clients should escape special characters in Object Keys\n when the Object Key is used as a URI label binding.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'Bucket': 'mybucket', - 'Key': 'my key.txt', - }, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'DELETE', - uri: '/my%20key.txt', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['tagging'], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3EscapeObjectKeyInUriLabel', + documentation: + ' S3 clients should escape special characters in Object Keys\n when the Object Key is used as a URI label binding.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket', 'Key': 'my key.txt'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3EscapePathObjectKeyInUriLabel (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } + 'client': {'region': 'us-west-2'}, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'DELETE', + uri: '/my%20key.txt', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['tagging'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], + ); + }); + _i2.test('S3EscapePathObjectKeyInUriLabel (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: DeleteObjectTaggingOperation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - ); - await _i1.httpRequestTest( - operation: DeleteObjectTaggingOperation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3EscapePathObjectKeyInUriLabel', + documentation: + ' S3 clients should preserve an Object Key representing a path\n when the Object Key is used as a URI label binding, but still\n escape special characters.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket', 'Key': 'foo/bar/my key.txt'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3EscapePathObjectKeyInUriLabel', - documentation: - ' S3 clients should preserve an Object Key representing a path\n when the Object Key is used as a URI label binding, but still\n escape special characters.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'Bucket': 'mybucket', - 'Key': 'foo/bar/my key.txt', - }, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } + vendorParams: { + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'DELETE', - uri: '/foo/bar/my%20key.txt', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['tagging'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], - ); - }, - ); + }, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'DELETE', + uri: '/foo/bar/my%20key.txt', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['tagging'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], + ); + }); } class DeleteObjectTaggingRequestRestXmlSerializer extends _i5.StructuredSmithySerializer { const DeleteObjectTaggingRequestRestXmlSerializer() - : super('DeleteObjectTaggingRequest'); + : super('DeleteObjectTaggingRequest'); @override Iterable get types => const [DeleteObjectTaggingRequest]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingRequest deserialize( @@ -236,25 +211,33 @@ class DeleteObjectTaggingRequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'VersionId': - result.versionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.versionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ExpectedBucketOwner': - result.expectedBucketOwner = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.expectedBucketOwner = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -274,18 +257,15 @@ class DeleteObjectTaggingRequestRestXmlSerializer class DeleteObjectTaggingOutputRestXmlSerializer extends _i5.StructuredSmithySerializer { const DeleteObjectTaggingOutputRestXmlSerializer() - : super('DeleteObjectTaggingOutput'); + : super('DeleteObjectTaggingOutput'); @override Iterable get types => const [DeleteObjectTaggingOutput]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingOutput deserialize( @@ -304,10 +284,12 @@ class DeleteObjectTaggingOutputRestXmlSerializer } switch (key) { case 'VersionId': - result.versionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.versionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -332,11 +314,8 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override AwsConfig deserialize( @@ -355,15 +334,20 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -389,11 +373,8 @@ class ScopedConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ScopedConfig deserialize( @@ -412,42 +393,51 @@ class ScopedConfigSerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -473,11 +463,8 @@ class EnvironmentConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override EnvironmentConfig deserialize( @@ -496,35 +483,47 @@ class EnvironmentConfigSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -550,11 +549,8 @@ class FileConfigSettingsSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override FileConfigSettings deserialize( @@ -573,40 +569,55 @@ class FileConfigSettingsSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -631,11 +642,8 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override S3Config deserialize( @@ -654,20 +662,26 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -693,11 +707,8 @@ class ClientConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ClientConfig deserialize( @@ -716,40 +727,56 @@ class ClientConfigSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -775,11 +802,8 @@ class RetryConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override RetryConfig deserialize( @@ -798,15 +822,19 @@ class RetryConfigSerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -832,11 +860,8 @@ class OperationConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override OperationConfig deserialize( @@ -855,10 +880,13 @@ class OperationConfigSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } diff --git a/packages/smithy/goldens/lib/restXml/test/s3/get_bucket_location_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/s3/get_bucket_location_operation_test.dart index 6b1326f6c4..bf811789e8 100644 --- a/packages/smithy/goldens/lib/restXml/test/s3/get_bucket_location_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/s3/get_bucket_location_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.s3.test.get_bucket_location_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,64 +16,53 @@ import 'package:smithy_test/smithy_test.dart' as _i3; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'GetBucketLocationUnwrappedOutput (response)', - () async { - const s3ClientConfig = _i2.S3ClientConfig(); - await _i3.httpResponseTest( - operation: GetBucketLocationOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('GetBucketLocationUnwrappedOutput (response)', () async { + const s3ClientConfig = _i2.S3ClientConfig(); + await _i3.httpResponseTest( + operation: GetBucketLocationOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i3.HttpResponseTestCase( - id: 'GetBucketLocationUnwrappedOutput', - documentation: - ' S3 clients should use the @s3UnwrappedXmlOutput trait to determine\n that the response shape is not wrapped in a restxml operation-level XML node.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\nus-west-2', - bodyMediaType: null, - params: {'LocationConstraint': 'us-west-2'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GetBucketLocationOutputRestXmlSerializer()], - ); - }, - ); + ), + testCase: const _i3.HttpResponseTestCase( + id: 'GetBucketLocationUnwrappedOutput', + documentation: + ' S3 clients should use the @s3UnwrappedXmlOutput trait to determine\n that the response shape is not wrapped in a restxml operation-level XML node.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\nus-west-2', + bodyMediaType: null, + params: {'LocationConstraint': 'us-west-2'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GetBucketLocationOutputRestXmlSerializer()], + ); + }); } class GetBucketLocationRequestRestXmlSerializer extends _i5.StructuredSmithySerializer { const GetBucketLocationRequestRestXmlSerializer() - : super('GetBucketLocationRequest'); + : super('GetBucketLocationRequest'); @override Iterable get types => const [GetBucketLocationRequest]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetBucketLocationRequest deserialize( @@ -92,10 +81,12 @@ class GetBucketLocationRequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -115,18 +106,15 @@ class GetBucketLocationRequestRestXmlSerializer class GetBucketLocationOutputRestXmlSerializer extends _i5.StructuredSmithySerializer { const GetBucketLocationOutputRestXmlSerializer() - : super('GetBucketLocationOutput'); + : super('GetBucketLocationOutput'); @override Iterable get types => const [GetBucketLocationOutput]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetBucketLocationOutput deserialize( @@ -145,10 +133,12 @@ class GetBucketLocationOutputRestXmlSerializer } switch (key) { case 'LocationConstraint': - result.locationConstraint = (serializers.deserialize( - value, - specifiedType: const FullType(BucketLocationConstraint), - ) as BucketLocationConstraint); + result.locationConstraint = + (serializers.deserialize( + value, + specifiedType: const FullType(BucketLocationConstraint), + ) + as BucketLocationConstraint); } } diff --git a/packages/smithy/goldens/lib/restXml/test/s3/list_objects_v2_operation_test.dart b/packages/smithy/goldens/lib/restXml/test/s3/list_objects_v2_operation_test.dart index 44b99cc57e..95430529ae 100644 --- a/packages/smithy/goldens/lib/restXml/test/s3/list_objects_v2_operation_test.dart +++ b/packages/smithy/goldens/lib/restXml/test/s3/list_objects_v2_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v1.s3.test.list_objects_v2_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,272 +33,298 @@ import 'package:smithy_test/smithy_test.dart' as _i1; import 'package:test/test.dart' as _i2; void main() { - final vendorSerializers = (_i1.testSerializers.toBuilder() - ..addAll(const [ - AwsConfigSerializer(), - ScopedConfigSerializer(), - EnvironmentConfigSerializer(), - FileConfigSettingsSerializer(), - S3ConfigSerializer(), - ClientConfigSerializer(), - RetryConfigSerializer(), - OperationConfigSerializer(), - ...EncodingType.serializers, - ...RequestPayer.serializers, - ...RetryMode.serializers, - ...S3AddressingStyle.serializers, - ...ObjectStorageClass.serializers, - ])) - .build(); - - _i2.test( - 'S3DefaultAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } - }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, + final vendorSerializers = + (_i1.testSerializers.toBuilder()..addAll(const [ + AwsConfigSerializer(), + ScopedConfigSerializer(), + EnvironmentConfigSerializer(), + FileConfigSettingsSerializer(), + S3ConfigSerializer(), + ClientConfigSerializer(), + RetryConfigSerializer(), + OperationConfigSerializer(), + ...EncodingType.serializers, + ...RequestPayer.serializers, + ...RetryMode.serializers, + ...S3AddressingStyle.serializers, + ...ObjectStorageClass.serializers, + ])) + .build(); + + _i2.test('S3DefaultAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3DefaultAddressing', + documentation: + 'S3 clients should map the default addressing style to virtual host.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3DefaultAddressing', - documentation: - 'S3 clients should map the default addressing style to virtual host.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } + vendorParams: { + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + }, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': {'addressing_style': 'virtual'}, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostAddressing', + documentation: + 'S3 clients should support the explicit virtual host addressing style.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', 's3': {'addressing_style': 'virtual'}, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3PathAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': {'addressing_style': 'path'}, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostAddressing', - documentation: - 'S3 clients should support the explicit virtual host addressing style.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': {'addressing_style': 'virtual'}, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3PathAddressing', + documentation: + 'S3 clients should support the explicit path addressing style.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3PathAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', 's3': {'addressing_style': 'path'}, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/mybucket', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 's3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostDualstackAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': { + 'addressing_style': 'virtual', + 'use_dualstack_endpoint': true, + }, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3PathAddressing', - documentation: - 'S3 clients should support the explicit path addressing style.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': {'addressing_style': 'path'}, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/mybucket', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 's3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostDualstackAddressing', + documentation: + 'S3 clients should support the explicit virtual host\naddressing style with Dualstack.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostDualstackAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', @@ -306,88 +332,80 @@ void main() { 'addressing_style': 'virtual', 'use_dualstack_endpoint': true, }, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostDualstackAddressing', - documentation: - 'S3 clients should support the explicit virtual host\naddressing style with Dualstack.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': { - 'addressing_style': 'virtual', - 'use_dualstack_endpoint': true, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.dualstack.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostAccelerateAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': { + 'addressing_style': 'virtual', + 'use_accelerate_endpoint': true, + }, }, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.dualstack.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostAccelerateAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostAccelerateAddressing', + documentation: + 'S3 clients should support the explicit virtual host\naddressing style with S3 Accelerate.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', + ), + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', @@ -395,88 +413,81 @@ void main() { 'addressing_style': 'virtual', 'use_accelerate_endpoint': true, }, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostAccelerateAddressing', - documentation: - 'S3 clients should support the explicit virtual host\naddressing style with S3 Accelerate.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': { - 'addressing_style': 'virtual', - 'use_accelerate_endpoint': true, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3-accelerate.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostDualstackAccelerateAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': { + 'addressing_style': 'virtual', + 'use_dualstack_endpoint': true, + 'use_accelerate_endpoint': true, + }, }, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3-accelerate.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostDualstackAccelerateAddressing', + documentation: + 'S3 clients should support the explicit virtual host\naddressing style with Dualstack and S3 Accelerate.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostDualstackAccelerateAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', @@ -485,173 +496,106 @@ void main() { 'use_dualstack_endpoint': true, 'use_accelerate_endpoint': true, }, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostDualstackAccelerateAddressing', - documentation: - 'S3 clients should support the explicit virtual host\naddressing style with Dualstack and S3 Accelerate.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': { - 'addressing_style': 'virtual', - 'use_dualstack_endpoint': true, - 'use_accelerate_endpoint': true, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3-accelerate.dualstack.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3OperationAddressingPreferred (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': {'addressing_style': 'path'}, }, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3-accelerate.dualstack.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + 'operation': { + 's3': {'addressing_style': 'virtual'}, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3OperationAddressingPreferred', + documentation: + 'S3 clients should resolve to the addressing style of the\noperation if defined on both the client and operation.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3OperationAddressingPreferred (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', 's3': {'addressing_style': 'path'}, }, 'operation': { - 's3': {'addressing_style': 'virtual'} + 's3': {'addressing_style': 'virtual'}, }, - } - }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3OperationAddressingPreferred', - documentation: - 'S3 clients should resolve to the addressing style of the\noperation if defined on both the client and operation.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': {'addressing_style': 'path'}, - }, - 'operation': { - 's3': {'addressing_style': 'virtual'} - }, - } }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); + }, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); } class ListObjectsV2RequestRestXmlSerializer @@ -663,11 +607,8 @@ class ListObjectsV2RequestRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2Request deserialize( @@ -686,55 +627,75 @@ class ListObjectsV2RequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'MaxKeys': - result.maxKeys = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxKeys = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ContinuationToken': - result.continuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.continuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'FetchOwner': - result.fetchOwner = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.fetchOwner = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'StartAfter': - result.startAfter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startAfter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestPayer': - result.requestPayer = (serializers.deserialize( - value, - specifiedType: const FullType(RequestPayer), - ) as RequestPayer); + result.requestPayer = + (serializers.deserialize( + value, + specifiedType: const FullType(RequestPayer), + ) + as RequestPayer); case 'ExpectedBucketOwner': - result.expectedBucketOwner = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.expectedBucketOwner = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -760,11 +721,8 @@ class ListObjectsV2OutputRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2Output deserialize( @@ -783,71 +741,95 @@ class ListObjectsV2OutputRestXmlSerializer } switch (key) { case 'IsTruncated': - result.isTruncated = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isTruncated = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Contents': - result.contents.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(S3Object)], - ), - ) as _i6.BuiltList)); + result.contents.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(S3Object), + ]), + ) + as _i6.BuiltList), + ); case 'Name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'MaxKeys': - result.maxKeys = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxKeys = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'CommonPrefixes': - result.commonPrefixes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(CommonPrefix)], - ), - ) as _i6.BuiltList)); + result.commonPrefixes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(CommonPrefix), + ]), + ) + as _i6.BuiltList), + ); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'KeyCount': - result.keyCount = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.keyCount = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ContinuationToken': - result.continuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.continuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'NextContinuationToken': - result.nextContinuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextContinuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StartAfter': - result.startAfter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startAfter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -872,11 +854,8 @@ class ObjectRestXmlSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Object deserialize( @@ -895,36 +874,44 @@ class ObjectRestXmlSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = - _i5.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.lastModified = _i5.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Size': - result.size = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.size = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(ObjectStorageClass), - ) as ObjectStorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(ObjectStorageClass), + ) + as ObjectStorageClass); case 'Owner': - result.owner.replace((serializers.deserialize( - value, - specifiedType: const FullType(Owner), - ) as Owner)); + result.owner.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Owner), + ) + as Owner), + ); } } @@ -949,11 +936,8 @@ class OwnerRestXmlSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Owner deserialize( @@ -972,15 +956,19 @@ class OwnerRestXmlSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'DisplayName': - result.displayName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.displayName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ID': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1006,11 +994,8 @@ class CommonPrefixRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CommonPrefix deserialize( @@ -1029,10 +1014,12 @@ class CommonPrefixRestXmlSerializer } switch (key) { case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1058,11 +1045,8 @@ class NoSuchBucketRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoSuchBucket deserialize( @@ -1091,11 +1075,8 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override AwsConfig deserialize( @@ -1114,15 +1095,20 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -1148,11 +1134,8 @@ class ScopedConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ScopedConfig deserialize( @@ -1171,42 +1154,51 @@ class ScopedConfigSerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -1232,11 +1224,8 @@ class EnvironmentConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override EnvironmentConfig deserialize( @@ -1255,35 +1244,47 @@ class EnvironmentConfigSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1309,11 +1310,8 @@ class FileConfigSettingsSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override FileConfigSettings deserialize( @@ -1332,40 +1330,55 @@ class FileConfigSettingsSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -1390,11 +1403,8 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override S3Config deserialize( @@ -1413,20 +1423,26 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -1452,11 +1468,8 @@ class ClientConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ClientConfig deserialize( @@ -1475,40 +1488,56 @@ class ClientConfigSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1534,11 +1563,8 @@ class RetryConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override RetryConfig deserialize( @@ -1557,15 +1583,19 @@ class RetryConfigSerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -1591,11 +1621,8 @@ class OperationConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override OperationConfig deserialize( @@ -1614,10 +1641,13 @@ class OperationConfigSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart index 644c19ac46..b5edbc83a2 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST XML service that sends XML requests and responses. This service and test case is complementary to the test cases in the \`restXml\` directory, but the service under test here has the \`xmlNamespace\` trait applied to it. See https://github.com/awslabs/smithy/issues/616 library rest_xml_with_namespace_v1.rest_xml_protocol_namespace; diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart index 8a9701825f..e5d25ef737 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Xml Protocol Namespace'; diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart index 780d1da006..a3ffce6e0a 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,11 +34,9 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart index 5325ced859..3f5c3dcef3 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestXmlSerializer() + AwsConfigRestXmlSerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestXmlSerializer const AwsConfigRestXmlSerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestXmlSerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -119,24 +104,28 @@ class AwsConfigRestXmlSerializer const _i2.XmlElementName( 'AwsConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart index e0abc631b0..cae507bdce 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestXmlSerializer() + ClientConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestXmlSerializer const ClientConfigRestXmlSerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -189,7 +179,7 @@ class ClientConfigRestXmlSerializer const _i2.XmlElementName( 'ClientConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -198,63 +188,71 @@ class ClientConfigRestXmlSerializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart index 9a6ab6d451..0895f9f6d2 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestXmlSerializer() + EnvironmentConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestXmlSerializer const EnvironmentConfigRestXmlSerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestXmlSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -173,7 +163,7 @@ class EnvironmentConfigRestXmlSerializer const _i2.XmlElementName( 'EnvironmentConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -181,55 +171,67 @@ class EnvironmentConfigRestXmlSerializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart index c97b0fef96..f827aada46 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestXmlSerializer() + FileConfigSettingsRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestXmlSerializer const FileConfigSettingsRestXmlSerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -190,7 +179,7 @@ class FileConfigSettingsRestXmlSerializer const _i2.XmlElementName( 'FileConfigSettings', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -199,63 +188,71 @@ class FileConfigSettingsRestXmlSerializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart index e402c47d9f..82cb8ebcac 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.nested_with_namespace; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,14 @@ abstract class NestedWithNamespace return _$NestedWithNamespace._(attrField: attrField); } - factory NestedWithNamespace.build( - [void Function(NestedWithNamespaceBuilder) updates]) = - _$NestedWithNamespace; + factory NestedWithNamespace.build([ + void Function(NestedWithNamespaceBuilder) updates, + ]) = _$NestedWithNamespace; const NestedWithNamespace._(); static const List<_i2.SmithySerializer> serializers = [ - NestedWithNamespaceRestXmlSerializer() + NestedWithNamespaceRestXmlSerializer(), ]; String? get attrField; @@ -35,10 +35,7 @@ abstract class NestedWithNamespace @override String toString() { final helper = newBuiltValueToStringHelper('NestedWithNamespace') - ..add( - 'attrField', - attrField, - ); + ..add('attrField', attrField); return helper.toString(); } } @@ -49,17 +46,14 @@ class NestedWithNamespaceRestXmlSerializer @override Iterable get types => const [ - NestedWithNamespace, - _$NestedWithNamespace, - ]; + NestedWithNamespace, + _$NestedWithNamespace, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedWithNamespace deserialize( @@ -78,10 +72,12 @@ class NestedWithNamespaceRestXmlSerializer } switch (key) { case 'xsi:someName': - result.attrField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attrField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,17 +94,20 @@ class NestedWithNamespaceRestXmlSerializer const _i2.XmlElementName( 'NestedWithNamespace', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final NestedWithNamespace(:attrField) = object; if (attrField != null) { - result$.add(_i3.XmlAttribute( - _i3.XmlName('xsi:someName'), - (serializers.serialize( - attrField, - specifiedType: const FullType(String), - ) as String), - )); + result$.add( + _i3.XmlAttribute( + _i3.XmlName('xsi:someName'), + (serializers.serialize( + attrField, + specifiedType: const FullType(String), + ) + as String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart index 732b78d7fa..1fec76ae30 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart @@ -10,16 +10,16 @@ class _$NestedWithNamespace extends NestedWithNamespace { @override final String? attrField; - factory _$NestedWithNamespace( - [void Function(NestedWithNamespaceBuilder)? updates]) => - (new NestedWithNamespaceBuilder()..update(updates))._build(); + factory _$NestedWithNamespace([ + void Function(NestedWithNamespaceBuilder)? updates, + ]) => (new NestedWithNamespaceBuilder()..update(updates))._build(); _$NestedWithNamespace._({this.attrField}) : super._(); @override NestedWithNamespace rebuild( - void Function(NestedWithNamespaceBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedWithNamespaceBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedWithNamespaceBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart index d22c7c18db..d88c70cff7 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestXmlSerializer() + OperationConfigRestXmlSerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestXmlSerializer const OperationConfigRestXmlSerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestXmlSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -101,16 +96,15 @@ class OperationConfigRestXmlSerializer const _i2.XmlElementName( 'OperationConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart index fad223c625..d7eebe84b1 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestXmlSerializer() + RetryConfigRestXmlSerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestXmlSerializer const RetryConfigRestXmlSerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestXmlSerializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -120,24 +104,25 @@ class RetryConfigRestXmlSerializer const _i2.XmlElementName( 'RetryConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final RetryConfig(:maxAttempts, :mode) = object; if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart index 9286d38f92..4e52434c79 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart index 8e431bdb10..3daf5f58c1 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart index 8de557f9c5..9bc9afe3b2 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestXmlSerializer() + S3ConfigRestXmlSerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestXmlSerializer const S3ConfigRestXmlSerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestXmlSerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,36 +124,42 @@ class S3ConfigRestXmlSerializer const _i2.XmlElementName( 'S3Config', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart index 175473713c..70092a3bac 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestXmlSerializer() + ScopedConfigRestXmlSerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestXmlSerializer const ScopedConfigRestXmlSerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigRestXmlSerializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -188,68 +173,72 @@ class ScopedConfigRestXmlSerializer const _i3.XmlElementName( 'ScopedConfig', _i3.XmlNamespace('https://example.com'), - ) + ), ]; final ScopedConfig( :client, :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart index 8df74b21e3..f354f3925a 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + >, _i1.HasPayload { factory SimpleScalarPropertiesInputOutput({ String? foo, @@ -49,9 +51,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -59,51 +61,50 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; String? get foo; String? get stringValue; @@ -135,81 +136,49 @@ abstract class SimpleScalarPropertiesInputOutput @override List get props => [ - foo, - stringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - nested, - doubleValue, - ]; + foo, + stringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + nested, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'nested', - nested, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('foo', foo) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('nested', nested) + ..add('doubleValue', doubleValue); return helper.toString(); } } @_i4.internal abstract class SimpleScalarPropertiesInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates]) = _$SimpleScalarPropertiesInputOutputPayload; + Built< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { + factory SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutputPayload; const SimpleScalarPropertiesInputOutputPayload._(); @@ -225,86 +194,56 @@ abstract class SimpleScalarPropertiesInputOutputPayload bool? get trueBooleanValue; @override List get props => [ - byteValue, - doubleValue, - falseBooleanValue, - floatValue, - integerValue, - longValue, - nested, - shortValue, - stringValue, - trueBooleanValue, - ]; + byteValue, + doubleValue, + falseBooleanValue, + floatValue, + integerValue, + longValue, + nested, + shortValue, + stringValue, + trueBooleanValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutputPayload') - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'doubleValue', - doubleValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'nested', - nested, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ); + ..add('byteValue', byteValue) + ..add('doubleValue', doubleValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('floatValue', floatValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('nested', nested) + ..add('shortValue', shortValue) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue); return helper.toString(); } } -class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class SimpleScalarPropertiesInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + SimpleScalarPropertiesInputOutputPayload + > { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - _$SimpleScalarPropertiesInputOutputPayload, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + _$SimpleScalarPropertiesInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutputPayload deserialize( @@ -323,55 +262,76 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 } switch (key) { case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedWithNamespace), - ) as NestedWithNamespace)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedWithNamespace), + ) + as NestedWithNamespace), + ); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -388,7 +348,7 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 const _i1.XmlElementName( 'SimpleScalarPropertiesInputOutput', _i1.XmlNamespace('https://example.com'), - ) + ), ]; final SimpleScalarPropertiesInputOutputPayload( :byteValue, @@ -400,93 +360,106 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 :nested, :shortValue, :stringValue, - :trueBooleanValue + :trueBooleanValue, ) = object; if (byteValue != null) { result$ ..add(const _i1.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add(const _i1.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i1.XmlElementName('falseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add(const _i1.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i1.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (nested != null) { result$ - ..add(const _i1.XmlElementName( - 'Nested', - _i1.XmlNamespace( - 'https://example.com', - 'xsi', + ..add( + const _i1.XmlElementName( + 'Nested', + _i1.XmlNamespace('https://example.com', 'xsi'), + ), + ) + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(NestedWithNamespace), ), - )) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(NestedWithNamespace), - )); + ); } if (shortValue != null) { result$ ..add(const _i1.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add(const _i1.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i1.XmlElementName('trueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart index b653a11542..7b30d5692f 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart @@ -31,29 +31,30 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutput._( - {this.foo, - this.stringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.nested, - this.doubleValue}) - : super._(); + _$SimpleScalarPropertiesInputOutput._({ + this.foo, + this.stringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.nested, + this.doubleValue, + }) : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -97,8 +98,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; String? _foo; @@ -177,7 +180,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -187,19 +191,21 @@ class SimpleScalarPropertiesInputOutputBuilder _$SimpleScalarPropertiesInputOutput _build() { _$SimpleScalarPropertiesInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - foo: foo, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - nested: _nested?.build(), - doubleValue: doubleValue); + foo: foo, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + nested: _nested?.build(), + doubleValue: doubleValue, + ); } catch (_) { late String _$failedField; try { @@ -207,7 +213,10 @@ class SimpleScalarPropertiesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SimpleScalarPropertiesInputOutput', _$failedField, e.toString()); + r'SimpleScalarPropertiesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -239,30 +248,29 @@ class _$SimpleScalarPropertiesInputOutputPayload @override final bool? trueBooleanValue; - factory _$SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? - updates]) => + factory _$SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputPayloadBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutputPayload._( - {this.byteValue, - this.doubleValue, - this.falseBooleanValue, - this.floatValue, - this.integerValue, - this.longValue, - this.nested, - this.shortValue, - this.stringValue, - this.trueBooleanValue}) - : super._(); + _$SimpleScalarPropertiesInputOutputPayload._({ + this.byteValue, + this.doubleValue, + this.falseBooleanValue, + this.floatValue, + this.integerValue, + this.longValue, + this.nested, + this.shortValue, + this.stringValue, + this.trueBooleanValue, + }) : super._(); @override SimpleScalarPropertiesInputOutputPayload rebuild( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputPayloadBuilder toBuilder() => @@ -304,8 +312,10 @@ class _$SimpleScalarPropertiesInputOutputPayload class SimpleScalarPropertiesInputOutputPayloadBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { _$SimpleScalarPropertiesInputOutputPayload? _$v; int? _byteValue; @@ -379,7 +389,8 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -389,18 +400,20 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder _$SimpleScalarPropertiesInputOutputPayload _build() { _$SimpleScalarPropertiesInputOutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutputPayload._( - byteValue: byteValue, - doubleValue: doubleValue, - falseBooleanValue: falseBooleanValue, - floatValue: floatValue, - integerValue: integerValue, - longValue: longValue, - nested: _nested?.build(), - shortValue: shortValue, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue); + byteValue: byteValue, + doubleValue: doubleValue, + falseBooleanValue: falseBooleanValue, + floatValue: floatValue, + integerValue: integerValue, + longValue: longValue, + nested: _nested?.build(), + shortValue: shortValue, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + ); } catch (_) { late String _$failedField; try { @@ -408,9 +421,10 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SimpleScalarPropertiesInputOutputPayload', - _$failedField, - e.toString()); + r'SimpleScalarPropertiesInputOutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart index 195d2167d8..7916922d01 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,35 +12,42 @@ import 'package:rest_xml_with_namespace_v1/src/rest_xml_protocol_namespace/model import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +55,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,11 +90,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +114,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart index f098cefd5f..18378d292d 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.rest_xml_protocol_namespace_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,11 +17,11 @@ class RestXmlProtocolNamespaceClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -42,9 +42,6 @@ class RestXmlProtocolNamespaceClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart index 3de4fb3775..54b654dfc6 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.rest_xml_protocol_namespace_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -46,11 +46,12 @@ class _RestXmlProtocolNamespaceServer final RestXmlProtocolNamespaceServerBase service; late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.RestXmlProtocol( + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, @@ -64,40 +65,36 @@ class _RestXmlProtocolNamespaceServer try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutputPayload), - ) as SimpleScalarPropertiesInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutputPayload, + ), + ) + as SimpleScalarPropertiesInputOutputPayload); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutputPayload)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/pubspec.yaml b/packages/smithy/goldens/lib/restXmlWithNamespace/pubspec.yaml index cd16bb03da..6f587ca861 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/pubspec.yaml +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -14,9 +14,9 @@ dependencies: aws_common: path: ../../../../aws_common built_value: ^8.6.0 - xml: ">=6.3.0 <=6.5.0" + xml: 6.3.0 fixnum: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 built_collection: ^5.0.0 shelf_router: ^1.1.0 shelf: ^1.4.0 @@ -41,6 +41,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart index 49693fe4b4..0752b475e0 100644 --- a/packages/smithy/goldens/lib/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_with_namespace_v1.rest_xml_protocol_namespace.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,131 +14,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlNamespaceSimpleScalarProperties (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlNamespaceSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - 'Nested': {'attrField': 'nestedAttrValue'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer(), - NestedWithNamespaceRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlNamespaceSimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlNamespaceSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - 'Nested': {'attrField': 'nestedAttrValue'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer(), - NestedWithNamespaceRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlNamespaceSimpleScalarProperties (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlNamespaceSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + 'Nested': {'attrField': 'nestedAttrValue'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + NestedWithNamespaceRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlNamespaceSimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlNamespaceSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + 'Nested': {'attrField': 'nestedAttrValue'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + NestedWithNamespaceRestXmlSerializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -157,60 +136,83 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedWithNamespace), - ) as NestedWithNamespace)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedWithNamespace), + ) + as NestedWithNamespace), + ); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -236,11 +238,8 @@ class NestedWithNamespaceRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedWithNamespace deserialize( @@ -259,10 +258,12 @@ class NestedWithNamespaceRestXmlSerializer } switch (key) { case 'attrField': - result.attrField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attrField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/json_rpc_10.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/json_rpc_10.dart index 925bf0f61c..66a311547c 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/json_rpc_10.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/json_rpc_10.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10; diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart index a2b8e09785..f9705cdc1a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'JSON RPC 10'; diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart index f6b2e9fe51..47725565dc 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -68,22 +68,13 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart index b08d3c5783..bd5d616988 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.json_rpc10_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,11 +34,11 @@ class JsonRpc10Client { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -60,10 +60,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -72,10 +69,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -87,10 +81,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. @@ -103,10 +94,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -115,10 +103,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation uses unions for inputs and outputs. @@ -131,10 +116,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -144,24 +126,19 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -173,10 +150,7 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation simpleScalarProperties( @@ -188,9 +162,6 @@ class JsonRpc10Client { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart index 847634d0b9..196c5a6120 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/json_rpc10_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.json_rpc10_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,23 +39,19 @@ abstract class JsonRpc10ServerBase extends _i1.HttpServerBase { router.add( 'POST', '/', - _i1.RpcRouter( - 'X-Amz-Target', - { - 'JsonRpc10.EmptyInputAndEmptyOutput': - service.emptyInputAndEmptyOutput, - 'JsonRpc10.EndpointOperation': service.endpointOperation, - 'JsonRpc10.EndpointWithHostLabelOperation': - service.endpointWithHostLabelOperation, - 'JsonRpc10.GreetingWithErrors': service.greetingWithErrors, - 'JsonRpc10.HostWithPathOperation': service.hostWithPathOperation, - 'JsonRpc10.JsonUnions': service.jsonUnions, - 'JsonRpc10.NoInputAndNoOutput': service.noInputAndNoOutput, - 'JsonRpc10.NoInputAndOutput': service.noInputAndOutput, - 'JsonRpc10.PutWithContentEncoding': service.putWithContentEncoding, - 'JsonRpc10.SimpleScalarProperties': service.simpleScalarProperties, - }, - ), + _i1.RpcRouter('X-Amz-Target', { + 'JsonRpc10.EmptyInputAndEmptyOutput': service.emptyInputAndEmptyOutput, + 'JsonRpc10.EndpointOperation': service.endpointOperation, + 'JsonRpc10.EndpointWithHostLabelOperation': + service.endpointWithHostLabelOperation, + 'JsonRpc10.GreetingWithErrors': service.greetingWithErrors, + 'JsonRpc10.HostWithPathOperation': service.hostWithPathOperation, + 'JsonRpc10.JsonUnions': service.jsonUnions, + 'JsonRpc10.NoInputAndNoOutput': service.noInputAndNoOutput, + 'JsonRpc10.NoInputAndOutput': service.noInputAndOutput, + 'JsonRpc10.PutWithContentEncoding': service.putWithContentEncoding, + 'JsonRpc10.SimpleScalarProperties': service.simpleScalarProperties, + }), ); return router; }(); @@ -64,10 +60,7 @@ abstract class JsonRpc10ServerBase extends _i1.HttpServerBase { EmptyInputAndEmptyOutputInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelOperation( EndpointWithHostLabelOperationInput input, _i1.Context context, @@ -84,10 +77,7 @@ abstract class JsonRpc10ServerBase extends _i1.HttpServerBase { JsonUnionsInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> noInputAndNoOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> noInputAndNoOutput(_i1.Unit input, _i1.Context context); _i3.Future noInputAndOutput( _i1.Unit input, _i1.Context context, @@ -110,78 +100,96 @@ class _JsonRpc10Server extends _i1.HttpServer { final JsonRpc10ServerBase service; late final _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> _emptyInputAndEmptyOutputProtocol = - _i2.AwsJson1_0Protocol( + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + _emptyInputAndEmptyOutputProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.AwsJson1_0Protocol( + _endpointOperationProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_0Protocol( + late final _i1.HttpProtocol< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _greetingWithErrorsProtocol = _i2.AwsJson1_0Protocol( + late final _i1.HttpProtocol< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _hostWithPathOperationProtocol = _i2.AwsJson1_0Protocol( + _hostWithPathOperationProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonUnionsInput, - JsonUnionsInput, - JsonUnionsOutput, - JsonUnionsOutput> _jsonUnionsProtocol = _i2.AwsJson1_0Protocol( + JsonUnionsInput, + JsonUnionsInput, + JsonUnionsOutput, + JsonUnionsOutput + > + _jsonUnionsProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _noInputAndNoOutputProtocol = _i2.AwsJson1_0Protocol( + _noInputAndNoOutputProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput> _noInputAndOutputProtocol = - _i2.AwsJson1_0Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + _noInputAndOutputProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.AwsJson1_0Protocol( + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInput, - SimpleScalarPropertiesInput, - SimpleScalarPropertiesOutput, - SimpleScalarPropertiesOutput> _simpleScalarPropertiesProtocol = - _i2.AwsJson1_0Protocol( + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInput, + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutput + > + _simpleScalarPropertiesProtocol = _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -194,37 +202,31 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _emptyInputAndEmptyOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EmptyInputAndEmptyOutputInput), - ) as EmptyInputAndEmptyOutputInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(EmptyInputAndEmptyOutputInput), + ) + as EmptyInputAndEmptyOutputInput); final input = EmptyInputAndEmptyOutputInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.emptyInputAndEmptyOutput( - input, - context, - ); + final output = await service.emptyInputAndEmptyOutput(input, context); const statusCode = 200; - final body = - await _emptyInputAndEmptyOutputProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - EmptyInputAndEmptyOutputOutput, - [FullType(EmptyInputAndEmptyOutputOutput)], - ), - ); + final body = await _emptyInputAndEmptyOutputProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(EmptyInputAndEmptyOutputOutput, [ + FullType(EmptyInputAndEmptyOutputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -236,21 +238,16 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -258,26 +255,27 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EndpointWithHostLabelOperationInput), - ) as EndpointWithHostLabelOperationInput); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + EndpointWithHostLabelOperationInput, + ), + ) + as EndpointWithHostLabelOperationInput); final input = EndpointWithHostLabelOperationInput.fromRequest( payload, awsRequest, @@ -290,22 +288,16 @@ class _JsonRpc10Server extends _i1.HttpServer { const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -317,25 +309,22 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GreetingWithErrorsInput), - ) as GreetingWithErrorsInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(GreetingWithErrorsInput), + ) + as GreetingWithErrorsInput); final input = GreetingWithErrorsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutput)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutput), + ]), ); return _i4.Response( statusCode, @@ -345,10 +334,7 @@ class _JsonRpc10Server extends _i1.HttpServer { } on ComplexError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexError)], - ), + specifiedType: const FullType(ComplexError, [FullType(ComplexError)]), ); const statusCode = 400; return _i4.Response( @@ -359,10 +345,7 @@ class _JsonRpc10Server extends _i1.HttpServer { } on FooError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - FooError, - [FullType(FooError)], - ), + specifiedType: const FullType(FooError, [FullType(FooError)]), ); const statusCode = 500; return _i4.Response( @@ -373,10 +356,9 @@ class _JsonRpc10Server extends _i1.HttpServer { } on InvalidGreeting catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -385,10 +367,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -400,33 +379,25 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _hostWithPathOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.hostWithPathOperation( - input, - context, - ); + final output = await service.hostWithPathOperation(input, context); const statusCode = 200; - final body = - await _hostWithPathOperationProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _hostWithPathOperationProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -435,26 +406,24 @@ class _JsonRpc10Server extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonUnionsProtocol.contentType; try { - final payload = (await _jsonUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonUnionsInput), - ) as JsonUnionsInput); + final payload = + (await _jsonUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonUnionsInput), + ) + as JsonUnionsInput); final input = JsonUnionsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonUnions( - input, - context, - ); + final output = await service.jsonUnions(input, context); const statusCode = 200; final body = await _jsonUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonUnionsOutput, - [FullType(JsonUnionsOutput)], - ), + specifiedType: const FullType(JsonUnionsOutput, [ + FullType(JsonUnionsOutput), + ]), ); return _i4.Response( statusCode, @@ -462,10 +431,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -477,21 +443,16 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _noInputAndNoOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndNoOutput( - input, - context, - ); + final output = await service.noInputAndNoOutput(input, context); const statusCode = 200; final body = await _noInputAndNoOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -499,10 +460,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -514,21 +472,18 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _noInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndOutput( - input, - context, - ); + final output = await service.noInputAndOutput(input, context); const statusCode = 200; final body = await _noInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NoInputAndOutputOutput, - [FullType(NoInputAndOutputOutput)], - ), + specifiedType: const FullType(NoInputAndOutputOutput, [ + FullType(NoInputAndOutputOutput), + ]), ); return _i4.Response( statusCode, @@ -536,10 +491,7 @@ class _JsonRpc10Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -551,37 +503,29 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInput), - ) as PutWithContentEncodingInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PutWithContentEncodingInput), + ) + as PutWithContentEncodingInput); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -593,37 +537,31 @@ class _JsonRpc10Server extends _i1.HttpServer { try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInput), - ) as SimpleScalarPropertiesInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(SimpleScalarPropertiesInput), + ) + as SimpleScalarPropertiesInput); final input = SimpleScalarPropertiesInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesOutput, - [FullType(SimpleScalarPropertiesOutput)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesOutput, [ + FullType(SimpleScalarPropertiesOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart index bdfffc6f3d..bcc4f19b3b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsJson10Serializer() + AwsConfigAwsJson10Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsJson10Serializer const AwsConfigAwsJson10Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigAwsJson10Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigAwsJson10Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart index a261630a38..c4dd26c9a3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsJson10Serializer() + ClientConfigAwsJson10Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsJson10Serializer const ClientConfigAwsJson10Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigAwsJson10Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -193,63 +183,71 @@ class ClientConfigAwsJson10Serializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart index 8721fa9555..93b7933bc2 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorAwsJson10Serializer() + ComplexErrorAwsJson10Serializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.json10', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorAwsJson10Serializer const ComplexErrorAwsJson10Serializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexError deserialize( @@ -127,15 +106,20 @@ class ComplexErrorAwsJson10Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -153,18 +137,22 @@ class ComplexErrorAwsJson10Serializer if (topLevel != null) { result$ ..add('TopLevel') - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add('Nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart index 890b3a5af3..73781e03c7 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataAwsJson10Serializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson10Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataAwsJson10Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +94,9 @@ class ComplexNestedErrorDataAwsJson10Serializer if (foo != null) { result$ ..add('Foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart index b00bfba39a..a36c86c8da 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputAwsJson10Serializer()]; + serializers = [EmptyInputAndEmptyOutputInputAwsJson10Serializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -84,6 +82,5 @@ class EmptyInputAndEmptyOutputInputAwsJson10Serializer Serializers serializers, EmptyInputAndEmptyOutputInput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart index 318c994f2f..ded91a8d7b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputAwsJson10Serializer()]; + serializers = [EmptyInputAndEmptyOutputOutputAwsJson10Serializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -81,6 +79,5 @@ class EmptyInputAndEmptyOutputOutputAwsJson10Serializer Serializers serializers, EmptyInputAndEmptyOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart index 9632984e19..34b70ef9b3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.endpoint_with_host_label_operation_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class EndpointWithHostLabelOperationInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInputBuilder + > { factory EndpointWithHostLabelOperationInput({required String label}) { return _$EndpointWithHostLabelOperationInput._(label: label); } - factory EndpointWithHostLabelOperationInput.build( - [void Function(EndpointWithHostLabelOperationInputBuilder) updates]) = - _$EndpointWithHostLabelOperationInput; + factory EndpointWithHostLabelOperationInput.build([ + void Function(EndpointWithHostLabelOperationInputBuilder) updates, + ]) = _$EndpointWithHostLabelOperationInput; const EndpointWithHostLabelOperationInput._(); @@ -31,11 +33,10 @@ abstract class EndpointWithHostLabelOperationInput EndpointWithHostLabelOperationInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EndpointWithHostLabelOperationInputAwsJson10Serializer()]; + serializers = [EndpointWithHostLabelOperationInputAwsJson10Serializer()]; String get label; @override @@ -44,10 +45,7 @@ abstract class EndpointWithHostLabelOperationInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -58,34 +56,29 @@ abstract class EndpointWithHostLabelOperationInput @override String toString() { - final helper = - newBuiltValueToStringHelper('EndpointWithHostLabelOperationInput') - ..add( - 'label', - label, - ); + final helper = newBuiltValueToStringHelper( + 'EndpointWithHostLabelOperationInput', + )..add('label', label); return helper.toString(); } } -class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i1 - .StructuredSmithySerializer { +class EndpointWithHostLabelOperationInputAwsJson10Serializer + extends + _i1.StructuredSmithySerializer { const EndpointWithHostLabelOperationInputAwsJson10Serializer() - : super('EndpointWithHostLabelOperationInput'); + : super('EndpointWithHostLabelOperationInput'); @override Iterable get types => const [ - EndpointWithHostLabelOperationInput, - _$EndpointWithHostLabelOperationInput, - ]; + EndpointWithHostLabelOperationInput, + _$EndpointWithHostLabelOperationInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EndpointWithHostLabelOperationInput deserialize( @@ -104,10 +97,12 @@ class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i1 } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -124,10 +119,7 @@ class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i1 final EndpointWithHostLabelOperationInput(:label) = object; result$.addAll([ 'label', - serializers.serialize( - label, - specifiedType: const FullType(String), - ), + serializers.serialize(label, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart index 59c16c00dc..91318dc5e7 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/endpoint_with_host_label_operation_input.g.dart @@ -11,21 +11,24 @@ class _$EndpointWithHostLabelOperationInput @override final String label; - factory _$EndpointWithHostLabelOperationInput( - [void Function(EndpointWithHostLabelOperationInputBuilder)? - updates]) => + factory _$EndpointWithHostLabelOperationInput([ + void Function(EndpointWithHostLabelOperationInputBuilder)? updates, + ]) => (new EndpointWithHostLabelOperationInputBuilder()..update(updates)) ._build(); _$EndpointWithHostLabelOperationInput._({required this.label}) : super._() { BuiltValueNullFieldError.checkNotNull( - label, r'EndpointWithHostLabelOperationInput', 'label'); + label, + r'EndpointWithHostLabelOperationInput', + 'label', + ); } @override EndpointWithHostLabelOperationInput rebuild( - void Function(EndpointWithHostLabelOperationInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EndpointWithHostLabelOperationInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EndpointWithHostLabelOperationInputBuilder toBuilder() => @@ -48,8 +51,10 @@ class _$EndpointWithHostLabelOperationInput class EndpointWithHostLabelOperationInputBuilder implements - Builder { + Builder< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInputBuilder + > { _$EndpointWithHostLabelOperationInput? _$v; String? _label; @@ -75,7 +80,8 @@ class EndpointWithHostLabelOperationInputBuilder @override void update( - void Function(EndpointWithHostLabelOperationInputBuilder)? updates) { + void Function(EndpointWithHostLabelOperationInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -83,10 +89,15 @@ class EndpointWithHostLabelOperationInputBuilder EndpointWithHostLabelOperationInput build() => _build(); _$EndpointWithHostLabelOperationInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EndpointWithHostLabelOperationInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'EndpointWithHostLabelOperationInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'EndpointWithHostLabelOperationInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart index 9976ecc25e..6fd99d8541 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsJson10Serializer() + EnvironmentConfigAwsJson10Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsJson10Serializer const EnvironmentConfigAwsJson10Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigAwsJson10Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigAwsJson10Serializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart index c8bdd6b9a8..f4e8af6e1f 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsJson10Serializer() + FileConfigSettingsAwsJson10Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsJson10Serializer const FileConfigSettingsAwsJson10Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsAwsJson10Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -194,63 +183,71 @@ class FileConfigSettingsAwsJson10Serializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart index 83d2bb5364..683dcf9720 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart index 3b90433559..18419d2bfe 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/foo_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.foo_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,21 +31,20 @@ abstract class FooError factory FooError.fromResponse( FooError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - FooErrorAwsJson10Serializer() + FooErrorAwsJson10Serializer(), ]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'FooError', - ); + namespace: 'aws.protocoltests.json10', + shape: 'FooError', + ); @override String? get message => null; @@ -77,18 +76,12 @@ class FooErrorAwsJson10Serializer const FooErrorAwsJson10Serializer() : super('FooError'); @override - Iterable get types => const [ - FooError, - _$FooError, - ]; + Iterable get types => const [FooError, _$FooError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override FooError deserialize( @@ -104,6 +97,5 @@ class FooErrorAwsJson10Serializer Serializers serializers, FooError object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart index 4778763752..c2df88086b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructAwsJson10Serializer() + GreetingStructAwsJson10Serializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructAwsJson10Serializer const GreetingStructAwsJson10Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructAwsJson10Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +89,7 @@ class GreetingStructAwsJson10Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart index 08749cfa8f..e6e7859fe9 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.greeting_with_errors_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class GreetingWithErrorsInput return _$GreetingWithErrorsInput._(greeting: greeting); } - factory GreetingWithErrorsInput.build( - [void Function(GreetingWithErrorsInputBuilder) updates]) = - _$GreetingWithErrorsInput; + factory GreetingWithErrorsInput.build([ + void Function(GreetingWithErrorsInputBuilder) updates, + ]) = _$GreetingWithErrorsInput; const GreetingWithErrorsInput._(); @@ -29,8 +29,7 @@ abstract class GreetingWithErrorsInput GreetingWithErrorsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [GreetingWithErrorsInputAwsJson10Serializer()]; @@ -45,10 +44,7 @@ abstract class GreetingWithErrorsInput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsInput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -56,21 +52,18 @@ abstract class GreetingWithErrorsInput class GreetingWithErrorsInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const GreetingWithErrorsInputAwsJson10Serializer() - : super('GreetingWithErrorsInput'); + : super('GreetingWithErrorsInput'); @override Iterable get types => const [ - GreetingWithErrorsInput, - _$GreetingWithErrorsInput, - ]; + GreetingWithErrorsInput, + _$GreetingWithErrorsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsInput deserialize( @@ -89,10 +82,12 @@ class GreetingWithErrorsInputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -110,10 +105,12 @@ class GreetingWithErrorsInputAwsJson10Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart index 7faa014526..02f4b2bf10 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_input.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsInput extends GreetingWithErrorsInput { @override final String? greeting; - factory _$GreetingWithErrorsInput( - [void Function(GreetingWithErrorsInputBuilder)? updates]) => - (new GreetingWithErrorsInputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsInput([ + void Function(GreetingWithErrorsInputBuilder)? updates, + ]) => (new GreetingWithErrorsInputBuilder()..update(updates))._build(); _$GreetingWithErrorsInput._({this.greeting}) : super._(); @override GreetingWithErrorsInput rebuild( - void Function(GreetingWithErrorsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart index 6eaf4882f8..56e7974975 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputAwsJson10Serializer()]; + serializers = [GreetingWithErrorsOutputAwsJson10Serializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson10Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -85,10 +78,12 @@ class GreetingWithErrorsOutputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -106,10 +101,12 @@ class GreetingWithErrorsOutputAwsJson10Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/integer_enum.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/integer_enum.dart index 01d227536b..88348a2e82 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/integer_enum.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/integer_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.integer_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class IntegerEnum extends _i1.SmithyIntEnum { - const IntegerEnum._( - super.index, - super.name, - super.value, - ); + const IntegerEnum._(super.index, super.name, super.value); const IntegerEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = IntegerEnum._( - 0, - 'A', - 1, - ); + static const a = IntegerEnum._(0, 'A', 1); - static const b = IntegerEnum._( - 1, - 'B', - 2, - ); + static const b = IntegerEnum._(1, 'B', 2); - static const c = IntegerEnum._( - 2, - 'C', - 3, - ); + static const c = IntegerEnum._(2, 'C', 3); /// All values of [IntegerEnum]. static const values = [ @@ -45,12 +29,9 @@ class IntegerEnum extends _i1.SmithyIntEnum { values: values, sdkUnknown: IntegerEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart index 811c38c6db..7a22bd2d1a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingAwsJson10Serializer() + InvalidGreetingAwsJson10Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.json10', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingAwsJson10Serializer const InvalidGreetingAwsJson10Serializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override InvalidGreeting deserialize( @@ -110,10 +101,12 @@ class InvalidGreetingAwsJson10Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +124,9 @@ class InvalidGreetingAwsJson10Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart index 4f3883fcef..5732d11bb3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.json_unions_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,9 @@ abstract class JsonUnionsInput return _$JsonUnionsInput._(contents: contents); } - factory JsonUnionsInput.build( - [void Function(JsonUnionsInputBuilder) updates]) = _$JsonUnionsInput; + factory JsonUnionsInput.build([ + void Function(JsonUnionsInputBuilder) updates, + ]) = _$JsonUnionsInput; const JsonUnionsInput._(); @@ -27,11 +28,10 @@ abstract class JsonUnionsInput JsonUnionsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonUnionsInputAwsJson10Serializer() + JsonUnionsInputAwsJson10Serializer(), ]; /// A union with a representative set of types for members. @@ -45,10 +45,7 @@ abstract class JsonUnionsInput @override String toString() { final helper = newBuiltValueToStringHelper('JsonUnionsInput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -58,18 +55,12 @@ class JsonUnionsInputAwsJson10Serializer const JsonUnionsInputAwsJson10Serializer() : super('JsonUnionsInput'); @override - Iterable get types => const [ - JsonUnionsInput, - _$JsonUnionsInput, - ]; + Iterable get types => const [JsonUnionsInput, _$JsonUnionsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsInput deserialize( @@ -88,10 +79,12 @@ class JsonUnionsInputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -109,10 +102,12 @@ class JsonUnionsInputAwsJson10Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart index 3b53097269..52b7c2be13 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.json_unions_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,9 @@ abstract class JsonUnionsOutput return _$JsonUnionsOutput._(contents: contents); } - factory JsonUnionsOutput.build( - [void Function(JsonUnionsOutputBuilder) updates]) = _$JsonUnionsOutput; + factory JsonUnionsOutput.build([ + void Function(JsonUnionsOutputBuilder) updates, + ]) = _$JsonUnionsOutput; const JsonUnionsOutput._(); @@ -27,11 +28,10 @@ abstract class JsonUnionsOutput factory JsonUnionsOutput.fromResponse( JsonUnionsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - JsonUnionsOutputAwsJson10Serializer() + JsonUnionsOutputAwsJson10Serializer(), ]; /// A union with a representative set of types for members. @@ -42,10 +42,7 @@ abstract class JsonUnionsOutput @override String toString() { final helper = newBuiltValueToStringHelper('JsonUnionsOutput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -55,18 +52,12 @@ class JsonUnionsOutputAwsJson10Serializer const JsonUnionsOutputAwsJson10Serializer() : super('JsonUnionsOutput'); @override - Iterable get types => const [ - JsonUnionsOutput, - _$JsonUnionsOutput, - ]; + Iterable get types => const [JsonUnionsOutput, _$JsonUnionsOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsOutput deserialize( @@ -85,10 +76,12 @@ class JsonUnionsOutputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -106,10 +99,12 @@ class JsonUnionsOutputAwsJson10Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart index 574650792d..45930e4056 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/json_unions_output.g.dart @@ -10,9 +10,9 @@ class _$JsonUnionsOutput extends JsonUnionsOutput { @override final MyUnion? contents; - factory _$JsonUnionsOutput( - [void Function(JsonUnionsOutputBuilder)? updates]) => - (new JsonUnionsOutputBuilder()..update(updates))._build(); + factory _$JsonUnionsOutput([ + void Function(JsonUnionsOutputBuilder)? updates, + ]) => (new JsonUnionsOutputBuilder()..update(updates))._build(); _$JsonUnionsOutput._({this.contents}) : super._(); diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart index 2a404812bd..b85594b052 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/my_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.my_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -40,13 +40,11 @@ sealed class MyUnion extends _i1.SmithyUnion { factory MyUnion.structureValue({String? hi}) => MyUnionStructureValue$(GreetingStruct(hi: hi)); - const factory MyUnion.sdkUnknown( - String name, - Object value, - ) = MyUnionSdkUnknown$; + const factory MyUnion.sdkUnknown(String name, Object value) = + MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - MyUnionAwsJson10Serializer() + MyUnionAwsJson10Serializer(), ]; String? get stringValue => null; @@ -70,79 +68,50 @@ sealed class MyUnion extends _i1.SmithyUnion { GreetingStruct? get structureValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - numberValue ?? - blobValue ?? - timestampValue ?? - enumValue ?? - intEnumValue ?? - listValue ?? - mapValue ?? - structureValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + numberValue ?? + blobValue ?? + timestampValue ?? + enumValue ?? + intEnumValue ?? + listValue ?? + mapValue ?? + structureValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'MyUnion'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (numberValue != null) { - helper.add( - r'numberValue', - numberValue, - ); + helper.add(r'numberValue', numberValue); } if (blobValue != null) { - helper.add( - r'blobValue', - blobValue, - ); + helper.add(r'blobValue', blobValue); } if (timestampValue != null) { - helper.add( - r'timestampValue', - timestampValue, - ); + helper.add(r'timestampValue', timestampValue); } if (enumValue != null) { - helper.add( - r'enumValue', - enumValue, - ); + helper.add(r'enumValue', enumValue); } if (intEnumValue != null) { - helper.add( - r'intEnumValue', - intEnumValue, - ); + helper.add(r'intEnumValue', intEnumValue); } if (listValue != null) { - helper.add( - r'listValue', - listValue, - ); + helper.add(r'listValue', listValue); } if (mapValue != null) { - helper.add( - r'mapValue', - mapValue, - ); + helper.add(r'mapValue', mapValue); } if (structureValue != null) { - helper.add( - r'structureValue', - structureValue, - ); + helper.add(r'structureValue', structureValue); } return helper.toString(); } @@ -232,7 +201,7 @@ final class MyUnionListValue$ extends MyUnion { final class MyUnionMapValue$ extends MyUnion { MyUnionMapValue$(Map mapValue) - : this._(_i3.BuiltMap(mapValue)); + : this._(_i3.BuiltMap(mapValue)); const MyUnionMapValue$._(this.mapValue) : super._(); @@ -254,10 +223,7 @@ final class MyUnionStructureValue$ extends MyUnion { } final class MyUnionSdkUnknown$ extends MyUnion { - const MyUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const MyUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -272,26 +238,23 @@ class MyUnionAwsJson10Serializer @override Iterable get types => const [ - MyUnion, - MyUnionStringValue$, - MyUnionBooleanValue$, - MyUnionNumberValue$, - MyUnionBlobValue$, - MyUnionTimestampValue$, - MyUnionEnumValue$, - MyUnionIntEnumValue$, - MyUnionListValue$, - MyUnionMapValue$, - MyUnionStructureValue$, - ]; + MyUnion, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionIntEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override MyUnion deserialize( @@ -302,69 +265,83 @@ class MyUnionAwsJson10Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return MyUnionStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return MyUnionBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return MyUnionBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'numberValue': - return MyUnionNumberValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return MyUnionNumberValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'blobValue': - return MyUnionBlobValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List)); + return MyUnionBlobValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List), + ); case 'timestampValue': - return MyUnionTimestampValue$((serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime)); + return MyUnionTimestampValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime), + ); case 'enumValue': - return MyUnionEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum)); + return MyUnionEnumValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum), + ); case 'intEnumValue': - return MyUnionIntEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum)); + return MyUnionIntEnumValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum), + ); case 'listValue': - return MyUnionListValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + return MyUnionListValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'mapValue': - return MyUnionMapValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + return MyUnionMapValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'structureValue': - return MyUnionStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct)); + return MyUnionStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct), + ); } - return MyUnion.sdkUnknown( - key, - value, - ); + return MyUnion.sdkUnknown(key, value); } @override @@ -377,54 +354,48 @@ class MyUnionAwsJson10Serializer object.name, switch (object) { MyUnionStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), MyUnionBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), MyUnionNumberValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), MyUnionBlobValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ), + value, + specifiedType: const FullType(_i2.Uint8List), + ), MyUnionTimestampValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(DateTime), - ), + value, + specifiedType: const FullType(DateTime), + ), MyUnionEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(FooEnum), - ), + value, + specifiedType: const FullType(FooEnum), + ), MyUnionIntEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(IntegerEnum), - ), + value, + specifiedType: const FullType(IntegerEnum), + ), MyUnionListValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), + ), MyUnionMapValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ), MyUnionStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(GreetingStruct), - ), + value, + specifiedType: const FullType(GreetingStruct), + ), MyUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart index 6db17386c2..c0a54642e3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputAwsJson10Serializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputAwsJson10Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override NoInputAndOutputOutput deserialize( @@ -78,6 +74,5 @@ class NoInputAndOutputOutputAwsJson10Serializer Serializers serializers, NoInputAndOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart index 48dd975b3e..90c59ae3ca 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsJson10Serializer() + OperationConfigAwsJson10Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsJson10Serializer const OperationConfigAwsJson10Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigAwsJson10Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigAwsJson10Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart index 79fedce2e9..5644af2389 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class PutWithContentEncodingInput _i2.AWSEquatable implements Built { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -36,11 +30,10 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputAwsJson10Serializer()]; + serializers = [PutWithContentEncodingInputAwsJson10Serializer()]; String? get encoding; String? get data; @@ -48,22 +41,14 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput getPayload() => this; @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class PutWithContentEncodingInput class PutWithContentEncodingInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson10Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override PutWithContentEncodingInput deserialize( @@ -104,15 +86,19 @@ class PutWithContentEncodingInputAwsJson10Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,18 +116,19 @@ class PutWithContentEncodingInputAwsJson10Serializer if (encoding != null) { result$ ..add('encoding') - ..add(serializers.serialize( - encoding, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + encoding, + specifiedType: const FullType(String), + ), + ); } if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart index 43d33e396f..ce25012d07 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart index b106610a22..7990a1b363 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsJson10Serializer() + RetryConfigAwsJson10Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsJson10Serializer const RetryConfigAwsJson10Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigAwsJson10Serializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -121,18 +105,19 @@ class RetryConfigAwsJson10Serializer if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart index 72bfdb4ce3..4ca8c54ed3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart index 5f6e0d0735..008cf6c80c 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart index f829c97228..4e5a593131 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsJson10Serializer() + S3ConfigAwsJson10Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsJson10Serializer const S3ConfigAwsJson10Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigAwsJson10Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigAwsJson10Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart index 1fe0070ed1..23d4cfcc68 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsJson10Serializer() + ScopedConfigAwsJson10Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsJson10Serializer const ScopedConfigAwsJson10Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigAwsJson10Serializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigAwsJson10Serializer :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart index 7933a9a02f..4c9ce3887d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.simple_scalar_properties_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,9 +26,9 @@ abstract class SimpleScalarPropertiesInput ); } - factory SimpleScalarPropertiesInput.build( - [void Function(SimpleScalarPropertiesInputBuilder) updates]) = - _$SimpleScalarPropertiesInput; + factory SimpleScalarPropertiesInput.build([ + void Function(SimpleScalarPropertiesInputBuilder) updates, + ]) = _$SimpleScalarPropertiesInput; const SimpleScalarPropertiesInput._(); @@ -36,11 +36,10 @@ abstract class SimpleScalarPropertiesInput SimpleScalarPropertiesInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputAwsJson10Serializer()]; + serializers = [SimpleScalarPropertiesInputAwsJson10Serializer()]; double? get floatValue; double? get doubleValue; @@ -48,22 +47,14 @@ abstract class SimpleScalarPropertiesInput SimpleScalarPropertiesInput getPayload() => this; @override - List get props => [ - floatValue, - doubleValue, - ]; + List get props => [floatValue, doubleValue]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInput') - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + final helper = + newBuiltValueToStringHelper('SimpleScalarPropertiesInput') + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -71,21 +62,18 @@ abstract class SimpleScalarPropertiesInput class SimpleScalarPropertiesInputAwsJson10Serializer extends _i1.StructuredSmithySerializer { const SimpleScalarPropertiesInputAwsJson10Serializer() - : super('SimpleScalarPropertiesInput'); + : super('SimpleScalarPropertiesInput'); @override Iterable get types => const [ - SimpleScalarPropertiesInput, - _$SimpleScalarPropertiesInput, - ]; + SimpleScalarPropertiesInput, + _$SimpleScalarPropertiesInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesInput deserialize( @@ -104,15 +92,19 @@ class SimpleScalarPropertiesInputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -130,18 +122,22 @@ class SimpleScalarPropertiesInputAwsJson10Serializer if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add('doubleValue') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart index 6d11f8ba03..28bd229d56 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_input.g.dart @@ -12,17 +12,17 @@ class _$SimpleScalarPropertiesInput extends SimpleScalarPropertiesInput { @override final double? doubleValue; - factory _$SimpleScalarPropertiesInput( - [void Function(SimpleScalarPropertiesInputBuilder)? updates]) => - (new SimpleScalarPropertiesInputBuilder()..update(updates))._build(); + factory _$SimpleScalarPropertiesInput([ + void Function(SimpleScalarPropertiesInputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputBuilder()..update(updates))._build(); _$SimpleScalarPropertiesInput._({this.floatValue, this.doubleValue}) - : super._(); + : super._(); @override SimpleScalarPropertiesInput rebuild( - void Function(SimpleScalarPropertiesInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputBuilder toBuilder() => @@ -48,8 +48,10 @@ class _$SimpleScalarPropertiesInput extends SimpleScalarPropertiesInput { class SimpleScalarPropertiesInputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInputBuilder + > { _$SimpleScalarPropertiesInput? _$v; double? _floatValue; @@ -87,9 +89,12 @@ class SimpleScalarPropertiesInputBuilder SimpleScalarPropertiesInput build() => _build(); _$SimpleScalarPropertiesInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInput._( - floatValue: floatValue, doubleValue: doubleValue); + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart index d120648815..298067de0f 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.model.simple_scalar_properties_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,11 +11,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'simple_scalar_properties_output.g.dart'; abstract class SimpleScalarPropertiesOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutputBuilder + > { factory SimpleScalarPropertiesOutput({ double? floatValue, double? doubleValue, @@ -26,9 +27,9 @@ abstract class SimpleScalarPropertiesOutput ); } - factory SimpleScalarPropertiesOutput.build( - [void Function(SimpleScalarPropertiesOutputBuilder) updates]) = - _$SimpleScalarPropertiesOutput; + factory SimpleScalarPropertiesOutput.build([ + void Function(SimpleScalarPropertiesOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesOutput; const SimpleScalarPropertiesOutput._(); @@ -36,31 +37,22 @@ abstract class SimpleScalarPropertiesOutput factory SimpleScalarPropertiesOutput.fromResponse( SimpleScalarPropertiesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [SimpleScalarPropertiesOutputAwsJson10Serializer()]; + serializers = [SimpleScalarPropertiesOutputAwsJson10Serializer()]; double? get floatValue; double? get doubleValue; @override - List get props => [ - floatValue, - doubleValue, - ]; + List get props => [floatValue, doubleValue]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesOutput') - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + final helper = + newBuiltValueToStringHelper('SimpleScalarPropertiesOutput') + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -68,21 +60,18 @@ abstract class SimpleScalarPropertiesOutput class SimpleScalarPropertiesOutputAwsJson10Serializer extends _i2.StructuredSmithySerializer { const SimpleScalarPropertiesOutputAwsJson10Serializer() - : super('SimpleScalarPropertiesOutput'); + : super('SimpleScalarPropertiesOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesOutput, - _$SimpleScalarPropertiesOutput, - ]; + SimpleScalarPropertiesOutput, + _$SimpleScalarPropertiesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesOutput deserialize( @@ -101,15 +90,19 @@ class SimpleScalarPropertiesOutputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -127,18 +120,22 @@ class SimpleScalarPropertiesOutputAwsJson10Serializer if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add('doubleValue') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart index efc670fb1b..5e50b8b962 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/model/simple_scalar_properties_output.g.dart @@ -12,17 +12,17 @@ class _$SimpleScalarPropertiesOutput extends SimpleScalarPropertiesOutput { @override final double? doubleValue; - factory _$SimpleScalarPropertiesOutput( - [void Function(SimpleScalarPropertiesOutputBuilder)? updates]) => - (new SimpleScalarPropertiesOutputBuilder()..update(updates))._build(); + factory _$SimpleScalarPropertiesOutput([ + void Function(SimpleScalarPropertiesOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesOutputBuilder()..update(updates))._build(); _$SimpleScalarPropertiesOutput._({this.floatValue, this.doubleValue}) - : super._(); + : super._(); @override SimpleScalarPropertiesOutput rebuild( - void Function(SimpleScalarPropertiesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesOutputBuilder toBuilder() => @@ -48,8 +48,10 @@ class _$SimpleScalarPropertiesOutput extends SimpleScalarPropertiesOutput { class SimpleScalarPropertiesOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutputBuilder + > { _$SimpleScalarPropertiesOutput? _$v; double? _floatValue; @@ -87,9 +89,12 @@ class SimpleScalarPropertiesOutputBuilder SimpleScalarPropertiesOutput build() => _build(); _$SimpleScalarPropertiesOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesOutput._( - floatValue: floatValue, doubleValue: doubleValue); + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart index c6320c626d..e20d4e859f 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,46 +14,53 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.EmptyInputAndEmptyOutput', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,11 +90,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +114,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart index c45157b090..6d4bb9bda1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,31 +18,29 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonRpc10.EndpointOperation', - ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithHeader('X-Amz-Target', 'JsonRpc10.EndpointOperation'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,19 +58,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -97,11 +92,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart index 86c17d3cde..b912041b49 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,53 @@ import 'package:aws_json1_0_v2/src/json_rpc_10/model/endpoint_with_host_label_op import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1.HttpOperation< - EndpointWithHostLabelOperationInput, - EndpointWithHostLabelOperationInput, - _i1.Unit, - _i1.Unit> { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInput, + _i1.Unit, + _i1.Unit + > { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EndpointWithHostLabelOperationInput, - EndpointWithHostLabelOperationInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + EndpointWithHostLabelOperationInput, + EndpointWithHostLabelOperationInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.EndpointWithHostLabelOperation', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,10 +86,7 @@ class EndpointWithHostLabelOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +111,7 @@ class EndpointWithHostLabelOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart index 65eeca9fc7..4231cbb2b9 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,44 +17,54 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. -class GreetingWithErrorsOperation extends _i1.HttpOperation< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.GreetingWithErrors', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -84,42 +94,32 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation< GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'FooError', - ), - _i1.ErrorKind.server, - FooError, - builder: FooError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json10', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json10', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json10', shape: 'FooError'), + _i1.ErrorKind.server, + FooError, + builder: FooError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json10', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -140,11 +140,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart index 84ee258603..f836f7974f 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,31 +18,32 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.HostWithPathOperation', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart index b67d4fb55f..e37de493fe 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/json_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.json_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,41 +14,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation uses unions for inputs and outputs. -class JsonUnionsOperation extends _i1.HttpOperation { +class JsonUnionsOperation + extends + _i1.HttpOperation< + JsonUnionsInput, + JsonUnionsInput, + JsonUnionsOutput, + JsonUnionsOutput + > { /// This operation uses unions for inputs and outputs. JsonUnionsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonUnionsInput, + JsonUnionsInput, + JsonUnionsOutput, + JsonUnionsOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonRpc10.JsonUnions', - ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithHeader('X-Amz-Target', 'JsonRpc10.JsonUnions'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,9 +76,9 @@ class JsonUnionsOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([JsonUnionsOutput? output]) => 200; @@ -77,11 +87,7 @@ class JsonUnionsOperation extends _i1.HttpOperation - JsonUnionsOutput.fromResponse( - payload, - response, - ); + ) => JsonUnionsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class JsonUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart index c8f324b72f..a914b89002 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,31 +20,32 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.NoInputAndNoOutput', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,18 +63,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +96,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart index 3402a799ec..1ee4743f90 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonRpc10.NoInputAndOutput', - ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithHeader('X-Amz-Target', 'JsonRpc10.NoInputAndOutput'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,9 +74,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -75,11 +85,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart index 72f12e9bc5..50de6803e1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,53 @@ import 'package:aws_json1_0_v2/src/json_rpc_10/model/put_with_content_encoding_i import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.PutWithContentEncoding', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,10 +90,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +115,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart index 13cd87461b..ba48e09677 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/lib/src/json_rpc_10/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_0_v2.json_rpc_10.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,46 +13,53 @@ import 'package:aws_json1_0_v2/src/json_rpc_10/model/simple_scalar_properties_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInput, - SimpleScalarPropertiesInput, - SimpleScalarPropertiesOutput, - SimpleScalarPropertiesOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInput, + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInput, - SimpleScalarPropertiesInput, - SimpleScalarPropertiesOutput, - SimpleScalarPropertiesOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInput, + SimpleScalarPropertiesInput, + SimpleScalarPropertiesOutput, + SimpleScalarPropertiesOutput + > + > + protocols = [ _i2.AwsJson1_0Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( 'X-Amz-Target', 'JsonRpc10.SimpleScalarProperties', ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +89,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesOutput buildOutput( SimpleScalarPropertiesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +113,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_0/pubspec.yaml b/packages/smithy/goldens/lib2/awsJson1_0/pubspec.yaml index d2336291a1..d087da08c6 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/pubspec.yaml +++ b/packages/smithy/goldens/lib2/awsJson1_0/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -17,7 +17,7 @@ dependencies: built_collection: ^5.0.0 shelf_router: ^1.1.0 shelf: ^1.4.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -39,6 +39,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart index 9e482747c5..ba26f38911 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,50 +13,44 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10EmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10EmptyInputAndEmptyOutput', - documentation: - 'Clients must always send an empty object if input is modeled.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.EmptyInputAndEmptyOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputAwsJson10Serializer() - ], - ); - }, - ); + _i1.test('AwsJson10EmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10EmptyInputAndEmptyOutput', + documentation: + 'Clients must always send an empty object if input is modeled.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.EmptyInputAndEmptyOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputAwsJson10Serializer(), + ], + ); + }); _i1.test( 'AwsJson10EmptyInputAndEmptyOutputSendJsonObject (response)', () async { @@ -87,7 +81,7 @@ void main() { code: 200, ), outputSerializers: const [ - EmptyInputAndEmptyOutputOutputAwsJson10Serializer() + EmptyInputAndEmptyOutputOutputAwsJson10Serializer(), ], ); }, @@ -97,18 +91,15 @@ void main() { class EmptyInputAndEmptyOutputInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -132,18 +123,15 @@ class EmptyInputAndEmptyOutputInputAwsJson10Serializer class EmptyInputAndEmptyOutputOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsJson10Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart index cec9e1d3b5..c57f582373 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10EndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10EndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('AwsJson10EndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10EndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart index ca2d3063d9..63403e9ac6 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,56 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10EndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10EndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{"label": "bar"}', - bodyMediaType: 'application/json', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EndpointWithHostLabelOperationInputAwsJson10Serializer() - ], - ); - }, - ); + _i1.test('AwsJson10EndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10EndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{"label": "bar"}', + bodyMediaType: 'application/json', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EndpointWithHostLabelOperationInputAwsJson10Serializer(), + ], + ); + }); } -class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i3 - .StructuredSmithySerializer { +class EndpointWithHostLabelOperationInputAwsJson10Serializer + extends + _i3.StructuredSmithySerializer { const EndpointWithHostLabelOperationInputAwsJson10Serializer() - : super('EndpointWithHostLabelOperationInput'); + : super('EndpointWithHostLabelOperationInput'); @override Iterable get types => const [EndpointWithHostLabelOperationInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override EndpointWithHostLabelOperationInput deserialize( @@ -88,10 +80,12 @@ class EndpointWithHostLabelOperationInputAwsJson10Serializer extends _i3 } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart index de3feed97c..bd8c1c93ad 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,178 +17,159 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10ComplexError (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10ComplexError', - documentation: 'Parses a complex error with no message member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.json10#ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorAwsJson10Serializer(), - ComplexNestedErrorDataAwsJson10Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson10EmptyComplexError (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10EmptyComplexError', - documentation: 'Parses a complex error with an empty body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.json10#ComplexError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorAwsJson10Serializer(), - ComplexNestedErrorDataAwsJson10Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingXAmznErrorType (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingXAmznErrorType', - documentation: - 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amzn-Errortype': 'FooError'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingXAmznErrorTypeWithUri (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingXAmznErrorTypeWithUri', - documentation: - 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Amzn-Errortype': - 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); + _i1.test('AwsJson10ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10ComplexError', + documentation: 'Parses a complex error with no message member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.json10#ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson10Serializer(), + ComplexNestedErrorDataAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10EmptyComplexError (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10EmptyComplexError', + documentation: 'Parses a complex error with an empty body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.json10#ComplexError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson10Serializer(), + ComplexNestedErrorDataAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10FooErrorUsingXAmznErrorType (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingXAmznErrorType', + documentation: + 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amzn-Errortype': 'FooError'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorUsingXAmznErrorTypeWithUri (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingXAmznErrorTypeWithUri', + documentation: + 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Errortype': + 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); _i1.test( 'AwsJson10FooErrorUsingXAmznErrorTypeWithUriAndNamespace (error)', () async { await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( operation: GreetingWithErrorsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), @@ -209,7 +190,7 @@ void main() { vendorParams: {}, headers: { 'X-Amzn-Errortype': - 'aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/' + 'aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/', }, forbidHeaders: [], requireHeaders: [], @@ -221,290 +202,252 @@ void main() { ); }, ); - _i1.test( - 'AwsJson10FooErrorUsingCode (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingCode', - documentation: - 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "code": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingCodeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingCodeAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "code": "aws.protocoltests.json10#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorUsingCodeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorUsingCodeUriAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "code": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorWithDunderType (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorWithDunderType', - documentation: 'Some services serialize errors using __type.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "__type": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorWithDunderTypeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorWithDunderTypeAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.json10#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10FooErrorWithDunderTypeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10FooErrorWithDunderTypeUriAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest< - GreetingWithErrorsInput, - GreetingWithErrorsInput, - GreetingWithErrorsOutput, - GreetingWithErrorsOutput, - InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10InvalidGreetingError', - documentation: 'Parses simple JSON errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.json10#InvalidGreeting",\n "Message": "Hi"\n}', - bodyMediaType: 'application/json', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingAwsJson10Serializer()], - ); - }, - ); + _i1.test('AwsJson10FooErrorUsingCode (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingCode', + documentation: + 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "code": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorUsingCodeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingCodeAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "code": "aws.protocoltests.json10#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorUsingCodeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorUsingCodeUriAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "code": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorWithDunderType (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorWithDunderType', + documentation: 'Some services serialize errors using __type.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "__type": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorWithDunderTypeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorWithDunderTypeAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.json10#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10FooErrorWithDunderTypeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10FooErrorWithDunderTypeUriAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.json10#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + GreetingWithErrorsInput, + GreetingWithErrorsInput, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10InvalidGreetingError', + documentation: 'Parses simple JSON errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.json10#InvalidGreeting",\n "Message": "Hi"\n}', + bodyMediaType: 'application/json', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingAwsJson10Serializer()], + ); + }); } class GreetingWithErrorsInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsInputAwsJson10Serializer() - : super('GreetingWithErrorsInput'); + : super('GreetingWithErrorsInput'); @override Iterable get types => const [GreetingWithErrorsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsInput deserialize( @@ -523,10 +466,12 @@ class GreetingWithErrorsInputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -546,18 +491,15 @@ class GreetingWithErrorsInputAwsJson10Serializer class GreetingWithErrorsOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson10Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -576,10 +518,12 @@ class GreetingWithErrorsOutputAwsJson10Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -605,11 +549,8 @@ class ComplexErrorAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexError deserialize( @@ -628,15 +569,20 @@ class ComplexErrorAwsJson10Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -656,18 +602,15 @@ class ComplexErrorAwsJson10Serializer class ComplexNestedErrorDataAwsJson10Serializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson10Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override ComplexNestedErrorData deserialize( @@ -686,10 +629,12 @@ class ComplexNestedErrorDataAwsJson10Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -715,11 +660,8 @@ class FooErrorAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override FooError deserialize( @@ -749,11 +691,8 @@ class InvalidGreetingAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override InvalidGreeting deserialize( @@ -772,10 +711,12 @@ class InvalidGreetingAwsJson10Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart index 83cc5d5109..aa1603fd24 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10HostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10HostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('AwsJson10HostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10HostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart index 81c2a94a25..edca84e576 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/json_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.json_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,808 +14,676 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10SerializeStringUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeStringUnionValue', - documentation: 'Serializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} + _i1.test('AwsJson10SerializeStringUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeStringUnionValue', + documentation: 'Serializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeBooleanUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeBooleanUnionValue', + documentation: 'Serializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeNumberUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeNumberUnionValue', + documentation: 'Serializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeBlobUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeBlobUnionValue', + documentation: 'Serializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeTimestampUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeTimestampUnionValue', + documentation: 'Serializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeEnumUnionValue', + documentation: 'Serializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeIntEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeIntEnumUnionValue', + documentation: 'Serializes an intEnum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'intEnumValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeListUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeListUnionValue', + documentation: 'Serializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeMapUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeMapUnionValue', + documentation: 'Serializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeBooleanUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeBooleanUnionValue', - documentation: 'Serializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10SerializeStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SerializeStructureUnionValue', + documentation: 'Serializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeStringUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeStringUnionValue', + documentation: 'Deserializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeBooleanUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeBooleanUnionValue', + documentation: 'Deserializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeNumberUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeNumberUnionValue', + documentation: 'Deserializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeBlobUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeBlobUnionValue', + documentation: 'Deserializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeTimestampUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeTimestampUnionValue', + documentation: 'Deserializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeEnumUnionValue', + documentation: 'Deserializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeIntEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeIntEnumUnionValue', + documentation: 'Deserializes an intEnum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'intEnumValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeListUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeListUnionValue', + documentation: 'Deserializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeNumberUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeNumberUnionValue', - documentation: 'Serializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeMapUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeMapUnionValue', + documentation: 'Deserializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); + _i1.test('AwsJson10DeserializeStructureUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10DeserializeStructureUnionValue', + documentation: 'Deserializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeBlobUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeBlobUnionValue', - documentation: 'Serializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeTimestampUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeTimestampUnionValue', - documentation: 'Serializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeEnumUnionValue', - documentation: 'Serializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeIntEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeIntEnumUnionValue', - documentation: 'Serializes an intEnum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'intEnumValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeListUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeListUnionValue', - documentation: 'Serializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeMapUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeMapUnionValue', - documentation: 'Serializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10SerializeStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SerializeStructureUnionValue', - documentation: 'Serializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonUnionsInputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeStringUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeStringUnionValue', - documentation: 'Deserializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeBooleanUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeBooleanUnionValue', - documentation: 'Deserializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeNumberUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeNumberUnionValue', - documentation: 'Deserializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeBlobUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeBlobUnionValue', - documentation: 'Deserializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeTimestampUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeTimestampUnionValue', - documentation: 'Deserializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeEnumUnionValue', - documentation: 'Deserializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeIntEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeIntEnumUnionValue', - documentation: 'Deserializes an intEnum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "contents": {\n "intEnumValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'intEnumValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeListUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeListUnionValue', - documentation: 'Deserializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeMapUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeMapUnionValue', - documentation: 'Deserializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson10DeserializeStructureUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10DeserializeStructureUnionValue', - documentation: 'Deserializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonUnionsOutputAwsJson10Serializer()], + ); + }); } class JsonUnionsInputAwsJson10Serializer @@ -827,11 +695,8 @@ class JsonUnionsInputAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsInput deserialize( @@ -850,10 +715,12 @@ class JsonUnionsInputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -879,11 +746,8 @@ class JsonUnionsOutputAwsJson10Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override JsonUnionsOutput deserialize( @@ -902,10 +766,12 @@ class JsonUnionsOutputAwsJson10Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart index f957dbedd9..672241e6f1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,145 +10,121 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10MustAlwaysSendEmptyJsonPayload (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10MustAlwaysSendEmptyJsonPayload', - documentation: - 'Clients must always send an empty JSON object payload for\noperations with no input (that is, `{}`). While AWS service\nimplementations support requests with no payload or requests\nthat send `{}`, always sending `{}` from the client is\npreferred for forward compatibility in case input is ever\nadded to an operation.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.NoInputAndNoOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10HandlesEmptyOutputShape (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10HandlesEmptyOutputShape', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10HandlesUnexpectedJsonOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10HandlesUnexpectedJsonOutput', - documentation: - 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "foo": true\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10ServiceRespondsWithNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10ServiceRespondsWithNoPayload', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('AwsJson10MustAlwaysSendEmptyJsonPayload (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10MustAlwaysSendEmptyJsonPayload', + documentation: + 'Clients must always send an empty JSON object payload for\noperations with no input (that is, `{}`). While AWS service\nimplementations support requests with no payload or requests\nthat send `{}`, always sending `{}` from the client is\npreferred for forward compatibility in case input is ever\nadded to an operation.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.NoInputAndNoOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('AwsJson10HandlesEmptyOutputShape (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10HandlesEmptyOutputShape', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('AwsJson10HandlesUnexpectedJsonOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10HandlesUnexpectedJsonOutput', + documentation: + 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "foo": true\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('AwsJson10ServiceRespondsWithNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10ServiceRespondsWithNoPayload', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart index d625acc2b4..1476b04a32 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,98 +12,83 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10NoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10NoInputAndOutput', - documentation: - 'A client should always send and empty JSON object payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.NoInputAndOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'AwsJson10NoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10NoInputAndOutput', - documentation: - 'Empty output always serializes an empty object payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputAwsJson10Serializer()], - ); - }, - ); + _i1.test('AwsJson10NoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10NoInputAndOutput', + documentation: + 'A client should always send and empty JSON object payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.NoInputAndOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('AwsJson10NoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10NoInputAndOutput', + documentation: + 'Empty output always serializes an empty object payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputAwsJson10Serializer()], + ); + }); } class NoInputAndOutputOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputAwsJson10Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart index 888695f4bc..eaee783b88 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,107 +12,111 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_awsJson1_0 (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_awsJson1_0', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', + _i1.test( + 'SDKAppliedContentEncoding_awsJson1_0 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson10Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0 (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_0 protocol.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_awsJson1_0', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_0', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson10Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputAwsJson10Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_0 protocol.\n', + protocol: _i3.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_0', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputAwsJson10Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson10Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override PutWithContentEncodingInput deserialize( @@ -131,15 +135,19 @@ class PutWithContentEncodingInputAwsJson10Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart index 200b594f6b..ef869cc0c9 100644 --- a/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_0/test/json_rpc_10/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_0_v2.json_rpc_10.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,276 +13,219 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson10SupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson10SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.0', - 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsNaNFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesOutputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesOutputAwsJson10Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson10SupportsNegativeInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson10SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.0'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesOutputAwsJson10Serializer() - ], - ); - }, - ); + _i1.test('AwsJson10SupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson10SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.0', + 'X-Amz-Target': 'JsonRpc10.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsNaNFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesOutputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesOutputAwsJson10Serializer(), + ], + ); + }); + _i1.test('AwsJson10SupportsNegativeInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson10SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.0'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesOutputAwsJson10Serializer(), + ], + ); + }); } class SimpleScalarPropertiesInputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputAwsJson10Serializer() - : super('SimpleScalarPropertiesInput'); + : super('SimpleScalarPropertiesInput'); @override Iterable get types => const [SimpleScalarPropertiesInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesInput deserialize( @@ -301,15 +244,19 @@ class SimpleScalarPropertiesInputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -329,18 +276,15 @@ class SimpleScalarPropertiesInputAwsJson10Serializer class SimpleScalarPropertiesOutputAwsJson10Serializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesOutputAwsJson10Serializer() - : super('SimpleScalarPropertiesOutput'); + : super('SimpleScalarPropertiesOutput'); @override Iterable get types => const [SimpleScalarPropertiesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_0', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_0'), + ]; @override SimpleScalarPropertiesOutput deserialize( @@ -359,15 +303,19 @@ class SimpleScalarPropertiesOutputAwsJson10Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/json_protocol.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/json_protocol.dart index af8fd4b2da..90cea85e26 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/json_protocol.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/json_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Sample Json 1.1 Protocol Service library aws_json1_1_v2.json_protocol; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/machine_learning.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/machine_learning.dart index c19d2ddeab..a873ee7b41 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/machine_learning.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/machine_learning.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon Machine Learning library aws_json1_1_v2.machine_learning; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart index bc309f9d68..c5a66248b7 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Json Protocol'; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/serializers.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/serializers.dart index aa5516c925..f024626680 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -84,126 +84,52 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ) - ], - ): _i2.ListBuilder<_i2.BuiltMap>.new, - const FullType( - _i2.BuiltList, - [FullType(SimpleStruct)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ], - ): _i2.MapBuilder>.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(SimpleStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(KitchenSink)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(KitchenSink), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType.nullable(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(IntegerEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(IntegerEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(IntegerEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltMap, [FullType(String), FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltMap>.new, + const FullType(_i2.BuiltList, [FullType(SimpleStruct)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(_i2.BuiltMap, [FullType(String), FullType(String)]), + ]): + _i2.MapBuilder>.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(SimpleStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(KitchenSink)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(KitchenSink)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType.nullable(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart index 5a7716e1af..eddceca833 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -46,12 +46,12 @@ class JsonProtocolClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -75,10 +75,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation emptyOperation({ @@ -91,10 +88,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation endpointOperation({ @@ -107,10 +101,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation endpointWithHostLabelOperation( @@ -124,10 +115,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation fractionalSeconds({ @@ -140,10 +128,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. @@ -157,10 +142,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } _i3.SmithyOperation hostWithPathOperation({ @@ -173,10 +155,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i3.Unit(), - client: client ?? _client, - ); + ).run(const _i3.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -191,10 +170,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes intEnums as top level properties, in lists, sets, and maps. @@ -209,10 +185,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation uses unions for inputs and outputs. @@ -227,10 +200,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation kitchenSinkOperation( @@ -244,10 +214,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation nullOperation( @@ -261,14 +228,11 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation - operationWithOptionalInputOutput( + operationWithOptionalInputOutput( OperationWithOptionalInputOutputInput input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -279,15 +243,12 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes an inline document as part of the payload. _i3.SmithyOperation - putAndGetInlineDocuments( + putAndGetInlineDocuments( PutAndGetInlineDocumentsInputOutput input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -298,10 +259,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation putWithContentEncoding( @@ -315,10 +273,7 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation simpleScalarProperties( @@ -332,9 +287,6 @@ class JsonProtocolClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart index 47b34efb2f..688b8b2745 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/json_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,30 +44,27 @@ abstract class JsonProtocolServerBase extends _i1.HttpServerBase { router.add( 'POST', '/', - _i1.RpcRouter( - 'X-Amz-Target', - { - 'JsonProtocol.DatetimeOffsets': service.datetimeOffsets, - 'JsonProtocol.EmptyOperation': service.emptyOperation, - 'JsonProtocol.EndpointOperation': service.endpointOperation, - 'JsonProtocol.EndpointWithHostLabelOperation': - service.endpointWithHostLabelOperation, - 'JsonProtocol.FractionalSeconds': service.fractionalSeconds, - 'JsonProtocol.GreetingWithErrors': service.greetingWithErrors, - 'JsonProtocol.HostWithPathOperation': service.hostWithPathOperation, - 'JsonProtocol.JsonEnums': service.jsonEnums, - 'JsonProtocol.JsonIntEnums': service.jsonIntEnums, - 'JsonProtocol.JsonUnions': service.jsonUnions, - 'JsonProtocol.KitchenSinkOperation': service.kitchenSinkOperation, - 'JsonProtocol.NullOperation': service.nullOperation, - 'JsonProtocol.OperationWithOptionalInputOutput': - service.operationWithOptionalInputOutput, - 'JsonProtocol.PutAndGetInlineDocuments': - service.putAndGetInlineDocuments, - 'JsonProtocol.PutWithContentEncoding': service.putWithContentEncoding, - 'JsonProtocol.SimpleScalarProperties': service.simpleScalarProperties, - }, - ), + _i1.RpcRouter('X-Amz-Target', { + 'JsonProtocol.DatetimeOffsets': service.datetimeOffsets, + 'JsonProtocol.EmptyOperation': service.emptyOperation, + 'JsonProtocol.EndpointOperation': service.endpointOperation, + 'JsonProtocol.EndpointWithHostLabelOperation': + service.endpointWithHostLabelOperation, + 'JsonProtocol.FractionalSeconds': service.fractionalSeconds, + 'JsonProtocol.GreetingWithErrors': service.greetingWithErrors, + 'JsonProtocol.HostWithPathOperation': service.hostWithPathOperation, + 'JsonProtocol.JsonEnums': service.jsonEnums, + 'JsonProtocol.JsonIntEnums': service.jsonIntEnums, + 'JsonProtocol.JsonUnions': service.jsonUnions, + 'JsonProtocol.KitchenSinkOperation': service.kitchenSinkOperation, + 'JsonProtocol.NullOperation': service.nullOperation, + 'JsonProtocol.OperationWithOptionalInputOutput': + service.operationWithOptionalInputOutput, + 'JsonProtocol.PutAndGetInlineDocuments': + service.putAndGetInlineDocuments, + 'JsonProtocol.PutWithContentEncoding': service.putWithContentEncoding, + 'JsonProtocol.SimpleScalarProperties': service.simpleScalarProperties, + }), ); return router; }(); @@ -76,14 +73,8 @@ abstract class JsonProtocolServerBase extends _i1.HttpServerBase { _i1.Unit input, _i1.Context context, ); - _i3.Future<_i1.Unit> emptyOperation( - _i1.Unit input, - _i1.Context context, - ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> emptyOperation(_i1.Unit input, _i1.Context context); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelOperation( HostLabelInput input, _i1.Context context, @@ -121,7 +112,7 @@ abstract class JsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - operationWithOptionalInputOutput( + operationWithOptionalInputOutput( OperationWithOptionalInputOutputInput input, _i1.Context context, ); @@ -146,129 +137,163 @@ class _JsonProtocolServer extends _i1.HttpServer { @override final JsonProtocolServerBase service; - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput> _datetimeOffsetsProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + _datetimeOffsetsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _emptyOperationProtocol = _i2.AwsJson1_1Protocol( + _emptyOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.AwsJson1_1Protocol( + _endpointOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + HostLabelInput, + HostLabelInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput> _fractionalSecondsProtocol = - _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + _fractionalSecondsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput> _greetingWithErrorsProtocol = - _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _hostWithPathOperationProtocol = _i2.AwsJson1_1Protocol( + _hostWithPathOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput> _jsonEnumsProtocol = _i2.AwsJson1_1Protocol( + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + _jsonEnumsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput> _jsonIntEnumsProtocol = _i2.AwsJson1_1Protocol( + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + _jsonIntEnumsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - UnionInputOutput, - UnionInputOutput, - UnionInputOutput, - UnionInputOutput> _jsonUnionsProtocol = _i2.AwsJson1_1Protocol( + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + _jsonUnionsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _kitchenSinkOperationProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + KitchenSink, + KitchenSink, + KitchenSink, + KitchenSink + > + _kitchenSinkOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput> _nullOperationProtocol = _i2.AwsJson1_1Protocol( + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput + > + _nullOperationProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputOutput, - OperationWithOptionalInputOutputOutput> - _operationWithOptionalInputOutputProtocol = _i2.AwsJson1_1Protocol( + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutput + > + _operationWithOptionalInputOutputProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput> - _putAndGetInlineDocumentsProtocol = _i2.AwsJson1_1Protocol( + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput + > + _putAndGetInlineDocumentsProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.AwsJson1_1Protocol( + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.AwsJson1_1Protocol( + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -281,21 +306,18 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _datetimeOffsetsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.datetimeOffsets( - input, - context, - ); + final output = await service.datetimeOffsets(input, context); const statusCode = 200; final body = await _datetimeOffsetsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DatetimeOffsetsOutput, - [FullType(DatetimeOffsetsOutput)], - ), + specifiedType: const FullType(DatetimeOffsetsOutput, [ + FullType(DatetimeOffsetsOutput), + ]), ); return _i4.Response( statusCode, @@ -303,10 +325,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -316,22 +335,18 @@ class _JsonProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _emptyOperationProtocol.contentType; try { - final payload = (await _emptyOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _emptyOperationProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.emptyOperation( - input, - context, - ); + final output = await service.emptyOperation(input, context); const statusCode = 200; final body = await _emptyOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -339,10 +354,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -354,21 +366,16 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -376,31 +383,26 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelInput), - ) as HostLabelInput); - final input = HostLabelInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelInput), + ) + as HostLabelInput); + final input = HostLabelInput.fromRequest(payload, awsRequest, labels: {}); final output = await service.endpointWithHostLabelOperation( input, context, @@ -408,22 +410,16 @@ class _JsonProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -435,21 +431,18 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _fractionalSecondsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.fractionalSeconds( - input, - context, - ); + final output = await service.fractionalSeconds(input, context); const statusCode = 200; final body = await _fractionalSecondsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FractionalSecondsOutput, - [FullType(FractionalSecondsOutput)], - ), + specifiedType: const FullType(FractionalSecondsOutput, [ + FullType(FractionalSecondsOutput), + ]), ); return _i4.Response( statusCode, @@ -457,10 +450,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -472,21 +462,18 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutput)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutput), + ]), ); return _i4.Response( statusCode, @@ -496,10 +483,7 @@ class _JsonProtocolServer extends _i1.HttpServer { } on ComplexError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexError)], - ), + specifiedType: const FullType(ComplexError, [FullType(ComplexError)]), ); const statusCode = 400; return _i4.Response( @@ -510,10 +494,7 @@ class _JsonProtocolServer extends _i1.HttpServer { } on FooError catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - FooError, - [FullType(FooError)], - ), + specifiedType: const FullType(FooError, [FullType(FooError)]), ); const statusCode = 500; return _i4.Response( @@ -524,10 +505,9 @@ class _JsonProtocolServer extends _i1.HttpServer { } on InvalidGreeting catch (e) { final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -536,10 +516,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -551,33 +528,25 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _hostWithPathOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.hostWithPathOperation( - input, - context, - ); + final output = await service.hostWithPathOperation(input, context); const statusCode = 200; - final body = - await _hostWithPathOperationProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _hostWithPathOperationProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -586,26 +555,24 @@ class _JsonProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonEnumsProtocol.contentType; try { - final payload = (await _jsonEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonEnumsInputOutput), - ) as JsonEnumsInputOutput); + final payload = + (await _jsonEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonEnumsInputOutput), + ) + as JsonEnumsInputOutput); final input = JsonEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonEnums( - input, - context, - ); + final output = await service.jsonEnums(input, context); const statusCode = 200; final body = await _jsonEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonEnumsInputOutput, - [FullType(JsonEnumsInputOutput)], - ), + specifiedType: const FullType(JsonEnumsInputOutput, [ + FullType(JsonEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -613,10 +580,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -626,26 +590,24 @@ class _JsonProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _jsonIntEnumsProtocol.contentType; try { - final payload = (await _jsonIntEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonIntEnumsInputOutput), - ) as JsonIntEnumsInputOutput); + final payload = + (await _jsonIntEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonIntEnumsInputOutput), + ) + as JsonIntEnumsInputOutput); final input = JsonIntEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonIntEnums( - input, - context, - ); + final output = await service.jsonIntEnums(input, context); const statusCode = 200; final body = await _jsonIntEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonIntEnumsInputOutput, - [FullType(JsonIntEnumsInputOutput)], - ), + specifiedType: const FullType(JsonIntEnumsInputOutput, [ + FullType(JsonIntEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -653,10 +615,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -665,26 +624,24 @@ class _JsonProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonUnionsProtocol.contentType; try { - final payload = (await _jsonUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(UnionInputOutput), - ) as UnionInputOutput); + final payload = + (await _jsonUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(UnionInputOutput), + ) + as UnionInputOutput); final input = UnionInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonUnions( - input, - context, - ); + final output = await service.jsonUnions(input, context); const statusCode = 200; final body = await _jsonUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - UnionInputOutput, - [FullType(UnionInputOutput)], - ), + specifiedType: const FullType(UnionInputOutput, [ + FullType(UnionInputOutput), + ]), ); return _i4.Response( statusCode, @@ -692,10 +649,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -707,25 +661,16 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _kitchenSinkOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink); - final input = KitchenSink.fromRequest( - payload, - awsRequest, - labels: {}, - ); - final output = await service.kitchenSinkOperation( - input, - context, - ); + await awsRequest.bodyBytes, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink); + final input = KitchenSink.fromRequest(payload, awsRequest, labels: {}); + final output = await service.kitchenSinkOperation(input, context); const statusCode = 200; final body = await _kitchenSinkOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - KitchenSink, - [FullType(KitchenSink)], - ), + specifiedType: const FullType(KitchenSink, [FullType(KitchenSink)]), ); return _i4.Response( statusCode, @@ -735,10 +680,9 @@ class _JsonProtocolServer extends _i1.HttpServer { } on ErrorWithMembers catch (e) { final body = _kitchenSinkOperationProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ErrorWithMembers, - [FullType(ErrorWithMembers)], - ), + specifiedType: const FullType(ErrorWithMembers, [ + FullType(ErrorWithMembers), + ]), ); const statusCode = 400; return _i4.Response( @@ -749,10 +693,9 @@ class _JsonProtocolServer extends _i1.HttpServer { } on ErrorWithoutMembers catch (e) { final body = _kitchenSinkOperationProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ErrorWithoutMembers, - [FullType(ErrorWithoutMembers)], - ), + specifiedType: const FullType(ErrorWithoutMembers, [ + FullType(ErrorWithoutMembers), + ]), ); const statusCode = 500; return _i4.Response( @@ -761,10 +704,7 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -774,26 +714,24 @@ class _JsonProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _nullOperationProtocol.contentType; try { - final payload = (await _nullOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullOperationInputOutput), - ) as NullOperationInputOutput); + final payload = + (await _nullOperationProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(NullOperationInputOutput), + ) + as NullOperationInputOutput); final input = NullOperationInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullOperation( - input, - context, - ); + final output = await service.nullOperation(input, context); const statusCode = 200; final body = await _nullOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NullOperationInputOutput, - [FullType(NullOperationInputOutput)], - ), + specifiedType: const FullType(NullOperationInputOutput, [ + FullType(NullOperationInputOutput), + ]), ); return _i4.Response( statusCode, @@ -801,26 +739,27 @@ class _JsonProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> operationWithOptionalInputOutput( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _operationWithOptionalInputOutputProtocol.contentType; try { - final payload = (await _operationWithOptionalInputOutputProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(OperationWithOptionalInputOutputInput), - ) as OperationWithOptionalInputOutputInput); + final payload = + (await _operationWithOptionalInputOutputProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + OperationWithOptionalInputOutputInput, + ), + ) + as OperationWithOptionalInputOutputInput); final input = OperationWithOptionalInputOutputInput.fromRequest( payload, awsRequest, @@ -834,22 +773,19 @@ class _JsonProtocolServer extends _i1.HttpServer { final body = await _operationWithOptionalInputOutputProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - OperationWithOptionalInputOutputOutput, - [FullType(OperationWithOptionalInputOutputOutput)], - ), - ); + output, + specifiedType: const FullType( + OperationWithOptionalInputOutputOutput, + [FullType(OperationWithOptionalInputOutputOutput)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -861,37 +797,33 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _putAndGetInlineDocumentsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutAndGetInlineDocumentsInputOutput), - ) as PutAndGetInlineDocumentsInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + PutAndGetInlineDocumentsInputOutput, + ), + ) + as PutAndGetInlineDocumentsInputOutput); final input = PutAndGetInlineDocumentsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putAndGetInlineDocuments( - input, - context, - ); + final output = await service.putAndGetInlineDocuments(input, context); const statusCode = 200; - final body = - await _putAndGetInlineDocumentsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - PutAndGetInlineDocumentsInputOutput, - [FullType(PutAndGetInlineDocumentsInputOutput)], - ), - ); + final body = await _putAndGetInlineDocumentsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(PutAndGetInlineDocumentsInputOutput, [ + FullType(PutAndGetInlineDocumentsInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -903,37 +835,29 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInput), - ) as PutWithContentEncodingInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PutWithContentEncodingInput), + ) + as PutWithContentEncodingInput); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -945,37 +869,33 @@ class _JsonProtocolServer extends _i1.HttpServer { try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutput), - ) as SimpleScalarPropertiesInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutput, + ), + ) + as SimpleScalarPropertiesInputOutput); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutput)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.dart index e57275ae3c..e4c3e9d57e 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsJson11Serializer() + AwsConfigAwsJson11Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsJson11Serializer const AwsConfigAwsJson11Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigAwsJson11Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigAwsJson11Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.dart index e7edd283d9..404dd45fb1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsJson11Serializer() + ClientConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsJson11Serializer const ClientConfigAwsJson11Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -193,63 +183,71 @@ class ClientConfigAwsJson11Serializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.dart index 2ab08584cd..f448ae22a5 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorAwsJson11Serializer() + ComplexErrorAwsJson11Serializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.json', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorAwsJson11Serializer const ComplexErrorAwsJson11Serializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexError deserialize( @@ -127,15 +106,20 @@ class ComplexErrorAwsJson11Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -153,18 +137,22 @@ class ComplexErrorAwsJson11Serializer if (topLevel != null) { result$ ..add('TopLevel') - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add('Nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart index bd9635757b..4e27ef5e34 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson11Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataAwsJson11Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +94,9 @@ class ComplexNestedErrorDataAwsJson11Serializer if (foo != null) { result$ ..add('Foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart index 92b3b55dab..b5883d04ed 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputAwsJson11Serializer() + DatetimeOffsetsOutputAwsJson11Serializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputAwsJson11Serializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsJson11Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -106,10 +99,9 @@ class DatetimeOffsetsOutputAwsJson11Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart index 0a9779a112..0b72b40511 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/empty_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.empty_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class EmptyStruct const EmptyStruct._(); static const List<_i2.SmithySerializer> serializers = [ - EmptyStructAwsJson11Serializer() + EmptyStructAwsJson11Serializer(), ]; @override @@ -41,18 +41,12 @@ class EmptyStructAwsJson11Serializer const EmptyStructAwsJson11Serializer() : super('EmptyStruct'); @override - Iterable get types => const [ - EmptyStruct, - _$EmptyStruct, - ]; + Iterable get types => const [EmptyStruct, _$EmptyStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EmptyStruct deserialize( @@ -68,6 +62,5 @@ class EmptyStructAwsJson11Serializer Serializers serializers, EmptyStruct object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.dart index 8219761b39..9ac3489298 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsJson11Serializer() + EnvironmentConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsJson11Serializer const EnvironmentConfigAwsJson11Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigAwsJson11Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigAwsJson11Serializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart index 135cb54b2e..fc53f738a3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.error_with_members; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -37,8 +37,9 @@ abstract class ErrorWithMembers ); } - factory ErrorWithMembers.build( - [void Function(ErrorWithMembersBuilder) updates]) = _$ErrorWithMembers; + factory ErrorWithMembers.build([ + void Function(ErrorWithMembersBuilder) updates, + ]) = _$ErrorWithMembers; const ErrorWithMembers._(); @@ -46,14 +47,13 @@ abstract class ErrorWithMembers factory ErrorWithMembers.fromResponse( ErrorWithMembers payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ErrorWithMembersAwsJson11Serializer() + ErrorWithMembersAwsJson11Serializer(), ]; String? get code; @@ -68,9 +68,9 @@ abstract class ErrorWithMembers String? get stringField; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithMembers', - ); + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithMembers', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -86,46 +86,26 @@ abstract class ErrorWithMembers @override List get props => [ - code, - complexData, - integerField, - listField, - mapField, - message, - stringField, - ]; + code, + complexData, + integerField, + listField, + mapField, + message, + stringField, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ErrorWithMembers') - ..add( - 'code', - code, - ) - ..add( - 'complexData', - complexData, - ) - ..add( - 'integerField', - integerField, - ) - ..add( - 'listField', - listField, - ) - ..add( - 'mapField', - mapField, - ) - ..add( - 'message', - message, - ) - ..add( - 'stringField', - stringField, - ); + final helper = + newBuiltValueToStringHelper('ErrorWithMembers') + ..add('code', code) + ..add('complexData', complexData) + ..add('integerField', integerField) + ..add('listField', listField) + ..add('mapField', mapField) + ..add('message', message) + ..add('stringField', stringField); return helper.toString(); } } @@ -135,18 +115,12 @@ class ErrorWithMembersAwsJson11Serializer const ErrorWithMembersAwsJson11Serializer() : super('ErrorWithMembers'); @override - Iterable get types => const [ - ErrorWithMembers, - _$ErrorWithMembers, - ]; + Iterable get types => const [ErrorWithMembers, _$ErrorWithMembers]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithMembers deserialize( @@ -165,49 +139,62 @@ class ErrorWithMembersAwsJson11Serializer } switch (key) { case 'Code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ComplexData': - result.complexData.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.complexData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'IntegerField': - result.integerField = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerField = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ListField': - result.listField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'MapField': - result.mapField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.mapField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StringField': - result.stringField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -228,72 +215,74 @@ class ErrorWithMembersAwsJson11Serializer :listField, :mapField, :message, - :stringField + :stringField, ) = object; if (code != null) { result$ ..add('Code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (complexData != null) { result$ ..add('ComplexData') - ..add(serializers.serialize( - complexData, - specifiedType: const FullType(KitchenSink), - )); + ..add( + serializers.serialize( + complexData, + specifiedType: const FullType(KitchenSink), + ), + ); } if (integerField != null) { result$ ..add('IntegerField') - ..add(serializers.serialize( - integerField, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerField, + specifiedType: const FullType(int), + ), + ); } if (listField != null) { result$ ..add('ListField') - ..add(serializers.serialize( - listField, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + listField, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (mapField != null) { result$ ..add('MapField') - ..add(serializers.serialize( - mapField, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + mapField, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (stringField != null) { result$ ..add('StringField') - ..add(serializers.serialize( - stringField, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringField, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart index fa81e7bf49..55a9e887ff 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_with_members.g.dart @@ -26,21 +26,21 @@ class _$ErrorWithMembers extends ErrorWithMembers { @override final Map? headers; - factory _$ErrorWithMembers( - [void Function(ErrorWithMembersBuilder)? updates]) => - (new ErrorWithMembersBuilder()..update(updates))._build(); - - _$ErrorWithMembers._( - {this.code, - this.complexData, - this.integerField, - this.listField, - this.mapField, - this.message, - this.stringField, - this.statusCode, - this.headers}) - : super._(); + factory _$ErrorWithMembers([ + void Function(ErrorWithMembersBuilder)? updates, + ]) => (new ErrorWithMembersBuilder()..update(updates))._build(); + + _$ErrorWithMembers._({ + this.code, + this.complexData, + this.integerField, + this.listField, + this.mapField, + this.message, + this.stringField, + this.statusCode, + this.headers, + }) : super._(); @override ErrorWithMembers rebuild(void Function(ErrorWithMembersBuilder) updates) => @@ -160,17 +160,19 @@ class ErrorWithMembersBuilder _$ErrorWithMembers _build() { _$ErrorWithMembers _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ErrorWithMembers._( - code: code, - complexData: _complexData?.build(), - integerField: integerField, - listField: _listField?.build(), - mapField: _mapField?.build(), - message: message, - stringField: stringField, - statusCode: statusCode, - headers: headers); + code: code, + complexData: _complexData?.build(), + integerField: integerField, + listField: _listField?.build(), + mapField: _mapField?.build(), + message: message, + stringField: stringField, + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -183,7 +185,10 @@ class ErrorWithMembersBuilder _mapField?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ErrorWithMembers', _$failedField, e.toString()); + r'ErrorWithMembers', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart index 839e518e6c..9f531eb2b7 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.error_without_members; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class ErrorWithoutMembers return _$ErrorWithoutMembers._(); } - factory ErrorWithoutMembers.build( - [void Function(ErrorWithoutMembersBuilder) updates]) = - _$ErrorWithoutMembers; + factory ErrorWithoutMembers.build([ + void Function(ErrorWithoutMembersBuilder) updates, + ]) = _$ErrorWithoutMembers; const ErrorWithoutMembers._(); @@ -30,21 +30,20 @@ abstract class ErrorWithoutMembers factory ErrorWithoutMembers.fromResponse( ErrorWithoutMembers payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ErrorWithoutMembersAwsJson11Serializer() + ErrorWithoutMembersAwsJson11Serializer(), ]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithoutMembers', - ); + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithoutMembers', + ); @override String? get message => null; @@ -77,17 +76,14 @@ class ErrorWithoutMembersAwsJson11Serializer @override Iterable get types => const [ - ErrorWithoutMembers, - _$ErrorWithoutMembers, - ]; + ErrorWithoutMembers, + _$ErrorWithoutMembers, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithoutMembers deserialize( @@ -103,6 +99,5 @@ class ErrorWithoutMembersAwsJson11Serializer Serializers serializers, ErrorWithoutMembers object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart index dbd2ad2c55..436c1989b1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/error_without_members.g.dart @@ -12,16 +12,16 @@ class _$ErrorWithoutMembers extends ErrorWithoutMembers { @override final Map? headers; - factory _$ErrorWithoutMembers( - [void Function(ErrorWithoutMembersBuilder)? updates]) => - (new ErrorWithoutMembersBuilder()..update(updates))._build(); + factory _$ErrorWithoutMembers([ + void Function(ErrorWithoutMembersBuilder)? updates, + ]) => (new ErrorWithoutMembersBuilder()..update(updates))._build(); _$ErrorWithoutMembers._({this.statusCode, this.headers}) : super._(); @override ErrorWithoutMembers rebuild( - void Function(ErrorWithoutMembersBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ErrorWithoutMembersBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ErrorWithoutMembersBuilder toBuilder() => @@ -78,7 +78,8 @@ class ErrorWithoutMembersBuilder ErrorWithoutMembers build() => _build(); _$ErrorWithoutMembers _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ErrorWithoutMembers._(statusCode: statusCode, headers: headers); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart index 205027b5d0..d367b9bdf7 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsJson11Serializer() + FileConfigSettingsAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsJson11Serializer const FileConfigSettingsAwsJson11Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -194,63 +183,71 @@ class FileConfigSettingsAwsJson11Serializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart index 16f5878ba4..9b3e26087d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_error.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_error.dart index 81d1821347..23015a66da 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_error.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/foo_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.foo_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,21 +31,18 @@ abstract class FooError factory FooError.fromResponse( FooError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - FooErrorAwsJson11Serializer() + FooErrorAwsJson11Serializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'FooError', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'aws.protocoltests.json', shape: 'FooError'); @override String? get message => null; @@ -77,18 +74,12 @@ class FooErrorAwsJson11Serializer const FooErrorAwsJson11Serializer() : super('FooError'); @override - Iterable get types => const [ - FooError, - _$FooError, - ]; + Iterable get types => const [FooError, _$FooError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FooError deserialize( @@ -104,6 +95,5 @@ class FooErrorAwsJson11Serializer Serializers serializers, FooError object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart index fd2e0c1c7d..6502631716 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputAwsJson11Serializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputAwsJson11Serializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputAwsJson11Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FractionalSecondsOutput deserialize( @@ -105,10 +98,9 @@ class FractionalSecondsOutputAwsJson11Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart index e3512ac408..49df3c9e9b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructAwsJson11Serializer() + GreetingStructAwsJson11Serializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructAwsJson11Serializer const GreetingStructAwsJson11Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructAwsJson11Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +89,7 @@ class GreetingStructAwsJson11Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart index 5772f6209f..bc3252f325 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputAwsJson11Serializer()]; + serializers = [GreetingWithErrorsOutputAwsJson11Serializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputAwsJson11Serializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson11Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -85,10 +78,12 @@ class GreetingWithErrorsOutputAwsJson11Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -106,10 +101,12 @@ class GreetingWithErrorsOutputAwsJson11Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart index 97f406885c..d9c01275fe 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputAwsJson11Serializer() + HostLabelInputAwsJson11Serializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputAwsJson11Serializer const HostLabelInputAwsJson11Serializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputAwsJson11Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,10 +107,7 @@ class HostLabelInputAwsJson11Serializer final HostLabelInput(:label) = object; result$.addAll([ 'label', - serializers.serialize( - label, - specifiedType: const FullType(String), - ), + serializers.serialize(label, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/integer_enum.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/integer_enum.dart index 37a4a7ebac..fd10fa14b5 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/integer_enum.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/integer_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.integer_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class IntegerEnum extends _i1.SmithyIntEnum { - const IntegerEnum._( - super.index, - super.name, - super.value, - ); + const IntegerEnum._(super.index, super.name, super.value); const IntegerEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = IntegerEnum._( - 0, - 'A', - 1, - ); + static const a = IntegerEnum._(0, 'A', 1); - static const b = IntegerEnum._( - 1, - 'B', - 2, - ); + static const b = IntegerEnum._(1, 'B', 2); - static const c = IntegerEnum._( - 2, - 'C', - 3, - ); + static const c = IntegerEnum._(2, 'C', 3); /// All values of [IntegerEnum]. static const values = [ @@ -45,12 +29,9 @@ class IntegerEnum extends _i1.SmithyIntEnum { values: values, sdkUnknown: IntegerEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart index bd26cbeae3..288d55f94a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingAwsJson11Serializer() + InvalidGreetingAwsJson11Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.json', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingAwsJson11Serializer const InvalidGreetingAwsJson11Serializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidGreeting deserialize( @@ -110,10 +101,12 @@ class InvalidGreetingAwsJson11Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +124,9 @@ class InvalidGreetingAwsJson11Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart index 0d1ac2497c..ce943d1135 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.json_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class JsonEnumsInputOutput ); } - factory JsonEnumsInputOutput.build( - [void Function(JsonEnumsInputOutputBuilder) updates]) = - _$JsonEnumsInputOutput; + factory JsonEnumsInputOutput.build([ + void Function(JsonEnumsInputOutputBuilder) updates, + ]) = _$JsonEnumsInputOutput; const JsonEnumsInputOutput._(); @@ -45,18 +45,16 @@ abstract class JsonEnumsInputOutput JsonEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonEnumsInputOutput] from a [payload] and [response]. factory JsonEnumsInputOutput.fromResponse( JsonEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonEnumsInputOutputAwsJson11Serializer() + JsonEnumsInputOutputAwsJson11Serializer(), ]; FooEnum? get fooEnum1; @@ -70,41 +68,24 @@ abstract class JsonEnumsInputOutput @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonEnumsInputOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonEnumsInputOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -112,21 +93,18 @@ abstract class JsonEnumsInputOutput class JsonEnumsInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const JsonEnumsInputOutputAwsJson11Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [ - JsonEnumsInputOutput, - _$JsonEnumsInputOutput, - ]; + JsonEnumsInputOutput, + _$JsonEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -145,47 +123,57 @@ class JsonEnumsInputOutputAwsJson11Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i3.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i3.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -205,67 +193,70 @@ class JsonEnumsInputOutputAwsJson11Serializer :fooEnum3, :fooEnumList, :fooEnumSet, - :fooEnumMap + :fooEnumMap, ) = object; if (fooEnum1 != null) { result$ ..add('fooEnum1') - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add('fooEnum2') - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add('fooEnum3') - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add('fooEnumList') - ..add(serializers.serialize( - fooEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add('fooEnumSet') - ..add(serializers.serialize( - fooEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add('fooEnumMap') - ..add(serializers.serialize( - fooEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + fooEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart index 8900baa257..38430e2c69 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonEnumsInputOutput extends JsonEnumsInputOutput { @override final _i3.BuiltMap? fooEnumMap; - factory _$JsonEnumsInputOutput( - [void Function(JsonEnumsInputOutputBuilder)? updates]) => - (new JsonEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonEnumsInputOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + factory _$JsonEnumsInputOutput([ + void Function(JsonEnumsInputOutputBuilder)? updates, + ]) => (new JsonEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonEnumsInputOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override JsonEnumsInputOutput rebuild( - void Function(JsonEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class JsonEnumsInputOutputBuilder _$JsonEnumsInputOutput _build() { _$JsonEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonEnumsInputOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class JsonEnumsInputOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonEnumsInputOutput', _$failedField, e.toString()); + r'JsonEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart index a4e8749a04..cf85302675 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.json_int_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class JsonIntEnumsInputOutput ); } - factory JsonIntEnumsInputOutput.build( - [void Function(JsonIntEnumsInputOutputBuilder) updates]) = - _$JsonIntEnumsInputOutput; + factory JsonIntEnumsInputOutput.build([ + void Function(JsonIntEnumsInputOutputBuilder) updates, + ]) = _$JsonIntEnumsInputOutput; const JsonIntEnumsInputOutput._(); @@ -45,15 +45,13 @@ abstract class JsonIntEnumsInputOutput JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonIntEnumsInputOutput] from a [payload] and [response]. factory JsonIntEnumsInputOutput.fromResponse( JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [JsonIntEnumsInputOutputAwsJson11Serializer()]; @@ -69,41 +67,24 @@ abstract class JsonIntEnumsInputOutput @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonIntEnumsInputOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonIntEnumsInputOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -111,21 +92,18 @@ abstract class JsonIntEnumsInputOutput class JsonIntEnumsInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const JsonIntEnumsInputOutputAwsJson11Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [ - JsonIntEnumsInputOutput, - _$JsonIntEnumsInputOutput, - ]; + JsonIntEnumsInputOutput, + _$JsonIntEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -144,47 +122,57 @@ class JsonIntEnumsInputOutputAwsJson11Serializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ), - ) as _i3.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -204,67 +192,74 @@ class JsonIntEnumsInputOutputAwsJson11Serializer :intEnum3, :intEnumList, :intEnumSet, - :intEnumMap + :intEnumMap, ) = object; if (intEnum1 != null) { result$ ..add('intEnum1') - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum1, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum2 != null) { result$ ..add('intEnum2') - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum2, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum3 != null) { result$ ..add('intEnum3') - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum3, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnumList != null) { result$ ..add('intEnumList') - ..add(serializers.serialize( - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], + ..add( + serializers.serialize( + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (intEnumSet != null) { result$ ..add('intEnumSet') - ..add(serializers.serialize( - intEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(IntegerEnum)], + ..add( + serializers.serialize( + intEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (intEnumMap != null) { result$ ..add('intEnumMap') - ..add(serializers.serialize( - intEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + intEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart index e5ba1df93b..a4148d2a08 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/json_int_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonIntEnumsInputOutput extends JsonIntEnumsInputOutput { @override final _i3.BuiltMap? intEnumMap; - factory _$JsonIntEnumsInputOutput( - [void Function(JsonIntEnumsInputOutputBuilder)? updates]) => - (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonIntEnumsInputOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$JsonIntEnumsInputOutput([ + void Function(JsonIntEnumsInputOutputBuilder)? updates, + ]) => (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonIntEnumsInputOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override JsonIntEnumsInputOutput rebuild( - void Function(JsonIntEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonIntEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonIntEnumsInputOutputBuilder toBuilder() => @@ -136,14 +136,16 @@ class JsonIntEnumsInputOutputBuilder _$JsonIntEnumsInputOutput _build() { _$JsonIntEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonIntEnumsInputOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -155,7 +157,10 @@ class JsonIntEnumsInputOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonIntEnumsInputOutput', _$failedField, e.toString()); + r'JsonIntEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart index fdf77159f8..89dc83a85c 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.kitchen_sink; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -59,30 +59,33 @@ abstract class KitchenSink integer: integer, iso8601Timestamp: iso8601Timestamp, jsonValue: jsonValue == null ? null : _i5.JsonObject(jsonValue), - listOfLists: listOfLists == null - ? null - : _i6.BuiltList(listOfLists.map((el) => _i6.BuiltList(el))), - listOfMapsOfStrings: listOfMapsOfStrings == null - ? null - : _i6.BuiltList(listOfMapsOfStrings.map((el) => _i6.BuiltMap(el))), + listOfLists: + listOfLists == null + ? null + : _i6.BuiltList(listOfLists.map((el) => _i6.BuiltList(el))), + listOfMapsOfStrings: + listOfMapsOfStrings == null + ? null + : _i6.BuiltList( + listOfMapsOfStrings.map((el) => _i6.BuiltMap(el)), + ), listOfStrings: listOfStrings == null ? null : _i6.BuiltList(listOfStrings), listOfStructs: listOfStructs == null ? null : _i6.BuiltList(listOfStructs), long: long, - mapOfListsOfStrings: mapOfListsOfStrings == null - ? null - : _i6.BuiltListMultimap(mapOfListsOfStrings), - mapOfMaps: mapOfMaps == null - ? null - : _i6.BuiltMap(mapOfMaps.map(( - key, - value, - ) => - MapEntry( - key, - _i6.BuiltMap(value), - ))), + mapOfListsOfStrings: + mapOfListsOfStrings == null + ? null + : _i6.BuiltListMultimap(mapOfListsOfStrings), + mapOfMaps: + mapOfMaps == null + ? null + : _i6.BuiltMap( + mapOfMaps.map( + (key, value) => MapEntry(key, _i6.BuiltMap(value)), + ), + ), mapOfStrings: mapOfStrings == null ? null : _i6.BuiltMap(mapOfStrings), mapOfStructs: mapOfStructs == null ? null : _i6.BuiltMap(mapOfStructs), recursiveList: @@ -106,18 +109,16 @@ abstract class KitchenSink KitchenSink payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [KitchenSink] from a [payload] and [response]. factory KitchenSink.fromResponse( KitchenSink payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - KitchenSinkAwsJson11Serializer() + KitchenSinkAwsJson11Serializer(), ]; _i3.Uint8List? get blob; @@ -151,141 +152,64 @@ abstract class KitchenSink @override List get props => [ - blob, - boolean, - double_, - emptyStruct, - float, - httpdateTimestamp, - integer, - iso8601Timestamp, - jsonValue, - listOfLists, - listOfMapsOfStrings, - listOfStrings, - listOfStructs, - long, - mapOfListsOfStrings, - mapOfMaps, - mapOfStrings, - mapOfStructs, - recursiveList, - recursiveMap, - recursiveStruct, - simpleStruct, - string, - structWithJsonName, - timestamp, - unixTimestamp, - ]; + blob, + boolean, + double_, + emptyStruct, + float, + httpdateTimestamp, + integer, + iso8601Timestamp, + jsonValue, + listOfLists, + listOfMapsOfStrings, + listOfStrings, + listOfStructs, + long, + mapOfListsOfStrings, + mapOfMaps, + mapOfStrings, + mapOfStructs, + recursiveList, + recursiveMap, + recursiveStruct, + simpleStruct, + string, + structWithJsonName, + timestamp, + unixTimestamp, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('KitchenSink') - ..add( - 'blob', - blob, - ) - ..add( - 'boolean', - boolean, - ) - ..add( - 'double_', - double_, - ) - ..add( - 'emptyStruct', - emptyStruct, - ) - ..add( - 'float', - float, - ) - ..add( - 'httpdateTimestamp', - httpdateTimestamp, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'iso8601Timestamp', - iso8601Timestamp, - ) - ..add( - 'jsonValue', - jsonValue, - ) - ..add( - 'listOfLists', - listOfLists, - ) - ..add( - 'listOfMapsOfStrings', - listOfMapsOfStrings, - ) - ..add( - 'listOfStrings', - listOfStrings, - ) - ..add( - 'listOfStructs', - listOfStructs, - ) - ..add( - 'long', - long, - ) - ..add( - 'mapOfListsOfStrings', - mapOfListsOfStrings, - ) - ..add( - 'mapOfMaps', - mapOfMaps, - ) - ..add( - 'mapOfStrings', - mapOfStrings, - ) - ..add( - 'mapOfStructs', - mapOfStructs, - ) - ..add( - 'recursiveList', - recursiveList, - ) - ..add( - 'recursiveMap', - recursiveMap, - ) - ..add( - 'recursiveStruct', - recursiveStruct, - ) - ..add( - 'simpleStruct', - simpleStruct, - ) - ..add( - 'string', - string, - ) - ..add( - 'structWithJsonName', - structWithJsonName, - ) - ..add( - 'timestamp', - timestamp, - ) - ..add( - 'unixTimestamp', - unixTimestamp, - ); + final helper = + newBuiltValueToStringHelper('KitchenSink') + ..add('blob', blob) + ..add('boolean', boolean) + ..add('double_', double_) + ..add('emptyStruct', emptyStruct) + ..add('float', float) + ..add('httpdateTimestamp', httpdateTimestamp) + ..add('integer', integer) + ..add('iso8601Timestamp', iso8601Timestamp) + ..add('jsonValue', jsonValue) + ..add('listOfLists', listOfLists) + ..add('listOfMapsOfStrings', listOfMapsOfStrings) + ..add('listOfStrings', listOfStrings) + ..add('listOfStructs', listOfStructs) + ..add('long', long) + ..add('mapOfListsOfStrings', mapOfListsOfStrings) + ..add('mapOfMaps', mapOfMaps) + ..add('mapOfStrings', mapOfStrings) + ..add('mapOfStructs', mapOfStructs) + ..add('recursiveList', recursiveList) + ..add('recursiveMap', recursiveMap) + ..add('recursiveStruct', recursiveStruct) + ..add('simpleStruct', simpleStruct) + ..add('string', string) + ..add('structWithJsonName', structWithJsonName) + ..add('timestamp', timestamp) + ..add('unixTimestamp', unixTimestamp); return helper.toString(); } } @@ -295,18 +219,12 @@ class KitchenSinkAwsJson11Serializer const KitchenSinkAwsJson11Serializer() : super('KitchenSink'); @override - Iterable get types => const [ - KitchenSink, - _$KitchenSink, - ]; + Iterable get types => const [KitchenSink, _$KitchenSink]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override KitchenSink deserialize( @@ -325,202 +243,220 @@ class KitchenSinkAwsJson11Serializer } switch (key) { case 'Blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'Boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'EmptyStruct': - result.emptyStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(EmptyStruct), - ) as EmptyStruct)); + result.emptyStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EmptyStruct), + ) + as EmptyStruct), + ); case 'Float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'HttpdateTimestamp': - result.httpdateTimestamp = - _i1.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpdateTimestamp = _i1.TimestampSerializer.httpDate + .deserialize(serializers, value); case 'Integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Iso8601Timestamp': - result.iso8601Timestamp = - _i1.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.iso8601Timestamp = _i1.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'JsonValue': - result.jsonValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.JsonObject), - ) as _i5.JsonObject); + result.jsonValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.JsonObject), + ) + as _i5.JsonObject); case 'ListOfLists': - result.listOfLists.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltList, - [FullType(String)], + result.listOfLists.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i6.BuiltList<_i6.BuiltList>)); + as _i6.BuiltList<_i6.BuiltList>), + ); case 'ListOfMapsOfStrings': - result.listOfMapsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], + result.listOfMapsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), ) - ], - ), - ) as _i6.BuiltList<_i6.BuiltMap>)); + as _i6.BuiltList<_i6.BuiltMap>), + ); case 'ListOfStrings': - result.listOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(String)], - ), - ) as _i6.BuiltList)); + result.listOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(String), + ]), + ) + as _i6.BuiltList), + ); case 'ListOfStructs': - result.listOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(SimpleStruct)], - ), - ) as _i6.BuiltList)); + result.listOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(SimpleStruct), + ]), + ) + as _i6.BuiltList), + ); case 'Long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'MapOfListsOfStrings': - result.mapOfListsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i6.BuiltListMultimap)); - case 'MapOfMaps': - result.mapOfMaps.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType( - _i6.BuiltMap, - [ + result.mapOfListsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltListMultimap, [ FullType(String), FullType(String), - ], - ), - ], - ), - ) as _i6.BuiltMap>)); + ]), + ) + as _i6.BuiltListMultimap), + ); + case 'MapOfMaps': + result.mapOfMaps.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(_i6.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), + ) + as _i6.BuiltMap>), + ); case 'MapOfStrings': - result.mapOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i6.BuiltMap)); + result.mapOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i6.BuiltMap), + ); case 'MapOfStructs': - result.mapOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(SimpleStruct), - ], - ), - ) as _i6.BuiltMap)); + result.mapOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(SimpleStruct), + ]), + ) + as _i6.BuiltMap), + ); case 'RecursiveList': - result.recursiveList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(KitchenSink)], - ), - ) as _i6.BuiltList)); + result.recursiveList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(KitchenSink), + ]), + ) + as _i6.BuiltList), + ); case 'RecursiveMap': - result.recursiveMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(KitchenSink), - ], - ), - ) as _i6.BuiltMap)); + result.recursiveMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(KitchenSink), + ]), + ) + as _i6.BuiltMap), + ); case 'RecursiveStruct': - result.recursiveStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.recursiveStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'SimpleStruct': - result.simpleStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(SimpleStruct), - ) as SimpleStruct)); + result.simpleStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(SimpleStruct), + ) + as SimpleStruct), + ); case 'String': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StructWithJsonName': - result.structWithJsonName.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructWithJsonName), - ) as StructWithJsonName)); + result.structWithJsonName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructWithJsonName), + ) + as StructWithJsonName), + ); case 'Timestamp': - result.timestamp = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.timestamp = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'UnixTimestamp': - result.unixTimestamp = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.unixTimestamp = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } @@ -560,279 +496,272 @@ class KitchenSinkAwsJson11Serializer :string, :structWithJsonName, :timestamp, - :unixTimestamp + :unixTimestamp, ) = object; if (blob != null) { result$ ..add('Blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (boolean != null) { result$ ..add('Boolean') - ..add(serializers.serialize( - boolean, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(boolean, specifiedType: const FullType(bool)), + ); } if (double_ != null) { result$ ..add('Double') - ..add(serializers.serialize( - double_, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(double_, specifiedType: const FullType(double)), + ); } if (emptyStruct != null) { result$ ..add('EmptyStruct') - ..add(serializers.serialize( - emptyStruct, - specifiedType: const FullType(EmptyStruct), - )); + ..add( + serializers.serialize( + emptyStruct, + specifiedType: const FullType(EmptyStruct), + ), + ); } if (float != null) { result$ ..add('Float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (httpdateTimestamp != null) { result$ ..add('HttpdateTimestamp') - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpdateTimestamp, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize( + serializers, + httpdateTimestamp, + ), + ); } if (integer != null) { result$ ..add('Integer') - ..add(serializers.serialize( - integer, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(integer, specifiedType: const FullType(int)), + ); } if (iso8601Timestamp != null) { result$ ..add('Iso8601Timestamp') - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - iso8601Timestamp, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize( + serializers, + iso8601Timestamp, + ), + ); } if (jsonValue != null) { result$ ..add('JsonValue') - ..add(serializers.serialize( - jsonValue, - specifiedType: const FullType(_i5.JsonObject), - )); + ..add( + serializers.serialize( + jsonValue, + specifiedType: const FullType(_i5.JsonObject), + ), + ); } if (listOfLists != null) { result$ ..add('ListOfLists') - ..add(serializers.serialize( - listOfLists, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltList, - [FullType(String)], - ) - ], + ..add( + serializers.serialize( + listOfLists, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (listOfMapsOfStrings != null) { result$ ..add('ListOfMapsOfStrings') - ..add(serializers.serialize( - listOfMapsOfStrings, - specifiedType: const FullType( - _i6.BuiltList, - [ - FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ) - ], + ..add( + serializers.serialize( + listOfMapsOfStrings, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(_i6.BuiltMap, [FullType(String), FullType(String)]), + ]), ), - )); + ); } if (listOfStrings != null) { result$ ..add('ListOfStrings') - ..add(serializers.serialize( - listOfStrings, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + listOfStrings, + specifiedType: const FullType(_i6.BuiltList, [FullType(String)]), ), - )); + ); } if (listOfStructs != null) { result$ ..add('ListOfStructs') - ..add(serializers.serialize( - listOfStructs, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(SimpleStruct)], + ..add( + serializers.serialize( + listOfStructs, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(SimpleStruct), + ]), ), - )); + ); } if (long != null) { result$ ..add('Long') - ..add(serializers.serialize( - long, - specifiedType: const FullType(_i4.Int64), - )); + ..add( + serializers.serialize(long, specifiedType: const FullType(_i4.Int64)), + ); } if (mapOfListsOfStrings != null) { result$ ..add('MapOfListsOfStrings') - ..add(serializers.serialize( - mapOfListsOfStrings, - specifiedType: const FullType( - _i6.BuiltListMultimap, - [ + ..add( + serializers.serialize( + mapOfListsOfStrings, + specifiedType: const FullType(_i6.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (mapOfMaps != null) { result$ ..add('MapOfMaps') - ..add(serializers.serialize( - mapOfMaps, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + mapOfMaps, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), - FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ], + FullType(_i6.BuiltMap, [FullType(String), FullType(String)]), + ]), ), - )); + ); } if (mapOfStrings != null) { result$ ..add('MapOfStrings') - ..add(serializers.serialize( - mapOfStrings, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + mapOfStrings, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (mapOfStructs != null) { result$ ..add('MapOfStructs') - ..add(serializers.serialize( - mapOfStructs, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + mapOfStructs, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), FullType(SimpleStruct), - ], + ]), ), - )); + ); } if (recursiveList != null) { result$ ..add('RecursiveList') - ..add(serializers.serialize( - recursiveList, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(KitchenSink)], + ..add( + serializers.serialize( + recursiveList, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(KitchenSink), + ]), ), - )); + ); } if (recursiveMap != null) { result$ ..add('RecursiveMap') - ..add(serializers.serialize( - recursiveMap, - specifiedType: const FullType( - _i6.BuiltMap, - [ + ..add( + serializers.serialize( + recursiveMap, + specifiedType: const FullType(_i6.BuiltMap, [ FullType(String), FullType(KitchenSink), - ], + ]), ), - )); + ); } if (recursiveStruct != null) { result$ ..add('RecursiveStruct') - ..add(serializers.serialize( - recursiveStruct, - specifiedType: const FullType(KitchenSink), - )); + ..add( + serializers.serialize( + recursiveStruct, + specifiedType: const FullType(KitchenSink), + ), + ); } if (simpleStruct != null) { result$ ..add('SimpleStruct') - ..add(serializers.serialize( - simpleStruct, - specifiedType: const FullType(SimpleStruct), - )); + ..add( + serializers.serialize( + simpleStruct, + specifiedType: const FullType(SimpleStruct), + ), + ); } if (string != null) { result$ ..add('String') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (structWithJsonName != null) { result$ ..add('StructWithJsonName') - ..add(serializers.serialize( - structWithJsonName, - specifiedType: const FullType(StructWithJsonName), - )); + ..add( + serializers.serialize( + structWithJsonName, + specifiedType: const FullType(StructWithJsonName), + ), + ); } if (timestamp != null) { result$ ..add('Timestamp') - ..add(serializers.serialize( - timestamp, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + timestamp, + specifiedType: const FullType(DateTime), + ), + ); } if (unixTimestamp != null) { result$ ..add('UnixTimestamp') - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - unixTimestamp, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + unixTimestamp, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart index 112f4aa991..34a2506b0c 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/kitchen_sink.g.dart @@ -63,34 +63,34 @@ class _$KitchenSink extends KitchenSink { factory _$KitchenSink([void Function(KitchenSinkBuilder)? updates]) => (new KitchenSinkBuilder()..update(updates))._build(); - _$KitchenSink._( - {this.blob, - this.boolean, - this.double_, - this.emptyStruct, - this.float, - this.httpdateTimestamp, - this.integer, - this.iso8601Timestamp, - this.jsonValue, - this.listOfLists, - this.listOfMapsOfStrings, - this.listOfStrings, - this.listOfStructs, - this.long, - this.mapOfListsOfStrings, - this.mapOfMaps, - this.mapOfStrings, - this.mapOfStructs, - this.recursiveList, - this.recursiveMap, - this.recursiveStruct, - this.simpleStruct, - this.string, - this.structWithJsonName, - this.timestamp, - this.unixTimestamp}) - : super._(); + _$KitchenSink._({ + this.blob, + this.boolean, + this.double_, + this.emptyStruct, + this.float, + this.httpdateTimestamp, + this.integer, + this.iso8601Timestamp, + this.jsonValue, + this.listOfLists, + this.listOfMapsOfStrings, + this.listOfStrings, + this.listOfStructs, + this.long, + this.mapOfListsOfStrings, + this.mapOfMaps, + this.mapOfStrings, + this.mapOfStructs, + this.recursiveList, + this.recursiveMap, + this.recursiveStruct, + this.simpleStruct, + this.string, + this.structWithJsonName, + this.timestamp, + this.unixTimestamp, + }) : super._(); @override KitchenSink rebuild(void Function(KitchenSinkBuilder) updates) => @@ -219,8 +219,8 @@ class KitchenSinkBuilder implements Builder { _$this._listOfMapsOfStrings ??= new _i6.ListBuilder<_i6.BuiltMap>(); set listOfMapsOfStrings( - _i6.ListBuilder<_i6.BuiltMap>? listOfMapsOfStrings) => - _$this._listOfMapsOfStrings = listOfMapsOfStrings; + _i6.ListBuilder<_i6.BuiltMap>? listOfMapsOfStrings, + ) => _$this._listOfMapsOfStrings = listOfMapsOfStrings; _i6.ListBuilder? _listOfStrings; _i6.ListBuilder get listOfStrings => @@ -243,16 +243,16 @@ class KitchenSinkBuilder implements Builder { _$this._mapOfListsOfStrings ??= new _i6.ListMultimapBuilder(); set mapOfListsOfStrings( - _i6.ListMultimapBuilder? mapOfListsOfStrings) => - _$this._mapOfListsOfStrings = mapOfListsOfStrings; + _i6.ListMultimapBuilder? mapOfListsOfStrings, + ) => _$this._mapOfListsOfStrings = mapOfListsOfStrings; _i6.MapBuilder>? _mapOfMaps; _i6.MapBuilder> get mapOfMaps => _$this._mapOfMaps ??= new _i6.MapBuilder>(); set mapOfMaps( - _i6.MapBuilder>? mapOfMaps) => - _$this._mapOfMaps = mapOfMaps; + _i6.MapBuilder>? mapOfMaps, + ) => _$this._mapOfMaps = mapOfMaps; _i6.MapBuilder? _mapOfStrings; _i6.MapBuilder get mapOfStrings => @@ -362,34 +362,36 @@ class KitchenSinkBuilder implements Builder { _$KitchenSink _build() { _$KitchenSink _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$KitchenSink._( - blob: blob, - boolean: boolean, - double_: double_, - emptyStruct: _emptyStruct?.build(), - float: float, - httpdateTimestamp: httpdateTimestamp, - integer: integer, - iso8601Timestamp: iso8601Timestamp, - jsonValue: jsonValue, - listOfLists: _listOfLists?.build(), - listOfMapsOfStrings: _listOfMapsOfStrings?.build(), - listOfStrings: _listOfStrings?.build(), - listOfStructs: _listOfStructs?.build(), - long: long, - mapOfListsOfStrings: _mapOfListsOfStrings?.build(), - mapOfMaps: _mapOfMaps?.build(), - mapOfStrings: _mapOfStrings?.build(), - mapOfStructs: _mapOfStructs?.build(), - recursiveList: _recursiveList?.build(), - recursiveMap: _recursiveMap?.build(), - recursiveStruct: _recursiveStruct?.build(), - simpleStruct: _simpleStruct?.build(), - string: string, - structWithJsonName: _structWithJsonName?.build(), - timestamp: timestamp, - unixTimestamp: unixTimestamp); + blob: blob, + boolean: boolean, + double_: double_, + emptyStruct: _emptyStruct?.build(), + float: float, + httpdateTimestamp: httpdateTimestamp, + integer: integer, + iso8601Timestamp: iso8601Timestamp, + jsonValue: jsonValue, + listOfLists: _listOfLists?.build(), + listOfMapsOfStrings: _listOfMapsOfStrings?.build(), + listOfStrings: _listOfStrings?.build(), + listOfStructs: _listOfStructs?.build(), + long: long, + mapOfListsOfStrings: _mapOfListsOfStrings?.build(), + mapOfMaps: _mapOfMaps?.build(), + mapOfStrings: _mapOfStrings?.build(), + mapOfStructs: _mapOfStructs?.build(), + recursiveList: _recursiveList?.build(), + recursiveMap: _recursiveMap?.build(), + recursiveStruct: _recursiveStruct?.build(), + simpleStruct: _simpleStruct?.build(), + string: string, + structWithJsonName: _structWithJsonName?.build(), + timestamp: timestamp, + unixTimestamp: unixTimestamp, + ); } catch (_) { late String _$failedField; try { @@ -426,7 +428,10 @@ class KitchenSinkBuilder implements Builder { _structWithJsonName?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'KitchenSink', _$failedField, e.toString()); + r'KitchenSink', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart index 485f7c0c58..d9e4f9f99b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/my_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.my_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,13 +36,11 @@ sealed class MyUnion extends _i1.SmithyUnion { factory MyUnion.structureValue({String? hi}) => MyUnionStructureValue$(GreetingStruct(hi: hi)); - const factory MyUnion.sdkUnknown( - String name, - Object value, - ) = MyUnionSdkUnknown$; + const factory MyUnion.sdkUnknown(String name, Object value) = + MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - MyUnionAwsJson11Serializer() + MyUnionAwsJson11Serializer(), ]; String? get stringValue => null; @@ -64,72 +62,46 @@ sealed class MyUnion extends _i1.SmithyUnion { GreetingStruct? get structureValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - numberValue ?? - blobValue ?? - timestampValue ?? - enumValue ?? - listValue ?? - mapValue ?? - structureValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + numberValue ?? + blobValue ?? + timestampValue ?? + enumValue ?? + listValue ?? + mapValue ?? + structureValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'MyUnion'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (numberValue != null) { - helper.add( - r'numberValue', - numberValue, - ); + helper.add(r'numberValue', numberValue); } if (blobValue != null) { - helper.add( - r'blobValue', - blobValue, - ); + helper.add(r'blobValue', blobValue); } if (timestampValue != null) { - helper.add( - r'timestampValue', - timestampValue, - ); + helper.add(r'timestampValue', timestampValue); } if (enumValue != null) { - helper.add( - r'enumValue', - enumValue, - ); + helper.add(r'enumValue', enumValue); } if (listValue != null) { - helper.add( - r'listValue', - listValue, - ); + helper.add(r'listValue', listValue); } if (mapValue != null) { - helper.add( - r'mapValue', - mapValue, - ); + helper.add(r'mapValue', mapValue); } if (structureValue != null) { - helper.add( - r'structureValue', - structureValue, - ); + helper.add(r'structureValue', structureValue); } return helper.toString(); } @@ -209,7 +181,7 @@ final class MyUnionListValue$ extends MyUnion { final class MyUnionMapValue$ extends MyUnion { MyUnionMapValue$(Map mapValue) - : this._(_i3.BuiltMap(mapValue)); + : this._(_i3.BuiltMap(mapValue)); const MyUnionMapValue$._(this.mapValue) : super._(); @@ -231,10 +203,7 @@ final class MyUnionStructureValue$ extends MyUnion { } final class MyUnionSdkUnknown$ extends MyUnion { - const MyUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const MyUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -249,25 +218,22 @@ class MyUnionAwsJson11Serializer @override Iterable get types => const [ - MyUnion, - MyUnionStringValue$, - MyUnionBooleanValue$, - MyUnionNumberValue$, - MyUnionBlobValue$, - MyUnionTimestampValue$, - MyUnionEnumValue$, - MyUnionListValue$, - MyUnionMapValue$, - MyUnionStructureValue$, - ]; + MyUnion, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override MyUnion deserialize( @@ -278,64 +244,75 @@ class MyUnionAwsJson11Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return MyUnionStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return MyUnionBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return MyUnionBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'numberValue': - return MyUnionNumberValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return MyUnionNumberValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'blobValue': - return MyUnionBlobValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List)); + return MyUnionBlobValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List), + ); case 'timestampValue': - return MyUnionTimestampValue$((serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime)); + return MyUnionTimestampValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime), + ); case 'enumValue': - return MyUnionEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum)); + return MyUnionEnumValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum), + ); case 'listValue': - return MyUnionListValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + return MyUnionListValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'mapValue': - return MyUnionMapValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + return MyUnionMapValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'structureValue': - return MyUnionStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct)); + return MyUnionStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct), + ); } - return MyUnion.sdkUnknown( - key, - value, - ); + return MyUnion.sdkUnknown(key, value); } @override @@ -348,50 +325,44 @@ class MyUnionAwsJson11Serializer object.name, switch (object) { MyUnionStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), MyUnionBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), MyUnionNumberValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), MyUnionBlobValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ), + value, + specifiedType: const FullType(_i2.Uint8List), + ), MyUnionTimestampValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(DateTime), - ), + value, + specifiedType: const FullType(DateTime), + ), MyUnionEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(FooEnum), - ), + value, + specifiedType: const FullType(FooEnum), + ), MyUnionListValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), + ), MyUnionMapValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ), MyUnionStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(GreetingStruct), - ), + value, + specifiedType: const FullType(GreetingStruct), + ), MyUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart index c8b60fb450..beeeb8f369 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.null_operation_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,9 +31,9 @@ abstract class NullOperationInputOutput ); } - factory NullOperationInputOutput.build( - [void Function(NullOperationInputOutputBuilder) updates]) = - _$NullOperationInputOutput; + factory NullOperationInputOutput.build([ + void Function(NullOperationInputOutputBuilder) updates, + ]) = _$NullOperationInputOutput; const NullOperationInputOutput._(); @@ -41,18 +41,16 @@ abstract class NullOperationInputOutput NullOperationInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [NullOperationInputOutput] from a [payload] and [response]. factory NullOperationInputOutput.fromResponse( NullOperationInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [NullOperationInputOutputAwsJson11Serializer()]; + serializers = [NullOperationInputOutputAwsJson11Serializer()]; String? get string; _i3.BuiltList? get sparseStringList; @@ -61,27 +59,15 @@ abstract class NullOperationInputOutput NullOperationInputOutput getPayload() => this; @override - List get props => [ - string, - sparseStringList, - sparseStringMap, - ]; + List get props => [string, sparseStringList, sparseStringMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('NullOperationInputOutput') - ..add( - 'string', - string, - ) - ..add( - 'sparseStringList', - sparseStringList, - ) - ..add( - 'sparseStringMap', - sparseStringMap, - ); + final helper = + newBuiltValueToStringHelper('NullOperationInputOutput') + ..add('string', string) + ..add('sparseStringList', sparseStringList) + ..add('sparseStringMap', sparseStringMap); return helper.toString(); } } @@ -89,21 +75,18 @@ abstract class NullOperationInputOutput class NullOperationInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const NullOperationInputOutputAwsJson11Serializer() - : super('NullOperationInputOutput'); + : super('NullOperationInputOutput'); @override Iterable get types => const [ - NullOperationInputOutput, - _$NullOperationInputOutput, - ]; + NullOperationInputOutput, + _$NullOperationInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NullOperationInputOutput deserialize( @@ -122,29 +105,33 @@ class NullOperationInputOutputAwsJson11Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], - ), - ) as _i3.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i3.BuiltList), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i3.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -161,40 +148,39 @@ class NullOperationInputOutputAwsJson11Serializer final NullOperationInputOutput( :string, :sparseStringList, - :sparseStringMap + :sparseStringMap, ) = object; if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (sparseStringList != null) { result$ ..add('sparseStringList') - ..add(serializers.serialize( - sparseStringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], + ..add( + serializers.serialize( + sparseStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), ), - )); + ); } if (sparseStringMap != null) { result$ ..add('sparseStringMap') - ..add(serializers.serialize( - sparseStringMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseStringMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart index 29ba32e499..e57136b034 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/null_operation_input_output.g.dart @@ -14,18 +14,20 @@ class _$NullOperationInputOutput extends NullOperationInputOutput { @override final _i3.BuiltMap? sparseStringMap; - factory _$NullOperationInputOutput( - [void Function(NullOperationInputOutputBuilder)? updates]) => - (new NullOperationInputOutputBuilder()..update(updates))._build(); + factory _$NullOperationInputOutput([ + void Function(NullOperationInputOutputBuilder)? updates, + ]) => (new NullOperationInputOutputBuilder()..update(updates))._build(); - _$NullOperationInputOutput._( - {this.string, this.sparseStringList, this.sparseStringMap}) - : super._(); + _$NullOperationInputOutput._({ + this.string, + this.sparseStringList, + this.sparseStringMap, + }) : super._(); @override NullOperationInputOutput rebuild( - void Function(NullOperationInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullOperationInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullOperationInputOutputBuilder toBuilder() => @@ -102,11 +104,13 @@ class NullOperationInputOutputBuilder _$NullOperationInputOutput _build() { _$NullOperationInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$NullOperationInputOutput._( - string: string, - sparseStringList: _sparseStringList?.build(), - sparseStringMap: _sparseStringMap?.build()); + string: string, + sparseStringList: _sparseStringList?.build(), + sparseStringMap: _sparseStringMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -116,7 +120,10 @@ class NullOperationInputOutputBuilder _sparseStringMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NullOperationInputOutput', _$failedField, e.toString()); + r'NullOperationInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.dart index f331161b12..01777a727d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsJson11Serializer() + OperationConfigAwsJson11Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsJson11Serializer const OperationConfigAwsJson11Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigAwsJson11Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigAwsJson11Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart index e369b31d61..7f6c44602a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.operation_with_optional_input_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class OperationWithOptionalInputOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInputBuilder + > { factory OperationWithOptionalInputOutputInput({String? value}) { return _$OperationWithOptionalInputOutputInput._(value: value); } - factory OperationWithOptionalInputOutputInput.build( - [void Function(OperationWithOptionalInputOutputInputBuilder) - updates]) = _$OperationWithOptionalInputOutputInput; + factory OperationWithOptionalInputOutputInput.build([ + void Function(OperationWithOptionalInputOutputInputBuilder) updates, + ]) = _$OperationWithOptionalInputOutputInput; const OperationWithOptionalInputOutputInput._(); @@ -31,13 +33,10 @@ abstract class OperationWithOptionalInputOutputInput OperationWithOptionalInputOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [ - OperationWithOptionalInputOutputInputAwsJson11Serializer() - ]; + serializers = [OperationWithOptionalInputOutputInputAwsJson11Serializer()]; String? get value; @override @@ -48,34 +47,29 @@ abstract class OperationWithOptionalInputOutputInput @override String toString() { - final helper = - newBuiltValueToStringHelper('OperationWithOptionalInputOutputInput') - ..add( - 'value', - value, - ); + final helper = newBuiltValueToStringHelper( + 'OperationWithOptionalInputOutputInput', + )..add('value', value); return helper.toString(); } } -class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i1 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputInputAwsJson11Serializer + extends + _i1.StructuredSmithySerializer { const OperationWithOptionalInputOutputInputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputInput'); + : super('OperationWithOptionalInputOutputInput'); @override Iterable get types => const [ - OperationWithOptionalInputOutputInput, - _$OperationWithOptionalInputOutputInput, - ]; + OperationWithOptionalInputOutputInput, + _$OperationWithOptionalInputOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputInput deserialize( @@ -94,10 +88,12 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i1 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -115,10 +111,9 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i1 if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart index 73ed1c13f4..e3a2879df0 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_input.g.dart @@ -11,9 +11,9 @@ class _$OperationWithOptionalInputOutputInput @override final String? value; - factory _$OperationWithOptionalInputOutputInput( - [void Function(OperationWithOptionalInputOutputInputBuilder)? - updates]) => + factory _$OperationWithOptionalInputOutputInput([ + void Function(OperationWithOptionalInputOutputInputBuilder)? updates, + ]) => (new OperationWithOptionalInputOutputInputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$OperationWithOptionalInputOutputInput @override OperationWithOptionalInputOutputInput rebuild( - void Function(OperationWithOptionalInputOutputInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OperationWithOptionalInputOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OperationWithOptionalInputOutputInputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$OperationWithOptionalInputOutputInput class OperationWithOptionalInputOutputInputBuilder implements - Builder { + Builder< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInputBuilder + > { _$OperationWithOptionalInputOutputInput? _$v; String? _value; @@ -74,7 +75,8 @@ class OperationWithOptionalInputOutputInputBuilder @override void update( - void Function(OperationWithOptionalInputOutputInputBuilder)? updates) { + void Function(OperationWithOptionalInputOutputInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart index 47b1262bd9..b3aa605f4b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.operation_with_optional_input_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'operation_with_optional_input_output_output.g.dart'; abstract class OperationWithOptionalInputOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutputBuilder + > { factory OperationWithOptionalInputOutputOutput({String? value}) { return _$OperationWithOptionalInputOutputOutput._(value: value); } - factory OperationWithOptionalInputOutputOutput.build( - [void Function(OperationWithOptionalInputOutputOutputBuilder) - updates]) = _$OperationWithOptionalInputOutputOutput; + factory OperationWithOptionalInputOutputOutput.build([ + void Function(OperationWithOptionalInputOutputOutputBuilder) updates, + ]) = _$OperationWithOptionalInputOutputOutput; const OperationWithOptionalInputOutputOutput._(); @@ -30,14 +31,12 @@ abstract class OperationWithOptionalInputOutputOutput factory OperationWithOptionalInputOutputOutput.fromResponse( OperationWithOptionalInputOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List< - _i2.SmithySerializer> - serializers = [ - OperationWithOptionalInputOutputOutputAwsJson11Serializer() - ]; + _i2.SmithySerializer + > + serializers = [OperationWithOptionalInputOutputOutputAwsJson11Serializer()]; String? get value; @override @@ -45,34 +44,29 @@ abstract class OperationWithOptionalInputOutputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('OperationWithOptionalInputOutputOutput') - ..add( - 'value', - value, - ); + final helper = newBuiltValueToStringHelper( + 'OperationWithOptionalInputOutputOutput', + )..add('value', value); return helper.toString(); } } -class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i2 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputOutputAwsJson11Serializer + extends + _i2.StructuredSmithySerializer { const OperationWithOptionalInputOutputOutputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputOutput'); + : super('OperationWithOptionalInputOutputOutput'); @override Iterable get types => const [ - OperationWithOptionalInputOutputOutput, - _$OperationWithOptionalInputOutputOutput, - ]; + OperationWithOptionalInputOutputOutput, + _$OperationWithOptionalInputOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputOutput deserialize( @@ -91,10 +85,12 @@ class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i2 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -112,10 +108,9 @@ class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i2 if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart index fbe3f3a5bb..36ddbf1b94 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/operation_with_optional_input_output_output.g.dart @@ -11,9 +11,9 @@ class _$OperationWithOptionalInputOutputOutput @override final String? value; - factory _$OperationWithOptionalInputOutputOutput( - [void Function(OperationWithOptionalInputOutputOutputBuilder)? - updates]) => + factory _$OperationWithOptionalInputOutputOutput([ + void Function(OperationWithOptionalInputOutputOutputBuilder)? updates, + ]) => (new OperationWithOptionalInputOutputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$OperationWithOptionalInputOutputOutput @override OperationWithOptionalInputOutputOutput rebuild( - void Function(OperationWithOptionalInputOutputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OperationWithOptionalInputOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OperationWithOptionalInputOutputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$OperationWithOptionalInputOutputOutput class OperationWithOptionalInputOutputOutputBuilder implements - Builder { + Builder< + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutputBuilder + > { _$OperationWithOptionalInputOutputOutput? _$v; String? _value; @@ -74,7 +75,8 @@ class OperationWithOptionalInputOutputOutputBuilder @override void update( - void Function(OperationWithOptionalInputOutputOutputBuilder)? updates) { + void Function(OperationWithOptionalInputOutputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart index 9a2227969e..1412291537 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.put_and_get_inline_documents_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class PutAndGetInlineDocumentsInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutputBuilder + > { factory PutAndGetInlineDocumentsInputOutput({Object? inlineDocument}) { return _$PutAndGetInlineDocumentsInputOutput._( - inlineDocument: - inlineDocument == null ? null : _i3.JsonObject(inlineDocument)); + inlineDocument: + inlineDocument == null ? null : _i3.JsonObject(inlineDocument), + ); } - factory PutAndGetInlineDocumentsInputOutput.build( - [void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates]) = - _$PutAndGetInlineDocumentsInputOutput; + factory PutAndGetInlineDocumentsInputOutput.build([ + void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates, + ]) = _$PutAndGetInlineDocumentsInputOutput; const PutAndGetInlineDocumentsInputOutput._(); @@ -34,18 +37,16 @@ abstract class PutAndGetInlineDocumentsInputOutput PutAndGetInlineDocumentsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [PutAndGetInlineDocumentsInputOutput] from a [payload] and [response]. factory PutAndGetInlineDocumentsInputOutput.fromResponse( PutAndGetInlineDocumentsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [PutAndGetInlineDocumentsInputOutputAwsJson11Serializer()]; + serializers = [PutAndGetInlineDocumentsInputOutputAwsJson11Serializer()]; _i3.JsonObject? get inlineDocument; @override @@ -56,34 +57,29 @@ abstract class PutAndGetInlineDocumentsInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('PutAndGetInlineDocumentsInputOutput') - ..add( - 'inlineDocument', - inlineDocument, - ); + final helper = newBuiltValueToStringHelper( + 'PutAndGetInlineDocumentsInputOutput', + )..add('inlineDocument', inlineDocument); return helper.toString(); } } -class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i1 - .StructuredSmithySerializer { +class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer + extends + _i1.StructuredSmithySerializer { const PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - : super('PutAndGetInlineDocumentsInputOutput'); + : super('PutAndGetInlineDocumentsInputOutput'); @override Iterable get types => const [ - PutAndGetInlineDocumentsInputOutput, - _$PutAndGetInlineDocumentsInputOutput, - ]; + PutAndGetInlineDocumentsInputOutput, + _$PutAndGetInlineDocumentsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutAndGetInlineDocumentsInputOutput deserialize( @@ -102,10 +98,12 @@ class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i1 } switch (key) { case 'inlineDocument': - result.inlineDocument = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.JsonObject), - ) as _i3.JsonObject); + result.inlineDocument = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.JsonObject), + ) + as _i3.JsonObject); } } @@ -123,10 +121,12 @@ class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i1 if (inlineDocument != null) { result$ ..add('inlineDocument') - ..add(serializers.serialize( - inlineDocument, - specifiedType: const FullType(_i3.JsonObject), - )); + ..add( + serializers.serialize( + inlineDocument, + specifiedType: const FullType(_i3.JsonObject), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart index 7d47ad5ff3..6419d7ca21 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_and_get_inline_documents_input_output.g.dart @@ -11,9 +11,9 @@ class _$PutAndGetInlineDocumentsInputOutput @override final _i3.JsonObject? inlineDocument; - factory _$PutAndGetInlineDocumentsInputOutput( - [void Function(PutAndGetInlineDocumentsInputOutputBuilder)? - updates]) => + factory _$PutAndGetInlineDocumentsInputOutput([ + void Function(PutAndGetInlineDocumentsInputOutputBuilder)? updates, + ]) => (new PutAndGetInlineDocumentsInputOutputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$PutAndGetInlineDocumentsInputOutput @override PutAndGetInlineDocumentsInputOutput rebuild( - void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutAndGetInlineDocumentsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutAndGetInlineDocumentsInputOutputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$PutAndGetInlineDocumentsInputOutput class PutAndGetInlineDocumentsInputOutputBuilder implements - Builder { + Builder< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutputBuilder + > { _$PutAndGetInlineDocumentsInputOutput? _$v; _i3.JsonObject? _inlineDocument; @@ -74,7 +76,8 @@ class PutAndGetInlineDocumentsInputOutputBuilder @override void update( - void Function(PutAndGetInlineDocumentsInputOutputBuilder)? updates) { + void Function(PutAndGetInlineDocumentsInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -82,9 +85,11 @@ class PutAndGetInlineDocumentsInputOutputBuilder PutAndGetInlineDocumentsInputOutput build() => _build(); _$PutAndGetInlineDocumentsInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutAndGetInlineDocumentsInputOutput._( - inlineDocument: inlineDocument); + inlineDocument: inlineDocument, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart index bd03c3d138..69760959fb 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class PutWithContentEncodingInput _i2.AWSEquatable implements Built { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -36,11 +30,10 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputAwsJson11Serializer()]; + serializers = [PutWithContentEncodingInputAwsJson11Serializer()]; String? get encoding; String? get data; @@ -48,22 +41,14 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput getPayload() => this; @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class PutWithContentEncodingInput class PutWithContentEncodingInputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson11Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutWithContentEncodingInput deserialize( @@ -104,15 +86,19 @@ class PutWithContentEncodingInputAwsJson11Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,18 +116,19 @@ class PutWithContentEncodingInputAwsJson11Serializer if (encoding != null) { result$ ..add('encoding') - ..add(serializers.serialize( - encoding, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + encoding, + specifiedType: const FullType(String), + ), + ); } if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart index 43d33e396f..ce25012d07 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_config.dart index 8178577ec0..3ad0c97941 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsJson11Serializer() + RetryConfigAwsJson11Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsJson11Serializer const RetryConfigAwsJson11Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigAwsJson11Serializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -121,18 +105,19 @@ class RetryConfigAwsJson11Serializer if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart index 1376279e5d..e6f807e700 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart index ded7d81ab0..f523a1c5fb 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.dart index c1ac1ee3d3..160312b045 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsJson11Serializer() + S3ConfigAwsJson11Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsJson11Serializer const S3ConfigAwsJson11Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigAwsJson11Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigAwsJson11Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart index 915e334e6f..0df9d211cc 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsJson11Serializer() + ScopedConfigAwsJson11Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsJson11Serializer const ScopedConfigAwsJson11Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigAwsJson11Serializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigAwsJson11Serializer :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart index 52827f86f2..29b7ffd4d0 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,8 +15,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { factory SimpleScalarPropertiesInputOutput({ double? floatValue, double? doubleValue, @@ -27,9 +29,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -37,18 +39,16 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputAwsJson11Serializer()]; + serializers = [SimpleScalarPropertiesInputOutputAwsJson11Serializer()]; double? get floatValue; double? get doubleValue; @@ -56,23 +56,14 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutput getPayload() => this; @override - List get props => [ - floatValue, - doubleValue, - ]; + List get props => [floatValue, doubleValue]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -80,21 +71,18 @@ abstract class SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputAwsJson11Serializer extends _i1.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputAwsJson11Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -113,15 +101,19 @@ class SimpleScalarPropertiesInputOutputAwsJson11Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -139,18 +131,22 @@ class SimpleScalarPropertiesInputOutputAwsJson11Serializer if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add('doubleValue') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart index 88e2244582..9e2cd78ad9 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_scalar_properties_input_output.g.dart @@ -13,18 +13,19 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); _$SimpleScalarPropertiesInputOutput._({this.floatValue, this.doubleValue}) - : super._(); + : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -50,8 +51,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; double? _floatValue; @@ -82,7 +85,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -90,9 +94,12 @@ class SimpleScalarPropertiesInputOutputBuilder SimpleScalarPropertiesInputOutput build() => _build(); _$SimpleScalarPropertiesInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - floatValue: floatValue, doubleValue: doubleValue); + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart index 5961dfada1..af4f8a685e 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/simple_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.simple_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class SimpleStruct const SimpleStruct._(); static const List<_i2.SmithySerializer> serializers = [ - SimpleStructAwsJson11Serializer() + SimpleStructAwsJson11Serializer(), ]; String? get value; @@ -33,10 +33,7 @@ abstract class SimpleStruct @override String toString() { final helper = newBuiltValueToStringHelper('SimpleStruct') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -46,18 +43,12 @@ class SimpleStructAwsJson11Serializer const SimpleStructAwsJson11Serializer() : super('SimpleStruct'); @override - Iterable get types => const [ - SimpleStruct, - _$SimpleStruct, - ]; + Iterable get types => const [SimpleStruct, _$SimpleStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleStruct deserialize( @@ -76,10 +67,12 @@ class SimpleStructAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +90,9 @@ class SimpleStructAwsJson11Serializer if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart index c79ae830bc..da6f411021 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.struct_with_json_name; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,14 @@ abstract class StructWithJsonName return _$StructWithJsonName._(value: value); } - factory StructWithJsonName.build( - [void Function(StructWithJsonNameBuilder) updates]) = - _$StructWithJsonName; + factory StructWithJsonName.build([ + void Function(StructWithJsonNameBuilder) updates, + ]) = _$StructWithJsonName; const StructWithJsonName._(); static const List<_i2.SmithySerializer> serializers = [ - StructWithJsonNameAwsJson11Serializer() + StructWithJsonNameAwsJson11Serializer(), ]; String? get value; @@ -34,10 +34,7 @@ abstract class StructWithJsonName @override String toString() { final helper = newBuiltValueToStringHelper('StructWithJsonName') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -47,18 +44,12 @@ class StructWithJsonNameAwsJson11Serializer const StructWithJsonNameAwsJson11Serializer() : super('StructWithJsonName'); @override - Iterable get types => const [ - StructWithJsonName, - _$StructWithJsonName, - ]; + Iterable get types => const [StructWithJsonName, _$StructWithJsonName]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override StructWithJsonName deserialize( @@ -77,10 +68,12 @@ class StructWithJsonNameAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +91,9 @@ class StructWithJsonNameAwsJson11Serializer if (value != null) { result$ ..add('Value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart index 106b650047..3d138f01bc 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/struct_with_json_name.g.dart @@ -10,16 +10,16 @@ class _$StructWithJsonName extends StructWithJsonName { @override final String? value; - factory _$StructWithJsonName( - [void Function(StructWithJsonNameBuilder)? updates]) => - (new StructWithJsonNameBuilder()..update(updates))._build(); + factory _$StructWithJsonName([ + void Function(StructWithJsonNameBuilder)? updates, + ]) => (new StructWithJsonNameBuilder()..update(updates))._build(); _$StructWithJsonName._({this.value}) : super._(); @override StructWithJsonName rebuild( - void Function(StructWithJsonNameBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructWithJsonNameBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructWithJsonNameBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart index 229fb23dcc..a31c591a34 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.model.union_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,8 +21,9 @@ abstract class UnionInputOutput } /// A shared structure that contains a single union member. - factory UnionInputOutput.build( - [void Function(UnionInputOutputBuilder) updates]) = _$UnionInputOutput; + factory UnionInputOutput.build([ + void Function(UnionInputOutputBuilder) updates, + ]) = _$UnionInputOutput; const UnionInputOutput._(); @@ -30,18 +31,16 @@ abstract class UnionInputOutput UnionInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [UnionInputOutput] from a [payload] and [response]. factory UnionInputOutput.fromResponse( UnionInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - UnionInputOutputAwsJson11Serializer() + UnionInputOutputAwsJson11Serializer(), ]; /// A union with a representative set of types for members. @@ -55,10 +54,7 @@ abstract class UnionInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('UnionInputOutput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -68,18 +64,12 @@ class UnionInputOutputAwsJson11Serializer const UnionInputOutputAwsJson11Serializer() : super('UnionInputOutput'); @override - Iterable get types => const [ - UnionInputOutput, - _$UnionInputOutput, - ]; + Iterable get types => const [UnionInputOutput, _$UnionInputOutput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnionInputOutput deserialize( @@ -98,10 +88,12 @@ class UnionInputOutputAwsJson11Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -119,10 +111,12 @@ class UnionInputOutputAwsJson11Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart index 9011ed9795..50563b878c 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/model/union_input_output.g.dart @@ -10,9 +10,9 @@ class _$UnionInputOutput extends UnionInputOutput { @override final MyUnion? contents; - factory _$UnionInputOutput( - [void Function(UnionInputOutputBuilder)? updates]) => - (new UnionInputOutputBuilder()..update(updates))._build(); + factory _$UnionInputOutput([ + void Function(UnionInputOutputBuilder)? updates, + ]) => (new UnionInputOutputBuilder()..update(updates))._build(); _$UnionInputOutput._({this.contents}) : super._(); diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart index 9ebf70e882..01ff831f5d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,8 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, @@ -22,20 +28,27 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -46,14 +59,14 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,9 +86,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -84,11 +97,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i4.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +121,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart index b5fb116c5d..1cd4974767 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/empty_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.empty_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,37 +21,35 @@ class EmptyOperation const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.EmptyOperation', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.EmptyOperation'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,18 +69,15 @@ class EmptyOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +102,7 @@ class EmptyOperation _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart index e38ad69536..888541ba89 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,19 +21,20 @@ class EndpointOperation const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -44,14 +45,14 @@ class EndpointOperation service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,19 +72,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +106,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart index a1f95af92e..176bed6211 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,8 +13,9 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, @@ -22,20 +23,22 @@ class EndpointWithHostLabelOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -47,14 +50,14 @@ class EndpointWithHostLabelOperation extends _i1 service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,19 +77,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -111,11 +111,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart index 1bc66d7cd9..5157e42dd3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,8 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, @@ -22,20 +28,27 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -46,14 +59,14 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,9 +86,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -84,11 +97,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i4.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +121,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart index a05df63f34..b341549b20 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A ComplexError error. Implementations must be able to successfully take a response and properly deserialize successful and error responses. GreetingWithErrorsOperation({ required String region, @@ -27,20 +33,27 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -51,14 +64,14 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,9 +91,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -89,42 +102,32 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i4.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'FooError', - ), - _i1.ErrorKind.server, - FooError, - builder: FooError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.json', shape: 'FooError'), + _i1.ErrorKind.server, + FooError, + builder: FooError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -145,11 +148,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart index 53114c7d44..639aca563f 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,19 +21,20 @@ class HostWithPathOperation const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithHeader( 'X-Amz-Target', @@ -44,14 +45,14 @@ class HostWithPathOperation service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,18 +72,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +105,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart index 3d0c016ee9..2aeed2197b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.json_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes enums as top level properties, in lists, sets, and maps. -class JsonEnumsOperation extends _i1.HttpOperation { +class JsonEnumsOperation + extends + _i1.HttpOperation< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. JsonEnumsOperation({ required String region, @@ -24,39 +30,43 @@ class JsonEnumsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.JsonEnums', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.JsonEnums'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -88,11 +98,7 @@ class JsonEnumsOperation extends _i1.HttpOperation - JsonEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -116,11 +122,7 @@ class JsonEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart index d2ad43f50d..5cff781f1c 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.json_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes intEnums as top level properties, in lists, sets, and maps. -class JsonIntEnumsOperation extends _i1.HttpOperation { +class JsonIntEnumsOperation + extends + _i1.HttpOperation< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > { /// This example serializes intEnums as top level properties, in lists, sets, and maps. JsonIntEnumsOperation({ required String region, @@ -24,39 +30,43 @@ class JsonIntEnumsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.JsonIntEnums', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.JsonIntEnums'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -88,11 +98,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation - JsonIntEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonIntEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -116,11 +122,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart index cd823c4c39..2295f02b9c 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/json_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.json_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This operation uses unions for inputs and outputs. -class JsonUnionsOperation extends _i1.HttpOperation { +class JsonUnionsOperation + extends + _i1.HttpOperation< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > { /// This operation uses unions for inputs and outputs. JsonUnionsOperation({ required String region, @@ -24,39 +30,43 @@ class JsonUnionsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.JsonUnions', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.JsonUnions'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,9 +86,9 @@ class JsonUnionsOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([UnionInputOutput? output]) => 200; @@ -87,11 +97,7 @@ class JsonUnionsOperation extends _i1.HttpOperation - UnionInputOutput.fromResponse( - payload, - response, - ); + ) => UnionInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -115,11 +121,7 @@ class JsonUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart index af94a6dade..b8be181a56 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/kitchen_sink_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.kitchen_sink_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,8 +15,9 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class KitchenSinkOperation extends _i1 - .HttpOperation { +class KitchenSinkOperation + extends + _i1.HttpOperation { KitchenSinkOperation({ required String region, Uri? baseUri, @@ -24,20 +25,22 @@ class KitchenSinkOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -49,14 +52,14 @@ class KitchenSinkOperation extends _i1 service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,9 +79,9 @@ class KitchenSinkOperation extends _i1 @override _i1.HttpRequest buildRequest(KitchenSink input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([KitchenSink? output]) => 200; @@ -87,33 +90,29 @@ class KitchenSinkOperation extends _i1 KitchenSink buildOutput( KitchenSink payload, _i4.AWSBaseHttpResponse response, - ) => - KitchenSink.fromResponse( - payload, - response, - ); + ) => KitchenSink.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithMembers', - ), - _i1.ErrorKind.client, - ErrorWithMembers, - builder: ErrorWithMembers.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.json', - shape: 'ErrorWithoutMembers', - ), - _i1.ErrorKind.server, - ErrorWithoutMembers, - builder: ErrorWithoutMembers.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithMembers', + ), + _i1.ErrorKind.client, + ErrorWithMembers, + builder: ErrorWithMembers.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.json', + shape: 'ErrorWithoutMembers', + ), + _i1.ErrorKind.server, + ErrorWithoutMembers, + builder: ErrorWithoutMembers.fromResponse, + ), + ]; @override String get runtimeTypeName => 'KitchenSinkOperation'; @@ -134,11 +133,7 @@ class KitchenSinkOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart index b2f446e229..a3df8018df 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/null_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.null_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,11 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class NullOperation extends _i1.HttpOperation< - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput, - NullOperationInputOutput> { +class NullOperation + extends + _i1.HttpOperation< + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput + > { NullOperation({ required String region, Uri? baseUri, @@ -25,39 +28,43 @@ class NullOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput, + NullOperationInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'JsonProtocol.NullOperation', - ), + const _i1.WithHeader('X-Amz-Target', 'JsonProtocol.NullOperation'), _i3.WithSigV4( region: _region, service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -89,11 +96,7 @@ class NullOperation extends _i1.HttpOperation< NullOperationInputOutput buildOutput( NullOperationInputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - NullOperationInputOutput.fromResponse( - payload, - response, - ); + ) => NullOperationInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -117,11 +120,7 @@ class NullOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart index ba2171f535..07e00cf3d1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/operation_with_optional_input_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.operation_with_optional_input_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,11 +14,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputOutput, - OperationWithOptionalInputOutputOutput> { +class OperationWithOptionalInputOutputOperation + extends + _i1.HttpOperation< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutput + > { OperationWithOptionalInputOutputOperation({ required String region, Uri? baseUri, @@ -26,23 +29,27 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputInput, - OperationWithOptionalInputOutputOutput, - OperationWithOptionalInputOutputOutput>> protocols = [ + _i1.HttpProtocol< + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputInput, + OperationWithOptionalInputOutputOutput, + OperationWithOptionalInputOutputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -54,14 +61,14 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -93,11 +100,7 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< OperationWithOptionalInputOutputOutput buildOutput( OperationWithOptionalInputOutputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - OperationWithOptionalInputOutputOutput.fromResponse( - payload, - response, - ); + ) => OperationWithOptionalInputOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -121,11 +124,7 @@ class OperationWithOptionalInputOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart index 4d63e93e64..c276445601 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_and_get_inline_documents_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.put_and_get_inline_documents_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,11 +14,14 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes an inline document as part of the payload. -class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput> { +class PutAndGetInlineDocumentsOperation + extends + _i1.HttpOperation< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput + > { /// This example serializes an inline document as part of the payload. PutAndGetInlineDocumentsOperation({ required String region, @@ -27,23 +30,27 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput, - PutAndGetInlineDocumentsInputOutput>> protocols = [ + _i1.HttpProtocol< + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput, + PutAndGetInlineDocumentsInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -55,14 +62,14 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -94,11 +101,7 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< PutAndGetInlineDocumentsInputOutput buildOutput( PutAndGetInlineDocumentsInputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - PutAndGetInlineDocumentsInputOutput.fromResponse( - payload, - response, - ); + ) => PutAndGetInlineDocumentsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -122,11 +125,7 @@ class PutAndGetInlineDocumentsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart index 2140b96b57..b89059a3de 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,11 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, @@ -25,20 +28,27 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -50,14 +60,14 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -91,10 +101,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -119,11 +126,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart index 31482aac5e..ad9a29383d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/json_protocol/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.json_protocol.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,11 +13,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, @@ -25,23 +28,27 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -53,14 +60,14 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< service: _i4.AWSService.iam, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -92,11 +99,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutput payload, _i4.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -120,11 +123,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart index 9fec141b67..5f84ea3dd2 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -60,10 +60,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -78,10 +75,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -111,15 +105,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Machine Learning'; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/serializers.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/serializers.dart index bd33a34be7..313bd03e04 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/serializers.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,32 +48,15 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(DetailsAttributes), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(double)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(DetailsAttributes), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart index f99edd7453..4cefbc13af 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.machine_learning_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,12 +19,12 @@ class MachineLearningClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -49,9 +49,6 @@ class MachineLearningClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart index b29e394a08..284335e672 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/machine_learning_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.machine_learning_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,18 +32,14 @@ abstract class MachineLearningServerBase extends _i1.HttpServerBase { router.add( 'POST', '/', - _i1.RpcRouter( - 'X-Amz-Target', - {'AmazonML_20141212.Predict': service.predict}, - ), + _i1.RpcRouter('X-Amz-Target', { + 'AmazonML_20141212.Predict': service.predict, + }), ); return router; }(); - _i3.Future predict( - PredictInput input, - _i1.Context context, - ); + _i3.Future predict(PredictInput input, _i1.Context context); _i3.Future<_i4.Response> call(_i4.Request request) => _router(request); } @@ -53,9 +49,13 @@ class _MachineLearningServer extends _i1.HttpServer { @override final MachineLearningServerBase service; - late final _i1 - .HttpProtocol - _predictProtocol = _i2.AwsJson1_1Protocol( + late final _i1.HttpProtocol< + PredictInput, + PredictInput, + PredictOutput, + PredictOutput + > + _predictProtocol = _i2.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -65,26 +65,18 @@ class _MachineLearningServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _predictProtocol.contentType; try { - final payload = (await _predictProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PredictInput), - ) as PredictInput); - final input = PredictInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); - final output = await service.predict( - input, - context, - ); + final payload = + (await _predictProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(PredictInput), + ) + as PredictInput); + final input = PredictInput.fromRequest(payload, awsRequest, labels: {}); + final output = await service.predict(input, context); const statusCode = 200; final body = await _predictProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - PredictOutput, - [FullType(PredictOutput)], - ), + specifiedType: const FullType(PredictOutput, [FullType(PredictOutput)]), ); return _i4.Response( statusCode, @@ -94,10 +86,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on InternalServerException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InternalServerException, - [FullType(InternalServerException)], - ), + specifiedType: const FullType(InternalServerException, [ + FullType(InternalServerException), + ]), ); const statusCode = 500; return _i4.Response( @@ -108,10 +99,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on InvalidInputException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidInputException, - [FullType(InvalidInputException)], - ), + specifiedType: const FullType(InvalidInputException, [ + FullType(InvalidInputException), + ]), ); const statusCode = 400; return _i4.Response( @@ -122,10 +112,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on LimitExceededException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - LimitExceededException, - [FullType(LimitExceededException)], - ), + specifiedType: const FullType(LimitExceededException, [ + FullType(LimitExceededException), + ]), ); const statusCode = 417; return _i4.Response( @@ -136,10 +125,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on PredictorNotMountedException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - PredictorNotMountedException, - [FullType(PredictorNotMountedException)], - ), + specifiedType: const FullType(PredictorNotMountedException, [ + FullType(PredictorNotMountedException), + ]), ); const statusCode = 400; return _i4.Response( @@ -150,10 +138,9 @@ class _MachineLearningServer extends _i1.HttpServer { } on ResourceNotFoundException catch (e) { final body = _predictProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ResourceNotFoundException, - [FullType(ResourceNotFoundException)], - ), + specifiedType: const FullType(ResourceNotFoundException, [ + FullType(ResourceNotFoundException), + ]), ); const statusCode = 404; return _i4.Response( @@ -162,10 +149,7 @@ class _MachineLearningServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.dart index 6f8fb285b0..983e95a94f 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsJson11Serializer() + AwsConfigAwsJson11Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsJson11Serializer const AwsConfigAwsJson11Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigAwsJson11Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigAwsJson11Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.dart index 58868afa53..7b1c6c305a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsJson11Serializer() + ClientConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsJson11Serializer const ClientConfigAwsJson11Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -193,63 +183,71 @@ class ClientConfigAwsJson11Serializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart index eae86fe2d9..5691e8009d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/details_attributes.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.details_attributes; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class DetailsAttributes extends _i1.SmithyEnum { - const DetailsAttributes._( - super.index, - super.name, - super.value, - ); + const DetailsAttributes._(super.index, super.name, super.value); const DetailsAttributes._sdkUnknown(super.value) : super.sdkUnknown(); - static const algorithm = DetailsAttributes._( - 0, - 'ALGORITHM', - 'Algorithm', - ); + static const algorithm = DetailsAttributes._(0, 'ALGORITHM', 'Algorithm'); static const predictiveModelType = DetailsAttributes._( 1, @@ -38,12 +30,9 @@ class DetailsAttributes extends _i1.SmithyEnum { values: values, sdkUnknown: DetailsAttributes._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.dart index 0ec8cd9e7c..040e69dfbb 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsJson11Serializer() + EnvironmentConfigAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsJson11Serializer const EnvironmentConfigAwsJson11Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigAwsJson11Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigAwsJson11Serializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart index 9d509cce62..d0b14cc0c9 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsJson11Serializer() + FileConfigSettingsAwsJson11Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsJson11Serializer const FileConfigSettingsAwsJson11Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsAwsJson11Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -194,63 +183,71 @@ class FileConfigSettingsAwsJson11Serializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart index d37a9d2bf1..a47b0730bb 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.internal_server_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class InternalServerException implements Built, _i2.SmithyHttpException { - factory InternalServerException({ - String? message, - int? code, - }) { - return _$InternalServerException._( - message: message, - code: code, - ); + factory InternalServerException({String? message, int? code}) { + return _$InternalServerException._(message: message, code: code); } - factory InternalServerException.build( - [void Function(InternalServerExceptionBuilder) updates]) = - _$InternalServerException; + factory InternalServerException.build([ + void Function(InternalServerExceptionBuilder) updates, + ]) = _$InternalServerException; const InternalServerException._(); @@ -35,10 +29,9 @@ abstract class InternalServerException factory InternalServerException.fromResponse( InternalServerException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [InternalServerExceptionAwsJson11Serializer()]; @@ -48,9 +41,9 @@ abstract class InternalServerException int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InternalServerException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'InternalServerException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,22 +59,14 @@ abstract class InternalServerException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('InternalServerException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('InternalServerException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -89,21 +74,18 @@ abstract class InternalServerException class InternalServerExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InternalServerExceptionAwsJson11Serializer() - : super('InternalServerException'); + : super('InternalServerException'); @override Iterable get types => const [ - InternalServerException, - _$InternalServerException, - ]; + InternalServerException, + _$InternalServerException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InternalServerException deserialize( @@ -122,15 +104,19 @@ class InternalServerExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -148,18 +134,14 @@ class InternalServerExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart index 037be1aacf..ea9b68f0cb 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/internal_server_exception.g.dart @@ -14,17 +14,17 @@ class _$InternalServerException extends InternalServerException { @override final Map? headers; - factory _$InternalServerException( - [void Function(InternalServerExceptionBuilder)? updates]) => - (new InternalServerExceptionBuilder()..update(updates))._build(); + factory _$InternalServerException([ + void Function(InternalServerExceptionBuilder)? updates, + ]) => (new InternalServerExceptionBuilder()..update(updates))._build(); _$InternalServerException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override InternalServerException rebuild( - void Function(InternalServerExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InternalServerExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InternalServerExceptionBuilder toBuilder() => @@ -93,9 +93,13 @@ class InternalServerExceptionBuilder InternalServerException build() => _build(); _$InternalServerException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InternalServerException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart index 9206fbc9f1..63310e9269 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.invalid_input_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class InvalidInputException implements Built, _i2.SmithyHttpException { - factory InvalidInputException({ - String? message, - int? code, - }) { - return _$InvalidInputException._( - message: message, - code: code, - ); + factory InvalidInputException({String? message, int? code}) { + return _$InvalidInputException._(message: message, code: code); } - factory InvalidInputException.build( - [void Function(InvalidInputExceptionBuilder) updates]) = - _$InvalidInputException; + factory InvalidInputException.build([ + void Function(InvalidInputExceptionBuilder) updates, + ]) = _$InvalidInputException; const InvalidInputException._(); @@ -35,13 +29,12 @@ abstract class InvalidInputException factory InvalidInputException.fromResponse( InvalidInputException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidInputExceptionAwsJson11Serializer() + InvalidInputExceptionAwsJson11Serializer(), ]; @override @@ -49,9 +42,9 @@ abstract class InvalidInputException int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InvalidInputException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'InvalidInputException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,22 +60,14 @@ abstract class InvalidInputException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('InvalidInputException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('InvalidInputException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -90,21 +75,18 @@ abstract class InvalidInputException class InvalidInputExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InvalidInputExceptionAwsJson11Serializer() - : super('InvalidInputException'); + : super('InvalidInputException'); @override Iterable get types => const [ - InvalidInputException, - _$InvalidInputException, - ]; + InvalidInputException, + _$InvalidInputException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidInputException deserialize( @@ -123,15 +105,19 @@ class InvalidInputExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -149,18 +135,14 @@ class InvalidInputExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart index 82e93039fe..8b12c3cb3b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/invalid_input_exception.g.dart @@ -14,17 +14,17 @@ class _$InvalidInputException extends InvalidInputException { @override final Map? headers; - factory _$InvalidInputException( - [void Function(InvalidInputExceptionBuilder)? updates]) => - (new InvalidInputExceptionBuilder()..update(updates))._build(); + factory _$InvalidInputException([ + void Function(InvalidInputExceptionBuilder)? updates, + ]) => (new InvalidInputExceptionBuilder()..update(updates))._build(); _$InvalidInputException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override InvalidInputException rebuild( - void Function(InvalidInputExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidInputExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidInputExceptionBuilder toBuilder() => @@ -92,9 +92,13 @@ class InvalidInputExceptionBuilder InvalidInputException build() => _build(); _$InvalidInputException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidInputException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart index 620ec42e86..ba9e67120a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.limit_exceeded_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class LimitExceededException implements Built, _i2.SmithyHttpException { - factory LimitExceededException({ - String? message, - int? code, - }) { - return _$LimitExceededException._( - message: message, - code: code, - ); + factory LimitExceededException({String? message, int? code}) { + return _$LimitExceededException._(message: message, code: code); } - factory LimitExceededException.build( - [void Function(LimitExceededExceptionBuilder) updates]) = - _$LimitExceededException; + factory LimitExceededException.build([ + void Function(LimitExceededExceptionBuilder) updates, + ]) = _$LimitExceededException; const LimitExceededException._(); @@ -35,10 +29,9 @@ abstract class LimitExceededException factory LimitExceededException.fromResponse( LimitExceededException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [LimitExceededExceptionAwsJson11Serializer()]; @@ -48,9 +41,9 @@ abstract class LimitExceededException int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'LimitExceededException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'LimitExceededException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,22 +59,14 @@ abstract class LimitExceededException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('LimitExceededException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('LimitExceededException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -89,21 +74,18 @@ abstract class LimitExceededException class LimitExceededExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const LimitExceededExceptionAwsJson11Serializer() - : super('LimitExceededException'); + : super('LimitExceededException'); @override Iterable get types => const [ - LimitExceededException, - _$LimitExceededException, - ]; + LimitExceededException, + _$LimitExceededException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override LimitExceededException deserialize( @@ -122,15 +104,19 @@ class LimitExceededExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -148,18 +134,14 @@ class LimitExceededExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart index ef3344a863..49c5dba315 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/limit_exceeded_exception.g.dart @@ -14,17 +14,17 @@ class _$LimitExceededException extends LimitExceededException { @override final Map? headers; - factory _$LimitExceededException( - [void Function(LimitExceededExceptionBuilder)? updates]) => - (new LimitExceededExceptionBuilder()..update(updates))._build(); + factory _$LimitExceededException([ + void Function(LimitExceededExceptionBuilder)? updates, + ]) => (new LimitExceededExceptionBuilder()..update(updates))._build(); _$LimitExceededException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override LimitExceededException rebuild( - void Function(LimitExceededExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(LimitExceededExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override LimitExceededExceptionBuilder toBuilder() => @@ -92,9 +92,13 @@ class LimitExceededExceptionBuilder LimitExceededException build() => _build(); _$LimitExceededException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$LimitExceededException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.dart index 72346cc92d..ac4b6cb75d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsJson11Serializer() + OperationConfigAwsJson11Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsJson11Serializer const OperationConfigAwsJson11Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigAwsJson11Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigAwsJson11Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.dart index 56ef02c6c5..62da19e98a 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.predict_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,11 +35,10 @@ abstract class PredictInput PredictInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - PredictInputAwsJson11Serializer() + PredictInputAwsJson11Serializer(), ]; String get mlModelId; @@ -49,27 +48,15 @@ abstract class PredictInput PredictInput getPayload() => this; @override - List get props => [ - mlModelId, - record, - predictEndpoint, - ]; + List get props => [mlModelId, record, predictEndpoint]; @override String toString() { - final helper = newBuiltValueToStringHelper('PredictInput') - ..add( - 'mlModelId', - mlModelId, - ) - ..add( - 'record', - record, - ) - ..add( - 'predictEndpoint', - predictEndpoint, - ); + final helper = + newBuiltValueToStringHelper('PredictInput') + ..add('mlModelId', mlModelId) + ..add('record', record) + ..add('predictEndpoint', predictEndpoint); return helper.toString(); } } @@ -79,18 +66,12 @@ class PredictInputAwsJson11Serializer const PredictInputAwsJson11Serializer() : super('PredictInput'); @override - Iterable get types => const [ - PredictInput, - _$PredictInput, - ]; + Iterable get types => const [PredictInput, _$PredictInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictInput deserialize( @@ -109,26 +90,30 @@ class PredictInputAwsJson11Serializer } switch (key) { case 'MLModelId': - result.mlModelId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.mlModelId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Record': - result.record.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.record.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'PredictEndpoint': - result.predictEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -145,20 +130,14 @@ class PredictInputAwsJson11Serializer final PredictInput(:mlModelId, :record, :predictEndpoint) = object; result$.addAll([ 'MLModelId', - serializers.serialize( - mlModelId, - specifiedType: const FullType(String), - ), + serializers.serialize(mlModelId, specifiedType: const FullType(String)), 'Record', serializers.serialize( record, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), ), 'PredictEndpoint', serializers.serialize( diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart index ecb4bb7059..9c5ba545f4 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_input.g.dart @@ -17,16 +17,22 @@ class _$PredictInput extends PredictInput { factory _$PredictInput([void Function(PredictInputBuilder)? updates]) => (new PredictInputBuilder()..update(updates))._build(); - _$PredictInput._( - {required this.mlModelId, - required this.record, - required this.predictEndpoint}) - : super._() { + _$PredictInput._({ + required this.mlModelId, + required this.record, + required this.predictEndpoint, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - mlModelId, r'PredictInput', 'mlModelId'); + mlModelId, + r'PredictInput', + 'mlModelId', + ); BuiltValueNullFieldError.checkNotNull(record, r'PredictInput', 'record'); BuiltValueNullFieldError.checkNotNull( - predictEndpoint, r'PredictInput', 'predictEndpoint'); + predictEndpoint, + r'PredictInput', + 'predictEndpoint', + ); } @override @@ -104,13 +110,21 @@ class PredictInputBuilder _$PredictInput _build() { _$PredictInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PredictInput._( - mlModelId: BuiltValueNullFieldError.checkNotNull( - mlModelId, r'PredictInput', 'mlModelId'), - record: record.build(), - predictEndpoint: BuiltValueNullFieldError.checkNotNull( - predictEndpoint, r'PredictInput', 'predictEndpoint')); + mlModelId: BuiltValueNullFieldError.checkNotNull( + mlModelId, + r'PredictInput', + 'mlModelId', + ), + record: record.build(), + predictEndpoint: BuiltValueNullFieldError.checkNotNull( + predictEndpoint, + r'PredictInput', + 'predictEndpoint', + ), + ); } catch (_) { late String _$failedField; try { @@ -118,7 +132,10 @@ class PredictInputBuilder record.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PredictInput', _$failedField, e.toString()); + r'PredictInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.dart index 446c02ac1c..a0c4ba0b6b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.predict_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,11 +27,10 @@ abstract class PredictOutput factory PredictOutput.fromResponse( PredictOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - PredictOutputAwsJson11Serializer() + PredictOutputAwsJson11Serializer(), ]; Prediction? get prediction; @@ -41,10 +40,7 @@ abstract class PredictOutput @override String toString() { final helper = newBuiltValueToStringHelper('PredictOutput') - ..add( - 'prediction', - prediction, - ); + ..add('prediction', prediction); return helper.toString(); } } @@ -54,18 +50,12 @@ class PredictOutputAwsJson11Serializer const PredictOutputAwsJson11Serializer() : super('PredictOutput'); @override - Iterable get types => const [ - PredictOutput, - _$PredictOutput, - ]; + Iterable get types => const [PredictOutput, _$PredictOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictOutput deserialize( @@ -84,10 +74,13 @@ class PredictOutputAwsJson11Serializer } switch (key) { case 'Prediction': - result.prediction.replace((serializers.deserialize( - value, - specifiedType: const FullType(Prediction), - ) as Prediction)); + result.prediction.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Prediction), + ) + as Prediction), + ); } } @@ -105,10 +98,12 @@ class PredictOutputAwsJson11Serializer if (prediction != null) { result$ ..add('Prediction') - ..add(serializers.serialize( - prediction, - specifiedType: const FullType(Prediction), - )); + ..add( + serializers.serialize( + prediction, + specifiedType: const FullType(Prediction), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart index 5d3a363047..2e0d971369 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predict_output.g.dart @@ -83,7 +83,10 @@ class PredictOutputBuilder _prediction?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PredictOutput', _$failedField, e.toString()); + r'PredictOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.dart index 48b459eef4..4f5bf2f50f 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.prediction; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,7 +36,7 @@ abstract class Prediction const Prediction._(); static const List<_i3.SmithySerializer> serializers = [ - PredictionAwsJson11Serializer() + PredictionAwsJson11Serializer(), ]; String? get predictedLabel; @@ -45,31 +45,20 @@ abstract class Prediction _i2.BuiltMap? get details; @override List get props => [ - predictedLabel, - predictedValue, - predictedScores, - details, - ]; + predictedLabel, + predictedValue, + predictedScores, + details, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('Prediction') - ..add( - 'predictedLabel', - predictedLabel, - ) - ..add( - 'predictedValue', - predictedValue, - ) - ..add( - 'predictedScores', - predictedScores, - ) - ..add( - 'details', - details, - ); + final helper = + newBuiltValueToStringHelper('Prediction') + ..add('predictedLabel', predictedLabel) + ..add('predictedValue', predictedValue) + ..add('predictedScores', predictedScores) + ..add('details', details); return helper.toString(); } } @@ -79,18 +68,12 @@ class PredictionAwsJson11Serializer const PredictionAwsJson11Serializer() : super('Prediction'); @override - Iterable get types => const [ - Prediction, - _$Prediction, - ]; + Iterable get types => const [Prediction, _$Prediction]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override Prediction deserialize( @@ -109,37 +92,41 @@ class PredictionAwsJson11Serializer } switch (key) { case 'predictedLabel': - result.predictedLabel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictedLabel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'predictedValue': - result.predictedValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.predictedValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'predictedScores': - result.predictedScores.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i2.BuiltMap)); + result.predictedScores.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i2.BuiltMap), + ); case 'details': - result.details.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(DetailsAttributes), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.details.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(DetailsAttributes), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); } } @@ -157,51 +144,53 @@ class PredictionAwsJson11Serializer :predictedLabel, :predictedValue, :predictedScores, - :details + :details, ) = object; if (predictedLabel != null) { result$ ..add('predictedLabel') - ..add(serializers.serialize( - predictedLabel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + predictedLabel, + specifiedType: const FullType(String), + ), + ); } if (predictedValue != null) { result$ ..add('predictedValue') - ..add(serializers.serialize( - predictedValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + predictedValue, + specifiedType: const FullType(double), + ), + ); } if (predictedScores != null) { result$ ..add('predictedScores') - ..add(serializers.serialize( - predictedScores, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + predictedScores, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(double), - ], + ]), ), - )); + ); } if (details != null) { result$ ..add('details') - ..add(serializers.serialize( - details, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + details, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(DetailsAttributes), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart index d3b070c819..817697d964 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/prediction.g.dart @@ -19,12 +19,12 @@ class _$Prediction extends Prediction { factory _$Prediction([void Function(PredictionBuilder)? updates]) => (new PredictionBuilder()..update(updates))._build(); - _$Prediction._( - {this.predictedLabel, - this.predictedValue, - this.predictedScores, - this.details}) - : super._(); + _$Prediction._({ + this.predictedLabel, + this.predictedValue, + this.predictedScores, + this.details, + }) : super._(); @override Prediction rebuild(void Function(PredictionBuilder) updates) => @@ -111,12 +111,14 @@ class PredictionBuilder implements Builder { _$Prediction _build() { _$Prediction _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$Prediction._( - predictedLabel: predictedLabel, - predictedValue: predictedValue, - predictedScores: _predictedScores?.build(), - details: _details?.build()); + predictedLabel: predictedLabel, + predictedValue: predictedValue, + predictedScores: _predictedScores?.build(), + details: _details?.build(), + ); } catch (_) { late String _$failedField; try { @@ -126,7 +128,10 @@ class PredictionBuilder implements Builder { _details?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'Prediction', _$failedField, e.toString()); + r'Prediction', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart index c2275d2d0b..3383bf7cb3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.predictor_not_mounted_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'predictor_not_mounted_exception.g.dart'; abstract class PredictorNotMountedException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + PredictorNotMountedException, + PredictorNotMountedExceptionBuilder + >, _i2.SmithyHttpException { factory PredictorNotMountedException({String? message}) { return _$PredictorNotMountedException._(message: message); } - factory PredictorNotMountedException.build( - [void Function(PredictorNotMountedExceptionBuilder) updates]) = - _$PredictorNotMountedException; + factory PredictorNotMountedException.build([ + void Function(PredictorNotMountedExceptionBuilder) updates, + ]) = _$PredictorNotMountedException; const PredictorNotMountedException._(); @@ -31,21 +32,20 @@ abstract class PredictorNotMountedException factory PredictorNotMountedException.fromResponse( PredictorNotMountedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [PredictorNotMountedExceptionAwsJson11Serializer()]; + serializers = [PredictorNotMountedExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'PredictorNotMountedException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'PredictorNotMountedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,10 +66,7 @@ abstract class PredictorNotMountedException @override String toString() { final helper = newBuiltValueToStringHelper('PredictorNotMountedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class PredictorNotMountedException class PredictorNotMountedExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const PredictorNotMountedExceptionAwsJson11Serializer() - : super('PredictorNotMountedException'); + : super('PredictorNotMountedException'); @override Iterable get types => const [ - PredictorNotMountedException, - _$PredictorNotMountedException, - ]; + PredictorNotMountedException, + _$PredictorNotMountedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictorNotMountedException deserialize( @@ -110,10 +104,12 @@ class PredictorNotMountedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +127,9 @@ class PredictorNotMountedExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart index 4187adff85..d22d98e08e 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/predictor_not_mounted_exception.g.dart @@ -12,16 +12,16 @@ class _$PredictorNotMountedException extends PredictorNotMountedException { @override final Map? headers; - factory _$PredictorNotMountedException( - [void Function(PredictorNotMountedExceptionBuilder)? updates]) => - (new PredictorNotMountedExceptionBuilder()..update(updates))._build(); + factory _$PredictorNotMountedException([ + void Function(PredictorNotMountedExceptionBuilder)? updates, + ]) => (new PredictorNotMountedExceptionBuilder()..update(updates))._build(); _$PredictorNotMountedException._({this.message, this.headers}) : super._(); @override PredictorNotMountedException rebuild( - void Function(PredictorNotMountedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PredictorNotMountedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PredictorNotMountedExceptionBuilder toBuilder() => @@ -44,8 +44,10 @@ class _$PredictorNotMountedException extends PredictorNotMountedException { class PredictorNotMountedExceptionBuilder implements - Builder { + Builder< + PredictorNotMountedException, + PredictorNotMountedExceptionBuilder + > { _$PredictorNotMountedException? _$v; String? _message; @@ -83,9 +85,12 @@ class PredictorNotMountedExceptionBuilder PredictorNotMountedException build() => _build(); _$PredictorNotMountedException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PredictorNotMountedException._( - message: message, headers: headers); + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart index 6ca80dd252..98aa707328 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.resource_not_found_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,19 +15,13 @@ abstract class ResourceNotFoundException implements Built, _i2.SmithyHttpException { - factory ResourceNotFoundException({ - String? message, - int? code, - }) { - return _$ResourceNotFoundException._( - message: message, - code: code, - ); + factory ResourceNotFoundException({String? message, int? code}) { + return _$ResourceNotFoundException._(message: message, code: code); } - factory ResourceNotFoundException.build( - [void Function(ResourceNotFoundExceptionBuilder) updates]) = - _$ResourceNotFoundException; + factory ResourceNotFoundException.build([ + void Function(ResourceNotFoundExceptionBuilder) updates, + ]) = _$ResourceNotFoundException; const ResourceNotFoundException._(); @@ -35,22 +29,21 @@ abstract class ResourceNotFoundException factory ResourceNotFoundException.fromResponse( ResourceNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; + serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; @override String? get message; int? get code; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'ResourceNotFoundException', - ); + namespace: 'com.amazonaws.machinelearning', + shape: 'ResourceNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -66,22 +59,14 @@ abstract class ResourceNotFoundException Exception? get underlyingException => null; @override - List get props => [ - message, - code, - ]; + List get props => [message, code]; @override String toString() { - final helper = newBuiltValueToStringHelper('ResourceNotFoundException') - ..add( - 'message', - message, - ) - ..add( - 'code', - code, - ); + final helper = + newBuiltValueToStringHelper('ResourceNotFoundException') + ..add('message', message) + ..add('code', code); return helper.toString(); } } @@ -89,21 +74,18 @@ abstract class ResourceNotFoundException class ResourceNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ResourceNotFoundExceptionAwsJson11Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ - ResourceNotFoundException, - _$ResourceNotFoundException, - ]; + ResourceNotFoundException, + _$ResourceNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceNotFoundException deserialize( @@ -122,15 +104,19 @@ class ResourceNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -148,18 +134,14 @@ class ResourceNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(code, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart index c6dae427b3..e881b9336e 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/resource_not_found_exception.g.dart @@ -14,17 +14,17 @@ class _$ResourceNotFoundException extends ResourceNotFoundException { @override final Map? headers; - factory _$ResourceNotFoundException( - [void Function(ResourceNotFoundExceptionBuilder)? updates]) => - (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); + factory _$ResourceNotFoundException([ + void Function(ResourceNotFoundExceptionBuilder)? updates, + ]) => (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); _$ResourceNotFoundException._({this.message, this.code, this.headers}) - : super._(); + : super._(); @override ResourceNotFoundException rebuild( - void Function(ResourceNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceNotFoundExceptionBuilder toBuilder() => @@ -93,9 +93,13 @@ class ResourceNotFoundExceptionBuilder ResourceNotFoundException build() => _build(); _$ResourceNotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ResourceNotFoundException._( - message: message, code: code, headers: headers); + message: message, + code: code, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_config.dart index c66276c4b4..74e54441f7 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsJson11Serializer() + RetryConfigAwsJson11Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsJson11Serializer const RetryConfigAwsJson11Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigAwsJson11Serializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -121,18 +105,19 @@ class RetryConfigAwsJson11Serializer if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart index 2a1b630414..b4dfa6407b 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart index fa06626e15..98f7496108 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.dart index e1efeba481..c8c804cbc8 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsJson11Serializer() + S3ConfigAwsJson11Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsJson11Serializer const S3ConfigAwsJson11Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigAwsJson11Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigAwsJson11Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart index 6e909d6d5f..35c1db7434 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsJson11Serializer() + ScopedConfigAwsJson11Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsJson11Serializer const ScopedConfigAwsJson11Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigAwsJson11Serializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigAwsJson11Serializer :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart index 401bc82d7a..cb51961cdd 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/lib/src/machine_learning/operation/predict_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_json1_1_v2.machine_learning.operation.predict_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,8 +19,14 @@ import 'package:aws_signature_v4/aws_signature_v4.dart' as _i2; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class PredictOperation extends _i1 - .HttpOperation { +class PredictOperation + extends + _i1.HttpOperation< + PredictInput, + PredictInput, + PredictOutput, + PredictOutput + > { PredictOperation({ required String region, Uri? baseUri, @@ -28,39 +34,38 @@ class PredictOperation extends _i1 const _i2.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i3.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithHeader( - 'X-Amz-Target', - 'AmazonML_20141212.Predict', - ), + const _i1.WithHeader('X-Amz-Target', 'AmazonML_20141212.Predict'), _i3.WithSigV4( region: _region, service: _i4.AWSService.machineLearning, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,9 +85,9 @@ class PredictOperation extends _i1 @override _i1.HttpRequest buildRequest(PredictInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([PredictOutput? output]) => 200; @@ -91,66 +96,61 @@ class PredictOperation extends _i1 PredictOutput buildOutput( PredictOutput payload, _i4.AWSBaseHttpResponse response, - ) => - PredictOutput.fromResponse( - payload, - response, - ); + ) => PredictOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InternalServerException', - ), - _i1.ErrorKind.server, - InternalServerException, - statusCode: 500, - builder: InternalServerException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'InvalidInputException', - ), - _i1.ErrorKind.client, - InvalidInputException, - statusCode: 400, - builder: InvalidInputException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'LimitExceededException', - ), - _i1.ErrorKind.client, - LimitExceededException, - statusCode: 417, - builder: LimitExceededException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'PredictorNotMountedException', - ), - _i1.ErrorKind.client, - PredictorNotMountedException, - statusCode: 400, - builder: PredictorNotMountedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.machinelearning', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'InternalServerException', + ), + _i1.ErrorKind.server, + InternalServerException, + statusCode: 500, + builder: InternalServerException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'InvalidInputException', + ), + _i1.ErrorKind.client, + InvalidInputException, + statusCode: 400, + builder: InvalidInputException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'LimitExceededException', + ), + _i1.ErrorKind.client, + LimitExceededException, + statusCode: 417, + builder: LimitExceededException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'PredictorNotMountedException', + ), + _i1.ErrorKind.client, + PredictorNotMountedException, + statusCode: 400, + builder: PredictorNotMountedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.machinelearning', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'Predict'; @@ -171,11 +171,7 @@ class PredictOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsJson1_1/pubspec.yaml b/packages/smithy/goldens/lib2/awsJson1_1/pubspec.yaml index 915fdcfe9a..b58ac1ea40 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/pubspec.yaml +++ b/packages/smithy/goldens/lib2/awsJson1_1/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -20,7 +20,7 @@ dependencies: fixnum: ^1.0.0 shelf_router: ^1.1.0 shelf: ^1.4.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -42,6 +42,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart index cf28ff54ae..694cb839c9 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,101 +13,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11DateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11DateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsJson11Serializer()], + ); + }); } class DatetimeOffsetsOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsJson11Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/empty_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/empty_operation_test.dart index 6f5533b71c..ca26757e21 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/empty_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/empty_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.empty_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,98 +11,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'sends_requests_to_slash (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('sends_requests_to_slash (request)', () async { + await _i2.httpRequestTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'sends_requests_to_slash', - documentation: 'Sends requests to /', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EmptyOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'sends_requests_to_slash', + documentation: 'Sends requests to /', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EmptyOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('includes_x_amz_target_and_content_type (request)', () async { + await _i2.httpRequestTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'includes_x_amz_target_and_content_type (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'includes_x_amz_target_and_content_type', - documentation: 'Includes X-Amz-Target header and Content-Type', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EmptyOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'includes_x_amz_target_and_content_type', + documentation: 'Includes X-Amz-Target header and Content-Type', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EmptyOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); _i1.test( 'json_1_1_client_sends_empty_payload_for_no_input_shape (request)', () async { @@ -110,11 +94,12 @@ void main() { operation: EmptyOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'json_1_1_client_sends_empty_payload_for_no_input_shape', @@ -150,118 +135,94 @@ void main() { ); }, ); - _i1.test( - 'handles_empty_output_shape (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('handles_empty_output_shape (response)', () async { + await _i2.httpResponseTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'handles_empty_output_shape', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'handles_empty_output_shape', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload, however, client must ignore a JSON payload\nif one is returned. This ensures that if output is added later,\nthen it will not break the client.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('handles_unexpected_json_output (response)', () async { + await _i2.httpResponseTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'handles_unexpected_json_output (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'handles_unexpected_json_output', + documentation: + 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "foo": true\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [], + ); + }); + _i1.test('json_1_1_service_responds_with_no_payload (response)', () async { + await _i2.httpResponseTest( + operation: EmptyOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'handles_unexpected_json_output', - documentation: - 'This client-only test builds on handles_empty_output_shape,\nby including unexpected fields in the JSON. A client\nneeds to ignore JSON output that is empty or that contains\nJSON object data.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "foo": true\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); - _i1.test( - 'json_1_1_service_responds_with_no_payload (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'json_1_1_service_responds_with_no_payload', - documentation: - 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'json_1_1_service_responds_with_no_payload', + documentation: + 'When no output is defined, the service is expected to return\nan empty payload. Despite the lack of a payload, the service\nis expected to always send a Content-Type header. Clients must\nhandle cases where a service returns a JSON object and where\na service returns no JSON at all.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_operation_test.dart index 63e2d7bd65..f5a3dfb0d7 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,51 +11,43 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11EndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11EndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11EndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EndpointOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11EndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EndpointOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart index 8915f1aac0..8e403c378e 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,53 +13,45 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11EndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11EndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11EndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"label": "bar"}', - bodyMediaType: 'application/json', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.EndpointWithHostLabelOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11EndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"label": "bar"}', + bodyMediaType: 'application/json', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.EndpointWithHostLabelOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputAwsJson11Serializer()], + ); + }); } class HostLabelInputAwsJson11Serializer @@ -71,11 +63,8 @@ class HostLabelInputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override HostLabelInput deserialize( @@ -94,10 +83,12 @@ class HostLabelInputAwsJson11Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart index 8f3714ffc9..90d2b7e963 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,62 +13,51 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11DateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11DateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputAwsJson11Serializer()], + ); + }); } class FractionalSecondsOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const FractionalSecondsOutputAwsJson11Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart index 52ef5dca6c..2f870412c6 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,186 +17,180 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11ComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11ComplexError', - documentation: 'Parses a complex error with no message member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "__type": "ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, + _i1.test('AwsJson11ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [ - ComplexErrorAwsJson11Serializer(), - ComplexNestedErrorDataAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson11EmptyComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11EmptyComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "ComplexError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11ComplexError', + documentation: 'Parses a complex error with no message member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "__type": "ComplexError",\n "TopLevel": "Top level",\n "Nested": {\n "Foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson11Serializer(), + ComplexNestedErrorDataAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11EmptyComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [ - ComplexErrorAwsJson11Serializer(), - ComplexNestedErrorDataAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingXAmznErrorType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11EmptyComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "ComplexError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsJson11Serializer(), + ComplexNestedErrorDataAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11FooErrorUsingXAmznErrorType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingXAmznErrorType', - documentation: - 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amzn-Errortype': 'FooError'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingXAmznErrorType', + documentation: + 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amzn-Errortype': 'FooError'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorUsingXAmznErrorTypeWithUri (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingXAmznErrorTypeWithUri (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingXAmznErrorTypeWithUri', - documentation: - 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Amzn-Errortype': - 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingXAmznErrorTypeWithUri', + documentation: + 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Errortype': + 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); _i1.test( 'AwsJson11FooErrorUsingXAmznErrorTypeWithUriAndNamespace (error)', () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( operation: GreetingWithErrorsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), testCase: const _i2.HttpResponseTestCase( id: 'AwsJson11FooErrorUsingXAmznErrorTypeWithUriAndNamespace', @@ -214,7 +208,7 @@ void main() { vendorParams: {}, headers: { 'X-Amzn-Errortype': - 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/' + 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/', }, forbidHeaders: [], requireHeaders: [], @@ -226,296 +220,272 @@ void main() { ); }, ); - _i1.test( - 'AwsJson11FooErrorUsingCode (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11FooErrorUsingCode (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingCode', - documentation: - 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "code": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingCode', + documentation: + 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "code": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorUsingCodeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingCodeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingCodeAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorUsingCodeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingCodeAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorUsingCodeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorUsingCodeUriAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorWithDunderType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorWithDunderType', - documentation: 'Some services serialize errors using __type.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorWithDunderTypeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorUsingCodeUriAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorWithDunderType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorWithDunderTypeAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorWithDunderType', + documentation: 'Some services serialize errors using __type.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorWithDunderTypeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11FooErrorWithDunderTypeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorWithDunderTypeAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11FooErrorWithDunderTypeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11FooErrorWithDunderTypeUriAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11FooErrorWithDunderTypeUriAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - errorSerializers: const [FooErrorAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11InvalidGreetingError', - documentation: 'Parses simple JSON errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "__type": "InvalidGreeting",\n "Message": "Hi"\n}', - bodyMediaType: 'application/json', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11InvalidGreetingError', + documentation: 'Parses simple JSON errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "__type": "InvalidGreeting",\n "Message": "Hi"\n}', + bodyMediaType: 'application/json', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingAwsJson11Serializer()], + ); + }); } class GreetingWithErrorsOutputAwsJson11Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsJson11Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -534,10 +504,12 @@ class GreetingWithErrorsOutputAwsJson11Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -563,11 +535,8 @@ class ComplexErrorAwsJson11Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexError deserialize( @@ -586,15 +555,20 @@ class ComplexErrorAwsJson11Serializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -614,18 +588,15 @@ class ComplexErrorAwsJson11Serializer class ComplexNestedErrorDataAwsJson11Serializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataAwsJson11Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ComplexNestedErrorData deserialize( @@ -644,10 +615,12 @@ class ComplexNestedErrorDataAwsJson11Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -673,11 +646,8 @@ class FooErrorAwsJson11Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override FooError deserialize( @@ -707,11 +677,8 @@ class InvalidGreetingAwsJson11Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidGreeting deserialize( @@ -730,10 +697,12 @@ class InvalidGreetingAwsJson11Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart index e1726d9bca..964c5c3798 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,50 +11,42 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11HostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11HostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11HostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.HostWithPathOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11HostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.HostWithPathOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_enums_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_enums_operation_test.dart index 236dcb33c6..caf41d1dc3 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.json_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,140 +15,103 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11Enums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11Enums (request)', () async { + await _i2.httpRequestTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11Enums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonEnums', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11Enums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonEnums', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11Enums (response)', () async { + await _i2.httpResponseTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11Enums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11Enums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11Enums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonEnumsInputOutputAwsJson11Serializer()], + ); + }); } class JsonEnumsInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const JsonEnumsInputOutputAwsJson11Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [JsonEnumsInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -167,47 +130,57 @@ class JsonEnumsInputOutputAwsJson11Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(FooEnum)], - ), - ) as _i5.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i5.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i5.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i5.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart index fa7176c642..14c254c389 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.json_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,143 +15,106 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11IntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11IntEnums (request)', () async { + await _i2.httpRequestTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11IntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11IntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11IntEnums (response)', () async { + await _i2.httpResponseTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11IntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11IntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11IntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "intEnum1": 1,\n "intEnum2": 2,\n "intEnum3": 3,\n "intEnumList": [\n 1,\n 2\n ],\n "intEnumSet": [\n 1,\n 2\n ],\n "intEnumMap": {\n "a": 1,\n "b": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonIntEnums', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonIntEnumsInputOutputAwsJson11Serializer()], + ); + }); } class JsonIntEnumsInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const JsonIntEnumsInputOutputAwsJson11Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [JsonIntEnumsInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -170,47 +133,57 @@ class JsonIntEnumsInputOutputAwsJson11Serializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i5.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i5.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i5.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i5.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ), - ) as _i5.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(IntegerEnum), + ]), + ) + as _i5.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_unions_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_unions_operation_test.dart index e28d4d65df..acd8ea7d76 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_unions_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/json_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.json_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,821 +14,665 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11SerializeStringUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeStringUnionValue', - documentation: 'Serializes a string union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeBooleanUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeBooleanUnionValue', - documentation: 'Serializes a boolean union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', + _i1.test('AwsJson11SerializeStringUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeStringUnionValue', + documentation: 'Serializes a string union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeBooleanUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeBooleanUnionValue', + documentation: 'Serializes a boolean union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeNumberUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeNumberUnionValue', + documentation: 'Serializes a number union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeBlobUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeBlobUnionValue', + documentation: 'Serializes a blob union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeTimestampUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeTimestampUnionValue', + documentation: 'Serializes a timestamp union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeEnumUnionValue', + documentation: 'Serializes an enum union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeListUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeListUnionValue', + documentation: 'Serializes a list union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeNumberUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeNumberUnionValue', - documentation: 'Serializes a number union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeMapUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeMapUnionValue', + documentation: 'Serializes a map union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeBlobUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeBlobUnionValue', - documentation: 'Serializes a blob union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeTimestampUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeTimestampUnionValue', - documentation: 'Serializes a timestamp union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11SerializeStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SerializeStructureUnionValue', + documentation: 'Serializes a structure union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeStringUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeStringUnionValue', + documentation: 'Deserializes a string union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeBooleanUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeBooleanUnionValue', + documentation: 'Deserializes a boolean union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeNumberUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeNumberUnionValue', + documentation: 'Deserializes a number union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeBlobUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeBlobUnionValue', + documentation: 'Deserializes a blob union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeTimestampUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeTimestampUnionValue', + documentation: 'Deserializes a timestamp union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeEnumUnionValue', + documentation: 'Deserializes an enum union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeListUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeListUnionValue', + documentation: 'Deserializes a list union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeEnumUnionValue', - documentation: 'Serializes an enum union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeListUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeListUnionValue', - documentation: 'Serializes a list union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeMapUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeMapUnionValue', - documentation: 'Serializes a map union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11SerializeStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SerializeStructureUnionValue', - documentation: 'Serializes a structure union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeMapUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeMapUnionValue', + documentation: 'Deserializes a map union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.JsonUnions', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11DeserializeStructureUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11DeserializeStructureUnionValue', + documentation: 'Deserializes a structure union value', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeStringUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeStringUnionValue', - documentation: 'Deserializes a string union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeBooleanUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeBooleanUnionValue', - documentation: 'Deserializes a boolean union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeNumberUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeNumberUnionValue', - documentation: 'Deserializes a number union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeBlobUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeBlobUnionValue', - documentation: 'Deserializes a blob union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeTimestampUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeTimestampUnionValue', - documentation: 'Deserializes a timestamp union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeEnumUnionValue', - documentation: 'Deserializes an enum union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeListUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeListUnionValue', - documentation: 'Deserializes a list union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeMapUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeMapUnionValue', - documentation: 'Deserializes a map union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11DeserializeStructureUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11DeserializeStructureUnionValue', - documentation: 'Deserializes a structure union value', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputAwsJson11Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputAwsJson11Serializer()], + ); + }); } class UnionInputOutputAwsJson11Serializer @@ -840,11 +684,8 @@ class UnionInputOutputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UnionInputOutput deserialize( @@ -863,10 +704,12 @@ class UnionInputOutputAwsJson11Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart index cafb96c414..efb2c2ce63 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/kitchen_sink_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.kitchen_sink_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,2438 +23,485 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { + _i1.test('serializes_string_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_string_shapes', + documentation: 'Serializes string shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"String":"abc xyz"}', + bodyMediaType: 'application/json', + params: {'String': 'abc xyz'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_string_shapes_with_jsonvalue_trait (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_string_shapes_with_jsonvalue_trait', + documentation: 'Serializes string shapes with jsonvalue trait', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"JsonValue":"{\\"string\\":\\"value\\",\\"number\\":1234.5,\\"boolTrue\\":true,\\"boolFalse\\":false,\\"array\\":[1,2,3,4],\\"object\\":{\\"key\\":\\"value\\"},\\"null\\":null}"}', + bodyMediaType: 'application/json', + params: { + 'JsonValue': + '{"string":"value","number":1234.5,"boolTrue":true,"boolFalse":false,"array":[1,2,3,4],"object":{"key":"value"},"null":null}', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_integer_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_integer_shapes', + documentation: 'Serializes integer shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Integer":1234}', + bodyMediaType: 'application/json', + params: {'Integer': 1234}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_long_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_long_shapes', + documentation: 'Serializes long shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Long":999999999999}', + bodyMediaType: 'application/json', + params: {'Long': 999999999999}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_float_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_float_shapes', + documentation: 'Serializes float shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Float":1234.5}', + bodyMediaType: 'application/json', + params: {'Float': 1234.5}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_double_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_double_shapes', + documentation: 'Serializes double shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Double":1234.5}', + bodyMediaType: 'application/json', + params: {'Double': 1234.5}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_blob_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_blob_shapes', + documentation: 'Serializes blob shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Blob":"YmluYXJ5LXZhbHVl"}', + bodyMediaType: 'application/json', + params: {'Blob': 'binary-value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_boolean_shapes_true (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_boolean_shapes_true', + documentation: 'Serializes boolean shapes (true)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":true}', + bodyMediaType: 'application/json', + params: {'Boolean': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_boolean_shapes_false (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_boolean_shapes_false', + documentation: 'Serializes boolean shapes (false)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":false}', + bodyMediaType: 'application/json', + params: {'Boolean': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_timestamp_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes', + documentation: 'Serializes timestamp shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Timestamp":946845296}', + bodyMediaType: 'application/json', + params: {'Timestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); _i1.test( - 'serializes_string_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_string_shapes', - documentation: 'Serializes string shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"String":"abc xyz"}', - bodyMediaType: 'application/json', - params: {'String': 'abc xyz'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_string_shapes_with_jsonvalue_trait (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_string_shapes_with_jsonvalue_trait', - documentation: 'Serializes string shapes with jsonvalue trait', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"JsonValue":"{\\"string\\":\\"value\\",\\"number\\":1234.5,\\"boolTrue\\":true,\\"boolFalse\\":false,\\"array\\":[1,2,3,4],\\"object\\":{\\"key\\":\\"value\\"},\\"null\\":null}"}', - bodyMediaType: 'application/json', - params: { - 'JsonValue': - '{"string":"value","number":1234.5,"boolTrue":true,"boolFalse":false,"array":[1,2,3,4],"object":{"key":"value"},"null":null}' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_integer_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_integer_shapes', - documentation: 'Serializes integer shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Integer":1234}', - bodyMediaType: 'application/json', - params: {'Integer': 1234}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_long_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_long_shapes', - documentation: 'Serializes long shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Long":999999999999}', - bodyMediaType: 'application/json', - params: {'Long': 999999999999}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_float_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_float_shapes', - documentation: 'Serializes float shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Float":1234.5}', - bodyMediaType: 'application/json', - params: {'Float': 1234.5}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_double_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_double_shapes', - documentation: 'Serializes double shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Double":1234.5}', - bodyMediaType: 'application/json', - params: {'Double': 1234.5}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_blob_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_blob_shapes', - documentation: 'Serializes blob shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Blob":"YmluYXJ5LXZhbHVl"}', - bodyMediaType: 'application/json', - params: {'Blob': 'binary-value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_boolean_shapes_true (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_boolean_shapes_true', - documentation: 'Serializes boolean shapes (true)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":true}', - bodyMediaType: 'application/json', - params: {'Boolean': true}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_boolean_shapes_false (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_boolean_shapes_false', - documentation: 'Serializes boolean shapes (false)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":false}', - bodyMediaType: 'application/json', - params: {'Boolean': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes', - documentation: 'Serializes timestamp shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Timestamp":946845296}', - bodyMediaType: 'application/json', - params: {'Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes_with_iso8601_timestampformat (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes_with_iso8601_timestampformat', - documentation: - 'Serializes timestamp shapes with iso8601 timestampFormat', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', - bodyMediaType: 'application/json', - params: {'Iso8601Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes_with_httpdate_timestampformat (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes_with_httpdate_timestampformat', - documentation: - 'Serializes timestamp shapes with httpdate timestampFormat', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', - bodyMediaType: 'application/json', - params: {'HttpdateTimestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat', - documentation: - 'Serializes timestamp shapes with unixTimestamp timestampFormat', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"UnixTimestamp":946845296}', - bodyMediaType: 'application/json', - params: {'UnixTimestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_shapes', - documentation: 'Serializes list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStrings":["abc","mno","xyz"]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStrings': [ - 'abc', - 'mno', - 'xyz', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_empty_list_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_empty_list_shapes', - documentation: 'Serializes empty list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStrings":[]}', - bodyMediaType: 'application/json', - params: {'ListOfStrings': []}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_of_map_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_of_map_shapes', - documentation: 'Serializes list of map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"ListOfMapsOfStrings":[{"foo":"bar"},{"abc":"xyz"},{"red":"blue"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfMapsOfStrings': [ - {'foo': 'bar'}, - {'abc': 'xyz'}, - {'red': 'blue'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_of_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_of_structure_shapes', - documentation: 'Serializes list of structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"ListOfStructs":[{"Value":"abc"},{"Value":"mno"},{"Value":"xyz"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStructs': [ - {'Value': 'abc'}, - {'Value': 'mno'}, - {'Value': 'xyz'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_list_of_recursive_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_list_of_recursive_structure_shapes', - documentation: 'Serializes list of recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"Integer":123}]}]}]}', - bodyMediaType: 'application/json', - params: { - 'RecursiveList': [ - { - 'RecursiveList': [ - { - 'RecursiveList': [ - {'Integer': 123} - ] - } - ] - } - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_shapes', - documentation: 'Serializes map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"MapOfStrings":{"abc":"xyz","mno":"hjk"}}', - bodyMediaType: 'application/json', - params: { - 'MapOfStrings': { - 'abc': 'xyz', - 'mno': 'hjk', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_empty_map_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_empty_map_shapes', - documentation: 'Serializes empty map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"MapOfStrings":{}}', - bodyMediaType: 'application/json', - params: {'MapOfStrings': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_of_list_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_of_list_shapes', - documentation: 'Serializes map of list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"MapOfListsOfStrings":{"abc":["abc","xyz"],"mno":["xyz","abc"]}}', - bodyMediaType: 'application/json', - params: { - 'MapOfListsOfStrings': { - 'abc': [ - 'abc', - 'xyz', - ], - 'mno': [ - 'xyz', - 'abc', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_of_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_of_structure_shapes', - documentation: 'Serializes map of structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"MapOfStructs":{"key1":{"Value":"value-1"},"key2":{"Value":"value-2"}}}', - bodyMediaType: 'application/json', - params: { - 'MapOfStructs': { - 'key1': {'Value': 'value-1'}, - 'key2': {'Value': 'value-2'}, - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_map_of_recursive_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_map_of_recursive_structure_shapes', - documentation: 'Serializes map of recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"RecursiveMap":{"key1":{"RecursiveMap":{"key2":{"RecursiveMap":{"key3":{"Boolean":false}}}}}}}', - bodyMediaType: 'application/json', - params: { - 'RecursiveMap': { - 'key1': { - 'RecursiveMap': { - 'key2': { - 'RecursiveMap': { - 'key3': {'Boolean': false} - } - } - } - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_structure_shapes', - documentation: 'Serializes structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"SimpleStruct":{"Value":"abc"}}', - bodyMediaType: 'application/json', - params: { - 'SimpleStruct': {'Value': 'abc'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_structure_members_with_locationname_traits (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_structure_members_with_locationname_traits', - documentation: - 'Serializes structure members with locationName traits', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"StructWithJsonName":{"Value":"some-value"}}', - bodyMediaType: 'application/json', - params: { - 'StructWithJsonName': {'Value': 'some-value'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_empty_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_empty_structure_shapes', - documentation: 'Serializes empty structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"SimpleStruct":{}}', - bodyMediaType: 'application/json', - params: {'SimpleStruct': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_structure_which_have_no_members (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_structure_which_have_no_members', - documentation: 'Serializes structure which have no members', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"EmptyStruct":{}}', - bodyMediaType: 'application/json', - params: {'EmptyStruct': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'serializes_recursive_structure_shapes (request)', - () async { - await _i2.httpRequestTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'serializes_recursive_structure_shapes', - documentation: 'Serializes recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"String":"top-value","Boolean":false,"RecursiveStruct":{"String":"nested-value","Boolean":true,"RecursiveList":[{"String":"string-only"},{"RecursiveStruct":{"MapOfStrings":{"color":"red","size":"large"}}}]}}', - bodyMediaType: 'application/json', - params: { - 'String': 'top-value', - 'Boolean': false, - 'RecursiveStruct': { - 'String': 'nested-value', - 'Boolean': true, - 'RecursiveList': [ - {'String': 'string-only'}, - { - 'RecursiveStruct': { - 'MapOfStrings': { - 'color': 'red', - 'size': 'large', - } - } - }, - ], - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_operations_with_empty_json_bodies (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_operations_with_empty_json_bodies', - documentation: 'Parses operations with empty JSON bodies', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_string_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_string_shapes', - documentation: 'Parses string shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"String":"string-value"}', - bodyMediaType: 'application/json', - params: {'String': 'string-value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_integer_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_integer_shapes', - documentation: 'Parses integer shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Integer":1234}', - bodyMediaType: 'application/json', - params: {'Integer': 1234}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_long_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_long_shapes', - documentation: 'Parses long shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Long":1234567890123456789}', - bodyMediaType: 'application/json', - params: {'Long': '1234567890123456789'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - testOn: 'vm', - ); - _i1.test( - 'parses_float_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_float_shapes', - documentation: 'Parses float shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Float":1234.5}', - bodyMediaType: 'application/json', - params: {'Float': 1234.5}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_double_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_double_shapes', - documentation: 'Parses double shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Double":123456789.12345679}', - bodyMediaType: 'application/json', - params: {'Double': 123456789.12345679}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_boolean_shapes_true (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_boolean_shapes_true', - documentation: 'Parses boolean shapes (true)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":true}', - bodyMediaType: 'application/json', - params: {'Boolean': true}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_boolean_false (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_boolean_false', - documentation: 'Parses boolean (false)', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Boolean":false}', - bodyMediaType: 'application/json', - params: {'Boolean': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_blob_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_blob_shapes', - documentation: 'Parses blob shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Blob":"YmluYXJ5LXZhbHVl"}', - bodyMediaType: 'application/json', - params: {'Blob': 'binary-value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_timestamp_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_timestamp_shapes', - documentation: 'Parses timestamp shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Timestamp":946845296}', - bodyMediaType: 'application/json', - params: {'Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_iso8601_timestamps (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_iso8601_timestamps', - documentation: 'Parses iso8601 timestamps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', - bodyMediaType: 'application/json', - params: {'Iso8601Timestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_httpdate_timestamps (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_httpdate_timestamps', - documentation: 'Parses httpdate timestamps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', - bodyMediaType: 'application/json', - params: {'HttpdateTimestamp': 946845296}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_shapes', - documentation: 'Parses list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStrings":["abc","mno","xyz"]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStrings': [ - 'abc', - 'mno', - 'xyz', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_map_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_map_shapes', - documentation: 'Parses list of map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfMapsOfStrings":[{"size":"large"},{"color":"red"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfMapsOfStrings': [ - {'size': 'large'}, - {'color': 'red'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_list_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_list_shapes', - documentation: 'Parses list of list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfLists":[["abc","mno","xyz"],["hjk","qrs","tuv"]]}', - bodyMediaType: 'application/json', - params: { - 'ListOfLists': [ - [ - 'abc', - 'mno', - 'xyz', - ], - [ - 'hjk', - 'qrs', - 'tuv', - ], - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_structure_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_structure_shapes', - documentation: 'Parses list of structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"ListOfStructs":[{"Value":"value-1"},{"Value":"value-2"}]}', - bodyMediaType: 'application/json', - params: { - 'ListOfStructs': [ - {'Value': 'value-1'}, - {'Value': 'value-2'}, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_list_of_recursive_structure_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_list_of_recursive_structure_shapes', - documentation: 'Parses list of recursive structure shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"String":"value"}]}]}]}', - bodyMediaType: 'application/json', - params: { - 'RecursiveList': [ - { - 'RecursiveList': [ - { - 'RecursiveList': [ - {'String': 'value'} - ] - } - ] - } - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_map_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_shapes', - documentation: 'Parses map shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"MapOfStrings":{"size":"large","color":"red"}}', - bodyMediaType: 'application/json', - params: { - 'MapOfStrings': { - 'size': 'large', - 'color': 'red', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_map_of_list_shapes (response)', - () async { - await _i2.httpResponseTest( - operation: KitchenSinkOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_list_shapes', - documentation: 'Parses map of list shapes', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{"MapOfListsOfStrings":{"sizes":["large","small"],"colors":["red","green"]}}', - bodyMediaType: 'application/json', - params: { - 'MapOfListsOfStrings': { - 'sizes': [ - 'large', - 'small', - ], - 'colors': [ - 'red', - 'green', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - KitchenSinkAwsJson11Serializer(), - EmptyStructAwsJson11Serializer(), - SimpleStructAwsJson11Serializer(), - StructWithJsonNameAwsJson11Serializer(), - ], - ); - }, - ); - _i1.test( - 'parses_map_of_map_shapes (response)', + 'serializes_timestamp_shapes_with_iso8601_timestampformat (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_map_shapes', - documentation: 'Parses map of map shapes', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes_with_iso8601_timestampformat', + documentation: + 'Serializes timestamp shapes with iso8601 timestampFormat', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: - '{"MapOfMaps":{"sizes":{"large":"L","medium":"M"},"colors":{"red":"R","blue":"B"}}}', + body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', bodyMediaType: 'application/json', - params: { - 'MapOfMaps': { - 'sizes': { - 'large': 'L', - 'medium': 'M', - }, - 'colors': { - 'red': 'R', - 'blue': 'B', - }, - } - }, + params: {'Iso8601Timestamp': 946845296}, vendorParamsShape: null, vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2464,45 +511,50 @@ void main() { }, ); _i1.test( - 'parses_map_of_structure_shapes (response)', + 'serializes_timestamp_shapes_with_httpdate_timestampformat (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_structure_shapes', - documentation: 'Parses map of structure shapes', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes_with_httpdate_timestampformat', + documentation: + 'Serializes timestamp shapes with httpdate timestampFormat', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: - '{"MapOfStructs":{"size":{"Value":"small"},"color":{"Value":"red"}}}', + body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', bodyMediaType: 'application/json', - params: { - 'MapOfStructs': { - 'size': {'Value': 'small'}, - 'color': {'Value': 'red'}, - } - }, + params: {'HttpdateTimestamp': 946845296}, vendorParamsShape: null, vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2512,52 +564,50 @@ void main() { }, ); _i1.test( - 'parses_map_of_recursive_structure_shapes (response)', + 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_map_of_recursive_structure_shapes', - documentation: 'Parses map of recursive structure shapes', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_timestamp_shapes_with_unixtimestamp_timestampformat', + documentation: + 'Serializes timestamp shapes with unixTimestamp timestampFormat', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: - '{"RecursiveMap":{"key-1":{"RecursiveMap":{"key-2":{"RecursiveMap":{"key-3":{"String":"value"}}}}}}}', + body: '{"UnixTimestamp":946845296}', bodyMediaType: 'application/json', - params: { - 'RecursiveMap': { - 'key-1': { - 'RecursiveMap': { - 'key-2': { - 'RecursiveMap': { - 'key-3': {'String': 'value'} - } - } - } - } - } - }, + params: {'UnixTimestamp': 946845296}, vendorParamsShape: null, vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2566,43 +616,584 @@ void main() { ); }, ); + _i1.test('serializes_list_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_shapes', + documentation: 'Serializes list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStrings":["abc","mno","xyz"]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStrings': ['abc', 'mno', 'xyz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_empty_list_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_empty_list_shapes', + documentation: 'Serializes empty list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStrings":[]}', + bodyMediaType: 'application/json', + params: {'ListOfStrings': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_list_of_map_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_of_map_shapes', + documentation: 'Serializes list of map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"ListOfMapsOfStrings":[{"foo":"bar"},{"abc":"xyz"},{"red":"blue"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfMapsOfStrings': [ + {'foo': 'bar'}, + {'abc': 'xyz'}, + {'red': 'blue'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_list_of_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_of_structure_shapes', + documentation: 'Serializes list of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"ListOfStructs":[{"Value":"abc"},{"Value":"mno"},{"Value":"xyz"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStructs': [ + {'Value': 'abc'}, + {'Value': 'mno'}, + {'Value': 'xyz'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_list_of_recursive_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_list_of_recursive_structure_shapes', + documentation: 'Serializes list of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"Integer":123}]}]}]}', + bodyMediaType: 'application/json', + params: { + 'RecursiveList': [ + { + 'RecursiveList': [ + { + 'RecursiveList': [ + {'Integer': 123}, + ], + }, + ], + }, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_shapes', + documentation: 'Serializes map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"MapOfStrings":{"abc":"xyz","mno":"hjk"}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStrings': {'abc': 'xyz', 'mno': 'hjk'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_empty_map_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_empty_map_shapes', + documentation: 'Serializes empty map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"MapOfStrings":{}}', + bodyMediaType: 'application/json', + params: {'MapOfStrings': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_of_list_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_of_list_shapes', + documentation: 'Serializes map of list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfListsOfStrings":{"abc":["abc","xyz"],"mno":["xyz","abc"]}}', + bodyMediaType: 'application/json', + params: { + 'MapOfListsOfStrings': { + 'abc': ['abc', 'xyz'], + 'mno': ['xyz', 'abc'], + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_of_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_of_structure_shapes', + documentation: 'Serializes map of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfStructs":{"key1":{"Value":"value-1"},"key2":{"Value":"value-2"}}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStructs': { + 'key1': {'Value': 'value-1'}, + 'key2': {'Value': 'value-2'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_map_of_recursive_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_map_of_recursive_structure_shapes', + documentation: 'Serializes map of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveMap":{"key1":{"RecursiveMap":{"key2":{"RecursiveMap":{"key3":{"Boolean":false}}}}}}}', + bodyMediaType: 'application/json', + params: { + 'RecursiveMap': { + 'key1': { + 'RecursiveMap': { + 'key2': { + 'RecursiveMap': { + 'key3': {'Boolean': false}, + }, + }, + }, + }, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_structure_shapes', + documentation: 'Serializes structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"SimpleStruct":{"Value":"abc"}}', + bodyMediaType: 'application/json', + params: { + 'SimpleStruct': {'Value': 'abc'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); _i1.test( - 'parses_the_request_id_from_the_response (response)', + 'serializes_structure_members_with_locationname_traits (request)', () async { - await _i2.httpResponseTest( + await _i2.httpRequestTest( operation: KitchenSinkOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - testCase: const _i2.HttpResponseTestCase( - id: 'parses_the_request_id_from_the_response', - documentation: 'Parses the request id from the response', + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_structure_members_with_locationname_traits', + documentation: + 'Serializes structure members with locationName traits', protocol: _i4.ShapeId( namespace: 'aws.protocols', shape: 'awsJson1_1', ), authScheme: null, - body: '{}', + body: '{"StructWithJsonName":{"Value":"some-value"}}', bodyMediaType: 'application/json', - params: {}, + params: { + 'StructWithJsonName': {'Value': 'some-value'}, + }, vendorParamsShape: null, vendorParams: {}, headers: { - 'X-Amzn-Requestid': 'amazon-uniq-request-id', 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', }, forbidHeaders: [], - requireHeaders: [], + requireHeaders: ['Content-Length'], tags: [], appliesTo: null, - code: 200, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - outputSerializers: const [ + inputSerializers: const [ KitchenSinkAwsJson11Serializer(), EmptyStructAwsJson11Serializer(), SimpleStructAwsJson11Serializer(), @@ -2611,6 +1202,999 @@ void main() { ); }, ); + _i1.test('serializes_empty_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_empty_structure_shapes', + documentation: 'Serializes empty structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"SimpleStruct":{}}', + bodyMediaType: 'application/json', + params: {'SimpleStruct': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_structure_which_have_no_members (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_structure_which_have_no_members', + documentation: 'Serializes structure which have no members', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"EmptyStruct":{}}', + bodyMediaType: 'application/json', + params: {'EmptyStruct': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('serializes_recursive_structure_shapes (request)', () async { + await _i2.httpRequestTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'serializes_recursive_structure_shapes', + documentation: 'Serializes recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"String":"top-value","Boolean":false,"RecursiveStruct":{"String":"nested-value","Boolean":true,"RecursiveList":[{"String":"string-only"},{"RecursiveStruct":{"MapOfStrings":{"color":"red","size":"large"}}}]}}', + bodyMediaType: 'application/json', + params: { + 'String': 'top-value', + 'Boolean': false, + 'RecursiveStruct': { + 'String': 'nested-value', + 'Boolean': true, + 'RecursiveList': [ + {'String': 'string-only'}, + { + 'RecursiveStruct': { + 'MapOfStrings': {'color': 'red', 'size': 'large'}, + }, + }, + ], + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.KitchenSinkOperation', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_operations_with_empty_json_bodies (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_operations_with_empty_json_bodies', + documentation: 'Parses operations with empty JSON bodies', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_string_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_string_shapes', + documentation: 'Parses string shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"String":"string-value"}', + bodyMediaType: 'application/json', + params: {'String': 'string-value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_integer_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_integer_shapes', + documentation: 'Parses integer shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Integer":1234}', + bodyMediaType: 'application/json', + params: {'Integer': 1234}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_long_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_long_shapes', + documentation: 'Parses long shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Long":1234567890123456789}', + bodyMediaType: 'application/json', + params: {'Long': '1234567890123456789'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }, testOn: 'vm'); + _i1.test('parses_float_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_float_shapes', + documentation: 'Parses float shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Float":1234.5}', + bodyMediaType: 'application/json', + params: {'Float': 1234.5}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_double_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_double_shapes', + documentation: 'Parses double shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Double":123456789.12345679}', + bodyMediaType: 'application/json', + params: {'Double': 123456789.12345679}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_boolean_shapes_true (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_boolean_shapes_true', + documentation: 'Parses boolean shapes (true)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":true}', + bodyMediaType: 'application/json', + params: {'Boolean': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_boolean_false (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_boolean_false', + documentation: 'Parses boolean (false)', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Boolean":false}', + bodyMediaType: 'application/json', + params: {'Boolean': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_blob_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_blob_shapes', + documentation: 'Parses blob shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Blob":"YmluYXJ5LXZhbHVl"}', + bodyMediaType: 'application/json', + params: {'Blob': 'binary-value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_timestamp_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_timestamp_shapes', + documentation: 'Parses timestamp shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Timestamp":946845296}', + bodyMediaType: 'application/json', + params: {'Timestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_iso8601_timestamps (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_iso8601_timestamps', + documentation: 'Parses iso8601 timestamps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Iso8601Timestamp":"2000-01-02T20:34:56Z"}', + bodyMediaType: 'application/json', + params: {'Iso8601Timestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_httpdate_timestamps (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_httpdate_timestamps', + documentation: 'Parses httpdate timestamps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"HttpdateTimestamp":"Sun, 02 Jan 2000 20:34:56 GMT"}', + bodyMediaType: 'application/json', + params: {'HttpdateTimestamp': 946845296}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_shapes', + documentation: 'Parses list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStrings":["abc","mno","xyz"]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStrings': ['abc', 'mno', 'xyz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_map_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_map_shapes', + documentation: 'Parses list of map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfMapsOfStrings":[{"size":"large"},{"color":"red"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfMapsOfStrings': [ + {'size': 'large'}, + {'color': 'red'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_list_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_list_shapes', + documentation: 'Parses list of list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfLists":[["abc","mno","xyz"],["hjk","qrs","tuv"]]}', + bodyMediaType: 'application/json', + params: { + 'ListOfLists': [ + ['abc', 'mno', 'xyz'], + ['hjk', 'qrs', 'tuv'], + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_structure_shapes', + documentation: 'Parses list of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"ListOfStructs":[{"Value":"value-1"},{"Value":"value-2"}]}', + bodyMediaType: 'application/json', + params: { + 'ListOfStructs': [ + {'Value': 'value-1'}, + {'Value': 'value-2'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_list_of_recursive_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_list_of_recursive_structure_shapes', + documentation: 'Parses list of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveList":[{"RecursiveList":[{"RecursiveList":[{"String":"value"}]}]}]}', + bodyMediaType: 'application/json', + params: { + 'RecursiveList': [ + { + 'RecursiveList': [ + { + 'RecursiveList': [ + {'String': 'value'}, + ], + }, + ], + }, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_shapes', + documentation: 'Parses map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"MapOfStrings":{"size":"large","color":"red"}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStrings': {'size': 'large', 'color': 'red'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_list_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_list_shapes', + documentation: 'Parses map of list shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfListsOfStrings":{"sizes":["large","small"],"colors":["red","green"]}}', + bodyMediaType: 'application/json', + params: { + 'MapOfListsOfStrings': { + 'sizes': ['large', 'small'], + 'colors': ['red', 'green'], + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_map_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_map_shapes', + documentation: 'Parses map of map shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfMaps":{"sizes":{"large":"L","medium":"M"},"colors":{"red":"R","blue":"B"}}}', + bodyMediaType: 'application/json', + params: { + 'MapOfMaps': { + 'sizes': {'large': 'L', 'medium': 'M'}, + 'colors': {'red': 'R', 'blue': 'B'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_structure_shapes', + documentation: 'Parses map of structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"MapOfStructs":{"size":{"Value":"small"},"color":{"Value":"red"}}}', + bodyMediaType: 'application/json', + params: { + 'MapOfStructs': { + 'size': {'Value': 'small'}, + 'color': {'Value': 'red'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_map_of_recursive_structure_shapes (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_map_of_recursive_structure_shapes', + documentation: 'Parses map of recursive structure shapes', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{"RecursiveMap":{"key-1":{"RecursiveMap":{"key-2":{"RecursiveMap":{"key-3":{"String":"value"}}}}}}}', + bodyMediaType: 'application/json', + params: { + 'RecursiveMap': { + 'key-1': { + 'RecursiveMap': { + 'key-2': { + 'RecursiveMap': { + 'key-3': {'String': 'value'}, + }, + }, + }, + }, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); + _i1.test('parses_the_request_id_from_the_response (response)', () async { + await _i2.httpResponseTest( + operation: KitchenSinkOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'parses_the_request_id_from_the_response', + documentation: 'Parses the request id from the response', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Requestid': 'amazon-uniq-request-id', + 'Content-Type': 'application/x-amz-json-1.1', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + KitchenSinkAwsJson11Serializer(), + EmptyStructAwsJson11Serializer(), + SimpleStructAwsJson11Serializer(), + StructWithJsonNameAwsJson11Serializer(), + ], + ); + }); } class KitchenSinkAwsJson11Serializer @@ -2622,11 +2206,8 @@ class KitchenSinkAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override KitchenSink deserialize( @@ -2645,202 +2226,218 @@ class KitchenSinkAwsJson11Serializer } switch (key) { case 'Blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.Uint8List), - ) as _i5.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Uint8List), + ) + as _i5.Uint8List); case 'Boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'EmptyStruct': - result.emptyStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(EmptyStruct), - ) as EmptyStruct)); + result.emptyStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EmptyStruct), + ) + as EmptyStruct), + ); case 'Float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'HttpdateTimestamp': - result.httpdateTimestamp = - _i4.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpdateTimestamp = _i4.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'Integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Iso8601Timestamp': - result.iso8601Timestamp = - _i4.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.iso8601Timestamp = _i4.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'JsonValue': - result.jsonValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i6.JsonObject), - ) as _i6.JsonObject); + result.jsonValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.JsonObject), + ) + as _i6.JsonObject); case 'ListOfLists': - result.listOfLists.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [ - FullType( - _i7.BuiltList, - [FullType(String)], + result.listOfLists.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(_i7.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i7.BuiltList<_i7.BuiltList>)); + as _i7.BuiltList<_i7.BuiltList>), + ); case 'ListOfMapsOfStrings': - result.listOfMapsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [ - FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(String), - ], + result.listOfMapsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), ) - ], - ), - ) as _i7.BuiltList<_i7.BuiltMap>)); + as _i7.BuiltList<_i7.BuiltMap>), + ); case 'ListOfStrings': - result.listOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(String)], - ), - ) as _i7.BuiltList)); + result.listOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(String), + ]), + ) + as _i7.BuiltList), + ); case 'ListOfStructs': - result.listOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(SimpleStruct)], - ), - ) as _i7.BuiltList)); + result.listOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(SimpleStruct), + ]), + ) + as _i7.BuiltList), + ); case 'Long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i8.Int64), - ) as _i8.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i8.Int64), + ) + as _i8.Int64); case 'MapOfListsOfStrings': - result.mapOfListsOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i7.BuiltListMultimap)); - case 'MapOfMaps': - result.mapOfMaps.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType( - _i7.BuiltMap, - [ + result.mapOfListsOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltListMultimap, [ FullType(String), FullType(String), - ], - ), - ], - ), - ) as _i7.BuiltMap>)); + ]), + ) + as _i7.BuiltListMultimap), + ); + case 'MapOfMaps': + result.mapOfMaps.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ]), + ) + as _i7.BuiltMap>), + ); case 'MapOfStrings': - result.mapOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i7.BuiltMap)); + result.mapOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i7.BuiltMap), + ); case 'MapOfStructs': - result.mapOfStructs.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(SimpleStruct), - ], - ), - ) as _i7.BuiltMap)); + result.mapOfStructs.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(SimpleStruct), + ]), + ) + as _i7.BuiltMap), + ); case 'RecursiveList': - result.recursiveList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(KitchenSink)], - ), - ) as _i7.BuiltList)); + result.recursiveList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(KitchenSink), + ]), + ) + as _i7.BuiltList), + ); case 'RecursiveMap': - result.recursiveMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(KitchenSink), - ], - ), - ) as _i7.BuiltMap)); + result.recursiveMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(KitchenSink), + ]), + ) + as _i7.BuiltMap), + ); case 'RecursiveStruct': - result.recursiveStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.recursiveStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'SimpleStruct': - result.simpleStruct.replace((serializers.deserialize( - value, - specifiedType: const FullType(SimpleStruct), - ) as SimpleStruct)); + result.simpleStruct.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(SimpleStruct), + ) + as SimpleStruct), + ); case 'String': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StructWithJsonName': - result.structWithJsonName.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructWithJsonName), - ) as StructWithJsonName)); + result.structWithJsonName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructWithJsonName), + ) + as StructWithJsonName), + ); case 'Timestamp': result.timestamp = _i4.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'UnixTimestamp': - result.unixTimestamp = - _i4.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.unixTimestamp = _i4.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } @@ -2866,11 +2463,8 @@ class EmptyStructAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EmptyStruct deserialize( @@ -2900,11 +2494,8 @@ class SimpleStructAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleStruct deserialize( @@ -2923,10 +2514,12 @@ class SimpleStructAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -2952,11 +2545,8 @@ class StructWithJsonNameAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override StructWithJsonName deserialize( @@ -2975,10 +2565,12 @@ class StructWithJsonNameAwsJson11Serializer } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -3004,11 +2596,8 @@ class ErrorWithMembersAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithMembers deserialize( @@ -3027,49 +2616,62 @@ class ErrorWithMembersAwsJson11Serializer } switch (key) { case 'Code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ComplexData': - result.complexData.replace((serializers.deserialize( - value, - specifiedType: const FullType(KitchenSink), - ) as KitchenSink)); + result.complexData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(KitchenSink), + ) + as KitchenSink), + ); case 'IntegerField': - result.integerField = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerField = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ListField': - result.listField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltList, - [FullType(String)], - ), - ) as _i7.BuiltList)); + result.listField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltList, [ + FullType(String), + ]), + ) + as _i7.BuiltList), + ); case 'MapField': - result.mapField.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i7.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i7.BuiltMap)); + result.mapField.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i7.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i7.BuiltMap), + ); case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StringField': - result.stringField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -3095,11 +2697,8 @@ class ErrorWithoutMembersAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ErrorWithoutMembers deserialize( diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/null_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/null_operation_test.dart index 42a2e5280e..b014608dab 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/null_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/null_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.null_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,286 +14,229 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11StructuresDontSerializeNullValues (request)', - () async { - await _i2.httpRequestTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11StructuresDontSerializeNullValues (request)', () async { + await _i2.httpRequestTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11StructuresDontSerializeNullValues', - documentation: 'Null structure values are dropped', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'string': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.NullOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11StructuresDontSerializeNullValues', + documentation: 'Null structure values are dropped', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'string': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.NullOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11MapsSerializeNullValues (request)', () async { + await _i2.httpRequestTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11MapsSerializeNullValues (request)', - () async { - await _i2.httpRequestTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11MapsSerializeNullValues', + documentation: 'Serializes null values in maps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringMap': {'foo': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.NullOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11ListsSerializeNull (request)', () async { + await _i2.httpRequestTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11MapsSerializeNullValues', - documentation: 'Serializes null values in maps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringMap': {'foo': null} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.NullOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11ListsSerializeNull', + documentation: 'Serializes null values in lists', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringList": [\n null\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.NullOperation', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11StructuresDontDeserializeNullValues (response)', () async { + await _i2.httpResponseTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11ListsSerializeNull (request)', - () async { - await _i2.httpRequestTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11StructuresDontDeserializeNullValues', + documentation: 'Null structure values are dropped', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "string": null\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11MapsDeserializeNullValues (response)', () async { + await _i2.httpResponseTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11ListsSerializeNull', - documentation: 'Serializes null values in lists', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringList": [\n null\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [null] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.NullOperation', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11MapsDeserializeNullValues', + documentation: 'Deserializes null values in maps', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringMap': {'foo': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); + _i1.test('AwsJson11ListsDeserializeNull (response)', () async { + await _i2.httpResponseTest( + operation: NullOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], - ); - }, - ); - _i1.test( - 'AwsJson11StructuresDontDeserializeNullValues (response)', - () async { - await _i2.httpResponseTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11StructuresDontDeserializeNullValues', - documentation: 'Null structure values are dropped', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "string": null\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - NullOperationInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11MapsDeserializeNullValues (response)', - () async { - await _i2.httpResponseTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11MapsDeserializeNullValues', - documentation: 'Deserializes null values in maps', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringMap": {\n "foo": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringMap': {'foo': null} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - NullOperationInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11ListsDeserializeNull (response)', - () async { - await _i2.httpResponseTest( - operation: NullOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11ListsDeserializeNull', - documentation: 'Deserializes null values in lists', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "sparseStringList": [\n null\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [null] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - NullOperationInputOutputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11ListsDeserializeNull', + documentation: 'Deserializes null values in lists', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "sparseStringList": [\n null\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NullOperationInputOutputAwsJson11Serializer()], + ); + }); } class NullOperationInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const NullOperationInputOutputAwsJson11Serializer() - : super('NullOperationInputOutput'); + : super('NullOperationInputOutput'); @override Iterable get types => const [NullOperationInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NullOperationInputOutput deserialize( @@ -312,29 +255,33 @@ class NullOperationInputOutputAwsJson11Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType.nullable(String)], - ), - ) as _i5.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i5.BuiltList), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i5.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i5.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart index 1d53460dbf..3ec0c09a0d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/operation_with_optional_input_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.operation_with_optional_input_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,119 +14,101 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'can_call_operation_with_no_input_or_output (request)', - () async { - await _i2.httpRequestTest( - operation: OperationWithOptionalInputOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('can_call_operation_with_no_input_or_output (request)', () async { + await _i2.httpRequestTest( + operation: OperationWithOptionalInputOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'can_call_operation_with_no_input_or_output', - documentation: 'Can call operations with no input or output', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'can_call_operation_with_no_input_or_output', + documentation: 'Can call operations with no input or output', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OperationWithOptionalInputOutputInputAwsJson11Serializer(), + ], + ); + }); + _i1.test('can_call_operation_with_optional_input (request)', () async { + await _i2.httpRequestTest( + operation: OperationWithOptionalInputOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - OperationWithOptionalInputOutputInputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'can_call_operation_with_optional_input (request)', - () async { - await _i2.httpRequestTest( - operation: OperationWithOptionalInputOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'can_call_operation_with_optional_input', - documentation: 'Can invoke operations with optional input', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{"Value":"Hi"}', - bodyMediaType: 'application/json', - params: {'Value': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OperationWithOptionalInputOutputInputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'can_call_operation_with_optional_input', + documentation: 'Can invoke operations with optional input', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{"Value":"Hi"}', + bodyMediaType: 'application/json', + params: {'Value': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.OperationWithOptionalInputOutput', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OperationWithOptionalInputOutputInputAwsJson11Serializer(), + ], + ); + }); } -class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i4 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputInputAwsJson11Serializer + extends + _i4.StructuredSmithySerializer { const OperationWithOptionalInputOutputInputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputInput'); + : super('OperationWithOptionalInputOutputInput'); @override Iterable get types => const [OperationWithOptionalInputOutputInput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputInput deserialize( @@ -145,10 +127,12 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i4 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -165,21 +149,19 @@ class OperationWithOptionalInputOutputInputAwsJson11Serializer extends _i4 } } -class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i4 - .StructuredSmithySerializer { +class OperationWithOptionalInputOutputOutputAwsJson11Serializer + extends + _i4.StructuredSmithySerializer { const OperationWithOptionalInputOutputOutputAwsJson11Serializer() - : super('OperationWithOptionalInputOutputOutput'); + : super('OperationWithOptionalInputOutputOutput'); @override Iterable get types => const [OperationWithOptionalInputOutputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override OperationWithOptionalInputOutputOutput deserialize( @@ -198,10 +180,12 @@ class OperationWithOptionalInputOutputOutputAwsJson11Serializer extends _i4 } switch (key) { case 'Value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart index ecbad337ba..e07ee9e29d 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_and_get_inline_documents_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.put_and_get_inline_documents_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,114 +14,96 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'PutAndGetInlineDocumentsInput (request)', - () async { - await _i2.httpRequestTest( - operation: PutAndGetInlineDocumentsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('PutAndGetInlineDocumentsInput (request)', () async { + await _i2.httpRequestTest( + operation: PutAndGetInlineDocumentsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'PutAndGetInlineDocumentsInput', - documentation: 'Serializes inline documents in a JSON request.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "inlineDocument": {"foo": "bar"}\n}', - bodyMediaType: 'application/json', - params: { - 'inlineDocument': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.PutAndGetInlineDocuments', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PutAndGetInlineDocumentsInput', + documentation: 'Serializes inline documents in a JSON request.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "inlineDocument": {"foo": "bar"}\n}', + bodyMediaType: 'application/json', + params: { + 'inlineDocument': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.PutAndGetInlineDocuments', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutAndGetInlineDocumentsInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('PutAndGetInlineDocumentsInput (response)', () async { + await _i2.httpResponseTest( + operation: PutAndGetInlineDocumentsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'PutAndGetInlineDocumentsInput (response)', - () async { - await _i2.httpResponseTest( - operation: PutAndGetInlineDocumentsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PutAndGetInlineDocumentsInput', - documentation: 'Serializes inline documents in a JSON response.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "inlineDocument": {"foo": "bar"}\n}', - bodyMediaType: 'application/json', - params: { - 'inlineDocument': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PutAndGetInlineDocumentsInput', + documentation: 'Serializes inline documents in a JSON response.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "inlineDocument": {"foo": "bar"}\n}', + bodyMediaType: 'application/json', + params: { + 'inlineDocument': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PutAndGetInlineDocumentsInputOutputAwsJson11Serializer(), + ], + ); + }); } -class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i4 - .StructuredSmithySerializer { +class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer + extends + _i4.StructuredSmithySerializer { const PutAndGetInlineDocumentsInputOutputAwsJson11Serializer() - : super('PutAndGetInlineDocumentsInputOutput'); + : super('PutAndGetInlineDocumentsInputOutput'); @override Iterable get types => const [PutAndGetInlineDocumentsInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutAndGetInlineDocumentsInputOutput deserialize( @@ -140,10 +122,12 @@ class PutAndGetInlineDocumentsInputOutputAwsJson11Serializer extends _i4 } switch (key) { case 'inlineDocument': - result.inlineDocument = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.JsonObject), - ) as _i5.JsonObject); + result.inlineDocument = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.JsonObject), + ) + as _i5.JsonObject); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart index 9ecd114800..f6086c63d5 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,117 +13,123 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_awsJson1_1 (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_awsJson1_1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', + _i1.test( + 'SDKAppliedContentEncoding_awsJson1_1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson11Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1 (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_1 protocol.\n', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_awsJson1_1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i4.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_1', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputAwsJson11Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputAwsJson11Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsJson1_1 protocol.\n', + protocol: _i4.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_1', + ), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputAwsJson11Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const PutWithContentEncodingInputAwsJson11Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PutWithContentEncodingInput deserialize( @@ -142,15 +148,19 @@ class PutWithContentEncodingInputAwsJson11Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart index 523c83e9d6..bc917e8673 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/json_protocol/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.json_protocol.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,306 +13,237 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsJson11SupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('AwsJson11SupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsJson11SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/x-amz-json-1.1', + 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsNaNFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11SupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsJson11SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/x-amz-json-1.1', - 'X-Amz-Target': 'JsonProtocol.SimpleScalarProperties', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11SupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); + _i1.test('AwsJson11SupportsNegativeInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsNaNFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11SupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "doubleValue": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11SupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "doubleValue": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); - _i1.test( - 'AwsJson11SupportsNegativeInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsJson11SupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputAwsJson11Serializer() - ], - ); - }, - ); + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsJson11SupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "doubleValue": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputAwsJson11Serializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputAwsJson11Serializer extends _i4.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputAwsJson11Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -331,15 +262,19 @@ class SimpleScalarPropertiesInputOutputAwsJson11Serializer } switch (key) { case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/awsJson1_1/test/machine_learning/predict_operation_test.dart b/packages/smithy/goldens/lib2/awsJson1_1/test/machine_learning/predict_operation_test.dart index 941a44a6bf..28c4c5d1ad 100644 --- a/packages/smithy/goldens/lib2/awsJson1_1/test/machine_learning/predict_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsJson1_1/test/machine_learning/predict_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_json1_1_v2.machine_learning.test.predict_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,52 +22,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('MachinelearningPredictEndpoint (request)', () async { - await _i2.httpRequestTest( - operation: PredictOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'MachinelearningPredictEndpoint', - documentation: - 'MachineLearning\'s api makes use of generated endpoints that the\ncustomer is then expected to use for the Predict operation. Having\nto alter the endpoint for a specific operation would be cumbersome,\nso an AWS client should be able to do it for them.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', + _i1.test( + 'MachinelearningPredictEndpoint (request)', + () async { + await _i2.httpRequestTest( + operation: PredictOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials( + 'DUMMY-ACCESS-KEY-ID', + 'DUMMY-SECRET-ACCESS-KEY', + ), + ), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'MachinelearningPredictEndpoint', + documentation: + 'MachineLearning\'s api makes use of generated endpoints that the\ncustomer is then expected to use for the Predict operation. Having\nto alter the endpoint for a specific operation would be cumbersome,\nso an AWS client should be able to do it for them.', + protocol: _i4.ShapeId( + namespace: 'aws.protocols', + shape: 'awsJson1_1', + ), + authScheme: null, + body: + '{"MLModelId": "foo", "Record": {}, "PredictEndpoint": "https://custom.example.com/"}', + bodyMediaType: 'application/json', + params: { + 'MLModelId': 'foo', + 'Record': {}, + 'PredictEndpoint': 'https://custom.example.com/', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-amz-json-1.1'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'custom.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: - '{"MLModelId": "foo", "Record": {}, "PredictEndpoint": "https://custom.example.com/"}', - bodyMediaType: 'application/json', - params: { - 'MLModelId': 'foo', - 'Record': {}, - 'PredictEndpoint': 'https://custom.example.com/', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-amz-json-1.1'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'custom.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PredictInputAwsJson11Serializer()], - ); - }, skip: 'ML Predict is not supported yet'); + inputSerializers: const [PredictInputAwsJson11Serializer()], + ); + }, + skip: 'ML Predict is not supported yet', + ); } class PredictInputAwsJson11Serializer @@ -79,11 +84,8 @@ class PredictInputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictInput deserialize( @@ -102,26 +104,30 @@ class PredictInputAwsJson11Serializer } switch (key) { case 'MLModelId': - result.mlModelId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.mlModelId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Record': - result.record.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i5.BuiltMap)); + result.record.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i5.BuiltMap), + ); case 'PredictEndpoint': - result.predictEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -147,11 +153,8 @@ class PredictOutputAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictOutput deserialize( @@ -170,10 +173,13 @@ class PredictOutputAwsJson11Serializer } switch (key) { case 'Prediction': - result.prediction.replace((serializers.deserialize( - value, - specifiedType: const FullType(Prediction), - ) as Prediction)); + result.prediction.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Prediction), + ) + as Prediction), + ); } } @@ -199,11 +205,8 @@ class PredictionAwsJson11Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override Prediction deserialize( @@ -222,37 +225,41 @@ class PredictionAwsJson11Serializer } switch (key) { case 'predictedLabel': - result.predictedLabel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.predictedLabel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'predictedValue': - result.predictedValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.predictedValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'predictedScores': - result.predictedScores.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(double), - ], - ), - ) as _i5.BuiltMap)); + result.predictedScores.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(double), + ]), + ) + as _i5.BuiltMap), + ); case 'details': - result.details.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(DetailsAttributes), - FullType(String), - ], - ), - ) as _i5.BuiltMap)); + result.details.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(DetailsAttributes), + FullType(String), + ]), + ) + as _i5.BuiltMap), + ); } } @@ -272,18 +279,15 @@ class PredictionAwsJson11Serializer class InternalServerExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const InternalServerExceptionAwsJson11Serializer() - : super('InternalServerException'); + : super('InternalServerException'); @override Iterable get types => const [InternalServerException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InternalServerException deserialize( @@ -302,15 +306,19 @@ class InternalServerExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -330,18 +338,15 @@ class InternalServerExceptionAwsJson11Serializer class InvalidInputExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const InvalidInputExceptionAwsJson11Serializer() - : super('InvalidInputException'); + : super('InvalidInputException'); @override Iterable get types => const [InvalidInputException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidInputException deserialize( @@ -360,15 +365,19 @@ class InvalidInputExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -388,18 +397,15 @@ class InvalidInputExceptionAwsJson11Serializer class LimitExceededExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const LimitExceededExceptionAwsJson11Serializer() - : super('LimitExceededException'); + : super('LimitExceededException'); @override Iterable get types => const [LimitExceededException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override LimitExceededException deserialize( @@ -418,15 +424,19 @@ class LimitExceededExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -446,18 +456,15 @@ class LimitExceededExceptionAwsJson11Serializer class PredictorNotMountedExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const PredictorNotMountedExceptionAwsJson11Serializer() - : super('PredictorNotMountedException'); + : super('PredictorNotMountedException'); @override Iterable get types => const [PredictorNotMountedException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override PredictorNotMountedException deserialize( @@ -476,10 +483,12 @@ class PredictorNotMountedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -499,18 +508,15 @@ class PredictorNotMountedExceptionAwsJson11Serializer class ResourceNotFoundExceptionAwsJson11Serializer extends _i4.StructuredSmithySerializer { const ResourceNotFoundExceptionAwsJson11Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ResourceNotFoundException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceNotFoundException deserialize( @@ -529,15 +535,19 @@ class ResourceNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/query_protocol.dart b/packages/smithy/goldens/lib2/awsQuery/lib/query_protocol.dart index 0e2ae3f434..9f52ef7293 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/query_protocol.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/query_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A query service that sends query requests and XML responses. library aws_query_v2.query_protocol; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart index cbf019091d..c6f1da6ac9 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Query Protocol'; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/serializers.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/serializers.dart index 899a75fd44..d97086043a 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -116,99 +116,42 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(GreetingStruct)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(GreetingStruct)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(GreetingStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(IntegerEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(IntegerEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(IntegerEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.dart index b2dd7f3919..a087685de2 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigAwsQuerySerializer() + AwsConfigAwsQuerySerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigAwsQuerySerializer const AwsConfigAwsQuerySerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override AwsConfig deserialize( @@ -102,15 +82,20 @@ class AwsConfigAwsQuerySerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -127,24 +112,28 @@ class AwsConfigAwsQuerySerializer const _i2.XmlElementName( 'AwsConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.dart index c562f6c83b..6d6af7eefc 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigAwsQuerySerializer() + ClientConfigAwsQuerySerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigAwsQuerySerializer const ClientConfigAwsQuerySerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ClientConfig deserialize( @@ -147,40 +121,56 @@ class ClientConfigAwsQuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -197,7 +187,7 @@ class ClientConfigAwsQuerySerializer const _i2.XmlElementName( 'ClientConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -206,63 +196,71 @@ class ClientConfigAwsQuerySerializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.dart index 0cb47ee216..d05aedcf20 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorAwsQuerySerializer() + ComplexErrorAwsQuerySerializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.query', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorAwsQuerySerializer const ComplexErrorAwsQuerySerializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexError deserialize( @@ -143,15 +122,20 @@ class ComplexErrorAwsQuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -168,24 +152,28 @@ class ComplexErrorAwsQuerySerializer const _i2.XmlElementName( 'ComplexErrorResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexError(:topLevel, :nested) = object; if (topLevel != null) { result$ ..add(const _i2.XmlElementName('TopLevel')) - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart index 8ebdd76006..5f95c534ad 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataAwsQuerySerializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataAwsQuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexNestedErrorData deserialize( @@ -85,10 +79,12 @@ class ComplexNestedErrorDataAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -105,16 +101,15 @@ class ComplexNestedErrorDataAwsQuerySerializer const _i2.XmlElementName( 'ComplexNestedErrorDataResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexNestedErrorData(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.dart index bdab00136c..a5ada464b5 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.custom_code_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,8 +19,9 @@ abstract class CustomCodeError return _$CustomCodeError._(message: message); } - factory CustomCodeError.build( - [void Function(CustomCodeErrorBuilder) updates]) = _$CustomCodeError; + factory CustomCodeError.build([ + void Function(CustomCodeErrorBuilder) updates, + ]) = _$CustomCodeError; const CustomCodeError._(); @@ -28,23 +29,22 @@ abstract class CustomCodeError factory CustomCodeError.fromResponse( CustomCodeError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - CustomCodeErrorAwsQuerySerializer() + CustomCodeErrorAwsQuerySerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'CustomCodeError', - ); + namespace: 'aws.protocoltests.query', + shape: 'CustomCodeError', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -64,10 +64,7 @@ abstract class CustomCodeError @override String toString() { final helper = newBuiltValueToStringHelper('CustomCodeError') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -77,18 +74,12 @@ class CustomCodeErrorAwsQuerySerializer const CustomCodeErrorAwsQuerySerializer() : super('CustomCodeError'); @override - Iterable get types => const [ - CustomCodeError, - _$CustomCodeError, - ]; + Iterable get types => const [CustomCodeError, _$CustomCodeError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override CustomCodeError deserialize( @@ -123,10 +114,12 @@ class CustomCodeErrorAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -143,16 +136,15 @@ class CustomCodeErrorAwsQuerySerializer const _i2.XmlElementName( 'CustomCodeErrorResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final CustomCodeError(:message) = object; if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart index b6afa70078..495c16baeb 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/custom_code_error.g.dart @@ -18,7 +18,7 @@ class _$CustomCodeError extends CustomCodeError { (new CustomCodeErrorBuilder()..update(updates))._build(); _$CustomCodeError._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override CustomCodeError rebuild(void Function(CustomCodeErrorBuilder) updates) => @@ -87,9 +87,13 @@ class CustomCodeErrorBuilder CustomCodeError build() => _build(); _$CustomCodeError _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CustomCodeError._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart index e959b2ea6b..90a63f9331 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputAwsQuerySerializer() + DatetimeOffsetsOutputAwsQuerySerializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsQuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -113,16 +106,15 @@ class DatetimeOffsetsOutputAwsQuerySerializer const _i2.XmlElementName( 'DatetimeOffsetsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final DatetimeOffsetsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart index 14351fa38f..0ceec40eea 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputAwsQuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputInputAwsQuerySerializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -89,7 +87,7 @@ class EmptyInputAndEmptyOutputInputAwsQuerySerializer const _i1.XmlElementName( 'EmptyInputAndEmptyOutputInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart index 59db6e9496..9a133b28ba 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputAwsQuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputOutputAwsQuerySerializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -86,7 +84,7 @@ class EmptyInputAndEmptyOutputOutputAwsQuerySerializer const _i2.XmlElementName( 'EmptyInputAndEmptyOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.dart index 43e5fd8bee..7faca614ef 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigAwsQuerySerializer() + EnvironmentConfigAwsQuerySerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigAwsQuerySerializer const EnvironmentConfigAwsQuerySerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EnvironmentConfig deserialize( @@ -136,35 +114,47 @@ class EnvironmentConfigAwsQuerySerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -181,7 +171,7 @@ class EnvironmentConfigAwsQuerySerializer const _i2.XmlElementName( 'EnvironmentConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -189,55 +179,67 @@ class EnvironmentConfigAwsQuerySerializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.dart index 5710d611aa..33ab138117 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsAwsQuerySerializer() + FileConfigSettingsAwsQuerySerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsAwsQuerySerializer const FileConfigSettingsAwsQuerySerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FileConfigSettings deserialize( @@ -148,40 +122,55 @@ class FileConfigSettingsAwsQuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -198,7 +187,7 @@ class FileConfigSettingsAwsQuerySerializer const _i2.XmlElementName( 'FileConfigSettingsResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -207,63 +196,71 @@ class FileConfigSettingsAwsQuerySerializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart index 6580d33794..8e51c0e3a2 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.flattened_xml_map_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,12 +17,13 @@ abstract class FlattenedXmlMapOutput implements Built { factory FlattenedXmlMapOutput({Map? myMap}) { return _$FlattenedXmlMapOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapOutput.build( - [void Function(FlattenedXmlMapOutputBuilder) updates]) = - _$FlattenedXmlMapOutput; + factory FlattenedXmlMapOutput.build([ + void Function(FlattenedXmlMapOutputBuilder) updates, + ]) = _$FlattenedXmlMapOutput; const FlattenedXmlMapOutput._(); @@ -30,11 +31,10 @@ abstract class FlattenedXmlMapOutput factory FlattenedXmlMapOutput.fromResponse( FlattenedXmlMapOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - FlattenedXmlMapOutputAwsQuerySerializer() + FlattenedXmlMapOutputAwsQuerySerializer(), ]; _i2.BuiltMap? get myMap; @@ -44,10 +44,7 @@ abstract class FlattenedXmlMapOutput @override String toString() { final helper = newBuiltValueToStringHelper('FlattenedXmlMapOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class FlattenedXmlMapOutput class FlattenedXmlMapOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapOutputAwsQuerySerializer() - : super('FlattenedXmlMapOutput'); + : super('FlattenedXmlMapOutput'); @override Iterable get types => const [ - FlattenedXmlMapOutput, - _$FlattenedXmlMapOutput, - ]; + FlattenedXmlMapOutput, + _$FlattenedXmlMapOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapOutput deserialize( @@ -96,23 +90,22 @@ class FlattenedXmlMapOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - flattenedKey: 'myMap', - indexer: _i3.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + flattenedKey: 'myMap', + indexer: _i3.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -129,24 +122,23 @@ class FlattenedXmlMapOutputAwsQuerySerializer const _i3.XmlElementName( 'FlattenedXmlMapOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final FlattenedXmlMapOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - flattenedKey: 'myMap', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + flattenedKey: 'myMap', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart index da1ea6538f..05f35ac71f 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_output.g.dart @@ -10,16 +10,16 @@ class _$FlattenedXmlMapOutput extends FlattenedXmlMapOutput { @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapOutput( - [void Function(FlattenedXmlMapOutputBuilder)? updates]) => - (new FlattenedXmlMapOutputBuilder()..update(updates))._build(); + factory _$FlattenedXmlMapOutput([ + void Function(FlattenedXmlMapOutputBuilder)? updates, + ]) => (new FlattenedXmlMapOutputBuilder()..update(updates))._build(); _$FlattenedXmlMapOutput._({this.myMap}) : super._(); @override FlattenedXmlMapOutput rebuild( - void Function(FlattenedXmlMapOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapOutputBuilder toBuilder() => @@ -85,7 +85,10 @@ class FlattenedXmlMapOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapOutput', _$failedField, e.toString()); + r'FlattenedXmlMapOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart index 6fc97f7d27..0376d8649e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.flattened_xml_map_with_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,19 +12,21 @@ import 'package:smithy/smithy.dart' as _i3; part 'flattened_xml_map_with_xml_name_output.g.dart'; abstract class FlattenedXmlMapWithXmlNameOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutputBuilder + > { factory FlattenedXmlMapWithXmlNameOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNameOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNameOutput.build( - [void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates]) = - _$FlattenedXmlMapWithXmlNameOutput; + factory FlattenedXmlMapWithXmlNameOutput.build([ + void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNameOutput; const FlattenedXmlMapWithXmlNameOutput._(); @@ -32,11 +34,10 @@ abstract class FlattenedXmlMapWithXmlNameOutput factory FlattenedXmlMapWithXmlNameOutput.fromResponse( FlattenedXmlMapWithXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer()]; + serializers = [FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer()]; _i2.BuiltMap? get myMap; @override @@ -44,12 +45,9 @@ abstract class FlattenedXmlMapWithXmlNameOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNameOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNameOutput', + )..add('myMap', myMap); return helper.toString(); } } @@ -57,21 +55,18 @@ abstract class FlattenedXmlMapWithXmlNameOutput class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNameOutput'); + : super('FlattenedXmlMapWithXmlNameOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNameOutput, - _$FlattenedXmlMapWithXmlNameOutput, - ]; + FlattenedXmlMapWithXmlNameOutput, + _$FlattenedXmlMapWithXmlNameOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNameOutput deserialize( @@ -98,25 +93,24 @@ class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer } switch (key) { case 'KVP': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -133,26 +127,25 @@ class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer const _i3.XmlElementName( 'FlattenedXmlMapWithXmlNameOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final FlattenedXmlMapWithXmlNameOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart index a81e6279af..f409c1583f 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_name_output.g.dart @@ -11,16 +11,17 @@ class _$FlattenedXmlMapWithXmlNameOutput @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNameOutput( - [void Function(FlattenedXmlMapWithXmlNameOutputBuilder)? updates]) => + factory _$FlattenedXmlMapWithXmlNameOutput([ + void Function(FlattenedXmlMapWithXmlNameOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNameOutputBuilder()..update(updates))._build(); _$FlattenedXmlMapWithXmlNameOutput._({this.myMap}) : super._(); @override FlattenedXmlMapWithXmlNameOutput rebuild( - void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNameOutputBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$FlattenedXmlMapWithXmlNameOutput class FlattenedXmlMapWithXmlNameOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutputBuilder + > { _$FlattenedXmlMapWithXmlNameOutput? _$v; _i2.MapBuilder? _myMap; @@ -80,7 +83,8 @@ class FlattenedXmlMapWithXmlNameOutputBuilder _$FlattenedXmlMapWithXmlNameOutput _build() { _$FlattenedXmlMapWithXmlNameOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNameOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -89,7 +93,10 @@ class FlattenedXmlMapWithXmlNameOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNameOutput', _$failedField, e.toString()); + r'FlattenedXmlMapWithXmlNameOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart index 875978c457..5d9fedfb48 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.flattened_xml_map_with_xml_namespace_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,19 +12,21 @@ import 'package:smithy/smithy.dart' as _i3; part 'flattened_xml_map_with_xml_namespace_output.g.dart'; abstract class FlattenedXmlMapWithXmlNamespaceOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { factory FlattenedXmlMapWithXmlNamespaceOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNamespaceOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNamespaceOutput.build( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates]) = _$FlattenedXmlMapWithXmlNamespaceOutput; + factory FlattenedXmlMapWithXmlNamespaceOutput.build([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNamespaceOutput; const FlattenedXmlMapWithXmlNamespaceOutput._(); @@ -32,11 +34,10 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput factory FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( FlattenedXmlMapWithXmlNamespaceOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer()]; + serializers = [FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer()]; _i2.BuiltMap? get myMap; @override @@ -44,34 +45,29 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNamespaceOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNamespaceOutput', + )..add('myMap', myMap); return helper.toString(); } } -class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNamespaceOutput, - _$FlattenedXmlMapWithXmlNamespaceOutput, - ]; + FlattenedXmlMapWithXmlNamespaceOutput, + _$FlattenedXmlMapWithXmlNamespaceOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -98,25 +94,24 @@ class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 } switch (key) { case 'KVP': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -133,26 +128,25 @@ class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 const _i3.XmlElementName( 'FlattenedXmlMapWithXmlNamespaceOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final FlattenedXmlMapWithXmlNamespaceOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart index ca42a9f815..289564813c 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart @@ -11,9 +11,9 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNamespaceOutput( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? - updates]) => + factory _$FlattenedXmlMapWithXmlNamespaceOutput([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNamespaceOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override FlattenedXmlMapWithXmlNamespaceOutput rebuild( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNamespaceOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput class FlattenedXmlMapWithXmlNamespaceOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { _$FlattenedXmlMapWithXmlNamespaceOutput? _$v; _i2.MapBuilder? _myMap; @@ -75,7 +76,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder @override void update( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates) { + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,7 +87,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _$FlattenedXmlMapWithXmlNamespaceOutput _build() { _$FlattenedXmlMapWithXmlNamespaceOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNamespaceOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -94,9 +97,10 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNamespaceOutput', - _$failedField, - e.toString()); + r'FlattenedXmlMapWithXmlNamespaceOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/foo_enum.dart index 0d61db919c..a79b83ac6e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart index 6f6cd2a869..85dea46e69 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputAwsQuerySerializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputAwsQuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FractionalSecondsOutput deserialize( @@ -112,16 +105,15 @@ class FractionalSecondsOutputAwsQuerySerializer const _i2.XmlElementName( 'FractionalSecondsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FractionalSecondsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_struct.dart index aa1885ebed..d41ecfd8d2 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructAwsQuerySerializer() + GreetingStructAwsQuerySerializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructAwsQuerySerializer const GreetingStructAwsQuerySerializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -84,10 +74,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -104,16 +96,13 @@ class GreetingStructAwsQuerySerializer const _i2.XmlElementName( 'GreetingStructResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingStruct(:hi) = object; if (hi != null) { result$ ..add(const _i2.XmlElementName('hi')) - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart index 0507adb7e7..47563c0859 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputAwsQuerySerializer()]; + serializers = [GreetingWithErrorsOutputAwsQuerySerializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsQuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -93,10 +86,12 @@ class GreetingWithErrorsOutputAwsQuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -113,16 +108,18 @@ class GreetingWithErrorsOutputAwsQuerySerializer const _i2.XmlElementName( 'GreetingWithErrorsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingWithErrorsOutput(:greeting) = object; if (greeting != null) { result$ ..add(const _i2.XmlElementName('greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.dart index 33833adb54..3c6040b1de 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputAwsQuerySerializer() + HostLabelInputAwsQuerySerializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputAwsQuerySerializer const HostLabelInputAwsQuerySerializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override HostLabelInput deserialize( @@ -106,10 +93,12 @@ class HostLabelInputAwsQuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -126,15 +115,14 @@ class HostLabelInputAwsQuerySerializer const _i1.XmlElementName( 'HostLabelInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final HostLabelInput(:label) = object; result$ ..add(const _i1.XmlElementName('label')) - ..add(serializers.serialize( - label, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(label, specifiedType: const FullType(String)), + ); return result$; } } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart index d97fec84c0..b0caae9208 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.ignores_wrapping_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignores_wrapping_xml_name_output.g.dart'; abstract class IgnoresWrappingXmlNameOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { factory IgnoresWrappingXmlNameOutput({String? foo}) { return _$IgnoresWrappingXmlNameOutput._(foo: foo); } - factory IgnoresWrappingXmlNameOutput.build( - [void Function(IgnoresWrappingXmlNameOutputBuilder) updates]) = - _$IgnoresWrappingXmlNameOutput; + factory IgnoresWrappingXmlNameOutput.build([ + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ]) = _$IgnoresWrappingXmlNameOutput; const IgnoresWrappingXmlNameOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoresWrappingXmlNameOutput factory IgnoresWrappingXmlNameOutput.fromResponse( IgnoresWrappingXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoresWrappingXmlNameOutputAwsQuerySerializer()]; + serializers = [IgnoresWrappingXmlNameOutputAwsQuerySerializer()]; String? get foo; @override @@ -43,10 +43,7 @@ abstract class IgnoresWrappingXmlNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('IgnoresWrappingXmlNameOutput') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -54,21 +51,18 @@ abstract class IgnoresWrappingXmlNameOutput class IgnoresWrappingXmlNameOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputAwsQuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [ - IgnoresWrappingXmlNameOutput, - _$IgnoresWrappingXmlNameOutput, - ]; + IgnoresWrappingXmlNameOutput, + _$IgnoresWrappingXmlNameOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -95,10 +89,12 @@ class IgnoresWrappingXmlNameOutputAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -115,16 +111,15 @@ class IgnoresWrappingXmlNameOutputAwsQuerySerializer const _i2.XmlElementName( 'IgnoreMeResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final IgnoresWrappingXmlNameOutput(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart index 75f7bcb29e..0a62eb4c94 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/ignores_wrapping_xml_name_output.g.dart @@ -10,16 +10,16 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { @override final String? foo; - factory _$IgnoresWrappingXmlNameOutput( - [void Function(IgnoresWrappingXmlNameOutputBuilder)? updates]) => - (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); + factory _$IgnoresWrappingXmlNameOutput([ + void Function(IgnoresWrappingXmlNameOutputBuilder)? updates, + ]) => (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); _$IgnoresWrappingXmlNameOutput._({this.foo}) : super._(); @override IgnoresWrappingXmlNameOutput rebuild( - void Function(IgnoresWrappingXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoresWrappingXmlNameOutputBuilder toBuilder() => @@ -42,8 +42,10 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { class IgnoresWrappingXmlNameOutputBuilder implements - Builder { + Builder< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { _$IgnoresWrappingXmlNameOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/integer_enum.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/integer_enum.dart index a65d81caa8..6ce97a5689 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/integer_enum.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/integer_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.integer_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class IntegerEnum extends _i1.SmithyIntEnum { - const IntegerEnum._( - super.index, - super.name, - super.value, - ); + const IntegerEnum._(super.index, super.name, super.value); const IntegerEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = IntegerEnum._( - 0, - 'A', - 1, - ); + static const a = IntegerEnum._(0, 'A', 1); - static const b = IntegerEnum._( - 1, - 'B', - 2, - ); + static const b = IntegerEnum._(1, 'B', 2); - static const c = IntegerEnum._( - 2, - 'C', - 3, - ); + static const c = IntegerEnum._(2, 'C', 3); /// All values of [IntegerEnum]. static const values = [ @@ -45,12 +29,9 @@ class IntegerEnum extends _i1.SmithyIntEnum { values: values, sdkUnknown: IntegerEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart index 18206d1ebb..d6a1b1c6d7 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingAwsQuerySerializer() + InvalidGreetingAwsQuerySerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.query', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingAwsQuerySerializer const InvalidGreetingAwsQuerySerializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override InvalidGreeting deserialize( @@ -126,10 +117,12 @@ class InvalidGreetingAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -146,16 +139,15 @@ class InvalidGreetingAwsQuerySerializer const _i2.XmlElementName( 'InvalidGreetingResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final InvalidGreeting(:message) = object; if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart index f12e2e08e9..cc3ea92f9d 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.nested_struct_with_list; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,18 @@ abstract class NestedStructWithList implements Built { factory NestedStructWithList({List? listArg}) { return _$NestedStructWithList._( - listArg: listArg == null ? null : _i2.BuiltList(listArg)); + listArg: listArg == null ? null : _i2.BuiltList(listArg), + ); } - factory NestedStructWithList.build( - [void Function(NestedStructWithListBuilder) updates]) = - _$NestedStructWithList; + factory NestedStructWithList.build([ + void Function(NestedStructWithListBuilder) updates, + ]) = _$NestedStructWithList; const NestedStructWithList._(); static const List<_i3.SmithySerializer> serializers = [ - NestedStructWithListAwsQuerySerializer() + NestedStructWithListAwsQuerySerializer(), ]; _i2.BuiltList? get listArg; @@ -36,10 +37,7 @@ abstract class NestedStructWithList @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructWithList') - ..add( - 'listArg', - listArg, - ); + ..add('listArg', listArg); return helper.toString(); } } @@ -47,21 +45,18 @@ abstract class NestedStructWithList class NestedStructWithListAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListAwsQuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [ - NestedStructWithList, - _$NestedStructWithList, - ]; + NestedStructWithList, + _$NestedStructWithList, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithList deserialize( @@ -88,16 +83,18 @@ class NestedStructWithListAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.listArg.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -114,22 +111,21 @@ class NestedStructWithListAwsQuerySerializer const _i3.XmlElementName( 'NestedStructWithListResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructWithList(:listArg) = object; if (listArg != null) { result$ ..add(const _i3.XmlElementName('ListArg')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart index 8018c2a3fb..c180ed47d2 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_list.g.dart @@ -10,16 +10,16 @@ class _$NestedStructWithList extends NestedStructWithList { @override final _i2.BuiltList? listArg; - factory _$NestedStructWithList( - [void Function(NestedStructWithListBuilder)? updates]) => - (new NestedStructWithListBuilder()..update(updates))._build(); + factory _$NestedStructWithList([ + void Function(NestedStructWithListBuilder)? updates, + ]) => (new NestedStructWithListBuilder()..update(updates))._build(); _$NestedStructWithList._({this.listArg}) : super._(); @override NestedStructWithList rebuild( - void Function(NestedStructWithListBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructWithListBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructWithListBuilder toBuilder() => @@ -86,7 +86,10 @@ class NestedStructWithListBuilder _listArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructWithList', _$failedField, e.toString()); + r'NestedStructWithList', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart index 3917a3af05..03ed05a3f5 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.nested_struct_with_map; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,18 @@ abstract class NestedStructWithMap implements Built { factory NestedStructWithMap({Map? mapArg}) { return _$NestedStructWithMap._( - mapArg: mapArg == null ? null : _i2.BuiltMap(mapArg)); + mapArg: mapArg == null ? null : _i2.BuiltMap(mapArg), + ); } - factory NestedStructWithMap.build( - [void Function(NestedStructWithMapBuilder) updates]) = - _$NestedStructWithMap; + factory NestedStructWithMap.build([ + void Function(NestedStructWithMapBuilder) updates, + ]) = _$NestedStructWithMap; const NestedStructWithMap._(); static const List<_i3.SmithySerializer> serializers = [ - NestedStructWithMapAwsQuerySerializer() + NestedStructWithMapAwsQuerySerializer(), ]; _i2.BuiltMap? get mapArg; @@ -36,10 +37,7 @@ abstract class NestedStructWithMap @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructWithMap') - ..add( - 'mapArg', - mapArg, - ); + ..add('mapArg', mapArg); return helper.toString(); } } @@ -50,17 +48,14 @@ class NestedStructWithMapAwsQuerySerializer @override Iterable get types => const [ - NestedStructWithMap, - _$NestedStructWithMap, - ]; + NestedStructWithMap, + _$NestedStructWithMap, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithMap deserialize( @@ -87,19 +82,18 @@ class NestedStructWithMapAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.mapArg.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } } @@ -116,25 +110,24 @@ class NestedStructWithMapAwsQuerySerializer const _i3.XmlElementName( 'NestedStructWithMapResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructWithMap(:mapArg) = object; if (mapArg != null) { result$ ..add(const _i3.XmlElementName('MapArg')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - mapArg, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapArg, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart index 1686ad52ce..f5ec78e7b5 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_struct_with_map.g.dart @@ -10,16 +10,16 @@ class _$NestedStructWithMap extends NestedStructWithMap { @override final _i2.BuiltMap? mapArg; - factory _$NestedStructWithMap( - [void Function(NestedStructWithMapBuilder)? updates]) => - (new NestedStructWithMapBuilder()..update(updates))._build(); + factory _$NestedStructWithMap([ + void Function(NestedStructWithMapBuilder)? updates, + ]) => (new NestedStructWithMapBuilder()..update(updates))._build(); _$NestedStructWithMap._({this.mapArg}) : super._(); @override NestedStructWithMap rebuild( - void Function(NestedStructWithMapBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructWithMapBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructWithMapBuilder toBuilder() => @@ -85,7 +85,10 @@ class NestedStructWithMapBuilder _mapArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructWithMap', _$failedField, e.toString()); + r'NestedStructWithMap', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart index ee16cd7f1e..d4118d7ff7 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.nested_structures_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class NestedStructuresInput return _$NestedStructuresInput._(nested: nested); } - factory NestedStructuresInput.build( - [void Function(NestedStructuresInputBuilder) updates]) = - _$NestedStructuresInput; + factory NestedStructuresInput.build([ + void Function(NestedStructuresInputBuilder) updates, + ]) = _$NestedStructuresInput; const NestedStructuresInput._(); @@ -30,11 +30,10 @@ abstract class NestedStructuresInput NestedStructuresInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - NestedStructuresInputAwsQuerySerializer() + NestedStructuresInputAwsQuerySerializer(), ]; StructArg? get nested; @@ -47,10 +46,7 @@ abstract class NestedStructuresInput @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructuresInput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class NestedStructuresInput class NestedStructuresInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const NestedStructuresInputAwsQuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [ - NestedStructuresInput, - _$NestedStructuresInput, - ]; + NestedStructuresInput, + _$NestedStructuresInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructuresInput deserialize( @@ -99,10 +92,13 @@ class NestedStructuresInputAwsQuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -119,16 +115,18 @@ class NestedStructuresInputAwsQuerySerializer const _i1.XmlElementName( 'NestedStructuresInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructuresInput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart index 664840923e..c02a3d5a4c 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/nested_structures_input.g.dart @@ -10,16 +10,16 @@ class _$NestedStructuresInput extends NestedStructuresInput { @override final StructArg? nested; - factory _$NestedStructuresInput( - [void Function(NestedStructuresInputBuilder)? updates]) => - (new NestedStructuresInputBuilder()..update(updates))._build(); + factory _$NestedStructuresInput([ + void Function(NestedStructuresInputBuilder)? updates, + ]) => (new NestedStructuresInputBuilder()..update(updates))._build(); _$NestedStructuresInput._({this.nested}) : super._(); @override NestedStructuresInput rebuild( - void Function(NestedStructuresInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructuresInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructuresInputBuilder toBuilder() => @@ -84,7 +84,10 @@ class NestedStructuresInputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructuresInput', _$failedField, e.toString()); + r'NestedStructuresInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart index 74d35a2fe5..686a0f86fa 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.no_input_and_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class NoInputAndOutputInput return _$NoInputAndOutputInput._(); } - factory NoInputAndOutputInput.build( - [void Function(NoInputAndOutputInputBuilder) updates]) = - _$NoInputAndOutputInput; + factory NoInputAndOutputInput.build([ + void Function(NoInputAndOutputInputBuilder) updates, + ]) = _$NoInputAndOutputInput; const NoInputAndOutputInput._(); @@ -31,11 +31,10 @@ abstract class NoInputAndOutputInput NoInputAndOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - NoInputAndOutputInputAwsQuerySerializer() + NoInputAndOutputInputAwsQuerySerializer(), ]; @override @@ -54,21 +53,18 @@ abstract class NoInputAndOutputInput class NoInputAndOutputInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const NoInputAndOutputInputAwsQuerySerializer() - : super('NoInputAndOutputInput'); + : super('NoInputAndOutputInput'); @override Iterable get types => const [ - NoInputAndOutputInput, - _$NoInputAndOutputInput, - ]; + NoInputAndOutputInput, + _$NoInputAndOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputInput deserialize( @@ -89,7 +85,7 @@ class NoInputAndOutputInputAwsQuerySerializer const _i1.XmlElementName( 'NoInputAndOutputInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart index 5bf6a7a892..0e6bac9a89 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_input.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_input.dart'; // ************************************************************************** class _$NoInputAndOutputInput extends NoInputAndOutputInput { - factory _$NoInputAndOutputInput( - [void Function(NoInputAndOutputInputBuilder)? updates]) => - (new NoInputAndOutputInputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputInput([ + void Function(NoInputAndOutputInputBuilder)? updates, + ]) => (new NoInputAndOutputInputBuilder()..update(updates))._build(); _$NoInputAndOutputInput._() : super._(); @override NoInputAndOutputInput rebuild( - void Function(NoInputAndOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart index 280d21dee1..d4c7516ac7 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputAwsQuerySerializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputAwsQuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputOutput deserialize( @@ -83,7 +79,7 @@ class NoInputAndOutputOutputAwsQuerySerializer const _i2.XmlElementName( 'NoInputAndOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.dart index 1f106c7ae1..8df5f1015b 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigAwsQuerySerializer() + OperationConfigAwsQuerySerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigAwsQuerySerializer const OperationConfigAwsQuerySerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override OperationConfig deserialize( @@ -89,10 +81,13 @@ class OperationConfigAwsQuerySerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -109,16 +104,15 @@ class OperationConfigAwsQuerySerializer const _i2.XmlElementName( 'OperationConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart index cf94460484..e11c2403bc 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class PutWithContentEncodingInput _i2.AWSEquatable implements Built { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -36,11 +30,10 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputAwsQuerySerializer()]; + serializers = [PutWithContentEncodingInputAwsQuerySerializer()]; String? get encoding; String? get data; @@ -48,22 +41,14 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInput getPayload() => this; @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class PutWithContentEncodingInput class PutWithContentEncodingInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputAwsQuerySerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override PutWithContentEncodingInput deserialize( @@ -112,15 +94,19 @@ class PutWithContentEncodingInputAwsQuerySerializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -137,24 +123,25 @@ class PutWithContentEncodingInputAwsQuerySerializer const _i1.XmlElementName( 'PutWithContentEncodingInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final PutWithContentEncodingInput(:encoding, :data) = object; if (encoding != null) { result$ ..add(const _i1.XmlElementName('encoding')) - ..add(serializers.serialize( - encoding, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + encoding, + specifiedType: const FullType(String), + ), + ); } if (data != null) { result$ ..add(const _i1.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart index 43d33e396f..ce25012d07 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart index 338661cb3a..e799ef7668 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -31,17 +33,17 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputAwsQuerySerializer()]; + serializers = [QueryIdempotencyTokenAutoFillInputAwsQuerySerializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -53,12 +55,9 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @@ -66,21 +65,18 @@ abstract class QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -107,10 +103,12 @@ class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -127,16 +125,15 @@ class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer const _i1.XmlElementName( 'QueryIdempotencyTokenAutoFillInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryIdempotencyTokenAutoFillInput(:token) = object; if (token != null) { result$ ..add(const _i1.XmlElementName('token')) - ..add(serializers.serialize( - token, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(token, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart index d13c11d730..d52f5f3185 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.dart index 00d5227cff..b5e041f20f 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.query_lists_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,18 +30,21 @@ abstract class QueryListsInput complexListArg == null ? null : _i3.BuiltList(complexListArg), flattenedListArg: flattenedListArg == null ? null : _i3.BuiltList(flattenedListArg), - listArgWithXmlNameMember: listArgWithXmlNameMember == null - ? null - : _i3.BuiltList(listArgWithXmlNameMember), - flattenedListArgWithXmlName: flattenedListArgWithXmlName == null - ? null - : _i3.BuiltList(flattenedListArgWithXmlName), + listArgWithXmlNameMember: + listArgWithXmlNameMember == null + ? null + : _i3.BuiltList(listArgWithXmlNameMember), + flattenedListArgWithXmlName: + flattenedListArgWithXmlName == null + ? null + : _i3.BuiltList(flattenedListArgWithXmlName), nestedWithList: nestedWithList, ); } - factory QueryListsInput.build( - [void Function(QueryListsInputBuilder) updates]) = _$QueryListsInput; + factory QueryListsInput.build([ + void Function(QueryListsInputBuilder) updates, + ]) = _$QueryListsInput; const QueryListsInput._(); @@ -49,11 +52,10 @@ abstract class QueryListsInput QueryListsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryListsInputAwsQuerySerializer() + QueryListsInputAwsQuerySerializer(), ]; _i3.BuiltList? get listArg; @@ -67,41 +69,24 @@ abstract class QueryListsInput @override List get props => [ - listArg, - complexListArg, - flattenedListArg, - listArgWithXmlNameMember, - flattenedListArgWithXmlName, - nestedWithList, - ]; + listArg, + complexListArg, + flattenedListArg, + listArgWithXmlNameMember, + flattenedListArgWithXmlName, + nestedWithList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryListsInput') - ..add( - 'listArg', - listArg, - ) - ..add( - 'complexListArg', - complexListArg, - ) - ..add( - 'flattenedListArg', - flattenedListArg, - ) - ..add( - 'listArgWithXmlNameMember', - listArgWithXmlNameMember, - ) - ..add( - 'flattenedListArgWithXmlName', - flattenedListArgWithXmlName, - ) - ..add( - 'nestedWithList', - nestedWithList, - ); + final helper = + newBuiltValueToStringHelper('QueryListsInput') + ..add('listArg', listArg) + ..add('complexListArg', complexListArg) + ..add('flattenedListArg', flattenedListArg) + ..add('listArgWithXmlNameMember', listArgWithXmlNameMember) + ..add('flattenedListArgWithXmlName', flattenedListArgWithXmlName) + ..add('nestedWithList', nestedWithList); return helper.toString(); } } @@ -111,18 +96,12 @@ class QueryListsInputAwsQuerySerializer const QueryListsInputAwsQuerySerializer() : super('QueryListsInput'); @override - Iterable get types => const [ - QueryListsInput, - _$QueryListsInput, - ]; + Iterable get types => const [QueryListsInput, _$QueryListsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryListsInput deserialize( @@ -149,55 +128,69 @@ class QueryListsInputAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i3.BuiltList)); + result.complexListArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i3.BuiltList), + ); case 'FlattenedListArg': - result.flattenedListArg.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListArg.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember - .replace((const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArgWithXmlNameMember.replace( + (const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'Hi': - result.flattenedListArgWithXmlName.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListArgWithXmlName.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -214,7 +207,7 @@ class QueryListsInputAwsQuerySerializer const _i1.XmlElementName( 'QueryListsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryListsInput( :listArg, @@ -222,84 +215,83 @@ class QueryListsInputAwsQuerySerializer :flattenedListArg, :listArgWithXmlNameMember, :flattenedListArgWithXmlName, - :nestedWithList + :nestedWithList, ) = object; if (listArg != null) { result$ ..add(const _i1.XmlElementName('ListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (complexListArg != null) { result$ ..add(const _i1.XmlElementName('ComplexListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.awsQueryList) - .serialize( - serializers, - complexListArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + complexListArg, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), ), - )); + ); } if (flattenedListArg != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'FlattenedListArg', - indexer: _i1.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'FlattenedListArg', + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListArg, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (listArgWithXmlNameMember != null) { result$ ..add(const _i1.XmlElementName('ListArgWithXmlNameMember')) - ..add(const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.awsQueryList, - ).serialize( - serializers, - listArgWithXmlNameMember, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + listArgWithXmlNameMember, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListArgWithXmlName != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'Hi', - indexer: _i1.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListArgWithXmlName, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'Hi', + indexer: _i1.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListArgWithXmlName, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (nestedWithList != null) { result$ ..add(const _i1.XmlElementName('NestedWithList')) - ..add(serializers.serialize( - nestedWithList, - specifiedType: const FullType(NestedStructWithList), - )); + ..add( + serializers.serialize( + nestedWithList, + specifiedType: const FullType(NestedStructWithList), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart index 1d53932a4b..8c77272ab9 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_lists_input.g.dart @@ -23,14 +23,14 @@ class _$QueryListsInput extends QueryListsInput { factory _$QueryListsInput([void Function(QueryListsInputBuilder)? updates]) => (new QueryListsInputBuilder()..update(updates))._build(); - _$QueryListsInput._( - {this.listArg, - this.complexListArg, - this.flattenedListArg, - this.listArgWithXmlNameMember, - this.flattenedListArgWithXmlName, - this.nestedWithList}) - : super._(); + _$QueryListsInput._({ + this.listArg, + this.complexListArg, + this.flattenedListArg, + this.listArgWithXmlNameMember, + this.flattenedListArgWithXmlName, + this.nestedWithList, + }) : super._(); @override QueryListsInput rebuild(void Function(QueryListsInputBuilder) updates) => @@ -91,15 +91,15 @@ class QueryListsInputBuilder _i3.ListBuilder get listArgWithXmlNameMember => _$this._listArgWithXmlNameMember ??= new _i3.ListBuilder(); set listArgWithXmlNameMember( - _i3.ListBuilder? listArgWithXmlNameMember) => - _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; + _i3.ListBuilder? listArgWithXmlNameMember, + ) => _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; _i3.ListBuilder? _flattenedListArgWithXmlName; _i3.ListBuilder get flattenedListArgWithXmlName => _$this._flattenedListArgWithXmlName ??= new _i3.ListBuilder(); set flattenedListArgWithXmlName( - _i3.ListBuilder? flattenedListArgWithXmlName) => - _$this._flattenedListArgWithXmlName = flattenedListArgWithXmlName; + _i3.ListBuilder? flattenedListArgWithXmlName, + ) => _$this._flattenedListArgWithXmlName = flattenedListArgWithXmlName; NestedStructWithListBuilder? _nestedWithList; NestedStructWithListBuilder get nestedWithList => @@ -141,15 +141,16 @@ class QueryListsInputBuilder _$QueryListsInput _build() { _$QueryListsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryListsInput._( - listArg: _listArg?.build(), - complexListArg: _complexListArg?.build(), - flattenedListArg: _flattenedListArg?.build(), - listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), - flattenedListArgWithXmlName: - _flattenedListArgWithXmlName?.build(), - nestedWithList: _nestedWithList?.build()); + listArg: _listArg?.build(), + complexListArg: _complexListArg?.build(), + flattenedListArg: _flattenedListArg?.build(), + listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), + flattenedListArgWithXmlName: _flattenedListArgWithXmlName?.build(), + nestedWithList: _nestedWithList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -167,7 +168,10 @@ class QueryListsInputBuilder _nestedWithList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryListsInput', _$failedField, e.toString()); + r'QueryListsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.dart index 8fb1a73f06..57314fed9c 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.query_maps_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,13 +30,15 @@ abstract class QueryMapsInput mapArg: mapArg == null ? null : _i3.BuiltMap(mapArg), renamedMapArg: renamedMapArg == null ? null : _i3.BuiltMap(renamedMapArg), complexMapArg: complexMapArg == null ? null : _i3.BuiltMap(complexMapArg), - mapWithXmlMemberName: mapWithXmlMemberName == null - ? null - : _i3.BuiltMap(mapWithXmlMemberName), + mapWithXmlMemberName: + mapWithXmlMemberName == null + ? null + : _i3.BuiltMap(mapWithXmlMemberName), flattenedMap: flattenedMap == null ? null : _i3.BuiltMap(flattenedMap), - flattenedMapWithXmlName: flattenedMapWithXmlName == null - ? null - : _i3.BuiltMap(flattenedMapWithXmlName), + flattenedMapWithXmlName: + flattenedMapWithXmlName == null + ? null + : _i3.BuiltMap(flattenedMapWithXmlName), mapOfLists: mapOfLists == null ? null : _i3.BuiltListMultimap(mapOfLists), nestedStructWithMap: nestedStructWithMap, ); @@ -51,11 +53,10 @@ abstract class QueryMapsInput QueryMapsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryMapsInputAwsQuerySerializer() + QueryMapsInputAwsQuerySerializer(), ]; _i3.BuiltMap? get mapArg; @@ -71,51 +72,28 @@ abstract class QueryMapsInput @override List get props => [ - mapArg, - renamedMapArg, - complexMapArg, - mapWithXmlMemberName, - flattenedMap, - flattenedMapWithXmlName, - mapOfLists, - nestedStructWithMap, - ]; + mapArg, + renamedMapArg, + complexMapArg, + mapWithXmlMemberName, + flattenedMap, + flattenedMapWithXmlName, + mapOfLists, + nestedStructWithMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryMapsInput') - ..add( - 'mapArg', - mapArg, - ) - ..add( - 'renamedMapArg', - renamedMapArg, - ) - ..add( - 'complexMapArg', - complexMapArg, - ) - ..add( - 'mapWithXmlMemberName', - mapWithXmlMemberName, - ) - ..add( - 'flattenedMap', - flattenedMap, - ) - ..add( - 'flattenedMapWithXmlName', - flattenedMapWithXmlName, - ) - ..add( - 'mapOfLists', - mapOfLists, - ) - ..add( - 'nestedStructWithMap', - nestedStructWithMap, - ); + final helper = + newBuiltValueToStringHelper('QueryMapsInput') + ..add('mapArg', mapArg) + ..add('renamedMapArg', renamedMapArg) + ..add('complexMapArg', complexMapArg) + ..add('mapWithXmlMemberName', mapWithXmlMemberName) + ..add('flattenedMap', flattenedMap) + ..add('flattenedMapWithXmlName', flattenedMapWithXmlName) + ..add('mapOfLists', mapOfLists) + ..add('nestedStructWithMap', nestedStructWithMap); return helper.toString(); } } @@ -125,18 +103,12 @@ class QueryMapsInputAwsQuerySerializer const QueryMapsInputAwsQuerySerializer() : super('QueryMapsInput'); @override - Iterable get types => const [ - QueryMapsInput, - _$QueryMapsInput, - ]; + Iterable get types => const [QueryMapsInput, _$QueryMapsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryMapsInput deserialize( @@ -163,120 +135,116 @@ class QueryMapsInputAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace(const _i1.XmlBuiltMapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.mapArg.replace( + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'Foo': - result.renamedMapArg.replace(const _i1.XmlBuiltMapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.renamedMapArg.replace( + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'ComplexMapArg': - result.complexMapArg.replace(const _i1.XmlBuiltMapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.complexMapArg.replace( + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); case 'MapWithXmlMemberName': - result.mapWithXmlMemberName.replace(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - indexer: _i1.XmlIndexer.awsQueryMap, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.mapWithXmlMemberName.replace( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'FlattenedMap': - result.flattenedMap.addAll(const _i1.XmlBuiltMapSerializer( - flattenedKey: 'FlattenedMap', - indexer: _i1.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.flattenedMap.addAll( + const _i1.XmlBuiltMapSerializer( + flattenedKey: 'FlattenedMap', + indexer: _i1.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); case 'Hi': - result.flattenedMapWithXmlName.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'Hi', - indexer: _i1.XmlIndexer.awsQueryMap, - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.flattenedMapWithXmlName.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'Hi', + indexer: _i1.XmlIndexer.awsQueryMap, + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); case 'MapOfLists': - result.mapOfLists.replace(const _i1.XmlBuiltMultimapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltListMultimap, - [ + result.mapOfLists.replace( + const _i1.XmlBuiltMultimapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); case 'NestedStructWithMap': - result.nestedStructWithMap.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithMap), - ) as NestedStructWithMap)); + result.nestedStructWithMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithMap), + ) + as NestedStructWithMap), + ); } } @@ -293,7 +261,7 @@ class QueryMapsInputAwsQuerySerializer const _i1.XmlElementName( 'QueryMapsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryMapsInput( :mapArg, @@ -303,136 +271,131 @@ class QueryMapsInputAwsQuerySerializer :flattenedMap, :flattenedMapWithXmlName, :mapOfLists, - :nestedStructWithMap + :nestedStructWithMap, ) = object; if (mapArg != null) { result$ ..add(const _i1.XmlElementName('MapArg')) ..add( - const _i1.XmlBuiltMapSerializer(indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - mapArg, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapArg, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (renamedMapArg != null) { result$ ..add(const _i1.XmlElementName('Foo')) ..add( - const _i1.XmlBuiltMapSerializer(indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - renamedMapArg, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + renamedMapArg, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (complexMapArg != null) { result$ ..add(const _i1.XmlElementName('ComplexMapArg')) ..add( - const _i1.XmlBuiltMapSerializer(indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - complexMapArg, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + complexMapArg, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } if (mapWithXmlMemberName != null) { result$ ..add(const _i1.XmlElementName('MapWithXmlMemberName')) - ..add(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - indexer: _i1.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - mapWithXmlMemberName, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapWithXmlMemberName, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (flattenedMap != null) { - result$.addAll(const _i1.XmlBuiltMapSerializer( - flattenedKey: 'FlattenedMap', - indexer: _i1.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - flattenedMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + result$.addAll( + const _i1.XmlBuiltMapSerializer( + flattenedKey: 'FlattenedMap', + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + flattenedMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (flattenedMapWithXmlName != null) { - result$.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'Hi', - indexer: _i1.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - flattenedMapWithXmlName, - specifiedType: const FullType( - _i3.BuiltMap, - [ + result$.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'Hi', + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + flattenedMapWithXmlName, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (mapOfLists != null) { result$ ..add(const _i1.XmlElementName('MapOfLists')) - ..add(const _i1.XmlBuiltMultimapSerializer( - indexer: _i1.XmlIndexer.awsQueryMap) - .serialize( - serializers, - mapOfLists, - specifiedType: const FullType( - _i3.BuiltListMultimap, - [ + ..add( + const _i1.XmlBuiltMultimapSerializer( + indexer: _i1.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + mapOfLists, + specifiedType: const FullType(_i3.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (nestedStructWithMap != null) { result$ ..add(const _i1.XmlElementName('NestedStructWithMap')) - ..add(serializers.serialize( - nestedStructWithMap, - specifiedType: const FullType(NestedStructWithMap), - )); + ..add( + serializers.serialize( + nestedStructWithMap, + specifiedType: const FullType(NestedStructWithMap), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart index b07b2b1f32..cb0caaddea 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_maps_input.g.dart @@ -27,16 +27,16 @@ class _$QueryMapsInput extends QueryMapsInput { factory _$QueryMapsInput([void Function(QueryMapsInputBuilder)? updates]) => (new QueryMapsInputBuilder()..update(updates))._build(); - _$QueryMapsInput._( - {this.mapArg, - this.renamedMapArg, - this.complexMapArg, - this.mapWithXmlMemberName, - this.flattenedMap, - this.flattenedMapWithXmlName, - this.mapOfLists, - this.nestedStructWithMap}) - : super._(); + _$QueryMapsInput._({ + this.mapArg, + this.renamedMapArg, + this.complexMapArg, + this.mapWithXmlMemberName, + this.flattenedMap, + this.flattenedMapWithXmlName, + this.mapOfLists, + this.nestedStructWithMap, + }) : super._(); @override QueryMapsInput rebuild(void Function(QueryMapsInputBuilder) updates) => @@ -101,8 +101,8 @@ class QueryMapsInputBuilder _i3.MapBuilder get mapWithXmlMemberName => _$this._mapWithXmlMemberName ??= new _i3.MapBuilder(); set mapWithXmlMemberName( - _i3.MapBuilder? mapWithXmlMemberName) => - _$this._mapWithXmlMemberName = mapWithXmlMemberName; + _i3.MapBuilder? mapWithXmlMemberName, + ) => _$this._mapWithXmlMemberName = mapWithXmlMemberName; _i3.MapBuilder? _flattenedMap; _i3.MapBuilder get flattenedMap => @@ -114,8 +114,8 @@ class QueryMapsInputBuilder _i3.MapBuilder get flattenedMapWithXmlName => _$this._flattenedMapWithXmlName ??= new _i3.MapBuilder(); set flattenedMapWithXmlName( - _i3.MapBuilder? flattenedMapWithXmlName) => - _$this._flattenedMapWithXmlName = flattenedMapWithXmlName; + _i3.MapBuilder? flattenedMapWithXmlName, + ) => _$this._flattenedMapWithXmlName = flattenedMapWithXmlName; _i3.ListMultimapBuilder? _mapOfLists; _i3.ListMultimapBuilder get mapOfLists => @@ -164,16 +164,18 @@ class QueryMapsInputBuilder _$QueryMapsInput _build() { _$QueryMapsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryMapsInput._( - mapArg: _mapArg?.build(), - renamedMapArg: _renamedMapArg?.build(), - complexMapArg: _complexMapArg?.build(), - mapWithXmlMemberName: _mapWithXmlMemberName?.build(), - flattenedMap: _flattenedMap?.build(), - flattenedMapWithXmlName: _flattenedMapWithXmlName?.build(), - mapOfLists: _mapOfLists?.build(), - nestedStructWithMap: _nestedStructWithMap?.build()); + mapArg: _mapArg?.build(), + renamedMapArg: _renamedMapArg?.build(), + complexMapArg: _complexMapArg?.build(), + mapWithXmlMemberName: _mapWithXmlMemberName?.build(), + flattenedMap: _flattenedMap?.build(), + flattenedMapWithXmlName: _flattenedMapWithXmlName?.build(), + mapOfLists: _mapOfLists?.build(), + nestedStructWithMap: _nestedStructWithMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -195,7 +197,10 @@ class QueryMapsInputBuilder _nestedStructWithMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryMapsInput', _$failedField, e.toString()); + r'QueryMapsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart index 09d6e55ab6..7e82be186e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.query_timestamps_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class QueryTimestampsInput ); } - factory QueryTimestampsInput.build( - [void Function(QueryTimestampsInputBuilder) updates]) = - _$QueryTimestampsInput; + factory QueryTimestampsInput.build([ + void Function(QueryTimestampsInputBuilder) updates, + ]) = _$QueryTimestampsInput; const QueryTimestampsInput._(); @@ -37,11 +37,10 @@ abstract class QueryTimestampsInput QueryTimestampsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryTimestampsInputAwsQuerySerializer() + QueryTimestampsInputAwsQuerySerializer(), ]; DateTime? get normalFormat; @@ -51,27 +50,15 @@ abstract class QueryTimestampsInput QueryTimestampsInput getPayload() => this; @override - List get props => [ - normalFormat, - epochMember, - epochTarget, - ]; + List get props => [normalFormat, epochMember, epochTarget]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryTimestampsInput') - ..add( - 'normalFormat', - normalFormat, - ) - ..add( - 'epochMember', - epochMember, - ) - ..add( - 'epochTarget', - epochTarget, - ); + final helper = + newBuiltValueToStringHelper('QueryTimestampsInput') + ..add('normalFormat', normalFormat) + ..add('epochMember', epochMember) + ..add('epochTarget', epochTarget); return helper.toString(); } } @@ -79,21 +66,18 @@ abstract class QueryTimestampsInput class QueryTimestampsInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const QueryTimestampsInputAwsQuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [ - QueryTimestampsInput, - _$QueryTimestampsInput, - ]; + QueryTimestampsInput, + _$QueryTimestampsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryTimestampsInput deserialize( @@ -120,10 +104,12 @@ class QueryTimestampsInputAwsQuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normalFormat = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'epochMember': result.epochMember = _i1.TimestampSerializer.epochSeconds.deserialize( serializers, @@ -150,33 +136,39 @@ class QueryTimestampsInputAwsQuerySerializer const _i1.XmlElementName( 'QueryTimestampsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryTimestampsInput(:normalFormat, :epochMember, :epochTarget) = object; if (normalFormat != null) { result$ ..add(const _i1.XmlElementName('normalFormat')) - ..add(serializers.serialize( - normalFormat, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normalFormat, + specifiedType: const FullType(DateTime), + ), + ); } if (epochMember != null) { result$ ..add(const _i1.XmlElementName('epochMember')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochMember, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochMember, + ), + ); } if (epochTarget != null) { result$ ..add(const _i1.XmlElementName('epochTarget')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart index e90ce16080..fc84becfa6 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/query_timestamps_input.g.dart @@ -14,18 +14,20 @@ class _$QueryTimestampsInput extends QueryTimestampsInput { @override final DateTime? epochTarget; - factory _$QueryTimestampsInput( - [void Function(QueryTimestampsInputBuilder)? updates]) => - (new QueryTimestampsInputBuilder()..update(updates))._build(); + factory _$QueryTimestampsInput([ + void Function(QueryTimestampsInputBuilder)? updates, + ]) => (new QueryTimestampsInputBuilder()..update(updates))._build(); - _$QueryTimestampsInput._( - {this.normalFormat, this.epochMember, this.epochTarget}) - : super._(); + _$QueryTimestampsInput._({ + this.normalFormat, + this.epochMember, + this.epochTarget, + }) : super._(); @override QueryTimestampsInput rebuild( - void Function(QueryTimestampsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryTimestampsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryTimestampsInputBuilder toBuilder() => @@ -96,11 +98,13 @@ class QueryTimestampsInputBuilder QueryTimestampsInput build() => _build(); _$QueryTimestampsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$QueryTimestampsInput._( - normalFormat: normalFormat, - epochMember: epochMember, - epochTarget: epochTarget); + normalFormat: normalFormat, + epochMember: epochMember, + epochTarget: epochTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart index d88b863f8c..dc3dad1588 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.recursive_xml_shapes_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class RecursiveXmlShapesOutput return _$RecursiveXmlShapesOutput._(nested: nested); } - factory RecursiveXmlShapesOutput.build( - [void Function(RecursiveXmlShapesOutputBuilder) updates]) = - _$RecursiveXmlShapesOutput; + factory RecursiveXmlShapesOutput.build([ + void Function(RecursiveXmlShapesOutputBuilder) updates, + ]) = _$RecursiveXmlShapesOutput; const RecursiveXmlShapesOutput._(); @@ -29,11 +29,10 @@ abstract class RecursiveXmlShapesOutput factory RecursiveXmlShapesOutput.fromResponse( RecursiveXmlShapesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputAwsQuerySerializer()]; + serializers = [RecursiveXmlShapesOutputAwsQuerySerializer()]; RecursiveXmlShapesOutputNested1? get nested; @override @@ -42,10 +41,7 @@ abstract class RecursiveXmlShapesOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -53,21 +49,18 @@ abstract class RecursiveXmlShapesOutput class RecursiveXmlShapesOutputAwsQuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputAwsQuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [ - RecursiveXmlShapesOutput, - _$RecursiveXmlShapesOutput, - ]; + RecursiveXmlShapesOutput, + _$RecursiveXmlShapesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -94,10 +87,15 @@ class RecursiveXmlShapesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -114,16 +112,18 @@ class RecursiveXmlShapesOutputAwsQuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart index 2d7e34d129..21994706b3 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveXmlShapesOutput extends RecursiveXmlShapesOutput { @override final RecursiveXmlShapesOutputNested1? nested; - factory _$RecursiveXmlShapesOutput( - [void Function(RecursiveXmlShapesOutputBuilder)? updates]) => - (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); + factory _$RecursiveXmlShapesOutput([ + void Function(RecursiveXmlShapesOutputBuilder)? updates, + ]) => (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); _$RecursiveXmlShapesOutput._({this.nested}) : super._(); @override RecursiveXmlShapesOutput rebuild( - void Function(RecursiveXmlShapesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveXmlShapesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutput', _$failedField, e.toString()); + r'RecursiveXmlShapesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart index bc3b35e6a3..ee5905de18 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.recursive_xml_shapes_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested1.g.dart'; abstract class RecursiveXmlShapesOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { factory RecursiveXmlShapesOutputNested1({ String? foo, RecursiveXmlShapesOutputNested2? nested, }) { - return _$RecursiveXmlShapesOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveXmlShapesOutputNested1._(foo: foo, nested: nested); } - factory RecursiveXmlShapesOutputNested1.build( - [void Function(RecursiveXmlShapesOutputNested1Builder) updates]) = - _$RecursiveXmlShapesOutputNested1; + factory RecursiveXmlShapesOutputNested1.build([ + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested1; const RecursiveXmlShapesOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested1AwsQuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested1AwsQuerySerializer()]; String? get foo; RecursiveXmlShapesOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1AwsQuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested1, - _$RecursiveXmlShapesOutputNested1, - ]; + RecursiveXmlShapesOutputNested1, + _$RecursiveXmlShapesOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -104,15 +90,22 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -129,24 +122,25 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested1Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested1(:foo, :nested) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart index f9749c812c..3835b660fe 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested1.g.dart @@ -13,16 +13,17 @@ class _$RecursiveXmlShapesOutputNested1 @override final RecursiveXmlShapesOutputNested2? nested; - factory _$RecursiveXmlShapesOutputNested1( - [void Function(RecursiveXmlShapesOutputNested1Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested1([ + void Function(RecursiveXmlShapesOutputNested1Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested1Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested1._({this.foo, this.nested}) : super._(); @override RecursiveXmlShapesOutputNested1 rebuild( - void Function(RecursiveXmlShapesOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested1Builder toBuilder() => @@ -48,8 +49,10 @@ class _$RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { _$RecursiveXmlShapesOutputNested1? _$v; String? _foo; @@ -91,9 +94,12 @@ class RecursiveXmlShapesOutputNested1Builder _$RecursiveXmlShapesOutputNested1 _build() { _$RecursiveXmlShapesOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,7 +107,10 @@ class RecursiveXmlShapesOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested1', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart index 9bc9aeec64..059fb86a22 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.recursive_xml_shapes_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested2.g.dart'; abstract class RecursiveXmlShapesOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { factory RecursiveXmlShapesOutputNested2({ String? bar, RecursiveXmlShapesOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveXmlShapesOutputNested2 ); } - factory RecursiveXmlShapesOutputNested2.build( - [void Function(RecursiveXmlShapesOutputNested2Builder) updates]) = - _$RecursiveXmlShapesOutputNested2; + factory RecursiveXmlShapesOutputNested2.build([ + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested2; const RecursiveXmlShapesOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested2AwsQuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested2AwsQuerySerializer()]; String? get bar; RecursiveXmlShapesOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2AwsQuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested2, - _$RecursiveXmlShapesOutputNested2, - ]; + RecursiveXmlShapesOutputNested2, + _$RecursiveXmlShapesOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -104,15 +93,22 @@ class RecursiveXmlShapesOutputNested2AwsQuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -129,24 +125,25 @@ class RecursiveXmlShapesOutputNested2AwsQuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested2Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested2(:bar, :recursiveMember) = object; if (bar != null) { result$ ..add(const _i2.XmlElementName('bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add(const _i2.XmlElementName('recursiveMember')) - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart index ca96543993..048cc789c9 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/recursive_xml_shapes_output_nested2.g.dart @@ -13,17 +13,18 @@ class _$RecursiveXmlShapesOutputNested2 @override final RecursiveXmlShapesOutputNested1? recursiveMember; - factory _$RecursiveXmlShapesOutputNested2( - [void Function(RecursiveXmlShapesOutputNested2Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested2([ + void Function(RecursiveXmlShapesOutputNested2Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested2Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveXmlShapesOutputNested2 rebuild( - void Function(RecursiveXmlShapesOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested2Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { _$RecursiveXmlShapesOutputNested2? _$v; String? _bar; @@ -61,8 +64,8 @@ class RecursiveXmlShapesOutputNested2Builder RecursiveXmlShapesOutputNested1Builder get recursiveMember => _$this._recursiveMember ??= new RecursiveXmlShapesOutputNested1Builder(); set recursiveMember( - RecursiveXmlShapesOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveXmlShapesOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveXmlShapesOutputNested2Builder(); @@ -93,9 +96,12 @@ class RecursiveXmlShapesOutputNested2Builder _$RecursiveXmlShapesOutputNested2 _build() { _$RecursiveXmlShapesOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +109,10 @@ class RecursiveXmlShapesOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested2', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_config.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_config.dart index 37c68f75a3..acbd488864 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigAwsQuerySerializer() + RetryConfigAwsQuerySerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigAwsQuerySerializer const RetryConfigAwsQuerySerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RetryConfig deserialize( @@ -103,15 +83,19 @@ class RetryConfigAwsQuerySerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -128,24 +112,25 @@ class RetryConfigAwsQuerySerializer const _i2.XmlElementName( 'RetryConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RetryConfig(:mode, :maxAttempts) = object; if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_mode.dart index 77d6821e4e..f0dbd59463 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart index 0e9c869dcb..d9bc5a5910 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.dart index aa00338e29..69ca88656b 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigAwsQuerySerializer() + S3ConfigAwsQuerySerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigAwsQuerySerializer const S3ConfigAwsQuerySerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override S3Config deserialize( @@ -110,20 +96,26 @@ class S3ConfigAwsQuerySerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -140,36 +132,42 @@ class S3ConfigAwsQuerySerializer const _i2.XmlElementName( 'S3ConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.dart index af23e2a500..cebd23827d 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigAwsQuerySerializer() + ScopedConfigAwsQuerySerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigAwsQuerySerializer const ScopedConfigAwsQuerySerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ScopedConfig deserialize( @@ -140,48 +120,55 @@ class ScopedConfigAwsQuerySerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -198,72 +185,76 @@ class ScopedConfigAwsQuerySerializer const _i3.XmlElementName( 'ScopedConfigResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final ScopedConfig( :environment, :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart index c39edc9bed..809a6a0f96 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.simple_input_params_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -43,9 +43,9 @@ abstract class SimpleInputParamsInput ); } - factory SimpleInputParamsInput.build( - [void Function(SimpleInputParamsInputBuilder) updates]) = - _$SimpleInputParamsInput; + factory SimpleInputParamsInput.build([ + void Function(SimpleInputParamsInputBuilder) updates, + ]) = _$SimpleInputParamsInput; const SimpleInputParamsInput._(); @@ -53,8 +53,7 @@ abstract class SimpleInputParamsInput SimpleInputParamsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [SimpleInputParamsInputAwsQuerySerializer()]; @@ -73,56 +72,30 @@ abstract class SimpleInputParamsInput @override List get props => [ - foo, - bar, - baz, - bam, - floatValue, - boo, - qux, - fooEnum, - integerEnum, - ]; + foo, + bar, + baz, + bam, + floatValue, + boo, + qux, + fooEnum, + integerEnum, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleInputParamsInput') - ..add( - 'foo', - foo, - ) - ..add( - 'bar', - bar, - ) - ..add( - 'baz', - baz, - ) - ..add( - 'bam', - bam, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'boo', - boo, - ) - ..add( - 'qux', - qux, - ) - ..add( - 'fooEnum', - fooEnum, - ) - ..add( - 'integerEnum', - integerEnum, - ); + final helper = + newBuiltValueToStringHelper('SimpleInputParamsInput') + ..add('foo', foo) + ..add('bar', bar) + ..add('baz', baz) + ..add('bam', bam) + ..add('floatValue', floatValue) + ..add('boo', boo) + ..add('qux', qux) + ..add('fooEnum', fooEnum) + ..add('integerEnum', integerEnum); return helper.toString(); } } @@ -130,21 +103,18 @@ abstract class SimpleInputParamsInput class SimpleInputParamsInputAwsQuerySerializer extends _i1.StructuredSmithySerializer { const SimpleInputParamsInputAwsQuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [ - SimpleInputParamsInput, - _$SimpleInputParamsInput, - ]; + SimpleInputParamsInput, + _$SimpleInputParamsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleInputParamsInput deserialize( @@ -171,50 +141,68 @@ class SimpleInputParamsInputAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'IntegerEnum': - result.integerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); } } @@ -231,7 +219,7 @@ class SimpleInputParamsInputAwsQuerySerializer const _i1.XmlElementName( 'SimpleInputParamsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleInputParamsInput( :foo, @@ -242,79 +230,78 @@ class SimpleInputParamsInputAwsQuerySerializer :boo, :qux, :fooEnum, - :integerEnum + :integerEnum, ) = object; if (foo != null) { result$ ..add(const _i1.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (bar != null) { result$ ..add(const _i1.XmlElementName('Bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (baz != null) { result$ ..add(const _i1.XmlElementName('Baz')) - ..add(serializers.serialize( - baz, - specifiedType: const FullType(bool), - )); + ..add(serializers.serialize(baz, specifiedType: const FullType(bool))); } if (bam != null) { result$ ..add(const _i1.XmlElementName('Bam')) - ..add(serializers.serialize( - bam, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(bam, specifiedType: const FullType(int))); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('FloatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (boo != null) { result$ ..add(const _i1.XmlElementName('Boo')) - ..add(serializers.serialize( - boo, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(boo, specifiedType: const FullType(double)), + ); } if (qux != null) { result$ ..add(const _i1.XmlElementName('Qux')) - ..add(serializers.serialize( - qux, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + qux, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (fooEnum != null) { result$ ..add(const _i1.XmlElementName('FooEnum')) - ..add(serializers.serialize( - fooEnum, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum, + specifiedType: const FullType(FooEnum), + ), + ); } if (integerEnum != null) { result$ ..add(const _i1.XmlElementName('IntegerEnum')) - ..add(serializers.serialize( - integerEnum, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + integerEnum, + specifiedType: const FullType(IntegerEnum), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart index 11033b7909..65d6835280 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_input_params_input.g.dart @@ -26,26 +26,26 @@ class _$SimpleInputParamsInput extends SimpleInputParamsInput { @override final IntegerEnum? integerEnum; - factory _$SimpleInputParamsInput( - [void Function(SimpleInputParamsInputBuilder)? updates]) => - (new SimpleInputParamsInputBuilder()..update(updates))._build(); - - _$SimpleInputParamsInput._( - {this.foo, - this.bar, - this.baz, - this.bam, - this.floatValue, - this.boo, - this.qux, - this.fooEnum, - this.integerEnum}) - : super._(); + factory _$SimpleInputParamsInput([ + void Function(SimpleInputParamsInputBuilder)? updates, + ]) => (new SimpleInputParamsInputBuilder()..update(updates))._build(); + + _$SimpleInputParamsInput._({ + this.foo, + this.bar, + this.baz, + this.bam, + this.floatValue, + this.boo, + this.qux, + this.fooEnum, + this.integerEnum, + }) : super._(); @override SimpleInputParamsInput rebuild( - void Function(SimpleInputParamsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleInputParamsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleInputParamsInputBuilder toBuilder() => @@ -158,17 +158,19 @@ class SimpleInputParamsInputBuilder SimpleInputParamsInput build() => _build(); _$SimpleInputParamsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleInputParamsInput._( - foo: foo, - bar: bar, - baz: baz, - bam: bam, - floatValue: floatValue, - boo: boo, - qux: qux, - fooEnum: fooEnum, - integerEnum: integerEnum); + foo: foo, + bar: bar, + baz: baz, + bam: bam, + floatValue: floatValue, + boo: boo, + qux: qux, + fooEnum: fooEnum, + integerEnum: integerEnum, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart index 10b53f741d..a3c0334ad5 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.simple_scalar_xml_properties_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i3; part 'simple_scalar_xml_properties_output.g.dart'; abstract class SimpleScalarXmlPropertiesOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { factory SimpleScalarXmlPropertiesOutput({ String? stringValue, String? emptyStringValue, @@ -43,9 +44,9 @@ abstract class SimpleScalarXmlPropertiesOutput ); } - factory SimpleScalarXmlPropertiesOutput.build( - [void Function(SimpleScalarXmlPropertiesOutputBuilder) updates]) = - _$SimpleScalarXmlPropertiesOutput; + factory SimpleScalarXmlPropertiesOutput.build([ + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ]) = _$SimpleScalarXmlPropertiesOutput; const SimpleScalarXmlPropertiesOutput._(); @@ -53,11 +54,10 @@ abstract class SimpleScalarXmlPropertiesOutput factory SimpleScalarXmlPropertiesOutput.fromResponse( SimpleScalarXmlPropertiesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [SimpleScalarXmlPropertiesOutputAwsQuerySerializer()]; + serializers = [SimpleScalarXmlPropertiesOutputAwsQuerySerializer()]; String? get stringValue; String? get emptyStringValue; @@ -71,62 +71,32 @@ abstract class SimpleScalarXmlPropertiesOutput double? get doubleValue; @override List get props => [ - stringValue, - emptyStringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + stringValue, + emptyStringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarXmlPropertiesOutput') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'emptyStringValue', - emptyStringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('stringValue', stringValue) + ..add('emptyStringValue', emptyStringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -134,21 +104,18 @@ abstract class SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [ - SimpleScalarXmlPropertiesOutput, - _$SimpleScalarXmlPropertiesOutput, - ]; + SimpleScalarXmlPropertiesOutput, + _$SimpleScalarXmlPropertiesOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -175,55 +142,75 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -240,7 +227,7 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer const _i3.XmlElementName( 'SimpleScalarXmlPropertiesOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleScalarXmlPropertiesOutput( :stringValue, @@ -252,87 +239,101 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer :integerValue, :longValue, :floatValue, - :doubleValue + :doubleValue, ) = object; if (stringValue != null) { result$ ..add(const _i3.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (emptyStringValue != null) { result$ ..add(const _i3.XmlElementName('emptyStringValue')) - ..add(serializers.serialize( - emptyStringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + emptyStringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i3.XmlElementName('trueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i3.XmlElementName('falseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (byteValue != null) { result$ ..add(const _i3.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (shortValue != null) { result$ ..add(const _i3.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (integerValue != null) { result$ ..add(const _i3.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i3.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (floatValue != null) { result$ ..add(const _i3.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add(const _i3.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart index 762fc06d89..da51a25ca9 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/simple_scalar_xml_properties_output.g.dart @@ -29,27 +29,28 @@ class _$SimpleScalarXmlPropertiesOutput @override final double? doubleValue; - factory _$SimpleScalarXmlPropertiesOutput( - [void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates]) => + factory _$SimpleScalarXmlPropertiesOutput([ + void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates, + ]) => (new SimpleScalarXmlPropertiesOutputBuilder()..update(updates))._build(); - _$SimpleScalarXmlPropertiesOutput._( - {this.stringValue, - this.emptyStringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarXmlPropertiesOutput._({ + this.stringValue, + this.emptyStringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarXmlPropertiesOutput rebuild( - void Function(SimpleScalarXmlPropertiesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarXmlPropertiesOutputBuilder toBuilder() => @@ -91,8 +92,10 @@ class _$SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputBuilder implements - Builder { + Builder< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { _$SimpleScalarXmlPropertiesOutput? _$v; String? _stringValue; @@ -173,18 +176,20 @@ class SimpleScalarXmlPropertiesOutputBuilder SimpleScalarXmlPropertiesOutput build() => _build(); _$SimpleScalarXmlPropertiesOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarXmlPropertiesOutput._( - stringValue: stringValue, - emptyStringValue: emptyStringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + stringValue: stringValue, + emptyStringValue: emptyStringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.dart index 257b52252a..6fa64caa98 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.struct_arg; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,34 +31,22 @@ abstract class StructArg const StructArg._(); static const List<_i2.SmithySerializer> serializers = [ - StructArgAwsQuerySerializer() + StructArgAwsQuerySerializer(), ]; String? get stringArg; bool? get otherArg; StructArg? get recursiveArg; @override - List get props => [ - stringArg, - otherArg, - recursiveArg, - ]; + List get props => [stringArg, otherArg, recursiveArg]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructArg') - ..add( - 'stringArg', - stringArg, - ) - ..add( - 'otherArg', - otherArg, - ) - ..add( - 'recursiveArg', - recursiveArg, - ); + final helper = + newBuiltValueToStringHelper('StructArg') + ..add('stringArg', stringArg) + ..add('otherArg', otherArg) + ..add('recursiveArg', recursiveArg); return helper.toString(); } } @@ -68,18 +56,12 @@ class StructArgAwsQuerySerializer const StructArgAwsQuerySerializer() : super('StructArg'); @override - Iterable get types => const [ - StructArg, - _$StructArg, - ]; + Iterable get types => const [StructArg, _$StructArg]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructArg deserialize( @@ -106,20 +88,27 @@ class StructArgAwsQuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -136,32 +125,35 @@ class StructArgAwsQuerySerializer const _i2.XmlElementName( 'StructArgResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructArg(:stringArg, :otherArg, :recursiveArg) = object; if (stringArg != null) { result$ ..add(const _i2.XmlElementName('StringArg')) - ..add(serializers.serialize( - stringArg, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringArg, + specifiedType: const FullType(String), + ), + ); } if (otherArg != null) { result$ ..add(const _i2.XmlElementName('OtherArg')) - ..add(serializers.serialize( - otherArg, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(otherArg, specifiedType: const FullType(bool)), + ); } if (recursiveArg != null) { result$ ..add(const _i2.XmlElementName('RecursiveArg')) - ..add(serializers.serialize( - recursiveArg, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + recursiveArg, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart index 792a8afecd..9482dbfaad 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/struct_arg.g.dart @@ -93,11 +93,13 @@ class StructArgBuilder implements Builder { _$StructArg _build() { _$StructArg _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$StructArg._( - stringArg: stringArg, - otherArg: otherArg, - recursiveArg: _recursiveArg?.build()); + stringArg: stringArg, + otherArg: otherArg, + recursiveArg: _recursiveArg?.build(), + ); } catch (_) { late String _$failedField; try { @@ -105,7 +107,10 @@ class StructArgBuilder implements Builder { _recursiveArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'StructArg', _$failedField, e.toString()); + r'StructArg', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.dart index 474f071c77..bc023adc44 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberAwsQuerySerializer() + StructureListMemberAwsQuerySerializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberAwsQuerySerializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructureListMember deserialize( @@ -99,15 +82,19 @@ class StructureListMemberAwsQuerySerializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -124,24 +111,18 @@ class StructureListMemberAwsQuerySerializer const _i2.XmlElementName( 'StructureListMemberResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructureListMember(:a, :b) = object; if (a != null) { result$ ..add(const _i2.XmlElementName('value')) - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add(const _i2.XmlElementName('other')) - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart index a11ad0db73..400e9753e4 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_blobs_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_blobs_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,11 +28,10 @@ abstract class XmlBlobsOutput factory XmlBlobsOutput.fromResponse( XmlBlobsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlBlobsOutputAwsQuerySerializer() + XmlBlobsOutputAwsQuerySerializer(), ]; _i2.Uint8List? get data; @@ -42,10 +41,7 @@ abstract class XmlBlobsOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlBlobsOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -55,18 +51,12 @@ class XmlBlobsOutputAwsQuerySerializer const XmlBlobsOutputAwsQuerySerializer() : super('XmlBlobsOutput'); @override - Iterable get types => const [ - XmlBlobsOutput, - _$XmlBlobsOutput, - ]; + Iterable get types => const [XmlBlobsOutput, _$XmlBlobsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlBlobsOutput deserialize( @@ -93,10 +83,12 @@ class XmlBlobsOutputAwsQuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } } @@ -113,16 +105,18 @@ class XmlBlobsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlBlobsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlBlobsOutput(:data) = object; if (data != null) { result$ ..add(const _i3.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i2.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i2.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart index 1ceba49d9b..8e2d830b56 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,11 +42,10 @@ abstract class XmlEnumsOutput factory XmlEnumsOutput.fromResponse( XmlEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlEnumsOutputAwsQuerySerializer() + XmlEnumsOutputAwsQuerySerializer(), ]; FooEnum? get fooEnum1; @@ -57,41 +56,24 @@ abstract class XmlEnumsOutput _i2.BuiltMap? get fooEnumMap; @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlEnumsOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlEnumsOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -101,18 +83,12 @@ class XmlEnumsOutputAwsQuerySerializer const XmlEnumsOutputAwsQuerySerializer() : super('XmlEnumsOutput'); @override - Iterable get types => const [ - XmlEnumsOutput, - _$XmlEnumsOutput, - ]; + Iterable get types => const [XmlEnumsOutput, _$XmlEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlEnumsOutput deserialize( @@ -139,56 +115,65 @@ class XmlEnumsOutputAwsQuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.fooEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i2.BuiltSet)); + result.fooEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.fooEnumMap.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } } @@ -205,7 +190,7 @@ class XmlEnumsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlEnumsOutput( :fooEnum1, @@ -213,76 +198,79 @@ class XmlEnumsOutputAwsQuerySerializer :fooEnum3, :fooEnumList, :fooEnumSet, - :fooEnumMap + :fooEnumMap, ) = object; if (fooEnum1 != null) { result$ ..add(const _i3.XmlElementName('fooEnum1')) - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add(const _i3.XmlElementName('fooEnum2')) - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add(const _i3.XmlElementName('fooEnum3')) - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add(const _i3.XmlElementName('fooEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - fooEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + fooEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add(const _i3.XmlElementName('fooEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - fooEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + fooEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add(const _i3.XmlElementName('fooEnumMap')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - fooEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + fooEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart index e46d58ace9..69ec6ae825 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_enums_output.g.dart @@ -23,14 +23,14 @@ class _$XmlEnumsOutput extends XmlEnumsOutput { factory _$XmlEnumsOutput([void Function(XmlEnumsOutputBuilder)? updates]) => (new XmlEnumsOutputBuilder()..update(updates))._build(); - _$XmlEnumsOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + _$XmlEnumsOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override XmlEnumsOutput rebuild(void Function(XmlEnumsOutputBuilder) updates) => @@ -133,14 +133,16 @@ class XmlEnumsOutputBuilder _$XmlEnumsOutput _build() { _$XmlEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlEnumsOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -152,7 +154,10 @@ class XmlEnumsOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlEnumsOutput', _$failedField, e.toString()); + r'XmlEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart index d20970dd8d..9d0f054158 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_int_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,8 +33,9 @@ abstract class XmlIntEnumsOutput ); } - factory XmlIntEnumsOutput.build( - [void Function(XmlIntEnumsOutputBuilder) updates]) = _$XmlIntEnumsOutput; + factory XmlIntEnumsOutput.build([ + void Function(XmlIntEnumsOutputBuilder) updates, + ]) = _$XmlIntEnumsOutput; const XmlIntEnumsOutput._(); @@ -42,11 +43,10 @@ abstract class XmlIntEnumsOutput factory XmlIntEnumsOutput.fromResponse( XmlIntEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlIntEnumsOutputAwsQuerySerializer() + XmlIntEnumsOutputAwsQuerySerializer(), ]; IntegerEnum? get intEnum1; @@ -57,41 +57,24 @@ abstract class XmlIntEnumsOutput _i2.BuiltMap? get intEnumMap; @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlIntEnumsOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlIntEnumsOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -101,18 +84,12 @@ class XmlIntEnumsOutputAwsQuerySerializer const XmlIntEnumsOutputAwsQuerySerializer() : super('XmlIntEnumsOutput'); @override - Iterable get types => const [ - XmlIntEnumsOutput, - _$XmlIntEnumsOutput, - ]; + Iterable get types => const [XmlIntEnumsOutput, _$XmlIntEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlIntEnumsOutput deserialize( @@ -139,56 +116,65 @@ class XmlIntEnumsOutputAwsQuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i2.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i2.BuiltSet)); + result.intEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i2.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.intEnumMap.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); } } @@ -205,7 +191,7 @@ class XmlIntEnumsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlIntEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlIntEnumsOutput( :intEnum1, @@ -213,76 +199,83 @@ class XmlIntEnumsOutputAwsQuerySerializer :intEnum3, :intEnumList, :intEnumSet, - :intEnumMap + :intEnumMap, ) = object; if (intEnum1 != null) { result$ ..add(const _i3.XmlElementName('intEnum1')) - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum1, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum2 != null) { result$ ..add(const _i3.XmlElementName('intEnum2')) - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum2, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum3 != null) { result$ ..add(const _i3.XmlElementName('intEnum3')) - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum3, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('intEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (intEnumSet != null) { result$ ..add(const _i3.XmlElementName('intEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - intEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + intEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (intEnumMap != null) { result$ ..add(const _i3.XmlElementName('intEnumMap')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - intEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + intEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart index 1afa0504c6..d19b6d6a44 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_int_enums_output.g.dart @@ -20,18 +20,18 @@ class _$XmlIntEnumsOutput extends XmlIntEnumsOutput { @override final _i2.BuiltMap? intEnumMap; - factory _$XmlIntEnumsOutput( - [void Function(XmlIntEnumsOutputBuilder)? updates]) => - (new XmlIntEnumsOutputBuilder()..update(updates))._build(); - - _$XmlIntEnumsOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$XmlIntEnumsOutput([ + void Function(XmlIntEnumsOutputBuilder)? updates, + ]) => (new XmlIntEnumsOutputBuilder()..update(updates))._build(); + + _$XmlIntEnumsOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override XmlIntEnumsOutput rebuild(void Function(XmlIntEnumsOutputBuilder) updates) => @@ -134,14 +134,16 @@ class XmlIntEnumsOutputBuilder _$XmlIntEnumsOutput _build() { _$XmlIntEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlIntEnumsOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -153,7 +155,10 @@ class XmlIntEnumsOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlIntEnumsOutput', _$failedField, e.toString()); + r'XmlIntEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart index 0b7a739248..ea35f989e0 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_lists_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,21 +42,24 @@ abstract class XmlListsOutput timestampList == null ? null : _i2.BuiltList(timestampList), enumList: enumList == null ? null : _i2.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i2.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), renamedListMembers: renamedListMembers == null ? null : _i2.BuiltList(renamedListMembers), flattenedList: flattenedList == null ? null : _i2.BuiltList(flattenedList), flattenedList2: flattenedList2 == null ? null : _i2.BuiltList(flattenedList2), - flattenedListWithMemberNamespace: flattenedListWithMemberNamespace == null - ? null - : _i2.BuiltList(flattenedListWithMemberNamespace), - flattenedListWithNamespace: flattenedListWithNamespace == null - ? null - : _i2.BuiltList(flattenedListWithNamespace), + flattenedListWithMemberNamespace: + flattenedListWithMemberNamespace == null + ? null + : _i2.BuiltList(flattenedListWithMemberNamespace), + flattenedListWithNamespace: + flattenedListWithNamespace == null + ? null + : _i2.BuiltList(flattenedListWithNamespace), structureList: structureList == null ? null : _i2.BuiltList(structureList), ); @@ -71,11 +74,10 @@ abstract class XmlListsOutput factory XmlListsOutput.fromResponse( XmlListsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlListsOutputAwsQuerySerializer() + XmlListsOutputAwsQuerySerializer(), ]; _i2.BuiltList? get stringList; @@ -96,81 +98,43 @@ abstract class XmlListsOutput _i2.BuiltList? get structureList; @override List get props => [ - stringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - renamedListMembers, - flattenedList, - flattenedList2, - flattenedListWithMemberNamespace, - flattenedListWithNamespace, - structureList, - ]; + stringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + renamedListMembers, + flattenedList, + flattenedList2, + flattenedListWithMemberNamespace, + flattenedListWithNamespace, + structureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlListsOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'renamedListMembers', - renamedListMembers, - ) - ..add( - 'flattenedList', - flattenedList, - ) - ..add( - 'flattenedList2', - flattenedList2, - ) - ..add( - 'flattenedListWithMemberNamespace', - flattenedListWithMemberNamespace, - ) - ..add( - 'flattenedListWithNamespace', - flattenedListWithNamespace, - ) - ..add( - 'structureList', - structureList, - ); + final helper = + newBuiltValueToStringHelper('XmlListsOutput') + ..add('stringList', stringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('renamedListMembers', renamedListMembers) + ..add('flattenedList', flattenedList) + ..add('flattenedList2', flattenedList2) + ..add( + 'flattenedListWithMemberNamespace', + flattenedListWithMemberNamespace, + ) + ..add('flattenedListWithNamespace', flattenedListWithNamespace) + ..add('structureList', structureList); return helper.toString(); } } @@ -180,18 +144,12 @@ class XmlListsOutputAwsQuerySerializer const XmlListsOutputAwsQuerySerializer() : super('XmlListsOutput'); @override - Iterable get types => const [ - XmlListsOutput, - _$XmlListsOutput, - ]; + Iterable get types => const [XmlListsOutput, _$XmlListsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlListsOutput deserialize( @@ -218,142 +176,167 @@ class XmlListsOutputAwsQuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.stringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'stringSet': - result.stringSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], - ), - ) as _i2.BuiltSet)); + result.stringSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(String), + ]), + ) + as _i2.BuiltSet), + ); case 'integerList': - result.integerList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.integerList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'booleanList': - result.booleanList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], - ), - ) as _i2.BuiltList)); + result.booleanList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(bool), + ]), + ) + as _i2.BuiltList), + ); case 'timestampList': - result.timestampList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ), - ) as _i2.BuiltList)); + result.timestampList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i2.BuiltList), + ); case 'enumList': - result.enumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.enumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i2.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i2.BuiltList<_i2.BuiltList>)); + as _i2.BuiltList<_i2.BuiltList>), + ); case 'renamed': - result.renamedListMembers.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.renamedListMembers.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'flattenedList': - result.flattenedList.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'customName': - result.flattenedList2.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList2.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithMemberNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'myStructureList': - result.structureList.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i2.BuiltList)); + result.structureList.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i2.BuiltList), + ); } } @@ -370,7 +353,7 @@ class XmlListsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlListsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlListsOutput( :stringList, @@ -386,207 +369,194 @@ class XmlListsOutputAwsQuerySerializer :flattenedList2, :flattenedListWithMemberNamespace, :flattenedListWithNamespace, - :structureList + :structureList, ) = object; if (stringList != null) { result$ ..add(const _i3.XmlElementName('stringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - stringList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + stringList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add(const _i3.XmlElementName('stringSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - stringSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + stringSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(String)]), ), - )); + ); } if (integerList != null) { result$ ..add(const _i3.XmlElementName('integerList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - integerList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + integerList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (booleanList != null) { result$ ..add(const _i3.XmlElementName('booleanList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - booleanList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + booleanList, + specifiedType: const FullType(_i2.BuiltList, [FullType(bool)]), ), - )); + ); } if (timestampList != null) { result$ ..add(const _i3.XmlElementName('timestampList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - timestampList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + timestampList, + specifiedType: const FullType(_i2.BuiltList, [FullType(DateTime)]), ), - )); + ); } if (enumList != null) { result$ ..add(const _i3.XmlElementName('enumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - enumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + enumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('intEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (nestedStringList != null) { result$ ..add(const _i3.XmlElementName('nestedStringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.awsQueryList) - .serialize( - serializers, - nestedStringList, - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + nestedStringList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (renamedListMembers != null) { result$ ..add(const _i3.XmlElementName('renamed')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - renamedListMembers, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + renamedListMembers, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'flattenedList', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'flattenedList', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList2 != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'customName', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedList2, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'customName', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedList2, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithMemberNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'flattenedListWithMemberNamespace', - memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListWithMemberNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'flattenedListWithMemberNamespace', + memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListWithMemberNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'flattenedListWithNamespace', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - flattenedListWithNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'flattenedListWithNamespace', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + flattenedListWithNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add(const _i3.XmlElementName('myStructureList')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - structureList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + structureList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart index d80f21d508..3ee77d2a51 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_lists_output.g.dart @@ -39,22 +39,22 @@ class _$XmlListsOutput extends XmlListsOutput { factory _$XmlListsOutput([void Function(XmlListsOutputBuilder)? updates]) => (new XmlListsOutputBuilder()..update(updates))._build(); - _$XmlListsOutput._( - {this.stringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.renamedListMembers, - this.flattenedList, - this.flattenedList2, - this.flattenedListWithMemberNamespace, - this.flattenedListWithNamespace, - this.structureList}) - : super._(); + _$XmlListsOutput._({ + this.stringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.renamedListMembers, + this.flattenedList, + this.flattenedList2, + this.flattenedListWithMemberNamespace, + this.flattenedListWithNamespace, + this.structureList, + }) : super._(); @override XmlListsOutput rebuild(void Function(XmlListsOutputBuilder) updates) => @@ -157,8 +157,8 @@ class XmlListsOutputBuilder _i2.ListBuilder<_i2.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i2.ListBuilder<_i2.BuiltList>(); set nestedStringList( - _i2.ListBuilder<_i2.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i2.ListBuilder<_i2.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i2.ListBuilder? _renamedListMembers; _i2.ListBuilder get renamedListMembers => @@ -183,7 +183,8 @@ class XmlListsOutputBuilder _$this._flattenedListWithMemberNamespace ??= new _i2.ListBuilder(); set flattenedListWithMemberNamespace( - _i2.ListBuilder? flattenedListWithMemberNamespace) => + _i2.ListBuilder? flattenedListWithMemberNamespace, + ) => _$this._flattenedListWithMemberNamespace = flattenedListWithMemberNamespace; @@ -191,8 +192,8 @@ class XmlListsOutputBuilder _i2.ListBuilder get flattenedListWithNamespace => _$this._flattenedListWithNamespace ??= new _i2.ListBuilder(); set flattenedListWithNamespace( - _i2.ListBuilder? flattenedListWithNamespace) => - _$this._flattenedListWithNamespace = flattenedListWithNamespace; + _i2.ListBuilder? flattenedListWithNamespace, + ) => _$this._flattenedListWithNamespace = flattenedListWithNamespace; _i2.ListBuilder? _structureList; _i2.ListBuilder get structureList => @@ -242,23 +243,25 @@ class XmlListsOutputBuilder _$XmlListsOutput _build() { _$XmlListsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlListsOutput._( - stringList: _stringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - renamedListMembers: _renamedListMembers?.build(), - flattenedList: _flattenedList?.build(), - flattenedList2: _flattenedList2?.build(), - flattenedListWithMemberNamespace: - _flattenedListWithMemberNamespace?.build(), - flattenedListWithNamespace: _flattenedListWithNamespace?.build(), - structureList: _structureList?.build()); + stringList: _stringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + renamedListMembers: _renamedListMembers?.build(), + flattenedList: _flattenedList?.build(), + flattenedList2: _flattenedList2?.build(), + flattenedListWithMemberNamespace: + _flattenedListWithMemberNamespace?.build(), + flattenedListWithNamespace: _flattenedListWithNamespace?.build(), + structureList: _structureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -292,7 +295,10 @@ class XmlListsOutputBuilder _structureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlListsOutput', _$failedField, e.toString()); + r'XmlListsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart index d450134f32..892ff64df2 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_maps_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,11 +28,10 @@ abstract class XmlMapsOutput factory XmlMapsOutput.fromResponse( XmlMapsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlMapsOutputAwsQuerySerializer() + XmlMapsOutputAwsQuerySerializer(), ]; _i2.BuiltMap? get myMap; @@ -42,10 +41,7 @@ abstract class XmlMapsOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -55,18 +51,12 @@ class XmlMapsOutputAwsQuerySerializer const XmlMapsOutputAwsQuerySerializer() : super('XmlMapsOutput'); @override - Iterable get types => const [ - XmlMapsOutput, - _$XmlMapsOutput, - ]; + Iterable get types => const [XmlMapsOutput, _$XmlMapsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsOutput deserialize( @@ -93,19 +83,18 @@ class XmlMapsOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i3.XmlBuiltMapSerializer( - indexer: _i3.XmlIndexer.awsQueryMap) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.replace( + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -122,25 +111,24 @@ class XmlMapsOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlMapsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlMapsOutput(:myMap) = object; if (myMap != null) { result$ ..add(const _i3.XmlElementName('myMap')) ..add( - const _i3.XmlBuiltMapSerializer(indexer: _i3.XmlIndexer.awsQueryMap) - .serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + const _i3.XmlBuiltMapSerializer( + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart index 97dbd0accb..e290cb453f 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_output.g.dart @@ -83,7 +83,10 @@ class XmlMapsOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsOutput', _$failedField, e.toString()); + r'XmlMapsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart index 701c5b29db..72d56ac9c0 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_maps_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,12 +17,13 @@ abstract class XmlMapsXmlNameOutput implements Built { factory XmlMapsXmlNameOutput({Map? myMap}) { return _$XmlMapsXmlNameOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory XmlMapsXmlNameOutput.build( - [void Function(XmlMapsXmlNameOutputBuilder) updates]) = - _$XmlMapsXmlNameOutput; + factory XmlMapsXmlNameOutput.build([ + void Function(XmlMapsXmlNameOutputBuilder) updates, + ]) = _$XmlMapsXmlNameOutput; const XmlMapsXmlNameOutput._(); @@ -30,11 +31,10 @@ abstract class XmlMapsXmlNameOutput factory XmlMapsXmlNameOutput.fromResponse( XmlMapsXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlMapsXmlNameOutputAwsQuerySerializer() + XmlMapsXmlNameOutputAwsQuerySerializer(), ]; _i2.BuiltMap? get myMap; @@ -44,10 +44,7 @@ abstract class XmlMapsXmlNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsXmlNameOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class XmlMapsXmlNameOutput class XmlMapsXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const XmlMapsXmlNameOutputAwsQuerySerializer() - : super('XmlMapsXmlNameOutput'); + : super('XmlMapsXmlNameOutput'); @override Iterable get types => const [ - XmlMapsXmlNameOutput, - _$XmlMapsXmlNameOutput, - ]; + XmlMapsXmlNameOutput, + _$XmlMapsXmlNameOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsXmlNameOutput deserialize( @@ -96,21 +90,20 @@ class XmlMapsXmlNameOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i3.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - indexer: _i3.XmlIndexer.awsQueryMap, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.replace( + const _i3.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + indexer: _i3.XmlIndexer.awsQueryMap, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -127,27 +120,26 @@ class XmlMapsXmlNameOutputAwsQuerySerializer const _i3.XmlElementName( 'XmlMapsXmlNameOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlMapsXmlNameOutput(:myMap) = object; if (myMap != null) { result$ ..add(const _i3.XmlElementName('myMap')) - ..add(const _i3.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - indexer: _i3.XmlIndexer.awsQueryMap, - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + indexer: _i3.XmlIndexer.awsQueryMap, + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart index 5fd3a40246..576056c40d 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_maps_xml_name_output.g.dart @@ -10,16 +10,16 @@ class _$XmlMapsXmlNameOutput extends XmlMapsXmlNameOutput { @override final _i2.BuiltMap? myMap; - factory _$XmlMapsXmlNameOutput( - [void Function(XmlMapsXmlNameOutputBuilder)? updates]) => - (new XmlMapsXmlNameOutputBuilder()..update(updates))._build(); + factory _$XmlMapsXmlNameOutput([ + void Function(XmlMapsXmlNameOutputBuilder)? updates, + ]) => (new XmlMapsXmlNameOutputBuilder()..update(updates))._build(); _$XmlMapsXmlNameOutput._({this.myMap}) : super._(); @override XmlMapsXmlNameOutput rebuild( - void Function(XmlMapsXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlMapsXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlMapsXmlNameOutputBuilder toBuilder() => @@ -86,7 +86,10 @@ class XmlMapsXmlNameOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsXmlNameOutput', _$failedField, e.toString()); + r'XmlMapsXmlNameOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart index 46ee81ec68..7303fdda6b 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_namespace_nested; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,45 +14,34 @@ part 'xml_namespace_nested.g.dart'; abstract class XmlNamespaceNested with _i1.AWSEquatable implements Built { - factory XmlNamespaceNested({ - String? foo, - List? values, - }) { + factory XmlNamespaceNested({String? foo, List? values}) { return _$XmlNamespaceNested._( foo: foo, values: values == null ? null : _i2.BuiltList(values), ); } - factory XmlNamespaceNested.build( - [void Function(XmlNamespaceNestedBuilder) updates]) = - _$XmlNamespaceNested; + factory XmlNamespaceNested.build([ + void Function(XmlNamespaceNestedBuilder) updates, + ]) = _$XmlNamespaceNested; const XmlNamespaceNested._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNamespaceNestedAwsQuerySerializer() + XmlNamespaceNestedAwsQuerySerializer(), ]; String? get foo; _i2.BuiltList? get values; @override - List get props => [ - foo, - values, - ]; + List get props => [foo, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNamespaceNested') - ..add( - 'foo', - foo, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('XmlNamespaceNested') + ..add('foo', foo) + ..add('values', values); return helper.toString(); } } @@ -62,18 +51,12 @@ class XmlNamespaceNestedAwsQuerySerializer const XmlNamespaceNestedAwsQuerySerializer() : super('XmlNamespaceNested'); @override - Iterable get types => const [ - XmlNamespaceNested, - _$XmlNamespaceNested, - ]; + Iterable get types => const [XmlNamespaceNested, _$XmlNamespaceNested]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespaceNested deserialize( @@ -100,22 +83,26 @@ class XmlNamespaceNestedAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.awsQueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.awsQueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -132,40 +119,39 @@ class XmlNamespaceNestedAwsQuerySerializer const _i3.XmlElementName( 'XmlNamespaceNestedResponse', _i3.XmlNamespace('http://boo.com'), - ) + ), ]; final XmlNamespaceNested(:foo, :values) = object; if (foo != null) { result$ - ..add(const _i3.XmlElementName( - 'foo', - _i3.XmlNamespace( - 'http://baz.com', - 'baz', + ..add( + const _i3.XmlElementName( + 'foo', + _i3.XmlNamespace('http://baz.com', 'baz'), ), - )) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ) + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (values != null) { result$ - ..add(const _i3.XmlElementName( - 'values', - _i3.XmlNamespace('http://qux.com'), - )) - ..add(const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.awsQueryList, - ).serialize( - serializers, - values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlElementName( + 'values', + _i3.XmlNamespace('http://qux.com'), + ), + ) + ..add( + const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.awsQueryList, + ).serialize( + serializers, + values, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart index 80b634991e..300ea21e0e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespace_nested.g.dart @@ -12,16 +12,16 @@ class _$XmlNamespaceNested extends XmlNamespaceNested { @override final _i2.BuiltList? values; - factory _$XmlNamespaceNested( - [void Function(XmlNamespaceNestedBuilder)? updates]) => - (new XmlNamespaceNestedBuilder()..update(updates))._build(); + factory _$XmlNamespaceNested([ + void Function(XmlNamespaceNestedBuilder)? updates, + ]) => (new XmlNamespaceNestedBuilder()..update(updates))._build(); _$XmlNamespaceNested._({this.foo, this.values}) : super._(); @override XmlNamespaceNested rebuild( - void Function(XmlNamespaceNestedBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespaceNestedBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespaceNestedBuilder toBuilder() => @@ -96,7 +96,10 @@ class XmlNamespaceNestedBuilder _values?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespaceNested', _$failedField, e.toString()); + r'XmlNamespaceNested', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart index bac64d4a97..a9f914e141 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_namespaces_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class XmlNamespacesOutput return _$XmlNamespacesOutput._(nested: nested); } - factory XmlNamespacesOutput.build( - [void Function(XmlNamespacesOutputBuilder) updates]) = - _$XmlNamespacesOutput; + factory XmlNamespacesOutput.build([ + void Function(XmlNamespacesOutputBuilder) updates, + ]) = _$XmlNamespacesOutput; const XmlNamespacesOutput._(); @@ -28,11 +28,10 @@ abstract class XmlNamespacesOutput factory XmlNamespacesOutput.fromResponse( XmlNamespacesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlNamespacesOutputAwsQuerySerializer() + XmlNamespacesOutputAwsQuerySerializer(), ]; XmlNamespaceNested? get nested; @@ -42,10 +41,7 @@ abstract class XmlNamespacesOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlNamespacesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -56,17 +52,14 @@ class XmlNamespacesOutputAwsQuerySerializer @override Iterable get types => const [ - XmlNamespacesOutput, - _$XmlNamespacesOutput, - ]; + XmlNamespacesOutput, + _$XmlNamespacesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespacesOutput deserialize( @@ -93,10 +86,13 @@ class XmlNamespacesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -113,16 +109,18 @@ class XmlNamespacesOutputAwsQuerySerializer const _i2.XmlElementName( 'XmlNamespacesOutputResponse', _i2.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespacesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(XmlNamespaceNested), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(XmlNamespaceNested), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart index 903b439f9c..01cfed012f 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_namespaces_output.g.dart @@ -10,16 +10,16 @@ class _$XmlNamespacesOutput extends XmlNamespacesOutput { @override final XmlNamespaceNested? nested; - factory _$XmlNamespacesOutput( - [void Function(XmlNamespacesOutputBuilder)? updates]) => - (new XmlNamespacesOutputBuilder()..update(updates))._build(); + factory _$XmlNamespacesOutput([ + void Function(XmlNamespacesOutputBuilder)? updates, + ]) => (new XmlNamespacesOutputBuilder()..update(updates))._build(); _$XmlNamespacesOutput._({this.nested}) : super._(); @override XmlNamespacesOutput rebuild( - void Function(XmlNamespacesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespacesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespacesOutputBuilder toBuilder() => @@ -85,7 +85,10 @@ class XmlNamespacesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespacesOutput', _$failedField, e.toString()); + r'XmlNamespacesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart index ed45ee17f7..a1611c7420 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.model.xml_timestamps_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class XmlTimestampsOutput ); } - factory XmlTimestampsOutput.build( - [void Function(XmlTimestampsOutputBuilder) updates]) = - _$XmlTimestampsOutput; + factory XmlTimestampsOutput.build([ + void Function(XmlTimestampsOutputBuilder) updates, + ]) = _$XmlTimestampsOutput; const XmlTimestampsOutput._(); @@ -43,11 +43,10 @@ abstract class XmlTimestampsOutput factory XmlTimestampsOutput.fromResponse( XmlTimestampsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlTimestampsOutputAwsQuerySerializer() + XmlTimestampsOutputAwsQuerySerializer(), ]; DateTime? get normal; @@ -59,46 +58,26 @@ abstract class XmlTimestampsOutput DateTime? get httpDateOnTarget; @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlTimestampsOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('XmlTimestampsOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -109,17 +88,14 @@ class XmlTimestampsOutputAwsQuerySerializer @override Iterable get types => const [ - XmlTimestampsOutput, - _$XmlTimestampsOutput, - ]; + XmlTimestampsOutput, + _$XmlTimestampsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlTimestampsOutput deserialize( @@ -146,44 +122,34 @@ class XmlTimestampsOutputAwsQuerySerializer } switch (key) { case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'dateTime': result.dateTime = _i2.TimestampSerializer.dateTime.deserialize( serializers, value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i2.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i2.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i2.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i2.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i2.TimestampSerializer.httpDate + .deserialize(serializers, value); } } @@ -200,7 +166,7 @@ class XmlTimestampsOutputAwsQuerySerializer const _i2.XmlElementName( 'XmlTimestampsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlTimestampsOutput( :normal, @@ -209,63 +175,71 @@ class XmlTimestampsOutputAwsQuerySerializer :epochSeconds, :epochSecondsOnTarget, :httpDate, - :httpDateOnTarget + :httpDateOnTarget, ) = object; if (normal != null) { result$ ..add(const _i2.XmlElementName('normal')) - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } if (dateTime != null) { result$ ..add(const _i2.XmlElementName('dateTime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add(const _i2.XmlElementName('dateTimeOnTarget')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add(const _i2.XmlElementName('epochSeconds')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add(const _i2.XmlElementName('epochSecondsOnTarget')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add(const _i2.XmlElementName('httpDate')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add(const _i2.XmlElementName('httpDateOnTarget')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart index 87f8eb4a56..00966c20c3 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/model/xml_timestamps_output.g.dart @@ -22,24 +22,24 @@ class _$XmlTimestampsOutput extends XmlTimestampsOutput { @override final DateTime? httpDateOnTarget; - factory _$XmlTimestampsOutput( - [void Function(XmlTimestampsOutputBuilder)? updates]) => - (new XmlTimestampsOutputBuilder()..update(updates))._build(); - - _$XmlTimestampsOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$XmlTimestampsOutput([ + void Function(XmlTimestampsOutputBuilder)? updates, + ]) => (new XmlTimestampsOutputBuilder()..update(updates))._build(); + + _$XmlTimestampsOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override XmlTimestampsOutput rebuild( - void Function(XmlTimestampsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlTimestampsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlTimestampsOutputBuilder toBuilder() => @@ -141,15 +141,17 @@ class XmlTimestampsOutputBuilder XmlTimestampsOutput build() => _build(); _$XmlTimestampsOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlTimestampsOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart index 259edba9a3..dd8cd93b0a 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v2/src/query_protocol/model/datetime_offsets_output.da import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'DatetimeOffsets', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -71,11 +84,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart index 43f3eb5482..325a882df6 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EmptyInputAndEmptyOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart index 749a864fca..ef9bd0a35b 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class EndpointOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,19 +59,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart index 6ebe9a9d22..33c8fa6e5b 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,32 @@ import 'package:aws_query_v2/src/query_protocol/model/host_label_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -43,7 +46,7 @@ class EndpointWithHostLabelOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointWithHostLabelOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,19 +64,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +98,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart index 54f13349b5..a133f7a89e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.flattened_xml_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps -class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FlattenedXmlMapOutput, FlattenedXmlMapOutput> { +class FlattenedXmlMapOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapOutput, + FlattenedXmlMapOutput + > { /// Flattened maps FlattenedXmlMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FlattenedXmlMapOutput, - FlattenedXmlMapOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapOutput, + FlattenedXmlMapOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FlattenedXmlMap', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FlattenedXmlMapOutput? output]) => 200; @@ -73,11 +86,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FlattenedXmlMapOutput buildOutput( FlattenedXmlMapOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart index e02b587b20..c511286141 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.flattened_xml_map_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlName -class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNameOutput, - FlattenedXmlMapWithXmlNameOutput> { +class FlattenedXmlMapWithXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutput + > { /// Flattened maps with @xmlName FlattenedXmlMapWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FlattenedXmlMapWithXmlNameOutput, - FlattenedXmlMapWithXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNameOutput, + FlattenedXmlMapWithXmlNameOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FlattenedXmlMapWithXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,9 +75,9 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FlattenedXmlMapWithXmlNameOutput? output]) => 200; @@ -76,11 +86,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNameOutput buildOutput( FlattenedXmlMapWithXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNameOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart index 3142a779fd..b0a7af26bd 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.flattened_xml_map_with_xml_namespace_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlNamespace and @xmlName -class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput> { +class FlattenedXmlMapWithXmlNamespaceOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > { /// Flattened maps with @xmlNamespace and @xmlName FlattenedXmlMapWithXmlNamespaceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +57,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FlattenedXmlMapWithXmlNamespace', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,9 +75,9 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FlattenedXmlMapWithXmlNamespaceOutput? output]) => 200; @@ -79,11 +86,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNamespaceOutput buildOutput( FlattenedXmlMapWithXmlNamespaceOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNamespaceOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -107,11 +110,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart index bc2afa7400..70f34d17d0 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v2/src/query_protocol/model/fractional_seconds_output. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FractionalSeconds', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -71,11 +84,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart index 7773942f2d..b26b2cc547 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,29 +16,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -52,9 +65,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, shape: 'CustomCodeError', code: 'Customized', httpResponseCode: 402, - ) + ), ], - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,9 +85,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -83,42 +96,35 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'CustomCodeError', - ), - _i1.ErrorKind.client, - CustomCodeError, - builder: CustomCodeError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.query', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.query', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.query', + shape: 'CustomCodeError', + ), + _i1.ErrorKind.client, + CustomCodeError, + builder: CustomCodeError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.query', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -139,11 +145,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart index dc0310a234..bf84c3d73b 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class HostWithPathOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'HostWithPathOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart index 671de15a8f..8caaebb123 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/ignores_wrapping_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.ignores_wrapping_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response", and inside of that wrapper is another wrapper named operation name + "Result". -class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, IgnoresWrappingXmlNameOutput, IgnoresWrappingXmlNameOutput> { +class IgnoresWrappingXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > { /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response", and inside of that wrapper is another wrapper named operation name + "Result". IgnoresWrappingXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoresWrappingXmlNameOutput, - IgnoresWrappingXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'IgnoresWrappingXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([IgnoresWrappingXmlNameOutput? output]) => 200; @@ -73,11 +86,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, IgnoresWrappingXmlNameOutput buildOutput( IgnoresWrappingXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoresWrappingXmlNameOutput.fromResponse( - payload, - response, - ); + ) => IgnoresWrappingXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart index 9c4d85173f..5adb3e8144 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/nested_structures_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.nested_structures_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes nested and recursive structure members. -class NestedStructuresOperation extends _i1.HttpOperation { +class NestedStructuresOperation + extends + _i1.HttpOperation< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes nested and recursive structure members. NestedStructuresOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class NestedStructuresOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'NestedStructures', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class NestedStructuresOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class NestedStructuresOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart index ef9801bb78..e3eaf60f12 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,20 +20,21 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +43,7 @@ class NoInputAndNoOutputOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'NoInputAndNoOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart index c502a3c6e0..01b053fc05 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,29 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + NoInputAndOutputInput, + NoInputAndOutputInput, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NoInputAndOutputInput, + NoInputAndOutputInput, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'NoInputAndOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +88,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +112,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart index 804fe6443f..39d660f8dd 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:aws_query_v2/src/query_protocol/model/put_with_content_encoding_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInput, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInput, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'PutWithContentEncoding', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,10 +88,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +113,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart index 9b1c8206d6..e5e8b36b1a 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryIdempotencyTokenAutoFill', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +85,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +110,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart index c8dbebb169..aba1cf34e9 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.query_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,31 +13,38 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes simple and complex lists. -class QueryListsOperation extends _i1 - .HttpOperation { +class QueryListsOperation + extends + _i1.HttpOperation< + QueryListsInput, + QueryListsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes simple and complex lists. QueryListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1 - .HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +53,7 @@ class QueryListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,18 +71,15 @@ class QueryListsOperation extends _i1 @override _i1.HttpRequest buildRequest(QueryListsInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +104,7 @@ class QueryListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart index c295783af9..acbdfd5eed 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.query_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,33 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes simple and complex maps. -class QueryMapsOperation extends _i1 - .HttpOperation { +class QueryMapsOperation + extends + _i1.HttpOperation { /// This test serializes simple and complex maps. QueryMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +48,7 @@ class QueryMapsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryMaps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,18 +66,15 @@ class QueryMapsOperation extends _i1 @override _i1.HttpRequest buildRequest(QueryMapsInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -99,11 +99,7 @@ class QueryMapsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart index cacbd534d8..4b2280451f 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/query_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.query_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. -class QueryTimestampsOperation extends _i1.HttpOperation { +class QueryTimestampsOperation + extends + _i1.HttpOperation< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. QueryTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'QueryTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart index 34514e3921..a19dc4ff99 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/recursive_xml_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.recursive_xml_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - RecursiveXmlShapesOutput, RecursiveXmlShapesOutput> { +class RecursiveXmlShapesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > { /// Recursive shapes RecursiveXmlShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput, - RecursiveXmlShapesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'RecursiveXmlShapes', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([RecursiveXmlShapesOutput? output]) => 200; @@ -73,11 +86,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput buildOutput( RecursiveXmlShapesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveXmlShapesOutput.fromResponse( - payload, - response, - ); + ) => RecursiveXmlShapesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart index 5f66cf4ac8..a1dabee370 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_input_params_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.simple_input_params_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes strings, numbers, and boolean values. -class SimpleInputParamsOperation extends _i1.HttpOperation< - SimpleInputParamsInput, SimpleInputParamsInput, _i1.Unit, _i1.Unit> { +class SimpleInputParamsOperation + extends + _i1.HttpOperation< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes strings, numbers, and boolean values. SimpleInputParamsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleInputParams', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart index dc121a9e85..98ddd6f708 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/simple_scalar_xml_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.simple_scalar_xml_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:aws_query_v2/src/query_protocol/model/simple_scalar_xml_properti import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput> { +class SimpleScalarXmlPropertiesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > { SimpleScalarXmlPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleScalarXmlProperties', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,9 +73,9 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([SimpleScalarXmlPropertiesOutput? output]) => 200; @@ -74,11 +84,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< SimpleScalarXmlPropertiesOutput buildOutput( SimpleScalarXmlPropertiesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarXmlPropertiesOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarXmlPropertiesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +108,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart index 031e3779f8..b78c9d3ed1 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { /// Blobs are base64 encoded XmlBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart index 94b0159ec0..465ee1a6f8 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_empty_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:aws_query_v2/src/query_protocol/model/xml_blobs_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlEmptyBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { XmlEmptyBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart index 250cae2b31..618833ad51 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:aws_query_v2/src/query_protocol/model/xml_lists_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlEmptyListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { XmlEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart index 3d499f2702..e02141d793 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_empty_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_empty_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:aws_query_v2/src/query_protocol/model/xml_maps_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyMapsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { +class XmlEmptyMapsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { XmlEmptyMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyMapsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyMaps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyMapsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlMapsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyMapsOperation extends _i1 XmlMapsOutput buildOutput( XmlMapsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyMapsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart index 28dc2df7a6..470c2f8c98 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { +class XmlEnumsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlEnumsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlEnumsOperation extends _i1 XmlEnumsOutput buildOutput( XmlEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart index f247dc52d1..c5d3366d47 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,37 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlIntEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> { +class XmlIntEnumsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlIntEnumsOutput, + XmlIntEnumsOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, - XmlIntEnumsOutput>> protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +52,7 @@ class XmlIntEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlIntEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +70,9 @@ class XmlIntEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlIntEnumsOutput? output]) => 200; @@ -73,11 +81,7 @@ class XmlIntEnumsOperation extends _i1 XmlIntEnumsOutput buildOutput( XmlIntEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlIntEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlIntEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +105,7 @@ class XmlIntEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart index 89259487f4..94ea4467ec 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Lists of structures. -class XmlListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Lists of structures. XmlListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart index f9771ff87c..a2060db814 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests basic map serialization. -class XmlMapsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { +class XmlMapsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> { /// The example tests basic map serialization. XmlMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsOutput, XmlMapsOutput> + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlMapsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlMaps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlMapsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlMapsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlMapsOperation extends _i1 XmlMapsOutput buildOutput( XmlMapsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlMapsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart index 95b67ca2cf..5461a400e6 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_maps_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_maps_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v2/src/query_protocol/model/xml_maps_xml_name_output.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlMapsXmlNameOutput, XmlMapsXmlNameOutput> { +class XmlMapsXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlMapsXmlNameOutput, + XmlMapsXmlNameOutput + > { XmlMapsXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlMapsXmlNameOutput, - XmlMapsXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlMapsXmlNameOutput, + XmlMapsXmlNameOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlMapsXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlMapsXmlNameOutput? output]) => 200; @@ -71,11 +84,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlMapsXmlNameOutput buildOutput( XmlMapsXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsXmlNameOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart index d7aa1a746c..8f5e716fbc 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_namespaces_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_namespaces_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:aws_query_v2/src/query_protocol/model/xml_namespaces_output.dart import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlNamespacesOutput, XmlNamespacesOutput> { +class XmlNamespacesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > { XmlNamespacesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlNamespacesOutput, - XmlNamespacesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlNamespaces', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlNamespacesOutput? output]) => 200; @@ -71,11 +84,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlNamespacesOutput buildOutput( XmlNamespacesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlNamespacesOutput.fromResponse( - payload, - response, - ); + ) => XmlNamespacesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart index bd42481790..fe9e2ff978 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/operation/xml_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.operation.xml_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlTimestampsOutput, XmlTimestampsOutput> { +class XmlTimestampsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. XmlTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlTimestampsOutput, - XmlTimestampsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > + > + protocols = [ _i2.AwsQueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlTimestampsOutput? output]) => 200; @@ -73,11 +86,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlTimestampsOutput buildOutput( XmlTimestampsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlTimestampsOutput.fromResponse( - payload, - response, - ); + ) => XmlTimestampsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_client.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_client.dart index 987b5fba79..577cbcb931 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_client.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.query_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -77,11 +77,11 @@ class QueryProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -93,17 +93,15 @@ class QueryProtocolClient { final List<_i2.HttpResponseInterceptor> _responseInterceptors; - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. @@ -116,10 +114,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -128,10 +123,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -143,79 +135,64 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps - _i2.SmithyOperation flattenedXmlMap( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation flattenedXmlMap({ + _i1.AWSHttpClient? client, + }) { return FlattenedXmlMapOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Flattened maps with @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlName({_i1.AWSHttpClient? client}) { + flattenedXmlMapWithXmlName({_i1.AWSHttpClient? client}) { return FlattenedXmlMapWithXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Flattened maps with @xmlNamespace and @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { + flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { return FlattenedXmlMapWithXmlNamespaceOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -224,24 +201,19 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response", and inside of that wrapper is another wrapper named operation name + "Result". - _i2.SmithyOperation ignoresWrappingXmlName( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation ignoresWrappingXmlName({ + _i1.AWSHttpClient? client, + }) { return IgnoresWrappingXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes nested and recursive structure members. @@ -254,10 +226,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -267,10 +236,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. @@ -283,10 +249,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -298,10 +261,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -314,10 +274,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes simple and complex lists. @@ -330,10 +287,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes simple and complex maps. @@ -346,10 +300,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. @@ -362,24 +313,19 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes - _i2.SmithyOperation recursiveXmlShapes( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation recursiveXmlShapes({ + _i1.AWSHttpClient? client, + }) { return RecursiveXmlShapesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes strings, numbers, and boolean values. @@ -392,23 +338,17 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation - simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { + simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { return SimpleScalarXmlPropertiesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Blobs are base64 encoded @@ -418,36 +358,29 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyBlobs( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyBlobs({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyBlobsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyLists( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyLists({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyListsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation xmlEmptyMaps({_i1.AWSHttpClient? client}) { @@ -456,10 +389,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -469,24 +399,19 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. - _i2.SmithyOperation xmlIntEnums( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlIntEnums({ + _i1.AWSHttpClient? client, + }) { return XmlIntEnumsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Lists of structures. @@ -496,10 +421,7 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests basic map serialization. @@ -509,49 +431,40 @@ class QueryProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlMapsXmlName( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlMapsXmlName({ + _i1.AWSHttpClient? client, + }) { return XmlMapsXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlNamespaces( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlNamespaces({ + _i1.AWSHttpClient? client, + }) { return XmlNamespacesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. - _i2.SmithyOperation xmlTimestamps( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlTimestamps({ + _i1.AWSHttpClient? client, + }) { return XmlTimestampsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_server.dart b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_server.dart index 695f1dd141..4ffbeaabf2 100644 --- a/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_server.dart +++ b/packages/smithy/goldens/lib2/awsQuery/lib/src/query_protocol/query_protocol_server.dart @@ -1,4 +1,4 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library aws_query_v2.query_protocol.query_protocol_server; diff --git a/packages/smithy/goldens/lib2/awsQuery/pubspec.yaml b/packages/smithy/goldens/lib2/awsQuery/pubspec.yaml index 4775e05ae0..4c6efa1ac8 100644 --- a/packages/smithy/goldens/lib2/awsQuery/pubspec.yaml +++ b/packages/smithy/goldens/lib2/awsQuery/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,7 +16,7 @@ dependencies: built_value: ^8.6.0 built_collection: ^5.0.0 fixnum: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -38,6 +38,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart index f48d8c3797..40aa472dc0 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQueryDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2019-12-16T22:48:18-01:00\n \n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQueryDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQueryDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2019-12-17T00:48:18+01:00\n \n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('AwsQueryDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQueryDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2019-12-16T22:48:18-01:00\n \n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQueryDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQueryDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2019-12-17T00:48:18+01:00\n \n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputAwsQuerySerializer()], + ); + }); } class DatetimeOffsetsOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputAwsQuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart index 014122ba0f..94f9128b46 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,97 +13,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryEmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryEmptyInputAndEmptyOutput', - documentation: 'Empty input serializes no extra query params', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'QueryEmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryEmptyInputAndEmptyOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryEmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryEmptyInputAndEmptyOutput', + documentation: 'Empty input serializes no extra query params', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryEmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryEmptyInputAndEmptyOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputAwsQuerySerializer(), + ], + ); + }); } class EmptyInputAndEmptyOutputInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -127,18 +112,15 @@ class EmptyInputAndEmptyOutputInputAwsQuerySerializer class EmptyInputAndEmptyOutputOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputAwsQuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_operation_test.dart index 476de1eb1f..e761447ad0 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQueryEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=EndpointOperation&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('AwsQueryEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQueryEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=EndpointOperation&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart index b6efa1cce5..19f6e0302c 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQueryEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&label=bar', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputAwsQuerySerializer()], - ); - }, - ); + _i1.test('AwsQueryEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQueryEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&label=bar', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputAwsQuerySerializer()], + ); + }); } class HostLabelInputAwsQuerySerializer @@ -63,11 +57,8 @@ class HostLabelInputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override HostLabelInput deserialize( @@ -86,10 +77,12 @@ class HostLabelInputAwsQuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart index 3adaa2ffc4..4c308dbd53 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.flattened_xml_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,61 +14,49 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryFlattenedXmlMap (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryFlattenedXmlMap', - documentation: 'Serializes flattened XML maps in responses', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n foo\n Foo\n \n \n baz\n Baz\n \n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': 'Foo', - 'baz': 'Baz', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FlattenedXmlMapOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryQueryFlattenedXmlMap (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryFlattenedXmlMap', + documentation: 'Serializes flattened XML maps in responses', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n foo\n Foo\n \n \n baz\n Baz\n \n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'foo': 'Foo', 'baz': 'Baz'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FlattenedXmlMapOutputAwsQuerySerializer()], + ); + }); } class FlattenedXmlMapOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapOutputAwsQuerySerializer() - : super('FlattenedXmlMapOutput'); + : super('FlattenedXmlMapOutput'); @override Iterable get types => const [FlattenedXmlMapOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapOutput deserialize( @@ -87,16 +75,16 @@ class FlattenedXmlMapOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart index b870c5b92f..46e39bde01 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.flattened_xml_map_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,64 +13,52 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryFlattenedXmlMapWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryFlattenedXmlMapWithXmlName', - documentation: - 'Serializes flattened XML maps in responses that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n a\n A\n \n \n b\n B\n \n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryQueryFlattenedXmlMapWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryFlattenedXmlMapWithXmlName', + documentation: + 'Serializes flattened XML maps in responses that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n a\n A\n \n \n b\n B\n \n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer(), + ], + ); + }); } class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNameOutput'); + : super('FlattenedXmlMapWithXmlNameOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNameOutput deserialize( @@ -89,16 +77,16 @@ class FlattenedXmlMapWithXmlNameOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart index 3aed9b5d83..0d9642350a 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.flattened_xml_map_with_xml_namespace_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,64 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryFlattenedXmlMapWithXmlNamespace (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryFlattenedXmlMapWithXmlNamespace', - documentation: - 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n a\n A\n \n \n b\n B\n \n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryQueryFlattenedXmlMapWithXmlNamespace (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryFlattenedXmlMapWithXmlNamespace', + documentation: + 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n a\n A\n \n \n b\n B\n \n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer(), + ], + ); + }); } -class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNamespaceOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -89,16 +78,16 @@ class FlattenedXmlMapWithXmlNamespaceOutputAwsQuerySerializer extends _i3 } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart index 783cfcd828..23853f0f8e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,57 +12,48 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AwsQueryDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQueryDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2000-01-02T20:34:56.123Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('AwsQueryDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQueryDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2000-01-02T20:34:56.123Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputAwsQuerySerializer()], + ); + }); } class FractionalSecondsOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputAwsQuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart index 7c4e0d89a4..84f701b396 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,165 +16,153 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryGreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryGreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how to deserialize the successful response', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Hello\n \n\n', - bodyMediaType: 'application/xml', - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GreetingWithErrorsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Sender\n ComplexError\n Top level\n \n bar\n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorAwsQuerySerializer(), - ComplexNestedErrorDataAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryCustomizedError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, CustomCodeError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryCustomizedError', - documentation: 'Parses customized XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Sender\n Customized\n Hi\n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 402, - ), - errorSerializers: const [CustomCodeErrorAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryInvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryInvalidGreetingError', - documentation: 'Parses simple XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Sender\n InvalidGreeting\n Hi\n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryGreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryGreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how to deserialize the successful response', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Hello\n \n\n', + bodyMediaType: 'application/xml', + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Sender\n ComplexError\n Top level\n \n bar\n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorAwsQuerySerializer(), + ComplexNestedErrorDataAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryCustomizedError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + CustomCodeError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryCustomizedError', + documentation: 'Parses customized XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Sender\n Customized\n Hi\n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 402, + ), + errorSerializers: const [CustomCodeErrorAwsQuerySerializer()], + ); + }); + _i1.test('QueryInvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryInvalidGreetingError', + documentation: 'Parses simple XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Sender\n InvalidGreeting\n Hi\n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingAwsQuerySerializer()], + ); + }); } class GreetingWithErrorsOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputAwsQuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -193,10 +181,12 @@ class GreetingWithErrorsOutputAwsQuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -222,11 +212,8 @@ class ComplexErrorAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexError deserialize( @@ -245,15 +232,20 @@ class ComplexErrorAwsQuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -273,18 +265,15 @@ class ComplexErrorAwsQuerySerializer class ComplexNestedErrorDataAwsQuerySerializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataAwsQuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override ComplexNestedErrorData deserialize( @@ -303,10 +292,12 @@ class ComplexNestedErrorDataAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -332,11 +323,8 @@ class CustomCodeErrorAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override CustomCodeError deserialize( @@ -355,10 +343,12 @@ class CustomCodeErrorAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -384,11 +374,8 @@ class InvalidGreetingAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override InvalidGreeting deserialize( @@ -407,10 +394,12 @@ class InvalidGreetingAwsQuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/host_with_path_operation_test.dart index f4dd7a780c..70120bc7ae 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryHostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryHostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=HostWithPathOperation&Version=2020-01-08', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('QueryHostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryHostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=HostWithPathOperation&Version=2020-01-08', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart index 4dbca378b8..fcb2ddec1c 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/ignores_wrapping_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.ignores_wrapping_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,59 +12,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryIgnoresWrappingXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoresWrappingXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryIgnoresWrappingXmlName', - documentation: - 'The xmlName trait on the output structure is ignored in AWS Query', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n bar\n \n\n', - bodyMediaType: 'application/xml', - params: {'foo': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoresWrappingXmlNameOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QueryIgnoresWrappingXmlName (response)', () async { + await _i2.httpResponseTest( + operation: IgnoresWrappingXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryIgnoresWrappingXmlName', + documentation: + 'The xmlName trait on the output structure is ignored in AWS Query', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n bar\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoresWrappingXmlNameOutputAwsQuerySerializer(), + ], + ); + }); } class IgnoresWrappingXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputAwsQuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [IgnoresWrappingXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -83,10 +74,12 @@ class IgnoresWrappingXmlNameOutputAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/nested_structures_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/nested_structures_operation_test.dart index b08a42c083..a3b830e480 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/nested_structures_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/nested_structures_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.nested_structures_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,71 +13,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NestedStructures (request)', - () async { - await _i2.httpRequestTest( - operation: NestedStructuresOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NestedStructures', - documentation: 'Serializes nested structures using dots', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Nested': { - 'StringArg': 'foo', - 'OtherArg': true, - 'RecursiveArg': {'StringArg': 'baz'}, - } + _i1.test('NestedStructures (request)', () async { + await _i2.httpRequestTest( + operation: NestedStructuresOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NestedStructures', + documentation: 'Serializes nested structures using dots', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'Nested': { + 'StringArg': 'foo', + 'OtherArg': true, + 'RecursiveArg': {'StringArg': 'baz'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - NestedStructuresInputAwsQuerySerializer(), - StructArgAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + NestedStructuresInputAwsQuerySerializer(), + StructArgAwsQuerySerializer(), + ], + ); + }); } class NestedStructuresInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructuresInputAwsQuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [NestedStructuresInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructuresInput deserialize( @@ -96,10 +87,13 @@ class NestedStructuresInputAwsQuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -125,11 +119,8 @@ class StructArgAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructArg deserialize( @@ -148,20 +139,27 @@ class StructArgAwsQuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart index af7726f605..151c355daf 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,75 +10,63 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryNoInputAndNoOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNoInputAndNoOutput', - documentation: 'No input serializes no additional query params', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=NoInputAndNoOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'QueryNoInputAndNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryNoInputAndNoOutput', - documentation: - 'Empty output. Note that no assertion is made on the output body itself.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('QueryNoInputAndNoOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNoInputAndNoOutput', + documentation: 'No input serializes no additional query params', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=NoInputAndNoOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('QueryNoInputAndNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryNoInputAndNoOutput', + documentation: + 'Empty output. Note that no assertion is made on the output body itself.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart index 2d4de156f2..91df0c4e03 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,93 +13,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryNoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNoInputAndOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=NoInputAndOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NoInputAndOutputInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryNoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryNoInputAndOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryNoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNoInputAndOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=NoInputAndOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NoInputAndOutputInputAwsQuerySerializer()], + ); + }); + _i1.test('QueryNoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryNoInputAndOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputAwsQuerySerializer()], + ); + }); } class NoInputAndOutputInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputInputAwsQuerySerializer() - : super('NoInputAndOutputInput'); + : super('NoInputAndOutputInput'); @override Iterable get types => const [NoInputAndOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputInput deserialize( @@ -123,18 +108,15 @@ class NoInputAndOutputInputAwsQuerySerializer class NoInputAndOutputOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputAwsQuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart index 115ce158d0..7d90059db1 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,103 +12,105 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_awsQuery (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_awsQuery', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', + _i1.test( + 'SDKAppliedContentEncoding_awsQuery (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputAwsQuerySerializer()], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsQuery protocol.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_awsQuery', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputAwsQuerySerializer()], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputAwsQuerySerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsQuery protocol.\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputAwsQuerySerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputAwsQuerySerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override PutWithContentEncodingInput deserialize( @@ -127,15 +129,19 @@ class PutWithContentEncodingInputAwsQuerySerializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart index f56320ce1a..3190b18ff5 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,8 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('QueryProtocolIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryProtocolIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000000', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); _i1.test( - 'QueryProtocolIdempotencyTokenAutoFillIsSet (request)', + 'QueryProtocolIdempotencyTokenAutoFill (request)', () async { await _i2.httpRequestTest( operation: QueryIdempotencyTokenAutoFillOperation( @@ -59,17 +21,14 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'QueryProtocolIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), + id: 'QueryProtocolIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), authScheme: null, body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000123', + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000000', bodyMediaType: 'application/x-www-form-urlencoded', - params: {'token': '00000000-0000-4000-8000-000000000123'}, + params: {}, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -86,28 +45,61 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() + QueryIdempotencyTokenAutoFillInputAwsQuerySerializer(), ], ); }, + skip: 'bool.fromEnvironment is not working in tests for some reason', ); + _i1.test('QueryProtocolIdempotencyTokenAutoFillIsSet (request)', () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryProtocolIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000123', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'token': '00000000-0000-4000-8000-000000000123'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputAwsQuerySerializer(), + ], + ); + }); } class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputAwsQuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -126,10 +118,12 @@ class QueryIdempotencyTokenAutoFillInputAwsQuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_lists_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_lists_operation_test.dart index 4b908e6e3a..7d18b8dee4 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.query_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,76 +15,27 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryLists (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryLists', - documentation: 'Serializes query lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&ComplexListArg.member.1.hi=hello&ComplexListArg.member.2.hi=hola', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArg': [ - 'foo', - 'bar', - 'baz', - ], - 'ComplexListArg': [ - {'hi': 'hello'}, - {'hi': 'hola'}, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test('EmptyQueryLists (request)', () async { + _i1.test('QueryLists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'EmptyQueryLists', - documentation: 'Serializes empty query lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), + id: 'QueryLists', + documentation: 'Serializes query lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&ListArg=', + body: + 'Action=QueryLists&Version=2020-01-08&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&ComplexListArg.member.1.hi=hello&ComplexListArg.member.2.hi=hola', bodyMediaType: 'application/x-www-form-urlencoded', - params: {'ListArg': []}, + params: { + 'ListArg': ['foo', 'bar', 'baz'], + 'ComplexListArg': [ + {'hi': 'hello'}, + {'hi': 'hola'}, + ], + }, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -106,9 +57,9 @@ void main() { NestedStructWithListAwsQuerySerializer(), ], ); - }, skip: 'Unclear how to reconcile with QueryEmptyQueryMaps'); + }); _i1.test( - 'FlattenedQueryLists (request)', + 'EmptyQueryLists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( @@ -116,23 +67,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'FlattenedQueryLists', - documentation: - 'Flattens query lists by repeating the member name and removing the member element', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), + id: 'EmptyQueryLists', + documentation: 'Serializes empty query lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&FlattenedListArg.1=A&FlattenedListArg.2=B', + body: 'Action=QueryLists&Version=2020-01-08&ListArg=', bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedListArg': [ - 'A', - 'B', - ] - }, + params: {'ListArg': []}, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -155,153 +96,167 @@ void main() { ], ); }, + skip: 'Unclear how to reconcile with QueryEmptyQueryMaps', ); - _i1.test( - 'QueryListArgWithXmlNameMember (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryListArgWithXmlNameMember', - documentation: 'Changes the member of lists using xmlName trait', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.item.1=A&ListArgWithXmlNameMember.item.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArgWithXmlNameMember': [ - 'A', - 'B', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryFlattenedListArgWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryFlattenedListArgWithXmlName', - documentation: - 'Changes the name of flattened lists using xmlName trait on the structure member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedListArgWithXmlName': [ - 'A', - 'B', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryNestedStructWithList (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNestedStructWithList', - documentation: 'Nested structure with a list member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.member.1=A&NestedWithList.ListArg.member.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'NestedWithList': { - 'ListArg': [ - 'A', - 'B', - ] - } + _i1.test('FlattenedQueryLists (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlattenedQueryLists', + documentation: + 'Flattens query lists by repeating the member name and removing the member element', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&FlattenedListArg.1=A&FlattenedListArg.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedListArg': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryListArgWithXmlNameMember (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryListArgWithXmlNameMember', + documentation: 'Changes the member of lists using xmlName trait', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.item.1=A&ListArgWithXmlNameMember.item.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ListArgWithXmlNameMember': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryFlattenedListArgWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryFlattenedListArgWithXmlName', + documentation: + 'Changes the name of flattened lists using xmlName trait on the structure member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedListArgWithXmlName': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryNestedStructWithList (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNestedStructWithList', + documentation: 'Nested structure with a list member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.member.1=A&NestedWithList.ListArg.member.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'NestedWithList': { + 'ListArg': ['A', 'B'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithListAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithListAwsQuerySerializer(), + ], + ); + }); } class QueryListsInputAwsQuerySerializer @@ -313,11 +268,8 @@ class QueryListsInputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryListsInput deserialize( @@ -336,50 +288,63 @@ class QueryListsInputAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i4.BuiltList)); + result.complexListArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltList), + ); case 'FlattenedListArg': - result.flattenedListArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArgWithXmlNameMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'FlattenedListArgWithXmlName': - result.flattenedListArgWithXmlName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListArgWithXmlName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -405,11 +370,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -428,10 +390,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -451,18 +415,15 @@ class GreetingStructAwsQuerySerializer class NestedStructWithListAwsQuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListAwsQuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [NestedStructWithList]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithList deserialize( @@ -481,13 +442,15 @@ class NestedStructWithListAwsQuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_maps_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_maps_operation_test.dart index 6450f419a9..22778e32a8 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_maps_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.query_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,438 +15,363 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QuerySimpleQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleQueryMaps', - documentation: 'Serializes query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&MapArg.entry.1.key=bar&MapArg.entry.1.value=Bar&MapArg.entry.2.key=foo&MapArg.entry.2.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'MapArg': { - 'bar': 'Bar', - 'foo': 'Foo', - } + _i1.test('QuerySimpleQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleQueryMaps', + documentation: 'Serializes query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&MapArg.entry.1.key=bar&MapArg.entry.1.value=Bar&MapArg.entry.2.key=foo&MapArg.entry.2.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'MapArg': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QuerySimpleQueryMapsWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleQueryMapsWithXmlName', + documentation: 'Serializes query maps and uses xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&Foo.entry.1.key=foo&Foo.entry.1.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'RenamedMapArg': {'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryComplexQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryComplexQueryMaps', + documentation: 'Serializes complex query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&ComplexMapArg.entry.1.key=bar&ComplexMapArg.entry.1.value.hi=Bar&ComplexMapArg.entry.2.key=foo&ComplexMapArg.entry.2.value.hi=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ComplexMapArg': { + 'bar': {'hi': 'Bar'}, + 'foo': {'hi': 'Foo'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QuerySimpleQueryMapsWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleQueryMapsWithXmlName', - documentation: 'Serializes query maps and uses xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&Foo.entry.1.key=foo&Foo.entry.1.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'RenamedMapArg': {'foo': 'Foo'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryEmptyQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryEmptyQueryMaps', + documentation: 'Does not serialize empty query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=QueryMaps&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'MapArg': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryQueryMapWithMemberXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryQueryMapWithMemberXmlName', + documentation: + 'Serializes query maps where the member has an xmlName trait', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&MapWithXmlMemberName.entry.1.K=bar&MapWithXmlMemberName.entry.1.V=Bar&MapWithXmlMemberName.entry.2.K=foo&MapWithXmlMemberName.entry.2.V=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'MapWithXmlMemberName': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryFlattenedQueryMaps (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryFlattenedQueryMaps', + documentation: 'Serializes flattened query maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&FlattenedMap.1.key=bar&FlattenedMap.1.value=Bar&FlattenedMap.2.key=foo&FlattenedMap.2.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedMap': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryFlattenedQueryMapsWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryFlattenedQueryMapsWithXmlName', + documentation: 'Serializes flattened query maps that use an xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&Hi.1.K=bar&Hi.1.V=Bar&Hi.2.K=foo&Hi.2.V=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'FlattenedMapWithXmlName': {'bar': 'Bar', 'foo': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryQueryMapOfLists (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryQueryMapOfLists', + documentation: 'Serializes query map of lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&MapOfLists.entry.1.key=bar&MapOfLists.entry.1.value.member.1=C&MapOfLists.entry.1.value.member.2=D&MapOfLists.entry.2.key=foo&MapOfLists.entry.2.value.member.1=A&MapOfLists.entry.2.value.member.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'MapOfLists': { + 'bar': ['C', 'D'], + 'foo': ['A', 'B'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryComplexQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryComplexQueryMaps', - documentation: 'Serializes complex query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&ComplexMapArg.entry.1.key=bar&ComplexMapArg.entry.1.value.hi=Bar&ComplexMapArg.entry.2.key=foo&ComplexMapArg.entry.2.value.hi=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ComplexMapArg': { - 'bar': {'hi': 'Bar'}, - 'foo': {'hi': 'Foo'}, - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryNestedStructWithMap (request)', () async { + await _i2.httpRequestTest( + operation: QueryMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryNestedStructWithMap', + documentation: 'Serializes nested struct with map member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryMaps&Version=2020-01-08&NestedStructWithMap.MapArg.entry.1.key=bar&NestedStructWithMap.MapArg.entry.1.value=Bar&NestedStructWithMap.MapArg.entry.2.key=foo&NestedStructWithMap.MapArg.entry.2.value=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'NestedStructWithMap': { + 'MapArg': {'bar': 'Bar', 'foo': 'Foo'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryEmptyQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryEmptyQueryMaps', - documentation: 'Does not serialize empty query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=QueryMaps&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'MapArg': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryQueryMapWithMemberXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryQueryMapWithMemberXmlName', - documentation: - 'Serializes query maps where the member has an xmlName trait', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&MapWithXmlMemberName.entry.1.K=bar&MapWithXmlMemberName.entry.1.V=Bar&MapWithXmlMemberName.entry.2.K=foo&MapWithXmlMemberName.entry.2.V=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'MapWithXmlMemberName': { - 'bar': 'Bar', - 'foo': 'Foo', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryFlattenedQueryMaps (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryFlattenedQueryMaps', - documentation: 'Serializes flattened query maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&FlattenedMap.1.key=bar&FlattenedMap.1.value=Bar&FlattenedMap.2.key=foo&FlattenedMap.2.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedMap': { - 'bar': 'Bar', - 'foo': 'Foo', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryFlattenedQueryMapsWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryFlattenedQueryMapsWithXmlName', - documentation: 'Serializes flattened query maps that use an xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&Hi.1.K=bar&Hi.1.V=Bar&Hi.2.K=foo&Hi.2.V=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FlattenedMapWithXmlName': { - 'bar': 'Bar', - 'foo': 'Foo', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryQueryMapOfLists (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryQueryMapOfLists', - documentation: 'Serializes query map of lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&MapOfLists.entry.1.key=bar&MapOfLists.entry.1.value.member.1=C&MapOfLists.entry.1.value.member.2=D&MapOfLists.entry.2.key=foo&MapOfLists.entry.2.value.member.1=A&MapOfLists.entry.2.value.member.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'MapOfLists': { - 'bar': [ - 'C', - 'D', - ], - 'foo': [ - 'A', - 'B', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryNestedStructWithMap (request)', - () async { - await _i2.httpRequestTest( - operation: QueryMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryNestedStructWithMap', - documentation: 'Serializes nested struct with map member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryMaps&Version=2020-01-08&NestedStructWithMap.MapArg.entry.1.key=bar&NestedStructWithMap.MapArg.entry.1.value=Bar&NestedStructWithMap.MapArg.entry.2.key=foo&NestedStructWithMap.MapArg.entry.2.value=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'NestedStructWithMap': { - 'MapArg': { - 'bar': 'Bar', - 'foo': 'Foo', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryMapsInputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - NestedStructWithMapAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryMapsInputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + NestedStructWithMapAwsQuerySerializer(), + ], + ); + }); } class QueryMapsInputAwsQuerySerializer @@ -458,11 +383,8 @@ class QueryMapsInputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryMapsInput deserialize( @@ -481,87 +403,90 @@ class QueryMapsInputAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.mapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'RenamedMapArg': - result.renamedMapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.renamedMapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'ComplexMapArg': - result.complexMapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.complexMapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); case 'MapWithXmlMemberName': - result.mapWithXmlMemberName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.mapWithXmlMemberName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'FlattenedMap': - result.flattenedMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.flattenedMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'FlattenedMapWithXmlName': - result.flattenedMapWithXmlName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.flattenedMapWithXmlName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'MapOfLists': - result.mapOfLists.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.mapOfLists.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); case 'NestedStructWithMap': - result.nestedStructWithMap.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithMap), - ) as NestedStructWithMap)); + result.nestedStructWithMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithMap), + ) + as NestedStructWithMap), + ); } } @@ -587,11 +512,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -610,10 +532,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -639,11 +563,8 @@ class NestedStructWithMapAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override NestedStructWithMap deserialize( @@ -662,16 +583,16 @@ class NestedStructWithMapAwsQuerySerializer } switch (key) { case 'MapArg': - result.mapArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.mapArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_timestamps_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_timestamps_operation_test.dart index c88ba4ce6f..1c2985e819 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/query_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.query_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryTimestampsInput (request)', - () async { - await _i2.httpRequestTest( - operation: QueryTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryTimestampsInput', - documentation: 'Serializes timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=QueryTimestamps&Version=2020-01-08&normalFormat=2015-01-25T08%3A00%3A00Z&epochMember=1422172800&epochTarget=1422172800', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'normalFormat': 1422172800, - 'epochMember': 1422172800, - 'epochTarget': 1422172800, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryTimestampsInputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryTimestampsInput (request)', () async { + await _i2.httpRequestTest( + operation: QueryTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryTimestampsInput', + documentation: 'Serializes timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=QueryTimestamps&Version=2020-01-08&normalFormat=2015-01-25T08%3A00%3A00Z&epochMember=1422172800&epochTarget=1422172800', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'normalFormat': 1422172800, + 'epochMember': 1422172800, + 'epochTarget': 1422172800, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryTimestampsInputAwsQuerySerializer()], + ); + }); } class QueryTimestampsInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const QueryTimestampsInputAwsQuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [QueryTimestampsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override QueryTimestampsInput deserialize( @@ -90,11 +81,8 @@ class QueryTimestampsInputAwsQuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.normalFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochMember': result.epochMember = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart index 9ba31eab89..674e518932 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/recursive_xml_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.recursive_xml_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,71 +14,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryRecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveXmlShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryRecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { + _i1.test('QueryRecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveXmlShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryRecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveXmlShapesOutputAwsQuerySerializer(), - RecursiveXmlShapesOutputNested1AwsQuerySerializer(), - RecursiveXmlShapesOutputNested2AwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveXmlShapesOutputAwsQuerySerializer(), + RecursiveXmlShapesOutputNested1AwsQuerySerializer(), + RecursiveXmlShapesOutputNested2AwsQuerySerializer(), + ], + ); + }); } class RecursiveXmlShapesOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputAwsQuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [RecursiveXmlShapesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -97,10 +88,15 @@ class RecursiveXmlShapesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -120,18 +116,15 @@ class RecursiveXmlShapesOutputAwsQuerySerializer class RecursiveXmlShapesOutputNested1AwsQuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [RecursiveXmlShapesOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -150,15 +143,22 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -178,18 +178,15 @@ class RecursiveXmlShapesOutputNested1AwsQuerySerializer class RecursiveXmlShapesOutputNested2AwsQuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2AwsQuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [RecursiveXmlShapesOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -208,15 +205,22 @@ class RecursiveXmlShapesOutputNested2AwsQuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_input_params_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_input_params_operation_test.dart index a516081fb0..8e1f211f40 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_input_params_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_input_params_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.simple_input_params_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,459 +16,375 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QuerySimpleInputParamsStrings (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsStrings', - documentation: 'Serializes strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Bar': 'val2', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsStringAndBooleanTrue (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsStringAndBooleanTrue', - documentation: 'Serializes booleans that are true', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Baz': true, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsStringsAndBooleanFalse (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsStringsAndBooleanFalse', - documentation: 'Serializes booleans that are false', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Baz': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsInteger (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsInteger', - documentation: 'Serializes integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Bam': 10}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsFloat (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsFloat', - documentation: 'Serializes floats', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Boo': 10.8}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QuerySimpleInputParamsBlob (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QuerySimpleInputParamsBlob', - documentation: 'Blobs are base64 encoded in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Qux': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryEnums (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryEnums', - documentation: 'Serializes enums in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'FooEnum': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryIntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryIntEnums', - documentation: 'Serializes intEnums in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&IntegerEnum=1', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'IntegerEnum': 1}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQuerySupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'NaN', - 'Boo': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQuerySupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'Infinity', - 'Boo': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AwsQuerySupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': '-Infinity', - 'Boo': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QuerySimpleInputParamsStrings (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsStrings', + documentation: 'Serializes strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Bar': 'val2'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsStringAndBooleanTrue (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsStringAndBooleanTrue', + documentation: 'Serializes booleans that are true', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Baz': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsStringsAndBooleanFalse (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsStringsAndBooleanFalse', + documentation: 'Serializes booleans that are false', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Baz': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsInteger (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsInteger', + documentation: 'Serializes integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Bam': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsFloat (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsFloat', + documentation: 'Serializes floats', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Boo': 10.8}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QuerySimpleInputParamsBlob (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QuerySimpleInputParamsBlob', + documentation: 'Blobs are base64 encoded in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Qux': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QueryEnums (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryEnums', + documentation: 'Serializes enums in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FooEnum': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('QueryIntEnums (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryIntEnums', + documentation: 'Serializes intEnums in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&IntegerEnum=1', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'IntegerEnum': 1}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQuerySupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQuerySupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'NaN', 'Boo': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQuerySupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQuerySupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'Infinity', 'Boo': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); + _i1.test('AwsQuerySupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AwsQuerySupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': '-Infinity', 'Boo': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputAwsQuerySerializer()], + ); + }); } class SimpleInputParamsInputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const SimpleInputParamsInputAwsQuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [SimpleInputParamsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleInputParamsInput deserialize( @@ -487,50 +403,68 @@ class SimpleInputParamsInputAwsQuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'IntegerEnum': - result.integerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart index fd1458c08c..53d2507f2e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/simple_scalar_xml_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.simple_scalar_xml_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,183 +13,147 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QuerySimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QuerySimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringValue': 'string', - 'emptyStringValue': '', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNaNFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQuerySupportsNaNFloatOutputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n NaN\n NaN\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQuerySupportsInfinityFloatOutputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Infinity\n Infinity\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); - _i1.test( - 'AwsQuerySupportsNegativeInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'AwsQuerySupportsNegativeInfinityFloatOutputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n -Infinity\n -Infinity\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - ], - ); - }, - ); + _i1.test('QuerySimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QuerySimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringValue': 'string', + 'emptyStringValue': '', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); + _i1.test('AwsQuerySupportsNaNFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQuerySupportsNaNFloatOutputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n NaN\n NaN\n \n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); + _i1.test('AwsQuerySupportsInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQuerySupportsInfinityFloatOutputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Infinity\n Infinity\n \n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); + _i1.test('AwsQuerySupportsNegativeInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'AwsQuerySupportsNegativeInfinityFloatOutputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n -Infinity\n -Infinity\n \n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputAwsQuerySerializer(), + ], + ); + }); } class SimpleScalarXmlPropertiesOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputAwsQuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [SimpleScalarXmlPropertiesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -208,55 +172,75 @@ class SimpleScalarXmlPropertiesOutputAwsQuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_blobs_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_blobs_operation_test.dart index 515232906a..6fa363881b 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,39 +14,33 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n dmFsdWU=\n \n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n dmFsdWU=\n \n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], + ); + }); } class XmlBlobsOutputAwsQuerySerializer @@ -58,11 +52,8 @@ class XmlBlobsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlBlobsOutput deserialize( @@ -81,10 +72,12 @@ class XmlBlobsOutputAwsQuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart index f370db0b55..f6c8d2e95e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_empty_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,73 +14,61 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEmptyBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptyBlobs', - documentation: 'Empty blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlEmptySelfClosedBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptySelfClosedBlobs', - documentation: - 'Empty self closed blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlEmptyBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptyBlobs', + documentation: 'Empty blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlEmptySelfClosedBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptySelfClosedBlobs', + documentation: + 'Empty self closed blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputAwsQuerySerializer()], + ); + }); } class XmlBlobsOutputAwsQuerySerializer @@ -92,11 +80,8 @@ class XmlBlobsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlBlobsOutput deserialize( @@ -115,10 +100,12 @@ class XmlBlobsOutputAwsQuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart index dc39c30d36..08fe7fd142 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,45 +16,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEmptyLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptyLists', - documentation: 'Deserializes empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputAwsQuerySerializer(), - StructureListMemberAwsQuerySerializer(), - ], - ); - }, - ); + _i1.test('QueryXmlEmptyLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptyLists', + documentation: 'Deserializes empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputAwsQuerySerializer(), + StructureListMemberAwsQuerySerializer(), + ], + ); + }); } class XmlListsOutputAwsQuerySerializer @@ -66,11 +57,8 @@ class XmlListsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlListsOutput deserialize( @@ -89,123 +77,143 @@ class XmlListsOutputAwsQuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -231,11 +239,8 @@ class StructureListMemberAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructureListMember deserialize( @@ -254,15 +259,19 @@ class StructureListMemberAwsQuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart index e38521b43a..54d32c6455 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_empty_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_empty_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,78 +14,66 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEmptyMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptyMaps', - documentation: 'Deserializes Empty XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'QueryXmlEmptySelfClosedMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEmptySelfClosedMaps', - documentation: 'Deserializes Self-Closed XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); + _i1.test('QueryXmlEmptyMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptyMaps', + documentation: 'Deserializes Empty XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); + _i1.test('QueryXmlEmptySelfClosedMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEmptySelfClosedMaps', + documentation: 'Deserializes Self-Closed XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); } class XmlMapsOutputAwsQuerySerializer @@ -97,11 +85,8 @@ class XmlMapsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsOutput deserialize( @@ -120,16 +105,16 @@ class XmlMapsOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -155,11 +140,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -178,10 +160,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_enums_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_enums_operation_test.dart index 2fc591c5ab..4f163bdf19 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,55 +14,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlEnumsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlEnumsOutputAwsQuerySerializer()], + ); + }); } class XmlEnumsOutputAwsQuerySerializer @@ -74,11 +59,8 @@ class XmlEnumsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlEnumsOutput deserialize( @@ -97,47 +79,57 @@ class XmlEnumsOutputAwsQuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart index e6dcc9dcb4..38fcb7a665 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,55 +14,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlIntEnumsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlIntEnumsOutputAwsQuerySerializer()], + ); + }); } class XmlIntEnumsOutputAwsQuerySerializer @@ -74,11 +59,8 @@ class XmlIntEnumsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlIntEnumsOutput deserialize( @@ -97,47 +79,57 @@ class XmlIntEnumsOutputAwsQuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ), - ) as _i4.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_lists_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_lists_operation_test.dart index 9bb376e128..83d3357615 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,111 +16,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'flattenedListWithMemberNamespace': [ - 'a', - 'b', - ], - 'flattenedListWithNamespace': [ - 'a', - 'b', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputAwsQuerySerializer(), - StructureListMemberAwsQuerySerializer(), - ], - ); - }, - ); + _i1.test('QueryXmlLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'flattenedListWithMemberNamespace': ['a', 'b'], + 'flattenedListWithNamespace': ['a', 'b'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputAwsQuerySerializer(), + StructureListMemberAwsQuerySerializer(), + ], + ); + }); } class XmlListsOutputAwsQuerySerializer @@ -132,11 +78,8 @@ class XmlListsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlListsOutput deserialize( @@ -155,123 +98,143 @@ class XmlListsOutputAwsQuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -297,11 +260,8 @@ class StructureListMemberAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override StructureListMember deserialize( @@ -320,15 +280,19 @@ class StructureListMemberAwsQuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_operation_test.dart index 1a844bced8..bd22610d0e 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,47 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlMaps', - documentation: 'Tests for XML map serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('QueryXmlMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlMaps', + documentation: 'Tests for XML map serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); } class XmlMapsOutputAwsQuerySerializer @@ -66,11 +60,8 @@ class XmlMapsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsOutput deserialize( @@ -89,16 +80,16 @@ class XmlMapsOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -124,11 +115,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -147,10 +135,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart index 3edabfa0a0..3e4b5099e7 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_maps_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_maps_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,64 +14,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryQueryXmlMapsXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryQueryXmlMapsXmlName', - documentation: 'Serializes XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('QueryQueryXmlMapsXmlName (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryQueryXmlMapsXmlName', + documentation: 'Serializes XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsXmlNameOutputAwsQuerySerializer(), - GreetingStructAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsXmlNameOutputAwsQuerySerializer(), + GreetingStructAwsQuerySerializer(), + ], + ); + }); } class XmlMapsXmlNameOutputAwsQuerySerializer extends _i3.StructuredSmithySerializer { const XmlMapsXmlNameOutputAwsQuerySerializer() - : super('XmlMapsXmlNameOutput'); + : super('XmlMapsXmlNameOutput'); @override Iterable get types => const [XmlMapsXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlMapsXmlNameOutput deserialize( @@ -90,16 +81,16 @@ class XmlMapsXmlNameOutputAwsQuerySerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -125,11 +116,8 @@ class GreetingStructAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override GreetingStruct deserialize( @@ -148,10 +136,12 @@ class GreetingStructAwsQuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart index 536260cae2..673da64b67 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_namespaces_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_namespaces_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,50 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlNamespaces (response)', - () async { - await _i2.httpResponseTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n \n Foo\n \n Bar\n Baz\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + _i1.test('QueryXmlNamespaces (response)', () async { + await _i2.httpResponseTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n \n Foo\n \n Bar\n Baz\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlNamespacesOutputAwsQuerySerializer(), - XmlNamespaceNestedAwsQuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlNamespacesOutputAwsQuerySerializer(), + XmlNamespaceNestedAwsQuerySerializer(), + ], + ); + }); } class XmlNamespacesOutputAwsQuerySerializer @@ -69,11 +60,8 @@ class XmlNamespacesOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespacesOutput deserialize( @@ -92,10 +80,13 @@ class XmlNamespacesOutputAwsQuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -121,11 +112,8 @@ class XmlNamespaceNestedAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlNamespaceNested deserialize( @@ -144,18 +132,22 @@ class XmlNamespaceNestedAwsQuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart index d6a2ef1b8e..251d7b1387 100644 --- a/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib2/awsQuery/test/query_protocol/xml_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library aws_query_v2.query_protocol.test.xml_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,242 +12,200 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'QueryXmlTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2014-04-29T18:30:38Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2014-04-29T18:30:38Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithDateTimeOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 2014-04-29T18:30:38Z\n \n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 1398796238\n \n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithEpochSecondsOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n 1398796238\n \n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); - _i1.test( - 'QueryXmlTimestampsWithHttpDateOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'QueryXmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ), - authScheme: null, - body: - '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], - ); - }, - ); + _i1.test('QueryXmlTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2014-04-29T18:30:38Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2014-04-29T18:30:38Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithDateTimeOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 2014-04-29T18:30:38Z\n \n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 1398796238\n \n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithEpochSecondsOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n 1398796238\n \n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); + _i1.test('QueryXmlTimestampsWithHttpDateOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'QueryXmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + authScheme: null, + body: + '\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputAwsQuerySerializer()], + ); + }); } class XmlTimestampsOutputAwsQuerySerializer @@ -259,11 +217,8 @@ class XmlTimestampsOutputAwsQuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsQuery', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsQuery'), + ]; @override XmlTimestampsOutput deserialize( @@ -292,34 +247,22 @@ class XmlTimestampsOutputAwsQuerySerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/custom/lib/custom.dart b/packages/smithy/goldens/lib2/custom/lib/custom.dart index 3448943554..9740c00f0c 100644 --- a/packages/smithy/goldens/lib2/custom/lib/custom.dart +++ b/packages/smithy/goldens/lib2/custom/lib/custom.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom; diff --git a/packages/smithy/goldens/lib2/custom/lib/s3.dart b/packages/smithy/goldens/lib2/custom/lib/s3.dart index 346c38702c..2c2e140cc9 100644 --- a/packages/smithy/goldens/lib2/custom/lib/s3.dart +++ b/packages/smithy/goldens/lib2/custom/lib/s3.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon Simple Storage Service library custom_v2.s3; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/common/endpoint_resolver.dart index e373addba2..013962af1a 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Custom'; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/common/serializers.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/common/serializers.dart index e41080c3cc..4067d0f7e6 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/common/serializers.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -50,43 +50,24 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType.nullable( - _i2.BuiltListMultimap, - [ + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltListMultimap, [ + FullType(String), + FullType.nullable(_i2.BuiltListMultimap, [ FullType(String), FullType(String), - ], - ), - ], - ): _i2.ListMultimapBuilder?> - .new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + ]), + ]): + _i2.ListMultimapBuilder?> + .new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_client.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_client.dart index b5c155b9e4..d0ecb65446 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_client.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.custom_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,11 +28,11 @@ class CustomClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -53,10 +53,7 @@ class CustomClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpChecksumNotRequiredWithMember( @@ -68,10 +65,7 @@ class CustomClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Tests the behavior of @httpChecksum combined with @httpChecksumRequired as described \[here\](https://awslabs.github.io/smithy/2.0/aws/aws-core.html#behavior-with-httpchecksumrequired). @@ -84,10 +78,7 @@ class CustomClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Tests the behavior of @httpChecksum combined with @httpChecksumRequired as described \[here\](https://awslabs.github.io/smithy/2.0/aws/aws-core.html#behavior-with-httpchecksumrequired). @@ -100,10 +91,7 @@ class CustomClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpChecksumRequired( @@ -115,10 +103,7 @@ class CustomClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpChecksumRequiredWithMember( @@ -130,10 +115,7 @@ class CustomClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation nestedCollections( @@ -145,9 +127,6 @@ class CustomClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_server.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_server.dart index a55772d15c..8480696c92 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_server.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/custom_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.custom_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,11 +31,7 @@ abstract class CustomServerBase extends _i1.HttpServerBase { late final Router _router = () { final service = _CustomServer(this); final router = Router(); - router.add( - 'POST', - r'/default', - service.defaultValues, - ); + router.add('POST', r'/default', service.defaultValues); router.add( 'POST', r'/notRequiredWithMember', @@ -46,26 +42,14 @@ abstract class CustomServerBase extends _i1.HttpServerBase { r'/reallyNotRequired', service.httpChecksumReallyNotRequired, ); - router.add( - 'POST', - r'/reallyRequired', - service.httpChecksumReallyRequired, - ); - router.add( - 'POST', - r'/required', - service.httpChecksumRequired, - ); + router.add('POST', r'/reallyRequired', service.httpChecksumReallyRequired); + router.add('POST', r'/required', service.httpChecksumRequired); router.add( 'POST', r'/requiredWithMember', service.httpChecksumRequiredWithMember, ); - router.add( - 'POST', - r'/nestedCollections', - service.nestedCollections, - ); + router.add('POST', r'/nestedCollections', service.nestedCollections); return router; }(); @@ -107,56 +91,78 @@ class _CustomServer extends _i1.HttpServer { final CustomServerBase service; late final _i1.HttpProtocol< - DefaultValuesInput, - DefaultValuesInput, - DefaultValuesOutput, - DefaultValuesOutput> _defaultValuesProtocol = _i2.RestJson1Protocol( + DefaultValuesInput, + DefaultValuesInput, + DefaultValuesOutput, + DefaultValuesOutput + > + _defaultValuesProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i5.Uint8List, - HttpChecksumNotRequiredWithMemberInput, _i1.Unit, _i1.Unit> - _httpChecksumNotRequiredWithMemberProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i5.Uint8List, + HttpChecksumNotRequiredWithMemberInput, + _i1.Unit, + _i1.Unit + > + _httpChecksumNotRequiredWithMemberProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i5.Uint8List, - HttpChecksumReallyNotRequiredInput, - _i1.Unit, - _i1.Unit> _httpChecksumReallyNotRequiredProtocol = _i2.RestJson1Protocol( + _i5.Uint8List, + HttpChecksumReallyNotRequiredInput, + _i1.Unit, + _i1.Unit + > + _httpChecksumReallyNotRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i5.Uint8List, - HttpChecksumReallyRequiredInput, - _i1.Unit, - _i1.Unit> _httpChecksumReallyRequiredProtocol = _i2.RestJson1Protocol( + _i5.Uint8List, + HttpChecksumReallyRequiredInput, + _i1.Unit, + _i1.Unit + > + _httpChecksumReallyRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i5.Uint8List, HttpChecksumRequiredInput, - _i1.Unit, _i1.Unit> _httpChecksumRequiredProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i5.Uint8List, + HttpChecksumRequiredInput, + _i1.Unit, + _i1.Unit + > + _httpChecksumRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i5.Uint8List, - HttpChecksumRequiredWithMemberInput, - _i1.Unit, - _i1.Unit> _httpChecksumRequiredWithMemberProtocol = _i2.RestJson1Protocol( + _i5.Uint8List, + HttpChecksumRequiredWithMemberInput, + _i1.Unit, + _i1.Unit + > + _httpChecksumRequiredWithMemberProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _nestedCollectionsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + NestedCollectionsInput, + NestedCollectionsInput, + _i1.Unit, + _i1.Unit + > + _nestedCollectionsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -167,26 +173,24 @@ class _CustomServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _defaultValuesProtocol.contentType; try { - final payload = (await _defaultValuesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(DefaultValuesInput), - ) as DefaultValuesInput); + final payload = + (await _defaultValuesProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(DefaultValuesInput), + ) + as DefaultValuesInput); final input = DefaultValuesInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.defaultValues( - input, - context, - ); + final output = await service.defaultValues(input, context); const statusCode = 200; final body = await _defaultValuesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DefaultValuesOutput, - [FullType(DefaultValuesOutput)], - ), + specifiedType: const FullType(DefaultValuesOutput, [ + FullType(DefaultValuesOutput), + ]), ); return _i4.Response( statusCode, @@ -194,26 +198,25 @@ class _CustomServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpChecksumNotRequiredWithMember( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpChecksumNotRequiredWithMemberProtocol.contentType; try { - final payload = (await _httpChecksumNotRequiredWithMemberProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + final payload = + (await _httpChecksumNotRequiredWithMemberProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpChecksumNotRequiredWithMemberInput.fromRequest( payload, awsRequest, @@ -227,38 +230,34 @@ class _CustomServer extends _i1.HttpServer { final body = await _httpChecksumNotRequiredWithMemberProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpChecksumReallyNotRequired( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpChecksumReallyNotRequiredProtocol.contentType; try { - final payload = (await _httpChecksumReallyNotRequiredProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + final payload = + (await _httpChecksumReallyNotRequiredProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpChecksumReallyNotRequiredInput.fromRequest( payload, awsRequest, @@ -269,29 +268,24 @@ class _CustomServer extends _i1.HttpServer { context, ); const statusCode = 200; - final body = - await _httpChecksumReallyNotRequiredProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpChecksumReallyNotRequiredProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpChecksumReallyRequired( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -299,37 +293,29 @@ class _CustomServer extends _i1.HttpServer { try { final payload = (await _httpChecksumReallyRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpChecksumReallyRequiredInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpChecksumReallyRequired( - input, - context, - ); + final output = await service.httpChecksumReallyRequired(input, context); const statusCode = 200; - final body = - await _httpChecksumReallyRequiredProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpChecksumReallyRequiredProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -341,25 +327,20 @@ class _CustomServer extends _i1.HttpServer { try { final payload = (await _httpChecksumRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpChecksumRequiredInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpChecksumRequired( - input, - context, - ); + final output = await service.httpChecksumRequired(input, context); const statusCode = 200; final body = await _httpChecksumRequiredProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -367,26 +348,25 @@ class _CustomServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpChecksumRequiredWithMember( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpChecksumRequiredWithMemberProtocol.contentType; try { - final payload = (await _httpChecksumRequiredWithMemberProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + final payload = + (await _httpChecksumRequiredWithMemberProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpChecksumRequiredWithMemberInput.fromRequest( payload, awsRequest, @@ -399,22 +379,16 @@ class _CustomServer extends _i1.HttpServer { const statusCode = 200; final body = await _httpChecksumRequiredWithMemberProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -426,25 +400,20 @@ class _CustomServer extends _i1.HttpServer { try { final payload = (await _nestedCollectionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NestedCollectionsInput), - ) as NestedCollectionsInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(NestedCollectionsInput), + ) + as NestedCollectionsInput); final input = NestedCollectionsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nestedCollections( - input, - context, - ); + final output = await service.nestedCollections(input, context); const statusCode = 200; final body = await _nestedCollectionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -452,10 +421,7 @@ class _CustomServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.dart index 349557bb1c..87ac2406c9 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/checksum_algorithm.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/checksum_algorithm.dart index 0ffbd9622f..b423e618f5 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/checksum_algorithm.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/checksum_algorithm.dart @@ -1,42 +1,22 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.checksum_algorithm; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class ChecksumAlgorithm extends _i1.SmithyEnum { - const ChecksumAlgorithm._( - super.index, - super.name, - super.value, - ); + const ChecksumAlgorithm._(super.index, super.name, super.value); const ChecksumAlgorithm._sdkUnknown(super.value) : super.sdkUnknown(); - static const crc32 = ChecksumAlgorithm._( - 0, - 'CRC32', - 'CRC32', - ); + static const crc32 = ChecksumAlgorithm._(0, 'CRC32', 'CRC32'); - static const crc32C = ChecksumAlgorithm._( - 1, - 'CRC32C', - 'CRC32C', - ); + static const crc32C = ChecksumAlgorithm._(1, 'CRC32C', 'CRC32C'); - static const sha1 = ChecksumAlgorithm._( - 2, - 'SHA1', - 'SHA1', - ); + static const sha1 = ChecksumAlgorithm._(2, 'SHA1', 'SHA1'); - static const sha256 = ChecksumAlgorithm._( - 3, - 'SHA256', - 'SHA256', - ); + static const sha256 = ChecksumAlgorithm._(3, 'SHA256', 'SHA256'); /// All values of [ChecksumAlgorithm]. static const values = [ @@ -52,12 +32,9 @@ class ChecksumAlgorithm extends _i1.SmithyEnum { values: values, sdkUnknown: ChecksumAlgorithm._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.dart index f069c14572..17267aa619 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_enum.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_enum.dart index d254ba078d..5a02892549 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_enum.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.default_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class DefaultEnum extends _i1.SmithyEnum { - const DefaultEnum._( - super.index, - super.name, - super.value, - ); + const DefaultEnum._(super.index, super.name, super.value); const DefaultEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = DefaultEnum._( - 0, - 'A', - 'A', - ); + static const a = DefaultEnum._(0, 'A', 'A'); - static const b = DefaultEnum._( - 1, - 'B', - 'B', - ); + static const b = DefaultEnum._(1, 'B', 'B'); - static const c = DefaultEnum._( - 2, - 'C', - 'C', - ); + static const c = DefaultEnum._(2, 'C', 'C'); /// All values of [DefaultEnum]. static const values = [ @@ -45,12 +29,9 @@ class DefaultEnum extends _i1.SmithyEnum { values: values, sdkUnknown: DefaultEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.dart index d7b4d165eb..d5b7794c5e 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.default_values_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -59,23 +59,25 @@ abstract class DefaultValuesInput nullifiedDefaultEnum: nullifiedDefaultEnum, requiredDefaultList: _i3.BuiltList(requiredDefaultList), optionalDefaultList: _i3.BuiltList(optionalDefaultList), - nullifiedDefaultList: nullifiedDefaultList == null - ? null - : _i3.BuiltList(nullifiedDefaultList), + nullifiedDefaultList: + nullifiedDefaultList == null + ? null + : _i3.BuiltList(nullifiedDefaultList), requiredDefaultMap: _i3.BuiltMap(requiredDefaultMap), optionalDefaultMap: _i3.BuiltMap(optionalDefaultMap), - nullifiedDefaultMap: nullifiedDefaultMap == null - ? null - : _i3.BuiltMap(nullifiedDefaultMap), + nullifiedDefaultMap: + nullifiedDefaultMap == null + ? null + : _i3.BuiltMap(nullifiedDefaultMap), requiredDefaultBool: requiredDefaultBool, optionalDefaultBool: optionalDefaultBool, nullifiedDefaultBool: nullifiedDefaultBool, ); } - factory DefaultValuesInput.build( - [void Function(DefaultValuesInputBuilder) updates]) = - _$DefaultValuesInput; + factory DefaultValuesInput.build([ + void Function(DefaultValuesInputBuilder) updates, + ]) = _$DefaultValuesInput; const DefaultValuesInput._(); @@ -83,11 +85,10 @@ abstract class DefaultValuesInput DefaultValuesInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - DefaultValuesInputRestJson1Serializer() + DefaultValuesInputRestJson1Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -130,101 +131,48 @@ abstract class DefaultValuesInput @override List get props => [ - requiredDefaultInt, - optionalDefaultInt, - nullifiedDefaultInt, - requiredDefaultString, - optionalDefaultString, - nullifiedDefaultString, - requiredDefaultEnum, - optionalDefaultEnum, - nullifiedDefaultEnum, - requiredDefaultList, - optionalDefaultList, - nullifiedDefaultList, - requiredDefaultMap, - optionalDefaultMap, - nullifiedDefaultMap, - requiredDefaultBool, - optionalDefaultBool, - nullifiedDefaultBool, - ]; + requiredDefaultInt, + optionalDefaultInt, + nullifiedDefaultInt, + requiredDefaultString, + optionalDefaultString, + nullifiedDefaultString, + requiredDefaultEnum, + optionalDefaultEnum, + nullifiedDefaultEnum, + requiredDefaultList, + optionalDefaultList, + nullifiedDefaultList, + requiredDefaultMap, + optionalDefaultMap, + nullifiedDefaultMap, + requiredDefaultBool, + optionalDefaultBool, + nullifiedDefaultBool, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('DefaultValuesInput') - ..add( - 'requiredDefaultInt', - requiredDefaultInt, - ) - ..add( - 'optionalDefaultInt', - optionalDefaultInt, - ) - ..add( - 'nullifiedDefaultInt', - nullifiedDefaultInt, - ) - ..add( - 'requiredDefaultString', - requiredDefaultString, - ) - ..add( - 'optionalDefaultString', - optionalDefaultString, - ) - ..add( - 'nullifiedDefaultString', - nullifiedDefaultString, - ) - ..add( - 'requiredDefaultEnum', - requiredDefaultEnum, - ) - ..add( - 'optionalDefaultEnum', - optionalDefaultEnum, - ) - ..add( - 'nullifiedDefaultEnum', - nullifiedDefaultEnum, - ) - ..add( - 'requiredDefaultList', - requiredDefaultList, - ) - ..add( - 'optionalDefaultList', - optionalDefaultList, - ) - ..add( - 'nullifiedDefaultList', - nullifiedDefaultList, - ) - ..add( - 'requiredDefaultMap', - requiredDefaultMap, - ) - ..add( - 'optionalDefaultMap', - optionalDefaultMap, - ) - ..add( - 'nullifiedDefaultMap', - nullifiedDefaultMap, - ) - ..add( - 'requiredDefaultBool', - requiredDefaultBool, - ) - ..add( - 'optionalDefaultBool', - optionalDefaultBool, - ) - ..add( - 'nullifiedDefaultBool', - nullifiedDefaultBool, - ); + final helper = + newBuiltValueToStringHelper('DefaultValuesInput') + ..add('requiredDefaultInt', requiredDefaultInt) + ..add('optionalDefaultInt', optionalDefaultInt) + ..add('nullifiedDefaultInt', nullifiedDefaultInt) + ..add('requiredDefaultString', requiredDefaultString) + ..add('optionalDefaultString', optionalDefaultString) + ..add('nullifiedDefaultString', nullifiedDefaultString) + ..add('requiredDefaultEnum', requiredDefaultEnum) + ..add('optionalDefaultEnum', optionalDefaultEnum) + ..add('nullifiedDefaultEnum', nullifiedDefaultEnum) + ..add('requiredDefaultList', requiredDefaultList) + ..add('optionalDefaultList', optionalDefaultList) + ..add('nullifiedDefaultList', nullifiedDefaultList) + ..add('requiredDefaultMap', requiredDefaultMap) + ..add('optionalDefaultMap', optionalDefaultMap) + ..add('nullifiedDefaultMap', nullifiedDefaultMap) + ..add('requiredDefaultBool', requiredDefaultBool) + ..add('optionalDefaultBool', optionalDefaultBool) + ..add('nullifiedDefaultBool', nullifiedDefaultBool); return helper.toString(); } } @@ -234,18 +182,12 @@ class DefaultValuesInputRestJson1Serializer const DefaultValuesInputRestJson1Serializer() : super('DefaultValuesInput'); @override - Iterable get types => const [ - DefaultValuesInput, - _$DefaultValuesInput, - ]; + Iterable get types => const [DefaultValuesInput, _$DefaultValuesInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DefaultValuesInput deserialize( @@ -264,122 +206,152 @@ class DefaultValuesInputRestJson1Serializer } switch (key) { case 'nullifiedDefaultBool': - result.nullifiedDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.nullifiedDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'nullifiedDefaultEnum': - result.nullifiedDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.nullifiedDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'nullifiedDefaultInt': - result.nullifiedDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.nullifiedDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'nullifiedDefaultList': - result.nullifiedDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.nullifiedDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'nullifiedDefaultMap': - result.nullifiedDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.nullifiedDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'nullifiedDefaultString': - result.nullifiedDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullifiedDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'optionalDefaultBool': - result.optionalDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.optionalDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'optionalDefaultEnum': - result.optionalDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.optionalDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'optionalDefaultInt': - result.optionalDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.optionalDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'optionalDefaultList': - result.optionalDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.optionalDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'optionalDefaultMap': - result.optionalDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.optionalDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'optionalDefaultString': - result.optionalDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optionalDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'requiredDefaultBool': - result.requiredDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.requiredDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'requiredDefaultEnum': - result.requiredDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.requiredDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'requiredDefaultInt': - result.requiredDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.requiredDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'requiredDefaultList': - result.requiredDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.requiredDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'requiredDefaultMap': - result.requiredDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.requiredDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'requiredDefaultString': - result.requiredDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requiredDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -411,7 +383,7 @@ class DefaultValuesInputRestJson1Serializer :requiredDefaultInt, :requiredDefaultList, :requiredDefaultMap, - :requiredDefaultString + :requiredDefaultString, ) = object; result$.addAll([ 'optionalDefaultBool', @@ -432,21 +404,15 @@ class DefaultValuesInputRestJson1Serializer 'optionalDefaultList', serializers.serialize( optionalDefaultList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), 'optionalDefaultMap', serializers.serialize( optionalDefaultMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), ), 'optionalDefaultString', serializers.serialize( @@ -471,21 +437,15 @@ class DefaultValuesInputRestJson1Serializer 'requiredDefaultList', serializers.serialize( requiredDefaultList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), 'requiredDefaultMap', serializers.serialize( requiredDefaultMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), ), 'requiredDefaultString', serializers.serialize( @@ -496,59 +456,65 @@ class DefaultValuesInputRestJson1Serializer if (nullifiedDefaultBool != null) { result$ ..add('nullifiedDefaultBool') - ..add(serializers.serialize( - nullifiedDefaultBool, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + nullifiedDefaultBool, + specifiedType: const FullType(bool), + ), + ); } if (nullifiedDefaultEnum != null) { result$ ..add('nullifiedDefaultEnum') - ..add(serializers.serialize( - nullifiedDefaultEnum, - specifiedType: const FullType(DefaultEnum), - )); + ..add( + serializers.serialize( + nullifiedDefaultEnum, + specifiedType: const FullType(DefaultEnum), + ), + ); } if (nullifiedDefaultInt != null) { result$ ..add('nullifiedDefaultInt') - ..add(serializers.serialize( - nullifiedDefaultInt, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + nullifiedDefaultInt, + specifiedType: const FullType(int), + ), + ); } if (nullifiedDefaultList != null) { result$ ..add('nullifiedDefaultList') - ..add(serializers.serialize( - nullifiedDefaultList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + nullifiedDefaultList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (nullifiedDefaultMap != null) { result$ ..add('nullifiedDefaultMap') - ..add(serializers.serialize( - nullifiedDefaultMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + nullifiedDefaultMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (nullifiedDefaultString != null) { result$ ..add('nullifiedDefaultString') - ..add(serializers.serialize( - nullifiedDefaultString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nullifiedDefaultString, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.g.dart index b86e7123e6..528bae3d55 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_input.g.dart @@ -44,60 +44,96 @@ class _$DefaultValuesInput extends DefaultValuesInput { @override final bool? nullifiedDefaultBool; - factory _$DefaultValuesInput( - [void Function(DefaultValuesInputBuilder)? updates]) => - (new DefaultValuesInputBuilder()..update(updates))._build(); - - _$DefaultValuesInput._( - {required this.requiredDefaultInt, - required this.optionalDefaultInt, - this.nullifiedDefaultInt, - required this.requiredDefaultString, - required this.optionalDefaultString, - this.nullifiedDefaultString, - required this.requiredDefaultEnum, - required this.optionalDefaultEnum, - this.nullifiedDefaultEnum, - required this.requiredDefaultList, - required this.optionalDefaultList, - this.nullifiedDefaultList, - required this.requiredDefaultMap, - required this.optionalDefaultMap, - this.nullifiedDefaultMap, - required this.requiredDefaultBool, - required this.optionalDefaultBool, - this.nullifiedDefaultBool}) - : super._() { + factory _$DefaultValuesInput([ + void Function(DefaultValuesInputBuilder)? updates, + ]) => (new DefaultValuesInputBuilder()..update(updates))._build(); + + _$DefaultValuesInput._({ + required this.requiredDefaultInt, + required this.optionalDefaultInt, + this.nullifiedDefaultInt, + required this.requiredDefaultString, + required this.optionalDefaultString, + this.nullifiedDefaultString, + required this.requiredDefaultEnum, + required this.optionalDefaultEnum, + this.nullifiedDefaultEnum, + required this.requiredDefaultList, + required this.optionalDefaultList, + this.nullifiedDefaultList, + required this.requiredDefaultMap, + required this.optionalDefaultMap, + this.nullifiedDefaultMap, + required this.requiredDefaultBool, + required this.optionalDefaultBool, + this.nullifiedDefaultBool, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - requiredDefaultInt, r'DefaultValuesInput', 'requiredDefaultInt'); + requiredDefaultInt, + r'DefaultValuesInput', + 'requiredDefaultInt', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultInt, r'DefaultValuesInput', 'optionalDefaultInt'); + optionalDefaultInt, + r'DefaultValuesInput', + 'optionalDefaultInt', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultString, r'DefaultValuesInput', 'requiredDefaultString'); + requiredDefaultString, + r'DefaultValuesInput', + 'requiredDefaultString', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultString, r'DefaultValuesInput', 'optionalDefaultString'); + optionalDefaultString, + r'DefaultValuesInput', + 'optionalDefaultString', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultEnum, r'DefaultValuesInput', 'requiredDefaultEnum'); + requiredDefaultEnum, + r'DefaultValuesInput', + 'requiredDefaultEnum', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultEnum, r'DefaultValuesInput', 'optionalDefaultEnum'); + optionalDefaultEnum, + r'DefaultValuesInput', + 'optionalDefaultEnum', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultList, r'DefaultValuesInput', 'requiredDefaultList'); + requiredDefaultList, + r'DefaultValuesInput', + 'requiredDefaultList', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultList, r'DefaultValuesInput', 'optionalDefaultList'); + optionalDefaultList, + r'DefaultValuesInput', + 'optionalDefaultList', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultMap, r'DefaultValuesInput', 'requiredDefaultMap'); + requiredDefaultMap, + r'DefaultValuesInput', + 'requiredDefaultMap', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultMap, r'DefaultValuesInput', 'optionalDefaultMap'); + optionalDefaultMap, + r'DefaultValuesInput', + 'optionalDefaultMap', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultBool, r'DefaultValuesInput', 'requiredDefaultBool'); + requiredDefaultBool, + r'DefaultValuesInput', + 'requiredDefaultBool', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultBool, r'DefaultValuesInput', 'optionalDefaultBool'); + optionalDefaultBool, + r'DefaultValuesInput', + 'optionalDefaultBool', + ); } @override DefaultValuesInput rebuild( - void Function(DefaultValuesInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DefaultValuesInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DefaultValuesInputBuilder toBuilder() => @@ -236,8 +272,8 @@ class DefaultValuesInputBuilder _i3.MapBuilder get nullifiedDefaultMap => _$this._nullifiedDefaultMap ??= new _i3.MapBuilder(); set nullifiedDefaultMap( - _i3.MapBuilder? nullifiedDefaultMap) => - _$this._nullifiedDefaultMap = nullifiedDefaultMap; + _i3.MapBuilder? nullifiedDefaultMap, + ) => _$this._nullifiedDefaultMap = nullifiedDefaultMap; bool? _requiredDefaultBool; bool? get requiredDefaultBool => _$this._requiredDefaultBool; @@ -301,34 +337,60 @@ class DefaultValuesInputBuilder _$DefaultValuesInput _build() { _$DefaultValuesInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$DefaultValuesInput._( - requiredDefaultInt: BuiltValueNullFieldError.checkNotNull( - requiredDefaultInt, r'DefaultValuesInput', 'requiredDefaultInt'), - optionalDefaultInt: BuiltValueNullFieldError.checkNotNull( - optionalDefaultInt, r'DefaultValuesInput', 'optionalDefaultInt'), - nullifiedDefaultInt: nullifiedDefaultInt, - requiredDefaultString: BuiltValueNullFieldError.checkNotNull( - requiredDefaultString, r'DefaultValuesInput', 'requiredDefaultString'), - optionalDefaultString: BuiltValueNullFieldError.checkNotNull( - optionalDefaultString, r'DefaultValuesInput', 'optionalDefaultString'), - nullifiedDefaultString: nullifiedDefaultString, - requiredDefaultEnum: BuiltValueNullFieldError.checkNotNull( - requiredDefaultEnum, r'DefaultValuesInput', 'requiredDefaultEnum'), - optionalDefaultEnum: BuiltValueNullFieldError.checkNotNull( - optionalDefaultEnum, r'DefaultValuesInput', 'optionalDefaultEnum'), - nullifiedDefaultEnum: nullifiedDefaultEnum, - requiredDefaultList: requiredDefaultList.build(), - optionalDefaultList: optionalDefaultList.build(), - nullifiedDefaultList: _nullifiedDefaultList?.build(), - requiredDefaultMap: requiredDefaultMap.build(), - optionalDefaultMap: optionalDefaultMap.build(), - nullifiedDefaultMap: _nullifiedDefaultMap?.build(), - requiredDefaultBool: BuiltValueNullFieldError.checkNotNull( - requiredDefaultBool, r'DefaultValuesInput', 'requiredDefaultBool'), - optionalDefaultBool: - BuiltValueNullFieldError.checkNotNull(optionalDefaultBool, r'DefaultValuesInput', 'optionalDefaultBool'), - nullifiedDefaultBool: nullifiedDefaultBool); + requiredDefaultInt: BuiltValueNullFieldError.checkNotNull( + requiredDefaultInt, + r'DefaultValuesInput', + 'requiredDefaultInt', + ), + optionalDefaultInt: BuiltValueNullFieldError.checkNotNull( + optionalDefaultInt, + r'DefaultValuesInput', + 'optionalDefaultInt', + ), + nullifiedDefaultInt: nullifiedDefaultInt, + requiredDefaultString: BuiltValueNullFieldError.checkNotNull( + requiredDefaultString, + r'DefaultValuesInput', + 'requiredDefaultString', + ), + optionalDefaultString: BuiltValueNullFieldError.checkNotNull( + optionalDefaultString, + r'DefaultValuesInput', + 'optionalDefaultString', + ), + nullifiedDefaultString: nullifiedDefaultString, + requiredDefaultEnum: BuiltValueNullFieldError.checkNotNull( + requiredDefaultEnum, + r'DefaultValuesInput', + 'requiredDefaultEnum', + ), + optionalDefaultEnum: BuiltValueNullFieldError.checkNotNull( + optionalDefaultEnum, + r'DefaultValuesInput', + 'optionalDefaultEnum', + ), + nullifiedDefaultEnum: nullifiedDefaultEnum, + requiredDefaultList: requiredDefaultList.build(), + optionalDefaultList: optionalDefaultList.build(), + nullifiedDefaultList: _nullifiedDefaultList?.build(), + requiredDefaultMap: requiredDefaultMap.build(), + optionalDefaultMap: optionalDefaultMap.build(), + nullifiedDefaultMap: _nullifiedDefaultMap?.build(), + requiredDefaultBool: BuiltValueNullFieldError.checkNotNull( + requiredDefaultBool, + r'DefaultValuesInput', + 'requiredDefaultBool', + ), + optionalDefaultBool: BuiltValueNullFieldError.checkNotNull( + optionalDefaultBool, + r'DefaultValuesInput', + 'optionalDefaultBool', + ), + nullifiedDefaultBool: nullifiedDefaultBool, + ); } catch (_) { late String _$failedField; try { @@ -346,7 +408,10 @@ class DefaultValuesInputBuilder _nullifiedDefaultMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'DefaultValuesInput', _$failedField, e.toString()); + r'DefaultValuesInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.dart index 7b74d5bebe..2728ccb099 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.default_values_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -59,23 +59,25 @@ abstract class DefaultValuesOutput nullifiedDefaultEnum: nullifiedDefaultEnum, requiredDefaultList: _i2.BuiltList(requiredDefaultList), optionalDefaultList: _i2.BuiltList(optionalDefaultList), - nullifiedDefaultList: nullifiedDefaultList == null - ? null - : _i2.BuiltList(nullifiedDefaultList), + nullifiedDefaultList: + nullifiedDefaultList == null + ? null + : _i2.BuiltList(nullifiedDefaultList), requiredDefaultMap: _i2.BuiltMap(requiredDefaultMap), optionalDefaultMap: _i2.BuiltMap(optionalDefaultMap), - nullifiedDefaultMap: nullifiedDefaultMap == null - ? null - : _i2.BuiltMap(nullifiedDefaultMap), + nullifiedDefaultMap: + nullifiedDefaultMap == null + ? null + : _i2.BuiltMap(nullifiedDefaultMap), requiredDefaultBool: requiredDefaultBool, optionalDefaultBool: optionalDefaultBool, nullifiedDefaultBool: nullifiedDefaultBool, ); } - factory DefaultValuesOutput.build( - [void Function(DefaultValuesOutputBuilder) updates]) = - _$DefaultValuesOutput; + factory DefaultValuesOutput.build([ + void Function(DefaultValuesOutputBuilder) updates, + ]) = _$DefaultValuesOutput; const DefaultValuesOutput._(); @@ -83,11 +85,10 @@ abstract class DefaultValuesOutput factory DefaultValuesOutput.fromResponse( DefaultValuesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - DefaultValuesOutputRestJson1Serializer() + DefaultValuesOutputRestJson1Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -127,101 +128,48 @@ abstract class DefaultValuesOutput bool? get nullifiedDefaultBool; @override List get props => [ - requiredDefaultInt, - optionalDefaultInt, - nullifiedDefaultInt, - requiredDefaultString, - optionalDefaultString, - nullifiedDefaultString, - requiredDefaultEnum, - optionalDefaultEnum, - nullifiedDefaultEnum, - requiredDefaultList, - optionalDefaultList, - nullifiedDefaultList, - requiredDefaultMap, - optionalDefaultMap, - nullifiedDefaultMap, - requiredDefaultBool, - optionalDefaultBool, - nullifiedDefaultBool, - ]; + requiredDefaultInt, + optionalDefaultInt, + nullifiedDefaultInt, + requiredDefaultString, + optionalDefaultString, + nullifiedDefaultString, + requiredDefaultEnum, + optionalDefaultEnum, + nullifiedDefaultEnum, + requiredDefaultList, + optionalDefaultList, + nullifiedDefaultList, + requiredDefaultMap, + optionalDefaultMap, + nullifiedDefaultMap, + requiredDefaultBool, + optionalDefaultBool, + nullifiedDefaultBool, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('DefaultValuesOutput') - ..add( - 'requiredDefaultInt', - requiredDefaultInt, - ) - ..add( - 'optionalDefaultInt', - optionalDefaultInt, - ) - ..add( - 'nullifiedDefaultInt', - nullifiedDefaultInt, - ) - ..add( - 'requiredDefaultString', - requiredDefaultString, - ) - ..add( - 'optionalDefaultString', - optionalDefaultString, - ) - ..add( - 'nullifiedDefaultString', - nullifiedDefaultString, - ) - ..add( - 'requiredDefaultEnum', - requiredDefaultEnum, - ) - ..add( - 'optionalDefaultEnum', - optionalDefaultEnum, - ) - ..add( - 'nullifiedDefaultEnum', - nullifiedDefaultEnum, - ) - ..add( - 'requiredDefaultList', - requiredDefaultList, - ) - ..add( - 'optionalDefaultList', - optionalDefaultList, - ) - ..add( - 'nullifiedDefaultList', - nullifiedDefaultList, - ) - ..add( - 'requiredDefaultMap', - requiredDefaultMap, - ) - ..add( - 'optionalDefaultMap', - optionalDefaultMap, - ) - ..add( - 'nullifiedDefaultMap', - nullifiedDefaultMap, - ) - ..add( - 'requiredDefaultBool', - requiredDefaultBool, - ) - ..add( - 'optionalDefaultBool', - optionalDefaultBool, - ) - ..add( - 'nullifiedDefaultBool', - nullifiedDefaultBool, - ); + final helper = + newBuiltValueToStringHelper('DefaultValuesOutput') + ..add('requiredDefaultInt', requiredDefaultInt) + ..add('optionalDefaultInt', optionalDefaultInt) + ..add('nullifiedDefaultInt', nullifiedDefaultInt) + ..add('requiredDefaultString', requiredDefaultString) + ..add('optionalDefaultString', optionalDefaultString) + ..add('nullifiedDefaultString', nullifiedDefaultString) + ..add('requiredDefaultEnum', requiredDefaultEnum) + ..add('optionalDefaultEnum', optionalDefaultEnum) + ..add('nullifiedDefaultEnum', nullifiedDefaultEnum) + ..add('requiredDefaultList', requiredDefaultList) + ..add('optionalDefaultList', optionalDefaultList) + ..add('nullifiedDefaultList', nullifiedDefaultList) + ..add('requiredDefaultMap', requiredDefaultMap) + ..add('optionalDefaultMap', optionalDefaultMap) + ..add('nullifiedDefaultMap', nullifiedDefaultMap) + ..add('requiredDefaultBool', requiredDefaultBool) + ..add('optionalDefaultBool', optionalDefaultBool) + ..add('nullifiedDefaultBool', nullifiedDefaultBool); return helper.toString(); } } @@ -232,17 +180,14 @@ class DefaultValuesOutputRestJson1Serializer @override Iterable get types => const [ - DefaultValuesOutput, - _$DefaultValuesOutput, - ]; + DefaultValuesOutput, + _$DefaultValuesOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DefaultValuesOutput deserialize( @@ -261,122 +206,152 @@ class DefaultValuesOutputRestJson1Serializer } switch (key) { case 'nullifiedDefaultBool': - result.nullifiedDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.nullifiedDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'nullifiedDefaultEnum': - result.nullifiedDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.nullifiedDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'nullifiedDefaultInt': - result.nullifiedDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.nullifiedDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'nullifiedDefaultList': - result.nullifiedDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.nullifiedDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'nullifiedDefaultMap': - result.nullifiedDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.nullifiedDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); case 'nullifiedDefaultString': - result.nullifiedDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullifiedDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'optionalDefaultBool': - result.optionalDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.optionalDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'optionalDefaultEnum': - result.optionalDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.optionalDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'optionalDefaultInt': - result.optionalDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.optionalDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'optionalDefaultList': - result.optionalDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.optionalDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'optionalDefaultMap': - result.optionalDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.optionalDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); case 'optionalDefaultString': - result.optionalDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optionalDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'requiredDefaultBool': - result.requiredDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.requiredDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'requiredDefaultEnum': - result.requiredDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.requiredDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'requiredDefaultInt': - result.requiredDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.requiredDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'requiredDefaultList': - result.requiredDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.requiredDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'requiredDefaultMap': - result.requiredDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.requiredDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); case 'requiredDefaultString': - result.requiredDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requiredDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -408,7 +383,7 @@ class DefaultValuesOutputRestJson1Serializer :requiredDefaultInt, :requiredDefaultList, :requiredDefaultMap, - :requiredDefaultString + :requiredDefaultString, ) = object; result$.addAll([ 'optionalDefaultBool', @@ -429,21 +404,15 @@ class DefaultValuesOutputRestJson1Serializer 'optionalDefaultList', serializers.serialize( optionalDefaultList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), 'optionalDefaultMap', serializers.serialize( optionalDefaultMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), ), 'optionalDefaultString', serializers.serialize( @@ -468,21 +437,15 @@ class DefaultValuesOutputRestJson1Serializer 'requiredDefaultList', serializers.serialize( requiredDefaultList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), 'requiredDefaultMap', serializers.serialize( requiredDefaultMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), ), 'requiredDefaultString', serializers.serialize( @@ -493,59 +456,65 @@ class DefaultValuesOutputRestJson1Serializer if (nullifiedDefaultBool != null) { result$ ..add('nullifiedDefaultBool') - ..add(serializers.serialize( - nullifiedDefaultBool, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + nullifiedDefaultBool, + specifiedType: const FullType(bool), + ), + ); } if (nullifiedDefaultEnum != null) { result$ ..add('nullifiedDefaultEnum') - ..add(serializers.serialize( - nullifiedDefaultEnum, - specifiedType: const FullType(DefaultEnum), - )); + ..add( + serializers.serialize( + nullifiedDefaultEnum, + specifiedType: const FullType(DefaultEnum), + ), + ); } if (nullifiedDefaultInt != null) { result$ ..add('nullifiedDefaultInt') - ..add(serializers.serialize( - nullifiedDefaultInt, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + nullifiedDefaultInt, + specifiedType: const FullType(int), + ), + ); } if (nullifiedDefaultList != null) { result$ ..add('nullifiedDefaultList') - ..add(serializers.serialize( - nullifiedDefaultList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + nullifiedDefaultList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (nullifiedDefaultMap != null) { result$ ..add('nullifiedDefaultMap') - ..add(serializers.serialize( - nullifiedDefaultMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + nullifiedDefaultMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (nullifiedDefaultString != null) { result$ ..add('nullifiedDefaultString') - ..add(serializers.serialize( - nullifiedDefaultString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nullifiedDefaultString, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.g.dart index 151eb90a12..c29e9b2df9 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/default_values_output.g.dart @@ -44,60 +44,96 @@ class _$DefaultValuesOutput extends DefaultValuesOutput { @override final bool? nullifiedDefaultBool; - factory _$DefaultValuesOutput( - [void Function(DefaultValuesOutputBuilder)? updates]) => - (new DefaultValuesOutputBuilder()..update(updates))._build(); - - _$DefaultValuesOutput._( - {required this.requiredDefaultInt, - required this.optionalDefaultInt, - this.nullifiedDefaultInt, - required this.requiredDefaultString, - required this.optionalDefaultString, - this.nullifiedDefaultString, - required this.requiredDefaultEnum, - required this.optionalDefaultEnum, - this.nullifiedDefaultEnum, - required this.requiredDefaultList, - required this.optionalDefaultList, - this.nullifiedDefaultList, - required this.requiredDefaultMap, - required this.optionalDefaultMap, - this.nullifiedDefaultMap, - required this.requiredDefaultBool, - required this.optionalDefaultBool, - this.nullifiedDefaultBool}) - : super._() { + factory _$DefaultValuesOutput([ + void Function(DefaultValuesOutputBuilder)? updates, + ]) => (new DefaultValuesOutputBuilder()..update(updates))._build(); + + _$DefaultValuesOutput._({ + required this.requiredDefaultInt, + required this.optionalDefaultInt, + this.nullifiedDefaultInt, + required this.requiredDefaultString, + required this.optionalDefaultString, + this.nullifiedDefaultString, + required this.requiredDefaultEnum, + required this.optionalDefaultEnum, + this.nullifiedDefaultEnum, + required this.requiredDefaultList, + required this.optionalDefaultList, + this.nullifiedDefaultList, + required this.requiredDefaultMap, + required this.optionalDefaultMap, + this.nullifiedDefaultMap, + required this.requiredDefaultBool, + required this.optionalDefaultBool, + this.nullifiedDefaultBool, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - requiredDefaultInt, r'DefaultValuesOutput', 'requiredDefaultInt'); + requiredDefaultInt, + r'DefaultValuesOutput', + 'requiredDefaultInt', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultInt, r'DefaultValuesOutput', 'optionalDefaultInt'); + optionalDefaultInt, + r'DefaultValuesOutput', + 'optionalDefaultInt', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultString, r'DefaultValuesOutput', 'requiredDefaultString'); + requiredDefaultString, + r'DefaultValuesOutput', + 'requiredDefaultString', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultString, r'DefaultValuesOutput', 'optionalDefaultString'); + optionalDefaultString, + r'DefaultValuesOutput', + 'optionalDefaultString', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultEnum, r'DefaultValuesOutput', 'requiredDefaultEnum'); + requiredDefaultEnum, + r'DefaultValuesOutput', + 'requiredDefaultEnum', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultEnum, r'DefaultValuesOutput', 'optionalDefaultEnum'); + optionalDefaultEnum, + r'DefaultValuesOutput', + 'optionalDefaultEnum', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultList, r'DefaultValuesOutput', 'requiredDefaultList'); + requiredDefaultList, + r'DefaultValuesOutput', + 'requiredDefaultList', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultList, r'DefaultValuesOutput', 'optionalDefaultList'); + optionalDefaultList, + r'DefaultValuesOutput', + 'optionalDefaultList', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultMap, r'DefaultValuesOutput', 'requiredDefaultMap'); + requiredDefaultMap, + r'DefaultValuesOutput', + 'requiredDefaultMap', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultMap, r'DefaultValuesOutput', 'optionalDefaultMap'); + optionalDefaultMap, + r'DefaultValuesOutput', + 'optionalDefaultMap', + ); BuiltValueNullFieldError.checkNotNull( - requiredDefaultBool, r'DefaultValuesOutput', 'requiredDefaultBool'); + requiredDefaultBool, + r'DefaultValuesOutput', + 'requiredDefaultBool', + ); BuiltValueNullFieldError.checkNotNull( - optionalDefaultBool, r'DefaultValuesOutput', 'optionalDefaultBool'); + optionalDefaultBool, + r'DefaultValuesOutput', + 'optionalDefaultBool', + ); } @override DefaultValuesOutput rebuild( - void Function(DefaultValuesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DefaultValuesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DefaultValuesOutputBuilder toBuilder() => @@ -236,8 +272,8 @@ class DefaultValuesOutputBuilder _i2.MapBuilder get nullifiedDefaultMap => _$this._nullifiedDefaultMap ??= new _i2.MapBuilder(); set nullifiedDefaultMap( - _i2.MapBuilder? nullifiedDefaultMap) => - _$this._nullifiedDefaultMap = nullifiedDefaultMap; + _i2.MapBuilder? nullifiedDefaultMap, + ) => _$this._nullifiedDefaultMap = nullifiedDefaultMap; bool? _requiredDefaultBool; bool? get requiredDefaultBool => _$this._requiredDefaultBool; @@ -301,34 +337,60 @@ class DefaultValuesOutputBuilder _$DefaultValuesOutput _build() { _$DefaultValuesOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$DefaultValuesOutput._( - requiredDefaultInt: BuiltValueNullFieldError.checkNotNull( - requiredDefaultInt, r'DefaultValuesOutput', 'requiredDefaultInt'), - optionalDefaultInt: BuiltValueNullFieldError.checkNotNull( - optionalDefaultInt, r'DefaultValuesOutput', 'optionalDefaultInt'), - nullifiedDefaultInt: nullifiedDefaultInt, - requiredDefaultString: BuiltValueNullFieldError.checkNotNull( - requiredDefaultString, r'DefaultValuesOutput', 'requiredDefaultString'), - optionalDefaultString: BuiltValueNullFieldError.checkNotNull( - optionalDefaultString, r'DefaultValuesOutput', 'optionalDefaultString'), - nullifiedDefaultString: nullifiedDefaultString, - requiredDefaultEnum: BuiltValueNullFieldError.checkNotNull( - requiredDefaultEnum, r'DefaultValuesOutput', 'requiredDefaultEnum'), - optionalDefaultEnum: BuiltValueNullFieldError.checkNotNull( - optionalDefaultEnum, r'DefaultValuesOutput', 'optionalDefaultEnum'), - nullifiedDefaultEnum: nullifiedDefaultEnum, - requiredDefaultList: requiredDefaultList.build(), - optionalDefaultList: optionalDefaultList.build(), - nullifiedDefaultList: _nullifiedDefaultList?.build(), - requiredDefaultMap: requiredDefaultMap.build(), - optionalDefaultMap: optionalDefaultMap.build(), - nullifiedDefaultMap: _nullifiedDefaultMap?.build(), - requiredDefaultBool: BuiltValueNullFieldError.checkNotNull( - requiredDefaultBool, r'DefaultValuesOutput', 'requiredDefaultBool'), - optionalDefaultBool: - BuiltValueNullFieldError.checkNotNull(optionalDefaultBool, r'DefaultValuesOutput', 'optionalDefaultBool'), - nullifiedDefaultBool: nullifiedDefaultBool); + requiredDefaultInt: BuiltValueNullFieldError.checkNotNull( + requiredDefaultInt, + r'DefaultValuesOutput', + 'requiredDefaultInt', + ), + optionalDefaultInt: BuiltValueNullFieldError.checkNotNull( + optionalDefaultInt, + r'DefaultValuesOutput', + 'optionalDefaultInt', + ), + nullifiedDefaultInt: nullifiedDefaultInt, + requiredDefaultString: BuiltValueNullFieldError.checkNotNull( + requiredDefaultString, + r'DefaultValuesOutput', + 'requiredDefaultString', + ), + optionalDefaultString: BuiltValueNullFieldError.checkNotNull( + optionalDefaultString, + r'DefaultValuesOutput', + 'optionalDefaultString', + ), + nullifiedDefaultString: nullifiedDefaultString, + requiredDefaultEnum: BuiltValueNullFieldError.checkNotNull( + requiredDefaultEnum, + r'DefaultValuesOutput', + 'requiredDefaultEnum', + ), + optionalDefaultEnum: BuiltValueNullFieldError.checkNotNull( + optionalDefaultEnum, + r'DefaultValuesOutput', + 'optionalDefaultEnum', + ), + nullifiedDefaultEnum: nullifiedDefaultEnum, + requiredDefaultList: requiredDefaultList.build(), + optionalDefaultList: optionalDefaultList.build(), + nullifiedDefaultList: _nullifiedDefaultList?.build(), + requiredDefaultMap: requiredDefaultMap.build(), + optionalDefaultMap: optionalDefaultMap.build(), + nullifiedDefaultMap: _nullifiedDefaultMap?.build(), + requiredDefaultBool: BuiltValueNullFieldError.checkNotNull( + requiredDefaultBool, + r'DefaultValuesOutput', + 'requiredDefaultBool', + ), + optionalDefaultBool: BuiltValueNullFieldError.checkNotNull( + optionalDefaultBool, + r'DefaultValuesOutput', + 'optionalDefaultBool', + ), + nullifiedDefaultBool: nullifiedDefaultBool, + ); } catch (_) { late String _$failedField; try { @@ -346,7 +408,10 @@ class DefaultValuesOutputBuilder _nullifiedDefaultMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'DefaultValuesOutput', _$failedField, e.toString()); + r'DefaultValuesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.dart index 1dd3ffb6cc..50a383c530 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.dart index 50fa54e09a..508d23e512 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.dart index 59d674109e..6693ffaca0 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.http_checksum_not_required_with_member_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class HttpChecksumNotRequiredWithMemberInput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpChecksumNotRequiredWithMemberInput, + HttpChecksumNotRequiredWithMemberInputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpChecksumNotRequiredWithMemberInput({ ChecksumAlgorithm? checksumAlgorithm, @@ -31,9 +33,9 @@ abstract class HttpChecksumNotRequiredWithMemberInput ); } - factory HttpChecksumNotRequiredWithMemberInput.build( - [void Function(HttpChecksumNotRequiredWithMemberInputBuilder) - updates]) = _$HttpChecksumNotRequiredWithMemberInput; + factory HttpChecksumNotRequiredWithMemberInput.build([ + void Function(HttpChecksumNotRequiredWithMemberInputBuilder) updates, + ]) = _$HttpChecksumNotRequiredWithMemberInput; const HttpChecksumNotRequiredWithMemberInput._(); @@ -41,17 +43,17 @@ abstract class HttpChecksumNotRequiredWithMemberInput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpChecksumNotRequiredWithMemberInput.build((b) { - b.content = payload; - if (request.headers['x-amz-request-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-request-algorithm']!); - } - }); + }) => HttpChecksumNotRequiredWithMemberInput.build((b) { + b.content = payload; + if (request.headers['x-amz-request-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-request-algorithm']!, + ); + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpChecksumNotRequiredWithMemberInputRestJson1Serializer() + HttpChecksumNotRequiredWithMemberInputRestJson1Serializer(), ]; ChecksumAlgorithm? get checksumAlgorithm; @@ -60,23 +62,14 @@ abstract class HttpChecksumNotRequiredWithMemberInput _i2.Uint8List? getPayload() => content; @override - List get props => [ - checksumAlgorithm, - content, - ]; + List get props => [checksumAlgorithm, content]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpChecksumNotRequiredWithMemberInput') - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'content', - content, - ); + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('content', content); return helper.toString(); } } @@ -84,21 +77,18 @@ abstract class HttpChecksumNotRequiredWithMemberInput class HttpChecksumNotRequiredWithMemberInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpChecksumNotRequiredWithMemberInputRestJson1Serializer() - : super('HttpChecksumNotRequiredWithMemberInput'); + : super('HttpChecksumNotRequiredWithMemberInput'); @override Iterable get types => const [ - HttpChecksumNotRequiredWithMemberInput, - _$HttpChecksumNotRequiredWithMemberInput, - ]; + HttpChecksumNotRequiredWithMemberInput, + _$HttpChecksumNotRequiredWithMemberInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -107,9 +97,10 @@ class HttpChecksumNotRequiredWithMemberInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.g.dart index 12dcdb59cb..a454287973 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_not_required_with_member_input.g.dart @@ -13,21 +13,21 @@ class _$HttpChecksumNotRequiredWithMemberInput @override final _i2.Uint8List? content; - factory _$HttpChecksumNotRequiredWithMemberInput( - [void Function(HttpChecksumNotRequiredWithMemberInputBuilder)? - updates]) => + factory _$HttpChecksumNotRequiredWithMemberInput([ + void Function(HttpChecksumNotRequiredWithMemberInputBuilder)? updates, + ]) => (new HttpChecksumNotRequiredWithMemberInputBuilder()..update(updates)) ._build(); - _$HttpChecksumNotRequiredWithMemberInput._( - {this.checksumAlgorithm, this.content}) - : super._(); + _$HttpChecksumNotRequiredWithMemberInput._({ + this.checksumAlgorithm, + this.content, + }) : super._(); @override HttpChecksumNotRequiredWithMemberInput rebuild( - void Function(HttpChecksumNotRequiredWithMemberInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpChecksumNotRequiredWithMemberInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpChecksumNotRequiredWithMemberInputBuilder toBuilder() => @@ -53,8 +53,10 @@ class _$HttpChecksumNotRequiredWithMemberInput class HttpChecksumNotRequiredWithMemberInputBuilder implements - Builder { + Builder< + HttpChecksumNotRequiredWithMemberInput, + HttpChecksumNotRequiredWithMemberInputBuilder + > { _$HttpChecksumNotRequiredWithMemberInput? _$v; ChecksumAlgorithm? _checksumAlgorithm; @@ -86,7 +88,8 @@ class HttpChecksumNotRequiredWithMemberInputBuilder @override void update( - void Function(HttpChecksumNotRequiredWithMemberInputBuilder)? updates) { + void Function(HttpChecksumNotRequiredWithMemberInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -94,9 +97,12 @@ class HttpChecksumNotRequiredWithMemberInputBuilder HttpChecksumNotRequiredWithMemberInput build() => _build(); _$HttpChecksumNotRequiredWithMemberInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpChecksumNotRequiredWithMemberInput._( - checksumAlgorithm: checksumAlgorithm, content: content); + checksumAlgorithm: checksumAlgorithm, + content: content, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.dart index 258871fc92..fa463f29d5 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.http_checksum_really_not_required_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class HttpChecksumReallyNotRequiredInput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpChecksumReallyNotRequiredInput, + HttpChecksumReallyNotRequiredInputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpChecksumReallyNotRequiredInput({ ChecksumAlgorithm? checksumAlgorithm, @@ -31,9 +33,9 @@ abstract class HttpChecksumReallyNotRequiredInput ); } - factory HttpChecksumReallyNotRequiredInput.build( - [void Function(HttpChecksumReallyNotRequiredInputBuilder) updates]) = - _$HttpChecksumReallyNotRequiredInput; + factory HttpChecksumReallyNotRequiredInput.build([ + void Function(HttpChecksumReallyNotRequiredInputBuilder) updates, + ]) = _$HttpChecksumReallyNotRequiredInput; const HttpChecksumReallyNotRequiredInput._(); @@ -41,17 +43,17 @@ abstract class HttpChecksumReallyNotRequiredInput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpChecksumReallyNotRequiredInput.build((b) { - b.content = payload; - if (request.headers['x-amz-request-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-request-algorithm']!); - } - }); + }) => HttpChecksumReallyNotRequiredInput.build((b) { + b.content = payload; + if (request.headers['x-amz-request-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-request-algorithm']!, + ); + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpChecksumReallyNotRequiredInputRestJson1Serializer() + HttpChecksumReallyNotRequiredInputRestJson1Serializer(), ]; ChecksumAlgorithm? get checksumAlgorithm; @@ -60,23 +62,14 @@ abstract class HttpChecksumReallyNotRequiredInput _i2.Uint8List? getPayload() => content; @override - List get props => [ - checksumAlgorithm, - content, - ]; + List get props => [checksumAlgorithm, content]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpChecksumReallyNotRequiredInput') - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'content', - content, - ); + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('content', content); return helper.toString(); } } @@ -84,21 +77,18 @@ abstract class HttpChecksumReallyNotRequiredInput class HttpChecksumReallyNotRequiredInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpChecksumReallyNotRequiredInputRestJson1Serializer() - : super('HttpChecksumReallyNotRequiredInput'); + : super('HttpChecksumReallyNotRequiredInput'); @override Iterable get types => const [ - HttpChecksumReallyNotRequiredInput, - _$HttpChecksumReallyNotRequiredInput, - ]; + HttpChecksumReallyNotRequiredInput, + _$HttpChecksumReallyNotRequiredInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -107,9 +97,10 @@ class HttpChecksumReallyNotRequiredInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.g.dart index 59504dec5a..64074f6ac5 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_not_required_input.g.dart @@ -13,19 +13,19 @@ class _$HttpChecksumReallyNotRequiredInput @override final _i2.Uint8List? content; - factory _$HttpChecksumReallyNotRequiredInput( - [void Function(HttpChecksumReallyNotRequiredInputBuilder)? - updates]) => + factory _$HttpChecksumReallyNotRequiredInput([ + void Function(HttpChecksumReallyNotRequiredInputBuilder)? updates, + ]) => (new HttpChecksumReallyNotRequiredInputBuilder()..update(updates)) ._build(); _$HttpChecksumReallyNotRequiredInput._({this.checksumAlgorithm, this.content}) - : super._(); + : super._(); @override HttpChecksumReallyNotRequiredInput rebuild( - void Function(HttpChecksumReallyNotRequiredInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpChecksumReallyNotRequiredInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpChecksumReallyNotRequiredInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$HttpChecksumReallyNotRequiredInput class HttpChecksumReallyNotRequiredInputBuilder implements - Builder { + Builder< + HttpChecksumReallyNotRequiredInput, + HttpChecksumReallyNotRequiredInputBuilder + > { _$HttpChecksumReallyNotRequiredInput? _$v; ChecksumAlgorithm? _checksumAlgorithm; @@ -84,7 +86,8 @@ class HttpChecksumReallyNotRequiredInputBuilder @override void update( - void Function(HttpChecksumReallyNotRequiredInputBuilder)? updates) { + void Function(HttpChecksumReallyNotRequiredInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -92,9 +95,12 @@ class HttpChecksumReallyNotRequiredInputBuilder HttpChecksumReallyNotRequiredInput build() => _build(); _$HttpChecksumReallyNotRequiredInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpChecksumReallyNotRequiredInput._( - checksumAlgorithm: checksumAlgorithm, content: content); + checksumAlgorithm: checksumAlgorithm, + content: content, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.dart index fd478f5f5f..6dd1d917e7 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.http_checksum_really_required_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class HttpChecksumReallyRequiredInput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpChecksumReallyRequiredInput, + HttpChecksumReallyRequiredInputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpChecksumReallyRequiredInput({ ChecksumAlgorithm? checksumAlgorithm, @@ -31,9 +33,9 @@ abstract class HttpChecksumReallyRequiredInput ); } - factory HttpChecksumReallyRequiredInput.build( - [void Function(HttpChecksumReallyRequiredInputBuilder) updates]) = - _$HttpChecksumReallyRequiredInput; + factory HttpChecksumReallyRequiredInput.build([ + void Function(HttpChecksumReallyRequiredInputBuilder) updates, + ]) = _$HttpChecksumReallyRequiredInput; const HttpChecksumReallyRequiredInput._(); @@ -41,17 +43,17 @@ abstract class HttpChecksumReallyRequiredInput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpChecksumReallyRequiredInput.build((b) { - b.content = payload; - if (request.headers['x-amz-request-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-request-algorithm']!); - } - }); + }) => HttpChecksumReallyRequiredInput.build((b) { + b.content = payload; + if (request.headers['x-amz-request-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-request-algorithm']!, + ); + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpChecksumReallyRequiredInputRestJson1Serializer() + HttpChecksumReallyRequiredInputRestJson1Serializer(), ]; ChecksumAlgorithm? get checksumAlgorithm; @@ -60,23 +62,14 @@ abstract class HttpChecksumReallyRequiredInput _i2.Uint8List? getPayload() => content; @override - List get props => [ - checksumAlgorithm, - content, - ]; + List get props => [checksumAlgorithm, content]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpChecksumReallyRequiredInput') - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'content', - content, - ); + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('content', content); return helper.toString(); } } @@ -84,21 +77,18 @@ abstract class HttpChecksumReallyRequiredInput class HttpChecksumReallyRequiredInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpChecksumReallyRequiredInputRestJson1Serializer() - : super('HttpChecksumReallyRequiredInput'); + : super('HttpChecksumReallyRequiredInput'); @override Iterable get types => const [ - HttpChecksumReallyRequiredInput, - _$HttpChecksumReallyRequiredInput, - ]; + HttpChecksumReallyRequiredInput, + _$HttpChecksumReallyRequiredInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -107,9 +97,10 @@ class HttpChecksumReallyRequiredInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.g.dart index 63434a4dde..de3276f820 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_really_required_input.g.dart @@ -13,17 +13,18 @@ class _$HttpChecksumReallyRequiredInput @override final _i2.Uint8List? content; - factory _$HttpChecksumReallyRequiredInput( - [void Function(HttpChecksumReallyRequiredInputBuilder)? updates]) => + factory _$HttpChecksumReallyRequiredInput([ + void Function(HttpChecksumReallyRequiredInputBuilder)? updates, + ]) => (new HttpChecksumReallyRequiredInputBuilder()..update(updates))._build(); _$HttpChecksumReallyRequiredInput._({this.checksumAlgorithm, this.content}) - : super._(); + : super._(); @override HttpChecksumReallyRequiredInput rebuild( - void Function(HttpChecksumReallyRequiredInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpChecksumReallyRequiredInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpChecksumReallyRequiredInputBuilder toBuilder() => @@ -49,8 +50,10 @@ class _$HttpChecksumReallyRequiredInput class HttpChecksumReallyRequiredInputBuilder implements - Builder { + Builder< + HttpChecksumReallyRequiredInput, + HttpChecksumReallyRequiredInputBuilder + > { _$HttpChecksumReallyRequiredInput? _$v; ChecksumAlgorithm? _checksumAlgorithm; @@ -89,9 +92,12 @@ class HttpChecksumReallyRequiredInputBuilder HttpChecksumReallyRequiredInput build() => _build(); _$HttpChecksumReallyRequiredInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpChecksumReallyRequiredInput._( - checksumAlgorithm: checksumAlgorithm, content: content); + checksumAlgorithm: checksumAlgorithm, + content: content, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.dart index c466c040f6..c21f5cc82b 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.http_checksum_required_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class HttpChecksumRequiredInput return _$HttpChecksumRequiredInput._(content: content); } - factory HttpChecksumRequiredInput.build( - [void Function(HttpChecksumRequiredInputBuilder) updates]) = - _$HttpChecksumRequiredInput; + factory HttpChecksumRequiredInput.build([ + void Function(HttpChecksumRequiredInputBuilder) updates, + ]) = _$HttpChecksumRequiredInput; const HttpChecksumRequiredInput._(); @@ -33,13 +33,12 @@ abstract class HttpChecksumRequiredInput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpChecksumRequiredInput.build((b) { - b.content = payload; - }); + }) => HttpChecksumRequiredInput.build((b) { + b.content = payload; + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpChecksumRequiredInputRestJson1Serializer() + HttpChecksumRequiredInputRestJson1Serializer(), ]; _i2.Uint8List? get content; @@ -52,10 +51,7 @@ abstract class HttpChecksumRequiredInput @override String toString() { final helper = newBuiltValueToStringHelper('HttpChecksumRequiredInput') - ..add( - 'content', - content, - ); + ..add('content', content); return helper.toString(); } } @@ -63,21 +59,18 @@ abstract class HttpChecksumRequiredInput class HttpChecksumRequiredInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpChecksumRequiredInputRestJson1Serializer() - : super('HttpChecksumRequiredInput'); + : super('HttpChecksumRequiredInput'); @override Iterable get types => const [ - HttpChecksumRequiredInput, - _$HttpChecksumRequiredInput, - ]; + HttpChecksumRequiredInput, + _$HttpChecksumRequiredInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -86,9 +79,10 @@ class HttpChecksumRequiredInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.g.dart index 9965559c23..f5b6054e8d 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_input.g.dart @@ -10,16 +10,16 @@ class _$HttpChecksumRequiredInput extends HttpChecksumRequiredInput { @override final _i2.Uint8List? content; - factory _$HttpChecksumRequiredInput( - [void Function(HttpChecksumRequiredInputBuilder)? updates]) => - (new HttpChecksumRequiredInputBuilder()..update(updates))._build(); + factory _$HttpChecksumRequiredInput([ + void Function(HttpChecksumRequiredInputBuilder)? updates, + ]) => (new HttpChecksumRequiredInputBuilder()..update(updates))._build(); _$HttpChecksumRequiredInput._({this.content}) : super._(); @override HttpChecksumRequiredInput rebuild( - void Function(HttpChecksumRequiredInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpChecksumRequiredInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpChecksumRequiredInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.dart index 7739512a9f..ea50e56d0c 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.http_checksum_required_with_member_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class HttpChecksumRequiredWithMemberInput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpChecksumRequiredWithMemberInput, + HttpChecksumRequiredWithMemberInputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpChecksumRequiredWithMemberInput({ ChecksumAlgorithm? checksumAlgorithm, @@ -31,9 +33,9 @@ abstract class HttpChecksumRequiredWithMemberInput ); } - factory HttpChecksumRequiredWithMemberInput.build( - [void Function(HttpChecksumRequiredWithMemberInputBuilder) updates]) = - _$HttpChecksumRequiredWithMemberInput; + factory HttpChecksumRequiredWithMemberInput.build([ + void Function(HttpChecksumRequiredWithMemberInputBuilder) updates, + ]) = _$HttpChecksumRequiredWithMemberInput; const HttpChecksumRequiredWithMemberInput._(); @@ -41,17 +43,17 @@ abstract class HttpChecksumRequiredWithMemberInput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpChecksumRequiredWithMemberInput.build((b) { - b.content = payload; - if (request.headers['x-amz-request-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-request-algorithm']!); - } - }); + }) => HttpChecksumRequiredWithMemberInput.build((b) { + b.content = payload; + if (request.headers['x-amz-request-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-request-algorithm']!, + ); + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpChecksumRequiredWithMemberInputRestJson1Serializer() + HttpChecksumRequiredWithMemberInputRestJson1Serializer(), ]; ChecksumAlgorithm? get checksumAlgorithm; @@ -60,23 +62,14 @@ abstract class HttpChecksumRequiredWithMemberInput _i2.Uint8List? getPayload() => content; @override - List get props => [ - checksumAlgorithm, - content, - ]; + List get props => [checksumAlgorithm, content]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpChecksumRequiredWithMemberInput') - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'content', - content, - ); + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('content', content); return helper.toString(); } } @@ -84,21 +77,18 @@ abstract class HttpChecksumRequiredWithMemberInput class HttpChecksumRequiredWithMemberInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpChecksumRequiredWithMemberInputRestJson1Serializer() - : super('HttpChecksumRequiredWithMemberInput'); + : super('HttpChecksumRequiredWithMemberInput'); @override Iterable get types => const [ - HttpChecksumRequiredWithMemberInput, - _$HttpChecksumRequiredWithMemberInput, - ]; + HttpChecksumRequiredWithMemberInput, + _$HttpChecksumRequiredWithMemberInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -107,9 +97,10 @@ class HttpChecksumRequiredWithMemberInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.g.dart index a919f12027..d9940e920d 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/http_checksum_required_with_member_input.g.dart @@ -13,20 +13,21 @@ class _$HttpChecksumRequiredWithMemberInput @override final _i2.Uint8List? content; - factory _$HttpChecksumRequiredWithMemberInput( - [void Function(HttpChecksumRequiredWithMemberInputBuilder)? - updates]) => + factory _$HttpChecksumRequiredWithMemberInput([ + void Function(HttpChecksumRequiredWithMemberInputBuilder)? updates, + ]) => (new HttpChecksumRequiredWithMemberInputBuilder()..update(updates)) ._build(); - _$HttpChecksumRequiredWithMemberInput._( - {this.checksumAlgorithm, this.content}) - : super._(); + _$HttpChecksumRequiredWithMemberInput._({ + this.checksumAlgorithm, + this.content, + }) : super._(); @override HttpChecksumRequiredWithMemberInput rebuild( - void Function(HttpChecksumRequiredWithMemberInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpChecksumRequiredWithMemberInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpChecksumRequiredWithMemberInputBuilder toBuilder() => @@ -52,8 +53,10 @@ class _$HttpChecksumRequiredWithMemberInput class HttpChecksumRequiredWithMemberInputBuilder implements - Builder { + Builder< + HttpChecksumRequiredWithMemberInput, + HttpChecksumRequiredWithMemberInputBuilder + > { _$HttpChecksumRequiredWithMemberInput? _$v; ChecksumAlgorithm? _checksumAlgorithm; @@ -85,7 +88,8 @@ class HttpChecksumRequiredWithMemberInputBuilder @override void update( - void Function(HttpChecksumRequiredWithMemberInputBuilder)? updates) { + void Function(HttpChecksumRequiredWithMemberInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -93,9 +97,12 @@ class HttpChecksumRequiredWithMemberInputBuilder HttpChecksumRequiredWithMemberInput build() => _build(); _$HttpChecksumRequiredWithMemberInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpChecksumRequiredWithMemberInput._( - checksumAlgorithm: checksumAlgorithm, content: content); + checksumAlgorithm: checksumAlgorithm, + content: content, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.dart index 508c1379ef..874f07b24c 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.nested_collections_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,25 +16,29 @@ abstract class NestedCollectionsInput _i1.HttpInput, _i2.AWSEquatable implements Built { - factory NestedCollectionsInput( - {Map>?>>? mapOfListOfMapOfLists}) { + factory NestedCollectionsInput({ + Map>?>>? mapOfListOfMapOfLists, + }) { return _$NestedCollectionsInput._( - mapOfListOfMapOfLists: mapOfListOfMapOfLists == null - ? null - : _i3.BuiltListMultimap(mapOfListOfMapOfLists.map(( - key, - value, - ) => - MapEntry( - key, - value.map( - (el) => el == null ? null : _i3.BuiltListMultimap(el)), - )))); + mapOfListOfMapOfLists: + mapOfListOfMapOfLists == null + ? null + : _i3.BuiltListMultimap( + mapOfListOfMapOfLists.map( + (key, value) => MapEntry( + key, + value.map( + (el) => el == null ? null : _i3.BuiltListMultimap(el), + ), + ), + ), + ), + ); } - factory NestedCollectionsInput.build( - [void Function(NestedCollectionsInputBuilder) updates]) = - _$NestedCollectionsInput; + factory NestedCollectionsInput.build([ + void Function(NestedCollectionsInputBuilder) updates, + ]) = _$NestedCollectionsInput; const NestedCollectionsInput._(); @@ -42,14 +46,13 @@ abstract class NestedCollectionsInput NestedCollectionsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [NestedCollectionsInputRestJson1Serializer()]; _i3.BuiltListMultimap?>? - get mapOfListOfMapOfLists; + get mapOfListOfMapOfLists; @override NestedCollectionsInput getPayload() => this; @@ -59,10 +62,7 @@ abstract class NestedCollectionsInput @override String toString() { final helper = newBuiltValueToStringHelper('NestedCollectionsInput') - ..add( - 'mapOfListOfMapOfLists', - mapOfListOfMapOfLists, - ); + ..add('mapOfListOfMapOfLists', mapOfListOfMapOfLists); return helper.toString(); } } @@ -70,21 +70,18 @@ abstract class NestedCollectionsInput class NestedCollectionsInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const NestedCollectionsInputRestJson1Serializer() - : super('NestedCollectionsInput'); + : super('NestedCollectionsInput'); @override Iterable get types => const [ - NestedCollectionsInput, - _$NestedCollectionsInput, - ]; + NestedCollectionsInput, + _$NestedCollectionsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NestedCollectionsInput deserialize( @@ -103,23 +100,22 @@ class NestedCollectionsInputRestJson1Serializer } switch (key) { case 'mapOfListOfMapOfLists': - result.mapOfListOfMapOfLists.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltListMultimap, - [ - FullType(String), - FullType.nullable( - _i3.BuiltListMultimap, - [ - FullType(String), + result.mapOfListOfMapOfLists.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltListMultimap, [ FullType(String), - ], - ), - ], - ), - ) as _i3.BuiltListMultimap?>)); + FullType.nullable(_i3.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ]), + ) + as _i3.BuiltListMultimap< + String, + _i3.BuiltListMultimap? + >), + ); } } @@ -137,22 +133,18 @@ class NestedCollectionsInputRestJson1Serializer if (mapOfListOfMapOfLists != null) { result$ ..add('mapOfListOfMapOfLists') - ..add(serializers.serialize( - mapOfListOfMapOfLists, - specifiedType: const FullType( - _i3.BuiltListMultimap, - [ + ..add( + serializers.serialize( + mapOfListOfMapOfLists, + specifiedType: const FullType(_i3.BuiltListMultimap, [ FullType(String), - FullType.nullable( - _i3.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ], + FullType.nullable(_i3.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.g.dart index 89a98774d2..b30aa00e63 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/nested_collections_input.g.dart @@ -9,18 +9,18 @@ part of 'nested_collections_input.dart'; class _$NestedCollectionsInput extends NestedCollectionsInput { @override final _i3.BuiltListMultimap?>? - mapOfListOfMapOfLists; + mapOfListOfMapOfLists; - factory _$NestedCollectionsInput( - [void Function(NestedCollectionsInputBuilder)? updates]) => - (new NestedCollectionsInputBuilder()..update(updates))._build(); + factory _$NestedCollectionsInput([ + void Function(NestedCollectionsInputBuilder)? updates, + ]) => (new NestedCollectionsInputBuilder()..update(updates))._build(); _$NestedCollectionsInput._({this.mapOfListOfMapOfLists}) : super._(); @override NestedCollectionsInput rebuild( - void Function(NestedCollectionsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedCollectionsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedCollectionsInputBuilder toBuilder() => @@ -47,16 +47,18 @@ class NestedCollectionsInputBuilder _$NestedCollectionsInput? _$v; _i3.ListMultimapBuilder?>? - _mapOfListOfMapOfLists; + _mapOfListOfMapOfLists; _i3.ListMultimapBuilder?> - get mapOfListOfMapOfLists => - _$this._mapOfListOfMapOfLists ??= new _i3.ListMultimapBuilder?>(); + get mapOfListOfMapOfLists => + _$this._mapOfListOfMapOfLists ??= + new _i3.ListMultimapBuilder< + String, + _i3.BuiltListMultimap? + >(); set mapOfListOfMapOfLists( - _i3.ListMultimapBuilder?>? - mapOfListOfMapOfLists) => - _$this._mapOfListOfMapOfLists = mapOfListOfMapOfLists; + _i3.ListMultimapBuilder?>? + mapOfListOfMapOfLists, + ) => _$this._mapOfListOfMapOfLists = mapOfListOfMapOfLists; NestedCollectionsInputBuilder(); @@ -86,9 +88,11 @@ class NestedCollectionsInputBuilder _$NestedCollectionsInput _build() { _$NestedCollectionsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$NestedCollectionsInput._( - mapOfListOfMapOfLists: _mapOfListOfMapOfLists?.build()); + mapOfListOfMapOfLists: _mapOfListOfMapOfLists?.build(), + ); } catch (_) { late String _$failedField; try { @@ -96,7 +100,10 @@ class NestedCollectionsInputBuilder _mapOfListOfMapOfLists?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedCollectionsInput', _$failedField, e.toString()); + r'NestedCollectionsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.dart index 351a54756f..b7cc06084e 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_config.dart index 386a0b460b..fad085fb13 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_mode.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_mode.dart index 959db27d0f..7e8aa898d1 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_addressing_style.dart index 16dece2270..719d2aca1b 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.dart index f953ad07ea..bc8764df8c 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.dart index dcfd563fa0..acd5c22bcc 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/default_values_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/default_values_operation.dart index 23da550e6b..e11a022967 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/default_values_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/default_values_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.operation.default_values_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:custom_v2/src/custom/model/default_values_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DefaultValuesOperation extends _i1.HttpOperation { +class DefaultValuesOperation + extends + _i1.HttpOperation< + DefaultValuesInput, + DefaultValuesInput, + DefaultValuesOutput, + DefaultValuesOutput + > { DefaultValuesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + DefaultValuesInput, + DefaultValuesInput, + DefaultValuesOutput, + DefaultValuesOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +85,7 @@ class DefaultValuesOperation extends _i1.HttpOperation - DefaultValuesOutput.fromResponse( - payload, - response, - ); + ) => DefaultValuesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class DefaultValuesOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_not_required_with_member_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_not_required_with_member_operation.dart index b4355ed2af..e32c8173f1 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_not_required_with_member_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_not_required_with_member_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.operation.http_checksum_not_required_with_member_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:custom_v2/src/custom/model/http_checksum_not_required_with_membe import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class HttpChecksumNotRequiredWithMemberOperation extends _i1.HttpOperation< - _i2.Uint8List, HttpChecksumNotRequiredWithMemberInput, _i1.Unit, _i1.Unit> { +class HttpChecksumNotRequiredWithMemberOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpChecksumNotRequiredWithMemberInput, + _i1.Unit, + _i1.Unit + > { HttpChecksumNotRequiredWithMemberOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpChecksumNotRequiredWithMemberInput, - _i1.Unit, _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpChecksumNotRequiredWithMemberInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -67,8 +80,9 @@ class HttpChecksumNotRequiredWithMemberOperation extends _i1.HttpOperation< b.headers['x-amz-request-algorithm'] = input.checksumAlgorithm!.value; } if (input.checksumAlgorithm != null) { - b.requestInterceptors - .add(_i3.WithChecksum(input.checksumAlgorithm!.value)); + b.requestInterceptors.add( + _i3.WithChecksum(input.checksumAlgorithm!.value), + ); } }); @@ -76,10 +90,7 @@ class HttpChecksumNotRequiredWithMemberOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -104,11 +115,7 @@ class HttpChecksumNotRequiredWithMemberOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_not_required_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_not_required_operation.dart index 06507be990..dec585e5c1 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_not_required_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_not_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.operation.http_checksum_really_not_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,37 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Tests the behavior of @httpChecksum combined with @httpChecksumRequired as described \[here\](https://awslabs.github.io/smithy/2.0/aws/aws-core.html#behavior-with-httpchecksumrequired). -class HttpChecksumReallyNotRequiredOperation extends _i1.HttpOperation< - _i2.Uint8List, HttpChecksumReallyNotRequiredInput, _i1.Unit, _i1.Unit> { +class HttpChecksumReallyNotRequiredOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpChecksumReallyNotRequiredInput, + _i1.Unit, + _i1.Unit + > { /// Tests the behavior of @httpChecksum combined with @httpChecksumRequired as described \[here\](https://awslabs.github.io/smithy/2.0/aws/aws-core.html#behavior-with-httpchecksumrequired). HttpChecksumReallyNotRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpChecksumReallyNotRequiredInput, - _i1.Unit, _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpChecksumReallyNotRequiredInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,8 +82,9 @@ class HttpChecksumReallyNotRequiredOperation extends _i1.HttpOperation< b.headers['x-amz-request-algorithm'] = input.checksumAlgorithm!.value; } if (input.checksumAlgorithm != null) { - b.requestInterceptors - .add(_i3.WithChecksum(input.checksumAlgorithm!.value)); + b.requestInterceptors.add( + _i3.WithChecksum(input.checksumAlgorithm!.value), + ); } }); @@ -78,10 +92,7 @@ class HttpChecksumReallyNotRequiredOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +117,7 @@ class HttpChecksumReallyNotRequiredOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_required_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_required_operation.dart index 32ee5cd587..2f9eccb962 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_required_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_really_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.operation.http_checksum_really_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,39 +14,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// Tests the behavior of @httpChecksum combined with @httpChecksumRequired as described \[here\](https://awslabs.github.io/smithy/2.0/aws/aws-core.html#behavior-with-httpchecksumrequired). -class HttpChecksumReallyRequiredOperation extends _i1.HttpOperation< - _i2.Uint8List, HttpChecksumReallyRequiredInput, _i1.Unit, _i1.Unit> { +class HttpChecksumReallyRequiredOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpChecksumReallyRequiredInput, + _i1.Unit, + _i1.Unit + > { /// Tests the behavior of @httpChecksum combined with @httpChecksumRequired as described \[here\](https://awslabs.github.io/smithy/2.0/aws/aws-core.html#behavior-with-httpchecksumrequired). HttpChecksumReallyRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpChecksumReallyRequiredInput, _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpChecksumReallyRequiredInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, - responseInterceptors: <_i1.HttpResponseInterceptor>[ - const _i1.ValidateChecksum() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i1.ValidateChecksum()] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,18 +82,16 @@ class HttpChecksumReallyRequiredOperation extends _i1.HttpOperation< if (input.checksumAlgorithm != null) { b.headers['x-amz-request-algorithm'] = input.checksumAlgorithm!.value; } - b.requestInterceptors - .add(_i3.WithChecksum(input.checksumAlgorithm?.value)); + b.requestInterceptors.add( + _i3.WithChecksum(input.checksumAlgorithm?.value), + ); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +116,7 @@ class HttpChecksumReallyRequiredOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_operation.dart index bbcdd70332..f10c26ff6d 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.operation.http_checksum_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:custom_v2/src/custom/model/http_checksum_required_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class HttpChecksumRequiredOperation extends _i1.HttpOperation<_i2.Uint8List, - HttpChecksumRequiredInput, _i1.Unit, _i1.Unit> { +class HttpChecksumRequiredOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpChecksumRequiredInput, + _i1.Unit, + _i1.Unit + > { HttpChecksumRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpChecksumRequiredInput, _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpChecksumRequiredInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,10 +83,7 @@ class HttpChecksumRequiredOperation extends _i1.HttpOperation<_i2.Uint8List, int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +108,7 @@ class HttpChecksumRequiredOperation extends _i1.HttpOperation<_i2.Uint8List, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_with_member_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_with_member_operation.dart index da7648249a..ef23a886b6 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_with_member_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/http_checksum_required_with_member_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.operation.http_checksum_required_with_member_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:custom_v2/src/custom/model/http_checksum_required_with_member_in import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class HttpChecksumRequiredWithMemberOperation extends _i1.HttpOperation< - _i2.Uint8List, HttpChecksumRequiredWithMemberInput, _i1.Unit, _i1.Unit> { +class HttpChecksumRequiredWithMemberOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpChecksumRequiredWithMemberInput, + _i1.Unit, + _i1.Unit + > { HttpChecksumRequiredWithMemberOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpChecksumRequiredWithMemberInput, - _i1.Unit, _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpChecksumRequiredWithMemberInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,18 +79,16 @@ class HttpChecksumRequiredWithMemberOperation extends _i1.HttpOperation< if (input.checksumAlgorithm != null) { b.headers['x-amz-request-algorithm'] = input.checksumAlgorithm!.value; } - b.requestInterceptors - .add(_i3.WithChecksum(input.checksumAlgorithm?.value)); + b.requestInterceptors.add( + _i3.WithChecksum(input.checksumAlgorithm?.value), + ); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +113,7 @@ class HttpChecksumRequiredWithMemberOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/nested_collections_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/nested_collections_operation.dart index d2a6e730d5..34be1aaf8f 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/nested_collections_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/custom/operation/nested_collections_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.custom.operation.nested_collections_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:custom_v2/src/custom/model/nested_collections_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class NestedCollectionsOperation extends _i1.HttpOperation< - NestedCollectionsInput, NestedCollectionsInput, _i1.Unit, _i1.Unit> { +class NestedCollectionsOperation + extends + _i1.HttpOperation< + NestedCollectionsInput, + NestedCollectionsInput, + _i1.Unit, + _i1.Unit + > { NestedCollectionsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedCollectionsInput, + NestedCollectionsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +81,7 @@ class NestedCollectionsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +106,7 @@ class NestedCollectionsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/common/endpoint_resolver.dart index b437be0425..70b19d4f5f 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,10 +14,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -50,18 +47,22 @@ final _partitions = [ 'us-west-2', }, endpoints: const { - 'af-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.af-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-east-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'af-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.af-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-east-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-northeast-1': _i1.EndpointDefinition( hostname: 's3.ap-northeast-1.amazonaws.com', signatureVersions: [ @@ -72,27 +73,33 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-northeast-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'ap-northeast-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-northeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'ap-northeast-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-northeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-southeast-1': _i1.EndpointDefinition( hostname: 's3.ap-southeast-1.amazonaws.com', signatureVersions: [ @@ -103,7 +110,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'ap-southeast-2': _i1.EndpointDefinition( @@ -116,15 +123,17 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-2.amazonaws.com', tags: ['dualstack'], - ) + ), + ], + ), + 'ap-southeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', + tags: ['dualstack'], + ), ], ), - 'ap-southeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), 'aws-global': _i1.EndpointDefinition( hostname: 's3.amazonaws.com', signatureVersions: [ @@ -134,41 +143,46 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-east-1'), variants: [], ), - 'ca-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.ca-central-1.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ca-central-1.amazonaws.com', - tags: ['dualstack'], - ), - ]), - 'eu-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-central-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-north-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'ca-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.ca-central-1.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-north-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'eu-west-1': _i1.EndpointDefinition( hostname: 's3.eu-west-1.amazonaws.com', signatureVersions: [ @@ -179,21 +193,25 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.eu-west-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'eu-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-west-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'eu-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-west-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'fips-ca-central-1': _i1.EndpointDefinition( hostname: 's3-fips.ca-central-1.amazonaws.com', credentialScope: _i1.CredentialScope(region: 'ca-central-1'), @@ -219,12 +237,14 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-west-2'), variants: [], ), - 'me-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.me-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'me-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.me-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 's3-external-1': _i1.EndpointDefinition( hostname: 's3-external-1.amazonaws.com', signatureVersions: [ @@ -244,7 +264,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.sa-east-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'us-east-1': _i1.EndpointDefinition( @@ -256,10 +276,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-east-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-east-1.amazonaws.com', @@ -271,23 +288,22 @@ final _partitions = [ ), ], ), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.us-east-2.amazonaws.com', - tags: ['dualstack'], - ), - ]), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'us-west-1': _i1.EndpointDefinition( hostname: 's3.us-west-1.amazonaws.com', signatureVersions: [ @@ -297,10 +313,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-1.amazonaws.com', @@ -321,10 +334,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-2.amazonaws.com', @@ -345,10 +355,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com.cn', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -356,23 +363,24 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { - 'cn-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), - 'cn-northwest-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), + 'cn-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), + 'cn-northwest-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), }, ), _i1.Partition( @@ -390,16 +398,10 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const { 'us-iso-east-1': _i1.EndpointDefinition( - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.s3v4], variants: [], ), @@ -413,10 +415,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.sc2s.sgov.gov', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -443,10 +442,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-east-1': _i1.EndpointDefinition( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -460,10 +456,7 @@ final _partitions = [ ), 'us-gov-east-1': _i1.EndpointDefinition( hostname: 's3.us-gov-east-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -477,10 +470,7 @@ final _partitions = [ ), 'us-gov-west-1': _i1.EndpointDefinition( hostname: 's3.us-gov-west-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-west-1.amazonaws.com', @@ -496,7 +486,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'S3'; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/common/serializers.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/common/serializers.dart index 1f38576e5f..46453e4444 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/common/serializers.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,11 +42,9 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.dart index df714357dc..04231ae5e5 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestXmlSerializer() + AwsConfigRestXmlSerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestXmlSerializer const AwsConfigRestXmlSerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestXmlSerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -119,24 +104,28 @@ class AwsConfigRestXmlSerializer const _i2.XmlElementName( 'AwsConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.dart index ed4d2aca83..2367234132 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestXmlSerializer() + ClientConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestXmlSerializer const ClientConfigRestXmlSerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -189,7 +179,7 @@ class ClientConfigRestXmlSerializer const _i2.XmlElementName( 'ClientConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -198,63 +188,71 @@ class ClientConfigRestXmlSerializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_error.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_error.dart index c443993778..4e01d6bebe 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_error.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.copy_object_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,8 +20,9 @@ abstract class CopyObjectError return _$CopyObjectError._(); } - factory CopyObjectError.build( - [void Function(CopyObjectErrorBuilder) updates]) = _$CopyObjectError; + factory CopyObjectError.build([ + void Function(CopyObjectErrorBuilder) updates, + ]) = _$CopyObjectError; const CopyObjectError._(); @@ -29,20 +30,19 @@ abstract class CopyObjectError factory CopyObjectError.fromResponse( CopyObjectError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - CopyObjectErrorRestXmlSerializer() + CopyObjectErrorRestXmlSerializer(), ]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'CopyObjectError', - ); + namespace: 'com.amazonaws.s3', + shape: 'CopyObjectError', + ); @override String? get message => null; @@ -75,18 +75,12 @@ class CopyObjectErrorRestXmlSerializer const CopyObjectErrorRestXmlSerializer() : super('CopyObjectError'); @override - Iterable get types => const [ - CopyObjectError, - _$CopyObjectError, - ]; + Iterable get types => const [CopyObjectError, _$CopyObjectError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectError deserialize( @@ -107,7 +101,7 @@ class CopyObjectErrorRestXmlSerializer const _i2.XmlElementName( 'CopyObjectError', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.dart index c4a22342ab..a045966d6a 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.copy_object_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,8 +20,9 @@ abstract class CopyObjectOutput return _$CopyObjectOutput._(copyObjectResult: copyObjectResult); } - factory CopyObjectOutput.build( - [void Function(CopyObjectOutputBuilder) updates]) = _$CopyObjectOutput; + factory CopyObjectOutput.build([ + void Function(CopyObjectOutputBuilder) updates, + ]) = _$CopyObjectOutput; const CopyObjectOutput._(); @@ -29,15 +30,14 @@ abstract class CopyObjectOutput factory CopyObjectOutput.fromResponse( CopyObjectResult? payload, _i1.AWSBaseHttpResponse response, - ) => - CopyObjectOutput.build((b) { - if (payload != null) { - b.copyObjectResult.replace(payload); - } - }); + ) => CopyObjectOutput.build((b) { + if (payload != null) { + b.copyObjectResult.replace(payload); + } + }); static const List<_i2.SmithySerializer> serializers = [ - CopyObjectOutputRestXmlSerializer() + CopyObjectOutputRestXmlSerializer(), ]; CopyObjectResult? get copyObjectResult; @@ -50,10 +50,7 @@ abstract class CopyObjectOutput @override String toString() { final helper = newBuiltValueToStringHelper('CopyObjectOutput') - ..add( - 'copyObjectResult', - copyObjectResult, - ); + ..add('copyObjectResult', copyObjectResult); return helper.toString(); } } @@ -63,18 +60,12 @@ class CopyObjectOutputRestXmlSerializer const CopyObjectOutputRestXmlSerializer() : super('CopyObjectOutput'); @override - Iterable get types => const [ - CopyObjectOutput, - _$CopyObjectOutput, - ]; + Iterable get types => const [CopyObjectOutput, _$CopyObjectOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectResult deserialize( @@ -93,10 +84,12 @@ class CopyObjectOutputRestXmlSerializer } switch (key) { case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -113,16 +106,15 @@ class CopyObjectOutputRestXmlSerializer const _i2.XmlElementName( 'CopyObjectResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CopyObjectResult(:eTag) = object; if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.g.dart index 0dc54d1b86..991f691109 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_output.g.dart @@ -10,9 +10,9 @@ class _$CopyObjectOutput extends CopyObjectOutput { @override final CopyObjectResult? copyObjectResult; - factory _$CopyObjectOutput( - [void Function(CopyObjectOutputBuilder)? updates]) => - (new CopyObjectOutputBuilder()..update(updates))._build(); + factory _$CopyObjectOutput([ + void Function(CopyObjectOutputBuilder)? updates, + ]) => (new CopyObjectOutputBuilder()..update(updates))._build(); _$CopyObjectOutput._({this.copyObjectResult}) : super._(); @@ -78,9 +78,11 @@ class CopyObjectOutputBuilder _$CopyObjectOutput _build() { _$CopyObjectOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$CopyObjectOutput._( - copyObjectResult: _copyObjectResult?.build()); + copyObjectResult: _copyObjectResult?.build(), + ); } catch (_) { late String _$failedField; try { @@ -88,7 +90,10 @@ class CopyObjectOutputBuilder _copyObjectResult?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CopyObjectOutput', _$failedField, e.toString()); + r'CopyObjectOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.dart index 5a445fa828..623735bfcd 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.copy_object_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,8 +31,9 @@ abstract class CopyObjectRequest ); } - factory CopyObjectRequest.build( - [void Function(CopyObjectRequestBuilder) updates]) = _$CopyObjectRequest; + factory CopyObjectRequest.build([ + void Function(CopyObjectRequestBuilder) updates, + ]) = _$CopyObjectRequest; const CopyObjectRequest._(); @@ -40,21 +41,20 @@ abstract class CopyObjectRequest CopyObjectRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - CopyObjectRequest.build((b) { - if (request.headers['x-amz-copy-source'] != null) { - b.copySource = request.headers['x-amz-copy-source']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => CopyObjectRequest.build((b) { + if (request.headers['x-amz-copy-source'] != null) { + b.copySource = request.headers['x-amz-copy-source']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [CopyObjectRequestRestXmlSerializer()]; + serializers = [CopyObjectRequestRestXmlSerializer()]; String get bucket; String get copySource; @@ -67,37 +67,22 @@ abstract class CopyObjectRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override CopyObjectRequestPayload getPayload() => CopyObjectRequestPayload(); @override - List get props => [ - bucket, - copySource, - key, - ]; + List get props => [bucket, copySource, key]; @override String toString() { - final helper = newBuiltValueToStringHelper('CopyObjectRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'copySource', - copySource, - ) - ..add( - 'key', - key, - ); + final helper = + newBuiltValueToStringHelper('CopyObjectRequest') + ..add('bucket', bucket) + ..add('copySource', copySource) + ..add('key', key); return helper.toString(); } } @@ -108,9 +93,9 @@ abstract class CopyObjectRequestPayload implements Built, _i1.EmptyPayload { - factory CopyObjectRequestPayload( - [void Function(CopyObjectRequestPayloadBuilder) updates]) = - _$CopyObjectRequestPayload; + factory CopyObjectRequestPayload([ + void Function(CopyObjectRequestPayloadBuilder) updates, + ]) = _$CopyObjectRequestPayload; const CopyObjectRequestPayload._(); @@ -130,19 +115,16 @@ class CopyObjectRequestRestXmlSerializer @override Iterable get types => const [ - CopyObjectRequest, - _$CopyObjectRequest, - CopyObjectRequestPayload, - _$CopyObjectRequestPayload, - ]; + CopyObjectRequest, + _$CopyObjectRequest, + CopyObjectRequestPayload, + _$CopyObjectRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectRequestPayload deserialize( @@ -163,7 +145,7 @@ class CopyObjectRequestRestXmlSerializer const _i1.XmlElementName( 'CopyObjectRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.g.dart index 4dbe502d9d..80c0065338 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_request.g.dart @@ -14,17 +14,25 @@ class _$CopyObjectRequest extends CopyObjectRequest { @override final String key; - factory _$CopyObjectRequest( - [void Function(CopyObjectRequestBuilder)? updates]) => - (new CopyObjectRequestBuilder()..update(updates))._build(); - - _$CopyObjectRequest._( - {required this.bucket, required this.copySource, required this.key}) - : super._() { + factory _$CopyObjectRequest([ + void Function(CopyObjectRequestBuilder)? updates, + ]) => (new CopyObjectRequestBuilder()..update(updates))._build(); + + _$CopyObjectRequest._({ + required this.bucket, + required this.copySource, + required this.key, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'CopyObjectRequest', 'bucket'); + bucket, + r'CopyObjectRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - copySource, r'CopyObjectRequest', 'copySource'); + copySource, + r'CopyObjectRequest', + 'copySource', + ); BuiltValueNullFieldError.checkNotNull(key, r'CopyObjectRequest', 'key'); } @@ -100,30 +108,41 @@ class CopyObjectRequestBuilder CopyObjectRequest build() => _build(); _$CopyObjectRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CopyObjectRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'CopyObjectRequest', 'bucket'), - copySource: BuiltValueNullFieldError.checkNotNull( - copySource, r'CopyObjectRequest', 'copySource'), - key: BuiltValueNullFieldError.checkNotNull( - key, r'CopyObjectRequest', 'key')); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'CopyObjectRequest', + 'bucket', + ), + copySource: BuiltValueNullFieldError.checkNotNull( + copySource, + r'CopyObjectRequest', + 'copySource', + ), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'CopyObjectRequest', + 'key', + ), + ); replace(_$result); return _$result; } } class _$CopyObjectRequestPayload extends CopyObjectRequestPayload { - factory _$CopyObjectRequestPayload( - [void Function(CopyObjectRequestPayloadBuilder)? updates]) => - (new CopyObjectRequestPayloadBuilder()..update(updates))._build(); + factory _$CopyObjectRequestPayload([ + void Function(CopyObjectRequestPayloadBuilder)? updates, + ]) => (new CopyObjectRequestPayloadBuilder()..update(updates))._build(); _$CopyObjectRequestPayload._() : super._(); @override CopyObjectRequestPayload rebuild( - void Function(CopyObjectRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CopyObjectRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CopyObjectRequestPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.dart index 90680721d3..542aca02c9 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.copy_object_result; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,13 +17,14 @@ abstract class CopyObjectResult return _$CopyObjectResult._(eTag: eTag); } - factory CopyObjectResult.build( - [void Function(CopyObjectResultBuilder) updates]) = _$CopyObjectResult; + factory CopyObjectResult.build([ + void Function(CopyObjectResultBuilder) updates, + ]) = _$CopyObjectResult; const CopyObjectResult._(); static const List<_i2.SmithySerializer> serializers = [ - CopyObjectResultRestXmlSerializer() + CopyObjectResultRestXmlSerializer(), ]; String? get eTag; @@ -33,10 +34,7 @@ abstract class CopyObjectResult @override String toString() { final helper = newBuiltValueToStringHelper('CopyObjectResult') - ..add( - 'eTag', - eTag, - ); + ..add('eTag', eTag); return helper.toString(); } } @@ -46,18 +44,12 @@ class CopyObjectResultRestXmlSerializer const CopyObjectResultRestXmlSerializer() : super('CopyObjectResult'); @override - Iterable get types => const [ - CopyObjectResult, - _$CopyObjectResult, - ]; + Iterable get types => const [CopyObjectResult, _$CopyObjectResult]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectResult deserialize( @@ -76,10 +68,12 @@ class CopyObjectResultRestXmlSerializer } switch (key) { case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -96,16 +90,15 @@ class CopyObjectResultRestXmlSerializer const _i2.XmlElementName( 'CopyObjectResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CopyObjectResult(:eTag) = object; if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.g.dart index cfe6650ea3..5b94f39abb 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/copy_object_result.g.dart @@ -10,9 +10,9 @@ class _$CopyObjectResult extends CopyObjectResult { @override final String? eTag; - factory _$CopyObjectResult( - [void Function(CopyObjectResultBuilder)? updates]) => - (new CopyObjectResultBuilder()..update(updates))._build(); + factory _$CopyObjectResult([ + void Function(CopyObjectResultBuilder)? updates, + ]) => (new CopyObjectResultBuilder()..update(updates))._build(); _$CopyObjectResult._({this.eTag}) : super._(); diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.dart index 6b3ac87cf3..106a288e6c 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestXmlSerializer() + EnvironmentConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestXmlSerializer const EnvironmentConfigRestXmlSerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestXmlSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -173,7 +163,7 @@ class EnvironmentConfigRestXmlSerializer const _i2.XmlElementName( 'EnvironmentConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -181,55 +171,67 @@ class EnvironmentConfigRestXmlSerializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.dart index 165f3e5dd9..a678edafb9 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestXmlSerializer() + FileConfigSettingsRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestXmlSerializer const FileConfigSettingsRestXmlSerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -190,7 +179,7 @@ class FileConfigSettingsRestXmlSerializer const _i2.XmlElementName( 'FileConfigSettings', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -199,63 +188,71 @@ class FileConfigSettingsRestXmlSerializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.dart index 6d00939f4f..2068d1d8e1 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.get_object_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,8 +30,9 @@ abstract class GetObjectOutput ); } - factory GetObjectOutput.build( - [void Function(GetObjectOutputBuilder) updates]) = _$GetObjectOutput; + factory GetObjectOutput.build([ + void Function(GetObjectOutputBuilder) updates, + ]) = _$GetObjectOutput; const GetObjectOutput._(); @@ -39,19 +40,18 @@ abstract class GetObjectOutput factory GetObjectOutput.fromResponse( _i3.Stream> payload, _i1.AWSBaseHttpResponse response, - ) => - GetObjectOutput.build((b) { - b.body = payload; - if (response.headers['Content-Length'] != null) { - b.contentLength = int.parse(response.headers['Content-Length']!); - } - if (response.headers['Content-Range'] != null) { - b.contentRange = response.headers['Content-Range']!; - } - }); + ) => GetObjectOutput.build((b) { + b.body = payload; + if (response.headers['Content-Length'] != null) { + b.contentLength = int.parse(response.headers['Content-Length']!); + } + if (response.headers['Content-Range'] != null) { + b.contentRange = response.headers['Content-Range']!; + } + }); static const List<_i2.SmithySerializer<_i3.Stream>>> serializers = [ - GetObjectOutputRestXmlSerializer() + GetObjectOutputRestXmlSerializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -66,27 +66,15 @@ abstract class GetObjectOutput _i3.Stream> getPayload() => body; @override - List get props => [ - body, - contentLength, - contentRange, - ]; + List get props => [body, contentLength, contentRange]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetObjectOutput') - ..add( - 'body', - body, - ) - ..add( - 'contentLength', - contentLength, - ) - ..add( - 'contentRange', - contentRange, - ); + final helper = + newBuiltValueToStringHelper('GetObjectOutput') + ..add('body', body) + ..add('contentLength', contentLength) + ..add('contentRange', contentRange); return helper.toString(); } } @@ -96,18 +84,12 @@ class GetObjectOutputRestXmlSerializer const GetObjectOutputRestXmlSerializer() : super('GetObjectOutput'); @override - Iterable get types => const [ - GetObjectOutput, - _$GetObjectOutput, - ]; + Iterable get types => const [GetObjectOutput, _$GetObjectOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i3.Stream> deserialize( @@ -116,17 +98,12 @@ class GetObjectOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>); + serialized, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>); } @override @@ -139,21 +116,17 @@ class GetObjectOutputRestXmlSerializer const _i2.XmlElementName( 'GetObjectOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), ), - )); + ); return result$; } } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.g.dart index aef0ac170a..5984cbbe51 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_output.g.dart @@ -17,9 +17,11 @@ class _$GetObjectOutput extends GetObjectOutput { factory _$GetObjectOutput([void Function(GetObjectOutputBuilder)? updates]) => (new GetObjectOutputBuilder()..update(updates))._build(); - _$GetObjectOutput._( - {required this.body, this.contentLength, this.contentRange}) - : super._() { + _$GetObjectOutput._({ + required this.body, + this.contentLength, + this.contentRange, + }) : super._() { BuiltValueNullFieldError.checkNotNull(body, r'GetObjectOutput', 'body'); } @@ -98,12 +100,17 @@ class GetObjectOutputBuilder GetObjectOutput build() => _build(); _$GetObjectOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetObjectOutput._( - body: BuiltValueNullFieldError.checkNotNull( - body, r'GetObjectOutput', 'body'), - contentLength: contentLength, - contentRange: contentRange); + body: BuiltValueNullFieldError.checkNotNull( + body, + r'GetObjectOutput', + 'body', + ), + contentLength: contentLength, + contentRange: contentRange, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.dart index d119d76e25..7e04c80df7 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.get_object_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -24,15 +24,12 @@ abstract class GetObjectRequest required String key, String? range, }) { - return _$GetObjectRequest._( - bucket: bucket, - key: key, - range: range, - ); + return _$GetObjectRequest._(bucket: bucket, key: key, range: range); } - factory GetObjectRequest.build( - [void Function(GetObjectRequestBuilder) updates]) = _$GetObjectRequest; + factory GetObjectRequest.build([ + void Function(GetObjectRequestBuilder) updates, + ]) = _$GetObjectRequest; const GetObjectRequest._(); @@ -40,18 +37,17 @@ abstract class GetObjectRequest GetObjectRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetObjectRequest.build((b) { - if (request.headers['Range'] != null) { - b.range = request.headers['Range']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => GetObjectRequest.build((b) { + if (request.headers['Range'] != null) { + b.range = request.headers['Range']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> serializers = [GetObjectRequestRestXmlSerializer()]; @@ -67,37 +63,22 @@ abstract class GetObjectRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override GetObjectRequestPayload getPayload() => GetObjectRequestPayload(); @override - List get props => [ - bucket, - key, - range, - ]; + List get props => [bucket, key, range]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetObjectRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'range', - range, - ); + final helper = + newBuiltValueToStringHelper('GetObjectRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('range', range); return helper.toString(); } } @@ -108,9 +89,9 @@ abstract class GetObjectRequestPayload implements Built, _i1.EmptyPayload { - factory GetObjectRequestPayload( - [void Function(GetObjectRequestPayloadBuilder) updates]) = - _$GetObjectRequestPayload; + factory GetObjectRequestPayload([ + void Function(GetObjectRequestPayloadBuilder) updates, + ]) = _$GetObjectRequestPayload; const GetObjectRequestPayload._(); @@ -130,19 +111,16 @@ class GetObjectRequestRestXmlSerializer @override Iterable get types => const [ - GetObjectRequest, - _$GetObjectRequest, - GetObjectRequestPayload, - _$GetObjectRequestPayload, - ]; + GetObjectRequest, + _$GetObjectRequest, + GetObjectRequestPayload, + _$GetObjectRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetObjectRequestPayload deserialize( @@ -163,7 +141,7 @@ class GetObjectRequestRestXmlSerializer const _i1.XmlElementName( 'GetObjectRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.g.dart index e5dc558ded..57f1c3ee35 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/get_object_request.g.dart @@ -14,14 +14,17 @@ class _$GetObjectRequest extends GetObjectRequest { @override final String? range; - factory _$GetObjectRequest( - [void Function(GetObjectRequestBuilder)? updates]) => - (new GetObjectRequestBuilder()..update(updates))._build(); + factory _$GetObjectRequest([ + void Function(GetObjectRequestBuilder)? updates, + ]) => (new GetObjectRequestBuilder()..update(updates))._build(); _$GetObjectRequest._({required this.bucket, required this.key, this.range}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'GetObjectRequest', 'bucket'); + bucket, + r'GetObjectRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull(key, r'GetObjectRequest', 'key'); } @@ -97,29 +100,37 @@ class GetObjectRequestBuilder GetObjectRequest build() => _build(); _$GetObjectRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetObjectRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'GetObjectRequest', 'bucket'), - key: BuiltValueNullFieldError.checkNotNull( - key, r'GetObjectRequest', 'key'), - range: range); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'GetObjectRequest', + 'bucket', + ), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'GetObjectRequest', + 'key', + ), + range: range, + ); replace(_$result); return _$result; } } class _$GetObjectRequestPayload extends GetObjectRequestPayload { - factory _$GetObjectRequestPayload( - [void Function(GetObjectRequestPayloadBuilder)? updates]) => - (new GetObjectRequestPayloadBuilder()..update(updates))._build(); + factory _$GetObjectRequestPayload([ + void Function(GetObjectRequestPayloadBuilder)? updates, + ]) => (new GetObjectRequestPayloadBuilder()..update(updates))._build(); _$GetObjectRequestPayload._() : super._(); @override GetObjectRequestPayload rebuild( - void Function(GetObjectRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetObjectRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetObjectRequestPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.dart index 7e6855ccc6..b1fb35730a 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestXmlSerializer() + OperationConfigRestXmlSerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestXmlSerializer const OperationConfigRestXmlSerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestXmlSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -101,16 +96,15 @@ class OperationConfigRestXmlSerializer const _i2.XmlElementName( 'OperationConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_config.dart index bad896f59b..60596eda1b 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestXmlSerializer() + RetryConfigRestXmlSerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestXmlSerializer const RetryConfigRestXmlSerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestXmlSerializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -120,24 +104,25 @@ class RetryConfigRestXmlSerializer const _i2.XmlElementName( 'RetryConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final RetryConfig(:maxAttempts, :mode) = object; if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_mode.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_mode.dart index 9bd6f1add2..d26367cb8c 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_addressing_style.dart index 828db6a1bb..9928a0bc87 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.dart index 42666b3282..01a6baac1b 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestXmlSerializer() + S3ConfigRestXmlSerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestXmlSerializer const S3ConfigRestXmlSerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestXmlSerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,36 +124,42 @@ class S3ConfigRestXmlSerializer const _i2.XmlElementName( 'S3Config', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.dart index dc13dc75e9..81f02257df 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestXmlSerializer() + ScopedConfigRestXmlSerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestXmlSerializer const ScopedConfigRestXmlSerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigRestXmlSerializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -188,68 +173,72 @@ class ScopedConfigRestXmlSerializer const _i3.XmlElementName( 'ScopedConfig', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ScopedConfig( :client, :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/copy_object_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/copy_object_operation.dart index 27ea724069..dd5e59527d 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/copy_object_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/copy_object_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.operation.copy_object_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,14 @@ import 'package:custom_v2/src/s3/model/copy_object_result.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class CopyObjectOperation extends _i1.HttpOperation { +class CopyObjectOperation + extends + _i1.HttpOperation< + CopyObjectRequestPayload, + CopyObjectRequest, + CopyObjectResult, + CopyObjectOutput + > { CopyObjectOperation({ required String region, Uri? baseUri, @@ -26,40 +32,47 @@ class CopyObjectOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + CopyObjectRequestPayload, + CopyObjectRequest, + CopyObjectResult, + CopyObjectOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, - responseInterceptors: <_i1.HttpResponseInterceptor>[ - const _i2.CheckErrorOnSuccess() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i2.CheckErrorOnSuccess()] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,15 +94,16 @@ class CopyObjectOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = _s3ClientConfig.usePathStyle + b.method = 'PUT'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=CopyObject' : r'/{Key+}?x-id=CopyObject'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.copySource.isNotEmpty) { - b.headers['x-amz-copy-source'] = input.copySource; - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.copySource.isNotEmpty) { + b.headers['x-amz-copy-source'] = input.copySource; + } + }); @override int successCode([CopyObjectOutput? output]) => 200; @@ -98,25 +112,18 @@ class CopyObjectOperation extends _i1.HttpOperation - CopyObjectOutput.fromResponse( - payload, - response, - ); + ) => CopyObjectOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'CopyObjectError', - ), - _i1.ErrorKind.server, - CopyObjectError, - statusCode: 500, - builder: CopyObjectError.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'CopyObjectError'), + _i1.ErrorKind.server, + CopyObjectError, + statusCode: 500, + builder: CopyObjectError.fromResponse, + ), + ]; @override String get runtimeTypeName => 'CopyObject'; @@ -152,11 +159,7 @@ class CopyObjectOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/get_object_operation.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/get_object_operation.dart index e47bf65288..a760009178 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/get_object_operation.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/operation/get_object_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.operation.get_object_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,14 @@ import 'package:custom_v2/src/s3/model/get_object_request.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class GetObjectOperation extends _i1.HttpOperation>, GetObjectOutput> { +class GetObjectOperation + extends + _i1.HttpOperation< + GetObjectRequestPayload, + GetObjectRequest, + _i2.Stream>, + GetObjectOutput + > { GetObjectOperation({ required String region, Uri? baseUri, @@ -24,40 +30,47 @@ class GetObjectOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol>, GetObjectOutput>> protocols = [ + _i1.HttpProtocol< + GetObjectRequestPayload, + GetObjectRequest, + _i2.Stream>, + GetObjectOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i3.WithSigV4( region: _region, service: _i5.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i4.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, - responseInterceptors: <_i1.HttpResponseInterceptor>[ - const _i3.CheckPartialResponse() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i3.CheckPartialResponse()] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,17 +92,18 @@ class GetObjectOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle + b.method = 'GET'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=GetObject' : r'/{Key+}?x-id=GetObject'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.range != null) { - if (input.range!.isNotEmpty) { - b.headers['Range'] = input.range!; - } - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.range != null) { + if (input.range!.isNotEmpty) { + b.headers['Range'] = input.range!; + } + } + }); @override int successCode([GetObjectOutput? output]) => 200; @@ -98,11 +112,7 @@ class GetObjectOperation extends _i1.HttpOperation> payload, _i5.AWSBaseHttpResponse response, - ) => - GetObjectOutput.fromResponse( - payload, - response, - ); + ) => GetObjectOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -141,11 +151,7 @@ class GetObjectOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_client.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_client.dart index 80bdafbded..855ee81cba 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_client.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.s3_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -24,13 +24,13 @@ class S3Client { const _i3.AWSCredentialsProvider.defaultChain(), List<_i4.HttpRequestInterceptor> requestInterceptors = const [], List<_i4.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -59,10 +59,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i4.SmithyOperation getObject( @@ -78,9 +75,6 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_server.dart b/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_server.dart index 4725a62942..af2873dd1d 100644 --- a/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_server.dart +++ b/packages/smithy/goldens/lib2/custom/lib/src/s3/s3_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library custom_v2.s3.s3_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,16 +28,8 @@ abstract class S3ServerBase extends _i1.HttpServerBase { late final Router _router = () { final service = _S3Server(this); final router = Router(); - router.add( - 'PUT', - r'//?x-id=CopyObject', - service.copyObject, - ); - router.add( - 'GET', - r'//?x-id=GetObject', - service.getObject, - ); + router.add('PUT', r'//?x-id=CopyObject', service.copyObject); + router.add('GET', r'//?x-id=GetObject', service.getObject); return router; }(); @@ -59,20 +51,24 @@ class _S3Server extends _i1.HttpServer { final S3ServerBase service; late final _i1.HttpProtocol< - CopyObjectRequestPayload, - CopyObjectRequest, - CopyObjectResult, - CopyObjectOutput> _copyObjectProtocol = _i2.RestXmlProtocol( + CopyObjectRequestPayload, + CopyObjectRequest, + CopyObjectResult, + CopyObjectOutput + > + _copyObjectProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, ); late final _i1.HttpProtocol< - GetObjectRequestPayload, - GetObjectRequest, - _i3.Stream>, - GetObjectOutput> _getObjectProtocol = _i2.RestXmlProtocol( + GetObjectRequestPayload, + GetObjectRequest, + _i3.Stream>, + GetObjectOutput + > + _getObjectProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, @@ -87,29 +83,24 @@ class _S3Server extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _copyObjectProtocol.contentType; try { - final payload = (await _copyObjectProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(CopyObjectRequestPayload), - ) as CopyObjectRequestPayload); + final payload = + (await _copyObjectProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(CopyObjectRequestPayload), + ) + as CopyObjectRequestPayload); final input = CopyObjectRequest.fromRequest( payload, awsRequest, - labels: { - 'Bucket': Bucket, - 'Key': Key, - }, - ); - final output = await service.copyObject( - input, - context, + labels: {'Bucket': Bucket, 'Key': Key}, ); + final output = await service.copyObject(input, context); const statusCode = 200; final body = await _copyObjectProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - CopyObjectOutput, - [FullType.nullable(CopyObjectResult)], - ), + specifiedType: const FullType(CopyObjectOutput, [ + FullType.nullable(CopyObjectResult), + ]), ); return _i4.Response( statusCode, @@ -120,10 +111,9 @@ class _S3Server extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'CopyObjectError'; final body = _copyObjectProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - CopyObjectError, - [FullType(CopyObjectError)], - ), + specifiedType: const FullType(CopyObjectError, [ + FullType(CopyObjectError), + ]), ); const statusCode = 500; return _i4.Response( @@ -132,10 +122,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -148,39 +135,26 @@ class _S3Server extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _getObjectProtocol.contentType; try { - final payload = (await _getObjectProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GetObjectRequestPayload), - ) as GetObjectRequestPayload); + final payload = + (await _getObjectProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(GetObjectRequestPayload), + ) + as GetObjectRequestPayload); final input = GetObjectRequest.fromRequest( payload, awsRequest, - labels: { - 'Bucket': Bucket, - 'Key': Key, - }, - ); - final output = await service.getObject( - input, - context, + labels: {'Bucket': Bucket, 'Key': Key}, ); + final output = await service.getObject(input, context); const statusCode = 200; final body = await _getObjectProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GetObjectOutput, - [ - FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ) - ], - ), + specifiedType: const FullType(GetObjectOutput, [ + FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ]), ); return _i4.Response( statusCode, @@ -188,10 +162,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/custom/pubspec.yaml b/packages/smithy/goldens/lib2/custom/pubspec.yaml index 7db50abd52..ad3b705a9f 100644 --- a/packages/smithy/goldens/lib2/custom/pubspec.yaml +++ b/packages/smithy/goldens/lib2/custom/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,7 +16,7 @@ dependencies: aws_common: path: ../../../../aws_common built_value: ^8.6.0 - meta: ^1.7.0 + meta: ^1.16.0 built_collection: ^5.0.0 shelf_router: ^1.1.0 shelf: ^1.4.0 @@ -41,6 +41,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/custom/test/custom/default_values_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/custom/default_values_operation_test.dart index c93baa5652..626013b29c 100644 --- a/packages/smithy/goldens/lib2/custom/test/custom/default_values_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/custom/default_values_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.custom.test.default_values_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,106 +15,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'DefaultValuesRequestSerialization (request)', - () async { - await _i2.httpRequestTest( - operation: DefaultValuesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DefaultValuesRequestSerialization', - documentation: - 'Default values SHOULD be serialized and MUST be when @required', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "requiredDefaultInt": 42,\n "optionalDefaultInt": 42,\n "requiredDefaultString": "default",\n "optionalDefaultString": "default",\n "requiredDefaultEnum": "A",\n "optionalDefaultEnum": "A",\n "requiredDefaultList": [],\n "optionalDefaultList": [],\n "requiredDefaultMap": {},\n "optionalDefaultMap": {},\n "requiredDefaultBool": true,\n "optionalDefaultBool": true\n}\n', - bodyMediaType: 'application/json', - params: { - 'requiredDefaultInt': null, - 'requiredDefaultString': null, - 'requiredDefaultEnum': null, - 'requiredDefaultList': null, - 'requiredDefaultMap': null, - 'requiredDefaultBool': null, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/default', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DefaultValuesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DefaultValuesResponseSerialization (response)', - () async { - await _i2.httpResponseTest( - operation: DefaultValuesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DefaultValuesResponseSerialization', - documentation: - 'Default values SHOULD be serialized and MUST be when @required', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "requiredDefaultInt": 42,\n "requiredDefaultString": "default",\n "requiredDefaultEnum": "A",\n "requiredDefaultList": [],\n "requiredDefaultMap": {},\n "requiredDefaultBool": true\n}\n', - bodyMediaType: 'application/json', - params: { - 'requiredDefaultInt': 42, - 'optionalDefaultInt': 42, - 'nullifiedDefaultInt': null, - 'requiredDefaultString': 'default', - 'optionalDefaultString': 'default', - 'nullifiedDefaultString': null, - 'requiredDefaultEnum': 'A', - 'optionalDefaultEnum': 'A', - 'nullifiedDefaultEnum': null, - 'requiredDefaultList': [], - 'optionalDefaultList': [], - 'nullifiedDefaultList': null, - 'requiredDefaultMap': {}, - 'optionalDefaultMap': {}, - 'nullifiedDefaultMap': null, - 'requiredDefaultBool': true, - 'optionalDefaultBool': true, - 'nullifiedDefaultBool': null, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DefaultValuesOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('DefaultValuesRequestSerialization (request)', () async { + await _i2.httpRequestTest( + operation: DefaultValuesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DefaultValuesRequestSerialization', + documentation: + 'Default values SHOULD be serialized and MUST be when @required', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "requiredDefaultInt": 42,\n "optionalDefaultInt": 42,\n "requiredDefaultString": "default",\n "optionalDefaultString": "default",\n "requiredDefaultEnum": "A",\n "optionalDefaultEnum": "A",\n "requiredDefaultList": [],\n "optionalDefaultList": [],\n "requiredDefaultMap": {},\n "optionalDefaultMap": {},\n "requiredDefaultBool": true,\n "optionalDefaultBool": true\n}\n', + bodyMediaType: 'application/json', + params: { + 'requiredDefaultInt': null, + 'requiredDefaultString': null, + 'requiredDefaultEnum': null, + 'requiredDefaultList': null, + 'requiredDefaultMap': null, + 'requiredDefaultBool': null, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/default', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DefaultValuesInputRestJson1Serializer()], + ); + }); + _i1.test('DefaultValuesResponseSerialization (response)', () async { + await _i2.httpResponseTest( + operation: DefaultValuesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DefaultValuesResponseSerialization', + documentation: + 'Default values SHOULD be serialized and MUST be when @required', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "requiredDefaultInt": 42,\n "requiredDefaultString": "default",\n "requiredDefaultEnum": "A",\n "requiredDefaultList": [],\n "requiredDefaultMap": {},\n "requiredDefaultBool": true\n}\n', + bodyMediaType: 'application/json', + params: { + 'requiredDefaultInt': 42, + 'optionalDefaultInt': 42, + 'nullifiedDefaultInt': null, + 'requiredDefaultString': 'default', + 'optionalDefaultString': 'default', + 'nullifiedDefaultString': null, + 'requiredDefaultEnum': 'A', + 'optionalDefaultEnum': 'A', + 'nullifiedDefaultEnum': null, + 'requiredDefaultList': [], + 'optionalDefaultList': [], + 'nullifiedDefaultList': null, + 'requiredDefaultMap': {}, + 'optionalDefaultMap': {}, + 'nullifiedDefaultMap': null, + 'requiredDefaultBool': true, + 'optionalDefaultBool': true, + 'nullifiedDefaultBool': null, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DefaultValuesOutputRestJson1Serializer()], + ); + }); } class DefaultValuesInputRestJson1Serializer @@ -126,11 +114,8 @@ class DefaultValuesInputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DefaultValuesInput deserialize( @@ -149,122 +134,152 @@ class DefaultValuesInputRestJson1Serializer } switch (key) { case 'requiredDefaultInt': - result.requiredDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.requiredDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'optionalDefaultInt': - result.optionalDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.optionalDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'nullifiedDefaultInt': - result.nullifiedDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.nullifiedDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'requiredDefaultString': - result.requiredDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requiredDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'optionalDefaultString': - result.optionalDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optionalDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nullifiedDefaultString': - result.nullifiedDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullifiedDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'requiredDefaultEnum': - result.requiredDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.requiredDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'optionalDefaultEnum': - result.optionalDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.optionalDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'nullifiedDefaultEnum': - result.nullifiedDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.nullifiedDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'requiredDefaultList': - result.requiredDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.requiredDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'optionalDefaultList': - result.optionalDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.optionalDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'nullifiedDefaultList': - result.nullifiedDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.nullifiedDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'requiredDefaultMap': - result.requiredDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.requiredDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'optionalDefaultMap': - result.optionalDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.optionalDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'nullifiedDefaultMap': - result.nullifiedDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.nullifiedDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'requiredDefaultBool': - result.requiredDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.requiredDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'optionalDefaultBool': - result.optionalDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.optionalDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'nullifiedDefaultBool': - result.nullifiedDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.nullifiedDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -290,11 +305,8 @@ class DefaultValuesOutputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DefaultValuesOutput deserialize( @@ -313,122 +325,152 @@ class DefaultValuesOutputRestJson1Serializer } switch (key) { case 'requiredDefaultInt': - result.requiredDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.requiredDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'optionalDefaultInt': - result.optionalDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.optionalDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'nullifiedDefaultInt': - result.nullifiedDefaultInt = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.nullifiedDefaultInt = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'requiredDefaultString': - result.requiredDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.requiredDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'optionalDefaultString': - result.optionalDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.optionalDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nullifiedDefaultString': - result.nullifiedDefaultString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullifiedDefaultString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'requiredDefaultEnum': - result.requiredDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.requiredDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'optionalDefaultEnum': - result.optionalDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.optionalDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'nullifiedDefaultEnum': - result.nullifiedDefaultEnum = (serializers.deserialize( - value, - specifiedType: const FullType(DefaultEnum), - ) as DefaultEnum); + result.nullifiedDefaultEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(DefaultEnum), + ) + as DefaultEnum); case 'requiredDefaultList': - result.requiredDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.requiredDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'optionalDefaultList': - result.optionalDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.optionalDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'nullifiedDefaultList': - result.nullifiedDefaultList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.nullifiedDefaultList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'requiredDefaultMap': - result.requiredDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.requiredDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'optionalDefaultMap': - result.optionalDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.optionalDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'nullifiedDefaultMap': - result.nullifiedDefaultMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.nullifiedDefaultMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'requiredDefaultBool': - result.requiredDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.requiredDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'optionalDefaultBool': - result.optionalDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.optionalDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'nullifiedDefaultBool': - result.nullifiedDefaultBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.nullifiedDefaultBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } diff --git a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_not_required_with_member_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_not_required_with_member_operation_test.dart index 696eb99587..43630619d0 100644 --- a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_not_required_with_member_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_not_required_with_member_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.custom.test.http_checksum_not_required_with_member_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,115 +15,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpChecksumNotRequiredWithMemberNoAlgorithm (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumNotRequiredWithMemberOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumNotRequiredWithMemberNoAlgorithm', - documentation: - 'Adds no checksum when not required and no algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: {'content': 'hello, world'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/octet-stream'}, - forbidHeaders: [ - 'Content-MD5', - 'x-amz-request-algorithm', - ], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/notRequiredWithMember', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumNotRequiredWithMemberInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'HttpChecksumNotRequiredWithMemberWithSHA1 (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumNotRequiredWithMemberOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumNotRequiredWithMemberWithSHA1', - documentation: - 'Adds a SHA-1 checksum when that algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: { - 'checksumAlgorithm': 'SHA1', - 'content': 'hello, world', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'x-amz-checksum-sha1': 't+I+wpryKwtOQdox6GjVciYSHIQ=', - 'x-amz-request-algorithm': 'SHA1', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/notRequiredWithMember', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumNotRequiredWithMemberInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('HttpChecksumNotRequiredWithMemberNoAlgorithm (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumNotRequiredWithMemberOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumNotRequiredWithMemberNoAlgorithm', + documentation: + 'Adds no checksum when not required and no algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/octet-stream'}, + forbidHeaders: ['Content-MD5', 'x-amz-request-algorithm'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/notRequiredWithMember', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumNotRequiredWithMemberInputRestJson1Serializer(), + ], + ); + }); + _i1.test('HttpChecksumNotRequiredWithMemberWithSHA1 (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumNotRequiredWithMemberOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumNotRequiredWithMemberWithSHA1', + documentation: 'Adds a SHA-1 checksum when that algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'checksumAlgorithm': 'SHA1', 'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'x-amz-checksum-sha1': 't+I+wpryKwtOQdox6GjVciYSHIQ=', + 'x-amz-request-algorithm': 'SHA1', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/notRequiredWithMember', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumNotRequiredWithMemberInputRestJson1Serializer(), + ], + ); + }); } -class HttpChecksumNotRequiredWithMemberInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpChecksumNotRequiredWithMemberInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const HttpChecksumNotRequiredWithMemberInputRestJson1Serializer() - : super('HttpChecksumNotRequiredWithMemberInput'); + : super('HttpChecksumNotRequiredWithMemberInput'); @override Iterable get types => const [HttpChecksumNotRequiredWithMemberInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumNotRequiredWithMemberInput deserialize( @@ -142,15 +121,19 @@ class HttpChecksumNotRequiredWithMemberInputRestJson1Serializer extends _i3 } switch (key) { case 'checksumAlgorithm': - result.checksumAlgorithm = (serializers.deserialize( - value, - specifiedType: const FullType(ChecksumAlgorithm), - ) as ChecksumAlgorithm); + result.checksumAlgorithm = + (serializers.deserialize( + value, + specifiedType: const FullType(ChecksumAlgorithm), + ) + as ChecksumAlgorithm); case 'content': - result.content = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.content = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_not_required_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_not_required_operation_test.dart index 1a2608c7d1..03cfabe4b4 100644 --- a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_not_required_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_not_required_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.custom.test.http_checksum_really_not_required_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,64 +15,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpChecksumReallyNotRequiredNoAlgorithm (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumReallyNotRequiredOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumReallyNotRequiredNoAlgorithm', - documentation: - 'Adds no checksum since @httpChecksumRequired supercedes @httpChecksum', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: {'content': 'hello, world'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/octet-stream'}, - forbidHeaders: ['x-amz-request-algorithm'], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/reallyNotRequired', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumReallyNotRequiredInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('HttpChecksumReallyNotRequiredNoAlgorithm (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumReallyNotRequiredOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumReallyNotRequiredNoAlgorithm', + documentation: + 'Adds no checksum since @httpChecksumRequired supercedes @httpChecksum', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/octet-stream'}, + forbidHeaders: ['x-amz-request-algorithm'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/reallyNotRequired', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumReallyNotRequiredInputRestJson1Serializer(), + ], + ); + }); } class HttpChecksumReallyNotRequiredInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpChecksumReallyNotRequiredInputRestJson1Serializer() - : super('HttpChecksumReallyNotRequiredInput'); + : super('HttpChecksumReallyNotRequiredInput'); @override Iterable get types => const [HttpChecksumReallyNotRequiredInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumReallyNotRequiredInput deserialize( @@ -91,15 +82,19 @@ class HttpChecksumReallyNotRequiredInputRestJson1Serializer } switch (key) { case 'checksumAlgorithm': - result.checksumAlgorithm = (serializers.deserialize( - value, - specifiedType: const FullType(ChecksumAlgorithm), - ) as ChecksumAlgorithm); + result.checksumAlgorithm = + (serializers.deserialize( + value, + specifiedType: const FullType(ChecksumAlgorithm), + ) + as ChecksumAlgorithm); case 'content': - result.content = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.content = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_required_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_required_operation_test.dart index dceee0f35c..d5f9381d9f 100644 --- a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_required_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_really_required_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.custom.test.http_checksum_really_required_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,67 +15,58 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpChecksumReallyRequiredNoAlgorithm (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumReallyRequiredOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumReallyRequiredNoAlgorithm', - documentation: - 'Adds an MD5 checksum when required and no algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: {'content': 'hello, world'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'Content-MD5': '5NfxtO0uQtFYmPSyewGdpA==', - }, - forbidHeaders: ['x-amz-request-algorithm'], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/reallyRequired', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumReallyRequiredInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('HttpChecksumReallyRequiredNoAlgorithm (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumReallyRequiredOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumReallyRequiredNoAlgorithm', + documentation: + 'Adds an MD5 checksum when required and no algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'Content-MD5': '5NfxtO0uQtFYmPSyewGdpA==', + }, + forbidHeaders: ['x-amz-request-algorithm'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/reallyRequired', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumReallyRequiredInputRestJson1Serializer(), + ], + ); + }); } class HttpChecksumReallyRequiredInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpChecksumReallyRequiredInputRestJson1Serializer() - : super('HttpChecksumReallyRequiredInput'); + : super('HttpChecksumReallyRequiredInput'); @override Iterable get types => const [HttpChecksumReallyRequiredInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumReallyRequiredInput deserialize( @@ -94,15 +85,19 @@ class HttpChecksumReallyRequiredInputRestJson1Serializer } switch (key) { case 'checksumAlgorithm': - result.checksumAlgorithm = (serializers.deserialize( - value, - specifiedType: const FullType(ChecksumAlgorithm), - ) as ChecksumAlgorithm); + result.checksumAlgorithm = + (serializers.deserialize( + value, + specifiedType: const FullType(ChecksumAlgorithm), + ) + as ChecksumAlgorithm); case 'content': - result.content = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.content = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_operation_test.dart index 3452ad31bc..9f72040b1b 100644 --- a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.custom.test.http_checksum_required_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,67 +14,56 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpChecksumRequiredNoAlgorithm (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumRequiredNoAlgorithm', - documentation: - 'Adds an MD5 checksum when required and no algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: {'content': 'hello, world'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'Content-MD5': '5NfxtO0uQtFYmPSyewGdpA==', - }, - forbidHeaders: ['x-amz-request-algorithm'], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/required', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('HttpChecksumRequiredNoAlgorithm (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumRequiredNoAlgorithm', + documentation: + 'Adds an MD5 checksum when required and no algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'Content-MD5': '5NfxtO0uQtFYmPSyewGdpA==', + }, + forbidHeaders: ['x-amz-request-algorithm'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/required', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpChecksumRequiredInputRestJson1Serializer()], + ); + }); } class HttpChecksumRequiredInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpChecksumRequiredInputRestJson1Serializer() - : super('HttpChecksumRequiredInput'); + : super('HttpChecksumRequiredInput'); @override Iterable get types => const [HttpChecksumRequiredInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumRequiredInput deserialize( @@ -93,10 +82,12 @@ class HttpChecksumRequiredInputRestJson1Serializer } switch (key) { case 'content': - result.content = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.content = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_with_member_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_with_member_operation_test.dart index 939a7d74c3..5ee550a794 100644 --- a/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_with_member_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/custom/http_checksum_required_with_member_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.custom.test.http_checksum_required_with_member_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,260 +15,213 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpChecksumRequiredWithMemberNoAlgorithm (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredWithMemberOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumRequiredWithMemberNoAlgorithm', - documentation: - 'Adds an MD5 checksum when required and no algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: {'content': 'hello, world'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'Content-MD5': '5NfxtO0uQtFYmPSyewGdpA==', - }, - forbidHeaders: ['x-amz-request-algorithm'], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requiredWithMember', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredWithMemberInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'HttpChecksumRequiredWithMemberWithSHA1 (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredWithMemberOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumRequiredWithMemberWithSHA1', - documentation: - 'Adds a SHA-1 checksum when that algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: { - 'checksumAlgorithm': 'SHA1', - 'content': 'hello, world', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'x-amz-checksum-sha1': 't+I+wpryKwtOQdox6GjVciYSHIQ=', - 'x-amz-request-algorithm': 'SHA1', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requiredWithMember', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredWithMemberInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'HttpChecksumRequiredWithMemberWithSHA256 (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredWithMemberOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumRequiredWithMemberWithSHA256', - documentation: - 'Adds a SHA-256 checksum when that algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: { - 'checksumAlgorithm': 'SHA256', - 'content': 'hello, world', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'x-amz-checksum-sha256': - 'Ccp+TqpuiunH0mEWcSkYSINkTQffuny/vEyKLgg2DVs=', - 'x-amz-request-algorithm': 'SHA256', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requiredWithMember', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredWithMemberInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'HttpChecksumRequiredWithMemberWithCRC32 (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredWithMemberOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumRequiredWithMemberWithCRC32', - documentation: - 'Adds a CRC32 checksum when that algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: { - 'checksumAlgorithm': 'CRC32', - 'content': 'hello, world', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'x-amz-checksum-crc32': '/6tyOg==', - 'x-amz-request-algorithm': 'CRC32', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requiredWithMember', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredWithMemberInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'HttpChecksumRequiredWithMemberWithCRC32C (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredWithMemberOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpChecksumRequiredWithMemberWithCRC32C', - documentation: - 'Adds a CRC32C checksum when that algorithm is provided', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: 'application/octet-stream', - params: { - 'checksumAlgorithm': 'CRC32C', - 'content': 'hello, world', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'x-amz-checksum-crc32c': 'aZmkHw==', - 'x-amz-request-algorithm': 'CRC32C', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requiredWithMember', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredWithMemberInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('HttpChecksumRequiredWithMemberNoAlgorithm (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredWithMemberOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumRequiredWithMemberNoAlgorithm', + documentation: + 'Adds an MD5 checksum when required and no algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'Content-MD5': '5NfxtO0uQtFYmPSyewGdpA==', + }, + forbidHeaders: ['x-amz-request-algorithm'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requiredWithMember', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumRequiredWithMemberInputRestJson1Serializer(), + ], + ); + }); + _i1.test('HttpChecksumRequiredWithMemberWithSHA1 (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredWithMemberOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumRequiredWithMemberWithSHA1', + documentation: 'Adds a SHA-1 checksum when that algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'checksumAlgorithm': 'SHA1', 'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'x-amz-checksum-sha1': 't+I+wpryKwtOQdox6GjVciYSHIQ=', + 'x-amz-request-algorithm': 'SHA1', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requiredWithMember', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumRequiredWithMemberInputRestJson1Serializer(), + ], + ); + }); + _i1.test('HttpChecksumRequiredWithMemberWithSHA256 (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredWithMemberOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumRequiredWithMemberWithSHA256', + documentation: + 'Adds a SHA-256 checksum when that algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'checksumAlgorithm': 'SHA256', 'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'x-amz-checksum-sha256': + 'Ccp+TqpuiunH0mEWcSkYSINkTQffuny/vEyKLgg2DVs=', + 'x-amz-request-algorithm': 'SHA256', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requiredWithMember', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumRequiredWithMemberInputRestJson1Serializer(), + ], + ); + }); + _i1.test('HttpChecksumRequiredWithMemberWithCRC32 (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredWithMemberOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumRequiredWithMemberWithCRC32', + documentation: 'Adds a CRC32 checksum when that algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'checksumAlgorithm': 'CRC32', 'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'x-amz-checksum-crc32': '/6tyOg==', + 'x-amz-request-algorithm': 'CRC32', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requiredWithMember', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumRequiredWithMemberInputRestJson1Serializer(), + ], + ); + }); + _i1.test('HttpChecksumRequiredWithMemberWithCRC32C (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredWithMemberOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpChecksumRequiredWithMemberWithCRC32C', + documentation: 'Adds a CRC32C checksum when that algorithm is provided', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'hello, world', + bodyMediaType: 'application/octet-stream', + params: {'checksumAlgorithm': 'CRC32C', 'content': 'hello, world'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/octet-stream', + 'x-amz-checksum-crc32c': 'aZmkHw==', + 'x-amz-request-algorithm': 'CRC32C', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requiredWithMember', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumRequiredWithMemberInputRestJson1Serializer(), + ], + ); + }); } -class HttpChecksumRequiredWithMemberInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpChecksumRequiredWithMemberInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const HttpChecksumRequiredWithMemberInputRestJson1Serializer() - : super('HttpChecksumRequiredWithMemberInput'); + : super('HttpChecksumRequiredWithMemberInput'); @override Iterable get types => const [HttpChecksumRequiredWithMemberInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumRequiredWithMemberInput deserialize( @@ -287,15 +240,19 @@ class HttpChecksumRequiredWithMemberInputRestJson1Serializer extends _i3 } switch (key) { case 'checksumAlgorithm': - result.checksumAlgorithm = (serializers.deserialize( - value, - specifiedType: const FullType(ChecksumAlgorithm), - ) as ChecksumAlgorithm); + result.checksumAlgorithm = + (serializers.deserialize( + value, + specifiedType: const FullType(ChecksumAlgorithm), + ) + as ChecksumAlgorithm); case 'content': - result.content = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.content = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/custom/test/s3/copy_object_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/s3/copy_object_operation_test.dart index 9809fb7d05..684204e370 100644 --- a/packages/smithy/goldens/lib2/custom/test/s3/copy_object_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/s3/copy_object_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.s3.test.copy_object_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,98 +17,83 @@ import 'package:smithy_test/smithy_test.dart' as _i3; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'CopyObjectSuccess (response)', - () async { - const s3ClientConfig = _i2.S3ClientConfig(); - await _i3.httpResponseTest( - operation: CopyObjectOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('CopyObjectSuccess (response)', () async { + const s3ClientConfig = _i2.S3ClientConfig(); + await _i3.httpResponseTest( + operation: CopyObjectOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i3.HttpResponseTestCase( - id: 'CopyObjectSuccess', - documentation: - ' S3 clients should properly decode a successful response.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '123', - bodyMediaType: null, - params: { - 'CopyObjectResult': {'ETag': '123'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, + ), + testCase: const _i3.HttpResponseTestCase( + id: 'CopyObjectSuccess', + documentation: + ' S3 clients should properly decode a successful response.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '123', + bodyMediaType: null, + params: { + 'CopyObjectResult': {'ETag': '123'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + CopyObjectOutputRestXmlSerializer(), + CopyObjectResultRestXmlSerializer(), + ], + ); + }); + _i1.test('CopyObjectErrorOnSuccess (error)', () async { + const s3ClientConfig = _i2.S3ClientConfig(); + await _i3.httpErrorResponseTest< + CopyObjectRequestPayload, + CopyObjectRequest, + CopyObjectResult?, + CopyObjectOutput, + CopyObjectError + >( + operation: CopyObjectOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - outputSerializers: const [ - CopyObjectOutputRestXmlSerializer(), - CopyObjectResultRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'CopyObjectErrorOnSuccess (error)', - () async { - const s3ClientConfig = _i2.S3ClientConfig(); - await _i3.httpErrorResponseTest< - CopyObjectRequestPayload, - CopyObjectRequest, - CopyObjectResult?, - CopyObjectOutput, - CopyObjectError>( - operation: CopyObjectOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i3.HttpResponseTestCase( - id: 'CopyObjectErrorOnSuccess', - documentation: - ' S3 clients should properly decode an error response on a 200 status code.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - 'CopyObjectError', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - errorSerializers: const [CopyObjectErrorRestXmlSerializer()], - ); - }, - ); + ), + testCase: const _i3.HttpResponseTestCase( + id: 'CopyObjectErrorOnSuccess', + documentation: + ' S3 clients should properly decode an error response on a 200 status code.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + 'CopyObjectError', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + errorSerializers: const [CopyObjectErrorRestXmlSerializer()], + ); + }); } class CopyObjectRequestRestXmlSerializer @@ -120,11 +105,8 @@ class CopyObjectRequestRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectRequest deserialize( @@ -143,20 +125,26 @@ class CopyObjectRequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'CopySource': - result.copySource = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.copySource = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -182,11 +170,8 @@ class CopyObjectOutputRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectOutput deserialize( @@ -205,10 +190,13 @@ class CopyObjectOutputRestXmlSerializer } switch (key) { case 'CopyObjectResult': - result.copyObjectResult.replace((serializers.deserialize( - value, - specifiedType: const FullType(CopyObjectResult), - ) as CopyObjectResult)); + result.copyObjectResult.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CopyObjectResult), + ) + as CopyObjectResult), + ); } } @@ -234,11 +222,8 @@ class CopyObjectResultRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectResult deserialize( @@ -257,10 +242,12 @@ class CopyObjectResultRestXmlSerializer } switch (key) { case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -286,11 +273,8 @@ class CopyObjectErrorRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectError deserialize( diff --git a/packages/smithy/goldens/lib2/custom/test/s3/get_object_operation_test.dart b/packages/smithy/goldens/lib2/custom/test/s3/get_object_operation_test.dart index e5ecb8b54c..784e135f48 100644 --- a/packages/smithy/goldens/lib2/custom/test/s3/get_object_operation_test.dart +++ b/packages/smithy/goldens/lib2/custom/test/s3/get_object_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library custom_v2.s3.test.get_object_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,96 +17,74 @@ import 'package:smithy_test/smithy_test.dart' as _i3; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'GetObjectFullResponse (response)', - () async { - const s3ClientConfig = _i2.S3ClientConfig(); - await _i3.httpResponseTest( - operation: GetObjectOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('GetObjectFullResponse (response)', () async { + const s3ClientConfig = _i2.S3ClientConfig(); + await _i3.httpResponseTest( + operation: GetObjectOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i3.HttpResponseTestCase( - id: 'GetObjectFullResponse', - documentation: - ' S3 clients should properly decode a full response (as indicated by a 200 status code).\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'hello, world', - bodyMediaType: null, - params: { - 'Body': 'aGVsbG8sIHdvcmxk', - 'ContentLength': 12, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Length': '12'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, + ), + testCase: const _i3.HttpResponseTestCase( + id: 'GetObjectFullResponse', + documentation: + ' S3 clients should properly decode a full response (as indicated by a 200 status code).\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'hello, world', + bodyMediaType: null, + params: {'Body': 'aGVsbG8sIHdvcmxk', 'ContentLength': 12}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Length': '12'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GetObjectOutputRestXmlSerializer()], + ); + }); + _i1.test('GetObjectPartialResponse (response)', () async { + const s3ClientConfig = _i2.S3ClientConfig(); + await _i3.httpResponseTest( + operation: GetObjectOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - outputSerializers: const [GetObjectOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'GetObjectPartialResponse (response)', - () async { - const s3ClientConfig = _i2.S3ClientConfig(); - await _i3.httpResponseTest( - operation: GetObjectOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i3.HttpResponseTestCase( - id: 'GetObjectPartialResponse', - documentation: - ' S3 clients should properly decode a partial response (as indicated by a 206 status code).\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'hello', - bodyMediaType: null, - params: { - 'Body': 'aGVsbG8=', - 'ContentLength': 5, - 'ContentRange': 'bytes 0-5/12', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Length': '5', - 'Content-Range': 'bytes 0-5/12', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 206, - ), - outputSerializers: const [GetObjectOutputRestXmlSerializer()], - ); - }, - ); + ), + testCase: const _i3.HttpResponseTestCase( + id: 'GetObjectPartialResponse', + documentation: + ' S3 clients should properly decode a partial response (as indicated by a 206 status code).\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'hello', + bodyMediaType: null, + params: { + 'Body': 'aGVsbG8=', + 'ContentLength': 5, + 'ContentRange': 'bytes 0-5/12', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Length': '5', 'Content-Range': 'bytes 0-5/12'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 206, + ), + outputSerializers: const [GetObjectOutputRestXmlSerializer()], + ); + }); } class GetObjectRequestRestXmlSerializer @@ -118,11 +96,8 @@ class GetObjectRequestRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetObjectRequest deserialize( @@ -141,20 +116,26 @@ class GetObjectRequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Range': - result.range = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.range = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -180,11 +161,8 @@ class GetObjectOutputRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetObjectOutput deserialize( @@ -203,28 +181,28 @@ class GetObjectOutputRestXmlSerializer } switch (key) { case 'Body': - result.body = (serializers.deserialize( - value, - specifiedType: const FullType( - _i6.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i6.Stream>); + result.body = + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i6.Stream>); case 'ContentLength': - result.contentLength = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.contentLength = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ContentRange': - result.contentRange = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.contentRange = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/ec2_protocol.dart b/packages/smithy/goldens/lib2/ec2Query/lib/ec2_protocol.dart index 5e4245f74b..64cd6d99a4 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/ec2_protocol.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/ec2_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// An EC2 query service that sends query requests and XML responses. library ec2_query_v2.ec2_protocol; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart index 644795a28e..821849b230 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'EC2 Protocol'; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/serializers.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/serializers.dart index 997c32a8b7..82a9b599a2 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -96,78 +96,36 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(GreetingStruct)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(GreetingStruct)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(IntegerEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(IntegerEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(IntegerEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart index 7ab671f607..2385c7e321 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.ec2_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -60,11 +60,11 @@ class Ec2ProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -76,17 +76,15 @@ class Ec2ProtocolClient { final List<_i2.HttpResponseInterceptor> _responseInterceptors; - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. @@ -99,10 +97,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -111,10 +106,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -126,37 +118,30 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -165,24 +150,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response". - _i2.SmithyOperation ignoresWrappingXmlName( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation ignoresWrappingXmlName({ + _i1.AWSHttpClient? client, + }) { return IgnoresWrappingXmlNameOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes nested and recursive structure members. @@ -195,24 +175,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -225,10 +200,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes simple and complex lists. @@ -241,10 +213,7 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. @@ -257,24 +226,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes - _i2.SmithyOperation recursiveXmlShapes( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation recursiveXmlShapes({ + _i1.AWSHttpClient? client, + }) { return RecursiveXmlShapesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test serializes strings, numbers, and boolean values. @@ -287,23 +251,17 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation - simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { + simpleScalarXmlProperties({_i1.AWSHttpClient? client}) { return SimpleScalarXmlPropertiesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Blobs are base64 encoded @@ -313,36 +271,29 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyBlobs( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyBlobs({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyBlobsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlEmptyLists( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlEmptyLists({ + _i1.AWSHttpClient? client, + }) { return XmlEmptyListsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -352,24 +303,19 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes intEnums as top level properties, in lists, sets, and maps. - _i2.SmithyOperation xmlIntEnums( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlIntEnums({ + _i1.AWSHttpClient? client, + }) { return XmlIntEnumsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. @@ -379,36 +325,29 @@ class Ec2ProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation xmlNamespaces( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlNamespaces({ + _i1.AWSHttpClient? client, + }) { return XmlNamespacesOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. - _i2.SmithyOperation xmlTimestamps( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation xmlTimestamps({ + _i1.AWSHttpClient? client, + }) { return XmlTimestampsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart index 684cd2d0e4..12cf70cd22 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/ec2_protocol_server.dart @@ -1,4 +1,4 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.ec2_protocol_server; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.dart index d472b0ea8f..85735c52af 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigEc2QuerySerializer() + AwsConfigEc2QuerySerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigEc2QuerySerializer const AwsConfigEc2QuerySerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigEc2QuerySerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -119,24 +104,28 @@ class AwsConfigEc2QuerySerializer const _i2.XmlElementName( 'AwsConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('ClockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('ScopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.dart index 8901e8a513..688d89c819 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigEc2QuerySerializer() + ClientConfigEc2QuerySerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigEc2QuerySerializer const ClientConfigEc2QuerySerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigEc2QuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -189,7 +179,7 @@ class ClientConfigEc2QuerySerializer const _i2.XmlElementName( 'ClientConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -198,63 +188,71 @@ class ClientConfigEc2QuerySerializer :region, :s3, :retryConfig, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('Aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('Aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('Aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('Region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('S3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('Retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('Aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.dart index eb0c2653b0..719cbbf225 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,8 @@ abstract class ComplexError Built, _i2.SmithyHttpException { /// This error is thrown when a request is invalid. - factory ComplexError({ - String? topLevel, - ComplexNestedErrorData? nested, - }) { - return _$ComplexError._( - topLevel: topLevel, - nested: nested, - ); + factory ComplexError({String? topLevel, ComplexNestedErrorData? nested}) { + return _$ComplexError._(topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -38,23 +32,22 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorEc2QuerySerializer() + ComplexErrorEc2QuerySerializer(), ]; String? get topLevel; ComplexNestedErrorData? get nested; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.ec2', + shape: 'ComplexError', + ); @override String? get message => null; @@ -72,22 +65,14 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - topLevel, - nested, - ]; + List get props => [topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -97,18 +82,12 @@ class ComplexErrorEc2QuerySerializer const ComplexErrorEc2QuerySerializer() : super('ComplexError'); @override - Iterable get types => const [ - ComplexError, - _$ComplexError, - ]; + Iterable get types => const [ComplexError, _$ComplexError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexError deserialize( @@ -143,15 +122,20 @@ class ComplexErrorEc2QuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -168,24 +152,28 @@ class ComplexErrorEc2QuerySerializer const _i2.XmlElementName( 'ComplexErrorResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexError(:topLevel, :nested) = object; if (topLevel != null) { result$ ..add(const _i2.XmlElementName('TopLevel')) - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart index 90447f29b6..cdded2a444 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.topLevel, this.nested, this.statusCode, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -99,12 +99,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - topLevel: topLevel, - nested: _nested?.build(), - statusCode: statusCode, - headers: headers); + topLevel: topLevel, + nested: _nested?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -112,7 +114,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart index a0ef5f82ca..a7e98a62c5 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataEc2QuerySerializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataEc2QuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,16 +93,15 @@ class ComplexNestedErrorDataEc2QuerySerializer const _i2.XmlElementName( 'ComplexNestedErrorDataResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final ComplexNestedErrorData(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart index cc4ff4f58a..dfe12fc6fe 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputEc2QuerySerializer() + DatetimeOffsetsOutputEc2QuerySerializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputEc2QuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -105,16 +98,15 @@ class DatetimeOffsetsOutputEc2QuerySerializer const _i2.XmlElementName( 'DatetimeOffsetsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final DatetimeOffsetsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('Datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart index 7c744b2747..6cc4e0e855 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputEc2QuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputInputEc2QuerySerializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -89,7 +87,7 @@ class EmptyInputAndEmptyOutputInputEc2QuerySerializer const _i1.XmlElementName( 'EmptyInputAndEmptyOutputInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart index f126305c1a..0f16a459a8 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputEc2QuerySerializer()]; + serializers = [EmptyInputAndEmptyOutputOutputEc2QuerySerializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -86,7 +84,7 @@ class EmptyInputAndEmptyOutputOutputEc2QuerySerializer const _i2.XmlElementName( 'EmptyInputAndEmptyOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.dart index dbd9e4c494..917abc2e5a 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigEc2QuerySerializer() + EnvironmentConfigEc2QuerySerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigEc2QuerySerializer const EnvironmentConfigEc2QuerySerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigEc2QuerySerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -173,7 +163,7 @@ class EnvironmentConfigEc2QuerySerializer const _i2.XmlElementName( 'EnvironmentConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -181,55 +171,67 @@ class EnvironmentConfigEc2QuerySerializer :awsDefaultRegion, :awsRetryMode, :awsSessionToken, - :awsProfile + :awsProfile, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart index 8ea7ce9e22..0b1e4f2f15 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsEc2QuerySerializer() + FileConfigSettingsEc2QuerySerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsEc2QuerySerializer const FileConfigSettingsEc2QuerySerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsEc2QuerySerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -190,7 +179,7 @@ class FileConfigSettingsEc2QuerySerializer const _i2.XmlElementName( 'FileConfigSettingsResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -199,63 +188,71 @@ class FileConfigSettingsEc2QuerySerializer :region, :s3, :retryMode, - :maxAttempts + :maxAttempts, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('Aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('Aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('Aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('Region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('S3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('Retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('Max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart index 2267048b49..4d077ef326 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart index 442052dcb7..6e66a2f810 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,19 +13,13 @@ part 'fractional_seconds_output.g.dart'; abstract class FractionalSecondsOutput with _i1.AWSEquatable implements Built { - factory FractionalSecondsOutput({ - DateTime? datetime, - DateTime? httpdate, - }) { - return _$FractionalSecondsOutput._( - datetime: datetime, - httpdate: httpdate, - ); + factory FractionalSecondsOutput({DateTime? datetime, DateTime? httpdate}) { + return _$FractionalSecondsOutput._(datetime: datetime, httpdate: httpdate); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -33,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputEc2QuerySerializer()]; @@ -42,22 +35,14 @@ abstract class FractionalSecondsOutput DateTime? get datetime; DateTime? get httpdate; @override - List get props => [ - datetime, - httpdate, - ]; + List get props => [datetime, httpdate]; @override String toString() { - final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ) - ..add( - 'httpdate', - httpdate, - ); + final helper = + newBuiltValueToStringHelper('FractionalSecondsOutput') + ..add('datetime', datetime) + ..add('httpdate', httpdate); return helper.toString(); } } @@ -65,21 +50,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputEc2QuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override FractionalSecondsOutput deserialize( @@ -123,24 +105,22 @@ class FractionalSecondsOutputEc2QuerySerializer const _i2.XmlElementName( 'FractionalSecondsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final FractionalSecondsOutput(:datetime, :httpdate) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('Datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } if (httpdate != null) { result$ ..add(const _i2.XmlElementName('Httpdate')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpdate, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize(serializers, httpdate), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart index 3a5eec6161..572b751ff7 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/fractional_seconds_output.g.dart @@ -12,16 +12,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? httpdate; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime, this.httpdate}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => @@ -85,7 +85,8 @@ class FractionalSecondsOutputBuilder FractionalSecondsOutput build() => _build(); _$FractionalSecondsOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$FractionalSecondsOutput._(datetime: datetime, httpdate: httpdate); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart index 6635f7bcc6..c786526f6f 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructEc2QuerySerializer() + GreetingStructEc2QuerySerializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructEc2QuerySerializer const GreetingStructEc2QuerySerializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructEc2QuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -96,16 +88,13 @@ class GreetingStructEc2QuerySerializer const _i2.XmlElementName( 'GreetingStructResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingStruct(:hi) = object; if (hi != null) { result$ ..add(const _i2.XmlElementName('Hi')) - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart index 2b9cbfc827..867700a93a 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -28,11 +28,10 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputEc2QuerySerializer()]; + serializers = [GreetingWithErrorsOutputEc2QuerySerializer()]; String? get greeting; @override @@ -41,10 +40,7 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class GreetingWithErrorsOutput class GreetingWithErrorsOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputEc2QuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -85,10 +78,12 @@ class GreetingWithErrorsOutputEc2QuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -105,16 +100,18 @@ class GreetingWithErrorsOutputEc2QuerySerializer const _i2.XmlElementName( 'GreetingWithErrorsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final GreetingWithErrorsOutput(:greeting) = object; if (greeting != null) { result$ ..add(const _i2.XmlElementName('Greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart index b870bd558e..1f289a0b7e 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart index c5e92fb7dc..c4595261d6 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputEc2QuerySerializer() + HostLabelInputEc2QuerySerializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputEc2QuerySerializer const HostLabelInputEc2QuerySerializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputEc2QuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,15 +107,14 @@ class HostLabelInputEc2QuerySerializer const _i1.XmlElementName( 'HostLabelInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final HostLabelInput(:label) = object; result$ ..add(const _i1.XmlElementName('Label')) - ..add(serializers.serialize( - label, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(label, specifiedType: const FullType(String)), + ); return result$; } } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart index ae23b348bc..ac42e98012 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.ignores_wrapping_xml_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignores_wrapping_xml_name_output.g.dart'; abstract class IgnoresWrappingXmlNameOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { factory IgnoresWrappingXmlNameOutput({String? foo}) { return _$IgnoresWrappingXmlNameOutput._(foo: foo); } - factory IgnoresWrappingXmlNameOutput.build( - [void Function(IgnoresWrappingXmlNameOutputBuilder) updates]) = - _$IgnoresWrappingXmlNameOutput; + factory IgnoresWrappingXmlNameOutput.build([ + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ]) = _$IgnoresWrappingXmlNameOutput; const IgnoresWrappingXmlNameOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoresWrappingXmlNameOutput factory IgnoresWrappingXmlNameOutput.fromResponse( IgnoresWrappingXmlNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoresWrappingXmlNameOutputEc2QuerySerializer()]; + serializers = [IgnoresWrappingXmlNameOutputEc2QuerySerializer()]; String? get foo; @override @@ -43,10 +43,7 @@ abstract class IgnoresWrappingXmlNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('IgnoresWrappingXmlNameOutput') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -54,21 +51,18 @@ abstract class IgnoresWrappingXmlNameOutput class IgnoresWrappingXmlNameOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputEc2QuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [ - IgnoresWrappingXmlNameOutput, - _$IgnoresWrappingXmlNameOutput, - ]; + IgnoresWrappingXmlNameOutput, + _$IgnoresWrappingXmlNameOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -87,10 +81,12 @@ class IgnoresWrappingXmlNameOutputEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -107,16 +103,15 @@ class IgnoresWrappingXmlNameOutputEc2QuerySerializer const _i2.XmlElementName( 'IgnoreMeResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final IgnoresWrappingXmlNameOutput(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart index 75f7bcb29e..0a62eb4c94 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/ignores_wrapping_xml_name_output.g.dart @@ -10,16 +10,16 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { @override final String? foo; - factory _$IgnoresWrappingXmlNameOutput( - [void Function(IgnoresWrappingXmlNameOutputBuilder)? updates]) => - (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); + factory _$IgnoresWrappingXmlNameOutput([ + void Function(IgnoresWrappingXmlNameOutputBuilder)? updates, + ]) => (new IgnoresWrappingXmlNameOutputBuilder()..update(updates))._build(); _$IgnoresWrappingXmlNameOutput._({this.foo}) : super._(); @override IgnoresWrappingXmlNameOutput rebuild( - void Function(IgnoresWrappingXmlNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoresWrappingXmlNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoresWrappingXmlNameOutputBuilder toBuilder() => @@ -42,8 +42,10 @@ class _$IgnoresWrappingXmlNameOutput extends IgnoresWrappingXmlNameOutput { class IgnoresWrappingXmlNameOutputBuilder implements - Builder { + Builder< + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutputBuilder + > { _$IgnoresWrappingXmlNameOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/integer_enum.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/integer_enum.dart index 0888801bc5..f8fbb33fbc 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/integer_enum.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/integer_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.integer_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class IntegerEnum extends _i1.SmithyIntEnum { - const IntegerEnum._( - super.index, - super.name, - super.value, - ); + const IntegerEnum._(super.index, super.name, super.value); const IntegerEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = IntegerEnum._( - 0, - 'A', - 1, - ); + static const a = IntegerEnum._(0, 'A', 1); - static const b = IntegerEnum._( - 1, - 'B', - 2, - ); + static const b = IntegerEnum._(1, 'B', 2); - static const c = IntegerEnum._( - 2, - 'C', - 3, - ); + static const c = IntegerEnum._(2, 'C', 3); /// All values of [IntegerEnum]. static const values = [ @@ -45,12 +29,9 @@ class IntegerEnum extends _i1.SmithyIntEnum { values: values, sdkUnknown: IntegerEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart index b7c849a252..7783787097 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,23 +32,22 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingEc2QuerySerializer() + InvalidGreetingEc2QuerySerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.ec2', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingEc2QuerySerializer const InvalidGreetingEc2QuerySerializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override InvalidGreeting deserialize( @@ -126,10 +117,12 @@ class InvalidGreetingEc2QuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -146,16 +139,15 @@ class InvalidGreetingEc2QuerySerializer const _i2.XmlElementName( 'InvalidGreetingResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final InvalidGreeting(:message) = object; if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart index e9fa6d46bf..fece178257 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/invalid_greeting.g.dart @@ -18,7 +18,7 @@ class _$InvalidGreeting extends InvalidGreeting { (new InvalidGreetingBuilder()..update(updates))._build(); _$InvalidGreeting._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InvalidGreeting rebuild(void Function(InvalidGreetingBuilder) updates) => @@ -87,9 +87,13 @@ class InvalidGreetingBuilder InvalidGreeting build() => _build(); _$InvalidGreeting _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidGreeting._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart index 85d7c0a282..4d7de2c8fc 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.nested_struct_with_list; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,18 @@ abstract class NestedStructWithList implements Built { factory NestedStructWithList({List? listArg}) { return _$NestedStructWithList._( - listArg: listArg == null ? null : _i2.BuiltList(listArg)); + listArg: listArg == null ? null : _i2.BuiltList(listArg), + ); } - factory NestedStructWithList.build( - [void Function(NestedStructWithListBuilder) updates]) = - _$NestedStructWithList; + factory NestedStructWithList.build([ + void Function(NestedStructWithListBuilder) updates, + ]) = _$NestedStructWithList; const NestedStructWithList._(); static const List<_i3.SmithySerializer> serializers = [ - NestedStructWithListEc2QuerySerializer() + NestedStructWithListEc2QuerySerializer(), ]; _i2.BuiltList? get listArg; @@ -36,10 +37,7 @@ abstract class NestedStructWithList @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructWithList') - ..add( - 'listArg', - listArg, - ); + ..add('listArg', listArg); return helper.toString(); } } @@ -47,21 +45,18 @@ abstract class NestedStructWithList class NestedStructWithListEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListEc2QuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [ - NestedStructWithList, - _$NestedStructWithList, - ]; + NestedStructWithList, + _$NestedStructWithList, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructWithList deserialize( @@ -80,16 +75,18 @@ class NestedStructWithListEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.listArg.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -106,22 +103,21 @@ class NestedStructWithListEc2QuerySerializer const _i3.XmlElementName( 'NestedStructWithListResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructWithList(:listArg) = object; if (listArg != null) { result$ ..add(const _i3.XmlElementName('ListArg')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart index 8018c2a3fb..c180ed47d2 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_struct_with_list.g.dart @@ -10,16 +10,16 @@ class _$NestedStructWithList extends NestedStructWithList { @override final _i2.BuiltList? listArg; - factory _$NestedStructWithList( - [void Function(NestedStructWithListBuilder)? updates]) => - (new NestedStructWithListBuilder()..update(updates))._build(); + factory _$NestedStructWithList([ + void Function(NestedStructWithListBuilder)? updates, + ]) => (new NestedStructWithListBuilder()..update(updates))._build(); _$NestedStructWithList._({this.listArg}) : super._(); @override NestedStructWithList rebuild( - void Function(NestedStructWithListBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructWithListBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructWithListBuilder toBuilder() => @@ -86,7 +86,10 @@ class NestedStructWithListBuilder _listArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructWithList', _$failedField, e.toString()); + r'NestedStructWithList', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart index bd7e364664..3de7ec3f21 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.nested_structures_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class NestedStructuresInput return _$NestedStructuresInput._(nested: nested); } - factory NestedStructuresInput.build( - [void Function(NestedStructuresInputBuilder) updates]) = - _$NestedStructuresInput; + factory NestedStructuresInput.build([ + void Function(NestedStructuresInputBuilder) updates, + ]) = _$NestedStructuresInput; const NestedStructuresInput._(); @@ -30,11 +30,10 @@ abstract class NestedStructuresInput NestedStructuresInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - NestedStructuresInputEc2QuerySerializer() + NestedStructuresInputEc2QuerySerializer(), ]; StructArg? get nested; @@ -47,10 +46,7 @@ abstract class NestedStructuresInput @override String toString() { final helper = newBuiltValueToStringHelper('NestedStructuresInput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class NestedStructuresInput class NestedStructuresInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const NestedStructuresInputEc2QuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [ - NestedStructuresInput, - _$NestedStructuresInput, - ]; + NestedStructuresInput, + _$NestedStructuresInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructuresInput deserialize( @@ -91,10 +84,13 @@ class NestedStructuresInputEc2QuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -111,16 +107,18 @@ class NestedStructuresInputEc2QuerySerializer const _i1.XmlElementName( 'NestedStructuresInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final NestedStructuresInput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart index 664840923e..c02a3d5a4c 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/nested_structures_input.g.dart @@ -10,16 +10,16 @@ class _$NestedStructuresInput extends NestedStructuresInput { @override final StructArg? nested; - factory _$NestedStructuresInput( - [void Function(NestedStructuresInputBuilder)? updates]) => - (new NestedStructuresInputBuilder()..update(updates))._build(); + factory _$NestedStructuresInput([ + void Function(NestedStructuresInputBuilder)? updates, + ]) => (new NestedStructuresInputBuilder()..update(updates))._build(); _$NestedStructuresInput._({this.nested}) : super._(); @override NestedStructuresInput rebuild( - void Function(NestedStructuresInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedStructuresInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedStructuresInputBuilder toBuilder() => @@ -84,7 +84,10 @@ class NestedStructuresInputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedStructuresInput', _$failedField, e.toString()); + r'NestedStructuresInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart index 3c6720164c..73e0eab3c7 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputEc2QuerySerializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputEc2QuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NoInputAndOutputOutput deserialize( @@ -83,7 +79,7 @@ class NoInputAndOutputOutputEc2QuerySerializer const _i2.XmlElementName( 'NoInputAndOutputOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.dart index a4b5fc0421..e3fa8113de 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigEc2QuerySerializer() + OperationConfigEc2QuerySerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigEc2QuerySerializer const OperationConfigEc2QuerySerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigEc2QuerySerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -101,16 +96,15 @@ class OperationConfigEc2QuerySerializer const _i2.XmlElementName( 'OperationConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('S3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart index 5cb8cd4f10..69b22f562e 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -31,17 +33,17 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputEc2QuerySerializer()]; + serializers = [QueryIdempotencyTokenAutoFillInputEc2QuerySerializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -53,12 +55,9 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @@ -66,21 +65,18 @@ abstract class QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -99,10 +95,12 @@ class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -119,16 +117,15 @@ class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer const _i1.XmlElementName( 'QueryIdempotencyTokenAutoFillInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryIdempotencyTokenAutoFillInput(:token) = object; if (token != null) { result$ ..add(const _i1.XmlElementName('Token')) - ..add(serializers.serialize( - token, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(token, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart index d13c11d730..d52f5f3185 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart index 343b5cb161..5200240e04 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.query_lists_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,17 +27,19 @@ abstract class QueryListsInput listArg: listArg == null ? null : _i3.BuiltList(listArg), complexListArg: complexListArg == null ? null : _i3.BuiltList(complexListArg), - listArgWithXmlNameMember: listArgWithXmlNameMember == null - ? null - : _i3.BuiltList(listArgWithXmlNameMember), + listArgWithXmlNameMember: + listArgWithXmlNameMember == null + ? null + : _i3.BuiltList(listArgWithXmlNameMember), listArgWithXmlName: listArgWithXmlName == null ? null : _i3.BuiltList(listArgWithXmlName), nestedWithList: nestedWithList, ); } - factory QueryListsInput.build( - [void Function(QueryListsInputBuilder) updates]) = _$QueryListsInput; + factory QueryListsInput.build([ + void Function(QueryListsInputBuilder) updates, + ]) = _$QueryListsInput; const QueryListsInput._(); @@ -45,11 +47,10 @@ abstract class QueryListsInput QueryListsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryListsInputEc2QuerySerializer() + QueryListsInputEc2QuerySerializer(), ]; _i3.BuiltList? get listArg; @@ -62,36 +63,22 @@ abstract class QueryListsInput @override List get props => [ - listArg, - complexListArg, - listArgWithXmlNameMember, - listArgWithXmlName, - nestedWithList, - ]; + listArg, + complexListArg, + listArgWithXmlNameMember, + listArgWithXmlName, + nestedWithList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryListsInput') - ..add( - 'listArg', - listArg, - ) - ..add( - 'complexListArg', - complexListArg, - ) - ..add( - 'listArgWithXmlNameMember', - listArgWithXmlNameMember, - ) - ..add( - 'listArgWithXmlName', - listArgWithXmlName, - ) - ..add( - 'nestedWithList', - nestedWithList, - ); + final helper = + newBuiltValueToStringHelper('QueryListsInput') + ..add('listArg', listArg) + ..add('complexListArg', complexListArg) + ..add('listArgWithXmlNameMember', listArgWithXmlNameMember) + ..add('listArgWithXmlName', listArgWithXmlName) + ..add('nestedWithList', nestedWithList); return helper.toString(); } } @@ -101,18 +88,12 @@ class QueryListsInputEc2QuerySerializer const QueryListsInputEc2QuerySerializer() : super('QueryListsInput'); @override - Iterable get types => const [ - QueryListsInput, - _$QueryListsInput, - ]; + Iterable get types => const [QueryListsInput, _$QueryListsInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryListsInput deserialize( @@ -131,57 +112,67 @@ class QueryListsInputEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i3.BuiltList)); + result.complexListArg.replace( + (const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i3.BuiltList), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember - .replace((const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArgWithXmlNameMember.replace( + (const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'Hi': - result.listArgWithXmlName.replace((const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.listArgWithXmlName.replace( + (const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -198,80 +189,80 @@ class QueryListsInputEc2QuerySerializer const _i1.XmlElementName( 'QueryListsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryListsInput( :listArg, :complexListArg, :listArgWithXmlNameMember, :listArgWithXmlName, - :nestedWithList + :nestedWithList, ) = object; if (listArg != null) { result$ ..add(const _i1.XmlElementName('ListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .serialize( - serializers, - listArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArg, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (complexListArg != null) { result$ ..add(const _i1.XmlElementName('ComplexListArg')) - ..add(const _i1.XmlBuiltListSerializer( - indexer: _i1.XmlIndexer.ec2QueryList) - .serialize( - serializers, - complexListArg, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(GreetingStruct)], + ..add( + const _i1.XmlBuiltListSerializer( + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + complexListArg, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(GreetingStruct), + ]), ), - )); + ); } if (listArgWithXmlNameMember != null) { result$ ..add(const _i1.XmlElementName('ListArgWithXmlNameMember')) - ..add(const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - listArgWithXmlNameMember, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArgWithXmlNameMember, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (listArgWithXmlName != null) { result$ ..add(const _i1.XmlElementName('Hi')) - ..add(const _i1.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i1.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - listArgWithXmlName, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i1.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + listArgWithXmlName, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (nestedWithList != null) { result$ ..add(const _i1.XmlElementName('NestedWithList')) - ..add(serializers.serialize( - nestedWithList, - specifiedType: const FullType(NestedStructWithList), - )); + ..add( + serializers.serialize( + nestedWithList, + specifiedType: const FullType(NestedStructWithList), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart index acd5c87be8..dcdc6c3a50 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_lists_input.g.dart @@ -21,13 +21,13 @@ class _$QueryListsInput extends QueryListsInput { factory _$QueryListsInput([void Function(QueryListsInputBuilder)? updates]) => (new QueryListsInputBuilder()..update(updates))._build(); - _$QueryListsInput._( - {this.listArg, - this.complexListArg, - this.listArgWithXmlNameMember, - this.listArgWithXmlName, - this.nestedWithList}) - : super._(); + _$QueryListsInput._({ + this.listArg, + this.complexListArg, + this.listArgWithXmlNameMember, + this.listArgWithXmlName, + this.nestedWithList, + }) : super._(); @override QueryListsInput rebuild(void Function(QueryListsInputBuilder) updates) => @@ -80,8 +80,8 @@ class QueryListsInputBuilder _i3.ListBuilder get listArgWithXmlNameMember => _$this._listArgWithXmlNameMember ??= new _i3.ListBuilder(); set listArgWithXmlNameMember( - _i3.ListBuilder? listArgWithXmlNameMember) => - _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; + _i3.ListBuilder? listArgWithXmlNameMember, + ) => _$this._listArgWithXmlNameMember = listArgWithXmlNameMember; _i3.ListBuilder? _listArgWithXmlName; _i3.ListBuilder get listArgWithXmlName => @@ -127,13 +127,15 @@ class QueryListsInputBuilder _$QueryListsInput _build() { _$QueryListsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryListsInput._( - listArg: _listArg?.build(), - complexListArg: _complexListArg?.build(), - listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), - listArgWithXmlName: _listArgWithXmlName?.build(), - nestedWithList: _nestedWithList?.build()); + listArg: _listArg?.build(), + complexListArg: _complexListArg?.build(), + listArgWithXmlNameMember: _listArgWithXmlNameMember?.build(), + listArgWithXmlName: _listArgWithXmlName?.build(), + nestedWithList: _nestedWithList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class QueryListsInputBuilder _nestedWithList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryListsInput', _$failedField, e.toString()); + r'QueryListsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart index d850ab020c..bb0b999382 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.query_timestamps_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class QueryTimestampsInput ); } - factory QueryTimestampsInput.build( - [void Function(QueryTimestampsInputBuilder) updates]) = - _$QueryTimestampsInput; + factory QueryTimestampsInput.build([ + void Function(QueryTimestampsInputBuilder) updates, + ]) = _$QueryTimestampsInput; const QueryTimestampsInput._(); @@ -37,11 +37,10 @@ abstract class QueryTimestampsInput QueryTimestampsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - QueryTimestampsInputEc2QuerySerializer() + QueryTimestampsInputEc2QuerySerializer(), ]; DateTime? get normalFormat; @@ -51,27 +50,15 @@ abstract class QueryTimestampsInput QueryTimestampsInput getPayload() => this; @override - List get props => [ - normalFormat, - epochMember, - epochTarget, - ]; + List get props => [normalFormat, epochMember, epochTarget]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryTimestampsInput') - ..add( - 'normalFormat', - normalFormat, - ) - ..add( - 'epochMember', - epochMember, - ) - ..add( - 'epochTarget', - epochTarget, - ); + final helper = + newBuiltValueToStringHelper('QueryTimestampsInput') + ..add('normalFormat', normalFormat) + ..add('epochMember', epochMember) + ..add('epochTarget', epochTarget); return helper.toString(); } } @@ -79,21 +66,18 @@ abstract class QueryTimestampsInput class QueryTimestampsInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const QueryTimestampsInputEc2QuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [ - QueryTimestampsInput, - _$QueryTimestampsInput, - ]; + QueryTimestampsInput, + _$QueryTimestampsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryTimestampsInput deserialize( @@ -112,10 +96,12 @@ class QueryTimestampsInputEc2QuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normalFormat = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'epochMember': result.epochMember = _i1.TimestampSerializer.epochSeconds.deserialize( serializers, @@ -142,33 +128,39 @@ class QueryTimestampsInputEc2QuerySerializer const _i1.XmlElementName( 'QueryTimestampsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final QueryTimestampsInput(:normalFormat, :epochMember, :epochTarget) = object; if (normalFormat != null) { result$ ..add(const _i1.XmlElementName('NormalFormat')) - ..add(serializers.serialize( - normalFormat, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normalFormat, + specifiedType: const FullType(DateTime), + ), + ); } if (epochMember != null) { result$ ..add(const _i1.XmlElementName('EpochMember')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochMember, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochMember, + ), + ); } if (epochTarget != null) { result$ ..add(const _i1.XmlElementName('EpochTarget')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart index e90ce16080..fc84becfa6 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/query_timestamps_input.g.dart @@ -14,18 +14,20 @@ class _$QueryTimestampsInput extends QueryTimestampsInput { @override final DateTime? epochTarget; - factory _$QueryTimestampsInput( - [void Function(QueryTimestampsInputBuilder)? updates]) => - (new QueryTimestampsInputBuilder()..update(updates))._build(); + factory _$QueryTimestampsInput([ + void Function(QueryTimestampsInputBuilder)? updates, + ]) => (new QueryTimestampsInputBuilder()..update(updates))._build(); - _$QueryTimestampsInput._( - {this.normalFormat, this.epochMember, this.epochTarget}) - : super._(); + _$QueryTimestampsInput._({ + this.normalFormat, + this.epochMember, + this.epochTarget, + }) : super._(); @override QueryTimestampsInput rebuild( - void Function(QueryTimestampsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryTimestampsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryTimestampsInputBuilder toBuilder() => @@ -96,11 +98,13 @@ class QueryTimestampsInputBuilder QueryTimestampsInput build() => _build(); _$QueryTimestampsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$QueryTimestampsInput._( - normalFormat: normalFormat, - epochMember: epochMember, - epochTarget: epochTarget); + normalFormat: normalFormat, + epochMember: epochMember, + epochTarget: epochTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart index 72c651b146..99fa9d05cd 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.recursive_xml_shapes_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class RecursiveXmlShapesOutput return _$RecursiveXmlShapesOutput._(nested: nested); } - factory RecursiveXmlShapesOutput.build( - [void Function(RecursiveXmlShapesOutputBuilder) updates]) = - _$RecursiveXmlShapesOutput; + factory RecursiveXmlShapesOutput.build([ + void Function(RecursiveXmlShapesOutputBuilder) updates, + ]) = _$RecursiveXmlShapesOutput; const RecursiveXmlShapesOutput._(); @@ -29,11 +29,10 @@ abstract class RecursiveXmlShapesOutput factory RecursiveXmlShapesOutput.fromResponse( RecursiveXmlShapesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputEc2QuerySerializer()]; + serializers = [RecursiveXmlShapesOutputEc2QuerySerializer()]; RecursiveXmlShapesOutputNested1? get nested; @override @@ -42,10 +41,7 @@ abstract class RecursiveXmlShapesOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -53,21 +49,18 @@ abstract class RecursiveXmlShapesOutput class RecursiveXmlShapesOutputEc2QuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputEc2QuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [ - RecursiveXmlShapesOutput, - _$RecursiveXmlShapesOutput, - ]; + RecursiveXmlShapesOutput, + _$RecursiveXmlShapesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -86,10 +79,15 @@ class RecursiveXmlShapesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -106,16 +104,18 @@ class RecursiveXmlShapesOutputEc2QuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart index 2d7e34d129..21994706b3 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveXmlShapesOutput extends RecursiveXmlShapesOutput { @override final RecursiveXmlShapesOutputNested1? nested; - factory _$RecursiveXmlShapesOutput( - [void Function(RecursiveXmlShapesOutputBuilder)? updates]) => - (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); + factory _$RecursiveXmlShapesOutput([ + void Function(RecursiveXmlShapesOutputBuilder)? updates, + ]) => (new RecursiveXmlShapesOutputBuilder()..update(updates))._build(); _$RecursiveXmlShapesOutput._({this.nested}) : super._(); @override RecursiveXmlShapesOutput rebuild( - void Function(RecursiveXmlShapesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveXmlShapesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutput', _$failedField, e.toString()); + r'RecursiveXmlShapesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart index 69c9bc6790..c4a03d9e8b 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.recursive_xml_shapes_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested1.g.dart'; abstract class RecursiveXmlShapesOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { factory RecursiveXmlShapesOutputNested1({ String? foo, RecursiveXmlShapesOutputNested2? nested, }) { - return _$RecursiveXmlShapesOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveXmlShapesOutputNested1._(foo: foo, nested: nested); } - factory RecursiveXmlShapesOutputNested1.build( - [void Function(RecursiveXmlShapesOutputNested1Builder) updates]) = - _$RecursiveXmlShapesOutputNested1; + factory RecursiveXmlShapesOutputNested1.build([ + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested1; const RecursiveXmlShapesOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested1Ec2QuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested1Ec2QuerySerializer()]; String? get foo; RecursiveXmlShapesOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1Ec2QuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested1, - _$RecursiveXmlShapesOutputNested1, - ]; + RecursiveXmlShapesOutputNested1, + _$RecursiveXmlShapesOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -96,15 +82,22 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -121,24 +114,25 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested1Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested1(:foo, :nested) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveXmlShapesOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart index f9749c812c..3835b660fe 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested1.g.dart @@ -13,16 +13,17 @@ class _$RecursiveXmlShapesOutputNested1 @override final RecursiveXmlShapesOutputNested2? nested; - factory _$RecursiveXmlShapesOutputNested1( - [void Function(RecursiveXmlShapesOutputNested1Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested1([ + void Function(RecursiveXmlShapesOutputNested1Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested1Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested1._({this.foo, this.nested}) : super._(); @override RecursiveXmlShapesOutputNested1 rebuild( - void Function(RecursiveXmlShapesOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested1Builder toBuilder() => @@ -48,8 +49,10 @@ class _$RecursiveXmlShapesOutputNested1 class RecursiveXmlShapesOutputNested1Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested1, + RecursiveXmlShapesOutputNested1Builder + > { _$RecursiveXmlShapesOutputNested1? _$v; String? _foo; @@ -91,9 +94,12 @@ class RecursiveXmlShapesOutputNested1Builder _$RecursiveXmlShapesOutputNested1 _build() { _$RecursiveXmlShapesOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,7 +107,10 @@ class RecursiveXmlShapesOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested1', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart index 4fcceab0d4..d9a98b28d4 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.recursive_xml_shapes_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_xml_shapes_output_nested2.g.dart'; abstract class RecursiveXmlShapesOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { factory RecursiveXmlShapesOutputNested2({ String? bar, RecursiveXmlShapesOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveXmlShapesOutputNested2 ); } - factory RecursiveXmlShapesOutputNested2.build( - [void Function(RecursiveXmlShapesOutputNested2Builder) updates]) = - _$RecursiveXmlShapesOutputNested2; + factory RecursiveXmlShapesOutputNested2.build([ + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ]) = _$RecursiveXmlShapesOutputNested2; const RecursiveXmlShapesOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveXmlShapesOutputNested2Ec2QuerySerializer()]; + serializers = [RecursiveXmlShapesOutputNested2Ec2QuerySerializer()]; String? get bar; RecursiveXmlShapesOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveXmlShapesOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2Ec2QuerySerializer extends _i2.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [ - RecursiveXmlShapesOutputNested2, - _$RecursiveXmlShapesOutputNested2, - ]; + RecursiveXmlShapesOutputNested2, + _$RecursiveXmlShapesOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -96,15 +85,22 @@ class RecursiveXmlShapesOutputNested2Ec2QuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -121,24 +117,25 @@ class RecursiveXmlShapesOutputNested2Ec2QuerySerializer const _i2.XmlElementName( 'RecursiveXmlShapesOutputNested2Response', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RecursiveXmlShapesOutputNested2(:bar, :recursiveMember) = object; if (bar != null) { result$ ..add(const _i2.XmlElementName('Bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add(const _i2.XmlElementName('RecursiveMember')) - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveXmlShapesOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart index ca96543993..048cc789c9 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/recursive_xml_shapes_output_nested2.g.dart @@ -13,17 +13,18 @@ class _$RecursiveXmlShapesOutputNested2 @override final RecursiveXmlShapesOutputNested1? recursiveMember; - factory _$RecursiveXmlShapesOutputNested2( - [void Function(RecursiveXmlShapesOutputNested2Builder)? updates]) => + factory _$RecursiveXmlShapesOutputNested2([ + void Function(RecursiveXmlShapesOutputNested2Builder)? updates, + ]) => (new RecursiveXmlShapesOutputNested2Builder()..update(updates))._build(); _$RecursiveXmlShapesOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveXmlShapesOutputNested2 rebuild( - void Function(RecursiveXmlShapesOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveXmlShapesOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveXmlShapesOutputNested2Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveXmlShapesOutputNested2 class RecursiveXmlShapesOutputNested2Builder implements - Builder { + Builder< + RecursiveXmlShapesOutputNested2, + RecursiveXmlShapesOutputNested2Builder + > { _$RecursiveXmlShapesOutputNested2? _$v; String? _bar; @@ -61,8 +64,8 @@ class RecursiveXmlShapesOutputNested2Builder RecursiveXmlShapesOutputNested1Builder get recursiveMember => _$this._recursiveMember ??= new RecursiveXmlShapesOutputNested1Builder(); set recursiveMember( - RecursiveXmlShapesOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveXmlShapesOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveXmlShapesOutputNested2Builder(); @@ -93,9 +96,12 @@ class RecursiveXmlShapesOutputNested2Builder _$RecursiveXmlShapesOutputNested2 _build() { _$RecursiveXmlShapesOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveXmlShapesOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +109,10 @@ class RecursiveXmlShapesOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveXmlShapesOutputNested2', _$failedField, e.toString()); + r'RecursiveXmlShapesOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_config.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_config.dart index b38bfd336e..4ff3add411 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigEc2QuerySerializer() + RetryConfigEc2QuerySerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigEc2QuerySerializer const RetryConfigEc2QuerySerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigEc2QuerySerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -120,24 +104,25 @@ class RetryConfigEc2QuerySerializer const _i2.XmlElementName( 'RetryConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final RetryConfig(:mode, :maxAttempts) = object; if (mode != null) { result$ ..add(const _i2.XmlElementName('Mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('Max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart index ed0cc88b24..ae228a15d0 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart index e4285f10e0..30cda4d1ab 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.dart index 80bd26695a..ab35608f17 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigEc2QuerySerializer() + S3ConfigEc2QuerySerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigEc2QuerySerializer const S3ConfigEc2QuerySerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigEc2QuerySerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,36 +124,42 @@ class S3ConfigEc2QuerySerializer const _i2.XmlElementName( 'S3ConfigResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('Addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('Use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('Use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart index 06a9868568..831bdd348a 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigEc2QuerySerializer() + ScopedConfigEc2QuerySerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigEc2QuerySerializer const ScopedConfigEc2QuerySerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigEc2QuerySerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -188,68 +173,72 @@ class ScopedConfigEc2QuerySerializer const _i3.XmlElementName( 'ScopedConfigResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final ScopedConfig( :environment, :configFile, :credentialsFile, :client, - :operation + :operation, ) = object; if (environment != null) { result$ ..add(const _i3.XmlElementName('Environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('ConfigFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('CredentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (client != null) { result$ ..add(const _i3.XmlElementName('Client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('Operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart index 9a4ee52f55..1d6ee33f07 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.simple_input_params_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -46,9 +46,9 @@ abstract class SimpleInputParamsInput ); } - factory SimpleInputParamsInput.build( - [void Function(SimpleInputParamsInputBuilder) updates]) = - _$SimpleInputParamsInput; + factory SimpleInputParamsInput.build([ + void Function(SimpleInputParamsInputBuilder) updates, + ]) = _$SimpleInputParamsInput; const SimpleInputParamsInput._(); @@ -56,8 +56,7 @@ abstract class SimpleInputParamsInput SimpleInputParamsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [SimpleInputParamsInputEc2QuerySerializer()]; @@ -78,66 +77,34 @@ abstract class SimpleInputParamsInput @override List get props => [ - foo, - bar, - baz, - bam, - floatValue, - boo, - qux, - fooEnum, - hasQueryName, - hasQueryAndXmlName, - usesXmlName, - ]; + foo, + bar, + baz, + bam, + floatValue, + boo, + qux, + fooEnum, + hasQueryName, + hasQueryAndXmlName, + usesXmlName, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('SimpleInputParamsInput') - ..add( - 'foo', - foo, - ) - ..add( - 'bar', - bar, - ) - ..add( - 'baz', - baz, - ) - ..add( - 'bam', - bam, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'boo', - boo, - ) - ..add( - 'qux', - qux, - ) - ..add( - 'fooEnum', - fooEnum, - ) - ..add( - 'hasQueryName', - hasQueryName, - ) - ..add( - 'hasQueryAndXmlName', - hasQueryAndXmlName, - ) - ..add( - 'usesXmlName', - usesXmlName, - ); + final helper = + newBuiltValueToStringHelper('SimpleInputParamsInput') + ..add('foo', foo) + ..add('bar', bar) + ..add('baz', baz) + ..add('bam', bam) + ..add('floatValue', floatValue) + ..add('boo', boo) + ..add('qux', qux) + ..add('fooEnum', fooEnum) + ..add('hasQueryName', hasQueryName) + ..add('hasQueryAndXmlName', hasQueryAndXmlName) + ..add('usesXmlName', usesXmlName); return helper.toString(); } } @@ -145,21 +112,18 @@ abstract class SimpleInputParamsInput class SimpleInputParamsInputEc2QuerySerializer extends _i1.StructuredSmithySerializer { const SimpleInputParamsInputEc2QuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [ - SimpleInputParamsInput, - _$SimpleInputParamsInput, - ]; + SimpleInputParamsInput, + _$SimpleInputParamsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleInputParamsInput deserialize( @@ -178,60 +142,82 @@ class SimpleInputParamsInputEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'HasQueryName': - result.hasQueryName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'IgnoreMe': - result.hasQueryAndXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryAndXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'c': - result.usesXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.usesXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -248,7 +234,7 @@ class SimpleInputParamsInputEc2QuerySerializer const _i1.XmlElementName( 'SimpleInputParamsInputResponse', _i1.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleInputParamsInput( :foo, @@ -261,95 +247,98 @@ class SimpleInputParamsInputEc2QuerySerializer :fooEnum, :hasQueryName, :hasQueryAndXmlName, - :usesXmlName + :usesXmlName, ) = object; if (foo != null) { result$ ..add(const _i1.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (bar != null) { result$ ..add(const _i1.XmlElementName('Bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (baz != null) { result$ ..add(const _i1.XmlElementName('Baz')) - ..add(serializers.serialize( - baz, - specifiedType: const FullType(bool), - )); + ..add(serializers.serialize(baz, specifiedType: const FullType(bool))); } if (bam != null) { result$ ..add(const _i1.XmlElementName('Bam')) - ..add(serializers.serialize( - bam, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(bam, specifiedType: const FullType(int))); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('FloatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (boo != null) { result$ ..add(const _i1.XmlElementName('Boo')) - ..add(serializers.serialize( - boo, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(boo, specifiedType: const FullType(double)), + ); } if (qux != null) { result$ ..add(const _i1.XmlElementName('Qux')) - ..add(serializers.serialize( - qux, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + qux, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (fooEnum != null) { result$ ..add(const _i1.XmlElementName('FooEnum')) - ..add(serializers.serialize( - fooEnum, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum, + specifiedType: const FullType(FooEnum), + ), + ); } if (hasQueryName != null) { result$ ..add(const _i1.XmlElementName('A')) - ..add(serializers.serialize( - hasQueryName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + hasQueryName, + specifiedType: const FullType(String), + ), + ); } if (hasQueryAndXmlName != null) { result$ ..add(const _i1.XmlElementName('B')) - ..add(serializers.serialize( - hasQueryAndXmlName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + hasQueryAndXmlName, + specifiedType: const FullType(String), + ), + ); } if (usesXmlName != null) { result$ ..add(const _i1.XmlElementName('C')) - ..add(serializers.serialize( - usesXmlName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + usesXmlName, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart index 22c8feca37..98ace77e86 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_input_params_input.g.dart @@ -30,28 +30,28 @@ class _$SimpleInputParamsInput extends SimpleInputParamsInput { @override final String? usesXmlName; - factory _$SimpleInputParamsInput( - [void Function(SimpleInputParamsInputBuilder)? updates]) => - (new SimpleInputParamsInputBuilder()..update(updates))._build(); - - _$SimpleInputParamsInput._( - {this.foo, - this.bar, - this.baz, - this.bam, - this.floatValue, - this.boo, - this.qux, - this.fooEnum, - this.hasQueryName, - this.hasQueryAndXmlName, - this.usesXmlName}) - : super._(); + factory _$SimpleInputParamsInput([ + void Function(SimpleInputParamsInputBuilder)? updates, + ]) => (new SimpleInputParamsInputBuilder()..update(updates))._build(); + + _$SimpleInputParamsInput._({ + this.foo, + this.bar, + this.baz, + this.bam, + this.floatValue, + this.boo, + this.qux, + this.fooEnum, + this.hasQueryName, + this.hasQueryAndXmlName, + this.usesXmlName, + }) : super._(); @override SimpleInputParamsInput rebuild( - void Function(SimpleInputParamsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleInputParamsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleInputParamsInputBuilder toBuilder() => @@ -178,19 +178,21 @@ class SimpleInputParamsInputBuilder SimpleInputParamsInput build() => _build(); _$SimpleInputParamsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleInputParamsInput._( - foo: foo, - bar: bar, - baz: baz, - bam: bam, - floatValue: floatValue, - boo: boo, - qux: qux, - fooEnum: fooEnum, - hasQueryName: hasQueryName, - hasQueryAndXmlName: hasQueryAndXmlName, - usesXmlName: usesXmlName); + foo: foo, + bar: bar, + baz: baz, + bam: bam, + floatValue: floatValue, + boo: boo, + qux: qux, + fooEnum: fooEnum, + hasQueryName: hasQueryName, + hasQueryAndXmlName: hasQueryAndXmlName, + usesXmlName: usesXmlName, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart index d339413684..79fecb0389 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.simple_scalar_xml_properties_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i3; part 'simple_scalar_xml_properties_output.g.dart'; abstract class SimpleScalarXmlPropertiesOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { factory SimpleScalarXmlPropertiesOutput({ String? stringValue, String? emptyStringValue, @@ -43,9 +44,9 @@ abstract class SimpleScalarXmlPropertiesOutput ); } - factory SimpleScalarXmlPropertiesOutput.build( - [void Function(SimpleScalarXmlPropertiesOutputBuilder) updates]) = - _$SimpleScalarXmlPropertiesOutput; + factory SimpleScalarXmlPropertiesOutput.build([ + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ]) = _$SimpleScalarXmlPropertiesOutput; const SimpleScalarXmlPropertiesOutput._(); @@ -53,11 +54,10 @@ abstract class SimpleScalarXmlPropertiesOutput factory SimpleScalarXmlPropertiesOutput.fromResponse( SimpleScalarXmlPropertiesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [SimpleScalarXmlPropertiesOutputEc2QuerySerializer()]; + serializers = [SimpleScalarXmlPropertiesOutputEc2QuerySerializer()]; String? get stringValue; String? get emptyStringValue; @@ -71,62 +71,32 @@ abstract class SimpleScalarXmlPropertiesOutput double? get doubleValue; @override List get props => [ - stringValue, - emptyStringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + stringValue, + emptyStringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarXmlPropertiesOutput') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'emptyStringValue', - emptyStringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('stringValue', stringValue) + ..add('emptyStringValue', emptyStringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -134,21 +104,18 @@ abstract class SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [ - SimpleScalarXmlPropertiesOutput, - _$SimpleScalarXmlPropertiesOutput, - ]; + SimpleScalarXmlPropertiesOutput, + _$SimpleScalarXmlPropertiesOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -167,55 +134,75 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -232,7 +219,7 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer const _i3.XmlElementName( 'SimpleScalarXmlPropertiesOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final SimpleScalarXmlPropertiesOutput( :stringValue, @@ -244,87 +231,101 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer :integerValue, :longValue, :floatValue, - :doubleValue + :doubleValue, ) = object; if (stringValue != null) { result$ ..add(const _i3.XmlElementName('IgnoreMe')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (emptyStringValue != null) { result$ ..add(const _i3.XmlElementName('EmptyStringValue')) - ..add(serializers.serialize( - emptyStringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + emptyStringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i3.XmlElementName('TrueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i3.XmlElementName('FalseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (byteValue != null) { result$ ..add(const _i3.XmlElementName('ByteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (shortValue != null) { result$ ..add(const _i3.XmlElementName('ShortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (integerValue != null) { result$ ..add(const _i3.XmlElementName('IntegerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i3.XmlElementName('LongValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (floatValue != null) { result$ ..add(const _i3.XmlElementName('FloatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (doubleValue != null) { result$ ..add(const _i3.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart index 762fc06d89..da51a25ca9 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/simple_scalar_xml_properties_output.g.dart @@ -29,27 +29,28 @@ class _$SimpleScalarXmlPropertiesOutput @override final double? doubleValue; - factory _$SimpleScalarXmlPropertiesOutput( - [void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates]) => + factory _$SimpleScalarXmlPropertiesOutput([ + void Function(SimpleScalarXmlPropertiesOutputBuilder)? updates, + ]) => (new SimpleScalarXmlPropertiesOutputBuilder()..update(updates))._build(); - _$SimpleScalarXmlPropertiesOutput._( - {this.stringValue, - this.emptyStringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarXmlPropertiesOutput._({ + this.stringValue, + this.emptyStringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarXmlPropertiesOutput rebuild( - void Function(SimpleScalarXmlPropertiesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarXmlPropertiesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarXmlPropertiesOutputBuilder toBuilder() => @@ -91,8 +92,10 @@ class _$SimpleScalarXmlPropertiesOutput class SimpleScalarXmlPropertiesOutputBuilder implements - Builder { + Builder< + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutputBuilder + > { _$SimpleScalarXmlPropertiesOutput? _$v; String? _stringValue; @@ -173,18 +176,20 @@ class SimpleScalarXmlPropertiesOutputBuilder SimpleScalarXmlPropertiesOutput build() => _build(); _$SimpleScalarXmlPropertiesOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarXmlPropertiesOutput._( - stringValue: stringValue, - emptyStringValue: emptyStringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + stringValue: stringValue, + emptyStringValue: emptyStringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart index d67edb5259..6be1f1ccc7 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.struct_arg; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,34 +31,22 @@ abstract class StructArg const StructArg._(); static const List<_i2.SmithySerializer> serializers = [ - StructArgEc2QuerySerializer() + StructArgEc2QuerySerializer(), ]; String? get stringArg; bool? get otherArg; StructArg? get recursiveArg; @override - List get props => [ - stringArg, - otherArg, - recursiveArg, - ]; + List get props => [stringArg, otherArg, recursiveArg]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructArg') - ..add( - 'stringArg', - stringArg, - ) - ..add( - 'otherArg', - otherArg, - ) - ..add( - 'recursiveArg', - recursiveArg, - ); + final helper = + newBuiltValueToStringHelper('StructArg') + ..add('stringArg', stringArg) + ..add('otherArg', otherArg) + ..add('recursiveArg', recursiveArg); return helper.toString(); } } @@ -68,18 +56,12 @@ class StructArgEc2QuerySerializer const StructArgEc2QuerySerializer() : super('StructArg'); @override - Iterable get types => const [ - StructArg, - _$StructArg, - ]; + Iterable get types => const [StructArg, _$StructArg]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructArg deserialize( @@ -98,20 +80,27 @@ class StructArgEc2QuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -128,32 +117,35 @@ class StructArgEc2QuerySerializer const _i2.XmlElementName( 'StructArgResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructArg(:stringArg, :otherArg, :recursiveArg) = object; if (stringArg != null) { result$ ..add(const _i2.XmlElementName('StringArg')) - ..add(serializers.serialize( - stringArg, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringArg, + specifiedType: const FullType(String), + ), + ); } if (otherArg != null) { result$ ..add(const _i2.XmlElementName('OtherArg')) - ..add(serializers.serialize( - otherArg, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(otherArg, specifiedType: const FullType(bool)), + ); } if (recursiveArg != null) { result$ ..add(const _i2.XmlElementName('RecursiveArg')) - ..add(serializers.serialize( - recursiveArg, - specifiedType: const FullType(StructArg), - )); + ..add( + serializers.serialize( + recursiveArg, + specifiedType: const FullType(StructArg), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart index 792a8afecd..9482dbfaad 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/struct_arg.g.dart @@ -93,11 +93,13 @@ class StructArgBuilder implements Builder { _$StructArg _build() { _$StructArg _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$StructArg._( - stringArg: stringArg, - otherArg: otherArg, - recursiveArg: _recursiveArg?.build()); + stringArg: stringArg, + otherArg: otherArg, + recursiveArg: _recursiveArg?.build(), + ); } catch (_) { late String _$failedField; try { @@ -105,7 +107,10 @@ class StructArgBuilder implements Builder { _recursiveArg?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'StructArg', _$failedField, e.toString()); + r'StructArg', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart index 6d701e8a17..10ffaf079b 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberEc2QuerySerializer() + StructureListMemberEc2QuerySerializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberEc2QuerySerializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructureListMember deserialize( @@ -91,15 +74,19 @@ class StructureListMemberEc2QuerySerializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -116,24 +103,18 @@ class StructureListMemberEc2QuerySerializer const _i2.XmlElementName( 'StructureListMemberResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final StructureListMember(:a, :b) = object; if (a != null) { result$ ..add(const _i2.XmlElementName('Value')) - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add(const _i2.XmlElementName('Other')) - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart index ef65bfe5f7..67671dc829 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_blobs_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.xml_blobs_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -28,11 +28,10 @@ abstract class XmlBlobsOutput factory XmlBlobsOutput.fromResponse( XmlBlobsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlBlobsOutputEc2QuerySerializer() + XmlBlobsOutputEc2QuerySerializer(), ]; _i2.Uint8List? get data; @@ -42,10 +41,7 @@ abstract class XmlBlobsOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlBlobsOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -55,18 +51,12 @@ class XmlBlobsOutputEc2QuerySerializer const XmlBlobsOutputEc2QuerySerializer() : super('XmlBlobsOutput'); @override - Iterable get types => const [ - XmlBlobsOutput, - _$XmlBlobsOutput, - ]; + Iterable get types => const [XmlBlobsOutput, _$XmlBlobsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlBlobsOutput deserialize( @@ -85,10 +75,12 @@ class XmlBlobsOutputEc2QuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } } @@ -105,16 +97,18 @@ class XmlBlobsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlBlobsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlBlobsOutput(:data) = object; if (data != null) { result$ ..add(const _i3.XmlElementName('Data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i2.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i2.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart index caca4c3547..f4b3218422 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.xml_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,11 +42,10 @@ abstract class XmlEnumsOutput factory XmlEnumsOutput.fromResponse( XmlEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlEnumsOutputEc2QuerySerializer() + XmlEnumsOutputEc2QuerySerializer(), ]; FooEnum? get fooEnum1; @@ -57,41 +56,24 @@ abstract class XmlEnumsOutput _i2.BuiltMap? get fooEnumMap; @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlEnumsOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlEnumsOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -101,18 +83,12 @@ class XmlEnumsOutputEc2QuerySerializer const XmlEnumsOutputEc2QuerySerializer() : super('XmlEnumsOutput'); @override - Iterable get types => const [ - XmlEnumsOutput, - _$XmlEnumsOutput, - ]; + Iterable get types => const [XmlEnumsOutput, _$XmlEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlEnumsOutput deserialize( @@ -131,55 +107,63 @@ class XmlEnumsOutputEc2QuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.fooEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i2.BuiltSet)); + result.fooEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.fooEnumMap.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } } @@ -196,7 +180,7 @@ class XmlEnumsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlEnumsOutput( :fooEnum1, @@ -204,74 +188,77 @@ class XmlEnumsOutputEc2QuerySerializer :fooEnum3, :fooEnumList, :fooEnumSet, - :fooEnumMap + :fooEnumMap, ) = object; if (fooEnum1 != null) { result$ ..add(const _i3.XmlElementName('FooEnum1')) - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add(const _i3.XmlElementName('FooEnum2')) - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add(const _i3.XmlElementName('FooEnum3')) - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add(const _i3.XmlElementName('FooEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - fooEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + fooEnumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add(const _i3.XmlElementName('FooEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - fooEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + fooEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add(const _i3.XmlElementName('FooEnumMap')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - fooEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + fooEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart index e46d58ace9..69ec6ae825 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_enums_output.g.dart @@ -23,14 +23,14 @@ class _$XmlEnumsOutput extends XmlEnumsOutput { factory _$XmlEnumsOutput([void Function(XmlEnumsOutputBuilder)? updates]) => (new XmlEnumsOutputBuilder()..update(updates))._build(); - _$XmlEnumsOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + _$XmlEnumsOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override XmlEnumsOutput rebuild(void Function(XmlEnumsOutputBuilder) updates) => @@ -133,14 +133,16 @@ class XmlEnumsOutputBuilder _$XmlEnumsOutput _build() { _$XmlEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlEnumsOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -152,7 +154,10 @@ class XmlEnumsOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlEnumsOutput', _$failedField, e.toString()); + r'XmlEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart index fb2cfd30fd..2edccf92d3 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.xml_int_enums_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,8 +33,9 @@ abstract class XmlIntEnumsOutput ); } - factory XmlIntEnumsOutput.build( - [void Function(XmlIntEnumsOutputBuilder) updates]) = _$XmlIntEnumsOutput; + factory XmlIntEnumsOutput.build([ + void Function(XmlIntEnumsOutputBuilder) updates, + ]) = _$XmlIntEnumsOutput; const XmlIntEnumsOutput._(); @@ -42,11 +43,10 @@ abstract class XmlIntEnumsOutput factory XmlIntEnumsOutput.fromResponse( XmlIntEnumsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlIntEnumsOutputEc2QuerySerializer() + XmlIntEnumsOutputEc2QuerySerializer(), ]; IntegerEnum? get intEnum1; @@ -57,41 +57,24 @@ abstract class XmlIntEnumsOutput _i2.BuiltMap? get intEnumMap; @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlIntEnumsOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlIntEnumsOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -101,18 +84,12 @@ class XmlIntEnumsOutputEc2QuerySerializer const XmlIntEnumsOutputEc2QuerySerializer() : super('XmlIntEnumsOutput'); @override - Iterable get types => const [ - XmlIntEnumsOutput, - _$XmlIntEnumsOutput, - ]; + Iterable get types => const [XmlIntEnumsOutput, _$XmlIntEnumsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlIntEnumsOutput deserialize( @@ -131,55 +108,63 @@ class XmlIntEnumsOutputEc2QuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i2.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i2.BuiltSet)); + result.intEnumSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i2.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.intEnumMap.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); } } @@ -196,7 +181,7 @@ class XmlIntEnumsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlIntEnumsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlIntEnumsOutput( :intEnum1, @@ -204,74 +189,81 @@ class XmlIntEnumsOutputEc2QuerySerializer :intEnum3, :intEnumList, :intEnumSet, - :intEnumMap + :intEnumMap, ) = object; if (intEnum1 != null) { result$ ..add(const _i3.XmlElementName('IntEnum1')) - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum1, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum2 != null) { result$ ..add(const _i3.XmlElementName('IntEnum2')) - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum2, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum3 != null) { result$ ..add(const _i3.XmlElementName('IntEnum3')) - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum3, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('IntEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (intEnumSet != null) { result$ ..add(const _i3.XmlElementName('IntEnumSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - intEnumSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + intEnumSet, + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (intEnumMap != null) { result$ ..add(const _i3.XmlElementName('IntEnumMap')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - intEnumMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + intEnumMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart index 1afa0504c6..d19b6d6a44 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_int_enums_output.g.dart @@ -20,18 +20,18 @@ class _$XmlIntEnumsOutput extends XmlIntEnumsOutput { @override final _i2.BuiltMap? intEnumMap; - factory _$XmlIntEnumsOutput( - [void Function(XmlIntEnumsOutputBuilder)? updates]) => - (new XmlIntEnumsOutputBuilder()..update(updates))._build(); - - _$XmlIntEnumsOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$XmlIntEnumsOutput([ + void Function(XmlIntEnumsOutputBuilder)? updates, + ]) => (new XmlIntEnumsOutputBuilder()..update(updates))._build(); + + _$XmlIntEnumsOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override XmlIntEnumsOutput rebuild(void Function(XmlIntEnumsOutputBuilder) updates) => @@ -134,14 +134,16 @@ class XmlIntEnumsOutputBuilder _$XmlIntEnumsOutput _build() { _$XmlIntEnumsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlIntEnumsOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -153,7 +155,10 @@ class XmlIntEnumsOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlIntEnumsOutput', _$failedField, e.toString()); + r'XmlIntEnumsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart index e010fcdba5..8677d8d4a7 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.xml_lists_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,21 +42,24 @@ abstract class XmlListsOutput timestampList == null ? null : _i2.BuiltList(timestampList), enumList: enumList == null ? null : _i2.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i2.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i2.BuiltList(nestedStringList.map((el) => _i2.BuiltList(el))), renamedListMembers: renamedListMembers == null ? null : _i2.BuiltList(renamedListMembers), flattenedList: flattenedList == null ? null : _i2.BuiltList(flattenedList), flattenedList2: flattenedList2 == null ? null : _i2.BuiltList(flattenedList2), - flattenedListWithMemberNamespace: flattenedListWithMemberNamespace == null - ? null - : _i2.BuiltList(flattenedListWithMemberNamespace), - flattenedListWithNamespace: flattenedListWithNamespace == null - ? null - : _i2.BuiltList(flattenedListWithNamespace), + flattenedListWithMemberNamespace: + flattenedListWithMemberNamespace == null + ? null + : _i2.BuiltList(flattenedListWithMemberNamespace), + flattenedListWithNamespace: + flattenedListWithNamespace == null + ? null + : _i2.BuiltList(flattenedListWithNamespace), structureList: structureList == null ? null : _i2.BuiltList(structureList), ); @@ -71,11 +74,10 @@ abstract class XmlListsOutput factory XmlListsOutput.fromResponse( XmlListsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - XmlListsOutputEc2QuerySerializer() + XmlListsOutputEc2QuerySerializer(), ]; _i2.BuiltList? get stringList; @@ -96,81 +98,43 @@ abstract class XmlListsOutput _i2.BuiltList? get structureList; @override List get props => [ - stringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - renamedListMembers, - flattenedList, - flattenedList2, - flattenedListWithMemberNamespace, - flattenedListWithNamespace, - structureList, - ]; + stringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + renamedListMembers, + flattenedList, + flattenedList2, + flattenedListWithMemberNamespace, + flattenedListWithNamespace, + structureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlListsOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'renamedListMembers', - renamedListMembers, - ) - ..add( - 'flattenedList', - flattenedList, - ) - ..add( - 'flattenedList2', - flattenedList2, - ) - ..add( - 'flattenedListWithMemberNamespace', - flattenedListWithMemberNamespace, - ) - ..add( - 'flattenedListWithNamespace', - flattenedListWithNamespace, - ) - ..add( - 'structureList', - structureList, - ); + final helper = + newBuiltValueToStringHelper('XmlListsOutput') + ..add('stringList', stringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('renamedListMembers', renamedListMembers) + ..add('flattenedList', flattenedList) + ..add('flattenedList2', flattenedList2) + ..add( + 'flattenedListWithMemberNamespace', + flattenedListWithMemberNamespace, + ) + ..add('flattenedListWithNamespace', flattenedListWithNamespace) + ..add('structureList', structureList); return helper.toString(); } } @@ -180,18 +144,12 @@ class XmlListsOutputEc2QuerySerializer const XmlListsOutputEc2QuerySerializer() : super('XmlListsOutput'); @override - Iterable get types => const [ - XmlListsOutput, - _$XmlListsOutput, - ]; + Iterable get types => const [XmlListsOutput, _$XmlListsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlListsOutput deserialize( @@ -210,142 +168,167 @@ class XmlListsOutputEc2QuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.stringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'stringSet': - result.stringSet.replace((const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], - ), - ) as _i2.BuiltSet)); + result.stringSet.replace( + (const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltSet, [ + FullType(String), + ]), + ) + as _i2.BuiltSet), + ); case 'integerList': - result.integerList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], - ), - ) as _i2.BuiltList)); + result.integerList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), + ) + as _i2.BuiltList), + ); case 'booleanList': - result.booleanList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], - ), - ) as _i2.BuiltList)); + result.booleanList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(bool), + ]), + ) + as _i2.BuiltList), + ); case 'timestampList': - result.timestampList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ), - ) as _i2.BuiltList)); + result.timestampList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i2.BuiltList), + ); case 'enumList': - result.enumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ), - ) as _i2.BuiltList)); + result.enumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i2.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i2.BuiltList)); + result.intEnumList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i2.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i2.BuiltList<_i2.BuiltList>)); + as _i2.BuiltList<_i2.BuiltList>), + ); case 'renamed': - result.renamedListMembers.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.renamedListMembers.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'flattenedList': - result.flattenedList.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'customName': - result.flattenedList2.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList2.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithMemberNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'myStructureList': - result.structureList.replace((const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i2.BuiltList)); + result.structureList.replace( + (const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i2.BuiltList), + ); } } @@ -362,7 +345,7 @@ class XmlListsOutputEc2QuerySerializer const _i3.XmlElementName( 'XmlListsOutputResponse', _i3.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlListsOutput( :stringList, @@ -378,207 +361,194 @@ class XmlListsOutputEc2QuerySerializer :flattenedList2, :flattenedListWithMemberNamespace, :flattenedListWithNamespace, - :structureList + :structureList, ) = object; if (stringList != null) { result$ ..add(const _i3.XmlElementName('StringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - stringList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + stringList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add(const _i3.XmlElementName('StringSet')) - ..add(const _i3.XmlBuiltSetSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - stringSet, - specifiedType: const FullType( - _i2.BuiltSet, - [FullType(String)], + ..add( + const _i3.XmlBuiltSetSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + stringSet, + specifiedType: const FullType(_i2.BuiltSet, [FullType(String)]), ), - )); + ); } if (integerList != null) { result$ ..add(const _i3.XmlElementName('IntegerList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - integerList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(int)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + integerList, + specifiedType: const FullType(_i2.BuiltList, [FullType(int)]), ), - )); + ); } if (booleanList != null) { result$ ..add(const _i3.XmlElementName('BooleanList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - booleanList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(bool)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + booleanList, + specifiedType: const FullType(_i2.BuiltList, [FullType(bool)]), ), - )); + ); } if (timestampList != null) { result$ ..add(const _i3.XmlElementName('TimestampList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - timestampList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(DateTime)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + timestampList, + specifiedType: const FullType(_i2.BuiltList, [FullType(DateTime)]), ), - )); + ); } if (enumList != null) { result$ ..add(const _i3.XmlElementName('EnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - enumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(FooEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + enumList, + specifiedType: const FullType(_i2.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (intEnumList != null) { result$ ..add(const _i3.XmlElementName('IntEnumList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (nestedStringList != null) { result$ ..add(const _i3.XmlElementName('NestedStringList')) - ..add(const _i3.XmlBuiltListSerializer( - indexer: _i3.XmlIndexer.ec2QueryList) - .serialize( - serializers, - nestedStringList, - specifiedType: const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], + ..add( + const _i3.XmlBuiltListSerializer( + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + nestedStringList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (renamedListMembers != null) { result$ ..add(const _i3.XmlElementName('Renamed')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - renamedListMembers, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + renamedListMembers, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'FlattenedList', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'FlattenedList', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedList, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList2 != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'CustomName', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedList2, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'CustomName', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedList2, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithMemberNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'FlattenedListWithMemberNamespace', - memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedListWithMemberNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'FlattenedListWithMemberNamespace', + memberNamespace: _i3.XmlNamespace('https://xml-member.example.com'), + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedListWithMemberNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithNamespace != null) { - result$.addAll(const _i3.XmlBuiltListSerializer( - memberName: 'FlattenedListWithNamespace', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - flattenedListWithNamespace, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + result$.addAll( + const _i3.XmlBuiltListSerializer( + memberName: 'FlattenedListWithNamespace', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + flattenedListWithNamespace, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add(const _i3.XmlElementName('MyStructureList')) - ..add(const _i3.XmlBuiltListSerializer( - memberName: 'item', - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - structureList, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], + ..add( + const _i3.XmlBuiltListSerializer( + memberName: 'item', + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + structureList, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart index d80f21d508..3ee77d2a51 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_lists_output.g.dart @@ -39,22 +39,22 @@ class _$XmlListsOutput extends XmlListsOutput { factory _$XmlListsOutput([void Function(XmlListsOutputBuilder)? updates]) => (new XmlListsOutputBuilder()..update(updates))._build(); - _$XmlListsOutput._( - {this.stringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.renamedListMembers, - this.flattenedList, - this.flattenedList2, - this.flattenedListWithMemberNamespace, - this.flattenedListWithNamespace, - this.structureList}) - : super._(); + _$XmlListsOutput._({ + this.stringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.renamedListMembers, + this.flattenedList, + this.flattenedList2, + this.flattenedListWithMemberNamespace, + this.flattenedListWithNamespace, + this.structureList, + }) : super._(); @override XmlListsOutput rebuild(void Function(XmlListsOutputBuilder) updates) => @@ -157,8 +157,8 @@ class XmlListsOutputBuilder _i2.ListBuilder<_i2.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i2.ListBuilder<_i2.BuiltList>(); set nestedStringList( - _i2.ListBuilder<_i2.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i2.ListBuilder<_i2.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i2.ListBuilder? _renamedListMembers; _i2.ListBuilder get renamedListMembers => @@ -183,7 +183,8 @@ class XmlListsOutputBuilder _$this._flattenedListWithMemberNamespace ??= new _i2.ListBuilder(); set flattenedListWithMemberNamespace( - _i2.ListBuilder? flattenedListWithMemberNamespace) => + _i2.ListBuilder? flattenedListWithMemberNamespace, + ) => _$this._flattenedListWithMemberNamespace = flattenedListWithMemberNamespace; @@ -191,8 +192,8 @@ class XmlListsOutputBuilder _i2.ListBuilder get flattenedListWithNamespace => _$this._flattenedListWithNamespace ??= new _i2.ListBuilder(); set flattenedListWithNamespace( - _i2.ListBuilder? flattenedListWithNamespace) => - _$this._flattenedListWithNamespace = flattenedListWithNamespace; + _i2.ListBuilder? flattenedListWithNamespace, + ) => _$this._flattenedListWithNamespace = flattenedListWithNamespace; _i2.ListBuilder? _structureList; _i2.ListBuilder get structureList => @@ -242,23 +243,25 @@ class XmlListsOutputBuilder _$XmlListsOutput _build() { _$XmlListsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlListsOutput._( - stringList: _stringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - renamedListMembers: _renamedListMembers?.build(), - flattenedList: _flattenedList?.build(), - flattenedList2: _flattenedList2?.build(), - flattenedListWithMemberNamespace: - _flattenedListWithMemberNamespace?.build(), - flattenedListWithNamespace: _flattenedListWithNamespace?.build(), - structureList: _structureList?.build()); + stringList: _stringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + renamedListMembers: _renamedListMembers?.build(), + flattenedList: _flattenedList?.build(), + flattenedList2: _flattenedList2?.build(), + flattenedListWithMemberNamespace: + _flattenedListWithMemberNamespace?.build(), + flattenedListWithNamespace: _flattenedListWithNamespace?.build(), + structureList: _structureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -292,7 +295,10 @@ class XmlListsOutputBuilder _structureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlListsOutput', _$failedField, e.toString()); + r'XmlListsOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart index 3076b63a61..b338b886f8 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.xml_namespace_nested; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,45 +14,34 @@ part 'xml_namespace_nested.g.dart'; abstract class XmlNamespaceNested with _i1.AWSEquatable implements Built { - factory XmlNamespaceNested({ - String? foo, - List? values, - }) { + factory XmlNamespaceNested({String? foo, List? values}) { return _$XmlNamespaceNested._( foo: foo, values: values == null ? null : _i2.BuiltList(values), ); } - factory XmlNamespaceNested.build( - [void Function(XmlNamespaceNestedBuilder) updates]) = - _$XmlNamespaceNested; + factory XmlNamespaceNested.build([ + void Function(XmlNamespaceNestedBuilder) updates, + ]) = _$XmlNamespaceNested; const XmlNamespaceNested._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNamespaceNestedEc2QuerySerializer() + XmlNamespaceNestedEc2QuerySerializer(), ]; String? get foo; _i2.BuiltList? get values; @override - List get props => [ - foo, - values, - ]; + List get props => [foo, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNamespaceNested') - ..add( - 'foo', - foo, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('XmlNamespaceNested') + ..add('foo', foo) + ..add('values', values); return helper.toString(); } } @@ -62,18 +51,12 @@ class XmlNamespaceNestedEc2QuerySerializer const XmlNamespaceNestedEc2QuerySerializer() : super('XmlNamespaceNested'); @override - Iterable get types => const [ - XmlNamespaceNested, - _$XmlNamespaceNested, - ]; + Iterable get types => const [XmlNamespaceNested, _$XmlNamespaceNested]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespaceNested deserialize( @@ -92,22 +75,26 @@ class XmlNamespaceNestedEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.ec2QueryList, - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.ec2QueryList, + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -124,40 +111,39 @@ class XmlNamespaceNestedEc2QuerySerializer const _i3.XmlElementName( 'XmlNamespaceNestedResponse', _i3.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespaceNested(:foo, :values) = object; if (foo != null) { result$ - ..add(const _i3.XmlElementName( - 'Foo', - _i3.XmlNamespace( - 'http://baz.com', - 'baz', + ..add( + const _i3.XmlElementName( + 'Foo', + _i3.XmlNamespace('http://baz.com', 'baz'), ), - )) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ) + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (values != null) { result$ - ..add(const _i3.XmlElementName( - 'Values', - _i3.XmlNamespace('http://qux.com'), - )) - ..add(const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com'), - indexer: _i3.XmlIndexer.ec2QueryList, - ).serialize( - serializers, - values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlElementName( + 'Values', + _i3.XmlNamespace('http://qux.com'), + ), + ) + ..add( + const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + indexer: _i3.XmlIndexer.ec2QueryList, + ).serialize( + serializers, + values, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart index 80b634991e..300ea21e0e 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespace_nested.g.dart @@ -12,16 +12,16 @@ class _$XmlNamespaceNested extends XmlNamespaceNested { @override final _i2.BuiltList? values; - factory _$XmlNamespaceNested( - [void Function(XmlNamespaceNestedBuilder)? updates]) => - (new XmlNamespaceNestedBuilder()..update(updates))._build(); + factory _$XmlNamespaceNested([ + void Function(XmlNamespaceNestedBuilder)? updates, + ]) => (new XmlNamespaceNestedBuilder()..update(updates))._build(); _$XmlNamespaceNested._({this.foo, this.values}) : super._(); @override XmlNamespaceNested rebuild( - void Function(XmlNamespaceNestedBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespaceNestedBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespaceNestedBuilder toBuilder() => @@ -96,7 +96,10 @@ class XmlNamespaceNestedBuilder _values?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespaceNested', _$failedField, e.toString()); + r'XmlNamespaceNested', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart index cd9dc65f42..b47e2f8ab3 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.xml_namespaces_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class XmlNamespacesOutput return _$XmlNamespacesOutput._(nested: nested); } - factory XmlNamespacesOutput.build( - [void Function(XmlNamespacesOutputBuilder) updates]) = - _$XmlNamespacesOutput; + factory XmlNamespacesOutput.build([ + void Function(XmlNamespacesOutputBuilder) updates, + ]) = _$XmlNamespacesOutput; const XmlNamespacesOutput._(); @@ -28,11 +28,10 @@ abstract class XmlNamespacesOutput factory XmlNamespacesOutput.fromResponse( XmlNamespacesOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlNamespacesOutputEc2QuerySerializer() + XmlNamespacesOutputEc2QuerySerializer(), ]; XmlNamespaceNested? get nested; @@ -42,10 +41,7 @@ abstract class XmlNamespacesOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlNamespacesOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -56,17 +52,14 @@ class XmlNamespacesOutputEc2QuerySerializer @override Iterable get types => const [ - XmlNamespacesOutput, - _$XmlNamespacesOutput, - ]; + XmlNamespacesOutput, + _$XmlNamespacesOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespacesOutput deserialize( @@ -85,10 +78,13 @@ class XmlNamespacesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -105,16 +101,18 @@ class XmlNamespacesOutputEc2QuerySerializer const _i2.XmlElementName( 'XmlNamespacesOutputResponse', _i2.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespacesOutput(:nested) = object; if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(XmlNamespaceNested), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(XmlNamespaceNested), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart index 903b439f9c..01cfed012f 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_namespaces_output.g.dart @@ -10,16 +10,16 @@ class _$XmlNamespacesOutput extends XmlNamespacesOutput { @override final XmlNamespaceNested? nested; - factory _$XmlNamespacesOutput( - [void Function(XmlNamespacesOutputBuilder)? updates]) => - (new XmlNamespacesOutputBuilder()..update(updates))._build(); + factory _$XmlNamespacesOutput([ + void Function(XmlNamespacesOutputBuilder)? updates, + ]) => (new XmlNamespacesOutputBuilder()..update(updates))._build(); _$XmlNamespacesOutput._({this.nested}) : super._(); @override XmlNamespacesOutput rebuild( - void Function(XmlNamespacesOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespacesOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespacesOutputBuilder toBuilder() => @@ -85,7 +85,10 @@ class XmlNamespacesOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespacesOutput', _$failedField, e.toString()); + r'XmlNamespacesOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart index b187f7fad0..d026a015db 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.model.xml_timestamps_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class XmlTimestampsOutput ); } - factory XmlTimestampsOutput.build( - [void Function(XmlTimestampsOutputBuilder) updates]) = - _$XmlTimestampsOutput; + factory XmlTimestampsOutput.build([ + void Function(XmlTimestampsOutputBuilder) updates, + ]) = _$XmlTimestampsOutput; const XmlTimestampsOutput._(); @@ -43,11 +43,10 @@ abstract class XmlTimestampsOutput factory XmlTimestampsOutput.fromResponse( XmlTimestampsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - XmlTimestampsOutputEc2QuerySerializer() + XmlTimestampsOutputEc2QuerySerializer(), ]; DateTime? get normal; @@ -59,46 +58,26 @@ abstract class XmlTimestampsOutput DateTime? get httpDateOnTarget; @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlTimestampsOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('XmlTimestampsOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -109,17 +88,14 @@ class XmlTimestampsOutputEc2QuerySerializer @override Iterable get types => const [ - XmlTimestampsOutput, - _$XmlTimestampsOutput, - ]; + XmlTimestampsOutput, + _$XmlTimestampsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlTimestampsOutput deserialize( @@ -138,44 +114,34 @@ class XmlTimestampsOutputEc2QuerySerializer } switch (key) { case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'dateTime': result.dateTime = _i2.TimestampSerializer.dateTime.deserialize( serializers, value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i2.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i2.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i2.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i2.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i2.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i2.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i2.TimestampSerializer.httpDate + .deserialize(serializers, value); } } @@ -192,7 +158,7 @@ class XmlTimestampsOutputEc2QuerySerializer const _i2.XmlElementName( 'XmlTimestampsOutputResponse', _i2.XmlNamespace('https://example.com/'), - ) + ), ]; final XmlTimestampsOutput( :normal, @@ -201,63 +167,71 @@ class XmlTimestampsOutputEc2QuerySerializer :epochSeconds, :epochSecondsOnTarget, :httpDate, - :httpDateOnTarget + :httpDateOnTarget, ) = object; if (normal != null) { result$ ..add(const _i2.XmlElementName('Normal')) - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } if (dateTime != null) { result$ ..add(const _i2.XmlElementName('DateTime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add(const _i2.XmlElementName('DateTimeOnTarget')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add(const _i2.XmlElementName('EpochSeconds')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add(const _i2.XmlElementName('EpochSecondsOnTarget')) - ..add(_i2.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i2.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add(const _i2.XmlElementName('HttpDate')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add(const _i2.XmlElementName('HttpDateOnTarget')) - ..add(_i2.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i2.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart index 87f8eb4a56..00966c20c3 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/model/xml_timestamps_output.g.dart @@ -22,24 +22,24 @@ class _$XmlTimestampsOutput extends XmlTimestampsOutput { @override final DateTime? httpDateOnTarget; - factory _$XmlTimestampsOutput( - [void Function(XmlTimestampsOutputBuilder)? updates]) => - (new XmlTimestampsOutputBuilder()..update(updates))._build(); - - _$XmlTimestampsOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$XmlTimestampsOutput([ + void Function(XmlTimestampsOutputBuilder)? updates, + ]) => (new XmlTimestampsOutputBuilder()..update(updates))._build(); + + _$XmlTimestampsOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override XmlTimestampsOutput rebuild( - void Function(XmlTimestampsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlTimestampsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlTimestampsOutputBuilder toBuilder() => @@ -141,15 +141,17 @@ class XmlTimestampsOutputBuilder XmlTimestampsOutput build() => _build(); _$XmlTimestampsOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlTimestampsOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart index 251ed2b61b..907f7ad626 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:ec2_query_v2/src/ec2_protocol/model/datetime_offsets_output.dart import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'DatetimeOffsets', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -71,11 +84,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart index 291412ed06..03b6a95af9 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response members. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EmptyInputAndEmptyOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart index 0916d80853..9c250fbd09 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class EndpointOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,19 +59,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart index 3550ec2f68..5068864b95 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,32 @@ import 'package:ec2_query_v2/src/ec2_protocol/model/host_label_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -43,7 +46,7 @@ class EndpointWithHostLabelOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'EndpointWithHostLabelOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,19 +64,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +98,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart index 4e4e4dff41..64c0b296bf 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:ec2_query_v2/src/ec2_protocol/model/fractional_seconds_output.da import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'FractionalSeconds', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -71,11 +84,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart index 0a294ca679..b259c0ca61 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,29 +15,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +59,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'GreetingWithErrors', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,9 +77,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -75,33 +88,23 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.ec2', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.ec2', shape: 'ComplexError'), + _i1.ErrorKind.client, + ComplexError, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.ec2', shape: 'InvalidGreeting'), + _i1.ErrorKind.client, + InvalidGreeting, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -122,11 +125,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart index bb0a2efdb6..b21153212b 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -40,7 +41,7 @@ class HostWithPathOperation <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'HostWithPathOperation', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart index 7e09ce1125..79f269c42b 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/ignores_wrapping_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.ignores_wrapping_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response". -class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, IgnoresWrappingXmlNameOutput, IgnoresWrappingXmlNameOutput> { +class IgnoresWrappingXmlNameOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > { /// The xmlName trait on the output structure is ignored in AWS Query. The wrapping element is always operation name + "Response". IgnoresWrappingXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoresWrappingXmlNameOutput, - IgnoresWrappingXmlNameOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoresWrappingXmlNameOutput, + IgnoresWrappingXmlNameOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'IgnoresWrappingXmlName', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([IgnoresWrappingXmlNameOutput? output]) => 200; @@ -73,11 +86,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, IgnoresWrappingXmlNameOutput buildOutput( IgnoresWrappingXmlNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoresWrappingXmlNameOutput.fromResponse( - payload, - response, - ); + ) => IgnoresWrappingXmlNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class IgnoresWrappingXmlNameOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart index a45f1ecb66..4997196230 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/nested_structures_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.nested_structures_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes nested and recursive structure members. -class NestedStructuresOperation extends _i1.HttpOperation { +class NestedStructuresOperation + extends + _i1.HttpOperation< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes nested and recursive structure members. NestedStructuresOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedStructuresInput, + NestedStructuresInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class NestedStructuresOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'NestedStructures', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class NestedStructuresOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class NestedStructuresOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart index 0e33ed8ef8..714d55e3dd 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request payload or response members. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'NoInputAndOutput', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -73,11 +86,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart index 728984038b..13362689fd 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryIdempotencyTokenAutoFill', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +85,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +110,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart index 5378bdced0..736d8d8ca4 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.query_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,31 +13,38 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes simple and complex lists. -class QueryListsOperation extends _i1 - .HttpOperation { +class QueryListsOperation + extends + _i1.HttpOperation< + QueryListsInput, + QueryListsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes simple and complex lists. QueryListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1 - .HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +53,7 @@ class QueryListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'QueryLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,18 +71,15 @@ class QueryListsOperation extends _i1 @override _i1.HttpRequest buildRequest(QueryListsInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +104,7 @@ class QueryListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart index 422ccbef2d..3dec307d90 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/query_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.query_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. -class QueryTimestampsOperation extends _i1.HttpOperation { +class QueryTimestampsOperation + extends + _i1.HttpOperation< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes timestamps. 1. Timestamps are serialized as RFC 3339 date-time values by default. 2. A timestampFormat trait on a member changes the format. 3. A timestampFormat trait on the shape targeted by the member changes the format. QueryTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryTimestampsInput, + QueryTimestampsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation[] + _responseInterceptors, action: 'QueryTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class QueryTimestampsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart index 0960a400ed..fba810e762 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/recursive_xml_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.recursive_xml_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - RecursiveXmlShapesOutput, RecursiveXmlShapesOutput> { +class RecursiveXmlShapesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > { /// Recursive shapes RecursiveXmlShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput, - RecursiveXmlShapesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + RecursiveXmlShapesOutput, + RecursiveXmlShapesOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'RecursiveXmlShapes', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([RecursiveXmlShapesOutput? output]) => 200; @@ -73,11 +86,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, RecursiveXmlShapesOutput buildOutput( RecursiveXmlShapesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveXmlShapesOutput.fromResponse( - payload, - response, - ); + ) => RecursiveXmlShapesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class RecursiveXmlShapesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart index abec1cbc01..fd3108fe0e 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_input_params_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.simple_input_params_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test serializes strings, numbers, and boolean values. -class SimpleInputParamsOperation extends _i1.HttpOperation< - SimpleInputParamsInput, SimpleInputParamsInput, _i1.Unit, _i1.Unit> { +class SimpleInputParamsOperation + extends + _i1.HttpOperation< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > { /// This test serializes strings, numbers, and boolean values. SimpleInputParamsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + SimpleInputParamsInput, + SimpleInputParamsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleInputParams', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class SimpleInputParamsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart index ff460ce76b..8fc1d42e9d 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/simple_scalar_xml_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.simple_scalar_xml_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:ec2_query_v2/src/ec2_protocol/model/simple_scalar_xml_properties import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput> { +class SimpleScalarXmlPropertiesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > { SimpleScalarXmlPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, SimpleScalarXmlPropertiesOutput, - SimpleScalarXmlPropertiesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + SimpleScalarXmlPropertiesOutput, + SimpleScalarXmlPropertiesOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'SimpleScalarXmlProperties', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,9 +73,9 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([SimpleScalarXmlPropertiesOutput? output]) => 200; @@ -74,11 +84,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< SimpleScalarXmlPropertiesOutput buildOutput( SimpleScalarXmlPropertiesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarXmlPropertiesOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarXmlPropertiesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +108,7 @@ class SimpleScalarXmlPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart index d2f43374b6..93a1f229b4 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { /// Blobs are base64 encoded XmlBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart index 62504ac401..3446320787 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_empty_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:ec2_query_v2/src/ec2_protocol/model/xml_blobs_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyBlobsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { +class XmlEmptyBlobsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> { XmlEmptyBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlBlobsOutput, XmlBlobsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyBlobsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyBlobs', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyBlobsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlBlobsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyBlobsOperation extends _i1 XmlBlobsOutput buildOutput( XmlBlobsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlBlobsOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyBlobsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart index 79d5421481..d7e924072d 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,31 @@ import 'package:ec2_query_v2/src/ec2_protocol/model/xml_lists_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlEmptyListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { XmlEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class XmlEmptyListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEmptyLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class XmlEmptyListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -71,11 +74,7 @@ class XmlEmptyListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class XmlEmptyListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart index 457f01ecbf..0808c488d1 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { +class XmlEnumsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlEnumsOutput, XmlEnumsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlEnumsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlEnumsOperation extends _i1 XmlEnumsOutput buildOutput( XmlEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart index 6b021593fb..37036f7232 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,37 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes intEnums as top level properties, in lists, sets, and maps. -class XmlIntEnumsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> { +class XmlIntEnumsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlIntEnumsOutput, + XmlIntEnumsOutput + > { /// This example serializes intEnums as top level properties, in lists, sets, and maps. XmlIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, - XmlIntEnumsOutput>> protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlIntEnumsOutput, XmlIntEnumsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +52,7 @@ class XmlIntEnumsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlIntEnums', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +70,9 @@ class XmlIntEnumsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlIntEnumsOutput? output]) => 200; @@ -73,11 +81,7 @@ class XmlIntEnumsOperation extends _i1 XmlIntEnumsOutput buildOutput( XmlIntEnumsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlIntEnumsOutput.fromResponse( - payload, - response, - ); + ) => XmlIntEnumsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +105,7 @@ class XmlIntEnumsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart index b906ef130d..9c1ada74fa 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,32 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. -class XmlListsOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { +class XmlListsOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> { /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. XmlListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlListsOutput, XmlListsOutput> + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +47,7 @@ class XmlListsOperation extends _i1 <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlLists', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +65,9 @@ class XmlListsOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlListsOutput? output]) => 200; @@ -73,11 +76,7 @@ class XmlListsOperation extends _i1 XmlListsOutput buildOutput( XmlListsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlListsOutput.fromResponse( - payload, - response, - ); + ) => XmlListsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +100,7 @@ class XmlListsOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart index 8088394df1..36b17558ab 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_namespaces_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_namespaces_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:ec2_query_v2/src/ec2_protocol/model/xml_namespaces_output.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlNamespacesOutput, XmlNamespacesOutput> { +class XmlNamespacesOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > { XmlNamespacesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlNamespacesOutput, - XmlNamespacesOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlNamespacesOutput, + XmlNamespacesOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlNamespaces', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlNamespacesOutput? output]) => 200; @@ -71,11 +84,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlNamespacesOutput buildOutput( XmlNamespacesOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlNamespacesOutput.fromResponse( - payload, - response, - ); + ) => XmlNamespacesOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart index c0866d8776..ec79320f27 100644 --- a/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart +++ b/packages/smithy/goldens/lib2/ec2Query/lib/src/ec2_protocol/operation/xml_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library ec2_query_v2.ec2_protocol.operation.xml_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - XmlTimestampsOutput, XmlTimestampsOutput> { +class XmlTimestampsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. XmlTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, XmlTimestampsOutput, - XmlTimestampsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + XmlTimestampsOutput, + XmlTimestampsOutput + > + > + protocols = [ _i2.Ec2QueryProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, <_i1.HttpResponseInterceptor>[] + _responseInterceptors, action: 'XmlTimestamps', version: '2020-01-08', - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/'; - }); + b.method = 'POST'; + b.path = r'/'; + }); @override int successCode([XmlTimestampsOutput? output]) => 200; @@ -73,11 +86,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, XmlTimestampsOutput buildOutput( XmlTimestampsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlTimestampsOutput.fromResponse( - payload, - response, - ); + ) => XmlTimestampsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/ec2Query/pubspec.yaml b/packages/smithy/goldens/lib2/ec2Query/pubspec.yaml index 180fb8875d..c9430d65f9 100644 --- a/packages/smithy/goldens/lib2/ec2Query/pubspec.yaml +++ b/packages/smithy/goldens/lib2/ec2Query/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,7 +16,7 @@ dependencies: built_value: ^8.6.0 built_collection: ^5.0.0 fixnum: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 dependency_overrides: smithy: @@ -38,6 +38,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart index a1e3f96cc4..5af026a4cb 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2019-12-16T22:48:18-01:00\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QueryDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2019-12-17T00:48:18+01:00\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2019-12-16T22:48:18-01:00\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QueryDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2019-12-17T00:48:18+01:00\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputEc2QuerySerializer()], + ); + }); } class DatetimeOffsetsOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputEc2QuerySerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart index 782e9ea467..b96a9e21c4 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,98 +13,83 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryEmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryEmptyInputAndEmptyOutput', - documentation: 'Empty input serializes no extra query params', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QueryEmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryEmptyInputAndEmptyOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputEc2QuerySerializer() - ], - ); - }, - ); + _i1.test('Ec2QueryEmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryEmptyInputAndEmptyOutput', + documentation: 'Empty input serializes no extra query params', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=EmptyInputAndEmptyOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QueryEmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryEmptyInputAndEmptyOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputEc2QuerySerializer(), + ], + ); + }); } class EmptyInputAndEmptyOutputInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -128,18 +113,15 @@ class EmptyInputAndEmptyOutputInputEc2QuerySerializer class EmptyInputAndEmptyOutputOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputEc2QuerySerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_operation_test.dart index 39e3eb9c55..f624119a75 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=EndpointOperation&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('Ec2QueryEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=EndpointOperation&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart index 2e0425af42..cafdc3e989 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,46 +12,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&Label=bar', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=EndpointWithHostLabelOperation&Version=2020-01-08&Label=bar', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputEc2QuerySerializer()], + ); + }); } class HostLabelInputEc2QuerySerializer @@ -63,11 +57,8 @@ class HostLabelInputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override HostLabelInput deserialize( @@ -86,10 +77,12 @@ class HostLabelInputEc2QuerySerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart index e6e77c1d84..5db99e6a3d 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2000-01-02T20:34:56.123Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QueryHttpDateWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryHttpDateWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse http-date timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Sun, 02 Jan 2000 20:34:56.456 GMT\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'httpdate': 946845296.456}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2000-01-02T20:34:56.123Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QueryHttpDateWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryHttpDateWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse http-date timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Sun, 02 Jan 2000 20:34:56.456 GMT\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'httpdate': 946845296.456}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputEc2QuerySerializer()], + ); + }); } class FractionalSecondsOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputEc2QuerySerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart index 02069df554..e9cec69b9b 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,131 +15,120 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2GreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2GreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how to deserialize the successful response', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Hello\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GreetingWithErrorsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2ComplexError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2ComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n \n ComplexError\n Hi\n Top level\n \n bar\n \n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: { - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorEc2QuerySerializer(), - ComplexNestedErrorDataEc2QuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'Ec2InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutput, GreetingWithErrorsOutput, InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2InvalidGreetingError', - documentation: 'Parses simple XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n \n InvalidGreeting\n Hi\n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2GreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2GreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how to deserialize the successful response', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Hello\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2ComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n \n ComplexError\n Hi\n Top level\n \n bar\n \n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: { + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorEc2QuerySerializer(), + ComplexNestedErrorDataEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutput, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2InvalidGreetingError', + documentation: 'Parses simple XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n \n InvalidGreeting\n Hi\n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingEc2QuerySerializer()], + ); + }); } class GreetingWithErrorsOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputEc2QuerySerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -158,10 +147,12 @@ class GreetingWithErrorsOutputEc2QuerySerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -187,11 +178,8 @@ class ComplexErrorEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexError deserialize( @@ -210,15 +198,20 @@ class ComplexErrorEc2QuerySerializer } switch (key) { case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -238,18 +231,15 @@ class ComplexErrorEc2QuerySerializer class ComplexNestedErrorDataEc2QuerySerializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataEc2QuerySerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override ComplexNestedErrorData deserialize( @@ -268,10 +258,12 @@ class ComplexNestedErrorDataEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -297,11 +289,8 @@ class InvalidGreetingEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override InvalidGreeting deserialize( @@ -320,10 +309,12 @@ class InvalidGreetingEc2QuerySerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart index 0dc0738bfd..0d54420415 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryHostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryHostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=HostWithPathOperation&Version=2020-01-08', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/custom/', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('Ec2QueryHostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryHostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=HostWithPathOperation&Version=2020-01-08', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/custom/', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart index 41f453c76b..ed239a0630 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/ignores_wrapping_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.ignores_wrapping_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,59 +12,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2IgnoresWrappingXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoresWrappingXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2IgnoresWrappingXmlName', - documentation: - 'The xmlName trait on the output structure is ignored in the ec2 protocol', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n bar\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'foo': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoresWrappingXmlNameOutputEc2QuerySerializer() - ], - ); - }, - ); + _i1.test('Ec2IgnoresWrappingXmlName (response)', () async { + await _i2.httpResponseTest( + operation: IgnoresWrappingXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2IgnoresWrappingXmlName', + documentation: + 'The xmlName trait on the output structure is ignored in the ec2 protocol', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n bar\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoresWrappingXmlNameOutputEc2QuerySerializer(), + ], + ); + }); } class IgnoresWrappingXmlNameOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const IgnoresWrappingXmlNameOutputEc2QuerySerializer() - : super('IgnoresWrappingXmlNameOutput'); + : super('IgnoresWrappingXmlNameOutput'); @override Iterable get types => const [IgnoresWrappingXmlNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override IgnoresWrappingXmlNameOutput deserialize( @@ -83,10 +74,12 @@ class IgnoresWrappingXmlNameOutputEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart index d4d50800cd..0849b6bc29 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/nested_structures_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.nested_structures_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,71 +13,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2NestedStructures (request)', - () async { - await _i2.httpRequestTest( - operation: NestedStructuresOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2NestedStructures', - documentation: 'Serializes nested structures using dots', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Nested': { - 'StringArg': 'foo', - 'OtherArg': true, - 'RecursiveArg': {'StringArg': 'baz'}, - } + _i1.test('Ec2NestedStructures (request)', () async { + await _i2.httpRequestTest( + operation: NestedStructuresOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2NestedStructures', + documentation: 'Serializes nested structures using dots', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'Nested': { + 'StringArg': 'foo', + 'OtherArg': true, + 'RecursiveArg': {'StringArg': 'baz'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - NestedStructuresInputEc2QuerySerializer(), - StructArgEc2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + NestedStructuresInputEc2QuerySerializer(), + StructArgEc2QuerySerializer(), + ], + ); + }); } class NestedStructuresInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructuresInputEc2QuerySerializer() - : super('NestedStructuresInput'); + : super('NestedStructuresInput'); @override Iterable get types => const [NestedStructuresInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructuresInput deserialize( @@ -96,10 +87,13 @@ class NestedStructuresInputEc2QuerySerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } @@ -125,11 +119,8 @@ class StructArgEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructArg deserialize( @@ -148,20 +139,27 @@ class StructArgEc2QuerySerializer } switch (key) { case 'StringArg': - result.stringArg = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringArg = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'OtherArg': - result.otherArg = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.otherArg = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RecursiveArg': - result.recursiveArg.replace((serializers.deserialize( - value, - specifiedType: const FullType(StructArg), - ) as StructArg)); + result.recursiveArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(StructArg), + ) + as StructArg), + ); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart index bd2ec0969a..e7d4bb386c 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,94 +12,79 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2QueryNoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryNoInputAndOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=NoInputAndOutput&Version=2020-01-08', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'Ec2QueryNoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QueryNoInputAndOutput', - documentation: 'Empty output', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2QueryNoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryNoInputAndOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=NoInputAndOutput&Version=2020-01-08', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('Ec2QueryNoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QueryNoInputAndOutput', + documentation: 'Empty output', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputEc2QuerySerializer()], + ); + }); } class NoInputAndOutputOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputEc2QuerySerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart index 6f8aaeb721..e1681db376 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,99 +12,98 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('Ec2ProtocolIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ProtocolIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', + _i1.test( + 'Ec2ProtocolIdempotencyTokenAutoFill (request)', + () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000000', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); - _i1.test('Ec2ProtocolIdempotencyTokenAutoFillIsSet (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ProtocolIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ProtocolIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000000', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: - 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000123', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'token': '00000000-0000-4000-8000-000000000123'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputEc2QuerySerializer(), + ], + ); + }, + skip: 'bool.fromEnvironment is not working in tests for some reason', + ); + _i1.test( + 'Ec2ProtocolIdempotencyTokenAutoFillIsSet (request)', + () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ProtocolIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000123', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'token': '00000000-0000-4000-8000-000000000123'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputEc2QuerySerializer(), + ], + ); + }, + skip: 'bool.fromEnvironment is not working in tests for some reason', + ); } class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputEc2QuerySerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -123,10 +122,12 @@ class QueryIdempotencyTokenAutoFillInputEc2QuerySerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_lists_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_lists_operation_test.dart index c87ef54217..ed3ce5ab5e 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.query_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,76 +15,27 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2Lists (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2Lists', - documentation: 'Serializes query lists. All EC2 lists are flattened.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&ComplexListArg.1.Hi=hello&ComplexListArg.2.Hi=hola', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArg': [ - 'foo', - 'bar', - 'baz', - ], - 'ComplexListArg': [ - {'hi': 'hello'}, - {'hi': 'hola'}, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputEc2QuerySerializer(), - GreetingStructEc2QuerySerializer(), - NestedStructWithListEc2QuerySerializer(), - ], - ); - }, - ); - _i1.test('Ec2EmptyQueryLists (request)', () async { + _i1.test('Ec2Lists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'Ec2EmptyQueryLists', - documentation: 'Serializes empty query lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), + id: 'Ec2Lists', + documentation: 'Serializes query lists. All EC2 lists are flattened.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&ListArg=', + body: + 'Action=QueryLists&Version=2020-01-08&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&ComplexListArg.1.Hi=hello&ComplexListArg.2.Hi=hola', bodyMediaType: 'application/x-www-form-urlencoded', - params: {'ListArg': []}, + params: { + 'ListArg': ['foo', 'bar', 'baz'], + 'ComplexListArg': [ + {'hi': 'hello'}, + {'hi': 'hola'}, + ], + }, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -106,9 +57,9 @@ void main() { NestedStructWithListEc2QuerySerializer(), ], ); - }, skip: 'Unclear how to reconcile with QueryEmptyQueryMaps'); + }); _i1.test( - 'Ec2ListArgWithXmlNameMember (request)', + 'Ec2EmptyQueryLists (request)', () async { await _i2.httpRequestTest( operation: QueryListsOperation( @@ -116,23 +67,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ListArgWithXmlNameMember', - documentation: - 'An xmlName trait in the member of a list has no effect on the list serialization.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), + id: 'Ec2EmptyQueryLists', + documentation: 'Serializes empty query lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.1=A&ListArgWithXmlNameMember.2=B', + body: 'Action=QueryLists&Version=2020-01-08&ListArg=', bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArgWithXmlNameMember': [ - 'A', - 'B', - ] - }, + params: {'ListArg': []}, vendorParamsShape: null, vendorParams: {}, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, @@ -155,104 +96,127 @@ void main() { ], ); }, + skip: 'Unclear how to reconcile with QueryEmptyQueryMaps', ); - _i1.test( - 'Ec2ListMemberWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ListMemberWithXmlName', - documentation: 'Changes the name of the list using the xmlName trait', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'ListArgWithXmlName': [ - 'A', - 'B', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputEc2QuerySerializer(), - GreetingStructEc2QuerySerializer(), - NestedStructWithListEc2QuerySerializer(), - ], - ); - }, - ); - _i1.test( - 'Ec2ListNestedStructWithList (request)', - () async { - await _i2.httpRequestTest( - operation: QueryListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2ListNestedStructWithList', - documentation: 'Nested structure with a list member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.1=A&NestedWithList.ListArg.2=B', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'NestedWithList': { - 'ListArg': [ - 'A', - 'B', - ] - } + _i1.test('Ec2ListArgWithXmlNameMember (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ListArgWithXmlNameMember', + documentation: + 'An xmlName trait in the member of a list has no effect on the list serialization.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.1=A&ListArgWithXmlNameMember.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ListArgWithXmlNameMember': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputEc2QuerySerializer(), + GreetingStructEc2QuerySerializer(), + NestedStructWithListEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2ListMemberWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ListMemberWithXmlName', + documentation: 'Changes the name of the list using the xmlName trait', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'ListArgWithXmlName': ['A', 'B'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputEc2QuerySerializer(), + GreetingStructEc2QuerySerializer(), + NestedStructWithListEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2ListNestedStructWithList (request)', () async { + await _i2.httpRequestTest( + operation: QueryListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2ListNestedStructWithList', + documentation: 'Nested structure with a list member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.1=A&NestedWithList.ListArg.2=B', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'NestedWithList': { + 'ListArg': ['A', 'B'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryListsInputEc2QuerySerializer(), - GreetingStructEc2QuerySerializer(), - NestedStructWithListEc2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryListsInputEc2QuerySerializer(), + GreetingStructEc2QuerySerializer(), + NestedStructWithListEc2QuerySerializer(), + ], + ); + }); } class QueryListsInputEc2QuerySerializer @@ -264,11 +228,8 @@ class QueryListsInputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryListsInput deserialize( @@ -287,42 +248,53 @@ class QueryListsInputEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ComplexListArg': - result.complexListArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(GreetingStruct)], - ), - ) as _i4.BuiltList)); + result.complexListArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltList), + ); case 'ListArgWithXmlNameMember': - result.listArgWithXmlNameMember.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArgWithXmlNameMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'ListArgWithXmlName': - result.listArgWithXmlName.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArgWithXmlName.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'NestedWithList': - result.nestedWithList.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedStructWithList), - ) as NestedStructWithList)); + result.nestedWithList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedStructWithList), + ) + as NestedStructWithList), + ); } } @@ -348,11 +320,8 @@ class GreetingStructEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override GreetingStruct deserialize( @@ -371,10 +340,12 @@ class GreetingStructEc2QuerySerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -394,18 +365,15 @@ class GreetingStructEc2QuerySerializer class NestedStructWithListEc2QuerySerializer extends _i3.StructuredSmithySerializer { const NestedStructWithListEc2QuerySerializer() - : super('NestedStructWithList'); + : super('NestedStructWithList'); @override Iterable get types => const [NestedStructWithList]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override NestedStructWithList deserialize( @@ -424,13 +392,15 @@ class NestedStructWithListEc2QuerySerializer } switch (key) { case 'ListArg': - result.listArg.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.listArg.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart index ee6b5aee92..815c4da802 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/query_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.query_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2TimestampsInput (request)', - () async { - await _i2.httpRequestTest( - operation: QueryTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2TimestampsInput', - documentation: 'Serializes timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=QueryTimestamps&Version=2020-01-08&NormalFormat=2015-01-25T08%3A00%3A00Z&EpochMember=1422172800&EpochTarget=1422172800', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'normalFormat': 1422172800, - 'epochMember': 1422172800, - 'epochTarget': 1422172800, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryTimestampsInputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2TimestampsInput (request)', () async { + await _i2.httpRequestTest( + operation: QueryTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2TimestampsInput', + documentation: 'Serializes timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=QueryTimestamps&Version=2020-01-08&NormalFormat=2015-01-25T08%3A00%3A00Z&EpochMember=1422172800&EpochTarget=1422172800', + bodyMediaType: 'application/x-www-form-urlencoded', + params: { + 'normalFormat': 1422172800, + 'epochMember': 1422172800, + 'epochTarget': 1422172800, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryTimestampsInputEc2QuerySerializer()], + ); + }); } class QueryTimestampsInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const QueryTimestampsInputEc2QuerySerializer() - : super('QueryTimestampsInput'); + : super('QueryTimestampsInput'); @override Iterable get types => const [QueryTimestampsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override QueryTimestampsInput deserialize( @@ -90,11 +81,8 @@ class QueryTimestampsInputEc2QuerySerializer } switch (key) { case 'normalFormat': - result.normalFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.normalFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochMember': result.epochMember = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart index 9d95ce92eb..7362fcd5f8 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/recursive_xml_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.recursive_xml_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,71 +14,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2RecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveXmlShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2RecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { + _i1.test('Ec2RecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveXmlShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2RecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveXmlShapesOutputEc2QuerySerializer(), - RecursiveXmlShapesOutputNested1Ec2QuerySerializer(), - RecursiveXmlShapesOutputNested2Ec2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveXmlShapesOutputEc2QuerySerializer(), + RecursiveXmlShapesOutputNested1Ec2QuerySerializer(), + RecursiveXmlShapesOutputNested2Ec2QuerySerializer(), + ], + ); + }); } class RecursiveXmlShapesOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputEc2QuerySerializer() - : super('RecursiveXmlShapesOutput'); + : super('RecursiveXmlShapesOutput'); @override Iterable get types => const [RecursiveXmlShapesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutput deserialize( @@ -97,10 +88,15 @@ class RecursiveXmlShapesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } @@ -120,18 +116,15 @@ class RecursiveXmlShapesOutputEc2QuerySerializer class RecursiveXmlShapesOutputNested1Ec2QuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested1Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested1'); + : super('RecursiveXmlShapesOutputNested1'); @override Iterable get types => const [RecursiveXmlShapesOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested1 deserialize( @@ -150,15 +143,22 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested2), - ) as RecursiveXmlShapesOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested2, + ), + ) + as RecursiveXmlShapesOutputNested2), + ); } } @@ -178,18 +178,15 @@ class RecursiveXmlShapesOutputNested1Ec2QuerySerializer class RecursiveXmlShapesOutputNested2Ec2QuerySerializer extends _i3.StructuredSmithySerializer { const RecursiveXmlShapesOutputNested2Ec2QuerySerializer() - : super('RecursiveXmlShapesOutputNested2'); + : super('RecursiveXmlShapesOutputNested2'); @override Iterable get types => const [RecursiveXmlShapesOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override RecursiveXmlShapesOutputNested2 deserialize( @@ -208,15 +205,22 @@ class RecursiveXmlShapesOutputNested2Ec2QuerySerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveXmlShapesOutputNested1), - ) as RecursiveXmlShapesOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveXmlShapesOutputNested1, + ), + ) + as RecursiveXmlShapesOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart index 684a29c829..9ba7a054ea 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_input_params_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.simple_input_params_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,536 +15,440 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2SimpleInputParamsStrings (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsStrings', - documentation: 'Serializes strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Bar': 'val2', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsStringAndBooleanTrue (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsStringAndBooleanTrue', - documentation: 'Serializes booleans that are true', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'Foo': 'val1', - 'Baz': true, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsStringsAndBooleanFalse (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsStringsAndBooleanFalse', - documentation: 'Serializes booleans that are false', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Baz': false}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsInteger (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsInteger', - documentation: 'Serializes integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Bam': 10}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsFloat (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsFloat', - documentation: 'Serializes floats', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Boo': 10.8}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2SimpleInputParamsBlob (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2SimpleInputParamsBlob', - documentation: 'Blobs are base64 encoded in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'Qux': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2Enums (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2Enums', - documentation: 'Serializes enums in the query string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'FooEnum': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2Query (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2Query', - documentation: 'Serializes query using ec2QueryName trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&A=Hi', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'HasQueryName': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QueryIsPreferred (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QueryIsPreferred', - documentation: 'ec2QueryName trait is preferred over xmlName.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&B=Hi', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'HasQueryAndXmlName': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlNameIsUppercased (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2XmlNameIsUppercased', - documentation: - 'xmlName is used with the ec2 protocol, but the first character is uppercased', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: 'Action=SimpleInputParams&Version=2020-01-08&C=Hi', - bodyMediaType: 'application/x-www-form-urlencoded', - params: {'UsesXmlName': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QuerySupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'NaN', - 'Boo': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QuerySupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': 'Infinity', - 'Boo': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleInputParamsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'Ec2QuerySupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', - bodyMediaType: 'application/x-www-form-urlencoded', - params: { - 'FloatValue': '-Infinity', - 'Boo': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2SimpleInputParamsStrings (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsStrings', + documentation: 'Serializes strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Bar': 'val2'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsStringAndBooleanTrue (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsStringAndBooleanTrue', + documentation: 'Serializes booleans that are true', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Foo': 'val1', 'Baz': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsStringsAndBooleanFalse (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsStringsAndBooleanFalse', + documentation: 'Serializes booleans that are false', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Baz=false', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Baz': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsInteger (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsInteger', + documentation: 'Serializes integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Bam=10', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Bam': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsFloat (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsFloat', + documentation: 'Serializes floats', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Boo=10.8', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Boo': 10.8}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2SimpleInputParamsBlob (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2SimpleInputParamsBlob', + documentation: 'Blobs are base64 encoded in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'Qux': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2Enums (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2Enums', + documentation: 'Serializes enums in the query string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FooEnum': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2Query (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2Query', + documentation: 'Serializes query using ec2QueryName trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&A=Hi', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'HasQueryName': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QueryIsPreferred (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QueryIsPreferred', + documentation: 'ec2QueryName trait is preferred over xmlName.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&B=Hi', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'HasQueryAndXmlName': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlNameIsUppercased (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2XmlNameIsUppercased', + documentation: + 'xmlName is used with the ec2 protocol, but the first character is uppercased', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: 'Action=SimpleInputParams&Version=2020-01-08&C=Hi', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'UsesXmlName': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QuerySupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QuerySupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'NaN', 'Boo': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QuerySupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QuerySupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': 'Infinity', 'Boo': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2QuerySupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleInputParamsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'Ec2QuerySupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + 'Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity', + bodyMediaType: 'application/x-www-form-urlencoded', + params: {'FloatValue': '-Infinity', 'Boo': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [SimpleInputParamsInputEc2QuerySerializer()], + ); + }); } class SimpleInputParamsInputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const SimpleInputParamsInputEc2QuerySerializer() - : super('SimpleInputParamsInput'); + : super('SimpleInputParamsInput'); @override Iterable get types => const [SimpleInputParamsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleInputParamsInput deserialize( @@ -563,60 +467,82 @@ class SimpleInputParamsInputEc2QuerySerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Bam': - result.bam = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.bam = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'FloatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Boo': - result.boo = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.boo = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); case 'FooEnum': - result.fooEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'HasQueryName': - result.hasQueryName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'HasQueryAndXmlName': - result.hasQueryAndXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hasQueryAndXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UsesXmlName': - result.usesXmlName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.usesXmlName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart index 3bc041e3f0..827405c2e2 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/simple_scalar_xml_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.simple_scalar_xml_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,183 +13,147 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2SimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2SimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'stringValue': 'string', - 'emptyStringValue': '', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNaNFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QuerySupportsNaNFloatOutputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n NaN\n NaN\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QuerySupportsInfinityFloatOutputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Infinity\n Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); - _i1.test( - 'Ec2QuerySupportsNegativeInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarXmlPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2QuerySupportsNegativeInfinityFloatOutputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n -Infinity\n -Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - ], - ); - }, - ); + _i1.test('Ec2SimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2SimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'stringValue': 'string', + 'emptyStringValue': '', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QuerySupportsNaNFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QuerySupportsNaNFloatOutputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n NaN\n NaN\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QuerySupportsInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QuerySupportsInfinityFloatOutputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Infinity\n Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); + _i1.test('Ec2QuerySupportsNegativeInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarXmlPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2QuerySupportsNegativeInfinityFloatOutputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n -Infinity\n -Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarXmlPropertiesOutputEc2QuerySerializer(), + ], + ); + }); } class SimpleScalarXmlPropertiesOutputEc2QuerySerializer extends _i3.StructuredSmithySerializer { const SimpleScalarXmlPropertiesOutputEc2QuerySerializer() - : super('SimpleScalarXmlPropertiesOutput'); + : super('SimpleScalarXmlPropertiesOutput'); @override Iterable get types => const [SimpleScalarXmlPropertiesOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override SimpleScalarXmlPropertiesOutput deserialize( @@ -208,55 +172,75 @@ class SimpleScalarXmlPropertiesOutputEc2QuerySerializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyStringValue': - result.emptyStringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyStringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart index 7caa340ea8..c0cb802b76 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,39 +14,33 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n dmFsdWU=\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n dmFsdWU=\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], + ); + }); } class XmlBlobsOutputEc2QuerySerializer @@ -58,11 +52,8 @@ class XmlBlobsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlBlobsOutput deserialize( @@ -81,10 +72,12 @@ class XmlBlobsOutputEc2QuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart index 39cddc52f5..3f32123a37 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_empty_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,73 +14,61 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlEmptyBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEmptyBlobs', - documentation: 'Empty blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlEmptySelfClosedBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEmptySelfClosedBlobs', - documentation: - 'Empty self closed blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlEmptyBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEmptyBlobs', + documentation: 'Empty blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlEmptySelfClosedBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEmptySelfClosedBlobs', + documentation: + 'Empty self closed blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsOutputEc2QuerySerializer()], + ); + }); } class XmlBlobsOutputEc2QuerySerializer @@ -92,11 +80,8 @@ class XmlBlobsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlBlobsOutput deserialize( @@ -115,10 +100,12 @@ class XmlBlobsOutputEc2QuerySerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart index 81eec06949..e7b99163ad 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,45 +16,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlEmptyLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEmptyLists', - documentation: 'Deserializes empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputEc2QuerySerializer(), - StructureListMemberEc2QuerySerializer(), - ], - ); - }, - ); + _i1.test('Ec2XmlEmptyLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEmptyLists', + documentation: 'Deserializes empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputEc2QuerySerializer(), + StructureListMemberEc2QuerySerializer(), + ], + ); + }); } class XmlListsOutputEc2QuerySerializer @@ -66,11 +57,8 @@ class XmlListsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlListsOutput deserialize( @@ -89,123 +77,143 @@ class XmlListsOutputEc2QuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -231,11 +239,8 @@ class StructureListMemberEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructureListMember deserialize( @@ -254,15 +259,19 @@ class StructureListMemberEc2QuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart index 36c974c2eb..a0f112f43e 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,55 +14,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlEnumsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlEnumsOutputEc2QuerySerializer()], + ); + }); } class XmlEnumsOutputEc2QuerySerializer @@ -74,11 +59,8 @@ class XmlEnumsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlEnumsOutput deserialize( @@ -97,47 +79,57 @@ class XmlEnumsOutputEc2QuerySerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart index dfdbcd9736..9fb2919021 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,55 +14,40 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlIntEnumsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlIntEnumsOutputEc2QuerySerializer()], + ); + }); } class XmlIntEnumsOutputEc2QuerySerializer @@ -74,11 +59,8 @@ class XmlIntEnumsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlIntEnumsOutput deserialize( @@ -97,47 +79,57 @@ class XmlIntEnumsOutputEc2QuerySerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ), - ) as _i4.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart index 0765069b0f..42fc3b5353 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,111 +16,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'flattenedListWithMemberNamespace': [ - 'a', - 'b', - ], - 'flattenedListWithNamespace': [ - 'a', - 'b', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlListsOutputEc2QuerySerializer(), - StructureListMemberEc2QuerySerializer(), - ], - ); - }, - ); + _i1.test('Ec2XmlLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'flattenedListWithMemberNamespace': ['a', 'b'], + 'flattenedListWithNamespace': ['a', 'b'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlListsOutputEc2QuerySerializer(), + StructureListMemberEc2QuerySerializer(), + ], + ); + }); } class XmlListsOutputEc2QuerySerializer @@ -132,11 +78,8 @@ class XmlListsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlListsOutput deserialize( @@ -155,123 +98,143 @@ class XmlListsOutputEc2QuerySerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -297,11 +260,8 @@ class StructureListMemberEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override StructureListMember deserialize( @@ -320,15 +280,19 @@ class StructureListMemberEc2QuerySerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart index 245e7e59cb..7e830a923e 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_namespaces_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_namespaces_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,50 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlNamespaces (response)', - () async { - await _i2.httpResponseTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n \n Foo\n \n Bar\n Baz\n \n \n requestid\n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + _i1.test('Ec2XmlNamespaces (response)', () async { + await _i2.httpResponseTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n \n Foo\n \n Bar\n Baz\n \n \n requestid\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlNamespacesOutputEc2QuerySerializer(), - XmlNamespaceNestedEc2QuerySerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlNamespacesOutputEc2QuerySerializer(), + XmlNamespaceNestedEc2QuerySerializer(), + ], + ); + }); } class XmlNamespacesOutputEc2QuerySerializer @@ -69,11 +60,8 @@ class XmlNamespacesOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespacesOutput deserialize( @@ -92,10 +80,13 @@ class XmlNamespacesOutputEc2QuerySerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -121,11 +112,8 @@ class XmlNamespaceNestedEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlNamespaceNested deserialize( @@ -144,18 +132,22 @@ class XmlNamespaceNestedEc2QuerySerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart index 1eb32710d2..cc3167632c 100644 --- a/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib2/ec2Query/test/ec2_protocol/xml_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library ec2_query_v2.ec2_protocol.test.xml_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,242 +12,200 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'Ec2XmlTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithDateTimeOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 1398796238\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithEpochSecondsOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n 1398796238\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); - _i1.test( - 'Ec2XmlTimestampsWithHttpDateOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'Ec2XmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'text/xml;charset=UTF-8'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], - ); - }, - ); + _i1.test('Ec2XmlTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithDateTimeOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 1398796238\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithEpochSecondsOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n 1398796238\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); + _i1.test('Ec2XmlTimestampsWithHttpDateOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'Ec2XmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'text/xml;charset=UTF-8'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsOutputEc2QuerySerializer()], + ); + }); } class XmlTimestampsOutputEc2QuerySerializer @@ -259,11 +217,8 @@ class XmlTimestampsOutputEc2QuerySerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'ec2Query', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'ec2Query'), + ]; @override XmlTimestampsOutput deserialize( @@ -292,34 +247,22 @@ class XmlTimestampsOutputEc2QuerySerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/api_gateway.dart b/packages/smithy/goldens/lib2/restJson1/lib/api_gateway.dart index 9b6287fb39..54c56c26cc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/api_gateway.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/api_gateway.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon API Gateway library rest_json1_v2.api_gateway; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/glacier.dart b/packages/smithy/goldens/lib2/restJson1/lib/glacier.dart index 381b35304b..ff8000a736 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/glacier.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/glacier.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon Glacier library rest_json1_v2.glacier; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/rest_json_protocol.dart b/packages/smithy/goldens/lib2/restJson1/lib/rest_json_protocol.dart index 64203dec9e..a4f612581e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/rest_json_protocol.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/rest_json_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST JSON service that sends JSON requests and responses. library rest_json1_v2.rest_json_protocol; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/rest_json_validation_protocol.dart b/packages/smithy/goldens/lib2/restJson1/lib/rest_json_validation_protocol.dart index a4dffc99b8..0c637c37a2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/rest_json_validation_protocol.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/rest_json_validation_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST JSON service that sends JSON requests and responses with validation applied library rest_json1_v2.rest_json_validation_protocol; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_client.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_client.dart index 26438bb9e7..492f9cba25 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_client.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.api_gateway_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,12 +20,12 @@ class ApiGatewayClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -40,7 +40,7 @@ class ApiGatewayClient { final List<_i3.HttpResponseInterceptor> _responseInterceptors; _i3.SmithyOperation<_i3.PaginatedResult<_i4.BuiltList, int, String>> - getRestApis( + getRestApis( GetRestApisRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -51,9 +51,6 @@ class ApiGatewayClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).runPaginated( - input, - client: client ?? _client, - ); + ).runPaginated(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_server.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_server.dart index bb5d6916e2..7aaf65b3f4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_server.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/api_gateway_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.api_gateway_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,11 +27,7 @@ abstract class ApiGatewayServerBase extends _i1.HttpServerBase { late final Router _router = () { final service = _ApiGatewayServer(this); final router = Router(); - router.add( - 'GET', - r'/restapis', - service.getRestApis, - ); + router.add('GET', r'/restapis', service.getRestApis); return router; }(); @@ -48,8 +44,13 @@ class _ApiGatewayServer extends _i1.HttpServer { @override final ApiGatewayServerBase service; - late final _i1.HttpProtocol _getRestApisProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + GetRestApisRequestPayload, + GetRestApisRequest, + RestApis, + RestApis + > + _getRestApisProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -59,26 +60,22 @@ class _ApiGatewayServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _getRestApisProtocol.contentType; try { - final payload = (await _getRestApisProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GetRestApisRequestPayload), - ) as GetRestApisRequestPayload); + final payload = + (await _getRestApisProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(GetRestApisRequestPayload), + ) + as GetRestApisRequestPayload); final input = GetRestApisRequest.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.getRestApis( - input, - context, - ); + final output = await service.getRestApis(input, context); const statusCode = 200; final body = await _getRestApisProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - RestApis, - [FullType(RestApis)], - ), + specifiedType: const FullType(RestApis, [FullType(RestApis)]), ); return _i4.Response( statusCode, @@ -89,10 +86,9 @@ class _ApiGatewayServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'BadRequestException'; final body = _getRestApisProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - BadRequestException, - [FullType(BadRequestException)], - ), + specifiedType: const FullType(BadRequestException, [ + FullType(BadRequestException), + ]), ); const statusCode = 400; return _i4.Response( @@ -104,10 +100,9 @@ class _ApiGatewayServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'TooManyRequestsException'; final body = _getRestApisProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - TooManyRequestsException, - [FullType(TooManyRequestsExceptionPayload)], - ), + specifiedType: const FullType(TooManyRequestsException, [ + FullType(TooManyRequestsExceptionPayload), + ]), ); const statusCode = 429; return _i4.Response( @@ -119,10 +114,9 @@ class _ApiGatewayServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'UnauthorizedException'; final body = _getRestApisProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - UnauthorizedException, - [FullType(UnauthorizedException)], - ), + specifiedType: const FullType(UnauthorizedException, [ + FullType(UnauthorizedException), + ]), ); const statusCode = 401; return _i4.Response( @@ -131,10 +125,7 @@ class _ApiGatewayServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart index c02edcbff0..1faf3aad91 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -79,10 +79,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { 'cn-north-1': _i1.EndpointDefinition(variants: []), 'cn-northwest-1': _i1.EndpointDefinition(variants: []), @@ -100,10 +97,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {'us-iso-east-1': _i1.EndpointDefinition(variants: [])}, ), _i1.Partition( @@ -133,10 +127,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'us-gov-east-1': _i1.EndpointDefinition(variants: []), 'us-gov-west-1': _i1.EndpointDefinition(variants: []), @@ -144,7 +135,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'API Gateway'; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/serializers.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/serializers.dart index 19fc184de1..a70c6d8f0d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/serializers.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,30 +48,17 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(RestApi)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(EndpointType)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(RestApi)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(EndpointType)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/api_key_source_type.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/api_key_source_type.dart index f15998ee93..cce679661d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/api_key_source_type.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/api_key_source_type.dart @@ -1,30 +1,18 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.api_key_source_type; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class ApiKeySourceType extends _i1.SmithyEnum { - const ApiKeySourceType._( - super.index, - super.name, - super.value, - ); + const ApiKeySourceType._(super.index, super.name, super.value); const ApiKeySourceType._sdkUnknown(super.value) : super.sdkUnknown(); - static const authorizer = ApiKeySourceType._( - 0, - 'AUTHORIZER', - 'AUTHORIZER', - ); + static const authorizer = ApiKeySourceType._(0, 'AUTHORIZER', 'AUTHORIZER'); - static const header = ApiKeySourceType._( - 1, - 'HEADER', - 'HEADER', - ); + static const header = ApiKeySourceType._(1, 'HEADER', 'HEADER'); /// All values of [ApiKeySourceType]. static const values = [ @@ -38,12 +26,9 @@ class ApiKeySourceType extends _i1.SmithyEnum { values: values, sdkUnknown: ApiKeySourceType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.dart index 776a3af71e..a155a86dad 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.dart index 7352466046..6cfa93658a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.bad_request_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class BadRequestException return _$BadRequestException._(message: message); } - factory BadRequestException.build( - [void Function(BadRequestExceptionBuilder) updates]) = - _$BadRequestException; + factory BadRequestException.build([ + void Function(BadRequestExceptionBuilder) updates, + ]) = _$BadRequestException; const BadRequestException._(); @@ -29,22 +29,21 @@ abstract class BadRequestException factory BadRequestException.fromResponse( BadRequestException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - BadRequestExceptionRestJson1Serializer() + BadRequestExceptionRestJson1Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'BadRequestException', - ); + namespace: 'com.amazonaws.apigateway', + shape: 'BadRequestException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -65,10 +64,7 @@ abstract class BadRequestException @override String toString() { final helper = newBuiltValueToStringHelper('BadRequestException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -79,17 +75,14 @@ class BadRequestExceptionRestJson1Serializer @override Iterable get types => const [ - BadRequestException, - _$BadRequestException, - ]; + BadRequestException, + _$BadRequestException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override BadRequestException deserialize( @@ -108,10 +101,12 @@ class BadRequestExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -129,10 +124,9 @@ class BadRequestExceptionRestJson1Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart index 98292d0f79..c6102f85b4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/bad_request_exception.g.dart @@ -12,16 +12,16 @@ class _$BadRequestException extends BadRequestException { @override final Map? headers; - factory _$BadRequestException( - [void Function(BadRequestExceptionBuilder)? updates]) => - (new BadRequestExceptionBuilder()..update(updates))._build(); + factory _$BadRequestException([ + void Function(BadRequestExceptionBuilder)? updates, + ]) => (new BadRequestExceptionBuilder()..update(updates))._build(); _$BadRequestException._({this.message, this.headers}) : super._(); @override BadRequestException rebuild( - void Function(BadRequestExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(BadRequestExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override BadRequestExceptionBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.dart index 541b0bfae6..5b88a29731 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart index 33b4f558b8..8eb0db0d37 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.endpoint_configuration; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,35 +26,27 @@ abstract class EndpointConfiguration ); } - factory EndpointConfiguration.build( - [void Function(EndpointConfigurationBuilder) updates]) = - _$EndpointConfiguration; + factory EndpointConfiguration.build([ + void Function(EndpointConfigurationBuilder) updates, + ]) = _$EndpointConfiguration; const EndpointConfiguration._(); static const List<_i3.SmithySerializer> serializers = [ - EndpointConfigurationRestJson1Serializer() + EndpointConfigurationRestJson1Serializer(), ]; _i2.BuiltList? get types; _i2.BuiltList? get vpcEndpointIds; @override - List get props => [ - types, - vpcEndpointIds, - ]; + List get props => [types, vpcEndpointIds]; @override String toString() { - final helper = newBuiltValueToStringHelper('EndpointConfiguration') - ..add( - 'types', - types, - ) - ..add( - 'vpcEndpointIds', - vpcEndpointIds, - ); + final helper = + newBuiltValueToStringHelper('EndpointConfiguration') + ..add('types', types) + ..add('vpcEndpointIds', vpcEndpointIds); return helper.toString(); } } @@ -62,21 +54,18 @@ abstract class EndpointConfiguration class EndpointConfigurationRestJson1Serializer extends _i3.StructuredSmithySerializer { const EndpointConfigurationRestJson1Serializer() - : super('EndpointConfiguration'); + : super('EndpointConfiguration'); @override Iterable get types => const [ - EndpointConfiguration, - _$EndpointConfiguration, - ]; + EndpointConfiguration, + _$EndpointConfiguration, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointConfiguration deserialize( @@ -95,21 +84,25 @@ class EndpointConfigurationRestJson1Serializer } switch (key) { case 'types': - result.types.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(EndpointType)], - ), - ) as _i2.BuiltList)); + result.types.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(EndpointType), + ]), + ) + as _i2.BuiltList), + ); case 'vpcEndpointIds': - result.vpcEndpointIds.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.vpcEndpointIds.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -127,24 +120,24 @@ class EndpointConfigurationRestJson1Serializer if (types != null) { result$ ..add('types') - ..add(serializers.serialize( - types, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(EndpointType)], + ..add( + serializers.serialize( + types, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(EndpointType), + ]), ), - )); + ); } if (vpcEndpointIds != null) { result$ ..add('vpcEndpointIds') - ..add(serializers.serialize( - vpcEndpointIds, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + vpcEndpointIds, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart index 9697b828ef..7afe21e070 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_configuration.g.dart @@ -12,16 +12,16 @@ class _$EndpointConfiguration extends EndpointConfiguration { @override final _i2.BuiltList? vpcEndpointIds; - factory _$EndpointConfiguration( - [void Function(EndpointConfigurationBuilder)? updates]) => - (new EndpointConfigurationBuilder()..update(updates))._build(); + factory _$EndpointConfiguration([ + void Function(EndpointConfigurationBuilder)? updates, + ]) => (new EndpointConfigurationBuilder()..update(updates))._build(); _$EndpointConfiguration._({this.types, this.vpcEndpointIds}) : super._(); @override EndpointConfiguration rebuild( - void Function(EndpointConfigurationBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EndpointConfigurationBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EndpointConfigurationBuilder toBuilder() => @@ -89,9 +89,12 @@ class EndpointConfigurationBuilder _$EndpointConfiguration _build() { _$EndpointConfiguration _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$EndpointConfiguration._( - types: _types?.build(), vpcEndpointIds: _vpcEndpointIds?.build()); + types: _types?.build(), + vpcEndpointIds: _vpcEndpointIds?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,7 +104,10 @@ class EndpointConfigurationBuilder _vpcEndpointIds?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'EndpointConfiguration', _$failedField, e.toString()); + r'EndpointConfiguration', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_type.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_type.dart index 037d520445..46ed68103c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_type.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/endpoint_type.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.endpoint_type; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EndpointType extends _i1.SmithyEnum { - const EndpointType._( - super.index, - super.name, - super.value, - ); + const EndpointType._(super.index, super.name, super.value); const EndpointType._sdkUnknown(super.value) : super.sdkUnknown(); - static const edge = EndpointType._( - 0, - 'EDGE', - 'EDGE', - ); + static const edge = EndpointType._(0, 'EDGE', 'EDGE'); - static const private = EndpointType._( - 1, - 'PRIVATE', - 'PRIVATE', - ); + static const private = EndpointType._(1, 'PRIVATE', 'PRIVATE'); - static const regional = EndpointType._( - 2, - 'REGIONAL', - 'REGIONAL', - ); + static const regional = EndpointType._(2, 'REGIONAL', 'REGIONAL'); /// All values of [EndpointType]. static const values = [ @@ -45,12 +29,9 @@ class EndpointType extends _i1.SmithyEnum { values: values, sdkUnknown: EndpointType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.dart index 0162aaca8f..76d837f120 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.dart index 01d65d94ce..0a35e7f02e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart index 66ef17f92f..7369ced053 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.get_rest_apis_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,19 +19,13 @@ abstract class GetRestApisRequest Built, _i1.EmptyPayload, _i1.HasPayload { - factory GetRestApisRequest({ - String? position, - int? limit, - }) { - return _$GetRestApisRequest._( - position: position, - limit: limit, - ); + factory GetRestApisRequest({String? position, int? limit}) { + return _$GetRestApisRequest._(position: position, limit: limit); } - factory GetRestApisRequest.build( - [void Function(GetRestApisRequestBuilder) updates]) = - _$GetRestApisRequest; + factory GetRestApisRequest.build([ + void Function(GetRestApisRequestBuilder) updates, + ]) = _$GetRestApisRequest; const GetRestApisRequest._(); @@ -39,18 +33,17 @@ abstract class GetRestApisRequest GetRestApisRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetRestApisRequest.build((b) { - if (request.queryParameters['position'] != null) { - b.position = request.queryParameters['position']!; - } - if (request.queryParameters['limit'] != null) { - b.limit = int.parse(request.queryParameters['limit']!); - } - }); + }) => GetRestApisRequest.build((b) { + if (request.queryParameters['position'] != null) { + b.position = request.queryParameters['position']!; + } + if (request.queryParameters['limit'] != null) { + b.limit = int.parse(request.queryParameters['limit']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [GetRestApisRequestRestJson1Serializer()]; + serializers = [GetRestApisRequestRestJson1Serializer()]; String? get position; int? get limit; @@ -58,22 +51,14 @@ abstract class GetRestApisRequest GetRestApisRequestPayload getPayload() => GetRestApisRequestPayload(); @override - List get props => [ - position, - limit, - ]; + List get props => [position, limit]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetRestApisRequest') - ..add( - 'position', - position, - ) - ..add( - 'limit', - limit, - ); + final helper = + newBuiltValueToStringHelper('GetRestApisRequest') + ..add('position', position) + ..add('limit', limit); return helper.toString(); } } @@ -84,9 +69,9 @@ abstract class GetRestApisRequestPayload implements Built, _i1.EmptyPayload { - factory GetRestApisRequestPayload( - [void Function(GetRestApisRequestPayloadBuilder) updates]) = - _$GetRestApisRequestPayload; + factory GetRestApisRequestPayload([ + void Function(GetRestApisRequestPayloadBuilder) updates, + ]) = _$GetRestApisRequestPayload; const GetRestApisRequestPayload._(); @@ -106,19 +91,16 @@ class GetRestApisRequestRestJson1Serializer @override Iterable get types => const [ - GetRestApisRequest, - _$GetRestApisRequest, - GetRestApisRequestPayload, - _$GetRestApisRequestPayload, - ]; + GetRestApisRequest, + _$GetRestApisRequest, + GetRestApisRequestPayload, + _$GetRestApisRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GetRestApisRequestPayload deserialize( @@ -134,6 +116,5 @@ class GetRestApisRequestRestJson1Serializer Serializers serializers, GetRestApisRequestPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart index 63a72afb96..5c4819f920 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/get_rest_apis_request.g.dart @@ -12,16 +12,16 @@ class _$GetRestApisRequest extends GetRestApisRequest { @override final int? limit; - factory _$GetRestApisRequest( - [void Function(GetRestApisRequestBuilder)? updates]) => - (new GetRestApisRequestBuilder()..update(updates))._build(); + factory _$GetRestApisRequest([ + void Function(GetRestApisRequestBuilder)? updates, + ]) => (new GetRestApisRequestBuilder()..update(updates))._build(); _$GetRestApisRequest._({this.position, this.limit}) : super._(); @override GetRestApisRequest rebuild( - void Function(GetRestApisRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetRestApisRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetRestApisRequestBuilder toBuilder() => @@ -92,16 +92,16 @@ class GetRestApisRequestBuilder } class _$GetRestApisRequestPayload extends GetRestApisRequestPayload { - factory _$GetRestApisRequestPayload( - [void Function(GetRestApisRequestPayloadBuilder)? updates]) => - (new GetRestApisRequestPayloadBuilder()..update(updates))._build(); + factory _$GetRestApisRequestPayload([ + void Function(GetRestApisRequestPayloadBuilder)? updates, + ]) => (new GetRestApisRequestPayloadBuilder()..update(updates))._build(); _$GetRestApisRequestPayload._() : super._(); @override GetRestApisRequestPayload rebuild( - void Function(GetRestApisRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetRestApisRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetRestApisRequestPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.dart index d5b71f5545..1348b191e4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.dart index 2287188747..3d2f7ed4a6 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.rest_api; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -54,7 +54,7 @@ abstract class RestApi const RestApi._(); static const List<_i3.SmithySerializer> serializers = [ - RestApiRestJson1Serializer() + RestApiRestJson1Serializer(), ]; String? get id; @@ -72,76 +72,38 @@ abstract class RestApi bool? get disableExecuteApiEndpoint; @override List get props => [ - id, - name, - description, - createdDate, - version, - warnings, - binaryMediaTypes, - minimumCompressionSize, - apiKeySource, - endpointConfiguration, - policy, - tags, - disableExecuteApiEndpoint, - ]; + id, + name, + description, + createdDate, + version, + warnings, + binaryMediaTypes, + minimumCompressionSize, + apiKeySource, + endpointConfiguration, + policy, + tags, + disableExecuteApiEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('RestApi') - ..add( - 'id', - id, - ) - ..add( - 'name', - name, - ) - ..add( - 'description', - description, - ) - ..add( - 'createdDate', - createdDate, - ) - ..add( - 'version', - version, - ) - ..add( - 'warnings', - warnings, - ) - ..add( - 'binaryMediaTypes', - binaryMediaTypes, - ) - ..add( - 'minimumCompressionSize', - minimumCompressionSize, - ) - ..add( - 'apiKeySource', - apiKeySource, - ) - ..add( - 'endpointConfiguration', - endpointConfiguration, - ) - ..add( - 'policy', - policy, - ) - ..add( - 'tags', - tags, - ) - ..add( - 'disableExecuteApiEndpoint', - disableExecuteApiEndpoint, - ); + final helper = + newBuiltValueToStringHelper('RestApi') + ..add('id', id) + ..add('name', name) + ..add('description', description) + ..add('createdDate', createdDate) + ..add('version', version) + ..add('warnings', warnings) + ..add('binaryMediaTypes', binaryMediaTypes) + ..add('minimumCompressionSize', minimumCompressionSize) + ..add('apiKeySource', apiKeySource) + ..add('endpointConfiguration', endpointConfiguration) + ..add('policy', policy) + ..add('tags', tags) + ..add('disableExecuteApiEndpoint', disableExecuteApiEndpoint); return helper.toString(); } } @@ -151,18 +113,12 @@ class RestApiRestJson1Serializer const RestApiRestJson1Serializer() : super('RestApi'); @override - Iterable get types => const [ - RestApi, - _$RestApi, - ]; + Iterable get types => const [RestApi, _$RestApi]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApi deserialize( @@ -181,82 +137,107 @@ class RestApiRestJson1Serializer } switch (key) { case 'apiKeySource': - result.apiKeySource = (serializers.deserialize( - value, - specifiedType: const FullType(ApiKeySourceType), - ) as ApiKeySourceType); + result.apiKeySource = + (serializers.deserialize( + value, + specifiedType: const FullType(ApiKeySourceType), + ) + as ApiKeySourceType); case 'binaryMediaTypes': - result.binaryMediaTypes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.binaryMediaTypes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); case 'createdDate': - result.createdDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.createdDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'description': - result.description = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.description = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'disableExecuteApiEndpoint': - result.disableExecuteApiEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.disableExecuteApiEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'endpointConfiguration': - result.endpointConfiguration.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointConfiguration), - ) as EndpointConfiguration)); + result.endpointConfiguration.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointConfiguration), + ) + as EndpointConfiguration), + ); case 'id': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'minimumCompressionSize': - result.minimumCompressionSize = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minimumCompressionSize = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'policy': - result.policy = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.policy = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'tags': - result.tags.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i2.BuiltMap)); + result.tags.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i2.BuiltMap), + ); case 'version': - result.version = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.version = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'warnings': - result.warnings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.warnings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -283,123 +264,126 @@ class RestApiRestJson1Serializer :policy, :tags, :version, - :warnings + :warnings, ) = object; if (apiKeySource != null) { result$ ..add('apiKeySource') - ..add(serializers.serialize( - apiKeySource, - specifiedType: const FullType(ApiKeySourceType), - )); + ..add( + serializers.serialize( + apiKeySource, + specifiedType: const FullType(ApiKeySourceType), + ), + ); } if (binaryMediaTypes != null) { result$ ..add('binaryMediaTypes') - ..add(serializers.serialize( - binaryMediaTypes, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + binaryMediaTypes, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } if (createdDate != null) { result$ ..add('createdDate') - ..add(serializers.serialize( - createdDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + createdDate, + specifiedType: const FullType(DateTime), + ), + ); } if (description != null) { result$ ..add('description') - ..add(serializers.serialize( - description, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + description, + specifiedType: const FullType(String), + ), + ); } if (disableExecuteApiEndpoint != null) { result$ ..add('disableExecuteApiEndpoint') - ..add(serializers.serialize( - disableExecuteApiEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + disableExecuteApiEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (endpointConfiguration != null) { result$ ..add('endpointConfiguration') - ..add(serializers.serialize( - endpointConfiguration, - specifiedType: const FullType(EndpointConfiguration), - )); + ..add( + serializers.serialize( + endpointConfiguration, + specifiedType: const FullType(EndpointConfiguration), + ), + ); } if (id != null) { result$ ..add('id') - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } if (minimumCompressionSize != null) { result$ ..add('minimumCompressionSize') - ..add(serializers.serialize( - minimumCompressionSize, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + minimumCompressionSize, + specifiedType: const FullType(int), + ), + ); } if (name != null) { result$ ..add('name') - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } if (policy != null) { result$ ..add('policy') - ..add(serializers.serialize( - policy, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(policy, specifiedType: const FullType(String)), + ); } if (tags != null) { result$ ..add('tags') - ..add(serializers.serialize( - tags, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + tags, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (version != null) { result$ ..add('version') - ..add(serializers.serialize( - version, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(version, specifiedType: const FullType(String)), + ); } if (warnings != null) { result$ ..add('warnings') - ..add(serializers.serialize( - warnings, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + warnings, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.g.dart index 3631ff1770..4aaf6c2f10 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_api.g.dart @@ -37,21 +37,21 @@ class _$RestApi extends RestApi { factory _$RestApi([void Function(RestApiBuilder)? updates]) => (new RestApiBuilder()..update(updates))._build(); - _$RestApi._( - {this.id, - this.name, - this.description, - this.createdDate, - this.version, - this.warnings, - this.binaryMediaTypes, - this.minimumCompressionSize, - this.apiKeySource, - this.endpointConfiguration, - this.policy, - this.tags, - this.disableExecuteApiEndpoint}) - : super._(); + _$RestApi._({ + this.id, + this.name, + this.description, + this.createdDate, + this.version, + this.warnings, + this.binaryMediaTypes, + this.minimumCompressionSize, + this.apiKeySource, + this.endpointConfiguration, + this.policy, + this.tags, + this.disableExecuteApiEndpoint, + }) : super._(); @override RestApi rebuild(void Function(RestApiBuilder) updates) => @@ -149,8 +149,8 @@ class RestApiBuilder implements Builder { EndpointConfigurationBuilder get endpointConfiguration => _$this._endpointConfiguration ??= new EndpointConfigurationBuilder(); set endpointConfiguration( - EndpointConfigurationBuilder? endpointConfiguration) => - _$this._endpointConfiguration = endpointConfiguration; + EndpointConfigurationBuilder? endpointConfiguration, + ) => _$this._endpointConfiguration = endpointConfiguration; String? _policy; String? get policy => _$this._policy; @@ -206,21 +206,23 @@ class RestApiBuilder implements Builder { _$RestApi _build() { _$RestApi _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RestApi._( - id: id, - name: name, - description: description, - createdDate: createdDate, - version: version, - warnings: _warnings?.build(), - binaryMediaTypes: _binaryMediaTypes?.build(), - minimumCompressionSize: minimumCompressionSize, - apiKeySource: apiKeySource, - endpointConfiguration: _endpointConfiguration?.build(), - policy: policy, - tags: _tags?.build(), - disableExecuteApiEndpoint: disableExecuteApiEndpoint); + id: id, + name: name, + description: description, + createdDate: createdDate, + version: version, + warnings: _warnings?.build(), + binaryMediaTypes: _binaryMediaTypes?.build(), + minimumCompressionSize: minimumCompressionSize, + apiKeySource: apiKeySource, + endpointConfiguration: _endpointConfiguration?.build(), + policy: policy, + tags: _tags?.build(), + disableExecuteApiEndpoint: disableExecuteApiEndpoint, + ); } catch (_) { late String _$failedField; try { @@ -236,7 +238,10 @@ class RestApiBuilder implements Builder { _tags?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RestApi', _$failedField, e.toString()); + r'RestApi', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.dart index 21bdd5126a..c40a66bbd6 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.rest_apis; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,10 +15,7 @@ part 'rest_apis.g.dart'; abstract class RestApis with _i1.AWSEquatable implements Built { - factory RestApis({ - List? items, - String? position, - }) { + factory RestApis({List? items, String? position}) { return _$RestApis._( items: items == null ? null : _i2.BuiltList(items), position: position, @@ -33,32 +30,23 @@ abstract class RestApis factory RestApis.fromResponse( RestApis payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - RestApisRestJson1Serializer() + RestApisRestJson1Serializer(), ]; _i2.BuiltList? get items; String? get position; @override - List get props => [ - items, - position, - ]; + List get props => [items, position]; @override String toString() { - final helper = newBuiltValueToStringHelper('RestApis') - ..add( - 'items', - items, - ) - ..add( - 'position', - position, - ); + final helper = + newBuiltValueToStringHelper('RestApis') + ..add('items', items) + ..add('position', position); return helper.toString(); } } @@ -68,18 +56,12 @@ class RestApisRestJson1Serializer const RestApisRestJson1Serializer() : super('RestApis'); @override - Iterable get types => const [ - RestApis, - _$RestApis, - ]; + Iterable get types => const [RestApis, _$RestApis]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApis deserialize( @@ -98,18 +80,22 @@ class RestApisRestJson1Serializer } switch (key) { case 'item': - result.items.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(RestApi)], - ), - ) as _i2.BuiltList)); + result.items.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(RestApi), + ]), + ) + as _i2.BuiltList), + ); case 'position': - result.position = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.position = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -127,21 +113,22 @@ class RestApisRestJson1Serializer if (items != null) { result$ ..add('item') - ..add(serializers.serialize( - items, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(RestApi)], + ..add( + serializers.serialize( + items, + specifiedType: const FullType(_i2.BuiltList, [FullType(RestApi)]), ), - )); + ); } if (position != null) { result$ ..add('position') - ..add(serializers.serialize( - position, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + position, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.g.dart index 93aac89709..3d3fa09705 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/rest_apis.g.dart @@ -92,7 +92,10 @@ class RestApisBuilder implements Builder { _items?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RestApis', _$failedField, e.toString()); + r'RestApis', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_config.dart index ba393bd9f5..9e513fd42a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_mode.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_mode.dart index a1a301f879..741dd831d4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart index f4be016861..ba9638bcc8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.dart index 2b7cc4ea3b..8e16b75abd 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.dart index 07572adf4d..07aa9c8ef7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart index e95986dcee..460012a075 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.too_many_requests_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class TooManyRequestsException ); } - factory TooManyRequestsException.build( - [void Function(TooManyRequestsExceptionBuilder) updates]) = - _$TooManyRequestsException; + factory TooManyRequestsException.build([ + void Function(TooManyRequestsExceptionBuilder) updates, + ]) = _$TooManyRequestsException; const TooManyRequestsException._(); @@ -37,17 +37,16 @@ abstract class TooManyRequestsException factory TooManyRequestsException.fromResponse( TooManyRequestsExceptionPayload payload, _i1.AWSBaseHttpResponse response, - ) => - TooManyRequestsException.build((b) { - b.message = payload.message; - if (response.headers['Retry-After'] != null) { - b.retryAfterSeconds = response.headers['Retry-After']!; - } - b.headers = response.headers; - }); + ) => TooManyRequestsException.build((b) { + b.message = payload.message; + if (response.headers['Retry-After'] != null) { + b.retryAfterSeconds = response.headers['Retry-After']!; + } + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [TooManyRequestsExceptionRestJson1Serializer()]; + serializers = [TooManyRequestsExceptionRestJson1Serializer()]; String? get retryAfterSeconds; @override @@ -60,9 +59,9 @@ abstract class TooManyRequestsException @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'TooManyRequestsException', - ); + namespace: 'com.amazonaws.apigateway', + shape: 'TooManyRequestsException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -78,36 +77,29 @@ abstract class TooManyRequestsException Exception? get underlyingException => null; @override - List get props => [ - retryAfterSeconds, - message, - ]; + List get props => [retryAfterSeconds, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('TooManyRequestsException') - ..add( - 'retryAfterSeconds', - retryAfterSeconds, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('TooManyRequestsException') + ..add('retryAfterSeconds', retryAfterSeconds) + ..add('message', message); return helper.toString(); } } @_i3.internal abstract class TooManyRequestsExceptionPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { - factory TooManyRequestsExceptionPayload( - [void Function(TooManyRequestsExceptionPayloadBuilder) updates]) = - _$TooManyRequestsExceptionPayload; + Built< + TooManyRequestsExceptionPayload, + TooManyRequestsExceptionPayloadBuilder + > { + factory TooManyRequestsExceptionPayload([ + void Function(TooManyRequestsExceptionPayloadBuilder) updates, + ]) = _$TooManyRequestsExceptionPayload; const TooManyRequestsExceptionPayload._(); @@ -117,12 +109,9 @@ abstract class TooManyRequestsExceptionPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TooManyRequestsExceptionPayload') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'TooManyRequestsExceptionPayload', + )..add('message', message); return helper.toString(); } } @@ -130,23 +119,20 @@ abstract class TooManyRequestsExceptionPayload class TooManyRequestsExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const TooManyRequestsExceptionRestJson1Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [ - TooManyRequestsException, - _$TooManyRequestsException, - TooManyRequestsExceptionPayload, - _$TooManyRequestsExceptionPayload, - ]; + TooManyRequestsException, + _$TooManyRequestsException, + TooManyRequestsExceptionPayload, + _$TooManyRequestsExceptionPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TooManyRequestsExceptionPayload deserialize( @@ -165,10 +151,12 @@ class TooManyRequestsExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -186,10 +174,9 @@ class TooManyRequestsExceptionRestJson1Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart index 1b229baf60..d002c2594c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/too_many_requests_exception.g.dart @@ -14,18 +14,20 @@ class _$TooManyRequestsException extends TooManyRequestsException { @override final Map? headers; - factory _$TooManyRequestsException( - [void Function(TooManyRequestsExceptionBuilder)? updates]) => - (new TooManyRequestsExceptionBuilder()..update(updates))._build(); + factory _$TooManyRequestsException([ + void Function(TooManyRequestsExceptionBuilder)? updates, + ]) => (new TooManyRequestsExceptionBuilder()..update(updates))._build(); - _$TooManyRequestsException._( - {this.retryAfterSeconds, this.message, this.headers}) - : super._(); + _$TooManyRequestsException._({ + this.retryAfterSeconds, + this.message, + this.headers, + }) : super._(); @override TooManyRequestsException rebuild( - void Function(TooManyRequestsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionBuilder toBuilder() => @@ -95,11 +97,13 @@ class TooManyRequestsExceptionBuilder TooManyRequestsException build() => _build(); _$TooManyRequestsException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TooManyRequestsException._( - retryAfterSeconds: retryAfterSeconds, - message: message, - headers: headers); + retryAfterSeconds: retryAfterSeconds, + message: message, + headers: headers, + ); replace(_$result); return _$result; } @@ -110,16 +114,17 @@ class _$TooManyRequestsExceptionPayload @override final String? message; - factory _$TooManyRequestsExceptionPayload( - [void Function(TooManyRequestsExceptionPayloadBuilder)? updates]) => + factory _$TooManyRequestsExceptionPayload([ + void Function(TooManyRequestsExceptionPayloadBuilder)? updates, + ]) => (new TooManyRequestsExceptionPayloadBuilder()..update(updates))._build(); _$TooManyRequestsExceptionPayload._({this.message}) : super._(); @override TooManyRequestsExceptionPayload rebuild( - void Function(TooManyRequestsExceptionPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionPayloadBuilder toBuilder() => @@ -142,8 +147,10 @@ class _$TooManyRequestsExceptionPayload class TooManyRequestsExceptionPayloadBuilder implements - Builder { + Builder< + TooManyRequestsExceptionPayload, + TooManyRequestsExceptionPayloadBuilder + > { _$TooManyRequestsExceptionPayload? _$v; String? _message; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart index 4b6462ed6f..945ab74f10 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.model.unauthorized_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class UnauthorizedException return _$UnauthorizedException._(message: message); } - factory UnauthorizedException.build( - [void Function(UnauthorizedExceptionBuilder) updates]) = - _$UnauthorizedException; + factory UnauthorizedException.build([ + void Function(UnauthorizedExceptionBuilder) updates, + ]) = _$UnauthorizedException; const UnauthorizedException._(); @@ -29,22 +29,21 @@ abstract class UnauthorizedException factory UnauthorizedException.fromResponse( UnauthorizedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - UnauthorizedExceptionRestJson1Serializer() + UnauthorizedExceptionRestJson1Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'UnauthorizedException', - ); + namespace: 'com.amazonaws.apigateway', + shape: 'UnauthorizedException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -65,10 +64,7 @@ abstract class UnauthorizedException @override String toString() { final helper = newBuiltValueToStringHelper('UnauthorizedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -76,21 +72,18 @@ abstract class UnauthorizedException class UnauthorizedExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const UnauthorizedExceptionRestJson1Serializer() - : super('UnauthorizedException'); + : super('UnauthorizedException'); @override Iterable get types => const [ - UnauthorizedException, - _$UnauthorizedException, - ]; + UnauthorizedException, + _$UnauthorizedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnauthorizedException deserialize( @@ -109,10 +102,12 @@ class UnauthorizedExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,10 +125,9 @@ class UnauthorizedExceptionRestJson1Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart index 0d1cee5ec0..44a2c52972 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/model/unauthorized_exception.g.dart @@ -12,16 +12,16 @@ class _$UnauthorizedException extends UnauthorizedException { @override final Map? headers; - factory _$UnauthorizedException( - [void Function(UnauthorizedExceptionBuilder)? updates]) => - (new UnauthorizedExceptionBuilder()..update(updates))._build(); + factory _$UnauthorizedException([ + void Function(UnauthorizedExceptionBuilder)? updates, + ]) => (new UnauthorizedExceptionBuilder()..update(updates))._build(); _$UnauthorizedException._({this.message, this.headers}) : super._(); @override UnauthorizedException rebuild( - void Function(UnauthorizedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UnauthorizedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UnauthorizedExceptionBuilder toBuilder() => @@ -81,7 +81,8 @@ class UnauthorizedExceptionBuilder UnauthorizedException build() => _build(); _$UnauthorizedException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UnauthorizedException._(message: message, headers: headers); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart index 7f4bcf50c9..09466bf55e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/api_gateway/operation/get_rest_apis_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.api_gateway.operation.get_rest_apis_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,14 +19,17 @@ import 'package:rest_json1_v2/src/api_gateway/model/unauthorized_exception.dart' import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i4; -class GetRestApisOperation extends _i1.PaginatedHttpOperation< - GetRestApisRequestPayload, - GetRestApisRequest, - RestApis, - RestApis, - String, - int, - _i2.BuiltList> { +class GetRestApisOperation + extends + _i1.PaginatedHttpOperation< + GetRestApisRequestPayload, + GetRestApisRequest, + RestApis, + RestApis, + String, + int, + _i2.BuiltList + > { GetRestApisOperation({ required String region, Uri? baseUri, @@ -34,20 +37,27 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + GetRestApisRequestPayload, + GetRestApisRequest, + RestApis, + RestApis + > + > + protocols = [ _i4.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), @@ -56,18 +66,15 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< service: _i5.AWSService.apiGateway, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i4.WithSdkInvocationId(), const _i4.WithSdkRequest(), - const _i1.WithHeader( - 'Accept', - 'application/json', - ), + const _i1.WithHeader('Accept', 'application/json'), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i4.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -91,16 +98,10 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< b.method = 'GET'; b.path = r'/restapis'; if (input.position != null) { - b.queryParameters.add( - 'position', - input.position!, - ); + b.queryParameters.add('position', input.position!); } if (input.limit != null) { - b.queryParameters.add( - 'limit', - input.limit!.toString(), - ); + b.queryParameters.add('limit', input.limit!.toString()); } }); @@ -108,49 +109,42 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< int successCode([RestApis? output]) => 200; @override - RestApis buildOutput( - RestApis payload, - _i5.AWSBaseHttpResponse response, - ) => - RestApis.fromResponse( - payload, - response, - ); + RestApis buildOutput(RestApis payload, _i5.AWSBaseHttpResponse response) => + RestApis.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'BadRequestException', - ), - _i1.ErrorKind.client, - BadRequestException, - statusCode: 400, - builder: BadRequestException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.apigateway', - shape: 'UnauthorizedException', - ), - _i1.ErrorKind.client, - UnauthorizedException, - statusCode: 401, - builder: UnauthorizedException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.apigateway', + shape: 'BadRequestException', + ), + _i1.ErrorKind.client, + BadRequestException, + statusCode: 400, + builder: BadRequestException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.apigateway', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.apigateway', + shape: 'UnauthorizedException', + ), + _i1.ErrorKind.client, + UnauthorizedException, + statusCode: 401, + builder: UnauthorizedException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetRestApis'; @@ -171,11 +165,7 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< _i1.ShapeId? useProtocol, }) { return _i6.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, @@ -195,11 +185,10 @@ class GetRestApisOperation extends _i1.PaginatedHttpOperation< GetRestApisRequest input, String token, int? pageSize, - ) => - input.rebuild((b) { - b.position = token; - if (pageSize != null) { - b.limit = pageSize; - } - }); + ) => input.rebuild((b) { + b.position = token; + if (pageSize != null) { + b.limit = pageSize; + } + }); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/endpoint_resolver.dart index 1a76779438..c947a6263e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,10 +14,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 'glacier.{region}.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.v4], credentialScope: _i1.CredentialScope(), variants: [], @@ -56,12 +53,14 @@ final _partitions = [ 'ap-southeast-1': _i1.EndpointDefinition(variants: []), 'ap-southeast-2': _i1.EndpointDefinition(variants: []), 'ap-southeast-3': _i1.EndpointDefinition(variants: []), - 'ca-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.ca-central-1.amazonaws.com', - tags: ['fips'], - ) - ]), + 'ca-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.ca-central-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), 'eu-central-1': _i1.EndpointDefinition(variants: []), 'eu-north-1': _i1.EndpointDefinition(variants: []), 'eu-south-1': _i1.EndpointDefinition(variants: []), @@ -95,30 +94,38 @@ final _partitions = [ ), 'me-south-1': _i1.EndpointDefinition(variants: []), 'sa-east-1': _i1.EndpointDefinition(variants: []), - 'us-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-east-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-west-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'glacier-fips.us-west-2.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-east-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-west-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'glacier-fips.us-west-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), _i1.Partition( @@ -128,18 +135,12 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 'glacier.{region}.amazonaws.com.cn', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.v4], credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { 'cn-north-1': _i1.EndpointDefinition(variants: []), 'cn-northwest-1': _i1.EndpointDefinition(variants: []), @@ -157,16 +158,10 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const { 'us-iso-east-1': _i1.EndpointDefinition( - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [], ), 'us-iso-west-1': _i1.EndpointDefinition(variants: []), @@ -199,10 +194,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'us-gov-east-1': _i1.EndpointDefinition( hostname: 'glacier.us-gov-east-1.amazonaws.com', @@ -211,10 +203,7 @@ final _partitions = [ ), 'us-gov-west-1': _i1.EndpointDefinition( hostname: 'glacier.us-gov-west-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], credentialScope: _i1.CredentialScope(region: 'us-gov-west-1'), variants: [], ), @@ -222,7 +211,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Glacier'; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/serializers.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/serializers.dart index d7d56a29f0..fb68e2c377 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/serializers.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,11 +48,9 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_client.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_client.dart index 485294db89..329bf4921e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_client.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.glacier_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,12 +22,12 @@ class GlacierClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -52,10 +52,7 @@ class GlacierClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i3.SmithyOperation uploadMultipartPart( @@ -69,9 +66,6 @@ class GlacierClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_server.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_server.dart index edaacc3327..ca1c3e87ec 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_server.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/glacier_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.glacier_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -62,17 +62,23 @@ class _GlacierServer extends _i1.HttpServer { final GlacierServerBase service; late final _i1.HttpProtocol< - _i3.Stream>, - UploadArchiveInput, - ArchiveCreationOutputPayload, - ArchiveCreationOutput> _uploadArchiveProtocol = _i2.RestJson1Protocol( + _i3.Stream>, + UploadArchiveInput, + ArchiveCreationOutputPayload, + ArchiveCreationOutput + > + _uploadArchiveProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i3.Stream>, UploadMultipartPartInput, - UploadMultipartPartOutputPayload, UploadMultipartPartOutput> - _uploadMultipartPartProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i3.Stream>, + UploadMultipartPartInput, + UploadMultipartPartOutputPayload, + UploadMultipartPartOutput + > + _uploadMultipartPartProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -87,37 +93,26 @@ class _GlacierServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _uploadArchiveProtocol.contentType; try { - final payload = (await _uploadArchiveProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>); + final payload = + (await _uploadArchiveProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>); final input = UploadArchiveInput.fromRequest( payload, awsRequest, - labels: { - 'vaultName': vaultName, - 'accountId': accountId, - }, - ); - final output = await service.uploadArchive( - input, - context, + labels: {'vaultName': vaultName, 'accountId': accountId}, ); + final output = await service.uploadArchive(input, context); const statusCode = 201; final body = await _uploadArchiveProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - ArchiveCreationOutput, - [FullType(ArchiveCreationOutputPayload)], - ), + specifiedType: const FullType(ArchiveCreationOutput, [ + FullType(ArchiveCreationOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -129,10 +124,9 @@ class _GlacierServer extends _i1.HttpServer { 'InvalidParameterValueException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidParameterValueException, - [FullType(InvalidParameterValueException)], - ), + specifiedType: const FullType(InvalidParameterValueException, [ + FullType(InvalidParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -145,10 +139,9 @@ class _GlacierServer extends _i1.HttpServer { 'MissingParameterValueException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - MissingParameterValueException, - [FullType(MissingParameterValueException)], - ), + specifiedType: const FullType(MissingParameterValueException, [ + FullType(MissingParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -160,10 +153,9 @@ class _GlacierServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'RequestTimeoutException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - RequestTimeoutException, - [FullType(RequestTimeoutException)], - ), + specifiedType: const FullType(RequestTimeoutException, [ + FullType(RequestTimeoutException), + ]), ); const statusCode = 408; return _i4.Response( @@ -176,10 +168,9 @@ class _GlacierServer extends _i1.HttpServer { 'ResourceNotFoundException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ResourceNotFoundException, - [FullType(ResourceNotFoundException)], - ), + specifiedType: const FullType(ResourceNotFoundException, [ + FullType(ResourceNotFoundException), + ]), ); const statusCode = 404; return _i4.Response( @@ -192,10 +183,9 @@ class _GlacierServer extends _i1.HttpServer { 'ServiceUnavailableException'; final body = _uploadArchiveProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ServiceUnavailableException, - [FullType(ServiceUnavailableException)], - ), + specifiedType: const FullType(ServiceUnavailableException, [ + FullType(ServiceUnavailableException), + ]), ); const statusCode = 500; return _i4.Response( @@ -204,10 +194,7 @@ class _GlacierServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -224,17 +211,12 @@ class _GlacierServer extends _i1.HttpServer { try { final payload = (await _uploadMultipartPartProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>); final input = UploadMultipartPartInput.fromRequest( payload, awsRequest, @@ -244,17 +226,13 @@ class _GlacierServer extends _i1.HttpServer { 'uploadId': uploadId, }, ); - final output = await service.uploadMultipartPart( - input, - context, - ); + final output = await service.uploadMultipartPart(input, context); const statusCode = 204; final body = await _uploadMultipartPartProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - UploadMultipartPartOutput, - [FullType(UploadMultipartPartOutputPayload)], - ), + specifiedType: const FullType(UploadMultipartPartOutput, [ + FullType(UploadMultipartPartOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -266,10 +244,9 @@ class _GlacierServer extends _i1.HttpServer { 'InvalidParameterValueException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidParameterValueException, - [FullType(InvalidParameterValueException)], - ), + specifiedType: const FullType(InvalidParameterValueException, [ + FullType(InvalidParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -282,10 +259,9 @@ class _GlacierServer extends _i1.HttpServer { 'MissingParameterValueException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - MissingParameterValueException, - [FullType(MissingParameterValueException)], - ), + specifiedType: const FullType(MissingParameterValueException, [ + FullType(MissingParameterValueException), + ]), ); const statusCode = 400; return _i4.Response( @@ -297,10 +273,9 @@ class _GlacierServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'RequestTimeoutException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - RequestTimeoutException, - [FullType(RequestTimeoutException)], - ), + specifiedType: const FullType(RequestTimeoutException, [ + FullType(RequestTimeoutException), + ]), ); const statusCode = 408; return _i4.Response( @@ -313,10 +288,9 @@ class _GlacierServer extends _i1.HttpServer { 'ResourceNotFoundException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ResourceNotFoundException, - [FullType(ResourceNotFoundException)], - ), + specifiedType: const FullType(ResourceNotFoundException, [ + FullType(ResourceNotFoundException), + ]), ); const statusCode = 404; return _i4.Response( @@ -329,10 +303,9 @@ class _GlacierServer extends _i1.HttpServer { 'ServiceUnavailableException'; final body = _uploadMultipartPartProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ServiceUnavailableException, - [FullType(ServiceUnavailableException)], - ), + specifiedType: const FullType(ServiceUnavailableException, [ + FullType(ServiceUnavailableException), + ]), ); const statusCode = 500; return _i4.Response( @@ -341,10 +314,7 @@ class _GlacierServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.dart index 7dbc111583..66b0881bcb 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.archive_creation_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -29,9 +29,9 @@ abstract class ArchiveCreationOutput ); } - factory ArchiveCreationOutput.build( - [void Function(ArchiveCreationOutputBuilder) updates]) = - _$ArchiveCreationOutput; + factory ArchiveCreationOutput.build([ + void Function(ArchiveCreationOutputBuilder) updates, + ]) = _$ArchiveCreationOutput; const ArchiveCreationOutput._(); @@ -39,21 +39,20 @@ abstract class ArchiveCreationOutput factory ArchiveCreationOutput.fromResponse( ArchiveCreationOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ArchiveCreationOutput.build((b) { - if (response.headers['Location'] != null) { - b.location = response.headers['Location']!; - } - if (response.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = response.headers['x-amz-sha256-tree-hash']!; - } - if (response.headers['x-amz-archive-id'] != null) { - b.archiveId = response.headers['x-amz-archive-id']!; - } - }); + ) => ArchiveCreationOutput.build((b) { + if (response.headers['Location'] != null) { + b.location = response.headers['Location']!; + } + if (response.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = response.headers['x-amz-sha256-tree-hash']!; + } + if (response.headers['x-amz-archive-id'] != null) { + b.archiveId = response.headers['x-amz-archive-id']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [ArchiveCreationOutputRestJson1Serializer()]; + serializers = [ArchiveCreationOutputRestJson1Serializer()]; String? get location; String? get checksum; @@ -62,42 +61,31 @@ abstract class ArchiveCreationOutput ArchiveCreationOutputPayload getPayload() => ArchiveCreationOutputPayload(); @override - List get props => [ - location, - checksum, - archiveId, - ]; + List get props => [location, checksum, archiveId]; @override String toString() { - final helper = newBuiltValueToStringHelper('ArchiveCreationOutput') - ..add( - 'location', - location, - ) - ..add( - 'checksum', - checksum, - ) - ..add( - 'archiveId', - archiveId, - ); + final helper = + newBuiltValueToStringHelper('ArchiveCreationOutput') + ..add('location', location) + ..add('checksum', checksum) + ..add('archiveId', archiveId); return helper.toString(); } } @_i3.internal abstract class ArchiveCreationOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + ArchiveCreationOutputPayload, + ArchiveCreationOutputPayloadBuilder + >, _i2.EmptyPayload { - factory ArchiveCreationOutputPayload( - [void Function(ArchiveCreationOutputPayloadBuilder) updates]) = - _$ArchiveCreationOutputPayload; + factory ArchiveCreationOutputPayload([ + void Function(ArchiveCreationOutputPayloadBuilder) updates, + ]) = _$ArchiveCreationOutputPayload; const ArchiveCreationOutputPayload._(); @@ -114,23 +102,20 @@ abstract class ArchiveCreationOutputPayload class ArchiveCreationOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const ArchiveCreationOutputRestJson1Serializer() - : super('ArchiveCreationOutput'); + : super('ArchiveCreationOutput'); @override Iterable get types => const [ - ArchiveCreationOutput, - _$ArchiveCreationOutput, - ArchiveCreationOutputPayload, - _$ArchiveCreationOutputPayload, - ]; + ArchiveCreationOutput, + _$ArchiveCreationOutput, + ArchiveCreationOutputPayload, + _$ArchiveCreationOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ArchiveCreationOutputPayload deserialize( @@ -146,6 +131,5 @@ class ArchiveCreationOutputRestJson1Serializer Serializers serializers, ArchiveCreationOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.g.dart index 52e2b77eef..0c34e4c220 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/archive_creation_output.g.dart @@ -14,17 +14,17 @@ class _$ArchiveCreationOutput extends ArchiveCreationOutput { @override final String? archiveId; - factory _$ArchiveCreationOutput( - [void Function(ArchiveCreationOutputBuilder)? updates]) => - (new ArchiveCreationOutputBuilder()..update(updates))._build(); + factory _$ArchiveCreationOutput([ + void Function(ArchiveCreationOutputBuilder)? updates, + ]) => (new ArchiveCreationOutputBuilder()..update(updates))._build(); _$ArchiveCreationOutput._({this.location, this.checksum, this.archiveId}) - : super._(); + : super._(); @override ArchiveCreationOutput rebuild( - void Function(ArchiveCreationOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ArchiveCreationOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ArchiveCreationOutputBuilder toBuilder() => @@ -94,25 +94,29 @@ class ArchiveCreationOutputBuilder ArchiveCreationOutput build() => _build(); _$ArchiveCreationOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ArchiveCreationOutput._( - location: location, checksum: checksum, archiveId: archiveId); + location: location, + checksum: checksum, + archiveId: archiveId, + ); replace(_$result); return _$result; } } class _$ArchiveCreationOutputPayload extends ArchiveCreationOutputPayload { - factory _$ArchiveCreationOutputPayload( - [void Function(ArchiveCreationOutputPayloadBuilder)? updates]) => - (new ArchiveCreationOutputPayloadBuilder()..update(updates))._build(); + factory _$ArchiveCreationOutputPayload([ + void Function(ArchiveCreationOutputPayloadBuilder)? updates, + ]) => (new ArchiveCreationOutputPayloadBuilder()..update(updates))._build(); _$ArchiveCreationOutputPayload._() : super._(); @override ArchiveCreationOutputPayload rebuild( - void Function(ArchiveCreationOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ArchiveCreationOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ArchiveCreationOutputPayloadBuilder toBuilder() => @@ -132,8 +136,10 @@ class _$ArchiveCreationOutputPayload extends ArchiveCreationOutputPayload { class ArchiveCreationOutputPayloadBuilder implements - Builder { + Builder< + ArchiveCreationOutputPayload, + ArchiveCreationOutputPayloadBuilder + > { _$ArchiveCreationOutputPayload? _$v; ArchiveCreationOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.dart index 3f7df19058..3a38a15d42 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.dart index ced78f1e2b..3d1c567481 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.dart index 0bee42651c..d6fba36d81 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.dart index f9b9188617..4835888afc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart index 870ee837f0..c831212dcb 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.invalid_parameter_value_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,11 +11,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'invalid_parameter_value_exception.g.dart'; abstract class InvalidParameterValueException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + InvalidParameterValueException, + InvalidParameterValueExceptionBuilder + >, _i2.SmithyHttpException { factory InvalidParameterValueException({ String? type, @@ -29,9 +30,9 @@ abstract class InvalidParameterValueException ); } - factory InvalidParameterValueException.build( - [void Function(InvalidParameterValueExceptionBuilder) updates]) = - _$InvalidParameterValueException; + factory InvalidParameterValueException.build([ + void Function(InvalidParameterValueExceptionBuilder) updates, + ]) = _$InvalidParameterValueException; const InvalidParameterValueException._(); @@ -39,13 +40,12 @@ abstract class InvalidParameterValueException factory InvalidParameterValueException.fromResponse( InvalidParameterValueException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidParameterValueExceptionRestJson1Serializer()]; + serializers = [InvalidParameterValueExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -53,9 +53,9 @@ abstract class InvalidParameterValueException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'InvalidParameterValueException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'InvalidParameterValueException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -71,27 +71,15 @@ abstract class InvalidParameterValueException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('InvalidParameterValueException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('InvalidParameterValueException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -99,21 +87,18 @@ abstract class InvalidParameterValueException class InvalidParameterValueExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const InvalidParameterValueExceptionRestJson1Serializer() - : super('InvalidParameterValueException'); + : super('InvalidParameterValueException'); @override Iterable get types => const [ - InvalidParameterValueException, - _$InvalidParameterValueException, - ]; + InvalidParameterValueException, + _$InvalidParameterValueException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidParameterValueException deserialize( @@ -132,20 +117,26 @@ class InvalidParameterValueExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -163,26 +154,23 @@ class InvalidParameterValueExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart index f66dee1720..db3b108a7d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/invalid_parameter_value_exception.g.dart @@ -16,18 +16,21 @@ class _$InvalidParameterValueException extends InvalidParameterValueException { @override final Map? headers; - factory _$InvalidParameterValueException( - [void Function(InvalidParameterValueExceptionBuilder)? updates]) => - (new InvalidParameterValueExceptionBuilder()..update(updates))._build(); + factory _$InvalidParameterValueException([ + void Function(InvalidParameterValueExceptionBuilder)? updates, + ]) => (new InvalidParameterValueExceptionBuilder()..update(updates))._build(); - _$InvalidParameterValueException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$InvalidParameterValueException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override InvalidParameterValueException rebuild( - void Function(InvalidParameterValueExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidParameterValueExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidParameterValueExceptionBuilder toBuilder() => @@ -55,8 +58,10 @@ class _$InvalidParameterValueException extends InvalidParameterValueException { class InvalidParameterValueExceptionBuilder implements - Builder { + Builder< + InvalidParameterValueException, + InvalidParameterValueExceptionBuilder + > { _$InvalidParameterValueException? _$v; String? _type; @@ -104,9 +109,14 @@ class InvalidParameterValueExceptionBuilder InvalidParameterValueException build() => _build(); _$InvalidParameterValueException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidParameterValueException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart index b72f1a443c..e815c6c873 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.missing_parameter_value_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,11 +11,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'missing_parameter_value_exception.g.dart'; abstract class MissingParameterValueException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MissingParameterValueException, + MissingParameterValueExceptionBuilder + >, _i2.SmithyHttpException { factory MissingParameterValueException({ String? type, @@ -29,9 +30,9 @@ abstract class MissingParameterValueException ); } - factory MissingParameterValueException.build( - [void Function(MissingParameterValueExceptionBuilder) updates]) = - _$MissingParameterValueException; + factory MissingParameterValueException.build([ + void Function(MissingParameterValueExceptionBuilder) updates, + ]) = _$MissingParameterValueException; const MissingParameterValueException._(); @@ -39,13 +40,12 @@ abstract class MissingParameterValueException factory MissingParameterValueException.fromResponse( MissingParameterValueException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [MissingParameterValueExceptionRestJson1Serializer()]; + serializers = [MissingParameterValueExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -53,9 +53,9 @@ abstract class MissingParameterValueException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'MissingParameterValueException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'MissingParameterValueException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -71,27 +71,15 @@ abstract class MissingParameterValueException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('MissingParameterValueException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('MissingParameterValueException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -99,21 +87,18 @@ abstract class MissingParameterValueException class MissingParameterValueExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const MissingParameterValueExceptionRestJson1Serializer() - : super('MissingParameterValueException'); + : super('MissingParameterValueException'); @override Iterable get types => const [ - MissingParameterValueException, - _$MissingParameterValueException, - ]; + MissingParameterValueException, + _$MissingParameterValueException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingParameterValueException deserialize( @@ -132,20 +117,26 @@ class MissingParameterValueExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -163,26 +154,23 @@ class MissingParameterValueExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart index 6b97f962fb..bd09c458e8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/missing_parameter_value_exception.g.dart @@ -16,18 +16,21 @@ class _$MissingParameterValueException extends MissingParameterValueException { @override final Map? headers; - factory _$MissingParameterValueException( - [void Function(MissingParameterValueExceptionBuilder)? updates]) => - (new MissingParameterValueExceptionBuilder()..update(updates))._build(); + factory _$MissingParameterValueException([ + void Function(MissingParameterValueExceptionBuilder)? updates, + ]) => (new MissingParameterValueExceptionBuilder()..update(updates))._build(); - _$MissingParameterValueException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$MissingParameterValueException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override MissingParameterValueException rebuild( - void Function(MissingParameterValueExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MissingParameterValueExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MissingParameterValueExceptionBuilder toBuilder() => @@ -55,8 +58,10 @@ class _$MissingParameterValueException extends MissingParameterValueException { class MissingParameterValueExceptionBuilder implements - Builder { + Builder< + MissingParameterValueException, + MissingParameterValueExceptionBuilder + > { _$MissingParameterValueException? _$v; String? _type; @@ -104,9 +109,14 @@ class MissingParameterValueExceptionBuilder MissingParameterValueException build() => _build(); _$MissingParameterValueException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MissingParameterValueException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.dart index 4bb47641aa..8c30911fb9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.dart index 0c0685d97b..b5d7b5161b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.request_timeout_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class RequestTimeoutException ); } - factory RequestTimeoutException.build( - [void Function(RequestTimeoutExceptionBuilder) updates]) = - _$RequestTimeoutException; + factory RequestTimeoutException.build([ + void Function(RequestTimeoutExceptionBuilder) updates, + ]) = _$RequestTimeoutException; const RequestTimeoutException._(); @@ -37,10 +37,9 @@ abstract class RequestTimeoutException factory RequestTimeoutException.fromResponse( RequestTimeoutException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [RequestTimeoutExceptionRestJson1Serializer()]; @@ -51,9 +50,9 @@ abstract class RequestTimeoutException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'RequestTimeoutException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'RequestTimeoutException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,27 +68,15 @@ abstract class RequestTimeoutException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('RequestTimeoutException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('RequestTimeoutException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -97,21 +84,18 @@ abstract class RequestTimeoutException class RequestTimeoutExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const RequestTimeoutExceptionRestJson1Serializer() - : super('RequestTimeoutException'); + : super('RequestTimeoutException'); @override Iterable get types => const [ - RequestTimeoutException, - _$RequestTimeoutException, - ]; + RequestTimeoutException, + _$RequestTimeoutException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RequestTimeoutException deserialize( @@ -130,20 +114,26 @@ class RequestTimeoutExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -161,26 +151,23 @@ class RequestTimeoutExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart index f9f54614e0..b4041a1777 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/request_timeout_exception.g.dart @@ -16,18 +16,21 @@ class _$RequestTimeoutException extends RequestTimeoutException { @override final Map? headers; - factory _$RequestTimeoutException( - [void Function(RequestTimeoutExceptionBuilder)? updates]) => - (new RequestTimeoutExceptionBuilder()..update(updates))._build(); + factory _$RequestTimeoutException([ + void Function(RequestTimeoutExceptionBuilder)? updates, + ]) => (new RequestTimeoutExceptionBuilder()..update(updates))._build(); - _$RequestTimeoutException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$RequestTimeoutException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override RequestTimeoutException rebuild( - void Function(RequestTimeoutExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RequestTimeoutExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RequestTimeoutExceptionBuilder toBuilder() => @@ -103,9 +106,14 @@ class RequestTimeoutExceptionBuilder RequestTimeoutException build() => _build(); _$RequestTimeoutException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$RequestTimeoutException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.dart index 744196affd..0aa612c6ba 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.resource_not_found_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class ResourceNotFoundException ); } - factory ResourceNotFoundException.build( - [void Function(ResourceNotFoundExceptionBuilder) updates]) = - _$ResourceNotFoundException; + factory ResourceNotFoundException.build([ + void Function(ResourceNotFoundExceptionBuilder) updates, + ]) = _$ResourceNotFoundException; const ResourceNotFoundException._(); @@ -37,13 +37,12 @@ abstract class ResourceNotFoundException factory ResourceNotFoundException.fromResponse( ResourceNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceNotFoundExceptionRestJson1Serializer()]; + serializers = [ResourceNotFoundExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -51,9 +50,9 @@ abstract class ResourceNotFoundException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ResourceNotFoundException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'ResourceNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,27 +68,15 @@ abstract class ResourceNotFoundException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('ResourceNotFoundException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('ResourceNotFoundException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -97,21 +84,18 @@ abstract class ResourceNotFoundException class ResourceNotFoundExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const ResourceNotFoundExceptionRestJson1Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ - ResourceNotFoundException, - _$ResourceNotFoundException, - ]; + ResourceNotFoundException, + _$ResourceNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResourceNotFoundException deserialize( @@ -130,20 +114,26 @@ class ResourceNotFoundExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -161,26 +151,23 @@ class ResourceNotFoundExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart index 55b1aae29d..371645ffdb 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/resource_not_found_exception.g.dart @@ -16,18 +16,21 @@ class _$ResourceNotFoundException extends ResourceNotFoundException { @override final Map? headers; - factory _$ResourceNotFoundException( - [void Function(ResourceNotFoundExceptionBuilder)? updates]) => - (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); + factory _$ResourceNotFoundException([ + void Function(ResourceNotFoundExceptionBuilder)? updates, + ]) => (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); - _$ResourceNotFoundException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$ResourceNotFoundException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override ResourceNotFoundException rebuild( - void Function(ResourceNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceNotFoundExceptionBuilder toBuilder() => @@ -103,9 +106,14 @@ class ResourceNotFoundExceptionBuilder ResourceNotFoundException build() => _build(); _$ResourceNotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ResourceNotFoundException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_config.dart index d942dce712..d80f16ced5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_mode.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_mode.dart index 9b398484cf..d450b34196 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_addressing_style.dart index 7b6fef7255..1550da0a50 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.dart index 2bc3cfa10b..03f12368af 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.dart index e2fdde57a8..e727c5e6e4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.dart index 9e9def71e1..76e7c49901 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.service_unavailable_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class ServiceUnavailableException ); } - factory ServiceUnavailableException.build( - [void Function(ServiceUnavailableExceptionBuilder) updates]) = - _$ServiceUnavailableException; + factory ServiceUnavailableException.build([ + void Function(ServiceUnavailableExceptionBuilder) updates, + ]) = _$ServiceUnavailableException; const ServiceUnavailableException._(); @@ -37,13 +37,12 @@ abstract class ServiceUnavailableException factory ServiceUnavailableException.fromResponse( ServiceUnavailableException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ServiceUnavailableExceptionRestJson1Serializer()]; + serializers = [ServiceUnavailableExceptionRestJson1Serializer()]; String? get type; String? get code; @@ -51,9 +50,9 @@ abstract class ServiceUnavailableException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ServiceUnavailableException', - ); + namespace: 'com.amazonaws.glacier', + shape: 'ServiceUnavailableException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -69,27 +68,15 @@ abstract class ServiceUnavailableException Exception? get underlyingException => null; @override - List get props => [ - type, - code, - message, - ]; + List get props => [type, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('ServiceUnavailableException') - ..add( - 'type', - type, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('ServiceUnavailableException') + ..add('type', type) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -97,21 +84,18 @@ abstract class ServiceUnavailableException class ServiceUnavailableExceptionRestJson1Serializer extends _i2.StructuredSmithySerializer { const ServiceUnavailableExceptionRestJson1Serializer() - : super('ServiceUnavailableException'); + : super('ServiceUnavailableException'); @override Iterable get types => const [ - ServiceUnavailableException, - _$ServiceUnavailableException, - ]; + ServiceUnavailableException, + _$ServiceUnavailableException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ServiceUnavailableException deserialize( @@ -130,20 +114,26 @@ class ServiceUnavailableExceptionRestJson1Serializer } switch (key) { case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -161,26 +151,23 @@ class ServiceUnavailableExceptionRestJson1Serializer if (code != null) { result$ ..add('code') - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (type != null) { result$ ..add('type') - ..add(serializers.serialize( - type, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart index 168ebfbf85..4e2cbffd90 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/service_unavailable_exception.g.dart @@ -16,18 +16,21 @@ class _$ServiceUnavailableException extends ServiceUnavailableException { @override final Map? headers; - factory _$ServiceUnavailableException( - [void Function(ServiceUnavailableExceptionBuilder)? updates]) => - (new ServiceUnavailableExceptionBuilder()..update(updates))._build(); + factory _$ServiceUnavailableException([ + void Function(ServiceUnavailableExceptionBuilder)? updates, + ]) => (new ServiceUnavailableExceptionBuilder()..update(updates))._build(); - _$ServiceUnavailableException._( - {this.type, this.code, this.message, this.headers}) - : super._(); + _$ServiceUnavailableException._({ + this.type, + this.code, + this.message, + this.headers, + }) : super._(); @override ServiceUnavailableException rebuild( - void Function(ServiceUnavailableExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ServiceUnavailableExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ServiceUnavailableExceptionBuilder toBuilder() => @@ -55,8 +58,10 @@ class _$ServiceUnavailableException extends ServiceUnavailableException { class ServiceUnavailableExceptionBuilder implements - Builder { + Builder< + ServiceUnavailableException, + ServiceUnavailableExceptionBuilder + > { _$ServiceUnavailableException? _$v; String? _type; @@ -104,9 +109,14 @@ class ServiceUnavailableExceptionBuilder ServiceUnavailableException build() => _build(); _$ServiceUnavailableException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ServiceUnavailableException._( - type: type, code: code, message: message, headers: headers); + type: type, + code: code, + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.dart index 4a5bbf26bd..3a56c9ec23 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.upload_archive_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,9 +36,9 @@ abstract class UploadArchiveInput ); } - factory UploadArchiveInput.build( - [void Function(UploadArchiveInputBuilder) updates]) = - _$UploadArchiveInput; + factory UploadArchiveInput.build([ + void Function(UploadArchiveInputBuilder) updates, + ]) = _$UploadArchiveInput; const UploadArchiveInput._(); @@ -46,25 +46,24 @@ abstract class UploadArchiveInput _i2.Stream> payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UploadArchiveInput.build((b) { - b.body = payload; - if (request.headers['x-amz-archive-description'] != null) { - b.archiveDescription = request.headers['x-amz-archive-description']!; - } - if (request.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = request.headers['x-amz-sha256-tree-hash']!; - } - if (labels['vaultName'] != null) { - b.vaultName = labels['vaultName']!; - } - if (labels['accountId'] != null) { - b.accountId = labels['accountId']!; - } - }); + }) => UploadArchiveInput.build((b) { + b.body = payload; + if (request.headers['x-amz-archive-description'] != null) { + b.archiveDescription = request.headers['x-amz-archive-description']!; + } + if (request.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = request.headers['x-amz-sha256-tree-hash']!; + } + if (labels['vaultName'] != null) { + b.vaultName = labels['vaultName']!; + } + if (labels['accountId'] != null) { + b.accountId = labels['accountId']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>>> serializers = [ - UploadArchiveInputRestJson1Serializer() + UploadArchiveInputRestJson1Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -85,10 +84,7 @@ abstract class UploadArchiveInput case 'accountId': return accountId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -96,36 +92,22 @@ abstract class UploadArchiveInput @override List get props => [ - vaultName, - accountId, - archiveDescription, - checksum, - body, - ]; + vaultName, + accountId, + archiveDescription, + checksum, + body, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadArchiveInput') - ..add( - 'vaultName', - vaultName, - ) - ..add( - 'accountId', - accountId, - ) - ..add( - 'archiveDescription', - archiveDescription, - ) - ..add( - 'checksum', - checksum, - ) - ..add( - 'body', - body, - ); + final helper = + newBuiltValueToStringHelper('UploadArchiveInput') + ..add('vaultName', vaultName) + ..add('accountId', accountId) + ..add('archiveDescription', archiveDescription) + ..add('checksum', checksum) + ..add('body', body); return helper.toString(); } } @@ -135,18 +117,12 @@ class UploadArchiveInputRestJson1Serializer const UploadArchiveInputRestJson1Serializer() : super('UploadArchiveInput'); @override - Iterable get types => const [ - UploadArchiveInput, - _$UploadArchiveInput, - ]; + Iterable get types => const [UploadArchiveInput, _$UploadArchiveInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -155,17 +131,12 @@ class UploadArchiveInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -176,15 +147,9 @@ class UploadArchiveInputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.g.dart index 17ceba5263..3b4a15a039 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_archive_input.g.dart @@ -18,28 +18,34 @@ class _$UploadArchiveInput extends UploadArchiveInput { @override final _i2.Stream> body; - factory _$UploadArchiveInput( - [void Function(UploadArchiveInputBuilder)? updates]) => - (new UploadArchiveInputBuilder()..update(updates))._build(); - - _$UploadArchiveInput._( - {required this.vaultName, - required this.accountId, - this.archiveDescription, - this.checksum, - required this.body}) - : super._() { + factory _$UploadArchiveInput([ + void Function(UploadArchiveInputBuilder)? updates, + ]) => (new UploadArchiveInputBuilder()..update(updates))._build(); + + _$UploadArchiveInput._({ + required this.vaultName, + required this.accountId, + this.archiveDescription, + this.checksum, + required this.body, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadArchiveInput', 'vaultName'); + vaultName, + r'UploadArchiveInput', + 'vaultName', + ); BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadArchiveInput', 'accountId'); + accountId, + r'UploadArchiveInput', + 'accountId', + ); BuiltValueNullFieldError.checkNotNull(body, r'UploadArchiveInput', 'body'); } @override UploadArchiveInput rebuild( - void Function(UploadArchiveInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadArchiveInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadArchiveInputBuilder toBuilder() => @@ -126,16 +132,27 @@ class UploadArchiveInputBuilder UploadArchiveInput build() => _build(); _$UploadArchiveInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UploadArchiveInput._( - vaultName: BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadArchiveInput', 'vaultName'), - accountId: BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadArchiveInput', 'accountId'), - archiveDescription: archiveDescription, - checksum: checksum, - body: BuiltValueNullFieldError.checkNotNull( - body, r'UploadArchiveInput', 'body')); + vaultName: BuiltValueNullFieldError.checkNotNull( + vaultName, + r'UploadArchiveInput', + 'vaultName', + ), + accountId: BuiltValueNullFieldError.checkNotNull( + accountId, + r'UploadArchiveInput', + 'accountId', + ), + archiveDescription: archiveDescription, + checksum: checksum, + body: BuiltValueNullFieldError.checkNotNull( + body, + r'UploadArchiveInput', + 'body', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart index 34a5336e88..bd13ca58f2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.upload_multipart_part_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,9 +38,9 @@ abstract class UploadMultipartPartInput ); } - factory UploadMultipartPartInput.build( - [void Function(UploadMultipartPartInputBuilder) updates]) = - _$UploadMultipartPartInput; + factory UploadMultipartPartInput.build([ + void Function(UploadMultipartPartInputBuilder) updates, + ]) = _$UploadMultipartPartInput; const UploadMultipartPartInput._(); @@ -48,28 +48,27 @@ abstract class UploadMultipartPartInput _i2.Stream> payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UploadMultipartPartInput.build((b) { - b.body = payload; - if (request.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = request.headers['x-amz-sha256-tree-hash']!; - } - if (request.headers['Content-Range'] != null) { - b.range = request.headers['Content-Range']!; - } - if (labels['accountId'] != null) { - b.accountId = labels['accountId']!; - } - if (labels['vaultName'] != null) { - b.vaultName = labels['vaultName']!; - } - if (labels['uploadId'] != null) { - b.uploadId = labels['uploadId']!; - } - }); + }) => UploadMultipartPartInput.build((b) { + b.body = payload; + if (request.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = request.headers['x-amz-sha256-tree-hash']!; + } + if (request.headers['Content-Range'] != null) { + b.range = request.headers['Content-Range']!; + } + if (labels['accountId'] != null) { + b.accountId = labels['accountId']!; + } + if (labels['vaultName'] != null) { + b.vaultName = labels['vaultName']!; + } + if (labels['uploadId'] != null) { + b.uploadId = labels['uploadId']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>>> serializers = [ - UploadMultipartPartInputRestJson1Serializer() + UploadMultipartPartInputRestJson1Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -93,10 +92,7 @@ abstract class UploadMultipartPartInput case 'uploadId': return uploadId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -104,41 +100,24 @@ abstract class UploadMultipartPartInput @override List get props => [ - accountId, - vaultName, - uploadId, - checksum, - range, - body, - ]; + accountId, + vaultName, + uploadId, + checksum, + range, + body, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadMultipartPartInput') - ..add( - 'accountId', - accountId, - ) - ..add( - 'vaultName', - vaultName, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'checksum', - checksum, - ) - ..add( - 'range', - range, - ) - ..add( - 'body', - body, - ); + final helper = + newBuiltValueToStringHelper('UploadMultipartPartInput') + ..add('accountId', accountId) + ..add('vaultName', vaultName) + ..add('uploadId', uploadId) + ..add('checksum', checksum) + ..add('range', range) + ..add('body', body); return helper.toString(); } } @@ -146,21 +125,18 @@ abstract class UploadMultipartPartInput class UploadMultipartPartInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const UploadMultipartPartInputRestJson1Serializer() - : super('UploadMultipartPartInput'); + : super('UploadMultipartPartInput'); @override Iterable get types => const [ - UploadMultipartPartInput, - _$UploadMultipartPartInput, - ]; + UploadMultipartPartInput, + _$UploadMultipartPartInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -169,17 +145,12 @@ class UploadMultipartPartInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -190,15 +161,9 @@ class UploadMultipartPartInputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart index 8c2897acdd..7d47c3f8fc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_input.g.dart @@ -20,32 +20,44 @@ class _$UploadMultipartPartInput extends UploadMultipartPartInput { @override final _i2.Stream> body; - factory _$UploadMultipartPartInput( - [void Function(UploadMultipartPartInputBuilder)? updates]) => - (new UploadMultipartPartInputBuilder()..update(updates))._build(); - - _$UploadMultipartPartInput._( - {required this.accountId, - required this.vaultName, - required this.uploadId, - this.checksum, - this.range, - required this.body}) - : super._() { + factory _$UploadMultipartPartInput([ + void Function(UploadMultipartPartInputBuilder)? updates, + ]) => (new UploadMultipartPartInputBuilder()..update(updates))._build(); + + _$UploadMultipartPartInput._({ + required this.accountId, + required this.vaultName, + required this.uploadId, + this.checksum, + this.range, + required this.body, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadMultipartPartInput', 'accountId'); + accountId, + r'UploadMultipartPartInput', + 'accountId', + ); BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadMultipartPartInput', 'vaultName'); + vaultName, + r'UploadMultipartPartInput', + 'vaultName', + ); BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadMultipartPartInput', 'uploadId'); + uploadId, + r'UploadMultipartPartInput', + 'uploadId', + ); BuiltValueNullFieldError.checkNotNull( - body, r'UploadMultipartPartInput', 'body'); + body, + r'UploadMultipartPartInput', + 'body', + ); } @override UploadMultipartPartInput rebuild( - void Function(UploadMultipartPartInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadMultipartPartInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadMultipartPartInputBuilder toBuilder() => @@ -139,18 +151,32 @@ class UploadMultipartPartInputBuilder UploadMultipartPartInput build() => _build(); _$UploadMultipartPartInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UploadMultipartPartInput._( - accountId: BuiltValueNullFieldError.checkNotNull( - accountId, r'UploadMultipartPartInput', 'accountId'), - vaultName: BuiltValueNullFieldError.checkNotNull( - vaultName, r'UploadMultipartPartInput', 'vaultName'), - uploadId: BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadMultipartPartInput', 'uploadId'), - checksum: checksum, - range: range, - body: BuiltValueNullFieldError.checkNotNull( - body, r'UploadMultipartPartInput', 'body')); + accountId: BuiltValueNullFieldError.checkNotNull( + accountId, + r'UploadMultipartPartInput', + 'accountId', + ), + vaultName: BuiltValueNullFieldError.checkNotNull( + vaultName, + r'UploadMultipartPartInput', + 'vaultName', + ), + uploadId: BuiltValueNullFieldError.checkNotNull( + uploadId, + r'UploadMultipartPartInput', + 'uploadId', + ), + checksum: checksum, + range: range, + body: BuiltValueNullFieldError.checkNotNull( + body, + r'UploadMultipartPartInput', + 'body', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart index 94bb469264..0971395173 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.model.upload_multipart_part_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class UploadMultipartPartOutput return _$UploadMultipartPartOutput._(checksum: checksum); } - factory UploadMultipartPartOutput.build( - [void Function(UploadMultipartPartOutputBuilder) updates]) = - _$UploadMultipartPartOutput; + factory UploadMultipartPartOutput.build([ + void Function(UploadMultipartPartOutputBuilder) updates, + ]) = _$UploadMultipartPartOutput; const UploadMultipartPartOutput._(); @@ -31,15 +31,14 @@ abstract class UploadMultipartPartOutput factory UploadMultipartPartOutput.fromResponse( UploadMultipartPartOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - UploadMultipartPartOutput.build((b) { - if (response.headers['x-amz-sha256-tree-hash'] != null) { - b.checksum = response.headers['x-amz-sha256-tree-hash']!; - } - }); + ) => UploadMultipartPartOutput.build((b) { + if (response.headers['x-amz-sha256-tree-hash'] != null) { + b.checksum = response.headers['x-amz-sha256-tree-hash']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [UploadMultipartPartOutputRestJson1Serializer()]; + serializers = [UploadMultipartPartOutputRestJson1Serializer()]; String? get checksum; @override @@ -52,25 +51,23 @@ abstract class UploadMultipartPartOutput @override String toString() { final helper = newBuiltValueToStringHelper('UploadMultipartPartOutput') - ..add( - 'checksum', - checksum, - ); + ..add('checksum', checksum); return helper.toString(); } } @_i3.internal abstract class UploadMultipartPartOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + UploadMultipartPartOutputPayload, + UploadMultipartPartOutputPayloadBuilder + >, _i2.EmptyPayload { - factory UploadMultipartPartOutputPayload( - [void Function(UploadMultipartPartOutputPayloadBuilder) updates]) = - _$UploadMultipartPartOutputPayload; + factory UploadMultipartPartOutputPayload([ + void Function(UploadMultipartPartOutputPayloadBuilder) updates, + ]) = _$UploadMultipartPartOutputPayload; const UploadMultipartPartOutputPayload._(); @@ -79,8 +76,9 @@ abstract class UploadMultipartPartOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('UploadMultipartPartOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'UploadMultipartPartOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class UploadMultipartPartOutputPayload class UploadMultipartPartOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const UploadMultipartPartOutputRestJson1Serializer() - : super('UploadMultipartPartOutput'); + : super('UploadMultipartPartOutput'); @override Iterable get types => const [ - UploadMultipartPartOutput, - _$UploadMultipartPartOutput, - UploadMultipartPartOutputPayload, - _$UploadMultipartPartOutputPayload, - ]; + UploadMultipartPartOutput, + _$UploadMultipartPartOutput, + UploadMultipartPartOutputPayload, + _$UploadMultipartPartOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadMultipartPartOutputPayload deserialize( @@ -120,6 +115,5 @@ class UploadMultipartPartOutputRestJson1Serializer Serializers serializers, UploadMultipartPartOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart index 0577cd162b..f397c227b3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/model/upload_multipart_part_output.g.dart @@ -10,16 +10,16 @@ class _$UploadMultipartPartOutput extends UploadMultipartPartOutput { @override final String? checksum; - factory _$UploadMultipartPartOutput( - [void Function(UploadMultipartPartOutputBuilder)? updates]) => - (new UploadMultipartPartOutputBuilder()..update(updates))._build(); + factory _$UploadMultipartPartOutput([ + void Function(UploadMultipartPartOutputBuilder)? updates, + ]) => (new UploadMultipartPartOutputBuilder()..update(updates))._build(); _$UploadMultipartPartOutput._({this.checksum}) : super._(); @override UploadMultipartPartOutput rebuild( - void Function(UploadMultipartPartOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadMultipartPartOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadMultipartPartOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class UploadMultipartPartOutputBuilder class _$UploadMultipartPartOutputPayload extends UploadMultipartPartOutputPayload { - factory _$UploadMultipartPartOutputPayload( - [void Function(UploadMultipartPartOutputPayloadBuilder)? updates]) => + factory _$UploadMultipartPartOutputPayload([ + void Function(UploadMultipartPartOutputPayloadBuilder)? updates, + ]) => (new UploadMultipartPartOutputPayloadBuilder()..update(updates))._build(); _$UploadMultipartPartOutputPayload._() : super._(); @override UploadMultipartPartOutputPayload rebuild( - void Function(UploadMultipartPartOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadMultipartPartOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadMultipartPartOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$UploadMultipartPartOutputPayload class UploadMultipartPartOutputPayloadBuilder implements - Builder { + Builder< + UploadMultipartPartOutputPayload, + UploadMultipartPartOutputPayloadBuilder + > { _$UploadMultipartPartOutputPayload? _$v; UploadMultipartPartOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_archive_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_archive_operation.dart index 672772cab6..9592c28b5b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_archive_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_archive_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.operation.upload_archive_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,8 +19,14 @@ import 'package:rest_json1_v2/src/glacier/model/upload_archive_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i4; -class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, - UploadArchiveInput, ArchiveCreationOutputPayload, ArchiveCreationOutput> { +class UploadArchiveOperation + extends + _i1.HttpOperation< + _i2.Stream>, + UploadArchiveInput, + ArchiveCreationOutputPayload, + ArchiveCreationOutput + > { UploadArchiveOperation({ required String region, Uri? baseUri, @@ -28,34 +34,41 @@ class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, UploadArchiveInput, - ArchiveCreationOutputPayload, ArchiveCreationOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + UploadArchiveInput, + ArchiveCreationOutputPayload, + ArchiveCreationOutput + > + > + protocols = [ _i4.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i4.WithSigV4( region: _region, service: _i5.AWSService.glacier, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i4.WithSdkInvocationId(), const _i4.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i4.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -97,68 +110,67 @@ class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, ArchiveCreationOutput buildOutput( ArchiveCreationOutputPayload payload, _i5.AWSBaseHttpResponse response, - ) => - ArchiveCreationOutput.fromResponse( - payload, - response, - ); + ) => ArchiveCreationOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'InvalidParameterValueException', - ), - _i1.ErrorKind.client, - InvalidParameterValueException, - statusCode: 400, - builder: InvalidParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'MissingParameterValueException', - ), - _i1.ErrorKind.client, - MissingParameterValueException, - statusCode: 400, - builder: MissingParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'RequestTimeoutException', - ), - _i1.ErrorKind.client, - RequestTimeoutException, - statusCode: 408, - builder: RequestTimeoutException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ServiceUnavailableException', - ), - _i1.ErrorKind.server, - ServiceUnavailableException, - statusCode: 500, - builder: ServiceUnavailableException.fromResponse, - ), - ]; + _i1.SmithyError< + InvalidParameterValueException, + InvalidParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'InvalidParameterValueException', + ), + _i1.ErrorKind.client, + InvalidParameterValueException, + statusCode: 400, + builder: InvalidParameterValueException.fromResponse, + ), + _i1.SmithyError< + MissingParameterValueException, + MissingParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'MissingParameterValueException', + ), + _i1.ErrorKind.client, + MissingParameterValueException, + statusCode: 400, + builder: MissingParameterValueException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'RequestTimeoutException', + ), + _i1.ErrorKind.client, + RequestTimeoutException, + statusCode: 408, + builder: RequestTimeoutException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ServiceUnavailableException', + ), + _i1.ErrorKind.server, + ServiceUnavailableException, + statusCode: 500, + builder: ServiceUnavailableException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UploadArchive'; @@ -179,11 +191,7 @@ class UploadArchiveOperation extends _i1.HttpOperation<_i2.Stream>, _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart index 0e1fd07478..2ddcf49403 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/glacier/operation/upload_multipart_part_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.glacier.operation.upload_multipart_part_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,11 +19,14 @@ import 'package:rest_json1_v2/src/glacier/model/upload_multipart_part_output.dar import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i4; -class UploadMultipartPartOperation extends _i1.HttpOperation< - _i2.Stream>, - UploadMultipartPartInput, - UploadMultipartPartOutputPayload, - UploadMultipartPartOutput> { +class UploadMultipartPartOperation + extends + _i1.HttpOperation< + _i2.Stream>, + UploadMultipartPartInput, + UploadMultipartPartOutputPayload, + UploadMultipartPartOutput + > { UploadMultipartPartOperation({ required String region, Uri? baseUri, @@ -31,37 +34,41 @@ class UploadMultipartPartOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Stream>, - UploadMultipartPartInput, - UploadMultipartPartOutputPayload, - UploadMultipartPartOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + UploadMultipartPartInput, + UploadMultipartPartOutputPayload, + UploadMultipartPartOutput + > + > + protocols = [ _i4.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i4.WithSigV4( region: _region, service: _i5.AWSService.glacier, credentialsProvider: _credentialsProvider, ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i4.WithSdkInvocationId(), const _i4.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i4.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -104,68 +111,67 @@ class UploadMultipartPartOperation extends _i1.HttpOperation< UploadMultipartPartOutput buildOutput( UploadMultipartPartOutputPayload payload, _i5.AWSBaseHttpResponse response, - ) => - UploadMultipartPartOutput.fromResponse( - payload, - response, - ); + ) => UploadMultipartPartOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'InvalidParameterValueException', - ), - _i1.ErrorKind.client, - InvalidParameterValueException, - statusCode: 400, - builder: InvalidParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'MissingParameterValueException', - ), - _i1.ErrorKind.client, - MissingParameterValueException, - statusCode: 400, - builder: MissingParameterValueException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'RequestTimeoutException', - ), - _i1.ErrorKind.client, - RequestTimeoutException, - statusCode: 408, - builder: RequestTimeoutException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.glacier', - shape: 'ServiceUnavailableException', - ), - _i1.ErrorKind.server, - ServiceUnavailableException, - statusCode: 500, - builder: ServiceUnavailableException.fromResponse, - ), - ]; + _i1.SmithyError< + InvalidParameterValueException, + InvalidParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'InvalidParameterValueException', + ), + _i1.ErrorKind.client, + InvalidParameterValueException, + statusCode: 400, + builder: InvalidParameterValueException.fromResponse, + ), + _i1.SmithyError< + MissingParameterValueException, + MissingParameterValueException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'MissingParameterValueException', + ), + _i1.ErrorKind.client, + MissingParameterValueException, + statusCode: 400, + builder: MissingParameterValueException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'RequestTimeoutException', + ), + _i1.ErrorKind.client, + RequestTimeoutException, + statusCode: 408, + builder: RequestTimeoutException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.glacier', + shape: 'ServiceUnavailableException', + ), + _i1.ErrorKind.server, + ServiceUnavailableException, + statusCode: 500, + builder: ServiceUnavailableException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'UploadMultipartPart'; @@ -186,11 +192,7 @@ class UploadMultipartPartOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart index 7f70bf0add..662316ff01 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Json Protocol'; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/serializers.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/serializers.dart index 4487ce48f3..0411956326 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -252,156 +252,62 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(double)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType.nullable(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(bool), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(int), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(bool), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.SetMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(double)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(IntegerEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(IntegerEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(IntegerEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType.nullable(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(GreetingStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType.nullable(GreetingStruct), + ]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(bool)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(int)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(bool)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType.nullable(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSetMultimap, [FullType(String), FullType(String)]): + _i2.SetMultimapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart index 76f51289bd..cf7a35d482 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.all_query_string_types_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -74,18 +74,20 @@ abstract class AllQueryStringTypesInput queryEnumList: queryEnumList == null ? null : _i4.BuiltList(queryEnumList), queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: queryIntegerEnumList == null - ? null - : _i4.BuiltList(queryIntegerEnumList), - queryParamsMapOfStringList: queryParamsMapOfStringList == null - ? null - : _i4.BuiltListMultimap(queryParamsMapOfStringList), + queryIntegerEnumList: + queryIntegerEnumList == null + ? null + : _i4.BuiltList(queryIntegerEnumList), + queryParamsMapOfStringList: + queryParamsMapOfStringList == null + ? null + : _i4.BuiltListMultimap(queryParamsMapOfStringList), ); } - factory AllQueryStringTypesInput.build( - [void Function(AllQueryStringTypesInputBuilder) updates]) = - _$AllQueryStringTypesInput; + factory AllQueryStringTypesInput.build([ + void Function(AllQueryStringTypesInputBuilder) updates, + ]) = _$AllQueryStringTypesInput; const AllQueryStringTypesInput._(); @@ -93,101 +95,122 @@ abstract class AllQueryStringTypesInput AllQueryStringTypesInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - AllQueryStringTypesInput.build((b) { - if (request.queryParameters['String'] != null) { - b.queryString = request.queryParameters['String']!; - } - if (request.queryParameters['StringList'] != null) { - b.queryStringList.addAll(_i1 - .parseHeader(request.queryParameters['StringList']!) - .map((el) => el.trim())); - } - if (request.queryParameters['StringSet'] != null) { - b.queryStringSet.addAll(_i1 - .parseHeader(request.queryParameters['StringSet']!) - .map((el) => el.trim())); - } - if (request.queryParameters['Byte'] != null) { - b.queryByte = int.parse(request.queryParameters['Byte']!); - } - if (request.queryParameters['Short'] != null) { - b.queryShort = int.parse(request.queryParameters['Short']!); - } - if (request.queryParameters['Integer'] != null) { - b.queryInteger = int.parse(request.queryParameters['Integer']!); - } - if (request.queryParameters['IntegerList'] != null) { - b.queryIntegerList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['IntegerSet'] != null) { - b.queryIntegerSet.addAll(_i1 - .parseHeader(request.queryParameters['IntegerSet']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['Long'] != null) { - b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); - } - if (request.queryParameters['Float'] != null) { - b.queryFloat = double.parse(request.queryParameters['Float']!); - } - if (request.queryParameters['Double'] != null) { - b.queryDouble = double.parse(request.queryParameters['Double']!); - } - if (request.queryParameters['DoubleList'] != null) { - b.queryDoubleList.addAll(_i1 - .parseHeader(request.queryParameters['DoubleList']!) - .map((el) => double.parse(el.trim()))); - } - if (request.queryParameters['Boolean'] != null) { - b.queryBoolean = request.queryParameters['Boolean']! == 'true'; - } - if (request.queryParameters['BooleanList'] != null) { - b.queryBooleanList.addAll(_i1 - .parseHeader(request.queryParameters['BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.queryParameters['Timestamp'] != null) { - b.queryTimestamp = _i1.Timestamp.parse( + }) => AllQueryStringTypesInput.build((b) { + if (request.queryParameters['String'] != null) { + b.queryString = request.queryParameters['String']!; + } + if (request.queryParameters['StringList'] != null) { + b.queryStringList.addAll( + _i1 + .parseHeader(request.queryParameters['StringList']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['StringSet'] != null) { + b.queryStringSet.addAll( + _i1 + .parseHeader(request.queryParameters['StringSet']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['Byte'] != null) { + b.queryByte = int.parse(request.queryParameters['Byte']!); + } + if (request.queryParameters['Short'] != null) { + b.queryShort = int.parse(request.queryParameters['Short']!); + } + if (request.queryParameters['Integer'] != null) { + b.queryInteger = int.parse(request.queryParameters['Integer']!); + } + if (request.queryParameters['IntegerList'] != null) { + b.queryIntegerList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['IntegerSet'] != null) { + b.queryIntegerSet.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerSet']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['Long'] != null) { + b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); + } + if (request.queryParameters['Float'] != null) { + b.queryFloat = double.parse(request.queryParameters['Float']!); + } + if (request.queryParameters['Double'] != null) { + b.queryDouble = double.parse(request.queryParameters['Double']!); + } + if (request.queryParameters['DoubleList'] != null) { + b.queryDoubleList.addAll( + _i1 + .parseHeader(request.queryParameters['DoubleList']!) + .map((el) => double.parse(el.trim())), + ); + } + if (request.queryParameters['Boolean'] != null) { + b.queryBoolean = request.queryParameters['Boolean']! == 'true'; + } + if (request.queryParameters['BooleanList'] != null) { + b.queryBooleanList.addAll( + _i1 + .parseHeader(request.queryParameters['BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.queryParameters['Timestamp'] != null) { + b.queryTimestamp = + _i1.Timestamp.parse( request.queryParameters['Timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.queryParameters['TimestampList'] != null) { - b.queryTimestampList.addAll(_i1 - .parseHeader( - request.queryParameters['TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + } + if (request.queryParameters['TimestampList'] != null) { + b.queryTimestampList.addAll( + _i1 + .parseHeader( + request.queryParameters['TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.queryParameters['Enum'] != null) { - b.queryEnum = - FooEnum.values.byValue(request.queryParameters['Enum']!); - } - if (request.queryParameters['EnumList'] != null) { - b.queryEnumList.addAll(_i1 - .parseHeader(request.queryParameters['EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.queryParameters['IntegerEnum'] != null) { - b.queryIntegerEnum = IntegerEnum.values - .byValue(int.parse(request.queryParameters['IntegerEnum']!)); - } - if (request.queryParameters['IntegerEnumList'] != null) { - b.queryIntegerEnumList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerEnumList']!) - .map((el) => IntegerEnum.values.byValue(int.parse(el.trim())))); - } - }); + ).asDateTime, + ), + ); + } + if (request.queryParameters['Enum'] != null) { + b.queryEnum = FooEnum.values.byValue(request.queryParameters['Enum']!); + } + if (request.queryParameters['EnumList'] != null) { + b.queryEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.queryParameters['IntegerEnum'] != null) { + b.queryIntegerEnum = IntegerEnum.values.byValue( + int.parse(request.queryParameters['IntegerEnum']!), + ); + } + if (request.queryParameters['IntegerEnumList'] != null) { + b.queryIntegerEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerEnumList']!) + .map((el) => IntegerEnum.values.byValue(int.parse(el.trim()))), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [AllQueryStringTypesInputRestJson1Serializer()]; + serializers = [AllQueryStringTypesInputRestJson1Serializer()]; String? get queryString; _i4.BuiltList? get queryStringList; @@ -216,131 +239,70 @@ abstract class AllQueryStringTypesInput @override List get props => [ - queryString, - queryStringList, - queryStringSet, - queryByte, - queryShort, - queryInteger, - queryIntegerList, - queryIntegerSet, - queryLong, - queryFloat, - queryDouble, - queryDoubleList, - queryBoolean, - queryBooleanList, - queryTimestamp, - queryTimestampList, - queryEnum, - queryEnumList, - queryIntegerEnum, - queryIntegerEnumList, - queryParamsMapOfStringList, - ]; + queryString, + queryStringList, + queryStringSet, + queryByte, + queryShort, + queryInteger, + queryIntegerList, + queryIntegerSet, + queryLong, + queryFloat, + queryDouble, + queryDoubleList, + queryBoolean, + queryBooleanList, + queryTimestamp, + queryTimestampList, + queryEnum, + queryEnumList, + queryIntegerEnum, + queryIntegerEnumList, + queryParamsMapOfStringList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('AllQueryStringTypesInput') - ..add( - 'queryString', - queryString, - ) - ..add( - 'queryStringList', - queryStringList, - ) - ..add( - 'queryStringSet', - queryStringSet, - ) - ..add( - 'queryByte', - queryByte, - ) - ..add( - 'queryShort', - queryShort, - ) - ..add( - 'queryInteger', - queryInteger, - ) - ..add( - 'queryIntegerList', - queryIntegerList, - ) - ..add( - 'queryIntegerSet', - queryIntegerSet, - ) - ..add( - 'queryLong', - queryLong, - ) - ..add( - 'queryFloat', - queryFloat, - ) - ..add( - 'queryDouble', - queryDouble, - ) - ..add( - 'queryDoubleList', - queryDoubleList, - ) - ..add( - 'queryBoolean', - queryBoolean, - ) - ..add( - 'queryBooleanList', - queryBooleanList, - ) - ..add( - 'queryTimestamp', - queryTimestamp, - ) - ..add( - 'queryTimestampList', - queryTimestampList, - ) - ..add( - 'queryEnum', - queryEnum, - ) - ..add( - 'queryEnumList', - queryEnumList, - ) - ..add( - 'queryIntegerEnum', - queryIntegerEnum, - ) - ..add( - 'queryIntegerEnumList', - queryIntegerEnumList, - ) - ..add( - 'queryParamsMapOfStringList', - queryParamsMapOfStringList, - ); + final helper = + newBuiltValueToStringHelper('AllQueryStringTypesInput') + ..add('queryString', queryString) + ..add('queryStringList', queryStringList) + ..add('queryStringSet', queryStringSet) + ..add('queryByte', queryByte) + ..add('queryShort', queryShort) + ..add('queryInteger', queryInteger) + ..add('queryIntegerList', queryIntegerList) + ..add('queryIntegerSet', queryIntegerSet) + ..add('queryLong', queryLong) + ..add('queryFloat', queryFloat) + ..add('queryDouble', queryDouble) + ..add('queryDoubleList', queryDoubleList) + ..add('queryBoolean', queryBoolean) + ..add('queryBooleanList', queryBooleanList) + ..add('queryTimestamp', queryTimestamp) + ..add('queryTimestampList', queryTimestampList) + ..add('queryEnum', queryEnum) + ..add('queryEnumList', queryEnumList) + ..add('queryIntegerEnum', queryIntegerEnum) + ..add('queryIntegerEnumList', queryIntegerEnumList) + ..add('queryParamsMapOfStringList', queryParamsMapOfStringList); return helper.toString(); } } @_i5.internal abstract class AllQueryStringTypesInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + >, _i1.EmptyPayload { - factory AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder) updates]) = - _$AllQueryStringTypesInputPayload; + factory AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ]) = _$AllQueryStringTypesInputPayload; const AllQueryStringTypesInputPayload._(); @@ -349,8 +311,9 @@ abstract class AllQueryStringTypesInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('AllQueryStringTypesInputPayload'); + final helper = newBuiltValueToStringHelper( + 'AllQueryStringTypesInputPayload', + ); return helper.toString(); } } @@ -358,23 +321,20 @@ abstract class AllQueryStringTypesInputPayload class AllQueryStringTypesInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const AllQueryStringTypesInputRestJson1Serializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [ - AllQueryStringTypesInput, - _$AllQueryStringTypesInput, - AllQueryStringTypesInputPayload, - _$AllQueryStringTypesInputPayload, - ]; + AllQueryStringTypesInput, + _$AllQueryStringTypesInput, + AllQueryStringTypesInputPayload, + _$AllQueryStringTypesInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AllQueryStringTypesInputPayload deserialize( @@ -390,6 +350,5 @@ class AllQueryStringTypesInputRestJson1Serializer Serializers serializers, AllQueryStringTypesInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart index 081ab28323..c29ac5f828 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/all_query_string_types_input.g.dart @@ -50,38 +50,38 @@ class _$AllQueryStringTypesInput extends AllQueryStringTypesInput { @override final _i4.BuiltListMultimap? queryParamsMapOfStringList; - factory _$AllQueryStringTypesInput( - [void Function(AllQueryStringTypesInputBuilder)? updates]) => - (new AllQueryStringTypesInputBuilder()..update(updates))._build(); - - _$AllQueryStringTypesInput._( - {this.queryString, - this.queryStringList, - this.queryStringSet, - this.queryByte, - this.queryShort, - this.queryInteger, - this.queryIntegerList, - this.queryIntegerSet, - this.queryLong, - this.queryFloat, - this.queryDouble, - this.queryDoubleList, - this.queryBoolean, - this.queryBooleanList, - this.queryTimestamp, - this.queryTimestampList, - this.queryEnum, - this.queryEnumList, - this.queryIntegerEnum, - this.queryIntegerEnumList, - this.queryParamsMapOfStringList}) - : super._(); + factory _$AllQueryStringTypesInput([ + void Function(AllQueryStringTypesInputBuilder)? updates, + ]) => (new AllQueryStringTypesInputBuilder()..update(updates))._build(); + + _$AllQueryStringTypesInput._({ + this.queryString, + this.queryStringList, + this.queryStringSet, + this.queryByte, + this.queryShort, + this.queryInteger, + this.queryIntegerList, + this.queryIntegerSet, + this.queryLong, + this.queryFloat, + this.queryDouble, + this.queryDoubleList, + this.queryBoolean, + this.queryBooleanList, + this.queryTimestamp, + this.queryTimestampList, + this.queryEnum, + this.queryEnumList, + this.queryIntegerEnum, + this.queryIntegerEnumList, + this.queryParamsMapOfStringList, + }) : super._(); @override AllQueryStringTypesInput rebuild( - void Function(AllQueryStringTypesInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputBuilder toBuilder() => @@ -246,17 +246,16 @@ class AllQueryStringTypesInputBuilder _i4.ListBuilder get queryIntegerEnumList => _$this._queryIntegerEnumList ??= new _i4.ListBuilder(); set queryIntegerEnumList( - _i4.ListBuilder? queryIntegerEnumList) => - _$this._queryIntegerEnumList = queryIntegerEnumList; + _i4.ListBuilder? queryIntegerEnumList, + ) => _$this._queryIntegerEnumList = queryIntegerEnumList; _i4.ListMultimapBuilder? _queryParamsMapOfStringList; _i4.ListMultimapBuilder get queryParamsMapOfStringList => _$this._queryParamsMapOfStringList ??= new _i4.ListMultimapBuilder(); set queryParamsMapOfStringList( - _i4.ListMultimapBuilder? - queryParamsMapOfStringList) => - _$this._queryParamsMapOfStringList = queryParamsMapOfStringList; + _i4.ListMultimapBuilder? queryParamsMapOfStringList, + ) => _$this._queryParamsMapOfStringList = queryParamsMapOfStringList; AllQueryStringTypesInputBuilder(); @@ -306,29 +305,31 @@ class AllQueryStringTypesInputBuilder _$AllQueryStringTypesInput _build() { _$AllQueryStringTypesInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AllQueryStringTypesInput._( - queryString: queryString, - queryStringList: _queryStringList?.build(), - queryStringSet: _queryStringSet?.build(), - queryByte: queryByte, - queryShort: queryShort, - queryInteger: queryInteger, - queryIntegerList: _queryIntegerList?.build(), - queryIntegerSet: _queryIntegerSet?.build(), - queryLong: queryLong, - queryFloat: queryFloat, - queryDouble: queryDouble, - queryDoubleList: _queryDoubleList?.build(), - queryBoolean: queryBoolean, - queryBooleanList: _queryBooleanList?.build(), - queryTimestamp: queryTimestamp, - queryTimestampList: _queryTimestampList?.build(), - queryEnum: queryEnum, - queryEnumList: _queryEnumList?.build(), - queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: _queryIntegerEnumList?.build(), - queryParamsMapOfStringList: _queryParamsMapOfStringList?.build()); + queryString: queryString, + queryStringList: _queryStringList?.build(), + queryStringSet: _queryStringSet?.build(), + queryByte: queryByte, + queryShort: queryShort, + queryInteger: queryInteger, + queryIntegerList: _queryIntegerList?.build(), + queryIntegerSet: _queryIntegerSet?.build(), + queryLong: queryLong, + queryFloat: queryFloat, + queryDouble: queryDouble, + queryDoubleList: _queryDoubleList?.build(), + queryBoolean: queryBoolean, + queryBooleanList: _queryBooleanList?.build(), + queryTimestamp: queryTimestamp, + queryTimestampList: _queryTimestampList?.build(), + queryEnum: queryEnum, + queryEnumList: _queryEnumList?.build(), + queryIntegerEnum: queryIntegerEnum, + queryIntegerEnumList: _queryIntegerEnumList?.build(), + queryParamsMapOfStringList: _queryParamsMapOfStringList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -360,7 +361,10 @@ class AllQueryStringTypesInputBuilder _queryParamsMapOfStringList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AllQueryStringTypesInput', _$failedField, e.toString()); + r'AllQueryStringTypesInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -371,16 +375,17 @@ class AllQueryStringTypesInputBuilder class _$AllQueryStringTypesInputPayload extends AllQueryStringTypesInputPayload { - factory _$AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder)? updates]) => + factory _$AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder)? updates, + ]) => (new AllQueryStringTypesInputPayloadBuilder()..update(updates))._build(); _$AllQueryStringTypesInputPayload._() : super._(); @override AllQueryStringTypesInputPayload rebuild( - void Function(AllQueryStringTypesInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputPayloadBuilder toBuilder() => @@ -400,8 +405,10 @@ class _$AllQueryStringTypesInputPayload class AllQueryStringTypesInputPayloadBuilder implements - Builder { + Builder< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + > { _$AllQueryStringTypesInputPayload? _$v; AllQueryStringTypesInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.dart index 20d8cd954b..8c4550c66c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.dart index 53f04108b0..ee6f4fd342 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.dart index 4ce59e4522..8969cd8828 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -25,11 +25,7 @@ abstract class ComplexError String? topLevel, ComplexNestedErrorData? nested, }) { - return _$ComplexError._( - header: header, - topLevel: topLevel, - nested: nested, - ); + return _$ComplexError._(header: header, topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -42,20 +38,19 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexErrorPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ComplexError.build((b) { - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.topLevel = payload.topLevel; - if (response.headers['X-Header'] != null) { - b.header = response.headers['X-Header']!; - } - b.headers = response.headers; - }); + ) => ComplexError.build((b) { + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.topLevel = payload.topLevel; + if (response.headers['X-Header'] != null) { + b.header = response.headers['X-Header']!; + } + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorRestJson1Serializer() + ComplexErrorRestJson1Serializer(), ]; String? get header; @@ -63,17 +58,17 @@ abstract class ComplexError ComplexNestedErrorData? get nested; @override ComplexErrorPayload getPayload() => ComplexErrorPayload((b) { - if (nested != null) { - b.nested.replace(nested!); - } - b.topLevel = topLevel; - }); + if (nested != null) { + b.nested.replace(nested!); + } + b.topLevel = topLevel; + }); @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.restjson', + shape: 'ComplexError', + ); @override String? get message => null; @@ -92,27 +87,15 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - header, - topLevel, - nested, - ]; + List get props => [header, topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'header', - header, - ) - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('header', header) + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -121,31 +104,23 @@ abstract class ComplexError abstract class ComplexErrorPayload with _i1.AWSEquatable implements Built { - factory ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder) updates]) = - _$ComplexErrorPayload; + factory ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder) updates, + ]) = _$ComplexErrorPayload; const ComplexErrorPayload._(); ComplexNestedErrorData? get nested; String? get topLevel; @override - List get props => [ - nested, - topLevel, - ]; + List get props => [nested, topLevel]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexErrorPayload') - ..add( - 'nested', - nested, - ) - ..add( - 'topLevel', - topLevel, - ); + final helper = + newBuiltValueToStringHelper('ComplexErrorPayload') + ..add('nested', nested) + ..add('topLevel', topLevel); return helper.toString(); } } @@ -156,19 +131,16 @@ class ComplexErrorRestJson1Serializer @override Iterable get types => const [ - ComplexError, - _$ComplexError, - ComplexErrorPayload, - _$ComplexErrorPayload, - ]; + ComplexError, + _$ComplexError, + ComplexErrorPayload, + _$ComplexErrorPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexErrorPayload deserialize( @@ -187,15 +159,20 @@ class ComplexErrorRestJson1Serializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -213,18 +190,22 @@ class ComplexErrorRestJson1Serializer if (nested != null) { result$ ..add('Nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } if (topLevel != null) { result$ ..add('TopLevel') - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart index 46d3a12ed9..835defabfe 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.header, this.topLevel, this.nested, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -101,12 +101,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - header: header, - topLevel: topLevel, - nested: _nested?.build(), - headers: headers); + header: header, + topLevel: topLevel, + nested: _nested?.build(), + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -114,7 +116,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } @@ -129,16 +134,16 @@ class _$ComplexErrorPayload extends ComplexErrorPayload { @override final String? topLevel; - factory _$ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder)? updates]) => - (new ComplexErrorPayloadBuilder()..update(updates))._build(); + factory _$ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder)? updates, + ]) => (new ComplexErrorPayloadBuilder()..update(updates))._build(); _$ComplexErrorPayload._({this.nested, this.topLevel}) : super._(); @override ComplexErrorPayload rebuild( - void Function(ComplexErrorPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexErrorPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexErrorPayloadBuilder toBuilder() => @@ -204,9 +209,12 @@ class ComplexErrorPayloadBuilder _$ComplexErrorPayload _build() { _$ComplexErrorPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexErrorPayload._( - nested: _nested?.build(), topLevel: topLevel); + nested: _nested?.build(), + topLevel: topLevel, + ); } catch (_) { late String _$failedField; try { @@ -214,7 +222,10 @@ class ComplexErrorPayloadBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexErrorPayload', _$failedField, e.toString()); + r'ComplexErrorPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart index f2b50b2a73..29a2f0311f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataRestJson1Serializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataRestJson1Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataRestJson1Serializer } switch (key) { case 'Fooooo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +94,9 @@ class ComplexNestedErrorDataRestJson1Serializer if (foo != null) { result$ ..add('Fooooo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart index cfa8b20803..0120411e48 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.constant_and_variable_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class ConstantAndVariableQueryStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { - factory ConstantAndVariableQueryStringInput({ - String? baz, - String? maybeSet, - }) { + factory ConstantAndVariableQueryStringInput({String? baz, String? maybeSet}) { return _$ConstantAndVariableQueryStringInput._( baz: baz, maybeSet: maybeSet, ); } - factory ConstantAndVariableQueryStringInput.build( - [void Function(ConstantAndVariableQueryStringInputBuilder) updates]) = - _$ConstantAndVariableQueryStringInput; + factory ConstantAndVariableQueryStringInput.build([ + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInput; const ConstantAndVariableQueryStringInput._(); @@ -40,19 +39,19 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantAndVariableQueryStringInput.build((b) { - if (request.queryParameters['baz'] != null) { - b.baz = request.queryParameters['baz']!; - } - if (request.queryParameters['maybeSet'] != null) { - b.maybeSet = request.queryParameters['maybeSet']!; - } - }); + }) => ConstantAndVariableQueryStringInput.build((b) { + if (request.queryParameters['baz'] != null) { + b.baz = request.queryParameters['baz']!; + } + if (request.queryParameters['maybeSet'] != null) { + b.maybeSet = request.queryParameters['maybeSet']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [ConstantAndVariableQueryStringInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [ConstantAndVariableQueryStringInputRestJson1Serializer()]; String? get baz; String? get maybeSet; @@ -61,38 +60,30 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload(); @override - List get props => [ - baz, - maybeSet, - ]; + List get props => [baz, maybeSet]; @override String toString() { final helper = newBuiltValueToStringHelper('ConstantAndVariableQueryStringInput') - ..add( - 'baz', - baz, - ) - ..add( - 'maybeSet', - maybeSet, - ); + ..add('baz', baz) + ..add('maybeSet', maybeSet); return helper.toString(); } } @_i3.internal abstract class ConstantAndVariableQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates]) = _$ConstantAndVariableQueryStringInputPayload; + factory ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInputPayload; const ConstantAndVariableQueryStringInputPayload._(); @@ -102,31 +93,32 @@ abstract class ConstantAndVariableQueryStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'ConstantAndVariableQueryStringInputPayload'); + 'ConstantAndVariableQueryStringInputPayload', + ); return helper.toString(); } } -class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + ConstantAndVariableQueryStringInputPayload + > { const ConstantAndVariableQueryStringInputRestJson1Serializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ - ConstantAndVariableQueryStringInput, - _$ConstantAndVariableQueryStringInput, - ConstantAndVariableQueryStringInputPayload, - _$ConstantAndVariableQueryStringInputPayload, - ]; + ConstantAndVariableQueryStringInput, + _$ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputPayload, + _$ConstantAndVariableQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantAndVariableQueryStringInputPayload deserialize( @@ -142,6 +134,5 @@ class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i1 Serializers serializers, ConstantAndVariableQueryStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart index 935bf6bdfc..addd673aba 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_and_variable_query_string_input.g.dart @@ -13,19 +13,19 @@ class _$ConstantAndVariableQueryStringInput @override final String? maybeSet; - factory _$ConstantAndVariableQueryStringInput( - [void Function(ConstantAndVariableQueryStringInputBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInput([ + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputBuilder()..update(updates)) ._build(); _$ConstantAndVariableQueryStringInput._({this.baz, this.maybeSet}) - : super._(); + : super._(); @override ConstantAndVariableQueryStringInput rebuild( - void Function(ConstantAndVariableQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$ConstantAndVariableQueryStringInput class ConstantAndVariableQueryStringInputBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + > { _$ConstantAndVariableQueryStringInput? _$v; String? _baz; @@ -83,7 +85,8 @@ class ConstantAndVariableQueryStringInputBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputBuilder)? updates) { + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class ConstantAndVariableQueryStringInputBuilder ConstantAndVariableQueryStringInput build() => _build(); _$ConstantAndVariableQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantAndVariableQueryStringInput._( - baz: baz, maybeSet: maybeSet); + baz: baz, + maybeSet: maybeSet, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class ConstantAndVariableQueryStringInputBuilder class _$ConstantAndVariableQueryStringInputPayload extends ConstantAndVariableQueryStringInputPayload { - factory _$ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$ConstantAndVariableQueryStringInputPayload @override ConstantAndVariableQueryStringInputPayload rebuild( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$ConstantAndVariableQueryStringInputPayload class ConstantAndVariableQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + > { _$ConstantAndVariableQueryStringInputPayload? _$v; ConstantAndVariableQueryStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class ConstantAndVariableQueryStringInputPayloadBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates) { + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart index acb10d1149..3b55266540 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.constant_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class ConstantQueryStringInput return _$ConstantQueryStringInput._(hello: hello); } - factory ConstantQueryStringInput.build( - [void Function(ConstantQueryStringInputBuilder) updates]) = - _$ConstantQueryStringInput; + factory ConstantQueryStringInput.build([ + void Function(ConstantQueryStringInputBuilder) updates, + ]) = _$ConstantQueryStringInput; const ConstantQueryStringInput._(); @@ -33,15 +33,14 @@ abstract class ConstantQueryStringInput ConstantQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantQueryStringInput.build((b) { - if (labels['hello'] != null) { - b.hello = labels['hello']!; - } - }); + }) => ConstantQueryStringInput.build((b) { + if (labels['hello'] != null) { + b.hello = labels['hello']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ConstantQueryStringInputRestJson1Serializer()]; + serializers = [ConstantQueryStringInputRestJson1Serializer()]; String get hello; @override @@ -50,10 +49,7 @@ abstract class ConstantQueryStringInput case 'hello': return hello; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -66,25 +62,23 @@ abstract class ConstantQueryStringInput @override String toString() { final helper = newBuiltValueToStringHelper('ConstantQueryStringInput') - ..add( - 'hello', - hello, - ); + ..add('hello', hello); return helper.toString(); } } @_i3.internal abstract class ConstantQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder) updates]) = - _$ConstantQueryStringInputPayload; + factory ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantQueryStringInputPayload; const ConstantQueryStringInputPayload._(); @@ -93,8 +87,9 @@ abstract class ConstantQueryStringInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('ConstantQueryStringInputPayload'); + final helper = newBuiltValueToStringHelper( + 'ConstantQueryStringInputPayload', + ); return helper.toString(); } } @@ -102,23 +97,20 @@ abstract class ConstantQueryStringInputPayload class ConstantQueryStringInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const ConstantQueryStringInputRestJson1Serializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ - ConstantQueryStringInput, - _$ConstantQueryStringInput, - ConstantQueryStringInputPayload, - _$ConstantQueryStringInputPayload, - ]; + ConstantQueryStringInput, + _$ConstantQueryStringInput, + ConstantQueryStringInputPayload, + _$ConstantQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantQueryStringInputPayload deserialize( @@ -134,6 +126,5 @@ class ConstantQueryStringInputRestJson1Serializer Serializers serializers, ConstantQueryStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart index b8d7dc6f8b..69522d2b0a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/constant_query_string_input.g.dart @@ -10,19 +10,22 @@ class _$ConstantQueryStringInput extends ConstantQueryStringInput { @override final String hello; - factory _$ConstantQueryStringInput( - [void Function(ConstantQueryStringInputBuilder)? updates]) => - (new ConstantQueryStringInputBuilder()..update(updates))._build(); + factory _$ConstantQueryStringInput([ + void Function(ConstantQueryStringInputBuilder)? updates, + ]) => (new ConstantQueryStringInputBuilder()..update(updates))._build(); _$ConstantQueryStringInput._({required this.hello}) : super._() { BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello'); + hello, + r'ConstantQueryStringInput', + 'hello', + ); } @override ConstantQueryStringInput rebuild( - void Function(ConstantQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputBuilder toBuilder() => @@ -78,10 +81,15 @@ class ConstantQueryStringInputBuilder ConstantQueryStringInput build() => _build(); _$ConstantQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantQueryStringInput._( - hello: BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello')); + hello: BuiltValueNullFieldError.checkNotNull( + hello, + r'ConstantQueryStringInput', + 'hello', + ), + ); replace(_$result); return _$result; } @@ -89,16 +97,17 @@ class ConstantQueryStringInputBuilder class _$ConstantQueryStringInputPayload extends ConstantQueryStringInputPayload { - factory _$ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder)? updates]) => + factory _$ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantQueryStringInputPayloadBuilder()..update(updates))._build(); _$ConstantQueryStringInputPayload._() : super._(); @override ConstantQueryStringInputPayload rebuild( - void Function(ConstantQueryStringInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputPayloadBuilder toBuilder() => @@ -118,8 +127,10 @@ class _$ConstantQueryStringInputPayload class ConstantQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + > { _$ConstantQueryStringInputPayload? _$v; ConstantQueryStringInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart index ca245808a9..9b931e9e7d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputRestJson1Serializer() + DatetimeOffsetsOutputRestJson1Serializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputRestJson1Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -106,10 +99,9 @@ class DatetimeOffsetsOutputRestJson1Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart index be4bf990eb..572c024318 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.document_type_as_payload_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,18 +16,21 @@ abstract class DocumentTypeAsPayloadInputOutput _i1.HttpInput<_i2.JsonObject>, _i3.AWSEquatable implements - Built, + Built< + DocumentTypeAsPayloadInputOutput, + DocumentTypeAsPayloadInputOutputBuilder + >, _i1.HasPayload<_i2.JsonObject> { factory DocumentTypeAsPayloadInputOutput({Object? documentValue}) { return _$DocumentTypeAsPayloadInputOutput._( - documentValue: - documentValue == null ? null : _i2.JsonObject(documentValue)); + documentValue: + documentValue == null ? null : _i2.JsonObject(documentValue), + ); } - factory DocumentTypeAsPayloadInputOutput.build( - [void Function(DocumentTypeAsPayloadInputOutputBuilder) updates]) = - _$DocumentTypeAsPayloadInputOutput; + factory DocumentTypeAsPayloadInputOutput.build([ + void Function(DocumentTypeAsPayloadInputOutputBuilder) updates, + ]) = _$DocumentTypeAsPayloadInputOutput; const DocumentTypeAsPayloadInputOutput._(); @@ -35,22 +38,20 @@ abstract class DocumentTypeAsPayloadInputOutput _i2.JsonObject? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - DocumentTypeAsPayloadInputOutput.build((b) { - b.documentValue = payload; - }); + }) => DocumentTypeAsPayloadInputOutput.build((b) { + b.documentValue = payload; + }); /// Constructs a [DocumentTypeAsPayloadInputOutput] from a [payload] and [response]. factory DocumentTypeAsPayloadInputOutput.fromResponse( _i2.JsonObject? payload, _i3.AWSBaseHttpResponse response, - ) => - DocumentTypeAsPayloadInputOutput.build((b) { - b.documentValue = payload; - }); + ) => DocumentTypeAsPayloadInputOutput.build((b) { + b.documentValue = payload; + }); static const List<_i1.SmithySerializer<_i2.JsonObject?>> serializers = [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), ]; _i2.JsonObject? get documentValue; @@ -62,12 +63,9 @@ abstract class DocumentTypeAsPayloadInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('DocumentTypeAsPayloadInputOutput') - ..add( - 'documentValue', - documentValue, - ); + final helper = newBuiltValueToStringHelper( + 'DocumentTypeAsPayloadInputOutput', + )..add('documentValue', documentValue); return helper.toString(); } } @@ -75,21 +73,18 @@ abstract class DocumentTypeAsPayloadInputOutput class DocumentTypeAsPayloadInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.JsonObject> { const DocumentTypeAsPayloadInputOutputRestJson1Serializer() - : super('DocumentTypeAsPayloadInputOutput'); + : super('DocumentTypeAsPayloadInputOutput'); @override Iterable get types => const [ - DocumentTypeAsPayloadInputOutput, - _$DocumentTypeAsPayloadInputOutput, - ]; + DocumentTypeAsPayloadInputOutput, + _$DocumentTypeAsPayloadInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.JsonObject deserialize( @@ -98,9 +93,10 @@ class DocumentTypeAsPayloadInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.JsonObject), - ) as _i2.JsonObject); + serialized, + specifiedType: const FullType(_i2.JsonObject), + ) + as _i2.JsonObject); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart index 3074882bc4..e3a40f1015 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_as_payload_input_output.g.dart @@ -11,16 +11,17 @@ class _$DocumentTypeAsPayloadInputOutput @override final _i2.JsonObject? documentValue; - factory _$DocumentTypeAsPayloadInputOutput( - [void Function(DocumentTypeAsPayloadInputOutputBuilder)? updates]) => + factory _$DocumentTypeAsPayloadInputOutput([ + void Function(DocumentTypeAsPayloadInputOutputBuilder)? updates, + ]) => (new DocumentTypeAsPayloadInputOutputBuilder()..update(updates))._build(); _$DocumentTypeAsPayloadInputOutput._({this.documentValue}) : super._(); @override DocumentTypeAsPayloadInputOutput rebuild( - void Function(DocumentTypeAsPayloadInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DocumentTypeAsPayloadInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DocumentTypeAsPayloadInputOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$DocumentTypeAsPayloadInputOutput class DocumentTypeAsPayloadInputOutputBuilder implements - Builder { + Builder< + DocumentTypeAsPayloadInputOutput, + DocumentTypeAsPayloadInputOutputBuilder + > { _$DocumentTypeAsPayloadInputOutput? _$v; _i2.JsonObject? _documentValue; @@ -79,7 +82,8 @@ class DocumentTypeAsPayloadInputOutputBuilder DocumentTypeAsPayloadInputOutput build() => _build(); _$DocumentTypeAsPayloadInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DocumentTypeAsPayloadInputOutput._(documentValue: documentValue); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart index e9b82a3878..d03a90946e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.document_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,9 +27,9 @@ abstract class DocumentTypeInputOutput ); } - factory DocumentTypeInputOutput.build( - [void Function(DocumentTypeInputOutputBuilder) updates]) = - _$DocumentTypeInputOutput; + factory DocumentTypeInputOutput.build([ + void Function(DocumentTypeInputOutputBuilder) updates, + ]) = _$DocumentTypeInputOutput; const DocumentTypeInputOutput._(); @@ -37,15 +37,13 @@ abstract class DocumentTypeInputOutput DocumentTypeInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [DocumentTypeInputOutput] from a [payload] and [response]. factory DocumentTypeInputOutput.fromResponse( DocumentTypeInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [DocumentTypeInputOutputRestJson1Serializer()]; @@ -56,22 +54,14 @@ abstract class DocumentTypeInputOutput DocumentTypeInputOutput getPayload() => this; @override - List get props => [ - stringValue, - documentValue, - ]; + List get props => [stringValue, documentValue]; @override String toString() { - final helper = newBuiltValueToStringHelper('DocumentTypeInputOutput') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'documentValue', - documentValue, - ); + final helper = + newBuiltValueToStringHelper('DocumentTypeInputOutput') + ..add('stringValue', stringValue) + ..add('documentValue', documentValue); return helper.toString(); } } @@ -79,21 +69,18 @@ abstract class DocumentTypeInputOutput class DocumentTypeInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const DocumentTypeInputOutputRestJson1Serializer() - : super('DocumentTypeInputOutput'); + : super('DocumentTypeInputOutput'); @override Iterable get types => const [ - DocumentTypeInputOutput, - _$DocumentTypeInputOutput, - ]; + DocumentTypeInputOutput, + _$DocumentTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DocumentTypeInputOutput deserialize( @@ -112,15 +99,19 @@ class DocumentTypeInputOutputRestJson1Serializer } switch (key) { case 'documentValue': - result.documentValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.JsonObject), - ) as _i3.JsonObject); + result.documentValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.JsonObject), + ) + as _i3.JsonObject); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -138,18 +129,22 @@ class DocumentTypeInputOutputRestJson1Serializer if (documentValue != null) { result$ ..add('documentValue') - ..add(serializers.serialize( - documentValue, - specifiedType: const FullType(_i3.JsonObject), - )); + ..add( + serializers.serialize( + documentValue, + specifiedType: const FullType(_i3.JsonObject), + ), + ); } if (stringValue != null) { result$ ..add('stringValue') - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart index 1a17c427ff..b6fe1a2c2b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/document_type_input_output.g.dart @@ -12,17 +12,17 @@ class _$DocumentTypeInputOutput extends DocumentTypeInputOutput { @override final _i3.JsonObject? documentValue; - factory _$DocumentTypeInputOutput( - [void Function(DocumentTypeInputOutputBuilder)? updates]) => - (new DocumentTypeInputOutputBuilder()..update(updates))._build(); + factory _$DocumentTypeInputOutput([ + void Function(DocumentTypeInputOutputBuilder)? updates, + ]) => (new DocumentTypeInputOutputBuilder()..update(updates))._build(); _$DocumentTypeInputOutput._({this.stringValue, this.documentValue}) - : super._(); + : super._(); @override DocumentTypeInputOutput rebuild( - void Function(DocumentTypeInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DocumentTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DocumentTypeInputOutputBuilder toBuilder() => @@ -87,9 +87,12 @@ class DocumentTypeInputOutputBuilder DocumentTypeInputOutput build() => _build(); _$DocumentTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DocumentTypeInputOutput._( - stringValue: stringValue, documentValue: documentValue); + stringValue: stringValue, + documentValue: documentValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart index 6de1cf6d3c..34ef57ebaa 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputRestJson1Serializer()]; + serializers = [EmptyInputAndEmptyOutputInputRestJson1Serializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -84,6 +82,5 @@ class EmptyInputAndEmptyOutputInputRestJson1Serializer Serializers serializers, EmptyInputAndEmptyOutputInput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart index 218ec1ad6d..0cdc33a2ce 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputRestJson1Serializer()]; + serializers = [EmptyInputAndEmptyOutputOutputRestJson1Serializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -81,6 +79,5 @@ class EmptyInputAndEmptyOutputOutputRestJson1Serializer Serializers serializers, EmptyInputAndEmptyOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart index da3c464d46..9cd6014892 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.enum_payload_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,8 +20,9 @@ abstract class EnumPayloadInput return _$EnumPayloadInput._(payload: payload); } - factory EnumPayloadInput.build( - [void Function(EnumPayloadInputBuilder) updates]) = _$EnumPayloadInput; + factory EnumPayloadInput.build([ + void Function(EnumPayloadInputBuilder) updates, + ]) = _$EnumPayloadInput; const EnumPayloadInput._(); @@ -29,22 +30,20 @@ abstract class EnumPayloadInput StringEnum? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - EnumPayloadInput.build((b) { - b.payload = payload; - }); + }) => EnumPayloadInput.build((b) { + b.payload = payload; + }); /// Constructs a [EnumPayloadInput] from a [payload] and [response]. factory EnumPayloadInput.fromResponse( StringEnum? payload, _i2.AWSBaseHttpResponse response, - ) => - EnumPayloadInput.build((b) { - b.payload = payload; - }); + ) => EnumPayloadInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer> serializers = [ - EnumPayloadInputRestJson1Serializer() + EnumPayloadInputRestJson1Serializer(), ]; StringEnum? get payload; @@ -57,10 +56,7 @@ abstract class EnumPayloadInput @override String toString() { final helper = newBuiltValueToStringHelper('EnumPayloadInput') - ..add( - 'payload', - payload, - ); + ..add('payload', payload); return helper.toString(); } } @@ -70,18 +66,12 @@ class EnumPayloadInputRestJson1Serializer const EnumPayloadInputRestJson1Serializer() : super('EnumPayloadInput'); @override - Iterable get types => const [ - EnumPayloadInput, - _$EnumPayloadInput, - ]; + Iterable get types => const [EnumPayloadInput, _$EnumPayloadInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StringEnum deserialize( @@ -90,9 +80,10 @@ class EnumPayloadInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(StringEnum), - ) as StringEnum); + serialized, + specifiedType: const FullType(StringEnum), + ) + as StringEnum); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart index ed59d17016..459c49e5f4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/enum_payload_input.g.dart @@ -10,9 +10,9 @@ class _$EnumPayloadInput extends EnumPayloadInput { @override final StringEnum? payload; - factory _$EnumPayloadInput( - [void Function(EnumPayloadInputBuilder)? updates]) => - (new EnumPayloadInputBuilder()..update(updates))._build(); + factory _$EnumPayloadInput([ + void Function(EnumPayloadInputBuilder)? updates, + ]) => (new EnumPayloadInputBuilder()..update(updates))._build(); _$EnumPayloadInput._({this.payload}) : super._(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.dart index 4f23c1f654..03cd478b09 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart index c7fde8623e..e7411f0a86 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart index d6444d1e39..d6342a97d8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_error.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_error.dart index cee100a091..9a1d2f015a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_error.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/foo_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.foo_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -31,20 +31,19 @@ abstract class FooError factory FooError.fromResponse( FooError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - FooErrorRestJson1Serializer() + FooErrorRestJson1Serializer(), ]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'FooError', - ); + namespace: 'aws.protocoltests.restjson', + shape: 'FooError', + ); @override String? get message => null; @@ -77,18 +76,12 @@ class FooErrorRestJson1Serializer const FooErrorRestJson1Serializer() : super('FooError'); @override - Iterable get types => const [ - FooError, - _$FooError, - ]; + Iterable get types => const [FooError, _$FooError]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FooError deserialize( @@ -104,6 +97,5 @@ class FooErrorRestJson1Serializer Serializers serializers, FooError object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart index 7be61f388b..37de2016b9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputRestJson1Serializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputRestJson1Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FractionalSecondsOutput deserialize( @@ -105,10 +98,9 @@ class FractionalSecondsOutputRestJson1Serializer if (datetime != null) { result$ ..add('datetime') - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart index 3fd6c79874..1ff1bc07a0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,18 +26,16 @@ abstract class GreetingStruct GreetingStruct payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [GreetingStruct] from a [payload] and [response]. factory GreetingStruct.fromResponse( GreetingStruct payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - GreetingStructRestJson1Serializer() + GreetingStructRestJson1Serializer(), ]; String? get hi; @@ -49,11 +47,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -63,18 +57,12 @@ class GreetingStructRestJson1Serializer const GreetingStructRestJson1Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingStruct deserialize( @@ -93,10 +81,12 @@ class GreetingStructRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -114,10 +104,7 @@ class GreetingStructRestJson1Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart index a477d68cc4..2371844512 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -31,15 +31,14 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.build((b) { - if (response.headers['X-Greeting'] != null) { - b.greeting = response.headers['X-Greeting']!; - } - }); + ) => GreetingWithErrorsOutput.build((b) { + if (response.headers['X-Greeting'] != null) { + b.greeting = response.headers['X-Greeting']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputRestJson1Serializer()]; + serializers = [GreetingWithErrorsOutputRestJson1Serializer()]; String? get greeting; @override @@ -52,25 +51,23 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @_i3.internal abstract class GreetingWithErrorsOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + >, _i2.EmptyPayload { - factory GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder) updates]) = - _$GreetingWithErrorsOutputPayload; + factory GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ]) = _$GreetingWithErrorsOutputPayload; const GreetingWithErrorsOutputPayload._(); @@ -79,8 +76,9 @@ abstract class GreetingWithErrorsOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('GreetingWithErrorsOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'GreetingWithErrorsOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputRestJson1Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - GreetingWithErrorsOutputPayload, - _$GreetingWithErrorsOutputPayload, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + GreetingWithErrorsOutputPayload, + _$GreetingWithErrorsOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingWithErrorsOutputPayload deserialize( @@ -120,6 +115,5 @@ class GreetingWithErrorsOutputRestJson1Serializer Serializers serializers, GreetingWithErrorsOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart index d5fcb6414c..36833d7d7d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class GreetingWithErrorsOutputBuilder class _$GreetingWithErrorsOutputPayload extends GreetingWithErrorsOutputPayload { - factory _$GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder)? updates]) => + factory _$GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder)? updates, + ]) => (new GreetingWithErrorsOutputPayloadBuilder()..update(updates))._build(); _$GreetingWithErrorsOutputPayload._() : super._(); @override GreetingWithErrorsOutputPayload rebuild( - void Function(GreetingWithErrorsOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputPayloadBuilder implements - Builder { + Builder< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + > { _$GreetingWithErrorsOutputPayload? _$v; GreetingWithErrorsOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart index a69bae733d..89e6e563a6 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputRestJson1Serializer() + HostLabelInputRestJson1Serializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputRestJson1Serializer const HostLabelInputRestJson1Serializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputRestJson1Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,10 +107,7 @@ class HostLabelInputRestJson1Serializer final HostLabelInput(:label) = object; result$.addAll([ 'label', - serializers.serialize( - label, - specifiedType: const FullType(String), - ), + serializers.serialize(label, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart index 60e5385ff8..76802fe022 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_checksum_required_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class HttpChecksumRequiredInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutputBuilder + > { factory HttpChecksumRequiredInputOutput({String? foo}) { return _$HttpChecksumRequiredInputOutput._(foo: foo); } - factory HttpChecksumRequiredInputOutput.build( - [void Function(HttpChecksumRequiredInputOutputBuilder) updates]) = - _$HttpChecksumRequiredInputOutput; + factory HttpChecksumRequiredInputOutput.build([ + void Function(HttpChecksumRequiredInputOutputBuilder) updates, + ]) = _$HttpChecksumRequiredInputOutput; const HttpChecksumRequiredInputOutput._(); @@ -31,18 +33,16 @@ abstract class HttpChecksumRequiredInputOutput HttpChecksumRequiredInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [HttpChecksumRequiredInputOutput] from a [payload] and [response]. factory HttpChecksumRequiredInputOutput.fromResponse( HttpChecksumRequiredInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [HttpChecksumRequiredInputOutputRestJson1Serializer()]; + serializers = [HttpChecksumRequiredInputOutputRestJson1Serializer()]; String? get foo; @override @@ -53,12 +53,9 @@ abstract class HttpChecksumRequiredInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpChecksumRequiredInputOutput') - ..add( - 'foo', - foo, - ); + final helper = newBuiltValueToStringHelper( + 'HttpChecksumRequiredInputOutput', + )..add('foo', foo); return helper.toString(); } } @@ -66,21 +63,18 @@ abstract class HttpChecksumRequiredInputOutput class HttpChecksumRequiredInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpChecksumRequiredInputOutputRestJson1Serializer() - : super('HttpChecksumRequiredInputOutput'); + : super('HttpChecksumRequiredInputOutput'); @override Iterable get types => const [ - HttpChecksumRequiredInputOutput, - _$HttpChecksumRequiredInputOutput, - ]; + HttpChecksumRequiredInputOutput, + _$HttpChecksumRequiredInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumRequiredInputOutput deserialize( @@ -99,10 +93,12 @@ class HttpChecksumRequiredInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -120,10 +116,9 @@ class HttpChecksumRequiredInputOutputRestJson1Serializer if (foo != null) { result$ ..add('foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart index e51aa2e372..d77f96cd04 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_checksum_required_input_output.g.dart @@ -11,16 +11,17 @@ class _$HttpChecksumRequiredInputOutput @override final String? foo; - factory _$HttpChecksumRequiredInputOutput( - [void Function(HttpChecksumRequiredInputOutputBuilder)? updates]) => + factory _$HttpChecksumRequiredInputOutput([ + void Function(HttpChecksumRequiredInputOutputBuilder)? updates, + ]) => (new HttpChecksumRequiredInputOutputBuilder()..update(updates))._build(); _$HttpChecksumRequiredInputOutput._({this.foo}) : super._(); @override HttpChecksumRequiredInputOutput rebuild( - void Function(HttpChecksumRequiredInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpChecksumRequiredInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpChecksumRequiredInputOutputBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$HttpChecksumRequiredInputOutput class HttpChecksumRequiredInputOutputBuilder implements - Builder { + Builder< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutputBuilder + > { _$HttpChecksumRequiredInputOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart index b12cbba2e3..3beed95be1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_payload_traits_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,18 @@ abstract class HttpPayloadTraitsInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { - factory HttpPayloadTraitsInputOutput({ - String? foo, - _i2.Uint8List? blob, - }) { - return _$HttpPayloadTraitsInputOutput._( - foo: foo, - blob: blob, - ); + factory HttpPayloadTraitsInputOutput({String? foo, _i2.Uint8List? blob}) { + return _$HttpPayloadTraitsInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsInputOutput.build( - [void Function(HttpPayloadTraitsInputOutputBuilder) updates]) = - _$HttpPayloadTraitsInputOutput; + factory HttpPayloadTraitsInputOutput.build([ + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsInputOutput; const HttpPayloadTraitsInputOutput._(); @@ -40,28 +36,26 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsInputOutputRestJson1Serializer() + HttpPayloadTraitsInputOutputRestJson1Serializer(), ]; String? get foo; @@ -70,22 +64,14 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + final helper = + newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -93,21 +79,18 @@ abstract class HttpPayloadTraitsInputOutput class HttpPayloadTraitsInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsInputOutput, - _$HttpPayloadTraitsInputOutput, - ]; + HttpPayloadTraitsInputOutput, + _$HttpPayloadTraitsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -116,9 +99,10 @@ class HttpPayloadTraitsInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart index 4b3e90e888..80b78468b7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_input_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsInputOutput( - [void Function(HttpPayloadTraitsInputOutputBuilder)? updates]) => - (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); + factory _$HttpPayloadTraitsInputOutput([ + void Function(HttpPayloadTraitsInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); _$HttpPayloadTraitsInputOutput._({this.foo, this.blob}) : super._(); @override HttpPayloadTraitsInputOutput rebuild( - void Function(HttpPayloadTraitsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { class HttpPayloadTraitsInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + > { _$HttpPayloadTraitsInputOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart index df8b8353ae..38c5ea555e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_payload_traits_with_media_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,21 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpPayloadTraitsWithMediaTypeInputOutput({ String? foo, _i2.Uint8List? blob, }) { - return _$HttpPayloadTraitsWithMediaTypeInputOutput._( - foo: foo, - blob: blob, - ); + return _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsWithMediaTypeInputOutput.build( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; + factory HttpPayloadTraitsWithMediaTypeInputOutput.build([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; const HttpPayloadTraitsWithMediaTypeInputOutput._(); @@ -40,28 +39,26 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsWithMediaTypeInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer(), ]; String? get foo; @@ -70,23 +67,14 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpPayloadTraitsWithMediaTypeInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -94,21 +82,18 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsWithMediaTypeInputOutput, - _$HttpPayloadTraitsWithMediaTypeInputOutput, - ]; + HttpPayloadTraitsWithMediaTypeInputOutput, + _$HttpPayloadTraitsWithMediaTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -117,9 +102,10 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart index 01e00915a8..d83cb9dd90 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_traits_with_media_type_input_output.g.dart @@ -13,20 +13,19 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsWithMediaTypeInputOutput( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates]) => + factory _$HttpPayloadTraitsWithMediaTypeInputOutput([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsWithMediaTypeInputOutputBuilder()..update(updates)) ._build(); _$HttpPayloadTraitsWithMediaTypeInputOutput._({this.foo, this.blob}) - : super._(); + : super._(); @override HttpPayloadTraitsWithMediaTypeInputOutput rebuild( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsWithMediaTypeInputOutputBuilder toBuilder() => @@ -52,8 +51,10 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + > { _$HttpPayloadTraitsWithMediaTypeInputOutput? _$v; String? _foo; @@ -84,8 +85,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder @override void update( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates) { + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -93,7 +94,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder HttpPayloadTraitsWithMediaTypeInputOutput build() => _build(); _$HttpPayloadTraitsWithMediaTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart index 626f09542e..9ad053ad4e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_payload_with_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,18 @@ abstract class HttpPayloadWithStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + >, _i1.HasPayload { factory HttpPayloadWithStructureInputOutput({NestedPayload? nested}) { return _$HttpPayloadWithStructureInputOutput._(nested: nested); } - factory HttpPayloadWithStructureInputOutput.build( - [void Function(HttpPayloadWithStructureInputOutputBuilder) updates]) = - _$HttpPayloadWithStructureInputOutput; + factory HttpPayloadWithStructureInputOutput.build([ + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ]) = _$HttpPayloadWithStructureInputOutput; const HttpPayloadWithStructureInputOutput._(); @@ -33,26 +35,24 @@ abstract class HttpPayloadWithStructureInputOutput NestedPayload? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithStructureInputOutput] from a [payload] and [response]. factory HttpPayloadWithStructureInputOutput.fromResponse( NestedPayload? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithStructureInputOutputRestJson1Serializer() + HttpPayloadWithStructureInputOutputRestJson1Serializer(), ]; NestedPayload? get nested; @@ -64,12 +64,9 @@ abstract class HttpPayloadWithStructureInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithStructureInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithStructureInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const HttpPayloadWithStructureInputOutputRestJson1Serializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [ - HttpPayloadWithStructureInputOutput, - _$HttpPayloadWithStructureInputOutput, - ]; + HttpPayloadWithStructureInputOutput, + _$HttpPayloadWithStructureInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NestedPayload deserialize( @@ -100,9 +94,10 @@ class HttpPayloadWithStructureInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(NestedPayload), - ) as NestedPayload); + serialized, + specifiedType: const FullType(NestedPayload), + ) + as NestedPayload); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart index 0422d70a2c..5174c4f637 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_payload_with_structure_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithStructureInputOutput @override final NestedPayload? nested; - factory _$HttpPayloadWithStructureInputOutput( - [void Function(HttpPayloadWithStructureInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithStructureInputOutput([ + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithStructureInputOutputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$HttpPayloadWithStructureInputOutput @override HttpPayloadWithStructureInputOutput rebuild( - void Function(HttpPayloadWithStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithStructureInputOutputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + > { _$HttpPayloadWithStructureInputOutput? _$v; NestedPayloadBuilder? _nested; @@ -74,7 +76,8 @@ class HttpPayloadWithStructureInputOutputBuilder @override void update( - void Function(HttpPayloadWithStructureInputOutputBuilder)? updates) { + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,7 +87,8 @@ class HttpPayloadWithStructureInputOutputBuilder _$HttpPayloadWithStructureInputOutput _build() { _$HttpPayloadWithStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithStructureInputOutput._(nested: _nested?.build()); } catch (_) { late String _$failedField; @@ -93,9 +97,10 @@ class HttpPayloadWithStructureInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithStructureInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart index 10201c318a..aff85a79b0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_prefix_headers_in_response_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class HttpPrefixHeadersInResponseInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInputBuilder + >, _i1.EmptyPayload { factory HttpPrefixHeadersInResponseInput() { return _$HttpPrefixHeadersInResponseInput._(); } - factory HttpPrefixHeadersInResponseInput.build( - [void Function(HttpPrefixHeadersInResponseInputBuilder) updates]) = - _$HttpPrefixHeadersInResponseInput; + factory HttpPrefixHeadersInResponseInput.build([ + void Function(HttpPrefixHeadersInResponseInputBuilder) updates, + ]) = _$HttpPrefixHeadersInResponseInput; const HttpPrefixHeadersInResponseInput._(); @@ -32,11 +34,10 @@ abstract class HttpPrefixHeadersInResponseInput HttpPrefixHeadersInResponseInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [HttpPrefixHeadersInResponseInputRestJson1Serializer()]; + serializers = [HttpPrefixHeadersInResponseInputRestJson1Serializer()]; @override HttpPrefixHeadersInResponseInput getPayload() => this; @@ -46,8 +47,9 @@ abstract class HttpPrefixHeadersInResponseInput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInResponseInput'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInResponseInput', + ); return helper.toString(); } } @@ -55,21 +57,18 @@ abstract class HttpPrefixHeadersInResponseInput class HttpPrefixHeadersInResponseInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpPrefixHeadersInResponseInputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseInput'); + : super('HttpPrefixHeadersInResponseInput'); @override Iterable get types => const [ - HttpPrefixHeadersInResponseInput, - _$HttpPrefixHeadersInResponseInput, - ]; + HttpPrefixHeadersInResponseInput, + _$HttpPrefixHeadersInResponseInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseInput deserialize( @@ -85,6 +84,5 @@ class HttpPrefixHeadersInResponseInputRestJson1Serializer Serializers serializers, HttpPrefixHeadersInResponseInput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart index c9a2587a1b..554c88b266 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_input.g.dart @@ -8,16 +8,17 @@ part of 'http_prefix_headers_in_response_input.dart'; class _$HttpPrefixHeadersInResponseInput extends HttpPrefixHeadersInResponseInput { - factory _$HttpPrefixHeadersInResponseInput( - [void Function(HttpPrefixHeadersInResponseInputBuilder)? updates]) => + factory _$HttpPrefixHeadersInResponseInput([ + void Function(HttpPrefixHeadersInResponseInputBuilder)? updates, + ]) => (new HttpPrefixHeadersInResponseInputBuilder()..update(updates))._build(); _$HttpPrefixHeadersInResponseInput._() : super._(); @override HttpPrefixHeadersInResponseInput rebuild( - void Function(HttpPrefixHeadersInResponseInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInResponseInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInResponseInputBuilder toBuilder() => @@ -37,8 +38,10 @@ class _$HttpPrefixHeadersInResponseInput class HttpPrefixHeadersInResponseInputBuilder implements - Builder { + Builder< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInputBuilder + > { _$HttpPrefixHeadersInResponseInput? _$v; HttpPrefixHeadersInResponseInputBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart index b595f44495..a332a3174c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_prefix_headers_in_response_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,23 +13,25 @@ import 'package:smithy/smithy.dart' as _i2; part 'http_prefix_headers_in_response_output.g.dart'; abstract class HttpPrefixHeadersInResponseOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInResponseOutput, + HttpPrefixHeadersInResponseOutputBuilder + >, _i2.EmptyPayload, _i2.HasPayload { - factory HttpPrefixHeadersInResponseOutput( - {Map? prefixHeaders}) { + factory HttpPrefixHeadersInResponseOutput({ + Map? prefixHeaders, + }) { return _$HttpPrefixHeadersInResponseOutput._( - prefixHeaders: - prefixHeaders == null ? null : _i3.BuiltMap(prefixHeaders)); + prefixHeaders: prefixHeaders == null ? null : _i3.BuiltMap(prefixHeaders), + ); } - factory HttpPrefixHeadersInResponseOutput.build( - [void Function(HttpPrefixHeadersInResponseOutputBuilder) updates]) = - _$HttpPrefixHeadersInResponseOutput; + factory HttpPrefixHeadersInResponseOutput.build([ + void Function(HttpPrefixHeadersInResponseOutputBuilder) updates, + ]) = _$HttpPrefixHeadersInResponseOutput; const HttpPrefixHeadersInResponseOutput._(); @@ -37,14 +39,14 @@ abstract class HttpPrefixHeadersInResponseOutput factory HttpPrefixHeadersInResponseOutput.fromResponse( HttpPrefixHeadersInResponseOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInResponseOutput.build((b) { - b.prefixHeaders.addEntries(response.headers.entries); - }); + ) => HttpPrefixHeadersInResponseOutput.build((b) { + b.prefixHeaders.addEntries(response.headers.entries); + }); static const List< - _i2.SmithySerializer> - serializers = [HttpPrefixHeadersInResponseOutputRestJson1Serializer()]; + _i2.SmithySerializer + > + serializers = [HttpPrefixHeadersInResponseOutputRestJson1Serializer()]; _i3.BuiltMap? get prefixHeaders; @override @@ -56,27 +58,25 @@ abstract class HttpPrefixHeadersInResponseOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInResponseOutput') - ..add( - 'prefixHeaders', - prefixHeaders, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInResponseOutput', + )..add('prefixHeaders', prefixHeaders); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersInResponseOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpPrefixHeadersInResponseOutputPayload( - [void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) - updates]) = _$HttpPrefixHeadersInResponseOutputPayload; + factory HttpPrefixHeadersInResponseOutputPayload([ + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersInResponseOutputPayload; const HttpPrefixHeadersInResponseOutputPayload._(); @@ -85,32 +85,33 @@ abstract class HttpPrefixHeadersInResponseOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInResponseOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInResponseOutputPayload', + ); return helper.toString(); } } -class HttpPrefixHeadersInResponseOutputRestJson1Serializer extends _i2 - .StructuredSmithySerializer { +class HttpPrefixHeadersInResponseOutputRestJson1Serializer + extends + _i2.StructuredSmithySerializer< + HttpPrefixHeadersInResponseOutputPayload + > { const HttpPrefixHeadersInResponseOutputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseOutput'); + : super('HttpPrefixHeadersInResponseOutput'); @override Iterable get types => const [ - HttpPrefixHeadersInResponseOutput, - _$HttpPrefixHeadersInResponseOutput, - HttpPrefixHeadersInResponseOutputPayload, - _$HttpPrefixHeadersInResponseOutputPayload, - ]; + HttpPrefixHeadersInResponseOutput, + _$HttpPrefixHeadersInResponseOutput, + HttpPrefixHeadersInResponseOutputPayload, + _$HttpPrefixHeadersInResponseOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseOutputPayload deserialize( @@ -126,6 +127,5 @@ class HttpPrefixHeadersInResponseOutputRestJson1Serializer extends _i2 Serializers serializers, HttpPrefixHeadersInResponseOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart index 54fd413cb1..6ca595566a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_in_response_output.g.dart @@ -11,8 +11,9 @@ class _$HttpPrefixHeadersInResponseOutput @override final _i3.BuiltMap? prefixHeaders; - factory _$HttpPrefixHeadersInResponseOutput( - [void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates]) => + factory _$HttpPrefixHeadersInResponseOutput([ + void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates, + ]) => (new HttpPrefixHeadersInResponseOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$HttpPrefixHeadersInResponseOutput @override HttpPrefixHeadersInResponseOutput rebuild( - void Function(HttpPrefixHeadersInResponseOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInResponseOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInResponseOutputBuilder toBuilder() => @@ -45,8 +46,10 @@ class _$HttpPrefixHeadersInResponseOutput class HttpPrefixHeadersInResponseOutputBuilder implements - Builder { + Builder< + HttpPrefixHeadersInResponseOutput, + HttpPrefixHeadersInResponseOutputBuilder + > { _$HttpPrefixHeadersInResponseOutput? _$v; _i3.MapBuilder? _prefixHeaders; @@ -74,7 +77,8 @@ class HttpPrefixHeadersInResponseOutputBuilder @override void update( - void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates) { + void Function(HttpPrefixHeadersInResponseOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,9 +88,11 @@ class HttpPrefixHeadersInResponseOutputBuilder _$HttpPrefixHeadersInResponseOutput _build() { _$HttpPrefixHeadersInResponseOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersInResponseOutput._( - prefixHeaders: _prefixHeaders?.build()); + prefixHeaders: _prefixHeaders?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +100,10 @@ class HttpPrefixHeadersInResponseOutputBuilder _prefixHeaders?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersInResponseOutput', _$failedField, e.toString()); + r'HttpPrefixHeadersInResponseOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -105,9 +114,9 @@ class HttpPrefixHeadersInResponseOutputBuilder class _$HttpPrefixHeadersInResponseOutputPayload extends HttpPrefixHeadersInResponseOutputPayload { - factory _$HttpPrefixHeadersInResponseOutputPayload( - [void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? - updates]) => + factory _$HttpPrefixHeadersInResponseOutputPayload([ + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersInResponseOutputPayloadBuilder()..update(updates)) ._build(); @@ -115,9 +124,8 @@ class _$HttpPrefixHeadersInResponseOutputPayload @override HttpPrefixHeadersInResponseOutputPayload rebuild( - void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInResponseOutputPayloadBuilder toBuilder() => @@ -137,8 +145,10 @@ class _$HttpPrefixHeadersInResponseOutputPayload class HttpPrefixHeadersInResponseOutputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutputPayloadBuilder + > { _$HttpPrefixHeadersInResponseOutputPayload? _$v; HttpPrefixHeadersInResponseOutputPayloadBuilder(); @@ -151,7 +161,8 @@ class HttpPrefixHeadersInResponseOutputPayloadBuilder @override void update( - void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? updates) { + void Function(HttpPrefixHeadersInResponseOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart index 1b4fa27c8c..79c450a8be 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_prefix_headers_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,19 +20,16 @@ abstract class HttpPrefixHeadersInput Built, _i1.EmptyPayload, _i1.HasPayload { - factory HttpPrefixHeadersInput({ - String? foo, - Map? fooMap, - }) { + factory HttpPrefixHeadersInput({String? foo, Map? fooMap}) { return _$HttpPrefixHeadersInput._( foo: foo, fooMap: fooMap == null ? null : _i3.BuiltMap(fooMap), ); } - factory HttpPrefixHeadersInput.build( - [void Function(HttpPrefixHeadersInputBuilder) updates]) = - _$HttpPrefixHeadersInput; + factory HttpPrefixHeadersInput.build([ + void Function(HttpPrefixHeadersInputBuilder) updates, + ]) = _$HttpPrefixHeadersInput; const HttpPrefixHeadersInput._(); @@ -40,24 +37,19 @@ abstract class HttpPrefixHeadersInput HttpPrefixHeadersInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPrefixHeadersInput.build((b) { - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - b.fooMap.addEntries(request.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + }) => HttpPrefixHeadersInput.build((b) { + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + b.fooMap.addEntries( + request.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); static const List<_i1.SmithySerializer> - serializers = [HttpPrefixHeadersInputRestJson1Serializer()]; + serializers = [HttpPrefixHeadersInputRestJson1Serializer()]; String? get foo; _i3.BuiltMap? get fooMap; @@ -65,37 +57,30 @@ abstract class HttpPrefixHeadersInput HttpPrefixHeadersInputPayload getPayload() => HttpPrefixHeadersInputPayload(); @override - List get props => [ - foo, - fooMap, - ]; + List get props => [foo, fooMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPrefixHeadersInput') - ..add( - 'foo', - foo, - ) - ..add( - 'fooMap', - fooMap, - ); + final helper = + newBuiltValueToStringHelper('HttpPrefixHeadersInput') + ..add('foo', foo) + ..add('fooMap', fooMap); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpPrefixHeadersInputPayload( - [void Function(HttpPrefixHeadersInputPayloadBuilder) updates]) = - _$HttpPrefixHeadersInputPayload; + factory HttpPrefixHeadersInputPayload([ + void Function(HttpPrefixHeadersInputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersInputPayload; const HttpPrefixHeadersInputPayload._(); @@ -112,23 +97,20 @@ abstract class HttpPrefixHeadersInputPayload class HttpPrefixHeadersInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpPrefixHeadersInputRestJson1Serializer() - : super('HttpPrefixHeadersInput'); + : super('HttpPrefixHeadersInput'); @override Iterable get types => const [ - HttpPrefixHeadersInput, - _$HttpPrefixHeadersInput, - HttpPrefixHeadersInputPayload, - _$HttpPrefixHeadersInputPayload, - ]; + HttpPrefixHeadersInput, + _$HttpPrefixHeadersInput, + HttpPrefixHeadersInputPayload, + _$HttpPrefixHeadersInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInputPayload deserialize( @@ -144,6 +126,5 @@ class HttpPrefixHeadersInputRestJson1Serializer Serializers serializers, HttpPrefixHeadersInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart index 8ce0de819d..83a600071f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_input.g.dart @@ -12,16 +12,16 @@ class _$HttpPrefixHeadersInput extends HttpPrefixHeadersInput { @override final _i3.BuiltMap? fooMap; - factory _$HttpPrefixHeadersInput( - [void Function(HttpPrefixHeadersInputBuilder)? updates]) => - (new HttpPrefixHeadersInputBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersInput([ + void Function(HttpPrefixHeadersInputBuilder)? updates, + ]) => (new HttpPrefixHeadersInputBuilder()..update(updates))._build(); _$HttpPrefixHeadersInput._({this.foo, this.fooMap}) : super._(); @override HttpPrefixHeadersInput rebuild( - void Function(HttpPrefixHeadersInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputBuilder toBuilder() => @@ -87,7 +87,8 @@ class HttpPrefixHeadersInputBuilder _$HttpPrefixHeadersInput _build() { _$HttpPrefixHeadersInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersInput._(foo: foo, fooMap: _fooMap?.build()); } catch (_) { late String _$failedField; @@ -96,7 +97,10 @@ class HttpPrefixHeadersInputBuilder _fooMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersInput', _$failedField, e.toString()); + r'HttpPrefixHeadersInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -106,16 +110,16 @@ class HttpPrefixHeadersInputBuilder } class _$HttpPrefixHeadersInputPayload extends HttpPrefixHeadersInputPayload { - factory _$HttpPrefixHeadersInputPayload( - [void Function(HttpPrefixHeadersInputPayloadBuilder)? updates]) => - (new HttpPrefixHeadersInputPayloadBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersInputPayload([ + void Function(HttpPrefixHeadersInputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersInputPayloadBuilder()..update(updates))._build(); _$HttpPrefixHeadersInputPayload._() : super._(); @override HttpPrefixHeadersInputPayload rebuild( - void Function(HttpPrefixHeadersInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputPayloadBuilder toBuilder() => @@ -135,8 +139,10 @@ class _$HttpPrefixHeadersInputPayload extends HttpPrefixHeadersInputPayload { class HttpPrefixHeadersInputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInputPayloadBuilder + > { _$HttpPrefixHeadersInputPayload? _$v; HttpPrefixHeadersInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart index ec607767d4..07e6fee5b2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_prefix_headers_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,19 +18,16 @@ abstract class HttpPrefixHeadersOutput Built, _i2.EmptyPayload, _i2.HasPayload { - factory HttpPrefixHeadersOutput({ - String? foo, - Map? fooMap, - }) { + factory HttpPrefixHeadersOutput({String? foo, Map? fooMap}) { return _$HttpPrefixHeadersOutput._( foo: foo, fooMap: fooMap == null ? null : _i3.BuiltMap(fooMap), ); } - factory HttpPrefixHeadersOutput.build( - [void Function(HttpPrefixHeadersOutputBuilder) updates]) = - _$HttpPrefixHeadersOutput; + factory HttpPrefixHeadersOutput.build([ + void Function(HttpPrefixHeadersOutputBuilder) updates, + ]) = _$HttpPrefixHeadersOutput; const HttpPrefixHeadersOutput._(); @@ -38,24 +35,19 @@ abstract class HttpPrefixHeadersOutput factory HttpPrefixHeadersOutput.fromResponse( HttpPrefixHeadersOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersOutput.build((b) { - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - b.fooMap.addEntries(response.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + ) => HttpPrefixHeadersOutput.build((b) { + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + b.fooMap.addEntries( + response.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); static const List<_i2.SmithySerializer> - serializers = [HttpPrefixHeadersOutputRestJson1Serializer()]; + serializers = [HttpPrefixHeadersOutputRestJson1Serializer()]; String? get foo; _i3.BuiltMap? get fooMap; @@ -64,37 +56,30 @@ abstract class HttpPrefixHeadersOutput HttpPrefixHeadersOutputPayload(); @override - List get props => [ - foo, - fooMap, - ]; + List get props => [foo, fooMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPrefixHeadersOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'fooMap', - fooMap, - ); + final helper = + newBuiltValueToStringHelper('HttpPrefixHeadersOutput') + ..add('foo', foo) + ..add('fooMap', fooMap); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpPrefixHeadersOutputPayload( - [void Function(HttpPrefixHeadersOutputPayloadBuilder) updates]) = - _$HttpPrefixHeadersOutputPayload; + factory HttpPrefixHeadersOutputPayload([ + void Function(HttpPrefixHeadersOutputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersOutputPayload; const HttpPrefixHeadersOutputPayload._(); @@ -103,8 +88,9 @@ abstract class HttpPrefixHeadersOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersOutputPayload', + ); return helper.toString(); } } @@ -112,23 +98,20 @@ abstract class HttpPrefixHeadersOutputPayload class HttpPrefixHeadersOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const HttpPrefixHeadersOutputRestJson1Serializer() - : super('HttpPrefixHeadersOutput'); + : super('HttpPrefixHeadersOutput'); @override Iterable get types => const [ - HttpPrefixHeadersOutput, - _$HttpPrefixHeadersOutput, - HttpPrefixHeadersOutputPayload, - _$HttpPrefixHeadersOutputPayload, - ]; + HttpPrefixHeadersOutput, + _$HttpPrefixHeadersOutput, + HttpPrefixHeadersOutputPayload, + _$HttpPrefixHeadersOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersOutputPayload deserialize( @@ -144,6 +127,5 @@ class HttpPrefixHeadersOutputRestJson1Serializer Serializers serializers, HttpPrefixHeadersOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart index 09f226e9c2..afcf3b2ccf 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_prefix_headers_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPrefixHeadersOutput extends HttpPrefixHeadersOutput { @override final _i3.BuiltMap? fooMap; - factory _$HttpPrefixHeadersOutput( - [void Function(HttpPrefixHeadersOutputBuilder)? updates]) => - (new HttpPrefixHeadersOutputBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersOutput([ + void Function(HttpPrefixHeadersOutputBuilder)? updates, + ]) => (new HttpPrefixHeadersOutputBuilder()..update(updates))._build(); _$HttpPrefixHeadersOutput._({this.foo, this.fooMap}) : super._(); @override HttpPrefixHeadersOutput rebuild( - void Function(HttpPrefixHeadersOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersOutputBuilder toBuilder() => @@ -88,7 +88,8 @@ class HttpPrefixHeadersOutputBuilder _$HttpPrefixHeadersOutput _build() { _$HttpPrefixHeadersOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersOutput._(foo: foo, fooMap: _fooMap?.build()); } catch (_) { late String _$failedField; @@ -97,7 +98,10 @@ class HttpPrefixHeadersOutputBuilder _fooMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersOutput', _$failedField, e.toString()); + r'HttpPrefixHeadersOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -107,16 +111,16 @@ class HttpPrefixHeadersOutputBuilder } class _$HttpPrefixHeadersOutputPayload extends HttpPrefixHeadersOutputPayload { - factory _$HttpPrefixHeadersOutputPayload( - [void Function(HttpPrefixHeadersOutputPayloadBuilder)? updates]) => - (new HttpPrefixHeadersOutputPayloadBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersOutputPayload([ + void Function(HttpPrefixHeadersOutputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersOutputPayloadBuilder()..update(updates))._build(); _$HttpPrefixHeadersOutputPayload._() : super._(); @override HttpPrefixHeadersOutputPayload rebuild( - void Function(HttpPrefixHeadersOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersOutputPayloadBuilder toBuilder() => @@ -136,8 +140,10 @@ class _$HttpPrefixHeadersOutputPayload extends HttpPrefixHeadersOutputPayload { class HttpPrefixHeadersOutputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutputPayloadBuilder + > { _$HttpPrefixHeadersOutputPayload? _$v; HttpPrefixHeadersOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart index e3aeec8489..f4f44fd0a2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_request_with_float_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithFloatLabelsInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithFloatLabelsInput({ required double float, required double double_, }) { - return _$HttpRequestWithFloatLabelsInput._( - float: float, - double_: double_, - ); + return _$HttpRequestWithFloatLabelsInput._(float: float, double_: double_); } - factory HttpRequestWithFloatLabelsInput.build( - [void Function(HttpRequestWithFloatLabelsInputBuilder) updates]) = - _$HttpRequestWithFloatLabelsInput; + factory HttpRequestWithFloatLabelsInput.build([ + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInput; const HttpRequestWithFloatLabelsInput._(); @@ -40,19 +39,19 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithFloatLabelsInput.build((b) { - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - }); + }) => HttpRequestWithFloatLabelsInput.build((b) { + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithFloatLabelsInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithFloatLabelsInputRestJson1Serializer()]; double get float; double get double_; @@ -64,10 +63,7 @@ abstract class HttpRequestWithFloatLabelsInput case 'double': return double_.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -75,38 +71,30 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload(); @override - List get props => [ - float, - double_, - ]; + List get props => [float, double_]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInput') - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ); + ..add('float', float) + ..add('double_', double_); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithFloatLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates]) = _$HttpRequestWithFloatLabelsInputPayload; + factory HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInputPayload; const HttpRequestWithFloatLabelsInputPayload._(); @@ -115,32 +103,31 @@ abstract class HttpRequestWithFloatLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithFloatLabelsInputPayload', + ); return helper.toString(); } } -class HttpRequestWithFloatLabelsInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithFloatLabelsInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestJson1Serializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [ - HttpRequestWithFloatLabelsInput, - _$HttpRequestWithFloatLabelsInput, - HttpRequestWithFloatLabelsInputPayload, - _$HttpRequestWithFloatLabelsInputPayload, - ]; + HttpRequestWithFloatLabelsInput, + _$HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputPayload, + _$HttpRequestWithFloatLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithFloatLabelsInputPayload deserialize( @@ -156,6 +143,5 @@ class HttpRequestWithFloatLabelsInputRestJson1Serializer extends _i1 Serializers serializers, HttpRequestWithFloatLabelsInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart index c76e934e86..7aefc65834 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_float_labels_input.g.dart @@ -13,23 +13,31 @@ class _$HttpRequestWithFloatLabelsInput @override final double double_; - factory _$HttpRequestWithFloatLabelsInput( - [void Function(HttpRequestWithFloatLabelsInputBuilder)? updates]) => + factory _$HttpRequestWithFloatLabelsInput([ + void Function(HttpRequestWithFloatLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputBuilder()..update(updates))._build(); - _$HttpRequestWithFloatLabelsInput._( - {required this.float, required this.double_}) - : super._() { + _$HttpRequestWithFloatLabelsInput._({ + required this.float, + required this.double_, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'); + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_'); + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ); } @override HttpRequestWithFloatLabelsInput rebuild( - void Function(HttpRequestWithFloatLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputBuilder toBuilder() => @@ -55,8 +63,10 @@ class _$HttpRequestWithFloatLabelsInput class HttpRequestWithFloatLabelsInputBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + > { _$HttpRequestWithFloatLabelsInput? _$v; double? _float; @@ -94,12 +104,20 @@ class HttpRequestWithFloatLabelsInputBuilder HttpRequestWithFloatLabelsInput build() => _build(); _$HttpRequestWithFloatLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithFloatLabelsInput._( - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_')); + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ), + ); replace(_$result); return _$result; } @@ -107,9 +125,9 @@ class HttpRequestWithFloatLabelsInputBuilder class _$HttpRequestWithFloatLabelsInputPayload extends HttpRequestWithFloatLabelsInputPayload { - factory _$HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -117,9 +135,8 @@ class _$HttpRequestWithFloatLabelsInputPayload @override HttpRequestWithFloatLabelsInputPayload rebuild( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputPayloadBuilder toBuilder() => @@ -139,8 +156,10 @@ class _$HttpRequestWithFloatLabelsInputPayload class HttpRequestWithFloatLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + > { _$HttpRequestWithFloatLabelsInputPayload? _$v; HttpRequestWithFloatLabelsInputPayloadBuilder(); @@ -153,7 +172,8 @@ class HttpRequestWithFloatLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart index fe2b175f81..ed478989e3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_request_with_greedy_label_in_path_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithGreedyLabelInPathInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithGreedyLabelInPathInput({ required String foo, required String baz, }) { - return _$HttpRequestWithGreedyLabelInPathInput._( - foo: foo, - baz: baz, - ); + return _$HttpRequestWithGreedyLabelInPathInput._(foo: foo, baz: baz); } - factory HttpRequestWithGreedyLabelInPathInput.build( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInput; + factory HttpRequestWithGreedyLabelInPathInput.build([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInput; const HttpRequestWithGreedyLabelInPathInput._(); @@ -40,21 +39,19 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithGreedyLabelInPathInput.build((b) { - if (labels['foo'] != null) { - b.foo = labels['foo']!; - } - if (labels['baz'] != null) { - b.baz = labels['baz']!; - } - }); + }) => HttpRequestWithGreedyLabelInPathInput.build((b) { + if (labels['foo'] != null) { + b.foo = labels['foo']!; + } + if (labels['baz'] != null) { + b.baz = labels['baz']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [ - HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - ]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithGreedyLabelInPathInputRestJson1Serializer()]; String get foo; String get baz; @@ -66,10 +63,7 @@ abstract class HttpRequestWithGreedyLabelInPathInput case 'baz': return baz; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -77,38 +71,30 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithGreedyLabelInPathInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithGreedyLabelInPathInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInputPayload; + factory HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInputPayload; const HttpRequestWithGreedyLabelInPathInputPayload._(); @@ -118,31 +104,32 @@ abstract class HttpRequestWithGreedyLabelInPathInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithGreedyLabelInPathInputPayload'); + 'HttpRequestWithGreedyLabelInPathInputPayload', + ); return helper.toString(); } } -class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + HttpRequestWithGreedyLabelInPathInputPayload + > { const HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [ - HttpRequestWithGreedyLabelInPathInput, - _$HttpRequestWithGreedyLabelInPathInput, - HttpRequestWithGreedyLabelInPathInputPayload, - _$HttpRequestWithGreedyLabelInPathInputPayload, - ]; + HttpRequestWithGreedyLabelInPathInput, + _$HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputPayload, + _$HttpRequestWithGreedyLabelInPathInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithGreedyLabelInPathInputPayload deserialize( @@ -158,6 +145,5 @@ class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i1 Serializers serializers, HttpRequestWithGreedyLabelInPathInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart index 17074744a3..82b442bac4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_greedy_label_in_path_input.g.dart @@ -13,26 +13,32 @@ class _$HttpRequestWithGreedyLabelInPathInput @override final String baz; - factory _$HttpRequestWithGreedyLabelInPathInput( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInput([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputBuilder()..update(updates)) ._build(); - _$HttpRequestWithGreedyLabelInPathInput._( - {required this.foo, required this.baz}) - : super._() { + _$HttpRequestWithGreedyLabelInPathInput._({ + required this.foo, + required this.baz, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'); + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ); BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz'); + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ); } @override HttpRequestWithGreedyLabelInPathInput rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputBuilder toBuilder() => @@ -58,8 +64,10 @@ class _$HttpRequestWithGreedyLabelInPathInput class HttpRequestWithGreedyLabelInPathInputBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + > { _$HttpRequestWithGreedyLabelInPathInput? _$v; String? _foo; @@ -90,7 +98,8 @@ class HttpRequestWithGreedyLabelInPathInputBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates) { + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -98,12 +107,20 @@ class HttpRequestWithGreedyLabelInPathInputBuilder HttpRequestWithGreedyLabelInPathInput build() => _build(); _$HttpRequestWithGreedyLabelInPathInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithGreedyLabelInPathInput._( - foo: BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'), - baz: BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz')); + foo: BuiltValueNullFieldError.checkNotNull( + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ), + baz: BuiltValueNullFieldError.checkNotNull( + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ), + ); replace(_$result); return _$result; } @@ -111,9 +128,9 @@ class HttpRequestWithGreedyLabelInPathInputBuilder class _$HttpRequestWithGreedyLabelInPathInputPayload extends HttpRequestWithGreedyLabelInPathInputPayload { - factory _$HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputPayloadBuilder() ..update(updates)) ._build(); @@ -122,9 +139,8 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload @override HttpRequestWithGreedyLabelInPathInputPayload rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputPayloadBuilder toBuilder() => @@ -144,8 +160,10 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload class HttpRequestWithGreedyLabelInPathInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + > { _$HttpRequestWithGreedyLabelInPathInputPayload? _$v; HttpRequestWithGreedyLabelInPathInputPayloadBuilder(); @@ -158,8 +176,8 @@ class HttpRequestWithGreedyLabelInPathInputPayloadBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart index 37ebc0a753..4e5b2f0fb9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_request_with_labels_and_timestamp_format_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithLabelsAndTimestampFormatInput({ @@ -40,9 +42,9 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput ); } - factory HttpRequestWithLabelsAndTimestampFormatInput.build( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInput; + factory HttpRequestWithLabelsAndTimestampFormatInput.build([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInput; const HttpRequestWithLabelsAndTimestampFormatInput._(); @@ -50,56 +52,63 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput HttpRequestWithLabelsAndTimestampFormatInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsAndTimestampFormatInput.build((b) { - if (labels['memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsAndTimestampFormatInput.build((b) { + if (labels['memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (labels['memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( labels['memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (labels['memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( labels['memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (labels['defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( labels['defaultFormat']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (labels['targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (labels['targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( labels['targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (labels['targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( labels['targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload>> serializers = [ - HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() + _i1.SmithySerializer + > + serializers = [ + HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer(), ]; DateTime get memberEpochSeconds; @@ -113,38 +122,35 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput String labelFor(String key) { switch (key) { case 'memberEpochSeconds': - return _i1.Timestamp(memberEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + memberEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'memberHttpDate': - return _i1.Timestamp(memberHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + memberHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'memberDateTime': - return _i1.Timestamp(memberDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + memberDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'defaultFormat': - return _i1.Timestamp(defaultFormat) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + defaultFormat, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'targetEpochSeconds': - return _i1.Timestamp(targetEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + targetEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'targetHttpDate': - return _i1.Timestamp(targetHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + targetHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'targetDateTime': - return _i1.Timestamp(targetDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + targetDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -153,62 +159,45 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInput') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper( + 'HttpRequestWithLabelsAndTimestampFormatInput', + ) + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; + factory HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; const HttpRequestWithLabelsAndTimestampFormatInputPayload._(); @@ -218,32 +207,32 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInputPayload'); + 'HttpRequestWithLabelsAndTimestampFormatInputPayload', + ); return helper.toString(); } } class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer - extends _i1.StructuredSmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload> { + extends + _i1.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInputPayload + > { const HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override Iterable get types => const [ - HttpRequestWithLabelsAndTimestampFormatInput, - _$HttpRequestWithLabelsAndTimestampFormatInput, - HttpRequestWithLabelsAndTimestampFormatInputPayload, - _$HttpRequestWithLabelsAndTimestampFormatInputPayload, - ]; + HttpRequestWithLabelsAndTimestampFormatInput, + _$HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputPayload, + _$HttpRequestWithLabelsAndTimestampFormatInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInputPayload deserialize( @@ -259,6 +248,5 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer Serializers serializers, HttpRequestWithLabelsAndTimestampFormatInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart index 369c8ce5b1..1aa19a195a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart @@ -23,43 +23,63 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput @override final DateTime targetDateTime; - factory _$HttpRequestWithLabelsAndTimestampFormatInput( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInput([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputBuilder() ..update(updates)) ._build(); - _$HttpRequestWithLabelsAndTimestampFormatInput._( - {required this.memberEpochSeconds, - required this.memberHttpDate, - required this.memberDateTime, - required this.defaultFormat, - required this.targetEpochSeconds, - required this.targetHttpDate, - required this.targetDateTime}) - : super._() { - BuiltValueNullFieldError.checkNotNull(memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(memberHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'); - BuiltValueNullFieldError.checkNotNull(memberDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'); - BuiltValueNullFieldError.checkNotNull(defaultFormat, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'); - BuiltValueNullFieldError.checkNotNull(targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(targetHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'); - BuiltValueNullFieldError.checkNotNull(targetDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime'); + _$HttpRequestWithLabelsAndTimestampFormatInput._({ + required this.memberEpochSeconds, + required this.memberHttpDate, + required this.memberDateTime, + required this.defaultFormat, + required this.targetEpochSeconds, + required this.targetHttpDate, + required this.targetDateTime, + }) : super._() { + BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ); + BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ); + BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ); } @override HttpRequestWithLabelsAndTimestampFormatInput rebuild( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputBuilder toBuilder() => @@ -95,8 +115,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput class HttpRequestWithLabelsAndTimestampFormatInputBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInput? _$v; DateTime? _memberEpochSeconds; @@ -159,8 +181,8 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -168,25 +190,45 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder HttpRequestWithLabelsAndTimestampFormatInput build() => _build(); _$HttpRequestWithLabelsAndTimestampFormatInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsAndTimestampFormatInput._( - memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( - memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'memberEpochSeconds'), - memberHttpDate: BuiltValueNullFieldError.checkNotNull( - memberHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'), - memberDateTime: BuiltValueNullFieldError.checkNotNull( - memberDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'), - defaultFormat: BuiltValueNullFieldError.checkNotNull( - defaultFormat, r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'), - targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( - targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'targetEpochSeconds'), - targetHttpDate: BuiltValueNullFieldError.checkNotNull( - targetHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'), - targetDateTime: BuiltValueNullFieldError.checkNotNull(targetDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime')); + memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ), + memberHttpDate: BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ), + memberDateTime: BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ), + defaultFormat: BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ), + targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ), + targetHttpDate: BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ), + targetDateTime: BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ), + ); replace(_$result); return _$result; } @@ -194,10 +236,10 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder class _$HttpRequestWithLabelsAndTimestampFormatInputPayload extends HttpRequestWithLabelsAndTimestampFormatInputPayload { - factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder() ..update(updates)) ._build(); @@ -206,10 +248,9 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload @override HttpRequestWithLabelsAndTimestampFormatInputPayload rebuild( - void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder toBuilder() => @@ -230,8 +271,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInputPayload? _$v; HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder(); @@ -244,8 +287,9 @@ class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart index 25d19bccad..522d5d7897 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_request_with_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,9 +42,9 @@ abstract class HttpRequestWithLabelsInput ); } - factory HttpRequestWithLabelsInput.build( - [void Function(HttpRequestWithLabelsInputBuilder) updates]) = - _$HttpRequestWithLabelsInput; + factory HttpRequestWithLabelsInput.build([ + void Function(HttpRequestWithLabelsInputBuilder) updates, + ]) = _$HttpRequestWithLabelsInput; const HttpRequestWithLabelsInput._(); @@ -52,39 +52,39 @@ abstract class HttpRequestWithLabelsInput HttpRequestWithLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsInput.build((b) { - if (labels['string'] != null) { - b.string = labels['string']!; - } - if (labels['short'] != null) { - b.short = int.parse(labels['short']!); - } - if (labels['integer'] != null) { - b.integer = int.parse(labels['integer']!); - } - if (labels['long'] != null) { - b.long = _i3.Int64.parseInt(labels['long']!); - } - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - if (labels['boolean'] != null) { - b.boolean = labels['boolean']! == 'true'; - } - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsInput.build((b) { + if (labels['string'] != null) { + b.string = labels['string']!; + } + if (labels['short'] != null) { + b.short = int.parse(labels['short']!); + } + if (labels['integer'] != null) { + b.integer = int.parse(labels['integer']!); + } + if (labels['long'] != null) { + b.long = _i3.Int64.parseInt(labels['long']!); + } + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + if (labels['boolean'] != null) { + b.boolean = labels['boolean']! == 'true'; + } + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [HttpRequestWithLabelsInputRestJson1Serializer()]; + serializers = [HttpRequestWithLabelsInputRestJson1Serializer()]; String get string; int get short; @@ -116,14 +116,11 @@ abstract class HttpRequestWithLabelsInput case 'boolean': return boolean.toString(); case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -132,66 +129,44 @@ abstract class HttpRequestWithLabelsInput @override List get props => [ - string, - short, - integer, - long, - float, - double_, - boolean, - timestamp, - ]; + string, + short, + integer, + long, + float, + double_, + boolean, + timestamp, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpRequestWithLabelsInput') - ..add( - 'string', - string, - ) - ..add( - 'short', - short, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'long', - long, - ) - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ) - ..add( - 'boolean', - boolean, - ) - ..add( - 'timestamp', - timestamp, - ); + final helper = + newBuiltValueToStringHelper('HttpRequestWithLabelsInput') + ..add('string', string) + ..add('short', short) + ..add('integer', integer) + ..add('long', long) + ..add('float', float) + ..add('double_', double_) + ..add('boolean', boolean) + ..add('timestamp', timestamp); return helper.toString(); } } @_i4.internal abstract class HttpRequestWithLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder) updates]) = - _$HttpRequestWithLabelsInputPayload; + factory HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithLabelsInputPayload; const HttpRequestWithLabelsInputPayload._(); @@ -200,8 +175,9 @@ abstract class HttpRequestWithLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithLabelsInputPayload', + ); return helper.toString(); } } @@ -209,23 +185,20 @@ abstract class HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestJson1Serializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [ - HttpRequestWithLabelsInput, - _$HttpRequestWithLabelsInput, - HttpRequestWithLabelsInputPayload, - _$HttpRequestWithLabelsInputPayload, - ]; + HttpRequestWithLabelsInput, + _$HttpRequestWithLabelsInput, + HttpRequestWithLabelsInputPayload, + _$HttpRequestWithLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsInputPayload deserialize( @@ -241,6 +214,5 @@ class HttpRequestWithLabelsInputRestJson1Serializer Serializers serializers, HttpRequestWithLabelsInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart index b0121ae103..843933b2b9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_labels_input.g.dart @@ -24,42 +24,66 @@ class _$HttpRequestWithLabelsInput extends HttpRequestWithLabelsInput { @override final DateTime timestamp; - factory _$HttpRequestWithLabelsInput( - [void Function(HttpRequestWithLabelsInputBuilder)? updates]) => - (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); - - _$HttpRequestWithLabelsInput._( - {required this.string, - required this.short, - required this.integer, - required this.long, - required this.float, - required this.double_, - required this.boolean, - required this.timestamp}) - : super._() { + factory _$HttpRequestWithLabelsInput([ + void Function(HttpRequestWithLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); + + _$HttpRequestWithLabelsInput._({ + required this.string, + required this.short, + required this.integer, + required this.long, + required this.float, + required this.double_, + required this.boolean, + required this.timestamp, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'); + string, + r'HttpRequestWithLabelsInput', + 'string', + ); BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'); + short, + r'HttpRequestWithLabelsInput', + 'short', + ); BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'); + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ); BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'); + long, + r'HttpRequestWithLabelsInput', + 'long', + ); BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'); + float, + r'HttpRequestWithLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'); + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ); BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'); + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ); BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp'); + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ); } @override HttpRequestWithLabelsInput rebuild( - void Function(HttpRequestWithLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputBuilder toBuilder() => @@ -165,24 +189,50 @@ class HttpRequestWithLabelsInputBuilder HttpRequestWithLabelsInput build() => _build(); _$HttpRequestWithLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsInput._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'), - short: BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'), - integer: BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'), - long: BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'), - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'), - boolean: BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'), - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'HttpRequestWithLabelsInput', + 'string', + ), + short: BuiltValueNullFieldError.checkNotNull( + short, + r'HttpRequestWithLabelsInput', + 'short', + ), + integer: BuiltValueNullFieldError.checkNotNull( + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ), + long: BuiltValueNullFieldError.checkNotNull( + long, + r'HttpRequestWithLabelsInput', + 'long', + ), + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ), + boolean: BuiltValueNullFieldError.checkNotNull( + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ), + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -190,8 +240,9 @@ class HttpRequestWithLabelsInputBuilder class _$HttpRequestWithLabelsInputPayload extends HttpRequestWithLabelsInputPayload { - factory _$HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates]) => + factory _$HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -199,8 +250,8 @@ class _$HttpRequestWithLabelsInputPayload @override HttpRequestWithLabelsInputPayload rebuild( - void Function(HttpRequestWithLabelsInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputPayloadBuilder toBuilder() => @@ -220,8 +271,10 @@ class _$HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + > { _$HttpRequestWithLabelsInputPayload? _$v; HttpRequestWithLabelsInputPayloadBuilder(); @@ -234,7 +287,8 @@ class HttpRequestWithLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart index 118fe7c6af..8c233c1ee7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_request_with_regex_literal_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class HttpRequestWithRegexLiteralInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithRegexLiteralInput, + HttpRequestWithRegexLiteralInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithRegexLiteralInput({required String str}) { return _$HttpRequestWithRegexLiteralInput._(str: str); } - factory HttpRequestWithRegexLiteralInput.build( - [void Function(HttpRequestWithRegexLiteralInputBuilder) updates]) = - _$HttpRequestWithRegexLiteralInput; + factory HttpRequestWithRegexLiteralInput.build([ + void Function(HttpRequestWithRegexLiteralInputBuilder) updates, + ]) = _$HttpRequestWithRegexLiteralInput; const HttpRequestWithRegexLiteralInput._(); @@ -34,16 +36,16 @@ abstract class HttpRequestWithRegexLiteralInput HttpRequestWithRegexLiteralInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithRegexLiteralInput.build((b) { - if (labels['str'] != null) { - b.str = labels['str']!; - } - }); + }) => HttpRequestWithRegexLiteralInput.build((b) { + if (labels['str'] != null) { + b.str = labels['str']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithRegexLiteralInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithRegexLiteralInputRestJson1Serializer()]; String get str; @override @@ -52,10 +54,7 @@ abstract class HttpRequestWithRegexLiteralInput case 'str': return str; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -67,27 +66,25 @@ abstract class HttpRequestWithRegexLiteralInput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithRegexLiteralInput') - ..add( - 'str', - str, - ); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithRegexLiteralInput', + )..add('str', str); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithRegexLiteralInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithRegexLiteralInputPayload( - [void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) - updates]) = _$HttpRequestWithRegexLiteralInputPayload; + factory HttpRequestWithRegexLiteralInputPayload([ + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) updates, + ]) = _$HttpRequestWithRegexLiteralInputPayload; const HttpRequestWithRegexLiteralInputPayload._(); @@ -96,32 +93,33 @@ abstract class HttpRequestWithRegexLiteralInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithRegexLiteralInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithRegexLiteralInputPayload', + ); return helper.toString(); } } -class HttpRequestWithRegexLiteralInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithRegexLiteralInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + HttpRequestWithRegexLiteralInputPayload + > { const HttpRequestWithRegexLiteralInputRestJson1Serializer() - : super('HttpRequestWithRegexLiteralInput'); + : super('HttpRequestWithRegexLiteralInput'); @override Iterable get types => const [ - HttpRequestWithRegexLiteralInput, - _$HttpRequestWithRegexLiteralInput, - HttpRequestWithRegexLiteralInputPayload, - _$HttpRequestWithRegexLiteralInputPayload, - ]; + HttpRequestWithRegexLiteralInput, + _$HttpRequestWithRegexLiteralInput, + HttpRequestWithRegexLiteralInputPayload, + _$HttpRequestWithRegexLiteralInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithRegexLiteralInputPayload deserialize( @@ -137,6 +135,5 @@ class HttpRequestWithRegexLiteralInputRestJson1Serializer extends _i1 Serializers serializers, HttpRequestWithRegexLiteralInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart index b915337db2..fbf65cf0c2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_request_with_regex_literal_input.g.dart @@ -11,19 +11,23 @@ class _$HttpRequestWithRegexLiteralInput @override final String str; - factory _$HttpRequestWithRegexLiteralInput( - [void Function(HttpRequestWithRegexLiteralInputBuilder)? updates]) => + factory _$HttpRequestWithRegexLiteralInput([ + void Function(HttpRequestWithRegexLiteralInputBuilder)? updates, + ]) => (new HttpRequestWithRegexLiteralInputBuilder()..update(updates))._build(); _$HttpRequestWithRegexLiteralInput._({required this.str}) : super._() { BuiltValueNullFieldError.checkNotNull( - str, r'HttpRequestWithRegexLiteralInput', 'str'); + str, + r'HttpRequestWithRegexLiteralInput', + 'str', + ); } @override HttpRequestWithRegexLiteralInput rebuild( - void Function(HttpRequestWithRegexLiteralInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithRegexLiteralInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithRegexLiteralInputBuilder toBuilder() => @@ -46,8 +50,10 @@ class _$HttpRequestWithRegexLiteralInput class HttpRequestWithRegexLiteralInputBuilder implements - Builder { + Builder< + HttpRequestWithRegexLiteralInput, + HttpRequestWithRegexLiteralInputBuilder + > { _$HttpRequestWithRegexLiteralInput? _$v; String? _str; @@ -80,10 +86,15 @@ class HttpRequestWithRegexLiteralInputBuilder HttpRequestWithRegexLiteralInput build() => _build(); _$HttpRequestWithRegexLiteralInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithRegexLiteralInput._( - str: BuiltValueNullFieldError.checkNotNull( - str, r'HttpRequestWithRegexLiteralInput', 'str')); + str: BuiltValueNullFieldError.checkNotNull( + str, + r'HttpRequestWithRegexLiteralInput', + 'str', + ), + ); replace(_$result); return _$result; } @@ -91,9 +102,9 @@ class HttpRequestWithRegexLiteralInputBuilder class _$HttpRequestWithRegexLiteralInputPayload extends HttpRequestWithRegexLiteralInputPayload { - factory _$HttpRequestWithRegexLiteralInputPayload( - [void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithRegexLiteralInputPayload([ + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithRegexLiteralInputPayloadBuilder()..update(updates)) ._build(); @@ -101,9 +112,8 @@ class _$HttpRequestWithRegexLiteralInputPayload @override HttpRequestWithRegexLiteralInputPayload rebuild( - void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithRegexLiteralInputPayloadBuilder toBuilder() => @@ -123,8 +133,10 @@ class _$HttpRequestWithRegexLiteralInputPayload class HttpRequestWithRegexLiteralInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInputPayloadBuilder + > { _$HttpRequestWithRegexLiteralInputPayload? _$v; HttpRequestWithRegexLiteralInputPayloadBuilder(); @@ -137,7 +149,8 @@ class HttpRequestWithRegexLiteralInputPayloadBuilder @override void update( - void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? updates) { + void Function(HttpRequestWithRegexLiteralInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart index 63acdcdb2c..7ebe732b72 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.http_response_code_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class HttpResponseCodeOutput return _$HttpResponseCodeOutput._(status: status); } - factory HttpResponseCodeOutput.build( - [void Function(HttpResponseCodeOutputBuilder) updates]) = - _$HttpResponseCodeOutput; + factory HttpResponseCodeOutput.build([ + void Function(HttpResponseCodeOutputBuilder) updates, + ]) = _$HttpResponseCodeOutput; const HttpResponseCodeOutput._(); @@ -31,13 +31,12 @@ abstract class HttpResponseCodeOutput factory HttpResponseCodeOutput.fromResponse( HttpResponseCodeOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.build((b) { - b.status = response.statusCode; - }); + ) => HttpResponseCodeOutput.build((b) { + b.status = response.statusCode; + }); static const List<_i2.SmithySerializer> - serializers = [HttpResponseCodeOutputRestJson1Serializer()]; + serializers = [HttpResponseCodeOutputRestJson1Serializer()]; int? get status; @override @@ -49,25 +48,23 @@ abstract class HttpResponseCodeOutput @override String toString() { final helper = newBuiltValueToStringHelper('HttpResponseCodeOutput') - ..add( - 'status', - status, - ); + ..add('status', status); return helper.toString(); } } @_i3.internal abstract class HttpResponseCodeOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder) updates]) = - _$HttpResponseCodeOutputPayload; + factory HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ]) = _$HttpResponseCodeOutputPayload; const HttpResponseCodeOutputPayload._(); @@ -84,23 +81,20 @@ abstract class HttpResponseCodeOutputPayload class HttpResponseCodeOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const HttpResponseCodeOutputRestJson1Serializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [ - HttpResponseCodeOutput, - _$HttpResponseCodeOutput, - HttpResponseCodeOutputPayload, - _$HttpResponseCodeOutputPayload, - ]; + HttpResponseCodeOutput, + _$HttpResponseCodeOutput, + HttpResponseCodeOutputPayload, + _$HttpResponseCodeOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpResponseCodeOutputPayload deserialize( @@ -116,6 +110,5 @@ class HttpResponseCodeOutputRestJson1Serializer Serializers serializers, HttpResponseCodeOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart index 52c9134fa6..8ce35b317a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/http_response_code_output.g.dart @@ -10,16 +10,16 @@ class _$HttpResponseCodeOutput extends HttpResponseCodeOutput { @override final int? status; - factory _$HttpResponseCodeOutput( - [void Function(HttpResponseCodeOutputBuilder)? updates]) => - (new HttpResponseCodeOutputBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutput([ + void Function(HttpResponseCodeOutputBuilder)? updates, + ]) => (new HttpResponseCodeOutputBuilder()..update(updates))._build(); _$HttpResponseCodeOutput._({this.status}) : super._(); @override HttpResponseCodeOutput rebuild( - void Function(HttpResponseCodeOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputBuilder toBuilder() => @@ -81,16 +81,16 @@ class HttpResponseCodeOutputBuilder } class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { - factory _$HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder)? updates]) => - (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder)? updates, + ]) => (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); _$HttpResponseCodeOutputPayload._() : super._(); @override HttpResponseCodeOutputPayload rebuild( - void Function(HttpResponseCodeOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { class HttpResponseCodeOutputPayloadBuilder implements - Builder { + Builder< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + > { _$HttpResponseCodeOutputPayload? _$v; HttpResponseCodeOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart index 00bd8abcb0..4156db0eab 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.ignore_query_params_in_response_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignore_query_params_in_response_output.g.dart'; abstract class IgnoreQueryParamsInResponseOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { factory IgnoreQueryParamsInResponseOutput({String? baz}) { return _$IgnoreQueryParamsInResponseOutput._(baz: baz); } - factory IgnoreQueryParamsInResponseOutput.build( - [void Function(IgnoreQueryParamsInResponseOutputBuilder) updates]) = - _$IgnoreQueryParamsInResponseOutput; + factory IgnoreQueryParamsInResponseOutput.build([ + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ]) = _$IgnoreQueryParamsInResponseOutput; const IgnoreQueryParamsInResponseOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoreQueryParamsInResponseOutput factory IgnoreQueryParamsInResponseOutput.fromResponse( IgnoreQueryParamsInResponseOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoreQueryParamsInResponseOutputRestJson1Serializer()]; + serializers = [IgnoreQueryParamsInResponseOutputRestJson1Serializer()]; String? get baz; @override @@ -42,12 +42,9 @@ abstract class IgnoreQueryParamsInResponseOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('IgnoreQueryParamsInResponseOutput') - ..add( - 'baz', - baz, - ); + final helper = newBuiltValueToStringHelper( + 'IgnoreQueryParamsInResponseOutput', + )..add('baz', baz); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestJson1Serializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [ - IgnoreQueryParamsInResponseOutput, - _$IgnoreQueryParamsInResponseOutput, - ]; + IgnoreQueryParamsInResponseOutput, + _$IgnoreQueryParamsInResponseOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -88,10 +82,12 @@ class IgnoreQueryParamsInResponseOutputRestJson1Serializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -109,10 +105,9 @@ class IgnoreQueryParamsInResponseOutputRestJson1Serializer if (baz != null) { result$ ..add('baz') - ..add(serializers.serialize( - baz, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(baz, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart index a893debc6f..c6019441a5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/ignore_query_params_in_response_output.g.dart @@ -11,8 +11,9 @@ class _$IgnoreQueryParamsInResponseOutput @override final String? baz; - factory _$IgnoreQueryParamsInResponseOutput( - [void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates]) => + factory _$IgnoreQueryParamsInResponseOutput([ + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ]) => (new IgnoreQueryParamsInResponseOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$IgnoreQueryParamsInResponseOutput @override IgnoreQueryParamsInResponseOutput rebuild( - void Function(IgnoreQueryParamsInResponseOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoreQueryParamsInResponseOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputBuilder implements - Builder { + Builder< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { _$IgnoreQueryParamsInResponseOutput? _$v; String? _baz; @@ -71,7 +74,8 @@ class IgnoreQueryParamsInResponseOutputBuilder @override void update( - void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates) { + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart index 94613480d3..9f04da0a25 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.input_and_output_with_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -61,22 +61,24 @@ abstract class InputAndOutputWithHeadersIo headerIntegerList == null ? null : _i4.BuiltList(headerIntegerList), headerBooleanList: headerBooleanList == null ? null : _i4.BuiltList(headerBooleanList), - headerTimestampList: headerTimestampList == null - ? null - : _i4.BuiltList(headerTimestampList), + headerTimestampList: + headerTimestampList == null + ? null + : _i4.BuiltList(headerTimestampList), headerEnum: headerEnum, headerEnumList: headerEnumList == null ? null : _i4.BuiltList(headerEnumList), headerIntegerEnum: headerIntegerEnum, - headerIntegerEnumList: headerIntegerEnumList == null - ? null - : _i4.BuiltList(headerIntegerEnumList), + headerIntegerEnumList: + headerIntegerEnumList == null + ? null + : _i4.BuiltList(headerIntegerEnumList), ); } - factory InputAndOutputWithHeadersIo.build( - [void Function(InputAndOutputWithHeadersIoBuilder) updates]) = - _$InputAndOutputWithHeadersIo; + factory InputAndOutputWithHeadersIo.build([ + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ]) = _$InputAndOutputWithHeadersIo; const InputAndOutputWithHeadersIo._(); @@ -84,170 +86,202 @@ abstract class InputAndOutputWithHeadersIo InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - InputAndOutputWithHeadersIo.build((b) { - if (request.headers['X-String'] != null) { - b.headerString = request.headers['X-String']!; - } - if (request.headers['X-Byte'] != null) { - b.headerByte = int.parse(request.headers['X-Byte']!); - } - if (request.headers['X-Short'] != null) { - b.headerShort = int.parse(request.headers['X-Short']!); - } - if (request.headers['X-Integer'] != null) { - b.headerInteger = int.parse(request.headers['X-Integer']!); - } - if (request.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); - } - if (request.headers['X-Float'] != null) { - b.headerFloat = double.parse(request.headers['X-Float']!); - } - if (request.headers['X-Double'] != null) { - b.headerDouble = double.parse(request.headers['X-Double']!); - } - if (request.headers['X-Boolean1'] != null) { - b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; - } - if (request.headers['X-Boolean2'] != null) { - b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; - } - if (request.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(request.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (request.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(request.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (request.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(request.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(request.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - request.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + }) => InputAndOutputWithHeadersIo.build((b) { + if (request.headers['X-String'] != null) { + b.headerString = request.headers['X-String']!; + } + if (request.headers['X-Byte'] != null) { + b.headerByte = int.parse(request.headers['X-Byte']!); + } + if (request.headers['X-Short'] != null) { + b.headerShort = int.parse(request.headers['X-Short']!); + } + if (request.headers['X-Integer'] != null) { + b.headerInteger = int.parse(request.headers['X-Integer']!); + } + if (request.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); + } + if (request.headers['X-Float'] != null) { + b.headerFloat = double.parse(request.headers['X-Float']!); + } + if (request.headers['X-Double'] != null) { + b.headerDouble = double.parse(request.headers['X-Double']!); + } + if (request.headers['X-Boolean1'] != null) { + b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; + } + if (request.headers['X-Boolean2'] != null) { + b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; + } + if (request.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(request.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (request.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1.parseHeader(request.headers['X-StringSet']!).map((el) => el.trim()), + ); + } + if (request.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(request.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(request.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + request.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); - } - if (request.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(request.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.headers['X-IntegerEnum'] != null) { - b.headerIntegerEnum = IntegerEnum.values - .byValue(int.parse(request.headers['X-IntegerEnum']!)); - } - if (request.headers['X-IntegerEnumList'] != null) { - b.headerIntegerEnumList.addAll(_i1 - .parseHeader(request.headers['X-IntegerEnumList']!) - .map((el) => IntegerEnum.values.byValue(int.parse(el.trim())))); - } - }); + ).asDateTime, + ), + ); + } + if (request.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); + } + if (request.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(request.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.headers['X-IntegerEnum'] != null) { + b.headerIntegerEnum = IntegerEnum.values.byValue( + int.parse(request.headers['X-IntegerEnum']!), + ); + } + if (request.headers['X-IntegerEnumList'] != null) { + b.headerIntegerEnumList.addAll( + _i1 + .parseHeader(request.headers['X-IntegerEnumList']!) + .map((el) => IntegerEnum.values.byValue(int.parse(el.trim()))), + ); + } + }); /// Constructs a [InputAndOutputWithHeadersIo] from a [payload] and [response]. factory InputAndOutputWithHeadersIo.fromResponse( InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.build((b) { - if (response.headers['X-String'] != null) { - b.headerString = response.headers['X-String']!; - } - if (response.headers['X-Byte'] != null) { - b.headerByte = int.parse(response.headers['X-Byte']!); - } - if (response.headers['X-Short'] != null) { - b.headerShort = int.parse(response.headers['X-Short']!); - } - if (response.headers['X-Integer'] != null) { - b.headerInteger = int.parse(response.headers['X-Integer']!); - } - if (response.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); - } - if (response.headers['X-Float'] != null) { - b.headerFloat = double.parse(response.headers['X-Float']!); - } - if (response.headers['X-Double'] != null) { - b.headerDouble = double.parse(response.headers['X-Double']!); - } - if (response.headers['X-Boolean1'] != null) { - b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; - } - if (response.headers['X-Boolean2'] != null) { - b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; - } - if (response.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(response.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (response.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(response.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (response.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(response.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (response.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(response.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (response.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - response.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + ) => InputAndOutputWithHeadersIo.build((b) { + if (response.headers['X-String'] != null) { + b.headerString = response.headers['X-String']!; + } + if (response.headers['X-Byte'] != null) { + b.headerByte = int.parse(response.headers['X-Byte']!); + } + if (response.headers['X-Short'] != null) { + b.headerShort = int.parse(response.headers['X-Short']!); + } + if (response.headers['X-Integer'] != null) { + b.headerInteger = int.parse(response.headers['X-Integer']!); + } + if (response.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); + } + if (response.headers['X-Float'] != null) { + b.headerFloat = double.parse(response.headers['X-Float']!); + } + if (response.headers['X-Double'] != null) { + b.headerDouble = double.parse(response.headers['X-Double']!); + } + if (response.headers['X-Boolean1'] != null) { + b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; + } + if (response.headers['X-Boolean2'] != null) { + b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; + } + if (response.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(response.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1 + .parseHeader(response.headers['X-StringSet']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(response.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (response.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(response.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (response.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + response.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (response.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); - } - if (response.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(response.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (response.headers['X-IntegerEnum'] != null) { - b.headerIntegerEnum = IntegerEnum.values - .byValue(int.parse(response.headers['X-IntegerEnum']!)); - } - if (response.headers['X-IntegerEnumList'] != null) { - b.headerIntegerEnumList.addAll(_i1 - .parseHeader(response.headers['X-IntegerEnumList']!) - .map((el) => IntegerEnum.values.byValue(int.parse(el.trim())))); - } - }); + ).asDateTime, + ), + ); + } + if (response.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); + } + if (response.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(response.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (response.headers['X-IntegerEnum'] != null) { + b.headerIntegerEnum = IntegerEnum.values.byValue( + int.parse(response.headers['X-IntegerEnum']!), + ); + } + if (response.headers['X-IntegerEnumList'] != null) { + b.headerIntegerEnumList.addAll( + _i1 + .parseHeader(response.headers['X-IntegerEnumList']!) + .map((el) => IntegerEnum.values.byValue(int.parse(el.trim()))), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [InputAndOutputWithHeadersIoRestJson1Serializer()]; + serializers = [InputAndOutputWithHeadersIoRestJson1Serializer()]; String? get headerString; int? get headerByte; @@ -273,116 +307,64 @@ abstract class InputAndOutputWithHeadersIo @override List get props => [ - headerString, - headerByte, - headerShort, - headerInteger, - headerLong, - headerFloat, - headerDouble, - headerTrueBool, - headerFalseBool, - headerStringList, - headerStringSet, - headerIntegerList, - headerBooleanList, - headerTimestampList, - headerEnum, - headerEnumList, - headerIntegerEnum, - headerIntegerEnumList, - ]; + headerString, + headerByte, + headerShort, + headerInteger, + headerLong, + headerFloat, + headerDouble, + headerTrueBool, + headerFalseBool, + headerStringList, + headerStringSet, + headerIntegerList, + headerBooleanList, + headerTimestampList, + headerEnum, + headerEnumList, + headerIntegerEnum, + headerIntegerEnumList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') - ..add( - 'headerString', - headerString, - ) - ..add( - 'headerByte', - headerByte, - ) - ..add( - 'headerShort', - headerShort, - ) - ..add( - 'headerInteger', - headerInteger, - ) - ..add( - 'headerLong', - headerLong, - ) - ..add( - 'headerFloat', - headerFloat, - ) - ..add( - 'headerDouble', - headerDouble, - ) - ..add( - 'headerTrueBool', - headerTrueBool, - ) - ..add( - 'headerFalseBool', - headerFalseBool, - ) - ..add( - 'headerStringList', - headerStringList, - ) - ..add( - 'headerStringSet', - headerStringSet, - ) - ..add( - 'headerIntegerList', - headerIntegerList, - ) - ..add( - 'headerBooleanList', - headerBooleanList, - ) - ..add( - 'headerTimestampList', - headerTimestampList, - ) - ..add( - 'headerEnum', - headerEnum, - ) - ..add( - 'headerEnumList', - headerEnumList, - ) - ..add( - 'headerIntegerEnum', - headerIntegerEnum, - ) - ..add( - 'headerIntegerEnumList', - headerIntegerEnumList, - ); + final helper = + newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') + ..add('headerString', headerString) + ..add('headerByte', headerByte) + ..add('headerShort', headerShort) + ..add('headerInteger', headerInteger) + ..add('headerLong', headerLong) + ..add('headerFloat', headerFloat) + ..add('headerDouble', headerDouble) + ..add('headerTrueBool', headerTrueBool) + ..add('headerFalseBool', headerFalseBool) + ..add('headerStringList', headerStringList) + ..add('headerStringSet', headerStringSet) + ..add('headerIntegerList', headerIntegerList) + ..add('headerBooleanList', headerBooleanList) + ..add('headerTimestampList', headerTimestampList) + ..add('headerEnum', headerEnum) + ..add('headerEnumList', headerEnumList) + ..add('headerIntegerEnum', headerIntegerEnum) + ..add('headerIntegerEnumList', headerIntegerEnumList); return helper.toString(); } } @_i5.internal abstract class InputAndOutputWithHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates]) = - _$InputAndOutputWithHeadersIoPayload; + factory InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ]) = _$InputAndOutputWithHeadersIoPayload; const InputAndOutputWithHeadersIoPayload._(); @@ -391,8 +373,9 @@ abstract class InputAndOutputWithHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('InputAndOutputWithHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'InputAndOutputWithHeadersIoPayload', + ); return helper.toString(); } } @@ -400,23 +383,20 @@ abstract class InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoRestJson1Serializer extends _i1.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestJson1Serializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [ - InputAndOutputWithHeadersIo, - _$InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - _$InputAndOutputWithHeadersIoPayload, - ]; + InputAndOutputWithHeadersIo, + _$InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + _$InputAndOutputWithHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InputAndOutputWithHeadersIoPayload deserialize( @@ -432,6 +412,5 @@ class InputAndOutputWithHeadersIoRestJson1Serializer Serializers serializers, InputAndOutputWithHeadersIoPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart index c060bc4840..f60dfd133a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/input_and_output_with_headers_io.g.dart @@ -44,35 +44,35 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { @override final _i4.BuiltList? headerIntegerEnumList; - factory _$InputAndOutputWithHeadersIo( - [void Function(InputAndOutputWithHeadersIoBuilder)? updates]) => - (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); - - _$InputAndOutputWithHeadersIo._( - {this.headerString, - this.headerByte, - this.headerShort, - this.headerInteger, - this.headerLong, - this.headerFloat, - this.headerDouble, - this.headerTrueBool, - this.headerFalseBool, - this.headerStringList, - this.headerStringSet, - this.headerIntegerList, - this.headerBooleanList, - this.headerTimestampList, - this.headerEnum, - this.headerEnumList, - this.headerIntegerEnum, - this.headerIntegerEnumList}) - : super._(); + factory _$InputAndOutputWithHeadersIo([ + void Function(InputAndOutputWithHeadersIoBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); + + _$InputAndOutputWithHeadersIo._({ + this.headerString, + this.headerByte, + this.headerShort, + this.headerInteger, + this.headerLong, + this.headerFloat, + this.headerDouble, + this.headerTrueBool, + this.headerFalseBool, + this.headerStringList, + this.headerStringSet, + this.headerIntegerList, + this.headerBooleanList, + this.headerTimestampList, + this.headerEnum, + this.headerEnumList, + this.headerIntegerEnum, + this.headerIntegerEnumList, + }) : super._(); @override InputAndOutputWithHeadersIo rebuild( - void Function(InputAndOutputWithHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoBuilder toBuilder() => @@ -130,8 +130,10 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { class InputAndOutputWithHeadersIoBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoBuilder + > { _$InputAndOutputWithHeadersIo? _$v; String? _headerString; @@ -222,8 +224,8 @@ class InputAndOutputWithHeadersIoBuilder _i4.ListBuilder get headerIntegerEnumList => _$this._headerIntegerEnumList ??= new _i4.ListBuilder(); set headerIntegerEnumList( - _i4.ListBuilder? headerIntegerEnumList) => - _$this._headerIntegerEnumList = headerIntegerEnumList; + _i4.ListBuilder? headerIntegerEnumList, + ) => _$this._headerIntegerEnumList = headerIntegerEnumList; InputAndOutputWithHeadersIoBuilder(); @@ -270,26 +272,28 @@ class InputAndOutputWithHeadersIoBuilder _$InputAndOutputWithHeadersIo _build() { _$InputAndOutputWithHeadersIo _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InputAndOutputWithHeadersIo._( - headerString: headerString, - headerByte: headerByte, - headerShort: headerShort, - headerInteger: headerInteger, - headerLong: headerLong, - headerFloat: headerFloat, - headerDouble: headerDouble, - headerTrueBool: headerTrueBool, - headerFalseBool: headerFalseBool, - headerStringList: _headerStringList?.build(), - headerStringSet: _headerStringSet?.build(), - headerIntegerList: _headerIntegerList?.build(), - headerBooleanList: _headerBooleanList?.build(), - headerTimestampList: _headerTimestampList?.build(), - headerEnum: headerEnum, - headerEnumList: _headerEnumList?.build(), - headerIntegerEnum: headerIntegerEnum, - headerIntegerEnumList: _headerIntegerEnumList?.build()); + headerString: headerString, + headerByte: headerByte, + headerShort: headerShort, + headerInteger: headerInteger, + headerLong: headerLong, + headerFloat: headerFloat, + headerDouble: headerDouble, + headerTrueBool: headerTrueBool, + headerFalseBool: headerFalseBool, + headerStringList: _headerStringList?.build(), + headerStringSet: _headerStringSet?.build(), + headerIntegerList: _headerIntegerList?.build(), + headerBooleanList: _headerBooleanList?.build(), + headerTimestampList: _headerTimestampList?.build(), + headerEnum: headerEnum, + headerEnumList: _headerEnumList?.build(), + headerIntegerEnum: headerIntegerEnum, + headerIntegerEnumList: _headerIntegerEnumList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -311,7 +315,10 @@ class InputAndOutputWithHeadersIoBuilder _headerIntegerEnumList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InputAndOutputWithHeadersIo', _$failedField, e.toString()); + r'InputAndOutputWithHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -322,9 +329,9 @@ class InputAndOutputWithHeadersIoBuilder class _$InputAndOutputWithHeadersIoPayload extends InputAndOutputWithHeadersIoPayload { - factory _$InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder)? - updates]) => + factory _$InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoPayloadBuilder()..update(updates)) ._build(); @@ -332,8 +339,8 @@ class _$InputAndOutputWithHeadersIoPayload @override InputAndOutputWithHeadersIoPayload rebuild( - void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoPayloadBuilder toBuilder() => @@ -353,8 +360,10 @@ class _$InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoPayloadBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + > { _$InputAndOutputWithHeadersIoPayload? _$v; InputAndOutputWithHeadersIoPayloadBuilder(); @@ -367,7 +376,8 @@ class InputAndOutputWithHeadersIoPayloadBuilder @override void update( - void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates) { + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/integer_enum.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/integer_enum.dart index 21a5c21e0b..47f68bde0e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/integer_enum.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/integer_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.integer_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class IntegerEnum extends _i1.SmithyIntEnum { - const IntegerEnum._( - super.index, - super.name, - super.value, - ); + const IntegerEnum._(super.index, super.name, super.value); const IntegerEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = IntegerEnum._( - 0, - 'A', - 1, - ); + static const a = IntegerEnum._(0, 'A', 1); - static const b = IntegerEnum._( - 1, - 'B', - 2, - ); + static const b = IntegerEnum._(1, 'B', 2); - static const c = IntegerEnum._( - 2, - 'C', - 3, - ); + static const c = IntegerEnum._(2, 'C', 3); /// All values of [IntegerEnum]. static const values = [ @@ -45,12 +29,9 @@ class IntegerEnum extends _i1.SmithyIntEnum { values: values, sdkUnknown: IntegerEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart index 0cf92b5b56..192295cb74 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,22 +32,21 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingRestJson1Serializer() + InvalidGreetingRestJson1Serializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.restjson', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingRestJson1Serializer const InvalidGreetingRestJson1Serializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidGreeting deserialize( @@ -110,10 +101,12 @@ class InvalidGreetingRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +124,9 @@ class InvalidGreetingRestJson1Serializer if (message != null) { result$ ..add('Message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart index bf76eb454f..9d90261d4c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.json_blobs_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class JsonBlobsInputOutput return _$JsonBlobsInputOutput._(data: data); } - factory JsonBlobsInputOutput.build( - [void Function(JsonBlobsInputOutputBuilder) updates]) = - _$JsonBlobsInputOutput; + factory JsonBlobsInputOutput.build([ + void Function(JsonBlobsInputOutputBuilder) updates, + ]) = _$JsonBlobsInputOutput; const JsonBlobsInputOutput._(); @@ -31,18 +31,16 @@ abstract class JsonBlobsInputOutput JsonBlobsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonBlobsInputOutput] from a [payload] and [response]. factory JsonBlobsInputOutput.fromResponse( JsonBlobsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonBlobsInputOutputRestJson1Serializer() + JsonBlobsInputOutputRestJson1Serializer(), ]; _i3.Uint8List? get data; @@ -55,10 +53,7 @@ abstract class JsonBlobsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('JsonBlobsInputOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -66,21 +61,18 @@ abstract class JsonBlobsInputOutput class JsonBlobsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonBlobsInputOutputRestJson1Serializer() - : super('JsonBlobsInputOutput'); + : super('JsonBlobsInputOutput'); @override Iterable get types => const [ - JsonBlobsInputOutput, - _$JsonBlobsInputOutput, - ]; + JsonBlobsInputOutput, + _$JsonBlobsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonBlobsInputOutput deserialize( @@ -99,10 +91,12 @@ class JsonBlobsInputOutputRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } } @@ -120,10 +114,12 @@ class JsonBlobsInputOutputRestJson1Serializer if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart index 443245dbf5..b7d402967f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_blobs_input_output.g.dart @@ -10,16 +10,16 @@ class _$JsonBlobsInputOutput extends JsonBlobsInputOutput { @override final _i3.Uint8List? data; - factory _$JsonBlobsInputOutput( - [void Function(JsonBlobsInputOutputBuilder)? updates]) => - (new JsonBlobsInputOutputBuilder()..update(updates))._build(); + factory _$JsonBlobsInputOutput([ + void Function(JsonBlobsInputOutputBuilder)? updates, + ]) => (new JsonBlobsInputOutputBuilder()..update(updates))._build(); _$JsonBlobsInputOutput._({this.data}) : super._(); @override JsonBlobsInputOutput rebuild( - void Function(JsonBlobsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonBlobsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonBlobsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart index 46ea5312b9..b4ae10aaa7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.json_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class JsonEnumsInputOutput ); } - factory JsonEnumsInputOutput.build( - [void Function(JsonEnumsInputOutputBuilder) updates]) = - _$JsonEnumsInputOutput; + factory JsonEnumsInputOutput.build([ + void Function(JsonEnumsInputOutputBuilder) updates, + ]) = _$JsonEnumsInputOutput; const JsonEnumsInputOutput._(); @@ -45,18 +45,16 @@ abstract class JsonEnumsInputOutput JsonEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonEnumsInputOutput] from a [payload] and [response]. factory JsonEnumsInputOutput.fromResponse( JsonEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonEnumsInputOutputRestJson1Serializer() + JsonEnumsInputOutputRestJson1Serializer(), ]; FooEnum? get fooEnum1; @@ -70,41 +68,24 @@ abstract class JsonEnumsInputOutput @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonEnumsInputOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonEnumsInputOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -112,21 +93,18 @@ abstract class JsonEnumsInputOutput class JsonEnumsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonEnumsInputOutputRestJson1Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [ - JsonEnumsInputOutput, - _$JsonEnumsInputOutput, - ]; + JsonEnumsInputOutput, + _$JsonEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -145,47 +123,57 @@ class JsonEnumsInputOutputRestJson1Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i3.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i3.BuiltMap), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i3.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltSet), + ); } } @@ -205,67 +193,70 @@ class JsonEnumsInputOutputRestJson1Serializer :fooEnum3, :fooEnumList, :fooEnumMap, - :fooEnumSet + :fooEnumSet, ) = object; if (fooEnum1 != null) { result$ ..add('fooEnum1') - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add('fooEnum2') - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add('fooEnum3') - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add('fooEnumList') - ..add(serializers.serialize( - fooEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add('fooEnumMap') - ..add(serializers.serialize( - fooEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + fooEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add('fooEnumSet') - ..add(serializers.serialize( - fooEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], + ..add( + serializers.serialize( + fooEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart index 8900baa257..38430e2c69 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonEnumsInputOutput extends JsonEnumsInputOutput { @override final _i3.BuiltMap? fooEnumMap; - factory _$JsonEnumsInputOutput( - [void Function(JsonEnumsInputOutputBuilder)? updates]) => - (new JsonEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonEnumsInputOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + factory _$JsonEnumsInputOutput([ + void Function(JsonEnumsInputOutputBuilder)? updates, + ]) => (new JsonEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonEnumsInputOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override JsonEnumsInputOutput rebuild( - void Function(JsonEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class JsonEnumsInputOutputBuilder _$JsonEnumsInputOutput _build() { _$JsonEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonEnumsInputOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class JsonEnumsInputOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonEnumsInputOutput', _$failedField, e.toString()); + r'JsonEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart index abb9b79dbc..7f69d9ccb8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.json_int_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,9 +38,9 @@ abstract class JsonIntEnumsInputOutput ); } - factory JsonIntEnumsInputOutput.build( - [void Function(JsonIntEnumsInputOutputBuilder) updates]) = - _$JsonIntEnumsInputOutput; + factory JsonIntEnumsInputOutput.build([ + void Function(JsonIntEnumsInputOutputBuilder) updates, + ]) = _$JsonIntEnumsInputOutput; const JsonIntEnumsInputOutput._(); @@ -48,15 +48,13 @@ abstract class JsonIntEnumsInputOutput JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonIntEnumsInputOutput] from a [payload] and [response]. factory JsonIntEnumsInputOutput.fromResponse( JsonIntEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [JsonIntEnumsInputOutputRestJson1Serializer()]; @@ -72,41 +70,24 @@ abstract class JsonIntEnumsInputOutput @override List get props => [ - integerEnum1, - integerEnum2, - integerEnum3, - integerEnumList, - integerEnumSet, - integerEnumMap, - ]; + integerEnum1, + integerEnum2, + integerEnum3, + integerEnumList, + integerEnumSet, + integerEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonIntEnumsInputOutput') - ..add( - 'integerEnum1', - integerEnum1, - ) - ..add( - 'integerEnum2', - integerEnum2, - ) - ..add( - 'integerEnum3', - integerEnum3, - ) - ..add( - 'integerEnumList', - integerEnumList, - ) - ..add( - 'integerEnumSet', - integerEnumSet, - ) - ..add( - 'integerEnumMap', - integerEnumMap, - ); + final helper = + newBuiltValueToStringHelper('JsonIntEnumsInputOutput') + ..add('integerEnum1', integerEnum1) + ..add('integerEnum2', integerEnum2) + ..add('integerEnum3', integerEnum3) + ..add('integerEnumList', integerEnumList) + ..add('integerEnumSet', integerEnumSet) + ..add('integerEnumMap', integerEnumMap); return helper.toString(); } } @@ -114,21 +95,18 @@ abstract class JsonIntEnumsInputOutput class JsonIntEnumsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonIntEnumsInputOutputRestJson1Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [ - JsonIntEnumsInputOutput, - _$JsonIntEnumsInputOutput, - ]; + JsonIntEnumsInputOutput, + _$JsonIntEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -147,47 +125,57 @@ class JsonIntEnumsInputOutputRestJson1Serializer } switch (key) { case 'integerEnum1': - result.integerEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'integerEnum2': - result.integerEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'integerEnum3': - result.integerEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'integerEnumList': - result.integerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltList)); + result.integerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltList), + ); case 'integerEnumMap': - result.integerEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ), - ) as _i3.BuiltMap)); + result.integerEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltMap), + ); case 'integerEnumSet': - result.integerEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltSet)); + result.integerEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltSet), + ); } } @@ -207,67 +195,74 @@ class JsonIntEnumsInputOutputRestJson1Serializer :integerEnum3, :integerEnumList, :integerEnumMap, - :integerEnumSet + :integerEnumSet, ) = object; if (integerEnum1 != null) { result$ ..add('integerEnum1') - ..add(serializers.serialize( - integerEnum1, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + integerEnum1, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (integerEnum2 != null) { result$ ..add('integerEnum2') - ..add(serializers.serialize( - integerEnum2, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + integerEnum2, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (integerEnum3 != null) { result$ ..add('integerEnum3') - ..add(serializers.serialize( - integerEnum3, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + integerEnum3, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (integerEnumList != null) { result$ ..add('integerEnumList') - ..add(serializers.serialize( - integerEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], + ..add( + serializers.serialize( + integerEnumList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (integerEnumMap != null) { result$ ..add('integerEnumMap') - ..add(serializers.serialize( - integerEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + integerEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); } if (integerEnumSet != null) { result$ ..add('integerEnumSet') - ..add(serializers.serialize( - integerEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(IntegerEnum)], + ..add( + serializers.serialize( + integerEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(IntegerEnum), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart index 68a4517ee8..bb32f7550c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_int_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$JsonIntEnumsInputOutput extends JsonIntEnumsInputOutput { @override final _i3.BuiltMap? integerEnumMap; - factory _$JsonIntEnumsInputOutput( - [void Function(JsonIntEnumsInputOutputBuilder)? updates]) => - (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); - - _$JsonIntEnumsInputOutput._( - {this.integerEnum1, - this.integerEnum2, - this.integerEnum3, - this.integerEnumList, - this.integerEnumSet, - this.integerEnumMap}) - : super._(); + factory _$JsonIntEnumsInputOutput([ + void Function(JsonIntEnumsInputOutputBuilder)? updates, + ]) => (new JsonIntEnumsInputOutputBuilder()..update(updates))._build(); + + _$JsonIntEnumsInputOutput._({ + this.integerEnum1, + this.integerEnum2, + this.integerEnum3, + this.integerEnumList, + this.integerEnumSet, + this.integerEnumMap, + }) : super._(); @override JsonIntEnumsInputOutput rebuild( - void Function(JsonIntEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonIntEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonIntEnumsInputOutputBuilder toBuilder() => @@ -139,14 +139,16 @@ class JsonIntEnumsInputOutputBuilder _$JsonIntEnumsInputOutput _build() { _$JsonIntEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonIntEnumsInputOutput._( - integerEnum1: integerEnum1, - integerEnum2: integerEnum2, - integerEnum3: integerEnum3, - integerEnumList: _integerEnumList?.build(), - integerEnumSet: _integerEnumSet?.build(), - integerEnumMap: _integerEnumMap?.build()); + integerEnum1: integerEnum1, + integerEnum2: integerEnum2, + integerEnum3: integerEnum3, + integerEnumList: _integerEnumList?.build(), + integerEnumSet: _integerEnumSet?.build(), + integerEnumMap: _integerEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class JsonIntEnumsInputOutputBuilder _integerEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonIntEnumsInputOutput', _$failedField, e.toString()); + r'JsonIntEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart index 0b67796f2e..00bd37c9bd 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.json_lists_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,17 +42,18 @@ abstract class JsonListsInputOutput timestampList == null ? null : _i3.BuiltList(timestampList), enumList: enumList == null ? null : _i3.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i3.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), structureList: structureList == null ? null : _i3.BuiltList(structureList), ); } - factory JsonListsInputOutput.build( - [void Function(JsonListsInputOutputBuilder) updates]) = - _$JsonListsInputOutput; + factory JsonListsInputOutput.build([ + void Function(JsonListsInputOutputBuilder) updates, + ]) = _$JsonListsInputOutput; const JsonListsInputOutput._(); @@ -60,18 +61,16 @@ abstract class JsonListsInputOutput JsonListsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonListsInputOutput] from a [payload] and [response]. factory JsonListsInputOutput.fromResponse( JsonListsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonListsInputOutputRestJson1Serializer() + JsonListsInputOutputRestJson1Serializer(), ]; _i3.BuiltList? get stringList; @@ -91,61 +90,32 @@ abstract class JsonListsInputOutput @override List get props => [ - stringList, - sparseStringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - structureList, - ]; + stringList, + sparseStringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + structureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonListsInputOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'sparseStringList', - sparseStringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'structureList', - structureList, - ); + final helper = + newBuiltValueToStringHelper('JsonListsInputOutput') + ..add('stringList', stringList) + ..add('sparseStringList', sparseStringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('structureList', structureList); return helper.toString(); } } @@ -153,21 +123,18 @@ abstract class JsonListsInputOutput class JsonListsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonListsInputOutputRestJson1Serializer() - : super('JsonListsInputOutput'); + : super('JsonListsInputOutput'); @override Iterable get types => const [ - JsonListsInputOutput, - _$JsonListsInputOutput, - ]; + JsonListsInputOutput, + _$JsonListsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonListsInputOutput deserialize( @@ -186,90 +153,103 @@ class JsonListsInputOutputRestJson1Serializer } switch (key) { case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], - ), - ) as _i3.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(bool), + ]), + ) + as _i3.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltList), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i3.BuiltList<_i3.BuiltList>)); + as _i3.BuiltList<_i3.BuiltList>), + ); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], - ), - ) as _i3.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], - ), - ) as _i3.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(String), + ]), + ) + as _i3.BuiltSet), + ); case 'myStructureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i3.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i3.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], - ), - ) as _i3.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i3.BuiltList), + ); } } @@ -293,122 +273,115 @@ class JsonListsInputOutputRestJson1Serializer :stringList, :stringSet, :structureList, - :timestampList + :timestampList, ) = object; if (booleanList != null) { result$ ..add('booleanList') - ..add(serializers.serialize( - booleanList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], + ..add( + serializers.serialize( + booleanList, + specifiedType: const FullType(_i3.BuiltList, [FullType(bool)]), ), - )); + ); } if (enumList != null) { result$ ..add('enumList') - ..add(serializers.serialize( - enumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + serializers.serialize( + enumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (intEnumList != null) { result$ ..add('intEnumList') - ..add(serializers.serialize( - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], + ..add( + serializers.serialize( + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (integerList != null) { result$ ..add('integerList') - ..add(serializers.serialize( - integerList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + serializers.serialize( + integerList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (nestedStringList != null) { result$ ..add('nestedStringList') - ..add(serializers.serialize( - nestedStringList, - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], - ) - ], + ..add( + serializers.serialize( + nestedStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (sparseStringList != null) { result$ ..add('sparseStringList') - ..add(serializers.serialize( - sparseStringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType.nullable(String)], + ..add( + serializers.serialize( + sparseStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType.nullable(String), + ]), ), - )); + ); } if (stringList != null) { result$ ..add('stringList') - ..add(serializers.serialize( - stringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + stringList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add('stringSet') - ..add(serializers.serialize( - stringSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], + ..add( + serializers.serialize( + stringSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add('myStructureList') - ..add(serializers.serialize( - structureList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], + ..add( + serializers.serialize( + structureList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } if (timestampList != null) { result$ ..add('timestampList') - ..add(serializers.serialize( - timestampList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], + ..add( + serializers.serialize( + timestampList, + specifiedType: const FullType(_i3.BuiltList, [FullType(DateTime)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart index 5f784e32ff..c5bf67db8c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_lists_input_output.g.dart @@ -28,27 +28,27 @@ class _$JsonListsInputOutput extends JsonListsInputOutput { @override final _i3.BuiltList? structureList; - factory _$JsonListsInputOutput( - [void Function(JsonListsInputOutputBuilder)? updates]) => - (new JsonListsInputOutputBuilder()..update(updates))._build(); - - _$JsonListsInputOutput._( - {this.stringList, - this.sparseStringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.structureList}) - : super._(); + factory _$JsonListsInputOutput([ + void Function(JsonListsInputOutputBuilder)? updates, + ]) => (new JsonListsInputOutputBuilder()..update(updates))._build(); + + _$JsonListsInputOutput._({ + this.stringList, + this.sparseStringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.structureList, + }) : super._(); @override JsonListsInputOutput rebuild( - void Function(JsonListsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonListsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonListsInputOutputBuilder toBuilder() => @@ -144,8 +144,8 @@ class JsonListsInputOutputBuilder _i3.ListBuilder<_i3.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i3.ListBuilder<_i3.BuiltList>(); set nestedStringList( - _i3.ListBuilder<_i3.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i3.ListBuilder<_i3.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i3.ListBuilder? _structureList; _i3.ListBuilder get structureList => @@ -190,18 +190,20 @@ class JsonListsInputOutputBuilder _$JsonListsInputOutput _build() { _$JsonListsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonListsInputOutput._( - stringList: _stringList?.build(), - sparseStringList: _sparseStringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - structureList: _structureList?.build()); + stringList: _stringList?.build(), + sparseStringList: _sparseStringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + structureList: _structureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -227,7 +229,10 @@ class JsonListsInputOutputBuilder _structureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonListsInputOutput', _$failedField, e.toString()); + r'JsonListsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart index 21287de715..3c30bc27e3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.json_maps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -53,9 +53,9 @@ abstract class JsonMapsInputOutput ); } - factory JsonMapsInputOutput.build( - [void Function(JsonMapsInputOutputBuilder) updates]) = - _$JsonMapsInputOutput; + factory JsonMapsInputOutput.build([ + void Function(JsonMapsInputOutputBuilder) updates, + ]) = _$JsonMapsInputOutput; const JsonMapsInputOutput._(); @@ -63,18 +63,16 @@ abstract class JsonMapsInputOutput JsonMapsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonMapsInputOutput] from a [payload] and [response]. factory JsonMapsInputOutput.fromResponse( JsonMapsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - JsonMapsInputOutputRestJson1Serializer() + JsonMapsInputOutputRestJson1Serializer(), ]; _i3.BuiltMap? get denseStructMap; @@ -92,61 +90,32 @@ abstract class JsonMapsInputOutput @override List get props => [ - denseStructMap, - sparseStructMap, - denseNumberMap, - denseBooleanMap, - denseStringMap, - sparseNumberMap, - sparseBooleanMap, - sparseStringMap, - denseSetMap, - sparseSetMap, - ]; + denseStructMap, + sparseStructMap, + denseNumberMap, + denseBooleanMap, + denseStringMap, + sparseNumberMap, + sparseBooleanMap, + sparseStringMap, + denseSetMap, + sparseSetMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonMapsInputOutput') - ..add( - 'denseStructMap', - denseStructMap, - ) - ..add( - 'sparseStructMap', - sparseStructMap, - ) - ..add( - 'denseNumberMap', - denseNumberMap, - ) - ..add( - 'denseBooleanMap', - denseBooleanMap, - ) - ..add( - 'denseStringMap', - denseStringMap, - ) - ..add( - 'sparseNumberMap', - sparseNumberMap, - ) - ..add( - 'sparseBooleanMap', - sparseBooleanMap, - ) - ..add( - 'sparseStringMap', - sparseStringMap, - ) - ..add( - 'denseSetMap', - denseSetMap, - ) - ..add( - 'sparseSetMap', - sparseSetMap, - ); + final helper = + newBuiltValueToStringHelper('JsonMapsInputOutput') + ..add('denseStructMap', denseStructMap) + ..add('sparseStructMap', sparseStructMap) + ..add('denseNumberMap', denseNumberMap) + ..add('denseBooleanMap', denseBooleanMap) + ..add('denseStringMap', denseStringMap) + ..add('sparseNumberMap', sparseNumberMap) + ..add('sparseBooleanMap', sparseBooleanMap) + ..add('sparseStringMap', sparseStringMap) + ..add('denseSetMap', denseSetMap) + ..add('sparseSetMap', sparseSetMap); return helper.toString(); } } @@ -157,17 +126,14 @@ class JsonMapsInputOutputRestJson1Serializer @override Iterable get types => const [ - JsonMapsInputOutput, - _$JsonMapsInputOutput, - ]; + JsonMapsInputOutput, + _$JsonMapsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonMapsInputOutput deserialize( @@ -186,115 +152,115 @@ class JsonMapsInputOutputRestJson1Serializer } switch (key) { case 'denseBooleanMap': - result.denseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(bool), - ], - ), - ) as _i3.BuiltMap)); + result.denseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(bool), + ]), + ) + as _i3.BuiltMap), + ); case 'denseNumberMap': - result.denseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i3.BuiltMap)); + result.denseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i3.BuiltMap), + ); case 'denseSetMap': - result.denseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltSetMultimap)); + result.denseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltSetMultimap), + ); case 'denseStringMap': - result.denseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.denseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'denseStructMap': - result.denseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i3.BuiltMap)); + result.denseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseBooleanMap': - result.sparseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(bool), - ], - ), - ) as _i3.BuiltMap)); + result.sparseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(bool), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseNumberMap': - result.sparseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(int), - ], - ), - ) as _i3.BuiltMap)); + result.sparseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(int), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseSetMap': - result.sparseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltSetMultimap)); + result.sparseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltSetMultimap), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i3.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i3.BuiltMap), + ); case 'sparseStructMap': - result.sparseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType.nullable(GreetingStruct), - ], - ), - ) as _i3.BuiltMap)); + result.sparseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType.nullable(GreetingStruct), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -318,147 +284,137 @@ class JsonMapsInputOutputRestJson1Serializer :sparseNumberMap, :sparseSetMap, :sparseStringMap, - :sparseStructMap + :sparseStructMap, ) = object; if (denseBooleanMap != null) { result$ ..add('denseBooleanMap') - ..add(serializers.serialize( - denseBooleanMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseBooleanMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(bool), - ], + ]), ), - )); + ); } if (denseNumberMap != null) { result$ ..add('denseNumberMap') - ..add(serializers.serialize( - denseNumberMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseNumberMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(int), - ], + ]), ), - )); + ); } if (denseSetMap != null) { result$ ..add('denseSetMap') - ..add(serializers.serialize( - denseSetMap, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ + ..add( + serializers.serialize( + denseSetMap, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (denseStringMap != null) { result$ ..add('denseStringMap') - ..add(serializers.serialize( - denseStringMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseStringMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (denseStructMap != null) { result$ ..add('denseStructMap') - ..add(serializers.serialize( - denseStructMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + denseStructMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } if (sparseBooleanMap != null) { result$ ..add('sparseBooleanMap') - ..add(serializers.serialize( - sparseBooleanMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseBooleanMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(bool), - ], + ]), ), - )); + ); } if (sparseNumberMap != null) { result$ ..add('sparseNumberMap') - ..add(serializers.serialize( - sparseNumberMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseNumberMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(int), - ], + ]), ), - )); + ); } if (sparseSetMap != null) { result$ ..add('sparseSetMap') - ..add(serializers.serialize( - sparseSetMap, - specifiedType: const FullType( - _i3.BuiltSetMultimap, - [ + ..add( + serializers.serialize( + sparseSetMap, + specifiedType: const FullType(_i3.BuiltSetMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (sparseStringMap != null) { result$ ..add('sparseStringMap') - ..add(serializers.serialize( - sparseStringMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseStringMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(String), - ], + ]), ), - )); + ); } if (sparseStructMap != null) { result$ ..add('sparseStructMap') - ..add(serializers.serialize( - sparseStructMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + sparseStructMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType.nullable(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart index ad9d98f11a..3b11acafbd 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_maps_input_output.g.dart @@ -28,27 +28,27 @@ class _$JsonMapsInputOutput extends JsonMapsInputOutput { @override final _i3.BuiltSetMultimap? sparseSetMap; - factory _$JsonMapsInputOutput( - [void Function(JsonMapsInputOutputBuilder)? updates]) => - (new JsonMapsInputOutputBuilder()..update(updates))._build(); - - _$JsonMapsInputOutput._( - {this.denseStructMap, - this.sparseStructMap, - this.denseNumberMap, - this.denseBooleanMap, - this.denseStringMap, - this.sparseNumberMap, - this.sparseBooleanMap, - this.sparseStringMap, - this.denseSetMap, - this.sparseSetMap}) - : super._(); + factory _$JsonMapsInputOutput([ + void Function(JsonMapsInputOutputBuilder)? updates, + ]) => (new JsonMapsInputOutputBuilder()..update(updates))._build(); + + _$JsonMapsInputOutput._({ + this.denseStructMap, + this.sparseStructMap, + this.denseNumberMap, + this.denseBooleanMap, + this.denseStringMap, + this.sparseNumberMap, + this.sparseBooleanMap, + this.sparseStringMap, + this.denseSetMap, + this.sparseSetMap, + }) : super._(); @override JsonMapsInputOutput rebuild( - void Function(JsonMapsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonMapsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonMapsInputOutputBuilder toBuilder() => @@ -102,8 +102,8 @@ class JsonMapsInputOutputBuilder _i3.MapBuilder get sparseStructMap => _$this._sparseStructMap ??= new _i3.MapBuilder(); set sparseStructMap( - _i3.MapBuilder? sparseStructMap) => - _$this._sparseStructMap = sparseStructMap; + _i3.MapBuilder? sparseStructMap, + ) => _$this._sparseStructMap = sparseStructMap; _i3.MapBuilder? _denseNumberMap; _i3.MapBuilder get denseNumberMap => @@ -190,18 +190,20 @@ class JsonMapsInputOutputBuilder _$JsonMapsInputOutput _build() { _$JsonMapsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$JsonMapsInputOutput._( - denseStructMap: _denseStructMap?.build(), - sparseStructMap: _sparseStructMap?.build(), - denseNumberMap: _denseNumberMap?.build(), - denseBooleanMap: _denseBooleanMap?.build(), - denseStringMap: _denseStringMap?.build(), - sparseNumberMap: _sparseNumberMap?.build(), - sparseBooleanMap: _sparseBooleanMap?.build(), - sparseStringMap: _sparseStringMap?.build(), - denseSetMap: _denseSetMap?.build(), - sparseSetMap: _sparseSetMap?.build()); + denseStructMap: _denseStructMap?.build(), + sparseStructMap: _sparseStructMap?.build(), + denseNumberMap: _denseNumberMap?.build(), + denseBooleanMap: _denseBooleanMap?.build(), + denseStringMap: _denseStringMap?.build(), + sparseNumberMap: _sparseNumberMap?.build(), + sparseBooleanMap: _sparseBooleanMap?.build(), + sparseStringMap: _sparseStringMap?.build(), + denseSetMap: _denseSetMap?.build(), + sparseSetMap: _sparseSetMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -227,7 +229,10 @@ class JsonMapsInputOutputBuilder _sparseSetMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'JsonMapsInputOutput', _$failedField, e.toString()); + r'JsonMapsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart index 01f8256fec..c13290a018 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.json_timestamps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,9 +36,9 @@ abstract class JsonTimestampsInputOutput ); } - factory JsonTimestampsInputOutput.build( - [void Function(JsonTimestampsInputOutputBuilder) updates]) = - _$JsonTimestampsInputOutput; + factory JsonTimestampsInputOutput.build([ + void Function(JsonTimestampsInputOutputBuilder) updates, + ]) = _$JsonTimestampsInputOutput; const JsonTimestampsInputOutput._(); @@ -46,18 +46,16 @@ abstract class JsonTimestampsInputOutput JsonTimestampsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [JsonTimestampsInputOutput] from a [payload] and [response]. factory JsonTimestampsInputOutput.fromResponse( JsonTimestampsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [JsonTimestampsInputOutputRestJson1Serializer()]; + serializers = [JsonTimestampsInputOutputRestJson1Serializer()]; DateTime? get normal; DateTime? get dateTime; @@ -71,46 +69,26 @@ abstract class JsonTimestampsInputOutput @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('JsonTimestampsInputOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('JsonTimestampsInputOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -118,21 +96,18 @@ abstract class JsonTimestampsInputOutput class JsonTimestampsInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const JsonTimestampsInputOutputRestJson1Serializer() - : super('JsonTimestampsInputOutput'); + : super('JsonTimestampsInputOutput'); @override Iterable get types => const [ - JsonTimestampsInputOutput, - _$JsonTimestampsInputOutput, - ]; + JsonTimestampsInputOutput, + _$JsonTimestampsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonTimestampsInputOutput deserialize( @@ -156,39 +131,29 @@ class JsonTimestampsInputOutputRestJson1Serializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i1.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i1.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i1.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i1.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i1.TimestampSerializer.httpDate + .deserialize(serializers, value); case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -209,63 +174,71 @@ class JsonTimestampsInputOutputRestJson1Serializer :epochSecondsOnTarget, :httpDate, :httpDateOnTarget, - :normal + :normal, ) = object; if (dateTime != null) { result$ ..add('dateTime') - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add('dateTimeOnTarget') - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add('epochSeconds') - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add('epochSecondsOnTarget') - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add('httpDate') - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add('httpDateOnTarget') - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } if (normal != null) { result$ ..add('normal') - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart index a10abdcf43..0c5e69b073 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/json_timestamps_input_output.g.dart @@ -22,24 +22,24 @@ class _$JsonTimestampsInputOutput extends JsonTimestampsInputOutput { @override final DateTime? httpDateOnTarget; - factory _$JsonTimestampsInputOutput( - [void Function(JsonTimestampsInputOutputBuilder)? updates]) => - (new JsonTimestampsInputOutputBuilder()..update(updates))._build(); - - _$JsonTimestampsInputOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$JsonTimestampsInputOutput([ + void Function(JsonTimestampsInputOutputBuilder)? updates, + ]) => (new JsonTimestampsInputOutputBuilder()..update(updates))._build(); + + _$JsonTimestampsInputOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override JsonTimestampsInputOutput rebuild( - void Function(JsonTimestampsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(JsonTimestampsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override JsonTimestampsInputOutputBuilder toBuilder() => @@ -142,15 +142,17 @@ class JsonTimestampsInputOutputBuilder JsonTimestampsInputOutput build() => _build(); _$JsonTimestampsInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$JsonTimestampsInputOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart index 5373b51fdf..0e412c1e88 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_accept_with_generic_string_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'malformed_accept_with_generic_string_output.g.dart'; abstract class MalformedAcceptWithGenericStringOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MalformedAcceptWithGenericStringOutput, + MalformedAcceptWithGenericStringOutputBuilder + >, _i2.HasPayload { factory MalformedAcceptWithGenericStringOutput({String? payload}) { return _$MalformedAcceptWithGenericStringOutput._(payload: payload); } - factory MalformedAcceptWithGenericStringOutput.build( - [void Function(MalformedAcceptWithGenericStringOutputBuilder) - updates]) = _$MalformedAcceptWithGenericStringOutput; + factory MalformedAcceptWithGenericStringOutput.build([ + void Function(MalformedAcceptWithGenericStringOutputBuilder) updates, + ]) = _$MalformedAcceptWithGenericStringOutput; const MalformedAcceptWithGenericStringOutput._(); @@ -31,13 +32,12 @@ abstract class MalformedAcceptWithGenericStringOutput factory MalformedAcceptWithGenericStringOutput.fromResponse( String? payload, _i1.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithGenericStringOutput.build((b) { - b.payload = payload; - }); + ) => MalformedAcceptWithGenericStringOutput.build((b) { + b.payload = payload; + }); static const List<_i2.SmithySerializer> serializers = [ - MalformedAcceptWithGenericStringOutputRestJson1Serializer() + MalformedAcceptWithGenericStringOutputRestJson1Serializer(), ]; String? get payload; @@ -49,12 +49,9 @@ abstract class MalformedAcceptWithGenericStringOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedAcceptWithGenericStringOutput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedAcceptWithGenericStringOutput', + )..add('payload', payload); return helper.toString(); } } @@ -62,21 +59,18 @@ abstract class MalformedAcceptWithGenericStringOutput class MalformedAcceptWithGenericStringOutputRestJson1Serializer extends _i2.PrimitiveSmithySerializer { const MalformedAcceptWithGenericStringOutputRestJson1Serializer() - : super('MalformedAcceptWithGenericStringOutput'); + : super('MalformedAcceptWithGenericStringOutput'); @override Iterable get types => const [ - MalformedAcceptWithGenericStringOutput, - _$MalformedAcceptWithGenericStringOutput, - ]; + MalformedAcceptWithGenericStringOutput, + _$MalformedAcceptWithGenericStringOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override String deserialize( @@ -85,9 +79,10 @@ class MalformedAcceptWithGenericStringOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(String), - ) as String); + serialized, + specifiedType: const FullType(String), + ) + as String); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart index a5a081dec5..26cf8f9fdc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_generic_string_output.g.dart @@ -11,9 +11,9 @@ class _$MalformedAcceptWithGenericStringOutput @override final String? payload; - factory _$MalformedAcceptWithGenericStringOutput( - [void Function(MalformedAcceptWithGenericStringOutputBuilder)? - updates]) => + factory _$MalformedAcceptWithGenericStringOutput([ + void Function(MalformedAcceptWithGenericStringOutputBuilder)? updates, + ]) => (new MalformedAcceptWithGenericStringOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$MalformedAcceptWithGenericStringOutput @override MalformedAcceptWithGenericStringOutput rebuild( - void Function(MalformedAcceptWithGenericStringOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedAcceptWithGenericStringOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedAcceptWithGenericStringOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$MalformedAcceptWithGenericStringOutput class MalformedAcceptWithGenericStringOutputBuilder implements - Builder { + Builder< + MalformedAcceptWithGenericStringOutput, + MalformedAcceptWithGenericStringOutputBuilder + > { _$MalformedAcceptWithGenericStringOutput? _$v; String? _payload; @@ -74,7 +75,8 @@ class MalformedAcceptWithGenericStringOutputBuilder @override void update( - void Function(MalformedAcceptWithGenericStringOutputBuilder)? updates) { + void Function(MalformedAcceptWithGenericStringOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart index f24da08307..8c5b377d95 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_accept_with_payload_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,19 +13,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'malformed_accept_with_payload_output.g.dart'; abstract class MalformedAcceptWithPayloadOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MalformedAcceptWithPayloadOutput, + MalformedAcceptWithPayloadOutputBuilder + >, _i2.HasPayload<_i3.Uint8List> { factory MalformedAcceptWithPayloadOutput({_i3.Uint8List? payload}) { return _$MalformedAcceptWithPayloadOutput._(payload: payload); } - factory MalformedAcceptWithPayloadOutput.build( - [void Function(MalformedAcceptWithPayloadOutputBuilder) updates]) = - _$MalformedAcceptWithPayloadOutput; + factory MalformedAcceptWithPayloadOutput.build([ + void Function(MalformedAcceptWithPayloadOutputBuilder) updates, + ]) = _$MalformedAcceptWithPayloadOutput; const MalformedAcceptWithPayloadOutput._(); @@ -33,13 +34,12 @@ abstract class MalformedAcceptWithPayloadOutput factory MalformedAcceptWithPayloadOutput.fromResponse( _i3.Uint8List? payload, _i1.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithPayloadOutput.build((b) { - b.payload = payload; - }); + ) => MalformedAcceptWithPayloadOutput.build((b) { + b.payload = payload; + }); static const List<_i2.SmithySerializer<_i3.Uint8List?>> serializers = [ - MalformedAcceptWithPayloadOutputRestJson1Serializer() + MalformedAcceptWithPayloadOutputRestJson1Serializer(), ]; _i3.Uint8List? get payload; @@ -51,12 +51,9 @@ abstract class MalformedAcceptWithPayloadOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedAcceptWithPayloadOutput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedAcceptWithPayloadOutput', + )..add('payload', payload); return helper.toString(); } } @@ -64,21 +61,18 @@ abstract class MalformedAcceptWithPayloadOutput class MalformedAcceptWithPayloadOutputRestJson1Serializer extends _i2.PrimitiveSmithySerializer<_i3.Uint8List> { const MalformedAcceptWithPayloadOutputRestJson1Serializer() - : super('MalformedAcceptWithPayloadOutput'); + : super('MalformedAcceptWithPayloadOutput'); @override Iterable get types => const [ - MalformedAcceptWithPayloadOutput, - _$MalformedAcceptWithPayloadOutput, - ]; + MalformedAcceptWithPayloadOutput, + _$MalformedAcceptWithPayloadOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i3.Uint8List deserialize( @@ -87,9 +81,10 @@ class MalformedAcceptWithPayloadOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + serialized, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart index 6fcbd0c8fe..fc5e9f3d2a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_accept_with_payload_output.g.dart @@ -11,16 +11,17 @@ class _$MalformedAcceptWithPayloadOutput @override final _i3.Uint8List? payload; - factory _$MalformedAcceptWithPayloadOutput( - [void Function(MalformedAcceptWithPayloadOutputBuilder)? updates]) => + factory _$MalformedAcceptWithPayloadOutput([ + void Function(MalformedAcceptWithPayloadOutputBuilder)? updates, + ]) => (new MalformedAcceptWithPayloadOutputBuilder()..update(updates))._build(); _$MalformedAcceptWithPayloadOutput._({this.payload}) : super._(); @override MalformedAcceptWithPayloadOutput rebuild( - void Function(MalformedAcceptWithPayloadOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedAcceptWithPayloadOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedAcceptWithPayloadOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$MalformedAcceptWithPayloadOutput class MalformedAcceptWithPayloadOutputBuilder implements - Builder { + Builder< + MalformedAcceptWithPayloadOutput, + MalformedAcceptWithPayloadOutputBuilder + > { _$MalformedAcceptWithPayloadOutput? _$v; _i3.Uint8List? _payload; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart index bbc2049cd5..b23715dc46 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_blob_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class MalformedBlobInput return _$MalformedBlobInput._(blob: blob); } - factory MalformedBlobInput.build( - [void Function(MalformedBlobInputBuilder) updates]) = - _$MalformedBlobInput; + factory MalformedBlobInput.build([ + void Function(MalformedBlobInputBuilder) updates, + ]) = _$MalformedBlobInput; const MalformedBlobInput._(); @@ -29,11 +29,10 @@ abstract class MalformedBlobInput MalformedBlobInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedBlobInputRestJson1Serializer() + MalformedBlobInputRestJson1Serializer(), ]; _i3.Uint8List? get blob; @@ -46,10 +45,7 @@ abstract class MalformedBlobInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedBlobInput') - ..add( - 'blob', - blob, - ); + ..add('blob', blob); return helper.toString(); } } @@ -59,18 +55,12 @@ class MalformedBlobInputRestJson1Serializer const MalformedBlobInputRestJson1Serializer() : super('MalformedBlobInput'); @override - Iterable get types => const [ - MalformedBlobInput, - _$MalformedBlobInput, - ]; + Iterable get types => const [MalformedBlobInput, _$MalformedBlobInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedBlobInput deserialize( @@ -89,10 +79,12 @@ class MalformedBlobInputRestJson1Serializer } switch (key) { case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } } @@ -110,10 +102,12 @@ class MalformedBlobInputRestJson1Serializer if (blob != null) { result$ ..add('blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart index 5e8cbd793b..222aa51748 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_blob_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedBlobInput extends MalformedBlobInput { @override final _i3.Uint8List? blob; - factory _$MalformedBlobInput( - [void Function(MalformedBlobInputBuilder)? updates]) => - (new MalformedBlobInputBuilder()..update(updates))._build(); + factory _$MalformedBlobInput([ + void Function(MalformedBlobInputBuilder)? updates, + ]) => (new MalformedBlobInputBuilder()..update(updates))._build(); _$MalformedBlobInput._({this.blob}) : super._(); @override MalformedBlobInput rebuild( - void Function(MalformedBlobInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedBlobInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedBlobInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart index a18acc625b..609d509af8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_boolean_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedBooleanInput ); } - factory MalformedBooleanInput.build( - [void Function(MalformedBooleanInputBuilder) updates]) = - _$MalformedBooleanInput; + factory MalformedBooleanInput.build([ + void Function(MalformedBooleanInputBuilder) updates, + ]) = _$MalformedBooleanInput; const MalformedBooleanInput._(); @@ -42,23 +42,21 @@ abstract class MalformedBooleanInput MalformedBooleanInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedBooleanInput.build((b) { - b.booleanInBody = payload.booleanInBody; - if (request.headers['booleanInHeader'] != null) { - b.booleanInHeader = request.headers['booleanInHeader']! == 'true'; - } - if (request.queryParameters['booleanInQuery'] != null) { - b.booleanInQuery = - request.queryParameters['booleanInQuery']! == 'true'; - } - if (labels['booleanInPath'] != null) { - b.booleanInPath = labels['booleanInPath']! == 'true'; - } - }); + }) => MalformedBooleanInput.build((b) { + b.booleanInBody = payload.booleanInBody; + if (request.headers['booleanInHeader'] != null) { + b.booleanInHeader = request.headers['booleanInHeader']! == 'true'; + } + if (request.queryParameters['booleanInQuery'] != null) { + b.booleanInQuery = request.queryParameters['booleanInQuery']! == 'true'; + } + if (labels['booleanInPath'] != null) { + b.booleanInPath = labels['booleanInPath']! == 'true'; + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedBooleanInputRestJson1Serializer()]; + serializers = [MalformedBooleanInputRestJson1Serializer()]; bool? get booleanInBody; bool get booleanInPath; @@ -70,10 +68,7 @@ abstract class MalformedBooleanInput case 'booleanInPath': return booleanInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -84,45 +79,35 @@ abstract class MalformedBooleanInput @override List get props => [ - booleanInBody, - booleanInPath, - booleanInQuery, - booleanInHeader, - ]; + booleanInBody, + booleanInPath, + booleanInQuery, + booleanInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedBooleanInput') - ..add( - 'booleanInBody', - booleanInBody, - ) - ..add( - 'booleanInPath', - booleanInPath, - ) - ..add( - 'booleanInQuery', - booleanInQuery, - ) - ..add( - 'booleanInHeader', - booleanInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedBooleanInput') + ..add('booleanInBody', booleanInBody) + ..add('booleanInPath', booleanInPath) + ..add('booleanInQuery', booleanInQuery) + ..add('booleanInHeader', booleanInHeader); return helper.toString(); } } @_i3.internal abstract class MalformedBooleanInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory MalformedBooleanInputPayload( - [void Function(MalformedBooleanInputPayloadBuilder) updates]) = - _$MalformedBooleanInputPayload; + Built< + MalformedBooleanInputPayload, + MalformedBooleanInputPayloadBuilder + > { + factory MalformedBooleanInputPayload([ + void Function(MalformedBooleanInputPayloadBuilder) updates, + ]) = _$MalformedBooleanInputPayload; const MalformedBooleanInputPayload._(); @@ -133,10 +118,7 @@ abstract class MalformedBooleanInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedBooleanInputPayload') - ..add( - 'booleanInBody', - booleanInBody, - ); + ..add('booleanInBody', booleanInBody); return helper.toString(); } } @@ -144,23 +126,20 @@ abstract class MalformedBooleanInputPayload class MalformedBooleanInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedBooleanInputRestJson1Serializer() - : super('MalformedBooleanInput'); + : super('MalformedBooleanInput'); @override Iterable get types => const [ - MalformedBooleanInput, - _$MalformedBooleanInput, - MalformedBooleanInputPayload, - _$MalformedBooleanInputPayload, - ]; + MalformedBooleanInput, + _$MalformedBooleanInput, + MalformedBooleanInputPayload, + _$MalformedBooleanInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedBooleanInputPayload deserialize( @@ -179,10 +158,12 @@ class MalformedBooleanInputRestJson1Serializer } switch (key) { case 'booleanInBody': - result.booleanInBody = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.booleanInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -200,10 +181,12 @@ class MalformedBooleanInputRestJson1Serializer if (booleanInBody != null) { result$ ..add('booleanInBody') - ..add(serializers.serialize( - booleanInBody, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + booleanInBody, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart index 71dee91ff7..9ab3976959 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_boolean_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedBooleanInput extends MalformedBooleanInput { @override final bool? booleanInHeader; - factory _$MalformedBooleanInput( - [void Function(MalformedBooleanInputBuilder)? updates]) => - (new MalformedBooleanInputBuilder()..update(updates))._build(); - - _$MalformedBooleanInput._( - {this.booleanInBody, - required this.booleanInPath, - this.booleanInQuery, - this.booleanInHeader}) - : super._() { + factory _$MalformedBooleanInput([ + void Function(MalformedBooleanInputBuilder)? updates, + ]) => (new MalformedBooleanInputBuilder()..update(updates))._build(); + + _$MalformedBooleanInput._({ + this.booleanInBody, + required this.booleanInPath, + this.booleanInQuery, + this.booleanInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - booleanInPath, r'MalformedBooleanInput', 'booleanInPath'); + booleanInPath, + r'MalformedBooleanInput', + 'booleanInPath', + ); } @override MalformedBooleanInput rebuild( - void Function(MalformedBooleanInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedBooleanInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedBooleanInputBuilder toBuilder() => @@ -114,13 +117,18 @@ class MalformedBooleanInputBuilder MalformedBooleanInput build() => _build(); _$MalformedBooleanInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedBooleanInput._( - booleanInBody: booleanInBody, - booleanInPath: BuiltValueNullFieldError.checkNotNull( - booleanInPath, r'MalformedBooleanInput', 'booleanInPath'), - booleanInQuery: booleanInQuery, - booleanInHeader: booleanInHeader); + booleanInBody: booleanInBody, + booleanInPath: BuiltValueNullFieldError.checkNotNull( + booleanInPath, + r'MalformedBooleanInput', + 'booleanInPath', + ), + booleanInQuery: booleanInQuery, + booleanInHeader: booleanInHeader, + ); replace(_$result); return _$result; } @@ -130,16 +138,16 @@ class _$MalformedBooleanInputPayload extends MalformedBooleanInputPayload { @override final bool? booleanInBody; - factory _$MalformedBooleanInputPayload( - [void Function(MalformedBooleanInputPayloadBuilder)? updates]) => - (new MalformedBooleanInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedBooleanInputPayload([ + void Function(MalformedBooleanInputPayloadBuilder)? updates, + ]) => (new MalformedBooleanInputPayloadBuilder()..update(updates))._build(); _$MalformedBooleanInputPayload._({this.booleanInBody}) : super._(); @override MalformedBooleanInputPayload rebuild( - void Function(MalformedBooleanInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedBooleanInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedBooleanInputPayloadBuilder toBuilder() => @@ -163,8 +171,10 @@ class _$MalformedBooleanInputPayload extends MalformedBooleanInputPayload { class MalformedBooleanInputPayloadBuilder implements - Builder { + Builder< + MalformedBooleanInputPayload, + MalformedBooleanInputPayloadBuilder + > { _$MalformedBooleanInputPayload? _$v; bool? _booleanInBody; @@ -198,7 +208,8 @@ class MalformedBooleanInputPayloadBuilder MalformedBooleanInputPayload build() => _build(); _$MalformedBooleanInputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedBooleanInputPayload._(booleanInBody: booleanInBody); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart index ca18fd7d8c..950af2996b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_byte_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedByteInput ); } - factory MalformedByteInput.build( - [void Function(MalformedByteInputBuilder) updates]) = - _$MalformedByteInput; + factory MalformedByteInput.build([ + void Function(MalformedByteInputBuilder) updates, + ]) = _$MalformedByteInput; const MalformedByteInput._(); @@ -42,22 +42,21 @@ abstract class MalformedByteInput MalformedByteInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedByteInput.build((b) { - b.byteInBody = payload.byteInBody; - if (request.headers['byteInHeader'] != null) { - b.byteInHeader = int.parse(request.headers['byteInHeader']!); - } - if (request.queryParameters['byteInQuery'] != null) { - b.byteInQuery = int.parse(request.queryParameters['byteInQuery']!); - } - if (labels['byteInPath'] != null) { - b.byteInPath = int.parse(labels['byteInPath']!); - } - }); + }) => MalformedByteInput.build((b) { + b.byteInBody = payload.byteInBody; + if (request.headers['byteInHeader'] != null) { + b.byteInHeader = int.parse(request.headers['byteInHeader']!); + } + if (request.queryParameters['byteInQuery'] != null) { + b.byteInQuery = int.parse(request.queryParameters['byteInQuery']!); + } + if (labels['byteInPath'] != null) { + b.byteInPath = int.parse(labels['byteInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedByteInputRestJson1Serializer()]; + serializers = [MalformedByteInputRestJson1Serializer()]; int? get byteInBody; int get byteInPath; @@ -69,44 +68,30 @@ abstract class MalformedByteInput case 'byteInPath': return byteInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedByteInputPayload getPayload() => MalformedByteInputPayload((b) { - b.byteInBody = byteInBody; - }); + b.byteInBody = byteInBody; + }); @override List get props => [ - byteInBody, - byteInPath, - byteInQuery, - byteInHeader, - ]; + byteInBody, + byteInPath, + byteInQuery, + byteInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedByteInput') - ..add( - 'byteInBody', - byteInBody, - ) - ..add( - 'byteInPath', - byteInPath, - ) - ..add( - 'byteInQuery', - byteInQuery, - ) - ..add( - 'byteInHeader', - byteInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedByteInput') + ..add('byteInBody', byteInBody) + ..add('byteInPath', byteInPath) + ..add('byteInQuery', byteInQuery) + ..add('byteInHeader', byteInHeader); return helper.toString(); } } @@ -116,9 +101,9 @@ abstract class MalformedByteInputPayload with _i2.AWSEquatable implements Built { - factory MalformedByteInputPayload( - [void Function(MalformedByteInputPayloadBuilder) updates]) = - _$MalformedByteInputPayload; + factory MalformedByteInputPayload([ + void Function(MalformedByteInputPayloadBuilder) updates, + ]) = _$MalformedByteInputPayload; const MalformedByteInputPayload._(); @@ -129,10 +114,7 @@ abstract class MalformedByteInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedByteInputPayload') - ..add( - 'byteInBody', - byteInBody, - ); + ..add('byteInBody', byteInBody); return helper.toString(); } } @@ -143,19 +125,16 @@ class MalformedByteInputRestJson1Serializer @override Iterable get types => const [ - MalformedByteInput, - _$MalformedByteInput, - MalformedByteInputPayload, - _$MalformedByteInputPayload, - ]; + MalformedByteInput, + _$MalformedByteInput, + MalformedByteInputPayload, + _$MalformedByteInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedByteInputPayload deserialize( @@ -174,10 +153,12 @@ class MalformedByteInputRestJson1Serializer } switch (key) { case 'byteInBody': - result.byteInBody = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -195,10 +176,9 @@ class MalformedByteInputRestJson1Serializer if (byteInBody != null) { result$ ..add('byteInBody') - ..add(serializers.serialize( - byteInBody, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteInBody, specifiedType: const FullType(int)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart index 097c576260..7afbaa2f43 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_byte_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedByteInput extends MalformedByteInput { @override final int? byteInHeader; - factory _$MalformedByteInput( - [void Function(MalformedByteInputBuilder)? updates]) => - (new MalformedByteInputBuilder()..update(updates))._build(); - - _$MalformedByteInput._( - {this.byteInBody, - required this.byteInPath, - this.byteInQuery, - this.byteInHeader}) - : super._() { + factory _$MalformedByteInput([ + void Function(MalformedByteInputBuilder)? updates, + ]) => (new MalformedByteInputBuilder()..update(updates))._build(); + + _$MalformedByteInput._({ + this.byteInBody, + required this.byteInPath, + this.byteInQuery, + this.byteInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - byteInPath, r'MalformedByteInput', 'byteInPath'); + byteInPath, + r'MalformedByteInput', + 'byteInPath', + ); } @override MalformedByteInput rebuild( - void Function(MalformedByteInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedByteInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedByteInputBuilder toBuilder() => @@ -110,13 +113,18 @@ class MalformedByteInputBuilder MalformedByteInput build() => _build(); _$MalformedByteInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedByteInput._( - byteInBody: byteInBody, - byteInPath: BuiltValueNullFieldError.checkNotNull( - byteInPath, r'MalformedByteInput', 'byteInPath'), - byteInQuery: byteInQuery, - byteInHeader: byteInHeader); + byteInBody: byteInBody, + byteInPath: BuiltValueNullFieldError.checkNotNull( + byteInPath, + r'MalformedByteInput', + 'byteInPath', + ), + byteInQuery: byteInQuery, + byteInHeader: byteInHeader, + ); replace(_$result); return _$result; } @@ -126,16 +134,16 @@ class _$MalformedByteInputPayload extends MalformedByteInputPayload { @override final int? byteInBody; - factory _$MalformedByteInputPayload( - [void Function(MalformedByteInputPayloadBuilder)? updates]) => - (new MalformedByteInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedByteInputPayload([ + void Function(MalformedByteInputPayloadBuilder)? updates, + ]) => (new MalformedByteInputPayloadBuilder()..update(updates))._build(); _$MalformedByteInputPayload._({this.byteInBody}) : super._(); @override MalformedByteInputPayload rebuild( - void Function(MalformedByteInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedByteInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedByteInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart index 3ccd27bd27..cedd0f40b0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_content_type_with_generic_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class MalformedContentTypeWithGenericStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithGenericStringInput, + MalformedContentTypeWithGenericStringInputBuilder + >, _i1.HasPayload { factory MalformedContentTypeWithGenericStringInput({String? payload}) { return _$MalformedContentTypeWithGenericStringInput._(payload: payload); } - factory MalformedContentTypeWithGenericStringInput.build( - [void Function(MalformedContentTypeWithGenericStringInputBuilder) - updates]) = _$MalformedContentTypeWithGenericStringInput; + factory MalformedContentTypeWithGenericStringInput.build([ + void Function(MalformedContentTypeWithGenericStringInputBuilder) updates, + ]) = _$MalformedContentTypeWithGenericStringInput; const MalformedContentTypeWithGenericStringInput._(); @@ -32,13 +34,12 @@ abstract class MalformedContentTypeWithGenericStringInput String? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedContentTypeWithGenericStringInput.build((b) { - b.payload = payload; - }); + }) => MalformedContentTypeWithGenericStringInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer> serializers = [ - MalformedContentTypeWithGenericStringInputRestJson1Serializer() + MalformedContentTypeWithGenericStringInputRestJson1Serializer(), ]; String? get payload; @@ -51,11 +52,8 @@ abstract class MalformedContentTypeWithGenericStringInput @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedContentTypeWithGenericStringInput') - ..add( - 'payload', - payload, - ); + 'MalformedContentTypeWithGenericStringInput', + )..add('payload', payload); return helper.toString(); } } @@ -63,21 +61,18 @@ abstract class MalformedContentTypeWithGenericStringInput class MalformedContentTypeWithGenericStringInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const MalformedContentTypeWithGenericStringInputRestJson1Serializer() - : super('MalformedContentTypeWithGenericStringInput'); + : super('MalformedContentTypeWithGenericStringInput'); @override Iterable get types => const [ - MalformedContentTypeWithGenericStringInput, - _$MalformedContentTypeWithGenericStringInput, - ]; + MalformedContentTypeWithGenericStringInput, + _$MalformedContentTypeWithGenericStringInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override String deserialize( @@ -86,9 +81,10 @@ class MalformedContentTypeWithGenericStringInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(String), - ) as String); + serialized, + specifiedType: const FullType(String), + ) + as String); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart index c9c6a0133c..b310e30c41 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_generic_string_input.g.dart @@ -11,9 +11,9 @@ class _$MalformedContentTypeWithGenericStringInput @override final String? payload; - factory _$MalformedContentTypeWithGenericStringInput( - [void Function(MalformedContentTypeWithGenericStringInputBuilder)? - updates]) => + factory _$MalformedContentTypeWithGenericStringInput([ + void Function(MalformedContentTypeWithGenericStringInputBuilder)? updates, + ]) => (new MalformedContentTypeWithGenericStringInputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$MalformedContentTypeWithGenericStringInput @override MalformedContentTypeWithGenericStringInput rebuild( - void Function(MalformedContentTypeWithGenericStringInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithGenericStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithGenericStringInputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$MalformedContentTypeWithGenericStringInput class MalformedContentTypeWithGenericStringInputBuilder implements - Builder { + Builder< + MalformedContentTypeWithGenericStringInput, + MalformedContentTypeWithGenericStringInputBuilder + > { _$MalformedContentTypeWithGenericStringInput? _$v; String? _payload; @@ -74,8 +75,8 @@ class MalformedContentTypeWithGenericStringInputBuilder @override void update( - void Function(MalformedContentTypeWithGenericStringInputBuilder)? - updates) { + void Function(MalformedContentTypeWithGenericStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -83,7 +84,8 @@ class MalformedContentTypeWithGenericStringInputBuilder MalformedContentTypeWithGenericStringInput build() => _build(); _$MalformedContentTypeWithGenericStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedContentTypeWithGenericStringInput._(payload: payload); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart index a23cc3bf01..f3f70b8891 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_content_type_with_payload_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,16 +17,18 @@ abstract class MalformedContentTypeWithPayloadInput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithPayloadInput, + MalformedContentTypeWithPayloadInputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory MalformedContentTypeWithPayloadInput({_i2.Uint8List? payload}) { return _$MalformedContentTypeWithPayloadInput._(payload: payload); } - factory MalformedContentTypeWithPayloadInput.build( - [void Function(MalformedContentTypeWithPayloadInputBuilder) - updates]) = _$MalformedContentTypeWithPayloadInput; + factory MalformedContentTypeWithPayloadInput.build([ + void Function(MalformedContentTypeWithPayloadInputBuilder) updates, + ]) = _$MalformedContentTypeWithPayloadInput; const MalformedContentTypeWithPayloadInput._(); @@ -34,13 +36,12 @@ abstract class MalformedContentTypeWithPayloadInput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedContentTypeWithPayloadInput.build((b) { - b.payload = payload; - }); + }) => MalformedContentTypeWithPayloadInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - MalformedContentTypeWithPayloadInputRestJson1Serializer() + MalformedContentTypeWithPayloadInputRestJson1Serializer(), ]; _i2.Uint8List? get payload; @@ -52,12 +53,9 @@ abstract class MalformedContentTypeWithPayloadInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedContentTypeWithPayloadInput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedContentTypeWithPayloadInput', + )..add('payload', payload); return helper.toString(); } } @@ -65,21 +63,18 @@ abstract class MalformedContentTypeWithPayloadInput class MalformedContentTypeWithPayloadInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const MalformedContentTypeWithPayloadInputRestJson1Serializer() - : super('MalformedContentTypeWithPayloadInput'); + : super('MalformedContentTypeWithPayloadInput'); @override Iterable get types => const [ - MalformedContentTypeWithPayloadInput, - _$MalformedContentTypeWithPayloadInput, - ]; + MalformedContentTypeWithPayloadInput, + _$MalformedContentTypeWithPayloadInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -88,9 +83,10 @@ class MalformedContentTypeWithPayloadInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart index cfc5edf4a4..d5f20d4066 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_with_payload_input.g.dart @@ -11,9 +11,9 @@ class _$MalformedContentTypeWithPayloadInput @override final _i2.Uint8List? payload; - factory _$MalformedContentTypeWithPayloadInput( - [void Function(MalformedContentTypeWithPayloadInputBuilder)? - updates]) => + factory _$MalformedContentTypeWithPayloadInput([ + void Function(MalformedContentTypeWithPayloadInputBuilder)? updates, + ]) => (new MalformedContentTypeWithPayloadInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$MalformedContentTypeWithPayloadInput @override MalformedContentTypeWithPayloadInput rebuild( - void Function(MalformedContentTypeWithPayloadInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithPayloadInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithPayloadInputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$MalformedContentTypeWithPayloadInput class MalformedContentTypeWithPayloadInputBuilder implements - Builder { + Builder< + MalformedContentTypeWithPayloadInput, + MalformedContentTypeWithPayloadInputBuilder + > { _$MalformedContentTypeWithPayloadInput? _$v; _i2.Uint8List? _payload; @@ -73,7 +75,8 @@ class MalformedContentTypeWithPayloadInputBuilder @override void update( - void Function(MalformedContentTypeWithPayloadInputBuilder)? updates) { + void Function(MalformedContentTypeWithPayloadInputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart index 3cbe0b7616..617946b0c0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_content_type_without_body_empty_input_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithoutBodyEmptyInputInput, + MalformedContentTypeWithoutBodyEmptyInputInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedContentTypeWithoutBodyEmptyInputInput({String? header}) { return _$MalformedContentTypeWithoutBodyEmptyInputInput._(header: header); } - factory MalformedContentTypeWithoutBodyEmptyInputInput.build( - [void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) - updates]) = _$MalformedContentTypeWithoutBodyEmptyInputInput; + factory MalformedContentTypeWithoutBodyEmptyInputInput.build([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) + updates, + ]) = _$MalformedContentTypeWithoutBodyEmptyInputInput; const MalformedContentTypeWithoutBodyEmptyInputInput._(); @@ -34,18 +37,17 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInput MalformedContentTypeWithoutBodyEmptyInputInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedContentTypeWithoutBodyEmptyInputInput.build((b) { - if (request.headers['header'] != null) { - b.header = request.headers['header']!; - } - }); + }) => MalformedContentTypeWithoutBodyEmptyInputInput.build((b) { + if (request.headers['header'] != null) { + b.header = request.headers['header']!; + } + }); static const List< - _i1.SmithySerializer< - MalformedContentTypeWithoutBodyEmptyInputInputPayload>> - serializers = [ - MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer() + _i1.SmithySerializer + > + serializers = [ + MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer(), ]; String? get header; @@ -59,27 +61,25 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInput @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedContentTypeWithoutBodyEmptyInputInput') - ..add( - 'header', - header, - ); + 'MalformedContentTypeWithoutBodyEmptyInputInput', + )..add('header', header); return helper.toString(); } } @_i3.internal abstract class MalformedContentTypeWithoutBodyEmptyInputInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedContentTypeWithoutBodyEmptyInputInputPayload( - [void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) - updates]) = _$MalformedContentTypeWithoutBodyEmptyInputInputPayload; + factory MalformedContentTypeWithoutBodyEmptyInputInputPayload([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) + updates, + ]) = _$MalformedContentTypeWithoutBodyEmptyInputInputPayload; const MalformedContentTypeWithoutBodyEmptyInputInputPayload._(); @@ -89,32 +89,32 @@ abstract class MalformedContentTypeWithoutBodyEmptyInputInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedContentTypeWithoutBodyEmptyInputInputPayload'); + 'MalformedContentTypeWithoutBodyEmptyInputInputPayload', + ); return helper.toString(); } } class MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer - extends _i1.StructuredSmithySerializer< - MalformedContentTypeWithoutBodyEmptyInputInputPayload> { + extends + _i1.StructuredSmithySerializer< + MalformedContentTypeWithoutBodyEmptyInputInputPayload + > { const MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer() - : super('MalformedContentTypeWithoutBodyEmptyInputInput'); + : super('MalformedContentTypeWithoutBodyEmptyInputInput'); @override Iterable get types => const [ - MalformedContentTypeWithoutBodyEmptyInputInput, - _$MalformedContentTypeWithoutBodyEmptyInputInput, - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - _$MalformedContentTypeWithoutBodyEmptyInputInputPayload, - ]; + MalformedContentTypeWithoutBodyEmptyInputInput, + _$MalformedContentTypeWithoutBodyEmptyInputInput, + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + _$MalformedContentTypeWithoutBodyEmptyInputInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedContentTypeWithoutBodyEmptyInputInputPayload deserialize( @@ -131,6 +131,5 @@ class MalformedContentTypeWithoutBodyEmptyInputInputRestJson1Serializer Serializers serializers, MalformedContentTypeWithoutBodyEmptyInputInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart index faa53e5f9c..fdb9890565 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_content_type_without_body_empty_input_input.g.dart @@ -11,9 +11,10 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInput @override final String? header; - factory _$MalformedContentTypeWithoutBodyEmptyInputInput( - [void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? - updates]) => + factory _$MalformedContentTypeWithoutBodyEmptyInputInput([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? + updates, + ]) => (new MalformedContentTypeWithoutBodyEmptyInputInputBuilder() ..update(updates)) ._build(); @@ -22,9 +23,9 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInput @override MalformedContentTypeWithoutBodyEmptyInputInput rebuild( - void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithoutBodyEmptyInputInputBuilder toBuilder() => @@ -49,8 +50,10 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInput class MalformedContentTypeWithoutBodyEmptyInputInputBuilder implements - Builder { + Builder< + MalformedContentTypeWithoutBodyEmptyInputInput, + MalformedContentTypeWithoutBodyEmptyInputInputBuilder + > { _$MalformedContentTypeWithoutBodyEmptyInputInput? _$v; String? _header; @@ -76,8 +79,9 @@ class MalformedContentTypeWithoutBodyEmptyInputInputBuilder @override void update( - void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? - updates) { + void Function(MalformedContentTypeWithoutBodyEmptyInputInputBuilder)? + updates, + ) { if (updates != null) updates(this); } @@ -85,7 +89,8 @@ class MalformedContentTypeWithoutBodyEmptyInputInputBuilder MalformedContentTypeWithoutBodyEmptyInputInput build() => _build(); _$MalformedContentTypeWithoutBodyEmptyInputInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedContentTypeWithoutBodyEmptyInputInput._(header: header); replace(_$result); return _$result; @@ -94,10 +99,10 @@ class MalformedContentTypeWithoutBodyEmptyInputInputBuilder class _$MalformedContentTypeWithoutBodyEmptyInputInputPayload extends MalformedContentTypeWithoutBodyEmptyInputInputPayload { - factory _$MalformedContentTypeWithoutBodyEmptyInputInputPayload( - [void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? - updates]) => + factory _$MalformedContentTypeWithoutBodyEmptyInputInputPayload([ + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? + updates, + ]) => (new MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder() ..update(updates)) ._build(); @@ -106,10 +111,9 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInputPayload @override MalformedContentTypeWithoutBodyEmptyInputInputPayload rebuild( - void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder toBuilder() => @@ -130,8 +134,10 @@ class _$MalformedContentTypeWithoutBodyEmptyInputInputPayload class MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder implements - Builder { + Builder< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder + > { _$MalformedContentTypeWithoutBodyEmptyInputInputPayload? _$v; MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder(); @@ -144,9 +150,9 @@ class MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder @override void update( - void Function( - MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? - updates) { + void Function(MalformedContentTypeWithoutBodyEmptyInputInputPayloadBuilder)? + updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart index 49bc2497e8..291ba81072 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_double_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedDoubleInput ); } - factory MalformedDoubleInput.build( - [void Function(MalformedDoubleInputBuilder) updates]) = - _$MalformedDoubleInput; + factory MalformedDoubleInput.build([ + void Function(MalformedDoubleInputBuilder) updates, + ]) = _$MalformedDoubleInput; const MalformedDoubleInput._(); @@ -42,23 +42,21 @@ abstract class MalformedDoubleInput MalformedDoubleInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedDoubleInput.build((b) { - b.doubleInBody = payload.doubleInBody; - if (request.headers['doubleInHeader'] != null) { - b.doubleInHeader = double.parse(request.headers['doubleInHeader']!); - } - if (request.queryParameters['doubleInQuery'] != null) { - b.doubleInQuery = - double.parse(request.queryParameters['doubleInQuery']!); - } - if (labels['doubleInPath'] != null) { - b.doubleInPath = double.parse(labels['doubleInPath']!); - } - }); + }) => MalformedDoubleInput.build((b) { + b.doubleInBody = payload.doubleInBody; + if (request.headers['doubleInHeader'] != null) { + b.doubleInHeader = double.parse(request.headers['doubleInHeader']!); + } + if (request.queryParameters['doubleInQuery'] != null) { + b.doubleInQuery = double.parse(request.queryParameters['doubleInQuery']!); + } + if (labels['doubleInPath'] != null) { + b.doubleInPath = double.parse(labels['doubleInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedDoubleInputRestJson1Serializer()]; + serializers = [MalformedDoubleInputRestJson1Serializer()]; double? get doubleInBody; double get doubleInPath; @@ -70,44 +68,30 @@ abstract class MalformedDoubleInput case 'doubleInPath': return doubleInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedDoubleInputPayload getPayload() => MalformedDoubleInputPayload((b) { - b.doubleInBody = doubleInBody; - }); + b.doubleInBody = doubleInBody; + }); @override List get props => [ - doubleInBody, - doubleInPath, - doubleInQuery, - doubleInHeader, - ]; + doubleInBody, + doubleInPath, + doubleInQuery, + doubleInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedDoubleInput') - ..add( - 'doubleInBody', - doubleInBody, - ) - ..add( - 'doubleInPath', - doubleInPath, - ) - ..add( - 'doubleInQuery', - doubleInQuery, - ) - ..add( - 'doubleInHeader', - doubleInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedDoubleInput') + ..add('doubleInBody', doubleInBody) + ..add('doubleInPath', doubleInPath) + ..add('doubleInQuery', doubleInQuery) + ..add('doubleInHeader', doubleInHeader); return helper.toString(); } } @@ -117,9 +101,9 @@ abstract class MalformedDoubleInputPayload with _i2.AWSEquatable implements Built { - factory MalformedDoubleInputPayload( - [void Function(MalformedDoubleInputPayloadBuilder) updates]) = - _$MalformedDoubleInputPayload; + factory MalformedDoubleInputPayload([ + void Function(MalformedDoubleInputPayloadBuilder) updates, + ]) = _$MalformedDoubleInputPayload; const MalformedDoubleInputPayload._(); @@ -130,10 +114,7 @@ abstract class MalformedDoubleInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedDoubleInputPayload') - ..add( - 'doubleInBody', - doubleInBody, - ); + ..add('doubleInBody', doubleInBody); return helper.toString(); } } @@ -141,23 +122,20 @@ abstract class MalformedDoubleInputPayload class MalformedDoubleInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedDoubleInputRestJson1Serializer() - : super('MalformedDoubleInput'); + : super('MalformedDoubleInput'); @override Iterable get types => const [ - MalformedDoubleInput, - _$MalformedDoubleInput, - MalformedDoubleInputPayload, - _$MalformedDoubleInputPayload, - ]; + MalformedDoubleInput, + _$MalformedDoubleInput, + MalformedDoubleInputPayload, + _$MalformedDoubleInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedDoubleInputPayload deserialize( @@ -176,10 +154,12 @@ class MalformedDoubleInputRestJson1Serializer } switch (key) { case 'doubleInBody': - result.doubleInBody = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -197,10 +177,12 @@ class MalformedDoubleInputRestJson1Serializer if (doubleInBody != null) { result$ ..add('doubleInBody') - ..add(serializers.serialize( - doubleInBody, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleInBody, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart index 3522ce2954..ed73fedf20 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_double_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedDoubleInput extends MalformedDoubleInput { @override final double? doubleInHeader; - factory _$MalformedDoubleInput( - [void Function(MalformedDoubleInputBuilder)? updates]) => - (new MalformedDoubleInputBuilder()..update(updates))._build(); - - _$MalformedDoubleInput._( - {this.doubleInBody, - required this.doubleInPath, - this.doubleInQuery, - this.doubleInHeader}) - : super._() { + factory _$MalformedDoubleInput([ + void Function(MalformedDoubleInputBuilder)? updates, + ]) => (new MalformedDoubleInputBuilder()..update(updates))._build(); + + _$MalformedDoubleInput._({ + this.doubleInBody, + required this.doubleInPath, + this.doubleInQuery, + this.doubleInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - doubleInPath, r'MalformedDoubleInput', 'doubleInPath'); + doubleInPath, + r'MalformedDoubleInput', + 'doubleInPath', + ); } @override MalformedDoubleInput rebuild( - void Function(MalformedDoubleInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedDoubleInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedDoubleInputBuilder toBuilder() => @@ -112,13 +115,18 @@ class MalformedDoubleInputBuilder MalformedDoubleInput build() => _build(); _$MalformedDoubleInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedDoubleInput._( - doubleInBody: doubleInBody, - doubleInPath: BuiltValueNullFieldError.checkNotNull( - doubleInPath, r'MalformedDoubleInput', 'doubleInPath'), - doubleInQuery: doubleInQuery, - doubleInHeader: doubleInHeader); + doubleInBody: doubleInBody, + doubleInPath: BuiltValueNullFieldError.checkNotNull( + doubleInPath, + r'MalformedDoubleInput', + 'doubleInPath', + ), + doubleInQuery: doubleInQuery, + doubleInHeader: doubleInHeader, + ); replace(_$result); return _$result; } @@ -128,16 +136,16 @@ class _$MalformedDoubleInputPayload extends MalformedDoubleInputPayload { @override final double? doubleInBody; - factory _$MalformedDoubleInputPayload( - [void Function(MalformedDoubleInputPayloadBuilder)? updates]) => - (new MalformedDoubleInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedDoubleInputPayload([ + void Function(MalformedDoubleInputPayloadBuilder)? updates, + ]) => (new MalformedDoubleInputPayloadBuilder()..update(updates))._build(); _$MalformedDoubleInputPayload._({this.doubleInBody}) : super._(); @override MalformedDoubleInputPayload rebuild( - void Function(MalformedDoubleInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedDoubleInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedDoubleInputPayloadBuilder toBuilder() => @@ -161,8 +169,10 @@ class _$MalformedDoubleInputPayload extends MalformedDoubleInputPayload { class MalformedDoubleInputPayloadBuilder implements - Builder { + Builder< + MalformedDoubleInputPayload, + MalformedDoubleInputPayloadBuilder + > { _$MalformedDoubleInputPayload? _$v; double? _doubleInBody; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart index 75e6e866e2..36518bdb32 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_float_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedFloatInput ); } - factory MalformedFloatInput.build( - [void Function(MalformedFloatInputBuilder) updates]) = - _$MalformedFloatInput; + factory MalformedFloatInput.build([ + void Function(MalformedFloatInputBuilder) updates, + ]) = _$MalformedFloatInput; const MalformedFloatInput._(); @@ -42,23 +42,21 @@ abstract class MalformedFloatInput MalformedFloatInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedFloatInput.build((b) { - b.floatInBody = payload.floatInBody; - if (request.headers['floatInHeader'] != null) { - b.floatInHeader = double.parse(request.headers['floatInHeader']!); - } - if (request.queryParameters['floatInQuery'] != null) { - b.floatInQuery = - double.parse(request.queryParameters['floatInQuery']!); - } - if (labels['floatInPath'] != null) { - b.floatInPath = double.parse(labels['floatInPath']!); - } - }); + }) => MalformedFloatInput.build((b) { + b.floatInBody = payload.floatInBody; + if (request.headers['floatInHeader'] != null) { + b.floatInHeader = double.parse(request.headers['floatInHeader']!); + } + if (request.queryParameters['floatInQuery'] != null) { + b.floatInQuery = double.parse(request.queryParameters['floatInQuery']!); + } + if (labels['floatInPath'] != null) { + b.floatInPath = double.parse(labels['floatInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedFloatInputRestJson1Serializer()]; + serializers = [MalformedFloatInputRestJson1Serializer()]; double? get floatInBody; double get floatInPath; @@ -70,44 +68,30 @@ abstract class MalformedFloatInput case 'floatInPath': return floatInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedFloatInputPayload getPayload() => MalformedFloatInputPayload((b) { - b.floatInBody = floatInBody; - }); + b.floatInBody = floatInBody; + }); @override List get props => [ - floatInBody, - floatInPath, - floatInQuery, - floatInHeader, - ]; + floatInBody, + floatInPath, + floatInQuery, + floatInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedFloatInput') - ..add( - 'floatInBody', - floatInBody, - ) - ..add( - 'floatInPath', - floatInPath, - ) - ..add( - 'floatInQuery', - floatInQuery, - ) - ..add( - 'floatInHeader', - floatInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedFloatInput') + ..add('floatInBody', floatInBody) + ..add('floatInPath', floatInPath) + ..add('floatInQuery', floatInQuery) + ..add('floatInHeader', floatInHeader); return helper.toString(); } } @@ -117,9 +101,9 @@ abstract class MalformedFloatInputPayload with _i2.AWSEquatable implements Built { - factory MalformedFloatInputPayload( - [void Function(MalformedFloatInputPayloadBuilder) updates]) = - _$MalformedFloatInputPayload; + factory MalformedFloatInputPayload([ + void Function(MalformedFloatInputPayloadBuilder) updates, + ]) = _$MalformedFloatInputPayload; const MalformedFloatInputPayload._(); @@ -130,10 +114,7 @@ abstract class MalformedFloatInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedFloatInputPayload') - ..add( - 'floatInBody', - floatInBody, - ); + ..add('floatInBody', floatInBody); return helper.toString(); } } @@ -144,19 +125,16 @@ class MalformedFloatInputRestJson1Serializer @override Iterable get types => const [ - MalformedFloatInput, - _$MalformedFloatInput, - MalformedFloatInputPayload, - _$MalformedFloatInputPayload, - ]; + MalformedFloatInput, + _$MalformedFloatInput, + MalformedFloatInputPayload, + _$MalformedFloatInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedFloatInputPayload deserialize( @@ -175,10 +153,12 @@ class MalformedFloatInputRestJson1Serializer } switch (key) { case 'floatInBody': - result.floatInBody = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -196,10 +176,12 @@ class MalformedFloatInputRestJson1Serializer if (floatInBody != null) { result$ ..add('floatInBody') - ..add(serializers.serialize( - floatInBody, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatInBody, + specifiedType: const FullType(double), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart index 14774f758a..7547af165a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_float_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedFloatInput extends MalformedFloatInput { @override final double? floatInHeader; - factory _$MalformedFloatInput( - [void Function(MalformedFloatInputBuilder)? updates]) => - (new MalformedFloatInputBuilder()..update(updates))._build(); - - _$MalformedFloatInput._( - {this.floatInBody, - required this.floatInPath, - this.floatInQuery, - this.floatInHeader}) - : super._() { + factory _$MalformedFloatInput([ + void Function(MalformedFloatInputBuilder)? updates, + ]) => (new MalformedFloatInputBuilder()..update(updates))._build(); + + _$MalformedFloatInput._({ + this.floatInBody, + required this.floatInPath, + this.floatInQuery, + this.floatInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - floatInPath, r'MalformedFloatInput', 'floatInPath'); + floatInPath, + r'MalformedFloatInput', + 'floatInPath', + ); } @override MalformedFloatInput rebuild( - void Function(MalformedFloatInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedFloatInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedFloatInputBuilder toBuilder() => @@ -111,13 +114,18 @@ class MalformedFloatInputBuilder MalformedFloatInput build() => _build(); _$MalformedFloatInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedFloatInput._( - floatInBody: floatInBody, - floatInPath: BuiltValueNullFieldError.checkNotNull( - floatInPath, r'MalformedFloatInput', 'floatInPath'), - floatInQuery: floatInQuery, - floatInHeader: floatInHeader); + floatInBody: floatInBody, + floatInPath: BuiltValueNullFieldError.checkNotNull( + floatInPath, + r'MalformedFloatInput', + 'floatInPath', + ), + floatInQuery: floatInQuery, + floatInHeader: floatInHeader, + ); replace(_$result); return _$result; } @@ -127,16 +135,16 @@ class _$MalformedFloatInputPayload extends MalformedFloatInputPayload { @override final double? floatInBody; - factory _$MalformedFloatInputPayload( - [void Function(MalformedFloatInputPayloadBuilder)? updates]) => - (new MalformedFloatInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedFloatInputPayload([ + void Function(MalformedFloatInputPayloadBuilder)? updates, + ]) => (new MalformedFloatInputPayloadBuilder()..update(updates))._build(); _$MalformedFloatInputPayload._({this.floatInBody}) : super._(); @override MalformedFloatInputPayload rebuild( - void Function(MalformedFloatInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedFloatInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedFloatInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart index 0acf8e9328..3bee51e254 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_integer_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedIntegerInput ); } - factory MalformedIntegerInput.build( - [void Function(MalformedIntegerInputBuilder) updates]) = - _$MalformedIntegerInput; + factory MalformedIntegerInput.build([ + void Function(MalformedIntegerInputBuilder) updates, + ]) = _$MalformedIntegerInput; const MalformedIntegerInput._(); @@ -42,23 +42,21 @@ abstract class MalformedIntegerInput MalformedIntegerInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedIntegerInput.build((b) { - b.integerInBody = payload.integerInBody; - if (request.headers['integerInHeader'] != null) { - b.integerInHeader = int.parse(request.headers['integerInHeader']!); - } - if (request.queryParameters['integerInQuery'] != null) { - b.integerInQuery = - int.parse(request.queryParameters['integerInQuery']!); - } - if (labels['integerInPath'] != null) { - b.integerInPath = int.parse(labels['integerInPath']!); - } - }); + }) => MalformedIntegerInput.build((b) { + b.integerInBody = payload.integerInBody; + if (request.headers['integerInHeader'] != null) { + b.integerInHeader = int.parse(request.headers['integerInHeader']!); + } + if (request.queryParameters['integerInQuery'] != null) { + b.integerInQuery = int.parse(request.queryParameters['integerInQuery']!); + } + if (labels['integerInPath'] != null) { + b.integerInPath = int.parse(labels['integerInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedIntegerInputRestJson1Serializer()]; + serializers = [MalformedIntegerInputRestJson1Serializer()]; int? get integerInBody; int get integerInPath; @@ -70,10 +68,7 @@ abstract class MalformedIntegerInput case 'integerInPath': return integerInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -84,45 +79,35 @@ abstract class MalformedIntegerInput @override List get props => [ - integerInBody, - integerInPath, - integerInQuery, - integerInHeader, - ]; + integerInBody, + integerInPath, + integerInQuery, + integerInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedIntegerInput') - ..add( - 'integerInBody', - integerInBody, - ) - ..add( - 'integerInPath', - integerInPath, - ) - ..add( - 'integerInQuery', - integerInQuery, - ) - ..add( - 'integerInHeader', - integerInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedIntegerInput') + ..add('integerInBody', integerInBody) + ..add('integerInPath', integerInPath) + ..add('integerInQuery', integerInQuery) + ..add('integerInHeader', integerInHeader); return helper.toString(); } } @_i3.internal abstract class MalformedIntegerInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory MalformedIntegerInputPayload( - [void Function(MalformedIntegerInputPayloadBuilder) updates]) = - _$MalformedIntegerInputPayload; + Built< + MalformedIntegerInputPayload, + MalformedIntegerInputPayloadBuilder + > { + factory MalformedIntegerInputPayload([ + void Function(MalformedIntegerInputPayloadBuilder) updates, + ]) = _$MalformedIntegerInputPayload; const MalformedIntegerInputPayload._(); @@ -133,10 +118,7 @@ abstract class MalformedIntegerInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedIntegerInputPayload') - ..add( - 'integerInBody', - integerInBody, - ); + ..add('integerInBody', integerInBody); return helper.toString(); } } @@ -144,23 +126,20 @@ abstract class MalformedIntegerInputPayload class MalformedIntegerInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedIntegerInputRestJson1Serializer() - : super('MalformedIntegerInput'); + : super('MalformedIntegerInput'); @override Iterable get types => const [ - MalformedIntegerInput, - _$MalformedIntegerInput, - MalformedIntegerInputPayload, - _$MalformedIntegerInputPayload, - ]; + MalformedIntegerInput, + _$MalformedIntegerInput, + MalformedIntegerInputPayload, + _$MalformedIntegerInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedIntegerInputPayload deserialize( @@ -179,10 +158,12 @@ class MalformedIntegerInputRestJson1Serializer } switch (key) { case 'integerInBody': - result.integerInBody = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -200,10 +181,12 @@ class MalformedIntegerInputRestJson1Serializer if (integerInBody != null) { result$ ..add('integerInBody') - ..add(serializers.serialize( - integerInBody, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerInBody, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart index 4c4bfa7f99..8413ba13e8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_integer_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedIntegerInput extends MalformedIntegerInput { @override final int? integerInHeader; - factory _$MalformedIntegerInput( - [void Function(MalformedIntegerInputBuilder)? updates]) => - (new MalformedIntegerInputBuilder()..update(updates))._build(); - - _$MalformedIntegerInput._( - {this.integerInBody, - required this.integerInPath, - this.integerInQuery, - this.integerInHeader}) - : super._() { + factory _$MalformedIntegerInput([ + void Function(MalformedIntegerInputBuilder)? updates, + ]) => (new MalformedIntegerInputBuilder()..update(updates))._build(); + + _$MalformedIntegerInput._({ + this.integerInBody, + required this.integerInPath, + this.integerInQuery, + this.integerInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - integerInPath, r'MalformedIntegerInput', 'integerInPath'); + integerInPath, + r'MalformedIntegerInput', + 'integerInPath', + ); } @override MalformedIntegerInput rebuild( - void Function(MalformedIntegerInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedIntegerInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedIntegerInputBuilder toBuilder() => @@ -114,13 +117,18 @@ class MalformedIntegerInputBuilder MalformedIntegerInput build() => _build(); _$MalformedIntegerInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedIntegerInput._( - integerInBody: integerInBody, - integerInPath: BuiltValueNullFieldError.checkNotNull( - integerInPath, r'MalformedIntegerInput', 'integerInPath'), - integerInQuery: integerInQuery, - integerInHeader: integerInHeader); + integerInBody: integerInBody, + integerInPath: BuiltValueNullFieldError.checkNotNull( + integerInPath, + r'MalformedIntegerInput', + 'integerInPath', + ), + integerInQuery: integerInQuery, + integerInHeader: integerInHeader, + ); replace(_$result); return _$result; } @@ -130,16 +138,16 @@ class _$MalformedIntegerInputPayload extends MalformedIntegerInputPayload { @override final int? integerInBody; - factory _$MalformedIntegerInputPayload( - [void Function(MalformedIntegerInputPayloadBuilder)? updates]) => - (new MalformedIntegerInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedIntegerInputPayload([ + void Function(MalformedIntegerInputPayloadBuilder)? updates, + ]) => (new MalformedIntegerInputPayloadBuilder()..update(updates))._build(); _$MalformedIntegerInputPayload._({this.integerInBody}) : super._(); @override MalformedIntegerInputPayload rebuild( - void Function(MalformedIntegerInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedIntegerInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedIntegerInputPayloadBuilder toBuilder() => @@ -163,8 +171,10 @@ class _$MalformedIntegerInputPayload extends MalformedIntegerInputPayload { class MalformedIntegerInputPayloadBuilder implements - Builder { + Builder< + MalformedIntegerInputPayload, + MalformedIntegerInputPayloadBuilder + > { _$MalformedIntegerInputPayload? _$v; int? _integerInBody; @@ -198,7 +208,8 @@ class MalformedIntegerInputPayloadBuilder MalformedIntegerInputPayload build() => _build(); _$MalformedIntegerInputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedIntegerInputPayload._(integerInBody: integerInBody); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart index 443b2e3eff..07f68cf575 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_list_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,12 +16,13 @@ abstract class MalformedListInput implements Built { factory MalformedListInput({List? bodyList}) { return _$MalformedListInput._( - bodyList: bodyList == null ? null : _i3.BuiltList(bodyList)); + bodyList: bodyList == null ? null : _i3.BuiltList(bodyList), + ); } - factory MalformedListInput.build( - [void Function(MalformedListInputBuilder) updates]) = - _$MalformedListInput; + factory MalformedListInput.build([ + void Function(MalformedListInputBuilder) updates, + ]) = _$MalformedListInput; const MalformedListInput._(); @@ -29,11 +30,10 @@ abstract class MalformedListInput MalformedListInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedListInputRestJson1Serializer() + MalformedListInputRestJson1Serializer(), ]; _i3.BuiltList? get bodyList; @@ -46,10 +46,7 @@ abstract class MalformedListInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedListInput') - ..add( - 'bodyList', - bodyList, - ); + ..add('bodyList', bodyList); return helper.toString(); } } @@ -59,18 +56,12 @@ class MalformedListInputRestJson1Serializer const MalformedListInputRestJson1Serializer() : super('MalformedListInput'); @override - Iterable get types => const [ - MalformedListInput, - _$MalformedListInput, - ]; + Iterable get types => const [MalformedListInput, _$MalformedListInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedListInput deserialize( @@ -89,13 +80,15 @@ class MalformedListInputRestJson1Serializer } switch (key) { case 'bodyList': - result.bodyList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.bodyList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); } } @@ -113,13 +106,12 @@ class MalformedListInputRestJson1Serializer if (bodyList != null) { result$ ..add('bodyList') - ..add(serializers.serialize( - bodyList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + bodyList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart index 1059a5956a..25baa04f03 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_list_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedListInput extends MalformedListInput { @override final _i3.BuiltList? bodyList; - factory _$MalformedListInput( - [void Function(MalformedListInputBuilder)? updates]) => - (new MalformedListInputBuilder()..update(updates))._build(); + factory _$MalformedListInput([ + void Function(MalformedListInputBuilder)? updates, + ]) => (new MalformedListInputBuilder()..update(updates))._build(); _$MalformedListInput._({this.bodyList}) : super._(); @override MalformedListInput rebuild( - void Function(MalformedListInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedListInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedListInputBuilder toBuilder() => @@ -87,7 +87,10 @@ class MalformedListInputBuilder _bodyList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedListInput', _$failedField, e.toString()); + r'MalformedListInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart index d03cad8d68..9ac8dbfd87 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_long_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class MalformedLongInput ); } - factory MalformedLongInput.build( - [void Function(MalformedLongInputBuilder) updates]) = - _$MalformedLongInput; + factory MalformedLongInput.build([ + void Function(MalformedLongInputBuilder) updates, + ]) = _$MalformedLongInput; const MalformedLongInput._(); @@ -43,23 +43,23 @@ abstract class MalformedLongInput MalformedLongInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedLongInput.build((b) { - b.longInBody = payload.longInBody; - if (request.headers['longInHeader'] != null) { - b.longInHeader = _i3.Int64.parseInt(request.headers['longInHeader']!); - } - if (request.queryParameters['longInQuery'] != null) { - b.longInQuery = - _i3.Int64.parseInt(request.queryParameters['longInQuery']!); - } - if (labels['longInPath'] != null) { - b.longInPath = _i3.Int64.parseInt(labels['longInPath']!); - } - }); + }) => MalformedLongInput.build((b) { + b.longInBody = payload.longInBody; + if (request.headers['longInHeader'] != null) { + b.longInHeader = _i3.Int64.parseInt(request.headers['longInHeader']!); + } + if (request.queryParameters['longInQuery'] != null) { + b.longInQuery = _i3.Int64.parseInt( + request.queryParameters['longInQuery']!, + ); + } + if (labels['longInPath'] != null) { + b.longInPath = _i3.Int64.parseInt(labels['longInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedLongInputRestJson1Serializer()]; + serializers = [MalformedLongInputRestJson1Serializer()]; _i3.Int64? get longInBody; _i3.Int64 get longInPath; @@ -71,44 +71,30 @@ abstract class MalformedLongInput case 'longInPath': return longInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedLongInputPayload getPayload() => MalformedLongInputPayload((b) { - b.longInBody = longInBody; - }); + b.longInBody = longInBody; + }); @override List get props => [ - longInBody, - longInPath, - longInQuery, - longInHeader, - ]; + longInBody, + longInPath, + longInQuery, + longInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedLongInput') - ..add( - 'longInBody', - longInBody, - ) - ..add( - 'longInPath', - longInPath, - ) - ..add( - 'longInQuery', - longInQuery, - ) - ..add( - 'longInHeader', - longInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedLongInput') + ..add('longInBody', longInBody) + ..add('longInPath', longInPath) + ..add('longInQuery', longInQuery) + ..add('longInHeader', longInHeader); return helper.toString(); } } @@ -118,9 +104,9 @@ abstract class MalformedLongInputPayload with _i2.AWSEquatable implements Built { - factory MalformedLongInputPayload( - [void Function(MalformedLongInputPayloadBuilder) updates]) = - _$MalformedLongInputPayload; + factory MalformedLongInputPayload([ + void Function(MalformedLongInputPayloadBuilder) updates, + ]) = _$MalformedLongInputPayload; const MalformedLongInputPayload._(); @@ -131,10 +117,7 @@ abstract class MalformedLongInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedLongInputPayload') - ..add( - 'longInBody', - longInBody, - ); + ..add('longInBody', longInBody); return helper.toString(); } } @@ -145,19 +128,16 @@ class MalformedLongInputRestJson1Serializer @override Iterable get types => const [ - MalformedLongInput, - _$MalformedLongInput, - MalformedLongInputPayload, - _$MalformedLongInputPayload, - ]; + MalformedLongInput, + _$MalformedLongInput, + MalformedLongInputPayload, + _$MalformedLongInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLongInputPayload deserialize( @@ -176,10 +156,12 @@ class MalformedLongInputRestJson1Serializer } switch (key) { case 'longInBody': - result.longInBody = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); } } @@ -197,10 +179,12 @@ class MalformedLongInputRestJson1Serializer if (longInBody != null) { result$ ..add('longInBody') - ..add(serializers.serialize( - longInBody, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longInBody, + specifiedType: const FullType(_i3.Int64), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart index 3b318e7dc6..5da7171ac9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_long_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedLongInput extends MalformedLongInput { @override final _i3.Int64? longInHeader; - factory _$MalformedLongInput( - [void Function(MalformedLongInputBuilder)? updates]) => - (new MalformedLongInputBuilder()..update(updates))._build(); - - _$MalformedLongInput._( - {this.longInBody, - required this.longInPath, - this.longInQuery, - this.longInHeader}) - : super._() { + factory _$MalformedLongInput([ + void Function(MalformedLongInputBuilder)? updates, + ]) => (new MalformedLongInputBuilder()..update(updates))._build(); + + _$MalformedLongInput._({ + this.longInBody, + required this.longInPath, + this.longInQuery, + this.longInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - longInPath, r'MalformedLongInput', 'longInPath'); + longInPath, + r'MalformedLongInput', + 'longInPath', + ); } @override MalformedLongInput rebuild( - void Function(MalformedLongInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLongInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLongInputBuilder toBuilder() => @@ -111,13 +114,18 @@ class MalformedLongInputBuilder MalformedLongInput build() => _build(); _$MalformedLongInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedLongInput._( - longInBody: longInBody, - longInPath: BuiltValueNullFieldError.checkNotNull( - longInPath, r'MalformedLongInput', 'longInPath'), - longInQuery: longInQuery, - longInHeader: longInHeader); + longInBody: longInBody, + longInPath: BuiltValueNullFieldError.checkNotNull( + longInPath, + r'MalformedLongInput', + 'longInPath', + ), + longInQuery: longInQuery, + longInHeader: longInHeader, + ); replace(_$result); return _$result; } @@ -127,16 +135,16 @@ class _$MalformedLongInputPayload extends MalformedLongInputPayload { @override final _i3.Int64? longInBody; - factory _$MalformedLongInputPayload( - [void Function(MalformedLongInputPayloadBuilder)? updates]) => - (new MalformedLongInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedLongInputPayload([ + void Function(MalformedLongInputPayloadBuilder)? updates, + ]) => (new MalformedLongInputPayloadBuilder()..update(updates))._build(); _$MalformedLongInputPayload._({this.longInBody}) : super._(); @override MalformedLongInputPayload rebuild( - void Function(MalformedLongInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLongInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLongInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart index 2076fef5a7..a748231cd2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_map_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,11 +16,13 @@ abstract class MalformedMapInput implements Built { factory MalformedMapInput({Map? bodyMap}) { return _$MalformedMapInput._( - bodyMap: bodyMap == null ? null : _i3.BuiltMap(bodyMap)); + bodyMap: bodyMap == null ? null : _i3.BuiltMap(bodyMap), + ); } - factory MalformedMapInput.build( - [void Function(MalformedMapInputBuilder) updates]) = _$MalformedMapInput; + factory MalformedMapInput.build([ + void Function(MalformedMapInputBuilder) updates, + ]) = _$MalformedMapInput; const MalformedMapInput._(); @@ -28,11 +30,10 @@ abstract class MalformedMapInput MalformedMapInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedMapInputRestJson1Serializer() + MalformedMapInputRestJson1Serializer(), ]; _i3.BuiltMap? get bodyMap; @@ -45,10 +46,7 @@ abstract class MalformedMapInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedMapInput') - ..add( - 'bodyMap', - bodyMap, - ); + ..add('bodyMap', bodyMap); return helper.toString(); } } @@ -58,18 +56,12 @@ class MalformedMapInputRestJson1Serializer const MalformedMapInputRestJson1Serializer() : super('MalformedMapInput'); @override - Iterable get types => const [ - MalformedMapInput, - _$MalformedMapInput, - ]; + Iterable get types => const [MalformedMapInput, _$MalformedMapInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedMapInput deserialize( @@ -88,16 +80,16 @@ class MalformedMapInputRestJson1Serializer } switch (key) { case 'bodyMap': - result.bodyMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.bodyMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); } } @@ -115,16 +107,15 @@ class MalformedMapInputRestJson1Serializer if (bodyMap != null) { result$ ..add('bodyMap') - ..add(serializers.serialize( - bodyMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + bodyMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart index 0608940c04..cea194bf36 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_map_input.g.dart @@ -10,9 +10,9 @@ class _$MalformedMapInput extends MalformedMapInput { @override final _i3.BuiltMap? bodyMap; - factory _$MalformedMapInput( - [void Function(MalformedMapInputBuilder)? updates]) => - (new MalformedMapInputBuilder()..update(updates))._build(); + factory _$MalformedMapInput([ + void Function(MalformedMapInputBuilder)? updates, + ]) => (new MalformedMapInputBuilder()..update(updates))._build(); _$MalformedMapInput._({this.bodyMap}) : super._(); @@ -85,7 +85,10 @@ class MalformedMapInputBuilder _bodyMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedMapInput', _$failedField, e.toString()); + r'MalformedMapInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart index 0a96a841f6..bad5ec2998 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_request_body_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,19 +16,13 @@ abstract class MalformedRequestBodyInput _i2.AWSEquatable implements Built { - factory MalformedRequestBodyInput({ - int? int_, - double? float, - }) { - return _$MalformedRequestBodyInput._( - int_: int_, - float: float, - ); + factory MalformedRequestBodyInput({int? int_, double? float}) { + return _$MalformedRequestBodyInput._(int_: int_, float: float); } - factory MalformedRequestBodyInput.build( - [void Function(MalformedRequestBodyInputBuilder) updates]) = - _$MalformedRequestBodyInput; + factory MalformedRequestBodyInput.build([ + void Function(MalformedRequestBodyInputBuilder) updates, + ]) = _$MalformedRequestBodyInput; const MalformedRequestBodyInput._(); @@ -36,11 +30,10 @@ abstract class MalformedRequestBodyInput MalformedRequestBodyInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedRequestBodyInputRestJson1Serializer()]; + serializers = [MalformedRequestBodyInputRestJson1Serializer()]; int? get int_; double? get float; @@ -48,22 +41,14 @@ abstract class MalformedRequestBodyInput MalformedRequestBodyInput getPayload() => this; @override - List get props => [ - int_, - float, - ]; + List get props => [int_, float]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRequestBodyInput') - ..add( - 'int_', - int_, - ) - ..add( - 'float', - float, - ); + final helper = + newBuiltValueToStringHelper('MalformedRequestBodyInput') + ..add('int_', int_) + ..add('float', float); return helper.toString(); } } @@ -71,21 +56,18 @@ abstract class MalformedRequestBodyInput class MalformedRequestBodyInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedRequestBodyInputRestJson1Serializer() - : super('MalformedRequestBodyInput'); + : super('MalformedRequestBodyInput'); @override Iterable get types => const [ - MalformedRequestBodyInput, - _$MalformedRequestBodyInput, - ]; + MalformedRequestBodyInput, + _$MalformedRequestBodyInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRequestBodyInput deserialize( @@ -104,15 +86,19 @@ class MalformedRequestBodyInputRestJson1Serializer } switch (key) { case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'int': - result.int_ = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.int_ = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -130,18 +116,14 @@ class MalformedRequestBodyInputRestJson1Serializer if (float != null) { result$ ..add('float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (int_ != null) { result$ ..add('int') - ..add(serializers.serialize( - int_, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(int_, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart index 03f513b33d..8b19e5f219 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_request_body_input.g.dart @@ -12,16 +12,16 @@ class _$MalformedRequestBodyInput extends MalformedRequestBodyInput { @override final double? float; - factory _$MalformedRequestBodyInput( - [void Function(MalformedRequestBodyInputBuilder)? updates]) => - (new MalformedRequestBodyInputBuilder()..update(updates))._build(); + factory _$MalformedRequestBodyInput([ + void Function(MalformedRequestBodyInputBuilder)? updates, + ]) => (new MalformedRequestBodyInputBuilder()..update(updates))._build(); _$MalformedRequestBodyInput._({this.int_, this.float}) : super._(); @override MalformedRequestBodyInput rebuild( - void Function(MalformedRequestBodyInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRequestBodyInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRequestBodyInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart index c3337b3bce..63dd01fa85 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_short_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,9 +32,9 @@ abstract class MalformedShortInput ); } - factory MalformedShortInput.build( - [void Function(MalformedShortInputBuilder) updates]) = - _$MalformedShortInput; + factory MalformedShortInput.build([ + void Function(MalformedShortInputBuilder) updates, + ]) = _$MalformedShortInput; const MalformedShortInput._(); @@ -42,22 +42,21 @@ abstract class MalformedShortInput MalformedShortInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedShortInput.build((b) { - b.shortInBody = payload.shortInBody; - if (request.headers['shortInHeader'] != null) { - b.shortInHeader = int.parse(request.headers['shortInHeader']!); - } - if (request.queryParameters['shortInQuery'] != null) { - b.shortInQuery = int.parse(request.queryParameters['shortInQuery']!); - } - if (labels['shortInPath'] != null) { - b.shortInPath = int.parse(labels['shortInPath']!); - } - }); + }) => MalformedShortInput.build((b) { + b.shortInBody = payload.shortInBody; + if (request.headers['shortInHeader'] != null) { + b.shortInHeader = int.parse(request.headers['shortInHeader']!); + } + if (request.queryParameters['shortInQuery'] != null) { + b.shortInQuery = int.parse(request.queryParameters['shortInQuery']!); + } + if (labels['shortInPath'] != null) { + b.shortInPath = int.parse(labels['shortInPath']!); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedShortInputRestJson1Serializer()]; + serializers = [MalformedShortInputRestJson1Serializer()]; int? get shortInBody; int get shortInPath; @@ -69,44 +68,30 @@ abstract class MalformedShortInput case 'shortInPath': return shortInPath.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override MalformedShortInputPayload getPayload() => MalformedShortInputPayload((b) { - b.shortInBody = shortInBody; - }); + b.shortInBody = shortInBody; + }); @override List get props => [ - shortInBody, - shortInPath, - shortInQuery, - shortInHeader, - ]; + shortInBody, + shortInPath, + shortInQuery, + shortInHeader, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedShortInput') - ..add( - 'shortInBody', - shortInBody, - ) - ..add( - 'shortInPath', - shortInPath, - ) - ..add( - 'shortInQuery', - shortInQuery, - ) - ..add( - 'shortInHeader', - shortInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedShortInput') + ..add('shortInBody', shortInBody) + ..add('shortInPath', shortInPath) + ..add('shortInQuery', shortInQuery) + ..add('shortInHeader', shortInHeader); return helper.toString(); } } @@ -116,9 +101,9 @@ abstract class MalformedShortInputPayload with _i2.AWSEquatable implements Built { - factory MalformedShortInputPayload( - [void Function(MalformedShortInputPayloadBuilder) updates]) = - _$MalformedShortInputPayload; + factory MalformedShortInputPayload([ + void Function(MalformedShortInputPayloadBuilder) updates, + ]) = _$MalformedShortInputPayload; const MalformedShortInputPayload._(); @@ -129,10 +114,7 @@ abstract class MalformedShortInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedShortInputPayload') - ..add( - 'shortInBody', - shortInBody, - ); + ..add('shortInBody', shortInBody); return helper.toString(); } } @@ -143,19 +125,16 @@ class MalformedShortInputRestJson1Serializer @override Iterable get types => const [ - MalformedShortInput, - _$MalformedShortInput, - MalformedShortInputPayload, - _$MalformedShortInputPayload, - ]; + MalformedShortInput, + _$MalformedShortInput, + MalformedShortInputPayload, + _$MalformedShortInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedShortInputPayload deserialize( @@ -174,10 +153,12 @@ class MalformedShortInputRestJson1Serializer } switch (key) { case 'shortInBody': - result.shortInBody = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortInBody = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -195,10 +176,12 @@ class MalformedShortInputRestJson1Serializer if (shortInBody != null) { result$ ..add('shortInBody') - ..add(serializers.serialize( - shortInBody, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + shortInBody, + specifiedType: const FullType(int), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart index 6b3749555d..eb93702c36 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_short_input.g.dart @@ -16,24 +16,27 @@ class _$MalformedShortInput extends MalformedShortInput { @override final int? shortInHeader; - factory _$MalformedShortInput( - [void Function(MalformedShortInputBuilder)? updates]) => - (new MalformedShortInputBuilder()..update(updates))._build(); - - _$MalformedShortInput._( - {this.shortInBody, - required this.shortInPath, - this.shortInQuery, - this.shortInHeader}) - : super._() { + factory _$MalformedShortInput([ + void Function(MalformedShortInputBuilder)? updates, + ]) => (new MalformedShortInputBuilder()..update(updates))._build(); + + _$MalformedShortInput._({ + this.shortInBody, + required this.shortInPath, + this.shortInQuery, + this.shortInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - shortInPath, r'MalformedShortInput', 'shortInPath'); + shortInPath, + r'MalformedShortInput', + 'shortInPath', + ); } @override MalformedShortInput rebuild( - void Function(MalformedShortInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedShortInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedShortInputBuilder toBuilder() => @@ -111,13 +114,18 @@ class MalformedShortInputBuilder MalformedShortInput build() => _build(); _$MalformedShortInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedShortInput._( - shortInBody: shortInBody, - shortInPath: BuiltValueNullFieldError.checkNotNull( - shortInPath, r'MalformedShortInput', 'shortInPath'), - shortInQuery: shortInQuery, - shortInHeader: shortInHeader); + shortInBody: shortInBody, + shortInPath: BuiltValueNullFieldError.checkNotNull( + shortInPath, + r'MalformedShortInput', + 'shortInPath', + ), + shortInQuery: shortInQuery, + shortInHeader: shortInHeader, + ); replace(_$result); return _$result; } @@ -127,16 +135,16 @@ class _$MalformedShortInputPayload extends MalformedShortInputPayload { @override final int? shortInBody; - factory _$MalformedShortInputPayload( - [void Function(MalformedShortInputPayloadBuilder)? updates]) => - (new MalformedShortInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedShortInputPayload([ + void Function(MalformedShortInputPayloadBuilder)? updates, + ]) => (new MalformedShortInputPayloadBuilder()..update(updates))._build(); _$MalformedShortInputPayload._({this.shortInBody}) : super._(); @override MalformedShortInputPayload rebuild( - void Function(MalformedShortInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedShortInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedShortInputPayloadBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart index 7b41a8e13a..238c816520 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -24,12 +24,13 @@ abstract class MalformedStringInput _i1.HasPayload { factory MalformedStringInput({Object? blob}) { return _$MalformedStringInput._( - blob: blob == null ? null : _i3.JsonObject(blob)); + blob: blob == null ? null : _i3.JsonObject(blob), + ); } - factory MalformedStringInput.build( - [void Function(MalformedStringInputBuilder) updates]) = - _$MalformedStringInput; + factory MalformedStringInput.build([ + void Function(MalformedStringInputBuilder) updates, + ]) = _$MalformedStringInput; const MalformedStringInput._(); @@ -37,16 +38,20 @@ abstract class MalformedStringInput MalformedStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedStringInput.build((b) { - if (request.headers['amz-media-typed-header'] != null) { - b.blob = _i3.JsonObject(_i4.jsonDecode(_i4.utf8.decode( - _i4.base64Decode(request.headers['amz-media-typed-header']!)))); - } - }); + }) => MalformedStringInput.build((b) { + if (request.headers['amz-media-typed-header'] != null) { + b.blob = _i3.JsonObject( + _i4.jsonDecode( + _i4.utf8.decode( + _i4.base64Decode(request.headers['amz-media-typed-header']!), + ), + ), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedStringInputRestJson1Serializer()]; + serializers = [MalformedStringInputRestJson1Serializer()]; _i3.JsonObject? get blob; @override @@ -58,10 +63,7 @@ abstract class MalformedStringInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedStringInput') - ..add( - 'blob', - blob, - ); + ..add('blob', blob); return helper.toString(); } } @@ -72,9 +74,9 @@ abstract class MalformedStringInputPayload implements Built, _i1.EmptyPayload { - factory MalformedStringInputPayload( - [void Function(MalformedStringInputPayloadBuilder) updates]) = - _$MalformedStringInputPayload; + factory MalformedStringInputPayload([ + void Function(MalformedStringInputPayloadBuilder) updates, + ]) = _$MalformedStringInputPayload; const MalformedStringInputPayload._(); @@ -91,23 +93,20 @@ abstract class MalformedStringInputPayload class MalformedStringInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedStringInputRestJson1Serializer() - : super('MalformedStringInput'); + : super('MalformedStringInput'); @override Iterable get types => const [ - MalformedStringInput, - _$MalformedStringInput, - MalformedStringInputPayload, - _$MalformedStringInputPayload, - ]; + MalformedStringInput, + _$MalformedStringInput, + MalformedStringInputPayload, + _$MalformedStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedStringInputPayload deserialize( @@ -123,6 +122,5 @@ class MalformedStringInputRestJson1Serializer Serializers serializers, MalformedStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart index e8b68cd1f3..c49238d50c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_string_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedStringInput extends MalformedStringInput { @override final _i3.JsonObject? blob; - factory _$MalformedStringInput( - [void Function(MalformedStringInputBuilder)? updates]) => - (new MalformedStringInputBuilder()..update(updates))._build(); + factory _$MalformedStringInput([ + void Function(MalformedStringInputBuilder)? updates, + ]) => (new MalformedStringInputBuilder()..update(updates))._build(); _$MalformedStringInput._({this.blob}) : super._(); @override MalformedStringInput rebuild( - void Function(MalformedStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedStringInputBuilder toBuilder() => @@ -81,16 +81,16 @@ class MalformedStringInputBuilder } class _$MalformedStringInputPayload extends MalformedStringInputPayload { - factory _$MalformedStringInputPayload( - [void Function(MalformedStringInputPayloadBuilder)? updates]) => - (new MalformedStringInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedStringInputPayload([ + void Function(MalformedStringInputPayloadBuilder)? updates, + ]) => (new MalformedStringInputPayloadBuilder()..update(updates))._build(); _$MalformedStringInputPayload._() : super._(); @override MalformedStringInputPayload rebuild( - void Function(MalformedStringInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedStringInputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$MalformedStringInputPayload extends MalformedStringInputPayload { class MalformedStringInputPayloadBuilder implements - Builder { + Builder< + MalformedStringInputPayload, + MalformedStringInputPayloadBuilder + > { _$MalformedStringInputPayload? _$v; MalformedStringInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart index 52f5f2e1c5..a20b1374bb 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_body_date_time_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class MalformedTimestampBodyDateTimeInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInputBuilder + > { factory MalformedTimestampBodyDateTimeInput({required DateTime timestamp}) { return _$MalformedTimestampBodyDateTimeInput._(timestamp: timestamp); } - factory MalformedTimestampBodyDateTimeInput.build( - [void Function(MalformedTimestampBodyDateTimeInputBuilder) updates]) = - _$MalformedTimestampBodyDateTimeInput; + factory MalformedTimestampBodyDateTimeInput.build([ + void Function(MalformedTimestampBodyDateTimeInputBuilder) updates, + ]) = _$MalformedTimestampBodyDateTimeInput; const MalformedTimestampBodyDateTimeInput._(); @@ -31,11 +33,10 @@ abstract class MalformedTimestampBodyDateTimeInput MalformedTimestampBodyDateTimeInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedTimestampBodyDateTimeInputRestJson1Serializer()]; + serializers = [MalformedTimestampBodyDateTimeInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -46,34 +47,29 @@ abstract class MalformedTimestampBodyDateTimeInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampBodyDateTimeInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampBodyDateTimeInput', + )..add('timestamp', timestamp); return helper.toString(); } } -class MalformedTimestampBodyDateTimeInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampBodyDateTimeInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const MalformedTimestampBodyDateTimeInputRestJson1Serializer() - : super('MalformedTimestampBodyDateTimeInput'); + : super('MalformedTimestampBodyDateTimeInput'); @override Iterable get types => const [ - MalformedTimestampBodyDateTimeInput, - _$MalformedTimestampBodyDateTimeInput, - ]; + MalformedTimestampBodyDateTimeInput, + _$MalformedTimestampBodyDateTimeInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampBodyDateTimeInput deserialize( @@ -112,10 +108,7 @@ class MalformedTimestampBodyDateTimeInputRestJson1Serializer extends _i1 final MalformedTimestampBodyDateTimeInput(:timestamp) = object; result$.addAll([ 'timestamp', - _i1.TimestampSerializer.dateTime.serialize( - serializers, - timestamp, - ), + _i1.TimestampSerializer.dateTime.serialize(serializers, timestamp), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart index 0d10ece765..656a793571 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_date_time_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampBodyDateTimeInput @override final DateTime timestamp; - factory _$MalformedTimestampBodyDateTimeInput( - [void Function(MalformedTimestampBodyDateTimeInputBuilder)? - updates]) => + factory _$MalformedTimestampBodyDateTimeInput([ + void Function(MalformedTimestampBodyDateTimeInputBuilder)? updates, + ]) => (new MalformedTimestampBodyDateTimeInputBuilder()..update(updates)) ._build(); _$MalformedTimestampBodyDateTimeInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyDateTimeInput', 'timestamp'); + timestamp, + r'MalformedTimestampBodyDateTimeInput', + 'timestamp', + ); } @override MalformedTimestampBodyDateTimeInput rebuild( - void Function(MalformedTimestampBodyDateTimeInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampBodyDateTimeInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampBodyDateTimeInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampBodyDateTimeInput class MalformedTimestampBodyDateTimeInputBuilder implements - Builder { + Builder< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInputBuilder + > { _$MalformedTimestampBodyDateTimeInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampBodyDateTimeInputBuilder @override void update( - void Function(MalformedTimestampBodyDateTimeInputBuilder)? updates) { + void Function(MalformedTimestampBodyDateTimeInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampBodyDateTimeInputBuilder MalformedTimestampBodyDateTimeInput build() => _build(); _$MalformedTimestampBodyDateTimeInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampBodyDateTimeInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampBodyDateTimeInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampBodyDateTimeInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart index 1295269c5e..fd03e70e2d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_body_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class MalformedTimestampBodyDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInputBuilder + > { factory MalformedTimestampBodyDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampBodyDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampBodyDefaultInput.build( - [void Function(MalformedTimestampBodyDefaultInputBuilder) updates]) = - _$MalformedTimestampBodyDefaultInput; + factory MalformedTimestampBodyDefaultInput.build([ + void Function(MalformedTimestampBodyDefaultInputBuilder) updates, + ]) = _$MalformedTimestampBodyDefaultInput; const MalformedTimestampBodyDefaultInput._(); @@ -31,11 +33,10 @@ abstract class MalformedTimestampBodyDefaultInput MalformedTimestampBodyDefaultInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedTimestampBodyDefaultInputRestJson1Serializer()]; + serializers = [MalformedTimestampBodyDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -46,12 +47,9 @@ abstract class MalformedTimestampBodyDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampBodyDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampBodyDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @@ -59,21 +57,18 @@ abstract class MalformedTimestampBodyDefaultInput class MalformedTimestampBodyDefaultInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedTimestampBodyDefaultInputRestJson1Serializer() - : super('MalformedTimestampBodyDefaultInput'); + : super('MalformedTimestampBodyDefaultInput'); @override Iterable get types => const [ - MalformedTimestampBodyDefaultInput, - _$MalformedTimestampBodyDefaultInput, - ]; + MalformedTimestampBodyDefaultInput, + _$MalformedTimestampBodyDefaultInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampBodyDefaultInput deserialize( @@ -92,10 +87,12 @@ class MalformedTimestampBodyDefaultInputRestJson1Serializer } switch (key) { case 'timestamp': - result.timestamp = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.timestamp = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -112,10 +109,7 @@ class MalformedTimestampBodyDefaultInputRestJson1Serializer final MalformedTimestampBodyDefaultInput(:timestamp) = object; result$.addAll([ 'timestamp', - serializers.serialize( - timestamp, - specifiedType: const FullType(DateTime), - ), + serializers.serialize(timestamp, specifiedType: const FullType(DateTime)), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart index bd4f746563..3dff43c189 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampBodyDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampBodyDefaultInput( - [void Function(MalformedTimestampBodyDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampBodyDefaultInput([ + void Function(MalformedTimestampBodyDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampBodyDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampBodyDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampBodyDefaultInput', + 'timestamp', + ); } @override MalformedTimestampBodyDefaultInput rebuild( - void Function(MalformedTimestampBodyDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampBodyDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampBodyDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampBodyDefaultInput class MalformedTimestampBodyDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInputBuilder + > { _$MalformedTimestampBodyDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampBodyDefaultInputBuilder @override void update( - void Function(MalformedTimestampBodyDefaultInputBuilder)? updates) { + void Function(MalformedTimestampBodyDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampBodyDefaultInputBuilder MalformedTimestampBodyDefaultInput build() => _build(); _$MalformedTimestampBodyDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampBodyDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampBodyDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart index 3ddd6f93f7..32d3a2190f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_body_http_date_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,15 +15,17 @@ abstract class MalformedTimestampBodyHttpDateInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInputBuilder + > { factory MalformedTimestampBodyHttpDateInput({required DateTime timestamp}) { return _$MalformedTimestampBodyHttpDateInput._(timestamp: timestamp); } - factory MalformedTimestampBodyHttpDateInput.build( - [void Function(MalformedTimestampBodyHttpDateInputBuilder) updates]) = - _$MalformedTimestampBodyHttpDateInput; + factory MalformedTimestampBodyHttpDateInput.build([ + void Function(MalformedTimestampBodyHttpDateInputBuilder) updates, + ]) = _$MalformedTimestampBodyHttpDateInput; const MalformedTimestampBodyHttpDateInput._(); @@ -31,11 +33,10 @@ abstract class MalformedTimestampBodyHttpDateInput MalformedTimestampBodyHttpDateInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedTimestampBodyHttpDateInputRestJson1Serializer()]; + serializers = [MalformedTimestampBodyHttpDateInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -46,34 +47,29 @@ abstract class MalformedTimestampBodyHttpDateInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampBodyHttpDateInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampBodyHttpDateInput', + )..add('timestamp', timestamp); return helper.toString(); } } -class MalformedTimestampBodyHttpDateInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampBodyHttpDateInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const MalformedTimestampBodyHttpDateInputRestJson1Serializer() - : super('MalformedTimestampBodyHttpDateInput'); + : super('MalformedTimestampBodyHttpDateInput'); @override Iterable get types => const [ - MalformedTimestampBodyHttpDateInput, - _$MalformedTimestampBodyHttpDateInput, - ]; + MalformedTimestampBodyHttpDateInput, + _$MalformedTimestampBodyHttpDateInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampBodyHttpDateInput deserialize( @@ -112,10 +108,7 @@ class MalformedTimestampBodyHttpDateInputRestJson1Serializer extends _i1 final MalformedTimestampBodyHttpDateInput(:timestamp) = object; result$.addAll([ 'timestamp', - _i1.TimestampSerializer.httpDate.serialize( - serializers, - timestamp, - ), + _i1.TimestampSerializer.httpDate.serialize(serializers, timestamp), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart index 5cadff6427..1c9dc003c9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_body_http_date_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampBodyHttpDateInput @override final DateTime timestamp; - factory _$MalformedTimestampBodyHttpDateInput( - [void Function(MalformedTimestampBodyHttpDateInputBuilder)? - updates]) => + factory _$MalformedTimestampBodyHttpDateInput([ + void Function(MalformedTimestampBodyHttpDateInputBuilder)? updates, + ]) => (new MalformedTimestampBodyHttpDateInputBuilder()..update(updates)) ._build(); _$MalformedTimestampBodyHttpDateInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampBodyHttpDateInput', 'timestamp'); + timestamp, + r'MalformedTimestampBodyHttpDateInput', + 'timestamp', + ); } @override MalformedTimestampBodyHttpDateInput rebuild( - void Function(MalformedTimestampBodyHttpDateInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampBodyHttpDateInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampBodyHttpDateInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampBodyHttpDateInput class MalformedTimestampBodyHttpDateInputBuilder implements - Builder { + Builder< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInputBuilder + > { _$MalformedTimestampBodyHttpDateInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampBodyHttpDateInputBuilder @override void update( - void Function(MalformedTimestampBodyHttpDateInputBuilder)? updates) { + void Function(MalformedTimestampBodyHttpDateInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampBodyHttpDateInputBuilder MalformedTimestampBodyHttpDateInput build() => _build(); _$MalformedTimestampBodyHttpDateInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampBodyHttpDateInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampBodyHttpDateInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampBodyHttpDateInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart index abd986c1b3..b29352c39c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_header_date_time_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampHeaderDateTimeInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDateTimeInput, + MalformedTimestampHeaderDateTimeInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampHeaderDateTimeInput({required DateTime timestamp}) { return _$MalformedTimestampHeaderDateTimeInput._(timestamp: timestamp); } - factory MalformedTimestampHeaderDateTimeInput.build( - [void Function(MalformedTimestampHeaderDateTimeInputBuilder) - updates]) = _$MalformedTimestampHeaderDateTimeInput; + factory MalformedTimestampHeaderDateTimeInput.build([ + void Function(MalformedTimestampHeaderDateTimeInputBuilder) updates, + ]) = _$MalformedTimestampHeaderDateTimeInput; const MalformedTimestampHeaderDateTimeInput._(); @@ -34,21 +36,20 @@ abstract class MalformedTimestampHeaderDateTimeInput MalformedTimestampHeaderDateTimeInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampHeaderDateTimeInput.build((b) { - if (request.headers['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampHeaderDateTimeInput.build((b) { + if (request.headers['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.headers['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [ - MalformedTimestampHeaderDateTimeInputRestJson1Serializer() - ]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampHeaderDateTimeInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -60,27 +61,25 @@ abstract class MalformedTimestampHeaderDateTimeInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampHeaderDateTimeInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampHeaderDateTimeInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampHeaderDateTimeInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampHeaderDateTimeInputPayload( - [void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) - updates]) = _$MalformedTimestampHeaderDateTimeInputPayload; + factory MalformedTimestampHeaderDateTimeInputPayload([ + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) updates, + ]) = _$MalformedTimestampHeaderDateTimeInputPayload; const MalformedTimestampHeaderDateTimeInputPayload._(); @@ -90,31 +89,32 @@ abstract class MalformedTimestampHeaderDateTimeInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampHeaderDateTimeInputPayload'); + 'MalformedTimestampHeaderDateTimeInputPayload', + ); return helper.toString(); } } -class MalformedTimestampHeaderDateTimeInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampHeaderDateTimeInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampHeaderDateTimeInputPayload + > { const MalformedTimestampHeaderDateTimeInputRestJson1Serializer() - : super('MalformedTimestampHeaderDateTimeInput'); + : super('MalformedTimestampHeaderDateTimeInput'); @override Iterable get types => const [ - MalformedTimestampHeaderDateTimeInput, - _$MalformedTimestampHeaderDateTimeInput, - MalformedTimestampHeaderDateTimeInputPayload, - _$MalformedTimestampHeaderDateTimeInputPayload, - ]; + MalformedTimestampHeaderDateTimeInput, + _$MalformedTimestampHeaderDateTimeInput, + MalformedTimestampHeaderDateTimeInputPayload, + _$MalformedTimestampHeaderDateTimeInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampHeaderDateTimeInputPayload deserialize( @@ -130,6 +130,5 @@ class MalformedTimestampHeaderDateTimeInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampHeaderDateTimeInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart index 6be4be2bdd..53b2c1c8dd 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_date_time_input.g.dart @@ -11,23 +11,25 @@ class _$MalformedTimestampHeaderDateTimeInput @override final DateTime timestamp; - factory _$MalformedTimestampHeaderDateTimeInput( - [void Function(MalformedTimestampHeaderDateTimeInputBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDateTimeInput([ + void Function(MalformedTimestampHeaderDateTimeInputBuilder)? updates, + ]) => (new MalformedTimestampHeaderDateTimeInputBuilder()..update(updates)) ._build(); _$MalformedTimestampHeaderDateTimeInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderDateTimeInput', 'timestamp'); + timestamp, + r'MalformedTimestampHeaderDateTimeInput', + 'timestamp', + ); } @override MalformedTimestampHeaderDateTimeInput rebuild( - void Function(MalformedTimestampHeaderDateTimeInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDateTimeInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDateTimeInputBuilder toBuilder() => @@ -51,8 +53,10 @@ class _$MalformedTimestampHeaderDateTimeInput class MalformedTimestampHeaderDateTimeInputBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDateTimeInput, + MalformedTimestampHeaderDateTimeInputBuilder + > { _$MalformedTimestampHeaderDateTimeInput? _$v; DateTime? _timestamp; @@ -78,7 +82,8 @@ class MalformedTimestampHeaderDateTimeInputBuilder @override void update( - void Function(MalformedTimestampHeaderDateTimeInputBuilder)? updates) { + void Function(MalformedTimestampHeaderDateTimeInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -86,10 +91,15 @@ class MalformedTimestampHeaderDateTimeInputBuilder MalformedTimestampHeaderDateTimeInput build() => _build(); _$MalformedTimestampHeaderDateTimeInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampHeaderDateTimeInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampHeaderDateTimeInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampHeaderDateTimeInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -97,9 +107,9 @@ class MalformedTimestampHeaderDateTimeInputBuilder class _$MalformedTimestampHeaderDateTimeInputPayload extends MalformedTimestampHeaderDateTimeInputPayload { - factory _$MalformedTimestampHeaderDateTimeInputPayload( - [void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDateTimeInputPayload([ + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampHeaderDateTimeInputPayloadBuilder() ..update(updates)) ._build(); @@ -108,9 +118,8 @@ class _$MalformedTimestampHeaderDateTimeInputPayload @override MalformedTimestampHeaderDateTimeInputPayload rebuild( - void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDateTimeInputPayloadBuilder toBuilder() => @@ -130,8 +139,10 @@ class _$MalformedTimestampHeaderDateTimeInputPayload class MalformedTimestampHeaderDateTimeInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInputPayloadBuilder + > { _$MalformedTimestampHeaderDateTimeInputPayload? _$v; MalformedTimestampHeaderDateTimeInputPayloadBuilder(); @@ -144,8 +155,8 @@ class MalformedTimestampHeaderDateTimeInputPayloadBuilder @override void update( - void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampHeaderDateTimeInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart index cb2605845a..60ce9c411d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_header_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampHeaderDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDefaultInput, + MalformedTimestampHeaderDefaultInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampHeaderDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampHeaderDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampHeaderDefaultInput.build( - [void Function(MalformedTimestampHeaderDefaultInputBuilder) - updates]) = _$MalformedTimestampHeaderDefaultInput; + factory MalformedTimestampHeaderDefaultInput.build([ + void Function(MalformedTimestampHeaderDefaultInputBuilder) updates, + ]) = _$MalformedTimestampHeaderDefaultInput; const MalformedTimestampHeaderDefaultInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampHeaderDefaultInput MalformedTimestampHeaderDefaultInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampHeaderDefaultInput.build((b) { - if (request.headers['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampHeaderDefaultInput.build((b) { + if (request.headers['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.headers['timestamp']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampHeaderDefaultInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampHeaderDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampHeaderDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampHeaderDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampHeaderDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampHeaderDefaultInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampHeaderDefaultInputPayload( - [void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) - updates]) = _$MalformedTimestampHeaderDefaultInputPayload; + factory MalformedTimestampHeaderDefaultInputPayload([ + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) updates, + ]) = _$MalformedTimestampHeaderDefaultInputPayload; const MalformedTimestampHeaderDefaultInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampHeaderDefaultInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampHeaderDefaultInputPayload'); + 'MalformedTimestampHeaderDefaultInputPayload', + ); return helper.toString(); } } -class MalformedTimestampHeaderDefaultInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampHeaderDefaultInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampHeaderDefaultInputPayload + > { const MalformedTimestampHeaderDefaultInputRestJson1Serializer() - : super('MalformedTimestampHeaderDefaultInput'); + : super('MalformedTimestampHeaderDefaultInput'); @override Iterable get types => const [ - MalformedTimestampHeaderDefaultInput, - _$MalformedTimestampHeaderDefaultInput, - MalformedTimestampHeaderDefaultInputPayload, - _$MalformedTimestampHeaderDefaultInputPayload, - ]; + MalformedTimestampHeaderDefaultInput, + _$MalformedTimestampHeaderDefaultInput, + MalformedTimestampHeaderDefaultInputPayload, + _$MalformedTimestampHeaderDefaultInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampHeaderDefaultInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampHeaderDefaultInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampHeaderDefaultInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart index 1577e96471..cc419a5fe1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampHeaderDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampHeaderDefaultInput( - [void Function(MalformedTimestampHeaderDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDefaultInput([ + void Function(MalformedTimestampHeaderDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampHeaderDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampHeaderDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampHeaderDefaultInput', + 'timestamp', + ); } @override MalformedTimestampHeaderDefaultInput rebuild( - void Function(MalformedTimestampHeaderDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampHeaderDefaultInput class MalformedTimestampHeaderDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDefaultInput, + MalformedTimestampHeaderDefaultInputBuilder + > { _$MalformedTimestampHeaderDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampHeaderDefaultInputBuilder @override void update( - void Function(MalformedTimestampHeaderDefaultInputBuilder)? updates) { + void Function(MalformedTimestampHeaderDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampHeaderDefaultInputBuilder MalformedTimestampHeaderDefaultInput build() => _build(); _$MalformedTimestampHeaderDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampHeaderDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampHeaderDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampHeaderDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampHeaderDefaultInputBuilder class _$MalformedTimestampHeaderDefaultInputPayload extends MalformedTimestampHeaderDefaultInputPayload { - factory _$MalformedTimestampHeaderDefaultInputPayload( - [void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampHeaderDefaultInputPayload([ + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampHeaderDefaultInputPayloadBuilder() ..update(updates)) ._build(); @@ -107,9 +118,8 @@ class _$MalformedTimestampHeaderDefaultInputPayload @override MalformedTimestampHeaderDefaultInputPayload rebuild( - void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderDefaultInputPayloadBuilder toBuilder() => @@ -129,8 +139,10 @@ class _$MalformedTimestampHeaderDefaultInputPayload class MalformedTimestampHeaderDefaultInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInputPayloadBuilder + > { _$MalformedTimestampHeaderDefaultInputPayload? _$v; MalformedTimestampHeaderDefaultInputPayloadBuilder(); @@ -143,8 +155,8 @@ class MalformedTimestampHeaderDefaultInputPayloadBuilder @override void update( - void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampHeaderDefaultInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart index 5d5e198004..6d9ad951e0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_header_epoch_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampHeaderEpochInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderEpochInput, + MalformedTimestampHeaderEpochInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampHeaderEpochInput({required DateTime timestamp}) { return _$MalformedTimestampHeaderEpochInput._(timestamp: timestamp); } - factory MalformedTimestampHeaderEpochInput.build( - [void Function(MalformedTimestampHeaderEpochInputBuilder) updates]) = - _$MalformedTimestampHeaderEpochInput; + factory MalformedTimestampHeaderEpochInput.build([ + void Function(MalformedTimestampHeaderEpochInputBuilder) updates, + ]) = _$MalformedTimestampHeaderEpochInput; const MalformedTimestampHeaderEpochInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampHeaderEpochInput MalformedTimestampHeaderEpochInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampHeaderEpochInput.build((b) { - if (request.headers['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampHeaderEpochInput.build((b) { + if (request.headers['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( int.parse(request.headers['timestamp']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampHeaderEpochInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampHeaderEpochInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampHeaderEpochInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampHeaderEpochInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampHeaderEpochInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampHeaderEpochInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampHeaderEpochInputPayload( - [void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) - updates]) = _$MalformedTimestampHeaderEpochInputPayload; + factory MalformedTimestampHeaderEpochInputPayload([ + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) updates, + ]) = _$MalformedTimestampHeaderEpochInputPayload; const MalformedTimestampHeaderEpochInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampHeaderEpochInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampHeaderEpochInputPayload'); + 'MalformedTimestampHeaderEpochInputPayload', + ); return helper.toString(); } } -class MalformedTimestampHeaderEpochInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampHeaderEpochInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampHeaderEpochInputPayload + > { const MalformedTimestampHeaderEpochInputRestJson1Serializer() - : super('MalformedTimestampHeaderEpochInput'); + : super('MalformedTimestampHeaderEpochInput'); @override Iterable get types => const [ - MalformedTimestampHeaderEpochInput, - _$MalformedTimestampHeaderEpochInput, - MalformedTimestampHeaderEpochInputPayload, - _$MalformedTimestampHeaderEpochInputPayload, - ]; + MalformedTimestampHeaderEpochInput, + _$MalformedTimestampHeaderEpochInput, + MalformedTimestampHeaderEpochInputPayload, + _$MalformedTimestampHeaderEpochInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampHeaderEpochInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampHeaderEpochInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampHeaderEpochInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart index 8680768fb1..5c22ef7d86 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_header_epoch_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampHeaderEpochInput @override final DateTime timestamp; - factory _$MalformedTimestampHeaderEpochInput( - [void Function(MalformedTimestampHeaderEpochInputBuilder)? - updates]) => + factory _$MalformedTimestampHeaderEpochInput([ + void Function(MalformedTimestampHeaderEpochInputBuilder)? updates, + ]) => (new MalformedTimestampHeaderEpochInputBuilder()..update(updates)) ._build(); _$MalformedTimestampHeaderEpochInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderEpochInput', 'timestamp'); + timestamp, + r'MalformedTimestampHeaderEpochInput', + 'timestamp', + ); } @override MalformedTimestampHeaderEpochInput rebuild( - void Function(MalformedTimestampHeaderEpochInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderEpochInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderEpochInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampHeaderEpochInput class MalformedTimestampHeaderEpochInputBuilder implements - Builder { + Builder< + MalformedTimestampHeaderEpochInput, + MalformedTimestampHeaderEpochInputBuilder + > { _$MalformedTimestampHeaderEpochInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampHeaderEpochInputBuilder @override void update( - void Function(MalformedTimestampHeaderEpochInputBuilder)? updates) { + void Function(MalformedTimestampHeaderEpochInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampHeaderEpochInputBuilder MalformedTimestampHeaderEpochInput build() => _build(); _$MalformedTimestampHeaderEpochInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampHeaderEpochInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampHeaderEpochInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampHeaderEpochInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampHeaderEpochInputBuilder class _$MalformedTimestampHeaderEpochInputPayload extends MalformedTimestampHeaderEpochInputPayload { - factory _$MalformedTimestampHeaderEpochInputPayload( - [void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampHeaderEpochInputPayload([ + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampHeaderEpochInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampHeaderEpochInputPayload @override MalformedTimestampHeaderEpochInputPayload rebuild( - void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampHeaderEpochInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampHeaderEpochInputPayload class MalformedTimestampHeaderEpochInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInputPayloadBuilder + > { _$MalformedTimestampHeaderEpochInputPayload? _$v; MalformedTimestampHeaderEpochInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampHeaderEpochInputPayloadBuilder @override void update( - void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampHeaderEpochInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart index e36607fb10..9c2b95bb01 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_path_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampPathDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathDefaultInput, + MalformedTimestampPathDefaultInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampPathDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampPathDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampPathDefaultInput.build( - [void Function(MalformedTimestampPathDefaultInputBuilder) updates]) = - _$MalformedTimestampPathDefaultInput; + factory MalformedTimestampPathDefaultInput.build([ + void Function(MalformedTimestampPathDefaultInputBuilder) updates, + ]) = _$MalformedTimestampPathDefaultInput; const MalformedTimestampPathDefaultInput._(); @@ -34,33 +36,31 @@ abstract class MalformedTimestampPathDefaultInput MalformedTimestampPathDefaultInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampPathDefaultInput.build((b) { - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampPathDefaultInput.build((b) { + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampPathDefaultInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampPathDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override String labelFor(String key) { switch (key) { case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -72,27 +72,25 @@ abstract class MalformedTimestampPathDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampPathDefaultInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampPathDefaultInputPayload( - [void Function(MalformedTimestampPathDefaultInputPayloadBuilder) - updates]) = _$MalformedTimestampPathDefaultInputPayload; + factory MalformedTimestampPathDefaultInputPayload([ + void Function(MalformedTimestampPathDefaultInputPayloadBuilder) updates, + ]) = _$MalformedTimestampPathDefaultInputPayload; const MalformedTimestampPathDefaultInputPayload._(); @@ -102,31 +100,32 @@ abstract class MalformedTimestampPathDefaultInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampPathDefaultInputPayload'); + 'MalformedTimestampPathDefaultInputPayload', + ); return helper.toString(); } } -class MalformedTimestampPathDefaultInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampPathDefaultInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampPathDefaultInputPayload + > { const MalformedTimestampPathDefaultInputRestJson1Serializer() - : super('MalformedTimestampPathDefaultInput'); + : super('MalformedTimestampPathDefaultInput'); @override Iterable get types => const [ - MalformedTimestampPathDefaultInput, - _$MalformedTimestampPathDefaultInput, - MalformedTimestampPathDefaultInputPayload, - _$MalformedTimestampPathDefaultInputPayload, - ]; + MalformedTimestampPathDefaultInput, + _$MalformedTimestampPathDefaultInput, + MalformedTimestampPathDefaultInputPayload, + _$MalformedTimestampPathDefaultInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampPathDefaultInputPayload deserialize( @@ -142,6 +141,5 @@ class MalformedTimestampPathDefaultInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampPathDefaultInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart index 6891ac160d..043062bc5d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampPathDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampPathDefaultInput( - [void Function(MalformedTimestampPathDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampPathDefaultInput([ + void Function(MalformedTimestampPathDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampPathDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampPathDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampPathDefaultInput', + 'timestamp', + ); } @override MalformedTimestampPathDefaultInput rebuild( - void Function(MalformedTimestampPathDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampPathDefaultInput class MalformedTimestampPathDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampPathDefaultInput, + MalformedTimestampPathDefaultInputBuilder + > { _$MalformedTimestampPathDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampPathDefaultInputBuilder @override void update( - void Function(MalformedTimestampPathDefaultInputBuilder)? updates) { + void Function(MalformedTimestampPathDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampPathDefaultInputBuilder MalformedTimestampPathDefaultInput build() => _build(); _$MalformedTimestampPathDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampPathDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampPathDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampPathDefaultInputBuilder class _$MalformedTimestampPathDefaultInputPayload extends MalformedTimestampPathDefaultInputPayload { - factory _$MalformedTimestampPathDefaultInputPayload( - [void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampPathDefaultInputPayload([ + void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampPathDefaultInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampPathDefaultInputPayload @override MalformedTimestampPathDefaultInputPayload rebuild( - void Function(MalformedTimestampPathDefaultInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathDefaultInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathDefaultInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampPathDefaultInputPayload class MalformedTimestampPathDefaultInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInputPayloadBuilder + > { _$MalformedTimestampPathDefaultInputPayload? _$v; MalformedTimestampPathDefaultInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampPathDefaultInputPayloadBuilder @override void update( - void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampPathDefaultInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart index 4c2624c547..fb16c1f169 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_path_epoch_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampPathEpochInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathEpochInput, + MalformedTimestampPathEpochInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampPathEpochInput({required DateTime timestamp}) { return _$MalformedTimestampPathEpochInput._(timestamp: timestamp); } - factory MalformedTimestampPathEpochInput.build( - [void Function(MalformedTimestampPathEpochInputBuilder) updates]) = - _$MalformedTimestampPathEpochInput; + factory MalformedTimestampPathEpochInput.build([ + void Function(MalformedTimestampPathEpochInputBuilder) updates, + ]) = _$MalformedTimestampPathEpochInput; const MalformedTimestampPathEpochInput._(); @@ -34,33 +36,31 @@ abstract class MalformedTimestampPathEpochInput MalformedTimestampPathEpochInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampPathEpochInput.build((b) { - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampPathEpochInput.build((b) { + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( int.parse(labels['timestamp']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampPathEpochInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampPathEpochInputRestJson1Serializer()]; DateTime get timestamp; @override String labelFor(String key) { switch (key) { case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -72,27 +72,25 @@ abstract class MalformedTimestampPathEpochInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathEpochInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathEpochInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampPathEpochInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampPathEpochInputPayload( - [void Function(MalformedTimestampPathEpochInputPayloadBuilder) - updates]) = _$MalformedTimestampPathEpochInputPayload; + factory MalformedTimestampPathEpochInputPayload([ + void Function(MalformedTimestampPathEpochInputPayloadBuilder) updates, + ]) = _$MalformedTimestampPathEpochInputPayload; const MalformedTimestampPathEpochInputPayload._(); @@ -101,32 +99,33 @@ abstract class MalformedTimestampPathEpochInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathEpochInputPayload'); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathEpochInputPayload', + ); return helper.toString(); } } -class MalformedTimestampPathEpochInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampPathEpochInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampPathEpochInputPayload + > { const MalformedTimestampPathEpochInputRestJson1Serializer() - : super('MalformedTimestampPathEpochInput'); + : super('MalformedTimestampPathEpochInput'); @override Iterable get types => const [ - MalformedTimestampPathEpochInput, - _$MalformedTimestampPathEpochInput, - MalformedTimestampPathEpochInputPayload, - _$MalformedTimestampPathEpochInputPayload, - ]; + MalformedTimestampPathEpochInput, + _$MalformedTimestampPathEpochInput, + MalformedTimestampPathEpochInputPayload, + _$MalformedTimestampPathEpochInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampPathEpochInputPayload deserialize( @@ -142,6 +141,5 @@ class MalformedTimestampPathEpochInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampPathEpochInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart index 592caa7325..95971f4431 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_epoch_input.g.dart @@ -11,19 +11,23 @@ class _$MalformedTimestampPathEpochInput @override final DateTime timestamp; - factory _$MalformedTimestampPathEpochInput( - [void Function(MalformedTimestampPathEpochInputBuilder)? updates]) => + factory _$MalformedTimestampPathEpochInput([ + void Function(MalformedTimestampPathEpochInputBuilder)? updates, + ]) => (new MalformedTimestampPathEpochInputBuilder()..update(updates))._build(); _$MalformedTimestampPathEpochInput._({required this.timestamp}) : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathEpochInput', 'timestamp'); + timestamp, + r'MalformedTimestampPathEpochInput', + 'timestamp', + ); } @override MalformedTimestampPathEpochInput rebuild( - void Function(MalformedTimestampPathEpochInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathEpochInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathEpochInputBuilder toBuilder() => @@ -47,8 +51,10 @@ class _$MalformedTimestampPathEpochInput class MalformedTimestampPathEpochInputBuilder implements - Builder { + Builder< + MalformedTimestampPathEpochInput, + MalformedTimestampPathEpochInputBuilder + > { _$MalformedTimestampPathEpochInput? _$v; DateTime? _timestamp; @@ -81,10 +87,15 @@ class MalformedTimestampPathEpochInputBuilder MalformedTimestampPathEpochInput build() => _build(); _$MalformedTimestampPathEpochInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampPathEpochInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathEpochInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampPathEpochInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -92,9 +103,9 @@ class MalformedTimestampPathEpochInputBuilder class _$MalformedTimestampPathEpochInputPayload extends MalformedTimestampPathEpochInputPayload { - factory _$MalformedTimestampPathEpochInputPayload( - [void Function(MalformedTimestampPathEpochInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampPathEpochInputPayload([ + void Function(MalformedTimestampPathEpochInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampPathEpochInputPayloadBuilder()..update(updates)) ._build(); @@ -102,9 +113,8 @@ class _$MalformedTimestampPathEpochInputPayload @override MalformedTimestampPathEpochInputPayload rebuild( - void Function(MalformedTimestampPathEpochInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathEpochInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathEpochInputPayloadBuilder toBuilder() => @@ -124,8 +134,10 @@ class _$MalformedTimestampPathEpochInputPayload class MalformedTimestampPathEpochInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInputPayloadBuilder + > { _$MalformedTimestampPathEpochInputPayload? _$v; MalformedTimestampPathEpochInputPayloadBuilder(); @@ -138,7 +150,8 @@ class MalformedTimestampPathEpochInputPayloadBuilder @override void update( - void Function(MalformedTimestampPathEpochInputPayloadBuilder)? updates) { + void Function(MalformedTimestampPathEpochInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart index 05891ca104..9059ddace4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_path_http_date_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampPathHttpDateInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathHttpDateInput, + MalformedTimestampPathHttpDateInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampPathHttpDateInput({required DateTime timestamp}) { return _$MalformedTimestampPathHttpDateInput._(timestamp: timestamp); } - factory MalformedTimestampPathHttpDateInput.build( - [void Function(MalformedTimestampPathHttpDateInputBuilder) updates]) = - _$MalformedTimestampPathHttpDateInput; + factory MalformedTimestampPathHttpDateInput.build([ + void Function(MalformedTimestampPathHttpDateInputBuilder) updates, + ]) = _$MalformedTimestampPathHttpDateInput; const MalformedTimestampPathHttpDateInput._(); @@ -34,33 +36,31 @@ abstract class MalformedTimestampPathHttpDateInput MalformedTimestampPathHttpDateInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampPathHttpDateInput.build((b) { - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampPathHttpDateInput.build((b) { + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampPathHttpDateInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampPathHttpDateInputRestJson1Serializer()]; DateTime get timestamp; @override String labelFor(String key) { switch (key) { case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.httpDate).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -72,27 +72,25 @@ abstract class MalformedTimestampPathHttpDateInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampPathHttpDateInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampPathHttpDateInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampPathHttpDateInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampPathHttpDateInputPayload( - [void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) - updates]) = _$MalformedTimestampPathHttpDateInputPayload; + factory MalformedTimestampPathHttpDateInputPayload([ + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) updates, + ]) = _$MalformedTimestampPathHttpDateInputPayload; const MalformedTimestampPathHttpDateInputPayload._(); @@ -102,31 +100,32 @@ abstract class MalformedTimestampPathHttpDateInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampPathHttpDateInputPayload'); + 'MalformedTimestampPathHttpDateInputPayload', + ); return helper.toString(); } } -class MalformedTimestampPathHttpDateInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampPathHttpDateInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampPathHttpDateInputPayload + > { const MalformedTimestampPathHttpDateInputRestJson1Serializer() - : super('MalformedTimestampPathHttpDateInput'); + : super('MalformedTimestampPathHttpDateInput'); @override Iterable get types => const [ - MalformedTimestampPathHttpDateInput, - _$MalformedTimestampPathHttpDateInput, - MalformedTimestampPathHttpDateInputPayload, - _$MalformedTimestampPathHttpDateInputPayload, - ]; + MalformedTimestampPathHttpDateInput, + _$MalformedTimestampPathHttpDateInput, + MalformedTimestampPathHttpDateInputPayload, + _$MalformedTimestampPathHttpDateInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampPathHttpDateInputPayload deserialize( @@ -142,6 +141,5 @@ class MalformedTimestampPathHttpDateInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampPathHttpDateInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart index b03477af41..a4e18f5297 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_path_http_date_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampPathHttpDateInput @override final DateTime timestamp; - factory _$MalformedTimestampPathHttpDateInput( - [void Function(MalformedTimestampPathHttpDateInputBuilder)? - updates]) => + factory _$MalformedTimestampPathHttpDateInput([ + void Function(MalformedTimestampPathHttpDateInputBuilder)? updates, + ]) => (new MalformedTimestampPathHttpDateInputBuilder()..update(updates)) ._build(); _$MalformedTimestampPathHttpDateInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampPathHttpDateInput', 'timestamp'); + timestamp, + r'MalformedTimestampPathHttpDateInput', + 'timestamp', + ); } @override MalformedTimestampPathHttpDateInput rebuild( - void Function(MalformedTimestampPathHttpDateInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathHttpDateInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathHttpDateInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampPathHttpDateInput class MalformedTimestampPathHttpDateInputBuilder implements - Builder { + Builder< + MalformedTimestampPathHttpDateInput, + MalformedTimestampPathHttpDateInputBuilder + > { _$MalformedTimestampPathHttpDateInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampPathHttpDateInputBuilder @override void update( - void Function(MalformedTimestampPathHttpDateInputBuilder)? updates) { + void Function(MalformedTimestampPathHttpDateInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampPathHttpDateInputBuilder MalformedTimestampPathHttpDateInput build() => _build(); _$MalformedTimestampPathHttpDateInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampPathHttpDateInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampPathHttpDateInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampPathHttpDateInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampPathHttpDateInputBuilder class _$MalformedTimestampPathHttpDateInputPayload extends MalformedTimestampPathHttpDateInputPayload { - factory _$MalformedTimestampPathHttpDateInputPayload( - [void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampPathHttpDateInputPayload([ + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampPathHttpDateInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampPathHttpDateInputPayload @override MalformedTimestampPathHttpDateInputPayload rebuild( - void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampPathHttpDateInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampPathHttpDateInputPayload class MalformedTimestampPathHttpDateInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInputPayloadBuilder + > { _$MalformedTimestampPathHttpDateInputPayload? _$v; MalformedTimestampPathHttpDateInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampPathHttpDateInputPayloadBuilder @override void update( - void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampPathHttpDateInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart index 8589effa41..aa50f74f6a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_query_default_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampQueryDefaultInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryDefaultInput, + MalformedTimestampQueryDefaultInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampQueryDefaultInput({required DateTime timestamp}) { return _$MalformedTimestampQueryDefaultInput._(timestamp: timestamp); } - factory MalformedTimestampQueryDefaultInput.build( - [void Function(MalformedTimestampQueryDefaultInputBuilder) updates]) = - _$MalformedTimestampQueryDefaultInput; + factory MalformedTimestampQueryDefaultInput.build([ + void Function(MalformedTimestampQueryDefaultInputBuilder) updates, + ]) = _$MalformedTimestampQueryDefaultInput; const MalformedTimestampQueryDefaultInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampQueryDefaultInput MalformedTimestampQueryDefaultInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampQueryDefaultInput.build((b) { - if (request.queryParameters['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampQueryDefaultInput.build((b) { + if (request.queryParameters['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.queryParameters['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampQueryDefaultInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampQueryDefaultInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampQueryDefaultInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryDefaultInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryDefaultInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampQueryDefaultInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampQueryDefaultInputPayload( - [void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) - updates]) = _$MalformedTimestampQueryDefaultInputPayload; + factory MalformedTimestampQueryDefaultInputPayload([ + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) updates, + ]) = _$MalformedTimestampQueryDefaultInputPayload; const MalformedTimestampQueryDefaultInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampQueryDefaultInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampQueryDefaultInputPayload'); + 'MalformedTimestampQueryDefaultInputPayload', + ); return helper.toString(); } } -class MalformedTimestampQueryDefaultInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampQueryDefaultInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampQueryDefaultInputPayload + > { const MalformedTimestampQueryDefaultInputRestJson1Serializer() - : super('MalformedTimestampQueryDefaultInput'); + : super('MalformedTimestampQueryDefaultInput'); @override Iterable get types => const [ - MalformedTimestampQueryDefaultInput, - _$MalformedTimestampQueryDefaultInput, - MalformedTimestampQueryDefaultInputPayload, - _$MalformedTimestampQueryDefaultInputPayload, - ]; + MalformedTimestampQueryDefaultInput, + _$MalformedTimestampQueryDefaultInput, + MalformedTimestampQueryDefaultInputPayload, + _$MalformedTimestampQueryDefaultInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampQueryDefaultInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampQueryDefaultInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampQueryDefaultInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart index 66d5b0bdae..3358f306ea 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_default_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampQueryDefaultInput @override final DateTime timestamp; - factory _$MalformedTimestampQueryDefaultInput( - [void Function(MalformedTimestampQueryDefaultInputBuilder)? - updates]) => + factory _$MalformedTimestampQueryDefaultInput([ + void Function(MalformedTimestampQueryDefaultInputBuilder)? updates, + ]) => (new MalformedTimestampQueryDefaultInputBuilder()..update(updates)) ._build(); _$MalformedTimestampQueryDefaultInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryDefaultInput', 'timestamp'); + timestamp, + r'MalformedTimestampQueryDefaultInput', + 'timestamp', + ); } @override MalformedTimestampQueryDefaultInput rebuild( - void Function(MalformedTimestampQueryDefaultInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryDefaultInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryDefaultInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampQueryDefaultInput class MalformedTimestampQueryDefaultInputBuilder implements - Builder { + Builder< + MalformedTimestampQueryDefaultInput, + MalformedTimestampQueryDefaultInputBuilder + > { _$MalformedTimestampQueryDefaultInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampQueryDefaultInputBuilder @override void update( - void Function(MalformedTimestampQueryDefaultInputBuilder)? updates) { + void Function(MalformedTimestampQueryDefaultInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampQueryDefaultInputBuilder MalformedTimestampQueryDefaultInput build() => _build(); _$MalformedTimestampQueryDefaultInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampQueryDefaultInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampQueryDefaultInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampQueryDefaultInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampQueryDefaultInputBuilder class _$MalformedTimestampQueryDefaultInputPayload extends MalformedTimestampQueryDefaultInputPayload { - factory _$MalformedTimestampQueryDefaultInputPayload( - [void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampQueryDefaultInputPayload([ + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampQueryDefaultInputPayloadBuilder()..update(updates)) ._build(); @@ -106,9 +117,8 @@ class _$MalformedTimestampQueryDefaultInputPayload @override MalformedTimestampQueryDefaultInputPayload rebuild( - void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryDefaultInputPayloadBuilder toBuilder() => @@ -128,8 +138,10 @@ class _$MalformedTimestampQueryDefaultInputPayload class MalformedTimestampQueryDefaultInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInputPayloadBuilder + > { _$MalformedTimestampQueryDefaultInputPayload? _$v; MalformedTimestampQueryDefaultInputPayloadBuilder(); @@ -142,8 +154,8 @@ class MalformedTimestampQueryDefaultInputPayloadBuilder @override void update( - void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampQueryDefaultInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart index 2cfb49f5ed..d1f694092d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_query_epoch_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampQueryEpochInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryEpochInput, + MalformedTimestampQueryEpochInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampQueryEpochInput({required DateTime timestamp}) { return _$MalformedTimestampQueryEpochInput._(timestamp: timestamp); } - factory MalformedTimestampQueryEpochInput.build( - [void Function(MalformedTimestampQueryEpochInputBuilder) updates]) = - _$MalformedTimestampQueryEpochInput; + factory MalformedTimestampQueryEpochInput.build([ + void Function(MalformedTimestampQueryEpochInputBuilder) updates, + ]) = _$MalformedTimestampQueryEpochInput; const MalformedTimestampQueryEpochInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampQueryEpochInput MalformedTimestampQueryEpochInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampQueryEpochInput.build((b) { - if (request.queryParameters['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampQueryEpochInput.build((b) { + if (request.queryParameters['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( int.parse(request.queryParameters['timestamp']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampQueryEpochInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampQueryEpochInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampQueryEpochInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryEpochInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryEpochInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampQueryEpochInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampQueryEpochInputPayload( - [void Function(MalformedTimestampQueryEpochInputPayloadBuilder) - updates]) = _$MalformedTimestampQueryEpochInputPayload; + factory MalformedTimestampQueryEpochInputPayload([ + void Function(MalformedTimestampQueryEpochInputPayloadBuilder) updates, + ]) = _$MalformedTimestampQueryEpochInputPayload; const MalformedTimestampQueryEpochInputPayload._(); @@ -87,32 +88,33 @@ abstract class MalformedTimestampQueryEpochInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryEpochInputPayload'); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryEpochInputPayload', + ); return helper.toString(); } } -class MalformedTimestampQueryEpochInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampQueryEpochInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampQueryEpochInputPayload + > { const MalformedTimestampQueryEpochInputRestJson1Serializer() - : super('MalformedTimestampQueryEpochInput'); + : super('MalformedTimestampQueryEpochInput'); @override Iterable get types => const [ - MalformedTimestampQueryEpochInput, - _$MalformedTimestampQueryEpochInput, - MalformedTimestampQueryEpochInputPayload, - _$MalformedTimestampQueryEpochInputPayload, - ]; + MalformedTimestampQueryEpochInput, + _$MalformedTimestampQueryEpochInput, + MalformedTimestampQueryEpochInputPayload, + _$MalformedTimestampQueryEpochInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampQueryEpochInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampQueryEpochInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampQueryEpochInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart index 4df3438bd2..f8fd67dcec 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_epoch_input.g.dart @@ -11,20 +11,24 @@ class _$MalformedTimestampQueryEpochInput @override final DateTime timestamp; - factory _$MalformedTimestampQueryEpochInput( - [void Function(MalformedTimestampQueryEpochInputBuilder)? updates]) => + factory _$MalformedTimestampQueryEpochInput([ + void Function(MalformedTimestampQueryEpochInputBuilder)? updates, + ]) => (new MalformedTimestampQueryEpochInputBuilder()..update(updates)) ._build(); _$MalformedTimestampQueryEpochInput._({required this.timestamp}) : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryEpochInput', 'timestamp'); + timestamp, + r'MalformedTimestampQueryEpochInput', + 'timestamp', + ); } @override MalformedTimestampQueryEpochInput rebuild( - void Function(MalformedTimestampQueryEpochInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryEpochInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryEpochInputBuilder toBuilder() => @@ -48,8 +52,10 @@ class _$MalformedTimestampQueryEpochInput class MalformedTimestampQueryEpochInputBuilder implements - Builder { + Builder< + MalformedTimestampQueryEpochInput, + MalformedTimestampQueryEpochInputBuilder + > { _$MalformedTimestampQueryEpochInput? _$v; DateTime? _timestamp; @@ -75,7 +81,8 @@ class MalformedTimestampQueryEpochInputBuilder @override void update( - void Function(MalformedTimestampQueryEpochInputBuilder)? updates) { + void Function(MalformedTimestampQueryEpochInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -83,10 +90,15 @@ class MalformedTimestampQueryEpochInputBuilder MalformedTimestampQueryEpochInput build() => _build(); _$MalformedTimestampQueryEpochInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampQueryEpochInput._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryEpochInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampQueryEpochInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -94,9 +106,9 @@ class MalformedTimestampQueryEpochInputBuilder class _$MalformedTimestampQueryEpochInputPayload extends MalformedTimestampQueryEpochInputPayload { - factory _$MalformedTimestampQueryEpochInputPayload( - [void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampQueryEpochInputPayload([ + void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampQueryEpochInputPayloadBuilder()..update(updates)) ._build(); @@ -104,9 +116,8 @@ class _$MalformedTimestampQueryEpochInputPayload @override MalformedTimestampQueryEpochInputPayload rebuild( - void Function(MalformedTimestampQueryEpochInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryEpochInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryEpochInputPayloadBuilder toBuilder() => @@ -126,8 +137,10 @@ class _$MalformedTimestampQueryEpochInputPayload class MalformedTimestampQueryEpochInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInputPayloadBuilder + > { _$MalformedTimestampQueryEpochInputPayload? _$v; MalformedTimestampQueryEpochInputPayloadBuilder(); @@ -140,7 +153,8 @@ class MalformedTimestampQueryEpochInputPayloadBuilder @override void update( - void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? updates) { + void Function(MalformedTimestampQueryEpochInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart index 86e410272e..ee1ebb1cce 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_timestamp_query_http_date_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedTimestampQueryHttpDateInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryHttpDateInput, + MalformedTimestampQueryHttpDateInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedTimestampQueryHttpDateInput({required DateTime timestamp}) { return _$MalformedTimestampQueryHttpDateInput._(timestamp: timestamp); } - factory MalformedTimestampQueryHttpDateInput.build( - [void Function(MalformedTimestampQueryHttpDateInputBuilder) - updates]) = _$MalformedTimestampQueryHttpDateInput; + factory MalformedTimestampQueryHttpDateInput.build([ + void Function(MalformedTimestampQueryHttpDateInputBuilder) updates, + ]) = _$MalformedTimestampQueryHttpDateInput; const MalformedTimestampQueryHttpDateInput._(); @@ -34,19 +36,20 @@ abstract class MalformedTimestampQueryHttpDateInput MalformedTimestampQueryHttpDateInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedTimestampQueryHttpDateInput.build((b) { - if (request.queryParameters['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => MalformedTimestampQueryHttpDateInput.build((b) { + if (request.queryParameters['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( request.queryParameters['timestamp']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedTimestampQueryHttpDateInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedTimestampQueryHttpDateInputRestJson1Serializer()]; DateTime get timestamp; @override @@ -58,27 +61,25 @@ abstract class MalformedTimestampQueryHttpDateInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedTimestampQueryHttpDateInput') - ..add( - 'timestamp', - timestamp, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedTimestampQueryHttpDateInput', + )..add('timestamp', timestamp); return helper.toString(); } } @_i3.internal abstract class MalformedTimestampQueryHttpDateInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedTimestampQueryHttpDateInputPayload( - [void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) - updates]) = _$MalformedTimestampQueryHttpDateInputPayload; + factory MalformedTimestampQueryHttpDateInputPayload([ + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) updates, + ]) = _$MalformedTimestampQueryHttpDateInputPayload; const MalformedTimestampQueryHttpDateInputPayload._(); @@ -88,31 +89,32 @@ abstract class MalformedTimestampQueryHttpDateInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'MalformedTimestampQueryHttpDateInputPayload'); + 'MalformedTimestampQueryHttpDateInputPayload', + ); return helper.toString(); } } -class MalformedTimestampQueryHttpDateInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedTimestampQueryHttpDateInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + MalformedTimestampQueryHttpDateInputPayload + > { const MalformedTimestampQueryHttpDateInputRestJson1Serializer() - : super('MalformedTimestampQueryHttpDateInput'); + : super('MalformedTimestampQueryHttpDateInput'); @override Iterable get types => const [ - MalformedTimestampQueryHttpDateInput, - _$MalformedTimestampQueryHttpDateInput, - MalformedTimestampQueryHttpDateInputPayload, - _$MalformedTimestampQueryHttpDateInputPayload, - ]; + MalformedTimestampQueryHttpDateInput, + _$MalformedTimestampQueryHttpDateInput, + MalformedTimestampQueryHttpDateInputPayload, + _$MalformedTimestampQueryHttpDateInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedTimestampQueryHttpDateInputPayload deserialize( @@ -128,6 +130,5 @@ class MalformedTimestampQueryHttpDateInputRestJson1Serializer extends _i1 Serializers serializers, MalformedTimestampQueryHttpDateInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart index d8afcc59d3..a4b7f256ee 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_timestamp_query_http_date_input.g.dart @@ -11,22 +11,25 @@ class _$MalformedTimestampQueryHttpDateInput @override final DateTime timestamp; - factory _$MalformedTimestampQueryHttpDateInput( - [void Function(MalformedTimestampQueryHttpDateInputBuilder)? - updates]) => + factory _$MalformedTimestampQueryHttpDateInput([ + void Function(MalformedTimestampQueryHttpDateInputBuilder)? updates, + ]) => (new MalformedTimestampQueryHttpDateInputBuilder()..update(updates)) ._build(); _$MalformedTimestampQueryHttpDateInput._({required this.timestamp}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - timestamp, r'MalformedTimestampQueryHttpDateInput', 'timestamp'); + timestamp, + r'MalformedTimestampQueryHttpDateInput', + 'timestamp', + ); } @override MalformedTimestampQueryHttpDateInput rebuild( - void Function(MalformedTimestampQueryHttpDateInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryHttpDateInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryHttpDateInputBuilder toBuilder() => @@ -50,8 +53,10 @@ class _$MalformedTimestampQueryHttpDateInput class MalformedTimestampQueryHttpDateInputBuilder implements - Builder { + Builder< + MalformedTimestampQueryHttpDateInput, + MalformedTimestampQueryHttpDateInputBuilder + > { _$MalformedTimestampQueryHttpDateInput? _$v; DateTime? _timestamp; @@ -77,7 +82,8 @@ class MalformedTimestampQueryHttpDateInputBuilder @override void update( - void Function(MalformedTimestampQueryHttpDateInputBuilder)? updates) { + void Function(MalformedTimestampQueryHttpDateInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,10 +91,15 @@ class MalformedTimestampQueryHttpDateInputBuilder MalformedTimestampQueryHttpDateInput build() => _build(); _$MalformedTimestampQueryHttpDateInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedTimestampQueryHttpDateInput._( - timestamp: BuiltValueNullFieldError.checkNotNull(timestamp, - r'MalformedTimestampQueryHttpDateInput', 'timestamp')); + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'MalformedTimestampQueryHttpDateInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -96,9 +107,9 @@ class MalformedTimestampQueryHttpDateInputBuilder class _$MalformedTimestampQueryHttpDateInputPayload extends MalformedTimestampQueryHttpDateInputPayload { - factory _$MalformedTimestampQueryHttpDateInputPayload( - [void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? - updates]) => + factory _$MalformedTimestampQueryHttpDateInputPayload([ + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? updates, + ]) => (new MalformedTimestampQueryHttpDateInputPayloadBuilder() ..update(updates)) ._build(); @@ -107,9 +118,8 @@ class _$MalformedTimestampQueryHttpDateInputPayload @override MalformedTimestampQueryHttpDateInputPayload rebuild( - void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedTimestampQueryHttpDateInputPayloadBuilder toBuilder() => @@ -129,8 +139,10 @@ class _$MalformedTimestampQueryHttpDateInputPayload class MalformedTimestampQueryHttpDateInputPayloadBuilder implements - Builder { + Builder< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInputPayloadBuilder + > { _$MalformedTimestampQueryHttpDateInputPayload? _$v; MalformedTimestampQueryHttpDateInputPayloadBuilder(); @@ -143,8 +155,8 @@ class MalformedTimestampQueryHttpDateInputPayloadBuilder @override void update( - void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? - updates) { + void Function(MalformedTimestampQueryHttpDateInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart index 503c7ad812..2d10f4077c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.malformed_union_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class MalformedUnionInput return _$MalformedUnionInput._(union: union); } - factory MalformedUnionInput.build( - [void Function(MalformedUnionInputBuilder) updates]) = - _$MalformedUnionInput; + factory MalformedUnionInput.build([ + void Function(MalformedUnionInputBuilder) updates, + ]) = _$MalformedUnionInput; const MalformedUnionInput._(); @@ -30,11 +30,10 @@ abstract class MalformedUnionInput MalformedUnionInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedUnionInputRestJson1Serializer() + MalformedUnionInputRestJson1Serializer(), ]; SimpleUnion? get union; @@ -47,10 +46,7 @@ abstract class MalformedUnionInput @override String toString() { final helper = newBuiltValueToStringHelper('MalformedUnionInput') - ..add( - 'union', - union, - ); + ..add('union', union); return helper.toString(); } } @@ -61,17 +57,14 @@ class MalformedUnionInputRestJson1Serializer @override Iterable get types => const [ - MalformedUnionInput, - _$MalformedUnionInput, - ]; + MalformedUnionInput, + _$MalformedUnionInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedUnionInput deserialize( @@ -90,10 +83,12 @@ class MalformedUnionInputRestJson1Serializer } switch (key) { case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(SimpleUnion), - ) as SimpleUnion); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(SimpleUnion), + ) + as SimpleUnion); } } @@ -111,10 +106,12 @@ class MalformedUnionInputRestJson1Serializer if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(SimpleUnion), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(SimpleUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart index 205cf2b63f..2d32f8ff38 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/malformed_union_input.g.dart @@ -10,16 +10,16 @@ class _$MalformedUnionInput extends MalformedUnionInput { @override final SimpleUnion? union; - factory _$MalformedUnionInput( - [void Function(MalformedUnionInputBuilder)? updates]) => - (new MalformedUnionInputBuilder()..update(updates))._build(); + factory _$MalformedUnionInput([ + void Function(MalformedUnionInputBuilder)? updates, + ]) => (new MalformedUnionInputBuilder()..update(updates))._build(); _$MalformedUnionInput._({this.union}) : super._(); @override MalformedUnionInput rebuild( - void Function(MalformedUnionInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedUnionInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedUnionInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart index 33140abd06..1f6a9e9ab5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.media_type_header_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -24,12 +24,13 @@ abstract class MediaTypeHeaderInput _i1.HasPayload { factory MediaTypeHeaderInput({Object? json}) { return _$MediaTypeHeaderInput._( - json: json == null ? null : _i3.JsonObject(json)); + json: json == null ? null : _i3.JsonObject(json), + ); } - factory MediaTypeHeaderInput.build( - [void Function(MediaTypeHeaderInputBuilder) updates]) = - _$MediaTypeHeaderInput; + factory MediaTypeHeaderInput.build([ + void Function(MediaTypeHeaderInputBuilder) updates, + ]) = _$MediaTypeHeaderInput; const MediaTypeHeaderInput._(); @@ -37,16 +38,18 @@ abstract class MediaTypeHeaderInput MediaTypeHeaderInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MediaTypeHeaderInput.build((b) { - if (request.headers['X-Json'] != null) { - b.json = _i3.JsonObject(_i4.jsonDecode( - _i4.utf8.decode(_i4.base64Decode(request.headers['X-Json']!)))); - } - }); + }) => MediaTypeHeaderInput.build((b) { + if (request.headers['X-Json'] != null) { + b.json = _i3.JsonObject( + _i4.jsonDecode( + _i4.utf8.decode(_i4.base64Decode(request.headers['X-Json']!)), + ), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [MediaTypeHeaderInputRestJson1Serializer()]; + serializers = [MediaTypeHeaderInputRestJson1Serializer()]; _i3.JsonObject? get json; @override @@ -58,10 +61,7 @@ abstract class MediaTypeHeaderInput @override String toString() { final helper = newBuiltValueToStringHelper('MediaTypeHeaderInput') - ..add( - 'json', - json, - ); + ..add('json', json); return helper.toString(); } } @@ -72,9 +72,9 @@ abstract class MediaTypeHeaderInputPayload implements Built, _i1.EmptyPayload { - factory MediaTypeHeaderInputPayload( - [void Function(MediaTypeHeaderInputPayloadBuilder) updates]) = - _$MediaTypeHeaderInputPayload; + factory MediaTypeHeaderInputPayload([ + void Function(MediaTypeHeaderInputPayloadBuilder) updates, + ]) = _$MediaTypeHeaderInputPayload; const MediaTypeHeaderInputPayload._(); @@ -91,23 +91,20 @@ abstract class MediaTypeHeaderInputPayload class MediaTypeHeaderInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MediaTypeHeaderInputRestJson1Serializer() - : super('MediaTypeHeaderInput'); + : super('MediaTypeHeaderInput'); @override Iterable get types => const [ - MediaTypeHeaderInput, - _$MediaTypeHeaderInput, - MediaTypeHeaderInputPayload, - _$MediaTypeHeaderInputPayload, - ]; + MediaTypeHeaderInput, + _$MediaTypeHeaderInput, + MediaTypeHeaderInputPayload, + _$MediaTypeHeaderInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderInputPayload deserialize( @@ -123,6 +120,5 @@ class MediaTypeHeaderInputRestJson1Serializer Serializers serializers, MediaTypeHeaderInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart index eeead14ba9..1b13608f33 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_input.g.dart @@ -10,16 +10,16 @@ class _$MediaTypeHeaderInput extends MediaTypeHeaderInput { @override final _i3.JsonObject? json; - factory _$MediaTypeHeaderInput( - [void Function(MediaTypeHeaderInputBuilder)? updates]) => - (new MediaTypeHeaderInputBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderInput([ + void Function(MediaTypeHeaderInputBuilder)? updates, + ]) => (new MediaTypeHeaderInputBuilder()..update(updates))._build(); _$MediaTypeHeaderInput._({this.json}) : super._(); @override MediaTypeHeaderInput rebuild( - void Function(MediaTypeHeaderInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderInputBuilder toBuilder() => @@ -81,16 +81,16 @@ class MediaTypeHeaderInputBuilder } class _$MediaTypeHeaderInputPayload extends MediaTypeHeaderInputPayload { - factory _$MediaTypeHeaderInputPayload( - [void Function(MediaTypeHeaderInputPayloadBuilder)? updates]) => - (new MediaTypeHeaderInputPayloadBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderInputPayload([ + void Function(MediaTypeHeaderInputPayloadBuilder)? updates, + ]) => (new MediaTypeHeaderInputPayloadBuilder()..update(updates))._build(); _$MediaTypeHeaderInputPayload._() : super._(); @override MediaTypeHeaderInputPayload rebuild( - void Function(MediaTypeHeaderInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderInputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$MediaTypeHeaderInputPayload extends MediaTypeHeaderInputPayload { class MediaTypeHeaderInputPayloadBuilder implements - Builder { + Builder< + MediaTypeHeaderInputPayload, + MediaTypeHeaderInputPayloadBuilder + > { _$MediaTypeHeaderInputPayload? _$v; MediaTypeHeaderInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart index 2f5a6fc09f..44eb8f7b50 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.media_type_header_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,12 +22,13 @@ abstract class MediaTypeHeaderOutput _i2.HasPayload { factory MediaTypeHeaderOutput({Object? json}) { return _$MediaTypeHeaderOutput._( - json: json == null ? null : _i3.JsonObject(json)); + json: json == null ? null : _i3.JsonObject(json), + ); } - factory MediaTypeHeaderOutput.build( - [void Function(MediaTypeHeaderOutputBuilder) updates]) = - _$MediaTypeHeaderOutput; + factory MediaTypeHeaderOutput.build([ + void Function(MediaTypeHeaderOutputBuilder) updates, + ]) = _$MediaTypeHeaderOutput; const MediaTypeHeaderOutput._(); @@ -35,16 +36,18 @@ abstract class MediaTypeHeaderOutput factory MediaTypeHeaderOutput.fromResponse( MediaTypeHeaderOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - MediaTypeHeaderOutput.build((b) { - if (response.headers['X-Json'] != null) { - b.json = _i3.JsonObject(_i4.jsonDecode( - _i4.utf8.decode(_i4.base64Decode(response.headers['X-Json']!)))); - } - }); + ) => MediaTypeHeaderOutput.build((b) { + if (response.headers['X-Json'] != null) { + b.json = _i3.JsonObject( + _i4.jsonDecode( + _i4.utf8.decode(_i4.base64Decode(response.headers['X-Json']!)), + ), + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [MediaTypeHeaderOutputRestJson1Serializer()]; + serializers = [MediaTypeHeaderOutputRestJson1Serializer()]; _i3.JsonObject? get json; @override @@ -56,25 +59,23 @@ abstract class MediaTypeHeaderOutput @override String toString() { final helper = newBuiltValueToStringHelper('MediaTypeHeaderOutput') - ..add( - 'json', - json, - ); + ..add('json', json); return helper.toString(); } } @_i5.internal abstract class MediaTypeHeaderOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutputPayloadBuilder + >, _i2.EmptyPayload { - factory MediaTypeHeaderOutputPayload( - [void Function(MediaTypeHeaderOutputPayloadBuilder) updates]) = - _$MediaTypeHeaderOutputPayload; + factory MediaTypeHeaderOutputPayload([ + void Function(MediaTypeHeaderOutputPayloadBuilder) updates, + ]) = _$MediaTypeHeaderOutputPayload; const MediaTypeHeaderOutputPayload._(); @@ -91,23 +92,20 @@ abstract class MediaTypeHeaderOutputPayload class MediaTypeHeaderOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const MediaTypeHeaderOutputRestJson1Serializer() - : super('MediaTypeHeaderOutput'); + : super('MediaTypeHeaderOutput'); @override Iterable get types => const [ - MediaTypeHeaderOutput, - _$MediaTypeHeaderOutput, - MediaTypeHeaderOutputPayload, - _$MediaTypeHeaderOutputPayload, - ]; + MediaTypeHeaderOutput, + _$MediaTypeHeaderOutput, + MediaTypeHeaderOutputPayload, + _$MediaTypeHeaderOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderOutputPayload deserialize( @@ -123,6 +121,5 @@ class MediaTypeHeaderOutputRestJson1Serializer Serializers serializers, MediaTypeHeaderOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart index 0c3210504b..3c606d4638 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/media_type_header_output.g.dart @@ -10,16 +10,16 @@ class _$MediaTypeHeaderOutput extends MediaTypeHeaderOutput { @override final _i3.JsonObject? json; - factory _$MediaTypeHeaderOutput( - [void Function(MediaTypeHeaderOutputBuilder)? updates]) => - (new MediaTypeHeaderOutputBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderOutput([ + void Function(MediaTypeHeaderOutputBuilder)? updates, + ]) => (new MediaTypeHeaderOutputBuilder()..update(updates))._build(); _$MediaTypeHeaderOutput._({this.json}) : super._(); @override MediaTypeHeaderOutput rebuild( - void Function(MediaTypeHeaderOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderOutputBuilder toBuilder() => @@ -81,16 +81,16 @@ class MediaTypeHeaderOutputBuilder } class _$MediaTypeHeaderOutputPayload extends MediaTypeHeaderOutputPayload { - factory _$MediaTypeHeaderOutputPayload( - [void Function(MediaTypeHeaderOutputPayloadBuilder)? updates]) => - (new MediaTypeHeaderOutputPayloadBuilder()..update(updates))._build(); + factory _$MediaTypeHeaderOutputPayload([ + void Function(MediaTypeHeaderOutputPayloadBuilder)? updates, + ]) => (new MediaTypeHeaderOutputPayloadBuilder()..update(updates))._build(); _$MediaTypeHeaderOutputPayload._() : super._(); @override MediaTypeHeaderOutputPayload rebuild( - void Function(MediaTypeHeaderOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MediaTypeHeaderOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MediaTypeHeaderOutputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$MediaTypeHeaderOutputPayload extends MediaTypeHeaderOutputPayload { class MediaTypeHeaderOutputPayloadBuilder implements - Builder { + Builder< + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutputPayloadBuilder + > { _$MediaTypeHeaderOutputPayload? _$v; MediaTypeHeaderOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart index fb57eb3bc7..8e971857bc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/my_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.my_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -40,13 +40,11 @@ sealed class MyUnion extends _i1.SmithyUnion { factory MyUnion.renamedStructureValue({String? salutation}) => MyUnionRenamedStructureValue$(RenamedGreeting(salutation: salutation)); - const factory MyUnion.sdkUnknown( - String name, - Object value, - ) = MyUnionSdkUnknown$; + const factory MyUnion.sdkUnknown(String name, Object value) = + MyUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - MyUnionRestJson1Serializer() + MyUnionRestJson1Serializer(), ]; String? get stringValue => null; @@ -70,79 +68,50 @@ sealed class MyUnion extends _i1.SmithyUnion { RenamedGreeting? get renamedStructureValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - numberValue ?? - blobValue ?? - timestampValue ?? - enumValue ?? - listValue ?? - mapValue ?? - structureValue ?? - renamedStructureValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + numberValue ?? + blobValue ?? + timestampValue ?? + enumValue ?? + listValue ?? + mapValue ?? + structureValue ?? + renamedStructureValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'MyUnion'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (numberValue != null) { - helper.add( - r'numberValue', - numberValue, - ); + helper.add(r'numberValue', numberValue); } if (blobValue != null) { - helper.add( - r'blobValue', - blobValue, - ); + helper.add(r'blobValue', blobValue); } if (timestampValue != null) { - helper.add( - r'timestampValue', - timestampValue, - ); + helper.add(r'timestampValue', timestampValue); } if (enumValue != null) { - helper.add( - r'enumValue', - enumValue, - ); + helper.add(r'enumValue', enumValue); } if (listValue != null) { - helper.add( - r'listValue', - listValue, - ); + helper.add(r'listValue', listValue); } if (mapValue != null) { - helper.add( - r'mapValue', - mapValue, - ); + helper.add(r'mapValue', mapValue); } if (structureValue != null) { - helper.add( - r'structureValue', - structureValue, - ); + helper.add(r'structureValue', structureValue); } if (renamedStructureValue != null) { - helper.add( - r'renamedStructureValue', - renamedStructureValue, - ); + helper.add(r'renamedStructureValue', renamedStructureValue); } return helper.toString(); } @@ -222,7 +191,7 @@ final class MyUnionListValue$ extends MyUnion { final class MyUnionMapValue$ extends MyUnion { MyUnionMapValue$(Map mapValue) - : this._(_i3.BuiltMap(mapValue)); + : this._(_i3.BuiltMap(mapValue)); const MyUnionMapValue$._(this.mapValue) : super._(); @@ -254,10 +223,7 @@ final class MyUnionRenamedStructureValue$ extends MyUnion { } final class MyUnionSdkUnknown$ extends MyUnion { - const MyUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const MyUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -272,26 +238,23 @@ class MyUnionRestJson1Serializer @override Iterable get types => const [ - MyUnion, - MyUnionStringValue$, - MyUnionBooleanValue$, - MyUnionNumberValue$, - MyUnionBlobValue$, - MyUnionTimestampValue$, - MyUnionEnumValue$, - MyUnionListValue$, - MyUnionMapValue$, - MyUnionStructureValue$, - MyUnionRenamedStructureValue$, - ]; + MyUnion, + MyUnionStringValue$, + MyUnionBooleanValue$, + MyUnionNumberValue$, + MyUnionBlobValue$, + MyUnionTimestampValue$, + MyUnionEnumValue$, + MyUnionListValue$, + MyUnionMapValue$, + MyUnionStructureValue$, + MyUnionRenamedStructureValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MyUnion deserialize( @@ -302,69 +265,83 @@ class MyUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return MyUnionStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return MyUnionStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return MyUnionBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return MyUnionBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'numberValue': - return MyUnionNumberValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return MyUnionNumberValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'blobValue': - return MyUnionBlobValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List)); + return MyUnionBlobValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List), + ); case 'timestampValue': - return MyUnionTimestampValue$((serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime)); + return MyUnionTimestampValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime), + ); case 'enumValue': - return MyUnionEnumValue$((serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum)); + return MyUnionEnumValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum), + ); case 'listValue': - return MyUnionListValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + return MyUnionListValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'mapValue': - return MyUnionMapValue$._((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + return MyUnionMapValue$._( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'structureValue': - return MyUnionStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct)); + return MyUnionStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct), + ); case 'renamedStructureValue': - return MyUnionRenamedStructureValue$((serializers.deserialize( - value, - specifiedType: const FullType(RenamedGreeting), - ) as RenamedGreeting)); + return MyUnionRenamedStructureValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(RenamedGreeting), + ) + as RenamedGreeting), + ); } - return MyUnion.sdkUnknown( - key, - value, - ); + return MyUnion.sdkUnknown(key, value); } @override @@ -377,54 +354,48 @@ class MyUnionRestJson1Serializer object.name, switch (object) { MyUnionStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), MyUnionBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), MyUnionNumberValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), MyUnionBlobValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ), + value, + specifiedType: const FullType(_i2.Uint8List), + ), MyUnionTimestampValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(DateTime), - ), + value, + specifiedType: const FullType(DateTime), + ), MyUnionEnumValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(FooEnum), - ), + value, + specifiedType: const FullType(FooEnum), + ), MyUnionListValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), + ), MyUnionMapValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ), + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ), MyUnionStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(GreetingStruct), - ), + value, + specifiedType: const FullType(GreetingStruct), + ), MyUnionRenamedStructureValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RenamedGreeting), - ), + value, + specifiedType: const FullType(RenamedGreeting), + ), MyUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart index 211c58aee1..9e241f5103 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/nested_payload.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.nested_payload; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,14 +13,8 @@ part 'nested_payload.g.dart'; abstract class NestedPayload with _i1.AWSEquatable implements Built { - factory NestedPayload({ - String? greeting, - String? name, - }) { - return _$NestedPayload._( - greeting: greeting, - name: name, - ); + factory NestedPayload({String? greeting, String? name}) { + return _$NestedPayload._(greeting: greeting, name: name); } factory NestedPayload.build([void Function(NestedPayloadBuilder) updates]) = @@ -29,28 +23,20 @@ abstract class NestedPayload const NestedPayload._(); static const List<_i2.SmithySerializer> serializers = [ - NestedPayloadRestJson1Serializer() + NestedPayloadRestJson1Serializer(), ]; String? get greeting; String? get name; @override - List get props => [ - greeting, - name, - ]; + List get props => [greeting, name]; @override String toString() { - final helper = newBuiltValueToStringHelper('NestedPayload') - ..add( - 'greeting', - greeting, - ) - ..add( - 'name', - name, - ); + final helper = + newBuiltValueToStringHelper('NestedPayload') + ..add('greeting', greeting) + ..add('name', name); return helper.toString(); } } @@ -60,18 +46,12 @@ class NestedPayloadRestJson1Serializer const NestedPayloadRestJson1Serializer() : super('NestedPayload'); @override - Iterable get types => const [ - NestedPayload, - _$NestedPayload, - ]; + Iterable get types => const [NestedPayload, _$NestedPayload]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NestedPayload deserialize( @@ -90,15 +70,19 @@ class NestedPayloadRestJson1Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -116,18 +100,19 @@ class NestedPayloadRestJson1Serializer if (greeting != null) { result$ ..add('greeting') - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } if (name != null) { result$ ..add('name') - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart index 5f7fe01ead..746cbafdde 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputRestJson1Serializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputRestJson1Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NoInputAndOutputOutput deserialize( @@ -78,6 +74,5 @@ class NoInputAndOutputOutputRestJson1Serializer Serializers serializers, NoInputAndOutputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart index 27f4debb64..430bf4a4cd 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.null_and_empty_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,11 +20,7 @@ abstract class NullAndEmptyHeadersIo Built, _i1.EmptyPayload, _i1.HasPayload { - factory NullAndEmptyHeadersIo({ - String? a, - String? b, - List? c, - }) { + factory NullAndEmptyHeadersIo({String? a, String? b, List? c}) { return _$NullAndEmptyHeadersIo._( a: a, b: b, @@ -32,9 +28,9 @@ abstract class NullAndEmptyHeadersIo ); } - factory NullAndEmptyHeadersIo.build( - [void Function(NullAndEmptyHeadersIoBuilder) updates]) = - _$NullAndEmptyHeadersIo; + factory NullAndEmptyHeadersIo.build([ + void Function(NullAndEmptyHeadersIoBuilder) updates, + ]) = _$NullAndEmptyHeadersIo; const NullAndEmptyHeadersIo._(); @@ -42,40 +38,40 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - NullAndEmptyHeadersIo.build((b) { - if (request.headers['X-A'] != null) { - b.a = request.headers['X-A']!; - } - if (request.headers['X-B'] != null) { - b.b = request.headers['X-B']!; - } - if (request.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim())); - } - }); + }) => NullAndEmptyHeadersIo.build((b) { + if (request.headers['X-A'] != null) { + b.a = request.headers['X-A']!; + } + if (request.headers['X-B'] != null) { + b.b = request.headers['X-B']!; + } + if (request.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim()), + ); + } + }); /// Constructs a [NullAndEmptyHeadersIo] from a [payload] and [response]. factory NullAndEmptyHeadersIo.fromResponse( NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.build((b) { - if (response.headers['X-A'] != null) { - b.a = response.headers['X-A']!; - } - if (response.headers['X-B'] != null) { - b.b = response.headers['X-B']!; - } - if (response.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim())); - } - }); + ) => NullAndEmptyHeadersIo.build((b) { + if (response.headers['X-A'] != null) { + b.a = response.headers['X-A']!; + } + if (response.headers['X-B'] != null) { + b.b = response.headers['X-B']!; + } + if (response.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim()), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [NullAndEmptyHeadersIoRestJson1Serializer()]; + serializers = [NullAndEmptyHeadersIoRestJson1Serializer()]; String? get a; String? get b; @@ -84,42 +80,31 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload getPayload() => NullAndEmptyHeadersIoPayload(); @override - List get props => [ - a, - b, - c, - ]; + List get props => [a, b, c]; @override String toString() { - final helper = newBuiltValueToStringHelper('NullAndEmptyHeadersIo') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ) - ..add( - 'c', - c, - ); + final helper = + newBuiltValueToStringHelper('NullAndEmptyHeadersIo') + ..add('a', a) + ..add('b', b) + ..add('c', c); return helper.toString(); } } @_i4.internal abstract class NullAndEmptyHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder) updates]) = - _$NullAndEmptyHeadersIoPayload; + factory NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ]) = _$NullAndEmptyHeadersIoPayload; const NullAndEmptyHeadersIoPayload._(); @@ -136,23 +121,20 @@ abstract class NullAndEmptyHeadersIoPayload class NullAndEmptyHeadersIoRestJson1Serializer extends _i1.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestJson1Serializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [ - NullAndEmptyHeadersIo, - _$NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - _$NullAndEmptyHeadersIoPayload, - ]; + NullAndEmptyHeadersIo, + _$NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + _$NullAndEmptyHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NullAndEmptyHeadersIoPayload deserialize( @@ -168,6 +150,5 @@ class NullAndEmptyHeadersIoRestJson1Serializer Serializers serializers, NullAndEmptyHeadersIoPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart index e519841018..8594dc19c2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/null_and_empty_headers_io.g.dart @@ -14,16 +14,16 @@ class _$NullAndEmptyHeadersIo extends NullAndEmptyHeadersIo { @override final _i3.BuiltList? c; - factory _$NullAndEmptyHeadersIo( - [void Function(NullAndEmptyHeadersIoBuilder)? updates]) => - (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIo([ + void Function(NullAndEmptyHeadersIoBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIo._({this.a, this.b, this.c}) : super._(); @override NullAndEmptyHeadersIo rebuild( - void Function(NullAndEmptyHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoBuilder toBuilder() => @@ -104,7 +104,10 @@ class NullAndEmptyHeadersIoBuilder _c?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NullAndEmptyHeadersIo', _$failedField, e.toString()); + r'NullAndEmptyHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -114,16 +117,16 @@ class NullAndEmptyHeadersIoBuilder } class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { - factory _$NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates]) => - (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIoPayload._() : super._(); @override NullAndEmptyHeadersIoPayload rebuild( - void Function(NullAndEmptyHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoPayloadBuilder toBuilder() => @@ -143,8 +146,10 @@ class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { class NullAndEmptyHeadersIoPayloadBuilder implements - Builder { + Builder< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + > { _$NullAndEmptyHeadersIoPayload? _$v; NullAndEmptyHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart index e3e5b2f9fd..ce3cc98b33 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.omits_null_serializes_empty_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class OmitsNullSerializesEmptyStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory OmitsNullSerializesEmptyStringInput({ @@ -30,9 +32,9 @@ abstract class OmitsNullSerializesEmptyStringInput ); } - factory OmitsNullSerializesEmptyStringInput.build( - [void Function(OmitsNullSerializesEmptyStringInputBuilder) updates]) = - _$OmitsNullSerializesEmptyStringInput; + factory OmitsNullSerializesEmptyStringInput.build([ + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInput; const OmitsNullSerializesEmptyStringInput._(); @@ -40,19 +42,19 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - OmitsNullSerializesEmptyStringInput.build((b) { - if (request.queryParameters['Null'] != null) { - b.nullValue = request.queryParameters['Null']!; - } - if (request.queryParameters['Empty'] != null) { - b.emptyString = request.queryParameters['Empty']!; - } - }); + }) => OmitsNullSerializesEmptyStringInput.build((b) { + if (request.queryParameters['Null'] != null) { + b.nullValue = request.queryParameters['Null']!; + } + if (request.queryParameters['Empty'] != null) { + b.emptyString = request.queryParameters['Empty']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [OmitsNullSerializesEmptyStringInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [OmitsNullSerializesEmptyStringInputRestJson1Serializer()]; String? get nullValue; String? get emptyString; @@ -61,38 +63,30 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload(); @override - List get props => [ - nullValue, - emptyString, - ]; + List get props => [nullValue, emptyString]; @override String toString() { final helper = newBuiltValueToStringHelper('OmitsNullSerializesEmptyStringInput') - ..add( - 'nullValue', - nullValue, - ) - ..add( - 'emptyString', - emptyString, - ); + ..add('nullValue', nullValue) + ..add('emptyString', emptyString); return helper.toString(); } } @_i3.internal abstract class OmitsNullSerializesEmptyStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates]) = _$OmitsNullSerializesEmptyStringInputPayload; + factory OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInputPayload; const OmitsNullSerializesEmptyStringInputPayload._(); @@ -102,31 +96,32 @@ abstract class OmitsNullSerializesEmptyStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'OmitsNullSerializesEmptyStringInputPayload'); + 'OmitsNullSerializesEmptyStringInputPayload', + ); return helper.toString(); } } -class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + OmitsNullSerializesEmptyStringInputPayload + > { const OmitsNullSerializesEmptyStringInputRestJson1Serializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [ - OmitsNullSerializesEmptyStringInput, - _$OmitsNullSerializesEmptyStringInput, - OmitsNullSerializesEmptyStringInputPayload, - _$OmitsNullSerializesEmptyStringInputPayload, - ]; + OmitsNullSerializesEmptyStringInput, + _$OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputPayload, + _$OmitsNullSerializesEmptyStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsNullSerializesEmptyStringInputPayload deserialize( @@ -142,6 +137,5 @@ class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i1 Serializers serializers, OmitsNullSerializesEmptyStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart index 5f2c498b34..d20fee8e14 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_null_serializes_empty_string_input.g.dart @@ -13,19 +13,19 @@ class _$OmitsNullSerializesEmptyStringInput @override final String? emptyString; - factory _$OmitsNullSerializesEmptyStringInput( - [void Function(OmitsNullSerializesEmptyStringInputBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInput([ + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputBuilder()..update(updates)) ._build(); _$OmitsNullSerializesEmptyStringInput._({this.nullValue, this.emptyString}) - : super._(); + : super._(); @override OmitsNullSerializesEmptyStringInput rebuild( - void Function(OmitsNullSerializesEmptyStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$OmitsNullSerializesEmptyStringInput class OmitsNullSerializesEmptyStringInputBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + > { _$OmitsNullSerializesEmptyStringInput? _$v; String? _nullValue; @@ -83,7 +85,8 @@ class OmitsNullSerializesEmptyStringInputBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates) { + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class OmitsNullSerializesEmptyStringInputBuilder OmitsNullSerializesEmptyStringInput build() => _build(); _$OmitsNullSerializesEmptyStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$OmitsNullSerializesEmptyStringInput._( - nullValue: nullValue, emptyString: emptyString); + nullValue: nullValue, + emptyString: emptyString, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class OmitsNullSerializesEmptyStringInputBuilder class _$OmitsNullSerializesEmptyStringInputPayload extends OmitsNullSerializesEmptyStringInputPayload { - factory _$OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$OmitsNullSerializesEmptyStringInputPayload @override OmitsNullSerializesEmptyStringInputPayload rebuild( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$OmitsNullSerializesEmptyStringInputPayload class OmitsNullSerializesEmptyStringInputPayloadBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + > { _$OmitsNullSerializesEmptyStringInputPayload? _$v; OmitsNullSerializesEmptyStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class OmitsNullSerializesEmptyStringInputPayloadBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates) { + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart index 896430c8a9..f443855145 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.omits_serializing_empty_lists_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,8 +19,10 @@ abstract class OmitsSerializingEmptyListsInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + OmitsSerializingEmptyListsInput, + OmitsSerializingEmptyListsInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory OmitsSerializingEmptyListsInput({ @@ -45,15 +47,16 @@ abstract class OmitsSerializingEmptyListsInput queryTimestampList == null ? null : _i3.BuiltList(queryTimestampList), queryEnumList: queryEnumList == null ? null : _i3.BuiltList(queryEnumList), - queryIntegerEnumList: queryIntegerEnumList == null - ? null - : _i3.BuiltList(queryIntegerEnumList), + queryIntegerEnumList: + queryIntegerEnumList == null + ? null + : _i3.BuiltList(queryIntegerEnumList), ); } - factory OmitsSerializingEmptyListsInput.build( - [void Function(OmitsSerializingEmptyListsInputBuilder) updates]) = - _$OmitsSerializingEmptyListsInput; + factory OmitsSerializingEmptyListsInput.build([ + void Function(OmitsSerializingEmptyListsInputBuilder) updates, + ]) = _$OmitsSerializingEmptyListsInput; const OmitsSerializingEmptyListsInput._(); @@ -61,54 +64,71 @@ abstract class OmitsSerializingEmptyListsInput OmitsSerializingEmptyListsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - OmitsSerializingEmptyListsInput.build((b) { - if (request.queryParameters['StringList'] != null) { - b.queryStringList.addAll(_i1 - .parseHeader(request.queryParameters['StringList']!) - .map((el) => el.trim())); - } - if (request.queryParameters['IntegerList'] != null) { - b.queryIntegerList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['DoubleList'] != null) { - b.queryDoubleList.addAll(_i1 - .parseHeader(request.queryParameters['DoubleList']!) - .map((el) => double.parse(el.trim()))); - } - if (request.queryParameters['BooleanList'] != null) { - b.queryBooleanList.addAll(_i1 - .parseHeader(request.queryParameters['BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.queryParameters['TimestampList'] != null) { - b.queryTimestampList.addAll(_i1 - .parseHeader( - request.queryParameters['TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + }) => OmitsSerializingEmptyListsInput.build((b) { + if (request.queryParameters['StringList'] != null) { + b.queryStringList.addAll( + _i1 + .parseHeader(request.queryParameters['StringList']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['IntegerList'] != null) { + b.queryIntegerList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['DoubleList'] != null) { + b.queryDoubleList.addAll( + _i1 + .parseHeader(request.queryParameters['DoubleList']!) + .map((el) => double.parse(el.trim())), + ); + } + if (request.queryParameters['BooleanList'] != null) { + b.queryBooleanList.addAll( + _i1 + .parseHeader(request.queryParameters['BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.queryParameters['TimestampList'] != null) { + b.queryTimestampList.addAll( + _i1 + .parseHeader( + request.queryParameters['TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.queryParameters['EnumList'] != null) { - b.queryEnumList.addAll(_i1 - .parseHeader(request.queryParameters['EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.queryParameters['IntegerEnumList'] != null) { - b.queryIntegerEnumList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerEnumList']!) - .map((el) => IntegerEnum.values.byValue(int.parse(el.trim())))); - } - }); + ).asDateTime, + ), + ); + } + if (request.queryParameters['EnumList'] != null) { + b.queryEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.queryParameters['IntegerEnumList'] != null) { + b.queryIntegerEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerEnumList']!) + .map((el) => IntegerEnum.values.byValue(int.parse(el.trim()))), + ); + } + }); static const List< - _i1.SmithySerializer> - serializers = [OmitsSerializingEmptyListsInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [OmitsSerializingEmptyListsInputRestJson1Serializer()]; _i3.BuiltList? get queryStringList; _i3.BuiltList? get queryIntegerList; @@ -123,62 +143,42 @@ abstract class OmitsSerializingEmptyListsInput @override List get props => [ - queryStringList, - queryIntegerList, - queryDoubleList, - queryBooleanList, - queryTimestampList, - queryEnumList, - queryIntegerEnumList, - ]; + queryStringList, + queryIntegerList, + queryDoubleList, + queryBooleanList, + queryTimestampList, + queryEnumList, + queryIntegerEnumList, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('OmitsSerializingEmptyListsInput') - ..add( - 'queryStringList', - queryStringList, - ) - ..add( - 'queryIntegerList', - queryIntegerList, - ) - ..add( - 'queryDoubleList', - queryDoubleList, - ) - ..add( - 'queryBooleanList', - queryBooleanList, - ) - ..add( - 'queryTimestampList', - queryTimestampList, - ) - ..add( - 'queryEnumList', - queryEnumList, - ) - ..add( - 'queryIntegerEnumList', - queryIntegerEnumList, - ); + ..add('queryStringList', queryStringList) + ..add('queryIntegerList', queryIntegerList) + ..add('queryDoubleList', queryDoubleList) + ..add('queryBooleanList', queryBooleanList) + ..add('queryTimestampList', queryTimestampList) + ..add('queryEnumList', queryEnumList) + ..add('queryIntegerEnumList', queryIntegerEnumList); return helper.toString(); } } @_i4.internal abstract class OmitsSerializingEmptyListsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInputPayloadBuilder + >, _i1.EmptyPayload { - factory OmitsSerializingEmptyListsInputPayload( - [void Function(OmitsSerializingEmptyListsInputPayloadBuilder) - updates]) = _$OmitsSerializingEmptyListsInputPayload; + factory OmitsSerializingEmptyListsInputPayload([ + void Function(OmitsSerializingEmptyListsInputPayloadBuilder) updates, + ]) = _$OmitsSerializingEmptyListsInputPayload; const OmitsSerializingEmptyListsInputPayload._(); @@ -187,32 +187,31 @@ abstract class OmitsSerializingEmptyListsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('OmitsSerializingEmptyListsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'OmitsSerializingEmptyListsInputPayload', + ); return helper.toString(); } } -class OmitsSerializingEmptyListsInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class OmitsSerializingEmptyListsInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const OmitsSerializingEmptyListsInputRestJson1Serializer() - : super('OmitsSerializingEmptyListsInput'); + : super('OmitsSerializingEmptyListsInput'); @override Iterable get types => const [ - OmitsSerializingEmptyListsInput, - _$OmitsSerializingEmptyListsInput, - OmitsSerializingEmptyListsInputPayload, - _$OmitsSerializingEmptyListsInputPayload, - ]; + OmitsSerializingEmptyListsInput, + _$OmitsSerializingEmptyListsInput, + OmitsSerializingEmptyListsInputPayload, + _$OmitsSerializingEmptyListsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsSerializingEmptyListsInputPayload deserialize( @@ -228,6 +227,5 @@ class OmitsSerializingEmptyListsInputRestJson1Serializer extends _i1 Serializers serializers, OmitsSerializingEmptyListsInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart index bb9ec5cfce..d7108bdbda 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/omits_serializing_empty_lists_input.g.dart @@ -23,24 +23,25 @@ class _$OmitsSerializingEmptyListsInput @override final _i3.BuiltList? queryIntegerEnumList; - factory _$OmitsSerializingEmptyListsInput( - [void Function(OmitsSerializingEmptyListsInputBuilder)? updates]) => + factory _$OmitsSerializingEmptyListsInput([ + void Function(OmitsSerializingEmptyListsInputBuilder)? updates, + ]) => (new OmitsSerializingEmptyListsInputBuilder()..update(updates))._build(); - _$OmitsSerializingEmptyListsInput._( - {this.queryStringList, - this.queryIntegerList, - this.queryDoubleList, - this.queryBooleanList, - this.queryTimestampList, - this.queryEnumList, - this.queryIntegerEnumList}) - : super._(); + _$OmitsSerializingEmptyListsInput._({ + this.queryStringList, + this.queryIntegerList, + this.queryDoubleList, + this.queryBooleanList, + this.queryTimestampList, + this.queryEnumList, + this.queryIntegerEnumList, + }) : super._(); @override OmitsSerializingEmptyListsInput rebuild( - void Function(OmitsSerializingEmptyListsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsSerializingEmptyListsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsSerializingEmptyListsInputBuilder toBuilder() => @@ -76,8 +77,10 @@ class _$OmitsSerializingEmptyListsInput class OmitsSerializingEmptyListsInputBuilder implements - Builder { + Builder< + OmitsSerializingEmptyListsInput, + OmitsSerializingEmptyListsInputBuilder + > { _$OmitsSerializingEmptyListsInput? _$v; _i3.ListBuilder? _queryStringList; @@ -120,8 +123,8 @@ class OmitsSerializingEmptyListsInputBuilder _i3.ListBuilder get queryIntegerEnumList => _$this._queryIntegerEnumList ??= new _i3.ListBuilder(); set queryIntegerEnumList( - _i3.ListBuilder? queryIntegerEnumList) => - _$this._queryIntegerEnumList = queryIntegerEnumList; + _i3.ListBuilder? queryIntegerEnumList, + ) => _$this._queryIntegerEnumList = queryIntegerEnumList; OmitsSerializingEmptyListsInputBuilder(); @@ -157,15 +160,17 @@ class OmitsSerializingEmptyListsInputBuilder _$OmitsSerializingEmptyListsInput _build() { _$OmitsSerializingEmptyListsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$OmitsSerializingEmptyListsInput._( - queryStringList: _queryStringList?.build(), - queryIntegerList: _queryIntegerList?.build(), - queryDoubleList: _queryDoubleList?.build(), - queryBooleanList: _queryBooleanList?.build(), - queryTimestampList: _queryTimestampList?.build(), - queryEnumList: _queryEnumList?.build(), - queryIntegerEnumList: _queryIntegerEnumList?.build()); + queryStringList: _queryStringList?.build(), + queryIntegerList: _queryIntegerList?.build(), + queryDoubleList: _queryDoubleList?.build(), + queryBooleanList: _queryBooleanList?.build(), + queryTimestampList: _queryTimestampList?.build(), + queryEnumList: _queryEnumList?.build(), + queryIntegerEnumList: _queryIntegerEnumList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -185,7 +190,10 @@ class OmitsSerializingEmptyListsInputBuilder _queryIntegerEnumList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OmitsSerializingEmptyListsInput', _$failedField, e.toString()); + r'OmitsSerializingEmptyListsInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -196,9 +204,9 @@ class OmitsSerializingEmptyListsInputBuilder class _$OmitsSerializingEmptyListsInputPayload extends OmitsSerializingEmptyListsInputPayload { - factory _$OmitsSerializingEmptyListsInputPayload( - [void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? - updates]) => + factory _$OmitsSerializingEmptyListsInputPayload([ + void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? updates, + ]) => (new OmitsSerializingEmptyListsInputPayloadBuilder()..update(updates)) ._build(); @@ -206,9 +214,8 @@ class _$OmitsSerializingEmptyListsInputPayload @override OmitsSerializingEmptyListsInputPayload rebuild( - void Function(OmitsSerializingEmptyListsInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsSerializingEmptyListsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsSerializingEmptyListsInputPayloadBuilder toBuilder() => @@ -228,8 +235,10 @@ class _$OmitsSerializingEmptyListsInputPayload class OmitsSerializingEmptyListsInputPayloadBuilder implements - Builder { + Builder< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInputPayloadBuilder + > { _$OmitsSerializingEmptyListsInputPayload? _$v; OmitsSerializingEmptyListsInputPayloadBuilder(); @@ -242,7 +251,8 @@ class OmitsSerializingEmptyListsInputPayloadBuilder @override void update( - void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? updates) { + void Function(OmitsSerializingEmptyListsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.dart index 65c000c66e..4f198a56c2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/payload_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/payload_config.dart index fdcd1f9848..e3f5ab7867 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/payload_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/payload_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.payload_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class PayloadConfig const PayloadConfig._(); static const List<_i2.SmithySerializer> serializers = [ - PayloadConfigRestJson1Serializer() + PayloadConfigRestJson1Serializer(), ]; int? get data; @@ -33,10 +33,7 @@ abstract class PayloadConfig @override String toString() { final helper = newBuiltValueToStringHelper('PayloadConfig') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -46,18 +43,12 @@ class PayloadConfigRestJson1Serializer const PayloadConfigRestJson1Serializer() : super('PayloadConfig'); @override - Iterable get types => const [ - PayloadConfig, - _$PayloadConfig, - ]; + Iterable get types => const [PayloadConfig, _$PayloadConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PayloadConfig deserialize( @@ -76,10 +67,12 @@ class PayloadConfigRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -97,10 +90,7 @@ class PayloadConfigRestJson1Serializer if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(data, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart index 24806335c6..7d25777f13 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.player_action; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,13 +12,11 @@ sealed class PlayerAction extends _i1.SmithyUnion { const factory PlayerAction.quit() = PlayerActionQuit$; - const factory PlayerAction.sdkUnknown( - String name, - Object value, - ) = PlayerActionSdkUnknown$; + const factory PlayerAction.sdkUnknown(String name, Object value) = + PlayerActionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - PlayerActionRestJson1Serializer() + PlayerActionRestJson1Serializer(), ]; /// Quit the game. @@ -31,10 +29,7 @@ sealed class PlayerAction extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'PlayerAction'); if (quit != null) { - helper.add( - r'quit', - quit, - ); + helper.add(r'quit', quit); } return helper.toString(); } @@ -51,10 +46,7 @@ final class PlayerActionQuit$ extends PlayerAction { } final class PlayerActionSdkUnknown$ extends PlayerAction { - const PlayerActionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const PlayerActionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -68,18 +60,12 @@ class PlayerActionRestJson1Serializer const PlayerActionRestJson1Serializer() : super('PlayerAction'); @override - Iterable get types => const [ - PlayerAction, - PlayerActionQuit$, - ]; + Iterable get types => const [PlayerAction, PlayerActionQuit$]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PlayerAction deserialize( @@ -92,10 +78,7 @@ class PlayerActionRestJson1Serializer case 'quit': return const PlayerActionQuit$(); } - return PlayerAction.sdkUnknown( - key, - value, - ); + return PlayerAction.sdkUnknown(key, value); } @override @@ -108,9 +91,9 @@ class PlayerActionRestJson1Serializer object.name, switch (object) { PlayerActionQuit$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i1.Unit), - ), + value, + specifiedType: const FullType(_i1.Unit), + ), PlayerActionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart index 636ebab3df..92ab5e2e86 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.post_player_action_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class PostPlayerActionInput return _$PostPlayerActionInput._(action: action); } - factory PostPlayerActionInput.build( - [void Function(PostPlayerActionInputBuilder) updates]) = - _$PostPlayerActionInput; + factory PostPlayerActionInput.build([ + void Function(PostPlayerActionInputBuilder) updates, + ]) = _$PostPlayerActionInput; const PostPlayerActionInput._(); @@ -30,11 +30,10 @@ abstract class PostPlayerActionInput PostPlayerActionInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - PostPlayerActionInputRestJson1Serializer() + PostPlayerActionInputRestJson1Serializer(), ]; PlayerAction? get action; @@ -47,10 +46,7 @@ abstract class PostPlayerActionInput @override String toString() { final helper = newBuiltValueToStringHelper('PostPlayerActionInput') - ..add( - 'action', - action, - ); + ..add('action', action); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class PostPlayerActionInput class PostPlayerActionInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const PostPlayerActionInputRestJson1Serializer() - : super('PostPlayerActionInput'); + : super('PostPlayerActionInput'); @override Iterable get types => const [ - PostPlayerActionInput, - _$PostPlayerActionInput, - ]; + PostPlayerActionInput, + _$PostPlayerActionInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionInput deserialize( @@ -91,10 +84,12 @@ class PostPlayerActionInputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } @@ -112,10 +107,12 @@ class PostPlayerActionInputRestJson1Serializer if (action != null) { result$ ..add('action') - ..add(serializers.serialize( - action, - specifiedType: const FullType(PlayerAction), - )); + ..add( + serializers.serialize( + action, + specifiedType: const FullType(PlayerAction), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart index 9c245f8056..c28f89e8a2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_input.g.dart @@ -10,16 +10,16 @@ class _$PostPlayerActionInput extends PostPlayerActionInput { @override final PlayerAction? action; - factory _$PostPlayerActionInput( - [void Function(PostPlayerActionInputBuilder)? updates]) => - (new PostPlayerActionInputBuilder()..update(updates))._build(); + factory _$PostPlayerActionInput([ + void Function(PostPlayerActionInputBuilder)? updates, + ]) => (new PostPlayerActionInputBuilder()..update(updates))._build(); _$PostPlayerActionInput._({this.action}) : super._(); @override PostPlayerActionInput rebuild( - void Function(PostPlayerActionInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostPlayerActionInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostPlayerActionInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart index deacc7c6ee..91e14adfd1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.post_player_action_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,9 +18,9 @@ abstract class PostPlayerActionOutput return _$PostPlayerActionOutput._(action: action); } - factory PostPlayerActionOutput.build( - [void Function(PostPlayerActionOutputBuilder) updates]) = - _$PostPlayerActionOutput; + factory PostPlayerActionOutput.build([ + void Function(PostPlayerActionOutputBuilder) updates, + ]) = _$PostPlayerActionOutput; const PostPlayerActionOutput._(); @@ -28,8 +28,7 @@ abstract class PostPlayerActionOutput factory PostPlayerActionOutput.fromResponse( PostPlayerActionOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [PostPlayerActionOutputRestJson1Serializer()]; @@ -41,10 +40,7 @@ abstract class PostPlayerActionOutput @override String toString() { final helper = newBuiltValueToStringHelper('PostPlayerActionOutput') - ..add( - 'action', - action, - ); + ..add('action', action); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class PostPlayerActionOutput class PostPlayerActionOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const PostPlayerActionOutputRestJson1Serializer() - : super('PostPlayerActionOutput'); + : super('PostPlayerActionOutput'); @override Iterable get types => const [ - PostPlayerActionOutput, - _$PostPlayerActionOutput, - ]; + PostPlayerActionOutput, + _$PostPlayerActionOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionOutput deserialize( @@ -85,10 +78,12 @@ class PostPlayerActionOutputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart index 067f8cfbc8..c131107ca7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_player_action_output.g.dart @@ -10,19 +10,22 @@ class _$PostPlayerActionOutput extends PostPlayerActionOutput { @override final PlayerAction action; - factory _$PostPlayerActionOutput( - [void Function(PostPlayerActionOutputBuilder)? updates]) => - (new PostPlayerActionOutputBuilder()..update(updates))._build(); + factory _$PostPlayerActionOutput([ + void Function(PostPlayerActionOutputBuilder)? updates, + ]) => (new PostPlayerActionOutputBuilder()..update(updates))._build(); _$PostPlayerActionOutput._({required this.action}) : super._() { BuiltValueNullFieldError.checkNotNull( - action, r'PostPlayerActionOutput', 'action'); + action, + r'PostPlayerActionOutput', + 'action', + ); } @override PostPlayerActionOutput rebuild( - void Function(PostPlayerActionOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostPlayerActionOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostPlayerActionOutputBuilder toBuilder() => @@ -77,10 +80,15 @@ class PostPlayerActionOutputBuilder PostPlayerActionOutput build() => _build(); _$PostPlayerActionOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PostPlayerActionOutput._( - action: BuiltValueNullFieldError.checkNotNull( - action, r'PostPlayerActionOutput', 'action')); + action: BuiltValueNullFieldError.checkNotNull( + action, + r'PostPlayerActionOutput', + 'action', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart index 9154999c4b..1ace06c1be 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.post_union_with_json_name_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class PostUnionWithJsonNameInput return _$PostUnionWithJsonNameInput._(value: value); } - factory PostUnionWithJsonNameInput.build( - [void Function(PostUnionWithJsonNameInputBuilder) updates]) = - _$PostUnionWithJsonNameInput; + factory PostUnionWithJsonNameInput.build([ + void Function(PostUnionWithJsonNameInputBuilder) updates, + ]) = _$PostUnionWithJsonNameInput; const PostUnionWithJsonNameInput._(); @@ -31,11 +31,10 @@ abstract class PostUnionWithJsonNameInput PostUnionWithJsonNameInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [PostUnionWithJsonNameInputRestJson1Serializer()]; + serializers = [PostUnionWithJsonNameInputRestJson1Serializer()]; UnionWithJsonName? get value; @override @@ -47,10 +46,7 @@ abstract class PostUnionWithJsonNameInput @override String toString() { final helper = newBuiltValueToStringHelper('PostUnionWithJsonNameInput') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class PostUnionWithJsonNameInput class PostUnionWithJsonNameInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const PostUnionWithJsonNameInputRestJson1Serializer() - : super('PostUnionWithJsonNameInput'); + : super('PostUnionWithJsonNameInput'); @override Iterable get types => const [ - PostUnionWithJsonNameInput, - _$PostUnionWithJsonNameInput, - ]; + PostUnionWithJsonNameInput, + _$PostUnionWithJsonNameInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameInput deserialize( @@ -91,10 +84,12 @@ class PostUnionWithJsonNameInputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } @@ -112,10 +107,12 @@ class PostUnionWithJsonNameInputRestJson1Serializer if (value != null) { result$ ..add('value') - ..add(serializers.serialize( - value, - specifiedType: const FullType(UnionWithJsonName), - )); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart index 5792938d14..519d23d309 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_input.g.dart @@ -10,16 +10,16 @@ class _$PostUnionWithJsonNameInput extends PostUnionWithJsonNameInput { @override final UnionWithJsonName? value; - factory _$PostUnionWithJsonNameInput( - [void Function(PostUnionWithJsonNameInputBuilder)? updates]) => - (new PostUnionWithJsonNameInputBuilder()..update(updates))._build(); + factory _$PostUnionWithJsonNameInput([ + void Function(PostUnionWithJsonNameInputBuilder)? updates, + ]) => (new PostUnionWithJsonNameInputBuilder()..update(updates))._build(); _$PostUnionWithJsonNameInput._({this.value}) : super._(); @override PostUnionWithJsonNameInput rebuild( - void Function(PostUnionWithJsonNameInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostUnionWithJsonNameInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostUnionWithJsonNameInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart index 742005e5dd..ae918dfad8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.post_union_with_json_name_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class PostUnionWithJsonNameOutput return _$PostUnionWithJsonNameOutput._(value: value); } - factory PostUnionWithJsonNameOutput.build( - [void Function(PostUnionWithJsonNameOutputBuilder) updates]) = - _$PostUnionWithJsonNameOutput; + factory PostUnionWithJsonNameOutput.build([ + void Function(PostUnionWithJsonNameOutputBuilder) updates, + ]) = _$PostUnionWithJsonNameOutput; const PostUnionWithJsonNameOutput._(); @@ -29,11 +29,10 @@ abstract class PostUnionWithJsonNameOutput factory PostUnionWithJsonNameOutput.fromResponse( PostUnionWithJsonNameOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [PostUnionWithJsonNameOutputRestJson1Serializer()]; + serializers = [PostUnionWithJsonNameOutputRestJson1Serializer()]; UnionWithJsonName get value; @override @@ -42,10 +41,7 @@ abstract class PostUnionWithJsonNameOutput @override String toString() { final helper = newBuiltValueToStringHelper('PostUnionWithJsonNameOutput') - ..add( - 'value', - value, - ); + ..add('value', value); return helper.toString(); } } @@ -53,21 +49,18 @@ abstract class PostUnionWithJsonNameOutput class PostUnionWithJsonNameOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const PostUnionWithJsonNameOutputRestJson1Serializer() - : super('PostUnionWithJsonNameOutput'); + : super('PostUnionWithJsonNameOutput'); @override Iterable get types => const [ - PostUnionWithJsonNameOutput, - _$PostUnionWithJsonNameOutput, - ]; + PostUnionWithJsonNameOutput, + _$PostUnionWithJsonNameOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameOutput deserialize( @@ -86,10 +79,12 @@ class PostUnionWithJsonNameOutputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart index 9d5dcd9228..c093b0aad8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/post_union_with_json_name_output.g.dart @@ -10,19 +10,22 @@ class _$PostUnionWithJsonNameOutput extends PostUnionWithJsonNameOutput { @override final UnionWithJsonName value; - factory _$PostUnionWithJsonNameOutput( - [void Function(PostUnionWithJsonNameOutputBuilder)? updates]) => - (new PostUnionWithJsonNameOutputBuilder()..update(updates))._build(); + factory _$PostUnionWithJsonNameOutput([ + void Function(PostUnionWithJsonNameOutputBuilder)? updates, + ]) => (new PostUnionWithJsonNameOutputBuilder()..update(updates))._build(); _$PostUnionWithJsonNameOutput._({required this.value}) : super._() { BuiltValueNullFieldError.checkNotNull( - value, r'PostUnionWithJsonNameOutput', 'value'); + value, + r'PostUnionWithJsonNameOutput', + 'value', + ); } @override PostUnionWithJsonNameOutput rebuild( - void Function(PostUnionWithJsonNameOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PostUnionWithJsonNameOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PostUnionWithJsonNameOutputBuilder toBuilder() => @@ -45,8 +48,10 @@ class _$PostUnionWithJsonNameOutput extends PostUnionWithJsonNameOutput { class PostUnionWithJsonNameOutputBuilder implements - Builder { + Builder< + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutputBuilder + > { _$PostUnionWithJsonNameOutput? _$v; UnionWithJsonName? _value; @@ -79,10 +84,15 @@ class PostUnionWithJsonNameOutputBuilder PostUnionWithJsonNameOutput build() => _build(); _$PostUnionWithJsonNameOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PostUnionWithJsonNameOutput._( - value: BuiltValueNullFieldError.checkNotNull( - value, r'PostUnionWithJsonNameOutput', 'value')); + value: BuiltValueNullFieldError.checkNotNull( + value, + r'PostUnionWithJsonNameOutput', + 'value', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart index e604d6ec17..7c1cc09680 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,19 +18,13 @@ abstract class PutWithContentEncodingInput implements Built, _i1.HasPayload { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -38,16 +32,15 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - PutWithContentEncodingInput.build((b) { - b.data = payload.data; - if (request.headers['Content-Encoding'] != null) { - b.encoding = request.headers['Content-Encoding']!; - } - }); + }) => PutWithContentEncodingInput.build((b) { + b.data = payload.data; + if (request.headers['Content-Encoding'] != null) { + b.encoding = request.headers['Content-Encoding']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputRestJson1Serializer()]; + serializers = [PutWithContentEncodingInputRestJson1Serializer()]; String? get encoding; String? get data; @@ -58,36 +51,29 @@ abstract class PutWithContentEncodingInput }); @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @_i3.internal abstract class PutWithContentEncodingInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder) updates]) = - _$PutWithContentEncodingInputPayload; + Built< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { + factory PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ]) = _$PutWithContentEncodingInputPayload; const PutWithContentEncodingInputPayload._(); @@ -97,12 +83,9 @@ abstract class PutWithContentEncodingInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('PutWithContentEncodingInputPayload') - ..add( - 'data', - data, - ); + final helper = newBuiltValueToStringHelper( + 'PutWithContentEncodingInputPayload', + )..add('data', data); return helper.toString(); } } @@ -110,23 +93,20 @@ abstract class PutWithContentEncodingInputPayload class PutWithContentEncodingInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputRestJson1Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - PutWithContentEncodingInputPayload, - _$PutWithContentEncodingInputPayload, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + PutWithContentEncodingInputPayload, + _$PutWithContentEncodingInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PutWithContentEncodingInputPayload deserialize( @@ -145,10 +125,12 @@ class PutWithContentEncodingInputRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -166,10 +148,9 @@ class PutWithContentEncodingInputRestJson1Serializer if (data != null) { result$ ..add('data') - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart index 4259e06363..c303950602 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; @@ -98,9 +101,9 @@ class _$PutWithContentEncodingInputPayload @override final String? data; - factory _$PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder)? - updates]) => + factory _$PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ]) => (new PutWithContentEncodingInputPayloadBuilder()..update(updates)) ._build(); @@ -108,8 +111,8 @@ class _$PutWithContentEncodingInputPayload @override PutWithContentEncodingInputPayload rebuild( - void Function(PutWithContentEncodingInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputPayloadBuilder toBuilder() => @@ -132,8 +135,10 @@ class _$PutWithContentEncodingInputPayload class PutWithContentEncodingInputPayloadBuilder implements - Builder { + Builder< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { _$PutWithContentEncodingInputPayload? _$v; String? _data; @@ -159,7 +164,8 @@ class PutWithContentEncodingInputPayloadBuilder @override void update( - void Function(PutWithContentEncodingInputPayloadBuilder)? updates) { + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart index 65b5dc65ed..7e393b5c2e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -34,22 +36,23 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryIdempotencyTokenAutoFillInput.build((b) { - if (request.queryParameters['token'] != null) { - b.token = request.queryParameters['token']!; - } - }); + }) => QueryIdempotencyTokenAutoFillInput.build((b) { + if (request.queryParameters['token'] != null) { + b.token = request.queryParameters['token']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [QueryIdempotencyTokenAutoFillInputRestJson1Serializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -62,27 +65,25 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @_i3.internal abstract class QueryIdempotencyTokenAutoFillInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates]) = _$QueryIdempotencyTokenAutoFillInputPayload; + factory QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInputPayload; const QueryIdempotencyTokenAutoFillInputPayload._(); @@ -92,31 +93,32 @@ abstract class QueryIdempotencyTokenAutoFillInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'QueryIdempotencyTokenAutoFillInputPayload'); + 'QueryIdempotencyTokenAutoFillInputPayload', + ); return helper.toString(); } } -class QueryIdempotencyTokenAutoFillInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class QueryIdempotencyTokenAutoFillInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + QueryIdempotencyTokenAutoFillInputPayload + > { const QueryIdempotencyTokenAutoFillInputRestJson1Serializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInputPayload, - _$QueryIdempotencyTokenAutoFillInputPayload, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputPayload, + _$QueryIdempotencyTokenAutoFillInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryIdempotencyTokenAutoFillInputPayload deserialize( @@ -132,6 +134,5 @@ class QueryIdempotencyTokenAutoFillInputRestJson1Serializer extends _i1 Serializers serializers, QueryIdempotencyTokenAutoFillInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart index 77f1132aa1..e587f2ad82 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,9 @@ class QueryIdempotencyTokenAutoFillInputBuilder class _$QueryIdempotencyTokenAutoFillInputPayload extends QueryIdempotencyTokenAutoFillInputPayload { - factory _$QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputPayloadBuilder()..update(updates)) ._build(); @@ -101,9 +104,8 @@ class _$QueryIdempotencyTokenAutoFillInputPayload @override QueryIdempotencyTokenAutoFillInputPayload rebuild( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputPayloadBuilder toBuilder() => @@ -123,8 +125,10 @@ class _$QueryIdempotencyTokenAutoFillInputPayload class QueryIdempotencyTokenAutoFillInputPayloadBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + > { _$QueryIdempotencyTokenAutoFillInputPayload? _$v; QueryIdempotencyTokenAutoFillInputPayloadBuilder(); @@ -137,8 +141,8 @@ class QueryIdempotencyTokenAutoFillInputPayloadBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates) { + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart index edfc6fb400..57d031da38 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.query_params_as_string_list_map_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class QueryParamsAsStringListMapInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryParamsAsStringListMapInput({ @@ -31,9 +33,9 @@ abstract class QueryParamsAsStringListMapInput ); } - factory QueryParamsAsStringListMapInput.build( - [void Function(QueryParamsAsStringListMapInputBuilder) updates]) = - _$QueryParamsAsStringListMapInput; + factory QueryParamsAsStringListMapInput.build([ + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ]) = _$QueryParamsAsStringListMapInput; const QueryParamsAsStringListMapInput._(); @@ -41,16 +43,16 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryParamsAsStringListMapInput.build((b) { - if (request.queryParameters['corge'] != null) { - b.qux = request.queryParameters['corge']!; - } - }); + }) => QueryParamsAsStringListMapInput.build((b) { + if (request.queryParameters['corge'] != null) { + b.qux = request.queryParameters['corge']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryParamsAsStringListMapInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [QueryParamsAsStringListMapInputRestJson1Serializer()]; String? get qux; _i3.BuiltListMultimap? get foo; @@ -59,38 +61,30 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload(); @override - List get props => [ - qux, - foo, - ]; + List get props => [qux, foo]; @override String toString() { final helper = newBuiltValueToStringHelper('QueryParamsAsStringListMapInput') - ..add( - 'qux', - qux, - ) - ..add( - 'foo', - foo, - ); + ..add('qux', qux) + ..add('foo', foo); return helper.toString(); } } @_i4.internal abstract class QueryParamsAsStringListMapInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates]) = _$QueryParamsAsStringListMapInputPayload; + factory QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ]) = _$QueryParamsAsStringListMapInputPayload; const QueryParamsAsStringListMapInputPayload._(); @@ -99,32 +93,31 @@ abstract class QueryParamsAsStringListMapInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryParamsAsStringListMapInputPayload'); + final helper = newBuiltValueToStringHelper( + 'QueryParamsAsStringListMapInputPayload', + ); return helper.toString(); } } -class QueryParamsAsStringListMapInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class QueryParamsAsStringListMapInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestJson1Serializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [ - QueryParamsAsStringListMapInput, - _$QueryParamsAsStringListMapInput, - QueryParamsAsStringListMapInputPayload, - _$QueryParamsAsStringListMapInputPayload, - ]; + QueryParamsAsStringListMapInput, + _$QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputPayload, + _$QueryParamsAsStringListMapInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryParamsAsStringListMapInputPayload deserialize( @@ -140,6 +133,5 @@ class QueryParamsAsStringListMapInputRestJson1Serializer extends _i1 Serializers serializers, QueryParamsAsStringListMapInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart index eb0a5eeece..5410fceab0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_params_as_string_list_map_input.g.dart @@ -13,16 +13,17 @@ class _$QueryParamsAsStringListMapInput @override final _i3.BuiltListMultimap? foo; - factory _$QueryParamsAsStringListMapInput( - [void Function(QueryParamsAsStringListMapInputBuilder)? updates]) => + factory _$QueryParamsAsStringListMapInput([ + void Function(QueryParamsAsStringListMapInputBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputBuilder()..update(updates))._build(); _$QueryParamsAsStringListMapInput._({this.qux, this.foo}) : super._(); @override QueryParamsAsStringListMapInput rebuild( - void Function(QueryParamsAsStringListMapInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputBuilder toBuilder() => @@ -48,8 +49,10 @@ class _$QueryParamsAsStringListMapInput class QueryParamsAsStringListMapInputBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + > { _$QueryParamsAsStringListMapInput? _$v; String? _qux; @@ -90,7 +93,8 @@ class QueryParamsAsStringListMapInputBuilder _$QueryParamsAsStringListMapInput _build() { _$QueryParamsAsStringListMapInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryParamsAsStringListMapInput._(qux: qux, foo: _foo?.build()); } catch (_) { late String _$failedField; @@ -99,7 +103,10 @@ class QueryParamsAsStringListMapInputBuilder _foo?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryParamsAsStringListMapInput', _$failedField, e.toString()); + r'QueryParamsAsStringListMapInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -110,9 +117,9 @@ class QueryParamsAsStringListMapInputBuilder class _$QueryParamsAsStringListMapInputPayload extends QueryParamsAsStringListMapInputPayload { - factory _$QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder)? - updates]) => + factory _$QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputPayloadBuilder()..update(updates)) ._build(); @@ -120,9 +127,8 @@ class _$QueryParamsAsStringListMapInputPayload @override QueryParamsAsStringListMapInputPayload rebuild( - void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputPayloadBuilder toBuilder() => @@ -142,8 +148,10 @@ class _$QueryParamsAsStringListMapInputPayload class QueryParamsAsStringListMapInputPayloadBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + > { _$QueryParamsAsStringListMapInputPayload? _$v; QueryParamsAsStringListMapInputPayloadBuilder(); @@ -156,7 +164,8 @@ class QueryParamsAsStringListMapInputPayloadBuilder @override void update( - void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates) { + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart index 40d226b6be..5de1e986c1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.query_precedence_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,19 +20,16 @@ abstract class QueryPrecedenceInput Built, _i1.EmptyPayload, _i1.HasPayload { - factory QueryPrecedenceInput({ - String? foo, - Map? baz, - }) { + factory QueryPrecedenceInput({String? foo, Map? baz}) { return _$QueryPrecedenceInput._( foo: foo, baz: baz == null ? null : _i3.BuiltMap(baz), ); } - factory QueryPrecedenceInput.build( - [void Function(QueryPrecedenceInputBuilder) updates]) = - _$QueryPrecedenceInput; + factory QueryPrecedenceInput.build([ + void Function(QueryPrecedenceInputBuilder) updates, + ]) = _$QueryPrecedenceInput; const QueryPrecedenceInput._(); @@ -40,15 +37,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryPrecedenceInput.build((b) { - if (request.queryParameters['bar'] != null) { - b.foo = request.queryParameters['bar']!; - } - }); + }) => QueryPrecedenceInput.build((b) { + if (request.queryParameters['bar'] != null) { + b.foo = request.queryParameters['bar']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [QueryPrecedenceInputRestJson1Serializer()]; + serializers = [QueryPrecedenceInputRestJson1Serializer()]; String? get foo; _i3.BuiltMap? get baz; @@ -56,22 +52,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload getPayload() => QueryPrecedenceInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryPrecedenceInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + final helper = + newBuiltValueToStringHelper('QueryPrecedenceInput') + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @@ -82,9 +70,9 @@ abstract class QueryPrecedenceInputPayload implements Built, _i1.EmptyPayload { - factory QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder) updates]) = - _$QueryPrecedenceInputPayload; + factory QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ]) = _$QueryPrecedenceInputPayload; const QueryPrecedenceInputPayload._(); @@ -101,23 +89,20 @@ abstract class QueryPrecedenceInputPayload class QueryPrecedenceInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const QueryPrecedenceInputRestJson1Serializer() - : super('QueryPrecedenceInput'); + : super('QueryPrecedenceInput'); @override Iterable get types => const [ - QueryPrecedenceInput, - _$QueryPrecedenceInput, - QueryPrecedenceInputPayload, - _$QueryPrecedenceInputPayload, - ]; + QueryPrecedenceInput, + _$QueryPrecedenceInput, + QueryPrecedenceInputPayload, + _$QueryPrecedenceInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryPrecedenceInputPayload deserialize( @@ -133,6 +118,5 @@ class QueryPrecedenceInputRestJson1Serializer Serializers serializers, QueryPrecedenceInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart index 66a51ce432..f8c1ab2779 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/query_precedence_input.g.dart @@ -12,16 +12,16 @@ class _$QueryPrecedenceInput extends QueryPrecedenceInput { @override final _i3.BuiltMap? baz; - factory _$QueryPrecedenceInput( - [void Function(QueryPrecedenceInputBuilder)? updates]) => - (new QueryPrecedenceInputBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInput([ + void Function(QueryPrecedenceInputBuilder)? updates, + ]) => (new QueryPrecedenceInputBuilder()..update(updates))._build(); _$QueryPrecedenceInput._({this.foo, this.baz}) : super._(); @override QueryPrecedenceInput rebuild( - void Function(QueryPrecedenceInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputBuilder toBuilder() => @@ -96,7 +96,10 @@ class QueryPrecedenceInputBuilder _baz?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryPrecedenceInput', _$failedField, e.toString()); + r'QueryPrecedenceInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -106,16 +109,16 @@ class QueryPrecedenceInputBuilder } class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { - factory _$QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder)? updates]) => - (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder)? updates, + ]) => (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); _$QueryPrecedenceInputPayload._() : super._(); @override QueryPrecedenceInputPayload rebuild( - void Function(QueryPrecedenceInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputPayloadBuilder toBuilder() => @@ -135,8 +138,10 @@ class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { class QueryPrecedenceInputPayloadBuilder implements - Builder { + Builder< + QueryPrecedenceInputPayload, + QueryPrecedenceInputPayloadBuilder + > { _$QueryPrecedenceInputPayload? _$v; QueryPrecedenceInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart index 0ed2aa0cc8..14d52f67b0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.recursive_shapes_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,15 @@ abstract class RecursiveShapesInputOutput _i2.AWSEquatable implements Built { - factory RecursiveShapesInputOutput( - {RecursiveShapesInputOutputNested1? nested}) { + factory RecursiveShapesInputOutput({ + RecursiveShapesInputOutputNested1? nested, + }) { return _$RecursiveShapesInputOutput._(nested: nested); } - factory RecursiveShapesInputOutput.build( - [void Function(RecursiveShapesInputOutputBuilder) updates]) = - _$RecursiveShapesInputOutput; + factory RecursiveShapesInputOutput.build([ + void Function(RecursiveShapesInputOutputBuilder) updates, + ]) = _$RecursiveShapesInputOutput; const RecursiveShapesInputOutput._(); @@ -32,18 +33,16 @@ abstract class RecursiveShapesInputOutput RecursiveShapesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [RecursiveShapesInputOutput] from a [payload] and [response]. factory RecursiveShapesInputOutput.fromResponse( RecursiveShapesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [RecursiveShapesInputOutputRestJson1Serializer()]; + serializers = [RecursiveShapesInputOutputRestJson1Serializer()]; RecursiveShapesInputOutputNested1? get nested; @override @@ -55,10 +54,7 @@ abstract class RecursiveShapesInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -66,21 +62,18 @@ abstract class RecursiveShapesInputOutput class RecursiveShapesInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const RecursiveShapesInputOutputRestJson1Serializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [ - RecursiveShapesInputOutput, - _$RecursiveShapesInputOutput, - ]; + RecursiveShapesInputOutput, + _$RecursiveShapesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -99,10 +92,15 @@ class RecursiveShapesInputOutputRestJson1Serializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -120,10 +118,12 @@ class RecursiveShapesInputOutputRestJson1Serializer if (nested != null) { result$ ..add('nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart index fc89700ff1..b737463f66 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveShapesInputOutput extends RecursiveShapesInputOutput { @override final RecursiveShapesInputOutputNested1? nested; - factory _$RecursiveShapesInputOutput( - [void Function(RecursiveShapesInputOutputBuilder)? updates]) => - (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); + factory _$RecursiveShapesInputOutput([ + void Function(RecursiveShapesInputOutputBuilder)? updates, + ]) => (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); _$RecursiveShapesInputOutput._({this.nested}) : super._(); @override RecursiveShapesInputOutput rebuild( - void Function(RecursiveShapesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveShapesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutput', _$failedField, e.toString()); + r'RecursiveShapesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart index 8232c1cb10..b329cd3298 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.recursive_shapes_input_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested1.g.dart'; abstract class RecursiveShapesInputOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { factory RecursiveShapesInputOutputNested1({ String? foo, RecursiveShapesInputOutputNested2? nested, }) { - return _$RecursiveShapesInputOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveShapesInputOutputNested1._(foo: foo, nested: nested); } - factory RecursiveShapesInputOutputNested1.build( - [void Function(RecursiveShapesInputOutputNested1Builder) updates]) = - _$RecursiveShapesInputOutputNested1; + factory RecursiveShapesInputOutputNested1.build([ + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ]) = _$RecursiveShapesInputOutputNested1; const RecursiveShapesInputOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested1RestJson1Serializer()]; + serializers = [RecursiveShapesInputOutputNested1RestJson1Serializer()]; String? get foo; RecursiveShapesInputOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1RestJson1Serializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestJson1Serializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested1, - _$RecursiveShapesInputOutputNested1, - ]; + RecursiveShapesInputOutputNested1, + _$RecursiveShapesInputOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -96,15 +82,22 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -122,18 +115,19 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer if (foo != null) { result$ ..add('foo') - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add('nested') - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart index 658695aa86..a74cf81627 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested1.g.dart @@ -13,8 +13,9 @@ class _$RecursiveShapesInputOutputNested1 @override final RecursiveShapesInputOutputNested2? nested; - factory _$RecursiveShapesInputOutputNested1( - [void Function(RecursiveShapesInputOutputNested1Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested1([ + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested1Builder()..update(updates)) ._build(); @@ -22,8 +23,8 @@ class _$RecursiveShapesInputOutputNested1 @override RecursiveShapesInputOutputNested1 rebuild( - void Function(RecursiveShapesInputOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested1Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { _$RecursiveShapesInputOutputNested1? _$v; String? _foo; @@ -83,7 +86,8 @@ class RecursiveShapesInputOutputNested1Builder @override void update( - void Function(RecursiveShapesInputOutputNested1Builder)? updates) { + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ) { if (updates != null) updates(this); } @@ -93,9 +97,12 @@ class RecursiveShapesInputOutputNested1Builder _$RecursiveShapesInputOutputNested1 _build() { _$RecursiveShapesInputOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +110,10 @@ class RecursiveShapesInputOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested1', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart index 8688463d9b..009013424a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.recursive_shapes_input_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested2.g.dart'; abstract class RecursiveShapesInputOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { factory RecursiveShapesInputOutputNested2({ String? bar, RecursiveShapesInputOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveShapesInputOutputNested2 ); } - factory RecursiveShapesInputOutputNested2.build( - [void Function(RecursiveShapesInputOutputNested2Builder) updates]) = - _$RecursiveShapesInputOutputNested2; + factory RecursiveShapesInputOutputNested2.build([ + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ]) = _$RecursiveShapesInputOutputNested2; const RecursiveShapesInputOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested2RestJson1Serializer()]; + serializers = [RecursiveShapesInputOutputNested2RestJson1Serializer()]; String? get bar; RecursiveShapesInputOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2RestJson1Serializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestJson1Serializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested2, - _$RecursiveShapesInputOutputNested2, - ]; + RecursiveShapesInputOutputNested2, + _$RecursiveShapesInputOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -96,15 +85,22 @@ class RecursiveShapesInputOutputNested2RestJson1Serializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -122,18 +118,19 @@ class RecursiveShapesInputOutputNested2RestJson1Serializer if (bar != null) { result$ ..add('bar') - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add('recursiveMember') - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart index 5d6e059eed..335c218759 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/recursive_shapes_input_output_nested2.g.dart @@ -13,18 +13,19 @@ class _$RecursiveShapesInputOutputNested2 @override final RecursiveShapesInputOutputNested1? recursiveMember; - factory _$RecursiveShapesInputOutputNested2( - [void Function(RecursiveShapesInputOutputNested2Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested2([ + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested2Builder()..update(updates)) ._build(); _$RecursiveShapesInputOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveShapesInputOutputNested2 rebuild( - void Function(RecursiveShapesInputOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested2Builder toBuilder() => @@ -50,8 +51,10 @@ class _$RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { _$RecursiveShapesInputOutputNested2? _$v; String? _bar; @@ -63,8 +66,8 @@ class RecursiveShapesInputOutputNested2Builder _$this._recursiveMember ??= new RecursiveShapesInputOutputNested1Builder(); set recursiveMember( - RecursiveShapesInputOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveShapesInputOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveShapesInputOutputNested2Builder(); @@ -86,7 +89,8 @@ class RecursiveShapesInputOutputNested2Builder @override void update( - void Function(RecursiveShapesInputOutputNested2Builder)? updates) { + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ) { if (updates != null) updates(this); } @@ -96,9 +100,12 @@ class RecursiveShapesInputOutputNested2Builder _$RecursiveShapesInputOutputNested2 _build() { _$RecursiveShapesInputOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -106,7 +113,10 @@ class RecursiveShapesInputOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested2', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart index 8c5dde1d01..1305568ec2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/renamed_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.renamed_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,13 +17,14 @@ abstract class RenamedGreeting return _$RenamedGreeting._(salutation: salutation); } - factory RenamedGreeting.build( - [void Function(RenamedGreetingBuilder) updates]) = _$RenamedGreeting; + factory RenamedGreeting.build([ + void Function(RenamedGreetingBuilder) updates, + ]) = _$RenamedGreeting; const RenamedGreeting._(); static const List<_i2.SmithySerializer> serializers = [ - RenamedGreetingRestJson1Serializer() + RenamedGreetingRestJson1Serializer(), ]; String? get salutation; @@ -33,10 +34,7 @@ abstract class RenamedGreeting @override String toString() { final helper = newBuiltValueToStringHelper('RenamedGreeting') - ..add( - 'salutation', - salutation, - ); + ..add('salutation', salutation); return helper.toString(); } } @@ -46,18 +44,12 @@ class RenamedGreetingRestJson1Serializer const RenamedGreetingRestJson1Serializer() : super('RenamedGreeting'); @override - Iterable get types => const [ - RenamedGreeting, - _$RenamedGreeting, - ]; + Iterable get types => const [RenamedGreeting, _$RenamedGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RenamedGreeting deserialize( @@ -76,10 +68,12 @@ class RenamedGreetingRestJson1Serializer } switch (key) { case 'salutation': - result.salutation = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.salutation = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +91,12 @@ class RenamedGreetingRestJson1Serializer if (salutation != null) { result$ ..add('salutation') - ..add(serializers.serialize( - salutation, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + salutation, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart index 570fa14727..781bf7da3c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.response_code_http_fallback_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class ResponseCodeHttpFallbackInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutputBuilder + >, _i1.EmptyPayload { factory ResponseCodeHttpFallbackInputOutput() { return _$ResponseCodeHttpFallbackInputOutput._(); } - factory ResponseCodeHttpFallbackInputOutput.build( - [void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates]) = - _$ResponseCodeHttpFallbackInputOutput; + factory ResponseCodeHttpFallbackInputOutput.build([ + void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates, + ]) = _$ResponseCodeHttpFallbackInputOutput; const ResponseCodeHttpFallbackInputOutput._(); @@ -32,18 +34,16 @@ abstract class ResponseCodeHttpFallbackInputOutput ResponseCodeHttpFallbackInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [ResponseCodeHttpFallbackInputOutput] from a [payload] and [response]. factory ResponseCodeHttpFallbackInputOutput.fromResponse( ResponseCodeHttpFallbackInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [ResponseCodeHttpFallbackInputOutputRestJson1Serializer()]; + serializers = [ResponseCodeHttpFallbackInputOutputRestJson1Serializer()]; @override ResponseCodeHttpFallbackInputOutput getPayload() => this; @@ -53,30 +53,29 @@ abstract class ResponseCodeHttpFallbackInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('ResponseCodeHttpFallbackInputOutput'); + final helper = newBuiltValueToStringHelper( + 'ResponseCodeHttpFallbackInputOutput', + ); return helper.toString(); } } -class ResponseCodeHttpFallbackInputOutputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class ResponseCodeHttpFallbackInputOutputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const ResponseCodeHttpFallbackInputOutputRestJson1Serializer() - : super('ResponseCodeHttpFallbackInputOutput'); + : super('ResponseCodeHttpFallbackInputOutput'); @override Iterable get types => const [ - ResponseCodeHttpFallbackInputOutput, - _$ResponseCodeHttpFallbackInputOutput, - ]; + ResponseCodeHttpFallbackInputOutput, + _$ResponseCodeHttpFallbackInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResponseCodeHttpFallbackInputOutput deserialize( @@ -92,6 +91,5 @@ class ResponseCodeHttpFallbackInputOutputRestJson1Serializer extends _i1 Serializers serializers, ResponseCodeHttpFallbackInputOutput object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart index ff79b393ff..d7a82c6769 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_http_fallback_input_output.g.dart @@ -8,9 +8,9 @@ part of 'response_code_http_fallback_input_output.dart'; class _$ResponseCodeHttpFallbackInputOutput extends ResponseCodeHttpFallbackInputOutput { - factory _$ResponseCodeHttpFallbackInputOutput( - [void Function(ResponseCodeHttpFallbackInputOutputBuilder)? - updates]) => + factory _$ResponseCodeHttpFallbackInputOutput([ + void Function(ResponseCodeHttpFallbackInputOutputBuilder)? updates, + ]) => (new ResponseCodeHttpFallbackInputOutputBuilder()..update(updates)) ._build(); @@ -18,8 +18,8 @@ class _$ResponseCodeHttpFallbackInputOutput @override ResponseCodeHttpFallbackInputOutput rebuild( - void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResponseCodeHttpFallbackInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResponseCodeHttpFallbackInputOutputBuilder toBuilder() => @@ -39,8 +39,10 @@ class _$ResponseCodeHttpFallbackInputOutput class ResponseCodeHttpFallbackInputOutputBuilder implements - Builder { + Builder< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutputBuilder + > { _$ResponseCodeHttpFallbackInputOutput? _$v; ResponseCodeHttpFallbackInputOutputBuilder(); @@ -53,7 +55,8 @@ class ResponseCodeHttpFallbackInputOutputBuilder @override void update( - void Function(ResponseCodeHttpFallbackInputOutputBuilder)? updates) { + void Function(ResponseCodeHttpFallbackInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart index 3230134e09..f5c06f258e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.response_code_required_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class ResponseCodeRequiredOutput return _$ResponseCodeRequiredOutput._(responseCode: responseCode); } - factory ResponseCodeRequiredOutput.build( - [void Function(ResponseCodeRequiredOutputBuilder) updates]) = - _$ResponseCodeRequiredOutput; + factory ResponseCodeRequiredOutput.build([ + void Function(ResponseCodeRequiredOutputBuilder) updates, + ]) = _$ResponseCodeRequiredOutput; const ResponseCodeRequiredOutput._(); @@ -31,13 +31,12 @@ abstract class ResponseCodeRequiredOutput factory ResponseCodeRequiredOutput.fromResponse( ResponseCodeRequiredOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ResponseCodeRequiredOutput.build((b) { - b.responseCode = response.statusCode; - }); + ) => ResponseCodeRequiredOutput.build((b) { + b.responseCode = response.statusCode; + }); static const List<_i2.SmithySerializer> - serializers = [ResponseCodeRequiredOutputRestJson1Serializer()]; + serializers = [ResponseCodeRequiredOutputRestJson1Serializer()]; int get responseCode; @override @@ -50,25 +49,23 @@ abstract class ResponseCodeRequiredOutput @override String toString() { final helper = newBuiltValueToStringHelper('ResponseCodeRequiredOutput') - ..add( - 'responseCode', - responseCode, - ); + ..add('responseCode', responseCode); return helper.toString(); } } @_i3.internal abstract class ResponseCodeRequiredOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutputPayloadBuilder + >, _i2.EmptyPayload { - factory ResponseCodeRequiredOutputPayload( - [void Function(ResponseCodeRequiredOutputPayloadBuilder) updates]) = - _$ResponseCodeRequiredOutputPayload; + factory ResponseCodeRequiredOutputPayload([ + void Function(ResponseCodeRequiredOutputPayloadBuilder) updates, + ]) = _$ResponseCodeRequiredOutputPayload; const ResponseCodeRequiredOutputPayload._(); @@ -77,8 +74,9 @@ abstract class ResponseCodeRequiredOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('ResponseCodeRequiredOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'ResponseCodeRequiredOutputPayload', + ); return helper.toString(); } } @@ -86,23 +84,20 @@ abstract class ResponseCodeRequiredOutputPayload class ResponseCodeRequiredOutputRestJson1Serializer extends _i2.StructuredSmithySerializer { const ResponseCodeRequiredOutputRestJson1Serializer() - : super('ResponseCodeRequiredOutput'); + : super('ResponseCodeRequiredOutput'); @override Iterable get types => const [ - ResponseCodeRequiredOutput, - _$ResponseCodeRequiredOutput, - ResponseCodeRequiredOutputPayload, - _$ResponseCodeRequiredOutputPayload, - ]; + ResponseCodeRequiredOutput, + _$ResponseCodeRequiredOutput, + ResponseCodeRequiredOutputPayload, + _$ResponseCodeRequiredOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResponseCodeRequiredOutputPayload deserialize( @@ -118,6 +113,5 @@ class ResponseCodeRequiredOutputRestJson1Serializer Serializers serializers, ResponseCodeRequiredOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart index 7686030273..24e203985d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/response_code_required_output.g.dart @@ -10,19 +10,22 @@ class _$ResponseCodeRequiredOutput extends ResponseCodeRequiredOutput { @override final int responseCode; - factory _$ResponseCodeRequiredOutput( - [void Function(ResponseCodeRequiredOutputBuilder)? updates]) => - (new ResponseCodeRequiredOutputBuilder()..update(updates))._build(); + factory _$ResponseCodeRequiredOutput([ + void Function(ResponseCodeRequiredOutputBuilder)? updates, + ]) => (new ResponseCodeRequiredOutputBuilder()..update(updates))._build(); _$ResponseCodeRequiredOutput._({required this.responseCode}) : super._() { BuiltValueNullFieldError.checkNotNull( - responseCode, r'ResponseCodeRequiredOutput', 'responseCode'); + responseCode, + r'ResponseCodeRequiredOutput', + 'responseCode', + ); } @override ResponseCodeRequiredOutput rebuild( - void Function(ResponseCodeRequiredOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResponseCodeRequiredOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResponseCodeRequiredOutputBuilder toBuilder() => @@ -79,10 +82,15 @@ class ResponseCodeRequiredOutputBuilder ResponseCodeRequiredOutput build() => _build(); _$ResponseCodeRequiredOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ResponseCodeRequiredOutput._( - responseCode: BuiltValueNullFieldError.checkNotNull( - responseCode, r'ResponseCodeRequiredOutput', 'responseCode')); + responseCode: BuiltValueNullFieldError.checkNotNull( + responseCode, + r'ResponseCodeRequiredOutput', + 'responseCode', + ), + ); replace(_$result); return _$result; } @@ -90,8 +98,9 @@ class ResponseCodeRequiredOutputBuilder class _$ResponseCodeRequiredOutputPayload extends ResponseCodeRequiredOutputPayload { - factory _$ResponseCodeRequiredOutputPayload( - [void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates]) => + factory _$ResponseCodeRequiredOutputPayload([ + void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates, + ]) => (new ResponseCodeRequiredOutputPayloadBuilder()..update(updates)) ._build(); @@ -99,8 +108,8 @@ class _$ResponseCodeRequiredOutputPayload @override ResponseCodeRequiredOutputPayload rebuild( - void Function(ResponseCodeRequiredOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResponseCodeRequiredOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResponseCodeRequiredOutputPayloadBuilder toBuilder() => @@ -120,8 +129,10 @@ class _$ResponseCodeRequiredOutputPayload class ResponseCodeRequiredOutputPayloadBuilder implements - Builder { + Builder< + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutputPayloadBuilder + > { _$ResponseCodeRequiredOutputPayload? _$v; ResponseCodeRequiredOutputPayloadBuilder(); @@ -134,7 +145,8 @@ class ResponseCodeRequiredOutputPayloadBuilder @override void update( - void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates) { + void Function(ResponseCodeRequiredOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_config.dart index e6cd97ebb7..97e583608a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart index 8fb4a14d63..4a812b3f41 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart index 054a2f5ab9..2a9827eb29 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.dart index 7b847de663..5f6b4571ca 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart index 756848be75..c34d9ada1d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart index b6ea7c9454..37c3ad1278 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + >, _i1.HasPayload { factory SimpleScalarPropertiesInputOutput({ String? foo, @@ -46,9 +48,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -56,45 +58,44 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [SimpleScalarPropertiesInputOutputRestJson1Serializer()]; String? get foo; String? get stringValue; @@ -122,76 +123,47 @@ abstract class SimpleScalarPropertiesInputOutput @override List get props => [ - foo, - stringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + foo, + stringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('foo', foo) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @_i4.internal abstract class SimpleScalarPropertiesInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates]) = _$SimpleScalarPropertiesInputOutputPayload; + Built< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { + factory SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutputPayload; const SimpleScalarPropertiesInputOutputPayload._(); @@ -206,81 +178,54 @@ abstract class SimpleScalarPropertiesInputOutputPayload bool? get trueBooleanValue; @override List get props => [ - byteValue, - doubleValue, - falseBooleanValue, - floatValue, - integerValue, - longValue, - shortValue, - stringValue, - trueBooleanValue, - ]; + byteValue, + doubleValue, + falseBooleanValue, + floatValue, + integerValue, + longValue, + shortValue, + stringValue, + trueBooleanValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutputPayload') - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'doubleValue', - doubleValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ); + ..add('byteValue', byteValue) + ..add('doubleValue', doubleValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('floatValue', floatValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('shortValue', shortValue) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue); return helper.toString(); } } -class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class SimpleScalarPropertiesInputOutputRestJson1Serializer + extends + _i1.StructuredSmithySerializer< + SimpleScalarPropertiesInputOutputPayload + > { const SimpleScalarPropertiesInputOutputRestJson1Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - _$SimpleScalarPropertiesInputOutputPayload, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + _$SimpleScalarPropertiesInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SimpleScalarPropertiesInputOutputPayload deserialize( @@ -299,50 +244,68 @@ class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i1 } switch (key) { case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -365,79 +328,91 @@ class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i1 :longValue, :shortValue, :stringValue, - :trueBooleanValue + :trueBooleanValue, ) = object; if (byteValue != null) { result$ ..add('byteValue') - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add('DoubleDribble') - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (falseBooleanValue != null) { result$ ..add('falseBooleanValue') - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (floatValue != null) { result$ ..add('floatValue') - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add('integerValue') - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add('longValue') - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (shortValue != null) { result$ ..add('shortValue') - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add('stringValue') - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add('trueBooleanValue') - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart index e7b332a395..760a6cb211 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_scalar_properties_input_output.g.dart @@ -29,28 +29,29 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutput._( - {this.foo, - this.stringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarPropertiesInputOutput._({ + this.foo, + this.stringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -92,8 +93,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; String? _foo; @@ -166,7 +169,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -174,18 +178,20 @@ class SimpleScalarPropertiesInputOutputBuilder SimpleScalarPropertiesInputOutput build() => _build(); _$SimpleScalarPropertiesInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - foo: foo, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + foo: foo, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } @@ -212,29 +218,28 @@ class _$SimpleScalarPropertiesInputOutputPayload @override final bool? trueBooleanValue; - factory _$SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? - updates]) => + factory _$SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputPayloadBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutputPayload._( - {this.byteValue, - this.doubleValue, - this.falseBooleanValue, - this.floatValue, - this.integerValue, - this.longValue, - this.shortValue, - this.stringValue, - this.trueBooleanValue}) - : super._(); + _$SimpleScalarPropertiesInputOutputPayload._({ + this.byteValue, + this.doubleValue, + this.falseBooleanValue, + this.floatValue, + this.integerValue, + this.longValue, + this.shortValue, + this.stringValue, + this.trueBooleanValue, + }) : super._(); @override SimpleScalarPropertiesInputOutputPayload rebuild( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputPayloadBuilder toBuilder() => @@ -274,8 +279,10 @@ class _$SimpleScalarPropertiesInputOutputPayload class SimpleScalarPropertiesInputOutputPayloadBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { _$SimpleScalarPropertiesInputOutputPayload? _$v; int? _byteValue; @@ -343,7 +350,8 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -351,17 +359,19 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder SimpleScalarPropertiesInputOutputPayload build() => _build(); _$SimpleScalarPropertiesInputOutputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutputPayload._( - byteValue: byteValue, - doubleValue: doubleValue, - falseBooleanValue: falseBooleanValue, - floatValue: floatValue, - integerValue: integerValue, - longValue: longValue, - shortValue: shortValue, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue); + byteValue: byteValue, + doubleValue: doubleValue, + falseBooleanValue: falseBooleanValue, + floatValue: floatValue, + integerValue: integerValue, + longValue: longValue, + shortValue: shortValue, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart index 344e06ed75..1ccf817870 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/simple_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.simple_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,13 +14,11 @@ sealed class SimpleUnion extends _i1.SmithyUnion { const factory SimpleUnion.string(String string) = SimpleUnionString$; - const factory SimpleUnion.sdkUnknown( - String name, - Object value, - ) = SimpleUnionSdkUnknown$; + const factory SimpleUnion.sdkUnknown(String name, Object value) = + SimpleUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - SimpleUnionRestJson1Serializer() + SimpleUnionRestJson1Serializer(), ]; int? get int$ => null; @@ -34,16 +32,10 @@ sealed class SimpleUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'SimpleUnion'); if (int$ != null) { - helper.add( - r'int$', - int$, - ); + helper.add(r'int$', int$); } if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } return helper.toString(); } @@ -70,10 +62,7 @@ final class SimpleUnionString$ extends SimpleUnion { } final class SimpleUnionSdkUnknown$ extends SimpleUnion { - const SimpleUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const SimpleUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,18 +77,15 @@ class SimpleUnionRestJson1Serializer @override Iterable get types => const [ - SimpleUnion, - SimpleUnionInt$, - SimpleUnionString$, - ]; + SimpleUnion, + SimpleUnionInt$, + SimpleUnionString$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SimpleUnion deserialize( @@ -110,20 +96,17 @@ class SimpleUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'int': - return SimpleUnionInt$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return SimpleUnionInt$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'string': - return SimpleUnionString$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return SimpleUnionString$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return SimpleUnion.sdkUnknown( - key, - value, - ); + return SimpleUnion.sdkUnknown(key, value); } @override @@ -136,13 +119,13 @@ class SimpleUnionRestJson1Serializer object.name, switch (object) { SimpleUnionInt$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), SimpleUnionString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), SimpleUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart index be9653196f..e02a48d16b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.streaming_traits_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -24,15 +24,12 @@ abstract class StreamingTraitsInputOutput _i2.Stream>? blob, }) { blob ??= const _i2.Stream.empty(); - return _$StreamingTraitsInputOutput._( - foo: foo, - blob: blob, - ); + return _$StreamingTraitsInputOutput._(foo: foo, blob: blob); } - factory StreamingTraitsInputOutput.build( - [void Function(StreamingTraitsInputOutputBuilder) updates]) = - _$StreamingTraitsInputOutput; + factory StreamingTraitsInputOutput.build([ + void Function(StreamingTraitsInputOutputBuilder) updates, + ]) = _$StreamingTraitsInputOutput; const StreamingTraitsInputOutput._(); @@ -40,28 +37,26 @@ abstract class StreamingTraitsInputOutput _i2.Stream> payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StreamingTraitsInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => StreamingTraitsInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [StreamingTraitsInputOutput] from a [payload] and [response]. factory StreamingTraitsInputOutput.fromResponse( _i2.Stream> payload, _i3.AWSBaseHttpResponse response, - ) => - StreamingTraitsInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => StreamingTraitsInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>>> serializers = [ - StreamingTraitsInputOutputRestJson1Serializer() + StreamingTraitsInputOutputRestJson1Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -75,22 +70,14 @@ abstract class StreamingTraitsInputOutput _i2.Stream> getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { - final helper = newBuiltValueToStringHelper('StreamingTraitsInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + final helper = + newBuiltValueToStringHelper('StreamingTraitsInputOutput') + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -98,21 +85,18 @@ abstract class StreamingTraitsInputOutput class StreamingTraitsInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const StreamingTraitsInputOutputRestJson1Serializer() - : super('StreamingTraitsInputOutput'); + : super('StreamingTraitsInputOutput'); @override Iterable get types => const [ - StreamingTraitsInputOutput, - _$StreamingTraitsInputOutput, - ]; + StreamingTraitsInputOutput, + _$StreamingTraitsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -121,17 +105,12 @@ class StreamingTraitsInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -142,15 +121,9 @@ class StreamingTraitsInputOutputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart index 1a504b35c1..d15d26ff97 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_input_output.g.dart @@ -12,19 +12,22 @@ class _$StreamingTraitsInputOutput extends StreamingTraitsInputOutput { @override final _i2.Stream> blob; - factory _$StreamingTraitsInputOutput( - [void Function(StreamingTraitsInputOutputBuilder)? updates]) => - (new StreamingTraitsInputOutputBuilder()..update(updates))._build(); + factory _$StreamingTraitsInputOutput([ + void Function(StreamingTraitsInputOutputBuilder)? updates, + ]) => (new StreamingTraitsInputOutputBuilder()..update(updates))._build(); _$StreamingTraitsInputOutput._({this.foo, required this.blob}) : super._() { BuiltValueNullFieldError.checkNotNull( - blob, r'StreamingTraitsInputOutput', 'blob'); + blob, + r'StreamingTraitsInputOutput', + 'blob', + ); } @override StreamingTraitsInputOutput rebuild( - void Function(StreamingTraitsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StreamingTraitsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StreamingTraitsInputOutputBuilder toBuilder() => @@ -90,11 +93,16 @@ class StreamingTraitsInputOutputBuilder StreamingTraitsInputOutput build() => _build(); _$StreamingTraitsInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$StreamingTraitsInputOutput._( - foo: foo, - blob: BuiltValueNullFieldError.checkNotNull( - blob, r'StreamingTraitsInputOutput', 'blob')); + foo: foo, + blob: BuiltValueNullFieldError.checkNotNull( + blob, + r'StreamingTraitsInputOutput', + 'blob', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart index 9783f1801a..fc5b880955 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.streaming_traits_require_length_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,23 +17,22 @@ abstract class StreamingTraitsRequireLengthInput _i1.HttpInput<_i2.Stream>>, _i3.AWSEquatable implements - Built, + Built< + StreamingTraitsRequireLengthInput, + StreamingTraitsRequireLengthInputBuilder + >, _i1.HasPayload<_i2.Stream>> { factory StreamingTraitsRequireLengthInput({ String? foo, _i2.Stream>? blob, }) { blob ??= const _i2.Stream.empty(); - return _$StreamingTraitsRequireLengthInput._( - foo: foo, - blob: blob, - ); + return _$StreamingTraitsRequireLengthInput._(foo: foo, blob: blob); } - factory StreamingTraitsRequireLengthInput.build( - [void Function(StreamingTraitsRequireLengthInputBuilder) updates]) = - _$StreamingTraitsRequireLengthInput; + factory StreamingTraitsRequireLengthInput.build([ + void Function(StreamingTraitsRequireLengthInputBuilder) updates, + ]) = _$StreamingTraitsRequireLengthInput; const StreamingTraitsRequireLengthInput._(); @@ -41,16 +40,15 @@ abstract class StreamingTraitsRequireLengthInput _i2.Stream> payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StreamingTraitsRequireLengthInput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => StreamingTraitsRequireLengthInput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>>> serializers = [ - StreamingTraitsRequireLengthInputRestJson1Serializer() + StreamingTraitsRequireLengthInputRestJson1Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -64,23 +62,14 @@ abstract class StreamingTraitsRequireLengthInput _i2.Stream> getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('StreamingTraitsRequireLengthInput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -88,21 +77,18 @@ abstract class StreamingTraitsRequireLengthInput class StreamingTraitsRequireLengthInputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const StreamingTraitsRequireLengthInputRestJson1Serializer() - : super('StreamingTraitsRequireLengthInput'); + : super('StreamingTraitsRequireLengthInput'); @override Iterable get types => const [ - StreamingTraitsRequireLengthInput, - _$StreamingTraitsRequireLengthInput, - ]; + StreamingTraitsRequireLengthInput, + _$StreamingTraitsRequireLengthInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -111,17 +97,12 @@ class StreamingTraitsRequireLengthInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -132,15 +113,9 @@ class StreamingTraitsRequireLengthInputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart index 010b8dc736..17a451abdc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_require_length_input.g.dart @@ -13,21 +13,25 @@ class _$StreamingTraitsRequireLengthInput @override final _i2.Stream> blob; - factory _$StreamingTraitsRequireLengthInput( - [void Function(StreamingTraitsRequireLengthInputBuilder)? updates]) => + factory _$StreamingTraitsRequireLengthInput([ + void Function(StreamingTraitsRequireLengthInputBuilder)? updates, + ]) => (new StreamingTraitsRequireLengthInputBuilder()..update(updates)) ._build(); _$StreamingTraitsRequireLengthInput._({this.foo, required this.blob}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - blob, r'StreamingTraitsRequireLengthInput', 'blob'); + blob, + r'StreamingTraitsRequireLengthInput', + 'blob', + ); } @override StreamingTraitsRequireLengthInput rebuild( - void Function(StreamingTraitsRequireLengthInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StreamingTraitsRequireLengthInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StreamingTraitsRequireLengthInputBuilder toBuilder() => @@ -53,8 +57,10 @@ class _$StreamingTraitsRequireLengthInput class StreamingTraitsRequireLengthInputBuilder implements - Builder { + Builder< + StreamingTraitsRequireLengthInput, + StreamingTraitsRequireLengthInputBuilder + > { _$StreamingTraitsRequireLengthInput? _$v; String? _foo; @@ -87,7 +93,8 @@ class StreamingTraitsRequireLengthInputBuilder @override void update( - void Function(StreamingTraitsRequireLengthInputBuilder)? updates) { + void Function(StreamingTraitsRequireLengthInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -95,11 +102,16 @@ class StreamingTraitsRequireLengthInputBuilder StreamingTraitsRequireLengthInput build() => _build(); _$StreamingTraitsRequireLengthInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$StreamingTraitsRequireLengthInput._( - foo: foo, - blob: BuiltValueNullFieldError.checkNotNull( - blob, r'StreamingTraitsRequireLengthInput', 'blob')); + foo: foo, + blob: BuiltValueNullFieldError.checkNotNull( + blob, + r'StreamingTraitsRequireLengthInput', + 'blob', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart index 1839681fcf..d7ba2a7d5a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.streaming_traits_with_media_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,23 +17,22 @@ abstract class StreamingTraitsWithMediaTypeInputOutput _i1.HttpInput<_i2.Stream>>, _i3.AWSEquatable implements - Built, + Built< + StreamingTraitsWithMediaTypeInputOutput, + StreamingTraitsWithMediaTypeInputOutputBuilder + >, _i1.HasPayload<_i2.Stream>> { factory StreamingTraitsWithMediaTypeInputOutput({ String? foo, _i2.Stream>? blob, }) { blob ??= const _i2.Stream.empty(); - return _$StreamingTraitsWithMediaTypeInputOutput._( - foo: foo, - blob: blob, - ); + return _$StreamingTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); } - factory StreamingTraitsWithMediaTypeInputOutput.build( - [void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) - updates]) = _$StreamingTraitsWithMediaTypeInputOutput; + factory StreamingTraitsWithMediaTypeInputOutput.build([ + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) updates, + ]) = _$StreamingTraitsWithMediaTypeInputOutput; const StreamingTraitsWithMediaTypeInputOutput._(); @@ -41,28 +40,26 @@ abstract class StreamingTraitsWithMediaTypeInputOutput _i2.Stream> payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StreamingTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => StreamingTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [StreamingTraitsWithMediaTypeInputOutput] from a [payload] and [response]. factory StreamingTraitsWithMediaTypeInputOutput.fromResponse( _i2.Stream> payload, _i3.AWSBaseHttpResponse response, - ) => - StreamingTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => StreamingTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>>> serializers = [ - StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() + StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -76,23 +73,14 @@ abstract class StreamingTraitsWithMediaTypeInputOutput _i2.Stream> getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('StreamingTraitsWithMediaTypeInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -100,21 +88,18 @@ abstract class StreamingTraitsWithMediaTypeInputOutput class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Stream>> { const StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('StreamingTraitsWithMediaTypeInputOutput'); + : super('StreamingTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [ - StreamingTraitsWithMediaTypeInputOutput, - _$StreamingTraitsWithMediaTypeInputOutput, - ]; + StreamingTraitsWithMediaTypeInputOutput, + _$StreamingTraitsWithMediaTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Stream> deserialize( @@ -123,17 +108,12 @@ class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -144,15 +124,9 @@ class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer }) { return serializers.serialize( object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), )!; } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart index bb2c9e4f47..4187b5a115 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/streaming_traits_with_media_type_input_output.g.dart @@ -13,23 +13,25 @@ class _$StreamingTraitsWithMediaTypeInputOutput @override final _i2.Stream> blob; - factory _$StreamingTraitsWithMediaTypeInputOutput( - [void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? - updates]) => + factory _$StreamingTraitsWithMediaTypeInputOutput([ + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? updates, + ]) => (new StreamingTraitsWithMediaTypeInputOutputBuilder()..update(updates)) ._build(); _$StreamingTraitsWithMediaTypeInputOutput._({this.foo, required this.blob}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - blob, r'StreamingTraitsWithMediaTypeInputOutput', 'blob'); + blob, + r'StreamingTraitsWithMediaTypeInputOutput', + 'blob', + ); } @override StreamingTraitsWithMediaTypeInputOutput rebuild( - void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StreamingTraitsWithMediaTypeInputOutputBuilder toBuilder() => @@ -55,8 +57,10 @@ class _$StreamingTraitsWithMediaTypeInputOutput class StreamingTraitsWithMediaTypeInputOutputBuilder implements - Builder { + Builder< + StreamingTraitsWithMediaTypeInputOutput, + StreamingTraitsWithMediaTypeInputOutputBuilder + > { _$StreamingTraitsWithMediaTypeInputOutput? _$v; String? _foo; @@ -89,7 +93,8 @@ class StreamingTraitsWithMediaTypeInputOutputBuilder @override void update( - void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? updates) { + void Function(StreamingTraitsWithMediaTypeInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -97,11 +102,16 @@ class StreamingTraitsWithMediaTypeInputOutputBuilder StreamingTraitsWithMediaTypeInputOutput build() => _build(); _$StreamingTraitsWithMediaTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$StreamingTraitsWithMediaTypeInputOutput._( - foo: foo, - blob: BuiltValueNullFieldError.checkNotNull( - blob, r'StreamingTraitsWithMediaTypeInputOutput', 'blob')); + foo: foo, + blob: BuiltValueNullFieldError.checkNotNull( + blob, + r'StreamingTraitsWithMediaTypeInputOutput', + 'blob', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_enum.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_enum.dart index 88d9bbb43b..fb17a9606f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_enum.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_enum.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.string_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class StringEnum extends _i1.SmithyEnum { - const StringEnum._( - super.index, - super.name, - super.value, - ); + const StringEnum._(super.index, super.name, super.value); const StringEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const v = StringEnum._( - 0, - 'V', - 'enumvalue', - ); + static const v = StringEnum._(0, 'V', 'enumvalue'); /// All values of [StringEnum]. static const values = [StringEnum.v]; @@ -29,12 +21,9 @@ class StringEnum extends _i1.SmithyEnum { values: values, sdkUnknown: StringEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart index f1eee7dad0..7aabeed0db 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.string_payload_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class StringPayloadInput return _$StringPayloadInput._(payload: payload); } - factory StringPayloadInput.build( - [void Function(StringPayloadInputBuilder) updates]) = - _$StringPayloadInput; + factory StringPayloadInput.build([ + void Function(StringPayloadInputBuilder) updates, + ]) = _$StringPayloadInput; const StringPayloadInput._(); @@ -29,22 +29,20 @@ abstract class StringPayloadInput String? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - StringPayloadInput.build((b) { - b.payload = payload; - }); + }) => StringPayloadInput.build((b) { + b.payload = payload; + }); /// Constructs a [StringPayloadInput] from a [payload] and [response]. factory StringPayloadInput.fromResponse( String? payload, _i2.AWSBaseHttpResponse response, - ) => - StringPayloadInput.build((b) { - b.payload = payload; - }); + ) => StringPayloadInput.build((b) { + b.payload = payload; + }); static const List<_i1.SmithySerializer> serializers = [ - StringPayloadInputRestJson1Serializer() + StringPayloadInputRestJson1Serializer(), ]; String? get payload; @@ -57,10 +55,7 @@ abstract class StringPayloadInput @override String toString() { final helper = newBuiltValueToStringHelper('StringPayloadInput') - ..add( - 'payload', - payload, - ); + ..add('payload', payload); return helper.toString(); } } @@ -70,18 +65,12 @@ class StringPayloadInputRestJson1Serializer const StringPayloadInputRestJson1Serializer() : super('StringPayloadInput'); @override - Iterable get types => const [ - StringPayloadInput, - _$StringPayloadInput, - ]; + Iterable get types => const [StringPayloadInput, _$StringPayloadInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override String deserialize( @@ -90,9 +79,10 @@ class StringPayloadInputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(String), - ) as String); + serialized, + specifiedType: const FullType(String), + ) + as String); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart index 18c39f5a09..b459b31e64 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/string_payload_input.g.dart @@ -10,16 +10,16 @@ class _$StringPayloadInput extends StringPayloadInput { @override final String? payload; - factory _$StringPayloadInput( - [void Function(StringPayloadInputBuilder)? updates]) => - (new StringPayloadInputBuilder()..update(updates))._build(); + factory _$StringPayloadInput([ + void Function(StringPayloadInputBuilder)? updates, + ]) => (new StringPayloadInputBuilder()..update(updates))._build(); _$StringPayloadInput._({this.payload}) : super._(); @override StringPayloadInput rebuild( - void Function(StringPayloadInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StringPayloadInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StringPayloadInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart index a541b9c873..647d9fc7e8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberRestJson1Serializer() + StructureListMemberRestJson1Serializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberRestJson1Serializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StructureListMember deserialize( @@ -91,15 +74,19 @@ class StructureListMemberRestJson1Serializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -117,18 +104,12 @@ class StructureListMemberRestJson1Serializer if (a != null) { result$ ..add('value') - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add('other') - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart index 622c4016c7..42e3382c9f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.test_body_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class TestBodyStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + TestBodyStructureInputOutput, + TestBodyStructureInputOutputBuilder + >, _i1.HasPayload { factory TestBodyStructureInputOutput({ String? testId, @@ -30,9 +32,9 @@ abstract class TestBodyStructureInputOutput ); } - factory TestBodyStructureInputOutput.build( - [void Function(TestBodyStructureInputOutputBuilder) updates]) = - _$TestBodyStructureInputOutput; + factory TestBodyStructureInputOutput.build([ + void Function(TestBodyStructureInputOutputBuilder) updates, + ]) = _$TestBodyStructureInputOutput; const TestBodyStructureInputOutput._(); @@ -40,32 +42,30 @@ abstract class TestBodyStructureInputOutput TestBodyStructureInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestBodyStructureInputOutput.build((b) { - if (payload.testConfig != null) { - b.testConfig.replace(payload.testConfig!); - } - if (request.headers['x-amz-test-id'] != null) { - b.testId = request.headers['x-amz-test-id']!; - } - }); + }) => TestBodyStructureInputOutput.build((b) { + if (payload.testConfig != null) { + b.testConfig.replace(payload.testConfig!); + } + if (request.headers['x-amz-test-id'] != null) { + b.testId = request.headers['x-amz-test-id']!; + } + }); /// Constructs a [TestBodyStructureInputOutput] from a [payload] and [response]. factory TestBodyStructureInputOutput.fromResponse( TestBodyStructureInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TestBodyStructureInputOutput.build((b) { - if (payload.testConfig != null) { - b.testConfig.replace(payload.testConfig!); - } - if (response.headers['x-amz-test-id'] != null) { - b.testId = response.headers['x-amz-test-id']!; - } - }); + ) => TestBodyStructureInputOutput.build((b) { + if (payload.testConfig != null) { + b.testConfig.replace(payload.testConfig!); + } + if (response.headers['x-amz-test-id'] != null) { + b.testId = response.headers['x-amz-test-id']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [TestBodyStructureInputOutputRestJson1Serializer()]; + serializers = [TestBodyStructureInputOutputRestJson1Serializer()]; String? get testId; TestConfig? get testConfig; @@ -78,36 +78,29 @@ abstract class TestBodyStructureInputOutput }); @override - List get props => [ - testId, - testConfig, - ]; + List get props => [testId, testConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('TestBodyStructureInputOutput') - ..add( - 'testId', - testId, - ) - ..add( - 'testConfig', - testConfig, - ); + final helper = + newBuiltValueToStringHelper('TestBodyStructureInputOutput') + ..add('testId', testId) + ..add('testConfig', testConfig); return helper.toString(); } } @_i3.internal abstract class TestBodyStructureInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory TestBodyStructureInputOutputPayload( - [void Function(TestBodyStructureInputOutputPayloadBuilder) updates]) = - _$TestBodyStructureInputOutputPayload; + Built< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutputPayloadBuilder + > { + factory TestBodyStructureInputOutputPayload([ + void Function(TestBodyStructureInputOutputPayloadBuilder) updates, + ]) = _$TestBodyStructureInputOutputPayload; const TestBodyStructureInputOutputPayload._(); @@ -117,36 +110,31 @@ abstract class TestBodyStructureInputOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TestBodyStructureInputOutputPayload') - ..add( - 'testConfig', - testConfig, - ); + final helper = newBuiltValueToStringHelper( + 'TestBodyStructureInputOutputPayload', + )..add('testConfig', testConfig); return helper.toString(); } } -class TestBodyStructureInputOutputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class TestBodyStructureInputOutputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const TestBodyStructureInputOutputRestJson1Serializer() - : super('TestBodyStructureInputOutput'); + : super('TestBodyStructureInputOutput'); @override Iterable get types => const [ - TestBodyStructureInputOutput, - _$TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - _$TestBodyStructureInputOutputPayload, - ]; + TestBodyStructureInputOutput, + _$TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + _$TestBodyStructureInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestBodyStructureInputOutputPayload deserialize( @@ -165,10 +153,13 @@ class TestBodyStructureInputOutputRestJson1Serializer extends _i1 } switch (key) { case 'testConfig': - result.testConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(TestConfig), - ) as TestConfig)); + result.testConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(TestConfig), + ) + as TestConfig), + ); } } @@ -186,10 +177,12 @@ class TestBodyStructureInputOutputRestJson1Serializer extends _i1 if (testConfig != null) { result$ ..add('testConfig') - ..add(serializers.serialize( - testConfig, - specifiedType: const FullType(TestConfig), - )); + ..add( + serializers.serialize( + testConfig, + specifiedType: const FullType(TestConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart index 3901fdbf51..9d267ad0d5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_body_structure_input_output.g.dart @@ -12,16 +12,16 @@ class _$TestBodyStructureInputOutput extends TestBodyStructureInputOutput { @override final TestConfig? testConfig; - factory _$TestBodyStructureInputOutput( - [void Function(TestBodyStructureInputOutputBuilder)? updates]) => - (new TestBodyStructureInputOutputBuilder()..update(updates))._build(); + factory _$TestBodyStructureInputOutput([ + void Function(TestBodyStructureInputOutputBuilder)? updates, + ]) => (new TestBodyStructureInputOutputBuilder()..update(updates))._build(); _$TestBodyStructureInputOutput._({this.testId, this.testConfig}) : super._(); @override TestBodyStructureInputOutput rebuild( - void Function(TestBodyStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestBodyStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestBodyStructureInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$TestBodyStructureInputOutput extends TestBodyStructureInputOutput { class TestBodyStructureInputOutputBuilder implements - Builder { + Builder< + TestBodyStructureInputOutput, + TestBodyStructureInputOutputBuilder + > { _$TestBodyStructureInputOutput? _$v; String? _testId; @@ -90,9 +92,12 @@ class TestBodyStructureInputOutputBuilder _$TestBodyStructureInputOutput _build() { _$TestBodyStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$TestBodyStructureInputOutput._( - testId: testId, testConfig: _testConfig?.build()); + testId: testId, + testConfig: _testConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -100,7 +105,10 @@ class TestBodyStructureInputOutputBuilder _testConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'TestBodyStructureInputOutput', _$failedField, e.toString()); + r'TestBodyStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -114,9 +122,9 @@ class _$TestBodyStructureInputOutputPayload @override final TestConfig? testConfig; - factory _$TestBodyStructureInputOutputPayload( - [void Function(TestBodyStructureInputOutputPayloadBuilder)? - updates]) => + factory _$TestBodyStructureInputOutputPayload([ + void Function(TestBodyStructureInputOutputPayloadBuilder)? updates, + ]) => (new TestBodyStructureInputOutputPayloadBuilder()..update(updates)) ._build(); @@ -124,8 +132,8 @@ class _$TestBodyStructureInputOutputPayload @override TestBodyStructureInputOutputPayload rebuild( - void Function(TestBodyStructureInputOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestBodyStructureInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestBodyStructureInputOutputPayloadBuilder toBuilder() => @@ -149,8 +157,10 @@ class _$TestBodyStructureInputOutputPayload class TestBodyStructureInputOutputPayloadBuilder implements - Builder { + Builder< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutputPayloadBuilder + > { _$TestBodyStructureInputOutputPayload? _$v; TestConfigBuilder? _testConfig; @@ -178,7 +188,8 @@ class TestBodyStructureInputOutputPayloadBuilder @override void update( - void Function(TestBodyStructureInputOutputPayloadBuilder)? updates) { + void Function(TestBodyStructureInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -188,9 +199,11 @@ class TestBodyStructureInputOutputPayloadBuilder _$TestBodyStructureInputOutputPayload _build() { _$TestBodyStructureInputOutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$TestBodyStructureInputOutputPayload._( - testConfig: _testConfig?.build()); + testConfig: _testConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -198,9 +211,10 @@ class TestBodyStructureInputOutputPayloadBuilder _testConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'TestBodyStructureInputOutputPayload', - _$failedField, - e.toString()); + r'TestBodyStructureInputOutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_config.dart index 583b66d150..9ada4fe625 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.test_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class TestConfig const TestConfig._(); static const List<_i2.SmithySerializer> serializers = [ - TestConfigRestJson1Serializer() + TestConfigRestJson1Serializer(), ]; int? get timeout; @@ -33,10 +33,7 @@ abstract class TestConfig @override String toString() { final helper = newBuiltValueToStringHelper('TestConfig') - ..add( - 'timeout', - timeout, - ); + ..add('timeout', timeout); return helper.toString(); } } @@ -46,18 +43,12 @@ class TestConfigRestJson1Serializer const TestConfigRestJson1Serializer() : super('TestConfig'); @override - Iterable get types => const [ - TestConfig, - _$TestConfig, - ]; + Iterable get types => const [TestConfig, _$TestConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestConfig deserialize( @@ -76,10 +67,12 @@ class TestConfigRestJson1Serializer } switch (key) { case 'timeout': - result.timeout = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.timeout = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -97,10 +90,9 @@ class TestConfigRestJson1Serializer if (timeout != null) { result$ ..add('timeout') - ..add(serializers.serialize( - timeout, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(timeout, specifiedType: const FullType(int)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart index 45b0430650..d57b384776 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.test_no_payload_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class TestNoPayloadInputOutput return _$TestNoPayloadInputOutput._(testId: testId); } - factory TestNoPayloadInputOutput.build( - [void Function(TestNoPayloadInputOutputBuilder) updates]) = - _$TestNoPayloadInputOutput; + factory TestNoPayloadInputOutput.build([ + void Function(TestNoPayloadInputOutputBuilder) updates, + ]) = _$TestNoPayloadInputOutput; const TestNoPayloadInputOutput._(); @@ -33,26 +33,24 @@ abstract class TestNoPayloadInputOutput TestNoPayloadInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestNoPayloadInputOutput.build((b) { - if (request.headers['X-Amz-Test-Id'] != null) { - b.testId = request.headers['X-Amz-Test-Id']!; - } - }); + }) => TestNoPayloadInputOutput.build((b) { + if (request.headers['X-Amz-Test-Id'] != null) { + b.testId = request.headers['X-Amz-Test-Id']!; + } + }); /// Constructs a [TestNoPayloadInputOutput] from a [payload] and [response]. factory TestNoPayloadInputOutput.fromResponse( TestNoPayloadInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TestNoPayloadInputOutput.build((b) { - if (response.headers['X-Amz-Test-Id'] != null) { - b.testId = response.headers['X-Amz-Test-Id']!; - } - }); + ) => TestNoPayloadInputOutput.build((b) { + if (response.headers['X-Amz-Test-Id'] != null) { + b.testId = response.headers['X-Amz-Test-Id']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [TestNoPayloadInputOutputRestJson1Serializer()]; + serializers = [TestNoPayloadInputOutputRestJson1Serializer()]; String? get testId; @override @@ -65,25 +63,23 @@ abstract class TestNoPayloadInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('TestNoPayloadInputOutput') - ..add( - 'testId', - testId, - ); + ..add('testId', testId); return helper.toString(); } } @_i3.internal abstract class TestNoPayloadInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutputPayloadBuilder + >, _i1.EmptyPayload { - factory TestNoPayloadInputOutputPayload( - [void Function(TestNoPayloadInputOutputPayloadBuilder) updates]) = - _$TestNoPayloadInputOutputPayload; + factory TestNoPayloadInputOutputPayload([ + void Function(TestNoPayloadInputOutputPayloadBuilder) updates, + ]) = _$TestNoPayloadInputOutputPayload; const TestNoPayloadInputOutputPayload._(); @@ -92,8 +88,9 @@ abstract class TestNoPayloadInputOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TestNoPayloadInputOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'TestNoPayloadInputOutputPayload', + ); return helper.toString(); } } @@ -101,23 +98,20 @@ abstract class TestNoPayloadInputOutputPayload class TestNoPayloadInputOutputRestJson1Serializer extends _i1.StructuredSmithySerializer { const TestNoPayloadInputOutputRestJson1Serializer() - : super('TestNoPayloadInputOutput'); + : super('TestNoPayloadInputOutput'); @override Iterable get types => const [ - TestNoPayloadInputOutput, - _$TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - _$TestNoPayloadInputOutputPayload, - ]; + TestNoPayloadInputOutput, + _$TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + _$TestNoPayloadInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestNoPayloadInputOutputPayload deserialize( @@ -133,6 +127,5 @@ class TestNoPayloadInputOutputRestJson1Serializer Serializers serializers, TestNoPayloadInputOutputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart index de46af1ea3..d438419b45 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_no_payload_input_output.g.dart @@ -10,16 +10,16 @@ class _$TestNoPayloadInputOutput extends TestNoPayloadInputOutput { @override final String? testId; - factory _$TestNoPayloadInputOutput( - [void Function(TestNoPayloadInputOutputBuilder)? updates]) => - (new TestNoPayloadInputOutputBuilder()..update(updates))._build(); + factory _$TestNoPayloadInputOutput([ + void Function(TestNoPayloadInputOutputBuilder)? updates, + ]) => (new TestNoPayloadInputOutputBuilder()..update(updates))._build(); _$TestNoPayloadInputOutput._({this.testId}) : super._(); @override TestNoPayloadInputOutput rebuild( - void Function(TestNoPayloadInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestNoPayloadInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestNoPayloadInputOutputBuilder toBuilder() => @@ -83,16 +83,17 @@ class TestNoPayloadInputOutputBuilder class _$TestNoPayloadInputOutputPayload extends TestNoPayloadInputOutputPayload { - factory _$TestNoPayloadInputOutputPayload( - [void Function(TestNoPayloadInputOutputPayloadBuilder)? updates]) => + factory _$TestNoPayloadInputOutputPayload([ + void Function(TestNoPayloadInputOutputPayloadBuilder)? updates, + ]) => (new TestNoPayloadInputOutputPayloadBuilder()..update(updates))._build(); _$TestNoPayloadInputOutputPayload._() : super._(); @override TestNoPayloadInputOutputPayload rebuild( - void Function(TestNoPayloadInputOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestNoPayloadInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestNoPayloadInputOutputPayloadBuilder toBuilder() => @@ -112,8 +113,10 @@ class _$TestNoPayloadInputOutputPayload class TestNoPayloadInputOutputPayloadBuilder implements - Builder { + Builder< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutputPayloadBuilder + > { _$TestNoPayloadInputOutputPayload? _$v; TestNoPayloadInputOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart index d8aa32f2b4..9a1d4b7e9a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.test_payload_blob_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,15 +23,12 @@ abstract class TestPayloadBlobInputOutput String? contentType, _i2.Uint8List? data, }) { - return _$TestPayloadBlobInputOutput._( - contentType: contentType, - data: data, - ); + return _$TestPayloadBlobInputOutput._(contentType: contentType, data: data); } - factory TestPayloadBlobInputOutput.build( - [void Function(TestPayloadBlobInputOutputBuilder) updates]) = - _$TestPayloadBlobInputOutput; + factory TestPayloadBlobInputOutput.build([ + void Function(TestPayloadBlobInputOutputBuilder) updates, + ]) = _$TestPayloadBlobInputOutput; const TestPayloadBlobInputOutput._(); @@ -39,28 +36,26 @@ abstract class TestPayloadBlobInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestPayloadBlobInputOutput.build((b) { - b.data = payload; - if (request.headers['Content-Type'] != null) { - b.contentType = request.headers['Content-Type']!; - } - }); + }) => TestPayloadBlobInputOutput.build((b) { + b.data = payload; + if (request.headers['Content-Type'] != null) { + b.contentType = request.headers['Content-Type']!; + } + }); /// Constructs a [TestPayloadBlobInputOutput] from a [payload] and [response]. factory TestPayloadBlobInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - TestPayloadBlobInputOutput.build((b) { - b.data = payload; - if (response.headers['Content-Type'] != null) { - b.contentType = response.headers['Content-Type']!; - } - }); + ) => TestPayloadBlobInputOutput.build((b) { + b.data = payload; + if (response.headers['Content-Type'] != null) { + b.contentType = response.headers['Content-Type']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - TestPayloadBlobInputOutputRestJson1Serializer() + TestPayloadBlobInputOutputRestJson1Serializer(), ]; String? get contentType; @@ -69,22 +64,14 @@ abstract class TestPayloadBlobInputOutput _i2.Uint8List? getPayload() => data; @override - List get props => [ - contentType, - data, - ]; + List get props => [contentType, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('TestPayloadBlobInputOutput') - ..add( - 'contentType', - contentType, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('TestPayloadBlobInputOutput') + ..add('contentType', contentType) + ..add('data', data); return helper.toString(); } } @@ -92,21 +79,18 @@ abstract class TestPayloadBlobInputOutput class TestPayloadBlobInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const TestPayloadBlobInputOutputRestJson1Serializer() - : super('TestPayloadBlobInputOutput'); + : super('TestPayloadBlobInputOutput'); @override Iterable get types => const [ - TestPayloadBlobInputOutput, - _$TestPayloadBlobInputOutput, - ]; + TestPayloadBlobInputOutput, + _$TestPayloadBlobInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override _i2.Uint8List deserialize( @@ -115,9 +99,10 @@ class TestPayloadBlobInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart index 35452922ab..59aa922380 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_blob_input_output.g.dart @@ -12,16 +12,16 @@ class _$TestPayloadBlobInputOutput extends TestPayloadBlobInputOutput { @override final _i2.Uint8List? data; - factory _$TestPayloadBlobInputOutput( - [void Function(TestPayloadBlobInputOutputBuilder)? updates]) => - (new TestPayloadBlobInputOutputBuilder()..update(updates))._build(); + factory _$TestPayloadBlobInputOutput([ + void Function(TestPayloadBlobInputOutputBuilder)? updates, + ]) => (new TestPayloadBlobInputOutputBuilder()..update(updates))._build(); _$TestPayloadBlobInputOutput._({this.contentType, this.data}) : super._(); @override TestPayloadBlobInputOutput rebuild( - void Function(TestPayloadBlobInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestPayloadBlobInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestPayloadBlobInputOutputBuilder toBuilder() => @@ -85,9 +85,12 @@ class TestPayloadBlobInputOutputBuilder TestPayloadBlobInputOutput build() => _build(); _$TestPayloadBlobInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TestPayloadBlobInputOutput._( - contentType: contentType, data: data); + contentType: contentType, + data: data, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart index 3b0b00afed..47e2f315e6 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.test_payload_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class TestPayloadStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + TestPayloadStructureInputOutput, + TestPayloadStructureInputOutputBuilder + >, _i1.HasPayload { factory TestPayloadStructureInputOutput({ String? testId, @@ -29,9 +31,9 @@ abstract class TestPayloadStructureInputOutput ); } - factory TestPayloadStructureInputOutput.build( - [void Function(TestPayloadStructureInputOutputBuilder) updates]) = - _$TestPayloadStructureInputOutput; + factory TestPayloadStructureInputOutput.build([ + void Function(TestPayloadStructureInputOutputBuilder) updates, + ]) = _$TestPayloadStructureInputOutput; const TestPayloadStructureInputOutput._(); @@ -39,32 +41,30 @@ abstract class TestPayloadStructureInputOutput PayloadConfig? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TestPayloadStructureInputOutput.build((b) { - if (payload != null) { - b.payloadConfig.replace(payload); - } - if (request.headers['x-amz-test-id'] != null) { - b.testId = request.headers['x-amz-test-id']!; - } - }); + }) => TestPayloadStructureInputOutput.build((b) { + if (payload != null) { + b.payloadConfig.replace(payload); + } + if (request.headers['x-amz-test-id'] != null) { + b.testId = request.headers['x-amz-test-id']!; + } + }); /// Constructs a [TestPayloadStructureInputOutput] from a [payload] and [response]. factory TestPayloadStructureInputOutput.fromResponse( PayloadConfig? payload, _i2.AWSBaseHttpResponse response, - ) => - TestPayloadStructureInputOutput.build((b) { - if (payload != null) { - b.payloadConfig.replace(payload); - } - if (response.headers['x-amz-test-id'] != null) { - b.testId = response.headers['x-amz-test-id']!; - } - }); + ) => TestPayloadStructureInputOutput.build((b) { + if (payload != null) { + b.payloadConfig.replace(payload); + } + if (response.headers['x-amz-test-id'] != null) { + b.testId = response.headers['x-amz-test-id']!; + } + }); static const List<_i1.SmithySerializer> serializers = [ - TestPayloadStructureInputOutputRestJson1Serializer() + TestPayloadStructureInputOutputRestJson1Serializer(), ]; String? get testId; @@ -73,23 +73,14 @@ abstract class TestPayloadStructureInputOutput PayloadConfig? getPayload() => payloadConfig ?? PayloadConfig(); @override - List get props => [ - testId, - payloadConfig, - ]; + List get props => [testId, payloadConfig]; @override String toString() { final helper = newBuiltValueToStringHelper('TestPayloadStructureInputOutput') - ..add( - 'testId', - testId, - ) - ..add( - 'payloadConfig', - payloadConfig, - ); + ..add('testId', testId) + ..add('payloadConfig', payloadConfig); return helper.toString(); } } @@ -97,21 +88,18 @@ abstract class TestPayloadStructureInputOutput class TestPayloadStructureInputOutputRestJson1Serializer extends _i1.PrimitiveSmithySerializer { const TestPayloadStructureInputOutputRestJson1Serializer() - : super('TestPayloadStructureInputOutput'); + : super('TestPayloadStructureInputOutput'); @override Iterable get types => const [ - TestPayloadStructureInputOutput, - _$TestPayloadStructureInputOutput, - ]; + TestPayloadStructureInputOutput, + _$TestPayloadStructureInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PayloadConfig deserialize( @@ -120,9 +108,10 @@ class TestPayloadStructureInputOutputRestJson1Serializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(PayloadConfig), - ) as PayloadConfig); + serialized, + specifiedType: const FullType(PayloadConfig), + ) + as PayloadConfig); } @override diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart index 8f4099baf5..caa4e6ff70 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/test_payload_structure_input_output.g.dart @@ -13,17 +13,18 @@ class _$TestPayloadStructureInputOutput @override final PayloadConfig? payloadConfig; - factory _$TestPayloadStructureInputOutput( - [void Function(TestPayloadStructureInputOutputBuilder)? updates]) => + factory _$TestPayloadStructureInputOutput([ + void Function(TestPayloadStructureInputOutputBuilder)? updates, + ]) => (new TestPayloadStructureInputOutputBuilder()..update(updates))._build(); _$TestPayloadStructureInputOutput._({this.testId, this.payloadConfig}) - : super._(); + : super._(); @override TestPayloadStructureInputOutput rebuild( - void Function(TestPayloadStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TestPayloadStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TestPayloadStructureInputOutputBuilder toBuilder() => @@ -49,8 +50,10 @@ class _$TestPayloadStructureInputOutput class TestPayloadStructureInputOutputBuilder implements - Builder { + Builder< + TestPayloadStructureInputOutput, + TestPayloadStructureInputOutputBuilder + > { _$TestPayloadStructureInputOutput? _$v; String? _testId; @@ -92,9 +95,12 @@ class TestPayloadStructureInputOutputBuilder _$TestPayloadStructureInputOutput _build() { _$TestPayloadStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$TestPayloadStructureInputOutput._( - testId: testId, payloadConfig: _payloadConfig?.build()); + testId: testId, + payloadConfig: _payloadConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -102,7 +108,10 @@ class TestPayloadStructureInputOutputBuilder _payloadConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'TestPayloadStructureInputOutput', _$failedField, e.toString()); + r'TestPayloadStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart index 6c9688ebd4..840eff5253 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.timestamp_format_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,9 +39,9 @@ abstract class TimestampFormatHeadersIo ); } - factory TimestampFormatHeadersIo.build( - [void Function(TimestampFormatHeadersIoBuilder) updates]) = - _$TimestampFormatHeadersIo; + factory TimestampFormatHeadersIo.build([ + void Function(TimestampFormatHeadersIoBuilder) updates, + ]) = _$TimestampFormatHeadersIo; const TimestampFormatHeadersIo._(); @@ -49,104 +49,116 @@ abstract class TimestampFormatHeadersIo TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TimestampFormatHeadersIo.build((b) { - if (request.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => TimestampFormatHeadersIo.build((b) { + if (request.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( request.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( request.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (request.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( request.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (request.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( request.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( request.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); /// Constructs a [TimestampFormatHeadersIo] from a [payload] and [response]. factory TimestampFormatHeadersIo.fromResponse( TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.build((b) { - if (response.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + ) => TimestampFormatHeadersIo.build((b) { + if (response.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( response.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( response.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (response.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (response.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( response.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (response.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( response.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( response.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [TimestampFormatHeadersIoRestJson1Serializer()]; + serializers = [TimestampFormatHeadersIoRestJson1Serializer()]; DateTime? get memberEpochSeconds; DateTime? get memberHttpDate; @@ -161,61 +173,42 @@ abstract class TimestampFormatHeadersIo @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('TimestampFormatHeadersIo') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper('TimestampFormatHeadersIo') + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class TimestampFormatHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder) updates]) = - _$TimestampFormatHeadersIoPayload; + factory TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ]) = _$TimestampFormatHeadersIoPayload; const TimestampFormatHeadersIoPayload._(); @@ -224,8 +217,9 @@ abstract class TimestampFormatHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TimestampFormatHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'TimestampFormatHeadersIoPayload', + ); return helper.toString(); } } @@ -233,23 +227,20 @@ abstract class TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoRestJson1Serializer extends _i1.StructuredSmithySerializer { const TimestampFormatHeadersIoRestJson1Serializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [ - TimestampFormatHeadersIo, - _$TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - _$TimestampFormatHeadersIoPayload, - ]; + TimestampFormatHeadersIo, + _$TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + _$TimestampFormatHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TimestampFormatHeadersIoPayload deserialize( @@ -265,6 +256,5 @@ class TimestampFormatHeadersIoRestJson1Serializer Serializers serializers, TimestampFormatHeadersIoPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart index f1498c3462..1e275a6d7c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/timestamp_format_headers_io.g.dart @@ -22,24 +22,24 @@ class _$TimestampFormatHeadersIo extends TimestampFormatHeadersIo { @override final DateTime? targetDateTime; - factory _$TimestampFormatHeadersIo( - [void Function(TimestampFormatHeadersIoBuilder)? updates]) => - (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); + factory _$TimestampFormatHeadersIo([ + void Function(TimestampFormatHeadersIoBuilder)? updates, + ]) => (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); - _$TimestampFormatHeadersIo._( - {this.memberEpochSeconds, - this.memberHttpDate, - this.memberDateTime, - this.defaultFormat, - this.targetEpochSeconds, - this.targetHttpDate, - this.targetDateTime}) - : super._(); + _$TimestampFormatHeadersIo._({ + this.memberEpochSeconds, + this.memberHttpDate, + this.memberDateTime, + this.defaultFormat, + this.targetEpochSeconds, + this.targetHttpDate, + this.targetDateTime, + }) : super._(); @override TimestampFormatHeadersIo rebuild( - void Function(TimestampFormatHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoBuilder toBuilder() => @@ -145,15 +145,17 @@ class TimestampFormatHeadersIoBuilder TimestampFormatHeadersIo build() => _build(); _$TimestampFormatHeadersIo _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TimestampFormatHeadersIo._( - memberEpochSeconds: memberEpochSeconds, - memberHttpDate: memberHttpDate, - memberDateTime: memberDateTime, - defaultFormat: defaultFormat, - targetEpochSeconds: targetEpochSeconds, - targetHttpDate: targetHttpDate, - targetDateTime: targetDateTime); + memberEpochSeconds: memberEpochSeconds, + memberHttpDate: memberHttpDate, + memberDateTime: memberDateTime, + defaultFormat: defaultFormat, + targetEpochSeconds: targetEpochSeconds, + targetHttpDate: targetHttpDate, + targetDateTime: targetDateTime, + ); replace(_$result); return _$result; } @@ -161,16 +163,17 @@ class TimestampFormatHeadersIoBuilder class _$TimestampFormatHeadersIoPayload extends TimestampFormatHeadersIoPayload { - factory _$TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder)? updates]) => + factory _$TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder)? updates, + ]) => (new TimestampFormatHeadersIoPayloadBuilder()..update(updates))._build(); _$TimestampFormatHeadersIoPayload._() : super._(); @override TimestampFormatHeadersIoPayload rebuild( - void Function(TimestampFormatHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoPayloadBuilder toBuilder() => @@ -190,8 +193,10 @@ class _$TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoPayloadBuilder implements - Builder { + Builder< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + > { _$TimestampFormatHeadersIoPayload? _$v; TimestampFormatHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart index edca9d2600..0dd8becf26 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.union_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,8 +21,9 @@ abstract class UnionInputOutput } /// A shared structure that contains a single union member. - factory UnionInputOutput.build( - [void Function(UnionInputOutputBuilder) updates]) = _$UnionInputOutput; + factory UnionInputOutput.build([ + void Function(UnionInputOutputBuilder) updates, + ]) = _$UnionInputOutput; const UnionInputOutput._(); @@ -30,18 +31,16 @@ abstract class UnionInputOutput UnionInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [UnionInputOutput] from a [payload] and [response]. factory UnionInputOutput.fromResponse( UnionInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - UnionInputOutputRestJson1Serializer() + UnionInputOutputRestJson1Serializer(), ]; /// A union with a representative set of types for members. @@ -55,10 +54,7 @@ abstract class UnionInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('UnionInputOutput') - ..add( - 'contents', - contents, - ); + ..add('contents', contents); return helper.toString(); } } @@ -68,18 +64,12 @@ class UnionInputOutputRestJson1Serializer const UnionInputOutputRestJson1Serializer() : super('UnionInputOutput'); @override - Iterable get types => const [ - UnionInputOutput, - _$UnionInputOutput, - ]; + Iterable get types => const [UnionInputOutput, _$UnionInputOutput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnionInputOutput deserialize( @@ -98,10 +88,12 @@ class UnionInputOutputRestJson1Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } @@ -119,10 +111,12 @@ class UnionInputOutputRestJson1Serializer if (contents != null) { result$ ..add('contents') - ..add(serializers.serialize( - contents, - specifiedType: const FullType(MyUnion), - )); + ..add( + serializers.serialize( + contents, + specifiedType: const FullType(MyUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart index 9011ed9795..50563b878c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_input_output.g.dart @@ -10,9 +10,9 @@ class _$UnionInputOutput extends UnionInputOutput { @override final MyUnion? contents; - factory _$UnionInputOutput( - [void Function(UnionInputOutputBuilder)? updates]) => - (new UnionInputOutputBuilder()..update(updates))._build(); + factory _$UnionInputOutput([ + void Function(UnionInputOutputBuilder)? updates, + ]) => (new UnionInputOutputBuilder()..update(updates))._build(); _$UnionInputOutput._({this.contents}) : super._(); diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart index fa6aa50e7a..1aae272a17 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/union_with_json_name.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.model.union_with_json_name; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,13 +16,11 @@ sealed class UnionWithJsonName extends _i1.SmithyUnion { const factory UnionWithJsonName.baz(String baz) = UnionWithJsonNameBaz$; - const factory UnionWithJsonName.sdkUnknown( - String name, - Object value, - ) = UnionWithJsonNameSdkUnknown$; + const factory UnionWithJsonName.sdkUnknown(String name, Object value) = + UnionWithJsonNameSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - UnionWithJsonNameRestJson1Serializer() + UnionWithJsonNameRestJson1Serializer(), ]; String? get foo => null; @@ -38,22 +36,13 @@ sealed class UnionWithJsonName extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'UnionWithJsonName'); if (foo != null) { - helper.add( - r'foo', - foo, - ); + helper.add(r'foo', foo); } if (bar != null) { - helper.add( - r'bar', - bar, - ); + helper.add(r'bar', bar); } if (baz != null) { - helper.add( - r'baz', - baz, - ); + helper.add(r'baz', baz); } return helper.toString(); } @@ -90,10 +79,7 @@ final class UnionWithJsonNameBaz$ extends UnionWithJsonName { } final class UnionWithJsonNameSdkUnknown$ extends UnionWithJsonName { - const UnionWithJsonNameSdkUnknown$( - this.name, - this.value, - ) : super._(); + const UnionWithJsonNameSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -108,19 +94,16 @@ class UnionWithJsonNameRestJson1Serializer @override Iterable get types => const [ - UnionWithJsonName, - UnionWithJsonNameFoo$, - UnionWithJsonNameBar$, - UnionWithJsonNameBaz$, - ]; + UnionWithJsonName, + UnionWithJsonNameFoo$, + UnionWithJsonNameBar$, + UnionWithJsonNameBaz$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnionWithJsonName deserialize( @@ -131,25 +114,22 @@ class UnionWithJsonNameRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'FOO': - return UnionWithJsonNameFoo$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return UnionWithJsonNameFoo$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'bar': - return UnionWithJsonNameBar$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return UnionWithJsonNameBar$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case '_baz': - return UnionWithJsonNameBaz$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return UnionWithJsonNameBaz$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return UnionWithJsonName.sdkUnknown( - key, - value, - ); + return UnionWithJsonName.sdkUnknown(key, value); } @override @@ -158,25 +138,22 @@ class UnionWithJsonNameRestJson1Serializer UnionWithJsonName object, { FullType specifiedType = FullType.unspecified, }) { - const renames = { - 'foo': 'FOO', - 'baz': '_baz', - }; + const renames = {'foo': 'FOO', 'baz': '_baz'}; return [ renames[object.name] ?? object.name, switch (object) { UnionWithJsonNameFoo$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), UnionWithJsonNameBar$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), UnionWithJsonNameBaz$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), UnionWithJsonNameSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart index e8ba1b7832..19e3f0029f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/all_query_string_types_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.all_query_string_types_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses all query string types. -class AllQueryStringTypesOperation extends _i1.HttpOperation< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> { +class AllQueryStringTypesOperation + extends + _i1.HttpOperation< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > { /// This example uses all query string types. AllQueryStringTypesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,131 +79,83 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/AllQueryStringTypesInput'; if (input.queryString != null) { - b.queryParameters.add( - 'String', - input.queryString!, - ); + b.queryParameters.add('String', input.queryString!); } if (input.queryStringList != null) { for (var value in input.queryStringList!) { - b.queryParameters.add( - 'StringList', - value, - ); + b.queryParameters.add('StringList', value); } } if (input.queryStringSet != null) { for (var value in input.queryStringSet!) { - b.queryParameters.add( - 'StringSet', - value, - ); + b.queryParameters.add('StringSet', value); } } if (input.queryByte != null) { - b.queryParameters.add( - 'Byte', - input.queryByte!.toString(), - ); + b.queryParameters.add('Byte', input.queryByte!.toString()); } if (input.queryShort != null) { - b.queryParameters.add( - 'Short', - input.queryShort!.toString(), - ); + b.queryParameters.add('Short', input.queryShort!.toString()); } if (input.queryInteger != null) { - b.queryParameters.add( - 'Integer', - input.queryInteger!.toString(), - ); + b.queryParameters.add('Integer', input.queryInteger!.toString()); } if (input.queryIntegerList != null) { for (var value in input.queryIntegerList!) { - b.queryParameters.add( - 'IntegerList', - value.toString(), - ); + b.queryParameters.add('IntegerList', value.toString()); } } if (input.queryIntegerSet != null) { for (var value in input.queryIntegerSet!) { - b.queryParameters.add( - 'IntegerSet', - value.toString(), - ); + b.queryParameters.add('IntegerSet', value.toString()); } } if (input.queryLong != null) { - b.queryParameters.add( - 'Long', - input.queryLong!.toString(), - ); + b.queryParameters.add('Long', input.queryLong!.toString()); } if (input.queryFloat != null) { - b.queryParameters.add( - 'Float', - input.queryFloat!.toString(), - ); + b.queryParameters.add('Float', input.queryFloat!.toString()); } if (input.queryDouble != null) { - b.queryParameters.add( - 'Double', - input.queryDouble!.toString(), - ); + b.queryParameters.add('Double', input.queryDouble!.toString()); } if (input.queryDoubleList != null) { for (var value in input.queryDoubleList!) { - b.queryParameters.add( - 'DoubleList', - value.toString(), - ); + b.queryParameters.add('DoubleList', value.toString()); } } if (input.queryBoolean != null) { - b.queryParameters.add( - 'Boolean', - input.queryBoolean!.toString(), - ); + b.queryParameters.add('Boolean', input.queryBoolean!.toString()); } if (input.queryBooleanList != null) { for (var value in input.queryBooleanList!) { - b.queryParameters.add( - 'BooleanList', - value.toString(), - ); + b.queryParameters.add('BooleanList', value.toString()); } } if (input.queryTimestamp != null) { b.queryParameters.add( 'Timestamp', - _i1.Timestamp(input.queryTimestamp!) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.queryTimestamp!, + ).format(_i1.TimestampFormat.dateTime).toString(), ); } if (input.queryTimestampList != null) { for (var value in input.queryTimestampList!) { b.queryParameters.add( 'TimestampList', - _i1.Timestamp(value) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + value, + ).format(_i1.TimestampFormat.dateTime).toString(), ); } } if (input.queryEnum != null) { - b.queryParameters.add( - 'Enum', - input.queryEnum!.value, - ); + b.queryParameters.add('Enum', input.queryEnum!.value); } if (input.queryEnumList != null) { for (var value in input.queryEnumList!) { - b.queryParameters.add( - 'EnumList', - value.value, - ); + b.queryParameters.add('EnumList', value.value); } } if (input.queryIntegerEnum != null) { @@ -204,19 +166,13 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< } if (input.queryIntegerEnumList != null) { for (var value in input.queryIntegerEnumList!) { - b.queryParameters.add( - 'IntegerEnumList', - value.value.toString(), - ); + b.queryParameters.add('IntegerEnumList', value.value.toString()); } } if (input.queryParamsMapOfStringList != null) { for (var entry in input.queryParamsMapOfStringList!.toMap().entries) { for (var value in entry.value) { - b.queryParameters.add( - entry.key, - value, - ); + b.queryParameters.add(entry.key, value); } } } @@ -226,10 +182,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -254,11 +207,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart index db64d53d3b..26de7c853c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_and_variable_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.constant_and_variable_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). -class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantAndVariableQueryStringOperation + extends + _i1.HttpOperation< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). ConstantAndVariableQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,16 +79,10 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/ConstantAndVariableQueryString?foo=bar'; if (input.baz != null) { - b.queryParameters.add( - 'baz', - input.baz!, - ); + b.queryParameters.add('baz', input.baz!); } if (input.maybeSet != null) { - b.queryParameters.add( - 'maybeSet', - input.maybeSet!, - ); + b.queryParameters.add('maybeSet', input.maybeSet!); } }); @@ -89,10 +90,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -117,11 +115,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart index 61b4b64f56..86b5a9b717 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/constant_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.constant_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. -class ConstantQueryStringOperation extends _i1.HttpOperation< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantQueryStringOperation + extends + _i1.HttpOperation< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. ConstantQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +84,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +109,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart index ea7247623a..2fa9c7c571 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/datetime_offsets_outp import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/DatetimeOffsets'; - }); + b.method = 'POST'; + b.path = r'/DatetimeOffsets'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -71,11 +84,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart index 90ea78323a..b4cb1f5b89 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_as_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.document_type_as_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,40 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example serializes a document as the entire HTTP payload. -class DocumentTypeAsPayloadOperation extends _i1.HttpOperation< - _i2.JsonObject, - DocumentTypeAsPayloadInputOutput, - _i2.JsonObject, - DocumentTypeAsPayloadInputOutput> { +class DocumentTypeAsPayloadOperation + extends + _i1.HttpOperation< + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput, + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput + > { /// This example serializes a document as the entire HTTP payload. DocumentTypeAsPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.JsonObject, DocumentTypeAsPayloadInputOutput, - _i2.JsonObject, DocumentTypeAsPayloadInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput, + _i2.JsonObject, + DocumentTypeAsPayloadInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class DocumentTypeAsPayloadOperation extends _i1.HttpOperation< DocumentTypeAsPayloadInputOutput buildOutput( _i2.JsonObject? payload, _i4.AWSBaseHttpResponse response, - ) => - DocumentTypeAsPayloadInputOutput.fromResponse( - payload, - response, - ); + ) => DocumentTypeAsPayloadInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class DocumentTypeAsPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart index ffedcdf44e..d7861d55b3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/document_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.document_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes a document as part of the payload. -class DocumentTypeOperation extends _i1.HttpOperation { +class DocumentTypeOperation + extends + _i1.HttpOperation< + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput + > { /// This example serializes a document as part of the payload. DocumentTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class DocumentTypeOperation extends _i1.HttpOperation - DocumentTypeInputOutput.fromResponse( - payload, - response, - ); + ) => DocumentTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class DocumentTypeOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart index f615ee8320..a635593765 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,44 +14,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart index eb87cc42ac..c8d3fe6767 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,29 +18,30 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,19 +59,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointOperation'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/EndpointOperation'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart index 8ae2e379d8..98125061a3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,39 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/host_label_input.dart import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,19 +62,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointWithHostLabelOperation'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/EndpointWithHostLabelOperation'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +96,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart index faf6c84e4b..5df3ad0351 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/fractional_seconds_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/FractionalSeconds'; - }); + b.method = 'POST'; + b.path = r'/FractionalSeconds'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -71,11 +84,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart index 333d532671..2ddce30fa8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,38 +16,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has four possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. 4. A FooError. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > { /// This operation has four possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. 4. A FooError. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,9 +78,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/GreetingWithErrors'; - }); + b.method = 'PUT'; + b.path = r'/GreetingWithErrors'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -76,45 +89,38 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - statusCode: 403, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'FooError', - ), - _i1.ErrorKind.server, - FooError, - statusCode: 500, - builder: FooError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restjson', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - statusCode: 400, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restjson', + shape: 'ComplexError', + ), + _i1.ErrorKind.client, + ComplexError, + statusCode: 403, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'aws.protocoltests.restjson', shape: 'FooError'), + _i1.ErrorKind.server, + FooError, + statusCode: 500, + builder: FooError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restjson', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + statusCode: 400, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -135,11 +141,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart index 8869fc2100..dd0af4a148 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/host_with_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.host_with_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,29 +18,30 @@ class HostWithPathOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class HostWithPathOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/HostWithPathOperation'; - }); + b.method = 'GET'; + b.path = r'/HostWithPathOperation'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class HostWithPathOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart index bc7d41cabb..cd053a75e1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_checksum_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_checksum_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,46 +13,52 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example tests httpChecksumRequired trait -class HttpChecksumRequiredOperation extends _i1.HttpOperation< - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput> { +class HttpChecksumRequiredOperation + extends + _i1.HttpOperation< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput + > { /// This example tests httpChecksumRequired trait HttpChecksumRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput>> protocols = [ + _i1.HttpProtocol< + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithChecksum(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, - responseInterceptors: <_i1.HttpResponseInterceptor>[ - const _i1.ValidateChecksum() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i1.ValidateChecksum()] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +88,7 @@ class HttpChecksumRequiredOperation extends _i1.HttpOperation< HttpChecksumRequiredInputOutput buildOutput( HttpChecksumRequiredInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - HttpChecksumRequiredInputOutput.fromResponse( - payload, - response, - ); + ) => HttpChecksumRequiredInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +112,7 @@ class HttpChecksumRequiredOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart index d89fc7e2cb..b41f817430 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_enum_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_enum_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,44 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/string_enum.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpEnumPayloadOperation extends _i1 - .HttpOperation { +class HttpEnumPayloadOperation + extends + _i1.HttpOperation< + StringEnum, + EnumPayloadInput, + StringEnum, + EnumPayloadInput + > { HttpEnumPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +68,9 @@ class HttpEnumPayloadOperation extends _i1 @override _i1.HttpRequest buildRequest(EnumPayloadInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EnumPayload'; - }); + b.method = 'POST'; + b.path = r'/EnumPayload'; + }); @override int successCode([EnumPayloadInput? output]) => 200; @@ -71,11 +79,7 @@ class HttpEnumPayloadOperation extends _i1 EnumPayloadInput buildOutput( StringEnum? payload, _i3.AWSBaseHttpResponse response, - ) => - EnumPayloadInput.fromResponse( - payload, - response, - ); + ) => EnumPayloadInput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +103,7 @@ class HttpEnumPayloadOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart index 458446b770..54718bff33 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_payload_traits_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,37 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a blob shape in the payload. In this example, no JSON document is synthesized because the payload is not a structure or a union type. -class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, - HttpPayloadTraitsInputOutput, _i2.Uint8List, HttpPayloadTraitsInputOutput> { +class HttpPayloadTraitsOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > { /// This examples serializes a blob shape in the payload. In this example, no JSON document is synthesized because the payload is not a structure or a union type. HttpPayloadTraitsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpPayloadTraitsInputOutput, - _i2.Uint8List, HttpPayloadTraitsInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,11 +92,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, HttpPayloadTraitsInputOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadTraitsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -107,11 +116,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart index a463b4d4bb..3c9ba9bb7f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_traits_with_media_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_payload_traits_with_media_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. -class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> { +class HttpPayloadTraitsWithMediaTypeOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > { /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. HttpPayloadTraitsWithMediaTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'text/plain', - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,16 +76,16 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - HttpPayloadTraitsWithMediaTypeInputOutput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/HttpPayloadTraitsWithMediaType'; - if (input.foo != null) { - if (input.foo!.isNotEmpty) { - b.headers['X-Foo'] = input.foo!; - } - } - }); + HttpPayloadTraitsWithMediaTypeInputOutput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/HttpPayloadTraitsWithMediaType'; + if (input.foo != null) { + if (input.foo!.isNotEmpty) { + b.headers['X-Foo'] = input.foo!; + } + } + }); @override int successCode([HttpPayloadTraitsWithMediaTypeInputOutput? output]) => 200; @@ -88,10 +95,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, ) => - HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( - payload, - response, - ); + HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -115,11 +119,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart index 9d37fa4905..e3dc62fff3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_payload_with_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_payload_with_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,40 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. -class HttpPayloadWithStructureOperation extends _i1.HttpOperation< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> { +class HttpPayloadWithStructureOperation + extends + _i1.HttpOperation< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > { /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. HttpPayloadWithStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< HttpPayloadWithStructureInputOutput buildOutput( NestedPayload? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart index 5cc91eb0be..49607ab5d0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_in_response_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_prefix_headers_in_response_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,44 +14,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Clients that perform this test extract all headers from the response. -class HttpPrefixHeadersInResponseOperation extends _i1.HttpOperation< - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseOutputPayload, - HttpPrefixHeadersInResponseOutput> { +class HttpPrefixHeadersInResponseOperation + extends + _i1.HttpOperation< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutput + > { /// Clients that perform this test extract all headers from the response. HttpPrefixHeadersInResponseOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseOutputPayload, - HttpPrefixHeadersInResponseOutput>> protocols = [ + _i1.HttpProtocol< + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class HttpPrefixHeadersInResponseOperation extends _i1.HttpOperation< HttpPrefixHeadersInResponseOutput buildOutput( HttpPrefixHeadersInResponseOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInResponseOutput.fromResponse( - payload, - response, - ); + ) => HttpPrefixHeadersInResponseOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class HttpPrefixHeadersInResponseOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart index f7d6a84e49..e0abd1454d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_prefix_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_prefix_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,11 +17,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) -class HttpPrefixHeadersOperation extends _i1.HttpOperation< - HttpPrefixHeadersInputPayload, - HttpPrefixHeadersInput, - HttpPrefixHeadersOutputPayload, - HttpPrefixHeadersOutput> { +class HttpPrefixHeadersOperation + extends + _i1.HttpOperation< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInput, + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutput + > { /// This examples adds headers to the input of a request and response by prefix./// /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) @@ -31,33 +34,37 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpPrefixHeadersInputPayload, - HttpPrefixHeadersInput, - HttpPrefixHeadersOutputPayload, - HttpPrefixHeadersOutput>> protocols = [ + _i1.HttpProtocol< + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInput, + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -99,11 +106,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< HttpPrefixHeadersOutput buildOutput( HttpPrefixHeadersOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersOutput.fromResponse( - payload, - response, - ); + ) => HttpPrefixHeadersOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -127,11 +130,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart index 449a105292..95a4a2b196 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_float_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_request_with_float_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/http_request_with_flo import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithFloatLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithFloatLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart index a01ad1dc5e..59112487bf 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_greedy_label_in_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_request_with_greedy_label_in_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/http_request_with_gre import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithGreedyLabelInPathOperation + extends + _i1.HttpOperation< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithGreedyLabelInPathOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +82,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +107,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart index 322a14f819..24054190ef 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_request_with_labels_and_timestamp_format_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,44 +14,50 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests serialize different timestamp formats in the URI path. class HttpRequestWithLabelsAndTimestampFormatOperation - extends _i1.HttpOperation< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> { + extends + _i1.HttpOperation< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests serialize different timestamp formats in the URI path. HttpRequestWithLabelsAndTimestampFormatOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,21 +75,18 @@ class HttpRequestWithLabelsAndTimestampFormatOperation @override _i1.HttpRequest buildRequest( - HttpRequestWithLabelsAndTimestampFormatInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; - }); + HttpRequestWithLabelsAndTimestampFormatInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +111,7 @@ class HttpRequestWithLabelsAndTimestampFormatOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart index cd3f68f3d4..8c7d02c898 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_request_with_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. -class HttpRequestWithLabelsOperation extends _i1.HttpOperation< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. HttpRequestWithLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,21 +74,19 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(HttpRequestWithLabelsInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; - }); + _i1.HttpRequest buildRequest( + HttpRequestWithLabelsInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +111,7 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart index 43ce95f85e..4bf0adc892 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_request_with_regex_literal_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_request_with_regex_literal_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/http_request_with_reg import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithRegexLiteralOperation extends _i1.HttpOperation< - HttpRequestWithRegexLiteralInputPayload, - HttpRequestWithRegexLiteralInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithRegexLiteralOperation + extends + _i1.HttpOperation< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithRegexLiteralOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class HttpRequestWithRegexLiteralOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class HttpRequestWithRegexLiteralOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart index 51539803f1..a2d9eb1d93 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_response_code_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_response_code_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/http_response_code_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - HttpResponseCodeOutputPayload, HttpResponseCodeOutput> { +class HttpResponseCodeOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > { HttpResponseCodeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/HttpResponseCode'; - }); + b.method = 'PUT'; + b.path = r'/HttpResponseCode'; + }); @override int successCode([HttpResponseCodeOutput? output]) => output?.status ?? 200; @@ -71,11 +84,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, HttpResponseCodeOutput buildOutput( HttpResponseCodeOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.fromResponse( - payload, - response, - ); + ) => HttpResponseCodeOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart index 6d7b299661..45d61ea0a4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/http_string_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.http_string_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,44 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/string_payload_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpStringPayloadOperation extends _i1 - .HttpOperation { +class HttpStringPayloadOperation + extends + _i1.HttpOperation< + String, + StringPayloadInput, + String, + StringPayloadInput + > { HttpStringPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1 - .HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +79,7 @@ class HttpStringPayloadOperation extends _i1 StringPayloadInput buildOutput( String? payload, _i3.AWSBaseHttpResponse response, - ) => - StringPayloadInput.fromResponse( - payload, - response, - ); + ) => StringPayloadInput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +103,7 @@ class HttpStringPayloadOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart index 145cdcb802..7c436fc8f5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/ignore_query_params_in_response_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.ignore_query_params_in_response_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. -class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput> { +class IgnoreQueryParamsInResponseOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > { /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. IgnoreQueryParamsInResponseOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,9 +75,9 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/IgnoreQueryParamsInResponse'; - }); + b.method = 'GET'; + b.path = r'/IgnoreQueryParamsInResponse'; + }); @override int successCode([IgnoreQueryParamsInResponseOutput? output]) => 200; @@ -76,11 +86,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< IgnoreQueryParamsInResponseOutput buildOutput( IgnoreQueryParamsInResponseOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoreQueryParamsInResponseOutput.fromResponse( - payload, - response, - ); + ) => IgnoreQueryParamsInResponseOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart index 5daf2fd3f6..c24e0a4fba 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/input_and_output_with_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.input_and_output_with_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. -class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> { +class InputAndOutputWithHeadersOperation + extends + _i1.HttpOperation< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > { /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. InputAndOutputWithHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo>> protocols = [ + _i1.HttpProtocol< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -133,13 +140,13 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< if (input.headerTimestampList != null) { if (input.headerTimestampList!.isNotEmpty) { b.headers['X-TimestampList'] = input.headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } } @@ -175,11 +182,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< InputAndOutputWithHeadersIo buildOutput( InputAndOutputWithHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.fromResponse( - payload, - response, - ); + ) => InputAndOutputWithHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -203,11 +206,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart index d1ab19bf92..962236fec8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.json_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class JsonBlobsOperation extends _i1.HttpOperation { +class JsonBlobsOperation + extends + _i1.HttpOperation< + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput + > { /// Blobs are base64 encoded JsonBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonBlobsOperation extends _i1.HttpOperation - JsonBlobsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonBlobsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonBlobsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart index f6aa05e5f6..df12945e9b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.json_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class JsonEnumsOperation extends _i1.HttpOperation { +class JsonEnumsOperation + extends + _i1.HttpOperation< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. JsonEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonEnumsOperation extends _i1.HttpOperation - JsonEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart index 50fb58c808..05cc279751 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.json_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes intEnums as top level properties, in lists, sets, and maps. -class JsonIntEnumsOperation extends _i1.HttpOperation { +class JsonIntEnumsOperation + extends + _i1.HttpOperation< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > { /// This example serializes intEnums as top level properties, in lists, sets, and maps. JsonIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation - JsonIntEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonIntEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonIntEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart index 848bff5835..a1e615df6b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.json_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes JSON lists for the following cases for both input and output: 1. Normal JSON lists. 2. Normal JSON sets. 3. JSON lists of lists. 4. Lists of structures. -class JsonListsOperation extends _i1.HttpOperation { +class JsonListsOperation + extends + _i1.HttpOperation< + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput + > { /// This test case serializes JSON lists for the following cases for both input and output: 1. Normal JSON lists. 2. Normal JSON sets. 3. JSON lists of lists. 4. Lists of structures. JsonListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonListsOperation extends _i1.HttpOperation - JsonListsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonListsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonListsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart index 2a674e5cbe..6dddd605c1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.json_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests basic map serialization. -class JsonMapsOperation extends _i1.HttpOperation { +class JsonMapsOperation + extends + _i1.HttpOperation< + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput + > { /// The example tests basic map serialization. JsonMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,11 +86,7 @@ class JsonMapsOperation extends _i1.HttpOperation - JsonMapsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class JsonMapsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart index 5485d064f1..21b4b93f52 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.json_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class JsonTimestampsOperation extends _i1.HttpOperation< - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput> { +class JsonTimestampsOperation + extends + _i1.HttpOperation< + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. JsonTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,11 +86,7 @@ class JsonTimestampsOperation extends _i1.HttpOperation< JsonTimestampsInputOutput buildOutput( JsonTimestampsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - JsonTimestampsInputOutput.fromResponse( - payload, - response, - ); + ) => JsonTimestampsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class JsonTimestampsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart index c0ad8a01a1..ead8dfb8c1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/json_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.json_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation uses unions for inputs and outputs. -class JsonUnionsOperation extends _i1.HttpOperation { +class JsonUnionsOperation + extends + _i1.HttpOperation< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > { /// This operation uses unions for inputs and outputs. JsonUnionsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,9 +74,9 @@ class JsonUnionsOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/JsonUnions'; - }); + b.method = 'PUT'; + b.path = r'/JsonUnions'; + }); @override int successCode([UnionInputOutput? output]) => 200; @@ -72,11 +85,7 @@ class JsonUnionsOperation extends _i1.HttpOperation - UnionInputOutput.fromResponse( - payload, - response, - ); + ) => UnionInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class JsonUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart index 8bfab25a60..4a20cbaf98 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_accept_with_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,40 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/greeting_struct.dart' import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedAcceptWithBodyOperation extends _i1 - .HttpOperation<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> { +class MalformedAcceptWithBodyOperation + extends + _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> { MalformedAcceptWithBodyOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct>> - protocols = [ + _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +63,9 @@ class MalformedAcceptWithBodyOperation extends _i1 @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedAcceptWithBody'; - }); + b.method = 'POST'; + b.path = r'/MalformedAcceptWithBody'; + }); @override int successCode([GreetingStruct? output]) => 200; @@ -71,11 +74,7 @@ class MalformedAcceptWithBodyOperation extends _i1 GreetingStruct buildOutput( GreetingStruct payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingStruct.fromResponse( - payload, - response, - ); + ) => GreetingStruct.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +98,7 @@ class MalformedAcceptWithBodyOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart index 7dbad9da01..3f7035ef32 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_generic_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_accept_with_generic_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_accept_with import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< - _i1.Unit, _i1.Unit, String, MalformedAcceptWithGenericStringOutput> { +class MalformedAcceptWithGenericStringOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + String, + MalformedAcceptWithGenericStringOutput + > { MalformedAcceptWithGenericStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, String, - MalformedAcceptWithGenericStringOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + String, + MalformedAcceptWithGenericStringOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedAcceptWithGenericString'; - }); + b.method = 'POST'; + b.path = r'/MalformedAcceptWithGenericString'; + }); @override int successCode([MalformedAcceptWithGenericStringOutput? output]) => 200; @@ -71,11 +84,7 @@ class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< MalformedAcceptWithGenericStringOutput buildOutput( String? payload, _i3.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithGenericStringOutput.fromResponse( - payload, - response, - ); + ) => MalformedAcceptWithGenericStringOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -99,11 +108,7 @@ class MalformedAcceptWithGenericStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart index e367656106..87f0a51b80 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_accept_with_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_accept_with_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_accept_with import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, _i2.Uint8List, MalformedAcceptWithPayloadOutput> { +class MalformedAcceptWithPayloadOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + _i2.Uint8List, + MalformedAcceptWithPayloadOutput + > { MalformedAcceptWithPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i2.Uint8List, - MalformedAcceptWithPayloadOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + _i2.Uint8List, + MalformedAcceptWithPayloadOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,9 +74,9 @@ class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedAcceptWithPayload'; - }); + b.method = 'POST'; + b.path = r'/MalformedAcceptWithPayload'; + }); @override int successCode([MalformedAcceptWithPayloadOutput? output]) => 200; @@ -72,11 +85,7 @@ class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, MalformedAcceptWithPayloadOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - MalformedAcceptWithPayloadOutput.fromResponse( - payload, - response, - ); + ) => MalformedAcceptWithPayloadOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class MalformedAcceptWithPayloadOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart index 9ca5afebd2..17f5df9c19 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_blob_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_blob_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,44 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_blob_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedBlobOperation extends _i1 - .HttpOperation { +class MalformedBlobOperation + extends + _i1.HttpOperation< + MalformedBlobInput, + MalformedBlobInput, + _i1.Unit, + _i1.Unit + > { MalformedBlobOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +76,7 @@ class MalformedBlobOperation extends _i1 int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +101,7 @@ class MalformedBlobOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart index a947d1abab..dea02ed28d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_boolean_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_boolean_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_boolean_inp import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedBooleanOperation extends _i1.HttpOperation< - MalformedBooleanInputPayload, MalformedBooleanInput, _i1.Unit, _i1.Unit> { +class MalformedBooleanOperation + extends + _i1.HttpOperation< + MalformedBooleanInputPayload, + MalformedBooleanInput, + _i1.Unit, + _i1.Unit + > { MalformedBooleanOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedBooleanInputPayload, + MalformedBooleanInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,29 +71,24 @@ class MalformedBooleanOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(MalformedBooleanInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedBoolean/{booleanInPath}'; - if (input.booleanInHeader != null) { - b.headers['booleanInHeader'] = input.booleanInHeader!.toString(); - } - if (input.booleanInQuery != null) { - b.queryParameters.add( - 'booleanInQuery', - input.booleanInQuery!.toString(), - ); - } - }); + _i1.HttpRequest buildRequest(MalformedBooleanInput input) => _i1.HttpRequest(( + b, + ) { + b.method = 'POST'; + b.path = r'/MalformedBoolean/{booleanInPath}'; + if (input.booleanInHeader != null) { + b.headers['booleanInHeader'] = input.booleanInHeader!.toString(); + } + if (input.booleanInQuery != null) { + b.queryParameters.add('booleanInQuery', input.booleanInQuery!.toString()); + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +113,7 @@ class MalformedBooleanOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart index 30dd15351f..7fcf57d7e8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_byte_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_byte_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_byte_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedByteOperation extends _i1.HttpOperation< - MalformedByteInputPayload, MalformedByteInput, _i1.Unit, _i1.Unit> { +class MalformedByteOperation + extends + _i1.HttpOperation< + MalformedByteInputPayload, + MalformedByteInput, + _i1.Unit, + _i1.Unit + > { MalformedByteOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedByteInputPayload, + MalformedByteInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedByteOperation extends _i1.HttpOperation< b.headers['byteInHeader'] = input.byteInHeader!.toString(); } if (input.byteInQuery != null) { - b.queryParameters.add( - 'byteInQuery', - input.byteInQuery!.toString(), - ); + b.queryParameters.add('byteInQuery', input.byteInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedByteOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedByteOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart index 8e6f5fd069..c1fa1c6436 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_content_type_with_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,39 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/greeting_struct.dart' import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedContentTypeWithBodyOperation extends _i1 - .HttpOperation { +class MalformedContentTypeWithBodyOperation + extends + _i1.HttpOperation { MalformedContentTypeWithBodyOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,18 +62,15 @@ class MalformedContentTypeWithBodyOperation extends _i1 @override _i1.HttpRequest buildRequest(GreetingStruct input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithBody'; - }); + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithBody'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +95,7 @@ class MalformedContentTypeWithBodyOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart index 8f5d1e80ca..1e24502953 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_generic_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_content_type_with_generic_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_content_typ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedContentTypeWithGenericStringOperation extends _i1.HttpOperation< - String, MalformedContentTypeWithGenericStringInput, _i1.Unit, _i1.Unit> { +class MalformedContentTypeWithGenericStringOperation + extends + _i1.HttpOperation< + String, + MalformedContentTypeWithGenericStringInput, + _i1.Unit, + _i1.Unit + > { MalformedContentTypeWithGenericStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + String, + MalformedContentTypeWithGenericStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,20 +72,17 @@ class MalformedContentTypeWithGenericStringOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - MalformedContentTypeWithGenericStringInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithGenericString'; - }); + MalformedContentTypeWithGenericStringInput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithGenericString'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -97,11 +107,7 @@ class MalformedContentTypeWithGenericStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart index 1d6b0c1209..e6198fc4d0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_with_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_content_type_with_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_content_typ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; -class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< - _i2.Uint8List, MalformedContentTypeWithPayloadInput, _i1.Unit, _i1.Unit> { +class MalformedContentTypeWithPayloadOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + MalformedContentTypeWithPayloadInput, + _i1.Unit, + _i1.Unit + > { MalformedContentTypeWithPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, MalformedContentTypeWithPayloadInput, - _i1.Unit, _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + MalformedContentTypeWithPayloadInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -43,7 +56,7 @@ class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'image/jpeg', - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,10 +83,7 @@ class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -98,11 +108,7 @@ class MalformedContentTypeWithPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart index 1ba66c95df..5b0767f081 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_empty_input_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_content_type_without_body_empty_input_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,43 +13,49 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; class MalformedContentTypeWithoutBodyEmptyInputOperation - extends _i1.HttpOperation< - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - MalformedContentTypeWithoutBodyEmptyInputInput, - _i1.Unit, - _i1.Unit> { + extends + _i1.HttpOperation< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInput, + _i1.Unit, + _i1.Unit + > { MalformedContentTypeWithoutBodyEmptyInputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - MalformedContentTypeWithoutBodyEmptyInputInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -67,25 +73,22 @@ class MalformedContentTypeWithoutBodyEmptyInputOperation @override _i1.HttpRequest buildRequest( - MalformedContentTypeWithoutBodyEmptyInputInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithoutBodyEmptyInput'; - if (input.header != null) { - if (input.header!.isNotEmpty) { - b.headers['header'] = input.header!; - } - } - }); + MalformedContentTypeWithoutBodyEmptyInputInput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithoutBodyEmptyInput'; + if (input.header != null) { + if (input.header!.isNotEmpty) { + b.headers['header'] = input.header!; + } + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -110,11 +113,7 @@ class MalformedContentTypeWithoutBodyEmptyInputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart index 6cf42fb322..885b3044a6 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_content_type_without_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_content_type_without_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,29 +18,30 @@ class MalformedContentTypeWithoutBodyOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,18 +59,15 @@ class MalformedContentTypeWithoutBodyOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedContentTypeWithoutBody'; - }); + b.method = 'POST'; + b.path = r'/MalformedContentTypeWithoutBody'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class MalformedContentTypeWithoutBodyOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart index 074ab68c32..a1e75b5c11 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_double_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_double_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_double_inpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedDoubleOperation extends _i1.HttpOperation< - MalformedDoubleInputPayload, MalformedDoubleInput, _i1.Unit, _i1.Unit> { +class MalformedDoubleOperation + extends + _i1.HttpOperation< + MalformedDoubleInputPayload, + MalformedDoubleInput, + _i1.Unit, + _i1.Unit + > { MalformedDoubleOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedDoubleInputPayload, + MalformedDoubleInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,29 +71,24 @@ class MalformedDoubleOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(MalformedDoubleInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedDouble/{doubleInPath}'; - if (input.doubleInHeader != null) { - b.headers['doubleInHeader'] = input.doubleInHeader!.toString(); - } - if (input.doubleInQuery != null) { - b.queryParameters.add( - 'doubleInQuery', - input.doubleInQuery!.toString(), - ); - } - }); + _i1.HttpRequest buildRequest(MalformedDoubleInput input) => _i1.HttpRequest(( + b, + ) { + b.method = 'POST'; + b.path = r'/MalformedDouble/{doubleInPath}'; + if (input.doubleInHeader != null) { + b.headers['doubleInHeader'] = input.doubleInHeader!.toString(); + } + if (input.doubleInQuery != null) { + b.queryParameters.add('doubleInQuery', input.doubleInQuery!.toString()); + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +113,7 @@ class MalformedDoubleOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart index 44567be41a..57d18026c4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_float_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_float_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_float_input import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedFloatOperation extends _i1.HttpOperation< - MalformedFloatInputPayload, MalformedFloatInput, _i1.Unit, _i1.Unit> { +class MalformedFloatOperation + extends + _i1.HttpOperation< + MalformedFloatInputPayload, + MalformedFloatInput, + _i1.Unit, + _i1.Unit + > { MalformedFloatOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedFloatInputPayload, + MalformedFloatInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedFloatOperation extends _i1.HttpOperation< b.headers['floatInHeader'] = input.floatInHeader!.toString(); } if (input.floatInQuery != null) { - b.queryParameters.add( - 'floatInQuery', - input.floatInQuery!.toString(), - ); + b.queryParameters.add('floatInQuery', input.floatInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedFloatOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedFloatOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart index 3a599b8a8c..aaa7fb4461 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_integer_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_integer_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_integer_inp import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedIntegerOperation extends _i1.HttpOperation< - MalformedIntegerInputPayload, MalformedIntegerInput, _i1.Unit, _i1.Unit> { +class MalformedIntegerOperation + extends + _i1.HttpOperation< + MalformedIntegerInputPayload, + MalformedIntegerInput, + _i1.Unit, + _i1.Unit + > { MalformedIntegerOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedIntegerInputPayload, + MalformedIntegerInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -58,29 +71,24 @@ class MalformedIntegerOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(MalformedIntegerInput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedInteger/{integerInPath}'; - if (input.integerInHeader != null) { - b.headers['integerInHeader'] = input.integerInHeader!.toString(); - } - if (input.integerInQuery != null) { - b.queryParameters.add( - 'integerInQuery', - input.integerInQuery!.toString(), - ); - } - }); + _i1.HttpRequest buildRequest(MalformedIntegerInput input) => _i1.HttpRequest(( + b, + ) { + b.method = 'POST'; + b.path = r'/MalformedInteger/{integerInPath}'; + if (input.integerInHeader != null) { + b.headers['integerInHeader'] = input.integerInHeader!.toString(); + } + if (input.integerInQuery != null) { + b.queryParameters.add('integerInQuery', input.integerInQuery!.toString()); + } + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +113,7 @@ class MalformedIntegerOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart index 1dabca0ed1..405779889c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_list_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_list_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,44 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_list_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedListOperation extends _i1 - .HttpOperation { +class MalformedListOperation + extends + _i1.HttpOperation< + MalformedListInput, + MalformedListInput, + _i1.Unit, + _i1.Unit + > { MalformedListOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +76,7 @@ class MalformedListOperation extends _i1 int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +101,7 @@ class MalformedListOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart index 1d0a988e89..414e038994 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_long_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_long_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_long_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLongOperation extends _i1.HttpOperation< - MalformedLongInputPayload, MalformedLongInput, _i1.Unit, _i1.Unit> { +class MalformedLongOperation + extends + _i1.HttpOperation< + MalformedLongInputPayload, + MalformedLongInput, + _i1.Unit, + _i1.Unit + > { MalformedLongOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLongInputPayload, + MalformedLongInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedLongOperation extends _i1.HttpOperation< b.headers['longInHeader'] = input.longInHeader!.toString(); } if (input.longInQuery != null) { - b.queryParameters.add( - 'longInQuery', - input.longInQuery!.toString(), - ); + b.queryParameters.add('longInQuery', input.longInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedLongOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedLongOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart index 6ca04a6479..e96dc8ca89 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,44 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_map_input.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedMapOperation extends _i1 - .HttpOperation { +class MalformedMapOperation + extends + _i1.HttpOperation< + MalformedMapInput, + MalformedMapInput, + _i1.Unit, + _i1.Unit + > { MalformedMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,18 +67,15 @@ class MalformedMapOperation extends _i1 @override _i1.HttpRequest buildRequest(MalformedMapInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/MalformedMap'; - }); + b.method = 'POST'; + b.path = r'/MalformedMap'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +100,7 @@ class MalformedMapOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart index c9d43df366..3ba1aacd0a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_request_body_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_request_body_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_request_bod import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRequestBodyOperation extends _i1.HttpOperation< - MalformedRequestBodyInput, MalformedRequestBodyInput, _i1.Unit, _i1.Unit> { +class MalformedRequestBodyOperation + extends + _i1.HttpOperation< + MalformedRequestBodyInput, + MalformedRequestBodyInput, + _i1.Unit, + _i1.Unit + > { MalformedRequestBodyOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRequestBodyInput, + MalformedRequestBodyInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +81,7 @@ class MalformedRequestBodyOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +106,7 @@ class MalformedRequestBodyOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart index 85bb322e9a..38d035209c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_short_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_short_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_short_input import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedShortOperation extends _i1.HttpOperation< - MalformedShortInputPayload, MalformedShortInput, _i1.Unit, _i1.Unit> { +class MalformedShortOperation + extends + _i1.HttpOperation< + MalformedShortInputPayload, + MalformedShortInput, + _i1.Unit, + _i1.Unit + > { MalformedShortOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedShortInputPayload, + MalformedShortInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,10 +79,7 @@ class MalformedShortOperation extends _i1.HttpOperation< b.headers['shortInHeader'] = input.shortInHeader!.toString(); } if (input.shortInQuery != null) { - b.queryParameters.add( - 'shortInQuery', - input.shortInQuery!.toString(), - ); + b.queryParameters.add('shortInQuery', input.shortInQuery!.toString()); } }); @@ -77,10 +87,7 @@ class MalformedShortOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class MalformedShortOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart index 0ed961321d..52ff8b32be 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,37 +13,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_string_inpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedStringOperation extends _i1.HttpOperation< - MalformedStringInputPayload, MalformedStringInput, _i1.Unit, _i1.Unit> { +class MalformedStringOperation + extends + _i1.HttpOperation< + MalformedStringInputPayload, + MalformedStringInput, + _i1.Unit, + _i1.Unit + > { MalformedStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedStringInputPayload, + MalformedStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -65,8 +78,9 @@ class MalformedStringOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/MalformedString'; if (input.blob != null) { - b.headers['amz-media-typed-header'] = _i3 - .base64Encode(_i3.utf8.encode(_i3.jsonEncode(input.blob!.value))); + b.headers['amz-media-typed-header'] = _i3.base64Encode( + _i3.utf8.encode(_i3.jsonEncode(input.blob!.value)), + ); } }); @@ -74,10 +88,7 @@ class MalformedStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +113,7 @@ class MalformedStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart index 614b3dcb11..40cf560bd4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_date_time_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_body_date_time_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,42 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_b import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampBodyDateTimeOperation extends _i1.HttpOperation< - MalformedTimestampBodyDateTimeInput, - MalformedTimestampBodyDateTimeInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampBodyDateTimeOperation + extends + _i1.HttpOperation< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampBodyDateTimeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampBodyDateTimeInput, - MalformedTimestampBodyDateTimeInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +81,7 @@ class MalformedTimestampBodyDateTimeOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +106,7 @@ class MalformedTimestampBodyDateTimeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart index b5185df030..78b1a9857b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_body_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,39 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_b import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampBodyDefaultOperation extends _i1.HttpOperation< - MalformedTimestampBodyDefaultInput, - MalformedTimestampBodyDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampBodyDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampBodyDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,10 +81,7 @@ class MalformedTimestampBodyDefaultOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -99,11 +106,7 @@ class MalformedTimestampBodyDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart index ac9799d97c..c4e44f09f0 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_body_http_date_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_body_http_date_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,42 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_b import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampBodyHttpDateOperation extends _i1.HttpOperation< - MalformedTimestampBodyHttpDateInput, - MalformedTimestampBodyHttpDateInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampBodyHttpDateOperation + extends + _i1.HttpOperation< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampBodyHttpDateOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampBodyHttpDateInput, - MalformedTimestampBodyHttpDateInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +81,7 @@ class MalformedTimestampBodyHttpDateOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +106,7 @@ class MalformedTimestampBodyHttpDateOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart index 0e69735114..6795bcac84 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_date_time_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_header_date_time_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_h import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampHeaderDateTimeOperation extends _i1.HttpOperation< - MalformedTimestampHeaderDateTimeInputPayload, - MalformedTimestampHeaderDateTimeInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampHeaderDateTimeOperation + extends + _i1.HttpOperation< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampHeaderDateTimeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampHeaderDateTimeInputPayload, - MalformedTimestampHeaderDateTimeInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,19 +76,17 @@ class MalformedTimestampHeaderDateTimeOperation extends _i1.HttpOperation< _i1.HttpRequest((b) { b.method = 'POST'; b.path = r'/MalformedTimestampHeaderDateTime'; - b.headers['timestamp'] = _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['timestamp'] = + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +111,7 @@ class MalformedTimestampHeaderDateTimeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart index 61b6895dd5..002ebc0e66 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_header_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_h import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampHeaderDefaultOperation extends _i1.HttpOperation< - MalformedTimestampHeaderDefaultInputPayload, - MalformedTimestampHeaderDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampHeaderDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampHeaderDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampHeaderDefaultInputPayload, - MalformedTimestampHeaderDefaultInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,19 +76,17 @@ class MalformedTimestampHeaderDefaultOperation extends _i1.HttpOperation< _i1.HttpRequest((b) { b.method = 'POST'; b.path = r'/MalformedTimestampHeaderDefault'; - b.headers['timestamp'] = _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['timestamp'] = + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.httpDate).toString(); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +111,7 @@ class MalformedTimestampHeaderDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart index 77f683facc..17cb4c5b36 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_header_epoch_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_header_epoch_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_h import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampHeaderEpochOperation extends _i1.HttpOperation< - MalformedTimestampHeaderEpochInputPayload, - MalformedTimestampHeaderEpochInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampHeaderEpochOperation + extends + _i1.HttpOperation< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampHeaderEpochOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,19 +76,17 @@ class MalformedTimestampHeaderEpochOperation extends _i1.HttpOperation< _i1.HttpRequest((b) { b.method = 'POST'; b.path = r'/MalformedTimestampHeaderEpoch'; - b.headers['timestamp'] = _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + b.headers['timestamp'] = + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.epochSeconds).toString(); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +111,7 @@ class MalformedTimestampHeaderEpochOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart index b33e407c13..4b72069f5e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_path_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_p import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampPathDefaultOperation extends _i1.HttpOperation< - MalformedTimestampPathDefaultInputPayload, - MalformedTimestampPathDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampPathDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampPathDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class MalformedTimestampPathDefaultOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class MalformedTimestampPathDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart index e22f57b946..975607a539 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_epoch_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_path_epoch_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_p import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampPathEpochOperation extends _i1.HttpOperation< - MalformedTimestampPathEpochInputPayload, - MalformedTimestampPathEpochInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampPathEpochOperation + extends + _i1.HttpOperation< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampPathEpochOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +82,7 @@ class MalformedTimestampPathEpochOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +107,7 @@ class MalformedTimestampPathEpochOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart index e23e3dcdbe..3adada4ffc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_path_http_date_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_path_http_date_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_p import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampPathHttpDateOperation extends _i1.HttpOperation< - MalformedTimestampPathHttpDateInputPayload, - MalformedTimestampPathHttpDateInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampPathHttpDateOperation + extends + _i1.HttpOperation< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampPathHttpDateOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampPathHttpDateInputPayload, - MalformedTimestampPathHttpDateInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,10 +82,7 @@ class MalformedTimestampPathHttpDateOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -103,11 +107,7 @@ class MalformedTimestampPathHttpDateOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart index 69266f3387..513c8fc890 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_default_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_query_default_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_q import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< - MalformedTimestampQueryDefaultInputPayload, - MalformedTimestampQueryDefaultInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampQueryDefaultOperation + extends + _i1.HttpOperation< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampQueryDefaultOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampQueryDefaultInputPayload, - MalformedTimestampQueryDefaultInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,9 +78,9 @@ class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< b.path = r'/MalformedTimestampQueryDefault'; b.queryParameters.add( 'timestamp', - _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(), ); }); @@ -81,10 +88,7 @@ class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -109,11 +113,7 @@ class MalformedTimestampQueryDefaultOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart index bdcc8fa0d7..a8faa0bd9c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_epoch_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_query_epoch_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_q import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< - MalformedTimestampQueryEpochInputPayload, - MalformedTimestampQueryEpochInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampQueryEpochOperation + extends + _i1.HttpOperation< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampQueryEpochOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,9 +78,9 @@ class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< b.path = r'/MalformedTimestampQueryEpoch'; b.queryParameters.add( 'timestamp', - _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(), ); }); @@ -78,10 +88,7 @@ class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +113,7 @@ class MalformedTimestampQueryEpochOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart index 463c8c708a..8ffab7fb6d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_timestamp_query_http_date_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_timestamp_query_http_date_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_timestamp_q import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< - MalformedTimestampQueryHttpDateInputPayload, - MalformedTimestampQueryHttpDateInput, - _i1.Unit, - _i1.Unit> { +class MalformedTimestampQueryHttpDateOperation + extends + _i1.HttpOperation< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInput, + _i1.Unit, + _i1.Unit + > { MalformedTimestampQueryHttpDateOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - MalformedTimestampQueryHttpDateInputPayload, - MalformedTimestampQueryHttpDateInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,9 +78,9 @@ class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< b.path = r'/MalformedTimestampQueryHttpDate'; b.queryParameters.add( 'timestamp', - _i1.Timestamp(input.timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(), ); }); @@ -81,10 +88,7 @@ class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -109,11 +113,7 @@ class MalformedTimestampQueryHttpDateOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart index 9ecd0eb926..1cbecac9ff 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/malformed_union_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.malformed_union_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,36 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/malformed_union_input import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedUnionOperation extends _i1.HttpOperation { +class MalformedUnionOperation + extends + _i1.HttpOperation< + MalformedUnionInput, + MalformedUnionInput, + _i1.Unit, + _i1.Unit + > { MalformedUnionOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedUnionInput, + MalformedUnionInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +81,7 @@ class MalformedUnionOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +106,7 @@ class MalformedUnionOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart index bad5d59611..b8515a7b8e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/media_type_header_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.media_type_header_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,41 +15,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example ensures that mediaType strings are base64 encoded in headers. -class MediaTypeHeaderOperation extends _i1.HttpOperation< - MediaTypeHeaderInputPayload, - MediaTypeHeaderInput, - MediaTypeHeaderOutputPayload, - MediaTypeHeaderOutput> { +class MediaTypeHeaderOperation + extends + _i1.HttpOperation< + MediaTypeHeaderInputPayload, + MediaTypeHeaderInput, + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutput + > { /// This example ensures that mediaType strings are base64 encoded in headers. MediaTypeHeaderOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MediaTypeHeaderInputPayload, + MediaTypeHeaderInput, + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,8 +81,9 @@ class MediaTypeHeaderOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/MediaTypeHeader'; if (input.json != null) { - b.headers['X-Json'] = _i3 - .base64Encode(_i3.utf8.encode(_i3.jsonEncode(input.json!.value))); + b.headers['X-Json'] = _i3.base64Encode( + _i3.utf8.encode(_i3.jsonEncode(input.json!.value)), + ); } }); @@ -83,11 +94,7 @@ class MediaTypeHeaderOperation extends _i1.HttpOperation< MediaTypeHeaderOutput buildOutput( MediaTypeHeaderOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - MediaTypeHeaderOutput.fromResponse( - payload, - response, - ); + ) => MediaTypeHeaderOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +118,7 @@ class MediaTypeHeaderOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart index ef939e33b7..1eaf9aaf23 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,29 +20,30 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndNoOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndNoOutput'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart index 5cf6b4284f..b7dc6adbb2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,38 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -62,9 +75,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndOutputOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndOutputOutput'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -73,11 +86,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -101,11 +110,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart index d9603f77ec..21d578dd90 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_client_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.null_and_empty_headers_client_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersClientOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersClientOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,8 +90,9 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -93,11 +104,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -121,11 +128,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart index 664bb300ad..001ffa7c5c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/null_and_empty_headers_server_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.null_and_empty_headers_server_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersServerOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersServerOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,8 +90,9 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -93,11 +104,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -121,11 +128,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart index 4c7a6e0754..f32c1f7606 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_null_serializes_empty_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.omits_null_serializes_empty_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Omits null, but serializes empty string value. -class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> { +class OmitsNullSerializesEmptyStringOperation + extends + _i1.HttpOperation< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > { /// Omits null, but serializes empty string value. OmitsNullSerializesEmptyStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,16 +79,10 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/OmitsNullSerializesEmptyString'; if (input.nullValue != null) { - b.queryParameters.add( - 'Null', - input.nullValue!, - ); + b.queryParameters.add('Null', input.nullValue!); } if (input.emptyString != null) { - b.queryParameters.add( - 'Empty', - input.emptyString!, - ); + b.queryParameters.add('Empty', input.emptyString!); } }); @@ -89,10 +90,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -117,11 +115,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart index d61e55c03b..ec486e91c2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/omits_serializing_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.omits_serializing_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Omits serializing empty lists. Because empty strings are serilized as \`Foo=\`, empty lists cannot also be serialized as \`Foo=\` and instead must be omitted. -class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< - OmitsSerializingEmptyListsInputPayload, - OmitsSerializingEmptyListsInput, - _i1.Unit, - _i1.Unit> { +class OmitsSerializingEmptyListsOperation + extends + _i1.HttpOperation< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInput, + _i1.Unit, + _i1.Unit + > { /// Omits serializing empty lists. Because empty strings are serilized as \`Foo=\`, empty lists cannot also be serialized as \`Foo=\` and instead must be omitted. OmitsSerializingEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,60 +80,42 @@ class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< b.path = r'/OmitsSerializingEmptyLists'; if (input.queryStringList != null) { for (var value in input.queryStringList!) { - b.queryParameters.add( - 'StringList', - value, - ); + b.queryParameters.add('StringList', value); } } if (input.queryIntegerList != null) { for (var value in input.queryIntegerList!) { - b.queryParameters.add( - 'IntegerList', - value.toString(), - ); + b.queryParameters.add('IntegerList', value.toString()); } } if (input.queryDoubleList != null) { for (var value in input.queryDoubleList!) { - b.queryParameters.add( - 'DoubleList', - value.toString(), - ); + b.queryParameters.add('DoubleList', value.toString()); } } if (input.queryBooleanList != null) { for (var value in input.queryBooleanList!) { - b.queryParameters.add( - 'BooleanList', - value.toString(), - ); + b.queryParameters.add('BooleanList', value.toString()); } } if (input.queryTimestampList != null) { for (var value in input.queryTimestampList!) { b.queryParameters.add( 'TimestampList', - _i1.Timestamp(value) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + value, + ).format(_i1.TimestampFormat.dateTime).toString(), ); } } if (input.queryEnumList != null) { for (var value in input.queryEnumList!) { - b.queryParameters.add( - 'EnumList', - value.value, - ); + b.queryParameters.add('EnumList', value.value); } } if (input.queryIntegerEnumList != null) { for (var value in input.queryIntegerEnumList!) { - b.queryParameters.add( - 'IntegerEnumList', - value.value.toString(), - ); + b.queryParameters.add('IntegerEnumList', value.value.toString()); } } }); @@ -132,10 +124,7 @@ class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -160,11 +149,7 @@ class OmitsSerializingEmptyListsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart index c75b05a581..38f8ec2933 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_player_action_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.post_player_action_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,37 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation defines a union with a Unit member. -class PostPlayerActionOperation extends _i1.HttpOperation { +class PostPlayerActionOperation + extends + _i1.HttpOperation< + PostPlayerActionInput, + PostPlayerActionInput, + PostPlayerActionOutput, + PostPlayerActionOutput + > { /// This operation defines a union with a Unit member. PostPlayerActionOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PostPlayerActionInput, + PostPlayerActionInput, + PostPlayerActionOutput, + PostPlayerActionOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class PostPlayerActionOperation extends _i1.HttpOperation - PostPlayerActionOutput.fromResponse( - payload, - response, - ); + ) => PostPlayerActionOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class PostPlayerActionOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart index 3dc800feae..2ff7b81fac 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/post_union_with_json_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.post_union_with_json_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,43 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation defines a union that uses jsonName on some members. -class PostUnionWithJsonNameOperation extends _i1.HttpOperation< - PostUnionWithJsonNameInput, - PostUnionWithJsonNameInput, - PostUnionWithJsonNameOutput, - PostUnionWithJsonNameOutput> { +class PostUnionWithJsonNameOperation + extends + _i1.HttpOperation< + PostUnionWithJsonNameInput, + PostUnionWithJsonNameInput, + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutput + > { /// This operation defines a union that uses jsonName on some members. PostUnionWithJsonNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PostUnionWithJsonNameInput, - PostUnionWithJsonNameInput, - PostUnionWithJsonNameOutput, - PostUnionWithJsonNameOutput>> protocols = [ + _i1.HttpProtocol< + PostUnionWithJsonNameInput, + PostUnionWithJsonNameInput, + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +87,7 @@ class PostUnionWithJsonNameOperation extends _i1.HttpOperation< PostUnionWithJsonNameOutput buildOutput( PostUnionWithJsonNameOutput payload, _i3.AWSBaseHttpResponse response, - ) => - PostUnionWithJsonNameOutput.fromResponse( - payload, - response, - ); + ) => PostUnionWithJsonNameOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +111,7 @@ class PostUnionWithJsonNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart index aa4119e448..cd19237eea 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,39 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/put_with_content_enco import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,10 +86,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -104,11 +111,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart index 0156d41f26..47587593af 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,41 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,10 +79,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/QueryIdempotencyTokenAutoFill'; if (input.token != null) { - b.queryParameters.add( - 'token', - input.token!, - ); + b.queryParameters.add('token', input.token!); } }); @@ -80,10 +87,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -108,11 +112,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart index d5006363ac..babb6ebb42 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_params_as_string_list_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.query_params_as_string_list_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,40 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/query_params_as_strin import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> { +class QueryParamsAsStringListMapOperation + extends + _i1.HttpOperation< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > { QueryParamsAsStringListMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -67,18 +77,12 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/StringListMap'; if (input.qux != null) { - b.queryParameters.add( - 'corge', - input.qux!, - ); + b.queryParameters.add('corge', input.qux!); } if (input.foo != null) { for (var entry in input.foo!.toMap().entries) { for (var value in entry.value) { - b.queryParameters.add( - entry.key, - value, - ); + b.queryParameters.add(entry.key, value); } } } @@ -88,10 +92,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -116,11 +117,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart index 02d43479b5..12d3599c53 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/query_precedence_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.query_precedence_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/query_precedence_inpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryPrecedenceOperation extends _i1.HttpOperation< - QueryPrecedenceInputPayload, QueryPrecedenceInput, _i1.Unit, _i1.Unit> { +class QueryPrecedenceOperation + extends + _i1.HttpOperation< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > { QueryPrecedenceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,17 +77,11 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/Precedence'; if (input.foo != null) { - b.queryParameters.add( - 'bar', - input.foo!, - ); + b.queryParameters.add('bar', input.foo!); } if (input.baz != null) { for (var entry in input.baz!.toMap().entries) { - b.queryParameters.add( - entry.key, - entry.value, - ); + b.queryParameters.add(entry.key, entry.value); } } }); @@ -83,10 +90,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -111,11 +115,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart index cd6e640949..309d339d50 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/recursive_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.recursive_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveShapesOperation extends _i1.HttpOperation< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> { +class RecursiveShapesOperation + extends + _i1.HttpOperation< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > { /// Recursive shapes RecursiveShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -76,11 +86,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< RecursiveShapesInputOutput buildOutput( RecursiveShapesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveShapesInputOutput.fromResponse( - payload, - response, - ); + ) => RecursiveShapesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -104,11 +110,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart index 99b47ac003..62daa61735 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_http_fallback_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.response_code_http_fallback_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,43 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/response_code_http_fa import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class ResponseCodeHttpFallbackOperation extends _i1.HttpOperation< - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput> { +class ResponseCodeHttpFallbackOperation + extends + _i1.HttpOperation< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput + > { ResponseCodeHttpFallbackOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput>> protocols = [ + _i1.HttpProtocol< + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,11 +85,7 @@ class ResponseCodeHttpFallbackOperation extends _i1.HttpOperation< ResponseCodeHttpFallbackInputOutput buildOutput( ResponseCodeHttpFallbackInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - ResponseCodeHttpFallbackInputOutput.fromResponse( - payload, - response, - ); + ) => ResponseCodeHttpFallbackInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +109,7 @@ class ResponseCodeHttpFallbackOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart index 1f5454a394..02a5c6996e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/response_code_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.response_code_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,37 +12,50 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/response_code_require import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, - _i1.Unit, ResponseCodeRequiredOutputPayload, ResponseCodeRequiredOutput> { +class ResponseCodeRequiredOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutput + > { ResponseCodeRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, ResponseCodeRequiredOutputPayload, - ResponseCodeRequiredOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,9 +73,9 @@ class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/responseCodeRequired'; - }); + b.method = 'GET'; + b.path = r'/responseCodeRequired'; + }); @override int successCode([ResponseCodeRequiredOutput? output]) => @@ -72,11 +85,7 @@ class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, ResponseCodeRequiredOutput buildOutput( ResponseCodeRequiredOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - ResponseCodeRequiredOutput.fromResponse( - payload, - response, - ); + ) => ResponseCodeRequiredOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class ResponseCodeRequiredOperation extends _i1.HttpOperation<_i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart index 8185ac8ebf..e53f15d87a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,42 +12,49 @@ import 'package:rest_json1_v2/src/rest_json_protocol/model/simple_scalar_propert import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +89,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +113,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart index 8661fd1ed1..b108e3ccbe 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.streaming_traits_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a streaming blob shape in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. -class StreamingTraitsOperation extends _i1.HttpOperation< - _i2.Stream>, - StreamingTraitsInputOutput, - _i2.Stream>, - StreamingTraitsInputOutput> { +class StreamingTraitsOperation + extends + _i1.HttpOperation< + _i2.Stream>, + StreamingTraitsInputOutput, + _i2.Stream>, + StreamingTraitsInputOutput + > { /// This examples serializes a streaming blob shape in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. StreamingTraitsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, StreamingTraitsInputOutput, - _i2.Stream>, StreamingTraitsInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + StreamingTraitsInputOutput, + _i2.Stream>, + StreamingTraitsInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +90,7 @@ class StreamingTraitsOperation extends _i1.HttpOperation< StreamingTraitsInputOutput buildOutput( _i2.Stream> payload, _i4.AWSBaseHttpResponse response, - ) => - StreamingTraitsInputOutput.fromResponse( - payload, - response, - ); + ) => StreamingTraitsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +114,7 @@ class StreamingTraitsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart index 812c690b06..360fc6d6ab 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_require_length_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.streaming_traits_require_length_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a streaming blob shape with a required content length in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. -class StreamingTraitsRequireLengthOperation extends _i1.HttpOperation< - _i2.Stream>, - StreamingTraitsRequireLengthInput, - _i1.Unit, - _i1.Unit> { +class StreamingTraitsRequireLengthOperation + extends + _i1.HttpOperation< + _i2.Stream>, + StreamingTraitsRequireLengthInput, + _i1.Unit, + _i1.Unit + > { /// This examples serializes a streaming blob shape with a required content length in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. StreamingTraitsRequireLengthOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, StreamingTraitsRequireLengthInput, - _i1.Unit, _i1.Unit>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + StreamingTraitsRequireLengthInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,10 +88,7 @@ class StreamingTraitsRequireLengthOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i4.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i4.AWSBaseHttpResponse response) => payload; @override @@ -106,11 +113,7 @@ class StreamingTraitsRequireLengthOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart index 574a3661fe..029846461f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/streaming_traits_with_media_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.streaming_traits_with_media_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a streaming media-typed blob shape in the request body. This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. -class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput, - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput> { +class StreamingTraitsWithMediaTypeOperation + extends + _i1.HttpOperation< + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput, + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput + > { /// This examples serializes a streaming media-typed blob shape in the request body. This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. StreamingTraitsWithMediaTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput, - _i2.Stream>, - StreamingTraitsWithMediaTypeInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput, + _i2.Stream>, + StreamingTraitsWithMediaTypeInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'text/plain', - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -84,11 +91,7 @@ class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< StreamingTraitsWithMediaTypeInputOutput buildOutput( _i2.Stream> payload, _i4.AWSBaseHttpResponse response, - ) => - StreamingTraitsWithMediaTypeInputOutput.fromResponse( - payload, - response, - ); + ) => StreamingTraitsWithMediaTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +115,7 @@ class StreamingTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart index 09f98f3770..9a372528e7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_body_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.test_body_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,43 +13,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example operation serializes a structure in the HTTP body. It should ensure Content-Type: application/json is used in all requests and that an "empty" body is an empty JSON document ({}). -class TestBodyStructureOperation extends _i1.HttpOperation< - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput> { +class TestBodyStructureOperation + extends + _i1.HttpOperation< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput + > { /// This example operation serializes a structure in the HTTP body. It should ensure Content-Type: application/json is used in all requests and that an "empty" body is an empty JSON document ({}). TestBodyStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput>> protocols = [ + _i1.HttpProtocol< + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -84,11 +91,7 @@ class TestBodyStructureOperation extends _i1.HttpOperation< TestBodyStructureInputOutput buildOutput( TestBodyStructureInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TestBodyStructureInputOutput.fromResponse( - payload, - response, - ); + ) => TestBodyStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -112,11 +115,7 @@ class TestBodyStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart index 17840a80d0..e792604403 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_no_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.test_no_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example operation serializes a request without an HTTP body. These tests are to ensure we do not attach a body or related headers (Content-Length, Content-Type) to operations that semantically cannot produce an HTTP body. -class TestNoPayloadOperation extends _i1.HttpOperation< - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput> { +class TestNoPayloadOperation + extends + _i1.HttpOperation< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput + > { /// This example operation serializes a request without an HTTP body. These tests are to ensure we do not attach a body or related headers (Content-Length, Content-Type) to operations that semantically cannot produce an HTTP body. TestNoPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput>> protocols = [ + _i1.HttpProtocol< + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -85,11 +92,7 @@ class TestNoPayloadOperation extends _i1.HttpOperation< TestNoPayloadInputOutput buildOutput( TestNoPayloadInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TestNoPayloadInputOutput.fromResponse( - payload, - response, - ); + ) => TestNoPayloadInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -113,11 +116,7 @@ class TestNoPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart index 90c4437c87..cd69f927ec 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_blob_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.test_payload_blob_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,37 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This example operation serializes a payload targeting a blob. The Blob shape is not structured content and we cannot make assumptions about what data will be sent. This test ensures only a generic "Content-Type: application/octet-stream" header is used, and that we are not treating an empty body as an empty JSON document. -class TestPayloadBlobOperation extends _i1.HttpOperation<_i2.Uint8List, - TestPayloadBlobInputOutput, _i2.Uint8List, TestPayloadBlobInputOutput> { +class TestPayloadBlobOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + TestPayloadBlobInputOutput, + _i2.Uint8List, + TestPayloadBlobInputOutput + > { /// This example operation serializes a payload targeting a blob. The Blob shape is not structured content and we cannot make assumptions about what data will be sent. This test ensures only a generic "Content-Type: application/octet-stream" header is used, and that we are not treating an empty body as an empty JSON document. TestPayloadBlobOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, TestPayloadBlobInputOutput, _i2.Uint8List, - TestPayloadBlobInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + TestPayloadBlobInputOutput, + _i2.Uint8List, + TestPayloadBlobInputOutput + > + > + protocols = [ _i3.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,11 +92,7 @@ class TestPayloadBlobOperation extends _i1.HttpOperation<_i2.Uint8List, TestPayloadBlobInputOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - TestPayloadBlobInputOutput.fromResponse( - payload, - response, - ); + ) => TestPayloadBlobInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -107,11 +116,7 @@ class TestPayloadBlobOperation extends _i1.HttpOperation<_i2.Uint8List, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart index c6a3526d1a..09179b9c1a 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/test_payload_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.test_payload_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,40 +14,50 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example operation serializes a payload targeting a structure. This enforces the same requirements as TestBodyStructure but with the body specified by the @httpPayload trait. -class TestPayloadStructureOperation extends _i1.HttpOperation< - PayloadConfig, - TestPayloadStructureInputOutput, - PayloadConfig, - TestPayloadStructureInputOutput> { +class TestPayloadStructureOperation + extends + _i1.HttpOperation< + PayloadConfig, + TestPayloadStructureInputOutput, + PayloadConfig, + TestPayloadStructureInputOutput + > { /// This example operation serializes a payload targeting a structure. This enforces the same requirements as TestBodyStructure but with the body specified by the @httpPayload trait. TestPayloadStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PayloadConfig, + TestPayloadStructureInputOutput, + PayloadConfig, + TestPayloadStructureInputOutput + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -82,11 +92,7 @@ class TestPayloadStructureOperation extends _i1.HttpOperation< TestPayloadStructureInputOutput buildOutput( PayloadConfig? payload, _i3.AWSBaseHttpResponse response, - ) => - TestPayloadStructureInputOutput.fromResponse( - payload, - response, - ); + ) => TestPayloadStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -110,11 +116,7 @@ class TestPayloadStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart index ddd41f6ef9..caf13d094b 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/timestamp_format_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.timestamp_format_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,44 +13,51 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example tests how timestamp request and response headers are serialized. -class TimestampFormatHeadersOperation extends _i1.HttpOperation< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> { +class TimestampFormatHeadersOperation + extends + _i1.HttpOperation< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > { /// This example tests how timestamp request and response headers are serialized. TimestampFormatHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo>> protocols = [ + _i1.HttpProtocol< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,40 +80,45 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< b.path = r'/TimestampFormatHeaders'; if (input.memberEpochSeconds != null) { b.headers['X-memberEpochSeconds'] = - _i1.Timestamp(input.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.memberHttpDate != null) { - b.headers['X-memberHttpDate'] = _i1.Timestamp(input.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-memberHttpDate'] = + _i1.Timestamp( + input.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.memberDateTime != null) { - b.headers['X-memberDateTime'] = _i1.Timestamp(input.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-memberDateTime'] = + _i1.Timestamp( + input.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (input.defaultFormat != null) { - b.headers['X-defaultFormat'] = _i1.Timestamp(input.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-defaultFormat'] = + _i1.Timestamp( + input.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetEpochSeconds != null) { b.headers['X-targetEpochSeconds'] = - _i1.Timestamp(input.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.targetHttpDate != null) { - b.headers['X-targetHttpDate'] = _i1.Timestamp(input.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-targetHttpDate'] = + _i1.Timestamp( + input.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetDateTime != null) { - b.headers['X-targetDateTime'] = _i1.Timestamp(input.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-targetDateTime'] = + _i1.Timestamp( + input.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } }); @@ -117,11 +129,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< TimestampFormatHeadersIo buildOutput( TimestampFormatHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.fromResponse( - payload, - response, - ); + ) => TimestampFormatHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -145,11 +153,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart index c48df8223c..fc18d40f09 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/operation/unit_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.operation.unit_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,29 +20,30 @@ class UnitInputAndOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,18 +61,15 @@ class UnitInputAndOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/UnitInputAndOutput'; - }); + b.method = 'POST'; + b.path = r'/UnitInputAndOutput'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -96,11 +94,7 @@ class UnitInputAndOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart index 4a86b59359..46452d91a8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.rest_json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -202,11 +202,11 @@ class RestJsonProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -228,10 +228,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). @@ -244,10 +241,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. @@ -260,23 +254,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example serializes a document as part of the payload. @@ -289,10 +278,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes a document as the entire HTTP payload. @@ -305,10 +291,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. @@ -321,10 +304,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -333,10 +313,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -348,37 +325,30 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has four possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. 4. A FooError. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation hostWithPathOperation({_i1.AWSHttpClient? client}) { @@ -387,10 +357,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example tests httpChecksumRequired trait @@ -403,10 +370,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpEnumPayload( @@ -418,10 +382,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a blob shape in the payload. In this example, no JSON document is synthesized because the payload is not a structure or a union type. @@ -434,15 +395,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. _i2.SmithyOperation - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -451,15 +409,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. _i2.SmithyOperation - httpPayloadWithStructure( + httpPayloadWithStructure( HttpPayloadWithStructureInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -468,10 +423,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples adds headers to the input of a request and response by prefix./// @@ -487,15 +439,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Clients that perform this test extract all headers from the response. _i2.SmithyOperation - httpPrefixHeadersInResponse( + httpPrefixHeadersInResponse( HttpPrefixHeadersInResponseInput input, { _i1.AWSHttpClient? client, }) { @@ -504,10 +453,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithFloatLabels( @@ -519,10 +465,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithGreedyLabelInPath( @@ -534,10 +477,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. @@ -550,10 +490,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests serialize different timestamp formats in the URI path. @@ -566,10 +503,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithRegexLiteral( @@ -581,23 +515,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation httpResponseCode( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation httpResponseCode({ + _i1.AWSHttpClient? client, + }) { return HttpResponseCodeOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation httpStringPayload( @@ -609,24 +538,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. _i2.SmithyOperation - ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { + ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { return IgnoreQueryParamsInResponseOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. @@ -639,10 +562,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Blobs are base64 encoded @@ -655,10 +575,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -671,10 +588,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes intEnums as top level properties, in lists, sets, and maps. @@ -687,10 +601,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test case serializes JSON lists for the following cases for both input and output: 1. Normal JSON lists. 2. Normal JSON sets. 3. JSON lists of lists. 4. Lists of structures. @@ -703,10 +614,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests basic map serialization. @@ -719,10 +627,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. @@ -735,10 +640,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation uses unions for inputs and outputs. @@ -751,49 +653,38 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation malformedAcceptWithBody( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation malformedAcceptWithBody({ + _i1.AWSHttpClient? client, + }) { return MalformedAcceptWithBodyOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation - malformedAcceptWithGenericString({_i1.AWSHttpClient? client}) { + malformedAcceptWithGenericString({_i1.AWSHttpClient? client}) { return MalformedAcceptWithGenericStringOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation - malformedAcceptWithPayload({_i1.AWSHttpClient? client}) { + malformedAcceptWithPayload({_i1.AWSHttpClient? client}) { return MalformedAcceptWithPayloadOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation malformedBlob( @@ -805,10 +696,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedBoolean( @@ -820,10 +708,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedByte( @@ -835,10 +720,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithBody( @@ -850,10 +732,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithGenericString( @@ -865,10 +744,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithPayload( @@ -880,23 +756,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation malformedContentTypeWithoutBody( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation malformedContentTypeWithoutBody({ + _i1.AWSHttpClient? client, + }) { return MalformedContentTypeWithoutBodyOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation malformedContentTypeWithoutBodyEmptyInput( @@ -908,10 +779,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedDouble( @@ -923,10 +791,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedFloat( @@ -938,10 +803,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedInteger( @@ -953,10 +815,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedList( @@ -968,10 +827,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLong( @@ -983,10 +839,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedMap( @@ -998,10 +851,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRequestBody( @@ -1013,10 +863,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedShort( @@ -1028,10 +875,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedString( @@ -1043,10 +887,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampBodyDateTime( @@ -1058,10 +899,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampBodyDefault( @@ -1073,10 +911,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampBodyHttpDate( @@ -1088,10 +923,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampHeaderDateTime( @@ -1103,10 +935,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampHeaderDefault( @@ -1118,10 +947,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampHeaderEpoch( @@ -1133,10 +959,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampPathDefault( @@ -1148,10 +971,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampPathEpoch( @@ -1163,10 +983,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampPathHttpDate( @@ -1178,10 +995,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampQueryDefault( @@ -1193,10 +1007,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampQueryEpoch( @@ -1208,10 +1019,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedTimestampQueryHttpDate( @@ -1223,10 +1031,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedUnion( @@ -1238,10 +1043,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example ensures that mediaType strings are base64 encoded in headers. @@ -1254,10 +1056,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -1267,24 +1066,19 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -1297,10 +1091,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -1313,10 +1104,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Omits null, but serializes empty string value. @@ -1329,10 +1117,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Omits serializing empty lists. Because empty strings are serilized as \`Foo=\`, empty lists cannot also be serialized as \`Foo=\` and instead must be omitted. @@ -1345,10 +1130,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation defines a union with a Unit member. @@ -1361,10 +1143,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation defines a union that uses jsonName on some members. @@ -1377,10 +1156,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -1392,10 +1168,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -1408,10 +1181,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryParamsAsStringListMap( @@ -1423,10 +1193,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryPrecedence( @@ -1438,10 +1205,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes @@ -1454,14 +1218,11 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation - responseCodeHttpFallback( + responseCodeHttpFallback( ResponseCodeHttpFallbackInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -1470,23 +1231,18 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation responseCodeRequired( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation responseCodeRequired({ + _i1.AWSHttpClient? client, + }) { return ResponseCodeRequiredOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation simpleScalarProperties( @@ -1498,10 +1254,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a streaming blob shape in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. @@ -1514,10 +1267,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a streaming blob shape with a required content length in the request body. In this example, no JSON document is synthesized because the payload is not a structure or a union type. @@ -1530,15 +1280,12 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a streaming media-typed blob shape in the request body. This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. _i2.SmithyOperation - streamingTraitsWithMediaType( + streamingTraitsWithMediaType( StreamingTraitsWithMediaTypeInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -1547,10 +1294,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a structure in the HTTP body. It should ensure Content-Type: application/json is used in all requests and that an "empty" body is an empty JSON document ({}). @@ -1563,10 +1307,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a request without an HTTP body. These tests are to ensure we do not attach a body or related headers (Content-Length, Content-Type) to operations that semantically cannot produce an HTTP body. @@ -1579,10 +1320,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a payload targeting a blob. The Blob shape is not structured content and we cannot make assumptions about what data will be sent. This test ensures only a generic "Content-Type: application/octet-stream" header is used, and that we are not treating an empty body as an empty JSON document. @@ -1595,10 +1333,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example operation serializes a payload targeting a structure. This enforces the same requirements as TestBodyStructure but with the body specified by the @httpPayload trait. @@ -1611,10 +1346,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example tests how timestamp request and response headers are serialized. @@ -1627,10 +1359,7 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test is similar to NoInputAndNoOutput, but uses explicit Unit types. @@ -1640,9 +1369,6 @@ class RestJsonProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart index 89fc66d4d6..6368a66c90 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/rest_json_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_protocol.rest_json_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -138,66 +138,26 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/ConstantQueryString/?foo=bar&hello', service.constantQueryString, ); - router.add( - 'POST', - r'/DatetimeOffsets', - service.datetimeOffsets, - ); - router.add( - 'PUT', - r'/DocumentType', - service.documentType, - ); - router.add( - 'PUT', - r'/DocumentTypeAsPayload', - service.documentTypeAsPayload, - ); + router.add('POST', r'/DatetimeOffsets', service.datetimeOffsets); + router.add('PUT', r'/DocumentType', service.documentType); + router.add('PUT', r'/DocumentTypeAsPayload', service.documentTypeAsPayload); router.add( 'POST', r'/EmptyInputAndEmptyOutput', service.emptyInputAndEmptyOutput, ); - router.add( - 'POST', - r'/EndpointOperation', - service.endpointOperation, - ); + router.add('POST', r'/EndpointOperation', service.endpointOperation); router.add( 'POST', r'/EndpointWithHostLabelOperation', service.endpointWithHostLabelOperation, ); - router.add( - 'POST', - r'/FractionalSeconds', - service.fractionalSeconds, - ); - router.add( - 'PUT', - r'/GreetingWithErrors', - service.greetingWithErrors, - ); - router.add( - 'GET', - r'/HostWithPathOperation', - service.hostWithPathOperation, - ); - router.add( - 'POST', - r'/HttpChecksumRequired', - service.httpChecksumRequired, - ); - router.add( - 'POST', - r'/EnumPayload', - service.httpEnumPayload, - ); - router.add( - 'POST', - r'/HttpPayloadTraits', - service.httpPayloadTraits, - ); + router.add('POST', r'/FractionalSeconds', service.fractionalSeconds); + router.add('PUT', r'/GreetingWithErrors', service.greetingWithErrors); + router.add('GET', r'/HostWithPathOperation', service.hostWithPathOperation); + router.add('POST', r'/HttpChecksumRequired', service.httpChecksumRequired); + router.add('POST', r'/EnumPayload', service.httpEnumPayload); + router.add('POST', r'/HttpPayloadTraits', service.httpPayloadTraits); router.add( 'POST', r'/HttpPayloadTraitsWithMediaType', @@ -208,11 +168,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/HttpPayloadWithStructure', service.httpPayloadWithStructure, ); - router.add( - 'GET', - r'/HttpPrefixHeaders', - service.httpPrefixHeaders, - ); + router.add('GET', r'/HttpPrefixHeaders', service.httpPrefixHeaders); router.add( 'GET', r'/HttpPrefixHeadersResponse', @@ -243,16 +199,8 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/ReDosLiteral//(a+)+', service.httpRequestWithRegexLiteral, ); - router.add( - 'PUT', - r'/HttpResponseCode', - service.httpResponseCode, - ); - router.add( - 'POST', - r'/StringPayload', - service.httpStringPayload, - ); + router.add('PUT', r'/HttpResponseCode', service.httpResponseCode); + router.add('POST', r'/StringPayload', service.httpStringPayload); router.add( 'GET', r'/IgnoreQueryParamsInResponse', @@ -263,41 +211,13 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/InputAndOutputWithHeaders', service.inputAndOutputWithHeaders, ); - router.add( - 'POST', - r'/JsonBlobs', - service.jsonBlobs, - ); - router.add( - 'PUT', - r'/JsonEnums', - service.jsonEnums, - ); - router.add( - 'PUT', - r'/JsonIntEnums', - service.jsonIntEnums, - ); - router.add( - 'PUT', - r'/JsonLists', - service.jsonLists, - ); - router.add( - 'POST', - r'/JsonMaps', - service.jsonMaps, - ); - router.add( - 'POST', - r'/JsonTimestamps', - service.jsonTimestamps, - ); - router.add( - 'PUT', - r'/JsonUnions', - service.jsonUnions, - ); + router.add('POST', r'/JsonBlobs', service.jsonBlobs); + router.add('PUT', r'/JsonEnums', service.jsonEnums); + router.add('PUT', r'/JsonIntEnums', service.jsonIntEnums); + router.add('PUT', r'/JsonLists', service.jsonLists); + router.add('POST', r'/JsonMaps', service.jsonMaps); + router.add('POST', r'/JsonTimestamps', service.jsonTimestamps); + router.add('PUT', r'/JsonUnions', service.jsonUnions); router.add( 'POST', r'/MalformedAcceptWithBody', @@ -313,21 +233,13 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/MalformedAcceptWithPayload', service.malformedAcceptWithPayload, ); - router.add( - 'POST', - r'/MalformedBlob', - service.malformedBlob, - ); + router.add('POST', r'/MalformedBlob', service.malformedBlob); router.add( 'POST', r'/MalformedBoolean/', service.malformedBoolean, ); - router.add( - 'POST', - r'/MalformedByte/', - service.malformedByte, - ); + router.add('POST', r'/MalformedByte/', service.malformedByte); router.add( 'POST', r'/MalformedContentTypeWithBody', @@ -368,36 +280,16 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/MalformedInteger/', service.malformedInteger, ); - router.add( - 'POST', - r'/MalformedList', - service.malformedList, - ); - router.add( - 'POST', - r'/MalformedLong/', - service.malformedLong, - ); - router.add( - 'POST', - r'/MalformedMap', - service.malformedMap, - ); - router.add( - 'POST', - r'/MalformedRequestBody', - service.malformedRequestBody, - ); + router.add('POST', r'/MalformedList', service.malformedList); + router.add('POST', r'/MalformedLong/', service.malformedLong); + router.add('POST', r'/MalformedMap', service.malformedMap); + router.add('POST', r'/MalformedRequestBody', service.malformedRequestBody); router.add( 'POST', r'/MalformedShort/', service.malformedShort, ); - router.add( - 'POST', - r'/MalformedString', - service.malformedString, - ); + router.add('POST', r'/MalformedString', service.malformedString); router.add( 'POST', r'/MalformedTimestampBodyDateTime', @@ -458,26 +350,10 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/MalformedTimestampQueryHttpDate', service.malformedTimestampQueryHttpDate, ); - router.add( - 'POST', - r'/MalformedUnion', - service.malformedUnion, - ); - router.add( - 'GET', - r'/MediaTypeHeader', - service.mediaTypeHeader, - ); - router.add( - 'POST', - r'/NoInputAndNoOutput', - service.noInputAndNoOutput, - ); - router.add( - 'POST', - r'/NoInputAndOutputOutput', - service.noInputAndOutput, - ); + router.add('POST', r'/MalformedUnion', service.malformedUnion); + router.add('GET', r'/MediaTypeHeader', service.mediaTypeHeader); + router.add('POST', r'/NoInputAndNoOutput', service.noInputAndNoOutput); + router.add('POST', r'/NoInputAndOutputOutput', service.noInputAndOutput); router.add( 'GET', r'/NullAndEmptyHeadersClient', @@ -498,11 +374,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/OmitsSerializingEmptyLists', service.omitsSerializingEmptyLists, ); - router.add( - 'POST', - r'/PostPlayerAction', - service.postPlayerAction, - ); + router.add('POST', r'/PostPlayerAction', service.postPlayerAction); router.add( 'POST', r'/PostUnionWithJsonName', @@ -518,41 +390,21 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/QueryIdempotencyTokenAutoFill', service.queryIdempotencyTokenAutoFill, ); - router.add( - 'POST', - r'/StringListMap', - service.queryParamsAsStringListMap, - ); - router.add( - 'POST', - r'/Precedence', - service.queryPrecedence, - ); - router.add( - 'PUT', - r'/RecursiveShapes', - service.recursiveShapes, - ); + router.add('POST', r'/StringListMap', service.queryParamsAsStringListMap); + router.add('POST', r'/Precedence', service.queryPrecedence); + router.add('PUT', r'/RecursiveShapes', service.recursiveShapes); router.add( 'GET', r'/responseCodeHttpFallback', service.responseCodeHttpFallback, ); - router.add( - 'GET', - r'/responseCodeRequired', - service.responseCodeRequired, - ); + router.add('GET', r'/responseCodeRequired', service.responseCodeRequired); router.add( 'PUT', r'/SimpleScalarProperties', service.simpleScalarProperties, ); - router.add( - 'POST', - r'/StreamingTraits', - service.streamingTraits, - ); + router.add('POST', r'/StreamingTraits', service.streamingTraits); router.add( 'POST', r'/StreamingTraitsRequireLength', @@ -563,36 +415,16 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { r'/StreamingTraitsWithMediaType', service.streamingTraitsWithMediaType, ); - router.add( - 'POST', - r'/body', - service.testBodyStructure, - ); - router.add( - 'GET', - r'/no_payload', - service.testNoPayload, - ); - router.add( - 'POST', - r'/blob_payload', - service.testPayloadBlob, - ); - router.add( - 'POST', - r'/payload', - service.testPayloadStructure, - ); + router.add('POST', r'/body', service.testBodyStructure); + router.add('GET', r'/no_payload', service.testNoPayload); + router.add('POST', r'/blob_payload', service.testPayloadBlob); + router.add('POST', r'/payload', service.testPayloadStructure); router.add( 'POST', r'/TimestampFormatHeaders', service.timestampFormatHeaders, ); - router.add( - 'POST', - r'/UnitInputAndOutput', - service.unitInputAndOutput, - ); + router.add('POST', r'/UnitInputAndOutput', service.unitInputAndOutput); return router; }(); @@ -624,10 +456,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { EmptyInputAndEmptyOutputInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelOperation( HostLabelInput input, _i1.Context context, @@ -657,7 +486,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, _i1.Context context, ); @@ -742,10 +571,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - malformedAcceptWithGenericString( - _i1.Unit input, - _i1.Context context, - ); + malformedAcceptWithGenericString(_i1.Unit input, _i1.Context context); _i3.Future malformedAcceptWithPayload( _i1.Unit input, _i1.Context context, @@ -874,10 +700,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { MediaTypeHeaderInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> noInputAndNoOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> noInputAndNoOutput(_i1.Unit input, _i1.Context context); _i3.Future noInputAndOutput( _i1.Unit input, _i1.Context context, @@ -947,7 +770,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - streamingTraitsWithMediaType( + streamingTraitsWithMediaType( StreamingTraitsWithMediaTypeInputOutput input, _i1.Context context, ); @@ -971,10 +794,7 @@ abstract class RestJsonProtocolServerBase extends _i1.HttpServerBase { TimestampFormatHeadersIo input, _i1.Context context, ); - _i3.Future<_i1.Unit> unitInputAndOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> unitInputAndOutput(_i1.Unit input, _i1.Context context); _i3.Future<_i4.Response> call(_i4.Request request) => _router(request); } @@ -986,771 +806,1013 @@ class _RestJsonProtocolServer final RestJsonProtocolServerBase service; late final _i1.HttpProtocol< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> _allQueryStringTypesProtocol = _i2.RestJson1Protocol( + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + _allQueryStringTypesProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> _constantAndVariableQueryStringProtocol = _i2.RestJson1Protocol( + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantAndVariableQueryStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> _constantQueryStringProtocol = _i2.RestJson1Protocol( + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantQueryStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput> _datetimeOffsetsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + _datetimeOffsetsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - DocumentTypeInputOutput, - DocumentTypeInputOutput, - DocumentTypeInputOutput, - DocumentTypeInputOutput> _documentTypeProtocol = _i2.RestJson1Protocol( + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput, + DocumentTypeInputOutput + > + _documentTypeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i5.JsonObject, DocumentTypeAsPayloadInputOutput, - _i5.JsonObject, DocumentTypeAsPayloadInputOutput> - _documentTypeAsPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i5.JsonObject, + DocumentTypeAsPayloadInputOutput, + _i5.JsonObject, + DocumentTypeAsPayloadInputOutput + > + _documentTypeAsPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> _emptyInputAndEmptyOutputProtocol = - _i2.RestJson1Protocol( + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + _emptyInputAndEmptyOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.RestJson1Protocol( + _endpointOperationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + HostLabelInput, + HostLabelInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput> _fractionalSecondsProtocol = - _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + _fractionalSecondsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> - _greetingWithErrorsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _hostWithPathOperationProtocol = _i2.RestJson1Protocol( + _hostWithPathOperationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput, - HttpChecksumRequiredInputOutput> _httpChecksumRequiredProtocol = - _i2.RestJson1Protocol( + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput, + HttpChecksumRequiredInputOutput + > + _httpChecksumRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _httpEnumPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + StringEnum, + EnumPayloadInput, + StringEnum, + EnumPayloadInput + > + _httpEnumPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i6.Uint8List, HttpPayloadTraitsInputOutput, - _i6.Uint8List, HttpPayloadTraitsInputOutput> - _httpPayloadTraitsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i6.Uint8List, + HttpPayloadTraitsInputOutput, + _i6.Uint8List, + HttpPayloadTraitsInputOutput + > + _httpPayloadTraitsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i6.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i6.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> - _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( + _i6.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i6.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'text/plain', ); late final _i1.HttpProtocol< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> - _httpPayloadWithStructureProtocol = _i2.RestJson1Protocol( + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + _httpPayloadWithStructureProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpPrefixHeadersInputPayload, - HttpPrefixHeadersInput, - HttpPrefixHeadersOutputPayload, - HttpPrefixHeadersOutput> _httpPrefixHeadersProtocol = - _i2.RestJson1Protocol( + HttpPrefixHeadersInputPayload, + HttpPrefixHeadersInput, + HttpPrefixHeadersOutputPayload, + HttpPrefixHeadersOutput + > + _httpPrefixHeadersProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseInput, - HttpPrefixHeadersInResponseOutputPayload, - HttpPrefixHeadersInResponseOutput> - _httpPrefixHeadersInResponseProtocol = _i2.RestJson1Protocol( + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseInput, + HttpPrefixHeadersInResponseOutputPayload, + HttpPrefixHeadersInResponseOutput + > + _httpPrefixHeadersInResponseProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithFloatLabelsProtocol = _i2.RestJson1Protocol( + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithFloatLabelsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _httpRequestWithGreedyLabelInPathProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithGreedyLabelInPathProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsProtocol = _i2.RestJson1Protocol( + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsAndTimestampFormatProtocol = - _i2.RestJson1Protocol( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsAndTimestampFormatProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - HttpRequestWithRegexLiteralInputPayload, - HttpRequestWithRegexLiteralInput, - _i1.Unit, - _i1.Unit> _httpRequestWithRegexLiteralProtocol = _i2.RestJson1Protocol( + HttpRequestWithRegexLiteralInputPayload, + HttpRequestWithRegexLiteralInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithRegexLiteralProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput> _httpResponseCodeProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + _httpResponseCodeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _httpStringPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + String, + StringPayloadInput, + String, + StringPayloadInput + > + _httpStringPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - IgnoreQueryParamsInResponseOutput, IgnoreQueryParamsInResponseOutput> - _ignoreQueryParamsInResponseProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + _ignoreQueryParamsInResponseProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> _inputAndOutputWithHeadersProtocol = - _i2.RestJson1Protocol( + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + _inputAndOutputWithHeadersProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonBlobsInputOutput, - JsonBlobsInputOutput, - JsonBlobsInputOutput, - JsonBlobsInputOutput> _jsonBlobsProtocol = _i2.RestJson1Protocol( + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput, + JsonBlobsInputOutput + > + _jsonBlobsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput, - JsonEnumsInputOutput> _jsonEnumsProtocol = _i2.RestJson1Protocol( + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput, + JsonEnumsInputOutput + > + _jsonEnumsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput, - JsonIntEnumsInputOutput> _jsonIntEnumsProtocol = _i2.RestJson1Protocol( + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput, + JsonIntEnumsInputOutput + > + _jsonIntEnumsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonListsInputOutput, - JsonListsInputOutput, - JsonListsInputOutput, - JsonListsInputOutput> _jsonListsProtocol = _i2.RestJson1Protocol( + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput, + JsonListsInputOutput + > + _jsonListsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonMapsInputOutput, - JsonMapsInputOutput, - JsonMapsInputOutput, - JsonMapsInputOutput> _jsonMapsProtocol = _i2.RestJson1Protocol( + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput, + JsonMapsInputOutput + > + _jsonMapsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput, - JsonTimestampsInputOutput> _jsonTimestampsProtocol = - _i2.RestJson1Protocol( + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput, + JsonTimestampsInputOutput + > + _jsonTimestampsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - UnionInputOutput, - UnionInputOutput, - UnionInputOutput, - UnionInputOutput> _jsonUnionsProtocol = _i2.RestJson1Protocol( + UnionInputOutput, + UnionInputOutput, + UnionInputOutput, + UnionInputOutput + > + _jsonUnionsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol<_i1.Unit, _i1.Unit, GreetingStruct, GreetingStruct> - _malformedAcceptWithBodyProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingStruct, + GreetingStruct + > + _malformedAcceptWithBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, String, - MalformedAcceptWithGenericStringOutput> - _malformedAcceptWithGenericStringProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + String, + MalformedAcceptWithGenericStringOutput + > + _malformedAcceptWithGenericStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i6.Uint8List, - MalformedAcceptWithPayloadOutput> - _malformedAcceptWithPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + _i6.Uint8List, + MalformedAcceptWithPayloadOutput + > + _malformedAcceptWithPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedBlobProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedBlobInput, + MalformedBlobInput, + _i1.Unit, + _i1.Unit + > + _malformedBlobProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedBooleanInputPayload, - MalformedBooleanInput, - _i1.Unit, - _i1.Unit> _malformedBooleanProtocol = _i2.RestJson1Protocol( + MalformedBooleanInputPayload, + MalformedBooleanInput, + _i1.Unit, + _i1.Unit + > + _malformedBooleanProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedByteProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedByteInputPayload, + MalformedByteInput, + _i1.Unit, + _i1.Unit + > + _malformedByteProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedContentTypeWithBodyProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + GreetingStruct, + GreetingStruct, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedContentTypeWithGenericStringProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + String, + MalformedContentTypeWithGenericStringInput, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithGenericStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i6.Uint8List, - MalformedContentTypeWithPayloadInput, _i1.Unit, _i1.Unit> - _malformedContentTypeWithPayloadProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i6.Uint8List, + MalformedContentTypeWithPayloadInput, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'image/jpeg', ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _malformedContentTypeWithoutBodyProtocol = _i2.RestJson1Protocol( + _malformedContentTypeWithoutBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedContentTypeWithoutBodyEmptyInputInputPayload, - MalformedContentTypeWithoutBodyEmptyInputInput, - _i1.Unit, - _i1.Unit> _malformedContentTypeWithoutBodyEmptyInputProtocol = - _i2.RestJson1Protocol( + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + MalformedContentTypeWithoutBodyEmptyInputInput, + _i1.Unit, + _i1.Unit + > + _malformedContentTypeWithoutBodyEmptyInputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedDoubleProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedDoubleInputPayload, + MalformedDoubleInput, + _i1.Unit, + _i1.Unit + > + _malformedDoubleProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedFloatProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedFloatInputPayload, + MalformedFloatInput, + _i1.Unit, + _i1.Unit + > + _malformedFloatProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedIntegerInputPayload, - MalformedIntegerInput, - _i1.Unit, - _i1.Unit> _malformedIntegerProtocol = _i2.RestJson1Protocol( + MalformedIntegerInputPayload, + MalformedIntegerInput, + _i1.Unit, + _i1.Unit + > + _malformedIntegerProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedListProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedListInput, + MalformedListInput, + _i1.Unit, + _i1.Unit + > + _malformedListProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedLongProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedLongInputPayload, + MalformedLongInput, + _i1.Unit, + _i1.Unit + > + _malformedLongProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1 - .HttpProtocol - _malformedMapProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedMapInput, + MalformedMapInput, + _i1.Unit, + _i1.Unit + > + _malformedMapProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedRequestBodyInput, - MalformedRequestBodyInput, - _i1.Unit, - _i1.Unit> _malformedRequestBodyProtocol = _i2.RestJson1Protocol( + MalformedRequestBodyInput, + MalformedRequestBodyInput, + _i1.Unit, + _i1.Unit + > + _malformedRequestBodyProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedShortProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedShortInputPayload, + MalformedShortInput, + _i1.Unit, + _i1.Unit + > + _malformedShortProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedStringProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedStringInputPayload, + MalformedStringInput, + _i1.Unit, + _i1.Unit + > + _malformedStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampBodyDateTimeInput, - MalformedTimestampBodyDateTimeInput, - _i1.Unit, - _i1.Unit> _malformedTimestampBodyDateTimeProtocol = _i2.RestJson1Protocol( + MalformedTimestampBodyDateTimeInput, + MalformedTimestampBodyDateTimeInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampBodyDateTimeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampBodyDefaultInput, - MalformedTimestampBodyDefaultInput, - _i1.Unit, - _i1.Unit> _malformedTimestampBodyDefaultProtocol = _i2.RestJson1Protocol( + MalformedTimestampBodyDefaultInput, + MalformedTimestampBodyDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampBodyDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampBodyHttpDateInput, - MalformedTimestampBodyHttpDateInput, - _i1.Unit, - _i1.Unit> _malformedTimestampBodyHttpDateProtocol = _i2.RestJson1Protocol( + MalformedTimestampBodyHttpDateInput, + MalformedTimestampBodyHttpDateInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampBodyHttpDateProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedTimestampHeaderDateTimeProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedTimestampHeaderDateTimeInputPayload, + MalformedTimestampHeaderDateTimeInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampHeaderDateTimeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedTimestampHeaderDefaultProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedTimestampHeaderDefaultInputPayload, + MalformedTimestampHeaderDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampHeaderDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampHeaderEpochInputPayload, - MalformedTimestampHeaderEpochInput, - _i1.Unit, - _i1.Unit> _malformedTimestampHeaderEpochProtocol = _i2.RestJson1Protocol( + MalformedTimestampHeaderEpochInputPayload, + MalformedTimestampHeaderEpochInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampHeaderEpochProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampPathDefaultInputPayload, - MalformedTimestampPathDefaultInput, - _i1.Unit, - _i1.Unit> _malformedTimestampPathDefaultProtocol = _i2.RestJson1Protocol( + MalformedTimestampPathDefaultInputPayload, + MalformedTimestampPathDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampPathDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampPathEpochInputPayload, - MalformedTimestampPathEpochInput, - _i1.Unit, - _i1.Unit> _malformedTimestampPathEpochProtocol = _i2.RestJson1Protocol( + MalformedTimestampPathEpochInputPayload, + MalformedTimestampPathEpochInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampPathEpochProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampPathHttpDateInputPayload, - MalformedTimestampPathHttpDateInput, - _i1.Unit, - _i1.Unit> _malformedTimestampPathHttpDateProtocol = _i2.RestJson1Protocol( + MalformedTimestampPathHttpDateInputPayload, + MalformedTimestampPathHttpDateInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampPathHttpDateProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampQueryDefaultInputPayload, - MalformedTimestampQueryDefaultInput, - _i1.Unit, - _i1.Unit> _malformedTimestampQueryDefaultProtocol = _i2.RestJson1Protocol( + MalformedTimestampQueryDefaultInputPayload, + MalformedTimestampQueryDefaultInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampQueryDefaultProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedTimestampQueryEpochInputPayload, - MalformedTimestampQueryEpochInput, - _i1.Unit, - _i1.Unit> _malformedTimestampQueryEpochProtocol = _i2.RestJson1Protocol( + MalformedTimestampQueryEpochInputPayload, + MalformedTimestampQueryEpochInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampQueryEpochProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _malformedTimestampQueryHttpDateProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedTimestampQueryHttpDateInputPayload, + MalformedTimestampQueryHttpDateInput, + _i1.Unit, + _i1.Unit + > + _malformedTimestampQueryHttpDateProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedUnionProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedUnionInput, + MalformedUnionInput, + _i1.Unit, + _i1.Unit + > + _malformedUnionProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MediaTypeHeaderInputPayload, - MediaTypeHeaderInput, - MediaTypeHeaderOutputPayload, - MediaTypeHeaderOutput> _mediaTypeHeaderProtocol = _i2.RestJson1Protocol( + MediaTypeHeaderInputPayload, + MediaTypeHeaderInput, + MediaTypeHeaderOutputPayload, + MediaTypeHeaderOutput + > + _mediaTypeHeaderProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _noInputAndNoOutputProtocol = _i2.RestJson1Protocol( + _noInputAndNoOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput> _noInputAndOutputProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + _noInputAndOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersClientProtocol = - _i2.RestJson1Protocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersClientProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersServerProtocol = - _i2.RestJson1Protocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersServerProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> _omitsNullSerializesEmptyStringProtocol = _i2.RestJson1Protocol( + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + _omitsNullSerializesEmptyStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - OmitsSerializingEmptyListsInputPayload, - OmitsSerializingEmptyListsInput, - _i1.Unit, - _i1.Unit> _omitsSerializingEmptyListsProtocol = _i2.RestJson1Protocol( + OmitsSerializingEmptyListsInputPayload, + OmitsSerializingEmptyListsInput, + _i1.Unit, + _i1.Unit + > + _omitsSerializingEmptyListsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PostPlayerActionInput, - PostPlayerActionInput, - PostPlayerActionOutput, - PostPlayerActionOutput> _postPlayerActionProtocol = _i2.RestJson1Protocol( + PostPlayerActionInput, + PostPlayerActionInput, + PostPlayerActionOutput, + PostPlayerActionOutput + > + _postPlayerActionProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PostUnionWithJsonNameInput, - PostUnionWithJsonNameInput, - PostUnionWithJsonNameOutput, - PostUnionWithJsonNameOutput> _postUnionWithJsonNameProtocol = - _i2.RestJson1Protocol( + PostUnionWithJsonNameInput, + PostUnionWithJsonNameInput, + PostUnionWithJsonNameOutput, + PostUnionWithJsonNameOutput + > + _postUnionWithJsonNameProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.RestJson1Protocol( + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> _queryIdempotencyTokenAutoFillProtocol = _i2.RestJson1Protocol( + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + _queryIdempotencyTokenAutoFillProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> _queryParamsAsStringListMapProtocol = _i2.RestJson1Protocol( + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + _queryParamsAsStringListMapProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _queryPrecedenceProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + _queryPrecedenceProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> _recursiveShapesProtocol = - _i2.RestJson1Protocol( + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + _recursiveShapesProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput, - ResponseCodeHttpFallbackInputOutput> - _responseCodeHttpFallbackProtocol = _i2.RestJson1Protocol( + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput, + ResponseCodeHttpFallbackInputOutput + > + _responseCodeHttpFallbackProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - ResponseCodeRequiredOutputPayload, ResponseCodeRequiredOutput> - _responseCodeRequiredProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + ResponseCodeRequiredOutputPayload, + ResponseCodeRequiredOutput + > + _responseCodeRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.RestJson1Protocol( + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i3.Stream>, StreamingTraitsInputOutput, - _i3.Stream>, StreamingTraitsInputOutput> - _streamingTraitsProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i3.Stream>, + StreamingTraitsInputOutput, + _i3.Stream>, + StreamingTraitsInputOutput + > + _streamingTraitsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i3.Stream>, - StreamingTraitsRequireLengthInput, - _i1.Unit, - _i1.Unit> _streamingTraitsRequireLengthProtocol = _i2.RestJson1Protocol( + _i3.Stream>, + StreamingTraitsRequireLengthInput, + _i1.Unit, + _i1.Unit + > + _streamingTraitsRequireLengthProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - _i3.Stream>, - StreamingTraitsWithMediaTypeInputOutput, - _i3.Stream>, - StreamingTraitsWithMediaTypeInputOutput> - _streamingTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( + _i3.Stream>, + StreamingTraitsWithMediaTypeInputOutput, + _i3.Stream>, + StreamingTraitsWithMediaTypeInputOutput + > + _streamingTraitsWithMediaTypeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'text/plain', ); late final _i1.HttpProtocol< - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput, - TestBodyStructureInputOutputPayload, - TestBodyStructureInputOutput> _testBodyStructureProtocol = - _i2.RestJson1Protocol( + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput, + TestBodyStructureInputOutputPayload, + TestBodyStructureInputOutput + > + _testBodyStructureProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput, - TestNoPayloadInputOutputPayload, - TestNoPayloadInputOutput> _testNoPayloadProtocol = _i2.RestJson1Protocol( + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput, + TestNoPayloadInputOutputPayload, + TestNoPayloadInputOutput + > + _testNoPayloadProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol<_i6.Uint8List, TestPayloadBlobInputOutput, - _i6.Uint8List, TestPayloadBlobInputOutput> _testPayloadBlobProtocol = - _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + _i6.Uint8List, + TestPayloadBlobInputOutput, + _i6.Uint8List, + TestPayloadBlobInputOutput + > + _testPayloadBlobProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol - _testPayloadStructureProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + PayloadConfig, + TestPayloadStructureInputOutput, + PayloadConfig, + TestPayloadStructureInputOutput + > + _testPayloadStructureProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> _timestampFormatHeadersProtocol = - _i2.RestJson1Protocol( + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + _timestampFormatHeadersProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _unitInputAndOutputProtocol = _i2.RestJson1Protocol( + _unitInputAndOutputProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -1763,25 +1825,20 @@ class _RestJsonProtocolServer try { final payload = (await _allQueryStringTypesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(AllQueryStringTypesInputPayload), - ) as AllQueryStringTypesInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(AllQueryStringTypesInputPayload), + ) + as AllQueryStringTypesInputPayload); final input = AllQueryStringTypesInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.allQueryStringTypes( - input, - context, - ); + final output = await service.allQueryStringTypes(input, context); const statusCode = 200; final body = await _allQueryStringTypesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1789,27 +1846,27 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> constantAndVariableQueryString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _constantAndVariableQueryStringProtocol.contentType; try { - final payload = (await _constantAndVariableQueryStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(ConstantAndVariableQueryStringInputPayload), - ) as ConstantAndVariableQueryStringInputPayload); + final payload = + (await _constantAndVariableQueryStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + ConstantAndVariableQueryStringInputPayload, + ), + ) + as ConstantAndVariableQueryStringInputPayload); final input = ConstantAndVariableQueryStringInput.fromRequest( payload, awsRequest, @@ -1822,22 +1879,16 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _constantAndVariableQueryStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1852,25 +1903,20 @@ class _RestJsonProtocolServer try { final payload = (await _constantQueryStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ConstantQueryStringInputPayload), - ) as ConstantQueryStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(ConstantQueryStringInputPayload), + ) + as ConstantQueryStringInputPayload); final input = ConstantQueryStringInput.fromRequest( payload, awsRequest, labels: {'hello': hello}, ); - final output = await service.constantQueryString( - input, - context, - ); + final output = await service.constantQueryString(input, context); const statusCode = 200; final body = await _constantQueryStringProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1878,10 +1924,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1893,21 +1936,18 @@ class _RestJsonProtocolServer try { final payload = (await _datetimeOffsetsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.datetimeOffsets( - input, - context, - ); + final output = await service.datetimeOffsets(input, context); const statusCode = 200; final body = await _datetimeOffsetsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DatetimeOffsetsOutput, - [FullType(DatetimeOffsetsOutput)], - ), + specifiedType: const FullType(DatetimeOffsetsOutput, [ + FullType(DatetimeOffsetsOutput), + ]), ); return _i4.Response( statusCode, @@ -1915,10 +1955,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1928,26 +1965,24 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _documentTypeProtocol.contentType; try { - final payload = (await _documentTypeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(DocumentTypeInputOutput), - ) as DocumentTypeInputOutput); + final payload = + (await _documentTypeProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(DocumentTypeInputOutput), + ) + as DocumentTypeInputOutput); final input = DocumentTypeInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.documentType( - input, - context, - ); + final output = await service.documentType(input, context); const statusCode = 200; final body = await _documentTypeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DocumentTypeInputOutput, - [FullType(DocumentTypeInputOutput)], - ), + specifiedType: const FullType(DocumentTypeInputOutput, [ + FullType(DocumentTypeInputOutput), + ]), ); return _i4.Response( statusCode, @@ -1955,10 +1990,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1970,37 +2002,31 @@ class _RestJsonProtocolServer try { final payload = (await _documentTypeAsPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.JsonObject), - ) as _i5.JsonObject?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.JsonObject), + ) + as _i5.JsonObject?); final input = DocumentTypeAsPayloadInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.documentTypeAsPayload( - input, - context, - ); + final output = await service.documentTypeAsPayload(input, context); const statusCode = 200; - final body = - await _documentTypeAsPayloadProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - DocumentTypeAsPayloadInputOutput, - [FullType.nullable(_i5.JsonObject)], - ), - ); + final body = await _documentTypeAsPayloadProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(DocumentTypeAsPayloadInputOutput, [ + FullType.nullable(_i5.JsonObject), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2012,37 +2038,31 @@ class _RestJsonProtocolServer try { final payload = (await _emptyInputAndEmptyOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EmptyInputAndEmptyOutputInput), - ) as EmptyInputAndEmptyOutputInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(EmptyInputAndEmptyOutputInput), + ) + as EmptyInputAndEmptyOutputInput); final input = EmptyInputAndEmptyOutputInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.emptyInputAndEmptyOutput( - input, - context, - ); + final output = await service.emptyInputAndEmptyOutput(input, context); const statusCode = 200; - final body = - await _emptyInputAndEmptyOutputProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - EmptyInputAndEmptyOutputOutput, - [FullType(EmptyInputAndEmptyOutputOutput)], - ), - ); + final body = await _emptyInputAndEmptyOutputProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(EmptyInputAndEmptyOutputOutput, [ + FullType(EmptyInputAndEmptyOutputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2054,21 +2074,16 @@ class _RestJsonProtocolServer try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -2076,31 +2091,26 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelInput), - ) as HostLabelInput); - final input = HostLabelInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelInput), + ) + as HostLabelInput); + final input = HostLabelInput.fromRequest(payload, awsRequest, labels: {}); final output = await service.endpointWithHostLabelOperation( input, context, @@ -2108,22 +2118,16 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2135,21 +2139,18 @@ class _RestJsonProtocolServer try { final payload = (await _fractionalSecondsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.fractionalSeconds( - input, - context, - ); + final output = await service.fractionalSeconds(input, context); const statusCode = 200; final body = await _fractionalSecondsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FractionalSecondsOutput, - [FullType(FractionalSecondsOutput)], - ), + specifiedType: const FullType(FractionalSecondsOutput, [ + FullType(FractionalSecondsOutput), + ]), ); return _i4.Response( statusCode, @@ -2157,10 +2158,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2172,21 +2170,18 @@ class _RestJsonProtocolServer try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutputPayload)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2197,10 +2192,9 @@ class _RestJsonProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ComplexError'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexErrorPayload)], - ), + specifiedType: const FullType(ComplexError, [ + FullType(ComplexErrorPayload), + ]), ); const statusCode = 403; return _i4.Response( @@ -2212,10 +2206,7 @@ class _RestJsonProtocolServer context.response.headers['X-Amzn-Errortype'] = 'FooError'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - FooError, - [FullType(FooError)], - ), + specifiedType: const FullType(FooError, [FullType(FooError)]), ); const statusCode = 500; return _i4.Response( @@ -2227,10 +2218,9 @@ class _RestJsonProtocolServer context.response.headers['X-Amzn-Errortype'] = 'InvalidGreeting'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -2239,10 +2229,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2254,33 +2241,25 @@ class _RestJsonProtocolServer try { final payload = (await _hostWithPathOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.hostWithPathOperation( - input, - context, - ); + final output = await service.hostWithPathOperation(input, context); const statusCode = 200; - final body = - await _hostWithPathOperationProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _hostWithPathOperationProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2292,25 +2271,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpChecksumRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpChecksumRequiredInputOutput), - ) as HttpChecksumRequiredInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(HttpChecksumRequiredInputOutput), + ) + as HttpChecksumRequiredInputOutput); final input = HttpChecksumRequiredInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpChecksumRequired( - input, - context, - ); + final output = await service.httpChecksumRequired(input, context); const statusCode = 200; final body = await _httpChecksumRequiredProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpChecksumRequiredInputOutput, - [FullType(HttpChecksumRequiredInputOutput)], - ), + specifiedType: const FullType(HttpChecksumRequiredInputOutput, [ + FullType(HttpChecksumRequiredInputOutput), + ]), ); return _i4.Response( statusCode, @@ -2318,10 +2294,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2333,25 +2306,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpEnumPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(StringEnum), - ) as StringEnum?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(StringEnum), + ) + as StringEnum?); final input = EnumPayloadInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpEnumPayload( - input, - context, - ); + final output = await service.httpEnumPayload(input, context); const statusCode = 200; final body = await _httpEnumPayloadProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - EnumPayloadInput, - [FullType.nullable(StringEnum)], - ), + specifiedType: const FullType(EnumPayloadInput, [ + FullType.nullable(StringEnum), + ]), ); return _i4.Response( statusCode, @@ -2359,10 +2329,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2374,28 +2341,25 @@ class _RestJsonProtocolServer try { final payload = (await _httpPayloadTraitsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = HttpPayloadTraitsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadTraits( - input, - context, - ); + final output = await service.httpPayloadTraits(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _httpPayloadTraitsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPayloadTraitsInputOutput, - [FullType.nullable(_i6.Uint8List)], - ), + specifiedType: const FullType(HttpPayloadTraitsInputOutput, [ + FullType.nullable(_i6.Uint8List), + ]), ); return _i4.Response( statusCode, @@ -2403,26 +2367,25 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadTraitsWithMediaType( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadTraitsWithMediaTypeProtocol.contentType; try { - final payload = (await _httpPayloadTraitsWithMediaTypeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + final payload = + (await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = HttpPayloadTraitsWithMediaTypeInputOutput.fromRequest( payload, awsRequest, @@ -2438,22 +2401,19 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - HttpPayloadTraitsWithMediaTypeInputOutput, - [FullType.nullable(_i6.Uint8List)], - ), - ); + output, + specifiedType: const FullType( + HttpPayloadTraitsWithMediaTypeInputOutput, + [FullType.nullable(_i6.Uint8List)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2465,37 +2425,31 @@ class _RestJsonProtocolServer try { final payload = (await _httpPayloadWithStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(NestedPayload), - ) as NestedPayload?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(NestedPayload), + ) + as NestedPayload?); final input = HttpPayloadWithStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithStructure( - input, - context, - ); + final output = await service.httpPayloadWithStructure(input, context); const statusCode = 200; - final body = - await _httpPayloadWithStructureProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithStructureInputOutput, - [FullType.nullable(NestedPayload)], - ), - ); + final body = await _httpPayloadWithStructureProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPayloadWithStructureInputOutput, [ + FullType.nullable(NestedPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2507,25 +2461,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpPrefixHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpPrefixHeadersInputPayload), - ) as HttpPrefixHeadersInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(HttpPrefixHeadersInputPayload), + ) + as HttpPrefixHeadersInputPayload); final input = HttpPrefixHeadersInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPrefixHeaders( - input, - context, - ); + final output = await service.httpPrefixHeaders(input, context); const statusCode = 200; final body = await _httpPrefixHeadersProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPrefixHeadersOutput, - [FullType(HttpPrefixHeadersOutputPayload)], - ), + specifiedType: const FullType(HttpPrefixHeadersOutput, [ + FullType(HttpPrefixHeadersOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2533,53 +2484,48 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPrefixHeadersInResponse( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPrefixHeadersInResponseProtocol.contentType; try { - final payload = (await _httpPrefixHeadersInResponseProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpPrefixHeadersInResponseInput), - ) as HttpPrefixHeadersInResponseInput); + final payload = + (await _httpPrefixHeadersInResponseProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpPrefixHeadersInResponseInput, + ), + ) + as HttpPrefixHeadersInResponseInput); final input = HttpPrefixHeadersInResponseInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPrefixHeadersInResponse( - input, - context, - ); + final output = await service.httpPrefixHeadersInResponse(input, context); const statusCode = 200; - final body = - await _httpPrefixHeadersInResponseProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPrefixHeadersInResponseOutput, - [FullType(HttpPrefixHeadersInResponseOutputPayload)], - ), - ); + final body = await _httpPrefixHeadersInResponseProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPrefixHeadersInResponseOutput, [ + FullType(HttpPrefixHeadersInResponseOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2595,40 +2541,31 @@ class _RestJsonProtocolServer try { final payload = (await _httpRequestWithFloatLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithFloatLabelsInputPayload), - ) as HttpRequestWithFloatLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithFloatLabelsInputPayload, + ), + ) + as HttpRequestWithFloatLabelsInputPayload); final input = HttpRequestWithFloatLabelsInput.fromRequest( payload, awsRequest, - labels: { - 'float': float, - 'double': double, - }, - ); - final output = await service.httpRequestWithFloatLabels( - input, - context, + labels: {'float': float, 'double': double}, ); + final output = await service.httpRequestWithFloatLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithFloatLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithFloatLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2642,20 +2579,19 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _httpRequestWithGreedyLabelInPathProtocol.contentType; try { - final payload = (await _httpRequestWithGreedyLabelInPathProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithGreedyLabelInPathInputPayload), - ) as HttpRequestWithGreedyLabelInPathInputPayload); + final payload = + (await _httpRequestWithGreedyLabelInPathProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithGreedyLabelInPathInputPayload, + ), + ) + as HttpRequestWithGreedyLabelInPathInputPayload); final input = HttpRequestWithGreedyLabelInPathInput.fromRequest( payload, awsRequest, - labels: { - 'foo': foo, - 'baz': baz, - }, + labels: {'foo': foo, 'baz': baz}, ); final output = await service.httpRequestWithGreedyLabelInPath( input, @@ -2665,22 +2601,16 @@ class _RestJsonProtocolServer final body = await _httpRequestWithGreedyLabelInPathProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2702,9 +2632,12 @@ class _RestJsonProtocolServer try { final payload = (await _httpRequestWithLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithLabelsInputPayload), - ) as HttpRequestWithLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsInputPayload, + ), + ) + as HttpRequestWithLabelsInputPayload); final input = HttpRequestWithLabelsInput.fromRequest( payload, awsRequest, @@ -2719,29 +2652,20 @@ class _RestJsonProtocolServer 'timestamp': timestamp, }, ); - final output = await service.httpRequestWithLabels( - input, - context, - ); + final output = await service.httpRequestWithLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2760,13 +2684,15 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _httpRequestWithLabelsAndTimestampFormatProtocol.contentType; try { - final payload = (await _httpRequestWithLabelsAndTimestampFormatProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithLabelsAndTimestampFormatInputPayload), - ) as HttpRequestWithLabelsAndTimestampFormatInputPayload); + final payload = + (await _httpRequestWithLabelsAndTimestampFormatProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + ), + ) + as HttpRequestWithLabelsAndTimestampFormatInputPayload); final input = HttpRequestWithLabelsAndTimestampFormatInput.fromRequest( payload, awsRequest, @@ -2788,22 +2714,16 @@ class _RestJsonProtocolServer final body = await _httpRequestWithLabelsAndTimestampFormatProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2816,39 +2736,34 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _httpRequestWithRegexLiteralProtocol.contentType; try { - final payload = (await _httpRequestWithRegexLiteralProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithRegexLiteralInputPayload), - ) as HttpRequestWithRegexLiteralInputPayload); + final payload = + (await _httpRequestWithRegexLiteralProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithRegexLiteralInputPayload, + ), + ) + as HttpRequestWithRegexLiteralInputPayload); final input = HttpRequestWithRegexLiteralInput.fromRequest( payload, awsRequest, labels: {'str': str}, ); - final output = await service.httpRequestWithRegexLiteral( - input, - context, - ); + final output = await service.httpRequestWithRegexLiteral(input, context); const statusCode = 200; - final body = - await _httpRequestWithRegexLiteralProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithRegexLiteralProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2860,21 +2775,18 @@ class _RestJsonProtocolServer try { final payload = (await _httpResponseCodeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.httpResponseCode( - input, - context, - ); + final output = await service.httpResponseCode(input, context); const statusCode = 200; final body = await _httpResponseCodeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpResponseCodeOutput, - [FullType(HttpResponseCodeOutputPayload)], - ), + specifiedType: const FullType(HttpResponseCodeOutput, [ + FullType(HttpResponseCodeOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2882,10 +2794,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2897,25 +2806,22 @@ class _RestJsonProtocolServer try { final payload = (await _httpStringPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(String), - ) as String?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(String), + ) + as String?); final input = StringPayloadInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpStringPayload( - input, - context, - ); + final output = await service.httpStringPayload(input, context); const statusCode = 200; final body = await _httpStringPayloadProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - StringPayloadInput, - [FullType.nullable(String)], - ), + specifiedType: const FullType(StringPayloadInput, [ + FullType.nullable(String), + ]), ); return _i4.Response( statusCode, @@ -2923,54 +2829,48 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> ignoreQueryParamsInResponse( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _ignoreQueryParamsInResponseProtocol.contentType; try { - final payload = (await _ignoreQueryParamsInResponseProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _ignoreQueryParamsInResponseProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.ignoreQueryParamsInResponse( - input, - context, - ); + final output = await service.ignoreQueryParamsInResponse(input, context); const statusCode = 200; - final body = - await _ignoreQueryParamsInResponseProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - IgnoreQueryParamsInResponseOutput, - [FullType(IgnoreQueryParamsInResponseOutput)], - ), - ); + final body = await _ignoreQueryParamsInResponseProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(IgnoreQueryParamsInResponseOutput, [ + FullType(IgnoreQueryParamsInResponseOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> inputAndOutputWithHeaders( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2978,18 +2878,18 @@ class _RestJsonProtocolServer try { final payload = (await _inputAndOutputWithHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(InputAndOutputWithHeadersIoPayload), - ) as InputAndOutputWithHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + InputAndOutputWithHeadersIoPayload, + ), + ) + as InputAndOutputWithHeadersIoPayload); final input = InputAndOutputWithHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.inputAndOutputWithHeaders( - input, - context, - ); + final output = await service.inputAndOutputWithHeaders(input, context); if (output.headerString != null) { context.response.headers['X-String'] = output.headerString!; } @@ -3045,13 +2945,13 @@ class _RestJsonProtocolServer if (output.headerTimestampList != null) { context.response.headers['X-TimestampList'] = output .headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } if (output.headerEnum != null) { @@ -3075,24 +2975,20 @@ class _RestJsonProtocolServer .join(', '); } const statusCode = 200; - final body = - await _inputAndOutputWithHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - InputAndOutputWithHeadersIo, - [FullType(InputAndOutputWithHeadersIoPayload)], - ), - ); + final body = await _inputAndOutputWithHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(InputAndOutputWithHeadersIo, [ + FullType(InputAndOutputWithHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3101,26 +2997,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonBlobsProtocol.contentType; try { - final payload = (await _jsonBlobsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonBlobsInputOutput), - ) as JsonBlobsInputOutput); + final payload = + (await _jsonBlobsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonBlobsInputOutput), + ) + as JsonBlobsInputOutput); final input = JsonBlobsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonBlobs( - input, - context, - ); + final output = await service.jsonBlobs(input, context); const statusCode = 200; final body = await _jsonBlobsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonBlobsInputOutput, - [FullType(JsonBlobsInputOutput)], - ), + specifiedType: const FullType(JsonBlobsInputOutput, [ + FullType(JsonBlobsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3128,10 +3022,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3140,26 +3031,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonEnumsProtocol.contentType; try { - final payload = (await _jsonEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonEnumsInputOutput), - ) as JsonEnumsInputOutput); + final payload = + (await _jsonEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonEnumsInputOutput), + ) + as JsonEnumsInputOutput); final input = JsonEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonEnums( - input, - context, - ); + final output = await service.jsonEnums(input, context); const statusCode = 200; final body = await _jsonEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonEnumsInputOutput, - [FullType(JsonEnumsInputOutput)], - ), + specifiedType: const FullType(JsonEnumsInputOutput, [ + FullType(JsonEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3167,10 +3056,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3180,26 +3066,24 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _jsonIntEnumsProtocol.contentType; try { - final payload = (await _jsonIntEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonIntEnumsInputOutput), - ) as JsonIntEnumsInputOutput); + final payload = + (await _jsonIntEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonIntEnumsInputOutput), + ) + as JsonIntEnumsInputOutput); final input = JsonIntEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonIntEnums( - input, - context, - ); + final output = await service.jsonIntEnums(input, context); const statusCode = 200; final body = await _jsonIntEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonIntEnumsInputOutput, - [FullType(JsonIntEnumsInputOutput)], - ), + specifiedType: const FullType(JsonIntEnumsInputOutput, [ + FullType(JsonIntEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3207,10 +3091,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3219,26 +3100,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonListsProtocol.contentType; try { - final payload = (await _jsonListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonListsInputOutput), - ) as JsonListsInputOutput); + final payload = + (await _jsonListsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonListsInputOutput), + ) + as JsonListsInputOutput); final input = JsonListsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonLists( - input, - context, - ); + final output = await service.jsonLists(input, context); const statusCode = 200; final body = await _jsonListsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonListsInputOutput, - [FullType(JsonListsInputOutput)], - ), + specifiedType: const FullType(JsonListsInputOutput, [ + FullType(JsonListsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3246,10 +3125,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3258,26 +3134,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonMapsProtocol.contentType; try { - final payload = (await _jsonMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonMapsInputOutput), - ) as JsonMapsInputOutput); + final payload = + (await _jsonMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonMapsInputOutput), + ) + as JsonMapsInputOutput); final input = JsonMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonMaps( - input, - context, - ); + final output = await service.jsonMaps(input, context); const statusCode = 200; final body = await _jsonMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonMapsInputOutput, - [FullType(JsonMapsInputOutput)], - ), + specifiedType: const FullType(JsonMapsInputOutput, [ + FullType(JsonMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3285,10 +3159,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3298,26 +3169,24 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _jsonTimestampsProtocol.contentType; try { - final payload = (await _jsonTimestampsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(JsonTimestampsInputOutput), - ) as JsonTimestampsInputOutput); + final payload = + (await _jsonTimestampsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(JsonTimestampsInputOutput), + ) + as JsonTimestampsInputOutput); final input = JsonTimestampsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonTimestamps( - input, - context, - ); + final output = await service.jsonTimestamps(input, context); const statusCode = 200; final body = await _jsonTimestampsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - JsonTimestampsInputOutput, - [FullType(JsonTimestampsInputOutput)], - ), + specifiedType: const FullType(JsonTimestampsInputOutput, [ + FullType(JsonTimestampsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3325,10 +3194,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3337,26 +3203,24 @@ class _RestJsonProtocolServer final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _jsonUnionsProtocol.contentType; try { - final payload = (await _jsonUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(UnionInputOutput), - ) as UnionInputOutput); + final payload = + (await _jsonUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(UnionInputOutput), + ) + as UnionInputOutput); final input = UnionInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.jsonUnions( - input, - context, - ); + final output = await service.jsonUnions(input, context); const statusCode = 200; final body = await _jsonUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - UnionInputOutput, - [FullType(UnionInputOutput)], - ), + specifiedType: const FullType(UnionInputOutput, [ + FullType(UnionInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3364,10 +3228,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3379,49 +3240,45 @@ class _RestJsonProtocolServer try { final payload = (await _malformedAcceptWithBodyProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.malformedAcceptWithBody( - input, - context, - ); + final output = await service.malformedAcceptWithBody(input, context); const statusCode = 200; - final body = - await _malformedAcceptWithBodyProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - GreetingStruct, - [FullType(GreetingStruct)], - ), - ); + final body = await _malformedAcceptWithBodyProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(GreetingStruct, [ + FullType(GreetingStruct), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedAcceptWithGenericString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedAcceptWithGenericStringProtocol.contentType; try { - final payload = (await _malformedAcceptWithGenericStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _malformedAcceptWithGenericStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; final output = await service.malformedAcceptWithGenericString( input, @@ -3431,27 +3288,25 @@ class _RestJsonProtocolServer final body = await _malformedAcceptWithGenericStringProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - MalformedAcceptWithGenericStringOutput, - [FullType.nullable(String)], - ), - ); + output, + specifiedType: const FullType( + MalformedAcceptWithGenericStringOutput, + [FullType.nullable(String)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedAcceptWithPayload( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -3459,33 +3314,27 @@ class _RestJsonProtocolServer try { final payload = (await _malformedAcceptWithPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.malformedAcceptWithPayload( - input, - context, - ); + final output = await service.malformedAcceptWithPayload(input, context); const statusCode = 200; - final body = - await _malformedAcceptWithPayloadProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - MalformedAcceptWithPayloadOutput, - [FullType.nullable(_i6.Uint8List)], - ), - ); + final body = await _malformedAcceptWithPayloadProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(MalformedAcceptWithPayloadOutput, [ + FullType.nullable(_i6.Uint8List), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3495,26 +3344,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedBlobProtocol.contentType; try { - final payload = (await _malformedBlobProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedBlobInput), - ) as MalformedBlobInput); + final payload = + (await _malformedBlobProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedBlobInput), + ) + as MalformedBlobInput); final input = MalformedBlobInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedBlob( - input, - context, - ); + final output = await service.malformedBlob(input, context); const statusCode = 200; final body = await _malformedBlobProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3522,10 +3367,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3540,25 +3382,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedBooleanProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedBooleanInputPayload), - ) as MalformedBooleanInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedBooleanInputPayload), + ) + as MalformedBooleanInputPayload); final input = MalformedBooleanInput.fromRequest( payload, awsRequest, labels: {'booleanInPath': booleanInPath}, ); - final output = await service.malformedBoolean( - input, - context, - ); + final output = await service.malformedBoolean(input, context); const statusCode = 200; final body = await _malformedBooleanProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3566,10 +3403,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3582,26 +3416,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedByteProtocol.contentType; try { - final payload = (await _malformedByteProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedByteInputPayload), - ) as MalformedByteInputPayload); + final payload = + (await _malformedByteProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedByteInputPayload), + ) + as MalformedByteInputPayload); final input = MalformedByteInput.fromRequest( payload, awsRequest, labels: {'byteInPath': byteInPath}, ); - final output = await service.malformedByte( - input, - context, - ); + final output = await service.malformedByte(input, context); const statusCode = 200; final body = await _malformedByteProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3609,70 +3439,58 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithBody( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithBodyProtocol.contentType; try { - final payload = (await _malformedContentTypeWithBodyProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GreetingStruct), - ) as GreetingStruct); - final input = GreetingStruct.fromRequest( - payload, - awsRequest, - labels: {}, - ); - final output = await service.malformedContentTypeWithBody( - input, - context, - ); + final payload = + (await _malformedContentTypeWithBodyProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(GreetingStruct), + ) + as GreetingStruct); + final input = GreetingStruct.fromRequest(payload, awsRequest, labels: {}); + final output = await service.malformedContentTypeWithBody(input, context); const statusCode = 200; - final body = - await _malformedContentTypeWithBodyProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedContentTypeWithBodyProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithGenericString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithGenericStringProtocol.contentType; try { - final payload = (await _malformedContentTypeWithGenericStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(String), - ) as String?); + final payload = + (await _malformedContentTypeWithGenericStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(String), + ) + as String?); final input = MalformedContentTypeWithGenericStringInput.fromRequest( payload, awsRequest, @@ -3686,38 +3504,34 @@ class _RestJsonProtocolServer final body = await _malformedContentTypeWithGenericStringProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithPayload( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithPayloadProtocol.contentType; try { - final payload = (await _malformedContentTypeWithPayloadProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + final payload = + (await _malformedContentTypeWithPayloadProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = MalformedContentTypeWithPayloadInput.fromRequest( payload, awsRequest, @@ -3730,38 +3544,34 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedContentTypeWithPayloadProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithoutBody( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithoutBodyProtocol.contentType; try { - final payload = (await _malformedContentTypeWithoutBodyProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _malformedContentTypeWithoutBodyProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; final output = await service.malformedContentTypeWithoutBody( input, @@ -3770,39 +3580,37 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedContentTypeWithoutBodyProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedContentTypeWithoutBodyEmptyInput( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedContentTypeWithoutBodyEmptyInputProtocol.contentType; try { - final payload = (await _malformedContentTypeWithoutBodyEmptyInputProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType( - MalformedContentTypeWithoutBodyEmptyInputInputPayload), - ) as MalformedContentTypeWithoutBodyEmptyInputInputPayload); + final payload = + (await _malformedContentTypeWithoutBodyEmptyInputProtocol + .wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedContentTypeWithoutBodyEmptyInputInputPayload, + ), + ) + as MalformedContentTypeWithoutBodyEmptyInputInputPayload); final input = MalformedContentTypeWithoutBodyEmptyInputInput.fromRequest( payload, awsRequest, @@ -3816,22 +3624,16 @@ class _RestJsonProtocolServer final body = await _malformedContentTypeWithoutBodyEmptyInputProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3846,25 +3648,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedDoubleProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedDoubleInputPayload), - ) as MalformedDoubleInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedDoubleInputPayload), + ) + as MalformedDoubleInputPayload); final input = MalformedDoubleInput.fromRequest( payload, awsRequest, labels: {'doubleInPath': doubleInPath}, ); - final output = await service.malformedDouble( - input, - context, - ); + final output = await service.malformedDouble(input, context); const statusCode = 200; final body = await _malformedDoubleProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3872,10 +3669,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3888,26 +3682,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedFloatProtocol.contentType; try { - final payload = (await _malformedFloatProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedFloatInputPayload), - ) as MalformedFloatInputPayload); + final payload = + (await _malformedFloatProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedFloatInputPayload), + ) + as MalformedFloatInputPayload); final input = MalformedFloatInput.fromRequest( payload, awsRequest, labels: {'floatInPath': floatInPath}, ); - final output = await service.malformedFloat( - input, - context, - ); + final output = await service.malformedFloat(input, context); const statusCode = 200; final body = await _malformedFloatProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3915,10 +3705,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3933,25 +3720,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedIntegerProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedIntegerInputPayload), - ) as MalformedIntegerInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedIntegerInputPayload), + ) + as MalformedIntegerInputPayload); final input = MalformedIntegerInput.fromRequest( payload, awsRequest, labels: {'integerInPath': integerInPath}, ); - final output = await service.malformedInteger( - input, - context, - ); + final output = await service.malformedInteger(input, context); const statusCode = 200; final body = await _malformedIntegerProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3959,10 +3741,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3972,26 +3751,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedListProtocol.contentType; try { - final payload = (await _malformedListProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedListInput), - ) as MalformedListInput); + final payload = + (await _malformedListProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedListInput), + ) + as MalformedListInput); final input = MalformedListInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedList( - input, - context, - ); + final output = await service.malformedList(input, context); const statusCode = 200; final body = await _malformedListProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -3999,10 +3774,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4015,26 +3787,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedLongProtocol.contentType; try { - final payload = (await _malformedLongProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLongInputPayload), - ) as MalformedLongInputPayload); + final payload = + (await _malformedLongProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedLongInputPayload), + ) + as MalformedLongInputPayload); final input = MalformedLongInput.fromRequest( payload, awsRequest, labels: {'longInPath': longInPath}, ); - final output = await service.malformedLong( - input, - context, - ); + final output = await service.malformedLong(input, context); const statusCode = 200; final body = await _malformedLongProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4042,10 +3810,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4055,26 +3820,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedMapProtocol.contentType; try { - final payload = (await _malformedMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedMapInput), - ) as MalformedMapInput); + final payload = + (await _malformedMapProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedMapInput), + ) + as MalformedMapInput); final input = MalformedMapInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedMap( - input, - context, - ); + final output = await service.malformedMap(input, context); const statusCode = 200; final body = await _malformedMapProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4082,10 +3843,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4097,25 +3855,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedRequestBodyProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRequestBodyInput), - ) as MalformedRequestBodyInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRequestBodyInput), + ) + as MalformedRequestBodyInput); final input = MalformedRequestBodyInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRequestBody( - input, - context, - ); + final output = await service.malformedRequestBody(input, context); const statusCode = 200; final body = await _malformedRequestBodyProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4123,10 +3876,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4139,26 +3889,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedShortProtocol.contentType; try { - final payload = (await _malformedShortProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedShortInputPayload), - ) as MalformedShortInputPayload); + final payload = + (await _malformedShortProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedShortInputPayload), + ) + as MalformedShortInputPayload); final input = MalformedShortInput.fromRequest( payload, awsRequest, labels: {'shortInPath': shortInPath}, ); - final output = await service.malformedShort( - input, - context, - ); + final output = await service.malformedShort(input, context); const statusCode = 200; final body = await _malformedShortProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4166,10 +3912,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4181,25 +3924,20 @@ class _RestJsonProtocolServer try { final payload = (await _malformedStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedStringInputPayload), - ) as MalformedStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedStringInputPayload), + ) + as MalformedStringInputPayload); final input = MalformedStringInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedString( - input, - context, - ); + final output = await service.malformedString(input, context); const statusCode = 200; final body = await _malformedStringProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4207,26 +3945,27 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampBodyDateTime( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampBodyDateTimeProtocol.contentType; try { - final payload = (await _malformedTimestampBodyDateTimeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampBodyDateTimeInput), - ) as MalformedTimestampBodyDateTimeInput); + final payload = + (await _malformedTimestampBodyDateTimeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampBodyDateTimeInput, + ), + ) + as MalformedTimestampBodyDateTimeInput); final input = MalformedTimestampBodyDateTimeInput.fromRequest( payload, awsRequest, @@ -4239,38 +3978,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampBodyDateTimeProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampBodyDefault( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampBodyDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampBodyDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampBodyDefaultInput), - ) as MalformedTimestampBodyDefaultInput); + final payload = + (await _malformedTimestampBodyDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampBodyDefaultInput, + ), + ) + as MalformedTimestampBodyDefaultInput); final input = MalformedTimestampBodyDefaultInput.fromRequest( payload, awsRequest, @@ -4281,40 +4018,38 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _malformedTimestampBodyDefaultProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampBodyDefaultProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampBodyHttpDate( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampBodyHttpDateProtocol.contentType; try { - final payload = (await _malformedTimestampBodyHttpDateProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampBodyHttpDateInput), - ) as MalformedTimestampBodyHttpDateInput); + final payload = + (await _malformedTimestampBodyHttpDateProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampBodyHttpDateInput, + ), + ) + as MalformedTimestampBodyHttpDateInput); final input = MalformedTimestampBodyHttpDateInput.fromRequest( payload, awsRequest, @@ -4327,39 +4062,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampBodyHttpDateProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampHeaderDateTime( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampHeaderDateTimeProtocol.contentType; try { - final payload = (await _malformedTimestampHeaderDateTimeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampHeaderDateTimeInputPayload), - ) as MalformedTimestampHeaderDateTimeInputPayload); + final payload = + (await _malformedTimestampHeaderDateTimeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampHeaderDateTimeInputPayload, + ), + ) + as MalformedTimestampHeaderDateTimeInputPayload); final input = MalformedTimestampHeaderDateTimeInput.fromRequest( payload, awsRequest, @@ -4373,39 +4105,36 @@ class _RestJsonProtocolServer final body = await _malformedTimestampHeaderDateTimeProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampHeaderDefault( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampHeaderDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampHeaderDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampHeaderDefaultInputPayload), - ) as MalformedTimestampHeaderDefaultInputPayload); + final payload = + (await _malformedTimestampHeaderDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampHeaderDefaultInputPayload, + ), + ) + as MalformedTimestampHeaderDefaultInputPayload); final input = MalformedTimestampHeaderDefaultInput.fromRequest( payload, awsRequest, @@ -4418,39 +4147,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampHeaderDefaultProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampHeaderEpoch( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampHeaderEpochProtocol.contentType; try { - final payload = (await _malformedTimestampHeaderEpochProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampHeaderEpochInputPayload), - ) as MalformedTimestampHeaderEpochInputPayload); + final payload = + (await _malformedTimestampHeaderEpochProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampHeaderEpochInputPayload, + ), + ) + as MalformedTimestampHeaderEpochInputPayload); final input = MalformedTimestampHeaderEpochInput.fromRequest( payload, awsRequest, @@ -4461,24 +4187,18 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _malformedTimestampHeaderEpochProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampHeaderEpochProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4491,13 +4211,15 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedTimestampPathDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampPathDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampPathDefaultInputPayload), - ) as MalformedTimestampPathDefaultInputPayload); + final payload = + (await _malformedTimestampPathDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampPathDefaultInputPayload, + ), + ) + as MalformedTimestampPathDefaultInputPayload); final input = MalformedTimestampPathDefaultInput.fromRequest( payload, awsRequest, @@ -4508,24 +4230,18 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _malformedTimestampPathDefaultProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampPathDefaultProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4538,39 +4254,34 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedTimestampPathEpochProtocol.contentType; try { - final payload = (await _malformedTimestampPathEpochProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampPathEpochInputPayload), - ) as MalformedTimestampPathEpochInputPayload); + final payload = + (await _malformedTimestampPathEpochProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampPathEpochInputPayload, + ), + ) + as MalformedTimestampPathEpochInputPayload); final input = MalformedTimestampPathEpochInput.fromRequest( payload, awsRequest, labels: {'timestamp': timestamp}, ); - final output = await service.malformedTimestampPathEpoch( - input, - context, - ); + final output = await service.malformedTimestampPathEpoch(input, context); const statusCode = 200; - final body = - await _malformedTimestampPathEpochProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampPathEpochProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4583,13 +4294,15 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedTimestampPathHttpDateProtocol.contentType; try { - final payload = (await _malformedTimestampPathHttpDateProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampPathHttpDateInputPayload), - ) as MalformedTimestampPathHttpDateInputPayload); + final payload = + (await _malformedTimestampPathHttpDateProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampPathHttpDateInputPayload, + ), + ) + as MalformedTimestampPathHttpDateInputPayload); final input = MalformedTimestampPathHttpDateInput.fromRequest( payload, awsRequest, @@ -4602,39 +4315,36 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampPathHttpDateProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampQueryDefault( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampQueryDefaultProtocol.contentType; try { - final payload = (await _malformedTimestampQueryDefaultProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampQueryDefaultInputPayload), - ) as MalformedTimestampQueryDefaultInputPayload); + final payload = + (await _malformedTimestampQueryDefaultProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampQueryDefaultInputPayload, + ), + ) + as MalformedTimestampQueryDefaultInputPayload); final input = MalformedTimestampQueryDefaultInput.fromRequest( payload, awsRequest, @@ -4647,83 +4357,75 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampQueryDefaultProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampQueryEpoch( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampQueryEpochProtocol.contentType; try { - final payload = (await _malformedTimestampQueryEpochProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedTimestampQueryEpochInputPayload), - ) as MalformedTimestampQueryEpochInputPayload); + final payload = + (await _malformedTimestampQueryEpochProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampQueryEpochInputPayload, + ), + ) + as MalformedTimestampQueryEpochInputPayload); final input = MalformedTimestampQueryEpochInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedTimestampQueryEpoch( - input, - context, - ); + final output = await service.malformedTimestampQueryEpoch(input, context); const statusCode = 200; - final body = - await _malformedTimestampQueryEpochProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedTimestampQueryEpochProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedTimestampQueryHttpDate( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _malformedTimestampQueryHttpDateProtocol.contentType; try { - final payload = (await _malformedTimestampQueryHttpDateProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(MalformedTimestampQueryHttpDateInputPayload), - ) as MalformedTimestampQueryHttpDateInputPayload); + final payload = + (await _malformedTimestampQueryHttpDateProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedTimestampQueryHttpDateInputPayload, + ), + ) + as MalformedTimestampQueryHttpDateInputPayload); final input = MalformedTimestampQueryHttpDateInput.fromRequest( payload, awsRequest, @@ -4736,22 +4438,16 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _malformedTimestampQueryHttpDateProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4761,26 +4457,22 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _malformedUnionProtocol.contentType; try { - final payload = (await _malformedUnionProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedUnionInput), - ) as MalformedUnionInput); + final payload = + (await _malformedUnionProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedUnionInput), + ) + as MalformedUnionInput); final input = MalformedUnionInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedUnion( - input, - context, - ); + final output = await service.malformedUnion(input, context); const statusCode = 200; final body = await _malformedUnionProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4788,10 +4480,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4803,25 +4492,22 @@ class _RestJsonProtocolServer try { final payload = (await _mediaTypeHeaderProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MediaTypeHeaderInputPayload), - ) as MediaTypeHeaderInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MediaTypeHeaderInputPayload), + ) + as MediaTypeHeaderInputPayload); final input = MediaTypeHeaderInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.mediaTypeHeader( - input, - context, - ); + final output = await service.mediaTypeHeader(input, context); const statusCode = 200; final body = await _mediaTypeHeaderProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - MediaTypeHeaderOutput, - [FullType(MediaTypeHeaderOutputPayload)], - ), + specifiedType: const FullType(MediaTypeHeaderOutput, [ + FullType(MediaTypeHeaderOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -4829,10 +4515,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4844,21 +4527,16 @@ class _RestJsonProtocolServer try { final payload = (await _noInputAndNoOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndNoOutput( - input, - context, - ); + final output = await service.noInputAndNoOutput(input, context); const statusCode = 200; final body = await _noInputAndNoOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -4866,10 +4544,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -4881,21 +4556,18 @@ class _RestJsonProtocolServer try { final payload = (await _noInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndOutput( - input, - context, - ); + final output = await service.noInputAndOutput(input, context); const statusCode = 200; final body = await _noInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NoInputAndOutputOutput, - [FullType(NoInputAndOutputOutput)], - ), + specifiedType: const FullType(NoInputAndOutputOutput, [ + FullType(NoInputAndOutputOutput), + ]), ); return _i4.Response( statusCode, @@ -4903,15 +4575,13 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersClient( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -4919,18 +4589,16 @@ class _RestJsonProtocolServer try { final payload = (await _nullAndEmptyHeadersClientProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersClient( - input, - context, - ); + final output = await service.nullAndEmptyHeadersClient(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -4938,33 +4606,31 @@ class _RestJsonProtocolServer context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersClientProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersClientProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersServer( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -4972,18 +4638,16 @@ class _RestJsonProtocolServer try { final payload = (await _nullAndEmptyHeadersServerProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersServer( - input, - context, - ); + final output = await service.nullAndEmptyHeadersServer(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -4991,45 +4655,45 @@ class _RestJsonProtocolServer context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersServerProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersServerProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> omitsNullSerializesEmptyString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _omitsNullSerializesEmptyStringProtocol.contentType; try { - final payload = (await _omitsNullSerializesEmptyStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(OmitsNullSerializesEmptyStringInputPayload), - ) as OmitsNullSerializesEmptyStringInputPayload); + final payload = + (await _omitsNullSerializesEmptyStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + OmitsNullSerializesEmptyStringInputPayload, + ), + ) + as OmitsNullSerializesEmptyStringInputPayload); final input = OmitsNullSerializesEmptyStringInput.fromRequest( payload, awsRequest, @@ -5042,27 +4706,22 @@ class _RestJsonProtocolServer const statusCode = 200; final body = await _omitsNullSerializesEmptyStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> omitsSerializingEmptyLists( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -5070,37 +4729,31 @@ class _RestJsonProtocolServer try { final payload = (await _omitsSerializingEmptyListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(OmitsSerializingEmptyListsInputPayload), - ) as OmitsSerializingEmptyListsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + OmitsSerializingEmptyListsInputPayload, + ), + ) + as OmitsSerializingEmptyListsInputPayload); final input = OmitsSerializingEmptyListsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.omitsSerializingEmptyLists( - input, - context, - ); + final output = await service.omitsSerializingEmptyLists(input, context); const statusCode = 200; - final body = - await _omitsSerializingEmptyListsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _omitsSerializingEmptyListsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5112,25 +4765,22 @@ class _RestJsonProtocolServer try { final payload = (await _postPlayerActionProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PostPlayerActionInput), - ) as PostPlayerActionInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PostPlayerActionInput), + ) + as PostPlayerActionInput); final input = PostPlayerActionInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.postPlayerAction( - input, - context, - ); + final output = await service.postPlayerAction(input, context); const statusCode = 200; final body = await _postPlayerActionProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - PostPlayerActionOutput, - [FullType(PostPlayerActionOutput)], - ), + specifiedType: const FullType(PostPlayerActionOutput, [ + FullType(PostPlayerActionOutput), + ]), ); return _i4.Response( statusCode, @@ -5138,10 +4788,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5153,37 +4800,31 @@ class _RestJsonProtocolServer try { final payload = (await _postUnionWithJsonNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PostUnionWithJsonNameInput), - ) as PostUnionWithJsonNameInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(PostUnionWithJsonNameInput), + ) + as PostUnionWithJsonNameInput); final input = PostUnionWithJsonNameInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.postUnionWithJsonName( - input, - context, - ); + final output = await service.postUnionWithJsonName(input, context); const statusCode = 200; - final body = - await _postUnionWithJsonNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - PostUnionWithJsonNameOutput, - [FullType(PostUnionWithJsonNameOutput)], - ), - ); + final body = await _postUnionWithJsonNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(PostUnionWithJsonNameOutput, [ + FullType(PostUnionWithJsonNameOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5195,54 +4836,51 @@ class _RestJsonProtocolServer try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInputPayload), - ) as PutWithContentEncodingInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + PutWithContentEncodingInputPayload, + ), + ) + as PutWithContentEncodingInputPayload); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryIdempotencyTokenAutoFill( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _queryIdempotencyTokenAutoFillProtocol.contentType; try { - final payload = (await _queryIdempotencyTokenAutoFillProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(QueryIdempotencyTokenAutoFillInputPayload), - ) as QueryIdempotencyTokenAutoFillInputPayload); + final payload = + (await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryIdempotencyTokenAutoFillInputPayload, + ), + ) + as QueryIdempotencyTokenAutoFillInputPayload); final input = QueryIdempotencyTokenAutoFillInput.fromRequest( payload, awsRequest, @@ -5253,29 +4891,24 @@ class _RestJsonProtocolServer context, ); const statusCode = 200; - final body = - await _queryIdempotencyTokenAutoFillProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryParamsAsStringListMap( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -5283,37 +4916,31 @@ class _RestJsonProtocolServer try { final payload = (await _queryParamsAsStringListMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryParamsAsStringListMapInputPayload), - ) as QueryParamsAsStringListMapInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryParamsAsStringListMapInputPayload, + ), + ) + as QueryParamsAsStringListMapInputPayload); final input = QueryParamsAsStringListMapInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryParamsAsStringListMap( - input, - context, - ); + final output = await service.queryParamsAsStringListMap(input, context); const statusCode = 200; - final body = - await _queryParamsAsStringListMapProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryParamsAsStringListMapProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5325,25 +4952,20 @@ class _RestJsonProtocolServer try { final payload = (await _queryPrecedenceProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryPrecedenceInputPayload), - ) as QueryPrecedenceInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(QueryPrecedenceInputPayload), + ) + as QueryPrecedenceInputPayload); final input = QueryPrecedenceInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryPrecedence( - input, - context, - ); + final output = await service.queryPrecedence(input, context); const statusCode = 200; final body = await _queryPrecedenceProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -5351,10 +4973,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5366,25 +4985,22 @@ class _RestJsonProtocolServer try { final payload = (await _recursiveShapesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(RecursiveShapesInputOutput), - ) as RecursiveShapesInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(RecursiveShapesInputOutput), + ) + as RecursiveShapesInputOutput); final input = RecursiveShapesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.recursiveShapes( - input, - context, - ); + final output = await service.recursiveShapes(input, context); const statusCode = 200; final body = await _recursiveShapesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - RecursiveShapesInputOutput, - [FullType(RecursiveShapesInputOutput)], - ), + specifiedType: const FullType(RecursiveShapesInputOutput, [ + FullType(RecursiveShapesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -5392,10 +5008,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5407,37 +5020,33 @@ class _RestJsonProtocolServer try { final payload = (await _responseCodeHttpFallbackProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ResponseCodeHttpFallbackInputOutput), - ) as ResponseCodeHttpFallbackInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + ResponseCodeHttpFallbackInputOutput, + ), + ) + as ResponseCodeHttpFallbackInputOutput); final input = ResponseCodeHttpFallbackInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.responseCodeHttpFallback( - input, - context, - ); + final output = await service.responseCodeHttpFallback(input, context); const statusCode = 201; - final body = - await _responseCodeHttpFallbackProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - ResponseCodeHttpFallbackInputOutput, - [FullType(ResponseCodeHttpFallbackInputOutput)], - ), - ); + final body = await _responseCodeHttpFallbackProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(ResponseCodeHttpFallbackInputOutput, [ + FullType(ResponseCodeHttpFallbackInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5449,21 +5058,18 @@ class _RestJsonProtocolServer try { final payload = (await _responseCodeRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.responseCodeRequired( - input, - context, - ); + final output = await service.responseCodeRequired(input, context); const statusCode = 200; final body = await _responseCodeRequiredProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - ResponseCodeRequiredOutput, - [FullType(ResponseCodeRequiredOutputPayload)], - ), + specifiedType: const FullType(ResponseCodeRequiredOutput, [ + FullType(ResponseCodeRequiredOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -5471,10 +5077,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5486,40 +5089,36 @@ class _RestJsonProtocolServer try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutputPayload), - ) as SimpleScalarPropertiesInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutputPayload, + ), + ) + as SimpleScalarPropertiesInputOutputPayload); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutputPayload)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5531,46 +5130,29 @@ class _RestJsonProtocolServer try { final payload = (await _streamingTraitsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>); final input = StreamingTraitsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.streamingTraits( - input, - context, - ); + final output = await service.streamingTraits(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _streamingTraitsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - StreamingTraitsInputOutput, - [ - FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ) - ], - ), + specifiedType: const FullType(StreamingTraitsInputOutput, [ + FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ]), ); return _i4.Response( statusCode, @@ -5578,127 +5160,95 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> streamingTraitsRequireLength( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _streamingTraitsRequireLengthProtocol.contentType; try { - final payload = (await _streamingTraitsRequireLengthProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>); + final payload = + (await _streamingTraitsRequireLengthProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>); final input = StreamingTraitsRequireLengthInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.streamingTraitsRequireLength( - input, - context, - ); + final output = await service.streamingTraitsRequireLength(input, context); const statusCode = 200; - final body = - await _streamingTraitsRequireLengthProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _streamingTraitsRequireLengthProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> streamingTraitsWithMediaType( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _streamingTraitsWithMediaTypeProtocol.contentType; try { - final payload = (await _streamingTraitsWithMediaTypeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>); + final payload = + (await _streamingTraitsWithMediaTypeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>); final input = StreamingTraitsWithMediaTypeInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.streamingTraitsWithMediaType( - input, - context, - ); + final output = await service.streamingTraitsWithMediaType(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _streamingTraitsWithMediaTypeProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - StreamingTraitsWithMediaTypeInputOutput, - [ - FullType( - _i3.Stream, + final body = await _streamingTraitsWithMediaTypeProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + StreamingTraitsWithMediaTypeInputOutput, [ - FullType( - List, - [FullType(int)], - ) + FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), ], - ) - ], - ), - ); + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5710,28 +5260,27 @@ class _RestJsonProtocolServer try { final payload = (await _testBodyStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TestBodyStructureInputOutputPayload), - ) as TestBodyStructureInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + TestBodyStructureInputOutputPayload, + ), + ) + as TestBodyStructureInputOutputPayload); final input = TestBodyStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testBodyStructure( - input, - context, - ); + final output = await service.testBodyStructure(input, context); if (output.testId != null) { context.response.headers['x-amz-test-id'] = output.testId!; } const statusCode = 200; final body = await _testBodyStructureProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestBodyStructureInputOutput, - [FullType(TestBodyStructureInputOutputPayload)], - ), + specifiedType: const FullType(TestBodyStructureInputOutput, [ + FullType(TestBodyStructureInputOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -5739,10 +5288,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5752,29 +5298,27 @@ class _RestJsonProtocolServer context.response.headers['Content-Type'] = _testNoPayloadProtocol.contentType; try { - final payload = (await _testNoPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TestNoPayloadInputOutputPayload), - ) as TestNoPayloadInputOutputPayload); + final payload = + (await _testNoPayloadProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(TestNoPayloadInputOutputPayload), + ) + as TestNoPayloadInputOutputPayload); final input = TestNoPayloadInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testNoPayload( - input, - context, - ); + final output = await service.testNoPayload(input, context); if (output.testId != null) { context.response.headers['X-Amz-Test-Id'] = output.testId!; } const statusCode = 200; final body = await _testNoPayloadProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestNoPayloadInputOutput, - [FullType(TestNoPayloadInputOutputPayload)], - ), + specifiedType: const FullType(TestNoPayloadInputOutput, [ + FullType(TestNoPayloadInputOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -5782,10 +5326,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5797,28 +5338,25 @@ class _RestJsonProtocolServer try { final payload = (await _testPayloadBlobProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i6.Uint8List), - ) as _i6.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i6.Uint8List), + ) + as _i6.Uint8List?); final input = TestPayloadBlobInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testPayloadBlob( - input, - context, - ); + final output = await service.testPayloadBlob(input, context); if (output.contentType != null) { context.response.headers['Content-Type'] = output.contentType!; } const statusCode = 200; final body = await _testPayloadBlobProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestPayloadBlobInputOutput, - [FullType.nullable(_i6.Uint8List)], - ), + specifiedType: const FullType(TestPayloadBlobInputOutput, [ + FullType.nullable(_i6.Uint8List), + ]), ); return _i4.Response( statusCode, @@ -5826,10 +5364,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5841,28 +5376,25 @@ class _RestJsonProtocolServer try { final payload = (await _testPayloadStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadConfig), - ) as PayloadConfig?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(PayloadConfig), + ) + as PayloadConfig?); final input = TestPayloadStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.testPayloadStructure( - input, - context, - ); + final output = await service.testPayloadStructure(input, context); if (output.testId != null) { context.response.headers['x-amz-test-id'] = output.testId!; } const statusCode = 200; final body = await _testPayloadStructureProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - TestPayloadStructureInputOutput, - [FullType.nullable(PayloadConfig)], - ), + specifiedType: const FullType(TestPayloadStructureInputOutput, [ + FullType.nullable(PayloadConfig), + ]), ); return _i4.Response( statusCode, @@ -5870,10 +5402,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5885,79 +5414,73 @@ class _RestJsonProtocolServer try { final payload = (await _timestampFormatHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TimestampFormatHeadersIoPayload), - ) as TimestampFormatHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(TimestampFormatHeadersIoPayload), + ) + as TimestampFormatHeadersIoPayload); final input = TimestampFormatHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.timestampFormatHeaders( - input, - context, - ); + final output = await service.timestampFormatHeaders(input, context); if (output.memberEpochSeconds != null) { context.response.headers['X-memberEpochSeconds'] = - _i1.Timestamp(output.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.memberHttpDate != null) { context.response.headers['X-memberHttpDate'] = - _i1.Timestamp(output.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.memberDateTime != null) { context.response.headers['X-memberDateTime'] = - _i1.Timestamp(output.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (output.defaultFormat != null) { context.response.headers['X-defaultFormat'] = - _i1.Timestamp(output.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetEpochSeconds != null) { context.response.headers['X-targetEpochSeconds'] = - _i1.Timestamp(output.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.targetHttpDate != null) { context.response.headers['X-targetHttpDate'] = - _i1.Timestamp(output.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetDateTime != null) { context.response.headers['X-targetDateTime'] = - _i1.Timestamp(output.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } const statusCode = 200; - final body = - await _timestampFormatHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - TimestampFormatHeadersIo, - [FullType(TimestampFormatHeadersIoPayload)], - ), - ); + final body = await _timestampFormatHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(TimestampFormatHeadersIo, [ + FullType(TimestampFormatHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -5969,21 +5492,16 @@ class _RestJsonProtocolServer try { final payload = (await _unitInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.unitInputAndOutput( - input, - context, - ); + final output = await service.unitInputAndOutput(input, context); const statusCode = 200; final body = await _unitInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -5991,10 +5509,7 @@ class _RestJsonProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart index 7c64f99fec..8b370759b4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Json Validation Protocol'; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart index 8c856d5f8c..fcbb79f7ec 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -87,97 +87,44 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(EnumString)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(EnumString), - FullType(EnumString), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(ValidationExceptionField)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(_i3.Uint8List)], - ): _i2.SetBuilder<_i3.Uint8List>.new, - const FullType( - _i2.BuiltSet, - [FullType(bool)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(_i4.Int64)], - ): _i2.SetBuilder<_i4.Int64>.new, - const FullType( - _i2.BuiltSet, - [FullType(DateTime)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.SetBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltSet, - [FullType(GreetingStruct)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(MissingKeyStructure)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooUnion)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(EnumString)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(EnumString), FullType(EnumString)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(ValidationExceptionField)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(_i3.Uint8List)]): + _i2.SetBuilder<_i3.Uint8List>.new, + const FullType(_i2.BuiltSet, [FullType(bool)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(_i4.Int64)]): + _i2.SetBuilder<_i4.Int64>.new, + const FullType(_i2.BuiltSet, [FullType(DateTime)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(IntegerEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.SetBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltSet, [FullType(GreetingStruct)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(MissingKeyStructure)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooUnion)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart index c77775514e..a3a63e2908 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestJson1Serializer() + AwsConfigRestJson1Serializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestJson1Serializer const AwsConfigRestJson1Serializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestJson1Serializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestJson1Serializer if (clockTime != null) { result$ ..add('clockTime') - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add('scopedConfig') - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart index 536ce58368..a1ccbf16eb 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestJson1Serializer() + ClientConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestJson1Serializer const ClientConfigRestJson1Serializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestJson1Serializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('aws_profile') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add('retry_config') - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart index 6541d8263e..5146db6f07 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_string.dart @@ -1,42 +1,22 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.enum_string; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EnumString extends _i1.SmithyEnum { - const EnumString._( - super.index, - super.name, - super.value, - ); + const EnumString._(super.index, super.name, super.value); const EnumString._sdkUnknown(super.value) : super.sdkUnknown(); - static const abc = EnumString._( - 0, - 'ABC', - 'abc', - ); + static const abc = EnumString._(0, 'ABC', 'abc'); - static const def = EnumString._( - 1, - 'DEF', - 'def', - ); + static const def = EnumString._(1, 'DEF', 'def'); - static const ghi = EnumString._( - 2, - 'GHI', - 'ghi', - ); + static const ghi = EnumString._(2, 'GHI', 'ghi'); - static const jkl = EnumString._( - 3, - 'JKL', - 'jkl', - ); + static const jkl = EnumString._(3, 'JKL', 'jkl'); /// All values of [EnumString]. static const values = [ @@ -52,12 +32,9 @@ class EnumString extends _i1.SmithyEnum { values: values, sdkUnknown: EnumString._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart index cf8306f1d7..143a8eff53 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_trait_string.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.enum_trait_string; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EnumTraitString extends _i1.SmithyEnum { - const EnumTraitString._( - super.index, - super.name, - super.value, - ); + const EnumTraitString._(super.index, super.name, super.value); const EnumTraitString._sdkUnknown(super.value) : super.sdkUnknown(); - static const abc = EnumTraitString._( - 0, - 'ABC', - 'abc', - ); + static const abc = EnumTraitString._(0, 'ABC', 'abc'); - static const def = EnumTraitString._( - 1, - 'DEF', - 'def', - ); + static const def = EnumTraitString._(1, 'DEF', 'def'); - static const ghi = EnumTraitString._( - 2, - 'GHI', - 'ghi', - ); + static const ghi = EnumTraitString._(2, 'GHI', 'ghi'); /// All values of [EnumTraitString]. static const values = [ @@ -45,12 +29,9 @@ class EnumTraitString extends _i1.SmithyEnum { values: values, sdkUnknown: EnumTraitString._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart index c4dd92fef0..66c51e4384 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/enum_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.enum_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,13 +15,11 @@ sealed class EnumUnion extends _i1.SmithyUnion { const factory EnumUnion.second(EnumString second) = EnumUnionSecond$; - const factory EnumUnion.sdkUnknown( - String name, - Object value, - ) = EnumUnionSdkUnknown$; + const factory EnumUnion.sdkUnknown(String name, Object value) = + EnumUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - EnumUnionRestJson1Serializer() + EnumUnionRestJson1Serializer(), ]; EnumString? get first => null; @@ -35,16 +33,10 @@ sealed class EnumUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'EnumUnion'); if (first != null) { - helper.add( - r'first', - first, - ); + helper.add(r'first', first); } if (second != null) { - helper.add( - r'second', - second, - ); + helper.add(r'second', second); } return helper.toString(); } @@ -71,10 +63,7 @@ final class EnumUnionSecond$ extends EnumUnion { } final class EnumUnionSdkUnknown$ extends EnumUnion { - const EnumUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const EnumUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -89,18 +78,15 @@ class EnumUnionRestJson1Serializer @override Iterable get types => const [ - EnumUnion, - EnumUnionFirst$, - EnumUnionSecond$, - ]; + EnumUnion, + EnumUnionFirst$, + EnumUnionSecond$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnumUnion deserialize( @@ -111,20 +97,23 @@ class EnumUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return EnumUnionFirst$((serializers.deserialize( - value, - specifiedType: const FullType(EnumString), - ) as EnumString)); + return EnumUnionFirst$( + (serializers.deserialize( + value, + specifiedType: const FullType(EnumString), + ) + as EnumString), + ); case 'second': - return EnumUnionSecond$((serializers.deserialize( - value, - specifiedType: const FullType(EnumString), - ) as EnumString)); + return EnumUnionSecond$( + (serializers.deserialize( + value, + specifiedType: const FullType(EnumString), + ) + as EnumString), + ); } - return EnumUnion.sdkUnknown( - key, - value, - ); + return EnumUnion.sdkUnknown(key, value); } @override @@ -137,13 +126,13 @@ class EnumUnionRestJson1Serializer object.name, switch (object) { EnumUnionFirst$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(EnumString), - ), + value, + specifiedType: const FullType(EnumString), + ), EnumUnionSecond$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(EnumString), - ), + value, + specifiedType: const FullType(EnumString), + ), EnumUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart index e89d22fbc6..24339de75d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestJson1Serializer() + EnvironmentConfigRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestJson1Serializer const EnvironmentConfigRestJson1Serializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestJson1Serializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestJson1Serializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add('AWS_ACCESS_KEY_ID') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add('AWS_DEFAULT_REGION') - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add('AWS_PROFILE') - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add('AWS_RETRY_MODE') - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('AWS_SECRET_ACCESS_KEY') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('AWS_SESSION_TOKEN') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart index a02817c717..5c79810f01 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestJson1Serializer() + FileConfigSettingsRestJson1Serializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestJson1Serializer const FileConfigSettingsRestJson1Serializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestJson1Serializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestJson1Serializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add('aws_access_key_id') - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add('aws_secret_access_key') - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add('aws_session_token') - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add('region') - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add('retry_mode') - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart index 3b730ede28..cc197d65aa 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart index fc64c8ecbb..caf8e0afcf 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/foo_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.foo_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,13 +14,11 @@ sealed class FooUnion extends _i1.SmithyUnion { const factory FooUnion.integer(int integer) = FooUnionInteger$; - const factory FooUnion.sdkUnknown( - String name, - Object value, - ) = FooUnionSdkUnknown$; + const factory FooUnion.sdkUnknown(String name, Object value) = + FooUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - FooUnionRestJson1Serializer() + FooUnionRestJson1Serializer(), ]; String? get string => null; @@ -34,16 +32,10 @@ sealed class FooUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'FooUnion'); if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } if (integer != null) { - helper.add( - r'integer', - integer, - ); + helper.add(r'integer', integer); } return helper.toString(); } @@ -70,10 +62,7 @@ final class FooUnionInteger$ extends FooUnion { } final class FooUnionSdkUnknown$ extends FooUnion { - const FooUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const FooUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,18 +77,15 @@ class FooUnionRestJson1Serializer @override Iterable get types => const [ - FooUnion, - FooUnionString$, - FooUnionInteger$, - ]; + FooUnion, + FooUnionString$, + FooUnionInteger$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FooUnion deserialize( @@ -110,20 +96,17 @@ class FooUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return FooUnionString$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return FooUnionString$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'integer': - return FooUnionInteger$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return FooUnionInteger$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); } - return FooUnion.sdkUnknown( - key, - value, - ); + return FooUnion.sdkUnknown(key, value); } @override @@ -136,13 +119,13 @@ class FooUnionRestJson1Serializer object.name, switch (object) { FooUnionString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), FooUnionInteger$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), FooUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart index ee2fa089d9..39867467bd 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,18 +26,16 @@ abstract class GreetingStruct GreetingStruct payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [GreetingStruct] from a [payload] and [response]. factory GreetingStruct.fromResponse( GreetingStruct payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - GreetingStructRestJson1Serializer() + GreetingStructRestJson1Serializer(), ]; String? get hi; @@ -49,11 +47,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -63,18 +57,12 @@ class GreetingStructRestJson1Serializer const GreetingStructRestJson1Serializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingStruct deserialize( @@ -93,10 +81,12 @@ class GreetingStructRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -114,10 +104,7 @@ class GreetingStructRestJson1Serializer if (hi != null) { result$ ..add('hi') - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/integer_enum.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/integer_enum.dart index 4c71f844c0..5f43b7f163 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/integer_enum.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/integer_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.integer_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class IntegerEnum extends _i1.SmithyIntEnum { - const IntegerEnum._( - super.index, - super.name, - super.value, - ); + const IntegerEnum._(super.index, super.name, super.value); const IntegerEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = IntegerEnum._( - 0, - 'A', - 1, - ); + static const a = IntegerEnum._(0, 'A', 1); - static const b = IntegerEnum._( - 1, - 'B', - 2, - ); + static const b = IntegerEnum._(1, 'B', 2); - static const c = IntegerEnum._( - 2, - 'C', - 3, - ); + static const c = IntegerEnum._(2, 'C', 3); /// All values of [IntegerEnum]. static const values = [ @@ -45,12 +29,9 @@ class IntegerEnum extends _i1.SmithyIntEnum { values: values, sdkUnknown: IntegerEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart index 27e66a8869..d3417fb138 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_enum_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class MalformedEnumInput ); } - factory MalformedEnumInput.build( - [void Function(MalformedEnumInputBuilder) updates]) = - _$MalformedEnumInput; + factory MalformedEnumInput.build([ + void Function(MalformedEnumInputBuilder) updates, + ]) = _$MalformedEnumInput; const MalformedEnumInput._(); @@ -43,11 +43,10 @@ abstract class MalformedEnumInput MalformedEnumInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedEnumInputRestJson1Serializer() + MalformedEnumInputRestJson1Serializer(), ]; EnumString? get string; @@ -59,37 +58,17 @@ abstract class MalformedEnumInput MalformedEnumInput getPayload() => this; @override - List get props => [ - string, - stringWithEnumTrait, - list, - map, - union, - ]; + List get props => [string, stringWithEnumTrait, list, map, union]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedEnumInput') - ..add( - 'string', - string, - ) - ..add( - 'stringWithEnumTrait', - stringWithEnumTrait, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ) - ..add( - 'union', - union, - ); + final helper = + newBuiltValueToStringHelper('MalformedEnumInput') + ..add('string', string) + ..add('stringWithEnumTrait', stringWithEnumTrait) + ..add('list', list) + ..add('map', map) + ..add('union', union); return helper.toString(); } } @@ -99,18 +78,12 @@ class MalformedEnumInputRestJson1Serializer const MalformedEnumInputRestJson1Serializer() : super('MalformedEnumInput'); @override - Iterable get types => const [ - MalformedEnumInput, - _$MalformedEnumInput, - ]; + Iterable get types => const [MalformedEnumInput, _$MalformedEnumInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedEnumInput deserialize( @@ -129,39 +102,47 @@ class MalformedEnumInputRestJson1Serializer } switch (key) { case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(EnumString)], - ), - ) as _i3.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(EnumString), + ]), + ) + as _i3.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(EnumString), - FullType(EnumString), - ], - ), - ) as _i3.BuiltMap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(EnumString), + FullType(EnumString), + ]), + ) + as _i3.BuiltMap), + ); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(EnumString), - ) as EnumString); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(EnumString), + ) + as EnumString); case 'stringWithEnumTrait': - result.stringWithEnumTrait = (serializers.deserialize( - value, - specifiedType: const FullType(EnumTraitString), - ) as EnumTraitString); + result.stringWithEnumTrait = + (serializers.deserialize( + value, + specifiedType: const FullType(EnumTraitString), + ) + as EnumTraitString); case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(EnumUnion), - ) as EnumUnion); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(EnumUnion), + ) + as EnumUnion); } } @@ -180,56 +161,62 @@ class MalformedEnumInputRestJson1Serializer :map, :string, :stringWithEnumTrait, - :union + :union, ) = object; if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(EnumString)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(EnumString), + ]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(EnumString), FullType(EnumString), - ], + ]), ), - )); + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(EnumString), - )); + ..add( + serializers.serialize( + string, + specifiedType: const FullType(EnumString), + ), + ); } if (stringWithEnumTrait != null) { result$ ..add('stringWithEnumTrait') - ..add(serializers.serialize( - stringWithEnumTrait, - specifiedType: const FullType(EnumTraitString), - )); + ..add( + serializers.serialize( + stringWithEnumTrait, + specifiedType: const FullType(EnumTraitString), + ), + ); } if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(EnumUnion), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(EnumUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart index eadc789302..3f67ab553d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_enum_input.g.dart @@ -18,18 +18,22 @@ class _$MalformedEnumInput extends MalformedEnumInput { @override final EnumUnion? union; - factory _$MalformedEnumInput( - [void Function(MalformedEnumInputBuilder)? updates]) => - (new MalformedEnumInputBuilder()..update(updates))._build(); - - _$MalformedEnumInput._( - {this.string, this.stringWithEnumTrait, this.list, this.map, this.union}) - : super._(); + factory _$MalformedEnumInput([ + void Function(MalformedEnumInputBuilder)? updates, + ]) => (new MalformedEnumInputBuilder()..update(updates))._build(); + + _$MalformedEnumInput._({ + this.string, + this.stringWithEnumTrait, + this.list, + this.map, + this.union, + }) : super._(); @override MalformedEnumInput rebuild( - void Function(MalformedEnumInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedEnumInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedEnumInputBuilder toBuilder() => @@ -118,13 +122,15 @@ class MalformedEnumInputBuilder _$MalformedEnumInput _build() { _$MalformedEnumInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedEnumInput._( - string: string, - stringWithEnumTrait: stringWithEnumTrait, - list: _list?.build(), - map: _map?.build(), - union: union); + string: string, + stringWithEnumTrait: stringWithEnumTrait, + list: _list?.build(), + map: _map?.build(), + union: union, + ); } catch (_) { late String _$failedField; try { @@ -134,7 +140,10 @@ class MalformedEnumInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedEnumInput', _$failedField, e.toString()); + r'MalformedEnumInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart index d12ee0c648..560451bc94 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_length_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,9 +36,9 @@ abstract class MalformedLengthInput ); } - factory MalformedLengthInput.build( - [void Function(MalformedLengthInputBuilder) updates]) = - _$MalformedLengthInput; + factory MalformedLengthInput.build([ + void Function(MalformedLengthInputBuilder) updates, + ]) = _$MalformedLengthInput; const MalformedLengthInput._(); @@ -46,11 +46,10 @@ abstract class MalformedLengthInput MalformedLengthInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedLengthInputRestJson1Serializer() + MalformedLengthInputRestJson1Serializer(), ]; _i3.Uint8List? get blob; @@ -63,42 +62,18 @@ abstract class MalformedLengthInput MalformedLengthInput getPayload() => this; @override - List get props => [ - blob, - string, - minString, - maxString, - list, - map, - ]; + List get props => [blob, string, minString, maxString, list, map]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedLengthInput') - ..add( - 'blob', - blob, - ) - ..add( - 'string', - string, - ) - ..add( - 'minString', - minString, - ) - ..add( - 'maxString', - maxString, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ); + final helper = + newBuiltValueToStringHelper('MalformedLengthInput') + ..add('blob', blob) + ..add('string', string) + ..add('minString', minString) + ..add('maxString', maxString) + ..add('list', list) + ..add('map', map); return helper.toString(); } } @@ -106,21 +81,18 @@ abstract class MalformedLengthInput class MalformedLengthInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedLengthInputRestJson1Serializer() - : super('MalformedLengthInput'); + : super('MalformedLengthInput'); @override Iterable get types => const [ - MalformedLengthInput, - _$MalformedLengthInput, - ]; + MalformedLengthInput, + _$MalformedLengthInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLengthInput deserialize( @@ -139,44 +111,54 @@ class MalformedLengthInputRestJson1Serializer } switch (key) { case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); case 'maxString': - result.maxString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maxString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'minString': - result.minString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.minString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -196,64 +178,67 @@ class MalformedLengthInputRestJson1Serializer :map, :maxString, :minString, - :string + :string, ) = object; if (blob != null) { result$ ..add('blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i4.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i4.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (maxString != null) { result$ ..add('maxString') - ..add(serializers.serialize( - maxString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + maxString, + specifiedType: const FullType(String), + ), + ); } if (minString != null) { result$ ..add('minString') - ..add(serializers.serialize( - minString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + minString, + specifiedType: const FullType(String), + ), + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart index 9598bde1da..e73dc101fc 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_input.g.dart @@ -20,23 +20,23 @@ class _$MalformedLengthInput extends MalformedLengthInput { @override final _i4.BuiltListMultimap? map; - factory _$MalformedLengthInput( - [void Function(MalformedLengthInputBuilder)? updates]) => - (new MalformedLengthInputBuilder()..update(updates))._build(); - - _$MalformedLengthInput._( - {this.blob, - this.string, - this.minString, - this.maxString, - this.list, - this.map}) - : super._(); + factory _$MalformedLengthInput([ + void Function(MalformedLengthInputBuilder)? updates, + ]) => (new MalformedLengthInputBuilder()..update(updates))._build(); + + _$MalformedLengthInput._({ + this.blob, + this.string, + this.minString, + this.maxString, + this.list, + this.map, + }) : super._(); @override MalformedLengthInput rebuild( - void Function(MalformedLengthInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthInputBuilder toBuilder() => @@ -131,14 +131,16 @@ class MalformedLengthInputBuilder _$MalformedLengthInput _build() { _$MalformedLengthInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedLengthInput._( - blob: blob, - string: string, - minString: minString, - maxString: maxString, - list: _list?.build(), - map: _map?.build()); + blob: blob, + string: string, + minString: minString, + maxString: maxString, + list: _list?.build(), + map: _map?.build(), + ); } catch (_) { late String _$failedField; try { @@ -148,7 +150,10 @@ class MalformedLengthInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedLengthInput', _$failedField, e.toString()); + r'MalformedLengthInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart index c74bc873a9..f46a673529 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_length_override_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class MalformedLengthOverrideInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedLengthOverrideInput, + MalformedLengthOverrideInputBuilder + > { factory MalformedLengthOverrideInput({ _i3.Uint8List? blob, String? string, @@ -38,9 +40,9 @@ abstract class MalformedLengthOverrideInput ); } - factory MalformedLengthOverrideInput.build( - [void Function(MalformedLengthOverrideInputBuilder) updates]) = - _$MalformedLengthOverrideInput; + factory MalformedLengthOverrideInput.build([ + void Function(MalformedLengthOverrideInputBuilder) updates, + ]) = _$MalformedLengthOverrideInput; const MalformedLengthOverrideInput._(); @@ -48,11 +50,10 @@ abstract class MalformedLengthOverrideInput MalformedLengthOverrideInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedLengthOverrideInputRestJson1Serializer()]; + serializers = [MalformedLengthOverrideInputRestJson1Serializer()]; _i3.Uint8List? get blob; String? get string; @@ -64,42 +65,18 @@ abstract class MalformedLengthOverrideInput MalformedLengthOverrideInput getPayload() => this; @override - List get props => [ - blob, - string, - minString, - maxString, - list, - map, - ]; + List get props => [blob, string, minString, maxString, list, map]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedLengthOverrideInput') - ..add( - 'blob', - blob, - ) - ..add( - 'string', - string, - ) - ..add( - 'minString', - minString, - ) - ..add( - 'maxString', - maxString, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ); + final helper = + newBuiltValueToStringHelper('MalformedLengthOverrideInput') + ..add('blob', blob) + ..add('string', string) + ..add('minString', minString) + ..add('maxString', maxString) + ..add('list', list) + ..add('map', map); return helper.toString(); } } @@ -107,21 +84,18 @@ abstract class MalformedLengthOverrideInput class MalformedLengthOverrideInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedLengthOverrideInputRestJson1Serializer() - : super('MalformedLengthOverrideInput'); + : super('MalformedLengthOverrideInput'); @override Iterable get types => const [ - MalformedLengthOverrideInput, - _$MalformedLengthOverrideInput, - ]; + MalformedLengthOverrideInput, + _$MalformedLengthOverrideInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLengthOverrideInput deserialize( @@ -140,44 +114,54 @@ class MalformedLengthOverrideInputRestJson1Serializer } switch (key) { case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); case 'maxString': - result.maxString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maxString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'minString': - result.minString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.minString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -197,64 +181,67 @@ class MalformedLengthOverrideInputRestJson1Serializer :map, :maxString, :minString, - :string + :string, ) = object; if (blob != null) { result$ ..add('blob') - ..add(serializers.serialize( - blob, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + blob, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i4.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i4.BuiltListMultimap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (maxString != null) { result$ ..add('maxString') - ..add(serializers.serialize( - maxString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + maxString, + specifiedType: const FullType(String), + ), + ); } if (minString != null) { result$ ..add('minString') - ..add(serializers.serialize( - minString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + minString, + specifiedType: const FullType(String), + ), + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart index 808f200004..c8bd484bc8 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_override_input.g.dart @@ -20,23 +20,23 @@ class _$MalformedLengthOverrideInput extends MalformedLengthOverrideInput { @override final _i4.BuiltListMultimap? map; - factory _$MalformedLengthOverrideInput( - [void Function(MalformedLengthOverrideInputBuilder)? updates]) => - (new MalformedLengthOverrideInputBuilder()..update(updates))._build(); - - _$MalformedLengthOverrideInput._( - {this.blob, - this.string, - this.minString, - this.maxString, - this.list, - this.map}) - : super._(); + factory _$MalformedLengthOverrideInput([ + void Function(MalformedLengthOverrideInputBuilder)? updates, + ]) => (new MalformedLengthOverrideInputBuilder()..update(updates))._build(); + + _$MalformedLengthOverrideInput._({ + this.blob, + this.string, + this.minString, + this.maxString, + this.list, + this.map, + }) : super._(); @override MalformedLengthOverrideInput rebuild( - void Function(MalformedLengthOverrideInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthOverrideInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthOverrideInputBuilder toBuilder() => @@ -70,8 +70,10 @@ class _$MalformedLengthOverrideInput extends MalformedLengthOverrideInput { class MalformedLengthOverrideInputBuilder implements - Builder { + Builder< + MalformedLengthOverrideInput, + MalformedLengthOverrideInputBuilder + > { _$MalformedLengthOverrideInput? _$v; _i3.Uint8List? _blob; @@ -133,14 +135,16 @@ class MalformedLengthOverrideInputBuilder _$MalformedLengthOverrideInput _build() { _$MalformedLengthOverrideInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedLengthOverrideInput._( - blob: blob, - string: string, - minString: minString, - maxString: maxString, - list: _list?.build(), - map: _map?.build()); + blob: blob, + string: string, + minString: minString, + maxString: maxString, + list: _list?.build(), + map: _map?.build(), + ); } catch (_) { late String _$failedField; try { @@ -150,7 +154,10 @@ class MalformedLengthOverrideInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedLengthOverrideInput', _$failedField, e.toString()); + r'MalformedLengthOverrideInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart index 8d1ae019a1..54de23f7d9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_length_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class MalformedLengthQueryStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + MalformedLengthQueryStringInput, + MalformedLengthQueryStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory MalformedLengthQueryStringInput({String? string}) { return _$MalformedLengthQueryStringInput._(string: string); } - factory MalformedLengthQueryStringInput.build( - [void Function(MalformedLengthQueryStringInputBuilder) updates]) = - _$MalformedLengthQueryStringInput; + factory MalformedLengthQueryStringInput.build([ + void Function(MalformedLengthQueryStringInputBuilder) updates, + ]) = _$MalformedLengthQueryStringInput; const MalformedLengthQueryStringInput._(); @@ -34,16 +36,16 @@ abstract class MalformedLengthQueryStringInput MalformedLengthQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedLengthQueryStringInput.build((b) { - if (request.queryParameters['string'] != null) { - b.string = request.queryParameters['string']!; - } - }); + }) => MalformedLengthQueryStringInput.build((b) { + if (request.queryParameters['string'] != null) { + b.string = request.queryParameters['string']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [MalformedLengthQueryStringInputRestJson1Serializer()]; + _i1.SmithySerializer + > + serializers = [MalformedLengthQueryStringInputRestJson1Serializer()]; String? get string; @override @@ -55,27 +57,25 @@ abstract class MalformedLengthQueryStringInput @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedLengthQueryStringInput') - ..add( - 'string', - string, - ); + final helper = newBuiltValueToStringHelper( + 'MalformedLengthQueryStringInput', + )..add('string', string); return helper.toString(); } } @_i3.internal abstract class MalformedLengthQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory MalformedLengthQueryStringInputPayload( - [void Function(MalformedLengthQueryStringInputPayloadBuilder) - updates]) = _$MalformedLengthQueryStringInputPayload; + factory MalformedLengthQueryStringInputPayload([ + void Function(MalformedLengthQueryStringInputPayloadBuilder) updates, + ]) = _$MalformedLengthQueryStringInputPayload; const MalformedLengthQueryStringInputPayload._(); @@ -84,32 +84,31 @@ abstract class MalformedLengthQueryStringInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('MalformedLengthQueryStringInputPayload'); + final helper = newBuiltValueToStringHelper( + 'MalformedLengthQueryStringInputPayload', + ); return helper.toString(); } } -class MalformedLengthQueryStringInputRestJson1Serializer extends _i1 - .StructuredSmithySerializer { +class MalformedLengthQueryStringInputRestJson1Serializer + extends + _i1.StructuredSmithySerializer { const MalformedLengthQueryStringInputRestJson1Serializer() - : super('MalformedLengthQueryStringInput'); + : super('MalformedLengthQueryStringInput'); @override Iterable get types => const [ - MalformedLengthQueryStringInput, - _$MalformedLengthQueryStringInput, - MalformedLengthQueryStringInputPayload, - _$MalformedLengthQueryStringInputPayload, - ]; + MalformedLengthQueryStringInput, + _$MalformedLengthQueryStringInput, + MalformedLengthQueryStringInputPayload, + _$MalformedLengthQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedLengthQueryStringInputPayload deserialize( @@ -125,6 +124,5 @@ class MalformedLengthQueryStringInputRestJson1Serializer extends _i1 Serializers serializers, MalformedLengthQueryStringInputPayload object, { FullType specifiedType = FullType.unspecified, - }) => - const []; + }) => const []; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart index 27de51316e..89e15a6105 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_length_query_string_input.g.dart @@ -11,16 +11,17 @@ class _$MalformedLengthQueryStringInput @override final String? string; - factory _$MalformedLengthQueryStringInput( - [void Function(MalformedLengthQueryStringInputBuilder)? updates]) => + factory _$MalformedLengthQueryStringInput([ + void Function(MalformedLengthQueryStringInputBuilder)? updates, + ]) => (new MalformedLengthQueryStringInputBuilder()..update(updates))._build(); _$MalformedLengthQueryStringInput._({this.string}) : super._(); @override MalformedLengthQueryStringInput rebuild( - void Function(MalformedLengthQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthQueryStringInputBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$MalformedLengthQueryStringInput class MalformedLengthQueryStringInputBuilder implements - Builder { + Builder< + MalformedLengthQueryStringInput, + MalformedLengthQueryStringInputBuilder + > { _$MalformedLengthQueryStringInput? _$v; String? _string; @@ -86,9 +89,9 @@ class MalformedLengthQueryStringInputBuilder class _$MalformedLengthQueryStringInputPayload extends MalformedLengthQueryStringInputPayload { - factory _$MalformedLengthQueryStringInputPayload( - [void Function(MalformedLengthQueryStringInputPayloadBuilder)? - updates]) => + factory _$MalformedLengthQueryStringInputPayload([ + void Function(MalformedLengthQueryStringInputPayloadBuilder)? updates, + ]) => (new MalformedLengthQueryStringInputPayloadBuilder()..update(updates)) ._build(); @@ -96,9 +99,8 @@ class _$MalformedLengthQueryStringInputPayload @override MalformedLengthQueryStringInputPayload rebuild( - void Function(MalformedLengthQueryStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedLengthQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedLengthQueryStringInputPayloadBuilder toBuilder() => @@ -118,8 +120,10 @@ class _$MalformedLengthQueryStringInputPayload class MalformedLengthQueryStringInputPayloadBuilder implements - Builder { + Builder< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInputPayloadBuilder + > { _$MalformedLengthQueryStringInputPayload? _$v; MalformedLengthQueryStringInputPayloadBuilder(); @@ -132,7 +136,8 @@ class MalformedLengthQueryStringInputPayloadBuilder @override void update( - void Function(MalformedLengthQueryStringInputPayloadBuilder)? updates) { + void Function(MalformedLengthQueryStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart index ae6b13f0d1..0f221399c7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_pattern_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class MalformedPatternInput ); } - factory MalformedPatternInput.build( - [void Function(MalformedPatternInputBuilder) updates]) = - _$MalformedPatternInput; + factory MalformedPatternInput.build([ + void Function(MalformedPatternInputBuilder) updates, + ]) = _$MalformedPatternInput; const MalformedPatternInput._(); @@ -43,11 +43,10 @@ abstract class MalformedPatternInput MalformedPatternInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedPatternInputRestJson1Serializer() + MalformedPatternInputRestJson1Serializer(), ]; String? get string; @@ -59,37 +58,17 @@ abstract class MalformedPatternInput MalformedPatternInput getPayload() => this; @override - List get props => [ - string, - evilString, - list, - map, - union, - ]; + List get props => [string, evilString, list, map, union]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedPatternInput') - ..add( - 'string', - string, - ) - ..add( - 'evilString', - evilString, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ) - ..add( - 'union', - union, - ); + final helper = + newBuiltValueToStringHelper('MalformedPatternInput') + ..add('string', string) + ..add('evilString', evilString) + ..add('list', list) + ..add('map', map) + ..add('union', union); return helper.toString(); } } @@ -97,21 +76,18 @@ abstract class MalformedPatternInput class MalformedPatternInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedPatternInputRestJson1Serializer() - : super('MalformedPatternInput'); + : super('MalformedPatternInput'); @override Iterable get types => const [ - MalformedPatternInput, - _$MalformedPatternInput, - ]; + MalformedPatternInput, + _$MalformedPatternInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedPatternInput deserialize( @@ -130,39 +106,47 @@ class MalformedPatternInputRestJson1Serializer } switch (key) { case 'evilString': - result.evilString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.evilString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(PatternUnion), - ) as PatternUnion); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(PatternUnion), + ) + as PatternUnion); } } @@ -181,51 +165,52 @@ class MalformedPatternInputRestJson1Serializer if (evilString != null) { result$ ..add('evilString') - ..add(serializers.serialize( - evilString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + evilString, + specifiedType: const FullType(String), + ), + ); } if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(PatternUnion), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(PatternUnion), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart index acb069a745..08ce7b645c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_input.g.dart @@ -18,18 +18,22 @@ class _$MalformedPatternInput extends MalformedPatternInput { @override final PatternUnion? union; - factory _$MalformedPatternInput( - [void Function(MalformedPatternInputBuilder)? updates]) => - (new MalformedPatternInputBuilder()..update(updates))._build(); - - _$MalformedPatternInput._( - {this.string, this.evilString, this.list, this.map, this.union}) - : super._(); + factory _$MalformedPatternInput([ + void Function(MalformedPatternInputBuilder)? updates, + ]) => (new MalformedPatternInputBuilder()..update(updates))._build(); + + _$MalformedPatternInput._({ + this.string, + this.evilString, + this.list, + this.map, + this.union, + }) : super._(); @override MalformedPatternInput rebuild( - void Function(MalformedPatternInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedPatternInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedPatternInputBuilder toBuilder() => @@ -117,13 +121,15 @@ class MalformedPatternInputBuilder _$MalformedPatternInput _build() { _$MalformedPatternInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedPatternInput._( - string: string, - evilString: evilString, - list: _list?.build(), - map: _map?.build(), - union: union); + string: string, + evilString: evilString, + list: _list?.build(), + map: _map?.build(), + union: union, + ); } catch (_) { late String _$failedField; try { @@ -133,7 +139,10 @@ class MalformedPatternInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedPatternInput', _$failedField, e.toString()); + r'MalformedPatternInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart index 253e6a85da..827fa184f1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_pattern_override_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class MalformedPatternOverrideInput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + MalformedPatternOverrideInput, + MalformedPatternOverrideInputBuilder + > { factory MalformedPatternOverrideInput({ String? string, List? list, @@ -33,9 +35,9 @@ abstract class MalformedPatternOverrideInput ); } - factory MalformedPatternOverrideInput.build( - [void Function(MalformedPatternOverrideInputBuilder) updates]) = - _$MalformedPatternOverrideInput; + factory MalformedPatternOverrideInput.build([ + void Function(MalformedPatternOverrideInputBuilder) updates, + ]) = _$MalformedPatternOverrideInput; const MalformedPatternOverrideInput._(); @@ -43,11 +45,10 @@ abstract class MalformedPatternOverrideInput MalformedPatternOverrideInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedPatternOverrideInputRestJson1Serializer()]; + serializers = [MalformedPatternOverrideInputRestJson1Serializer()]; String? get string; _i3.BuiltList? get list; @@ -57,32 +58,16 @@ abstract class MalformedPatternOverrideInput MalformedPatternOverrideInput getPayload() => this; @override - List get props => [ - string, - list, - map, - union, - ]; + List get props => [string, list, map, union]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedPatternOverrideInput') - ..add( - 'string', - string, - ) - ..add( - 'list', - list, - ) - ..add( - 'map', - map, - ) - ..add( - 'union', - union, - ); + final helper = + newBuiltValueToStringHelper('MalformedPatternOverrideInput') + ..add('string', string) + ..add('list', list) + ..add('map', map) + ..add('union', union); return helper.toString(); } } @@ -90,21 +75,18 @@ abstract class MalformedPatternOverrideInput class MalformedPatternOverrideInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedPatternOverrideInputRestJson1Serializer() - : super('MalformedPatternOverrideInput'); + : super('MalformedPatternOverrideInput'); @override Iterable get types => const [ - MalformedPatternOverrideInput, - _$MalformedPatternOverrideInput, - ]; + MalformedPatternOverrideInput, + _$MalformedPatternOverrideInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedPatternOverrideInput deserialize( @@ -123,34 +105,40 @@ class MalformedPatternOverrideInputRestJson1Serializer } switch (key) { case 'list': - result.list.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.list.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'map': - result.map.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i3.BuiltMap)); + result.map.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i3.BuiltMap), + ); case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(PatternUnionOverride), - ) as PatternUnionOverride); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(PatternUnionOverride), + ) + as PatternUnionOverride); } } @@ -168,43 +156,42 @@ class MalformedPatternOverrideInputRestJson1Serializer if (list != null) { result$ ..add('list') - ..add(serializers.serialize( - list, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + serializers.serialize( + list, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (map != null) { result$ ..add('map') - ..add(serializers.serialize( - map, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + serializers.serialize( + map, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(PatternUnionOverride), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(PatternUnionOverride), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart index 69927876ad..c1346e8f34 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_pattern_override_input.g.dart @@ -16,18 +16,21 @@ class _$MalformedPatternOverrideInput extends MalformedPatternOverrideInput { @override final PatternUnionOverride? union; - factory _$MalformedPatternOverrideInput( - [void Function(MalformedPatternOverrideInputBuilder)? updates]) => - (new MalformedPatternOverrideInputBuilder()..update(updates))._build(); + factory _$MalformedPatternOverrideInput([ + void Function(MalformedPatternOverrideInputBuilder)? updates, + ]) => (new MalformedPatternOverrideInputBuilder()..update(updates))._build(); - _$MalformedPatternOverrideInput._( - {this.string, this.list, this.map, this.union}) - : super._(); + _$MalformedPatternOverrideInput._({ + this.string, + this.list, + this.map, + this.union, + }) : super._(); @override MalformedPatternOverrideInput rebuild( - void Function(MalformedPatternOverrideInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedPatternOverrideInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedPatternOverrideInputBuilder toBuilder() => @@ -57,8 +60,10 @@ class _$MalformedPatternOverrideInput extends MalformedPatternOverrideInput { class MalformedPatternOverrideInputBuilder implements - Builder { + Builder< + MalformedPatternOverrideInput, + MalformedPatternOverrideInputBuilder + > { _$MalformedPatternOverrideInput? _$v; String? _string; @@ -110,12 +115,14 @@ class MalformedPatternOverrideInputBuilder _$MalformedPatternOverrideInput _build() { _$MalformedPatternOverrideInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedPatternOverrideInput._( - string: string, - list: _list?.build(), - map: _map?.build(), - union: union); + string: string, + list: _list?.build(), + map: _map?.build(), + union: union, + ); } catch (_) { late String _$failedField; try { @@ -125,7 +132,10 @@ class MalformedPatternOverrideInputBuilder _map?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedPatternOverrideInput', _$failedField, e.toString()); + r'MalformedPatternOverrideInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart index 549df381d9..91c0174207 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_range_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -52,9 +52,9 @@ abstract class MalformedRangeInput ); } - factory MalformedRangeInput.build( - [void Function(MalformedRangeInputBuilder) updates]) = - _$MalformedRangeInput; + factory MalformedRangeInput.build([ + void Function(MalformedRangeInputBuilder) updates, + ]) = _$MalformedRangeInput; const MalformedRangeInput._(); @@ -62,11 +62,10 @@ abstract class MalformedRangeInput MalformedRangeInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - MalformedRangeInputRestJson1Serializer() + MalformedRangeInputRestJson1Serializer(), ]; int? get byte; @@ -89,86 +88,42 @@ abstract class MalformedRangeInput @override List get props => [ - byte, - minByte, - maxByte, - short, - minShort, - maxShort, - integer, - minInteger, - maxInteger, - long, - minLong, - maxLong, - float, - minFloat, - maxFloat, - ]; + byte, + minByte, + maxByte, + short, + minShort, + maxShort, + integer, + minInteger, + maxInteger, + long, + minLong, + maxLong, + float, + minFloat, + maxFloat, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRangeInput') - ..add( - 'byte', - byte, - ) - ..add( - 'minByte', - minByte, - ) - ..add( - 'maxByte', - maxByte, - ) - ..add( - 'short', - short, - ) - ..add( - 'minShort', - minShort, - ) - ..add( - 'maxShort', - maxShort, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'minInteger', - minInteger, - ) - ..add( - 'maxInteger', - maxInteger, - ) - ..add( - 'long', - long, - ) - ..add( - 'minLong', - minLong, - ) - ..add( - 'maxLong', - maxLong, - ) - ..add( - 'float', - float, - ) - ..add( - 'minFloat', - minFloat, - ) - ..add( - 'maxFloat', - maxFloat, - ); + final helper = + newBuiltValueToStringHelper('MalformedRangeInput') + ..add('byte', byte) + ..add('minByte', minByte) + ..add('maxByte', maxByte) + ..add('short', short) + ..add('minShort', minShort) + ..add('maxShort', maxShort) + ..add('integer', integer) + ..add('minInteger', minInteger) + ..add('maxInteger', maxInteger) + ..add('long', long) + ..add('minLong', minLong) + ..add('maxLong', maxLong) + ..add('float', float) + ..add('minFloat', minFloat) + ..add('maxFloat', maxFloat); return helper.toString(); } } @@ -179,17 +134,14 @@ class MalformedRangeInputRestJson1Serializer @override Iterable get types => const [ - MalformedRangeInput, - _$MalformedRangeInput, - ]; + MalformedRangeInput, + _$MalformedRangeInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRangeInput deserialize( @@ -208,80 +160,110 @@ class MalformedRangeInputRestJson1Serializer } switch (key) { case 'byte': - result.byte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxByte': - result.maxByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxFloat': - result.maxFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.maxFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'maxInteger': - result.maxInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxLong': - result.maxLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.maxLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxShort': - result.maxShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minByte': - result.minByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minFloat': - result.minFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.minFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'minInteger': - result.minInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minLong': - result.minLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.minLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'minShort': - result.minShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -310,127 +292,120 @@ class MalformedRangeInputRestJson1Serializer :minInteger, :minLong, :minShort, - :short + :short, ) = object; if (byte != null) { result$ ..add('byte') - ..add(serializers.serialize( - byte, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(byte, specifiedType: const FullType(int))); } if (float != null) { result$ ..add('float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (integer != null) { result$ ..add('integer') - ..add(serializers.serialize( - integer, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(integer, specifiedType: const FullType(int)), + ); } if (long != null) { result$ ..add('long') - ..add(serializers.serialize( - long, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize(long, specifiedType: const FullType(_i3.Int64)), + ); } if (maxByte != null) { result$ ..add('maxByte') - ..add(serializers.serialize( - maxByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxByte, specifiedType: const FullType(int)), + ); } if (maxFloat != null) { result$ ..add('maxFloat') - ..add(serializers.serialize( - maxFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + maxFloat, + specifiedType: const FullType(double), + ), + ); } if (maxInteger != null) { result$ ..add('maxInteger') - ..add(serializers.serialize( - maxInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxInteger, specifiedType: const FullType(int)), + ); } if (maxLong != null) { result$ ..add('maxLong') - ..add(serializers.serialize( - maxLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + maxLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (maxShort != null) { result$ ..add('maxShort') - ..add(serializers.serialize( - maxShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxShort, specifiedType: const FullType(int)), + ); } if (minByte != null) { result$ ..add('minByte') - ..add(serializers.serialize( - minByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minByte, specifiedType: const FullType(int)), + ); } if (minFloat != null) { result$ ..add('minFloat') - ..add(serializers.serialize( - minFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + minFloat, + specifiedType: const FullType(double), + ), + ); } if (minInteger != null) { result$ ..add('minInteger') - ..add(serializers.serialize( - minInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minInteger, specifiedType: const FullType(int)), + ); } if (minLong != null) { result$ ..add('minLong') - ..add(serializers.serialize( - minLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + minLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (minShort != null) { result$ ..add('minShort') - ..add(serializers.serialize( - minShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minShort, specifiedType: const FullType(int)), + ); } if (short != null) { result$ ..add('short') - ..add(serializers.serialize( - short, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(short, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart index 4d19209046..a11b8706e9 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_input.g.dart @@ -38,32 +38,32 @@ class _$MalformedRangeInput extends MalformedRangeInput { @override final double? maxFloat; - factory _$MalformedRangeInput( - [void Function(MalformedRangeInputBuilder)? updates]) => - (new MalformedRangeInputBuilder()..update(updates))._build(); - - _$MalformedRangeInput._( - {this.byte, - this.minByte, - this.maxByte, - this.short, - this.minShort, - this.maxShort, - this.integer, - this.minInteger, - this.maxInteger, - this.long, - this.minLong, - this.maxLong, - this.float, - this.minFloat, - this.maxFloat}) - : super._(); + factory _$MalformedRangeInput([ + void Function(MalformedRangeInputBuilder)? updates, + ]) => (new MalformedRangeInputBuilder()..update(updates))._build(); + + _$MalformedRangeInput._({ + this.byte, + this.minByte, + this.maxByte, + this.short, + this.minShort, + this.maxShort, + this.integer, + this.minInteger, + this.maxInteger, + this.long, + this.minLong, + this.maxLong, + this.float, + this.minFloat, + this.maxFloat, + }) : super._(); @override MalformedRangeInput rebuild( - void Function(MalformedRangeInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRangeInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRangeInputBuilder toBuilder() => @@ -217,23 +217,25 @@ class MalformedRangeInputBuilder MalformedRangeInput build() => _build(); _$MalformedRangeInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRangeInput._( - byte: byte, - minByte: minByte, - maxByte: maxByte, - short: short, - minShort: minShort, - maxShort: maxShort, - integer: integer, - minInteger: minInteger, - maxInteger: maxInteger, - long: long, - minLong: minLong, - maxLong: maxLong, - float: float, - minFloat: minFloat, - maxFloat: maxFloat); + byte: byte, + minByte: minByte, + maxByte: maxByte, + short: short, + minShort: minShort, + maxShort: maxShort, + integer: integer, + minInteger: minInteger, + maxInteger: maxInteger, + long: long, + minLong: minLong, + maxLong: maxLong, + float: float, + minFloat: minFloat, + maxFloat: maxFloat, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart index e77bddc4b2..7da813e412 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_range_override_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -53,9 +53,9 @@ abstract class MalformedRangeOverrideInput ); } - factory MalformedRangeOverrideInput.build( - [void Function(MalformedRangeOverrideInputBuilder) updates]) = - _$MalformedRangeOverrideInput; + factory MalformedRangeOverrideInput.build([ + void Function(MalformedRangeOverrideInputBuilder) updates, + ]) = _$MalformedRangeOverrideInput; const MalformedRangeOverrideInput._(); @@ -63,11 +63,10 @@ abstract class MalformedRangeOverrideInput MalformedRangeOverrideInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedRangeOverrideInputRestJson1Serializer()]; + serializers = [MalformedRangeOverrideInputRestJson1Serializer()]; int? get byte; int? get minByte; @@ -89,86 +88,42 @@ abstract class MalformedRangeOverrideInput @override List get props => [ - byte, - minByte, - maxByte, - short, - minShort, - maxShort, - integer, - minInteger, - maxInteger, - long, - minLong, - maxLong, - float, - minFloat, - maxFloat, - ]; + byte, + minByte, + maxByte, + short, + minShort, + maxShort, + integer, + minInteger, + maxInteger, + long, + minLong, + maxLong, + float, + minFloat, + maxFloat, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRangeOverrideInput') - ..add( - 'byte', - byte, - ) - ..add( - 'minByte', - minByte, - ) - ..add( - 'maxByte', - maxByte, - ) - ..add( - 'short', - short, - ) - ..add( - 'minShort', - minShort, - ) - ..add( - 'maxShort', - maxShort, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'minInteger', - minInteger, - ) - ..add( - 'maxInteger', - maxInteger, - ) - ..add( - 'long', - long, - ) - ..add( - 'minLong', - minLong, - ) - ..add( - 'maxLong', - maxLong, - ) - ..add( - 'float', - float, - ) - ..add( - 'minFloat', - minFloat, - ) - ..add( - 'maxFloat', - maxFloat, - ); + final helper = + newBuiltValueToStringHelper('MalformedRangeOverrideInput') + ..add('byte', byte) + ..add('minByte', minByte) + ..add('maxByte', maxByte) + ..add('short', short) + ..add('minShort', minShort) + ..add('maxShort', maxShort) + ..add('integer', integer) + ..add('minInteger', minInteger) + ..add('maxInteger', maxInteger) + ..add('long', long) + ..add('minLong', minLong) + ..add('maxLong', maxLong) + ..add('float', float) + ..add('minFloat', minFloat) + ..add('maxFloat', maxFloat); return helper.toString(); } } @@ -176,21 +131,18 @@ abstract class MalformedRangeOverrideInput class MalformedRangeOverrideInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedRangeOverrideInputRestJson1Serializer() - : super('MalformedRangeOverrideInput'); + : super('MalformedRangeOverrideInput'); @override Iterable get types => const [ - MalformedRangeOverrideInput, - _$MalformedRangeOverrideInput, - ]; + MalformedRangeOverrideInput, + _$MalformedRangeOverrideInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRangeOverrideInput deserialize( @@ -209,80 +161,110 @@ class MalformedRangeOverrideInputRestJson1Serializer } switch (key) { case 'byte': - result.byte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxByte': - result.maxByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxFloat': - result.maxFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.maxFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'maxInteger': - result.maxInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'maxLong': - result.maxLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.maxLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'maxShort': - result.maxShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minByte': - result.minByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minFloat': - result.minFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.minFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'minInteger': - result.minInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'minLong': - result.minLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.minLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'minShort': - result.minShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -311,127 +293,120 @@ class MalformedRangeOverrideInputRestJson1Serializer :minInteger, :minLong, :minShort, - :short + :short, ) = object; if (byte != null) { result$ ..add('byte') - ..add(serializers.serialize( - byte, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(byte, specifiedType: const FullType(int))); } if (float != null) { result$ ..add('float') - ..add(serializers.serialize( - float, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize(float, specifiedType: const FullType(double)), + ); } if (integer != null) { result$ ..add('integer') - ..add(serializers.serialize( - integer, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(integer, specifiedType: const FullType(int)), + ); } if (long != null) { result$ ..add('long') - ..add(serializers.serialize( - long, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize(long, specifiedType: const FullType(_i3.Int64)), + ); } if (maxByte != null) { result$ ..add('maxByte') - ..add(serializers.serialize( - maxByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxByte, specifiedType: const FullType(int)), + ); } if (maxFloat != null) { result$ ..add('maxFloat') - ..add(serializers.serialize( - maxFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + maxFloat, + specifiedType: const FullType(double), + ), + ); } if (maxInteger != null) { result$ ..add('maxInteger') - ..add(serializers.serialize( - maxInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxInteger, specifiedType: const FullType(int)), + ); } if (maxLong != null) { result$ ..add('maxLong') - ..add(serializers.serialize( - maxLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + maxLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (maxShort != null) { result$ ..add('maxShort') - ..add(serializers.serialize( - maxShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxShort, specifiedType: const FullType(int)), + ); } if (minByte != null) { result$ ..add('minByte') - ..add(serializers.serialize( - minByte, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minByte, specifiedType: const FullType(int)), + ); } if (minFloat != null) { result$ ..add('minFloat') - ..add(serializers.serialize( - minFloat, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + minFloat, + specifiedType: const FullType(double), + ), + ); } if (minInteger != null) { result$ ..add('minInteger') - ..add(serializers.serialize( - minInteger, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minInteger, specifiedType: const FullType(int)), + ); } if (minLong != null) { result$ ..add('minLong') - ..add(serializers.serialize( - minLong, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + minLong, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (minShort != null) { result$ ..add('minShort') - ..add(serializers.serialize( - minShort, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(minShort, specifiedType: const FullType(int)), + ); } if (short != null) { result$ ..add('short') - ..add(serializers.serialize( - short, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(short, specifiedType: const FullType(int))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart index 8ed5634c5c..bdc86120c5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_range_override_input.g.dart @@ -38,32 +38,32 @@ class _$MalformedRangeOverrideInput extends MalformedRangeOverrideInput { @override final double? maxFloat; - factory _$MalformedRangeOverrideInput( - [void Function(MalformedRangeOverrideInputBuilder)? updates]) => - (new MalformedRangeOverrideInputBuilder()..update(updates))._build(); - - _$MalformedRangeOverrideInput._( - {this.byte, - this.minByte, - this.maxByte, - this.short, - this.minShort, - this.maxShort, - this.integer, - this.minInteger, - this.maxInteger, - this.long, - this.minLong, - this.maxLong, - this.float, - this.minFloat, - this.maxFloat}) - : super._(); + factory _$MalformedRangeOverrideInput([ + void Function(MalformedRangeOverrideInputBuilder)? updates, + ]) => (new MalformedRangeOverrideInputBuilder()..update(updates))._build(); + + _$MalformedRangeOverrideInput._({ + this.byte, + this.minByte, + this.maxByte, + this.short, + this.minShort, + this.maxShort, + this.integer, + this.minInteger, + this.maxInteger, + this.long, + this.minLong, + this.maxLong, + this.float, + this.minFloat, + this.maxFloat, + }) : super._(); @override MalformedRangeOverrideInput rebuild( - void Function(MalformedRangeOverrideInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRangeOverrideInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRangeOverrideInputBuilder toBuilder() => @@ -115,8 +115,10 @@ class _$MalformedRangeOverrideInput extends MalformedRangeOverrideInput { class MalformedRangeOverrideInputBuilder implements - Builder { + Builder< + MalformedRangeOverrideInput, + MalformedRangeOverrideInputBuilder + > { _$MalformedRangeOverrideInput? _$v; int? _byte; @@ -219,23 +221,25 @@ class MalformedRangeOverrideInputBuilder MalformedRangeOverrideInput build() => _build(); _$MalformedRangeOverrideInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRangeOverrideInput._( - byte: byte, - minByte: minByte, - maxByte: maxByte, - short: short, - minShort: minShort, - maxShort: maxShort, - integer: integer, - minInteger: minInteger, - maxInteger: maxInteger, - long: long, - minLong: minLong, - maxLong: maxLong, - float: float, - minFloat: minFloat, - maxFloat: maxFloat); + byte: byte, + minByte: minByte, + maxByte: maxByte, + short: short, + minShort: minShort, + maxShort: maxShort, + integer: integer, + minInteger: minInteger, + maxInteger: maxInteger, + long: long, + minLong: minLong, + maxLong: maxLong, + float: float, + minFloat: minFloat, + maxFloat: maxFloat, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart index 6e42f0dc41..b7e4c67b1f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_required_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,9 +30,9 @@ abstract class MalformedRequiredInput ); } - factory MalformedRequiredInput.build( - [void Function(MalformedRequiredInputBuilder) updates]) = - _$MalformedRequiredInput; + factory MalformedRequiredInput.build([ + void Function(MalformedRequiredInputBuilder) updates, + ]) = _$MalformedRequiredInput; const MalformedRequiredInput._(); @@ -40,19 +40,18 @@ abstract class MalformedRequiredInput MalformedRequiredInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - MalformedRequiredInput.build((b) { - b.string = payload.string; - if (request.headers['string-in-headers'] != null) { - b.stringInHeader = request.headers['string-in-headers']!; - } - if (request.queryParameters['stringInQuery'] != null) { - b.stringInQuery = request.queryParameters['stringInQuery']!; - } - }); + }) => MalformedRequiredInput.build((b) { + b.string = payload.string; + if (request.headers['string-in-headers'] != null) { + b.stringInHeader = request.headers['string-in-headers']!; + } + if (request.queryParameters['stringInQuery'] != null) { + b.stringInQuery = request.queryParameters['stringInQuery']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [MalformedRequiredInputRestJson1Serializer()]; + serializers = [MalformedRequiredInputRestJson1Serializer()]; String get string; String get stringInQuery; @@ -64,41 +63,30 @@ abstract class MalformedRequiredInput }); @override - List get props => [ - string, - stringInQuery, - stringInHeader, - ]; + List get props => [string, stringInQuery, stringInHeader]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedRequiredInput') - ..add( - 'string', - string, - ) - ..add( - 'stringInQuery', - stringInQuery, - ) - ..add( - 'stringInHeader', - stringInHeader, - ); + final helper = + newBuiltValueToStringHelper('MalformedRequiredInput') + ..add('string', string) + ..add('stringInQuery', stringInQuery) + ..add('stringInHeader', stringInHeader); return helper.toString(); } } @_i3.internal abstract class MalformedRequiredInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory MalformedRequiredInputPayload( - [void Function(MalformedRequiredInputPayloadBuilder) updates]) = - _$MalformedRequiredInputPayload; + Built< + MalformedRequiredInputPayload, + MalformedRequiredInputPayloadBuilder + > { + factory MalformedRequiredInputPayload([ + void Function(MalformedRequiredInputPayloadBuilder) updates, + ]) = _$MalformedRequiredInputPayload; const MalformedRequiredInputPayload._(); @@ -109,10 +97,7 @@ abstract class MalformedRequiredInputPayload @override String toString() { final helper = newBuiltValueToStringHelper('MalformedRequiredInputPayload') - ..add( - 'string', - string, - ); + ..add('string', string); return helper.toString(); } } @@ -120,23 +105,20 @@ abstract class MalformedRequiredInputPayload class MalformedRequiredInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedRequiredInputRestJson1Serializer() - : super('MalformedRequiredInput'); + : super('MalformedRequiredInput'); @override Iterable get types => const [ - MalformedRequiredInput, - _$MalformedRequiredInput, - MalformedRequiredInputPayload, - _$MalformedRequiredInputPayload, - ]; + MalformedRequiredInput, + _$MalformedRequiredInput, + MalformedRequiredInputPayload, + _$MalformedRequiredInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedRequiredInputPayload deserialize( @@ -155,10 +137,12 @@ class MalformedRequiredInputRestJson1Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -175,10 +159,7 @@ class MalformedRequiredInputRestJson1Serializer final MalformedRequiredInputPayload(:string) = object; result$.addAll([ 'string', - serializers.serialize( - string, - specifiedType: const FullType(String), - ), + serializers.serialize(string, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart index 12b97cea25..544d152457 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_required_input.g.dart @@ -14,27 +14,36 @@ class _$MalformedRequiredInput extends MalformedRequiredInput { @override final String stringInHeader; - factory _$MalformedRequiredInput( - [void Function(MalformedRequiredInputBuilder)? updates]) => - (new MalformedRequiredInputBuilder()..update(updates))._build(); - - _$MalformedRequiredInput._( - {required this.string, - required this.stringInQuery, - required this.stringInHeader}) - : super._() { + factory _$MalformedRequiredInput([ + void Function(MalformedRequiredInputBuilder)? updates, + ]) => (new MalformedRequiredInputBuilder()..update(updates))._build(); + + _$MalformedRequiredInput._({ + required this.string, + required this.stringInQuery, + required this.stringInHeader, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInput', 'string'); + string, + r'MalformedRequiredInput', + 'string', + ); BuiltValueNullFieldError.checkNotNull( - stringInQuery, r'MalformedRequiredInput', 'stringInQuery'); + stringInQuery, + r'MalformedRequiredInput', + 'stringInQuery', + ); BuiltValueNullFieldError.checkNotNull( - stringInHeader, r'MalformedRequiredInput', 'stringInHeader'); + stringInHeader, + r'MalformedRequiredInput', + 'stringInHeader', + ); } @override MalformedRequiredInput rebuild( - void Function(MalformedRequiredInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRequiredInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRequiredInputBuilder toBuilder() => @@ -106,14 +115,25 @@ class MalformedRequiredInputBuilder MalformedRequiredInput build() => _build(); _$MalformedRequiredInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRequiredInput._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInput', 'string'), - stringInQuery: BuiltValueNullFieldError.checkNotNull( - stringInQuery, r'MalformedRequiredInput', 'stringInQuery'), - stringInHeader: BuiltValueNullFieldError.checkNotNull( - stringInHeader, r'MalformedRequiredInput', 'stringInHeader')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'MalformedRequiredInput', + 'string', + ), + stringInQuery: BuiltValueNullFieldError.checkNotNull( + stringInQuery, + r'MalformedRequiredInput', + 'stringInQuery', + ), + stringInHeader: BuiltValueNullFieldError.checkNotNull( + stringInHeader, + r'MalformedRequiredInput', + 'stringInHeader', + ), + ); replace(_$result); return _$result; } @@ -123,19 +143,22 @@ class _$MalformedRequiredInputPayload extends MalformedRequiredInputPayload { @override final String string; - factory _$MalformedRequiredInputPayload( - [void Function(MalformedRequiredInputPayloadBuilder)? updates]) => - (new MalformedRequiredInputPayloadBuilder()..update(updates))._build(); + factory _$MalformedRequiredInputPayload([ + void Function(MalformedRequiredInputPayloadBuilder)? updates, + ]) => (new MalformedRequiredInputPayloadBuilder()..update(updates))._build(); _$MalformedRequiredInputPayload._({required this.string}) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInputPayload', 'string'); + string, + r'MalformedRequiredInputPayload', + 'string', + ); } @override MalformedRequiredInputPayload rebuild( - void Function(MalformedRequiredInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedRequiredInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedRequiredInputPayloadBuilder toBuilder() => @@ -158,8 +181,10 @@ class _$MalformedRequiredInputPayload extends MalformedRequiredInputPayload { class MalformedRequiredInputPayloadBuilder implements - Builder { + Builder< + MalformedRequiredInputPayload, + MalformedRequiredInputPayloadBuilder + > { _$MalformedRequiredInputPayload? _$v; String? _string; @@ -192,10 +217,15 @@ class MalformedRequiredInputPayloadBuilder MalformedRequiredInputPayload build() => _build(); _$MalformedRequiredInputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MalformedRequiredInputPayload._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'MalformedRequiredInputPayload', 'string')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'MalformedRequiredInputPayload', + 'string', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart index 1a8e2beaa6..9bfcf517a4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.malformed_unique_items_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -56,20 +56,22 @@ abstract class MalformedUniqueItemsInput httpDateList: httpDateList == null ? null : _i5.BuiltSet(httpDateList), enumList: enumList == null ? null : _i5.BuiltSet(enumList), intEnumList: intEnumList == null ? null : _i5.BuiltSet(intEnumList), - listList: listList == null - ? null - : _i5.BuiltSet(listList.map((el) => _i5.BuiltList(el))), + listList: + listList == null + ? null + : _i5.BuiltSet(listList.map((el) => _i5.BuiltList(el))), structureList: structureList == null ? null : _i5.BuiltSet(structureList), - structureListWithNoKey: structureListWithNoKey == null - ? null - : _i5.BuiltSet(structureListWithNoKey), + structureListWithNoKey: + structureListWithNoKey == null + ? null + : _i5.BuiltSet(structureListWithNoKey), unionList: unionList == null ? null : _i5.BuiltSet(unionList), ); } - factory MalformedUniqueItemsInput.build( - [void Function(MalformedUniqueItemsInputBuilder) updates]) = - _$MalformedUniqueItemsInput; + factory MalformedUniqueItemsInput.build([ + void Function(MalformedUniqueItemsInputBuilder) updates, + ]) = _$MalformedUniqueItemsInput; const MalformedUniqueItemsInput._(); @@ -77,11 +79,10 @@ abstract class MalformedUniqueItemsInput MalformedUniqueItemsInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [MalformedUniqueItemsInputRestJson1Serializer()]; + serializers = [MalformedUniqueItemsInputRestJson1Serializer()]; _i5.BuiltSet<_i3.Uint8List>? get blobList; _i5.BuiltSet? get booleanList; @@ -104,91 +105,44 @@ abstract class MalformedUniqueItemsInput @override List get props => [ - blobList, - booleanList, - stringList, - byteList, - shortList, - integerList, - longList, - timestampList, - dateTimeList, - httpDateList, - enumList, - intEnumList, - listList, - structureList, - structureListWithNoKey, - unionList, - ]; + blobList, + booleanList, + stringList, + byteList, + shortList, + integerList, + longList, + timestampList, + dateTimeList, + httpDateList, + enumList, + intEnumList, + listList, + structureList, + structureListWithNoKey, + unionList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MalformedUniqueItemsInput') - ..add( - 'blobList', - blobList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'stringList', - stringList, - ) - ..add( - 'byteList', - byteList, - ) - ..add( - 'shortList', - shortList, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'longList', - longList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'dateTimeList', - dateTimeList, - ) - ..add( - 'httpDateList', - httpDateList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'listList', - listList, - ) - ..add( - 'structureList', - structureList, - ) - ..add( - 'structureListWithNoKey', - structureListWithNoKey, - ) - ..add( - 'unionList', - unionList, - ); + final helper = + newBuiltValueToStringHelper('MalformedUniqueItemsInput') + ..add('blobList', blobList) + ..add('booleanList', booleanList) + ..add('stringList', stringList) + ..add('byteList', byteList) + ..add('shortList', shortList) + ..add('integerList', integerList) + ..add('longList', longList) + ..add('timestampList', timestampList) + ..add('dateTimeList', dateTimeList) + ..add('httpDateList', httpDateList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('listList', listList) + ..add('structureList', structureList) + ..add('structureListWithNoKey', structureListWithNoKey) + ..add('unionList', unionList); return helper.toString(); } } @@ -196,21 +150,18 @@ abstract class MalformedUniqueItemsInput class MalformedUniqueItemsInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const MalformedUniqueItemsInputRestJson1Serializer() - : super('MalformedUniqueItemsInput'); + : super('MalformedUniqueItemsInput'); @override Iterable get types => const [ - MalformedUniqueItemsInput, - _$MalformedUniqueItemsInput, - ]; + MalformedUniqueItemsInput, + _$MalformedUniqueItemsInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MalformedUniqueItemsInput deserialize( @@ -229,138 +180,157 @@ class MalformedUniqueItemsInputRestJson1Serializer } switch (key) { case 'blobList': - result.blobList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i3.Uint8List)], - ), - ) as _i5.BuiltSet<_i3.Uint8List>)); + result.blobList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i3.Uint8List), + ]), + ) + as _i5.BuiltSet<_i3.Uint8List>), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(bool)], - ), - ) as _i5.BuiltSet)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(bool)]), + ) + as _i5.BuiltSet), + ); case 'byteList': - result.byteList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.byteList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'dateTimeList': - result.dateTimeList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], - ), - ) as _i5.BuiltSet)); + result.dateTimeList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltSet), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i5.BuiltSet)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltSet), + ); case 'httpDateList': - result.httpDateList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], - ), - ) as _i5.BuiltSet)); + result.httpDateList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltSet), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i5.BuiltSet)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i5.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'listList': - result.listList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [ - FullType( - _i5.BuiltList, - [FullType(String)], + result.listList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i5.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i5.BuiltSet<_i5.BuiltList>)); + as _i5.BuiltSet<_i5.BuiltList>), + ); case 'longList': - result.longList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i4.Int64)], - ), - ) as _i5.BuiltSet<_i4.Int64>)); + result.longList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i4.Int64), + ]), + ) + as _i5.BuiltSet<_i4.Int64>), + ); case 'shortList': - result.shortList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], - ), - ) as _i5.BuiltSet)); + result.shortList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), + ) + as _i5.BuiltSet), + ); case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], - ), - ) as _i5.BuiltSet)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(String), + ]), + ) + as _i5.BuiltSet), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(GreetingStruct)], - ), - ) as _i5.BuiltSet)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(GreetingStruct), + ]), + ) + as _i5.BuiltSet), + ); case 'structureListWithNoKey': - result.structureListWithNoKey.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(MissingKeyStructure)], - ), - ) as _i5.BuiltSet)); + result.structureListWithNoKey.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(MissingKeyStructure), + ]), + ) + as _i5.BuiltSet), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], - ), - ) as _i5.BuiltSet)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltSet), + ); case 'unionList': - result.unionList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooUnion)], - ), - ) as _i5.BuiltSet)); + result.unionList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(FooUnion), + ]), + ) + as _i5.BuiltSet), + ); } } @@ -390,188 +360,177 @@ class MalformedUniqueItemsInputRestJson1Serializer :structureList, :structureListWithNoKey, :timestampList, - :unionList + :unionList, ) = object; if (blobList != null) { result$ ..add('blobList') - ..add(serializers.serialize( - blobList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i3.Uint8List)], + ..add( + serializers.serialize( + blobList, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i3.Uint8List), + ]), ), - )); + ); } if (booleanList != null) { result$ ..add('booleanList') - ..add(serializers.serialize( - booleanList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(bool)], + ..add( + serializers.serialize( + booleanList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(bool)]), ), - )); + ); } if (byteList != null) { result$ ..add('byteList') - ..add(serializers.serialize( - byteList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + byteList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), ), - )); + ); } if (dateTimeList != null) { result$ ..add('dateTimeList') - ..add(serializers.serialize( - dateTimeList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], + ..add( + serializers.serialize( + dateTimeList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(DateTime)]), ), - )); + ); } if (enumList != null) { result$ ..add('enumList') - ..add(serializers.serialize( - enumList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooEnum)], + ..add( + serializers.serialize( + enumList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } if (httpDateList != null) { result$ ..add('httpDateList') - ..add(serializers.serialize( - httpDateList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], + ..add( + serializers.serialize( + httpDateList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(DateTime)]), ), - )); + ); } if (intEnumList != null) { result$ ..add('intEnumList') - ..add(serializers.serialize( - intEnumList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(IntegerEnum)], + ..add( + serializers.serialize( + intEnumList, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (integerList != null) { result$ ..add('integerList') - ..add(serializers.serialize( - integerList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + integerList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), ), - )); + ); } if (listList != null) { result$ ..add('listList') - ..add(serializers.serialize( - listList, - specifiedType: const FullType( - _i5.BuiltSet, - [ - FullType( - _i5.BuiltList, - [FullType(String)], - ) - ], + ..add( + serializers.serialize( + listList, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(_i5.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (longList != null) { result$ ..add('longList') - ..add(serializers.serialize( - longList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(_i4.Int64)], + ..add( + serializers.serialize( + longList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(_i4.Int64)]), ), - )); + ); } if (shortList != null) { result$ ..add('shortList') - ..add(serializers.serialize( - shortList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(int)], + ..add( + serializers.serialize( + shortList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(int)]), ), - )); + ); } if (stringList != null) { result$ ..add('stringList') - ..add(serializers.serialize( - stringList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], + ..add( + serializers.serialize( + stringList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add('structureList') - ..add(serializers.serialize( - structureList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(GreetingStruct)], + ..add( + serializers.serialize( + structureList, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(GreetingStruct), + ]), ), - )); + ); } if (structureListWithNoKey != null) { result$ ..add('structureListWithNoKey') - ..add(serializers.serialize( - structureListWithNoKey, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(MissingKeyStructure)], + ..add( + serializers.serialize( + structureListWithNoKey, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(MissingKeyStructure), + ]), ), - )); + ); } if (timestampList != null) { result$ ..add('timestampList') - ..add(serializers.serialize( - timestampList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(DateTime)], + ..add( + serializers.serialize( + timestampList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(DateTime)]), ), - )); + ); } if (unionList != null) { result$ ..add('unionList') - ..add(serializers.serialize( - unionList, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(FooUnion)], + ..add( + serializers.serialize( + unionList, + specifiedType: const FullType(_i5.BuiltSet, [FullType(FooUnion)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart index 81ddc73aec..7d420c721e 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/malformed_unique_items_input.g.dart @@ -40,33 +40,33 @@ class _$MalformedUniqueItemsInput extends MalformedUniqueItemsInput { @override final _i5.BuiltSet? unionList; - factory _$MalformedUniqueItemsInput( - [void Function(MalformedUniqueItemsInputBuilder)? updates]) => - (new MalformedUniqueItemsInputBuilder()..update(updates))._build(); - - _$MalformedUniqueItemsInput._( - {this.blobList, - this.booleanList, - this.stringList, - this.byteList, - this.shortList, - this.integerList, - this.longList, - this.timestampList, - this.dateTimeList, - this.httpDateList, - this.enumList, - this.intEnumList, - this.listList, - this.structureList, - this.structureListWithNoKey, - this.unionList}) - : super._(); + factory _$MalformedUniqueItemsInput([ + void Function(MalformedUniqueItemsInputBuilder)? updates, + ]) => (new MalformedUniqueItemsInputBuilder()..update(updates))._build(); + + _$MalformedUniqueItemsInput._({ + this.blobList, + this.booleanList, + this.stringList, + this.byteList, + this.shortList, + this.integerList, + this.longList, + this.timestampList, + this.dateTimeList, + this.httpDateList, + this.enumList, + this.intEnumList, + this.listList, + this.structureList, + this.structureListWithNoKey, + this.unionList, + }) : super._(); @override MalformedUniqueItemsInput rebuild( - void Function(MalformedUniqueItemsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MalformedUniqueItemsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MalformedUniqueItemsInputBuilder toBuilder() => @@ -211,8 +211,8 @@ class MalformedUniqueItemsInputBuilder _$this._structureListWithNoKey ??= new _i5.SetBuilder(); set structureListWithNoKey( - _i5.SetBuilder? structureListWithNoKey) => - _$this._structureListWithNoKey = structureListWithNoKey; + _i5.SetBuilder? structureListWithNoKey, + ) => _$this._structureListWithNoKey = structureListWithNoKey; _i5.SetBuilder? _unionList; _i5.SetBuilder get unionList => @@ -263,24 +263,26 @@ class MalformedUniqueItemsInputBuilder _$MalformedUniqueItemsInput _build() { _$MalformedUniqueItemsInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MalformedUniqueItemsInput._( - blobList: _blobList?.build(), - booleanList: _booleanList?.build(), - stringList: _stringList?.build(), - byteList: _byteList?.build(), - shortList: _shortList?.build(), - integerList: _integerList?.build(), - longList: _longList?.build(), - timestampList: _timestampList?.build(), - dateTimeList: _dateTimeList?.build(), - httpDateList: _httpDateList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - listList: _listList?.build(), - structureList: _structureList?.build(), - structureListWithNoKey: _structureListWithNoKey?.build(), - unionList: _unionList?.build()); + blobList: _blobList?.build(), + booleanList: _booleanList?.build(), + stringList: _stringList?.build(), + byteList: _byteList?.build(), + shortList: _shortList?.build(), + integerList: _integerList?.build(), + longList: _longList?.build(), + timestampList: _timestampList?.build(), + dateTimeList: _dateTimeList?.build(), + httpDateList: _httpDateList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + listList: _listList?.build(), + structureList: _structureList?.build(), + structureListWithNoKey: _structureListWithNoKey?.build(), + unionList: _unionList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -318,7 +320,10 @@ class MalformedUniqueItemsInputBuilder _unionList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MalformedUniqueItemsInput', _$failedField, e.toString()); + r'MalformedUniqueItemsInput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart index 15ea354680..2d71a12759 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.missing_key_structure; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,14 @@ abstract class MissingKeyStructure return _$MissingKeyStructure._(hi: hi); } - factory MissingKeyStructure.build( - [void Function(MissingKeyStructureBuilder) updates]) = - _$MissingKeyStructure; + factory MissingKeyStructure.build([ + void Function(MissingKeyStructureBuilder) updates, + ]) = _$MissingKeyStructure; const MissingKeyStructure._(); static const List<_i2.SmithySerializer> serializers = [ - MissingKeyStructureRestJson1Serializer() + MissingKeyStructureRestJson1Serializer(), ]; String get hi; @@ -34,10 +34,7 @@ abstract class MissingKeyStructure @override String toString() { final helper = newBuiltValueToStringHelper('MissingKeyStructure') - ..add( - 'hi', - hi, - ); + ..add('hi', hi); return helper.toString(); } } @@ -48,17 +45,14 @@ class MissingKeyStructureRestJson1Serializer @override Iterable get types => const [ - MissingKeyStructure, - _$MissingKeyStructure, - ]; + MissingKeyStructure, + _$MissingKeyStructure, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingKeyStructure deserialize( @@ -77,10 +71,12 @@ class MissingKeyStructureRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +93,7 @@ class MissingKeyStructureRestJson1Serializer final MissingKeyStructure(:hi) = object; result$.addAll([ 'hi', - serializers.serialize( - hi, - specifiedType: const FullType(String), - ), + serializers.serialize(hi, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart index 2401470671..d7f80168a7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/missing_key_structure.g.dart @@ -10,9 +10,9 @@ class _$MissingKeyStructure extends MissingKeyStructure { @override final String hi; - factory _$MissingKeyStructure( - [void Function(MissingKeyStructureBuilder)? updates]) => - (new MissingKeyStructureBuilder()..update(updates))._build(); + factory _$MissingKeyStructure([ + void Function(MissingKeyStructureBuilder)? updates, + ]) => (new MissingKeyStructureBuilder()..update(updates))._build(); _$MissingKeyStructure._({required this.hi}) : super._() { BuiltValueNullFieldError.checkNotNull(hi, r'MissingKeyStructure', 'hi'); @@ -20,8 +20,8 @@ class _$MissingKeyStructure extends MissingKeyStructure { @override MissingKeyStructure rebuild( - void Function(MissingKeyStructureBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(MissingKeyStructureBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override MissingKeyStructureBuilder toBuilder() => @@ -76,10 +76,15 @@ class MissingKeyStructureBuilder MissingKeyStructure build() => _build(); _$MissingKeyStructure _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MissingKeyStructure._( - hi: BuiltValueNullFieldError.checkNotNull( - hi, r'MissingKeyStructure', 'hi')); + hi: BuiltValueNullFieldError.checkNotNull( + hi, + r'MissingKeyStructure', + 'hi', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart index 03822e89e5..ecb7f44249 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestJson1Serializer() + OperationConfigRestJson1Serializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestJson1Serializer const OperationConfigRestJson1Serializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestJson1Serializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestJson1Serializer if (s3 != null) { result$ ..add('s3') - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart index 40e8ee67a2..9e7397f4b6 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.pattern_union; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,13 +14,11 @@ sealed class PatternUnion extends _i1.SmithyUnion { const factory PatternUnion.second(String second) = PatternUnionSecond$; - const factory PatternUnion.sdkUnknown( - String name, - Object value, - ) = PatternUnionSdkUnknown$; + const factory PatternUnion.sdkUnknown(String name, Object value) = + PatternUnionSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - PatternUnionRestJson1Serializer() + PatternUnionRestJson1Serializer(), ]; String? get first => null; @@ -34,16 +32,10 @@ sealed class PatternUnion extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'PatternUnion'); if (first != null) { - helper.add( - r'first', - first, - ); + helper.add(r'first', first); } if (second != null) { - helper.add( - r'second', - second, - ); + helper.add(r'second', second); } return helper.toString(); } @@ -70,10 +62,7 @@ final class PatternUnionSecond$ extends PatternUnion { } final class PatternUnionSdkUnknown$ extends PatternUnion { - const PatternUnionSdkUnknown$( - this.name, - this.value, - ) : super._(); + const PatternUnionSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,18 +77,15 @@ class PatternUnionRestJson1Serializer @override Iterable get types => const [ - PatternUnion, - PatternUnionFirst$, - PatternUnionSecond$, - ]; + PatternUnion, + PatternUnionFirst$, + PatternUnionSecond$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PatternUnion deserialize( @@ -110,20 +96,17 @@ class PatternUnionRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionFirst$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionFirst$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'second': - return PatternUnionSecond$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionSecond$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return PatternUnion.sdkUnknown( - key, - value, - ); + return PatternUnion.sdkUnknown(key, value); } @override @@ -136,13 +119,13 @@ class PatternUnionRestJson1Serializer object.name, switch (object) { PatternUnionFirst$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionSecond$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart index 07fcc27cbd..78d5fc5fe5 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/pattern_union_override.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.pattern_union_override; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,13 +17,11 @@ sealed class PatternUnionOverride const factory PatternUnionOverride.second(String second) = PatternUnionOverrideSecond$; - const factory PatternUnionOverride.sdkUnknown( - String name, - Object value, - ) = PatternUnionOverrideSdkUnknown$; + const factory PatternUnionOverride.sdkUnknown(String name, Object value) = + PatternUnionOverrideSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - PatternUnionOverrideRestJson1Serializer() + PatternUnionOverrideRestJson1Serializer(), ]; String? get first => null; @@ -37,16 +35,10 @@ sealed class PatternUnionOverride String toString() { final helper = newBuiltValueToStringHelper(r'PatternUnionOverride'); if (first != null) { - helper.add( - r'first', - first, - ); + helper.add(r'first', first); } if (second != null) { - helper.add( - r'second', - second, - ); + helper.add(r'second', second); } return helper.toString(); } @@ -73,10 +65,7 @@ final class PatternUnionOverrideSecond$ extends PatternUnionOverride { } final class PatternUnionOverrideSdkUnknown$ extends PatternUnionOverride { - const PatternUnionOverrideSdkUnknown$( - this.name, - this.value, - ) : super._(); + const PatternUnionOverrideSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -88,22 +77,19 @@ final class PatternUnionOverrideSdkUnknown$ extends PatternUnionOverride { class PatternUnionOverrideRestJson1Serializer extends _i1.StructuredSmithySerializer { const PatternUnionOverrideRestJson1Serializer() - : super('PatternUnionOverride'); + : super('PatternUnionOverride'); @override Iterable get types => const [ - PatternUnionOverride, - PatternUnionOverrideFirst$, - PatternUnionOverrideSecond$, - ]; + PatternUnionOverride, + PatternUnionOverrideFirst$, + PatternUnionOverrideSecond$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PatternUnionOverride deserialize( @@ -114,20 +100,17 @@ class PatternUnionOverrideRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'first': - return PatternUnionOverrideFirst$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionOverrideFirst$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'second': - return PatternUnionOverrideSecond$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return PatternUnionOverrideSecond$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); } - return PatternUnionOverride.sdkUnknown( - key, - value, - ); + return PatternUnionOverride.sdkUnknown(key, value); } @override @@ -140,13 +123,13 @@ class PatternUnionOverrideRestJson1Serializer object.name, switch (object) { PatternUnionOverrideFirst$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionOverrideSecond$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), PatternUnionOverrideSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart index c3340dc8be..57349cbfdd 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_enum_string.dart @@ -1,30 +1,18 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.recursive_enum_string; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class RecursiveEnumString extends _i1.SmithyEnum { - const RecursiveEnumString._( - super.index, - super.name, - super.value, - ); + const RecursiveEnumString._(super.index, super.name, super.value); const RecursiveEnumString._sdkUnknown(super.value) : super.sdkUnknown(); - static const abc = RecursiveEnumString._( - 0, - 'ABC', - 'abc', - ); + static const abc = RecursiveEnumString._(0, 'ABC', 'abc'); - static const def = RecursiveEnumString._( - 1, - 'DEF', - 'def', - ); + static const def = RecursiveEnumString._(1, 'DEF', 'def'); /// All values of [RecursiveEnumString]. static const values = [ @@ -38,12 +26,9 @@ class RecursiveEnumString extends _i1.SmithyEnum { values: values, sdkUnknown: RecursiveEnumString._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart index 7700d88bfd..9568c41f62 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.recursive_structures_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class RecursiveStructuresInput return _$RecursiveStructuresInput._(union: union); } - factory RecursiveStructuresInput.build( - [void Function(RecursiveStructuresInputBuilder) updates]) = - _$RecursiveStructuresInput; + factory RecursiveStructuresInput.build([ + void Function(RecursiveStructuresInputBuilder) updates, + ]) = _$RecursiveStructuresInput; const RecursiveStructuresInput._(); @@ -31,11 +31,10 @@ abstract class RecursiveStructuresInput RecursiveStructuresInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [RecursiveStructuresInputRestJson1Serializer()]; + serializers = [RecursiveStructuresInputRestJson1Serializer()]; RecursiveUnionOne? get union; @override @@ -47,10 +46,7 @@ abstract class RecursiveStructuresInput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveStructuresInput') - ..add( - 'union', - union, - ); + ..add('union', union); return helper.toString(); } } @@ -58,21 +54,18 @@ abstract class RecursiveStructuresInput class RecursiveStructuresInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const RecursiveStructuresInputRestJson1Serializer() - : super('RecursiveStructuresInput'); + : super('RecursiveStructuresInput'); @override Iterable get types => const [ - RecursiveStructuresInput, - _$RecursiveStructuresInput, - ]; + RecursiveStructuresInput, + _$RecursiveStructuresInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveStructuresInput deserialize( @@ -91,10 +84,12 @@ class RecursiveStructuresInputRestJson1Serializer } switch (key) { case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ) as RecursiveUnionOne); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionOne), + ) + as RecursiveUnionOne); } } @@ -112,10 +107,12 @@ class RecursiveStructuresInputRestJson1Serializer if (union != null) { result$ ..add('union') - ..add(serializers.serialize( - union, - specifiedType: const FullType(RecursiveUnionOne), - )); + ..add( + serializers.serialize( + union, + specifiedType: const FullType(RecursiveUnionOne), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart index 3ddf632e4d..b9d6a8cba3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_structures_input.g.dart @@ -10,16 +10,16 @@ class _$RecursiveStructuresInput extends RecursiveStructuresInput { @override final RecursiveUnionOne? union; - factory _$RecursiveStructuresInput( - [void Function(RecursiveStructuresInputBuilder)? updates]) => - (new RecursiveStructuresInputBuilder()..update(updates))._build(); + factory _$RecursiveStructuresInput([ + void Function(RecursiveStructuresInputBuilder)? updates, + ]) => (new RecursiveStructuresInputBuilder()..update(updates))._build(); _$RecursiveStructuresInput._({this.union}) : super._(); @override RecursiveStructuresInput rebuild( - void Function(RecursiveStructuresInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveStructuresInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveStructuresInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart index 3150b0cb02..00b62d46d2 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_one.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.recursive_union_one; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,13 +18,11 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { const factory RecursiveUnionOne.union(RecursiveUnionTwo union) = RecursiveUnionOneUnion$; - const factory RecursiveUnionOne.sdkUnknown( - String name, - Object value, - ) = RecursiveUnionOneSdkUnknown$; + const factory RecursiveUnionOne.sdkUnknown(String name, Object value) = + RecursiveUnionOneSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - RecursiveUnionOneRestJson1Serializer() + RecursiveUnionOneRestJson1Serializer(), ]; RecursiveEnumString? get string => null; @@ -38,16 +36,10 @@ sealed class RecursiveUnionOne extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'RecursiveUnionOne'); if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } if (union != null) { - helper.add( - r'union', - union, - ); + helper.add(r'union', union); } return helper.toString(); } @@ -74,10 +66,7 @@ final class RecursiveUnionOneUnion$ extends RecursiveUnionOne { } final class RecursiveUnionOneSdkUnknown$ extends RecursiveUnionOne { - const RecursiveUnionOneSdkUnknown$( - this.name, - this.value, - ) : super._(); + const RecursiveUnionOneSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -92,18 +81,15 @@ class RecursiveUnionOneRestJson1Serializer @override Iterable get types => const [ - RecursiveUnionOne, - RecursiveUnionOneString$, - RecursiveUnionOneUnion$, - ]; + RecursiveUnionOne, + RecursiveUnionOneString$, + RecursiveUnionOneUnion$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveUnionOne deserialize( @@ -114,20 +100,23 @@ class RecursiveUnionOneRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionOneString$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ) as RecursiveEnumString)); + return RecursiveUnionOneString$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveEnumString), + ) + as RecursiveEnumString), + ); case 'union': - return RecursiveUnionOneUnion$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionTwo), - ) as RecursiveUnionTwo)); + return RecursiveUnionOneUnion$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionTwo), + ) + as RecursiveUnionTwo), + ); } - return RecursiveUnionOne.sdkUnknown( - key, - value, - ); + return RecursiveUnionOne.sdkUnknown(key, value); } @override @@ -140,13 +129,13 @@ class RecursiveUnionOneRestJson1Serializer object.name, switch (object) { RecursiveUnionOneString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ), + value, + specifiedType: const FullType(RecursiveEnumString), + ), RecursiveUnionOneUnion$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveUnionTwo), - ), + value, + specifiedType: const FullType(RecursiveUnionTwo), + ), RecursiveUnionOneSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart index 7e7b98a991..7308b1209f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/recursive_union_two.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.recursive_union_two; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,13 +18,11 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { const factory RecursiveUnionTwo.union(RecursiveUnionOne union) = RecursiveUnionTwoUnion$; - const factory RecursiveUnionTwo.sdkUnknown( - String name, - Object value, - ) = RecursiveUnionTwoSdkUnknown$; + const factory RecursiveUnionTwo.sdkUnknown(String name, Object value) = + RecursiveUnionTwoSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - RecursiveUnionTwoRestJson1Serializer() + RecursiveUnionTwoRestJson1Serializer(), ]; RecursiveEnumString? get string => null; @@ -38,16 +36,10 @@ sealed class RecursiveUnionTwo extends _i1.SmithyUnion { String toString() { final helper = newBuiltValueToStringHelper(r'RecursiveUnionTwo'); if (string != null) { - helper.add( - r'string', - string, - ); + helper.add(r'string', string); } if (union != null) { - helper.add( - r'union', - union, - ); + helper.add(r'union', union); } return helper.toString(); } @@ -74,10 +66,7 @@ final class RecursiveUnionTwoUnion$ extends RecursiveUnionTwo { } final class RecursiveUnionTwoSdkUnknown$ extends RecursiveUnionTwo { - const RecursiveUnionTwoSdkUnknown$( - this.name, - this.value, - ) : super._(); + const RecursiveUnionTwoSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -92,18 +81,15 @@ class RecursiveUnionTwoRestJson1Serializer @override Iterable get types => const [ - RecursiveUnionTwo, - RecursiveUnionTwoString$, - RecursiveUnionTwoUnion$, - ]; + RecursiveUnionTwo, + RecursiveUnionTwoString$, + RecursiveUnionTwoUnion$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveUnionTwo deserialize( @@ -114,20 +100,23 @@ class RecursiveUnionTwoRestJson1Serializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'string': - return RecursiveUnionTwoString$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ) as RecursiveEnumString)); + return RecursiveUnionTwoString$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveEnumString), + ) + as RecursiveEnumString), + ); case 'union': - return RecursiveUnionTwoUnion$((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ) as RecursiveUnionOne)); + return RecursiveUnionTwoUnion$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionOne), + ) + as RecursiveUnionOne), + ); } - return RecursiveUnionTwo.sdkUnknown( - key, - value, - ); + return RecursiveUnionTwo.sdkUnknown(key, value); } @override @@ -140,13 +129,13 @@ class RecursiveUnionTwoRestJson1Serializer object.name, switch (object) { RecursiveUnionTwoString$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveEnumString), - ), + value, + specifiedType: const FullType(RecursiveEnumString), + ), RecursiveUnionTwoUnion$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ), + value, + specifiedType: const FullType(RecursiveUnionOne), + ), RecursiveUnionTwoSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart index 5e00c75a96..8171c1da99 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestJson1Serializer() + RetryConfigRestJson1Serializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestJson1Serializer const RetryConfigRestJson1Serializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestJson1Serializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestJson1Serializer if (maxAttempts != null) { result$ ..add('max_attempts') - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add('mode') - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart index 74b7ded76c..09166a65ef 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart index 8ee1d0afec..c264527834 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart index c3ed0fad89..41408b8563 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestJson1Serializer() + S3ConfigRestJson1Serializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestJson1Serializer const S3ConfigRestJson1Serializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestJson1Serializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestJson1Serializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add('addressing_style') - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add('use_accelerate_endpoint') - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add('use_dualstack_endpoint') - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart index 35bf991489..c7dadae46d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestJson1Serializer() + ScopedConfigRestJson1Serializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestJson1Serializer const ScopedConfigRestJson1Serializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ScopedConfig deserialize( @@ -132,42 +112,51 @@ class ScopedConfigRestJson1Serializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i2.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i2.BuiltMap), + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -186,59 +175,63 @@ class ScopedConfigRestJson1Serializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add('client') - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add('configFile') - ..add(serializers.serialize( - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add('credentialsFile') - ..add(serializers.serialize( - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + serializers.serialize( + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add('environment') - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add('operation') - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart index 65e890b647..79821dc344 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.sensitive_validation_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class SensitiveValidationInput return _$SensitiveValidationInput._(string: string); } - factory SensitiveValidationInput.build( - [void Function(SensitiveValidationInputBuilder) updates]) = - _$SensitiveValidationInput; + factory SensitiveValidationInput.build([ + void Function(SensitiveValidationInputBuilder) updates, + ]) = _$SensitiveValidationInput; const SensitiveValidationInput._(); @@ -30,11 +30,10 @@ abstract class SensitiveValidationInput SensitiveValidationInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [SensitiveValidationInputRestJson1Serializer()]; + serializers = [SensitiveValidationInputRestJson1Serializer()]; String? get string; @override @@ -46,10 +45,7 @@ abstract class SensitiveValidationInput @override String toString() { final helper = newBuiltValueToStringHelper('SensitiveValidationInput') - ..add( - 'string', - '***SENSITIVE***', - ); + ..add('string', '***SENSITIVE***'); return helper.toString(); } } @@ -57,21 +53,18 @@ abstract class SensitiveValidationInput class SensitiveValidationInputRestJson1Serializer extends _i1.StructuredSmithySerializer { const SensitiveValidationInputRestJson1Serializer() - : super('SensitiveValidationInput'); + : super('SensitiveValidationInput'); @override Iterable get types => const [ - SensitiveValidationInput, - _$SensitiveValidationInput, - ]; + SensitiveValidationInput, + _$SensitiveValidationInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SensitiveValidationInput deserialize( @@ -90,10 +83,12 @@ class SensitiveValidationInputRestJson1Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -111,10 +106,9 @@ class SensitiveValidationInputRestJson1Serializer if (string != null) { result$ ..add('string') - ..add(serializers.serialize( - string, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(string, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart index 42d4a3b3c2..5e9f8e98ac 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/sensitive_validation_input.g.dart @@ -10,16 +10,16 @@ class _$SensitiveValidationInput extends SensitiveValidationInput { @override final String? string; - factory _$SensitiveValidationInput( - [void Function(SensitiveValidationInputBuilder)? updates]) => - (new SensitiveValidationInputBuilder()..update(updates))._build(); + factory _$SensitiveValidationInput([ + void Function(SensitiveValidationInputBuilder)? updates, + ]) => (new SensitiveValidationInputBuilder()..update(updates))._build(); _$SensitiveValidationInput._({this.string}) : super._(); @override SensitiveValidationInput rebuild( - void Function(SensitiveValidationInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SensitiveValidationInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SensitiveValidationInputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart index 70874b3c26..bcbeea2372 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.validation_exception; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -30,9 +30,9 @@ abstract class ValidationException } /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints. - factory ValidationException.build( - [void Function(ValidationExceptionBuilder) updates]) = - _$ValidationException; + factory ValidationException.build([ + void Function(ValidationExceptionBuilder) updates, + ]) = _$ValidationException; const ValidationException._(); @@ -40,14 +40,13 @@ abstract class ValidationException factory ValidationException.fromResponse( ValidationException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ValidationExceptionRestJson1Serializer() + ValidationExceptionRestJson1Serializer(), ]; /// A summary of the validation failure. @@ -58,9 +57,9 @@ abstract class ValidationException _i3.BuiltList? get fieldList; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ); + namespace: 'smithy.framework', + shape: 'ValidationException', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -75,22 +74,14 @@ abstract class ValidationException Exception? get underlyingException => null; @override - List get props => [ - message, - fieldList, - ]; + List get props => [message, fieldList]; @override String toString() { - final helper = newBuiltValueToStringHelper('ValidationException') - ..add( - 'message', - message, - ) - ..add( - 'fieldList', - fieldList, - ); + final helper = + newBuiltValueToStringHelper('ValidationException') + ..add('message', message) + ..add('fieldList', fieldList); return helper.toString(); } } @@ -101,17 +92,14 @@ class ValidationExceptionRestJson1Serializer @override Iterable get types => const [ - ValidationException, - _$ValidationException, - ]; + ValidationException, + _$ValidationException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationException deserialize( @@ -130,18 +118,22 @@ class ValidationExceptionRestJson1Serializer } switch (key) { case 'fieldList': - result.fieldList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(ValidationExceptionField)], - ), - ) as _i3.BuiltList)); + result.fieldList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(ValidationExceptionField), + ]), + ) + as _i3.BuiltList), + ); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -158,21 +150,19 @@ class ValidationExceptionRestJson1Serializer final ValidationException(:fieldList, :message) = object; result$.addAll([ 'message', - serializers.serialize( - message, - specifiedType: const FullType(String), - ), + serializers.serialize(message, specifiedType: const FullType(String)), ]); if (fieldList != null) { result$ ..add('fieldList') - ..add(serializers.serialize( - fieldList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(ValidationExceptionField)], + ..add( + serializers.serialize( + fieldList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(ValidationExceptionField), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart index 2fc609a05d..ba6151fbe6 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception.g.dart @@ -16,21 +16,27 @@ class _$ValidationException extends ValidationException { @override final Map? headers; - factory _$ValidationException( - [void Function(ValidationExceptionBuilder)? updates]) => - (new ValidationExceptionBuilder()..update(updates))._build(); - - _$ValidationException._( - {required this.message, this.fieldList, this.statusCode, this.headers}) - : super._() { + factory _$ValidationException([ + void Function(ValidationExceptionBuilder)? updates, + ]) => (new ValidationExceptionBuilder()..update(updates))._build(); + + _$ValidationException._({ + required this.message, + this.fieldList, + this.statusCode, + this.headers, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - message, r'ValidationException', 'message'); + message, + r'ValidationException', + 'message', + ); } @override ValidationException rebuild( - void Function(ValidationExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ValidationExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ValidationExceptionBuilder toBuilder() => @@ -107,13 +113,18 @@ class ValidationExceptionBuilder _$ValidationException _build() { _$ValidationException _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ValidationException._( - message: BuiltValueNullFieldError.checkNotNull( - message, r'ValidationException', 'message'), - fieldList: _fieldList?.build(), - statusCode: statusCode, - headers: headers); + message: BuiltValueNullFieldError.checkNotNull( + message, + r'ValidationException', + 'message', + ), + fieldList: _fieldList?.build(), + statusCode: statusCode, + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -121,7 +132,10 @@ class ValidationExceptionBuilder _fieldList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ValidationException', _$failedField, e.toString()); + r'ValidationException', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart index 5274c8555d..26d3c211f3 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.model.validation_exception_field; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,21 +20,18 @@ abstract class ValidationExceptionField required String path, required String message, }) { - return _$ValidationExceptionField._( - path: path, - message: message, - ); + return _$ValidationExceptionField._(path: path, message: message); } /// Describes one specific validation failure for an input member. - factory ValidationExceptionField.build( - [void Function(ValidationExceptionFieldBuilder) updates]) = - _$ValidationExceptionField; + factory ValidationExceptionField.build([ + void Function(ValidationExceptionFieldBuilder) updates, + ]) = _$ValidationExceptionField; const ValidationExceptionField._(); static const List<_i2.SmithySerializer> - serializers = [ValidationExceptionFieldRestJson1Serializer()]; + serializers = [ValidationExceptionFieldRestJson1Serializer()]; /// A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints. String get path; @@ -42,22 +39,14 @@ abstract class ValidationExceptionField /// A detailed description of the validation failure. String get message; @override - List get props => [ - path, - message, - ]; + List get props => [path, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('ValidationExceptionField') - ..add( - 'path', - path, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('ValidationExceptionField') + ..add('path', path) + ..add('message', message); return helper.toString(); } } @@ -65,21 +54,18 @@ abstract class ValidationExceptionField class ValidationExceptionFieldRestJson1Serializer extends _i2.StructuredSmithySerializer { const ValidationExceptionFieldRestJson1Serializer() - : super('ValidationExceptionField'); + : super('ValidationExceptionField'); @override Iterable get types => const [ - ValidationExceptionField, - _$ValidationExceptionField, - ]; + ValidationExceptionField, + _$ValidationExceptionField, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationExceptionField deserialize( @@ -98,15 +84,19 @@ class ValidationExceptionFieldRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'path': - result.path = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.path = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -123,15 +113,9 @@ class ValidationExceptionFieldRestJson1Serializer final ValidationExceptionField(:message, :path) = object; result$.addAll([ 'message', - serializers.serialize( - message, - specifiedType: const FullType(String), - ), + serializers.serialize(message, specifiedType: const FullType(String)), 'path', - serializers.serialize( - path, - specifiedType: const FullType(String), - ), + serializers.serialize(path, specifiedType: const FullType(String)), ]); return result$; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart index 9cbdc19bda..8610498da7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/model/validation_exception_field.g.dart @@ -12,22 +12,28 @@ class _$ValidationExceptionField extends ValidationExceptionField { @override final String message; - factory _$ValidationExceptionField( - [void Function(ValidationExceptionFieldBuilder)? updates]) => - (new ValidationExceptionFieldBuilder()..update(updates))._build(); + factory _$ValidationExceptionField([ + void Function(ValidationExceptionFieldBuilder)? updates, + ]) => (new ValidationExceptionFieldBuilder()..update(updates))._build(); _$ValidationExceptionField._({required this.path, required this.message}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - path, r'ValidationExceptionField', 'path'); + path, + r'ValidationExceptionField', + 'path', + ); BuiltValueNullFieldError.checkNotNull( - message, r'ValidationExceptionField', 'message'); + message, + r'ValidationExceptionField', + 'message', + ); } @override ValidationExceptionField rebuild( - void Function(ValidationExceptionFieldBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ValidationExceptionFieldBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ValidationExceptionFieldBuilder toBuilder() => @@ -91,12 +97,20 @@ class ValidationExceptionFieldBuilder ValidationExceptionField build() => _build(); _$ValidationExceptionField _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ValidationExceptionField._( - path: BuiltValueNullFieldError.checkNotNull( - path, r'ValidationExceptionField', 'path'), - message: BuiltValueNullFieldError.checkNotNull( - message, r'ValidationExceptionField', 'message')); + path: BuiltValueNullFieldError.checkNotNull( + path, + r'ValidationExceptionField', + 'path', + ), + message: BuiltValueNullFieldError.checkNotNull( + message, + r'ValidationExceptionField', + 'message', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart index 389e1bf8bb..e761a44c7d 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_enum_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_enum_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,44 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedEnumOperation extends _i1 - .HttpOperation { +class MalformedEnumOperation + extends + _i1.HttpOperation< + MalformedEnumInput, + MalformedEnumInput, + _i1.Unit, + _i1.Unit + > { MalformedEnumOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +77,18 @@ class MalformedEnumOperation extends _i1 int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedEnum'; @@ -107,11 +109,7 @@ class MalformedEnumOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart index e741df3720..b5a02e6196 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_length_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLengthOperation extends _i1.HttpOperation { +class MalformedLengthOperation + extends + _i1.HttpOperation< + MalformedLengthInput, + MalformedLengthInput, + _i1.Unit, + _i1.Unit + > { MalformedLengthOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLengthInput, + MalformedLengthInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedLengthOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedLength'; @@ -107,11 +114,7 @@ class MalformedLengthOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart index 1963c5f739..046a75ab55 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_override_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_length_override_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLengthOverrideOperation extends _i1.HttpOperation< - MalformedLengthOverrideInput, - MalformedLengthOverrideInput, - _i1.Unit, - _i1.Unit> { +class MalformedLengthOverrideOperation + extends + _i1.HttpOperation< + MalformedLengthOverrideInput, + MalformedLengthOverrideInput, + _i1.Unit, + _i1.Unit + > { MalformedLengthOverrideOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLengthOverrideInput, + MalformedLengthOverrideInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,24 +82,18 @@ class MalformedLengthOverrideOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedLengthOverride'; @@ -110,11 +114,7 @@ class MalformedLengthOverrideOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart index d88e38420c..adb9379913 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_length_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_length_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,40 +13,50 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedLengthQueryStringOperation extends _i1.HttpOperation< - MalformedLengthQueryStringInputPayload, - MalformedLengthQueryStringInput, - _i1.Unit, - _i1.Unit> { +class MalformedLengthQueryStringOperation + extends + _i1.HttpOperation< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInput, + _i1.Unit, + _i1.Unit + > { MalformedLengthQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithNoHeader('Content-Length'), const _i1.WithNoHeader('Content-Type'), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +78,7 @@ class MalformedLengthQueryStringOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/MalformedLengthQueryString'; if (input.string != null) { - b.queryParameters.add( - 'string', - input.string!, - ); + b.queryParameters.add('string', input.string!); } }); @@ -79,24 +86,18 @@ class MalformedLengthQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedLengthQueryString'; @@ -117,11 +118,7 @@ class MalformedLengthQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart index f05ca126a7..adb21a968f 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_pattern_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedPatternOperation extends _i1.HttpOperation { +class MalformedPatternOperation + extends + _i1.HttpOperation< + MalformedPatternInput, + MalformedPatternInput, + _i1.Unit, + _i1.Unit + > { MalformedPatternOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedPatternInput, + MalformedPatternInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedPatternOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedPattern'; @@ -107,11 +114,7 @@ class MalformedPatternOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart index 0f6cd4cda4..21600d954c 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_pattern_override_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_pattern_override_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedPatternOverrideOperation extends _i1.HttpOperation< - MalformedPatternOverrideInput, - MalformedPatternOverrideInput, - _i1.Unit, - _i1.Unit> { +class MalformedPatternOverrideOperation + extends + _i1.HttpOperation< + MalformedPatternOverrideInput, + MalformedPatternOverrideInput, + _i1.Unit, + _i1.Unit + > { MalformedPatternOverrideOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedPatternOverrideInput, + MalformedPatternOverrideInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,24 +82,18 @@ class MalformedPatternOverrideOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedPatternOverride'; @@ -110,11 +114,7 @@ class MalformedPatternOverrideOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart index 2228e64843..b863cd3907 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_range_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRangeOperation extends _i1.HttpOperation { +class MalformedRangeOperation + extends + _i1.HttpOperation< + MalformedRangeInput, + MalformedRangeInput, + _i1.Unit, + _i1.Unit + > { MalformedRangeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRangeInput, + MalformedRangeInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedRangeOperation extends _i1.HttpOperation 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedRange'; @@ -107,11 +114,7 @@ class MalformedRangeOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart index 897b3ebb52..6b9fabc042 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_range_override_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_range_override_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,39 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRangeOverrideOperation extends _i1.HttpOperation< - MalformedRangeOverrideInput, - MalformedRangeOverrideInput, - _i1.Unit, - _i1.Unit> { +class MalformedRangeOverrideOperation + extends + _i1.HttpOperation< + MalformedRangeOverrideInput, + MalformedRangeOverrideInput, + _i1.Unit, + _i1.Unit + > { MalformedRangeOverrideOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRangeOverrideInput, + MalformedRangeOverrideInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,24 +82,18 @@ class MalformedRangeOverrideOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedRangeOverride'; @@ -110,11 +114,7 @@ class MalformedRangeOverrideOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart index afb4ff0c97..e3bba6d6bb 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_required_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_required_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedRequiredOperation extends _i1.HttpOperation< - MalformedRequiredInputPayload, MalformedRequiredInput, _i1.Unit, _i1.Unit> { +class MalformedRequiredOperation + extends + _i1.HttpOperation< + MalformedRequiredInputPayload, + MalformedRequiredInput, + _i1.Unit, + _i1.Unit + > { MalformedRequiredOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedRequiredInputPayload, + MalformedRequiredInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,34 +79,25 @@ class MalformedRequiredOperation extends _i1.HttpOperation< if (input.stringInHeader.isNotEmpty) { b.headers['string-in-headers'] = input.stringInHeader; } - b.queryParameters.add( - 'stringInQuery', - input.stringInQuery, - ); + b.queryParameters.add('stringInQuery', input.stringInQuery); }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedRequired'; @@ -114,11 +118,7 @@ class MalformedRequiredOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart index 722fbc36f5..b5db10a0b1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/malformed_unique_items_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.malformed_unique_items_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class MalformedUniqueItemsOperation extends _i1.HttpOperation< - MalformedUniqueItemsInput, MalformedUniqueItemsInput, _i1.Unit, _i1.Unit> { +class MalformedUniqueItemsOperation + extends + _i1.HttpOperation< + MalformedUniqueItemsInput, + MalformedUniqueItemsInput, + _i1.Unit, + _i1.Unit + > { MalformedUniqueItemsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + MalformedUniqueItemsInput, + MalformedUniqueItemsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class MalformedUniqueItemsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'MalformedUniqueItems'; @@ -107,11 +114,7 @@ class MalformedUniqueItemsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart index b7fe7880ff..ab1b7a34d7 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/recursive_structures_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.recursive_structures_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class RecursiveStructuresOperation extends _i1.HttpOperation< - RecursiveStructuresInput, RecursiveStructuresInput, _i1.Unit, _i1.Unit> { +class RecursiveStructuresOperation + extends + _i1.HttpOperation< + RecursiveStructuresInput, + RecursiveStructuresInput, + _i1.Unit, + _i1.Unit + > { RecursiveStructuresOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + RecursiveStructuresInput, + RecursiveStructuresInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class RecursiveStructuresOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'RecursiveStructures'; @@ -107,11 +114,7 @@ class RecursiveStructuresOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart index b53aed35ec..5975120316 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/operation/sensitive_validation_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.operation.sensitive_validation_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,49 @@ import 'package:rest_json1_v2/src/rest_json_validation_protocol/model/validation import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SensitiveValidationOperation extends _i1.HttpOperation< - SensitiveValidationInput, SensitiveValidationInput, _i1.Unit, _i1.Unit> { +class SensitiveValidationOperation + extends + _i1.HttpOperation< + SensitiveValidationInput, + SensitiveValidationInput, + _i1.Unit, + _i1.Unit + > { SensitiveValidationOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + SensitiveValidationInput, + SensitiveValidationInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,24 +82,18 @@ class SensitiveValidationOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'smithy.framework', - shape: 'ValidationException', - ), - _i1.ErrorKind.client, - ValidationException, - builder: ValidationException.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'smithy.framework', shape: 'ValidationException'), + _i1.ErrorKind.client, + ValidationException, + builder: ValidationException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'SensitiveValidation'; @@ -107,11 +114,7 @@ class SensitiveValidationOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart index e9a6749f30..6e2aba7bb4 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.rest_json_validation_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,11 +39,11 @@ class RestJsonValidationProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -64,10 +64,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLength( @@ -79,10 +76,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLengthOverride( @@ -94,10 +88,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedLengthQueryString( @@ -109,10 +100,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedPattern( @@ -124,10 +112,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedPatternOverride( @@ -139,10 +124,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRange( @@ -154,10 +136,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRangeOverride( @@ -169,10 +148,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedRequired( @@ -184,10 +160,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation malformedUniqueItems( @@ -199,10 +172,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation recursiveStructures( @@ -214,10 +184,7 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation sensitiveValidation( @@ -229,9 +196,6 @@ class RestJsonValidationProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart index 1f15f06487..c882789fca 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_validation_protocol/rest_json_validation_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_json1_v2.rest_json_validation_protocol.rest_json_validation_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,16 +35,8 @@ abstract class RestJsonValidationProtocolServerBase extends _i1.HttpServerBase { late final Router _router = () { final service = _RestJsonValidationProtocolServer(this); final router = Router(); - router.add( - 'POST', - r'/MalformedEnum', - service.malformedEnum, - ); - router.add( - 'POST', - r'/MalformedLength', - service.malformedLength, - ); + router.add('POST', r'/MalformedEnum', service.malformedEnum); + router.add('POST', r'/MalformedLength', service.malformedLength); router.add( 'POST', r'/MalformedLengthOverride', @@ -55,46 +47,22 @@ abstract class RestJsonValidationProtocolServerBase extends _i1.HttpServerBase { r'/MalformedLengthQueryString', service.malformedLengthQueryString, ); - router.add( - 'POST', - r'/MalformedPattern', - service.malformedPattern, - ); + router.add('POST', r'/MalformedPattern', service.malformedPattern); router.add( 'POST', r'/MalformedPatternOverride', service.malformedPatternOverride, ); - router.add( - 'POST', - r'/MalformedRange', - service.malformedRange, - ); + router.add('POST', r'/MalformedRange', service.malformedRange); router.add( 'POST', r'/MalformedRangeOverride', service.malformedRangeOverride, ); - router.add( - 'POST', - r'/MalformedRequired', - service.malformedRequired, - ); - router.add( - 'POST', - r'/MalformedUniqueItems', - service.malformedUniqueItems, - ); - router.add( - 'POST', - r'/RecursiveStructures', - service.recursiveStructures, - ); - router.add( - 'POST', - r'/SensitiveValidation', - service.sensitiveValidation, - ); + router.add('POST', r'/MalformedRequired', service.malformedRequired); + router.add('POST', r'/MalformedUniqueItems', service.malformedUniqueItems); + router.add('POST', r'/RecursiveStructures', service.recursiveStructures); + router.add('POST', r'/SensitiveValidation', service.sensitiveValidation); return router; }(); @@ -156,99 +124,134 @@ class _RestJsonValidationProtocolServer @override final RestJsonValidationProtocolServerBase service; - late final _i1 - .HttpProtocol - _malformedEnumProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedEnumInput, + MalformedEnumInput, + _i1.Unit, + _i1.Unit + > + _malformedEnumProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedLengthProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedLengthInput, + MalformedLengthInput, + _i1.Unit, + _i1.Unit + > + _malformedLengthProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedLengthOverrideInput, - MalformedLengthOverrideInput, - _i1.Unit, - _i1.Unit> _malformedLengthOverrideProtocol = _i2.RestJson1Protocol( + MalformedLengthOverrideInput, + MalformedLengthOverrideInput, + _i1.Unit, + _i1.Unit + > + _malformedLengthOverrideProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedLengthQueryStringInputPayload, - MalformedLengthQueryStringInput, - _i1.Unit, - _i1.Unit> _malformedLengthQueryStringProtocol = _i2.RestJson1Protocol( + MalformedLengthQueryStringInputPayload, + MalformedLengthQueryStringInput, + _i1.Unit, + _i1.Unit + > + _malformedLengthQueryStringProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedPatternProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedPatternInput, + MalformedPatternInput, + _i1.Unit, + _i1.Unit + > + _malformedPatternProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedPatternOverrideInput, - MalformedPatternOverrideInput, - _i1.Unit, - _i1.Unit> _malformedPatternOverrideProtocol = _i2.RestJson1Protocol( + MalformedPatternOverrideInput, + MalformedPatternOverrideInput, + _i1.Unit, + _i1.Unit + > + _malformedPatternOverrideProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); - late final _i1.HttpProtocol _malformedRangeProtocol = _i2.RestJson1Protocol( + late final _i1.HttpProtocol< + MalformedRangeInput, + MalformedRangeInput, + _i1.Unit, + _i1.Unit + > + _malformedRangeProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedRangeOverrideInput, - MalformedRangeOverrideInput, - _i1.Unit, - _i1.Unit> _malformedRangeOverrideProtocol = _i2.RestJson1Protocol( + MalformedRangeOverrideInput, + MalformedRangeOverrideInput, + _i1.Unit, + _i1.Unit + > + _malformedRangeOverrideProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedRequiredInputPayload, - MalformedRequiredInput, - _i1.Unit, - _i1.Unit> _malformedRequiredProtocol = _i2.RestJson1Protocol( + MalformedRequiredInputPayload, + MalformedRequiredInput, + _i1.Unit, + _i1.Unit + > + _malformedRequiredProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - MalformedUniqueItemsInput, - MalformedUniqueItemsInput, - _i1.Unit, - _i1.Unit> _malformedUniqueItemsProtocol = _i2.RestJson1Protocol( + MalformedUniqueItemsInput, + MalformedUniqueItemsInput, + _i1.Unit, + _i1.Unit + > + _malformedUniqueItemsProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - RecursiveStructuresInput, - RecursiveStructuresInput, - _i1.Unit, - _i1.Unit> _recursiveStructuresProtocol = _i2.RestJson1Protocol( + RecursiveStructuresInput, + RecursiveStructuresInput, + _i1.Unit, + _i1.Unit + > + _recursiveStructuresProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); late final _i1.HttpProtocol< - SensitiveValidationInput, - SensitiveValidationInput, - _i1.Unit, - _i1.Unit> _sensitiveValidationProtocol = _i2.RestJson1Protocol( + SensitiveValidationInput, + SensitiveValidationInput, + _i1.Unit, + _i1.Unit + > + _sensitiveValidationProtocol = _i2.RestJson1Protocol( serializers: serializers, builderFactories: builderFactories, ); @@ -259,26 +262,22 @@ class _RestJsonValidationProtocolServer context.response.headers['Content-Type'] = _malformedEnumProtocol.contentType; try { - final payload = (await _malformedEnumProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedEnumInput), - ) as MalformedEnumInput); + final payload = + (await _malformedEnumProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedEnumInput), + ) + as MalformedEnumInput); final input = MalformedEnumInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedEnum( - input, - context, - ); + final output = await service.malformedEnum(input, context); const statusCode = 200; final body = await _malformedEnumProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -289,10 +288,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedEnumProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -301,10 +299,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -316,25 +311,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedLengthProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLengthInput), - ) as MalformedLengthInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedLengthInput), + ) + as MalformedLengthInput); final input = MalformedLengthInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedLength( - input, - context, - ); + final output = await service.malformedLength(input, context); const statusCode = 200; final body = await _malformedLengthProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -345,10 +335,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedLengthProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -357,10 +346,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -372,27 +358,22 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedLengthOverrideProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLengthOverrideInput), - ) as MalformedLengthOverrideInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedLengthOverrideInput), + ) + as MalformedLengthOverrideInput); final input = MalformedLengthOverrideInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedLengthOverride( - input, - context, - ); + final output = await service.malformedLengthOverride(input, context); const statusCode = 200; - final body = - await _malformedLengthOverrideProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedLengthOverrideProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -402,10 +383,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedLengthOverrideProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -414,15 +394,13 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> malformedLengthQueryString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -430,27 +408,24 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedLengthQueryStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedLengthQueryStringInputPayload), - ) as MalformedLengthQueryStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + MalformedLengthQueryStringInputPayload, + ), + ) + as MalformedLengthQueryStringInputPayload); final input = MalformedLengthQueryStringInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedLengthQueryString( - input, - context, - ); + final output = await service.malformedLengthQueryString(input, context); const statusCode = 200; - final body = - await _malformedLengthQueryStringProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedLengthQueryStringProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -460,10 +435,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedLengthQueryStringProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -472,10 +446,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -487,25 +458,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedPatternProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedPatternInput), - ) as MalformedPatternInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedPatternInput), + ) + as MalformedPatternInput); final input = MalformedPatternInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedPattern( - input, - context, - ); + final output = await service.malformedPattern(input, context); const statusCode = 200; final body = await _malformedPatternProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -516,10 +482,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedPatternProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -528,10 +493,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -543,27 +505,22 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedPatternOverrideProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedPatternOverrideInput), - ) as MalformedPatternOverrideInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedPatternOverrideInput), + ) + as MalformedPatternOverrideInput); final input = MalformedPatternOverrideInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedPatternOverride( - input, - context, - ); + final output = await service.malformedPatternOverride(input, context); const statusCode = 200; - final body = - await _malformedPatternOverrideProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedPatternOverrideProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -573,10 +530,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedPatternOverrideProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -585,10 +541,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -598,26 +551,22 @@ class _RestJsonValidationProtocolServer context.response.headers['Content-Type'] = _malformedRangeProtocol.contentType; try { - final payload = (await _malformedRangeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRangeInput), - ) as MalformedRangeInput); + final payload = + (await _malformedRangeProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRangeInput), + ) + as MalformedRangeInput); final input = MalformedRangeInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRange( - input, - context, - ); + final output = await service.malformedRange(input, context); const statusCode = 200; final body = await _malformedRangeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -628,10 +577,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedRangeProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -640,10 +588,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -655,27 +600,22 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedRangeOverrideProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRangeOverrideInput), - ) as MalformedRangeOverrideInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRangeOverrideInput), + ) + as MalformedRangeOverrideInput); final input = MalformedRangeOverrideInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRangeOverride( - input, - context, - ); + final output = await service.malformedRangeOverride(input, context); const statusCode = 200; - final body = - await _malformedRangeOverrideProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _malformedRangeOverrideProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, @@ -685,10 +625,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedRangeOverrideProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -697,10 +636,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -712,25 +648,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedRequiredProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedRequiredInputPayload), - ) as MalformedRequiredInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedRequiredInputPayload), + ) + as MalformedRequiredInputPayload); final input = MalformedRequiredInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedRequired( - input, - context, - ); + final output = await service.malformedRequired(input, context); const statusCode = 200; final body = await _malformedRequiredProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -741,10 +672,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedRequiredProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -753,10 +683,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -768,25 +695,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _malformedUniqueItemsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(MalformedUniqueItemsInput), - ) as MalformedUniqueItemsInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(MalformedUniqueItemsInput), + ) + as MalformedUniqueItemsInput); final input = MalformedUniqueItemsInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.malformedUniqueItems( - input, - context, - ); + final output = await service.malformedUniqueItems(input, context); const statusCode = 200; final body = await _malformedUniqueItemsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -797,10 +719,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _malformedUniqueItemsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -809,10 +730,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -824,25 +742,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _recursiveStructuresProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(RecursiveStructuresInput), - ) as RecursiveStructuresInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(RecursiveStructuresInput), + ) + as RecursiveStructuresInput); final input = RecursiveStructuresInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.recursiveStructures( - input, - context, - ); + final output = await service.recursiveStructures(input, context); const statusCode = 200; final body = await _recursiveStructuresProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -853,10 +766,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _recursiveStructuresProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -865,10 +777,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -880,25 +789,20 @@ class _RestJsonValidationProtocolServer try { final payload = (await _sensitiveValidationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SensitiveValidationInput), - ) as SensitiveValidationInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(SensitiveValidationInput), + ) + as SensitiveValidationInput); final input = SensitiveValidationInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.sensitiveValidation( - input, - context, - ); + final output = await service.sensitiveValidation(input, context); const statusCode = 200; final body = await _sensitiveValidationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -909,10 +813,9 @@ class _RestJsonValidationProtocolServer context.response.headers['X-Amzn-Errortype'] = 'ValidationException'; final body = _sensitiveValidationProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ValidationException, - [FullType(ValidationException)], - ), + specifiedType: const FullType(ValidationException, [ + FullType(ValidationException), + ]), ); const statusCode = 400; return _i4.Response( @@ -921,10 +824,7 @@ class _RestJsonValidationProtocolServer headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/restJson1/pubspec.yaml b/packages/smithy/goldens/lib2/restJson1/pubspec.yaml index 4273d56304..75df41633d 100644 --- a/packages/smithy/goldens/lib2/restJson1/pubspec.yaml +++ b/packages/smithy/goldens/lib2/restJson1/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,7 +16,7 @@ dependencies: built_value: ^8.6.0 fixnum: ^1.0.0 built_collection: ^5.0.0 - meta: ^1.7.0 + meta: ^1.16.0 shelf_router: ^1.1.0 shelf: ^1.4.0 aws_signature_v4: @@ -42,6 +42,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/restJson1/test/api_gateway/get_rest_apis_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/api_gateway/get_rest_apis_operation_test.dart index 4a578869ef..435842b65f 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/api_gateway/get_rest_apis_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/api_gateway/get_rest_apis_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.api_gateway.test.get_rest_apis_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,50 +22,42 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'ApiGatewayAccept (request)', - () async { - await _i2.httpRequestTest( - operation: GetRestApisOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('ApiGatewayAccept (request)', () async { + await _i2.httpRequestTest( + operation: GetRestApisOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'ApiGatewayAccept', - documentation: - 'API Gateway requires that this Accept header is set on all requests.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Accept': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/restapis', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [GetRestApisRequestRestJson1Serializer()], - ); - }, - ); + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ApiGatewayAccept', + documentation: + 'API Gateway requires that this Accept header is set on all requests.', + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Accept': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/restapis', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [GetRestApisRequestRestJson1Serializer()], + ); + }); } class GetRestApisRequestRestJson1Serializer @@ -77,11 +69,8 @@ class GetRestApisRequestRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GetRestApisRequest deserialize( @@ -100,15 +89,19 @@ class GetRestApisRequestRestJson1Serializer } switch (key) { case 'position': - result.position = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.position = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'limit': - result.limit = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.limit = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -134,11 +127,8 @@ class RestApisRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApis deserialize( @@ -157,18 +147,22 @@ class RestApisRestJson1Serializer } switch (key) { case 'items': - result.items.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(RestApi)], - ), - ) as _i5.BuiltList)); + result.items.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(RestApi), + ]), + ) + as _i5.BuiltList), + ); case 'position': - result.position = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.position = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -194,11 +188,8 @@ class RestApiRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RestApi deserialize( @@ -217,82 +208,105 @@ class RestApiRestJson1Serializer } switch (key) { case 'id': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'description': - result.description = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.description = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'createdDate': result.createdDate = _i4.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'version': - result.version = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.version = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'warnings': - result.warnings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.warnings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'binaryMediaTypes': - result.binaryMediaTypes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.binaryMediaTypes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'minimumCompressionSize': - result.minimumCompressionSize = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.minimumCompressionSize = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'apiKeySource': - result.apiKeySource = (serializers.deserialize( - value, - specifiedType: const FullType(ApiKeySourceType), - ) as ApiKeySourceType); + result.apiKeySource = + (serializers.deserialize( + value, + specifiedType: const FullType(ApiKeySourceType), + ) + as ApiKeySourceType); case 'endpointConfiguration': - result.endpointConfiguration.replace((serializers.deserialize( - value, - specifiedType: const FullType(EndpointConfiguration), - ) as EndpointConfiguration)); + result.endpointConfiguration.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EndpointConfiguration), + ) + as EndpointConfiguration), + ); case 'policy': - result.policy = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.policy = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'tags': - result.tags.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i5.BuiltMap)); + result.tags.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i5.BuiltMap), + ); case 'disableExecuteApiEndpoint': - result.disableExecuteApiEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.disableExecuteApiEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -312,18 +326,15 @@ class RestApiRestJson1Serializer class EndpointConfigurationRestJson1Serializer extends _i4.StructuredSmithySerializer { const EndpointConfigurationRestJson1Serializer() - : super('EndpointConfiguration'); + : super('EndpointConfiguration'); @override Iterable get types => const [EndpointConfiguration]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EndpointConfiguration deserialize( @@ -342,21 +353,25 @@ class EndpointConfigurationRestJson1Serializer } switch (key) { case 'types': - result.types.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(EndpointType)], - ), - ) as _i5.BuiltList)); + result.types.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(EndpointType), + ]), + ) + as _i5.BuiltList), + ); case 'vpcEndpointIds': - result.vpcEndpointIds.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.vpcEndpointIds.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); } } @@ -382,11 +397,8 @@ class BadRequestExceptionRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override BadRequestException deserialize( @@ -405,10 +417,12 @@ class BadRequestExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -428,18 +442,15 @@ class BadRequestExceptionRestJson1Serializer class TooManyRequestsExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const TooManyRequestsExceptionRestJson1Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [TooManyRequestsException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TooManyRequestsException deserialize( @@ -458,15 +469,19 @@ class TooManyRequestsExceptionRestJson1Serializer } switch (key) { case 'retryAfterSeconds': - result.retryAfterSeconds = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.retryAfterSeconds = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -486,18 +501,15 @@ class TooManyRequestsExceptionRestJson1Serializer class UnauthorizedExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const UnauthorizedExceptionRestJson1Serializer() - : super('UnauthorizedException'); + : super('UnauthorizedException'); @override Iterable get types => const [UnauthorizedException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnauthorizedException deserialize( @@ -516,10 +528,12 @@ class UnauthorizedExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_archive_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_archive_operation_test.dart index 5311c93162..760564ae54 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_archive_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_archive_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.glacier.test.upload_archive_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,27 +26,19 @@ void main() { operation: UploadArchiveOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierVersionHeader', documentation: 'Glacier requires that a version header be set on all requests.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'accountId': 'foo', - 'vaultName': 'bar', - }, + params: {'accountId': 'foo', 'vaultName': 'bar'}, vendorParamsShape: null, vendorParams: {}, headers: {'X-Amz-Glacier-Version': '2012-06-01'}, @@ -70,28 +62,19 @@ void main() { operation: UploadArchiveOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierChecksums', documentation: 'Glacier requires checksum headers that are cumbersome to provide.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'hello world', bodyMediaType: null, - params: { - 'accountId': 'foo', - 'vaultName': 'bar', - 'body': 'hello world', - }, + params: {'accountId': 'foo', 'vaultName': 'bar', 'body': 'hello world'}, vendorParamsShape: null, vendorParams: {}, headers: { @@ -121,27 +104,19 @@ void main() { operation: UploadArchiveOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierAccountId', documentation: 'Glacier requires that the account id be set, but you can just use a\nhyphen (-) to indicate the current account. This should be default\nbehavior if the customer provides a null or empty string.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'accountId': '', - 'vaultName': 'bar', - }, + params: {'accountId': '', 'vaultName': 'bar'}, vendorParamsShape: null, vendorParams: {}, headers: {'X-Amz-Glacier-Version': '2012-06-01'}, @@ -171,11 +146,8 @@ class UploadArchiveInputRestJson1Serializer @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadArchiveInput deserialize( @@ -194,38 +166,42 @@ class UploadArchiveInputRestJson1Serializer } switch (key) { case 'vaultName': - result.vaultName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.vaultName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'accountId': - result.accountId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accountId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'archiveDescription': - result.archiveDescription = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.archiveDescription = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'body': - result.body = (serializers.deserialize( - value, - specifiedType: const FullType( - _i5.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i5.Stream>); + result.body = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i5.Stream>); } } @@ -246,18 +222,15 @@ class UploadArchiveInputRestJson1Serializer class ArchiveCreationOutputRestJson1Serializer extends _i4.StructuredSmithySerializer { const ArchiveCreationOutputRestJson1Serializer() - : super('ArchiveCreationOutput'); + : super('ArchiveCreationOutput'); @override Iterable get types => const [ArchiveCreationOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ArchiveCreationOutput deserialize( @@ -276,20 +249,26 @@ class ArchiveCreationOutputRestJson1Serializer } switch (key) { case 'location': - result.location = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.location = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'archiveId': - result.archiveId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.archiveId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -309,18 +288,15 @@ class ArchiveCreationOutputRestJson1Serializer class InvalidParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const InvalidParameterValueExceptionRestJson1Serializer() - : super('InvalidParameterValueException'); + : super('InvalidParameterValueException'); @override Iterable get types => const [InvalidParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidParameterValueException deserialize( @@ -339,20 +315,26 @@ class InvalidParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -372,18 +354,15 @@ class InvalidParameterValueExceptionRestJson1Serializer class MissingParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const MissingParameterValueExceptionRestJson1Serializer() - : super('MissingParameterValueException'); + : super('MissingParameterValueException'); @override Iterable get types => const [MissingParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingParameterValueException deserialize( @@ -402,20 +381,26 @@ class MissingParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -435,18 +420,15 @@ class MissingParameterValueExceptionRestJson1Serializer class RequestTimeoutExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const RequestTimeoutExceptionRestJson1Serializer() - : super('RequestTimeoutException'); + : super('RequestTimeoutException'); @override Iterable get types => const [RequestTimeoutException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RequestTimeoutException deserialize( @@ -465,20 +447,26 @@ class RequestTimeoutExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -498,18 +486,15 @@ class RequestTimeoutExceptionRestJson1Serializer class ResourceNotFoundExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ResourceNotFoundExceptionRestJson1Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ResourceNotFoundException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResourceNotFoundException deserialize( @@ -528,20 +513,26 @@ class ResourceNotFoundExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -561,18 +552,15 @@ class ResourceNotFoundExceptionRestJson1Serializer class ServiceUnavailableExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ServiceUnavailableExceptionRestJson1Serializer() - : super('ServiceUnavailableException'); + : super('ServiceUnavailableException'); @override Iterable get types => const [ServiceUnavailableException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ServiceUnavailableException deserialize( @@ -591,20 +579,26 @@ class ServiceUnavailableExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_multipart_part_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_multipart_part_operation_test.dart index bc994ecd7b..44a7cb86e1 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_multipart_part_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/glacier/upload_multipart_part_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.glacier.test.upload_multipart_part_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,20 +26,15 @@ void main() { operation: UploadMultipartPartOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), - credentialsProvider: - const _i3.AWSCredentialsProvider(_i3.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + credentialsProvider: const _i3.AWSCredentialsProvider( + _i3.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), ), testCase: const _i2.HttpRequestTestCase( id: 'GlacierMultipartChecksums', documentation: 'Glacier requires checksum headers that are cumbersome to provide.', - protocol: _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'hello world', bodyMediaType: null, @@ -78,18 +73,15 @@ void main() { class UploadMultipartPartInputRestJson1Serializer extends _i4.StructuredSmithySerializer { const UploadMultipartPartInputRestJson1Serializer() - : super('UploadMultipartPartInput'); + : super('UploadMultipartPartInput'); @override Iterable get types => const [UploadMultipartPartInput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadMultipartPartInput deserialize( @@ -108,43 +100,49 @@ class UploadMultipartPartInputRestJson1Serializer } switch (key) { case 'accountId': - result.accountId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accountId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'vaultName': - result.vaultName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.vaultName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'uploadId': - result.uploadId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.uploadId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'range': - result.range = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.range = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'body': - result.body = (serializers.deserialize( - value, - specifiedType: const FullType( - _i5.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i5.Stream>); + result.body = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i5.Stream>); } } @@ -165,18 +163,15 @@ class UploadMultipartPartInputRestJson1Serializer class UploadMultipartPartOutputRestJson1Serializer extends _i4.StructuredSmithySerializer { const UploadMultipartPartOutputRestJson1Serializer() - : super('UploadMultipartPartOutput'); + : super('UploadMultipartPartOutput'); @override Iterable get types => const [UploadMultipartPartOutput]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UploadMultipartPartOutput deserialize( @@ -195,10 +190,12 @@ class UploadMultipartPartOutputRestJson1Serializer } switch (key) { case 'checksum': - result.checksum = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksum = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -218,18 +215,15 @@ class UploadMultipartPartOutputRestJson1Serializer class InvalidParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const InvalidParameterValueExceptionRestJson1Serializer() - : super('InvalidParameterValueException'); + : super('InvalidParameterValueException'); @override Iterable get types => const [InvalidParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidParameterValueException deserialize( @@ -248,20 +242,26 @@ class InvalidParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -281,18 +281,15 @@ class InvalidParameterValueExceptionRestJson1Serializer class MissingParameterValueExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const MissingParameterValueExceptionRestJson1Serializer() - : super('MissingParameterValueException'); + : super('MissingParameterValueException'); @override Iterable get types => const [MissingParameterValueException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MissingParameterValueException deserialize( @@ -311,20 +308,26 @@ class MissingParameterValueExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -344,18 +347,15 @@ class MissingParameterValueExceptionRestJson1Serializer class RequestTimeoutExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const RequestTimeoutExceptionRestJson1Serializer() - : super('RequestTimeoutException'); + : super('RequestTimeoutException'); @override Iterable get types => const [RequestTimeoutException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RequestTimeoutException deserialize( @@ -374,20 +374,26 @@ class RequestTimeoutExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -407,18 +413,15 @@ class RequestTimeoutExceptionRestJson1Serializer class ResourceNotFoundExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ResourceNotFoundExceptionRestJson1Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ResourceNotFoundException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ResourceNotFoundException deserialize( @@ -437,20 +440,26 @@ class ResourceNotFoundExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -470,18 +479,15 @@ class ResourceNotFoundExceptionRestJson1Serializer class ServiceUnavailableExceptionRestJson1Serializer extends _i4.StructuredSmithySerializer { const ServiceUnavailableExceptionRestJson1Serializer() - : super('ServiceUnavailableException'); + : super('ServiceUnavailableException'); @override Iterable get types => const [ServiceUnavailableException]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ServiceUnavailableException deserialize( @@ -500,20 +506,26 @@ class ServiceUnavailableExceptionRestJson1Serializer } switch (key) { case 'type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart index 2b9ae4990f..593e983dfb 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/all_query_string_types_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.all_query_string_types_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,387 +16,280 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonAllQueryStringTypes (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonAllQueryStringTypes', - documentation: - 'Serializes query string parameters with all supported types', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryString': 'Hello there', - 'queryStringList': [ - 'a', - 'b', - 'c', + _i1.test('RestJsonAllQueryStringTypes (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonAllQueryStringTypes', + documentation: + 'Serializes query string parameters with all supported types', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryString': 'Hello there', + 'queryStringList': ['a', 'b', 'c'], + 'queryStringSet': ['a', 'b', 'c'], + 'queryByte': 1, + 'queryShort': 2, + 'queryInteger': 3, + 'queryIntegerList': [1, 2, 3], + 'queryIntegerSet': [1, 2, 3], + 'queryLong': 4, + 'queryFloat': 1.1, + 'queryDouble': 1.1, + 'queryDoubleList': [1.1, 2.1, 3.1], + 'queryBoolean': true, + 'queryBooleanList': [true, false, true], + 'queryTimestamp': 1, + 'queryTimestampList': [1, 2, 3], + 'queryEnum': 'Foo', + 'queryEnumList': ['Foo', 'Baz', 'Bar'], + 'queryIntegerEnum': 1, + 'queryIntegerEnumList': [1, 2, 3], + 'queryParamsMapOfStringList': { + 'String': ['Hello there'], + 'StringList': ['a', 'b', 'c'], + 'StringSet': ['a', 'b', 'c'], + 'Byte': ['1'], + 'Short': ['2'], + 'Integer': ['3'], + 'IntegerList': ['1', '2', '3'], + 'IntegerSet': ['1', '2', '3'], + 'Long': ['4'], + 'Float': ['1.1'], + 'Double': ['1.1'], + 'DoubleList': ['1.1', '2.1', '3.1'], + 'Boolean': ['true'], + 'BooleanList': ['true', 'false', 'true'], + 'Timestamp': ['1970-01-01T00:00:01Z'], + 'TimestampList': [ + '1970-01-01T00:00:01Z', + '1970-01-01T00:00:02Z', + '1970-01-01T00:00:03Z', ], - 'queryStringSet': [ - 'a', - 'b', - 'c', - ], - 'queryByte': 1, - 'queryShort': 2, - 'queryInteger': 3, - 'queryIntegerList': [ - 1, - 2, - 3, - ], - 'queryIntegerSet': [ - 1, - 2, - 3, - ], - 'queryLong': 4, - 'queryFloat': 1.1, - 'queryDouble': 1.1, - 'queryDoubleList': [ - 1.1, - 2.1, - 3.1, - ], - 'queryBoolean': true, - 'queryBooleanList': [ - true, - false, - true, - ], - 'queryTimestamp': 1, - 'queryTimestampList': [ - 1, - 2, - 3, - ], - 'queryEnum': 'Foo', - 'queryEnumList': [ - 'Foo', - 'Baz', - 'Bar', - ], - 'queryIntegerEnum': 1, - 'queryIntegerEnumList': [ - 1, - 2, - 3, - ], - 'queryParamsMapOfStringList': { - 'String': ['Hello there'], - 'StringList': [ - 'a', - 'b', - 'c', - ], - 'StringSet': [ - 'a', - 'b', - 'c', - ], - 'Byte': ['1'], - 'Short': ['2'], - 'Integer': ['3'], - 'IntegerList': [ - '1', - '2', - '3', - ], - 'IntegerSet': [ - '1', - '2', - '3', - ], - 'Long': ['4'], - 'Float': ['1.1'], - 'Double': ['1.1'], - 'DoubleList': [ - '1.1', - '2.1', - '3.1', - ], - 'Boolean': ['true'], - 'BooleanList': [ - 'true', - 'false', - 'true', - ], - 'Timestamp': ['1970-01-01T00:00:01Z'], - 'TimestampList': [ - '1970-01-01T00:00:01Z', - '1970-01-01T00:00:02Z', - '1970-01-01T00:00:03Z', - ], - 'Enum': ['Foo'], - 'EnumList': [ - 'Foo', - 'Baz', - 'Bar', - ], - 'IntegerEnum': ['1'], - 'IntegerEnumList': [ - '1', - '2', - '3', - ], - }, + 'Enum': ['Foo'], + 'EnumList': ['Foo', 'Baz', 'Bar'], + 'IntegerEnum': ['1'], + 'IntegerEnumList': ['1', '2', '3'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=Hello%20there', - 'StringList=a', - 'StringList=b', - 'StringList=c', - 'StringSet=a', - 'StringSet=b', - 'StringSet=c', - 'Byte=1', - 'Short=2', - 'Integer=3', - 'IntegerList=1', - 'IntegerList=2', - 'IntegerList=3', - 'IntegerSet=1', - 'IntegerSet=2', - 'IntegerSet=3', - 'Long=4', - 'Float=1.1', - 'Double=1.1', - 'DoubleList=1.1', - 'DoubleList=2.1', - 'DoubleList=3.1', - 'Boolean=true', - 'BooleanList=true', - 'BooleanList=false', - 'BooleanList=true', - 'Timestamp=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A02Z', - 'TimestampList=1970-01-01T00%3A00%3A03Z', - 'Enum=Foo', - 'EnumList=Foo', - 'EnumList=Baz', - 'EnumList=Bar', - 'IntegerEnum=1', - 'IntegerEnumList=1', - 'IntegerEnumList=2', - 'IntegerEnumList=3', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonQueryStringMap (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryStringMap', - documentation: 'Handles query string maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryParamsMapOfStringList': { - 'QueryParamsStringKeyA': ['Foo'], - 'QueryParamsStringKeyB': ['Bar'], - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=Hello%20there', + 'StringList=a', + 'StringList=b', + 'StringList=c', + 'StringSet=a', + 'StringSet=b', + 'StringSet=c', + 'Byte=1', + 'Short=2', + 'Integer=3', + 'IntegerList=1', + 'IntegerList=2', + 'IntegerList=3', + 'IntegerSet=1', + 'IntegerSet=2', + 'IntegerSet=3', + 'Long=4', + 'Float=1.1', + 'Double=1.1', + 'DoubleList=1.1', + 'DoubleList=2.1', + 'DoubleList=3.1', + 'Boolean=true', + 'BooleanList=true', + 'BooleanList=false', + 'BooleanList=true', + 'Timestamp=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A02Z', + 'TimestampList=1970-01-01T00%3A00%3A03Z', + 'Enum=Foo', + 'EnumList=Foo', + 'EnumList=Baz', + 'EnumList=Bar', + 'IntegerEnum=1', + 'IntegerEnumList=1', + 'IntegerEnumList=2', + 'IntegerEnumList=3', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonQueryStringMap (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryStringMap', + documentation: 'Handles query string maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryParamsMapOfStringList': { + 'QueryParamsStringKeyA': ['Foo'], + 'QueryParamsStringKeyB': ['Bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'QueryParamsStringKeyA=Foo', - 'QueryParamsStringKeyB=Bar', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonQueryStringEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryStringEscaping', - documentation: - 'Handles escaping all required characters in the query string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryString': ' %:/?#[]@!\$&\'()*+,;=😹', - 'queryParamsMapOfStringList': { - 'String': [' %:/?#[]@!\$&\'()*+,;=😹'] - }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['QueryParamsStringKeyA=Foo', 'QueryParamsStringKeyB=Bar'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonQueryStringEscaping (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryStringEscaping', + documentation: + 'Handles escaping all required characters in the query string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryString': ' %:/?#[]@!\$&\'()*+,;=😹', + 'queryParamsMapOfStringList': { + 'String': [' %:/?#[]@!\$&\'()*+,;=😹'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9' - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatQueryValues', - documentation: 'Supports handling NaN float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'NaN', - 'queryDouble': 'NaN', - 'queryParamsMapOfStringList': { - 'Float': ['NaN'], - 'Double': ['NaN'], - }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSupportsNaNFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatQueryValues', + documentation: 'Supports handling NaN float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryFloat': 'NaN', + 'queryDouble': 'NaN', + 'queryParamsMapOfStringList': { + 'Float': ['NaN'], + 'Double': ['NaN'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=NaN', - 'Double=NaN', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatQueryValues', - documentation: 'Supports handling Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'Infinity', - 'queryDouble': 'Infinity', - 'queryParamsMapOfStringList': { - 'Float': ['Infinity'], - 'Double': ['Infinity'], - }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=NaN', 'Double=NaN'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatQueryValues', + documentation: 'Supports handling Infinity float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryFloat': 'Infinity', + 'queryDouble': 'Infinity', + 'queryParamsMapOfStringList': { + 'Float': ['Infinity'], + 'Double': ['Infinity'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=Infinity', - 'Double=Infinity', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=Infinity', 'Double=Infinity'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonSupportsNegativeInfinityFloatQueryValues (request)', () async { @@ -408,10 +301,7 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonSupportsNegativeInfinityFloatQueryValues', documentation: 'Supports handling -Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, @@ -434,10 +324,7 @@ void main() { uri: '/AllQueryStringTypesInput', host: null, resolvedHost: null, - queryParams: [ - 'Float=-Infinity', - 'Double=-Infinity', - ], + queryParams: ['Float=-Infinity', 'Double=-Infinity'], forbidQueryParams: [], requireQueryParams: [], ), @@ -450,18 +337,15 @@ void main() { class AllQueryStringTypesInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const AllQueryStringTypesInputRestJson1Serializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [AllQueryStringTypesInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override AllQueryStringTypesInput deserialize( @@ -480,144 +364,175 @@ class AllQueryStringTypesInputRestJson1Serializer } switch (key) { case 'queryString': - result.queryString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.queryString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'queryStringList': - result.queryStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.queryStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'queryStringSet': - result.queryStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.queryStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'queryByte': - result.queryByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryShort': - result.queryShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryInteger': - result.queryInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryIntegerList': - result.queryIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryIntegerSet': - result.queryIntegerSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.queryIntegerSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'queryLong': - result.queryLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.Int64), - ) as _i5.Int64); + result.queryLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Int64), + ) + as _i5.Int64); case 'queryFloat': - result.queryFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDouble': - result.queryDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDoubleList': - result.queryDoubleList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(double)], - ), - ) as _i4.BuiltList)); + result.queryDoubleList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(double), + ]), + ) + as _i4.BuiltList), + ); case 'queryBoolean': - result.queryBoolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.queryBoolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'queryBooleanList': - result.queryBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); - case 'queryTimestamp': - result.queryTimestamp = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, + result.queryBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), ); + case 'queryTimestamp': + result.queryTimestamp = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'queryTimestampList': - result.queryTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.queryTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'queryEnum': - result.queryEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.queryEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'queryEnumList': - result.queryEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.queryEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerEnum': - result.queryIntegerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.queryIntegerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'queryIntegerEnumList': - result.queryIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.queryIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryParamsMapOfStringList': - result.queryParamsMapOfStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.queryParamsMapOfStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart index 0d0ba54226..3a7dcc6513 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_and_variable_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.constant_and_variable_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,10 +23,7 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonConstantAndVariableQueryStringMissingOneValue', documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, @@ -42,15 +39,12 @@ void main() { uri: '/ConstantAndVariableQueryString', host: null, resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - ], + queryParams: ['foo=bar', 'baz=bam'], forbidQueryParams: ['maybeSet'], requireQueryParams: [], ), inputSerializers: const [ - ConstantAndVariableQueryStringInputRestJson1Serializer() + ConstantAndVariableQueryStringInputRestJson1Serializer(), ], ); }, @@ -66,17 +60,11 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonConstantAndVariableQueryStringAllValues', documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'baz': 'bam', - 'maybeSet': 'yes', - }, + params: {'baz': 'bam', 'maybeSet': 'yes'}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -88,37 +76,31 @@ void main() { uri: '/ConstantAndVariableQueryString', host: null, resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - 'maybeSet=yes', - ], + queryParams: ['foo=bar', 'baz=bam', 'maybeSet=yes'], forbidQueryParams: [], requireQueryParams: [], ), inputSerializers: const [ - ConstantAndVariableQueryStringInputRestJson1Serializer() + ConstantAndVariableQueryStringInputRestJson1Serializer(), ], ); }, ); } -class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const ConstantAndVariableQueryStringInputRestJson1Serializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ConstantAndVariableQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantAndVariableQueryStringInput deserialize( @@ -137,15 +119,19 @@ class ConstantAndVariableQueryStringInputRestJson1Serializer extends _i3 } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'maybeSet': - result.maybeSet = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maybeSet = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart index 3c6173567e..f5016549d6 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/constant_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.constant_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,52 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonConstantQueryString (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonConstantQueryString', - documentation: 'Includes constant query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'hello': 'hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantQueryString/hi', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'hello', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ConstantQueryStringInputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonConstantQueryString (request)', () async { + await _i2.httpRequestTest( + operation: ConstantQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonConstantQueryString', + documentation: 'Includes constant query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'hello': 'hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantQueryString/hi', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'hello'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ConstantQueryStringInputRestJson1Serializer()], + ); + }); } class ConstantQueryStringInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const ConstantQueryStringInputRestJson1Serializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ConstantQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ConstantQueryStringInput deserialize( @@ -88,10 +76,12 @@ class ConstantQueryStringInputRestJson1Serializer } switch (key) { case 'hello': - result.hello = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hello = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart index 483494872f..bdbb2beec6 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-16T22:48:18-01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + ' {\n "datetime": "2019-12-17T00:48:18+01:00"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestJson1Serializer()], + ); + }); } class DatetimeOffsetsOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputRestJson1Serializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart index 4781cab7a5..04e4b8bd40 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_as_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.document_type_as_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,178 +13,151 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'DocumentTypeAsPayloadInput (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentTypeAsPayloadInput', - documentation: - 'Serializes a document as the target of the httpPayload trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "foo": "bar"\n}', - bodyMediaType: 'application/json', - params: { - 'documentValue': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentTypeAsPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'DocumentTypeAsPayloadInputString (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentTypeAsPayloadInputString', - documentation: - 'Serializes a document as the target of the httpPayload trait using a string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '"hello"', - bodyMediaType: 'application/json', - params: {'documentValue': 'hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentTypeAsPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'DocumentTypeAsPayloadOutput (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentTypeAsPayloadOutput', - documentation: - 'Serializes a document as the target of the httpPayload trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "foo": "bar"\n}', - bodyMediaType: 'application/json', - params: { - 'documentValue': {'foo': 'bar'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'DocumentTypeAsPayloadOutputString (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeAsPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentTypeAsPayloadOutputString', - documentation: 'Serializes a document as a payload string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '"hello"', - bodyMediaType: 'application/json', - params: {'documentValue': 'hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - DocumentTypeAsPayloadInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('DocumentTypeAsPayloadInput (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentTypeAsPayloadInput', + documentation: + 'Serializes a document as the target of the httpPayload trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "foo": "bar"\n}', + bodyMediaType: 'application/json', + params: { + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentTypeAsPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('DocumentTypeAsPayloadInputString (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentTypeAsPayloadInputString', + documentation: + 'Serializes a document as the target of the httpPayload trait using a string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '"hello"', + bodyMediaType: 'application/json', + params: {'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentTypeAsPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('DocumentTypeAsPayloadOutput (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentTypeAsPayloadOutput', + documentation: + 'Serializes a document as the target of the httpPayload trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "foo": "bar"\n}', + bodyMediaType: 'application/json', + params: { + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('DocumentTypeAsPayloadOutputString (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeAsPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentTypeAsPayloadOutputString', + documentation: 'Serializes a document as a payload string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '"hello"', + bodyMediaType: 'application/json', + params: {'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + DocumentTypeAsPayloadInputOutputRestJson1Serializer(), + ], + ); + }); } class DocumentTypeAsPayloadInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const DocumentTypeAsPayloadInputOutputRestJson1Serializer() - : super('DocumentTypeAsPayloadInputOutput'); + : super('DocumentTypeAsPayloadInputOutput'); @override Iterable get types => const [DocumentTypeAsPayloadInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DocumentTypeAsPayloadInputOutput deserialize( @@ -203,10 +176,12 @@ class DocumentTypeAsPayloadInputOutputRestJson1Serializer } switch (key) { case 'documentValue': - result.documentValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.JsonObject), - ) as _i4.JsonObject); + result.documentValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.JsonObject), + ) + as _i4.JsonObject); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_operation_test.dart index cfbec34b19..4d31c83420 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/document_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.document_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,430 +13,339 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'DocumentTypeInputWithObject (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentTypeInputWithObject', - documentation: - 'Serializes document types as part of the JSON request payload with no escaping.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': {'foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithString (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithString', - documentation: 'Serializes document types using a string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": "hello"\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 'hello', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithNumber (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithNumber', - documentation: 'Serializes document types using a number.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": "string",\n "documentValue": 10\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 10, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithBoolean (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithBoolean', - documentation: 'Serializes document types using a boolean.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": "string",\n "documentValue": true\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': true, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentInputWithList (request)', - () async { - await _i2.httpRequestTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'DocumentInputWithList', - documentation: 'Serializes document types using a list.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": [\n true,\n "hi",\n [\n 1,\n 2\n ],\n {\n "foo": {\n "baz": [\n 3,\n 4\n ]\n }\n }\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': [ - true, - 'hi', - [ - 1, - 2, - ], - { - 'foo': { - 'baz': [ - 3, - 4, - ] - } + _i1.test('DocumentTypeInputWithObject (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentTypeInputWithObject', + documentation: + 'Serializes document types as part of the JSON request payload with no escaping.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithString (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithString', + documentation: 'Serializes document types using a string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": "hello"\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithNumber (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithNumber', + documentation: 'Serializes document types using a number.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": 10\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithBoolean (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithBoolean', + documentation: 'Serializes document types using a boolean.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": true\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': true}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentInputWithList (request)', () async { + await _i2.httpRequestTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'DocumentInputWithList', + documentation: 'Serializes document types using a list.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": [\n true,\n "hi",\n [\n 1,\n 2\n ],\n {\n "foo": {\n "baz": [\n 3,\n 4\n ]\n }\n }\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': [ + true, + 'hi', + [1, 2], + { + 'foo': { + 'baz': [3, 4], }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/DocumentType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutput (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutput', - documentation: - 'Serializes documents as part of the JSON response payload with no escaping.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': {'foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputString (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputString', - documentation: 'Document types can be JSON scalars too.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": "hello"\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 'hello', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputNumber (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputNumber', - documentation: 'Document types can be JSON scalars too.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": "string",\n "documentValue": 10\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': 10, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputBoolean (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputBoolean', - documentation: 'Document types can be JSON scalars too.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": false\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': false, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'DocumentOutputArray (response)', - () async { - await _i2.httpResponseTest( - operation: DocumentTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'DocumentOutputArray', - documentation: 'Document types can be JSON arrays.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "documentValue": [\n true,\n false\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringValue': 'string', - 'documentValue': [ - true, - false, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], - ); - }, - ); + }, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/DocumentType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutput (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutput', + documentation: + 'Serializes documents as part of the JSON response payload with no escaping.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": {\n "foo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': {'foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputString (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputString', + documentation: 'Document types can be JSON scalars too.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": "hello"\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 'hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputNumber (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputNumber', + documentation: 'Document types can be JSON scalars too.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": 10\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': 10}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputBoolean (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputBoolean', + documentation: 'Document types can be JSON scalars too.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": "string",\n "documentValue": false\n}', + bodyMediaType: 'application/json', + params: {'stringValue': 'string', 'documentValue': false}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); + _i1.test('DocumentOutputArray (response)', () async { + await _i2.httpResponseTest( + operation: DocumentTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'DocumentOutputArray', + documentation: 'Document types can be JSON arrays.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "documentValue": [\n true,\n false\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringValue': 'string', + 'documentValue': [true, false], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DocumentTypeInputOutputRestJson1Serializer()], + ); + }); } class DocumentTypeInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const DocumentTypeInputOutputRestJson1Serializer() - : super('DocumentTypeInputOutput'); + : super('DocumentTypeInputOutput'); @override Iterable get types => const [DocumentTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override DocumentTypeInputOutput deserialize( @@ -455,15 +364,19 @@ class DocumentTypeInputOutputRestJson1Serializer } switch (key) { case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'documentValue': - result.documentValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.JsonObject), - ) as _i4.JsonObject); + result.documentValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.JsonObject), + ) + as _i4.JsonObject); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart index 6ed277381a..6c086871e2 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,82 +13,70 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonEmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonEmptyInputAndEmptyOutput', - documentation: - 'Clients should not serialize a JSON payload when no parameters\nare given that are sent in the body. A service will tolerate\nclients that omit a payload or that send a JSON object.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EmptyInputAndEmptyOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonEmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonEmptyInputAndEmptyOutput', - documentation: - 'As of January 2021, server implementations are expected to\nrespond with a JSON object regardless of if the output\nparameters are empty.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonEmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonEmptyInputAndEmptyOutput', + documentation: + 'Clients should not serialize a JSON payload when no parameters\nare given that are sent in the body. A service will tolerate\nclients that omit a payload or that send a JSON object.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EmptyInputAndEmptyOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonEmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonEmptyInputAndEmptyOutput', + documentation: + 'As of January 2021, server implementations are expected to\nrespond with a JSON object regardless of if the output\nparameters are empty.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonEmptyInputAndEmptyOutputJsonObjectOutput (response)', () async { @@ -101,10 +89,7 @@ void main() { id: 'RestJsonEmptyInputAndEmptyOutputJsonObjectOutput', documentation: 'This test ensures that clients can gracefully handle\nsituations where a service omits a JSON payload entirely.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, @@ -119,7 +104,7 @@ void main() { code: 200, ), outputSerializers: const [ - EmptyInputAndEmptyOutputOutputRestJson1Serializer() + EmptyInputAndEmptyOutputOutputRestJson1Serializer(), ], ); }, @@ -129,18 +114,15 @@ void main() { class EmptyInputAndEmptyOutputInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -164,18 +146,15 @@ class EmptyInputAndEmptyOutputInputRestJson1Serializer class EmptyInputAndEmptyOutputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestJson1Serializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_operation_test.dart index 720f00d207..1984cbd7cd 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointOperation', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointOperation', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart index 55b7192178..2df25581b5 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,39 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{"label": "bar"}', - bodyMediaType: 'application/json', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointWithHostLabelOperation', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{"label": "bar"}', + bodyMediaType: 'application/json', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointWithHostLabelOperation', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputRestJson1Serializer()], + ); + }); } class HostLabelInputRestJson1Serializer @@ -62,11 +56,8 @@ class HostLabelInputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HostLabelInput deserialize( @@ -85,10 +76,12 @@ class HostLabelInputRestJson1Serializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart index c8d2c0d566..4e03c48ffd 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,57 +12,48 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', - bodyMediaType: 'application/json', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + ' {\n "datetime": "2000-01-02T20:34:56.123Z"\n }\n', + bodyMediaType: 'application/json', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputRestJson1Serializer()], + ); + }); } class FractionalSecondsOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputRestJson1Serializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart index 43d385512a..12d3457e37 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,244 +16,221 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonGreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonGreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how\nto deserialize a successful response. As of January 2021,\nserver implementations are expected to respond with a\nJSON object regardless of if the output parameters are\nempty.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Greeting': 'Hello'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - GreetingWithErrorsOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonGreetingWithErrorsNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonGreetingWithErrorsNoPayload', - documentation: - 'This test is similar to RestJsonGreetingWithErrors, but it\nensures that clients can gracefully deal with a server\nomitting a response payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Greeting': 'Hello'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - GreetingWithErrorsOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonComplexErrorWithNoMessage (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonComplexErrorWithNoMessage', - documentation: 'Serializes a complex error with no message member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "TopLevel": "Top level",\n "Nested": {\n "Fooooo": "bar"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'Header': 'Header', - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Header': 'Header', - 'X-Amzn-Errortype': 'ComplexError', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 403, - ), - errorSerializers: const [ - ComplexErrorRestJson1Serializer(), - ComplexNestedErrorDataRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonEmptyComplexErrorWithNoMessage (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonEmptyComplexErrorWithNoMessage', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Amzn-Errortype': 'ComplexError', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 403, - ), - errorSerializers: const [ - ComplexErrorRestJson1Serializer(), - ComplexNestedErrorDataRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingXAmznErrorType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingXAmznErrorType', - documentation: - 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amzn-Errortype': 'FooError'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingXAmznErrorTypeWithUri (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingXAmznErrorTypeWithUri', - documentation: - 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Amzn-Errortype': - 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonGreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonGreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how\nto deserialize a successful response. As of January 2021,\nserver implementations are expected to respond with a\nJSON object regardless of if the output parameters are\nempty.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Greeting': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonGreetingWithErrorsNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonGreetingWithErrorsNoPayload', + documentation: + 'This test is similar to RestJsonGreetingWithErrors, but it\nensures that clients can gracefully deal with a server\nomitting a response payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Greeting': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonComplexErrorWithNoMessage (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonComplexErrorWithNoMessage', + documentation: 'Serializes a complex error with no message member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "TopLevel": "Top level",\n "Nested": {\n "Fooooo": "bar"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'Header': 'Header', + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Header': 'Header', + 'X-Amzn-Errortype': 'ComplexError', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 403, + ), + errorSerializers: const [ + ComplexErrorRestJson1Serializer(), + ComplexNestedErrorDataRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonEmptyComplexErrorWithNoMessage (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonEmptyComplexErrorWithNoMessage', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Amzn-Errortype': 'ComplexError', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 403, + ), + errorSerializers: const [ + ComplexErrorRestJson1Serializer(), + ComplexNestedErrorDataRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonFooErrorUsingXAmznErrorType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingXAmznErrorType', + documentation: + 'Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amzn-Errortype': 'FooError'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorUsingXAmznErrorTypeWithUri (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingXAmznErrorTypeWithUri', + documentation: + 'Some X-Amzn-Errortype headers contain URLs. Clients need to split the URL on \':\' and take only the first half of the string. For example, \'ValidationException:http://internal.amazon.com/example/com.amazon.example.validate/\'\nis to be interpreted as \'ValidationException\'.\n\nFor an example service see Amazon Polly.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Amzn-Errortype': + 'FooError:http://internal.amazon.com/example/com.amazon.example.validate/', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonFooErrorUsingXAmznErrorTypeWithUriAndNamespace (error)', () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( operation: GreetingWithErrorsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), @@ -262,10 +239,7 @@ void main() { id: 'RestJsonFooErrorUsingXAmznErrorTypeWithUriAndNamespace', documentation: 'X-Amzn-Errortype might contain a URL and a namespace. Client should extract only the shape name. This is a pathalogical case that might not actually happen in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: null, bodyMediaType: null, @@ -274,7 +248,7 @@ void main() { vendorParams: {}, headers: { 'X-Amzn-Errortype': - 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/' + 'aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/', }, forbidHeaders: [], requireHeaders: [], @@ -286,268 +260,254 @@ void main() { ); }, ); - _i1.test( - 'RestJsonFooErrorUsingCode (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingCode', - documentation: - 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "code": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingCodeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingCodeAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorUsingCodeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorUsingCodeUriAndNamespace', - documentation: - 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorWithDunderType (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorWithDunderType', - documentation: 'Some services serialize errors using __type.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "__type": "FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorWithDunderTypeAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorWithDunderTypeAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonFooErrorWithDunderTypeUriAndNamespace (error)', - () async { - await _i2.httpErrorResponseTest<_i3.Unit, _i3.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput, FooError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonFooErrorWithDunderTypeUriAndNamespace', - documentation: - 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 500, - ), - errorSerializers: const [FooErrorRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonInvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInvalidGreetingError', - documentation: 'Parses simple JSON errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "Message": "Hi"\n}', - bodyMediaType: 'application/json', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Amzn-Errortype': 'InvalidGreeting', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonFooErrorUsingCode (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingCode', + documentation: + 'This example uses the \'code\' property in the output rather than X-Amzn-Errortype. Some services do this though it\'s preferable to send the X-Amzn-Errortype. Client implementations must first check for the X-Amzn-Errortype and then check for a top-level \'code\' property.\n\nFor example service see Amazon S3 Glacier.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "code": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorUsingCodeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingCodeAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "code": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorUsingCodeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorUsingCodeUriAndNamespace', + documentation: + 'Some services serialize errors using code, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "code": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorWithDunderType (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorWithDunderType', + documentation: 'Some services serialize errors using __type.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "__type": "FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorWithDunderTypeAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorWithDunderTypeAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. Clients should just take the last part of the string after \'#\'.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "__type": "aws.protocoltests.restjson#FooError"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonFooErrorWithDunderTypeUriAndNamespace (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + FooError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonFooErrorWithDunderTypeUriAndNamespace', + documentation: + 'Some services serialize errors using __type, and it might contain a namespace. It also might contain a URI. Clients should just take the last part of the string after \'#\' and before ":". This is a pathalogical case that might not occur in any deployed AWS service.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "__type": "aws.protocoltests.restjson#FooError:http://internal.amazon.com/example/com.amazon.example.validate/"\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 500, + ), + errorSerializers: const [FooErrorRestJson1Serializer()], + ); + }); + _i1.test('RestJsonInvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInvalidGreetingError', + documentation: 'Parses simple JSON errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "Message": "Hi"\n}', + bodyMediaType: 'application/json', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Amzn-Errortype': 'InvalidGreeting', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingRestJson1Serializer()], + ); + }); } class GreetingWithErrorsOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputRestJson1Serializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -566,10 +526,12 @@ class GreetingWithErrorsOutputRestJson1Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -595,11 +557,8 @@ class ComplexErrorRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexError deserialize( @@ -618,20 +577,27 @@ class ComplexErrorRestJson1Serializer } switch (key) { case 'Header': - result.header = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.header = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -651,18 +617,15 @@ class ComplexErrorRestJson1Serializer class ComplexNestedErrorDataRestJson1Serializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataRestJson1Serializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ComplexNestedErrorData deserialize( @@ -681,10 +644,12 @@ class ComplexNestedErrorDataRestJson1Serializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -710,11 +675,8 @@ class FooErrorRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override FooError deserialize( @@ -744,11 +706,8 @@ class InvalidGreetingRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InvalidGreeting deserialize( @@ -767,10 +726,12 @@ class InvalidGreetingRestJson1Serializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart index 4944aebece..c29174d0a4 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/host_with_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.host_with_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,42 +10,36 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHostWithPath (request)', - () async { - await _i2.httpRequestTest( - operation: HostWithPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com/custom'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHostWithPath', - documentation: 'Custom endpoints supplied by users can have paths', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/custom/HostWithPathOperation', - host: 'example.com/custom', - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonHostWithPath (request)', () async { + await _i2.httpRequestTest( + operation: HostWithPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com/custom'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHostWithPath', + documentation: 'Custom endpoints supplied by users can have paths', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/custom/HostWithPathOperation', + host: 'example.com/custom', + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart index 98ccaadd4d..e62a243263 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_checksum_required_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_checksum_required_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,57 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpChecksumRequired (request)', - () async { - await _i2.httpRequestTest( - operation: HttpChecksumRequiredOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpChecksumRequired', - documentation: 'Adds Content-MD5 header', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "foo":"base64 encoded md5 checksum"\n}\n', - bodyMediaType: 'application/json', - params: {'foo': 'base64 encoded md5 checksum'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'Content-MD5': 'iB0/3YSo7maijL0IGOgA9g==', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpChecksumRequired', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpChecksumRequiredInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpChecksumRequired (request)', () async { + await _i2.httpRequestTest( + operation: HttpChecksumRequiredOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpChecksumRequired', + documentation: 'Adds Content-MD5 header', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "foo":"base64 encoded md5 checksum"\n}\n', + bodyMediaType: 'application/json', + params: {'foo': 'base64 encoded md5 checksum'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'Content-MD5': 'iB0/3YSo7maijL0IGOgA9g==', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpChecksumRequired', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpChecksumRequiredInputOutputRestJson1Serializer(), + ], + ); + }); } class HttpChecksumRequiredInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpChecksumRequiredInputOutputRestJson1Serializer() - : super('HttpChecksumRequiredInputOutput'); + : super('HttpChecksumRequiredInputOutput'); @override Iterable get types => const [HttpChecksumRequiredInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpChecksumRequiredInputOutput deserialize( @@ -90,10 +81,12 @@ class HttpChecksumRequiredInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart index a264ecb501..ed9d281100 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_enum_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_enum_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,76 +13,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'EnumPayloadRequest (request)', - () async { - await _i2.httpRequestTest( - operation: HttpEnumPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'EnumPayloadRequest', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'enumvalue', - bodyMediaType: null, - params: {'payload': 'enumvalue'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EnumPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [EnumPayloadInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'EnumPayloadResponse (response)', - () async { - await _i2.httpResponseTest( - operation: HttpEnumPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'EnumPayloadResponse', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'enumvalue', - bodyMediaType: null, - params: {'payload': 'enumvalue'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [EnumPayloadInputRestJson1Serializer()], - ); - }, - ); + _i1.test('EnumPayloadRequest (request)', () async { + await _i2.httpRequestTest( + operation: HttpEnumPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'EnumPayloadRequest', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'enumvalue', + bodyMediaType: null, + params: {'payload': 'enumvalue'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EnumPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [EnumPayloadInputRestJson1Serializer()], + ); + }); + _i1.test('EnumPayloadResponse (response)', () async { + await _i2.httpResponseTest( + operation: HttpEnumPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'EnumPayloadResponse', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'enumvalue', + bodyMediaType: null, + params: {'payload': 'enumvalue'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [EnumPayloadInputRestJson1Serializer()], + ); + }); } class EnumPayloadInputRestJson1Serializer @@ -94,11 +82,8 @@ class EnumPayloadInputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override EnumPayloadInput deserialize( @@ -117,10 +102,12 @@ class EnumPayloadInputRestJson1Serializer } switch (key) { case 'payload': - result.payload = (serializers.deserialize( - value, - specifiedType: const FullType(StringEnum), - ) as StringEnum); + result.payload = + (serializers.deserialize( + value, + specifiedType: const FullType(StringEnum), + ) + as StringEnum); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart index 21b79756b4..f36e96ea14 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_payload_traits_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,180 +14,144 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpPayloadTraitsWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/octet-stream', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadTraitsWithNoBlobBody (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadTraitsWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadTraitsWithNoBlobBody (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpPayloadTraitsWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/octet-stream', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadTraitsWithNoBlobBody (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadTraitsWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadTraitsWithNoBlobBody (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestJson1Serializer(), + ], + ); + }); } class HttpPayloadTraitsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPayloadTraitsInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [HttpPayloadTraitsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPayloadTraitsInputOutput deserialize( @@ -206,15 +170,19 @@ class HttpPayloadTraitsInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart index 433e3d6656..0ade23a6c9 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_traits_with_media_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_payload_traits_with_media_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,23 +26,14 @@ void main() { id: 'RestJsonHttpPayloadTraitsWithMediaTypeWithBlob', documentation: 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'blobby blob blob', bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, forbidHeaders: [], requireHeaders: ['Content-Length'], tags: [], @@ -56,7 +47,7 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer(), ], ); }, @@ -73,23 +64,14 @@ void main() { id: 'RestJsonHttpPayloadTraitsWithMediaTypeWithBlob', documentation: 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: 'blobby blob blob', bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -97,28 +79,28 @@ void main() { code: 200, ), outputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer(), ], ); }, ); } -class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer + extends + _i3.StructuredSmithySerializer< + HttpPayloadTraitsWithMediaTypeInputOutput + > { const HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [HttpPayloadTraitsWithMediaTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPayloadTraitsWithMediaTypeInputOutput deserialize( @@ -137,15 +119,19 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart index 0084689b81..fd51f0d222 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_payload_with_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_payload_with_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,109 +13,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpPayloadWithStructure (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', - bodyMediaType: 'application/json', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithStructure', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithStructureInputOutputRestJson1Serializer(), - NestedPayloadRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpPayloadWithStructure (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', - bodyMediaType: 'application/json', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithStructureInputOutputRestJson1Serializer(), - NestedPayloadRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonHttpPayloadWithStructure (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', + bodyMediaType: 'application/json', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithStructure', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithStructureInputOutputRestJson1Serializer(), + NestedPayloadRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpPayloadWithStructure (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "greeting": "hello",\n "name": "Phreddy"\n}', + bodyMediaType: 'application/json', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithStructureInputOutputRestJson1Serializer(), + NestedPayloadRestJson1Serializer(), + ], + ); + }); } -class HttpPayloadWithStructureInputOutputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithStructureInputOutputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const HttpPayloadWithStructureInputOutputRestJson1Serializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [HttpPayloadWithStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPayloadWithStructureInputOutput deserialize( @@ -134,10 +114,13 @@ class HttpPayloadWithStructureInputOutputRestJson1Serializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedPayload), - ) as NestedPayload)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedPayload), + ) + as NestedPayload), + ); } } @@ -163,11 +146,8 @@ class NestedPayloadRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NestedPayload deserialize( @@ -186,15 +166,19 @@ class NestedPayloadRestJson1Serializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart index bdf219bfa9..a5c90ea4ae 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_in_response_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_prefix_headers_in_response_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,65 +14,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPrefixHeadersResponse (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPrefixHeadersResponse', - documentation: '(de)serializes all response headers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'prefixHeaders': { - 'X-Foo': 'Foo', - 'Hello': 'Hello', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Hello': 'Hello', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPrefixHeadersInResponseOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('HttpPrefixHeadersResponse (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPrefixHeadersResponse', + documentation: '(de)serializes all response headers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'prefixHeaders': {'X-Foo': 'Foo', 'Hello': 'Hello'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Hello': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPrefixHeadersInResponseOutputRestJson1Serializer(), + ], + ); + }); } class HttpPrefixHeadersInResponseInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInResponseInputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseInput'); + : super('HttpPrefixHeadersInResponseInput'); @override Iterable get types => const [HttpPrefixHeadersInResponseInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseInput deserialize( @@ -96,18 +81,15 @@ class HttpPrefixHeadersInResponseInputRestJson1Serializer class HttpPrefixHeadersInResponseOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInResponseOutputRestJson1Serializer() - : super('HttpPrefixHeadersInResponseOutput'); + : super('HttpPrefixHeadersInResponseOutput'); @override Iterable get types => const [HttpPrefixHeadersInResponseOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInResponseOutput deserialize( @@ -126,16 +108,16 @@ class HttpPrefixHeadersInResponseOutputRestJson1Serializer } switch (key) { case 'prefixHeaders': - result.prefixHeaders.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.prefixHeaders.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart index 212caa39ea..93830e0076 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_prefix_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_prefix_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,155 +14,125 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpPrefixHeadersArePresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpPrefixHeadersAreNotPresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpPrefixHeadersAreNotPresent', - documentation: - 'No prefix headers are serialized because the value is empty', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': {}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpPrefixHeadersArePresent (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [HttpPrefixHeadersOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonHttpPrefixHeadersArePresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpPrefixHeadersAreNotPresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpPrefixHeadersAreNotPresent', + documentation: + 'No prefix headers are serialized because the value is empty', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo', 'fooMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpPrefixHeadersArePresent (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [HttpPrefixHeadersOutputRestJson1Serializer()], + ); + }); } class HttpPrefixHeadersInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInputRestJson1Serializer() - : super('HttpPrefixHeadersInput'); + : super('HttpPrefixHeadersInput'); @override Iterable get types => const [HttpPrefixHeadersInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersInput deserialize( @@ -181,21 +151,23 @@ class HttpPrefixHeadersInputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fooMap': - result.fooMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.fooMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -215,18 +187,15 @@ class HttpPrefixHeadersInputRestJson1Serializer class HttpPrefixHeadersOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersOutputRestJson1Serializer() - : super('HttpPrefixHeadersOutput'); + : super('HttpPrefixHeadersOutput'); @override Iterable get types => const [HttpPrefixHeadersOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpPrefixHeadersOutput deserialize( @@ -245,21 +214,23 @@ class HttpPrefixHeadersOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fooMap': - result.fooMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.fooMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart index 63daaba094..99ec0c4317 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_float_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_request_with_float_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,152 +12,122 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonSupportsNaNFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatLabels', - documentation: 'Supports handling NaN float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'NaN', - 'double': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/NaN/NaN', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatLabels', - documentation: 'Supports handling Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'Infinity', - 'double': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/Infinity/Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNegativeInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNegativeInfinityFloatLabels', - documentation: 'Supports handling -Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': '-Infinity', - 'double': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/-Infinity/-Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonSupportsNaNFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatLabels', + documentation: 'Supports handling NaN float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'NaN', 'double': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/NaN/NaN', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatLabels', + documentation: 'Supports handling Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'Infinity', 'double': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/Infinity/Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNegativeInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNegativeInfinityFloatLabels', + documentation: 'Supports handling -Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': '-Infinity', 'double': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/-Infinity/-Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestJson1Serializer(), + ], + ); + }); } class HttpRequestWithFloatLabelsInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestJson1Serializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [HttpRequestWithFloatLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithFloatLabelsInput deserialize( @@ -176,15 +146,19 @@ class HttpRequestWithFloatLabelsInputRestJson1Serializer } switch (key) { case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart index e8d16f0088..66833855f6 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_greedy_label_in_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_request_with_greedy_label_in_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,67 +12,56 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpRequestWithGreedyLabelInPath (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithGreedyLabelInPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpRequestWithGreedyLabelInPath', - documentation: 'Serializes greedy labels and normal labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'hello/escape', - 'baz': 'there/guy', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithGreedyLabelInPath/foo/hello%2Fescape/baz/there/guy', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpRequestWithGreedyLabelInPath (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithGreedyLabelInPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpRequestWithGreedyLabelInPath', + documentation: 'Serializes greedy labels and normal labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'hello/escape', 'baz': 'there/guy'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithGreedyLabelInPath/foo/hello%2Fescape/baz/there/guy', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithGreedyLabelInPathInputRestJson1Serializer(), + ], + ); + }); } -class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const HttpRequestWithGreedyLabelInPathInputRestJson1Serializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [HttpRequestWithGreedyLabelInPathInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithGreedyLabelInPathInput deserialize( @@ -91,15 +80,19 @@ class HttpRequestWithGreedyLabelInPathInputRestJson1Serializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart index 4636d41881..fbf7dcfeeb 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_request_with_labels_and_timestamp_format_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,74 +12,68 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpRequestWithLabelsAndTimestampFormat (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsAndTimestampFormatOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpRequestWithLabelsAndTimestampFormat', - documentation: 'Serializes different timestamp formats in URI labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpRequestWithLabelsAndTimestampFormat (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsAndTimestampFormatOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpRequestWithLabelsAndTimestampFormat', + documentation: 'Serializes different timestamp formats in URI labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer(), + ], + ); + }); } class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer - extends _i3 - .StructuredSmithySerializer { + extends + _i3.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInput + > { const HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override - Iterable get types => - const [HttpRequestWithLabelsAndTimestampFormatInput]; + Iterable get types => const [ + HttpRequestWithLabelsAndTimestampFormatInput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInput deserialize( @@ -98,47 +92,26 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestJson1Serializer } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart index ba8fe5809a..36af81efce 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_request_with_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,123 +13,104 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonInputWithHeadersAndAllParams (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputWithHeadersAndAllParams', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': 'string', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpRequestLabelEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpRequestLabelEscaping', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': ' %:/?#[]@!\$&\'()*+,;=😹', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonInputWithHeadersAndAllParams (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputWithHeadersAndAllParams', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': 'string', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpRequestLabelEscaping (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpRequestLabelEscaping', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': ' %:/?#[]@!\$&\'()*+,;=😹', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestJson1Serializer()], + ); + }); } class HttpRequestWithLabelsInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestJson1Serializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [HttpRequestWithLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithLabelsInput deserialize( @@ -148,40 +129,54 @@ class HttpRequestWithLabelsInputRestJson1Serializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'timestamp': result.timestamp = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart index 7283e288bb..9c8ac25092 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_request_with_regex_literal_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_request_with_regex_literal_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonToleratesRegexCharsInSegments (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithRegexLiteralOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonToleratesRegexCharsInSegments', - documentation: - 'Path matching is not broken by regex expressions in literal segments', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'str': 'abc'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ReDosLiteral/abc/(a+)+', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithRegexLiteralInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonToleratesRegexCharsInSegments (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithRegexLiteralOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonToleratesRegexCharsInSegments', + documentation: + 'Path matching is not broken by regex expressions in literal segments', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'str': 'abc'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ReDosLiteral/abc/(a+)+', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithRegexLiteralInputRestJson1Serializer(), + ], + ); + }); } class HttpRequestWithRegexLiteralInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpRequestWithRegexLiteralInputRestJson1Serializer() - : super('HttpRequestWithRegexLiteralInput'); + : super('HttpRequestWithRegexLiteralInput'); @override Iterable get types => const [HttpRequestWithRegexLiteralInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpRequestWithRegexLiteralInput deserialize( @@ -88,10 +79,12 @@ class HttpRequestWithRegexLiteralInputRestJson1Serializer } switch (key) { case 'str': - result.str = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.str = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart index 1458711f7f..5e03f5cfda 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_response_code_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_response_code_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,89 +12,74 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpResponseCode (response)', - () async { - await _i2.httpResponseTest( - operation: HttpResponseCodeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpResponseCode', - documentation: - 'Binds the http response code to an output structure. Note that\neven though all members are bound outside of the payload, an\nempty JSON object is serialized in the response. However,\nclients should be able to handle an empty JSON object or an\nempty payload without failing to deserialize a response.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'Status': 201}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 201, - ), - outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpResponseCodeWithNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: HttpResponseCodeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonHttpResponseCodeWithNoPayload', - documentation: - 'This test ensures that clients gracefully handle cases where\nthe service responds with no payload rather than an empty JSON\nobject.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Status': 201}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 201, - ), - outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonHttpResponseCode (response)', () async { + await _i2.httpResponseTest( + operation: HttpResponseCodeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpResponseCode', + documentation: + 'Binds the http response code to an output structure. Note that\neven though all members are bound outside of the payload, an\nempty JSON object is serialized in the response. However,\nclients should be able to handle an empty JSON object or an\nempty payload without failing to deserialize a response.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'Status': 201}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 201, + ), + outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpResponseCodeWithNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: HttpResponseCodeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonHttpResponseCodeWithNoPayload', + documentation: + 'This test ensures that clients gracefully handle cases where\nthe service responds with no payload rather than an empty JSON\nobject.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Status': 201}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 201, + ), + outputSerializers: const [HttpResponseCodeOutputRestJson1Serializer()], + ); + }); } class HttpResponseCodeOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const HttpResponseCodeOutputRestJson1Serializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [HttpResponseCodeOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override HttpResponseCodeOutput deserialize( @@ -113,10 +98,12 @@ class HttpResponseCodeOutputRestJson1Serializer } switch (key) { case 'Status': - result.status = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.status = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart index 7a8e7fabb1..a9d89883f4 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/http_string_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.http_string_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,76 +12,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'StringPayloadRequest (request)', - () async { - await _i2.httpRequestTest( - operation: HttpStringPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'StringPayloadRequest', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'rawstring', - bodyMediaType: null, - params: {'payload': 'rawstring'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StringPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [StringPayloadInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'StringPayloadResponse (response)', - () async { - await _i2.httpResponseTest( - operation: HttpStringPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'StringPayloadResponse', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'rawstring', - bodyMediaType: null, - params: {'payload': 'rawstring'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [StringPayloadInputRestJson1Serializer()], - ); - }, - ); + _i1.test('StringPayloadRequest (request)', () async { + await _i2.httpRequestTest( + operation: HttpStringPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'StringPayloadRequest', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'rawstring', + bodyMediaType: null, + params: {'payload': 'rawstring'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StringPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [StringPayloadInputRestJson1Serializer()], + ); + }); + _i1.test('StringPayloadResponse (response)', () async { + await _i2.httpResponseTest( + operation: HttpStringPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'StringPayloadResponse', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'rawstring', + bodyMediaType: null, + params: {'payload': 'rawstring'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [StringPayloadInputRestJson1Serializer()], + ); + }); } class StringPayloadInputRestJson1Serializer @@ -93,11 +81,8 @@ class StringPayloadInputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StringPayloadInput deserialize( @@ -116,10 +101,12 @@ class StringPayloadInputRestJson1Serializer } switch (key) { case 'payload': - result.payload = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.payload = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart index d4df7e522f..7aea469f1d 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/ignore_query_params_in_response_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.ignore_query_params_in_response_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,93 +12,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonIgnoreQueryParamsInResponse (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoreQueryParamsInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonIgnoreQueryParamsInResponse', - documentation: - 'Query parameters must be ignored when serializing the output\nof an operation. As of January 2021, server implementations\nare expected to respond with a JSON object regardless of\nif the output parameters are empty.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoreQueryParamsInResponseOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonIgnoreQueryParamsInResponseNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoreQueryParamsInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonIgnoreQueryParamsInResponseNoPayload', - documentation: - 'This test is similar to RestJsonIgnoreQueryParamsInResponse,\nbut it ensures that clients gracefully handle responses from\nthe server that do not serialize an empty JSON object.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - IgnoreQueryParamsInResponseOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonIgnoreQueryParamsInResponse (response)', () async { + await _i2.httpResponseTest( + operation: IgnoreQueryParamsInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonIgnoreQueryParamsInResponse', + documentation: + 'Query parameters must be ignored when serializing the output\nof an operation. As of January 2021, server implementations\nare expected to respond with a JSON object regardless of\nif the output parameters are empty.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoreQueryParamsInResponseOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonIgnoreQueryParamsInResponseNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: IgnoreQueryParamsInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonIgnoreQueryParamsInResponseNoPayload', + documentation: + 'This test is similar to RestJsonIgnoreQueryParamsInResponse,\nbut it ensures that clients gracefully handle responses from\nthe server that do not serialize an empty JSON object.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + IgnoreQueryParamsInResponseOutputRestJson1Serializer(), + ], + ); + }); } class IgnoreQueryParamsInResponseOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestJson1Serializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [IgnoreQueryParamsInResponseOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -117,10 +102,12 @@ class IgnoreQueryParamsInResponseOutputRestJson1Serializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart index 117284125a..6da10c736b 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/input_and_output_with_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.input_and_output_with_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,461 +16,358 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonInputAndOutputWithStringHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithStringHeaders', - documentation: 'Tests requests with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithQuotedStringHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithQuotedStringHeaders', - documentation: - 'Tests requests with string list header bindings that require quoting', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerStringList': [ - 'b,c', - '"def"', - 'a', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithNumericHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithNumericHeaders', - documentation: 'Tests requests with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithBooleanHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithBooleanHeaders', - documentation: 'Tests requests with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithTimestampHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithTimestampHeaders', - documentation: 'Tests requests with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithEnumHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithEnumHeaders', - documentation: 'Tests requests with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithIntEnumHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputAndOutputWithIntEnumHeaders', - documentation: 'Tests requests with intEnum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerIntegerEnum': 1, - 'headerIntegerEnumList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-IntegerEnum': '1', - 'X-IntegerEnumList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatHeaderInputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatHeaderInputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonInputAndOutputWithStringHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithStringHeaders', + documentation: 'Tests requests with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithQuotedStringHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithQuotedStringHeaders', + documentation: + 'Tests requests with string list header bindings that require quoting', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerStringList': ['b,c', '"def"', 'a'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithNumericHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithNumericHeaders', + documentation: 'Tests requests with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithBooleanHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithBooleanHeaders', + documentation: 'Tests requests with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithTimestampHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithTimestampHeaders', + documentation: 'Tests requests with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithEnumHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithEnumHeaders', + documentation: 'Tests requests with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithIntEnumHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputAndOutputWithIntEnumHeaders', + documentation: 'Tests requests with intEnum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerIntegerEnum': 1, + 'headerIntegerEnumList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-IntegerEnum': '1', 'X-IntegerEnumList': '1, 2, 3'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatHeaderInputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatHeaderInputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonSupportsNegativeInfinityFloatHeaderInputs (request)', () async { @@ -482,23 +379,14 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonSupportsNegativeInfinityFloatHeaderInputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -512,412 +400,309 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithStringHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithStringHeaders', - documentation: 'Tests responses with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithQuotedStringHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithQuotedStringHeaders', - documentation: - 'Tests responses with string list header bindings that require quoting', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerStringList': [ - 'b,c', - '"def"', - 'a', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithNumericHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithNumericHeaders', - documentation: 'Tests responses with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithBooleanHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithBooleanHeaders', - documentation: 'Tests responses with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithTimestampHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithTimestampHeaders', - documentation: 'Tests responses with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithEnumHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithEnumHeaders', - documentation: 'Tests responses with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonInputAndOutputWithIntEnumHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonInputAndOutputWithIntEnumHeaders', - documentation: 'Tests responses with intEnum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerIntegerEnum': 1, - 'headerIntegerEnumList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-IntegerEnum': '1', - 'X-IntegerEnumList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsNaNFloatHeaderOutputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsInfinityFloatHeaderOutputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() + InputAndOutputWithHeadersIoRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonInputAndOutputWithStringHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithStringHeaders', + documentation: 'Tests responses with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithQuotedStringHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithQuotedStringHeaders', + documentation: + 'Tests responses with string list header bindings that require quoting', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerStringList': ['b,c', '"def"', 'a'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-StringList': '"b,c", "\\"def\\"", a'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithNumericHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithNumericHeaders', + documentation: 'Tests responses with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithBooleanHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithBooleanHeaders', + documentation: 'Tests responses with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithTimestampHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithTimestampHeaders', + documentation: 'Tests responses with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithEnumHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithEnumHeaders', + documentation: 'Tests responses with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonInputAndOutputWithIntEnumHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonInputAndOutputWithIntEnumHeaders', + documentation: 'Tests responses with intEnum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'headerIntegerEnum': 1, + 'headerIntegerEnumList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-IntegerEnum': '1', 'X-IntegerEnumList': '1, 2, 3'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsNaNFloatHeaderOutputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsInfinityFloatHeaderOutputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + InputAndOutputWithHeadersIoRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonSupportsNegativeInfinityFloatHeaderOutputs (response)', () async { @@ -929,23 +714,14 @@ void main() { testCase: const _i2.HttpResponseTestCase( id: 'RestJsonSupportsNegativeInfinityFloatHeaderOutputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: null, bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -953,7 +729,7 @@ void main() { code: 200, ), outputSerializers: const [ - InputAndOutputWithHeadersIoRestJson1Serializer() + InputAndOutputWithHeadersIoRestJson1Serializer(), ], ); }, @@ -963,18 +739,15 @@ void main() { class InputAndOutputWithHeadersIoRestJson1Serializer extends _i3.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestJson1Serializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [InputAndOutputWithHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override InputAndOutputWithHeadersIo deserialize( @@ -993,116 +766,150 @@ class InputAndOutputWithHeadersIoRestJson1Serializer } switch (key) { case 'headerString': - result.headerString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.headerString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'headerByte': - result.headerByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerShort': - result.headerShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerInteger': - result.headerInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerLong': - result.headerLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.headerLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'headerFloat': - result.headerFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerDouble': - result.headerDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerTrueBool': - result.headerTrueBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerTrueBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerFalseBool': - result.headerFalseBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerFalseBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerStringList': - result.headerStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.headerStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'headerStringSet': - result.headerStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], - ), - ) as _i5.BuiltSet)); + result.headerStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(String), + ]), + ) + as _i5.BuiltSet), + ); case 'headerIntegerList': - result.headerIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(int)], - ), - ) as _i5.BuiltList)); + result.headerIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [FullType(int)]), + ) + as _i5.BuiltList), + ); case 'headerBooleanList': - result.headerBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(bool)], - ), - ) as _i5.BuiltList)); + result.headerBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(bool), + ]), + ) + as _i5.BuiltList), + ); case 'headerTimestampList': - result.headerTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(DateTime)], - ), - ) as _i5.BuiltList)); + result.headerTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltList), + ); case 'headerEnum': - result.headerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.headerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'headerEnumList': - result.headerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(FooEnum)], - ), - ) as _i5.BuiltList)); + result.headerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltList), + ); case 'headerIntegerEnum': - result.headerIntegerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.headerIntegerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'headerIntegerEnumList': - result.headerIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i5.BuiltList)); + result.headerIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i5.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart index a4ab77bce6..f1517be5ba 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.json_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,93 +14,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonBlobs (request)', - () async { - await _i2.httpRequestTest( - operation: JsonBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "data": "dmFsdWU="\n}', - bodyMediaType: 'application/json', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonBlobs', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonJsonBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: JsonBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "data": "dmFsdWU="\n}', - bodyMediaType: 'application/json', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonJsonBlobs (request)', () async { + await _i2.httpRequestTest( + operation: JsonBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "data": "dmFsdWU="\n}', + bodyMediaType: 'application/json', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonBlobs', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonBlobs (response)', () async { + await _i2.httpResponseTest( + operation: JsonBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "data": "dmFsdWU="\n}', + bodyMediaType: 'application/json', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonBlobsInputOutputRestJson1Serializer()], + ); + }); } class JsonBlobsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonBlobsInputOutputRestJson1Serializer() - : super('JsonBlobsInputOutput'); + : super('JsonBlobsInputOutput'); @override Iterable get types => const [JsonBlobsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonBlobsInputOutput deserialize( @@ -119,10 +104,12 @@ class JsonBlobsInputOutputRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_enums_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_enums_operation_test.dart index 9b49d1cdb5..dfe95a1a74 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.json_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,127 +14,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonEnums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonJsonEnums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonJsonEnums (request)', () async { + await _i2.httpRequestTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonEnums (response)', () async { + await _i2.httpResponseTest( + operation: JsonEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "fooEnum1": "Foo",\n "fooEnum2": "0",\n "fooEnum3": "1",\n "fooEnumList": [\n "Foo",\n "0"\n ],\n "fooEnumSet": [\n "Foo",\n "0"\n ],\n "fooEnumMap": {\n "hi": "Foo",\n "zero": "0"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonEnumsInputOutputRestJson1Serializer()], + ); + }); } class JsonEnumsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonEnumsInputOutputRestJson1Serializer() - : super('JsonEnumsInputOutput'); + : super('JsonEnumsInputOutput'); @override Iterable get types => const [JsonEnumsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonEnumsInputOutput deserialize( @@ -153,47 +120,57 @@ class JsonEnumsInputOutputRestJson1Serializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart index a9bd2364b6..0861e1996b 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.json_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,129 +14,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonIntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonIntEnums', - documentation: 'Serializes intEnums as integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'integerEnum1': 1, - 'integerEnum2': 2, - 'integerEnum3': 3, - 'integerEnumList': [ - 1, - 2, - 3, - ], - 'integerEnumSet': [ - 1, - 2, - ], - 'integerEnumMap': { - 'abc': 1, - 'def': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonIntEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonJsonIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: JsonIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonIntEnums', - documentation: 'Serializes intEnums as integers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', - bodyMediaType: 'application/json', - params: { - 'integerEnum1': 1, - 'integerEnum2': 2, - 'integerEnum3': 3, - 'integerEnumList': [ - 1, - 2, - 3, - ], - 'integerEnumSet': [ - 1, - 2, - ], - 'integerEnumMap': { - 'abc': 1, - 'def': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonJsonIntEnums (request)', () async { + await _i2.httpRequestTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonIntEnums', + documentation: 'Serializes intEnums as integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'integerEnum1': 1, + 'integerEnum2': 2, + 'integerEnum3': 3, + 'integerEnumList': [1, 2, 3], + 'integerEnumSet': [1, 2], + 'integerEnumMap': {'abc': 1, 'def': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonIntEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: JsonIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonIntEnums', + documentation: 'Serializes intEnums as integers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "integerEnum1": 1,\n "integerEnum2": 2,\n "integerEnum3": 3,\n "integerEnumList": [\n 1,\n 2,\n 3\n ],\n "integerEnumSet": [\n 1,\n 2\n ],\n "integerEnumMap": {\n "abc": 1,\n "def": 2\n }\n}', + bodyMediaType: 'application/json', + params: { + 'integerEnum1': 1, + 'integerEnum2': 2, + 'integerEnum3': 3, + 'integerEnumList': [1, 2, 3], + 'integerEnumSet': [1, 2], + 'integerEnumMap': {'abc': 1, 'def': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonIntEnumsInputOutputRestJson1Serializer()], + ); + }); } class JsonIntEnumsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonIntEnumsInputOutputRestJson1Serializer() - : super('JsonIntEnumsInputOutput'); + : super('JsonIntEnumsInputOutput'); @override Iterable get types => const [JsonIntEnumsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonIntEnumsInputOutput deserialize( @@ -155,47 +120,57 @@ class JsonIntEnumsInputOutputRestJson1Serializer } switch (key) { case 'integerEnum1': - result.integerEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'integerEnum2': - result.integerEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'integerEnum3': - result.integerEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.integerEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'integerEnumList': - result.integerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.integerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'integerEnumSet': - result.integerEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltSet)); + result.integerEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'integerEnumMap': - result.integerEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ), - ) as _i4.BuiltMap)); + result.integerEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_lists_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_lists_operation_test.dart index 19f6cb08a3..be68131a41 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.json_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,363 +16,252 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonLists (request)', - () async { - await _i2.httpRequestTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonLists', - documentation: 'Serializes JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsEmpty (request)', - () async { - await _i2.httpRequestTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonListsEmpty', - documentation: 'Serializes empty JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringList": []\n}', - bodyMediaType: 'application/json', - params: {'stringList': []}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsSerializeNull (request)', - () async { - await _i2.httpRequestTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonListsSerializeNull', - documentation: 'Serializes null values in lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [ - null, - 'hi', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonLists (response)', - () async { - await _i2.httpResponseTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonLists', - documentation: 'Serializes JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsEmpty (response)', - () async { - await _i2.httpResponseTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonListsEmpty', - documentation: 'Serializes empty JSON lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringList": []\n}', - bodyMediaType: 'application/json', - params: {'stringList': []}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonListsSerializeNull (response)', - () async { - await _i2.httpResponseTest( - operation: JsonListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonListsSerializeNull', - documentation: 'Serializes null values in sparse lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', - bodyMediaType: 'application/json', - params: { - 'sparseStringList': [ - null, - 'hi', - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonListsInputOutputRestJson1Serializer(), - StructureListMemberRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonLists (request)', () async { + await _i2.httpRequestTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonLists', + documentation: 'Serializes JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsEmpty (request)', () async { + await _i2.httpRequestTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonListsEmpty', + documentation: 'Serializes empty JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringList": []\n}', + bodyMediaType: 'application/json', + params: {'stringList': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsSerializeNull (request)', () async { + await _i2.httpRequestTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonListsSerializeNull', + documentation: 'Serializes null values in lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null, 'hi'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonLists (response)', () async { + await _i2.httpResponseTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonLists', + documentation: 'Serializes JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringList": [\n "foo",\n "bar"\n ],\n "stringSet": [\n "foo",\n "bar"\n ],\n "integerList": [\n 1,\n 2\n ],\n "booleanList": [\n true,\n false\n ],\n "timestampList": [\n 1398796238,\n 1398796238\n ],\n "enumList": [\n "Foo",\n "0"\n ],\n "intEnumList": [\n 1,\n 2\n ],\n "nestedStringList": [\n [\n "foo",\n "bar"\n ],\n [\n "baz",\n "qux"\n ]\n ],\n "myStructureList": [\n {\n "value": "1",\n "other": "2"\n },\n {\n "value": "3",\n "other": "4"\n }\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsEmpty (response)', () async { + await _i2.httpResponseTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonListsEmpty', + documentation: 'Serializes empty JSON lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringList": []\n}', + bodyMediaType: 'application/json', + params: {'stringList': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonListsSerializeNull (response)', () async { + await _i2.httpResponseTest( + operation: JsonListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonListsSerializeNull', + documentation: 'Serializes null values in sparse lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseStringList": [\n null,\n "hi"\n ]\n}', + bodyMediaType: 'application/json', + params: { + 'sparseStringList': [null, 'hi'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonListsInputOutputRestJson1Serializer(), + StructureListMemberRestJson1Serializer(), + ], + ); + }); } class JsonListsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonListsInputOutputRestJson1Serializer() - : super('JsonListsInputOutput'); + : super('JsonListsInputOutput'); @override Iterable get types => const [JsonListsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonListsInputOutput deserialize( @@ -391,90 +280,103 @@ class JsonListsInputOutputRestJson1Serializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'sparseStringList': - result.sparseStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType.nullable(String)], - ), - ) as _i4.BuiltList)); + result.sparseStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType.nullable(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -500,11 +402,8 @@ class StructureListMemberRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StructureListMember deserialize( @@ -523,15 +422,19 @@ class StructureListMemberRestJson1Serializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_maps_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_maps_operation_test.dart index 715574a74d..7639b84cab 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_maps_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.json_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,8 +14,136 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { + _i1.test('RestJsonJsonMaps (request)', () async { + await _i2.httpRequestTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonMaps', + documentation: 'Serializes JSON maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + 'sparseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSerializesNullMapValues (request)', () async { + await _i2.httpRequestTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializesNullMapValues', + documentation: 'Serializes JSON map values in sparse maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseBooleanMap': {'x': null}, + 'sparseNumberMap': {'x': null}, + 'sparseStringMap': {'x': null}, + 'sparseStructMap': {'x': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSerializesZeroValuesInMaps (request)', () async { + await _i2.httpRequestTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializesZeroValuesInMaps', + documentation: + 'Ensure that 0 and false are sent over the wire in all maps and lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseNumberMap': {'x': 0}, + 'sparseNumberMap': {'x': 0}, + 'denseBooleanMap': {'x': false}, + 'sparseBooleanMap': {'x': false}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); _i1.test( - 'RestJsonJsonMaps (request)', + 'RestJsonSerializesSparseSetMap (request)', () async { await _i2.httpRequestTest( operation: JsonMapsOperation( @@ -23,24 +151,17 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonMaps', - documentation: 'Serializes JSON maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonSerializesSparseSetMap', + documentation: 'A request that contains a sparse map of sets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: - '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', + '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', bodyMediaType: 'application/json', params: { - 'denseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - }, - 'sparseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, + 'sparseSetMap': { + 'x': [], + 'y': ['a', 'b'], }, }, vendorParamsShape: null, @@ -64,9 +185,10 @@ void main() { ], ); }, + skip: 'Cannot handle this at the moment (empty vs. null).', ); _i1.test( - 'RestJsonSerializesNullMapValues (request)', + 'RestJsonSerializesDenseSetMap (request)', () async { await _i2.httpRequestTest( operation: JsonMapsOperation( @@ -74,21 +196,18 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesNullMapValues', - documentation: 'Serializes JSON map values in sparse maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonSerializesDenseSetMap', + documentation: 'A request that contains a dense map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: - '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', + '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', bodyMediaType: 'application/json', params: { - 'sparseBooleanMap': {'x': null}, - 'sparseNumberMap': {'x': null}, - 'sparseStringMap': {'x': null}, - 'sparseStructMap': {'x': null}, + 'denseSetMap': { + 'x': [], + 'y': ['a', 'b'], + }, }, vendorParamsShape: null, vendorParams: {}, @@ -111,9 +230,10 @@ void main() { ], ); }, + skip: 'Cannot handle this at the moment (empty vs. null).', ); _i1.test( - 'RestJsonSerializesZeroValuesInMaps (request)', + 'RestJsonSerializesSparseSetMapAndRetainsNull (request)', () async { await _i2.httpRequestTest( operation: JsonMapsOperation( @@ -121,22 +241,19 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesZeroValuesInMaps', - documentation: - 'Ensure that 0 and false are sent over the wire in all maps and lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonSerializesSparseSetMapAndRetainsNull', + documentation: 'A request that contains a sparse map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: - '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', + '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', bodyMediaType: 'application/json', params: { - 'denseNumberMap': {'x': 0}, - 'sparseNumberMap': {'x': 0}, - 'denseBooleanMap': {'x': false}, - 'sparseBooleanMap': {'x': false}, + 'sparseSetMap': { + 'x': [], + 'y': ['a', 'b'], + 'z': null, + }, }, vendorParamsShape: null, vendorParams: {}, @@ -159,20 +276,128 @@ void main() { ], ); }, + skip: 'Cannot handle this at the moment (empty vs. null).', ); - _i1.test('RestJsonSerializesSparseSetMap (request)', () async { - await _i2.httpRequestTest( + _i1.test('RestJsonJsonMaps (response)', () async { + await _i2.httpResponseTest( operation: JsonMapsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesSparseSetMap', - documentation: 'A request that contains a sparse map of sets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonMaps', + documentation: 'Deserializes JSON maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + 'sparseStructMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, + }, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDeserializesNullMapValues (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesNullMapValues', + documentation: 'Deserializes null JSON map values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'sparseBooleanMap': {'x': null}, + 'sparseNumberMap': {'x': null}, + 'sparseStringMap': {'x': null}, + 'sparseStructMap': {'x': null}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDeserializesZeroValuesInMaps (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesZeroValuesInMaps', + documentation: + 'Ensure that 0 and false are sent over the wire in all maps and lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseNumberMap': {'x': 0}, + 'sparseNumberMap': {'x': 0}, + 'denseBooleanMap': {'x': false}, + 'sparseBooleanMap': {'x': false}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDeserializesSparseSetMap (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesSparseSetMap', + documentation: 'A response that contains a sparse map of sets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', @@ -180,11 +405,8 @@ void main() { params: { 'sparseSetMap': { 'x': [], - 'y': [ - 'a', - 'b', - ], - } + 'y': ['a', 'b'], + }, }, vendorParamsShape: null, vendorParams: {}, @@ -193,33 +415,24 @@ void main() { requireHeaders: [], tags: [], appliesTo: null, - method: 'POST', - uri: '/JsonMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + code: 200, ), - inputSerializers: const [ + outputSerializers: const [ JsonMapsInputOutputRestJson1Serializer(), GreetingStructRestJson1Serializer(), ], ); - }, skip: 'Cannot handle this at the moment (empty vs. null).'); - _i1.test('RestJsonSerializesDenseSetMap (request)', () async { - await _i2.httpRequestTest( + }); + _i1.test('RestJsonDeserializesDenseSetMap (response)', () async { + await _i2.httpResponseTest( operation: JsonMapsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesDenseSetMap', - documentation: 'A request that contains a dense map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesDenseSetMap', + documentation: 'A response that contains a dense map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', @@ -227,11 +440,8 @@ void main() { params: { 'denseSetMap': { 'x': [], - 'y': [ - 'a', - 'b', - ], - } + 'y': ['a', 'b'], + }, }, vendorParamsShape: null, vendorParams: {}, @@ -240,33 +450,24 @@ void main() { requireHeaders: [], tags: [], appliesTo: null, - method: 'POST', - uri: '/JsonMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + code: 200, ), - inputSerializers: const [ + outputSerializers: const [ JsonMapsInputOutputRestJson1Serializer(), GreetingStructRestJson1Serializer(), ], ); - }, skip: 'Cannot handle this at the moment (empty vs. null).'); - _i1.test('RestJsonSerializesSparseSetMapAndRetainsNull (request)', () async { - await _i2.httpRequestTest( + }); + _i1.test('RestJsonDeserializesSparseSetMapAndRetainsNull (response)', () async { + await _i2.httpResponseTest( operation: JsonMapsOperation( region: 'us-east-1', baseUri: Uri.parse('https://example.com'), ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesSparseSetMapAndRetainsNull', - documentation: 'A request that contains a sparse map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesSparseSetMapAndRetainsNull', + documentation: 'A response that contains a sparse map of sets.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', @@ -274,12 +475,9 @@ void main() { params: { 'sparseSetMap': { 'x': [], - 'y': [ - 'a', - 'b', - ], + 'y': ['a', 'b'], 'z': null, - } + }, }, vendorParamsShape: null, vendorParams: {}, @@ -288,326 +486,50 @@ void main() { requireHeaders: [], tags: [], appliesTo: null, - method: 'POST', - uri: '/JsonMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], + code: 200, ), - inputSerializers: const [ + outputSerializers: const [ JsonMapsInputOutputRestJson1Serializer(), GreetingStructRestJson1Serializer(), ], ); - }, skip: 'Cannot handle this at the moment (empty vs. null).'); - _i1.test( - 'RestJsonJsonMaps (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonMaps', - documentation: 'Deserializes JSON maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n },\n "sparseStructMap": {\n "foo": {\n "hi": "there"\n },\n "baz": {\n "hi": "bye"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - }, - 'sparseStructMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesNullMapValues (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesNullMapValues', - documentation: 'Deserializes null JSON map values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseBooleanMap": {\n "x": null\n },\n "sparseNumberMap": {\n "x": null\n },\n "sparseStringMap": {\n "x": null\n },\n "sparseStructMap": {\n "x": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseBooleanMap': {'x': null}, - 'sparseNumberMap': {'x': null}, - 'sparseStringMap': {'x': null}, - 'sparseStructMap': {'x': null}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesZeroValuesInMaps (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesZeroValuesInMaps', - documentation: - 'Ensure that 0 and false are sent over the wire in all maps and lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseNumberMap": {\n "x": 0\n },\n "sparseNumberMap": {\n "x": 0\n },\n "denseBooleanMap": {\n "x": false\n },\n "sparseBooleanMap": {\n "x": false\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseNumberMap': {'x': 0}, - 'sparseNumberMap': {'x': 0}, - 'denseBooleanMap': {'x': false}, - 'sparseBooleanMap': {'x': false}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesSparseSetMap (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesSparseSetMap', - documentation: 'A response that contains a sparse map of sets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesDenseSetMap (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesDenseSetMap', - documentation: 'A response that contains a dense map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesSparseSetMapAndRetainsNull (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesSparseSetMapAndRetainsNull', - documentation: 'A response that contains a sparse map of sets.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "sparseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'sparseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - 'z': null, - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonDeserializesDenseSetMapAndSkipsNull (response)', - () async { - await _i2.httpResponseTest( - operation: JsonMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializesDenseSetMapAndSkipsNull', - documentation: - 'Clients SHOULD tolerate seeing a null value in a dense map, and they SHOULD\ndrop the null key-value pair.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', - bodyMediaType: 'application/json', - params: { - 'denseSetMap': { - 'x': [], - 'y': [ - 'a', - 'b', - ], - } + }); + _i1.test('RestJsonDeserializesDenseSetMapAndSkipsNull (response)', () async { + await _i2.httpResponseTest( + operation: JsonMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializesDenseSetMapAndSkipsNull', + documentation: + 'Clients SHOULD tolerate seeing a null value in a dense map, and they SHOULD\ndrop the null key-value pair.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "denseSetMap": {\n "x": [],\n "y": ["a", "b"],\n "z": null\n }\n}', + bodyMediaType: 'application/json', + params: { + 'denseSetMap': { + 'x': [], + 'y': ['a', 'b'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - JsonMapsInputOutputRestJson1Serializer(), - GreetingStructRestJson1Serializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + JsonMapsInputOutputRestJson1Serializer(), + GreetingStructRestJson1Serializer(), + ], + ); + }); } class JsonMapsInputOutputRestJson1Serializer @@ -619,11 +541,8 @@ class JsonMapsInputOutputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonMapsInputOutput deserialize( @@ -642,115 +561,115 @@ class JsonMapsInputOutputRestJson1Serializer } switch (key) { case 'denseStructMap': - result.denseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.denseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseStructMap': - result.sparseStructMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.sparseStructMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); case 'denseNumberMap': - result.denseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(int), - ], - ), - ) as _i4.BuiltMap)); + result.denseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(int), + ]), + ) + as _i4.BuiltMap), + ); case 'denseBooleanMap': - result.denseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(bool), - ], - ), - ) as _i4.BuiltMap)); + result.denseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(bool), + ]), + ) + as _i4.BuiltMap), + ); case 'denseStringMap': - result.denseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.denseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseNumberMap': - result.sparseNumberMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(int), - ], - ), - ) as _i4.BuiltMap)); + result.sparseNumberMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(int), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseBooleanMap': - result.sparseBooleanMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(bool), - ], - ), - ) as _i4.BuiltMap)); + result.sparseBooleanMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(bool), + ]), + ) + as _i4.BuiltMap), + ); case 'sparseStringMap': - result.sparseStringMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType.nullable(String), - ], - ), - ) as _i4.BuiltMap)); + result.sparseStringMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType.nullable(String), + ]), + ) + as _i4.BuiltMap), + ); case 'denseSetMap': - result.denseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltSetMultimap)); + result.denseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltSetMultimap), + ); case 'sparseSetMap': - result.sparseSetMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSetMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltSetMultimap)); + result.sparseSetMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSetMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltSetMultimap), + ); } } @@ -776,11 +695,8 @@ class GreetingStructRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override GreetingStruct deserialize( @@ -799,10 +715,12 @@ class GreetingStructRestJson1Serializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart index ec11ec8596..9be9b03e26 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.json_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,87 +12,71 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonJsonTimestamps (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "normal": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithDateTimeFormat (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', - bodyMediaType: 'application/json', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonJsonTimestamps (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "normal": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonTimestampsWithDateTimeFormat (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', + bodyMediaType: 'application/json', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat (request)', () async { @@ -105,10 +89,7 @@ void main() { id: 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat', documentation: 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "dateTimeOnTarget": "2014-04-29T18:30:38Z"\n}', bodyMediaType: 'application/json', @@ -129,52 +110,44 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithEpochSecondsFormat (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "epochSeconds": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithEpochSecondsFormat (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "epochSeconds": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat (request)', () async { @@ -187,10 +160,7 @@ void main() { id: 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat', documentation: 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "epochSecondsOnTarget": 1398796238\n}', bodyMediaType: 'application/json', @@ -211,51 +181,43 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithHttpDateFormat (request)', - () async { - await _i2.httpRequestTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonJsonTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', - bodyMediaType: 'application/json', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/JsonTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithHttpDateFormat (request)', () async { + await _i2.httpRequestTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonJsonTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', + bodyMediaType: 'application/json', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/JsonTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat (request)', () async { @@ -268,10 +230,7 @@ void main() { id: 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat', documentation: 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "httpDateOnTarget": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', bodyMediaType: 'application/json', @@ -292,80 +251,64 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "normal": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', - bodyMediaType: 'application/json', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "normal": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonJsonTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "dateTime": "2014-04-29T18:30:38Z"\n}', + bodyMediaType: 'application/json', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat (response)', () async { @@ -378,10 +321,7 @@ void main() { id: 'RestJsonJsonTimestampsWithDateTimeOnTargetFormat', documentation: 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "dateTimeOnTarget": "2014-04-29T18:30:38Z"\n}', bodyMediaType: 'application/json', @@ -396,46 +336,38 @@ void main() { code: 200, ), outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "epochSeconds": 1398796238\n}', - bodyMediaType: 'application/json', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "epochSeconds": 1398796238\n}', + bodyMediaType: 'application/json', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat (response)', () async { @@ -448,10 +380,7 @@ void main() { id: 'RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat', documentation: 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "epochSecondsOnTarget": 1398796238\n}', bodyMediaType: 'application/json', @@ -466,45 +395,37 @@ void main() { code: 200, ), outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonJsonTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: JsonTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonJsonTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', - bodyMediaType: 'application/json', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, ); + _i1.test('RestJsonJsonTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: JsonTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonJsonTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "httpDate": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', + bodyMediaType: 'application/json', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [JsonTimestampsInputOutputRestJson1Serializer()], + ); + }); _i1.test( 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat (response)', () async { @@ -517,10 +438,7 @@ void main() { id: 'RestJsonJsonTimestampsWithHttpDateOnTargetFormat', documentation: 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '{\n "httpDateOnTarget": "Tue, 29 Apr 2014 18:30:38 GMT"\n}', bodyMediaType: 'application/json', @@ -535,7 +453,7 @@ void main() { code: 200, ), outputSerializers: const [ - JsonTimestampsInputOutputRestJson1Serializer() + JsonTimestampsInputOutputRestJson1Serializer(), ], ); }, @@ -545,18 +463,15 @@ void main() { class JsonTimestampsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const JsonTimestampsInputOutputRestJson1Serializer() - : super('JsonTimestampsInputOutput'); + : super('JsonTimestampsInputOutput'); @override Iterable get types => const [JsonTimestampsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override JsonTimestampsInputOutput deserialize( @@ -585,34 +500,22 @@ class JsonTimestampsInputOutputRestJson1Serializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_unions_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_unions_operation_test.dart index 47330166b1..7938c66316 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_unions_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/json_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.json_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,747 +13,621 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonSerializeStringUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeStringUnionValue', - documentation: 'Serializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} + _i1.test('RestJsonSerializeStringUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeStringUnionValue', + documentation: 'Serializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeBooleanUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeBooleanUnionValue', + documentation: 'Serializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeNumberUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeNumberUnionValue', + documentation: 'Serializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeBlobUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeBlobUnionValue', + documentation: 'Serializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeTimestampUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeTimestampUnionValue', + documentation: 'Serializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeEnumUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeEnumUnionValue', + documentation: 'Serializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeListUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeListUnionValue', + documentation: 'Serializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeBooleanUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeBooleanUnionValue', - documentation: 'Serializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeMapUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeMapUnionValue', + documentation: 'Serializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeNumberUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeNumberUnionValue', - documentation: 'Serializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeStructureUnionValue', + documentation: 'Serializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeBlobUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeBlobUnionValue', - documentation: 'Serializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonSerializeRenamedStructureUnionValue (request)', () async { + await _i2.httpRequestTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializeRenamedStructureUnionValue', + documentation: 'Serializes a renamed structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "renamedStructureValue": {\n "salutation": "hello!"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'renamedStructureValue': {'salutation': 'hello!'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeTimestampUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeTimestampUnionValue', - documentation: 'Serializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/JsonUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeStringUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeStringUnionValue', + documentation: 'Deserializes a string union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'stringValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeBooleanUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeBooleanUnionValue', + documentation: 'Deserializes a boolean union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "booleanValue": true\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeNumberUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeNumberUnionValue', + documentation: 'Deserializes a number union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "numberValue": 1\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'numberValue': 1}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeBlobUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeBlobUnionValue', + documentation: 'Deserializes a blob union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'blobValue': 'foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeTimestampUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeTimestampUnionValue', + documentation: 'Deserializes a timestamp union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'timestampValue': 1398796238}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeEnumUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeEnumUnionValue', + documentation: 'Deserializes an enum union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': {'enumValue': 'Foo'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeListUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeListUnionValue', + documentation: 'Deserializes a list union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'listValue': ['foo', 'bar'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeEnumUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeEnumUnionValue', - documentation: 'Serializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeMapUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeMapUnionValue', + documentation: 'Deserializes a map union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'mapValue': {'foo': 'bar', 'spam': 'eggs'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeListUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeListUnionValue', - documentation: 'Serializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonDeserializeStructureUnionValue (response)', () async { + await _i2.httpResponseTest( + operation: JsonUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDeserializeStructureUnionValue', + documentation: 'Deserializes a structure union value', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'contents': { + 'structureValue': {'hi': 'hello'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeMapUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeMapUnionValue', - documentation: 'Serializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeStructureUnionValue', - documentation: 'Serializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonSerializeRenamedStructureUnionValue (request)', - () async { - await _i2.httpRequestTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializeRenamedStructureUnionValue', - documentation: 'Serializes a renamed structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "renamedStructureValue": {\n "salutation": "hello!"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'renamedStructureValue': {'salutation': 'hello!'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/JsonUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeStringUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeStringUnionValue', - documentation: 'Deserializes a string union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "stringValue": "foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'stringValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeBooleanUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeBooleanUnionValue', - documentation: 'Deserializes a boolean union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "booleanValue": true\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeNumberUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeNumberUnionValue', - documentation: 'Deserializes a number union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "numberValue": 1\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'numberValue': 1} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeBlobUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeBlobUnionValue', - documentation: 'Deserializes a blob union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "blobValue": "Zm9v"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'blobValue': 'foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeTimestampUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeTimestampUnionValue', - documentation: 'Deserializes a timestamp union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "timestampValue": 1398796238\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'timestampValue': 1398796238} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeEnumUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeEnumUnionValue', - documentation: 'Deserializes an enum union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "contents": {\n "enumValue": "Foo"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': {'enumValue': 'Foo'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeListUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeListUnionValue', - documentation: 'Deserializes a list union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "listValue": ["foo", "bar"]\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'listValue': [ - 'foo', - 'bar', - ] - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeMapUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeMapUnionValue', - documentation: 'Deserializes a map union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "mapValue": {\n "foo": "bar",\n "spam": "eggs"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'mapValue': { - 'foo': 'bar', - 'spam': 'eggs', - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonDeserializeStructureUnionValue (response)', - () async { - await _i2.httpResponseTest( - operation: JsonUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDeserializeStructureUnionValue', - documentation: 'Deserializes a structure union value', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "contents": {\n "structureValue": {\n "hi": "hello"\n }\n }\n}', - bodyMediaType: 'application/json', - params: { - 'contents': { - 'structureValue': {'hi': 'hello'} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [UnionInputOutputRestJson1Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [UnionInputOutputRestJson1Serializer()], + ); + }); } class UnionInputOutputRestJson1Serializer @@ -765,11 +639,8 @@ class UnionInputOutputRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override UnionInputOutput deserialize( @@ -788,10 +659,12 @@ class UnionInputOutputRestJson1Serializer } switch (key) { case 'contents': - result.contents = (serializers.deserialize( - value, - specifiedType: const FullType(MyUnion), - ) as MyUnion); + result.contents = + (serializers.deserialize( + value, + specifiedType: const FullType(MyUnion), + ) + as MyUnion); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart index 160b00201c..2cbd0ff15c 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/media_type_header_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.media_type_header_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,95 +13,80 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'MediaTypeHeaderInputBase64 (request)', - () async { - await _i2.httpRequestTest( - operation: MediaTypeHeaderOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'MediaTypeHeaderInputBase64', - documentation: - 'Headers that target strings with a mediaType are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'json': 'true'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Json': 'dHJ1ZQ=='}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/MediaTypeHeader', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [MediaTypeHeaderInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'MediaTypeHeaderOutputBase64 (response)', - () async { - await _i2.httpResponseTest( - operation: MediaTypeHeaderOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'MediaTypeHeaderOutputBase64', - documentation: - 'Headers that target strings with a mediaType are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: {'json': 'true'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Json': 'dHJ1ZQ=='}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [MediaTypeHeaderOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('MediaTypeHeaderInputBase64 (request)', () async { + await _i2.httpRequestTest( + operation: MediaTypeHeaderOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'MediaTypeHeaderInputBase64', + documentation: + 'Headers that target strings with a mediaType are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'json': 'true'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Json': 'dHJ1ZQ=='}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/MediaTypeHeader', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [MediaTypeHeaderInputRestJson1Serializer()], + ); + }); + _i1.test('MediaTypeHeaderOutputBase64 (response)', () async { + await _i2.httpResponseTest( + operation: MediaTypeHeaderOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'MediaTypeHeaderOutputBase64', + documentation: + 'Headers that target strings with a mediaType are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: {'json': 'true'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Json': 'dHJ1ZQ=='}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [MediaTypeHeaderOutputRestJson1Serializer()], + ); + }); } class MediaTypeHeaderInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const MediaTypeHeaderInputRestJson1Serializer() - : super('MediaTypeHeaderInput'); + : super('MediaTypeHeaderInput'); @override Iterable get types => const [MediaTypeHeaderInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderInput deserialize( @@ -143,18 +128,15 @@ class MediaTypeHeaderInputRestJson1Serializer class MediaTypeHeaderOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const MediaTypeHeaderOutputRestJson1Serializer() - : super('MediaTypeHeaderOutput'); + : super('MediaTypeHeaderOutput'); @override Iterable get types => const [MediaTypeHeaderOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override MediaTypeHeaderOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart index 5a7e7219e3..d0d52e2f10 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,76 +10,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonNoInputAndNoOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonNoInputAndNoOutput', - documentation: - 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndNoOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'RestJsonNoInputAndNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonNoInputAndNoOutput', - documentation: - 'When an operation does not define output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonNoInputAndNoOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonNoInputAndNoOutput', + documentation: + 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndNoOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('RestJsonNoInputAndNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonNoInputAndNoOutput', + documentation: + 'When an operation does not define output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart index 887657c08d..70528e3bc4 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,128 +12,107 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonNoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonNoInputAndOutput', - documentation: - 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndOutputOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'RestJsonNoInputAndOutputWithJson (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonNoInputAndOutputWithJson', - documentation: - 'Operations that define output and do not bind anything to\nthe payload return a JSON object in the response.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonNoInputAndOutputNoPayload (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonNoInputAndOutputNoPayload', - documentation: - 'This test is similar to RestJsonNoInputAndOutputWithJson, but\nit ensures that clients can gracefully handle responses that\nomit a JSON payload.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonNoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonNoInputAndOutput', + documentation: + 'No input serializes no payload. When clients do not need to\nserialize any data in the payload, they should omit a payload\naltogether.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndOutputOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('RestJsonNoInputAndOutputWithJson (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonNoInputAndOutputWithJson', + documentation: + 'Operations that define output and do not bind anything to\nthe payload return a JSON object in the response.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonNoInputAndOutputNoPayload (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonNoInputAndOutputNoPayload', + documentation: + 'This test is similar to RestJsonNoInputAndOutputWithJson, but\nit ensures that clients can gracefully handle responses that\nomit a JSON payload.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputRestJson1Serializer()], + ); + }); } class NoInputAndOutputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputRestJson1Serializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart index b67e397dc1..af5c4fafe8 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/null_and_empty_headers_client_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.null_and_empty_headers_client_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,70 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonNullAndEmptyHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: NullAndEmptyHeadersClientOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonNullAndEmptyHeaders', - documentation: - 'Do not send null values, empty strings, or empty lists over the wire in headers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'a': null, - 'b': '', - 'c': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [ - 'X-A', - 'X-B', - 'X-C', - ], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/NullAndEmptyHeadersClient', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NullAndEmptyHeadersIoRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonNullAndEmptyHeaders (request)', () async { + await _i2.httpRequestTest( + operation: NullAndEmptyHeadersClientOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonNullAndEmptyHeaders', + documentation: + 'Do not send null values, empty strings, or empty lists over the wire in headers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'a': null, 'b': '', 'c': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: ['X-A', 'X-B', 'X-C'], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/NullAndEmptyHeadersClient', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullAndEmptyHeadersIoRestJson1Serializer()], + ); + }); } class NullAndEmptyHeadersIoRestJson1Serializer extends _i3.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestJson1Serializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [NullAndEmptyHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override NullAndEmptyHeadersIo deserialize( @@ -95,23 +78,29 @@ class NullAndEmptyHeadersIoRestJson1Serializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'c': - result.c.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.c.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart index 2d3f861026..812ba31420 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_null_serializes_empty_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.omits_null_serializes_empty_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,103 +12,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonOmitsNullQuery (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonOmitsNullQuery', - documentation: 'Omits null query values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'nullValue': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSerializesEmptyQueryValue (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSerializesEmptyQueryValue', - documentation: 'Serializes empty query strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: ['Empty='], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonOmitsNullQuery (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonOmitsNullQuery', + documentation: 'Omits null query values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'nullValue': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSerializesEmptyQueryValue (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSerializesEmptyQueryValue', + documentation: 'Serializes empty query strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: ['Empty='], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestJson1Serializer(), + ], + ); + }); } -class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestJson1Serializer + extends + _i3.StructuredSmithySerializer { const OmitsNullSerializesEmptyStringInputRestJson1Serializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [OmitsNullSerializesEmptyStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsNullSerializesEmptyStringInput deserialize( @@ -127,15 +113,19 @@ class OmitsNullSerializesEmptyStringInputRestJson1Serializer extends _i3 } switch (key) { case 'nullValue': - result.nullValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart index 0320cbe24f..841c038dbd 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/omits_serializing_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.omits_serializing_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,71 +15,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonOmitsEmptyListQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsSerializingEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonOmitsEmptyListQueryValues', - documentation: 'Supports omitting empty lists.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryStringList': [], - 'queryIntegerList': [], - 'queryDoubleList': [], - 'queryBooleanList': [], - 'queryTimestampList': [], - 'queryEnumList': [], - 'queryIntegerEnumList': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/OmitsSerializingEmptyLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsSerializingEmptyListsInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonOmitsEmptyListQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: OmitsSerializingEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonOmitsEmptyListQueryValues', + documentation: 'Supports omitting empty lists.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryStringList': [], + 'queryIntegerList': [], + 'queryDoubleList': [], + 'queryBooleanList': [], + 'queryTimestampList': [], + 'queryEnumList': [], + 'queryIntegerEnumList': [], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/OmitsSerializingEmptyLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsSerializingEmptyListsInputRestJson1Serializer(), + ], + ); + }); } class OmitsSerializingEmptyListsInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const OmitsSerializingEmptyListsInputRestJson1Serializer() - : super('OmitsSerializingEmptyListsInput'); + : super('OmitsSerializingEmptyListsInput'); @override Iterable get types => const [OmitsSerializingEmptyListsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override OmitsSerializingEmptyListsInput deserialize( @@ -98,61 +89,73 @@ class OmitsSerializingEmptyListsInputRestJson1Serializer } switch (key) { case 'queryStringList': - result.queryStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.queryStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerList': - result.queryIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryDoubleList': - result.queryDoubleList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(double)], - ), - ) as _i4.BuiltList)); + result.queryDoubleList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(double), + ]), + ) + as _i4.BuiltList), + ); case 'queryBooleanList': - result.queryBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.queryBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'queryTimestampList': - result.queryTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.queryTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'queryEnumList': - result.queryEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.queryEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerEnumList': - result.queryIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.queryIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart index ca783477f6..327747ab33 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_player_action_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.post_player_action_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,99 +14,84 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonInputUnionWithUnitMember (request)', - () async { - await _i2.httpRequestTest( - operation: PostPlayerActionOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonInputUnionWithUnitMember', - documentation: - 'Unit types in unions are serialized like normal structures in requests.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "action": {\n "quit": {}\n }\n}', - bodyMediaType: 'application/json', - params: { - 'action': {'quit': {}} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostPlayerAction', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PostPlayerActionInputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonOutputUnionWithUnitMember (response)', - () async { - await _i2.httpResponseTest( - operation: PostPlayerActionOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonOutputUnionWithUnitMember', - documentation: - 'Unit types in unions are serialized like normal structures in responses.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "action": {\n "quit": {}\n }\n}', - bodyMediaType: 'application/json', - params: { - 'action': {'quit': {}} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [PostPlayerActionOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonInputUnionWithUnitMember (request)', () async { + await _i2.httpRequestTest( + operation: PostPlayerActionOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonInputUnionWithUnitMember', + documentation: + 'Unit types in unions are serialized like normal structures in requests.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "action": {\n "quit": {}\n }\n}', + bodyMediaType: 'application/json', + params: { + 'action': {'quit': {}}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostPlayerAction', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostPlayerActionInputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonOutputUnionWithUnitMember (response)', () async { + await _i2.httpResponseTest( + operation: PostPlayerActionOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonOutputUnionWithUnitMember', + documentation: + 'Unit types in unions are serialized like normal structures in responses.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "action": {\n "quit": {}\n }\n}', + bodyMediaType: 'application/json', + params: { + 'action': {'quit': {}}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [PostPlayerActionOutputRestJson1Serializer()], + ); + }); } class PostPlayerActionInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostPlayerActionInputRestJson1Serializer() - : super('PostPlayerActionInput'); + : super('PostPlayerActionInput'); @override Iterable get types => const [PostPlayerActionInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionInput deserialize( @@ -125,10 +110,12 @@ class PostPlayerActionInputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } @@ -148,18 +135,15 @@ class PostPlayerActionInputRestJson1Serializer class PostPlayerActionOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostPlayerActionOutputRestJson1Serializer() - : super('PostPlayerActionOutput'); + : super('PostPlayerActionOutput'); @override Iterable get types => const [PostPlayerActionOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostPlayerActionOutput deserialize( @@ -178,10 +162,12 @@ class PostPlayerActionOutputRestJson1Serializer } switch (key) { case 'action': - result.action = (serializers.deserialize( - value, - specifiedType: const FullType(PlayerAction), - ) as PlayerAction); + result.action = + (serializers.deserialize( + value, + specifiedType: const FullType(PlayerAction), + ) + as PlayerAction); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart index f0a7982c95..4c7ac623d1 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/post_union_with_json_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.post_union_with_json_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,257 +14,212 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'PostUnionWithJsonNameRequest1 (request)', - () async { - await _i2.httpRequestTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'PostUnionWithJsonNameRequest1', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "FOO": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'foo': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostUnionWithJsonName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PostUnionWithJsonNameInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameRequest2 (request)', - () async { - await _i2.httpRequestTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'PostUnionWithJsonNameRequest2', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "_baz": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'baz': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostUnionWithJsonName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PostUnionWithJsonNameInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameRequest3 (request)', - () async { - await _i2.httpRequestTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'PostUnionWithJsonNameRequest3', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "bar": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'bar': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/PostUnionWithJsonName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PostUnionWithJsonNameInputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameResponse1 (response)', - () async { - await _i2.httpResponseTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PostUnionWithJsonNameResponse1', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "FOO": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'foo': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PostUnionWithJsonNameOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameResponse2 (response)', - () async { - await _i2.httpResponseTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PostUnionWithJsonNameResponse2', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "_baz": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'baz': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PostUnionWithJsonNameOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'PostUnionWithJsonNameResponse3 (response)', - () async { - await _i2.httpResponseTest( - operation: PostUnionWithJsonNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'PostUnionWithJsonNameResponse3', - documentation: 'Tests that jsonName works with union members.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "value": {\n "bar": "hi"\n }\n}', - bodyMediaType: 'application/json', - params: { - 'value': {'bar': 'hi'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - PostUnionWithJsonNameOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('PostUnionWithJsonNameRequest1 (request)', () async { + await _i2.httpRequestTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PostUnionWithJsonNameRequest1', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "FOO": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'foo': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostUnionWithJsonName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostUnionWithJsonNameInputRestJson1Serializer()], + ); + }); + _i1.test('PostUnionWithJsonNameRequest2 (request)', () async { + await _i2.httpRequestTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PostUnionWithJsonNameRequest2', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "_baz": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'baz': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostUnionWithJsonName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostUnionWithJsonNameInputRestJson1Serializer()], + ); + }); + _i1.test('PostUnionWithJsonNameRequest3 (request)', () async { + await _i2.httpRequestTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'PostUnionWithJsonNameRequest3', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "bar": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'bar': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/PostUnionWithJsonName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [PostUnionWithJsonNameInputRestJson1Serializer()], + ); + }); + _i1.test('PostUnionWithJsonNameResponse1 (response)', () async { + await _i2.httpResponseTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PostUnionWithJsonNameResponse1', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "FOO": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'foo': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PostUnionWithJsonNameOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('PostUnionWithJsonNameResponse2 (response)', () async { + await _i2.httpResponseTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PostUnionWithJsonNameResponse2', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "_baz": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'baz': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PostUnionWithJsonNameOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('PostUnionWithJsonNameResponse3 (response)', () async { + await _i2.httpResponseTest( + operation: PostUnionWithJsonNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'PostUnionWithJsonNameResponse3', + documentation: 'Tests that jsonName works with union members.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "value": {\n "bar": "hi"\n }\n}', + bodyMediaType: 'application/json', + params: { + 'value': {'bar': 'hi'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + PostUnionWithJsonNameOutputRestJson1Serializer(), + ], + ); + }); } class PostUnionWithJsonNameInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostUnionWithJsonNameInputRestJson1Serializer() - : super('PostUnionWithJsonNameInput'); + : super('PostUnionWithJsonNameInput'); @override Iterable get types => const [PostUnionWithJsonNameInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameInput deserialize( @@ -283,10 +238,12 @@ class PostUnionWithJsonNameInputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } @@ -306,18 +263,15 @@ class PostUnionWithJsonNameInputRestJson1Serializer class PostUnionWithJsonNameOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PostUnionWithJsonNameOutputRestJson1Serializer() - : super('PostUnionWithJsonNameOutput'); + : super('PostUnionWithJsonNameOutput'); @override Iterable get types => const [PostUnionWithJsonNameOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PostUnionWithJsonNameOutput deserialize( @@ -336,10 +290,12 @@ class PostUnionWithJsonNameOutputRestJson1Serializer } switch (key) { case 'value': - result.value = (serializers.deserialize( - value, - specifiedType: const FullType(UnionWithJsonName), - ) as UnionWithJsonName); + result.value = + (serializers.deserialize( + value, + specifiedType: const FullType(UnionWithJsonName), + ) + as UnionWithJsonName); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart index 9e605d3712..faf555821f 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,107 +12,105 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_restJson1 (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_restJson1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', + _i1.test( + 'SDKAppliedContentEncoding_restJson1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputRestJson1Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendedGzipAfterProvidedEncoding_restJson1 (request)', - () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendedGzipAfterProvidedEncoding_restJson1', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_restJson1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'custom, gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - PutWithContentEncodingInputRestJson1Serializer() - ], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputRestJson1Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendedGzipAfterProvidedEncoding_restJson1 (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendedGzipAfterProvidedEncoding_restJson1', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'custom, gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputRestJson1Serializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputRestJson1Serializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PutWithContentEncodingInput deserialize( @@ -131,15 +129,19 @@ class PutWithContentEncodingInputRestJson1Serializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart index c42909961b..34a3c9b5ad 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,8 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('RestJsonQueryIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/QueryIdempotencyTokenAutoFill', - host: null, - resolvedHost: null, - queryParams: ['token=00000000-0000-4000-8000-000000000000'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestJson1Serializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); _i1.test( - 'RestJsonQueryIdempotencyTokenAutoFillIsSet (request)', + 'RestJsonQueryIdempotencyTokenAutoFill (request)', () async { await _i2.httpRequestTest( operation: QueryIdempotencyTokenAutoFillOperation( @@ -58,16 +21,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + id: 'RestJsonQueryIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: null, - params: {'token': '00000000-0000-4000-8000-000000000000'}, + params: {}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -84,28 +44,60 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestJson1Serializer() + QueryIdempotencyTokenAutoFillInputRestJson1Serializer(), ], ); }, + skip: 'bool.fromEnvironment is not working in tests for some reason', ); + _i1.test('RestJsonQueryIdempotencyTokenAutoFillIsSet (request)', () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'token': '00000000-0000-4000-8000-000000000000'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/QueryIdempotencyTokenAutoFill', + host: null, + resolvedHost: null, + queryParams: ['token=00000000-0000-4000-8000-000000000000'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputRestJson1Serializer(), + ], + ); + }); } class QueryIdempotencyTokenAutoFillInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputRestJson1Serializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -124,10 +116,12 @@ class QueryIdempotencyTokenAutoFillInputRestJson1Serializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart index 3602511014..ab503f1de7 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_params_as_string_list_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.query_params_as_string_list_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,75 +13,59 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonQueryParamsStringListMap (request)', - () async { - await _i2.httpRequestTest( - operation: QueryParamsAsStringListMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryParamsStringListMap', - documentation: 'Serialize query params from map of list strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'qux': 'named', - 'foo': { - 'baz': [ - 'bar', - 'qux', - ] - }, + _i1.test('RestJsonQueryParamsStringListMap (request)', () async { + await _i2.httpRequestTest( + operation: QueryParamsAsStringListMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryParamsStringListMap', + documentation: 'Serialize query params from map of list strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'qux': 'named', + 'foo': { + 'baz': ['bar', 'qux'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/StringListMap', - host: null, - resolvedHost: null, - queryParams: [ - 'corge=named', - 'baz=bar', - 'baz=qux', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryParamsAsStringListMapInputRestJson1Serializer() - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/StringListMap', + host: null, + resolvedHost: null, + queryParams: ['corge=named', 'baz=bar', 'baz=qux'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryParamsAsStringListMapInputRestJson1Serializer(), + ], + ); + }); } class QueryParamsAsStringListMapInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestJson1Serializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [QueryParamsAsStringListMapInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryParamsAsStringListMapInput deserialize( @@ -100,21 +84,23 @@ class QueryParamsAsStringListMapInputRestJson1Serializer } switch (key) { case 'qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'foo': - result.foo.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.foo.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart index b7a54eba15..ac963fb84f 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/query_precedence_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.query_precedence_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,70 +13,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonQueryPrecedence (request)', - () async { - await _i2.httpRequestTest( - operation: QueryPrecedenceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonQueryPrecedence', - documentation: 'Prefer named query parameters when serializing', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'named', - 'baz': { - 'bar': 'fromMap', - 'qux': 'alsoFromMap', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/Precedence', - host: null, - resolvedHost: null, - queryParams: [ - 'bar=named', - 'qux=alsoFromMap', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryPrecedenceInputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonQueryPrecedence (request)', () async { + await _i2.httpRequestTest( + operation: QueryPrecedenceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonQueryPrecedence', + documentation: 'Prefer named query parameters when serializing', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'named', + 'baz': {'bar': 'fromMap', 'qux': 'alsoFromMap'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/Precedence', + host: null, + resolvedHost: null, + queryParams: ['bar=named', 'qux=alsoFromMap'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryPrecedenceInputRestJson1Serializer()], + ); + }); } class QueryPrecedenceInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const QueryPrecedenceInputRestJson1Serializer() - : super('QueryPrecedenceInput'); + : super('QueryPrecedenceInput'); @override Iterable get types => const [QueryPrecedenceInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override QueryPrecedenceInput deserialize( @@ -95,21 +80,23 @@ class QueryPrecedenceInputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.baz.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart index fd67ccaa6a..b05910e290 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/recursive_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.recursive_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,125 +14,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonRecursiveShapes (request)', - () async { - await _i2.httpRequestTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonRecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', - bodyMediaType: 'application/json', - params: { + _i1.test('RestJsonRecursiveShapes (request)', () async { + await _i2.httpRequestTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonRecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/RecursiveShapes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - RecursiveShapesInputOutputRestJson1Serializer(), - RecursiveShapesInputOutputNested1RestJson1Serializer(), - RecursiveShapesInputOutputNested2RestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonRecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonRecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', - bodyMediaType: 'application/json', - params: { + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/RecursiveShapes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + RecursiveShapesInputOutputRestJson1Serializer(), + RecursiveShapesInputOutputNested1RestJson1Serializer(), + RecursiveShapesInputOutputNested2RestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonRecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonRecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "nested": {\n "foo": "Foo1",\n "nested": {\n "bar": "Bar1",\n "recursiveMember": {\n "foo": "Foo2",\n "nested": {\n "bar": "Bar2"\n }\n }\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveShapesInputOutputRestJson1Serializer(), - RecursiveShapesInputOutputNested1RestJson1Serializer(), - RecursiveShapesInputOutputNested2RestJson1Serializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveShapesInputOutputRestJson1Serializer(), + RecursiveShapesInputOutputNested1RestJson1Serializer(), + RecursiveShapesInputOutputNested2RestJson1Serializer(), + ], + ); + }); } class RecursiveShapesInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputRestJson1Serializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [RecursiveShapesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -151,10 +136,15 @@ class RecursiveShapesInputOutputRestJson1Serializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -174,18 +164,15 @@ class RecursiveShapesInputOutputRestJson1Serializer class RecursiveShapesInputOutputNested1RestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestJson1Serializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [RecursiveShapesInputOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -204,15 +191,22 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -232,18 +226,15 @@ class RecursiveShapesInputOutputNested1RestJson1Serializer class RecursiveShapesInputOutputNested2RestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestJson1Serializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [RecursiveShapesInputOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -262,15 +253,22 @@ class RecursiveShapesInputOutputNested2RestJson1Serializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart index 8c256c84e1..03f6cf3519 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,446 +13,358 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonSimpleScalarProperties (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', - bodyMediaType: 'application/json', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonDoesntSerializeNullStructureValues (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonDoesntSerializeNullStructureValues', - documentation: 'Rest Json should not serialize null structure values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'stringValue': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonSupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', - bodyMediaType: 'application/json', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonDoesntDeserializeNullStructureValues (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonDoesntDeserializeNullStructureValues', - documentation: - 'Rest Json should not deserialize null structure values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "stringValue": null\n}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNaNFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonSupportsNegativeInfinityFloatInputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonSupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', - bodyMediaType: 'application/json', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonSimpleScalarProperties (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', + bodyMediaType: 'application/json', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDoesntSerializeNullStructureValues (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonDoesntSerializeNullStructureValues', + documentation: 'Rest Json should not serialize null structure values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'stringValue': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonSupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "stringValue": "string",\n "trueBooleanValue": true,\n "falseBooleanValue": false,\n "byteValue": 1,\n "shortValue": 2,\n "integerValue": 3,\n "longValue": 4,\n "floatValue": 5.5,\n "DoubleDribble": 6.5\n}', + bodyMediaType: 'application/json', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonDoesntDeserializeNullStructureValues (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonDoesntDeserializeNullStructureValues', + documentation: 'Rest Json should not deserialize null structure values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "stringValue": null\n}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNaNFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{\n "floatValue": "NaN",\n "DoubleDribble": "NaN"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "Infinity",\n "DoubleDribble": "Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonSupportsNegativeInfinityFloatInputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonSupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{\n "floatValue": "-Infinity",\n "DoubleDribble": "-Infinity"\n}', + bodyMediaType: 'application/json', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestJson1Serializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputRestJson1Serializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -471,55 +383,75 @@ class SimpleScalarPropertiesInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart index a500835042..a088ebe0ac 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.streaming_traits_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,183 +14,140 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonStreamingTraitsWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'application/octet-stream', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithNoBlobBody (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonStreamingTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'application/octet-stream', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithNoBlobBody (response)', - () async { - await _i2.httpResponseTest( - operation: StreamingTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonStreamingTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - StreamingTraitsInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonStreamingTraitsWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [StreamingTraitsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonStreamingTraitsWithNoBlobBody (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [StreamingTraitsInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonStreamingTraitsWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonStreamingTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + StreamingTraitsInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonStreamingTraitsWithNoBlobBody (response)', () async { + await _i2.httpResponseTest( + operation: StreamingTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonStreamingTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + StreamingTraitsInputOutputRestJson1Serializer(), + ], + ); + }); } class StreamingTraitsInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const StreamingTraitsInputOutputRestJson1Serializer() - : super('StreamingTraitsInputOutput'); + : super('StreamingTraitsInputOutput'); @override Iterable get types => const [StreamingTraitsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StreamingTraitsInputOutput deserialize( @@ -209,23 +166,21 @@ class StreamingTraitsInputOutputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType( - _i4.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i4.Stream>); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i4.Stream>); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart index 5625c6dcca..9235cba05d 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_require_length_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.streaming_traits_require_length_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,53 +14,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonStreamingTraitsRequireLengthWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsRequireLengthOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsRequireLengthWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a required length', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'application/octet-stream', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraitsRequireLength', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsRequireLengthInputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonStreamingTraitsRequireLengthWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsRequireLengthOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsRequireLengthWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a required length', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraitsRequireLength', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + StreamingTraitsRequireLengthInputRestJson1Serializer(), + ], + ); + }); _i1.test( 'RestJsonStreamingTraitsRequireLengthWithNoBlobBody (request)', () async { @@ -72,10 +60,7 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestJsonStreamingTraitsRequireLengthWithNoBlobBody', documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), authScheme: null, body: '', bodyMediaType: 'application/octet-stream', @@ -96,7 +81,7 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - StreamingTraitsRequireLengthInputRestJson1Serializer() + StreamingTraitsRequireLengthInputRestJson1Serializer(), ], ); }, @@ -106,18 +91,15 @@ void main() { class StreamingTraitsRequireLengthInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const StreamingTraitsRequireLengthInputRestJson1Serializer() - : super('StreamingTraitsRequireLengthInput'); + : super('StreamingTraitsRequireLengthInput'); @override Iterable get types => const [StreamingTraitsRequireLengthInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StreamingTraitsRequireLengthInput deserialize( @@ -136,23 +118,21 @@ class StreamingTraitsRequireLengthInputRestJson1Serializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType( - _i4.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i4.Stream>); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i4.Stream>); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart index 623f54ab0c..e199160e62 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/streaming_traits_with_media_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.streaming_traits_with_media_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,111 +14,87 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonStreamingTraitsWithMediaTypeWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: StreamingTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/StreamingTraitsWithMediaType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonStreamingTraitsWithMediaTypeWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: StreamingTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: 'application/octet-stream', - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonStreamingTraitsWithMediaTypeWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: StreamingTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/StreamingTraitsWithMediaType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonStreamingTraitsWithMediaTypeWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: StreamingTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonStreamingTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: 'application/octet-stream', + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer(), + ], + ); + }); } -class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 - .StructuredSmithySerializer { +class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer + extends + _i3.StructuredSmithySerializer< + StreamingTraitsWithMediaTypeInputOutput + > { const StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer() - : super('StreamingTraitsWithMediaTypeInputOutput'); + : super('StreamingTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [StreamingTraitsWithMediaTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override StreamingTraitsWithMediaTypeInputOutput deserialize( @@ -137,23 +113,21 @@ class StreamingTraitsWithMediaTypeInputOutputRestJson1Serializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType( - _i4.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i4.Stream>); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i4.Stream>); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart index 3c8771c033..434a323199 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_body_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.test_body_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,107 +13,92 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonTestBodyStructure (request)', - () async { - await _i2.httpRequestTest( - operation: TestBodyStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTestBodyStructure', - documentation: 'Serializes a structure', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{"testConfig":\n {"timeout": 10}\n}', - bodyMediaType: 'application/json', - params: { - 'testConfig': {'timeout': 10} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/body', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestBodyStructureInputOutputRestJson1Serializer(), - TestConfigRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpWithEmptyBody (request)', - () async { - await _i2.httpRequestTest( - operation: TestBodyStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithEmptyBody', - documentation: 'Serializes an empty structure in the body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/body', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestBodyStructureInputOutputRestJson1Serializer(), - TestConfigRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonTestBodyStructure (request)', () async { + await _i2.httpRequestTest( + operation: TestBodyStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTestBodyStructure', + documentation: 'Serializes a structure', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{"testConfig":\n {"timeout": 10}\n}', + bodyMediaType: 'application/json', + params: { + 'testConfig': {'timeout': 10}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/body', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestBodyStructureInputOutputRestJson1Serializer(), + TestConfigRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpWithEmptyBody (request)', () async { + await _i2.httpRequestTest( + operation: TestBodyStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithEmptyBody', + documentation: 'Serializes an empty structure in the body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/body', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestBodyStructureInputOutputRestJson1Serializer(), + TestConfigRestJson1Serializer(), + ], + ); + }); } class TestBodyStructureInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestBodyStructureInputOutputRestJson1Serializer() - : super('TestBodyStructureInputOutput'); + : super('TestBodyStructureInputOutput'); @override Iterable get types => const [TestBodyStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestBodyStructureInputOutput deserialize( @@ -132,15 +117,20 @@ class TestBodyStructureInputOutputRestJson1Serializer } switch (key) { case 'testId': - result.testId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.testId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'testConfig': - result.testConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(TestConfig), - ) as TestConfig)); + result.testConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(TestConfig), + ) + as TestConfig), + ); } } @@ -166,11 +156,8 @@ class TestConfigRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestConfig deserialize( @@ -189,10 +176,12 @@ class TestConfigRestJson1Serializer } switch (key) { case 'timeout': - result.timeout = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.timeout = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart index c2f4a14fe4..ded9816e12 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_no_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.test_no_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,106 +12,85 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpWithNoModeledBody (request)', - () async { - await _i2.httpRequestTest( - operation: TestNoPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithNoModeledBody', - documentation: 'Serializes a GET request with no modeled body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [ - 'Content-Length', - 'Content-Type', - ], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/no_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonHttpWithHeaderMemberNoModeledBody (request)', - () async { - await _i2.httpRequestTest( - operation: TestNoPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithHeaderMemberNoModeledBody', - documentation: - 'Serializes a GET request with header member but no modeled body', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'testId': 't-12345'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amz-Test-Id': 't-12345'}, - forbidHeaders: [ - 'Content-Length', - 'Content-Type', - ], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/no_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], - ); - }, - ); + _i1.test('RestJsonHttpWithNoModeledBody (request)', () async { + await _i2.httpRequestTest( + operation: TestNoPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithNoModeledBody', + documentation: 'Serializes a GET request with no modeled body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: ['Content-Length', 'Content-Type'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/no_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonHttpWithHeaderMemberNoModeledBody (request)', () async { + await _i2.httpRequestTest( + operation: TestNoPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithHeaderMemberNoModeledBody', + documentation: + 'Serializes a GET request with header member but no modeled body', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'testId': 't-12345'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amz-Test-Id': 't-12345'}, + forbidHeaders: ['Content-Length', 'Content-Type'], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/no_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestNoPayloadInputOutputRestJson1Serializer()], + ); + }); } class TestNoPayloadInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestNoPayloadInputOutputRestJson1Serializer() - : super('TestNoPayloadInputOutput'); + : super('TestNoPayloadInputOutput'); @override Iterable get types => const [TestNoPayloadInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestNoPayloadInputOutput deserialize( @@ -130,10 +109,12 @@ class TestNoPayloadInputOutputRestJson1Serializer } switch (key) { case 'testId': - result.testId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.testId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart index 8c35b5cc82..814881a082 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_blob_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.test_payload_blob_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,106 +14,84 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpWithEmptyBlobPayload (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadBlobOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithEmptyBlobPayload', - documentation: 'Serializes a payload targeting an empty blob', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/octet-stream', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/octet-stream'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/blob_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadBlobInputOutputRestJson1Serializer() - ], - ); - }, - ); - _i1.test( - 'RestJsonTestPayloadBlob (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadBlobOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTestPayloadBlob', - documentation: 'Serializes a payload targeting a blob', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '1234', - bodyMediaType: 'image/jpg', - params: { - 'contentType': 'image/jpg', - 'data': '1234', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'image/jpg'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/blob_payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadBlobInputOutputRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonHttpWithEmptyBlobPayload (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadBlobOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithEmptyBlobPayload', + documentation: 'Serializes a payload targeting an empty blob', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: 'application/octet-stream', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/octet-stream'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/blob_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestPayloadBlobInputOutputRestJson1Serializer()], + ); + }); + _i1.test('RestJsonTestPayloadBlob (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadBlobOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTestPayloadBlob', + documentation: 'Serializes a payload targeting a blob', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '1234', + bodyMediaType: 'image/jpg', + params: {'contentType': 'image/jpg', 'data': '1234'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'image/jpg'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/blob_payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TestPayloadBlobInputOutputRestJson1Serializer()], + ); + }); } class TestPayloadBlobInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestPayloadBlobInputOutputRestJson1Serializer() - : super('TestPayloadBlobInputOutput'); + : super('TestPayloadBlobInputOutput'); @override Iterable get types => const [TestPayloadBlobInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestPayloadBlobInputOutput deserialize( @@ -132,15 +110,19 @@ class TestPayloadBlobInputOutputRestJson1Serializer } switch (key) { case 'contentType': - result.contentType = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.contentType = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart index d59436c6df..c040c92bd6 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/test_payload_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.test_payload_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,152 +13,131 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonHttpWithEmptyStructurePayload (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithEmptyStructurePayload', - documentation: 'Serializes a payload targeting an empty structure', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadStructureInputOutputRestJson1Serializer(), - PayloadConfigRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonTestPayloadStructure (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTestPayloadStructure', - documentation: 'Serializes a payload targeting a structure', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{"data": 25\n}', - bodyMediaType: 'application/json', - params: { - 'payloadConfig': {'data': 25} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/json'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadStructureInputOutputRestJson1Serializer(), - PayloadConfigRestJson1Serializer(), - ], - ); - }, - ); - _i1.test( - 'RestJsonHttpWithHeadersButNoPayload (request)', - () async { - await _i2.httpRequestTest( - operation: TestPayloadStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonHttpWithHeadersButNoPayload', - documentation: - 'Serializes an request with header members but no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '{}', - bodyMediaType: 'application/json', - params: {'testId': 't-12345'}, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/json', - 'X-Amz-Test-Id': 't-12345', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/payload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - TestPayloadStructureInputOutputRestJson1Serializer(), - PayloadConfigRestJson1Serializer(), - ], - ); - }, - ); + _i1.test('RestJsonHttpWithEmptyStructurePayload (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithEmptyStructurePayload', + documentation: 'Serializes a payload targeting an empty structure', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestPayloadStructureInputOutputRestJson1Serializer(), + PayloadConfigRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonTestPayloadStructure (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTestPayloadStructure', + documentation: 'Serializes a payload targeting a structure', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{"data": 25\n}', + bodyMediaType: 'application/json', + params: { + 'payloadConfig': {'data': 25}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/json'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestPayloadStructureInputOutputRestJson1Serializer(), + PayloadConfigRestJson1Serializer(), + ], + ); + }); + _i1.test('RestJsonHttpWithHeadersButNoPayload (request)', () async { + await _i2.httpRequestTest( + operation: TestPayloadStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonHttpWithHeadersButNoPayload', + documentation: + 'Serializes an request with header members but no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '{}', + bodyMediaType: 'application/json', + params: {'testId': 't-12345'}, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'Content-Type': 'application/json', + 'X-Amz-Test-Id': 't-12345', + }, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/payload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + TestPayloadStructureInputOutputRestJson1Serializer(), + PayloadConfigRestJson1Serializer(), + ], + ); + }); } class TestPayloadStructureInputOutputRestJson1Serializer extends _i3.StructuredSmithySerializer { const TestPayloadStructureInputOutputRestJson1Serializer() - : super('TestPayloadStructureInputOutput'); + : super('TestPayloadStructureInputOutput'); @override Iterable get types => const [TestPayloadStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TestPayloadStructureInputOutput deserialize( @@ -177,15 +156,20 @@ class TestPayloadStructureInputOutputRestJson1Serializer } switch (key) { case 'testId': - result.testId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.testId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'payloadConfig': - result.payloadConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadConfig), - ) as PayloadConfig)); + result.payloadConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadConfig), + ) + as PayloadConfig), + ); } } @@ -211,11 +195,8 @@ class PayloadConfigRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override PayloadConfig deserialize( @@ -234,10 +215,12 @@ class PayloadConfigRestJson1Serializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart index ee22df1a86..c2f5810f7c 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/timestamp_format_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.timestamp_format_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,127 +12,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonTimestampFormatHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonTimestampFormatHeaders', - documentation: 'Tests how timestamp request headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/TimestampFormatHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TimestampFormatHeadersIoRestJson1Serializer()], - ); - }, - ); - _i1.test( - 'RestJsonTimestampFormatHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonTimestampFormatHeaders', - documentation: 'Tests how timestamp response headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - TimestampFormatHeadersIoRestJson1Serializer() - ], - ); - }, - ); + _i1.test('RestJsonTimestampFormatHeaders (request)', () async { + await _i2.httpRequestTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonTimestampFormatHeaders', + documentation: 'Tests how timestamp request headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/TimestampFormatHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TimestampFormatHeadersIoRestJson1Serializer()], + ); + }); + _i1.test('RestJsonTimestampFormatHeaders (response)', () async { + await _i2.httpResponseTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonTimestampFormatHeaders', + documentation: 'Tests how timestamp response headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [TimestampFormatHeadersIoRestJson1Serializer()], + ); + }); } class TimestampFormatHeadersIoRestJson1Serializer extends _i3.StructuredSmithySerializer { const TimestampFormatHeadersIoRestJson1Serializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [TimestampFormatHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override TimestampFormatHeadersIo deserialize( @@ -151,47 +134,26 @@ class TimestampFormatHeadersIoRestJson1Serializer } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart index e22e5ca708..1f893f005b 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_protocol/unit_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_protocol.test.unit_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,76 +10,64 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonUnitInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: UnitInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonUnitInputAndOutput', - documentation: - 'A unit type input serializes no payload. When clients do not\nneed to serialize any data in the payload, they should omit\na payload altogether.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/UnitInputAndOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'RestJsonUnitInputAndOutputNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: UnitInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestJsonUnitInputAndOutputNoOutput', - documentation: - 'When an operation defines Unit output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('RestJsonUnitInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: UnitInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonUnitInputAndOutput', + documentation: + 'A unit type input serializes no payload. When clients do not\nneed to serialize any data in the payload, they should omit\na payload altogether.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/UnitInputAndOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('RestJsonUnitInputAndOutputNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: UnitInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestJsonUnitInputAndOutputNoOutput', + documentation: + 'When an operation defines Unit output, the service will respond\nwith an empty payload, and may optionally include the content-type\nheader.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart b/packages/smithy/goldens/lib2/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart index a4be7f2119..286f0e79a3 100644 --- a/packages/smithy/goldens/lib2/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart +++ b/packages/smithy/goldens/lib2/restJson1/test/rest_json_validation_protocol/recursive_structures_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_json1_v2.rest_json_validation_protocol.test.recursive_structures_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,68 +16,59 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestJsonRecursiveStructuresValidate (request)', - () async { - await _i2.httpRequestTest( - operation: RecursiveStructuresOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestJsonRecursiveStructuresValidate', - documentation: 'Validation should work with recursive structures.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ), - authScheme: null, - body: - '{ "union" : {\n "union" : {\n "union" : { "string" : "abc" }\n }\n }\n}', - bodyMediaType: 'application/json', - params: { + _i1.test('RestJsonRecursiveStructuresValidate (request)', () async { + await _i2.httpRequestTest( + operation: RecursiveStructuresOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestJsonRecursiveStructuresValidate', + documentation: 'Validation should work with recursive structures.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + authScheme: null, + body: + '{ "union" : {\n "union" : {\n "union" : { "string" : "abc" }\n }\n }\n}', + bodyMediaType: 'application/json', + params: { + 'union': { 'union': { - 'union': { - 'union': {'string': 'abc'} - } - } + 'union': {'string': 'abc'}, + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'content-type': 'application/json'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/RecursiveStructures', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [RecursiveStructuresInputRestJson1Serializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'content-type': 'application/json'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/RecursiveStructures', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [RecursiveStructuresInputRestJson1Serializer()], + ); + }); } class RecursiveStructuresInputRestJson1Serializer extends _i3.StructuredSmithySerializer { const RecursiveStructuresInputRestJson1Serializer() - : super('RecursiveStructuresInput'); + : super('RecursiveStructuresInput'); @override Iterable get types => const [RecursiveStructuresInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override RecursiveStructuresInput deserialize( @@ -96,10 +87,12 @@ class RecursiveStructuresInputRestJson1Serializer } switch (key) { case 'union': - result.union = (serializers.deserialize( - value, - specifiedType: const FullType(RecursiveUnionOne), - ) as RecursiveUnionOne); + result.union = + (serializers.deserialize( + value, + specifiedType: const FullType(RecursiveUnionOne), + ) + as RecursiveUnionOne); } } @@ -125,11 +118,8 @@ class ValidationExceptionRestJson1Serializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationException deserialize( @@ -148,18 +138,22 @@ class ValidationExceptionRestJson1Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fieldList': - result.fieldList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(ValidationExceptionField)], - ), - ) as _i4.BuiltList)); + result.fieldList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(ValidationExceptionField), + ]), + ) + as _i4.BuiltList), + ); } } @@ -179,18 +173,15 @@ class ValidationExceptionRestJson1Serializer class ValidationExceptionFieldRestJson1Serializer extends _i3.StructuredSmithySerializer { const ValidationExceptionFieldRestJson1Serializer() - : super('ValidationExceptionField'); + : super('ValidationExceptionField'); @override Iterable get types => const [ValidationExceptionField]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restJson1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restJson1'), + ]; @override ValidationExceptionField deserialize( @@ -209,15 +200,19 @@ class ValidationExceptionFieldRestJson1Serializer } switch (key) { case 'path': - result.path = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.path = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/rest_xml_protocol.dart b/packages/smithy/goldens/lib2/restXml/lib/rest_xml_protocol.dart index c88f5d75be..a199eaef56 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/rest_xml_protocol.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/rest_xml_protocol.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST XML service that sends XML requests and responses. library rest_xml_v2.rest_xml_protocol; diff --git a/packages/smithy/goldens/lib2/restXml/lib/s3.dart b/packages/smithy/goldens/lib2/restXml/lib/s3.dart index e79a1f696f..c65d3f876f 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/s3.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/s3.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// # Amazon Simple Storage Service library rest_xml_v2.s3; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart index f4287828b6..7c6171cf66 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Xml Protocol'; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/serializers.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/serializers.dart index 1e7390929b..a7730d48ed 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/serializers.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -166,116 +166,48 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(String)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(String)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(int)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(int)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(double)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(bool)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DateTime)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(FooEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(IntegerEnum)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], - ): _i2.MapBuilder>.new, - const FullType( - _i2.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ): _i2.ListMultimapBuilder.new, - const FullType( - _i2.BuiltList, - [ - FullType( - _i2.BuiltList, - [FullType(String)], - ) - ], - ): _i2.ListBuilder<_i2.BuiltList>.new, - const FullType( - _i2.BuiltList, - [FullType(StructureListMember)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(FooEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltSet, - [FullType(IntegerEnum)], - ): _i2.SetBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(String)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(String)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(int)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltSet, [FullType(int)]): _i2.SetBuilder.new, + const FullType(_i2.BuiltList, [FullType(double)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(bool)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DateTime)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(FooEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(IntegerEnum)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(_i2.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]): + _i2.MapBuilder>.new, + const FullType(_i2.BuiltListMultimap, [FullType(String), FullType(String)]): + _i2.ListMultimapBuilder.new, + const FullType(_i2.BuiltList, [ + FullType(_i2.BuiltList, [FullType(String)]), + ]): + _i2.ListBuilder<_i2.BuiltList>.new, + const FullType(_i2.BuiltList, [FullType(StructureListMember)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(GreetingStruct)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltSet, [FullType(FooEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltSet, [FullType(IntegerEnum)]): + _i2.SetBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(IntegerEnum)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart index 48bb305e22..bd8e9f5755 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.all_query_string_types_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -74,18 +74,20 @@ abstract class AllQueryStringTypesInput queryEnumList: queryEnumList == null ? null : _i4.BuiltList(queryEnumList), queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: queryIntegerEnumList == null - ? null - : _i4.BuiltList(queryIntegerEnumList), - queryParamsMapOfStrings: queryParamsMapOfStrings == null - ? null - : _i4.BuiltMap(queryParamsMapOfStrings), + queryIntegerEnumList: + queryIntegerEnumList == null + ? null + : _i4.BuiltList(queryIntegerEnumList), + queryParamsMapOfStrings: + queryParamsMapOfStrings == null + ? null + : _i4.BuiltMap(queryParamsMapOfStrings), ); } - factory AllQueryStringTypesInput.build( - [void Function(AllQueryStringTypesInputBuilder) updates]) = - _$AllQueryStringTypesInput; + factory AllQueryStringTypesInput.build([ + void Function(AllQueryStringTypesInputBuilder) updates, + ]) = _$AllQueryStringTypesInput; const AllQueryStringTypesInput._(); @@ -93,101 +95,122 @@ abstract class AllQueryStringTypesInput AllQueryStringTypesInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - AllQueryStringTypesInput.build((b) { - if (request.queryParameters['String'] != null) { - b.queryString = request.queryParameters['String']!; - } - if (request.queryParameters['StringList'] != null) { - b.queryStringList.addAll(_i1 - .parseHeader(request.queryParameters['StringList']!) - .map((el) => el.trim())); - } - if (request.queryParameters['StringSet'] != null) { - b.queryStringSet.addAll(_i1 - .parseHeader(request.queryParameters['StringSet']!) - .map((el) => el.trim())); - } - if (request.queryParameters['Byte'] != null) { - b.queryByte = int.parse(request.queryParameters['Byte']!); - } - if (request.queryParameters['Short'] != null) { - b.queryShort = int.parse(request.queryParameters['Short']!); - } - if (request.queryParameters['Integer'] != null) { - b.queryInteger = int.parse(request.queryParameters['Integer']!); - } - if (request.queryParameters['IntegerList'] != null) { - b.queryIntegerList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['IntegerSet'] != null) { - b.queryIntegerSet.addAll(_i1 - .parseHeader(request.queryParameters['IntegerSet']!) - .map((el) => int.parse(el.trim()))); - } - if (request.queryParameters['Long'] != null) { - b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); - } - if (request.queryParameters['Float'] != null) { - b.queryFloat = double.parse(request.queryParameters['Float']!); - } - if (request.queryParameters['Double'] != null) { - b.queryDouble = double.parse(request.queryParameters['Double']!); - } - if (request.queryParameters['DoubleList'] != null) { - b.queryDoubleList.addAll(_i1 - .parseHeader(request.queryParameters['DoubleList']!) - .map((el) => double.parse(el.trim()))); - } - if (request.queryParameters['Boolean'] != null) { - b.queryBoolean = request.queryParameters['Boolean']! == 'true'; - } - if (request.queryParameters['BooleanList'] != null) { - b.queryBooleanList.addAll(_i1 - .parseHeader(request.queryParameters['BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.queryParameters['Timestamp'] != null) { - b.queryTimestamp = _i1.Timestamp.parse( + }) => AllQueryStringTypesInput.build((b) { + if (request.queryParameters['String'] != null) { + b.queryString = request.queryParameters['String']!; + } + if (request.queryParameters['StringList'] != null) { + b.queryStringList.addAll( + _i1 + .parseHeader(request.queryParameters['StringList']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['StringSet'] != null) { + b.queryStringSet.addAll( + _i1 + .parseHeader(request.queryParameters['StringSet']!) + .map((el) => el.trim()), + ); + } + if (request.queryParameters['Byte'] != null) { + b.queryByte = int.parse(request.queryParameters['Byte']!); + } + if (request.queryParameters['Short'] != null) { + b.queryShort = int.parse(request.queryParameters['Short']!); + } + if (request.queryParameters['Integer'] != null) { + b.queryInteger = int.parse(request.queryParameters['Integer']!); + } + if (request.queryParameters['IntegerList'] != null) { + b.queryIntegerList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['IntegerSet'] != null) { + b.queryIntegerSet.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerSet']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.queryParameters['Long'] != null) { + b.queryLong = _i3.Int64.parseInt(request.queryParameters['Long']!); + } + if (request.queryParameters['Float'] != null) { + b.queryFloat = double.parse(request.queryParameters['Float']!); + } + if (request.queryParameters['Double'] != null) { + b.queryDouble = double.parse(request.queryParameters['Double']!); + } + if (request.queryParameters['DoubleList'] != null) { + b.queryDoubleList.addAll( + _i1 + .parseHeader(request.queryParameters['DoubleList']!) + .map((el) => double.parse(el.trim())), + ); + } + if (request.queryParameters['Boolean'] != null) { + b.queryBoolean = request.queryParameters['Boolean']! == 'true'; + } + if (request.queryParameters['BooleanList'] != null) { + b.queryBooleanList.addAll( + _i1 + .parseHeader(request.queryParameters['BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.queryParameters['Timestamp'] != null) { + b.queryTimestamp = + _i1.Timestamp.parse( request.queryParameters['Timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.queryParameters['TimestampList'] != null) { - b.queryTimestampList.addAll(_i1 - .parseHeader( - request.queryParameters['TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + } + if (request.queryParameters['TimestampList'] != null) { + b.queryTimestampList.addAll( + _i1 + .parseHeader( + request.queryParameters['TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.queryParameters['Enum'] != null) { - b.queryEnum = - FooEnum.values.byValue(request.queryParameters['Enum']!); - } - if (request.queryParameters['EnumList'] != null) { - b.queryEnumList.addAll(_i1 - .parseHeader(request.queryParameters['EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - if (request.queryParameters['IntegerEnum'] != null) { - b.queryIntegerEnum = IntegerEnum.values - .byValue(int.parse(request.queryParameters['IntegerEnum']!)); - } - if (request.queryParameters['IntegerEnumList'] != null) { - b.queryIntegerEnumList.addAll(_i1 - .parseHeader(request.queryParameters['IntegerEnumList']!) - .map((el) => IntegerEnum.values.byValue(int.parse(el.trim())))); - } - }); + ).asDateTime, + ), + ); + } + if (request.queryParameters['Enum'] != null) { + b.queryEnum = FooEnum.values.byValue(request.queryParameters['Enum']!); + } + if (request.queryParameters['EnumList'] != null) { + b.queryEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + if (request.queryParameters['IntegerEnum'] != null) { + b.queryIntegerEnum = IntegerEnum.values.byValue( + int.parse(request.queryParameters['IntegerEnum']!), + ); + } + if (request.queryParameters['IntegerEnumList'] != null) { + b.queryIntegerEnumList.addAll( + _i1 + .parseHeader(request.queryParameters['IntegerEnumList']!) + .map((el) => IntegerEnum.values.byValue(int.parse(el.trim()))), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [AllQueryStringTypesInputRestXmlSerializer()]; + serializers = [AllQueryStringTypesInputRestXmlSerializer()]; String? get queryString; _i4.BuiltList? get queryStringList; @@ -216,131 +239,70 @@ abstract class AllQueryStringTypesInput @override List get props => [ - queryString, - queryStringList, - queryStringSet, - queryByte, - queryShort, - queryInteger, - queryIntegerList, - queryIntegerSet, - queryLong, - queryFloat, - queryDouble, - queryDoubleList, - queryBoolean, - queryBooleanList, - queryTimestamp, - queryTimestampList, - queryEnum, - queryEnumList, - queryIntegerEnum, - queryIntegerEnumList, - queryParamsMapOfStrings, - ]; + queryString, + queryStringList, + queryStringSet, + queryByte, + queryShort, + queryInteger, + queryIntegerList, + queryIntegerSet, + queryLong, + queryFloat, + queryDouble, + queryDoubleList, + queryBoolean, + queryBooleanList, + queryTimestamp, + queryTimestampList, + queryEnum, + queryEnumList, + queryIntegerEnum, + queryIntegerEnumList, + queryParamsMapOfStrings, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('AllQueryStringTypesInput') - ..add( - 'queryString', - queryString, - ) - ..add( - 'queryStringList', - queryStringList, - ) - ..add( - 'queryStringSet', - queryStringSet, - ) - ..add( - 'queryByte', - queryByte, - ) - ..add( - 'queryShort', - queryShort, - ) - ..add( - 'queryInteger', - queryInteger, - ) - ..add( - 'queryIntegerList', - queryIntegerList, - ) - ..add( - 'queryIntegerSet', - queryIntegerSet, - ) - ..add( - 'queryLong', - queryLong, - ) - ..add( - 'queryFloat', - queryFloat, - ) - ..add( - 'queryDouble', - queryDouble, - ) - ..add( - 'queryDoubleList', - queryDoubleList, - ) - ..add( - 'queryBoolean', - queryBoolean, - ) - ..add( - 'queryBooleanList', - queryBooleanList, - ) - ..add( - 'queryTimestamp', - queryTimestamp, - ) - ..add( - 'queryTimestampList', - queryTimestampList, - ) - ..add( - 'queryEnum', - queryEnum, - ) - ..add( - 'queryEnumList', - queryEnumList, - ) - ..add( - 'queryIntegerEnum', - queryIntegerEnum, - ) - ..add( - 'queryIntegerEnumList', - queryIntegerEnumList, - ) - ..add( - 'queryParamsMapOfStrings', - queryParamsMapOfStrings, - ); + final helper = + newBuiltValueToStringHelper('AllQueryStringTypesInput') + ..add('queryString', queryString) + ..add('queryStringList', queryStringList) + ..add('queryStringSet', queryStringSet) + ..add('queryByte', queryByte) + ..add('queryShort', queryShort) + ..add('queryInteger', queryInteger) + ..add('queryIntegerList', queryIntegerList) + ..add('queryIntegerSet', queryIntegerSet) + ..add('queryLong', queryLong) + ..add('queryFloat', queryFloat) + ..add('queryDouble', queryDouble) + ..add('queryDoubleList', queryDoubleList) + ..add('queryBoolean', queryBoolean) + ..add('queryBooleanList', queryBooleanList) + ..add('queryTimestamp', queryTimestamp) + ..add('queryTimestampList', queryTimestampList) + ..add('queryEnum', queryEnum) + ..add('queryEnumList', queryEnumList) + ..add('queryIntegerEnum', queryIntegerEnum) + ..add('queryIntegerEnumList', queryIntegerEnumList) + ..add('queryParamsMapOfStrings', queryParamsMapOfStrings); return helper.toString(); } } @_i5.internal abstract class AllQueryStringTypesInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + >, _i1.EmptyPayload { - factory AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder) updates]) = - _$AllQueryStringTypesInputPayload; + factory AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ]) = _$AllQueryStringTypesInputPayload; const AllQueryStringTypesInputPayload._(); @@ -349,8 +311,9 @@ abstract class AllQueryStringTypesInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('AllQueryStringTypesInputPayload'); + final helper = newBuiltValueToStringHelper( + 'AllQueryStringTypesInputPayload', + ); return helper.toString(); } } @@ -358,23 +321,20 @@ abstract class AllQueryStringTypesInputPayload class AllQueryStringTypesInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const AllQueryStringTypesInputRestXmlSerializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [ - AllQueryStringTypesInput, - _$AllQueryStringTypesInput, - AllQueryStringTypesInputPayload, - _$AllQueryStringTypesInputPayload, - ]; + AllQueryStringTypesInput, + _$AllQueryStringTypesInput, + AllQueryStringTypesInputPayload, + _$AllQueryStringTypesInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AllQueryStringTypesInputPayload deserialize( @@ -392,7 +352,7 @@ class AllQueryStringTypesInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('AllQueryStringTypesInput') + const _i1.XmlElementName('AllQueryStringTypesInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart index 02fc97c39a..96a318a993 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/all_query_string_types_input.g.dart @@ -50,38 +50,38 @@ class _$AllQueryStringTypesInput extends AllQueryStringTypesInput { @override final _i4.BuiltMap? queryParamsMapOfStrings; - factory _$AllQueryStringTypesInput( - [void Function(AllQueryStringTypesInputBuilder)? updates]) => - (new AllQueryStringTypesInputBuilder()..update(updates))._build(); - - _$AllQueryStringTypesInput._( - {this.queryString, - this.queryStringList, - this.queryStringSet, - this.queryByte, - this.queryShort, - this.queryInteger, - this.queryIntegerList, - this.queryIntegerSet, - this.queryLong, - this.queryFloat, - this.queryDouble, - this.queryDoubleList, - this.queryBoolean, - this.queryBooleanList, - this.queryTimestamp, - this.queryTimestampList, - this.queryEnum, - this.queryEnumList, - this.queryIntegerEnum, - this.queryIntegerEnumList, - this.queryParamsMapOfStrings}) - : super._(); + factory _$AllQueryStringTypesInput([ + void Function(AllQueryStringTypesInputBuilder)? updates, + ]) => (new AllQueryStringTypesInputBuilder()..update(updates))._build(); + + _$AllQueryStringTypesInput._({ + this.queryString, + this.queryStringList, + this.queryStringSet, + this.queryByte, + this.queryShort, + this.queryInteger, + this.queryIntegerList, + this.queryIntegerSet, + this.queryLong, + this.queryFloat, + this.queryDouble, + this.queryDoubleList, + this.queryBoolean, + this.queryBooleanList, + this.queryTimestamp, + this.queryTimestampList, + this.queryEnum, + this.queryEnumList, + this.queryIntegerEnum, + this.queryIntegerEnumList, + this.queryParamsMapOfStrings, + }) : super._(); @override AllQueryStringTypesInput rebuild( - void Function(AllQueryStringTypesInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputBuilder toBuilder() => @@ -246,15 +246,15 @@ class AllQueryStringTypesInputBuilder _i4.ListBuilder get queryIntegerEnumList => _$this._queryIntegerEnumList ??= new _i4.ListBuilder(); set queryIntegerEnumList( - _i4.ListBuilder? queryIntegerEnumList) => - _$this._queryIntegerEnumList = queryIntegerEnumList; + _i4.ListBuilder? queryIntegerEnumList, + ) => _$this._queryIntegerEnumList = queryIntegerEnumList; _i4.MapBuilder? _queryParamsMapOfStrings; _i4.MapBuilder get queryParamsMapOfStrings => _$this._queryParamsMapOfStrings ??= new _i4.MapBuilder(); set queryParamsMapOfStrings( - _i4.MapBuilder? queryParamsMapOfStrings) => - _$this._queryParamsMapOfStrings = queryParamsMapOfStrings; + _i4.MapBuilder? queryParamsMapOfStrings, + ) => _$this._queryParamsMapOfStrings = queryParamsMapOfStrings; AllQueryStringTypesInputBuilder(); @@ -304,29 +304,31 @@ class AllQueryStringTypesInputBuilder _$AllQueryStringTypesInput _build() { _$AllQueryStringTypesInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AllQueryStringTypesInput._( - queryString: queryString, - queryStringList: _queryStringList?.build(), - queryStringSet: _queryStringSet?.build(), - queryByte: queryByte, - queryShort: queryShort, - queryInteger: queryInteger, - queryIntegerList: _queryIntegerList?.build(), - queryIntegerSet: _queryIntegerSet?.build(), - queryLong: queryLong, - queryFloat: queryFloat, - queryDouble: queryDouble, - queryDoubleList: _queryDoubleList?.build(), - queryBoolean: queryBoolean, - queryBooleanList: _queryBooleanList?.build(), - queryTimestamp: queryTimestamp, - queryTimestampList: _queryTimestampList?.build(), - queryEnum: queryEnum, - queryEnumList: _queryEnumList?.build(), - queryIntegerEnum: queryIntegerEnum, - queryIntegerEnumList: _queryIntegerEnumList?.build(), - queryParamsMapOfStrings: _queryParamsMapOfStrings?.build()); + queryString: queryString, + queryStringList: _queryStringList?.build(), + queryStringSet: _queryStringSet?.build(), + queryByte: queryByte, + queryShort: queryShort, + queryInteger: queryInteger, + queryIntegerList: _queryIntegerList?.build(), + queryIntegerSet: _queryIntegerSet?.build(), + queryLong: queryLong, + queryFloat: queryFloat, + queryDouble: queryDouble, + queryDoubleList: _queryDoubleList?.build(), + queryBoolean: queryBoolean, + queryBooleanList: _queryBooleanList?.build(), + queryTimestamp: queryTimestamp, + queryTimestampList: _queryTimestampList?.build(), + queryEnum: queryEnum, + queryEnumList: _queryEnumList?.build(), + queryIntegerEnum: queryIntegerEnum, + queryIntegerEnumList: _queryIntegerEnumList?.build(), + queryParamsMapOfStrings: _queryParamsMapOfStrings?.build(), + ); } catch (_) { late String _$failedField; try { @@ -358,7 +360,10 @@ class AllQueryStringTypesInputBuilder _queryParamsMapOfStrings?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AllQueryStringTypesInput', _$failedField, e.toString()); + r'AllQueryStringTypesInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -369,16 +374,17 @@ class AllQueryStringTypesInputBuilder class _$AllQueryStringTypesInputPayload extends AllQueryStringTypesInputPayload { - factory _$AllQueryStringTypesInputPayload( - [void Function(AllQueryStringTypesInputPayloadBuilder)? updates]) => + factory _$AllQueryStringTypesInputPayload([ + void Function(AllQueryStringTypesInputPayloadBuilder)? updates, + ]) => (new AllQueryStringTypesInputPayloadBuilder()..update(updates))._build(); _$AllQueryStringTypesInputPayload._() : super._(); @override AllQueryStringTypesInputPayload rebuild( - void Function(AllQueryStringTypesInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AllQueryStringTypesInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AllQueryStringTypesInputPayloadBuilder toBuilder() => @@ -398,8 +404,10 @@ class _$AllQueryStringTypesInputPayload class AllQueryStringTypesInputPayloadBuilder implements - Builder { + Builder< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInputPayloadBuilder + > { _$AllQueryStringTypesInputPayload? _$v; AllQueryStringTypesInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.dart index bbb3a523ea..cc213bd704 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestXmlSerializer() + AwsConfigRestXmlSerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestXmlSerializer const AwsConfigRestXmlSerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestXmlSerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -120,18 +105,22 @@ class AwsConfigRestXmlSerializer if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart index c71b0a5b82..51bc19fe06 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.body_with_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class BodyWithXmlNameInputOutput return _$BodyWithXmlNameInputOutput._(nested: nested); } - factory BodyWithXmlNameInputOutput.build( - [void Function(BodyWithXmlNameInputOutputBuilder) updates]) = - _$BodyWithXmlNameInputOutput; + factory BodyWithXmlNameInputOutput.build([ + void Function(BodyWithXmlNameInputOutputBuilder) updates, + ]) = _$BodyWithXmlNameInputOutput; const BodyWithXmlNameInputOutput._(); @@ -31,18 +31,16 @@ abstract class BodyWithXmlNameInputOutput BodyWithXmlNameInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [BodyWithXmlNameInputOutput] from a [payload] and [response]. factory BodyWithXmlNameInputOutput.fromResponse( BodyWithXmlNameInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [BodyWithXmlNameInputOutputRestXmlSerializer()]; + serializers = [BodyWithXmlNameInputOutputRestXmlSerializer()]; PayloadWithXmlName? get nested; @override @@ -54,10 +52,7 @@ abstract class BodyWithXmlNameInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('BodyWithXmlNameInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -65,21 +60,18 @@ abstract class BodyWithXmlNameInputOutput class BodyWithXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const BodyWithXmlNameInputOutputRestXmlSerializer() - : super('BodyWithXmlNameInputOutput'); + : super('BodyWithXmlNameInputOutput'); @override Iterable get types => const [ - BodyWithXmlNameInputOutput, - _$BodyWithXmlNameInputOutput, - ]; + BodyWithXmlNameInputOutput, + _$BodyWithXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override BodyWithXmlNameInputOutput deserialize( @@ -98,10 +90,13 @@ class BodyWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -119,10 +114,12 @@ class BodyWithXmlNameInputOutputRestXmlSerializer if (nested != null) { result$ ..add(const _i1.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(PayloadWithXmlName), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(PayloadWithXmlName), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart index d63ce04422..839608c4a3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/body_with_xml_name_input_output.g.dart @@ -10,16 +10,16 @@ class _$BodyWithXmlNameInputOutput extends BodyWithXmlNameInputOutput { @override final PayloadWithXmlName? nested; - factory _$BodyWithXmlNameInputOutput( - [void Function(BodyWithXmlNameInputOutputBuilder)? updates]) => - (new BodyWithXmlNameInputOutputBuilder()..update(updates))._build(); + factory _$BodyWithXmlNameInputOutput([ + void Function(BodyWithXmlNameInputOutputBuilder)? updates, + ]) => (new BodyWithXmlNameInputOutputBuilder()..update(updates))._build(); _$BodyWithXmlNameInputOutput._({this.nested}) : super._(); @override BodyWithXmlNameInputOutput rebuild( - void Function(BodyWithXmlNameInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(BodyWithXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override BodyWithXmlNameInputOutputBuilder toBuilder() => @@ -87,7 +87,10 @@ class BodyWithXmlNameInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'BodyWithXmlNameInputOutput', _$failedField, e.toString()); + r'BodyWithXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.dart index d82053addc..35156b4b57 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestXmlSerializer() + ClientConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestXmlSerializer const ClientConfigRestXmlSerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -193,63 +183,71 @@ class ClientConfigRestXmlSerializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.dart index 220cd575b0..180b8fb364 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.complex_error; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -25,11 +25,7 @@ abstract class ComplexError String? topLevel, ComplexNestedErrorData? nested, }) { - return _$ComplexError._( - header: header, - topLevel: topLevel, - nested: nested, - ); + return _$ComplexError._(header: header, topLevel: topLevel, nested: nested); } /// This error is thrown when a request is invalid. @@ -42,20 +38,19 @@ abstract class ComplexError factory ComplexError.fromResponse( ComplexErrorPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ComplexError.build((b) { - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.topLevel = payload.topLevel; - if (response.headers['X-Header'] != null) { - b.header = response.headers['X-Header']!; - } - b.headers = response.headers; - }); + ) => ComplexError.build((b) { + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.topLevel = payload.topLevel; + if (response.headers['X-Header'] != null) { + b.header = response.headers['X-Header']!; + } + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - ComplexErrorRestXmlSerializer() + ComplexErrorRestXmlSerializer(), ]; String? get header; @@ -63,17 +58,17 @@ abstract class ComplexError ComplexNestedErrorData? get nested; @override ComplexErrorPayload getPayload() => ComplexErrorPayload((b) { - if (nested != null) { - b.nested.replace(nested!); - } - b.topLevel = topLevel; - }); + if (nested != null) { + b.nested.replace(nested!); + } + b.topLevel = topLevel; + }); @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'ComplexError', - ); + namespace: 'aws.protocoltests.restxml', + shape: 'ComplexError', + ); @override String? get message => null; @@ -92,27 +87,15 @@ abstract class ComplexError Exception? get underlyingException => null; @override - List get props => [ - header, - topLevel, - nested, - ]; + List get props => [header, topLevel, nested]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexError') - ..add( - 'header', - header, - ) - ..add( - 'topLevel', - topLevel, - ) - ..add( - 'nested', - nested, - ); + final helper = + newBuiltValueToStringHelper('ComplexError') + ..add('header', header) + ..add('topLevel', topLevel) + ..add('nested', nested); return helper.toString(); } } @@ -121,31 +104,23 @@ abstract class ComplexError abstract class ComplexErrorPayload with _i1.AWSEquatable implements Built { - factory ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder) updates]) = - _$ComplexErrorPayload; + factory ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder) updates, + ]) = _$ComplexErrorPayload; const ComplexErrorPayload._(); ComplexNestedErrorData? get nested; String? get topLevel; @override - List get props => [ - nested, - topLevel, - ]; + List get props => [nested, topLevel]; @override String toString() { - final helper = newBuiltValueToStringHelper('ComplexErrorPayload') - ..add( - 'nested', - nested, - ) - ..add( - 'topLevel', - topLevel, - ); + final helper = + newBuiltValueToStringHelper('ComplexErrorPayload') + ..add('nested', nested) + ..add('topLevel', topLevel); return helper.toString(); } } @@ -156,19 +131,16 @@ class ComplexErrorRestXmlSerializer @override Iterable get types => const [ - ComplexError, - _$ComplexError, - ComplexErrorPayload, - _$ComplexErrorPayload, - ]; + ComplexError, + _$ComplexError, + ComplexErrorPayload, + _$ComplexErrorPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexErrorPayload deserialize( @@ -195,15 +167,20 @@ class ComplexErrorRestXmlSerializer } switch (key) { case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -221,18 +198,22 @@ class ComplexErrorRestXmlSerializer if (nested != null) { result$ ..add(const _i2.XmlElementName('Nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(ComplexNestedErrorData), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(ComplexNestedErrorData), + ), + ); } if (topLevel != null) { result$ ..add(const _i2.XmlElementName('TopLevel')) - ..add(serializers.serialize( - topLevel, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + topLevel, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart index 46d3a12ed9..835defabfe 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_error.g.dart @@ -20,7 +20,7 @@ class _$ComplexError extends ComplexError { (new ComplexErrorBuilder()..update(updates))._build(); _$ComplexError._({this.header, this.topLevel, this.nested, this.headers}) - : super._(); + : super._(); @override ComplexError rebuild(void Function(ComplexErrorBuilder) updates) => @@ -101,12 +101,14 @@ class ComplexErrorBuilder _$ComplexError _build() { _$ComplexError _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexError._( - header: header, - topLevel: topLevel, - nested: _nested?.build(), - headers: headers); + header: header, + topLevel: topLevel, + nested: _nested?.build(), + headers: headers, + ); } catch (_) { late String _$failedField; try { @@ -114,7 +116,10 @@ class ComplexErrorBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexError', _$failedField, e.toString()); + r'ComplexError', + _$failedField, + e.toString(), + ); } rethrow; } @@ -129,16 +134,16 @@ class _$ComplexErrorPayload extends ComplexErrorPayload { @override final String? topLevel; - factory _$ComplexErrorPayload( - [void Function(ComplexErrorPayloadBuilder)? updates]) => - (new ComplexErrorPayloadBuilder()..update(updates))._build(); + factory _$ComplexErrorPayload([ + void Function(ComplexErrorPayloadBuilder)? updates, + ]) => (new ComplexErrorPayloadBuilder()..update(updates))._build(); _$ComplexErrorPayload._({this.nested, this.topLevel}) : super._(); @override ComplexErrorPayload rebuild( - void Function(ComplexErrorPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexErrorPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexErrorPayloadBuilder toBuilder() => @@ -204,9 +209,12 @@ class ComplexErrorPayloadBuilder _$ComplexErrorPayload _build() { _$ComplexErrorPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ComplexErrorPayload._( - nested: _nested?.build(), topLevel: topLevel); + nested: _nested?.build(), + topLevel: topLevel, + ); } catch (_) { late String _$failedField; try { @@ -214,7 +222,10 @@ class ComplexErrorPayloadBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ComplexErrorPayload', _$failedField, e.toString()); + r'ComplexErrorPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart index 2ca15f660e..04b6861685 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.complex_nested_error_data; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class ComplexNestedErrorData return _$ComplexNestedErrorData._(foo: foo); } - factory ComplexNestedErrorData.build( - [void Function(ComplexNestedErrorDataBuilder) updates]) = - _$ComplexNestedErrorData; + factory ComplexNestedErrorData.build([ + void Function(ComplexNestedErrorDataBuilder) updates, + ]) = _$ComplexNestedErrorData; const ComplexNestedErrorData._(); @@ -33,10 +33,7 @@ abstract class ComplexNestedErrorData @override String toString() { final helper = newBuiltValueToStringHelper('ComplexNestedErrorData') - ..add( - 'foo', - foo, - ); + ..add('foo', foo); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class ComplexNestedErrorData class ComplexNestedErrorDataRestXmlSerializer extends _i2.StructuredSmithySerializer { const ComplexNestedErrorDataRestXmlSerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ - ComplexNestedErrorData, - _$ComplexNestedErrorData, - ]; + ComplexNestedErrorData, + _$ComplexNestedErrorData, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexNestedErrorData deserialize( @@ -77,10 +71,12 @@ class ComplexNestedErrorDataRestXmlSerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -94,16 +90,15 @@ class ComplexNestedErrorDataRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('ComplexNestedErrorData') + const _i2.XmlElementName('ComplexNestedErrorData'), ]; final ComplexNestedErrorData(:foo) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('Foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart index 12ac407a33..a41cd69d46 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/complex_nested_error_data.g.dart @@ -10,16 +10,16 @@ class _$ComplexNestedErrorData extends ComplexNestedErrorData { @override final String? foo; - factory _$ComplexNestedErrorData( - [void Function(ComplexNestedErrorDataBuilder)? updates]) => - (new ComplexNestedErrorDataBuilder()..update(updates))._build(); + factory _$ComplexNestedErrorData([ + void Function(ComplexNestedErrorDataBuilder)? updates, + ]) => (new ComplexNestedErrorDataBuilder()..update(updates))._build(); _$ComplexNestedErrorData._({this.foo}) : super._(); @override ComplexNestedErrorData rebuild( - void Function(ComplexNestedErrorDataBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ComplexNestedErrorDataBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ComplexNestedErrorDataBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart index a86c2c2092..cf60a7c304 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.constant_and_variable_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class ConstantAndVariableQueryStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { - factory ConstantAndVariableQueryStringInput({ - String? baz, - String? maybeSet, - }) { + factory ConstantAndVariableQueryStringInput({String? baz, String? maybeSet}) { return _$ConstantAndVariableQueryStringInput._( baz: baz, maybeSet: maybeSet, ); } - factory ConstantAndVariableQueryStringInput.build( - [void Function(ConstantAndVariableQueryStringInputBuilder) updates]) = - _$ConstantAndVariableQueryStringInput; + factory ConstantAndVariableQueryStringInput.build([ + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInput; const ConstantAndVariableQueryStringInput._(); @@ -40,19 +39,19 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantAndVariableQueryStringInput.build((b) { - if (request.queryParameters['baz'] != null) { - b.baz = request.queryParameters['baz']!; - } - if (request.queryParameters['maybeSet'] != null) { - b.maybeSet = request.queryParameters['maybeSet']!; - } - }); + }) => ConstantAndVariableQueryStringInput.build((b) { + if (request.queryParameters['baz'] != null) { + b.baz = request.queryParameters['baz']!; + } + if (request.queryParameters['maybeSet'] != null) { + b.maybeSet = request.queryParameters['maybeSet']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [ConstantAndVariableQueryStringInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [ConstantAndVariableQueryStringInputRestXmlSerializer()]; String? get baz; String? get maybeSet; @@ -61,38 +60,30 @@ abstract class ConstantAndVariableQueryStringInput ConstantAndVariableQueryStringInputPayload(); @override - List get props => [ - baz, - maybeSet, - ]; + List get props => [baz, maybeSet]; @override String toString() { final helper = newBuiltValueToStringHelper('ConstantAndVariableQueryStringInput') - ..add( - 'baz', - baz, - ) - ..add( - 'maybeSet', - maybeSet, - ); + ..add('baz', baz) + ..add('maybeSet', maybeSet); return helper.toString(); } } @_i3.internal abstract class ConstantAndVariableQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates]) = _$ConstantAndVariableQueryStringInputPayload; + factory ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantAndVariableQueryStringInputPayload; const ConstantAndVariableQueryStringInputPayload._(); @@ -102,31 +93,32 @@ abstract class ConstantAndVariableQueryStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'ConstantAndVariableQueryStringInputPayload'); + 'ConstantAndVariableQueryStringInputPayload', + ); return helper.toString(); } } -class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + ConstantAndVariableQueryStringInputPayload + > { const ConstantAndVariableQueryStringInputRestXmlSerializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ - ConstantAndVariableQueryStringInput, - _$ConstantAndVariableQueryStringInput, - ConstantAndVariableQueryStringInputPayload, - _$ConstantAndVariableQueryStringInputPayload, - ]; + ConstantAndVariableQueryStringInput, + _$ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputPayload, + _$ConstantAndVariableQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantAndVariableQueryStringInputPayload deserialize( @@ -144,7 +136,7 @@ class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('ConstantAndVariableQueryStringInput') + const _i1.XmlElementName('ConstantAndVariableQueryStringInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart index 935bf6bdfc..addd673aba 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_and_variable_query_string_input.g.dart @@ -13,19 +13,19 @@ class _$ConstantAndVariableQueryStringInput @override final String? maybeSet; - factory _$ConstantAndVariableQueryStringInput( - [void Function(ConstantAndVariableQueryStringInputBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInput([ + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputBuilder()..update(updates)) ._build(); _$ConstantAndVariableQueryStringInput._({this.baz, this.maybeSet}) - : super._(); + : super._(); @override ConstantAndVariableQueryStringInput rebuild( - void Function(ConstantAndVariableQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$ConstantAndVariableQueryStringInput class ConstantAndVariableQueryStringInputBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInput, + ConstantAndVariableQueryStringInputBuilder + > { _$ConstantAndVariableQueryStringInput? _$v; String? _baz; @@ -83,7 +85,8 @@ class ConstantAndVariableQueryStringInputBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputBuilder)? updates) { + void Function(ConstantAndVariableQueryStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class ConstantAndVariableQueryStringInputBuilder ConstantAndVariableQueryStringInput build() => _build(); _$ConstantAndVariableQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantAndVariableQueryStringInput._( - baz: baz, maybeSet: maybeSet); + baz: baz, + maybeSet: maybeSet, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class ConstantAndVariableQueryStringInputBuilder class _$ConstantAndVariableQueryStringInputPayload extends ConstantAndVariableQueryStringInputPayload { - factory _$ConstantAndVariableQueryStringInputPayload( - [void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates]) => + factory _$ConstantAndVariableQueryStringInputPayload([ + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantAndVariableQueryStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$ConstantAndVariableQueryStringInputPayload @override ConstantAndVariableQueryStringInputPayload rebuild( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantAndVariableQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantAndVariableQueryStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$ConstantAndVariableQueryStringInputPayload class ConstantAndVariableQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInputPayloadBuilder + > { _$ConstantAndVariableQueryStringInputPayload? _$v; ConstantAndVariableQueryStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class ConstantAndVariableQueryStringInputPayloadBuilder @override void update( - void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? - updates) { + void Function(ConstantAndVariableQueryStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart index 6e105bbc2a..ec1152a0cb 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.constant_query_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class ConstantQueryStringInput return _$ConstantQueryStringInput._(hello: hello); } - factory ConstantQueryStringInput.build( - [void Function(ConstantQueryStringInputBuilder) updates]) = - _$ConstantQueryStringInput; + factory ConstantQueryStringInput.build([ + void Function(ConstantQueryStringInputBuilder) updates, + ]) = _$ConstantQueryStringInput; const ConstantQueryStringInput._(); @@ -33,15 +33,14 @@ abstract class ConstantQueryStringInput ConstantQueryStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ConstantQueryStringInput.build((b) { - if (labels['hello'] != null) { - b.hello = labels['hello']!; - } - }); + }) => ConstantQueryStringInput.build((b) { + if (labels['hello'] != null) { + b.hello = labels['hello']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ConstantQueryStringInputRestXmlSerializer()]; + serializers = [ConstantQueryStringInputRestXmlSerializer()]; String get hello; @override @@ -50,10 +49,7 @@ abstract class ConstantQueryStringInput case 'hello': return hello; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -66,25 +62,23 @@ abstract class ConstantQueryStringInput @override String toString() { final helper = newBuiltValueToStringHelper('ConstantQueryStringInput') - ..add( - 'hello', - hello, - ); + ..add('hello', hello); return helper.toString(); } } @_i3.internal abstract class ConstantQueryStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder) updates]) = - _$ConstantQueryStringInputPayload; + factory ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ]) = _$ConstantQueryStringInputPayload; const ConstantQueryStringInputPayload._(); @@ -93,8 +87,9 @@ abstract class ConstantQueryStringInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('ConstantQueryStringInputPayload'); + final helper = newBuiltValueToStringHelper( + 'ConstantQueryStringInputPayload', + ); return helper.toString(); } } @@ -102,23 +97,20 @@ abstract class ConstantQueryStringInputPayload class ConstantQueryStringInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const ConstantQueryStringInputRestXmlSerializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ - ConstantQueryStringInput, - _$ConstantQueryStringInput, - ConstantQueryStringInputPayload, - _$ConstantQueryStringInputPayload, - ]; + ConstantQueryStringInput, + _$ConstantQueryStringInput, + ConstantQueryStringInputPayload, + _$ConstantQueryStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantQueryStringInputPayload deserialize( @@ -136,7 +128,7 @@ class ConstantQueryStringInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('ConstantQueryStringInput') + const _i1.XmlElementName('ConstantQueryStringInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart index b8d7dc6f8b..69522d2b0a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/constant_query_string_input.g.dart @@ -10,19 +10,22 @@ class _$ConstantQueryStringInput extends ConstantQueryStringInput { @override final String hello; - factory _$ConstantQueryStringInput( - [void Function(ConstantQueryStringInputBuilder)? updates]) => - (new ConstantQueryStringInputBuilder()..update(updates))._build(); + factory _$ConstantQueryStringInput([ + void Function(ConstantQueryStringInputBuilder)? updates, + ]) => (new ConstantQueryStringInputBuilder()..update(updates))._build(); _$ConstantQueryStringInput._({required this.hello}) : super._() { BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello'); + hello, + r'ConstantQueryStringInput', + 'hello', + ); } @override ConstantQueryStringInput rebuild( - void Function(ConstantQueryStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputBuilder toBuilder() => @@ -78,10 +81,15 @@ class ConstantQueryStringInputBuilder ConstantQueryStringInput build() => _build(); _$ConstantQueryStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConstantQueryStringInput._( - hello: BuiltValueNullFieldError.checkNotNull( - hello, r'ConstantQueryStringInput', 'hello')); + hello: BuiltValueNullFieldError.checkNotNull( + hello, + r'ConstantQueryStringInput', + 'hello', + ), + ); replace(_$result); return _$result; } @@ -89,16 +97,17 @@ class ConstantQueryStringInputBuilder class _$ConstantQueryStringInputPayload extends ConstantQueryStringInputPayload { - factory _$ConstantQueryStringInputPayload( - [void Function(ConstantQueryStringInputPayloadBuilder)? updates]) => + factory _$ConstantQueryStringInputPayload([ + void Function(ConstantQueryStringInputPayloadBuilder)? updates, + ]) => (new ConstantQueryStringInputPayloadBuilder()..update(updates))._build(); _$ConstantQueryStringInputPayload._() : super._(); @override ConstantQueryStringInputPayload rebuild( - void Function(ConstantQueryStringInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ConstantQueryStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ConstantQueryStringInputPayloadBuilder toBuilder() => @@ -118,8 +127,10 @@ class _$ConstantQueryStringInputPayload class ConstantQueryStringInputPayloadBuilder implements - Builder { + Builder< + ConstantQueryStringInputPayload, + ConstantQueryStringInputPayloadBuilder + > { _$ConstantQueryStringInputPayload? _$v; ConstantQueryStringInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart index f7955be5a9..9b453c17e6 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.datetime_offsets_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class DatetimeOffsetsOutput return _$DatetimeOffsetsOutput._(datetime: datetime); } - factory DatetimeOffsetsOutput.build( - [void Function(DatetimeOffsetsOutputBuilder) updates]) = - _$DatetimeOffsetsOutput; + factory DatetimeOffsetsOutput.build([ + void Function(DatetimeOffsetsOutputBuilder) updates, + ]) = _$DatetimeOffsetsOutput; const DatetimeOffsetsOutput._(); @@ -27,11 +27,10 @@ abstract class DatetimeOffsetsOutput factory DatetimeOffsetsOutput.fromResponse( DatetimeOffsetsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [ - DatetimeOffsetsOutputRestXmlSerializer() + DatetimeOffsetsOutputRestXmlSerializer(), ]; DateTime? get datetime; @@ -41,10 +40,7 @@ abstract class DatetimeOffsetsOutput @override String toString() { final helper = newBuiltValueToStringHelper('DatetimeOffsetsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -52,21 +48,18 @@ abstract class DatetimeOffsetsOutput class DatetimeOffsetsOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const DatetimeOffsetsOutputRestXmlSerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [ - DatetimeOffsetsOutput, - _$DatetimeOffsetsOutput, - ]; + DatetimeOffsetsOutput, + _$DatetimeOffsetsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DatetimeOffsetsOutput deserialize( @@ -102,16 +95,15 @@ class DatetimeOffsetsOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('DatetimeOffsetsOutput') + const _i2.XmlElementName('DatetimeOffsetsOutput'), ]; final DatetimeOffsetsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart index 6407fba9e5..7bf65813ae 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/datetime_offsets_output.g.dart @@ -10,16 +10,16 @@ class _$DatetimeOffsetsOutput extends DatetimeOffsetsOutput { @override final DateTime? datetime; - factory _$DatetimeOffsetsOutput( - [void Function(DatetimeOffsetsOutputBuilder)? updates]) => - (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); + factory _$DatetimeOffsetsOutput([ + void Function(DatetimeOffsetsOutputBuilder)? updates, + ]) => (new DatetimeOffsetsOutputBuilder()..update(updates))._build(); _$DatetimeOffsetsOutput._({this.datetime}) : super._(); @override DatetimeOffsetsOutput rebuild( - void Function(DatetimeOffsetsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DatetimeOffsetsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DatetimeOffsetsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart index 581d9d1a2f..d81cc89684 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.empty_input_and_empty_output_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,16 +15,18 @@ abstract class EmptyInputAndEmptyOutputInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + >, _i1.EmptyPayload { factory EmptyInputAndEmptyOutputInput() { return _$EmptyInputAndEmptyOutputInput._(); } - factory EmptyInputAndEmptyOutputInput.build( - [void Function(EmptyInputAndEmptyOutputInputBuilder) updates]) = - _$EmptyInputAndEmptyOutputInput; + factory EmptyInputAndEmptyOutputInput.build([ + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputInput; const EmptyInputAndEmptyOutputInput._(); @@ -32,11 +34,10 @@ abstract class EmptyInputAndEmptyOutputInput EmptyInputAndEmptyOutputInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputInputRestXmlSerializer()]; + serializers = [EmptyInputAndEmptyOutputInputRestXmlSerializer()]; @override EmptyInputAndEmptyOutputInput getPayload() => this; @@ -54,21 +55,18 @@ abstract class EmptyInputAndEmptyOutputInput class EmptyInputAndEmptyOutputInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputInput, - _$EmptyInputAndEmptyOutputInput, - ]; + EmptyInputAndEmptyOutputInput, + _$EmptyInputAndEmptyOutputInput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -86,7 +84,7 @@ class EmptyInputAndEmptyOutputInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('EmptyInputAndEmptyOutputInput') + const _i1.XmlElementName('EmptyInputAndEmptyOutputInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart index a710b8bb54..a9735b9fb1 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_input.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_input.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { - factory _$EmptyInputAndEmptyOutputInput( - [void Function(EmptyInputAndEmptyOutputInputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputInput([ + void Function(EmptyInputAndEmptyOutputInputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputInputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputInput._() : super._(); @override EmptyInputAndEmptyOutputInput rebuild( - void Function(EmptyInputAndEmptyOutputInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputInputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputInput extends EmptyInputAndEmptyOutputInput { class EmptyInputAndEmptyOutputInputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInputBuilder + > { _$EmptyInputAndEmptyOutputInput? _$v; EmptyInputAndEmptyOutputInputBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart index eea534685b..c94b41c885 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.empty_input_and_empty_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,19 +11,20 @@ import 'package:smithy/smithy.dart' as _i2; part 'empty_input_and_empty_output_output.g.dart'; abstract class EmptyInputAndEmptyOutputOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + >, _i2.EmptyPayload { factory EmptyInputAndEmptyOutputOutput() { return _$EmptyInputAndEmptyOutputOutput._(); } - factory EmptyInputAndEmptyOutputOutput.build( - [void Function(EmptyInputAndEmptyOutputOutputBuilder) updates]) = - _$EmptyInputAndEmptyOutputOutput; + factory EmptyInputAndEmptyOutputOutput.build([ + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ]) = _$EmptyInputAndEmptyOutputOutput; const EmptyInputAndEmptyOutputOutput._(); @@ -31,19 +32,19 @@ abstract class EmptyInputAndEmptyOutputOutput factory EmptyInputAndEmptyOutputOutput.fromResponse( EmptyInputAndEmptyOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [EmptyInputAndEmptyOutputOutputRestXmlSerializer()]; + serializers = [EmptyInputAndEmptyOutputOutputRestXmlSerializer()]; @override List get props => []; @override String toString() { - final helper = - newBuiltValueToStringHelper('EmptyInputAndEmptyOutputOutput'); + final helper = newBuiltValueToStringHelper( + 'EmptyInputAndEmptyOutputOutput', + ); return helper.toString(); } } @@ -51,21 +52,18 @@ abstract class EmptyInputAndEmptyOutputOutput class EmptyInputAndEmptyOutputOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [ - EmptyInputAndEmptyOutputOutput, - _$EmptyInputAndEmptyOutputOutput, - ]; + EmptyInputAndEmptyOutputOutput, + _$EmptyInputAndEmptyOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( @@ -83,7 +81,7 @@ class EmptyInputAndEmptyOutputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('EmptyInputAndEmptyOutputOutput') + const _i2.XmlElementName('EmptyInputAndEmptyOutputOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart index d6edc12355..1a5a1762e2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/empty_input_and_empty_output_output.g.dart @@ -7,16 +7,16 @@ part of 'empty_input_and_empty_output_output.dart'; // ************************************************************************** class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { - factory _$EmptyInputAndEmptyOutputOutput( - [void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates]) => - (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); + factory _$EmptyInputAndEmptyOutputOutput([ + void Function(EmptyInputAndEmptyOutputOutputBuilder)? updates, + ]) => (new EmptyInputAndEmptyOutputOutputBuilder()..update(updates))._build(); _$EmptyInputAndEmptyOutputOutput._() : super._(); @override EmptyInputAndEmptyOutputOutput rebuild( - void Function(EmptyInputAndEmptyOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EmptyInputAndEmptyOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EmptyInputAndEmptyOutputOutputBuilder toBuilder() => @@ -36,8 +36,10 @@ class _$EmptyInputAndEmptyOutputOutput extends EmptyInputAndEmptyOutputOutput { class EmptyInputAndEmptyOutputOutputBuilder implements - Builder { + Builder< + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutputBuilder + > { _$EmptyInputAndEmptyOutputOutput? _$v; EmptyInputAndEmptyOutputOutputBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.dart index b5fb1aeb6b..e7ff8d1b25 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestXmlSerializer() + EnvironmentConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestXmlSerializer const EnvironmentConfigRestXmlSerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestXmlSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -176,55 +166,67 @@ class EnvironmentConfigRestXmlSerializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart index 8bea25b9e6..4fd812cd3a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestXmlSerializer() + FileConfigSettingsRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestXmlSerializer const FileConfigSettingsRestXmlSerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -194,63 +183,71 @@ class FileConfigSettingsRestXmlSerializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart index e74e6b3f66..d1cdbfd0d5 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.flattened_xml_map_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,12 +20,13 @@ abstract class FlattenedXmlMapInputOutput Built { factory FlattenedXmlMapInputOutput({Map? myMap}) { return _$FlattenedXmlMapInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory FlattenedXmlMapInputOutput.build( - [void Function(FlattenedXmlMapInputOutputBuilder) updates]) = - _$FlattenedXmlMapInputOutput; + factory FlattenedXmlMapInputOutput.build([ + void Function(FlattenedXmlMapInputOutputBuilder) updates, + ]) = _$FlattenedXmlMapInputOutput; const FlattenedXmlMapInputOutput._(); @@ -33,18 +34,16 @@ abstract class FlattenedXmlMapInputOutput FlattenedXmlMapInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [FlattenedXmlMapInputOutput] from a [payload] and [response]. factory FlattenedXmlMapInputOutput.fromResponse( FlattenedXmlMapInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [FlattenedXmlMapInputOutputRestXmlSerializer()]; + serializers = [FlattenedXmlMapInputOutputRestXmlSerializer()]; _i3.BuiltMap? get myMap; @override @@ -56,10 +55,7 @@ abstract class FlattenedXmlMapInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('FlattenedXmlMapInputOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -67,21 +63,18 @@ abstract class FlattenedXmlMapInputOutput class FlattenedXmlMapInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const FlattenedXmlMapInputOutputRestXmlSerializer() - : super('FlattenedXmlMapInputOutput'); + : super('FlattenedXmlMapInputOutput'); @override Iterable get types => const [ - FlattenedXmlMapInputOutput, - _$FlattenedXmlMapInputOutput, - ]; + FlattenedXmlMapInputOutput, + _$FlattenedXmlMapInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapInputOutput deserialize( @@ -100,21 +93,19 @@ class FlattenedXmlMapInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap - .addAll(const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap') - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) - .toMap() - .cast()); + result.myMap.addAll( + const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap') + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + .toMap() + .cast(), + ); } } @@ -128,22 +119,20 @@ class FlattenedXmlMapInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('FlattenedXmlMapInputOutput') + const _i1.XmlElementName('FlattenedXmlMapInputOutput'), ]; final FlattenedXmlMapInputOutput(:myMap) = object; if (myMap != null) { result$.addAll( - const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap').serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer(flattenedKey: 'myMap').serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart index 4cd196f9f9..8acff82bd7 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_input_output.g.dart @@ -10,16 +10,16 @@ class _$FlattenedXmlMapInputOutput extends FlattenedXmlMapInputOutput { @override final _i3.BuiltMap? myMap; - factory _$FlattenedXmlMapInputOutput( - [void Function(FlattenedXmlMapInputOutputBuilder)? updates]) => - (new FlattenedXmlMapInputOutputBuilder()..update(updates))._build(); + factory _$FlattenedXmlMapInputOutput([ + void Function(FlattenedXmlMapInputOutputBuilder)? updates, + ]) => (new FlattenedXmlMapInputOutputBuilder()..update(updates))._build(); _$FlattenedXmlMapInputOutput._({this.myMap}) : super._(); @override FlattenedXmlMapInputOutput rebuild( - void Function(FlattenedXmlMapInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapInputOutputBuilder toBuilder() => @@ -87,7 +87,10 @@ class FlattenedXmlMapInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapInputOutput', _$failedField, e.toString()); + r'FlattenedXmlMapInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart index 5feb3eafb1..2df289d189 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.flattened_xml_map_with_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,19 @@ abstract class FlattenedXmlMapWithXmlNameInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutputBuilder + > { factory FlattenedXmlMapWithXmlNameInputOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNameInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNameInputOutput.build( - [void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) - updates]) = _$FlattenedXmlMapWithXmlNameInputOutput; + factory FlattenedXmlMapWithXmlNameInputOutput.build([ + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNameInputOutput; const FlattenedXmlMapWithXmlNameInputOutput._(); @@ -33,18 +36,16 @@ abstract class FlattenedXmlMapWithXmlNameInputOutput FlattenedXmlMapWithXmlNameInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [FlattenedXmlMapWithXmlNameInputOutput] from a [payload] and [response]. factory FlattenedXmlMapWithXmlNameInputOutput.fromResponse( FlattenedXmlMapWithXmlNameInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer()]; + serializers = [FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer()]; _i3.BuiltMap? get myMap; @override @@ -55,34 +56,29 @@ abstract class FlattenedXmlMapWithXmlNameInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNameInputOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNameInputOutput', + )..add('myMap', myMap); return helper.toString(); } } -class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNameInputOutput'); + : super('FlattenedXmlMapWithXmlNameInputOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNameInputOutput, - _$FlattenedXmlMapWithXmlNameInputOutput, - ]; + FlattenedXmlMapWithXmlNameInputOutput, + _$FlattenedXmlMapWithXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNameInputOutput deserialize( @@ -101,24 +97,23 @@ class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i1 } switch (key) { case 'KVP': - result.myMap.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.myMap.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -132,25 +127,24 @@ class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('FlattenedXmlMapWithXmlNameInputOutput') + const _i1.XmlElementName('FlattenedXmlMapWithXmlNameInputOutput'), ]; final FlattenedXmlMapWithXmlNameInputOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i1.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + result$.addAll( + const _i1.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart index 1dd474e1cc..a52e1f5b7b 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_name_input_output.g.dart @@ -11,9 +11,9 @@ class _$FlattenedXmlMapWithXmlNameInputOutput @override final _i3.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNameInputOutput( - [void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? - updates]) => + factory _$FlattenedXmlMapWithXmlNameInputOutput([ + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNameInputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$FlattenedXmlMapWithXmlNameInputOutput @override FlattenedXmlMapWithXmlNameInputOutput rebuild( - void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNameInputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$FlattenedXmlMapWithXmlNameInputOutput class FlattenedXmlMapWithXmlNameInputOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutputBuilder + > { _$FlattenedXmlMapWithXmlNameInputOutput? _$v; _i3.MapBuilder? _myMap; @@ -75,7 +76,8 @@ class FlattenedXmlMapWithXmlNameInputOutputBuilder @override void update( - void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? updates) { + void Function(FlattenedXmlMapWithXmlNameInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,7 +87,8 @@ class FlattenedXmlMapWithXmlNameInputOutputBuilder _$FlattenedXmlMapWithXmlNameInputOutput _build() { _$FlattenedXmlMapWithXmlNameInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNameInputOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -94,9 +97,10 @@ class FlattenedXmlMapWithXmlNameInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNameInputOutput', - _$failedField, - e.toString()); + r'FlattenedXmlMapWithXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart index 0a2bfdc99c..d80e47a4d4 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.flattened_xml_map_with_xml_namespace_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,19 +12,21 @@ import 'package:smithy/smithy.dart' as _i3; part 'flattened_xml_map_with_xml_namespace_output.g.dart'; abstract class FlattenedXmlMapWithXmlNamespaceOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { factory FlattenedXmlMapWithXmlNamespaceOutput({Map? myMap}) { return _$FlattenedXmlMapWithXmlNamespaceOutput._( - myMap: myMap == null ? null : _i2.BuiltMap(myMap)); + myMap: myMap == null ? null : _i2.BuiltMap(myMap), + ); } - factory FlattenedXmlMapWithXmlNamespaceOutput.build( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates]) = _$FlattenedXmlMapWithXmlNamespaceOutput; + factory FlattenedXmlMapWithXmlNamespaceOutput.build([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ]) = _$FlattenedXmlMapWithXmlNamespaceOutput; const FlattenedXmlMapWithXmlNamespaceOutput._(); @@ -32,11 +34,10 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput factory FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( FlattenedXmlMapWithXmlNamespaceOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer()]; + serializers = [FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer()]; _i2.BuiltMap? get myMap; @override @@ -44,34 +45,29 @@ abstract class FlattenedXmlMapWithXmlNamespaceOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('FlattenedXmlMapWithXmlNamespaceOutput') - ..add( - 'myMap', - myMap, - ); + final helper = newBuiltValueToStringHelper( + 'FlattenedXmlMapWithXmlNamespaceOutput', + )..add('myMap', myMap); return helper.toString(); } } -class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [ - FlattenedXmlMapWithXmlNamespaceOutput, - _$FlattenedXmlMapWithXmlNamespaceOutput, - ]; + FlattenedXmlMapWithXmlNamespaceOutput, + _$FlattenedXmlMapWithXmlNamespaceOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -90,24 +86,23 @@ class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 } switch (key) { case 'KVP': - result.myMap.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.myMap.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ) + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], - ), - ) - .toMap() - .cast()); + ]), + ) + .toMap() + .cast(), + ); } } @@ -121,25 +116,24 @@ class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i3.XmlElementName('FlattenedXmlMapWithXmlNamespaceOutput') + const _i3.XmlElementName('FlattenedXmlMapWithXmlNamespaceOutput'), ]; final FlattenedXmlMapWithXmlNamespaceOutput(:myMap) = object; if (myMap != null) { - result$.addAll(const _i3.XmlBuiltMapSerializer( - keyName: 'K', - valueName: 'V', - flattenedKey: 'KVP', - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i2.BuiltMap, - [ + result$.addAll( + const _i3.XmlBuiltMapSerializer( + keyName: 'K', + valueName: 'V', + flattenedKey: 'KVP', + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(String), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart index ca42a9f815..289564813c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/flattened_xml_map_with_xml_namespace_output.g.dart @@ -11,9 +11,9 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override final _i2.BuiltMap? myMap; - factory _$FlattenedXmlMapWithXmlNamespaceOutput( - [void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? - updates]) => + factory _$FlattenedXmlMapWithXmlNamespaceOutput([ + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ]) => (new FlattenedXmlMapWithXmlNamespaceOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput @override FlattenedXmlMapWithXmlNamespaceOutput rebuild( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FlattenedXmlMapWithXmlNamespaceOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$FlattenedXmlMapWithXmlNamespaceOutput class FlattenedXmlMapWithXmlNamespaceOutputBuilder implements - Builder { + Builder< + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutputBuilder + > { _$FlattenedXmlMapWithXmlNamespaceOutput? _$v; _i2.MapBuilder? _myMap; @@ -75,7 +76,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder @override void update( - void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates) { + void Function(FlattenedXmlMapWithXmlNamespaceOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,7 +87,8 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _$FlattenedXmlMapWithXmlNamespaceOutput _build() { _$FlattenedXmlMapWithXmlNamespaceOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FlattenedXmlMapWithXmlNamespaceOutput._(myMap: _myMap?.build()); } catch (_) { late String _$failedField; @@ -94,9 +97,10 @@ class FlattenedXmlMapWithXmlNamespaceOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FlattenedXmlMapWithXmlNamespaceOutput', - _$failedField, - e.toString()); + r'FlattenedXmlMapWithXmlNamespaceOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart index 91b1d1e2d7..b9cad51cb3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/foo_enum.dart @@ -1,48 +1,24 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.foo_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class FooEnum extends _i1.SmithyEnum { - const FooEnum._( - super.index, - super.name, - super.value, - ); + const FooEnum._(super.index, super.name, super.value); const FooEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const bar = FooEnum._( - 0, - 'BAR', - 'Bar', - ); + static const bar = FooEnum._(0, 'BAR', 'Bar'); - static const baz = FooEnum._( - 1, - 'BAZ', - 'Baz', - ); + static const baz = FooEnum._(1, 'BAZ', 'Baz'); - static const foo = FooEnum._( - 2, - 'FOO', - 'Foo', - ); + static const foo = FooEnum._(2, 'FOO', 'Foo'); - static const one = FooEnum._( - 3, - 'ONE', - '1', - ); + static const one = FooEnum._(3, 'ONE', '1'); - static const zero = FooEnum._( - 4, - 'ZERO', - '0', - ); + static const zero = FooEnum._(4, 'ZERO', '0'); /// All values of [FooEnum]. static const values = [ @@ -59,12 +35,9 @@ class FooEnum extends _i1.SmithyEnum { values: values, sdkUnknown: FooEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart index 6ddaa0658d..1c0b89d269 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.fractional_seconds_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class FractionalSecondsOutput return _$FractionalSecondsOutput._(datetime: datetime); } - factory FractionalSecondsOutput.build( - [void Function(FractionalSecondsOutputBuilder) updates]) = - _$FractionalSecondsOutput; + factory FractionalSecondsOutput.build([ + void Function(FractionalSecondsOutputBuilder) updates, + ]) = _$FractionalSecondsOutput; const FractionalSecondsOutput._(); @@ -27,8 +27,7 @@ abstract class FractionalSecondsOutput factory FractionalSecondsOutput.fromResponse( FractionalSecondsOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [FractionalSecondsOutputRestXmlSerializer()]; @@ -40,10 +39,7 @@ abstract class FractionalSecondsOutput @override String toString() { final helper = newBuiltValueToStringHelper('FractionalSecondsOutput') - ..add( - 'datetime', - datetime, - ); + ..add('datetime', datetime); return helper.toString(); } } @@ -51,21 +47,18 @@ abstract class FractionalSecondsOutput class FractionalSecondsOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const FractionalSecondsOutputRestXmlSerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [ - FractionalSecondsOutput, - _$FractionalSecondsOutput, - ]; + FractionalSecondsOutput, + _$FractionalSecondsOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FractionalSecondsOutput deserialize( @@ -101,16 +94,15 @@ class FractionalSecondsOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('FractionalSecondsOutput') + const _i2.XmlElementName('FractionalSecondsOutput'), ]; final FractionalSecondsOutput(:datetime) = object; if (datetime != null) { result$ ..add(const _i2.XmlElementName('datetime')) - ..add(_i2.TimestampSerializer.dateTime.serialize( - serializers, - datetime, - )); + ..add( + _i2.TimestampSerializer.dateTime.serialize(serializers, datetime), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart index 5ff47c513c..80820c8d66 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/fractional_seconds_output.g.dart @@ -10,16 +10,16 @@ class _$FractionalSecondsOutput extends FractionalSecondsOutput { @override final DateTime? datetime; - factory _$FractionalSecondsOutput( - [void Function(FractionalSecondsOutputBuilder)? updates]) => - (new FractionalSecondsOutputBuilder()..update(updates))._build(); + factory _$FractionalSecondsOutput([ + void Function(FractionalSecondsOutputBuilder)? updates, + ]) => (new FractionalSecondsOutputBuilder()..update(updates))._build(); _$FractionalSecondsOutput._({this.datetime}) : super._(); @override FractionalSecondsOutput rebuild( - void Function(FractionalSecondsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FractionalSecondsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FractionalSecondsOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart index a3c27d20c6..deb5d64940 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.greeting_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class GreetingStruct const GreetingStruct._(); static const List<_i2.SmithySerializer> serializers = [ - GreetingStructRestXmlSerializer() + GreetingStructRestXmlSerializer(), ]; String? get hi; @@ -32,11 +32,7 @@ abstract class GreetingStruct @override String toString() { - final helper = newBuiltValueToStringHelper('GreetingStruct') - ..add( - 'hi', - hi, - ); + final helper = newBuiltValueToStringHelper('GreetingStruct')..add('hi', hi); return helper.toString(); } } @@ -46,18 +42,12 @@ class GreetingStructRestXmlSerializer const GreetingStructRestXmlSerializer() : super('GreetingStruct'); @override - Iterable get types => const [ - GreetingStruct, - _$GreetingStruct, - ]; + Iterable get types => const [GreetingStruct, _$GreetingStruct]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -76,10 +66,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,10 +89,7 @@ class GreetingStructRestXmlSerializer if (hi != null) { result$ ..add(const _i2.XmlElementName('hi')) - ..add(serializers.serialize( - hi, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(hi, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart index 6067c01c8a..b39efd02a8 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.greeting_with_errors_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class GreetingWithErrorsOutput return _$GreetingWithErrorsOutput._(greeting: greeting); } - factory GreetingWithErrorsOutput.build( - [void Function(GreetingWithErrorsOutputBuilder) updates]) = - _$GreetingWithErrorsOutput; + factory GreetingWithErrorsOutput.build([ + void Function(GreetingWithErrorsOutputBuilder) updates, + ]) = _$GreetingWithErrorsOutput; const GreetingWithErrorsOutput._(); @@ -31,15 +31,14 @@ abstract class GreetingWithErrorsOutput factory GreetingWithErrorsOutput.fromResponse( GreetingWithErrorsOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.build((b) { - if (response.headers['X-Greeting'] != null) { - b.greeting = response.headers['X-Greeting']!; - } - }); + ) => GreetingWithErrorsOutput.build((b) { + if (response.headers['X-Greeting'] != null) { + b.greeting = response.headers['X-Greeting']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [GreetingWithErrorsOutputRestXmlSerializer()]; + serializers = [GreetingWithErrorsOutputRestXmlSerializer()]; String? get greeting; @override @@ -52,25 +51,23 @@ abstract class GreetingWithErrorsOutput @override String toString() { final helper = newBuiltValueToStringHelper('GreetingWithErrorsOutput') - ..add( - 'greeting', - greeting, - ); + ..add('greeting', greeting); return helper.toString(); } } @_i3.internal abstract class GreetingWithErrorsOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + >, _i2.EmptyPayload { - factory GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder) updates]) = - _$GreetingWithErrorsOutputPayload; + factory GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ]) = _$GreetingWithErrorsOutputPayload; const GreetingWithErrorsOutputPayload._(); @@ -79,8 +76,9 @@ abstract class GreetingWithErrorsOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('GreetingWithErrorsOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'GreetingWithErrorsOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const GreetingWithErrorsOutputRestXmlSerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [ - GreetingWithErrorsOutput, - _$GreetingWithErrorsOutput, - GreetingWithErrorsOutputPayload, - _$GreetingWithErrorsOutputPayload, - ]; + GreetingWithErrorsOutput, + _$GreetingWithErrorsOutput, + GreetingWithErrorsOutputPayload, + _$GreetingWithErrorsOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingWithErrorsOutputPayload deserialize( @@ -122,7 +117,7 @@ class GreetingWithErrorsOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('GreetingWithErrorsOutput') + const _i2.XmlElementName('GreetingWithErrorsOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart index d5fcb6414c..36833d7d7d 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/greeting_with_errors_output.g.dart @@ -10,16 +10,16 @@ class _$GreetingWithErrorsOutput extends GreetingWithErrorsOutput { @override final String? greeting; - factory _$GreetingWithErrorsOutput( - [void Function(GreetingWithErrorsOutputBuilder)? updates]) => - (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); + factory _$GreetingWithErrorsOutput([ + void Function(GreetingWithErrorsOutputBuilder)? updates, + ]) => (new GreetingWithErrorsOutputBuilder()..update(updates))._build(); _$GreetingWithErrorsOutput._({this.greeting}) : super._(); @override GreetingWithErrorsOutput rebuild( - void Function(GreetingWithErrorsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class GreetingWithErrorsOutputBuilder class _$GreetingWithErrorsOutputPayload extends GreetingWithErrorsOutputPayload { - factory _$GreetingWithErrorsOutputPayload( - [void Function(GreetingWithErrorsOutputPayloadBuilder)? updates]) => + factory _$GreetingWithErrorsOutputPayload([ + void Function(GreetingWithErrorsOutputPayloadBuilder)? updates, + ]) => (new GreetingWithErrorsOutputPayloadBuilder()..update(updates))._build(); _$GreetingWithErrorsOutputPayload._() : super._(); @override GreetingWithErrorsOutputPayload rebuild( - void Function(GreetingWithErrorsOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GreetingWithErrorsOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GreetingWithErrorsOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$GreetingWithErrorsOutputPayload class GreetingWithErrorsOutputPayloadBuilder implements - Builder { + Builder< + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutputPayloadBuilder + > { _$GreetingWithErrorsOutputPayload? _$v; GreetingWithErrorsOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart index 0aa6fc8398..17463dcc1e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.host_label_header_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class HostLabelHeaderInput return _$HostLabelHeaderInput._(accountId: accountId); } - factory HostLabelHeaderInput.build( - [void Function(HostLabelHeaderInputBuilder) updates]) = - _$HostLabelHeaderInput; + factory HostLabelHeaderInput.build([ + void Function(HostLabelHeaderInputBuilder) updates, + ]) = _$HostLabelHeaderInput; const HostLabelHeaderInput._(); @@ -33,15 +33,14 @@ abstract class HostLabelHeaderInput HostLabelHeaderInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HostLabelHeaderInput.build((b) { - if (request.headers['X-Amz-Account-Id'] != null) { - b.accountId = request.headers['X-Amz-Account-Id']!; - } - }); + }) => HostLabelHeaderInput.build((b) { + if (request.headers['X-Amz-Account-Id'] != null) { + b.accountId = request.headers['X-Amz-Account-Id']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [HostLabelHeaderInputRestXmlSerializer()]; + serializers = [HostLabelHeaderInputRestXmlSerializer()]; String get accountId; @override @@ -50,10 +49,7 @@ abstract class HostLabelHeaderInput case 'accountId': return accountId; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -65,10 +61,7 @@ abstract class HostLabelHeaderInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelHeaderInput') - ..add( - 'accountId', - accountId, - ); + ..add('accountId', accountId); return helper.toString(); } } @@ -79,9 +72,9 @@ abstract class HostLabelHeaderInputPayload implements Built, _i1.EmptyPayload { - factory HostLabelHeaderInputPayload( - [void Function(HostLabelHeaderInputPayloadBuilder) updates]) = - _$HostLabelHeaderInputPayload; + factory HostLabelHeaderInputPayload([ + void Function(HostLabelHeaderInputPayloadBuilder) updates, + ]) = _$HostLabelHeaderInputPayload; const HostLabelHeaderInputPayload._(); @@ -101,19 +94,16 @@ class HostLabelHeaderInputRestXmlSerializer @override Iterable get types => const [ - HostLabelHeaderInput, - _$HostLabelHeaderInput, - HostLabelHeaderInputPayload, - _$HostLabelHeaderInputPayload, - ]; + HostLabelHeaderInput, + _$HostLabelHeaderInput, + HostLabelHeaderInputPayload, + _$HostLabelHeaderInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelHeaderInputPayload deserialize( diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart index 148b709144..adcf3e01b5 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_header_input.g.dart @@ -10,19 +10,22 @@ class _$HostLabelHeaderInput extends HostLabelHeaderInput { @override final String accountId; - factory _$HostLabelHeaderInput( - [void Function(HostLabelHeaderInputBuilder)? updates]) => - (new HostLabelHeaderInputBuilder()..update(updates))._build(); + factory _$HostLabelHeaderInput([ + void Function(HostLabelHeaderInputBuilder)? updates, + ]) => (new HostLabelHeaderInputBuilder()..update(updates))._build(); _$HostLabelHeaderInput._({required this.accountId}) : super._() { BuiltValueNullFieldError.checkNotNull( - accountId, r'HostLabelHeaderInput', 'accountId'); + accountId, + r'HostLabelHeaderInput', + 'accountId', + ); } @override HostLabelHeaderInput rebuild( - void Function(HostLabelHeaderInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HostLabelHeaderInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HostLabelHeaderInputBuilder toBuilder() => @@ -77,26 +80,31 @@ class HostLabelHeaderInputBuilder HostLabelHeaderInput build() => _build(); _$HostLabelHeaderInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelHeaderInput._( - accountId: BuiltValueNullFieldError.checkNotNull( - accountId, r'HostLabelHeaderInput', 'accountId')); + accountId: BuiltValueNullFieldError.checkNotNull( + accountId, + r'HostLabelHeaderInput', + 'accountId', + ), + ); replace(_$result); return _$result; } } class _$HostLabelHeaderInputPayload extends HostLabelHeaderInputPayload { - factory _$HostLabelHeaderInputPayload( - [void Function(HostLabelHeaderInputPayloadBuilder)? updates]) => - (new HostLabelHeaderInputPayloadBuilder()..update(updates))._build(); + factory _$HostLabelHeaderInputPayload([ + void Function(HostLabelHeaderInputPayloadBuilder)? updates, + ]) => (new HostLabelHeaderInputPayloadBuilder()..update(updates))._build(); _$HostLabelHeaderInputPayload._() : super._(); @override HostLabelHeaderInputPayload rebuild( - void Function(HostLabelHeaderInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HostLabelHeaderInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HostLabelHeaderInputPayloadBuilder toBuilder() => @@ -116,8 +124,10 @@ class _$HostLabelHeaderInputPayload extends HostLabelHeaderInputPayload { class HostLabelHeaderInputPayloadBuilder implements - Builder { + Builder< + HostLabelHeaderInputPayload, + HostLabelHeaderInputPayloadBuilder + > { _$HostLabelHeaderInputPayload? _$v; HostLabelHeaderInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart index 3da36bbd2b..727635e3c9 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.host_label_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,11 +26,10 @@ abstract class HostLabelInput HostLabelInput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> serializers = [ - HostLabelInputRestXmlSerializer() + HostLabelInputRestXmlSerializer(), ]; String get label; @@ -40,10 +39,7 @@ abstract class HostLabelInput case 'label': return label; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -55,10 +51,7 @@ abstract class HostLabelInput @override String toString() { final helper = newBuiltValueToStringHelper('HostLabelInput') - ..add( - 'label', - label, - ); + ..add('label', label); return helper.toString(); } } @@ -68,18 +61,12 @@ class HostLabelInputRestXmlSerializer const HostLabelInputRestXmlSerializer() : super('HostLabelInput'); @override - Iterable get types => const [ - HostLabelInput, - _$HostLabelInput, - ]; + Iterable get types => const [HostLabelInput, _$HostLabelInput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelInput deserialize( @@ -98,10 +85,12 @@ class HostLabelInputRestXmlSerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -118,10 +107,9 @@ class HostLabelInputRestXmlSerializer final HostLabelInput(:label) = object; result$ ..add(const _i1.XmlElementName('label')) - ..add(serializers.serialize( - label, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(label, specifiedType: const FullType(String)), + ); return result$; } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart index 204d8abde0..7a6893ee51 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/host_label_input.g.dart @@ -74,10 +74,15 @@ class HostLabelInputBuilder HostLabelInput build() => _build(); _$HostLabelInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HostLabelInput._( - label: BuiltValueNullFieldError.checkNotNull( - label, r'HostLabelInput', 'label')); + label: BuiltValueNullFieldError.checkNotNull( + label, + r'HostLabelInput', + 'label', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart index 11fc2c84cf..58c972d969 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_payload_traits_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,18 @@ abstract class HttpPayloadTraitsInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { - factory HttpPayloadTraitsInputOutput({ - String? foo, - _i2.Uint8List? blob, - }) { - return _$HttpPayloadTraitsInputOutput._( - foo: foo, - blob: blob, - ); + factory HttpPayloadTraitsInputOutput({String? foo, _i2.Uint8List? blob}) { + return _$HttpPayloadTraitsInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsInputOutput.build( - [void Function(HttpPayloadTraitsInputOutputBuilder) updates]) = - _$HttpPayloadTraitsInputOutput; + factory HttpPayloadTraitsInputOutput.build([ + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsInputOutput; const HttpPayloadTraitsInputOutput._(); @@ -40,28 +36,26 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsInputOutputRestXmlSerializer() + HttpPayloadTraitsInputOutputRestXmlSerializer(), ]; String? get foo; @@ -70,22 +64,14 @@ abstract class HttpPayloadTraitsInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + final helper = + newBuiltValueToStringHelper('HttpPayloadTraitsInputOutput') + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -93,21 +79,18 @@ abstract class HttpPayloadTraitsInputOutput class HttpPayloadTraitsInputOutputRestXmlSerializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsInputOutput, - _$HttpPayloadTraitsInputOutput, - ]; + HttpPayloadTraitsInputOutput, + _$HttpPayloadTraitsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i2.Uint8List deserialize( @@ -116,9 +99,10 @@ class HttpPayloadTraitsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override @@ -128,13 +112,15 @@ class HttpPayloadTraitsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpPayloadTraitsInputOutput') + const _i1.XmlElementName('HttpPayloadTraitsInputOutput'), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType(_i2.Uint8List), - )); + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i2.Uint8List), + ), + ); return result$; } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart index 4b3e90e888..80b78468b7 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_input_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsInputOutput( - [void Function(HttpPayloadTraitsInputOutputBuilder)? updates]) => - (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); + factory _$HttpPayloadTraitsInputOutput([ + void Function(HttpPayloadTraitsInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsInputOutputBuilder()..update(updates))._build(); _$HttpPayloadTraitsInputOutput._({this.foo, this.blob}) : super._(); @override HttpPayloadTraitsInputOutput rebuild( - void Function(HttpPayloadTraitsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$HttpPayloadTraitsInputOutput extends HttpPayloadTraitsInputOutput { class HttpPayloadTraitsInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsInputOutput, + HttpPayloadTraitsInputOutputBuilder + > { _$HttpPayloadTraitsInputOutput? _$v; String? _foo; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart index 14f68ff9ce..e969d029c6 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_payload_traits_with_media_type_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,22 +17,21 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i1.HttpInput<_i2.Uint8List>, _i3.AWSEquatable implements - Built, + Built< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + >, _i1.HasPayload<_i2.Uint8List> { factory HttpPayloadTraitsWithMediaTypeInputOutput({ String? foo, _i2.Uint8List? blob, }) { - return _$HttpPayloadTraitsWithMediaTypeInputOutput._( - foo: foo, - blob: blob, - ); + return _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); } - factory HttpPayloadTraitsWithMediaTypeInputOutput.build( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; + factory HttpPayloadTraitsWithMediaTypeInputOutput.build([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ]) = _$HttpPayloadTraitsWithMediaTypeInputOutput; const HttpPayloadTraitsWithMediaTypeInputOutput._(); @@ -40,28 +39,26 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [HttpPayloadTraitsWithMediaTypeInputOutput] from a [payload] and [response]. factory HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( _i2.Uint8List? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { - b.blob = payload; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => HttpPayloadTraitsWithMediaTypeInputOutput.build((b) { + b.blob = payload; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List<_i1.SmithySerializer<_i2.Uint8List?>> serializers = [ - HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() + HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer(), ]; String? get foo; @@ -70,23 +67,14 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput _i2.Uint8List? getPayload() => blob; @override - List get props => [ - foo, - blob, - ]; + List get props => [foo, blob]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpPayloadTraitsWithMediaTypeInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'blob', - blob, - ); + ..add('foo', foo) + ..add('blob', blob); return helper.toString(); } } @@ -94,21 +82,18 @@ abstract class HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer extends _i1.PrimitiveSmithySerializer<_i2.Uint8List> { const HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [ - HttpPayloadTraitsWithMediaTypeInputOutput, - _$HttpPayloadTraitsWithMediaTypeInputOutput, - ]; + HttpPayloadTraitsWithMediaTypeInputOutput, + _$HttpPayloadTraitsWithMediaTypeInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i2.Uint8List deserialize( @@ -117,9 +102,10 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + serialized, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } @override @@ -129,13 +115,15 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpPayloadTraitsWithMediaTypeInputOutput') + const _i1.XmlElementName('HttpPayloadTraitsWithMediaTypeInputOutput'), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType(_i2.Uint8List), - )); + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i2.Uint8List), + ), + ); return result$; } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart index 01e00915a8..d83cb9dd90 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_traits_with_media_type_input_output.g.dart @@ -13,20 +13,19 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput @override final _i2.Uint8List? blob; - factory _$HttpPayloadTraitsWithMediaTypeInputOutput( - [void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates]) => + factory _$HttpPayloadTraitsWithMediaTypeInputOutput([ + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ]) => (new HttpPayloadTraitsWithMediaTypeInputOutputBuilder()..update(updates)) ._build(); _$HttpPayloadTraitsWithMediaTypeInputOutput._({this.foo, this.blob}) - : super._(); + : super._(); @override HttpPayloadTraitsWithMediaTypeInputOutput rebuild( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadTraitsWithMediaTypeInputOutputBuilder toBuilder() => @@ -52,8 +51,10 @@ class _$HttpPayloadTraitsWithMediaTypeInputOutput class HttpPayloadTraitsWithMediaTypeInputOutputBuilder implements - Builder { + Builder< + HttpPayloadTraitsWithMediaTypeInputOutput, + HttpPayloadTraitsWithMediaTypeInputOutputBuilder + > { _$HttpPayloadTraitsWithMediaTypeInputOutput? _$v; String? _foo; @@ -84,8 +85,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder @override void update( - void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? - updates) { + void Function(HttpPayloadTraitsWithMediaTypeInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -93,7 +94,8 @@ class HttpPayloadTraitsWithMediaTypeInputOutputBuilder HttpPayloadTraitsWithMediaTypeInputOutput build() => _build(); _$HttpPayloadTraitsWithMediaTypeInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpPayloadTraitsWithMediaTypeInputOutput._(foo: foo, blob: blob); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart index 040c45576c..f23f1ab69c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_payload_with_member_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithMemberXmlNameInputOutput, + HttpPayloadWithMemberXmlNameInputOutputBuilder + >, _i1.HasPayload { - factory HttpPayloadWithMemberXmlNameInputOutput( - {PayloadWithXmlName? nested}) { + factory HttpPayloadWithMemberXmlNameInputOutput({ + PayloadWithXmlName? nested, + }) { return _$HttpPayloadWithMemberXmlNameInputOutput._(nested: nested); } - factory HttpPayloadWithMemberXmlNameInputOutput.build( - [void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) - updates]) = _$HttpPayloadWithMemberXmlNameInputOutput; + factory HttpPayloadWithMemberXmlNameInputOutput.build([ + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) updates, + ]) = _$HttpPayloadWithMemberXmlNameInputOutput; const HttpPayloadWithMemberXmlNameInputOutput._(); @@ -34,26 +37,24 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput PayloadWithXmlName? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithMemberXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithMemberXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithMemberXmlNameInputOutput] from a [payload] and [response]. factory HttpPayloadWithMemberXmlNameInputOutput.fromResponse( PayloadWithXmlName? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithMemberXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithMemberXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer() + HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), ]; PayloadWithXmlName? get nested; @@ -65,12 +66,9 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithMemberXmlNameInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithMemberXmlNameInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -78,21 +76,18 @@ abstract class HttpPayloadWithMemberXmlNameInputOutput class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithMemberXmlNameInputOutput'); + : super('HttpPayloadWithMemberXmlNameInputOutput'); @override Iterable get types => const [ - HttpPayloadWithMemberXmlNameInputOutput, - _$HttpPayloadWithMemberXmlNameInputOutput, - ]; + HttpPayloadWithMemberXmlNameInputOutput, + _$HttpPayloadWithMemberXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -111,10 +106,12 @@ class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -132,10 +129,9 @@ class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart index 317cb33f32..e5917b153d 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_member_xml_name_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithMemberXmlNameInputOutput @override final PayloadWithXmlName? nested; - factory _$HttpPayloadWithMemberXmlNameInputOutput( - [void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithMemberXmlNameInputOutput([ + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithMemberXmlNameInputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$HttpPayloadWithMemberXmlNameInputOutput @override HttpPayloadWithMemberXmlNameInputOutput rebuild( - void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithMemberXmlNameInputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$HttpPayloadWithMemberXmlNameInputOutput class HttpPayloadWithMemberXmlNameInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithMemberXmlNameInputOutput, + HttpPayloadWithMemberXmlNameInputOutputBuilder + > { _$HttpPayloadWithMemberXmlNameInputOutput? _$v; PayloadWithXmlNameBuilder? _nested; @@ -75,7 +76,8 @@ class HttpPayloadWithMemberXmlNameInputOutputBuilder @override void update( - void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? updates) { + void Function(HttpPayloadWithMemberXmlNameInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,9 +87,11 @@ class HttpPayloadWithMemberXmlNameInputOutputBuilder _$HttpPayloadWithMemberXmlNameInputOutput _build() { _$HttpPayloadWithMemberXmlNameInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithMemberXmlNameInputOutput._( - nested: _nested?.build()); + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -95,9 +99,10 @@ class HttpPayloadWithMemberXmlNameInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithMemberXmlNameInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithMemberXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart index a4ed71728a..3090fff9c6 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_payload_with_structure_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,18 @@ abstract class HttpPayloadWithStructureInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + >, _i1.HasPayload { factory HttpPayloadWithStructureInputOutput({NestedPayload? nested}) { return _$HttpPayloadWithStructureInputOutput._(nested: nested); } - factory HttpPayloadWithStructureInputOutput.build( - [void Function(HttpPayloadWithStructureInputOutputBuilder) updates]) = - _$HttpPayloadWithStructureInputOutput; + factory HttpPayloadWithStructureInputOutput.build([ + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ]) = _$HttpPayloadWithStructureInputOutput; const HttpPayloadWithStructureInputOutput._(); @@ -33,26 +35,24 @@ abstract class HttpPayloadWithStructureInputOutput NestedPayload? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithStructureInputOutput] from a [payload] and [response]. factory HttpPayloadWithStructureInputOutput.fromResponse( NestedPayload? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithStructureInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithStructureInputOutputRestXmlSerializer() + HttpPayloadWithStructureInputOutputRestXmlSerializer(), ]; NestedPayload? get nested; @@ -64,12 +64,9 @@ abstract class HttpPayloadWithStructureInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithStructureInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithStructureInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithStructureInputOutputRestXmlSerializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [ - HttpPayloadWithStructureInputOutput, - _$HttpPayloadWithStructureInputOutput, - ]; + HttpPayloadWithStructureInputOutput, + _$HttpPayloadWithStructureInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedPayload deserialize( @@ -110,15 +104,19 @@ class HttpPayloadWithStructureInputOutputRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -136,18 +134,19 @@ class HttpPayloadWithStructureInputOutputRestXmlSerializer if (greeting != null) { result$ ..add(const _i1.XmlElementName('greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart index 0422d70a2c..5174c4f637 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_structure_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithStructureInputOutput @override final NestedPayload? nested; - factory _$HttpPayloadWithStructureInputOutput( - [void Function(HttpPayloadWithStructureInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithStructureInputOutput([ + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithStructureInputOutputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$HttpPayloadWithStructureInputOutput @override HttpPayloadWithStructureInputOutput rebuild( - void Function(HttpPayloadWithStructureInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithStructureInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithStructureInputOutputBuilder toBuilder() => @@ -46,8 +46,10 @@ class _$HttpPayloadWithStructureInputOutput class HttpPayloadWithStructureInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithStructureInputOutput, + HttpPayloadWithStructureInputOutputBuilder + > { _$HttpPayloadWithStructureInputOutput? _$v; NestedPayloadBuilder? _nested; @@ -74,7 +76,8 @@ class HttpPayloadWithStructureInputOutputBuilder @override void update( - void Function(HttpPayloadWithStructureInputOutputBuilder)? updates) { + void Function(HttpPayloadWithStructureInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,7 +87,8 @@ class HttpPayloadWithStructureInputOutputBuilder _$HttpPayloadWithStructureInputOutput _build() { _$HttpPayloadWithStructureInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithStructureInputOutput._(nested: _nested?.build()); } catch (_) { late String _$failedField; @@ -93,9 +97,10 @@ class HttpPayloadWithStructureInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithStructureInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithStructureInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart index a14b82976c..6328df666a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_payload_with_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,16 +16,18 @@ abstract class HttpPayloadWithXmlNameInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithXmlNameInputOutput, + HttpPayloadWithXmlNameInputOutputBuilder + >, _i1.HasPayload { factory HttpPayloadWithXmlNameInputOutput({PayloadWithXmlName? nested}) { return _$HttpPayloadWithXmlNameInputOutput._(nested: nested); } - factory HttpPayloadWithXmlNameInputOutput.build( - [void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates]) = - _$HttpPayloadWithXmlNameInputOutput; + factory HttpPayloadWithXmlNameInputOutput.build([ + void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates, + ]) = _$HttpPayloadWithXmlNameInputOutput; const HttpPayloadWithXmlNameInputOutput._(); @@ -33,26 +35,24 @@ abstract class HttpPayloadWithXmlNameInputOutput PayloadWithXmlName? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithXmlNameInputOutput] from a [payload] and [response]. factory HttpPayloadWithXmlNameInputOutput.fromResponse( PayloadWithXmlName? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNameInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithXmlNameInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> serializers = [ - HttpPayloadWithXmlNameInputOutputRestXmlSerializer() + HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), ]; PayloadWithXmlName? get nested; @@ -64,12 +64,9 @@ abstract class HttpPayloadWithXmlNameInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithXmlNameInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithXmlNameInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +74,18 @@ abstract class HttpPayloadWithXmlNameInputOutput class HttpPayloadWithXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNameInputOutput'); + : super('HttpPayloadWithXmlNameInputOutput'); @override Iterable get types => const [ - HttpPayloadWithXmlNameInputOutput, - _$HttpPayloadWithXmlNameInputOutput, - ]; + HttpPayloadWithXmlNameInputOutput, + _$HttpPayloadWithXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -110,10 +104,12 @@ class HttpPayloadWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -131,10 +127,9 @@ class HttpPayloadWithXmlNameInputOutputRestXmlSerializer if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart index b48ea92482..7d7eaf3e55 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_name_input_output.g.dart @@ -11,8 +11,9 @@ class _$HttpPayloadWithXmlNameInputOutput @override final PayloadWithXmlName? nested; - factory _$HttpPayloadWithXmlNameInputOutput( - [void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates]) => + factory _$HttpPayloadWithXmlNameInputOutput([ + void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithXmlNameInputOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$HttpPayloadWithXmlNameInputOutput @override HttpPayloadWithXmlNameInputOutput rebuild( - void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithXmlNameInputOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$HttpPayloadWithXmlNameInputOutput class HttpPayloadWithXmlNameInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithXmlNameInputOutput, + HttpPayloadWithXmlNameInputOutputBuilder + > { _$HttpPayloadWithXmlNameInputOutput? _$v; PayloadWithXmlNameBuilder? _nested; @@ -72,7 +75,8 @@ class HttpPayloadWithXmlNameInputOutputBuilder @override void update( - void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates) { + void Function(HttpPayloadWithXmlNameInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -82,7 +86,8 @@ class HttpPayloadWithXmlNameInputOutputBuilder _$HttpPayloadWithXmlNameInputOutput _build() { _$HttpPayloadWithXmlNameInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithXmlNameInputOutput._(nested: _nested?.build()); } catch (_) { late String _$failedField; @@ -91,7 +96,10 @@ class HttpPayloadWithXmlNameInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithXmlNameInputOutput', _$failedField, e.toString()); + r'HttpPayloadWithXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart index 461b19729c..d664d1aa19 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_payload_with_xml_namespace_and_prefix_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,21 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder + >, _i1.HasPayload { - factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput( - {PayloadWithXmlNamespaceAndPrefix? nested}) { + factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput({ + PayloadWithXmlNamespaceAndPrefix? nested, + }) { return _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput._(nested: nested); } - factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build( - [void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) - updates]) = _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput; + factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build([ + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) + updates, + ]) = _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput; const HttpPayloadWithXmlNamespaceAndPrefixInputOutput._(); @@ -34,27 +38,25 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput PayloadWithXmlNamespaceAndPrefix? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithXmlNamespaceAndPrefixInputOutput] from a [payload] and [response]. factory HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromResponse( PayloadWithXmlNamespaceAndPrefix? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithXmlNamespaceAndPrefixInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> - serializers = [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer() + serializers = [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), ]; PayloadWithXmlNamespaceAndPrefix? get nested; @@ -68,11 +70,8 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpPayloadWithXmlNamespaceAndPrefixInputOutput') - ..add( - 'nested', - nested, - ); + 'HttpPayloadWithXmlNamespaceAndPrefixInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -80,21 +79,18 @@ abstract class HttpPayloadWithXmlNamespaceAndPrefixInputOutput class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); + : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); @override Iterable get types => const [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - ]; + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespaceAndPrefix deserialize( @@ -113,10 +109,12 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -132,20 +130,16 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer final result$ = [ const _i1.XmlElementName( 'PayloadWithXmlNamespaceAndPrefix', - _i1.XmlNamespace( - 'http://foo.com', - 'baz', - ), - ) + _i1.XmlNamespace('http://foo.com', 'baz'), + ), ]; final PayloadWithXmlNamespaceAndPrefix(:name) = object; if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart index 04e303e5bf..9899560cc7 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_and_prefix_input_output.g.dart @@ -11,22 +11,22 @@ class _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput @override final PayloadWithXmlNamespaceAndPrefix? nested; - factory _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput( - [void Function( - HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput([ + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? + updates, + ]) => (new HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder() ..update(updates)) ._build(); _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput._({this.nested}) - : super._(); + : super._(); @override HttpPayloadWithXmlNamespaceAndPrefixInputOutput rebuild( - void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder + > { _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput? _$v; PayloadWithXmlNamespaceAndPrefixBuilder? _nested; @@ -80,8 +82,9 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder @override void update( - void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? - updates) { + void Function(HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder)? + updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,11 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput _build() { _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithXmlNamespaceAndPrefixInputOutput._( - nested: _nested?.build()); + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -101,9 +106,10 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithXmlNamespaceAndPrefixInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithXmlNamespaceAndPrefixInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart index e37038603e..bf5053b927 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_payload_with_xml_namespace_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,20 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPayloadWithXmlNamespaceInputOutput, + HttpPayloadWithXmlNamespaceInputOutputBuilder + >, _i1.HasPayload { - factory HttpPayloadWithXmlNamespaceInputOutput( - {PayloadWithXmlNamespace? nested}) { + factory HttpPayloadWithXmlNamespaceInputOutput({ + PayloadWithXmlNamespace? nested, + }) { return _$HttpPayloadWithXmlNamespaceInputOutput._(nested: nested); } - factory HttpPayloadWithXmlNamespaceInputOutput.build( - [void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) - updates]) = _$HttpPayloadWithXmlNamespaceInputOutput; + factory HttpPayloadWithXmlNamespaceInputOutput.build([ + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) updates, + ]) = _$HttpPayloadWithXmlNamespaceInputOutput; const HttpPayloadWithXmlNamespaceInputOutput._(); @@ -34,26 +37,24 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput PayloadWithXmlNamespace? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPayloadWithXmlNamespaceInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + }) => HttpPayloadWithXmlNamespaceInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); /// Constructs a [HttpPayloadWithXmlNamespaceInputOutput] from a [payload] and [response]. factory HttpPayloadWithXmlNamespaceInputOutput.fromResponse( PayloadWithXmlNamespace? payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceInputOutput.build((b) { - if (payload != null) { - b.nested.replace(payload); - } - }); + ) => HttpPayloadWithXmlNamespaceInputOutput.build((b) { + if (payload != null) { + b.nested.replace(payload); + } + }); static const List<_i1.SmithySerializer> - serializers = [HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer()]; + serializers = [HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer()]; PayloadWithXmlNamespace? get nested; @override @@ -64,12 +65,9 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPayloadWithXmlNamespaceInputOutput') - ..add( - 'nested', - nested, - ); + final helper = newBuiltValueToStringHelper( + 'HttpPayloadWithXmlNamespaceInputOutput', + )..add('nested', nested); return helper.toString(); } } @@ -77,21 +75,18 @@ abstract class HttpPayloadWithXmlNamespaceInputOutput class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceInputOutput'); + : super('HttpPayloadWithXmlNamespaceInputOutput'); @override Iterable get types => const [ - HttpPayloadWithXmlNamespaceInputOutput, - _$HttpPayloadWithXmlNamespaceInputOutput, - ]; + HttpPayloadWithXmlNamespaceInputOutput, + _$HttpPayloadWithXmlNamespaceInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespace deserialize( @@ -110,10 +105,12 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -130,16 +127,15 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer const _i1.XmlElementName( 'PayloadWithXmlNamespace', _i1.XmlNamespace('http://foo.com'), - ) + ), ]; final PayloadWithXmlNamespace(:name) = object; if (name != null) { result$ ..add(const _i1.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart index 939f8a65d4..22b9f202d7 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_payload_with_xml_namespace_input_output.g.dart @@ -11,9 +11,9 @@ class _$HttpPayloadWithXmlNamespaceInputOutput @override final PayloadWithXmlNamespace? nested; - factory _$HttpPayloadWithXmlNamespaceInputOutput( - [void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? - updates]) => + factory _$HttpPayloadWithXmlNamespaceInputOutput([ + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? updates, + ]) => (new HttpPayloadWithXmlNamespaceInputOutputBuilder()..update(updates)) ._build(); @@ -21,9 +21,8 @@ class _$HttpPayloadWithXmlNamespaceInputOutput @override HttpPayloadWithXmlNamespaceInputOutput rebuild( - void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPayloadWithXmlNamespaceInputOutputBuilder toBuilder() => @@ -47,8 +46,10 @@ class _$HttpPayloadWithXmlNamespaceInputOutput class HttpPayloadWithXmlNamespaceInputOutputBuilder implements - Builder { + Builder< + HttpPayloadWithXmlNamespaceInputOutput, + HttpPayloadWithXmlNamespaceInputOutputBuilder + > { _$HttpPayloadWithXmlNamespaceInputOutput? _$v; PayloadWithXmlNamespaceBuilder? _nested; @@ -75,7 +76,8 @@ class HttpPayloadWithXmlNamespaceInputOutputBuilder @override void update( - void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? updates) { + void Function(HttpPayloadWithXmlNamespaceInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -85,9 +87,11 @@ class HttpPayloadWithXmlNamespaceInputOutputBuilder _$HttpPayloadWithXmlNamespaceInputOutput _build() { _$HttpPayloadWithXmlNamespaceInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayloadWithXmlNamespaceInputOutput._( - nested: _nested?.build()); + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -95,9 +99,10 @@ class HttpPayloadWithXmlNamespaceInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayloadWithXmlNamespaceInputOutput', - _$failedField, - e.toString()); + r'HttpPayloadWithXmlNamespaceInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart index 63cfe547a4..4692495c97 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_prefix_headers_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class HttpPrefixHeadersInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpPrefixHeadersInputOutput({ @@ -31,9 +33,9 @@ abstract class HttpPrefixHeadersInputOutput ); } - factory HttpPrefixHeadersInputOutput.build( - [void Function(HttpPrefixHeadersInputOutputBuilder) updates]) = - _$HttpPrefixHeadersInputOutput; + factory HttpPrefixHeadersInputOutput.build([ + void Function(HttpPrefixHeadersInputOutputBuilder) updates, + ]) = _$HttpPrefixHeadersInputOutput; const HttpPrefixHeadersInputOutput._(); @@ -41,44 +43,34 @@ abstract class HttpPrefixHeadersInputOutput HttpPrefixHeadersInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpPrefixHeadersInputOutput.build((b) { - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - b.fooMap.addEntries(request.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + }) => HttpPrefixHeadersInputOutput.build((b) { + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + b.fooMap.addEntries( + request.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); /// Constructs a [HttpPrefixHeadersInputOutput] from a [payload] and [response]. factory HttpPrefixHeadersInputOutput.fromResponse( HttpPrefixHeadersInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInputOutput.build((b) { - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - b.fooMap.addEntries(response.headers.entries - .where((el) => el.key.startsWith('X-Foo-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'X-Foo-', - '', - ), - el.value, - ))); - }); + ) => HttpPrefixHeadersInputOutput.build((b) { + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + b.fooMap.addEntries( + response.headers.entries + .where((el) => el.key.startsWith('X-Foo-')) + .map((el) => MapEntry(el.key.replaceFirst('X-Foo-', ''), el.value)), + ); + }); static const List<_i1.SmithySerializer> - serializers = [HttpPrefixHeadersInputOutputRestXmlSerializer()]; + serializers = [HttpPrefixHeadersInputOutputRestXmlSerializer()]; String? get foo; _i3.BuiltMap? get fooMap; @@ -87,37 +79,30 @@ abstract class HttpPrefixHeadersInputOutput HttpPrefixHeadersInputOutputPayload(); @override - List get props => [ - foo, - fooMap, - ]; + List get props => [foo, fooMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpPrefixHeadersInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'fooMap', - fooMap, - ); + final helper = + newBuiltValueToStringHelper('HttpPrefixHeadersInputOutput') + ..add('foo', foo) + ..add('fooMap', fooMap); return helper.toString(); } } @_i4.internal abstract class HttpPrefixHeadersInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpPrefixHeadersInputOutputPayload( - [void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates]) = - _$HttpPrefixHeadersInputOutputPayload; + factory HttpPrefixHeadersInputOutputPayload([ + void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates, + ]) = _$HttpPrefixHeadersInputOutputPayload; const HttpPrefixHeadersInputOutputPayload._(); @@ -126,32 +111,31 @@ abstract class HttpPrefixHeadersInputOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpPrefixHeadersInputOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpPrefixHeadersInputOutputPayload', + ); return helper.toString(); } } -class HttpPrefixHeadersInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class HttpPrefixHeadersInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const HttpPrefixHeadersInputOutputRestXmlSerializer() - : super('HttpPrefixHeadersInputOutput'); + : super('HttpPrefixHeadersInputOutput'); @override Iterable get types => const [ - HttpPrefixHeadersInputOutput, - _$HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - _$HttpPrefixHeadersInputOutputPayload, - ]; + HttpPrefixHeadersInputOutput, + _$HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + _$HttpPrefixHeadersInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPrefixHeadersInputOutputPayload deserialize( @@ -169,7 +153,7 @@ class HttpPrefixHeadersInputOutputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpPrefixHeadersInputOutput') + const _i1.XmlElementName('HttpPrefixHeadersInputOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart index 91b4b572d9..893073817f 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_prefix_headers_input_output.g.dart @@ -12,16 +12,16 @@ class _$HttpPrefixHeadersInputOutput extends HttpPrefixHeadersInputOutput { @override final _i3.BuiltMap? fooMap; - factory _$HttpPrefixHeadersInputOutput( - [void Function(HttpPrefixHeadersInputOutputBuilder)? updates]) => - (new HttpPrefixHeadersInputOutputBuilder()..update(updates))._build(); + factory _$HttpPrefixHeadersInputOutput([ + void Function(HttpPrefixHeadersInputOutputBuilder)? updates, + ]) => (new HttpPrefixHeadersInputOutputBuilder()..update(updates))._build(); _$HttpPrefixHeadersInputOutput._({this.foo, this.fooMap}) : super._(); @override HttpPrefixHeadersInputOutput rebuild( - void Function(HttpPrefixHeadersInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputOutputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$HttpPrefixHeadersInputOutput extends HttpPrefixHeadersInputOutput { class HttpPrefixHeadersInputOutputBuilder implements - Builder { + Builder< + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputBuilder + > { _$HttpPrefixHeadersInputOutput? _$v; String? _foo; @@ -89,9 +91,12 @@ class HttpPrefixHeadersInputOutputBuilder _$HttpPrefixHeadersInputOutput _build() { _$HttpPrefixHeadersInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeadersInputOutput._( - foo: foo, fooMap: _fooMap?.build()); + foo: foo, + fooMap: _fooMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -99,7 +104,10 @@ class HttpPrefixHeadersInputOutputBuilder _fooMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeadersInputOutput', _$failedField, e.toString()); + r'HttpPrefixHeadersInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -110,9 +118,9 @@ class HttpPrefixHeadersInputOutputBuilder class _$HttpPrefixHeadersInputOutputPayload extends HttpPrefixHeadersInputOutputPayload { - factory _$HttpPrefixHeadersInputOutputPayload( - [void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? - updates]) => + factory _$HttpPrefixHeadersInputOutputPayload([ + void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? updates, + ]) => (new HttpPrefixHeadersInputOutputPayloadBuilder()..update(updates)) ._build(); @@ -120,8 +128,8 @@ class _$HttpPrefixHeadersInputOutputPayload @override HttpPrefixHeadersInputOutputPayload rebuild( - void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpPrefixHeadersInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpPrefixHeadersInputOutputPayloadBuilder toBuilder() => @@ -141,8 +149,10 @@ class _$HttpPrefixHeadersInputOutputPayload class HttpPrefixHeadersInputOutputPayloadBuilder implements - Builder { + Builder< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutputPayloadBuilder + > { _$HttpPrefixHeadersInputOutputPayload? _$v; HttpPrefixHeadersInputOutputPayloadBuilder(); @@ -155,7 +165,8 @@ class HttpPrefixHeadersInputOutputPayloadBuilder @override void update( - void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? updates) { + void Function(HttpPrefixHeadersInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart index 3d2d6efa57..027b212524 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_request_with_float_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithFloatLabelsInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithFloatLabelsInput({ required double float, required double double_, }) { - return _$HttpRequestWithFloatLabelsInput._( - float: float, - double_: double_, - ); + return _$HttpRequestWithFloatLabelsInput._(float: float, double_: double_); } - factory HttpRequestWithFloatLabelsInput.build( - [void Function(HttpRequestWithFloatLabelsInputBuilder) updates]) = - _$HttpRequestWithFloatLabelsInput; + factory HttpRequestWithFloatLabelsInput.build([ + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInput; const HttpRequestWithFloatLabelsInput._(); @@ -40,19 +39,19 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithFloatLabelsInput.build((b) { - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - }); + }) => HttpRequestWithFloatLabelsInput.build((b) { + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithFloatLabelsInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithFloatLabelsInputRestXmlSerializer()]; double get float; double get double_; @@ -64,10 +63,7 @@ abstract class HttpRequestWithFloatLabelsInput case 'double': return double_.toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -75,38 +71,30 @@ abstract class HttpRequestWithFloatLabelsInput HttpRequestWithFloatLabelsInputPayload(); @override - List get props => [ - float, - double_, - ]; + List get props => [float, double_]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInput') - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ); + ..add('float', float) + ..add('double_', double_); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithFloatLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates]) = _$HttpRequestWithFloatLabelsInputPayload; + factory HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithFloatLabelsInputPayload; const HttpRequestWithFloatLabelsInputPayload._(); @@ -115,32 +103,31 @@ abstract class HttpRequestWithFloatLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithFloatLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithFloatLabelsInputPayload', + ); return helper.toString(); } } -class HttpRequestWithFloatLabelsInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithFloatLabelsInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestXmlSerializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [ - HttpRequestWithFloatLabelsInput, - _$HttpRequestWithFloatLabelsInput, - HttpRequestWithFloatLabelsInputPayload, - _$HttpRequestWithFloatLabelsInputPayload, - ]; + HttpRequestWithFloatLabelsInput, + _$HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputPayload, + _$HttpRequestWithFloatLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithFloatLabelsInputPayload deserialize( @@ -158,7 +145,7 @@ class HttpRequestWithFloatLabelsInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithFloatLabelsInput') + const _i1.XmlElementName('HttpRequestWithFloatLabelsInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart index c76e934e86..7aefc65834 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_float_labels_input.g.dart @@ -13,23 +13,31 @@ class _$HttpRequestWithFloatLabelsInput @override final double double_; - factory _$HttpRequestWithFloatLabelsInput( - [void Function(HttpRequestWithFloatLabelsInputBuilder)? updates]) => + factory _$HttpRequestWithFloatLabelsInput([ + void Function(HttpRequestWithFloatLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputBuilder()..update(updates))._build(); - _$HttpRequestWithFloatLabelsInput._( - {required this.float, required this.double_}) - : super._() { + _$HttpRequestWithFloatLabelsInput._({ + required this.float, + required this.double_, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'); + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_'); + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ); } @override HttpRequestWithFloatLabelsInput rebuild( - void Function(HttpRequestWithFloatLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputBuilder toBuilder() => @@ -55,8 +63,10 @@ class _$HttpRequestWithFloatLabelsInput class HttpRequestWithFloatLabelsInputBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInput, + HttpRequestWithFloatLabelsInputBuilder + > { _$HttpRequestWithFloatLabelsInput? _$v; double? _float; @@ -94,12 +104,20 @@ class HttpRequestWithFloatLabelsInputBuilder HttpRequestWithFloatLabelsInput build() => _build(); _$HttpRequestWithFloatLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithFloatLabelsInput._( - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithFloatLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithFloatLabelsInput', 'double_')); + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithFloatLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithFloatLabelsInput', + 'double_', + ), + ); replace(_$result); return _$result; } @@ -107,9 +125,9 @@ class HttpRequestWithFloatLabelsInputBuilder class _$HttpRequestWithFloatLabelsInputPayload extends HttpRequestWithFloatLabelsInputPayload { - factory _$HttpRequestWithFloatLabelsInputPayload( - [void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithFloatLabelsInputPayload([ + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithFloatLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -117,9 +135,8 @@ class _$HttpRequestWithFloatLabelsInputPayload @override HttpRequestWithFloatLabelsInputPayload rebuild( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithFloatLabelsInputPayloadBuilder toBuilder() => @@ -139,8 +156,10 @@ class _$HttpRequestWithFloatLabelsInputPayload class HttpRequestWithFloatLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInputPayloadBuilder + > { _$HttpRequestWithFloatLabelsInputPayload? _$v; HttpRequestWithFloatLabelsInputPayloadBuilder(); @@ -153,7 +172,8 @@ class HttpRequestWithFloatLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithFloatLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart index b5caed02c4..f2603ee57c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_request_with_greedy_label_in_path_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,23 +16,22 @@ abstract class HttpRequestWithGreedyLabelInPathInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithGreedyLabelInPathInput({ required String foo, required String baz, }) { - return _$HttpRequestWithGreedyLabelInPathInput._( - foo: foo, - baz: baz, - ); + return _$HttpRequestWithGreedyLabelInPathInput._(foo: foo, baz: baz); } - factory HttpRequestWithGreedyLabelInPathInput.build( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInput; + factory HttpRequestWithGreedyLabelInPathInput.build([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInput; const HttpRequestWithGreedyLabelInPathInput._(); @@ -40,19 +39,19 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithGreedyLabelInPathInput.build((b) { - if (labels['foo'] != null) { - b.foo = labels['foo']!; - } - if (labels['baz'] != null) { - b.baz = labels['baz']!; - } - }); + }) => HttpRequestWithGreedyLabelInPathInput.build((b) { + if (labels['foo'] != null) { + b.foo = labels['foo']!; + } + if (labels['baz'] != null) { + b.baz = labels['baz']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [HttpRequestWithGreedyLabelInPathInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [HttpRequestWithGreedyLabelInPathInputRestXmlSerializer()]; String get foo; String get baz; @@ -64,10 +63,7 @@ abstract class HttpRequestWithGreedyLabelInPathInput case 'baz': return baz; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -75,38 +71,30 @@ abstract class HttpRequestWithGreedyLabelInPathInput HttpRequestWithGreedyLabelInPathInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { final helper = newBuiltValueToStringHelper('HttpRequestWithGreedyLabelInPathInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithGreedyLabelInPathInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates]) = _$HttpRequestWithGreedyLabelInPathInputPayload; + factory HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ]) = _$HttpRequestWithGreedyLabelInPathInputPayload; const HttpRequestWithGreedyLabelInPathInputPayload._(); @@ -116,31 +104,32 @@ abstract class HttpRequestWithGreedyLabelInPathInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithGreedyLabelInPathInputPayload'); + 'HttpRequestWithGreedyLabelInPathInputPayload', + ); return helper.toString(); } } -class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + HttpRequestWithGreedyLabelInPathInputPayload + > { const HttpRequestWithGreedyLabelInPathInputRestXmlSerializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [ - HttpRequestWithGreedyLabelInPathInput, - _$HttpRequestWithGreedyLabelInPathInput, - HttpRequestWithGreedyLabelInPathInputPayload, - _$HttpRequestWithGreedyLabelInPathInputPayload, - ]; + HttpRequestWithGreedyLabelInPathInput, + _$HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputPayload, + _$HttpRequestWithGreedyLabelInPathInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithGreedyLabelInPathInputPayload deserialize( @@ -158,7 +147,7 @@ class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithGreedyLabelInPathInput') + const _i1.XmlElementName('HttpRequestWithGreedyLabelInPathInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart index 17074744a3..82b442bac4 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_greedy_label_in_path_input.g.dart @@ -13,26 +13,32 @@ class _$HttpRequestWithGreedyLabelInPathInput @override final String baz; - factory _$HttpRequestWithGreedyLabelInPathInput( - [void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInput([ + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputBuilder()..update(updates)) ._build(); - _$HttpRequestWithGreedyLabelInPathInput._( - {required this.foo, required this.baz}) - : super._() { + _$HttpRequestWithGreedyLabelInPathInput._({ + required this.foo, + required this.baz, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'); + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ); BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz'); + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ); } @override HttpRequestWithGreedyLabelInPathInput rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputBuilder toBuilder() => @@ -58,8 +64,10 @@ class _$HttpRequestWithGreedyLabelInPathInput class HttpRequestWithGreedyLabelInPathInputBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInput, + HttpRequestWithGreedyLabelInPathInputBuilder + > { _$HttpRequestWithGreedyLabelInPathInput? _$v; String? _foo; @@ -90,7 +98,8 @@ class HttpRequestWithGreedyLabelInPathInputBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates) { + void Function(HttpRequestWithGreedyLabelInPathInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -98,12 +107,20 @@ class HttpRequestWithGreedyLabelInPathInputBuilder HttpRequestWithGreedyLabelInPathInput build() => _build(); _$HttpRequestWithGreedyLabelInPathInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithGreedyLabelInPathInput._( - foo: BuiltValueNullFieldError.checkNotNull( - foo, r'HttpRequestWithGreedyLabelInPathInput', 'foo'), - baz: BuiltValueNullFieldError.checkNotNull( - baz, r'HttpRequestWithGreedyLabelInPathInput', 'baz')); + foo: BuiltValueNullFieldError.checkNotNull( + foo, + r'HttpRequestWithGreedyLabelInPathInput', + 'foo', + ), + baz: BuiltValueNullFieldError.checkNotNull( + baz, + r'HttpRequestWithGreedyLabelInPathInput', + 'baz', + ), + ); replace(_$result); return _$result; } @@ -111,9 +128,9 @@ class HttpRequestWithGreedyLabelInPathInputBuilder class _$HttpRequestWithGreedyLabelInPathInputPayload extends HttpRequestWithGreedyLabelInPathInputPayload { - factory _$HttpRequestWithGreedyLabelInPathInputPayload( - [void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithGreedyLabelInPathInputPayload([ + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithGreedyLabelInPathInputPayloadBuilder() ..update(updates)) ._build(); @@ -122,9 +139,8 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload @override HttpRequestWithGreedyLabelInPathInputPayload rebuild( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithGreedyLabelInPathInputPayloadBuilder toBuilder() => @@ -144,8 +160,10 @@ class _$HttpRequestWithGreedyLabelInPathInputPayload class HttpRequestWithGreedyLabelInPathInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInputPayloadBuilder + > { _$HttpRequestWithGreedyLabelInPathInputPayload? _$v; HttpRequestWithGreedyLabelInPathInputPayloadBuilder(); @@ -158,8 +176,8 @@ class HttpRequestWithGreedyLabelInPathInputPayloadBuilder @override void update( - void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithGreedyLabelInPathInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart index 58c6397e27..352ad338e0 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_request_with_labels_and_timestamp_format_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory HttpRequestWithLabelsAndTimestampFormatInput({ @@ -40,9 +42,9 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput ); } - factory HttpRequestWithLabelsAndTimestampFormatInput.build( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInput; + factory HttpRequestWithLabelsAndTimestampFormatInput.build([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInput; const HttpRequestWithLabelsAndTimestampFormatInput._(); @@ -50,56 +52,63 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput HttpRequestWithLabelsAndTimestampFormatInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsAndTimestampFormatInput.build((b) { - if (labels['memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsAndTimestampFormatInput.build((b) { + if (labels['memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (labels['memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( labels['memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (labels['memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( labels['memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (labels['defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( labels['defaultFormat']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (labels['targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (labels['targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(labels['targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (labels['targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (labels['targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( labels['targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (labels['targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (labels['targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( labels['targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List< - _i1.SmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload>> serializers = [ - HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() + _i1.SmithySerializer + > + serializers = [ + HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer(), ]; DateTime get memberEpochSeconds; @@ -113,38 +122,35 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput String labelFor(String key) { switch (key) { case 'memberEpochSeconds': - return _i1.Timestamp(memberEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + memberEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'memberHttpDate': - return _i1.Timestamp(memberHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + memberHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'memberDateTime': - return _i1.Timestamp(memberDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + memberDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'defaultFormat': - return _i1.Timestamp(defaultFormat) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + defaultFormat, + ).format(_i1.TimestampFormat.dateTime).toString(); case 'targetEpochSeconds': - return _i1.Timestamp(targetEpochSeconds) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + return _i1.Timestamp( + targetEpochSeconds, + ).format(_i1.TimestampFormat.epochSeconds).toString(); case 'targetHttpDate': - return _i1.Timestamp(targetHttpDate) - .format(_i1.TimestampFormat.httpDate) - .toString(); + return _i1.Timestamp( + targetHttpDate, + ).format(_i1.TimestampFormat.httpDate).toString(); case 'targetDateTime': - return _i1.Timestamp(targetDateTime) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + targetDateTime, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -153,62 +159,45 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInput @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInput') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper( + 'HttpRequestWithLabelsAndTimestampFormatInput', + ) + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; + factory HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ]) = _$HttpRequestWithLabelsAndTimestampFormatInputPayload; const HttpRequestWithLabelsAndTimestampFormatInputPayload._(); @@ -218,32 +207,32 @@ abstract class HttpRequestWithLabelsAndTimestampFormatInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'HttpRequestWithLabelsAndTimestampFormatInputPayload'); + 'HttpRequestWithLabelsAndTimestampFormatInputPayload', + ); return helper.toString(); } } class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer - extends _i1.StructuredSmithySerializer< - HttpRequestWithLabelsAndTimestampFormatInputPayload> { + extends + _i1.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInputPayload + > { const HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override Iterable get types => const [ - HttpRequestWithLabelsAndTimestampFormatInput, - _$HttpRequestWithLabelsAndTimestampFormatInput, - HttpRequestWithLabelsAndTimestampFormatInputPayload, - _$HttpRequestWithLabelsAndTimestampFormatInputPayload, - ]; + HttpRequestWithLabelsAndTimestampFormatInput, + _$HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputPayload, + _$HttpRequestWithLabelsAndTimestampFormatInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInputPayload deserialize( @@ -261,7 +250,7 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithLabelsAndTimestampFormatInput') + const _i1.XmlElementName('HttpRequestWithLabelsAndTimestampFormatInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart index 369c8ce5b1..1aa19a195a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_and_timestamp_format_input.g.dart @@ -23,43 +23,63 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput @override final DateTime targetDateTime; - factory _$HttpRequestWithLabelsAndTimestampFormatInput( - [void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInput([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputBuilder() ..update(updates)) ._build(); - _$HttpRequestWithLabelsAndTimestampFormatInput._( - {required this.memberEpochSeconds, - required this.memberHttpDate, - required this.memberDateTime, - required this.defaultFormat, - required this.targetEpochSeconds, - required this.targetHttpDate, - required this.targetDateTime}) - : super._() { - BuiltValueNullFieldError.checkNotNull(memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(memberHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'); - BuiltValueNullFieldError.checkNotNull(memberDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'); - BuiltValueNullFieldError.checkNotNull(defaultFormat, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'); - BuiltValueNullFieldError.checkNotNull(targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetEpochSeconds'); - BuiltValueNullFieldError.checkNotNull(targetHttpDate, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'); - BuiltValueNullFieldError.checkNotNull(targetDateTime, - r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime'); + _$HttpRequestWithLabelsAndTimestampFormatInput._({ + required this.memberEpochSeconds, + required this.memberHttpDate, + required this.memberDateTime, + required this.defaultFormat, + required this.targetEpochSeconds, + required this.targetHttpDate, + required this.targetDateTime, + }) : super._() { + BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ); + BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ); + BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ); + BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ); + BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ); } @override HttpRequestWithLabelsAndTimestampFormatInput rebuild( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputBuilder toBuilder() => @@ -95,8 +115,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInput class HttpRequestWithLabelsAndTimestampFormatInputBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInput, + HttpRequestWithLabelsAndTimestampFormatInputBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInput? _$v; DateTime? _memberEpochSeconds; @@ -159,8 +181,8 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -168,25 +190,45 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder HttpRequestWithLabelsAndTimestampFormatInput build() => _build(); _$HttpRequestWithLabelsAndTimestampFormatInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsAndTimestampFormatInput._( - memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( - memberEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'memberEpochSeconds'), - memberHttpDate: BuiltValueNullFieldError.checkNotNull( - memberHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberHttpDate'), - memberDateTime: BuiltValueNullFieldError.checkNotNull( - memberDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'memberDateTime'), - defaultFormat: BuiltValueNullFieldError.checkNotNull( - defaultFormat, r'HttpRequestWithLabelsAndTimestampFormatInput', 'defaultFormat'), - targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( - targetEpochSeconds, - r'HttpRequestWithLabelsAndTimestampFormatInput', - 'targetEpochSeconds'), - targetHttpDate: BuiltValueNullFieldError.checkNotNull( - targetHttpDate, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetHttpDate'), - targetDateTime: BuiltValueNullFieldError.checkNotNull(targetDateTime, r'HttpRequestWithLabelsAndTimestampFormatInput', 'targetDateTime')); + memberEpochSeconds: BuiltValueNullFieldError.checkNotNull( + memberEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberEpochSeconds', + ), + memberHttpDate: BuiltValueNullFieldError.checkNotNull( + memberHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberHttpDate', + ), + memberDateTime: BuiltValueNullFieldError.checkNotNull( + memberDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'memberDateTime', + ), + defaultFormat: BuiltValueNullFieldError.checkNotNull( + defaultFormat, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'defaultFormat', + ), + targetEpochSeconds: BuiltValueNullFieldError.checkNotNull( + targetEpochSeconds, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetEpochSeconds', + ), + targetHttpDate: BuiltValueNullFieldError.checkNotNull( + targetHttpDate, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetHttpDate', + ), + targetDateTime: BuiltValueNullFieldError.checkNotNull( + targetDateTime, + r'HttpRequestWithLabelsAndTimestampFormatInput', + 'targetDateTime', + ), + ); replace(_$result); return _$result; } @@ -194,10 +236,10 @@ class HttpRequestWithLabelsAndTimestampFormatInputBuilder class _$HttpRequestWithLabelsAndTimestampFormatInputPayload extends HttpRequestWithLabelsAndTimestampFormatInputPayload { - factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload( - [void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates]) => + factory _$HttpRequestWithLabelsAndTimestampFormatInputPayload([ + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ]) => (new HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder() ..update(updates)) ._build(); @@ -206,10 +248,9 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload @override HttpRequestWithLabelsAndTimestampFormatInputPayload rebuild( - void Function( - HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder) + updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder toBuilder() => @@ -230,8 +271,10 @@ class _$HttpRequestWithLabelsAndTimestampFormatInputPayload class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder + > { _$HttpRequestWithLabelsAndTimestampFormatInputPayload? _$v; HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder(); @@ -244,8 +287,9 @@ class HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? - updates) { + void Function(HttpRequestWithLabelsAndTimestampFormatInputPayloadBuilder)? + updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart index a163ba219c..bc231de15c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_request_with_labels_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -42,9 +42,9 @@ abstract class HttpRequestWithLabelsInput ); } - factory HttpRequestWithLabelsInput.build( - [void Function(HttpRequestWithLabelsInputBuilder) updates]) = - _$HttpRequestWithLabelsInput; + factory HttpRequestWithLabelsInput.build([ + void Function(HttpRequestWithLabelsInputBuilder) updates, + ]) = _$HttpRequestWithLabelsInput; const HttpRequestWithLabelsInput._(); @@ -52,39 +52,39 @@ abstract class HttpRequestWithLabelsInput HttpRequestWithLabelsInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HttpRequestWithLabelsInput.build((b) { - if (labels['string'] != null) { - b.string = labels['string']!; - } - if (labels['short'] != null) { - b.short = int.parse(labels['short']!); - } - if (labels['integer'] != null) { - b.integer = int.parse(labels['integer']!); - } - if (labels['long'] != null) { - b.long = _i3.Int64.parseInt(labels['long']!); - } - if (labels['float'] != null) { - b.float = double.parse(labels['float']!); - } - if (labels['double_'] != null) { - b.double_ = double.parse(labels['double_']!); - } - if (labels['boolean'] != null) { - b.boolean = labels['boolean']! == 'true'; - } - if (labels['timestamp'] != null) { - b.timestamp = _i1.Timestamp.parse( + }) => HttpRequestWithLabelsInput.build((b) { + if (labels['string'] != null) { + b.string = labels['string']!; + } + if (labels['short'] != null) { + b.short = int.parse(labels['short']!); + } + if (labels['integer'] != null) { + b.integer = int.parse(labels['integer']!); + } + if (labels['long'] != null) { + b.long = _i3.Int64.parseInt(labels['long']!); + } + if (labels['float'] != null) { + b.float = double.parse(labels['float']!); + } + if (labels['double_'] != null) { + b.double_ = double.parse(labels['double_']!); + } + if (labels['boolean'] != null) { + b.boolean = labels['boolean']! == 'true'; + } + if (labels['timestamp'] != null) { + b.timestamp = + _i1.Timestamp.parse( labels['timestamp']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [HttpRequestWithLabelsInputRestXmlSerializer()]; + serializers = [HttpRequestWithLabelsInputRestXmlSerializer()]; String get string; int get short; @@ -116,14 +116,11 @@ abstract class HttpRequestWithLabelsInput case 'boolean': return boolean.toString(); case 'timestamp': - return _i1.Timestamp(timestamp) - .format(_i1.TimestampFormat.dateTime) - .toString(); + return _i1.Timestamp( + timestamp, + ).format(_i1.TimestampFormat.dateTime).toString(); } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -132,66 +129,44 @@ abstract class HttpRequestWithLabelsInput @override List get props => [ - string, - short, - integer, - long, - float, - double_, - boolean, - timestamp, - ]; + string, + short, + integer, + long, + float, + double_, + boolean, + timestamp, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('HttpRequestWithLabelsInput') - ..add( - 'string', - string, - ) - ..add( - 'short', - short, - ) - ..add( - 'integer', - integer, - ) - ..add( - 'long', - long, - ) - ..add( - 'float', - float, - ) - ..add( - 'double_', - double_, - ) - ..add( - 'boolean', - boolean, - ) - ..add( - 'timestamp', - timestamp, - ); + final helper = + newBuiltValueToStringHelper('HttpRequestWithLabelsInput') + ..add('string', string) + ..add('short', short) + ..add('integer', integer) + ..add('long', long) + ..add('float', float) + ..add('double_', double_) + ..add('boolean', boolean) + ..add('timestamp', timestamp); return helper.toString(); } } @_i4.internal abstract class HttpRequestWithLabelsInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + >, _i1.EmptyPayload { - factory HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder) updates]) = - _$HttpRequestWithLabelsInputPayload; + factory HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ]) = _$HttpRequestWithLabelsInputPayload; const HttpRequestWithLabelsInputPayload._(); @@ -200,8 +175,9 @@ abstract class HttpRequestWithLabelsInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('HttpRequestWithLabelsInputPayload'); + final helper = newBuiltValueToStringHelper( + 'HttpRequestWithLabelsInputPayload', + ); return helper.toString(); } } @@ -209,23 +185,20 @@ abstract class HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestXmlSerializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [ - HttpRequestWithLabelsInput, - _$HttpRequestWithLabelsInput, - HttpRequestWithLabelsInputPayload, - _$HttpRequestWithLabelsInputPayload, - ]; + HttpRequestWithLabelsInput, + _$HttpRequestWithLabelsInput, + HttpRequestWithLabelsInputPayload, + _$HttpRequestWithLabelsInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsInputPayload deserialize( @@ -243,7 +216,7 @@ class HttpRequestWithLabelsInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('HttpRequestWithLabelsInput') + const _i1.XmlElementName('HttpRequestWithLabelsInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart index b0121ae103..843933b2b9 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_request_with_labels_input.g.dart @@ -24,42 +24,66 @@ class _$HttpRequestWithLabelsInput extends HttpRequestWithLabelsInput { @override final DateTime timestamp; - factory _$HttpRequestWithLabelsInput( - [void Function(HttpRequestWithLabelsInputBuilder)? updates]) => - (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); - - _$HttpRequestWithLabelsInput._( - {required this.string, - required this.short, - required this.integer, - required this.long, - required this.float, - required this.double_, - required this.boolean, - required this.timestamp}) - : super._() { + factory _$HttpRequestWithLabelsInput([ + void Function(HttpRequestWithLabelsInputBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputBuilder()..update(updates))._build(); + + _$HttpRequestWithLabelsInput._({ + required this.string, + required this.short, + required this.integer, + required this.long, + required this.float, + required this.double_, + required this.boolean, + required this.timestamp, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'); + string, + r'HttpRequestWithLabelsInput', + 'string', + ); BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'); + short, + r'HttpRequestWithLabelsInput', + 'short', + ); BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'); + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ); BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'); + long, + r'HttpRequestWithLabelsInput', + 'long', + ); BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'); + float, + r'HttpRequestWithLabelsInput', + 'float', + ); BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'); + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ); BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'); + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ); BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp'); + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ); } @override HttpRequestWithLabelsInput rebuild( - void Function(HttpRequestWithLabelsInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputBuilder toBuilder() => @@ -165,24 +189,50 @@ class HttpRequestWithLabelsInputBuilder HttpRequestWithLabelsInput build() => _build(); _$HttpRequestWithLabelsInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestWithLabelsInput._( - string: BuiltValueNullFieldError.checkNotNull( - string, r'HttpRequestWithLabelsInput', 'string'), - short: BuiltValueNullFieldError.checkNotNull( - short, r'HttpRequestWithLabelsInput', 'short'), - integer: BuiltValueNullFieldError.checkNotNull( - integer, r'HttpRequestWithLabelsInput', 'integer'), - long: BuiltValueNullFieldError.checkNotNull( - long, r'HttpRequestWithLabelsInput', 'long'), - float: BuiltValueNullFieldError.checkNotNull( - float, r'HttpRequestWithLabelsInput', 'float'), - double_: BuiltValueNullFieldError.checkNotNull( - double_, r'HttpRequestWithLabelsInput', 'double_'), - boolean: BuiltValueNullFieldError.checkNotNull( - boolean, r'HttpRequestWithLabelsInput', 'boolean'), - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'HttpRequestWithLabelsInput', 'timestamp')); + string: BuiltValueNullFieldError.checkNotNull( + string, + r'HttpRequestWithLabelsInput', + 'string', + ), + short: BuiltValueNullFieldError.checkNotNull( + short, + r'HttpRequestWithLabelsInput', + 'short', + ), + integer: BuiltValueNullFieldError.checkNotNull( + integer, + r'HttpRequestWithLabelsInput', + 'integer', + ), + long: BuiltValueNullFieldError.checkNotNull( + long, + r'HttpRequestWithLabelsInput', + 'long', + ), + float: BuiltValueNullFieldError.checkNotNull( + float, + r'HttpRequestWithLabelsInput', + 'float', + ), + double_: BuiltValueNullFieldError.checkNotNull( + double_, + r'HttpRequestWithLabelsInput', + 'double_', + ), + boolean: BuiltValueNullFieldError.checkNotNull( + boolean, + r'HttpRequestWithLabelsInput', + 'boolean', + ), + timestamp: BuiltValueNullFieldError.checkNotNull( + timestamp, + r'HttpRequestWithLabelsInput', + 'timestamp', + ), + ); replace(_$result); return _$result; } @@ -190,8 +240,9 @@ class HttpRequestWithLabelsInputBuilder class _$HttpRequestWithLabelsInputPayload extends HttpRequestWithLabelsInputPayload { - factory _$HttpRequestWithLabelsInputPayload( - [void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates]) => + factory _$HttpRequestWithLabelsInputPayload([ + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ]) => (new HttpRequestWithLabelsInputPayloadBuilder()..update(updates)) ._build(); @@ -199,8 +250,8 @@ class _$HttpRequestWithLabelsInputPayload @override HttpRequestWithLabelsInputPayload rebuild( - void Function(HttpRequestWithLabelsInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestWithLabelsInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestWithLabelsInputPayloadBuilder toBuilder() => @@ -220,8 +271,10 @@ class _$HttpRequestWithLabelsInputPayload class HttpRequestWithLabelsInputPayloadBuilder implements - Builder { + Builder< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInputPayloadBuilder + > { _$HttpRequestWithLabelsInputPayload? _$v; HttpRequestWithLabelsInputPayloadBuilder(); @@ -234,7 +287,8 @@ class HttpRequestWithLabelsInputPayloadBuilder @override void update( - void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates) { + void Function(HttpRequestWithLabelsInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart index 0f4da9359b..f06667ebd1 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.http_response_code_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class HttpResponseCodeOutput return _$HttpResponseCodeOutput._(status: status); } - factory HttpResponseCodeOutput.build( - [void Function(HttpResponseCodeOutputBuilder) updates]) = - _$HttpResponseCodeOutput; + factory HttpResponseCodeOutput.build([ + void Function(HttpResponseCodeOutputBuilder) updates, + ]) = _$HttpResponseCodeOutput; const HttpResponseCodeOutput._(); @@ -31,13 +31,12 @@ abstract class HttpResponseCodeOutput factory HttpResponseCodeOutput.fromResponse( HttpResponseCodeOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.build((b) { - b.status = response.statusCode; - }); + ) => HttpResponseCodeOutput.build((b) { + b.status = response.statusCode; + }); static const List<_i2.SmithySerializer> - serializers = [HttpResponseCodeOutputRestXmlSerializer()]; + serializers = [HttpResponseCodeOutputRestXmlSerializer()]; int? get status; @override @@ -49,25 +48,23 @@ abstract class HttpResponseCodeOutput @override String toString() { final helper = newBuiltValueToStringHelper('HttpResponseCodeOutput') - ..add( - 'status', - status, - ); + ..add('status', status); return helper.toString(); } } @_i3.internal abstract class HttpResponseCodeOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + >, _i2.EmptyPayload { - factory HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder) updates]) = - _$HttpResponseCodeOutputPayload; + factory HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ]) = _$HttpResponseCodeOutputPayload; const HttpResponseCodeOutputPayload._(); @@ -84,23 +81,20 @@ abstract class HttpResponseCodeOutputPayload class HttpResponseCodeOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const HttpResponseCodeOutputRestXmlSerializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [ - HttpResponseCodeOutput, - _$HttpResponseCodeOutput, - HttpResponseCodeOutputPayload, - _$HttpResponseCodeOutputPayload, - ]; + HttpResponseCodeOutput, + _$HttpResponseCodeOutput, + HttpResponseCodeOutputPayload, + _$HttpResponseCodeOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpResponseCodeOutputPayload deserialize( @@ -118,7 +112,7 @@ class HttpResponseCodeOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('HttpResponseCodeOutput') + const _i2.XmlElementName('HttpResponseCodeOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart index 52c9134fa6..8ce35b317a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/http_response_code_output.g.dart @@ -10,16 +10,16 @@ class _$HttpResponseCodeOutput extends HttpResponseCodeOutput { @override final int? status; - factory _$HttpResponseCodeOutput( - [void Function(HttpResponseCodeOutputBuilder)? updates]) => - (new HttpResponseCodeOutputBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutput([ + void Function(HttpResponseCodeOutputBuilder)? updates, + ]) => (new HttpResponseCodeOutputBuilder()..update(updates))._build(); _$HttpResponseCodeOutput._({this.status}) : super._(); @override HttpResponseCodeOutput rebuild( - void Function(HttpResponseCodeOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputBuilder toBuilder() => @@ -81,16 +81,16 @@ class HttpResponseCodeOutputBuilder } class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { - factory _$HttpResponseCodeOutputPayload( - [void Function(HttpResponseCodeOutputPayloadBuilder)? updates]) => - (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); + factory _$HttpResponseCodeOutputPayload([ + void Function(HttpResponseCodeOutputPayloadBuilder)? updates, + ]) => (new HttpResponseCodeOutputPayloadBuilder()..update(updates))._build(); _$HttpResponseCodeOutputPayload._() : super._(); @override HttpResponseCodeOutputPayload rebuild( - void Function(HttpResponseCodeOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpResponseCodeOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpResponseCodeOutputPayloadBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$HttpResponseCodeOutputPayload extends HttpResponseCodeOutputPayload { class HttpResponseCodeOutputPayloadBuilder implements - Builder { + Builder< + HttpResponseCodeOutputPayload, + HttpResponseCodeOutputPayloadBuilder + > { _$HttpResponseCodeOutputPayload? _$v; HttpResponseCodeOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart index fb164f28d6..039173d561 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.ignore_query_params_in_response_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,18 +11,19 @@ import 'package:smithy/smithy.dart' as _i2; part 'ignore_query_params_in_response_output.g.dart'; abstract class IgnoreQueryParamsInResponseOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { factory IgnoreQueryParamsInResponseOutput({String? baz}) { return _$IgnoreQueryParamsInResponseOutput._(baz: baz); } - factory IgnoreQueryParamsInResponseOutput.build( - [void Function(IgnoreQueryParamsInResponseOutputBuilder) updates]) = - _$IgnoreQueryParamsInResponseOutput; + factory IgnoreQueryParamsInResponseOutput.build([ + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ]) = _$IgnoreQueryParamsInResponseOutput; const IgnoreQueryParamsInResponseOutput._(); @@ -30,11 +31,10 @@ abstract class IgnoreQueryParamsInResponseOutput factory IgnoreQueryParamsInResponseOutput.fromResponse( IgnoreQueryParamsInResponseOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> - serializers = [IgnoreQueryParamsInResponseOutputRestXmlSerializer()]; + serializers = [IgnoreQueryParamsInResponseOutputRestXmlSerializer()]; String? get baz; @override @@ -42,12 +42,9 @@ abstract class IgnoreQueryParamsInResponseOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('IgnoreQueryParamsInResponseOutput') - ..add( - 'baz', - baz, - ); + final helper = newBuiltValueToStringHelper( + 'IgnoreQueryParamsInResponseOutput', + )..add('baz', baz); return helper.toString(); } } @@ -55,21 +52,18 @@ abstract class IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestXmlSerializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [ - IgnoreQueryParamsInResponseOutput, - _$IgnoreQueryParamsInResponseOutput, - ]; + IgnoreQueryParamsInResponseOutput, + _$IgnoreQueryParamsInResponseOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -88,10 +82,12 @@ class IgnoreQueryParamsInResponseOutputRestXmlSerializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -105,16 +101,15 @@ class IgnoreQueryParamsInResponseOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('IgnoreQueryParamsInResponseOutput') + const _i2.XmlElementName('IgnoreQueryParamsInResponseOutput'), ]; final IgnoreQueryParamsInResponseOutput(:baz) = object; if (baz != null) { result$ ..add(const _i2.XmlElementName('baz')) - ..add(serializers.serialize( - baz, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(baz, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart index a893debc6f..c6019441a5 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/ignore_query_params_in_response_output.g.dart @@ -11,8 +11,9 @@ class _$IgnoreQueryParamsInResponseOutput @override final String? baz; - factory _$IgnoreQueryParamsInResponseOutput( - [void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates]) => + factory _$IgnoreQueryParamsInResponseOutput([ + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ]) => (new IgnoreQueryParamsInResponseOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$IgnoreQueryParamsInResponseOutput @override IgnoreQueryParamsInResponseOutput rebuild( - void Function(IgnoreQueryParamsInResponseOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(IgnoreQueryParamsInResponseOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override IgnoreQueryParamsInResponseOutputBuilder toBuilder() => @@ -44,8 +45,10 @@ class _$IgnoreQueryParamsInResponseOutput class IgnoreQueryParamsInResponseOutputBuilder implements - Builder { + Builder< + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutputBuilder + > { _$IgnoreQueryParamsInResponseOutput? _$v; String? _baz; @@ -71,7 +74,8 @@ class IgnoreQueryParamsInResponseOutputBuilder @override void update( - void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates) { + void Function(IgnoreQueryParamsInResponseOutputBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart index cb91ce299a..0c8d4a4762 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.input_and_output_with_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -58,18 +58,19 @@ abstract class InputAndOutputWithHeadersIo headerIntegerList == null ? null : _i4.BuiltList(headerIntegerList), headerBooleanList: headerBooleanList == null ? null : _i4.BuiltList(headerBooleanList), - headerTimestampList: headerTimestampList == null - ? null - : _i4.BuiltList(headerTimestampList), + headerTimestampList: + headerTimestampList == null + ? null + : _i4.BuiltList(headerTimestampList), headerEnum: headerEnum, headerEnumList: headerEnumList == null ? null : _i4.BuiltList(headerEnumList), ); } - factory InputAndOutputWithHeadersIo.build( - [void Function(InputAndOutputWithHeadersIoBuilder) updates]) = - _$InputAndOutputWithHeadersIo; + factory InputAndOutputWithHeadersIo.build([ + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ]) = _$InputAndOutputWithHeadersIo; const InputAndOutputWithHeadersIo._(); @@ -77,152 +78,178 @@ abstract class InputAndOutputWithHeadersIo InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - InputAndOutputWithHeadersIo.build((b) { - if (request.headers['X-String'] != null) { - b.headerString = request.headers['X-String']!; - } - if (request.headers['X-Byte'] != null) { - b.headerByte = int.parse(request.headers['X-Byte']!); - } - if (request.headers['X-Short'] != null) { - b.headerShort = int.parse(request.headers['X-Short']!); - } - if (request.headers['X-Integer'] != null) { - b.headerInteger = int.parse(request.headers['X-Integer']!); - } - if (request.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); - } - if (request.headers['X-Float'] != null) { - b.headerFloat = double.parse(request.headers['X-Float']!); - } - if (request.headers['X-Double'] != null) { - b.headerDouble = double.parse(request.headers['X-Double']!); - } - if (request.headers['X-Boolean1'] != null) { - b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; - } - if (request.headers['X-Boolean2'] != null) { - b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; - } - if (request.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(request.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (request.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(request.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (request.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(request.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (request.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(request.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (request.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - request.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + }) => InputAndOutputWithHeadersIo.build((b) { + if (request.headers['X-String'] != null) { + b.headerString = request.headers['X-String']!; + } + if (request.headers['X-Byte'] != null) { + b.headerByte = int.parse(request.headers['X-Byte']!); + } + if (request.headers['X-Short'] != null) { + b.headerShort = int.parse(request.headers['X-Short']!); + } + if (request.headers['X-Integer'] != null) { + b.headerInteger = int.parse(request.headers['X-Integer']!); + } + if (request.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(request.headers['X-Long']!); + } + if (request.headers['X-Float'] != null) { + b.headerFloat = double.parse(request.headers['X-Float']!); + } + if (request.headers['X-Double'] != null) { + b.headerDouble = double.parse(request.headers['X-Double']!); + } + if (request.headers['X-Boolean1'] != null) { + b.headerTrueBool = request.headers['X-Boolean1']! == 'true'; + } + if (request.headers['X-Boolean2'] != null) { + b.headerFalseBool = request.headers['X-Boolean2']! == 'true'; + } + if (request.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(request.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (request.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1.parseHeader(request.headers['X-StringSet']!).map((el) => el.trim()), + ); + } + if (request.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(request.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (request.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(request.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (request.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + request.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (request.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); - } - if (request.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(request.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (request.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(request.headers['X-Enum']!); + } + if (request.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(request.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + }); /// Constructs a [InputAndOutputWithHeadersIo] from a [payload] and [response]. factory InputAndOutputWithHeadersIo.fromResponse( InputAndOutputWithHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.build((b) { - if (response.headers['X-String'] != null) { - b.headerString = response.headers['X-String']!; - } - if (response.headers['X-Byte'] != null) { - b.headerByte = int.parse(response.headers['X-Byte']!); - } - if (response.headers['X-Short'] != null) { - b.headerShort = int.parse(response.headers['X-Short']!); - } - if (response.headers['X-Integer'] != null) { - b.headerInteger = int.parse(response.headers['X-Integer']!); - } - if (response.headers['X-Long'] != null) { - b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); - } - if (response.headers['X-Float'] != null) { - b.headerFloat = double.parse(response.headers['X-Float']!); - } - if (response.headers['X-Double'] != null) { - b.headerDouble = double.parse(response.headers['X-Double']!); - } - if (response.headers['X-Boolean1'] != null) { - b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; - } - if (response.headers['X-Boolean2'] != null) { - b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; - } - if (response.headers['X-StringList'] != null) { - b.headerStringList.addAll(_i1 - .parseHeader(response.headers['X-StringList']!) - .map((el) => el.trim())); - } - if (response.headers['X-StringSet'] != null) { - b.headerStringSet.addAll(_i1 - .parseHeader(response.headers['X-StringSet']!) - .map((el) => el.trim())); - } - if (response.headers['X-IntegerList'] != null) { - b.headerIntegerList.addAll(_i1 - .parseHeader(response.headers['X-IntegerList']!) - .map((el) => int.parse(el.trim()))); - } - if (response.headers['X-BooleanList'] != null) { - b.headerBooleanList.addAll(_i1 - .parseHeader(response.headers['X-BooleanList']!) - .map((el) => el.trim() == 'true')); - } - if (response.headers['X-TimestampList'] != null) { - b.headerTimestampList.addAll(_i1 - .parseHeader( - response.headers['X-TimestampList']!, - isTimestampList: true, - ) - .map((el) => _i1.Timestamp.parse( + ) => InputAndOutputWithHeadersIo.build((b) { + if (response.headers['X-String'] != null) { + b.headerString = response.headers['X-String']!; + } + if (response.headers['X-Byte'] != null) { + b.headerByte = int.parse(response.headers['X-Byte']!); + } + if (response.headers['X-Short'] != null) { + b.headerShort = int.parse(response.headers['X-Short']!); + } + if (response.headers['X-Integer'] != null) { + b.headerInteger = int.parse(response.headers['X-Integer']!); + } + if (response.headers['X-Long'] != null) { + b.headerLong = _i3.Int64.parseInt(response.headers['X-Long']!); + } + if (response.headers['X-Float'] != null) { + b.headerFloat = double.parse(response.headers['X-Float']!); + } + if (response.headers['X-Double'] != null) { + b.headerDouble = double.parse(response.headers['X-Double']!); + } + if (response.headers['X-Boolean1'] != null) { + b.headerTrueBool = response.headers['X-Boolean1']! == 'true'; + } + if (response.headers['X-Boolean2'] != null) { + b.headerFalseBool = response.headers['X-Boolean2']! == 'true'; + } + if (response.headers['X-StringList'] != null) { + b.headerStringList.addAll( + _i1 + .parseHeader(response.headers['X-StringList']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-StringSet'] != null) { + b.headerStringSet.addAll( + _i1 + .parseHeader(response.headers['X-StringSet']!) + .map((el) => el.trim()), + ); + } + if (response.headers['X-IntegerList'] != null) { + b.headerIntegerList.addAll( + _i1 + .parseHeader(response.headers['X-IntegerList']!) + .map((el) => int.parse(el.trim())), + ); + } + if (response.headers['X-BooleanList'] != null) { + b.headerBooleanList.addAll( + _i1 + .parseHeader(response.headers['X-BooleanList']!) + .map((el) => el.trim() == 'true'), + ); + } + if (response.headers['X-TimestampList'] != null) { + b.headerTimestampList.addAll( + _i1 + .parseHeader( + response.headers['X-TimestampList']!, + isTimestampList: true, + ) + .map( + (el) => + _i1.Timestamp.parse( el.trim(), format: _i1.TimestampFormat.httpDate, - ).asDateTime)); - } - if (response.headers['X-Enum'] != null) { - b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); - } - if (response.headers['X-EnumList'] != null) { - b.headerEnumList.addAll(_i1 - .parseHeader(response.headers['X-EnumList']!) - .map((el) => FooEnum.values.byValue(el.trim()))); - } - }); + ).asDateTime, + ), + ); + } + if (response.headers['X-Enum'] != null) { + b.headerEnum = FooEnum.values.byValue(response.headers['X-Enum']!); + } + if (response.headers['X-EnumList'] != null) { + b.headerEnumList.addAll( + _i1 + .parseHeader(response.headers['X-EnumList']!) + .map((el) => FooEnum.values.byValue(el.trim())), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [InputAndOutputWithHeadersIoRestXmlSerializer()]; + serializers = [InputAndOutputWithHeadersIoRestXmlSerializer()]; String? get headerString; int? get headerByte; @@ -246,106 +273,60 @@ abstract class InputAndOutputWithHeadersIo @override List get props => [ - headerString, - headerByte, - headerShort, - headerInteger, - headerLong, - headerFloat, - headerDouble, - headerTrueBool, - headerFalseBool, - headerStringList, - headerStringSet, - headerIntegerList, - headerBooleanList, - headerTimestampList, - headerEnum, - headerEnumList, - ]; + headerString, + headerByte, + headerShort, + headerInteger, + headerLong, + headerFloat, + headerDouble, + headerTrueBool, + headerFalseBool, + headerStringList, + headerStringSet, + headerIntegerList, + headerBooleanList, + headerTimestampList, + headerEnum, + headerEnumList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') - ..add( - 'headerString', - headerString, - ) - ..add( - 'headerByte', - headerByte, - ) - ..add( - 'headerShort', - headerShort, - ) - ..add( - 'headerInteger', - headerInteger, - ) - ..add( - 'headerLong', - headerLong, - ) - ..add( - 'headerFloat', - headerFloat, - ) - ..add( - 'headerDouble', - headerDouble, - ) - ..add( - 'headerTrueBool', - headerTrueBool, - ) - ..add( - 'headerFalseBool', - headerFalseBool, - ) - ..add( - 'headerStringList', - headerStringList, - ) - ..add( - 'headerStringSet', - headerStringSet, - ) - ..add( - 'headerIntegerList', - headerIntegerList, - ) - ..add( - 'headerBooleanList', - headerBooleanList, - ) - ..add( - 'headerTimestampList', - headerTimestampList, - ) - ..add( - 'headerEnum', - headerEnum, - ) - ..add( - 'headerEnumList', - headerEnumList, - ); + final helper = + newBuiltValueToStringHelper('InputAndOutputWithHeadersIo') + ..add('headerString', headerString) + ..add('headerByte', headerByte) + ..add('headerShort', headerShort) + ..add('headerInteger', headerInteger) + ..add('headerLong', headerLong) + ..add('headerFloat', headerFloat) + ..add('headerDouble', headerDouble) + ..add('headerTrueBool', headerTrueBool) + ..add('headerFalseBool', headerFalseBool) + ..add('headerStringList', headerStringList) + ..add('headerStringSet', headerStringSet) + ..add('headerIntegerList', headerIntegerList) + ..add('headerBooleanList', headerBooleanList) + ..add('headerTimestampList', headerTimestampList) + ..add('headerEnum', headerEnum) + ..add('headerEnumList', headerEnumList); return helper.toString(); } } @_i5.internal abstract class InputAndOutputWithHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates]) = - _$InputAndOutputWithHeadersIoPayload; + factory InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ]) = _$InputAndOutputWithHeadersIoPayload; const InputAndOutputWithHeadersIoPayload._(); @@ -354,8 +335,9 @@ abstract class InputAndOutputWithHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('InputAndOutputWithHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'InputAndOutputWithHeadersIoPayload', + ); return helper.toString(); } } @@ -363,23 +345,20 @@ abstract class InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoRestXmlSerializer extends _i1.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestXmlSerializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [ - InputAndOutputWithHeadersIo, - _$InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - _$InputAndOutputWithHeadersIoPayload, - ]; + InputAndOutputWithHeadersIo, + _$InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + _$InputAndOutputWithHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InputAndOutputWithHeadersIoPayload deserialize( @@ -397,7 +376,7 @@ class InputAndOutputWithHeadersIoRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('InputAndOutputWithHeadersIo') + const _i1.XmlElementName('InputAndOutputWithHeadersIo'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart index 565101fd3c..f6aed76349 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/input_and_output_with_headers_io.g.dart @@ -40,33 +40,33 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { @override final _i4.BuiltList? headerEnumList; - factory _$InputAndOutputWithHeadersIo( - [void Function(InputAndOutputWithHeadersIoBuilder)? updates]) => - (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); - - _$InputAndOutputWithHeadersIo._( - {this.headerString, - this.headerByte, - this.headerShort, - this.headerInteger, - this.headerLong, - this.headerFloat, - this.headerDouble, - this.headerTrueBool, - this.headerFalseBool, - this.headerStringList, - this.headerStringSet, - this.headerIntegerList, - this.headerBooleanList, - this.headerTimestampList, - this.headerEnum, - this.headerEnumList}) - : super._(); + factory _$InputAndOutputWithHeadersIo([ + void Function(InputAndOutputWithHeadersIoBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoBuilder()..update(updates))._build(); + + _$InputAndOutputWithHeadersIo._({ + this.headerString, + this.headerByte, + this.headerShort, + this.headerInteger, + this.headerLong, + this.headerFloat, + this.headerDouble, + this.headerTrueBool, + this.headerFalseBool, + this.headerStringList, + this.headerStringSet, + this.headerIntegerList, + this.headerBooleanList, + this.headerTimestampList, + this.headerEnum, + this.headerEnumList, + }) : super._(); @override InputAndOutputWithHeadersIo rebuild( - void Function(InputAndOutputWithHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoBuilder toBuilder() => @@ -120,8 +120,10 @@ class _$InputAndOutputWithHeadersIo extends InputAndOutputWithHeadersIo { class InputAndOutputWithHeadersIoBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoBuilder + > { _$InputAndOutputWithHeadersIo? _$v; String? _headerString; @@ -246,24 +248,26 @@ class InputAndOutputWithHeadersIoBuilder _$InputAndOutputWithHeadersIo _build() { _$InputAndOutputWithHeadersIo _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InputAndOutputWithHeadersIo._( - headerString: headerString, - headerByte: headerByte, - headerShort: headerShort, - headerInteger: headerInteger, - headerLong: headerLong, - headerFloat: headerFloat, - headerDouble: headerDouble, - headerTrueBool: headerTrueBool, - headerFalseBool: headerFalseBool, - headerStringList: _headerStringList?.build(), - headerStringSet: _headerStringSet?.build(), - headerIntegerList: _headerIntegerList?.build(), - headerBooleanList: _headerBooleanList?.build(), - headerTimestampList: _headerTimestampList?.build(), - headerEnum: headerEnum, - headerEnumList: _headerEnumList?.build()); + headerString: headerString, + headerByte: headerByte, + headerShort: headerShort, + headerInteger: headerInteger, + headerLong: headerLong, + headerFloat: headerFloat, + headerDouble: headerDouble, + headerTrueBool: headerTrueBool, + headerFalseBool: headerFalseBool, + headerStringList: _headerStringList?.build(), + headerStringSet: _headerStringSet?.build(), + headerIntegerList: _headerIntegerList?.build(), + headerBooleanList: _headerBooleanList?.build(), + headerTimestampList: _headerTimestampList?.build(), + headerEnum: headerEnum, + headerEnumList: _headerEnumList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -282,7 +286,10 @@ class InputAndOutputWithHeadersIoBuilder _headerEnumList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InputAndOutputWithHeadersIo', _$failedField, e.toString()); + r'InputAndOutputWithHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -293,9 +300,9 @@ class InputAndOutputWithHeadersIoBuilder class _$InputAndOutputWithHeadersIoPayload extends InputAndOutputWithHeadersIoPayload { - factory _$InputAndOutputWithHeadersIoPayload( - [void Function(InputAndOutputWithHeadersIoPayloadBuilder)? - updates]) => + factory _$InputAndOutputWithHeadersIoPayload([ + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ]) => (new InputAndOutputWithHeadersIoPayloadBuilder()..update(updates)) ._build(); @@ -303,8 +310,8 @@ class _$InputAndOutputWithHeadersIoPayload @override InputAndOutputWithHeadersIoPayload rebuild( - void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputAndOutputWithHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputAndOutputWithHeadersIoPayloadBuilder toBuilder() => @@ -324,8 +331,10 @@ class _$InputAndOutputWithHeadersIoPayload class InputAndOutputWithHeadersIoPayloadBuilder implements - Builder { + Builder< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIoPayloadBuilder + > { _$InputAndOutputWithHeadersIoPayload? _$v; InputAndOutputWithHeadersIoPayloadBuilder(); @@ -338,7 +347,8 @@ class InputAndOutputWithHeadersIoPayloadBuilder @override void update( - void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates) { + void Function(InputAndOutputWithHeadersIoPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/integer_enum.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/integer_enum.dart index 8e874ec87e..e9e602b2cc 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/integer_enum.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/integer_enum.dart @@ -1,36 +1,20 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.integer_enum; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class IntegerEnum extends _i1.SmithyIntEnum { - const IntegerEnum._( - super.index, - super.name, - super.value, - ); + const IntegerEnum._(super.index, super.name, super.value); const IntegerEnum._sdkUnknown(super.value) : super.sdkUnknown(); - static const a = IntegerEnum._( - 0, - 'A', - 1, - ); + static const a = IntegerEnum._(0, 'A', 1); - static const b = IntegerEnum._( - 1, - 'B', - 2, - ); + static const b = IntegerEnum._(1, 'B', 2); - static const c = IntegerEnum._( - 2, - 'C', - 3, - ); + static const c = IntegerEnum._(2, 'C', 3); /// All values of [IntegerEnum]. static const values = [ @@ -45,12 +29,9 @@ class IntegerEnum extends _i1.SmithyIntEnum { values: values, sdkUnknown: IntegerEnum._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart index d1aae43ec8..ffbe971550 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/invalid_greeting.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.invalid_greeting; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -22,8 +22,9 @@ abstract class InvalidGreeting } /// This error is thrown when an invalid greeting value is provided. - factory InvalidGreeting.build( - [void Function(InvalidGreetingBuilder) updates]) = _$InvalidGreeting; + factory InvalidGreeting.build([ + void Function(InvalidGreetingBuilder) updates, + ]) = _$InvalidGreeting; const InvalidGreeting._(); @@ -31,22 +32,21 @@ abstract class InvalidGreeting factory InvalidGreeting.fromResponse( InvalidGreeting payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidGreetingRestXmlSerializer() + InvalidGreetingRestXmlSerializer(), ]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'InvalidGreeting', - ); + namespace: 'aws.protocoltests.restxml', + shape: 'InvalidGreeting', + ); @override _i2.RetryConfig? get retryConfig => null; @@ -67,10 +67,7 @@ abstract class InvalidGreeting @override String toString() { final helper = newBuiltValueToStringHelper('InvalidGreeting') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -80,18 +77,12 @@ class InvalidGreetingRestXmlSerializer const InvalidGreetingRestXmlSerializer() : super('InvalidGreeting'); @override - Iterable get types => const [ - InvalidGreeting, - _$InvalidGreeting, - ]; + Iterable get types => const [InvalidGreeting, _$InvalidGreeting]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InvalidGreeting deserialize( @@ -118,10 +109,12 @@ class InvalidGreetingRestXmlSerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -139,10 +132,9 @@ class InvalidGreetingRestXmlSerializer if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart index 9ff7c54221..ef7f928757 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_payload.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.nested_payload; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,14 +13,8 @@ part 'nested_payload.g.dart'; abstract class NestedPayload with _i1.AWSEquatable implements Built { - factory NestedPayload({ - String? greeting, - String? name, - }) { - return _$NestedPayload._( - greeting: greeting, - name: name, - ); + factory NestedPayload({String? greeting, String? name}) { + return _$NestedPayload._(greeting: greeting, name: name); } factory NestedPayload.build([void Function(NestedPayloadBuilder) updates]) = @@ -29,28 +23,20 @@ abstract class NestedPayload const NestedPayload._(); static const List<_i2.SmithySerializer> serializers = [ - NestedPayloadRestXmlSerializer() + NestedPayloadRestXmlSerializer(), ]; String? get greeting; String? get name; @override - List get props => [ - greeting, - name, - ]; + List get props => [greeting, name]; @override String toString() { - final helper = newBuiltValueToStringHelper('NestedPayload') - ..add( - 'greeting', - greeting, - ) - ..add( - 'name', - name, - ); + final helper = + newBuiltValueToStringHelper('NestedPayload') + ..add('greeting', greeting) + ..add('name', name); return helper.toString(); } } @@ -60,18 +46,12 @@ class NestedPayloadRestXmlSerializer const NestedPayloadRestXmlSerializer() : super('NestedPayload'); @override - Iterable get types => const [ - NestedPayload, - _$NestedPayload, - ]; + Iterable get types => const [NestedPayload, _$NestedPayload]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedPayload deserialize( @@ -90,15 +70,19 @@ class NestedPayloadRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -116,18 +100,19 @@ class NestedPayloadRestXmlSerializer if (greeting != null) { result$ ..add(const _i2.XmlElementName('greeting')) - ..add(serializers.serialize( - greeting, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + greeting, + specifiedType: const FullType(String), + ), + ); } if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart index 13db66e083..031796d32e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.nested_xml_maps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,32 +23,28 @@ abstract class NestedXmlMapsInputOutput Map>? flatNestedMap, }) { return _$NestedXmlMapsInputOutput._( - nestedMap: nestedMap == null - ? null - : _i3.BuiltMap(nestedMap.map(( - key, - value, - ) => - MapEntry( - key, - _i3.BuiltMap(value), - ))), - flatNestedMap: flatNestedMap == null - ? null - : _i3.BuiltMap(flatNestedMap.map(( - key, - value, - ) => - MapEntry( - key, - _i3.BuiltMap(value), - ))), + nestedMap: + nestedMap == null + ? null + : _i3.BuiltMap( + nestedMap.map( + (key, value) => MapEntry(key, _i3.BuiltMap(value)), + ), + ), + flatNestedMap: + flatNestedMap == null + ? null + : _i3.BuiltMap( + flatNestedMap.map( + (key, value) => MapEntry(key, _i3.BuiltMap(value)), + ), + ), ); } - factory NestedXmlMapsInputOutput.build( - [void Function(NestedXmlMapsInputOutputBuilder) updates]) = - _$NestedXmlMapsInputOutput; + factory NestedXmlMapsInputOutput.build([ + void Function(NestedXmlMapsInputOutputBuilder) updates, + ]) = _$NestedXmlMapsInputOutput; const NestedXmlMapsInputOutput._(); @@ -56,18 +52,16 @@ abstract class NestedXmlMapsInputOutput NestedXmlMapsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [NestedXmlMapsInputOutput] from a [payload] and [response]. factory NestedXmlMapsInputOutput.fromResponse( NestedXmlMapsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [NestedXmlMapsInputOutputRestXmlSerializer()]; + serializers = [NestedXmlMapsInputOutputRestXmlSerializer()]; _i3.BuiltMap>? get nestedMap; _i3.BuiltMap>? get flatNestedMap; @@ -75,22 +69,14 @@ abstract class NestedXmlMapsInputOutput NestedXmlMapsInputOutput getPayload() => this; @override - List get props => [ - nestedMap, - flatNestedMap, - ]; + List get props => [nestedMap, flatNestedMap]; @override String toString() { - final helper = newBuiltValueToStringHelper('NestedXmlMapsInputOutput') - ..add( - 'nestedMap', - nestedMap, - ) - ..add( - 'flatNestedMap', - flatNestedMap, - ); + final helper = + newBuiltValueToStringHelper('NestedXmlMapsInputOutput') + ..add('nestedMap', nestedMap) + ..add('flatNestedMap', flatNestedMap); return helper.toString(); } } @@ -98,21 +84,18 @@ abstract class NestedXmlMapsInputOutput class NestedXmlMapsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const NestedXmlMapsInputOutputRestXmlSerializer() - : super('NestedXmlMapsInputOutput'); + : super('NestedXmlMapsInputOutput'); @override Iterable get types => const [ - NestedXmlMapsInputOutput, - _$NestedXmlMapsInputOutput, - ]; + NestedXmlMapsInputOutput, + _$NestedXmlMapsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedXmlMapsInputOutput deserialize( @@ -132,45 +115,32 @@ class NestedXmlMapsInputOutputRestXmlSerializer switch (key) { case 'flatNestedMap': result.flatNestedMap.addAll( - const _i1.XmlBuiltMapSerializer(flattenedKey: 'flatNestedMap') - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], - ), - ) - .toMap() - .cast()); + const _i1.XmlBuiltMapSerializer(flattenedKey: 'flatNestedMap') + .deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ + FullType(String), + FullType(_i3.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ]), + ) + .toMap() + .cast(), + ); case 'nestedMap': - result.nestedMap - .replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.nestedMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], + FullType(_i3.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]), ), - )); + ); } } @@ -184,50 +154,36 @@ class NestedXmlMapsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('NestedXmlMapsInputOutput') + const _i1.XmlElementName('NestedXmlMapsInputOutput'), ]; final NestedXmlMapsInputOutput(:flatNestedMap, :nestedMap) = object; if (flatNestedMap != null) { result$.addAll( - const _i1.XmlBuiltMapSerializer(flattenedKey: 'flatNestedMap') - .serialize( - serializers, - flatNestedMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + const _i1.XmlBuiltMapSerializer( + flattenedKey: 'flatNestedMap', + ).serialize( + serializers, + flatNestedMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], + FullType(_i3.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]), ), - )); + ); } if (nestedMap != null) { result$ ..add(const _i1.XmlElementName('nestedMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - nestedMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + nestedMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), - FullType( - _i3.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ], + FullType(_i3.BuiltMap, [FullType(String), FullType(FooEnum)]), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart index f4bfe1575d..48cc66973f 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/nested_xml_maps_input_output.g.dart @@ -12,17 +12,17 @@ class _$NestedXmlMapsInputOutput extends NestedXmlMapsInputOutput { @override final _i3.BuiltMap>? flatNestedMap; - factory _$NestedXmlMapsInputOutput( - [void Function(NestedXmlMapsInputOutputBuilder)? updates]) => - (new NestedXmlMapsInputOutputBuilder()..update(updates))._build(); + factory _$NestedXmlMapsInputOutput([ + void Function(NestedXmlMapsInputOutputBuilder)? updates, + ]) => (new NestedXmlMapsInputOutputBuilder()..update(updates))._build(); _$NestedXmlMapsInputOutput._({this.nestedMap, this.flatNestedMap}) - : super._(); + : super._(); @override NestedXmlMapsInputOutput rebuild( - void Function(NestedXmlMapsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedXmlMapsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedXmlMapsInputOutputBuilder toBuilder() => @@ -56,17 +56,16 @@ class NestedXmlMapsInputOutputBuilder _$this._nestedMap ??= new _i3.MapBuilder>(); set nestedMap( - _i3.MapBuilder>? nestedMap) => - _$this._nestedMap = nestedMap; + _i3.MapBuilder>? nestedMap, + ) => _$this._nestedMap = nestedMap; _i3.MapBuilder>? _flatNestedMap; _i3.MapBuilder> get flatNestedMap => _$this._flatNestedMap ??= new _i3.MapBuilder>(); set flatNestedMap( - _i3.MapBuilder>? - flatNestedMap) => - _$this._flatNestedMap = flatNestedMap; + _i3.MapBuilder>? flatNestedMap, + ) => _$this._flatNestedMap = flatNestedMap; NestedXmlMapsInputOutputBuilder(); @@ -97,10 +96,12 @@ class NestedXmlMapsInputOutputBuilder _$NestedXmlMapsInputOutput _build() { _$NestedXmlMapsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$NestedXmlMapsInputOutput._( - nestedMap: _nestedMap?.build(), - flatNestedMap: _flatNestedMap?.build()); + nestedMap: _nestedMap?.build(), + flatNestedMap: _flatNestedMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -110,7 +111,10 @@ class NestedXmlMapsInputOutputBuilder _flatNestedMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NestedXmlMapsInputOutput', _$failedField, e.toString()); + r'NestedXmlMapsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart index a9edf37a3f..442f61428e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.no_input_and_output_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -19,9 +19,9 @@ abstract class NoInputAndOutputOutput return _$NoInputAndOutputOutput._(); } - factory NoInputAndOutputOutput.build( - [void Function(NoInputAndOutputOutputBuilder) updates]) = - _$NoInputAndOutputOutput; + factory NoInputAndOutputOutput.build([ + void Function(NoInputAndOutputOutputBuilder) updates, + ]) = _$NoInputAndOutputOutput; const NoInputAndOutputOutput._(); @@ -29,8 +29,7 @@ abstract class NoInputAndOutputOutput factory NoInputAndOutputOutput.fromResponse( NoInputAndOutputOutput payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i2.SmithySerializer> serializers = [NoInputAndOutputOutputRestXmlSerializer()]; @@ -48,21 +47,18 @@ abstract class NoInputAndOutputOutput class NoInputAndOutputOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const NoInputAndOutputOutputRestXmlSerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [ - NoInputAndOutputOutput, - _$NoInputAndOutputOutput, - ]; + NoInputAndOutputOutput, + _$NoInputAndOutputOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoInputAndOutputOutput deserialize( @@ -80,7 +76,7 @@ class NoInputAndOutputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('NoInputAndOutputOutput') + const _i2.XmlElementName('NoInputAndOutputOutput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart index 49ac41766a..37c0f77e2a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/no_input_and_output_output.g.dart @@ -7,16 +7,16 @@ part of 'no_input_and_output_output.dart'; // ************************************************************************** class _$NoInputAndOutputOutput extends NoInputAndOutputOutput { - factory _$NoInputAndOutputOutput( - [void Function(NoInputAndOutputOutputBuilder)? updates]) => - (new NoInputAndOutputOutputBuilder()..update(updates))._build(); + factory _$NoInputAndOutputOutput([ + void Function(NoInputAndOutputOutputBuilder)? updates, + ]) => (new NoInputAndOutputOutputBuilder()..update(updates))._build(); _$NoInputAndOutputOutput._() : super._(); @override NoInputAndOutputOutput rebuild( - void Function(NoInputAndOutputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NoInputAndOutputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NoInputAndOutputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart index 8879272946..b5b4a82798 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.null_and_empty_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,11 +20,7 @@ abstract class NullAndEmptyHeadersIo Built, _i1.EmptyPayload, _i1.HasPayload { - factory NullAndEmptyHeadersIo({ - String? a, - String? b, - List? c, - }) { + factory NullAndEmptyHeadersIo({String? a, String? b, List? c}) { return _$NullAndEmptyHeadersIo._( a: a, b: b, @@ -32,9 +28,9 @@ abstract class NullAndEmptyHeadersIo ); } - factory NullAndEmptyHeadersIo.build( - [void Function(NullAndEmptyHeadersIoBuilder) updates]) = - _$NullAndEmptyHeadersIo; + factory NullAndEmptyHeadersIo.build([ + void Function(NullAndEmptyHeadersIoBuilder) updates, + ]) = _$NullAndEmptyHeadersIo; const NullAndEmptyHeadersIo._(); @@ -42,40 +38,40 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - NullAndEmptyHeadersIo.build((b) { - if (request.headers['X-A'] != null) { - b.a = request.headers['X-A']!; - } - if (request.headers['X-B'] != null) { - b.b = request.headers['X-B']!; - } - if (request.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim())); - } - }); + }) => NullAndEmptyHeadersIo.build((b) { + if (request.headers['X-A'] != null) { + b.a = request.headers['X-A']!; + } + if (request.headers['X-B'] != null) { + b.b = request.headers['X-B']!; + } + if (request.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(request.headers['X-C']!).map((el) => el.trim()), + ); + } + }); /// Constructs a [NullAndEmptyHeadersIo] from a [payload] and [response]. factory NullAndEmptyHeadersIo.fromResponse( NullAndEmptyHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.build((b) { - if (response.headers['X-A'] != null) { - b.a = response.headers['X-A']!; - } - if (response.headers['X-B'] != null) { - b.b = response.headers['X-B']!; - } - if (response.headers['X-C'] != null) { - b.c.addAll( - _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim())); - } - }); + ) => NullAndEmptyHeadersIo.build((b) { + if (response.headers['X-A'] != null) { + b.a = response.headers['X-A']!; + } + if (response.headers['X-B'] != null) { + b.b = response.headers['X-B']!; + } + if (response.headers['X-C'] != null) { + b.c.addAll( + _i1.parseHeader(response.headers['X-C']!).map((el) => el.trim()), + ); + } + }); static const List<_i1.SmithySerializer> - serializers = [NullAndEmptyHeadersIoRestXmlSerializer()]; + serializers = [NullAndEmptyHeadersIoRestXmlSerializer()]; String? get a; String? get b; @@ -84,42 +80,31 @@ abstract class NullAndEmptyHeadersIo NullAndEmptyHeadersIoPayload getPayload() => NullAndEmptyHeadersIoPayload(); @override - List get props => [ - a, - b, - c, - ]; + List get props => [a, b, c]; @override String toString() { - final helper = newBuiltValueToStringHelper('NullAndEmptyHeadersIo') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ) - ..add( - 'c', - c, - ); + final helper = + newBuiltValueToStringHelper('NullAndEmptyHeadersIo') + ..add('a', a) + ..add('b', b) + ..add('c', c); return helper.toString(); } } @_i4.internal abstract class NullAndEmptyHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder) updates]) = - _$NullAndEmptyHeadersIoPayload; + factory NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ]) = _$NullAndEmptyHeadersIoPayload; const NullAndEmptyHeadersIoPayload._(); @@ -136,23 +121,20 @@ abstract class NullAndEmptyHeadersIoPayload class NullAndEmptyHeadersIoRestXmlSerializer extends _i1.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestXmlSerializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [ - NullAndEmptyHeadersIo, - _$NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - _$NullAndEmptyHeadersIoPayload, - ]; + NullAndEmptyHeadersIo, + _$NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + _$NullAndEmptyHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NullAndEmptyHeadersIoPayload deserialize( @@ -170,7 +152,7 @@ class NullAndEmptyHeadersIoRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('NullAndEmptyHeadersIo') + const _i1.XmlElementName('NullAndEmptyHeadersIo'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart index e519841018..8594dc19c2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/null_and_empty_headers_io.g.dart @@ -14,16 +14,16 @@ class _$NullAndEmptyHeadersIo extends NullAndEmptyHeadersIo { @override final _i3.BuiltList? c; - factory _$NullAndEmptyHeadersIo( - [void Function(NullAndEmptyHeadersIoBuilder)? updates]) => - (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIo([ + void Function(NullAndEmptyHeadersIoBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIo._({this.a, this.b, this.c}) : super._(); @override NullAndEmptyHeadersIo rebuild( - void Function(NullAndEmptyHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoBuilder toBuilder() => @@ -104,7 +104,10 @@ class NullAndEmptyHeadersIoBuilder _c?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'NullAndEmptyHeadersIo', _$failedField, e.toString()); + r'NullAndEmptyHeadersIo', + _$failedField, + e.toString(), + ); } rethrow; } @@ -114,16 +117,16 @@ class NullAndEmptyHeadersIoBuilder } class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { - factory _$NullAndEmptyHeadersIoPayload( - [void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates]) => - (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); + factory _$NullAndEmptyHeadersIoPayload([ + void Function(NullAndEmptyHeadersIoPayloadBuilder)? updates, + ]) => (new NullAndEmptyHeadersIoPayloadBuilder()..update(updates))._build(); _$NullAndEmptyHeadersIoPayload._() : super._(); @override NullAndEmptyHeadersIoPayload rebuild( - void Function(NullAndEmptyHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NullAndEmptyHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NullAndEmptyHeadersIoPayloadBuilder toBuilder() => @@ -143,8 +146,10 @@ class _$NullAndEmptyHeadersIoPayload extends NullAndEmptyHeadersIoPayload { class NullAndEmptyHeadersIoPayloadBuilder implements - Builder { + Builder< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIoPayloadBuilder + > { _$NullAndEmptyHeadersIoPayload? _$v; NullAndEmptyHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart index 33aaad2a45..395faadf1c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.omits_null_serializes_empty_string_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,8 +16,10 @@ abstract class OmitsNullSerializesEmptyStringInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory OmitsNullSerializesEmptyStringInput({ @@ -30,9 +32,9 @@ abstract class OmitsNullSerializesEmptyStringInput ); } - factory OmitsNullSerializesEmptyStringInput.build( - [void Function(OmitsNullSerializesEmptyStringInputBuilder) updates]) = - _$OmitsNullSerializesEmptyStringInput; + factory OmitsNullSerializesEmptyStringInput.build([ + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInput; const OmitsNullSerializesEmptyStringInput._(); @@ -40,19 +42,19 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - OmitsNullSerializesEmptyStringInput.build((b) { - if (request.queryParameters['Null'] != null) { - b.nullValue = request.queryParameters['Null']!; - } - if (request.queryParameters['Empty'] != null) { - b.emptyString = request.queryParameters['Empty']!; - } - }); + }) => OmitsNullSerializesEmptyStringInput.build((b) { + if (request.queryParameters['Null'] != null) { + b.nullValue = request.queryParameters['Null']!; + } + if (request.queryParameters['Empty'] != null) { + b.emptyString = request.queryParameters['Empty']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [OmitsNullSerializesEmptyStringInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [OmitsNullSerializesEmptyStringInputRestXmlSerializer()]; String? get nullValue; String? get emptyString; @@ -61,38 +63,30 @@ abstract class OmitsNullSerializesEmptyStringInput OmitsNullSerializesEmptyStringInputPayload(); @override - List get props => [ - nullValue, - emptyString, - ]; + List get props => [nullValue, emptyString]; @override String toString() { final helper = newBuiltValueToStringHelper('OmitsNullSerializesEmptyStringInput') - ..add( - 'nullValue', - nullValue, - ) - ..add( - 'emptyString', - emptyString, - ); + ..add('nullValue', nullValue) + ..add('emptyString', emptyString); return helper.toString(); } } @_i3.internal abstract class OmitsNullSerializesEmptyStringInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + >, _i1.EmptyPayload { - factory OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates]) = _$OmitsNullSerializesEmptyStringInputPayload; + factory OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ]) = _$OmitsNullSerializesEmptyStringInputPayload; const OmitsNullSerializesEmptyStringInputPayload._(); @@ -102,31 +96,32 @@ abstract class OmitsNullSerializesEmptyStringInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'OmitsNullSerializesEmptyStringInputPayload'); + 'OmitsNullSerializesEmptyStringInputPayload', + ); return helper.toString(); } } -class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + OmitsNullSerializesEmptyStringInputPayload + > { const OmitsNullSerializesEmptyStringInputRestXmlSerializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [ - OmitsNullSerializesEmptyStringInput, - _$OmitsNullSerializesEmptyStringInput, - OmitsNullSerializesEmptyStringInputPayload, - _$OmitsNullSerializesEmptyStringInputPayload, - ]; + OmitsNullSerializesEmptyStringInput, + _$OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputPayload, + _$OmitsNullSerializesEmptyStringInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OmitsNullSerializesEmptyStringInputPayload deserialize( @@ -144,7 +139,7 @@ class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('OmitsNullSerializesEmptyStringInput') + const _i1.XmlElementName('OmitsNullSerializesEmptyStringInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart index 5f2c498b34..d20fee8e14 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/omits_null_serializes_empty_string_input.g.dart @@ -13,19 +13,19 @@ class _$OmitsNullSerializesEmptyStringInput @override final String? emptyString; - factory _$OmitsNullSerializesEmptyStringInput( - [void Function(OmitsNullSerializesEmptyStringInputBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInput([ + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputBuilder()..update(updates)) ._build(); _$OmitsNullSerializesEmptyStringInput._({this.nullValue, this.emptyString}) - : super._(); + : super._(); @override OmitsNullSerializesEmptyStringInput rebuild( - void Function(OmitsNullSerializesEmptyStringInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputBuilder toBuilder() => @@ -51,8 +51,10 @@ class _$OmitsNullSerializesEmptyStringInput class OmitsNullSerializesEmptyStringInputBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInput, + OmitsNullSerializesEmptyStringInputBuilder + > { _$OmitsNullSerializesEmptyStringInput? _$v; String? _nullValue; @@ -83,7 +85,8 @@ class OmitsNullSerializesEmptyStringInputBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates) { + void Function(OmitsNullSerializesEmptyStringInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,12 @@ class OmitsNullSerializesEmptyStringInputBuilder OmitsNullSerializesEmptyStringInput build() => _build(); _$OmitsNullSerializesEmptyStringInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$OmitsNullSerializesEmptyStringInput._( - nullValue: nullValue, emptyString: emptyString); + nullValue: nullValue, + emptyString: emptyString, + ); replace(_$result); return _$result; } @@ -101,9 +107,9 @@ class OmitsNullSerializesEmptyStringInputBuilder class _$OmitsNullSerializesEmptyStringInputPayload extends OmitsNullSerializesEmptyStringInputPayload { - factory _$OmitsNullSerializesEmptyStringInputPayload( - [void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates]) => + factory _$OmitsNullSerializesEmptyStringInputPayload([ + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ]) => (new OmitsNullSerializesEmptyStringInputPayloadBuilder()..update(updates)) ._build(); @@ -111,9 +117,8 @@ class _$OmitsNullSerializesEmptyStringInputPayload @override OmitsNullSerializesEmptyStringInputPayload rebuild( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OmitsNullSerializesEmptyStringInputPayloadBuilder toBuilder() => @@ -133,8 +138,10 @@ class _$OmitsNullSerializesEmptyStringInputPayload class OmitsNullSerializesEmptyStringInputPayloadBuilder implements - Builder { + Builder< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInputPayloadBuilder + > { _$OmitsNullSerializesEmptyStringInputPayload? _$v; OmitsNullSerializesEmptyStringInputPayloadBuilder(); @@ -147,8 +154,8 @@ class OmitsNullSerializesEmptyStringInputPayloadBuilder @override void update( - void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? - updates) { + void Function(OmitsNullSerializesEmptyStringInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.dart index 33539eaa19..5b2f62ffaa 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestXmlSerializer() + OperationConfigRestXmlSerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestXmlSerializer const OperationConfigRestXmlSerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestXmlSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -102,10 +97,9 @@ class OperationConfigRestXmlSerializer if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart index 960aaea655..d615ad8e30 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.payload_with_xml_name; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,14 @@ abstract class PayloadWithXmlName return _$PayloadWithXmlName._(name: name); } - factory PayloadWithXmlName.build( - [void Function(PayloadWithXmlNameBuilder) updates]) = - _$PayloadWithXmlName; + factory PayloadWithXmlName.build([ + void Function(PayloadWithXmlNameBuilder) updates, + ]) = _$PayloadWithXmlName; const PayloadWithXmlName._(); static const List<_i2.SmithySerializer> serializers = [ - PayloadWithXmlNameRestXmlSerializer() + PayloadWithXmlNameRestXmlSerializer(), ]; String? get name; @@ -34,10 +34,7 @@ abstract class PayloadWithXmlName @override String toString() { final helper = newBuiltValueToStringHelper('PayloadWithXmlName') - ..add( - 'name', - name, - ); + ..add('name', name); return helper.toString(); } } @@ -47,18 +44,12 @@ class PayloadWithXmlNameRestXmlSerializer const PayloadWithXmlNameRestXmlSerializer() : super('PayloadWithXmlName'); @override - Iterable get types => const [ - PayloadWithXmlName, - _$PayloadWithXmlName, - ]; + Iterable get types => const [PayloadWithXmlName, _$PayloadWithXmlName]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -77,10 +68,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,10 +91,9 @@ class PayloadWithXmlNameRestXmlSerializer if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart index be317d29c1..1599733e3b 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_name.g.dart @@ -10,16 +10,16 @@ class _$PayloadWithXmlName extends PayloadWithXmlName { @override final String? name; - factory _$PayloadWithXmlName( - [void Function(PayloadWithXmlNameBuilder)? updates]) => - (new PayloadWithXmlNameBuilder()..update(updates))._build(); + factory _$PayloadWithXmlName([ + void Function(PayloadWithXmlNameBuilder)? updates, + ]) => (new PayloadWithXmlNameBuilder()..update(updates))._build(); _$PayloadWithXmlName._({this.name}) : super._(); @override PayloadWithXmlName rebuild( - void Function(PayloadWithXmlNameBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PayloadWithXmlNameBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PayloadWithXmlNameBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart index 02e0761725..73d086b2ab 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.payload_with_xml_namespace; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,9 +17,9 @@ abstract class PayloadWithXmlNamespace return _$PayloadWithXmlNamespace._(name: name); } - factory PayloadWithXmlNamespace.build( - [void Function(PayloadWithXmlNamespaceBuilder) updates]) = - _$PayloadWithXmlNamespace; + factory PayloadWithXmlNamespace.build([ + void Function(PayloadWithXmlNamespaceBuilder) updates, + ]) = _$PayloadWithXmlNamespace; const PayloadWithXmlNamespace._(); @@ -33,10 +33,7 @@ abstract class PayloadWithXmlNamespace @override String toString() { final helper = newBuiltValueToStringHelper('PayloadWithXmlNamespace') - ..add( - 'name', - name, - ); + ..add('name', name); return helper.toString(); } } @@ -44,21 +41,18 @@ abstract class PayloadWithXmlNamespace class PayloadWithXmlNamespaceRestXmlSerializer extends _i2.StructuredSmithySerializer { const PayloadWithXmlNamespaceRestXmlSerializer() - : super('PayloadWithXmlNamespace'); + : super('PayloadWithXmlNamespace'); @override Iterable get types => const [ - PayloadWithXmlNamespace, - _$PayloadWithXmlNamespace, - ]; + PayloadWithXmlNamespace, + _$PayloadWithXmlNamespace, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespace deserialize( @@ -77,10 +71,12 @@ class PayloadWithXmlNamespaceRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -97,16 +93,15 @@ class PayloadWithXmlNamespaceRestXmlSerializer const _i2.XmlElementName( 'PayloadWithXmlNamespace', _i2.XmlNamespace('http://foo.com'), - ) + ), ]; final PayloadWithXmlNamespace(:name) = object; if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart index fb50c399d4..d8f8077aad 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace.g.dart @@ -10,16 +10,16 @@ class _$PayloadWithXmlNamespace extends PayloadWithXmlNamespace { @override final String? name; - factory _$PayloadWithXmlNamespace( - [void Function(PayloadWithXmlNamespaceBuilder)? updates]) => - (new PayloadWithXmlNamespaceBuilder()..update(updates))._build(); + factory _$PayloadWithXmlNamespace([ + void Function(PayloadWithXmlNamespaceBuilder)? updates, + ]) => (new PayloadWithXmlNamespaceBuilder()..update(updates))._build(); _$PayloadWithXmlNamespace._({this.name}) : super._(); @override PayloadWithXmlNamespace rebuild( - void Function(PayloadWithXmlNamespaceBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PayloadWithXmlNamespaceBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PayloadWithXmlNamespaceBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart index f233ca71db..63253840fa 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.payload_with_xml_namespace_and_prefix; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -11,23 +11,24 @@ import 'package:smithy/smithy.dart' as _i2; part 'payload_with_xml_namespace_and_prefix.g.dart'; abstract class PayloadWithXmlNamespaceAndPrefix - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + PayloadWithXmlNamespaceAndPrefix, + PayloadWithXmlNamespaceAndPrefixBuilder + > { factory PayloadWithXmlNamespaceAndPrefix({String? name}) { return _$PayloadWithXmlNamespaceAndPrefix._(name: name); } - factory PayloadWithXmlNamespaceAndPrefix.build( - [void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates]) = - _$PayloadWithXmlNamespaceAndPrefix; + factory PayloadWithXmlNamespaceAndPrefix.build([ + void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates, + ]) = _$PayloadWithXmlNamespaceAndPrefix; const PayloadWithXmlNamespaceAndPrefix._(); static const List<_i2.SmithySerializer> - serializers = [PayloadWithXmlNamespaceAndPrefixRestXmlSerializer()]; + serializers = [PayloadWithXmlNamespaceAndPrefixRestXmlSerializer()]; String? get name; @override @@ -35,12 +36,9 @@ abstract class PayloadWithXmlNamespaceAndPrefix @override String toString() { - final helper = - newBuiltValueToStringHelper('PayloadWithXmlNamespaceAndPrefix') - ..add( - 'name', - name, - ); + final helper = newBuiltValueToStringHelper( + 'PayloadWithXmlNamespaceAndPrefix', + )..add('name', name); return helper.toString(); } } @@ -48,21 +46,18 @@ abstract class PayloadWithXmlNamespaceAndPrefix class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer extends _i2.StructuredSmithySerializer { const PayloadWithXmlNamespaceAndPrefixRestXmlSerializer() - : super('PayloadWithXmlNamespaceAndPrefix'); + : super('PayloadWithXmlNamespaceAndPrefix'); @override Iterable get types => const [ - PayloadWithXmlNamespaceAndPrefix, - _$PayloadWithXmlNamespaceAndPrefix, - ]; + PayloadWithXmlNamespaceAndPrefix, + _$PayloadWithXmlNamespaceAndPrefix, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespaceAndPrefix deserialize( @@ -81,10 +76,12 @@ class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -100,20 +97,16 @@ class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer final result$ = [ const _i2.XmlElementName( 'PayloadWithXmlNamespaceAndPrefix', - _i2.XmlNamespace( - 'http://foo.com', - 'baz', - ), - ) + _i2.XmlNamespace('http://foo.com', 'baz'), + ), ]; final PayloadWithXmlNamespaceAndPrefix(:name) = object; if (name != null) { result$ ..add(const _i2.XmlElementName('name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart index 5b712cf773..356a0d1aaf 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/payload_with_xml_namespace_and_prefix.g.dart @@ -11,16 +11,17 @@ class _$PayloadWithXmlNamespaceAndPrefix @override final String? name; - factory _$PayloadWithXmlNamespaceAndPrefix( - [void Function(PayloadWithXmlNamespaceAndPrefixBuilder)? updates]) => + factory _$PayloadWithXmlNamespaceAndPrefix([ + void Function(PayloadWithXmlNamespaceAndPrefixBuilder)? updates, + ]) => (new PayloadWithXmlNamespaceAndPrefixBuilder()..update(updates))._build(); _$PayloadWithXmlNamespaceAndPrefix._({this.name}) : super._(); @override PayloadWithXmlNamespaceAndPrefix rebuild( - void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PayloadWithXmlNamespaceAndPrefixBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PayloadWithXmlNamespaceAndPrefixBuilder toBuilder() => @@ -43,8 +44,10 @@ class _$PayloadWithXmlNamespaceAndPrefix class PayloadWithXmlNamespaceAndPrefixBuilder implements - Builder { + Builder< + PayloadWithXmlNamespaceAndPrefix, + PayloadWithXmlNamespaceAndPrefixBuilder + > { _$PayloadWithXmlNamespaceAndPrefix? _$v; String? _name; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart index 749790509d..43310ad3cc 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.put_with_content_encoding_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,19 +18,13 @@ abstract class PutWithContentEncodingInput implements Built, _i1.HasPayload { - factory PutWithContentEncodingInput({ - String? encoding, - String? data, - }) { - return _$PutWithContentEncodingInput._( - encoding: encoding, - data: data, - ); + factory PutWithContentEncodingInput({String? encoding, String? data}) { + return _$PutWithContentEncodingInput._(encoding: encoding, data: data); } - factory PutWithContentEncodingInput.build( - [void Function(PutWithContentEncodingInputBuilder) updates]) = - _$PutWithContentEncodingInput; + factory PutWithContentEncodingInput.build([ + void Function(PutWithContentEncodingInputBuilder) updates, + ]) = _$PutWithContentEncodingInput; const PutWithContentEncodingInput._(); @@ -38,16 +32,15 @@ abstract class PutWithContentEncodingInput PutWithContentEncodingInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - PutWithContentEncodingInput.build((b) { - b.data = payload.data; - if (request.headers['Content-Encoding'] != null) { - b.encoding = request.headers['Content-Encoding']!; - } - }); + }) => PutWithContentEncodingInput.build((b) { + b.data = payload.data; + if (request.headers['Content-Encoding'] != null) { + b.encoding = request.headers['Content-Encoding']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [PutWithContentEncodingInputRestXmlSerializer()]; + serializers = [PutWithContentEncodingInputRestXmlSerializer()]; String? get encoding; String? get data; @@ -58,36 +51,29 @@ abstract class PutWithContentEncodingInput }); @override - List get props => [ - encoding, - data, - ]; + List get props => [encoding, data]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutWithContentEncodingInput') - ..add( - 'encoding', - encoding, - ) - ..add( - 'data', - data, - ); + final helper = + newBuiltValueToStringHelper('PutWithContentEncodingInput') + ..add('encoding', encoding) + ..add('data', data); return helper.toString(); } } @_i3.internal abstract class PutWithContentEncodingInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder) updates]) = - _$PutWithContentEncodingInputPayload; + Built< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { + factory PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ]) = _$PutWithContentEncodingInputPayload; const PutWithContentEncodingInputPayload._(); @@ -97,12 +83,9 @@ abstract class PutWithContentEncodingInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('PutWithContentEncodingInputPayload') - ..add( - 'data', - data, - ); + final helper = newBuiltValueToStringHelper( + 'PutWithContentEncodingInputPayload', + )..add('data', data); return helper.toString(); } } @@ -110,23 +93,20 @@ abstract class PutWithContentEncodingInputPayload class PutWithContentEncodingInputRestXmlSerializer extends _i1.StructuredSmithySerializer { const PutWithContentEncodingInputRestXmlSerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [ - PutWithContentEncodingInput, - _$PutWithContentEncodingInput, - PutWithContentEncodingInputPayload, - _$PutWithContentEncodingInputPayload, - ]; + PutWithContentEncodingInput, + _$PutWithContentEncodingInput, + PutWithContentEncodingInputPayload, + _$PutWithContentEncodingInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PutWithContentEncodingInputPayload deserialize( @@ -145,10 +125,12 @@ class PutWithContentEncodingInputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -162,16 +144,15 @@ class PutWithContentEncodingInputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('PutWithContentEncodingInput') + const _i1.XmlElementName('PutWithContentEncodingInput'), ]; final PutWithContentEncodingInputPayload(:data) = object; if (data != null) { result$ ..add(const _i1.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(data, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart index 4259e06363..c303950602 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/put_with_content_encoding_input.g.dart @@ -12,16 +12,16 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { @override final String? data; - factory _$PutWithContentEncodingInput( - [void Function(PutWithContentEncodingInputBuilder)? updates]) => - (new PutWithContentEncodingInputBuilder()..update(updates))._build(); + factory _$PutWithContentEncodingInput([ + void Function(PutWithContentEncodingInputBuilder)? updates, + ]) => (new PutWithContentEncodingInputBuilder()..update(updates))._build(); _$PutWithContentEncodingInput._({this.encoding, this.data}) : super._(); @override PutWithContentEncodingInput rebuild( - void Function(PutWithContentEncodingInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputBuilder toBuilder() => @@ -47,8 +47,10 @@ class _$PutWithContentEncodingInput extends PutWithContentEncodingInput { class PutWithContentEncodingInputBuilder implements - Builder { + Builder< + PutWithContentEncodingInput, + PutWithContentEncodingInputBuilder + > { _$PutWithContentEncodingInput? _$v; String? _encoding; @@ -86,7 +88,8 @@ class PutWithContentEncodingInputBuilder PutWithContentEncodingInput build() => _build(); _$PutWithContentEncodingInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutWithContentEncodingInput._(encoding: encoding, data: data); replace(_$result); return _$result; @@ -98,9 +101,9 @@ class _$PutWithContentEncodingInputPayload @override final String? data; - factory _$PutWithContentEncodingInputPayload( - [void Function(PutWithContentEncodingInputPayloadBuilder)? - updates]) => + factory _$PutWithContentEncodingInputPayload([ + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ]) => (new PutWithContentEncodingInputPayloadBuilder()..update(updates)) ._build(); @@ -108,8 +111,8 @@ class _$PutWithContentEncodingInputPayload @override PutWithContentEncodingInputPayload rebuild( - void Function(PutWithContentEncodingInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutWithContentEncodingInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutWithContentEncodingInputPayloadBuilder toBuilder() => @@ -132,8 +135,10 @@ class _$PutWithContentEncodingInputPayload class PutWithContentEncodingInputPayloadBuilder implements - Builder { + Builder< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInputPayloadBuilder + > { _$PutWithContentEncodingInputPayload? _$v; String? _data; @@ -159,7 +164,8 @@ class PutWithContentEncodingInputPayloadBuilder @override void update( - void Function(PutWithContentEncodingInputPayloadBuilder)? updates) { + void Function(PutWithContentEncodingInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart index 0995dd1737..f7134c2847 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.query_idempotency_token_auto_fill_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,17 +16,19 @@ abstract class QueryIdempotencyTokenAutoFillInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryIdempotencyTokenAutoFillInput({String? token}) { return _$QueryIdempotencyTokenAutoFillInput._(token: token); } - factory QueryIdempotencyTokenAutoFillInput.build( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates]) = - _$QueryIdempotencyTokenAutoFillInput; + factory QueryIdempotencyTokenAutoFillInput.build([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInput; const QueryIdempotencyTokenAutoFillInput._(); @@ -34,22 +36,23 @@ abstract class QueryIdempotencyTokenAutoFillInput QueryIdempotencyTokenAutoFillInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryIdempotencyTokenAutoFillInput.build((b) { - if (request.queryParameters['token'] != null) { - b.token = request.queryParameters['token']!; - } - }); + }) => QueryIdempotencyTokenAutoFillInput.build((b) { + if (request.queryParameters['token'] != null) { + b.token = request.queryParameters['token']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryIdempotencyTokenAutoFillInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [QueryIdempotencyTokenAutoFillInputRestXmlSerializer()]; @BuiltValueHook(initializeBuilder: true) static void _init(QueryIdempotencyTokenAutoFillInputBuilder b) { - b.token = const bool.hasEnvironment('SMITHY_TEST') - ? '00000000-0000-4000-8000-000000000000' - : _i2.uuid(secure: true); + b.token = + const bool.hasEnvironment('SMITHY_TEST') + ? '00000000-0000-4000-8000-000000000000' + : _i2.uuid(secure: true); } String? get token; @@ -62,27 +65,25 @@ abstract class QueryIdempotencyTokenAutoFillInput @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryIdempotencyTokenAutoFillInput') - ..add( - 'token', - token, - ); + final helper = newBuiltValueToStringHelper( + 'QueryIdempotencyTokenAutoFillInput', + )..add('token', token); return helper.toString(); } } @_i3.internal abstract class QueryIdempotencyTokenAutoFillInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates]) = _$QueryIdempotencyTokenAutoFillInputPayload; + factory QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ]) = _$QueryIdempotencyTokenAutoFillInputPayload; const QueryIdempotencyTokenAutoFillInputPayload._(); @@ -92,31 +93,32 @@ abstract class QueryIdempotencyTokenAutoFillInputPayload @override String toString() { final helper = newBuiltValueToStringHelper( - 'QueryIdempotencyTokenAutoFillInputPayload'); + 'QueryIdempotencyTokenAutoFillInputPayload', + ); return helper.toString(); } } -class QueryIdempotencyTokenAutoFillInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class QueryIdempotencyTokenAutoFillInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + QueryIdempotencyTokenAutoFillInputPayload + > { const QueryIdempotencyTokenAutoFillInputRestXmlSerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [ - QueryIdempotencyTokenAutoFillInput, - _$QueryIdempotencyTokenAutoFillInput, - QueryIdempotencyTokenAutoFillInputPayload, - _$QueryIdempotencyTokenAutoFillInputPayload, - ]; + QueryIdempotencyTokenAutoFillInput, + _$QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputPayload, + _$QueryIdempotencyTokenAutoFillInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryIdempotencyTokenAutoFillInputPayload deserialize( @@ -134,7 +136,7 @@ class QueryIdempotencyTokenAutoFillInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('QueryIdempotencyTokenAutoFillInput') + const _i1.XmlElementName('QueryIdempotencyTokenAutoFillInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart index 77f1132aa1..e587f2ad82 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_idempotency_token_auto_fill_input.g.dart @@ -11,9 +11,9 @@ class _$QueryIdempotencyTokenAutoFillInput @override final String? token; - factory _$QueryIdempotencyTokenAutoFillInput( - [void Function(QueryIdempotencyTokenAutoFillInputBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInput([ + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputBuilder()..update(updates)) ._build(); @@ -21,8 +21,8 @@ class _$QueryIdempotencyTokenAutoFillInput @override QueryIdempotencyTokenAutoFillInput rebuild( - void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputBuilder toBuilder() => @@ -45,8 +45,10 @@ class _$QueryIdempotencyTokenAutoFillInput class QueryIdempotencyTokenAutoFillInputBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInput, + QueryIdempotencyTokenAutoFillInputBuilder + > { _$QueryIdempotencyTokenAutoFillInput? _$v; String? _token; @@ -74,7 +76,8 @@ class QueryIdempotencyTokenAutoFillInputBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates) { + void Function(QueryIdempotencyTokenAutoFillInputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -91,9 +94,9 @@ class QueryIdempotencyTokenAutoFillInputBuilder class _$QueryIdempotencyTokenAutoFillInputPayload extends QueryIdempotencyTokenAutoFillInputPayload { - factory _$QueryIdempotencyTokenAutoFillInputPayload( - [void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates]) => + factory _$QueryIdempotencyTokenAutoFillInputPayload([ + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ]) => (new QueryIdempotencyTokenAutoFillInputPayloadBuilder()..update(updates)) ._build(); @@ -101,9 +104,8 @@ class _$QueryIdempotencyTokenAutoFillInputPayload @override QueryIdempotencyTokenAutoFillInputPayload rebuild( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryIdempotencyTokenAutoFillInputPayloadBuilder toBuilder() => @@ -123,8 +125,10 @@ class _$QueryIdempotencyTokenAutoFillInputPayload class QueryIdempotencyTokenAutoFillInputPayloadBuilder implements - Builder { + Builder< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInputPayloadBuilder + > { _$QueryIdempotencyTokenAutoFillInputPayload? _$v; QueryIdempotencyTokenAutoFillInputPayloadBuilder(); @@ -137,8 +141,8 @@ class QueryIdempotencyTokenAutoFillInputPayloadBuilder @override void update( - void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? - updates) { + void Function(QueryIdempotencyTokenAutoFillInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart index fc0b21e2c8..1788f94290 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.query_params_as_string_list_map_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class QueryParamsAsStringListMapInput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory QueryParamsAsStringListMapInput({ @@ -31,9 +33,9 @@ abstract class QueryParamsAsStringListMapInput ); } - factory QueryParamsAsStringListMapInput.build( - [void Function(QueryParamsAsStringListMapInputBuilder) updates]) = - _$QueryParamsAsStringListMapInput; + factory QueryParamsAsStringListMapInput.build([ + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ]) = _$QueryParamsAsStringListMapInput; const QueryParamsAsStringListMapInput._(); @@ -41,16 +43,16 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryParamsAsStringListMapInput.build((b) { - if (request.queryParameters['corge'] != null) { - b.qux = request.queryParameters['corge']!; - } - }); + }) => QueryParamsAsStringListMapInput.build((b) { + if (request.queryParameters['corge'] != null) { + b.qux = request.queryParameters['corge']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [QueryParamsAsStringListMapInputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [QueryParamsAsStringListMapInputRestXmlSerializer()]; String? get qux; _i3.BuiltListMultimap? get foo; @@ -59,38 +61,30 @@ abstract class QueryParamsAsStringListMapInput QueryParamsAsStringListMapInputPayload(); @override - List get props => [ - qux, - foo, - ]; + List get props => [qux, foo]; @override String toString() { final helper = newBuiltValueToStringHelper('QueryParamsAsStringListMapInput') - ..add( - 'qux', - qux, - ) - ..add( - 'foo', - foo, - ); + ..add('qux', qux) + ..add('foo', foo); return helper.toString(); } } @_i4.internal abstract class QueryParamsAsStringListMapInputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + >, _i1.EmptyPayload { - factory QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates]) = _$QueryParamsAsStringListMapInputPayload; + factory QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ]) = _$QueryParamsAsStringListMapInputPayload; const QueryParamsAsStringListMapInputPayload._(); @@ -99,32 +93,31 @@ abstract class QueryParamsAsStringListMapInputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('QueryParamsAsStringListMapInputPayload'); + final helper = newBuiltValueToStringHelper( + 'QueryParamsAsStringListMapInputPayload', + ); return helper.toString(); } } -class QueryParamsAsStringListMapInputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class QueryParamsAsStringListMapInputRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestXmlSerializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [ - QueryParamsAsStringListMapInput, - _$QueryParamsAsStringListMapInput, - QueryParamsAsStringListMapInputPayload, - _$QueryParamsAsStringListMapInputPayload, - ]; + QueryParamsAsStringListMapInput, + _$QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputPayload, + _$QueryParamsAsStringListMapInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryParamsAsStringListMapInputPayload deserialize( @@ -142,7 +135,7 @@ class QueryParamsAsStringListMapInputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('QueryParamsAsStringListMapInput') + const _i1.XmlElementName('QueryParamsAsStringListMapInput'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart index eb0a5eeece..5410fceab0 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_params_as_string_list_map_input.g.dart @@ -13,16 +13,17 @@ class _$QueryParamsAsStringListMapInput @override final _i3.BuiltListMultimap? foo; - factory _$QueryParamsAsStringListMapInput( - [void Function(QueryParamsAsStringListMapInputBuilder)? updates]) => + factory _$QueryParamsAsStringListMapInput([ + void Function(QueryParamsAsStringListMapInputBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputBuilder()..update(updates))._build(); _$QueryParamsAsStringListMapInput._({this.qux, this.foo}) : super._(); @override QueryParamsAsStringListMapInput rebuild( - void Function(QueryParamsAsStringListMapInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputBuilder toBuilder() => @@ -48,8 +49,10 @@ class _$QueryParamsAsStringListMapInput class QueryParamsAsStringListMapInputBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInput, + QueryParamsAsStringListMapInputBuilder + > { _$QueryParamsAsStringListMapInput? _$v; String? _qux; @@ -90,7 +93,8 @@ class QueryParamsAsStringListMapInputBuilder _$QueryParamsAsStringListMapInput _build() { _$QueryParamsAsStringListMapInput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$QueryParamsAsStringListMapInput._(qux: qux, foo: _foo?.build()); } catch (_) { late String _$failedField; @@ -99,7 +103,10 @@ class QueryParamsAsStringListMapInputBuilder _foo?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryParamsAsStringListMapInput', _$failedField, e.toString()); + r'QueryParamsAsStringListMapInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -110,9 +117,9 @@ class QueryParamsAsStringListMapInputBuilder class _$QueryParamsAsStringListMapInputPayload extends QueryParamsAsStringListMapInputPayload { - factory _$QueryParamsAsStringListMapInputPayload( - [void Function(QueryParamsAsStringListMapInputPayloadBuilder)? - updates]) => + factory _$QueryParamsAsStringListMapInputPayload([ + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ]) => (new QueryParamsAsStringListMapInputPayloadBuilder()..update(updates)) ._build(); @@ -120,9 +127,8 @@ class _$QueryParamsAsStringListMapInputPayload @override QueryParamsAsStringListMapInputPayload rebuild( - void Function(QueryParamsAsStringListMapInputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryParamsAsStringListMapInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryParamsAsStringListMapInputPayloadBuilder toBuilder() => @@ -142,8 +148,10 @@ class _$QueryParamsAsStringListMapInputPayload class QueryParamsAsStringListMapInputPayloadBuilder implements - Builder { + Builder< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInputPayloadBuilder + > { _$QueryParamsAsStringListMapInputPayload? _$v; QueryParamsAsStringListMapInputPayloadBuilder(); @@ -156,7 +164,8 @@ class QueryParamsAsStringListMapInputPayloadBuilder @override void update( - void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates) { + void Function(QueryParamsAsStringListMapInputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart index 395ee6a0e7..ca03acf85c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.query_precedence_input; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,19 +20,16 @@ abstract class QueryPrecedenceInput Built, _i1.EmptyPayload, _i1.HasPayload { - factory QueryPrecedenceInput({ - String? foo, - Map? baz, - }) { + factory QueryPrecedenceInput({String? foo, Map? baz}) { return _$QueryPrecedenceInput._( foo: foo, baz: baz == null ? null : _i3.BuiltMap(baz), ); } - factory QueryPrecedenceInput.build( - [void Function(QueryPrecedenceInputBuilder) updates]) = - _$QueryPrecedenceInput; + factory QueryPrecedenceInput.build([ + void Function(QueryPrecedenceInputBuilder) updates, + ]) = _$QueryPrecedenceInput; const QueryPrecedenceInput._(); @@ -40,15 +37,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - QueryPrecedenceInput.build((b) { - if (request.queryParameters['bar'] != null) { - b.foo = request.queryParameters['bar']!; - } - }); + }) => QueryPrecedenceInput.build((b) { + if (request.queryParameters['bar'] != null) { + b.foo = request.queryParameters['bar']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [QueryPrecedenceInputRestXmlSerializer()]; + serializers = [QueryPrecedenceInputRestXmlSerializer()]; String? get foo; _i3.BuiltMap? get baz; @@ -56,22 +52,14 @@ abstract class QueryPrecedenceInput QueryPrecedenceInputPayload getPayload() => QueryPrecedenceInputPayload(); @override - List get props => [ - foo, - baz, - ]; + List get props => [foo, baz]; @override String toString() { - final helper = newBuiltValueToStringHelper('QueryPrecedenceInput') - ..add( - 'foo', - foo, - ) - ..add( - 'baz', - baz, - ); + final helper = + newBuiltValueToStringHelper('QueryPrecedenceInput') + ..add('foo', foo) + ..add('baz', baz); return helper.toString(); } } @@ -82,9 +70,9 @@ abstract class QueryPrecedenceInputPayload implements Built, _i1.EmptyPayload { - factory QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder) updates]) = - _$QueryPrecedenceInputPayload; + factory QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ]) = _$QueryPrecedenceInputPayload; const QueryPrecedenceInputPayload._(); @@ -104,19 +92,16 @@ class QueryPrecedenceInputRestXmlSerializer @override Iterable get types => const [ - QueryPrecedenceInput, - _$QueryPrecedenceInput, - QueryPrecedenceInputPayload, - _$QueryPrecedenceInputPayload, - ]; + QueryPrecedenceInput, + _$QueryPrecedenceInput, + QueryPrecedenceInputPayload, + _$QueryPrecedenceInputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryPrecedenceInputPayload deserialize( diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart index 66a51ce432..f8c1ab2779 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/query_precedence_input.g.dart @@ -12,16 +12,16 @@ class _$QueryPrecedenceInput extends QueryPrecedenceInput { @override final _i3.BuiltMap? baz; - factory _$QueryPrecedenceInput( - [void Function(QueryPrecedenceInputBuilder)? updates]) => - (new QueryPrecedenceInputBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInput([ + void Function(QueryPrecedenceInputBuilder)? updates, + ]) => (new QueryPrecedenceInputBuilder()..update(updates))._build(); _$QueryPrecedenceInput._({this.foo, this.baz}) : super._(); @override QueryPrecedenceInput rebuild( - void Function(QueryPrecedenceInputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputBuilder toBuilder() => @@ -96,7 +96,10 @@ class QueryPrecedenceInputBuilder _baz?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'QueryPrecedenceInput', _$failedField, e.toString()); + r'QueryPrecedenceInput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -106,16 +109,16 @@ class QueryPrecedenceInputBuilder } class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { - factory _$QueryPrecedenceInputPayload( - [void Function(QueryPrecedenceInputPayloadBuilder)? updates]) => - (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); + factory _$QueryPrecedenceInputPayload([ + void Function(QueryPrecedenceInputPayloadBuilder)? updates, + ]) => (new QueryPrecedenceInputPayloadBuilder()..update(updates))._build(); _$QueryPrecedenceInputPayload._() : super._(); @override QueryPrecedenceInputPayload rebuild( - void Function(QueryPrecedenceInputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(QueryPrecedenceInputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override QueryPrecedenceInputPayloadBuilder toBuilder() => @@ -135,8 +138,10 @@ class _$QueryPrecedenceInputPayload extends QueryPrecedenceInputPayload { class QueryPrecedenceInputPayloadBuilder implements - Builder { + Builder< + QueryPrecedenceInputPayload, + QueryPrecedenceInputPayloadBuilder + > { _$QueryPrecedenceInputPayload? _$v; QueryPrecedenceInputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart index e017d637e5..8ecadc1262 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.recursive_shapes_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,14 +17,15 @@ abstract class RecursiveShapesInputOutput _i2.AWSEquatable implements Built { - factory RecursiveShapesInputOutput( - {RecursiveShapesInputOutputNested1? nested}) { + factory RecursiveShapesInputOutput({ + RecursiveShapesInputOutputNested1? nested, + }) { return _$RecursiveShapesInputOutput._(nested: nested); } - factory RecursiveShapesInputOutput.build( - [void Function(RecursiveShapesInputOutputBuilder) updates]) = - _$RecursiveShapesInputOutput; + factory RecursiveShapesInputOutput.build([ + void Function(RecursiveShapesInputOutputBuilder) updates, + ]) = _$RecursiveShapesInputOutput; const RecursiveShapesInputOutput._(); @@ -32,18 +33,16 @@ abstract class RecursiveShapesInputOutput RecursiveShapesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [RecursiveShapesInputOutput] from a [payload] and [response]. factory RecursiveShapesInputOutput.fromResponse( RecursiveShapesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [RecursiveShapesInputOutputRestXmlSerializer()]; + serializers = [RecursiveShapesInputOutputRestXmlSerializer()]; RecursiveShapesInputOutputNested1? get nested; @override @@ -55,10 +54,7 @@ abstract class RecursiveShapesInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -66,21 +62,18 @@ abstract class RecursiveShapesInputOutput class RecursiveShapesInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const RecursiveShapesInputOutputRestXmlSerializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [ - RecursiveShapesInputOutput, - _$RecursiveShapesInputOutput, - ]; + RecursiveShapesInputOutput, + _$RecursiveShapesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -99,10 +92,15 @@ class RecursiveShapesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -116,16 +114,18 @@ class RecursiveShapesInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('RecursiveShapesInputOutput') + const _i1.XmlElementName('RecursiveShapesInputOutput'), ]; final RecursiveShapesInputOutput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart index fc89700ff1..b737463f66 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output.g.dart @@ -10,16 +10,16 @@ class _$RecursiveShapesInputOutput extends RecursiveShapesInputOutput { @override final RecursiveShapesInputOutputNested1? nested; - factory _$RecursiveShapesInputOutput( - [void Function(RecursiveShapesInputOutputBuilder)? updates]) => - (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); + factory _$RecursiveShapesInputOutput([ + void Function(RecursiveShapesInputOutputBuilder)? updates, + ]) => (new RecursiveShapesInputOutputBuilder()..update(updates))._build(); _$RecursiveShapesInputOutput._({this.nested}) : super._(); @override RecursiveShapesInputOutput rebuild( - void Function(RecursiveShapesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class RecursiveShapesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutput', _$failedField, e.toString()); + r'RecursiveShapesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart index e5027ee130..556961fcf2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.recursive_shapes_input_output_nested1; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,50 +12,39 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested1.g.dart'; abstract class RecursiveShapesInputOutputNested1 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { factory RecursiveShapesInputOutputNested1({ String? foo, RecursiveShapesInputOutputNested2? nested, }) { - return _$RecursiveShapesInputOutputNested1._( - foo: foo, - nested: nested, - ); + return _$RecursiveShapesInputOutputNested1._(foo: foo, nested: nested); } - factory RecursiveShapesInputOutputNested1.build( - [void Function(RecursiveShapesInputOutputNested1Builder) updates]) = - _$RecursiveShapesInputOutputNested1; + factory RecursiveShapesInputOutputNested1.build([ + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ]) = _$RecursiveShapesInputOutputNested1; const RecursiveShapesInputOutputNested1._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested1RestXmlSerializer()]; + serializers = [RecursiveShapesInputOutputNested1RestXmlSerializer()]; String? get foo; RecursiveShapesInputOutputNested2? get nested; @override - List get props => [ - foo, - nested, - ]; + List get props => [foo, nested]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested1') - ..add( - 'foo', - foo, - ) - ..add( - 'nested', - nested, - ); + ..add('foo', foo) + ..add('nested', nested); return helper.toString(); } } @@ -63,21 +52,18 @@ abstract class RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1RestXmlSerializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestXmlSerializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested1, - _$RecursiveShapesInputOutputNested1, - ]; + RecursiveShapesInputOutputNested1, + _$RecursiveShapesInputOutputNested1, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -96,15 +82,22 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -118,24 +111,25 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('RecursiveShapesInputOutputNested1') + const _i2.XmlElementName('RecursiveShapesInputOutputNested1'), ]; final RecursiveShapesInputOutputNested1(:foo, :nested) = object; if (foo != null) { result$ ..add(const _i2.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (nested != null) { result$ ..add(const _i2.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(RecursiveShapesInputOutputNested2), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart index 658695aa86..a74cf81627 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested1.g.dart @@ -13,8 +13,9 @@ class _$RecursiveShapesInputOutputNested1 @override final RecursiveShapesInputOutputNested2? nested; - factory _$RecursiveShapesInputOutputNested1( - [void Function(RecursiveShapesInputOutputNested1Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested1([ + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested1Builder()..update(updates)) ._build(); @@ -22,8 +23,8 @@ class _$RecursiveShapesInputOutputNested1 @override RecursiveShapesInputOutputNested1 rebuild( - void Function(RecursiveShapesInputOutputNested1Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested1Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested1Builder toBuilder() => @@ -49,8 +50,10 @@ class _$RecursiveShapesInputOutputNested1 class RecursiveShapesInputOutputNested1Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested1, + RecursiveShapesInputOutputNested1Builder + > { _$RecursiveShapesInputOutputNested1? _$v; String? _foo; @@ -83,7 +86,8 @@ class RecursiveShapesInputOutputNested1Builder @override void update( - void Function(RecursiveShapesInputOutputNested1Builder)? updates) { + void Function(RecursiveShapesInputOutputNested1Builder)? updates, + ) { if (updates != null) updates(this); } @@ -93,9 +97,12 @@ class RecursiveShapesInputOutputNested1Builder _$RecursiveShapesInputOutputNested1 _build() { _$RecursiveShapesInputOutputNested1 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested1._( - foo: foo, nested: _nested?.build()); + foo: foo, + nested: _nested?.build(), + ); } catch (_) { late String _$failedField; try { @@ -103,7 +110,10 @@ class RecursiveShapesInputOutputNested1Builder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested1', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested1', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart index 75cef2a1bd..df15ebf334 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.recursive_shapes_input_output_nested2; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,11 +12,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'recursive_shapes_input_output_nested2.g.dart'; abstract class RecursiveShapesInputOutputNested2 - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { factory RecursiveShapesInputOutputNested2({ String? bar, RecursiveShapesInputOutputNested1? recursiveMember, @@ -27,35 +28,26 @@ abstract class RecursiveShapesInputOutputNested2 ); } - factory RecursiveShapesInputOutputNested2.build( - [void Function(RecursiveShapesInputOutputNested2Builder) updates]) = - _$RecursiveShapesInputOutputNested2; + factory RecursiveShapesInputOutputNested2.build([ + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ]) = _$RecursiveShapesInputOutputNested2; const RecursiveShapesInputOutputNested2._(); static const List<_i2.SmithySerializer> - serializers = [RecursiveShapesInputOutputNested2RestXmlSerializer()]; + serializers = [RecursiveShapesInputOutputNested2RestXmlSerializer()]; String? get bar; RecursiveShapesInputOutputNested1? get recursiveMember; @override - List get props => [ - bar, - recursiveMember, - ]; + List get props => [bar, recursiveMember]; @override String toString() { final helper = newBuiltValueToStringHelper('RecursiveShapesInputOutputNested2') - ..add( - 'bar', - bar, - ) - ..add( - 'recursiveMember', - recursiveMember, - ); + ..add('bar', bar) + ..add('recursiveMember', recursiveMember); return helper.toString(); } } @@ -63,21 +55,18 @@ abstract class RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2RestXmlSerializer extends _i2.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestXmlSerializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [ - RecursiveShapesInputOutputNested2, - _$RecursiveShapesInputOutputNested2, - ]; + RecursiveShapesInputOutputNested2, + _$RecursiveShapesInputOutputNested2, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -96,15 +85,22 @@ class RecursiveShapesInputOutputNested2RestXmlSerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -118,24 +114,25 @@ class RecursiveShapesInputOutputNested2RestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i2.XmlElementName('RecursiveShapesInputOutputNested2') + const _i2.XmlElementName('RecursiveShapesInputOutputNested2'), ]; final RecursiveShapesInputOutputNested2(:bar, :recursiveMember) = object; if (bar != null) { result$ ..add(const _i2.XmlElementName('bar')) - ..add(serializers.serialize( - bar, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bar, specifiedType: const FullType(String)), + ); } if (recursiveMember != null) { result$ ..add(const _i2.XmlElementName('recursiveMember')) - ..add(serializers.serialize( - recursiveMember, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - )); + ..add( + serializers.serialize( + recursiveMember, + specifiedType: const FullType(RecursiveShapesInputOutputNested1), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart index 5d6e059eed..335c218759 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/recursive_shapes_input_output_nested2.g.dart @@ -13,18 +13,19 @@ class _$RecursiveShapesInputOutputNested2 @override final RecursiveShapesInputOutputNested1? recursiveMember; - factory _$RecursiveShapesInputOutputNested2( - [void Function(RecursiveShapesInputOutputNested2Builder)? updates]) => + factory _$RecursiveShapesInputOutputNested2([ + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ]) => (new RecursiveShapesInputOutputNested2Builder()..update(updates)) ._build(); _$RecursiveShapesInputOutputNested2._({this.bar, this.recursiveMember}) - : super._(); + : super._(); @override RecursiveShapesInputOutputNested2 rebuild( - void Function(RecursiveShapesInputOutputNested2Builder) updates) => - (toBuilder()..update(updates)).build(); + void Function(RecursiveShapesInputOutputNested2Builder) updates, + ) => (toBuilder()..update(updates)).build(); @override RecursiveShapesInputOutputNested2Builder toBuilder() => @@ -50,8 +51,10 @@ class _$RecursiveShapesInputOutputNested2 class RecursiveShapesInputOutputNested2Builder implements - Builder { + Builder< + RecursiveShapesInputOutputNested2, + RecursiveShapesInputOutputNested2Builder + > { _$RecursiveShapesInputOutputNested2? _$v; String? _bar; @@ -63,8 +66,8 @@ class RecursiveShapesInputOutputNested2Builder _$this._recursiveMember ??= new RecursiveShapesInputOutputNested1Builder(); set recursiveMember( - RecursiveShapesInputOutputNested1Builder? recursiveMember) => - _$this._recursiveMember = recursiveMember; + RecursiveShapesInputOutputNested1Builder? recursiveMember, + ) => _$this._recursiveMember = recursiveMember; RecursiveShapesInputOutputNested2Builder(); @@ -86,7 +89,8 @@ class RecursiveShapesInputOutputNested2Builder @override void update( - void Function(RecursiveShapesInputOutputNested2Builder)? updates) { + void Function(RecursiveShapesInputOutputNested2Builder)? updates, + ) { if (updates != null) updates(this); } @@ -96,9 +100,12 @@ class RecursiveShapesInputOutputNested2Builder _$RecursiveShapesInputOutputNested2 _build() { _$RecursiveShapesInputOutputNested2 _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$RecursiveShapesInputOutputNested2._( - bar: bar, recursiveMember: _recursiveMember?.build()); + bar: bar, + recursiveMember: _recursiveMember?.build(), + ); } catch (_) { late String _$failedField; try { @@ -106,7 +113,10 @@ class RecursiveShapesInputOutputNested2Builder _recursiveMember?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'RecursiveShapesInputOutputNested2', _$failedField, e.toString()); + r'RecursiveShapesInputOutputNested2', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_config.dart index b720e1b7d6..48148900e2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestXmlSerializer() + RetryConfigRestXmlSerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestXmlSerializer const RetryConfigRestXmlSerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestXmlSerializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -121,18 +105,19 @@ class RetryConfigRestXmlSerializer if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart index 1a2ffa7ee8..7e14d37ce0 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart index f83e0cf467..b535ff0dce 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.dart index 618aaf8647..c10b476564 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestXmlSerializer() + S3ConfigRestXmlSerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestXmlSerializer const S3ConfigRestXmlSerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestXmlSerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,31 +124,37 @@ class S3ConfigRestXmlSerializer final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart index 012d11d4b4..14701ccdda 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestXmlSerializer() + ScopedConfigRestXmlSerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestXmlSerializer const ScopedConfigRestXmlSerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigRestXmlSerializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -190,61 +175,65 @@ class ScopedConfigRestXmlSerializer :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart index ac92f18d35..f6f65b876e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,8 +17,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + >, _i1.HasPayload { factory SimpleScalarPropertiesInputOutput({ String? foo, @@ -46,9 +48,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -56,45 +58,44 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; String? get foo; String? get stringValue; @@ -122,76 +123,47 @@ abstract class SimpleScalarPropertiesInputOutput @override List get props => [ - foo, - stringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + foo, + stringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('foo', foo) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @_i4.internal abstract class SimpleScalarPropertiesInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates]) = _$SimpleScalarPropertiesInputOutputPayload; + Built< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { + factory SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutputPayload; const SimpleScalarPropertiesInputOutputPayload._(); @@ -206,81 +178,54 @@ abstract class SimpleScalarPropertiesInputOutputPayload bool? get trueBooleanValue; @override List get props => [ - byteValue, - doubleValue, - falseBooleanValue, - floatValue, - integerValue, - longValue, - shortValue, - stringValue, - trueBooleanValue, - ]; + byteValue, + doubleValue, + falseBooleanValue, + floatValue, + integerValue, + longValue, + shortValue, + stringValue, + trueBooleanValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutputPayload') - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'doubleValue', - doubleValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ); + ..add('byteValue', byteValue) + ..add('doubleValue', doubleValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('floatValue', floatValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('shortValue', shortValue) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue); return helper.toString(); } } -class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class SimpleScalarPropertiesInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + SimpleScalarPropertiesInputOutputPayload + > { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - _$SimpleScalarPropertiesInputOutputPayload, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + _$SimpleScalarPropertiesInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutputPayload deserialize( @@ -299,50 +244,68 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 } switch (key) { case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -356,7 +319,7 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('SimpleScalarPropertiesInputOutput') + const _i1.XmlElementName('SimpleScalarPropertiesInputOutput'), ]; final SimpleScalarPropertiesInputOutputPayload( :byteValue, @@ -367,79 +330,91 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 :longValue, :shortValue, :stringValue, - :trueBooleanValue + :trueBooleanValue, ) = object; if (byteValue != null) { result$ ..add(const _i1.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add(const _i1.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i1.XmlElementName('falseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add(const _i1.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i1.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (shortValue != null) { result$ ..add(const _i1.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add(const _i1.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i1.XmlElementName('trueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart index e7b332a395..760a6cb211 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/simple_scalar_properties_input_output.g.dart @@ -29,28 +29,29 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutput._( - {this.foo, - this.stringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + _$SimpleScalarPropertiesInputOutput._({ + this.foo, + this.stringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -92,8 +93,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; String? _foo; @@ -166,7 +169,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -174,18 +178,20 @@ class SimpleScalarPropertiesInputOutputBuilder SimpleScalarPropertiesInputOutput build() => _build(); _$SimpleScalarPropertiesInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - foo: foo, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + foo: foo, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } @@ -212,29 +218,28 @@ class _$SimpleScalarPropertiesInputOutputPayload @override final bool? trueBooleanValue; - factory _$SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? - updates]) => + factory _$SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputPayloadBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutputPayload._( - {this.byteValue, - this.doubleValue, - this.falseBooleanValue, - this.floatValue, - this.integerValue, - this.longValue, - this.shortValue, - this.stringValue, - this.trueBooleanValue}) - : super._(); + _$SimpleScalarPropertiesInputOutputPayload._({ + this.byteValue, + this.doubleValue, + this.falseBooleanValue, + this.floatValue, + this.integerValue, + this.longValue, + this.shortValue, + this.stringValue, + this.trueBooleanValue, + }) : super._(); @override SimpleScalarPropertiesInputOutputPayload rebuild( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputPayloadBuilder toBuilder() => @@ -274,8 +279,10 @@ class _$SimpleScalarPropertiesInputOutputPayload class SimpleScalarPropertiesInputOutputPayloadBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { _$SimpleScalarPropertiesInputOutputPayload? _$v; int? _byteValue; @@ -343,7 +350,8 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -351,17 +359,19 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder SimpleScalarPropertiesInputOutputPayload build() => _build(); _$SimpleScalarPropertiesInputOutputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutputPayload._( - byteValue: byteValue, - doubleValue: doubleValue, - falseBooleanValue: falseBooleanValue, - floatValue: floatValue, - integerValue: integerValue, - longValue: longValue, - shortValue: shortValue, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue); + byteValue: byteValue, + doubleValue: doubleValue, + falseBooleanValue: falseBooleanValue, + floatValue: floatValue, + integerValue: integerValue, + longValue: longValue, + shortValue: shortValue, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart index 7da3a4ab0e..c353834edb 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.structure_list_member; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,45 +13,31 @@ part 'structure_list_member.g.dart'; abstract class StructureListMember with _i1.AWSEquatable implements Built { - factory StructureListMember({ - String? a, - String? b, - }) { - return _$StructureListMember._( - a: a, - b: b, - ); + factory StructureListMember({String? a, String? b}) { + return _$StructureListMember._(a: a, b: b); } - factory StructureListMember.build( - [void Function(StructureListMemberBuilder) updates]) = - _$StructureListMember; + factory StructureListMember.build([ + void Function(StructureListMemberBuilder) updates, + ]) = _$StructureListMember; const StructureListMember._(); static const List<_i2.SmithySerializer> serializers = [ - StructureListMemberRestXmlSerializer() + StructureListMemberRestXmlSerializer(), ]; String? get a; String? get b; @override - List get props => [ - a, - b, - ]; + List get props => [a, b]; @override String toString() { - final helper = newBuiltValueToStringHelper('StructureListMember') - ..add( - 'a', - a, - ) - ..add( - 'b', - b, - ); + final helper = + newBuiltValueToStringHelper('StructureListMember') + ..add('a', a) + ..add('b', b); return helper.toString(); } } @@ -62,17 +48,14 @@ class StructureListMemberRestXmlSerializer @override Iterable get types => const [ - StructureListMember, - _$StructureListMember, - ]; + StructureListMember, + _$StructureListMember, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override StructureListMember deserialize( @@ -91,15 +74,19 @@ class StructureListMemberRestXmlSerializer } switch (key) { case 'value': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'other': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -117,18 +104,12 @@ class StructureListMemberRestXmlSerializer if (a != null) { result$ ..add(const _i2.XmlElementName('value')) - ..add(serializers.serialize( - a, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(a, specifiedType: const FullType(String))); } if (b != null) { result$ ..add(const _i2.XmlElementName('other')) - ..add(serializers.serialize( - b, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(b, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart index 83f8f0d64d..b9c8199834 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/structure_list_member.g.dart @@ -12,16 +12,16 @@ class _$StructureListMember extends StructureListMember { @override final String? b; - factory _$StructureListMember( - [void Function(StructureListMemberBuilder)? updates]) => - (new StructureListMemberBuilder()..update(updates))._build(); + factory _$StructureListMember([ + void Function(StructureListMemberBuilder)? updates, + ]) => (new StructureListMemberBuilder()..update(updates))._build(); _$StructureListMember._({this.a, this.b}) : super._(); @override StructureListMember rebuild( - void Function(StructureListMemberBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(StructureListMemberBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override StructureListMemberBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart index feaa9d9550..f34d7ed8ef 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.timestamp_format_headers_io; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -39,9 +39,9 @@ abstract class TimestampFormatHeadersIo ); } - factory TimestampFormatHeadersIo.build( - [void Function(TimestampFormatHeadersIoBuilder) updates]) = - _$TimestampFormatHeadersIo; + factory TimestampFormatHeadersIo.build([ + void Function(TimestampFormatHeadersIoBuilder) updates, + ]) = _$TimestampFormatHeadersIo; const TimestampFormatHeadersIo._(); @@ -49,104 +49,116 @@ abstract class TimestampFormatHeadersIo TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - TimestampFormatHeadersIo.build((b) { - if (request.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + }) => TimestampFormatHeadersIo.build((b) { + if (request.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( request.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( request.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (request.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( request.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (request.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(request.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (request.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (request.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( request.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (request.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( request.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); /// Constructs a [TimestampFormatHeadersIo] from a [payload] and [response]. factory TimestampFormatHeadersIo.fromResponse( TimestampFormatHeadersIoPayload payload, _i2.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.build((b) { - if (response.headers['X-memberEpochSeconds'] != null) { - b.memberEpochSeconds = _i1.Timestamp.parse( + ) => TimestampFormatHeadersIo.build((b) { + if (response.headers['X-memberEpochSeconds'] != null) { + b.memberEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-memberEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-memberHttpDate'] != null) { - b.memberHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-memberHttpDate'] != null) { + b.memberHttpDate = + _i1.Timestamp.parse( response.headers['X-memberHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-memberDateTime'] != null) { - b.memberDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-memberDateTime'] != null) { + b.memberDateTime = + _i1.Timestamp.parse( response.headers['X-memberDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (response.headers['X-defaultFormat'] != null) { - b.defaultFormat = _i1.Timestamp.parse( + } + if (response.headers['X-defaultFormat'] != null) { + b.defaultFormat = + _i1.Timestamp.parse( response.headers['X-defaultFormat']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetEpochSeconds'] != null) { - b.targetEpochSeconds = _i1.Timestamp.parse( + } + if (response.headers['X-targetEpochSeconds'] != null) { + b.targetEpochSeconds = + _i1.Timestamp.parse( int.parse(response.headers['X-targetEpochSeconds']!), format: _i1.TimestampFormat.epochSeconds, ).asDateTime; - } - if (response.headers['X-targetHttpDate'] != null) { - b.targetHttpDate = _i1.Timestamp.parse( + } + if (response.headers['X-targetHttpDate'] != null) { + b.targetHttpDate = + _i1.Timestamp.parse( response.headers['X-targetHttpDate']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['X-targetDateTime'] != null) { - b.targetDateTime = _i1.Timestamp.parse( + } + if (response.headers['X-targetDateTime'] != null) { + b.targetDateTime = + _i1.Timestamp.parse( response.headers['X-targetDateTime']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - }); + } + }); static const List<_i1.SmithySerializer> - serializers = [TimestampFormatHeadersIoRestXmlSerializer()]; + serializers = [TimestampFormatHeadersIoRestXmlSerializer()]; DateTime? get memberEpochSeconds; DateTime? get memberHttpDate; @@ -161,61 +173,42 @@ abstract class TimestampFormatHeadersIo @override List get props => [ - memberEpochSeconds, - memberHttpDate, - memberDateTime, - defaultFormat, - targetEpochSeconds, - targetHttpDate, - targetDateTime, - ]; + memberEpochSeconds, + memberHttpDate, + memberDateTime, + defaultFormat, + targetEpochSeconds, + targetHttpDate, + targetDateTime, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('TimestampFormatHeadersIo') - ..add( - 'memberEpochSeconds', - memberEpochSeconds, - ) - ..add( - 'memberHttpDate', - memberHttpDate, - ) - ..add( - 'memberDateTime', - memberDateTime, - ) - ..add( - 'defaultFormat', - defaultFormat, - ) - ..add( - 'targetEpochSeconds', - targetEpochSeconds, - ) - ..add( - 'targetHttpDate', - targetHttpDate, - ) - ..add( - 'targetDateTime', - targetDateTime, - ); + final helper = + newBuiltValueToStringHelper('TimestampFormatHeadersIo') + ..add('memberEpochSeconds', memberEpochSeconds) + ..add('memberHttpDate', memberHttpDate) + ..add('memberDateTime', memberDateTime) + ..add('defaultFormat', defaultFormat) + ..add('targetEpochSeconds', targetEpochSeconds) + ..add('targetHttpDate', targetHttpDate) + ..add('targetDateTime', targetDateTime); return helper.toString(); } } @_i3.internal abstract class TimestampFormatHeadersIoPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + >, _i1.EmptyPayload { - factory TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder) updates]) = - _$TimestampFormatHeadersIoPayload; + factory TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ]) = _$TimestampFormatHeadersIoPayload; const TimestampFormatHeadersIoPayload._(); @@ -224,8 +217,9 @@ abstract class TimestampFormatHeadersIoPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('TimestampFormatHeadersIoPayload'); + final helper = newBuiltValueToStringHelper( + 'TimestampFormatHeadersIoPayload', + ); return helper.toString(); } } @@ -233,23 +227,20 @@ abstract class TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoRestXmlSerializer extends _i1.StructuredSmithySerializer { const TimestampFormatHeadersIoRestXmlSerializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [ - TimestampFormatHeadersIo, - _$TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - _$TimestampFormatHeadersIoPayload, - ]; + TimestampFormatHeadersIo, + _$TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + _$TimestampFormatHeadersIoPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override TimestampFormatHeadersIoPayload deserialize( @@ -267,7 +258,7 @@ class TimestampFormatHeadersIoRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('TimestampFormatHeadersIo') + const _i1.XmlElementName('TimestampFormatHeadersIo'), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart index f1498c3462..1e275a6d7c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/timestamp_format_headers_io.g.dart @@ -22,24 +22,24 @@ class _$TimestampFormatHeadersIo extends TimestampFormatHeadersIo { @override final DateTime? targetDateTime; - factory _$TimestampFormatHeadersIo( - [void Function(TimestampFormatHeadersIoBuilder)? updates]) => - (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); + factory _$TimestampFormatHeadersIo([ + void Function(TimestampFormatHeadersIoBuilder)? updates, + ]) => (new TimestampFormatHeadersIoBuilder()..update(updates))._build(); - _$TimestampFormatHeadersIo._( - {this.memberEpochSeconds, - this.memberHttpDate, - this.memberDateTime, - this.defaultFormat, - this.targetEpochSeconds, - this.targetHttpDate, - this.targetDateTime}) - : super._(); + _$TimestampFormatHeadersIo._({ + this.memberEpochSeconds, + this.memberHttpDate, + this.memberDateTime, + this.defaultFormat, + this.targetEpochSeconds, + this.targetHttpDate, + this.targetDateTime, + }) : super._(); @override TimestampFormatHeadersIo rebuild( - void Function(TimestampFormatHeadersIoBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoBuilder toBuilder() => @@ -145,15 +145,17 @@ class TimestampFormatHeadersIoBuilder TimestampFormatHeadersIo build() => _build(); _$TimestampFormatHeadersIo _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TimestampFormatHeadersIo._( - memberEpochSeconds: memberEpochSeconds, - memberHttpDate: memberHttpDate, - memberDateTime: memberDateTime, - defaultFormat: defaultFormat, - targetEpochSeconds: targetEpochSeconds, - targetHttpDate: targetHttpDate, - targetDateTime: targetDateTime); + memberEpochSeconds: memberEpochSeconds, + memberHttpDate: memberHttpDate, + memberDateTime: memberDateTime, + defaultFormat: defaultFormat, + targetEpochSeconds: targetEpochSeconds, + targetHttpDate: targetHttpDate, + targetDateTime: targetDateTime, + ); replace(_$result); return _$result; } @@ -161,16 +163,17 @@ class TimestampFormatHeadersIoBuilder class _$TimestampFormatHeadersIoPayload extends TimestampFormatHeadersIoPayload { - factory _$TimestampFormatHeadersIoPayload( - [void Function(TimestampFormatHeadersIoPayloadBuilder)? updates]) => + factory _$TimestampFormatHeadersIoPayload([ + void Function(TimestampFormatHeadersIoPayloadBuilder)? updates, + ]) => (new TimestampFormatHeadersIoPayloadBuilder()..update(updates))._build(); _$TimestampFormatHeadersIoPayload._() : super._(); @override TimestampFormatHeadersIoPayload rebuild( - void Function(TimestampFormatHeadersIoPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TimestampFormatHeadersIoPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TimestampFormatHeadersIoPayloadBuilder toBuilder() => @@ -190,8 +193,10 @@ class _$TimestampFormatHeadersIoPayload class TimestampFormatHeadersIoPayloadBuilder implements - Builder { + Builder< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIoPayloadBuilder + > { _$TimestampFormatHeadersIoPayload? _$v; TimestampFormatHeadersIoPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart index 9faf5cad98..e43c13eafd 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_attributes_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,19 +17,13 @@ abstract class XmlAttributesInputOutput _i2.AWSEquatable implements Built { - factory XmlAttributesInputOutput({ - String? foo, - String? attr, - }) { - return _$XmlAttributesInputOutput._( - foo: foo, - attr: attr, - ); + factory XmlAttributesInputOutput({String? foo, String? attr}) { + return _$XmlAttributesInputOutput._(foo: foo, attr: attr); } - factory XmlAttributesInputOutput.build( - [void Function(XmlAttributesInputOutputBuilder) updates]) = - _$XmlAttributesInputOutput; + factory XmlAttributesInputOutput.build([ + void Function(XmlAttributesInputOutputBuilder) updates, + ]) = _$XmlAttributesInputOutput; const XmlAttributesInputOutput._(); @@ -37,18 +31,16 @@ abstract class XmlAttributesInputOutput XmlAttributesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlAttributesInputOutput] from a [payload] and [response]. factory XmlAttributesInputOutput.fromResponse( XmlAttributesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlAttributesInputOutputRestXmlSerializer()]; + serializers = [XmlAttributesInputOutputRestXmlSerializer()]; String? get foo; String? get attr; @@ -56,22 +48,14 @@ abstract class XmlAttributesInputOutput XmlAttributesInputOutput getPayload() => this; @override - List get props => [ - foo, - attr, - ]; + List get props => [foo, attr]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlAttributesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'attr', - attr, - ); + final helper = + newBuiltValueToStringHelper('XmlAttributesInputOutput') + ..add('foo', foo) + ..add('attr', attr); return helper.toString(); } } @@ -79,21 +63,18 @@ abstract class XmlAttributesInputOutput class XmlAttributesInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlAttributesInputOutputRestXmlSerializer() - : super('XmlAttributesInputOutput'); + : super('XmlAttributesInputOutput'); @override Iterable get types => const [ - XmlAttributesInputOutput, - _$XmlAttributesInputOutput, - ]; + XmlAttributesInputOutput, + _$XmlAttributesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -112,15 +93,19 @@ class XmlAttributesInputOutputRestXmlSerializer } switch (key) { case 'test': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,25 +119,24 @@ class XmlAttributesInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlAttributesInputOutput') + const _i1.XmlElementName('XmlAttributesInputOutput'), ]; final XmlAttributesInputOutput(:attr, :foo) = object; if (attr != null) { - result$.add(_i3.XmlAttribute( - _i3.XmlName('test'), - (serializers.serialize( - attr, - specifiedType: const FullType(String), - ) as String), - )); + result$.add( + _i3.XmlAttribute( + _i3.XmlName('test'), + (serializers.serialize(attr, specifiedType: const FullType(String)) + as String), + ), + ); } if (foo != null) { result$ ..add(const _i1.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart index f60ad4b868..fdada1f258 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_input_output.g.dart @@ -12,16 +12,16 @@ class _$XmlAttributesInputOutput extends XmlAttributesInputOutput { @override final String? attr; - factory _$XmlAttributesInputOutput( - [void Function(XmlAttributesInputOutputBuilder)? updates]) => - (new XmlAttributesInputOutputBuilder()..update(updates))._build(); + factory _$XmlAttributesInputOutput([ + void Function(XmlAttributesInputOutputBuilder)? updates, + ]) => (new XmlAttributesInputOutputBuilder()..update(updates))._build(); _$XmlAttributesInputOutput._({this.foo, this.attr}) : super._(); @override XmlAttributesInputOutput rebuild( - void Function(XmlAttributesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlAttributesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlAttributesInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart index 3d6a4cd89a..e2a3021db8 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_attributes_on_payload_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,17 +17,20 @@ abstract class XmlAttributesOnPayloadInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + XmlAttributesOnPayloadInputOutput, + XmlAttributesOnPayloadInputOutputBuilder + >, _i1.HasPayload { - factory XmlAttributesOnPayloadInputOutput( - {XmlAttributesInputOutput? payload}) { + factory XmlAttributesOnPayloadInputOutput({ + XmlAttributesInputOutput? payload, + }) { return _$XmlAttributesOnPayloadInputOutput._(payload: payload); } - factory XmlAttributesOnPayloadInputOutput.build( - [void Function(XmlAttributesOnPayloadInputOutputBuilder) updates]) = - _$XmlAttributesOnPayloadInputOutput; + factory XmlAttributesOnPayloadInputOutput.build([ + void Function(XmlAttributesOnPayloadInputOutputBuilder) updates, + ]) = _$XmlAttributesOnPayloadInputOutput; const XmlAttributesOnPayloadInputOutput._(); @@ -35,26 +38,24 @@ abstract class XmlAttributesOnPayloadInputOutput XmlAttributesInputOutput? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - XmlAttributesOnPayloadInputOutput.build((b) { - if (payload != null) { - b.payload.replace(payload); - } - }); + }) => XmlAttributesOnPayloadInputOutput.build((b) { + if (payload != null) { + b.payload.replace(payload); + } + }); /// Constructs a [XmlAttributesOnPayloadInputOutput] from a [payload] and [response]. factory XmlAttributesOnPayloadInputOutput.fromResponse( XmlAttributesInputOutput? payload, _i2.AWSBaseHttpResponse response, - ) => - XmlAttributesOnPayloadInputOutput.build((b) { - if (payload != null) { - b.payload.replace(payload); - } - }); + ) => XmlAttributesOnPayloadInputOutput.build((b) { + if (payload != null) { + b.payload.replace(payload); + } + }); static const List<_i1.SmithySerializer> - serializers = [XmlAttributesOnPayloadInputOutputRestXmlSerializer()]; + serializers = [XmlAttributesOnPayloadInputOutputRestXmlSerializer()]; XmlAttributesInputOutput? get payload; @override @@ -66,12 +67,9 @@ abstract class XmlAttributesOnPayloadInputOutput @override String toString() { - final helper = - newBuiltValueToStringHelper('XmlAttributesOnPayloadInputOutput') - ..add( - 'payload', - payload, - ); + final helper = newBuiltValueToStringHelper( + 'XmlAttributesOnPayloadInputOutput', + )..add('payload', payload); return helper.toString(); } } @@ -79,21 +77,18 @@ abstract class XmlAttributesOnPayloadInputOutput class XmlAttributesOnPayloadInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlAttributesOnPayloadInputOutputRestXmlSerializer() - : super('XmlAttributesOnPayloadInputOutput'); + : super('XmlAttributesOnPayloadInputOutput'); @override Iterable get types => const [ - XmlAttributesOnPayloadInputOutput, - _$XmlAttributesOnPayloadInputOutput, - ]; + XmlAttributesOnPayloadInputOutput, + _$XmlAttributesOnPayloadInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -112,15 +107,19 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'test': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -134,25 +133,24 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlAttributesInputOutput') + const _i1.XmlElementName('XmlAttributesInputOutput'), ]; final XmlAttributesInputOutput(:foo, :attr) = object; if (attr != null) { - result$.add(_i3.XmlAttribute( - _i3.XmlName('test'), - (serializers.serialize( - attr, - specifiedType: const FullType(String), - ) as String), - )); + result$.add( + _i3.XmlAttribute( + _i3.XmlName('test'), + (serializers.serialize(attr, specifiedType: const FullType(String)) + as String), + ), + ); } if (foo != null) { result$ ..add(const _i1.XmlElementName('foo')) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart index 8a23a56cf8..334e2e3740 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_attributes_on_payload_input_output.g.dart @@ -11,8 +11,9 @@ class _$XmlAttributesOnPayloadInputOutput @override final XmlAttributesInputOutput? payload; - factory _$XmlAttributesOnPayloadInputOutput( - [void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates]) => + factory _$XmlAttributesOnPayloadInputOutput([ + void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates, + ]) => (new XmlAttributesOnPayloadInputOutputBuilder()..update(updates)) ._build(); @@ -20,8 +21,8 @@ class _$XmlAttributesOnPayloadInputOutput @override XmlAttributesOnPayloadInputOutput rebuild( - void Function(XmlAttributesOnPayloadInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlAttributesOnPayloadInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlAttributesOnPayloadInputOutputBuilder toBuilder() => @@ -45,8 +46,10 @@ class _$XmlAttributesOnPayloadInputOutput class XmlAttributesOnPayloadInputOutputBuilder implements - Builder { + Builder< + XmlAttributesOnPayloadInputOutput, + XmlAttributesOnPayloadInputOutputBuilder + > { _$XmlAttributesOnPayloadInputOutput? _$v; XmlAttributesInputOutputBuilder? _payload; @@ -74,7 +77,8 @@ class XmlAttributesOnPayloadInputOutputBuilder @override void update( - void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates) { + void Function(XmlAttributesOnPayloadInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -84,7 +88,8 @@ class XmlAttributesOnPayloadInputOutputBuilder _$XmlAttributesOnPayloadInputOutput _build() { _$XmlAttributesOnPayloadInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlAttributesOnPayloadInputOutput._(payload: _payload?.build()); } catch (_) { late String _$failedField; @@ -93,7 +98,10 @@ class XmlAttributesOnPayloadInputOutputBuilder _payload?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlAttributesOnPayloadInputOutput', _$failedField, e.toString()); + r'XmlAttributesOnPayloadInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart index 469c724c79..f79082fb11 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_blobs_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class XmlBlobsInputOutput return _$XmlBlobsInputOutput._(data: data); } - factory XmlBlobsInputOutput.build( - [void Function(XmlBlobsInputOutputBuilder) updates]) = - _$XmlBlobsInputOutput; + factory XmlBlobsInputOutput.build([ + void Function(XmlBlobsInputOutputBuilder) updates, + ]) = _$XmlBlobsInputOutput; const XmlBlobsInputOutput._(); @@ -31,18 +31,16 @@ abstract class XmlBlobsInputOutput XmlBlobsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlBlobsInputOutput] from a [payload] and [response]. factory XmlBlobsInputOutput.fromResponse( XmlBlobsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlBlobsInputOutputRestXmlSerializer() + XmlBlobsInputOutputRestXmlSerializer(), ]; _i3.Uint8List? get data; @@ -55,10 +53,7 @@ abstract class XmlBlobsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlBlobsInputOutput') - ..add( - 'data', - data, - ); + ..add('data', data); return helper.toString(); } } @@ -69,17 +64,14 @@ class XmlBlobsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlBlobsInputOutput, - _$XmlBlobsInputOutput, - ]; + XmlBlobsInputOutput, + _$XmlBlobsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlBlobsInputOutput deserialize( @@ -98,10 +90,12 @@ class XmlBlobsInputOutputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Uint8List), - ) as _i3.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Uint8List), + ) + as _i3.Uint8List); } } @@ -119,10 +113,12 @@ class XmlBlobsInputOutputRestXmlSerializer if (data != null) { result$ ..add(const _i1.XmlElementName('data')) - ..add(serializers.serialize( - data, - specifiedType: const FullType(_i3.Uint8List), - )); + ..add( + serializers.serialize( + data, + specifiedType: const FullType(_i3.Uint8List), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart index fd7f4e4e2f..1722d8d8cb 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_blobs_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlBlobsInputOutput extends XmlBlobsInputOutput { @override final _i3.Uint8List? data; - factory _$XmlBlobsInputOutput( - [void Function(XmlBlobsInputOutputBuilder)? updates]) => - (new XmlBlobsInputOutputBuilder()..update(updates))._build(); + factory _$XmlBlobsInputOutput([ + void Function(XmlBlobsInputOutputBuilder)? updates, + ]) => (new XmlBlobsInputOutputBuilder()..update(updates))._build(); _$XmlBlobsInputOutput._({this.data}) : super._(); @override XmlBlobsInputOutput rebuild( - void Function(XmlBlobsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlBlobsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlBlobsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart index fb5ed3d81e..635f3aaeb2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_empty_strings_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class XmlEmptyStringsInputOutput return _$XmlEmptyStringsInputOutput._(emptyString: emptyString); } - factory XmlEmptyStringsInputOutput.build( - [void Function(XmlEmptyStringsInputOutputBuilder) updates]) = - _$XmlEmptyStringsInputOutput; + factory XmlEmptyStringsInputOutput.build([ + void Function(XmlEmptyStringsInputOutputBuilder) updates, + ]) = _$XmlEmptyStringsInputOutput; const XmlEmptyStringsInputOutput._(); @@ -30,18 +30,16 @@ abstract class XmlEmptyStringsInputOutput XmlEmptyStringsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlEmptyStringsInputOutput] from a [payload] and [response]. factory XmlEmptyStringsInputOutput.fromResponse( XmlEmptyStringsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlEmptyStringsInputOutputRestXmlSerializer()]; + serializers = [XmlEmptyStringsInputOutputRestXmlSerializer()]; String? get emptyString; @override @@ -53,10 +51,7 @@ abstract class XmlEmptyStringsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlEmptyStringsInputOutput') - ..add( - 'emptyString', - emptyString, - ); + ..add('emptyString', emptyString); return helper.toString(); } } @@ -64,21 +59,18 @@ abstract class XmlEmptyStringsInputOutput class XmlEmptyStringsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlEmptyStringsInputOutputRestXmlSerializer() - : super('XmlEmptyStringsInputOutput'); + : super('XmlEmptyStringsInputOutput'); @override Iterable get types => const [ - XmlEmptyStringsInputOutput, - _$XmlEmptyStringsInputOutput, - ]; + XmlEmptyStringsInputOutput, + _$XmlEmptyStringsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEmptyStringsInputOutput deserialize( @@ -97,10 +89,12 @@ class XmlEmptyStringsInputOutputRestXmlSerializer } switch (key) { case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -114,16 +108,18 @@ class XmlEmptyStringsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlEmptyStringsInputOutput') + const _i1.XmlElementName('XmlEmptyStringsInputOutput'), ]; final XmlEmptyStringsInputOutput(:emptyString) = object; if (emptyString != null) { result$ ..add(const _i1.XmlElementName('emptyString')) - ..add(serializers.serialize( - emptyString, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + emptyString, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart index 1b8bfe7a8e..2a2299ac44 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_empty_strings_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlEmptyStringsInputOutput extends XmlEmptyStringsInputOutput { @override final String? emptyString; - factory _$XmlEmptyStringsInputOutput( - [void Function(XmlEmptyStringsInputOutputBuilder)? updates]) => - (new XmlEmptyStringsInputOutputBuilder()..update(updates))._build(); + factory _$XmlEmptyStringsInputOutput([ + void Function(XmlEmptyStringsInputOutputBuilder)? updates, + ]) => (new XmlEmptyStringsInputOutputBuilder()..update(updates))._build(); _$XmlEmptyStringsInputOutput._({this.emptyString}) : super._(); @override XmlEmptyStringsInputOutput rebuild( - void Function(XmlEmptyStringsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlEmptyStringsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlEmptyStringsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart index 2706e50bd2..89fc20bdae 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class XmlEnumsInputOutput ); } - factory XmlEnumsInputOutput.build( - [void Function(XmlEnumsInputOutputBuilder) updates]) = - _$XmlEnumsInputOutput; + factory XmlEnumsInputOutput.build([ + void Function(XmlEnumsInputOutputBuilder) updates, + ]) = _$XmlEnumsInputOutput; const XmlEnumsInputOutput._(); @@ -45,18 +45,16 @@ abstract class XmlEnumsInputOutput XmlEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlEnumsInputOutput] from a [payload] and [response]. factory XmlEnumsInputOutput.fromResponse( XmlEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlEnumsInputOutputRestXmlSerializer() + XmlEnumsInputOutputRestXmlSerializer(), ]; FooEnum? get fooEnum1; @@ -70,41 +68,24 @@ abstract class XmlEnumsInputOutput @override List get props => [ - fooEnum1, - fooEnum2, - fooEnum3, - fooEnumList, - fooEnumSet, - fooEnumMap, - ]; + fooEnum1, + fooEnum2, + fooEnum3, + fooEnumList, + fooEnumSet, + fooEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlEnumsInputOutput') - ..add( - 'fooEnum1', - fooEnum1, - ) - ..add( - 'fooEnum2', - fooEnum2, - ) - ..add( - 'fooEnum3', - fooEnum3, - ) - ..add( - 'fooEnumList', - fooEnumList, - ) - ..add( - 'fooEnumSet', - fooEnumSet, - ) - ..add( - 'fooEnumMap', - fooEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlEnumsInputOutput') + ..add('fooEnum1', fooEnum1) + ..add('fooEnum2', fooEnum2) + ..add('fooEnum3', fooEnum3) + ..add('fooEnumList', fooEnumList) + ..add('fooEnumSet', fooEnumSet) + ..add('fooEnumMap', fooEnumMap); return helper.toString(); } } @@ -115,17 +96,14 @@ class XmlEnumsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlEnumsInputOutput, - _$XmlEnumsInputOutput, - ]; + XmlEnumsInputOutput, + _$XmlEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEnumsInputOutput deserialize( @@ -144,53 +122,59 @@ class XmlEnumsInputOutputRestXmlSerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.fooEnumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'fooEnumMap': - result.fooEnumMap - .replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.fooEnumMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); case 'fooEnumSet': - result.fooEnumSet - .replace((const _i1.XmlBuiltSetSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i3.BuiltSet)); + result.fooEnumSet.replace( + (const _i1.XmlBuiltSetSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltSet), + ); } } @@ -210,70 +194,73 @@ class XmlEnumsInputOutputRestXmlSerializer :fooEnum3, :fooEnumList, :fooEnumMap, - :fooEnumSet + :fooEnumSet, ) = object; if (fooEnum1 != null) { result$ ..add(const _i1.XmlElementName('fooEnum1')) - ..add(serializers.serialize( - fooEnum1, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum1, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum2 != null) { result$ ..add(const _i1.XmlElementName('fooEnum2')) - ..add(serializers.serialize( - fooEnum2, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum2, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnum3 != null) { result$ ..add(const _i1.XmlElementName('fooEnum3')) - ..add(serializers.serialize( - fooEnum3, - specifiedType: const FullType(FooEnum), - )); + ..add( + serializers.serialize( + fooEnum3, + specifiedType: const FullType(FooEnum), + ), + ); } if (fooEnumList != null) { result$ ..add(const _i1.XmlElementName('fooEnumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - fooEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + fooEnumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (fooEnumMap != null) { result$ ..add(const _i1.XmlElementName('fooEnumMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - fooEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + fooEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(FooEnum), - ], + ]), ), - )); + ); } if (fooEnumSet != null) { result$ ..add(const _i1.XmlElementName('fooEnumSet')) - ..add(const _i1.XmlBuiltSetSerializer().serialize( - serializers, - fooEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(FooEnum)], + ..add( + const _i1.XmlBuiltSetSerializer().serialize( + serializers, + fooEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(FooEnum)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart index b055e639ae..6f0720850e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$XmlEnumsInputOutput extends XmlEnumsInputOutput { @override final _i3.BuiltMap? fooEnumMap; - factory _$XmlEnumsInputOutput( - [void Function(XmlEnumsInputOutputBuilder)? updates]) => - (new XmlEnumsInputOutputBuilder()..update(updates))._build(); - - _$XmlEnumsInputOutput._( - {this.fooEnum1, - this.fooEnum2, - this.fooEnum3, - this.fooEnumList, - this.fooEnumSet, - this.fooEnumMap}) - : super._(); + factory _$XmlEnumsInputOutput([ + void Function(XmlEnumsInputOutputBuilder)? updates, + ]) => (new XmlEnumsInputOutputBuilder()..update(updates))._build(); + + _$XmlEnumsInputOutput._({ + this.fooEnum1, + this.fooEnum2, + this.fooEnum3, + this.fooEnumList, + this.fooEnumSet, + this.fooEnumMap, + }) : super._(); @override XmlEnumsInputOutput rebuild( - void Function(XmlEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class XmlEnumsInputOutputBuilder _$XmlEnumsInputOutput _build() { _$XmlEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlEnumsInputOutput._( - fooEnum1: fooEnum1, - fooEnum2: fooEnum2, - fooEnum3: fooEnum3, - fooEnumList: _fooEnumList?.build(), - fooEnumSet: _fooEnumSet?.build(), - fooEnumMap: _fooEnumMap?.build()); + fooEnum1: fooEnum1, + fooEnum2: fooEnum2, + fooEnum3: fooEnum3, + fooEnumList: _fooEnumList?.build(), + fooEnumSet: _fooEnumSet?.build(), + fooEnumMap: _fooEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class XmlEnumsInputOutputBuilder _fooEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlEnumsInputOutput', _$failedField, e.toString()); + r'XmlEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart index a011a7464c..086057358c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_int_enums_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,9 +35,9 @@ abstract class XmlIntEnumsInputOutput ); } - factory XmlIntEnumsInputOutput.build( - [void Function(XmlIntEnumsInputOutputBuilder) updates]) = - _$XmlIntEnumsInputOutput; + factory XmlIntEnumsInputOutput.build([ + void Function(XmlIntEnumsInputOutputBuilder) updates, + ]) = _$XmlIntEnumsInputOutput; const XmlIntEnumsInputOutput._(); @@ -45,15 +45,13 @@ abstract class XmlIntEnumsInputOutput XmlIntEnumsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlIntEnumsInputOutput] from a [payload] and [response]. factory XmlIntEnumsInputOutput.fromResponse( XmlIntEnumsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [XmlIntEnumsInputOutputRestXmlSerializer()]; @@ -69,41 +67,24 @@ abstract class XmlIntEnumsInputOutput @override List get props => [ - intEnum1, - intEnum2, - intEnum3, - intEnumList, - intEnumSet, - intEnumMap, - ]; + intEnum1, + intEnum2, + intEnum3, + intEnumList, + intEnumSet, + intEnumMap, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlIntEnumsInputOutput') - ..add( - 'intEnum1', - intEnum1, - ) - ..add( - 'intEnum2', - intEnum2, - ) - ..add( - 'intEnum3', - intEnum3, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'intEnumSet', - intEnumSet, - ) - ..add( - 'intEnumMap', - intEnumMap, - ); + final helper = + newBuiltValueToStringHelper('XmlIntEnumsInputOutput') + ..add('intEnum1', intEnum1) + ..add('intEnum2', intEnum2) + ..add('intEnum3', intEnum3) + ..add('intEnumList', intEnumList) + ..add('intEnumSet', intEnumSet) + ..add('intEnumMap', intEnumMap); return helper.toString(); } } @@ -111,21 +92,18 @@ abstract class XmlIntEnumsInputOutput class XmlIntEnumsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlIntEnumsInputOutputRestXmlSerializer() - : super('XmlIntEnumsInputOutput'); + : super('XmlIntEnumsInputOutput'); @override Iterable get types => const [ - XmlIntEnumsInputOutput, - _$XmlIntEnumsInputOutput, - ]; + XmlIntEnumsInputOutput, + _$XmlIntEnumsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlIntEnumsInputOutput deserialize( @@ -144,53 +122,59 @@ class XmlIntEnumsInputOutputRestXmlSerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltList), + ); case 'intEnumMap': - result.intEnumMap - .replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.intEnumMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); case 'intEnumSet': - result.intEnumSet - .replace((const _i1.XmlBuiltSetSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltSet)); + result.intEnumSet.replace( + (const _i1.XmlBuiltSetSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltSet), + ); } } @@ -204,7 +188,7 @@ class XmlIntEnumsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlIntEnumsInputOutput') + const _i1.XmlElementName('XmlIntEnumsInputOutput'), ]; final XmlIntEnumsInputOutput( :intEnum1, @@ -212,70 +196,77 @@ class XmlIntEnumsInputOutputRestXmlSerializer :intEnum3, :intEnumList, :intEnumMap, - :intEnumSet + :intEnumSet, ) = object; if (intEnum1 != null) { result$ ..add(const _i1.XmlElementName('intEnum1')) - ..add(serializers.serialize( - intEnum1, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum1, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum2 != null) { result$ ..add(const _i1.XmlElementName('intEnum2')) - ..add(serializers.serialize( - intEnum2, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum2, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnum3 != null) { result$ ..add(const _i1.XmlElementName('intEnum3')) - ..add(serializers.serialize( - intEnum3, - specifiedType: const FullType(IntegerEnum), - )); + ..add( + serializers.serialize( + intEnum3, + specifiedType: const FullType(IntegerEnum), + ), + ); } if (intEnumList != null) { result$ ..add(const _i1.XmlElementName('intEnumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (intEnumMap != null) { result$ ..add(const _i1.XmlElementName('intEnumMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - intEnumMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + intEnumMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(IntegerEnum), - ], + ]), ), - )); + ); } if (intEnumSet != null) { result$ ..add(const _i1.XmlElementName('intEnumSet')) - ..add(const _i1.XmlBuiltSetSerializer().serialize( - serializers, - intEnumSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(IntegerEnum)], + ..add( + const _i1.XmlBuiltSetSerializer().serialize( + serializers, + intEnumSet, + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(IntegerEnum), + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart index 9078e52637..0e20d1d1a2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_int_enums_input_output.g.dart @@ -20,23 +20,23 @@ class _$XmlIntEnumsInputOutput extends XmlIntEnumsInputOutput { @override final _i3.BuiltMap? intEnumMap; - factory _$XmlIntEnumsInputOutput( - [void Function(XmlIntEnumsInputOutputBuilder)? updates]) => - (new XmlIntEnumsInputOutputBuilder()..update(updates))._build(); - - _$XmlIntEnumsInputOutput._( - {this.intEnum1, - this.intEnum2, - this.intEnum3, - this.intEnumList, - this.intEnumSet, - this.intEnumMap}) - : super._(); + factory _$XmlIntEnumsInputOutput([ + void Function(XmlIntEnumsInputOutputBuilder)? updates, + ]) => (new XmlIntEnumsInputOutputBuilder()..update(updates))._build(); + + _$XmlIntEnumsInputOutput._({ + this.intEnum1, + this.intEnum2, + this.intEnum3, + this.intEnumList, + this.intEnumSet, + this.intEnumMap, + }) : super._(); @override XmlIntEnumsInputOutput rebuild( - void Function(XmlIntEnumsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlIntEnumsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlIntEnumsInputOutputBuilder toBuilder() => @@ -135,14 +135,16 @@ class XmlIntEnumsInputOutputBuilder _$XmlIntEnumsInputOutput _build() { _$XmlIntEnumsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlIntEnumsInputOutput._( - intEnum1: intEnum1, - intEnum2: intEnum2, - intEnum3: intEnum3, - intEnumList: _intEnumList?.build(), - intEnumSet: _intEnumSet?.build(), - intEnumMap: _intEnumMap?.build()); + intEnum1: intEnum1, + intEnum2: intEnum2, + intEnum3: intEnum3, + intEnumList: _intEnumList?.build(), + intEnumSet: _intEnumSet?.build(), + intEnumMap: _intEnumMap?.build(), + ); } catch (_) { late String _$failedField; try { @@ -154,7 +156,10 @@ class XmlIntEnumsInputOutputBuilder _intEnumMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlIntEnumsInputOutput', _$failedField, e.toString()); + r'XmlIntEnumsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart index 2cb8542c7a..4c2a1bf066 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_lists_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -45,32 +45,36 @@ abstract class XmlListsInputOutput timestampList == null ? null : _i3.BuiltList(timestampList), enumList: enumList == null ? null : _i3.BuiltList(enumList), intEnumList: intEnumList == null ? null : _i3.BuiltList(intEnumList), - nestedStringList: nestedStringList == null - ? null - : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), + nestedStringList: + nestedStringList == null + ? null + : _i3.BuiltList(nestedStringList.map((el) => _i3.BuiltList(el))), renamedListMembers: renamedListMembers == null ? null : _i3.BuiltList(renamedListMembers), flattenedList: flattenedList == null ? null : _i3.BuiltList(flattenedList), flattenedList2: flattenedList2 == null ? null : _i3.BuiltList(flattenedList2), - flattenedListWithMemberNamespace: flattenedListWithMemberNamespace == null - ? null - : _i3.BuiltList(flattenedListWithMemberNamespace), - flattenedListWithNamespace: flattenedListWithNamespace == null - ? null - : _i3.BuiltList(flattenedListWithNamespace), + flattenedListWithMemberNamespace: + flattenedListWithMemberNamespace == null + ? null + : _i3.BuiltList(flattenedListWithMemberNamespace), + flattenedListWithNamespace: + flattenedListWithNamespace == null + ? null + : _i3.BuiltList(flattenedListWithNamespace), structureList: structureList == null ? null : _i3.BuiltList(structureList), - flattenedStructureList: flattenedStructureList == null - ? null - : _i3.BuiltList(flattenedStructureList), + flattenedStructureList: + flattenedStructureList == null + ? null + : _i3.BuiltList(flattenedStructureList), ); } - factory XmlListsInputOutput.build( - [void Function(XmlListsInputOutputBuilder) updates]) = - _$XmlListsInputOutput; + factory XmlListsInputOutput.build([ + void Function(XmlListsInputOutputBuilder) updates, + ]) = _$XmlListsInputOutput; const XmlListsInputOutput._(); @@ -78,18 +82,16 @@ abstract class XmlListsInputOutput XmlListsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlListsInputOutput] from a [payload] and [response]. factory XmlListsInputOutput.fromResponse( XmlListsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlListsInputOutputRestXmlSerializer() + XmlListsInputOutputRestXmlSerializer(), ]; _i3.BuiltList? get stringList; @@ -114,86 +116,45 @@ abstract class XmlListsInputOutput @override List get props => [ - stringList, - stringSet, - integerList, - booleanList, - timestampList, - enumList, - intEnumList, - nestedStringList, - renamedListMembers, - flattenedList, - flattenedList2, - flattenedListWithMemberNamespace, - flattenedListWithNamespace, - structureList, - flattenedStructureList, - ]; + stringList, + stringSet, + integerList, + booleanList, + timestampList, + enumList, + intEnumList, + nestedStringList, + renamedListMembers, + flattenedList, + flattenedList2, + flattenedListWithMemberNamespace, + flattenedListWithNamespace, + structureList, + flattenedStructureList, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlListsInputOutput') - ..add( - 'stringList', - stringList, - ) - ..add( - 'stringSet', - stringSet, - ) - ..add( - 'integerList', - integerList, - ) - ..add( - 'booleanList', - booleanList, - ) - ..add( - 'timestampList', - timestampList, - ) - ..add( - 'enumList', - enumList, - ) - ..add( - 'intEnumList', - intEnumList, - ) - ..add( - 'nestedStringList', - nestedStringList, - ) - ..add( - 'renamedListMembers', - renamedListMembers, - ) - ..add( - 'flattenedList', - flattenedList, - ) - ..add( - 'flattenedList2', - flattenedList2, - ) - ..add( - 'flattenedListWithMemberNamespace', - flattenedListWithMemberNamespace, - ) - ..add( - 'flattenedListWithNamespace', - flattenedListWithNamespace, - ) - ..add( - 'structureList', - structureList, - ) - ..add( - 'flattenedStructureList', - flattenedStructureList, - ); + final helper = + newBuiltValueToStringHelper('XmlListsInputOutput') + ..add('stringList', stringList) + ..add('stringSet', stringSet) + ..add('integerList', integerList) + ..add('booleanList', booleanList) + ..add('timestampList', timestampList) + ..add('enumList', enumList) + ..add('intEnumList', intEnumList) + ..add('nestedStringList', nestedStringList) + ..add('renamedListMembers', renamedListMembers) + ..add('flattenedList', flattenedList) + ..add('flattenedList2', flattenedList2) + ..add( + 'flattenedListWithMemberNamespace', + flattenedListWithMemberNamespace, + ) + ..add('flattenedListWithNamespace', flattenedListWithNamespace) + ..add('structureList', structureList) + ..add('flattenedStructureList', flattenedStructureList); return helper.toString(); } } @@ -204,17 +165,14 @@ class XmlListsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlListsInputOutput, - _$XmlListsInputOutput, - ]; + XmlListsInputOutput, + _$XmlListsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlListsInputOutput deserialize( @@ -233,135 +191,153 @@ class XmlListsInputOutputRestXmlSerializer } switch (key) { case 'booleanList': - result.booleanList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], - ), - ) as _i3.BuiltList)); + result.booleanList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(bool), + ]), + ) + as _i3.BuiltList), + ); case 'enumList': - result.enumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], - ), - ) as _i3.BuiltList)); + result.enumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i3.BuiltList), + ); case 'flattenedList': - result.flattenedList.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'customName': - result.flattenedList2.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedList2.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithMemberNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.add((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + result.flattenedListWithNamespace.add( + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String), + ); case 'flattenedStructureList': - result.flattenedStructureList.add((serializers.deserialize( - value, - specifiedType: const FullType(StructureListMember), - ) as StructureListMember)); + result.flattenedStructureList.add( + (serializers.deserialize( + value, + specifiedType: const FullType(StructureListMember), + ) + as StructureListMember), + ); case 'intEnumList': - result.intEnumList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i3.BuiltList)); + result.intEnumList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i3.BuiltList), + ); case 'integerList': - result.integerList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], - ), - ) as _i3.BuiltList)); + result.integerList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), + ) + as _i3.BuiltList), + ); case 'nestedStringList': - result.nestedStringList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i3.BuiltList<_i3.BuiltList>)); + as _i3.BuiltList<_i3.BuiltList>), + ); case 'renamed': result.renamedListMembers.replace( - (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringList': - result.stringList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], - ), - ) as _i3.BuiltList)); + result.stringList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(String), + ]), + ) + as _i3.BuiltList), + ); case 'stringSet': - result.stringSet - .replace((const _i1.XmlBuiltSetSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], - ), - ) as _i3.BuiltSet)); + result.stringSet.replace( + (const _i1.XmlBuiltSetSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltSet, [ + FullType(String), + ]), + ) + as _i3.BuiltSet), + ); case 'myStructureList': result.structureList.replace( - (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i3.BuiltList)); + (const _i1.XmlBuiltListSerializer(memberName: 'item').deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i3.BuiltList), + ); case 'timestampList': - result.timestampList - .replace((const _i1.XmlBuiltListSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], - ), - ) as _i3.BuiltList)); + result.timestampList.replace( + (const _i1.XmlBuiltListSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i3.BuiltList), + ); } } @@ -390,192 +366,177 @@ class XmlListsInputOutputRestXmlSerializer :stringList, :stringSet, :structureList, - :timestampList + :timestampList, ) = object; if (booleanList != null) { result$ ..add(const _i1.XmlElementName('booleanList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - booleanList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(bool)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + booleanList, + specifiedType: const FullType(_i3.BuiltList, [FullType(bool)]), ), - )); + ); } if (enumList != null) { result$ ..add(const _i1.XmlElementName('enumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - enumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(FooEnum)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + enumList, + specifiedType: const FullType(_i3.BuiltList, [FullType(FooEnum)]), ), - )); + ); } if (flattenedList != null) { result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'flattenedList') - .serialize( - serializers, - flattenedList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + const _i1.XmlBuiltListSerializer(memberName: 'flattenedList').serialize( + serializers, + flattenedList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedList2 != null) { result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'customName').serialize( - serializers, - flattenedList2, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + const _i1.XmlBuiltListSerializer(memberName: 'customName').serialize( + serializers, + flattenedList2, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithMemberNamespace != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'flattenedListWithMemberNamespace', - memberNamespace: _i1.XmlNamespace('https://xml-member.example.com'), - ).serialize( - serializers, - flattenedListWithMemberNamespace, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'flattenedListWithMemberNamespace', + memberNamespace: _i1.XmlNamespace('https://xml-member.example.com'), + ).serialize( + serializers, + flattenedListWithMemberNamespace, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedListWithNamespace != null) { - result$.addAll(const _i1.XmlBuiltListSerializer( - memberName: 'flattenedListWithNamespace') - .serialize( - serializers, - flattenedListWithNamespace, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + result$.addAll( + const _i1.XmlBuiltListSerializer( + memberName: 'flattenedListWithNamespace', + ).serialize( + serializers, + flattenedListWithNamespace, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (flattenedStructureList != null) { result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'flattenedStructureList') - .serialize( - serializers, - flattenedStructureList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], + const _i1.XmlBuiltListSerializer( + memberName: 'flattenedStructureList', + ).serialize( + serializers, + flattenedStructureList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } if (intEnumList != null) { result$ ..add(const _i1.XmlElementName('intEnumList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - intEnumList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(IntegerEnum)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + intEnumList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(IntegerEnum), + ]), ), - )); + ); } if (integerList != null) { result$ ..add(const _i1.XmlElementName('integerList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - integerList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(int)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + integerList, + specifiedType: const FullType(_i3.BuiltList, [FullType(int)]), ), - )); + ); } if (nestedStringList != null) { result$ ..add(const _i1.XmlElementName('nestedStringList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - nestedStringList, - specifiedType: const FullType( - _i3.BuiltList, - [ - FullType( - _i3.BuiltList, - [FullType(String)], - ) - ], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + nestedStringList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(_i3.BuiltList, [FullType(String)]), + ]), ), - )); + ); } if (renamedListMembers != null) { result$ ..add(const _i1.XmlElementName('renamed')) - ..add(const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( - serializers, - renamedListMembers, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( + serializers, + renamedListMembers, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (stringList != null) { result$ ..add(const _i1.XmlElementName('stringList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - stringList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(String)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + stringList, + specifiedType: const FullType(_i3.BuiltList, [FullType(String)]), ), - )); + ); } if (stringSet != null) { result$ ..add(const _i1.XmlElementName('stringSet')) - ..add(const _i1.XmlBuiltSetSerializer().serialize( - serializers, - stringSet, - specifiedType: const FullType( - _i3.BuiltSet, - [FullType(String)], + ..add( + const _i1.XmlBuiltSetSerializer().serialize( + serializers, + stringSet, + specifiedType: const FullType(_i3.BuiltSet, [FullType(String)]), ), - )); + ); } if (structureList != null) { result$ ..add(const _i1.XmlElementName('myStructureList')) - ..add(const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( - serializers, - structureList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(StructureListMember)], + ..add( + const _i1.XmlBuiltListSerializer(memberName: 'item').serialize( + serializers, + structureList, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(StructureListMember), + ]), ), - )); + ); } if (timestampList != null) { result$ ..add(const _i1.XmlElementName('timestampList')) - ..add(const _i1.XmlBuiltListSerializer().serialize( - serializers, - timestampList, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DateTime)], + ..add( + const _i1.XmlBuiltListSerializer().serialize( + serializers, + timestampList, + specifiedType: const FullType(_i3.BuiltList, [FullType(DateTime)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart index 284bbbc2b9..85a87223e3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_lists_input_output.g.dart @@ -38,32 +38,32 @@ class _$XmlListsInputOutput extends XmlListsInputOutput { @override final _i3.BuiltList? flattenedStructureList; - factory _$XmlListsInputOutput( - [void Function(XmlListsInputOutputBuilder)? updates]) => - (new XmlListsInputOutputBuilder()..update(updates))._build(); - - _$XmlListsInputOutput._( - {this.stringList, - this.stringSet, - this.integerList, - this.booleanList, - this.timestampList, - this.enumList, - this.intEnumList, - this.nestedStringList, - this.renamedListMembers, - this.flattenedList, - this.flattenedList2, - this.flattenedListWithMemberNamespace, - this.flattenedListWithNamespace, - this.structureList, - this.flattenedStructureList}) - : super._(); + factory _$XmlListsInputOutput([ + void Function(XmlListsInputOutputBuilder)? updates, + ]) => (new XmlListsInputOutputBuilder()..update(updates))._build(); + + _$XmlListsInputOutput._({ + this.stringList, + this.stringSet, + this.integerList, + this.booleanList, + this.timestampList, + this.enumList, + this.intEnumList, + this.nestedStringList, + this.renamedListMembers, + this.flattenedList, + this.flattenedList2, + this.flattenedListWithMemberNamespace, + this.flattenedListWithNamespace, + this.structureList, + this.flattenedStructureList, + }) : super._(); @override XmlListsInputOutput rebuild( - void Function(XmlListsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlListsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlListsInputOutputBuilder toBuilder() => @@ -164,8 +164,8 @@ class XmlListsInputOutputBuilder _i3.ListBuilder<_i3.BuiltList> get nestedStringList => _$this._nestedStringList ??= new _i3.ListBuilder<_i3.BuiltList>(); set nestedStringList( - _i3.ListBuilder<_i3.BuiltList>? nestedStringList) => - _$this._nestedStringList = nestedStringList; + _i3.ListBuilder<_i3.BuiltList>? nestedStringList, + ) => _$this._nestedStringList = nestedStringList; _i3.ListBuilder? _renamedListMembers; _i3.ListBuilder get renamedListMembers => @@ -190,7 +190,8 @@ class XmlListsInputOutputBuilder _$this._flattenedListWithMemberNamespace ??= new _i3.ListBuilder(); set flattenedListWithMemberNamespace( - _i3.ListBuilder? flattenedListWithMemberNamespace) => + _i3.ListBuilder? flattenedListWithMemberNamespace, + ) => _$this._flattenedListWithMemberNamespace = flattenedListWithMemberNamespace; @@ -198,8 +199,8 @@ class XmlListsInputOutputBuilder _i3.ListBuilder get flattenedListWithNamespace => _$this._flattenedListWithNamespace ??= new _i3.ListBuilder(); set flattenedListWithNamespace( - _i3.ListBuilder? flattenedListWithNamespace) => - _$this._flattenedListWithNamespace = flattenedListWithNamespace; + _i3.ListBuilder? flattenedListWithNamespace, + ) => _$this._flattenedListWithNamespace = flattenedListWithNamespace; _i3.ListBuilder? _structureList; _i3.ListBuilder get structureList => @@ -212,8 +213,8 @@ class XmlListsInputOutputBuilder _$this._flattenedStructureList ??= new _i3.ListBuilder(); set flattenedStructureList( - _i3.ListBuilder? flattenedStructureList) => - _$this._flattenedStructureList = flattenedStructureList; + _i3.ListBuilder? flattenedStructureList, + ) => _$this._flattenedStructureList = flattenedStructureList; XmlListsInputOutputBuilder(); @@ -258,24 +259,26 @@ class XmlListsInputOutputBuilder _$XmlListsInputOutput _build() { _$XmlListsInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$XmlListsInputOutput._( - stringList: _stringList?.build(), - stringSet: _stringSet?.build(), - integerList: _integerList?.build(), - booleanList: _booleanList?.build(), - timestampList: _timestampList?.build(), - enumList: _enumList?.build(), - intEnumList: _intEnumList?.build(), - nestedStringList: _nestedStringList?.build(), - renamedListMembers: _renamedListMembers?.build(), - flattenedList: _flattenedList?.build(), - flattenedList2: _flattenedList2?.build(), - flattenedListWithMemberNamespace: - _flattenedListWithMemberNamespace?.build(), - flattenedListWithNamespace: _flattenedListWithNamespace?.build(), - structureList: _structureList?.build(), - flattenedStructureList: _flattenedStructureList?.build()); + stringList: _stringList?.build(), + stringSet: _stringSet?.build(), + integerList: _integerList?.build(), + booleanList: _booleanList?.build(), + timestampList: _timestampList?.build(), + enumList: _enumList?.build(), + intEnumList: _intEnumList?.build(), + nestedStringList: _nestedStringList?.build(), + renamedListMembers: _renamedListMembers?.build(), + flattenedList: _flattenedList?.build(), + flattenedList2: _flattenedList2?.build(), + flattenedListWithMemberNamespace: + _flattenedListWithMemberNamespace?.build(), + flattenedListWithNamespace: _flattenedListWithNamespace?.build(), + structureList: _structureList?.build(), + flattenedStructureList: _flattenedStructureList?.build(), + ); } catch (_) { late String _$failedField; try { @@ -311,7 +314,10 @@ class XmlListsInputOutputBuilder _flattenedStructureList?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlListsInputOutput', _$failedField, e.toString()); + r'XmlListsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart index ccff069004..c8975cb9d3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_maps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,12 +17,13 @@ abstract class XmlMapsInputOutput implements Built { factory XmlMapsInputOutput({Map? myMap}) { return _$XmlMapsInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory XmlMapsInputOutput.build( - [void Function(XmlMapsInputOutputBuilder) updates]) = - _$XmlMapsInputOutput; + factory XmlMapsInputOutput.build([ + void Function(XmlMapsInputOutputBuilder) updates, + ]) = _$XmlMapsInputOutput; const XmlMapsInputOutput._(); @@ -30,18 +31,16 @@ abstract class XmlMapsInputOutput XmlMapsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlMapsInputOutput] from a [payload] and [response]. factory XmlMapsInputOutput.fromResponse( XmlMapsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlMapsInputOutputRestXmlSerializer() + XmlMapsInputOutputRestXmlSerializer(), ]; _i3.BuiltMap? get myMap; @@ -54,10 +53,7 @@ abstract class XmlMapsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsInputOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -67,18 +63,12 @@ class XmlMapsInputOutputRestXmlSerializer const XmlMapsInputOutputRestXmlSerializer() : super('XmlMapsInputOutput'); @override - Iterable get types => const [ - XmlMapsInputOutput, - _$XmlMapsInputOutput, - ]; + Iterable get types => const [XmlMapsInputOutput, _$XmlMapsInputOutput]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsInputOutput deserialize( @@ -97,17 +87,16 @@ class XmlMapsInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i1.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.myMap.replace( + const _i1.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -125,17 +114,16 @@ class XmlMapsInputOutputRestXmlSerializer if (myMap != null) { result$ ..add(const _i1.XmlElementName('myMap')) - ..add(const _i1.XmlBuiltMapSerializer().serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer().serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart index f035192106..970b629dab 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlMapsInputOutput extends XmlMapsInputOutput { @override final _i3.BuiltMap? myMap; - factory _$XmlMapsInputOutput( - [void Function(XmlMapsInputOutputBuilder)? updates]) => - (new XmlMapsInputOutputBuilder()..update(updates))._build(); + factory _$XmlMapsInputOutput([ + void Function(XmlMapsInputOutputBuilder)? updates, + ]) => (new XmlMapsInputOutputBuilder()..update(updates))._build(); _$XmlMapsInputOutput._({this.myMap}) : super._(); @override XmlMapsInputOutput rebuild( - void Function(XmlMapsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlMapsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlMapsInputOutputBuilder toBuilder() => @@ -86,7 +86,10 @@ class XmlMapsInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsInputOutput', _$failedField, e.toString()); + r'XmlMapsInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart index 345ba0b328..e2d7459bcb 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_maps_xml_name_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,12 +20,13 @@ abstract class XmlMapsXmlNameInputOutput Built { factory XmlMapsXmlNameInputOutput({Map? myMap}) { return _$XmlMapsXmlNameInputOutput._( - myMap: myMap == null ? null : _i3.BuiltMap(myMap)); + myMap: myMap == null ? null : _i3.BuiltMap(myMap), + ); } - factory XmlMapsXmlNameInputOutput.build( - [void Function(XmlMapsXmlNameInputOutputBuilder) updates]) = - _$XmlMapsXmlNameInputOutput; + factory XmlMapsXmlNameInputOutput.build([ + void Function(XmlMapsXmlNameInputOutputBuilder) updates, + ]) = _$XmlMapsXmlNameInputOutput; const XmlMapsXmlNameInputOutput._(); @@ -33,18 +34,16 @@ abstract class XmlMapsXmlNameInputOutput XmlMapsXmlNameInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlMapsXmlNameInputOutput] from a [payload] and [response]. factory XmlMapsXmlNameInputOutput.fromResponse( XmlMapsXmlNameInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlMapsXmlNameInputOutputRestXmlSerializer()]; + serializers = [XmlMapsXmlNameInputOutputRestXmlSerializer()]; _i3.BuiltMap? get myMap; @override @@ -56,10 +55,7 @@ abstract class XmlMapsXmlNameInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlMapsXmlNameInputOutput') - ..add( - 'myMap', - myMap, - ); + ..add('myMap', myMap); return helper.toString(); } } @@ -67,21 +63,18 @@ abstract class XmlMapsXmlNameInputOutput class XmlMapsXmlNameInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlMapsXmlNameInputOutputRestXmlSerializer() - : super('XmlMapsXmlNameInputOutput'); + : super('XmlMapsXmlNameInputOutput'); @override Iterable get types => const [ - XmlMapsXmlNameInputOutput, - _$XmlMapsXmlNameInputOutput, - ]; + XmlMapsXmlNameInputOutput, + _$XmlMapsXmlNameInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsXmlNameInputOutput deserialize( @@ -100,20 +93,19 @@ class XmlMapsXmlNameInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace(const _i1.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - ).deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i3.BuiltMap, - [ + result.myMap.replace( + const _i1.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } } @@ -127,26 +119,25 @@ class XmlMapsXmlNameInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlMapsXmlNameInputOutput') + const _i1.XmlElementName('XmlMapsXmlNameInputOutput'), ]; final XmlMapsXmlNameInputOutput(:myMap) = object; if (myMap != null) { result$ ..add(const _i1.XmlElementName('myMap')) - ..add(const _i1.XmlBuiltMapSerializer( - keyName: 'Attribute', - valueName: 'Setting', - ).serialize( - serializers, - myMap, - specifiedType: const FullType( - _i3.BuiltMap, - [ + ..add( + const _i1.XmlBuiltMapSerializer( + keyName: 'Attribute', + valueName: 'Setting', + ).serialize( + serializers, + myMap, + specifiedType: const FullType(_i3.BuiltMap, [ FullType(String), FullType(GreetingStruct), - ], + ]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart index d68b261d01..a8ef98d937 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_maps_xml_name_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlMapsXmlNameInputOutput extends XmlMapsXmlNameInputOutput { @override final _i3.BuiltMap? myMap; - factory _$XmlMapsXmlNameInputOutput( - [void Function(XmlMapsXmlNameInputOutputBuilder)? updates]) => - (new XmlMapsXmlNameInputOutputBuilder()..update(updates))._build(); + factory _$XmlMapsXmlNameInputOutput([ + void Function(XmlMapsXmlNameInputOutputBuilder)? updates, + ]) => (new XmlMapsXmlNameInputOutputBuilder()..update(updates))._build(); _$XmlMapsXmlNameInputOutput._({this.myMap}) : super._(); @override XmlMapsXmlNameInputOutput rebuild( - void Function(XmlMapsXmlNameInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlMapsXmlNameInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlMapsXmlNameInputOutputBuilder toBuilder() => @@ -88,7 +88,10 @@ class XmlMapsXmlNameInputOutputBuilder _myMap?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlMapsXmlNameInputOutput', _$failedField, e.toString()); + r'XmlMapsXmlNameInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart index 16378ae558..113e04a6e9 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_namespace_nested; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,45 +14,34 @@ part 'xml_namespace_nested.g.dart'; abstract class XmlNamespaceNested with _i1.AWSEquatable implements Built { - factory XmlNamespaceNested({ - String? foo, - List? values, - }) { + factory XmlNamespaceNested({String? foo, List? values}) { return _$XmlNamespaceNested._( foo: foo, values: values == null ? null : _i2.BuiltList(values), ); } - factory XmlNamespaceNested.build( - [void Function(XmlNamespaceNestedBuilder) updates]) = - _$XmlNamespaceNested; + factory XmlNamespaceNested.build([ + void Function(XmlNamespaceNestedBuilder) updates, + ]) = _$XmlNamespaceNested; const XmlNamespaceNested._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNamespaceNestedRestXmlSerializer() + XmlNamespaceNestedRestXmlSerializer(), ]; String? get foo; _i2.BuiltList? get values; @override - List get props => [ - foo, - values, - ]; + List get props => [foo, values]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNamespaceNested') - ..add( - 'foo', - foo, - ) - ..add( - 'values', - values, - ); + final helper = + newBuiltValueToStringHelper('XmlNamespaceNested') + ..add('foo', foo) + ..add('values', values); return helper.toString(); } } @@ -62,18 +51,12 @@ class XmlNamespaceNestedRestXmlSerializer const XmlNamespaceNestedRestXmlSerializer() : super('XmlNamespaceNested'); @override - Iterable get types => const [ - XmlNamespaceNested, - _$XmlNamespaceNested, - ]; + Iterable get types => const [XmlNamespaceNested, _$XmlNamespaceNested]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespaceNested deserialize( @@ -92,21 +75,25 @@ class XmlNamespaceNestedRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com')) - .deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], - ), - ) as _i2.BuiltList)); + result.values.replace( + (const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + ).deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltList, [ + FullType(String), + ]), + ) + as _i2.BuiltList), + ); } } @@ -123,39 +110,38 @@ class XmlNamespaceNestedRestXmlSerializer const _i3.XmlElementName( 'XmlNamespaceNested', _i3.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespaceNested(:foo, :values) = object; if (foo != null) { result$ - ..add(const _i3.XmlElementName( - 'foo', - _i3.XmlNamespace( - 'http://baz.com', - 'baz', + ..add( + const _i3.XmlElementName( + 'foo', + _i3.XmlNamespace('http://baz.com', 'baz'), ), - )) - ..add(serializers.serialize( - foo, - specifiedType: const FullType(String), - )); + ) + ..add( + serializers.serialize(foo, specifiedType: const FullType(String)), + ); } if (values != null) { result$ - ..add(const _i3.XmlElementName( - 'values', - _i3.XmlNamespace('http://qux.com'), - )) - ..add(const _i3.XmlBuiltListSerializer( - memberNamespace: _i3.XmlNamespace('http://bux.com')) - .serialize( - serializers, - values, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(String)], + ..add( + const _i3.XmlElementName( + 'values', + _i3.XmlNamespace('http://qux.com'), + ), + ) + ..add( + const _i3.XmlBuiltListSerializer( + memberNamespace: _i3.XmlNamespace('http://bux.com'), + ).serialize( + serializers, + values, + specifiedType: const FullType(_i2.BuiltList, [FullType(String)]), ), - )); + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart index 80b634991e..300ea21e0e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespace_nested.g.dart @@ -12,16 +12,16 @@ class _$XmlNamespaceNested extends XmlNamespaceNested { @override final _i2.BuiltList? values; - factory _$XmlNamespaceNested( - [void Function(XmlNamespaceNestedBuilder)? updates]) => - (new XmlNamespaceNestedBuilder()..update(updates))._build(); + factory _$XmlNamespaceNested([ + void Function(XmlNamespaceNestedBuilder)? updates, + ]) => (new XmlNamespaceNestedBuilder()..update(updates))._build(); _$XmlNamespaceNested._({this.foo, this.values}) : super._(); @override XmlNamespaceNested rebuild( - void Function(XmlNamespaceNestedBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespaceNestedBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespaceNestedBuilder toBuilder() => @@ -96,7 +96,10 @@ class XmlNamespaceNestedBuilder _values?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespaceNested', _$failedField, e.toString()); + r'XmlNamespaceNested', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart index 68f3d55744..7196171bed 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_namespaces_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class XmlNamespacesInputOutput return _$XmlNamespacesInputOutput._(nested: nested); } - factory XmlNamespacesInputOutput.build( - [void Function(XmlNamespacesInputOutputBuilder) updates]) = - _$XmlNamespacesInputOutput; + factory XmlNamespacesInputOutput.build([ + void Function(XmlNamespacesInputOutputBuilder) updates, + ]) = _$XmlNamespacesInputOutput; const XmlNamespacesInputOutput._(); @@ -31,18 +31,16 @@ abstract class XmlNamespacesInputOutput XmlNamespacesInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlNamespacesInputOutput] from a [payload] and [response]. factory XmlNamespacesInputOutput.fromResponse( XmlNamespacesInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlNamespacesInputOutputRestXmlSerializer()]; + serializers = [XmlNamespacesInputOutputRestXmlSerializer()]; XmlNamespaceNested? get nested; @override @@ -54,10 +52,7 @@ abstract class XmlNamespacesInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlNamespacesInputOutput') - ..add( - 'nested', - nested, - ); + ..add('nested', nested); return helper.toString(); } } @@ -65,21 +60,18 @@ abstract class XmlNamespacesInputOutput class XmlNamespacesInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlNamespacesInputOutputRestXmlSerializer() - : super('XmlNamespacesInputOutput'); + : super('XmlNamespacesInputOutput'); @override Iterable get types => const [ - XmlNamespacesInputOutput, - _$XmlNamespacesInputOutput, - ]; + XmlNamespacesInputOutput, + _$XmlNamespacesInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespacesInputOutput deserialize( @@ -98,10 +90,13 @@ class XmlNamespacesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -118,16 +113,18 @@ class XmlNamespacesInputOutputRestXmlSerializer const _i1.XmlElementName( 'XmlNamespacesInputOutput', _i1.XmlNamespace('http://foo.com'), - ) + ), ]; final XmlNamespacesInputOutput(:nested) = object; if (nested != null) { result$ ..add(const _i1.XmlElementName('nested')) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(XmlNamespaceNested), - )); + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(XmlNamespaceNested), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart index ff90027594..771a418a41 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_namespaces_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlNamespacesInputOutput extends XmlNamespacesInputOutput { @override final XmlNamespaceNested? nested; - factory _$XmlNamespacesInputOutput( - [void Function(XmlNamespacesInputOutputBuilder)? updates]) => - (new XmlNamespacesInputOutputBuilder()..update(updates))._build(); + factory _$XmlNamespacesInputOutput([ + void Function(XmlNamespacesInputOutputBuilder)? updates, + ]) => (new XmlNamespacesInputOutputBuilder()..update(updates))._build(); _$XmlNamespacesInputOutput._({this.nested}) : super._(); @override XmlNamespacesInputOutput rebuild( - void Function(XmlNamespacesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNamespacesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNamespacesInputOutputBuilder toBuilder() => @@ -87,7 +87,10 @@ class XmlNamespacesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'XmlNamespacesInputOutput', _$failedField, e.toString()); + r'XmlNamespacesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart index 0394800317..80cb49a91a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_nested_union_struct; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,14 +36,14 @@ abstract class XmlNestedUnionStruct ); } - factory XmlNestedUnionStruct.build( - [void Function(XmlNestedUnionStructBuilder) updates]) = - _$XmlNestedUnionStruct; + factory XmlNestedUnionStruct.build([ + void Function(XmlNestedUnionStructBuilder) updates, + ]) = _$XmlNestedUnionStruct; const XmlNestedUnionStruct._(); static const List<_i3.SmithySerializer> serializers = [ - XmlNestedUnionStructRestXmlSerializer() + XmlNestedUnionStructRestXmlSerializer(), ]; String? get stringValue; @@ -56,51 +56,28 @@ abstract class XmlNestedUnionStruct double? get doubleValue; @override List get props => [ - stringValue, - booleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - doubleValue, - ]; + stringValue, + booleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + doubleValue, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlNestedUnionStruct') - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'booleanValue', - booleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'doubleValue', - doubleValue, - ); + final helper = + newBuiltValueToStringHelper('XmlNestedUnionStruct') + ..add('stringValue', stringValue) + ..add('booleanValue', booleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('doubleValue', doubleValue); return helper.toString(); } } @@ -111,17 +88,14 @@ class XmlNestedUnionStructRestXmlSerializer @override Iterable get types => const [ - XmlNestedUnionStruct, - _$XmlNestedUnionStruct, - ]; + XmlNestedUnionStruct, + _$XmlNestedUnionStruct, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNestedUnionStruct deserialize( @@ -140,45 +114,61 @@ class XmlNestedUnionStructRestXmlSerializer } switch (key) { case 'booleanValue': - result.booleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.booleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -200,71 +190,81 @@ class XmlNestedUnionStructRestXmlSerializer :integerValue, :longValue, :shortValue, - :stringValue + :stringValue, ) = object; if (booleanValue != null) { result$ ..add(const _i3.XmlElementName('booleanValue')) - ..add(serializers.serialize( - booleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + booleanValue, + specifiedType: const FullType(bool), + ), + ); } if (byteValue != null) { result$ ..add(const _i3.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add(const _i3.XmlElementName('doubleValue')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (floatValue != null) { result$ ..add(const _i3.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add(const _i3.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i3.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (shortValue != null) { result$ ..add(const _i3.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add(const _i3.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart index 0f7ae09760..c959cd4a11 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_nested_union_struct.g.dart @@ -24,25 +24,25 @@ class _$XmlNestedUnionStruct extends XmlNestedUnionStruct { @override final double? doubleValue; - factory _$XmlNestedUnionStruct( - [void Function(XmlNestedUnionStructBuilder)? updates]) => - (new XmlNestedUnionStructBuilder()..update(updates))._build(); - - _$XmlNestedUnionStruct._( - {this.stringValue, - this.booleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.doubleValue}) - : super._(); + factory _$XmlNestedUnionStruct([ + void Function(XmlNestedUnionStructBuilder)? updates, + ]) => (new XmlNestedUnionStructBuilder()..update(updates))._build(); + + _$XmlNestedUnionStruct._({ + this.stringValue, + this.booleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.doubleValue, + }) : super._(); @override XmlNestedUnionStruct rebuild( - void Function(XmlNestedUnionStructBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlNestedUnionStructBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlNestedUnionStructBuilder toBuilder() => @@ -147,16 +147,18 @@ class XmlNestedUnionStructBuilder XmlNestedUnionStruct build() => _build(); _$XmlNestedUnionStruct _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlNestedUnionStruct._( - stringValue: stringValue, - booleanValue: booleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue); + stringValue: stringValue, + booleanValue: booleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart index 2f8a7a0e72..f4be6b39c4 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_timestamps_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -36,9 +36,9 @@ abstract class XmlTimestampsInputOutput ); } - factory XmlTimestampsInputOutput.build( - [void Function(XmlTimestampsInputOutputBuilder) updates]) = - _$XmlTimestampsInputOutput; + factory XmlTimestampsInputOutput.build([ + void Function(XmlTimestampsInputOutputBuilder) updates, + ]) = _$XmlTimestampsInputOutput; const XmlTimestampsInputOutput._(); @@ -46,18 +46,16 @@ abstract class XmlTimestampsInputOutput XmlTimestampsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlTimestampsInputOutput] from a [payload] and [response]. factory XmlTimestampsInputOutput.fromResponse( XmlTimestampsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> - serializers = [XmlTimestampsInputOutputRestXmlSerializer()]; + serializers = [XmlTimestampsInputOutputRestXmlSerializer()]; DateTime? get normal; DateTime? get dateTime; @@ -71,46 +69,26 @@ abstract class XmlTimestampsInputOutput @override List get props => [ - normal, - dateTime, - dateTimeOnTarget, - epochSeconds, - epochSecondsOnTarget, - httpDate, - httpDateOnTarget, - ]; + normal, + dateTime, + dateTimeOnTarget, + epochSeconds, + epochSecondsOnTarget, + httpDate, + httpDateOnTarget, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('XmlTimestampsInputOutput') - ..add( - 'normal', - normal, - ) - ..add( - 'dateTime', - dateTime, - ) - ..add( - 'dateTimeOnTarget', - dateTimeOnTarget, - ) - ..add( - 'epochSeconds', - epochSeconds, - ) - ..add( - 'epochSecondsOnTarget', - epochSecondsOnTarget, - ) - ..add( - 'httpDate', - httpDate, - ) - ..add( - 'httpDateOnTarget', - httpDateOnTarget, - ); + final helper = + newBuiltValueToStringHelper('XmlTimestampsInputOutput') + ..add('normal', normal) + ..add('dateTime', dateTime) + ..add('dateTimeOnTarget', dateTimeOnTarget) + ..add('epochSeconds', epochSeconds) + ..add('epochSecondsOnTarget', epochSecondsOnTarget) + ..add('httpDate', httpDate) + ..add('httpDateOnTarget', httpDateOnTarget); return helper.toString(); } } @@ -118,21 +96,18 @@ abstract class XmlTimestampsInputOutput class XmlTimestampsInputOutputRestXmlSerializer extends _i1.StructuredSmithySerializer { const XmlTimestampsInputOutputRestXmlSerializer() - : super('XmlTimestampsInputOutput'); + : super('XmlTimestampsInputOutput'); @override Iterable get types => const [ - XmlTimestampsInputOutput, - _$XmlTimestampsInputOutput, - ]; + XmlTimestampsInputOutput, + _$XmlTimestampsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlTimestampsInputOutput deserialize( @@ -156,39 +131,29 @@ class XmlTimestampsInputOutputRestXmlSerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i1.TimestampSerializer.dateTime.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i1.TimestampSerializer.dateTime + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i1.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i1.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i1.TimestampSerializer.httpDate.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i1.TimestampSerializer.httpDate.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i1.TimestampSerializer.httpDate + .deserialize(serializers, value); case 'normal': - result.normal = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.normal = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -202,7 +167,7 @@ class XmlTimestampsInputOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { final result$ = [ - const _i1.XmlElementName('XmlTimestampsInputOutput') + const _i1.XmlElementName('XmlTimestampsInputOutput'), ]; final XmlTimestampsInputOutput( :dateTime, @@ -211,63 +176,71 @@ class XmlTimestampsInputOutputRestXmlSerializer :epochSecondsOnTarget, :httpDate, :httpDateOnTarget, - :normal + :normal, ) = object; if (dateTime != null) { result$ ..add(const _i1.XmlElementName('dateTime')) - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTime, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize(serializers, dateTime), + ); } if (dateTimeOnTarget != null) { result$ ..add(const _i1.XmlElementName('dateTimeOnTarget')) - ..add(_i1.TimestampSerializer.dateTime.serialize( - serializers, - dateTimeOnTarget, - )); + ..add( + _i1.TimestampSerializer.dateTime.serialize( + serializers, + dateTimeOnTarget, + ), + ); } if (epochSeconds != null) { result$ ..add(const _i1.XmlElementName('epochSeconds')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSeconds, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSeconds, + ), + ); } if (epochSecondsOnTarget != null) { result$ ..add(const _i1.XmlElementName('epochSecondsOnTarget')) - ..add(_i1.TimestampSerializer.epochSeconds.serialize( - serializers, - epochSecondsOnTarget, - )); + ..add( + _i1.TimestampSerializer.epochSeconds.serialize( + serializers, + epochSecondsOnTarget, + ), + ); } if (httpDate != null) { result$ ..add(const _i1.XmlElementName('httpDate')) - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDate, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize(serializers, httpDate), + ); } if (httpDateOnTarget != null) { result$ ..add(const _i1.XmlElementName('httpDateOnTarget')) - ..add(_i1.TimestampSerializer.httpDate.serialize( - serializers, - httpDateOnTarget, - )); + ..add( + _i1.TimestampSerializer.httpDate.serialize( + serializers, + httpDateOnTarget, + ), + ); } if (normal != null) { result$ ..add(const _i1.XmlElementName('normal')) - ..add(serializers.serialize( - normal, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + normal, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart index 23cbf355df..a6133ca3a5 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_timestamps_input_output.g.dart @@ -22,24 +22,24 @@ class _$XmlTimestampsInputOutput extends XmlTimestampsInputOutput { @override final DateTime? httpDateOnTarget; - factory _$XmlTimestampsInputOutput( - [void Function(XmlTimestampsInputOutputBuilder)? updates]) => - (new XmlTimestampsInputOutputBuilder()..update(updates))._build(); - - _$XmlTimestampsInputOutput._( - {this.normal, - this.dateTime, - this.dateTimeOnTarget, - this.epochSeconds, - this.epochSecondsOnTarget, - this.httpDate, - this.httpDateOnTarget}) - : super._(); + factory _$XmlTimestampsInputOutput([ + void Function(XmlTimestampsInputOutputBuilder)? updates, + ]) => (new XmlTimestampsInputOutputBuilder()..update(updates))._build(); + + _$XmlTimestampsInputOutput._({ + this.normal, + this.dateTime, + this.dateTimeOnTarget, + this.epochSeconds, + this.epochSecondsOnTarget, + this.httpDate, + this.httpDateOnTarget, + }) : super._(); @override XmlTimestampsInputOutput rebuild( - void Function(XmlTimestampsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlTimestampsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlTimestampsInputOutputBuilder toBuilder() => @@ -142,15 +142,17 @@ class XmlTimestampsInputOutputBuilder XmlTimestampsInputOutput build() => _build(); _$XmlTimestampsInputOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$XmlTimestampsInputOutput._( - normal: normal, - dateTime: dateTime, - dateTimeOnTarget: dateTimeOnTarget, - epochSeconds: epochSeconds, - epochSecondsOnTarget: epochSecondsOnTarget, - httpDate: httpDate, - httpDateOnTarget: httpDateOnTarget); + normal: normal, + dateTime: dateTime, + dateTimeOnTarget: dateTimeOnTarget, + epochSeconds: epochSeconds, + epochSecondsOnTarget: epochSecondsOnTarget, + httpDate: httpDate, + httpDateOnTarget: httpDateOnTarget, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart index 348e9f6542..1b32f684de 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_union_shape.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_union_shape; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,25 +48,24 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { _i2.Int64? longValue, double? floatValue, double? doubleValue, - }) => - XmlUnionShapeStructValue$(XmlNestedUnionStruct( - stringValue: stringValue, - booleanValue: booleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - doubleValue: doubleValue, - )); - - const factory XmlUnionShape.sdkUnknown( - String name, - Object value, - ) = XmlUnionShapeSdkUnknown$; + }) => XmlUnionShapeStructValue$( + XmlNestedUnionStruct( + stringValue: stringValue, + booleanValue: booleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + doubleValue: doubleValue, + ), + ); + + const factory XmlUnionShape.sdkUnknown(String name, Object value) = + XmlUnionShapeSdkUnknown$; static const List<_i1.SmithySerializer> serializers = [ - XmlUnionShapeRestXmlSerializer() + XmlUnionShapeRestXmlSerializer(), ]; String? get stringValue => null; @@ -90,79 +89,50 @@ sealed class XmlUnionShape extends _i1.SmithyUnion { XmlNestedUnionStruct? get structValue => null; @override - Object get value => (stringValue ?? - booleanValue ?? - byteValue ?? - shortValue ?? - integerValue ?? - longValue ?? - floatValue ?? - doubleValue ?? - unionValue ?? - structValue)!; + Object get value => + (stringValue ?? + booleanValue ?? + byteValue ?? + shortValue ?? + integerValue ?? + longValue ?? + floatValue ?? + doubleValue ?? + unionValue ?? + structValue)!; @override String toString() { final helper = newBuiltValueToStringHelper(r'XmlUnionShape'); if (stringValue != null) { - helper.add( - r'stringValue', - stringValue, - ); + helper.add(r'stringValue', stringValue); } if (booleanValue != null) { - helper.add( - r'booleanValue', - booleanValue, - ); + helper.add(r'booleanValue', booleanValue); } if (byteValue != null) { - helper.add( - r'byteValue', - byteValue, - ); + helper.add(r'byteValue', byteValue); } if (shortValue != null) { - helper.add( - r'shortValue', - shortValue, - ); + helper.add(r'shortValue', shortValue); } if (integerValue != null) { - helper.add( - r'integerValue', - integerValue, - ); + helper.add(r'integerValue', integerValue); } if (longValue != null) { - helper.add( - r'longValue', - longValue, - ); + helper.add(r'longValue', longValue); } if (floatValue != null) { - helper.add( - r'floatValue', - floatValue, - ); + helper.add(r'floatValue', floatValue); } if (doubleValue != null) { - helper.add( - r'doubleValue', - doubleValue, - ); + helper.add(r'doubleValue', doubleValue); } if (unionValue != null) { - helper.add( - r'unionValue', - unionValue, - ); + helper.add(r'unionValue', unionValue); } if (structValue != null) { - helper.add( - r'structValue', - structValue, - ); + helper.add(r'structValue', structValue); } return helper.toString(); } @@ -269,10 +239,7 @@ final class XmlUnionShapeStructValue$ extends XmlUnionShape { } final class XmlUnionShapeSdkUnknown$ extends XmlUnionShape { - const XmlUnionShapeSdkUnknown$( - this.name, - this.value, - ) : super._(); + const XmlUnionShapeSdkUnknown$(this.name, this.value) : super._(); @override final String name; @@ -287,26 +254,23 @@ class XmlUnionShapeRestXmlSerializer @override Iterable get types => const [ - XmlUnionShape, - XmlUnionShapeStringValue$, - XmlUnionShapeBooleanValue$, - XmlUnionShapeByteValue$, - XmlUnionShapeShortValue$, - XmlUnionShapeIntegerValue$, - XmlUnionShapeLongValue$, - XmlUnionShapeFloatValue$, - XmlUnionShapeDoubleValue$, - XmlUnionShapeUnionValue$, - XmlUnionShapeStructValue$, - ]; + XmlUnionShape, + XmlUnionShapeStringValue$, + XmlUnionShapeBooleanValue$, + XmlUnionShapeByteValue$, + XmlUnionShapeShortValue$, + XmlUnionShapeIntegerValue$, + XmlUnionShapeLongValue$, + XmlUnionShapeFloatValue$, + XmlUnionShapeDoubleValue$, + XmlUnionShapeUnionValue$, + XmlUnionShapeStructValue$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlUnionShape deserialize( @@ -317,60 +281,66 @@ class XmlUnionShapeRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'stringValue': - return XmlUnionShapeStringValue$((serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String)); + return XmlUnionShapeStringValue$( + (serializers.deserialize(value, specifiedType: const FullType(String)) + as String), + ); case 'booleanValue': - return XmlUnionShapeBooleanValue$((serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool)); + return XmlUnionShapeBooleanValue$( + (serializers.deserialize(value, specifiedType: const FullType(bool)) + as bool), + ); case 'byteValue': - return XmlUnionShapeByteValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return XmlUnionShapeByteValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'shortValue': - return XmlUnionShapeShortValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return XmlUnionShapeShortValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'integerValue': - return XmlUnionShapeIntegerValue$((serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int)); + return XmlUnionShapeIntegerValue$( + (serializers.deserialize(value, specifiedType: const FullType(int)) + as int), + ); case 'longValue': - return XmlUnionShapeLongValue$((serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64)); + return XmlUnionShapeLongValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64), + ); case 'floatValue': - return XmlUnionShapeFloatValue$((serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double)); + return XmlUnionShapeFloatValue$( + (serializers.deserialize(value, specifiedType: const FullType(double)) + as double), + ); case 'doubleValue': - return XmlUnionShapeDoubleValue$((serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double)); + return XmlUnionShapeDoubleValue$( + (serializers.deserialize(value, specifiedType: const FullType(double)) + as double), + ); case 'unionValue': - return XmlUnionShapeUnionValue$((serializers.deserialize( - value, - specifiedType: const FullType(XmlUnionShape), - ) as XmlUnionShape)); + return XmlUnionShapeUnionValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlUnionShape), + ) + as XmlUnionShape), + ); case 'structValue': - return XmlUnionShapeStructValue$((serializers.deserialize( - value, - specifiedType: const FullType(XmlNestedUnionStruct), - ) as XmlNestedUnionStruct)); + return XmlUnionShapeStructValue$( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNestedUnionStruct), + ) + as XmlNestedUnionStruct), + ); } - return XmlUnionShape.sdkUnknown( - key, - value, - ); + return XmlUnionShape.sdkUnknown(key, value); } @override @@ -383,45 +353,45 @@ class XmlUnionShapeRestXmlSerializer object.name, switch (object) { XmlUnionShapeStringValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(String), - ), + value, + specifiedType: const FullType(String), + ), XmlUnionShapeBooleanValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(bool), - ), + value, + specifiedType: const FullType(bool), + ), XmlUnionShapeByteValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), XmlUnionShapeShortValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), XmlUnionShapeIntegerValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(int), - ), + value, + specifiedType: const FullType(int), + ), XmlUnionShapeLongValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(_i2.Int64), - ), + value, + specifiedType: const FullType(_i2.Int64), + ), XmlUnionShapeFloatValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(double), - ), + value, + specifiedType: const FullType(double), + ), XmlUnionShapeDoubleValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(double), - ), + value, + specifiedType: const FullType(double), + ), XmlUnionShapeUnionValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(XmlUnionShape), - ), + value, + specifiedType: const FullType(XmlUnionShape), + ), XmlUnionShapeStructValue$(:final value) => serializers.serialize( - value, - specifiedType: const FullType(XmlNestedUnionStruct), - ), + value, + specifiedType: const FullType(XmlNestedUnionStruct), + ), XmlUnionShapeSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart index 7e9a639b9a..ba58d4fe96 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.model.xml_unions_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,9 +20,9 @@ abstract class XmlUnionsInputOutput return _$XmlUnionsInputOutput._(unionValue: unionValue); } - factory XmlUnionsInputOutput.build( - [void Function(XmlUnionsInputOutputBuilder) updates]) = - _$XmlUnionsInputOutput; + factory XmlUnionsInputOutput.build([ + void Function(XmlUnionsInputOutputBuilder) updates, + ]) = _$XmlUnionsInputOutput; const XmlUnionsInputOutput._(); @@ -30,18 +30,16 @@ abstract class XmlUnionsInputOutput XmlUnionsInputOutput payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; /// Constructs a [XmlUnionsInputOutput] from a [payload] and [response]. factory XmlUnionsInputOutput.fromResponse( XmlUnionsInputOutput payload, _i2.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i1.SmithySerializer> serializers = [ - XmlUnionsInputOutputRestXmlSerializer() + XmlUnionsInputOutputRestXmlSerializer(), ]; XmlUnionShape? get unionValue; @@ -54,10 +52,7 @@ abstract class XmlUnionsInputOutput @override String toString() { final helper = newBuiltValueToStringHelper('XmlUnionsInputOutput') - ..add( - 'unionValue', - unionValue, - ); + ..add('unionValue', unionValue); return helper.toString(); } } @@ -68,17 +63,14 @@ class XmlUnionsInputOutputRestXmlSerializer @override Iterable get types => const [ - XmlUnionsInputOutput, - _$XmlUnionsInputOutput, - ]; + XmlUnionsInputOutput, + _$XmlUnionsInputOutput, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlUnionsInputOutput deserialize( @@ -97,10 +89,12 @@ class XmlUnionsInputOutputRestXmlSerializer } switch (key) { case 'unionValue': - result.unionValue = (serializers.deserialize( - value, - specifiedType: const FullType(XmlUnionShape), - ) as XmlUnionShape); + result.unionValue = + (serializers.deserialize( + value, + specifiedType: const FullType(XmlUnionShape), + ) + as XmlUnionShape); } } @@ -118,10 +112,12 @@ class XmlUnionsInputOutputRestXmlSerializer if (unionValue != null) { result$ ..add(const _i1.XmlElementName('unionValue')) - ..add(serializers.serialize( - unionValue, - specifiedType: const FullType(XmlUnionShape), - )); + ..add( + serializers.serialize( + unionValue, + specifiedType: const FullType(XmlUnionShape), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart index 388e50c2be..ebefb73702 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/model/xml_unions_input_output.g.dart @@ -10,16 +10,16 @@ class _$XmlUnionsInputOutput extends XmlUnionsInputOutput { @override final XmlUnionShape? unionValue; - factory _$XmlUnionsInputOutput( - [void Function(XmlUnionsInputOutputBuilder)? updates]) => - (new XmlUnionsInputOutputBuilder()..update(updates))._build(); + factory _$XmlUnionsInputOutput([ + void Function(XmlUnionsInputOutputBuilder)? updates, + ]) => (new XmlUnionsInputOutputBuilder()..update(updates))._build(); _$XmlUnionsInputOutput._({this.unionValue}) : super._(); @override XmlUnionsInputOutput rebuild( - void Function(XmlUnionsInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(XmlUnionsInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override XmlUnionsInputOutputBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart index 574a136336..ebf85f8ff1 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/all_query_string_types_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.all_query_string_types_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses all query string types. -class AllQueryStringTypesOperation extends _i1.HttpOperation< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> { +class AllQueryStringTypesOperation + extends + _i1.HttpOperation< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > { /// This example uses all query string types. AllQueryStringTypesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,131 +78,83 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/AllQueryStringTypesInput'; if (input.queryString != null) { - b.queryParameters.add( - 'String', - input.queryString!, - ); + b.queryParameters.add('String', input.queryString!); } if (input.queryStringList != null) { for (var value in input.queryStringList!) { - b.queryParameters.add( - 'StringList', - value, - ); + b.queryParameters.add('StringList', value); } } if (input.queryStringSet != null) { for (var value in input.queryStringSet!) { - b.queryParameters.add( - 'StringSet', - value, - ); + b.queryParameters.add('StringSet', value); } } if (input.queryByte != null) { - b.queryParameters.add( - 'Byte', - input.queryByte!.toString(), - ); + b.queryParameters.add('Byte', input.queryByte!.toString()); } if (input.queryShort != null) { - b.queryParameters.add( - 'Short', - input.queryShort!.toString(), - ); + b.queryParameters.add('Short', input.queryShort!.toString()); } if (input.queryInteger != null) { - b.queryParameters.add( - 'Integer', - input.queryInteger!.toString(), - ); + b.queryParameters.add('Integer', input.queryInteger!.toString()); } if (input.queryIntegerList != null) { for (var value in input.queryIntegerList!) { - b.queryParameters.add( - 'IntegerList', - value.toString(), - ); + b.queryParameters.add('IntegerList', value.toString()); } } if (input.queryIntegerSet != null) { for (var value in input.queryIntegerSet!) { - b.queryParameters.add( - 'IntegerSet', - value.toString(), - ); + b.queryParameters.add('IntegerSet', value.toString()); } } if (input.queryLong != null) { - b.queryParameters.add( - 'Long', - input.queryLong!.toString(), - ); + b.queryParameters.add('Long', input.queryLong!.toString()); } if (input.queryFloat != null) { - b.queryParameters.add( - 'Float', - input.queryFloat!.toString(), - ); + b.queryParameters.add('Float', input.queryFloat!.toString()); } if (input.queryDouble != null) { - b.queryParameters.add( - 'Double', - input.queryDouble!.toString(), - ); + b.queryParameters.add('Double', input.queryDouble!.toString()); } if (input.queryDoubleList != null) { for (var value in input.queryDoubleList!) { - b.queryParameters.add( - 'DoubleList', - value.toString(), - ); + b.queryParameters.add('DoubleList', value.toString()); } } if (input.queryBoolean != null) { - b.queryParameters.add( - 'Boolean', - input.queryBoolean!.toString(), - ); + b.queryParameters.add('Boolean', input.queryBoolean!.toString()); } if (input.queryBooleanList != null) { for (var value in input.queryBooleanList!) { - b.queryParameters.add( - 'BooleanList', - value.toString(), - ); + b.queryParameters.add('BooleanList', value.toString()); } } if (input.queryTimestamp != null) { b.queryParameters.add( 'Timestamp', - _i1.Timestamp(input.queryTimestamp!) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + input.queryTimestamp!, + ).format(_i1.TimestampFormat.dateTime).toString(), ); } if (input.queryTimestampList != null) { for (var value in input.queryTimestampList!) { b.queryParameters.add( 'TimestampList', - _i1.Timestamp(value) - .format(_i1.TimestampFormat.dateTime) - .toString(), + _i1.Timestamp( + value, + ).format(_i1.TimestampFormat.dateTime).toString(), ); } } if (input.queryEnum != null) { - b.queryParameters.add( - 'Enum', - input.queryEnum!.value, - ); + b.queryParameters.add('Enum', input.queryEnum!.value); } if (input.queryEnumList != null) { for (var value in input.queryEnumList!) { - b.queryParameters.add( - 'EnumList', - value.value, - ); + b.queryParameters.add('EnumList', value.value); } } if (input.queryIntegerEnum != null) { @@ -203,18 +165,12 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< } if (input.queryIntegerEnumList != null) { for (var value in input.queryIntegerEnumList!) { - b.queryParameters.add( - 'IntegerEnumList', - value.value.toString(), - ); + b.queryParameters.add('IntegerEnumList', value.value.toString()); } } if (input.queryParamsMapOfStrings != null) { for (var entry in input.queryParamsMapOfStrings!.toMap().entries) { - b.queryParameters.add( - entry.key, - entry.value, - ); + b.queryParameters.add(entry.key, entry.value); } } }); @@ -223,10 +179,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -251,11 +204,7 @@ class AllQueryStringTypesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart index c3a1f3dec3..891fca7229 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/body_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.body_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a body that uses an XML name, changing the wrapper name. -class BodyWithXmlNameOperation extends _i1.HttpOperation< - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput> { +class BodyWithXmlNameOperation + extends + _i1.HttpOperation< + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput + > { /// The following example serializes a body that uses an XML name, changing the wrapper name. BodyWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class BodyWithXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class BodyWithXmlNameOperation extends _i1.HttpOperation< BodyWithXmlNameInputOutput buildOutput( BodyWithXmlNameInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - BodyWithXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => BodyWithXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class BodyWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart index 2cfeb81559..0ecee97b14 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_and_variable_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.constant_and_variable_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). -class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantAndVariableQueryStringOperation + extends + _i1.HttpOperation< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). ConstantAndVariableQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,16 +78,10 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/ConstantAndVariableQueryString?foo=bar'; if (input.baz != null) { - b.queryParameters.add( - 'baz', - input.baz!, - ); + b.queryParameters.add('baz', input.baz!); } if (input.maybeSet != null) { - b.queryParameters.add( - 'maybeSet', - input.maybeSet!, - ); + b.queryParameters.add('maybeSet', input.maybeSet!); } }); @@ -88,10 +89,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -116,11 +114,7 @@ class ConstantAndVariableQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart index 8e531cb574..34b1bd7a15 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/constant_query_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.constant_query_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. -class ConstantQueryStringOperation extends _i1.HttpOperation< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> { +class ConstantQueryStringOperation + extends + _i1.HttpOperation< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > { /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. ConstantQueryStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -73,10 +83,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -101,11 +108,7 @@ class ConstantQueryStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart index a41b2c04a1..2c24fd75b0 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/datetime_offsets_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.datetime_offsets_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/datetime_offsets_output. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - DatetimeOffsetsOutput, DatetimeOffsetsOutput> { +class DatetimeOffsetsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > { DatetimeOffsetsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,9 +72,9 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/DatetimeOffsets'; - }); + b.method = 'POST'; + b.path = r'/DatetimeOffsets'; + }); @override int successCode([DatetimeOffsetsOutput? output]) => 200; @@ -70,11 +83,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput buildOutput( DatetimeOffsetsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - DatetimeOffsetsOutput.fromResponse( - payload, - response, - ); + ) => DatetimeOffsetsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -98,11 +107,7 @@ class DatetimeOffsetsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart index 5f22bd748c..b85a1d1bfa 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/empty_input_and_empty_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.empty_input_and_empty_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. -class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> { +class EmptyInputAndEmptyOutputOperation + extends + _i1.HttpOperation< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. EmptyInputAndEmptyOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput>> protocols = [ + _i1.HttpProtocol< + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +57,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +87,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< EmptyInputAndEmptyOutputOutput buildOutput( EmptyInputAndEmptyOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - EmptyInputAndEmptyOutputOutput.fromResponse( - payload, - response, - ); + ) => EmptyInputAndEmptyOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +111,7 @@ class EmptyInputAndEmptyOutputOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart index 2cc007f184..27f2bbc8de 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.endpoint_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,20 +18,21 @@ class EndpointOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -39,7 +40,7 @@ class EndpointOperation responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -57,19 +58,16 @@ class EndpointOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointOperation'; - b.hostPrefix = 'foo.'; - }); + b.method = 'POST'; + b.path = r'/EndpointOperation'; + b.hostPrefix = 'foo.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -94,11 +92,7 @@ class EndpointOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart index dcc20bc0bb..9859001ae9 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_header_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.endpoint_with_host_label_header_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/host_label_header_input. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< - HostLabelHeaderInputPayload, HostLabelHeaderInput, _i1.Unit, _i1.Unit> { +class EndpointWithHostLabelHeaderOperation + extends + _i1.HttpOperation< + HostLabelHeaderInputPayload, + HostLabelHeaderInput, + _i1.Unit, + _i1.Unit + > { EndpointWithHostLabelHeaderOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HostLabelHeaderInputPayload, + HostLabelHeaderInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,10 +85,7 @@ class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -100,11 +110,7 @@ class EndpointWithHostLabelHeaderOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart index 18d606939f..0a3970c216 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/endpoint_with_host_label_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.endpoint_with_host_label_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,32 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/host_label_input.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class EndpointWithHostLabelOperation extends _i1 - .HttpOperation { +class EndpointWithHostLabelOperation + extends + _i1.HttpOperation { EndpointWithHostLabelOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> - protocols = [ + _i1.HttpProtocol + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +45,7 @@ class EndpointWithHostLabelOperation extends _i1 responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -60,19 +63,16 @@ class EndpointWithHostLabelOperation extends _i1 @override _i1.HttpRequest buildRequest(HostLabelInput input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/EndpointWithHostLabelOperation'; - b.hostPrefix = 'foo.{label}.'; - }); + b.method = 'POST'; + b.path = r'/EndpointWithHostLabelOperation'; + b.hostPrefix = 'foo.{label}.'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -97,11 +97,7 @@ class EndpointWithHostLabelOperation extends _i1 _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart index d69fdc37de..e19269a61a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.flattened_xml_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps -class FlattenedXmlMapOperation extends _i1.HttpOperation< - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput> { +class FlattenedXmlMapOperation + extends + _i1.HttpOperation< + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput + > { /// Flattened maps FlattenedXmlMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation< FlattenedXmlMapInputOutput buildOutput( FlattenedXmlMapInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapInputOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class FlattenedXmlMapOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart index be6b3be04e..9730da5a40 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.flattened_xml_map_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,36 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlName -class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput> { +class FlattenedXmlMapWithXmlNameOperation + extends + _i1.HttpOperation< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput + > { /// Flattened maps with @xmlName FlattenedXmlMapWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput>> protocols = [ + _i1.HttpProtocol< + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +57,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +87,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNameInputOutput buildOutput( FlattenedXmlMapWithXmlNameInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +111,7 @@ class FlattenedXmlMapWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart index 584bc8cb4b..6afafc17fe 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/flattened_xml_map_with_xml_namespace_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.flattened_xml_map_with_xml_namespace_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Flattened maps with @xmlNamespace and @xmlName -class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput> { +class FlattenedXmlMapWithXmlNamespaceOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > { /// Flattened maps with @xmlNamespace and @xmlName FlattenedXmlMapWithXmlNamespaceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -67,9 +74,9 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/FlattenedXmlMapWithXmlNamespace'; - }); + b.method = 'POST'; + b.path = r'/FlattenedXmlMapWithXmlNamespace'; + }); @override int successCode([FlattenedXmlMapWithXmlNamespaceOutput? output]) => 200; @@ -78,11 +85,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< FlattenedXmlMapWithXmlNamespaceOutput buildOutput( FlattenedXmlMapWithXmlNamespaceOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FlattenedXmlMapWithXmlNamespaceOutput.fromResponse( - payload, - response, - ); + ) => FlattenedXmlMapWithXmlNamespaceOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +109,7 @@ class FlattenedXmlMapWithXmlNamespaceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart index 105f4aadca..7bd7a38a7f 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/fractional_seconds_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.fractional_seconds_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/fractional_seconds_outpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - FractionalSecondsOutput, FractionalSecondsOutput> { +class FractionalSecondsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > { FractionalSecondsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,9 +72,9 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/FractionalSeconds'; - }); + b.method = 'POST'; + b.path = r'/FractionalSeconds'; + }); @override int successCode([FractionalSecondsOutput? output]) => 200; @@ -70,11 +83,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, FractionalSecondsOutput buildOutput( FractionalSecondsOutput payload, _i3.AWSBaseHttpResponse response, - ) => - FractionalSecondsOutput.fromResponse( - payload, - response, - ); + ) => FractionalSecondsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -98,11 +107,7 @@ class FractionalSecondsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart index 2367109bae..b075595fae 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/greeting_with_errors_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.greeting_with_errors_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,29 +15,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the -class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> { +class GreetingWithErrorsOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > { /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the GreetingWithErrorsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,9 +76,9 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/GreetingWithErrors'; - }); + b.method = 'PUT'; + b.path = r'/GreetingWithErrors'; + }); @override int successCode([GreetingWithErrorsOutput? output]) => 200; @@ -74,35 +87,31 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, GreetingWithErrorsOutput buildOutput( GreetingWithErrorsOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - GreetingWithErrorsOutput.fromResponse( - payload, - response, - ); + ) => GreetingWithErrorsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'ComplexError', - ), - _i1.ErrorKind.client, - ComplexError, - statusCode: 403, - builder: ComplexError.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'aws.protocoltests.restxml', - shape: 'InvalidGreeting', - ), - _i1.ErrorKind.client, - InvalidGreeting, - statusCode: 400, - builder: InvalidGreeting.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restxml', + shape: 'ComplexError', + ), + _i1.ErrorKind.client, + ComplexError, + statusCode: 403, + builder: ComplexError.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'aws.protocoltests.restxml', + shape: 'InvalidGreeting', + ), + _i1.ErrorKind.client, + InvalidGreeting, + statusCode: 400, + builder: InvalidGreeting.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GreetingWithErrors'; @@ -123,11 +132,7 @@ class GreetingWithErrorsOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart index 2f0a4528f9..9d68640913 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_payload_traits_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,30 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples serializes a blob shape in the payload. In this example, no XML document is synthesized because the payload is not a structure or a union type. -class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, - HttpPayloadTraitsInputOutput, _i2.Uint8List, HttpPayloadTraitsInputOutput> { +class HttpPayloadTraitsOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > { /// This examples serializes a blob shape in the payload. In this example, no XML document is synthesized because the payload is not a structure or a union type. HttpPayloadTraitsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Uint8List, HttpPayloadTraitsInputOutput, - _i2.Uint8List, HttpPayloadTraitsInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsInputOutput, + _i2.Uint8List, + HttpPayloadTraitsInputOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -45,7 +58,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -80,11 +93,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, HttpPayloadTraitsInputOutput buildOutput( _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, - ) => - HttpPayloadTraitsInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadTraitsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -108,11 +117,7 @@ class HttpPayloadTraitsOperation extends _i1.HttpOperation<_i2.Uint8List, _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart index 970956397d..66617e78f7 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_traits_with_media_type_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_payload_traits_with_media_type_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i3; /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. -class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> { +class HttpPayloadTraitsWithMediaTypeOperation + extends + _i1.HttpOperation< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > { /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. HttpPayloadTraitsWithMediaTypeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i2.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i2.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i3.WithSdkInvocationId(), const _i3.WithSdkRequest(), ] + @@ -52,7 +59,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< <_i1.HttpResponseInterceptor>[] + _responseInterceptors, mediaType: 'text/plain', noErrorWrapping: false, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -70,16 +77,16 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - HttpPayloadTraitsWithMediaTypeInputOutput input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/HttpPayloadTraitsWithMediaType'; - if (input.foo != null) { - if (input.foo!.isNotEmpty) { - b.headers['X-Foo'] = input.foo!; - } - } - }); + HttpPayloadTraitsWithMediaTypeInputOutput input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = r'/HttpPayloadTraitsWithMediaType'; + if (input.foo != null) { + if (input.foo!.isNotEmpty) { + b.headers['X-Foo'] = input.foo!; + } + } + }); @override int successCode([HttpPayloadTraitsWithMediaTypeInputOutput? output]) => 200; @@ -89,10 +96,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i2.Uint8List? payload, _i4.AWSBaseHttpResponse response, ) => - HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse( - payload, - response, - ); + HttpPayloadTraitsWithMediaTypeInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -116,11 +120,7 @@ class HttpPayloadTraitsWithMediaTypeOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart index 39b9dc7fd3..2e634b8d52 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_member_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_payload_with_member_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML name on the member, changing the wrapper name. -class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput> { +class HttpPayloadWithMemberXmlNameOperation + extends + _i1.HttpOperation< + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput + > { /// The following example serializes a payload that uses an XML name on the member, changing the wrapper name. HttpPayloadWithMemberXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput>> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< HttpPayloadWithMemberXmlNameInputOutput buildOutput( PayloadWithXmlName? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithMemberXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithMemberXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class HttpPayloadWithMemberXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart index f6539245fc..c54c305e1a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_structure_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_payload_with_structure_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,33 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. -class HttpPayloadWithStructureOperation extends _i1.HttpOperation< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> { +class HttpPayloadWithStructureOperation + extends + _i1.HttpOperation< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > { /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. HttpPayloadWithStructureOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,11 +88,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< HttpPayloadWithStructureInputOutput buildOutput( NestedPayload? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithStructureInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithStructureInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +112,7 @@ class HttpPayloadWithStructureOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart index 6ded3febce..3e97beefee 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_payload_with_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,33 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML name, changing the wrapper name. -class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput> { +class HttpPayloadWithXmlNameOperation + extends + _i1.HttpOperation< + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput + > { /// The following example serializes a payload that uses an XML name, changing the wrapper name. HttpPayloadWithXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +58,7 @@ class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -78,11 +88,7 @@ class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< HttpPayloadWithXmlNameInputOutput buildOutput( PayloadWithXmlName? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -106,11 +112,7 @@ class HttpPayloadWithXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart index c3608ee565..5d767736de 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_and_prefix_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_payload_with_xml_namespace_and_prefix_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML namespace. -class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput> { +class HttpPayloadWithXmlNamespaceAndPrefixOperation + extends + _i1.HttpOperation< + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > { /// The following example serializes a payload that uses an XML namespace. HttpPayloadWithXmlNamespaceAndPrefixOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput>> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -69,11 +76,11 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest( - HttpPayloadWithXmlNamespaceAndPrefixInputOutput input) => - _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/HttpPayloadWithXmlNamespaceAndPrefix'; - }); + HttpPayloadWithXmlNamespaceAndPrefixInputOutput input, + ) => _i1.HttpRequest((b) { + b.method = 'PUT'; + b.path = r'/HttpPayloadWithXmlNamespaceAndPrefix'; + }); @override int successCode([HttpPayloadWithXmlNamespaceAndPrefixInputOutput? output]) => @@ -83,11 +90,10 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< HttpPayloadWithXmlNamespaceAndPrefixInputOutput buildOutput( PayloadWithXmlNamespaceAndPrefix? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromResponse( + payload, + response, + ); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +117,7 @@ class HttpPayloadWithXmlNamespaceAndPrefixOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart index 824b7252d8..2fe3bd2f69 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_payload_with_xml_namespace_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_payload_with_xml_namespace_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following example serializes a payload that uses an XML namespace. -class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput, - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput> { +class HttpPayloadWithXmlNamespaceOperation + extends + _i1.HttpOperation< + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput, + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput + > { /// The following example serializes a payload that uses an XML namespace. HttpPayloadWithXmlNamespaceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput, - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput>> protocols = [ + _i1.HttpProtocol< + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput, + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< HttpPayloadWithXmlNamespaceInputOutput buildOutput( PayloadWithXmlNamespace? payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPayloadWithXmlNamespaceInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPayloadWithXmlNamespaceInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class HttpPayloadWithXmlNamespaceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart index 1e3a0a1452..0f1594febf 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_prefix_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_prefix_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,11 +16,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) -class HttpPrefixHeadersOperation extends _i1.HttpOperation< - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput> { +class HttpPrefixHeadersOperation + extends + _i1.HttpOperation< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput + > { /// This examples adds headers to the input of a request and response by prefix./// /// See also: /// - [httpPrefixHeaders Trait](https://smithy.io/2.0/spec/http-bindings.html#httpprefixheaders-trait) @@ -30,24 +33,28 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput>> protocols = [ + _i1.HttpProtocol< + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -55,7 +62,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -97,11 +104,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< HttpPrefixHeadersInputOutput buildOutput( HttpPrefixHeadersInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpPrefixHeadersInputOutput.fromResponse( - payload, - response, - ); + ) => HttpPrefixHeadersInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -125,11 +128,7 @@ class HttpPrefixHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart index 202d33c54f..752fdfc0bf 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_float_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_request_with_float_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/http_request_with_float_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithFloatLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithFloatLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +54,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,10 +81,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -99,11 +106,7 @@ class HttpRequestWithFloatLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart index 1d0e96ab59..7b2c94b0a0 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_greedy_label_in_path_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_request_with_greedy_label_in_path_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,34 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/http_request_with_greedy import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithGreedyLabelInPathOperation + extends + _i1.HttpOperation< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > { HttpRequestWithGreedyLabelInPathOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +54,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,10 +81,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +106,7 @@ class HttpRequestWithGreedyLabelInPathOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart index c49465ccf6..ecea7e7d5d 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_and_timestamp_format_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_request_with_labels_and_timestamp_format_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,35 +14,41 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests serialize different timestamp formats in the URI path. class HttpRequestWithLabelsAndTimestampFormatOperation - extends _i1.HttpOperation< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> { + extends + _i1.HttpOperation< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests serialize different timestamp formats in the URI path. HttpRequestWithLabelsAndTimestampFormatOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -50,7 +56,7 @@ class HttpRequestWithLabelsAndTimestampFormatOperation responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,21 +74,18 @@ class HttpRequestWithLabelsAndTimestampFormatOperation @override _i1.HttpRequest buildRequest( - HttpRequestWithLabelsAndTimestampFormatInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; - }); + HttpRequestWithLabelsAndTimestampFormatInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabelsAndTimestampFormat/{memberEpochSeconds}/{memberHttpDate}/{memberDateTime}/{defaultFormat}/{targetEpochSeconds}/{targetHttpDate}/{targetDateTime}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +110,7 @@ class HttpRequestWithLabelsAndTimestampFormatOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart index 07872f9c38..cd8b5c69af 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_request_with_labels_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_request_with_labels_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. -class HttpRequestWithLabelsOperation extends _i1.HttpOperation< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> { +class HttpRequestWithLabelsOperation + extends + _i1.HttpOperation< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > { /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. HttpRequestWithLabelsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,21 +73,19 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(HttpRequestWithLabelsInput input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; - }); + _i1.HttpRequest buildRequest( + HttpRequestWithLabelsInput input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = + r'/HttpRequestWithLabels/{string}/{short}/{integer}/{long}/{float}/{double}/{boolean}/{timestamp}'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -102,11 +110,7 @@ class HttpRequestWithLabelsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart index 6af7ae4756..ca1235fbc9 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/http_response_code_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.http_response_code_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/http_response_code_outpu import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - HttpResponseCodeOutputPayload, HttpResponseCodeOutput> { +class HttpResponseCodeOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > { HttpResponseCodeOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,9 +72,9 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = r'/HttpResponseCode'; - }); + b.method = 'PUT'; + b.path = r'/HttpResponseCode'; + }); @override int successCode([HttpResponseCodeOutput? output]) => output?.status ?? 200; @@ -70,11 +83,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, HttpResponseCodeOutput buildOutput( HttpResponseCodeOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - HttpResponseCodeOutput.fromResponse( - payload, - response, - ); + ) => HttpResponseCodeOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -98,11 +107,7 @@ class HttpResponseCodeOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart index 2c6f3945c1..967a237f17 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/ignore_query_params_in_response_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.ignore_query_params_in_response_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. -class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< - _i1.Unit, - _i1.Unit, - IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput> { +class IgnoreQueryParamsInResponseOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > { /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. IgnoreQueryParamsInResponseOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, IgnoreQueryParamsInResponseOutput, - IgnoreQueryParamsInResponseOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -64,9 +74,9 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = r'/IgnoreQueryParamsInResponse'; - }); + b.method = 'GET'; + b.path = r'/IgnoreQueryParamsInResponse'; + }); @override int successCode([IgnoreQueryParamsInResponseOutput? output]) => 200; @@ -75,11 +85,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< IgnoreQueryParamsInResponseOutput buildOutput( IgnoreQueryParamsInResponseOutput payload, _i3.AWSBaseHttpResponse response, - ) => - IgnoreQueryParamsInResponseOutput.fromResponse( - payload, - response, - ); + ) => IgnoreQueryParamsInResponseOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class IgnoreQueryParamsInResponseOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart index a1fccb4167..a3e1cf098b 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/input_and_output_with_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.input_and_output_with_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. -class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> { +class InputAndOutputWithHeadersOperation + extends + _i1.HttpOperation< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > { /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. InputAndOutputWithHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo>> protocols = [ + _i1.HttpProtocol< + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -132,13 +139,13 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< if (input.headerTimestampList != null) { if (input.headerTimestampList!.isNotEmpty) { b.headers['X-TimestampList'] = input.headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } } @@ -162,11 +169,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< InputAndOutputWithHeadersIo buildOutput( InputAndOutputWithHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - InputAndOutputWithHeadersIo.fromResponse( - payload, - response, - ); + ) => InputAndOutputWithHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -190,11 +193,7 @@ class InputAndOutputWithHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart index a04f2637c6..f8e4ea1e33 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/nested_xml_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.nested_xml_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/nested_xml_maps_input_ou import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class NestedXmlMapsOperation extends _i1.HttpOperation< - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput> { +class NestedXmlMapsOperation + extends + _i1.HttpOperation< + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput + > { NestedXmlMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class NestedXmlMapsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class NestedXmlMapsOperation extends _i1.HttpOperation< NestedXmlMapsInputOutput buildOutput( NestedXmlMapsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NestedXmlMapsInputOutput.fromResponse( - payload, - response, - ); + ) => NestedXmlMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class NestedXmlMapsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart index ae0de56cb5..b946459104 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_no_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.no_input_and_no_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -20,20 +20,21 @@ class NoInputAndNoOutputOperation Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List<_i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit>> - protocols = [ + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +42,7 @@ class NoInputAndNoOutputOperation responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -59,18 +60,15 @@ class NoInputAndNoOutputOperation @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndNoOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndNoOutput'; + }); @override int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -95,11 +93,7 @@ class NoInputAndNoOutputOperation _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart index 60813e8c21..a64f3dd023 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/no_input_and_output_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.no_input_and_output_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,29 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. -class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, - NoInputAndOutputOutput, NoInputAndOutputOutput> { +class NoInputAndOutputOperation + extends + _i1.HttpOperation< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > { /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. NoInputAndOutputOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput>> protocols = [ + _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -43,7 +56,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -61,9 +74,9 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, @override _i1.HttpRequest buildRequest(_i1.Unit input) => _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = r'/NoInputAndOutputOutput'; - }); + b.method = 'POST'; + b.path = r'/NoInputAndOutputOutput'; + }); @override int successCode([NoInputAndOutputOutput? output]) => 200; @@ -72,11 +85,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, NoInputAndOutputOutput buildOutput( NoInputAndOutputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - NoInputAndOutputOutput.fromResponse( - payload, - response, - ); + ) => NoInputAndOutputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class NoInputAndOutputOperation extends _i1.HttpOperation<_i1.Unit, _i1.Unit, _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart index ccc3fa7e86..501eb4402a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_client_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.null_and_empty_headers_client_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersClientOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersClientOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,8 +89,9 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -92,11 +103,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -120,11 +127,7 @@ class NullAndEmptyHeadersClientOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart index b868b89996..114ded5084 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/null_and_empty_headers_server_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.null_and_empty_headers_server_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Null and empty headers are not sent over the wire. -class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> { +class NullAndEmptyHeadersServerOperation + extends + _i1.HttpOperation< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > { /// Null and empty headers are not sent over the wire. NullAndEmptyHeadersServerOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -79,8 +89,9 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< } if (input.c != null) { if (input.c!.isNotEmpty) { - b.headers['X-C'] = - input.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + b.headers['X-C'] = input.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } } }); @@ -92,11 +103,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< NullAndEmptyHeadersIo buildOutput( NullAndEmptyHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - NullAndEmptyHeadersIo.fromResponse( - payload, - response, - ); + ) => NullAndEmptyHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -120,11 +127,7 @@ class NullAndEmptyHeadersServerOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart index a16903cdd0..aae0359eb8 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/omits_null_serializes_empty_string_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.omits_null_serializes_empty_string_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Omits null, but serializes empty string value. -class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> { +class OmitsNullSerializesEmptyStringOperation + extends + _i1.HttpOperation< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > { /// Omits null, but serializes empty string value. OmitsNullSerializesEmptyStringOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit>> protocols = [ + _i1.HttpProtocol< + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -71,16 +78,10 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< b.method = 'GET'; b.path = r'/OmitsNullSerializesEmptyString'; if (input.nullValue != null) { - b.queryParameters.add( - 'Null', - input.nullValue!, - ); + b.queryParameters.add('Null', input.nullValue!); } if (input.emptyString != null) { - b.queryParameters.add( - 'Empty', - input.emptyString!, - ); + b.queryParameters.add('Empty', input.emptyString!); } }); @@ -88,10 +89,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -116,11 +114,7 @@ class OmitsNullSerializesEmptyStringOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart index d47f049fad..f52ab8ee0d 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/put_with_content_encoding_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.put_with_content_encoding_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/put_with_content_encodin import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class PutWithContentEncodingOperation extends _i1.HttpOperation< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> { +class PutWithContentEncodingOperation + extends + _i1.HttpOperation< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > { PutWithContentEncodingOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,10 +87,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -105,11 +112,7 @@ class PutWithContentEncodingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart index 6578eb0f1f..f15567bf24 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_idempotency_token_auto_fill_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.query_idempotency_token_auto_fill_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,32 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Automatically adds idempotency tokens. -class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> { +class QueryIdempotencyTokenAutoFillOperation + extends + _i1.HttpOperation< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > { /// Automatically adds idempotency tokens. QueryIdempotencyTokenAutoFillOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -46,7 +56,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -68,10 +78,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/QueryIdempotencyTokenAutoFill'; if (input.token != null) { - b.queryParameters.add( - 'token', - input.token!, - ); + b.queryParameters.add('token', input.token!); } }); @@ -79,10 +86,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -107,11 +111,7 @@ class QueryIdempotencyTokenAutoFillOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart index 2cdb11d4c3..f7c3dd86d9 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_params_as_string_list_map_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.query_params_as_string_list_map_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,31 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/query_params_as_string_l import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> { +class QueryParamsAsStringListMapOperation + extends + _i1.HttpOperation< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > { QueryParamsAsStringListMapOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +54,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -66,18 +76,12 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/StringListMap'; if (input.qux != null) { - b.queryParameters.add( - 'corge', - input.qux!, - ); + b.queryParameters.add('corge', input.qux!); } if (input.foo != null) { for (var entry in input.foo!.toMap().entries) { for (var value in entry.value) { - b.queryParameters.add( - entry.key, - value, - ); + b.queryParameters.add(entry.key, value); } } } @@ -87,10 +91,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -115,11 +116,7 @@ class QueryParamsAsStringListMapOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart index 4cdf725dcb..e08e9dff66 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/query_precedence_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.query_precedence_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,28 +12,41 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/query_precedence_input.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class QueryPrecedenceOperation extends _i1.HttpOperation< - QueryPrecedenceInputPayload, QueryPrecedenceInput, _i1.Unit, _i1.Unit> { +class QueryPrecedenceOperation + extends + _i1.HttpOperation< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > { QueryPrecedenceOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -41,7 +54,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -63,17 +76,11 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< b.method = 'POST'; b.path = r'/Precedence'; if (input.foo != null) { - b.queryParameters.add( - 'bar', - input.foo!, - ); + b.queryParameters.add('bar', input.foo!); } if (input.baz != null) { for (var entry in input.baz!.toMap().entries) { - b.queryParameters.add( - entry.key, - entry.value, - ); + b.queryParameters.add(entry.key, entry.value); } } }); @@ -82,10 +89,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< int successCode([_i1.Unit? output]) => 200; @override - _i1.Unit buildOutput( - _i1.Unit payload, - _i3.AWSBaseHttpResponse response, - ) => + _i1.Unit buildOutput(_i1.Unit payload, _i3.AWSBaseHttpResponse response) => payload; @override @@ -110,11 +114,7 @@ class QueryPrecedenceOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart index 351da0b4bf..a2b5d00a02 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/recursive_shapes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.recursive_shapes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Recursive shapes -class RecursiveShapesOperation extends _i1.HttpOperation< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> { +class RecursiveShapesOperation + extends + _i1.HttpOperation< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > { /// Recursive shapes RecursiveShapesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< RecursiveShapesInputOutput buildOutput( RecursiveShapesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - RecursiveShapesInputOutput.fromResponse( - payload, - response, - ); + ) => RecursiveShapesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class RecursiveShapesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart index a103201a47..c7f2215ce5 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,35 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/simple_scalar_properties import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +55,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,11 +90,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +114,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart index f140faf684..d6eb16bcaf 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/timestamp_format_headers_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.timestamp_format_headers_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,35 +13,42 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests how timestamp request and response headers are serialized. -class TimestampFormatHeadersOperation extends _i1.HttpOperation< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> { +class TimestampFormatHeadersOperation + extends + _i1.HttpOperation< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > { /// The example tests how timestamp request and response headers are serialized. TimestampFormatHeadersOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo>> protocols = [ + _i1.HttpProtocol< + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -49,7 +56,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,40 +79,45 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< b.path = r'/TimestampFormatHeaders'; if (input.memberEpochSeconds != null) { b.headers['X-memberEpochSeconds'] = - _i1.Timestamp(input.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.memberHttpDate != null) { - b.headers['X-memberHttpDate'] = _i1.Timestamp(input.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-memberHttpDate'] = + _i1.Timestamp( + input.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.memberDateTime != null) { - b.headers['X-memberDateTime'] = _i1.Timestamp(input.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-memberDateTime'] = + _i1.Timestamp( + input.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (input.defaultFormat != null) { - b.headers['X-defaultFormat'] = _i1.Timestamp(input.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-defaultFormat'] = + _i1.Timestamp( + input.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetEpochSeconds != null) { b.headers['X-targetEpochSeconds'] = - _i1.Timestamp(input.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + input.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (input.targetHttpDate != null) { - b.headers['X-targetHttpDate'] = _i1.Timestamp(input.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + b.headers['X-targetHttpDate'] = + _i1.Timestamp( + input.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (input.targetDateTime != null) { - b.headers['X-targetDateTime'] = _i1.Timestamp(input.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + b.headers['X-targetDateTime'] = + _i1.Timestamp( + input.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } }); @@ -116,11 +128,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< TimestampFormatHeadersIo buildOutput( TimestampFormatHeadersIoPayload payload, _i3.AWSBaseHttpResponse response, - ) => - TimestampFormatHeadersIo.fromResponse( - payload, - response, - ); + ) => TimestampFormatHeadersIo.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -144,11 +152,7 @@ class TimestampFormatHeadersOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart index bf65d0440f..8a525a5c4d 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_on_payload_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_attributes_on_payload_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,36 +14,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes an XML attributes on a document targeted by httpPayload. -class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput, - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput> { +class XmlAttributesOnPayloadOperation + extends + _i1.HttpOperation< + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput, + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput + > { /// This example serializes an XML attributes on a document targeted by httpPayload. XmlAttributesOnPayloadOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput, - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput>> protocols = [ + _i1.HttpProtocol< + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput, + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -51,7 +58,7 @@ class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -81,11 +88,7 @@ class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< XmlAttributesOnPayloadInputOutput buildOutput( XmlAttributesInputOutput? payload, _i3.AWSBaseHttpResponse response, - ) => - XmlAttributesOnPayloadInputOutput.fromResponse( - payload, - response, - ); + ) => XmlAttributesOnPayloadInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -109,11 +112,7 @@ class XmlAttributesOnPayloadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart index 96a65b109d..64f60ee245 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_attributes_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_attributes_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes an XML attributes on synthesized document. -class XmlAttributesOperation extends _i1.HttpOperation< - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput> { +class XmlAttributesOperation + extends + _i1.HttpOperation< + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput + > { /// This example serializes an XML attributes on synthesized document. XmlAttributesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class XmlAttributesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class XmlAttributesOperation extends _i1.HttpOperation< XmlAttributesInputOutput buildOutput( XmlAttributesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlAttributesInputOutput.fromResponse( - payload, - response, - ); + ) => XmlAttributesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class XmlAttributesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart index c2edcf62cf..854682a38e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlBlobsOperation extends _i1.HttpOperation { +class XmlBlobsOperation + extends + _i1.HttpOperation< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > { /// Blobs are base64 encoded XmlBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlBlobsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlBlobsOperation extends _i1.HttpOperation - XmlBlobsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlBlobsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart index 2cc4e98c0a..bb0d49e75b 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_blobs_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_empty_blobs_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// Blobs are base64 encoded -class XmlEmptyBlobsOperation extends _i1.HttpOperation { +class XmlEmptyBlobsOperation + extends + _i1.HttpOperation< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > { /// Blobs are base64 encoded XmlEmptyBlobsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlEmptyBlobsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlEmptyBlobsOperation extends _i1.HttpOperation - XmlBlobsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlBlobsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlEmptyBlobsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart index 32a99edb2a..2598c04fe0 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_empty_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/xml_lists_input_output.d import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyListsOperation extends _i1.HttpOperation { +class XmlEmptyListsOperation + extends + _i1.HttpOperation< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > { XmlEmptyListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlEmptyListsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +85,7 @@ class XmlEmptyListsOperation extends _i1.HttpOperation - XmlListsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlListsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class XmlEmptyListsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart index 4239a0c17c..b1f5d858d1 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_empty_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/xml_maps_input_output.da import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyMapsOperation extends _i1.HttpOperation { +class XmlEmptyMapsOperation + extends + _i1.HttpOperation< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > { XmlEmptyMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlEmptyMapsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +85,7 @@ class XmlEmptyMapsOperation extends _i1.HttpOperation - XmlMapsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class XmlEmptyMapsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart index a41cbdfd67..fcfdd41529 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_empty_strings_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_empty_strings_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/xml_empty_strings_input_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlEmptyStringsOperation extends _i1.HttpOperation< - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput> { +class XmlEmptyStringsOperation + extends + _i1.HttpOperation< + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput + > { XmlEmptyStringsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class XmlEmptyStringsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class XmlEmptyStringsOperation extends _i1.HttpOperation< XmlEmptyStringsInputOutput buildOutput( XmlEmptyStringsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlEmptyStringsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlEmptyStringsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class XmlEmptyStringsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart index f83012ccac..4465226583 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlEnumsOperation extends _i1.HttpOperation { +class XmlEnumsOperation + extends + _i1.HttpOperation< + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlEnumsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlEnumsOperation extends _i1.HttpOperation - XmlEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart index 5bf1c1334c..5ddbaf2bf4 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_int_enums_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_int_enums_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This example serializes enums as top level properties, in lists, sets, and maps. -class XmlIntEnumsOperation extends _i1.HttpOperation { +class XmlIntEnumsOperation + extends + _i1.HttpOperation< + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput + > { /// This example serializes enums as top level properties, in lists, sets, and maps. XmlIntEnumsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlIntEnumsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlIntEnumsOperation extends _i1.HttpOperation - XmlIntEnumsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlIntEnumsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlIntEnumsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart index c22f34e12a..ee41c3f638 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_lists_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_lists_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. 9. Flattened XML list of structures -class XmlListsOperation extends _i1.HttpOperation { +class XmlListsOperation + extends + _i1.HttpOperation< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > { /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. 9. Flattened XML list of structures XmlListsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlListsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlListsOperation extends _i1.HttpOperation - XmlListsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlListsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlListsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart index cecfe62494..808c7f57e0 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_maps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,30 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The example tests basic map serialization. -class XmlMapsOperation extends _i1.HttpOperation { +class XmlMapsOperation + extends + _i1.HttpOperation< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > { /// The example tests basic map serialization. XmlMapsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -44,7 +57,7 @@ class XmlMapsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -74,11 +87,7 @@ class XmlMapsOperation extends _i1.HttpOperation - XmlMapsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -102,11 +111,7 @@ class XmlMapsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart index c18e3495c7..8b6fd79f15 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_maps_xml_name_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_maps_xml_name_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/xml_maps_xml_name_input_ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlMapsXmlNameOperation extends _i1.HttpOperation< - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput> { +class XmlMapsXmlNameOperation + extends + _i1.HttpOperation< + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput + > { XmlMapsXmlNameOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation< XmlMapsXmlNameInputOutput buildOutput( XmlMapsXmlNameInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlMapsXmlNameInputOutput.fromResponse( - payload, - response, - ); + ) => XmlMapsXmlNameInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class XmlMapsXmlNameOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart index 6f3c8640ab..25faa1404f 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_namespaces_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_namespaces_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,32 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/xml_namespaces_input_out import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlNamespacesOperation extends _i1.HttpOperation< - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput> { +class XmlNamespacesOperation + extends + _i1.HttpOperation< + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput + > { XmlNamespacesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -45,7 +55,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -75,11 +85,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation< XmlNamespacesInputOutput buildOutput( XmlNamespacesInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlNamespacesInputOutput.fromResponse( - payload, - response, - ); + ) => XmlNamespacesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -103,11 +109,7 @@ class XmlNamespacesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart index 58185ea1b8..ea16dfe6c4 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_timestamps_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_timestamps_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,33 +13,43 @@ import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. -class XmlTimestampsOperation extends _i1.HttpOperation< - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput> { +class XmlTimestampsOperation + extends + _i1.HttpOperation< + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput + > { /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. XmlTimestampsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -47,7 +57,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -77,11 +87,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation< XmlTimestampsInputOutput buildOutput( XmlTimestampsInputOutput payload, _i3.AWSBaseHttpResponse response, - ) => - XmlTimestampsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlTimestampsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -105,11 +111,7 @@ class XmlTimestampsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart index 6a4def75fe..b677692a31 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/operation/xml_unions_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.operation.xml_unions_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,29 +12,42 @@ import 'package:rest_xml_v2/src/rest_xml_protocol/model/xml_unions_input_output. import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class XmlUnionsOperation extends _i1.HttpOperation { +class XmlUnionsOperation + extends + _i1.HttpOperation< + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput + > { XmlUnionsOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -42,7 +55,7 @@ class XmlUnionsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -72,11 +85,7 @@ class XmlUnionsOperation extends _i1.HttpOperation - XmlUnionsInputOutput.fromResponse( - payload, - response, - ); + ) => XmlUnionsInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -100,11 +109,7 @@ class XmlUnionsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart index 40e23eaf95..d2bcd6f077 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.rest_xml_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -124,11 +124,11 @@ class RestXmlProtocolClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -150,10 +150,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a body that uses an XML name, changing the wrapper name. @@ -166,10 +163,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses fixed query string params and variable query string params. The fixed query string parameters and variable parameters must both be serialized (implementations may need to merge them together). @@ -182,10 +176,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example uses a constant query string parameters and a label. This simply tests that labels and query string parameters are compatible. The fixed query string parameter named "hello" should in no way conflict with the label, `{hello}`. @@ -198,23 +189,18 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation datetimeOffsets( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation datetimeOffsets({ + _i1.AWSHttpClient? client, + }) { return DatetimeOffsetsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has an empty input and empty output structure that reuses the same shape. While this should be rare, code generators must support this. @@ -227,10 +213,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointOperation({_i1.AWSHttpClient? client}) { @@ -239,10 +222,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelHeaderOperation( @@ -254,10 +234,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation endpointWithHostLabelOperation( @@ -269,10 +246,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps @@ -285,15 +259,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps with @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlName( + flattenedXmlMapWithXmlName( FlattenedXmlMapWithXmlNameInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -302,51 +273,41 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Flattened maps with @xmlNamespace and @xmlName _i2.SmithyOperation - flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { + flattenedXmlMapWithXmlNamespace({_i1.AWSHttpClient? client}) { return FlattenedXmlMapWithXmlNamespaceOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } - _i2.SmithyOperation fractionalSeconds( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation fractionalSeconds({ + _i1.AWSHttpClient? client, + }) { return FractionalSecondsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This operation has three possible return values: 1. A successful response in the form of GreetingWithErrorsOutput 2. An InvalidGreeting error. 3. A BadRequest error. Implementations must be able to successfully take a response and properly (de)serialize successful and error responses based on the the presence of the - _i2.SmithyOperation greetingWithErrors( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation greetingWithErrors({ + _i1.AWSHttpClient? client, + }) { return GreetingWithErrorsOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This examples serializes a blob shape in the payload. In this example, no XML document is synthesized because the payload is not a structure or a union type. @@ -359,15 +320,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples uses a `@mediaType` trait on the payload to force a custom content-type to be serialized. _i2.SmithyOperation - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -376,15 +334,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML name on the member, changing the wrapper name. _i2.SmithyOperation - httpPayloadWithMemberXmlName( + httpPayloadWithMemberXmlName( HttpPayloadWithMemberXmlNameInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -393,15 +348,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples serializes a structure in the payload. Note that serializing a structure changes the wrapper element name to match the targeted structure. _i2.SmithyOperation - httpPayloadWithStructure( + httpPayloadWithStructure( HttpPayloadWithStructureInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -410,10 +362,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML name, changing the wrapper name. @@ -426,15 +375,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML namespace. _i2.SmithyOperation - httpPayloadWithXmlNamespace( + httpPayloadWithXmlNamespace( HttpPayloadWithXmlNamespaceInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -443,15 +389,12 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The following example serializes a payload that uses an XML namespace. _i2.SmithyOperation - httpPayloadWithXmlNamespaceAndPrefix( + httpPayloadWithXmlNamespaceAndPrefix( HttpPayloadWithXmlNamespaceAndPrefixInputOutput input, { _i1.AWSHttpClient? client, }) { @@ -460,10 +403,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This examples adds headers to the input of a request and response by prefix./// @@ -479,10 +419,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithFloatLabels( @@ -494,10 +431,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation httpRequestWithGreedyLabelInPath( @@ -509,10 +443,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests are serialized when there's no input payload but there are HTTP labels. @@ -525,10 +456,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests serialize different timestamp formats in the URI path. @@ -541,37 +469,29 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } - _i2.SmithyOperation httpResponseCode( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation httpResponseCode({ + _i1.AWSHttpClient? client, + }) { return HttpResponseCodeOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// This example ensures that query string bound request parameters are serialized in the body of responses if the structure is used in both the request and response. _i2.SmithyOperation - ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { + ignoreQueryParamsInResponse({_i1.AWSHttpClient? client}) { return IgnoreQueryParamsInResponseOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there is no input or output payload but there are HTTP header bindings. @@ -584,10 +504,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation nestedXmlMaps( @@ -599,10 +516,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input or output. While this should be rare, code generators must support this. @@ -612,24 +526,19 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// The example tests how requests and responses are serialized when there's no request or response payload because the operation has no input and the output is empty. While this should be rare, code generators must support this. - _i2.SmithyOperation noInputAndOutput( - {_i1.AWSHttpClient? client}) { + _i2.SmithyOperation noInputAndOutput({ + _i1.AWSHttpClient? client, + }) { return NoInputAndOutputOperation( region: _region, baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - const _i2.Unit(), - client: client ?? _client, - ); + ).run(const _i2.Unit(), client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -642,10 +551,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Null and empty headers are not sent over the wire. @@ -658,10 +564,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Omits null, but serializes empty string value. @@ -674,10 +577,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation putWithContentEncoding( @@ -689,10 +589,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Automatically adds idempotency tokens. @@ -705,10 +602,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryParamsAsStringListMap( @@ -720,10 +614,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation queryPrecedence( @@ -735,10 +626,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Recursive shapes @@ -751,10 +639,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation simpleScalarProperties( @@ -766,10 +651,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests how timestamp request and response headers are serialized. @@ -782,10 +664,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes an XML attributes on synthesized document. @@ -798,10 +677,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes an XML attributes on a document targeted by httpPayload. @@ -814,10 +690,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Blobs are base64 encoded @@ -830,10 +703,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Blobs are base64 encoded @@ -846,10 +716,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlEmptyLists( @@ -861,10 +728,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlEmptyMaps( @@ -876,10 +740,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlEmptyStrings( @@ -891,10 +752,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -907,10 +765,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This example serializes enums as top level properties, in lists, sets, and maps. @@ -923,10 +778,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This test case serializes XML lists for the following cases for both input and output: 1. Normal XML lists. 2. Normal XML sets. 3. XML lists of lists. 4. XML lists with @xmlName on its members 5. Flattened XML lists. 6. Flattened XML lists with @xmlName. 7. Flattened XML lists with @xmlNamespace. 8. Lists of structures. 9. Flattened XML list of structures @@ -939,10 +791,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The example tests basic map serialization. @@ -955,10 +804,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlMapsXmlName( @@ -970,10 +816,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlNamespaces( @@ -985,10 +828,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This tests how timestamps are serialized, including using the default format of date-time and various @timestampFormat trait values. @@ -1001,10 +841,7 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i2.SmithyOperation xmlUnions( @@ -1016,9 +853,6 @@ class RestXmlProtocolClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart index c03ef6a416..5f8fb65931 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/rest_xml_protocol/rest_xml_protocol_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.rest_xml_protocol.rest_xml_protocol_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -86,11 +86,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/AllQueryStringTypesInput', service.allQueryStringTypes, ); - router.add( - 'PUT', - r'/BodyWithXmlName', - service.bodyWithXmlName, - ); + router.add('PUT', r'/BodyWithXmlName', service.bodyWithXmlName); router.add( 'GET', r'/ConstantAndVariableQueryString?foo=bar', @@ -101,21 +97,13 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/ConstantQueryString/?foo=bar&hello', service.constantQueryString, ); - router.add( - 'POST', - r'/DatetimeOffsets', - service.datetimeOffsets, - ); + router.add('POST', r'/DatetimeOffsets', service.datetimeOffsets); router.add( 'POST', r'/EmptyInputAndEmptyOutput', service.emptyInputAndEmptyOutput, ); - router.add( - 'POST', - r'/EndpointOperation', - service.endpointOperation, - ); + router.add('POST', r'/EndpointOperation', service.endpointOperation); router.add( 'POST', r'/EndpointWithHostLabelHeaderOperation', @@ -126,11 +114,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/EndpointWithHostLabelOperation', service.endpointWithHostLabelOperation, ); - router.add( - 'POST', - r'/FlattenedXmlMap', - service.flattenedXmlMap, - ); + router.add('POST', r'/FlattenedXmlMap', service.flattenedXmlMap); router.add( 'POST', r'/FlattenedXmlMapWithXmlName', @@ -141,21 +125,9 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/FlattenedXmlMapWithXmlNamespace', service.flattenedXmlMapWithXmlNamespace, ); - router.add( - 'POST', - r'/FractionalSeconds', - service.fractionalSeconds, - ); - router.add( - 'PUT', - r'/GreetingWithErrors', - service.greetingWithErrors, - ); - router.add( - 'POST', - r'/HttpPayloadTraits', - service.httpPayloadTraits, - ); + router.add('POST', r'/FractionalSeconds', service.fractionalSeconds); + router.add('PUT', r'/GreetingWithErrors', service.greetingWithErrors); + router.add('POST', r'/HttpPayloadTraits', service.httpPayloadTraits); router.add( 'POST', r'/HttpPayloadTraitsWithMediaType', @@ -186,11 +158,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/HttpPayloadWithXmlNamespaceAndPrefix', service.httpPayloadWithXmlNamespaceAndPrefix, ); - router.add( - 'GET', - r'/HttpPrefixHeaders', - service.httpPrefixHeaders, - ); + router.add('GET', r'/HttpPrefixHeaders', service.httpPrefixHeaders); router.add( 'GET', r'/FloatHttpLabels//', @@ -211,11 +179,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/HttpRequestWithLabelsAndTimestampFormat///////', service.httpRequestWithLabelsAndTimestampFormat, ); - router.add( - 'PUT', - r'/HttpResponseCode', - service.httpResponseCode, - ); + router.add('PUT', r'/HttpResponseCode', service.httpResponseCode); router.add( 'GET', r'/IgnoreQueryParamsInResponse', @@ -226,21 +190,9 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/InputAndOutputWithHeaders', service.inputAndOutputWithHeaders, ); - router.add( - 'POST', - r'/NestedXmlMaps', - service.nestedXmlMaps, - ); - router.add( - 'POST', - r'/NoInputAndNoOutput', - service.noInputAndNoOutput, - ); - router.add( - 'POST', - r'/NoInputAndOutputOutput', - service.noInputAndOutput, - ); + router.add('POST', r'/NestedXmlMaps', service.nestedXmlMaps); + router.add('POST', r'/NoInputAndNoOutput', service.noInputAndNoOutput); + router.add('POST', r'/NoInputAndOutputOutput', service.noInputAndOutput); router.add( 'GET', r'/NullAndEmptyHeadersClient', @@ -266,21 +218,9 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/QueryIdempotencyTokenAutoFill', service.queryIdempotencyTokenAutoFill, ); - router.add( - 'POST', - r'/StringListMap', - service.queryParamsAsStringListMap, - ); - router.add( - 'POST', - r'/Precedence', - service.queryPrecedence, - ); - router.add( - 'PUT', - r'/RecursiveShapes', - service.recursiveShapes, - ); + router.add('POST', r'/StringListMap', service.queryParamsAsStringListMap); + router.add('POST', r'/Precedence', service.queryPrecedence); + router.add('PUT', r'/RecursiveShapes', service.recursiveShapes); router.add( 'PUT', r'/SimpleScalarProperties', @@ -291,81 +231,25 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { r'/TimestampFormatHeaders', service.timestampFormatHeaders, ); - router.add( - 'PUT', - r'/XmlAttributes', - service.xmlAttributes, - ); + router.add('PUT', r'/XmlAttributes', service.xmlAttributes); router.add( 'PUT', r'/XmlAttributesOnPayload', service.xmlAttributesOnPayload, ); - router.add( - 'POST', - r'/XmlBlobs', - service.xmlBlobs, - ); - router.add( - 'POST', - r'/XmlEmptyBlobs', - service.xmlEmptyBlobs, - ); - router.add( - 'PUT', - r'/XmlEmptyLists', - service.xmlEmptyLists, - ); - router.add( - 'POST', - r'/XmlEmptyMaps', - service.xmlEmptyMaps, - ); - router.add( - 'PUT', - r'/XmlEmptyStrings', - service.xmlEmptyStrings, - ); - router.add( - 'PUT', - r'/XmlEnums', - service.xmlEnums, - ); - router.add( - 'PUT', - r'/XmlIntEnums', - service.xmlIntEnums, - ); - router.add( - 'PUT', - r'/XmlLists', - service.xmlLists, - ); - router.add( - 'POST', - r'/XmlMaps', - service.xmlMaps, - ); - router.add( - 'POST', - r'/XmlMapsXmlName', - service.xmlMapsXmlName, - ); - router.add( - 'POST', - r'/XmlNamespaces', - service.xmlNamespaces, - ); - router.add( - 'POST', - r'/XmlTimestamps', - service.xmlTimestamps, - ); - router.add( - 'PUT', - r'/XmlUnions', - service.xmlUnions, - ); + router.add('POST', r'/XmlBlobs', service.xmlBlobs); + router.add('POST', r'/XmlEmptyBlobs', service.xmlEmptyBlobs); + router.add('PUT', r'/XmlEmptyLists', service.xmlEmptyLists); + router.add('POST', r'/XmlEmptyMaps', service.xmlEmptyMaps); + router.add('PUT', r'/XmlEmptyStrings', service.xmlEmptyStrings); + router.add('PUT', r'/XmlEnums', service.xmlEnums); + router.add('PUT', r'/XmlIntEnums', service.xmlIntEnums); + router.add('PUT', r'/XmlLists', service.xmlLists); + router.add('POST', r'/XmlMaps', service.xmlMaps); + router.add('POST', r'/XmlMapsXmlName', service.xmlMapsXmlName); + router.add('POST', r'/XmlNamespaces', service.xmlNamespaces); + router.add('POST', r'/XmlTimestamps', service.xmlTimestamps); + router.add('PUT', r'/XmlUnions', service.xmlUnions); return router; }(); @@ -393,10 +277,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { EmptyInputAndEmptyOutputInput input, _i1.Context context, ); - _i3.Future<_i1.Unit> endpointOperation( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> endpointOperation(_i1.Unit input, _i1.Context context); _i3.Future<_i1.Unit> endpointWithHostLabelHeaderOperation( HostLabelHeaderInput input, _i1.Context context, @@ -414,10 +295,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - flattenedXmlMapWithXmlNamespace( - _i1.Unit input, - _i1.Context context, - ); + flattenedXmlMapWithXmlNamespace(_i1.Unit input, _i1.Context context); _i3.Future fractionalSeconds( _i1.Unit input, _i1.Context context, @@ -431,12 +309,12 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - httpPayloadTraitsWithMediaType( + httpPayloadTraitsWithMediaType( HttpPayloadTraitsWithMediaTypeInputOutput input, _i1.Context context, ); _i3.Future - httpPayloadWithMemberXmlName( + httpPayloadWithMemberXmlName( HttpPayloadWithMemberXmlNameInputOutput input, _i1.Context context, ); @@ -449,12 +327,12 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { _i1.Context context, ); _i3.Future - httpPayloadWithXmlNamespace( + httpPayloadWithXmlNamespace( HttpPayloadWithXmlNamespaceInputOutput input, _i1.Context context, ); _i3.Future - httpPayloadWithXmlNamespaceAndPrefix( + httpPayloadWithXmlNamespaceAndPrefix( HttpPayloadWithXmlNamespaceAndPrefixInputOutput input, _i1.Context context, ); @@ -494,10 +372,7 @@ abstract class RestXmlProtocolServerBase extends _i1.HttpServerBase { NestedXmlMapsInputOutput input, _i1.Context context, ); - _i3.Future<_i1.Unit> noInputAndNoOutput( - _i1.Unit input, - _i1.Context context, - ); + _i3.Future<_i1.Unit> noInputAndNoOutput(_i1.Unit input, _i1.Context context); _i3.Future noInputAndOutput( _i1.Unit input, _i1.Context context, @@ -612,149 +487,187 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final RestXmlProtocolServerBase service; late final _i1.HttpProtocol< - AllQueryStringTypesInputPayload, - AllQueryStringTypesInput, - _i1.Unit, - _i1.Unit> _allQueryStringTypesProtocol = _i2.RestXmlProtocol( + AllQueryStringTypesInputPayload, + AllQueryStringTypesInput, + _i1.Unit, + _i1.Unit + > + _allQueryStringTypesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput, - BodyWithXmlNameInputOutput> _bodyWithXmlNameProtocol = - _i2.RestXmlProtocol( + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput, + BodyWithXmlNameInputOutput + > + _bodyWithXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - ConstantAndVariableQueryStringInputPayload, - ConstantAndVariableQueryStringInput, - _i1.Unit, - _i1.Unit> _constantAndVariableQueryStringProtocol = _i2.RestXmlProtocol( + ConstantAndVariableQueryStringInputPayload, + ConstantAndVariableQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantAndVariableQueryStringProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - ConstantQueryStringInputPayload, - ConstantQueryStringInput, - _i1.Unit, - _i1.Unit> _constantQueryStringProtocol = _i2.RestXmlProtocol( + ConstantQueryStringInputPayload, + ConstantQueryStringInput, + _i1.Unit, + _i1.Unit + > + _constantQueryStringProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, DatetimeOffsetsOutput, - DatetimeOffsetsOutput> _datetimeOffsetsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + DatetimeOffsetsOutput, + DatetimeOffsetsOutput + > + _datetimeOffsetsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputInput, - EmptyInputAndEmptyOutputOutput, - EmptyInputAndEmptyOutputOutput> _emptyInputAndEmptyOutputProtocol = - _i2.RestXmlProtocol( + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputInput, + EmptyInputAndEmptyOutputOutput, + EmptyInputAndEmptyOutputOutput + > + _emptyInputAndEmptyOutputProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _endpointOperationProtocol = _i2.RestXmlProtocol( + _endpointOperationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol _endpointWithHostLabelHeaderOperationProtocol = - _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + HostLabelHeaderInputPayload, + HostLabelHeaderInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelHeaderOperationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1 - .HttpProtocol - _endpointWithHostLabelOperationProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + HostLabelInput, + HostLabelInput, + _i1.Unit, + _i1.Unit + > + _endpointWithHostLabelOperationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput, - FlattenedXmlMapInputOutput> _flattenedXmlMapProtocol = - _i2.RestXmlProtocol( + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput, + FlattenedXmlMapInputOutput + > + _flattenedXmlMapProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput, - FlattenedXmlMapWithXmlNameInputOutput> - _flattenedXmlMapWithXmlNameProtocol = _i2.RestXmlProtocol( + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput, + FlattenedXmlMapWithXmlNameInputOutput + > + _flattenedXmlMapWithXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - _i1.Unit, - _i1.Unit, - FlattenedXmlMapWithXmlNamespaceOutput, - FlattenedXmlMapWithXmlNamespaceOutput> - _flattenedXmlMapWithXmlNamespaceProtocol = _i2.RestXmlProtocol( + _i1.Unit, + _i1.Unit, + FlattenedXmlMapWithXmlNamespaceOutput, + FlattenedXmlMapWithXmlNamespaceOutput + > + _flattenedXmlMapWithXmlNamespaceProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, FractionalSecondsOutput, - FractionalSecondsOutput> _fractionalSecondsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + FractionalSecondsOutput, + FractionalSecondsOutput + > + _fractionalSecondsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - GreetingWithErrorsOutputPayload, GreetingWithErrorsOutput> - _greetingWithErrorsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput + > + _greetingWithErrorsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i5.Uint8List, HttpPayloadTraitsInputOutput, - _i5.Uint8List, HttpPayloadTraitsInputOutput> - _httpPayloadTraitsProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i5.Uint8List, + HttpPayloadTraitsInputOutput, + _i5.Uint8List, + HttpPayloadTraitsInputOutput + > + _httpPayloadTraitsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - _i5.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput, - _i5.Uint8List, - HttpPayloadTraitsWithMediaTypeInputOutput> - _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestXmlProtocol( + _i5.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput, + _i5.Uint8List, + HttpPayloadTraitsWithMediaTypeInputOutput + > + _httpPayloadTraitsWithMediaTypeProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, mediaType: 'text/plain', @@ -762,411 +675,487 @@ class _RestXmlProtocolServer extends _i1.HttpServer { ); late final _i1.HttpProtocol< - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithMemberXmlNameInputOutput> - _httpPayloadWithMemberXmlNameProtocol = _i2.RestXmlProtocol( + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithMemberXmlNameInputOutput + > + _httpPayloadWithMemberXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NestedPayload, - HttpPayloadWithStructureInputOutput, - NestedPayload, - HttpPayloadWithStructureInputOutput> - _httpPayloadWithStructureProtocol = _i2.RestXmlProtocol( + NestedPayload, + HttpPayloadWithStructureInputOutput, + NestedPayload, + HttpPayloadWithStructureInputOutput + > + _httpPayloadWithStructureProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput, - PayloadWithXmlName, - HttpPayloadWithXmlNameInputOutput> _httpPayloadWithXmlNameProtocol = - _i2.RestXmlProtocol( + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput, + PayloadWithXmlName, + HttpPayloadWithXmlNameInputOutput + > + _httpPayloadWithXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput, - PayloadWithXmlNamespace, - HttpPayloadWithXmlNamespaceInputOutput> - _httpPayloadWithXmlNamespaceProtocol = _i2.RestXmlProtocol( + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput, + PayloadWithXmlNamespace, + HttpPayloadWithXmlNamespaceInputOutput + > + _httpPayloadWithXmlNamespaceProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - PayloadWithXmlNamespaceAndPrefix, - HttpPayloadWithXmlNamespaceAndPrefixInputOutput> - _httpPayloadWithXmlNamespaceAndPrefixProtocol = _i2.RestXmlProtocol( + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + PayloadWithXmlNamespaceAndPrefix, + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > + _httpPayloadWithXmlNamespaceAndPrefixProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput, - HttpPrefixHeadersInputOutputPayload, - HttpPrefixHeadersInputOutput> _httpPrefixHeadersProtocol = - _i2.RestXmlProtocol( + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput, + HttpPrefixHeadersInputOutputPayload, + HttpPrefixHeadersInputOutput + > + _httpPrefixHeadersProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithFloatLabelsInputPayload, - HttpRequestWithFloatLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithFloatLabelsProtocol = _i2.RestXmlProtocol( + HttpRequestWithFloatLabelsInputPayload, + HttpRequestWithFloatLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithFloatLabelsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithGreedyLabelInPathInputPayload, - HttpRequestWithGreedyLabelInPathInput, - _i1.Unit, - _i1.Unit> _httpRequestWithGreedyLabelInPathProtocol = _i2.RestXmlProtocol( + HttpRequestWithGreedyLabelInPathInputPayload, + HttpRequestWithGreedyLabelInPathInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithGreedyLabelInPathProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsInputPayload, - HttpRequestWithLabelsInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsProtocol = _i2.RestXmlProtocol( + HttpRequestWithLabelsInputPayload, + HttpRequestWithLabelsInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - HttpRequestWithLabelsAndTimestampFormatInputPayload, - HttpRequestWithLabelsAndTimestampFormatInput, - _i1.Unit, - _i1.Unit> _httpRequestWithLabelsAndTimestampFormatProtocol = - _i2.RestXmlProtocol( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + HttpRequestWithLabelsAndTimestampFormatInput, + _i1.Unit, + _i1.Unit + > + _httpRequestWithLabelsAndTimestampFormatProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, HttpResponseCodeOutputPayload, - HttpResponseCodeOutput> _httpResponseCodeProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + HttpResponseCodeOutputPayload, + HttpResponseCodeOutput + > + _httpResponseCodeProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, - IgnoreQueryParamsInResponseOutput, IgnoreQueryParamsInResponseOutput> - _ignoreQueryParamsInResponseProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + IgnoreQueryParamsInResponseOutput, + IgnoreQueryParamsInResponseOutput + > + _ignoreQueryParamsInResponseProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo, - InputAndOutputWithHeadersIoPayload, - InputAndOutputWithHeadersIo> _inputAndOutputWithHeadersProtocol = - _i2.RestXmlProtocol( + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo, + InputAndOutputWithHeadersIoPayload, + InputAndOutputWithHeadersIo + > + _inputAndOutputWithHeadersProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput, - NestedXmlMapsInputOutput> _nestedXmlMapsProtocol = _i2.RestXmlProtocol( + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput, + NestedXmlMapsInputOutput + > + _nestedXmlMapsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, _i1.Unit, _i1.Unit> - _noInputAndNoOutputProtocol = _i2.RestXmlProtocol( + _noInputAndNoOutputProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol<_i1.Unit, _i1.Unit, NoInputAndOutputOutput, - NoInputAndOutputOutput> _noInputAndOutputProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + _i1.Unit, + _i1.Unit, + NoInputAndOutputOutput, + NoInputAndOutputOutput + > + _noInputAndOutputProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersClientProtocol = - _i2.RestXmlProtocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersClientProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo, - NullAndEmptyHeadersIoPayload, - NullAndEmptyHeadersIo> _nullAndEmptyHeadersServerProtocol = - _i2.RestXmlProtocol( + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo, + NullAndEmptyHeadersIoPayload, + NullAndEmptyHeadersIo + > + _nullAndEmptyHeadersServerProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - OmitsNullSerializesEmptyStringInputPayload, - OmitsNullSerializesEmptyStringInput, - _i1.Unit, - _i1.Unit> _omitsNullSerializesEmptyStringProtocol = _i2.RestXmlProtocol( + OmitsNullSerializesEmptyStringInputPayload, + OmitsNullSerializesEmptyStringInput, + _i1.Unit, + _i1.Unit + > + _omitsNullSerializesEmptyStringProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - PutWithContentEncodingInputPayload, - PutWithContentEncodingInput, - _i1.Unit, - _i1.Unit> _putWithContentEncodingProtocol = _i2.RestXmlProtocol( + PutWithContentEncodingInputPayload, + PutWithContentEncodingInput, + _i1.Unit, + _i1.Unit + > + _putWithContentEncodingProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - QueryIdempotencyTokenAutoFillInputPayload, - QueryIdempotencyTokenAutoFillInput, - _i1.Unit, - _i1.Unit> _queryIdempotencyTokenAutoFillProtocol = _i2.RestXmlProtocol( + QueryIdempotencyTokenAutoFillInputPayload, + QueryIdempotencyTokenAutoFillInput, + _i1.Unit, + _i1.Unit + > + _queryIdempotencyTokenAutoFillProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - QueryParamsAsStringListMapInputPayload, - QueryParamsAsStringListMapInput, - _i1.Unit, - _i1.Unit> _queryParamsAsStringListMapProtocol = _i2.RestXmlProtocol( + QueryParamsAsStringListMapInputPayload, + QueryParamsAsStringListMapInput, + _i1.Unit, + _i1.Unit + > + _queryParamsAsStringListMapProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); - late final _i1.HttpProtocol _queryPrecedenceProtocol = _i2.RestXmlProtocol( + late final _i1.HttpProtocol< + QueryPrecedenceInputPayload, + QueryPrecedenceInput, + _i1.Unit, + _i1.Unit + > + _queryPrecedenceProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput, - RecursiveShapesInputOutput> _recursiveShapesProtocol = - _i2.RestXmlProtocol( + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput, + RecursiveShapesInputOutput + > + _recursiveShapesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.RestXmlProtocol( + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo, - TimestampFormatHeadersIoPayload, - TimestampFormatHeadersIo> _timestampFormatHeadersProtocol = - _i2.RestXmlProtocol( + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo, + TimestampFormatHeadersIoPayload, + TimestampFormatHeadersIo + > + _timestampFormatHeadersProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput, - XmlAttributesInputOutput> _xmlAttributesProtocol = _i2.RestXmlProtocol( + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput, + XmlAttributesInputOutput + > + _xmlAttributesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput, - XmlAttributesInputOutput, - XmlAttributesOnPayloadInputOutput> _xmlAttributesOnPayloadProtocol = - _i2.RestXmlProtocol( + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput, + XmlAttributesInputOutput, + XmlAttributesOnPayloadInputOutput + > + _xmlAttributesOnPayloadProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput> _xmlBlobsProtocol = _i2.RestXmlProtocol( + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + _xmlBlobsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput, - XmlBlobsInputOutput> _xmlEmptyBlobsProtocol = _i2.RestXmlProtocol( + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput, + XmlBlobsInputOutput + > + _xmlEmptyBlobsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput> _xmlEmptyListsProtocol = _i2.RestXmlProtocol( + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + _xmlEmptyListsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput> _xmlEmptyMapsProtocol = _i2.RestXmlProtocol( + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + _xmlEmptyMapsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput, - XmlEmptyStringsInputOutput> _xmlEmptyStringsProtocol = - _i2.RestXmlProtocol( + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput, + XmlEmptyStringsInputOutput + > + _xmlEmptyStringsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlEnumsInputOutput, - XmlEnumsInputOutput, - XmlEnumsInputOutput, - XmlEnumsInputOutput> _xmlEnumsProtocol = _i2.RestXmlProtocol( + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput, + XmlEnumsInputOutput + > + _xmlEnumsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlIntEnumsInputOutput, - XmlIntEnumsInputOutput, - XmlIntEnumsInputOutput, - XmlIntEnumsInputOutput> _xmlIntEnumsProtocol = _i2.RestXmlProtocol( + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput, + XmlIntEnumsInputOutput + > + _xmlIntEnumsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput, - XmlListsInputOutput> _xmlListsProtocol = _i2.RestXmlProtocol( + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput, + XmlListsInputOutput + > + _xmlListsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput, - XmlMapsInputOutput> _xmlMapsProtocol = _i2.RestXmlProtocol( + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput, + XmlMapsInputOutput + > + _xmlMapsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput, - XmlMapsXmlNameInputOutput> _xmlMapsXmlNameProtocol = _i2.RestXmlProtocol( + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput, + XmlMapsXmlNameInputOutput + > + _xmlMapsXmlNameProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput, - XmlNamespacesInputOutput> _xmlNamespacesProtocol = _i2.RestXmlProtocol( + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput, + XmlNamespacesInputOutput + > + _xmlNamespacesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput, - XmlTimestampsInputOutput> _xmlTimestampsProtocol = _i2.RestXmlProtocol( + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput, + XmlTimestampsInputOutput + > + _xmlTimestampsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, ); late final _i1.HttpProtocol< - XmlUnionsInputOutput, - XmlUnionsInputOutput, - XmlUnionsInputOutput, - XmlUnionsInputOutput> _xmlUnionsProtocol = _i2.RestXmlProtocol( + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput, + XmlUnionsInputOutput + > + _xmlUnionsProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, @@ -1180,25 +1169,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _allQueryStringTypesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(AllQueryStringTypesInputPayload), - ) as AllQueryStringTypesInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(AllQueryStringTypesInputPayload), + ) + as AllQueryStringTypesInputPayload); final input = AllQueryStringTypesInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.allQueryStringTypes( - input, - context, - ); + final output = await service.allQueryStringTypes(input, context); const statusCode = 200; final body = await _allQueryStringTypesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1206,10 +1190,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1221,25 +1202,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _bodyWithXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(BodyWithXmlNameInputOutput), - ) as BodyWithXmlNameInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(BodyWithXmlNameInputOutput), + ) + as BodyWithXmlNameInputOutput); final input = BodyWithXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.bodyWithXmlName( - input, - context, - ); + final output = await service.bodyWithXmlName(input, context); const statusCode = 200; final body = await _bodyWithXmlNameProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - BodyWithXmlNameInputOutput, - [FullType(BodyWithXmlNameInputOutput)], - ), + specifiedType: const FullType(BodyWithXmlNameInputOutput, [ + FullType(BodyWithXmlNameInputOutput), + ]), ); return _i4.Response( statusCode, @@ -1247,27 +1225,27 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> constantAndVariableQueryString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _constantAndVariableQueryStringProtocol.contentType; try { - final payload = (await _constantAndVariableQueryStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(ConstantAndVariableQueryStringInputPayload), - ) as ConstantAndVariableQueryStringInputPayload); + final payload = + (await _constantAndVariableQueryStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + ConstantAndVariableQueryStringInputPayload, + ), + ) + as ConstantAndVariableQueryStringInputPayload); final input = ConstantAndVariableQueryStringInput.fromRequest( payload, awsRequest, @@ -1280,22 +1258,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _constantAndVariableQueryStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1310,25 +1282,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _constantQueryStringProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ConstantQueryStringInputPayload), - ) as ConstantQueryStringInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(ConstantQueryStringInputPayload), + ) + as ConstantQueryStringInputPayload); final input = ConstantQueryStringInput.fromRequest( payload, awsRequest, labels: {'hello': hello}, ); - final output = await service.constantQueryString( - input, - context, - ); + final output = await service.constantQueryString(input, context); const statusCode = 200; final body = await _constantQueryStringProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1336,10 +1303,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1351,21 +1315,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _datetimeOffsetsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.datetimeOffsets( - input, - context, - ); + final output = await service.datetimeOffsets(input, context); const statusCode = 200; final body = await _datetimeOffsetsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DatetimeOffsetsOutput, - [FullType(DatetimeOffsetsOutput)], - ), + specifiedType: const FullType(DatetimeOffsetsOutput, [ + FullType(DatetimeOffsetsOutput), + ]), ); return _i4.Response( statusCode, @@ -1373,10 +1334,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1388,37 +1346,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _emptyInputAndEmptyOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(EmptyInputAndEmptyOutputInput), - ) as EmptyInputAndEmptyOutputInput); + await awsRequest.bodyBytes, + specifiedType: const FullType(EmptyInputAndEmptyOutputInput), + ) + as EmptyInputAndEmptyOutputInput); final input = EmptyInputAndEmptyOutputInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.emptyInputAndEmptyOutput( - input, - context, - ); + final output = await service.emptyInputAndEmptyOutput(input, context); const statusCode = 200; - final body = - await _emptyInputAndEmptyOutputProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - EmptyInputAndEmptyOutputOutput, - [FullType(EmptyInputAndEmptyOutputOutput)], - ), - ); + final body = await _emptyInputAndEmptyOutputProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(EmptyInputAndEmptyOutputOutput, [ + FullType(EmptyInputAndEmptyOutputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1430,21 +1382,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _endpointOperationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.endpointOperation( - input, - context, - ); + final output = await service.endpointOperation(input, context); const statusCode = 200; final body = await _endpointOperationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -1452,26 +1399,25 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelHeaderOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelHeaderOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelHeaderOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelHeaderInputPayload), - ) as HostLabelHeaderInputPayload); + final payload = + (await _endpointWithHostLabelHeaderOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelHeaderInputPayload), + ) + as HostLabelHeaderInputPayload); final input = HostLabelHeaderInput.fromRequest( payload, awsRequest, @@ -1485,43 +1431,35 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _endpointWithHostLabelHeaderOperationProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> endpointWithHostLabelOperation( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _endpointWithHostLabelOperationProtocol.contentType; try { - final payload = (await _endpointWithHostLabelOperationProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HostLabelInput), - ) as HostLabelInput); - final input = HostLabelInput.fromRequest( - payload, - awsRequest, - labels: {}, - ); + final payload = + (await _endpointWithHostLabelOperationProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(HostLabelInput), + ) + as HostLabelInput); + final input = HostLabelInput.fromRequest(payload, awsRequest, labels: {}); final output = await service.endpointWithHostLabelOperation( input, context, @@ -1529,22 +1467,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _endpointWithHostLabelOperationProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1556,25 +1488,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _flattenedXmlMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(FlattenedXmlMapInputOutput), - ) as FlattenedXmlMapInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(FlattenedXmlMapInputOutput), + ) + as FlattenedXmlMapInputOutput); final input = FlattenedXmlMapInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.flattenedXmlMap( - input, - context, - ); + final output = await service.flattenedXmlMap(input, context); const statusCode = 200; final body = await _flattenedXmlMapProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FlattenedXmlMapInputOutput, - [FullType(FlattenedXmlMapInputOutput)], - ), + specifiedType: const FullType(FlattenedXmlMapInputOutput, [ + FullType(FlattenedXmlMapInputOutput), + ]), ); return _i4.Response( statusCode, @@ -1582,15 +1511,13 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> flattenedXmlMapWithXmlName( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -1598,53 +1525,52 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _flattenedXmlMapWithXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(FlattenedXmlMapWithXmlNameInputOutput), - ) as FlattenedXmlMapWithXmlNameInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType( + FlattenedXmlMapWithXmlNameInputOutput, + ), + ) + as FlattenedXmlMapWithXmlNameInputOutput); final input = FlattenedXmlMapWithXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.flattenedXmlMapWithXmlName( - input, - context, - ); + final output = await service.flattenedXmlMapWithXmlName(input, context); const statusCode = 200; - final body = - await _flattenedXmlMapWithXmlNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - FlattenedXmlMapWithXmlNameInputOutput, - [FullType(FlattenedXmlMapWithXmlNameInputOutput)], - ), - ); + final body = await _flattenedXmlMapWithXmlNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + FlattenedXmlMapWithXmlNameInputOutput, + [FullType(FlattenedXmlMapWithXmlNameInputOutput)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> flattenedXmlMapWithXmlNamespace( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _flattenedXmlMapWithXmlNamespaceProtocol.contentType; try { - final payload = (await _flattenedXmlMapWithXmlNamespaceProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _flattenedXmlMapWithXmlNamespaceProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; final output = await service.flattenedXmlMapWithXmlNamespace( input, @@ -1653,22 +1579,19 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _flattenedXmlMapWithXmlNamespaceProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - FlattenedXmlMapWithXmlNamespaceOutput, - [FullType(FlattenedXmlMapWithXmlNamespaceOutput)], - ), - ); + output, + specifiedType: const FullType( + FlattenedXmlMapWithXmlNamespaceOutput, + [FullType(FlattenedXmlMapWithXmlNamespaceOutput)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1680,21 +1603,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _fractionalSecondsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.fractionalSeconds( - input, - context, - ); + final output = await service.fractionalSeconds(input, context); const statusCode = 200; final body = await _fractionalSecondsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - FractionalSecondsOutput, - [FullType(FractionalSecondsOutput)], - ), + specifiedType: const FullType(FractionalSecondsOutput, [ + FullType(FractionalSecondsOutput), + ]), ); return _i4.Response( statusCode, @@ -1702,10 +1622,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1717,21 +1634,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _greetingWithErrorsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.greetingWithErrors( - input, - context, - ); + final output = await service.greetingWithErrors(input, context); const statusCode = 200; final body = await _greetingWithErrorsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GreetingWithErrorsOutput, - [FullType(GreetingWithErrorsOutputPayload)], - ), + specifiedType: const FullType(GreetingWithErrorsOutput, [ + FullType(GreetingWithErrorsOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -1742,10 +1656,9 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'ComplexError'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - ComplexError, - [FullType(ComplexErrorPayload)], - ), + specifiedType: const FullType(ComplexError, [ + FullType(ComplexErrorPayload), + ]), ); const statusCode = 403; return _i4.Response( @@ -1757,10 +1670,9 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'InvalidGreeting'; final body = _greetingWithErrorsProtocol.wireSerializer.serialize( e, - specifiedType: const FullType( - InvalidGreeting, - [FullType(InvalidGreeting)], - ), + specifiedType: const FullType(InvalidGreeting, [ + FullType(InvalidGreeting), + ]), ); const statusCode = 400; return _i4.Response( @@ -1769,10 +1681,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1784,28 +1693,25 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPayloadTraitsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpPayloadTraitsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadTraits( - input, - context, - ); + final output = await service.httpPayloadTraits(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _httpPayloadTraitsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPayloadTraitsInputOutput, - [FullType.nullable(_i5.Uint8List)], - ), + specifiedType: const FullType(HttpPayloadTraitsInputOutput, [ + FullType.nullable(_i5.Uint8List), + ]), ); return _i4.Response( statusCode, @@ -1813,26 +1719,25 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadTraitsWithMediaType( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadTraitsWithMediaTypeProtocol.contentType; try { - final payload = (await _httpPayloadTraitsWithMediaTypeProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(_i5.Uint8List), - ) as _i5.Uint8List?); + final payload = + (await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(_i5.Uint8List), + ) + as _i5.Uint8List?); final input = HttpPayloadTraitsWithMediaTypeInputOutput.fromRequest( payload, awsRequest, @@ -1848,66 +1753,59 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _httpPayloadTraitsWithMediaTypeProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - HttpPayloadTraitsWithMediaTypeInputOutput, - [FullType.nullable(_i5.Uint8List)], - ), - ); + output, + specifiedType: const FullType( + HttpPayloadTraitsWithMediaTypeInputOutput, + [FullType.nullable(_i5.Uint8List)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadWithMemberXmlName( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadWithMemberXmlNameProtocol.contentType; try { - final payload = (await _httpPayloadWithMemberXmlNameProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadWithXmlName), - ) as PayloadWithXmlName?); + final payload = + (await _httpPayloadWithMemberXmlNameProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(PayloadWithXmlName), + ) + as PayloadWithXmlName?); final input = HttpPayloadWithMemberXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithMemberXmlName( - input, - context, - ); + final output = await service.httpPayloadWithMemberXmlName(input, context); const statusCode = 200; - final body = - await _httpPayloadWithMemberXmlNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithMemberXmlNameInputOutput, - [FullType.nullable(PayloadWithXmlName)], - ), - ); + final body = await _httpPayloadWithMemberXmlNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + HttpPayloadWithMemberXmlNameInputOutput, + [FullType.nullable(PayloadWithXmlName)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1919,37 +1817,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPayloadWithStructureProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(NestedPayload), - ) as NestedPayload?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(NestedPayload), + ) + as NestedPayload?); final input = HttpPayloadWithStructureInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithStructure( - input, - context, - ); + final output = await service.httpPayloadWithStructure(input, context); const statusCode = 200; - final body = - await _httpPayloadWithStructureProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithStructureInputOutput, - [FullType.nullable(NestedPayload)], - ), - ); + final body = await _httpPayloadWithStructureProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPayloadWithStructureInputOutput, [ + FullType.nullable(NestedPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -1961,97 +1853,93 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPayloadWithXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadWithXmlName), - ) as PayloadWithXmlName?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable(PayloadWithXmlName), + ) + as PayloadWithXmlName?); final input = HttpPayloadWithXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithXmlName( - input, - context, - ); + final output = await service.httpPayloadWithXmlName(input, context); const statusCode = 200; - final body = - await _httpPayloadWithXmlNameProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithXmlNameInputOutput, - [FullType.nullable(PayloadWithXmlName)], - ), - ); + final body = await _httpPayloadWithXmlNameProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(HttpPayloadWithXmlNameInputOutput, [ + FullType.nullable(PayloadWithXmlName), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadWithXmlNamespace( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadWithXmlNamespaceProtocol.contentType; try { - final payload = (await _httpPayloadWithXmlNamespaceProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(PayloadWithXmlNamespace), - ) as PayloadWithXmlNamespace?); + final payload = + (await _httpPayloadWithXmlNamespaceProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable( + PayloadWithXmlNamespace, + ), + ) + as PayloadWithXmlNamespace?); final input = HttpPayloadWithXmlNamespaceInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPayloadWithXmlNamespace( - input, - context, - ); + final output = await service.httpPayloadWithXmlNamespace(input, context); const statusCode = 200; - final body = - await _httpPayloadWithXmlNamespaceProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - HttpPayloadWithXmlNamespaceInputOutput, - [FullType.nullable(PayloadWithXmlNamespace)], - ), - ); + final body = await _httpPayloadWithXmlNamespaceProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType( + HttpPayloadWithXmlNamespaceInputOutput, + [FullType.nullable(PayloadWithXmlNamespace)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> httpPayloadWithXmlNamespaceAndPrefix( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _httpPayloadWithXmlNamespaceAndPrefixProtocol.contentType; try { - final payload = (await _httpPayloadWithXmlNamespaceAndPrefixProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType.nullable(PayloadWithXmlNamespaceAndPrefix), - ) as PayloadWithXmlNamespaceAndPrefix?); + final payload = + (await _httpPayloadWithXmlNamespaceAndPrefixProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable( + PayloadWithXmlNamespaceAndPrefix, + ), + ) + as PayloadWithXmlNamespaceAndPrefix?); final input = HttpPayloadWithXmlNamespaceAndPrefixInputOutput.fromRequest( payload, awsRequest, @@ -2065,22 +1953,19 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _httpPayloadWithXmlNamespaceAndPrefixProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - HttpPayloadWithXmlNamespaceAndPrefixInputOutput, - [FullType.nullable(PayloadWithXmlNamespaceAndPrefix)], - ), - ); + output, + specifiedType: const FullType( + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + [FullType.nullable(PayloadWithXmlNamespaceAndPrefix)], + ), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2092,28 +1977,27 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpPrefixHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpPrefixHeadersInputOutputPayload), - ) as HttpPrefixHeadersInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpPrefixHeadersInputOutputPayload, + ), + ) + as HttpPrefixHeadersInputOutputPayload); final input = HttpPrefixHeadersInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.httpPrefixHeaders( - input, - context, - ); + final output = await service.httpPrefixHeaders(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; final body = await _httpPrefixHeadersProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpPrefixHeadersInputOutput, - [FullType(HttpPrefixHeadersInputOutputPayload)], - ), + specifiedType: const FullType(HttpPrefixHeadersInputOutput, [ + FullType(HttpPrefixHeadersInputOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2121,10 +2005,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2140,40 +2021,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpRequestWithFloatLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithFloatLabelsInputPayload), - ) as HttpRequestWithFloatLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithFloatLabelsInputPayload, + ), + ) + as HttpRequestWithFloatLabelsInputPayload); final input = HttpRequestWithFloatLabelsInput.fromRequest( payload, awsRequest, - labels: { - 'float': float, - 'double': double, - }, - ); - final output = await service.httpRequestWithFloatLabels( - input, - context, + labels: {'float': float, 'double': double}, ); + final output = await service.httpRequestWithFloatLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithFloatLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithFloatLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2187,20 +2059,19 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _httpRequestWithGreedyLabelInPathProtocol.contentType; try { - final payload = (await _httpRequestWithGreedyLabelInPathProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithGreedyLabelInPathInputPayload), - ) as HttpRequestWithGreedyLabelInPathInputPayload); + final payload = + (await _httpRequestWithGreedyLabelInPathProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithGreedyLabelInPathInputPayload, + ), + ) + as HttpRequestWithGreedyLabelInPathInputPayload); final input = HttpRequestWithGreedyLabelInPathInput.fromRequest( payload, awsRequest, - labels: { - 'foo': foo, - 'baz': baz, - }, + labels: {'foo': foo, 'baz': baz}, ); final output = await service.httpRequestWithGreedyLabelInPath( input, @@ -2210,22 +2081,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _httpRequestWithGreedyLabelInPathProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2247,9 +2112,12 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpRequestWithLabelsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(HttpRequestWithLabelsInputPayload), - ) as HttpRequestWithLabelsInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsInputPayload, + ), + ) + as HttpRequestWithLabelsInputPayload); final input = HttpRequestWithLabelsInput.fromRequest( payload, awsRequest, @@ -2264,29 +2132,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { 'timestamp': timestamp, }, ); - final output = await service.httpRequestWithLabels( - input, - context, - ); + final output = await service.httpRequestWithLabels(input, context); const statusCode = 200; - final body = - await _httpRequestWithLabelsProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _httpRequestWithLabelsProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2305,13 +2164,15 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _httpRequestWithLabelsAndTimestampFormatProtocol.contentType; try { - final payload = (await _httpRequestWithLabelsAndTimestampFormatProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(HttpRequestWithLabelsAndTimestampFormatInputPayload), - ) as HttpRequestWithLabelsAndTimestampFormatInputPayload); + final payload = + (await _httpRequestWithLabelsAndTimestampFormatProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + HttpRequestWithLabelsAndTimestampFormatInputPayload, + ), + ) + as HttpRequestWithLabelsAndTimestampFormatInputPayload); final input = HttpRequestWithLabelsAndTimestampFormatInput.fromRequest( payload, awsRequest, @@ -2333,22 +2194,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final body = await _httpRequestWithLabelsAndTimestampFormatProtocol .wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2360,21 +2215,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _httpResponseCodeProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.httpResponseCode( - input, - context, - ); + final output = await service.httpResponseCode(input, context); const statusCode = 200; final body = await _httpResponseCodeProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - HttpResponseCodeOutput, - [FullType(HttpResponseCodeOutputPayload)], - ), + specifiedType: const FullType(HttpResponseCodeOutput, [ + FullType(HttpResponseCodeOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -2382,54 +2234,48 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> ignoreQueryParamsInResponse( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _ignoreQueryParamsInResponseProtocol.contentType; try { - final payload = (await _ignoreQueryParamsInResponseProtocol.wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + final payload = + (await _ignoreQueryParamsInResponseProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.ignoreQueryParamsInResponse( - input, - context, - ); + final output = await service.ignoreQueryParamsInResponse(input, context); const statusCode = 200; - final body = - await _ignoreQueryParamsInResponseProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - IgnoreQueryParamsInResponseOutput, - [FullType(IgnoreQueryParamsInResponseOutput)], - ), - ); + final body = await _ignoreQueryParamsInResponseProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(IgnoreQueryParamsInResponseOutput, [ + FullType(IgnoreQueryParamsInResponseOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> inputAndOutputWithHeaders( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2437,18 +2283,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _inputAndOutputWithHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(InputAndOutputWithHeadersIoPayload), - ) as InputAndOutputWithHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + InputAndOutputWithHeadersIoPayload, + ), + ) + as InputAndOutputWithHeadersIoPayload); final input = InputAndOutputWithHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.inputAndOutputWithHeaders( - input, - context, - ); + final output = await service.inputAndOutputWithHeaders(input, context); if (output.headerString != null) { context.response.headers['X-String'] = output.headerString!; } @@ -2504,13 +2350,13 @@ class _RestXmlProtocolServer extends _i1.HttpServer { if (output.headerTimestampList != null) { context.response.headers['X-TimestampList'] = output .headerTimestampList! - .map((el) => _i1.Timestamp(el) - .format(_i1.TimestampFormat.httpDate) - .toString()) - .map((el) => _i1.sanitizeHeader( - el, - isTimestampList: true, - )) + .map( + (el) => + _i1.Timestamp( + el, + ).format(_i1.TimestampFormat.httpDate).toString(), + ) + .map((el) => _i1.sanitizeHeader(el, isTimestampList: true)) .join(', '); } if (output.headerEnum != null) { @@ -2523,24 +2369,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { .join(', '); } const statusCode = 200; - final body = - await _inputAndOutputWithHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - InputAndOutputWithHeadersIo, - [FullType(InputAndOutputWithHeadersIoPayload)], - ), - ); + final body = await _inputAndOutputWithHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(InputAndOutputWithHeadersIo, [ + FullType(InputAndOutputWithHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2550,26 +2392,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _nestedXmlMapsProtocol.contentType; try { - final payload = (await _nestedXmlMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NestedXmlMapsInputOutput), - ) as NestedXmlMapsInputOutput); + final payload = + (await _nestedXmlMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(NestedXmlMapsInputOutput), + ) + as NestedXmlMapsInputOutput); final input = NestedXmlMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nestedXmlMaps( - input, - context, - ); + final output = await service.nestedXmlMaps(input, context); const statusCode = 200; final body = await _nestedXmlMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NestedXmlMapsInputOutput, - [FullType(NestedXmlMapsInputOutput)], - ), + specifiedType: const FullType(NestedXmlMapsInputOutput, [ + FullType(NestedXmlMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -2577,10 +2417,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2592,21 +2429,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _noInputAndNoOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndNoOutput( - input, - context, - ); + final output = await service.noInputAndNoOutput(input, context); const statusCode = 200; final body = await _noInputAndNoOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -2614,10 +2446,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2629,21 +2458,18 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _noInputAndOutputProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(_i1.Unit), - ) as _i1.Unit); + await awsRequest.bodyBytes, + specifiedType: const FullType(_i1.Unit), + ) + as _i1.Unit); final input = payload; - final output = await service.noInputAndOutput( - input, - context, - ); + final output = await service.noInputAndOutput(input, context); const statusCode = 200; final body = await _noInputAndOutputProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - NoInputAndOutputOutput, - [FullType(NoInputAndOutputOutput)], - ), + specifiedType: const FullType(NoInputAndOutputOutput, [ + FullType(NoInputAndOutputOutput), + ]), ); return _i4.Response( statusCode, @@ -2651,15 +2477,13 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersClient( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2667,18 +2491,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _nullAndEmptyHeadersClientProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersClient( - input, - context, - ); + final output = await service.nullAndEmptyHeadersClient(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -2686,33 +2508,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersClientProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersClientProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> nullAndEmptyHeadersServer( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2720,18 +2540,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _nullAndEmptyHeadersServerProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(NullAndEmptyHeadersIoPayload), - ) as NullAndEmptyHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(NullAndEmptyHeadersIoPayload), + ) + as NullAndEmptyHeadersIoPayload); final input = NullAndEmptyHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.nullAndEmptyHeadersServer( - input, - context, - ); + final output = await service.nullAndEmptyHeadersServer(input, context); if (output.a != null) { context.response.headers['X-A'] = output.a!; } @@ -2739,45 +2557,45 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['X-B'] = output.b!; } if (output.c != null) { - context.response.headers['X-C'] = - output.c!.map((el) => _i1.sanitizeHeader(el)).join(', '); + context.response.headers['X-C'] = output.c! + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); } const statusCode = 200; - final body = - await _nullAndEmptyHeadersServerProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - NullAndEmptyHeadersIo, - [FullType(NullAndEmptyHeadersIoPayload)], - ), - ); + final body = await _nullAndEmptyHeadersServerProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(NullAndEmptyHeadersIo, [ + FullType(NullAndEmptyHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> omitsNullSerializesEmptyString( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _omitsNullSerializesEmptyStringProtocol.contentType; try { - final payload = (await _omitsNullSerializesEmptyStringProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(OmitsNullSerializesEmptyStringInputPayload), - ) as OmitsNullSerializesEmptyStringInputPayload); + final payload = + (await _omitsNullSerializesEmptyStringProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + OmitsNullSerializesEmptyStringInputPayload, + ), + ) + as OmitsNullSerializesEmptyStringInputPayload); final input = OmitsNullSerializesEmptyStringInput.fromRequest( payload, awsRequest, @@ -2790,22 +2608,16 @@ class _RestXmlProtocolServer extends _i1.HttpServer { const statusCode = 200; final body = await _omitsNullSerializesEmptyStringProtocol.wireSerializer .serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2817,54 +2629,51 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _putWithContentEncodingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(PutWithContentEncodingInputPayload), - ) as PutWithContentEncodingInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + PutWithContentEncodingInputPayload, + ), + ) + as PutWithContentEncodingInputPayload); final input = PutWithContentEncodingInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.putWithContentEncoding( - input, - context, - ); + final output = await service.putWithContentEncoding(input, context); const statusCode = 200; - final body = - await _putWithContentEncodingProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _putWithContentEncodingProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryIdempotencyTokenAutoFill( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _queryIdempotencyTokenAutoFillProtocol.contentType; try { - final payload = (await _queryIdempotencyTokenAutoFillProtocol - .wireSerializer - .deserialize( - await awsRequest.bodyBytes, - specifiedType: - const FullType(QueryIdempotencyTokenAutoFillInputPayload), - ) as QueryIdempotencyTokenAutoFillInputPayload); + final payload = + (await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryIdempotencyTokenAutoFillInputPayload, + ), + ) + as QueryIdempotencyTokenAutoFillInputPayload); final input = QueryIdempotencyTokenAutoFillInput.fromRequest( payload, awsRequest, @@ -2875,29 +2684,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context, ); const statusCode = 200; - final body = - await _queryIdempotencyTokenAutoFillProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryIdempotencyTokenAutoFillProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } _i3.Future<_i4.Response> queryParamsAsStringListMap( - _i4.Request request) async { + _i4.Request request, + ) async { final awsRequest = request.awsRequest; final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = @@ -2905,37 +2709,31 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _queryParamsAsStringListMapProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryParamsAsStringListMapInputPayload), - ) as QueryParamsAsStringListMapInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + QueryParamsAsStringListMapInputPayload, + ), + ) + as QueryParamsAsStringListMapInputPayload); final input = QueryParamsAsStringListMapInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryParamsAsStringListMap( - input, - context, - ); + final output = await service.queryParamsAsStringListMap(input, context); const statusCode = 200; - final body = - await _queryParamsAsStringListMapProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), - ); + final body = await _queryParamsAsStringListMapProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2947,25 +2745,20 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _queryPrecedenceProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(QueryPrecedenceInputPayload), - ) as QueryPrecedenceInputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(QueryPrecedenceInputPayload), + ) + as QueryPrecedenceInputPayload); final input = QueryPrecedenceInput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.queryPrecedence( - input, - context, - ); + final output = await service.queryPrecedence(input, context); const statusCode = 200; final body = await _queryPrecedenceProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - _i1.Unit, - [FullType(_i1.Unit)], - ), + specifiedType: const FullType(_i1.Unit, [FullType(_i1.Unit)]), ); return _i4.Response( statusCode, @@ -2973,10 +2766,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -2988,25 +2778,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _recursiveShapesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(RecursiveShapesInputOutput), - ) as RecursiveShapesInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(RecursiveShapesInputOutput), + ) + as RecursiveShapesInputOutput); final input = RecursiveShapesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.recursiveShapes( - input, - context, - ); + final output = await service.recursiveShapes(input, context); const statusCode = 200; final body = await _recursiveShapesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - RecursiveShapesInputOutput, - [FullType(RecursiveShapesInputOutput)], - ), + specifiedType: const FullType(RecursiveShapesInputOutput, [ + FullType(RecursiveShapesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3014,10 +2801,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3029,40 +2813,36 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutputPayload), - ) as SimpleScalarPropertiesInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutputPayload, + ), + ) + as SimpleScalarPropertiesInputOutputPayload); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutputPayload)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3074,79 +2854,73 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _timestampFormatHeadersProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(TimestampFormatHeadersIoPayload), - ) as TimestampFormatHeadersIoPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(TimestampFormatHeadersIoPayload), + ) + as TimestampFormatHeadersIoPayload); final input = TimestampFormatHeadersIo.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.timestampFormatHeaders( - input, - context, - ); + final output = await service.timestampFormatHeaders(input, context); if (output.memberEpochSeconds != null) { context.response.headers['X-memberEpochSeconds'] = - _i1.Timestamp(output.memberEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.memberEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.memberHttpDate != null) { context.response.headers['X-memberHttpDate'] = - _i1.Timestamp(output.memberHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.memberHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.memberDateTime != null) { context.response.headers['X-memberDateTime'] = - _i1.Timestamp(output.memberDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.memberDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } if (output.defaultFormat != null) { context.response.headers['X-defaultFormat'] = - _i1.Timestamp(output.defaultFormat!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.defaultFormat!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetEpochSeconds != null) { context.response.headers['X-targetEpochSeconds'] = - _i1.Timestamp(output.targetEpochSeconds!) - .format(_i1.TimestampFormat.epochSeconds) - .toString(); + _i1.Timestamp( + output.targetEpochSeconds!, + ).format(_i1.TimestampFormat.epochSeconds).toString(); } if (output.targetHttpDate != null) { context.response.headers['X-targetHttpDate'] = - _i1.Timestamp(output.targetHttpDate!) - .format(_i1.TimestampFormat.httpDate) - .toString(); + _i1.Timestamp( + output.targetHttpDate!, + ).format(_i1.TimestampFormat.httpDate).toString(); } if (output.targetDateTime != null) { context.response.headers['X-targetDateTime'] = - _i1.Timestamp(output.targetDateTime!) - .format(_i1.TimestampFormat.dateTime) - .toString(); + _i1.Timestamp( + output.targetDateTime!, + ).format(_i1.TimestampFormat.dateTime).toString(); } const statusCode = 200; - final body = - await _timestampFormatHeadersProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - TimestampFormatHeadersIo, - [FullType(TimestampFormatHeadersIoPayload)], - ), - ); + final body = await _timestampFormatHeadersProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(TimestampFormatHeadersIo, [ + FullType(TimestampFormatHeadersIoPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3156,26 +2930,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlAttributesProtocol.contentType; try { - final payload = (await _xmlAttributesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlAttributesInputOutput), - ) as XmlAttributesInputOutput); + final payload = + (await _xmlAttributesProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlAttributesInputOutput), + ) + as XmlAttributesInputOutput); final input = XmlAttributesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlAttributes( - input, - context, - ); + final output = await service.xmlAttributes(input, context); const statusCode = 200; final body = await _xmlAttributesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlAttributesInputOutput, - [FullType(XmlAttributesInputOutput)], - ), + specifiedType: const FullType(XmlAttributesInputOutput, [ + FullType(XmlAttributesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3183,10 +2955,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3198,37 +2967,33 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _xmlAttributesOnPayloadProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType.nullable(XmlAttributesInputOutput), - ) as XmlAttributesInputOutput?); + await awsRequest.bodyBytes, + specifiedType: const FullType.nullable( + XmlAttributesInputOutput, + ), + ) + as XmlAttributesInputOutput?); final input = XmlAttributesOnPayloadInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlAttributesOnPayload( - input, - context, - ); + final output = await service.xmlAttributesOnPayload(input, context); const statusCode = 200; - final body = - await _xmlAttributesOnPayloadProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - XmlAttributesOnPayloadInputOutput, - [FullType.nullable(XmlAttributesInputOutput)], - ), - ); + final body = await _xmlAttributesOnPayloadProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(XmlAttributesOnPayloadInputOutput, [ + FullType.nullable(XmlAttributesInputOutput), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3237,26 +3002,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlBlobsProtocol.contentType; try { - final payload = (await _xmlBlobsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlBlobsInputOutput), - ) as XmlBlobsInputOutput); + final payload = + (await _xmlBlobsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlBlobsInputOutput), + ) + as XmlBlobsInputOutput); final input = XmlBlobsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlBlobs( - input, - context, - ); + final output = await service.xmlBlobs(input, context); const statusCode = 200; final body = await _xmlBlobsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlBlobsInputOutput, - [FullType(XmlBlobsInputOutput)], - ), + specifiedType: const FullType(XmlBlobsInputOutput, [ + FullType(XmlBlobsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3264,10 +3027,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3277,26 +3037,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlEmptyBlobsProtocol.contentType; try { - final payload = (await _xmlEmptyBlobsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlBlobsInputOutput), - ) as XmlBlobsInputOutput); + final payload = + (await _xmlEmptyBlobsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlBlobsInputOutput), + ) + as XmlBlobsInputOutput); final input = XmlBlobsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyBlobs( - input, - context, - ); + final output = await service.xmlEmptyBlobs(input, context); const statusCode = 200; final body = await _xmlEmptyBlobsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlBlobsInputOutput, - [FullType(XmlBlobsInputOutput)], - ), + specifiedType: const FullType(XmlBlobsInputOutput, [ + FullType(XmlBlobsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3304,10 +3062,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3317,26 +3072,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlEmptyListsProtocol.contentType; try { - final payload = (await _xmlEmptyListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlListsInputOutput), - ) as XmlListsInputOutput); + final payload = + (await _xmlEmptyListsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlListsInputOutput), + ) + as XmlListsInputOutput); final input = XmlListsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyLists( - input, - context, - ); + final output = await service.xmlEmptyLists(input, context); const statusCode = 200; final body = await _xmlEmptyListsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlListsInputOutput, - [FullType(XmlListsInputOutput)], - ), + specifiedType: const FullType(XmlListsInputOutput, [ + FullType(XmlListsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3344,10 +3097,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3357,26 +3107,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlEmptyMapsProtocol.contentType; try { - final payload = (await _xmlEmptyMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlMapsInputOutput), - ) as XmlMapsInputOutput); + final payload = + (await _xmlEmptyMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlMapsInputOutput), + ) + as XmlMapsInputOutput); final input = XmlMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyMaps( - input, - context, - ); + final output = await service.xmlEmptyMaps(input, context); const statusCode = 200; final body = await _xmlEmptyMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlMapsInputOutput, - [FullType(XmlMapsInputOutput)], - ), + specifiedType: const FullType(XmlMapsInputOutput, [ + FullType(XmlMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3384,10 +3132,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3399,25 +3144,22 @@ class _RestXmlProtocolServer extends _i1.HttpServer { try { final payload = (await _xmlEmptyStringsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlEmptyStringsInputOutput), - ) as XmlEmptyStringsInputOutput); + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlEmptyStringsInputOutput), + ) + as XmlEmptyStringsInputOutput); final input = XmlEmptyStringsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEmptyStrings( - input, - context, - ); + final output = await service.xmlEmptyStrings(input, context); const statusCode = 200; final body = await _xmlEmptyStringsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlEmptyStringsInputOutput, - [FullType(XmlEmptyStringsInputOutput)], - ), + specifiedType: const FullType(XmlEmptyStringsInputOutput, [ + FullType(XmlEmptyStringsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3425,10 +3167,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3437,26 +3176,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlEnumsProtocol.contentType; try { - final payload = (await _xmlEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlEnumsInputOutput), - ) as XmlEnumsInputOutput); + final payload = + (await _xmlEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlEnumsInputOutput), + ) + as XmlEnumsInputOutput); final input = XmlEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlEnums( - input, - context, - ); + final output = await service.xmlEnums(input, context); const statusCode = 200; final body = await _xmlEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlEnumsInputOutput, - [FullType(XmlEnumsInputOutput)], - ), + specifiedType: const FullType(XmlEnumsInputOutput, [ + FullType(XmlEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3464,10 +3201,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3476,26 +3210,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlIntEnumsProtocol.contentType; try { - final payload = (await _xmlIntEnumsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlIntEnumsInputOutput), - ) as XmlIntEnumsInputOutput); + final payload = + (await _xmlIntEnumsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlIntEnumsInputOutput), + ) + as XmlIntEnumsInputOutput); final input = XmlIntEnumsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlIntEnums( - input, - context, - ); + final output = await service.xmlIntEnums(input, context); const statusCode = 200; final body = await _xmlIntEnumsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlIntEnumsInputOutput, - [FullType(XmlIntEnumsInputOutput)], - ), + specifiedType: const FullType(XmlIntEnumsInputOutput, [ + FullType(XmlIntEnumsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3503,10 +3235,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3515,26 +3244,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlListsProtocol.contentType; try { - final payload = (await _xmlListsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlListsInputOutput), - ) as XmlListsInputOutput); + final payload = + (await _xmlListsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlListsInputOutput), + ) + as XmlListsInputOutput); final input = XmlListsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlLists( - input, - context, - ); + final output = await service.xmlLists(input, context); const statusCode = 200; final body = await _xmlListsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlListsInputOutput, - [FullType(XmlListsInputOutput)], - ), + specifiedType: const FullType(XmlListsInputOutput, [ + FullType(XmlListsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3542,10 +3269,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3554,26 +3278,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlMapsProtocol.contentType; try { - final payload = (await _xmlMapsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlMapsInputOutput), - ) as XmlMapsInputOutput); + final payload = + (await _xmlMapsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlMapsInputOutput), + ) + as XmlMapsInputOutput); final input = XmlMapsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlMaps( - input, - context, - ); + final output = await service.xmlMaps(input, context); const statusCode = 200; final body = await _xmlMapsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlMapsInputOutput, - [FullType(XmlMapsInputOutput)], - ), + specifiedType: const FullType(XmlMapsInputOutput, [ + FullType(XmlMapsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3581,10 +3303,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3594,26 +3313,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlMapsXmlNameProtocol.contentType; try { - final payload = (await _xmlMapsXmlNameProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlMapsXmlNameInputOutput), - ) as XmlMapsXmlNameInputOutput); + final payload = + (await _xmlMapsXmlNameProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlMapsXmlNameInputOutput), + ) + as XmlMapsXmlNameInputOutput); final input = XmlMapsXmlNameInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlMapsXmlName( - input, - context, - ); + final output = await service.xmlMapsXmlName(input, context); const statusCode = 200; final body = await _xmlMapsXmlNameProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlMapsXmlNameInputOutput, - [FullType(XmlMapsXmlNameInputOutput)], - ), + specifiedType: const FullType(XmlMapsXmlNameInputOutput, [ + FullType(XmlMapsXmlNameInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3621,10 +3338,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3634,26 +3348,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlNamespacesProtocol.contentType; try { - final payload = (await _xmlNamespacesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlNamespacesInputOutput), - ) as XmlNamespacesInputOutput); + final payload = + (await _xmlNamespacesProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlNamespacesInputOutput), + ) + as XmlNamespacesInputOutput); final input = XmlNamespacesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlNamespaces( - input, - context, - ); + final output = await service.xmlNamespaces(input, context); const statusCode = 200; final body = await _xmlNamespacesProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlNamespacesInputOutput, - [FullType(XmlNamespacesInputOutput)], - ), + specifiedType: const FullType(XmlNamespacesInputOutput, [ + FullType(XmlNamespacesInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3661,10 +3373,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3674,26 +3383,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { context.response.headers['Content-Type'] = _xmlTimestampsProtocol.contentType; try { - final payload = (await _xmlTimestampsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlTimestampsInputOutput), - ) as XmlTimestampsInputOutput); + final payload = + (await _xmlTimestampsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlTimestampsInputOutput), + ) + as XmlTimestampsInputOutput); final input = XmlTimestampsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlTimestamps( - input, - context, - ); + final output = await service.xmlTimestamps(input, context); const statusCode = 200; final body = await _xmlTimestampsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlTimestampsInputOutput, - [FullType(XmlTimestampsInputOutput)], - ), + specifiedType: const FullType(XmlTimestampsInputOutput, [ + FullType(XmlTimestampsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3701,10 +3408,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -3713,26 +3417,24 @@ class _RestXmlProtocolServer extends _i1.HttpServer { final context = _i1.Context(awsRequest); context.response.headers['Content-Type'] = _xmlUnionsProtocol.contentType; try { - final payload = (await _xmlUnionsProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(XmlUnionsInputOutput), - ) as XmlUnionsInputOutput); + final payload = + (await _xmlUnionsProtocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(XmlUnionsInputOutput), + ) + as XmlUnionsInputOutput); final input = XmlUnionsInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.xmlUnions( - input, - context, - ); + final output = await service.xmlUnions(input, context); const statusCode = 200; final body = await _xmlUnionsProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - XmlUnionsInputOutput, - [FullType(XmlUnionsInputOutput)], - ), + specifiedType: const FullType(XmlUnionsInputOutput, [ + FullType(XmlUnionsInputOutput), + ]), ); return _i4.Response( statusCode, @@ -3740,10 +3442,7 @@ class _RestXmlProtocolServer extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/endpoint_resolver.dart index 65a4c0ec55..73e8f5f2a4 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,10 +14,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -50,18 +47,22 @@ final _partitions = [ 'us-west-2', }, endpoints: const { - 'af-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.af-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-east-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'af-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.af-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-east-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-northeast-1': _i1.EndpointDefinition( hostname: 's3.ap-northeast-1.amazonaws.com', signatureVersions: [ @@ -72,27 +73,33 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-northeast-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'ap-northeast-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-northeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'ap-northeast-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-northeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-southeast-1': _i1.EndpointDefinition( hostname: 's3.ap-southeast-1.amazonaws.com', signatureVersions: [ @@ -103,7 +110,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'ap-southeast-2': _i1.EndpointDefinition( @@ -116,15 +123,17 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-2.amazonaws.com', tags: ['dualstack'], - ) + ), + ], + ), + 'ap-southeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', + tags: ['dualstack'], + ), ], ), - 'ap-southeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), 'aws-global': _i1.EndpointDefinition( hostname: 's3.amazonaws.com', signatureVersions: [ @@ -134,41 +143,46 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-east-1'), variants: [], ), - 'ca-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.ca-central-1.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ca-central-1.amazonaws.com', - tags: ['dualstack'], - ), - ]), - 'eu-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-central-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-north-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'ca-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.ca-central-1.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-north-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'eu-west-1': _i1.EndpointDefinition( hostname: 's3.eu-west-1.amazonaws.com', signatureVersions: [ @@ -179,21 +193,25 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.eu-west-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'eu-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-west-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'eu-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-west-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'fips-ca-central-1': _i1.EndpointDefinition( hostname: 's3-fips.ca-central-1.amazonaws.com', credentialScope: _i1.CredentialScope(region: 'ca-central-1'), @@ -219,12 +237,14 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-west-2'), variants: [], ), - 'me-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.me-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'me-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.me-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 's3-external-1': _i1.EndpointDefinition( hostname: 's3-external-1.amazonaws.com', signatureVersions: [ @@ -244,7 +264,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.sa-east-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'us-east-1': _i1.EndpointDefinition( @@ -256,10 +276,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-east-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-east-1.amazonaws.com', @@ -271,23 +288,22 @@ final _partitions = [ ), ], ), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.us-east-2.amazonaws.com', - tags: ['dualstack'], - ), - ]), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'us-west-1': _i1.EndpointDefinition( hostname: 's3.us-west-1.amazonaws.com', signatureVersions: [ @@ -297,10 +313,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-1.amazonaws.com', @@ -321,10 +334,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-2.amazonaws.com', @@ -345,10 +355,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com.cn', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -356,23 +363,24 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { - 'cn-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), - 'cn-northwest-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), + 'cn-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), + 'cn-northwest-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), }, ), _i1.Partition( @@ -390,16 +398,10 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const { 'us-iso-east-1': _i1.EndpointDefinition( - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.s3v4], variants: [], ), @@ -413,10 +415,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.sc2s.sgov.gov', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -443,10 +442,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-east-1': _i1.EndpointDefinition( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -460,10 +456,7 @@ final _partitions = [ ), 'us-gov-east-1': _i1.EndpointDefinition( hostname: 's3.us-gov-east-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -477,10 +470,7 @@ final _partitions = [ ), 'us-gov-west-1': _i1.EndpointDefinition( hostname: 's3.us-gov-west-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-west-1.amazonaws.com', @@ -496,7 +486,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'S3'; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/serializers.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/serializers.dart index f0ab456b85..8331edf599 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/serializers.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -58,19 +58,13 @@ const List<_i1.SmithySerializer> serializers = [ ...S3AddressingStyle.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(S3Object)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(CommonPrefix)], - ): _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(S3Object)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(CommonPrefix)]): + _i2.ListBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.dart index 17898dc2d5..b5df0dba2c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestXmlSerializer() + AwsConfigRestXmlSerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestXmlSerializer const AwsConfigRestXmlSerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestXmlSerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -119,24 +104,28 @@ class AwsConfigRestXmlSerializer const _i2.XmlElementName( 'AwsConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/bucket_location_constraint.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/bucket_location_constraint.dart index 3636f2cba2..20d6827c9c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/bucket_location_constraint.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/bucket_location_constraint.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.bucket_location_constraint; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,11 +7,7 @@ import 'package:smithy/smithy.dart' as _i1; class BucketLocationConstraint extends _i1.SmithyEnum { - const BucketLocationConstraint._( - super.index, - super.name, - super.value, - ); + const BucketLocationConstraint._(super.index, super.name, super.value); const BucketLocationConstraint._sdkUnknown(super.value) : super.sdkUnknown(); @@ -23,22 +19,19 @@ class BucketLocationConstraint /// All values of [BucketLocationConstraint]. static const values = [ - BucketLocationConstraint.usWest2 + BucketLocationConstraint.usWest2, ]; static const List<_i1.SmithySerializer> - serializers = [ + serializers = [ _i1.SmithyEnumSerializer( 'BucketLocationConstraint', values: values, sdkUnknown: BucketLocationConstraint._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.dart index 2381869a31..780481b165 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestXmlSerializer() + ClientConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestXmlSerializer const ClientConfigRestXmlSerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -189,7 +179,7 @@ class ClientConfigRestXmlSerializer const _i2.XmlElementName( 'ClientConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -198,63 +188,71 @@ class ClientConfigRestXmlSerializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/common_prefix.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/common_prefix.dart index 0c76280629..1f2944322a 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/common_prefix.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/common_prefix.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.common_prefix; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,7 +23,7 @@ abstract class CommonPrefix const CommonPrefix._(); static const List<_i2.SmithySerializer> serializers = [ - CommonPrefixRestXmlSerializer() + CommonPrefixRestXmlSerializer(), ]; String? get prefix; @@ -33,10 +33,7 @@ abstract class CommonPrefix @override String toString() { final helper = newBuiltValueToStringHelper('CommonPrefix') - ..add( - 'prefix', - prefix, - ); + ..add('prefix', prefix); return helper.toString(); } } @@ -46,18 +43,12 @@ class CommonPrefixRestXmlSerializer const CommonPrefixRestXmlSerializer() : super('CommonPrefix'); @override - Iterable get types => const [ - CommonPrefix, - _$CommonPrefix, - ]; + Iterable get types => const [CommonPrefix, _$CommonPrefix]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CommonPrefix deserialize( @@ -76,10 +67,12 @@ class CommonPrefixRestXmlSerializer } switch (key) { case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -96,16 +89,15 @@ class CommonPrefixRestXmlSerializer const _i2.XmlElementName( 'CommonPrefix', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CommonPrefix(:prefix) = object; if (prefix != null) { result$ ..add(const _i2.XmlElementName('Prefix')) - ..add(serializers.serialize( - prefix, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(prefix, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.dart index 798d251c1b..18f79d7740 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.delete_object_tagging_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,9 +21,9 @@ abstract class DeleteObjectTaggingOutput return _$DeleteObjectTaggingOutput._(versionId: versionId); } - factory DeleteObjectTaggingOutput.build( - [void Function(DeleteObjectTaggingOutputBuilder) updates]) = - _$DeleteObjectTaggingOutput; + factory DeleteObjectTaggingOutput.build([ + void Function(DeleteObjectTaggingOutputBuilder) updates, + ]) = _$DeleteObjectTaggingOutput; const DeleteObjectTaggingOutput._(); @@ -31,15 +31,14 @@ abstract class DeleteObjectTaggingOutput factory DeleteObjectTaggingOutput.fromResponse( DeleteObjectTaggingOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - DeleteObjectTaggingOutput.build((b) { - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - }); + ) => DeleteObjectTaggingOutput.build((b) { + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + }); static const List<_i2.SmithySerializer> - serializers = [DeleteObjectTaggingOutputRestXmlSerializer()]; + serializers = [DeleteObjectTaggingOutputRestXmlSerializer()]; String? get versionId; @override @@ -52,25 +51,23 @@ abstract class DeleteObjectTaggingOutput @override String toString() { final helper = newBuiltValueToStringHelper('DeleteObjectTaggingOutput') - ..add( - 'versionId', - versionId, - ); + ..add('versionId', versionId); return helper.toString(); } } @_i3.internal abstract class DeleteObjectTaggingOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutputPayloadBuilder + >, _i2.EmptyPayload { - factory DeleteObjectTaggingOutputPayload( - [void Function(DeleteObjectTaggingOutputPayloadBuilder) updates]) = - _$DeleteObjectTaggingOutputPayload; + factory DeleteObjectTaggingOutputPayload([ + void Function(DeleteObjectTaggingOutputPayloadBuilder) updates, + ]) = _$DeleteObjectTaggingOutputPayload; const DeleteObjectTaggingOutputPayload._(); @@ -79,8 +76,9 @@ abstract class DeleteObjectTaggingOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('DeleteObjectTaggingOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'DeleteObjectTaggingOutputPayload', + ); return helper.toString(); } } @@ -88,23 +86,20 @@ abstract class DeleteObjectTaggingOutputPayload class DeleteObjectTaggingOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const DeleteObjectTaggingOutputRestXmlSerializer() - : super('DeleteObjectTaggingOutput'); + : super('DeleteObjectTaggingOutput'); @override Iterable get types => const [ - DeleteObjectTaggingOutput, - _$DeleteObjectTaggingOutput, - DeleteObjectTaggingOutputPayload, - _$DeleteObjectTaggingOutputPayload, - ]; + DeleteObjectTaggingOutput, + _$DeleteObjectTaggingOutput, + DeleteObjectTaggingOutputPayload, + _$DeleteObjectTaggingOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingOutputPayload deserialize( @@ -125,7 +120,7 @@ class DeleteObjectTaggingOutputRestXmlSerializer const _i2.XmlElementName( 'DeleteObjectTaggingOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart index a2c8572e88..752ca9bb19 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_output.g.dart @@ -10,16 +10,16 @@ class _$DeleteObjectTaggingOutput extends DeleteObjectTaggingOutput { @override final String? versionId; - factory _$DeleteObjectTaggingOutput( - [void Function(DeleteObjectTaggingOutputBuilder)? updates]) => - (new DeleteObjectTaggingOutputBuilder()..update(updates))._build(); + factory _$DeleteObjectTaggingOutput([ + void Function(DeleteObjectTaggingOutputBuilder)? updates, + ]) => (new DeleteObjectTaggingOutputBuilder()..update(updates))._build(); _$DeleteObjectTaggingOutput._({this.versionId}) : super._(); @override DeleteObjectTaggingOutput rebuild( - void Function(DeleteObjectTaggingOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingOutputBuilder toBuilder() => @@ -84,16 +84,17 @@ class DeleteObjectTaggingOutputBuilder class _$DeleteObjectTaggingOutputPayload extends DeleteObjectTaggingOutputPayload { - factory _$DeleteObjectTaggingOutputPayload( - [void Function(DeleteObjectTaggingOutputPayloadBuilder)? updates]) => + factory _$DeleteObjectTaggingOutputPayload([ + void Function(DeleteObjectTaggingOutputPayloadBuilder)? updates, + ]) => (new DeleteObjectTaggingOutputPayloadBuilder()..update(updates))._build(); _$DeleteObjectTaggingOutputPayload._() : super._(); @override DeleteObjectTaggingOutputPayload rebuild( - void Function(DeleteObjectTaggingOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingOutputPayloadBuilder toBuilder() => @@ -113,8 +114,10 @@ class _$DeleteObjectTaggingOutputPayload class DeleteObjectTaggingOutputPayloadBuilder implements - Builder { + Builder< + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutputPayloadBuilder + > { _$DeleteObjectTaggingOutputPayload? _$v; DeleteObjectTaggingOutputPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.dart index cef5cb33f3..9810c6f39f 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.delete_object_tagging_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,9 +33,9 @@ abstract class DeleteObjectTaggingRequest ); } - factory DeleteObjectTaggingRequest.build( - [void Function(DeleteObjectTaggingRequestBuilder) updates]) = - _$DeleteObjectTaggingRequest; + factory DeleteObjectTaggingRequest.build([ + void Function(DeleteObjectTaggingRequestBuilder) updates, + ]) = _$DeleteObjectTaggingRequest; const DeleteObjectTaggingRequest._(); @@ -43,25 +43,23 @@ abstract class DeleteObjectTaggingRequest DeleteObjectTaggingRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - DeleteObjectTaggingRequest.build((b) { - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.queryParameters['versionId'] != null) { - b.versionId = request.queryParameters['versionId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => DeleteObjectTaggingRequest.build((b) { + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.queryParameters['versionId'] != null) { + b.versionId = request.queryParameters['versionId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [DeleteObjectTaggingRequestRestXmlSerializer()]; + serializers = [DeleteObjectTaggingRequestRestXmlSerializer()]; String get bucket; String get key; @@ -75,10 +73,7 @@ abstract class DeleteObjectTaggingRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -86,47 +81,32 @@ abstract class DeleteObjectTaggingRequest DeleteObjectTaggingRequestPayload(); @override - List get props => [ - bucket, - key, - versionId, - expectedBucketOwner, - ]; + List get props => [bucket, key, versionId, expectedBucketOwner]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeleteObjectTaggingRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('DeleteObjectTaggingRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('versionId', versionId) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @_i3.internal abstract class DeleteObjectTaggingRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequestPayloadBuilder + >, _i1.EmptyPayload { - factory DeleteObjectTaggingRequestPayload( - [void Function(DeleteObjectTaggingRequestPayloadBuilder) updates]) = - _$DeleteObjectTaggingRequestPayload; + factory DeleteObjectTaggingRequestPayload([ + void Function(DeleteObjectTaggingRequestPayloadBuilder) updates, + ]) = _$DeleteObjectTaggingRequestPayload; const DeleteObjectTaggingRequestPayload._(); @@ -135,8 +115,9 @@ abstract class DeleteObjectTaggingRequestPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('DeleteObjectTaggingRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'DeleteObjectTaggingRequestPayload', + ); return helper.toString(); } } @@ -144,23 +125,20 @@ abstract class DeleteObjectTaggingRequestPayload class DeleteObjectTaggingRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const DeleteObjectTaggingRequestRestXmlSerializer() - : super('DeleteObjectTaggingRequest'); + : super('DeleteObjectTaggingRequest'); @override Iterable get types => const [ - DeleteObjectTaggingRequest, - _$DeleteObjectTaggingRequest, - DeleteObjectTaggingRequestPayload, - _$DeleteObjectTaggingRequestPayload, - ]; + DeleteObjectTaggingRequest, + _$DeleteObjectTaggingRequest, + DeleteObjectTaggingRequestPayload, + _$DeleteObjectTaggingRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingRequestPayload deserialize( @@ -181,7 +159,7 @@ class DeleteObjectTaggingRequestRestXmlSerializer const _i1.XmlElementName( 'DeleteObjectTaggingRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart index 6988463011..7ce8c4e226 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/delete_object_tagging_request.g.dart @@ -16,26 +16,32 @@ class _$DeleteObjectTaggingRequest extends DeleteObjectTaggingRequest { @override final String? expectedBucketOwner; - factory _$DeleteObjectTaggingRequest( - [void Function(DeleteObjectTaggingRequestBuilder)? updates]) => - (new DeleteObjectTaggingRequestBuilder()..update(updates))._build(); - - _$DeleteObjectTaggingRequest._( - {required this.bucket, - required this.key, - this.versionId, - this.expectedBucketOwner}) - : super._() { + factory _$DeleteObjectTaggingRequest([ + void Function(DeleteObjectTaggingRequestBuilder)? updates, + ]) => (new DeleteObjectTaggingRequestBuilder()..update(updates))._build(); + + _$DeleteObjectTaggingRequest._({ + required this.bucket, + required this.key, + this.versionId, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectTaggingRequest', 'bucket'); + bucket, + r'DeleteObjectTaggingRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - key, r'DeleteObjectTaggingRequest', 'key'); + key, + r'DeleteObjectTaggingRequest', + 'key', + ); } @override DeleteObjectTaggingRequest rebuild( - void Function(DeleteObjectTaggingRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingRequestBuilder toBuilder() => @@ -114,14 +120,22 @@ class DeleteObjectTaggingRequestBuilder DeleteObjectTaggingRequest build() => _build(); _$DeleteObjectTaggingRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DeleteObjectTaggingRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectTaggingRequest', 'bucket'), - key: BuiltValueNullFieldError.checkNotNull( - key, r'DeleteObjectTaggingRequest', 'key'), - versionId: versionId, - expectedBucketOwner: expectedBucketOwner); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'DeleteObjectTaggingRequest', + 'bucket', + ), + key: BuiltValueNullFieldError.checkNotNull( + key, + r'DeleteObjectTaggingRequest', + 'key', + ), + versionId: versionId, + expectedBucketOwner: expectedBucketOwner, + ); replace(_$result); return _$result; } @@ -129,8 +143,9 @@ class DeleteObjectTaggingRequestBuilder class _$DeleteObjectTaggingRequestPayload extends DeleteObjectTaggingRequestPayload { - factory _$DeleteObjectTaggingRequestPayload( - [void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates]) => + factory _$DeleteObjectTaggingRequestPayload([ + void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates, + ]) => (new DeleteObjectTaggingRequestPayloadBuilder()..update(updates)) ._build(); @@ -138,8 +153,8 @@ class _$DeleteObjectTaggingRequestPayload @override DeleteObjectTaggingRequestPayload rebuild( - void Function(DeleteObjectTaggingRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectTaggingRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectTaggingRequestPayloadBuilder toBuilder() => @@ -159,8 +174,10 @@ class _$DeleteObjectTaggingRequestPayload class DeleteObjectTaggingRequestPayloadBuilder implements - Builder { + Builder< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequestPayloadBuilder + > { _$DeleteObjectTaggingRequestPayload? _$v; DeleteObjectTaggingRequestPayloadBuilder(); @@ -173,7 +190,8 @@ class DeleteObjectTaggingRequestPayloadBuilder @override void update( - void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates) { + void Function(DeleteObjectTaggingRequestPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/encoding_type.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/encoding_type.dart index cbddd11a65..dbd86284ef 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/encoding_type.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/encoding_type.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.encoding_type; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class EncodingType extends _i1.SmithyEnum { - const EncodingType._( - super.index, - super.name, - super.value, - ); + const EncodingType._(super.index, super.name, super.value); const EncodingType._sdkUnknown(super.value) : super.sdkUnknown(); - static const url = EncodingType._( - 0, - 'url', - 'url', - ); + static const url = EncodingType._(0, 'url', 'url'); /// All values of [EncodingType]. static const values = [EncodingType.url]; @@ -29,12 +21,9 @@ class EncodingType extends _i1.SmithyEnum { values: values, sdkUnknown: EncodingType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.dart index c2379f4f69..c986fec444 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestXmlSerializer() + EnvironmentConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestXmlSerializer const EnvironmentConfigRestXmlSerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestXmlSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -173,7 +163,7 @@ class EnvironmentConfigRestXmlSerializer const _i2.XmlElementName( 'EnvironmentConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -181,55 +171,67 @@ class EnvironmentConfigRestXmlSerializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.dart index e9c8b9f3c4..f32db24d41 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestXmlSerializer() + FileConfigSettingsRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestXmlSerializer const FileConfigSettingsRestXmlSerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -190,7 +179,7 @@ class FileConfigSettingsRestXmlSerializer const _i2.XmlElementName( 'FileConfigSettings', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -199,63 +188,71 @@ class FileConfigSettingsRestXmlSerializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.dart index 239835215a..88fe2d1055 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.get_bucket_location_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,15 @@ abstract class GetBucketLocationOutput implements Built, _i2.HasPayload { - factory GetBucketLocationOutput( - {BucketLocationConstraint? locationConstraint}) { + factory GetBucketLocationOutput({ + BucketLocationConstraint? locationConstraint, + }) { return _$GetBucketLocationOutput._(locationConstraint: locationConstraint); } - factory GetBucketLocationOutput.build( - [void Function(GetBucketLocationOutputBuilder) updates]) = - _$GetBucketLocationOutput; + factory GetBucketLocationOutput.build([ + void Function(GetBucketLocationOutputBuilder) updates, + ]) = _$GetBucketLocationOutput; const GetBucketLocationOutput._(); @@ -31,13 +32,12 @@ abstract class GetBucketLocationOutput factory GetBucketLocationOutput.fromResponse( BucketLocationConstraint? payload, _i1.AWSBaseHttpResponse response, - ) => - GetBucketLocationOutput.build((b) { - b.locationConstraint = payload; - }); + ) => GetBucketLocationOutput.build((b) { + b.locationConstraint = payload; + }); static const List<_i2.SmithySerializer> - serializers = [GetBucketLocationOutputRestXmlSerializer()]; + serializers = [GetBucketLocationOutputRestXmlSerializer()]; BucketLocationConstraint? get locationConstraint; @override @@ -49,10 +49,7 @@ abstract class GetBucketLocationOutput @override String toString() { final helper = newBuiltValueToStringHelper('GetBucketLocationOutput') - ..add( - 'locationConstraint', - locationConstraint, - ); + ..add('locationConstraint', locationConstraint); return helper.toString(); } } @@ -60,21 +57,18 @@ abstract class GetBucketLocationOutput class GetBucketLocationOutputRestXmlSerializer extends _i2.PrimitiveSmithySerializer { const GetBucketLocationOutputRestXmlSerializer() - : super('GetBucketLocationOutput'); + : super('GetBucketLocationOutput'); @override Iterable get types => const [ - GetBucketLocationOutput, - _$GetBucketLocationOutput, - ]; + GetBucketLocationOutput, + _$GetBucketLocationOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override BucketLocationConstraint deserialize( @@ -83,9 +77,10 @@ class GetBucketLocationOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType(BucketLocationConstraint), - ) as BucketLocationConstraint); + serialized, + specifiedType: const FullType(BucketLocationConstraint), + ) + as BucketLocationConstraint); } @override @@ -98,13 +93,15 @@ class GetBucketLocationOutputRestXmlSerializer const _i2.XmlElementName( 'LocationConstraint', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType(BucketLocationConstraint), - )); + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(BucketLocationConstraint), + ), + ); return result$; } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.g.dart index 1b68fbc472..ab835c4acf 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_output.g.dart @@ -10,16 +10,16 @@ class _$GetBucketLocationOutput extends GetBucketLocationOutput { @override final BucketLocationConstraint? locationConstraint; - factory _$GetBucketLocationOutput( - [void Function(GetBucketLocationOutputBuilder)? updates]) => - (new GetBucketLocationOutputBuilder()..update(updates))._build(); + factory _$GetBucketLocationOutput([ + void Function(GetBucketLocationOutputBuilder)? updates, + ]) => (new GetBucketLocationOutputBuilder()..update(updates))._build(); _$GetBucketLocationOutput._({this.locationConstraint}) : super._(); @override GetBucketLocationOutput rebuild( - void Function(GetBucketLocationOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetBucketLocationOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetBucketLocationOutputBuilder toBuilder() => @@ -78,7 +78,8 @@ class GetBucketLocationOutputBuilder GetBucketLocationOutput build() => _build(); _$GetBucketLocationOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetBucketLocationOutput._(locationConstraint: locationConstraint); replace(_$result); return _$result; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.dart index 2b6e1ed4e3..9b189be07e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.get_bucket_location_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -23,9 +23,9 @@ abstract class GetBucketLocationRequest return _$GetBucketLocationRequest._(bucket: bucket); } - factory GetBucketLocationRequest.build( - [void Function(GetBucketLocationRequestBuilder) updates]) = - _$GetBucketLocationRequest; + factory GetBucketLocationRequest.build([ + void Function(GetBucketLocationRequestBuilder) updates, + ]) = _$GetBucketLocationRequest; const GetBucketLocationRequest._(); @@ -33,15 +33,14 @@ abstract class GetBucketLocationRequest GetBucketLocationRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetBucketLocationRequest.build((b) { - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - }); + }) => GetBucketLocationRequest.build((b) { + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [GetBucketLocationRequestRestXmlSerializer()]; + serializers = [GetBucketLocationRequestRestXmlSerializer()]; String get bucket; @override @@ -50,10 +49,7 @@ abstract class GetBucketLocationRequest case 'Bucket': return bucket; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -66,25 +62,23 @@ abstract class GetBucketLocationRequest @override String toString() { final helper = newBuiltValueToStringHelper('GetBucketLocationRequest') - ..add( - 'bucket', - bucket, - ); + ..add('bucket', bucket); return helper.toString(); } } @_i3.internal abstract class GetBucketLocationRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + GetBucketLocationRequestPayload, + GetBucketLocationRequestPayloadBuilder + >, _i1.EmptyPayload { - factory GetBucketLocationRequestPayload( - [void Function(GetBucketLocationRequestPayloadBuilder) updates]) = - _$GetBucketLocationRequestPayload; + factory GetBucketLocationRequestPayload([ + void Function(GetBucketLocationRequestPayloadBuilder) updates, + ]) = _$GetBucketLocationRequestPayload; const GetBucketLocationRequestPayload._(); @@ -93,8 +87,9 @@ abstract class GetBucketLocationRequestPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('GetBucketLocationRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'GetBucketLocationRequestPayload', + ); return helper.toString(); } } @@ -102,23 +97,20 @@ abstract class GetBucketLocationRequestPayload class GetBucketLocationRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const GetBucketLocationRequestRestXmlSerializer() - : super('GetBucketLocationRequest'); + : super('GetBucketLocationRequest'); @override Iterable get types => const [ - GetBucketLocationRequest, - _$GetBucketLocationRequest, - GetBucketLocationRequestPayload, - _$GetBucketLocationRequestPayload, - ]; + GetBucketLocationRequest, + _$GetBucketLocationRequest, + GetBucketLocationRequestPayload, + _$GetBucketLocationRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetBucketLocationRequestPayload deserialize( @@ -139,7 +131,7 @@ class GetBucketLocationRequestRestXmlSerializer const _i1.XmlElementName( 'GetBucketLocationRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.g.dart index 6c9a4c6315..2a6a75677b 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/get_bucket_location_request.g.dart @@ -10,19 +10,22 @@ class _$GetBucketLocationRequest extends GetBucketLocationRequest { @override final String bucket; - factory _$GetBucketLocationRequest( - [void Function(GetBucketLocationRequestBuilder)? updates]) => - (new GetBucketLocationRequestBuilder()..update(updates))._build(); + factory _$GetBucketLocationRequest([ + void Function(GetBucketLocationRequestBuilder)? updates, + ]) => (new GetBucketLocationRequestBuilder()..update(updates))._build(); _$GetBucketLocationRequest._({required this.bucket}) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'GetBucketLocationRequest', 'bucket'); + bucket, + r'GetBucketLocationRequest', + 'bucket', + ); } @override GetBucketLocationRequest rebuild( - void Function(GetBucketLocationRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetBucketLocationRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetBucketLocationRequestBuilder toBuilder() => @@ -78,10 +81,15 @@ class GetBucketLocationRequestBuilder GetBucketLocationRequest build() => _build(); _$GetBucketLocationRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetBucketLocationRequest._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'GetBucketLocationRequest', 'bucket')); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'GetBucketLocationRequest', + 'bucket', + ), + ); replace(_$result); return _$result; } @@ -89,16 +97,17 @@ class GetBucketLocationRequestBuilder class _$GetBucketLocationRequestPayload extends GetBucketLocationRequestPayload { - factory _$GetBucketLocationRequestPayload( - [void Function(GetBucketLocationRequestPayloadBuilder)? updates]) => + factory _$GetBucketLocationRequestPayload([ + void Function(GetBucketLocationRequestPayloadBuilder)? updates, + ]) => (new GetBucketLocationRequestPayloadBuilder()..update(updates))._build(); _$GetBucketLocationRequestPayload._() : super._(); @override GetBucketLocationRequestPayload rebuild( - void Function(GetBucketLocationRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetBucketLocationRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetBucketLocationRequestPayloadBuilder toBuilder() => @@ -118,8 +127,10 @@ class _$GetBucketLocationRequestPayload class GetBucketLocationRequestPayloadBuilder implements - Builder { + Builder< + GetBucketLocationRequestPayload, + GetBucketLocationRequestPayloadBuilder + > { _$GetBucketLocationRequestPayload? _$v; GetBucketLocationRequestPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.dart index e405bbbe6a..033d845104 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.list_objects_v2_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -48,9 +48,9 @@ abstract class ListObjectsV2Output ); } - factory ListObjectsV2Output.build( - [void Function(ListObjectsV2OutputBuilder) updates]) = - _$ListObjectsV2Output; + factory ListObjectsV2Output.build([ + void Function(ListObjectsV2OutputBuilder) updates, + ]) = _$ListObjectsV2Output; const ListObjectsV2Output._(); @@ -58,11 +58,10 @@ abstract class ListObjectsV2Output factory ListObjectsV2Output.fromResponse( ListObjectsV2Output payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> serializers = [ - ListObjectsV2OutputRestXmlSerializer() + ListObjectsV2OutputRestXmlSerializer(), ]; bool? get isTruncated; @@ -79,71 +78,36 @@ abstract class ListObjectsV2Output String? get startAfter; @override List get props => [ - isTruncated, - contents, - name, - prefix, - delimiter, - maxKeys, - commonPrefixes, - encodingType, - keyCount, - continuationToken, - nextContinuationToken, - startAfter, - ]; + isTruncated, + contents, + name, + prefix, + delimiter, + maxKeys, + commonPrefixes, + encodingType, + keyCount, + continuationToken, + nextContinuationToken, + startAfter, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListObjectsV2Output') - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'contents', - contents, - ) - ..add( - 'name', - name, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'maxKeys', - maxKeys, - ) - ..add( - 'commonPrefixes', - commonPrefixes, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'keyCount', - keyCount, - ) - ..add( - 'continuationToken', - continuationToken, - ) - ..add( - 'nextContinuationToken', - nextContinuationToken, - ) - ..add( - 'startAfter', - startAfter, - ); + final helper = + newBuiltValueToStringHelper('ListObjectsV2Output') + ..add('isTruncated', isTruncated) + ..add('contents', contents) + ..add('name', name) + ..add('prefix', prefix) + ..add('delimiter', delimiter) + ..add('maxKeys', maxKeys) + ..add('commonPrefixes', commonPrefixes) + ..add('encodingType', encodingType) + ..add('keyCount', keyCount) + ..add('continuationToken', continuationToken) + ..add('nextContinuationToken', nextContinuationToken) + ..add('startAfter', startAfter); return helper.toString(); } } @@ -154,17 +118,14 @@ class ListObjectsV2OutputRestXmlSerializer @override Iterable get types => const [ - ListObjectsV2Output, - _$ListObjectsV2Output, - ]; + ListObjectsV2Output, + _$ListObjectsV2Output, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2Output deserialize( @@ -183,65 +144,91 @@ class ListObjectsV2OutputRestXmlSerializer } switch (key) { case 'CommonPrefixes': - result.commonPrefixes.add((serializers.deserialize( - value, - specifiedType: const FullType(CommonPrefix), - ) as CommonPrefix)); + result.commonPrefixes.add( + (serializers.deserialize( + value, + specifiedType: const FullType(CommonPrefix), + ) + as CommonPrefix), + ); case 'Contents': - result.contents.add((serializers.deserialize( - value, - specifiedType: const FullType(S3Object), - ) as S3Object)); + result.contents.add( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Object), + ) + as S3Object), + ); case 'ContinuationToken': - result.continuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.continuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'IsTruncated': - result.isTruncated = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isTruncated = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'KeyCount': - result.keyCount = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.keyCount = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'MaxKeys': - result.maxKeys = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxKeys = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'NextContinuationToken': - result.nextContinuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextContinuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StartAfter': - result.startAfter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startAfter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -258,7 +245,7 @@ class ListObjectsV2OutputRestXmlSerializer const _i3.XmlElementName( 'ListObjectsV2Output', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ListObjectsV2Output( :commonPrefixes, @@ -272,110 +259,117 @@ class ListObjectsV2OutputRestXmlSerializer :name, :nextContinuationToken, :prefix, - :startAfter + :startAfter, ) = object; if (commonPrefixes != null) { result$.addAll( - const _i3.XmlBuiltListSerializer(memberName: 'CommonPrefixes') - .serialize( - serializers, - commonPrefixes, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(CommonPrefix)], + const _i3.XmlBuiltListSerializer( + memberName: 'CommonPrefixes', + ).serialize( + serializers, + commonPrefixes, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(CommonPrefix), + ]), ), - )); + ); } if (contents != null) { result$.addAll( - const _i3.XmlBuiltListSerializer(memberName: 'Contents').serialize( - serializers, - contents, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(S3Object)], + const _i3.XmlBuiltListSerializer(memberName: 'Contents').serialize( + serializers, + contents, + specifiedType: const FullType(_i2.BuiltList, [FullType(S3Object)]), ), - )); + ); } if (continuationToken != null) { result$ ..add(const _i3.XmlElementName('ContinuationToken')) - ..add(serializers.serialize( - continuationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + continuationToken, + specifiedType: const FullType(String), + ), + ); } if (delimiter != null) { result$ ..add(const _i3.XmlElementName('Delimiter')) - ..add(serializers.serialize( - delimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + delimiter, + specifiedType: const FullType(String), + ), + ); } if (encodingType != null) { result$ ..add(const _i3.XmlElementName('EncodingType')) - ..add(serializers.serialize( - encodingType, - specifiedType: const FullType(EncodingType), - )); + ..add( + serializers.serialize( + encodingType, + specifiedType: const FullType(EncodingType), + ), + ); } if (isTruncated != null) { result$ ..add(const _i3.XmlElementName('IsTruncated')) - ..add(serializers.serialize( - isTruncated, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + isTruncated, + specifiedType: const FullType(bool), + ), + ); } if (keyCount != null) { result$ ..add(const _i3.XmlElementName('KeyCount')) - ..add(serializers.serialize( - keyCount, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(keyCount, specifiedType: const FullType(int)), + ); } if (maxKeys != null) { result$ ..add(const _i3.XmlElementName('MaxKeys')) - ..add(serializers.serialize( - maxKeys, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxKeys, specifiedType: const FullType(int)), + ); } if (name != null) { result$ ..add(const _i3.XmlElementName('Name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } if (nextContinuationToken != null) { result$ ..add(const _i3.XmlElementName('NextContinuationToken')) - ..add(serializers.serialize( - nextContinuationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextContinuationToken, + specifiedType: const FullType(String), + ), + ); } if (prefix != null) { result$ ..add(const _i3.XmlElementName('Prefix')) - ..add(serializers.serialize( - prefix, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(prefix, specifiedType: const FullType(String)), + ); } if (startAfter != null) { result$ ..add(const _i3.XmlElementName('StartAfter')) - ..add(serializers.serialize( - startAfter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + startAfter, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.g.dart index 4ca3d93f4c..b6366ca990 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_output.g.dart @@ -32,29 +32,29 @@ class _$ListObjectsV2Output extends ListObjectsV2Output { @override final String? startAfter; - factory _$ListObjectsV2Output( - [void Function(ListObjectsV2OutputBuilder)? updates]) => - (new ListObjectsV2OutputBuilder()..update(updates))._build(); - - _$ListObjectsV2Output._( - {this.isTruncated, - this.contents, - this.name, - this.prefix, - this.delimiter, - this.maxKeys, - this.commonPrefixes, - this.encodingType, - this.keyCount, - this.continuationToken, - this.nextContinuationToken, - this.startAfter}) - : super._(); + factory _$ListObjectsV2Output([ + void Function(ListObjectsV2OutputBuilder)? updates, + ]) => (new ListObjectsV2OutputBuilder()..update(updates))._build(); + + _$ListObjectsV2Output._({ + this.isTruncated, + this.contents, + this.name, + this.prefix, + this.delimiter, + this.maxKeys, + this.commonPrefixes, + this.encodingType, + this.keyCount, + this.continuationToken, + this.nextContinuationToken, + this.startAfter, + }) : super._(); @override ListObjectsV2Output rebuild( - void Function(ListObjectsV2OutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2OutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2OutputBuilder toBuilder() => @@ -196,20 +196,22 @@ class ListObjectsV2OutputBuilder _$ListObjectsV2Output _build() { _$ListObjectsV2Output _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListObjectsV2Output._( - isTruncated: isTruncated, - contents: _contents?.build(), - name: name, - prefix: prefix, - delimiter: delimiter, - maxKeys: maxKeys, - commonPrefixes: _commonPrefixes?.build(), - encodingType: encodingType, - keyCount: keyCount, - continuationToken: continuationToken, - nextContinuationToken: nextContinuationToken, - startAfter: startAfter); + isTruncated: isTruncated, + contents: _contents?.build(), + name: name, + prefix: prefix, + delimiter: delimiter, + maxKeys: maxKeys, + commonPrefixes: _commonPrefixes?.build(), + encodingType: encodingType, + keyCount: keyCount, + continuationToken: continuationToken, + nextContinuationToken: nextContinuationToken, + startAfter: startAfter, + ); } catch (_) { late String _$failedField; try { @@ -220,7 +222,10 @@ class ListObjectsV2OutputBuilder _commonPrefixes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListObjectsV2Output', _$failedField, e.toString()); + r'ListObjectsV2Output', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.dart index eaffce1988..4d7525e8e8 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.list_objects_v2_request; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -47,9 +47,9 @@ abstract class ListObjectsV2Request ); } - factory ListObjectsV2Request.build( - [void Function(ListObjectsV2RequestBuilder) updates]) = - _$ListObjectsV2Request; + factory ListObjectsV2Request.build([ + void Function(ListObjectsV2RequestBuilder) updates, + ]) = _$ListObjectsV2Request; const ListObjectsV2Request._(); @@ -57,45 +57,45 @@ abstract class ListObjectsV2Request ListObjectsV2RequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ListObjectsV2Request.build((b) { - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.queryParameters['delimiter'] != null) { - b.delimiter = request.queryParameters['delimiter']!; - } - if (request.queryParameters['encoding-type'] != null) { - b.encodingType = EncodingType.values - .byValue(request.queryParameters['encoding-type']!); - } - if (request.queryParameters['max-keys'] != null) { - b.maxKeys = int.parse(request.queryParameters['max-keys']!); - } - if (request.queryParameters['prefix'] != null) { - b.prefix = request.queryParameters['prefix']!; - } - if (request.queryParameters['continuation-token'] != null) { - b.continuationToken = request.queryParameters['continuation-token']!; - } - if (request.queryParameters['fetch-owner'] != null) { - b.fetchOwner = request.queryParameters['fetch-owner']! == 'true'; - } - if (request.queryParameters['start-after'] != null) { - b.startAfter = request.queryParameters['start-after']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - }); + }) => ListObjectsV2Request.build((b) { + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.queryParameters['delimiter'] != null) { + b.delimiter = request.queryParameters['delimiter']!; + } + if (request.queryParameters['encoding-type'] != null) { + b.encodingType = EncodingType.values.byValue( + request.queryParameters['encoding-type']!, + ); + } + if (request.queryParameters['max-keys'] != null) { + b.maxKeys = int.parse(request.queryParameters['max-keys']!); + } + if (request.queryParameters['prefix'] != null) { + b.prefix = request.queryParameters['prefix']!; + } + if (request.queryParameters['continuation-token'] != null) { + b.continuationToken = request.queryParameters['continuation-token']!; + } + if (request.queryParameters['fetch-owner'] != null) { + b.fetchOwner = request.queryParameters['fetch-owner']! == 'true'; + } + if (request.queryParameters['start-after'] != null) { + b.startAfter = request.queryParameters['start-after']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ListObjectsV2RequestRestXmlSerializer()]; + serializers = [ListObjectsV2RequestRestXmlSerializer()]; String get bucket; String? get delimiter; @@ -113,10 +113,7 @@ abstract class ListObjectsV2Request case 'Bucket': return bucket; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -124,61 +121,32 @@ abstract class ListObjectsV2Request @override List get props => [ - bucket, - delimiter, - encodingType, - maxKeys, - prefix, - continuationToken, - fetchOwner, - startAfter, - requestPayer, - expectedBucketOwner, - ]; + bucket, + delimiter, + encodingType, + maxKeys, + prefix, + continuationToken, + fetchOwner, + startAfter, + requestPayer, + expectedBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListObjectsV2Request') - ..add( - 'bucket', - bucket, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'maxKeys', - maxKeys, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'continuationToken', - continuationToken, - ) - ..add( - 'fetchOwner', - fetchOwner, - ) - ..add( - 'startAfter', - startAfter, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('ListObjectsV2Request') + ..add('bucket', bucket) + ..add('delimiter', delimiter) + ..add('encodingType', encodingType) + ..add('maxKeys', maxKeys) + ..add('prefix', prefix) + ..add('continuationToken', continuationToken) + ..add('fetchOwner', fetchOwner) + ..add('startAfter', startAfter) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @@ -189,9 +157,9 @@ abstract class ListObjectsV2RequestPayload implements Built, _i1.EmptyPayload { - factory ListObjectsV2RequestPayload( - [void Function(ListObjectsV2RequestPayloadBuilder) updates]) = - _$ListObjectsV2RequestPayload; + factory ListObjectsV2RequestPayload([ + void Function(ListObjectsV2RequestPayloadBuilder) updates, + ]) = _$ListObjectsV2RequestPayload; const ListObjectsV2RequestPayload._(); @@ -211,19 +179,16 @@ class ListObjectsV2RequestRestXmlSerializer @override Iterable get types => const [ - ListObjectsV2Request, - _$ListObjectsV2Request, - ListObjectsV2RequestPayload, - _$ListObjectsV2RequestPayload, - ]; + ListObjectsV2Request, + _$ListObjectsV2Request, + ListObjectsV2RequestPayload, + _$ListObjectsV2RequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2RequestPayload deserialize( @@ -244,7 +209,7 @@ class ListObjectsV2RequestRestXmlSerializer const _i1.XmlElementName( 'ListObjectsV2Request', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.g.dart index 62b1551105..db1312ec8c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/list_objects_v2_request.g.dart @@ -28,30 +28,33 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { @override final String? expectedBucketOwner; - factory _$ListObjectsV2Request( - [void Function(ListObjectsV2RequestBuilder)? updates]) => - (new ListObjectsV2RequestBuilder()..update(updates))._build(); - - _$ListObjectsV2Request._( - {required this.bucket, - this.delimiter, - this.encodingType, - this.maxKeys, - this.prefix, - this.continuationToken, - this.fetchOwner, - this.startAfter, - this.requestPayer, - this.expectedBucketOwner}) - : super._() { + factory _$ListObjectsV2Request([ + void Function(ListObjectsV2RequestBuilder)? updates, + ]) => (new ListObjectsV2RequestBuilder()..update(updates))._build(); + + _$ListObjectsV2Request._({ + required this.bucket, + this.delimiter, + this.encodingType, + this.maxKeys, + this.prefix, + this.continuationToken, + this.fetchOwner, + this.startAfter, + this.requestPayer, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'); + bucket, + r'ListObjectsV2Request', + 'bucket', + ); } @override ListObjectsV2Request rebuild( - void Function(ListObjectsV2RequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2RequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2RequestBuilder toBuilder() => @@ -174,35 +177,40 @@ class ListObjectsV2RequestBuilder ListObjectsV2Request build() => _build(); _$ListObjectsV2Request _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ListObjectsV2Request._( - bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'), - delimiter: delimiter, - encodingType: encodingType, - maxKeys: maxKeys, - prefix: prefix, - continuationToken: continuationToken, - fetchOwner: fetchOwner, - startAfter: startAfter, - requestPayer: requestPayer, - expectedBucketOwner: expectedBucketOwner); + bucket: BuiltValueNullFieldError.checkNotNull( + bucket, + r'ListObjectsV2Request', + 'bucket', + ), + delimiter: delimiter, + encodingType: encodingType, + maxKeys: maxKeys, + prefix: prefix, + continuationToken: continuationToken, + fetchOwner: fetchOwner, + startAfter: startAfter, + requestPayer: requestPayer, + expectedBucketOwner: expectedBucketOwner, + ); replace(_$result); return _$result; } } class _$ListObjectsV2RequestPayload extends ListObjectsV2RequestPayload { - factory _$ListObjectsV2RequestPayload( - [void Function(ListObjectsV2RequestPayloadBuilder)? updates]) => - (new ListObjectsV2RequestPayloadBuilder()..update(updates))._build(); + factory _$ListObjectsV2RequestPayload([ + void Function(ListObjectsV2RequestPayloadBuilder)? updates, + ]) => (new ListObjectsV2RequestPayloadBuilder()..update(updates))._build(); _$ListObjectsV2RequestPayload._() : super._(); @override ListObjectsV2RequestPayload rebuild( - void Function(ListObjectsV2RequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2RequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2RequestPayloadBuilder toBuilder() => @@ -222,8 +230,10 @@ class _$ListObjectsV2RequestPayload extends ListObjectsV2RequestPayload { class ListObjectsV2RequestPayloadBuilder implements - Builder { + Builder< + ListObjectsV2RequestPayload, + ListObjectsV2RequestPayloadBuilder + > { _$ListObjectsV2RequestPayload? _$v; ListObjectsV2RequestPayloadBuilder(); diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/no_such_bucket.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/no_such_bucket.dart index 0a29418dc0..2d166e7f33 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/no_such_bucket.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/no_such_bucket.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.no_such_bucket; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -29,21 +29,18 @@ abstract class NoSuchBucket factory NoSuchBucket.fromResponse( NoSuchBucket payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - NoSuchBucketRestXmlSerializer() + NoSuchBucketRestXmlSerializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchBucket', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchBucket'); @override String? get message => null; @@ -75,18 +72,12 @@ class NoSuchBucketRestXmlSerializer const NoSuchBucketRestXmlSerializer() : super('NoSuchBucket'); @override - Iterable get types => const [ - NoSuchBucket, - _$NoSuchBucket, - ]; + Iterable get types => const [NoSuchBucket, _$NoSuchBucket]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoSuchBucket deserialize( @@ -107,7 +98,7 @@ class NoSuchBucketRestXmlSerializer const _i2.XmlElementName( 'NoSuchBucket', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.dart index 87ce8257a0..a975bf1965 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.object; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,7 +38,7 @@ abstract class S3Object const S3Object._(); static const List<_i2.SmithySerializer> serializers = [ - ObjectRestXmlSerializer() + ObjectRestXmlSerializer(), ]; String? get key; @@ -49,41 +49,24 @@ abstract class S3Object Owner? get owner; @override List get props => [ - key, - lastModified, - eTag, - size, - storageClass, - owner, - ]; + key, + lastModified, + eTag, + size, + storageClass, + owner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Object') - ..add( - 'key', - key, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'size', - size, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'owner', - owner, - ); + final helper = + newBuiltValueToStringHelper('S3Object') + ..add('key', key) + ..add('lastModified', lastModified) + ..add('eTag', eTag) + ..add('size', size) + ..add('storageClass', storageClass) + ..add('owner', owner); return helper.toString(); } } @@ -92,18 +75,12 @@ class ObjectRestXmlSerializer extends _i2.StructuredSmithySerializer { const ObjectRestXmlSerializer() : super('Object'); @override - Iterable get types => const [ - S3Object, - _$S3Object, - ]; + Iterable get types => const [S3Object, _$S3Object]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Object deserialize( @@ -122,35 +99,48 @@ class ObjectRestXmlSerializer extends _i2.StructuredSmithySerializer { } switch (key) { case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'Owner': - result.owner.replace((serializers.deserialize( - value, - specifiedType: const FullType(Owner), - ) as Owner)); + result.owner.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Owner), + ) + as Owner), + ); case 'Size': - result.size = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.size = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(ObjectStorageClass), - ) as ObjectStorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(ObjectStorageClass), + ) + as ObjectStorageClass); } } @@ -167,57 +157,55 @@ class ObjectRestXmlSerializer extends _i2.StructuredSmithySerializer { const _i2.XmlElementName( 'Object', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final S3Object(:eTag, :key, :lastModified, :owner, :size, :storageClass) = object; if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i2.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } if (owner != null) { result$ ..add(const _i2.XmlElementName('Owner')) - ..add(serializers.serialize( - owner, - specifiedType: const FullType(Owner), - )); + ..add( + serializers.serialize(owner, specifiedType: const FullType(Owner)), + ); } if (size != null) { result$ ..add(const _i2.XmlElementName('Size')) - ..add(serializers.serialize( - size, - specifiedType: const FullType(int), - )); + ..add(serializers.serialize(size, specifiedType: const FullType(int))); } if (storageClass != null) { result$ ..add(const _i2.XmlElementName('StorageClass')) - ..add(serializers.serialize( - storageClass, - specifiedType: const FullType(ObjectStorageClass), - )); + ..add( + serializers.serialize( + storageClass, + specifiedType: const FullType(ObjectStorageClass), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.g.dart index bcd6a2a703..8940f5912e 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object.g.dart @@ -23,14 +23,14 @@ class _$S3Object extends S3Object { factory _$S3Object([void Function(S3ObjectBuilder)? updates]) => (new S3ObjectBuilder()..update(updates))._build(); - _$S3Object._( - {this.key, - this.lastModified, - this.eTag, - this.size, - this.storageClass, - this.owner}) - : super._(); + _$S3Object._({ + this.key, + this.lastModified, + this.eTag, + this.size, + this.storageClass, + this.owner, + }) : super._(); @override S3Object rebuild(void Function(S3ObjectBuilder) updates) => @@ -127,14 +127,16 @@ class S3ObjectBuilder implements Builder { _$S3Object _build() { _$S3Object _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$S3Object._( - key: key, - lastModified: lastModified, - eTag: eTag, - size: size, - storageClass: storageClass, - owner: _owner?.build()); + key: key, + lastModified: lastModified, + eTag: eTag, + size: size, + storageClass: storageClass, + owner: _owner?.build(), + ); } catch (_) { late String _$failedField; try { @@ -142,7 +144,10 @@ class S3ObjectBuilder implements Builder { _owner?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'S3Object', _$failedField, e.toString()); + r'S3Object', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object_storage_class.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object_storage_class.dart index 147dfc2ac3..cda4712398 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object_storage_class.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/object_storage_class.dart @@ -1,16 +1,12 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.object_storage_class; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class ObjectStorageClass extends _i1.SmithyEnum { - const ObjectStorageClass._( - super.index, - super.name, - super.value, - ); + const ObjectStorageClass._(super.index, super.name, super.value); const ObjectStorageClass._sdkUnknown(super.value) : super.sdkUnknown(); @@ -20,11 +16,7 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'DEEP_ARCHIVE', ); - static const glacier = ObjectStorageClass._( - 1, - 'GLACIER', - 'GLACIER', - ); + static const glacier = ObjectStorageClass._(1, 'GLACIER', 'GLACIER'); static const intelligentTiering = ObjectStorageClass._( 2, @@ -32,17 +24,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'INTELLIGENT_TIERING', ); - static const onezoneIa = ObjectStorageClass._( - 3, - 'ONEZONE_IA', - 'ONEZONE_IA', - ); + static const onezoneIa = ObjectStorageClass._(3, 'ONEZONE_IA', 'ONEZONE_IA'); - static const outposts = ObjectStorageClass._( - 4, - 'OUTPOSTS', - 'OUTPOSTS', - ); + static const outposts = ObjectStorageClass._(4, 'OUTPOSTS', 'OUTPOSTS'); static const reducedRedundancy = ObjectStorageClass._( 5, @@ -50,11 +34,7 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'REDUCED_REDUNDANCY', ); - static const standard = ObjectStorageClass._( - 6, - 'STANDARD', - 'STANDARD', - ); + static const standard = ObjectStorageClass._(6, 'STANDARD', 'STANDARD'); static const standardIa = ObjectStorageClass._( 7, @@ -80,12 +60,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { values: values, sdkUnknown: ObjectStorageClass._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.dart index 2e99d6e0b8..bc50ba6e31 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestXmlSerializer() + OperationConfigRestXmlSerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestXmlSerializer const OperationConfigRestXmlSerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestXmlSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -101,16 +96,15 @@ class OperationConfigRestXmlSerializer const _i2.XmlElementName( 'OperationConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/owner.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/owner.dart index 0898b516a1..de90fca890 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/owner.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/owner.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.owner; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,14 +13,8 @@ part 'owner.g.dart'; abstract class Owner with _i1.AWSEquatable implements Built { - factory Owner({ - String? displayName, - String? id, - }) { - return _$Owner._( - displayName: displayName, - id: id, - ); + factory Owner({String? displayName, String? id}) { + return _$Owner._(displayName: displayName, id: id); } factory Owner.build([void Function(OwnerBuilder) updates]) = _$Owner; @@ -28,28 +22,20 @@ abstract class Owner const Owner._(); static const List<_i2.SmithySerializer> serializers = [ - OwnerRestXmlSerializer() + OwnerRestXmlSerializer(), ]; String? get displayName; String? get id; @override - List get props => [ - displayName, - id, - ]; + List get props => [displayName, id]; @override String toString() { - final helper = newBuiltValueToStringHelper('Owner') - ..add( - 'displayName', - displayName, - ) - ..add( - 'id', - id, - ); + final helper = + newBuiltValueToStringHelper('Owner') + ..add('displayName', displayName) + ..add('id', id); return helper.toString(); } } @@ -58,18 +44,12 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { const OwnerRestXmlSerializer() : super('Owner'); @override - Iterable get types => const [ - Owner, - _$Owner, - ]; + Iterable get types => const [Owner, _$Owner]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Owner deserialize( @@ -88,15 +68,19 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { } switch (key) { case 'DisplayName': - result.displayName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.displayName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ID': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -113,24 +97,23 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { const _i2.XmlElementName( 'Owner', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Owner(:displayName, :id) = object; if (displayName != null) { result$ ..add(const _i2.XmlElementName('DisplayName')) - ..add(serializers.serialize( - displayName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + displayName, + specifiedType: const FullType(String), + ), + ); } if (id != null) { result$ ..add(const _i2.XmlElementName('ID')) - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/request_payer.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/request_payer.dart index 661c891dd4..b8638e803f 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/request_payer.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/request_payer.dart @@ -1,24 +1,16 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.request_payer; // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:smithy/smithy.dart' as _i1; class RequestPayer extends _i1.SmithyEnum { - const RequestPayer._( - super.index, - super.name, - super.value, - ); + const RequestPayer._(super.index, super.name, super.value); const RequestPayer._sdkUnknown(super.value) : super.sdkUnknown(); - static const requester = RequestPayer._( - 0, - 'requester', - 'requester', - ); + static const requester = RequestPayer._(0, 'requester', 'requester'); /// All values of [RequestPayer]. static const values = [RequestPayer.requester]; @@ -29,12 +21,9 @@ class RequestPayer extends _i1.SmithyEnum { values: values, sdkUnknown: RequestPayer._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_config.dart index f3388c678b..2da23e05d2 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestXmlSerializer() + RetryConfigRestXmlSerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestXmlSerializer const RetryConfigRestXmlSerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestXmlSerializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -120,24 +104,25 @@ class RetryConfigRestXmlSerializer const _i2.XmlElementName( 'RetryConfig', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final RetryConfig(:maxAttempts, :mode) = object; if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_mode.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_mode.dart index 0f461c1e64..ec3bdaeed1 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_addressing_style.dart index 3cf9b8ca4a..61c2b4e3b5 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.dart index 75a69313c2..0140e63d63 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestXmlSerializer() + S3ConfigRestXmlSerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestXmlSerializer const S3ConfigRestXmlSerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestXmlSerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,36 +124,42 @@ class S3ConfigRestXmlSerializer const _i2.XmlElementName( 'S3Config', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.dart index 939fd56655..cc86c20f29 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestXmlSerializer() + ScopedConfigRestXmlSerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestXmlSerializer const ScopedConfigRestXmlSerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigRestXmlSerializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -188,68 +173,72 @@ class ScopedConfigRestXmlSerializer const _i3.XmlElementName( 'ScopedConfig', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ScopedConfig( :client, :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart index 7df9cb286e..39070e4820 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/delete_object_tagging_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.operation.delete_object_tagging_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,11 +14,14 @@ import 'package:rest_xml_v2/src/s3/model/delete_object_tagging_request.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class DeleteObjectTaggingOperation extends _i1.HttpOperation< - DeleteObjectTaggingRequestPayload, - DeleteObjectTaggingRequest, - DeleteObjectTaggingOutputPayload, - DeleteObjectTaggingOutput> { +class DeleteObjectTaggingOperation + extends + _i1.HttpOperation< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequest, + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutput + > { DeleteObjectTaggingOperation({ required String region, Uri? baseUri, @@ -27,33 +30,38 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - DeleteObjectTaggingRequestPayload, - DeleteObjectTaggingRequest, - DeleteObjectTaggingOutputPayload, - DeleteObjectTaggingOutput>> protocols = [ + _i1.HttpProtocol< + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequest, + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -61,7 +69,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -85,9 +93,10 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< _i1.HttpRequest buildRequest(DeleteObjectTaggingRequest input) => _i1.HttpRequest((b) { b.method = 'DELETE'; - b.path = _s3ClientConfig.usePathStyle - ? r'/{Bucket}/{Key+}?tagging' - : r'/{Key+}?tagging'; + b.path = + _s3ClientConfig.usePathStyle + ? r'/{Bucket}/{Key+}?tagging' + : r'/{Key+}?tagging'; b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; if (input.expectedBucketOwner != null) { if (input.expectedBucketOwner!.isNotEmpty) { @@ -96,10 +105,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< } } if (input.versionId != null) { - b.queryParameters.add( - 'versionId', - input.versionId!, - ); + b.queryParameters.add('versionId', input.versionId!); } }); @@ -110,11 +116,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< DeleteObjectTaggingOutput buildOutput( DeleteObjectTaggingOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - DeleteObjectTaggingOutput.fromResponse( - payload, - response, - ); + ) => DeleteObjectTaggingOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -153,11 +155,7 @@ class DeleteObjectTaggingOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/get_bucket_location_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/get_bucket_location_operation.dart index e3a6ff32d4..2eaf96b67c 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/get_bucket_location_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/get_bucket_location_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.operation.get_bucket_location_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,11 +15,14 @@ import 'package:rest_xml_v2/src/s3/model/get_bucket_location_request.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class GetBucketLocationOperation extends _i1.HttpOperation< - GetBucketLocationRequestPayload, - GetBucketLocationRequest, - BucketLocationConstraint, - GetBucketLocationOutput> { +class GetBucketLocationOperation + extends + _i1.HttpOperation< + GetBucketLocationRequestPayload, + GetBucketLocationRequest, + BucketLocationConstraint, + GetBucketLocationOutput + > { GetBucketLocationOperation({ required String region, Uri? baseUri, @@ -28,33 +31,38 @@ class GetBucketLocationOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - GetBucketLocationRequestPayload, - GetBucketLocationRequest, - BucketLocationConstraint, - GetBucketLocationOutput>> protocols = [ + _i1.HttpProtocol< + GetBucketLocationRequestPayload, + GetBucketLocationRequest, + BucketLocationConstraint, + GetBucketLocationOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -62,7 +70,7 @@ class GetBucketLocationOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -86,9 +94,10 @@ class GetBucketLocationOperation extends _i1.HttpOperation< _i1.HttpRequest buildRequest(GetBucketLocationRequest input) => _i1.HttpRequest((b) { b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle - ? r'/{Bucket}?location' - : r'/?location'; + b.path = + _s3ClientConfig.usePathStyle + ? r'/{Bucket}?location' + : r'/?location'; b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; }); @@ -99,11 +108,7 @@ class GetBucketLocationOperation extends _i1.HttpOperation< GetBucketLocationOutput buildOutput( BucketLocationConstraint? payload, _i4.AWSBaseHttpResponse response, - ) => - GetBucketLocationOutput.fromResponse( - payload, - response, - ); + ) => GetBucketLocationOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -142,11 +147,7 @@ class GetBucketLocationOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/list_objects_v2_operation.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/list_objects_v2_operation.dart index 6deb8b825f..8e85ff1e00 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/list_objects_v2_operation.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/operation/list_objects_v2_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.operation.list_objects_v2_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,14 +15,17 @@ import 'package:rest_xml_v2/src/s3/model/no_such_bucket.dart'; import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< - ListObjectsV2RequestPayload, - ListObjectsV2Request, - ListObjectsV2Output, - ListObjectsV2Output, - String, - int, - ListObjectsV2Output> { +class ListObjectsV2Operation + extends + _i1.PaginatedHttpOperation< + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2Output, + ListObjectsV2Output, + String, + int, + ListObjectsV2Output + > { ListObjectsV2Operation({ required String region, Uri? baseUri, @@ -31,30 +34,38 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2Output, + ListObjectsV2Output + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -62,7 +73,7 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,65 +94,45 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(ListObjectsV2Request input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest(ListObjectsV2Request input) => _i1.HttpRequest(( + b, + ) { + b.method = 'GET'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}?list-type=2' : r'/?list-type=2'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.delimiter != null) { - b.queryParameters.add( - 'delimiter', - input.delimiter!, - ); - } - if (input.encodingType != null) { - b.queryParameters.add( - 'encoding-type', - input.encodingType!.value, - ); - } - if (input.maxKeys != null) { - b.queryParameters.add( - 'max-keys', - input.maxKeys!.toString(), - ); - } - if (input.prefix != null) { - b.queryParameters.add( - 'prefix', - input.prefix!, - ); - } - if (input.continuationToken != null) { - b.queryParameters.add( - 'continuation-token', - input.continuationToken!, - ); - } - if (input.fetchOwner != null) { - b.queryParameters.add( - 'fetch-owner', - input.fetchOwner!.toString(), - ); - } - if (input.startAfter != null) { - b.queryParameters.add( - 'start-after', - input.startAfter!, - ); - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.delimiter != null) { + b.queryParameters.add('delimiter', input.delimiter!); + } + if (input.encodingType != null) { + b.queryParameters.add('encoding-type', input.encodingType!.value); + } + if (input.maxKeys != null) { + b.queryParameters.add('max-keys', input.maxKeys!.toString()); + } + if (input.prefix != null) { + b.queryParameters.add('prefix', input.prefix!); + } + if (input.continuationToken != null) { + b.queryParameters.add('continuation-token', input.continuationToken!); + } + if (input.fetchOwner != null) { + b.queryParameters.add('fetch-owner', input.fetchOwner!.toString()); + } + if (input.startAfter != null) { + b.queryParameters.add('start-after', input.startAfter!); + } + }); @override int successCode([ListObjectsV2Output? output]) => 200; @@ -150,24 +141,17 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< ListObjectsV2Output buildOutput( ListObjectsV2Output payload, _i4.AWSBaseHttpResponse response, - ) => - ListObjectsV2Output.fromResponse( - payload, - response, - ); + ) => ListObjectsV2Output.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchBucket', - ), - _i1.ErrorKind.client, - NoSuchBucket, - builder: NoSuchBucket.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchBucket'), + _i1.ErrorKind.client, + NoSuchBucket, + builder: NoSuchBucket.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ListObjectsV2'; @@ -203,11 +187,7 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, @@ -226,11 +206,10 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< ListObjectsV2Request input, String token, int? pageSize, - ) => - input.rebuild((b) { - b.continuationToken = token; - if (pageSize != null) { - b.maxKeys = pageSize; - } - }); + ) => input.rebuild((b) { + b.continuationToken = token; + if (pageSize != null) { + b.maxKeys = pageSize; + } + }); } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_client.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_client.dart index 48cfe80129..01678a1419 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_client.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.s3_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -27,13 +27,13 @@ class S3Client { const _i3.AWSCredentialsProvider.defaultChain(), List<_i4.HttpRequestInterceptor> requestInterceptors = const [], List<_i4.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -62,10 +62,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i4.SmithyOperation getBucketLocation( @@ -81,14 +78,11 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } _i4.SmithyOperation<_i4.PaginatedResult> - listObjectsV2( + listObjectsV2( ListObjectsV2Request input, { _i1.AWSHttpClient? client, _i2.S3ClientConfig? s3ClientConfig, @@ -101,9 +95,6 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).runPaginated( - input, - client: client ?? _client, - ); + ).runPaginated(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_server.dart b/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_server.dart index 8f1a2e6346..4a591fa945 100644 --- a/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_server.dart +++ b/packages/smithy/goldens/lib2/restXml/lib/src/s3/s3_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_v2.s3.s3_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,16 +35,8 @@ abstract class S3ServerBase extends _i1.HttpServerBase { r'//?tagging', service.deleteObjectTagging, ); - router.add( - 'GET', - r'/?location', - service.getBucketLocation, - ); - router.add( - 'GET', - r'/?list-type=2', - service.listObjectsV2, - ); + router.add('GET', r'/?location', service.getBucketLocation); + router.add('GET', r'/?list-type=2', service.listObjectsV2); return router; }(); @@ -70,31 +62,36 @@ class _S3Server extends _i1.HttpServer { final S3ServerBase service; late final _i1.HttpProtocol< - DeleteObjectTaggingRequestPayload, - DeleteObjectTaggingRequest, - DeleteObjectTaggingOutputPayload, - DeleteObjectTaggingOutput> _deleteObjectTaggingProtocol = - _i2.RestXmlProtocol( + DeleteObjectTaggingRequestPayload, + DeleteObjectTaggingRequest, + DeleteObjectTaggingOutputPayload, + DeleteObjectTaggingOutput + > + _deleteObjectTaggingProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, ); late final _i1.HttpProtocol< - GetBucketLocationRequestPayload, - GetBucketLocationRequest, - BucketLocationConstraint, - GetBucketLocationOutput> _getBucketLocationProtocol = _i2.RestXmlProtocol( + GetBucketLocationRequestPayload, + GetBucketLocationRequest, + BucketLocationConstraint, + GetBucketLocationOutput + > + _getBucketLocationProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, ); late final _i1.HttpProtocol< - ListObjectsV2RequestPayload, - ListObjectsV2Request, - ListObjectsV2Output, - ListObjectsV2Output> _listObjectsV2Protocol = _i2.RestXmlProtocol( + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2Output, + ListObjectsV2Output + > + _listObjectsV2Protocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: true, @@ -112,28 +109,24 @@ class _S3Server extends _i1.HttpServer { try { final payload = (await _deleteObjectTaggingProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(DeleteObjectTaggingRequestPayload), - ) as DeleteObjectTaggingRequestPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + DeleteObjectTaggingRequestPayload, + ), + ) + as DeleteObjectTaggingRequestPayload); final input = DeleteObjectTaggingRequest.fromRequest( payload, awsRequest, - labels: { - 'Bucket': Bucket, - 'Key': Key, - }, - ); - final output = await service.deleteObjectTagging( - input, - context, + labels: {'Bucket': Bucket, 'Key': Key}, ); + final output = await service.deleteObjectTagging(input, context); const statusCode = 204; final body = await _deleteObjectTaggingProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - DeleteObjectTaggingOutput, - [FullType(DeleteObjectTaggingOutputPayload)], - ), + specifiedType: const FullType(DeleteObjectTaggingOutput, [ + FullType(DeleteObjectTaggingOutputPayload), + ]), ); return _i4.Response( statusCode, @@ -141,10 +134,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -159,25 +149,22 @@ class _S3Server extends _i1.HttpServer { try { final payload = (await _getBucketLocationProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(GetBucketLocationRequestPayload), - ) as GetBucketLocationRequestPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType(GetBucketLocationRequestPayload), + ) + as GetBucketLocationRequestPayload); final input = GetBucketLocationRequest.fromRequest( payload, awsRequest, labels: {'Bucket': Bucket}, ); - final output = await service.getBucketLocation( - input, - context, - ); + final output = await service.getBucketLocation(input, context); const statusCode = 200; final body = await _getBucketLocationProtocol.wireSerializer.serialize( output, - specifiedType: const FullType( - GetBucketLocationOutput, - [FullType.nullable(BucketLocationConstraint)], - ), + specifiedType: const FullType(GetBucketLocationOutput, [ + FullType.nullable(BucketLocationConstraint), + ]), ); return _i4.Response( statusCode, @@ -185,10 +172,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } @@ -201,26 +185,24 @@ class _S3Server extends _i1.HttpServer { context.response.headers['Content-Type'] = _listObjectsV2Protocol.contentType; try { - final payload = (await _listObjectsV2Protocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(ListObjectsV2RequestPayload), - ) as ListObjectsV2RequestPayload); + final payload = + (await _listObjectsV2Protocol.wireSerializer.deserialize( + await awsRequest.bodyBytes, + specifiedType: const FullType(ListObjectsV2RequestPayload), + ) + as ListObjectsV2RequestPayload); final input = ListObjectsV2Request.fromRequest( payload, awsRequest, labels: {'Bucket': Bucket}, ); - final output = await service.listObjectsV2( - input, - context, - ); + final output = await service.listObjectsV2(input, context); const statusCode = 200; final body = await _listObjectsV2Protocol.wireSerializer.serialize( output, - specifiedType: const FullType( - ListObjectsV2Output, - [FullType(ListObjectsV2Output)], - ), + specifiedType: const FullType(ListObjectsV2Output, [ + FullType(ListObjectsV2Output), + ]), ); return _i4.Response( statusCode, @@ -231,10 +213,7 @@ class _S3Server extends _i1.HttpServer { context.response.headers['X-Amzn-Errortype'] = 'NoSuchBucket'; final body = _listObjectsV2Protocol.wireSerializer.serialize( e, - specifiedType: const FullType( - NoSuchBucket, - [FullType(NoSuchBucket)], - ), + specifiedType: const FullType(NoSuchBucket, [FullType(NoSuchBucket)]), ); const statusCode = 400; return _i4.Response( @@ -243,10 +222,7 @@ class _S3Server extends _i1.HttpServer { headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/restXml/pubspec.yaml b/packages/smithy/goldens/lib2/restXml/pubspec.yaml index e436fc0e97..2651108d71 100644 --- a/packages/smithy/goldens/lib2/restXml/pubspec.yaml +++ b/packages/smithy/goldens/lib2/restXml/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -16,8 +16,8 @@ dependencies: built_value: ^8.6.0 fixnum: ^1.0.0 built_collection: ^5.0.0 - meta: ^1.7.0 - xml: ">=6.3.0 <=6.5.0" + meta: ^1.16.0 + xml: 6.3.0 shelf_router: ^1.1.0 shelf: ^1.4.0 aws_signature_v4: @@ -43,6 +43,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart index 22715dc9c8..064219990f 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/all_query_string_types_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.all_query_string_types_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,314 +16,234 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'AllQueryStringTypes (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'AllQueryStringTypes', - documentation: - 'Serializes query string parameters with all supported types', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryString': 'Hello there', - 'queryStringList': [ - 'a', - 'b', - 'c', - ], - 'queryStringSet': [ - 'a', - 'b', - 'c', - ], - 'queryByte': 1, - 'queryShort': 2, - 'queryInteger': 3, - 'queryIntegerList': [ - 1, - 2, - 3, - ], - 'queryIntegerSet': [ - 1, - 2, - 3, - ], - 'queryLong': 4, - 'queryFloat': 1.1, - 'queryDouble': 1.1, - 'queryDoubleList': [ - 1.1, - 2.1, - 3.1, - ], - 'queryBoolean': true, - 'queryBooleanList': [ - true, - false, - true, - ], - 'queryTimestamp': 1, - 'queryTimestampList': [ - 1, - 2, - 3, - ], - 'queryEnum': 'Foo', - 'queryEnumList': [ - 'Foo', - 'Baz', - 'Bar', - ], - 'queryIntegerEnum': 1, - 'queryIntegerEnumList': [ - 1, - 2, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=Hello%20there', - 'StringList=a', - 'StringList=b', - 'StringList=c', - 'StringSet=a', - 'StringSet=b', - 'StringSet=c', - 'Byte=1', - 'Short=2', - 'Integer=3', - 'IntegerList=1', - 'IntegerList=2', - 'IntegerList=3', - 'IntegerSet=1', - 'IntegerSet=2', - 'IntegerSet=3', - 'Long=4', - 'Float=1.1', - 'Double=1.1', - 'DoubleList=1.1', - 'DoubleList=2.1', - 'DoubleList=3.1', - 'Boolean=true', - 'BooleanList=true', - 'BooleanList=false', - 'BooleanList=true', - 'Timestamp=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A01Z', - 'TimestampList=1970-01-01T00%3A00%3A02Z', - 'TimestampList=1970-01-01T00%3A00%3A03Z', - 'Enum=Foo', - 'EnumList=Foo', - 'EnumList=Baz', - 'EnumList=Bar', - 'IntegerEnum=1', - 'IntegerEnumList=1', - 'IntegerEnumList=2', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlQueryStringMap (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryStringMap', - documentation: 'Handles query string maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryParamsMapOfStrings': { - 'QueryParamsStringKeyA': 'Foo', - 'QueryParamsStringKeyB': 'Bar', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'QueryParamsStringKeyA=Foo', - 'QueryParamsStringKeyB=Bar', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlQueryStringEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryStringEscaping', - documentation: - 'Handles escaping all required characters in the query string.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'queryString': ' %:/?#[]@!\$&\'()*+,;=😹'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9' - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatQueryValues', - documentation: 'Supports handling NaN float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'NaN', - 'queryDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=NaN', - 'Double=NaN', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatQueryValues (request)', - () async { - await _i2.httpRequestTest( - operation: AllQueryStringTypesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatQueryValues', - documentation: 'Supports handling Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'queryFloat': 'Infinity', - 'queryDouble': 'Infinity', + _i1.test('AllQueryStringTypes (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'AllQueryStringTypes', + documentation: + 'Serializes query string parameters with all supported types', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryString': 'Hello there', + 'queryStringList': ['a', 'b', 'c'], + 'queryStringSet': ['a', 'b', 'c'], + 'queryByte': 1, + 'queryShort': 2, + 'queryInteger': 3, + 'queryIntegerList': [1, 2, 3], + 'queryIntegerSet': [1, 2, 3], + 'queryLong': 4, + 'queryFloat': 1.1, + 'queryDouble': 1.1, + 'queryDoubleList': [1.1, 2.1, 3.1], + 'queryBoolean': true, + 'queryBooleanList': [true, false, true], + 'queryTimestamp': 1, + 'queryTimestampList': [1, 2, 3], + 'queryEnum': 'Foo', + 'queryEnumList': ['Foo', 'Baz', 'Bar'], + 'queryIntegerEnum': 1, + 'queryIntegerEnumList': [1, 2], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=Hello%20there', + 'StringList=a', + 'StringList=b', + 'StringList=c', + 'StringSet=a', + 'StringSet=b', + 'StringSet=c', + 'Byte=1', + 'Short=2', + 'Integer=3', + 'IntegerList=1', + 'IntegerList=2', + 'IntegerList=3', + 'IntegerSet=1', + 'IntegerSet=2', + 'IntegerSet=3', + 'Long=4', + 'Float=1.1', + 'Double=1.1', + 'DoubleList=1.1', + 'DoubleList=2.1', + 'DoubleList=3.1', + 'Boolean=true', + 'BooleanList=true', + 'BooleanList=false', + 'BooleanList=true', + 'Timestamp=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A01Z', + 'TimestampList=1970-01-01T00%3A00%3A02Z', + 'TimestampList=1970-01-01T00%3A00%3A03Z', + 'Enum=Foo', + 'EnumList=Foo', + 'EnumList=Baz', + 'EnumList=Bar', + 'IntegerEnum=1', + 'IntegerEnumList=1', + 'IntegerEnumList=2', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlQueryStringMap (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryStringMap', + documentation: 'Handles query string maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'queryParamsMapOfStrings': { + 'QueryParamsStringKeyA': 'Foo', + 'QueryParamsStringKeyB': 'Bar', }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/AllQueryStringTypesInput', - host: null, - resolvedHost: null, - queryParams: [ - 'Float=Infinity', - 'Double=Infinity', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['QueryParamsStringKeyA=Foo', 'QueryParamsStringKeyB=Bar'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlQueryStringEscaping (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryStringEscaping', + documentation: + 'Handles escaping all required characters in the query string.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'queryString': ' %:/?#[]@!\$&\'()*+,;=😹'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: [ + 'String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9', + ], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsNaNFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatQueryValues', + documentation: 'Supports handling NaN float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'queryFloat': 'NaN', 'queryDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=NaN', 'Double=NaN'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatQueryValues (request)', () async { + await _i2.httpRequestTest( + operation: AllQueryStringTypesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatQueryValues', + documentation: 'Supports handling Infinity float query values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'queryFloat': 'Infinity', 'queryDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/AllQueryStringTypesInput', + host: null, + resolvedHost: null, + queryParams: ['Float=Infinity', 'Double=Infinity'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [AllQueryStringTypesInputRestXmlSerializer()], + ); + }); _i1.test( 'RestXmlSupportsNegativeInfinityFloatQueryValues (request)', () async { @@ -335,17 +255,11 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestXmlSupportsNegativeInfinityFloatQueryValues', documentation: 'Supports handling -Infinity float query values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'queryFloat': '-Infinity', - 'queryDouble': '-Infinity', - }, + params: {'queryFloat': '-Infinity', 'queryDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -357,10 +271,7 @@ void main() { uri: '/AllQueryStringTypesInput', host: null, resolvedHost: null, - queryParams: [ - 'Float=-Infinity', - 'Double=-Infinity', - ], + queryParams: ['Float=-Infinity', 'Double=-Infinity'], forbidQueryParams: [], requireQueryParams: [], ), @@ -373,18 +284,15 @@ void main() { class AllQueryStringTypesInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const AllQueryStringTypesInputRestXmlSerializer() - : super('AllQueryStringTypesInput'); + : super('AllQueryStringTypesInput'); @override Iterable get types => const [AllQueryStringTypesInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AllQueryStringTypesInput deserialize( @@ -403,144 +311,175 @@ class AllQueryStringTypesInputRestXmlSerializer } switch (key) { case 'queryString': - result.queryString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.queryString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'queryStringList': - result.queryStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.queryStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'queryStringSet': - result.queryStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.queryStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'queryByte': - result.queryByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryShort': - result.queryShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryInteger': - result.queryInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.queryInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'queryIntegerList': - result.queryIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.queryIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'queryIntegerSet': - result.queryIntegerSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(int)], - ), - ) as _i4.BuiltSet)); + result.queryIntegerSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [FullType(int)]), + ) + as _i4.BuiltSet), + ); case 'queryLong': - result.queryLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i5.Int64), - ) as _i5.Int64); + result.queryLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.Int64), + ) + as _i5.Int64); case 'queryFloat': - result.queryFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDouble': - result.queryDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.queryDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'queryDoubleList': - result.queryDoubleList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(double)], - ), - ) as _i4.BuiltList)); + result.queryDoubleList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(double), + ]), + ) + as _i4.BuiltList), + ); case 'queryBoolean': - result.queryBoolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.queryBoolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'queryBooleanList': - result.queryBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); - case 'queryTimestamp': - result.queryTimestamp = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, + result.queryBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), ); + case 'queryTimestamp': + result.queryTimestamp = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'queryTimestampList': - result.queryTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.queryTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'queryEnum': - result.queryEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.queryEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'queryEnumList': - result.queryEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.queryEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryIntegerEnum': - result.queryIntegerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.queryIntegerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'queryIntegerEnumList': - result.queryIntegerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.queryIntegerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'queryParamsMapOfStrings': - result.queryParamsMapOfStrings.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.queryParamsMapOfStrings.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart index b8f958982a..6cbdb51b7a 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/body_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.body_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,105 +13,90 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'BodyWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: BodyWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'BodyWithXmlName', - documentation: - 'Serializes a payload using a wrapper name based on the xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/BodyWithXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - BodyWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'BodyWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: BodyWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'BodyWithXmlName', - documentation: - 'Serializes a payload using a wrapper name based on the xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - BodyWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('BodyWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: BodyWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'BodyWithXmlName', + documentation: + 'Serializes a payload using a wrapper name based on the xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/BodyWithXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + BodyWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); + _i1.test('BodyWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: BodyWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'BodyWithXmlName', + documentation: + 'Serializes a payload using a wrapper name based on the xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + BodyWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); } class BodyWithXmlNameInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const BodyWithXmlNameInputOutputRestXmlSerializer() - : super('BodyWithXmlNameInputOutput'); + : super('BodyWithXmlNameInputOutput'); @override Iterable get types => const [BodyWithXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override BodyWithXmlNameInputOutput deserialize( @@ -130,10 +115,13 @@ class BodyWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -159,11 +147,8 @@ class PayloadWithXmlNameRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -182,10 +167,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart index e3b4e71d00..313a96a8f9 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_and_variable_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.constant_and_variable_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,113 +12,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'ConstantAndVariableQueryStringMissingOneValue (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantAndVariableQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'ConstantAndVariableQueryStringMissingOneValue', - documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'baz': 'bam'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantAndVariableQueryString', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - ], - forbidQueryParams: ['maybeSet'], - requireQueryParams: [], - ), - inputSerializers: const [ - ConstantAndVariableQueryStringInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'ConstantAndVariableQueryStringAllValues (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantAndVariableQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'ConstantAndVariableQueryStringAllValues', - documentation: 'Mixes constant and variable query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'baz': 'bam', - 'maybeSet': 'yes', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantAndVariableQueryString', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'baz=bam', - 'maybeSet=yes', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - ConstantAndVariableQueryStringInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('ConstantAndVariableQueryStringMissingOneValue (request)', () async { + await _i2.httpRequestTest( + operation: ConstantAndVariableQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ConstantAndVariableQueryStringMissingOneValue', + documentation: 'Mixes constant and variable query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'baz': 'bam'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantAndVariableQueryString', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'baz=bam'], + forbidQueryParams: ['maybeSet'], + requireQueryParams: [], + ), + inputSerializers: const [ + ConstantAndVariableQueryStringInputRestXmlSerializer(), + ], + ); + }); + _i1.test('ConstantAndVariableQueryStringAllValues (request)', () async { + await _i2.httpRequestTest( + operation: ConstantAndVariableQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ConstantAndVariableQueryStringAllValues', + documentation: 'Mixes constant and variable query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'baz': 'bam', 'maybeSet': 'yes'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantAndVariableQueryString', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'baz=bam', 'maybeSet=yes'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + ConstantAndVariableQueryStringInputRestXmlSerializer(), + ], + ); + }); } -class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class ConstantAndVariableQueryStringInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const ConstantAndVariableQueryStringInputRestXmlSerializer() - : super('ConstantAndVariableQueryStringInput'); + : super('ConstantAndVariableQueryStringInput'); @override Iterable get types => const [ConstantAndVariableQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantAndVariableQueryStringInput deserialize( @@ -137,15 +113,19 @@ class ConstantAndVariableQueryStringInputRestXmlSerializer extends _i3 } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'maybeSet': - result.maybeSet = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.maybeSet = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart index 7d991e7349..8e4a055d13 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/constant_query_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.constant_query_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,64 +12,52 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'ConstantQueryString (request)', - () async { - await _i2.httpRequestTest( - operation: ConstantQueryStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'ConstantQueryString', - documentation: 'Includes constant query string parameters', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'hello': 'hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/ConstantQueryString/hi', - host: null, - resolvedHost: null, - queryParams: [ - 'foo=bar', - 'hello', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ConstantQueryStringInputRestXmlSerializer()], - ); - }, - ); + _i1.test('ConstantQueryString (request)', () async { + await _i2.httpRequestTest( + operation: ConstantQueryStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'ConstantQueryString', + documentation: 'Includes constant query string parameters', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'hello': 'hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/ConstantQueryString/hi', + host: null, + resolvedHost: null, + queryParams: ['foo=bar', 'hello'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ConstantQueryStringInputRestXmlSerializer()], + ); + }); } class ConstantQueryStringInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const ConstantQueryStringInputRestXmlSerializer() - : super('ConstantQueryStringInput'); + : super('ConstantQueryStringInput'); @override Iterable get types => const [ConstantQueryStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ConstantQueryStringInput deserialize( @@ -88,10 +76,12 @@ class ConstantQueryStringInputRestXmlSerializer } switch (key) { case 'hello': - result.hello = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hello = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart index ed23684f6c..48f14dfeb8 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/datetime_offsets_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.datetime_offsets_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,91 +12,76 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlDateTimeWithNegativeOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlDateTimeWithNegativeOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2019-12-16T22:48:18-01:00\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'RestXmlDateTimeWithPositiveOffset (response)', - () async { - await _i2.httpResponseTest( - operation: DatetimeOffsetsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlDateTimeWithPositiveOffset', - documentation: - 'Ensures that clients can correctly parse datetime (timestamps) with offsets', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2019-12-17T00:48:18+01:00\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 1576540098}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlDateTimeWithNegativeOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlDateTimeWithNegativeOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2019-12-16T22:48:18-01:00\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], + ); + }); + _i1.test('RestXmlDateTimeWithPositiveOffset (response)', () async { + await _i2.httpResponseTest( + operation: DatetimeOffsetsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlDateTimeWithPositiveOffset', + documentation: + 'Ensures that clients can correctly parse datetime (timestamps) with offsets', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2019-12-17T00:48:18+01:00\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 1576540098}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [DatetimeOffsetsOutputRestXmlSerializer()], + ); + }); } class DatetimeOffsetsOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const DatetimeOffsetsOutputRestXmlSerializer() - : super('DatetimeOffsetsOutput'); + : super('DatetimeOffsetsOutput'); @override Iterable get types => const [DatetimeOffsetsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DatetimeOffsetsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart index eb0993d795..f15b3a72e5 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/empty_input_and_empty_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.empty_input_and_empty_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,97 +13,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'EmptyInputAndEmptyOutput (request)', - () async { - await _i2.httpRequestTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'EmptyInputAndEmptyOutput', - documentation: 'Empty input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EmptyInputAndEmptyOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - EmptyInputAndEmptyOutputInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'EmptyInputAndEmptyOutput (response)', - () async { - await _i2.httpResponseTest( - operation: EmptyInputAndEmptyOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'EmptyInputAndEmptyOutput', - documentation: 'Empty output serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - EmptyInputAndEmptyOutputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('EmptyInputAndEmptyOutput (request)', () async { + await _i2.httpRequestTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'EmptyInputAndEmptyOutput', + documentation: 'Empty input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EmptyInputAndEmptyOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + EmptyInputAndEmptyOutputInputRestXmlSerializer(), + ], + ); + }); + _i1.test('EmptyInputAndEmptyOutput (response)', () async { + await _i2.httpResponseTest( + operation: EmptyInputAndEmptyOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'EmptyInputAndEmptyOutput', + documentation: 'Empty output serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + EmptyInputAndEmptyOutputOutputRestXmlSerializer(), + ], + ); + }); } class EmptyInputAndEmptyOutputInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputInputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputInput'); + : super('EmptyInputAndEmptyOutputInput'); @override Iterable get types => const [EmptyInputAndEmptyOutputInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputInput deserialize( @@ -127,18 +112,15 @@ class EmptyInputAndEmptyOutputInputRestXmlSerializer class EmptyInputAndEmptyOutputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const EmptyInputAndEmptyOutputOutputRestXmlSerializer() - : super('EmptyInputAndEmptyOutputOutput'); + : super('EmptyInputAndEmptyOutputOutput'); @override Iterable get types => const [EmptyInputAndEmptyOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EmptyInputAndEmptyOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_operation_test.dart index aa1bfd06da..a3bdce1de0 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.endpoint_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,43 +10,37 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlEndpointTrait (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlEndpointTrait', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointOperation', - host: 'example.com', - resolvedHost: 'foo.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); + _i1.test('RestXmlEndpointTrait (request)', () async { + await _i2.httpRequestTest( + operation: EndpointOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlEndpointTrait', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointOperation', + host: 'example.com', + resolvedHost: 'foo.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart index 1f1640cb72..d8ac7bb203 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_header_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.endpoint_with_host_label_header_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,39 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlEndpointTraitWithHostLabelAndHttpBinding (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelHeaderOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlEndpointTraitWithHostLabelAndHttpBinding', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input. The label must also\nbe serialized in into any other location it is bound to, such\nas the body or in this case an http header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/xml', - params: {'accountId': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Amz-Account-Id': 'bar'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointWithHostLabelHeaderOperation', - host: 'example.com', - resolvedHost: 'bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelHeaderInputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlEndpointTraitWithHostLabelAndHttpBinding (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelHeaderOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlEndpointTraitWithHostLabelAndHttpBinding', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input. The label must also\nbe serialized in into any other location it is bound to, such\nas the body or in this case an http header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: 'application/xml', + params: {'accountId': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Amz-Account-Id': 'bar'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointWithHostLabelHeaderOperation', + host: 'example.com', + resolvedHost: 'bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelHeaderInputRestXmlSerializer()], + ); + }); } class HostLabelHeaderInputRestXmlSerializer @@ -62,11 +56,8 @@ class HostLabelHeaderInputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelHeaderInput deserialize( @@ -85,10 +76,12 @@ class HostLabelHeaderInputRestXmlSerializer } switch (key) { case 'accountId': - result.accountId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.accountId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart index 0732a9045c..fac720c22a 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/endpoint_with_host_label_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.endpoint_with_host_label_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,39 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlEndpointTraitWithHostLabel (request)', - () async { - await _i2.httpRequestTest( - operation: EndpointWithHostLabelOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlEndpointTraitWithHostLabel', - documentation: - 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '\n \n\n', - bodyMediaType: 'application/xml', - params: {'label': 'bar'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/EndpointWithHostLabelOperation', - host: 'example.com', - resolvedHost: 'foo.bar.example.com', - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HostLabelInputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlEndpointTraitWithHostLabel (request)', () async { + await _i2.httpRequestTest( + operation: EndpointWithHostLabelOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlEndpointTraitWithHostLabel', + documentation: + 'Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '\n \n\n', + bodyMediaType: 'application/xml', + params: {'label': 'bar'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/EndpointWithHostLabelOperation', + host: 'example.com', + resolvedHost: 'foo.bar.example.com', + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HostLabelInputRestXmlSerializer()], + ); + }); } class HostLabelInputRestXmlSerializer @@ -62,11 +56,8 @@ class HostLabelInputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HostLabelInput deserialize( @@ -85,10 +76,12 @@ class HostLabelInputRestXmlSerializer } switch (key) { case 'label': - result.label = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.label = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart index 575d538f90..7a31a693f8 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.flattened_xml_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,107 +14,84 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'FlattenedXmlMap (request)', - () async { - await _i2.httpRequestTest( - operation: FlattenedXmlMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'FlattenedXmlMap', - documentation: 'Serializes flattened XML maps in requests', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': 'Foo', - 'baz': 'Baz', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/FlattenedXmlMap', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [FlattenedXmlMapInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'FlattenedXmlMap (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'FlattenedXmlMap', - documentation: 'Serializes flattened XML maps in responses', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': 'Foo', - 'baz': 'Baz', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('FlattenedXmlMap (request)', () async { + await _i2.httpRequestTest( + operation: FlattenedXmlMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlattenedXmlMap', + documentation: 'Serializes flattened XML maps in requests', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'foo': 'Foo', 'baz': 'Baz'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/FlattenedXmlMap', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [FlattenedXmlMapInputOutputRestXmlSerializer()], + ); + }); + _i1.test('FlattenedXmlMap (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'FlattenedXmlMap', + documentation: 'Serializes flattened XML maps in responses', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n Foo\n \n \n baz\n Baz\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'foo': 'Foo', 'baz': 'Baz'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FlattenedXmlMapInputOutputRestXmlSerializer()], + ); + }); } class FlattenedXmlMapInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const FlattenedXmlMapInputOutputRestXmlSerializer() - : super('FlattenedXmlMapInputOutput'); + : super('FlattenedXmlMapInputOutput'); @override Iterable get types => const [FlattenedXmlMapInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapInputOutput deserialize( @@ -133,16 +110,16 @@ class FlattenedXmlMapInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart index 4a97d8147f..1bbb829e98 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.flattened_xml_map_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,111 +13,91 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'FlattenedXmlMapWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: FlattenedXmlMapWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'FlattenedXmlMapWithXmlName', - documentation: - 'Serializes flattened XML maps in requests that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n a\n A\n \n \n b\n B\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/FlattenedXmlMapWithXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'FlattenedXmlMapWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'FlattenedXmlMapWithXmlName', - documentation: - 'Serializes flattened XML maps in responses that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n a\n A\n \n \n b\n B\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('FlattenedXmlMapWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: FlattenedXmlMapWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlattenedXmlMapWithXmlName', + documentation: + 'Serializes flattened XML maps in requests that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n a\n A\n \n \n b\n B\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/FlattenedXmlMapWithXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('FlattenedXmlMapWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'FlattenedXmlMapWithXmlName', + documentation: + 'Serializes flattened XML maps in responses that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n a\n A\n \n \n b\n B\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer(), + ], + ); + }); } -class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNameInputOutput'); + : super('FlattenedXmlMapWithXmlNameInputOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNameInputOutput deserialize( @@ -136,16 +116,16 @@ class FlattenedXmlMapWithXmlNameInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart index 69d69ddeed..fd343be5d1 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/flattened_xml_map_with_xml_namespace_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.flattened_xml_map_with_xml_namespace_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,64 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlFlattenedXmlMapWithXmlNamespace (response)', - () async { - await _i2.httpResponseTest( - operation: FlattenedXmlMapWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlFlattenedXmlMapWithXmlNamespace', - documentation: - 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n a\n A\n \n \n b\n B\n \n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'a': 'A', - 'b': 'B', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('RestXmlFlattenedXmlMapWithXmlNamespace (response)', () async { + await _i2.httpResponseTest( + operation: FlattenedXmlMapWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlFlattenedXmlMapWithXmlNamespace', + documentation: + 'Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n a\n A\n \n \n b\n B\n \n', + bodyMediaType: 'application/xml', + params: { + 'myMap': {'a': 'A', 'b': 'B'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer(), + ], + ); + }); } -class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer() - : super('FlattenedXmlMapWithXmlNamespaceOutput'); + : super('FlattenedXmlMapWithXmlNamespaceOutput'); @override Iterable get types => const [FlattenedXmlMapWithXmlNamespaceOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FlattenedXmlMapWithXmlNamespaceOutput deserialize( @@ -89,16 +78,16 @@ class FlattenedXmlMapWithXmlNamespaceOutputRestXmlSerializer extends _i3 } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart index 13577be986..1234518d6d 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/fractional_seconds_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.fractional_seconds_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,57 +12,48 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlDateTimeWithFractionalSeconds (response)', - () async { - await _i2.httpResponseTest( - operation: FractionalSecondsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlDateTimeWithFractionalSeconds', - documentation: - 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2000-01-02T20:34:56.123Z\n\n', - bodyMediaType: 'application/xml', - params: {'datetime': 946845296.123}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [FractionalSecondsOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlDateTimeWithFractionalSeconds (response)', () async { + await _i2.httpResponseTest( + operation: FractionalSecondsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlDateTimeWithFractionalSeconds', + documentation: + 'Ensures that clients can correctly parse datetime timestamps with fractional seconds', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2000-01-02T20:34:56.123Z\n\n', + bodyMediaType: 'application/xml', + params: {'datetime': 946845296.123}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [FractionalSecondsOutputRestXmlSerializer()], + ); + }); } class FractionalSecondsOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const FractionalSecondsOutputRestXmlSerializer() - : super('FractionalSecondsOutput'); + : super('FractionalSecondsOutput'); @override Iterable get types => const [FractionalSecondsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FractionalSecondsOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart index fcd7044da3..90ea05e7c4 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/greeting_with_errors_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.greeting_with_errors_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,142 +15,120 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'GreetingWithErrors (response)', - () async { - await _i2.httpResponseTest( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'GreetingWithErrors', - documentation: - 'Ensures that operations with errors successfully know how to deserialize the successful response', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'greeting': 'Hello'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Greeting': 'Hello'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GreetingWithErrorsOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'ComplexError (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - ComplexError>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'ComplexError', - documentation: null, - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Sender\n ComplexError\n Hi\n Top level\n \n bar\n \n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: { - 'Header': 'Header', - 'TopLevel': 'Top level', - 'Nested': {'Foo': 'bar'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Header': 'Header', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [ - ComplexErrorRestXmlSerializer(), - ComplexNestedErrorDataRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'InvalidGreetingError (error)', - () async { - await _i2.httpErrorResponseTest< - _i3.Unit, - _i3.Unit, - GreetingWithErrorsOutputPayload, - GreetingWithErrorsOutput, - InvalidGreeting>( - operation: GreetingWithErrorsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InvalidGreetingError', - documentation: 'Parses simple XML errors', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Sender\n InvalidGreeting\n Hi\n setting\n \n foo-id\n\n', - bodyMediaType: 'application/xml', - params: {'Message': 'Hi'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 400, - ), - errorSerializers: const [InvalidGreetingRestXmlSerializer()], - ); - }, - ); + _i1.test('GreetingWithErrors (response)', () async { + await _i2.httpResponseTest( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'GreetingWithErrors', + documentation: + 'Ensures that operations with errors successfully know how to deserialize the successful response', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'greeting': 'Hello'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Greeting': 'Hello'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GreetingWithErrorsOutputRestXmlSerializer()], + ); + }); + _i1.test('ComplexError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + ComplexError + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'ComplexError', + documentation: null, + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Sender\n ComplexError\n Hi\n Top level\n \n bar\n \n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: { + 'Header': 'Header', + 'TopLevel': 'Top level', + 'Nested': {'Foo': 'bar'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Header': 'Header'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [ + ComplexErrorRestXmlSerializer(), + ComplexNestedErrorDataRestXmlSerializer(), + ], + ); + }); + _i1.test('InvalidGreetingError (error)', () async { + await _i2.httpErrorResponseTest< + _i3.Unit, + _i3.Unit, + GreetingWithErrorsOutputPayload, + GreetingWithErrorsOutput, + InvalidGreeting + >( + operation: GreetingWithErrorsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InvalidGreetingError', + documentation: 'Parses simple XML errors', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Sender\n InvalidGreeting\n Hi\n setting\n \n foo-id\n\n', + bodyMediaType: 'application/xml', + params: {'Message': 'Hi'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 400, + ), + errorSerializers: const [InvalidGreetingRestXmlSerializer()], + ); + }); } class GreetingWithErrorsOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const GreetingWithErrorsOutputRestXmlSerializer() - : super('GreetingWithErrorsOutput'); + : super('GreetingWithErrorsOutput'); @override Iterable get types => const [GreetingWithErrorsOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingWithErrorsOutput deserialize( @@ -169,10 +147,12 @@ class GreetingWithErrorsOutputRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -198,11 +178,8 @@ class ComplexErrorRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexError deserialize( @@ -221,20 +198,27 @@ class ComplexErrorRestXmlSerializer } switch (key) { case 'Header': - result.header = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.header = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'TopLevel': - result.topLevel = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.topLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(ComplexNestedErrorData), - ) as ComplexNestedErrorData)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ComplexNestedErrorData), + ) + as ComplexNestedErrorData), + ); } } @@ -254,18 +238,15 @@ class ComplexErrorRestXmlSerializer class ComplexNestedErrorDataRestXmlSerializer extends _i3.StructuredSmithySerializer { const ComplexNestedErrorDataRestXmlSerializer() - : super('ComplexNestedErrorData'); + : super('ComplexNestedErrorData'); @override Iterable get types => const [ComplexNestedErrorData]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ComplexNestedErrorData deserialize( @@ -284,10 +265,12 @@ class ComplexNestedErrorDataRestXmlSerializer } switch (key) { case 'Foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -313,11 +296,8 @@ class InvalidGreetingRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InvalidGreeting deserialize( @@ -336,10 +316,12 @@ class InvalidGreetingRestXmlSerializer } switch (key) { case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart index 8a93617246..1c56bdd2d9 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_payload_traits_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,177 +14,140 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadTraitsWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithNoBlobBody (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraits', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadTraitsWithBlob', - documentation: 'Serializes a blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithNoBlobBody (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadTraitsWithNoBlobBody', - documentation: 'Serializes an empty blob in the HTTP payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'foo': 'Foo'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpPayloadTraitsWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPayloadTraitsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPayloadTraitsWithNoBlobBody (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraits', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPayloadTraitsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPayloadTraitsWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadTraitsWithBlob', + documentation: 'Serializes a blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadTraitsWithNoBlobBody (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadTraitsWithNoBlobBody', + documentation: 'Serializes an empty blob in the HTTP payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsInputOutputRestXmlSerializer(), + ], + ); + }); } class HttpPayloadTraitsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpPayloadTraitsInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsInputOutput'); + : super('HttpPayloadTraitsInputOutput'); @override Iterable get types => const [HttpPayloadTraitsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadTraitsInputOutput deserialize( @@ -203,15 +166,19 @@ class HttpPayloadTraitsInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart index c2384cf7e5..7db266d647 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_traits_with_media_type_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_payload_traits_with_media_type_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,111 +14,87 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadTraitsWithMediaTypeWithBlob (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/HttpPayloadTraitsWithMediaType', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPayloadTraitsWithMediaTypeWithBlob (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadTraitsWithMediaTypeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadTraitsWithMediaTypeWithBlob', - documentation: - 'Serializes a blob in the HTTP payload with a content-type', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'blobby blob blob', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'blob': 'blobby blob blob', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'Content-Type': 'text/plain', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpPayloadTraitsWithMediaTypeWithBlob (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/HttpPayloadTraitsWithMediaType', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadTraitsWithMediaTypeWithBlob (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadTraitsWithMediaTypeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadTraitsWithMediaTypeWithBlob', + documentation: + 'Serializes a blob in the HTTP payload with a content-type', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'blobby blob blob', + bodyMediaType: null, + params: {'foo': 'Foo', 'blob': 'blobby blob blob'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo', 'Content-Type': 'text/plain'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer< + HttpPayloadTraitsWithMediaTypeInputOutput + > { const HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer() - : super('HttpPayloadTraitsWithMediaTypeInputOutput'); + : super('HttpPayloadTraitsWithMediaTypeInputOutput'); @override Iterable get types => const [HttpPayloadTraitsWithMediaTypeInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadTraitsWithMediaTypeInputOutput deserialize( @@ -137,15 +113,19 @@ class HttpPayloadTraitsWithMediaTypeInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'blob': - result.blob = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.blob = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart index 8efbbbdde5..a460711670 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_member_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_payload_with_member_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,105 +13,93 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithMemberXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithMemberXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithMemberXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on member xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithMemberXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithMemberXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithMemberXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithMemberXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on member xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithMemberXmlName (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithMemberXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithMemberXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on member xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithMemberXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithMemberXmlName (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithMemberXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithMemberXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on member xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer< + HttpPayloadWithMemberXmlNameInputOutput + > { const HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithMemberXmlNameInputOutput'); + : super('HttpPayloadWithMemberXmlNameInputOutput'); @override Iterable get types => const [HttpPayloadWithMemberXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithMemberXmlNameInputOutput deserialize( @@ -130,10 +118,13 @@ class HttpPayloadWithMemberXmlNameInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -159,11 +150,8 @@ class PayloadWithXmlNameRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -182,10 +170,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart index 9607ccf4e1..631fee9939 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_structure_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_payload_with_structure_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,111 +13,91 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithStructure (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hello\n Phreddy\n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithStructure', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithStructureInputOutputRestXmlSerializer(), - NestedPayloadRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithStructure (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithStructureOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithStructure', - documentation: 'Serializes a structure in the payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hello\n Phreddy\n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'greeting': 'hello', - 'name': 'Phreddy', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithStructureInputOutputRestXmlSerializer(), - NestedPayloadRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithStructure (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hello\n Phreddy\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithStructure', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithStructureInputOutputRestXmlSerializer(), + NestedPayloadRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithStructure (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithStructureOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithStructure', + documentation: 'Serializes a structure in the payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hello\n Phreddy\n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'greeting': 'hello', 'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithStructureInputOutputRestXmlSerializer(), + NestedPayloadRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadWithStructureInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithStructureInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const HttpPayloadWithStructureInputOutputRestXmlSerializer() - : super('HttpPayloadWithStructureInputOutput'); + : super('HttpPayloadWithStructureInputOutput'); @override Iterable get types => const [HttpPayloadWithStructureInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithStructureInputOutput deserialize( @@ -136,10 +116,13 @@ class HttpPayloadWithStructureInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedPayload), - ) as NestedPayload)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedPayload), + ) + as NestedPayload), + ); } } @@ -165,11 +148,8 @@ class NestedPayloadRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedPayload deserialize( @@ -188,15 +168,19 @@ class NestedPayloadRestXmlSerializer } switch (key) { case 'greeting': - result.greeting = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.greeting = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart index 6b9b7ef0f8..19b7eec120 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_payload_with_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,105 +13,90 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithXmlName', - documentation: - 'Serializes a structure in the payload using a wrapper name based on xmlName', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: 'Phreddy', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), - PayloadWithXmlNameRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithXmlName (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithXmlName (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithXmlName', + documentation: + 'Serializes a structure in the payload using a wrapper name based on xmlName', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: 'Phreddy', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithXmlNameInputOutputRestXmlSerializer(), + PayloadWithXmlNameRestXmlSerializer(), + ], + ); + }); } class HttpPayloadWithXmlNameInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpPayloadWithXmlNameInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNameInputOutput'); + : super('HttpPayloadWithXmlNameInputOutput'); @override Iterable get types => const [HttpPayloadWithXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithXmlNameInputOutput deserialize( @@ -130,10 +115,13 @@ class HttpPayloadWithXmlNameInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlName), - ) as PayloadWithXmlName)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlName), + ) + as PayloadWithXmlName), + ); } } @@ -159,11 +147,8 @@ class PayloadWithXmlNameRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlName deserialize( @@ -182,10 +167,12 @@ class PayloadWithXmlNameRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart index 873188a0a2..2a6ba059ad 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_and_prefix_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_payload_with_xml_namespace_and_prefix_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,109 +13,97 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithXmlNamespaceAndPrefix (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithXmlNamespaceAndPrefix', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithXmlNamespaceAndPrefix', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithXmlNamespaceAndPrefix (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithXmlNamespaceAndPrefix', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithXmlNamespaceAndPrefix (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithXmlNamespaceAndPrefix', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithXmlNamespaceAndPrefix', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithXmlNamespaceAndPrefix (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithXmlNamespaceAndPrefixOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithXmlNamespaceAndPrefix', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceAndPrefixRestXmlSerializer(), + ], + ); + }); } class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer - extends _i3.StructuredSmithySerializer< - HttpPayloadWithXmlNamespaceAndPrefixInputOutput> { + extends + _i3.StructuredSmithySerializer< + HttpPayloadWithXmlNamespaceAndPrefixInputOutput + > { const HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); + : super('HttpPayloadWithXmlNamespaceAndPrefixInputOutput'); @override - Iterable get types => - const [HttpPayloadWithXmlNamespaceAndPrefixInputOutput]; + Iterable get types => const [ + HttpPayloadWithXmlNamespaceAndPrefixInputOutput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithXmlNamespaceAndPrefixInputOutput deserialize( @@ -134,10 +122,15 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlNamespaceAndPrefix), - ) as PayloadWithXmlNamespaceAndPrefix)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + PayloadWithXmlNamespaceAndPrefix, + ), + ) + as PayloadWithXmlNamespaceAndPrefix), + ); } } @@ -157,18 +150,15 @@ class HttpPayloadWithXmlNamespaceAndPrefixInputOutputRestXmlSerializer class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer extends _i3.StructuredSmithySerializer { const PayloadWithXmlNamespaceAndPrefixRestXmlSerializer() - : super('PayloadWithXmlNamespaceAndPrefix'); + : super('PayloadWithXmlNamespaceAndPrefix'); @override Iterable get types => const [PayloadWithXmlNamespaceAndPrefix]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespaceAndPrefix deserialize( @@ -187,10 +177,12 @@ class PayloadWithXmlNamespaceAndPrefixRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart index a8a336e537..6a2ca1af53 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_payload_with_xml_namespace_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_payload_with_xml_namespace_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,107 +13,93 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPayloadWithXmlNamespace (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPayloadWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPayloadWithXmlNamespace', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: ['Content-Length'], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/HttpPayloadWithXmlNamespace', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'HttpPayloadWithXmlNamespace (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPayloadWithXmlNamespaceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPayloadWithXmlNamespace', - documentation: - 'Serializes a structure in the payload using a wrapper with an XML namespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Phreddy\n', - bodyMediaType: 'application/xml', - params: { - 'nested': {'name': 'Phreddy'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), - PayloadWithXmlNamespaceRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('HttpPayloadWithXmlNamespace (request)', () async { + await _i2.httpRequestTest( + operation: HttpPayloadWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPayloadWithXmlNamespace', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: ['Content-Length'], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/HttpPayloadWithXmlNamespace', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPayloadWithXmlNamespace (response)', () async { + await _i2.httpResponseTest( + operation: HttpPayloadWithXmlNamespaceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPayloadWithXmlNamespace', + documentation: + 'Serializes a structure in the payload using a wrapper with an XML namespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Phreddy\n', + bodyMediaType: 'application/xml', + params: { + 'nested': {'name': 'Phreddy'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer(), + PayloadWithXmlNamespaceRestXmlSerializer(), + ], + ); + }); } -class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer() - : super('HttpPayloadWithXmlNamespaceInputOutput'); + : super('HttpPayloadWithXmlNamespaceInputOutput'); @override Iterable get types => const [HttpPayloadWithXmlNamespaceInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPayloadWithXmlNamespaceInputOutput deserialize( @@ -132,10 +118,13 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i3 } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(PayloadWithXmlNamespace), - ) as PayloadWithXmlNamespace)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(PayloadWithXmlNamespace), + ) + as PayloadWithXmlNamespace), + ); } } @@ -155,18 +144,15 @@ class HttpPayloadWithXmlNamespaceInputOutputRestXmlSerializer extends _i3 class PayloadWithXmlNamespaceRestXmlSerializer extends _i3.StructuredSmithySerializer { const PayloadWithXmlNamespaceRestXmlSerializer() - : super('PayloadWithXmlNamespace'); + : super('PayloadWithXmlNamespace'); @override Iterable get types => const [PayloadWithXmlNamespace]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PayloadWithXmlNamespace deserialize( @@ -185,10 +171,12 @@ class PayloadWithXmlNamespaceRestXmlSerializer } switch (key) { case 'name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart index dde46c819e..f0d541eaaa 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_prefix_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_prefix_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,199 +13,156 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpPrefixHeadersArePresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPrefixHeadersAreNotPresent (request)', - () async { - await _i2.httpRequestTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpPrefixHeadersAreNotPresent', - documentation: - 'No prefix headers are serialized because the value is empty', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': {}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/HttpPrefixHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPrefixHeadersArePresent (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPrefixHeadersArePresent', - documentation: 'Adds headers by prefix', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': { - 'Abc': 'Abc value', - 'Def': 'Def value', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Foo': 'Foo', - 'X-Foo-Abc': 'Abc value', - 'X-Foo-Def': 'Def value', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'HttpPrefixHeadersAreNotPresent (response)', - () async { - await _i2.httpResponseTest( - operation: HttpPrefixHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'HttpPrefixHeadersAreNotPresent', - documentation: - 'No prefix headers are serialized because the value is empty', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'Foo', - 'fooMap': {}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'X-Foo': 'Foo'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - HttpPrefixHeadersInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpPrefixHeadersArePresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPrefixHeadersAreNotPresent (request)', () async { + await _i2.httpRequestTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpPrefixHeadersAreNotPresent', + documentation: + 'No prefix headers are serialized because the value is empty', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo', 'fooMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/HttpPrefixHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpPrefixHeadersInputOutputRestXmlSerializer()], + ); + }); + _i1.test('HttpPrefixHeadersArePresent (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPrefixHeadersArePresent', + documentation: 'Adds headers by prefix', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'Foo', + 'fooMap': {'Abc': 'Abc value', 'Def': 'Def value'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Foo': 'Foo', + 'X-Foo-Abc': 'Abc value', + 'X-Foo-Def': 'Def value', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPrefixHeadersInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('HttpPrefixHeadersAreNotPresent (response)', () async { + await _i2.httpResponseTest( + operation: HttpPrefixHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'HttpPrefixHeadersAreNotPresent', + documentation: + 'No prefix headers are serialized because the value is empty', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'Foo', 'fooMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + HttpPrefixHeadersInputOutputRestXmlSerializer(), + ], + ); + }); } class HttpPrefixHeadersInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpPrefixHeadersInputOutputRestXmlSerializer() - : super('HttpPrefixHeadersInputOutput'); + : super('HttpPrefixHeadersInputOutput'); @override Iterable get types => const [HttpPrefixHeadersInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpPrefixHeadersInputOutput deserialize( @@ -224,21 +181,23 @@ class HttpPrefixHeadersInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'fooMap': - result.fooMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.fooMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart index 24a3fc8f46..a76dee8459 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_float_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_request_with_float_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,152 +12,122 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlSupportsNaNFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatLabels', - documentation: 'Supports handling NaN float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'NaN', - 'double': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/NaN/NaN', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatLabels', - documentation: 'Supports handling Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': 'Infinity', - 'double': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/Infinity/Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNegativeInfinityFloatLabels (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithFloatLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNegativeInfinityFloatLabels', - documentation: 'Supports handling -Infinity float label values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'float': '-Infinity', - 'double': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/FloatHttpLabels/-Infinity/-Infinity', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithFloatLabelsInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('RestXmlSupportsNaNFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatLabels', + documentation: 'Supports handling NaN float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'NaN', 'double': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/NaN/NaN', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatLabels', + documentation: 'Supports handling Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': 'Infinity', 'double': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/Infinity/Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNegativeInfinityFloatLabels (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithFloatLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNegativeInfinityFloatLabels', + documentation: 'Supports handling -Infinity float label values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'float': '-Infinity', 'double': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/FloatHttpLabels/-Infinity/-Infinity', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithFloatLabelsInputRestXmlSerializer(), + ], + ); + }); } class HttpRequestWithFloatLabelsInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpRequestWithFloatLabelsInputRestXmlSerializer() - : super('HttpRequestWithFloatLabelsInput'); + : super('HttpRequestWithFloatLabelsInput'); @override Iterable get types => const [HttpRequestWithFloatLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithFloatLabelsInput deserialize( @@ -176,15 +146,19 @@ class HttpRequestWithFloatLabelsInputRestXmlSerializer } switch (key) { case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart index 3a34d633dd..a5236874d2 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_greedy_label_in_path_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_request_with_greedy_label_in_path_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,66 +12,55 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpRequestWithGreedyLabelInPath (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithGreedyLabelInPathOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpRequestWithGreedyLabelInPath', - documentation: 'Serializes greedy labels and normal labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'hello', - 'baz': 'there/guy', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/HttpRequestWithGreedyLabelInPath/foo/hello/baz/there/guy', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithGreedyLabelInPathInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpRequestWithGreedyLabelInPath (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithGreedyLabelInPathOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpRequestWithGreedyLabelInPath', + documentation: 'Serializes greedy labels and normal labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'foo': 'hello', 'baz': 'there/guy'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/HttpRequestWithGreedyLabelInPath/foo/hello/baz/there/guy', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithGreedyLabelInPathInputRestXmlSerializer(), + ], + ); + }); } -class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const HttpRequestWithGreedyLabelInPathInputRestXmlSerializer() - : super('HttpRequestWithGreedyLabelInPathInput'); + : super('HttpRequestWithGreedyLabelInPathInput'); @override Iterable get types => const [HttpRequestWithGreedyLabelInPathInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithGreedyLabelInPathInput deserialize( @@ -90,15 +79,19 @@ class HttpRequestWithGreedyLabelInPathInputRestXmlSerializer extends _i3 } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart index b16402d3e0..66a487cb51 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_and_timestamp_format_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_request_with_labels_and_timestamp_format_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,73 +12,68 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'HttpRequestWithLabelsAndTimestampFormat (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsAndTimestampFormatOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpRequestWithLabelsAndTimestampFormat', - documentation: 'Serializes different timestamp formats in URI labels', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('HttpRequestWithLabelsAndTimestampFormat (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsAndTimestampFormatOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpRequestWithLabelsAndTimestampFormat', + documentation: 'Serializes different timestamp formats in URI labels', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabelsAndTimestampFormat/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z/2019-12-16T23%3A48%3A18Z/1576540098/Mon%2C%2016%20Dec%202019%2023%3A48%3A18%20GMT/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer(), + ], + ); + }); } -class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer< + HttpRequestWithLabelsAndTimestampFormatInput + > { const HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer() - : super('HttpRequestWithLabelsAndTimestampFormatInput'); + : super('HttpRequestWithLabelsAndTimestampFormatInput'); @override - Iterable get types => - const [HttpRequestWithLabelsAndTimestampFormatInput]; + Iterable get types => const [ + HttpRequestWithLabelsAndTimestampFormatInput, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsAndTimestampFormatInput deserialize( @@ -97,47 +92,26 @@ class HttpRequestWithLabelsAndTimestampFormatInputRestXmlSerializer extends _i3 } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart index 997408b617..4d1edb73f6 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_request_with_labels_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_request_with_labels_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,119 +13,104 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'InputWithHeadersAndAllParams (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputWithHeadersAndAllParams', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': 'string', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'HttpRequestLabelEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: HttpRequestWithLabelsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'HttpRequestLabelEscaping', - documentation: 'Sends a GET request that uses URI label bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'string': ' %:/?#[]@!\$&\'()*+,;=😹', - 'short': 1, - 'integer': 2, - 'long': 3, - 'float': 4.1, - 'double': 5.1, - 'boolean': true, - 'timestamp': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: - '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], - ); - }, - ); + _i1.test('InputWithHeadersAndAllParams (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputWithHeadersAndAllParams', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': 'string', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], + ); + }); + _i1.test('HttpRequestLabelEscaping (request)', () async { + await _i2.httpRequestTest( + operation: HttpRequestWithLabelsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'HttpRequestLabelEscaping', + documentation: 'Sends a GET request that uses URI label bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'string': ' %:/?#[]@!\$&\'()*+,;=😹', + 'short': 1, + 'integer': 2, + 'long': 3, + 'float': 4.1, + 'double': 5.1, + 'boolean': true, + 'timestamp': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: + '/HttpRequestWithLabels/%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [HttpRequestWithLabelsInputRestXmlSerializer()], + ); + }); } class HttpRequestWithLabelsInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpRequestWithLabelsInputRestXmlSerializer() - : super('HttpRequestWithLabelsInput'); + : super('HttpRequestWithLabelsInput'); @override Iterable get types => const [HttpRequestWithLabelsInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpRequestWithLabelsInput deserialize( @@ -144,40 +129,54 @@ class HttpRequestWithLabelsInputRestXmlSerializer } switch (key) { case 'string': - result.string = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.string = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'short': - result.short = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.short = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integer': - result.integer = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integer = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'long': - result.long = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.long = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'float': - result.float = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.float = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'double': - result.double_ = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.double_ = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'boolean': - result.boolean = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.boolean = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'timestamp': result.timestamp = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart index d852edafb3..296349ad3c 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/http_response_code_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.http_response_code_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,55 +12,46 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlHttpResponseCode (response)', - () async { - await _i2.httpResponseTest( - operation: HttpResponseCodeOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlHttpResponseCode', - documentation: 'Binds the http response code to an output structure.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: 'application/xml', - params: {'Status': 201}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 201, - ), - outputSerializers: const [HttpResponseCodeOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlHttpResponseCode (response)', () async { + await _i2.httpResponseTest( + operation: HttpResponseCodeOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlHttpResponseCode', + documentation: 'Binds the http response code to an output structure.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: 'application/xml', + params: {'Status': 201}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 201, + ), + outputSerializers: const [HttpResponseCodeOutputRestXmlSerializer()], + ); + }); } class HttpResponseCodeOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const HttpResponseCodeOutputRestXmlSerializer() - : super('HttpResponseCodeOutput'); + : super('HttpResponseCodeOutput'); @override Iterable get types => const [HttpResponseCodeOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HttpResponseCodeOutput deserialize( @@ -79,10 +70,12 @@ class HttpResponseCodeOutputRestXmlSerializer } switch (key) { case 'Status': - result.status = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.status = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart index 1f61715712..9c81d547c4 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/ignore_query_params_in_response_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.ignore_query_params_in_response_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,59 +12,50 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'IgnoreQueryParamsInResponse (response)', - () async { - await _i2.httpResponseTest( - operation: IgnoreQueryParamsInResponseOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'IgnoreQueryParamsInResponse', - documentation: - 'Query parameters must be ignored when serializing the output of an operation', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - 'bam', - bodyMediaType: 'application/xml', - params: {'baz': 'bam'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - IgnoreQueryParamsInResponseOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('IgnoreQueryParamsInResponse (response)', () async { + await _i2.httpResponseTest( + operation: IgnoreQueryParamsInResponseOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'IgnoreQueryParamsInResponse', + documentation: + 'Query parameters must be ignored when serializing the output of an operation', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + 'bam', + bodyMediaType: 'application/xml', + params: {'baz': 'bam'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + IgnoreQueryParamsInResponseOutputRestXmlSerializer(), + ], + ); + }); } class IgnoreQueryParamsInResponseOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const IgnoreQueryParamsInResponseOutputRestXmlSerializer() - : super('IgnoreQueryParamsInResponseOutput'); + : super('IgnoreQueryParamsInResponseOutput'); @override Iterable get types => const [IgnoreQueryParamsInResponseOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override IgnoreQueryParamsInResponseOutput deserialize( @@ -83,10 +74,12 @@ class IgnoreQueryParamsInResponseOutputRestXmlSerializer } switch (key) { case 'baz': - result.baz = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.baz = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart index 74ea156c92..42da96d709 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/input_and_output_with_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.input_and_output_with_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -15,364 +15,270 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'InputAndOutputWithStringHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithStringHeaders', - documentation: 'Tests requests with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithNumericHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithNumericHeaders', - documentation: 'Tests requests with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithBooleanHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithBooleanHeaders', - documentation: 'Tests requests with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithTimestampHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithTimestampHeaders', - documentation: 'Tests requests with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithEnumHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'InputAndOutputWithEnumHeaders', - documentation: 'Tests requests with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatHeaderInputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatHeaderInputs (request)', - () async { - await _i2.httpRequestTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatHeaderInputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/InputAndOutputWithHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); + _i1.test('InputAndOutputWithStringHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithStringHeaders', + documentation: 'Tests requests with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithNumericHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithNumericHeaders', + documentation: 'Tests requests with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithBooleanHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithBooleanHeaders', + documentation: 'Tests requests with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithTimestampHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithTimestampHeaders', + documentation: 'Tests requests with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithEnumHeaders (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'InputAndOutputWithEnumHeaders', + documentation: 'Tests requests with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsNaNFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatHeaderInputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatHeaderInputs (request)', () async { + await _i2.httpRequestTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatHeaderInputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/InputAndOutputWithHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); _i1.test( 'RestXmlSupportsNegativeInfinityFloatHeaderInputs (request)', () async { @@ -384,23 +290,14 @@ void main() { testCase: const _i2.HttpRequestTestCase( id: 'RestXmlSupportsNegativeInfinityFloatHeaderInputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -414,327 +311,233 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithStringHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithStringHeaders', - documentation: 'Tests responses with string header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerString': 'Hello', - 'headerStringList': [ - 'a', - 'b', - 'c', - ], - 'headerStringSet': [ - 'a', - 'b', - 'c', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-String': 'Hello', - 'X-StringList': 'a, b, c', - 'X-StringSet': 'a, b, c', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithNumericHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithNumericHeaders', - documentation: 'Tests responses with numeric header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerByte': 1, - 'headerShort': 123, - 'headerInteger': 123, - 'headerLong': 123, - 'headerFloat': 1.1, - 'headerDouble': 1.1, - 'headerIntegerList': [ - 1, - 2, - 3, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Byte': '1', - 'X-Short': '123', - 'X-Integer': '123', - 'X-Long': '123', - 'X-Float': '1.1', - 'X-Double': '1.1', - 'X-IntegerList': '1, 2, 3', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithBooleanHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithBooleanHeaders', - documentation: 'Tests responses with boolean header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTrueBool': true, - 'headerFalseBool': false, - 'headerBooleanList': [ - true, - false, - true, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Boolean1': 'true', - 'X-Boolean2': 'false', - 'X-BooleanList': 'true, false, true', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithTimestampHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithTimestampHeaders', - documentation: 'Tests responses with timestamp header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerTimestampList': [ - 1576540098, - 1576540098, - ] - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-TimestampList': - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT' - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'InputAndOutputWithEnumHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'InputAndOutputWithEnumHeaders', - documentation: 'Tests responses with enum header bindings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerEnum': 'Foo', - 'headerEnumList': [ - 'Foo', - 'Bar', - 'Baz', - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Enum': 'Foo', - 'X-EnumList': 'Foo, Bar, Baz', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsNaNFloatHeaderOutputs', - documentation: 'Supports handling NaN float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'NaN', - 'headerDouble': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'NaN', - 'X-Double': 'NaN', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatHeaderOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: InputAndOutputWithHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsInfinityFloatHeaderOutputs', - documentation: 'Supports handling Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'headerFloat': 'Infinity', - 'headerDouble': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-Float': 'Infinity', - 'X-Double': 'Infinity', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() + InputAndOutputWithHeadersIoRestXmlSerializer(), ], ); }, ); + _i1.test('InputAndOutputWithStringHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithStringHeaders', + documentation: 'Tests responses with string header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerString': 'Hello', + 'headerStringList': ['a', 'b', 'c'], + 'headerStringSet': ['a', 'b', 'c'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-String': 'Hello', + 'X-StringList': 'a, b, c', + 'X-StringSet': 'a, b, c', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithNumericHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithNumericHeaders', + documentation: 'Tests responses with numeric header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerByte': 1, + 'headerShort': 123, + 'headerInteger': 123, + 'headerLong': 123, + 'headerFloat': 1.1, + 'headerDouble': 1.1, + 'headerIntegerList': [1, 2, 3], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Byte': '1', + 'X-Short': '123', + 'X-Integer': '123', + 'X-Long': '123', + 'X-Float': '1.1', + 'X-Double': '1.1', + 'X-IntegerList': '1, 2, 3', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithBooleanHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithBooleanHeaders', + documentation: 'Tests responses with boolean header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTrueBool': true, + 'headerFalseBool': false, + 'headerBooleanList': [true, false, true], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-Boolean1': 'true', + 'X-Boolean2': 'false', + 'X-BooleanList': 'true, false, true', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithTimestampHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithTimestampHeaders', + documentation: 'Tests responses with timestamp header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerTimestampList': [1576540098, 1576540098], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-TimestampList': + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('InputAndOutputWithEnumHeaders (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'InputAndOutputWithEnumHeaders', + documentation: 'Tests responses with enum header bindings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'headerEnum': 'Foo', + 'headerEnumList': ['Foo', 'Bar', 'Baz'], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Enum': 'Foo', 'X-EnumList': 'Foo, Bar, Baz'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsNaNFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsNaNFloatHeaderOutputs', + documentation: 'Supports handling NaN float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'NaN', 'headerDouble': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'NaN', 'X-Double': 'NaN'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatHeaderOutputs (response)', () async { + await _i2.httpResponseTest( + operation: InputAndOutputWithHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsInfinityFloatHeaderOutputs', + documentation: 'Supports handling Infinity float header values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'headerFloat': 'Infinity', 'headerDouble': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'X-Float': 'Infinity', 'X-Double': 'Infinity'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [InputAndOutputWithHeadersIoRestXmlSerializer()], + ); + }); _i1.test( 'RestXmlSupportsNegativeInfinityFloatHeaderOutputs (response)', () async { @@ -746,23 +549,14 @@ void main() { testCase: const _i2.HttpResponseTestCase( id: 'RestXmlSupportsNegativeInfinityFloatHeaderOutputs', documentation: 'Supports handling -Infinity float header values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: { - 'headerFloat': '-Infinity', - 'headerDouble': '-Infinity', - }, + params: {'headerFloat': '-Infinity', 'headerDouble': '-Infinity'}, vendorParamsShape: null, vendorParams: {}, - headers: { - 'X-Float': '-Infinity', - 'X-Double': '-Infinity', - }, + headers: {'X-Float': '-Infinity', 'X-Double': '-Infinity'}, forbidHeaders: [], requireHeaders: [], tags: [], @@ -770,7 +564,7 @@ void main() { code: 200, ), outputSerializers: const [ - InputAndOutputWithHeadersIoRestXmlSerializer() + InputAndOutputWithHeadersIoRestXmlSerializer(), ], ); }, @@ -780,18 +574,15 @@ void main() { class InputAndOutputWithHeadersIoRestXmlSerializer extends _i3.StructuredSmithySerializer { const InputAndOutputWithHeadersIoRestXmlSerializer() - : super('InputAndOutputWithHeadersIo'); + : super('InputAndOutputWithHeadersIo'); @override Iterable get types => const [InputAndOutputWithHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InputAndOutputWithHeadersIo deserialize( @@ -810,103 +601,133 @@ class InputAndOutputWithHeadersIoRestXmlSerializer } switch (key) { case 'headerString': - result.headerString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.headerString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'headerByte': - result.headerByte = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerByte = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerShort': - result.headerShort = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerShort = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerInteger': - result.headerInteger = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.headerInteger = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'headerLong': - result.headerLong = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.headerLong = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'headerFloat': - result.headerFloat = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerFloat = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerDouble': - result.headerDouble = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.headerDouble = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'headerTrueBool': - result.headerTrueBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerTrueBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerFalseBool': - result.headerFalseBool = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.headerFalseBool = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'headerStringList': - result.headerStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(String)], - ), - ) as _i5.BuiltList)); + result.headerStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(String), + ]), + ) + as _i5.BuiltList), + ); case 'headerStringSet': - result.headerStringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltSet, - [FullType(String)], - ), - ) as _i5.BuiltSet)); + result.headerStringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltSet, [ + FullType(String), + ]), + ) + as _i5.BuiltSet), + ); case 'headerIntegerList': - result.headerIntegerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(int)], - ), - ) as _i5.BuiltList)); + result.headerIntegerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [FullType(int)]), + ) + as _i5.BuiltList), + ); case 'headerBooleanList': - result.headerBooleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(bool)], - ), - ) as _i5.BuiltList)); + result.headerBooleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(bool), + ]), + ) + as _i5.BuiltList), + ); case 'headerTimestampList': - result.headerTimestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(DateTime)], - ), - ) as _i5.BuiltList)); + result.headerTimestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i5.BuiltList), + ); case 'headerEnum': - result.headerEnum = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.headerEnum = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'headerEnumList': - result.headerEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i5.BuiltList, - [FullType(FooEnum)], - ), - ) as _i5.BuiltList)); + result.headerEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i5.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i5.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart index c9c9f3c0ea..942e18ac2a 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/nested_xml_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.nested_xml_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,185 +14,158 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NestedXmlMapRequest (request)', - () async { - await _i2.httpRequestTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NestedXmlMapRequest', - documentation: 'Tests requests with nested maps.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'nestedMap': { - 'foo': {'bar': 'Bar'} - } + _i1.test('NestedXmlMapRequest (request)', () async { + await _i2.httpRequestTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NestedXmlMapRequest', + documentation: 'Tests requests with nested maps.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'nestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NestedXmlMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'FlatNestedXmlMapRequest (request)', - () async { - await _i2.httpRequestTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'FlatNestedXmlMapRequest', - documentation: - 'Tests requests with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n \n \n bar\n Bar\n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'flatNestedMap': { - 'foo': {'bar': 'Bar'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NestedXmlMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('FlatNestedXmlMapRequest (request)', () async { + await _i2.httpRequestTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'FlatNestedXmlMapRequest', + documentation: + 'Tests requests with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n \n \n bar\n Bar\n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'flatNestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NestedXmlMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'NestedXmlMapResponse (response)', - () async { - await _i2.httpResponseTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'NestedXmlMapResponse', - documentation: 'Tests responses with nested maps.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'nestedMap': { - 'foo': {'bar': 'Bar'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NestedXmlMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('NestedXmlMapResponse (response)', () async { + await _i2.httpResponseTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'NestedXmlMapResponse', + documentation: 'Tests responses with nested maps.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n \n bar\n Bar\n \n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'nestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'FlatNestedXmlMapResponse (response)', - () async { - await _i2.httpResponseTest( - operation: NestedXmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'FlatNestedXmlMapResponse', - documentation: - 'Tests responses with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n \n \n bar\n Bar\n \n \n \n', - bodyMediaType: 'application/xml', - params: { - 'flatNestedMap': { - 'foo': {'bar': 'Bar'} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('FlatNestedXmlMapResponse (response)', () async { + await _i2.httpResponseTest( + operation: NestedXmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'FlatNestedXmlMapResponse', + documentation: + 'Tests responses with nested flat maps. Since maps can only be\nflattened when they\'re structure members, only the outer map is flat.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n \n \n bar\n Bar\n \n \n \n', + bodyMediaType: 'application/xml', + params: { + 'flatNestedMap': { + 'foo': {'bar': 'Bar'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NestedXmlMapsInputOutputRestXmlSerializer()], + ); + }); } class NestedXmlMapsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const NestedXmlMapsInputOutputRestXmlSerializer() - : super('NestedXmlMapsInputOutput'); + : super('NestedXmlMapsInputOutput'); @override Iterable get types => const [NestedXmlMapsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedXmlMapsInputOutput deserialize( @@ -211,39 +184,33 @@ class NestedXmlMapsInputOutputRestXmlSerializer } switch (key) { case 'nestedMap': - result.nestedMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType( - _i4.BuiltMap, - [ + result.nestedMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ FullType(String), - FullType(FooEnum), - ], - ), - ], - ), - ) as _i4.BuiltMap>)); + FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ]), + ) + as _i4.BuiltMap>), + ); case 'flatNestedMap': - result.flatNestedMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType( - _i4.BuiltMap, - [ + result.flatNestedMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ FullType(String), - FullType(FooEnum), - ], - ), - ], - ), - ) as _i4.BuiltMap>)); + FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ]), + ) + as _i4.BuiltMap>), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart index 75955437dd..13d8f36e78 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_no_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.no_input_and_no_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -10,74 +10,62 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NoInputAndNoOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NoInputAndNoOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndNoOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'NoInputAndNoOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndNoOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'NoInputAndNoOutput', - documentation: 'No output serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [], - ); - }, - ); + _i1.test('NoInputAndNoOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NoInputAndNoOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndNoOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('NoInputAndNoOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndNoOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'NoInputAndNoOutput', + documentation: 'No output serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [], + ); + }); } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart index 4f56a124b6..14152ef427 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/no_input_and_output_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.no_input_and_output_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,93 +12,78 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NoInputAndOutput (request)', - () async { - await _i2.httpRequestTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NoInputAndOutput', - documentation: 'No input serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/NoInputAndOutputOutput', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [], - ); - }, - ); - _i1.test( - 'NoInputAndOutput (response)', - () async { - await _i2.httpResponseTest( - operation: NoInputAndOutputOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'NoInputAndOutput', - documentation: 'Empty output serializes no payload', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [NoInputAndOutputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('NoInputAndOutput (request)', () async { + await _i2.httpRequestTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NoInputAndOutput', + documentation: 'No input serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/NoInputAndOutputOutput', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [], + ); + }); + _i1.test('NoInputAndOutput (response)', () async { + await _i2.httpResponseTest( + operation: NoInputAndOutputOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'NoInputAndOutput', + documentation: 'Empty output serializes no payload', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [NoInputAndOutputOutputRestXmlSerializer()], + ); + }); } class NoInputAndOutputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const NoInputAndOutputOutputRestXmlSerializer() - : super('NoInputAndOutputOutput'); + : super('NoInputAndOutputOutput'); @override Iterable get types => const [NoInputAndOutputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoInputAndOutputOutput deserialize( diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart index 51f1b2479a..3d1cae4613 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/null_and_empty_headers_client_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.null_and_empty_headers_client_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,70 +13,53 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'NullAndEmptyHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: NullAndEmptyHeadersClientOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'NullAndEmptyHeaders', - documentation: - 'Do not send null values, empty strings, or empty lists over the wire in headers', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'a': null, - 'b': '', - 'c': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [ - 'X-A', - 'X-B', - 'X-C', - ], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/NullAndEmptyHeadersClient', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [NullAndEmptyHeadersIoRestXmlSerializer()], - ); - }, - ); + _i1.test('NullAndEmptyHeaders (request)', () async { + await _i2.httpRequestTest( + operation: NullAndEmptyHeadersClientOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'NullAndEmptyHeaders', + documentation: + 'Do not send null values, empty strings, or empty lists over the wire in headers', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'a': null, 'b': '', 'c': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: ['X-A', 'X-B', 'X-C'], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/NullAndEmptyHeadersClient', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [NullAndEmptyHeadersIoRestXmlSerializer()], + ); + }); } class NullAndEmptyHeadersIoRestXmlSerializer extends _i3.StructuredSmithySerializer { const NullAndEmptyHeadersIoRestXmlSerializer() - : super('NullAndEmptyHeadersIo'); + : super('NullAndEmptyHeadersIo'); @override Iterable get types => const [NullAndEmptyHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NullAndEmptyHeadersIo deserialize( @@ -95,23 +78,29 @@ class NullAndEmptyHeadersIoRestXmlSerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'c': - result.c.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.c.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart index 170abc359b..78d329408e 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/omits_null_serializes_empty_string_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.omits_null_serializes_empty_string_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,103 +12,89 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlOmitsNullQuery (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlOmitsNullQuery', - documentation: 'Omits null query values', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'nullValue': null}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSerializesEmptyString (request)', - () async { - await _i2.httpRequestTest( - operation: OmitsNullSerializesEmptyStringOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSerializesEmptyString', - documentation: 'Serializes empty query strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/OmitsNullSerializesEmptyString', - host: null, - resolvedHost: null, - queryParams: ['Empty='], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - OmitsNullSerializesEmptyStringInputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('RestXmlOmitsNullQuery (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlOmitsNullQuery', + documentation: 'Omits null query values', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'nullValue': null}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSerializesEmptyString (request)', () async { + await _i2.httpRequestTest( + operation: OmitsNullSerializesEmptyStringOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSerializesEmptyString', + documentation: 'Serializes empty query strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/OmitsNullSerializesEmptyString', + host: null, + resolvedHost: null, + queryParams: ['Empty='], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + OmitsNullSerializesEmptyStringInputRestXmlSerializer(), + ], + ); + }); } -class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i3 - .StructuredSmithySerializer { +class OmitsNullSerializesEmptyStringInputRestXmlSerializer + extends + _i3.StructuredSmithySerializer { const OmitsNullSerializesEmptyStringInputRestXmlSerializer() - : super('OmitsNullSerializesEmptyStringInput'); + : super('OmitsNullSerializesEmptyStringInput'); @override Iterable get types => const [OmitsNullSerializesEmptyStringInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OmitsNullSerializesEmptyStringInput deserialize( @@ -127,15 +113,19 @@ class OmitsNullSerializesEmptyStringInputRestXmlSerializer extends _i3 } switch (key) { case 'nullValue': - result.nullValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nullValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart index e49af6e569..05868949d5 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/put_with_content_encoding_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.put_with_content_encoding_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,102 +12,105 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('SDKAppliedContentEncoding_restXml (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppliedContentEncoding_restXml', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', + _i1.test( + 'SDKAppliedContentEncoding_restXml (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n' - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputRestXmlSerializer()], - ); - }, skip: 'Request compression not supported yet'); - _i1.test('SDKAppendedGzipAfterProvidedEncoding_restXml (request)', () async { - await _i2.httpRequestTest( - operation: PutWithContentEncodingOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SDKAppendedGzipAfterProvidedEncoding_restXml', - documentation: - 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppliedContentEncoding_restXml', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], ), - authScheme: null, - body: null, - bodyMediaType: null, - params: { - 'encoding': 'custom', - 'data': - 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Encoding': 'custom, gzip'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/requestcompression/putcontentwithencoding', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [PutWithContentEncodingInputRestXmlSerializer()], - ); - }, skip: 'Request compression not supported yet'); + inputSerializers: const [ + PutWithContentEncodingInputRestXmlSerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); + _i1.test( + 'SDKAppendedGzipAfterProvidedEncoding_restXml (request)', + () async { + await _i2.httpRequestTest( + operation: PutWithContentEncodingOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SDKAppendedGzipAfterProvidedEncoding_restXml', + documentation: + 'Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is in the Content-Encoding header before the\nrequest compression encoding from the HTTP binding.\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: null, + bodyMediaType: null, + params: { + 'encoding': 'custom', + 'data': + 'RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZpzxx5nB5t0qDH35KjsfKM5cinQaFoRq9y9Z82xdCoKZOsUbxZkk1kVmy1jPDCBhkhixkc5PKS\nFoSKTbeK7kuCEZCtR9OfF2k2MqbygGFsFu2sgb1Zn2YdDbaRwRGeaLhswta09UNSMUo8aTixgoYVHxwy\nvraLB6olPSPegeLOnmBeWyKmEfPdbpdGm4ev4vA2AUFuLIeFz0LkCSN0NgQMrr8ALEm1UNpJLReg1ZAX\nzZh7gtQTZUaBVdMJokaJpLk6FPxSA6zkwB5TegSqhrFIsmvpY3VNWmTUq7H0iADdh3dRQ8Is97bTsbwu\nvAEOjh4FQ9wPSFzEtcSJeYQft5GfWYPisDImjjvHVFshFFkNy2nN18pJmhVPoJc456tgbdfEIdGhIADC\n6UPcSSzE1FxlPpILqZrp3i4NvvKoiOa4a8tnALd2XRHHmsvALn2Wmfu07b86gZlu4yOyuUFNoWI6tFvd\nbHnqSJYNQlFESv13gJw609DBzNnrIgBGYBAcDRrIGAnflRKwVDUnDFrUQmE8xNG6jRlyb1p2Y2RrfBtG\ncKqhuGNiT2DfxpY89ektZ98waPhJrFEPJToNH8EADzBorh3T0h4YP1IeLmaI7SOxeuVrk1kjRqMK0rUB\nlUJgJNtCE35jCyoHMwPQlyi78ZaVv8COVQ24zcGpw0MTy6JUsDzAC3jLNY6xCb40SZV9XzG7nWvXA5Ej\nYC1gTXxF4AtFexIdDZ4RJbtYMyXt8LsEJerwwpkfqvDwsiFuqYC6vIn9RoZO5kI0F35XtUITDQYKZ4eq\nWBV0itxTyyR5Rp6g30pZEmEqOusDaIh96CEmHpOBYAQZ7u1QTfzRdysIGMpzbx5gj9Dxm2PO1glWzY7P\nlVqQiBlXSGDOkBkrB6SkiAxknt9zsPdTTsf3r3nid4hdiPrZmGWNgjOO1khSxZSzBdltrCESNnQmlnP5\nZOHA0eSYXwy8j4od5ZmjA3IpFOEPW2MutMbxIbJpg5dIx2x7WxespftenRLgl3CxcpPDcnb9w8LCHBg7\nSEjrEer6Y8wVLFWsQiv6nTdCPZz9cGqwgtCaiHRy8lTWFgdfWd397vw9rduGld3uUFeFRGjYrphqEmHi\nhiG0GhE6wRFVUsGJtvOCYkVREvbEdxPFeJvlAvOcs9HKbtptlTusvYB86vR2bNcIY4f5JZu2X6sGa354\n7LRk0ps2zqYjat3hMR7XDC8KiKceBteFsXoDjfVxTYKelpedTxqWAafrKhaoAVuNM98PSnkuIWGzjSUC\nNsDJTt6vt1D1afBVPWVmnQ7ZQdtEtLIEwAWYjemAztreELIr1E9fPEILm1Ke4KctP9I0I72Dh4eylNZD\n0DEr2Hg7cWFckuZ0Av5d0IPRARXikEGDHl8uh12TXL9v2Uh0ZVSJMEYvxGSbZvkWz8TjWSk3hKA2a7GL\nJm3Ho7e1C34gE1XRGcEthxvURxt4OKBqN3ZNaMIuDTWinoQAutMcUqtm4MoL7RGPiCHUrvTwQPSirsmA\nQmOEu8nOpnP77Fivh9jLGx5ta7nL6jrsWUsBqiN1lzpdPYLRR4mUIAj6sNWiDEk4pkbHSMEcqbWw6Zl7\npsEyPDHalCNhWMA3RSK3skURzQDZ0oBV5W7vjVIZ4d3uCKsk6zrzEI9u5mx7p9RdNKodXfzqYt0ULdtc\n3RW0hIfw2KvrO3BD2QrtgAkfrFBGVvlJSUoh0MvLz8DeXxfuiuq9Ttu7wvsqVI4Piah6WNEXtHHGPJO3\nGhc75Bnv2To4VS2v8rmyKAPIIVTuYBHZN6sZ4FhFzbrslCIdk0eadaU60naqiNWU3CsxplIYGyeThmJ7\n9u4h6Y2OmiPZjFPS2bAzwgAozYTVefII9aEaWZ0hxHZeu1FW7r79dkdO73ZqRfas9u8Z7LLBPCw5pV0F\n5I0pHDgNb6MogoxF4NZJfVtIX1vCHhhVLrXjrYNJU2fD9Fw8kT8Ie2HDBJnqAvYKmryQ1r9ulo3Me3rH\nq9s2Y5uCDxu9iQNhnpwIm57WYGFeqd2fnQeY2IziD3Jgx0KSrmOH0jgi0RwJyfGXaORPq3bQQqljuACo\nkO6io9t5VI8PbNxSHTRbtYiPciUslbT0g7SpCLrRPOBRJ4DDk56pjghpeoUagJ5xJ4wjBzBuXnAGkNnP\nTfpiuz2r3oSBAi8sB9wiYK2z9sp4gZyQsqdVNzAEgKatOxBRBmJCBYpjO98ZQrF83XApPpfFg0ujB2PW\n1iYF9NkgwIKB5oB6KVTOmSKJk11mVermPgeugHbzdd2zUP6fP8fWbhseqk2t8ahGvqjs2CDHFIWXl5jc\nfCknbykE3ANt7lnAfJQ2ddduLGiqrX4HWx6jcWw08Es6BkleO0IDbaWrb95d5isvFlzJsf0TyDIXF4uq\nbBDCi0XPWqtRJ2iqmnJa2GbBe9GmAOWMkBFSilMyC4sR395WSDpD56fx0NGoU6cHrRu9xF2Bgh7RGSfl\nch2GXEeE02fDpSHFNvJBlOEqqfkIX6oCa6KY9NThqeIjYsT184XR2ZI7akXRaw1gMOGpk4FmUxk6WIuX\n4ei1SLQgSdl7OEdRtJklZ76eFrMbkJQ2TDhu8f7mVuiy53GUMIvCrP9xYGZGmCIDm2e4U2BDi3F7C5xK\n3bDZXwlQp6z4BSqTy2OVEWxXUJfjPMOL5Mc7AvDeKtxAS73pVIv0HgHIa4NBAdC7uLG0zXuu1FF6z2XY\nyUhk03fMZhYe7vVxsul3WE7U01fuN8z2y0eKwBW1RFBE1eKIaR9Y01sIWQWbSrfHfDrdZiElhmhHehfs\n0EfrR4sLYdQshJuvhTeKGJDaEhtPQwwJ9mUYGtuCL9RozWx1XI4bHNlzBTW0BVokYiJGlPe7wdxNzJD7\nJgS7Lwv6jGKngVf86imGZyzqwiteWFPdNUoWdTvUPSMO5xIUK9mo5QpwbBOAmyYzVq42o3Qs90N9khEV\nU36LB99fw8PtGHH5wsCHshfauwnNPj0blGXzke0kQ4JNCVH7Jtn0Y0aeejkSxFtwtxoYs6zHl1Lxxpsd\nsw5vBy49CEtoltDW367lVAwDjWdx20msGB7qJCkEDrzu7EXSO22782QX9NBRcN9ppX0C25I0FMA4Wnhz\n9zIpiXRrsTH35jzM8Cjt4EVLGNU3O0HuEvAer3cENnMJtngdrT86ox3fihMQbiuy4Bh4DEcP5in2VjbT\n3qbnoCNvOi8Fmmf7KlGlWAOceL5OHVE5lljjQEMzEQOCEgrk5mDKgwSBJQBNauIDSC1a5iEQjB8Xxp4C\nqeKyyWY9IOntNrtU5ny4lNprHJd36dKFeBLKcGCOvgHBXdOZloMF0YTRExw7hreEO9IoTGVHJ4teWsNr\nHdtagUHjkeZkdMMfnUGNv5aBNtFMqhcZH6EitEa9lGPkKBbJpoom3u8D8EHSIF1H5EZqqx9TLY5hWAIG\nPwJ4qwkpCGw5rCLVrjw7ARKukIFzNULANqjHUMcJ002TlUosJM4xJ4aAgckpLVGOGuPDhGAAexEcQmbg\nUsZdmqQrtuVUyyLteLbLbqtR6CTlcAIwY3xyMCmPgyefE0FEUODBoxQtRUuYTL9RC5o1sYb2PvcxUQfb\niJFi2CAl99pAzcckU2qVCxniARslIxM5pmMRGsQX9ZzYAfZrbg6ce6S74I8UMlgRQ2QVyvUjKKOE6IrJ\nLng370emHfe5m6LZULD5YiZutkD5ipjL2Bz77DvTE5kNPUhuoKBcTJcUgytfXAKUTWOcRKNlq0GImrxM\nJfr7AWbLFFNKGLeTrVDBwpcokJCv0zcOKWe8fd2xkeXkZTdmM66IgM27cyYmtQ6YF26Kd0qrWJeVZJV9\n3fyLYYvKN5csbRY2BHoYE5ERARRW65IrpkXMf48OrCXMtDIP0Z7wxI9DiTeKKeH4uuguhCJnwzR3WxLA\nVU6eBJEd7ZjS6JA83w7decq8uDI7LGKjcz1FySp3B7fE9DkHRGXxbsL7Fjar6vW2mAv8CuvI20B6jctp\n2yLDs24sPfB3sSxrrlhbuT1m6DZqiN0dl6umKx7NGZhmOTVGr20jfcxhqPQwTJfd7kel4rvxip4BqkvT\n7STy8knJ2BXGyJeNgwo1PXUZRDVy0LCTsSF1RFuRZe8cktHl9lgw8ntdPn1pVFL0MwJkJfdXBNUp5gNv\n50FTkrpo1t6wq4CVbcfj2XOrOzvBUzNH26sXGABI1gGxCdp2jEZrHgqQaWIaTJVTuguZhxqDvdYsrwFW\nYN58uuNcKHIrGdRSigyZInwQDYk0pjcqdSeU0WVU3Y9htzZBR7XRaCJr5YTZvq7fwermb5tuwb37lPLq\nB2IGg0iftkVbXaSyfCwVaRbfLBb88so0QqpmJGirFu8FcDiXOV1zTr8yW9XLdYQuUjh43xrXLdgsuYff\nCagInUk1eU1aLjVZoJRsNmStmOEpAqlYMwTvx7w6j2f421Cxr5cNZBIVlAxlXN2QiDqJ9v3sHhHkTanc\nlQuH8ptUyX8qncpBuXXBn7cSez9N0EoxCBl1GHUagbjstgJo4gzLvTmVIY6MiWYOBitzNUHfyqKwtKUr\nVoSCdZcGeA9lHUPA7PUprRRaT3m1hGKPyshtVS2ikG48w3oVerln1N1qGdtz46gZCrndw3LZ1B362RfW\nzDPuXbpsyLsRMTt1Rz1oKHRXp3iE41hkhQH6pxlvyCW2INnHt5XU8zRamOB3oW0udOhMpQFDjRkOcy06\nb4t0QTHvoRqmBna3WXzIMZyeK3GChF5eF8oDXRbjhk7BB6YKCgqwWUzEJ5K47HMSlhFkBUjaPRjdGM0z\nzOMwhW6b1NvSwP7XM1P5yi1oPvOspts1vr29SXqrMMrBhVogeodWyd69NqrO4jkyBxKmlXifoTowpfiY\n2cUCE0XMZqxUN39LCP09JqZifaEcBEo3mgtm1tWu5QR2GNq7UyQf4RIPSDOpDCAtwoPhRgdT1lJdcj4U\nlnH0wrJ8Uwu7c08L7ErnIrDATqCrOjpSbzGP1xHENABYONC4TknFPrJ8pe40A8fzGT0qBw9mAM1SKcHO\nfoiLcMC9AjHTqJzDG3xplSLPG9or2rMeq7Fzp9r0y7uJRMxgg51EbjfvYlH466A3ggvL2WQlDXjJqPW3\nBJGWAWDNN9LK8f46bADKPxakpkx23S9O47rGSXfDhVSIZsDympxWX1UOzWwMZRHkofVeKqizgbKkGgUT\nWykE9gRoRAOd9wfHZDYKa9i0LaPDiaUMvnU1gdBIqIoiVsdJ9swX47oxvMtOxtcS0zlD6llDkBuIiU5g\nPwRCYmtkkb25c8iRJXwGFPjI1wJ34I1z1ENicPdosPiUe9ZC2jnXIKzEdv01x2ER7DNDF3yxOwOhxNxI\nGqsmC92j25UQQFu9ZstOZ28AoCkuOYs0Uycm5u8jR1T39dMBwrko09rC65ENLnsxM8oebmyFCPiGJ1ED\n5Xqc9qZ237f1OnETAoEOwqUSvrdPTv56U7hV91EMTyC812MLQpr2710E3VVpsUCUMNhIxdt7UXZ1UNFb\njgzpZLXnf4DHrv6B7kq6UI50KMxcw1HZE2GpODfUTzNFLaqdrvzxKe5eUWdcojBaRbD4fFdVYJTElYDH\nNNVh6ofkoeWcs9CWGFmSBe0T4K8phFeygQg0prKMELNEy6qENzVtG9ZDcqj3a7L6ZLtvq50anWp7fAVu\nfwz55g4iM2Z2fA0pnwHDL7tt67zTxGITvsnJsZSpeq1EQsZcwtkBV9liu7Rl7jiVT1IIRtchB8TsTiaA\nwVHIQQ9RIOTiPQdKNqi1kC9iGlUqWK93gblNWlBw1eYB9Wk8FQogutwTf0caNMx8D4nPbANcmOOlskIy\nzALh15OlTrWnhP95rf08AN2J026zDE2DUF9k0eCevYBQIDjqKNW4XCZnjbHoIcKzbY5VzPbMs3ZyMz8K\nSucBmgPg6wrSK5ykbkapS5vuqvXc9GbjQJ8bPNzoxoWGyjbZvDs2OBrIqBmcQb2DLJ8v38McQ4mC4UsS\njf4PyfSCtpk274QZjvLCZbLiCBxQegk7jUU0NmTFJAcYCxd9xMWdlFkiszcltT2YzwuFFz7iA6aa4n5L\nHpBNfUA01GcAi1aCMYhmooS4zSlYcSOZkovMz36U3Fd9WtqIEOJLi7HMgHQDgNMdK6DTzAdHQtxerxVF\nHJnPrfNVG7270r3bp0bPnLNYLhObbAn6zqSAUeLtI2Y4KJDjBKCAh2vvYGbu0e2REYJWRj7MkGevsSSy\nb1kCXLt6tKGWAb7lt5c0xyJgUIJW7pdtnwgT0ZCa24BecCAwNnG5U2EwQbcjZGsFxqNGfaemd3oFEhES\nBaE0Fxms9UKTnMafu8wvZ2xymMrUduuRzOjDeX7oD5YsLC88V8CGMLxbbxIpt94KGykbr6e7L0R4oZl1\ntKMgFwQ2p9Txdbp0Y293LcsJymKizqI0F2xEp7y4SmWOJqHZtsbz80wVV9nv41CvtfxuSoGZJ5cNB7pI\nBgzNcQCeH3Jt0RaGGwboxxpuFbzilmkMFXxJm87tD4WNgu01nHfGCKeQcySEBZpVfJgi6sDFJ8uWnvKm\n9mPLHurtWzEfKqUEa1iC71bXjw5wrvhv9BYW8JSUELHmDquftQyKdq0DZXhULMHGQLf4e95WIaoA14LL\nbThz77kuhKULPTu2MNrBUKGorurhGugo5gs4ZUezSsUOe3KxYdrFMdGgny1GgTxMSMTp2RAZytKjv4kQ\nVx7XgzvpQLIbDjUPAkJv6lScwIRq1W3Ne0Rh0V6Bmn6U5uIuWnJjULmbaQiSODj3z0mAZvak0mSWIGwT\nTX83HztcC4W7e1f6a1thmcc5K61Icehla2hBELWPpixTkyC4eEVmk9Rq0m0ZXtx0JX2ZQXqXDEyePyMe\nJ70sdSzXk72zusqhY4yuOMGgbYNHqxOToK6NxujR7e4dV3Wk5JnSUthym8scjcPeCiKDNY4cHfTMnDXJ\n9zLVy01LtNKYpJ1s8FxVxigmxQNKEbIamxhx6yqwGC4aiISVOOUEjvNOdaUfXfUsE6jEwtwxyGxjlRK1\ncLyxXttq4QWN6PehgHv7jXykzPjInbEysebFvvPOOMdunmJvcCNMSvjUda8fL6xfGo0FDrLg8XZipd6S\noPVdYtyIM1Dg40KbBA3JuumPYtXuJaHrZnjZmdnM5OVo4ZNxktfCVT0c6bnD4bAeyn4bYt1ZPaX6hQHh\nJtvNYfpD0ONYlmqKuToQAMlz52Fh6bj45EbX89L5eLlSpWeyBlGotzriB0EPlclrGi5l2B5oPb1aB1ag\nyyYuu44l0F1oOVYnBIZsxIsHVITxi9lEuVPFkWASOUNuVQXfM4n5hxWR9qtuKnIcPsvbJsv1U10XlKh3\nKisqPhHU15xrCLr5gwFxPUKiNTLUBrkzgBOHXPVsHcLCiSD0YU56TRGfvEom43TWUKPPfl9Z54tgVQuT\njCRlaljAzeniQIcbbHZnn3f0HxbDG3DFYqWSxNrXabHhRsIOhhUHSPENyhGSTVO5t0XX5CdMspJPCd02\n3Oqv32ccbUK4O3YH6LEvp0WO3kSl5n50odVkI9B0i0iq4UPFGMkM8bEQJbgJoOH71P10vtdevJFQE4g2\nyhimiM53ZJRWgSZveHtENZc0Gjo0F9eioak9BnPpY1QxAFPC817svuhEstcU69bLCA4D1rO5R8AuIIBq\nyQJcifFLvbpAEYTLKJqysZrU8EEl3TSdC13A9hZvk4NC8VGEDAxcNrKw313dZp17kZPO5HSd1y6sljAW\nA9M1d6FMYV5SlBWf3WZNCUPS7qKNlda2YBsC6IUVB363f5RLGQOQHwbaijBSRCkrVoRxBHtc0Bd5J9V9\nP5uMTXkpZOxRcCQvImGgcmGuxxLb5zTqfS2xu7v3Sf3IIesSt9tVzcEcdbEvLGVJkLk4mb3G30DbIbri\nPZ09JkweDvMaQ3bxT2nfkz3Ilihkw9jqikkCCCz7E8h6z6KbhQErEW9VzJZzMCgJsyPjFam6iNwpe07S\nhyOvNVw2t9wpzL5xM11DvVzQwDaWEytNRHzDBs4KwEtpI2IpjUyVZHSwA0UGqqkzoCgrJFlNOvPlXqcS\nIcREouUIBmuttkrhPWJtSxOOgpsdvBR3kTOzAXNzSKxoaBAb0c5SDMUc6FIyGA8x5wg5DkUgjFUUodEt\nOYaB2VHVePW9mxHeBTdKWLzJow4ZZvjnoBuVigXljKCNh137ckV2y3Yg3Xi4UzJEI2V5Rw9AfnMs7xUw\nVHOFCg189maD3bmZAe7b4eaGZhyy4HVKjqCXmIH7vsEjRvbnfB0SQxxpuqBDJbHNCtW4vM643ZQQBVPP\na7oXSQIq9w2dHp0A7dtkocCZdQp9FKR9XdJAFIbVSHzIF1ZogeZlc0pXuNE0tagvD57xwDRFkAuoQyMu\nYDdZasXrpSmEE5UjHVkyYsISn8QsfXurzDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n', + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Encoding': 'custom, gzip'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/requestcompression/putcontentwithencoding', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + PutWithContentEncodingInputRestXmlSerializer(), + ], + ); + }, + skip: 'Request compression not supported yet', + ); } class PutWithContentEncodingInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const PutWithContentEncodingInputRestXmlSerializer() - : super('PutWithContentEncodingInput'); + : super('PutWithContentEncodingInput'); @override Iterable get types => const [PutWithContentEncodingInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PutWithContentEncodingInput deserialize( @@ -126,15 +129,19 @@ class PutWithContentEncodingInputRestXmlSerializer } switch (key) { case 'encoding': - result.encoding = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.encoding = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart index 8ead098915..2b1ce78256 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_idempotency_token_auto_fill_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.query_idempotency_token_auto_fill_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,45 +12,8 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test('QueryIdempotencyTokenAutoFill (request)', () async { - await _i2.httpRequestTest( - operation: QueryIdempotencyTokenAutoFillOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'QueryIdempotencyTokenAutoFill', - documentation: 'Automatically adds idempotency token when not set', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/QueryIdempotencyTokenAutoFill', - host: null, - resolvedHost: null, - queryParams: ['token=00000000-0000-4000-8000-000000000000'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestXmlSerializer() - ], - ); - }, skip: 'bool.fromEnvironment is not working in tests for some reason'); _i1.test( - 'QueryIdempotencyTokenAutoFillIsSet (request)', + 'QueryIdempotencyTokenAutoFill (request)', () async { await _i2.httpRequestTest( operation: QueryIdempotencyTokenAutoFillOperation( @@ -58,16 +21,13 @@ void main() { baseUri: Uri.parse('https://example.com'), ), testCase: const _i2.HttpRequestTestCase( - id: 'QueryIdempotencyTokenAutoFillIsSet', - documentation: 'Uses the given idempotency token as-is', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), + id: 'QueryIdempotencyTokenAutoFill', + documentation: 'Automatically adds idempotency token when not set', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), authScheme: null, body: '', bodyMediaType: null, - params: {'token': '00000000-0000-4000-8000-000000000000'}, + params: {}, vendorParamsShape: null, vendorParams: {}, headers: {}, @@ -84,28 +44,60 @@ void main() { requireQueryParams: [], ), inputSerializers: const [ - QueryIdempotencyTokenAutoFillInputRestXmlSerializer() + QueryIdempotencyTokenAutoFillInputRestXmlSerializer(), ], ); }, + skip: 'bool.fromEnvironment is not working in tests for some reason', ); + _i1.test('QueryIdempotencyTokenAutoFillIsSet (request)', () async { + await _i2.httpRequestTest( + operation: QueryIdempotencyTokenAutoFillOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'QueryIdempotencyTokenAutoFillIsSet', + documentation: 'Uses the given idempotency token as-is', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'token': '00000000-0000-4000-8000-000000000000'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/QueryIdempotencyTokenAutoFill', + host: null, + resolvedHost: null, + queryParams: ['token=00000000-0000-4000-8000-000000000000'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryIdempotencyTokenAutoFillInputRestXmlSerializer(), + ], + ); + }); } class QueryIdempotencyTokenAutoFillInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const QueryIdempotencyTokenAutoFillInputRestXmlSerializer() - : super('QueryIdempotencyTokenAutoFillInput'); + : super('QueryIdempotencyTokenAutoFillInput'); @override Iterable get types => const [QueryIdempotencyTokenAutoFillInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryIdempotencyTokenAutoFillInput deserialize( @@ -124,10 +116,12 @@ class QueryIdempotencyTokenAutoFillInputRestXmlSerializer } switch (key) { case 'token': - result.token = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.token = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart index 0e9fb1cc46..81739afcac 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_params_as_string_list_map_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.query_params_as_string_list_map_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,75 +13,59 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlQueryParamsStringListMap (request)', - () async { - await _i2.httpRequestTest( - operation: QueryParamsAsStringListMapOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryParamsStringListMap', - documentation: 'Serialize query params from map of list strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'qux': 'named', - 'foo': { - 'baz': [ - 'bar', - 'qux', - ] - }, + _i1.test('RestXmlQueryParamsStringListMap (request)', () async { + await _i2.httpRequestTest( + operation: QueryParamsAsStringListMapOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryParamsStringListMap', + documentation: 'Serialize query params from map of list strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'qux': 'named', + 'foo': { + 'baz': ['bar', 'qux'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/StringListMap', - host: null, - resolvedHost: null, - queryParams: [ - 'corge=named', - 'baz=bar', - 'baz=qux', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - QueryParamsAsStringListMapInputRestXmlSerializer() - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/StringListMap', + host: null, + resolvedHost: null, + queryParams: ['corge=named', 'baz=bar', 'baz=qux'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + QueryParamsAsStringListMapInputRestXmlSerializer(), + ], + ); + }); } class QueryParamsAsStringListMapInputRestXmlSerializer extends _i3.StructuredSmithySerializer { const QueryParamsAsStringListMapInputRestXmlSerializer() - : super('QueryParamsAsStringListMapInput'); + : super('QueryParamsAsStringListMapInput'); @override Iterable get types => const [QueryParamsAsStringListMapInput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryParamsAsStringListMapInput deserialize( @@ -100,21 +84,23 @@ class QueryParamsAsStringListMapInputRestXmlSerializer } switch (key) { case 'qux': - result.qux = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.qux = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'foo': - result.foo.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltListMultimap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltListMultimap)); + result.foo.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltListMultimap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltListMultimap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart index 9c47df28a6..bc63f2bd26 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/query_precedence_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.query_precedence_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,53 +13,41 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RestXmlQueryPrecedence (request)', - () async { - await _i2.httpRequestTest( - operation: QueryPrecedenceOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlQueryPrecedence', - documentation: 'Prefer named query parameters when serializing', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'foo': 'named', - 'baz': { - 'bar': 'fromMap', - 'qux': 'alsoFromMap', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/Precedence', - host: null, - resolvedHost: null, - queryParams: [ - 'bar=named', - 'qux=alsoFromMap', - ], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [QueryPrecedenceInputRestXmlSerializer()], - ); - }, - ); + _i1.test('RestXmlQueryPrecedence (request)', () async { + await _i2.httpRequestTest( + operation: QueryPrecedenceOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlQueryPrecedence', + documentation: 'Prefer named query parameters when serializing', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'foo': 'named', + 'baz': {'bar': 'fromMap', 'qux': 'alsoFromMap'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/Precedence', + host: null, + resolvedHost: null, + queryParams: ['bar=named', 'qux=alsoFromMap'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [QueryPrecedenceInputRestXmlSerializer()], + ); + }); } class QueryPrecedenceInputRestXmlSerializer @@ -71,11 +59,8 @@ class QueryPrecedenceInputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override QueryPrecedenceInput deserialize( @@ -94,21 +79,23 @@ class QueryPrecedenceInputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'baz': - result.baz.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ), - ) as _i4.BuiltMap)); + result.baz.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(String), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart index 221d9078a3..115e893d3e 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/recursive_shapes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.recursive_shapes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,125 +14,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'RecursiveShapes (request)', - () async { - await _i2.httpRequestTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { + _i1.test('RecursiveShapes (request)', () async { + await _i2.httpRequestTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/RecursiveShapes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - RecursiveShapesInputOutputRestXmlSerializer(), - RecursiveShapesInputOutputNested1RestXmlSerializer(), - RecursiveShapesInputOutputNested2RestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'RecursiveShapes (response)', - () async { - await _i2.httpResponseTest( - operation: RecursiveShapesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RecursiveShapes', - documentation: 'Serializes recursive structures', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/RecursiveShapes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + RecursiveShapesInputOutputRestXmlSerializer(), + RecursiveShapesInputOutputNested1RestXmlSerializer(), + RecursiveShapesInputOutputNested2RestXmlSerializer(), + ], + ); + }); + _i1.test('RecursiveShapes (response)', () async { + await _i2.httpResponseTest( + operation: RecursiveShapesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RecursiveShapes', + documentation: 'Serializes recursive structures', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo1', 'nested': { - 'foo': 'Foo1', - 'nested': { - 'bar': 'Bar1', - 'recursiveMember': { - 'foo': 'Foo2', - 'nested': {'bar': 'Bar2'}, - }, + 'bar': 'Bar1', + 'recursiveMember': { + 'foo': 'Foo2', + 'nested': {'bar': 'Bar2'}, }, - } + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - RecursiveShapesInputOutputRestXmlSerializer(), - RecursiveShapesInputOutputNested1RestXmlSerializer(), - RecursiveShapesInputOutputNested2RestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + RecursiveShapesInputOutputRestXmlSerializer(), + RecursiveShapesInputOutputNested1RestXmlSerializer(), + RecursiveShapesInputOutputNested2RestXmlSerializer(), + ], + ); + }); } class RecursiveShapesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputRestXmlSerializer() - : super('RecursiveShapesInputOutput'); + : super('RecursiveShapesInputOutput'); @override Iterable get types => const [RecursiveShapesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutput deserialize( @@ -151,10 +136,15 @@ class RecursiveShapesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } @@ -174,18 +164,15 @@ class RecursiveShapesInputOutputRestXmlSerializer class RecursiveShapesInputOutputNested1RestXmlSerializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested1RestXmlSerializer() - : super('RecursiveShapesInputOutputNested1'); + : super('RecursiveShapesInputOutputNested1'); @override Iterable get types => const [RecursiveShapesInputOutputNested1]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested1 deserialize( @@ -204,15 +191,22 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested2), - ) as RecursiveShapesInputOutputNested2)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested2, + ), + ) + as RecursiveShapesInputOutputNested2), + ); } } @@ -232,18 +226,15 @@ class RecursiveShapesInputOutputNested1RestXmlSerializer class RecursiveShapesInputOutputNested2RestXmlSerializer extends _i3.StructuredSmithySerializer { const RecursiveShapesInputOutputNested2RestXmlSerializer() - : super('RecursiveShapesInputOutputNested2'); + : super('RecursiveShapesInputOutputNested2'); @override Iterable get types => const [RecursiveShapesInputOutputNested2]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecursiveShapesInputOutputNested2 deserialize( @@ -262,15 +253,22 @@ class RecursiveShapesInputOutputNested2RestXmlSerializer } switch (key) { case 'bar': - result.bar = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bar = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'recursiveMember': - result.recursiveMember.replace((serializers.deserialize( - value, - specifiedType: const FullType(RecursiveShapesInputOutputNested1), - ) as RecursiveShapesInputOutputNested1)); + result.recursiveMember.replace( + (serializers.deserialize( + value, + specifiedType: const FullType( + RecursiveShapesInputOutputNested1, + ), + ) + as RecursiveShapesInputOutputNested1), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart index 52e1d83087..49200e5553 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,721 +13,550 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'SimpleScalarProperties (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithEscapedCharacter (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarPropertiesWithEscapedCharacter', - documentation: 'Serializes string with escaping', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n <string>\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': '', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithWhiteSpace (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarPropertiesWithWhiteSpace', - documentation: 'Serializes string containing white space', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string with white space \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' string with white space ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesPureWhiteSpace (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'SimpleScalarPropertiesPureWhiteSpace', - documentation: 'Serializes string containing exclusively whitespace', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNaNFloatInputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n NaN\n NaN\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsInfinityFloatInputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Infinity\n Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNegativeInfinityFloatInputs (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'RestXmlSupportsNegativeInfinityFloatInputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n -Infinity\n -Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesComplexEscapes (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesComplexEscapes', - documentation: - 'Serializes string with escaping.\n\nThis validates the three escape types: literal, decimal and hexadecimal. It also validates that unescaping properly\nhandles the case where unescaping an & produces a newly formed escape sequence (this should not be re-unescaped).\n\nServers may produce different output, this test is designed different unescapes clients must handle\n', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n escaped data: &lt; \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'escaped data: <\r\n', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithEscapedCharacter (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesWithEscapedCharacter', - documentation: 'Serializes string with escaping', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n <string>\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': '', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithXMLPreamble (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesWithXMLPreamble', - documentation: - 'Serializes simple scalar properties with xml preamble, comments and CDATA', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n\n \n string\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesWithWhiteSpace (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesWithWhiteSpace', - documentation: 'Serializes string containing white space', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n\n string with white space \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' string with white space ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'SimpleScalarPropertiesPureWhiteSpace (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'SimpleScalarPropertiesPureWhiteSpace', - documentation: 'Serializes string containing white space', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': ' ', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNaNFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsNaNFloatOutputs', - documentation: 'Supports handling NaN float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n NaN\n NaN\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'NaN', - 'doubleValue': 'NaN', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsInfinityFloatOutputs', - documentation: 'Supports handling Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Infinity\n Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': 'Infinity', - 'doubleValue': 'Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'RestXmlSupportsNegativeInfinityFloatOutputs (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'RestXmlSupportsNegativeInfinityFloatOutputs', - documentation: 'Supports handling -Infinity float values.', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n -Infinity\n -Infinity\n\n', - bodyMediaType: 'application/xml', - params: { - 'floatValue': '-Infinity', - 'doubleValue': '-Infinity', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('SimpleScalarProperties (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithEscapedCharacter (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarPropertiesWithEscapedCharacter', + documentation: 'Serializes string with escaping', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n <string>\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithWhiteSpace (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarPropertiesWithWhiteSpace', + documentation: 'Serializes string containing white space', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string with white space \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' string with white space '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesPureWhiteSpace (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'SimpleScalarPropertiesPureWhiteSpace', + documentation: 'Serializes string containing exclusively whitespace', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNaNFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNaNFloatInputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n NaN\n NaN\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsInfinityFloatInputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Infinity\n Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNegativeInfinityFloatInputs (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'RestXmlSupportsNegativeInfinityFloatInputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n -Infinity\n -Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesComplexEscapes (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesComplexEscapes', + documentation: + 'Serializes string with escaping.\n\nThis validates the three escape types: literal, decimal and hexadecimal. It also validates that unescaping properly\nhandles the case where unescaping an & produces a newly formed escape sequence (this should not be re-unescaped).\n\nServers may produce different output, this test is designed different unescapes clients must handle\n', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n escaped data: &lt; \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': 'escaped data: <\r\n'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithEscapedCharacter (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesWithEscapedCharacter', + documentation: 'Serializes string with escaping', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n <string>\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithXMLPreamble (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesWithXMLPreamble', + documentation: + 'Serializes simple scalar properties with xml preamble, comments and CDATA', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n\n \n string\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': 'string'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesWithWhiteSpace (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesWithWhiteSpace', + documentation: 'Serializes string containing white space', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n\n string with white space \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' string with white space '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('SimpleScalarPropertiesPureWhiteSpace (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'SimpleScalarPropertiesPureWhiteSpace', + documentation: 'Serializes string containing white space', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n\n \n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'Foo', 'stringValue': ' '}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNaNFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsNaNFloatOutputs', + documentation: 'Supports handling NaN float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n NaN\n NaN\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'NaN', 'doubleValue': 'NaN'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsInfinityFloatOutputs', + documentation: 'Supports handling Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Infinity\n Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': 'Infinity', 'doubleValue': 'Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('RestXmlSupportsNegativeInfinityFloatOutputs (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'RestXmlSupportsNegativeInfinityFloatOutputs', + documentation: 'Supports handling -Infinity float values.', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n -Infinity\n -Infinity\n\n', + bodyMediaType: 'application/xml', + params: {'floatValue': '-Infinity', 'doubleValue': '-Infinity'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -746,55 +575,75 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart index 82b348f897..54e850ee83 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/timestamp_format_headers_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.timestamp_format_headers_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,125 +12,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'TimestampFormatHeaders (request)', - () async { - await _i2.httpRequestTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'TimestampFormatHeaders', - documentation: 'Tests how timestamp request headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/TimestampFormatHeaders', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'TimestampFormatHeaders (response)', - () async { - await _i2.httpResponseTest( - operation: TimestampFormatHeadersOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'TimestampFormatHeaders', - documentation: 'Tests how timestamp response headers are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'memberEpochSeconds': 1576540098, - 'memberHttpDate': 1576540098, - 'memberDateTime': 1576540098, - 'defaultFormat': 1576540098, - 'targetEpochSeconds': 1576540098, - 'targetHttpDate': 1576540098, - 'targetDateTime': 1576540098, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'X-memberEpochSeconds': '1576540098', - 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-memberDateTime': '2019-12-16T23:48:18Z', - 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetEpochSeconds': '1576540098', - 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', - 'X-targetDateTime': '2019-12-16T23:48:18Z', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], - ); - }, - ); + _i1.test('TimestampFormatHeaders (request)', () async { + await _i2.httpRequestTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'TimestampFormatHeaders', + documentation: 'Tests how timestamp request headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/TimestampFormatHeaders', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], + ); + }); + _i1.test('TimestampFormatHeaders (response)', () async { + await _i2.httpResponseTest( + operation: TimestampFormatHeadersOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'TimestampFormatHeaders', + documentation: 'Tests how timestamp response headers are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: { + 'memberEpochSeconds': 1576540098, + 'memberHttpDate': 1576540098, + 'memberDateTime': 1576540098, + 'defaultFormat': 1576540098, + 'targetEpochSeconds': 1576540098, + 'targetHttpDate': 1576540098, + 'targetDateTime': 1576540098, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: { + 'X-memberEpochSeconds': '1576540098', + 'X-memberHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-memberDateTime': '2019-12-16T23:48:18Z', + 'X-defaultFormat': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetEpochSeconds': '1576540098', + 'X-targetHttpDate': 'Mon, 16 Dec 2019 23:48:18 GMT', + 'X-targetDateTime': '2019-12-16T23:48:18Z', + }, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [TimestampFormatHeadersIoRestXmlSerializer()], + ); + }); } class TimestampFormatHeadersIoRestXmlSerializer extends _i3.StructuredSmithySerializer { const TimestampFormatHeadersIoRestXmlSerializer() - : super('TimestampFormatHeadersIo'); + : super('TimestampFormatHeadersIo'); @override Iterable get types => const [TimestampFormatHeadersIo]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override TimestampFormatHeadersIo deserialize( @@ -149,47 +134,26 @@ class TimestampFormatHeadersIoRestXmlSerializer } switch (key) { case 'memberEpochSeconds': - result.memberEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberHttpDate': - result.memberHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'memberDateTime': - result.memberDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.memberDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'defaultFormat': - result.defaultFormat = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.defaultFormat = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetEpochSeconds': - result.targetEpochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetEpochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetHttpDate': - result.targetHttpDate = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetHttpDate = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'targetDateTime': - result.targetDateTime = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.targetDateTime = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart index b94db91c7d..7c4d9fda0d 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_on_payload_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_attributes_on_payload_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,112 +13,90 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlAttributesOnPayload (request)', - () async { - await _i2.httpRequestTest( - operation: XmlAttributesOnPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlAttributesOnPayload', - documentation: - 'Serializes XML attributes on the synthesized document', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'payload': { - 'foo': 'hi', - 'attr': 'test', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlAttributesOnPayload', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlAttributesOnPayloadInputOutputRestXmlSerializer(), - XmlAttributesInputOutputRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlAttributesOnPayload (response)', - () async { - await _i2.httpResponseTest( - operation: XmlAttributesOnPayloadOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlAttributesOnPayload', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'payload': { - 'foo': 'hi', - 'attr': 'test', - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlAttributesOnPayloadInputOutputRestXmlSerializer(), - XmlAttributesInputOutputRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlAttributesOnPayload (request)', () async { + await _i2.httpRequestTest( + operation: XmlAttributesOnPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlAttributesOnPayload', + documentation: 'Serializes XML attributes on the synthesized document', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: { + 'payload': {'foo': 'hi', 'attr': 'test'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlAttributesOnPayload', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlAttributesOnPayloadInputOutputRestXmlSerializer(), + XmlAttributesInputOutputRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlAttributesOnPayload (response)', () async { + await _i2.httpResponseTest( + operation: XmlAttributesOnPayloadOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlAttributesOnPayload', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: { + 'payload': {'foo': 'hi', 'attr': 'test'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlAttributesOnPayloadInputOutputRestXmlSerializer(), + XmlAttributesInputOutputRestXmlSerializer(), + ], + ); + }); } class XmlAttributesOnPayloadInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlAttributesOnPayloadInputOutputRestXmlSerializer() - : super('XmlAttributesOnPayloadInputOutput'); + : super('XmlAttributesOnPayloadInputOutput'); @override Iterable get types => const [XmlAttributesOnPayloadInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesOnPayloadInputOutput deserialize( @@ -137,10 +115,13 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer } switch (key) { case 'payload': - result.payload.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlAttributesInputOutput), - ) as XmlAttributesInputOutput)); + result.payload.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlAttributesInputOutput), + ) + as XmlAttributesInputOutput), + ); } } @@ -160,18 +141,15 @@ class XmlAttributesOnPayloadInputOutputRestXmlSerializer class XmlAttributesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlAttributesInputOutputRestXmlSerializer() - : super('XmlAttributesInputOutput'); + : super('XmlAttributesInputOutput'); @override Iterable get types => const [XmlAttributesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -190,15 +168,19 @@ class XmlAttributesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'attr': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart index d20172c57a..40f97c6fa2 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_attributes_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_attributes_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,145 +12,114 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlAttributes (request)', - () async { - await _i2.httpRequestTest( - operation: XmlAttributesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlAttributes', - documentation: - 'Serializes XML attributes on the synthesized document', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'hi', - 'attr': 'test', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlAttributes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlAttributesWithEscaping (request)', - () async { - await _i2.httpRequestTest( - operation: XmlAttributesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlAttributesWithEscaping', - documentation: - 'Serializes XML attributes with escaped characters on the synthesized document', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'hi', - 'attr': '', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlAttributes', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlAttributes (response)', - () async { - await _i2.httpResponseTest( - operation: XmlAttributesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlAttributes', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n hi\n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'hi', - 'attr': 'test', - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlAttributes (request)', () async { + await _i2.httpRequestTest( + operation: XmlAttributesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlAttributes', + documentation: 'Serializes XML attributes on the synthesized document', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'hi', 'attr': 'test'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlAttributes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlAttributesWithEscaping (request)', () async { + await _i2.httpRequestTest( + operation: XmlAttributesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlAttributesWithEscaping', + documentation: + 'Serializes XML attributes with escaped characters on the synthesized document', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'hi', 'attr': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlAttributes', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlAttributes (response)', () async { + await _i2.httpResponseTest( + operation: XmlAttributesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlAttributes', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n hi\n\n', + bodyMediaType: 'application/xml', + params: {'foo': 'hi', 'attr': 'test'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlAttributesInputOutputRestXmlSerializer()], + ); + }); } class XmlAttributesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlAttributesInputOutputRestXmlSerializer() - : super('XmlAttributesInputOutput'); + : super('XmlAttributesInputOutput'); @override Iterable get types => const [XmlAttributesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlAttributesInputOutput deserialize( @@ -169,15 +138,19 @@ class XmlAttributesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'attr': - result.attr = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attr = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart index b3c718d3fd..5a2cfdccaf 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,78 +14,66 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlBlobs (request)', - () async { - await _i2.httpRequestTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n dmFsdWU=\n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlBlobs', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlBlobs', - documentation: 'Blobs are base64 encoded', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n dmFsdWU=\n\n', - bodyMediaType: 'application/xml', - params: {'data': 'value'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlBlobs (request)', () async { + await _i2.httpRequestTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n dmFsdWU=\n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlBlobs', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlBlobs', + documentation: 'Blobs are base64 encoded', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n dmFsdWU=\n\n', + bodyMediaType: 'application/xml', + params: {'data': 'value'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); } class XmlBlobsInputOutputRestXmlSerializer @@ -97,11 +85,8 @@ class XmlBlobsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlBlobsInputOutput deserialize( @@ -120,10 +105,12 @@ class XmlBlobsInputOutputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart index 7975a104dc..e4d6b5eba3 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_blobs_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_empty_blobs_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,72 +14,60 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyBlobs', - documentation: 'Empty blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlEmptySelfClosedBlobs (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyBlobsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptySelfClosedBlobs', - documentation: - 'Empty self closed blobs are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '\n \n\n', - bodyMediaType: 'application/xml', - params: {'data': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlEmptyBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyBlobs', + documentation: 'Empty blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEmptySelfClosedBlobs (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyBlobsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptySelfClosedBlobs', + documentation: + 'Empty self closed blobs are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '\n \n\n', + bodyMediaType: 'application/xml', + params: {'data': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlBlobsInputOutputRestXmlSerializer()], + ); + }); } class XmlBlobsInputOutputRestXmlSerializer @@ -91,11 +79,8 @@ class XmlBlobsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlBlobsInputOutput deserialize( @@ -114,10 +99,12 @@ class XmlBlobsInputOutputRestXmlSerializer } switch (key) { case 'data': - result.data = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Uint8List), - ) as _i4.Uint8List); + result.data = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Uint8List), + ) + as _i4.Uint8List); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart index 0aff061fdf..d4a960b01b 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_empty_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,90 +16,72 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyLists (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEmptyLists', - documentation: 'Serializes Empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'PUT', - uri: '/XmlEmptyLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlEmptyLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyLists', - documentation: 'Deserializes Empty XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [], - 'stringSet': [], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlEmptyLists (request)', () async { + await _i2.httpRequestTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEmptyLists', + documentation: 'Serializes Empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'PUT', + uri: '/XmlEmptyLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlEmptyLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyLists', + documentation: 'Deserializes Empty XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n\n', + bodyMediaType: 'application/xml', + params: {'stringList': [], 'stringSet': []}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); } class XmlListsInputOutputRestXmlSerializer @@ -111,11 +93,8 @@ class XmlListsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlListsInputOutput deserialize( @@ -134,131 +113,153 @@ class XmlListsInputOutputRestXmlSerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedStructureList': - result.flattenedStructureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.flattenedStructureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -284,11 +285,8 @@ class StructureListMemberRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override StructureListMember deserialize( @@ -307,15 +305,19 @@ class StructureListMemberRestXmlSerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart index 5f15bcd3db..62a0baa82a 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_empty_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,119 +14,101 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyMaps (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEmptyMaps', - documentation: 'Serializes Empty XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'POST', - uri: '/XmlEmptyMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlEmptyMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyMaps', - documentation: 'Deserializes Empty XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlEmptySelfClosedMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptySelfClosedMaps', - documentation: 'Deserializes Empty Self-closed XML maps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '\n \n\n', - bodyMediaType: 'application/xml', - params: {'myMap': {}}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlEmptyMaps (request)', () async { + await _i2.httpRequestTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEmptyMaps', + documentation: 'Serializes Empty XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'POST', + uri: '/XmlEmptyMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlEmptyMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyMaps', + documentation: 'Deserializes Empty XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlEmptySelfClosedMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptySelfClosedMaps', + documentation: 'Deserializes Empty Self-closed XML maps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '\n \n\n', + bodyMediaType: 'application/xml', + params: {'myMap': {}}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); } class XmlMapsInputOutputRestXmlSerializer @@ -138,11 +120,8 @@ class XmlMapsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsInputOutput deserialize( @@ -161,16 +140,16 @@ class XmlMapsInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -196,11 +175,8 @@ class GreetingStructRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -219,10 +195,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart index 0faa9ef22a..4468b9b21c 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_empty_strings_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_empty_strings_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,133 +12,108 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEmptyStrings (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEmptyStringsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEmptyStrings', - documentation: 'Serializes xml empty strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - method: 'PUT', - uri: '/XmlEmptyStrings', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlEmptyStrings (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyStringsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptyStrings', - documentation: 'Deserializes xml empty strings', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlEmptyStringsInputOutputRestXmlSerializer() - ], - ); - }, - ); - _i1.test( - 'XmlEmptySelfClosedStrings (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEmptyStringsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEmptySelfClosedStrings', - documentation: - 'Empty self closed string are deserialized as empty string', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n\n', - bodyMediaType: 'application/xml', - params: {'emptyString': ''}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: _i2.AppliesTo.client, - code: 200, - ), - outputSerializers: const [ - XmlEmptyStringsInputOutputRestXmlSerializer() - ], - ); - }, - ); + _i1.test('XmlEmptyStrings (request)', () async { + await _i2.httpRequestTest( + operation: XmlEmptyStringsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEmptyStrings', + documentation: 'Serializes xml empty strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + method: 'PUT', + uri: '/XmlEmptyStrings', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEmptyStrings (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyStringsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptyStrings', + documentation: 'Deserializes xml empty strings', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEmptySelfClosedStrings (response)', () async { + await _i2.httpResponseTest( + operation: XmlEmptyStringsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEmptySelfClosedStrings', + documentation: + 'Empty self closed string are deserialized as empty string', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n\n', + bodyMediaType: 'application/xml', + params: {'emptyString': ''}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: _i2.AppliesTo.client, + code: 200, + ), + outputSerializers: const [XmlEmptyStringsInputOutputRestXmlSerializer()], + ); + }); } class XmlEmptyStringsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlEmptyStringsInputOutputRestXmlSerializer() - : super('XmlEmptyStringsInputOutput'); + : super('XmlEmptyStringsInputOutput'); @override Iterable get types => const [XmlEmptyStringsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEmptyStringsInputOutput deserialize( @@ -157,10 +132,12 @@ class XmlEmptyStringsInputOutputRestXmlSerializer } switch (key) { case 'emptyString': - result.emptyString = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.emptyString = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart index b6fad9cf94..607653ef01 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,110 +14,80 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlEnums (request)', - () async { - await _i2.httpRequestTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'fooEnum1': 'Foo', - 'fooEnum2': '0', - 'fooEnum3': '1', - 'fooEnumList': [ - 'Foo', - '0', - ], - 'fooEnumSet': [ - 'Foo', - '0', - ], - 'fooEnumMap': { - 'hi': 'Foo', - 'zero': '0', - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlEnums (request)', () async { + await _i2.httpRequestTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'fooEnum1': 'Foo', + 'fooEnum2': '0', + 'fooEnum3': '1', + 'fooEnumList': ['Foo', '0'], + 'fooEnumSet': ['Foo', '0'], + 'fooEnumMap': {'hi': 'Foo', 'zero': '0'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlEnumsInputOutputRestXmlSerializer()], + ); + }); } class XmlEnumsInputOutputRestXmlSerializer @@ -129,11 +99,8 @@ class XmlEnumsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlEnumsInputOutput deserialize( @@ -152,47 +119,57 @@ class XmlEnumsInputOutputRestXmlSerializer } switch (key) { case 'fooEnum1': - result.fooEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum2': - result.fooEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnum3': - result.fooEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(FooEnum), - ) as FooEnum); + result.fooEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(FooEnum), + ) + as FooEnum); case 'fooEnumList': - result.fooEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.fooEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'fooEnumSet': - result.fooEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(FooEnum)], - ), - ) as _i4.BuiltSet)); + result.fooEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'fooEnumMap': - result.fooEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(FooEnum), - ], - ), - ) as _i4.BuiltMap)); + result.fooEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(FooEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart index c2f3e7571a..faf5cfeefb 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_int_enums_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_int_enums_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,127 +14,94 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlIntEnums (request)', - () async { - await _i2.httpRequestTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlIntEnums', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlIntEnums (response)', - () async { - await _i2.httpResponseTest( - operation: XmlIntEnumsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlIntEnums', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'intEnum1': 1, - 'intEnum2': 2, - 'intEnum3': 3, - 'intEnumList': [ - 1, - 2, - ], - 'intEnumSet': [ - 1, - 2, - ], - 'intEnumMap': { - 'a': 1, - 'b': 2, - }, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlIntEnums (request)', () async { + await _i2.httpRequestTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlIntEnums', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlIntEnums (response)', () async { + await _i2.httpResponseTest( + operation: XmlIntEnumsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlIntEnums', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'intEnum1': 1, + 'intEnum2': 2, + 'intEnum3': 3, + 'intEnumList': [1, 2], + 'intEnumSet': [1, 2], + 'intEnumMap': {'a': 1, 'b': 2}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlIntEnumsInputOutputRestXmlSerializer()], + ); + }); } class XmlIntEnumsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlIntEnumsInputOutputRestXmlSerializer() - : super('XmlIntEnumsInputOutput'); + : super('XmlIntEnumsInputOutput'); @override Iterable get types => const [XmlIntEnumsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlIntEnumsInputOutput deserialize( @@ -153,47 +120,57 @@ class XmlIntEnumsInputOutputRestXmlSerializer } switch (key) { case 'intEnum1': - result.intEnum1 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum1 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum2': - result.intEnum2 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum2 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnum3': - result.intEnum3 = (serializers.deserialize( - value, - specifiedType: const FullType(IntegerEnum), - ) as IntegerEnum); + result.intEnum3 = + (serializers.deserialize( + value, + specifiedType: const FullType(IntegerEnum), + ) + as IntegerEnum); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumSet': - result.intEnumSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltSet)); + result.intEnumSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltSet), + ); case 'intEnumMap': - result.intEnumMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(IntegerEnum), - ], - ), - ) as _i4.BuiltMap)); + result.intEnumMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltMap), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart index fd7b44af17..e96bdd3735 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_lists_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_lists_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,234 +16,120 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlLists (request)', - () async { - await _i2.httpRequestTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - 'flattenedStructureList': [ - { - 'a': '5', - 'b': '6', - }, - { - 'a': '7', - 'b': '8', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlLists', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlLists (response)', - () async { - await _i2.httpResponseTest( - operation: XmlListsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlLists', - documentation: 'Tests for XML list serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'stringList': [ - 'foo', - 'bar', - ], - 'stringSet': [ - 'foo', - 'bar', - ], - 'integerList': [ - 1, - 2, - ], - 'booleanList': [ - true, - false, - ], - 'timestampList': [ - 1398796238, - 1398796238, - ], - 'enumList': [ - 'Foo', - '0', - ], - 'intEnumList': [ - 1, - 2, - ], - 'nestedStringList': [ - [ - 'foo', - 'bar', - ], - [ - 'baz', - 'qux', - ], - ], - 'renamedListMembers': [ - 'foo', - 'bar', - ], - 'flattenedList': [ - 'hi', - 'bye', - ], - 'flattenedList2': [ - 'yep', - 'nope', - ], - 'flattenedListWithMemberNamespace': [ - 'a', - 'b', - ], - 'flattenedListWithNamespace': [ - 'a', - 'b', - ], - 'structureList': [ - { - 'a': '1', - 'b': '2', - }, - { - 'a': '3', - 'b': '4', - }, - ], - 'flattenedStructureList': [ - { - 'a': '5', - 'b': '6', - }, - { - 'a': '7', - 'b': '8', - }, - ], - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlListsInputOutputRestXmlSerializer(), - StructureListMemberRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlLists (request)', () async { + await _i2.httpRequestTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + 'flattenedStructureList': [ + {'a': '5', 'b': '6'}, + {'a': '7', 'b': '8'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlLists', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlLists (response)', () async { + await _i2.httpResponseTest( + operation: XmlListsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlLists', + documentation: 'Tests for XML list serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n 5\n 6\n \n \n 7\n 8\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'stringList': ['foo', 'bar'], + 'stringSet': ['foo', 'bar'], + 'integerList': [1, 2], + 'booleanList': [true, false], + 'timestampList': [1398796238, 1398796238], + 'enumList': ['Foo', '0'], + 'intEnumList': [1, 2], + 'nestedStringList': [ + ['foo', 'bar'], + ['baz', 'qux'], + ], + 'renamedListMembers': ['foo', 'bar'], + 'flattenedList': ['hi', 'bye'], + 'flattenedList2': ['yep', 'nope'], + 'flattenedListWithMemberNamespace': ['a', 'b'], + 'flattenedListWithNamespace': ['a', 'b'], + 'structureList': [ + {'a': '1', 'b': '2'}, + {'a': '3', 'b': '4'}, + ], + 'flattenedStructureList': [ + {'a': '5', 'b': '6'}, + {'a': '7', 'b': '8'}, + ], + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlListsInputOutputRestXmlSerializer(), + StructureListMemberRestXmlSerializer(), + ], + ); + }); } class XmlListsInputOutputRestXmlSerializer @@ -255,11 +141,8 @@ class XmlListsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlListsInputOutput deserialize( @@ -278,131 +161,153 @@ class XmlListsInputOutputRestXmlSerializer } switch (key) { case 'stringList': - result.stringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.stringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'stringSet': - result.stringSet.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltSet, - [FullType(String)], - ), - ) as _i4.BuiltSet)); + result.stringSet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltSet, [ + FullType(String), + ]), + ) + as _i4.BuiltSet), + ); case 'integerList': - result.integerList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(int)], - ), - ) as _i4.BuiltList)); + result.integerList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [FullType(int)]), + ) + as _i4.BuiltList), + ); case 'booleanList': - result.booleanList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(bool)], - ), - ) as _i4.BuiltList)); + result.booleanList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(bool), + ]), + ) + as _i4.BuiltList), + ); case 'timestampList': - result.timestampList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(DateTime)], - ), - ) as _i4.BuiltList)); + result.timestampList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(DateTime), + ]), + ) + as _i4.BuiltList), + ); case 'enumList': - result.enumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(FooEnum)], - ), - ) as _i4.BuiltList)); + result.enumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(FooEnum), + ]), + ) + as _i4.BuiltList), + ); case 'intEnumList': - result.intEnumList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(IntegerEnum)], - ), - ) as _i4.BuiltList)); + result.intEnumList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(IntegerEnum), + ]), + ) + as _i4.BuiltList), + ); case 'nestedStringList': - result.nestedStringList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [ - FullType( - _i4.BuiltList, - [FullType(String)], + result.nestedStringList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(_i4.BuiltList, [FullType(String)]), + ]), ) - ], - ), - ) as _i4.BuiltList<_i4.BuiltList>)); + as _i4.BuiltList<_i4.BuiltList>), + ); case 'renamedListMembers': - result.renamedListMembers.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.renamedListMembers.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList': - result.flattenedList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedList2': - result.flattenedList2.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedList2.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithMemberNamespace': - result.flattenedListWithMemberNamespace - .replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithMemberNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedListWithNamespace': - result.flattenedListWithNamespace.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.flattenedListWithNamespace.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); case 'structureList': - result.structureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.structureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); case 'flattenedStructureList': - result.flattenedStructureList.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(StructureListMember)], - ), - ) as _i4.BuiltList)); + result.flattenedStructureList.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(StructureListMember), + ]), + ) + as _i4.BuiltList), + ); } } @@ -428,11 +333,8 @@ class StructureListMemberRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override StructureListMember deserialize( @@ -451,15 +353,19 @@ class StructureListMemberRestXmlSerializer } switch (key) { case 'a': - result.a = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.a = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'b': - result.b = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.b = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart index 9009ed9f6b..7be28da2cf 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_maps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,94 +14,82 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlMaps (request)', - () async { - await _i2.httpRequestTest( - operation: XmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlMaps', - documentation: 'Tests for XML map serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('XmlMaps (request)', () async { + await _i2.httpRequestTest( + operation: XmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlMaps', + documentation: 'Tests for XML map serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlMaps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlMaps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlMaps', - documentation: 'Tests for XML map serialization', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlMaps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlMaps (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlMaps', + documentation: 'Tests for XML map serialization', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); } class XmlMapsInputOutputRestXmlSerializer @@ -113,11 +101,8 @@ class XmlMapsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsInputOutput deserialize( @@ -136,16 +121,16 @@ class XmlMapsInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -171,11 +156,8 @@ class GreetingStructRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -194,10 +176,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart index 872e2248d5..87f3e8b924 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_maps_xml_name_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_maps_xml_name_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,111 +14,96 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlMapsXmlName (request)', - () async { - await _i2.httpRequestTest( - operation: XmlMapsXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlMapsXmlName', - documentation: 'Serializes XML maps that have xmlName on members', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + _i1.test('XmlMapsXmlName (request)', () async { + await _i2.httpRequestTest( + operation: XmlMapsXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlMapsXmlName', + documentation: 'Serializes XML maps that have xmlName on members', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlMapsXmlName', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlMapsXmlNameInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlMapsXmlName (response)', - () async { - await _i2.httpResponseTest( - operation: XmlMapsXmlNameOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlMapsXmlName', - documentation: 'Serializes XML lists', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'myMap': { - 'foo': {'hi': 'there'}, - 'baz': {'hi': 'bye'}, - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlMapsXmlName', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlMapsXmlNameInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlMapsXmlName (response)', () async { + await _i2.httpResponseTest( + operation: XmlMapsXmlNameOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlMapsXmlName', + documentation: 'Serializes XML lists', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'myMap': { + 'foo': {'hi': 'there'}, + 'baz': {'hi': 'bye'}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlMapsXmlNameInputOutputRestXmlSerializer(), - GreetingStructRestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlMapsXmlNameInputOutputRestXmlSerializer(), + GreetingStructRestXmlSerializer(), + ], + ); + }); } class XmlMapsXmlNameInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlMapsXmlNameInputOutputRestXmlSerializer() - : super('XmlMapsXmlNameInputOutput'); + : super('XmlMapsXmlNameInputOutput'); @override Iterable get types => const [XmlMapsXmlNameInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlMapsXmlNameInputOutput deserialize( @@ -137,16 +122,16 @@ class XmlMapsXmlNameInputOutputRestXmlSerializer } switch (key) { case 'myMap': - result.myMap.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltMap, - [ - FullType(String), - FullType(GreetingStruct), - ], - ), - ) as _i4.BuiltMap)); + result.myMap.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltMap, [ + FullType(String), + FullType(GreetingStruct), + ]), + ) + as _i4.BuiltMap), + ); } } @@ -172,11 +157,8 @@ class GreetingStructRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GreetingStruct deserialize( @@ -195,10 +177,12 @@ class GreetingStructRestXmlSerializer } switch (key) { case 'hi': - result.hi = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.hi = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart index 631c7c4afb..fca17603d2 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_namespaces_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_namespaces_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,117 +14,96 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlNamespaces (request)', - () async { - await _i2.httpRequestTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo\n \n Bar\n Baz\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + _i1.test('XmlNamespaces (request)', () async { + await _i2.httpRequestTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo\n \n Bar\n Baz\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlNamespaces', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - XmlNamespacesInputOutputRestXmlSerializer(), - XmlNamespaceNestedRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlNamespaces (response)', - () async { - await _i2.httpResponseTest( - operation: XmlNamespacesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlNamespaces', - documentation: 'Serializes XML namespaces', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n Foo\n \n Bar\n Baz\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'nested': { - 'foo': 'Foo', - 'values': [ - 'Bar', - 'Baz', - ], - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlNamespaces', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + XmlNamespacesInputOutputRestXmlSerializer(), + XmlNamespaceNestedRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlNamespaces (response)', () async { + await _i2.httpResponseTest( + operation: XmlNamespacesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlNamespaces', + documentation: 'Serializes XML namespaces', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n Foo\n \n Bar\n Baz\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'nested': { + 'foo': 'Foo', + 'values': ['Bar', 'Baz'], }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - XmlNamespacesInputOutputRestXmlSerializer(), - XmlNamespaceNestedRestXmlSerializer(), - ], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + XmlNamespacesInputOutputRestXmlSerializer(), + XmlNamespaceNestedRestXmlSerializer(), + ], + ); + }); } class XmlNamespacesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlNamespacesInputOutputRestXmlSerializer() - : super('XmlNamespacesInputOutput'); + : super('XmlNamespacesInputOutput'); @override Iterable get types => const [XmlNamespacesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespacesInputOutput deserialize( @@ -143,10 +122,13 @@ class XmlNamespacesInputOutputRestXmlSerializer } switch (key) { case 'nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(XmlNamespaceNested), - ) as XmlNamespaceNested)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(XmlNamespaceNested), + ) + as XmlNamespaceNested), + ); } } @@ -172,11 +154,8 @@ class XmlNamespaceNestedRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlNamespaceNested deserialize( @@ -195,18 +174,22 @@ class XmlNamespaceNestedRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'values': - result.values.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i4.BuiltList, - [FullType(String)], - ), - ) as _i4.BuiltList)); + result.values.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.BuiltList, [ + FullType(String), + ]), + ) + as _i4.BuiltList), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart index ee85e0a988..8d7aadc5b2 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_timestamps_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_timestamps_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,537 +12,450 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlTimestamps (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeOnTargetFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsOnTargetFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateOnTargetFormat (request)', - () async { - await _i2.httpRequestTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'POST', - uri: '/XmlTimestamps', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestamps (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestamps', - documentation: 'Tests how normal timestamps are serialized', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'normal': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithDateTimeFormat', - documentation: - 'Ensures that the timestampFormat of date-time works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTime': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithDateTimeOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithDateTimeOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 2014-04-29T18:30:38Z\n\n', - bodyMediaType: 'application/xml', - params: {'dateTimeOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithEpochSecondsFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSeconds': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithEpochSecondsOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of epoch-seconds on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n 1398796238\n\n', - bodyMediaType: 'application/xml', - params: {'epochSecondsOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithHttpDateFormat', - documentation: 'Ensures that the timestampFormat of http-date works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDate': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlTimestampsWithHttpDateOnTargetFormat (response)', - () async { - await _i2.httpResponseTest( - operation: XmlTimestampsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlTimestampsWithHttpDateOnTargetFormat', - documentation: - 'Ensures that the timestampFormat of http-date on the target shape works', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', - bodyMediaType: 'application/xml', - params: {'httpDateOnTarget': 1398796238}, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], - ); - }, - ); + _i1.test('XmlTimestamps (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeOnTargetFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsOnTargetFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateOnTargetFormat (request)', () async { + await _i2.httpRequestTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'POST', + uri: '/XmlTimestamps', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestamps (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestamps', + documentation: 'Tests how normal timestamps are serialized', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'normal': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithDateTimeFormat', + documentation: + 'Ensures that the timestampFormat of date-time works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTime': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithDateTimeOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithDateTimeOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of date-time on the target shape works like normal timestamps', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 2014-04-29T18:30:38Z\n\n', + bodyMediaType: 'application/xml', + params: {'dateTimeOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithEpochSecondsFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSeconds': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithEpochSecondsOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithEpochSecondsOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of epoch-seconds on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n 1398796238\n\n', + bodyMediaType: 'application/xml', + params: {'epochSecondsOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithHttpDateFormat', + documentation: 'Ensures that the timestampFormat of http-date works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDate': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlTimestampsWithHttpDateOnTargetFormat (response)', () async { + await _i2.httpResponseTest( + operation: XmlTimestampsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlTimestampsWithHttpDateOnTargetFormat', + documentation: + 'Ensures that the timestampFormat of http-date on the target shape works', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n Tue, 29 Apr 2014 18:30:38 GMT\n\n', + bodyMediaType: 'application/xml', + params: {'httpDateOnTarget': 1398796238}, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlTimestampsInputOutputRestXmlSerializer()], + ); + }); } class XmlTimestampsInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const XmlTimestampsInputOutputRestXmlSerializer() - : super('XmlTimestampsInputOutput'); + : super('XmlTimestampsInputOutput'); @override Iterable get types => const [XmlTimestampsInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlTimestampsInputOutput deserialize( @@ -571,34 +484,22 @@ class XmlTimestampsInputOutputRestXmlSerializer value, ); case 'dateTimeOnTarget': - result.dateTimeOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.dateTimeOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSeconds': - result.epochSeconds = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSeconds = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'epochSecondsOnTarget': - result.epochSecondsOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.epochSecondsOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'httpDate': result.httpDate = _i3.TimestampSerializer.epochSeconds.deserialize( serializers, value, ); case 'httpDateOnTarget': - result.httpDateOnTarget = - _i3.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.httpDateOnTarget = _i3.TimestampSerializer.epochSeconds + .deserialize(serializers, value); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart index c221508ce5..a9971c39e1 100644 --- a/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/rest_xml_protocol/xml_unions_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.rest_xml_protocol.test.xml_unions_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -13,336 +13,288 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlUnionsWithStructMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithStructMember', - documentation: 'Serializes union struct member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'structValue': { - 'stringValue': 'string', - 'booleanValue': true, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - } - } + _i1.test('XmlUnionsWithStructMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithStructMember', + documentation: 'Serializes union struct member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'structValue': { + 'stringValue': 'string', + 'booleanValue': true, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithStringMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithStringMember', - documentation: 'serialize union string member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n some string\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'stringValue': 'some string'} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithStringMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithStringMember', + documentation: 'serialize union string member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n some string\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'stringValue': 'some string'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithBooleanMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithBooleanMember', + documentation: 'Serializes union boolean member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n true\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithUnionMember (request)', () async { + await _i2.httpRequestTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlUnionsWithUnionMember', + documentation: 'Serializes union member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n true\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'unionValue': {'booleanValue': true}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithBooleanMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithBooleanMember', - documentation: 'Serializes union boolean member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n true\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'booleanValue': true} + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/XmlUnions', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithStructMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithStructMember', + documentation: 'Serializes union struct member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'structValue': { + 'stringValue': 'string', + 'booleanValue': true, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + }, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithUnionMember (request)', - () async { - await _i2.httpRequestTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlUnionsWithUnionMember', - documentation: 'Serializes union member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n true\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'unionValue': {'booleanValue': true} - } + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithStringMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithStringMember', + documentation: 'Serializes union string member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n some string\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'stringValue': 'some string'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithBooleanMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithBooleanMember', + documentation: 'Serializes union boolean member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n true\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': {'booleanValue': true}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); + _i1.test('XmlUnionsWithUnionMember (response)', () async { + await _i2.httpResponseTest( + operation: XmlUnionsOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlUnionsWithUnionMember', + documentation: 'Serializes union member', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n \n \n true\n \n \n\n', + bodyMediaType: 'application/xml', + params: { + 'unionValue': { + 'unionValue': {'booleanValue': true}, }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/XmlUnions', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithStructMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithStructMember', - documentation: 'Serializes union struct member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n string\n true\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'structValue': { - 'stringValue': 'string', - 'booleanValue': true, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - } - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithStringMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithStringMember', - documentation: 'Serializes union string member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n some string\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'stringValue': 'some string'} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithBooleanMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithBooleanMember', - documentation: 'Serializes union boolean member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n true\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': {'booleanValue': true} - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); - _i1.test( - 'XmlUnionsWithUnionMember (response)', - () async { - await _i2.httpResponseTest( - operation: XmlUnionsOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlUnionsWithUnionMember', - documentation: 'Serializes union member', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n \n \n true\n \n \n\n', - bodyMediaType: 'application/xml', - params: { - 'unionValue': { - 'unionValue': {'booleanValue': true} - } - }, - vendorParamsShape: null, - vendorParams: {}, - headers: {'Content-Type': 'application/xml'}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], - ); - }, - ); + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [XmlUnionsInputOutputRestXmlSerializer()], + ); + }); } class XmlUnionsInputOutputRestXmlSerializer @@ -354,11 +306,8 @@ class XmlUnionsInputOutputRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override XmlUnionsInputOutput deserialize( @@ -377,10 +326,12 @@ class XmlUnionsInputOutputRestXmlSerializer } switch (key) { case 'unionValue': - result.unionValue = (serializers.deserialize( - value, - specifiedType: const FullType(XmlUnionShape), - ) as XmlUnionShape); + result.unionValue = + (serializers.deserialize( + value, + specifiedType: const FullType(XmlUnionShape), + ) + as XmlUnionShape); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/s3/delete_object_tagging_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/s3/delete_object_tagging_operation_test.dart index 0411af87e5..e1e01bde6c 100644 --- a/packages/smithy/goldens/lib2/restXml/test/s3/delete_object_tagging_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/s3/delete_object_tagging_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.s3.test.delete_object_tagging_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -26,198 +26,173 @@ import 'package:smithy_test/smithy_test.dart' as _i1; import 'package:test/test.dart' as _i2; void main() { - final vendorSerializers = (_i1.testSerializers.toBuilder() - ..addAll(const [ - AwsConfigSerializer(), - ScopedConfigSerializer(), - EnvironmentConfigSerializer(), - FileConfigSettingsSerializer(), - S3ConfigSerializer(), - ClientConfigSerializer(), - RetryConfigSerializer(), - OperationConfigSerializer(), - ...RetryMode.serializers, - ...S3AddressingStyle.serializers, - ])) - .build(); - - _i2.test( - 'S3EscapeObjectKeyInUriLabel (request)', - () async { - final config = (vendorSerializers.deserialize( - { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } - }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: DeleteObjectTaggingOperation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + final vendorSerializers = + (_i1.testSerializers.toBuilder()..addAll(const [ + AwsConfigSerializer(), + ScopedConfigSerializer(), + EnvironmentConfigSerializer(), + FileConfigSettingsSerializer(), + S3ConfigSerializer(), + ClientConfigSerializer(), + RetryConfigSerializer(), + OperationConfigSerializer(), + ...RetryMode.serializers, + ...S3AddressingStyle.serializers, + ])) + .build(); + + _i2.test('S3EscapeObjectKeyInUriLabel (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: DeleteObjectTaggingOperation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3EscapeObjectKeyInUriLabel', - documentation: - ' S3 clients should escape special characters in Object Keys\n when the Object Key is used as a URI label binding.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'Bucket': 'mybucket', - 'Key': 'my key.txt', - }, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'DELETE', - uri: '/my%20key.txt', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['tagging'], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3EscapeObjectKeyInUriLabel', + documentation: + ' S3 clients should escape special characters in Object Keys\n when the Object Key is used as a URI label binding.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket', 'Key': 'my key.txt'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3EscapePathObjectKeyInUriLabel (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } + 'client': {'region': 'us-west-2'}, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'DELETE', + uri: '/my%20key.txt', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['tagging'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], + ); + }); + _i2.test('S3EscapePathObjectKeyInUriLabel (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: DeleteObjectTaggingOperation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - ); - await _i1.httpRequestTest( - operation: DeleteObjectTaggingOperation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3EscapePathObjectKeyInUriLabel', + documentation: + ' S3 clients should preserve an Object Key representing a path\n when the Object Key is used as a URI label binding, but still\n escape special characters.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket', 'Key': 'foo/bar/my key.txt'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3EscapePathObjectKeyInUriLabel', - documentation: - ' S3 clients should preserve an Object Key representing a path\n when the Object Key is used as a URI label binding, but still\n escape special characters.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: { - 'Bucket': 'mybucket', - 'Key': 'foo/bar/my key.txt', - }, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } + vendorParams: { + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'DELETE', - uri: '/foo/bar/my%20key.txt', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['tagging'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], - ); - }, - ); + }, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'DELETE', + uri: '/foo/bar/my%20key.txt', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['tagging'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [DeleteObjectTaggingRequestRestXmlSerializer()], + ); + }); } class DeleteObjectTaggingRequestRestXmlSerializer extends _i5.StructuredSmithySerializer { const DeleteObjectTaggingRequestRestXmlSerializer() - : super('DeleteObjectTaggingRequest'); + : super('DeleteObjectTaggingRequest'); @override Iterable get types => const [DeleteObjectTaggingRequest]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingRequest deserialize( @@ -236,25 +211,33 @@ class DeleteObjectTaggingRequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'VersionId': - result.versionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.versionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ExpectedBucketOwner': - result.expectedBucketOwner = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.expectedBucketOwner = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -274,18 +257,15 @@ class DeleteObjectTaggingRequestRestXmlSerializer class DeleteObjectTaggingOutputRestXmlSerializer extends _i5.StructuredSmithySerializer { const DeleteObjectTaggingOutputRestXmlSerializer() - : super('DeleteObjectTaggingOutput'); + : super('DeleteObjectTaggingOutput'); @override Iterable get types => const [DeleteObjectTaggingOutput]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectTaggingOutput deserialize( @@ -304,10 +284,12 @@ class DeleteObjectTaggingOutputRestXmlSerializer } switch (key) { case 'VersionId': - result.versionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.versionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -332,11 +314,8 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override AwsConfig deserialize( @@ -355,15 +334,20 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -389,11 +373,8 @@ class ScopedConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ScopedConfig deserialize( @@ -412,42 +393,51 @@ class ScopedConfigSerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -473,11 +463,8 @@ class EnvironmentConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override EnvironmentConfig deserialize( @@ -496,35 +483,47 @@ class EnvironmentConfigSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -550,11 +549,8 @@ class FileConfigSettingsSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override FileConfigSettings deserialize( @@ -573,40 +569,55 @@ class FileConfigSettingsSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -631,11 +642,8 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override S3Config deserialize( @@ -654,20 +662,26 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -693,11 +707,8 @@ class ClientConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ClientConfig deserialize( @@ -716,40 +727,56 @@ class ClientConfigSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -775,11 +802,8 @@ class RetryConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override RetryConfig deserialize( @@ -798,15 +822,19 @@ class RetryConfigSerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -832,11 +860,8 @@ class OperationConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override OperationConfig deserialize( @@ -855,10 +880,13 @@ class OperationConfigSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/s3/get_bucket_location_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/s3/get_bucket_location_operation_test.dart index 9ec64ac94e..e10daeca64 100644 --- a/packages/smithy/goldens/lib2/restXml/test/s3/get_bucket_location_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/s3/get_bucket_location_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.s3.test.get_bucket_location_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,64 +16,53 @@ import 'package:smithy_test/smithy_test.dart' as _i3; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'GetBucketLocationUnwrappedOutput (response)', - () async { - const s3ClientConfig = _i2.S3ClientConfig(); - await _i3.httpResponseTest( - operation: GetBucketLocationOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + _i1.test('GetBucketLocationUnwrappedOutput (response)', () async { + const s3ClientConfig = _i2.S3ClientConfig(); + await _i3.httpResponseTest( + operation: GetBucketLocationOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i3.HttpResponseTestCase( - id: 'GetBucketLocationUnwrappedOutput', - documentation: - ' S3 clients should use the @s3UnwrappedXmlOutput trait to determine\n that the response shape is not wrapped in a restxml operation-level XML node.\n', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\nus-west-2', - bodyMediaType: null, - params: {'LocationConstraint': 'us-west-2'}, - vendorParamsShape: null, - vendorParams: {}, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [GetBucketLocationOutputRestXmlSerializer()], - ); - }, - ); + ), + testCase: const _i3.HttpResponseTestCase( + id: 'GetBucketLocationUnwrappedOutput', + documentation: + ' S3 clients should use the @s3UnwrappedXmlOutput trait to determine\n that the response shape is not wrapped in a restxml operation-level XML node.\n', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\nus-west-2', + bodyMediaType: null, + params: {'LocationConstraint': 'us-west-2'}, + vendorParamsShape: null, + vendorParams: {}, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [GetBucketLocationOutputRestXmlSerializer()], + ); + }); } class GetBucketLocationRequestRestXmlSerializer extends _i5.StructuredSmithySerializer { const GetBucketLocationRequestRestXmlSerializer() - : super('GetBucketLocationRequest'); + : super('GetBucketLocationRequest'); @override Iterable get types => const [GetBucketLocationRequest]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetBucketLocationRequest deserialize( @@ -92,10 +81,12 @@ class GetBucketLocationRequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -115,18 +106,15 @@ class GetBucketLocationRequestRestXmlSerializer class GetBucketLocationOutputRestXmlSerializer extends _i5.StructuredSmithySerializer { const GetBucketLocationOutputRestXmlSerializer() - : super('GetBucketLocationOutput'); + : super('GetBucketLocationOutput'); @override Iterable get types => const [GetBucketLocationOutput]; @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetBucketLocationOutput deserialize( @@ -145,10 +133,12 @@ class GetBucketLocationOutputRestXmlSerializer } switch (key) { case 'LocationConstraint': - result.locationConstraint = (serializers.deserialize( - value, - specifiedType: const FullType(BucketLocationConstraint), - ) as BucketLocationConstraint); + result.locationConstraint = + (serializers.deserialize( + value, + specifiedType: const FullType(BucketLocationConstraint), + ) + as BucketLocationConstraint); } } diff --git a/packages/smithy/goldens/lib2/restXml/test/s3/list_objects_v2_operation_test.dart b/packages/smithy/goldens/lib2/restXml/test/s3/list_objects_v2_operation_test.dart index d7485b0424..e4e65c6fc2 100644 --- a/packages/smithy/goldens/lib2/restXml/test/s3/list_objects_v2_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXml/test/s3/list_objects_v2_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_v2.s3.test.list_objects_v2_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -33,272 +33,298 @@ import 'package:smithy_test/smithy_test.dart' as _i1; import 'package:test/test.dart' as _i2; void main() { - final vendorSerializers = (_i1.testSerializers.toBuilder() - ..addAll(const [ - AwsConfigSerializer(), - ScopedConfigSerializer(), - EnvironmentConfigSerializer(), - FileConfigSettingsSerializer(), - S3ConfigSerializer(), - ClientConfigSerializer(), - RetryConfigSerializer(), - OperationConfigSerializer(), - ...EncodingType.serializers, - ...RequestPayer.serializers, - ...RetryMode.serializers, - ...S3AddressingStyle.serializers, - ...ObjectStorageClass.serializers, - ])) - .build(); - - _i2.test( - 'S3DefaultAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } - }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, + final vendorSerializers = + (_i1.testSerializers.toBuilder()..addAll(const [ + AwsConfigSerializer(), + ScopedConfigSerializer(), + EnvironmentConfigSerializer(), + FileConfigSettingsSerializer(), + S3ConfigSerializer(), + ClientConfigSerializer(), + RetryConfigSerializer(), + OperationConfigSerializer(), + ...EncodingType.serializers, + ...RequestPayer.serializers, + ...RetryMode.serializers, + ...S3AddressingStyle.serializers, + ...ObjectStorageClass.serializers, + ])) + .build(); + + _i2.test('S3DefaultAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3DefaultAddressing', + documentation: + 'S3 clients should map the default addressing style to virtual host.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3DefaultAddressing', - documentation: - 'S3 clients should map the default addressing style to virtual host.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': {'region': 'us-west-2'} - } + vendorParams: { + 'scopedConfig': { + 'client': {'region': 'us-west-2'}, }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + }, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': {'addressing_style': 'virtual'}, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostAddressing', + documentation: + 'S3 clients should support the explicit virtual host addressing style.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', 's3': {'addressing_style': 'virtual'}, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3PathAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': {'addressing_style': 'path'}, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostAddressing', - documentation: - 'S3 clients should support the explicit virtual host addressing style.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': {'addressing_style': 'virtual'}, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3PathAddressing', + documentation: + 'S3 clients should support the explicit path addressing style.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3PathAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', 's3': {'addressing_style': 'path'}, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/mybucket', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 's3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostDualstackAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': { + 'addressing_style': 'virtual', + 'use_dualstack_endpoint': true, + }, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3PathAddressing', - documentation: - 'S3 clients should support the explicit path addressing style.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': {'addressing_style': 'path'}, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/mybucket', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 's3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostDualstackAddressing', + documentation: + 'S3 clients should support the explicit virtual host\naddressing style with Dualstack.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostDualstackAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', @@ -306,88 +332,80 @@ void main() { 'addressing_style': 'virtual', 'use_dualstack_endpoint': true, }, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostDualstackAddressing', - documentation: - 'S3 clients should support the explicit virtual host\naddressing style with Dualstack.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': { - 'addressing_style': 'virtual', - 'use_dualstack_endpoint': true, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.dualstack.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostAccelerateAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': { + 'addressing_style': 'virtual', + 'use_accelerate_endpoint': true, + }, }, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.dualstack.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostAccelerateAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostAccelerateAddressing', + documentation: + 'S3 clients should support the explicit virtual host\naddressing style with S3 Accelerate.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', + ), + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', @@ -395,88 +413,81 @@ void main() { 'addressing_style': 'virtual', 'use_accelerate_endpoint': true, }, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostAccelerateAddressing', - documentation: - 'S3 clients should support the explicit virtual host\naddressing style with S3 Accelerate.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': { - 'addressing_style': 'virtual', - 'use_accelerate_endpoint': true, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3-accelerate.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3VirtualHostDualstackAccelerateAddressing (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': { + 'addressing_style': 'virtual', + 'use_dualstack_endpoint': true, + 'use_accelerate_endpoint': true, + }, }, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3-accelerate.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3VirtualHostDualstackAccelerateAddressing', + documentation: + 'S3 clients should support the explicit virtual host\naddressing style with Dualstack and S3 Accelerate.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3VirtualHostDualstackAccelerateAddressing (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', @@ -485,173 +496,106 @@ void main() { 'use_dualstack_endpoint': true, 'use_accelerate_endpoint': true, }, - } - } + }, + }, }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3VirtualHostDualstackAccelerateAddressing', - documentation: - 'S3 clients should support the explicit virtual host\naddressing style with Dualstack and S3 Accelerate.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': { - 'addressing_style': 'virtual', - 'use_dualstack_endpoint': true, - 'use_accelerate_endpoint': true, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3-accelerate.dualstack.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); + _i2.test('S3OperationAddressingPreferred (request)', () async { + final config = + (vendorSerializers.deserialize({ + 'scopedConfig': { + 'client': { + 'region': 'us-west-2', + 's3': {'addressing_style': 'path'}, }, - } - } - }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3-accelerate.dualstack.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], + 'operation': { + 's3': {'addressing_style': 'virtual'}, + }, + }, + }, specifiedType: const FullType(AwsConfig)) + as AwsConfig); + final s3ClientConfig = _i3.S3ClientConfig( + useAcceleration: + config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? + config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? + false, + useDualStack: + config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? + config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? + false, + usePathStyle: + (config.scopedConfig?.operation?.s3?.addressingStyle ?? + config.scopedConfig?.client?.s3?.addressingStyle) == + S3AddressingStyle.path, + signerConfiguration: _i4.S3ServiceConfiguration( + signPayload: false, + chunked: false, + ), + ); + await _i1.httpRequestTest( + operation: ListObjectsV2Operation( + region: config.scopedConfig?.client?.region ?? 'us-east-1', + baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), + s3ClientConfig: s3ClientConfig, + credentialsProvider: const _i4.AWSCredentialsProvider( + _i4.AWSCredentials('DUMMY-ACCESS-KEY-ID', 'DUMMY-SECRET-ACCESS-KEY'), + ), + ), + testCase: const _i1.HttpRequestTestCase( + id: 'S3OperationAddressingPreferred', + documentation: + 'S3 clients should resolve to the addressing style of the\noperation if defined on both the client and operation.', + protocol: _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: '', + bodyMediaType: null, + params: {'Bucket': 'mybucket'}, + vendorParamsShape: _i5.ShapeId( + namespace: 'aws.protocoltests.config', + shape: 'AwsConfig', ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); - _i2.test( - 'S3OperationAddressingPreferred (request)', - () async { - final config = (vendorSerializers.deserialize( - { + vendorParams: { 'scopedConfig': { 'client': { 'region': 'us-west-2', 's3': {'addressing_style': 'path'}, }, 'operation': { - 's3': {'addressing_style': 'virtual'} + 's3': {'addressing_style': 'virtual'}, }, - } - }, - specifiedType: const FullType(AwsConfig), - ) as AwsConfig); - final s3ClientConfig = _i3.S3ClientConfig( - useAcceleration: - config.scopedConfig?.operation?.s3?.useAccelerateEndpoint ?? - config.scopedConfig?.client?.s3?.useAccelerateEndpoint ?? - false, - useDualStack: - config.scopedConfig?.operation?.s3?.useDualstackEndpoint ?? - config.scopedConfig?.client?.s3?.useDualstackEndpoint ?? - false, - usePathStyle: (config.scopedConfig?.operation?.s3?.addressingStyle ?? - config.scopedConfig?.client?.s3?.addressingStyle) == - S3AddressingStyle.path, - signerConfiguration: _i4.S3ServiceConfiguration( - signPayload: false, - chunked: false, - ), - ); - await _i1.httpRequestTest( - operation: ListObjectsV2Operation( - region: config.scopedConfig?.client?.region ?? 'us-east-1', - baseUri: Uri.parse('https://s3.us-west-2.amazonaws.com'), - s3ClientConfig: s3ClientConfig, - credentialsProvider: - const _i4.AWSCredentialsProvider(_i4.AWSCredentials( - 'DUMMY-ACCESS-KEY-ID', - 'DUMMY-SECRET-ACCESS-KEY', - )), - ), - testCase: const _i1.HttpRequestTestCase( - id: 'S3OperationAddressingPreferred', - documentation: - 'S3 clients should resolve to the addressing style of the\noperation if defined on both the client and operation.', - protocol: _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: '', - bodyMediaType: null, - params: {'Bucket': 'mybucket'}, - vendorParamsShape: _i5.ShapeId( - namespace: 'aws.protocoltests.config', - shape: 'AwsConfig', - ), - vendorParams: { - 'scopedConfig': { - 'client': { - 'region': 'us-west-2', - 's3': {'addressing_style': 'path'}, - }, - 'operation': { - 's3': {'addressing_style': 'virtual'} - }, - } }, - headers: {}, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'GET', - uri: '/', - host: 's3.us-west-2.amazonaws.com', - resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', - queryParams: ['list-type=2'], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], - ); - }, - ); + }, + headers: {}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'GET', + uri: '/', + host: 's3.us-west-2.amazonaws.com', + resolvedHost: 'mybucket.s3.us-west-2.amazonaws.com', + queryParams: ['list-type=2'], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ListObjectsV2RequestRestXmlSerializer()], + ); + }); } class ListObjectsV2RequestRestXmlSerializer @@ -663,11 +607,8 @@ class ListObjectsV2RequestRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2Request deserialize( @@ -686,55 +627,75 @@ class ListObjectsV2RequestRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'MaxKeys': - result.maxKeys = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxKeys = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ContinuationToken': - result.continuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.continuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'FetchOwner': - result.fetchOwner = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.fetchOwner = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'StartAfter': - result.startAfter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startAfter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RequestPayer': - result.requestPayer = (serializers.deserialize( - value, - specifiedType: const FullType(RequestPayer), - ) as RequestPayer); + result.requestPayer = + (serializers.deserialize( + value, + specifiedType: const FullType(RequestPayer), + ) + as RequestPayer); case 'ExpectedBucketOwner': - result.expectedBucketOwner = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.expectedBucketOwner = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -760,11 +721,8 @@ class ListObjectsV2OutputRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2Output deserialize( @@ -783,71 +741,95 @@ class ListObjectsV2OutputRestXmlSerializer } switch (key) { case 'IsTruncated': - result.isTruncated = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isTruncated = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Contents': - result.contents.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(S3Object)], - ), - ) as _i6.BuiltList)); + result.contents.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(S3Object), + ]), + ) + as _i6.BuiltList), + ); case 'Name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'MaxKeys': - result.maxKeys = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxKeys = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'CommonPrefixes': - result.commonPrefixes.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltList, - [FullType(CommonPrefix)], - ), - ) as _i6.BuiltList)); + result.commonPrefixes.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltList, [ + FullType(CommonPrefix), + ]), + ) + as _i6.BuiltList), + ); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'KeyCount': - result.keyCount = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.keyCount = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'ContinuationToken': - result.continuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.continuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'NextContinuationToken': - result.nextContinuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextContinuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StartAfter': - result.startAfter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startAfter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -872,11 +854,8 @@ class ObjectRestXmlSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Object deserialize( @@ -895,36 +874,44 @@ class ObjectRestXmlSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = - _i5.TimestampSerializer.epochSeconds.deserialize( - serializers, - value, - ); + result.lastModified = _i5.TimestampSerializer.epochSeconds + .deserialize(serializers, value); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Size': - result.size = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.size = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(ObjectStorageClass), - ) as ObjectStorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(ObjectStorageClass), + ) + as ObjectStorageClass); case 'Owner': - result.owner.replace((serializers.deserialize( - value, - specifiedType: const FullType(Owner), - ) as Owner)); + result.owner.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Owner), + ) + as Owner), + ); } } @@ -949,11 +936,8 @@ class OwnerRestXmlSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Owner deserialize( @@ -972,15 +956,19 @@ class OwnerRestXmlSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'DisplayName': - result.displayName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.displayName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ID': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1006,11 +994,8 @@ class CommonPrefixRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CommonPrefix deserialize( @@ -1029,10 +1014,12 @@ class CommonPrefixRestXmlSerializer } switch (key) { case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1058,11 +1045,8 @@ class NoSuchBucketRestXmlSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i5.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoSuchBucket deserialize( @@ -1091,11 +1075,8 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override AwsConfig deserialize( @@ -1114,15 +1095,20 @@ class AwsConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -1148,11 +1134,8 @@ class ScopedConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ScopedConfig deserialize( @@ -1171,42 +1154,51 @@ class ScopedConfigSerializer } switch (key) { case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'configFile': - result.configFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.configFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'credentialsFile': - result.credentialsFile.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i6.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ), - ) as _i6.BuiltMap)); + result.credentialsFile.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i6.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]), + ) + as _i6.BuiltMap), + ); case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -1232,11 +1224,8 @@ class EnvironmentConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override EnvironmentConfig deserialize( @@ -1255,35 +1244,47 @@ class EnvironmentConfigSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1309,11 +1310,8 @@ class FileConfigSettingsSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override FileConfigSettings deserialize( @@ -1332,40 +1330,55 @@ class FileConfigSettingsSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -1390,11 +1403,8 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override S3Config deserialize( @@ -1413,20 +1423,26 @@ class S3ConfigSerializer extends _i5.StructuredSmithySerializer { } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -1452,11 +1468,8 @@ class ClientConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override ClientConfig deserialize( @@ -1475,40 +1488,56 @@ class ClientConfigSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -1534,11 +1563,8 @@ class RetryConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override RetryConfig deserialize( @@ -1557,15 +1583,19 @@ class RetryConfigSerializer } switch (key) { case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -1591,11 +1621,8 @@ class OperationConfigSerializer @override Iterable<_i5.ShapeId> get supportedProtocols => const [ - _i5.ShapeId( - namespace: 'smithy.dart', - shape: 'genericProtocol', - ) - ]; + _i5.ShapeId(namespace: 'smithy.dart', shape: 'genericProtocol'), + ]; @override OperationConfig deserialize( @@ -1614,10 +1641,13 @@ class OperationConfigSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart index b5625ce46c..2822d7eee5 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/rest_xml_protocol_namespace.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name /// A REST XML service that sends XML requests and responses. This service and test case is complementary to the test cases in the \`restXml\` directory, but the service under test here has the \`xmlNamespace\` trait applied to it. See https://github.com/awslabs/smithy/issues/616 library rest_xml_with_namespace_v2.rest_xml_protocol_namespace; diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart index 5ad4bf3d0a..2825a127b9 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/endpoint_resolver.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.common.endpoint_resolver; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -57,10 +57,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -75,10 +72,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -108,15 +102,13 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const {}, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Rest Xml Protocol Namespace'; diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart index 14fdd86c7f..7dfdca482e 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/common/serializers.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.common.serializers; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,11 +34,9 @@ const List<_i1.SmithySerializer> serializers = [ ...AwsConfig.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(FileConfigSettings), - ], - ): _i2.MapBuilder.new + const FullType(_i2.BuiltMap, [ + FullType(String), + FullType(FileConfigSettings), + ]): + _i2.MapBuilder.new, }; diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart index e87b15f874..87e819e3f9 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.aws_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,14 +14,8 @@ part 'aws_config.g.dart'; abstract class AwsConfig with _i1.AWSEquatable implements Built { - factory AwsConfig({ - DateTime? clockTime, - ScopedConfig? scopedConfig, - }) { - return _$AwsConfig._( - clockTime: clockTime, - scopedConfig: scopedConfig, - ); + factory AwsConfig({DateTime? clockTime, ScopedConfig? scopedConfig}) { + return _$AwsConfig._(clockTime: clockTime, scopedConfig: scopedConfig); } factory AwsConfig.build([void Function(AwsConfigBuilder) updates]) = @@ -30,7 +24,7 @@ abstract class AwsConfig const AwsConfig._(); static const List<_i2.SmithySerializer> serializers = [ - AwsConfigRestXmlSerializer() + AwsConfigRestXmlSerializer(), ]; /// This is the time that should be set during the course of the test. This is important for things like signing where the clock time impacts the result. @@ -39,22 +33,14 @@ abstract class AwsConfig /// Config settings that are scoped to different sources, such as environment variables or the AWS config file. ScopedConfig? get scopedConfig; @override - List get props => [ - clockTime, - scopedConfig, - ]; + List get props => [clockTime, scopedConfig]; @override String toString() { - final helper = newBuiltValueToStringHelper('AwsConfig') - ..add( - 'clockTime', - clockTime, - ) - ..add( - 'scopedConfig', - scopedConfig, - ); + final helper = + newBuiltValueToStringHelper('AwsConfig') + ..add('clockTime', clockTime) + ..add('scopedConfig', scopedConfig); return helper.toString(); } } @@ -64,18 +50,12 @@ class AwsConfigRestXmlSerializer const AwsConfigRestXmlSerializer() : super('AwsConfig'); @override - Iterable get types => const [ - AwsConfig, - _$AwsConfig, - ]; + Iterable get types => const [AwsConfig, _$AwsConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AwsConfig deserialize( @@ -94,15 +74,20 @@ class AwsConfigRestXmlSerializer } switch (key) { case 'clockTime': - result.clockTime = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.clockTime = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'scopedConfig': - result.scopedConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScopedConfig), - ) as ScopedConfig)); + result.scopedConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScopedConfig), + ) + as ScopedConfig), + ); } } @@ -119,24 +104,28 @@ class AwsConfigRestXmlSerializer const _i2.XmlElementName( 'AwsConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final AwsConfig(:clockTime, :scopedConfig) = object; if (clockTime != null) { result$ ..add(const _i2.XmlElementName('clockTime')) - ..add(serializers.serialize( - clockTime, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + clockTime, + specifiedType: const FullType(DateTime), + ), + ); } if (scopedConfig != null) { result$ ..add(const _i2.XmlElementName('scopedConfig')) - ..add(serializers.serialize( - scopedConfig, - specifiedType: const FullType(ScopedConfig), - )); + ..add( + serializers.serialize( + scopedConfig, + specifiedType: const FullType(ScopedConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart index a32996e47e..8f5d768b76 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/aws_config.g.dart @@ -84,9 +84,12 @@ class AwsConfigBuilder implements Builder { _$AwsConfig _build() { _$AwsConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AwsConfig._( - clockTime: clockTime, scopedConfig: _scopedConfig?.build()); + clockTime: clockTime, + scopedConfig: _scopedConfig?.build(), + ); } catch (_) { late String _$failedField; try { @@ -94,7 +97,10 @@ class AwsConfigBuilder implements Builder { _scopedConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AwsConfig', _$failedField, e.toString()); + r'AwsConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart index a4c279c357..29b26a279c 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.client_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ClientConfig const ClientConfig._(); static const List<_i2.SmithySerializer> serializers = [ - ClientConfigRestXmlSerializer() + ClientConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -60,46 +60,26 @@ abstract class ClientConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryConfig, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryConfig, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ClientConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryConfig', - retryConfig, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('ClientConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryConfig', retryConfig) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -109,18 +89,12 @@ class ClientConfigRestXmlSerializer const ClientConfigRestXmlSerializer() : super('ClientConfig'); @override - Iterable get types => const [ - ClientConfig, - _$ClientConfig, - ]; + Iterable get types => const [ClientConfig, _$ClientConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ClientConfig deserialize( @@ -139,40 +113,56 @@ class ClientConfigRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_profile': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_config': - result.retryConfig.replace((serializers.deserialize( - value, - specifiedType: const FullType(RetryConfig), - ) as RetryConfig)); + result.retryConfig.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RetryConfig), + ) + as RetryConfig), + ); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -189,7 +179,7 @@ class ClientConfigRestXmlSerializer const _i2.XmlElementName( 'ClientConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final ClientConfig( :awsAccessKeyId, @@ -198,63 +188,71 @@ class ClientConfigRestXmlSerializer :awsSessionToken, :region, :retryConfig, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('aws_profile')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryConfig != null) { result$ ..add(const _i2.XmlElementName('retry_config')) - ..add(serializers.serialize( - retryConfig, - specifiedType: const FullType(RetryConfig), - )); + ..add( + serializers.serialize( + retryConfig, + specifiedType: const FullType(RetryConfig), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart index a44c0083aa..09168110a1 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/client_config.g.dart @@ -25,15 +25,15 @@ class _$ClientConfig extends ClientConfig { factory _$ClientConfig([void Function(ClientConfigBuilder)? updates]) => (new ClientConfigBuilder()..update(updates))._build(); - _$ClientConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryConfig, - this.awsProfile}) - : super._(); + _$ClientConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryConfig, + this.awsProfile, + }) : super._(); @override ClientConfig rebuild(void Function(ClientConfigBuilder) updates) => @@ -141,15 +141,17 @@ class ClientConfigBuilder _$ClientConfig _build() { _$ClientConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ClientConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryConfig: _retryConfig?.build(), - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryConfig: _retryConfig?.build(), + awsProfile: awsProfile, + ); } catch (_) { late String _$failedField; try { @@ -159,7 +161,10 @@ class ClientConfigBuilder _retryConfig?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ClientConfig', _$failedField, e.toString()); + r'ClientConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart index 122a627805..d1012734ad 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.environment_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -35,13 +35,14 @@ abstract class EnvironmentConfig } /// Config settings that can be set as environment variables. - factory EnvironmentConfig.build( - [void Function(EnvironmentConfigBuilder) updates]) = _$EnvironmentConfig; + factory EnvironmentConfig.build([ + void Function(EnvironmentConfigBuilder) updates, + ]) = _$EnvironmentConfig; const EnvironmentConfig._(); static const List<_i2.SmithySerializer> serializers = [ - EnvironmentConfigRestXmlSerializer() + EnvironmentConfigRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -54,41 +55,24 @@ abstract class EnvironmentConfig String? get awsProfile; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsDefaultRegion, - awsRetryMode, - awsSessionToken, - awsProfile, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsDefaultRegion, + awsRetryMode, + awsSessionToken, + awsProfile, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EnvironmentConfig') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsDefaultRegion', - awsDefaultRegion, - ) - ..add( - 'awsRetryMode', - awsRetryMode, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'awsProfile', - awsProfile, - ); + final helper = + newBuiltValueToStringHelper('EnvironmentConfig') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsDefaultRegion', awsDefaultRegion) + ..add('awsRetryMode', awsRetryMode) + ..add('awsSessionToken', awsSessionToken) + ..add('awsProfile', awsProfile); return helper.toString(); } } @@ -98,18 +82,12 @@ class EnvironmentConfigRestXmlSerializer const EnvironmentConfigRestXmlSerializer() : super('EnvironmentConfig'); @override - Iterable get types => const [ - EnvironmentConfig, - _$EnvironmentConfig, - ]; + Iterable get types => const [EnvironmentConfig, _$EnvironmentConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EnvironmentConfig deserialize( @@ -128,35 +106,47 @@ class EnvironmentConfigRestXmlSerializer } switch (key) { case 'AWS_ACCESS_KEY_ID': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_DEFAULT_REGION': - result.awsDefaultRegion = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsDefaultRegion = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_PROFILE': - result.awsProfile = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsProfile = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_RETRY_MODE': - result.awsRetryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.awsRetryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 'AWS_SECRET_ACCESS_KEY': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'AWS_SESSION_TOKEN': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -173,7 +163,7 @@ class EnvironmentConfigRestXmlSerializer const _i2.XmlElementName( 'EnvironmentConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final EnvironmentConfig( :awsAccessKeyId, @@ -181,55 +171,67 @@ class EnvironmentConfigRestXmlSerializer :awsProfile, :awsRetryMode, :awsSecretAccessKey, - :awsSessionToken + :awsSessionToken, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('AWS_ACCESS_KEY_ID')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsDefaultRegion != null) { result$ ..add(const _i2.XmlElementName('AWS_DEFAULT_REGION')) - ..add(serializers.serialize( - awsDefaultRegion, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsDefaultRegion, + specifiedType: const FullType(String), + ), + ); } if (awsProfile != null) { result$ ..add(const _i2.XmlElementName('AWS_PROFILE')) - ..add(serializers.serialize( - awsProfile, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsProfile, + specifiedType: const FullType(String), + ), + ); } if (awsRetryMode != null) { result$ ..add(const _i2.XmlElementName('AWS_RETRY_MODE')) - ..add(serializers.serialize( - awsRetryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + awsRetryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('AWS_SECRET_ACCESS_KEY')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('AWS_SESSION_TOKEN')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart index 7d0a1bca1f..d81ae72710 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/environment_config.g.dart @@ -20,18 +20,18 @@ class _$EnvironmentConfig extends EnvironmentConfig { @override final String? awsProfile; - factory _$EnvironmentConfig( - [void Function(EnvironmentConfigBuilder)? updates]) => - (new EnvironmentConfigBuilder()..update(updates))._build(); - - _$EnvironmentConfig._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsDefaultRegion, - this.awsRetryMode, - this.awsSessionToken, - this.awsProfile}) - : super._(); + factory _$EnvironmentConfig([ + void Function(EnvironmentConfigBuilder)? updates, + ]) => (new EnvironmentConfigBuilder()..update(updates))._build(); + + _$EnvironmentConfig._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsDefaultRegion, + this.awsRetryMode, + this.awsSessionToken, + this.awsProfile, + }) : super._(); @override EnvironmentConfig rebuild(void Function(EnvironmentConfigBuilder) updates) => @@ -131,14 +131,16 @@ class EnvironmentConfigBuilder EnvironmentConfig build() => _build(); _$EnvironmentConfig _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EnvironmentConfig._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsDefaultRegion: awsDefaultRegion, - awsRetryMode: awsRetryMode, - awsSessionToken: awsSessionToken, - awsProfile: awsProfile); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsDefaultRegion: awsDefaultRegion, + awsRetryMode: awsRetryMode, + awsSessionToken: awsSessionToken, + awsProfile: awsProfile, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart index f441540f2d..970daafc8e 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.file_config_settings; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -38,14 +38,14 @@ abstract class FileConfigSettings } /// Config settings that can be set in the AWS config / credentials file as part of a profile. - factory FileConfigSettings.build( - [void Function(FileConfigSettingsBuilder) updates]) = - _$FileConfigSettings; + factory FileConfigSettings.build([ + void Function(FileConfigSettingsBuilder) updates, + ]) = _$FileConfigSettings; const FileConfigSettings._(); static const List<_i2.SmithySerializer> serializers = [ - FileConfigSettingsRestXmlSerializer() + FileConfigSettingsRestXmlSerializer(), ]; String? get awsAccessKeyId; @@ -61,46 +61,26 @@ abstract class FileConfigSettings int? get maxAttempts; @override List get props => [ - awsAccessKeyId, - awsSecretAccessKey, - awsSessionToken, - region, - s3, - retryMode, - maxAttempts, - ]; + awsAccessKeyId, + awsSecretAccessKey, + awsSessionToken, + region, + s3, + retryMode, + maxAttempts, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('FileConfigSettings') - ..add( - 'awsAccessKeyId', - awsAccessKeyId, - ) - ..add( - 'awsSecretAccessKey', - awsSecretAccessKey, - ) - ..add( - 'awsSessionToken', - awsSessionToken, - ) - ..add( - 'region', - region, - ) - ..add( - 's3', - s3, - ) - ..add( - 'retryMode', - retryMode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('FileConfigSettings') + ..add('awsAccessKeyId', awsAccessKeyId) + ..add('awsSecretAccessKey', awsSecretAccessKey) + ..add('awsSessionToken', awsSessionToken) + ..add('region', region) + ..add('s3', s3) + ..add('retryMode', retryMode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -110,18 +90,12 @@ class FileConfigSettingsRestXmlSerializer const FileConfigSettingsRestXmlSerializer() : super('FileConfigSettings'); @override - Iterable get types => const [ - FileConfigSettings, - _$FileConfigSettings, - ]; + Iterable get types => const [FileConfigSettings, _$FileConfigSettings]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override FileConfigSettings deserialize( @@ -140,40 +114,55 @@ class FileConfigSettingsRestXmlSerializer } switch (key) { case 'aws_access_key_id': - result.awsAccessKeyId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsAccessKeyId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_secret_access_key': - result.awsSecretAccessKey = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSecretAccessKey = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'aws_session_token': - result.awsSessionToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.awsSessionToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'region': - result.region = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.region = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'retry_mode': - result.retryMode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.retryMode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -190,7 +179,7 @@ class FileConfigSettingsRestXmlSerializer const _i2.XmlElementName( 'FileConfigSettings', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final FileConfigSettings( :awsAccessKeyId, @@ -199,63 +188,71 @@ class FileConfigSettingsRestXmlSerializer :maxAttempts, :region, :retryMode, - :s3 + :s3, ) = object; if (awsAccessKeyId != null) { result$ ..add(const _i2.XmlElementName('aws_access_key_id')) - ..add(serializers.serialize( - awsAccessKeyId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsAccessKeyId, + specifiedType: const FullType(String), + ), + ); } if (awsSecretAccessKey != null) { result$ ..add(const _i2.XmlElementName('aws_secret_access_key')) - ..add(serializers.serialize( - awsSecretAccessKey, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSecretAccessKey, + specifiedType: const FullType(String), + ), + ); } if (awsSessionToken != null) { result$ ..add(const _i2.XmlElementName('aws_session_token')) - ..add(serializers.serialize( - awsSessionToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + awsSessionToken, + specifiedType: const FullType(String), + ), + ); } if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (region != null) { result$ ..add(const _i2.XmlElementName('region')) - ..add(serializers.serialize( - region, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(region, specifiedType: const FullType(String)), + ); } if (retryMode != null) { result$ ..add(const _i2.XmlElementName('retry_mode')) - ..add(serializers.serialize( - retryMode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize( + retryMode, + specifiedType: const FullType(RetryMode), + ), + ); } if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart index fd5ada4587..360d0000d3 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/file_config_settings.g.dart @@ -22,24 +22,24 @@ class _$FileConfigSettings extends FileConfigSettings { @override final int? maxAttempts; - factory _$FileConfigSettings( - [void Function(FileConfigSettingsBuilder)? updates]) => - (new FileConfigSettingsBuilder()..update(updates))._build(); - - _$FileConfigSettings._( - {this.awsAccessKeyId, - this.awsSecretAccessKey, - this.awsSessionToken, - this.region, - this.s3, - this.retryMode, - this.maxAttempts}) - : super._(); + factory _$FileConfigSettings([ + void Function(FileConfigSettingsBuilder)? updates, + ]) => (new FileConfigSettingsBuilder()..update(updates))._build(); + + _$FileConfigSettings._({ + this.awsAccessKeyId, + this.awsSecretAccessKey, + this.awsSessionToken, + this.region, + this.s3, + this.retryMode, + this.maxAttempts, + }) : super._(); @override FileConfigSettings rebuild( - void Function(FileConfigSettingsBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(FileConfigSettingsBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override FileConfigSettingsBuilder toBuilder() => @@ -142,15 +142,17 @@ class FileConfigSettingsBuilder _$FileConfigSettings _build() { _$FileConfigSettings _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$FileConfigSettings._( - awsAccessKeyId: awsAccessKeyId, - awsSecretAccessKey: awsSecretAccessKey, - awsSessionToken: awsSessionToken, - region: region, - s3: _s3?.build(), - retryMode: retryMode, - maxAttempts: maxAttempts); + awsAccessKeyId: awsAccessKeyId, + awsSecretAccessKey: awsSecretAccessKey, + awsSessionToken: awsSessionToken, + region: region, + s3: _s3?.build(), + retryMode: retryMode, + maxAttempts: maxAttempts, + ); } catch (_) { late String _$failedField; try { @@ -158,7 +160,10 @@ class FileConfigSettingsBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'FileConfigSettings', _$failedField, e.toString()); + r'FileConfigSettings', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart index c998e27b99..30783eb280 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.nested_with_namespace; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,14 +18,14 @@ abstract class NestedWithNamespace return _$NestedWithNamespace._(attrField: attrField); } - factory NestedWithNamespace.build( - [void Function(NestedWithNamespaceBuilder) updates]) = - _$NestedWithNamespace; + factory NestedWithNamespace.build([ + void Function(NestedWithNamespaceBuilder) updates, + ]) = _$NestedWithNamespace; const NestedWithNamespace._(); static const List<_i2.SmithySerializer> serializers = [ - NestedWithNamespaceRestXmlSerializer() + NestedWithNamespaceRestXmlSerializer(), ]; String? get attrField; @@ -35,10 +35,7 @@ abstract class NestedWithNamespace @override String toString() { final helper = newBuiltValueToStringHelper('NestedWithNamespace') - ..add( - 'attrField', - attrField, - ); + ..add('attrField', attrField); return helper.toString(); } } @@ -49,17 +46,14 @@ class NestedWithNamespaceRestXmlSerializer @override Iterable get types => const [ - NestedWithNamespace, - _$NestedWithNamespace, - ]; + NestedWithNamespace, + _$NestedWithNamespace, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedWithNamespace deserialize( @@ -78,10 +72,12 @@ class NestedWithNamespaceRestXmlSerializer } switch (key) { case 'xsi:someName': - result.attrField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attrField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -98,17 +94,20 @@ class NestedWithNamespaceRestXmlSerializer const _i2.XmlElementName( 'NestedWithNamespace', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final NestedWithNamespace(:attrField) = object; if (attrField != null) { - result$.add(_i3.XmlAttribute( - _i3.XmlName('xsi:someName'), - (serializers.serialize( - attrField, - specifiedType: const FullType(String), - ) as String), - )); + result$.add( + _i3.XmlAttribute( + _i3.XmlName('xsi:someName'), + (serializers.serialize( + attrField, + specifiedType: const FullType(String), + ) + as String), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart index 732b78d7fa..1fec76ae30 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/nested_with_namespace.g.dart @@ -10,16 +10,16 @@ class _$NestedWithNamespace extends NestedWithNamespace { @override final String? attrField; - factory _$NestedWithNamespace( - [void Function(NestedWithNamespaceBuilder)? updates]) => - (new NestedWithNamespaceBuilder()..update(updates))._build(); + factory _$NestedWithNamespace([ + void Function(NestedWithNamespaceBuilder)? updates, + ]) => (new NestedWithNamespaceBuilder()..update(updates))._build(); _$NestedWithNamespace._({this.attrField}) : super._(); @override NestedWithNamespace rebuild( - void Function(NestedWithNamespaceBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NestedWithNamespaceBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NestedWithNamespaceBuilder toBuilder() => diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart index b04c938456..40db93be8f 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.operation_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -21,13 +21,14 @@ abstract class OperationConfig } /// Configuration that is set for the scope of a single operation. - factory OperationConfig.build( - [void Function(OperationConfigBuilder) updates]) = _$OperationConfig; + factory OperationConfig.build([ + void Function(OperationConfigBuilder) updates, + ]) = _$OperationConfig; const OperationConfig._(); static const List<_i2.SmithySerializer> serializers = [ - OperationConfigRestXmlSerializer() + OperationConfigRestXmlSerializer(), ]; /// Configuration specific to S3. @@ -38,10 +39,7 @@ abstract class OperationConfig @override String toString() { final helper = newBuiltValueToStringHelper('OperationConfig') - ..add( - 's3', - s3, - ); + ..add('s3', s3); return helper.toString(); } } @@ -51,18 +49,12 @@ class OperationConfigRestXmlSerializer const OperationConfigRestXmlSerializer() : super('OperationConfig'); @override - Iterable get types => const [ - OperationConfig, - _$OperationConfig, - ]; + Iterable get types => const [OperationConfig, _$OperationConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OperationConfig deserialize( @@ -81,10 +73,13 @@ class OperationConfigRestXmlSerializer } switch (key) { case 's3': - result.s3.replace((serializers.deserialize( - value, - specifiedType: const FullType(S3Config), - ) as S3Config)); + result.s3.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Config), + ) + as S3Config), + ); } } @@ -101,16 +96,15 @@ class OperationConfigRestXmlSerializer const _i2.XmlElementName( 'OperationConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final OperationConfig(:s3) = object; if (s3 != null) { result$ ..add(const _i2.XmlElementName('s3')) - ..add(serializers.serialize( - s3, - specifiedType: const FullType(S3Config), - )); + ..add( + serializers.serialize(s3, specifiedType: const FullType(S3Config)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart index ecea86e526..22cb52ef48 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/operation_config.g.dart @@ -82,7 +82,10 @@ class OperationConfigBuilder _s3?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationConfig', _$failedField, e.toString()); + r'OperationConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart index 2f1092ad25..46e01bbc3b 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.retry_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -16,14 +16,8 @@ abstract class RetryConfig with _i1.AWSEquatable implements Built { /// Configuration specific to retries. - factory RetryConfig({ - RetryMode? mode, - int? maxAttempts, - }) { - return _$RetryConfig._( - mode: mode, - maxAttempts: maxAttempts, - ); + factory RetryConfig({RetryMode? mode, int? maxAttempts}) { + return _$RetryConfig._(mode: mode, maxAttempts: maxAttempts); } /// Configuration specific to retries. @@ -33,29 +27,21 @@ abstract class RetryConfig const RetryConfig._(); static const List<_i2.SmithySerializer> serializers = [ - RetryConfigRestXmlSerializer() + RetryConfigRestXmlSerializer(), ]; /// Controls the strategy used for retries. RetryMode? get mode; int? get maxAttempts; @override - List get props => [ - mode, - maxAttempts, - ]; + List get props => [mode, maxAttempts]; @override String toString() { - final helper = newBuiltValueToStringHelper('RetryConfig') - ..add( - 'mode', - mode, - ) - ..add( - 'maxAttempts', - maxAttempts, - ); + final helper = + newBuiltValueToStringHelper('RetryConfig') + ..add('mode', mode) + ..add('maxAttempts', maxAttempts); return helper.toString(); } } @@ -65,18 +51,12 @@ class RetryConfigRestXmlSerializer const RetryConfigRestXmlSerializer() : super('RetryConfig'); @override - Iterable get types => const [ - RetryConfig, - _$RetryConfig, - ]; + Iterable get types => const [RetryConfig, _$RetryConfig]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RetryConfig deserialize( @@ -95,15 +75,19 @@ class RetryConfigRestXmlSerializer } switch (key) { case 'max_attempts': - result.maxAttempts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxAttempts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'mode': - result.mode = (serializers.deserialize( - value, - specifiedType: const FullType(RetryMode), - ) as RetryMode); + result.mode = + (serializers.deserialize( + value, + specifiedType: const FullType(RetryMode), + ) + as RetryMode); } } @@ -120,24 +104,25 @@ class RetryConfigRestXmlSerializer const _i2.XmlElementName( 'RetryConfig', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final RetryConfig(:maxAttempts, :mode) = object; if (maxAttempts != null) { result$ ..add(const _i2.XmlElementName('max_attempts')) - ..add(serializers.serialize( - maxAttempts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + maxAttempts, + specifiedType: const FullType(int), + ), + ); } if (mode != null) { result$ ..add(const _i2.XmlElementName('mode')) - ..add(serializers.serialize( - mode, - specifiedType: const FullType(RetryMode), - )); + ..add( + serializers.serialize(mode, specifiedType: const FullType(RetryMode)), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart index a1e3cc62a5..12ba6461b6 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/retry_mode.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.retry_mode; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the strategy used for retries. class RetryMode extends _i1.SmithyEnum { - const RetryMode._( - super.index, - super.name, - super.value, - ); + const RetryMode._(super.index, super.name, super.value); const RetryMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const adaptive = RetryMode._( - 0, - 'ADAPTIVE', - 'adaptive', - ); + static const adaptive = RetryMode._(0, 'ADAPTIVE', 'adaptive'); - static const legacy = RetryMode._( - 1, - 'LEGACY', - 'legacy', - ); + static const legacy = RetryMode._(1, 'LEGACY', 'legacy'); - static const standard = RetryMode._( - 2, - 'STANDARD', - 'standard', - ); + static const standard = RetryMode._(2, 'STANDARD', 'standard'); /// All values of [RetryMode]. static const values = [ @@ -46,12 +30,9 @@ class RetryMode extends _i1.SmithyEnum { values: values, sdkUnknown: RetryMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart index 56e4161e43..bd874520e2 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_addressing_style.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.s3_addressing_style; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -7,31 +7,15 @@ import 'package:smithy/smithy.dart' as _i1; /// Controls the S3 addressing bucket style. class S3AddressingStyle extends _i1.SmithyEnum { - const S3AddressingStyle._( - super.index, - super.name, - super.value, - ); + const S3AddressingStyle._(super.index, super.name, super.value); const S3AddressingStyle._sdkUnknown(super.value) : super.sdkUnknown(); - static const auto = S3AddressingStyle._( - 0, - 'AUTO', - 'auto', - ); + static const auto = S3AddressingStyle._(0, 'AUTO', 'auto'); - static const path = S3AddressingStyle._( - 1, - 'PATH', - 'path', - ); + static const path = S3AddressingStyle._(1, 'PATH', 'path'); - static const virtual = S3AddressingStyle._( - 2, - 'VIRTUAL', - 'virtual', - ); + static const virtual = S3AddressingStyle._(2, 'VIRTUAL', 'virtual'); /// All values of [S3AddressingStyle]. static const values = [ @@ -46,12 +30,9 @@ class S3AddressingStyle extends _i1.SmithyEnum { values: values, sdkUnknown: S3AddressingStyle._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart index 1888dc7a91..99e847ed8b 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.s3_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -34,7 +34,7 @@ abstract class S3Config const S3Config._(); static const List<_i2.SmithySerializer> serializers = [ - S3ConfigRestXmlSerializer() + S3ConfigRestXmlSerializer(), ]; /// Controls the S3 addressing bucket style. @@ -43,26 +43,18 @@ abstract class S3Config bool? get useDualstackEndpoint; @override List get props => [ - addressingStyle, - useAccelerateEndpoint, - useDualstackEndpoint, - ]; + addressingStyle, + useAccelerateEndpoint, + useDualstackEndpoint, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Config') - ..add( - 'addressingStyle', - addressingStyle, - ) - ..add( - 'useAccelerateEndpoint', - useAccelerateEndpoint, - ) - ..add( - 'useDualstackEndpoint', - useDualstackEndpoint, - ); + final helper = + newBuiltValueToStringHelper('S3Config') + ..add('addressingStyle', addressingStyle) + ..add('useAccelerateEndpoint', useAccelerateEndpoint) + ..add('useDualstackEndpoint', useDualstackEndpoint); return helper.toString(); } } @@ -72,18 +64,12 @@ class S3ConfigRestXmlSerializer const S3ConfigRestXmlSerializer() : super('S3Config'); @override - Iterable get types => const [ - S3Config, - _$S3Config, - ]; + Iterable get types => const [S3Config, _$S3Config]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Config deserialize( @@ -102,20 +88,26 @@ class S3ConfigRestXmlSerializer } switch (key) { case 'addressing_style': - result.addressingStyle = (serializers.deserialize( - value, - specifiedType: const FullType(S3AddressingStyle), - ) as S3AddressingStyle); + result.addressingStyle = + (serializers.deserialize( + value, + specifiedType: const FullType(S3AddressingStyle), + ) + as S3AddressingStyle); case 'use_accelerate_endpoint': - result.useAccelerateEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useAccelerateEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'use_dualstack_endpoint': - result.useDualstackEndpoint = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.useDualstackEndpoint = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -132,36 +124,42 @@ class S3ConfigRestXmlSerializer const _i2.XmlElementName( 'S3Config', _i2.XmlNamespace('https://example.com'), - ) + ), ]; final S3Config( :addressingStyle, :useAccelerateEndpoint, - :useDualstackEndpoint + :useDualstackEndpoint, ) = object; if (addressingStyle != null) { result$ ..add(const _i2.XmlElementName('addressing_style')) - ..add(serializers.serialize( - addressingStyle, - specifiedType: const FullType(S3AddressingStyle), - )); + ..add( + serializers.serialize( + addressingStyle, + specifiedType: const FullType(S3AddressingStyle), + ), + ); } if (useAccelerateEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_accelerate_endpoint')) - ..add(serializers.serialize( - useAccelerateEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useAccelerateEndpoint, + specifiedType: const FullType(bool), + ), + ); } if (useDualstackEndpoint != null) { result$ ..add(const _i2.XmlElementName('use_dualstack_endpoint')) - ..add(serializers.serialize( - useDualstackEndpoint, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + useDualstackEndpoint, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart index 8f461ee73f..81469b2fc3 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/s3_config.g.dart @@ -17,11 +17,11 @@ class _$S3Config extends S3Config { factory _$S3Config([void Function(S3ConfigBuilder)? updates]) => (new S3ConfigBuilder()..update(updates))._build(); - _$S3Config._( - {this.addressingStyle, - this.useAccelerateEndpoint, - this.useDualstackEndpoint}) - : super._(); + _$S3Config._({ + this.addressingStyle, + this.useAccelerateEndpoint, + this.useDualstackEndpoint, + }) : super._(); @override S3Config rebuild(void Function(S3ConfigBuilder) updates) => @@ -96,11 +96,13 @@ class S3ConfigBuilder implements Builder { S3Config build() => _build(); _$S3Config _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$S3Config._( - addressingStyle: addressingStyle, - useAccelerateEndpoint: useAccelerateEndpoint, - useDualstackEndpoint: useDualstackEndpoint); + addressingStyle: addressingStyle, + useAccelerateEndpoint: useAccelerateEndpoint, + useDualstackEndpoint: useDualstackEndpoint, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart index d43fd8c6c6..37f4d807dd 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.scoped_config; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -44,7 +44,7 @@ abstract class ScopedConfig const ScopedConfig._(); static const List<_i3.SmithySerializer> serializers = [ - ScopedConfigRestXmlSerializer() + ScopedConfigRestXmlSerializer(), ]; /// Config settings that can be set as environment variables. @@ -63,36 +63,22 @@ abstract class ScopedConfig OperationConfig? get operation; @override List get props => [ - environment, - configFile, - credentialsFile, - client, - operation, - ]; + environment, + configFile, + credentialsFile, + client, + operation, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScopedConfig') - ..add( - 'environment', - environment, - ) - ..add( - 'configFile', - configFile, - ) - ..add( - 'credentialsFile', - credentialsFile, - ) - ..add( - 'client', - client, - ) - ..add( - 'operation', - operation, - ); + final helper = + newBuiltValueToStringHelper('ScopedConfig') + ..add('environment', environment) + ..add('configFile', configFile) + ..add('credentialsFile', credentialsFile) + ..add('client', client) + ..add('operation', operation); return helper.toString(); } } @@ -102,18 +88,12 @@ class ScopedConfigRestXmlSerializer const ScopedConfigRestXmlSerializer() : super('ScopedConfig'); @override - Iterable get types => const [ - ScopedConfig, - _$ScopedConfig, - ]; + Iterable get types => const [ScopedConfig, _$ScopedConfig]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScopedConfig deserialize( @@ -132,46 +112,51 @@ class ScopedConfigRestXmlSerializer } switch (key) { case 'client': - result.client.replace((serializers.deserialize( - value, - specifiedType: const FullType(ClientConfig), - ) as ClientConfig)); + result.client.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ClientConfig), + ) + as ClientConfig), + ); case 'configFile': - result.configFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.configFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'credentialsFile': - result.credentialsFile - .replace(const _i3.XmlBuiltMapSerializer().deserialize( - serializers, - value is String ? const [] : (value as Iterable), - specifiedType: const FullType( - _i2.BuiltMap, - [ + result.credentialsFile.replace( + const _i3.XmlBuiltMapSerializer().deserialize( + serializers, + value is String ? const [] : (value as Iterable), + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); case 'environment': - result.environment.replace((serializers.deserialize( - value, - specifiedType: const FullType(EnvironmentConfig), - ) as EnvironmentConfig)); + result.environment.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EnvironmentConfig), + ) + as EnvironmentConfig), + ); case 'operation': - result.operation.replace((serializers.deserialize( - value, - specifiedType: const FullType(OperationConfig), - ) as OperationConfig)); + result.operation.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OperationConfig), + ) + as OperationConfig), + ); } } @@ -188,68 +173,72 @@ class ScopedConfigRestXmlSerializer const _i3.XmlElementName( 'ScopedConfig', _i3.XmlNamespace('https://example.com'), - ) + ), ]; final ScopedConfig( :client, :configFile, :credentialsFile, :environment, - :operation + :operation, ) = object; if (client != null) { result$ ..add(const _i3.XmlElementName('client')) - ..add(serializers.serialize( - client, - specifiedType: const FullType(ClientConfig), - )); + ..add( + serializers.serialize( + client, + specifiedType: const FullType(ClientConfig), + ), + ); } if (configFile != null) { result$ ..add(const _i3.XmlElementName('configFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - configFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + configFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (credentialsFile != null) { result$ ..add(const _i3.XmlElementName('credentialsFile')) - ..add(const _i3.XmlBuiltMapSerializer().serialize( - serializers, - credentialsFile, - specifiedType: const FullType( - _i2.BuiltMap, - [ + ..add( + const _i3.XmlBuiltMapSerializer().serialize( + serializers, + credentialsFile, + specifiedType: const FullType(_i2.BuiltMap, [ FullType(String), FullType(FileConfigSettings), - ], + ]), ), - )); + ); } if (environment != null) { result$ ..add(const _i3.XmlElementName('environment')) - ..add(serializers.serialize( - environment, - specifiedType: const FullType(EnvironmentConfig), - )); + ..add( + serializers.serialize( + environment, + specifiedType: const FullType(EnvironmentConfig), + ), + ); } if (operation != null) { result$ ..add(const _i3.XmlElementName('operation')) - ..add(serializers.serialize( - operation, - specifiedType: const FullType(OperationConfig), - )); + ..add( + serializers.serialize( + operation, + specifiedType: const FullType(OperationConfig), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart index 9d96c4a10f..2642c69153 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/scoped_config.g.dart @@ -21,13 +21,13 @@ class _$ScopedConfig extends ScopedConfig { factory _$ScopedConfig([void Function(ScopedConfigBuilder)? updates]) => (new ScopedConfigBuilder()..update(updates))._build(); - _$ScopedConfig._( - {this.environment, - this.configFile, - this.credentialsFile, - this.client, - this.operation}) - : super._(); + _$ScopedConfig._({ + this.environment, + this.configFile, + this.credentialsFile, + this.client, + this.operation, + }) : super._(); @override ScopedConfig rebuild(void Function(ScopedConfigBuilder) updates) => @@ -81,8 +81,8 @@ class ScopedConfigBuilder _$this._credentialsFile ??= new _i2.MapBuilder(); set credentialsFile( - _i2.MapBuilder? credentialsFile) => - _$this._credentialsFile = credentialsFile; + _i2.MapBuilder? credentialsFile, + ) => _$this._credentialsFile = credentialsFile; ClientConfigBuilder? _client; ClientConfigBuilder get client => @@ -127,13 +127,15 @@ class ScopedConfigBuilder _$ScopedConfig _build() { _$ScopedConfig _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ScopedConfig._( - environment: _environment?.build(), - configFile: _configFile?.build(), - credentialsFile: _credentialsFile?.build(), - client: _client?.build(), - operation: _operation?.build()); + environment: _environment?.build(), + configFile: _configFile?.build(), + credentialsFile: _credentialsFile?.build(), + client: _client?.build(), + operation: _operation?.build(), + ); } catch (_) { late String _$failedField; try { @@ -149,7 +151,10 @@ class ScopedConfigBuilder _operation?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ScopedConfig', _$failedField, e.toString()); + r'ScopedConfig', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart index 041c041a11..4b3f62b930 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.model.simple_scalar_properties_input_output; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -18,8 +18,10 @@ abstract class SimpleScalarPropertiesInputOutput _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + >, _i1.HasPayload { factory SimpleScalarPropertiesInputOutput({ String? foo, @@ -49,9 +51,9 @@ abstract class SimpleScalarPropertiesInputOutput ); } - factory SimpleScalarPropertiesInputOutput.build( - [void Function(SimpleScalarPropertiesInputOutputBuilder) updates]) = - _$SimpleScalarPropertiesInputOutput; + factory SimpleScalarPropertiesInputOutput.build([ + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutput; const SimpleScalarPropertiesInputOutput._(); @@ -59,51 +61,50 @@ abstract class SimpleScalarPropertiesInputOutput SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (request.headers['X-Foo'] != null) { - b.foo = request.headers['X-Foo']!; - } - }); + }) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (request.headers['X-Foo'] != null) { + b.foo = request.headers['X-Foo']!; + } + }); /// Constructs a [SimpleScalarPropertiesInputOutput] from a [payload] and [response]. factory SimpleScalarPropertiesInputOutput.fromResponse( SimpleScalarPropertiesInputOutputPayload payload, _i2.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.build((b) { - b.byteValue = payload.byteValue; - b.doubleValue = payload.doubleValue; - b.falseBooleanValue = payload.falseBooleanValue; - b.floatValue = payload.floatValue; - b.integerValue = payload.integerValue; - b.longValue = payload.longValue; - if (payload.nested != null) { - b.nested.replace(payload.nested!); - } - b.shortValue = payload.shortValue; - b.stringValue = payload.stringValue; - b.trueBooleanValue = payload.trueBooleanValue; - if (response.headers['X-Foo'] != null) { - b.foo = response.headers['X-Foo']!; - } - }); + ) => SimpleScalarPropertiesInputOutput.build((b) { + b.byteValue = payload.byteValue; + b.doubleValue = payload.doubleValue; + b.falseBooleanValue = payload.falseBooleanValue; + b.floatValue = payload.floatValue; + b.integerValue = payload.integerValue; + b.longValue = payload.longValue; + if (payload.nested != null) { + b.nested.replace(payload.nested!); + } + b.shortValue = payload.shortValue; + b.stringValue = payload.stringValue; + b.trueBooleanValue = payload.trueBooleanValue; + if (response.headers['X-Foo'] != null) { + b.foo = response.headers['X-Foo']!; + } + }); static const List< - _i1.SmithySerializer> - serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; + _i1.SmithySerializer + > + serializers = [SimpleScalarPropertiesInputOutputRestXmlSerializer()]; String? get foo; String? get stringValue; @@ -135,81 +136,49 @@ abstract class SimpleScalarPropertiesInputOutput @override List get props => [ - foo, - stringValue, - trueBooleanValue, - falseBooleanValue, - byteValue, - shortValue, - integerValue, - longValue, - floatValue, - nested, - doubleValue, - ]; + foo, + stringValue, + trueBooleanValue, + falseBooleanValue, + byteValue, + shortValue, + integerValue, + longValue, + floatValue, + nested, + doubleValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutput') - ..add( - 'foo', - foo, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'nested', - nested, - ) - ..add( - 'doubleValue', - doubleValue, - ); + ..add('foo', foo) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('byteValue', byteValue) + ..add('shortValue', shortValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('floatValue', floatValue) + ..add('nested', nested) + ..add('doubleValue', doubleValue); return helper.toString(); } } @_i4.internal abstract class SimpleScalarPropertiesInputOutputPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates]) = _$SimpleScalarPropertiesInputOutputPayload; + Built< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { + factory SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ]) = _$SimpleScalarPropertiesInputOutputPayload; const SimpleScalarPropertiesInputOutputPayload._(); @@ -225,86 +194,56 @@ abstract class SimpleScalarPropertiesInputOutputPayload bool? get trueBooleanValue; @override List get props => [ - byteValue, - doubleValue, - falseBooleanValue, - floatValue, - integerValue, - longValue, - nested, - shortValue, - stringValue, - trueBooleanValue, - ]; + byteValue, + doubleValue, + falseBooleanValue, + floatValue, + integerValue, + longValue, + nested, + shortValue, + stringValue, + trueBooleanValue, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SimpleScalarPropertiesInputOutputPayload') - ..add( - 'byteValue', - byteValue, - ) - ..add( - 'doubleValue', - doubleValue, - ) - ..add( - 'falseBooleanValue', - falseBooleanValue, - ) - ..add( - 'floatValue', - floatValue, - ) - ..add( - 'integerValue', - integerValue, - ) - ..add( - 'longValue', - longValue, - ) - ..add( - 'nested', - nested, - ) - ..add( - 'shortValue', - shortValue, - ) - ..add( - 'stringValue', - stringValue, - ) - ..add( - 'trueBooleanValue', - trueBooleanValue, - ); + ..add('byteValue', byteValue) + ..add('doubleValue', doubleValue) + ..add('falseBooleanValue', falseBooleanValue) + ..add('floatValue', floatValue) + ..add('integerValue', integerValue) + ..add('longValue', longValue) + ..add('nested', nested) + ..add('shortValue', shortValue) + ..add('stringValue', stringValue) + ..add('trueBooleanValue', trueBooleanValue); return helper.toString(); } } -class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class SimpleScalarPropertiesInputOutputRestXmlSerializer + extends + _i1.StructuredSmithySerializer< + SimpleScalarPropertiesInputOutputPayload + > { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [ - SimpleScalarPropertiesInputOutput, - _$SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - _$SimpleScalarPropertiesInputOutputPayload, - ]; + SimpleScalarPropertiesInputOutput, + _$SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + _$SimpleScalarPropertiesInputOutputPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutputPayload deserialize( @@ -323,55 +262,76 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 } switch (key) { case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'DoubleDribble': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i3.Int64), - ) as _i3.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i3.Int64), + ) + as _i3.Int64); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedWithNamespace), - ) as NestedWithNamespace)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedWithNamespace), + ) + as NestedWithNamespace), + ); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -388,7 +348,7 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 const _i1.XmlElementName( 'SimpleScalarPropertiesInputOutput', _i1.XmlNamespace('https://example.com'), - ) + ), ]; final SimpleScalarPropertiesInputOutputPayload( :byteValue, @@ -400,93 +360,106 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i1 :nested, :shortValue, :stringValue, - :trueBooleanValue + :trueBooleanValue, ) = object; if (byteValue != null) { result$ ..add(const _i1.XmlElementName('byteValue')) - ..add(serializers.serialize( - byteValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(byteValue, specifiedType: const FullType(int)), + ); } if (doubleValue != null) { result$ ..add(const _i1.XmlElementName('DoubleDribble')) - ..add(serializers.serialize( - doubleValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + doubleValue, + specifiedType: const FullType(double), + ), + ); } if (falseBooleanValue != null) { result$ ..add(const _i1.XmlElementName('falseBooleanValue')) - ..add(serializers.serialize( - falseBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + falseBooleanValue, + specifiedType: const FullType(bool), + ), + ); } if (floatValue != null) { result$ ..add(const _i1.XmlElementName('floatValue')) - ..add(serializers.serialize( - floatValue, - specifiedType: const FullType(double), - )); + ..add( + serializers.serialize( + floatValue, + specifiedType: const FullType(double), + ), + ); } if (integerValue != null) { result$ ..add(const _i1.XmlElementName('integerValue')) - ..add(serializers.serialize( - integerValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize( + integerValue, + specifiedType: const FullType(int), + ), + ); } if (longValue != null) { result$ ..add(const _i1.XmlElementName('longValue')) - ..add(serializers.serialize( - longValue, - specifiedType: const FullType(_i3.Int64), - )); + ..add( + serializers.serialize( + longValue, + specifiedType: const FullType(_i3.Int64), + ), + ); } if (nested != null) { result$ - ..add(const _i1.XmlElementName( - 'Nested', - _i1.XmlNamespace( - 'https://example.com', - 'xsi', + ..add( + const _i1.XmlElementName( + 'Nested', + _i1.XmlNamespace('https://example.com', 'xsi'), + ), + ) + ..add( + serializers.serialize( + nested, + specifiedType: const FullType(NestedWithNamespace), ), - )) - ..add(serializers.serialize( - nested, - specifiedType: const FullType(NestedWithNamespace), - )); + ); } if (shortValue != null) { result$ ..add(const _i1.XmlElementName('shortValue')) - ..add(serializers.serialize( - shortValue, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(shortValue, specifiedType: const FullType(int)), + ); } if (stringValue != null) { result$ ..add(const _i1.XmlElementName('stringValue')) - ..add(serializers.serialize( - stringValue, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + stringValue, + specifiedType: const FullType(String), + ), + ); } if (trueBooleanValue != null) { result$ ..add(const _i1.XmlElementName('trueBooleanValue')) - ..add(serializers.serialize( - trueBooleanValue, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + trueBooleanValue, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart index b653a11542..7b30d5692f 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/model/simple_scalar_properties_input_output.g.dart @@ -31,29 +31,30 @@ class _$SimpleScalarPropertiesInputOutput @override final double? doubleValue; - factory _$SimpleScalarPropertiesInputOutput( - [void Function(SimpleScalarPropertiesInputOutputBuilder)? updates]) => + factory _$SimpleScalarPropertiesInputOutput([ + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutput._( - {this.foo, - this.stringValue, - this.trueBooleanValue, - this.falseBooleanValue, - this.byteValue, - this.shortValue, - this.integerValue, - this.longValue, - this.floatValue, - this.nested, - this.doubleValue}) - : super._(); + _$SimpleScalarPropertiesInputOutput._({ + this.foo, + this.stringValue, + this.trueBooleanValue, + this.falseBooleanValue, + this.byteValue, + this.shortValue, + this.integerValue, + this.longValue, + this.floatValue, + this.nested, + this.doubleValue, + }) : super._(); @override SimpleScalarPropertiesInputOutput rebuild( - void Function(SimpleScalarPropertiesInputOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputBuilder toBuilder() => @@ -97,8 +98,10 @@ class _$SimpleScalarPropertiesInputOutput class SimpleScalarPropertiesInputOutputBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputBuilder + > { _$SimpleScalarPropertiesInputOutput? _$v; String? _foo; @@ -177,7 +180,8 @@ class SimpleScalarPropertiesInputOutputBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -187,19 +191,21 @@ class SimpleScalarPropertiesInputOutputBuilder _$SimpleScalarPropertiesInputOutput _build() { _$SimpleScalarPropertiesInputOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutput._( - foo: foo, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue, - falseBooleanValue: falseBooleanValue, - byteValue: byteValue, - shortValue: shortValue, - integerValue: integerValue, - longValue: longValue, - floatValue: floatValue, - nested: _nested?.build(), - doubleValue: doubleValue); + foo: foo, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + falseBooleanValue: falseBooleanValue, + byteValue: byteValue, + shortValue: shortValue, + integerValue: integerValue, + longValue: longValue, + floatValue: floatValue, + nested: _nested?.build(), + doubleValue: doubleValue, + ); } catch (_) { late String _$failedField; try { @@ -207,7 +213,10 @@ class SimpleScalarPropertiesInputOutputBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SimpleScalarPropertiesInputOutput', _$failedField, e.toString()); + r'SimpleScalarPropertiesInputOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -239,30 +248,29 @@ class _$SimpleScalarPropertiesInputOutputPayload @override final bool? trueBooleanValue; - factory _$SimpleScalarPropertiesInputOutputPayload( - [void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? - updates]) => + factory _$SimpleScalarPropertiesInputOutputPayload([ + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ]) => (new SimpleScalarPropertiesInputOutputPayloadBuilder()..update(updates)) ._build(); - _$SimpleScalarPropertiesInputOutputPayload._( - {this.byteValue, - this.doubleValue, - this.falseBooleanValue, - this.floatValue, - this.integerValue, - this.longValue, - this.nested, - this.shortValue, - this.stringValue, - this.trueBooleanValue}) - : super._(); + _$SimpleScalarPropertiesInputOutputPayload._({ + this.byteValue, + this.doubleValue, + this.falseBooleanValue, + this.floatValue, + this.integerValue, + this.longValue, + this.nested, + this.shortValue, + this.stringValue, + this.trueBooleanValue, + }) : super._(); @override SimpleScalarPropertiesInputOutputPayload rebuild( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) - updates) => - (toBuilder()..update(updates)).build(); + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SimpleScalarPropertiesInputOutputPayloadBuilder toBuilder() => @@ -304,8 +312,10 @@ class _$SimpleScalarPropertiesInputOutputPayload class SimpleScalarPropertiesInputOutputPayloadBuilder implements - Builder { + Builder< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutputPayloadBuilder + > { _$SimpleScalarPropertiesInputOutputPayload? _$v; int? _byteValue; @@ -379,7 +389,8 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder @override void update( - void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates) { + void Function(SimpleScalarPropertiesInputOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -389,18 +400,20 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder _$SimpleScalarPropertiesInputOutputPayload _build() { _$SimpleScalarPropertiesInputOutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SimpleScalarPropertiesInputOutputPayload._( - byteValue: byteValue, - doubleValue: doubleValue, - falseBooleanValue: falseBooleanValue, - floatValue: floatValue, - integerValue: integerValue, - longValue: longValue, - nested: _nested?.build(), - shortValue: shortValue, - stringValue: stringValue, - trueBooleanValue: trueBooleanValue); + byteValue: byteValue, + doubleValue: doubleValue, + falseBooleanValue: falseBooleanValue, + floatValue: floatValue, + integerValue: integerValue, + longValue: longValue, + nested: _nested?.build(), + shortValue: shortValue, + stringValue: stringValue, + trueBooleanValue: trueBooleanValue, + ); } catch (_) { late String _$failedField; try { @@ -408,9 +421,10 @@ class SimpleScalarPropertiesInputOutputPayloadBuilder _nested?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SimpleScalarPropertiesInputOutputPayload', - _$failedField, - e.toString()); + r'SimpleScalarPropertiesInputOutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart index 2e081d3793..cfc2a407b2 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/operation/simple_scalar_properties_operation.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.operation.simple_scalar_properties_operation; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -12,35 +12,42 @@ import 'package:rest_xml_with_namespace_v2/src/rest_xml_protocol_namespace/model import 'package:smithy/smithy.dart' as _i1; import 'package:smithy_aws/smithy_aws.dart' as _i2; -class SimpleScalarPropertiesOperation extends _i1.HttpOperation< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> { +class SimpleScalarPropertiesOperation + extends + _i1.HttpOperation< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > { SimpleScalarPropertiesOperation({ required String region, Uri? baseUri, List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput>> protocols = [ + _i1.HttpProtocol< + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), - const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), + const _i1.WithUserAgent('aws-sdk-dart/0.3.2'), const _i2.WithSdkInvocationId(), const _i2.WithSdkRequest(), ] + @@ -48,7 +55,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: false, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -83,11 +90,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< SimpleScalarPropertiesInputOutput buildOutput( SimpleScalarPropertiesInputOutputPayload payload, _i3.AWSBaseHttpResponse response, - ) => - SimpleScalarPropertiesInputOutput.fromResponse( - payload, - response, - ); + ) => SimpleScalarPropertiesInputOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -111,11 +114,7 @@ class SimpleScalarPropertiesOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i4.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i3.AWSHeaders.sdkInvocationId: _i3.uuid(secure: true)}, diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart index 7e75faa0c5..2240893372 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_client.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.rest_xml_protocol_namespace_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -17,11 +17,11 @@ class RestXmlProtocolNamespaceClient { Uri? baseUri, List<_i2.HttpRequestInterceptor> requestInterceptors = const [], List<_i2.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -42,9 +42,6 @@ class RestXmlProtocolNamespaceClient { baseUri: _baseUri, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart index ca8ff732e6..3393218552 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/lib/src/rest_xml_protocol_namespace/rest_xml_protocol_namespace_server.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.rest_xml_protocol_namespace_client; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -46,11 +46,12 @@ class _RestXmlProtocolNamespaceServer final RestXmlProtocolNamespaceServerBase service; late final _i1.HttpProtocol< - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput, - SimpleScalarPropertiesInputOutputPayload, - SimpleScalarPropertiesInputOutput> _simpleScalarPropertiesProtocol = - _i2.RestXmlProtocol( + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput, + SimpleScalarPropertiesInputOutputPayload, + SimpleScalarPropertiesInputOutput + > + _simpleScalarPropertiesProtocol = _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, noErrorWrapping: false, @@ -64,40 +65,36 @@ class _RestXmlProtocolNamespaceServer try { final payload = (await _simpleScalarPropertiesProtocol.wireSerializer.deserialize( - await awsRequest.bodyBytes, - specifiedType: const FullType(SimpleScalarPropertiesInputOutputPayload), - ) as SimpleScalarPropertiesInputOutputPayload); + await awsRequest.bodyBytes, + specifiedType: const FullType( + SimpleScalarPropertiesInputOutputPayload, + ), + ) + as SimpleScalarPropertiesInputOutputPayload); final input = SimpleScalarPropertiesInputOutput.fromRequest( payload, awsRequest, labels: {}, ); - final output = await service.simpleScalarProperties( - input, - context, - ); + final output = await service.simpleScalarProperties(input, context); if (output.foo != null) { context.response.headers['X-Foo'] = output.foo!; } const statusCode = 200; - final body = - await _simpleScalarPropertiesProtocol.wireSerializer.serialize( - output, - specifiedType: const FullType( - SimpleScalarPropertiesInputOutput, - [FullType(SimpleScalarPropertiesInputOutputPayload)], - ), - ); + final body = await _simpleScalarPropertiesProtocol.wireSerializer + .serialize( + output, + specifiedType: const FullType(SimpleScalarPropertiesInputOutput, [ + FullType(SimpleScalarPropertiesInputOutputPayload), + ]), + ); return _i4.Response( statusCode, body: body, headers: context.response.build().headers.toMap(), ); } on Object catch (e, st) { - return service.handleUncaughtError( - e, - st, - ); + return service.handleUncaughtError(e, st); } } } diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/pubspec.yaml b/packages/smithy/goldens/lib2/restXmlWithNamespace/pubspec.yaml index d7a04d3382..49d051d107 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/pubspec.yaml +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: smithy: @@ -14,9 +14,9 @@ dependencies: aws_common: path: ../../../../aws_common built_value: ^8.6.0 - xml: ">=6.3.0 <=6.5.0" + xml: 6.3.0 fixnum: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 built_collection: ^5.0.0 shelf_router: ^1.1.0 shelf: ^1.4.0 @@ -41,6 +41,6 @@ dev_dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 build_test: ^2.1.5 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 lints: ^2.1.0 test: ^1.22.1 diff --git a/packages/smithy/goldens/lib2/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart b/packages/smithy/goldens/lib2/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart index badd8eff62..00f727e84c 100644 --- a/packages/smithy/goldens/lib2/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart +++ b/packages/smithy/goldens/lib2/restXmlWithNamespace/test/rest_xml_protocol_namespace/simple_scalar_properties_operation_test.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,unnecessary_library_name // ignore_for_file: unused_element library rest_xml_with_namespace_v2.rest_xml_protocol_namespace.test.simple_scalar_properties_operation_test_test; // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -14,131 +14,110 @@ import 'package:smithy_test/smithy_test.dart' as _i2; import 'package:test/test.dart' as _i1; void main() { - _i1.test( - 'XmlNamespaceSimpleScalarProperties (request)', - () async { - await _i2.httpRequestTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpRequestTestCase( - id: 'XmlNamespaceSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - 'Nested': {'attrField': 'nestedAttrValue'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - method: 'PUT', - uri: '/SimpleScalarProperties', - host: null, - resolvedHost: null, - queryParams: [], - forbidQueryParams: [], - requireQueryParams: [], - ), - inputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer(), - NestedWithNamespaceRestXmlSerializer(), - ], - ); - }, - ); - _i1.test( - 'XmlNamespaceSimpleScalarProperties (response)', - () async { - await _i2.httpResponseTest( - operation: SimpleScalarPropertiesOperation( - region: 'us-east-1', - baseUri: Uri.parse('https://example.com'), - ), - testCase: const _i2.HttpResponseTestCase( - id: 'XmlNamespaceSimpleScalarProperties', - documentation: 'Serializes simple scalar properties', - protocol: _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ), - authScheme: null, - body: - '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', - bodyMediaType: 'application/xml', - params: { - 'foo': 'Foo', - 'stringValue': 'string', - 'trueBooleanValue': true, - 'falseBooleanValue': false, - 'byteValue': 1, - 'shortValue': 2, - 'integerValue': 3, - 'longValue': 4, - 'floatValue': 5.5, - 'doubleValue': 6.5, - 'Nested': {'attrField': 'nestedAttrValue'}, - }, - vendorParamsShape: null, - vendorParams: {}, - headers: { - 'Content-Type': 'application/xml', - 'X-Foo': 'Foo', - }, - forbidHeaders: [], - requireHeaders: [], - tags: [], - appliesTo: null, - code: 200, - ), - outputSerializers: const [ - SimpleScalarPropertiesInputOutputRestXmlSerializer(), - NestedWithNamespaceRestXmlSerializer(), - ], - ); - }, - ); + _i1.test('XmlNamespaceSimpleScalarProperties (request)', () async { + await _i2.httpRequestTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpRequestTestCase( + id: 'XmlNamespaceSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + 'Nested': {'attrField': 'nestedAttrValue'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + method: 'PUT', + uri: '/SimpleScalarProperties', + host: null, + resolvedHost: null, + queryParams: [], + forbidQueryParams: [], + requireQueryParams: [], + ), + inputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + NestedWithNamespaceRestXmlSerializer(), + ], + ); + }); + _i1.test('XmlNamespaceSimpleScalarProperties (response)', () async { + await _i2.httpResponseTest( + operation: SimpleScalarPropertiesOperation( + region: 'us-east-1', + baseUri: Uri.parse('https://example.com'), + ), + testCase: const _i2.HttpResponseTestCase( + id: 'XmlNamespaceSimpleScalarProperties', + documentation: 'Serializes simple scalar properties', + protocol: _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + authScheme: null, + body: + '\n string\n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n', + bodyMediaType: 'application/xml', + params: { + 'foo': 'Foo', + 'stringValue': 'string', + 'trueBooleanValue': true, + 'falseBooleanValue': false, + 'byteValue': 1, + 'shortValue': 2, + 'integerValue': 3, + 'longValue': 4, + 'floatValue': 5.5, + 'doubleValue': 6.5, + 'Nested': {'attrField': 'nestedAttrValue'}, + }, + vendorParamsShape: null, + vendorParams: {}, + headers: {'Content-Type': 'application/xml', 'X-Foo': 'Foo'}, + forbidHeaders: [], + requireHeaders: [], + tags: [], + appliesTo: null, + code: 200, + ), + outputSerializers: const [ + SimpleScalarPropertiesInputOutputRestXmlSerializer(), + NestedWithNamespaceRestXmlSerializer(), + ], + ); + }); } class SimpleScalarPropertiesInputOutputRestXmlSerializer extends _i3.StructuredSmithySerializer { const SimpleScalarPropertiesInputOutputRestXmlSerializer() - : super('SimpleScalarPropertiesInputOutput'); + : super('SimpleScalarPropertiesInputOutput'); @override Iterable get types => const [SimpleScalarPropertiesInputOutput]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SimpleScalarPropertiesInputOutput deserialize( @@ -157,60 +136,83 @@ class SimpleScalarPropertiesInputOutputRestXmlSerializer } switch (key) { case 'foo': - result.foo = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.foo = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'stringValue': - result.stringValue = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.stringValue = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'trueBooleanValue': - result.trueBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.trueBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'falseBooleanValue': - result.falseBooleanValue = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.falseBooleanValue = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'byteValue': - result.byteValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.byteValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'shortValue': - result.shortValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.shortValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'integerValue': - result.integerValue = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.integerValue = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'longValue': - result.longValue = (serializers.deserialize( - value, - specifiedType: const FullType(_i4.Int64), - ) as _i4.Int64); + result.longValue = + (serializers.deserialize( + value, + specifiedType: const FullType(_i4.Int64), + ) + as _i4.Int64); case 'floatValue': - result.floatValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.floatValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); case 'Nested': - result.nested.replace((serializers.deserialize( - value, - specifiedType: const FullType(NestedWithNamespace), - ) as NestedWithNamespace)); + result.nested.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(NestedWithNamespace), + ) + as NestedWithNamespace), + ); case 'doubleValue': - result.doubleValue = (serializers.deserialize( - value, - specifiedType: const FullType(double), - ) as double); + result.doubleValue = + (serializers.deserialize( + value, + specifiedType: const FullType(double), + ) + as double); } } @@ -236,11 +238,8 @@ class NestedWithNamespaceRestXmlSerializer @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NestedWithNamespace deserialize( @@ -259,10 +258,12 @@ class NestedWithNamespaceRestXmlSerializer } switch (key) { case 'attrField': - result.attrField = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.attrField = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } diff --git a/packages/smithy/goldens/pubspec.yaml b/packages/smithy/goldens/pubspec.yaml index 64ea44efbf..d9cd5b0d18 100644 --- a/packages/smithy/goldens/pubspec.yaml +++ b/packages/smithy/goldens/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: aws_common: ^0.5.0+2 diff --git a/packages/smithy/smithy/CHANGELOG.md b/packages/smithy/smithy/CHANGELOG.md index fccf332a2a..4b36b14d82 100644 --- a/packages/smithy/smithy/CHANGELOG.md +++ b/packages/smithy/smithy/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.7.5 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.7.4 - Minor bug fixes and improvements diff --git a/packages/smithy/smithy/lib/ast.dart b/packages/smithy/smithy/lib/ast.dart index 85dfd85be9..59dee17743 100644 --- a/packages/smithy/smithy/lib/ast.dart +++ b/packages/smithy/smithy/lib/ast.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Smithy AST representation. -library smithy_ast; +library; export 'src/ast/pattern/invalid_pattern_exception.dart'; export 'src/ast/pattern/segment.dart'; diff --git a/packages/smithy/smithy/lib/smithy.dart b/packages/smithy/smithy/lib/smithy.dart index 349e172511..479058af30 100644 --- a/packages/smithy/smithy/lib/smithy.dart +++ b/packages/smithy/smithy/lib/smithy.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Smithy client runtime for Dart. -library smithy; +library; /// AST types export 'package:aws_common/aws_common.dart' show AlpnProtocol; diff --git a/packages/smithy/smithy/lib/src/ast/pattern/segment.dart b/packages/smithy/smithy/lib/src/ast/pattern/segment.dart index 8518095713..b426a980a0 100644 --- a/packages/smithy/smithy/lib/src/ast/pattern/segment.dart +++ b/packages/smithy/smithy/lib/src/ast/pattern/segment.dart @@ -7,11 +7,7 @@ import 'package:smithy/ast.dart'; part 'segment.g.dart'; -enum SegmentType { - literal, - label, - greedyLabel, -} +enum SegmentType { literal, label, greedyLabel } @JsonSerializable() class Segment with AWSEquatable { @@ -23,12 +19,14 @@ class Segment with AWSEquatable { if (content.length >= 2 && content[0] == '{' && content[content.length - 1] == '}') { - final labelType = content[content.length - 2] == '+' - ? SegmentType.greedyLabel - : SegmentType.label; - content = labelType == SegmentType.greedyLabel - ? content.substring(1, content.length - 2) - : content.substring(1, content.length - 1); + final labelType = + content[content.length - 2] == '+' + ? SegmentType.greedyLabel + : SegmentType.label; + content = + labelType == SegmentType.greedyLabel + ? content.substring(1, content.length - 2) + : content.substring(1, content.length - 1); return Segment(content, labelType); } else { return Segment(content, SegmentType.literal); @@ -62,10 +60,10 @@ class Segment with AWSEquatable { List get props => [content, type]; String get asString => switch (type) { - SegmentType.literal => content, - SegmentType.label => '{$content}', - SegmentType.greedyLabel => '{$content+}', - }; + SegmentType.literal => content, + SegmentType.label => '{$content}', + SegmentType.greedyLabel => '{$content+}', + }; bool get isLabel => type != SegmentType.literal; diff --git a/packages/smithy/smithy/lib/src/ast/pattern/segment.g.dart b/packages/smithy/smithy/lib/src/ast/pattern/segment.g.dart index c4e58751e1..d03924ac4a 100644 --- a/packages/smithy/smithy/lib/src/ast/pattern/segment.g.dart +++ b/packages/smithy/smithy/lib/src/ast/pattern/segment.g.dart @@ -7,14 +7,14 @@ part of 'segment.dart'; // ************************************************************************** Segment _$SegmentFromJson(Map json) => Segment( - json['content'] as String, - $enumDecode(_$SegmentTypeEnumMap, json['segmentType']), - ); + json['content'] as String, + $enumDecode(_$SegmentTypeEnumMap, json['segmentType']), +); Map _$SegmentToJson(Segment instance) => { - 'content': instance.content, - 'segmentType': _$SegmentTypeEnumMap[instance.type]!, - }; + 'content': instance.content, + 'segmentType': _$SegmentTypeEnumMap[instance.type]!, +}; const _$SegmentTypeEnumMap = { SegmentType.literal: 'literal', diff --git a/packages/smithy/smithy/lib/src/ast/pattern/smithy_pattern.dart b/packages/smithy/smithy/lib/src/ast/pattern/smithy_pattern.dart index 4d6f2995d4..d0a0b436aa 100644 --- a/packages/smithy/smithy/lib/src/ast/pattern/smithy_pattern.dart +++ b/packages/smithy/smithy/lib/src/ast/pattern/smithy_pattern.dart @@ -6,11 +6,7 @@ import 'package:collection/collection.dart'; import 'package:smithy/ast.dart'; class SmithyPattern with AWSEquatable { - SmithyPattern( - this.pattern, - this.segments, { - bool allowsGreedyLabels = true, - }) { + SmithyPattern(this.pattern, this.segments, {bool allowsGreedyLabels = true}) { _checkForDuplicateLabels(); if (allowsGreedyLabels) { _checkForLabelsAfterGreedyLabels(); @@ -71,10 +67,9 @@ class SmithyPattern with AWSEquatable { /// Get a label by case-insensitive name. Segment? getLabel(String name) => segments.firstWhereOrNull( - (segment) => - segment.isLabel && - segment.content.toLowerCase() == name.toLowerCase(), - ); + (segment) => + segment.isLabel && segment.content.toLowerCase() == name.toLowerCase(), + ); @override String toString() => pattern; diff --git a/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.dart b/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.dart index 1d4d6eb34f..4f4866a2f4 100644 --- a/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.dart +++ b/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.dart @@ -76,10 +76,7 @@ class UriPattern extends SmithyPattern { final Map queryLiterals; @override - List get props => [ - queryLiterals, - ...super.props, - ]; + List get props => [queryLiterals, ...super.props]; Map toJson() => _$UriPatternToJson(this); } diff --git a/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.g.dart b/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.g.dart index 7205472719..524fe22294 100644 --- a/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.g.dart +++ b/packages/smithy/smithy/lib/src/ast/pattern/uri_pattern.g.dart @@ -7,12 +7,13 @@ part of 'uri_pattern.dart'; // ************************************************************************** UriPattern _$UriPatternFromJson(Map json) => UriPattern( - pattern: json['pattern'] as String, - segments: (json['segments'] as List) + pattern: json['pattern'] as String, + segments: + (json['segments'] as List) .map((e) => Segment.fromJson(e as Map)) .toList(), - queryLiterals: Map.from(json['queryLiterals'] as Map), - ); + queryLiterals: Map.from(json['queryLiterals'] as Map), +); Map _$UriPatternToJson(UriPattern instance) => { diff --git a/packages/smithy/smithy/lib/src/ast/serializers.dart b/packages/smithy/smithy/lib/src/ast/serializers.dart index 9a37cd236f..7fd880dec6 100644 --- a/packages/smithy/smithy/lib/src/ast/serializers.dart +++ b/packages/smithy/smithy/lib/src/ast/serializers.dart @@ -42,11 +42,12 @@ part 'serializers.g.dart'; UnionShape, ]) @internal -final Serializers serializers = (_$serializers.toBuilder() - ..addPlugin(StandardJsonPlugin()) - ..add(ShapeIdSerializer()) - ..add(ShapeMapSerializer()) - ..add(ShapeSerializer()) - ..add(NamedMembersMapSerializer()) - ..add(TraitMapSerializer())) - .build(); +final Serializers serializers = + (_$serializers.toBuilder() + ..addPlugin(StandardJsonPlugin()) + ..add(ShapeIdSerializer()) + ..add(ShapeMapSerializer()) + ..add(ShapeSerializer()) + ..add(NamedMembersMapSerializer()) + ..add(TraitMapSerializer())) + .build(); diff --git a/packages/smithy/smithy/lib/src/ast/serializers.g.dart b/packages/smithy/smithy/lib/src/ast/serializers.g.dart index 90b5b27391..dad0284534 100644 --- a/packages/smithy/smithy/lib/src/ast/serializers.g.dart +++ b/packages/smithy/smithy/lib/src/ast/serializers.g.dart @@ -6,69 +6,86 @@ part of 'serializers.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$serializers = (new Serializers().toBuilder() - ..add(ApplyShape.serializer) - ..add(BigDecimalShape.serializer) - ..add(BigIntegerShape.serializer) - ..add(BlobShape.serializer) - ..add(BooleanShape.serializer) - ..add(ByteShape.serializer) - ..add(DocumentShape.serializer) - ..add(DoubleShape.serializer) - ..add(FloatShape.serializer) - ..add(IntEnumShape.serializer) - ..add(IntegerShape.serializer) - ..add(ListShape.serializer) - ..add(LongShape.serializer) - ..add(MapShape.serializer) - ..add(MemberShape.serializer) - ..add(OperationShape.serializer) - ..add(ResourceShape.serializer) - ..add(ServiceShape.serializer) - ..add(SetShape.serializer) - ..add(ShapeRef.serializer) - ..add(ShapeType.serializer) - ..add(ShortShape.serializer) - ..add(SmithyAst.serializer) - ..add(SmithyVersion.serializer) - ..add(StringEnumShape.serializer) - ..add(StringShape.serializer) - ..add(StructureShape.serializer) - ..add(TimestampShape.serializer) - ..add(UnionShape.serializer) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(ShapeRef)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltMap, - const [const FullType(String), const FullType(ShapeRef)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltSet, const [const FullType(ShapeRef)]), - () => new SetBuilder()) - ..addBuilderFactory( - const FullType(BuiltSet, const [const FullType(ShapeRef)]), - () => new SetBuilder()) - ..addBuilderFactory( - const FullType(BuiltSet, const [const FullType(ShapeRef)]), - () => new SetBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltSet, const [const FullType(ShapeRef)]), - () => new SetBuilder()) - ..addBuilderFactory( - const FullType(BuiltSet, const [const FullType(ShapeRef)]), - () => new SetBuilder()) - ..addBuilderFactory( - const FullType(BuiltSet, const [const FullType(ShapeRef)]), - () => new SetBuilder())) - .build(); +Serializers _$serializers = + (new Serializers().toBuilder() + ..add(ApplyShape.serializer) + ..add(BigDecimalShape.serializer) + ..add(BigIntegerShape.serializer) + ..add(BlobShape.serializer) + ..add(BooleanShape.serializer) + ..add(ByteShape.serializer) + ..add(DocumentShape.serializer) + ..add(DoubleShape.serializer) + ..add(FloatShape.serializer) + ..add(IntEnumShape.serializer) + ..add(IntegerShape.serializer) + ..add(ListShape.serializer) + ..add(LongShape.serializer) + ..add(MapShape.serializer) + ..add(MemberShape.serializer) + ..add(OperationShape.serializer) + ..add(ResourceShape.serializer) + ..add(ServiceShape.serializer) + ..add(SetShape.serializer) + ..add(ShapeRef.serializer) + ..add(ShapeType.serializer) + ..add(ShortShape.serializer) + ..add(SmithyAst.serializer) + ..add(SmithyVersion.serializer) + ..add(StringEnumShape.serializer) + ..add(StringShape.serializer) + ..add(StructureShape.serializer) + ..add(TimestampShape.serializer) + ..add(UnionShape.serializer) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(ShapeRef)]), + () => new ListBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(JsonObject), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(ShapeRef), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSet, const [const FullType(ShapeRef)]), + () => new SetBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSet, const [const FullType(ShapeRef)]), + () => new SetBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSet, const [const FullType(ShapeRef)]), + () => new SetBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSet, const [const FullType(ShapeRef)]), + () => new SetBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSet, const [const FullType(ShapeRef)]), + () => new SetBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSet, const [const FullType(ShapeRef)]), + () => new SetBuilder(), + )) + .build(); // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/smithy/smithy/lib/src/ast/shapes/apply_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/apply_shape.g.dart index f6d637f2d8..bab1036d5a 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/apply_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/apply_shape.g.dart @@ -15,20 +15,28 @@ class _$ApplyShapeSerializer implements StructuredSerializer { final String wireName = 'ApplyShape'; @override - Iterable serialize(Serializers serializers, ApplyShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ApplyShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - ApplyShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + ApplyShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ApplyShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$ApplyShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class ApplyShapeBuilder ApplyShape build() => _build(); _$ApplyShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ApplyShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'ApplyShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'ApplyShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'ApplyShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'ApplyShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/big_decimal_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/big_decimal_shape.g.dart index 91bef91ec1..1da6201370 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/big_decimal_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/big_decimal_shape.g.dart @@ -17,12 +17,17 @@ class _$BigDecimalShapeSerializer final String wireName = 'BigDecimalShape'; @override - Iterable serialize(Serializers serializers, BigDecimalShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + BigDecimalShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -30,8 +35,10 @@ class _$BigDecimalShapeSerializer @override BigDecimalShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new BigDecimalShapeBuilder(); final iterator = serialized.iterator; @@ -41,8 +48,12 @@ class _$BigDecimalShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,9 +72,12 @@ class _$BigDecimalShape extends BigDecimalShape { (new BigDecimalShapeBuilder()..update(updates))._build(); _$BigDecimalShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'BigDecimalShape', 'shapeId'); + shapeId, + r'BigDecimalShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull(traits, r'BigDecimalShape', 'traits'); } @@ -144,12 +158,20 @@ class BigDecimalShapeBuilder BigDecimalShape build() => _build(); _$BigDecimalShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$BigDecimalShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'BigDecimalShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'BigDecimalShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'BigDecimalShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'BigDecimalShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/big_integer_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/big_integer_shape.g.dart index 1568a08fef..61798a52b5 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/big_integer_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/big_integer_shape.g.dart @@ -17,12 +17,17 @@ class _$BigIntegerShapeSerializer final String wireName = 'BigIntegerShape'; @override - Iterable serialize(Serializers serializers, BigIntegerShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + BigIntegerShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -30,8 +35,10 @@ class _$BigIntegerShapeSerializer @override BigIntegerShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new BigIntegerShapeBuilder(); final iterator = serialized.iterator; @@ -41,8 +48,12 @@ class _$BigIntegerShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,9 +72,12 @@ class _$BigIntegerShape extends BigIntegerShape { (new BigIntegerShapeBuilder()..update(updates))._build(); _$BigIntegerShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'BigIntegerShape', 'shapeId'); + shapeId, + r'BigIntegerShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull(traits, r'BigIntegerShape', 'traits'); } @@ -144,12 +158,20 @@ class BigIntegerShapeBuilder BigIntegerShape build() => _build(); _$BigIntegerShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$BigIntegerShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'BigIntegerShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'BigIntegerShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'BigIntegerShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'BigIntegerShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/blob_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/blob_shape.g.dart index 4d430b8746..49387cad3a 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/blob_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/blob_shape.g.dart @@ -15,20 +15,28 @@ class _$BlobShapeSerializer implements StructuredSerializer { final String wireName = 'BlobShape'; @override - Iterable serialize(Serializers serializers, BlobShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + BlobShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - BlobShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + BlobShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new BlobShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$BlobShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class BlobShapeBuilder BlobShape build() => _build(); _$BlobShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$BlobShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'BlobShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'BlobShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'BlobShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'BlobShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/boolean_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/boolean_shape.g.dart index bdc26e83b5..4f6262198a 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/boolean_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/boolean_shape.g.dart @@ -16,12 +16,17 @@ class _$BooleanShapeSerializer implements StructuredSerializer { final String wireName = 'BooleanShape'; @override - Iterable serialize(Serializers serializers, BooleanShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + BooleanShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -29,8 +34,10 @@ class _$BooleanShapeSerializer implements StructuredSerializer { @override BooleanShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new BooleanShapeBuilder(); final iterator = serialized.iterator; @@ -40,8 +47,12 @@ class _$BooleanShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -138,12 +149,20 @@ class BooleanShapeBuilder BooleanShape build() => _build(); _$BooleanShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$BooleanShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'BooleanShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'BooleanShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'BooleanShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'BooleanShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/byte_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/byte_shape.g.dart index 97de9a2fc8..ae59282d17 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/byte_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/byte_shape.g.dart @@ -15,20 +15,28 @@ class _$ByteShapeSerializer implements StructuredSerializer { final String wireName = 'ByteShape'; @override - Iterable serialize(Serializers serializers, ByteShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ByteShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - ByteShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + ByteShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ByteShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$ByteShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class ByteShapeBuilder ByteShape build() => _build(); _$ByteShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ByteShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'ByteShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'ByteShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'ByteShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'ByteShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/collection_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/collection_shape.dart index 06dc1a43c2..4f919c19f9 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/collection_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/collection_shape.dart @@ -49,13 +49,16 @@ class NamedMembersMapSerializer extends StructuredSerializer { membersMap[memberName] = serializers .deserializeWith( MemberShape.serializer, - StandardJsonPlugin() - .beforeDeserialize(value, const FullType(MemberShape)), + StandardJsonPlugin().beforeDeserialize( + value, + const FullType(MemberShape), + ), )! .rebuild( - (b) => b - ..shapeId = shapeId - ..memberName = memberName, + (b) => + b + ..shapeId = shapeId + ..memberName = memberName, ); } return membersMap; diff --git a/packages/smithy/smithy/lib/src/ast/shapes/document_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/document_shape.g.dart index 9f3fb9816e..240002f7d1 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/document_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/document_shape.g.dart @@ -16,12 +16,17 @@ class _$DocumentShapeSerializer implements StructuredSerializer { final String wireName = 'DocumentShape'; @override - Iterable serialize(Serializers serializers, DocumentShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + DocumentShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -29,8 +34,10 @@ class _$DocumentShapeSerializer implements StructuredSerializer { @override DocumentShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new DocumentShapeBuilder(); final iterator = serialized.iterator; @@ -40,8 +47,12 @@ class _$DocumentShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -140,12 +151,20 @@ class DocumentShapeBuilder DocumentShape build() => _build(); _$DocumentShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DocumentShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'DocumentShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'DocumentShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'DocumentShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'DocumentShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/double_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/double_shape.g.dart index 9592f9bcde..d0605c6a4b 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/double_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/double_shape.g.dart @@ -15,20 +15,28 @@ class _$DoubleShapeSerializer implements StructuredSerializer { final String wireName = 'DoubleShape'; @override - Iterable serialize(Serializers serializers, DoubleShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + DoubleShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - DoubleShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + DoubleShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new DoubleShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$DoubleShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class DoubleShapeBuilder DoubleShape build() => _build(); _$DoubleShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DoubleShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'DoubleShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'DoubleShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'DoubleShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'DoubleShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/enum_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/enum_shape.g.dart index 01470a2da4..178bcb5966 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/enum_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/enum_shape.g.dart @@ -19,15 +19,22 @@ class _$StringEnumShapeSerializer final String wireName = 'StringEnumShape'; @override - Iterable serialize(Serializers serializers, StringEnumShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + StringEnumShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'members', - serializers.serialize(object.members, - specifiedType: const FullType(NamedMembersMap)), + serializers.serialize( + object.members, + specifiedType: const FullType(NamedMembersMap), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -35,8 +42,10 @@ class _$StringEnumShapeSerializer @override StringEnumShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new StringEnumShapeBuilder(); final iterator = serialized.iterator; @@ -46,13 +55,20 @@ class _$StringEnumShapeSerializer final Object? value = iterator.current; switch (key) { case 'members': - result.members = serializers.deserialize(value, - specifiedType: const FullType(NamedMembersMap))! - as NamedMembersMap; + result.members = + serializers.deserialize( + value, + specifiedType: const FullType(NamedMembersMap), + )! + as NamedMembersMap; break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -68,15 +84,22 @@ class _$IntEnumShapeSerializer implements StructuredSerializer { final String wireName = 'IntEnumShape'; @override - Iterable serialize(Serializers serializers, IntEnumShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + IntEnumShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'members', - serializers.serialize(object.members, - specifiedType: const FullType(NamedMembersMap)), + serializers.serialize( + object.members, + specifiedType: const FullType(NamedMembersMap), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -84,8 +107,10 @@ class _$IntEnumShapeSerializer implements StructuredSerializer { @override IntEnumShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new IntEnumShapeBuilder(); final iterator = serialized.iterator; @@ -95,13 +120,20 @@ class _$IntEnumShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'members': - result.members = serializers.deserialize(value, - specifiedType: const FullType(NamedMembersMap))! - as NamedMembersMap; + result.members = + serializers.deserialize( + value, + specifiedType: const FullType(NamedMembersMap), + )! + as NamedMembersMap; break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -134,13 +166,21 @@ class _$StringEnumShape extends StringEnumShape { factory _$StringEnumShape([void Function(StringEnumShapeBuilder)? updates]) => (new StringEnumShapeBuilder()..update(updates))._build(); - _$StringEnumShape._( - {required this.members, required this.shapeId, required this.traits}) - : super._() { + _$StringEnumShape._({ + required this.members, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - members, r'StringEnumShape', 'members'); + members, + r'StringEnumShape', + 'members', + ); BuiltValueNullFieldError.checkNotNull( - shapeId, r'StringEnumShape', 'shapeId'); + shapeId, + r'StringEnumShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull(traits, r'StringEnumShape', 'traits'); } @@ -229,14 +269,25 @@ class StringEnumShapeBuilder StringEnumShape build() => _build(); _$StringEnumShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$StringEnumShape._( - members: BuiltValueNullFieldError.checkNotNull( - members, r'StringEnumShape', 'members'), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'StringEnumShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'StringEnumShape', 'traits')); + members: BuiltValueNullFieldError.checkNotNull( + members, + r'StringEnumShape', + 'members', + ), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'StringEnumShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'StringEnumShape', + 'traits', + ), + ); replace(_$result); return _$result; } @@ -253,9 +304,11 @@ class _$IntEnumShape extends IntEnumShape { factory _$IntEnumShape([void Function(IntEnumShapeBuilder)? updates]) => (new IntEnumShapeBuilder()..update(updates))._build(); - _$IntEnumShape._( - {required this.members, required this.shapeId, required this.traits}) - : super._() { + _$IntEnumShape._({ + required this.members, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull(members, r'IntEnumShape', 'members'); BuiltValueNullFieldError.checkNotNull(shapeId, r'IntEnumShape', 'shapeId'); BuiltValueNullFieldError.checkNotNull(traits, r'IntEnumShape', 'traits'); @@ -343,14 +396,25 @@ class IntEnumShapeBuilder IntEnumShape build() => _build(); _$IntEnumShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$IntEnumShape._( - members: BuiltValueNullFieldError.checkNotNull( - members, r'IntEnumShape', 'members'), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'IntEnumShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'IntEnumShape', 'traits')); + members: BuiltValueNullFieldError.checkNotNull( + members, + r'IntEnumShape', + 'members', + ), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'IntEnumShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'IntEnumShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/float_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/float_shape.g.dart index 0c4abf5bec..32a17257d2 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/float_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/float_shape.g.dart @@ -15,20 +15,28 @@ class _$FloatShapeSerializer implements StructuredSerializer { final String wireName = 'FloatShape'; @override - Iterable serialize(Serializers serializers, FloatShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + FloatShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - FloatShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + FloatShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new FloatShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$FloatShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class FloatShapeBuilder FloatShape build() => _build(); _$FloatShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$FloatShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'FloatShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'FloatShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'FloatShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'FloatShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/integer_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/integer_shape.g.dart index 4c730a1351..be7fb07e6c 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/integer_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/integer_shape.g.dart @@ -16,12 +16,17 @@ class _$IntegerShapeSerializer implements StructuredSerializer { final String wireName = 'IntegerShape'; @override - Iterable serialize(Serializers serializers, IntegerShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + IntegerShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -29,8 +34,10 @@ class _$IntegerShapeSerializer implements StructuredSerializer { @override IntegerShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new IntegerShapeBuilder(); final iterator = serialized.iterator; @@ -40,8 +47,12 @@ class _$IntegerShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -138,12 +149,20 @@ class IntegerShapeBuilder IntegerShape build() => _build(); _$IntegerShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$IntegerShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'IntegerShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'IntegerShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'IntegerShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'IntegerShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/list_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/list_shape.g.dart index 536ba373e2..8ff392b1e1 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/list_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/list_shape.g.dart @@ -15,23 +15,33 @@ class _$ListShapeSerializer implements StructuredSerializer { final String wireName = 'ListShape'; @override - Iterable serialize(Serializers serializers, ListShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ListShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'member', - serializers.serialize(object.member, - specifiedType: const FullType(MemberShape)), + serializers.serialize( + object.member, + specifiedType: const FullType(MemberShape), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - ListShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + ListShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ListShapeBuilder(); final iterator = serialized.iterator; @@ -41,12 +51,21 @@ class _$ListShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'member': - result.member.replace(serializers.deserialize(value, - specifiedType: const FullType(MemberShape))! as MemberShape); + result.member.replace( + serializers.deserialize( + value, + specifiedType: const FullType(MemberShape), + )! + as MemberShape, + ); break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -66,9 +85,11 @@ class _$ListShape extends ListShape { factory _$ListShape([void Function(ListShapeBuilder)? updates]) => (new ListShapeBuilder()..update(updates))._build(); - _$ListShape._( - {required this.member, required this.shapeId, required this.traits}) - : super._() { + _$ListShape._({ + required this.member, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull(member, r'ListShape', 'member'); BuiltValueNullFieldError.checkNotNull(shapeId, r'ListShape', 'shapeId'); BuiltValueNullFieldError.checkNotNull(traits, r'ListShape', 'traits'); @@ -158,13 +179,21 @@ class ListShapeBuilder _$ListShape _build() { _$ListShape _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListShape._( - member: member.build(), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'ListShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'ListShape', 'traits')); + member: member.build(), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'ListShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'ListShape', + 'traits', + ), + ); } catch (_) { late String _$failedField; try { @@ -172,7 +201,10 @@ class ListShapeBuilder member.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListShape', _$failedField, e.toString()); + r'ListShape', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/long_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/long_shape.g.dart index 2e498dfe79..dfacb5674d 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/long_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/long_shape.g.dart @@ -15,20 +15,28 @@ class _$LongShapeSerializer implements StructuredSerializer { final String wireName = 'LongShape'; @override - Iterable serialize(Serializers serializers, LongShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + LongShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - LongShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + LongShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new LongShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$LongShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class LongShapeBuilder LongShape build() => _build(); _$LongShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$LongShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'LongShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'LongShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'LongShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'LongShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/map_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/map_shape.g.dart index 08edc5ede7..b33fb51e23 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/map_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/map_shape.g.dart @@ -15,26 +15,38 @@ class _$MapShapeSerializer implements StructuredSerializer { final String wireName = 'MapShape'; @override - Iterable serialize(Serializers serializers, MapShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + MapShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'key', - serializers.serialize(object.key, - specifiedType: const FullType(ShapeRef)), + serializers.serialize( + object.key, + specifiedType: const FullType(ShapeRef), + ), 'value', - serializers.serialize(object.value, - specifiedType: const FullType(ShapeRef)), + serializers.serialize( + object.value, + specifiedType: const FullType(ShapeRef), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - MapShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + MapShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new MapShapeBuilder(); final iterator = serialized.iterator; @@ -44,16 +56,30 @@ class _$MapShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'key': - result.key.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.key.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'value': - result.value.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.value.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -75,12 +101,12 @@ class _$MapShape extends MapShape { factory _$MapShape([void Function(MapShapeBuilder)? updates]) => (new MapShapeBuilder()..update(updates))._build(); - _$MapShape._( - {required this.key, - required this.value, - required this.shapeId, - required this.traits}) - : super._() { + _$MapShape._({ + required this.key, + required this.value, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull(key, r'MapShape', 'key'); BuiltValueNullFieldError.checkNotNull(value, r'MapShape', 'value'); BuiltValueNullFieldError.checkNotNull(shapeId, r'MapShape', 'shapeId'); @@ -179,14 +205,22 @@ class MapShapeBuilder _$MapShape _build() { _$MapShape _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MapShape._( - key: key.build(), - value: value.build(), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'MapShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'MapShape', 'traits')); + key: key.build(), + value: value.build(), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'MapShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'MapShape', + 'traits', + ), + ); } catch (_) { late String _$failedField; try { @@ -196,7 +230,10 @@ class MapShapeBuilder value.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MapShape', _$failedField, e.toString()); + r'MapShape', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/member_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/member_shape.g.dart index d944d2cc37..b268bd0bea 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/member_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/member_shape.g.dart @@ -15,26 +15,38 @@ class _$MemberShapeSerializer implements StructuredSerializer { final String wireName = 'MemberShape'; @override - Iterable serialize(Serializers serializers, MemberShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + MemberShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'target', - serializers.serialize(object.target, - specifiedType: const FullType(ShapeId)), + serializers.serialize( + object.target, + specifiedType: const FullType(ShapeId), + ), 'memberName', - serializers.serialize(object.memberName, - specifiedType: const FullType(String)), + serializers.serialize( + object.memberName, + specifiedType: const FullType(String), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - MemberShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + MemberShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new MemberShapeBuilder(); final iterator = serialized.iterator; @@ -44,16 +56,28 @@ class _$MemberShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'target': - result.target = serializers.deserialize(value, - specifiedType: const FullType(ShapeId))! as ShapeId; + result.target = + serializers.deserialize( + value, + specifiedType: const FullType(ShapeId), + )! + as ShapeId; break; case 'memberName': - result.memberName = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.memberName = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -75,15 +99,18 @@ class _$MemberShape extends MemberShape { factory _$MemberShape([void Function(MemberShapeBuilder)? updates]) => (new MemberShapeBuilder()..update(updates))._build(); - _$MemberShape._( - {required this.target, - required this.memberName, - required this.shapeId, - required this.traits}) - : super._() { + _$MemberShape._({ + required this.target, + required this.memberName, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull(target, r'MemberShape', 'target'); BuiltValueNullFieldError.checkNotNull( - memberName, r'MemberShape', 'memberName'); + memberName, + r'MemberShape', + 'memberName', + ); BuiltValueNullFieldError.checkNotNull(shapeId, r'MemberShape', 'shapeId'); BuiltValueNullFieldError.checkNotNull(traits, r'MemberShape', 'traits'); } @@ -179,16 +206,30 @@ class MemberShapeBuilder MemberShape build() => _build(); _$MemberShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$MemberShape._( - target: BuiltValueNullFieldError.checkNotNull( - target, r'MemberShape', 'target'), - memberName: BuiltValueNullFieldError.checkNotNull( - memberName, r'MemberShape', 'memberName'), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'MemberShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'MemberShape', 'traits')); + target: BuiltValueNullFieldError.checkNotNull( + target, + r'MemberShape', + 'target', + ), + memberName: BuiltValueNullFieldError.checkNotNull( + memberName, + r'MemberShape', + 'memberName', + ), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'MemberShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'MemberShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/operation_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/operation_shape.g.dart index 4c24e35666..fedb7e7587 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/operation_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/operation_shape.g.dart @@ -17,39 +17,51 @@ class _$OperationShapeSerializer final String wireName = 'OperationShape'; @override - Iterable serialize(Serializers serializers, OperationShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + OperationShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'errors', - serializers.serialize(object.errors, - specifiedType: - const FullType(BuiltList, const [const FullType(ShapeRef)])), + serializers.serialize( + object.errors, + specifiedType: const FullType(BuiltList, const [ + const FullType(ShapeRef), + ]), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; Object? value; value = object.input; if (value != null) { result ..add('input') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } value = object.output; if (value != null) { result ..add('output') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } return result; } @override OperationShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new OperationShapeBuilder(); final iterator = serialized.iterator; @@ -59,22 +71,41 @@ class _$OperationShapeSerializer final Object? value = iterator.current; switch (key) { case 'input': - result.input.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.input.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'output': - result.output.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.output.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'errors': - result.errors.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltList, const [const FullType(ShapeRef)]))! - as BuiltList); + result.errors.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, const [ + const FullType(ShapeRef), + ]), + )! + as BuiltList, + ); break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -98,16 +129,19 @@ class _$OperationShape extends OperationShape { factory _$OperationShape([void Function(OperationShapeBuilder)? updates]) => (new OperationShapeBuilder()..update(updates))._build(); - _$OperationShape._( - {this.input, - this.output, - required this.errors, - required this.shapeId, - required this.traits}) - : super._() { + _$OperationShape._({ + this.input, + this.output, + required this.errors, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull(errors, r'OperationShape', 'errors'); BuiltValueNullFieldError.checkNotNull( - shapeId, r'OperationShape', 'shapeId'); + shapeId, + r'OperationShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull(traits, r'OperationShape', 'traits'); } @@ -214,15 +248,23 @@ class OperationShapeBuilder _$OperationShape _build() { _$OperationShape _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$OperationShape._( - input: _input?.build(), - output: _output?.build(), - errors: errors.build(), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'OperationShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'OperationShape', 'traits')); + input: _input?.build(), + output: _output?.build(), + errors: errors.build(), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'OperationShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'OperationShape', + 'traits', + ), + ); } catch (_) { late String _$failedField; try { @@ -234,7 +276,10 @@ class OperationShapeBuilder errors.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OperationShape', _$failedField, e.toString()); + r'OperationShape', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.dart index b52c03dcdd..ca46fe8b48 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.dart @@ -20,9 +20,7 @@ abstract class PrimitiveBooleanShape static void _init(PrimitiveBooleanShapeBuilder b) { b ..shapeId = id - ..traits = TraitMap.fromTraits(const [ - DefaultTrait(false), - ]); + ..traits = TraitMap.fromTraits(const [DefaultTrait(false)]); } static const id = ShapeId.core('PrimitiveBoolean'); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.g.dart index 4a2e81a970..bea6b8d6d8 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_boolean_shape.g.dart @@ -14,19 +14,23 @@ class _$PrimitiveBooleanShapeSerializer @override final Iterable types = const [ PrimitiveBooleanShape, - _$PrimitiveBooleanShape + _$PrimitiveBooleanShape, ]; @override final String wireName = 'PrimitiveBooleanShape'; @override Iterable serialize( - Serializers serializers, PrimitiveBooleanShape object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PrimitiveBooleanShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -34,8 +38,10 @@ class _$PrimitiveBooleanShapeSerializer @override PrimitiveBooleanShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PrimitiveBooleanShapeBuilder(); final iterator = serialized.iterator; @@ -45,8 +51,12 @@ class _$PrimitiveBooleanShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,22 +71,28 @@ class _$PrimitiveBooleanShape extends PrimitiveBooleanShape { @override final TraitMap traits; - factory _$PrimitiveBooleanShape( - [void Function(PrimitiveBooleanShapeBuilder)? updates]) => - (new PrimitiveBooleanShapeBuilder()..update(updates))._build(); + factory _$PrimitiveBooleanShape([ + void Function(PrimitiveBooleanShapeBuilder)? updates, + ]) => (new PrimitiveBooleanShapeBuilder()..update(updates))._build(); _$PrimitiveBooleanShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveBooleanShape', 'shapeId'); + shapeId, + r'PrimitiveBooleanShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveBooleanShape', 'traits'); + traits, + r'PrimitiveBooleanShape', + 'traits', + ); } @override PrimitiveBooleanShape rebuild( - void Function(PrimitiveBooleanShapeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PrimitiveBooleanShapeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PrimitiveBooleanShapeBuilder toBuilder() => @@ -151,12 +167,20 @@ class PrimitiveBooleanShapeBuilder PrimitiveBooleanShape build() => _build(); _$PrimitiveBooleanShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PrimitiveBooleanShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveBooleanShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveBooleanShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'PrimitiveBooleanShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'PrimitiveBooleanShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.dart index e53a88d401..ea2c5a7dca 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.dart @@ -20,9 +20,7 @@ abstract class PrimitiveByteShape static void _init(PrimitiveByteShapeBuilder b) { b ..shapeId = id - ..traits = TraitMap.fromTraits(const [ - DefaultTrait(0), - ]); + ..traits = TraitMap.fromTraits(const [DefaultTrait(0)]); } static const id = ShapeId.core('PrimitiveByte'); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.g.dart index 26cedbcbd2..56dadc5913 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_byte_shape.g.dart @@ -18,12 +18,16 @@ class _$PrimitiveByteShapeSerializer @override Iterable serialize( - Serializers serializers, PrimitiveByteShape object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PrimitiveByteShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -31,8 +35,10 @@ class _$PrimitiveByteShapeSerializer @override PrimitiveByteShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PrimitiveByteShapeBuilder(); final iterator = serialized.iterator; @@ -42,8 +48,12 @@ class _$PrimitiveByteShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -58,22 +68,28 @@ class _$PrimitiveByteShape extends PrimitiveByteShape { @override final TraitMap traits; - factory _$PrimitiveByteShape( - [void Function(PrimitiveByteShapeBuilder)? updates]) => - (new PrimitiveByteShapeBuilder()..update(updates))._build(); + factory _$PrimitiveByteShape([ + void Function(PrimitiveByteShapeBuilder)? updates, + ]) => (new PrimitiveByteShapeBuilder()..update(updates))._build(); _$PrimitiveByteShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveByteShape', 'shapeId'); + shapeId, + r'PrimitiveByteShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveByteShape', 'traits'); + traits, + r'PrimitiveByteShape', + 'traits', + ); } @override PrimitiveByteShape rebuild( - void Function(PrimitiveByteShapeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PrimitiveByteShapeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PrimitiveByteShapeBuilder toBuilder() => @@ -148,12 +164,20 @@ class PrimitiveByteShapeBuilder PrimitiveByteShape build() => _build(); _$PrimitiveByteShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PrimitiveByteShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveByteShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveByteShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'PrimitiveByteShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'PrimitiveByteShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.dart index 9be7b9555b..b074938128 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.dart @@ -20,9 +20,7 @@ abstract class PrimitiveDoubleShape static void _init(PrimitiveDoubleShapeBuilder b) { b ..shapeId = id - ..traits = TraitMap.fromTraits(const [ - DefaultTrait(0), - ]); + ..traits = TraitMap.fromTraits(const [DefaultTrait(0)]); } static const id = ShapeId.core('PrimitiveDouble'); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.g.dart index d776dfc80c..ac97bcd786 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_double_shape.g.dart @@ -14,19 +14,23 @@ class _$PrimitiveDoubleShapeSerializer @override final Iterable types = const [ PrimitiveDoubleShape, - _$PrimitiveDoubleShape + _$PrimitiveDoubleShape, ]; @override final String wireName = 'PrimitiveDoubleShape'; @override Iterable serialize( - Serializers serializers, PrimitiveDoubleShape object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PrimitiveDoubleShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -34,8 +38,10 @@ class _$PrimitiveDoubleShapeSerializer @override PrimitiveDoubleShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PrimitiveDoubleShapeBuilder(); final iterator = serialized.iterator; @@ -45,8 +51,12 @@ class _$PrimitiveDoubleShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,22 +71,28 @@ class _$PrimitiveDoubleShape extends PrimitiveDoubleShape { @override final TraitMap traits; - factory _$PrimitiveDoubleShape( - [void Function(PrimitiveDoubleShapeBuilder)? updates]) => - (new PrimitiveDoubleShapeBuilder()..update(updates))._build(); + factory _$PrimitiveDoubleShape([ + void Function(PrimitiveDoubleShapeBuilder)? updates, + ]) => (new PrimitiveDoubleShapeBuilder()..update(updates))._build(); _$PrimitiveDoubleShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveDoubleShape', 'shapeId'); + shapeId, + r'PrimitiveDoubleShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveDoubleShape', 'traits'); + traits, + r'PrimitiveDoubleShape', + 'traits', + ); } @override PrimitiveDoubleShape rebuild( - void Function(PrimitiveDoubleShapeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PrimitiveDoubleShapeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PrimitiveDoubleShapeBuilder toBuilder() => @@ -151,12 +167,20 @@ class PrimitiveDoubleShapeBuilder PrimitiveDoubleShape build() => _build(); _$PrimitiveDoubleShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PrimitiveDoubleShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveDoubleShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveDoubleShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'PrimitiveDoubleShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'PrimitiveDoubleShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.dart index 339a34926c..25ea11ada7 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.dart @@ -20,9 +20,7 @@ abstract class PrimitiveFloatShape static void _init(PrimitiveFloatShapeBuilder b) { b ..shapeId = id - ..traits = TraitMap.fromTraits(const [ - DefaultTrait(0.0), - ]); + ..traits = TraitMap.fromTraits(const [DefaultTrait(0.0)]); } static const id = ShapeId.core('PrimitiveFloat'); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.g.dart index 31596adb2e..394fb87f76 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_float_shape.g.dart @@ -14,19 +14,23 @@ class _$PrimitiveFloatShapeSerializer @override final Iterable types = const [ PrimitiveFloatShape, - _$PrimitiveFloatShape + _$PrimitiveFloatShape, ]; @override final String wireName = 'PrimitiveFloatShape'; @override Iterable serialize( - Serializers serializers, PrimitiveFloatShape object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PrimitiveFloatShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -34,8 +38,10 @@ class _$PrimitiveFloatShapeSerializer @override PrimitiveFloatShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PrimitiveFloatShapeBuilder(); final iterator = serialized.iterator; @@ -45,8 +51,12 @@ class _$PrimitiveFloatShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,22 +71,28 @@ class _$PrimitiveFloatShape extends PrimitiveFloatShape { @override final TraitMap traits; - factory _$PrimitiveFloatShape( - [void Function(PrimitiveFloatShapeBuilder)? updates]) => - (new PrimitiveFloatShapeBuilder()..update(updates))._build(); + factory _$PrimitiveFloatShape([ + void Function(PrimitiveFloatShapeBuilder)? updates, + ]) => (new PrimitiveFloatShapeBuilder()..update(updates))._build(); _$PrimitiveFloatShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveFloatShape', 'shapeId'); + shapeId, + r'PrimitiveFloatShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveFloatShape', 'traits'); + traits, + r'PrimitiveFloatShape', + 'traits', + ); } @override PrimitiveFloatShape rebuild( - void Function(PrimitiveFloatShapeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PrimitiveFloatShapeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PrimitiveFloatShapeBuilder toBuilder() => @@ -151,12 +167,20 @@ class PrimitiveFloatShapeBuilder PrimitiveFloatShape build() => _build(); _$PrimitiveFloatShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PrimitiveFloatShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveFloatShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveFloatShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'PrimitiveFloatShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'PrimitiveFloatShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.dart index 4ca2ee1898..623457919d 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.dart @@ -20,9 +20,7 @@ abstract class PrimitiveIntegerShape static void _init(PrimitiveIntegerShapeBuilder b) { b ..shapeId = id - ..traits = TraitMap.fromTraits(const [ - DefaultTrait(0), - ]); + ..traits = TraitMap.fromTraits(const [DefaultTrait(0)]); } static const id = ShapeId.core('PrimitiveInteger'); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.g.dart index 5f58a78c67..e9b7d2eb46 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_integer_shape.g.dart @@ -14,19 +14,23 @@ class _$PrimitiveIntegerShapeSerializer @override final Iterable types = const [ PrimitiveIntegerShape, - _$PrimitiveIntegerShape + _$PrimitiveIntegerShape, ]; @override final String wireName = 'PrimitiveIntegerShape'; @override Iterable serialize( - Serializers serializers, PrimitiveIntegerShape object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PrimitiveIntegerShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -34,8 +38,10 @@ class _$PrimitiveIntegerShapeSerializer @override PrimitiveIntegerShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PrimitiveIntegerShapeBuilder(); final iterator = serialized.iterator; @@ -45,8 +51,12 @@ class _$PrimitiveIntegerShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,22 +71,28 @@ class _$PrimitiveIntegerShape extends PrimitiveIntegerShape { @override final TraitMap traits; - factory _$PrimitiveIntegerShape( - [void Function(PrimitiveIntegerShapeBuilder)? updates]) => - (new PrimitiveIntegerShapeBuilder()..update(updates))._build(); + factory _$PrimitiveIntegerShape([ + void Function(PrimitiveIntegerShapeBuilder)? updates, + ]) => (new PrimitiveIntegerShapeBuilder()..update(updates))._build(); _$PrimitiveIntegerShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveIntegerShape', 'shapeId'); + shapeId, + r'PrimitiveIntegerShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveIntegerShape', 'traits'); + traits, + r'PrimitiveIntegerShape', + 'traits', + ); } @override PrimitiveIntegerShape rebuild( - void Function(PrimitiveIntegerShapeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PrimitiveIntegerShapeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PrimitiveIntegerShapeBuilder toBuilder() => @@ -151,12 +167,20 @@ class PrimitiveIntegerShapeBuilder PrimitiveIntegerShape build() => _build(); _$PrimitiveIntegerShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PrimitiveIntegerShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveIntegerShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveIntegerShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'PrimitiveIntegerShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'PrimitiveIntegerShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.dart index 7d9079e896..6124409b51 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.dart @@ -21,9 +21,7 @@ abstract class PrimitiveLongShape static void _init(PrimitiveLongShapeBuilder b) { b ..shapeId = id - ..traits = TraitMap.fromTraits(const [ - DefaultTrait(Int64.ZERO), - ]); + ..traits = TraitMap.fromTraits(const [DefaultTrait(Int64.ZERO)]); } static const id = ShapeId.core('PrimitiveLong'); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.g.dart index 006549ae26..ce3248af11 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_long_shape.g.dart @@ -18,12 +18,16 @@ class _$PrimitiveLongShapeSerializer @override Iterable serialize( - Serializers serializers, PrimitiveLongShape object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PrimitiveLongShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -31,8 +35,10 @@ class _$PrimitiveLongShapeSerializer @override PrimitiveLongShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PrimitiveLongShapeBuilder(); final iterator = serialized.iterator; @@ -42,8 +48,12 @@ class _$PrimitiveLongShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -58,22 +68,28 @@ class _$PrimitiveLongShape extends PrimitiveLongShape { @override final TraitMap traits; - factory _$PrimitiveLongShape( - [void Function(PrimitiveLongShapeBuilder)? updates]) => - (new PrimitiveLongShapeBuilder()..update(updates))._build(); + factory _$PrimitiveLongShape([ + void Function(PrimitiveLongShapeBuilder)? updates, + ]) => (new PrimitiveLongShapeBuilder()..update(updates))._build(); _$PrimitiveLongShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveLongShape', 'shapeId'); + shapeId, + r'PrimitiveLongShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveLongShape', 'traits'); + traits, + r'PrimitiveLongShape', + 'traits', + ); } @override PrimitiveLongShape rebuild( - void Function(PrimitiveLongShapeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PrimitiveLongShapeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PrimitiveLongShapeBuilder toBuilder() => @@ -148,12 +164,20 @@ class PrimitiveLongShapeBuilder PrimitiveLongShape build() => _build(); _$PrimitiveLongShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PrimitiveLongShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveLongShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveLongShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'PrimitiveLongShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'PrimitiveLongShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.dart index a1f19286f7..97dbaa4f59 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.dart @@ -20,9 +20,7 @@ abstract class PrimitiveShortShape static void _init(PrimitiveShortShapeBuilder b) { b ..shapeId = id - ..traits = TraitMap.fromTraits(const [ - DefaultTrait(0), - ]); + ..traits = TraitMap.fromTraits(const [DefaultTrait(0)]); } static const id = ShapeId.core('PrimitiveShort'); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.g.dart index 1dccd2a6fb..ee769b8c1e 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/primitive_short_shape.g.dart @@ -14,19 +14,23 @@ class _$PrimitiveShortShapeSerializer @override final Iterable types = const [ PrimitiveShortShape, - _$PrimitiveShortShape + _$PrimitiveShortShape, ]; @override final String wireName = 'PrimitiveShortShape'; @override Iterable serialize( - Serializers serializers, PrimitiveShortShape object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + PrimitiveShortShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -34,8 +38,10 @@ class _$PrimitiveShortShapeSerializer @override PrimitiveShortShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new PrimitiveShortShapeBuilder(); final iterator = serialized.iterator; @@ -45,8 +51,12 @@ class _$PrimitiveShortShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,22 +71,28 @@ class _$PrimitiveShortShape extends PrimitiveShortShape { @override final TraitMap traits; - factory _$PrimitiveShortShape( - [void Function(PrimitiveShortShapeBuilder)? updates]) => - (new PrimitiveShortShapeBuilder()..update(updates))._build(); + factory _$PrimitiveShortShape([ + void Function(PrimitiveShortShapeBuilder)? updates, + ]) => (new PrimitiveShortShapeBuilder()..update(updates))._build(); _$PrimitiveShortShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveShortShape', 'shapeId'); + shapeId, + r'PrimitiveShortShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveShortShape', 'traits'); + traits, + r'PrimitiveShortShape', + 'traits', + ); } @override PrimitiveShortShape rebuild( - void Function(PrimitiveShortShapeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PrimitiveShortShapeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PrimitiveShortShapeBuilder toBuilder() => @@ -151,12 +167,20 @@ class PrimitiveShortShapeBuilder PrimitiveShortShape build() => _build(); _$PrimitiveShortShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PrimitiveShortShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'PrimitiveShortShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'PrimitiveShortShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'PrimitiveShortShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'PrimitiveShortShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/resource_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/resource_shape.g.dart index 93b691ac7d..10a409031e 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/resource_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/resource_shape.g.dart @@ -16,79 +16,105 @@ class _$ResourceShapeSerializer implements StructuredSerializer { final String wireName = 'ResourceShape'; @override - Iterable serialize(Serializers serializers, ResourceShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ResourceShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'identifiers', - serializers.serialize(object.identifiers, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(ShapeRef)])), + serializers.serialize( + object.identifiers, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(ShapeRef), + ]), + ), 'collectionOperations', - serializers.serialize(object.collectionOperations, - specifiedType: - const FullType(BuiltSet, const [const FullType(ShapeRef)])), + serializers.serialize( + object.collectionOperations, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), 'resources', - serializers.serialize(object.resources, - specifiedType: - const FullType(BuiltSet, const [const FullType(ShapeRef)])), + serializers.serialize( + object.resources, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + ), 'operations', - serializers.serialize(object.operations, - specifiedType: - const FullType(BuiltSet, const [const FullType(ShapeRef)])), + serializers.serialize( + object.operations, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + ), ]; Object? value; value = object.put; if (value != null) { result ..add('put') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } value = object.create; if (value != null) { result ..add('create') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } value = object.read; if (value != null) { result ..add('read') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } value = object.update_; if (value != null) { result ..add('update') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } value = object.delete; if (value != null) { result ..add('delete') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } value = object.list; if (value != null) { result ..add('list') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShapeRef))); + ..add( + serializers.serialize(value, specifiedType: const FullType(ShapeRef)), + ); } return result; } @override ResourceShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ResourceShapeBuilder(); final iterator = serialized.iterator; @@ -98,55 +124,110 @@ class _$ResourceShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'identifiers': - result.identifiers.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(ShapeRef)]))!); + result.identifiers.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(ShapeRef), + ]), + )!, + ); break; case 'put': - result.put.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.put.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'create': - result.create.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.create.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'read': - result.read.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.read.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'update': - result.update_.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.update_.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'delete': - result.delete.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.delete.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'list': - result.list.replace(serializers.deserialize(value, - specifiedType: const FullType(ShapeRef))! as ShapeRef); + result.list.replace( + serializers.deserialize( + value, + specifiedType: const FullType(ShapeRef), + )! + as ShapeRef, + ); break; case 'collectionOperations': - result.collectionOperations.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltSet, const [const FullType(ShapeRef)]))! - as BuiltSet); + result.collectionOperations.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + )! + as BuiltSet, + ); break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; case 'resources': - result.resources.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltSet, const [const FullType(ShapeRef)]))! - as BuiltSet); + result.resources.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + )! + as BuiltSet, + ); break; case 'operations': - result.operations.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltSet, const [const FullType(ShapeRef)]))! - as BuiltSet); + result.operations.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + )! + as BuiltSet, + ); break; } } @@ -184,30 +265,42 @@ class _$ResourceShape extends ResourceShape { factory _$ResourceShape([void Function(ResourceShapeBuilder)? updates]) => (new ResourceShapeBuilder()..update(updates))._build(); - _$ResourceShape._( - {required this.identifiers, - this.put, - this.create, - this.read, - this.update_, - this.delete, - this.list, - required this.collectionOperations, - required this.shapeId, - required this.traits, - required this.resources, - required this.operations}) - : super._() { + _$ResourceShape._({ + required this.identifiers, + this.put, + this.create, + this.read, + this.update_, + this.delete, + this.list, + required this.collectionOperations, + required this.shapeId, + required this.traits, + required this.resources, + required this.operations, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - identifiers, r'ResourceShape', 'identifiers'); + identifiers, + r'ResourceShape', + 'identifiers', + ); BuiltValueNullFieldError.checkNotNull( - collectionOperations, r'ResourceShape', 'collectionOperations'); + collectionOperations, + r'ResourceShape', + 'collectionOperations', + ); BuiltValueNullFieldError.checkNotNull(shapeId, r'ResourceShape', 'shapeId'); BuiltValueNullFieldError.checkNotNull(traits, r'ResourceShape', 'traits'); BuiltValueNullFieldError.checkNotNull( - resources, r'ResourceShape', 'resources'); + resources, + r'ResourceShape', + 'resources', + ); BuiltValueNullFieldError.checkNotNull( - operations, r'ResourceShape', 'operations'); + operations, + r'ResourceShape', + 'operations', + ); } @override @@ -311,8 +404,8 @@ class ResourceShapeBuilder SetBuilder get collectionOperations => _$this._collectionOperations ??= new SetBuilder(); set collectionOperations( - covariant SetBuilder? collectionOperations) => - _$this._collectionOperations = collectionOperations; + covariant SetBuilder? collectionOperations, + ) => _$this._collectionOperations = collectionOperations; ShapeId? _shapeId; ShapeId? get shapeId => _$this._shapeId; @@ -375,22 +468,30 @@ class ResourceShapeBuilder _$ResourceShape _build() { _$ResourceShape _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ResourceShape._( - identifiers: identifiers.build(), - put: _put?.build(), - create: _create?.build(), - read: _read?.build(), - update_: _update_?.build(), - delete: _delete?.build(), - list: _list?.build(), - collectionOperations: collectionOperations.build(), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'ResourceShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'ResourceShape', 'traits'), - resources: resources.build(), - operations: operations.build()); + identifiers: identifiers.build(), + put: _put?.build(), + create: _create?.build(), + read: _read?.build(), + update_: _update_?.build(), + delete: _delete?.build(), + list: _list?.build(), + collectionOperations: collectionOperations.build(), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'ResourceShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'ResourceShape', + 'traits', + ), + resources: resources.build(), + operations: operations.build(), + ); } catch (_) { late String _$failedField; try { @@ -417,7 +518,10 @@ class ResourceShapeBuilder operations.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ResourceShape', _$failedField, e.toString()); + r'ResourceShape', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/service_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/service_shape.g.dart index 4ed07fea60..c632ae65eb 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/service_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/service_shape.g.dart @@ -16,44 +16,65 @@ class _$ServiceShapeSerializer implements StructuredSerializer { final String wireName = 'ServiceShape'; @override - Iterable serialize(Serializers serializers, ServiceShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ServiceShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'rename', - serializers.serialize(object.rename, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(String)])), + serializers.serialize( + object.rename, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + ), 'errors', - serializers.serialize(object.errors, - specifiedType: - const FullType(BuiltSet, const [const FullType(ShapeRef)])), + serializers.serialize( + object.errors, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), 'resources', - serializers.serialize(object.resources, - specifiedType: - const FullType(BuiltSet, const [const FullType(ShapeRef)])), + serializers.serialize( + object.resources, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + ), 'operations', - serializers.serialize(object.operations, - specifiedType: - const FullType(BuiltSet, const [const FullType(ShapeRef)])), + serializers.serialize( + object.operations, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + ), ]; Object? value; value = object.version; if (value != null) { result ..add('version') - ..add(serializers.serialize(value, - specifiedType: const FullType(String))); + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); } return result; } @override ServiceShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ServiceShapeBuilder(); final iterator = serialized.iterator; @@ -63,35 +84,64 @@ class _$ServiceShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'version': - result.version = serializers.deserialize(value, - specifiedType: const FullType(String)) as String?; + result.version = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; break; case 'rename': - result.rename.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(String)]))!); + result.rename.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + )!, + ); break; case 'errors': - result.errors.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltSet, const [const FullType(ShapeRef)]))! - as BuiltSet); + result.errors.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + )! + as BuiltSet, + ); break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; case 'resources': - result.resources.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltSet, const [const FullType(ShapeRef)]))! - as BuiltSet); + result.resources.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + )! + as BuiltSet, + ); break; case 'operations': - result.operations.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltSet, const [const FullType(ShapeRef)]))! - as BuiltSet); + result.operations.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSet, const [ + const FullType(ShapeRef), + ]), + )! + as BuiltSet, + ); break; } } @@ -119,23 +169,29 @@ class _$ServiceShape extends ServiceShape { factory _$ServiceShape([void Function(ServiceShapeBuilder)? updates]) => (new ServiceShapeBuilder()..update(updates))._build(); - _$ServiceShape._( - {this.version, - required this.rename, - required this.errors, - required this.shapeId, - required this.traits, - required this.resources, - required this.operations}) - : super._() { + _$ServiceShape._({ + this.version, + required this.rename, + required this.errors, + required this.shapeId, + required this.traits, + required this.resources, + required this.operations, + }) : super._() { BuiltValueNullFieldError.checkNotNull(rename, r'ServiceShape', 'rename'); BuiltValueNullFieldError.checkNotNull(errors, r'ServiceShape', 'errors'); BuiltValueNullFieldError.checkNotNull(shapeId, r'ServiceShape', 'shapeId'); BuiltValueNullFieldError.checkNotNull(traits, r'ServiceShape', 'traits'); BuiltValueNullFieldError.checkNotNull( - resources, r'ServiceShape', 'resources'); + resources, + r'ServiceShape', + 'resources', + ); BuiltValueNullFieldError.checkNotNull( - operations, r'ServiceShape', 'operations'); + operations, + r'ServiceShape', + 'operations', + ); } @override @@ -261,17 +317,25 @@ class ServiceShapeBuilder _$ServiceShape _build() { _$ServiceShape _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ServiceShape._( - version: version, - rename: rename.build(), - errors: errors.build(), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'ServiceShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'ServiceShape', 'traits'), - resources: resources.build(), - operations: operations.build()); + version: version, + rename: rename.build(), + errors: errors.build(), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'ServiceShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'ServiceShape', + 'traits', + ), + resources: resources.build(), + operations: operations.build(), + ); } catch (_) { late String _$failedField; try { @@ -286,7 +350,10 @@ class ServiceShapeBuilder operations.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ServiceShape', _$failedField, e.toString()); + r'ServiceShape', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/set_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/set_shape.g.dart index db0a655a27..0d099e7fbc 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/set_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/set_shape.g.dart @@ -15,23 +15,33 @@ class _$SetShapeSerializer implements StructuredSerializer { final String wireName = 'SetShape'; @override - Iterable serialize(Serializers serializers, SetShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + SetShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'member', - serializers.serialize(object.member, - specifiedType: const FullType(MemberShape)), + serializers.serialize( + object.member, + specifiedType: const FullType(MemberShape), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - SetShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + SetShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new SetShapeBuilder(); final iterator = serialized.iterator; @@ -41,12 +51,21 @@ class _$SetShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'member': - result.member.replace(serializers.deserialize(value, - specifiedType: const FullType(MemberShape))! as MemberShape); + result.member.replace( + serializers.deserialize( + value, + specifiedType: const FullType(MemberShape), + )! + as MemberShape, + ); break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -66,9 +85,11 @@ class _$SetShape extends SetShape { factory _$SetShape([void Function(SetShapeBuilder)? updates]) => (new SetShapeBuilder()..update(updates))._build(); - _$SetShape._( - {required this.member, required this.shapeId, required this.traits}) - : super._() { + _$SetShape._({ + required this.member, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull(member, r'SetShape', 'member'); BuiltValueNullFieldError.checkNotNull(shapeId, r'SetShape', 'shapeId'); BuiltValueNullFieldError.checkNotNull(traits, r'SetShape', 'traits'); @@ -158,13 +179,21 @@ class SetShapeBuilder _$SetShape _build() { _$SetShape _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SetShape._( - member: member.build(), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'SetShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'SetShape', 'traits')); + member: member.build(), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'SetShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'SetShape', + 'traits', + ), + ); } catch (_) { late String _$failedField; try { @@ -172,7 +201,10 @@ class SetShapeBuilder member.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SetShape', _$failedField, e.toString()); + r'SetShape', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/shape.dart index 1292eb7053..98ae3ba3e2 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/shape.dart @@ -48,10 +48,11 @@ abstract class Shape { StringShape.id: StringShape(), TimestampShape.id: TimestampShape(), unit: StructureShape( - (b) => b - ..shapeId = unit - ..members = NamedMembersMap({}) - ..traits![unit] = const UnitTypeTrait(), + (b) => + b + ..shapeId = unit + ..members = NamedMembersMap({}) + ..traits![unit] = const UnitTypeTrait(), ), }; } @@ -71,9 +72,10 @@ class ShapeSerializer extends StructuredSerializer { if (key == 'type') { final type = ShapeType.deserialize(value as String); return serializers.deserialize( - serialized, - specifiedType: FullType(type.type), - ) as Shape; + serialized, + specifiedType: FullType(type.type), + ) + as Shape; } } throw ArgumentError('Unknown shape type'); @@ -85,10 +87,12 @@ class ShapeSerializer extends StructuredSerializer { Shape object, { FullType specifiedType = FullType.unspecified, }) { - final map = serializers.serialize( - object, - specifiedType: FullType(object.getType().type), - ) as Map; + final map = + serializers.serialize( + object, + specifiedType: FullType(object.getType().type), + ) + as Map; map['type'] = object.getType().name; map.removeWhere( (key, value) => @@ -96,12 +100,7 @@ class ShapeSerializer extends StructuredSerializer { (value is Map && value.isEmpty) || (value is List && value.isEmpty), ); - return map.entries.expand( - (entry) => [ - entry.key, - entry.value, - ], - ); + return map.entries.expand((entry) => [entry.key, entry.value]); } @override diff --git a/packages/smithy/smithy/lib/src/ast/shapes/shape_id.dart b/packages/smithy/smithy/lib/src/ast/shapes/shape_id.dart index 17a395a847..be7c7280da 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/shape_id.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/shape_id.dart @@ -8,22 +8,18 @@ import 'package:json_annotation/json_annotation.dart'; const coreNamespace = 'smithy.api'; class ShapeId with AWSEquatable, AWSSerializable { - const ShapeId({ - required this.namespace, - required this.shape, - this.member, - }); + const ShapeId({required this.namespace, required this.shape, this.member}); const ShapeId.core(this.shape, [this.member]) : namespace = coreNamespace; factory ShapeId.parse(String shapeId) => ShapeId( - namespace: shapeId.split('#').first, - shape: shapeId.substring( - shapeId.indexOf('#') + 1, - shapeId.contains(r'$') ? shapeId.indexOf(r'$') : shapeId.length, - ), - member: shapeId.contains(r'$') ? shapeId.split(r'$').last : null, - ); + namespace: shapeId.split('#').first, + shape: shapeId.substring( + shapeId.indexOf('#') + 1, + shapeId.contains(r'$') ? shapeId.indexOf(r'$') : shapeId.length, + ), + member: shapeId.contains(r'$') ? shapeId.split(r'$').last : null, + ); static const empty = ShapeId(namespace: '', shape: ''); static final serializer = ShapeIdSerializer(); @@ -43,9 +39,10 @@ class ShapeId with AWSEquatable, AWSSerializable { return ShapeId( namespace: namespace ?? this.namespace, shape: shape ?? this.shape, - member: member is String - ? member - : member == const Object() + member: + member is String + ? member + : member == const Object() ? this.member : null, ); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/shape_map.dart b/packages/smithy/smithy/lib/src/ast/shapes/shape_map.dart index 978a4b0623..5bf7fb1500 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/shape_map.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/shape_map.dart @@ -32,18 +32,22 @@ class ShapeMapSerializer extends StructuredSerializer { final applyTraits = ShapeMap({}); final iterator = serialized.iterator; while (iterator.moveNext()) { - final shapeId = serializers.deserializeWith( - ShapeId.serializer, - iterator.current as String, - ) as ShapeId; + final shapeId = + serializers.deserializeWith( + ShapeId.serializer, + iterator.current as String, + ) + as ShapeId; iterator.moveNext(); final value = (iterator.current as Map).cast(); final type = value['type'] as String; final shape = serializers .deserializeWith( Shape.serializer, - StandardJsonPlugin() - .beforeDeserialize(value, const FullType(Shape)), + StandardJsonPlugin().beforeDeserialize( + value, + const FullType(Shape), + ), )! .rebuild((b) => b.shapeId = shapeId); if (ShapeType.deserialize(type) == ShapeType.apply) { @@ -54,9 +58,10 @@ class ShapeMapSerializer extends StructuredSerializer { if (b is NamedMembersShapeBuilder) { b.members?.updateAll( (name, shape) => shape.rebuild( - (s) => s - ..shapeId = b.shapeId!.replace(member: name) - ..memberName = name, + (s) => + s + ..shapeId = b.shapeId!.replace(member: name) + ..memberName = name, ), ); } else if (b is CollectionShapeBuilder) { @@ -94,10 +99,7 @@ class ShapeMapSerializer extends StructuredSerializer { for (final shape in shapeMap.values.whereType()) { final inputShape = shapeMap[shape.input?.target]; if (inputShape != null) { - inputShape.traits.putIfAbsent( - InputTrait.id, - () => const InputTrait(), - ); + inputShape.traits.putIfAbsent(InputTrait.id, () => const InputTrait()); } final outputShape = shapeMap[shape.output?.target]; if (outputShape != null) { @@ -121,10 +123,11 @@ class ShapeMapSerializer extends StructuredSerializer { for (final shape in shapeMap.values.whereType()) { if (shape.hasTrait()) { final asSet = SetShape( - (b) => b - ..shapeId = shape.shapeId - ..member.replace(shape.member) - ..traits = shape.traits, + (b) => + b + ..shapeId = shape.shapeId + ..member.replace(shape.member) + ..traits = shape.traits, ); shapeMap[shape.shapeId] = asSet; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/shape_ref.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/shape_ref.g.dart index df5749d9da..09fee8590d 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/shape_ref.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/shape_ref.g.dart @@ -15,23 +15,33 @@ class _$ShapeRefSerializer implements StructuredSerializer { final String wireName = 'ShapeRef'; @override - Iterable serialize(Serializers serializers, ShapeRef object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ShapeRef object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), 'target', - serializers.serialize(object.target, - specifiedType: const FullType(ShapeId)), + serializers.serialize( + object.target, + specifiedType: const FullType(ShapeId), + ), ]; return result; } @override - ShapeRef deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + ShapeRef deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ShapeRefBuilder(); final iterator = serialized.iterator; @@ -41,12 +51,20 @@ class _$ShapeRefSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; case 'target': - result.target = serializers.deserialize(value, - specifiedType: const FullType(ShapeId))! as ShapeId; + result.target = + serializers.deserialize( + value, + specifiedType: const FullType(ShapeId), + )! + as ShapeId; break; } } @@ -142,12 +160,20 @@ class ShapeRefBuilder implements Builder { ShapeRef build() => _build(); _$ShapeRef _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ShapeRef._( - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'ShapeRef', 'traits'), - target: BuiltValueNullFieldError.checkNotNull( - target, r'ShapeRef', 'target')); + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'ShapeRef', + 'traits', + ), + target: BuiltValueNullFieldError.checkNotNull( + target, + r'ShapeRef', + 'target', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/shape_type.dart b/packages/smithy/smithy/lib/src/ast/shapes/shape_type.dart index e9e2cf6a24..344a2f5eea 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/shape_type.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/shape_type.dart @@ -9,12 +9,7 @@ import 'package:smithy/src/ast/serializers.dart'; part 'shape_type.g.dart'; -enum Category { - simple, - aggregate, - service, - apply, -} +enum Category { simple, aggregate, service, apply } class ShapeType extends EnumClass { const ShapeType._(super.name); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/shape_type.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/shape_type.g.dart index bd87e950ae..b94f37f9e6 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/shape_type.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/shape_type.g.dart @@ -91,32 +91,32 @@ ShapeType _$shapeTypeValueOf(String name) { final BuiltSet _$shapeTypeValues = new BuiltSet(const [ - _$apply, - _$blob, - _$boolean, - _$string, - _$enum, - _$timestamp, - _$byte, - _$short, - _$integer, - _$intEnum, - _$long, - _$float, - _$document, - _$double, - _$bigDecimal, - _$bigInteger, - _$list, - _$set, - _$map, - _$structure, - _$union, - _$member, - _$service, - _$resource, - _$operation, -]); + _$apply, + _$blob, + _$boolean, + _$string, + _$enum, + _$timestamp, + _$byte, + _$short, + _$integer, + _$intEnum, + _$long, + _$float, + _$document, + _$double, + _$bigDecimal, + _$bigInteger, + _$list, + _$set, + _$map, + _$structure, + _$union, + _$member, + _$service, + _$resource, + _$operation, + ]); Serializer _$shapeTypeSerializer = new _$ShapeTypeSerializer(); @@ -134,15 +134,20 @@ class _$ShapeTypeSerializer implements PrimitiveSerializer { final String wireName = 'ShapeType'; @override - Object serialize(Serializers serializers, ShapeType object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; + Object serialize( + Serializers serializers, + ShapeType object, { + FullType specifiedType = FullType.unspecified, + }) => _toWire[object.name] ?? object.name; @override - ShapeType deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - ShapeType.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); + ShapeType deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => ShapeType.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : ''), + ); } // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/smithy/smithy/lib/src/ast/shapes/short_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/short_shape.g.dart index 31420b4f9d..bfce0f326d 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/short_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/short_shape.g.dart @@ -15,20 +15,28 @@ class _$ShortShapeSerializer implements StructuredSerializer { final String wireName = 'ShortShape'; @override - Iterable serialize(Serializers serializers, ShortShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + ShortShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - ShortShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + ShortShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new ShortShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$ShortShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class ShortShapeBuilder ShortShape build() => _build(); _$ShortShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ShortShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'ShortShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'ShortShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'ShortShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'ShortShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/string_shape.dart b/packages/smithy/smithy/lib/src/ast/shapes/string_shape.dart index 72405457de..f26f04ef0b 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/string_shape.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/string_shape.dart @@ -38,16 +38,17 @@ abstract class StringShape final docs = definition.documentation; final tags = definition.tags; b.members![memberName] = MemberShape( - (b) => b - ..target = Shape.unit - ..memberName = memberName - ..shapeId = shapeId.replace(member: memberName) - ..traits = TraitMap.fromTraits([ - if (deprecated) const DeprecatedTrait(), - if (docs != null) DocumentationTrait(docs), - if (tags.isNotEmpty) TagsTrait(tags), - EnumValueTrait(definition.value), - ]), + (b) => + b + ..target = Shape.unit + ..memberName = memberName + ..shapeId = shapeId.replace(member: memberName) + ..traits = TraitMap.fromTraits([ + if (deprecated) const DeprecatedTrait(), + if (docs != null) DocumentationTrait(docs), + if (tags.isNotEmpty) TagsTrait(tags), + EnumValueTrait(definition.value), + ]), ); } }); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/string_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/string_shape.g.dart index 28b0938dc7..5a955d2f8c 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/string_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/string_shape.g.dart @@ -15,20 +15,28 @@ class _$StringShapeSerializer implements StructuredSerializer { final String wireName = 'StringShape'; @override - Iterable serialize(Serializers serializers, StringShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + StringShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - StringShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + StringShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new StringShapeBuilder(); final iterator = serialized.iterator; @@ -38,8 +46,12 @@ class _$StringShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -136,12 +148,20 @@ class StringShapeBuilder StringShape build() => _build(); _$StringShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$StringShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'StringShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'StringShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'StringShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'StringShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/structure_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/structure_shape.g.dart index 176493172d..4f6b2f0619 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/structure_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/structure_shape.g.dart @@ -17,15 +17,22 @@ class _$StructureShapeSerializer final String wireName = 'StructureShape'; @override - Iterable serialize(Serializers serializers, StructureShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + StructureShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'members', - serializers.serialize(object.members, - specifiedType: const FullType(NamedMembersMap)), + serializers.serialize( + object.members, + specifiedType: const FullType(NamedMembersMap), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -33,8 +40,10 @@ class _$StructureShapeSerializer @override StructureShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new StructureShapeBuilder(); final iterator = serialized.iterator; @@ -44,13 +53,20 @@ class _$StructureShapeSerializer final Object? value = iterator.current; switch (key) { case 'members': - result.members = serializers.deserialize(value, - specifiedType: const FullType(NamedMembersMap))! - as NamedMembersMap; + result.members = + serializers.deserialize( + value, + specifiedType: const FullType(NamedMembersMap), + )! + as NamedMembersMap; break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -70,13 +86,21 @@ class _$StructureShape extends StructureShape { factory _$StructureShape([void Function(StructureShapeBuilder)? updates]) => (new StructureShapeBuilder()..update(updates))._build(); - _$StructureShape._( - {required this.members, required this.shapeId, required this.traits}) - : super._() { + _$StructureShape._({ + required this.members, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - members, r'StructureShape', 'members'); + members, + r'StructureShape', + 'members', + ); BuiltValueNullFieldError.checkNotNull( - shapeId, r'StructureShape', 'shapeId'); + shapeId, + r'StructureShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull(traits, r'StructureShape', 'traits'); } @@ -165,14 +189,25 @@ class StructureShapeBuilder StructureShape build() => _build(); _$StructureShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$StructureShape._( - members: BuiltValueNullFieldError.checkNotNull( - members, r'StructureShape', 'members'), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'StructureShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'StructureShape', 'traits')); + members: BuiltValueNullFieldError.checkNotNull( + members, + r'StructureShape', + 'members', + ), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'StructureShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'StructureShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/timestamp_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/timestamp_shape.g.dart index d56ce3e8d0..84ebbd311b 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/timestamp_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/timestamp_shape.g.dart @@ -17,12 +17,17 @@ class _$TimestampShapeSerializer final String wireName = 'TimestampShape'; @override - Iterable serialize(Serializers serializers, TimestampShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + TimestampShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; @@ -30,8 +35,10 @@ class _$TimestampShapeSerializer @override TimestampShape deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new TimestampShapeBuilder(); final iterator = serialized.iterator; @@ -41,8 +48,12 @@ class _$TimestampShapeSerializer final Object? value = iterator.current; switch (key) { case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -61,9 +72,12 @@ class _$TimestampShape extends TimestampShape { (new TimestampShapeBuilder()..update(updates))._build(); _$TimestampShape._({required this.shapeId, required this.traits}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'TimestampShape', 'shapeId'); + shapeId, + r'TimestampShape', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull(traits, r'TimestampShape', 'traits'); } @@ -144,12 +158,20 @@ class TimestampShapeBuilder TimestampShape build() => _build(); _$TimestampShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TimestampShape._( - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'TimestampShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'TimestampShape', 'traits')); + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'TimestampShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'TimestampShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/shapes/trait_map.dart b/packages/smithy/smithy/lib/src/ast/shapes/trait_map.dart index 7857bee8a7..005c6e4b14 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/trait_map.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/trait_map.dart @@ -46,10 +46,12 @@ class TraitMapSerializer extends StructuredSerializer { final traitMap = TraitMap({}); final iterator = serialized.iterator; while (iterator.moveNext()) { - final shapeId = serializers.deserializeWith( - ShapeId.serializer, - iterator.current as String, - ) as ShapeId; + final shapeId = + serializers.deserializeWith( + ShapeId.serializer, + iterator.current as String, + ) + as ShapeId; iterator.moveNext(); final value = iterator.current; traitMap[shapeId] = Trait.fromJson(shapeId, value); diff --git a/packages/smithy/smithy/lib/src/ast/shapes/union_shape.g.dart b/packages/smithy/smithy/lib/src/ast/shapes/union_shape.g.dart index 86ebc77f30..69a3d50cd0 100644 --- a/packages/smithy/smithy/lib/src/ast/shapes/union_shape.g.dart +++ b/packages/smithy/smithy/lib/src/ast/shapes/union_shape.g.dart @@ -15,23 +15,33 @@ class _$UnionShapeSerializer implements StructuredSerializer { final String wireName = 'UnionShape'; @override - Iterable serialize(Serializers serializers, UnionShape object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + UnionShape object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'members', - serializers.serialize(object.members, - specifiedType: const FullType(NamedMembersMap)), + serializers.serialize( + object.members, + specifiedType: const FullType(NamedMembersMap), + ), 'traits', - serializers.serialize(object.traits, - specifiedType: const FullType(TraitMap)), + serializers.serialize( + object.traits, + specifiedType: const FullType(TraitMap), + ), ]; return result; } @override - UnionShape deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + UnionShape deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new UnionShapeBuilder(); final iterator = serialized.iterator; @@ -41,13 +51,20 @@ class _$UnionShapeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'members': - result.members = serializers.deserialize(value, - specifiedType: const FullType(NamedMembersMap))! - as NamedMembersMap; + result.members = + serializers.deserialize( + value, + specifiedType: const FullType(NamedMembersMap), + )! + as NamedMembersMap; break; case 'traits': - result.traits = serializers.deserialize(value, - specifiedType: const FullType(TraitMap))! as TraitMap; + result.traits = + serializers.deserialize( + value, + specifiedType: const FullType(TraitMap), + )! + as TraitMap; break; } } @@ -67,9 +84,11 @@ class _$UnionShape extends UnionShape { factory _$UnionShape([void Function(UnionShapeBuilder)? updates]) => (new UnionShapeBuilder()..update(updates))._build(); - _$UnionShape._( - {required this.members, required this.shapeId, required this.traits}) - : super._() { + _$UnionShape._({ + required this.members, + required this.shapeId, + required this.traits, + }) : super._() { BuiltValueNullFieldError.checkNotNull(members, r'UnionShape', 'members'); BuiltValueNullFieldError.checkNotNull(shapeId, r'UnionShape', 'shapeId'); BuiltValueNullFieldError.checkNotNull(traits, r'UnionShape', 'traits'); @@ -159,14 +178,25 @@ class UnionShapeBuilder UnionShape build() => _build(); _$UnionShape _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UnionShape._( - members: BuiltValueNullFieldError.checkNotNull( - members, r'UnionShape', 'members'), - shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'UnionShape', 'shapeId'), - traits: BuiltValueNullFieldError.checkNotNull( - traits, r'UnionShape', 'traits')); + members: BuiltValueNullFieldError.checkNotNull( + members, + r'UnionShape', + 'members', + ), + shapeId: BuiltValueNullFieldError.checkNotNull( + shapeId, + r'UnionShape', + 'shapeId', + ), + traits: BuiltValueNullFieldError.checkNotNull( + traits, + r'UnionShape', + 'traits', + ), + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/ast/smithy_ast.dart b/packages/smithy/smithy/lib/src/ast/smithy_ast.dart index 78a125496a..f19abf85ed 100644 --- a/packages/smithy/smithy/lib/src/ast/smithy_ast.dart +++ b/packages/smithy/smithy/lib/src/ast/smithy_ast.dart @@ -90,12 +90,13 @@ abstract class SmithyAst implements Built { SmithyAst merge(SmithyAst other) { return SmithyAst( - (b) => b - ..version = version - ..metadata.addAll(metadata.toMap()) - ..metadata.addAll(other.metadata.toMap()) - ..shapes = ShapeMap(shapes) - ..shapes!.addAll(other.shapes), + (b) => + b + ..version = version + ..metadata.addAll(metadata.toMap()) + ..metadata.addAll(other.metadata.toMap()) + ..shapes = ShapeMap(shapes) + ..shapes!.addAll(other.shapes), ); } } diff --git a/packages/smithy/smithy/lib/src/ast/smithy_ast.g.dart b/packages/smithy/smithy/lib/src/ast/smithy_ast.g.dart index e81dc16aaf..30aa4ca30c 100644 --- a/packages/smithy/smithy/lib/src/ast/smithy_ast.g.dart +++ b/packages/smithy/smithy/lib/src/ast/smithy_ast.g.dart @@ -21,10 +21,7 @@ SmithyVersion _$SmithyVersionValueOf(String name) { } final BuiltSet _$SmithyVersionValues = - new BuiltSet(const [ - _$v1, - _$v2, -]); + new BuiltSet(const [_$v1, _$v2]); Serializer _$smithyAstSerializer = new _$SmithyAstSerializer(); @@ -35,27 +32,41 @@ class _$SmithyAstSerializer implements StructuredSerializer { final String wireName = 'SmithyAst'; @override - Iterable serialize(Serializers serializers, SmithyAst object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + SmithyAst object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'smithy', - serializers.serialize(object.version, - specifiedType: const FullType(SmithyVersion)), + serializers.serialize( + object.version, + specifiedType: const FullType(SmithyVersion), + ), 'metadata', - serializers.serialize(object.metadata, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(JsonObject)])), + serializers.serialize( + object.metadata, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(JsonObject), + ]), + ), 'shapes', - serializers.serialize(object.shapes, - specifiedType: const FullType(ShapeMap)), + serializers.serialize( + object.shapes, + specifiedType: const FullType(ShapeMap), + ), ]; return result; } @override - SmithyAst deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + SmithyAst deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new SmithyAstBuilder(); final iterator = serialized.iterator; @@ -65,19 +76,31 @@ class _$SmithyAstSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'smithy': - result.version = serializers.deserialize(value, - specifiedType: const FullType(SmithyVersion))! as SmithyVersion; + result.version = + serializers.deserialize( + value, + specifiedType: const FullType(SmithyVersion), + )! + as SmithyVersion; break; case 'metadata': - result.metadata.replace(serializers.deserialize(value, + result.metadata.replace( + serializers.deserialize( + value, specifiedType: const FullType(BuiltMap, const [ const FullType(String), - const FullType(JsonObject) - ]))!); + const FullType(JsonObject), + ]), + )!, + ); break; case 'shapes': - result.shapes = serializers.deserialize(value, - specifiedType: const FullType(ShapeMap))! as ShapeMap; + result.shapes = + serializers.deserialize( + value, + specifiedType: const FullType(ShapeMap), + )! + as ShapeMap; break; } } @@ -97,9 +120,11 @@ class _$SmithyAst extends SmithyAst { factory _$SmithyAst([void Function(SmithyAstBuilder)? updates]) => (new SmithyAstBuilder()..update(updates))._build(); - _$SmithyAst._( - {required this.version, required this.metadata, required this.shapes}) - : super._() { + _$SmithyAst._({ + required this.version, + required this.metadata, + required this.shapes, + }) : super._() { BuiltValueNullFieldError.checkNotNull(version, r'SmithyAst', 'version'); BuiltValueNullFieldError.checkNotNull(metadata, r'SmithyAst', 'metadata'); BuiltValueNullFieldError.checkNotNull(shapes, r'SmithyAst', 'shapes'); @@ -189,13 +214,21 @@ class SmithyAstBuilder implements Builder { SmithyAst._init(this); _$SmithyAst _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SmithyAst._( - version: BuiltValueNullFieldError.checkNotNull( - version, r'SmithyAst', 'version'), - metadata: metadata.build(), - shapes: BuiltValueNullFieldError.checkNotNull( - shapes, r'SmithyAst', 'shapes')); + version: BuiltValueNullFieldError.checkNotNull( + version, + r'SmithyAst', + 'version', + ), + metadata: metadata.build(), + shapes: BuiltValueNullFieldError.checkNotNull( + shapes, + r'SmithyAst', + 'shapes', + ), + ); } catch (_) { late String _$failedField; try { @@ -203,7 +236,10 @@ class SmithyAstBuilder implements Builder { metadata.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SmithyAst', _$failedField, e.toString()); + r'SmithyAst', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy/lib/src/ast/traits/annotation_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/annotation_trait.dart index c7cdb5216c..644cba397b 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/annotation_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/annotation_trait.dart @@ -5,5 +5,5 @@ import 'package:smithy/ast.dart'; abstract class AnnotationTrait extends Trait> { const AnnotationTrait(ShapeId shapeId) - : super(shapeId, const {}); + : super(shapeId, const {}); } diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.dart index 88b3410e4a..a933456934 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.dart @@ -12,11 +12,7 @@ part 'arn_reference_trait.g.dart'; class ArnReferenceTrait with AWSSerializable implements Trait { - const ArnReferenceTrait({ - this.type, - this.service, - this.resource, - }); + const ArnReferenceTrait({this.type, this.service, this.resource}); factory ArnReferenceTrait.fromJson(Object? json) => _$ArnReferenceTraitFromJson((json as Map).cast()); @@ -31,11 +27,7 @@ class ArnReferenceTrait bool get isSynthetic => false; @override - List get props => [ - type, - service, - resource, - ]; + List get props => [type, service, resource]; @override ShapeId get shapeId => id; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.g.dart index e3a64305cc..5ef89ce1c4 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_reference_trait.g.dart @@ -10,28 +10,34 @@ ArnReferenceTrait _$ArnReferenceTraitFromJson(Map json) => ArnReferenceTrait( type: json['type'] as String?, service: _$JsonConverterFromJson( - json['service'], const ShapeIdConverter().fromJson), + json['service'], + const ShapeIdConverter().fromJson, + ), resource: _$JsonConverterFromJson( - json['resource'], const ShapeIdConverter().fromJson), + json['resource'], + const ShapeIdConverter().fromJson, + ), ); Map _$ArnReferenceTraitToJson(ArnReferenceTrait instance) => { 'type': instance.type, 'service': _$JsonConverterToJson( - instance.service, const ShapeIdConverter().toJson), + instance.service, + const ShapeIdConverter().toJson, + ), 'resource': _$JsonConverterToJson( - instance.resource, const ShapeIdConverter().toJson), + instance.resource, + const ShapeIdConverter().toJson, + ), }; Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); Json? _$JsonConverterToJson( Value? value, Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); +) => value == null ? null : toJson(value); diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.dart index 02a0e74e49..b5a685fb74 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.dart @@ -39,12 +39,7 @@ class ArnTrait with AWSSerializable implements Trait { bool get isSynthetic => false; @override - List get props => [ - noRegion, - noAccount, - absolute, - template, - ]; + List get props => [noRegion, noAccount, absolute, template]; @override ShapeId get shapeId => id; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.g.dart index 5c71b1d112..ef74397990 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/arn_trait.g.dart @@ -7,15 +7,15 @@ part of 'arn_trait.dart'; // ************************************************************************** ArnTrait _$ArnTraitFromJson(Map json) => ArnTrait( - noRegion: json['noRegion'] as bool?, - noAccount: json['noAccount'] as bool?, - absolute: json['absolute'] as bool?, - template: json['template'] as String, - ); + noRegion: json['noRegion'] as bool?, + noAccount: json['noAccount'] as bool?, + absolute: json['absolute'] as bool?, + template: json['template'] as String, +); Map _$ArnTraitToJson(ArnTrait instance) => { - 'noRegion': instance.noRegion, - 'noAccount': instance.noAccount, - 'absolute': instance.absolute, - 'template': instance.template, - }; + 'noRegion': instance.noRegion, + 'noAccount': instance.noAccount, + 'absolute': instance.absolute, + 'template': instance.template, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.dart index 1ab73e034b..09c4cf1121 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.dart @@ -13,9 +13,7 @@ part 'cognito_user_pools_trait.g.dart'; class CognitoUserPoolsTrait with AWSSerializable implements Trait { - const CognitoUserPoolsTrait({ - this.providerArns = const [], - }); + const CognitoUserPoolsTrait({this.providerArns = const []}); factory CognitoUserPoolsTrait.fromJson(Object? json) => _$CognitoUserPoolsTraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.g.dart index e247ac0f4a..5b70fc1898 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/cognito_user_pools_trait.g.dart @@ -7,16 +7,15 @@ part of 'cognito_user_pools_trait.dart'; // ************************************************************************** CognitoUserPoolsTrait _$CognitoUserPoolsTraitFromJson( - Map json) => - CognitoUserPoolsTrait( - providerArns: (json['providerArns'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - ); + Map json, +) => CognitoUserPoolsTrait( + providerArns: + (json['providerArns'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], +); Map _$CognitoUserPoolsTraitToJson( - CognitoUserPoolsTrait instance) => - { - 'providerArns': instance.providerArns, - }; + CognitoUserPoolsTrait instance, +) => {'providerArns': instance.providerArns}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.dart index 909c22355c..412ddc20fb 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.dart @@ -11,9 +11,7 @@ part 'sig_v4_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class SigV4Trait with AWSSerializable implements Trait { - const SigV4Trait({ - required this.name, - }); + const SigV4Trait({required this.name}); factory SigV4Trait.fromJson(Object? json) => _$SigV4TraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.g.dart index 73f8fb42b7..d1be4ced14 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/auth/sig_v4_trait.g.dart @@ -6,11 +6,8 @@ part of 'sig_v4_trait.dart'; // JsonSerializableGenerator // ************************************************************************** -SigV4Trait _$SigV4TraitFromJson(Map json) => SigV4Trait( - name: json['name'] as String, - ); +SigV4Trait _$SigV4TraitFromJson(Map json) => + SigV4Trait(name: json['name'] as String); Map _$SigV4TraitToJson(SigV4Trait instance) => - { - 'name': instance.name, - }; + {'name': instance.name}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.dart index d1dec06c3a..ec79fb4218 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.dart @@ -13,17 +13,17 @@ part 'client_discovered_endpoint_trait.g.dart'; class ClientDiscoveredEndpointTrait with AWSSerializable implements Trait { - const ClientDiscoveredEndpointTrait({ - required this.required, - }); + const ClientDiscoveredEndpointTrait({required this.required}); factory ClientDiscoveredEndpointTrait.fromJson(Object? json) => _$ClientDiscoveredEndpointTraitFromJson( (json as Map).cast(), ); - static const id = - ShapeId(namespace: 'aws.api', shape: 'clientDiscoveredEndpoint'); + static const id = ShapeId( + namespace: 'aws.api', + shape: 'clientDiscoveredEndpoint', + ); final bool required; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.g.dart index 3221a1af19..789195b06f 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_discovered_endpoint_trait.g.dart @@ -7,13 +7,9 @@ part of 'client_discovered_endpoint_trait.dart'; // ************************************************************************** ClientDiscoveredEndpointTrait _$ClientDiscoveredEndpointTraitFromJson( - Map json) => - ClientDiscoveredEndpointTrait( - required: json['required'] as bool, - ); + Map json, +) => ClientDiscoveredEndpointTrait(required: json['required'] as bool); Map _$ClientDiscoveredEndpointTraitToJson( - ClientDiscoveredEndpointTrait instance) => - { - 'required': instance.required, - }; + ClientDiscoveredEndpointTrait instance, +) => {'required': instance.required}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_id_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_id_trait.dart index 1be8b81392..95d47d1281 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_id_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_id_trait.dart @@ -8,6 +8,8 @@ class ClientEndpointDiscoveryIdTrait extends AnnotationTrait { const ClientEndpointDiscoveryIdTrait.fromJson(Object? json) : super(id); - static const id = - ShapeId(namespace: 'aws.api', shape: 'clientEndpointDiscoveryId'); + static const id = ShapeId( + namespace: 'aws.api', + shape: 'clientEndpointDiscoveryId', + ); } diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.dart index c47550120d..98b1014910 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.dart @@ -12,18 +12,17 @@ part 'client_endpoint_discovery_trait.g.dart'; class ClientEndpointDiscoveryTrait with AWSSerializable implements Trait { - const ClientEndpointDiscoveryTrait({ - required this.operation, - this.error, - }); + const ClientEndpointDiscoveryTrait({required this.operation, this.error}); factory ClientEndpointDiscoveryTrait.fromJson(Object? json) => _$ClientEndpointDiscoveryTraitFromJson( (json as Map).cast(), ); - static const id = - ShapeId(namespace: 'aws.api', shape: 'clientEndpointDiscovery'); + static const id = ShapeId( + namespace: 'aws.api', + shape: 'clientEndpointDiscovery', + ); final ShapeId operation; final ShapeId? error; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.g.dart index 0cfafdf6bd..1393ed6425 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/client_endpoint_discovery/client_endpoint_discovery_trait.g.dart @@ -7,29 +7,31 @@ part of 'client_endpoint_discovery_trait.dart'; // ************************************************************************** ClientEndpointDiscoveryTrait _$ClientEndpointDiscoveryTraitFromJson( - Map json) => - ClientEndpointDiscoveryTrait( - operation: const ShapeIdConverter().fromJson(json['operation'] as String), - error: _$JsonConverterFromJson( - json['error'], const ShapeIdConverter().fromJson), - ); + Map json, +) => ClientEndpointDiscoveryTrait( + operation: const ShapeIdConverter().fromJson(json['operation'] as String), + error: _$JsonConverterFromJson( + json['error'], + const ShapeIdConverter().fromJson, + ), +); Map _$ClientEndpointDiscoveryTraitToJson( - ClientEndpointDiscoveryTrait instance) => - { - 'operation': const ShapeIdConverter().toJson(instance.operation), - 'error': _$JsonConverterToJson( - instance.error, const ShapeIdConverter().toJson), - }; + ClientEndpointDiscoveryTrait instance, +) => { + 'operation': const ShapeIdConverter().toJson(instance.operation), + 'error': _$JsonConverterToJson( + instance.error, + const ShapeIdConverter().toJson, + ), +}; Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); Json? _$JsonConverterToJson( Value? value, Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); +) => value == null ? null : toJson(value); diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/customizations/s3_unwrapped_xml_output_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/customizations/s3_unwrapped_xml_output_trait.dart index 6eee4f8eb0..543228a622 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/customizations/s3_unwrapped_xml_output_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/customizations/s3_unwrapped_xml_output_trait.dart @@ -8,6 +8,8 @@ class S3UnwrappedXmlOutputTrait extends AnnotationTrait { const S3UnwrappedXmlOutputTrait.fromJson(Object? json) : super(id); - static const id = - ShapeId(namespace: 'aws.customizations', shape: 's3UnwrappedXmlOutput'); + static const id = ShapeId( + namespace: 'aws.customizations', + shape: 's3UnwrappedXmlOutput', + ); } diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.dart index 0b30ef980e..8a3e740ac8 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.dart @@ -51,11 +51,11 @@ class HttpChecksumTrait @override List get props => [ - requestChecksumRequired, - requestAlgorithmMember, - requestValidationModeMember, - responseAlgorithms, - ]; + requestChecksumRequired, + requestAlgorithmMember, + requestValidationModeMember, + responseAlgorithms, + ]; @override ShapeId get shapeId => id; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.g.dart index 1c2af3414a..9b0616763c 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/http_checksum_trait.g.dart @@ -12,7 +12,8 @@ HttpChecksumTrait _$HttpChecksumTraitFromJson(Map json) => requestAlgorithmMember: json['requestAlgorithmMember'] as String?, requestValidationModeMember: json['requestValidationModeMember'] as String?, - responseAlgorithms: (json['responseAlgorithms'] as List?) + responseAlgorithms: + (json['responseAlgorithms'] as List?) ?.map((e) => $enumDecode(_$ChecksumAlgorithmEnumMap, e)) .toSet() ?? const {}, @@ -23,9 +24,10 @@ Map _$HttpChecksumTraitToJson(HttpChecksumTrait instance) => 'requestChecksumRequired': instance.requestChecksumRequired, 'requestAlgorithmMember': instance.requestAlgorithmMember, 'requestValidationModeMember': instance.requestValidationModeMember, - 'responseAlgorithms': instance.responseAlgorithms - .map((e) => _$ChecksumAlgorithmEnumMap[e]!) - .toList(), + 'responseAlgorithms': + instance.responseAlgorithms + .map((e) => _$ChecksumAlgorithmEnumMap[e]!) + .toList(), }; const _$ChecksumAlgorithmEnumMap = { diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.dart index 71a39aa563..d6f77e5bf8 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.dart @@ -13,11 +13,11 @@ class AwsJson1_0Trait extends AWSProtocolTrait { List http = AWSProtocolTrait.defaultHttpProtocols, List? eventStreamHttp, }) : super( - id, - http: http, - eventStreamHttp: eventStreamHttp, - timestampFormat: TimestampFormat.epochSeconds, - ); + id, + http: http, + eventStreamHttp: eventStreamHttp, + timestampFormat: TimestampFormat.epochSeconds, + ); factory AwsJson1_0Trait.fromJson(Object? json) => _$AwsJson1_0TraitFromJson((json as Map).cast()); @@ -29,12 +29,12 @@ class AwsJson1_0Trait extends AWSProtocolTrait { @override List get traits => const [ - CorsTrait.id, - EndpointTrait.id, - HostLabelTrait.id, - TimestampFormatTrait.id, - AwsQueryCompatibleTrait.id, - ]; + CorsTrait.id, + EndpointTrait.id, + HostLabelTrait.id, + TimestampFormatTrait.id, + AwsQueryCompatibleTrait.id, + ]; } // ignore_for_file: camel_case_types diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.g.dart index eb750b4527..9bc6a16de7 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_0_trait.g.dart @@ -8,22 +8,24 @@ part of 'aws_json_1_0_trait.dart'; AwsJson1_0Trait _$AwsJson1_0TraitFromJson(Map json) => AwsJson1_0Trait( - http: (json['http'] as List?) + http: + (json['http'] as List?) ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) .toList() ?? AWSProtocolTrait.defaultHttpProtocols, - eventStreamHttp: (json['eventStreamHttp'] as List?) - ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) - .toList(), + eventStreamHttp: + (json['eventStreamHttp'] as List?) + ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) + .toList(), ); -Map _$AwsJson1_0TraitToJson(AwsJson1_0Trait instance) => - { - 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), - 'eventStreamHttp': instance.eventStreamHttp - .map((e) => _$AlpnProtocolEnumMap[e]!) - .toList(), - }; +Map _$AwsJson1_0TraitToJson( + AwsJson1_0Trait instance, +) => { + 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), + 'eventStreamHttp': + instance.eventStreamHttp.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), +}; const _$AlpnProtocolEnumMap = { AlpnProtocol.http1_1: 'http/1.1', diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.dart index 31bd9c12fe..8c92ac1bcd 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.dart @@ -13,11 +13,11 @@ class AwsJson1_1Trait extends AWSProtocolTrait { List http = AWSProtocolTrait.defaultHttpProtocols, List? eventStreamHttp, }) : super( - id, - http: http, - eventStreamHttp: eventStreamHttp, - timestampFormat: TimestampFormat.epochSeconds, - ); + id, + http: http, + eventStreamHttp: eventStreamHttp, + timestampFormat: TimestampFormat.epochSeconds, + ); factory AwsJson1_1Trait.fromJson(Object? json) => _$AwsJson1_1TraitFromJson((json as Map).cast()); @@ -29,12 +29,12 @@ class AwsJson1_1Trait extends AWSProtocolTrait { @override List get traits => const [ - CorsTrait.id, - EndpointTrait.id, - HostLabelTrait.id, - JsonNameTrait.id, - TimestampFormatTrait.id, - ]; + CorsTrait.id, + EndpointTrait.id, + HostLabelTrait.id, + JsonNameTrait.id, + TimestampFormatTrait.id, + ]; } // ignore_for_file: camel_case_types diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.g.dart index ae7e4092fe..773bd4e777 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_json_1_1_trait.g.dart @@ -8,22 +8,24 @@ part of 'aws_json_1_1_trait.dart'; AwsJson1_1Trait _$AwsJson1_1TraitFromJson(Map json) => AwsJson1_1Trait( - http: (json['http'] as List?) + http: + (json['http'] as List?) ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) .toList() ?? AWSProtocolTrait.defaultHttpProtocols, - eventStreamHttp: (json['eventStreamHttp'] as List?) - ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) - .toList(), + eventStreamHttp: + (json['eventStreamHttp'] as List?) + ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) + .toList(), ); -Map _$AwsJson1_1TraitToJson(AwsJson1_1Trait instance) => - { - 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), - 'eventStreamHttp': instance.eventStreamHttp - .map((e) => _$AlpnProtocolEnumMap[e]!) - .toList(), - }; +Map _$AwsJson1_1TraitToJson( + AwsJson1_1Trait instance, +) => { + 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), + 'eventStreamHttp': + instance.eventStreamHttp.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), +}; const _$AlpnProtocolEnumMap = { AlpnProtocol.http1_1: 'http/1.1', diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_protocol_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_protocol_trait.dart index 82a026b9e0..490ddfa406 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_protocol_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_protocol_trait.dart @@ -12,8 +12,8 @@ abstract class AWSProtocolTrait implements ProtocolDefinitionTrait { List? eventStreamHttp, required this.timestampFormat, this.noInlineDocumentSupport = false, - }) : _http = http, - _eventStreamHttp = eventStreamHttp; + }) : _http = http, + _eventStreamHttp = eventStreamHttp; // A client SHOULD assume that a service supports http/1.1 when no http or // eventStreamHttp values are provided. @@ -36,11 +36,7 @@ abstract class AWSProtocolTrait implements ProtocolDefinitionTrait { bool get isSynthetic => false; @override - List get props => [ - shapeId, - http, - eventStreamHttp, - ]; + List get props => [shapeId, http, eventStreamHttp]; @override Map toJson(); diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_query_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_query_trait.dart index 6e96d84c14..7f761c960d 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_query_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/aws_query_trait.dart @@ -8,11 +8,7 @@ part 'aws_query_trait.g.dart'; @JsonSerializable() class AwsQueryTrait extends AWSProtocolTrait { - const AwsQueryTrait() - : super( - id, - timestampFormat: TimestampFormat.dateTime, - ); + const AwsQueryTrait() : super(id, timestampFormat: TimestampFormat.dateTime); factory AwsQueryTrait.fromJson(Object? json) => _$AwsQueryTraitFromJson((json as Map).cast()); @@ -24,17 +20,17 @@ class AwsQueryTrait extends AWSProtocolTrait { @override List get traits => const [ - CorsTrait.id, - EndpointTrait.id, - HostLabelTrait.id, - XmlAttributeTrait.id, - XmlFlattenedTrait.id, - XmlNameTrait.id, - XmlNamespaceTrait.id, - TimestampFormatTrait.id, - AwsQueryErrorTrait.id, - AwsQueryCompatibleTrait.id, - ]; + CorsTrait.id, + EndpointTrait.id, + HostLabelTrait.id, + XmlAttributeTrait.id, + XmlFlattenedTrait.id, + XmlNameTrait.id, + XmlNamespaceTrait.id, + TimestampFormatTrait.id, + AwsQueryErrorTrait.id, + AwsQueryCompatibleTrait.id, + ]; } @JsonSerializable() diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/ec2_query_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/ec2_query_trait.dart index 120cef412b..2bd0d677d3 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/ec2_query_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/ec2_query_trait.dart @@ -8,11 +8,7 @@ part 'ec2_query_trait.g.dart'; @JsonSerializable() class Ec2QueryTrait extends AWSProtocolTrait { - const Ec2QueryTrait() - : super( - id, - timestampFormat: TimestampFormat.dateTime, - ); + const Ec2QueryTrait() : super(id, timestampFormat: TimestampFormat.dateTime); factory Ec2QueryTrait.fromJson(Object? json) => _$Ec2QueryTraitFromJson((json as Map).cast()); @@ -24,16 +20,16 @@ class Ec2QueryTrait extends AWSProtocolTrait { @override List get traits => const [ - CorsTrait.id, - EndpointTrait.id, - HostLabelTrait.id, - Ec2QueryNameTrait.id, - XmlAttributeTrait.id, - XmlFlattenedTrait.id, - XmlNameTrait.id, - XmlNamespaceTrait.id, - TimestampFormatTrait.id, - ]; + CorsTrait.id, + EndpointTrait.id, + HostLabelTrait.id, + Ec2QueryNameTrait.id, + XmlAttributeTrait.id, + XmlFlattenedTrait.id, + XmlNameTrait.id, + XmlNamespaceTrait.id, + TimestampFormatTrait.id, + ]; } /// Provides a custom name to use when serializing a structure member diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.dart index 2d6a01f536..77e87c923c 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.dart @@ -18,11 +18,11 @@ class RestJson1Trait extends AWSProtocolTrait { List http = AWSProtocolTrait.defaultHttpProtocols, List? eventStreamHttp, }) : super( - id, - http: http, - eventStreamHttp: eventStreamHttp, - timestampFormat: TimestampFormat.epochSeconds, - ); + id, + http: http, + eventStreamHttp: eventStreamHttp, + timestampFormat: TimestampFormat.epochSeconds, + ); factory RestJson1Trait.fromJson(Object? json) => _$RestJson1TraitFromJson((json as Map).cast()); @@ -34,19 +34,19 @@ class RestJson1Trait extends AWSProtocolTrait { @override List get traits => const [ - CorsTrait.id, - EndpointTrait.id, - HostLabelTrait.id, - HttpTrait.id, - HttpErrorTrait.id, - HttpHeaderTrait.id, - HttpLabelTrait.id, - HttpPayloadTrait.id, - HttpPrefixHeadersTrait.id, - HttpQueryTrait.id, - HttpQueryParamsTrait.id, - JsonNameTrait.id, - TimestampFormatTrait.id, - MediaTypeTrait.id, - ]; + CorsTrait.id, + EndpointTrait.id, + HostLabelTrait.id, + HttpTrait.id, + HttpErrorTrait.id, + HttpHeaderTrait.id, + HttpLabelTrait.id, + HttpPayloadTrait.id, + HttpPrefixHeadersTrait.id, + HttpQueryTrait.id, + HttpQueryParamsTrait.id, + JsonNameTrait.id, + TimestampFormatTrait.id, + MediaTypeTrait.id, + ]; } diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.g.dart index ad73f63796..c57ef5a969 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_json_1_trait.g.dart @@ -8,22 +8,24 @@ part of 'rest_json_1_trait.dart'; RestJson1Trait _$RestJson1TraitFromJson(Map json) => RestJson1Trait( - http: (json['http'] as List?) + http: + (json['http'] as List?) ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) .toList() ?? AWSProtocolTrait.defaultHttpProtocols, - eventStreamHttp: (json['eventStreamHttp'] as List?) - ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) - .toList(), + eventStreamHttp: + (json['eventStreamHttp'] as List?) + ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) + .toList(), ); -Map _$RestJson1TraitToJson(RestJson1Trait instance) => - { - 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), - 'eventStreamHttp': instance.eventStreamHttp - .map((e) => _$AlpnProtocolEnumMap[e]!) - .toList(), - }; +Map _$RestJson1TraitToJson( + RestJson1Trait instance, +) => { + 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), + 'eventStreamHttp': + instance.eventStreamHttp.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), +}; const _$AlpnProtocolEnumMap = { AlpnProtocol.http1_1: 'http/1.1', diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.dart index 982d27da27..634765fb34 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.dart @@ -15,12 +15,12 @@ class RestXmlTrait extends AWSProtocolTrait { List http = AWSProtocolTrait.defaultHttpProtocols, List? eventStreamHttp, }) : super( - id, - http: http, - eventStreamHttp: eventStreamHttp, - timestampFormat: TimestampFormat.dateTime, - noInlineDocumentSupport: true, - ); + id, + http: http, + eventStreamHttp: eventStreamHttp, + timestampFormat: TimestampFormat.dateTime, + noInlineDocumentSupport: true, + ); factory RestXmlTrait.fromJson(Object? json) => _$RestXmlTraitFromJson((json as Map).cast()); @@ -34,22 +34,22 @@ class RestXmlTrait extends AWSProtocolTrait { @override List get traits => const [ - CorsTrait.id, - EndpointTrait.id, - HostLabelTrait.id, - HttpTrait.id, - HttpErrorTrait.id, - HttpHeaderTrait.id, - HttpLabelTrait.id, - HttpPayloadTrait.id, - HttpPrefixHeadersTrait.id, - HttpQueryTrait.id, - HttpQueryParamsTrait.id, - XmlAttributeTrait.id, - XmlFlattenedTrait.id, - XmlNameTrait.id, - XmlNamespaceTrait.id, - TimestampFormatTrait.id, - MediaTypeTrait.id, - ]; + CorsTrait.id, + EndpointTrait.id, + HostLabelTrait.id, + HttpTrait.id, + HttpErrorTrait.id, + HttpHeaderTrait.id, + HttpLabelTrait.id, + HttpPayloadTrait.id, + HttpPrefixHeadersTrait.id, + HttpQueryTrait.id, + HttpQueryParamsTrait.id, + XmlAttributeTrait.id, + XmlFlattenedTrait.id, + XmlNameTrait.id, + XmlNamespaceTrait.id, + TimestampFormatTrait.id, + MediaTypeTrait.id, + ]; } diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.g.dart index 0ad986f228..d2651c7b9d 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/protocols/rest_xml_trait.g.dart @@ -7,24 +7,26 @@ part of 'rest_xml_trait.dart'; // ************************************************************************** RestXmlTrait _$RestXmlTraitFromJson(Map json) => RestXmlTrait( - noErrorWrapping: json['noErrorWrapping'] as bool? ?? false, - http: (json['http'] as List?) - ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) - .toList() ?? - AWSProtocolTrait.defaultHttpProtocols, - eventStreamHttp: (json['eventStreamHttp'] as List?) + noErrorWrapping: json['noErrorWrapping'] as bool? ?? false, + http: + (json['http'] as List?) + ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) + .toList() ?? + AWSProtocolTrait.defaultHttpProtocols, + eventStreamHttp: + (json['eventStreamHttp'] as List?) ?.map((e) => $enumDecode(_$AlpnProtocolEnumMap, e)) .toList(), - ); +); -Map _$RestXmlTraitToJson(RestXmlTrait instance) => - { - 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), - 'eventStreamHttp': instance.eventStreamHttp - .map((e) => _$AlpnProtocolEnumMap[e]!) - .toList(), - 'noErrorWrapping': instance.noErrorWrapping, - }; +Map _$RestXmlTraitToJson( + RestXmlTrait instance, +) => { + 'http': instance.http.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), + 'eventStreamHttp': + instance.eventStreamHttp.map((e) => _$AlpnProtocolEnumMap[e]!).toList(), + 'noErrorWrapping': instance.noErrorWrapping, +}; const _$AlpnProtocolEnumMap = { AlpnProtocol.http1_1: 'http/1.1', diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.dart index d77b8cc338..69f5223df8 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.dart @@ -76,12 +76,12 @@ class ServiceTrait with AWSSerializable implements Trait { @override List get props => [ - cloudFormationName, - arnNamespace, - sdkId, - cloudTrailEventSource, - endpointPrefix, - ]; + cloudFormationName, + arnNamespace, + sdkId, + cloudTrailEventSource, + endpointPrefix, + ]; @override ShapeId get shapeId => id; diff --git a/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.g.dart index c1ecb55b70..b43f9b683a 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/aws/service_trait.g.dart @@ -7,12 +7,12 @@ part of 'service_trait.dart'; // ************************************************************************** ServiceTrait _$ServiceTraitFromJson(Map json) => ServiceTrait( - sdkId: json['sdkId'] as String, - cloudFormationName: json['cloudFormationName'] as String?, - arnNamespace: json['arnNamespace'] as String?, - cloudTrailEventSource: json['cloudTrailEventSource'] as String?, - endpointPrefix: json['endpointPrefix'] as String?, - ); + sdkId: json['sdkId'] as String, + cloudFormationName: json['cloudFormationName'] as String?, + arnNamespace: json['arnNamespace'] as String?, + cloudTrailEventSource: json['cloudTrailEventSource'] as String?, + endpointPrefix: json['endpointPrefix'] as String?, +); Map _$ServiceTraitToJson(ServiceTrait instance) => { @@ -24,21 +24,21 @@ Map _$ServiceTraitToJson(ServiceTrait instance) => }; ResolvedServiceTrait _$ResolvedServiceTraitFromJson( - Map json) => - ResolvedServiceTrait( - cloudFormationName: json['cloudFormationName'] as String, - arnNamespace: json['arnNamespace'] as String, - sdkId: json['sdkId'] as String, - cloudTrailEventSource: json['cloudTrailEventSource'] as String, - endpointPrefix: json['endpointPrefix'] as String, - ); + Map json, +) => ResolvedServiceTrait( + cloudFormationName: json['cloudFormationName'] as String, + arnNamespace: json['arnNamespace'] as String, + sdkId: json['sdkId'] as String, + cloudTrailEventSource: json['cloudTrailEventSource'] as String, + endpointPrefix: json['endpointPrefix'] as String, +); Map _$ResolvedServiceTraitToJson( - ResolvedServiceTrait instance) => - { - 'sdkId': instance.sdkId, - 'cloudFormationName': instance.cloudFormationName, - 'arnNamespace': instance.arnNamespace, - 'cloudTrailEventSource': instance.cloudTrailEventSource, - 'endpointPrefix': instance.endpointPrefix, - }; + ResolvedServiceTrait instance, +) => { + 'sdkId': instance.sdkId, + 'cloudFormationName': instance.cloudFormationName, + 'arnNamespace': instance.arnNamespace, + 'cloudTrailEventSource': instance.cloudTrailEventSource, + 'endpointPrefix': instance.endpointPrefix, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/auth_definition_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/auth_definition_trait.g.dart index 4468711af7..0b6e74819b 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/auth_definition_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/auth_definition_trait.g.dart @@ -15,7 +15,7 @@ AuthDefinitionTrait _$AuthDefinitionTraitFromJson(Map json) => ); Map _$AuthDefinitionTraitToJson( - AuthDefinitionTrait instance) => - { - 'traits': instance.traits.map(const ShapeIdConverter().toJson).toList(), - }; + AuthDefinitionTrait instance, +) => { + 'traits': instance.traits.map(const ShapeIdConverter().toJson).toList(), +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/auth_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/auth_trait.dart index fd8fe7a5ad..20d7bba34c 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/auth_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/auth_trait.dart @@ -7,7 +7,7 @@ class AuthTrait extends Trait> { const AuthTrait(List values) : super(id, values); AuthTrait.fromJson(Object? json) - : this((json as List).cast().map(ShapeId.parse).toList()); + : this((json as List).cast().map(ShapeId.parse).toList()); static const id = ShapeId.core('auth'); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.dart index ce7747f66d..ec8e1763ff 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.dart @@ -34,11 +34,11 @@ class CorsTrait with AWSSerializable implements Trait { @override List get props => [ - origin, - maxAge, - additionalAllowedHeaders, - additionalExposedHeaders, - ]; + origin, + maxAge, + additionalAllowedHeaders, + additionalExposedHeaders, + ]; @override ShapeId get shapeId => id; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.g.dart index 5cb73d5998..18fc65adc3 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/cors_trait.g.dart @@ -7,23 +7,23 @@ part of 'cors_trait.dart'; // ************************************************************************** CorsTrait _$CorsTraitFromJson(Map json) => CorsTrait( - origin: json['origin'] as String? ?? CorsTrait.defaultOrigin, - maxAge: (json['maxAge'] as num?)?.toInt() ?? CorsTrait.defaultMaxAge, - additionalAllowedHeaders: - (json['additionalAllowedHeaders'] as List?) - ?.map((e) => e as String) - .toSet() ?? - const {}, - additionalExposedHeaders: - (json['additionalExposedHeaders'] as List?) - ?.map((e) => e as String) - .toSet() ?? - const {}, - ); + origin: json['origin'] as String? ?? CorsTrait.defaultOrigin, + maxAge: (json['maxAge'] as num?)?.toInt() ?? CorsTrait.defaultMaxAge, + additionalAllowedHeaders: + (json['additionalAllowedHeaders'] as List?) + ?.map((e) => e as String) + .toSet() ?? + const {}, + additionalExposedHeaders: + (json['additionalExposedHeaders'] as List?) + ?.map((e) => e as String) + .toSet() ?? + const {}, +); Map _$CorsTraitToJson(CorsTrait instance) => { - 'origin': instance.origin, - 'maxAge': instance.maxAge, - 'additionalAllowedHeaders': instance.additionalAllowedHeaders.toList(), - 'additionalExposedHeaders': instance.additionalExposedHeaders.toList(), - }; + 'origin': instance.origin, + 'maxAge': instance.maxAge, + 'additionalAllowedHeaders': instance.additionalAllowedHeaders.toList(), + 'additionalExposedHeaders': instance.additionalExposedHeaders.toList(), +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.dart index 6f5d400877..ee6fdf5ed2 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.dart @@ -10,10 +10,7 @@ part 'deprecated_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class DeprecatedTrait with AWSSerializable implements Trait { - const DeprecatedTrait({ - this.since, - this.message, - }); + const DeprecatedTrait({this.since, this.message}); factory DeprecatedTrait.fromJson(Object? json) => _$DeprecatedTraitFromJson((json as Map).cast()); @@ -27,10 +24,7 @@ class DeprecatedTrait with AWSSerializable implements Trait { bool get isSynthetic => false; @override - List get props => [ - since, - message, - ]; + List get props => [since, message]; @override ShapeId get shapeId => id; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.g.dart index 45c9a79620..7e8448f6d8 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/deprecated_trait.g.dart @@ -13,7 +13,4 @@ DeprecatedTrait _$DeprecatedTraitFromJson(Map json) => ); Map _$DeprecatedTraitToJson(DeprecatedTrait instance) => - { - 'since': instance.since, - 'message': instance.message, - }; + {'since': instance.since, 'message': instance.message}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/endpoint_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/endpoint_trait.g.dart index 4208d0769f..f8ae0a23a2 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/endpoint_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/endpoint_trait.g.dart @@ -7,11 +7,7 @@ part of 'endpoint_trait.dart'; // ************************************************************************** EndpointTrait _$EndpointTraitFromJson(Map json) => - EndpointTrait( - json['hostPrefix'] as String, - ); + EndpointTrait(json['hostPrefix'] as String); Map _$EndpointTraitToJson(EndpointTrait instance) => - { - 'hostPrefix': instance.hostPrefix, - }; + {'hostPrefix': instance.hostPrefix}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.dart b/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.dart index 57fc28e73e..52b6f51f98 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.dart @@ -26,13 +26,7 @@ class EnumDefinition with AWSEquatable, AWSSerializable { final bool? deprecated; @override - List get props => [ - value, - name, - documentation, - tags, - deprecated, - ]; + List get props => [value, name, documentation, tags, deprecated]; @override Map toJson() => _$EnumDefinitionToJson(this); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.g.dart index cbd0f40a7b..acebb6ae2f 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/enum_definition.g.dart @@ -13,24 +13,15 @@ EnumDefinition _$EnumDefinitionFromJson(Map json) => documentation: json['documentation'] as String?, tags: (json['tags'] as List?)?.map((e) => e as String).toList() ?? - const [], + const [], deprecated: json['deprecated'] as bool?, ); -Map _$EnumDefinitionToJson(EnumDefinition instance) { - final val = { - 'value': instance.value, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('name', instance.name); - writeNotNull('documentation', instance.documentation); - val['tags'] = instance.tags; - writeNotNull('deprecated', instance.deprecated); - return val; -} +Map _$EnumDefinitionToJson(EnumDefinition instance) => + { + 'value': instance.value, + if (instance.name case final value?) 'name': value, + if (instance.documentation case final value?) 'documentation': value, + 'tags': instance.tags, + if (instance.deprecated case final value?) 'deprecated': value, + }; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.dart index bcaa4be52b..f67dd3d30a 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.dart @@ -13,9 +13,7 @@ class EnumTrait with AWSSerializable implements Trait { const EnumTrait(this.definitions); factory EnumTrait.fromJson(Object? json) => - _$EnumTraitFromJson({ - 'definitions': json as List, - }); + _$EnumTraitFromJson({'definitions': json as List}); static const id = ShapeId.core('enum'); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.g.dart index ae0ee4d99d..78b693131d 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/enum_trait.g.dart @@ -7,11 +7,11 @@ part of 'enum_trait.dart'; // ************************************************************************** EnumTrait _$EnumTraitFromJson(Map json) => EnumTrait( - (json['definitions'] as List) - .map((e) => EnumDefinition.fromJson(e as Map)) - .toList(), - ); + (json['definitions'] as List) + .map((e) => EnumDefinition.fromJson(e as Map)) + .toList(), +); Map _$EnumTraitToJson(EnumTrait instance) => { - 'definitions': instance.definitions, - }; + 'definitions': instance.definitions, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.dart index f0d96526ff..1fc6444f4a 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.dart @@ -10,16 +10,13 @@ part 'examples_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class ExamplesTrait with AWSSerializable implements Trait { - const ExamplesTrait({ - required this.examples, - }); + const ExamplesTrait({required this.examples}); - factory ExamplesTrait.fromJson(Object? json) => _$ExamplesTraitFromJson( - switch (json) { - {'examples': _} => json.cast(), - _ => {'examples': json}, - }, - ); + factory ExamplesTrait.fromJson(Object? json) => + _$ExamplesTraitFromJson(switch (json) { + {'examples': _} => json.cast(), + _ => {'examples': json}, + }); static const id = ShapeId.core('examples'); @@ -61,13 +58,7 @@ class Example with AWSEquatable, AWSSerializable { final ErrorExample? error; @override - List get props => [ - title, - documentation, - input, - output, - error, - ]; + List get props => [title, documentation, input, output, error]; @override Map toJson() => _$ExampleToJson(this); @@ -76,10 +67,7 @@ class Example with AWSEquatable, AWSSerializable { @ShapeIdConverter() @JsonSerializable() class ErrorExample with AWSEquatable, AWSSerializable { - const ErrorExample({ - required this.shapeId, - this.content = const {}, - }); + const ErrorExample({required this.shapeId, this.content = const {}}); factory ErrorExample.fromJson(Map json) => _$ErrorExampleFromJson(json); @@ -88,10 +76,7 @@ class ErrorExample with AWSEquatable, AWSSerializable { final Map content; @override - List get props => [ - shapeId, - content, - ]; + List get props => [shapeId, content]; @override Map toJson() => _$ErrorExampleToJson(this); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.g.dart index 2dd25a0840..8a377bdd1e 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/examples_trait.g.dart @@ -8,38 +8,38 @@ part of 'examples_trait.dart'; ExamplesTrait _$ExamplesTraitFromJson(Map json) => ExamplesTrait( - examples: (json['examples'] as List) - .map((e) => Example.fromJson(e as Map)) - .toList(), + examples: + (json['examples'] as List) + .map((e) => Example.fromJson(e as Map)) + .toList(), ); Map _$ExamplesTraitToJson(ExamplesTrait instance) => - { - 'examples': instance.examples, - }; + {'examples': instance.examples}; Example _$ExampleFromJson(Map json) => Example( - title: json['title'] as String, - documentation: json['documentation'] as String?, - input: json['input'] as Map? ?? const {}, - output: json['output'] as Map? ?? const {}, - error: json['error'] == null + title: json['title'] as String, + documentation: json['documentation'] as String?, + input: json['input'] as Map? ?? const {}, + output: json['output'] as Map? ?? const {}, + error: + json['error'] == null ? null : ErrorExample.fromJson(json['error'] as Map), - ); +); Map _$ExampleToJson(Example instance) => { - 'title': instance.title, - 'documentation': instance.documentation, - 'input': instance.input, - 'output': instance.output, - 'error': instance.error, - }; + 'title': instance.title, + 'documentation': instance.documentation, + 'input': instance.input, + 'output': instance.output, + 'error': instance.error, +}; ErrorExample _$ErrorExampleFromJson(Map json) => ErrorExample( - shapeId: const ShapeIdConverter().fromJson(json['shapeId'] as String), - content: json['content'] as Map? ?? const {}, - ); + shapeId: const ShapeIdConverter().fromJson(json['shapeId'] as String), + content: json['content'] as Map? ?? const {}, +); Map _$ErrorExampleToJson(ErrorExample instance) => { diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/external_documentation_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/external_documentation_trait.g.dart index 8da5e7da9f..a05eb46084 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/external_documentation_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/external_documentation_trait.g.dart @@ -7,16 +7,16 @@ part of 'external_documentation_trait.dart'; // ************************************************************************** ExternalDocumentationTrait _$ExternalDocumentationTraitFromJson( - Map json) => - ExternalDocumentationTrait( - (json['urls'] as Map?)?.map( - (k, e) => MapEntry(k, Uri.parse(e as String)), - ) ?? - const {}, - ); + Map json, +) => ExternalDocumentationTrait( + (json['urls'] as Map?)?.map( + (k, e) => MapEntry(k, Uri.parse(e as String)), + ) ?? + const {}, +); Map _$ExternalDocumentationTraitToJson( - ExternalDocumentationTrait instance) => - { - 'urls': instance.urls.map((k, e) => MapEntry(k, e.toString())), - }; + ExternalDocumentationTrait instance, +) => { + 'urls': instance.urls.map((k, e) => MapEntry(k, e.toString())), +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/id_ref_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/id_ref_trait.g.dart index 25fc54eeb1..48d1b6f283 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/id_ref_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/id_ref_trait.g.dart @@ -7,10 +7,10 @@ part of 'id_ref_trait.dart'; // ************************************************************************** IdRefTrait _$IdRefTraitFromJson(Map json) => IdRefTrait( - selector: json['selector'] as String? ?? '*', - failWhenMissing: json['failWhenMissing'] as bool, - errorMessage: json['errorMessage'] as String?, - ); + selector: json['selector'] as String? ?? '*', + failWhenMissing: json['failWhenMissing'] as bool, + errorMessage: json['errorMessage'] as String?, +); Map _$IdRefTraitToJson(IdRefTrait instance) => { diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.dart index c2be688ae3..fa53f47ef5 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.dart @@ -9,10 +9,7 @@ part 'length_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class LengthTrait implements Trait { - const LengthTrait({ - this.min, - this.max, - }); + const LengthTrait({this.min, this.max}); factory LengthTrait.fromJson(Object? json) => _$LengthTraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.g.dart index b2ea8089dd..5e10bb0ea9 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/length_trait.g.dart @@ -7,12 +7,9 @@ part of 'length_trait.dart'; // ************************************************************************** LengthTrait _$LengthTraitFromJson(Map json) => LengthTrait( - min: (json['min'] as num?)?.toInt(), - max: (json['max'] as num?)?.toInt(), - ); + min: (json['min'] as num?)?.toInt(), + max: (json['max'] as num?)?.toInt(), +); Map _$LengthTraitToJson(LengthTrait instance) => - { - 'min': instance.min, - 'max': instance.max, - }; + {'min': instance.min, 'max': instance.max}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/protocol_definition_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/protocol_definition_trait.g.dart index 14d8dddf17..3658e604bc 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/protocol_definition_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/protocol_definition_trait.g.dart @@ -7,19 +7,19 @@ part of 'protocol_definition_trait.dart'; // ************************************************************************** ProtocolDefinitionTrait _$ProtocolDefinitionTraitFromJson( - Map json) => - ProtocolDefinitionTrait( - traits: (json['traits'] as List?) - ?.map((e) => const ShapeIdConverter().fromJson(e as String)) - .toList() ?? - const [], - noInlineDocumentSupport: - json['noInlineDocumentSupport'] as bool? ?? false, - ); + Map json, +) => ProtocolDefinitionTrait( + traits: + (json['traits'] as List?) + ?.map((e) => const ShapeIdConverter().fromJson(e as String)) + .toList() ?? + const [], + noInlineDocumentSupport: json['noInlineDocumentSupport'] as bool? ?? false, +); Map _$ProtocolDefinitionTraitToJson( - ProtocolDefinitionTrait instance) => - { - 'traits': instance.traits.map(const ShapeIdConverter().toJson).toList(), - 'noInlineDocumentSupport': instance.noInlineDocumentSupport, - }; + ProtocolDefinitionTrait instance, +) => { + 'traits': instance.traits.map(const ShapeIdConverter().toJson).toList(), + 'noInlineDocumentSupport': instance.noInlineDocumentSupport, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.dart index 7bf15a35de..3370b1e0ed 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.dart @@ -10,10 +10,7 @@ part 'range_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class RangeTrait implements Trait { - const RangeTrait({ - this.min, - this.max, - }); + const RangeTrait({this.min, this.max}); factory RangeTrait.fromJson(Object? json) => _$RangeTraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.g.dart index e45f473e9a..0c816616ee 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/range_trait.g.dart @@ -7,12 +7,9 @@ part of 'range_trait.dart'; // ************************************************************************** RangeTrait _$RangeTraitFromJson(Map json) => RangeTrait( - min: (json['min'] as num?)?.toDouble(), - max: (json['max'] as num?)?.toDouble(), - ); + min: (json['min'] as num?)?.toDouble(), + max: (json['max'] as num?)?.toDouble(), +); Map _$RangeTraitToJson(RangeTrait instance) => - { - 'min': instance.min, - 'max': instance.max, - }; + {'min': instance.min, 'max': instance.max}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.dart index 04bc6687af..c9ddb13c10 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.dart @@ -9,9 +9,7 @@ part 'recommended_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class RecommendedTrait implements Trait { - const RecommendedTrait({ - this.reason, - }); + const RecommendedTrait({this.reason}); factory RecommendedTrait.fromJson(Object? json) => _$RecommendedTraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.g.dart index 17b1555de4..fc81488bd1 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/recommended_trait.g.dart @@ -7,11 +7,7 @@ part of 'recommended_trait.dart'; // ************************************************************************** RecommendedTrait _$RecommendedTraitFromJson(Map json) => - RecommendedTrait( - reason: json['reason'] as String?, - ); + RecommendedTrait(reason: json['reason'] as String?); Map _$RecommendedTraitToJson(RecommendedTrait instance) => - { - 'reason': instance.reason, - }; + {'reason': instance.reason}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/references_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/references_trait.g.dart index 3913747c33..59fe8a4fb8 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/references_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/references_trait.g.dart @@ -14,16 +14,17 @@ ReferencesTrait _$ReferencesTraitFromJson(Map json) => ); Map _$ReferencesTraitToJson(ReferencesTrait instance) => - { - 'references': instance.references, - }; + {'references': instance.references}; ResourceReference _$ResourceReferenceFromJson(Map json) => ResourceReference( resource: const ShapeIdConverter().fromJson(json['resource'] as String), service: _$JsonConverterFromJson( - json['service'], const ShapeIdConverter().fromJson), - ids: (json['ids'] as Map?)?.map( + json['service'], + const ShapeIdConverter().fromJson, + ), + ids: + (json['ids'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ) ?? const {}, @@ -35,18 +36,18 @@ Map _$ResourceReferenceToJson(ResourceReference instance) => 'resource': const ShapeIdConverter().toJson(instance.resource), 'ids': instance.ids, 'service': _$JsonConverterToJson( - instance.service, const ShapeIdConverter().toJson), + instance.service, + const ShapeIdConverter().toJson, + ), 'rel': instance.rel, }; Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); Json? _$JsonConverterToJson( Value? value, Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); +) => value == null ? null : toJson(value); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.dart index 50c4c50972..bc152ce87d 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.dart @@ -10,9 +10,7 @@ part 'retryable_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class RetryableTrait implements Trait { - const RetryableTrait({ - this.throttling = false, - }); + const RetryableTrait({this.throttling = false}); factory RetryableTrait.fromJson(Object? json) => _$RetryableTraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.g.dart index da0f415b90..d6255330ae 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/retryable_trait.g.dart @@ -7,11 +7,7 @@ part of 'retryable_trait.dart'; // ************************************************************************** RetryableTrait _$RetryableTraitFromJson(Map json) => - RetryableTrait( - throttling: json['throttling'] as bool? ?? false, - ); + RetryableTrait(throttling: json['throttling'] as bool? ?? false); Map _$RetryableTraitToJson(RetryableTrait instance) => - { - 'throttling': instance.throttling, - }; + {'throttling': instance.throttling}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.dart index f1a9c4da67..413bebac7d 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.dart @@ -10,10 +10,7 @@ part 'xml_namespace_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class XmlNamespaceTrait implements Trait { - const XmlNamespaceTrait({ - required this.uri, - this.prefix, - }); + const XmlNamespaceTrait({required this.uri, this.prefix}); factory XmlNamespaceTrait.fromJson(Object? json) => _$XmlNamespaceTraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.g.dart index 40d8899d8f..cbab1d1c22 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/core/xml_namespace_trait.g.dart @@ -13,7 +13,4 @@ XmlNamespaceTrait _$XmlNamespaceTraitFromJson(Map json) => ); Map _$XmlNamespaceTraitToJson(XmlNamespaceTrait instance) => - { - 'uri': instance.uri, - 'prefix': instance.prefix, - }; + {'uri': instance.uri, 'prefix': instance.prefix}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/http/http_api_key_auth_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/http/http_api_key_auth_trait.g.dart index 2620a188cd..023d3f2ebf 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/http/http_api_key_auth_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/http/http_api_key_auth_trait.g.dart @@ -14,14 +14,11 @@ HttpApiKeyAuthTrait _$HttpApiKeyAuthTraitFromJson(Map json) => ); Map _$HttpApiKeyAuthTraitToJson( - HttpApiKeyAuthTrait instance) => - { - 'scheme': instance.scheme, - 'name': instance.name, - 'in': _$LocationEnumMap[instance.location]!, - }; - -const _$LocationEnumMap = { - Location.header: 'header', - Location.query: 'query', + HttpApiKeyAuthTrait instance, +) => { + 'scheme': instance.scheme, + 'name': instance.name, + 'in': _$LocationEnumMap[instance.location]!, }; + +const _$LocationEnumMap = {Location.header: 'header', Location.query: 'query'}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/http/http_checksum_required_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/http/http_checksum_required_trait.dart index 402ec2f8a5..9e2f64316d 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/http/http_checksum_required_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/http/http_checksum_required_trait.dart @@ -11,6 +11,8 @@ class HttpChecksumRequiredTrait extends AnnotationTrait { const HttpChecksumRequiredTrait.fromJson(Object? json) : super(id); - static const id = - ShapeId(namespace: 'smithy.api', shape: 'httpChecksumRequired'); + static const id = ShapeId( + namespace: 'smithy.api', + shape: 'httpChecksumRequired', + ); } diff --git a/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.dart index 23189a0f6c..f3b1e5e34f 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.dart @@ -11,11 +11,7 @@ part 'http_trait.g.dart'; @ShapeIdConverter() @JsonSerializable() class HttpTrait with AWSSerializable implements Trait { - const HttpTrait({ - required this.method, - required this.uri, - this.code = 200, - }); + const HttpTrait({required this.method, required this.uri, this.code = 200}); factory HttpTrait.fromJson(Object? json) => _$HttpTraitFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.g.dart index f7fb91d352..8a00ae32d3 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/http/http_trait.g.dart @@ -7,13 +7,13 @@ part of 'http_trait.dart'; // ************************************************************************** HttpTrait _$HttpTraitFromJson(Map json) => HttpTrait( - method: json['method'] as String, - uri: json['uri'] as String, - code: (json['code'] as num?)?.toInt() ?? 200, - ); + method: json['method'] as String, + uri: json['uri'] as String, + code: (json['code'] as num?)?.toInt() ?? 200, +); Map _$HttpTraitToJson(HttpTrait instance) => { - 'method': instance.method, - 'uri': instance.uri, - 'code': instance.code, - }; + 'method': instance.method, + 'uri': instance.uri, + 'code': instance.code, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.dart index c1f7cd6631..0705e52185 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.dart @@ -33,12 +33,5 @@ class HttpMalformedRequestDefinition Map toJson() => _$HttpMalformedRequestDefinitionToJson(this); @override - List get props => [ - body, - headers, - host, - method, - queryParams, - uri, - ]; + List get props => [body, headers, host, method, queryParams, uri]; } diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.g.dart index e6652d5cf7..be297e9293 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_definition.g.dart @@ -7,29 +7,31 @@ part of 'http_malformed_request_definition.dart'; // ************************************************************************** HttpMalformedRequestDefinition _$HttpMalformedRequestDefinitionFromJson( - Map json) => - HttpMalformedRequestDefinition( - body: json['body'] as String?, - headers: (json['headers'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}, - host: json['host'] as String?, - method: json['method'] as String, - queryParams: (json['queryParams'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - uri: json['uri'] as String?, - ); + Map json, +) => HttpMalformedRequestDefinition( + body: json['body'] as String?, + headers: + (json['headers'] as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, + host: json['host'] as String?, + method: json['method'] as String, + queryParams: + (json['queryParams'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + uri: json['uri'] as String?, +); Map _$HttpMalformedRequestDefinitionToJson( - HttpMalformedRequestDefinition instance) => - { - 'body': instance.body, - 'headers': instance.headers, - 'host': instance.host, - 'method': instance.method, - 'queryParams': instance.queryParams, - 'uri': instance.uri, - }; + HttpMalformedRequestDefinition instance, +) => { + 'body': instance.body, + 'headers': instance.headers, + 'host': instance.host, + 'method': instance.method, + 'queryParams': instance.queryParams, + 'uri': instance.uri, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.dart index 71ae5d2531..b7bebf8529 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.dart @@ -32,13 +32,13 @@ class HttpMalformedRequestTestCase @override List get props => [ - documentation, - id, - protocol, - request, - response, - tags, - ]; + documentation, + id, + protocol, + request, + response, + tags, + ]; @override Map toJson() => _$HttpMalformedRequestTestCaseToJson(this); diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.g.dart index 8614205651..4f0f0372e6 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_test_case.g.dart @@ -7,27 +7,29 @@ part of 'http_malformed_request_test_case.dart'; // ************************************************************************** HttpMalformedRequestTestCase _$HttpMalformedRequestTestCaseFromJson( - Map json) => - HttpMalformedRequestTestCase( - documentation: json['documentation'] as String?, - id: json['id'] as String, - protocol: const ShapeIdConverter().fromJson(json['protocol'] as String), - request: HttpMalformedRequestDefinition.fromJson( - json['request'] as Map), - response: HttpMalformedResponseDefinition.fromJson( - json['response'] as Map), - tags: - (json['tags'] as List?)?.map((e) => e as String).toList() ?? - const [], - ); + Map json, +) => HttpMalformedRequestTestCase( + documentation: json['documentation'] as String?, + id: json['id'] as String, + protocol: const ShapeIdConverter().fromJson(json['protocol'] as String), + request: HttpMalformedRequestDefinition.fromJson( + json['request'] as Map, + ), + response: HttpMalformedResponseDefinition.fromJson( + json['response'] as Map, + ), + tags: + (json['tags'] as List?)?.map((e) => e as String).toList() ?? + const [], +); Map _$HttpMalformedRequestTestCaseToJson( - HttpMalformedRequestTestCase instance) => - { - 'documentation': instance.documentation, - 'id': instance.id, - 'protocol': const ShapeIdConverter().toJson(instance.protocol), - 'request': instance.request, - 'response': instance.response, - 'tags': instance.tags, - }; + HttpMalformedRequestTestCase instance, +) => { + 'documentation': instance.documentation, + 'id': instance.id, + 'protocol': const ShapeIdConverter().toJson(instance.protocol), + 'request': instance.request, + 'response': instance.response, + 'tags': instance.tags, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.dart index afa0431ee6..bf3b8635a1 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.dart @@ -16,12 +16,14 @@ class HttpMalformedRequestTestsTrait const HttpMalformedRequestTestsTrait(this.testCases); factory HttpMalformedRequestTestsTrait.fromJson(Object? json) => - _$HttpMalformedRequestTestsTraitFromJson( - {'testCases': json}, - ); - - static const id = - ShapeId(namespace: 'smithy.test', shape: 'httpMalformedRequestTests'); + _$HttpMalformedRequestTestsTraitFromJson({ + 'testCases': json, + }); + + static const id = ShapeId( + namespace: 'smithy.test', + shape: 'httpMalformedRequestTests', + ); final List testCases; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.g.dart index ca91b15ccb..3fd24a9725 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_request_tests_trait.g.dart @@ -7,16 +7,17 @@ part of 'http_malformed_request_tests_trait.dart'; // ************************************************************************** HttpMalformedRequestTestsTrait _$HttpMalformedRequestTestsTraitFromJson( - Map json) => - HttpMalformedRequestTestsTrait( - (json['testCases'] as List) - .map((e) => ParameterizedHttpMalformedRequestTestCase.fromJson( - e as Map)) - .toList(), - ); + Map json, +) => HttpMalformedRequestTestsTrait( + (json['testCases'] as List) + .map( + (e) => ParameterizedHttpMalformedRequestTestCase.fromJson( + e as Map, + ), + ) + .toList(), +); Map _$HttpMalformedRequestTestsTraitToJson( - HttpMalformedRequestTestsTrait instance) => - { - 'testCases': instance.testCases, - }; + HttpMalformedRequestTestsTrait instance, +) => {'testCases': instance.testCases}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.dart index 98a1f70db7..048ad13bbe 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.dart @@ -18,19 +18,14 @@ class HttpMalformedResponseBodyDefinition factory HttpMalformedResponseBodyDefinition.fromJson( Map json, - ) => - _$HttpMalformedResponseBodyDefinitionFromJson(json); + ) => _$HttpMalformedResponseBodyDefinitionFromJson(json); final String? contents; final String mediaType; final String? messageRegex; @override - List get props => [ - contents, - mediaType, - messageRegex, - ]; + List get props => [contents, mediaType, messageRegex]; @override Map toJson() => diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.g.dart index 6034b31f02..319b9bd7f3 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_body_definition.g.dart @@ -7,17 +7,17 @@ part of 'http_malformed_response_body_definition.dart'; // ************************************************************************** HttpMalformedResponseBodyDefinition - _$HttpMalformedResponseBodyDefinitionFromJson(Map json) => - HttpMalformedResponseBodyDefinition( - contents: json['contents'] as String?, - mediaType: json['mediaType'] as String, - messageRegex: json['messageRegex'] as String?, - ); +_$HttpMalformedResponseBodyDefinitionFromJson(Map json) => + HttpMalformedResponseBodyDefinition( + contents: json['contents'] as String?, + mediaType: json['mediaType'] as String, + messageRegex: json['messageRegex'] as String?, + ); Map _$HttpMalformedResponseBodyDefinitionToJson( - HttpMalformedResponseBodyDefinition instance) => - { - 'contents': instance.contents, - 'mediaType': instance.mediaType, - 'messageRegex': instance.messageRegex, - }; + HttpMalformedResponseBodyDefinition instance, +) => { + 'contents': instance.contents, + 'mediaType': instance.mediaType, + 'messageRegex': instance.messageRegex, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.dart index 7c599334c0..67b1518375 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.dart @@ -30,9 +30,5 @@ class HttpMalformedResponseDefinition _$HttpMalformedResponseDefinitionToJson(this); @override - List get props => [ - body, - code, - headers, - ]; + List get props => [body, code, headers]; } diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.g.dart index ad72fe79f9..82ceb40a14 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_malformed_response_definition.g.dart @@ -7,23 +7,26 @@ part of 'http_malformed_response_definition.dart'; // ************************************************************************** HttpMalformedResponseDefinition _$HttpMalformedResponseDefinitionFromJson( - Map json) => - HttpMalformedResponseDefinition( - body: json['body'] == null + Map json, +) => HttpMalformedResponseDefinition( + body: + json['body'] == null ? null : HttpMalformedResponseBodyDefinition.fromJson( - json['body'] as Map), - code: (json['code'] as num).toInt(), - headers: (json['headers'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}, - ); + json['body'] as Map, + ), + code: (json['code'] as num).toInt(), + headers: + (json['headers'] as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, +); Map _$HttpMalformedResponseDefinitionToJson( - HttpMalformedResponseDefinition instance) => - { - 'body': instance.body, - 'code': instance.code, - 'headers': instance.headers, - }; + HttpMalformedResponseDefinition instance, +) => { + 'body': instance.body, + 'code': instance.code, + 'headers': instance.headers, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_message_test_case.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_message_test_case.dart index df4c5fd970..c470840de2 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_message_test_case.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_message_test_case.dart @@ -117,19 +117,19 @@ abstract class HttpMessageTestCase> @override List get props => [ - id, - documentation, - protocol, - authScheme, - body, - bodyMediaType, - params, - vendorParamsShape, - vendorParams, - headers, - forbidHeaders, - requireHeaders, - tags, - appliesTo, - ]; + id, + documentation, + protocol, + authScheme, + body, + bodyMediaType, + params, + vendorParamsShape, + vendorParams, + headers, + forbidHeaders, + requireHeaders, + tags, + appliesTo, + ]; } diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.dart index 874680f269..69b02c8ea2 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.dart @@ -109,15 +109,15 @@ class HttpRequestTestCase extends HttpMessageTestCase @override List get props => [ - ...super.props, - method, - uri, - host, - resolvedHost, - queryParams, - forbidQueryParams, - requireQueryParams, - ]; + ...super.props, + method, + uri, + host, + resolvedHost, + queryParams, + forbidQueryParams, + requireQueryParams, + ]; @override Map toJson() => _$HttpRequestTestCaseToJson(this); diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.g.dart index d8068207c1..190028f333 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_test_case.g.dart @@ -12,86 +12,99 @@ HttpRequestTestCase _$HttpRequestTestCaseFromJson(Map json) => documentation: json['documentation'] as String?, protocol: const ShapeIdConverter().fromJson(json['protocol'] as String), authScheme: _$JsonConverterFromJson( - json['authScheme'], const ShapeIdConverter().fromJson), + json['authScheme'], + const ShapeIdConverter().fromJson, + ), body: json['body'] as String?, bodyMediaType: json['bodyMediaType'] as String?, - params: (json['params'] as Map?)?.map( - (k, e) => MapEntry(k as String, e), - ) ?? + params: + (json['params'] as Map?)?.map((k, e) => MapEntry(k as String, e)) ?? const {}, vendorParamsShape: _$JsonConverterFromJson( - json['vendorParamsShape'], const ShapeIdConverter().fromJson), - vendorParams: (json['vendorParams'] as Map?)?.map( + json['vendorParamsShape'], + const ShapeIdConverter().fromJson, + ), + vendorParams: + (json['vendorParams'] as Map?)?.map( (k, e) => MapEntry(k as String, e), ) ?? const {}, - headers: (json['headers'] as Map?)?.map( + headers: + (json['headers'] as Map?)?.map( (k, e) => MapEntry(k as String, e as String), ) ?? const {}, - forbidHeaders: (json['forbidHeaders'] as List?) + forbidHeaders: + (json['forbidHeaders'] as List?) ?.map((e) => e as String) .toList() ?? const [], - requireHeaders: (json['requireHeaders'] as List?) + requireHeaders: + (json['requireHeaders'] as List?) ?.map((e) => e as String) .toList() ?? const [], tags: (json['tags'] as List?)?.map((e) => e as String).toList() ?? - const [], + const [], appliesTo: $enumDecodeNullable(_$AppliesToEnumMap, json['appliesTo']), method: json['method'] as String, uri: json['uri'] as String, host: json['host'] as String?, resolvedHost: json['resolvedHost'] as String?, - queryParams: (json['queryParams'] as List?) + queryParams: + (json['queryParams'] as List?) ?.map((e) => e as String) .toList() ?? const [], - forbidQueryParams: (json['forbidQueryParams'] as List?) + forbidQueryParams: + (json['forbidQueryParams'] as List?) ?.map((e) => e as String) .toList() ?? const [], - requireQueryParams: (json['requireQueryParams'] as List?) + requireQueryParams: + (json['requireQueryParams'] as List?) ?.map((e) => e as String) .toList() ?? const [], ); Map _$HttpRequestTestCaseToJson( - HttpRequestTestCase instance) => - { - 'id': instance.id, - 'documentation': instance.documentation, - 'protocol': const ShapeIdConverter().toJson(instance.protocol), - 'authScheme': _$JsonConverterToJson( - instance.authScheme, const ShapeIdConverter().toJson), - 'body': instance.body, - 'bodyMediaType': instance.bodyMediaType, - 'params': instance.params, - 'vendorParamsShape': _$JsonConverterToJson( - instance.vendorParamsShape, const ShapeIdConverter().toJson), - 'vendorParams': instance.vendorParams, - 'headers': instance.headers, - 'forbidHeaders': instance.forbidHeaders, - 'requireHeaders': instance.requireHeaders, - 'tags': instance.tags, - 'appliesTo': _$AppliesToEnumMap[instance.appliesTo], - 'method': instance.method, - 'uri': instance.uri, - 'host': instance.host, - 'resolvedHost': instance.resolvedHost, - 'queryParams': instance.queryParams, - 'forbidQueryParams': instance.forbidQueryParams, - 'requireQueryParams': instance.requireQueryParams, - }; + HttpRequestTestCase instance, +) => { + 'id': instance.id, + 'documentation': instance.documentation, + 'protocol': const ShapeIdConverter().toJson(instance.protocol), + 'authScheme': _$JsonConverterToJson( + instance.authScheme, + const ShapeIdConverter().toJson, + ), + 'body': instance.body, + 'bodyMediaType': instance.bodyMediaType, + 'params': instance.params, + 'vendorParamsShape': _$JsonConverterToJson( + instance.vendorParamsShape, + const ShapeIdConverter().toJson, + ), + 'vendorParams': instance.vendorParams, + 'headers': instance.headers, + 'forbidHeaders': instance.forbidHeaders, + 'requireHeaders': instance.requireHeaders, + 'tags': instance.tags, + 'appliesTo': _$AppliesToEnumMap[instance.appliesTo], + 'method': instance.method, + 'uri': instance.uri, + 'host': instance.host, + 'resolvedHost': instance.resolvedHost, + 'queryParams': instance.queryParams, + 'forbidQueryParams': instance.forbidQueryParams, + 'requireQueryParams': instance.requireQueryParams, +}; Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); const _$AppliesToEnumMap = { AppliesTo.client: 'client', @@ -101,5 +114,4 @@ const _$AppliesToEnumMap = { Json? _$JsonConverterToJson( Value? value, Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); +) => value == null ? null : toJson(value); diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.dart index 0402485fc0..337b1dcafa 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.dart @@ -18,8 +18,10 @@ class HttpRequestTestsTrait factory HttpRequestTestsTrait.fromJson(Object? json) => _$HttpRequestTestsTraitFromJson({'testCases': json}); - static const id = - ShapeId(namespace: 'smithy.test', shape: 'httpRequestTests'); + static const id = ShapeId( + namespace: 'smithy.test', + shape: 'httpRequestTests', + ); final List testCases; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.g.dart index e499cfb22b..c7865fdc20 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_request_tests_trait.g.dart @@ -7,15 +7,13 @@ part of 'http_request_tests_trait.dart'; // ************************************************************************** HttpRequestTestsTrait _$HttpRequestTestsTraitFromJson( - Map json) => - HttpRequestTestsTrait( - (json['testCases'] as List) - .map((e) => HttpRequestTestCase.fromJson(e as Map)) - .toList(), - ); + Map json, +) => HttpRequestTestsTrait( + (json['testCases'] as List) + .map((e) => HttpRequestTestCase.fromJson(e as Map)) + .toList(), +); Map _$HttpRequestTestsTraitToJson( - HttpRequestTestsTrait instance) => - { - 'testCases': instance.testCases, - }; + HttpRequestTestsTrait instance, +) => {'testCases': instance.testCases}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.dart index 93628b3b04..da191de3da 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.dart @@ -33,10 +33,7 @@ class HttpResponseTestCase extends HttpMessageTestCase { final int code; @override - List get props => [ - ...super.props, - code, - ]; + List get props => [...super.props, code]; @override Map toJson() => _$HttpResponseTestCaseToJson(this); diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.g.dart index a57c25da74..ef39e5784f 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_test_case.g.dart @@ -7,65 +7,75 @@ part of 'http_response_test_case.dart'; // ************************************************************************** HttpResponseTestCase _$HttpResponseTestCaseFromJson( - Map json) => - HttpResponseTestCase( - id: json['id'] as String, - documentation: json['documentation'] as String?, - protocol: const ShapeIdConverter().fromJson(json['protocol'] as String), - authScheme: _$JsonConverterFromJson( - json['authScheme'], const ShapeIdConverter().fromJson), - body: json['body'] as String?, - bodyMediaType: json['bodyMediaType'] as String?, - params: json['params'] as Map? ?? const {}, - vendorParamsShape: _$JsonConverterFromJson( - json['vendorParamsShape'], const ShapeIdConverter().fromJson), - vendorParams: json['vendorParams'] as Map? ?? const {}, - headers: (json['headers'] as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}, - forbidHeaders: (json['forbidHeaders'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - requireHeaders: (json['requireHeaders'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - tags: - (json['tags'] as List?)?.map((e) => e as String).toList() ?? - const [], - appliesTo: $enumDecodeNullable(_$AppliesToEnumMap, json['appliesTo']), - code: (json['code'] as num).toInt(), - ); + Map json, +) => HttpResponseTestCase( + id: json['id'] as String, + documentation: json['documentation'] as String?, + protocol: const ShapeIdConverter().fromJson(json['protocol'] as String), + authScheme: _$JsonConverterFromJson( + json['authScheme'], + const ShapeIdConverter().fromJson, + ), + body: json['body'] as String?, + bodyMediaType: json['bodyMediaType'] as String?, + params: json['params'] as Map? ?? const {}, + vendorParamsShape: _$JsonConverterFromJson( + json['vendorParamsShape'], + const ShapeIdConverter().fromJson, + ), + vendorParams: json['vendorParams'] as Map? ?? const {}, + headers: + (json['headers'] as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, + forbidHeaders: + (json['forbidHeaders'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + requireHeaders: + (json['requireHeaders'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + tags: + (json['tags'] as List?)?.map((e) => e as String).toList() ?? + const [], + appliesTo: $enumDecodeNullable(_$AppliesToEnumMap, json['appliesTo']), + code: (json['code'] as num).toInt(), +); Map _$HttpResponseTestCaseToJson( - HttpResponseTestCase instance) => - { - 'id': instance.id, - 'documentation': instance.documentation, - 'protocol': const ShapeIdConverter().toJson(instance.protocol), - 'authScheme': _$JsonConverterToJson( - instance.authScheme, const ShapeIdConverter().toJson), - 'body': instance.body, - 'bodyMediaType': instance.bodyMediaType, - 'params': instance.params, - 'vendorParamsShape': _$JsonConverterToJson( - instance.vendorParamsShape, const ShapeIdConverter().toJson), - 'vendorParams': instance.vendorParams, - 'headers': instance.headers, - 'forbidHeaders': instance.forbidHeaders, - 'requireHeaders': instance.requireHeaders, - 'tags': instance.tags, - 'appliesTo': _$AppliesToEnumMap[instance.appliesTo], - 'code': instance.code, - }; + HttpResponseTestCase instance, +) => { + 'id': instance.id, + 'documentation': instance.documentation, + 'protocol': const ShapeIdConverter().toJson(instance.protocol), + 'authScheme': _$JsonConverterToJson( + instance.authScheme, + const ShapeIdConverter().toJson, + ), + 'body': instance.body, + 'bodyMediaType': instance.bodyMediaType, + 'params': instance.params, + 'vendorParamsShape': _$JsonConverterToJson( + instance.vendorParamsShape, + const ShapeIdConverter().toJson, + ), + 'vendorParams': instance.vendorParams, + 'headers': instance.headers, + 'forbidHeaders': instance.forbidHeaders, + 'requireHeaders': instance.requireHeaders, + 'tags': instance.tags, + 'appliesTo': _$AppliesToEnumMap[instance.appliesTo], + 'code': instance.code, +}; Value? _$JsonConverterFromJson( Object? json, Value? Function(Json json) fromJson, -) => - json == null ? null : fromJson(json as Json); +) => json == null ? null : fromJson(json as Json); const _$AppliesToEnumMap = { AppliesTo.client: 'client', @@ -75,5 +85,4 @@ const _$AppliesToEnumMap = { Json? _$JsonConverterToJson( Value? value, Json? Function(Value value) toJson, -) => - value == null ? null : toJson(value); +) => value == null ? null : toJson(value); diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.dart index db19173097..afdb71ef2c 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.dart @@ -18,8 +18,10 @@ class HttpResponseTestsTrait factory HttpResponseTestsTrait.fromJson(Object? json) => _$HttpResponseTestsTraitFromJson({'testCases': json}); - static const id = - ShapeId(namespace: 'smithy.test', shape: 'httpResponseTests'); + static const id = ShapeId( + namespace: 'smithy.test', + shape: 'httpResponseTests', + ); final List testCases; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.g.dart index 56b388c1ed..52d2c1bd96 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/http_response_tests_trait.g.dart @@ -7,15 +7,13 @@ part of 'http_response_tests_trait.dart'; // ************************************************************************** HttpResponseTestsTrait _$HttpResponseTestsTraitFromJson( - Map json) => - HttpResponseTestsTrait( - (json['testCases'] as List) - .map((e) => HttpResponseTestCase.fromJson(e as Map)) - .toList(), - ); + Map json, +) => HttpResponseTestsTrait( + (json['testCases'] as List) + .map((e) => HttpResponseTestCase.fromJson(e as Map)) + .toList(), +); Map _$HttpResponseTestsTraitToJson( - HttpResponseTestsTrait instance) => - { - 'testCases': instance.testCases, - }; + HttpResponseTestsTrait instance, +) => {'testCases': instance.testCases}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.dart b/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.dart index fee9ec0e9f..ebd68b1929 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.dart @@ -25,8 +25,7 @@ class ParameterizedHttpMalformedRequestTestCase factory ParameterizedHttpMalformedRequestTestCase.fromJson( Map json, - ) => - _$ParameterizedHttpMalformedRequestTestCaseFromJson(json); + ) => _$ParameterizedHttpMalformedRequestTestCaseFromJson(json); final String? documentation; final String id; @@ -42,12 +41,12 @@ class ParameterizedHttpMalformedRequestTestCase @override List get props => [ - documentation, - id, - protocol, - request, - response, - tags, - testParameters, - ]; + documentation, + id, + protocol, + request, + response, + tags, + testParameters, + ]; } diff --git a/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.g.dart b/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.g.dart index ebe075490f..fe50d7d02b 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/test/parameterized_http_malformed_test_case.g.dart @@ -7,37 +7,37 @@ part of 'parameterized_http_malformed_test_case.dart'; // ************************************************************************** ParameterizedHttpMalformedRequestTestCase - _$ParameterizedHttpMalformedRequestTestCaseFromJson( - Map json) => - ParameterizedHttpMalformedRequestTestCase( - documentation: json['documentation'] as String?, - id: json['id'] as String, - protocol: - const ShapeIdConverter().fromJson(json['protocol'] as String), - request: HttpMalformedRequestDefinition.fromJson( - json['request'] as Map), - response: HttpMalformedResponseDefinition.fromJson( - json['response'] as Map), - tags: (json['tags'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - testParameters: (json['testParameters'] as Map?) - ?.map( - (k, e) => MapEntry( - k, (e as List).map((e) => e as String).toList()), - ) ?? - const {}, - ); +_$ParameterizedHttpMalformedRequestTestCaseFromJson( + Map json, +) => ParameterizedHttpMalformedRequestTestCase( + documentation: json['documentation'] as String?, + id: json['id'] as String, + protocol: const ShapeIdConverter().fromJson(json['protocol'] as String), + request: HttpMalformedRequestDefinition.fromJson( + json['request'] as Map, + ), + response: HttpMalformedResponseDefinition.fromJson( + json['response'] as Map, + ), + tags: + (json['tags'] as List?)?.map((e) => e as String).toList() ?? + const [], + testParameters: + (json['testParameters'] as Map?)?.map( + (k, e) => + MapEntry(k, (e as List).map((e) => e as String).toList()), + ) ?? + const {}, +); Map _$ParameterizedHttpMalformedRequestTestCaseToJson( - ParameterizedHttpMalformedRequestTestCase instance) => - { - 'documentation': instance.documentation, - 'id': instance.id, - 'protocol': const ShapeIdConverter().toJson(instance.protocol), - 'request': instance.request, - 'response': instance.response, - 'tags': instance.tags, - 'testParameters': instance.testParameters, - }; + ParameterizedHttpMalformedRequestTestCase instance, +) => { + 'documentation': instance.documentation, + 'id': instance.id, + 'protocol': const ShapeIdConverter().toJson(instance.protocol), + 'request': instance.request, + 'response': instance.response, + 'tags': instance.tags, + 'testParameters': instance.testParameters, +}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/trait.dart b/packages/smithy/smithy/lib/src/ast/traits/trait.dart index 6a1b3ec9d3..ea094d9c88 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/trait.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/trait.dart @@ -8,8 +8,10 @@ import 'package:smithy/ast.dart'; part 'dynamic_trait.dart'; /// Constructs [Trait] objects from JSON values. -typedef TraitConstructor> - = T Function(Object?); +typedef TraitConstructor< + TraitValue extends Object, + T extends Trait +> = T Function(Object?); /// Traits provide additional context and semantics to shapes. /// diff --git a/packages/smithy/smithy/lib/src/ast/traits/waiters/acceptor_definition.dart b/packages/smithy/smithy/lib/src/ast/traits/waiters/acceptor_definition.dart index 3f4460829b..0e99f51e46 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/waiters/acceptor_definition.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/waiters/acceptor_definition.dart @@ -13,10 +13,7 @@ enum AcceptorState { success, failure, retry } @JsonSerializable() class AcceptorDefinition with AWSSerializable, AWSEquatable { - const AcceptorDefinition({ - required this.state, - required this.matcher, - }); + const AcceptorDefinition({required this.state, required this.matcher}); factory AcceptorDefinition.fromJson(Object? json) => _$AcceptorDefinitionFromJson((json as Map).cast()); diff --git a/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.dart b/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.dart index 2e101c35ce..f8fd57f0ab 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.dart @@ -13,23 +13,11 @@ enum PathComparator { anyStringEquals, } -enum MatcherType { - success, - error, - inputOutput, - output, -} +enum MatcherType { success, error, inputOutput, output } -@JsonSerializable( - includeIfNull: false, -) +@JsonSerializable(includeIfNull: false) class Matcher with AWSSerializable, AWSEquatable { - const Matcher({ - this.success, - this.errorType, - this.output, - this.inputOutput, - }); + const Matcher({this.success, this.errorType, this.output, this.inputOutput}); factory Matcher.fromJson(Map json) => _$MatcherFromJson(json); @@ -62,9 +50,7 @@ class Matcher with AWSSerializable, AWSEquatable { Map toJson() => _$MatcherToJson(this); } -@JsonSerializable( - includeIfNull: false, -) +@JsonSerializable(includeIfNull: false) class PathMatcher { const PathMatcher({ required this.path, diff --git a/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.g.dart b/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.g.dart index 3e82837a27..b77d61c2e7 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/waiters/matcher.g.dart @@ -7,37 +7,30 @@ part of 'matcher.dart'; // ************************************************************************** Matcher _$MatcherFromJson(Map json) => Matcher( - success: json['success'] as bool?, - errorType: json['errorType'] as String?, - output: json['output'] == null + success: json['success'] as bool?, + errorType: json['errorType'] as String?, + output: + json['output'] == null ? null : PathMatcher.fromJson(json['output'] as Map), - inputOutput: json['inputOutput'] == null + inputOutput: + json['inputOutput'] == null ? null : PathMatcher.fromJson(json['inputOutput'] as Map), - ); +); -Map _$MatcherToJson(Matcher instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('success', instance.success); - writeNotNull('errorType', instance.errorType); - writeNotNull('output', instance.output); - writeNotNull('inputOutput', instance.inputOutput); - return val; -} +Map _$MatcherToJson(Matcher instance) => { + if (instance.success case final value?) 'success': value, + if (instance.errorType case final value?) 'errorType': value, + if (instance.output case final value?) 'output': value, + if (instance.inputOutput case final value?) 'inputOutput': value, +}; PathMatcher _$PathMatcherFromJson(Map json) => PathMatcher( - path: json['path'] as String, - expected: json['expected'] as String, - comparator: $enumDecode(_$PathComparatorEnumMap, json['comparator']), - ); + path: json['path'] as String, + expected: json['expected'] as String, + comparator: $enumDecode(_$PathComparatorEnumMap, json['comparator']), +); Map _$PathMatcherToJson(PathMatcher instance) => { diff --git a/packages/smithy/smithy/lib/src/ast/traits/waiters/waitable_trait.g.dart b/packages/smithy/smithy/lib/src/ast/traits/waiters/waitable_trait.g.dart index 5a38256f56..f201c44740 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/waiters/waitable_trait.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/waiters/waitable_trait.g.dart @@ -14,6 +14,4 @@ WaitableTrait _$WaitableTraitFromJson(Map json) => ); Map _$WaitableTraitToJson(WaitableTrait instance) => - { - 'waiters': instance.waiters, - }; + {'waiters': instance.waiters}; diff --git a/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.dart b/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.dart index 36950086e2..a62ce04016 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.dart @@ -31,12 +31,12 @@ class Waiter with AWSSerializable, AWSEquatable { @override List get props => [ - documentation, - acceptors, - minDelay, - maxDelay, - tags, - ]; + documentation, + acceptors, + minDelay, + maxDelay, + tags, + ]; @override Map toJson() => _$WaiterToJson(this); diff --git a/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.g.dart b/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.g.dart index c143d115e0..a43b59c1e8 100644 --- a/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.g.dart +++ b/packages/smithy/smithy/lib/src/ast/traits/waiters/waiter.g.dart @@ -7,21 +7,22 @@ part of 'waiter.dart'; // ************************************************************************** Waiter _$WaiterFromJson(Map json) => Waiter( - documentation: json['documentation'] as String?, - acceptors: (json['acceptors'] as List) + documentation: json['documentation'] as String?, + acceptors: + (json['acceptors'] as List) .map(AcceptorDefinition.fromJson) .toList(), - minDelay: (json['minDelay'] as num?)?.toInt() ?? Waiter.defaultMinDelay, - maxDelay: (json['maxDelay'] as num?)?.toInt() ?? Waiter.defaultMaxDelay, - tags: - (json['tags'] as List?)?.map((e) => e as String).toList() ?? - const [], - ); + minDelay: (json['minDelay'] as num?)?.toInt() ?? Waiter.defaultMinDelay, + maxDelay: (json['maxDelay'] as num?)?.toInt() ?? Waiter.defaultMaxDelay, + tags: + (json['tags'] as List?)?.map((e) => e as String).toList() ?? + const [], +); Map _$WaiterToJson(Waiter instance) => { - 'documentation': instance.documentation, - 'acceptors': instance.acceptors, - 'minDelay': instance.minDelay, - 'maxDelay': instance.maxDelay, - 'tags': instance.tags, - }; + 'documentation': instance.documentation, + 'acceptors': instance.acceptors, + 'minDelay': instance.minDelay, + 'maxDelay': instance.maxDelay, + 'tags': instance.tags, +}; diff --git a/packages/smithy/smithy/lib/src/behavior/paginated_result.dart b/packages/smithy/smithy/lib/src/behavior/paginated_result.dart index fd5bd9d702..0d280c969d 100644 --- a/packages/smithy/smithy/lib/src/behavior/paginated_result.dart +++ b/packages/smithy/smithy/lib/src/behavior/paginated_result.dart @@ -4,10 +4,10 @@ import 'package:smithy/smithy.dart'; /// Retrieves the next set of result items for a [PaginatedResult]. -typedef NextPaginatedResultFn - = SmithyOperation> Function([ - PageSize?, -]); +typedef NextPaginatedResultFn = + SmithyOperation> Function([ + PageSize?, + ]); /// {@template smithy.behavior.paginated_result} /// The result of invoking an operation which paginates its result list. @@ -46,6 +46,5 @@ class PaginatedResult { /// Retrieves the next set of result items. SmithyOperation> next([ PageSize? pageSize, - ]) => - _next(pageSize); + ]) => _next(pageSize); } diff --git a/packages/smithy/smithy/lib/src/config/client_config.dart b/packages/smithy/smithy/lib/src/config/client_config.dart index 876c1c71c3..99ba4054cf 100644 --- a/packages/smithy/smithy/lib/src/config/client_config.dart +++ b/packages/smithy/smithy/lib/src/config/client_config.dart @@ -56,11 +56,11 @@ final class _DefaultClientConfig implements ClientConfig { @override ClientConfigBuilder toBuilder() => _DefaultClientConfigBuilder( - baseUri: baseUri, - httpClient: httpClient, - requestInterceptors: requestInterceptors, - responseInterceptors: responseInterceptors, - ); + baseUri: baseUri, + httpClient: httpClient, + requestInterceptors: requestInterceptors, + responseInterceptors: responseInterceptors, + ); } final class _DefaultClientConfigBuilder implements ClientConfigBuilder { @@ -69,8 +69,8 @@ final class _DefaultClientConfigBuilder implements ClientConfigBuilder { this.httpClient, List? requestInterceptors, List? responseInterceptors, - }) : requestInterceptors = List.of(requestInterceptors ?? const []), - responseInterceptors = List.of(responseInterceptors ?? const []); + }) : requestInterceptors = List.of(requestInterceptors ?? const []), + responseInterceptors = List.of(responseInterceptors ?? const []); @override Uri? baseUri; @@ -86,9 +86,9 @@ final class _DefaultClientConfigBuilder implements ClientConfigBuilder { @override ClientConfig build() => _DefaultClientConfig( - baseUri: baseUri, - httpClient: httpClient, - requestInterceptors: List.unmodifiable(requestInterceptors), - responseInterceptors: List.unmodifiable(responseInterceptors), - ); + baseUri: baseUri, + httpClient: httpClient, + requestInterceptors: List.unmodifiable(requestInterceptors), + responseInterceptors: List.unmodifiable(responseInterceptors), + ); } diff --git a/packages/smithy/smithy/lib/src/endpoint.dart b/packages/smithy/smithy/lib/src/endpoint.dart index 1ed9d7a302..e399e81d51 100644 --- a/packages/smithy/smithy/lib/src/endpoint.dart +++ b/packages/smithy/smithy/lib/src/endpoint.dart @@ -9,10 +9,7 @@ /// {@endtemplate} class Endpoint { /// {@macro smithy.endpoint} - const Endpoint({ - required this.uri, - this.isHostnameImmutable = false, - }); + const Endpoint({required this.uri, this.isHostnameImmutable = false}); /// The base URL endpoint clients will use to make API calls to e.g. /// "api.myservice.com". NOTE: Only scheme, port, host and path are valid. diff --git a/packages/smithy/smithy/lib/src/http/exceptions.dart b/packages/smithy/smithy/lib/src/http/exceptions.dart index c1be8fbe50..6a47f865b6 100644 --- a/packages/smithy/smithy/lib/src/http/exceptions.dart +++ b/packages/smithy/smithy/lib/src/http/exceptions.dart @@ -28,8 +28,8 @@ class UnknownSmithyHttpException extends SmithyHttpException { required this.statusCode, required this.body, Map? headers, - }) : headers = headers ?? const {}, - super._(); + }) : headers = headers ?? const {}, + super._(); @override final int statusCode; diff --git a/packages/smithy/smithy/lib/src/http/http_operation.dart b/packages/smithy/smithy/lib/src/http/http_operation.dart index fa129597b7..1e19920e34 100644 --- a/packages/smithy/smithy/lib/src/http/http_operation.dart +++ b/packages/smithy/smithy/lib/src/http/http_operation.dart @@ -35,17 +35,19 @@ abstract class HttpOperation /// Expands labels in [template] using [input]. static String expandLabels(String template, HasLabel input) { final pattern = UriPattern.parse(template); - return pattern.segments.map((segment) { - return switch (segment.type) { - SegmentType.literal => segment.content, - SegmentType.label => _escapeLabel(input.labelFor(segment.content)), - SegmentType.greedyLabel => input - .labelFor(segment.content) - .split('/') - .map(_escapeLabel) - .join('/'), - }; - }).join('/'); + return pattern.segments + .map((segment) { + return switch (segment.type) { + SegmentType.literal => segment.content, + SegmentType.label => _escapeLabel(input.labelFor(segment.content)), + SegmentType.greedyLabel => input + .labelFor(segment.content) + .split('/') + .map(_escapeLabel) + .join('/'), + }; + }) + .join('/'); } static String expandHostLabel(String template, HasLabel input) { @@ -60,15 +62,12 @@ abstract class HttpOperation /// Builds the output from the [payload] and metadata from the HTTP /// [response]. - Output buildOutput( - OutputPayload payload, - AWSBaseHttpResponse response, - ); + Output buildOutput(OutputPayload payload, AWSBaseHttpResponse response); /// The protocols used by this operation for all serialization/deserialization /// of wire formats. Iterable> - get protocols; + get protocols; /// The error types of the operation. List get errorTypes; @@ -99,9 +98,9 @@ abstract class HttpOperation return useProtocol == null ? protocols.first : protocols.firstWhere( - (el) => el.protocolId == useProtocol, - orElse: () => protocols.first, - ); + (el) => el.protocolId == useProtocol, + orElse: () => protocols.first, + ); } /// Generates the hostname for [request], given the [input] and whether the @@ -158,10 +157,7 @@ abstract class HttpOperation // Calculate remaining request parameters final host = _hostForRequest(request, input, uri); - final headers = { - ...protocol.headers, - ...request.headers.asMap(), - }; + final headers = {...protocol.headers, ...request.headers.asMap()}; final queryParameters = { for (final literal in pattern.queryLiterals.entries) literal.key: [literal.value], @@ -181,9 +177,10 @@ abstract class HttpOperation headers: headers, ); - final requestInterceptors = List.of(protocol.requestInterceptors) - ..addAll(request.requestInterceptors) - ..sort((a, b) => a.order.compareTo(b.order)); + final requestInterceptors = + List.of(protocol.requestInterceptors) + ..addAll(request.requestInterceptors) + ..sort((a, b) => a.order.compareTo(b.order)); final responseInterceptors = protocol.responseInterceptors; @@ -217,10 +214,8 @@ abstract class HttpOperation closeWhenDone: false, ); return operation.operation.then( - (response) => deserializeOutput( - protocol: protocol, - response: response, - ), + (response) => + deserializeOutput(protocol: protocol, response: response), ); }, onCancel: () { @@ -284,8 +279,9 @@ abstract class HttpOperation SmithyError? smithyError; final resolvedType = await protocol.resolveErrorType(response); if (resolvedType != null) { - smithyError = - errorTypes.firstWhereOrNull((t) => t.shapeId.shape == resolvedType); + smithyError = errorTypes.firstWhereOrNull( + (t) => t.shapeId.shape == resolvedType, + ); } if (smithyError == null) { throw SmithyHttpException( @@ -316,11 +312,7 @@ abstract class HttpOperation client ??= protocol.getClient(input); final request = buildRequest(input); return send( - createRequest: () => createRequest( - request, - protocol, - input, - ), + createRequest: () => createRequest(request, protocol, input), client: client, protocol: protocol, ); @@ -330,13 +322,15 @@ abstract class HttpOperation /// A version of [HttpOperation] which provides a convenient API for retrieving /// pages of results. abstract class PaginatedHttpOperation< - InputPayload, - Input, - OutputPayload, - Output, - Token, - PageSize, - Items> extends HttpOperation { + InputPayload, + Input, + OutputPayload, + Output, + Token, + PageSize, + Items +> + extends HttpOperation { /// Retrieves the token from the operation output. Token? getToken(Output output); @@ -352,11 +346,7 @@ abstract class PaginatedHttpOperation< AWSHttpClient? client, ShapeId? useProtocol, }) { - final operation = run( - input, - client: client, - useProtocol: useProtocol, - ); + final operation = run(input, client: client, useProtocol: useProtocol); final paginatedOperation = operation.operation.then((output) { final token = getToken(output); final items = getItems(output); diff --git a/packages/smithy/smithy/lib/src/http/http_protocol.dart b/packages/smithy/smithy/lib/src/http/http_protocol.dart index 14c7b7f718..059cce580a 100644 --- a/packages/smithy/smithy/lib/src/http/http_protocol.dart +++ b/packages/smithy/smithy/lib/src/http/http_protocol.dart @@ -21,9 +21,7 @@ abstract class HttpProtocol String get contentType; /// Protocol headers - Map get headers => { - AWSHeaders.contentType: contentType, - }; + Map get headers => {AWSHeaders.contentType: contentType}; Serializers get serializers; @@ -58,37 +56,39 @@ abstract class HttpProtocol List _ => Stream.value(payload), Stream> _ => payload, _ => Stream.fromFuture( - Future.value( - wireSerializer.serialize( - payload, - // Even though we're serializing the payload, specify the - // [Input] type since the semantics of serializing [Input] - // vs [InputPayload] vary. For example, some traits - // may only apply to the payload when serializing it as part - // of an [Input] struct vs. when directly serialized. - // - // We further pass the [InputPayloas] so that our built_value plugins - // have both types which is helpful when making determinations - // about how to, for example, process a List which - // could represent either a Map or a List. - specifiedType: FullType(Input, [FullType(InputPayload)]), - ), + Future.value( + wireSerializer.serialize( + payload, + // Even though we're serializing the payload, specify the + // [Input] type since the semantics of serializing [Input] + // vs [InputPayload] vary. For example, some traits + // may only apply to the payload when serializing it as part + // of an [Input] struct vs. when directly serialized. + // + // We further pass the [InputPayloas] so that our built_value plugins + // have both types which is helpful when making determinations + // about how to, for example, process a List which + // could represent either a Map or a List. + specifiedType: FullType(Input, [FullType(InputPayload)]), ), ), + ), }; } /// Deserializes an HTTP [response] body to an [OutputPayload]. Future deserialize(Stream> response) async { return switch (OutputPayload) { - const (Stream>) => response, - const (List) || const (Uint8List) => await collectBytes(response), - const (String) => await utf8.decodeStream(response), - _ => await wireSerializer.deserialize( - await collectBytes(response), - specifiedType: FullType(OutputPayload), - ), - } as OutputPayload; + const (Stream>) => response, + const (List) || + const (Uint8List) => await collectBytes(response), + const (String) => await utf8.decodeStream(response), + _ => await wireSerializer.deserialize( + await collectBytes(response), + specifiedType: FullType(OutputPayload), + ), + } + as OutputPayload; } } @@ -115,7 +115,6 @@ String sanitizeHeader(String headerValue, {bool isTimestampList = false}) { if ((headerValue.contains(',') || headerValue.contains('\'') || headerValue.contains('"')) && - // Timestamp lists do not get escaped for some reason. !isTimestampList) { return '"${headerValue.replaceAll('"', r'\"')}"'; diff --git a/packages/smithy/smithy/lib/src/http/http_request.dart b/packages/smithy/smithy/lib/src/http/http_request.dart index 6eb1cc3268..c4e077caec 100644 --- a/packages/smithy/smithy/lib/src/http/http_request.dart +++ b/packages/smithy/smithy/lib/src/http/http_request.dart @@ -12,9 +12,7 @@ import 'package:smithy/smithy.dart'; part 'http_request.g.dart'; class RetryConfig with AWSEquatable { - const RetryConfig({ - this.isThrottlingError = false, - }); + const RetryConfig({this.isThrottlingError = false}); final bool isThrottlingError; @@ -114,8 +112,8 @@ class SmithyHttpRequest { this._baseRequest, { List requestInterceptors = const [], List responseInterceptors = const [], - }) : _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; /// The pre-transformed [AWSBaseHttpRequest]. final AWSBaseHttpRequest _baseRequest; diff --git a/packages/smithy/smithy/lib/src/http/http_request.g.dart b/packages/smithy/smithy/lib/src/http/http_request.g.dart index 2d6407c0a8..e4c4213945 100644 --- a/packages/smithy/smithy/lib/src/http/http_request.g.dart +++ b/packages/smithy/smithy/lib/src/http/http_request.g.dart @@ -25,24 +25,33 @@ class _$HttpRequest extends HttpRequest { factory _$HttpRequest([void Function(HttpRequestBuilder)? updates]) => (new HttpRequestBuilder()..update(updates))._build(); - _$HttpRequest._( - {this.hostPrefix, - required this.method, - required this.path, - required this.headers, - required this.queryParameters, - required this.requestInterceptors, - required this.responseInterceptors}) - : super._() { + _$HttpRequest._({ + this.hostPrefix, + required this.method, + required this.path, + required this.headers, + required this.queryParameters, + required this.requestInterceptors, + required this.responseInterceptors, + }) : super._() { BuiltValueNullFieldError.checkNotNull(method, r'HttpRequest', 'method'); BuiltValueNullFieldError.checkNotNull(path, r'HttpRequest', 'path'); BuiltValueNullFieldError.checkNotNull(headers, r'HttpRequest', 'headers'); BuiltValueNullFieldError.checkNotNull( - queryParameters, r'HttpRequest', 'queryParameters'); + queryParameters, + r'HttpRequest', + 'queryParameters', + ); BuiltValueNullFieldError.checkNotNull( - requestInterceptors, r'HttpRequest', 'requestInterceptors'); + requestInterceptors, + r'HttpRequest', + 'requestInterceptors', + ); BuiltValueNullFieldError.checkNotNull( - responseInterceptors, r'HttpRequest', 'responseInterceptors'); + responseInterceptors, + r'HttpRequest', + 'responseInterceptors', + ); } @override @@ -123,16 +132,16 @@ class HttpRequestBuilder implements Builder { ListBuilder get requestInterceptors => _$this._requestInterceptors ??= new ListBuilder(); set requestInterceptors( - ListBuilder? requestInterceptors) => - _$this._requestInterceptors = requestInterceptors; + ListBuilder? requestInterceptors, + ) => _$this._requestInterceptors = requestInterceptors; ListBuilder? _responseInterceptors; ListBuilder get responseInterceptors => _$this._responseInterceptors ??= new ListBuilder(); set responseInterceptors( - ListBuilder? responseInterceptors) => - _$this._responseInterceptors = responseInterceptors; + ListBuilder? responseInterceptors, + ) => _$this._responseInterceptors = responseInterceptors; HttpRequestBuilder(); @@ -168,17 +177,25 @@ class HttpRequestBuilder implements Builder { _$HttpRequest _build() { _$HttpRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpRequest._( - hostPrefix: hostPrefix, - method: BuiltValueNullFieldError.checkNotNull( - method, r'HttpRequest', 'method'), - path: BuiltValueNullFieldError.checkNotNull( - path, r'HttpRequest', 'path'), - headers: headers.build(), - queryParameters: queryParameters.build(), - requestInterceptors: requestInterceptors.build(), - responseInterceptors: responseInterceptors.build()); + hostPrefix: hostPrefix, + method: BuiltValueNullFieldError.checkNotNull( + method, + r'HttpRequest', + 'method', + ), + path: BuiltValueNullFieldError.checkNotNull( + path, + r'HttpRequest', + 'path', + ), + headers: headers.build(), + queryParameters: queryParameters.build(), + requestInterceptors: requestInterceptors.build(), + responseInterceptors: responseInterceptors.build(), + ); } catch (_) { late String _$failedField; try { @@ -192,7 +209,10 @@ class HttpRequestBuilder implements Builder { responseInterceptors.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpRequest', _$failedField, e.toString()); + r'HttpRequest', + _$failedField, + e.toString(), + ); } rethrow; } @@ -236,8 +256,7 @@ class _$HttpResponse extends HttpResponse { @override String toString() { return (newBuiltValueToStringHelper(r'HttpResponse') - ..add('headers', headers)) - .toString(); + ..add('headers', headers)).toString(); } } @@ -286,7 +305,10 @@ class HttpResponseBuilder headers.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpResponse', _$failedField, e.toString()); + r'HttpResponse', + _$failedField, + e.toString(), + ); } rethrow; } @@ -301,17 +323,17 @@ class _$HttpRequestContext extends HttpRequestContext { @override final String? awsSigningRegion; - factory _$HttpRequestContext( - [void Function(HttpRequestContextBuilder)? updates]) => - (new HttpRequestContextBuilder()..update(updates))._build(); + factory _$HttpRequestContext([ + void Function(HttpRequestContextBuilder)? updates, + ]) => (new HttpRequestContextBuilder()..update(updates))._build(); _$HttpRequestContext._({this.awsSigningService, this.awsSigningRegion}) - : super._(); + : super._(); @override HttpRequestContext rebuild( - void Function(HttpRequestContextBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HttpRequestContextBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HttpRequestContextBuilder toBuilder() => @@ -384,10 +406,12 @@ class HttpRequestContextBuilder HttpRequestContext build() => _build(); _$HttpRequestContext _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HttpRequestContext._( - awsSigningService: awsSigningService, - awsSigningRegion: awsSigningRegion); + awsSigningService: awsSigningService, + awsSigningRegion: awsSigningRegion, + ); replace(_$result); return _$result; } diff --git a/packages/smithy/smithy/lib/src/http/http_server.dart b/packages/smithy/smithy/lib/src/http/http_server.dart index 5f4e13f069..83ef364428 100644 --- a/packages/smithy/smithy/lib/src/http/http_server.dart +++ b/packages/smithy/smithy/lib/src/http/http_server.dart @@ -44,18 +44,17 @@ abstract class HttpServerBase implements FullSerializer>> { Future deserialize( Stream> output, { FullType? specifiedType, - }) async => - protocol.wireSerializer.deserialize( - await collectBytes(output), - specifiedType: specifiedType, - ); + }) async => protocol.wireSerializer.deserialize( + await collectBytes(output), + specifiedType: specifiedType, + ); Future handleUncaughtError(Object error, StackTrace st); } class Context { Context(this.request, [HttpResponseBuilder? response]) - : response = response ?? HttpResponseBuilder(); + : response = response ?? HttpResponseBuilder(); final AWSStreamedHttpRequest request; final HttpResponseBuilder response; @@ -63,13 +62,13 @@ class Context { extension ShelfAwsRequest on Request { AWSStreamedHttpRequest get awsRequest => AWSStreamedHttpRequest.raw( - method: AWSHttpMethod.fromString(method), - host: requestedUri.host, - path: requestedUri.path, - headers: headers, - queryParameters: requestedUri.queryParametersAll, - body: read(), - ); + method: AWSHttpMethod.fromString(method), + host: requestedUri.host, + path: requestedUri.path, + headers: headers, + queryParameters: requestedUri.queryParametersAll, + body: read(), + ); } class RpcRouter { diff --git a/packages/smithy/smithy/lib/src/http/interceptors/checksum.dart b/packages/smithy/smithy/lib/src/http/interceptors/checksum.dart index 1af4713a5c..a5d87f7f41 100644 --- a/packages/smithy/smithy/lib/src/http/interceptors/checksum.dart +++ b/packages/smithy/smithy/lib/src/http/interceptors/checksum.dart @@ -20,9 +20,7 @@ class WithChecksum extends HttpRequestInterceptor { const WithChecksum(); @override - Future intercept( - AWSBaseHttpRequest request, - ) async { + Future intercept(AWSBaseHttpRequest request) async { if (request.headers.containsKey(_header)) { return request; } diff --git a/packages/smithy/smithy/lib/src/http/interceptors/common/with_content_length.dart b/packages/smithy/smithy/lib/src/http/interceptors/common/with_content_length.dart index d4b05ddbca..81237dead4 100644 --- a/packages/smithy/smithy/lib/src/http/interceptors/common/with_content_length.dart +++ b/packages/smithy/smithy/lib/src/http/interceptors/common/with_content_length.dart @@ -11,9 +11,7 @@ class WithContentLength extends HttpRequestInterceptor { const WithContentLength(); @override - Future intercept( - AWSBaseHttpRequest request, - ) async { + Future intercept(AWSBaseHttpRequest request) async { final includeHeader = !zIsWeb || isSmithyHttpTest; if (includeHeader) { request.headers[AWSHeaders.contentLength] = diff --git a/packages/smithy/smithy/lib/src/http/interceptors/common/with_header.dart b/packages/smithy/smithy/lib/src/http/interceptors/common/with_header.dart index e8a4042ee3..06992c21f0 100644 --- a/packages/smithy/smithy/lib/src/http/interceptors/common/with_header.dart +++ b/packages/smithy/smithy/lib/src/http/interceptors/common/with_header.dart @@ -13,9 +13,7 @@ class WithHeader extends HttpRequestInterceptor { final bool replace; @override - AWSBaseHttpRequest intercept( - AWSBaseHttpRequest request, - ) { + AWSBaseHttpRequest intercept(AWSBaseHttpRequest request) { if (replace) { request.headers[key] = value; } else { @@ -36,9 +34,7 @@ class WithNoHeader extends HttpRequestInterceptor { int get order => 10; @override - AWSBaseHttpRequest intercept( - AWSBaseHttpRequest request, - ) { + AWSBaseHttpRequest intercept(AWSBaseHttpRequest request) { request.headers.remove(key); return request; } diff --git a/packages/smithy/smithy/lib/src/protocol/generic_json_protocol.dart b/packages/smithy/smithy/lib/src/protocol/generic_json_protocol.dart index 77e7830da9..d4d1073b3c 100644 --- a/packages/smithy/smithy/lib/src/protocol/generic_json_protocol.dart +++ b/packages/smithy/smithy/lib/src/protocol/generic_json_protocol.dart @@ -48,8 +48,8 @@ class GenericJsonProtocol this.responseInterceptors = const [], List> serializers = const [], Map builderFactories = const {}, - }) : _userSerializers = serializers, - _builderFactories = builderFactories; + }) : _userSerializers = serializers, + _builderFactories = builderFactories; @override final List requestInterceptors; @@ -60,24 +60,25 @@ class GenericJsonProtocol final List> _userSerializers; final Map _builderFactories; - static final _coreSerializers = (Serializers().toBuilder() - ..addPlugin(SmithyJsonPlugin()) - ..addAll([ - BigIntSerializer.asString, - Int64Serializer.asString, - TimestampSerializer.dateTime, - const UnitSerializer(), - ])) - .build(); + static final _coreSerializers = + (Serializers().toBuilder() + ..addPlugin(SmithyJsonPlugin()) + ..addAll([ + BigIntSerializer.asString, + Int64Serializer.asString, + TimestampSerializer.dateTime, + const UnitSerializer(), + ])) + .build(); @override late final Serializers serializers = () { - final builder = _coreSerializers.toBuilder() - ..addAll( - _userSerializers.where((el) { - return el.supportedProtocols.contains(protocolId); - }), - ); + final builder = + _coreSerializers.toBuilder()..addAll( + _userSerializers.where((el) { + return el.supportedProtocols.contains(protocolId); + }), + ); for (final entry in _builderFactories.entries) { builder.addBuilderFactory(entry.key, entry.value); } @@ -103,8 +104,10 @@ class GenericJsonProtocol 'application/json'; @override - late final JsonSerializer wireSerializer = - JsonSerializer(serializers, EmptyPayloadType.object); + late final JsonSerializer wireSerializer = JsonSerializer( + serializers, + EmptyPayloadType.object, + ); @override Future resolveErrorType(AWSBaseHttpResponse response) async => null; diff --git a/packages/smithy/smithy/lib/src/serialization/json/blob_serializer.dart b/packages/smithy/smithy/lib/src/serialization/json/blob_serializer.dart index 630c41c67a..82847065d2 100644 --- a/packages/smithy/smithy/lib/src/serialization/json/blob_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/json/blob_serializer.dart @@ -10,16 +10,12 @@ import 'package:smithy/smithy.dart'; /// Serializer for the [Uint8List] (Blob) type. class BlobSerializer extends PrimitiveSmithySerializer { const BlobSerializer([this.mediaType = 'application/octet-stream']) - : super('Blob'); + : super('Blob'); final String mediaType; @override - Iterable get types => [ - Uint8List, - Uint8List(0).runtimeType, - List, - ]; + Iterable get types => [Uint8List, Uint8List(0).runtimeType, List]; @override Uint8List deserialize( @@ -35,8 +31,7 @@ class BlobSerializer extends PrimitiveSmithySerializer { serialized as String; return switch (mediaType) { 'text/plain' || - 'application/octet-stream' => - Uint8List.fromList(utf8.encode(serialized)), + 'application/octet-stream' => Uint8List.fromList(utf8.encode(serialized)), _ => base64Decode(serialized), }; } diff --git a/packages/smithy/smithy/lib/src/serialization/json/encoded_json_object_serializer.dart b/packages/smithy/smithy/lib/src/serialization/json/encoded_json_object_serializer.dart index 957d73480b..42da552b21 100644 --- a/packages/smithy/smithy/lib/src/serialization/json/encoded_json_object_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/json/encoded_json_object_serializer.dart @@ -11,13 +11,13 @@ class EncodedJsonObjectSerializer implements PrimitiveSerializer { @override Iterable get types => const [ - JsonObject, - BoolJsonObject, - ListJsonObject, - MapJsonObject, - NumJsonObject, - StringJsonObject, - ]; + JsonObject, + BoolJsonObject, + ListJsonObject, + MapJsonObject, + NumJsonObject, + StringJsonObject, + ]; @override String get wireName => 'JsonObject'; diff --git a/packages/smithy/smithy/lib/src/serialization/json/timestamp_serializer.dart b/packages/smithy/smithy/lib/src/serialization/json/timestamp_serializer.dart index bb52754dec..2e7ff5c343 100644 --- a/packages/smithy/smithy/lib/src/serialization/json/timestamp_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/json/timestamp_serializer.dart @@ -21,8 +21,9 @@ class TimestampSerializer implements PrimitiveSerializer { static const httpDate = TimestampSerializer._(TimestampFormat.httpDate); /// {@macro smithy.timestamp_format_epochseconds} - static const epochSeconds = - TimestampSerializer._(TimestampFormat.epochSeconds); + static const epochSeconds = TimestampSerializer._( + TimestampFormat.epochSeconds, + ); /// {@macro smithy.timestamp_format_unknown} static const unknown = TimestampSerializer._(TimestampFormat.unknown); diff --git a/packages/smithy/smithy/lib/src/serialization/stream_serializer.dart b/packages/smithy/smithy/lib/src/serialization/stream_serializer.dart index d405f7fd32..52011f99a2 100644 --- a/packages/smithy/smithy/lib/src/serialization/stream_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/stream_serializer.dart @@ -13,9 +13,10 @@ class StreamSerializer Object serialized, { FullType specifiedType = FullType.unspecified, }) async* { - final streamType = specifiedType.isUnspecified - ? FullType.unspecified - : specifiedType.parameters.first; + final streamType = + specifiedType.isUnspecified + ? FullType.unspecified + : specifiedType.parameters.first; if (serialized is Stream) { await for (final value in serialized) { yield serializers.deserialize(value, specifiedType: streamType) as T; @@ -31,9 +32,10 @@ class StreamSerializer Stream object, { FullType specifiedType = FullType.unspecified, }) async* { - final streamType = specifiedType.isUnspecified - ? FullType.unspecified - : specifiedType.parameters.first; + final streamType = + specifiedType.isUnspecified + ? FullType.unspecified + : specifiedType.parameters.first; await for (final value in object) { yield serializers.serialize(value, specifiedType: streamType); } @@ -41,9 +43,9 @@ class StreamSerializer @override Iterable get types => [ - // TODO(dnys1): https://github.com/dart-lang/sdk/issues/49851 - Stream, - ]; + // TODO(dnys1): https://github.com/dart-lang/sdk/issues/49851 + Stream, + ]; @override String get wireName => 'Stream<$T>'; diff --git a/packages/smithy/smithy/lib/src/serialization/struct.dart b/packages/smithy/smithy/lib/src/serialization/struct.dart index c30387bdf5..b44e981b00 100644 --- a/packages/smithy/smithy/lib/src/serialization/struct.dart +++ b/packages/smithy/smithy/lib/src/serialization/struct.dart @@ -18,7 +18,8 @@ abstract class SmithySerializer implements Serializer { } abstract class StructuredSmithySerializer - extends SmithySerializer implements StructuredSerializer { + extends SmithySerializer + implements StructuredSerializer { const StructuredSmithySerializer(super.wireName); @override @@ -40,7 +41,8 @@ abstract class StructuredSmithySerializer } abstract class PrimitiveSmithySerializer - extends SmithySerializer implements PrimitiveSerializer { + extends SmithySerializer + implements PrimitiveSerializer { const PrimitiveSmithySerializer(super.wireName); @override diff --git a/packages/smithy/smithy/lib/src/serialization/xml/smithy_xml_plugin.dart b/packages/smithy/smithy/lib/src/serialization/xml/smithy_xml_plugin.dart index 026d4dc46a..a5e48aa37d 100644 --- a/packages/smithy/smithy/lib/src/serialization/xml/smithy_xml_plugin.dart +++ b/packages/smithy/smithy/lib/src/serialization/xml/smithy_xml_plugin.dart @@ -78,10 +78,7 @@ class SmithyXmlPlugin implements SerializerPlugin { if (key is XmlElementName) { if (key.namespace != null) { attributes.add( - XmlAttribute( - key.namespace!.xmlName, - key.namespace!.uri, - ), + XmlAttribute(key.namespace!.xmlName, key.namespace!.uri), ); } key = XmlName(key.name); @@ -104,8 +101,8 @@ class SmithyXmlPlugin implements SerializerPlugin { value == null ? const [] : value is List - ? value - : [_toNode(value)], + ? value + : [_toNode(value)], ), ); } @@ -113,9 +110,9 @@ class SmithyXmlPlugin implements SerializerPlugin { } Map _toAttributeMap(List attributes) => { - for (final attr in attributes) - if (!attr.isNamespace) attr.name.qualified: attr.value, - }; + for (final attr in attributes) + if (!attr.isNamespace) attr.name.qualified: attr.value, + }; void _nest( XmlBuilder builder, @@ -141,10 +138,7 @@ class SmithyXmlPlugin implements SerializerPlugin { builder.element( elementName, namespaces: namespaces, - attributes: _toAttributeMap([ - ...attributes, - ...value.attributes, - ]), + attributes: _toAttributeMap([...attributes, ...value.attributes]), nest: value.children, ); } else { diff --git a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_list_serializer.dart b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_list_serializer.dart index ef2b9bc060..fb585023a5 100644 --- a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_list_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_list_serializer.dart @@ -23,10 +23,10 @@ class XmlBuiltListSerializer @override Iterable get types => [ - BuiltList, - BuiltList().runtimeType, - BuiltList().runtimeType, - ]; + BuiltList, + BuiltList().runtimeType, + BuiltList().runtimeType, + ]; @override String get wireName => 'list'; @@ -41,9 +41,10 @@ class XmlBuiltListSerializer specifiedType.isUnspecified || specifiedType.parameters.isEmpty; if (!isUnderspecified) serializers.expectBuilder(specifiedType); - final elementType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; + final elementType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; return builtList.expandIndexed((index, Object? item) { var value = serializers.serialize(item, specifiedType: elementType); @@ -52,10 +53,7 @@ class XmlBuiltListSerializer value = value.children; } final elementName = indexer.elementName(memberName, index); - return [ - XmlElementName(elementName, memberNamespace), - value, - ]; + return [XmlElementName(elementName, memberNamespace), value]; }); } @@ -68,13 +66,15 @@ class XmlBuiltListSerializer final isUnderspecified = specifiedType.isUnspecified || specifiedType.parameters.isEmpty; - final elementType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; + final elementType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; - final result = isUnderspecified - ? ListBuilder() - : serializers.newBuilder(specifiedType) as ListBuilder; + final result = + isUnderspecified + ? ListBuilder() + : serializers.newBuilder(specifiedType) as ListBuilder; // ignore: cascade_invocations result.replace( diff --git a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_map_serializer.dart b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_map_serializer.dart index eb8766094b..561a52627c 100644 --- a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_map_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_map_serializer.dart @@ -16,10 +16,10 @@ class XmlBuiltMapSerializer @override Iterable get types => [ - BuiltMap, - BuiltMap().runtimeType, - BuiltMap().runtimeType, - ]; + BuiltMap, + BuiltMap().runtimeType, + BuiltMap().runtimeType, + ]; final String keyName; final String valueName; @@ -39,12 +39,14 @@ class XmlBuiltMapSerializer specifiedType.isUnspecified || specifiedType.parameters.isEmpty; if (!isUnderspecified) serializers.expectBuilder(specifiedType); - final keyType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; - final valueType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[1]; + final keyType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; + final valueType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[1]; var index = 0; final result = []; @@ -55,8 +57,10 @@ class XmlBuiltMapSerializer ..add(XmlElementName(elementKeyName)) ..add(serializers.serialize(key, specifiedType: keyType)); final elementValueName = indexer.elementName(valueName, index); - final serializedValue = - serializers.serialize(value, specifiedType: valueType); + final serializedValue = serializers.serialize( + value, + specifiedType: valueType, + ); innerResult ..add(XmlElementName(elementValueName)) ..add(serializedValue); @@ -75,16 +79,19 @@ class XmlBuiltMapSerializer final isUnderspecified = specifiedType.isUnspecified || specifiedType.parameters.isEmpty; - final keyType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; - final valueType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[1]; + final keyType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; + final valueType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[1]; - final result = isUnderspecified - ? MapBuilder() - : serializers.newBuilder(specifiedType) as MapBuilder; + final result = + isUnderspecified + ? MapBuilder() + : serializers.newBuilder(specifiedType) as MapBuilder; void innerDeserialize(Iterable serialized) { for (var i = 0; i < serialized.length; i += 4) { diff --git a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_multimap_serializer.dart b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_multimap_serializer.dart index 6b99c85f5f..437c6ae65b 100644 --- a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_multimap_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_multimap_serializer.dart @@ -16,10 +16,10 @@ class XmlBuiltMultimapSerializer @override Iterable get types => [ - BuiltListMultimap, - BuiltListMultimap().runtimeType, - BuiltListMultimap().runtimeType, - ]; + BuiltListMultimap, + BuiltListMultimap().runtimeType, + BuiltListMultimap().runtimeType, + ]; final String keyName; final String valueName; @@ -39,9 +39,10 @@ class XmlBuiltMultimapSerializer specifiedType.isUnspecified || specifiedType.parameters.isEmpty; if (!isUnderspecified) serializers.expectBuilder(specifiedType); - final keyType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; + final keyType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; final valueType = FullType(BuiltList, [ if (specifiedType.parameters.isEmpty) FullType.unspecified @@ -79,9 +80,10 @@ class XmlBuiltMultimapSerializer final isUnderspecified = specifiedType.isUnspecified || specifiedType.parameters.isEmpty; - final keyType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; + final keyType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; final valueType = FullType(BuiltList, [ if (specifiedType.parameters.isEmpty) FullType.unspecified @@ -89,19 +91,22 @@ class XmlBuiltMultimapSerializer specifiedType.parameters[1], ]); - final result = isUnderspecified - ? ListMultimapBuilder() - : serializers.newBuilder(specifiedType) as ListMultimapBuilder; + final result = + isUnderspecified + ? ListMultimapBuilder() + : serializers.newBuilder(specifiedType) as ListMultimapBuilder; for (var i = 0; i < serialized.length; i += 2) { final key = serializers.deserialize( serialized.elementAt(i), specifiedType: keyType, ); - final values = serializers.deserialize( - serialized.elementAt(i + 1), - specifiedType: valueType, - ) as Iterable; + final values = + serializers.deserialize( + serialized.elementAt(i + 1), + specifiedType: valueType, + ) + as Iterable; result.addValues(key, values); } diff --git a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_set_serializer.dart b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_set_serializer.dart index f93e565dc7..cefcd7fbb2 100644 --- a/packages/smithy/smithy/lib/src/serialization/xml/xml_built_set_serializer.dart +++ b/packages/smithy/smithy/lib/src/serialization/xml/xml_built_set_serializer.dart @@ -22,10 +22,10 @@ class XmlBuiltSetSerializer implements StructuredSerializer> { @override Iterable get types => [ - BuiltSet, - BuiltSet().runtimeType, - BuiltSet().runtimeType, - ]; + BuiltSet, + BuiltSet().runtimeType, + BuiltSet().runtimeType, + ]; @override String get wireName => 'set'; @@ -40,9 +40,10 @@ class XmlBuiltSetSerializer implements StructuredSerializer> { specifiedType.isUnspecified || specifiedType.parameters.isEmpty; if (!isUnderspecified) serializers.expectBuilder(specifiedType); - final elementType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; + final elementType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; return builtSet.expandIndexed((index, Object? item) { var value = serializers.serialize(item, specifiedType: elementType); @@ -51,10 +52,7 @@ class XmlBuiltSetSerializer implements StructuredSerializer> { value = value.children; } final elementName = indexer.elementName(memberName, index); - return [ - XmlElementName(elementName, memberNamespace), - value, - ]; + return [XmlElementName(elementName, memberNamespace), value]; }); } @@ -67,12 +65,14 @@ class XmlBuiltSetSerializer implements StructuredSerializer> { final isUnderspecified = specifiedType.isUnspecified || specifiedType.parameters.isEmpty; - final elementType = specifiedType.parameters.isEmpty - ? FullType.unspecified - : specifiedType.parameters[0]; - final result = isUnderspecified - ? SetBuilder() - : serializers.newBuilder(specifiedType) as SetBuilder; + final elementType = + specifiedType.parameters.isEmpty + ? FullType.unspecified + : specifiedType.parameters[0]; + final result = + isUnderspecified + ? SetBuilder() + : serializers.newBuilder(specifiedType) as SetBuilder; // ignore: cascade_invocations result.replace( diff --git a/packages/smithy/smithy/lib/src/types/enum.dart b/packages/smithy/smithy/lib/src/types/enum.dart index 3442bb8d8f..dc14d2c058 100644 --- a/packages/smithy/smithy/lib/src/types/enum.dart +++ b/packages/smithy/smithy/lib/src/types/enum.dart @@ -45,12 +45,15 @@ import 'package:smithy/smithy.dart'; /// } /// ``` -abstract class _SmithyEnumBase, - Value extends Object> with AWSSerializable { +abstract class _SmithyEnumBase< + T extends _SmithyEnumBase, + Value extends Object +> + with AWSSerializable { const _SmithyEnumBase(this.index, this.name, this.value); const _SmithyEnumBase.sdkUnknown(this.value) - : index = -1, - name = 'sdkUnknown'; + : index = -1, + name = 'sdkUnknown'; final int index; final String name; @@ -75,8 +78,11 @@ abstract class SmithyIntEnum> const SmithyIntEnum.sdkUnknown(super.value) : super.sdkUnknown(); } -abstract class _SmithyEnumSerializer, - Value extends Object> extends SmithySerializer +abstract class _SmithyEnumSerializer< + T extends _SmithyEnumBase, + Value extends Object +> + extends SmithySerializer implements PrimitiveSerializer { const _SmithyEnumSerializer( super.wireName, { @@ -115,8 +121,7 @@ abstract class _SmithyEnumSerializer, Serializers serializers, T object, { FullType specifiedType = FullType.unspecified, - }) => - object.value; + }) => object.value; @override Iterable get types => [T]; @@ -149,7 +154,8 @@ class SmithyIntEnumSerializer> return switch (serialized) { num _ => serialized.toInt(), String _ => num.parse(serialized).toInt(), - _ => throw ArgumentError( + _ => + throw ArgumentError( 'Invalid serialized value: $serialized (${serialized.runtimeType}). ' 'Expected int or String.', ), diff --git a/packages/smithy/smithy/lib/src/types/timestamp.dart b/packages/smithy/smithy/lib/src/types/timestamp.dart index 36a995d4ed..04c6af2c69 100644 --- a/packages/smithy/smithy/lib/src/types/timestamp.dart +++ b/packages/smithy/smithy/lib/src/types/timestamp.dart @@ -29,9 +29,10 @@ class Timestamp { TimestampFormat format = TimestampFormat.unknown, }) { if (format == TimestampFormat.unknown) { - format = timestamp is String - ? TimestampFormat.dateTime - : TimestampFormat.epochSeconds; + format = + timestamp is String + ? TimestampFormat.dateTime + : TimestampFormat.epochSeconds; } switch (format) { case TimestampFormat.dateTime: @@ -53,10 +54,7 @@ class Timestamp { timestamp is String ? double.parse(timestamp) : timestamp as num; final millisecs = (secs * 1000).truncate(); return Timestamp( - DateTime.fromMillisecondsSinceEpoch( - millisecs, - isUtc: true, - ), + DateTime.fromMillisecondsSinceEpoch(millisecs, isUtc: true), ); default: break; diff --git a/packages/smithy/smithy/lib/src/types/union.dart b/packages/smithy/smithy/lib/src/types/union.dart index fdd9afc671..e62cce273b 100644 --- a/packages/smithy/smithy/lib/src/types/union.dart +++ b/packages/smithy/smithy/lib/src/types/union.dart @@ -32,10 +32,7 @@ abstract class SmithyUnion> /// `built_value`. class SmithyUnionSerializer> implements StructuredSerializer { - const SmithyUnionSerializer( - this.wireName, - this.ctor, - ); + const SmithyUnionSerializer(this.wireName, this.ctor); final JsonConstructor ctor; @@ -48,9 +45,7 @@ class SmithyUnionSerializer> Iterable serialized, { FullType specifiedType = FullType.unspecified, }) { - return ctor({ - serialized.first as String: serialized.elementAt(1), - }); + return ctor({serialized.first as String: serialized.elementAt(1)}); } @override diff --git a/packages/smithy/smithy/pubspec.yaml b/packages/smithy/smithy/pubspec.yaml index 442ffef41c..19b4a1be47 100644 --- a/packages/smithy/smithy/pubspec.yaml +++ b/packages/smithy/smithy/pubspec.yaml @@ -1,16 +1,16 @@ name: smithy description: Smithy client runtime for Dart with common utilities for I/O and serialization. -version: 0.7.4 +version: 0.7.5 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/smithy/smithy issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" + aws_common: ">=0.7.7 <0.8.0" built_collection: ^5.0.0 built_value: ^8.6.0 collection: ^1.15.0 @@ -20,7 +20,7 @@ dependencies: http_parser: ^4.0.0 intl: ">=0.18.0 <1.0.0" json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" retry: ^3.1.0 shelf: ^1.1.0 @@ -28,9 +28,9 @@ dependencies: xml: ">=6.3.0 <=6.5.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 - built_value_generator: 8.9.3 - json_serializable: 6.8.0 + built_value_generator: ^8.9.5 + json_serializable: ^6.9.4 stack_trace: ^1.10.0 test: ^1.22.1 diff --git a/packages/smithy/smithy/test/ast/pattern/uri_pattern_test.dart b/packages/smithy/smithy/test/ast/pattern/uri_pattern_test.dart index bf8ea00f79..3376815b07 100644 --- a/packages/smithy/smithy/test/ast/pattern/uri_pattern_test.dart +++ b/packages/smithy/smithy/test/ast/pattern/uri_pattern_test.dart @@ -16,13 +16,7 @@ void main() { expect(pattern, equals(pattern)); expect(uri.segments.length, equals(3)); expect(uri.queryLiterals.length, equals(2)); - expect( - uri.queryLiterals, - equals({ - 'bam': 'boo', - 'heck': '', - }), - ); + expect(uri.queryLiterals, equals({'bam': 'boo', 'heck': ''})); expect(uri.labels, contains(segment)); expect(uri.getLabel('bar'), equals(segment)); }); diff --git a/packages/smithy/smithy/test/ast/smithy_ast_v1_test.dart b/packages/smithy/smithy/test/ast/smithy_ast_v1_test.dart index acd0e0d233..e62a580b2e 100644 --- a/packages/smithy/smithy/test/ast/smithy_ast_v1_test.dart +++ b/packages/smithy/smithy/test/ast/smithy_ast_v1_test.dart @@ -24,11 +24,12 @@ void main() { final ast = SmithyAst.fromJson(map); const shapeId = ShapeId(namespace: 'smithy.example', shape: 'MyString'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v1 - ..shapes = ShapeMap({ - shapeId: StringShape((b) => b..shapeId = shapeId), - }), + (b) => + b + ..version = SmithyVersion.v1 + ..shapes = ShapeMap({ + shapeId: StringShape((b) => b..shapeId = shapeId), + }), ); expect(ast, expected); expect(expected.toJson(), equals(map)); @@ -53,25 +54,34 @@ void main() { } }'''; - const serviceId = - ShapeId(namespace: 'smithy.example', shape: 'Service'); - const operationId = - ShapeId(namespace: 'smithy.example', shape: 'Operation'); + const serviceId = ShapeId( + namespace: 'smithy.example', + shape: 'Service', + ); + const operationId = ShapeId( + namespace: 'smithy.example', + shape: 'Operation', + ); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v1 - ..shapes = ShapeMap({ - serviceId: ServiceShape( - (s) => s - ..shapeId = serviceId - ..operations.add(ShapeRef((b) => b.target = operationId)), - ), - operationId: OperationShape((b) => b.shapeId = operationId), - }), + (b) => + b + ..version = SmithyVersion.v1 + ..shapes = ShapeMap({ + serviceId: ServiceShape( + (s) => + s + ..shapeId = serviceId + ..operations.add( + ShapeRef((b) => b.target = operationId), + ), + ), + operationId: OperationShape((b) => b.shapeId = operationId), + }), + ); + final decoded = SmithyAst.fromJson( + jsonDecode(json) as Map, ); - final decoded = - SmithyAst.fromJson(jsonDecode(json) as Map); expect(decoded, equals(expected)); }); @@ -100,21 +110,24 @@ void main() { ..shapeId = listId.replace(member: 'member') ..memberName = 'member' ..traits = TraitMap({ - DocumentationTrait.id: - const DocumentationTrait('Member documentation'), + DocumentationTrait.id: const DocumentationTrait( + 'Member documentation', + ), }); }); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v1 - ..shapes = ShapeMap({ - listId: ListShape( - (b) => b - ..shapeId = listId - ..member.replace(memberShape), - ), - }), + (b) => + b + ..version = SmithyVersion.v1 + ..shapes = ShapeMap({ + listId: ListShape( + (b) => + b + ..shapeId = listId + ..member.replace(memberShape), + ), + }), ); final decoded = SmithyAst.fromJson( @@ -145,20 +158,22 @@ void main() { const integerId = ShapeId(namespace: 'smithy.api', shape: 'Integer'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v1 - ..shapes = ShapeMap({ - mapId: MapShape((b) { - b - ..shapeId = mapId - ..key.target = stringId - ..value.target = integerId; - }), - }), + (b) => + b + ..version = SmithyVersion.v1 + ..shapes = ShapeMap({ + mapId: MapShape((b) { + b + ..shapeId = mapId + ..key.target = stringId + ..value.target = integerId; + }), + }), ); - final decoded = - SmithyAst.fromJson(jsonDecode(json) as Map); + final decoded = SmithyAst.fromJson( + jsonDecode(json) as Map, + ); expect(decoded, equals(expected)); }); @@ -184,42 +199,53 @@ void main() { } }'''; - const structureId = - ShapeId(namespace: 'smithy.example', shape: 'MyStructure'); + const structureId = ShapeId( + namespace: 'smithy.example', + shape: 'MyStructure', + ); const stringId = ShapeId(namespace: 'smithy.api', shape: 'String'); const integerId = ShapeId(namespace: 'smithy.api', shape: 'Integer'); const requiredId = ShapeId(namespace: 'smithy.api', shape: 'required'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v1 - ..shapes = ShapeMap({ - structureId: StructureShape( - (b) => b - ..shapeId = structureId - ..members = NamedMembersMap({ - 'stringMember': MemberShape( - (b) => b - ..shapeId = structureId.replace(member: 'stringMember') - ..target = stringId - ..memberName = 'stringMember' - ..traits = TraitMap({ - requiredId: const RequiredTrait(), - }), - ), - 'numberMember': MemberShape( - (b) => b - ..shapeId = structureId.replace(member: 'numberMember') - ..memberName = 'numberMember' - ..target = integerId, - ), - }), - ), - }), + (b) => + b + ..version = SmithyVersion.v1 + ..shapes = ShapeMap({ + structureId: StructureShape( + (b) => + b + ..shapeId = structureId + ..members = NamedMembersMap({ + 'stringMember': MemberShape( + (b) => + b + ..shapeId = structureId.replace( + member: 'stringMember', + ) + ..target = stringId + ..memberName = 'stringMember' + ..traits = TraitMap({ + requiredId: const RequiredTrait(), + }), + ), + 'numberMember': MemberShape( + (b) => + b + ..shapeId = structureId.replace( + member: 'numberMember', + ) + ..memberName = 'numberMember' + ..target = integerId, + ), + }), + ), + }), ); - final decoded = - SmithyAst.fromJson(jsonDecode(json) as Map); + final decoded = SmithyAst.fromJson( + jsonDecode(json) as Map, + ); expect(decoded, equals(expected)); }); @@ -249,27 +275,31 @@ void main() { final stringId = ShapeId.parse('smithy.api#String'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v1 - ..shapes = ShapeMap({ - structId: StructureShape( - (b) => b - ..shapeId = structId - ..members = NamedMembersMap({ - 'foo': MemberShape( - (b) => b - ..shapeId = structId.replace(member: 'foo') - ..memberName = 'foo' - ..target = stringId - ..traits = TraitMap({ - DocumentationTrait.id: const DocumentationTrait( - 'My documentation string', - ), - }), - ), - }), - ), - }), + (b) => + b + ..version = SmithyVersion.v1 + ..shapes = ShapeMap({ + structId: StructureShape( + (b) => + b + ..shapeId = structId + ..members = NamedMembersMap({ + 'foo': MemberShape( + (b) => + b + ..shapeId = structId.replace(member: 'foo') + ..memberName = 'foo' + ..target = stringId + ..traits = TraitMap({ + DocumentationTrait + .id: const DocumentationTrait( + 'My documentation string', + ), + }), + ), + }), + ), + }), ); final decoded = SmithyAst.fromJson( @@ -308,43 +338,54 @@ void main() { final stringId = ShapeId.parse('smithy.example#FooEnum'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v1 - ..shapes = ShapeMap({ - stringId: StringEnumShape( - (e) => e - ..shapeId = stringId - ..members = NamedMembersMap({ - 'FOO': MemberShape( - (b) => b - ..target = Shape.unit - ..memberName = 'FOO' - ..shapeId = stringId.replace(member: 'FOO') - ..traits = TraitMap({ - EnumValueTrait.id: const EnumValueTrait('Foo'), - }), - ), - 'BAR': MemberShape( - (b) => b - ..target = Shape.unit - ..memberName = 'BAR' - ..shapeId = stringId.replace(member: 'BAR') - ..traits = TraitMap({ - EnumValueTrait.id: const EnumValueTrait('bar'), - }), - ), - 'baz': MemberShape( - (b) => b - ..target = Shape.unit - ..memberName = 'baz' - ..shapeId = stringId.replace(member: 'baz') - ..traits = TraitMap({ - EnumValueTrait.id: const EnumValueTrait('baz'), - }), - ), - }), - ), - }), + (b) => + b + ..version = SmithyVersion.v1 + ..shapes = ShapeMap({ + stringId: StringEnumShape( + (e) => + e + ..shapeId = stringId + ..members = NamedMembersMap({ + 'FOO': MemberShape( + (b) => + b + ..target = Shape.unit + ..memberName = 'FOO' + ..shapeId = stringId.replace(member: 'FOO') + ..traits = TraitMap({ + EnumValueTrait.id: const EnumValueTrait( + 'Foo', + ), + }), + ), + 'BAR': MemberShape( + (b) => + b + ..target = Shape.unit + ..memberName = 'BAR' + ..shapeId = stringId.replace(member: 'BAR') + ..traits = TraitMap({ + EnumValueTrait.id: const EnumValueTrait( + 'bar', + ), + }), + ), + 'baz': MemberShape( + (b) => + b + ..target = Shape.unit + ..memberName = 'baz' + ..shapeId = stringId.replace(member: 'baz') + ..traits = TraitMap({ + EnumValueTrait.id: const EnumValueTrait( + 'baz', + ), + }), + ), + }), + ), + }), ); final decoded = SmithyAst.fromJson( diff --git a/packages/smithy/smithy/test/ast/smithy_ast_v2_test.dart b/packages/smithy/smithy/test/ast/smithy_ast_v2_test.dart index 68c6f9d25d..06ff1d5256 100644 --- a/packages/smithy/smithy/test/ast/smithy_ast_v2_test.dart +++ b/packages/smithy/smithy/test/ast/smithy_ast_v2_test.dart @@ -24,11 +24,12 @@ void main() { final ast = SmithyAst.fromJson(map); const shapeId = ShapeId(namespace: 'smithy.example', shape: 'MyString'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({ - shapeId: StringShape((b) => b..shapeId = shapeId), - }), + (b) => + b + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({ + shapeId: StringShape((b) => b..shapeId = shapeId), + }), ); expect(ast, expected); expect(expected.toJson(), equals(map)); @@ -53,25 +54,34 @@ void main() { } }'''; - const serviceId = - ShapeId(namespace: 'smithy.example', shape: 'Service'); - const operationId = - ShapeId(namespace: 'smithy.example', shape: 'Operation'); + const serviceId = ShapeId( + namespace: 'smithy.example', + shape: 'Service', + ); + const operationId = ShapeId( + namespace: 'smithy.example', + shape: 'Operation', + ); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({ - serviceId: ServiceShape( - (s) => s - ..shapeId = serviceId - ..operations.add(ShapeRef((b) => b.target = operationId)), - ), - operationId: OperationShape((b) => b.shapeId = operationId), - }), + (b) => + b + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({ + serviceId: ServiceShape( + (s) => + s + ..shapeId = serviceId + ..operations.add( + ShapeRef((b) => b.target = operationId), + ), + ), + operationId: OperationShape((b) => b.shapeId = operationId), + }), + ); + final decoded = SmithyAst.fromJson( + jsonDecode(json) as Map, ); - final decoded = - SmithyAst.fromJson(jsonDecode(json) as Map); expect(decoded, equals(expected)); }); @@ -100,21 +110,24 @@ void main() { ..shapeId = listId.replace(member: 'member') ..memberName = 'member' ..traits = TraitMap({ - DocumentationTrait.id: - const DocumentationTrait('Member documentation'), + DocumentationTrait.id: const DocumentationTrait( + 'Member documentation', + ), }); }); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({ - listId: ListShape( - (b) => b - ..shapeId = listId - ..member.replace(memberShape), - ), - }), + (b) => + b + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({ + listId: ListShape( + (b) => + b + ..shapeId = listId + ..member.replace(memberShape), + ), + }), ); final decoded = SmithyAst.fromJson( @@ -145,20 +158,22 @@ void main() { const integerId = ShapeId(namespace: 'smithy.api', shape: 'Integer'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({ - mapId: MapShape((b) { - b - ..shapeId = mapId - ..key.target = stringId - ..value.target = integerId; - }), - }), + (b) => + b + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({ + mapId: MapShape((b) { + b + ..shapeId = mapId + ..key.target = stringId + ..value.target = integerId; + }), + }), ); - final decoded = - SmithyAst.fromJson(jsonDecode(json) as Map); + final decoded = SmithyAst.fromJson( + jsonDecode(json) as Map, + ); expect(decoded, equals(expected)); }); @@ -184,42 +199,53 @@ void main() { } }'''; - const structureId = - ShapeId(namespace: 'smithy.example', shape: 'MyStructure'); + const structureId = ShapeId( + namespace: 'smithy.example', + shape: 'MyStructure', + ); const stringId = ShapeId(namespace: 'smithy.api', shape: 'String'); const integerId = ShapeId(namespace: 'smithy.api', shape: 'Integer'); const requiredId = ShapeId(namespace: 'smithy.api', shape: 'required'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({ - structureId: StructureShape( - (b) => b - ..shapeId = structureId - ..members = NamedMembersMap({ - 'stringMember': MemberShape( - (b) => b - ..shapeId = structureId.replace(member: 'stringMember') - ..target = stringId - ..memberName = 'stringMember' - ..traits = TraitMap({ - requiredId: const RequiredTrait(), - }), - ), - 'numberMember': MemberShape( - (b) => b - ..shapeId = structureId.replace(member: 'numberMember') - ..memberName = 'numberMember' - ..target = integerId, - ), - }), - ), - }), + (b) => + b + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({ + structureId: StructureShape( + (b) => + b + ..shapeId = structureId + ..members = NamedMembersMap({ + 'stringMember': MemberShape( + (b) => + b + ..shapeId = structureId.replace( + member: 'stringMember', + ) + ..target = stringId + ..memberName = 'stringMember' + ..traits = TraitMap({ + requiredId: const RequiredTrait(), + }), + ), + 'numberMember': MemberShape( + (b) => + b + ..shapeId = structureId.replace( + member: 'numberMember', + ) + ..memberName = 'numberMember' + ..target = integerId, + ), + }), + ), + }), ); - final decoded = - SmithyAst.fromJson(jsonDecode(json) as Map); + final decoded = SmithyAst.fromJson( + jsonDecode(json) as Map, + ); expect(decoded, equals(expected)); }); @@ -249,27 +275,31 @@ void main() { final stringId = ShapeId.parse('smithy.api#String'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({ - structId: StructureShape( - (b) => b - ..shapeId = structId - ..members = NamedMembersMap({ - 'foo': MemberShape( - (b) => b - ..shapeId = structId.replace(member: 'foo') - ..memberName = 'foo' - ..target = stringId - ..traits = TraitMap({ - DocumentationTrait.id: const DocumentationTrait( - 'My documentation string', - ), - }), - ), - }), - ), - }), + (b) => + b + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({ + structId: StructureShape( + (b) => + b + ..shapeId = structId + ..members = NamedMembersMap({ + 'foo': MemberShape( + (b) => + b + ..shapeId = structId.replace(member: 'foo') + ..memberName = 'foo' + ..target = stringId + ..traits = TraitMap({ + DocumentationTrait + .id: const DocumentationTrait( + 'My documentation string', + ), + }), + ), + }), + ), + }), ); final decoded = SmithyAst.fromJson( @@ -313,43 +343,54 @@ void main() { final stringId = ShapeId.parse('smithy.example#FooEnum'); final expected = SmithyAst( - (b) => b - ..version = SmithyVersion.v2 - ..shapes = ShapeMap({ - stringId: StringEnumShape( - (e) => e - ..shapeId = stringId - ..members = NamedMembersMap({ - 'FOO': MemberShape( - (b) => b - ..target = Shape.unit - ..memberName = 'FOO' - ..shapeId = stringId.replace(member: 'FOO') - ..traits = TraitMap({ - EnumValueTrait.id: const EnumValueTrait('Foo'), - }), - ), - 'BAR': MemberShape( - (b) => b - ..target = Shape.unit - ..memberName = 'BAR' - ..shapeId = stringId.replace(member: 'BAR') - ..traits = TraitMap({ - EnumValueTrait.id: const EnumValueTrait('bar'), - }), - ), - 'baz': MemberShape( - (b) => b - ..target = Shape.unit - ..memberName = 'baz' - ..shapeId = stringId.replace(member: 'baz') - ..traits = TraitMap({ - EnumValueTrait.id: const EnumValueTrait('baz'), - }), - ), - }), - ), - }), + (b) => + b + ..version = SmithyVersion.v2 + ..shapes = ShapeMap({ + stringId: StringEnumShape( + (e) => + e + ..shapeId = stringId + ..members = NamedMembersMap({ + 'FOO': MemberShape( + (b) => + b + ..target = Shape.unit + ..memberName = 'FOO' + ..shapeId = stringId.replace(member: 'FOO') + ..traits = TraitMap({ + EnumValueTrait.id: const EnumValueTrait( + 'Foo', + ), + }), + ), + 'BAR': MemberShape( + (b) => + b + ..target = Shape.unit + ..memberName = 'BAR' + ..shapeId = stringId.replace(member: 'BAR') + ..traits = TraitMap({ + EnumValueTrait.id: const EnumValueTrait( + 'bar', + ), + }), + ), + 'baz': MemberShape( + (b) => + b + ..target = Shape.unit + ..memberName = 'baz' + ..shapeId = stringId.replace(member: 'baz') + ..traits = TraitMap({ + EnumValueTrait.id: const EnumValueTrait( + 'baz', + ), + }), + ), + }), + ), + }), ); final decoded = SmithyAst.fromJson( diff --git a/packages/smithy/smithy/test/enum_test.dart b/packages/smithy/smithy/test/enum_test.dart index 22f4e0a197..e8e46eafc5 100644 --- a/packages/smithy/smithy/test/enum_test.dart +++ b/packages/smithy/smithy/test/enum_test.dart @@ -16,11 +16,7 @@ class _MyEnum extends SmithyEnum<_MyEnum> { static const foo = _MyEnum._(2, 'FOO', 'Foo'); /// All values of [_MyEnum]. - static const values = <_MyEnum>[ - _MyEnum.bar, - _MyEnum.baz, - _MyEnum.foo, - ]; + static const values = <_MyEnum>[_MyEnum.bar, _MyEnum.baz, _MyEnum.foo]; // ignore: unused_field static const List> serializers = [ @@ -57,24 +53,15 @@ void main() { }); test('byName', () { - expect( - _MyEnum.values.byName('foo'), - equals(_MyEnum.foo), - ); + expect(_MyEnum.values.byName('foo'), equals(_MyEnum.foo)); }); test('byValue', () { - expect( - _MyEnum.values.byValue('Foo'), - equals(_MyEnum.foo), - ); + expect(_MyEnum.values.byValue('Foo'), equals(_MyEnum.foo)); }); test('byValue (unknown)', () { - expect( - () => _MyEnum.values.byValue('UNKNOWN'), - throwsStateError, - ); + expect(() => _MyEnum.values.byValue('UNKNOWN'), throwsStateError); }); }); } diff --git a/packages/smithy/smithy/test/http/host_prefix_test.dart b/packages/smithy/smithy/test/http/host_prefix_test.dart index 2e63caf60b..4d0962d4a2 100644 --- a/packages/smithy/smithy/test/http/host_prefix_test.dart +++ b/packages/smithy/smithy/test/http/host_prefix_test.dart @@ -14,13 +14,14 @@ void main() { test('Test Case 1', () async { final op = TestOp1(); const input = Unit(); - final req = await op - .createRequest( - op.buildRequest(input), - GenericJsonProtocol(), - input, - ) - .transformRequest(); + final req = + await op + .createRequest( + op.buildRequest(input), + GenericJsonProtocol(), + input, + ) + .transformRequest(); expect( req.uri.host, equalsIgnoringCase('data.service.us-west-2.amazonaws.com'), @@ -30,13 +31,16 @@ void main() { test('Test Case 2', () async { final op = TestOp2(); const input = TestOp2Input(); - final req = await op - .createRequest( - op.buildRequest(input), - GenericJsonProtocol(serializers: [const TestOp2InputSerializer()]), - input, - ) - .transformRequest(); + final req = + await op + .createRequest( + op.buildRequest(input), + GenericJsonProtocol( + serializers: [const TestOp2InputSerializer()], + ), + input, + ) + .transformRequest(); expect( req.uri.host, equalsIgnoringCase( @@ -53,26 +57,22 @@ class TestOp1 extends HttpOperation { @override HttpRequest buildRequest(Unit input) => HttpRequest((b) { - b - ..method = 'GET' - ..path = '/' - ..hostPrefix = 'data.'; - }); + b + ..method = 'GET' + ..path = '/' + ..hostPrefix = 'data.'; + }); @override - Unit buildOutput( - Unit payload, - AWSBaseHttpResponse response, - ) => - payload; + Unit buildOutput(Unit payload, AWSBaseHttpResponse response) => payload; @override List get errorTypes => const []; @override Iterable> get protocols => [ - GenericJsonProtocol(), - ]; + GenericJsonProtocol(), + ]; @override int successCode([Unit? output]) => 200; @@ -102,8 +102,9 @@ class TestOp2InputSerializer const TestOp2InputSerializer(); @override - Iterable get supportedProtocols => - [GenericJsonProtocolDefinitionTrait.id]; + Iterable get supportedProtocols => [ + GenericJsonProtocolDefinitionTrait.id, + ]; @override Iterable get types => const [TestOp2Input]; @@ -136,27 +137,21 @@ class TestOp2 extends HttpOperation { @override HttpRequest buildRequest(TestOp2Input input) => HttpRequest((b) { - b - ..method = 'GET' - ..path = '/' - ..hostPrefix = '{Bucket}-{AccountId}.'; - }); + b + ..method = 'GET' + ..path = '/' + ..hostPrefix = '{Bucket}-{AccountId}.'; + }); @override - Unit buildOutput( - Unit payload, - AWSBaseHttpResponse response, - ) => - payload; + Unit buildOutput(Unit payload, AWSBaseHttpResponse response) => payload; @override List get errorTypes => const []; @override Iterable> - get protocols => [ - GenericJsonProtocol(), - ]; + get protocols => [GenericJsonProtocol()]; @override int successCode([Unit? output]) => 200; diff --git a/packages/smithy/smithy/test/http/http_operation_test.dart b/packages/smithy/smithy/test/http/http_operation_test.dart index f3c284d19f..139c940585 100644 --- a/packages/smithy/smithy/test/http/http_operation_test.dart +++ b/packages/smithy/smithy/test/http/http_operation_test.dart @@ -37,8 +37,9 @@ void main() { test('can deserialize output', () async { final operation = TestOp(); - final body = - GenericJsonProtocol().serialize(const Unit()); + final body = GenericJsonProtocol().serialize( + const Unit(), + ); final client = MockAWSHttpClient((req, isCancelled) { return AWSStreamedHttpResponse(statusCode: 200, body: body); }); @@ -56,10 +57,7 @@ void main() { }); final op = operation.run(const Unit(), client: client); expect(op.requestProgress, emitsThrough(emitsDone)); - expect( - op.responseProgress, - emitsInOrder([5, emitsDone]), - ); + expect(op.responseProgress, emitsInOrder([5, emitsDone])); expect(op.result, throwsA(isA())); }); @@ -77,8 +75,9 @@ void main() { test('can transform request/response', () async { final operation = TestOp(); - final body = - GenericJsonProtocol().serialize(const Unit()); + final body = GenericJsonProtocol().serialize( + const Unit(), + ); final client = TransformingClient( onRequest: expectAsync1((_) {}), onResponse: expectAsync1((_) {}), @@ -95,11 +94,7 @@ void main() { } class TransformingClient extends AWSBaseHttpClient { - TransformingClient({ - this.onRequest, - this.onResponse, - this.baseClient, - }); + TransformingClient({this.onRequest, this.onResponse, this.baseClient}); @override final AWSHttpClient? baseClient; @@ -124,10 +119,11 @@ class TransformingClient extends AWSBaseHttpClient { } } -typedef Deserialize = Future Function( - HttpProtocol protocol, - AWSBaseHttpResponse response, -); +typedef Deserialize = + Future Function( + HttpProtocol protocol, + AWSBaseHttpResponse response, + ); class TestOp extends HttpOperation { TestOp([this._deserializeOutput]); @@ -138,16 +134,14 @@ class TestOp extends HttpOperation { Uri get baseUri => Uri.parse('https://service.us-west-2.amazonaws.com/'); @override - Retryer get retryer => const Retryer( - RetryOptions(maxAttempts: 1), - ); + Retryer get retryer => const Retryer(RetryOptions(maxAttempts: 1)); @override HttpRequest buildRequest(Unit input) => HttpRequest((b) { - b - ..method = 'GET' - ..path = '/'; - }); + b + ..method = 'GET' + ..path = '/'; + }); @override Future deserializeOutput({ @@ -155,26 +149,19 @@ class TestOp extends HttpOperation { required AWSBaseHttpResponse response, }) { return _deserializeOutput?.call(protocol, response) ?? - super.deserializeOutput( - protocol: protocol, - response: response, - ); + super.deserializeOutput(protocol: protocol, response: response); } @override - Unit buildOutput( - Unit payload, - AWSBaseHttpResponse response, - ) => - payload; + Unit buildOutput(Unit payload, AWSBaseHttpResponse response) => payload; @override List get errorTypes => const []; @override Iterable> get protocols => [ - GenericJsonProtocol(), - ]; + GenericJsonProtocol(), + ]; @override int successCode([Unit? output]) => 200; @@ -189,14 +176,8 @@ class TestOp extends HttpOperation { ShapeId? useProtocol, }) { return runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), - zoneValues: { - AWSHeaders.sdkInvocationId: uuid(secure: true), - }, + () => super.run(input, client: client, useProtocol: useProtocol), + zoneValues: {AWSHeaders.sdkInvocationId: uuid(secure: true)}, ); } } diff --git a/packages/smithy/smithy/test/http_headers_test.dart b/packages/smithy/smithy/test/http_headers_test.dart index d8bc73d52a..cf7735fdc7 100644 --- a/packages/smithy/smithy/test/http_headers_test.dart +++ b/packages/smithy/smithy/test/http_headers_test.dart @@ -12,9 +12,9 @@ void main() { // ); expect( parseHeader( - 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', - isTimestampList: true, - ) + 'Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT', + isTimestampList: true, + ) .map((t) => Timestamp.parse(t, format: TimestampFormat.httpDate)) .map((t) => t.format(TimestampFormat.epochSeconds)), equals([1576540098, 1576540098]), diff --git a/packages/smithy/smithy_aws/CHANGELOG.md b/packages/smithy/smithy_aws/CHANGELOG.md index 9596d5f823..6dee0588b6 100644 --- a/packages/smithy/smithy_aws/CHANGELOG.md +++ b/packages/smithy/smithy_aws/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.7.5 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.7.4 - Minor bug fixes and improvements diff --git a/packages/smithy/smithy_aws/lib/smithy_aws.dart b/packages/smithy/smithy_aws/lib/smithy_aws.dart index a46d6a5839..e50e74f6c8 100644 --- a/packages/smithy/smithy_aws/lib/smithy_aws.dart +++ b/packages/smithy/smithy_aws/lib/smithy_aws.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// AWS runtime for Smithy. -library smithy_aws; +library; /// Endpoint export 'src/endpoint/aws_endpoint.dart'; diff --git a/packages/smithy/smithy_aws/lib/src/endpoint/aws_endpoint.dart b/packages/smithy/smithy_aws/lib/src/endpoint/aws_endpoint.dart index a8b527e38e..a5b4467237 100644 --- a/packages/smithy/smithy_aws/lib/src/endpoint/aws_endpoint.dart +++ b/packages/smithy/smithy_aws/lib/src/endpoint/aws_endpoint.dart @@ -11,10 +11,7 @@ import 'package:smithy_aws/src/endpoint/credential_scope.dart'; /// {@endtemplate} class AWSEndpoint { /// {@macro smithy_aws.aws_endpoint} - const AWSEndpoint({ - required this.endpoint, - this.credentialScope, - }); + const AWSEndpoint({required this.endpoint, this.credentialScope}); /// The endpoint clients will use to make API calls to e.g. /// "{service-id}.{region}.amazonaws.com". diff --git a/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.dart b/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.dart index 242af24de6..9449d23cdd 100644 --- a/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.dart +++ b/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.dart @@ -14,10 +14,7 @@ part 'credential_scope.g.dart'; @JsonSerializable() class CredentialScope with AWSSerializable> { /// {@macro smithy_aws.credential_scope} - const CredentialScope({ - this.region, - this.service, - }); + const CredentialScope({this.region, this.service}); factory CredentialScope.fromJson(Map json) => _$CredentialScopeFromJson(json); @@ -30,9 +27,9 @@ class CredentialScope with AWSSerializable> { /// Zone value overrides for use in [runZoned]. Map get zoneValues => { - #sigV4Region: region, - #sigV4Service: service, - }; + #sigV4Region: region, + #sigV4Service: service, + }; @override Map toJson() => _$CredentialScopeToJson(this); diff --git a/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.g.dart b/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.g.dart index d2909b40a2..ab774b6154 100644 --- a/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.g.dart +++ b/packages/smithy/smithy_aws/lib/src/endpoint/credential_scope.g.dart @@ -13,7 +13,4 @@ CredentialScope _$CredentialScopeFromJson(Map json) => ); Map _$CredentialScopeToJson(CredentialScope instance) => - { - 'region': instance.region, - 'service': instance.service, - }; + {'region': instance.region, 'service': instance.service}; diff --git a/packages/smithy/smithy_aws/lib/src/endpoint/partition.dart b/packages/smithy/smithy_aws/lib/src/endpoint/partition.dart index a0310770b8..5e311a2bd3 100644 --- a/packages/smithy/smithy_aws/lib/src/endpoint/partition.dart +++ b/packages/smithy/smithy_aws/lib/src/endpoint/partition.dart @@ -23,14 +23,7 @@ AWSEndpoint resolveEndpoint(List partitions, String region) { } /// Acceptable signature versions -enum AWSSignatureVersion { - v2, - v4, - s3, - s3v4, - v3, - v3https, -} +enum AWSSignatureVersion { v2, v4, s3, s3v4, v3, v3https } /// {@template smithy_aws.endpoint_definition} /// A description of a single service endpoint. @@ -78,14 +71,14 @@ class EndpointDefinition with AWSSerializable { final hostname = merged.hostname!.replaceAll('{region}', region); final sortedProtocols = [...merged.protocols]..sort((a, b) { - final aIdx = _protocolPriority.indexOf(a); - final bIdx = _protocolPriority.indexOf(b); - return (aIdx > -1 && bIdx > -1) - ? aIdx.compareTo(bIdx) - : aIdx > -1 - ? -1 - : 1; - }); + final aIdx = _protocolPriority.indexOf(a); + final bIdx = _protocolPriority.indexOf(b); + return (aIdx > -1 && bIdx > -1) + ? aIdx.compareTo(bIdx) + : aIdx > -1 + ? -1 + : 1; + }); final protocol = sortedProtocols.first; final signingName = merged.credentialScope?.service; final signingRegion = merged.credentialScope?.region; @@ -106,10 +99,7 @@ class EndpointDefinition with AWSSerializable { /// Applies [defaults] to this endpoint definition. EndpointDefinition withDefaults(EndpointDefinition defaults) { final hostname = this.hostname ?? defaults.hostname; - final protocols = { - ...this.protocols, - ...defaults.protocols, - }.toList(); + final protocols = {...this.protocols, ...defaults.protocols}.toList(); if (protocols.isEmpty) { protocols.add(_defaultProtocol); } @@ -118,10 +108,8 @@ class EndpointDefinition with AWSSerializable { final service = this.credentialScope?.service ?? defaults.credentialScope?.service; final credentialScope = CredentialScope(region: region, service: service); - final signatureVersions = { - ...this.signatureVersions, - ...defaults.signatureVersions, - }.toList(); + final signatureVersions = + {...this.signatureVersions, ...defaults.signatureVersions}.toList(); if (signatureVersions.isEmpty) { signatureVersions.add(_defaultSigner); } diff --git a/packages/smithy/smithy_aws/lib/src/endpoint/partition.g.dart b/packages/smithy/smithy_aws/lib/src/endpoint/partition.g.dart index 1b129edb7b..b2e3f88066 100644 --- a/packages/smithy/smithy_aws/lib/src/endpoint/partition.g.dart +++ b/packages/smithy/smithy_aws/lib/src/endpoint/partition.g.dart @@ -6,36 +6,43 @@ part of 'partition.dart'; // JsonSerializableGenerator // ************************************************************************** -EndpointDefinition _$EndpointDefinitionFromJson(Map json) => - EndpointDefinition( - hostname: json['hostname'] as String?, - protocols: (json['protocols'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - credentialScope: json['credentialScope'] == null +EndpointDefinition _$EndpointDefinitionFromJson( + Map json, +) => EndpointDefinition( + hostname: json['hostname'] as String?, + protocols: + (json['protocols'] as List?)?.map((e) => e as String).toList() ?? + const [], + credentialScope: + json['credentialScope'] == null ? null : CredentialScope.fromJson( - json['credentialScope'] as Map), - signatureVersions: (json['signatureVersions'] as List?) - ?.map((e) => $enumDecode(_$AWSSignatureVersionEnumMap, e)) - .toList() ?? - const [], - variants: (json['variants'] as List?) - ?.map((e) => - EndpointDefinitionVariant.fromJson(e as Map)) - .toList() ?? - const [], - ); + json['credentialScope'] as Map, + ), + signatureVersions: + (json['signatureVersions'] as List?) + ?.map((e) => $enumDecode(_$AWSSignatureVersionEnumMap, e)) + .toList() ?? + const [], + variants: + (json['variants'] as List?) + ?.map( + (e) => + EndpointDefinitionVariant.fromJson(e as Map), + ) + .toList() ?? + const [], +); Map _$EndpointDefinitionToJson(EndpointDefinition instance) => { 'hostname': instance.hostname, 'protocols': instance.protocols, 'credentialScope': instance.credentialScope, - 'signatureVersions': instance.signatureVersions - .map((e) => _$AWSSignatureVersionEnumMap[e]!) - .toList(), + 'signatureVersions': + instance.signatureVersions + .map((e) => _$AWSSignatureVersionEnumMap[e]!) + .toList(), 'variants': instance.variants, }; @@ -49,17 +56,17 @@ const _$AWSSignatureVersionEnumMap = { }; EndpointDefinitionVariant _$EndpointDefinitionVariantFromJson( - Map json) => - EndpointDefinitionVariant( - dnsSuffix: json['dnsSuffix'] as String?, - hostname: json['hostname'] as String?, - tags: (json['tags'] as List).map((e) => e as String).toList(), - ); + Map json, +) => EndpointDefinitionVariant( + dnsSuffix: json['dnsSuffix'] as String?, + hostname: json['hostname'] as String?, + tags: (json['tags'] as List).map((e) => e as String).toList(), +); Map _$EndpointDefinitionVariantToJson( - EndpointDefinitionVariant instance) => - { - 'dnsSuffix': instance.dnsSuffix, - 'hostname': instance.hostname, - 'tags': instance.tags, - }; + EndpointDefinitionVariant instance, +) => { + 'dnsSuffix': instance.dnsSuffix, + 'hostname': instance.hostname, + 'tags': instance.tags, +}; diff --git a/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_error_on_success.dart b/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_error_on_success.dart index fe6e1a948e..5188b56df6 100644 --- a/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_error_on_success.dart +++ b/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_error_on_success.dart @@ -42,17 +42,17 @@ class CheckErrorOnSuccess extends HttpResponseInterceptor { } return switch (response) { AWSHttpResponse _ => AWSHttpResponse( - // According to https://aws.amazon.com/premiumsupport/knowledge-center/s3-resolve-200-internalerror/ - // 200 error responses are similar to 5xx errors. - statusCode: 500, - headers: response.headers, - body: response.bodyBytes, - ), + // According to https://aws.amazon.com/premiumsupport/knowledge-center/s3-resolve-200-internalerror/ + // 200 error responses are similar to 5xx errors. + statusCode: 500, + headers: response.headers, + body: response.bodyBytes, + ), AWSStreamedHttpResponse _ => AWSStreamedHttpResponse( - statusCode: 500, - headers: response.headers, - body: response.body, - ) + statusCode: 500, + headers: response.headers, + body: response.body, + ), }; } } diff --git a/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_partial_response.dart b/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_partial_response.dart index 774b64f3c8..69aea6b8e3 100644 --- a/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_partial_response.dart +++ b/packages/smithy/smithy_aws/lib/src/http/interceptors/s3/check_partial_response.dart @@ -19,15 +19,15 @@ class CheckPartialResponse extends HttpResponseInterceptor { } return switch (response) { AWSHttpResponse _ => AWSHttpResponse( - statusCode: 200, - headers: response.headers, - body: response.bodyBytes, - ), + statusCode: 200, + headers: response.headers, + body: response.bodyBytes, + ), AWSStreamedHttpResponse _ => AWSStreamedHttpResponse( - statusCode: 200, - headers: response.headers, - body: response.body, - ), + statusCode: 200, + headers: response.headers, + body: response.body, + ), }; } } diff --git a/packages/smithy/smithy_aws/lib/src/http/interceptors/with_checksum.dart b/packages/smithy/smithy_aws/lib/src/http/interceptors/with_checksum.dart index f6e2d56b6b..4dce0d91c0 100644 --- a/packages/smithy/smithy_aws/lib/src/http/interceptors/with_checksum.dart +++ b/packages/smithy/smithy_aws/lib/src/http/interceptors/with_checksum.dart @@ -22,9 +22,10 @@ class _CrcValueToHeaderConverter extends Converter { @override Sink startChunkedConversion(Sink sink) { return ChunkedConversionSink.withCallback( - (value) => sink - ..add(convert(value.last)) - ..close(), + (value) => + sink + ..add(convert(value.last)) + ..close(), ); } } @@ -40,9 +41,10 @@ class _DigestToHeaderConverter extends Converter { @override Sink startChunkedConversion(Sink sink) { return ChunkedConversionSink.withCallback( - (value) => sink - ..add(convert(value.last)) - ..close(), + (value) => + sink + ..add(convert(value.last)) + ..close(), ); } } @@ -60,29 +62,25 @@ class WithChecksum extends HttpRequestInterceptor { // https://awslabs.github.io/smithy/2.0/aws/aws-core.html#resolving-checksum-name String get _header => switch (_algorithm) { - 'CRC32C' || - 'CRC32' || - 'SHA1' || - 'SHA256' => - 'x-amz-checksum-${_algorithm.toLowerCase()}', - 'MD5' || _ => 'Content-MD5', - }; + 'CRC32C' || + 'CRC32' || + 'SHA1' || + 'SHA256' => 'x-amz-checksum-${_algorithm.toLowerCase()}', + 'MD5' || _ => 'Content-MD5', + }; static Converter, String> _converterForAlgorithm( String algorithm, - ) => - switch (algorithm) { - 'CRC32C' => Crc32C().fuse(const _CrcValueToHeaderConverter()), - 'CRC32' => Crc32().fuse(const _CrcValueToHeaderConverter()), - 'SHA1' => sha1.fuse(const _DigestToHeaderConverter()), - 'SHA256' => sha256.fuse(const _DigestToHeaderConverter()), - 'MD5' || _ => md5.fuse(const _DigestToHeaderConverter()), - }; + ) => switch (algorithm) { + 'CRC32C' => Crc32C().fuse(const _CrcValueToHeaderConverter()), + 'CRC32' => Crc32().fuse(const _CrcValueToHeaderConverter()), + 'SHA1' => sha1.fuse(const _DigestToHeaderConverter()), + 'SHA256' => sha256.fuse(const _DigestToHeaderConverter()), + 'MD5' || _ => md5.fuse(const _DigestToHeaderConverter()), + }; @override - Future intercept( - AWSBaseHttpRequest request, - ) async { + Future intercept(AWSBaseHttpRequest request) async { if (request.headers.containsKey(_header)) { return request; } diff --git a/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sdk_invocation.dart b/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sdk_invocation.dart index 481b9ce60b..1e3bafc45a 100644 --- a/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sdk_invocation.dart +++ b/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sdk_invocation.dart @@ -18,7 +18,7 @@ class WithSdkInvocationId extends HttpRequestInterceptor { if (!request.headers.containsKey(AWSHeaders.sdkInvocationId)) { request.headers[AWSHeaders.sdkInvocationId] = Zone.current[AWSHeaders.sdkInvocationId] as String? ?? - uuid(secure: true); + uuid(secure: true); } return request; } diff --git a/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sig_v4.dart b/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sig_v4.dart index 5ee34b4de4..79c4f92049 100644 --- a/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sig_v4.dart +++ b/packages/smithy/smithy_aws/lib/src/http/interceptors/with_sig_v4.dart @@ -44,10 +44,7 @@ class WithSigV4 extends HttpRequestInterceptor { ); return signer.sign( request, - credentialScope: AWSCredentialScope( - region: region, - service: service, - ), + credentialScope: AWSCredentialScope(region: region, service: service), serviceConfiguration: serviceConfiguration, ); } diff --git a/packages/smithy/smithy_aws/lib/src/http/retry/aws_retryer.dart b/packages/smithy/smithy_aws/lib/src/http/retry/aws_retryer.dart index f9d780abac..57924bbd70 100644 --- a/packages/smithy/smithy_aws/lib/src/http/retry/aws_retryer.dart +++ b/packages/smithy/smithy_aws/lib/src/http/retry/aws_retryer.dart @@ -88,10 +88,7 @@ class AWSRetryer implements Retryer { /// Returns a retry token to the [retryQuota]. void _returnRetryToken(int token) { - _retryQuota = min( - _maxCapacity, - _retryQuota + token, - ); + _retryQuota = min(_maxCapacity, _retryQuota + token); } @override @@ -109,7 +106,8 @@ class AWSRetryer implements Retryer { } final retryConfig = exception.retryConfig; final shape = exception.shapeId?.shape; - final isRetryable = retryConfig != null || + final isRetryable = + retryConfig != null || _transientErrors.contains(shape) || _throttlingErrors.contains(shape); if (!isRetryable) { @@ -145,11 +143,12 @@ class AWSRetryer implements Retryer { /// Calculates the exponential backoff delay for the given [attempt]. Duration _exponentialBackoff(int attempt) => Duration( - seconds: min( + seconds: + min( exponentialBase * pow(exponentialPower, attempt), maxBackoffTime.inSeconds, ).toInt(), - ); + ); @override CancelableOperation retry( @@ -172,16 +171,10 @@ class AWSRetryer implements Retryer { return; } try { - final result = await runZoned( - () { - currentOperation = f(); - return currentOperation!.valueOrCancellation(); - }, - zoneValues: { - zRetryAttempt: attempts, - zMaxAttempts: _maxAttempts, - }, - ); + final result = await runZoned(() { + currentOperation = f(); + return currentOperation!.valueOrCancellation(); + }, zoneValues: {zRetryAttempt: attempts, zMaxAttempts: _maxAttempts}); if (result is! R || currentOperation!.isCanceled) { return; } diff --git a/packages/smithy/smithy_aws/lib/src/protocol/aws_http_protocol.dart b/packages/smithy/smithy_aws/lib/src/protocol/aws_http_protocol.dart index afabc8fd65..6a066a6e89 100644 --- a/packages/smithy/smithy_aws/lib/src/protocol/aws_http_protocol.dart +++ b/packages/smithy/smithy_aws/lib/src/protocol/aws_http_protocol.dart @@ -12,8 +12,8 @@ abstract class AWSHttpProtocol required Map builderFactories, required this.requestInterceptors, this.responseInterceptors = const [], - }) : _userSerializers = serializers, - _builderFactories = builderFactories; + }) : _userSerializers = serializers, + _builderFactories = builderFactories; final Serializers _coreSerializers; final List> _userSerializers; @@ -27,12 +27,12 @@ abstract class AWSHttpProtocol @override late final Serializers serializers = () { - final builder = _coreSerializers.toBuilder() - ..addAll( - _userSerializers.where((el) { - return el.supportedProtocols.contains(protocolId); - }), - ); + final builder = + _coreSerializers.toBuilder()..addAll( + _userSerializers.where((el) { + return el.supportedProtocols.contains(protocolId); + }), + ); for (final entry in _builderFactories.entries) { builder.addBuilderFactory(entry.key, entry.value); } diff --git a/packages/smithy/smithy_aws/lib/src/protocol/aws_json_1_0.dart b/packages/smithy/smithy_aws/lib/src/protocol/aws_json_1_0.dart index ca63bd777e..f6e4197a17 100644 --- a/packages/smithy/smithy_aws/lib/src/protocol/aws_json_1_0.dart +++ b/packages/smithy/smithy_aws/lib/src/protocol/aws_json_1_0.dart @@ -16,23 +16,24 @@ class AwsJson1_0Protocol List> serializers = const [], Map builderFactories = const {}, }) : super( - _coreSerializers, - serializers: serializers, - builderFactories: builderFactories, - requestInterceptors: requestInterceptors, - responseInterceptors: responseInterceptors, - ); + _coreSerializers, + serializers: serializers, + builderFactories: builderFactories, + requestInterceptors: requestInterceptors, + responseInterceptors: responseInterceptors, + ); - static final _coreSerializers = (Serializers().toBuilder() - ..addPlugin(SmithyJsonPlugin()) - ..addAll(const [ - BigIntSerializer.asNum, - DoubleSerializer(), - Int64Serializer.asNum, - TimestampSerializer.epochSeconds, - UnitSerializer(), - ])) - .build(); + static final _coreSerializers = + (Serializers().toBuilder() + ..addPlugin(SmithyJsonPlugin()) + ..addAll(const [ + BigIntSerializer.asNum, + DoubleSerializer(), + Int64Serializer.asNum, + TimestampSerializer.epochSeconds, + UnitSerializer(), + ])) + .build(); @override ShapeId get protocolId => AwsJson1_0Trait.id; @@ -41,8 +42,10 @@ class AwsJson1_0Protocol String get contentType => 'application/x-amz-json-1.0'; @override - late final JsonSerializer wireSerializer = - JsonSerializer(serializers, EmptyPayloadType.object); + late final JsonSerializer wireSerializer = JsonSerializer( + serializers, + EmptyPayloadType.object, + ); } // ignore_for_file: camel_case_types diff --git a/packages/smithy/smithy_aws/lib/src/protocol/aws_query_protocol.dart b/packages/smithy/smithy_aws/lib/src/protocol/aws_query_protocol.dart index 01f32278ac..6e1af0c2c3 100644 --- a/packages/smithy/smithy_aws/lib/src/protocol/aws_query_protocol.dart +++ b/packages/smithy/smithy_aws/lib/src/protocol/aws_query_protocol.dart @@ -38,38 +38,31 @@ class AwsQueryProtocol List> serializers = const [], Map builderFactories = const {}, }) : super( - _coreSerializers, - serializers: serializers, - builderFactories: builderFactories, - requestInterceptors: requestInterceptors, - responseInterceptors: responseInterceptors, - ); + _coreSerializers, + serializers: serializers, + builderFactories: builderFactories, + requestInterceptors: requestInterceptors, + responseInterceptors: responseInterceptors, + ); - static final _coreSerializers = (Serializers().toBuilder() - ..addPlugin(const SmithyXmlPlugin()) - ..addAll(const [ - QueryBoolSerializer(), - QueryIntSerializer(), - QueryDoubleSerializer(), - BigIntSerializer.asString, - Int64Serializer.asString, - TimestampSerializer.dateTime, - XmlBuiltListSerializer( - indexer: XmlIndexer.awsQueryList, - ), - XmlBuiltMapSerializer( - indexer: XmlIndexer.awsQueryMap, - ), - XmlBuiltMultimapSerializer( - indexer: XmlIndexer.awsQueryMap, - ), - XmlBuiltSetSerializer( - indexer: XmlIndexer.awsQueryList, - ), - XmlStringSerializer(), - UnitSerializer(), - ])) - .build(); + static final _coreSerializers = + (Serializers().toBuilder() + ..addPlugin(const SmithyXmlPlugin()) + ..addAll(const [ + QueryBoolSerializer(), + QueryIntSerializer(), + QueryDoubleSerializer(), + BigIntSerializer.asString, + Int64Serializer.asString, + TimestampSerializer.dateTime, + XmlBuiltListSerializer(indexer: XmlIndexer.awsQueryList), + XmlBuiltMapSerializer(indexer: XmlIndexer.awsQueryMap), + XmlBuiltMultimapSerializer(indexer: XmlIndexer.awsQueryMap), + XmlBuiltSetSerializer(indexer: XmlIndexer.awsQueryList), + XmlStringSerializer(), + UnitSerializer(), + ])) + .build(); final String action; final String version; @@ -93,11 +86,12 @@ class AwsQueryProtocol try { final body = await utf8.decodeStream(response.split()); final el = XmlDocument.parse(body).rootElement; - final code = el.childElements - .firstWhereOrNull((el) => el.name.local == 'Error') - ?.childElements - .firstWhere((el) => el.name.local == 'Code') - .innerText; + final code = + el.childElements + .firstWhereOrNull((el) => el.name.local == 'Error') + ?.childElements + .firstWhere((el) => el.name.local == 'Code') + .innerText; final error = awsQueryErrors.firstWhereOrNull( (e) => e.httpResponseCode == response.statusCode, ); diff --git a/packages/smithy/smithy_aws/lib/src/protocol/aws_query_serializer.dart b/packages/smithy/smithy_aws/lib/src/protocol/aws_query_serializer.dart index a9c755dff5..66670c56ec 100644 --- a/packages/smithy/smithy_aws/lib/src/protocol/aws_query_serializer.dart +++ b/packages/smithy/smithy_aws/lib/src/protocol/aws_query_serializer.dart @@ -37,10 +37,7 @@ class AwsQuerySerializer implements FullSerializer> { return utf8.encode(_prefix); } return utf8.encode( - [ - _prefix, - ..._serialize(serialized as XmlNode), - ].join('&'), + [_prefix, ..._serialize(serialized as XmlNode)].join('&'), ); } diff --git a/packages/smithy/smithy_aws/lib/src/protocol/event_stream_protocol.dart b/packages/smithy/smithy_aws/lib/src/protocol/event_stream_protocol.dart index 8e12789be6..4cd53dcd9e 100644 --- a/packages/smithy/smithy_aws/lib/src/protocol/event_stream_protocol.dart +++ b/packages/smithy/smithy_aws/lib/src/protocol/event_stream_protocol.dart @@ -11,7 +11,7 @@ class EventStreamProtocol EventStreamProtocol(this._baseProtocol); final AWSHttpProtocol - _baseProtocol; + _baseProtocol; @override String get contentType => _baseProtocol.contentType; @@ -19,9 +19,10 @@ class EventStreamProtocol @override Future deserialize(Stream> response) async { return serializers.deserialize( - response, - specifiedType: FullType(OutputPayload), - ) as OutputPayload; + response, + specifiedType: FullType(OutputPayload), + ) + as OutputPayload; } @override diff --git a/packages/smithy/smithy_aws/lib/src/protocol/rest_json_1.dart b/packages/smithy/smithy_aws/lib/src/protocol/rest_json_1.dart index aeece43a80..bd1d677d3c 100644 --- a/packages/smithy/smithy_aws/lib/src/protocol/rest_json_1.dart +++ b/packages/smithy/smithy_aws/lib/src/protocol/rest_json_1.dart @@ -19,24 +19,25 @@ class RestJson1Protocol List> serializers = const [], Map builderFactories = const {}, }) : super( - _coreSerializers, - serializers: serializers, - builderFactories: builderFactories, - requestInterceptors: requestInterceptors, - responseInterceptors: responseInterceptors, - ); - - static final _coreSerializers = (Serializers().toBuilder() - ..addPlugin(SmithyJsonPlugin()) - ..addAll(const [ - BigIntSerializer.asNum, - DoubleSerializer(), - Int64Serializer.asNum, - TimestampSerializer.epochSeconds, - UnitSerializer(), - StreamSerializer>(), - ])) - .build(); + _coreSerializers, + serializers: serializers, + builderFactories: builderFactories, + requestInterceptors: requestInterceptors, + responseInterceptors: responseInterceptors, + ); + + static final _coreSerializers = + (Serializers().toBuilder() + ..addPlugin(SmithyJsonPlugin()) + ..addAll(const [ + BigIntSerializer.asNum, + DoubleSerializer(), + Int64Serializer.asNum, + TimestampSerializer.epochSeconds, + UnitSerializer(), + StreamSerializer>(), + ])) + .build(); @override ShapeId get protocolId => RestJson1Trait.id; @@ -55,6 +56,8 @@ class RestJson1Protocol 'application/json'; @override - late final JsonSerializer wireSerializer = - JsonSerializer(serializers, EmptyPayloadType.empty); + late final JsonSerializer wireSerializer = JsonSerializer( + serializers, + EmptyPayloadType.empty, + ); } diff --git a/packages/smithy/smithy_aws/lib/src/protocol/rest_xml.dart b/packages/smithy/smithy_aws/lib/src/protocol/rest_xml.dart index cf72e7b26a..d78eb65288 100644 --- a/packages/smithy/smithy_aws/lib/src/protocol/rest_xml.dart +++ b/packages/smithy/smithy_aws/lib/src/protocol/rest_xml.dart @@ -22,29 +22,30 @@ class RestXmlProtocol Map builderFactories = const {}, this.noErrorWrapping = false, }) : super( - _coreSerializers, - serializers: serializers, - builderFactories: builderFactories, - requestInterceptors: requestInterceptors, - responseInterceptors: responseInterceptors, - ); + _coreSerializers, + serializers: serializers, + builderFactories: builderFactories, + requestInterceptors: requestInterceptors, + responseInterceptors: responseInterceptors, + ); - static final _coreSerializers = (Serializers().toBuilder() - ..addPlugin(const SmithyXmlPlugin()) - ..addAll(const [ - BigIntSerializer.asString, - XmlNumSerializer(), - Int64Serializer.asString, - TimestampSerializer.dateTime, - UnitSerializer(), - XmlBoolSerializer(), - XmlBuiltListSerializer(), - XmlBuiltMapSerializer(), - XmlBuiltSetSerializer(), - XmlStringSerializer(), - StreamSerializer>(), - ])) - .build(); + static final _coreSerializers = + (Serializers().toBuilder() + ..addPlugin(const SmithyXmlPlugin()) + ..addAll(const [ + BigIntSerializer.asString, + XmlNumSerializer(), + Int64Serializer.asString, + TimestampSerializer.dateTime, + UnitSerializer(), + XmlBoolSerializer(), + XmlBuiltListSerializer(), + XmlBuiltMapSerializer(), + XmlBuiltSetSerializer(), + XmlStringSerializer(), + StreamSerializer>(), + ])) + .build(); @override ShapeId get protocolId => RestXmlTrait.id; diff --git a/packages/smithy/smithy_aws/pubspec.yaml b/packages/smithy/smithy_aws/pubspec.yaml index 2eef5a6c94..f9ffa5565f 100644 --- a/packages/smithy/smithy_aws/pubspec.yaml +++ b/packages/smithy/smithy_aws/pubspec.yaml @@ -1,16 +1,16 @@ name: smithy_aws description: Smithy runtime for AWS clients with utilities for endpoint resolution, retry behavior, and SigV4 signing. -version: 0.7.4 +version: 0.7.5 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/smithy/smithy_aws issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - aws_common: ">=0.7.6 <0.8.0" - aws_signature_v4: ">=0.6.4 <0.7.0" + aws_common: ">=0.7.7 <0.8.0" + aws_signature_v4: ">=0.6.5 <0.7.0" built_collection: ^5.0.0 built_value: ^8.6.0 collection: ^1.15.0 @@ -19,18 +19,18 @@ dependencies: crypto: ^3.0.0 intl: ">=0.18.0 <1.0.0" json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" - smithy: ">=0.7.4 <0.8.0" + smithy: ">=0.7.5 <0.8.0" xml: ">=6.3.0 <=6.5.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 file: ">=6.0.0 <8.0.0" glob: ^2.0.2 - json_serializable: 6.8.0 + json_serializable: ^6.9.4 pubspec_parse: ^1.2.0 test: ^1.22.1 yaml: ^3.1.0 diff --git a/packages/smithy/smithy_aws/test/http/aws_retryer_test.dart b/packages/smithy/smithy_aws/test/http/aws_retryer_test.dart index 74be741fd8..5b148b2465 100644 --- a/packages/smithy/smithy_aws/test/http/aws_retryer_test.dart +++ b/packages/smithy/smithy_aws/test/http/aws_retryer_test.dart @@ -21,19 +21,11 @@ const _testCaseSerializable = JsonSerializable( ); @JsonEnum(fieldRename: FieldRename.snake) -enum Outcome { - success, - retryRequest, - maxAttemptsExceeded, - retryQuotaExceeded, -} +enum Outcome { success, retryRequest, maxAttemptsExceeded, retryQuotaExceeded } @_testCaseSerializable class TestSuite { - const TestSuite({ - required this.given, - required this.responses, - }); + const TestSuite({required this.given, required this.responses}); factory TestSuite.fromJson(Map json) => _$TestSuiteFromJson(json); @@ -63,20 +55,17 @@ class TestSuiteGiven { @override String toString() => [ - maxAttempts, - initialRetryTokens, - exponentialBase, - exponentialPower, - maxBackoffTime, - ].join('|'); + maxAttempts, + initialRetryTokens, + exponentialBase, + exponentialPower, + maxBackoffTime, + ].join('|'); } @_testCaseSerializable class TestCase { - const TestCase({ - required this.response, - required this.expected, - }); + const TestCase({required this.response, required this.expected}); factory TestCase.fromJson(Map json) => _$TestCaseFromJson(json); @@ -87,9 +76,7 @@ class TestCase { @_testCaseSerializable class TestCaseResponse { - const TestCaseResponse({ - required this.statusCode, - }); + const TestCaseResponse({required this.statusCode}); factory TestCaseResponse.fromJson(Map json) => _$TestCaseResponseFromJson(json); @@ -134,60 +121,59 @@ void main() { maxBackoffTime: Duration(seconds: testSuite.given.maxBackoffTime), ); test('${testSuite.given}', () { - runZoned( - () async { - final outcome = testSuite.responses.last; - final Matcher expectation; - switch (outcome.expected.outcome) { - case Outcome.success: - case Outcome.retryRequest: - expectation = completes; - case Outcome.maxAttemptsExceeded: - case Outcome.retryQuotaExceeded: - expectation = throwsA(isA<_TransientSmithyException>()); - } - - // TODO(dnys1): Try to get fake_async to work properly to avoid - /// unnecessary test delays. - var retry = 0; - TestCase testCase() => testSuite.responses[retry]; - await expectLater( - retryer.retry( - () { - final completer = CancelableCompleter(); - final response = testCase().response; - if (response.statusCode == 200) { - completer.complete(); - } else { - completer - .completeError(const _TransientSmithyException()); - } - return completer.operation; - }, - onRetry: (e, [delay]) { - final expectedDelay = testCase().expected.delay; - expect(delay?.inSeconds, equals(expectedDelay)); - expect( - retryer.retryQuota, - equals(testCase().expected.retryQuota), - ); - retry++; - }, - ).valueOrCancellation(), - expectation, - ); + runZoned(() async { + final outcome = testSuite.responses.last; + final Matcher expectation; + switch (outcome.expected.outcome) { + case Outcome.success: + case Outcome.retryRequest: + expectation = completes; + case Outcome.maxAttemptsExceeded: + case Outcome.retryQuotaExceeded: + expectation = throwsA(isA<_TransientSmithyException>()); + } - final expectedRetries = testSuite.responses - .where( - (resp) => resp.expected.outcome == Outcome.retryRequest, + // TODO(dnys1): Try to get fake_async to work properly to avoid + /// unnecessary test delays. + var retry = 0; + TestCase testCase() => testSuite.responses[retry]; + await expectLater( + retryer + .retry( + () { + final completer = CancelableCompleter(); + final response = testCase().response; + if (response.statusCode == 200) { + completer.complete(); + } else { + completer.completeError( + const _TransientSmithyException(), + ); + } + return completer.operation; + }, + onRetry: (e, [delay]) { + final expectedDelay = testCase().expected.delay; + expect(delay?.inSeconds, equals(expectedDelay)); + expect( + retryer.retryQuota, + equals(testCase().expected.retryQuota), + ); + retry++; + }, ) - .length; - expect(retry, equals(expectedRetries)); - }, - zoneValues: { - AWSConfigValue.maxAttempts: maxAttempts, - }, - ); + .valueOrCancellation(), + expectation, + ); + + final expectedRetries = + testSuite.responses + .where( + (resp) => resp.expected.outcome == Outcome.retryRequest, + ) + .length; + expect(retry, equals(expectedRetries)); + }, zoneValues: {AWSConfigValue.maxAttempts: maxAttempts}); }); } }); diff --git a/packages/smithy/smithy_aws/test/http/aws_retryer_test.g.dart b/packages/smithy/smithy_aws/test/http/aws_retryer_test.g.dart index 02819fe233..2064cc87e0 100644 --- a/packages/smithy/smithy_aws/test/http/aws_retryer_test.g.dart +++ b/packages/smithy/smithy_aws/test/http/aws_retryer_test.g.dart @@ -6,123 +6,110 @@ part of 'aws_retryer_test.dart'; // JsonSerializableGenerator // ************************************************************************** -TestSuite _$TestSuiteFromJson(Map json) => $checkedCreate( - 'TestSuite', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['given', 'responses'], - ); - final val = TestSuite( - given: $checkedConvert( - 'given', - (v) => - TestSuiteGiven.fromJson(Map.from(v as Map))), - responses: $checkedConvert( - 'responses', - (v) => (v as List) - .map((e) => - TestCase.fromJson(Map.from(e as Map))) - .toList()), - ); - return val; - }, - ); +TestSuite _$TestSuiteFromJson(Map json) => $checkedCreate('TestSuite', json, ( + $checkedConvert, +) { + $checkKeys(json, allowedKeys: const ['given', 'responses']); + final val = TestSuite( + given: $checkedConvert( + 'given', + (v) => TestSuiteGiven.fromJson(Map.from(v as Map)), + ), + responses: $checkedConvert( + 'responses', + (v) => + (v as List) + .map( + (e) => TestCase.fromJson(Map.from(e as Map)), + ) + .toList(), + ), + ); + return val; +}); TestSuiteGiven _$TestSuiteGivenFromJson(Map json) => $checkedCreate( - 'TestSuiteGiven', + 'TestSuiteGiven', + json, + ($checkedConvert) { + $checkKeys( json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const [ - 'max_attempts', - 'initial_retry_tokens', - 'exponential_base', - 'exponential_power', - 'max_backoff_time' - ], - ); - final val = TestSuiteGiven( - maxAttempts: - $checkedConvert('max_attempts', (v) => (v as num).toInt()), - initialRetryTokens: $checkedConvert( - 'initial_retry_tokens', (v) => (v as num).toInt()), - exponentialBase: - $checkedConvert('exponential_base', (v) => (v as num).toDouble()), - exponentialPower: $checkedConvert( - 'exponential_power', (v) => (v as num).toDouble()), - maxBackoffTime: - $checkedConvert('max_backoff_time', (v) => (v as num).toInt()), - ); - return val; - }, - fieldKeyMap: const { - 'maxAttempts': 'max_attempts', - 'initialRetryTokens': 'initial_retry_tokens', - 'exponentialBase': 'exponential_base', - 'exponentialPower': 'exponential_power', - 'maxBackoffTime': 'max_backoff_time' - }, + allowedKeys: const [ + 'max_attempts', + 'initial_retry_tokens', + 'exponential_base', + 'exponential_power', + 'max_backoff_time', + ], ); - -TestCase _$TestCaseFromJson(Map json) => $checkedCreate( - 'TestCase', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['response', 'expected'], - ); - final val = TestCase( - response: $checkedConvert( - 'response', - (v) => TestCaseResponse.fromJson( - Map.from(v as Map))), - expected: $checkedConvert( - 'expected', - (v) => TestCaseExpected.fromJson( - Map.from(v as Map))), - ); - return val; - }, + final val = TestSuiteGiven( + maxAttempts: $checkedConvert('max_attempts', (v) => (v as num).toInt()), + initialRetryTokens: $checkedConvert( + 'initial_retry_tokens', + (v) => (v as num).toInt(), + ), + exponentialBase: $checkedConvert( + 'exponential_base', + (v) => (v as num).toDouble(), + ), + exponentialPower: $checkedConvert( + 'exponential_power', + (v) => (v as num).toDouble(), + ), + maxBackoffTime: $checkedConvert( + 'max_backoff_time', + (v) => (v as num).toInt(), + ), ); + return val; + }, + fieldKeyMap: const { + 'maxAttempts': 'max_attempts', + 'initialRetryTokens': 'initial_retry_tokens', + 'exponentialBase': 'exponential_base', + 'exponentialPower': 'exponential_power', + 'maxBackoffTime': 'max_backoff_time', + }, +); -TestCaseResponse _$TestCaseResponseFromJson(Map json) => $checkedCreate( - 'TestCaseResponse', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['status_code'], - ); - final val = TestCaseResponse( - statusCode: $checkedConvert('status_code', (v) => (v as num).toInt()), - ); - return val; - }, - fieldKeyMap: const {'statusCode': 'status_code'}, - ); +TestCase _$TestCaseFromJson(Map json) => + $checkedCreate('TestCase', json, ($checkedConvert) { + $checkKeys(json, allowedKeys: const ['response', 'expected']); + final val = TestCase( + response: $checkedConvert( + 'response', + (v) => TestCaseResponse.fromJson(Map.from(v as Map)), + ), + expected: $checkedConvert( + 'expected', + (v) => TestCaseExpected.fromJson(Map.from(v as Map)), + ), + ); + return val; + }); -TestCaseExpected _$TestCaseExpectedFromJson(Map json) => $checkedCreate( - 'TestCaseExpected', - json, - ($checkedConvert) { - $checkKeys( - json, - allowedKeys: const ['outcome', 'retry_quota', 'delay'], - ); - final val = TestCaseExpected( - outcome: $checkedConvert( - 'outcome', (v) => $enumDecode(_$OutcomeEnumMap, v)), - retryQuota: $checkedConvert('retry_quota', (v) => (v as num).toInt()), - delay: $checkedConvert('delay', (v) => (v as num?)?.toInt()), - ); - return val; - }, - fieldKeyMap: const {'retryQuota': 'retry_quota'}, - ); +TestCaseResponse _$TestCaseResponseFromJson(Map json) => + $checkedCreate('TestCaseResponse', json, ($checkedConvert) { + $checkKeys(json, allowedKeys: const ['status_code']); + final val = TestCaseResponse( + statusCode: $checkedConvert('status_code', (v) => (v as num).toInt()), + ); + return val; + }, fieldKeyMap: const {'statusCode': 'status_code'}); + +TestCaseExpected _$TestCaseExpectedFromJson(Map json) => + $checkedCreate('TestCaseExpected', json, ($checkedConvert) { + $checkKeys(json, allowedKeys: const ['outcome', 'retry_quota', 'delay']); + final val = TestCaseExpected( + outcome: $checkedConvert( + 'outcome', + (v) => $enumDecode(_$OutcomeEnumMap, v), + ), + retryQuota: $checkedConvert('retry_quota', (v) => (v as num).toInt()), + delay: $checkedConvert('delay', (v) => (v as num?)?.toInt()), + ); + return val; + }, fieldKeyMap: const {'retryQuota': 'retry_quota'}); const _$OutcomeEnumMap = { Outcome.success: 'success', diff --git a/packages/smithy/smithy_aws/test/http/dummy_operation.dart b/packages/smithy/smithy_aws/test/http/dummy_operation.dart index 4403eccb8c..d26a99706a 100644 --- a/packages/smithy/smithy_aws/test/http/dummy_operation.dart +++ b/packages/smithy/smithy_aws/test/http/dummy_operation.dart @@ -26,34 +26,30 @@ class DummyHttpOperation extends HttpOperation { @override HttpRequest buildRequest(Unit input) => HttpRequest( - (b) => b + (b) => + b ..method = 'GET' ..path = '/', - ); + ); @override List get errorTypes => const [ - SmithyError( - DummySmithyException.id, - ErrorKind.server, - DummySmithyException, - statusCode: 500, - builder: DummySmithyException.fromResponse, - ), - ]; + SmithyError( + DummySmithyException.id, + ErrorKind.server, + DummySmithyException, + statusCode: 500, + builder: DummySmithyException.fromResponse, + ), + ]; @override Iterable> get protocols => [ - DummyProtocol( - serializers: const [ - _DummySmithyExceptionSerializer(), - ], - requestInterceptors: const [ - WithSdkInvocationId(), - WithSdkRequest(), - ], - ), - ]; + DummyProtocol( + serializers: const [_DummySmithyExceptionSerializer()], + requestInterceptors: const [WithSdkInvocationId(), WithSdkRequest()], + ), + ]; @override int successCode([Unit? output]) => 200; @@ -68,11 +64,10 @@ class DummySmithyException implements SmithyHttpException { factory DummySmithyException.fromResponse( DummySmithyException payload, AWSBaseHttpResponse response, - ) => - DummySmithyException( - statusCode: response.statusCode, - headers: response.headers, - ); + ) => DummySmithyException( + statusCode: response.statusCode, + headers: response.headers, + ); static const id = ShapeId( namespace: 'com.example', @@ -122,8 +117,9 @@ class _DummySmithyExceptionSerializer } @override - Iterable get supportedProtocols => - const [GenericJsonProtocolDefinitionTrait.id]; + Iterable get supportedProtocols => const [ + GenericJsonProtocolDefinitionTrait.id, + ]; @override Iterable get types => const [DummySmithyException]; diff --git a/packages/smithy/smithy_aws/test/http/retry_after_test.dart b/packages/smithy/smithy_aws/test/http/retry_after_test.dart index d6685cfc20..1bb4c5d1c6 100644 --- a/packages/smithy/smithy_aws/test/http/retry_after_test.dart +++ b/packages/smithy/smithy_aws/test/http/retry_after_test.dart @@ -17,22 +17,16 @@ void main() { final httpClient = MockAWSHttpClient((request, _) async { return AWSStreamedHttpResponse( statusCode: 500, - headers: { - AWSHeaders.retryAfter: '500', - }, + headers: {AWSHeaders.retryAfter: '500'}, body: HttpPayload.string('{}'), ); }); - final retryer = AWSRetryer( - initialRetryTokens: 500, - ); + final retryer = AWSRetryer(initialRetryTokens: 500); final op = DummyHttpOperation(retryer); try { await runZoned( () => op.run(const Unit(), client: httpClient).result, - zoneValues: { - AWSConfigValue.maxAttempts: 1, - }, + zoneValues: {AWSConfigValue.maxAttempts: 1}, ); fail('Operation should fail'); } on Exception catch (_) {} diff --git a/packages/smithy/smithy_aws/test/http/sdk_request_test.dart b/packages/smithy/smithy_aws/test/http/sdk_request_test.dart index 920d1e387d..e3598595a0 100644 --- a/packages/smithy/smithy_aws/test/http/sdk_request_test.dart +++ b/packages/smithy/smithy_aws/test/http/sdk_request_test.dart @@ -34,10 +34,7 @@ void main() { const maxAttempts = 5; await runZoned( () => op.run(const Unit(), client: httpClient).result, - zoneValues: { - #retryable: true, - AWSConfigValue.maxAttempts: maxAttempts, - }, + zoneValues: {#retryable: true, AWSConfigValue.maxAttempts: maxAttempts}, ); expect(headers, hasLength(2)); expect( @@ -69,10 +66,7 @@ void main() { final op = DummyHttpOperation(retryer); await runZoned( () => op.run(const Unit(), client: httpClient).result, - zoneValues: { - #retryable: true, - AWSHeaders.sdkInvocationId: uuid(), - }, + zoneValues: {#retryable: true, AWSHeaders.sdkInvocationId: uuid()}, ); expect(headers, hasLength(2)); expect(headers[0], contains(AWSHeaders.sdkInvocationId)); diff --git a/packages/smithy/smithy_codegen/bin/smithy_codegen.dart b/packages/smithy/smithy_codegen/bin/smithy_codegen.dart index b7b23145fc..6fbb659381 100644 --- a/packages/smithy/smithy_codegen/bin/smithy_codegen.dart +++ b/packages/smithy/smithy_codegen/bin/smithy_codegen.dart @@ -35,9 +35,10 @@ void main(List args) async { // Read from stdin or inputFile, depending on configuration. final inputFile = config.inputFile; - final json = inputFile != null - ? File(inputFile).readAsStringSync() - : stdin.readLineSync(encoding: utf8); + final json = + inputFile != null + ? File(inputFile).readAsStringSync() + : stdin.readLineSync(encoding: utf8); if (json == null) { usage(); } @@ -65,10 +66,7 @@ void main(List args) async { final dependencies = {}; for (final library in outputs.values.expand((out) => out.libraries)) { final smithyLibrary = library.smithyLibrary; - final outPath = path.join( - outputPath, - smithyLibrary.projectRelativePath, - ); + final outPath = path.join(outputPath, smithyLibrary.projectRelativePath); final output = library.emit(); dependencies.addAll(library.dependencies); final outFile = File(outPath); @@ -84,11 +82,12 @@ void main(List args) async { '${packageName.split('_').map((s) => s.capitalized).join(' ')} SDK', version: Version(0, 1, 0), ); - final pubspecYaml = PubspecGenerator( - pubspec, - dependencies, - smithyPath: config.smithyPath, - ).generate(); + final pubspecYaml = + PubspecGenerator( + pubspec, + dependencies, + smithyPath: config.smithyPath, + ).generate(); await File(pubspecPath).writeAsString(pubspecYaml); @@ -108,10 +107,7 @@ analyzer: // Run `dart pub get` final pubGetRes = await Process.run( 'dart', - [ - 'pub', - 'upgrade', - ], + ['pub', 'upgrade'], workingDirectory: outputPath, stdoutEncoding: utf8, stderrEncoding: utf8, @@ -125,16 +121,12 @@ analyzer: } // Run built_value generator - final buildRunnerCmd = await Process.start( - 'dart', - [ - 'run', - 'build_runner', - 'build', - '--delete-conflicting-outputs', - ], - workingDirectory: outputPath, - ); + final buildRunnerCmd = await Process.start('dart', [ + 'run', + 'build_runner', + 'build', + '--delete-conflicting-outputs', + ], workingDirectory: outputPath); buildRunnerCmd.stdout .transform(utf8.decoder) .transform(const LineSplitter()) diff --git a/packages/smithy/smithy_codegen/lib/smithy_codegen.dart b/packages/smithy/smithy_codegen/lib/smithy_codegen.dart index 8faeeff233..e2d5e93c81 100644 --- a/packages/smithy/smithy_codegen/lib/smithy_codegen.dart +++ b/packages/smithy/smithy_codegen/lib/smithy_codegen.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Code generation library for Smithy AST models. -library smithy_codegen; +library; export 'src/config.dart'; export 'src/exception.dart'; diff --git a/packages/smithy/smithy_codegen/lib/src/aws/endpoints.g.dart b/packages/smithy/smithy_codegen/lib/src/aws/endpoints.g.dart index 89f6233122..d960e05c69 100644 --- a/packages/smithy/smithy_codegen/lib/src/aws/endpoints.g.dart +++ b/packages/smithy/smithy_codegen/lib/src/aws/endpoints.g.dart @@ -17,19 +17,19 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'dnsSuffix': 'api.aws', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'dnsSuffix': 'api.aws', 'hostname': '{service}.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'dnsSuffix': 'amazonaws.com', 'partition': 'aws', @@ -57,11 +57,11 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {'description': 'US East (N. Virginia)'}, 'us-east-2': {'description': 'US East (Ohio)'}, 'us-west-1': {'description': 'US West (N. California)'}, - 'us-west-2': {'description': 'US West (Oregon)'} + 'us-west-2': {'description': 'US West (Oregon)'}, }, 'services': { 'a4b': { - 'endpoints': {'us-east-1': {}} + 'endpoints': {'us-east-1': {}}, }, 'access-analyzer': { 'endpoints': { @@ -78,9 +78,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'access-analyzer-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -91,27 +91,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'access-analyzer-fips.ca-central-1.amazonaws.com' + 'hostname': 'access-analyzer-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'access-analyzer-fips.us-east-1.amazonaws.com' + 'hostname': 'access-analyzer-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'access-analyzer-fips.us-east-2.amazonaws.com' + 'hostname': 'access-analyzer-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'access-analyzer-fips.us-west-1.amazonaws.com' + 'hostname': 'access-analyzer-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'access-analyzer-fips.us-west-2.amazonaws.com' + 'hostname': 'access-analyzer-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -119,45 +119,45 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'access-analyzer-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'access-analyzer-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'access-analyzer-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'access-analyzer-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'account': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'account.us-east-1.amazonaws.com' - } + 'hostname': 'account.us-east-1.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'acm': { 'endpoints': { @@ -174,14 +174,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'acm-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'acm-fips.ca-central-1.amazonaws.com' + 'hostname': 'acm-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -195,59 +195,59 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'acm-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'acm-fips.us-east-1.amazonaws.com' + 'hostname': 'acm-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'acm-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'acm-fips.us-east-2.amazonaws.com' + 'hostname': 'acm-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'acm-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'acm-fips.us-west-1.amazonaws.com' + 'hostname': 'acm-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'acm-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'acm-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'acm-fips.us-west-2.amazonaws.com', + }, + }, }, 'acm-pca': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'af-south-1': {}, @@ -262,9 +262,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'acm-pca-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -275,27 +275,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'acm-pca-fips.ca-central-1.amazonaws.com' + 'hostname': 'acm-pca-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'acm-pca-fips.us-east-1.amazonaws.com' + 'hostname': 'acm-pca-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'acm-pca-fips.us-east-2.amazonaws.com' + 'hostname': 'acm-pca-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'acm-pca-fips.us-west-1.amazonaws.com' + 'hostname': 'acm-pca-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'acm-pca-fips.us-west-2.amazonaws.com' + 'hostname': 'acm-pca-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -303,35 +303,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'acm-pca-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'acm-pca-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'acm-pca-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'acm-pca-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'airflow': { 'endpoints': { @@ -349,8 +349,8 @@ const _$_awsEndpointsJsonLiteral = { 'sa-east-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'amplify': { 'endpoints': { @@ -372,8 +372,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'amplifyuibuilder': { 'endpoints': { @@ -393,12 +393,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'api.detective': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'af-south-1': {}, @@ -421,105 +421,105 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'api.detective-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'api.detective-fips.us-east-1.amazonaws.com' + 'hostname': 'api.detective-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'api.detective-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'api.detective-fips.us-east-2.amazonaws.com' + 'hostname': 'api.detective-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'api.detective-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'api.detective-fips.us-west-1.amazonaws.com' + 'hostname': 'api.detective-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'api.detective-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'api.detective-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'api.detective-fips.us-west-2.amazonaws.com', + }, + }, }, 'api.ecr': { 'defaults': { 'variants': [ { 'hostname': 'ecr-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'af-south-1': { 'credentialScope': {'region': 'af-south-1'}, - 'hostname': 'api.ecr.af-south-1.amazonaws.com' + 'hostname': 'api.ecr.af-south-1.amazonaws.com', }, 'ap-east-1': { 'credentialScope': {'region': 'ap-east-1'}, - 'hostname': 'api.ecr.ap-east-1.amazonaws.com' + 'hostname': 'api.ecr.ap-east-1.amazonaws.com', }, 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'api.ecr.ap-northeast-1.amazonaws.com' + 'hostname': 'api.ecr.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'api.ecr.ap-northeast-2.amazonaws.com' + 'hostname': 'api.ecr.ap-northeast-2.amazonaws.com', }, 'ap-northeast-3': { 'credentialScope': {'region': 'ap-northeast-3'}, - 'hostname': 'api.ecr.ap-northeast-3.amazonaws.com' + 'hostname': 'api.ecr.ap-northeast-3.amazonaws.com', }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, - 'hostname': 'api.ecr.ap-south-1.amazonaws.com' + 'hostname': 'api.ecr.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'api.ecr.ap-southeast-1.amazonaws.com' + 'hostname': 'api.ecr.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'api.ecr.ap-southeast-2.amazonaws.com' + 'hostname': 'api.ecr.ap-southeast-2.amazonaws.com', }, 'ap-southeast-3': { 'credentialScope': {'region': 'ap-southeast-3'}, - 'hostname': 'api.ecr.ap-southeast-3.amazonaws.com' + 'hostname': 'api.ecr.ap-southeast-3.amazonaws.com', }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, - 'hostname': 'api.ecr.ca-central-1.amazonaws.com' + 'hostname': 'api.ecr.ca-central-1.amazonaws.com', }, 'dkr-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -527,9 +527,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dkr-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -537,9 +537,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dkr-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, @@ -547,9 +547,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dkr-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -557,81 +557,81 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'api.ecr.eu-central-1.amazonaws.com' + 'hostname': 'api.ecr.eu-central-1.amazonaws.com', }, 'eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, - 'hostname': 'api.ecr.eu-north-1.amazonaws.com' + 'hostname': 'api.ecr.eu-north-1.amazonaws.com', }, 'eu-south-1': { 'credentialScope': {'region': 'eu-south-1'}, - 'hostname': 'api.ecr.eu-south-1.amazonaws.com' + 'hostname': 'api.ecr.eu-south-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'api.ecr.eu-west-1.amazonaws.com' + 'hostname': 'api.ecr.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'api.ecr.eu-west-2.amazonaws.com' + 'hostname': 'api.ecr.eu-west-2.amazonaws.com', }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, - 'hostname': 'api.ecr.eu-west-3.amazonaws.com' + 'hostname': 'api.ecr.eu-west-3.amazonaws.com', }, 'fips-dkr-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-east-1.amazonaws.com' + 'hostname': 'ecr-fips.us-east-1.amazonaws.com', }, 'fips-dkr-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-east-2.amazonaws.com' + 'hostname': 'ecr-fips.us-east-2.amazonaws.com', }, 'fips-dkr-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-west-1.amazonaws.com' + 'hostname': 'ecr-fips.us-west-1.amazonaws.com', }, 'fips-dkr-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-west-2.amazonaws.com' + 'hostname': 'ecr-fips.us-west-2.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-east-1.amazonaws.com' + 'hostname': 'ecr-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-east-2.amazonaws.com' + 'hostname': 'ecr-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-west-1.amazonaws.com' + 'hostname': 'ecr-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-west-2.amazonaws.com' + 'hostname': 'ecr-fips.us-west-2.amazonaws.com', }, 'me-south-1': { 'credentialScope': {'region': 'me-south-1'}, - 'hostname': 'api.ecr.me-south-1.amazonaws.com' + 'hostname': 'api.ecr.me-south-1.amazonaws.com', }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, - 'hostname': 'api.ecr.sa-east-1.amazonaws.com' + 'hostname': 'api.ecr.sa-east-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -639,9 +639,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -649,9 +649,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'credentialScope': {'region': 'us-west-1'}, @@ -659,9 +659,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -669,41 +669,41 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'api.ecr-public': { 'endpoints': { 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'api.ecr-public.us-east-1.amazonaws.com' - } - } + 'hostname': 'api.ecr-public.us-east-1.amazonaws.com', + }, + }, }, 'api.elastic-inference': { 'endpoints': { 'ap-northeast-1': { - 'hostname': 'api.elastic-inference.ap-northeast-1.amazonaws.com' + 'hostname': 'api.elastic-inference.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { - 'hostname': 'api.elastic-inference.ap-northeast-2.amazonaws.com' + 'hostname': 'api.elastic-inference.ap-northeast-2.amazonaws.com', }, 'eu-west-1': { - 'hostname': 'api.elastic-inference.eu-west-1.amazonaws.com' + 'hostname': 'api.elastic-inference.eu-west-1.amazonaws.com', }, 'us-east-1': { - 'hostname': 'api.elastic-inference.us-east-1.amazonaws.com' + 'hostname': 'api.elastic-inference.us-east-1.amazonaws.com', }, 'us-east-2': { - 'hostname': 'api.elastic-inference.us-east-2.amazonaws.com' + 'hostname': 'api.elastic-inference.us-east-2.amazonaws.com', }, 'us-west-2': { - 'hostname': 'api.elastic-inference.us-west-2.amazonaws.com' - } - } + 'hostname': 'api.elastic-inference.us-west-2.amazonaws.com', + }, + }, }, 'api.fleethub.iot': { 'endpoints': { @@ -717,9 +717,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'api.fleethub.iot-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -728,72 +728,72 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'api.fleethub.iot-fips.ca-central-1.amazonaws.com' + 'hostname': 'api.fleethub.iot-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'api.fleethub.iot-fips.us-east-1.amazonaws.com' + 'hostname': 'api.fleethub.iot-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'api.fleethub.iot-fips.us-east-2.amazonaws.com' + 'hostname': 'api.fleethub.iot-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'api.fleethub.iot-fips.us-west-2.amazonaws.com' + 'hostname': 'api.fleethub.iot-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'api.fleethub.iot-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'api.fleethub.iot-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'api.fleethub.iot-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'api.iotwireless': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'api.iotwireless.ap-northeast-1.amazonaws.com' + 'hostname': 'api.iotwireless.ap-northeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'api.iotwireless.ap-southeast-2.amazonaws.com' + 'hostname': 'api.iotwireless.ap-southeast-2.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'api.iotwireless.eu-west-1.amazonaws.com' + 'hostname': 'api.iotwireless.eu-west-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'api.iotwireless.us-east-1.amazonaws.com' + 'hostname': 'api.iotwireless.us-east-1.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'api.iotwireless.us-west-2.amazonaws.com' - } - } + 'hostname': 'api.iotwireless.us-west-2.amazonaws.com', + }, + }, }, 'api.mediatailor': { 'endpoints': { @@ -803,23 +803,23 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-1': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'api.pricing': { 'defaults': { - 'credentialScope': {'service': 'pricing'} + 'credentialScope': {'service': 'pricing'}, }, - 'endpoints': {'ap-south-1': {}, 'us-east-1': {}} + 'endpoints': {'ap-south-1': {}, 'us-east-1': {}}, }, 'api.sagemaker': { 'defaults': { 'variants': [ { 'hostname': 'api-fips.sagemaker.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -843,64 +843,64 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'api-fips.sagemaker.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'api-fips.sagemaker.us-east-1.amazonaws.com' + 'hostname': 'api-fips.sagemaker.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'api-fips.sagemaker.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'api-fips.sagemaker.us-east-2.amazonaws.com' + 'hostname': 'api-fips.sagemaker.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'api-fips.sagemaker.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'api-fips.sagemaker.us-west-1.amazonaws.com' + 'hostname': 'api-fips.sagemaker.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'api-fips.sagemaker.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'api-fips.sagemaker.us-west-2.amazonaws.com' - } - } + 'hostname': 'api-fips.sagemaker.us-west-2.amazonaws.com', + }, + }, }, 'api.tunneling.iot': { 'defaults': { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'ap-east-1': {}, @@ -914,9 +914,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'api.tunneling.iot-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -926,27 +926,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'api.tunneling.iot-fips.ca-central-1.amazonaws.com' + 'hostname': 'api.tunneling.iot-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'api.tunneling.iot-fips.us-east-1.amazonaws.com' + 'hostname': 'api.tunneling.iot-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'api.tunneling.iot-fips.us-east-2.amazonaws.com' + 'hostname': 'api.tunneling.iot-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'api.tunneling.iot-fips.us-west-1.amazonaws.com' + 'hostname': 'api.tunneling.iot-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'api.tunneling.iot-fips.us-west-2.amazonaws.com' + 'hostname': 'api.tunneling.iot-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -954,35 +954,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'apigateway': { 'endpoints': { @@ -1006,8 +1006,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'app-integrations': { 'endpoints': { @@ -1018,8 +1018,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'appconfigdata': { 'endpoints': { @@ -1043,8 +1043,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'appflow': { 'endpoints': { @@ -1063,12 +1063,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'application-autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -1092,8 +1092,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'applicationinsights': { 'endpoints': { @@ -1117,8 +1117,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'appmesh': { 'endpoints': { @@ -1141,8 +1141,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'apprunner': { 'endpoints': { @@ -1150,13 +1150,13 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'appstream2': { 'defaults': { 'credentialScope': {'service': 'appstream'}, - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-northeast-1': {}, @@ -1170,35 +1170,35 @@ const _$_awsEndpointsJsonLiteral = { 'fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'appstream2-fips.us-west-2.amazonaws.com' + 'hostname': 'appstream2-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'appstream2-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'appstream2-fips.us-east-1.amazonaws.com' + 'hostname': 'appstream2-fips.us-east-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'appstream2-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'appstream2-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'appstream2-fips.us-west-2.amazonaws.com', + }, + }, }, 'appsync': { 'endpoints': { @@ -1221,12 +1221,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'aps': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-northeast-1': {}, @@ -1237,8 +1237,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'athena': { 'endpoints': { @@ -1260,22 +1260,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'athena-fips.us-east-1.amazonaws.com' + 'hostname': 'athena-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'athena-fips.us-east-2.amazonaws.com' + 'hostname': 'athena-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'athena-fips.us-west-1.amazonaws.com' + 'hostname': 'athena-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'athena-fips.us-west-2.amazonaws.com' + 'hostname': 'athena-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -1283,35 +1283,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'athena-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'athena-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'athena-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'athena-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'auditmanager': { 'endpoints': { @@ -1326,12 +1326,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -1355,12 +1355,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'autoscaling-plans': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -1384,8 +1384,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'backup': { 'endpoints': { @@ -1409,17 +1409,17 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'batch': { 'defaults': { 'variants': [ { 'hostname': 'fips.batch.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -1440,22 +1440,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'fips.batch.us-east-1.amazonaws.com' + 'hostname': 'fips.batch.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'fips.batch.us-east-2.amazonaws.com' + 'hostname': 'fips.batch.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'fips.batch.us-west-1.amazonaws.com' + 'hostname': 'fips.batch.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'fips.batch.us-west-2.amazonaws.com' + 'hostname': 'fips.batch.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -1463,77 +1463,77 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fips.batch.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'fips.batch.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'fips.batch.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'fips.batch.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'braket': { 'endpoints': { 'eu-west-2': {}, 'us-east-1': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'budgets': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'budgets.amazonaws.com' - } + 'hostname': 'budgets.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'ce': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'ce.us-east-1.amazonaws.com' - } + 'hostname': 'ce.us-east-1.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'chime': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, 'hostname': 'chime.us-east-1.amazonaws.com', - 'protocols': ['https'] - } + 'protocols': ['https'], + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'cloud9': { 'endpoints': { @@ -1557,8 +1557,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'cloudcontrolapi': { 'endpoints': { @@ -1575,9 +1575,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'cloudcontrolapi-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -1588,27 +1588,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'cloudcontrolapi-fips.ca-central-1.amazonaws.com' + 'hostname': 'cloudcontrolapi-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'cloudcontrolapi-fips.us-east-1.amazonaws.com' + 'hostname': 'cloudcontrolapi-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'cloudcontrolapi-fips.us-east-2.amazonaws.com' + 'hostname': 'cloudcontrolapi-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'cloudcontrolapi-fips.us-west-1.amazonaws.com' + 'hostname': 'cloudcontrolapi-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'cloudcontrolapi-fips.us-west-2.amazonaws.com' + 'hostname': 'cloudcontrolapi-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -1616,35 +1616,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'cloudcontrolapi-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'cloudcontrolapi-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'cloudcontrolapi-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'cloudcontrolapi-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'cloudformation': { 'endpoints': { @@ -1670,73 +1670,73 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'cloudformation-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'cloudformation-fips.us-east-1.amazonaws.com' + 'hostname': 'cloudformation-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'cloudformation-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'cloudformation-fips.us-east-2.amazonaws.com' + 'hostname': 'cloudformation-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'cloudformation-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'cloudformation-fips.us-west-1.amazonaws.com' + 'hostname': 'cloudformation-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'cloudformation-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'cloudformation-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'cloudformation-fips.us-west-2.amazonaws.com', + }, + }, }, 'cloudfront': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, 'hostname': 'cloudfront.amazonaws.com', - 'protocols': ['http', 'https'] - } + 'protocols': ['http', 'https'], + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'cloudhsm': { - 'endpoints': {'eu-west-1': {}, 'us-east-1': {}} + 'endpoints': {'eu-west-1': {}, 'us-east-1': {}}, }, 'cloudhsmv2': { 'defaults': { - 'credentialScope': {'service': 'cloudhsm'} + 'credentialScope': {'service': 'cloudhsm'}, }, 'endpoints': { 'af-south-1': {}, @@ -1759,8 +1759,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'cloudsearch': { 'endpoints': { @@ -1773,8 +1773,8 @@ const _$_awsEndpointsJsonLiteral = { 'sa-east-1': {}, 'us-east-1': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'cloudtrail': { 'endpoints': { @@ -1797,22 +1797,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'cloudtrail-fips.us-east-1.amazonaws.com' + 'hostname': 'cloudtrail-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'cloudtrail-fips.us-east-2.amazonaws.com' + 'hostname': 'cloudtrail-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'cloudtrail-fips.us-west-1.amazonaws.com' + 'hostname': 'cloudtrail-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'cloudtrail-fips.us-west-2.amazonaws.com' + 'hostname': 'cloudtrail-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -1820,35 +1820,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'cloudtrail-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'cloudtrail-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'cloudtrail-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'cloudtrail-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'codeartifact': { 'endpoints': { @@ -1864,8 +1864,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-3': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'codebuild': { 'endpoints': { @@ -1890,55 +1890,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'codebuild-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'codebuild-fips.us-east-1.amazonaws.com' + 'hostname': 'codebuild-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'codebuild-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'codebuild-fips.us-east-2.amazonaws.com' + 'hostname': 'codebuild-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'codebuild-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'codebuild-fips.us-west-1.amazonaws.com' + 'hostname': 'codebuild-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'codebuild-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'codebuild-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'codebuild-fips.us-west-2.amazonaws.com', + }, + }, }, 'codecommit': { 'endpoints': { @@ -1954,14 +1954,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'codecommit-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'codecommit-fips.ca-central-1.amazonaws.com' + 'hostname': 'codecommit-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -1972,7 +1972,7 @@ const _$_awsEndpointsJsonLiteral = { 'fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'codecommit-fips.ca-central-1.amazonaws.com' + 'hostname': 'codecommit-fips.ca-central-1.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -1980,55 +1980,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'codecommit-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'codecommit-fips.us-east-1.amazonaws.com' + 'hostname': 'codecommit-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'codecommit-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'codecommit-fips.us-east-2.amazonaws.com' + 'hostname': 'codecommit-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'codecommit-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'codecommit-fips.us-west-1.amazonaws.com' + 'hostname': 'codecommit-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'codecommit-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'codecommit-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'codecommit-fips.us-west-2.amazonaws.com', + }, + }, }, 'codedeploy': { 'endpoints': { @@ -2054,55 +2054,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'codedeploy-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'codedeploy-fips.us-east-1.amazonaws.com' + 'hostname': 'codedeploy-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'codedeploy-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'codedeploy-fips.us-east-2.amazonaws.com' + 'hostname': 'codedeploy-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'codedeploy-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'codedeploy-fips.us-west-1.amazonaws.com' + 'hostname': 'codedeploy-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'codedeploy-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'codedeploy-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'codedeploy-fips.us-west-2.amazonaws.com', + }, + }, }, 'codeguru-profiler': { 'endpoints': { @@ -2115,8 +2115,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'codeguru-reviewer': { 'endpoints': { @@ -2129,8 +2129,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'codepipeline': { 'endpoints': { @@ -2144,9 +2144,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'codepipeline-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -2157,62 +2157,62 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'codepipeline-fips.ca-central-1.amazonaws.com' + 'hostname': 'codepipeline-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'codepipeline-fips.us-east-1.amazonaws.com' + 'hostname': 'codepipeline-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'codepipeline-fips.us-east-2.amazonaws.com' + 'hostname': 'codepipeline-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'codepipeline-fips.us-west-1.amazonaws.com' + 'hostname': 'codepipeline-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'codepipeline-fips.us-west-2.amazonaws.com' + 'hostname': 'codepipeline-fips.us-west-2.amazonaws.com', }, 'sa-east-1': {}, 'us-east-1': { 'variants': [ { 'hostname': 'codepipeline-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'codepipeline-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'codepipeline-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'codepipeline-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'codestar': { 'endpoints': { @@ -2228,8 +2228,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'codestar-connections': { 'endpoints': { @@ -2248,8 +2248,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'codestar-notifications': { 'endpoints': { @@ -2270,8 +2270,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'cognito-identity': { 'endpoints': { @@ -2289,17 +2289,17 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'cognito-identity-fips.us-east-1.amazonaws.com' + 'hostname': 'cognito-identity-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'cognito-identity-fips.us-east-2.amazonaws.com' + 'hostname': 'cognito-identity-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'cognito-identity-fips.us-west-2.amazonaws.com' + 'hostname': 'cognito-identity-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -2307,28 +2307,28 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'cognito-identity-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'cognito-identity-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': {}, 'us-west-2': { 'variants': [ { 'hostname': 'cognito-identity-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'cognito-idp': { 'endpoints': { @@ -2346,22 +2346,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'cognito-idp-fips.us-east-1.amazonaws.com' + 'hostname': 'cognito-idp-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'cognito-idp-fips.us-east-2.amazonaws.com' + 'hostname': 'cognito-idp-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'cognito-idp-fips.us-west-1.amazonaws.com' + 'hostname': 'cognito-idp-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'cognito-idp-fips.us-west-2.amazonaws.com' + 'hostname': 'cognito-idp-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -2369,35 +2369,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'cognito-idp-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'cognito-idp-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'cognito-idp-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'cognito-idp-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'cognito-sync': { 'endpoints': { @@ -2411,12 +2411,12 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'comprehend': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-northeast-1': {}, @@ -2431,43 +2431,43 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'comprehend-fips.us-east-1.amazonaws.com' + 'hostname': 'comprehend-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'comprehend-fips.us-east-2.amazonaws.com' + 'hostname': 'comprehend-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'comprehend-fips.us-west-2.amazonaws.com' + 'hostname': 'comprehend-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'comprehend-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'comprehend-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'comprehend-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'comprehendmedical': { 'endpoints': { @@ -2478,111 +2478,111 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'comprehendmedical-fips.us-east-1.amazonaws.com' + 'hostname': 'comprehendmedical-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'comprehendmedical-fips.us-east-2.amazonaws.com' + 'hostname': 'comprehendmedical-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'comprehendmedical-fips.us-west-2.amazonaws.com' + 'hostname': 'comprehendmedical-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'comprehendmedical-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'comprehendmedical-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'comprehendmedical-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'compute-optimizer': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'compute-optimizer.ap-northeast-1.amazonaws.com' + 'hostname': 'compute-optimizer.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'compute-optimizer.ap-northeast-2.amazonaws.com' + 'hostname': 'compute-optimizer.ap-northeast-2.amazonaws.com', }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, - 'hostname': 'compute-optimizer.ap-south-1.amazonaws.com' + 'hostname': 'compute-optimizer.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'compute-optimizer.ap-southeast-1.amazonaws.com' + 'hostname': 'compute-optimizer.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'compute-optimizer.ap-southeast-2.amazonaws.com' + 'hostname': 'compute-optimizer.ap-southeast-2.amazonaws.com', }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, - 'hostname': 'compute-optimizer.ca-central-1.amazonaws.com' + 'hostname': 'compute-optimizer.ca-central-1.amazonaws.com', }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'compute-optimizer.eu-central-1.amazonaws.com' + 'hostname': 'compute-optimizer.eu-central-1.amazonaws.com', }, 'eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, - 'hostname': 'compute-optimizer.eu-north-1.amazonaws.com' + 'hostname': 'compute-optimizer.eu-north-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'compute-optimizer.eu-west-1.amazonaws.com' + 'hostname': 'compute-optimizer.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'compute-optimizer.eu-west-2.amazonaws.com' + 'hostname': 'compute-optimizer.eu-west-2.amazonaws.com', }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, - 'hostname': 'compute-optimizer.eu-west-3.amazonaws.com' + 'hostname': 'compute-optimizer.eu-west-3.amazonaws.com', }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, - 'hostname': 'compute-optimizer.sa-east-1.amazonaws.com' + 'hostname': 'compute-optimizer.sa-east-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'compute-optimizer.us-east-1.amazonaws.com' + 'hostname': 'compute-optimizer.us-east-1.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, - 'hostname': 'compute-optimizer.us-east-2.amazonaws.com' + 'hostname': 'compute-optimizer.us-east-2.amazonaws.com', }, 'us-west-1': { 'credentialScope': {'region': 'us-west-1'}, - 'hostname': 'compute-optimizer.us-west-1.amazonaws.com' + 'hostname': 'compute-optimizer.us-west-1.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'compute-optimizer.us-west-2.amazonaws.com' - } - } + 'hostname': 'compute-optimizer.us-west-2.amazonaws.com', + }, + }, }, 'config': { 'endpoints': { @@ -2605,22 +2605,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'config-fips.us-east-1.amazonaws.com' + 'hostname': 'config-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'config-fips.us-east-2.amazonaws.com' + 'hostname': 'config-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'config-fips.us-west-1.amazonaws.com' + 'hostname': 'config-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'config-fips.us-west-2.amazonaws.com' + 'hostname': 'config-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -2628,35 +2628,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'config-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'config-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'config-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'config-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'connect': { 'endpoints': { @@ -2669,8 +2669,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'connectparticipant': { 'endpoints': { @@ -2684,32 +2684,32 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'participant.connect-fips.us-east-1.amazonaws.com' + 'hostname': 'participant.connect-fips.us-east-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'participant.connect-fips.us-west-2.amazonaws.com' + 'hostname': 'participant.connect-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'participant.connect-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'participant.connect-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'contact-lens': { 'endpoints': { @@ -2720,16 +2720,16 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'cur': { - 'endpoints': {'us-east-1': {}} + 'endpoints': {'us-east-1': {}}, }, 'data.iot': { 'defaults': { 'credentialScope': {'service': 'iotdata'}, - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-east-1': {}, @@ -2742,9 +2742,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'data.iot-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -2754,27 +2754,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'service': 'iotdata'}, 'deprecated': true, - 'hostname': 'data.iot-fips.ca-central-1.amazonaws.com' + 'hostname': 'data.iot-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'service': 'iotdata'}, 'deprecated': true, - 'hostname': 'data.iot-fips.us-east-1.amazonaws.com' + 'hostname': 'data.iot-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'service': 'iotdata'}, 'deprecated': true, - 'hostname': 'data.iot-fips.us-east-2.amazonaws.com' + 'hostname': 'data.iot-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'service': 'iotdata'}, 'deprecated': true, - 'hostname': 'data.iot-fips.us-west-1.amazonaws.com' + 'hostname': 'data.iot-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'service': 'iotdata'}, 'deprecated': true, - 'hostname': 'data.iot-fips.us-west-2.amazonaws.com' + 'hostname': 'data.iot-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -2782,35 +2782,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'data.iot-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'data.iot-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'data.iot-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'data.iot-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'data.jobs.iot': { 'endpoints': { @@ -2824,9 +2824,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'data.jobs.iot-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -2836,27 +2836,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'data.jobs.iot-fips.ca-central-1.amazonaws.com' + 'hostname': 'data.jobs.iot-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'data.jobs.iot-fips.us-east-1.amazonaws.com' + 'hostname': 'data.jobs.iot-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'data.jobs.iot-fips.us-east-2.amazonaws.com' + 'hostname': 'data.jobs.iot-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'data.jobs.iot-fips.us-west-1.amazonaws.com' + 'hostname': 'data.jobs.iot-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'data.jobs.iot-fips.us-west-2.amazonaws.com' + 'hostname': 'data.jobs.iot-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -2864,35 +2864,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'data.jobs.iot-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'data.jobs.iot-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'data.jobs.iot-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'data.jobs.iot-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'data.mediastore': { 'endpoints': { @@ -2904,8 +2904,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'databrew': { 'endpoints': { @@ -2927,8 +2927,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'dataexchange': { 'endpoints': { @@ -2942,8 +2942,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'datapipeline': { 'endpoints': { @@ -2951,8 +2951,8 @@ const _$_awsEndpointsJsonLiteral = { 'ap-southeast-2': {}, 'eu-west-1': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'datasync': { 'endpoints': { @@ -2968,9 +2968,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'datasync-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -2981,27 +2981,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'datasync-fips.ca-central-1.amazonaws.com' + 'hostname': 'datasync-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'datasync-fips.us-east-1.amazonaws.com' + 'hostname': 'datasync-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'datasync-fips.us-east-2.amazonaws.com' + 'hostname': 'datasync-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'datasync-fips.us-west-1.amazonaws.com' + 'hostname': 'datasync-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'datasync-fips.us-west-2.amazonaws.com' + 'hostname': 'datasync-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3009,35 +3009,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'datasync-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'datasync-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'datasync-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'datasync-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'dax': { 'endpoints': { @@ -3053,24 +3053,24 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'deeplens': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-northeast-1': {}, 'eu-central-1': {}, - 'us-east-1': {} - } + 'us-east-1': {}, + }, }, 'devicefarm': { - 'endpoints': {'us-west-2': {}} + 'endpoints': {'us-west-2': {}}, }, 'devices.iot1click': { - 'endpoints': {'us-west-2': {}} + 'endpoints': {'us-west-2': {}}, }, 'directconnect': { 'endpoints': { @@ -3093,22 +3093,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'directconnect-fips.us-east-1.amazonaws.com' + 'hostname': 'directconnect-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'directconnect-fips.us-east-2.amazonaws.com' + 'hostname': 'directconnect-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'directconnect-fips.us-west-1.amazonaws.com' + 'hostname': 'directconnect-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'directconnect-fips.us-west-2.amazonaws.com' + 'hostname': 'directconnect-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3116,35 +3116,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'directconnect-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'directconnect-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'directconnect-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'directconnect-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'discovery': { 'endpoints': { @@ -3154,8 +3154,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'dlm': { 'endpoints': { @@ -3179,8 +3179,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'dms': { 'endpoints': { @@ -3200,14 +3200,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'dms-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dms-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'dms-fips.us-west-1.amazonaws.com' + 'hostname': 'dms-fips.us-west-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -3221,115 +3221,115 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'dms-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'dms-fips.us-east-1.amazonaws.com' + 'hostname': 'dms-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'dms-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'dms-fips.us-east-2.amazonaws.com' + 'hostname': 'dms-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'dms-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'dms-fips.us-west-1.amazonaws.com' + 'hostname': 'dms-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'dms-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'dms-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'dms-fips.us-west-2.amazonaws.com', + }, + }, }, 'docdb': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'rds.ap-northeast-1.amazonaws.com' + 'hostname': 'rds.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'rds.ap-northeast-2.amazonaws.com' + 'hostname': 'rds.ap-northeast-2.amazonaws.com', }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, - 'hostname': 'rds.ap-south-1.amazonaws.com' + 'hostname': 'rds.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'rds.ap-southeast-1.amazonaws.com' + 'hostname': 'rds.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'rds.ap-southeast-2.amazonaws.com' + 'hostname': 'rds.ap-southeast-2.amazonaws.com', }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, - 'hostname': 'rds.ca-central-1.amazonaws.com' + 'hostname': 'rds.ca-central-1.amazonaws.com', }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'rds.eu-central-1.amazonaws.com' + 'hostname': 'rds.eu-central-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'rds.eu-west-1.amazonaws.com' + 'hostname': 'rds.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'rds.eu-west-2.amazonaws.com' + 'hostname': 'rds.eu-west-2.amazonaws.com', }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, - 'hostname': 'rds.eu-west-3.amazonaws.com' + 'hostname': 'rds.eu-west-3.amazonaws.com', }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, - 'hostname': 'rds.sa-east-1.amazonaws.com' + 'hostname': 'rds.sa-east-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'rds.us-east-1.amazonaws.com' + 'hostname': 'rds.us-east-1.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, - 'hostname': 'rds.us-east-2.amazonaws.com' + 'hostname': 'rds.us-east-2.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'rds.us-west-2.amazonaws.com' - } - } + 'hostname': 'rds.us-west-2.amazonaws.com', + }, + }, }, 'drs': { 'endpoints': { @@ -3341,8 +3341,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'ds': { 'endpoints': { @@ -3358,9 +3358,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ds-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -3371,27 +3371,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'ds-fips.ca-central-1.amazonaws.com' + 'hostname': 'ds-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ds-fips.us-east-1.amazonaws.com' + 'hostname': 'ds-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ds-fips.us-east-2.amazonaws.com' + 'hostname': 'ds-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'ds-fips.us-west-1.amazonaws.com' + 'hostname': 'ds-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ds-fips.us-west-2.amazonaws.com' + 'hostname': 'ds-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3399,39 +3399,39 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ds-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'ds-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'ds-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'ds-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'dynamodb': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -3447,14 +3447,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'dynamodb-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'dynamodb-fips.ca-central-1.amazonaws.com' + 'hostname': 'dynamodb-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -3465,7 +3465,7 @@ const _$_awsEndpointsJsonLiteral = { 'local': { 'credentialScope': {'region': 'us-east-1'}, 'hostname': 'localhost:8000', - 'protocols': ['http'] + 'protocols': ['http'], }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3473,59 +3473,59 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'dynamodb-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'dynamodb-fips.us-east-1.amazonaws.com' + 'hostname': 'dynamodb-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'dynamodb-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'dynamodb-fips.us-east-2.amazonaws.com' + 'hostname': 'dynamodb-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'dynamodb-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'dynamodb-fips.us-west-1.amazonaws.com' + 'hostname': 'dynamodb-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'dynamodb-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'dynamodb-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'dynamodb-fips.us-west-2.amazonaws.com', + }, + }, }, 'ec2': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -3537,9 +3537,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'api.ec2.ap-south-1.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-1': {}, 'ap-southeast-2': {}, @@ -3548,9 +3548,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ec2-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -3559,91 +3559,91 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'api.ec2.eu-west-1.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-2': {}, 'eu-west-3': {}, 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'ec2-fips.ca-central-1.amazonaws.com' + 'hostname': 'ec2-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ec2-fips.us-east-1.amazonaws.com' + 'hostname': 'ec2-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ec2-fips.us-east-2.amazonaws.com' + 'hostname': 'ec2-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'ec2-fips.us-west-1.amazonaws.com' + 'hostname': 'ec2-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ec2-fips.us-west-2.amazonaws.com' + 'hostname': 'ec2-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': { 'variants': [ { 'hostname': 'api.ec2.sa-east-1.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-1': { 'variants': [ { 'hostname': 'api.ec2.us-east-1.aws', - 'tags': ['dualstack'] + 'tags': ['dualstack'], }, { 'hostname': 'ec2-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'api.ec2.us-east-2.aws', - 'tags': ['dualstack'] + 'tags': ['dualstack'], }, { 'hostname': 'ec2-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'ec2-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'api.ec2.us-west-2.aws', - 'tags': ['dualstack'] + 'tags': ['dualstack'], }, { 'hostname': 'ec2-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'ecs': { 'endpoints': { @@ -3666,22 +3666,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ecs-fips.us-east-1.amazonaws.com' + 'hostname': 'ecs-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ecs-fips.us-east-2.amazonaws.com' + 'hostname': 'ecs-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'ecs-fips.us-west-1.amazonaws.com' + 'hostname': 'ecs-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ecs-fips.us-west-2.amazonaws.com' + 'hostname': 'ecs-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3689,35 +3689,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecs-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'ecs-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'ecs-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'ecs-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'edge.sagemaker': { 'endpoints': { @@ -3726,8 +3726,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'eks': { 'defaults': { @@ -3735,9 +3735,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fips.eks.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -3758,22 +3758,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'fips.eks.us-east-1.amazonaws.com' + 'hostname': 'fips.eks.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'fips.eks.us-east-2.amazonaws.com' + 'hostname': 'fips.eks.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'fips.eks.us-west-1.amazonaws.com' + 'hostname': 'fips.eks.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'fips.eks.us-west-2.amazonaws.com' + 'hostname': 'fips.eks.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3781,35 +3781,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fips.eks.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'fips.eks.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'fips.eks.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'fips.eks.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticache': { 'endpoints': { @@ -3832,7 +3832,7 @@ const _$_awsEndpointsJsonLiteral = { 'fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'elasticache-fips.us-west-1.amazonaws.com' + 'hostname': 'elasticache-fips.us-west-1.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3840,55 +3840,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'elasticache-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'elasticache-fips.us-east-1.amazonaws.com' + 'hostname': 'elasticache-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'elasticache-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'elasticache-fips.us-east-2.amazonaws.com' + 'hostname': 'elasticache-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'elasticache-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'elasticache-fips.us-west-1.amazonaws.com' + 'hostname': 'elasticache-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'elasticache-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'elasticache-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'elasticache-fips.us-west-2.amazonaws.com', + }, + }, }, 'elasticbeanstalk': { 'endpoints': { @@ -3910,22 +3910,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'elasticbeanstalk-fips.us-east-1.amazonaws.com' + 'hostname': 'elasticbeanstalk-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'elasticbeanstalk-fips.us-east-2.amazonaws.com' + 'hostname': 'elasticbeanstalk-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'elasticbeanstalk-fips.us-west-1.amazonaws.com' + 'hostname': 'elasticbeanstalk-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'elasticbeanstalk-fips.us-west-2.amazonaws.com' + 'hostname': 'elasticbeanstalk-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -3933,35 +3933,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'elasticbeanstalk-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'elasticbeanstalk-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'elasticbeanstalk-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'elasticbeanstalk-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticfilesystem': { 'endpoints': { @@ -3969,301 +3969,301 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'elasticfilesystem-fips.af-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-east-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-northeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-2': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-northeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-3': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-northeast-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-south-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-southeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-2': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-southeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-3': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ap-southeast-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.eu-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-north-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.eu-north-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-south-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.eu-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.eu-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-2': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.eu-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-3': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.eu-west-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-af-south-1': { 'credentialScope': {'region': 'af-south-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.af-south-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.af-south-1.amazonaws.com', }, 'fips-ap-east-1': { 'credentialScope': {'region': 'ap-east-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-east-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-east-1.amazonaws.com', }, 'fips-ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-northeast-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-northeast-1.amazonaws.com', }, 'fips-ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-northeast-2.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-northeast-2.amazonaws.com', }, 'fips-ap-northeast-3': { 'credentialScope': {'region': 'ap-northeast-3'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-northeast-3.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-northeast-3.amazonaws.com', }, 'fips-ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-south-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-south-1.amazonaws.com', }, 'fips-ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-southeast-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-southeast-1.amazonaws.com', }, 'fips-ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-southeast-2.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-southeast-2.amazonaws.com', }, 'fips-ap-southeast-3': { 'credentialScope': {'region': 'ap-southeast-3'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ap-southeast-3.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ap-southeast-3.amazonaws.com', }, 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.ca-central-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.ca-central-1.amazonaws.com', }, 'fips-eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.eu-central-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.eu-central-1.amazonaws.com', }, 'fips-eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.eu-north-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.eu-north-1.amazonaws.com', }, 'fips-eu-south-1': { 'credentialScope': {'region': 'eu-south-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.eu-south-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.eu-south-1.amazonaws.com', }, 'fips-eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.eu-west-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.eu-west-1.amazonaws.com', }, 'fips-eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.eu-west-2.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.eu-west-2.amazonaws.com', }, 'fips-eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.eu-west-3.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.eu-west-3.amazonaws.com', }, 'fips-me-south-1': { 'credentialScope': {'region': 'me-south-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.me-south-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.me-south-1.amazonaws.com', }, 'fips-sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.sa-east-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.sa-east-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.us-east-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.us-east-2.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.us-west-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.us-west-2.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.us-west-2.amazonaws.com', }, 'me-south-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.me-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'sa-east-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.sa-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticloadbalancing': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'af-south-1': {}, @@ -4285,22 +4285,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'elasticloadbalancing-fips.us-east-1.amazonaws.com' + 'hostname': 'elasticloadbalancing-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'elasticloadbalancing-fips.us-east-2.amazonaws.com' + 'hostname': 'elasticloadbalancing-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'elasticloadbalancing-fips.us-west-1.amazonaws.com' + 'hostname': 'elasticloadbalancing-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'elasticloadbalancing-fips.us-west-2.amazonaws.com' + 'hostname': 'elasticloadbalancing-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -4309,43 +4309,43 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'elasticloadbalancing-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'elasticloadbalancing-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'elasticloadbalancing-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'elasticloadbalancing-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticmapreduce': { 'defaults': { 'protocols': ['https'], - 'sslCommonName': '{region}.{service}.{dnsSuffix}' + 'sslCommonName': '{region}.{service}.{dnsSuffix}', }, 'endpoints': { 'af-south-1': {}, @@ -4362,9 +4362,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'elasticmapreduce-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {'sslCommonName': '{service}.{region}.{dnsSuffix}'}, 'eu-north-1': {}, @@ -4375,27 +4375,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'elasticmapreduce-fips.ca-central-1.amazonaws.com' + 'hostname': 'elasticmapreduce-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'elasticmapreduce-fips.us-east-1.amazonaws.com' + 'hostname': 'elasticmapreduce-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'elasticmapreduce-fips.us-east-2.amazonaws.com' + 'hostname': 'elasticmapreduce-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'elasticmapreduce-fips.us-west-1.amazonaws.com' + 'hostname': 'elasticmapreduce-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'elasticmapreduce-fips.us-west-2.amazonaws.com' + 'hostname': 'elasticmapreduce-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -4404,35 +4404,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'elasticmapreduce-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'elasticmapreduce-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'elasticmapreduce-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'elasticmapreduce-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elastictranscoder': { 'endpoints': { @@ -4443,8 +4443,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'email': { 'endpoints': { @@ -4453,8 +4453,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-1': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'emr-containers': { 'endpoints': { @@ -4467,9 +4467,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'emr-containers-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -4479,68 +4479,68 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'emr-containers-fips.ca-central-1.amazonaws.com' + 'hostname': 'emr-containers-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'emr-containers-fips.us-east-1.amazonaws.com' + 'hostname': 'emr-containers-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'emr-containers-fips.us-east-2.amazonaws.com' + 'hostname': 'emr-containers-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'emr-containers-fips.us-west-1.amazonaws.com' + 'hostname': 'emr-containers-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'emr-containers-fips.us-west-2.amazonaws.com' + 'hostname': 'emr-containers-fips.us-west-2.amazonaws.com', }, 'sa-east-1': {}, 'us-east-1': { 'variants': [ { 'hostname': 'emr-containers-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'emr-containers-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'emr-containers-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'emr-containers-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'entitlement.marketplace': { 'defaults': { - 'credentialScope': {'service': 'aws-marketplace'} + 'credentialScope': {'service': 'aws-marketplace'}, }, - 'endpoints': {'us-east-1': {}} + 'endpoints': {'us-east-1': {}}, }, 'es': { 'endpoints': { @@ -4563,7 +4563,7 @@ const _$_awsEndpointsJsonLiteral = { 'fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'es-fips.us-west-1.amazonaws.com' + 'hostname': 'es-fips.us-west-1.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -4571,55 +4571,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'es-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'es-fips.us-east-1.amazonaws.com' + 'hostname': 'es-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'es-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'es-fips.us-east-2.amazonaws.com' + 'hostname': 'es-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'es-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'es-fips.us-west-1.amazonaws.com' + 'hostname': 'es-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'es-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'es-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'es-fips.us-west-2.amazonaws.com', + }, + }, }, 'events': { 'endpoints': { @@ -4642,22 +4642,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'events-fips.us-east-1.amazonaws.com' + 'hostname': 'events-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'events-fips.us-east-2.amazonaws.com' + 'hostname': 'events-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'events-fips.us-west-1.amazonaws.com' + 'hostname': 'events-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'events-fips.us-west-2.amazonaws.com' + 'hostname': 'events-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -4665,56 +4665,56 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'events-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'events-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'events-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'events-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'evidently': { 'endpoints': { 'ap-northeast-1': { - 'hostname': 'evidently.ap-northeast-1.amazonaws.com' + 'hostname': 'evidently.ap-northeast-1.amazonaws.com', }, 'ap-southeast-1': { - 'hostname': 'evidently.ap-southeast-1.amazonaws.com' + 'hostname': 'evidently.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { - 'hostname': 'evidently.ap-southeast-2.amazonaws.com' + 'hostname': 'evidently.ap-southeast-2.amazonaws.com', }, 'eu-central-1': { - 'hostname': 'evidently.eu-central-1.amazonaws.com' + 'hostname': 'evidently.eu-central-1.amazonaws.com', }, 'eu-north-1': {'hostname': 'evidently.eu-north-1.amazonaws.com'}, 'eu-west-1': {'hostname': 'evidently.eu-west-1.amazonaws.com'}, 'us-east-1': {'hostname': 'evidently.us-east-1.amazonaws.com'}, 'us-east-2': {'hostname': 'evidently.us-east-2.amazonaws.com'}, - 'us-west-2': {'hostname': 'evidently.us-west-2.amazonaws.com'} - } + 'us-west-2': {'hostname': 'evidently.us-west-2.amazonaws.com'}, + }, }, 'execute-api': { 'endpoints': { @@ -4737,8 +4737,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'finspace': { 'endpoints': { @@ -4746,8 +4746,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'finspace-api': { 'endpoints': { @@ -4755,8 +4755,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'firehose': { 'endpoints': { @@ -4778,22 +4778,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'firehose-fips.us-east-1.amazonaws.com' + 'hostname': 'firehose-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'firehose-fips.us-east-2.amazonaws.com' + 'hostname': 'firehose-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'firehose-fips.us-west-1.amazonaws.com' + 'hostname': 'firehose-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'firehose-fips.us-west-2.amazonaws.com' + 'hostname': 'firehose-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -4801,291 +4801,291 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'firehose-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'firehose-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'firehose-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'firehose-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'fms': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'af-south-1': { 'variants': [ { 'hostname': 'fms-fips.af-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-east-1': { 'variants': [ { 'hostname': 'fms-fips.ap-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-1': { 'variants': [ { 'hostname': 'fms-fips.ap-northeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-2': { 'variants': [ { 'hostname': 'fms-fips.ap-northeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-3': {}, 'ap-south-1': { 'variants': [ { 'hostname': 'fms-fips.ap-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-1': { 'variants': [ { 'hostname': 'fms-fips.ap-southeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-2': { 'variants': [ { 'hostname': 'fms-fips.ap-southeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1': { 'variants': [ { 'hostname': 'fms-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': { 'variants': [ { 'hostname': 'fms-fips.eu-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-north-1': {}, 'eu-south-1': { 'variants': [ { 'hostname': 'fms-fips.eu-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-1': { 'variants': [ { 'hostname': 'fms-fips.eu-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-2': { 'variants': [ { 'hostname': 'fms-fips.eu-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-3': { 'variants': [ { 'hostname': 'fms-fips.eu-west-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-af-south-1': { 'credentialScope': {'region': 'af-south-1'}, 'deprecated': true, - 'hostname': 'fms-fips.af-south-1.amazonaws.com' + 'hostname': 'fms-fips.af-south-1.amazonaws.com', }, 'fips-ap-east-1': { 'credentialScope': {'region': 'ap-east-1'}, 'deprecated': true, - 'hostname': 'fms-fips.ap-east-1.amazonaws.com' + 'hostname': 'fms-fips.ap-east-1.amazonaws.com', }, 'fips-ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, 'deprecated': true, - 'hostname': 'fms-fips.ap-northeast-1.amazonaws.com' + 'hostname': 'fms-fips.ap-northeast-1.amazonaws.com', }, 'fips-ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, 'deprecated': true, - 'hostname': 'fms-fips.ap-northeast-2.amazonaws.com' + 'hostname': 'fms-fips.ap-northeast-2.amazonaws.com', }, 'fips-ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, 'deprecated': true, - 'hostname': 'fms-fips.ap-south-1.amazonaws.com' + 'hostname': 'fms-fips.ap-south-1.amazonaws.com', }, 'fips-ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, 'deprecated': true, - 'hostname': 'fms-fips.ap-southeast-1.amazonaws.com' + 'hostname': 'fms-fips.ap-southeast-1.amazonaws.com', }, 'fips-ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, 'deprecated': true, - 'hostname': 'fms-fips.ap-southeast-2.amazonaws.com' + 'hostname': 'fms-fips.ap-southeast-2.amazonaws.com', }, 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'fms-fips.ca-central-1.amazonaws.com' + 'hostname': 'fms-fips.ca-central-1.amazonaws.com', }, 'fips-eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, 'deprecated': true, - 'hostname': 'fms-fips.eu-central-1.amazonaws.com' + 'hostname': 'fms-fips.eu-central-1.amazonaws.com', }, 'fips-eu-south-1': { 'credentialScope': {'region': 'eu-south-1'}, 'deprecated': true, - 'hostname': 'fms-fips.eu-south-1.amazonaws.com' + 'hostname': 'fms-fips.eu-south-1.amazonaws.com', }, 'fips-eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, 'deprecated': true, - 'hostname': 'fms-fips.eu-west-1.amazonaws.com' + 'hostname': 'fms-fips.eu-west-1.amazonaws.com', }, 'fips-eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, 'deprecated': true, - 'hostname': 'fms-fips.eu-west-2.amazonaws.com' + 'hostname': 'fms-fips.eu-west-2.amazonaws.com', }, 'fips-eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, 'deprecated': true, - 'hostname': 'fms-fips.eu-west-3.amazonaws.com' + 'hostname': 'fms-fips.eu-west-3.amazonaws.com', }, 'fips-me-south-1': { 'credentialScope': {'region': 'me-south-1'}, 'deprecated': true, - 'hostname': 'fms-fips.me-south-1.amazonaws.com' + 'hostname': 'fms-fips.me-south-1.amazonaws.com', }, 'fips-sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, 'deprecated': true, - 'hostname': 'fms-fips.sa-east-1.amazonaws.com' + 'hostname': 'fms-fips.sa-east-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'fms-fips.us-east-1.amazonaws.com' + 'hostname': 'fms-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'fms-fips.us-east-2.amazonaws.com' + 'hostname': 'fms-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'fms-fips.us-west-1.amazonaws.com' + 'hostname': 'fms-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'fms-fips.us-west-2.amazonaws.com' + 'hostname': 'fms-fips.us-west-2.amazonaws.com', }, 'me-south-1': { 'variants': [ { 'hostname': 'fms-fips.me-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'sa-east-1': { 'variants': [ { 'hostname': 'fms-fips.sa-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': { 'variants': [ { 'hostname': 'fms-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'fms-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'fms-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'fms-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'forecast': { 'endpoints': { @@ -5099,43 +5099,43 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'forecast-fips.us-east-1.amazonaws.com' + 'hostname': 'forecast-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'forecast-fips.us-east-2.amazonaws.com' + 'hostname': 'forecast-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'forecast-fips.us-west-2.amazonaws.com' + 'hostname': 'forecast-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'forecast-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'forecast-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'forecast-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'forecastquery': { 'endpoints': { @@ -5149,43 +5149,43 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'forecastquery-fips.us-east-1.amazonaws.com' + 'hostname': 'forecastquery-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'forecastquery-fips.us-east-2.amazonaws.com' + 'hostname': 'forecastquery-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'forecastquery-fips.us-west-2.amazonaws.com' + 'hostname': 'forecastquery-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'forecastquery-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'forecastquery-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'forecastquery-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'frauddetector': { 'endpoints': { @@ -5194,8 +5194,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'fsx': { 'endpoints': { @@ -5211,9 +5211,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -5224,52 +5224,52 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.ca-central-1.amazonaws.com' + 'hostname': 'fsx-fips.ca-central-1.amazonaws.com', }, 'fips-prod-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.ca-central-1.amazonaws.com' + 'hostname': 'fsx-fips.ca-central-1.amazonaws.com', }, 'fips-prod-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-east-1.amazonaws.com' + 'hostname': 'fsx-fips.us-east-1.amazonaws.com', }, 'fips-prod-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-east-2.amazonaws.com' + 'hostname': 'fsx-fips.us-east-2.amazonaws.com', }, 'fips-prod-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-west-1.amazonaws.com' + 'hostname': 'fsx-fips.us-west-1.amazonaws.com', }, 'fips-prod-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-west-2.amazonaws.com' + 'hostname': 'fsx-fips.us-west-2.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-east-1.amazonaws.com' + 'hostname': 'fsx-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-east-2.amazonaws.com' + 'hostname': 'fsx-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-west-1.amazonaws.com' + 'hostname': 'fsx-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-west-2.amazonaws.com' + 'hostname': 'fsx-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'prod-ca-central-1': { @@ -5278,9 +5278,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'prod-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -5288,9 +5288,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'prod-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -5298,9 +5298,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'prod-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, @@ -5308,9 +5308,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'prod-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -5318,44 +5318,44 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'sa-east-1': {}, 'us-east-1': { 'variants': [ { 'hostname': 'fsx-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'fsx-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'fsx-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'fsx-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'gamelift': { 'endpoints': { @@ -5379,12 +5379,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'glacier': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -5400,9 +5400,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'glacier-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -5413,27 +5413,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'glacier-fips.ca-central-1.amazonaws.com' + 'hostname': 'glacier-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'glacier-fips.us-east-1.amazonaws.com' + 'hostname': 'glacier-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'glacier-fips.us-east-2.amazonaws.com' + 'hostname': 'glacier-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'glacier-fips.us-west-1.amazonaws.com' + 'hostname': 'glacier-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'glacier-fips.us-west-2.amazonaws.com' + 'hostname': 'glacier-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -5441,35 +5441,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'glacier-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'glacier-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'glacier-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'glacier-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'glue': { 'endpoints': { @@ -5491,22 +5491,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'glue-fips.us-east-1.amazonaws.com' + 'hostname': 'glue-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'glue-fips.us-east-2.amazonaws.com' + 'hostname': 'glue-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'glue-fips.us-west-1.amazonaws.com' + 'hostname': 'glue-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'glue-fips.us-west-2.amazonaws.com' + 'hostname': 'glue-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -5514,83 +5514,83 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'glue-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'glue-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'glue-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'glue-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'grafana': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'grafana.ap-northeast-1.amazonaws.com' + 'hostname': 'grafana.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'grafana.ap-northeast-2.amazonaws.com' + 'hostname': 'grafana.ap-northeast-2.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'grafana.ap-southeast-1.amazonaws.com' + 'hostname': 'grafana.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'grafana.ap-southeast-2.amazonaws.com' + 'hostname': 'grafana.ap-southeast-2.amazonaws.com', }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'grafana.eu-central-1.amazonaws.com' + 'hostname': 'grafana.eu-central-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'grafana.eu-west-1.amazonaws.com' + 'hostname': 'grafana.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'grafana.eu-west-2.amazonaws.com' + 'hostname': 'grafana.eu-west-2.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'grafana.us-east-1.amazonaws.com' + 'hostname': 'grafana.us-east-1.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, - 'hostname': 'grafana.us-east-2.amazonaws.com' + 'hostname': 'grafana.us-east-2.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'grafana.us-west-2.amazonaws.com' - } - } + 'hostname': 'grafana.us-west-2.amazonaws.com', + }, + }, }, 'greengrass': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-northeast-1': {}, @@ -5604,9 +5604,9 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} + 'us-west-2': {}, }, - 'isRegionalized': true + 'isRegionalized': true, }, 'groundstation': { 'endpoints': { @@ -5619,17 +5619,17 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'groundstation-fips.us-east-1.amazonaws.com' + 'hostname': 'groundstation-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'groundstation-fips.us-east-2.amazonaws.com' + 'hostname': 'groundstation-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'groundstation-fips.us-west-2.amazonaws.com' + 'hostname': 'groundstation-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -5637,31 +5637,31 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'groundstation-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'groundstation-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'groundstation-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'guardduty': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'af-south-1': {}, @@ -5686,63 +5686,63 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'guardduty-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'guardduty-fips.us-east-1.amazonaws.com' + 'hostname': 'guardduty-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'guardduty-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'guardduty-fips.us-east-2.amazonaws.com' + 'hostname': 'guardduty-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'guardduty-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'guardduty-fips.us-west-1.amazonaws.com' + 'hostname': 'guardduty-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'guardduty-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'guardduty-fips.us-west-2.amazonaws.com' - } + 'hostname': 'guardduty-fips.us-west-2.amazonaws.com', + }, }, - 'isRegionalized': true + 'isRegionalized': true, }, 'health': { 'endpoints': { 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'health-fips.us-east-2.amazonaws.com' + 'hostname': 'health-fips.us-east-2.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -5750,20 +5750,20 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'health-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'healthlake': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'us-east-1': {}, 'us-east-2': {}, 'us-west-2': {}} + 'endpoints': {'us-east-1': {}, 'us-east-2': {}, 'us-west-2': {}}, }, 'honeycode': { - 'endpoints': {'us-west-2': {}} + 'endpoints': {'us-west-2': {}}, }, 'iam': { 'endpoints': { @@ -5773,14 +5773,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'iam-fips.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'aws-global-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'iam-fips.amazonaws.com' + 'hostname': 'iam-fips.amazonaws.com', }, 'iam': { 'credentialScope': {'region': 'us-east-1'}, @@ -5788,18 +5788,18 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'iam-fips.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'iam-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'iam-fips.amazonaws.com' - } + 'hostname': 'iam-fips.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'identity-chime': { 'endpoints': { @@ -5807,16 +5807,16 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'identity-chime-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'identity-chime-fips.us-east-1.amazonaws.com' - } - } + 'hostname': 'identity-chime-fips.us-east-1.amazonaws.com', + }, + }, }, 'identitystore': { 'endpoints': { @@ -5832,22 +5832,22 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'importexport': { 'endpoints': { 'aws-global': { 'credentialScope': { 'region': 'us-east-1', - 'service': 'IngestionService' + 'service': 'IngestionService', }, 'hostname': 'importexport.amazonaws.com', - 'signatureVersions': ['v2', 'v4'] - } + 'signatureVersions': ['v2', 'v4'], + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'inspector': { 'endpoints': { @@ -5862,56 +5862,56 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'inspector-fips.us-east-1.amazonaws.com' + 'hostname': 'inspector-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'inspector-fips.us-east-2.amazonaws.com' + 'hostname': 'inspector-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'inspector-fips.us-west-1.amazonaws.com' + 'hostname': 'inspector-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'inspector-fips.us-west-2.amazonaws.com' + 'hostname': 'inspector-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'inspector-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'inspector-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'inspector-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'inspector-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'inspector2': { 'endpoints': { @@ -5933,12 +5933,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'iot': { 'defaults': { - 'credentialScope': {'service': 'execute-api'} + 'credentialScope': {'service': 'execute-api'}, }, 'endpoints': { 'ap-east-1': {}, @@ -5951,9 +5951,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'iot-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -5963,27 +5963,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'service': 'execute-api'}, 'deprecated': true, - 'hostname': 'iot-fips.ca-central-1.amazonaws.com' + 'hostname': 'iot-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'service': 'execute-api'}, 'deprecated': true, - 'hostname': 'iot-fips.us-east-1.amazonaws.com' + 'hostname': 'iot-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'service': 'execute-api'}, 'deprecated': true, - 'hostname': 'iot-fips.us-east-2.amazonaws.com' + 'hostname': 'iot-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'service': 'execute-api'}, 'deprecated': true, - 'hostname': 'iot-fips.us-west-1.amazonaws.com' + 'hostname': 'iot-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'service': 'execute-api'}, 'deprecated': true, - 'hostname': 'iot-fips.us-west-2.amazonaws.com' + 'hostname': 'iot-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -5991,35 +5991,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'iot-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'iot-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'iot-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'iot-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'iotanalytics': { 'endpoints': { @@ -6030,28 +6030,28 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'iotdeviceadvisor': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'api.iotdeviceadvisor.ap-northeast-1.amazonaws.com' + 'hostname': 'api.iotdeviceadvisor.ap-northeast-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'api.iotdeviceadvisor.eu-west-1.amazonaws.com' + 'hostname': 'api.iotdeviceadvisor.eu-west-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'api.iotdeviceadvisor.us-east-1.amazonaws.com' + 'hostname': 'api.iotdeviceadvisor.us-east-1.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'api.iotdeviceadvisor.us-west-2.amazonaws.com' - } - } + 'hostname': 'api.iotdeviceadvisor.us-west-2.amazonaws.com', + }, + }, }, 'iotevents': { 'endpoints': { @@ -6065,60 +6065,60 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'ioteventsdata': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'data.iotevents.ap-northeast-1.amazonaws.com' + 'hostname': 'data.iotevents.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'data.iotevents.ap-northeast-2.amazonaws.com' + 'hostname': 'data.iotevents.ap-northeast-2.amazonaws.com', }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, - 'hostname': 'data.iotevents.ap-south-1.amazonaws.com' + 'hostname': 'data.iotevents.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'data.iotevents.ap-southeast-1.amazonaws.com' + 'hostname': 'data.iotevents.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'data.iotevents.ap-southeast-2.amazonaws.com' + 'hostname': 'data.iotevents.ap-southeast-2.amazonaws.com', }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'data.iotevents.eu-central-1.amazonaws.com' + 'hostname': 'data.iotevents.eu-central-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'data.iotevents.eu-west-1.amazonaws.com' + 'hostname': 'data.iotevents.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'data.iotevents.eu-west-2.amazonaws.com' + 'hostname': 'data.iotevents.eu-west-2.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'data.iotevents.us-east-1.amazonaws.com' + 'hostname': 'data.iotevents.us-east-1.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, - 'hostname': 'data.iotevents.us-east-2.amazonaws.com' + 'hostname': 'data.iotevents.us-east-2.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'data.iotevents.us-west-2.amazonaws.com' - } - } + 'hostname': 'data.iotevents.us-west-2.amazonaws.com', + }, + }, }, 'iotthingsgraph': { 'defaults': { - 'credentialScope': {'service': 'iotthingsgraph'} + 'credentialScope': {'service': 'iotthingsgraph'}, }, 'endpoints': { 'ap-northeast-1': {}, @@ -6126,11 +6126,11 @@ const _$_awsEndpointsJsonLiteral = { 'ap-southeast-2': {}, 'eu-west-1': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'ivs': { - 'endpoints': {'eu-west-1': {}, 'us-east-1': {}, 'us-west-2': {}} + 'endpoints': {'eu-west-1': {}, 'us-east-1': {}, 'us-west-2': {}}, }, 'kafka': { 'endpoints': { @@ -6154,8 +6154,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'kafkaconnect': { 'endpoints': { @@ -6174,8 +6174,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'kinesis': { 'endpoints': { @@ -6198,22 +6198,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'kinesis-fips.us-east-1.amazonaws.com' + 'hostname': 'kinesis-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'kinesis-fips.us-east-2.amazonaws.com' + 'hostname': 'kinesis-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'kinesis-fips.us-west-1.amazonaws.com' + 'hostname': 'kinesis-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'kinesis-fips.us-west-2.amazonaws.com' + 'hostname': 'kinesis-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -6221,35 +6221,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'kinesis-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'kinesis-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'kinesis-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'kinesis-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'kinesisanalytics': { 'endpoints': { @@ -6273,8 +6273,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'kinesisvideo': { 'endpoints': { @@ -6292,8 +6292,8 @@ const _$_awsEndpointsJsonLiteral = { 'sa-east-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'kms': { 'endpoints': { @@ -6301,289 +6301,289 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'kms-fips.af-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'af-south-1-fips': { 'credentialScope': {'region': 'af-south-1'}, 'deprecated': true, - 'hostname': 'kms-fips.af-south-1.amazonaws.com' + 'hostname': 'kms-fips.af-south-1.amazonaws.com', }, 'ap-east-1': { 'variants': [ { 'hostname': 'kms-fips.ap-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-east-1-fips': { 'credentialScope': {'region': 'ap-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-east-1.amazonaws.com' + 'hostname': 'kms-fips.ap-east-1.amazonaws.com', }, 'ap-northeast-1': { 'variants': [ { 'hostname': 'kms-fips.ap-northeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-1-fips': { 'credentialScope': {'region': 'ap-northeast-1'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-northeast-1.amazonaws.com' + 'hostname': 'kms-fips.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'variants': [ { 'hostname': 'kms-fips.ap-northeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-2-fips': { 'credentialScope': {'region': 'ap-northeast-2'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-northeast-2.amazonaws.com' + 'hostname': 'kms-fips.ap-northeast-2.amazonaws.com', }, 'ap-northeast-3': { 'variants': [ { 'hostname': 'kms-fips.ap-northeast-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-3-fips': { 'credentialScope': {'region': 'ap-northeast-3'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-northeast-3.amazonaws.com' + 'hostname': 'kms-fips.ap-northeast-3.amazonaws.com', }, 'ap-south-1': { 'variants': [ { 'hostname': 'kms-fips.ap-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-south-1-fips': { 'credentialScope': {'region': 'ap-south-1'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-south-1.amazonaws.com' + 'hostname': 'kms-fips.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'variants': [ { 'hostname': 'kms-fips.ap-southeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-1-fips': { 'credentialScope': {'region': 'ap-southeast-1'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-southeast-1.amazonaws.com' + 'hostname': 'kms-fips.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'variants': [ { 'hostname': 'kms-fips.ap-southeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-2-fips': { 'credentialScope': {'region': 'ap-southeast-2'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-southeast-2.amazonaws.com' + 'hostname': 'kms-fips.ap-southeast-2.amazonaws.com', }, 'ap-southeast-3': { 'variants': [ { 'hostname': 'kms-fips.ap-southeast-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-3-fips': { 'credentialScope': {'region': 'ap-southeast-3'}, 'deprecated': true, - 'hostname': 'kms-fips.ap-southeast-3.amazonaws.com' + 'hostname': 'kms-fips.ap-southeast-3.amazonaws.com', }, 'ca-central-1': { 'variants': [ { 'hostname': 'kms-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'kms-fips.ca-central-1.amazonaws.com' + 'hostname': 'kms-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': { 'variants': [ { 'hostname': 'kms-fips.eu-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1-fips': { 'credentialScope': {'region': 'eu-central-1'}, 'deprecated': true, - 'hostname': 'kms-fips.eu-central-1.amazonaws.com' + 'hostname': 'kms-fips.eu-central-1.amazonaws.com', }, 'eu-north-1': { 'variants': [ { 'hostname': 'kms-fips.eu-north-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-north-1-fips': { 'credentialScope': {'region': 'eu-north-1'}, 'deprecated': true, - 'hostname': 'kms-fips.eu-north-1.amazonaws.com' + 'hostname': 'kms-fips.eu-north-1.amazonaws.com', }, 'eu-south-1': { 'variants': [ { 'hostname': 'kms-fips.eu-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-south-1-fips': { 'credentialScope': {'region': 'eu-south-1'}, 'deprecated': true, - 'hostname': 'kms-fips.eu-south-1.amazonaws.com' + 'hostname': 'kms-fips.eu-south-1.amazonaws.com', }, 'eu-west-1': { 'variants': [ { 'hostname': 'kms-fips.eu-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-1-fips': { 'credentialScope': {'region': 'eu-west-1'}, 'deprecated': true, - 'hostname': 'kms-fips.eu-west-1.amazonaws.com' + 'hostname': 'kms-fips.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'variants': [ { 'hostname': 'kms-fips.eu-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-2-fips': { 'credentialScope': {'region': 'eu-west-2'}, 'deprecated': true, - 'hostname': 'kms-fips.eu-west-2.amazonaws.com' + 'hostname': 'kms-fips.eu-west-2.amazonaws.com', }, 'eu-west-3': { 'variants': [ { 'hostname': 'kms-fips.eu-west-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-3-fips': { 'credentialScope': {'region': 'eu-west-3'}, 'deprecated': true, - 'hostname': 'kms-fips.eu-west-3.amazonaws.com' + 'hostname': 'kms-fips.eu-west-3.amazonaws.com', }, 'me-south-1': { 'variants': [ { 'hostname': 'kms-fips.me-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'me-south-1-fips': { 'credentialScope': {'region': 'me-south-1'}, 'deprecated': true, - 'hostname': 'kms-fips.me-south-1.amazonaws.com' + 'hostname': 'kms-fips.me-south-1.amazonaws.com', }, 'sa-east-1': { 'variants': [ { 'hostname': 'kms-fips.sa-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'sa-east-1-fips': { 'credentialScope': {'region': 'sa-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.sa-east-1.amazonaws.com' + 'hostname': 'kms-fips.sa-east-1.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'kms-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-east-1.amazonaws.com' + 'hostname': 'kms-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'kms-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'kms-fips.us-east-2.amazonaws.com' + 'hostname': 'kms-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'kms-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-west-1.amazonaws.com' + 'hostname': 'kms-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'kms-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'kms-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'kms-fips.us-west-2.amazonaws.com', + }, + }, }, 'lakeformation': { 'endpoints': { @@ -6605,22 +6605,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'lakeformation-fips.us-east-1.amazonaws.com' + 'hostname': 'lakeformation-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'lakeformation-fips.us-east-2.amazonaws.com' + 'hostname': 'lakeformation-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'lakeformation-fips.us-west-1.amazonaws.com' + 'hostname': 'lakeformation-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'lakeformation-fips.us-west-2.amazonaws.com' + 'hostname': 'lakeformation-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -6628,35 +6628,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'lakeformation-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'lakeformation-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'lakeformation-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'lakeformation-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'lambda': { 'endpoints': { @@ -6664,215 +6664,215 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'lambda.af-south-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-east-1': { 'variants': [ { 'hostname': 'lambda.ap-east-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-1': { 'variants': [ { 'hostname': 'lambda.ap-northeast-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-2': { 'variants': [ { 'hostname': 'lambda.ap-northeast-2.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-3': { 'variants': [ { 'hostname': 'lambda.ap-northeast-3.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-south-1': { 'variants': [ { 'hostname': 'lambda.ap-south-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-1': { 'variants': [ { 'hostname': 'lambda.ap-southeast-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-2': { 'variants': [ { 'hostname': 'lambda.ap-southeast-2.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-3': { 'variants': [ { 'hostname': 'lambda.ap-southeast-3.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ca-central-1': { 'variants': [ { 'hostname': 'lambda.ca-central-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-central-1': { 'variants': [ { 'hostname': 'lambda.eu-central-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-north-1': { 'variants': [ { 'hostname': 'lambda.eu-north-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-south-1': { 'variants': [ { 'hostname': 'lambda.eu-south-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-1': { 'variants': [ { 'hostname': 'lambda.eu-west-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-2': { 'variants': [ { 'hostname': 'lambda.eu-west-2.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-3': { 'variants': [ { 'hostname': 'lambda.eu-west-3.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'lambda-fips.us-east-1.amazonaws.com' + 'hostname': 'lambda-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'lambda-fips.us-east-2.amazonaws.com' + 'hostname': 'lambda-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'lambda-fips.us-west-1.amazonaws.com' + 'hostname': 'lambda-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'lambda-fips.us-west-2.amazonaws.com' + 'hostname': 'lambda-fips.us-west-2.amazonaws.com', }, 'me-south-1': { 'variants': [ { 'hostname': 'lambda.me-south-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'sa-east-1': { 'variants': [ { 'hostname': 'lambda.sa-east-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-1': { 'variants': [ { 'hostname': 'lambda-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'lambda.us-east-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'lambda-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'lambda.us-east-2.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'lambda-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'lambda.us-west-1.api.aws', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'lambda-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'lambda.us-west-2.api.aws', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'license-manager': { 'endpoints': { @@ -6894,22 +6894,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'license-manager-fips.us-east-1.amazonaws.com' + 'hostname': 'license-manager-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'license-manager-fips.us-east-2.amazonaws.com' + 'hostname': 'license-manager-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'license-manager-fips.us-west-1.amazonaws.com' + 'hostname': 'license-manager-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'license-manager-fips.us-west-2.amazonaws.com' + 'hostname': 'license-manager-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -6917,35 +6917,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'license-manager-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'license-manager-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'license-manager-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'license-manager-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'lightsail': { 'endpoints': { @@ -6962,8 +6962,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-3': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'logs': { 'endpoints': { @@ -6986,22 +6986,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'logs-fips.us-east-1.amazonaws.com' + 'hostname': 'logs-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'logs-fips.us-east-2.amazonaws.com' + 'hostname': 'logs-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'logs-fips.us-west-1.amazonaws.com' + 'hostname': 'logs-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'logs-fips.us-west-2.amazonaws.com' + 'hostname': 'logs-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -7009,38 +7009,38 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'logs-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'logs-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'logs-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'logs-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'lookoutequipment': { - 'endpoints': {'ap-northeast-2': {}, 'eu-west-1': {}, 'us-east-1': {}} + 'endpoints': {'ap-northeast-2': {}, 'eu-west-1': {}, 'us-east-1': {}}, }, 'lookoutmetrics': { 'endpoints': { @@ -7052,8 +7052,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'lookoutvision': { 'endpoints': { @@ -7063,41 +7063,41 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'machinelearning': { - 'endpoints': {'eu-west-1': {}, 'us-east-1': {}} + 'endpoints': {'eu-west-1': {}, 'us-east-1': {}}, }, 'macie': { 'endpoints': { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'macie-fips.us-east-1.amazonaws.com' + 'hostname': 'macie-fips.us-east-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'macie-fips.us-west-2.amazonaws.com' + 'hostname': 'macie-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'macie-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'macie-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'macie2': { 'endpoints': { @@ -7119,22 +7119,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'macie2-fips.us-east-1.amazonaws.com' + 'hostname': 'macie2-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'macie2-fips.us-east-2.amazonaws.com' + 'hostname': 'macie2-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'macie2-fips.us-west-1.amazonaws.com' + 'hostname': 'macie2-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'macie2-fips.us-west-2.amazonaws.com' + 'hostname': 'macie2-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -7142,35 +7142,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'macie2-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'macie2-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'macie2-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'macie2-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'managedblockchain': { 'endpoints': { @@ -7179,11 +7179,11 @@ const _$_awsEndpointsJsonLiteral = { 'ap-southeast-1': {}, 'eu-west-1': {}, 'eu-west-2': {}, - 'us-east-1': {} - } + 'us-east-1': {}, + }, }, 'marketplacecommerceanalytics': { - 'endpoints': {'us-east-1': {}} + 'endpoints': {'us-east-1': {}}, }, 'mediaconvert': { 'endpoints': { @@ -7196,9 +7196,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'mediaconvert-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -7208,62 +7208,62 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'mediaconvert-fips.ca-central-1.amazonaws.com' + 'hostname': 'mediaconvert-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'mediaconvert-fips.us-east-1.amazonaws.com' + 'hostname': 'mediaconvert-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'mediaconvert-fips.us-east-2.amazonaws.com' + 'hostname': 'mediaconvert-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'mediaconvert-fips.us-west-1.amazonaws.com' + 'hostname': 'mediaconvert-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'mediaconvert-fips.us-west-2.amazonaws.com' + 'hostname': 'mediaconvert-fips.us-west-2.amazonaws.com', }, 'sa-east-1': {}, 'us-east-1': { 'variants': [ { 'hostname': 'mediaconvert-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'mediaconvert-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'mediaconvert-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'mediaconvert-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'mediapackage': { 'endpoints': { @@ -7281,8 +7281,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'mediapackage-vod': { 'endpoints': { @@ -7300,8 +7300,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'mediastore': { 'endpoints': { @@ -7313,8 +7313,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'meetings-chime': { 'endpoints': { @@ -7324,29 +7324,29 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'meetings-chime-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'meetings-chime-fips.us-east-1.amazonaws.com' + 'hostname': 'meetings-chime-fips.us-east-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'meetings-chime-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'meetings-chime-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'meetings-chime-fips.us-west-2.amazonaws.com', + }, + }, }, 'memorydb': { 'endpoints': { @@ -7362,13 +7362,13 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'fips': { 'credentialScope': {'region': 'us-west-1'}, - 'hostname': 'memory-db-fips.us-west-1.amazonaws.com' + 'hostname': 'memory-db-fips.us-west-1.amazonaws.com', }, 'sa-east-1': {}, 'us-east-1': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'messaging-chime': { 'endpoints': { @@ -7376,20 +7376,20 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'messaging-chime-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'messaging-chime-fips.us-east-1.amazonaws.com' - } - } + 'hostname': 'messaging-chime-fips.us-east-1.amazonaws.com', + }, + }, }, 'metering.marketplace': { 'defaults': { - 'credentialScope': {'service': 'aws-marketplace'} + 'credentialScope': {'service': 'aws-marketplace'}, }, 'endpoints': { 'af-south-1': {}, @@ -7413,8 +7413,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'mgh': { 'endpoints': { @@ -7424,8 +7424,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'mgn': { 'endpoints': { @@ -7449,8 +7449,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'migrationhub-strategy': { 'endpoints': { @@ -7460,11 +7460,11 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'mobileanalytics': { - 'endpoints': {'us-east-1': {}} + 'endpoints': {'us-east-1': {}}, }, 'models-v2-lex': { 'endpoints': { @@ -7478,8 +7478,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'models.lex': { 'defaults': { @@ -7487,9 +7487,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'models-fips.lex.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'ap-northeast-1': {}, @@ -7502,33 +7502,33 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'models-fips.lex.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'models-fips.lex.us-east-1.amazonaws.com' + 'hostname': 'models-fips.lex.us-east-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'models-fips.lex.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'models-fips.lex.us-west-2.amazonaws.com' - } - } + 'hostname': 'models-fips.lex.us-west-2.amazonaws.com', + }, + }, }, 'monitoring': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -7550,22 +7550,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'monitoring-fips.us-east-1.amazonaws.com' + 'hostname': 'monitoring-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'monitoring-fips.us-east-2.amazonaws.com' + 'hostname': 'monitoring-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'monitoring-fips.us-west-1.amazonaws.com' + 'hostname': 'monitoring-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'monitoring-fips.us-west-2.amazonaws.com' + 'hostname': 'monitoring-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -7573,35 +7573,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'monitoring-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'monitoring-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'monitoring-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'monitoring-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'mq': { 'endpoints': { @@ -7623,22 +7623,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'mq-fips.us-east-1.amazonaws.com' + 'hostname': 'mq-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'mq-fips.us-east-2.amazonaws.com' + 'hostname': 'mq-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'mq-fips.us-west-1.amazonaws.com' + 'hostname': 'mq-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'mq-fips.us-west-2.amazonaws.com' + 'hostname': 'mq-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -7646,124 +7646,124 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'mq-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'mq-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'mq-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'mq-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'mturk-requester': { 'endpoints': { 'sandbox': { - 'hostname': 'mturk-requester-sandbox.us-east-1.amazonaws.com' + 'hostname': 'mturk-requester-sandbox.us-east-1.amazonaws.com', }, - 'us-east-1': {} + 'us-east-1': {}, }, - 'isRegionalized': false + 'isRegionalized': false, }, 'neptune': { 'endpoints': { 'af-south-1': { 'credentialScope': {'region': 'af-south-1'}, - 'hostname': 'rds.af-south-1.amazonaws.com' + 'hostname': 'rds.af-south-1.amazonaws.com', }, 'ap-east-1': { 'credentialScope': {'region': 'ap-east-1'}, - 'hostname': 'rds.ap-east-1.amazonaws.com' + 'hostname': 'rds.ap-east-1.amazonaws.com', }, 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'rds.ap-northeast-1.amazonaws.com' + 'hostname': 'rds.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'rds.ap-northeast-2.amazonaws.com' + 'hostname': 'rds.ap-northeast-2.amazonaws.com', }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, - 'hostname': 'rds.ap-south-1.amazonaws.com' + 'hostname': 'rds.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'rds.ap-southeast-1.amazonaws.com' + 'hostname': 'rds.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'rds.ap-southeast-2.amazonaws.com' + 'hostname': 'rds.ap-southeast-2.amazonaws.com', }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, - 'hostname': 'rds.ca-central-1.amazonaws.com' + 'hostname': 'rds.ca-central-1.amazonaws.com', }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'rds.eu-central-1.amazonaws.com' + 'hostname': 'rds.eu-central-1.amazonaws.com', }, 'eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, - 'hostname': 'rds.eu-north-1.amazonaws.com' + 'hostname': 'rds.eu-north-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'rds.eu-west-1.amazonaws.com' + 'hostname': 'rds.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'rds.eu-west-2.amazonaws.com' + 'hostname': 'rds.eu-west-2.amazonaws.com', }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, - 'hostname': 'rds.eu-west-3.amazonaws.com' + 'hostname': 'rds.eu-west-3.amazonaws.com', }, 'me-south-1': { 'credentialScope': {'region': 'me-south-1'}, - 'hostname': 'rds.me-south-1.amazonaws.com' + 'hostname': 'rds.me-south-1.amazonaws.com', }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, - 'hostname': 'rds.sa-east-1.amazonaws.com' + 'hostname': 'rds.sa-east-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'rds.us-east-1.amazonaws.com' + 'hostname': 'rds.us-east-1.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, - 'hostname': 'rds.us-east-2.amazonaws.com' + 'hostname': 'rds.us-east-2.amazonaws.com', }, 'us-west-1': { 'credentialScope': {'region': 'us-west-1'}, - 'hostname': 'rds.us-west-1.amazonaws.com' + 'hostname': 'rds.us-west-1.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'rds.us-west-2.amazonaws.com' - } - } + 'hostname': 'rds.us-west-2.amazonaws.com', + }, + }, }, 'network-firewall': { 'endpoints': { @@ -7780,9 +7780,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'network-firewall-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -7793,27 +7793,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'network-firewall-fips.ca-central-1.amazonaws.com' + 'hostname': 'network-firewall-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'network-firewall-fips.us-east-1.amazonaws.com' + 'hostname': 'network-firewall-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'network-firewall-fips.us-east-2.amazonaws.com' + 'hostname': 'network-firewall-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'network-firewall-fips.us-west-1.amazonaws.com' + 'hostname': 'network-firewall-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'network-firewall-fips.us-west-2.amazonaws.com' + 'hostname': 'network-firewall-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -7821,45 +7821,45 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'network-firewall-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'network-firewall-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'network-firewall-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'network-firewall-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'networkmanager': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'networkmanager.us-west-2.amazonaws.com' - } + 'hostname': 'networkmanager.us-west-2.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'nimble': { 'endpoints': { @@ -7867,72 +7867,72 @@ const _$_awsEndpointsJsonLiteral = { 'ca-central-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'oidc': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'oidc.ap-northeast-1.amazonaws.com' + 'hostname': 'oidc.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'oidc.ap-northeast-2.amazonaws.com' + 'hostname': 'oidc.ap-northeast-2.amazonaws.com', }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, - 'hostname': 'oidc.ap-south-1.amazonaws.com' + 'hostname': 'oidc.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'oidc.ap-southeast-1.amazonaws.com' + 'hostname': 'oidc.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'oidc.ap-southeast-2.amazonaws.com' + 'hostname': 'oidc.ap-southeast-2.amazonaws.com', }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, - 'hostname': 'oidc.ca-central-1.amazonaws.com' + 'hostname': 'oidc.ca-central-1.amazonaws.com', }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'oidc.eu-central-1.amazonaws.com' + 'hostname': 'oidc.eu-central-1.amazonaws.com', }, 'eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, - 'hostname': 'oidc.eu-north-1.amazonaws.com' + 'hostname': 'oidc.eu-north-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'oidc.eu-west-1.amazonaws.com' + 'hostname': 'oidc.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'oidc.eu-west-2.amazonaws.com' + 'hostname': 'oidc.eu-west-2.amazonaws.com', }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, - 'hostname': 'oidc.eu-west-3.amazonaws.com' + 'hostname': 'oidc.eu-west-3.amazonaws.com', }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, - 'hostname': 'oidc.sa-east-1.amazonaws.com' + 'hostname': 'oidc.sa-east-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'oidc.us-east-1.amazonaws.com' + 'hostname': 'oidc.us-east-1.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, - 'hostname': 'oidc.us-east-2.amazonaws.com' + 'hostname': 'oidc.us-east-2.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'oidc.us-west-2.amazonaws.com' - } - } + 'hostname': 'oidc.us-west-2.amazonaws.com', + }, + }, }, 'opsworks': { 'endpoints': { @@ -7950,8 +7950,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'opsworks-cm': { 'endpoints': { @@ -7963,8 +7963,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'organizations': { 'endpoints': { @@ -7974,18 +7974,18 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'organizations-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-aws-global': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'organizations-fips.us-east-1.amazonaws.com' - } + 'hostname': 'organizations-fips.us-east-1.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'outposts': { 'endpoints': { @@ -8001,9 +8001,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'outposts-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -8014,27 +8014,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'outposts-fips.ca-central-1.amazonaws.com' + 'hostname': 'outposts-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'outposts-fips.us-east-1.amazonaws.com' + 'hostname': 'outposts-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'outposts-fips.us-east-2.amazonaws.com' + 'hostname': 'outposts-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'outposts-fips.us-west-1.amazonaws.com' + 'hostname': 'outposts-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'outposts-fips.us-west-2.amazonaws.com' + 'hostname': 'outposts-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -8042,35 +8042,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'outposts-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'outposts-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'outposts-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'outposts-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'personalize': { 'endpoints': { @@ -8084,8 +8084,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'pi': { 'endpoints': { @@ -8109,12 +8109,12 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'pinpoint': { 'defaults': { - 'credentialScope': {'service': 'mobiletargeting'} + 'credentialScope': {'service': 'mobiletargeting'}, }, 'endpoints': { 'ap-northeast-1': {}, @@ -8129,12 +8129,12 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'pinpoint-fips.us-east-1.amazonaws.com' + 'hostname': 'pinpoint-fips.us-east-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'pinpoint-fips.us-west-2.amazonaws.com' + 'hostname': 'pinpoint-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -8142,9 +8142,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'pinpoint-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -8152,15 +8152,15 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'pinpoint-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'pinpoint-sms-voice': { 'defaults': { - 'credentialScope': {'service': 'sms-voice'} + 'credentialScope': {'service': 'sms-voice'}, }, 'endpoints': { 'ap-south-1': {}, @@ -8168,8 +8168,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-1': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'polly': { 'endpoints': { @@ -8189,22 +8189,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'polly-fips.us-east-1.amazonaws.com' + 'hostname': 'polly-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'polly-fips.us-east-2.amazonaws.com' + 'hostname': 'polly-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'polly-fips.us-west-1.amazonaws.com' + 'hostname': 'polly-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'polly-fips.us-west-2.amazonaws.com' + 'hostname': 'polly-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -8212,99 +8212,99 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'polly-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'polly-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'polly-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'polly-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'portal.sso': { 'endpoints': { 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, - 'hostname': 'portal.sso.ap-northeast-1.amazonaws.com' + 'hostname': 'portal.sso.ap-northeast-1.amazonaws.com', }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, - 'hostname': 'portal.sso.ap-northeast-2.amazonaws.com' + 'hostname': 'portal.sso.ap-northeast-2.amazonaws.com', }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, - 'hostname': 'portal.sso.ap-south-1.amazonaws.com' + 'hostname': 'portal.sso.ap-south-1.amazonaws.com', }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, - 'hostname': 'portal.sso.ap-southeast-1.amazonaws.com' + 'hostname': 'portal.sso.ap-southeast-1.amazonaws.com', }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, - 'hostname': 'portal.sso.ap-southeast-2.amazonaws.com' + 'hostname': 'portal.sso.ap-southeast-2.amazonaws.com', }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, - 'hostname': 'portal.sso.ca-central-1.amazonaws.com' + 'hostname': 'portal.sso.ca-central-1.amazonaws.com', }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, - 'hostname': 'portal.sso.eu-central-1.amazonaws.com' + 'hostname': 'portal.sso.eu-central-1.amazonaws.com', }, 'eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, - 'hostname': 'portal.sso.eu-north-1.amazonaws.com' + 'hostname': 'portal.sso.eu-north-1.amazonaws.com', }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, - 'hostname': 'portal.sso.eu-west-1.amazonaws.com' + 'hostname': 'portal.sso.eu-west-1.amazonaws.com', }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, - 'hostname': 'portal.sso.eu-west-2.amazonaws.com' + 'hostname': 'portal.sso.eu-west-2.amazonaws.com', }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, - 'hostname': 'portal.sso.eu-west-3.amazonaws.com' + 'hostname': 'portal.sso.eu-west-3.amazonaws.com', }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, - 'hostname': 'portal.sso.sa-east-1.amazonaws.com' + 'hostname': 'portal.sso.sa-east-1.amazonaws.com', }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'portal.sso.us-east-1.amazonaws.com' + 'hostname': 'portal.sso.us-east-1.amazonaws.com', }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, - 'hostname': 'portal.sso.us-east-2.amazonaws.com' + 'hostname': 'portal.sso.us-east-2.amazonaws.com', }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, - 'hostname': 'portal.sso.us-west-2.amazonaws.com' - } - } + 'hostname': 'portal.sso.us-west-2.amazonaws.com', + }, + }, }, 'profile': { 'endpoints': { @@ -8315,8 +8315,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'projects.iot1click': { 'endpoints': { @@ -8326,8 +8326,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'qldb': { 'endpoints': { @@ -8342,43 +8342,43 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'qldb-fips.us-east-1.amazonaws.com' + 'hostname': 'qldb-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'qldb-fips.us-east-2.amazonaws.com' + 'hostname': 'qldb-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'qldb-fips.us-west-2.amazonaws.com' + 'hostname': 'qldb-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'qldb-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'qldb-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'qldb-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'quicksight': { 'endpoints': { @@ -8395,8 +8395,8 @@ const _$_awsEndpointsJsonLiteral = { 'sa-east-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'ram': { 'endpoints': { @@ -8412,9 +8412,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ram-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -8425,27 +8425,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'ram-fips.ca-central-1.amazonaws.com' + 'hostname': 'ram-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ram-fips.us-east-1.amazonaws.com' + 'hostname': 'ram-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ram-fips.us-east-2.amazonaws.com' + 'hostname': 'ram-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'ram-fips.us-west-1.amazonaws.com' + 'hostname': 'ram-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ram-fips.us-west-2.amazonaws.com' + 'hostname': 'ram-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -8453,35 +8453,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ram-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'ram-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'ram-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'ram-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'rbin': { 'endpoints': { @@ -8505,8 +8505,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'rds': { 'endpoints': { @@ -8523,14 +8523,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rds-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'rds-fips.ca-central-1.amazonaws.com' + 'hostname': 'rds-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -8542,27 +8542,27 @@ const _$_awsEndpointsJsonLiteral = { 'rds-fips.ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'rds-fips.ca-central-1.amazonaws.com' + 'hostname': 'rds-fips.ca-central-1.amazonaws.com', }, 'rds-fips.us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'rds-fips.us-east-1.amazonaws.com' + 'hostname': 'rds-fips.us-east-1.amazonaws.com', }, 'rds-fips.us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'rds-fips.us-east-2.amazonaws.com' + 'hostname': 'rds-fips.us-east-2.amazonaws.com', }, 'rds-fips.us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'rds-fips.us-west-1.amazonaws.com' + 'hostname': 'rds-fips.us-west-1.amazonaws.com', }, 'rds-fips.us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'rds-fips.us-west-2.amazonaws.com' + 'hostname': 'rds-fips.us-west-2.amazonaws.com', }, 'rds.ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, @@ -8570,9 +8570,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rds-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rds.us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -8580,9 +8580,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rds-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rds.us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -8590,9 +8590,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rds-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rds.us-west-1': { 'credentialScope': {'region': 'us-west-1'}, @@ -8600,9 +8600,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rds-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rds.us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -8610,9 +8610,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rds-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'sa-east-1': {}, 'us-east-1': { @@ -8620,55 +8620,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rds-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'rds-fips.us-east-1.amazonaws.com' + 'hostname': 'rds-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'rds-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'rds-fips.us-east-2.amazonaws.com' + 'hostname': 'rds-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'rds-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'rds-fips.us-west-1.amazonaws.com' + 'hostname': 'rds-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'rds-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'rds-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'rds-fips.us-west-2.amazonaws.com', + }, + }, }, 'rdsdataservice': { 'endpoints': { @@ -8685,56 +8685,56 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'rds-data-fips.us-east-1.amazonaws.com' + 'hostname': 'rds-data-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'rds-data-fips.us-east-2.amazonaws.com' + 'hostname': 'rds-data-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'rds-data-fips.us-west-1.amazonaws.com' + 'hostname': 'rds-data-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'rds-data-fips.us-west-2.amazonaws.com' + 'hostname': 'rds-data-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'rds-data-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'rds-data-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'rds-data-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'rds-data-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'redshift': { 'endpoints': { @@ -8751,9 +8751,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'redshift-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -8764,27 +8764,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'redshift-fips.ca-central-1.amazonaws.com' + 'hostname': 'redshift-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'redshift-fips.us-east-1.amazonaws.com' + 'hostname': 'redshift-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'redshift-fips.us-east-2.amazonaws.com' + 'hostname': 'redshift-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'redshift-fips.us-west-1.amazonaws.com' + 'hostname': 'redshift-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'redshift-fips.us-west-2.amazonaws.com' + 'hostname': 'redshift-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -8792,35 +8792,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'redshift-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'redshift-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'redshift-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'redshift-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'rekognition': { 'endpoints': { @@ -8833,14 +8833,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rekognition-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.ca-central-1.amazonaws.com' + 'hostname': 'rekognition-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-west-1': {}, @@ -8848,27 +8848,27 @@ const _$_awsEndpointsJsonLiteral = { 'rekognition-fips.ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.ca-central-1.amazonaws.com' + 'hostname': 'rekognition-fips.ca-central-1.amazonaws.com', }, 'rekognition-fips.us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-east-1.amazonaws.com' + 'hostname': 'rekognition-fips.us-east-1.amazonaws.com', }, 'rekognition-fips.us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-east-2.amazonaws.com' + 'hostname': 'rekognition-fips.us-east-2.amazonaws.com', }, 'rekognition-fips.us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-west-1.amazonaws.com' + 'hostname': 'rekognition-fips.us-west-1.amazonaws.com', }, 'rekognition-fips.us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-west-2.amazonaws.com' + 'hostname': 'rekognition-fips.us-west-2.amazonaws.com', }, 'rekognition.ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, @@ -8876,9 +8876,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rekognition-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rekognition.us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -8886,9 +8886,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rekognition-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rekognition.us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -8896,9 +8896,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rekognition-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rekognition.us-west-1': { 'credentialScope': {'region': 'us-west-1'}, @@ -8906,9 +8906,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rekognition-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'rekognition.us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -8916,63 +8916,63 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rekognition-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': { 'variants': [ { 'hostname': 'rekognition-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-east-1.amazonaws.com' + 'hostname': 'rekognition-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'rekognition-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-east-2.amazonaws.com' + 'hostname': 'rekognition-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'rekognition-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-west-1.amazonaws.com' + 'hostname': 'rekognition-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'rekognition-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'rekognition-fips.us-west-2.amazonaws.com', + }, + }, }, 'resource-groups': { 'endpoints': { @@ -8995,22 +8995,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'resource-groups-fips.us-east-1.amazonaws.com' + 'hostname': 'resource-groups-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'resource-groups-fips.us-east-2.amazonaws.com' + 'hostname': 'resource-groups-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'resource-groups-fips.us-west-1.amazonaws.com' + 'hostname': 'resource-groups-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'resource-groups-fips.us-west-2.amazonaws.com' + 'hostname': 'resource-groups-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -9018,35 +9018,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'resource-groups-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'resource-groups-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'resource-groups-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'resource-groups-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'robomaker': { 'endpoints': { @@ -9056,8 +9056,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'route53': { 'endpoints': { @@ -9067,34 +9067,34 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'route53-fips.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-aws-global': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'route53-fips.amazonaws.com' - } + 'hostname': 'route53-fips.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'route53-recovery-control-config': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-west-2'}, 'hostname': - 'route53-recovery-control-config.us-west-2.amazonaws.com' - } - } + 'route53-recovery-control-config.us-west-2.amazonaws.com', + }, + }, }, 'route53domains': { - 'endpoints': {'us-east-1': {}} + 'endpoints': {'us-east-1': {}}, }, 'route53resolver': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'af-south-1': {}, @@ -9117,8 +9117,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'rum': { 'endpoints': { @@ -9131,8 +9131,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-2': {}, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'runtime-v2-lex': { 'endpoints': { @@ -9146,8 +9146,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-west-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'runtime.lex': { 'defaults': { @@ -9155,9 +9155,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'runtime-fips.lex.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'ap-northeast-1': {}, @@ -9170,38 +9170,38 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'runtime-fips.lex.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'runtime-fips.lex.us-east-1.amazonaws.com' + 'hostname': 'runtime-fips.lex.us-east-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'runtime-fips.lex.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'runtime-fips.lex.us-west-2.amazonaws.com' - } - } + 'hostname': 'runtime-fips.lex.us-west-2.amazonaws.com', + }, + }, }, 'runtime.sagemaker': { 'defaults': { 'variants': [ { 'hostname': 'runtime-fips.sagemaker.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -9225,55 +9225,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'runtime-fips.sagemaker.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'runtime-fips.sagemaker.us-east-1.amazonaws.com' + 'hostname': 'runtime-fips.sagemaker.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'runtime-fips.sagemaker.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'runtime-fips.sagemaker.us-east-2.amazonaws.com' + 'hostname': 'runtime-fips.sagemaker.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'runtime-fips.sagemaker.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'runtime-fips.sagemaker.us-west-1.amazonaws.com' + 'hostname': 'runtime-fips.sagemaker.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'runtime-fips.sagemaker.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'runtime-fips.sagemaker.us-west-2.amazonaws.com' - } - } + 'hostname': 'runtime-fips.sagemaker.us-west-2.amazonaws.com', + }, + }, }, 's3': { 'defaults': { @@ -9283,31 +9283,31 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}-fips.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'af-south-1': { 'variants': [ { 'hostname': 's3.dualstack.af-south-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-east-1': { 'variants': [ { 'hostname': 's3.dualstack.ap-east-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-1': { 'hostname': 's3.ap-northeast-1.amazonaws.com', @@ -9315,33 +9315,33 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3.dualstack.ap-northeast-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-2': { 'variants': [ { 'hostname': 's3.dualstack.ap-northeast-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-3': { 'variants': [ { 'hostname': 's3.dualstack.ap-northeast-3.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-south-1': { 'variants': [ { 'hostname': 's3.dualstack.ap-south-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-1': { 'hostname': 's3.ap-southeast-1.amazonaws.com', @@ -9349,9 +9349,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3.dualstack.ap-southeast-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-2': { 'hostname': 's3.ap-southeast-2.amazonaws.com', @@ -9359,62 +9359,62 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3.dualstack.ap-southeast-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-3': { 'variants': [ { 'hostname': 's3.dualstack.ap-southeast-3.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, 'hostname': 's3.amazonaws.com', - 'signatureVersions': ['s3', 's3v4'] + 'signatureVersions': ['s3', 's3v4'], }, 'ca-central-1': { 'variants': [ { 'hostname': 's3-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-fips.dualstack.ca-central-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3.dualstack.ca-central-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-central-1': { 'variants': [ { 'hostname': 's3.dualstack.eu-central-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-north-1': { 'variants': [ { 'hostname': 's3.dualstack.eu-north-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-south-1': { 'variants': [ { 'hostname': 's3.dualstack.eu-south-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-1': { 'hostname': 's3.eu-west-1.amazonaws.com', @@ -9422,63 +9422,63 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3.dualstack.eu-west-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-2': { 'variants': [ { 'hostname': 's3.dualstack.eu-west-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-3': { 'variants': [ { 'hostname': 's3.dualstack.eu-west-3.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 's3-fips.ca-central-1.amazonaws.com' + 'hostname': 's3-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 's3-fips.us-east-1.amazonaws.com' + 'hostname': 's3-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 's3-fips.us-east-2.amazonaws.com' + 'hostname': 's3-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 's3-fips.us-west-1.amazonaws.com' + 'hostname': 's3-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 's3-fips.us-west-2.amazonaws.com' + 'hostname': 's3-fips.us-west-2.amazonaws.com', }, 'me-south-1': { 'variants': [ { 'hostname': 's3.dualstack.me-south-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 's3-external-1': { 'credentialScope': {'region': 'us-east-1'}, 'hostname': 's3-external-1.amazonaws.com', - 'signatureVersions': ['s3', 's3v4'] + 'signatureVersions': ['s3', 's3v4'], }, 'sa-east-1': { 'hostname': 's3.sa-east-1.amazonaws.com', @@ -9486,9 +9486,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3.dualstack.sa-east-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-1': { 'hostname': 's3.us-east-1.amazonaws.com', @@ -9496,33 +9496,33 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-fips.dualstack.us-east-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3.dualstack.us-east-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 's3-fips.dualstack.us-east-2.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3.dualstack.us-east-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-west-1': { 'hostname': 's3.us-west-1.amazonaws.com', @@ -9530,17 +9530,17 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-fips.dualstack.us-west-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3.dualstack.us-west-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-west-2': { 'hostname': 's3.us-west-2.amazonaws.com', @@ -9548,21 +9548,21 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-fips.dualstack.us-west-2.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3.dualstack.us-west-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] - } + 'tags': ['dualstack'], + }, + ], + }, }, 'isRegionalized': true, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 's3-control': { 'defaults': { @@ -9572,14 +9572,14 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}-fips.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'ap-northeast-1': { @@ -9590,9 +9590,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control.dualstack.ap-northeast-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, @@ -9602,9 +9602,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control.dualstack.ap-northeast-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-northeast-3': { 'credentialScope': {'region': 'ap-northeast-3'}, @@ -9614,9 +9614,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control.dualstack.ap-northeast-3.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, @@ -9625,9 +9625,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control.dualstack.ap-south-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, @@ -9637,9 +9637,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control.dualstack.ap-southeast-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, @@ -9649,9 +9649,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control.dualstack.ap-southeast-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, @@ -9660,24 +9660,24 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-control-fips.dualstack.ca-central-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-control.dualstack.ca-central-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, 'hostname': 's3-control-fips.ca-central-1.amazonaws.com', - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, @@ -9686,9 +9686,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control.dualstack.eu-central-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, @@ -9697,9 +9697,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control.dualstack.eu-north-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, @@ -9708,9 +9708,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control.dualstack.eu-west-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, @@ -9719,9 +9719,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control.dualstack.eu-west-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, @@ -9730,9 +9730,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control.dualstack.eu-west-3.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, @@ -9741,9 +9741,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-control.dualstack.sa-east-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -9753,23 +9753,23 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control-fips.dualstack.us-east-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-control-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-control.dualstack.us-east-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, 'hostname': 's3-control-fips.us-east-1.amazonaws.com', - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -9779,23 +9779,23 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control-fips.dualstack.us-east-2.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-control-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-control.dualstack.us-east-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, 'hostname': 's3-control-fips.us-east-2.amazonaws.com', - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, 'us-west-1': { 'credentialScope': {'region': 'us-west-1'}, @@ -9805,23 +9805,23 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control-fips.dualstack.us-west-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-control-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-control.dualstack.us-west-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, 'hostname': 's3-control-fips.us-west-1.amazonaws.com', - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -9831,25 +9831,25 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control-fips.dualstack.us-west-2.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-control-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-control.dualstack.us-west-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, 'hostname': 's3-control-fips.us-west-2.amazonaws.com', - 'signatureVersions': ['s3v4'] - } - } + 'signatureVersions': ['s3v4'], + }, + }, }, 's3-outposts': { 'endpoints': { @@ -9864,9 +9864,9 @@ const _$_awsEndpointsJsonLiteral = { 'ca-central-1': { 'variants': [ { - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -9884,42 +9884,42 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': { 'variants': [ { - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'savingsplans': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'savingsplans.amazonaws.com' - } + 'hostname': 'savingsplans.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'schemas': { 'endpoints': { @@ -9939,13 +9939,13 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'sdb': { 'defaults': { 'protocols': ['http', 'https'], - 'signatureVersions': ['v2'] + 'signatureVersions': ['v2'], }, 'endpoints': { 'ap-northeast-1': {}, @@ -9955,8 +9955,8 @@ const _$_awsEndpointsJsonLiteral = { 'sa-east-1': {}, 'us-east-1': {'hostname': 'sdb.amazonaws.com'}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'secretsmanager': { 'endpoints': { @@ -9973,14 +9973,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'secretsmanager-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'secretsmanager-fips.ca-central-1.amazonaws.com' + 'hostname': 'secretsmanager-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -9994,55 +9994,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'secretsmanager-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'secretsmanager-fips.us-east-1.amazonaws.com' + 'hostname': 'secretsmanager-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'secretsmanager-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'secretsmanager-fips.us-east-2.amazonaws.com' + 'hostname': 'secretsmanager-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'secretsmanager-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'secretsmanager-fips.us-west-1.amazonaws.com' + 'hostname': 'secretsmanager-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'secretsmanager-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'secretsmanager-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'secretsmanager-fips.us-west-2.amazonaws.com', + }, + }, }, 'securityhub': { 'endpoints': { @@ -10064,22 +10064,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'securityhub-fips.us-east-1.amazonaws.com' + 'hostname': 'securityhub-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'securityhub-fips.us-east-2.amazonaws.com' + 'hostname': 'securityhub-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'securityhub-fips.us-west-1.amazonaws.com' + 'hostname': 'securityhub-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'securityhub-fips.us-west-2.amazonaws.com' + 'hostname': 'securityhub-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -10087,96 +10087,96 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'securityhub-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'securityhub-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'securityhub-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'securityhub-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'serverlessrepo': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-east-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'ap-northeast-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'ap-northeast-2': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'ap-south-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'ap-southeast-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'ap-southeast-2': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'ca-central-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'eu-central-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'eu-north-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'eu-west-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'eu-west-2': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'eu-west-3': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'me-south-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'sa-east-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'us-east-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'us-east-2': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'us-west-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'us-west-2': { - 'protocols': ['https'] - } - } + 'protocols': ['https'], + }, + }, }, 'servicecatalog': { 'endpoints': { @@ -10201,55 +10201,55 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'servicecatalog-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'servicecatalog-fips.us-east-1.amazonaws.com' + 'hostname': 'servicecatalog-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'servicecatalog-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'servicecatalog-fips.us-east-2.amazonaws.com' + 'hostname': 'servicecatalog-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'servicecatalog-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'servicecatalog-fips.us-west-1.amazonaws.com' + 'hostname': 'servicecatalog-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'servicecatalog-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'servicecatalog-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'servicecatalog-fips.us-west-2.amazonaws.com', + }, + }, }, 'servicecatalog-appregistry': { 'endpoints': { @@ -10265,9 +10265,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'servicecatalog-appregistry-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -10279,31 +10279,31 @@ const _$_awsEndpointsJsonLiteral = { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, 'hostname': - 'servicecatalog-appregistry-fips.ca-central-1.amazonaws.com' + 'servicecatalog-appregistry-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, 'hostname': - 'servicecatalog-appregistry-fips.us-east-1.amazonaws.com' + 'servicecatalog-appregistry-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, 'hostname': - 'servicecatalog-appregistry-fips.us-east-2.amazonaws.com' + 'servicecatalog-appregistry-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, 'hostname': - 'servicecatalog-appregistry-fips.us-west-1.amazonaws.com' + 'servicecatalog-appregistry-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, 'hostname': - 'servicecatalog-appregistry-fips.us-west-2.amazonaws.com' + 'servicecatalog-appregistry-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -10312,38 +10312,38 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'servicecatalog-appregistry-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'servicecatalog-appregistry-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'servicecatalog-appregistry-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'servicecatalog-appregistry-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'servicediscovery': { 'endpoints': { @@ -10359,14 +10359,14 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'servicediscovery-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.ca-central-1.amazonaws.com' + 'hostname': 'servicediscovery-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -10383,72 +10383,72 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'servicediscovery-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'servicediscovery-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.ca-central-1.amazonaws.com' + 'hostname': 'servicediscovery-fips.ca-central-1.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'servicediscovery-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.us-east-1.amazonaws.com' + 'hostname': 'servicediscovery-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'servicediscovery-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.us-east-2.amazonaws.com' + 'hostname': 'servicediscovery-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'servicediscovery-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.us-west-1.amazonaws.com' + 'hostname': 'servicediscovery-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'servicediscovery-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'servicediscovery-fips.us-west-2.amazonaws.com', + }, + }, }, 'servicequotas': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'af-south-1': {}, @@ -10471,8 +10471,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'session.qldb': { 'endpoints': { @@ -10487,48 +10487,48 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'session.qldb-fips.us-east-1.amazonaws.com' + 'hostname': 'session.qldb-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'session.qldb-fips.us-east-2.amazonaws.com' + 'hostname': 'session.qldb-fips.us-east-2.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'session.qldb-fips.us-west-2.amazonaws.com' + 'hostname': 'session.qldb-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'session.qldb-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'session.qldb-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'session.qldb-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'shield': { 'defaults': { 'protocols': ['https'], - 'sslCommonName': 'shield.us-east-1.amazonaws.com' + 'sslCommonName': 'shield.us-east-1.amazonaws.com', }, 'endpoints': { 'aws-global': { @@ -10537,18 +10537,18 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'shield-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-aws-global': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'shield-fips.us-east-1.amazonaws.com' - } + 'hostname': 'shield-fips.us-east-1.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'signer': { 'endpoints': { @@ -10569,22 +10569,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'signer-fips.us-east-1.amazonaws.com' + 'hostname': 'signer-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'signer-fips.us-east-2.amazonaws.com' + 'hostname': 'signer-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'signer-fips.us-west-1.amazonaws.com' + 'hostname': 'signer-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'signer-fips.us-west-2.amazonaws.com' + 'hostname': 'signer-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -10592,35 +10592,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'signer-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'signer-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'signer-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'signer-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'sms': { 'endpoints': { @@ -10641,22 +10641,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'sms-fips.us-east-1.amazonaws.com' + 'hostname': 'sms-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'sms-fips.us-east-2.amazonaws.com' + 'hostname': 'sms-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'sms-fips.us-west-1.amazonaws.com' + 'hostname': 'sms-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'sms-fips.us-west-2.amazonaws.com' + 'hostname': 'sms-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -10664,35 +10664,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'sms-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'sms-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'sms-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'sms-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'sms-voice.pinpoint': { 'endpoints': { @@ -10701,16 +10701,16 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-1': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'snow-device-management': { 'endpoints': { 'eu-central-1': {}, 'eu-west-1': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'snowball': { 'endpoints': { @@ -10720,65 +10720,65 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'snowball-fips.ap-northeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-2': { 'variants': [ { 'hostname': 'snowball-fips.ap-northeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-3': { 'variants': [ { 'hostname': 'snowball-fips.ap-northeast-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-south-1': { 'variants': [ { 'hostname': 'snowball-fips.ap-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-1': { 'variants': [ { 'hostname': 'snowball-fips.ap-southeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-2': { 'variants': [ { 'hostname': 'snowball-fips.ap-southeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1': { 'variants': [ { 'hostname': 'snowball-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': { 'variants': [ { 'hostname': 'snowball-fips.eu-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-north-1': {}, 'eu-south-1': {}, @@ -10786,151 +10786,151 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'snowball-fips.eu-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-2': { 'variants': [ { 'hostname': 'snowball-fips.eu-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-3': { 'variants': [ { 'hostname': 'snowball-fips.eu-west-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.ap-northeast-1.amazonaws.com' + 'hostname': 'snowball-fips.ap-northeast-1.amazonaws.com', }, 'fips-ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, 'deprecated': true, - 'hostname': 'snowball-fips.ap-northeast-2.amazonaws.com' + 'hostname': 'snowball-fips.ap-northeast-2.amazonaws.com', }, 'fips-ap-northeast-3': { 'credentialScope': {'region': 'ap-northeast-3'}, 'deprecated': true, - 'hostname': 'snowball-fips.ap-northeast-3.amazonaws.com' + 'hostname': 'snowball-fips.ap-northeast-3.amazonaws.com', }, 'fips-ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.ap-south-1.amazonaws.com' + 'hostname': 'snowball-fips.ap-south-1.amazonaws.com', }, 'fips-ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.ap-southeast-1.amazonaws.com' + 'hostname': 'snowball-fips.ap-southeast-1.amazonaws.com', }, 'fips-ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, 'deprecated': true, - 'hostname': 'snowball-fips.ap-southeast-2.amazonaws.com' + 'hostname': 'snowball-fips.ap-southeast-2.amazonaws.com', }, 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.ca-central-1.amazonaws.com' + 'hostname': 'snowball-fips.ca-central-1.amazonaws.com', }, 'fips-eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.eu-central-1.amazonaws.com' + 'hostname': 'snowball-fips.eu-central-1.amazonaws.com', }, 'fips-eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.eu-west-1.amazonaws.com' + 'hostname': 'snowball-fips.eu-west-1.amazonaws.com', }, 'fips-eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, 'deprecated': true, - 'hostname': 'snowball-fips.eu-west-2.amazonaws.com' + 'hostname': 'snowball-fips.eu-west-2.amazonaws.com', }, 'fips-eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, 'deprecated': true, - 'hostname': 'snowball-fips.eu-west-3.amazonaws.com' + 'hostname': 'snowball-fips.eu-west-3.amazonaws.com', }, 'fips-sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.sa-east-1.amazonaws.com' + 'hostname': 'snowball-fips.sa-east-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.us-east-1.amazonaws.com' + 'hostname': 'snowball-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'snowball-fips.us-east-2.amazonaws.com' + 'hostname': 'snowball-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.us-west-1.amazonaws.com' + 'hostname': 'snowball-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'snowball-fips.us-west-2.amazonaws.com' + 'hostname': 'snowball-fips.us-west-2.amazonaws.com', }, 'sa-east-1': { 'variants': [ { 'hostname': 'snowball-fips.sa-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': { 'variants': [ { 'hostname': 'snowball-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'snowball-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'snowball-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'snowball-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'sns': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -10952,22 +10952,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'sns-fips.us-east-1.amazonaws.com' + 'hostname': 'sns-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'sns-fips.us-east-2.amazonaws.com' + 'hostname': 'sns-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'sns-fips.us-west-1.amazonaws.com' + 'hostname': 'sns-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'sns-fips.us-west-2.amazonaws.com' + 'hostname': 'sns-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -10975,40 +10975,40 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'sns-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'sns-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'sns-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'sns-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'sqs': { 'defaults': { 'protocols': ['http', 'https'], - 'sslCommonName': '{region}.queue.{dnsSuffix}' + 'sslCommonName': '{region}.queue.{dnsSuffix}', }, 'endpoints': { 'af-south-1': {}, @@ -11030,22 +11030,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'sqs-fips.us-east-1.amazonaws.com' + 'hostname': 'sqs-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'sqs-fips.us-east-2.amazonaws.com' + 'hostname': 'sqs-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'sqs-fips.us-west-1.amazonaws.com' + 'hostname': 'sqs-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'sqs-fips.us-west-2.amazonaws.com' + 'hostname': 'sqs-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -11054,35 +11054,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'sqs-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'sqs-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'sqs-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'sqs-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'ssm': { 'endpoints': { @@ -11099,9 +11099,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ssm-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -11112,27 +11112,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'ssm-fips.ca-central-1.amazonaws.com' + 'hostname': 'ssm-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ssm-fips.us-east-1.amazonaws.com' + 'hostname': 'ssm-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ssm-fips.us-east-2.amazonaws.com' + 'hostname': 'ssm-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'ssm-fips.us-west-1.amazonaws.com' + 'hostname': 'ssm-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ssm-fips.us-west-2.amazonaws.com' + 'hostname': 'ssm-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -11140,35 +11140,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ssm-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'ssm-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'ssm-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'ssm-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'ssm-incidents': { 'endpoints': { @@ -11187,8 +11187,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'states': { 'endpoints': { @@ -11211,22 +11211,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'states-fips.us-east-1.amazonaws.com' + 'hostname': 'states-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'states-fips.us-east-2.amazonaws.com' + 'hostname': 'states-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'states-fips.us-west-1.amazonaws.com' + 'hostname': 'states-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'states-fips.us-west-2.amazonaws.com' + 'hostname': 'states-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -11234,35 +11234,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'states-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'states-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'states-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'states-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'storagegateway': { 'endpoints': { @@ -11279,14 +11279,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'storagegateway-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1-fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.ca-central-1.amazonaws.com' + 'hostname': 'storagegateway-fips.ca-central-1.amazonaws.com', }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -11297,7 +11297,7 @@ const _$_awsEndpointsJsonLiteral = { 'fips': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.ca-central-1.amazonaws.com' + 'hostname': 'storagegateway-fips.ca-central-1.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -11305,60 +11305,60 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'storagegateway-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.us-east-1.amazonaws.com' + 'hostname': 'storagegateway-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'storagegateway-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.us-east-2.amazonaws.com' + 'hostname': 'storagegateway-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'storagegateway-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.us-west-1.amazonaws.com' + 'hostname': 'storagegateway-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'storagegateway-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'storagegateway-fips.us-west-2.amazonaws.com', + }, + }, }, 'streams.dynamodb': { 'defaults': { 'credentialScope': {'service': 'dynamodb'}, - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'af-south-1': {}, @@ -11380,15 +11380,15 @@ const _$_awsEndpointsJsonLiteral = { 'local': { 'credentialScope': {'region': 'us-east-1'}, 'hostname': 'localhost:8000', - 'protocols': ['http'] + 'protocols': ['http'], }, 'me-south-1': {}, 'sa-east-1': {}, 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'sts': { 'endpoints': { @@ -11403,7 +11403,7 @@ const _$_awsEndpointsJsonLiteral = { 'ap-southeast-3': {}, 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'sts.amazonaws.com' + 'hostname': 'sts.amazonaws.com', }, 'ca-central-1': {}, 'eu-central-1': {}, @@ -11418,65 +11418,65 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'sts-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'sts-fips.us-east-1.amazonaws.com' + 'hostname': 'sts-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'sts-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'sts-fips.us-east-2.amazonaws.com' + 'hostname': 'sts-fips.us-east-2.amazonaws.com', }, 'us-west-1': { 'variants': [ { 'hostname': 'sts-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1-fips': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'sts-fips.us-west-1.amazonaws.com' + 'hostname': 'sts-fips.us-west-1.amazonaws.com', }, 'us-west-2': { 'variants': [ { 'hostname': 'sts-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'sts-fips.us-west-2.amazonaws.com' - } + 'hostname': 'sts-fips.us-west-2.amazonaws.com', + }, }, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'support': { 'endpoints': { 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, - 'hostname': 'support.us-east-1.amazonaws.com' - } + 'hostname': 'support.us-east-1.amazonaws.com', + }, }, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'swf': { 'endpoints': { @@ -11499,22 +11499,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'swf-fips.us-east-1.amazonaws.com' + 'hostname': 'swf-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'swf-fips.us-east-2.amazonaws.com' + 'hostname': 'swf-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'swf-fips.us-west-1.amazonaws.com' + 'hostname': 'swf-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'swf-fips.us-west-2.amazonaws.com' + 'hostname': 'swf-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -11522,35 +11522,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'swf-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'swf-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'swf-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'swf-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'synthetics': { 'endpoints': { @@ -11575,8 +11575,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'tagging': { 'endpoints': { @@ -11601,8 +11601,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'textract': { 'endpoints': { @@ -11614,9 +11614,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'textract-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-west-1': {}, @@ -11625,61 +11625,61 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'textract-fips.ca-central-1.amazonaws.com' + 'hostname': 'textract-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'textract-fips.us-east-1.amazonaws.com' + 'hostname': 'textract-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'textract-fips.us-east-2.amazonaws.com' + 'hostname': 'textract-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'textract-fips.us-west-1.amazonaws.com' + 'hostname': 'textract-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'textract-fips.us-west-2.amazonaws.com' + 'hostname': 'textract-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'textract-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'textract-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'textract-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'textract-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'timestream.query': { 'endpoints': { @@ -11688,17 +11688,17 @@ const _$_awsEndpointsJsonLiteral = { 'query-fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'query.timestream-fips.us-east-1.amazonaws.com' + 'hostname': 'query.timestream-fips.us-east-1.amazonaws.com', }, 'query-fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'query.timestream-fips.us-east-2.amazonaws.com' + 'hostname': 'query.timestream-fips.us-east-2.amazonaws.com', }, 'query-fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'query.timestream-fips.us-west-2.amazonaws.com' + 'hostname': 'query.timestream-fips.us-west-2.amazonaws.com', }, 'query-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -11706,9 +11706,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'query.timestream-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'query-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -11716,9 +11716,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'query.timestream-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'query-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -11726,14 +11726,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'query.timestream-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'timestream.write': { 'endpoints': { @@ -11742,17 +11742,17 @@ const _$_awsEndpointsJsonLiteral = { 'ingest-fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'ingest.timestream-fips.us-east-1.amazonaws.com' + 'hostname': 'ingest.timestream-fips.us-east-1.amazonaws.com', }, 'ingest-fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'ingest.timestream-fips.us-east-2.amazonaws.com' + 'hostname': 'ingest.timestream-fips.us-east-2.amazonaws.com', }, 'ingest-fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'ingest.timestream-fips.us-west-2.amazonaws.com' + 'hostname': 'ingest.timestream-fips.us-west-2.amazonaws.com', }, 'ingest-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -11760,9 +11760,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ingest.timestream-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ingest-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -11770,9 +11770,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ingest.timestream-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ingest-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -11780,14 +11780,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ingest.timestream-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'transcribe': { 'defaults': { @@ -11795,9 +11795,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fips.transcribe.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -11811,9 +11811,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fips.transcribe.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -11823,27 +11823,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'fips.transcribe.ca-central-1.amazonaws.com' + 'hostname': 'fips.transcribe.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'fips.transcribe.us-east-1.amazonaws.com' + 'hostname': 'fips.transcribe.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'fips.transcribe.us-east-2.amazonaws.com' + 'hostname': 'fips.transcribe.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'fips.transcribe.us-west-1.amazonaws.com' + 'hostname': 'fips.transcribe.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'fips.transcribe.us-west-2.amazonaws.com' + 'hostname': 'fips.transcribe.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -11851,35 +11851,35 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fips.transcribe.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'fips.transcribe.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'fips.transcribe.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'fips.transcribe.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'transcribestreaming': { 'endpoints': { @@ -11898,29 +11898,29 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'transcribestreaming-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'transcribestreaming-fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'transcribestreaming-fips.ca-central-1.amazonaws.com' + 'hostname': 'transcribestreaming-fips.ca-central-1.amazonaws.com', }, 'transcribestreaming-fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'transcribestreaming-fips.us-east-1.amazonaws.com' + 'hostname': 'transcribestreaming-fips.us-east-1.amazonaws.com', }, 'transcribestreaming-fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'transcribestreaming-fips.us-east-2.amazonaws.com' + 'hostname': 'transcribestreaming-fips.us-east-2.amazonaws.com', }, 'transcribestreaming-fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'transcribestreaming-fips.us-west-2.amazonaws.com' + 'hostname': 'transcribestreaming-fips.us-west-2.amazonaws.com', }, 'transcribestreaming-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -11929,9 +11929,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'transcribestreaming-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'transcribestreaming-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -11940,9 +11940,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'transcribestreaming-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'transcribestreaming-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -11951,14 +11951,14 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'transcribestreaming-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': {}, 'us-east-2': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'transfer': { 'endpoints': { @@ -11974,9 +11974,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'transfer-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': {}, 'eu-north-1': {}, @@ -11987,27 +11987,27 @@ const _$_awsEndpointsJsonLiteral = { 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'transfer-fips.ca-central-1.amazonaws.com' + 'hostname': 'transfer-fips.ca-central-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'transfer-fips.us-east-1.amazonaws.com' + 'hostname': 'transfer-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'transfer-fips.us-east-2.amazonaws.com' + 'hostname': 'transfer-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'transfer-fips.us-west-1.amazonaws.com' + 'hostname': 'transfer-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'transfer-fips.us-west-2.amazonaws.com' + 'hostname': 'transfer-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -12015,39 +12015,39 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'transfer-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'transfer-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'transfer-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'transfer-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'translate': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'ap-east-1': {}, @@ -12066,43 +12066,43 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'translate-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'translate-fips.us-east-1.amazonaws.com' + 'hostname': 'translate-fips.us-east-1.amazonaws.com', }, 'us-east-2': { 'variants': [ { 'hostname': 'translate-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2-fips': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'translate-fips.us-east-2.amazonaws.com' + 'hostname': 'translate-fips.us-east-2.amazonaws.com', }, 'us-west-1': {}, 'us-west-2': { 'variants': [ { 'hostname': 'translate-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2-fips': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'translate-fips.us-west-2.amazonaws.com' - } - } + 'hostname': 'translate-fips.us-west-2.amazonaws.com', + }, + }, }, 'valkyrie': { 'endpoints': { @@ -12125,8 +12125,8 @@ const _$_awsEndpointsJsonLiteral = { 'us-east-1': {}, 'us-east-2': {}, 'us-west-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'voiceid': { 'endpoints': { @@ -12136,8 +12136,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'waf': { 'endpoints': { @@ -12147,14 +12147,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-fips.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'aws-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'waf-fips.amazonaws.com' + 'hostname': 'waf-fips.amazonaws.com', }, 'aws-global': { 'credentialScope': {'region': 'us-east-1'}, @@ -12162,18 +12162,18 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-fips.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'aws-global-fips': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'waf-fips.amazonaws.com' - } + 'hostname': 'waf-fips.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'waf-regional': { 'endpoints': { @@ -12183,9 +12183,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.af-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-east-1': { 'credentialScope': {'region': 'ap-east-1'}, @@ -12193,9 +12193,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ap-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, @@ -12203,9 +12203,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ap-northeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, @@ -12213,9 +12213,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ap-northeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-northeast-3': { 'credentialScope': {'region': 'ap-northeast-3'}, @@ -12223,9 +12223,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ap-northeast-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, @@ -12233,9 +12233,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ap-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, @@ -12243,9 +12243,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ap-southeast-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, @@ -12253,9 +12253,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ap-southeast-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, @@ -12263,9 +12263,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.ca-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, @@ -12273,9 +12273,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.eu-central-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, @@ -12283,9 +12283,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.eu-north-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-south-1': { 'credentialScope': {'region': 'eu-south-1'}, @@ -12293,9 +12293,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.eu-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, @@ -12303,9 +12303,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.eu-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, @@ -12313,9 +12313,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.eu-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, @@ -12323,114 +12323,114 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.eu-west-3.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-af-south-1': { 'credentialScope': {'region': 'af-south-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.af-south-1.amazonaws.com' + 'hostname': 'waf-regional-fips.af-south-1.amazonaws.com', }, 'fips-ap-east-1': { 'credentialScope': {'region': 'ap-east-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ap-east-1.amazonaws.com' + 'hostname': 'waf-regional-fips.ap-east-1.amazonaws.com', }, 'fips-ap-northeast-1': { 'credentialScope': {'region': 'ap-northeast-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ap-northeast-1.amazonaws.com' + 'hostname': 'waf-regional-fips.ap-northeast-1.amazonaws.com', }, 'fips-ap-northeast-2': { 'credentialScope': {'region': 'ap-northeast-2'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ap-northeast-2.amazonaws.com' + 'hostname': 'waf-regional-fips.ap-northeast-2.amazonaws.com', }, 'fips-ap-northeast-3': { 'credentialScope': {'region': 'ap-northeast-3'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ap-northeast-3.amazonaws.com' + 'hostname': 'waf-regional-fips.ap-northeast-3.amazonaws.com', }, 'fips-ap-south-1': { 'credentialScope': {'region': 'ap-south-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ap-south-1.amazonaws.com' + 'hostname': 'waf-regional-fips.ap-south-1.amazonaws.com', }, 'fips-ap-southeast-1': { 'credentialScope': {'region': 'ap-southeast-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ap-southeast-1.amazonaws.com' + 'hostname': 'waf-regional-fips.ap-southeast-1.amazonaws.com', }, 'fips-ap-southeast-2': { 'credentialScope': {'region': 'ap-southeast-2'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ap-southeast-2.amazonaws.com' + 'hostname': 'waf-regional-fips.ap-southeast-2.amazonaws.com', }, 'fips-ca-central-1': { 'credentialScope': {'region': 'ca-central-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.ca-central-1.amazonaws.com' + 'hostname': 'waf-regional-fips.ca-central-1.amazonaws.com', }, 'fips-eu-central-1': { 'credentialScope': {'region': 'eu-central-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.eu-central-1.amazonaws.com' + 'hostname': 'waf-regional-fips.eu-central-1.amazonaws.com', }, 'fips-eu-north-1': { 'credentialScope': {'region': 'eu-north-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.eu-north-1.amazonaws.com' + 'hostname': 'waf-regional-fips.eu-north-1.amazonaws.com', }, 'fips-eu-south-1': { 'credentialScope': {'region': 'eu-south-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.eu-south-1.amazonaws.com' + 'hostname': 'waf-regional-fips.eu-south-1.amazonaws.com', }, 'fips-eu-west-1': { 'credentialScope': {'region': 'eu-west-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.eu-west-1.amazonaws.com' + 'hostname': 'waf-regional-fips.eu-west-1.amazonaws.com', }, 'fips-eu-west-2': { 'credentialScope': {'region': 'eu-west-2'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.eu-west-2.amazonaws.com' + 'hostname': 'waf-regional-fips.eu-west-2.amazonaws.com', }, 'fips-eu-west-3': { 'credentialScope': {'region': 'eu-west-3'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.eu-west-3.amazonaws.com' + 'hostname': 'waf-regional-fips.eu-west-3.amazonaws.com', }, 'fips-me-south-1': { 'credentialScope': {'region': 'me-south-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.me-south-1.amazonaws.com' + 'hostname': 'waf-regional-fips.me-south-1.amazonaws.com', }, 'fips-sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.sa-east-1.amazonaws.com' + 'hostname': 'waf-regional-fips.sa-east-1.amazonaws.com', }, 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.us-east-1.amazonaws.com' + 'hostname': 'waf-regional-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.us-east-2.amazonaws.com' + 'hostname': 'waf-regional-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.us-west-1.amazonaws.com' + 'hostname': 'waf-regional-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.us-west-2.amazonaws.com' + 'hostname': 'waf-regional-fips.us-west-2.amazonaws.com', }, 'me-south-1': { 'credentialScope': {'region': 'me-south-1'}, @@ -12438,9 +12438,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.me-south-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'sa-east-1': { 'credentialScope': {'region': 'sa-east-1'}, @@ -12448,9 +12448,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.sa-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-1': { 'credentialScope': {'region': 'us-east-1'}, @@ -12458,9 +12458,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'credentialScope': {'region': 'us-east-2'}, @@ -12468,9 +12468,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'credentialScope': {'region': 'us-west-1'}, @@ -12478,9 +12478,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'credentialScope': {'region': 'us-west-2'}, @@ -12488,11 +12488,11 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'wisdom': { 'endpoints': { @@ -12501,8 +12501,8 @@ const _$_awsEndpointsJsonLiteral = { 'eu-central-1': {}, 'eu-west-2': {}, 'us-east-1': {}, - 'us-west-2': {} - } + 'us-west-2': {}, + }, }, 'workdocs': { 'endpoints': { @@ -12513,36 +12513,36 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'workdocs-fips.us-east-1.amazonaws.com' + 'hostname': 'workdocs-fips.us-east-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'workdocs-fips.us-west-2.amazonaws.com' + 'hostname': 'workdocs-fips.us-west-2.amazonaws.com', }, 'us-east-1': { 'variants': [ { 'hostname': 'workdocs-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'workdocs-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'workmail': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'eu-west-1': {}, 'us-east-1': {}, 'us-west-2': {}} + 'endpoints': {'eu-west-1': {}, 'us-east-1': {}, 'us-west-2': {}}, }, 'workspaces': { 'endpoints': { @@ -12558,34 +12558,34 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'workspaces-fips.us-east-1.amazonaws.com' + 'hostname': 'workspaces-fips.us-east-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'workspaces-fips.us-west-2.amazonaws.com' + 'hostname': 'workspaces-fips.us-west-2.amazonaws.com', }, 'sa-east-1': {}, 'us-east-1': { 'variants': [ { 'hostname': 'workspaces-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'workspaces-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } - }, - 'workspaces-web': { - 'endpoints': {'eu-west-1': {}, 'us-east-1': {}, 'us-west-2': {}} + 'tags': ['fips'], + }, + ], + }, + }, + }, + 'workspaces-web': { + 'endpoints': {'eu-west-1': {}, 'us-east-1': {}, 'us-west-2': {}}, }, 'xray': { 'endpoints': { @@ -12607,22 +12607,22 @@ const _$_awsEndpointsJsonLiteral = { 'fips-us-east-1': { 'credentialScope': {'region': 'us-east-1'}, 'deprecated': true, - 'hostname': 'xray-fips.us-east-1.amazonaws.com' + 'hostname': 'xray-fips.us-east-1.amazonaws.com', }, 'fips-us-east-2': { 'credentialScope': {'region': 'us-east-2'}, 'deprecated': true, - 'hostname': 'xray-fips.us-east-2.amazonaws.com' + 'hostname': 'xray-fips.us-east-2.amazonaws.com', }, 'fips-us-west-1': { 'credentialScope': {'region': 'us-west-1'}, 'deprecated': true, - 'hostname': 'xray-fips.us-west-1.amazonaws.com' + 'hostname': 'xray-fips.us-west-1.amazonaws.com', }, 'fips-us-west-2': { 'credentialScope': {'region': 'us-west-2'}, 'deprecated': true, - 'hostname': 'xray-fips.us-west-2.amazonaws.com' + 'hostname': 'xray-fips.us-west-2.amazonaws.com', }, 'me-south-1': {}, 'sa-east-1': {}, @@ -12630,37 +12630,37 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'xray-fips.us-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-east-2': { 'variants': [ { 'hostname': 'xray-fips.us-east-2.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-1': { 'variants': [ { 'hostname': 'xray-fips.us-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-west-2': { 'variants': [ { 'hostname': 'xray-fips.us-west-2.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } - } - } + 'tags': ['fips'], + }, + ], + }, + }, + }, + }, }, { 'defaults': { @@ -12671,19 +12671,19 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com.cn', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'dnsSuffix': 'api.amazonwebservices.com.cn', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'dnsSuffix': 'api.amazonwebservices.com.cn', 'hostname': '{service}.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'dnsSuffix': 'amazonaws.com.cn', 'partition': 'aws-cn', @@ -12691,217 +12691,217 @@ const _$_awsEndpointsJsonLiteral = { 'regionRegex': '^cn\\-\\w+\\-\\d+\$', 'regions': { 'cn-north-1': {'description': 'China (Beijing)'}, - 'cn-northwest-1': {'description': 'China (Ningxia)'} + 'cn-northwest-1': {'description': 'China (Ningxia)'}, }, 'services': { 'access-analyzer': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'account': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'account.cn-northwest-1.amazonaws.com.cn' - } + 'hostname': 'account.cn-northwest-1.amazonaws.com.cn', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'acm': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'api.ecr': { 'endpoints': { 'cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, - 'hostname': 'api.ecr.cn-north-1.amazonaws.com.cn' + 'hostname': 'api.ecr.cn-north-1.amazonaws.com.cn', }, 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'api.ecr.cn-northwest-1.amazonaws.com.cn' - } - } + 'hostname': 'api.ecr.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'api.sagemaker': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'api.tunneling.iot': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'apigateway': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'appconfigdata': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'application-autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'applicationinsights': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'appmesh': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'appsync': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'athena': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'autoscaling-plans': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'backup': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'batch': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'budgets': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'budgets.amazonaws.com.cn' - } + 'hostname': 'budgets.amazonaws.com.cn', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'ce': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'ce.cn-northwest-1.amazonaws.com.cn' - } + 'hostname': 'ce.cn-northwest-1.amazonaws.com.cn', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'cloudformation': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'cloudfront': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-northwest-1'}, 'hostname': 'cloudfront.cn-northwest-1.amazonaws.com.cn', - 'protocols': ['http', 'https'] - } + 'protocols': ['http', 'https'], + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'cloudtrail': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'codebuild': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'codecommit': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'codedeploy': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'codepipeline': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'cognito-identity': { - 'endpoints': {'cn-north-1': {}} + 'endpoints': {'cn-north-1': {}}, }, 'compute-optimizer': { 'endpoints': { 'cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, - 'hostname': 'compute-optimizer.cn-north-1.amazonaws.com.cn' + 'hostname': 'compute-optimizer.cn-north-1.amazonaws.com.cn', }, 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'compute-optimizer.cn-northwest-1.amazonaws.com.cn' - } - } + 'hostname': 'compute-optimizer.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'config': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'cur': { - 'endpoints': {'cn-northwest-1': {}} + 'endpoints': {'cn-northwest-1': {}}, }, 'data.iot': { 'defaults': { 'credentialScope': {'service': 'iotdata'}, - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'data.jobs.iot': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'databrew': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'dax': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'directconnect': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'dlm': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'dms': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'docdb': { 'endpoints': { 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'rds.cn-northwest-1.amazonaws.com.cn' - } - } + 'hostname': 'rds.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'ds': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'dynamodb': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'ec2': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'ecs': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'eks': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'elasticache': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'elasticbeanstalk': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'elasticfilesystem': { 'endpoints': { @@ -12910,141 +12910,141 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'elasticfilesystem-fips.cn-north-1.amazonaws.com.cn', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'cn-northwest-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.cn-northwest-1.amazonaws.com.cn', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.cn-north-1.amazonaws.com.cn' + 'hostname': 'elasticfilesystem-fips.cn-north-1.amazonaws.com.cn', }, 'fips-cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, 'deprecated': true, 'hostname': - 'elasticfilesystem-fips.cn-northwest-1.amazonaws.com.cn' - } - } + 'elasticfilesystem-fips.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'elasticloadbalancing': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'elasticmapreduce': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'emr-containers': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'es': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'events': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'execute-api': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'firehose': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'fms': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'fsx': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'gamelift': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'glacier': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'glue': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'greengrass': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': {'cn-north-1': {}}, - 'isRegionalized': true + 'isRegionalized': true, }, 'guardduty': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, - 'isRegionalized': true + 'isRegionalized': true, }, 'iam': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-north-1'}, - 'hostname': 'iam.cn-north-1.amazonaws.com.cn' - } + 'hostname': 'iam.cn-north-1.amazonaws.com.cn', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'iot': { 'defaults': { - 'credentialScope': {'service': 'execute-api'} + 'credentialScope': {'service': 'execute-api'}, }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'iotanalytics': { - 'endpoints': {'cn-north-1': {}} + 'endpoints': {'cn-north-1': {}}, }, 'iotevents': { - 'endpoints': {'cn-north-1': {}} + 'endpoints': {'cn-north-1': {}}, }, 'ioteventsdata': { 'endpoints': { 'cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, - 'hostname': 'data.iotevents.cn-north-1.amazonaws.com.cn' - } - } + 'hostname': 'data.iotevents.cn-north-1.amazonaws.com.cn', + }, + }, }, 'iotsitewise': { - 'endpoints': {'cn-north-1': {}} + 'endpoints': {'cn-north-1': {}}, }, 'kafka': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'kinesis': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'kinesisanalytics': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'kms': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'lakeformation': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'lambda': { 'endpoints': { @@ -13052,109 +13052,109 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'lambda.cn-north-1.api.amazonwebservices.com.cn', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'cn-northwest-1': { 'variants': [ { 'hostname': 'lambda.cn-northwest-1.api.amazonwebservices.com.cn', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'license-manager': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'logs': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'mediaconvert': { 'endpoints': { 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, 'hostname': - 'subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn' - } - } + 'subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'monitoring': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'mq': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'neptune': { 'endpoints': { 'cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, - 'hostname': 'rds.cn-north-1.amazonaws.com.cn' + 'hostname': 'rds.cn-north-1.amazonaws.com.cn', }, 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'rds.cn-northwest-1.amazonaws.com.cn' - } - } + 'hostname': 'rds.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'operator': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'organizations': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'organizations.cn-northwest-1.amazonaws.com.cn' - } + 'hostname': 'organizations.cn-northwest-1.amazonaws.com.cn', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'personalize': { - 'endpoints': {'cn-north-1': {}} + 'endpoints': {'cn-north-1': {}}, }, 'pi': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'polly': { - 'endpoints': {'cn-northwest-1': {}} + 'endpoints': {'cn-northwest-1': {}}, }, 'ram': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'rds': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'redshift': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'resource-groups': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'route53': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'route53.amazonaws.com.cn' - } + 'hostname': 'route53.amazonaws.com.cn', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'route53resolver': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'runtime.sagemaker': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 's3': { 'defaults': { @@ -13164,28 +13164,28 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com.cn', 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'cn-north-1': { 'variants': [ { 'hostname': 's3.dualstack.cn-north-1.amazonaws.com.cn', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'cn-northwest-1': { 'variants': [ { 'hostname': 's3.dualstack.cn-northwest-1.amazonaws.com.cn', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 's3-control': { 'defaults': { @@ -13195,9 +13195,9 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com.cn', 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'cn-north-1': { @@ -13208,9 +13208,9 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control.dualstack.cn-north-1.amazonaws.com.cn', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, @@ -13220,42 +13220,42 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control.dualstack.cn-northwest-1.amazonaws.com.cn', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'secretsmanager': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'securityhub': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'serverlessrepo': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'cn-north-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'cn-northwest-1': { - 'protocols': ['https'] - } - } + 'protocols': ['https'], + }, + }, }, 'servicecatalog': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'servicediscovery': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'signer': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'sms': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'snowball': { 'endpoints': { @@ -13263,100 +13263,100 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'snowball-fips.cn-north-1.amazonaws.com.cn', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'cn-northwest-1': { 'variants': [ { 'hostname': 'snowball-fips.cn-northwest-1.amazonaws.com.cn', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.cn-north-1.amazonaws.com.cn' + 'hostname': 'snowball-fips.cn-north-1.amazonaws.com.cn', }, 'fips-cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.cn-northwest-1.amazonaws.com.cn' - } - } + 'hostname': 'snowball-fips.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'sns': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'sqs': { 'defaults': { 'protocols': ['http', 'https'], - 'sslCommonName': '{region}.queue.{dnsSuffix}' + 'sslCommonName': '{region}.queue.{dnsSuffix}', }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'ssm': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'states': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'storagegateway': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'streams.dynamodb': { 'defaults': { 'credentialScope': {'service': 'dynamodb'}, - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'sts': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'support': { 'endpoints': { 'aws-cn-global': { 'credentialScope': {'region': 'cn-north-1'}, - 'hostname': 'support.cn-north-1.amazonaws.com.cn' - } + 'hostname': 'support.cn-north-1.amazonaws.com.cn', + }, }, - 'partitionEndpoint': 'aws-cn-global' + 'partitionEndpoint': 'aws-cn-global', }, 'swf': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'synthetics': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'tagging': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'transcribe': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, - 'hostname': 'cn.transcribe.cn-north-1.amazonaws.com.cn' + 'hostname': 'cn.transcribe.cn-north-1.amazonaws.com.cn', }, 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, - 'hostname': 'cn.transcribe.cn-northwest-1.amazonaws.com.cn' - } - } + 'hostname': 'cn.transcribe.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'transcribestreaming': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'transfer': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, }, 'waf-regional': { 'endpoints': { @@ -13366,9 +13366,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.cn-north-1.amazonaws.com.cn', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, @@ -13377,29 +13377,29 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'waf-regional-fips.cn-northwest-1.amazonaws.com.cn', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-cn-north-1': { 'credentialScope': {'region': 'cn-north-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.cn-north-1.amazonaws.com.cn' + 'hostname': 'waf-regional-fips.cn-north-1.amazonaws.com.cn', }, 'fips-cn-northwest-1': { 'credentialScope': {'region': 'cn-northwest-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.cn-northwest-1.amazonaws.com.cn' - } - } + 'hostname': 'waf-regional-fips.cn-northwest-1.amazonaws.com.cn', + }, + }, }, 'workspaces': { - 'endpoints': {'cn-northwest-1': {}} + 'endpoints': {'cn-northwest-1': {}}, }, 'xray': { - 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}} - } - } + 'endpoints': {'cn-north-1': {}, 'cn-northwest-1': {}}, + }, + }, }, { 'defaults': { @@ -13410,19 +13410,19 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'dnsSuffix': 'api.aws', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'dnsSuffix': 'api.aws', 'hostname': '{service}.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'dnsSuffix': 'amazonaws.com', 'partition': 'aws-us-gov', @@ -13430,40 +13430,40 @@ const _$_awsEndpointsJsonLiteral = { 'regionRegex': '^us\\-gov\\-\\w+\\-\\d+\$', 'regions': { 'us-gov-east-1': {'description': 'AWS GovCloud (US-East)'}, - 'us-gov-west-1': {'description': 'AWS GovCloud (US-West)'} + 'us-gov-west-1': {'description': 'AWS GovCloud (US-West)'}, }, 'services': { 'access-analyzer': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'access-analyzer.us-gov-east-1.amazonaws.com' + 'hostname': 'access-analyzer.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'access-analyzer.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'access-analyzer.us-gov-west-1.amazonaws.com', + }, + }, }, 'acm': { 'defaults': { 'variants': [ { 'hostname': 'acm.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'acm.us-gov-east-1.amazonaws.com' + 'hostname': 'acm.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'acm.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'acm.us-gov-west-1.amazonaws.com', + }, + }, }, 'acm-pca': { 'defaults': { @@ -13471,80 +13471,80 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'acm-pca.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'acm-pca.us-gov-east-1.amazonaws.com' + 'hostname': 'acm-pca.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'acm-pca.us-gov-west-1.amazonaws.com' + 'hostname': 'acm-pca.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'acm-pca.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'acm-pca.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'api.detective': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'us-gov-east-1': { 'variants': [ { 'hostname': 'api.detective-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'api.detective-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'api.detective-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'api.detective-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'api.detective-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'api.detective-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'api.ecr': { 'defaults': { 'variants': [ { 'hostname': 'ecr-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'dkr-us-gov-east-1': { @@ -13553,9 +13553,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dkr-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -13563,29 +13563,29 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-dkr-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'ecr-fips.us-gov-east-1.amazonaws.com', }, 'fips-dkr-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'ecr-fips.us-gov-west-1.amazonaws.com', }, 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'ecr-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'ecr-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'ecr-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, @@ -13593,9 +13593,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -13603,39 +13603,39 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'ecr-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'api.sagemaker': { 'defaults': { 'variants': [ { 'hostname': 'api-fips.sagemaker.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-west-1': { 'variants': [ { 'hostname': 'api-fips.sagemaker.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'api-fips.sagemaker.us-gov-west-1.amazonaws.com' + 'hostname': 'api-fips.sagemaker.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1-fips-secondary': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'api.sagemaker.us-gov-west-1.amazonaws.com' + 'hostname': 'api.sagemaker.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1-secondary': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -13643,270 +13643,270 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'api.sagemaker.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'api.tunneling.iot': { 'defaults': { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'api.tunneling.iot-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'api.tunneling.iot-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'api.tunneling.iot-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'api.tunneling.iot-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'api.tunneling.iot-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'apigateway': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'appconfigdata': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'application-autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'us-gov-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'us-gov-west-1': { - 'protocols': ['http', 'https'] - } - } + 'protocols': ['http', 'https'], + }, + }, }, 'applicationinsights': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'applicationinsights.us-gov-east-1.amazonaws.com' + 'hostname': 'applicationinsights.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'applicationinsights.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'applicationinsights.us-gov-west-1.amazonaws.com', + }, + }, }, 'appstream2': { 'defaults': { 'credentialScope': {'service': 'appstream'}, - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'appstream2-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'appstream2-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'appstream2-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'appstream2-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'appstream2-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'athena': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'athena-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'athena-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'athena-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'athena-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'athena-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'athena-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'autoscaling': { 'endpoints': { 'us-gov-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'us-gov-west-1': { - 'protocols': ['http', 'https'] - } - } + 'protocols': ['http', 'https'], + }, + }, }, 'autoscaling-plans': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'endpoints': { 'us-gov-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, 'us-gov-west-1': { - 'protocols': ['http', 'https'] - } - } + 'protocols': ['http', 'https'], + }, + }, }, 'backup': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'batch': { 'defaults': { 'variants': [ { 'hostname': 'batch.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'batch.us-gov-east-1.amazonaws.com' + 'hostname': 'batch.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'batch.us-gov-west-1.amazonaws.com' + 'hostname': 'batch.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'batch.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'batch.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'cloudcontrolapi': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'cloudcontrolapi-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'cloudcontrolapi-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'cloudcontrolapi-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'cloudcontrolapi-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'cloudcontrolapi-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'cloudcontrolapi-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'clouddirectory': { - 'endpoints': {'us-gov-west-1': {}} + 'endpoints': {'us-gov-west-1': {}}, }, 'cloudformation': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'cloudformation.us-gov-east-1.amazonaws.com' + 'hostname': 'cloudformation.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'cloudformation.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'cloudformation.us-gov-west-1.amazonaws.com', + }, + }, }, 'cloudhsm': { - 'endpoints': {'us-gov-west-1': {}} + 'endpoints': {'us-gov-west-1': {}}, }, 'cloudhsmv2': { 'defaults': { - 'credentialScope': {'service': 'cloudhsm'} + 'credentialScope': {'service': 'cloudhsm'}, }, - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'cloudtrail': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'cloudtrail.us-gov-east-1.amazonaws.com' + 'hostname': 'cloudtrail.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'cloudtrail.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'cloudtrail.us-gov-west-1.amazonaws.com', + }, + }, }, 'codebuild': { 'endpoints': { @@ -13914,64 +13914,64 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'codebuild-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'codebuild-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'codebuild-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'codebuild-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'codebuild-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'codebuild-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'codecommit': { 'endpoints': { 'fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'codecommit-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'codecommit-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'codecommit-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'codecommit-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'codecommit-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'codecommit-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'codecommit-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'codecommit-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'codedeploy': { 'endpoints': { @@ -13979,289 +13979,289 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'codedeploy-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'codedeploy-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'codedeploy-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'codedeploy-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'codedeploy-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'codedeploy-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'codepipeline': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'codepipeline-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'codepipeline-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'codepipeline-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'cognito-identity': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'cognito-identity-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'cognito-identity-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'cognito-identity-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'cognito-idp': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'cognito-idp-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'cognito-idp-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'cognito-idp-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'comprehend': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'comprehend-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'comprehend-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'comprehend-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'comprehendmedical': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'comprehendmedical-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'comprehendmedical-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'comprehendmedical-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'config': { 'defaults': { 'variants': [ { 'hostname': 'config.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'config.us-gov-east-1.amazonaws.com' + 'hostname': 'config.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'config.us-gov-west-1.amazonaws.com' + 'hostname': 'config.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'config.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'config.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'connect': { - 'endpoints': {'us-gov-west-1': {}} + 'endpoints': {'us-gov-west-1': {}}, }, 'connectparticipant': { 'endpoints': { 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'participant.connect.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'participant.connect.us-gov-west-1.amazonaws.com', + }, + }, }, 'data.iot': { 'defaults': { 'credentialScope': {'service': 'iotdata'}, - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'service': 'iotdata'}, 'deprecated': true, - 'hostname': 'data.iot-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'data.iot-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'service': 'iotdata'}, 'deprecated': true, - 'hostname': 'data.iot-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'data.iot-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'data.iot-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'data.iot-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'data.jobs.iot': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'data.jobs.iot-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'data.jobs.iot-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'data.jobs.iot-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'data.jobs.iot-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'data.jobs.iot-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'data.jobs.iot-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'databrew': { - 'endpoints': {'us-gov-west-1': {}} + 'endpoints': {'us-gov-west-1': {}}, }, 'datasync': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'datasync-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'datasync-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'datasync-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'datasync-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'datasync-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'datasync-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'directconnect': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'directconnect.us-gov-east-1.amazonaws.com' + 'hostname': 'directconnect.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'directconnect.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'directconnect.us-gov-west-1.amazonaws.com', + }, + }, }, 'dlm': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'dms': { 'defaults': { 'variants': [ { 'hostname': 'dms.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'dms': { @@ -14270,168 +14270,168 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'dms.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dms-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'dms.us-gov-west-1.amazonaws.com' + 'hostname': 'dms.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'dms.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'dms.us-gov-east-1.amazonaws.com' + 'hostname': 'dms.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'dms.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'dms.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'dms.us-gov-west-1.amazonaws.com', + }, + }, }, 'docdb': { 'endpoints': { 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'rds.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'rds.us-gov-west-1.amazonaws.com', + }, + }, }, 'ds': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'ds-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'ds-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'ds-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'ds-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'ds-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'ds-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'dynamodb': { 'defaults': { 'variants': [ { 'hostname': 'dynamodb.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-east-1': { 'variants': [ { 'hostname': 'dynamodb.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'dynamodb.us-gov-east-1.amazonaws.com' + 'hostname': 'dynamodb.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'dynamodb.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'dynamodb.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'dynamodb.us-gov-west-1.amazonaws.com', + }, + }, }, 'ec2': { 'defaults': { 'variants': [ { 'hostname': 'ec2.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'ec2.us-gov-east-1.amazonaws.com' + 'hostname': 'ec2.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'ec2.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'ec2.us-gov-west-1.amazonaws.com', + }, + }, }, 'ecs': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'ecs-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'ecs-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'ecs-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'ecs-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'ecs-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'ecs-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'eks': { 'defaults': { @@ -14439,142 +14439,142 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'eks.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'eks.us-gov-east-1.amazonaws.com' + 'hostname': 'eks.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'eks.us-gov-west-1.amazonaws.com' + 'hostname': 'eks.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'eks.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'eks.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticache': { 'defaults': { 'variants': [ { 'hostname': 'elasticache.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'elasticache.us-gov-west-1.amazonaws.com' + 'hostname': 'elasticache.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': {}, 'us-gov-west-1': { 'variants': [ { 'hostname': 'elasticache.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'elasticache.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'elasticache.us-gov-west-1.amazonaws.com', + }, + }, }, 'elasticbeanstalk': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'elasticbeanstalk.us-gov-east-1.amazonaws.com' + 'hostname': 'elasticbeanstalk.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'elasticbeanstalk.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'elasticbeanstalk.us-gov-west-1.amazonaws.com', + }, + }, }, 'elasticfilesystem': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'elasticfilesystem-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticloadbalancing': { 'defaults': { 'variants': [ { 'hostname': 'elasticloadbalancing.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'elasticloadbalancing.us-gov-east-1.amazonaws.com' + 'hostname': 'elasticloadbalancing.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'elasticloadbalancing.us-gov-west-1.amazonaws.com' + 'hostname': 'elasticloadbalancing.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'elasticloadbalancing.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'protocols': ['http', 'https'], @@ -14582,202 +14582,202 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'elasticloadbalancing.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticmapreduce': { 'defaults': { 'variants': [ { 'hostname': 'elasticmapreduce.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'elasticmapreduce.us-gov-east-1.amazonaws.com' + 'hostname': 'elasticmapreduce.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'elasticmapreduce.us-gov-west-1.amazonaws.com' + 'hostname': 'elasticmapreduce.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'elasticmapreduce.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'protocols': ['https'], 'variants': [ { 'hostname': 'elasticmapreduce.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'email': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'email-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'email-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'email-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'es': { 'endpoints': { 'fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'es-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'es-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'es-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'es-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'es-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'es-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'es-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'es-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'events': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'events.us-gov-east-1.amazonaws.com' + 'hostname': 'events.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'events.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'events.us-gov-west-1.amazonaws.com', + }, + }, }, 'execute-api': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'firehose': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'firehose-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'firehose-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'firehose-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'firehose-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'firehose-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'firehose-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'fms': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'fms-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'fms-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'fms-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'fms-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'fms-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'fms-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'fsx': { 'endpoints': { 'fips-prod-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'fsx-fips.us-gov-east-1.amazonaws.com', }, 'fips-prod-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'fsx-fips.us-gov-west-1.amazonaws.com', }, 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'fsx-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'fsx-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'fsx-fips.us-gov-west-1.amazonaws.com', }, 'prod-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, @@ -14785,9 +14785,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'prod-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -14795,88 +14795,88 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fsx-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'fsx-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'fsx-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'glacier': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'glacier.us-gov-east-1.amazonaws.com' + 'hostname': 'glacier.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'hostname': 'glacier.us-gov-west-1.amazonaws.com', - 'protocols': ['http', 'https'] - } - } + 'protocols': ['http', 'https'], + }, + }, }, 'glue': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'glue-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'glue-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'glue-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'glue-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'glue-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'glue-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'greengrass': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'dataplane-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'greengrass-ats.iot.us-gov-east-1.amazonaws.com' + 'hostname': 'greengrass-ats.iot.us-gov-east-1.amazonaws.com', }, 'dataplane-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'greengrass-ats.iot.us-gov-west-1.amazonaws.com' + 'hostname': 'greengrass-ats.iot.us-gov-west-1.amazonaws.com', }, 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'greengrass-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'greengrass-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, @@ -14884,16 +14884,16 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'greengrass-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'greengrass.us-gov-west-1.amazonaws.com' - } + 'hostname': 'greengrass.us-gov-west-1.amazonaws.com', + }, }, - 'isRegionalized': true + 'isRegionalized': true, }, 'guardduty': { 'defaults': { @@ -14901,46 +14901,46 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'guardduty.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-east-1': { 'variants': [ { 'hostname': 'guardduty.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'guardduty.us-gov-east-1.amazonaws.com' + 'hostname': 'guardduty.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'guardduty.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'guardduty.us-gov-west-1.amazonaws.com' - } + 'hostname': 'guardduty.us-gov-west-1.amazonaws.com', + }, }, - 'isRegionalized': true + 'isRegionalized': true, }, 'health': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'health-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'health-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -14948,11 +14948,11 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'health-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'iam': { 'endpoints': { @@ -14962,14 +14962,14 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'iam.us-gov.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'aws-us-gov-global-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'iam.us-gov.amazonaws.com' + 'hostname': 'iam.us-gov.amazonaws.com', }, 'iam-govcloud': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -14977,291 +14977,291 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'iam.us-gov.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'iam-govcloud-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'iam.us-gov.amazonaws.com' - } + 'hostname': 'iam.us-gov.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-us-gov-global' + 'partitionEndpoint': 'aws-us-gov-global', }, 'identitystore': { 'defaults': { 'variants': [ { 'hostname': 'identitystore.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'identitystore.us-gov-east-1.amazonaws.com' + 'hostname': 'identitystore.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'identitystore.us-gov-west-1.amazonaws.com' + 'hostname': 'identitystore.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'identitystore.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'identitystore.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'inspector': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'inspector-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'inspector-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'inspector-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'inspector-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'inspector-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'inspector-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'iot': { 'defaults': { - 'credentialScope': {'service': 'execute-api'} + 'credentialScope': {'service': 'execute-api'}, }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'service': 'execute-api'}, 'deprecated': true, - 'hostname': 'iot-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'iot-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'service': 'execute-api'}, 'deprecated': true, - 'hostname': 'iot-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'iot-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'iot-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'iot-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'iotevents': { - 'endpoints': {'us-gov-west-1': {}} + 'endpoints': {'us-gov-west-1': {}}, }, 'ioteventsdata': { 'endpoints': { 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'data.iotevents.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'data.iotevents.us-gov-west-1.amazonaws.com', + }, + }, }, 'iotsitewise': { - 'endpoints': {'us-gov-west-1': {}} + 'endpoints': {'us-gov-west-1': {}}, }, 'kafka': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'kinesis': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'kinesis.us-gov-east-1.amazonaws.com' + 'hostname': 'kinesis.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'kinesis.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'kinesis.us-gov-west-1.amazonaws.com', + }, + }, }, 'kinesisanalytics': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'kms': { 'endpoints': { 'ProdFips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'kms-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'kms-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'kms-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'kms-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'kms-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'lakeformation': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'lakeformation-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'lakeformation-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'lakeformation-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'lambda': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'lambda-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'lambda-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'lambda-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'lambda-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'lambda-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'lambda-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'license-manager': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'license-manager-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'license-manager-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'license-manager-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'license-manager-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'license-manager-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'license-manager-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'logs': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'logs.us-gov-east-1.amazonaws.com' + 'hostname': 'logs.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'logs.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'logs.us-gov-west-1.amazonaws.com', + }, + }, }, 'mediaconvert': { 'endpoints': { 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'mediaconvert.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'mediaconvert.us-gov-west-1.amazonaws.com', + }, + }, }, 'metering.marketplace': { 'defaults': { - 'credentialScope': {'service': 'aws-marketplace'} + 'credentialScope': {'service': 'aws-marketplace'}, }, - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'models.lex': { 'defaults': { @@ -15269,159 +15269,159 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'models-fips.lex.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-west-1': { 'variants': [ { 'hostname': 'models-fips.lex.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'models-fips.lex.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'models-fips.lex.us-gov-west-1.amazonaws.com', + }, + }, }, 'monitoring': { 'defaults': { 'variants': [ { 'hostname': 'monitoring.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'monitoring.us-gov-east-1.amazonaws.com' + 'hostname': 'monitoring.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'monitoring.us-gov-west-1.amazonaws.com' + 'hostname': 'monitoring.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'monitoring.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'monitoring.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'mq': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'mq-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'mq-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'mq-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'mq-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'mq-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'mq-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'neptune': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'rds.us-gov-east-1.amazonaws.com' + 'hostname': 'rds.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'rds.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'rds.us-gov-west-1.amazonaws.com', + }, + }, }, 'network-firewall': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'network-firewall-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'network-firewall-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'network-firewall-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'network-firewall-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'network-firewall-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'network-firewall-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'networkmanager': { 'endpoints': { 'aws-us-gov-global': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'networkmanager.us-gov-west-1.amazonaws.com' - } + 'hostname': 'networkmanager.us-gov-west-1.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-us-gov-global' + 'partitionEndpoint': 'aws-us-gov-global', }, 'oidc': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'oidc.us-gov-east-1.amazonaws.com' + 'hostname': 'oidc.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'oidc.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'oidc.us-gov-west-1.amazonaws.com', + }, + }, }, 'organizations': { 'endpoints': { @@ -15431,40 +15431,40 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'organizations.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-aws-us-gov-global': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'organizations.us-gov-west-1.amazonaws.com' - } + 'hostname': 'organizations.us-gov-west-1.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-us-gov-global' + 'partitionEndpoint': 'aws-us-gov-global', }, 'outposts': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'outposts.us-gov-east-1.amazonaws.com' + 'hostname': 'outposts.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'outposts.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'outposts.us-gov-west-1.amazonaws.com', + }, + }, }, 'pinpoint': { 'defaults': { - 'credentialScope': {'service': 'mobiletargeting'} + 'credentialScope': {'service': 'mobiletargeting'}, }, 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'pinpoint-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'pinpoint-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -15472,122 +15472,122 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'pinpoint-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'polly': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'polly-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'polly-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'polly-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'portal.sso': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'portal.sso.us-gov-east-1.amazonaws.com' + 'hostname': 'portal.sso.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'portal.sso.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'portal.sso.us-gov-west-1.amazonaws.com', + }, + }, }, 'quicksight': { - 'endpoints': {'api': {}, 'us-gov-west-1': {}} + 'endpoints': {'api': {}, 'us-gov-west-1': {}}, }, 'ram': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'ram.us-gov-east-1.amazonaws.com' + 'hostname': 'ram.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'ram.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'ram.us-gov-west-1.amazonaws.com', + }, + }, }, 'rds': { 'defaults': { 'variants': [ { 'hostname': 'rds.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'rds.us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'rds.us-gov-east-1.amazonaws.com' + 'hostname': 'rds.us-gov-east-1.amazonaws.com', }, 'rds.us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'rds.us-gov-west-1.amazonaws.com' + 'hostname': 'rds.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'rds.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'rds.us-gov-east-1.amazonaws.com' + 'hostname': 'rds.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'rds.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'rds.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'rds.us-gov-west-1.amazonaws.com', + }, + }, }, 'redshift': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'redshift.us-gov-east-1.amazonaws.com' + 'hostname': 'redshift.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'redshift.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'redshift.us-gov-west-1.amazonaws.com', + }, + }, }, 'rekognition': { 'endpoints': { 'rekognition-fips.us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'rekognition-fips.us-gov-west-1.amazonaws.com', }, 'rekognition.us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -15595,62 +15595,62 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'rekognition-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'rekognition-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'rekognition-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'rekognition-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'resource-groups': { 'defaults': { 'variants': [ { 'hostname': 'resource-groups.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'resource-groups.us-gov-east-1.amazonaws.com' + 'hostname': 'resource-groups.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'resource-groups.us-gov-west-1.amazonaws.com' + 'hostname': 'resource-groups.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'resource-groups.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'resource-groups.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'route53': { 'endpoints': { @@ -15660,21 +15660,21 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'route53.us-gov.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'fips-aws-us-gov-global': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'route53.us-gov.amazonaws.com' - } + 'hostname': 'route53.us-gov.amazonaws.com', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-us-gov-global' + 'partitionEndpoint': 'aws-us-gov-global', }, 'route53resolver': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'runtime.lex': { 'defaults': { @@ -15682,50 +15682,50 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'runtime-fips.lex.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-west-1': { 'variants': [ { 'hostname': 'runtime-fips.lex.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'runtime-fips.lex.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'runtime-fips.lex.us-gov-west-1.amazonaws.com', + }, + }, }, 'runtime.sagemaker': { 'defaults': { 'variants': [ { 'hostname': 'runtime.sagemaker.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-west-1': { 'variants': [ { 'hostname': 'runtime.sagemaker.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'runtime.sagemaker.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'runtime.sagemaker.us-gov-west-1.amazonaws.com', + }, + }, }, 's3': { 'defaults': { @@ -15734,25 +15734,25 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}-fips.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 's3-fips.us-gov-east-1.amazonaws.com' + 'hostname': 's3-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 's3-fips.us-gov-west-1.amazonaws.com' + 'hostname': 's3-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'hostname': 's3.us-gov-east-1.amazonaws.com', @@ -15760,13 +15760,13 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3.dualstack.us-gov-east-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-gov-west-1': { 'hostname': 's3.us-gov-west-1.amazonaws.com', @@ -15774,15 +15774,15 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 's3-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3.dualstack.us-gov-west-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 's3-control': { 'defaults': { @@ -15792,14 +15792,14 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}-fips.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'us-gov-east-1': { @@ -15810,24 +15810,24 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control-fips.dualstack.us-gov-east-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-control-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-control.dualstack.us-gov-east-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, 'hostname': 's3-control-fips.us-gov-east-1.amazonaws.com', - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -15837,26 +15837,26 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 's3-control-fips.dualstack.us-gov-west-1.amazonaws.com', - 'tags': ['dualstack', 'fips'] + 'tags': ['dualstack', 'fips'], }, { 'hostname': 's3-control-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 's3-control.dualstack.us-gov-west-1.amazonaws.com', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, 'hostname': 's3-control-fips.us-gov-west-1.amazonaws.com', - 'signatureVersions': ['s3v4'] - } - } + 'signatureVersions': ['s3v4'], + }, + }, }, 's3-outposts': { 'endpoints': { @@ -15865,18 +15865,18 @@ const _$_awsEndpointsJsonLiteral = { 'us-gov-east-1': { 'variants': [ { - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'secretsmanager': { 'endpoints': { @@ -15884,76 +15884,76 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'secretsmanager-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'secretsmanager-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'secretsmanager-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'secretsmanager-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'secretsmanager-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'secretsmanager-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'securityhub': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'securityhub-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'securityhub-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'securityhub-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'securityhub-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'securityhub-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'securityhub-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'serverlessrepo': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'hostname': 'serverlessrepo.us-gov-east-1.amazonaws.com', - 'protocols': ['https'] + 'protocols': ['https'], }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'hostname': 'serverlessrepo.us-gov-west-1.amazonaws.com', - 'protocols': ['https'] - } - } + 'protocols': ['https'], + }, + }, }, 'servicecatalog': { 'endpoints': { @@ -15961,71 +15961,71 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'servicecatalog-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'servicecatalog-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'servicecatalog-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'servicecatalog-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'servicecatalog-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'servicecatalog-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'servicecatalog-appregistry': { 'defaults': { 'variants': [ { 'hostname': 'servicecatalog-appregistry.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, 'hostname': - 'servicecatalog-appregistry.us-gov-east-1.amazonaws.com' + 'servicecatalog-appregistry.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, 'hostname': - 'servicecatalog-appregistry.us-gov-west-1.amazonaws.com' + 'servicecatalog-appregistry.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'servicecatalog-appregistry.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'servicecatalog-appregistry.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'servicediscovery': { 'endpoints': { @@ -16036,44 +16036,44 @@ const _$_awsEndpointsJsonLiteral = { { 'hostname': 'servicediscovery-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'servicediscovery-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'servicediscovery-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'servicediscovery-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'servicediscovery-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'servicediscovery-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'servicediscovery-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'servicediscovery-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'servicequotas': { 'defaults': { @@ -16081,228 +16081,228 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'servicequotas.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'servicequotas.us-gov-east-1.amazonaws.com' + 'hostname': 'servicequotas.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'servicequotas.us-gov-west-1.amazonaws.com' + 'hostname': 'servicequotas.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'servicequotas.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'servicequotas.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'sms': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'sms-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'sms-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'sms-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'sms-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'sms-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'sms-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'snowball': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'snowball-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'snowball-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'snowball-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'snowball-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'snowball-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'sns': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'sns.us-gov-east-1.amazonaws.com' + 'hostname': 'sns.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'hostname': 'sns.us-gov-west-1.amazonaws.com', - 'protocols': ['http', 'https'] - } - } + 'protocols': ['http', 'https'], + }, + }, }, 'sqs': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'sqs.us-gov-east-1.amazonaws.com' + 'hostname': 'sqs.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'hostname': 'sqs.us-gov-west-1.amazonaws.com', 'protocols': ['http', 'https'], - 'sslCommonName': '{region}.queue.{dnsSuffix}' - } - } + 'sslCommonName': '{region}.queue.{dnsSuffix}', + }, + }, }, 'ssm': { 'defaults': { 'variants': [ { 'hostname': 'ssm.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'ssm.us-gov-east-1.amazonaws.com' + 'hostname': 'ssm.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'ssm.us-gov-west-1.amazonaws.com' + 'hostname': 'ssm.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'ssm.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'ssm.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'states': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'states-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'states-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'states.us-gov-west-1.amazonaws.com' + 'hostname': 'states.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'states-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'states.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'storagegateway': { 'endpoints': { 'fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'storagegateway-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'storagegateway-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'storagegateway-fips.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'storagegateway-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'storagegateway-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'storagegateway-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'streams.dynamodb': { 'defaults': { @@ -16310,87 +16310,87 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'streams.dynamodb.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-east-1': { 'variants': [ { 'hostname': 'streams.dynamodb.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'streams.dynamodb.us-gov-east-1.amazonaws.com' + 'hostname': 'streams.dynamodb.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'streams.dynamodb.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'streams.dynamodb.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'streams.dynamodb.us-gov-west-1.amazonaws.com', + }, + }, }, 'sts': { 'defaults': { 'variants': [ { 'hostname': 'sts.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'us-gov-east-1': { 'variants': [ { 'hostname': 'sts.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-east-1-fips': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'sts.us-gov-east-1.amazonaws.com' + 'hostname': 'sts.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'sts.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'sts.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'sts.us-gov-west-1.amazonaws.com', + }, + }, }, 'support': { 'endpoints': { 'aws-us-gov-global': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'support.us-gov-west-1.amazonaws.com' + 'hostname': 'support.us-gov-west-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'support.us-gov-west-1.amazonaws.com' + 'hostname': 'support.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -16398,60 +16398,60 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'support.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } + 'tags': ['fips'], + }, + ], + }, }, - 'partitionEndpoint': 'aws-us-gov-global' + 'partitionEndpoint': 'aws-us-gov-global', }, 'swf': { 'endpoints': { 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, - 'hostname': 'swf.us-gov-east-1.amazonaws.com' + 'hostname': 'swf.us-gov-east-1.amazonaws.com', }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, - 'hostname': 'swf.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'swf.us-gov-west-1.amazonaws.com', + }, + }, }, 'synthetics': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'tagging': { - 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}} + 'endpoints': {'us-gov-east-1': {}, 'us-gov-west-1': {}}, }, 'textract': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'textract-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'textract-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'textract-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'textract-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'textract-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'textract-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'transcribe': { 'defaults': { @@ -16459,100 +16459,100 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'fips.transcribe.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'fips.transcribe.us-gov-east-1.amazonaws.com' + 'hostname': 'fips.transcribe.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'fips.transcribe.us-gov-west-1.amazonaws.com' + 'hostname': 'fips.transcribe.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'fips.transcribe.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'fips.transcribe.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'transfer': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'transfer-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'transfer-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'transfer-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'transfer-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'transfer-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'transfer-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'translate': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, 'endpoints': { 'us-gov-west-1': { 'variants': [ { 'hostname': 'translate-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1-fips': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'translate-fips.us-gov-west-1.amazonaws.com' - } - } + 'hostname': 'translate-fips.us-gov-west-1.amazonaws.com', + }, + }, }, 'waf-regional': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'waf-regional-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'waf-regional-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'waf-regional-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, @@ -16560,9 +16560,9 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, @@ -16570,60 +16570,60 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'waf-regional-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'workspaces': { 'endpoints': { 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'workspaces-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'workspaces-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'workspaces-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'xray': { 'endpoints': { 'fips-us-gov-east-1': { 'credentialScope': {'region': 'us-gov-east-1'}, 'deprecated': true, - 'hostname': 'xray-fips.us-gov-east-1.amazonaws.com' + 'hostname': 'xray-fips.us-gov-east-1.amazonaws.com', }, 'fips-us-gov-west-1': { 'credentialScope': {'region': 'us-gov-west-1'}, 'deprecated': true, - 'hostname': 'xray-fips.us-gov-west-1.amazonaws.com' + 'hostname': 'xray-fips.us-gov-west-1.amazonaws.com', }, 'us-gov-east-1': { 'variants': [ { 'hostname': 'xray-fips.us-gov-east-1.amazonaws.com', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-gov-west-1': { 'variants': [ { 'hostname': 'xray-fips.us-gov-west-1.amazonaws.com', - 'tags': ['fips'] - } - ] - } - } - } - } + 'tags': ['fips'], + }, + ], + }, + }, + }, + }, }, { 'defaults': { @@ -16634,9 +16634,9 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'c2s.ic.gov', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dnsSuffix': 'c2s.ic.gov', 'partition': 'aws-iso', @@ -16644,73 +16644,73 @@ const _$_awsEndpointsJsonLiteral = { 'regionRegex': '^us\\-iso\\-\\w+\\-\\d+\$', 'regions': { 'us-iso-east-1': {'description': 'US ISO East'}, - 'us-iso-west-1': {'description': 'US ISO WEST'} + 'us-iso-west-1': {'description': 'US ISO WEST'}, }, 'services': { 'api.ecr': { 'endpoints': { 'us-iso-east-1': { 'credentialScope': {'region': 'us-iso-east-1'}, - 'hostname': 'api.ecr.us-iso-east-1.c2s.ic.gov' + 'hostname': 'api.ecr.us-iso-east-1.c2s.ic.gov', }, 'us-iso-west-1': { 'credentialScope': {'region': 'us-iso-west-1'}, - 'hostname': 'api.ecr.us-iso-west-1.c2s.ic.gov' - } - } + 'hostname': 'api.ecr.us-iso-west-1.c2s.ic.gov', + }, + }, }, 'api.sagemaker': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'apigateway': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'application-autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'autoscaling': { 'endpoints': { 'us-iso-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'cloudformation': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'cloudtrail': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'codedeploy': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'comprehend': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'config': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'datapipeline': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'directconnect': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'dms': { 'defaults': { 'variants': [ { 'hostname': 'dms.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'dms': { @@ -16719,293 +16719,293 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'dms.us-iso-east-1.c2s.ic.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dms-fips': { 'credentialScope': {'region': 'us-iso-east-1'}, 'deprecated': true, - 'hostname': 'dms.us-iso-east-1.c2s.ic.gov' + 'hostname': 'dms.us-iso-east-1.c2s.ic.gov', }, 'us-iso-east-1': { 'variants': [ { 'hostname': 'dms.us-iso-east-1.c2s.ic.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-iso-east-1-fips': { 'credentialScope': {'region': 'us-iso-east-1'}, 'deprecated': true, - 'hostname': 'dms.us-iso-east-1.c2s.ic.gov' + 'hostname': 'dms.us-iso-east-1.c2s.ic.gov', }, 'us-iso-west-1': { 'variants': [ { 'hostname': 'dms.us-iso-west-1.c2s.ic.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-iso-west-1-fips': { 'credentialScope': {'region': 'us-iso-west-1'}, 'deprecated': true, - 'hostname': 'dms.us-iso-west-1.c2s.ic.gov' - } - } + 'hostname': 'dms.us-iso-west-1.c2s.ic.gov', + }, + }, }, 'ds': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'dynamodb': { 'endpoints': { 'us-iso-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'ec2': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'ecs': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'elasticache': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'elasticfilesystem': { 'endpoints': { 'fips-us-iso-east-1': { 'credentialScope': {'region': 'us-iso-east-1'}, 'deprecated': true, - 'hostname': 'elasticfilesystem-fips.us-iso-east-1.c2s.ic.gov' + 'hostname': 'elasticfilesystem-fips.us-iso-east-1.c2s.ic.gov', }, 'us-iso-east-1': { 'variants': [ { 'hostname': 'elasticfilesystem-fips.us-iso-east-1.c2s.ic.gov', - 'tags': ['fips'] - } - ] - } - } + 'tags': ['fips'], + }, + ], + }, + }, }, 'elasticloadbalancing': { 'endpoints': { 'us-iso-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'elasticmapreduce': { 'endpoints': { 'us-iso-east-1': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'es': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'events': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'execute-api': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'firehose': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'glacier': { 'endpoints': { 'us-iso-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'iam': { 'endpoints': { 'aws-iso-global': { 'credentialScope': {'region': 'us-iso-east-1'}, - 'hostname': 'iam.us-iso-east-1.c2s.ic.gov' - } + 'hostname': 'iam.us-iso-east-1.c2s.ic.gov', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-iso-global' + 'partitionEndpoint': 'aws-iso-global', }, 'kinesis': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'kms': { 'endpoints': { 'ProdFips': { 'credentialScope': {'region': 'us-iso-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-iso-east-1.c2s.ic.gov' + 'hostname': 'kms-fips.us-iso-east-1.c2s.ic.gov', }, 'us-iso-east-1': { 'variants': [ { 'hostname': 'kms-fips.us-iso-east-1.c2s.ic.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-iso-east-1-fips': { 'credentialScope': {'region': 'us-iso-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-iso-east-1.c2s.ic.gov' + 'hostname': 'kms-fips.us-iso-east-1.c2s.ic.gov', }, 'us-iso-west-1': { 'variants': [ { 'hostname': 'kms-fips.us-iso-west-1.c2s.ic.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-iso-west-1-fips': { 'credentialScope': {'region': 'us-iso-west-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-iso-west-1.c2s.ic.gov' - } - } + 'hostname': 'kms-fips.us-iso-west-1.c2s.ic.gov', + }, + }, }, 'lambda': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'license-manager': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'logs': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'medialive': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'mediapackage': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'monitoring': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'outposts': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'ram': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'rds': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'redshift': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'route53': { 'endpoints': { 'aws-iso-global': { 'credentialScope': {'region': 'us-iso-east-1'}, - 'hostname': 'route53.c2s.ic.gov' - } + 'hostname': 'route53.c2s.ic.gov', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-iso-global' + 'partitionEndpoint': 'aws-iso-global', }, 'route53resolver': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'runtime.sagemaker': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 's3': { 'defaults': { - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, 'endpoints': { 'us-iso-east-1': { 'protocols': ['http', 'https'], - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'secretsmanager': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'snowball': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'sns': { 'endpoints': { 'us-iso-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'sqs': { 'endpoints': { 'us-iso-east-1': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'us-iso-west-1': {} - } + 'us-iso-west-1': {}, + }, }, 'ssm': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'states': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'streams.dynamodb': { 'defaults': { - 'credentialScope': {'service': 'dynamodb'} + 'credentialScope': {'service': 'dynamodb'}, }, - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'sts': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'support': { 'endpoints': { 'aws-iso-global': { 'credentialScope': {'region': 'us-iso-east-1'}, - 'hostname': 'support.us-iso-east-1.c2s.ic.gov' - } + 'hostname': 'support.us-iso-east-1.c2s.ic.gov', + }, }, - 'partitionEndpoint': 'aws-iso-global' + 'partitionEndpoint': 'aws-iso-global', }, 'swf': { - 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}} + 'endpoints': {'us-iso-east-1': {}, 'us-iso-west-1': {}}, }, 'synthetics': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'transcribe': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'transcribestreaming': { - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'translate': { 'defaults': { - 'protocols': ['https'] + 'protocols': ['https'], }, - 'endpoints': {'us-iso-east-1': {}} + 'endpoints': {'us-iso-east-1': {}}, }, 'workspaces': { - 'endpoints': {'us-iso-east-1': {}} - } - } + 'endpoints': {'us-iso-east-1': {}}, + }, + }, }, { 'defaults': { @@ -17016,61 +17016,61 @@ const _$_awsEndpointsJsonLiteral = { { 'dnsSuffix': 'sc2s.sgov.gov', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dnsSuffix': 'sc2s.sgov.gov', 'partition': 'aws-iso-b', 'partitionName': 'AWS ISOB (US)', 'regionRegex': '^us\\-isob\\-\\w+\\-\\d+\$', 'regions': { - 'us-isob-east-1': {'description': 'US ISOB East (Ohio)'} + 'us-isob-east-1': {'description': 'US ISOB East (Ohio)'}, }, 'services': { 'api.ecr': { 'endpoints': { 'us-isob-east-1': { 'credentialScope': {'region': 'us-isob-east-1'}, - 'hostname': 'api.ecr.us-isob-east-1.sc2s.sgov.gov' - } - } + 'hostname': 'api.ecr.us-isob-east-1.sc2s.sgov.gov', + }, + }, }, 'application-autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'autoscaling': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'cloudformation': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'cloudtrail': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'codedeploy': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'config': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'directconnect': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'dms': { 'defaults': { 'variants': [ { 'hostname': 'dms.{region}.{dnsSuffix}', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'endpoints': { 'dms': { @@ -17079,195 +17079,195 @@ const _$_awsEndpointsJsonLiteral = { 'variants': [ { 'hostname': 'dms.us-isob-east-1.sc2s.sgov.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'dms-fips': { 'credentialScope': {'region': 'us-isob-east-1'}, 'deprecated': true, - 'hostname': 'dms.us-isob-east-1.sc2s.sgov.gov' + 'hostname': 'dms.us-isob-east-1.sc2s.sgov.gov', }, 'us-isob-east-1': { 'variants': [ { 'hostname': 'dms.us-isob-east-1.sc2s.sgov.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-isob-east-1-fips': { 'credentialScope': {'region': 'us-isob-east-1'}, 'deprecated': true, - 'hostname': 'dms.us-isob-east-1.sc2s.sgov.gov' - } - } + 'hostname': 'dms.us-isob-east-1.sc2s.sgov.gov', + }, + }, }, 'ds': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'dynamodb': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'ec2': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'ecs': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'elasticache': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'elasticloadbalancing': { 'endpoints': { 'us-isob-east-1': { - 'protocols': ['https'] - } - } + 'protocols': ['https'], + }, + }, }, 'elasticmapreduce': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'es': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'events': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'execute-api': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'glacier': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'iam': { 'endpoints': { 'aws-iso-b-global': { 'credentialScope': {'region': 'us-isob-east-1'}, - 'hostname': 'iam.us-isob-east-1.sc2s.sgov.gov' - } + 'hostname': 'iam.us-isob-east-1.sc2s.sgov.gov', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-iso-b-global' + 'partitionEndpoint': 'aws-iso-b-global', }, 'kinesis': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'kms': { 'endpoints': { 'ProdFips': { 'credentialScope': {'region': 'us-isob-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-isob-east-1.sc2s.sgov.gov' + 'hostname': 'kms-fips.us-isob-east-1.sc2s.sgov.gov', }, 'us-isob-east-1': { 'variants': [ { 'hostname': 'kms-fips.us-isob-east-1.sc2s.sgov.gov', - 'tags': ['fips'] - } - ] + 'tags': ['fips'], + }, + ], }, 'us-isob-east-1-fips': { 'credentialScope': {'region': 'us-isob-east-1'}, 'deprecated': true, - 'hostname': 'kms-fips.us-isob-east-1.sc2s.sgov.gov' - } - } + 'hostname': 'kms-fips.us-isob-east-1.sc2s.sgov.gov', + }, + }, }, 'lambda': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'license-manager': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'logs': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'monitoring': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'rds': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'redshift': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'route53': { 'endpoints': { 'aws-iso-b-global': { 'credentialScope': {'region': 'us-isob-east-1'}, - 'hostname': 'route53.sc2s.sgov.gov' - } + 'hostname': 'route53.sc2s.sgov.gov', + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-iso-b-global' + 'partitionEndpoint': 'aws-iso-b-global', }, 's3': { 'defaults': { 'protocols': ['http', 'https'], - 'signatureVersions': ['s3v4'] + 'signatureVersions': ['s3v4'], }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'snowball': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'sns': { 'defaults': { - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'sqs': { 'defaults': { 'protocols': ['http', 'https'], - 'sslCommonName': '{region}.queue.{dnsSuffix}' + 'sslCommonName': '{region}.queue.{dnsSuffix}', }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'ssm': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'states': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'streams.dynamodb': { 'defaults': { 'credentialScope': {'service': 'dynamodb'}, - 'protocols': ['http', 'https'] + 'protocols': ['http', 'https'], }, - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'sts': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'support': { 'endpoints': { 'aws-iso-b-global': { 'credentialScope': {'region': 'us-isob-east-1'}, - 'hostname': 'support.us-isob-east-1.sc2s.sgov.gov' - } + 'hostname': 'support.us-isob-east-1.sc2s.sgov.gov', + }, }, - 'partitionEndpoint': 'aws-iso-b-global' + 'partitionEndpoint': 'aws-iso-b-global', }, 'swf': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'synthetics': { - 'endpoints': {'us-isob-east-1': {}} + 'endpoints': {'us-isob-east-1': {}}, }, 'tagging': { - 'endpoints': {'us-isob-east-1': {}} - } - } - } + 'endpoints': {'us-isob-east-1': {}}, + }, + }, + }, ], - 'version': 3 + 'version': 3, }; diff --git a/packages/smithy/smithy_codegen/lib/src/aws/partition_node.dart b/packages/smithy/smithy_codegen/lib/src/aws/partition_node.dart index c829a1a50f..b048f4d6c5 100644 --- a/packages/smithy/smithy_codegen/lib/src/aws/partition_node.dart +++ b/packages/smithy/smithy_codegen/lib/src/aws/partition_node.dart @@ -7,10 +7,7 @@ import 'package:smithy_aws/smithy_aws.dart'; part 'partition_node.g.dart'; -const _fromJson = JsonSerializable( - createToJson: false, - anyMap: true, -); +const _fromJson = JsonSerializable(createToJson: false, anyMap: true); /// {@template smithy_codegen.partition_node} /// Node for a single partition found in endpoints.json. @@ -85,14 +82,14 @@ class PartitionNode with AWSEquatable { @override List get props => [ - defaults, - dnsSuffix, - partition, - partitionName, - regionRegex, - regions, - services, - ]; + defaults, + dnsSuffix, + partition, + partitionName, + regionRegex, + regions, + services, + ]; } @_fromJson @@ -135,11 +132,11 @@ class PartitionNodeDefaults with AWSEquatable { @override List get props => [ - credentialScope, - hostname, - protocols, - signatureVersions, - ]; + credentialScope, + hostname, + protocols, + signatureVersions, + ]; } @_fromJson @@ -157,8 +154,7 @@ class PartitionNodeServiceConfiguration factory PartitionNodeServiceConfiguration.fromJson( Map json, - ) => - _$PartitionNodeServiceConfigurationFromJson(json); + ) => _$PartitionNodeServiceConfigurationFromJson(json); /// Default values to merge into each endpoint of the service. final EndpointDefinition defaults; @@ -183,12 +179,12 @@ class PartitionNodeServiceConfiguration @override List get props => [ - defaults, - endpoints, - protocols, - partitionEndpoint, - isRegionalized, - deprecated, - variants, - ]; + defaults, + endpoints, + protocols, + partitionEndpoint, + isRegionalized, + deprecated, + variants, + ]; } diff --git a/packages/smithy/smithy_codegen/lib/src/aws/partition_node.g.dart b/packages/smithy/smithy_codegen/lib/src/aws/partition_node.g.dart index 21d228dda4..cae0474039 100644 --- a/packages/smithy/smithy_codegen/lib/src/aws/partition_node.g.dart +++ b/packages/smithy/smithy_codegen/lib/src/aws/partition_node.g.dart @@ -7,72 +7,86 @@ part of 'partition_node.dart'; // ************************************************************************** PartitionNode _$PartitionNodeFromJson(Map json) => PartitionNode( - defaults: json['defaults'] == null + defaults: + json['defaults'] == null ? const EndpointDefinition() : EndpointDefinition.fromJson( - Map.from(json['defaults'] as Map)), - dnsSuffix: json['dnsSuffix'] as String, - partition: json['partition'] as String, - partitionName: json['partitionName'] as String?, - regionRegex: json['regionRegex'] as String, - regions: (json['regions'] as Map).map( - (k, e) => MapEntry(k as String, - PartitionNodeRegion.fromJson(Map.from(e as Map))), + Map.from(json['defaults'] as Map), + ), + dnsSuffix: json['dnsSuffix'] as String, + partition: json['partition'] as String, + partitionName: json['partitionName'] as String?, + regionRegex: json['regionRegex'] as String, + regions: (json['regions'] as Map).map( + (k, e) => MapEntry( + k as String, + PartitionNodeRegion.fromJson(Map.from(e as Map)), + ), + ), + services: (json['services'] as Map).map( + (k, e) => MapEntry( + k as String, + PartitionNodeServiceConfiguration.fromJson( + Map.from(e as Map), ), - services: (json['services'] as Map).map( - (k, e) => MapEntry( - k as String, - PartitionNodeServiceConfiguration.fromJson( - Map.from(e as Map))), - ), - ); + ), + ), +); PartitionNodeRegion _$PartitionNodeRegionFromJson(Map json) => - PartitionNodeRegion( - json['description'] as String, - ); + PartitionNodeRegion(json['description'] as String); PartitionNodeDefaults _$PartitionNodeDefaultsFromJson(Map json) => PartitionNodeDefaults( - credentialScope: json['credentialScope'] == null - ? null - : CredentialScope.fromJson( - Map.from(json['credentialScope'] as Map)), + credentialScope: + json['credentialScope'] == null + ? null + : CredentialScope.fromJson( + Map.from(json['credentialScope'] as Map), + ), hostname: json['hostname'] as String?, - protocols: (json['protocols'] as List?) + protocols: + (json['protocols'] as List?) ?.map((e) => e as String) .toList() ?? const [], - signatureVersions: (json['signatureVersions'] as List?) + signatureVersions: + (json['signatureVersions'] as List?) ?.map((e) => e as String) .toList() ?? const [], ); PartitionNodeServiceConfiguration _$PartitionNodeServiceConfigurationFromJson( - Map json) => - PartitionNodeServiceConfiguration( - defaults: json['defaults'] == null + Map json, +) => PartitionNodeServiceConfiguration( + defaults: + json['defaults'] == null ? const EndpointDefinition() : EndpointDefinition.fromJson( - Map.from(json['defaults'] as Map)), - endpoints: (json['endpoints'] as Map?)?.map( - (k, e) => MapEntry( - k as String, - EndpointDefinition.fromJson( - Map.from(e as Map))), - ) ?? - const {}, - protocols: (json['protocols'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - partitionEndpoint: json['partitionEndpoint'] as String?, - isRegionalized: json['isRegionalized'] as bool? ?? true, - deprecated: json['deprecated'] as bool? ?? false, - variants: (json['variants'] as List?) - ?.map((e) => EndpointDefinitionVariant.fromJson( - Map.from(e as Map))) - .toList() ?? - const [], - ); + Map.from(json['defaults'] as Map), + ), + endpoints: + (json['endpoints'] as Map?)?.map( + (k, e) => MapEntry( + k as String, + EndpointDefinition.fromJson(Map.from(e as Map)), + ), + ) ?? + const {}, + protocols: + (json['protocols'] as List?)?.map((e) => e as String).toList() ?? + const [], + partitionEndpoint: json['partitionEndpoint'] as String?, + isRegionalized: json['isRegionalized'] as bool? ?? true, + deprecated: json['deprecated'] as bool? ?? false, + variants: + (json['variants'] as List?) + ?.map( + (e) => EndpointDefinitionVariant.fromJson( + Map.from(e as Map), + ), + ) + .toList() ?? + const [], +); diff --git a/packages/smithy/smithy_codegen/lib/src/config.dart b/packages/smithy/smithy_codegen/lib/src/config.dart index 64eb899565..05d45db5be 100644 --- a/packages/smithy/smithy_codegen/lib/src/config.dart +++ b/packages/smithy/smithy_codegen/lib/src/config.dart @@ -25,7 +25,8 @@ class CodegenConfig { @CliOption( abbr: 'o', defaultsTo: '.', - help: 'The directory to store generated files. ' + help: + 'The directory to store generated files. ' 'Defaults to the current directory.', ) final String output; @@ -41,7 +42,8 @@ class CodegenConfig { @CliOption( abbr: 'p', - help: 'The name of the generated package. ' + help: + 'The name of the generated package. ' 'Defaults to the service name.', ) final String? packageName; @@ -60,9 +62,7 @@ class CodegenConfig { ) final bool client; - @CliOption( - help: 'The path to the smithy package', - ) + @CliOption(help: 'The path to the smithy package') final String? smithyPath; } diff --git a/packages/smithy/smithy_codegen/lib/src/config.g.dart b/packages/smithy/smithy_codegen/lib/src/config.g.dart index 6940adbdaf..9a14d70362 100644 --- a/packages/smithy/smithy_codegen/lib/src/config.g.dart +++ b/packages/smithy/smithy_codegen/lib/src/config.g.dart @@ -7,50 +7,39 @@ part of 'config.dart'; // ************************************************************************** CodegenConfig _$parseCodegenConfigResult(ArgResults result) => CodegenConfig( - output: result['output'] as String, - inputFile: result['input-file'] as String?, - listen: result['listen'] as bool, - packageName: result['package-name'] as String?, - server: result['server'] as bool, - client: result['client'] as bool, - smithyPath: result['smithy-path'] as String?, - ); + output: result['output'] as String, + inputFile: result['input-file'] as String?, + listen: result['listen'] as bool, + packageName: result['package-name'] as String?, + server: result['server'] as bool, + client: result['client'] as bool, + smithyPath: result['smithy-path'] as String?, +); -ArgParser _$populateCodegenConfigParser(ArgParser parser) => parser - ..addOption( - 'output', - abbr: 'o', - help: - 'The directory to store generated files. Defaults to the current directory.', - defaultsTo: '.', - ) - ..addOption( - 'input-file', - abbr: 'f', - help: 'The input model JSON file.', - ) - ..addFlag( - 'listen', - help: 'Starts a gRPC server for accepting commands.', - ) - ..addOption( - 'package-name', - abbr: 'p', - help: 'The name of the generated package. Defaults to the service name.', - ) - ..addFlag( - 'server', - help: 'Whether to generate server-side code.', - ) - ..addFlag( - 'client', - help: 'Whether to generate client-side code.', - defaultsTo: true, - ) - ..addOption( - 'smithy-path', - help: 'The path to the smithy package', - ); +ArgParser _$populateCodegenConfigParser(ArgParser parser) => + parser + ..addOption( + 'output', + abbr: 'o', + help: + 'The directory to store generated files. Defaults to the current directory.', + defaultsTo: '.', + ) + ..addOption('input-file', abbr: 'f', help: 'The input model JSON file.') + ..addFlag('listen', help: 'Starts a gRPC server for accepting commands.') + ..addOption( + 'package-name', + abbr: 'p', + help: + 'The name of the generated package. Defaults to the service name.', + ) + ..addFlag('server', help: 'Whether to generate server-side code.') + ..addFlag( + 'client', + help: 'Whether to generate client-side code.', + defaultsTo: true, + ) + ..addOption('smithy-path', help: 'The path to the smithy package'); final _$parserForCodegenConfig = _$populateCodegenConfigParser(ArgParser()); diff --git a/packages/smithy/smithy_codegen/lib/src/core/reserved_words.dart b/packages/smithy/smithy_codegen/lib/src/core/reserved_words.dart index 53077471f9..7cb12129e7 100644 --- a/packages/smithy/smithy_codegen/lib/src/core/reserved_words.dart +++ b/packages/smithy/smithy_codegen/lib/src/core/reserved_words.dart @@ -94,19 +94,9 @@ const hardReservedWords = { 'serializers', }; -const enumReservedWords = [ - 'name', - 'value', - 'index', - 'values', -]; +const enumReservedWords = ['name', 'value', 'index', 'values']; -const unionReservedWords = [ - 'name', - 'value', - 'sdkUnknown', - 'unknown', -]; +const unionReservedWords = ['name', 'value', 'sdkUnknown', 'unknown']; // Reserved due to `built_value` const structReservedWords = [ diff --git a/packages/smithy/smithy_codegen/lib/src/format/format_io.dart b/packages/smithy/smithy_codegen/lib/src/format/format_io.dart index a68f20d3df..a1d6012216 100644 --- a/packages/smithy/smithy_codegen/lib/src/format/format_io.dart +++ b/packages/smithy/smithy_codegen/lib/src/format/format_io.dart @@ -7,6 +7,8 @@ import 'package:dart_style/dart_style.dart'; /// /// This is a no-op on Web since `dart_style` (`analyzer`) is not supported. String format(String source) { - final formatter = DartFormatter(fixes: StyleFix.all); + final formatter = DartFormatter( + languageVersion: DartFormatter.latestLanguageVersion, + ); return formatter.format(source); } diff --git a/packages/smithy/smithy_codegen/lib/src/generate.dart b/packages/smithy/smithy_codegen/lib/src/generate.dart index b46053be19..f05be01915 100644 --- a/packages/smithy/smithy_codegen/lib/src/generate.dart +++ b/packages/smithy/smithy_codegen/lib/src/generate.dart @@ -11,7 +11,7 @@ const List _ignoredRules = [ 'avoid_unused_constructor_parameters', 'deprecated_member_use_from_same_package', 'non_constant_identifier_names', - 'require_trailing_commas', + 'unnecessary_library_name', ]; /// Header which prefixes all generated files. @@ -22,10 +22,10 @@ final String header = ''' /// The default emitter for codegen operations. DartEmitter buildEmitter(Allocator allocator) => DartEmitter( - allocator: allocator, - orderDirectives: true, - useNullSafetySyntax: true, - ); + allocator: allocator, + orderDirectives: true, + useNullSafetySyntax: true, +); /// Builds a service closure for a [ServiceShape]. CodegenContext buildContext( @@ -65,10 +65,7 @@ CodegenContext buildContext( } class GeneratedOutput { - const GeneratedOutput({ - required this.context, - required this.libraries, - }); + const GeneratedOutput({required this.context, required this.libraries}); /// The contexts used to generate [libraries]. final CodegenContext context; @@ -90,9 +87,7 @@ Map generateForAst( bool generateServer = false, Map? shapeOverrides, }) { - const transformers = >[ - _CognitoWorkaroundVisitor(), - ]; + const transformers = >[_CognitoWorkaroundVisitor()]; for (final transformer in transformers) { ast = ast.rebuild((ast) { ast.shapes!.updateAll((_, shape) => shape.accept(transformer)); diff --git a/packages/smithy/smithy_codegen/lib/src/generator/allocator.dart b/packages/smithy/smithy_codegen/lib/src/generator/allocator.dart index 38e5868710..07037cebe1 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/allocator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/allocator.dart @@ -109,11 +109,12 @@ class SmithyAllocator implements Allocator { int _nextKey() => _keys++; @override - Iterable get imports => - _imports.keys.where((key) => key != 'dart:core').map( - (u) => Directive.import( - u, - as: shouldPrefix(u) ? '_i${_imports[u]}' : null, - ), - ); + Iterable get imports => _imports.keys + .where((key) => key != 'dart:core') + .map( + (u) => Directive.import( + u, + as: shouldPrefix(u) ? '_i${_imports[u]}' : null, + ), + ); } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/context.dart b/packages/smithy/smithy_codegen/lib/src/generator/context.dart index b1dec4c51b..bf9ce06267 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/context.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/context.dart @@ -30,17 +30,18 @@ class CodegenContext { Iterable additionalShapes = const {}, this.generateServer = false, Map? shapeOverrides, - }) : _shapes = shapes, - _serviceName = serviceName, - serviceShapeId = serviceShapeId ?? - shapes.entries.singleWhereOrNull((entry) { - return entry.value is ServiceShape; - })?.key, - _additionalShapes = additionalShapes.toSet(), - shapeOverrides = { - Shape.unit: ShapeOverrides(DartTypes.smithy.unit), - ...?shapeOverrides, - } { + }) : _shapes = shapes, + _serviceName = serviceName, + serviceShapeId = + serviceShapeId ?? + shapes.entries.singleWhereOrNull((entry) { + return entry.value is ServiceShape; + })?.key, + _additionalShapes = additionalShapes.toSet(), + shapeOverrides = { + Shape.unit: ShapeOverrides(DartTypes.smithy.unit), + ...?shapeOverrides, + } { if (serviceShapeId == null && serviceName == null) { throw ArgumentError( 'Either serviceShapeId or serviceName must be provided.', @@ -137,8 +138,10 @@ class CodegenContext { /// Returns the symbol or [Reference] for [shapeId]. Reference symbolFor(ShapeId shapeId, [Shape? parent]) { final shape = shapeFor(shapeId); - return _symbolCache[(shapeId, parent)] ??= - shape.accept(SymbolVisitor(this), parent); + return _symbolCache[(shapeId, parent)] ??= shape.accept( + SymbolVisitor(this), + parent, + ); } /// The service's serializers library. @@ -160,12 +163,16 @@ class CodegenContext { ); /// The service's serializers reference. - late final Reference serializersRef = - Reference('serializers', serviceSerializersLibrary.libraryUrl); + late final Reference serializersRef = Reference( + 'serializers', + serviceSerializersLibrary.libraryUrl, + ); /// The service's builder factories reference. - late final Reference builderFactoriesRef = - Reference('builderFactories', serviceSerializersLibrary.libraryUrl); + late final Reference builderFactoriesRef = Reference( + 'builderFactories', + serviceSerializersLibrary.libraryUrl, + ); /// The service's client library. late final SmithyLibrary serviceClientLibrary = SmithyLibraryX.create( diff --git a/packages/smithy/smithy_codegen/lib/src/generator/endpoint_resolver_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/endpoint_resolver_generator.dart index be269eee2e..2319573435 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/endpoint_resolver_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/endpoint_resolver_generator.dart @@ -24,49 +24,47 @@ class EndpointResolverGenerator extends ShapeGenerator { } return Library( - (b) => b - ..name = context.endpointResolverLibrary.libraryName - ..body.addAll(_fields), + (b) => + b + ..name = context.endpointResolverLibrary.libraryName + ..body.addAll(_fields), ); } - Expression _buildEndpointDefinition(EndpointDefinition definition) => - DartTypes.smithyAws.endpointDefinition.constInstance([], { - if (definition.hostname != null) - 'hostname': literal(definition.hostname), - if (definition.protocols.isNotEmpty) - 'protocols': literalList(definition.protocols.map(literalString)), - if (definition.signatureVersions.isNotEmpty) - 'signatureVersions': literalList( - definition.signatureVersions.map( - (version) => DartTypes.smithyAws.awsSignatureVersion - .property(version.name), - ), - ), - if (definition.credentialScope != null) - 'credentialScope': - DartTypes.smithyAws.credentialScope.constInstance([], { - if (definition.credentialScope?.region != null) - 'region': literal(definition.credentialScope?.region), - if (definition.credentialScope?.service != null) - 'service': literal(definition.credentialScope?.service), - }), - 'variants': literalConstList([ - for (final variant in definition.variants) - _buildEndpointDefinitionVariant(variant), - ]), - }); + Expression _buildEndpointDefinition( + EndpointDefinition definition, + ) => DartTypes.smithyAws.endpointDefinition.constInstance([], { + if (definition.hostname != null) 'hostname': literal(definition.hostname), + if (definition.protocols.isNotEmpty) + 'protocols': literalList(definition.protocols.map(literalString)), + if (definition.signatureVersions.isNotEmpty) + 'signatureVersions': literalList( + definition.signatureVersions.map( + (version) => + DartTypes.smithyAws.awsSignatureVersion.property(version.name), + ), + ), + if (definition.credentialScope != null) + 'credentialScope': DartTypes.smithyAws.credentialScope.constInstance([], { + if (definition.credentialScope?.region != null) + 'region': literal(definition.credentialScope?.region), + if (definition.credentialScope?.service != null) + 'service': literal(definition.credentialScope?.service), + }), + 'variants': literalConstList([ + for (final variant in definition.variants) + _buildEndpointDefinitionVariant(variant), + ]), + }); Expression _buildEndpointDefinitionVariant( EndpointDefinitionVariant variant, - ) => - DartTypes.smithyAws.endpointDefinitionVariant.constInstance([], { - if (variant.dnsSuffix != null) - 'dnsSuffix': literalString(variant.dnsSuffix!), - if (variant.hostname != null) - 'hostname': literalString(variant.hostname!), - 'tags': literalConstList(variant.tags.map(literalString).toList()), - }); + ) => DartTypes.smithyAws.endpointDefinitionVariant.constInstance([], { + if (variant.dnsSuffix != null) + 'dnsSuffix': literalString(variant.dnsSuffix!), + if (variant.hostname != null) 'hostname': literalString(variant.hostname!), + 'tags': literalConstList(variant.tags.map(literalString).toList()), + }); Expression _buildPartition(Partition partition) { return DartTypes.smithyAws.partition.newInstance([], { @@ -74,9 +72,10 @@ class EndpointResolverGenerator extends ShapeGenerator { 'regionRegex': DartTypes.core.regExp.newInstance([ literalString(partition.regionRegex.pattern, raw: true), ]), - 'partitionEndpoint': partition.partitionEndpoint == null - ? literalNull - : literalString(partition.partitionEndpoint!), + 'partitionEndpoint': + partition.partitionEndpoint == null + ? literalNull + : literalString(partition.partitionEndpoint!), 'isRegionalized': literalBool(partition.isRegionalized), 'defaults': _buildEndpointDefinition(partition.defaults), 'regions': literalConstSet({ @@ -93,38 +92,43 @@ class EndpointResolverGenerator extends ShapeGenerator { /// The `partitions` field which aggregates all the partitions for the service. final sortedPartitions = [...awsPartitions.keys]..sort(); yield Field( - (f) => f - ..modifier = FieldModifier.final$ - ..name = '_partitions' - ..assignment = literalList([ - for (final partitionName in sortedPartitions) - _buildPartition( - awsPartitions[partitionName]! - .toPartition(resolvedService.endpointPrefix), - ), - ]).code, + (f) => + f + ..modifier = FieldModifier.final$ + ..name = '_partitions' + ..assignment = + literalList([ + for (final partitionName in sortedPartitions) + _buildPartition( + awsPartitions[partitionName]!.toPartition( + resolvedService.endpointPrefix, + ), + ), + ]).code, ); // The `endpointResolver` final endpointResolver = DartTypes.smithyAws.awsEndpointResolver .newInstance([refer('_partitions')]); yield Field( - (f) => f - ..annotations.add(DartTypes.meta.internal) - ..modifier = FieldModifier.final$ - ..type = DartTypes.smithyAws.awsEndpointResolver - ..name = 'endpointResolver' - ..assignment = endpointResolver.code, + (f) => + f + ..annotations.add(DartTypes.meta.internal) + ..modifier = FieldModifier.final$ + ..type = DartTypes.smithyAws.awsEndpointResolver + ..name = 'endpointResolver' + ..assignment = endpointResolver.code, ); // The `sdkId` field. yield Field( - (f) => f - ..annotations.add(DartTypes.meta.internal) - ..modifier = FieldModifier.constant - ..type = DartTypes.core.string - ..name = 'sdkId' - ..assignment = literalString(resolvedService.sdkId).code, + (f) => + f + ..annotations.add(DartTypes.meta.internal) + ..modifier = FieldModifier.constant + ..type = DartTypes.core.string + ..name = 'sdkId' + ..assignment = literalString(resolvedService.sdkId).code, ); } } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/enum_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/enum_generator.dart index e53dbb841b..d13d8556df 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/enum_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/enum_generator.dart @@ -13,60 +13,49 @@ import 'package:smithy_codegen/src/util/shape_ext.dart'; /// Generates enums for [StringShape] types. class EnumGenerator extends LibraryGenerator { - EnumGenerator( - super.enumShape, - CodegenContext context, { - super.smithyLibrary, - }) : super( - context: context, - ); + EnumGenerator(super.enumShape, CodegenContext context, {super.smithyLibrary}) + : super(context: context); - late final List sortedDefinitions = shape.enumValues.toList() - ..sort((a, b) { - return a.enumVariantName.compareTo(b.enumVariantName); - }); + late final List sortedDefinitions = + shape.enumValues.toList()..sort((a, b) { + return a.enumVariantName.compareTo(b.enumVariantName); + }); - late final List sortedEnumValues = sortedDefinitions - .map((def) => def.expectTrait()) - .toList(); + late final List sortedEnumValues = + sortedDefinitions + .map((def) => def.expectTrait()) + .toList(); - Reference get valueType => shape.getType() == ShapeType.intEnum - ? DartTypes.core.int - : DartTypes.core.string; + Reference get valueType => + shape.getType() == ShapeType.intEnum + ? DartTypes.core.int + : DartTypes.core.string; @override Library generate() { // Tracks the generated type. context.generatedTypes[symbol] ??= {}; - builder.body.addAll([ - _classDefinition, - _helperExtension, - ]); + builder.body.addAll([_classDefinition, _helperExtension]); return builder.build(); } /// The `SmithyEnum` class definition. Class get _classDefinition => Class( - (c) => c + (c) => + c ..name = className ..docs.addAll([ if (shape.hasDocs(context)) shape.formattedDocs(context), ]) - ..extend = shape is StringEnumShape - ? DartTypes.smithy.smithyEnum(symbol) - : DartTypes.smithy.smithyIntEnum(symbol) - ..constructors.addAll([ - _privateConstructor, - _sdkUnknownConstructor, - ]) - ..fields.addAll([ - ..._variantFields, - _valuesField, - _serializersField, - ]), - ); + ..extend = + shape is StringEnumShape + ? DartTypes.smithy.smithyEnum(symbol) + : DartTypes.smithy.smithyIntEnum(symbol) + ..constructors.addAll([_privateConstructor, _sdkUnknownConstructor]) + ..fields.addAll([..._variantFields, _valuesField, _serializersField]), + ); /// The private constructor which is used internally. /// @@ -75,27 +64,31 @@ class EnumGenerator extends LibraryGenerator { /// : super(index, name, value); /// ``` Constructor get _privateConstructor => Constructor( - (c) => c + (c) => + c ..constant = true ..name = '_' ..requiredParameters.addAll([ Parameter( - (p) => p - ..toSuper = true - ..name = 'index', + (p) => + p + ..toSuper = true + ..name = 'index', ), Parameter( - (p) => p - ..toSuper = true - ..name = 'name', + (p) => + p + ..toSuper = true + ..name = 'name', ), Parameter( - (p) => p - ..toSuper = true - ..name = 'value', + (p) => + p + ..toSuper = true + ..name = 'value', ), ]), - ); + ); /// The `sdkUnknown` constructor for values which do not match the /// enumerated ones. @@ -104,20 +97,22 @@ class EnumGenerator extends LibraryGenerator { /// const MyEnum._sdkUnknown(String value) : super.sdkUnknown(value); /// ``` Constructor get _sdkUnknownConstructor => Constructor( - (c) => c + (c) => + c ..constant = true ..name = '_sdkUnknown' ..requiredParameters.add( Parameter( - (p) => p - ..toSuper = true - ..name = 'value', + (p) => + p + ..toSuper = true + ..name = 'value', ), ) ..initializers.add( refer('super').property('sdkUnknown').call([]).code, ), - ); + ); /// Enumerated value fields, as `static const` properties. Iterable get _variantFields => @@ -132,124 +127,153 @@ class EnumGenerator extends LibraryGenerator { ..static = true ..modifier = FieldModifier.constant ..name = definition.enumVariantName - ..assignment = symbol.newInstanceNamed('_', [ - literalNum(index), - literalString(definition.memberName), - literal(enumValue.value), - ]).code; + ..assignment = + symbol.newInstanceNamed('_', [ + literalNum(index), + literalString(definition.memberName), + literal(enumValue.value), + ]).code; }); }); /// The static `values` field with all enum values. Field get _valuesField => Field( - (f) => f + (f) => + f ..static = true ..modifier = FieldModifier.constant ..name = 'values' ..docs.add('/// All values of [$className].') - ..assignment = literalList( - sortedDefinitions.map((e) => symbol.property(e.enumVariantName)), - symbol, - ).code, - ); + ..assignment = + literalList( + sortedDefinitions.map( + (e) => symbol.property(e.enumVariantName), + ), + symbol, + ).code, + ); /// The list of serializers for this enum. Field get _serializersField { - final serializerType = shape is StringEnumShape - ? DartTypes.smithy.smithyEnumSerializer - : DartTypes.smithy.smithyIntEnumSerializer; + final serializerType = + shape is StringEnumShape + ? DartTypes.smithy.smithyEnumSerializer + : DartTypes.smithy.smithyIntEnumSerializer; return Field( - (f) => f - ..static = true - ..modifier = FieldModifier.constant - ..type = DartTypes.core.list(DartTypes.smithy.smithySerializer(symbol)) - ..name = 'serializers' - ..assignment = literalConstList([ - serializerType.constInstance([ - literalString(shape.shapeId.shape), - ], { - 'values': refer('values'), - 'sdkUnknown': symbol.property('_sdkUnknown'), - 'supportedProtocols': literalConstList([ - for (final protocol in context.serviceProtocols) - if (!protocol.isSynthetic) protocol.shapeId.constructed, - ]), - }), - ]).code, + (f) => + f + ..static = true + ..modifier = FieldModifier.constant + ..type = DartTypes.core.list( + DartTypes.smithy.smithySerializer(symbol), + ) + ..name = 'serializers' + ..assignment = + literalConstList([ + serializerType.constInstance( + [literalString(shape.shapeId.shape)], + { + 'values': refer('values'), + 'sdkUnknown': symbol.property('_sdkUnknown'), + 'supportedProtocols': literalConstList([ + for (final protocol in context.serviceProtocols) + if (!protocol.isSynthetic) + protocol.shapeId.constructed, + ]), + }, + ), + ]).code, ); } /// Adds helper functions `byName` and `byValue` via an extension. Extension get _helperExtension => Extension( - (e) => e + (e) => + e ..name = '${className}Helpers' ..on = DartTypes.core.list(symbol) ..methods.addAll([ // The `byName` method Method( - (m) => m - ..returns = symbol - ..name = 'byName' - ..docs.addAll([ - '/// Returns the value of [$className] whose name matches [name].', - '/// ', - '/// Throws a `StateError` if no matching value is found.', - ]) - ..requiredParameters.add( - Parameter( - (p) => p - ..type = DartTypes.core.string - ..name = 'name', - ), - ) - ..lambda = true - ..body = refer('firstWhere').call([ - Method( - (c) => c - ..lambda = true - ..requiredParameters.add(Parameter((p) => p..name = 'el')) - ..body = refer('el') - .property('name') - .property('toLowerCase') - .call([]) - .equalTo( - refer('name').property('toLowerCase').call([]), - ) - .code, - ).closure, - ]).code, + (m) => + m + ..returns = symbol + ..name = 'byName' + ..docs.addAll([ + '/// Returns the value of [$className] whose name matches [name].', + '/// ', + '/// Throws a `StateError` if no matching value is found.', + ]) + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = DartTypes.core.string + ..name = 'name', + ), + ) + ..lambda = true + ..body = + refer('firstWhere').call([ + Method( + (c) => + c + ..lambda = true + ..requiredParameters.add( + Parameter((p) => p..name = 'el'), + ) + ..body = + refer('el') + .property('name') + .property('toLowerCase') + .call([]) + .equalTo( + refer( + 'name', + ).property('toLowerCase').call([]), + ) + .code, + ).closure, + ]).code, ), // The `byValue` method Method( - (m) => m - ..returns = symbol - ..name = 'byValue' - ..docs.addAll([ - '/// Returns the value of [$className] whose value matches [value].', - ]) - ..requiredParameters.add( - Parameter( - (p) => p - ..type = valueType - ..name = 'value', - ), - ) - ..lambda = true - ..body = refer('firstWhere').call([ - Method( - (c) => c - ..lambda = true - ..requiredParameters.add(Parameter((p) => p..name = 'el')) - ..body = refer('el') - .property('value') - .equalTo(refer('value')) - .code, - ).closure, - ]).code, + (m) => + m + ..returns = symbol + ..name = 'byValue' + ..docs.addAll([ + '/// Returns the value of [$className] whose value matches [value].', + ]) + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = valueType + ..name = 'value', + ), + ) + ..lambda = true + ..body = + refer('firstWhere').call([ + Method( + (c) => + c + ..lambda = true + ..requiredParameters.add( + Parameter((p) => p..name = 'el'), + ) + ..body = + refer('el') + .property('value') + .equalTo(refer('value')) + .code, + ).closure, + ]).code, ), ]), - ); + ); } extension EnumVariantName on MemberShape { diff --git a/packages/smithy/smithy_codegen/lib/src/generator/generated_library.dart b/packages/smithy/smithy_codegen/lib/src/generator/generated_library.dart index 1c2cc0a3e0..9e3c85ba6b 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/generated_library.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/generated_library.dart @@ -7,11 +7,7 @@ import 'package:smithy_codegen/smithy_codegen.dart'; import 'package:smithy_codegen/src/generator/allocator.dart'; class GeneratedLibrary with AWSEquatable { - GeneratedLibrary( - this.smithyLibrary, - this.library, { - this.libraryDocs, - }); + GeneratedLibrary(this.smithyLibrary, this.library, {this.libraryDocs}); final SmithyLibrary smithyLibrary; final Library library; @@ -29,11 +25,12 @@ class GeneratedLibrary with AWSEquatable { smithyLibrary, withPrefixing: withPrefixingStrategy, ); - final output = StringBuffer() - ..write(header) - ..writeln() - ..write(libraryDocs ?? '') - ..write(format('${library.accept(buildEmitter(allocator))}')); + final output = + StringBuffer() + ..write(header) + ..writeln() + ..write(libraryDocs ?? '') + ..write(format('${library.accept(buildEmitter(allocator))}')); dependencies.addAll(allocator.dependencies); return output.toString(); } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/generation_context.dart b/packages/smithy/smithy_codegen/lib/src/generator/generation_context.dart index 320e947956..14a778c113 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/generation_context.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/generation_context.dart @@ -33,10 +33,11 @@ mixin NamedMembersGenerationContext mixin UnionGenerationContext on ShapeGenerator implements NamedMembersGenerationContext { late final MemberShape unknownMember = MemberShape( - (s) => s - ..memberName = sdkUnknown - ..shapeId = shape.shapeId.replace(member: sdkUnknown) - ..target = const ShapeId.core('Document'), + (s) => + s + ..memberName = sdkUnknown + ..shapeId = shape.shapeId.replace(member: sdkUnknown) + ..target = const ShapeId.core('Document'), ); late final Reference unknownMemberSymbol = DartTypes.core.object.unboxed; @@ -77,23 +78,29 @@ mixin StructureGenerationContext on ShapeGenerator }(); /// The symbol for the built class, to be generated by `built_value`. - late final Reference builtSymbol = - symbol.typeRef.rebuild((t) => t.symbol = '_\$$className'); + late final Reference builtSymbol = symbol.typeRef.rebuild( + (t) => t.symbol = '_\$$className', + ); /// The symbol for the builder class, to be generated by `built_value`. - late final Reference builderSymbol = - symbol.typeRef.rebuild((t) => t.symbol = '${className}Builder'); + late final Reference builderSymbol = symbol.typeRef.rebuild( + (t) => t.symbol = '${className}Builder', + ); /// The symbol for the built payload class, to be generated by `built_value`. - late final Reference? builtPayloadSymbol = hasBuiltPayload - ? symbol.typeRef.rebuild((t) => t.symbol = '_\$$payloadClassName') - : null; + late final Reference? builtPayloadSymbol = + hasBuiltPayload + ? symbol.typeRef.rebuild((t) => t.symbol = '_\$$payloadClassName') + : null; /// The symbol for the payload's builder class, to be generated by /// `built_value`. - late final Reference payloadBuilderSymbol = hasBuiltPayload - ? symbol.typeRef.rebuild((t) => t.symbol = '${payloadClassName}Builder') - : builderSymbol; + late final Reference payloadBuilderSymbol = + hasBuiltPayload + ? symbol.typeRef.rebuild( + (t) => t.symbol = '${payloadClassName}Builder', + ) + : builderSymbol; /// The name of the payload's class. late final String? payloadClassName = @@ -143,20 +150,18 @@ mixin OperationGenerationContext on ShapeGenerator { late final Reference outputSymbol = shape.outputSymbol(context); late final HttpPayload outputPayload = outputShape.httpPayload; - late final List errorSymbols = [ - ...?context.service?.errors, - ...shape.errors, - ].whereType().map((error) { - final shape = context.shapeFor(error.target) as StructureShape; - return shape.httpErrorTraits(shape.httpPayload.symbol)!; - }).toList(); + late final List errorSymbols = + [...?context.service?.errors, ...shape.errors].whereType().map(( + error, + ) { + final shape = context.shapeFor(error.target) as StructureShape; + return shape.httpErrorTraits(shape.httpPayload.symbol)!; + }).toList(); late final HttpTrait? httpTrait = shape.httpTrait(context); - late final HttpInputTraits httpInputTraits = inputShape.httpInputTraits( - overrideTrait: true, - )!; - late final HttpOutputTraits httpOutputTraits = outputShape.httpOutputTraits( - overrideTrait: true, - )!; + late final HttpInputTraits httpInputTraits = + inputShape.httpInputTraits(overrideTrait: true)!; + late final HttpOutputTraits httpOutputTraits = + outputShape.httpOutputTraits(overrideTrait: true)!; late final PaginatedTraits? paginatedTraits = shape.paginatedTraits(context); } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/generator.dart index 909f75ab53..14c8840b7a 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/generator.dart @@ -95,17 +95,26 @@ abstract class ShapeGenerator implements Generator { // percent-encoding, 1985-04-12T23%3A20%3A50.52Z). The timestampFormat // trait MAY be used to use a custom serialization format. case ShapeType.timestamp: - final format = shape.timestampFormat ?? + final format = + shape.timestampFormat ?? targetShape.timestampFormat ?? (isHeader ? TimestampFormat.httpDate : TimestampFormat.dateTime); - return DartTypes.smithy.timestamp.property('parse').call([ - if (format == TimestampFormat.epochSeconds) - DartTypes.core.int.property('parse').call([ref]) - else - ref, - ], { - 'format': DartTypes.smithy.timestampFormat.property(format.name), - }).property('asDateTime'); + return DartTypes.smithy.timestamp + .property('parse') + .call( + [ + if (format == TimestampFormat.epochSeconds) + DartTypes.core.int.property('parse').call([ref]) + else + ref, + ], + { + 'format': DartTypes.smithy.timestampFormat.property( + format.name, + ), + }, + ) + .property('asDateTime'); // When a list shape is targeted, each member of the shape is // serialized as a separate HTTP header either by concatenating the @@ -116,23 +125,26 @@ abstract class ShapeGenerator implements Generator { final memberShape = (targetShape as CollectionShape).member; final memberTarget = context.shapeFor(memberShape.target); return DartTypes.smithy.parseHeader - .call([ - ref, - ], { - if (memberTarget is TimestampShape) - 'isTimestampList': literalTrue, - }) + .call( + [ref], + { + if (memberTarget is TimestampShape) + 'isTimestampList': literalTrue, + }, + ) .property('map') .call([ Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'el')) - ..lambda = true - ..body = valueFromString( - refer('el').property('trim').call([]), - memberShape, - isHeader: true, - ).code, + (m) => + m + ..requiredParameters.add(Parameter((p) => p..name = 'el')) + ..lambda = true + ..body = + valueFromString( + refer('el').property('trim').call([]), + memberShape, + isHeader: true, + ).code, ).closure, ]); default: @@ -190,15 +202,14 @@ abstract class ShapeGenerator implements Generator { // 1985-04-12T23%3A20%3A50.52Z). The timestampFormat trait MAY be used // to use a custom serialization format. case ShapeType.timestamp: - final format = shape.timestampFormat ?? + final format = + shape.timestampFormat ?? targetShape.timestampFormat ?? (isHeader ? TimestampFormat.httpDate : TimestampFormat.dateTime); return DartTypes.smithy.timestamp .newInstance([ref]) .property('format') - .call([ - DartTypes.smithy.timestampFormat.property(format.name), - ]) + .call([DartTypes.smithy.timestampFormat.property(format.name)]) .property('toString') // Since we can get a num or String back. .call([]); @@ -212,28 +223,37 @@ abstract class ShapeGenerator implements Generator { memberShape, isHeader: true, ); - var mappedRef = identical(memberEl, memberToString) - ? ref - : ref.property('map').call([ - Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'el')) - ..lambda = true - ..body = memberToString.code, - ).closure, - ]); + var mappedRef = + identical(memberEl, memberToString) + ? ref + : ref.property('map').call([ + Method( + (m) => + m + ..requiredParameters.add( + Parameter((p) => p..name = 'el'), + ) + ..lambda = true + ..body = memberToString.code, + ).closure, + ]); if (isHeader) { mappedRef = mappedRef.property('map').call([ Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'el')) - ..lambda = true - ..body = DartTypes.smithy.sanitizeHeader.call([ - refer('el'), - ], { - if (memberTarget is TimestampShape) - 'isTimestampList': literalTrue, - }).code, + (m) => + m + ..requiredParameters.add(Parameter((p) => p..name = 'el')) + ..lambda = true + ..body = + DartTypes.smithy.sanitizeHeader + .call( + [refer('el')], + { + if (memberTarget is TimestampShape) + 'isTimestampList': literalTrue, + }, + ) + .code, ).closure, ]); } @@ -256,9 +276,10 @@ abstract class LibraryGenerator T shape, { required CodegenContext context, SmithyLibrary? smithyLibrary, - }) : builder = LibraryBuilder() - ..name = smithyLibrary?.libraryName ?? shape.libraryName(context), - super(shape, context); + }) : builder = + LibraryBuilder() + ..name = smithyLibrary?.libraryName ?? shape.libraryName(context), + super(shape, context); final LibraryBuilder builder; } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/operation_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/operation_generator.dart index 5045e3cf05..b8496bb87e 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/operation_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/operation_generator.dart @@ -14,11 +14,8 @@ import 'package:smithy_codegen/src/util/symbol_ext.dart'; class OperationGenerator extends LibraryGenerator with OperationGenerationContext { - OperationGenerator( - super.shape, - CodegenContext context, { - super.smithyLibrary, - }) : super(context: context); + OperationGenerator(super.shape, CodegenContext context, {super.smithyLibrary}) + : super(context: context); @override String get className => shape.dartName(context); @@ -33,29 +30,31 @@ class OperationGenerator extends LibraryGenerator /// The operation's implementation class. Class get _operationClass => Class( - (c) => c + (c) => + c ..docs.addAll([ if (shape.hasDocs(context)) shape.formattedDocs(context), ]) ..name = className - ..extend = paginatedTraits == null - ? DartTypes.smithy.httpOperation( - inputPayload.symbol.unboxed, - inputSymbol, - outputPayload.symbol.unboxed, - outputSymbol, - ) - : DartTypes.smithy.paginatedHttpOperation( - inputPayload.symbol.unboxed, - inputSymbol, - outputPayload.symbol.unboxed, - outputSymbol, - paginatedTraits!.inputToken?.symbol.unboxed ?? - DartTypes.core.void$, - paginatedTraits!.pageSize?.symbol.unboxed ?? - DartTypes.core.void$, - paginatedTraits!.items?.symbol.unboxed ?? outputSymbol, - ) + ..extend = + paginatedTraits == null + ? DartTypes.smithy.httpOperation( + inputPayload.symbol.unboxed, + inputSymbol, + outputPayload.symbol.unboxed, + outputSymbol, + ) + : DartTypes.smithy.paginatedHttpOperation( + inputPayload.symbol.unboxed, + inputSymbol, + outputPayload.symbol.unboxed, + outputSymbol, + paginatedTraits!.inputToken?.symbol.unboxed ?? + DartTypes.core.void$, + paginatedTraits!.pageSize?.symbol.unboxed ?? + DartTypes.core.void$, + paginatedTraits!.items?.symbol.unboxed ?? outputSymbol, + ) ..constructors.add(_constructor) ..fields.addAll([ _protocolsGetter, @@ -66,21 +65,25 @@ class OperationGenerator extends LibraryGenerator ..._httpOverrides.whereType(), ..._paginatedMethods, ]), - ); + ); Constructor get _constructor => Constructor( - (ctor) => ctor + (ctor) => + ctor ..docs.addAll([ if (shape.hasDocs(context)) shape.formattedDocs(context), ]) ..optionalParameters.addAll(shape.constructorParameters(context)) ..initializers.addAll( - shape.constructorParameters(context).where((p) => !p.toThis).map( + shape + .constructorParameters(context) + .where((p) => !p.toThis) + .map( (field) => refer('_${field.name}').assign(refer(field.name)).code, ), ), - ); + ); /// The statements of the HTTP request builder. Iterable get _httpRequestBuilder sync* { @@ -100,7 +103,9 @@ class OperationGenerator extends LibraryGenerator yield builder .property('path') .assign( - refer('_s3ClientConfig').property('usePathStyle').conditional( + refer('_s3ClientConfig') + .property('usePathStyle') + .conditional( // `raw` because some AWS paths use the '$' char. literalString(uri, raw: true), @@ -116,7 +121,6 @@ class OperationGenerator extends LibraryGenerator } else { yield builder .property('path') - // `raw` because some AWS paths use the '$' char. .assign(literalString(uri, raw: true)) .statement; @@ -127,7 +131,9 @@ class OperationGenerator extends LibraryGenerator yield builder .property('hostPrefix') .assign( - refer('_s3ClientConfig').property('usePathStyle').conditional( + refer('_s3ClientConfig') + .property('usePathStyle') + .conditional( literal(hostPrefix), literalString('{Bucket}.${hostPrefix ?? ''}'), ), @@ -190,15 +196,19 @@ class OperationGenerator extends LibraryGenerator ]), ]).statement; } else { - yield builder.property('requestInterceptors').property('add').call([ - DartTypes.smithyAws.withChecksum.newInstance([ - (memberIsNullable ? inputProperty.nullChecked : inputProperty) - .property('value'), - ]), - ]).wrapWithBlockIf( - inputProperty.notEqualTo(literalNull), - memberIsNullable, - ); + yield builder + .property('requestInterceptors') + .property('add') + .call([ + DartTypes.smithyAws.withChecksum.newInstance([ + (memberIsNullable ? inputProperty.nullChecked : inputProperty) + .property('value'), + ]), + ]) + .wrapWithBlockIf( + inputProperty.notEqualTo(literalNull), + memberIsNullable, + ); } } } @@ -227,22 +237,23 @@ class OperationGenerator extends LibraryGenerator // "Do not send null values, empty strings, or empty lists over the wire in headers" .wrapWithBlockIf( (isNullable ? valueRef.nullChecked : valueRef).property('isNotEmpty'), - const [ShapeType.list, ShapeType.set, ShapeType.string] - .contains(targetShape.getType()) && + const [ + ShapeType.list, + ShapeType.set, + ShapeType.string, + ].contains(targetShape.getType()) && !targetShape.hasTrait() && !targetShape.isEnum, ) - .wrapWithBlockIf( - valueRef.notEqualTo(literalNull), - isNullable, - ); + .wrapWithBlockIf(valueRef.notEqualTo(literalNull), isNullable); } /// Adds the prefixed headers to the request's headers map. Code _httpPrefixedHeaders(HttpPrefixHeaders headers) { final mapShape = context.shapeFor(headers.member.target) as MapShape; - final mapRef = - refer('input').property(headers.member.dartName(ShapeType.structure)); + final mapRef = refer( + 'input', + ).property(headers.member.dartName(ShapeType.structure)); final isNullableMap = headers.member.isNullable(context, inputShape); final valueTarget = context.shapeFor(mapShape.value.target); return Block.of([ @@ -275,8 +286,10 @@ class OperationGenerator extends LibraryGenerator final targetShape = value is MemberShape ? context.shapeFor(value.target) : value; if (targetShape is CollectionShape) { - final isNullableMember = - targetShape.member.isNullable(context, targetShape); + final isNullableMember = targetShape.member.isNullable( + context, + targetShape, + ); Expression memberRef = refer('value'); if (isNullableMember) { memberRef = memberRef.nullChecked; @@ -300,10 +313,11 @@ class OperationGenerator extends LibraryGenerator targetShape, isHeader: false, ); - final addParam = builder - .property('queryParameters') - .property('add') - .call([key, toStringExp]).statement; + final addParam = + builder.property('queryParameters').property('add').call([ + key, + toStringExp, + ]).statement; return addParam.wrapWithBlockIf( valueRef.notEqualTo(literalNull), isNullable, @@ -315,8 +329,9 @@ class OperationGenerator extends LibraryGenerator final targetShape = context.shapeFor(queryParameters.target) as MapShape; final valueShape = context.shapeFor(targetShape.value.target); final isNullable = queryParameters.isNullable(context, inputShape); - final mapRef = - refer('input').property(queryParameters.dartName(ShapeType.structure)); + final mapRef = refer( + 'input', + ).property(queryParameters.dartName(ShapeType.structure)); var entriesRef = mapRef; if (isNullable) { entriesRef = entriesRef.nullChecked; @@ -342,25 +357,28 @@ class OperationGenerator extends LibraryGenerator // The `buildRequest` method final request = DartTypes.smithy.httpRequest.newInstance([ Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'b')) - ..lambda = false - ..body = Block.of(_httpRequestBuilder), + (m) => + m + ..requiredParameters.add(Parameter((p) => p..name = 'b')) + ..lambda = false + ..body = Block.of(_httpRequestBuilder), ).closure, ]); yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.smithy.httpRequest - ..name = 'buildRequest' - ..requiredParameters.add( - Parameter( - (p) => p - ..name = 'input' - ..type = inputSymbol, - ), - ) - ..body = request.code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.smithy.httpRequest + ..name = 'buildRequest' + ..requiredParameters.add( + Parameter( + (p) => + p + ..name = 'input' + ..type = inputSymbol, + ), + ) + ..body = request.code, ); // The `successCode` method @@ -372,70 +390,79 @@ class OperationGenerator extends LibraryGenerator .ifNullThen(successCode); } yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.int - ..name = 'successCode' - ..lambda = true - ..optionalParameters.add( - Parameter( - (p) => p - ..name = 'output' - ..type = outputSymbol.boxed, - ), - ) - ..body = successCode.code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.int + ..name = 'successCode' + ..lambda = true + ..optionalParameters.add( + Parameter( + (p) => + p + ..name = 'output' + ..type = outputSymbol.boxed, + ), + ) + ..body = successCode.code, ); // The `buildOutput` method - final output = outputPayload.symbol == DartTypes.smithy.unit - ? refer('payload') - : outputSymbol.newInstanceNamed('fromResponse', [ - refer('payload'), - refer('response'), - ]); + final output = + outputPayload.symbol == DartTypes.smithy.unit + ? refer('payload') + : outputSymbol.newInstanceNamed('fromResponse', [ + refer('payload'), + refer('response'), + ]); yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = outputSymbol - ..name = 'buildOutput' - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..name = 'payload' - ..type = outputPayload.symbol, - ), - Parameter( - (p) => p - ..name = 'response' - ..type = DartTypes.awsCommon.awsBaseHttpResponse, - ), - ]) - ..body = output.code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = outputSymbol + ..name = 'buildOutput' + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..name = 'payload' + ..type = outputPayload.symbol, + ), + Parameter( + (p) => + p + ..name = 'response' + ..type = DartTypes.awsCommon.awsBaseHttpResponse, + ), + ]) + ..body = output.code, ); // The `errorTypes` getter yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.list(DartTypes.smithy.smithyError) - ..type = MethodType.getter - ..name = 'errorTypes' - ..lambda = true - ..body = literalConstList([ - for (final error in errorSymbols) error.constInstance, - ]).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.list(DartTypes.smithy.smithyError) + ..type = MethodType.getter + ..name = 'errorTypes' + ..lambda = true + ..body = + literalConstList([ + for (final error in errorSymbols) error.constInstance, + ]).code, ); // The `runtimeTypeName` getter yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..type = MethodType.getter - ..name = 'runtimeTypeName' - ..lambda = true - ..body = literalString(shape.shapeId.shape).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..type = MethodType.getter + ..name = 'runtimeTypeName' + ..lambda = true + ..body = literalString(shape.shapeId.shape).code, ); final resolvedService = context.service?.resolvedService; @@ -443,24 +470,26 @@ class OperationGenerator extends LibraryGenerator if (isAwsService) { // The standard AWS retryer yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.smithyAws.awsRetryer - ..name = 'retryer' - ..type = MethodType.getter - ..body = DartTypes.smithyAws.awsRetryer.newInstance([]).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.smithyAws.awsRetryer + ..name = 'retryer' + ..type = MethodType.getter + ..body = DartTypes.smithyAws.awsRetryer.newInstance([]).code, ); // S3 requires a special baseUri to consider customizations if (resolvedService.sdkId == 'S3') { yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.uri - ..name = 'baseUri' - ..type = MethodType.getter - ..body = Code.scope( - (allocate) => ''' + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.uri + ..name = 'baseUri' + ..type = MethodType.getter + ..body = Code.scope( + (allocate) => ''' var baseUri = _baseUri ?? endpoint.uri; if (_s3ClientConfig.useDualStack) { baseUri = baseUri.replace( @@ -475,18 +504,20 @@ class OperationGenerator extends LibraryGenerator ); } return baseUri;''', - ), + ), ); } else { yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.uri - ..name = 'baseUri' - ..type = MethodType.getter - ..body = refer('_baseUri') - .ifNullThen(refer('endpoint').property('uri')) - .code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.uri + ..name = 'baseUri' + ..type = MethodType.getter + ..body = + refer( + '_baseUri', + ).ifNullThen(refer('endpoint').property('uri')).code, ); } @@ -495,84 +526,106 @@ class OperationGenerator extends LibraryGenerator final endpointResolver = refer('endpointResolver', endpointResolverLib); final sdkId = refer('sdkId', endpointResolverLib); yield Field( - (m) => m - ..late = true - ..modifier = FieldModifier.final$ - ..type = DartTypes.smithyAws.awsEndpoint - ..name = '_awsEndpoint' - ..assignment = endpointResolver.property('resolve').call([ - sdkId, - refer('_region'), - ]).code, + (m) => + m + ..late = true + ..modifier = FieldModifier.final$ + ..type = DartTypes.smithyAws.awsEndpoint + ..name = '_awsEndpoint' + ..assignment = + endpointResolver.property('resolve').call([ + sdkId, + refer('_region'), + ]).code, ); yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.smithy.endpoint - ..name = 'endpoint' - ..type = MethodType.getter - ..body = refer('_awsEndpoint').property('endpoint').code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.smithy.endpoint + ..name = 'endpoint' + ..type = MethodType.getter + ..body = refer('_awsEndpoint').property('endpoint').code, ); // Override `run` to use zone values yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.smithy.smithyOperation(outputSymbol) - ..name = 'run' - ..requiredParameters.add( - Parameter( - (p) => p - ..type = inputSymbol - ..name = 'input', - ), - ) - ..optionalParameters.addAll([ - Parameter( - (p) => p - ..type = DartTypes.awsCommon.awsHttpClient.boxed - ..name = 'client' - ..named = true, - ), - Parameter( - (p) => p - ..type = DartTypes.smithy.shapeId.boxed - ..name = 'useProtocol' - ..named = true, - ), - ]) - ..body = DartTypes.async.runZoned - .call([ - Method( - (m) => m - ..body = refer('super').property('run').call([ - refer('input'), - ], { - 'client': refer('client'), - 'useProtocol': refer('useProtocol'), - }).code, - ).closure, - ], { - 'zoneValues': literalMap({ - literalNullSafeSpread(): refer('_awsEndpoint') - .property('credentialScope') - .nullSafeProperty('zoneValues'), - literalSpread(): literalMap({ - DartTypes.awsCommon.awsHeaders.property('sdkInvocationId'): - DartTypes.awsCommon.uuid(), - }), - }), - }) - .returned - .statement, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.smithy.smithyOperation(outputSymbol) + ..name = 'run' + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = inputSymbol + ..name = 'input', + ), + ) + ..optionalParameters.addAll([ + Parameter( + (p) => + p + ..type = DartTypes.awsCommon.awsHttpClient.boxed + ..name = 'client' + ..named = true, + ), + Parameter( + (p) => + p + ..type = DartTypes.smithy.shapeId.boxed + ..name = 'useProtocol' + ..named = true, + ), + ]) + ..body = + DartTypes.async.runZoned + .call( + [ + Method( + (m) => + m + ..body = + refer('super') + .property('run') + .call( + [refer('input')], + { + 'client': refer('client'), + 'useProtocol': refer( + 'useProtocol', + ), + }, + ) + .code, + ).closure, + ], + { + 'zoneValues': literalMap({ + literalNullSafeSpread(): refer('_awsEndpoint') + .property('credentialScope') + .nullSafeProperty('zoneValues'), + literalSpread(): literalMap({ + DartTypes.awsCommon.awsHeaders.property( + 'sdkInvocationId', + ): + DartTypes.awsCommon.uuid(), + }), + }), + }, + ) + .returned + .statement, ); } } /// The `protocols` override getter. Field get _protocolsGetter => Field( - (f) => f + (f) => + f ..annotations.add(DartTypes.core.override) ..late = true ..modifier = FieldModifier.final$ @@ -585,23 +638,24 @@ class OperationGenerator extends LibraryGenerator ), ) ..name = 'protocols' - ..assignment = literalList([ - for (final protocol in context.serviceProtocols) - protocol.instantiableProtocolSymbol.newInstance([], { - 'serializers': protocol.serializers(context), - 'builderFactories': context.builderFactoriesRef, - 'requestInterceptors': literalList( - protocol.requestInterceptors(shape, context), - DartTypes.smithy.httpRequestInterceptor, - ).operatorAdd(refer('_requestInterceptors')), - 'responseInterceptors': literalList( - protocol.responseInterceptors(shape, context), - DartTypes.smithy.httpResponseInterceptor, - ).operatorAdd(refer('_responseInterceptors')), - ...protocol.extraParameters(shape, context), - }), - ]).code, - ); + ..assignment = + literalList([ + for (final protocol in context.serviceProtocols) + protocol.instantiableProtocolSymbol.newInstance([], { + 'serializers': protocol.serializers(context), + 'builderFactories': context.builderFactoriesRef, + 'requestInterceptors': literalList( + protocol.requestInterceptors(shape, context), + DartTypes.smithy.httpRequestInterceptor, + ).operatorAdd(refer('_requestInterceptors')), + 'responseInterceptors': literalList( + protocol.responseInterceptors(shape, context), + DartTypes.smithy.httpResponseInterceptor, + ).operatorAdd(refer('_responseInterceptors')), + ...protocol.extraParameters(shape, context), + }), + ]).code, + ); Iterable get _paginatedMethods sync* { final paginatedTraits = this.paginatedTraits; @@ -614,20 +668,23 @@ class OperationGenerator extends LibraryGenerator // The `getToken` method. final outputToken = paginatedTraits.outputToken; yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = outputToken?.symbol.boxed ?? DartTypes.core.void$ - ..name = 'getToken' - ..requiredParameters.add( - Parameter( - (p) => p - ..type = outputSymbol - ..name = 'output', - ), - ) - ..lambda = outputToken != null - ..body = outputToken?.buildExpression.call(refer('output')).code ?? - emptyBody, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = outputToken?.symbol.boxed ?? DartTypes.core.void$ + ..name = 'getToken' + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = outputSymbol + ..name = 'output', + ), + ) + ..lambda = outputToken != null + ..body = + outputToken?.buildExpression.call(refer('output')).code ?? + emptyBody, ); // The `getItems` method. @@ -635,9 +692,10 @@ class OperationGenerator extends LibraryGenerator final items = paginatedTraits.items; if (items != null && items.isNullable) { final symbol = items.symbol.typeRef.rebuild( - (t) => t - ..isNullable = false - ..types.clear(), + (t) => + t + ..isNullable = false + ..types.clear(), ); defaultValue = symbol.newInstance([]); } @@ -647,19 +705,21 @@ class OperationGenerator extends LibraryGenerator itemsBody = itemsBody.ifNullThen(defaultValue); } yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = items?.symbol.unboxed ?? outputSymbol - ..name = 'getItems' - ..requiredParameters.add( - Parameter( - (p) => p - ..type = outputSymbol - ..name = 'output', - ), - ) - ..lambda = true - ..body = itemsBody.code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = items?.symbol.unboxed ?? outputSymbol + ..name = 'getItems' + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = outputSymbol + ..name = 'output', + ), + ) + ..lambda = true + ..body = itemsBody.code, ); // The `rebuildInput` method. @@ -683,47 +743,56 @@ class OperationGenerator extends LibraryGenerator } } yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = inputSymbol - ..name = 'rebuildInput' - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..type = inputSymbol - ..name = 'input', - ), - Parameter( - (p) => p - ..type = inputToken?.symbol.unboxed ?? DartTypes.core.void$ - ..name = 'token', - ), - Parameter( - (p) => p - ..type = pageSize?.symbol.boxed ?? DartTypes.core.void$ - ..name = 'pageSize', - ), - ]) - ..lambda = true - ..body = refer('input').property('rebuild').call([ - Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'b')) - ..body = Block.of([ - if (inputToken != null && outputToken != null) - inputTokenBuilder!.statement, - if (pageSize != null) - pageSize - .buildExpression(refer('b')) - .assign(refer('pageSize')) - .statement - .wrapWithBlockIf( - refer('pageSize').notEqualTo(literalNull), - pageSize.isNullable, - ), - ]), - ).closure, - ]).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = inputSymbol + ..name = 'rebuildInput' + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..type = inputSymbol + ..name = 'input', + ), + Parameter( + (p) => + p + ..type = + inputToken?.symbol.unboxed ?? DartTypes.core.void$ + ..name = 'token', + ), + Parameter( + (p) => + p + ..type = pageSize?.symbol.boxed ?? DartTypes.core.void$ + ..name = 'pageSize', + ), + ]) + ..lambda = true + ..body = + refer('input').property('rebuild').call([ + Method( + (m) => + m + ..requiredParameters.add( + Parameter((p) => p..name = 'b'), + ) + ..body = Block.of([ + if (inputToken != null && outputToken != null) + inputTokenBuilder!.statement, + if (pageSize != null) + pageSize + .buildExpression(refer('b')) + .assign(refer('pageSize')) + .statement + .wrapWithBlockIf( + refer('pageSize').notEqualTo(literalNull), + pageSize.isNullable, + ), + ]), + ).closure, + ]).code, ); } } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/operation_test_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/operation_test_generator.dart index 5e163ea703..196f4dd729 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/operation_test_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/operation_test_generator.dart @@ -24,9 +24,7 @@ class OperationTestGenerator extends LibraryGenerator super.shape, CodegenContext context, { super.smithyLibrary, - }) : super( - context: context, - ); + }) : super(context: context); /// Test cases which should be skipped right now and the reasons why. static const Map _skip = { @@ -87,13 +85,13 @@ class OperationTestGenerator extends LibraryGenerator .nullSafeProperty('region') .ifNullThen(literalString('us-east-1')) : literalString('us-east-1'), - 'credentialsProvider': - DartTypes.awsSigV4.awsCredentialsProvider.constInstance([ - DartTypes.awsSigV4.awsCredentials.constInstance([ - literalString('DUMMY-ACCESS-KEY-ID'), - literalString('DUMMY-SECRET-ACCESS-KEY'), - ]), - ]), + 'credentialsProvider': DartTypes.awsSigV4.awsCredentialsProvider + .constInstance([ + DartTypes.awsSigV4.awsCredentials.constInstance([ + literalString('DUMMY-ACCESS-KEY-ID'), + literalString('DUMMY-SECRET-ACCESS-KEY'), + ]), + ]), 'baseUri': DartTypes.core.uri.newInstanceNamed('parse', [ literalString('https://example.com'), ]), @@ -116,41 +114,44 @@ class OperationTestGenerator extends LibraryGenerator /// on the contents of the test case. final Set _skipOnWeb = {}; - late final httpRequestTestCases = shape - .getTrait() - ?.testCases - .where((t) => t.appliesTo != AppliesTo.server) ?? + late final httpRequestTestCases = + shape.getTrait()?.testCases.where( + (t) => t.appliesTo != AppliesTo.server, + ) ?? const []; - late final httpResponseTestCases = shape - .getTrait() - ?.testCases - .where((t) => t.appliesTo != AppliesTo.server) ?? + late final httpResponseTestCases = + shape.getTrait()?.testCases.where( + (t) => t.appliesTo != AppliesTo.server, + ) ?? const []; - late final errorShapes = shape.errors - .map((err) => context.shapeFor(err.target)) - .cast() - .toList(); + late final errorShapes = + shape.errors + .map((err) => context.shapeFor(err.target)) + .cast() + .toList(); late final httpErrorResponseTestCases = { for (final shape in errorShapes) - shape: shape - .getTrait() - ?.testCases - .where((t) => t.appliesTo != AppliesTo.server) ?? + shape: + shape.getTrait()?.testCases.where( + (t) => t.appliesTo != AppliesTo.server, + ) ?? const [], }; - late final testProtocols = { - ...httpRequestTestCases.map((t) => t.protocol), - ...httpResponseTestCases.map((t) => t.protocol), - ...httpErrorResponseTestCases.values - .expand((el) => el) - .map((t) => t.protocol), - } - .map( - (protocol) => - context.serviceProtocols.firstWhere((p) => p.shapeId == protocol), - ) - .toList(); + late final testProtocols = + { + ...httpRequestTestCases.map((t) => t.protocol), + ...httpResponseTestCases.map((t) => t.protocol), + ...httpErrorResponseTestCases.values + .expand((el) => el) + .map((t) => t.protocol), + } + .map( + (protocol) => context.serviceProtocols.firstWhere( + (p) => p.shapeId == protocol, + ), + ) + .toList(); /// When deserializing the `params` of a test case, we need to consider not /// only the input type but also any generated types it references, either in @@ -164,11 +165,7 @@ class OperationTestGenerator extends LibraryGenerator for (final member in shape.members.values) { var targetShape = context.shapeFor(member.target); var targetType = targetShape.getType(); - const collectionTypes = [ - ShapeType.map, - ShapeType.list, - ShapeType.set, - ]; + const collectionTypes = [ShapeType.map, ShapeType.list, ShapeType.set]; while (collectionTypes.contains(targetType)) { if (targetShape is CollectionShape) { targetShape = context.shapeFor(targetShape.member.target); @@ -281,20 +278,21 @@ class OperationTestGenerator extends LibraryGenerator // Generic JSON serializer for deserializing the input params builder.body.addAll([ Method.returnsVoid( - (b) => b - ..name = 'main' - ..body = Block.of([ - if (vendorSerializers.isNotEmpty) - Code.scope( - (allocate) => ''' + (b) => + b + ..name = 'main' + ..body = Block.of([ + if (vendorSerializers.isNotEmpty) + Code.scope( + (allocate) => ''' final vendorSerializers = (${allocate(DartTypes.smithyTest.testSerializers)}.toBuilder()..addAll(const [ ${_uniqueSerializers(vendorSerializers).map((serializer) => '${serializer.name}(),').join()} ${_vendorEnums.map((e) => '...${allocate(e)}.serializers,').join()} ])).build(); ''', - ), - Block.of(allTests), - ]), + ), + Block.of(allTests), + ]), ), ..._uniqueSerializers([ ...inputSerializers.values.expand((el) => el), @@ -318,9 +316,10 @@ class OperationTestGenerator extends LibraryGenerator 'documentation': literal(testCase.documentation), 'protocol': testCase.protocol.constructed, 'authScheme': literal(testCase.authScheme), - 'body': testCase.body == null - ? literalNull - : literalString(_escapeBody(testCase.body!)), + 'body': + testCase.body == null + ? literalNull + : literalString(_escapeBody(testCase.body!)), 'bodyMediaType': literal(testCase.bodyMediaType), 'params': literal(_escapeParams(testCase, testCase.params)), 'vendorParamsShape': @@ -332,10 +331,12 @@ class OperationTestGenerator extends LibraryGenerator 'forbidHeaders': literal(testCase.forbidHeaders), 'requireHeaders': literal(testCase.requireHeaders), 'tags': literal(testCase.tags), - 'appliesTo': testCase.appliesTo == null - ? literalNull - : DartTypes.smithyTest.appliesTo - .property(testCase.appliesTo!.name), + 'appliesTo': + testCase.appliesTo == null + ? literalNull + : DartTypes.smithyTest.appliesTo.property( + testCase.appliesTo!.name, + ), 'method': literal(testCase.method), 'uri': literal(testCase.uri), 'host': literal(testCase.host), @@ -380,20 +381,24 @@ class OperationTestGenerator extends LibraryGenerator for (final testCase in testCases) { final serializers = errorSerializers[errorShape]![testCase.protocol] ?? const []; - final testCall = DartTypes.smithyTest.httpErrorResponseTest.call([], { - 'operation': _operationInstance(testCase), - 'testCase': _buildResponseTestCase(testCase), - 'errorSerializers': literalConstList([ - for (final serializer in _uniqueSerializers(serializers)) - refer(serializer.name).constInstance([]), - ]), - }, [ - inputPayload.symbol, - inputSymbol, - outputPayload.symbol, - outputSymbol, - context.symbolFor(errorShape.shapeId), - ]); + final testCall = DartTypes.smithyTest.httpErrorResponseTest.call( + [], + { + 'operation': _operationInstance(testCase), + 'testCase': _buildResponseTestCase(testCase), + 'errorSerializers': literalConstList([ + for (final serializer in _uniqueSerializers(serializers)) + refer(serializer.name).constInstance([]), + ]), + }, + [ + inputPayload.symbol, + inputSymbol, + outputPayload.symbol, + outputSymbol, + context.symbolFor(errorShape.shapeId), + ], + ); yield _buildTest(testCase, testCall, type: TestType.error); } } @@ -412,11 +417,13 @@ class OperationTestGenerator extends LibraryGenerator final vendorParamsSymbol = context.symbolFor(testCase.vendorParamsShape!); initBlock.addExpression( declareFinal('config').assign( - refer('vendorSerializers').property('deserialize').call([ - literalMap(testCase.vendorParams), - ], { - 'specifiedType': vendorParamsSymbol.fullType(), - }).asA(vendorParamsSymbol), + refer('vendorSerializers') + .property('deserialize') + .call( + [literalMap(testCase.vendorParams)], + {'specifiedType': vendorParamsSymbol.fullType()}, + ) + .asA(vendorParamsSymbol), ), ); } @@ -479,25 +486,26 @@ class OperationTestGenerator extends LibraryGenerator ) .property('path'), ), - 'signerConfiguration': - DartTypes.awsSigV4.s3ServiceConfiguration.newInstance([], { - 'signPayload': literalFalse, - 'chunked': literalFalse, - }), + 'signerConfiguration': DartTypes.awsSigV4.s3ServiceConfiguration + .newInstance([], { + 'signPayload': literalFalse, + 'chunked': literalFalse, + }), }), ), ); } else { initBlock.addExpression( - declareConst('s3ClientConfig').assign( - DartTypes.smithyAws.s3ClientConfig.constInstance([]), - ), + declareConst( + 's3ClientConfig', + ).assign(DartTypes.smithyAws.s3ClientConfig.constInstance([])), ); } } return Block.of([ Code.scope( - (allocate) => '${allocate(DartTypes.test.test)}' + (allocate) => + '${allocate(DartTypes.test.test)}' "('${testCase.id} (${type.name})', () async {", ), initBlock.build(), @@ -514,31 +522,33 @@ class OperationTestGenerator extends LibraryGenerator /// Builds a call to instantiate an [HttpResponseTestCase], shared between /// response and error tests. - Expression _buildResponseTestCase(HttpResponseTestCase testCase) => - DartTypes.smithyTest.httpResponseTestCase.constInstance([], { - 'id': literal(testCase.id), - 'documentation': literal(testCase.documentation), - 'protocol': testCase.protocol.constructed, - 'authScheme': literal(testCase.authScheme), - 'body': testCase.body == null + Expression _buildResponseTestCase( + HttpResponseTestCase testCase, + ) => DartTypes.smithyTest.httpResponseTestCase.constInstance([], { + 'id': literal(testCase.id), + 'documentation': literal(testCase.documentation), + 'protocol': testCase.protocol.constructed, + 'authScheme': literal(testCase.authScheme), + 'body': + testCase.body == null ? literalNull : literalString(_escapeBody(testCase.body!)), - 'bodyMediaType': literal(testCase.bodyMediaType), - 'params': literal(_escapeParams(testCase, testCase.params)), - 'vendorParamsShape': - testCase.vendorParamsShape?.constructed ?? literalNull, - 'vendorParams': literal(testCase.vendorParams), - 'headers': literal( - _escapeParams(testCase, testCase.headers).cast(), - ), - 'forbidHeaders': literal(testCase.forbidHeaders), - 'requireHeaders': literal(testCase.requireHeaders), - 'tags': literal(testCase.tags), - 'appliesTo': testCase.appliesTo == null + 'bodyMediaType': literal(testCase.bodyMediaType), + 'params': literal(_escapeParams(testCase, testCase.params)), + 'vendorParamsShape': testCase.vendorParamsShape?.constructed ?? literalNull, + 'vendorParams': literal(testCase.vendorParams), + 'headers': literal( + _escapeParams(testCase, testCase.headers).cast(), + ), + 'forbidHeaders': literal(testCase.forbidHeaders), + 'requireHeaders': literal(testCase.requireHeaders), + 'tags': literal(testCase.tags), + 'appliesTo': + testCase.appliesTo == null ? literalNull : DartTypes.smithyTest.appliesTo.property(testCase.appliesTo!.name), - 'code': literal(testCase.code), - }); + 'code': literal(testCase.code), + }); /// Create strings which are safe for printing in Dart code. String _escapeBody(String body) => body @@ -567,18 +577,15 @@ class OperationTestGenerator extends LibraryGenerator Map _escapeParams( HttpMessageTestCase testCase, Map params, - ) => - {...params}..updateAll((key, value) { - if (value is List) { - return value - .map((value) => _escapeLiteral(testCase, value)) - .toList(); - } - if (value is Map) { - return _escapeParams(testCase, value.cast()); - } - return _escapeLiteral(testCase, value); - }); + ) => {...params}..updateAll((key, value) { + if (value is List) { + return value.map((value) => _escapeLiteral(testCase, value)).toList(); + } + if (value is Map) { + return _escapeParams(testCase, value.cast()); + } + return _escapeLiteral(testCase, value); + }); /// JS can handle int values up to 2^53 - 1. static const int _maxSafeJsInt = (1 << 53) - 1; diff --git a/packages/smithy/smithy_codegen/lib/src/generator/serialization/protocol_traits.g.dart b/packages/smithy/smithy_codegen/lib/src/generator/serialization/protocol_traits.g.dart index df525e4358..bfa71925f4 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/serialization/protocol_traits.g.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/serialization/protocol_traits.g.dart @@ -23,22 +23,34 @@ class _$ProtocolTraits extends ProtocolTraits { factory _$ProtocolTraits([void Function(ProtocolTraitsBuilder)? updates]) => (new ProtocolTraitsBuilder()..update(updates))._build(); - _$ProtocolTraits._( - {this.wireName, - this.namespace, - required this.attributeMembers, - required this.flattenedMembers, - required this.memberNamespaces, - required this.memberWireNames}) - : super._() { + _$ProtocolTraits._({ + this.wireName, + this.namespace, + required this.attributeMembers, + required this.flattenedMembers, + required this.memberNamespaces, + required this.memberWireNames, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - attributeMembers, r'ProtocolTraits', 'attributeMembers'); + attributeMembers, + r'ProtocolTraits', + 'attributeMembers', + ); BuiltValueNullFieldError.checkNotNull( - flattenedMembers, r'ProtocolTraits', 'flattenedMembers'); + flattenedMembers, + r'ProtocolTraits', + 'flattenedMembers', + ); BuiltValueNullFieldError.checkNotNull( - memberNamespaces, r'ProtocolTraits', 'memberNamespaces'); + memberNamespaces, + r'ProtocolTraits', + 'memberNamespaces', + ); BuiltValueNullFieldError.checkNotNull( - memberWireNames, r'ProtocolTraits', 'memberWireNames'); + memberWireNames, + r'ProtocolTraits', + 'memberWireNames', + ); } @override @@ -116,8 +128,8 @@ class ProtocolTraitsBuilder _$this._memberNamespaces ??= new MapBuilder(); set memberNamespaces( - MapBuilder? memberNamespaces) => - _$this._memberNamespaces = memberNamespaces; + MapBuilder? memberNamespaces, + ) => _$this._memberNamespaces = memberNamespaces; MapBuilder? _memberWireNames; MapBuilder get memberWireNames => @@ -158,7 +170,8 @@ class ProtocolTraitsBuilder _$ProtocolTraits _build() { _$ProtocolTraits _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ProtocolTraits._( wireName: wireName, namespace: namespace, @@ -180,7 +193,10 @@ class ProtocolTraitsBuilder memberWireNames.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ProtocolTraits', _$failedField, e.toString()); + r'ProtocolTraits', + _$failedField, + e.toString(), + ); } rethrow; } @@ -275,10 +291,14 @@ class HttpPayloadBuilder implements Builder { _$HttpPayload _build() { _$HttpPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPayload._( symbol: BuiltValueNullFieldError.checkNotNull( - symbol, r'HttpPayload', 'symbol'), + symbol, + r'HttpPayload', + 'symbol', + ), member: _member?.build(), ); } catch (_) { @@ -288,7 +308,10 @@ class HttpPayloadBuilder implements Builder { _member?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPayload', _$failedField, e.toString()); + r'HttpPayload', + _$failedField, + e.toString(), + ); } rethrow; } @@ -303,15 +326,18 @@ class _$HttpPrefixHeaders extends HttpPrefixHeaders { @override final MemberShape member; - factory _$HttpPrefixHeaders( - [void Function(HttpPrefixHeadersBuilder)? updates]) => - (new HttpPrefixHeadersBuilder()..update(updates))._build(); + factory _$HttpPrefixHeaders([ + void Function(HttpPrefixHeadersBuilder)? updates, + ]) => (new HttpPrefixHeadersBuilder()..update(updates))._build(); _$HttpPrefixHeaders._({required this.trait, required this.member}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull(trait, r'HttpPrefixHeaders', 'trait'); BuiltValueNullFieldError.checkNotNull( - member, r'HttpPrefixHeaders', 'member'); + member, + r'HttpPrefixHeaders', + 'member', + ); } @override @@ -389,10 +415,14 @@ class HttpPrefixHeadersBuilder _$HttpPrefixHeaders _build() { _$HttpPrefixHeaders _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpPrefixHeaders._( trait: BuiltValueNullFieldError.checkNotNull( - trait, r'HttpPrefixHeaders', 'trait'), + trait, + r'HttpPrefixHeaders', + 'trait', + ), member: member.build(), ); } catch (_) { @@ -402,7 +432,10 @@ class HttpPrefixHeadersBuilder member.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpPrefixHeaders', _$failedField, e.toString()); + r'HttpPrefixHeaders', + _$failedField, + e.toString(), + ); } rethrow; } @@ -438,20 +471,29 @@ class _$HttpInputTraits extends HttpInputTraits { factory _$HttpInputTraits([void Function(HttpInputTraitsBuilder)? updates]) => (new HttpInputTraitsBuilder()..update(updates))._build(); - _$HttpInputTraits._( - {required this.httpLabels, - this.hostLabel, - required this.httpQuery, - this.httpQueryParams, - required this.httpHeaders, - this.httpPrefixHeaders}) - : super._() { + _$HttpInputTraits._({ + required this.httpLabels, + this.hostLabel, + required this.httpQuery, + this.httpQueryParams, + required this.httpHeaders, + this.httpPrefixHeaders, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - httpLabels, r'HttpInputTraits', 'httpLabels'); + httpLabels, + r'HttpInputTraits', + 'httpLabels', + ); BuiltValueNullFieldError.checkNotNull( - httpQuery, r'HttpInputTraits', 'httpQuery'); + httpQuery, + r'HttpInputTraits', + 'httpQuery', + ); BuiltValueNullFieldError.checkNotNull( - httpHeaders, r'HttpInputTraits', 'httpHeaders'); + httpHeaders, + r'HttpInputTraits', + 'httpHeaders', + ); } @override @@ -540,8 +582,8 @@ class HttpInputTraitsBuilder HttpPrefixHeadersBuilder get httpPrefixHeaders => _$this._httpPrefixHeaders ??= new HttpPrefixHeadersBuilder(); set httpPrefixHeaders( - covariant HttpPrefixHeadersBuilder? httpPrefixHeaders) => - _$this._httpPrefixHeaders = httpPrefixHeaders; + covariant HttpPrefixHeadersBuilder? httpPrefixHeaders, + ) => _$this._httpPrefixHeaders = httpPrefixHeaders; HttpInputTraitsBuilder(); @@ -576,7 +618,8 @@ class HttpInputTraitsBuilder _$HttpInputTraits _build() { _$HttpInputTraits _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpInputTraits._( httpLabels: httpLabels.build(), hostLabel: _hostLabel?.build(), @@ -602,7 +645,10 @@ class HttpInputTraitsBuilder _httpPrefixHeaders?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpInputTraits', _$failedField, e.toString()); + r'HttpInputTraits', + _$failedField, + e.toString(), + ); } rethrow; } @@ -619,17 +665,20 @@ class _$HttpOutputTraits extends HttpOutputTraits { @override final HttpPrefixHeaders? httpPrefixHeaders; - factory _$HttpOutputTraits( - [void Function(HttpOutputTraitsBuilder)? updates]) => - (new HttpOutputTraitsBuilder()..update(updates))._build(); + factory _$HttpOutputTraits([ + void Function(HttpOutputTraitsBuilder)? updates, + ]) => (new HttpOutputTraitsBuilder()..update(updates))._build(); - _$HttpOutputTraits._( - {this.httpResponseCode, - required this.httpHeaders, - this.httpPrefixHeaders}) - : super._() { + _$HttpOutputTraits._({ + this.httpResponseCode, + required this.httpHeaders, + this.httpPrefixHeaders, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - httpHeaders, r'HttpOutputTraits', 'httpHeaders'); + httpHeaders, + r'HttpOutputTraits', + 'httpHeaders', + ); } @override @@ -691,8 +740,8 @@ class HttpOutputTraitsBuilder HttpPrefixHeadersBuilder get httpPrefixHeaders => _$this._httpPrefixHeaders ??= new HttpPrefixHeadersBuilder(); set httpPrefixHeaders( - covariant HttpPrefixHeadersBuilder? httpPrefixHeaders) => - _$this._httpPrefixHeaders = httpPrefixHeaders; + covariant HttpPrefixHeadersBuilder? httpPrefixHeaders, + ) => _$this._httpPrefixHeaders = httpPrefixHeaders; HttpOutputTraitsBuilder(); @@ -724,7 +773,8 @@ class HttpOutputTraitsBuilder _$HttpOutputTraits _build() { _$HttpOutputTraits _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpOutputTraits._( httpResponseCode: _httpResponseCode?.build(), httpHeaders: httpHeaders.build(), @@ -741,7 +791,10 @@ class HttpOutputTraitsBuilder _httpPrefixHeaders?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpOutputTraits', _$failedField, e.toString()); + r'HttpOutputTraits', + _$failedField, + e.toString(), + ); } rethrow; } @@ -771,22 +824,28 @@ class _$HttpErrorTraits extends HttpErrorTraits { factory _$HttpErrorTraits([void Function(HttpErrorTraitsBuilder)? updates]) => (new HttpErrorTraitsBuilder()..update(updates))._build(); - _$HttpErrorTraits._( - {required this.shapeId, - required this.kind, - required this.symbol, - this.payloadSymbol, - this.retryConfig, - this.statusCode, - required this.httpHeaders, - this.httpPrefixHeaders}) - : super._() { + _$HttpErrorTraits._({ + required this.shapeId, + required this.kind, + required this.symbol, + this.payloadSymbol, + this.retryConfig, + this.statusCode, + required this.httpHeaders, + this.httpPrefixHeaders, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - shapeId, r'HttpErrorTraits', 'shapeId'); + shapeId, + r'HttpErrorTraits', + 'shapeId', + ); BuiltValueNullFieldError.checkNotNull(kind, r'HttpErrorTraits', 'kind'); BuiltValueNullFieldError.checkNotNull(symbol, r'HttpErrorTraits', 'symbol'); BuiltValueNullFieldError.checkNotNull( - httpHeaders, r'HttpErrorTraits', 'httpHeaders'); + httpHeaders, + r'HttpErrorTraits', + 'httpHeaders', + ); } @override @@ -883,8 +942,8 @@ class HttpErrorTraitsBuilder HttpPrefixHeadersBuilder get httpPrefixHeaders => _$this._httpPrefixHeaders ??= new HttpPrefixHeadersBuilder(); set httpPrefixHeaders( - covariant HttpPrefixHeadersBuilder? httpPrefixHeaders) => - _$this._httpPrefixHeaders = httpPrefixHeaders; + covariant HttpPrefixHeadersBuilder? httpPrefixHeaders, + ) => _$this._httpPrefixHeaders = httpPrefixHeaders; HttpErrorTraitsBuilder(); @@ -921,14 +980,24 @@ class HttpErrorTraitsBuilder _$HttpErrorTraits _build() { _$HttpErrorTraits _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HttpErrorTraits._( shapeId: BuiltValueNullFieldError.checkNotNull( - shapeId, r'HttpErrorTraits', 'shapeId'), + shapeId, + r'HttpErrorTraits', + 'shapeId', + ), kind: BuiltValueNullFieldError.checkNotNull( - kind, r'HttpErrorTraits', 'kind'), + kind, + r'HttpErrorTraits', + 'kind', + ), symbol: BuiltValueNullFieldError.checkNotNull( - symbol, r'HttpErrorTraits', 'symbol'), + symbol, + r'HttpErrorTraits', + 'symbol', + ), payloadSymbol: payloadSymbol, retryConfig: retryConfig, statusCode: statusCode, @@ -944,7 +1013,10 @@ class HttpErrorTraitsBuilder _httpPrefixHeaders?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HttpErrorTraits', _$failedField, e.toString()); + r'HttpErrorTraits', + _$failedField, + e.toString(), + ); } rethrow; } @@ -966,17 +1038,23 @@ class _$PaginationItem extends PaginationItem { factory _$PaginationItem([void Function(PaginationItemBuilder)? updates]) => (new PaginationItemBuilder()..update(updates))._build(); - _$PaginationItem._( - {required this.member, - required this.isNullable, - required this.buildExpression, - required this.symbol}) - : super._() { + _$PaginationItem._({ + required this.member, + required this.isNullable, + required this.buildExpression, + required this.symbol, + }) : super._() { BuiltValueNullFieldError.checkNotNull(member, r'PaginationItem', 'member'); BuiltValueNullFieldError.checkNotNull( - isNullable, r'PaginationItem', 'isNullable'); + isNullable, + r'PaginationItem', + 'isNullable', + ); BuiltValueNullFieldError.checkNotNull( - buildExpression, r'PaginationItem', 'buildExpression'); + buildExpression, + r'PaginationItem', + 'buildExpression', + ); BuiltValueNullFieldError.checkNotNull(symbol, r'PaginationItem', 'symbol'); } @@ -1074,15 +1152,25 @@ class PaginationItemBuilder _$PaginationItem _build() { _$PaginationItem _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PaginationItem._( member: member.build(), isNullable: BuiltValueNullFieldError.checkNotNull( - isNullable, r'PaginationItem', 'isNullable'), + isNullable, + r'PaginationItem', + 'isNullable', + ), buildExpression: BuiltValueNullFieldError.checkNotNull( - buildExpression, r'PaginationItem', 'buildExpression'), + buildExpression, + r'PaginationItem', + 'buildExpression', + ), symbol: BuiltValueNullFieldError.checkNotNull( - symbol, r'PaginationItem', 'symbol'), + symbol, + r'PaginationItem', + 'symbol', + ), ); } catch (_) { late String _$failedField; @@ -1091,7 +1179,10 @@ class PaginationItemBuilder member.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PaginationItem', _$failedField, e.toString()); + r'PaginationItem', + _$failedField, + e.toString(), + ); } rethrow; } @@ -1121,16 +1212,16 @@ class _$PaginatedTraits extends PaginatedTraits { factory _$PaginatedTraits([void Function(PaginatedTraitsBuilder)? updates]) => (new PaginatedTraitsBuilder()..update(updates))._build(); - _$PaginatedTraits._( - {this.inputTokenPath, - this.inputToken, - this.outputTokenPath, - this.outputToken, - this.pageSizePath, - this.pageSize, - this.itemsPath, - this.items}) - : super._(); + _$PaginatedTraits._({ + this.inputTokenPath, + this.inputToken, + this.outputTokenPath, + this.outputToken, + this.pageSizePath, + this.pageSize, + this.itemsPath, + this.items, + }) : super._(); @override PaginatedTraits rebuild(void Function(PaginatedTraitsBuilder) updates) => @@ -1263,7 +1354,8 @@ class PaginatedTraitsBuilder _$PaginatedTraits _build() { _$PaginatedTraits _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PaginatedTraits._( inputTokenPath: inputTokenPath, inputToken: _inputToken?.build(), @@ -1290,7 +1382,10 @@ class PaginatedTraitsBuilder _items?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PaginatedTraits', _$failedField, e.toString()); + r'PaginatedTraits', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_config.dart b/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_config.dart index fb30b4a70d..cfade9612b 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_config.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_config.dart @@ -11,52 +11,32 @@ class SerializerConfig { /// Config for test serializers. const SerializerConfig.test() - : this( - usePayload: false, - renameMembers: false, - usePrivateSymbols: false, - isTest: true, - ); + : this( + usePayload: false, + renameMembers: false, + usePrivateSymbols: false, + isTest: true, + ); /// Config for generic JSON protocol. const SerializerConfig.genericJson() - : this( - usePayload: true, - renameMembers: true, - usePrivateSymbols: true, - ); + : this(usePayload: true, renameMembers: true, usePrivateSymbols: true); /// Config for AWS JSON 1.0/1.1 const SerializerConfig.awsJson() - : this( - usePayload: false, - renameMembers: false, - usePrivateSymbols: true, - ); + : this(usePayload: false, renameMembers: false, usePrivateSymbols: true); /// Config for AWS REST JSON 1 const SerializerConfig.restJson1() - : this( - usePayload: true, - renameMembers: true, - usePrivateSymbols: true, - ); + : this(usePayload: true, renameMembers: true, usePrivateSymbols: true); /// Config for AWS Query const SerializerConfig.awsQuery() - : this( - usePayload: false, - renameMembers: true, - usePrivateSymbols: true, - ); + : this(usePayload: false, renameMembers: true, usePrivateSymbols: true); /// Config for EC2 Query const SerializerConfig.ec2Query() - : this( - usePayload: false, - renameMembers: true, - usePrivateSymbols: true, - ); + : this(usePayload: false, renameMembers: true, usePrivateSymbols: true); final bool renameMembers; final bool usePayload; diff --git a/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_generator.dart index 68400300a2..fda7706da8 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/serialization/serializer_generator.dart @@ -14,7 +14,8 @@ import 'package:smithy_codegen/src/util/symbol_ext.dart'; /// Generates a serializer class for [shape] and [protocol]. abstract class SerializerGenerator - extends ShapeGenerator with NamedMembersGenerationContext { + extends ShapeGenerator + with NamedMembersGenerationContext { SerializerGenerator( super.shape, super.context, @@ -46,23 +47,25 @@ abstract class SerializerGenerator /// The primary, unnamed initializer. Constructor get constructor => Constructor( - (c) => c + (c) => + c ..constant = true ..initializers.add( refer('super').call([literalString(wireName)]).code, ), - ); + ); /// The `supportedProtocols` getter. Method get supportedProtocols => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) ..returns = DartTypes.core.iterable(DartTypes.smithy.shapeId) ..type = MethodType.getter ..name = 'supportedProtocols' ..lambda = true ..body = literalConstList([protocol.shapeId.constructed]).code, - ); + ); /// Destructures [members] from [variable] (of type [symbol]) to local final variables. Code destructure( @@ -80,72 +83,88 @@ abstract class SerializerGenerator /// The deserialize method. Method get deserialize => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) ..returns = serializedSymbol ..name = 'deserialize' ..requiredParameters.addAll([ Parameter( - (p) => p - ..type = DartTypes.builtValue.serializers - ..name = 'serializers', + (p) => + p + ..type = DartTypes.builtValue.serializers + ..name = 'serializers', ), Parameter( - (p) => p - ..type = isStructuredSerializer - ? DartTypes.core.iterable(DartTypes.core.object.boxed) - : DartTypes.core.object - ..name = 'serialized', + (p) => + p + ..type = + isStructuredSerializer + ? DartTypes.core.iterable( + DartTypes.core.object.boxed, + ) + : DartTypes.core.object + ..name = 'serialized', ), ]) ..optionalParameters.add( Parameter( - (p) => p - ..type = DartTypes.builtValue.fullType - ..named = true - ..name = 'specifiedType' - ..defaultTo = - DartTypes.builtValue.fullType.property('unspecified').code, + (p) => + p + ..type = DartTypes.builtValue.fullType + ..named = true + ..name = 'specifiedType' + ..defaultTo = + DartTypes.builtValue.fullType + .property('unspecified') + .code, ), ) ..body = deserializeCode, - ); + ); /// Returns the code needed to deserialize [shape]. Code get deserializeCode; // The serialize method. Method get serialize => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) - ..returns = isStructuredSerializer - ? DartTypes.core.iterable(DartTypes.core.object.boxed) - : DartTypes.core.object + ..returns = + isStructuredSerializer + ? DartTypes.core.iterable(DartTypes.core.object.boxed) + : DartTypes.core.object ..name = 'serialize' ..requiredParameters.addAll([ Parameter( - (p) => p - ..type = DartTypes.builtValue.serializers - ..name = 'serializers', + (p) => + p + ..type = DartTypes.builtValue.serializers + ..name = 'serializers', ), Parameter( - (p) => p - ..type = serializedSymbol - ..name = 'object', + (p) => + p + ..type = serializedSymbol + ..name = 'object', ), ]) ..optionalParameters.add( Parameter( - (p) => p - ..type = DartTypes.builtValue.fullType - ..named = true - ..name = 'specifiedType' - ..defaultTo = - DartTypes.builtValue.fullType.property('unspecified').code, + (p) => + p + ..type = DartTypes.builtValue.fullType + ..named = true + ..name = 'specifiedType' + ..defaultTo = + DartTypes.builtValue.fullType + .property('unspecified') + .code, ), ) ..body = serializeCode, - ); + ); /// Returns the code needed to serialize [shape]. Code get serializeCode; @@ -184,11 +203,9 @@ abstract class SerializerGenerator // For timestamps without custom serialization annotations, and all other // shapes, use the default serializer for the context. - return refer('serializers').property('serialize').call([ - memberRef, - ], { - 'specifiedType': memberSymbol.fullType(), - }); + return refer('serializers') + .property('serialize') + .call([memberRef], {'specifiedType': memberSymbol.fullType()}); } /// Deserializes [member] using `built_value` constructs. @@ -204,11 +221,12 @@ abstract class SerializerGenerator // For timestamps, check if there is a custom serializer needed. if (type == ShapeType.timestamp && protocol.supportsTrait(TimestampFormatTrait.id)) { - final format = config.isTest - // Test params are always in epoch seconds. - // https://awslabs.github.io/smithy/1.0/spec/http-protocol-compliance-tests.html#parameter-format - ? TimestampFormat.epochSeconds - : member.timestampFormat ?? targetShape.timestampFormat; + final format = + config.isTest + // Test params are always in epoch seconds. + // https://awslabs.github.io/smithy/1.0/spec/http-protocol-compliance-tests.html#parameter-format + ? TimestampFormat.epochSeconds + : member.timestampFormat ?? targetShape.timestampFormat; if (format != null) { return DartTypes.smithy.timestampSerializer .property(format.name) @@ -229,10 +247,9 @@ abstract class SerializerGenerator // For timestamps without custom serialization annotations, and all other // shapes, use the default serializer for the context. - return refer('serializers').property('deserialize').call([ - value, - ], { - 'specifiedType': memberSymbol.fullType(), - }).asA(memberSymbol); + return refer('serializers') + .property('deserialize') + .call([value], {'specifiedType': memberSymbol.fullType()}) + .asA(memberSymbol); } } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_serializer_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_serializer_generator.dart index 355021986b..1bef4ae2a2 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_serializer_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_serializer_generator.dart @@ -109,9 +109,10 @@ class StructureSerializerGenerator extends SerializerGenerator protocolTraits.memberWireNames.toMap(); /// The name of [member] on the wire. - String memberWireName(MemberShape member) => config.renameMembers - ? wireNames[member] ?? member.memberName - : member.memberName; + String memberWireName(MemberShape member) => + config.renameMembers + ? wireNames[member] ?? member.memberName + : member.memberName; @override Class? generate() { @@ -123,42 +124,50 @@ class StructureSerializerGenerator extends SerializerGenerator context.generatedTypes[symbol] ??= {}; return Class( - (c) => c - ..name = serializerClassName - ..extend = isStructuredSerializer - ? DartTypes.smithy.structuredSmithySerializer(serializedSymbol) - : DartTypes.smithy.primitiveSmithySerializer(serializedSymbol) - ..constructors.add(constructor) - ..methods.addAll([ - _typesGetter, - supportedProtocols, - deserialize, - serialize, - ]), + (c) => + c + ..name = serializerClassName + ..extend = + isStructuredSerializer + ? DartTypes.smithy.structuredSmithySerializer( + serializedSymbol, + ) + : DartTypes.smithy.primitiveSmithySerializer( + serializedSymbol, + ) + ..constructors.add(constructor) + ..methods.addAll([ + _typesGetter, + supportedProtocols, + deserialize, + serialize, + ]), ); } /// The `types` getter. Method get _typesGetter => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) ..returns = DartTypes.core.iterable(DartTypes.core.type) ..type = MethodType.getter ..name = 'types' ..lambda = true - ..body = literalConstList([ - symbol, - if (config.usePrivateSymbols) builtSymbol, - if (isStructuredSerializer && config.usePayload) ...[ - if (hasBuiltPayload) payloadSymbol, - if (config.usePrivateSymbols && builtPayloadSymbol != null) - builtPayloadSymbol, - ], - ]).code, - ); + ..body = + literalConstList([ + symbol, + if (config.usePrivateSymbols) builtSymbol, + if (isStructuredSerializer && config.usePayload) ...[ + if (hasBuiltPayload) payloadSymbol, + if (config.usePrivateSymbols && builtPayloadSymbol != null) + builtPayloadSymbol, + ], + ]).code, + ); Code get deserializePreamble => Code.scope( - (allocate) => ''' + (allocate) => ''' final iterator = serialized.iterator; while (iterator.moveNext()) { final key = iterator.current as ${allocate(DartTypes.core.string)}; @@ -169,7 +178,7 @@ class StructureSerializerGenerator extends SerializerGenerator } switch (key) { ''', - ); + ); @override Code get deserializeCode { @@ -192,11 +201,12 @@ class StructureSerializerGenerator extends SerializerGenerator .statement; } - final builder = BlockBuilder() - // Create the builder. - ..addExpression( - declareFinal('result').assign(builderSymbol.newInstance([])), - ); + final builder = + BlockBuilder() + // Create the builder. + ..addExpression( + declareFinal('result').assign(builderSymbol.newInstance([])), + ); // Iterate over the serialized elements. builder.statements.addAll([ @@ -224,16 +234,15 @@ class StructureSerializerGenerator extends SerializerGenerator .assignNullAware( targetShape.isStreaming ? DartTypes.async.stream().constInstanceNamed('empty', []) - : DartTypes.typedData.uint8List - .newInstance([literalNum(0)]), + : DartTypes.typedData.uint8List.newInstance([ + literalNum(0), + ]), ), ); } } - builder.addExpression( - refer('result').property('build').call([]).returned, - ); + builder.addExpression(refer('result').property('build').call([]).returned); return builder.build(); } @@ -255,8 +264,9 @@ class StructureSerializerGenerator extends SerializerGenerator .property(member.dartName(ShapeType.structure)) .property('replace') .call([ - deserializerFor(member, memberSymbol: memberSymbol.unboxed), - ]).statement + deserializerFor(member, memberSymbol: memberSymbol.unboxed), + ]) + .statement else refer('result') .property(member.dartName(ShapeType.structure)) @@ -299,9 +309,9 @@ class StructureSerializerGenerator extends SerializerGenerator } builder.addExpression( - declareFinal(resultVar.symbol!).assign( - literalList([], DartTypes.core.object.boxed), - ), + declareFinal( + resultVar.symbol!, + ).assign(literalList([], DartTypes.core.object.boxed)), ); // Destructure `payload` so that members can be null-checked w/ promotion. @@ -310,8 +320,9 @@ class StructureSerializerGenerator extends SerializerGenerator ); // Create a result object with all the non-null members. - final nonNullMembers = - serializedMembers.where((member) => !member.isNullable(context, shape)); + final nonNullMembers = serializedMembers.where( + (member) => !member.isNullable(context, shape), + ); final nonNullResult = []; for (final member in nonNullMembers) { final memberRef = refer(member.dartName(ShapeType.structure)); @@ -327,8 +338,9 @@ class StructureSerializerGenerator extends SerializerGenerator } // Add remaining objects only if they're non-null. - final nullableMembers = - serializedMembers.where((member) => member.isNullable(context, shape)); + final nullableMembers = serializedMembers.where( + (member) => member.isNullable(context, shape), + ); for (final member in nullableMembers) { final memberRef = refer(member.dartName(ShapeType.structure)); builder.statements.addAll([ diff --git a/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_xml_serializer_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_xml_serializer_generator.dart index d3e7e923d4..c1674631c7 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_xml_serializer_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/serialization/structure_xml_serializer_generator.dart @@ -22,7 +22,8 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { String? payloadWireName; final payloadMember = this.payloadMember; if (payloadMember != null) { - payloadWireName = payloadMember.getTrait()?.value ?? + payloadWireName = + payloadMember.getTrait()?.value ?? shape.getTrait()?.value; } return payloadWireName ?? @@ -51,8 +52,8 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { @override Reference get payloadBuilderSymbol => payloadSymbol.unboxed.typeRef.rebuild( - (t) => t.symbol = '${t.symbol}Builder', - ); + (t) => t.symbol = '${t.symbol}Builder', + ); @override List get payloadMembers { @@ -67,9 +68,9 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { @override Map get memberSymbols => { - for (final member in payloadMembers) - member: context.symbolFor(member.target, payloadShape), - }; + for (final member in payloadMembers) + member: context.symbolFor(member.target, payloadShape), + }; @override late final Map wireNames = () { @@ -97,13 +98,15 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { payloadShape.getTrait() ?? context.service?.getTrait(); - late final List attributeMembers = payloadMembers - .where((member) => member.hasTrait()) - .toList(); + late final List attributeMembers = + payloadMembers + .where((member) => member.hasTrait()) + .toList(); - late final List flattenedMembers = payloadMembers - .where((member) => member.hasTrait()) - .toList(); + late final List flattenedMembers = + payloadMembers + .where((member) => member.hasTrait()) + .toList(); /// The custom BuiltX constructor for XML payloads. Expression _builtXmlConstructor( @@ -181,22 +184,14 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { if (targetType == ShapeType.list || targetType == ShapeType.set || targetType == ShapeType.map) { - return _builtXmlConstructor( - member, - targetShape, - isSerialize: true, - ).property('serialize').call([ - refer('serializers'), - memberRef, - ], { - 'specifiedType': memberSymbol.fullType(), - }); + return _builtXmlConstructor(member, targetShape, isSerialize: true) + .property('serialize') + .call( + [refer('serializers'), memberRef], + {'specifiedType': memberSymbol.fullType()}, + ); } - return super.serializerFor( - member, - memberRef, - memberSymbol: memberSymbol, - ); + return super.serializerFor(member, memberRef, memberSymbol: memberSymbol); } @override @@ -219,15 +214,12 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { : payloadWireName; builder.addExpression( declareFinal(resultVar.symbol!).assign( - literalList( - [ - DartTypes.smithy.xmlElementName.constInstance([ - literalString(payloadResponseName), - if (namespace != null) namespace.constructedInstance, - ]), - ], - DartTypes.core.object.boxed, - ), + literalList([ + DartTypes.smithy.xmlElementName.constInstance([ + literalString(payloadResponseName), + if (namespace != null) namespace.constructedInstance, + ]), + ], DartTypes.core.object.boxed), ), ); @@ -249,22 +241,17 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { DartTypes.xml.xmlName.newInstance([ literalString(serializeMemberWireName(member)), ]), - serializerFor( - member, - memberRef, - ).asA(DartTypes.core.string), + serializerFor(member, memberRef).asA(DartTypes.core.string), ]), ]) .statement - .wrapWithBlockIf( - memberRef.notEqualTo(literalNull), - isNullable, - ), + .wrapWithBlockIf(memberRef.notEqualTo(literalNull), isNullable), ); } - final serializableMembers = - serializedMembers.where((member) => !attributeMembers.contains(member)); + final serializableMembers = serializedMembers.where( + (member) => !attributeMembers.contains(member), + ); if (serializableMembers.isEmpty && !isStructuredSerializer) { // serializing a primitive @@ -299,10 +286,7 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { .cascade(isFlattened ? 'addAll' : 'add') .call([serializer]) .statement - .wrapWithBlockIf( - memberRef.notEqualTo(literalNull), - isNullable, - ), + .wrapWithBlockIf(memberRef.notEqualTo(literalNull), isNullable), ); } @@ -325,17 +309,20 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { targetType == ShapeType.map) { final iterableType = DartTypes.core.iterable(DartTypes.core.object.boxed); final deserialized = _builtXmlConstructor( - member, - targetShape, - isSerialize: false, - ).property('deserialize').call([ - refer('serializers'), - value - .isA(DartTypes.core.string) - .conditional(literalConstList([]), value.asA(iterableType)), - ], { - 'specifiedType': memberSymbol.fullType(), - }); + member, + targetShape, + isSerialize: false, + ) + .property('deserialize') + .call( + [ + refer('serializers'), + value + .isA(DartTypes.core.string) + .conditional(literalConstList([]), value.asA(iterableType)), + ], + {'specifiedType': memberSymbol.fullType()}, + ); if (targetShape is ListShape || targetShape is SetShape) { return deserialized.asA(memberSymbol); } @@ -365,7 +352,8 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { ''', ); final unwrapErrors = shape.isError && protocol is Ec2QueryTrait; - final unwrapError = shape.isError && + final unwrapError = + shape.isError && ((protocol is RestXmlTrait && !(protocol as RestXmlTrait).noErrorWrapping) || protocol is Ec2QueryTrait || @@ -442,8 +430,9 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { // it to the builder (there will only be one). if (targetShape is MapShape) { nestedMethod = 'addAll'; - postProcess = (Expression exp) => - exp.property('toMap').call([]).property('cast').call([]); + postProcess = + (Expression exp) => + exp.property('toMap').call([]).property('cast').call([]); } } final value = refer('value'); @@ -456,13 +445,14 @@ class StructureXmlSerializerGenerator extends StructureSerializerGenerator { .property(member.dartName(ShapeType.structure)) .property(nestedMethod) .call([ - postProcess( - deserializerFor( - targetMember, - memberSymbol: memberSymbol.unboxed, - ), - ), - ]).statement + postProcess( + deserializerFor( + targetMember, + memberSymbol: memberSymbol.unboxed, + ), + ), + ]) + .statement else refer('result') .property(member.dartName(ShapeType.structure)) diff --git a/packages/smithy/smithy_codegen/lib/src/generator/serialization/union_serializer_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/serialization/union_serializer_generator.dart index 1dca784554..cb07960381 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/serialization/union_serializer_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/serialization/union_serializer_generator.dart @@ -30,16 +30,17 @@ class UnionSerializerGenerator extends SerializerGenerator @override Class generate() { return Class( - (c) => c - ..name = serializerClassName - ..extend = DartTypes.smithy.structuredSmithySerializer(symbol) - ..constructors.add(constructor) - ..methods.addAll([ - _typesGetter, - supportedProtocols, - deserialize, - serialize, - ]), + (c) => + c + ..name = serializerClassName + ..extend = DartTypes.smithy.structuredSmithySerializer(symbol) + ..constructors.add(constructor) + ..methods.addAll([ + _typesGetter, + supportedProtocols, + deserialize, + serialize, + ]), ); } @@ -63,20 +64,20 @@ class UnionSerializerGenerator extends SerializerGenerator /// The `types` getter. Method get _typesGetter => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) ..returns = DartTypes.core.iterable(DartTypes.core.type) ..type = MethodType.getter ..name = 'types' ..lambda = true - ..body = literalConstList([ - symbol, - // Variant class types - ...members.map( - (member) => refer(variantClassName(member)), - ), - ]).code, - ); + ..body = + literalConstList([ + symbol, + // Variant class types + ...members.map((member) => refer(variantClassName(member))), + ]).code, + ); @override Code get deserializeCode { @@ -97,8 +98,9 @@ class UnionSerializerGenerator extends SerializerGenerator final variantClass = refer(variantClassName(member)); final Expression Function(Expression) constructor; if (member.requiresTransformation) { - constructor = (deserialized) => - variantClass.newInstanceNamed('_', [deserialized]); + constructor = + (deserialized) => + variantClass.newInstanceNamed('_', [deserialized]); } else if (member.target == Shape.unit) { constructor = (_) => variantClass.constInstance([]); } else { @@ -108,10 +110,7 @@ class UnionSerializerGenerator extends SerializerGenerator builder.statements.addAll([ Code("case '$memberWireName':"), constructor( - deserializerFor( - member, - memberSymbol: memberSymbol, - ), + deserializerFor(member, memberSymbol: memberSymbol), ).returned.statement, ]); } @@ -160,9 +159,9 @@ class UnionSerializerGenerator extends SerializerGenerator builder.statements.addAll([ literalList([ if (hasRenames) - refer('renames') - .index(object.property('name')) - .ifNullThen(object.property('name')) + refer( + 'renames', + ).index(object.property('name')).ifNullThen(object.property('name')) else object.property('name'), Block((b) { diff --git a/packages/smithy/smithy_codegen/lib/src/generator/serializers_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/serializers_generator.dart index 4b37815238..46fd811e0d 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/serializers_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/serializers_generator.dart @@ -17,40 +17,44 @@ class SerializersGenerator extends Generator { @override Library generate() { return Library( - (b) => b - ..name = context.serviceSerializersLibrary.libraryName - ..body.addAll([ - _serializers, - _builderFactories, - ]), + (b) => + b + ..name = context.serviceSerializersLibrary.libraryName + ..body.addAll([_serializers, _builderFactories]), ); } /// The `serializers` field which aggregates all serializers across the /// service's generated shapes. Field get _serializers => Field( - (f) => f + (f) => + f ..modifier = FieldModifier.constant ..type = DartTypes.core.list(DartTypes.smithy.smithySerializer()) ..name = 'serializers' - ..assignment = literalConstList([ - for (final type in context.generatedTypes.keys) - type.property('serializers').spread, - ]).code, - ); + ..assignment = + literalConstList([ + for (final type in context.generatedTypes.keys) + type.property('serializers').spread, + ]).code, + ); /// The `builderFactories` field which is filled in with all the builder /// factories necessary for built collection types throughout the service's /// closure. Field get _builderFactories => Field( - (f) => f + (f) => + f ..modifier = FieldModifier.final$ - ..type = DartTypes.core - .map(DartTypes.builtValue.fullType, DartTypes.core.function) + ..type = DartTypes.core.map( + DartTypes.builtValue.fullType, + DartTypes.core.function, + ) ..name = 'builderFactories' - ..assignment = literalMap({ - for (final entry in context.builderFactories.entries) - entry.key.fullType(): entry.value, - }).code, - ); + ..assignment = + literalMap({ + for (final entry in context.builderFactories.entries) + entry.key.fullType(): entry.value, + }).code, + ); } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/service_client_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/service_client_generator.dart index 8ffa4f9eef..86ef27788a 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/service_client_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/service_client_generator.dart @@ -18,9 +18,7 @@ class ServiceClientGenerator extends LibraryGenerator { super.shape, CodegenContext context, { super.smithyLibrary, - }) : super( - context: context, - ); + }) : super(context: context); late final List _operations = context.shapes.values.whereType().toList(); @@ -41,66 +39,66 @@ class ServiceClientGenerator extends LibraryGenerator { } Class get _clientClass => Class((c) { - c - ..name = className - ..docs.addAll([ - if (shape.hasDocs(context)) shape.formattedDocs(context), - ]) - ..constructors.add(_clientConstructor) - ..methods.addAll(_operationMethods) - ..fields.addAll(_clientFields); - }); + c + ..name = className + ..docs.addAll([if (shape.hasDocs(context)) shape.formattedDocs(context)]) + ..constructors.add(_clientConstructor) + ..methods.addAll(_operationMethods) + ..fields.addAll(_clientFields); + }); Constructor get _clientConstructor => Constructor( - (ctor) => ctor + (ctor) => + ctor ..docs.addAll([ if (shape.hasDocs(context)) shape.formattedDocs(context), ]) ..constant = true ..optionalParameters.addAll(constructorParameters) ..initializers.addAll(constructorInitializers), - ); + ); Iterable get _clientFields => LinkedHashSet( - equals: (a, b) => a.name == b.name, - hashCode: (key) => key.name.hashCode, - )..addAll( - _operations - .expand((op) => op.operationParameters(context)) - .where((p) => p.location.inClientConstructor) - .map( - (parameter) => Field( - (f) => f - ..modifier = FieldModifier.final$ - ..type = parameter.type - ..name = private(parameter.name), - ), - ), - ); + equals: (a, b) => a.name == b.name, + hashCode: (key) => key.name.hashCode, + )..addAll( + _operations + .expand((op) => op.operationParameters(context)) + .where((p) => p.location.inClientConstructor) + .map( + (parameter) => Field( + (f) => + f + ..modifier = FieldModifier.final$ + ..type = parameter.type + ..name = private(parameter.name), + ), + ), + ); - Iterable get constructorParameters => - operationParameters.where((p) => p.location.inClientConstructor).map( - (param) => Parameter( - (p) => p + Iterable get constructorParameters => operationParameters + .where((p) => p.location.inClientConstructor) + .map( + (param) => Parameter( + (p) => + p ..type = param.type ..required = param.required && param.defaultTo == null ..defaultTo = param.defaultTo ..name = param.name ..named = true, - ), - ); + ), + ); Iterable get operationParameters => LinkedHashSet( equals: (a, b) => a.name == b.name, hashCode: (key) => key.name.hashCode, - )..addAll( - _operations.expand((op) => op.operationParameters(context)), - ); + )..addAll(_operations.expand((op) => op.operationParameters(context))); Iterable get constructorInitializers => constructorParameters.map( - (param) => refer(private(param.name)).assign(refer(param.name)).code, - ); + (param) => refer(private(param.name)).assign(refer(param.name)).code, + ); String private(String s) => s.startsWith('_') ? s : '_$s'; @@ -120,70 +118,90 @@ class ServiceClientGenerator extends LibraryGenerator { final paginatedTraits = operation.paginatedTraits(context); final isPaginated = paginatedTraits != null; yield Method( - (m) => m - ..docs.addAll([ - if (operation.hasDocs(context)) operation.formattedDocs(context), - ]) - ..returns = isPaginated - ? DartTypes.smithy.smithyOperation( - DartTypes.smithy.paginatedResult( - paginatedTraits.items?.symbol.unboxed ?? operationOutput, - paginatedTraits.pageSize?.symbol.unboxed ?? - DartTypes.core.void$, - paginatedTraits.outputToken!.symbol.unboxed, - ), - ) - : DartTypes.smithy.smithyOperation(operationOutput) - ..name = operation.shapeId.shape.camelCase - ..lambda = false - ..requiredParameters.addAll([ - if (operationInput != DartTypes.smithy.unit) - Parameter( - (p) => p - ..type = operationInput - ..name = 'input', - ), - ]) - ..optionalParameters.addAll( - operationParameters.where((p) => p.location.inClientMethod).map( - (param) => Parameter( - (p) => p - ..required = false - ..toThis = false - ..type = param.type.boxed - ..name = param.name - ..named = true, + (m) => + m + ..docs.addAll([ + if (operation.hasDocs(context)) + operation.formattedDocs(context), + ]) + ..returns = + isPaginated + ? DartTypes.smithy.smithyOperation( + DartTypes.smithy.paginatedResult( + paginatedTraits.items?.symbol.unboxed ?? + operationOutput, + paginatedTraits.pageSize?.symbol.unboxed ?? + DartTypes.core.void$, + paginatedTraits.outputToken!.symbol.unboxed, + ), + ) + : DartTypes.smithy.smithyOperation(operationOutput) + ..name = operation.shapeId.shape.camelCase + ..lambda = false + ..requiredParameters.addAll([ + if (operationInput != DartTypes.smithy.unit) + Parameter( + (p) => + p + ..type = operationInput + ..name = 'input', ), - ), - ) - ..body = context - .symbolFor(operation.shapeId) - .newInstance([], { - for (final param in operationParameters - .where((p) => p.location.inConstructor)) - param.name: param.location.inClientMethod && - param.location.inClientConstructor - ? refer(param.name).ifNullThen(refer(private(param.name))) - : param.location.inClientConstructor - ? refer(private(param.name)) - : refer(param.name), - }) - .property(isPaginated ? 'runPaginated' : 'run') - .call([ - if (operationInput == DartTypes.smithy.unit) - DartTypes.smithy.unit.constInstance([]) - else - refer('input'), - ], { - for (final param in operationParameters.where( - (p) => p.location.inClientMethod && p.location.inRun, - )) - param.name: param.location.inClientConstructor - ? refer(param.name).ifNullThen(refer(private(param.name))) - : refer(param.name), - }) - .returned - .statement, + ]) + ..optionalParameters.addAll( + operationParameters + .where((p) => p.location.inClientMethod) + .map( + (param) => Parameter( + (p) => + p + ..required = false + ..toThis = false + ..type = param.type.boxed + ..name = param.name + ..named = true, + ), + ), + ) + ..body = + context + .symbolFor(operation.shapeId) + .newInstance([], { + for (final param in operationParameters.where( + (p) => p.location.inConstructor, + )) + param.name: + param.location.inClientMethod && + param.location.inClientConstructor + ? refer( + param.name, + ).ifNullThen(refer(private(param.name))) + : param.location.inClientConstructor + ? refer(private(param.name)) + : refer(param.name), + }) + .property(isPaginated ? 'runPaginated' : 'run') + .call( + [ + if (operationInput == DartTypes.smithy.unit) + DartTypes.smithy.unit.constInstance([]) + else + refer('input'), + ], + { + for (final param in operationParameters.where( + (p) => + p.location.inClientMethod && p.location.inRun, + )) + param.name: + param.location.inClientConstructor + ? refer( + param.name, + ).ifNullThen(refer(private(param.name))) + : refer(param.name), + }, + ) + .returned + .statement, ); } } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/service_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/service_generator.dart index 2ea3d9d566..fda890c874 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/service_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/service_generator.dart @@ -11,13 +11,8 @@ import 'package:smithy_codegen/src/generator/generator.dart'; /// models, serializers, and the service client -- basically everything except /// the generated payload types which are meant to be an internal abstraction. class ServiceGenerator extends LibraryGenerator { - ServiceGenerator( - super.shape, - CodegenContext context, { - super.smithyLibrary, - }) : super( - context: context, - ); + ServiceGenerator(super.shape, CodegenContext context, {super.smithyLibrary}) + : super(context: context); @override Library generate() { diff --git a/packages/smithy/smithy_codegen/lib/src/generator/service_server_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/service_server_generator.dart index 1976ebd906..ffe6c59d0a 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/service_server_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/service_server_generator.dart @@ -27,14 +27,13 @@ class ServiceServerGenerator extends LibraryGenerator { super.shape, CodegenContext context, { super.smithyLibrary, - }) : super( - context: context, - ); + }) : super(context: context); - late final List _httpOperations = context.shapes.values - .whereType() - .where((shape) => shape.httpTrait(context) != null) - .toList(); + late final List _httpOperations = + context.shapes.values + .whereType() + .where((shape) => shape.httpTrait(context) != null) + .toList(); bool get isAwsService => shape.hasTrait(); @@ -48,75 +47,81 @@ class ServiceServerGenerator extends LibraryGenerator { @override Library generate() { - final isQueryProtocol = [ - ...context.serviceProtocols.whereType(), - ...context.serviceProtocols.whereType(), - ].isNotEmpty; + final isQueryProtocol = + [ + ...context.serviceProtocols.whereType(), + ...context.serviceProtocols.whereType(), + ].isNotEmpty; if (_httpOperations.isNotEmpty && !isQueryProtocol) { builder ..name = context.serviceClientLibrary.libraryName - ..body.addAll([ - _baseClass, - _serviceClass, - ]); + ..body.addAll([_baseClass, _serviceClass]); } return builder.build(); } Class get _serviceClass => Class( - (c) => c + (c) => + c ..name = '_$className' ..extend = DartTypes.smithy.httpServer(_baseClassRef) ..constructors.add(_serviceConstructor) ..methods.addAll(_serviceMethods) ..fields.addAll(_serviceFields), - ); + ); Constructor get _serviceConstructor => Constructor( - (ctor) => ctor + (ctor) => + ctor ..requiredParameters.add( Parameter( - (p) => p - ..name = 'service' - ..toThis = true, + (p) => + p + ..name = 'service' + ..toThis = true, ), ), - ); + ); Iterable get _serviceMethods sync* { for (final shape in _httpOperations) { - final inputTraits = shape.inputLabels(context).toList() - ..sort((a, b) { - final uri = shape.httpTrait(context)!.uri; - return uri.indexOf(a.memberName).compareTo(uri.indexOf(b.memberName)); - }); + final inputTraits = + shape.inputLabels(context).toList()..sort((a, b) { + final uri = shape.httpTrait(context)!.uri; + return uri + .indexOf(a.memberName) + .compareTo(uri.indexOf(b.memberName)); + }); yield Method( - (m) => m - ..returns = DartTypes.async.future(DartTypes.shelf.response) - ..name = shape.methodName - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..name = 'request' - ..type = DartTypes.shelf.request, - ), - for (final label in inputTraits) - Parameter( - (p) => p - ..name = label.memberName - ..type = DartTypes.core.string, - ), - ]) - ..modifier = MethodModifier.async - ..body = Block.of(_serviceMethodBody(shape)), + (m) => + m + ..returns = DartTypes.async.future(DartTypes.shelf.response) + ..name = shape.methodName + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..name = 'request' + ..type = DartTypes.shelf.request, + ), + for (final label in inputTraits) + Parameter( + (p) => + p + ..name = label.memberName + ..type = DartTypes.core.string, + ), + ]) + ..modifier = MethodModifier.async + ..body = Block.of(_serviceMethodBody(shape)), ); } } Iterable _serviceMethodBody(OperationShape operation) sync* { - yield declareFinal('awsRequest') - .assign(refer('request').property('awsRequest')) - .statement; + yield declareFinal( + 'awsRequest', + ).assign(refer('request').property('awsRequest')).statement; yield declareFinal('context') .assign(DartTypes.smithy.context.newInstance([refer('awsRequest')])) .statement; @@ -136,42 +141,47 @@ class ServiceServerGenerator extends LibraryGenerator { final payload = refer(operation.protocolField) .property('wireSerializer') .property('deserialize') - .call([ - awsRequest.property('bodyBytes').awaited, - ], { - 'specifiedType': payloadSymbol.fullType(), - }) + .call( + [awsRequest.property('bodyBytes').awaited], + {'specifiedType': payloadSymbol.fullType()}, + ) .awaited .asA(payloadSymbol); yield declareFinal('payload').assign(payload).statement; final inputLabels = inputTraits?.httpLabels ?? BuiltSet(); final inputSymbol = operation.inputSymbol(context); - final input = inputSymbol == DartTypes.smithy.unit - ? refer('payload') - : inputSymbol.newInstanceNamed('fromRequest', [ - refer('payload'), - awsRequest, - ], { - 'labels': literalMap({ - for (final label in inputLabels) - label.memberName: refer(label.memberName), - }), - }); + final input = + inputSymbol == DartTypes.smithy.unit + ? refer('payload') + : inputSymbol.newInstanceNamed( + 'fromRequest', + [refer('payload'), awsRequest], + { + 'labels': literalMap({ + for (final label in inputLabels) + label.memberName: refer(label.memberName), + }), + }, + ); yield declareFinal('input').assign(input).statement; - final output = refer('service').property(operation.methodName).call([ - refer('input'), - refer('context'), - ]).awaited; + final output = + refer('service').property(operation.methodName).call([ + refer('input'), + refer('context'), + ]).awaited; yield declareFinal('output').assign(output).statement; final httpHeaders = outputTraits?.httpHeaders ?? BuiltMap(); for (final entry in httpHeaders.entries) { - final property = - refer('output').property(entry.value.dartName(ShapeType.structure)); - final isNullable = - entry.value.isNullable(context, operation.inputShape(context)); + final property = refer( + 'output', + ).property(entry.value.dartName(ShapeType.structure)); + final isNullable = entry.value.isNullable( + context, + operation.inputShape(context), + ); yield refer('context') .property('response') .property('headers') @@ -183,10 +193,7 @@ class ServiceServerGenerator extends LibraryGenerator { isHeader: true, ), ) - .wrapWithBlockIf( - property.notEqualTo(literalNull), - isNullable, - ); + .wrapWithBlockIf(property.notEqualTo(literalNull), isNullable); } final outputResponseCode = outputTraits?.httpResponseCode; @@ -195,9 +202,9 @@ class ServiceServerGenerator extends LibraryGenerator { .assign(refer(outputResponseCode.dartName(ShapeType.structure))) .statement; } else { - yield declareConst('statusCode') - .assign(literalNum(operation.httpTrait(context)?.code ?? 200)) - .statement; + yield declareConst( + 'statusCode', + ).assign(literalNum(operation.httpTrait(context)?.code ?? 200)).statement; } yield declareFinal('body') @@ -205,28 +212,31 @@ class ServiceServerGenerator extends LibraryGenerator { refer(operation.protocolField) .property('wireSerializer') .property('serialize') - .call([ - refer('output'), - ], { - 'specifiedType': operation.outputSymbol(context).fullType([ - operation.outputShape(context).httpPayload.symbol, - ]), - }).awaited, + .call( + [refer('output')], + { + 'specifiedType': operation.outputSymbol(context).fullType([ + operation.outputShape(context).httpPayload.symbol, + ]), + }, + ) + .awaited, ) .statement; yield DartTypes.shelf.response - .newInstance([ - refer('statusCode'), - ], { - 'body': refer('body'), - 'headers': refer('context') - .property('response') - .property('build') - .call([]) - .property('headers') - .property('toMap') - .call([]), - }) + .newInstance( + [refer('statusCode')], + { + 'body': refer('body'), + 'headers': refer('context') + .property('response') + .property('build') + .call([]) + .property('headers') + .property('toMap') + .call([]), + }, + ) .returned .statement; @@ -255,13 +265,14 @@ class ServiceServerGenerator extends LibraryGenerator { refer(operation.protocolField) .property('wireSerializer') .property('serialize') - .call([ - refer('e'), - ], { - 'specifiedType': errorSymbol.fullType([ - errorShape.httpPayload.symbol, - ]), - }), + .call( + [refer('e')], + { + 'specifiedType': errorSymbol.fullType([ + errorShape.httpPayload.symbol, + ]), + }, + ), ) .statement; @@ -270,18 +281,19 @@ class ServiceServerGenerator extends LibraryGenerator { yield declareConst('statusCode').assign(literalNum(statusCode)).statement; yield DartTypes.shelf.response - .newInstance([ - refer('statusCode'), - ], { - 'body': refer('body'), - 'headers': refer('context') - .property('response') - .property('build') - .call([]) - .property('headers') - .property('toMap') - .call([]), - }) + .newInstance( + [refer('statusCode')], + { + 'body': refer('body'), + 'headers': refer('context') + .property('response') + .property('build') + .call([]) + .property('headers') + .property('toMap') + .call([]), + }, + ) .returned .statement; @@ -304,11 +316,12 @@ class ServiceServerGenerator extends LibraryGenerator { Iterable get _serviceFields sync* { yield Field( - (f) => f - ..annotations.add(DartTypes.core.override) - ..modifier = FieldModifier.final$ - ..type = Reference(_baseClassName) - ..name = 'service', + (f) => + f + ..annotations.add(DartTypes.core.override) + ..modifier = FieldModifier.final$ + ..type = Reference(_baseClassName) + ..name = 'service', ); for (final shape in _httpOperations) { @@ -321,85 +334,95 @@ class ServiceServerGenerator extends LibraryGenerator { /// The `protocol` override yield Field( - (f) => f - ..late = true - ..modifier = FieldModifier.final$ - ..name = shape.protocolField - ..type = DartTypes.smithy.httpProtocol( - inputPayload.symbol.unboxed, - inputSymbol, - outputPayload.symbol.unboxed, - outputSymbol, - ) - ..assignment = protocol.instantiableProtocolSymbol.newInstance([], { - 'serializers': protocol.serializers(context), - 'builderFactories': context.builderFactoriesRef, - ...protocol.extraParameters(shape, context), - }).code, + (f) => + f + ..late = true + ..modifier = FieldModifier.final$ + ..name = shape.protocolField + ..type = DartTypes.smithy.httpProtocol( + inputPayload.symbol.unboxed, + inputSymbol, + outputPayload.symbol.unboxed, + outputSymbol, + ) + ..assignment = + protocol.instantiableProtocolSymbol.newInstance([], { + 'serializers': protocol.serializers(context), + 'builderFactories': context.builderFactoriesRef, + ...protocol.extraParameters(shape, context), + }).code, ); } } Class get _baseClass => Class( - (c) => c + (c) => + c ..name = _baseClassName ..abstract = true ..extend = DartTypes.smithy.httpServerBase ..methods.addAll(_baseMethods) ..fields.addAll([_baseProtocol, _router]), - ); + ); Iterable get _baseMethods sync* { for (final operation in _httpOperations) { yield Method( - (m) => m - ..returns = DartTypes.async.future(operation.outputSymbol(context)) - ..name = operation.methodName - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..name = 'input' - ..type = operation.inputSymbol(context), - ), - Parameter( - (p) => p - ..name = 'context' - ..type = DartTypes.smithy.context, - ), - ]), + (m) => + m + ..returns = DartTypes.async.future( + operation.outputSymbol(context), + ) + ..name = operation.methodName + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..name = 'input' + ..type = operation.inputSymbol(context), + ), + Parameter( + (p) => + p + ..name = 'context' + ..type = DartTypes.smithy.context, + ), + ]), ); } // Conformance to shelf.Handler yield Method( - (m) => m - ..returns = DartTypes.async.future(DartTypes.shelf.response) - ..name = 'call' - ..requiredParameters.add( - Parameter( - (p) => p - ..type = DartTypes.shelf.request - ..name = 'request', - ), - ) - ..body = refer('_router').call([refer('request')]).code, + (m) => + m + ..returns = DartTypes.async.future(DartTypes.shelf.response) + ..name = 'call' + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = DartTypes.shelf.request + ..name = 'request', + ), + ) + ..body = refer('_router').call([refer('request')]).code, ); } /// Builds the router for integration with shelf. Field get _router { - final buildRouter = BlockBuilder() - ..addExpression( - declareFinal('service').assign( - refer('_$className').newInstance([refer('this')]), - ), - ); + final buildRouter = + BlockBuilder()..addExpression( + declareFinal( + 'service', + ).assign(refer('_$className').newInstance([refer('this')])), + ); final service = refer('service'); buildRouter.addExpression( - declareFinal('router').assign( - DartTypes.shelfRouter.router.newInstance([]), - ), + declareFinal( + 'router', + ).assign(DartTypes.shelfRouter.router.newInstance([])), ); final router = refer('router'); @@ -419,10 +442,7 @@ class ServiceServerGenerator extends LibraryGenerator { final routes = {}; for (final operation in _httpOperations) { final rpcEndpoint = literalString( - [ - shape.shapeId.shape, - operation.shapeId.shape, - ].join('.'), + [shape.shapeId.shape, operation.shapeId.shape].join('.'), ); routes[rpcEndpoint] = service.property(operation.methodName); } @@ -441,29 +461,34 @@ class ServiceServerGenerator extends LibraryGenerator { buildRouter.addExpression(router.returned); return Field( - (f) => f - ..late = true - ..modifier = FieldModifier.final$ - ..type = DartTypes.shelfRouter.router - ..name = '_router' - ..assignment = - Method((m) => m..body = buildRouter.build()).closure.call([]).code, + (f) => + f + ..late = true + ..modifier = FieldModifier.final$ + ..type = DartTypes.shelfRouter.router + ..name = '_router' + ..assignment = + Method( + (m) => m..body = buildRouter.build(), + ).closure.call([]).code, ); } /// The `protocol` override Field get _baseProtocol => Field( - (f) => f + (f) => + f ..annotations.add(DartTypes.core.override) ..late = true ..modifier = FieldModifier.final$ ..name = 'protocol' ..type = DartTypes.smithy.httpProtocol() - ..assignment = protocol.instantiableProtocolSymbol.newInstance([], { - 'serializers': protocol.serializers(context), - 'builderFactories': context.builderFactoriesRef, - }).code, - ); + ..assignment = + protocol.instantiableProtocolSymbol.newInstance([], { + 'serializers': protocol.serializers(context), + 'builderFactories': context.builderFactoriesRef, + }).code, + ); } class _ShelfParameters { diff --git a/packages/smithy/smithy_codegen/lib/src/generator/shape_overrides.dart b/packages/smithy/smithy_codegen/lib/src/generator/shape_overrides.dart index 21bc3ed2d8..a0b7da363c 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/shape_overrides.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/shape_overrides.dart @@ -31,10 +31,7 @@ base class ShapeOverrides { /// {@macro smithy_codegen.shape_overrides} /// /// {@macro smithy_codegen.shape_overrides.friendly} - const ShapeOverrides( - Reference this.symbol, { - this.serializerSymbol, - }); + const ShapeOverrides(Reference this.symbol, {this.serializerSymbol}); /// Creates an override for a type's Smithy Dart public representation. /// @@ -54,10 +51,7 @@ base class ShapeOverrides { required TransformToFriendly transformToFriendly, }) = _TransformedShapeOverride; - const ShapeOverrides._( - this.symbol, { - this.serializerSymbol, - }); + const ShapeOverrides._(this.symbol, {this.serializerSymbol}); /// The Smithy Dart representation of a shape. /// @@ -86,8 +80,7 @@ base class ShapeOverrides { Expression transformFromFriendly( Expression ref, { required bool isNullable, - }) => - ref; + }) => ref; /// {@template smithy_codegen.shape_overrides.transform_to_friendly} /// Transforms an expression representing a value of type [symbol] @@ -97,22 +90,20 @@ base class ShapeOverrides { Expression ref, { required bool isNullable, required bool isConst, - }) => - ref; + }) => ref; } /// {@macro smithy_codegen.shape_overrides.transform_from_friendly} -typedef TransformFromFriendly = Expression Function( - Expression ref, { - required bool isNullable, -}); +typedef TransformFromFriendly = + Expression Function(Expression ref, {required bool isNullable}); /// {@macro smithy_codegen.shape_overrides.transform_to_friendly} -typedef TransformToFriendly = Expression Function( - Expression ref, { - required bool isNullable, - required bool isConst, -}); +typedef TransformToFriendly = + Expression Function( + Expression ref, { + required bool isNullable, + required bool isConst, + }); final class _TransformedShapeOverride extends ShapeOverrides { const _TransformedShapeOverride({ @@ -121,9 +112,9 @@ final class _TransformedShapeOverride extends ShapeOverrides { required this.friendlySymbol, required TransformFromFriendly transformFromFriendly, required TransformToFriendly transformToFriendly, - }) : _transformFromFriendly = transformFromFriendly, - _transformToFriendly = transformToFriendly, - super._(symbol); + }) : _transformFromFriendly = transformFromFriendly, + _transformToFriendly = transformToFriendly, + super._(symbol); @override final Reference friendlySymbol; @@ -135,18 +126,12 @@ final class _TransformedShapeOverride extends ShapeOverrides { Expression transformFromFriendly( Expression ref, { required bool isNullable, - }) => - _transformFromFriendly(ref, isNullable: isNullable); + }) => _transformFromFriendly(ref, isNullable: isNullable); @override Expression transformToFriendly( Expression ref, { required bool isNullable, required bool isConst, - }) => - _transformToFriendly( - ref, - isNullable: isNullable, - isConst: isConst, - ); + }) => _transformToFriendly(ref, isNullable: isNullable, isConst: isConst); } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/structure_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/structure_generator.dart index f90384ddd7..be17fbea08 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/structure_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/structure_generator.dart @@ -16,27 +16,24 @@ import 'package:smithy_codegen/src/util/symbol_ext.dart'; /// Generates Dart classes from [StructureShape] types. class StructureGenerator extends LibraryGenerator with StructureGenerationContext, NamedMembersGenerationContext { - StructureGenerator( - super.shape, - CodegenContext context, { - super.smithyLibrary, - }) : super( - context: context, - ); + StructureGenerator(super.shape, CodegenContext context, {super.smithyLibrary}) + : super(context: context); /// The members marked with the `hostLabel` or `httpLabel` traits. - late final List labels = shape.isInputShape - ? [ - ...httpInputTraits!.httpLabels, - if (httpInputTraits!.hostLabel != null) httpInputTraits!.hostLabel!, - ] - : const []; + late final List labels = + shape.isInputShape + ? [ + ...httpInputTraits!.httpLabels, + if (httpInputTraits!.hostLabel != null) httpInputTraits!.hostLabel!, + ] + : const []; @override Library generate() { // Add .g.dart part directive - builder.directives - .add(Directive.part('${shape.className(context)!.snakeCase}.g.dart')); + builder.directives.add( + Directive.part('${shape.className(context)!.snakeCase}.g.dart'), + ); // Hide the payload symbol if there is one (context.generatedTypes[symbol] ??= {}).addAll([ @@ -55,7 +52,8 @@ class StructureGenerator extends LibraryGenerator /// The main struct class. Class _structClass(Iterable serializerClasses) => Class( - (c) => c + (c) => + c ..name = className ..abstract = true ..docs.addAll([ @@ -96,14 +94,13 @@ class StructureGenerator extends LibraryGenerator _props(members), _toString(isPayload: false), ]) - ..fields.addAll([ - _serializersField(serializerClasses), - ]), - ); + ..fields.addAll([_serializersField(serializerClasses)]), + ); /// The struct's built payload class. Class get _payloadClass => Class( - (c) => c + (c) => + c ..name = payloadClassName ..abstract = true ..annotations.addAll([ @@ -117,9 +114,7 @@ class StructureGenerator extends LibraryGenerator // than payloads with all null members. if (payloadMembers.isEmpty) DartTypes.smithy.emptyPayload, ]) - ..mixins.addAll([ - DartTypes.awsCommon.awsEquatable(payloadSymbol), - ]) + ..mixins.addAll([DartTypes.awsCommon.awsEquatable(payloadSymbol)]) ..constructors.addAll([ _payloadFactoryConstructor, _privateConstructor, @@ -130,14 +125,15 @@ class StructureGenerator extends LibraryGenerator _props(payloadMembers), _toString(isPayload: true), ]), - ); + ); /// The private no-op constructor. Constructor get _privateConstructor => Constructor( - (c) => c + (c) => + c ..constant = true ..name = '_', - ); + ); /// The parameter-based factory constructor. Constructor get factoryConstructor { @@ -157,7 +153,7 @@ class StructureGenerator extends LibraryGenerator isNullable: false, isConst: isConst, ), - isConst + isConst, ); } final isNullable = @@ -167,35 +163,35 @@ class StructureGenerator extends LibraryGenerator isNullable: isNullable, ); if (defaultValue != null) { - b.addExpression( - refer(propertyName).assignNullAware(defaultValue.$1), - ); + b.addExpression(refer(propertyName).assignNullAware(defaultValue.$1)); } } b.addExpression( - refer('${builtSymbol.symbol}._').newInstance( - [], - memberExpressions, - ).returned, + refer( + '${builtSymbol.symbol}._', + ).newInstance([], memberExpressions).returned, ); }); return Constructor( - (c) => c - ..factory = true - ..annotations.addAll([ - if (shape.deprecatedAnnotation != null) shape.deprecatedAnnotation!, - ]) - ..docs.addAll([ - if (shape.hasDocs(context)) shape.formattedDocs(context), - ]) - ..optionalParameters.addAll(members.map(memberParameter)) - ..body = body, + (c) => + c + ..factory = true + ..annotations.addAll([ + if (shape.deprecatedAnnotation != null) + shape.deprecatedAnnotation!, + ]) + ..docs.addAll([ + if (shape.hasDocs(context)) shape.formattedDocs(context), + ]) + ..optionalParameters.addAll(members.map(memberParameter)) + ..body = body, ); } /// The builder constructor, using built_value closure style. Constructor get builderConstructor => Constructor( - (c) => c + (c) => + c ..factory = true ..name = 'build' ..annotations.addAll([ @@ -206,17 +202,19 @@ class StructureGenerator extends LibraryGenerator ]) ..optionalParameters.add( Parameter( - (p) => p - ..name = 'updates' - ..type = FunctionType( - (t) => t - ..returnType = DartTypes.core.void$ - ..requiredParameters.add(builderSymbol), - ), + (p) => + p + ..name = 'updates' + ..type = FunctionType( + (t) => + t + ..returnType = DartTypes.core.void$ + ..requiredParameters.add(builderSymbol), + ), ), ) ..redirect = builtSymbol, - ); + ); /// Creates a constructor [Parameter] for [member]. Parameter memberParameter(MemberShape member) { @@ -225,39 +223,44 @@ class StructureGenerator extends LibraryGenerator member.deprecatedAnnotation ?? targetShape.deprecatedAnnotation; final symbol = member.friendlySymbol; final defaultValue = member.defaultValue(context); - final isNullable = member.isNullable(context, shape) || + final isNullable = + member.isNullable(context, shape) || defaultValue != null || _defaultValueAssignment(member) != null; return Parameter( - (p) => p - ..annotations.addAll([ - if (deprecatedAnnotation != null) deprecatedAnnotation, - ]) - ..required = !isNullable - ..name = member.dartName(ShapeType.structure) - ..named = true - ..type = symbol.typeRef.rebuild((t) => t.isNullable = isNullable), + (p) => + p + ..annotations.addAll([ + if (deprecatedAnnotation != null) deprecatedAnnotation, + ]) + ..required = !isNullable + ..name = member.dartName(ShapeType.structure) + ..named = true + ..type = symbol.typeRef.rebuild((t) => t.isNullable = isNullable), ); } /// The builder-based factory constructor. Constructor get _payloadFactoryConstructor => Constructor( - (c) => c + (c) => + c ..factory = true ..optionalParameters.add( Parameter( - (p) => p - ..name = 'updates' - ..type = FunctionType( - (t) => t - ..returnType = DartTypes.core.void$ - ..requiredParameters.add(payloadBuilderSymbol), - ), + (p) => + p + ..name = 'updates' + ..type = FunctionType( + (t) => + t + ..returnType = DartTypes.core.void$ + ..requiredParameters.add(payloadBuilderSymbol), + ), ), ) ..redirect = builtPayloadSymbol, - ); + ); /// The server constructor from an incoming request. Constructor get _fromRequestConstructor { @@ -265,44 +268,50 @@ class StructureGenerator extends LibraryGenerator if (payloadSymbol == symbol) { output = refer('payload').code; } else { - output = symbol.newInstanceNamed('build', [ - Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'b')) - ..lambda = false - ..body = Block.of(_outputBuilder(refer('request'))), - ).closure, - ]).code; + output = + symbol.newInstanceNamed('build', [ + Method( + (m) => + m + ..requiredParameters.add(Parameter((p) => p..name = 'b')) + ..lambda = false + ..body = Block.of(_outputBuilder(refer('request'))), + ).closure, + ]).code; } return Constructor( - (c) => c - ..factory = true - ..name = 'fromRequest' - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..name = 'payload' - ..type = payloadSymbol, - ), - Parameter( - (p) => p - ..name = 'request' - ..type = DartTypes.awsCommon.awsBaseHttpRequest, - ), - ]) - ..optionalParameters.add( - Parameter( - (p) => p - ..name = 'labels' - ..type = DartTypes.core.map( - DartTypes.core.string, - DartTypes.core.string, - ) - ..named = true - ..defaultTo = literalConstMap({}).code, - ), - ) - ..body = output, + (c) => + c + ..factory = true + ..name = 'fromRequest' + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..name = 'payload' + ..type = payloadSymbol, + ), + Parameter( + (p) => + p + ..name = 'request' + ..type = DartTypes.awsCommon.awsBaseHttpRequest, + ), + ]) + ..optionalParameters.add( + Parameter( + (p) => + p + ..name = 'labels' + ..type = DartTypes.core.map( + DartTypes.core.string, + DartTypes.core.string, + ) + ..named = true + ..defaultTo = literalConstMap({}).code, + ), + ) + ..body = output, ); } @@ -313,73 +322,80 @@ class StructureGenerator extends LibraryGenerator if (!shape.isError) { output = refer('payload').code; } else { - output = refer('payload').property('rebuild').call([ - Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'b')) - ..lambda = false - ..body = Block.of(_rebuildOutput), - ).closure, - ]).code; + output = + refer('payload').property('rebuild').call([ + Method( + (m) => + m + ..requiredParameters.add(Parameter((p) => p..name = 'b')) + ..lambda = false + ..body = Block.of(_rebuildOutput), + ).closure, + ]).code; } } else { - output = symbol.newInstanceNamed('build', [ - Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'b')) - ..lambda = false - ..body = Block.of(_outputBuilder(refer('response'))), - ).closure, - ]).code; + output = + symbol.newInstanceNamed('build', [ + Method( + (m) => + m + ..requiredParameters.add(Parameter((p) => p..name = 'b')) + ..lambda = false + ..body = Block.of(_outputBuilder(refer('response'))), + ).closure, + ]).code; } return Constructor( - (c) => c - ..factory = true - ..name = 'fromResponse' - ..docs.add( - '/// Constructs a [$className] from a [payload] and [response].', - ) - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..name = 'payload' - ..type = payloadSymbol, - ), - Parameter( - (p) => p - ..name = 'response' - ..type = DartTypes.awsCommon.awsBaseHttpResponse, - ), - ]) - ..body = output, + (c) => + c + ..factory = true + ..name = 'fromResponse' + ..docs.add( + '/// Constructs a [$className] from a [payload] and [response].', + ) + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..name = 'payload' + ..type = payloadSymbol, + ), + Parameter( + (p) => + p + ..name = 'response' + ..type = DartTypes.awsCommon.awsBaseHttpResponse, + ), + ]) + ..body = output, ); } /// The [AWSEquatable.props] getter. Method _props(List members) => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) ..returns = DartTypes.core.list(DartTypes.core.object.boxed) ..type = MethodType.getter ..name = 'props' ..lambda = true - ..body = literalList([ - for (final member in members) - refer(member.dartName(ShapeType.structure)), - ]).code, - ); + ..body = + literalList([ + for (final member in members) + refer(member.dartName(ShapeType.structure)), + ]).code, + ); /// The initializer (bv `_init` method) for the main struct. - Method? get _initializer => defaultValues( - members: members, - builderSymbol: builderSymbol, - ); + Method? get _initializer => + defaultValues(members: members, builderSymbol: builderSymbol); /// The initializer (bv `_init` method) for the payload struct. Method? get _payloadInitializer => defaultValues( - members: payloadMembers, - builderSymbol: payloadBuilderSymbol, - ); + members: payloadMembers, + builderSymbol: payloadBuilderSymbol, + ); /// Adds default values to relevant properties. Method? defaultValues({ @@ -403,21 +419,24 @@ class StructureGenerator extends LibraryGenerator } block.addExpression(currentExpresson); return Method.returnsVoid( - (m) => m - ..annotations.add( - DartTypes.builtValue.builtValueHook - .newInstance([], {'initializeBuilder': literalTrue}), - ) - ..static = true - ..name = '_init' - ..requiredParameters.add( - Parameter( - (p) => p - ..type = builderSymbol - ..name = 'b', - ), - ) - ..body = block.build(), + (m) => + m + ..annotations.add( + DartTypes.builtValue.builtValueHook.newInstance([], { + 'initializeBuilder': literalTrue, + }), + ) + ..static = true + ..name = '_init' + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = builderSymbol + ..name = 'b', + ), + ) + ..body = block.build(), ); } @@ -429,11 +448,13 @@ class StructureGenerator extends LibraryGenerator final propertyName = member.dartName(ShapeType.structure); final targetShape = context.shapeFor(member.target); final assign = switch ((builder, cascade, targetShape)) { - (final builder?, false, ListShape _ || MapShape _) => (Expression v) => - builder.property(propertyName).property('addAll').call([v]), + (final builder?, false, ListShape _ || MapShape _) => + (Expression v) => + builder.property(propertyName).property('addAll').call([v]), (final builder?, false, _) => builder.property(propertyName).assign, - (final builder?, true, ListShape _ || MapShape _) => (Expression v) => - builder.cascade(propertyName).property('addAll').call([v]), + (final builder?, true, ListShape _ || MapShape _) => + (Expression v) => + builder.cascade(propertyName).property('addAll').call([v]), (final builder?, true, _) => builder.cascade(propertyName).assign, _ => refer(propertyName).assignNullAware, }; @@ -444,12 +465,14 @@ class StructureGenerator extends LibraryGenerator // https://awslabs.github.io/smithy/1.0/spec/http-protocol-compliance-tests.html#parameter-format if (member.isIdempotencyToken) { return assign( - DartTypes.core.bool.constInstanceNamed('hasEnvironment', [ - literalString('SMITHY_TEST'), - ]).conditional( - literalString('00000000-0000-4000-8000-000000000000'), - DartTypes.awsCommon.uuid(), - ), + DartTypes.core.bool + .constInstanceNamed('hasEnvironment', [ + literalString('SMITHY_TEST'), + ]) + .conditional( + literalString('00000000-0000-4000-8000-000000000000'), + DartTypes.awsCommon.uuid(), + ), ); } final defaultValue = member.defaultValue(context); @@ -460,49 +483,50 @@ class StructureGenerator extends LibraryGenerator } /// Fields for this type. - Iterable _fieldGetters({ - required bool isPayload, - }) sync* { + Iterable _fieldGetters({required bool isPayload}) sync* { final members = isPayload ? payloadMembers : this.members; for (final member in members) { yield Method( - (m) => m - ..annotations.addAll([ - if (member.deprecatedAnnotation != null) - member.deprecatedAnnotation!, - - // Add override annotation for this specific field when the class - // implements SmithyError. Per the docs, this field should be - // treated specially. - // - // https://awslabs.github.io/smithy/1.0/spec/core/type-refinement-traits.html#error-trait - if (shape.isError && - member.dartName(ShapeType.structure) == 'message' && - !isPayload) - DartTypes.core.override, + (m) => + m + ..annotations.addAll([ + if (member.deprecatedAnnotation != null) + member.deprecatedAnnotation!, - if (member.isUnstable || context.shapeFor(member.target).isUnstable) - DartTypes.meta.experimental, - ]) - ..docs.addAll([ - if (member.hasDocs(context)) member.formattedDocs(context), - ]) - ..returns = memberSymbols[member] - ..type = MethodType.getter - ..name = member.dartName(ShapeType.structure), + // Add override annotation for this specific field when the class + // implements SmithyError. Per the docs, this field should be + // treated specially. + // + // https://awslabs.github.io/smithy/1.0/spec/core/type-refinement-traits.html#error-trait + if (shape.isError && + member.dartName(ShapeType.structure) == 'message' && + !isPayload) + DartTypes.core.override, + + if (member.isUnstable || + context.shapeFor(member.target).isUnstable) + DartTypes.meta.experimental, + ]) + ..docs.addAll([ + if (member.hasDocs(context)) member.formattedDocs(context), + ]) + ..returns = memberSymbols[member] + ..type = MethodType.getter + ..name = member.dartName(ShapeType.structure), ); } } /// The `getPayload` method. Method get _getPayload => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) ..returns = payloadSymbol ..name = 'getPayload' ..lambda = true ..body = _buildPayload, - ); + ); Code get _buildPayload { if (payloadSymbol == symbol) { @@ -517,9 +541,11 @@ class StructureGenerator extends LibraryGenerator final targetShape = context.shapeFor(payloadMember!.target); if (payloadMember!.isNullable(context, shape) && targetShape is StructureShape && - targetShape.members.values.map((member) { - return member.isNullable(context, targetShape); - }).every((isNullable) => isNullable)) { + targetShape.members.values + .map((member) { + return member.isNullable(context, targetShape); + }) + .every((isNullable) => isNullable)) { payload = payload.ifNullThen(payloadSymbol.unboxed.newInstance([])); } return payload.code; @@ -539,15 +565,19 @@ class StructureGenerator extends LibraryGenerator final isNullable = member.isNullable(context, payloadShape); if (hasNestedBuilder) { block.statements.add( - builder.property(memberName).property('replace').call([ - if (isNullable) - refer(memberName).nullChecked - else - refer(memberName), - ]).wrapWithBlockIf( - refer(memberName).notEqualTo(literalNull), - isNullable, - ), + builder + .property(memberName) + .property('replace') + .call([ + if (isNullable) + refer(memberName).nullChecked + else + refer(memberName), + ]) + .wrapWithBlockIf( + refer(memberName).notEqualTo(literalNull), + isNullable, + ), ); } else { block.statements.add( @@ -558,9 +588,10 @@ class StructureGenerator extends LibraryGenerator return payloadSymbol.newInstance([ if (payloadMembers.isNotEmpty) Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p..name = 'b')) - ..body = block.build(), + (m) => + m + ..requiredParameters.add(Parameter((p) => p..name = 'b')) + ..body = block.build(), ).closure, ]).code; } @@ -588,26 +619,28 @@ class StructureGenerator extends LibraryGenerator ); } yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..name = 'labelFor' - ..requiredParameters.add( - Parameter( - (p) => p - ..type = DartTypes.core.string - ..name = 'key', - ), - ) - ..body = Block.of([ - const Code('switch (key) {'), - ...labelCases, - const Code('}'), - DartTypes.smithy.missingLabelException - .newInstance([refer('this'), refer('key')]) - .thrown - .statement, - ]), + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..name = 'labelFor' + ..requiredParameters.add( + Parameter( + (p) => + p + ..type = DartTypes.core.string + ..name = 'key', + ), + ) + ..body = Block.of([ + const Code('switch (key) {'), + ...labelCases, + const Code('}'), + DartTypes.smithy.missingLabelException + .newInstance([refer('this'), refer('key')]) + .thrown + .statement, + ]), ); } } @@ -615,17 +648,19 @@ class StructureGenerator extends LibraryGenerator /// Creates the static `serializers` field using the class names in /// [serializerClasses]. Field _serializersField(Iterable serializerClasses) => Field( - (f) => f + (f) => + f ..static = true ..modifier = FieldModifier.constant ..type = DartTypes.core.list( DartTypes.smithy.smithySerializer(payloadSymbol), ) ..name = 'serializers' - ..assignment = literalList( - serializerClasses.map((name) => refer(name).newInstance([])), - ).code, - ); + ..assignment = + literalList( + serializerClasses.map((name) => refer(name).newInstance([])), + ).code, + ); /// The `built_value` serializer class. Map get _serializerClasses { @@ -649,12 +684,13 @@ class StructureGenerator extends LibraryGenerator // `shapeId` getter yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.smithy.shapeId - ..type = MethodType.getter - ..name = 'shapeId' - ..body = shape.shapeId.constructed.code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.smithy.shapeId + ..type = MethodType.getter + ..name = 'shapeId' + ..body = shape.shapeId.constructed.code, ); // `message` getter @@ -662,30 +698,34 @@ class StructureGenerator extends LibraryGenerator .map((m) => m.dartName(ShapeType.structure)) .contains('message')) { yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string.boxed - ..name = 'message' - ..type = MethodType.getter - ..lambda = true - ..body = literalNull.code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string.boxed + ..name = 'message' + ..type = MethodType.getter + ..lambda = true + ..body = literalNull.code, ); } // `retryConfig` getter yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.smithy.retryConfig.boxed - ..name = 'retryConfig' - ..type = MethodType.getter - ..lambda = true - ..body = errorTraits.retryConfig == null - ? literalNull.code - : DartTypes.smithy.retryConfig.constInstance([], { - 'isThrottlingError': - literalBool(errorTraits.retryConfig!.isThrottlingError), - }).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.smithy.retryConfig.boxed + ..name = 'retryConfig' + ..type = MethodType.getter + ..lambda = true + ..body = + errorTraits.retryConfig == null + ? literalNull.code + : DartTypes.smithy.retryConfig.constInstance([], { + 'isThrottlingError': literalBool( + errorTraits.retryConfig!.isThrottlingError, + ), + }).code, ); // SmithyHttpException overrides @@ -695,8 +735,26 @@ class StructureGenerator extends LibraryGenerator .map((m) => m.dartName(ShapeType.structure)) .contains('statusCode')) { final statusCode = errorTraits.statusCode; - yield Method( - (m) { + yield Method((m) { + m + ..annotations.addAll([ + DartTypes.core.override, + DartTypes.builtValue.builtValueField.newInstance([], { + 'compare': literalFalse, + }), + ]) + ..returns = DartTypes.core.int.withBoxed(statusCode == null) + ..type = MethodType.getter + ..name = 'statusCode'; + + if (statusCode != null) { + m.body = literalNum(statusCode).code; + } + }); + } + + yield Method( + (m) => m ..annotations.addAll([ DartTypes.core.override, @@ -704,42 +762,22 @@ class StructureGenerator extends LibraryGenerator 'compare': literalFalse, }), ]) - ..returns = DartTypes.core.int.withBoxed(statusCode == null) + ..returns = + DartTypes.core + .map(DartTypes.core.string, DartTypes.core.string) + .boxed ..type = MethodType.getter - ..name = 'statusCode'; - - if (statusCode != null) { - m.body = literalNum(statusCode).code; - } - }, - ); - } - - yield Method( - (m) => m - ..annotations.addAll([ - DartTypes.core.override, - DartTypes.builtValue.builtValueField.newInstance([], { - 'compare': literalFalse, - }), - ]) - ..returns = DartTypes.core - .map( - DartTypes.core.string, - DartTypes.core.string, - ) - .boxed - ..type = MethodType.getter - ..name = 'headers', + ..name = 'headers', ); yield Method( - (m) => m - ..annotations.addAll([DartTypes.core.override]) - ..returns = DartTypes.core.exception.boxed - ..type = MethodType.getter - ..name = 'underlyingException' - ..body = literalNull.code, + (m) => + m + ..annotations.addAll([DartTypes.core.override]) + ..returns = DartTypes.core.exception.boxed + ..type = MethodType.getter + ..name = 'underlyingException' + ..body = literalNull.code, ); } @@ -784,8 +822,9 @@ class StructureGenerator extends LibraryGenerator yield putShape(payloadShape, payload); } else if (hasBuiltPayload) { for (final member in payloadMembers) { - final payloadProp = - payload.property(member.dartName(ShapeType.structure)); + final payloadProp = payload.property( + member.dartName(ShapeType.structure), + ); yield putShape(member, payloadProp); } } @@ -812,42 +851,54 @@ class StructureGenerator extends LibraryGenerator .property(prefixHeaders.member.dartName(ShapeType.structure)) .property('addEntries') .call([ - if (prefixHeaders.trait.value == '') - headersRef.property('entries') - else - headersRef - .property('entries') - .property('where') - .call([ - Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p.name = 'el')) - ..lambda = true - ..body = refer('el') - .property('key') - .property('startsWith') - .call([literalString(prefixHeaders.trait.value)]).code, - ).closure, - ]) - .property('map') - .call([ - Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p.name = 'el')) - ..lambda = true - ..body = DartTypes.core.mapEntry.newInstance([ - refer('el') - .property('key') - .property('replaceFirst') - .call([ - literalString(prefixHeaders.trait.value), - literalString(''), - ]), - refer('el').property('value'), - ]).code, - ).closure, - ]), - ]).statement; + if (prefixHeaders.trait.value == '') + headersRef.property('entries') + else + headersRef + .property('entries') + .property('where') + .call([ + Method( + (m) => + m + ..requiredParameters.add( + Parameter((p) => p.name = 'el'), + ) + ..lambda = true + ..body = + refer( + 'el', + ).property('key').property('startsWith').call([ + literalString(prefixHeaders.trait.value), + ]).code, + ).closure, + ]) + .property('map') + .call([ + Method( + (m) => + m + ..requiredParameters.add( + Parameter((p) => p.name = 'el'), + ) + ..lambda = true + ..body = + DartTypes.core.mapEntry.newInstance([ + refer('el') + .property('key') + .property('replaceFirst') + .call([ + literalString( + prefixHeaders.trait.value, + ), + literalString(''), + ]), + refer('el').property('value'), + ]).code, + ).closure, + ]), + ]) + .statement; } if (httpTraits is HttpInputTraits) { @@ -945,10 +996,7 @@ class StructureGenerator extends LibraryGenerator } else { addHeader = valueRef.assign(fromStringExp).statement; } - return addHeader.wrapWithBlockIf( - ref.notEqualTo(literalNull), - isNullable, - ); + return addHeader.wrapWithBlockIf(ref.notEqualTo(literalNull), isNullable); } /// Custom `toString` impl which mirrors the built_value impl but allows for @@ -961,7 +1009,8 @@ class StructureGenerator extends LibraryGenerator final members = isPayload ? payloadMembers : this.members; for (final member in members) { final dartName = member.dartName(ShapeType.structure); - final isSensitive = shape.hasTrait() || + final isSensitive = + shape.hasTrait() || member.hasTrait() || context.shapeFor(member.target).hasTrait(); final stringValue = @@ -972,16 +1021,15 @@ class StructureGenerator extends LibraryGenerator ]); } builder - ..addExpression( - declareFinal('helper').assign(helperExpression), - ) + ..addExpression(declareFinal('helper').assign(helperExpression)) ..addExpression(helper.property('toString').call([]).returned); return Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..name = 'toString' - ..body = builder.build(), + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..name = 'toString' + ..body = builder.build(), ); } } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/types.dart b/packages/smithy/smithy_codegen/lib/src/generator/types.dart index 3ec460dead..62efec6238 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/types.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/types.dart @@ -109,32 +109,31 @@ class _Core { /// Creates a [core.Iterable] reference. Reference iterable([Reference? ref]) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Iterable' ..url = _url - ..types.addAll([ - if (ref != null) ref, - ]), - ); + ..types.addAll([if (ref != null) ref]), + ); /// Creates a [core.List] reference. Reference list([Reference? ref]) => TypeReference( - (t) => t + (t) => + t ..symbol = 'List' ..url = _url - ..types.addAll([ - if (ref != null) ref, - ]), - ); + ..types.addAll([if (ref != null) ref]), + ); /// Creates a [core.Map] reference. Reference map(Reference key, Reference value) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Map' ..url = _url ..types.add(key) ..types.add(value), - ); + ); /// Creates an [core.MapEntry] reference. Reference get mapEntry => const Reference('MapEntry', _url); @@ -153,11 +152,12 @@ class _Core { /// Creates a [core.Set] reference. Reference set(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Set' ..url = _url ..types.add(ref), - ); + ); /// Create a [core.StateError] reference. Reference get stateError => const Reference('StateError', _url); @@ -183,21 +183,21 @@ class _Async { /// Creates a [Future] reference. Reference future(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Future' ..url = _url ..types.add(ref), - ); + ); /// Creates a [Stream] reference. Reference stream([Reference? ref]) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Stream' ..url = _url - ..types.addAll([ - if (ref != null) ref, - ]), - ); + ..types.addAll([if (ref != null) ref]), + ); /// Creates a `runZoned` refererence. Reference get runZoned => const Reference('runZoned', _url); @@ -211,11 +211,12 @@ class _AwsCommon { /// Creates an [aws_common.AWSEquatable] reference. Reference awsEquatable(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'AWSEquatable' ..url = _url ..types.add(ref), - ); + ); /// Creates an [aws_common.AWSHeaders] reference. Reference get awsHeaders => const Reference('AWSHeaders', _url); @@ -248,9 +249,8 @@ class _AwsCommon { const Reference('AWSStreamedHttpRequest', _url); /// Creates a secure [aws_common.uuid] instance. - Expression uuid() => const Reference('uuid', _url).call([], { - 'secure': literalTrue, - }); + Expression uuid() => + const Reference('uuid', _url).call([], {'secure': literalTrue}); } /// `package:aws_signature_v4` types. @@ -292,19 +292,21 @@ class BuiltValueType { /// Creates a [built_value.Built] reference for [ref] and its builder class, /// [builderRef]. Reference built(Reference ref, Reference builderRef) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Built' ..url = mainUrl ..types.addAll([ref, builderRef]), - ); + ); /// Creates a [built_collection.BuiltList] reference for generic type [ref]. Reference builtList(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'BuiltList' ..url = collectionUrl ..types.add(ref), - ); + ); /// Creates a [built_collection.BuiltListMultimap] reference with key [key] /// and [value] generic types. @@ -313,29 +315,32 @@ class BuiltValueType { /// a `BuiltListMultimap` which is the same a /// `Map>` when built. Reference builtListMultimap(Reference key, Reference value) => TypeReference( - (t) => t + (t) => + t ..symbol = 'BuiltListMultimap' ..url = collectionUrl ..types.addAll([key, value]), - ); + ); /// Creates a [built_collection.BuiltMap] reference with [key] and [value] /// generic types. Reference builtMap(Reference key, Reference value) => TypeReference( - (t) => t + (t) => + t ..symbol = 'BuiltMap' ..url = collectionUrl ..types.add(key) ..types.add(value), - ); + ); /// Creates a [built_collection.BuiltSet] reference for generic type [ref]. Reference builtSet(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'BuiltSet' ..url = collectionUrl ..types.add(ref), - ); + ); /// Creates a [built_collection.BuiltSetMultimap] reference with key [key] /// and [value] generic types. @@ -344,11 +349,12 @@ class BuiltValueType { /// a `BuiltSetMultimap` which is the same a /// `Map>` when built. Reference builtSetMultimap(Reference key, Reference value) => TypeReference( - (t) => t + (t) => + t ..symbol = 'BuiltSetMultimap' ..url = collectionUrl ..types.addAll([key, value]), - ); + ); /// Creates a [built_value_serializer.FullType] reference. Reference get fullType => const Reference('FullType', serializerUrl); @@ -358,28 +364,31 @@ class BuiltValueType { /// The builder for [built_collection.ListBuilder]. Reference listBuilder(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'ListBuilder' ..url = collectionUrl ..types.add(ref), - ); + ); /// The builder for [built_collection.BuiltListMultimap]. Reference listMultimapBuilder(Reference key, Reference value) => TypeReference( - (t) => t - ..symbol = 'ListMultimapBuilder' - ..url = collectionUrl - ..types.addAll([key, value]), + (t) => + t + ..symbol = 'ListMultimapBuilder' + ..url = collectionUrl + ..types.addAll([key, value]), ); /// The builder for [built_collection.MapBuilder]. Reference mapBuilder(Reference key, Reference value) => TypeReference( - (t) => t + (t) => + t ..symbol = 'MapBuilder' ..url = collectionUrl ..types.addAll([key, value]), - ); + ); /// Creates a [built_value.newBuiltValueToStringHelper] reference. Reference get newBuiltValueToStringHelper => @@ -388,27 +397,30 @@ class BuiltValueType { /// Creates a [built_value_serializer.PrimitiveSerializer] reference for /// generic type [ref]. Reference primitiveSerializer(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'PrimitiveSerializer' ..url = serializerUrl ..types.add(ref), - ); + ); /// The builder for [built_collection.SetBuilder]. Reference setBuilder(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'SetBuilder' ..url = collectionUrl ..types.add(ref), - ); + ); /// The builder for [built_collection.BuiltSetMultimap]. Reference setMultimapBuilder(Reference key, Reference value) => TypeReference( - (t) => t + (t) => + t ..symbol = 'SetMultimapBuilder' ..url = collectionUrl ..types.addAll([key, value]), - ); + ); /// Creates a [built_value_serializer.Serializers] reference. Reference get serializers => const Reference('Serializers', serializerUrl); @@ -496,11 +508,12 @@ class _Smithy { /// Creates a `smithy.Acceptor` reference. Reference acceptor(Reference input, Reference output) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Acceptor' ..types.addAll([input, output]) ..url = _url, - ); + ); /// Creates a [smithy.AcceptorState] reference. Reference get acceptorState => const Reference('AcceptorState', _url); @@ -527,11 +540,12 @@ class _Smithy { /// Creates a [smithy.HasPayload] reference for [ref], the payload type. Reference hasPayload(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'HasPayload' ..url = _url ..types.add(ref), - ); + ); /// Creates a [smithy.HttpServerBase] refererence. Reference get httpServerBase => const Reference('HttpServerBase', _url); @@ -555,19 +569,21 @@ class _Smithy { /// Creates a [smithy.HttpServer] refererence. Reference httpServer(Reference baseService) => TypeReference( - (t) => t + (t) => + t ..symbol = 'HttpServer' ..url = _url ..types.add(baseService), - ); + ); /// Creates a [smithy.HttpInput] reference for [ref], the input type. Reference httpInput(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'HttpInput' ..url = _url ..types.add(ref), - ); + ); /// Creates a [smithy.HttpOperation] reference for an operation with input /// payload type [inputPayload], input type [input], and output type [output]. @@ -576,13 +592,13 @@ class _Smithy { Reference input, Reference outputPayload, Reference output, - ) => - TypeReference( - (t) => t + ) => TypeReference( + (t) => + t ..symbol = 'HttpOperation' ..url = _url ..types.addAll([inputPayload, input, outputPayload, output]), - ); + ); /// Creates a [smithy.HttpProtocol] reference for an operation with input /// payload type [inputPayload], input type [input], and output type [output]. @@ -591,9 +607,9 @@ class _Smithy { Reference? input, Reference? outputPayload, Reference? output, - ]) => - TypeReference( - (t) => t + ]) => TypeReference( + (t) => + t ..symbol = 'HttpProtocol' ..url = _url ..types.addAll([ @@ -602,7 +618,7 @@ class _Smithy { if (outputPayload != null) outputPayload, if (output != null) output, ]), - ); + ); /// Creates a [smithy.HttpRequest] AST reference. Reference get httpRequest => const Reference('HttpRequest', _url); @@ -629,9 +645,9 @@ class _Smithy { Reference tokenSymbol, Reference pageSizeSymbol, Reference itemsSymbol, - ) => - TypeReference( - (t) => t + ) => TypeReference( + (t) => + t ..symbol = 'PaginatedHttpOperation' ..url = _url ..types.addAll([ @@ -643,20 +659,20 @@ class _Smithy { pageSizeSymbol, itemsSymbol, ]), - ); + ); /// Creates a [smithy.PaginatedResult] reference. Reference paginatedResult( Reference itemsRef, Reference pageSizeRef, Reference tokenRef, - ) => - TypeReference( - (t) => t + ) => TypeReference( + (t) => + t ..url = _url ..symbol = 'PaginatedResult' ..types.addAll([itemsRef, pageSizeRef, tokenRef]), - ); + ); /// Creates a [smithy.parseHeader] reference. Reference get parseHeader => const Reference('parseHeader', _url); @@ -664,13 +680,12 @@ class _Smithy { /// Creates a [smithy.PrimitiveSmithySerializer] reference for [ref], the /// class being serialized. Reference primitiveSmithySerializer([Reference? ref]) => TypeReference( - (t) => t + (t) => + t ..symbol = 'PrimitiveSmithySerializer' ..url = _url - ..types.addAll([ - if (ref != null) ref, - ]), - ); + ..types.addAll([if (ref != null) ref]), + ); /// Creates a [smithy.RpcRouter] reference. Reference get rpcRouter => const Reference('RpcRouter', _url); @@ -686,19 +701,21 @@ class _Smithy { /// Creates a [smithy.SmithyEnum] reference for [ref], the enum class. Reference smithyEnum(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'SmithyEnum' ..url = _url ..types.add(ref), - ); + ); /// Creates a [smithy.SmithyIntEnum] reference for [ref], the enum class. Reference smithyIntEnum(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'SmithyIntEnum' ..url = _url ..types.add(ref), - ); + ); /// Creates a [smithy.SmithyEnumSerializer] reference. Reference get smithyEnumSerializer => @@ -721,41 +738,41 @@ class _Smithy { /// Creates a [smithy.SmithyOperation] reference for an operation with output /// type [output]. Reference smithyOperation(Reference output) => TypeReference( - (t) => t + (t) => + t ..symbol = 'SmithyOperation' ..url = _url ..types.add(output), - ); + ); /// Creates a [smithy.SmithyUnion] reference for [ref], the union class. Reference smithyUnion(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'SmithyUnion' ..url = _url ..types.add(ref), - ); + ); /// Creates a [smithy.SmithySerializer] reference for [ref], the class being /// serialized. Reference smithySerializer([Reference? ref]) => TypeReference( - (t) => t + (t) => + t ..symbol = 'SmithySerializer' ..url = _url - ..types.addAll([ - if (ref != null) ref, - ]), - ); + ..types.addAll([if (ref != null) ref]), + ); /// Creates a [smithy.StructuredSmithySerializer] reference for [ref], the /// class being serialized. Reference structuredSmithySerializer([Reference? ref]) => TypeReference( - (t) => t + (t) => + t ..symbol = 'StructuredSmithySerializer' ..url = _url - ..types.addAll([ - if (ref != null) ref, - ]), - ); + ..types.addAll([if (ref != null) ref]), + ); /// Creates a [smithy.Timestamp] reference. Reference get timestamp => const Reference('Timestamp', _url); @@ -775,11 +792,12 @@ class _Smithy { /// Creates a `smithy.Waiter` reference. Reference waiter(Reference inputType, Reference outputType) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Waiter' ..types.addAll([inputType, outputType]) ..url = _url, - ); + ); /// Creates a [smithy.WithChecksum] reference. Reference get withChecksum => const Reference('WithChecksum', _url); diff --git a/packages/smithy/smithy_codegen/lib/src/generator/union_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/union_generator.dart index 16236e6bc3..32973d2cbb 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/union_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/union_generator.dart @@ -14,11 +14,8 @@ import 'package:smithy_codegen/src/util/symbol_ext.dart'; class UnionGenerator extends LibraryGenerator with UnionGenerationContext, NamedMembersGenerationContext { - UnionGenerator( - super.shape, - CodegenContext context, { - super.smithyLibrary, - }) : super(context: context); + UnionGenerator(super.shape, CodegenContext context, {super.smithyLibrary}) + : super(context: context); late final _serializers = [ for (final protocol in context.serviceProtocols) @@ -30,64 +27,55 @@ class UnionGenerator extends LibraryGenerator // Tracks the generated type. context.generatedTypes[symbol] ??= {}; - builder.body.addAll([ - _unionClass, - ..._variantClasses, - ..._serializers, - ]); + builder.body.addAll([_unionClass, ..._variantClasses, ..._serializers]); return builder.build(); } Class get _unionClass => Class( - (c) => c + (c) => + c ..docs.addAll([ if (shape.hasDocs(context)) shape.formattedDocs(context), ]) ..sealed = true ..name = className ..extend = DartTypes.smithy.smithyUnion(symbol) - ..constructors.addAll([ - _privateConstructor, - ..._factoryConstructors, - ]) - ..methods.addAll([ - ..._variantGetters, - _valueGetter, - _toString, - ]) - ..fields.addAll([ - _serializersField, - ]), - ); + ..constructors.addAll([_privateConstructor, ..._factoryConstructors]) + ..methods.addAll([..._variantGetters, _valueGetter, _toString]) + ..fields.addAll([_serializersField]), + ); /// Prevents initialization of the class, except via [_factoryConstructors]. Constructor get _privateConstructor => Constructor( - (c) => c + (c) => + c ..constant = true ..name = '_', - ); + ); /// The getter fields for members. Iterable get _variantGetters sync* { for (final member in members) { yield Method( - (m) => m - ..docs.addAll([ - if (member.hasDocs(context)) member.formattedDocs(context), - ]) - ..returns = memberSymbols[member]!.boxed - ..type = MethodType.getter - ..name = variantName(member) - ..lambda = true - ..body = literalNull.code, + (m) => + m + ..docs.addAll([ + if (member.hasDocs(context)) member.formattedDocs(context), + ]) + ..returns = memberSymbols[member]!.boxed + ..type = MethodType.getter + ..name = variantName(member) + ..lambda = true + ..body = literalNull.code, ); } } /// The `value` override. Method get _valueGetter => Method( - (m) => m + (m) => + m ..annotations.add(DartTypes.core.override) ..returns = DartTypes.core.object ..type = MethodType.getter @@ -104,7 +92,7 @@ class UnionGenerator extends LibraryGenerator })!.code, refer(')').nullChecked.code, ]), - ); + ); /// Factory constructors for each member. Iterable get _factoryConstructors sync* { @@ -128,23 +116,27 @@ class UnionGenerator extends LibraryGenerator c.optionalParameters.addAll( structGenerator.members.map(structGenerator.memberParameter), ); - final memberNames = structGenerator.members - .map((member) => member.dartName(ShapeType.structure)); - final constructorInvocation = - structGenerator.symbol.newInstance([], { - for (final member in memberNames) member: refer(member), - }); + final memberNames = structGenerator.members.map( + (member) => member.dartName(ShapeType.structure), + ); + final constructorInvocation = structGenerator.symbol.newInstance( + [], + {for (final member in memberNames) member: refer(member)}, + ); c ..lambda = true - ..body = refer(variantClassName(member)) - .newInstance([constructorInvocation]).code; + ..body = + refer( + variantClassName(member), + ).newInstance([constructorInvocation]).code; case _: if (member.target != Shape.unit) { c.requiredParameters.add( Parameter( - (p) => p - ..type = transformedSymbol.unboxed - ..name = variantName(member), + (p) => + p + ..type = transformedSymbol.unboxed + ..name = variantName(member), ), ); } @@ -154,39 +146,45 @@ class UnionGenerator extends LibraryGenerator } yield Constructor( - (c) => c - ..constant = true - ..factory = true - ..name = sdkUnknown - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..type = DartTypes.core.string - ..name = 'name', - ), - Parameter( - (p) => p - ..type = unknownMemberSymbol - ..name = 'value', - ), - ]) - ..redirect = refer(variantClassName(unknownMember)), + (c) => + c + ..constant = true + ..factory = true + ..name = sdkUnknown + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..type = DartTypes.core.string + ..name = 'name', + ), + Parameter( + (p) => + p + ..type = unknownMemberSymbol + ..name = 'value', + ), + ]) + ..redirect = refer(variantClassName(unknownMember)), ); } /// All the serializers for the union. Field get _serializersField => Field( - (f) => f + (f) => + f ..static = true ..modifier = FieldModifier.constant - ..type = - DartTypes.core.list(DartTypes.smithy.smithySerializer(symbol)) + ..type = DartTypes.core.list( + DartTypes.smithy.smithySerializer(symbol), + ) ..name = 'serializers' - ..assignment = literalConstList([ - for (final serializer in _serializers) - refer(serializer.name).constInstance([]), - ]).code, - ); + ..assignment = + literalConstList([ + for (final serializer in _serializers) + refer(serializer.name).constInstance([]), + ]).code, + ); /// Factory constructors for each member. Iterable get _variantClasses sync* { @@ -196,50 +194,53 @@ class UnionGenerator extends LibraryGenerator final requiresTransformation = memberSymbol != transformedSymbol; final variantName = this.variantName(member); final ctor = Constructor( - (ctor) => ctor - ..constant = !requiresTransformation - ..requiredParameters.addAll([ - if (requiresTransformation) - Parameter( - (p) => p - ..type = transformedSymbol - ..name = variantName, - ) - else if (member.target != Shape.unit) - Parameter( - (p) => p - ..toThis = true - ..name = variantName, - ), - ]) - ..initializers.addAll([ - if (requiresTransformation) - refer('this').property('_').call([ - member.transformFromFriendly( - name: variantName, - isNullable: false, - ), - ]).code - else - refer('super').property('_').call([]).code, - ]), + (ctor) => + ctor + ..constant = !requiresTransformation + ..requiredParameters.addAll([ + if (requiresTransformation) + Parameter( + (p) => + p + ..type = transformedSymbol + ..name = variantName, + ) + else if (member.target != Shape.unit) + Parameter( + (p) => + p + ..toThis = true + ..name = variantName, + ), + ]) + ..initializers.addAll([ + if (requiresTransformation) + refer('this').property('_').call([ + member.transformFromFriendly( + name: variantName, + isNullable: false, + ), + ]).code + else + refer('super').property('_').call([]).code, + ]), ); Constructor? privateConstructor; if (requiresTransformation) { privateConstructor = Constructor( - (ctor) => ctor - ..constant = true - ..name = '_' - ..requiredParameters.add( - Parameter( - (p) => p - ..toThis = true - ..name = variantName, - ), - ) - ..initializers.add( - refer('super').property('_').call([]).code, - ), + (ctor) => + ctor + ..constant = true + ..name = '_' + ..requiredParameters.add( + Parameter( + (p) => + p + ..toThis = true + ..name = variantName, + ), + ) + ..initializers.add(refer('super').property('_').call([]).code), ); } yield Class((c) { @@ -254,32 +255,35 @@ class UnionGenerator extends LibraryGenerator ..fields.addAll([ if (member.target != Shape.unit) Field( - (f) => f - ..modifier = FieldModifier.final$ - ..annotations.add(DartTypes.core.override) - ..name = variantName - ..type = memberSymbol, + (f) => + f + ..modifier = FieldModifier.final$ + ..annotations.add(DartTypes.core.override) + ..name = variantName + ..type = memberSymbol, ), ]) ..methods.addAll([ Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..name = 'name' - ..type = MethodType.getter - ..lambda = true - ..body = literalString(member.memberName).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..name = 'name' + ..type = MethodType.getter + ..lambda = true + ..body = literalString(member.memberName).code, ), if (member.target == Shape.unit) Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = memberSymbol - ..name = variantName - ..type = MethodType.getter - ..lambda = true - ..body = DartTypes.smithy.unit.constInstance([]).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = memberSymbol + ..name = variantName + ..type = MethodType.getter + ..lambda = true + ..body = DartTypes.smithy.unit.constInstance([]).code, ), ]); }); @@ -287,45 +291,51 @@ class UnionGenerator extends LibraryGenerator // Unknown constructor final ctor = Constructor( - (ctor) => ctor - ..constant = true - ..requiredParameters.addAll([ - Parameter( - (p) => p - ..toThis = true - ..name = 'name', - ), - Parameter( - (p) => p - ..toThis = true - ..name = 'value', - ), - ]) - ..initializers.add(refer('super').property('_').call([]).code), + (ctor) => + ctor + ..constant = true + ..requiredParameters.addAll([ + Parameter( + (p) => + p + ..toThis = true + ..name = 'name', + ), + Parameter( + (p) => + p + ..toThis = true + ..name = 'value', + ), + ]) + ..initializers.add(refer('super').property('_').call([]).code), ); final value = Field( - (f) => f - ..modifier = FieldModifier.final$ - ..annotations.add(DartTypes.core.override) - ..name = 'value' - ..type = unknownMemberSymbol, + (f) => + f + ..modifier = FieldModifier.final$ + ..annotations.add(DartTypes.core.override) + ..name = 'value' + ..type = unknownMemberSymbol, ); yield Class( - (c) => c - ..name = variantClassName(unknownMember) - ..modifier = ClassModifier.final$ - ..extend = symbol - ..constructors.add(ctor) - ..fields.addAll([ - Field( - (f) => f - ..modifier = FieldModifier.final$ - ..annotations.add(DartTypes.core.override) - ..name = 'name' - ..type = DartTypes.core.string, - ), - value, - ]), + (c) => + c + ..name = variantClassName(unknownMember) + ..modifier = ClassModifier.final$ + ..extend = symbol + ..constructors.add(ctor) + ..fields.addAll([ + Field( + (f) => + f + ..modifier = FieldModifier.final$ + ..annotations.add(DartTypes.core.override) + ..name = 'name' + ..type = DartTypes.core.string, + ), + value, + ]), ); } @@ -334,8 +344,9 @@ class UnionGenerator extends LibraryGenerator final helper = refer('helper'); builder.addExpression( declareFinal('helper').assign( - DartTypes.builtValue.newBuiltValueToStringHelper - .call([literalString(className, raw: true)]), + DartTypes.builtValue.newBuiltValueToStringHelper.call([ + literalString(className, raw: true), + ]), ), ); // Add a check for every member instead of doing helper.add(name, value) @@ -343,7 +354,8 @@ class UnionGenerator extends LibraryGenerator // to consider when logging. for (final member in members) { final dartName = member.dartName(ShapeType.union); - final isSensitive = shape.hasTrait() || + final isSensitive = + shape.hasTrait() || member.hasTrait() || context.shapeFor(member.target).hasTrait(); final stringValue = @@ -351,21 +363,19 @@ class UnionGenerator extends LibraryGenerator builder.statements.add( helper .property('add') - .call([ - literalString(dartName, raw: true), - stringValue, - ]) + .call([literalString(dartName, raw: true), stringValue]) .statement .wrapWithBlockIf(refer(dartName).notEqualTo(literalNull), true), ); } builder.addExpression(helper.property('toString').call([]).returned); return Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..name = 'toString' - ..body = builder.build(), + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..name = 'toString' + ..body = builder.build(), ); } } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/visitors/library_visitor.dart b/packages/smithy/smithy_codegen/lib/src/generator/visitors/library_visitor.dart index 9778087c8b..987d396ee9 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/visitors/library_visitor.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/visitors/library_visitor.dart @@ -32,10 +32,7 @@ class LibraryVisitor extends DefaultVisitor> { Library library, { SmithyLibrary? smithyLibrary, }) => - GeneratedLibrary( - smithyLibrary ?? shape.smithyLibrary(context), - library, - ); + GeneratedLibrary(smithyLibrary ?? shape.smithyLibrary(context), library); @override Iterable operationShape( @@ -48,10 +45,7 @@ class LibraryVisitor extends DefaultVisitor> { seen.add(shape.shapeId); // Build the operation class. - yield _buildLibrary( - shape, - OperationGenerator(shape, context).generate(), - ); + yield _buildLibrary(shape, OperationGenerator(shape, context).generate()); // Build the waiters, if any // if (shape.hasTrait()) { @@ -75,11 +69,12 @@ class LibraryVisitor extends DefaultVisitor> { libraryType: SmithyLibrary_LibraryType.TEST, filename: shape.dartName(context), ); - final generated = OperationTestGenerator( - shape, - context, - smithyLibrary: testLibrary, - ).generate(); + final generated = + OperationTestGenerator( + shape, + context, + smithyLibrary: testLibrary, + ).generate(); if (generated != null) { yield GeneratedLibrary( testLibrary, @@ -89,11 +84,12 @@ class LibraryVisitor extends DefaultVisitor> { } // Build the input, output and error shapes - final shapes = [ - if (shape.input != null) shape.input!.target, - if (shape.output != null) shape.output!.target, - ...shape.errors.map((ref) => ref.target), - ].map(context.shapeFor).cast(); + final shapes = + [ + if (shape.input != null) shape.input!.target, + if (shape.output != null) shape.output!.target, + ...shape.errors.map((ref) => ref.target), + ].map(context.shapeFor).cast(); for (final child in shapes) { yield* structureShape(child); @@ -142,10 +138,7 @@ class LibraryVisitor extends DefaultVisitor> { final endpointResolver = EndpointResolverGenerator(shape, context).generate(); if (endpointResolver != null) { - yield GeneratedLibrary( - context.endpointResolverLibrary, - endpointResolver, - ); + yield GeneratedLibrary(context.endpointResolverLibrary, endpointResolver); } // Build top-level service library (should be last thing built) @@ -228,10 +221,7 @@ class LibraryVisitor extends DefaultVisitor> { yield* _foreignMembers(shape.members.values.map((member) => member.target)); if (!context.hasSymbolOverrideFor(shape)) { - yield _buildLibrary( - shape, - StructureGenerator(shape, context).generate(), - ); + yield _buildLibrary(shape, StructureGenerator(shape, context).generate()); } } @@ -253,13 +243,16 @@ class LibraryVisitor extends DefaultVisitor> { } Iterable _foreignMembers(Iterable shapeIds) { - return shapeIds.map(context.shapeFor).expand((shape) { - if (shape is CollectionShape) { - return [context.shapeFor(shape.member.target)]; - } else if (shape is MapShape) { - return [shape.key.target, shape.value.target].map(context.shapeFor); - } - return [shape]; - }).expand((shape) => shape.accept(this) ?? const []); + return shapeIds + .map(context.shapeFor) + .expand((shape) { + if (shape is CollectionShape) { + return [context.shapeFor(shape.member.target)]; + } else if (shape is MapShape) { + return [shape.key.target, shape.value.target].map(context.shapeFor); + } + return [shape]; + }) + .expand((shape) => shape.accept(this) ?? const []); } } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/visitors/symbol_visitor.dart b/packages/smithy/smithy_codegen/lib/src/generator/visitors/symbol_visitor.dart index fcbedaef48..fd8fed2986 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/visitors/symbol_visitor.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/visitors/symbol_visitor.dart @@ -47,20 +47,29 @@ class SymbolVisitor extends CategoryShapeVisitor { final valueSymbol = context .symbolFor(listShape.member.target, listShape) .withBoxed(listShape.member.isNullable(context, listShape)); - final type = - DartTypes.builtValue.builtListMultimap(keySymbol, valueSymbol); - final builder = - DartTypes.builtValue.listMultimapBuilder(keySymbol, valueSymbol); + final type = DartTypes.builtValue.builtListMultimap( + keySymbol, + valueSymbol, + ); + final builder = DartTypes.builtValue.listMultimapBuilder( + keySymbol, + valueSymbol, + ); context.builderFactories[type.unboxed] = builder.property('new'); return type; case ShapeType.set: - final valueSymbol = context - .symbolFor((valueShape as SetShape).member.target, valueShape) - .unboxed; // Sets cannot have nullable values - final type = - DartTypes.builtValue.builtSetMultimap(keySymbol, valueSymbol); - final builder = - DartTypes.builtValue.setMultimapBuilder(keySymbol, valueSymbol); + final valueSymbol = + context + .symbolFor((valueShape as SetShape).member.target, valueShape) + .unboxed; // Sets cannot have nullable values + final type = DartTypes.builtValue.builtSetMultimap( + keySymbol, + valueSymbol, + ); + final builder = DartTypes.builtValue.setMultimapBuilder( + keySymbol, + valueSymbol, + ); context.builderFactories[type.unboxed] = builder.property('new'); return type; default: @@ -152,9 +161,10 @@ class SymbolVisitor extends CategoryShapeVisitor { /// Creates a new symbol from shape, with its own definition file. Reference createSymbol(Shape shape) { return TypeReference( - (t) => t - ..symbol = shape.escapedClassName(context) - ..url = shape.libraryUrl(context), + (t) => + t + ..symbol = shape.escapedClassName(context) + ..url = shape.libraryUrl(context), ); } diff --git a/packages/smithy/smithy_codegen/lib/src/generator/waiter_generator.dart b/packages/smithy/smithy_codegen/lib/src/generator/waiter_generator.dart index 3d1dd2d4d6..704e496ce5 100644 --- a/packages/smithy/smithy_codegen/lib/src/generator/waiter_generator.dart +++ b/packages/smithy/smithy_codegen/lib/src/generator/waiter_generator.dart @@ -15,10 +15,7 @@ import 'package:smithy_codegen/src/util/symbol_ext.dart'; class WaiterGenerator extends LibraryGenerator with OperationGenerationContext { - WaiterGenerator( - super.shape, { - required super.context, - }); + WaiterGenerator(super.shape, {required super.context}); late final WaitableTrait trait = shape.expectTrait(); @@ -42,41 +39,47 @@ class WaiterGenerator extends LibraryGenerator ); final acceptors = waiter.acceptors.map(buildAcceptor).toList(); yield Class( - (c) => c - ..name = '${waiterName.pascalCase}Waiter' - ..extend = DartTypes.smithy.waiter( - inputSymbol, - outputSymbol, - ) - ..methods.addAll(waiterMethods(waiter, acceptors)) - ..constructors.add( - Constructor( - (c) => c - ..optionalParameters.addAll([ - Parameter( - (p) => p - ..required = true - ..type = DartTypes.core.duration - ..named = true - ..name = 'timeout', - ), - ...constructorParams, - ]) - ..initializers.add( - refer('super').call([], { - 'timeout': refer('timeout'), - 'operationBuilder': Method( - (m) => m - ..lambda = true - ..body = symbol.newInstance([], { - for (final parameter in constructorParams) - parameter.name: refer(parameter.name), - }).code, - ).closure, - }).code, + (c) => + c + ..name = '${waiterName.pascalCase}Waiter' + ..extend = DartTypes.smithy.waiter(inputSymbol, outputSymbol) + ..methods.addAll(waiterMethods(waiter, acceptors)) + ..constructors.add( + Constructor( + (c) => + c + ..optionalParameters.addAll([ + Parameter( + (p) => + p + ..required = true + ..type = DartTypes.core.duration + ..named = true + ..name = 'timeout', + ), + ...constructorParams, + ]) + ..initializers.add( + refer('super').call([], { + 'timeout': refer('timeout'), + 'operationBuilder': + Method( + (m) => + m + ..lambda = true + ..body = + symbol.newInstance([], { + for (final parameter + in constructorParams) + parameter.name: refer( + parameter.name, + ), + }).code, + ).closure, + }).code, + ), ), - ), - ), + ), ); yield* acceptors; } @@ -84,21 +87,20 @@ class WaiterGenerator extends LibraryGenerator Iterable waiterMethods(Waiter waiter, List acceptors) sync* { yield Method( - (m) => m - ..name = 'acceptors' - ..annotations.add(DartTypes.core.override) - ..type = MethodType.getter - ..returns = DartTypes.core.list( - DartTypes.smithy.acceptor( - inputSymbol, - outputSymbol, - ), - ) - ..lambda = true - ..body = literalConstList([ - for (final acceptor in acceptors) - refer(acceptor.name).constInstance([]), - ]).code, + (m) => + m + ..name = 'acceptors' + ..annotations.add(DartTypes.core.override) + ..type = MethodType.getter + ..returns = DartTypes.core.list( + DartTypes.smithy.acceptor(inputSymbol, outputSymbol), + ) + ..lambda = true + ..body = + literalConstList([ + for (final acceptor in acceptors) + refer(acceptor.name).constInstance([]), + ]).code, ); // Operation methods @@ -109,14 +111,16 @@ class WaiterGenerator extends LibraryGenerator (e) => errorTypeNames.any(e.shapeId.toString().contains), ); yield Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..type = MethodType.getter - ..returns = DartTypes.core.list(DartTypes.smithy.smithyError) - ..name = 'errorTypes' - ..body = literalConstList([ - for (final errorType in errorTypes) errorType.constInstance, - ]).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..type = MethodType.getter + ..returns = DartTypes.core.list(DartTypes.smithy.smithyError) + ..name = 'errorTypes' + ..body = + literalConstList([ + for (final errorType in errorTypes) errorType.constInstance, + ]).code, ); } @@ -140,9 +144,7 @@ class WaiterGenerator extends LibraryGenerator context: context, input: inputShape, output: outputShape, - ).visit( - parse(matcher.path), - ); + ).visit(parse(matcher.path)); case MatcherType.output: matcher = acceptor.matcher.output!; valueExpression = JmespathExpressionVisitor( @@ -150,9 +152,7 @@ class WaiterGenerator extends LibraryGenerator input: inputShape, output: outputShape, base: output, - ).visit( - parse(matcher.path), - ); + ).visit(parse(matcher.path)); } final builder = BlockBuilder(); @@ -170,22 +170,30 @@ class WaiterGenerator extends LibraryGenerator builder.addExpression(value.returned); case PathComparator.allStringEquals: case PathComparator.anyStringEquals: - final comparator = matcher.comparator == PathComparator.allStringEquals - ? 'every' - : 'any'; + final comparator = + matcher.comparator == PathComparator.allStringEquals + ? 'every' + : 'any'; builder.addExpression( value .isA(DartTypes.core.list(DartTypes.core.string)) .and( - value.property('isNotEmpty').and( + value + .property('isNotEmpty') + .and( value.property(comparator).call([ Method( - (m) => m - ..requiredParameters - .add(Parameter((p) => p..name = 'el')) - ..body = refer('el') - .equalTo(literalString(matcher.expected)) - .code, + (m) => + m + ..requiredParameters.add( + Parameter((p) => p..name = 'el'), + ) + ..body = + refer('el') + .equalTo( + literalString(matcher.expected), + ) + .code, ).closure, ]), ), @@ -233,42 +241,48 @@ class WaiterGenerator extends LibraryGenerator ..constructors.add(Constructor((c) => c..constant = true)) ..methods.addAll([ Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.smithy.acceptorState - ..type = MethodType.getter - ..name = 'state' - ..body = DartTypes.smithy.acceptorState - .property(acceptor.state.name) - .code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.smithy.acceptorState + ..type = MethodType.getter + ..name = 'state' + ..body = + DartTypes.smithy.acceptorState + .property(acceptor.state.name) + .code, ), Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.bool - ..name = 'matches' - ..optionalParameters.addAll([ - Parameter( - (p) => p - ..type = inputSymbol - ..required = true - ..name = 'input' - ..named = true, - ), - Parameter( - (p) => p - ..type = outputSymbol.boxed - ..name = 'output' - ..named = true, - ), - Parameter( - (p) => p - ..type = DartTypes.smithy.smithyException.boxed - ..name = 'exception' - ..named = true, - ), - ]) - ..body = matchesBody(acceptor), + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.bool + ..name = 'matches' + ..optionalParameters.addAll([ + Parameter( + (p) => + p + ..type = inputSymbol + ..required = true + ..name = 'input' + ..named = true, + ), + Parameter( + (p) => + p + ..type = outputSymbol.boxed + ..name = 'output' + ..named = true, + ), + Parameter( + (p) => + p + ..type = DartTypes.smithy.smithyException.boxed + ..name = 'exception' + ..named = true, + ), + ]) + ..body = matchesBody(acceptor), ), ]); }); diff --git a/packages/smithy/smithy_codegen/lib/src/jmespath/expression_visitor.dart b/packages/smithy/smithy_codegen/lib/src/jmespath/expression_visitor.dart index 90b0c5952c..41378994bf 100644 --- a/packages/smithy/smithy_codegen/lib/src/jmespath/expression_visitor.dart +++ b/packages/smithy/smithy_codegen/lib/src/jmespath/expression_visitor.dart @@ -80,19 +80,14 @@ class JmespathExpressionVisitor extends JmesVisitor { final parentExp = visit(parentNode); final childExp = visit(node.children[1]); final codeExp = CodeExpression( - Block.of([ - parentExp.code, - const Code('.'), - childExp.code, - ]), + Block.of([parentExp.code, const Code('.'), childExp.code]), ); if ((_root == node && base != null) || parentNode.value == 'input' || parentNode.value == 'output') { - final path = buildEmitter(Allocator.none) - .visitCodeExpression(codeExp) - .toString() - .replaceAll(RegExp(r'\s'), ''); + final path = buildEmitter( + Allocator.none, + ).visitCodeExpression(codeExp).toString().replaceAll(RegExp(r'\s'), ''); final shape = parentNode.value == 'input' ? input : output; final item = shape.parsePathToExpression(context, path); var expression = item.buildExpression( diff --git a/packages/smithy/smithy_codegen/lib/src/model/smithy_library.dart b/packages/smithy/smithy_codegen/lib/src/model/smithy_library.dart index 14ed50fa24..1e58bcafba 100644 --- a/packages/smithy/smithy_codegen/lib/src/model/smithy_library.dart +++ b/packages/smithy/smithy_codegen/lib/src/model/smithy_library.dart @@ -13,34 +13,23 @@ extension SmithyLibraryX on SmithyLibrary { required SmithyLibrary_LibraryType libraryType, required String filename, String? basePath, - }) => - SmithyLibrary( - packageName: _sanitize(packageName), - serviceName: _sanitize(serviceName), - libraryType: libraryType, - filename: _sanitizeFilename(libraryType, filename), - basePath: basePath != null && !basePath.endsWith('/') - ? '$basePath/' - : basePath, - ); + }) => SmithyLibrary( + packageName: _sanitize(packageName), + serviceName: _sanitize(serviceName), + libraryType: libraryType, + filename: _sanitizeFilename(libraryType, filename), + basePath: + basePath != null && !basePath.endsWith('/') ? '$basePath/' : basePath, + ); /// Creates a [SmithyLibrary] from a [libraryName]. - static SmithyLibrary fromLibraryName( - String libraryName, { - String? basePath, - }) { + static SmithyLibrary fromLibraryName(String libraryName, {String? basePath}) { final parts = libraryName.split('.'); - return fromParts( - parts, - basePath: basePath, - ); + return fromParts(parts, basePath: basePath); } /// Creates a [SmithyLibrary] from the segments of its library name. - static SmithyLibrary fromParts( - List parts, { - String? basePath, - }) { + static SmithyLibrary fromParts(List parts, {String? basePath}) { switch (parts.length) { case 2: const libraryType = SmithyLibrary_LibraryType.SERVICE; @@ -52,9 +41,10 @@ extension SmithyLibraryX on SmithyLibrary { basePath: basePath, ); case 3: - final libraryType = _clientRegex.hasMatch(parts[2]) - ? SmithyLibrary_LibraryType.CLIENT - : SmithyLibrary_LibraryType.SERVER; + final libraryType = + _clientRegex.hasMatch(parts[2]) + ? SmithyLibrary_LibraryType.CLIENT + : SmithyLibrary_LibraryType.SERVER; return SmithyLibrary( packageName: _sanitize(parts[0]), serviceName: _sanitize(parts[1]), @@ -63,8 +53,9 @@ extension SmithyLibraryX on SmithyLibrary { basePath: basePath, ); case 4: - var libraryType = SmithyLibrary_LibraryType.values - .firstWhere((el) => _sanitize(el.name) == _sanitize(parts[2])); + var libraryType = SmithyLibrary_LibraryType.values.firstWhere( + (el) => _sanitize(el.name) == _sanitize(parts[2]), + ); final filename = _sanitizeFilename(libraryType, parts[3]); if (libraryType == SmithyLibrary_LibraryType.OPERATION && filename.contains('waiters')) { @@ -83,8 +74,10 @@ extension SmithyLibraryX on SmithyLibrary { } // Used to match client filenames and library names. - static final _clientRegex = - RegExp(r'client(?:\.dart)?$', caseSensitive: false); + static final _clientRegex = RegExp( + r'client(?:\.dart)?$', + caseSensitive: false, + ); /// Creates a [SmithyLibrary] from a `lib/`-relative [path]. static SmithyLibrary fromPath( @@ -104,15 +97,12 @@ extension SmithyLibraryX on SmithyLibrary { } final basePathLength = (basePath ?? '').split('/').length; - return fromParts( - [ - packageName, - ...parts.whereIndexed((index, part) { - return index > basePathLength || part != 'src'; - }), - ], - basePath: basePath, - ); + return fromParts([ + packageName, + ...parts.whereIndexed((index, part) { + return index > basePathLength || part != 'src'; + }), + ], basePath: basePath); } static String _sanitizeFilename( diff --git a/packages/smithy/smithy_codegen/lib/src/service/codegen.pb.dart b/packages/smithy/smithy_codegen/lib/src/service/codegen.pb.dart index a587c1322f..c2132a7246 100644 --- a/packages/smithy/smithy_codegen/lib/src/service/codegen.pb.dart +++ b/packages/smithy/smithy_codegen/lib/src/service/codegen.pb.dart @@ -11,45 +11,52 @@ import 'codegen.pbenum.dart'; export 'codegen.pbenum.dart'; class SmithyLibrary extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'SmithyLibrary', - createEmptyInstance: create) - ..aOS( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'packageName', - protoName: 'packageName') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName', - protoName: 'serviceName') - ..e( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'libraryType', - $pb.PbFieldType.OE, - protoName: 'libraryType', - defaultOrMaker: SmithyLibrary_LibraryType.MODEL, - valueOf: SmithyLibrary_LibraryType.valueOf, - enumValues: SmithyLibrary_LibraryType.values) - ..aOS( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'filename') - ..aOS( - 5, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'basePath', - protoName: 'basePath') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = + $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'SmithyLibrary', + createEmptyInstance: create, + ) + ..aOS( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'packageName', + protoName: 'packageName', + ) + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'serviceName', + protoName: 'serviceName', + ) + ..e( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'libraryType', + $pb.PbFieldType.OE, + protoName: 'libraryType', + defaultOrMaker: SmithyLibrary_LibraryType.MODEL, + valueOf: SmithyLibrary_LibraryType.valueOf, + enumValues: SmithyLibrary_LibraryType.values, + ) + ..aOS( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'filename', + ) + ..aOS( + 5, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'basePath', + protoName: 'basePath', + ) + ..hasRequiredFields = false; SmithyLibrary._() : super(); factory SmithyLibrary({ @@ -77,19 +84,25 @@ class SmithyLibrary extends $pb.GeneratedMessage { } return _result; } - factory SmithyLibrary.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory SmithyLibrary.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory SmithyLibrary.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); + factory SmithyLibrary.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version', + ) SmithyLibrary clone() => SmithyLibrary()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version', + ) SmithyLibrary copyWith(void Function(SmithyLibrary) updates) => super.copyWith((message) => updates(message as SmithyLibrary)) as SmithyLibrary; // ignore: deprecated_member_use @@ -100,8 +113,10 @@ class SmithyLibrary extends $pb.GeneratedMessage { static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static SmithyLibrary getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static SmithyLibrary getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( + create, + ); static SmithyLibrary? _defaultInstance; @$pb.TagNumber(1) @@ -166,31 +181,36 @@ class SmithyLibrary extends $pb.GeneratedMessage { } class CodegenRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CodegenRequest', - createEmptyInstance: create) - ..m<$core.String, $core.String>( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'settings', - entryClassName: 'CodegenRequest.SettingsEntry', - keyFieldType: $pb.PbFieldType.OS, - valueFieldType: $pb.PbFieldType.OS) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'serviceName', - protoName: 'serviceName') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'json') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = + $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'CodegenRequest', + createEmptyInstance: create, + ) + ..m<$core.String, $core.String>( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'settings', + entryClassName: 'CodegenRequest.SettingsEntry', + keyFieldType: $pb.PbFieldType.OS, + valueFieldType: $pb.PbFieldType.OS, + ) + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'serviceName', + protoName: 'serviceName', + ) + ..aOS( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'json', + ) + ..hasRequiredFields = false; CodegenRequest._() : super(); factory CodegenRequest({ @@ -210,19 +230,25 @@ class CodegenRequest extends $pb.GeneratedMessage { } return _result; } - factory CodegenRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CodegenRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory CodegenRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); + factory CodegenRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version', + ) CodegenRequest clone() => CodegenRequest()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version', + ) CodegenRequest copyWith(void Function(CodegenRequest) updates) => super.copyWith((message) => updates(message as CodegenRequest)) as CodegenRequest; // ignore: deprecated_member_use @@ -233,8 +259,10 @@ class CodegenRequest extends $pb.GeneratedMessage { static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static CodegenRequest getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static CodegenRequest getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( + create, + ); static CodegenRequest? _defaultInstance; @$pb.TagNumber(1) @@ -266,23 +294,27 @@ class CodegenRequest extends $pb.GeneratedMessage { } class CodegenResponse_Library extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CodegenResponse.Library', - createEmptyInstance: create) - ..aOM( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'metadata', - subBuilder: SmithyLibrary.create) - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'definition') - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = + $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'CodegenResponse.Library', + createEmptyInstance: create, + ) + ..aOM( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'metadata', + subBuilder: SmithyLibrary.create, + ) + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'definition', + ) + ..hasRequiredFields = false; CodegenResponse_Library._() : super(); factory CodegenResponse_Library({ @@ -298,22 +330,29 @@ class CodegenResponse_Library extends $pb.GeneratedMessage { } return _result; } - factory CodegenResponse_Library.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CodegenResponse_Library.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory CodegenResponse_Library.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); + factory CodegenResponse_Library.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version', + ) CodegenResponse_Library clone() => CodegenResponse_Library()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version', + ) CodegenResponse_Library copyWith( - void Function(CodegenResponse_Library) updates) => + void Function(CodegenResponse_Library) updates, + ) => super.copyWith((message) => updates(message as CodegenResponse_Library)) as CodegenResponse_Library; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @@ -323,8 +362,9 @@ class CodegenResponse_Library extends $pb.GeneratedMessage { static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static CodegenResponse_Library getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static CodegenResponse_Library getDefault() => + _defaultInstance ??= $pb + .GeneratedMessage.$_defaultFor(create); static CodegenResponse_Library? _defaultInstance; @$pb.TagNumber(1) @@ -355,34 +395,40 @@ class CodegenResponse_Library extends $pb.GeneratedMessage { } class CodegenResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo( - const $core.bool.fromEnvironment('protobuf.omit_message_names') - ? '' - : 'CodegenResponse', - createEmptyInstance: create) - ..aOB( - 1, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'success') - ..aOS( - 2, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'error') - ..aOS( - 3, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'pubspec') - ..pc( - 4, - const $core.bool.fromEnvironment('protobuf.omit_field_names') - ? '' - : 'libraries', - $pb.PbFieldType.PM, - subBuilder: CodegenResponse_Library.create) - ..hasRequiredFields = false; + static final $pb.BuilderInfo _i = + $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'CodegenResponse', + createEmptyInstance: create, + ) + ..aOB( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'success', + ) + ..aOS( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'error', + ) + ..aOS( + 3, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'pubspec', + ) + ..pc( + 4, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'libraries', + $pb.PbFieldType.PM, + subBuilder: CodegenResponse_Library.create, + ) + ..hasRequiredFields = false; CodegenResponse._() : super(); factory CodegenResponse({ @@ -406,19 +452,25 @@ class CodegenResponse extends $pb.GeneratedMessage { } return _result; } - factory CodegenResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromBuffer(i, r); - factory CodegenResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => - create()..mergeFromJson(i, r); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') + factory CodegenResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); + factory CodegenResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version', + ) CodegenResponse clone() => CodegenResponse()..mergeFromMessage(this); - @$core.Deprecated('Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version', + ) CodegenResponse copyWith(void Function(CodegenResponse) updates) => super.copyWith((message) => updates(message as CodegenResponse)) as CodegenResponse; // ignore: deprecated_member_use @@ -429,8 +481,10 @@ class CodegenResponse extends $pb.GeneratedMessage { static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static CodegenResponse getDefault() => _defaultInstance ??= - $pb.GeneratedMessage.$_defaultFor(create); + static CodegenResponse getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( + create, + ); static CodegenResponse? _defaultInstance; @$pb.TagNumber(1) diff --git a/packages/smithy/smithy_codegen/lib/src/service/codegen.pbenum.dart b/packages/smithy/smithy_codegen/lib/src/service/codegen.pbenum.dart index 4db0df26e2..b20e47f272 100644 --- a/packages/smithy/smithy_codegen/lib/src/service/codegen.pbenum.dart +++ b/packages/smithy/smithy_codegen/lib/src/service/codegen.pbenum.dart @@ -8,42 +8,55 @@ import 'package:protobuf/protobuf.dart' as $pb; class SmithyLibrary_LibraryType extends $pb.ProtobufEnum { static const SmithyLibrary_LibraryType MODEL = SmithyLibrary_LibraryType._( - 0, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'MODEL'); - static const SmithyLibrary_LibraryType CLIENT = SmithyLibrary_LibraryType._(1, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CLIENT'); + 0, + $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'MODEL', + ); + static const SmithyLibrary_LibraryType CLIENT = SmithyLibrary_LibraryType._( + 1, + $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'CLIENT', + ); static const SmithyLibrary_LibraryType SERVICE = SmithyLibrary_LibraryType._( - 2, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVICE'); + 2, + $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVICE', + ); static const SmithyLibrary_LibraryType OPERATION = SmithyLibrary_LibraryType._( - 3, - $core.bool.fromEnvironment('protobuf.omit_enum_names') - ? '' - : 'OPERATION'); - static const SmithyLibrary_LibraryType COMMON = SmithyLibrary_LibraryType._(4, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'COMMON'); + 3, + $core.bool.fromEnvironment('protobuf.omit_enum_names') + ? '' + : 'OPERATION', + ); + static const SmithyLibrary_LibraryType COMMON = SmithyLibrary_LibraryType._( + 4, + $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'COMMON', + ); static const SmithyLibrary_LibraryType TEST = SmithyLibrary_LibraryType._( - 5, $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'TEST'); - static const SmithyLibrary_LibraryType SERVER = SmithyLibrary_LibraryType._(6, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVER'); + 5, + $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'TEST', + ); + static const SmithyLibrary_LibraryType SERVER = SmithyLibrary_LibraryType._( + 6, + $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'SERVER', + ); static const SmithyLibrary_LibraryType WAITERS = SmithyLibrary_LibraryType._( - 7, - $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WAITERS'); + 7, + $core.bool.fromEnvironment('protobuf.omit_enum_names') ? '' : 'WAITERS', + ); static const $core.List values = [ - MODEL, - CLIENT, - SERVICE, - OPERATION, - COMMON, - TEST, - SERVER, - WAITERS, - ]; + MODEL, + CLIENT, + SERVICE, + OPERATION, + COMMON, + TEST, + SERVER, + WAITERS, + ]; - static final $core.Map<$core.int, SmithyLibrary_LibraryType> _byValue = - $pb.ProtobufEnum.initByValue(values); + static final $core.Map<$core.int, SmithyLibrary_LibraryType> _byValue = $pb + .ProtobufEnum.initByValue(values); static SmithyLibrary_LibraryType? valueOf($core.int value) => _byValue[value]; const SmithyLibrary_LibraryType._($core.int v, $core.String n) : super(v, n); diff --git a/packages/smithy/smithy_codegen/lib/src/service/codegen.pbgrpc.dart b/packages/smithy/smithy_codegen/lib/src/service/codegen.pbgrpc.dart index 0bbf1f49e0..e08ffc3e73 100644 --- a/packages/smithy/smithy_codegen/lib/src/service/codegen.pbgrpc.dart +++ b/packages/smithy/smithy_codegen/lib/src/service/codegen.pbgrpc.dart @@ -14,18 +14,21 @@ export 'codegen.pb.dart'; class CodegenServiceClient extends $grpc.Client { static final _$codegen = $grpc.ClientMethod<$0.CodegenRequest, $0.CodegenResponse>( - '/CodegenService/Codegen', - ($0.CodegenRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.CodegenResponse.fromBuffer(value)); - - CodegenServiceClient($grpc.ClientChannel channel, - {$grpc.CallOptions? options, - $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, interceptors: interceptors); - - $grpc.ResponseFuture<$0.CodegenResponse> codegen($0.CodegenRequest request, - {$grpc.CallOptions? options}) { + '/CodegenService/Codegen', + ($0.CodegenRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.CodegenResponse.fromBuffer(value), + ); + + CodegenServiceClient( + $grpc.ClientChannel channel, { + $grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors, + }) : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$0.CodegenResponse> codegen( + $0.CodegenRequest request, { + $grpc.CallOptions? options, + }) { return $createUnaryCall(_$codegen, request, options: options); } } @@ -34,20 +37,27 @@ abstract class CodegenServiceBase extends $grpc.Service { $core.String get $name => 'CodegenService'; CodegenServiceBase() { - $addMethod($grpc.ServiceMethod<$0.CodegenRequest, $0.CodegenResponse>( + $addMethod( + $grpc.ServiceMethod<$0.CodegenRequest, $0.CodegenResponse>( 'Codegen', codegen_Pre, false, false, ($core.List<$core.int> value) => $0.CodegenRequest.fromBuffer(value), - ($0.CodegenResponse value) => value.writeToBuffer())); + ($0.CodegenResponse value) => value.writeToBuffer(), + ), + ); } $async.Future<$0.CodegenResponse> codegen_Pre( - $grpc.ServiceCall call, $async.Future<$0.CodegenRequest> request) async { + $grpc.ServiceCall call, + $async.Future<$0.CodegenRequest> request, + ) async { return codegen(call, await request); } $async.Future<$0.CodegenResponse> codegen( - $grpc.ServiceCall call, $0.CodegenRequest request); + $grpc.ServiceCall call, + $0.CodegenRequest request, + ); } diff --git a/packages/smithy/smithy_codegen/lib/src/service/codegen.pbjson.dart b/packages/smithy/smithy_codegen/lib/src/service/codegen.pbjson.dart index 472ebcd785..a00ce0b2b2 100644 --- a/packages/smithy/smithy_codegen/lib/src/service/codegen.pbjson.dart +++ b/packages/smithy/smithy_codegen/lib/src/service/codegen.pbjson.dart @@ -18,7 +18,7 @@ const SmithyLibrary$json = { '4': 1, '5': 14, '6': '.SmithyLibrary.LibraryType', - '10': 'libraryType' + '10': 'libraryType', }, {'1': 'filename', '3': 4, '4': 1, '5': 9, '10': 'filename'}, {'1': 'basePath', '3': 5, '4': 1, '5': 9, '10': 'basePath'}, @@ -43,7 +43,8 @@ const SmithyLibrary_LibraryType$json = { /// Descriptor for `SmithyLibrary`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List smithyLibraryDescriptor = $convert.base64Decode( - 'Cg1TbWl0aHlMaWJyYXJ5EiAKC3BhY2thZ2VOYW1lGAEgASgJUgtwYWNrYWdlTmFtZRIgCgtzZXJ2aWNlTmFtZRgCIAEoCVILc2VydmljZU5hbWUSPAoLbGlicmFyeVR5cGUYAyABKA4yGi5TbWl0aHlMaWJyYXJ5LkxpYnJhcnlUeXBlUgtsaWJyYXJ5VHlwZRIaCghmaWxlbmFtZRgEIAEoCVIIZmlsZW5hbWUSGgoIYmFzZVBhdGgYBSABKAlSCGJhc2VQYXRoIm8KC0xpYnJhcnlUeXBlEgkKBU1PREVMEAASCgoGQ0xJRU5UEAESCwoHU0VSVklDRRACEg0KCU9QRVJBVElPThADEgoKBkNPTU1PThAEEggKBFRFU1QQBRIKCgZTRVJWRVIQBhILCgdXQUlURVJTEAc='); + 'Cg1TbWl0aHlMaWJyYXJ5EiAKC3BhY2thZ2VOYW1lGAEgASgJUgtwYWNrYWdlTmFtZRIgCgtzZXJ2aWNlTmFtZRgCIAEoCVILc2VydmljZU5hbWUSPAoLbGlicmFyeVR5cGUYAyABKA4yGi5TbWl0aHlMaWJyYXJ5LkxpYnJhcnlUeXBlUgtsaWJyYXJ5VHlwZRIaCghmaWxlbmFtZRgEIAEoCVIIZmlsZW5hbWUSGgoIYmFzZVBhdGgYBSABKAlSCGJhc2VQYXRoIm8KC0xpYnJhcnlUeXBlEgkKBU1PREVMEAASCgoGQ0xJRU5UEAESCwoHU0VSVklDRRACEg0KCU9QRVJBVElPThADEgoKBkNPTU1PThAEEggKBFRFU1QQBRIKCgZTRVJWRVIQBhILCgdXQUlURVJTEAc=', +); @$core.Deprecated('Use codegenRequestDescriptor instead') const CodegenRequest$json = { '1': 'CodegenRequest', @@ -54,7 +55,7 @@ const CodegenRequest$json = { '4': 3, '5': 11, '6': '.CodegenRequest.SettingsEntry', - '10': 'settings' + '10': 'settings', }, {'1': 'serviceName', '3': 2, '4': 1, '5': 9, '10': 'serviceName'}, {'1': 'json', '3': 3, '4': 1, '5': 9, '10': 'json'}, @@ -74,7 +75,8 @@ const CodegenRequest_SettingsEntry$json = { /// Descriptor for `CodegenRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List codegenRequestDescriptor = $convert.base64Decode( - 'Cg5Db2RlZ2VuUmVxdWVzdBI5CghzZXR0aW5ncxgBIAMoCzIdLkNvZGVnZW5SZXF1ZXN0LlNldHRpbmdzRW50cnlSCHNldHRpbmdzEiAKC3NlcnZpY2VOYW1lGAIgASgJUgtzZXJ2aWNlTmFtZRISCgRqc29uGAMgASgJUgRqc29uGjsKDVNldHRpbmdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ=='); + 'Cg5Db2RlZ2VuUmVxdWVzdBI5CghzZXR0aW5ncxgBIAMoCzIdLkNvZGVnZW5SZXF1ZXN0LlNldHRpbmdzRW50cnlSCHNldHRpbmdzEiAKC3NlcnZpY2VOYW1lGAIgASgJUgtzZXJ2aWNlTmFtZRISCgRqc29uGAMgASgJUgRqc29uGjsKDVNldHRpbmdzRW50cnkSEAoDa2V5GAEgASgJUgNrZXkSFAoFdmFsdWUYAiABKAlSBXZhbHVlOgI4AQ==', +); @$core.Deprecated('Use codegenResponseDescriptor instead') const CodegenResponse$json = { '1': 'CodegenResponse', @@ -88,7 +90,7 @@ const CodegenResponse$json = { '4': 3, '5': 11, '6': '.CodegenResponse.Library', - '10': 'libraries' + '10': 'libraries', }, ], '3': [CodegenResponse_Library$json], @@ -104,7 +106,7 @@ const CodegenResponse_Library$json = { '4': 1, '5': 11, '6': '.SmithyLibrary', - '10': 'metadata' + '10': 'metadata', }, {'1': 'definition', '3': 2, '4': 1, '5': 9, '10': 'definition'}, ], @@ -112,4 +114,5 @@ const CodegenResponse_Library$json = { /// Descriptor for `CodegenResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List codegenResponseDescriptor = $convert.base64Decode( - 'Cg9Db2RlZ2VuUmVzcG9uc2USGAoHc3VjY2VzcxgBIAEoCFIHc3VjY2VzcxIUCgVlcnJvchgCIAEoCVIFZXJyb3ISGAoHcHVic3BlYxgDIAEoCVIHcHVic3BlYxI2CglsaWJyYXJpZXMYBCADKAsyGC5Db2RlZ2VuUmVzcG9uc2UuTGlicmFyeVIJbGlicmFyaWVzGlUKB0xpYnJhcnkSKgoIbWV0YWRhdGEYASABKAsyDi5TbWl0aHlMaWJyYXJ5UghtZXRhZGF0YRIeCgpkZWZpbml0aW9uGAIgASgJUgpkZWZpbml0aW9u'); + 'Cg9Db2RlZ2VuUmVzcG9uc2USGAoHc3VjY2VzcxgBIAEoCFIHc3VjY2VzcxIUCgVlcnJvchgCIAEoCVIFZXJyb3ISGAoHcHVic3BlYxgDIAEoCVIHcHVic3BlYxI2CglsaWJyYXJpZXMYBCADKAsyGC5Db2RlZ2VuUmVzcG9uc2UuTGlicmFyeVIJbGlicmFyaWVzGlUKB0xpYnJhcnkSKgoIbWV0YWRhdGEYASABKAsyDi5TbWl0aHlMaWJyYXJ5UghtZXRhZGF0YRIeCgpkZWZpbml0aW9uGAIgASgJUgpkZWZpbml0aW9u', +); diff --git a/packages/smithy/smithy_codegen/lib/src/util/config_parameter.dart b/packages/smithy/smithy_codegen/lib/src/util/config_parameter.dart index e3ff8b67bd..6ee1185f80 100644 --- a/packages/smithy/smithy_codegen/lib/src/util/config_parameter.dart +++ b/packages/smithy/smithy_codegen/lib/src/util/config_parameter.dart @@ -21,8 +21,9 @@ class ParameterLocation { /// The parameter should be configurable via the service client's constructor, /// which overrides the value for all client methods. - static const ParameterLocation clientConstructor = - ParameterLocation._(1 << 2); + static const ParameterLocation clientConstructor = ParameterLocation._( + 1 << 2, + ); /// The parameter should be configurable via the service client method to /// override the value for the operation. diff --git a/packages/smithy/smithy_codegen/lib/src/util/config_parameter.g.dart b/packages/smithy/smithy_codegen/lib/src/util/config_parameter.g.dart index 7521e3d241..1e477eef52 100644 --- a/packages/smithy/smithy_codegen/lib/src/util/config_parameter.g.dart +++ b/packages/smithy/smithy_codegen/lib/src/util/config_parameter.g.dart @@ -23,22 +23,31 @@ class _$ConfigParameter extends ConfigParameter { factory _$ConfigParameter([void Function(ConfigParameterBuilder)? updates]) => (new ConfigParameterBuilder()..update(updates))._build(); - _$ConfigParameter._( - {required this.name, - required this.type, - required this.required, - required this.isOverride, - required this.location, - this.defaultTo}) - : super._() { + _$ConfigParameter._({ + required this.name, + required this.type, + required this.required, + required this.isOverride, + required this.location, + this.defaultTo, + }) : super._() { BuiltValueNullFieldError.checkNotNull(name, r'ConfigParameter', 'name'); BuiltValueNullFieldError.checkNotNull(type, r'ConfigParameter', 'type'); BuiltValueNullFieldError.checkNotNull( - required, r'ConfigParameter', 'required'); + required, + r'ConfigParameter', + 'required', + ); BuiltValueNullFieldError.checkNotNull( - isOverride, r'ConfigParameter', 'isOverride'); + isOverride, + r'ConfigParameter', + 'isOverride', + ); BuiltValueNullFieldError.checkNotNull( - location, r'ConfigParameter', 'location'); + location, + r'ConfigParameter', + 'location', + ); } @override @@ -148,18 +157,34 @@ class ConfigParameterBuilder ConfigParameter build() => _build(); _$ConfigParameter _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ConfigParameter._( name: BuiltValueNullFieldError.checkNotNull( - name, r'ConfigParameter', 'name'), + name, + r'ConfigParameter', + 'name', + ), type: BuiltValueNullFieldError.checkNotNull( - type, r'ConfigParameter', 'type'), + type, + r'ConfigParameter', + 'type', + ), required: BuiltValueNullFieldError.checkNotNull( - required, r'ConfigParameter', 'required'), + required, + r'ConfigParameter', + 'required', + ), isOverride: BuiltValueNullFieldError.checkNotNull( - isOverride, r'ConfigParameter', 'isOverride'), + isOverride, + r'ConfigParameter', + 'isOverride', + ), location: BuiltValueNullFieldError.checkNotNull( - location, r'ConfigParameter', 'location'), + location, + r'ConfigParameter', + 'location', + ), defaultTo: defaultTo, ); replace(_$result); diff --git a/packages/smithy/smithy_codegen/lib/src/util/docs.dart b/packages/smithy/smithy_codegen/lib/src/util/docs.dart index 3f23278d6d..10f9f00691 100644 --- a/packages/smithy/smithy_codegen/lib/src/util/docs.dart +++ b/packages/smithy/smithy_codegen/lib/src/util/docs.dart @@ -5,34 +5,35 @@ import 'package:html2md/html2md.dart' as html2md; /// Formats documentation to follow Dart standards. String formatDocs(String docs) { - final lines = html2md - .convert( - docs, - rules: [ - // Format as H1 - html2md.Rule( - 'fullname', - filters: ['fullname'], - replacement: (text, node) { - return '## $text\n\n'; - }, - ), + final lines = + html2md + .convert( + docs, + rules: [ + // Format as H1 + html2md.Rule( + 'fullname', + filters: ['fullname'], + replacement: (text, node) { + return '## $text\n\n'; + }, + ), - // Format

with line breaks - html2md.Rule( - 'p', - filters: ['p'], - replacement: (text, node) { - return '$text\n\n'; - }, - ), - ], - ) - .split('\n') - .map((doc) => doc.replaceFirst(RegExp(r'^/*'), '')) - // unescape pre-convert MD - .map((doc) => doc.replaceAll(r'\*', '*').replaceAll(r'\.', '.')) - .toList(); + // Format

with line breaks + html2md.Rule( + 'p', + filters: ['p'], + replacement: (text, node) { + return '$text\n\n'; + }, + ), + ], + ) + .split('\n') + .map((doc) => doc.replaceFirst(RegExp(r'^/*'), '')) + // unescape pre-convert MD + .map((doc) => doc.replaceAll(r'\*', '*').replaceAll(r'\.', '.')) + .toList(); // Empty lines are not needed if (lines.isNotEmpty && lines.first.trim().isEmpty) { diff --git a/packages/smithy/smithy_codegen/lib/src/util/protocol_ext.dart b/packages/smithy/smithy_codegen/lib/src/util/protocol_ext.dart index 9ba78d3bb9..59ca298383 100644 --- a/packages/smithy/smithy_codegen/lib/src/util/protocol_ext.dart +++ b/packages/smithy/smithy_codegen/lib/src/util/protocol_ext.dart @@ -21,18 +21,17 @@ extension ProtocolUtils on ProtocolDefinitionTrait { /// The protocol class which can be instantiated. Reference get instantiableProtocolSymbol => switch (this) { - GenericJsonProtocolDefinitionTrait _ => - DartTypes.smithy.genericJsonProtocol, - AwsJson1_0Trait _ => DartTypes.smithyAws.awsJson1_0Protocol, - AwsJson1_1Trait _ => DartTypes.smithyAws.awsJson1_1Protocol, - RestJson1Trait _ => DartTypes.smithyAws.restJson1Protocol, - RestXmlTrait _ => DartTypes.smithyAws.restXmlProtocol, - AwsQueryTrait _ => DartTypes.smithyAws.awsQueryProtocol, - Ec2QueryTrait _ => DartTypes.smithyAws.ec2QueryProtocol, - _ => throw UnsupportedError( - 'No protocol found for $runtimeType ($shapeId)', - ), - }; + GenericJsonProtocolDefinitionTrait _ => + DartTypes.smithy.genericJsonProtocol, + AwsJson1_0Trait _ => DartTypes.smithyAws.awsJson1_0Protocol, + AwsJson1_1Trait _ => DartTypes.smithyAws.awsJson1_1Protocol, + RestJson1Trait _ => DartTypes.smithyAws.restJson1Protocol, + RestXmlTrait _ => DartTypes.smithyAws.restXmlProtocol, + AwsQueryTrait _ => DartTypes.smithyAws.awsQueryProtocol, + Ec2QueryTrait _ => DartTypes.smithyAws.ec2QueryProtocol, + _ => + throw UnsupportedError('No protocol found for $runtimeType ($shapeId)'), + }; /// Returns the structure generator for this protocol. StructureSerializerGenerator structureGenerator( @@ -56,24 +55,22 @@ extension ProtocolUtils on ProtocolDefinitionTrait { } SerializerConfig get serializerConfig => switch (this) { - GenericJsonProtocolDefinitionTrait _ => - const SerializerConfig.genericJson(), - AwsJson1_0Trait _ || - AwsJson1_1Trait _ => - const SerializerConfig.awsJson(), - RestJson1Trait _ => const SerializerConfig.restJson1(), - AwsQueryTrait _ => const SerializerConfig.awsQuery(), - Ec2QueryTrait _ => const SerializerConfig.ec2Query(), - _ => const SerializerConfig(), - }; + GenericJsonProtocolDefinitionTrait _ => + const SerializerConfig.genericJson(), + AwsJson1_0Trait _ || AwsJson1_1Trait _ => const SerializerConfig.awsJson(), + RestJson1Trait _ => const SerializerConfig.restJson1(), + AwsQueryTrait _ => const SerializerConfig.awsQuery(), + Ec2QueryTrait _ => const SerializerConfig.ec2Query(), + _ => const SerializerConfig(), + }; Expression serializers(CodegenContext context) { final additionalSerializers = []; return additionalSerializers.isNotEmpty ? literalConstList([ - context.serializersRef.spread, - ...additionalSerializers, - ]) + context.serializersRef.spread, + ...additionalSerializers, + ]) : context.serializersRef; } @@ -98,7 +95,8 @@ extension ProtocolUtils on ProtocolDefinitionTrait { final payloadMember = inputPayload.member; if (payloadMember != null) { final targetShape = context.shapeFor(payloadMember.target); - needsContentLength = targetShape is! BlobShape || + needsContentLength = + targetShape is! BlobShape || !targetShape.isStreaming || targetShape.hasTrait(); } @@ -123,10 +121,7 @@ extension ProtocolUtils on ProtocolDefinitionTrait { // For example, the value for the operation `ns.example#MyOp` of the // service `ns.example#MyService` is MyService.MyOp. literalString( - [ - context.service!.shapeId.shape, - shape.shapeId.shape, - ].join('.'), + [context.service!.shapeId.shape, shape.shapeId.shape].join('.'), ), ]); case RestJson1Trait _: @@ -148,7 +143,8 @@ extension ProtocolUtils on ProtocolDefinitionTrait { // https://awslabs.github.io/smithy/1.0/spec/core/auth-traits.html#optionalauth-trait final authTrait = shape.getTrait(); - final isOptionalAuth = shape.hasTrait() || + final isOptionalAuth = + shape.hasTrait() || (authTrait != null && authTrait.values.isEmpty); // SigV4 @@ -249,9 +245,10 @@ extension ProtocolUtils on ProtocolDefinitionTrait { final payloadShape = inputPayload.member; if (payloadShape != null) { final targetShape = context.shapeFor(payloadShape.target); - mediaType = (payloadShape.getTrait() ?? - targetShape.getTrait()) - ?.value; + mediaType = + (payloadShape.getTrait() ?? + targetShape.getTrait()) + ?.value; } if (mediaType != null) { parameters['mediaType'] = literalString(mediaType); @@ -289,29 +286,24 @@ extension ProtocolUtils on ProtocolDefinitionTrait { } RouteConfiguration get routeConfiguration => switch (this) { - RestJson1Trait _ || - RestXmlTrait _ || - GenericJsonProtocolDefinitionTrait _ => - RouteConfiguration.rest, - AwsJson1_0Trait _ || - AwsJson1_1Trait _ || - AwsQueryTrait _ || - Ec2QueryTrait _ => - RouteConfiguration.rpc, - _ => throw StateError('Unknown type: $runtimeType'), - }; + RestJson1Trait _ || + RestXmlTrait _ || + GenericJsonProtocolDefinitionTrait _ => RouteConfiguration.rest, + AwsJson1_0Trait _ || + AwsJson1_1Trait _ || + AwsQueryTrait _ || + Ec2QueryTrait _ => RouteConfiguration.rpc, + _ => throw StateError('Unknown type: $runtimeType'), + }; - Expression? addErrorTo( - Expression headersMap, - HttpErrorTraits error, - ) { + Expression? addErrorTo(Expression headersMap, HttpErrorTraits error) { switch (this) { case RestJson1Trait _ || - RestXmlTrait _ || - GenericJsonProtocolDefinitionTrait _: - return headersMap.index(literalString('X-Amzn-Errortype')).assign( - literalString(error.shapeId.shape), - ); + RestXmlTrait _ || + GenericJsonProtocolDefinitionTrait _: + return headersMap + .index(literalString('X-Amzn-Errortype')) + .assign(literalString(error.shapeId.shape)); default: return null; } diff --git a/packages/smithy/smithy_codegen/lib/src/util/pubspec.dart b/packages/smithy/smithy_codegen/lib/src/util/pubspec.dart index 46f4f8c6ac..f348c270d9 100644 --- a/packages/smithy/smithy_codegen/lib/src/util/pubspec.dart +++ b/packages/smithy/smithy_codegen/lib/src/util/pubspec.dart @@ -29,30 +29,26 @@ final dependencyVersions = { 'smithy_codegen': const Dependency('^0.3.0', DependencyType.smithy), 'aws_common': const Dependency('^0.4.0', DependencyType.aws), 'aws_signature_v4': const Dependency('^0.3.0', DependencyType.aws), - 'built_value': const Dependency('">=8.6.0 <8.7.0"'), + 'built_value': const Dependency('^8.6.0'), 'built_collection': const Dependency('^5.0.0'), 'fixnum': const Dependency('^1.0.0'), - 'meta': const Dependency('^1.7.0'), + 'meta': const Dependency('^1.16.0'), 'shelf': const Dependency('^1.4.0'), 'shelf_router': const Dependency('^1.1.0'), 'xml': const Dependency('6.3.0'), // Dev Dependencies 'smithy_test': const Dependency.dev('^0.5.0', DependencyType.smithy), - 'build_runner': const Dependency.dev('^2.4.0'), + 'build_runner': const Dependency.dev('^2.4.9'), 'build_web_compilers': const Dependency.dev('^4.0.0'), 'build_test': const Dependency.dev('^2.1.5'), - 'built_value_generator': const Dependency.dev('8.6.1'), + 'built_value_generator': const Dependency.dev('^8.9.5'), 'lints': const Dependency.dev('^2.1.0'), 'test': const Dependency.dev('^1.22.1'), }; class PubspecGenerator implements Generator { - const PubspecGenerator( - this.pubspec, - this._dependencies, { - this.smithyPath, - }); + const PubspecGenerator(this.pubspec, this._dependencies, {this.smithyPath}); final Pubspec pubspec; final Iterable _dependencies; @@ -108,9 +104,13 @@ class PubspecGenerator implements Generator { name: ${pubspec.name} description: ${pubspec.description ?? '${pubspec.name.groupIntoWords().map((s) => s.capitalized).join(' ')} client SDK'} version: ${pubspec.version?.canonicalizedVersion ?? '0.1.0'} -${smithyPath == null ? pubspec.publishTo != null ? 'publish_to: ${pubspec.publishTo}\n' : '' : 'publish_to: none\n'}${pubspec.homepage != null ? 'homepage: ${pubspec.homepage}\n' : ''} +${smithyPath == null + ? pubspec.publishTo != null + ? 'publish_to: ${pubspec.publishTo}\n' + : '' + : 'publish_to: none\n'}${pubspec.homepage != null ? 'homepage: ${pubspec.homepage}\n' : ''} environment: - sdk: ^3.0.0 + sdk: ^3.7.0 dependencies: $dependenciesBlock diff --git a/packages/smithy/smithy_codegen/lib/src/util/shape_ext.dart b/packages/smithy/smithy_codegen/lib/src/util/shape_ext.dart index 6d5eb0f5b7..723192d1b1 100644 --- a/packages/smithy/smithy_codegen/lib/src/util/shape_ext.dart +++ b/packages/smithy/smithy_codegen/lib/src/util/shape_ext.dart @@ -21,24 +21,25 @@ import 'package:smithy_codegen/src/util/symbol_ext.dart'; extension SimpleShapeUtil on SimpleShape { Reference get typeReference => switch (getType()) { - ShapeType.bigDecimal => throw UnimplementedError(), - ShapeType.bigInteger => DartTypes.core.bigInt, - ShapeType.blob when isStreaming => - DartTypes.async.stream(DartTypes.core.list(DartTypes.core.int)), - ShapeType.blob when (!isStreaming) => DartTypes.typedData.uint8List, - ShapeType.boolean => DartTypes.core.bool, - ShapeType.byte => DartTypes.core.int, - ShapeType.document => DartTypes.builtValue.jsonObject, - ShapeType.double => DartTypes.core.double, - ShapeType.float => DartTypes.core.double, - ShapeType.integer => DartTypes.core.int, - ShapeType.long => DartTypes.fixNum.int64, - ShapeType.short => DartTypes.core.int, - ShapeType.string => DartTypes.core.string, - ShapeType.timestamp => DartTypes.core.dateTime, - final ShapeType invalid => - throw ArgumentError('Invalid simple shape: $invalid'), - }; + ShapeType.bigDecimal => throw UnimplementedError(), + ShapeType.bigInteger => DartTypes.core.bigInt, + ShapeType.blob when isStreaming => DartTypes.async.stream( + DartTypes.core.list(DartTypes.core.int), + ), + ShapeType.blob when (!isStreaming) => DartTypes.typedData.uint8List, + ShapeType.boolean => DartTypes.core.bool, + ShapeType.byte => DartTypes.core.int, + ShapeType.document => DartTypes.builtValue.jsonObject, + ShapeType.double => DartTypes.core.double, + ShapeType.float => DartTypes.core.double, + ShapeType.integer => DartTypes.core.int, + ShapeType.long => DartTypes.fixNum.int64, + ShapeType.short => DartTypes.core.int, + ShapeType.string => DartTypes.core.string, + ShapeType.timestamp => DartTypes.core.dateTime, + final ShapeType invalid => + throw ArgumentError('Invalid simple shape: $invalid'), + }; } extension ShapeClassName on Shape { @@ -71,7 +72,8 @@ extension ShapeClassName on Shape { if (name == null) { return null; } - final needsRename = reservedTypeNames.contains(name) || + final needsRename = + reservedTypeNames.contains(name) || context.shapes.values.any((shape) { return shape.className(context) == '${name}Builder'; }); @@ -134,14 +136,12 @@ extension MemberShapeUtils on MemberShape { Expression transformFromFriendly({required String name, bool? isNullable}) { final typeRef = context.symbolFor(target).typeRef; isNullable ??= typeRef.isNullable!; - if (context.symbolOverrideFor(this) - case ShapeOverrides(:final transformFromFriendly)) { + if (context.symbolOverrideFor(this) case ShapeOverrides( + :final transformFromFriendly, + )) { return transformFromFriendly(refer(name), isNullable: isNullable); } - return typeRef.transformToBuiltValue( - name: name, - isNullable: isNullable, - ); + return typeRef.transformToBuiltValue(name: name, isNullable: isNullable); } } @@ -195,17 +195,18 @@ extension ShapeUtils on Shape { case ShapeType.structure: final targetShape = switch (context.smithyVersion) { SmithyVersion.v1 => switch (this) { - final MemberShape member => context.shapeFor(member.target), - _ => this, - }, + final MemberShape member => context.shapeFor(member.target), + _ => this, + }, _ => switch (this) { - MemberShape _ => this, - _ => throw ArgumentError.value( - '$shapeId', - 'shapeId', - 'Null checks for structs should only happen on the member shape', - ), - }, + MemberShape _ => this, + _ => + throw ArgumentError.value( + '$shapeId', + 'shapeId', + 'Null checks for structs should only happen on the member shape', + ), + }, }; return isS3Primitive(context) || targetShape.isBoxed; @@ -245,10 +246,11 @@ extension ShapeUtils on Shape { // // See: https://awslabs.github.io/smithy/1.0/spec/core/documentation-traits.html?highlight=sensitive#documentation-trait if (this is MemberShape) { - docs ??= context - .shapeFor((this as MemberShape).target) - .getTrait() - ?.value; + docs ??= + context + .shapeFor((this as MemberShape).target) + .getTrait() + ?.value; } if (docs != null) { buf.write(formatDocs(docs)); @@ -296,9 +298,7 @@ extension ShapeUtils on Shape { if (since != null) { message = 'Since $since. $message'; } - return DartTypes.core.deprecated.newInstance([ - literalString(message), - ]); + return DartTypes.core.deprecated.newInstance([literalString(message)]); } /// The default value of this shape when not boxed. @@ -337,9 +337,11 @@ extension ShapeUtils on Shape { ); final enumValue = targetShape.enumValues.singleWhere( (val) => val.expectTrait().value == defaultValue, - orElse: () => throw StateError( - 'No ${targetShape.shapeId.shape} enum value found for $defaultValue', - ), + orElse: + () => + throw StateError( + 'No ${targetShape.shapeId.shape} enum value found for $defaultValue', + ), ); return ( context @@ -361,11 +363,11 @@ extension ShapeUtils on Shape { return defaultValue == 0 ? (DartTypes.fixNum.int64.property('ZERO'), true) : ( - DartTypes.fixNum.int64.newInstance([ - literalNum(defaultValue as int), - ]), - false, - ); + DartTypes.fixNum.int64.newInstance([ + literalNum(defaultValue as int), + ]), + false, + ); case BooleanShape _ || PrimitiveBooleanShape _: return (literalBool(defaultValue as bool), true); case BlobShape _: @@ -385,9 +387,7 @@ extension ShapeUtils on Shape { ); } return ( - DartTypes.async.stream().newInstanceNamed('value', [ - encodedExp, - ]), + DartTypes.async.stream().newInstanceNamed('value', [encodedExp]), false, ); case ListShape _: @@ -410,15 +410,13 @@ extension ShapeUtils on Shape { /// The library type generated for this shape. SmithyLibrary_LibraryType get libraryType => switch (getType()) { - ShapeType.service => SmithyLibrary_LibraryType.CLIENT, - ShapeType.operation => SmithyLibrary_LibraryType.OPERATION, - ShapeType.structure || - ShapeType.union => - SmithyLibrary_LibraryType.MODEL, - ShapeType _ when isEnum => SmithyLibrary_LibraryType.MODEL, - final ShapeType invalid => - throw ArgumentError('Invalid shape type: $invalid'), - }; + ShapeType.service => SmithyLibrary_LibraryType.CLIENT, + ShapeType.operation => SmithyLibrary_LibraryType.OPERATION, + ShapeType.structure || ShapeType.union => SmithyLibrary_LibraryType.MODEL, + ShapeType _ when isEnum => SmithyLibrary_LibraryType.MODEL, + final ShapeType invalid => + throw ArgumentError('Invalid shape type: $invalid'), + }; /// The smithy library for this shape. SmithyLibrary smithyLibrary(CodegenContext context) { @@ -453,11 +451,12 @@ extension ShapeUtils on Shape { return null; } return PaginatedTraits( - (b) => b - ..inputTokenPath = trait.inputToken - ..outputTokenPath = trait.outputToken - ..itemsPath = trait.items - ..pageSizePath = trait.pageSize, + (b) => + b + ..inputTokenPath = trait.inputToken + ..outputTokenPath = trait.outputToken + ..itemsPath = trait.items + ..pageSizePath = trait.pageSize, ); } @@ -500,11 +499,12 @@ extension NamedMembersShapeUtil on NamedMembersShape { Expression buildExpression(Expression exp) => exps.fold(exp, (exp, el) => el(exp)); return PaginationItem( - (b) => b - ..member.replace(member) - ..buildExpression = buildExpression - ..symbol = symbol - ..isNullable = isNullable, + (b) => + b + ..member.replace(member) + ..buildExpression = buildExpression + ..symbol = symbol + ..isNullable = isNullable, ); } } @@ -567,37 +567,27 @@ extension OperationShapeUtil on OperationShape { if (b.inputTokenPath != null) { b.inputToken.replace( - inputShape(context).parsePathToExpression( - context, - b.inputTokenPath!, - ), + inputShape(context).parsePathToExpression(context, b.inputTokenPath!), ); } if (b.outputTokenPath != null) { b.outputToken.replace( - outputShape(context).parsePathToExpression( + outputShape( context, - b.outputTokenPath!, - ), + ).parsePathToExpression(context, b.outputTokenPath!), ); } if (b.itemsPath != null) { b.items.replace( - outputShape(context).parsePathToExpression( - context, - b.itemsPath!, - ), + outputShape(context).parsePathToExpression(context, b.itemsPath!), ); } if (b.pageSizePath != null) { b.pageSize.replace( - inputShape(context).parsePathToExpression( - context, - b.pageSizePath!, - ), + inputShape(context).parsePathToExpression(context, b.pageSizePath!), ); } }); @@ -638,108 +628,133 @@ extension OperationShapeUtil on OperationShape { // The client field yield ConfigParameter( - (p) => p - ..type = DartTypes.awsCommon.awsHttpClient.boxed - ..name = 'client' - ..location = ParameterLocation.run | - ParameterLocation.clientConstructor | - ParameterLocation.clientMethod, + (p) => + p + ..type = DartTypes.awsCommon.awsHttpClient.boxed + ..name = 'client' + ..location = + ParameterLocation.run | + ParameterLocation.clientConstructor | + ParameterLocation.clientMethod, ); if (serviceShape.isAwsService) { yield ConfigParameter( - (p) => p - ..type = DartTypes.core.string - ..name = 'region' - ..required = true - ..location = ParameterLocation.constructor | - ParameterLocation.clientConstructor, + (p) => + p + ..type = DartTypes.core.string + ..name = 'region' + ..required = true + ..location = + ParameterLocation.constructor | + ParameterLocation.clientConstructor, ); // The baseUri field yield ConfigParameter( - (p) => p - ..type = DartTypes.core.uri.boxed - ..name = 'baseUri' - ..location = ParameterLocation.constructor | - ParameterLocation.clientConstructor, + (p) => + p + ..type = DartTypes.core.uri.boxed + ..name = 'baseUri' + ..location = + ParameterLocation.constructor | + ParameterLocation.clientConstructor, ); } else { // The baseUri override yield ConfigParameter( - (p) => p - ..type = DartTypes.core.uri - ..name = 'baseUri' - ..isOverride = true - ..required = true - ..location = ParameterLocation.constructor | - ParameterLocation.clientConstructor, + (p) => + p + ..type = DartTypes.core.uri + ..name = 'baseUri' + ..isOverride = true + ..required = true + ..location = + ParameterLocation.constructor | + ParameterLocation.clientConstructor, ); } final isS3 = serviceShape.resolvedService?.sdkId == 'S3'; if (isS3) { yield ConfigParameter( - (p) => p - ..type = DartTypes.smithyAws.s3ClientConfig - ..name = 's3ClientConfig' - ..required = true - ..location = ParameterLocation.constructor | - ParameterLocation.clientConstructor | - ParameterLocation.clientMethod - ..defaultTo = - DartTypes.smithyAws.s3ClientConfig.constInstance([]).code, + (p) => + p + ..type = DartTypes.smithyAws.s3ClientConfig + ..name = 's3ClientConfig' + ..required = true + ..location = + ParameterLocation.constructor | + ParameterLocation.clientConstructor | + ParameterLocation.clientMethod + ..defaultTo = + DartTypes.smithyAws.s3ClientConfig.constInstance([]).code, ); } if (serviceShape.hasTrait()) { yield ConfigParameter( - (p) => p - ..type = DartTypes.awsSigV4.awsCredentialsProvider - ..name = 'credentialsProvider' - ..location = ParameterLocation.constructor | - ParameterLocation.clientConstructor | - ParameterLocation.clientMethod - ..required = true - ..defaultTo = DartTypes.awsSigV4.awsCredentialsProvider - .constInstanceNamed('defaultChain', []).code, + (p) => + p + ..type = DartTypes.awsSigV4.awsCredentialsProvider + ..name = 'credentialsProvider' + ..location = + ParameterLocation.constructor | + ParameterLocation.clientConstructor | + ParameterLocation.clientMethod + ..required = true + ..defaultTo = + DartTypes.awsSigV4.awsCredentialsProvider + .constInstanceNamed('defaultChain', []) + .code, ); } // The requestInterceptors field. yield ConfigParameter( - (p) => p - ..type = DartTypes.core.list(DartTypes.smithy.httpRequestInterceptor) - ..name = 'requestInterceptors' - ..location = - ParameterLocation.constructor | ParameterLocation.clientConstructor - ..defaultTo = const Code('const []'), + (p) => + p + ..type = DartTypes.core.list( + DartTypes.smithy.httpRequestInterceptor, + ) + ..name = 'requestInterceptors' + ..location = + ParameterLocation.constructor | + ParameterLocation.clientConstructor + ..defaultTo = const Code('const []'), ); // The responseInterceptors field. yield ConfigParameter( - (p) => p - ..type = DartTypes.core.list(DartTypes.smithy.httpResponseInterceptor) - ..name = 'responseInterceptors' - ..location = - ParameterLocation.constructor | ParameterLocation.clientConstructor - ..defaultTo = const Code('const []'), + (p) => + p + ..type = DartTypes.core.list( + DartTypes.smithy.httpResponseInterceptor, + ) + ..name = 'responseInterceptors' + ..location = + ParameterLocation.constructor | + ParameterLocation.clientConstructor + ..defaultTo = const Code('const []'), ); } /// Fields which should be generated for the operation and its service client /// based off the traits attached to this shape's service. Iterable protocolFields(CodegenContext context) sync* { - for (final parameter in operationParameters(context) - .where((p) => p.location.inConstructor)) { + for (final parameter in operationParameters( + context, + ).where((p) => p.location.inConstructor)) { yield Field( - (f) => f - ..modifier = FieldModifier.final$ - ..type = parameter.type - ..annotations.addAll([ - if (parameter.isOverride) DartTypes.core.override, - ]) - ..name = parameter.isOverride ? parameter.name : '_${parameter.name}', + (f) => + f + ..modifier = FieldModifier.final$ + ..type = parameter.type + ..annotations.addAll([ + if (parameter.isOverride) DartTypes.core.override, + ]) + ..name = + parameter.isOverride ? parameter.name : '_${parameter.name}', ); } } @@ -750,8 +765,9 @@ extension OperationShapeUtil on OperationShape { CodegenContext context, { bool Function(ConfigParameter) toThis = _defaultToThis, }) sync* { - for (final parameter in operationParameters(context) - .where((p) => p.location.inConstructor)) { + for (final parameter in operationParameters( + context, + ).where((p) => p.location.inConstructor)) { yield Parameter((p) { final pToThis = toThis(parameter); p @@ -772,11 +788,11 @@ extension StructureShapeUtil on StructureShape { /// The operation this shape belongs to, if any. OperationShape? operationShape(CodegenContext context) => context.shapes.values.whereType().firstWhereOrNull( - (operation) => - operation.input?.target == shapeId || - operation.output?.target == shapeId || - operation.errors.map((ref) => ref.target).contains(shapeId), - ); + (operation) => + operation.input?.target == shapeId || + operation.output?.target == shapeId || + operation.errors.map((ref) => ref.target).contains(shapeId), + ); /// Whether this is an unwrapped S3 output. bool isS3UnwrappedOutput(CodegenContext context) { @@ -803,16 +819,15 @@ extension StructureShapeUtil on StructureShape { return HttpPayload((b) => b.symbol = symbol); } return HttpPayload( - (b) => b - ..symbol = payloadMember!.accept(SymbolVisitor(context), this) - ..member.replace(payloadMember), + (b) => + b + ..symbol = payloadMember!.accept(SymbolVisitor(context), this) + ..member.replace(payloadMember), ); } /// HTTP metadata on operation output structures. - HttpOutputTraits? httpOutputTraits({ - bool overrideTrait = false, - }) { + HttpOutputTraits? httpOutputTraits({bool overrideTrait = false}) { if (!isOutputShape && !overrideTrait && Shape.unit != shapeId) { return null; } @@ -836,9 +851,7 @@ extension StructureShapeUtil on StructureShape { } /// HTTP metadata on operation input structures. - HttpInputTraits? httpInputTraits({ - bool overrideTrait = false, - }) { + HttpInputTraits? httpInputTraits({bool overrideTrait = false}) { if (!isInputShape && !overrideTrait && Shape.unit != shapeId) { return null; } @@ -871,16 +884,15 @@ extension StructureShapeUtil on StructureShape { return builder.build(); } - HttpErrorTraits? httpErrorTraits([ - Reference? payloadSymbol, - ]) { + HttpErrorTraits? httpErrorTraits([Reference? payloadSymbol]) { if (!isError) { return null; } - final builder = HttpErrorTraitsBuilder() - ..symbol = context.symbolFor(shapeId) - ..payloadSymbol = payloadSymbol - ..shapeId = shapeId; + final builder = + HttpErrorTraitsBuilder() + ..symbol = context.symbolFor(shapeId) + ..payloadSymbol = payloadSymbol + ..shapeId = shapeId; final errorTrait = expectTrait(); builder.kind = errorTrait.type; final httpErrorTrait = getTrait(); @@ -910,17 +922,17 @@ extension StructureShapeUtil on StructureShape { /// Member shapes and their [Reference] types. Map memberSymbols(CodegenContext context) => { - for (final member in sortedMembers) - member: context - .symbolFor(member.target, this) - .withBoxed(member.isNullable(context, this)), - }; + for (final member in sortedMembers) + member: context + .symbolFor(member.target, this) + .withBoxed(member.isNullable(context, this)), + }; /// Members sorted by their re-cased Dart name. - List get sortedMembers => members.values.toList() - ..sort((a, b) { - return a.dartName(getType()).compareTo(b.dartName(getType())); - }); + List get sortedMembers => + members.values.toList()..sort((a, b) { + return a.dartName(getType()).compareTo(b.dartName(getType())); + }); /// The member shape to serialize when [HttpPayloadTrait] is used. MemberShape? get payloadShape => httpPayload.member; @@ -928,8 +940,9 @@ extension StructureShapeUtil on StructureShape { /// The list of all members which convey some information about the request, /// and for most protocols are not included in the body of the request. List get metadataMembers { - final serviceSupportsHttpTraits = context.serviceProtocols - .any((protocol) => protocol.supportsTrait(HttpPayloadTrait.id)); + final serviceSupportsHttpTraits = context.serviceProtocols.any( + (protocol) => protocol.supportsTrait(HttpPayloadTrait.id), + ); if (!serviceSupportsHttpTraits) { return const []; } @@ -939,17 +952,17 @@ extension StructureShapeUtil on StructureShape { final httpErrorTraits = this.httpErrorTraits(); return { - ...?httpInputTraits?.httpHeaders.values, - httpInputTraits?.httpQueryParams, - ...?httpInputTraits?.httpLabels, - httpInputTraits?.httpPrefixHeaders?.member, - ...?httpInputTraits?.httpQuery.values, - httpOutputTraits?.httpResponseCode, - ...?httpOutputTraits?.httpHeaders.values, - httpOutputTraits?.httpPrefixHeaders?.member, - ...?httpErrorTraits?.httpHeaders.values, - httpErrorTraits?.httpPrefixHeaders?.member, - }.whereType().toList() + ...?httpInputTraits?.httpHeaders.values, + httpInputTraits?.httpQueryParams, + ...?httpInputTraits?.httpLabels, + httpInputTraits?.httpPrefixHeaders?.member, + ...?httpInputTraits?.httpQuery.values, + httpOutputTraits?.httpResponseCode, + ...?httpOutputTraits?.httpHeaders.values, + httpOutputTraits?.httpPrefixHeaders?.member, + ...?httpErrorTraits?.httpHeaders.values, + httpErrorTraits?.httpPrefixHeaders?.member, + }.whereType().toList() ..sorted( (a, b) => a.dartName(getType()).compareTo(b.dartName(getType())), ); @@ -957,9 +970,10 @@ extension StructureShapeUtil on StructureShape { /// The list of all members which should always be included in the body of /// the request. - List get payloadMembers => sortedMembers - .where((member) => !metadataMembers.contains(member)) - .toList(); + List get payloadMembers => + sortedMembers + .where((member) => !metadataMembers.contains(member)) + .toList(); /// Whether the structure has an HTTP payload. bool hasPayload(CodegenContext context) { @@ -990,10 +1004,10 @@ extension StructureShapeUtil on StructureShape { extension ShapeIdUtil on ShapeId { /// A constructed ShapeId expression. Expression get constructed => DartTypes.smithy.shapeId.constInstance([], { - 'namespace': literalString(namespace), - 'shape': literalString(shape), - if (member != null) 'member': literalString(member!), - }); + 'namespace': literalString(namespace), + 'shape': literalString(shape), + if (member != null) 'member': literalString(member!), + }); } extension ServiceShapeUtil on ServiceShape { diff --git a/packages/smithy/smithy_codegen/lib/src/util/symbol_ext.dart b/packages/smithy/smithy_codegen/lib/src/util/symbol_ext.dart index 5d55c99cf8..689f9813a3 100644 --- a/packages/smithy/smithy_codegen/lib/src/util/symbol_ext.dart +++ b/packages/smithy/smithy_codegen/lib/src/util/symbol_ext.dart @@ -28,11 +28,7 @@ extension ExpressionUtil on Expression { Code wrapWithBlockIf(Expression check, [bool performCheck = true]) { return Block.of([ - if (performCheck) ...[ - const Code('if ('), - check.code, - const Code(') {'), - ], + if (performCheck) ...[const Code('if ('), check.code, const Code(') {')], statement, if (performCheck) const Code('}'), ]); @@ -42,11 +38,7 @@ extension ExpressionUtil on Expression { extension CodeHelpers on Code { Code wrapWithBlockIf(Expression check, [bool performCheck = true]) { return Block.of([ - if (performCheck) ...[ - const Code('if ('), - check.code, - const Code(') {'), - ], + if (performCheck) ...[const Code('if ('), check.code, const Code(') {')], this, if (performCheck) const Code('}'), ]); @@ -75,10 +67,11 @@ extension ReferenceHelpers on Reference { /// Constructs a `built_value` FullType reference for this. Expression fullType([Iterable? parameters]) { final typeRef = this.typeRef; - final ctor = typeRef.isNullable ?? false - ? (Iterable args) => - DartTypes.builtValue.fullType.constInstanceNamed('nullable', args) - : DartTypes.builtValue.fullType.constInstance; + final ctor = + typeRef.isNullable ?? false + ? (Iterable args) => DartTypes.builtValue.fullType + .constInstanceNamed('nullable', args) + : DartTypes.builtValue.fullType.constInstance; if (typeRef.types.isEmpty && (parameters == null || parameters.isEmpty)) { return ctor([typeRef.unboxed]); } @@ -104,39 +97,30 @@ extension ReferenceHelpers on Reference { } final transformed = switch (ref.symbol) { 'JsonObject' => DartTypes.core.object, - 'BuiltList' => DartTypes.core.list( - ref.types.single.coreFriendlySymbol, - ), - 'BuiltSet' => DartTypes.core.set( - ref.types.single.coreFriendlySymbol, - ), + 'BuiltList' => DartTypes.core.list(ref.types.single.coreFriendlySymbol), + 'BuiltSet' => DartTypes.core.set(ref.types.single.coreFriendlySymbol), 'BuiltMap' => DartTypes.core.map( - ref.types[0].coreFriendlySymbol, - ref.types[1].coreFriendlySymbol, - ), + ref.types[0].coreFriendlySymbol, + ref.types[1].coreFriendlySymbol, + ), 'BuiltListMultimap' => DartTypes.core.map( - ref.types[0].coreFriendlySymbol, - DartTypes.core.list(ref.types[1].coreFriendlySymbol), - ), + ref.types[0].coreFriendlySymbol, + DartTypes.core.list(ref.types[1].coreFriendlySymbol), + ), 'BuiltSetMultimap' => DartTypes.core.map( - ref.types[0].coreFriendlySymbol, - DartTypes.core.set(ref.types[1].coreFriendlySymbol), - ), + ref.types[0].coreFriendlySymbol, + DartTypes.core.set(ref.types[1].coreFriendlySymbol), + ), _ => throw ArgumentError('Invalid symbol: $symbol'), }; - return transformed.typeRef.rebuild( - (t) => t.isNullable = ref.isNullable, - ); + return transformed.typeRef.rebuild((t) => t.isNullable = ref.isNullable); } /// Transforms `built_collection` symbols to their `dart:core` counterpart, /// e.g. BuiltList -> List, BuiltSet -> Set, etc for use in factory /// constructors so that users do not need to concern themselves with built /// types when constructing instances. - Expression transformToBuiltValue({ - required String name, - bool? isNullable, - }) { + Expression transformToBuiltValue({required String name, bool? isNullable}) { Expression ref = refer(name); if (!requiresBuiltValueTransformation) { return ref; @@ -151,9 +135,10 @@ extension ReferenceHelpers on Reference { final childExpression = childSymbol.transformToBuiltValue(name: 'el'); ref = ref.property('map').call([ Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p.name = 'el')) - ..body = childExpression.code, + (m) => + m + ..requiredParameters.add(Parameter((p) => p.name = 'el')) + ..body = childExpression.code, ).closure, ]); } @@ -165,13 +150,17 @@ extension ReferenceHelpers on Reference { ); ref = ref.property('map').call([ Method( - (m) => m - ..requiredParameters.addAll([ - Parameter((p) => p.name = 'key'), - Parameter((p) => p.name = 'value'), - ]) - ..body = DartTypes.core.mapEntry - .newInstance([refer('key'), valueExpression]).code, + (m) => + m + ..requiredParameters.addAll([ + Parameter((p) => p.name = 'key'), + Parameter((p) => p.name = 'value'), + ]) + ..body = + DartTypes.core.mapEntry.newInstance([ + refer('key'), + valueExpression, + ]).code, ).closure, ]); } @@ -179,25 +168,28 @@ extension ReferenceHelpers on Reference { case 'BuiltSetMultimap': final valueSymbol = types[1]; if (valueSymbol.requiresBuiltValueTransformation) { - final childExpression = valueSymbol.transformToBuiltValue( - name: 'el', - ); + final childExpression = valueSymbol.transformToBuiltValue(name: 'el'); final valueExpression = refer('value').property('map').call([ Method( - (m) => m - ..requiredParameters.add(Parameter((p) => p.name = 'el')) - ..body = childExpression.code, + (m) => + m + ..requiredParameters.add(Parameter((p) => p.name = 'el')) + ..body = childExpression.code, ).closure, ]); ref = ref.property('map').call([ Method( - (m) => m - ..requiredParameters.addAll([ - Parameter((p) => p.name = 'key'), - Parameter((p) => p.name = 'value'), - ]) - ..body = DartTypes.core.mapEntry - .newInstance([refer('key'), valueExpression]).code, + (m) => + m + ..requiredParameters.addAll([ + Parameter((p) => p.name = 'key'), + Parameter((p) => p.name = 'value'), + ]) + ..body = + DartTypes.core.mapEntry.newInstance([ + refer('key'), + valueExpression, + ]).code, ).closure, ]); } diff --git a/packages/smithy/smithy_codegen/pubspec.yaml b/packages/smithy/smithy_codegen/pubspec.yaml index 8c4a36f37e..a1f38e93e5 100644 --- a/packages/smithy/smithy_codegen/pubspec.yaml +++ b/packages/smithy/smithy_codegen/pubspec.yaml @@ -5,7 +5,7 @@ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/sm publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: args: ^2.3.0 @@ -14,16 +14,16 @@ dependencies: build_cli_annotations: ^2.0.0 built_collection: ^5.1.1 built_value: ^8.6.0 - code_builder: 4.10.0 + code_builder: ^4.10.1 collection: ^1.15.0 crclib: ^3.0.0 - dart_style: ^2.3.2 + dart_style: ^3.0.1 fixnum: ^1.0.0 grpc: ^3.0.2 html2md: ^1.2.5 jmespath: ^2.0.0 json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" protobuf: ^2.0.1 pub_semver: ^2.1.0 @@ -37,13 +37,13 @@ dependencies: yaml_edit: ^2.0.1 dev_dependencies: - amplify_lints: ">=3.0.0 <3.1.0" + amplify_lints: ">=3.1.0 <3.2.0" build_cli: ^2.1.6 build_runner: ^2.4.9 build_verify: ^3.0.0 build_version: ^2.1.0 - built_value_generator: 8.9.3 - json_serializable: 6.8.0 + built_value_generator: ^8.9.5 + json_serializable: ^6.9.4 smithy_test: path: ../smithy_test test: ^1.22.1 diff --git a/packages/smithy/smithy_codegen/test/aws/endpoints_test.dart b/packages/smithy/smithy_codegen/test/aws/endpoints_test.dart index 34b3bbaf16..52c8c488c2 100644 --- a/packages/smithy/smithy_codegen/test/aws/endpoints_test.dart +++ b/packages/smithy/smithy_codegen/test/aws/endpoints_test.dart @@ -39,63 +39,50 @@ void main() { group('Endpoints', () { for (var i = 0; i < testCases.length; i++) { final testCase = testCases[i]; - test( - 'Test Case $i', - () { - final partitions = - endpoints.values.map((node) => node[testCase.service]).toList(); - final endpointResolver = AWSEndpointResolver(partitions); - expect( - endpointResolver - .resolve(testCase.service, testCase.region) - .endpoint - .uri - .host, - equals(testCase.endpoint), - ); - }, - skip: skipReason(testCase), - ); + test('Test Case $i', () { + final partitions = + endpoints.values.map((node) => node[testCase.service]).toList(); + final endpointResolver = AWSEndpointResolver(partitions); + expect( + endpointResolver + .resolve(testCase.service, testCase.region) + .endpoint + .uri + .host, + equals(testCase.endpoint), + ); + }, skip: skipReason(testCase)); } // Error cases - test( - 'Warning: Deprecated Endpoint', - () { - /* const testCase = */ const TestCase( - service: 'multi-variant-service', - region: 'af-south-1', - fips: false, - dualStack: false, - ); - }, - skip: 'No logging enabled', - ); + test('Warning: Deprecated Endpoint', () { + /* const testCase = */ + const TestCase( + service: 'multi-variant-service', + region: 'af-south-1', + fips: false, + dualStack: false, + ); + }, skip: 'No logging enabled'); - test( - 'Error: FIPS not supported', - () { - /* const testCase = */ const TestCase( - service: 'some-service', - region: 'us-iso-east-1', - fips: true, - dualStack: false, - ); - }, - skip: 'FIPS not supported', - ); + test('Error: FIPS not supported', () { + /* const testCase = */ + const TestCase( + service: 'some-service', + region: 'us-iso-east-1', + fips: true, + dualStack: false, + ); + }, skip: 'FIPS not supported'); - test( - 'Error: DualStack not supported', - () { - /* const testCase = */ const TestCase( - service: 'some-service', - region: 'us-iso-east-1', - fips: false, - dualStack: true, - ); - }, - skip: 'DualStack not supported', - ); + test('Error: DualStack not supported', () { + /* const testCase = */ + const TestCase( + service: 'some-service', + region: 'us-iso-east-1', + fips: false, + dualStack: true, + ); + }, skip: 'DualStack not supported'); }); } diff --git a/packages/smithy/smithy_codegen/test/aws/endpoints_test.g.dart b/packages/smithy/smithy_codegen/test/aws/endpoints_test.g.dart index dca085e3ad..02d07c6804 100644 --- a/packages/smithy/smithy_codegen/test/aws/endpoints_test.g.dart +++ b/packages/smithy/smithy_codegen/test/aws/endpoints_test.g.dart @@ -12,91 +12,91 @@ final _$_testCasesJsonLiteral = [ 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'default-pattern-service.us-west-2.amazonaws.com' + 'Endpoint': 'default-pattern-service.us-west-2.amazonaws.com', }, { 'Service': 'default-pattern-service', 'Region': 'us-west-2', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'default-pattern-service-fips.us-west-2.amazonaws.com' + 'Endpoint': 'default-pattern-service-fips.us-west-2.amazonaws.com', }, { 'Service': 'default-pattern-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'default-pattern-service.af-south-1.amazonaws.com' + 'Endpoint': 'default-pattern-service.af-south-1.amazonaws.com', }, { 'Service': 'default-pattern-service', 'Region': 'af-south-1', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'default-pattern-service-fips.af-south-1.amazonaws.com' + 'Endpoint': 'default-pattern-service-fips.af-south-1.amazonaws.com', }, { 'Service': 'global-service', 'Region': 'aws-global', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'global-service.amazonaws.com' + 'Endpoint': 'global-service.amazonaws.com', }, { 'Service': 'global-service', 'Region': 'aws-global', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'global-service-fips.amazonaws.com' + 'Endpoint': 'global-service-fips.amazonaws.com', }, { 'Service': 'global-service', 'Region': 'foo', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'global-service.amazonaws.com' + 'Endpoint': 'global-service.amazonaws.com', }, { 'Service': 'global-service', 'Region': 'foo', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'global-service-fips.amazonaws.com' + 'Endpoint': 'global-service-fips.amazonaws.com', }, { 'Service': 'override-variant-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-variant-service.us-west-2.amazonaws.com', }, { 'Service': 'override-variant-service', 'Region': 'us-west-2', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'fips.override-variant-service.us-west-2.new.dns.suffix' + 'Endpoint': 'fips.override-variant-service.us-west-2.new.dns.suffix', }, { 'Service': 'override-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-variant-service.af-south-1.amazonaws.com', }, { 'Service': 'override-variant-service', 'Region': 'af-south-1', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'fips.override-variant-service.af-south-1.new.dns.suffix' + 'Endpoint': 'fips.override-variant-service.af-south-1.new.dns.suffix', }, { 'Service': 'override-variant-dns-suffix-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-dns-suffix-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-variant-dns-suffix-service.us-west-2.amazonaws.com', }, { 'Service': 'override-variant-dns-suffix-service', @@ -104,14 +104,14 @@ final _$_testCasesJsonLiteral = [ 'FIPS': true, 'DualStack': false, 'Endpoint': - 'override-variant-dns-suffix-service-fips.us-west-2.new.dns.suffix' + 'override-variant-dns-suffix-service-fips.us-west-2.new.dns.suffix', }, { 'Service': 'override-variant-dns-suffix-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-dns-suffix-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-variant-dns-suffix-service.af-south-1.amazonaws.com', }, { 'Service': 'override-variant-dns-suffix-service', @@ -119,28 +119,29 @@ final _$_testCasesJsonLiteral = [ 'FIPS': true, 'DualStack': false, 'Endpoint': - 'override-variant-dns-suffix-service-fips.af-south-1.new.dns.suffix' + 'override-variant-dns-suffix-service-fips.af-south-1.new.dns.suffix', }, { 'Service': 'override-variant-hostname-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-hostname-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-variant-hostname-service.us-west-2.amazonaws.com', }, { 'Service': 'override-variant-hostname-service', 'Region': 'us-west-2', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'fips.override-variant-hostname-service.us-west-2.amazonaws.com' + 'Endpoint': + 'fips.override-variant-hostname-service.us-west-2.amazonaws.com', }, { 'Service': 'override-variant-hostname-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-hostname-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-variant-hostname-service.af-south-1.amazonaws.com', }, { 'Service': 'override-variant-hostname-service', @@ -148,28 +149,29 @@ final _$_testCasesJsonLiteral = [ 'FIPS': true, 'DualStack': false, 'Endpoint': - 'fips.override-variant-hostname-service.af-south-1.amazonaws.com' + 'fips.override-variant-hostname-service.af-south-1.amazonaws.com', }, { 'Service': 'override-endpoint-variant-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-endpoint-variant-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-endpoint-variant-service.us-west-2.amazonaws.com', }, { 'Service': 'override-endpoint-variant-service', 'Region': 'us-west-2', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'fips.override-endpoint-variant-service.us-west-2.amazonaws.com' + 'Endpoint': + 'fips.override-endpoint-variant-service.us-west-2.amazonaws.com', }, { 'Service': 'override-endpoint-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-endpoint-variant-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-endpoint-variant-service.af-south-1.amazonaws.com', }, { 'Service': 'override-endpoint-variant-service', @@ -177,154 +179,155 @@ final _$_testCasesJsonLiteral = [ 'FIPS': true, 'DualStack': false, 'Endpoint': - 'override-endpoint-variant-service-fips.af-south-1.amazonaws.com' + 'override-endpoint-variant-service-fips.af-south-1.amazonaws.com', }, { 'Service': 'default-pattern-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'default-pattern-service.us-west-2.amazonaws.com' + 'Endpoint': 'default-pattern-service.us-west-2.amazonaws.com', }, { 'Service': 'default-pattern-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'default-pattern-service.us-west-2.api.aws' + 'Endpoint': 'default-pattern-service.us-west-2.api.aws', }, { 'Service': 'default-pattern-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'default-pattern-service.af-south-1.amazonaws.com' + 'Endpoint': 'default-pattern-service.af-south-1.amazonaws.com', }, { 'Service': 'default-pattern-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'default-pattern-service.af-south-1.api.aws' + 'Endpoint': 'default-pattern-service.af-south-1.api.aws', }, { 'Service': 'global-service', 'Region': 'aws-global', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'global-service.amazonaws.com' + 'Endpoint': 'global-service.amazonaws.com', }, { 'Service': 'global-service', 'Region': 'aws-global', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'global-service.api.aws' + 'Endpoint': 'global-service.api.aws', }, { 'Service': 'global-service', 'Region': 'foo', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'global-service.amazonaws.com' + 'Endpoint': 'global-service.amazonaws.com', }, { 'Service': 'global-service', 'Region': 'foo', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'global-service.api.aws' + 'Endpoint': 'global-service.api.aws', }, { 'Service': 'override-variant-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-variant-service.us-west-2.amazonaws.com', }, { 'Service': 'override-variant-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'override-variant-service.dualstack.us-west-2.new.dns.suffix' + 'Endpoint': 'override-variant-service.dualstack.us-west-2.new.dns.suffix', }, { 'Service': 'override-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-variant-service.af-south-1.amazonaws.com', }, { 'Service': 'override-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'override-variant-service.dualstack.af-south-1.new.dns.suffix' + 'Endpoint': 'override-variant-service.dualstack.af-south-1.new.dns.suffix', }, { 'Service': 'override-variant-dns-suffix-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-dns-suffix-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-variant-dns-suffix-service.us-west-2.amazonaws.com', }, { 'Service': 'override-variant-dns-suffix-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'override-variant-dns-suffix-service.us-west-2.new.dns.suffix' + 'Endpoint': 'override-variant-dns-suffix-service.us-west-2.new.dns.suffix', }, { 'Service': 'override-variant-dns-suffix-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-dns-suffix-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-variant-dns-suffix-service.af-south-1.amazonaws.com', }, { 'Service': 'override-variant-dns-suffix-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'override-variant-dns-suffix-service.af-south-1.new.dns.suffix' + 'Endpoint': 'override-variant-dns-suffix-service.af-south-1.new.dns.suffix', }, { 'Service': 'override-variant-hostname-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-hostname-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-variant-hostname-service.us-west-2.amazonaws.com', }, { 'Service': 'override-variant-hostname-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'override-variant-hostname-service.dualstack.us-west-2.api.aws' + 'Endpoint': 'override-variant-hostname-service.dualstack.us-west-2.api.aws', }, { 'Service': 'override-variant-hostname-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-variant-hostname-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-variant-hostname-service.af-south-1.amazonaws.com', }, { 'Service': 'override-variant-hostname-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'override-variant-hostname-service.dualstack.af-south-1.api.aws' + 'Endpoint': + 'override-variant-hostname-service.dualstack.af-south-1.api.aws', }, { 'Service': 'override-endpoint-variant-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-endpoint-variant-service.us-west-2.amazonaws.com' + 'Endpoint': 'override-endpoint-variant-service.us-west-2.amazonaws.com', }, { 'Service': 'override-endpoint-variant-service', @@ -332,78 +335,79 @@ final _$_testCasesJsonLiteral = [ 'FIPS': false, 'DualStack': true, 'Endpoint': - 'override-endpoint-variant-service.dualstack.us-west-2.amazonaws.com' + 'override-endpoint-variant-service.dualstack.us-west-2.amazonaws.com', }, { 'Service': 'override-endpoint-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'override-endpoint-variant-service.af-south-1.amazonaws.com' + 'Endpoint': 'override-endpoint-variant-service.af-south-1.amazonaws.com', }, { 'Service': 'override-endpoint-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'override-endpoint-variant-service.af-south-1.api.aws' + 'Endpoint': 'override-endpoint-variant-service.af-south-1.api.aws', }, { 'Service': 'multi-variant-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'multi-variant-service.us-west-2.amazonaws.com' + 'Endpoint': 'multi-variant-service.us-west-2.amazonaws.com', }, { 'Service': 'multi-variant-service', 'Region': 'us-west-2', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'multi-variant-service.dualstack.us-west-2.api.aws' + 'Endpoint': 'multi-variant-service.dualstack.us-west-2.api.aws', }, { 'Service': 'multi-variant-service', 'Region': 'us-west-2', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'fips.multi-variant-service.us-west-2.amazonaws.com' + 'Endpoint': 'fips.multi-variant-service.us-west-2.amazonaws.com', }, { 'Service': 'multi-variant-service', 'Region': 'us-west-2', 'FIPS': true, 'DualStack': true, - 'Endpoint': 'fips.multi-variant-service.dualstack.us-west-2.new.dns.suffix' + 'Endpoint': 'fips.multi-variant-service.dualstack.us-west-2.new.dns.suffix', }, { 'Service': 'multi-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': false, - 'Endpoint': 'multi-variant-service.af-south-1.amazonaws.com' + 'Endpoint': 'multi-variant-service.af-south-1.amazonaws.com', }, { 'Service': 'multi-variant-service', 'Region': 'af-south-1', 'FIPS': false, 'DualStack': true, - 'Endpoint': 'multi-variant-service.dualstack.af-south-1.api.aws' + 'Endpoint': 'multi-variant-service.dualstack.af-south-1.api.aws', }, { 'Service': 'multi-variant-service', 'Region': 'af-south-1', 'FIPS': true, 'DualStack': false, - 'Endpoint': 'fips.multi-variant-service.af-south-1.amazonaws.com' + 'Endpoint': 'fips.multi-variant-service.af-south-1.amazonaws.com', }, { 'Service': 'multi-variant-service', 'Region': 'af-south-1', 'FIPS': true, 'DualStack': true, - 'Endpoint': 'fips.multi-variant-service.dualstack.af-south-1.new.dns.suffix' - } + 'Endpoint': + 'fips.multi-variant-service.dualstack.af-south-1.new.dns.suffix', + }, ]; final _$_endpointsJsonLiteral = { @@ -417,26 +421,26 @@ final _$_endpointsJsonLiteral = { { 'dnsSuffix': 'amazonaws.com', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'dnsSuffix': 'api.aws', 'hostname': '{service}.{region}.{dnsSuffix}', - 'tags': ['dualstack'] + 'tags': ['dualstack'], }, { 'dnsSuffix': 'api.aws', 'hostname': '{service}-fips.{region}.{dnsSuffix}', - 'tags': ['dualstack', 'fips'] - } - ] + 'tags': ['dualstack', 'fips'], + }, + ], }, 'dnsSuffix': 'amazonaws.com', 'partition': 'aws', 'regionRegex': '^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+\$', 'regions': { 'af-south-1': {'description': 'Africa (Cape Town)'}, - 'us-west-2': {'description': 'US West (Oregon)'} + 'us-west-2': {'description': 'US West (Oregon)'}, }, 'services': { 'default-pattern-service': { @@ -445,14 +449,14 @@ final _$_endpointsJsonLiteral = { 'us-west-2': { 'variants': [ { - 'tags': ['fips'] + 'tags': ['fips'], }, { - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'global-service': { 'endpoints': { @@ -462,17 +466,17 @@ final _$_endpointsJsonLiteral = { 'variants': [ { 'hostname': 'global-service-fips.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'global-service.api.aws', - 'tags': ['dualstack'] - } - ] - } + 'tags': ['dualstack'], + }, + ], + }, }, 'isRegionalized': false, - 'partitionEndpoint': 'aws-global' + 'partitionEndpoint': 'aws-global', }, 'override-variant-service': { 'defaults': { @@ -480,14 +484,14 @@ final _$_endpointsJsonLiteral = { { 'hostname': 'fips.{service}.{region}.{dnsSuffix}', 'dnsSuffix': 'new.dns.suffix', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', 'dnsSuffix': 'new.dns.suffix', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -496,29 +500,29 @@ final _$_endpointsJsonLiteral = { { 'hostname': 'fips.override-variant-service.us-west-2.new.dns.suffix', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'override-variant-service.dualstack.us-west-2.new.dns.suffix', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'override-variant-dns-suffix-service': { 'defaults': { 'variants': [ { 'dnsSuffix': 'new.dns.suffix', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'dnsSuffix': 'new.dns.suffix', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -527,29 +531,29 @@ final _$_endpointsJsonLiteral = { { 'hostname': 'override-variant-dns-suffix-service-fips.us-west-2.new.dns.suffix', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'override-variant-dns-suffix-service.us-west-2.new.dns.suffix', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'override-variant-hostname-service': { 'defaults': { 'variants': [ { 'hostname': 'fips.{service}.{region}.{dnsSuffix}', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] - } - ] + 'tags': ['dualstack'], + }, + ], }, 'endpoints': { 'af-south-1': {}, @@ -558,16 +562,16 @@ final _$_endpointsJsonLiteral = { { 'hostname': 'fips.override-variant-hostname-service.us-west-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'override-variant-hostname-service.dualstack.us-west-2.api.aws', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'override-endpoint-variant-service': { 'endpoints': { @@ -577,34 +581,34 @@ final _$_endpointsJsonLiteral = { { 'hostname': 'fips.override-endpoint-variant-service.us-west-2.amazonaws.com', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': 'override-endpoint-variant-service.dualstack.us-west-2.amazonaws.com', - 'tags': ['dualstack'] - } - ] - } - } + 'tags': ['dualstack'], + }, + ], + }, + }, }, 'multi-variant-service': { 'defaults': { 'variants': [ { 'hostname': 'fips.{service}.{region}.{dnsSuffix}', - 'tags': ['fips'] + 'tags': ['fips'], }, { 'hostname': '{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['dualstack'] + 'tags': ['dualstack'], }, { 'dnsSuffix': 'new.dns.suffix', 'hostname': 'fips.{service}.dualstack.{region}.{dnsSuffix}', - 'tags': ['fips', 'dualstack'] - } - ] + 'tags': ['fips', 'dualstack'], + }, + ], }, 'endpoints': { 'af-south-1': {'deprecated': true}, @@ -613,32 +617,32 @@ final _$_endpointsJsonLiteral = { { 'hostname': 'fips.multi-variant-service.dualstack.us-west-2.new.dns.suffix', - 'tags': ['fips', 'dualstack'] - } - ] - } - } - } - } + 'tags': ['fips', 'dualstack'], + }, + ], + }, + }, + }, + }, }, { 'defaults': { 'hostname': '{service}.{region}.{dnsSuffix}', 'protocols': ['https'], - 'signatureVersions': ['v4'] + 'signatureVersions': ['v4'], }, 'dnsSuffix': 'c2s.ic.gov', 'partition': 'aws-iso', 'regionRegex': '^us\\-iso\\-\\w+\\-\\d+\$', 'regions': { - 'us-iso-east-1': {'description': 'US ISO East'} + 'us-iso-east-1': {'description': 'US ISO East'}, }, 'services': { 'some-service': { - 'endpoints': {'us-iso-east-1': {}} - } - } - } + 'endpoints': {'us-iso-east-1': {}}, + }, + }, + }, ], - 'version': 3 + 'version': 3, }; diff --git a/packages/smithy/smithy_codegen/test/aws/test_case.g.dart b/packages/smithy/smithy_codegen/test/aws/test_case.g.dart index 322efef2f4..76e4394713 100644 --- a/packages/smithy/smithy_codegen/test/aws/test_case.g.dart +++ b/packages/smithy/smithy_codegen/test/aws/test_case.g.dart @@ -7,9 +7,9 @@ part of 'test_case.dart'; // ************************************************************************** TestCase _$TestCaseFromJson(Map json) => TestCase( - service: json['Service'] as String, - region: json['Region'] as String, - fips: json['FIPS'] as bool, - dualStack: json['DualStack'] as bool, - endpoint: json['Endpoint'] as String?, - ); + service: json['Service'] as String, + region: json['Region'] as String, + fips: json['FIPS'] as bool, + dualStack: json['DualStack'] as bool, + endpoint: json['Endpoint'] as String?, +); diff --git a/packages/smithy/smithy_codegen/test/default_value_test.dart b/packages/smithy/smithy_codegen/test/default_value_test.dart index 0ba526a499..9fc50c1b24 100644 --- a/packages/smithy/smithy_codegen/test/default_value_test.dart +++ b/packages/smithy/smithy_codegen/test/default_value_test.dart @@ -29,26 +29,28 @@ void main() { const primitiveId = ShapeId(namespace: 'example', shape: 'MyPrimitive'); final primitive = PrimitiveDoubleShape((b) => b..shapeId = primitiveId); final struct = StructureShape( - (b) => b - ..shapeId = const ShapeId(namespace: 'example', shape: 'MyStruct') - ..members = NamedMembersMap({ - 'defaultValue': MemberShape( - (b) => b - ..memberName = 'defaultValue' - ..shapeId = const ShapeId( - namespace: 'example', - shape: 'MyStruct', - member: 'defaultValue', - ) - ..target = primitiveId, - ), - }) - ..traits = TraitMap.fromTraits(const [InputTrait()]), - ); - final context = createTestContext( - [primitive, struct], - version: SmithyVersion.v1, + (b) => + b + ..shapeId = const ShapeId(namespace: 'example', shape: 'MyStruct') + ..members = NamedMembersMap({ + 'defaultValue': MemberShape( + (b) => + b + ..memberName = 'defaultValue' + ..shapeId = const ShapeId( + namespace: 'example', + shape: 'MyStruct', + member: 'defaultValue', + ) + ..target = primitiveId, + ), + }) + ..traits = TraitMap.fromTraits(const [InputTrait()]), ); + final context = createTestContext([ + primitive, + struct, + ], version: SmithyVersion.v1); testDefaultValue(struct, context); }); @@ -56,22 +58,24 @@ void main() { const primitiveId = ShapeId(namespace: 'example', shape: 'MyPrimitive'); final primitive = DoubleShape((b) => b..shapeId = primitiveId); final struct = StructureShape( - (b) => b - ..shapeId = const ShapeId(namespace: 'example', shape: 'MyStruct') - ..members = NamedMembersMap({ - 'defaultValue': MemberShape( - (b) => b - ..memberName = 'defaultValue' - ..shapeId = const ShapeId( - namespace: 'example', - shape: 'MyStruct', - member: 'defaultValue', - ) - ..target = primitiveId - ..traits = TraitMap.fromTraits(const [DefaultTrait(0)]), - ), - }) - ..traits = TraitMap.fromTraits(const [InputTrait()]), + (b) => + b + ..shapeId = const ShapeId(namespace: 'example', shape: 'MyStruct') + ..members = NamedMembersMap({ + 'defaultValue': MemberShape( + (b) => + b + ..memberName = 'defaultValue' + ..shapeId = const ShapeId( + namespace: 'example', + shape: 'MyStruct', + member: 'defaultValue', + ) + ..target = primitiveId + ..traits = TraitMap.fromTraits(const [DefaultTrait(0)]), + ), + }) + ..traits = TraitMap.fromTraits(const [InputTrait()]), ); final context = createTestContext([primitive, struct]); testDefaultValue(struct, context); diff --git a/packages/smithy/smithy_codegen/test/ensure_build_test.dart b/packages/smithy/smithy_codegen/test/ensure_build_test.dart index c803dcf66f..dfed21b5eb 100644 --- a/packages/smithy/smithy_codegen/test/ensure_build_test.dart +++ b/packages/smithy/smithy_codegen/test/ensure_build_test.dart @@ -3,6 +3,7 @@ @TestOn('vm') @Tags(['build']) +library; import 'package:build_verify/build_verify.dart'; import 'package:test/test.dart'; diff --git a/packages/smithy/smithy_codegen/test/generator/documentation_test.dart b/packages/smithy/smithy_codegen/test/generator/documentation_test.dart index f89c06fc9b..34122296f5 100644 --- a/packages/smithy/smithy_codegen/test/generator/documentation_test.dart +++ b/packages/smithy/smithy_codegen/test/generator/documentation_test.dart @@ -45,10 +45,11 @@ void main() { test('structure', () { final struct = StructureShape( - (b) => b - ..shapeId = const ShapeId(namespace: 'example', shape: 'MyStruct') - ..members = NamedMembersMap({}) - ..traits = TraitMap.fromTraits(const [DocumentationTrait(docs)]), + (b) => + b + ..shapeId = const ShapeId(namespace: 'example', shape: 'MyStruct') + ..members = NamedMembersMap({}) + ..traits = TraitMap.fromTraits(const [DocumentationTrait(docs)]), ); final context = createTestContext([struct]); context.run(() { diff --git a/packages/smithy/smithy_codegen/test/model/smithy_library_test.dart b/packages/smithy/smithy_codegen/test/model/smithy_library_test.dart index 90d37dc3c4..8ba7b827bb 100644 --- a/packages/smithy/smithy_codegen/test/model/smithy_library_test.dart +++ b/packages/smithy/smithy_codegen/test/model/smithy_library_test.dart @@ -26,8 +26,9 @@ void main() { final fromPath = SmithyLibraryX.fromPath(packageName, serviceName); expect(fromPath, equals(expected)); - final fromLibraryName = - SmithyLibraryX.fromLibraryName('$packageName.$serviceName'); + final fromLibraryName = SmithyLibraryX.fromLibraryName( + '$packageName.$serviceName', + ); expect(fromLibraryName, equals(expected)); expect(expected.filename, equals('foo')); @@ -46,12 +47,17 @@ void main() { filename: filename, ); - final fromParts = - SmithyLibraryX.fromParts([packageName, serviceName, clientName]); + final fromParts = SmithyLibraryX.fromParts([ + packageName, + serviceName, + clientName, + ]); expect(fromParts, equals(expected)); - final fromPath = - SmithyLibraryX.fromPath(packageName, 'src/$serviceName/$filename'); + final fromPath = SmithyLibraryX.fromPath( + packageName, + 'src/$serviceName/$filename', + ); expect(fromPath, equals(expected)); final fromLibraryName = SmithyLibraryX.fromLibraryName( diff --git a/packages/smithy/smithy_codegen/test/naming_test.dart b/packages/smithy/smithy_codegen/test/naming_test.dart index 3f01ba2427..b7d3407747 100644 --- a/packages/smithy/smithy_codegen/test/naming_test.dart +++ b/packages/smithy/smithy_codegen/test/naming_test.dart @@ -15,9 +15,10 @@ void main() { group('Struct', () { test('valid name', () { final shape = StructureShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyStruct') - ..members = NamedMembersMap({}), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyStruct') + ..members = NamedMembersMap({}), ); final context = createTestContext([shape]); final name = StructureGenerator(shape, context).className; @@ -26,14 +27,16 @@ void main() { test('conflict with builder of another class', () { final myStruct = StructureShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyStruct') - ..members = NamedMembersMap({}), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyStruct') + ..members = NamedMembersMap({}), ); final myStructBuilder = StructureShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyStructBuilder') - ..members = NamedMembersMap({}), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyStructBuilder') + ..members = NamedMembersMap({}), ); final shapes = [myStruct, myStructBuilder]; final context = createTestContext(shapes); @@ -43,38 +46,45 @@ void main() { test('member names', () { final shape = StructureShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyStruct') - ..members = NamedMembersMap({ - 'build': MemberShape( - (b) => b - ..memberName = 'build' - ..target = Shape.unit, - ), - 'update': MemberShape( - (b) => b - ..memberName = 'update' - ..target = Shape.unit, - ), - 'rebuild': MemberShape( - (b) => b - ..memberName = 'rebuild' - ..target = Shape.unit, - ), - 'replace': MemberShape( - (b) => b - ..memberName = 'replace' - ..target = Shape.unit, - ), - 'toBuilder': MemberShape( - (b) => b - ..memberName = 'toBuilder' - ..target = Shape.unit, - ), - }), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyStruct') + ..members = NamedMembersMap({ + 'build': MemberShape( + (b) => + b + ..memberName = 'build' + ..target = Shape.unit, + ), + 'update': MemberShape( + (b) => + b + ..memberName = 'update' + ..target = Shape.unit, + ), + 'rebuild': MemberShape( + (b) => + b + ..memberName = 'rebuild' + ..target = Shape.unit, + ), + 'replace': MemberShape( + (b) => + b + ..memberName = 'replace' + ..target = Shape.unit, + ), + 'toBuilder': MemberShape( + (b) => + b + ..memberName = 'toBuilder' + ..target = Shape.unit, + ), + }), + ); + final memberNames = shape.members.values.map( + (m) => m.dartName(ShapeType.structure), ); - final memberNames = - shape.members.values.map((m) => m.dartName(ShapeType.structure)); expect( memberNames, unorderedEquals([ @@ -91,9 +101,10 @@ void main() { group('Union', () { test('valid name', () { final shape = UnionShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyUnion') - ..members = NamedMembersMap({}), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyUnion') + ..members = NamedMembersMap({}), ); final context = createTestContext([shape]); final name = UnionGenerator(shape, context).className; @@ -102,14 +113,16 @@ void main() { test('conflict with builder of another class', () { final myUnion = UnionShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyUnion') - ..members = NamedMembersMap({}), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyUnion') + ..members = NamedMembersMap({}), ); final myUnionBuilder = UnionShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyUnionBuilder') - ..members = NamedMembersMap({}), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyUnionBuilder') + ..members = NamedMembersMap({}), ); final shapes = [myUnion, myUnionBuilder]; final context = createTestContext(shapes); @@ -119,36 +132,36 @@ void main() { test('member names', () { final shape = UnionShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyStruct') - ..members = NamedMembersMap({ - 'value': MemberShape( - (b) => b - ..memberName = 'value' - ..target = Shape.unit, - ), - 'sdkUnknown': MemberShape( - (b) => b - ..memberName = 'sdkUnknown' - ..target = Shape.unit, - ), - 'unknown': MemberShape( - (b) => b - ..memberName = 'unknown' - ..target = Shape.unit, - ), - }), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyStruct') + ..members = NamedMembersMap({ + 'value': MemberShape( + (b) => + b + ..memberName = 'value' + ..target = Shape.unit, + ), + 'sdkUnknown': MemberShape( + (b) => + b + ..memberName = 'sdkUnknown' + ..target = Shape.unit, + ), + 'unknown': MemberShape( + (b) => + b + ..memberName = 'unknown' + ..target = Shape.unit, + ), + }), ); final context = createTestContext([shape]); final generator = UnionGenerator(shape, context); final memberNames = shape.members.values.map(generator.variantName); expect( memberNames, - unorderedEquals([ - r'value$', - r'sdkUnknown$', - r'unknown$', - ]), + unorderedEquals([r'value$', r'sdkUnknown$', r'unknown$']), ); }); }); @@ -156,17 +169,20 @@ void main() { group('Enum', () { test('valid name', () { final shape = StringEnumShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyEnum') - ..members = NamedMembersMap({ - 'TEST': MemberShape( - (b) => b - ..memberName = 'TEST' - ..target = Shape.unit - ..traits = - TraitMap.fromTraits(const [EnumValueTrait('test')]), - ), - }), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyEnum') + ..members = NamedMembersMap({ + 'TEST': MemberShape( + (b) => + b + ..memberName = 'TEST' + ..target = Shape.unit + ..traits = TraitMap.fromTraits(const [ + EnumValueTrait('test'), + ]), + ), + }), ); final context = createTestContext([shape]); final name = EnumGenerator(shape, context).className; @@ -175,24 +191,28 @@ void main() { test('conflict with builder of another class', () { final myEnum = StringEnumShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyEnum') - ..members = NamedMembersMap({ - 'TEST': MemberShape( - (b) => b - ..memberName = 'TEST' - ..target = Shape.unit - ..traits = - TraitMap.fromTraits(const [EnumValueTrait('test')]), - ), - }), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyEnum') + ..members = NamedMembersMap({ + 'TEST': MemberShape( + (b) => + b + ..memberName = 'TEST' + ..target = Shape.unit + ..traits = TraitMap.fromTraits(const [ + EnumValueTrait('test'), + ]), + ), + }), ); final myEnumBuilder = StringShape( - (b) => b - ..shapeId = ShapeId.parse('com.example#MyEnumBuilder') - ..traits = TraitMap.fromTraits([ - const EnumTrait([EnumDefinition(value: 'test')]), - ]), + (b) => + b + ..shapeId = ShapeId.parse('com.example#MyEnumBuilder') + ..traits = TraitMap.fromTraits([ + const EnumTrait([EnumDefinition(value: 'test')]), + ]), ); final shapes = [myEnum, myEnumBuilder]; final context = createTestContext(shapes); @@ -203,33 +223,35 @@ void main() { test('member names', () { final traits = [ MemberShape( - (b) => b - ..memberName = 'NAME' - ..target = Shape.unit - ..traits = TraitMap.fromTraits(const [EnumValueTrait('name')]), + (b) => + b + ..memberName = 'NAME' + ..target = Shape.unit + ..traits = TraitMap.fromTraits(const [ + EnumValueTrait('name'), + ]), ), MemberShape( - (b) => b - ..memberName = 'VALUE' - ..target = Shape.unit - ..traits = TraitMap.fromTraits(const [EnumValueTrait('value')]), + (b) => + b + ..memberName = 'VALUE' + ..target = Shape.unit + ..traits = TraitMap.fromTraits(const [ + EnumValueTrait('value'), + ]), ), MemberShape( - (b) => b - ..memberName = 'INDEX' - ..target = Shape.unit - ..traits = TraitMap.fromTraits(const [EnumValueTrait('index')]), + (b) => + b + ..memberName = 'INDEX' + ..target = Shape.unit + ..traits = TraitMap.fromTraits(const [ + EnumValueTrait('index'), + ]), ), ]; final memberNames = traits.map((def) => def.enumVariantName); - expect( - memberNames, - unorderedEquals([ - r'name$', - r'value$', - r'index$', - ]), - ); + expect(memberNames, unorderedEquals([r'name$', r'value$', r'index$'])); }); }); }); diff --git a/packages/smithy/smithy_test/lib/smithy_test.dart b/packages/smithy/smithy_test/lib/smithy_test.dart index 26dcc1f352..78f27d8103 100644 --- a/packages/smithy/smithy_test/lib/smithy_test.dart +++ b/packages/smithy/smithy_test/lib/smithy_test.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Test utilities for Smithy packages. -library smithy_test; +library; export 'package:smithy/ast.dart' show AppliesTo, HttpRequestTestCase, HttpResponseTestCase; diff --git a/packages/smithy/smithy_test/lib/src/common.dart b/packages/smithy/smithy_test/lib/src/common.dart index 9288e16489..79a707421f 100644 --- a/packages/smithy/smithy_test/lib/src/common.dart +++ b/packages/smithy/smithy_test/lib/src/common.dart @@ -9,7 +9,10 @@ import 'package:test/test.dart'; SmithyAst createAst(List shapes) { return SmithyAst( (b) => - b..shapes = ShapeMap({for (final shape in shapes) shape.shapeId: shape}), + b + ..shapes = ShapeMap({ + for (final shape in shapes) shape.shapeId: shape, + }), ); } diff --git a/packages/smithy/smithy_test/lib/src/http/http_request_test.dart b/packages/smithy/smithy_test/lib/src/http/http_request_test.dart index 08f9305244..761dae35ab 100644 --- a/packages/smithy/smithy_test/lib/src/http/http_request_test.dart +++ b/packages/smithy/smithy_test/lib/src/http/http_request_test.dart @@ -23,172 +23,148 @@ Future httpRequestTest({ required HttpRequestTestCase testCase, List>? inputSerializers, }) async { - return runZoned( - () async { - final protocol = operation.resolveProtocol( - useProtocol: testCase.protocol, - ); - final serializers = buildSerializers( - protocol.serializers, - inputSerializers, - ); - final input = serializers.deserialize( - testCase.params, - specifiedType: FullType(Input), - ) as Input; - final request = await operation - .createRequest( - operation.buildRequest(input), - protocol, - input, - ) - .transformRequest(); + return runZoned(() async { + final protocol = operation.resolveProtocol(useProtocol: testCase.protocol); + final serializers = buildSerializers( + protocol.serializers, + inputSerializers, + ); + final input = + serializers.deserialize(testCase.params, specifiedType: FullType(Input)) + as Input; + final request = + await operation + .createRequest(operation.buildRequest(input), protocol, input) + .transformRequest(); - // The request-target of the HTTP request, not including the query string - // (for example, "/foo/bar"). - expect(request.uri.path, equals(testCase.uri)); + // The request-target of the HTTP request, not including the query string + // (for example, "/foo/bar"). + expect(request.uri.path, equals(testCase.uri)); - // The expected host present in the `Host` header of the request, not - // including the path or scheme (for example, "prefix.example.com"). - // If no resolvedHost is defined, then no assertions are made about - // the resolved host for the request. - // - // This can differ from the host provided to the client if the operation - // has a member with the endpoint trait. - if (testCase.resolvedHost != null) { - expect(request.headers['Host'], equals(testCase.resolvedHost)); - } + // The expected host present in the `Host` header of the request, not + // including the path or scheme (for example, "prefix.example.com"). + // If no resolvedHost is defined, then no assertions are made about + // the resolved host for the request. + // + // This can differ from the host provided to the client if the operation + // has a member with the endpoint trait. + if (testCase.resolvedHost != null) { + expect(request.headers['Host'], equals(testCase.resolvedHost)); + } - // Each element in the list is a query string key value pair that - // starts with the query string parameter name optionally followed by - // "=", optionally followed by the query string parameter value. - // - // For example, "foo=bar", "foo=", and "foo" are all valid values. - for (final queryParam in testCase.queryParams) { - final parts = queryParam.split('='); - final key = Uri.decodeQueryComponent(parts.first); - final value = parts.length == 1 - ? '' - : Uri.decodeQueryComponent(parts.sublist(1).join('')); + // Each element in the list is a query string key value pair that + // starts with the query string parameter name optionally followed by + // "=", optionally followed by the query string parameter value. + // + // For example, "foo=bar", "foo=", and "foo" are all valid values. + for (final queryParam in testCase.queryParams) { + final parts = queryParam.split('='); + final key = Uri.decodeQueryComponent(parts.first); + final value = + parts.length == 1 + ? '' + : Uri.decodeQueryComponent(parts.sublist(1).join('')); - // This kind of list is used instead of a map so that query string - // parameter values for lists can be represented using repeated - // key-value pairs. - final paramValues = request.uri.queryParametersAll[key]; - expect(paramValues, contains(value)); - } + // This kind of list is used instead of a map so that query string + // parameter values for lists can be represented using repeated + // key-value pairs. + final paramValues = request.uri.queryParametersAll[key]; + expect(paramValues, contains(value)); + } - // A list of query string parameter names that must not appear in the - // serialized HTTP request. - for (final queryParamName in testCase.forbidQueryParams) { - // Each value MUST appear in the format in which it is sent over the - // wire; if a key needs to be percent-encoded, then it MUST appear - // percent-encoded in this list. - expect( - request.uri.queryParameters.containsKey(queryParamName), - isFalse, - ); - } + // A list of query string parameter names that must not appear in the + // serialized HTTP request. + for (final queryParamName in testCase.forbidQueryParams) { + // Each value MUST appear in the format in which it is sent over the + // wire; if a key needs to be percent-encoded, then it MUST appear + // percent-encoded in this list. + expect(request.uri.queryParameters.containsKey(queryParamName), isFalse); + } - // A list of query string parameter names that MUST appear in the - // serialized request URI, but no assertion is made on the value. - for (final queryParamName in testCase.requireQueryParams) { - // Each value MUST appear in the format in which it is sent over the - // wire; if a key needs to be percent-encoded, then it MUST appear - // percent-encoded in this list. - expect( - request.uri.queryParameters, - contains(queryParamName), - ); - } + // A list of query string parameter names that MUST appear in the + // serialized request URI, but no assertion is made on the value. + for (final queryParamName in testCase.requireQueryParams) { + // Each value MUST appear in the format in which it is sent over the + // wire; if a key needs to be percent-encoded, then it MUST appear + // percent-encoded in this list. + expect(request.uri.queryParameters, contains(queryParamName)); + } - // Each key represents a header field name and each value represents - // the expected header value. An HTTP request is not in compliance with - // the protocol if any listed header is missing from the serialized - // request or if the expected header value differs from the serialized - // request value. - for (final headerEntry in testCase.headers.entries) { - expect( - request.headers, - containsPair(headerEntry.key, headerEntry.value), - ); - } + // Each key represents a header field name and each value represents + // the expected header value. An HTTP request is not in compliance with + // the protocol if any listed header is missing from the serialized + // request or if the expected header value differs from the serialized + // request value. + for (final headerEntry in testCase.headers.entries) { + expect(request.headers, containsPair(headerEntry.key, headerEntry.value)); + } - // A list of header field names that must not appear in the serialized - // HTTP request. - for (final headerName in testCase.forbidHeaders) { - expect( - request.headers.containsKey(headerName), - isFalse, - ); - } + // A list of header field names that must not appear in the serialized + // HTTP request. + for (final headerName in testCase.forbidHeaders) { + expect(request.headers.containsKey(headerName), isFalse); + } - // A list of header field names that must appear in the serialized HTTP - // message, but no assertion is made on the value. Headers listed in - // headers do not need to appear in this list. - for (final headerName in testCase.requireHeaders) { - expect( - request.headers, - contains(headerName), - ); - } + // A list of header field names that must appear in the serialized HTTP + // message, but no assertion is made on the value. Headers listed in + // headers do not need to appear in this list. + for (final headerName in testCase.requireHeaders) { + expect(request.headers, contains(headerName)); + } - // The expected HTTP message body. If no request body is defined, then no - // assertions are made about the body of the message. Because the body - // parameter is a string, binary data MUST be represented in body by - // base64 encoding the data (for example, use "Zm9vCg==" and not "foo"). - final expectedBody = testCase.body; - if (expectedBody != null) { - final contentType = testCase.bodyMediaType; - final bodyBytes = await collectBytes(request.body); - void expectBytes(List expectedBodyBytes) => expect( - bodyBytes, - orderedEquals(expectedBodyBytes), - reason: - 'Expected: ${utf8.decode(expectedBodyBytes, allowMalformed: true)}, ' - 'Got: ${utf8.decode(bodyBytes, allowMalformed: true)}', - ); + // The expected HTTP message body. If no request body is defined, then no + // assertions are made about the body of the message. Because the body + // parameter is a string, binary data MUST be represented in body by + // base64 encoding the data (for example, use "Zm9vCg==" and not "foo"). + final expectedBody = testCase.body; + if (expectedBody != null) { + final contentType = testCase.bodyMediaType; + final bodyBytes = await collectBytes(request.body); + void expectBytes(List expectedBodyBytes) => expect( + bodyBytes, + orderedEquals(expectedBodyBytes), + reason: + 'Expected: ${utf8.decode(expectedBodyBytes, allowMalformed: true)}, ' + 'Got: ${utf8.decode(bodyBytes, allowMalformed: true)}', + ); - switch (contentType) { - case 'application/octet-stream': - List bytes; + switch (contentType) { + case 'application/octet-stream': + List bytes; + try { + bytes = base64Decode(expectedBody); + } on FormatException { + bytes = utf8.encode(expectedBody); + } + expectBytes(bytes); + case 'application/json': + final expectedJsonBody = jsonDecode(expectedBody); + Object? jsonBody; + if (bodyBytes.isEmpty) { + jsonBody = ''; + } else { try { - bytes = base64Decode(expectedBody); + jsonBody = jsonDecode(utf8.decode(bodyBytes)); } on FormatException { - bytes = utf8.encode(expectedBody); - } - expectBytes(bytes); - case 'application/json': - final expectedJsonBody = jsonDecode(expectedBody); - Object? jsonBody; - if (bodyBytes.isEmpty) { - jsonBody = ''; - } else { - try { - jsonBody = jsonDecode(utf8.decode(bodyBytes)); - } on FormatException { - jsonBody = utf8.decode(bodyBytes); - } + jsonBody = utf8.decode(bodyBytes); } - expect(jsonBody, equals(expectedJsonBody)); - case 'application/xml': - final expectedXmlBody = expectedBody.isEmpty - ? const [] - : XmlDocument.parse(expectedBody).toEquatable(); - final body = utf8.decode(bodyBytes); - final xmlBody = body.isEmpty - ? const [] - : XmlDocument.parse(body).toEquatable(); - expect(xmlBody, orderedEquals(expectedXmlBody)); - default: - expectBytes(expectedBody.codeUnits); - break; - } + } + expect(jsonBody, equals(expectedJsonBody)); + case 'application/xml': + final expectedXmlBody = + expectedBody.isEmpty + ? const [] + : XmlDocument.parse(expectedBody).toEquatable(); + final body = utf8.decode(bodyBytes); + final xmlBody = + body.isEmpty + ? const [] + : XmlDocument.parse(body).toEquatable(); + expect(xmlBody, orderedEquals(expectedXmlBody)); + default: + expectBytes(expectedBody.codeUnits); + break; } - }, - zoneValues: { - zSigningTest: true, - zSmithyHttpTest: true, - }, - ); + } + }, zoneValues: {zSigningTest: true, zSmithyHttpTest: true}); } diff --git a/packages/smithy/smithy_test/lib/src/http/http_response_test.dart b/packages/smithy/smithy_test/lib/src/http/http_response_test.dart index ca2718c398..7fa857cef8 100644 --- a/packages/smithy/smithy_test/lib/src/http/http_response_test.dart +++ b/packages/smithy/smithy_test/lib/src/http/http_response_test.dart @@ -23,125 +23,122 @@ Future httpResponseTest({ required HttpResponseTestCase testCase, List>? outputSerializers, }) async { - return runZoned( - () async { - final protocol = operation.resolveProtocol( - useProtocol: testCase.protocol, - ); - final serializers = buildSerializers( - protocol.serializers, - outputSerializers, - ); - final expectedOutput = serializers.deserialize( - testCase.params, - specifiedType: FullType(Output), - ) as Output; - - final client = MockAWSHttpClient((request, _) async { - return AWSHttpResponse( - statusCode: testCase.code, - headers: testCase.headers, - body: (testCase.body ?? '').codeUnits, - ); - }); - final output = await operation - // ignore: invalid_use_of_visible_for_overriding_member - .send( - client: client, - createRequest: () => SmithyHttpRequest( - _dummyHttpRequest, - requestInterceptors: protocol.requestInterceptors, - responseInterceptors: protocol.responseInterceptors, - ), - protocol: protocol, - ) - .result; + return runZoned(() async { + final protocol = operation.resolveProtocol(useProtocol: testCase.protocol); + final serializers = buildSerializers( + protocol.serializers, + outputSerializers, + ); + final expectedOutput = + serializers.deserialize( + testCase.params, + specifiedType: FullType(Output), + ) + as Output; - if (output is AWSEquatable && expectedOutput is AWSEquatable) { - expect( - output.props.where((el) => el is! Stream), - deepEquals(expectedOutput.props.where((el) => el is! Stream)), - ); - final outputStreams = - output.props.whereType>().toList(); - final expectedOutputStreams = - expectedOutput.props.whereType>().toList(); - expect(outputStreams.length, equals(expectedOutputStreams.length)); - for (var i = 0; i < outputStreams.length; i++) { - final outputStream = outputStreams[i]; - final expectedStream = expectedOutputStreams[i]; + final client = MockAWSHttpClient((request, _) async { + return AWSHttpResponse( + statusCode: testCase.code, + headers: testCase.headers, + body: (testCase.body ?? '').codeUnits, + ); + }); + final output = + await operation + // ignore: invalid_use_of_visible_for_overriding_member + .send( + client: client, + createRequest: + () => SmithyHttpRequest( + _dummyHttpRequest, + requestInterceptors: protocol.requestInterceptors, + responseInterceptors: protocol.responseInterceptors, + ), + protocol: protocol, + ) + .result; - Object? output = await outputStream.toList(); - if (output is List) { - output = output.expand((el) => el); - } - Object? expected = await expectedStream.toList(); - if (expected is List) { - expected = expected.expand((el) => el); - } + if (output is AWSEquatable && expectedOutput is AWSEquatable) { + expect( + output.props.where((el) => el is! Stream), + deepEquals(expectedOutput.props.where((el) => el is! Stream)), + ); + final outputStreams = output.props.whereType>().toList(); + final expectedOutputStreams = + expectedOutput.props.whereType>().toList(); + expect(outputStreams.length, equals(expectedOutputStreams.length)); + for (var i = 0; i < outputStreams.length; i++) { + final outputStream = outputStreams[i]; + final expectedStream = expectedOutputStreams[i]; - expect(output, deepEquals(expected)); + Object? output = await outputStream.toList(); + if (output is List) { + output = output.expand((el) => el); + } + Object? expected = await expectedStream.toList(); + if (expected is List) { + expected = expected.expand((el) => el); } - } else { - expect(output, equals(expectedOutput)); + + expect(output, deepEquals(expected)); } - }, - zoneValues: { - zSigningTest: true, - }, - ); + } else { + expect(output, equals(expectedOutput)); + } + }, zoneValues: {zSigningTest: true}); } /// Performs an HTTP error response test for [operation] for a test case from an /// [HttpResponseTestsTrait]. -Future httpErrorResponseTest({ +Future httpErrorResponseTest< + InputPayload, + Input, + OutputPayload, + Output, + ExpectedError extends SmithyException +>({ required HttpOperation operation, required HttpResponseTestCase testCase, List>? errorSerializers, }) async { - return runZoned( - () async { - final protocol = operation.resolveProtocol( - useProtocol: testCase.protocol, - ); - final serializers = buildSerializers( - protocol.serializers, - errorSerializers, - ); - final expectedError = serializers.deserialize( - testCase.params, - specifiedType: FullType(ExpectedError), - ) as ExpectedError; - - final client = MockAWSHttpClient((request, _) async { - return AWSHttpResponse( - statusCode: testCase.code, - headers: testCase.headers, - body: (testCase.body ?? '').codeUnits, - ); - }); - try { - await operation - // ignore: invalid_use_of_visible_for_overriding_member - .send( - client: client, - createRequest: () => SmithyHttpRequest( - _dummyHttpRequest, - requestInterceptors: protocol.requestInterceptors, - responseInterceptors: protocol.responseInterceptors, - ), - protocol: protocol, + return runZoned(() async { + final protocol = operation.resolveProtocol(useProtocol: testCase.protocol); + final serializers = buildSerializers( + protocol.serializers, + errorSerializers, + ); + final expectedError = + serializers.deserialize( + testCase.params, + specifiedType: FullType(ExpectedError), ) - .result; - fail('Operation should throw'); - } on Exception catch (error) { - expect(error, isA()); - expect(error, equals(expectedError)); - } - }, - zoneValues: { - zSigningTest: true, - }, - ); + as ExpectedError; + + final client = MockAWSHttpClient((request, _) async { + return AWSHttpResponse( + statusCode: testCase.code, + headers: testCase.headers, + body: (testCase.body ?? '').codeUnits, + ); + }); + try { + await operation + // ignore: invalid_use_of_visible_for_overriding_member + .send( + client: client, + createRequest: + () => SmithyHttpRequest( + _dummyHttpRequest, + requestInterceptors: protocol.requestInterceptors, + responseInterceptors: protocol.responseInterceptors, + ), + protocol: protocol, + ) + .result; + fail('Operation should throw'); + } on Exception catch (error) { + expect(error, isA()); + expect(error, equals(expectedError)); + } + }, zoneValues: {zSigningTest: true}); } diff --git a/packages/smithy/smithy_test/lib/src/http/serializers.dart b/packages/smithy/smithy_test/lib/src/http/serializers.dart index 6ab1143b54..7513da760e 100644 --- a/packages/smithy/smithy_test/lib/src/http/serializers.dart +++ b/packages/smithy/smithy_test/lib/src/http/serializers.dart @@ -13,10 +13,11 @@ import 'package:smithy/smithy.dart' hide Serializer; /// Built [Serializers] used when running Smithy tests, normalizing all types /// to JSON which is the format in which the Smithy team defines the test input. -final testSerializers = (Serializers().toBuilder() - ..addPlugin(SmithyJsonPlugin()) - ..addAll(_testSerializers)) - .build(); +final testSerializers = + (Serializers().toBuilder() + ..addPlugin(SmithyJsonPlugin()) + ..addAll(_testSerializers)) + .build(); final _testSerializers = >[ const _BinaryTestSerializer(), @@ -37,12 +38,12 @@ Serializers buildSerializers( Serializers protocol, List>? userSerializers, ) { - final serializersBuilder = testSerializers.toBuilder() - ..addAll([ - ...protocol.serializers, - ..._testSerializers, - ...?userSerializers, - ]); + final serializersBuilder = + testSerializers.toBuilder()..addAll([ + ...protocol.serializers, + ..._testSerializers, + ...?userSerializers, + ]); for (final builderFactory in protocol.builderFactories.entries) { serializersBuilder.addBuilderFactory( builderFactory.key, diff --git a/packages/smithy/smithy_test/lib/src/xml/equatable.dart b/packages/smithy/smithy_test/lib/src/xml/equatable.dart index d99e7e1ba5..9be80ab314 100644 --- a/packages/smithy/smithy_test/lib/src/xml/equatable.dart +++ b/packages/smithy/smithy_test/lib/src/xml/equatable.dart @@ -20,22 +20,20 @@ class _EquatableVisitor with XmlVisitor { final List props; - List _attrs(XmlHasAttributes node) => [...node.attributes] - ..sort((a, b) => a.name.local.compareTo(b.name.local)); + List _attrs(XmlHasAttributes node) => + [...node.attributes] + ..sort((a, b) => a.name.local.compareTo(b.name.local)); List _children(XmlHasChildren node) => [ - ...[...node.childElements] - ..sort((a, b) => a.name.local.compareTo(b.name.local)), - ...node.children.where((el) => el is! XmlElement), - ]; + ...[...node.childElements] + ..sort((a, b) => a.name.local.compareTo(b.name.local)), + ...node.children.where((el) => el is! XmlElement), + ]; /// Visit an [XmlName]. @override - void visitName(XmlName name) => props.addAll([ - name.prefix, - name.local, - name.qualified, - ]); + void visitName(XmlName name) => + props.addAll([name.prefix, name.local, name.qualified]); /// Visit an [XmlAttribute] node. @override diff --git a/packages/smithy/smithy_test/pubspec.yaml b/packages/smithy/smithy_test/pubspec.yaml index 7c7eece32d..281c3f0a66 100644 --- a/packages/smithy/smithy_test/pubspec.yaml +++ b/packages/smithy/smithy_test/pubspec.yaml @@ -5,7 +5,7 @@ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/sm publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: async: ^2.10.0 diff --git a/packages/storage/amplify_storage_s3/CHANGELOG.md b/packages/storage/amplify_storage_s3/CHANGELOG.md index ca2d6ca19b..e85fd1bc15 100644 --- a/packages/storage/amplify_storage_s3/CHANGELOG.md +++ b/packages/storage/amplify_storage_s3/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.2 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 2.6.1 - Minor bug fixes and improvements diff --git a/packages/storage/amplify_storage_s3/example/android/.gitignore b/packages/storage/amplify_storage_s3/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/storage/amplify_storage_s3/example/android/.gitignore +++ b/packages/storage/amplify_storage_s3/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/storage/amplify_storage_s3/example/android/app/build.gradle b/packages/storage/amplify_storage_s3/example/android/app/build.gradle index c858de053a..d351e8a5a7 100644 --- a/packages/storage/amplify_storage_s3/example/android/app/build.gradle +++ b/packages/storage/amplify_storage_s3/example/android/app/build.gradle @@ -28,6 +28,8 @@ android { ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -64,4 +66,6 @@ flutter { source '../..' } -dependencies {} +dependencies { + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") +} diff --git a/packages/storage/amplify_storage_s3/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/storage/amplify_storage_s3/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/storage/amplify_storage_s3/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/storage/amplify_storage_s3/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/storage/amplify_storage_s3/example/android/settings.gradle b/packages/storage/amplify_storage_s3/example/android/settings.gradle index 276cdabf9c..6ac9fc18af 100644 --- a/packages/storage/amplify_storage_s3/example/android/settings.gradle +++ b/packages/storage/amplify_storage_s3/example/android/settings.gradle @@ -18,7 +18,7 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.1.0" apply false + id "com.android.application" version "8.3.0" apply false id "org.jetbrains.kotlin.android" version "1.9.10" apply false } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/copy_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/copy_test.dart index 12e892ea06..cd0901749f 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/copy_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/copy_test.dart @@ -34,10 +34,11 @@ void main() { final destinationPath = 'public/copy-dest-${uuid()}'; final destinationStoragePath = StoragePath.fromString(destinationPath); addTearDownPath(destinationStoragePath); - final result = await Amplify.Storage.copy( - source: srcStoragePath, - destination: destinationStoragePath, - ).result; + final result = + await Amplify.Storage.copy( + source: srcStoragePath, + destination: destinationStoragePath, + ).result; expect(await objectExists(destinationStoragePath), true); expect(result.copiedItem.path, destinationPath); }); @@ -60,10 +61,11 @@ void main() { final expectedDestinationPath = 'private/$identityId/$destinationFileName'; addTearDownPath(destinationStoragePath); - final result = await Amplify.Storage.copy( - source: srcStoragePath, - destination: destinationStoragePath, - ).result; + final result = + await Amplify.Storage.copy( + source: srcStoragePath, + destination: destinationStoragePath, + ).result; expect(await objectExists(destinationStoragePath), true); expect(result.copiedItem.path, expectedDestinationPath); }); @@ -71,46 +73,53 @@ void main() { group('with options', () { testWidgets('getProperties', (_) async { final destinationPath = 'public/copy-dest-metadata-${uuid()}'; - final destinationStoragePath = - StoragePath.fromString(destinationPath); + final destinationStoragePath = StoragePath.fromString( + destinationPath, + ); addTearDownPath(destinationStoragePath); - final result = await Amplify.Storage.copy( - source: srcStoragePath, - destination: destinationStoragePath, - options: const StorageCopyOptions( - pluginOptions: S3CopyPluginOptions(getProperties: true), - ), - ).result; + final result = + await Amplify.Storage.copy( + source: srcStoragePath, + destination: destinationStoragePath, + options: const StorageCopyOptions( + pluginOptions: S3CopyPluginOptions(getProperties: true), + ), + ).result; expect(result.copiedItem.metadata, metadata); }); }); testWidgets('unauthorized path (src)', (_) async { await expectLater( - () => Amplify.Storage.copy( - source: const StoragePath.fromString('unauthorized/path'), - destination: const StoragePath.fromString('public/foo'), - ).result, + () => + Amplify.Storage.copy( + source: const StoragePath.fromString('unauthorized/path'), + destination: const StoragePath.fromString('public/foo'), + ).result, throwsA(isA()), ); }); testWidgets('unauthorized path (destination)', (_) async { await expectLater( - () => Amplify.Storage.copy( - source: srcStoragePath, - destination: const StoragePath.fromString('unauthorized/path'), - ).result, + () => + Amplify.Storage.copy( + source: srcStoragePath, + destination: const StoragePath.fromString('unauthorized/path'), + ).result, throwsA(isA()), ); }); testWidgets('non existent path', (_) async { await expectLater( - () => Amplify.Storage.copy( - source: const StoragePath.fromString('public/non-existent-path'), - destination: const StoragePath.fromString('public/foo'), - ).result, + () => + Amplify.Storage.copy( + source: const StoragePath.fromString( + 'public/non-existent-path', + ), + destination: const StoragePath.fromString('public/foo'), + ).result, throwsA(isA()), ); }); @@ -130,10 +139,11 @@ void main() { final destinationPath = 'public/copy-dest-${uuid()}'; final destinationStoragePath = StoragePath.fromString(destinationPath); addTearDownPath(destinationStoragePath); - final result = await Amplify.Storage.copy( - source: srcStoragePath, - destination: destinationStoragePath, - ).result; + final result = + await Amplify.Storage.copy( + source: srcStoragePath, + destination: destinationStoragePath, + ).result; expect(await objectExists(destinationStoragePath), true); expect(result.copiedItem.path, destinationPath); }); @@ -150,12 +160,15 @@ void main() { final bucket1PathSource = 'public/multi-bucket-get-url-${uuid()}'; final bucket2PathSource = 'public/multi-bucket-get-url-${uuid()}'; final bucket2PathDestination = 'public/multi-bucket-get-url-${uuid()}'; - final storageBucket1PathSource = - StoragePath.fromString(bucket1PathSource); - final storageBucket2PathSource = - StoragePath.fromString(bucket2PathSource); - final storageBucket2PathDestination = - StoragePath.fromString(bucket2PathDestination); + final storageBucket1PathSource = StoragePath.fromString( + bucket1PathSource, + ); + final storageBucket2PathSource = StoragePath.fromString( + bucket2PathSource, + ); + final storageBucket2PathDestination = StoragePath.fromString( + bucket2PathDestination, + ); setUp(() async { await configure(amplifyEnvironments['main']!); @@ -165,62 +178,51 @@ void main() { await Amplify.Storage.uploadData( data: StorageDataPayload.bytes(data), path: storageBucket1PathSource, - options: StorageUploadDataOptions( - bucket: bucket1, - ), + options: StorageUploadDataOptions(bucket: bucket1), ).result; await Amplify.Storage.uploadData( data: StorageDataPayload.bytes(data), path: storageBucket2PathSource, - options: StorageUploadDataOptions( - bucket: bucket2, - ), + options: StorageUploadDataOptions(bucket: bucket2), ).result; }); testWidgets('copy to a different bucket', (_) async { - final result = await Amplify.Storage.copy( - source: storageBucket1PathSource, - destination: storageBucket2PathDestination, - options: StorageCopyOptions( - buckets: CopyBuckets( - source: bucket1, - destination: bucket2, - ), - ), - ).result; + final result = + await Amplify.Storage.copy( + source: storageBucket1PathSource, + destination: storageBucket2PathDestination, + options: StorageCopyOptions( + buckets: CopyBuckets(source: bucket1, destination: bucket2), + ), + ).result; expect(result.copiedItem.path, bucket2PathDestination); - final downloadResult = await Amplify.Storage.downloadData( - path: storageBucket2PathDestination, - options: StorageDownloadDataOptions(bucket: bucket2), - ).result; - expect( - downloadResult.bytes, - data, - ); + final downloadResult = + await Amplify.Storage.downloadData( + path: storageBucket2PathDestination, + options: StorageDownloadDataOptions(bucket: bucket2), + ).result; + expect(downloadResult.bytes, data); }); testWidgets('copy to the same bucket', (_) async { - final result = await Amplify.Storage.copy( - source: storageBucket2PathSource, - destination: storageBucket2PathDestination, - options: StorageCopyOptions( - buckets: CopyBuckets.sameBucket( - bucket2, - ), - ), - ).result; + final result = + await Amplify.Storage.copy( + source: storageBucket2PathSource, + destination: storageBucket2PathDestination, + options: StorageCopyOptions( + buckets: CopyBuckets.sameBucket(bucket2), + ), + ).result; expect(result.copiedItem.path, bucket2PathDestination); - final downloadResult = await Amplify.Storage.downloadData( - path: storageBucket2PathDestination, - options: StorageDownloadDataOptions(bucket: bucket2), - ).result; - expect( - downloadResult.bytes, - data, - ); + final downloadResult = + await Amplify.Storage.downloadData( + path: storageBucket2PathDestination, + options: StorageDownloadDataOptions(bucket: bucket2), + ).result; + expect(downloadResult.bytes, data); }); }); }); diff --git a/packages/storage/amplify_storage_s3/example/integration_test/download_data_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/download_data_test.dart index bf5f7b96f0..3b1be25548 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/download_data_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/download_data_test.dart @@ -46,31 +46,28 @@ void main() { path: StoragePath.fromString(metadataPath), data: StorageDataPayload.bytes('get properties'.codeUnits), options: StorageUploadDataOptions( - pluginOptions: const S3UploadDataPluginOptions( - getProperties: true, - ), + pluginOptions: const S3UploadDataPluginOptions(getProperties: true), metadata: metadata, ), ).result; - addTearDownPaths( - [ - StoragePath.fromString(publicPath), - StoragePath.fromString(metadataPath), - StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$identityName', - ), - ], - ); + addTearDownPaths([ + StoragePath.fromString(publicPath), + StoragePath.fromString(metadataPath), + StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$identityName', + ), + ]); }); group('downloadData without options', () { testWidgets('from identity ID', (_) async { - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$identityName', - ), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$identityName', + ), + ).result; expect(downloadResult.bytes, identityData); expect( downloadResult.downloadedItem.path, @@ -80,9 +77,10 @@ void main() { testWidgets('unauthorized path', (_) async { await expectLater( - () => Amplify.Storage.downloadData( - path: const StoragePath.fromString('unauthorized/path'), - ).result, + () => + Amplify.Storage.downloadData( + path: const StoragePath.fromString('unauthorized/path'), + ).result, throwsA(isA()), ); }); @@ -90,28 +88,30 @@ void main() { group('with options', () { testWidgets('getProperties', (_) async { - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(metadataPath), - options: const StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - getProperties: true, - ), - ), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(metadataPath), + options: const StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions( + getProperties: true, + ), + ), + ).result; expect(downloadResult.downloadedItem.path, metadataPath); expect(downloadResult.downloadedItem.metadata, metadata); }); testWidgets('useAccelerateEndpoint', (_) async { - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(publicPath), - options: const StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - useAccelerateEndpoint: true, - ), - ), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(publicPath), + options: const StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions( + useAccelerateEndpoint: true, + ), + ), + ).result; expect(downloadResult.downloadedItem.path, publicPath); expect(downloadResult.bytes, bytesData); @@ -120,58 +120,48 @@ void main() { testWidgets('bytes range for "data" in "test data"', (_) async { final bytesRange = S3DataBytesRange(start: 5, end: 9); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(publicPath), - options: StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - bytesRange: bytesRange, - ), - ), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(publicPath), + options: StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions( + bytesRange: bytesRange, + ), + ), + ).result; expect(utf8.decode(downloadResult.bytes), 'data'); expect(downloadResult.downloadedItem.path, publicPath); }); testWidgets('multi bucket', (_) async { - final mainBucket = - StorageBucket.fromOutputs('Storage Integ Test main bucket'); + final mainBucket = StorageBucket.fromOutputs( + 'Storage Integ Test main bucket', + ); final secondaryBucket = StorageBucket.fromOutputs( 'Storage Integ Test secondary bucket', ); await Amplify.Storage.uploadData( path: StoragePath.fromString(publicPath), data: StorageDataPayload.bytes(bytesData), - options: StorageUploadDataOptions( - bucket: secondaryBucket, - ), + options: StorageUploadDataOptions(bucket: secondaryBucket), ).result; - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(publicPath), - options: StorageDownloadDataOptions(bucket: mainBucket), - ).result; - expect( - downloadResult.bytes, - bytesData, - ); - expect( - downloadResult.downloadedItem.path, - publicPath, - ); + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(publicPath), + options: StorageDownloadDataOptions(bucket: mainBucket), + ).result; + expect(downloadResult.bytes, bytesData); + expect(downloadResult.downloadedItem.path, publicPath); - final downloadSecondaryResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(publicPath), - options: StorageDownloadDataOptions(bucket: secondaryBucket), - ).result; - expect( - downloadSecondaryResult.bytes, - bytesData, - ); - expect( - downloadSecondaryResult.downloadedItem.path, - publicPath, - ); + final downloadSecondaryResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(publicPath), + options: StorageDownloadDataOptions(bucket: secondaryBucket), + ).result; + expect(downloadSecondaryResult.bytes, bytesData); + expect(downloadSecondaryResult.downloadedItem.path, publicPath); }); }); @@ -260,33 +250,29 @@ void main() { data: StorageDataPayload.bytes(bytesData), ).result; }); - testWidgets( - 'standard download works', - (_) async { - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(publicPath), - ).result; - expect(downloadResult.downloadedItem.path, publicPath); - }, - ); - - testWidgets( - 'useAccelerateEndpoint throws', - (_) async { - await expectLater( - () => Amplify.Storage.downloadData( + testWidgets('standard download works', (_) async { + final downloadResult = + await Amplify.Storage.downloadData( path: StoragePath.fromString(publicPath), - options: const StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - useAccelerateEndpoint: true, + ).result; + expect(downloadResult.downloadedItem.path, publicPath); + }); + + testWidgets('useAccelerateEndpoint throws', (_) async { + await expectLater( + () => + Amplify.Storage.downloadData( + path: StoragePath.fromString(publicPath), + options: const StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions( + useAccelerateEndpoint: true, + ), ), - ), - ).result, - // useAccelerateEndpoint is not supported with a bucket name with dots - throwsA(isA()), - ); - }, - ); + ).result, + // useAccelerateEndpoint is not supported with a bucket name with dots + throwsA(isA()), + ); + }); }); }); } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/download_file_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/download_file_test.dart index 4ed64792e5..36ea8429b9 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/download_file_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/download_file_test.dart @@ -28,8 +28,9 @@ void main() { final name = 'download-file-with-identity-id-${uuid()}'; final metadataFilePath = 'public/download-file-get-properties-${uuid()}'; final metadata = {'description': 'foo'}; - final secondaryBucket = - StorageBucket.fromOutputs('Storage Integ Test secondary bucket'); + final secondaryBucket = StorageBucket.fromOutputs( + 'Storage Integ Test secondary bucket', + ); setUpAll(() async { directory = kIsWeb ? '/' : (await getTemporaryDirectory()).path; }); @@ -71,31 +72,26 @@ void main() { await Amplify.Storage.uploadData( data: StorageDataPayload.bytes(data), path: StoragePath.fromString(metadataFilePath), - options: StorageUploadDataOptions( - metadata: metadata, - ), + options: StorageUploadDataOptions(metadata: metadata), ).result; - addTearDownPaths( - [ - StoragePath.fromString(publicPath), - StoragePath.fromString(metadataFilePath), - StoragePath.fromString(identityPath), - ], - ); + addTearDownPaths([ + StoragePath.fromString(publicPath), + StoragePath.fromString(metadataFilePath), + StoragePath.fromString(identityPath), + ]); }); group('multibucket', () { testWidgets('to file', (_) async { final downloadFilePath = '$directory/downloaded-file.txt'; - final result = await Amplify.Storage.downloadFile( - path: StoragePath.fromString(publicPath), - localFile: AWSFile.fromPath(downloadFilePath), - options: StorageDownloadFileOptions( - bucket: secondaryBucket, - ), - ).result; + final result = + await Amplify.Storage.downloadFile( + path: StoragePath.fromString(publicPath), + localFile: AWSFile.fromPath(downloadFilePath), + options: StorageDownloadFileOptions(bucket: secondaryBucket), + ).result; // Web browsers do not grant access to read arbitrary files if (!kIsWeb) { @@ -108,15 +104,14 @@ void main() { }); testWidgets('from identity ID', (_) async { final downloadFilePath = '$directory/downloaded-file.txt'; - final result = await Amplify.Storage.downloadFile( - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$name', - ), - localFile: AWSFile.fromPath(downloadFilePath), - options: StorageDownloadFileOptions( - bucket: secondaryBucket, - ), - ).result; + final result = + await Amplify.Storage.downloadFile( + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$name', + ), + localFile: AWSFile.fromPath(downloadFilePath), + options: StorageDownloadFileOptions(bucket: secondaryBucket), + ).result; if (!kIsWeb) { final downloadedFile = await readFile(path: downloadFilePath); @@ -131,10 +126,11 @@ void main() { testWidgets('to file', (_) async { final downloadFilePath = '$directory/downloaded-file.txt'; - final result = await Amplify.Storage.downloadFile( - path: StoragePath.fromString(publicPath), - localFile: AWSFile.fromPath(downloadFilePath), - ).result; + final result = + await Amplify.Storage.downloadFile( + path: StoragePath.fromString(publicPath), + localFile: AWSFile.fromPath(downloadFilePath), + ).result; // Web browsers do not grant access to read arbitrary files if (!kIsWeb) { @@ -149,12 +145,13 @@ void main() { testWidgets('from identity ID', (_) async { final downloadFilePath = '$directory/downloaded-file.txt'; - final result = await Amplify.Storage.downloadFile( - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$name', - ), - localFile: AWSFile.fromPath(downloadFilePath), - ).result; + final result = + await Amplify.Storage.downloadFile( + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$name', + ), + localFile: AWSFile.fromPath(downloadFilePath), + ).result; if (!kIsWeb) { final downloadedFile = await readFile(path: downloadFilePath); @@ -168,15 +165,16 @@ void main() { testWidgets('useAccelerateEndpoint', (_) async { final downloadFilePath = '$directory/downloaded-file.txt'; - final result = await Amplify.Storage.downloadFile( - path: StoragePath.fromString(publicPath), - options: const StorageDownloadFileOptions( - pluginOptions: S3DownloadFilePluginOptions( - useAccelerateEndpoint: true, - ), - ), - localFile: AWSFile.fromPath(downloadFilePath), - ).result; + final result = + await Amplify.Storage.downloadFile( + path: StoragePath.fromString(publicPath), + options: const StorageDownloadFileOptions( + pluginOptions: S3DownloadFilePluginOptions( + useAccelerateEndpoint: true, + ), + ), + localFile: AWSFile.fromPath(downloadFilePath), + ).result; if (!kIsWeb) { final downloadedFile = await readFile(path: downloadFilePath); @@ -188,15 +186,16 @@ void main() { testWidgets('getProperties', (_) async { final downloadFilePath = '$directory/downloaded-file.txt'; - final downloadResult = await Amplify.Storage.downloadFile( - path: StoragePath.fromString(metadataFilePath), - options: const StorageDownloadFileOptions( - pluginOptions: S3DownloadFilePluginOptions( - getProperties: true, - ), - ), - localFile: AWSFile.fromPath(downloadFilePath), - ).result; + final downloadResult = + await Amplify.Storage.downloadFile( + path: StoragePath.fromString(metadataFilePath), + options: const StorageDownloadFileOptions( + pluginOptions: S3DownloadFilePluginOptions( + getProperties: true, + ), + ), + localFile: AWSFile.fromPath(downloadFilePath), + ).result; if (!kIsWeb) { final downloadedFile = await readFile(path: downloadFilePath); @@ -210,10 +209,11 @@ void main() { final downloadFilePath = '$directory/downloaded-file.txt'; await expectLater( - () => Amplify.Storage.downloadFile( - path: const StoragePath.fromString('unauthorized/path'), - localFile: AWSFile.fromPath(downloadFilePath), - ).result, + () => + Amplify.Storage.downloadFile( + path: const StoragePath.fromString('unauthorized/path'), + localFile: AWSFile.fromPath(downloadFilePath), + ).result, throwsA(isA()), ); }); @@ -322,38 +322,34 @@ void main() { path: StoragePath.fromString(publicPath), ).result; }); - testWidgets( - 'standard download works', - (_) async { - final downloadFilePath = '$directory/downloaded-file.txt'; - final result = await Amplify.Storage.downloadFile( - path: StoragePath.fromString(publicPath), - localFile: AWSFile.fromPath(downloadFilePath), - ).result; - expect(result.localFile.path, downloadFilePath); - expect(result.downloadedItem.path, publicPath); - }, - ); - - testWidgets( - 'useAccelerateEndpoint throws', - (_) async { - final downloadFilePath = '$directory/downloaded-file.txt'; - await expectLater( - () => Amplify.Storage.downloadFile( + testWidgets('standard download works', (_) async { + final downloadFilePath = '$directory/downloaded-file.txt'; + final result = + await Amplify.Storage.downloadFile( path: StoragePath.fromString(publicPath), - options: const StorageDownloadFileOptions( - pluginOptions: S3DownloadFilePluginOptions( - useAccelerateEndpoint: true, - ), - ), localFile: AWSFile.fromPath(downloadFilePath), - ).result, - // useAccelerateEndpoint is not supported with a bucket name with dots - throwsA(isA()), - ); - }, - ); + ).result; + expect(result.localFile.path, downloadFilePath); + expect(result.downloadedItem.path, publicPath); + }); + + testWidgets('useAccelerateEndpoint throws', (_) async { + final downloadFilePath = '$directory/downloaded-file.txt'; + await expectLater( + () => + Amplify.Storage.downloadFile( + path: StoragePath.fromString(publicPath), + options: const StorageDownloadFileOptions( + pluginOptions: S3DownloadFilePluginOptions( + useAccelerateEndpoint: true, + ), + ), + localFile: AWSFile.fromPath(downloadFilePath), + ).result, + // useAccelerateEndpoint is not supported with a bucket name with dots + throwsA(isA()), + ); + }); }); }); } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/get_properties_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/get_properties_test.dart index 5bdf3170b0..4b5701332a 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/get_properties_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/get_properties_test.dart @@ -30,9 +30,10 @@ void main() { }); testWidgets('String StoragePath', (_) async { - final result = await Amplify.Storage.getProperties( - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.getProperties( + path: StoragePath.fromString(path), + ).result; expect(result.storageItem.path, path); expect(result.storageItem.metadata, metadata); expect(result.storageItem.eTag, isNotNull); @@ -50,11 +51,12 @@ void main() { path: StoragePath.fromString(expectedResolvedPath), options: const StorageUploadDataOptions(metadata: metadata), ).result; - final result = await Amplify.Storage.getProperties( - path: StoragePath.fromIdentityId( - ((identityId) => 'private/$identityId/$name'), - ), - ).result; + final result = + await Amplify.Storage.getProperties( + path: StoragePath.fromIdentityId( + ((identityId) => 'private/$identityId/$name'), + ), + ).result; expect(result.storageItem.path, expectedResolvedPath); expect(result.storageItem.metadata, metadata); expect(result.storageItem.eTag, isNotNull); @@ -63,18 +65,20 @@ void main() { testWidgets('unauthorized path', (_) async { await expectLater( - () => Amplify.Storage.getProperties( - path: const StoragePath.fromString('unauthorized/path'), - ).result, + () => + Amplify.Storage.getProperties( + path: const StoragePath.fromString('unauthorized/path'), + ).result, throwsA(isA()), ); }); testWidgets('not existent path', (_) async { await expectLater( - () => Amplify.Storage.getProperties( - path: const StoragePath.fromString('public/not-existent-path'), - ).result, + () => + Amplify.Storage.getProperties( + path: const StoragePath.fromString('public/not-existent-path'), + ).result, throwsA(isA()), ); }); @@ -92,9 +96,10 @@ void main() { }); testWidgets('getProperties works', (_) async { - final result = await Amplify.Storage.getProperties( - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.getProperties( + path: StoragePath.fromString(path), + ).result; expect(result.storageItem.path, path); expect(result.storageItem.metadata, metadata); expect(result.storageItem.eTag, isNotNull); @@ -102,10 +107,12 @@ void main() { }); }); group('multibucket config', () { - final mainBucket = - StorageBucket.fromOutputs('Storage Integ Test main bucket'); - final secondaryBucket = - StorageBucket.fromOutputs('Storage Integ Test secondary bucket'); + final mainBucket = StorageBucket.fromOutputs( + 'Storage Integ Test main bucket', + ); + final secondaryBucket = StorageBucket.fromOutputs( + 'Storage Integ Test secondary bucket', + ); setUpAll(() async { await configure(amplifyEnvironments['main']!); addTearDownPath(StoragePath.fromString(path)); @@ -128,23 +135,21 @@ void main() { }); testWidgets('String StoragePath', (_) async { - final result = await Amplify.Storage.getProperties( - path: StoragePath.fromString(path), - options: StorageGetPropertiesOptions( - bucket: mainBucket, - ), - ).result; + final result = + await Amplify.Storage.getProperties( + path: StoragePath.fromString(path), + options: StorageGetPropertiesOptions(bucket: mainBucket), + ).result; expect(result.storageItem.path, path); expect(result.storageItem.metadata, metadata); expect(result.storageItem.eTag, isNotNull); expect(result.storageItem.size, data.length); - final resultSecondaryBucket = await Amplify.Storage.getProperties( - path: StoragePath.fromString(path), - options: StorageGetPropertiesOptions( - bucket: secondaryBucket, - ), - ).result; + final resultSecondaryBucket = + await Amplify.Storage.getProperties( + path: StoragePath.fromString(path), + options: StorageGetPropertiesOptions(bucket: secondaryBucket), + ).result; expect(resultSecondaryBucket.storageItem.path, path); expect(resultSecondaryBucket.storageItem.metadata, metadata); expect(resultSecondaryBucket.storageItem.eTag, isNotNull); @@ -165,14 +170,13 @@ void main() { bucket: secondaryBucket, ), ).result; - final result = await Amplify.Storage.getProperties( - path: StoragePath.fromIdentityId( - ((identityId) => 'private/$identityId/$name'), - ), - options: StorageGetPropertiesOptions( - bucket: secondaryBucket, - ), - ).result; + final result = + await Amplify.Storage.getProperties( + path: StoragePath.fromIdentityId( + ((identityId) => 'private/$identityId/$name'), + ), + options: StorageGetPropertiesOptions(bucket: secondaryBucket), + ).result; expect(result.storageItem.path, expectedResolvedPath); expect(result.storageItem.metadata, metadata); expect(result.storageItem.eTag, isNotNull); @@ -182,41 +186,37 @@ void main() { testWidgets('not existent path', (_) async { // we expect StorageNotFoundException here since there is no data uploaded to either bucket on this path await expectLater( - () => Amplify.Storage.getProperties( - path: const StoragePath.fromString('public/not-existent-path'), - options: StorageGetPropertiesOptions( - bucket: mainBucket, - ), - ).result, + () => + Amplify.Storage.getProperties( + path: const StoragePath.fromString('public/not-existent-path'), + options: StorageGetPropertiesOptions(bucket: mainBucket), + ).result, throwsA(isA()), ); await expectLater( - () => Amplify.Storage.getProperties( - path: const StoragePath.fromString('public/not-existent-path'), - options: StorageGetPropertiesOptions( - bucket: secondaryBucket, - ), - ).result, + () => + Amplify.Storage.getProperties( + path: const StoragePath.fromString('public/not-existent-path'), + options: StorageGetPropertiesOptions(bucket: secondaryBucket), + ).result, throwsA(isA()), ); }); testWidgets('unauthorized path', (_) async { await expectLater( - () => Amplify.Storage.getProperties( - path: const StoragePath.fromString('unauthorized/path'), - options: StorageGetPropertiesOptions( - bucket: mainBucket, - ), - ).result, + () => + Amplify.Storage.getProperties( + path: const StoragePath.fromString('unauthorized/path'), + options: StorageGetPropertiesOptions(bucket: mainBucket), + ).result, throwsA(isA()), ); await expectLater( - () => Amplify.Storage.getProperties( - path: const StoragePath.fromString('unauthorized/path'), - options: StorageGetPropertiesOptions( - bucket: secondaryBucket, - ), - ).result, + () => + Amplify.Storage.getProperties( + path: const StoragePath.fromString('unauthorized/path'), + options: StorageGetPropertiesOptions(bucket: secondaryBucket), + ).result, throwsA(isA()), ); }); diff --git a/packages/storage/amplify_storage_s3/example/integration_test/get_url_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/get_url_test.dart index 4d49674900..73a4579954 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/get_url_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/get_url_test.dart @@ -33,9 +33,10 @@ void main() { }); testWidgets('String StoragePath', (_) async { - final result = await Amplify.Storage.getUrl( - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.getUrl( + path: StoragePath.fromString(path), + ).result; expect(result.url.path, '/$path'); final actualData = await readData(result.url); expect(actualData, data); @@ -50,9 +51,10 @@ void main() { data: S3DataPayload.bytes(data), path: StoragePath.fromString(path), ).result; - final result = await Amplify.Storage.getUrl( - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.getUrl( + path: StoragePath.fromString(path), + ).result; final actualData = await readData(result.url); expect(actualData, data); }); @@ -68,11 +70,12 @@ void main() { path: StoragePath.fromString(expectedResolvedPath), ).result; - final result = await Amplify.Storage.getUrl( - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$name', - ), - ).result; + final result = + await Amplify.Storage.getUrl( + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$name', + ), + ).result; expect(result.url.path, '/$expectedResolvedPath'); final actualData = await readData(result.url); expect(actualData, data); @@ -81,27 +84,29 @@ void main() { group('unauthorized path', () { testWidgets('validateObjectExistence true', (_) async { await expectLater( - () => Amplify.Storage.getUrl( - path: const StoragePath.fromString('unauthorized/path'), - options: const StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - validateObjectExistence: true, - ), - ), - ).result, + () => + Amplify.Storage.getUrl( + path: const StoragePath.fromString('unauthorized/path'), + options: const StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions( + validateObjectExistence: true, + ), + ), + ).result, throwsA(isA()), ); }); testWidgets('validateObjectExistence false', (_) async { - final result = await Amplify.Storage.getUrl( - path: const StoragePath.fromString('unauthorized/path'), - options: const StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - validateObjectExistence: false, - ), - ), - ).result; + final result = + await Amplify.Storage.getUrl( + path: const StoragePath.fromString('unauthorized/path'), + options: const StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions( + validateObjectExistence: false, + ), + ), + ).result; await expectLater( () => readData(result.url), throwsA(isA()), @@ -112,14 +117,13 @@ void main() { group('with options', () { testWidgets('expiresIn', (_) async { const duration = Duration(seconds: 10); - final result = await Amplify.Storage.getUrl( - path: StoragePath.fromString(path), - options: const StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - expiresIn: duration, - ), - ), - ).result; + final result = + await Amplify.Storage.getUrl( + path: StoragePath.fromString(path), + options: const StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions(expiresIn: duration), + ), + ).result; expect(result.url.path, '/$path'); final actualData = await readData(result.url); expect(actualData, data); @@ -132,14 +136,17 @@ void main() { testWidgets('validateObjectExistence true', (_) async { await expectLater( - () => Amplify.Storage.getUrl( - path: const StoragePath.fromString('public/non-existent-path'), - options: const StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - validateObjectExistence: true, - ), - ), - ).result, + () => + Amplify.Storage.getUrl( + path: const StoragePath.fromString( + 'public/non-existent-path', + ), + options: const StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions( + validateObjectExistence: true, + ), + ), + ).result, throwsA(isA()), ); }); @@ -159,14 +166,15 @@ void main() { }); testWidgets('useAccelerateEndpoint', (_) async { - final result = await Amplify.Storage.getUrl( - path: StoragePath.fromString(path), - options: const StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - useAccelerateEndpoint: true, - ), - ), - ).result; + final result = + await Amplify.Storage.getUrl( + path: StoragePath.fromString(path), + options: const StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions( + useAccelerateEndpoint: true, + ), + ), + ).result; expect(result.url.path, '/$path'); final actualData = await readData(result.url); expect(actualData, data); @@ -191,38 +199,32 @@ void main() { await Amplify.Storage.uploadData( data: StorageDataPayload.bytes(data), path: storagePathMain, - options: StorageUploadDataOptions( - bucket: mainBucket, - ), + options: StorageUploadDataOptions(bucket: mainBucket), ).result; await Amplify.Storage.uploadData( data: StorageDataPayload.bytes(data), path: storagePathSecondary, - options: StorageUploadDataOptions( - bucket: secondaryBucket, - ), + options: StorageUploadDataOptions(bucket: secondaryBucket), ).result; }); testWidgets('can get url from main bucket', (_) async { - final result = await Amplify.Storage.getUrl( - path: storagePathMain, - options: StorageGetUrlOptions( - bucket: mainBucket, - ), - ).result; + final result = + await Amplify.Storage.getUrl( + path: storagePathMain, + options: StorageGetUrlOptions(bucket: mainBucket), + ).result; expect(result.url.path, '/$pathMain'); final actualData = await readData(result.url); expect(actualData, data); }); testWidgets('can get url from secondary bucket', (_) async { - final result = await Amplify.Storage.getUrl( - path: storagePathSecondary, - options: StorageGetUrlOptions( - bucket: secondaryBucket, - ), - ).result; + final result = + await Amplify.Storage.getUrl( + path: storagePathSecondary, + options: StorageGetUrlOptions(bucket: secondaryBucket), + ).result; expect(result.url.path, '/$pathSecondary'); final actualData = await readData(result.url); expect(actualData, data); @@ -239,35 +241,31 @@ void main() { path: StoragePath.fromString(path), ).result; }); - testWidgets( - 'standard getUrl works', - (_) async { - final result = await Amplify.Storage.getUrl( - path: StoragePath.fromString(path), - ).result; - expect(result.url.path, contains('/$path')); - final actualData = await readData(result.url); - expect(actualData, data); - }, - ); - - testWidgets( - 'useAccelerateEndpoint throws', - (_) async { - await expectLater( - () => Amplify.Storage.getUrl( + testWidgets('standard getUrl works', (_) async { + final result = + await Amplify.Storage.getUrl( path: StoragePath.fromString(path), - options: const StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - useAccelerateEndpoint: true, + ).result; + expect(result.url.path, contains('/$path')); + final actualData = await readData(result.url); + expect(actualData, data); + }); + + testWidgets('useAccelerateEndpoint throws', (_) async { + await expectLater( + () => + Amplify.Storage.getUrl( + path: StoragePath.fromString(path), + options: const StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions( + useAccelerateEndpoint: true, + ), ), - ), - ).result, - // useAccelerateEndpoint is not supported with a bucket name with dots - throwsA(isA()), - ); - }, - ); + ).result, + // useAccelerateEndpoint is not supported with a bucket name with dots + throwsA(isA()), + ); + }); }); }); } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart index 15c3737225..40465b2c67 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart @@ -26,33 +26,34 @@ void main() { '$uniquePrefix/subdir4#file8.txt', ]; group('standard config', () { - final mainBucket = - StorageBucket.fromOutputs('Storage Integ Test main bucket'); + final mainBucket = StorageBucket.fromOutputs( + 'Storage Integ Test main bucket', + ); final secondaryBucket = StorageBucket.fromOutputs( 'Storage Integ Test secondary bucket', ); setUpAll(() async { await configure(amplifyEnvironments['main']!); - for (var pathIndex = 0; - pathIndex < uploadedPaths.length ~/ 2; - pathIndex++) { + for ( + var pathIndex = 0; + pathIndex < uploadedPaths.length ~/ 2; + pathIndex++ + ) { await Amplify.Storage.uploadData( path: StoragePath.fromString(uploadedPaths[pathIndex]), data: StorageDataPayload.bytes('test content'.codeUnits), - options: StorageUploadDataOptions( - bucket: mainBucket, - ), + options: StorageUploadDataOptions(bucket: mainBucket), ).result; } - for (var pathIndex = uploadedPaths.length ~/ 2; - pathIndex < uploadedPaths.length; - pathIndex++) { + for ( + var pathIndex = uploadedPaths.length ~/ 2; + pathIndex < uploadedPaths.length; + pathIndex++ + ) { await Amplify.Storage.uploadData( path: StoragePath.fromString(uploadedPaths[pathIndex]), data: StorageDataPayload.bytes('test content'.codeUnits), - options: StorageUploadDataOptions( - bucket: secondaryBucket, - ), + options: StorageUploadDataOptions(bucket: secondaryBucket), ).result; } for (final path in uploadedPaths) { @@ -63,39 +64,46 @@ void main() { group('list() without options', () { testWidgets('should list all files with unique prefix', (_) async { // this will use the main bucket by default when no optional bucket is specified - final listResultMainBucket = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - ).result; - final listResultSecondaryBucket = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - options: StorageListOptions( - bucket: secondaryBucket, - ), - ).result; - for (var pathIndex = 0; - pathIndex < uploadedPaths.length ~/ 2; - pathIndex++) { + final listResultMainBucket = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + ).result; + final listResultSecondaryBucket = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + options: StorageListOptions(bucket: secondaryBucket), + ).result; + for ( + var pathIndex = 0; + pathIndex < uploadedPaths.length ~/ 2; + pathIndex++ + ) { expect( - listResultMainBucket.items - .any((item) => item.path == uploadedPaths[pathIndex]), + listResultMainBucket.items.any( + (item) => item.path == uploadedPaths[pathIndex], + ), isTrue, ); } - for (var pathIndex = uploadedPaths.length ~/ 2; - pathIndex < uploadedPaths.length; - pathIndex++) { + for ( + var pathIndex = uploadedPaths.length ~/ 2; + pathIndex < uploadedPaths.length; + pathIndex++ + ) { expect( - listResultSecondaryBucket.items - .any((item) => item.path == uploadedPaths[pathIndex]), + listResultSecondaryBucket.items.any( + (item) => item.path == uploadedPaths[pathIndex], + ), isTrue, ); } }); testWidgets('should list files within a subdirectory', (_) async { - final listResult = await Amplify.Storage.list( - path: StoragePath.fromString('$uniquePrefix/subdir/'), - ).result; + final listResult = + await Amplify.Storage.list( + path: StoragePath.fromString('$uniquePrefix/subdir/'), + ).result; expect(listResult.items.length, 1); expect(listResult.items.first.path, contains('file3.txt')); @@ -103,9 +111,10 @@ void main() { testWidgets('unauthorized path', (_) async { await expectLater( - () => Amplify.Storage.list( - path: const StoragePath.fromString('unauthorized/path'), - ).result, + () => + Amplify.Storage.list( + path: const StoragePath.fromString('unauthorized/path'), + ).result, throwsA(isA()), ); }); @@ -114,14 +123,16 @@ void main() { group('list() with options', () { group('excluding sub paths', () { testWidgets('default delimiter', (_) async { - final listResult = await Amplify.Storage.list( - path: StoragePath.fromString('$uniquePrefix/'), - options: const StorageListOptions( - pluginOptions: S3ListPluginOptions( - excludeSubPaths: true, - ), - ), - ).result as S3ListResult; + final listResult = + await Amplify.Storage.list( + path: StoragePath.fromString('$uniquePrefix/'), + options: const StorageListOptions( + pluginOptions: S3ListPluginOptions( + excludeSubPaths: true, + ), + ), + ).result + as S3ListResult; expect(listResult.items.length, 3); expect(listResult.items.first.path, contains('file1.txt')); @@ -132,26 +143,30 @@ void main() { }); testWidgets('custom delimiter', (_) async { - final listResult = await Amplify.Storage.list( - path: StoragePath.fromString('$uniquePrefix/'), - options: const StorageListOptions( - pluginOptions: S3ListPluginOptions( - excludeSubPaths: true, - delimiter: '#', - ), - ), - ).result as S3ListResult; - - final listResultSecondaryBucket = await Amplify.Storage.list( - path: StoragePath.fromString('$uniquePrefix/'), - options: StorageListOptions( - pluginOptions: const S3ListPluginOptions( - excludeSubPaths: true, - delimiter: '#', - ), - bucket: secondaryBucket, - ), - ).result as S3ListResult; + final listResult = + await Amplify.Storage.list( + path: StoragePath.fromString('$uniquePrefix/'), + options: const StorageListOptions( + pluginOptions: S3ListPluginOptions( + excludeSubPaths: true, + delimiter: '#', + ), + ), + ).result + as S3ListResult; + + final listResultSecondaryBucket = + await Amplify.Storage.list( + path: StoragePath.fromString('$uniquePrefix/'), + options: StorageListOptions( + pluginOptions: const S3ListPluginOptions( + excludeSubPaths: true, + delimiter: '#', + ), + bucket: secondaryBucket, + ), + ).result + as S3ListResult; expect(listResult.items.length, 3); expect(listResult.items.first.path, contains('file1.txt')); @@ -179,23 +194,23 @@ void main() { }); testWidgets('should respect pageSize limitation', (_) async { - final listResult = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - options: const StorageListOptions( - pageSize: 2, - ), - ).result; + final listResult = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + options: const StorageListOptions(pageSize: 2), + ).result; expect(listResult.items.length, 2); expect(listResult.items.first.path, contains('file1.txt')); - final listResultSecondaryBucket = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - options: StorageListOptions( - pageSize: 2, - bucket: secondaryBucket, - ), - ).result; + final listResultSecondaryBucket = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + options: StorageListOptions( + pageSize: 2, + bucket: secondaryBucket, + ), + ).result; expect(listResultSecondaryBucket.items.length, 2); expect( @@ -205,47 +220,49 @@ void main() { }); testWidgets('should list files with pagination', (_) async { - var listResult = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - options: const StorageListOptions( - pageSize: 1, - ), - ).result; + var listResult = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + options: const StorageListOptions(pageSize: 1), + ).result; expect(listResult.items.length, 1); expect(listResult.nextToken, isNotNull); - listResult = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - options: StorageListOptions( - pageSize: 1, - nextToken: listResult.nextToken, - ), - ).result; + listResult = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + options: StorageListOptions( + pageSize: 1, + nextToken: listResult.nextToken, + ), + ).result; expect(listResult.items.length, 1); expect(listResult.items.first.path, contains('file2.txt')); }); testWidgets('listAll', (_) async { - final listResult = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - options: const StorageListOptions( - pluginOptions: S3ListPluginOptions.listAll(), - ), - ).result; + final listResult = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + options: const StorageListOptions( + pluginOptions: S3ListPluginOptions.listAll(), + ), + ).result; expect(listResult.items.length, uploadedPaths.length ~/ 2); expect(listResult.nextToken, isNull); - final listResultSecondaryBucket = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - options: StorageListOptions( - pluginOptions: const S3ListPluginOptions.listAll(), - bucket: secondaryBucket, - ), - ).result; + final listResultSecondaryBucket = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + options: StorageListOptions( + pluginOptions: const S3ListPluginOptions.listAll(), + bucket: secondaryBucket, + ), + ).result; expect( listResultSecondaryBucket.items.length, @@ -271,9 +288,10 @@ void main() { } }); testWidgets('list works', (_) async { - final listResult = await Amplify.Storage.list( - path: StoragePath.fromString(uniquePrefix), - ).result; + final listResult = + await Amplify.Storage.list( + path: StoragePath.fromString(uniquePrefix), + ).result; for (final uploadedPath in uploadedPaths) { expect( listResult.items.any((item) => item.path == uploadedPath), diff --git a/packages/storage/amplify_storage_s3/example/integration_test/main_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/main_test.dart index 9df34d28da..e392b40928 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/main_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/main_test.dart @@ -10,7 +10,8 @@ import 'download_file_test.dart' as download_file_tests; import 'get_properties_test.dart' as get_properties_test; import 'get_url_test.dart' as get_url_test; import 'list_test.dart' as list_tests; -import 'platform_test_io.dart' if (dart.library.html) 'platform_test_html.dart' +import 'platform_test_io.dart' + if (dart.library.html) 'platform_test_html.dart' as platform_test; import 'remove_many_test.dart' as remove_many_test; import 'remove_test.dart' as remove_test; diff --git a/packages/storage/amplify_storage_s3/example/integration_test/platform_test_html.dart b/packages/storage/amplify_storage_s3/example/integration_test/platform_test_html.dart index cefdd1fa10..55e1398719 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/platform_test_html.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/platform_test_html.dart @@ -25,14 +25,16 @@ void main() { final data = content.codeUnits; final file = await createHtmlFile(path: fileId, content: content); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFilePlatform.fromFile(file), - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFilePlatform.fromFile(file), + path: StoragePath.fromString(path), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); }); diff --git a/packages/storage/amplify_storage_s3/example/integration_test/platform_test_io.dart b/packages/storage/amplify_storage_s3/example/integration_test/platform_test_io.dart index ff5172aefe..ab77a56036 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/platform_test_io.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/platform_test_io.dart @@ -25,14 +25,16 @@ void main() { final data = content.codeUnits; final file = await createIOFile(path: fileId, content: content); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFilePlatform.fromFile(file), - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFilePlatform.fromFile(file), + path: StoragePath.fromString(path), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); }); diff --git a/packages/storage/amplify_storage_s3/example/integration_test/remove_many_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/remove_many_test.dart index 435ed1d986..23c23423d1 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/remove_many_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/remove_many_test.dart @@ -39,9 +39,10 @@ void main() { testWidgets('removes objects', (_) async { expect(await objectExists(storagePath1), true); expect(await objectExists(storagePath2), true); - final result = await Amplify.Storage.removeMany( - paths: [storagePath1, storagePath2], - ).result; + final result = + await Amplify.Storage.removeMany( + paths: [storagePath1, storagePath2], + ).result; expect(await objectExists(storagePath1), false); expect(await objectExists(storagePath2), false); final removedPaths = result.removedItems.map((i) => i.path).toList(); @@ -77,9 +78,10 @@ void main() { testWidgets('removes objects', (_) async { expect(await objectExists(storagePath1), true); expect(await objectExists(storagePath2), true); - final result = await Amplify.Storage.removeMany( - paths: [storagePath1, storagePath2], - ).result; + final result = + await Amplify.Storage.removeMany( + paths: [storagePath1, storagePath2], + ).result; expect(await objectExists(storagePath1), false); expect(await objectExists(storagePath2), false); final removedPaths = result.removedItems.map((i) => i.path).toList(); @@ -105,105 +107,59 @@ void main() { await Amplify.Storage.uploadData( data: StorageDataPayload.bytes('data'.codeUnits), path: storagePath1, - options: StorageUploadDataOptions( - bucket: mainBucket, - ), + options: StorageUploadDataOptions(bucket: mainBucket), ).result; await Amplify.Storage.uploadData( data: StorageDataPayload.bytes('data'.codeUnits), path: storagePath2, - options: StorageUploadDataOptions( - bucket: mainBucket, - ), + options: StorageUploadDataOptions(bucket: mainBucket), ).result; await Amplify.Storage.uploadData( data: StorageDataPayload.bytes('data'.codeUnits), path: storagePath1, - options: StorageUploadDataOptions( - bucket: secondaryBucket, - ), + options: StorageUploadDataOptions(bucket: secondaryBucket), ).result; await Amplify.Storage.uploadData( data: StorageDataPayload.bytes('data'.codeUnits), path: storagePath2, - options: StorageUploadDataOptions( - bucket: secondaryBucket, - ), + options: StorageUploadDataOptions(bucket: secondaryBucket), ).result; }); testWidgets('removes objects from main bucket', (_) async { - expect( - await objectExists( - storagePath1, - bucket: mainBucket, - ), - true, - ); - expect( - await objectExists( - storagePath2, - bucket: mainBucket, - ), - true, - ); - final result = await Amplify.Storage.removeMany( - paths: [storagePath1, storagePath2], - options: StorageRemoveManyOptions( - bucket: mainBucket, - ), - ).result; - expect( - await objectExists( - storagePath1, - bucket: mainBucket, - ), - false, - ); - expect( - await objectExists( - storagePath2, - bucket: mainBucket, - ), - false, - ); + expect(await objectExists(storagePath1, bucket: mainBucket), true); + expect(await objectExists(storagePath2, bucket: mainBucket), true); + final result = + await Amplify.Storage.removeMany( + paths: [storagePath1, storagePath2], + options: StorageRemoveManyOptions(bucket: mainBucket), + ).result; + expect(await objectExists(storagePath1, bucket: mainBucket), false); + expect(await objectExists(storagePath2, bucket: mainBucket), false); final removedPaths = result.removedItems.map((i) => i.path).toList(); expect(removedPaths, unorderedEquals([path1, path2])); }); testWidgets('removes objects from secondary bucket', (_) async { expect( - await objectExists( - storagePath1, - bucket: secondaryBucket, - ), + await objectExists(storagePath1, bucket: secondaryBucket), true, ); expect( - await objectExists( - storagePath2, - bucket: secondaryBucket, - ), + await objectExists(storagePath2, bucket: secondaryBucket), true, ); - final result = await Amplify.Storage.removeMany( - paths: [storagePath1, storagePath2], - options: StorageRemoveManyOptions( - bucket: secondaryBucket, - ), - ).result; + final result = + await Amplify.Storage.removeMany( + paths: [storagePath1, storagePath2], + options: StorageRemoveManyOptions(bucket: secondaryBucket), + ).result; expect( - await objectExists( - storagePath1, - bucket: secondaryBucket, - ), + await objectExists(storagePath1, bucket: secondaryBucket), false, ); expect( - await objectExists( - storagePath2, - bucket: secondaryBucket, - ), + await objectExists(storagePath2, bucket: secondaryBucket), false, ); final removedPaths = result.removedItems.map((i) => i.path).toList(); @@ -212,9 +168,11 @@ void main() { }); testWidgets('unauthorized path', (_) async { - final result = await Amplify.Storage.removeMany( - paths: [const StoragePath.fromString('unauthorized/path')], - ).result as S3RemoveManyResult; + final result = + await Amplify.Storage.removeMany( + paths: [const StoragePath.fromString('unauthorized/path')], + ).result + as S3RemoveManyResult; expect(result.errors.first.code, 'AccessDenied'); }); @@ -229,12 +187,14 @@ void main() { }); testWidgets('partial success', (_) async { - final result = await Amplify.Storage.removeMany( - paths: [ - const StoragePath.fromString('unauthorized/path'), - const StoragePath.fromString('public/path'), - ], - ).result as S3RemoveManyResult; + final result = + await Amplify.Storage.removeMany( + paths: [ + const StoragePath.fromString('unauthorized/path'), + const StoragePath.fromString('public/path'), + ], + ).result + as S3RemoveManyResult; expect(result.removedItems.length, 1); expect(result.removedItems.first.path, 'public/path'); @@ -262,9 +222,10 @@ void main() { ).result; expect(await objectExists(storagePath1), true); expect(await objectExists(storagePath2), true); - final result = await Amplify.Storage.removeMany( - paths: [storagePath1, storagePath2], - ).result; + final result = + await Amplify.Storage.removeMany( + paths: [storagePath1, storagePath2], + ).result; expect(await objectExists(storagePath1), false); expect(await objectExists(storagePath2), false); final removedPaths = result.removedItems.map((i) => i.path).toList(); diff --git a/packages/storage/amplify_storage_s3/example/integration_test/remove_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/remove_test.dart index c54822a190..fbfb0fad13 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/remove_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/remove_test.dart @@ -31,9 +31,7 @@ void main() { testWidgets('removes object', (_) async { expect(await objectExists(storagePath), true); - final result = await Amplify.Storage.remove( - path: storagePath, - ).result; + final result = await Amplify.Storage.remove(path: storagePath).result; expect(await objectExists(storagePath), false); expect(result.removedItem.path, path); }); @@ -56,9 +54,7 @@ void main() { testWidgets('removes object', (_) async { expect(await objectExists(storagePath), true); - final result = await Amplify.Storage.remove( - path: storagePath, - ).result; + final result = await Amplify.Storage.remove(path: storagePath).result; expect(await objectExists(storagePath), false); expect(result.removedItem.path, expectedResolvedPath); }); @@ -78,94 +74,60 @@ void main() { await Amplify.Storage.uploadData( data: StorageDataPayload.bytes('data'.codeUnits), path: storagePath, - options: StorageUploadDataOptions( - bucket: mainBucket, - ), + options: StorageUploadDataOptions(bucket: mainBucket), ).result; }); testWidgets('removes from multiple buckets', (_) async { - expect( - await objectExists( - storagePath, - bucket: mainBucket, - ), - true, - ); + expect(await objectExists(storagePath, bucket: mainBucket), true); // upload to secondary bucket await Amplify.Storage.uploadData( data: StorageDataPayload.bytes('data'.codeUnits), path: storagePath, - options: StorageUploadDataOptions( - bucket: secondaryBucket, - ), + options: StorageUploadDataOptions(bucket: secondaryBucket), ).result; expect( - await objectExists( - storagePath, - bucket: secondaryBucket, - ), + await objectExists(storagePath, bucket: secondaryBucket), true, ); - final mainResult = await Amplify.Storage.remove( - path: storagePath, - options: StorageRemoveOptions(bucket: mainBucket), - ).result; + final mainResult = + await Amplify.Storage.remove( + path: storagePath, + options: StorageRemoveOptions(bucket: mainBucket), + ).result; expect(mainResult.removedItem.path, path); // Assert path was only removed from the main bucket + expect(await objectExists(storagePath, bucket: mainBucket), false); expect( - await objectExists( - storagePath, - bucket: mainBucket, - ), - false, - ); - expect( - await objectExists( - storagePath, - bucket: secondaryBucket, - ), + await objectExists(storagePath, bucket: secondaryBucket), true, ); - final secondaryResult = await Amplify.Storage.remove( - path: storagePath, - options: StorageRemoveOptions(bucket: secondaryBucket), - ).result; + final secondaryResult = + await Amplify.Storage.remove( + path: storagePath, + options: StorageRemoveOptions(bucket: secondaryBucket), + ).result; expect(secondaryResult.removedItem.path, path); expect( - await objectExists( - storagePath, - bucket: secondaryBucket, - ), + await objectExists(storagePath, bucket: secondaryBucket), false, ); }); testWidgets('removes when present in bucket', (_) async { - expect( - await objectExists( - storagePath, - bucket: mainBucket, - ), - true, - ); - final mainResult = await Amplify.Storage.remove( - path: storagePath, - options: StorageRemoveOptions(bucket: mainBucket), - ).result; + expect(await objectExists(storagePath, bucket: mainBucket), true); + final mainResult = + await Amplify.Storage.remove( + path: storagePath, + options: StorageRemoveOptions(bucket: mainBucket), + ).result; expect(mainResult.removedItem.path, path); - expect( - await objectExists( - storagePath, - bucket: mainBucket, - ), - false, - ); + expect(await objectExists(storagePath, bucket: mainBucket), false); await expectLater( Amplify.Storage.remove( @@ -180,9 +142,10 @@ void main() { testWidgets('unauthorized path', (_) async { await expectLater( - () => Amplify.Storage.remove( - path: const StoragePath.fromString('unauthorized/path'), - ).result, + () => + Amplify.Storage.remove( + path: const StoragePath.fromString('unauthorized/path'), + ).result, throwsA(isA()), ); }); @@ -209,9 +172,7 @@ void main() { path: storagePath, ).result; expect(await objectExists(storagePath), true); - final result = await Amplify.Storage.remove( - path: storagePath, - ).result; + final result = await Amplify.Storage.remove(path: storagePath).result; expect(await objectExists(storagePath), false); expect(result.removedItem.path, path); }); diff --git a/packages/storage/amplify_storage_s3/example/integration_test/upload_data_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/upload_data_test.dart index 68fd42aa35..9809ca1850 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/upload_data_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/upload_data_test.dart @@ -26,15 +26,17 @@ void main() { final path = 'public/upload-data-from-bytes-${uuid()}'; final data = 'from bytes'.codeUnits; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: StoragePath.fromString(path), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); @@ -44,19 +46,21 @@ void main() { const contentType = 'text/plain; charset=utf-8'; final dataUrl = 'data:$contentType;base64,${base64Encode(data)}'; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.dataUrl(dataUrl), - path: StoragePath.fromString(path), - options: const StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions(getProperties: true), - ), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.dataUrl(dataUrl), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions(getProperties: true), + ), + ).result; expect(result.uploadedItem.path, path); expect((result.uploadedItem as S3Item).contentType, contentType); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); @@ -64,22 +68,24 @@ void main() { final path = 'public/upload-data-from-stream-${uuid()}'; final json = {'foo': 'bar'}; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.json(json), - path: StoragePath.fromString(path), - options: const StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions(getProperties: true), - ), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.json(json), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions(getProperties: true), + ), + ).result; expect(result.uploadedItem.path, path); expect( (result.uploadedItem as S3Item).contentType, 'application/json; charset=utf-8', ); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, jsonEncode(json).toString().codeUnits); }); @@ -88,22 +94,24 @@ void main() { const key = 'foo'; const value = 'bar'; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.formFields({key: value}), - path: StoragePath.fromString(path), - options: const StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions(getProperties: true), - ), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.formFields({key: value}), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions(getProperties: true), + ), + ).result; expect(result.uploadedItem.path, path); expect( (result.uploadedItem as S3Item).contentType, 'application/x-www-form-urlencoded; charset=utf-8', ); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, '$key=$value'.codeUnits); }); @@ -111,37 +119,41 @@ void main() { final path = 'public/upload-data-string-${uuid()}'; const data = 'string'; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.string(data), - path: StoragePath.fromString(path), - options: const StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions(getProperties: true), - ), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.string(data), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions(getProperties: true), + ), + ).result; expect(result.uploadedItem.path, path); expect( (result.uploadedItem as S3Item).contentType, 'text/plain; charset=utf-8', ); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data.codeUnits); }); testWidgets('empty', (_) async { final path = 'public/upload-data-empty-${uuid()}'; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: const StorageDataPayload.empty(), - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.uploadData( + data: const StorageDataPayload.empty(), + path: StoragePath.fromString(path), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, []); }); @@ -150,15 +162,17 @@ void main() { final data = [1, 2, 3]; final stream = Stream>.value(data); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.streaming(stream), - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.streaming(stream), + path: StoragePath.fromString(path), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); }); @@ -169,27 +183,30 @@ void main() { final data = 'with identity ID'.codeUnits; final expectedResolvedPath = 'private/$userIdentityId/$name'; addTearDownPath(StoragePath.fromString(expectedResolvedPath)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$name', - ), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$name', + ), + ).result; expect(result.uploadedItem.path, expectedResolvedPath); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(expectedResolvedPath), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(expectedResolvedPath), + ).result; expect(downloadResult.bytes, data); }); testWidgets('unauthorized path', (_) async { await expectLater( - () => Amplify.Storage.uploadData( - data: StorageDataPayload.bytes('unauthorized path'.codeUnits), - path: const StoragePath.fromString('unauthorized/path'), - ).result, + () => + Amplify.Storage.uploadData( + data: StorageDataPayload.bytes('unauthorized path'.codeUnits), + path: const StoragePath.fromString('unauthorized/path'), + ).result, throwsA(isA()), ); }); @@ -200,16 +217,18 @@ void main() { final data = 'metadata'.codeUnits; const metadata = {'description': 'foo'}; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: StoragePath.fromString(path), - options: const StorageUploadDataOptions(metadata: metadata), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions(metadata: metadata), + ).result; expect(result.uploadedItem.path, path); - final propertiesResult = await Amplify.Storage.getProperties( - path: StoragePath.fromString(path), - ).result; + final propertiesResult = + await Amplify.Storage.getProperties( + path: StoragePath.fromString(path), + ).result; expect(propertiesResult.storageItem.metadata, metadata); }); @@ -218,14 +237,15 @@ void main() { final data = 'getProperties'.codeUnits; const metadata = {'description': 'foo'}; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: StoragePath.fromString(path), - options: const StorageUploadDataOptions( - metadata: metadata, - pluginOptions: S3UploadDataPluginOptions(getProperties: true), - ), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions( + metadata: metadata, + pluginOptions: S3UploadDataPluginOptions(getProperties: true), + ), + ).result; expect(result.uploadedItem.path, path); expect(result.uploadedItem.metadata, metadata); }); @@ -234,27 +254,30 @@ void main() { final path = 'public/upload-data-acceleration-${uuid()}'; final data = 'useAccelerateEndpoint'.codeUnits; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: StoragePath.fromString(path), - options: const StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions( - useAccelerateEndpoint: true, - ), - ), - ).result; + final result = + await Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions( + useAccelerateEndpoint: true, + ), + ), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); }); group('multi-bucket', () { - final mainBucket = - StorageBucket.fromOutputs('Storage Integ Test main bucket'); + final mainBucket = StorageBucket.fromOutputs( + 'Storage Integ Test main bucket', + ); final secondaryBucket = StorageBucket.fromOutputs( 'Storage Integ Test secondary bucket', ); @@ -263,44 +286,37 @@ void main() { final path = 'public/multi-bucket-upload-data-${uuid()}'; final storagePath = StoragePath.fromString(path); final data = 'multi bucket upload data byte'.codeUnits; - addTearDownMultiBucket( - storagePath, - [mainBucket, secondaryBucket], - ); + addTearDownMultiBucket(storagePath, [mainBucket, secondaryBucket]); // main bucket - final mainResult = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: storagePath, - options: StorageUploadDataOptions( - bucket: mainBucket, - ), - ).result; + final mainResult = + await Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: storagePath, + options: StorageUploadDataOptions(bucket: mainBucket), + ).result; expect(mainResult.uploadedItem.path, path); - final downloadMainResult = await Amplify.Storage.downloadData( - path: storagePath, - options: StorageDownloadDataOptions( - bucket: mainBucket, - ), - ).result; + final downloadMainResult = + await Amplify.Storage.downloadData( + path: storagePath, + options: StorageDownloadDataOptions(bucket: mainBucket), + ).result; expect(downloadMainResult.bytes, data); // secondary bucket - final secondaryResult = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: storagePath, - options: StorageUploadDataOptions( - bucket: secondaryBucket, - ), - ).result; + final secondaryResult = + await Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: storagePath, + options: StorageUploadDataOptions(bucket: secondaryBucket), + ).result; expect(secondaryResult.uploadedItem.path, path); - final downloadSecondaryResult = await Amplify.Storage.downloadData( - path: storagePath, - options: StorageDownloadDataOptions( - bucket: secondaryBucket, - ), - ).result; + final downloadSecondaryResult = + await Amplify.Storage.downloadData( + path: storagePath, + options: StorageDownloadDataOptions(bucket: secondaryBucket), + ).result; expect(downloadSecondaryResult.bytes, data); }); }); @@ -354,29 +370,30 @@ void main() { }); testWidgets( - 'does not report fractionCompleted or totalBytes for streams', - (_) async { - final path = 'public/upload-data-progress-stream-${uuid()}'; - final data = [1, 2, 3, 4, 5, 6]; - - var fractionCompleted = 0.0; - var totalBytes = 0; - var transferredBytes = 0; - - addTearDownPath(StoragePath.fromString(path)); - await Amplify.Storage.uploadData( - data: StorageDataPayload.streaming(Stream.value(data)), - path: StoragePath.fromString(path), - onProgress: (StorageTransferProgress progress) { - fractionCompleted = progress.fractionCompleted; - totalBytes = progress.totalBytes; - transferredBytes = progress.transferredBytes; - }, - ).result; - expect(fractionCompleted, -1); - expect(totalBytes, -1); - expect(transferredBytes, data.length); - }); + 'does not report fractionCompleted or totalBytes for streams', + (_) async { + final path = 'public/upload-data-progress-stream-${uuid()}'; + final data = [1, 2, 3, 4, 5, 6]; + + var fractionCompleted = 0.0; + var totalBytes = 0; + var transferredBytes = 0; + + addTearDownPath(StoragePath.fromString(path)); + await Amplify.Storage.uploadData( + data: StorageDataPayload.streaming(Stream.value(data)), + path: StoragePath.fromString(path), + onProgress: (StorageTransferProgress progress) { + fractionCompleted = progress.fractionCompleted; + totalBytes = progress.totalBytes; + transferredBytes = progress.transferredBytes; + }, + ).result; + expect(fractionCompleted, -1); + expect(totalBytes, -1); + expect(transferredBytes, data.length); + }, + ); }); testWidgets('can cancel', (_) async { @@ -402,45 +419,42 @@ void main() { setUpAll(() async { await configure(amplifyEnvironments['dots-in-name']!); }); - testWidgets( - 'standard upload works', - (_) async { - final path = 'public/upload-data-from-bytes-${uuid()}'; - final data = 'from bytes'.codeUnits; - addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadData( - data: StorageDataPayload.bytes(data), - path: StoragePath.fromString(path), - ).result; - expect(result.uploadedItem.path, path); - - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; - expect(downloadResult.bytes, data); - }, - ); - - testWidgets( - 'useAccelerateEndpoint throws', - (_) async { - final path = 'public/upload-data-from-bytes-${uuid()}'; - final data = 'from bytes'.codeUnits; - await expectLater( - () => Amplify.Storage.uploadData( + testWidgets('standard upload works', (_) async { + final path = 'public/upload-data-from-bytes-${uuid()}'; + final data = 'from bytes'.codeUnits; + addTearDownPath(StoragePath.fromString(path)); + final result = + await Amplify.Storage.uploadData( data: StorageDataPayload.bytes(data), path: StoragePath.fromString(path), - options: const StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions( - useAccelerateEndpoint: true, + ).result; + expect(result.uploadedItem.path, path); + + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; + expect(downloadResult.bytes, data); + }); + + testWidgets('useAccelerateEndpoint throws', (_) async { + final path = 'public/upload-data-from-bytes-${uuid()}'; + final data = 'from bytes'.codeUnits; + await expectLater( + () => + Amplify.Storage.uploadData( + data: StorageDataPayload.bytes(data), + path: StoragePath.fromString(path), + options: const StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions( + useAccelerateEndpoint: true, + ), ), - ), - ).result, - // useAccelerateEndpoint is not supported with a bucket name with dots - throwsA(isA()), - ); - }, - ); + ).result, + // useAccelerateEndpoint is not supported with a bucket name with dots + throwsA(isA()), + ); + }); }); }); } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/upload_file_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/upload_file_test.dart index 9113a3c4c3..d0730f2192 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/upload_file_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/upload_file_test.dart @@ -24,25 +24,24 @@ void main() { await configure(amplifyEnvironments['main']!); }); group('for file type', () { - testWidgets( - 'from data', - (_) async { - await Future.delayed(const Duration(seconds: 5)); - final path = 'public/upload-file-from-data-${uuid()}'; - final data = 'data'.codeUnits; - addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromData(data), - path: StoragePath.fromString(path), - ).result; - expect(result.uploadedItem.path, path); + testWidgets('from data', (_) async { + await Future.delayed(const Duration(seconds: 5)); + final path = 'public/upload-file-from-data-${uuid()}'; + final data = 'data'.codeUnits; + addTearDownPath(StoragePath.fromString(path)); + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromData(data), + path: StoragePath.fromString(path), + ).result; + expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; - expect(downloadResult.bytes, data); - }, - ); + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; + expect(downloadResult.bytes, data); + }); testWidgets('from path', (_) async { final fileId = uuid(); @@ -51,15 +50,17 @@ void main() { final data = content.codeUnits; final filePath = await createFile(path: fileId, content: content); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: StoragePath.fromString(path), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); @@ -67,15 +68,17 @@ void main() { final path = 'public/upload-file-from-stream-${uuid()}'; final stream = Stream>.value([1, 2, 3]); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromStream(stream, size: 3), - path: StoragePath.fromString(path), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromStream(stream, size: 3), + path: StoragePath.fromString(path), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, [1, 2, 3]); }); }); @@ -93,13 +96,17 @@ void main() { final contentType = await localFile.contentType; expect(contentType, 'text/plain'); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: localFile, - path: StoragePath.fromString(path), - options: const StorageUploadFileOptions( - pluginOptions: S3UploadFilePluginOptions(getProperties: true), - ), - ).result as S3UploadFileResult; + final result = + await Amplify.Storage.uploadFile( + localFile: localFile, + path: StoragePath.fromString(path), + options: const StorageUploadFileOptions( + pluginOptions: S3UploadFilePluginOptions( + getProperties: true, + ), + ), + ).result + as S3UploadFileResult; expect(result.uploadedItem.contentType, 'text/plain'); }); @@ -115,13 +122,17 @@ void main() { final contentType = await localFile.contentType; expect(contentType, 'image/jpeg'); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: localFile, - path: StoragePath.fromString(path), - options: const StorageUploadFileOptions( - pluginOptions: S3UploadFilePluginOptions(getProperties: true), - ), - ).result as S3UploadFileResult; + final result = + await Amplify.Storage.uploadFile( + localFile: localFile, + path: StoragePath.fromString(path), + options: const StorageUploadFileOptions( + pluginOptions: S3UploadFilePluginOptions( + getProperties: true, + ), + ), + ).result + as S3UploadFileResult; expect(result.uploadedItem.contentType, 'image/jpeg'); }); }); @@ -135,27 +146,30 @@ void main() { final expectedResolvedPath = 'private/$userIdentityId/$name'; final filePath = await createFile(path: fileId, content: content); addTearDownPath(StoragePath.fromString(expectedResolvedPath)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$name', - ), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$name', + ), + ).result; expect(result.uploadedItem.path, expectedResolvedPath); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(expectedResolvedPath), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(expectedResolvedPath), + ).result; expect(downloadResult.bytes, data); }); testWidgets('unauthorized path', (_) async { await expectLater( - () => Amplify.Storage.uploadFile( - localFile: AWSFile.fromData('unauthorized path'.codeUnits), - path: const StoragePath.fromString('unauthorized/path'), - ).result, + () => + Amplify.Storage.uploadFile( + localFile: AWSFile.fromData('unauthorized path'.codeUnits), + path: const StoragePath.fromString('unauthorized/path'), + ).result, throwsA(isA()), ); }); @@ -166,16 +180,18 @@ void main() { final data = 'metadata'.codeUnits; const metadata = {'description': 'foo'}; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromData(data), - path: StoragePath.fromString(path), - options: const StorageUploadFileOptions(metadata: metadata), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromData(data), + path: StoragePath.fromString(path), + options: const StorageUploadFileOptions(metadata: metadata), + ).result; expect(result.uploadedItem.path, path); - final propertiesResult = await Amplify.Storage.getProperties( - path: StoragePath.fromString(path), - ).result; + final propertiesResult = + await Amplify.Storage.getProperties( + path: StoragePath.fromString(path), + ).result; expect(propertiesResult.storageItem.metadata, metadata); }); @@ -184,14 +200,15 @@ void main() { final data = 'getProperties'.codeUnits; const metadata = {'description': 'foo'}; addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromData(data), - path: StoragePath.fromString(path), - options: const StorageUploadFileOptions( - metadata: metadata, - pluginOptions: S3UploadFilePluginOptions(getProperties: true), - ), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromData(data), + path: StoragePath.fromString(path), + options: const StorageUploadFileOptions( + metadata: metadata, + pluginOptions: S3UploadFilePluginOptions(getProperties: true), + ), + ).result; expect(result.uploadedItem.path, path); expect(result.uploadedItem.metadata, metadata); }); @@ -203,27 +220,30 @@ void main() { final data = content.codeUnits; final filePath = await createFile(path: fileId, content: content); addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: StoragePath.fromString(path), - options: const StorageUploadFileOptions( - pluginOptions: S3UploadFilePluginOptions( - useAccelerateEndpoint: true, - ), - ), - ).result; + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: StoragePath.fromString(path), + options: const StorageUploadFileOptions( + pluginOptions: S3UploadFilePluginOptions( + useAccelerateEndpoint: true, + ), + ), + ).result; expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; expect(downloadResult.bytes, data); }); }); group('multi-bucket', () { - final mainBucket = - StorageBucket.fromOutputs('Storage Integ Test main bucket'); + final mainBucket = StorageBucket.fromOutputs( + 'Storage Integ Test main bucket', + ); final secondaryBucket = StorageBucket.fromOutputs( 'Storage Integ Test secondary bucket', ); @@ -235,64 +255,52 @@ void main() { const content = 'upload file'; final data = content.codeUnits; final filePath = await createFile(path: fileId, content: content); - addTearDownMultiBucket( - storagePath, - [mainBucket, secondaryBucket], - ); + addTearDownMultiBucket(storagePath, [mainBucket, secondaryBucket]); // main bucket - final mainResult = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: storagePath, - options: StorageUploadFileOptions( - pluginOptions: const S3UploadFilePluginOptions( - useAccelerateEndpoint: true, - ), - bucket: mainBucket, - ), - ).result; + final mainResult = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: storagePath, + options: StorageUploadFileOptions( + pluginOptions: const S3UploadFilePluginOptions( + useAccelerateEndpoint: true, + ), + bucket: mainBucket, + ), + ).result; expect(mainResult.uploadedItem.path, path); - final downloadMainResult = await Amplify.Storage.downloadData( - path: storagePath, - options: StorageDownloadDataOptions( - bucket: mainBucket, - ), - ).result; + final downloadMainResult = + await Amplify.Storage.downloadData( + path: storagePath, + options: StorageDownloadDataOptions(bucket: mainBucket), + ).result; expect(downloadMainResult.bytes, data); // secondary bucket - final secondaryResult = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: storagePath, - options: StorageUploadFileOptions( - pluginOptions: const S3UploadFilePluginOptions( - useAccelerateEndpoint: true, - ), - bucket: secondaryBucket, - ), - ).result; + final secondaryResult = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: storagePath, + options: StorageUploadFileOptions( + pluginOptions: const S3UploadFilePluginOptions( + useAccelerateEndpoint: true, + ), + bucket: secondaryBucket, + ), + ).result; expect(secondaryResult.uploadedItem.path, path); - final downloadSecondaryResult = await Amplify.Storage.downloadData( - path: storagePath, - options: StorageDownloadDataOptions( - bucket: secondaryBucket, - ), - ).result; + final downloadSecondaryResult = + await Amplify.Storage.downloadData( + path: storagePath, + options: StorageDownloadDataOptions(bucket: secondaryBucket), + ).result; expect(downloadSecondaryResult.bytes, data); + expect(await objectExists(storagePath, bucket: mainBucket), true); expect( - await objectExists( - storagePath, - bucket: mainBucket, - ), - true, - ); - expect( - await objectExists( - storagePath, - bucket: secondaryBucket, - ), + await objectExists(storagePath, bucket: secondaryBucket), true, ); }); @@ -325,8 +333,9 @@ void main() { expect(transferredBytes, data.length); }); - testWidgets('reports progress for streams based on provided size', - (_) async { + testWidgets('reports progress for streams based on provided size', ( + _, + ) async { final fileId = uuid(); final path = 'public/upload-file-stream-progress-$fileId'; const content = 'upload data'; @@ -366,71 +375,67 @@ void main() { final size = 1024 * 1024 * fileSize; const chars = 'qwertyuiopasdfghjklzxcvbnm'; final content = List.generate(size, (i) => chars[i % 25]).join(); - testWidgets( - 'can pause (file size: $fileSize mb)', - (_) async { - final fileId = uuid(); - final path = 'public/upload-file-pause-$fileId'; - final filePath = await createFile(path: fileId, content: content); - StorageTransferState? state; - addTearDownPath(StoragePath.fromString(path)); - final operation = Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: StoragePath.fromString(path), - onProgress: (progress) { - state = progress.state; - }, + testWidgets('can pause (file size: $fileSize mb)', (_) async { + final fileId = uuid(); + final path = 'public/upload-file-pause-$fileId'; + final filePath = await createFile(path: fileId, content: content); + StorageTransferState? state; + addTearDownPath(StoragePath.fromString(path)); + final operation = Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: StoragePath.fromString(path), + onProgress: (progress) { + state = progress.state; + }, + ); + await operation.pause(); + // pause is only supported for multi part uploads (over 5 mb) + // calling .pause() should not throw, but the operation will not + // actually pause. + if (fileSize > 5) { + unawaited( + operation.result.then( + (value) => fail('should not complete after pause'), + ), ); - await operation.pause(); - // pause is only supported for multi part uploads (over 5 mb) - // calling .pause() should not throw, but the operation will not - // actually pause. - if (fileSize > 5) { - unawaited( - operation.result.then( - (value) => fail('should not complete after pause'), - ), - ); - await Future.delayed(const Duration(seconds: 15)); - expect(state, StorageTransferState.paused); - await expectLater( - () => Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result, - throwsA(isA()), - ); - } - }, - ); - - testWidgets( - 'can resume (file size: $fileSize mb)', - (_) async { - final fileId = uuid(); - final path = 'public/upload-file-resume-$fileId'; - final filePath = await createFile(path: fileId, content: content); - final state = StreamController(); - addTearDownPath(StoragePath.fromString(path)); - final operation = Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: StoragePath.fromString(path), - onProgress: (progress) { - state.sink.add(progress.state); - }, + await Future.delayed(const Duration(seconds: 15)); + expect(state, StorageTransferState.paused); + await expectLater( + () => + Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result, + throwsA(isA()), ); - await operation.pause(); - await operation.resume(); - final nextProgressState = await state.stream.first; - expect(nextProgressState, StorageTransferState.inProgress); - final result = await operation.result; - expect(result.uploadedItem.path, path); - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; - expect(downloadResult.bytes, content.codeUnits); - await state.close(); - }, - ); + } + }); + + testWidgets('can resume (file size: $fileSize mb)', (_) async { + final fileId = uuid(); + final path = 'public/upload-file-resume-$fileId'; + final filePath = await createFile(path: fileId, content: content); + final state = StreamController(); + addTearDownPath(StoragePath.fromString(path)); + final operation = Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: StoragePath.fromString(path), + onProgress: (progress) { + state.sink.add(progress.state); + }, + ); + await operation.pause(); + await operation.resume(); + final nextProgressState = await state.stream.first; + expect(nextProgressState, StorageTransferState.inProgress); + final result = await operation.result; + expect(result.uploadedItem.path, path); + final downloadResult = + await Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result; + expect(downloadResult.bytes, content.codeUnits); + await state.close(); + }); testWidgets('can cancel (file size: $fileSize mb)', (_) async { final fileId = uuid(); @@ -453,9 +458,10 @@ void main() { expect(state, StorageTransferState.canceled); await expectException; await expectLater( - () => Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result, + () => + Amplify.Storage.downloadData( + path: StoragePath.fromString(path), + ).result, throwsA(isA()), ); }); @@ -467,50 +473,47 @@ void main() { setUpAll(() async { await configure(amplifyEnvironments['dots-in-name']!); }); - testWidgets( - 'standard upload works', - (_) async { - final fileId = uuid(); - final path = 'public/upload-file-from-path-$fileId'; - const content = 'upload data'; - final data = content.codeUnits; - final filePath = await createFile(path: fileId, content: content); - addTearDownPath(StoragePath.fromString(path)); - final result = await Amplify.Storage.uploadFile( - localFile: AWSFile.fromPath(filePath), - path: StoragePath.fromString(path), - ).result; - expect(result.uploadedItem.path, path); - - final downloadResult = await Amplify.Storage.downloadData( - path: StoragePath.fromString(path), - ).result; - expect(downloadResult.bytes, data); - }, - ); + testWidgets('standard upload works', (_) async { + final fileId = uuid(); + final path = 'public/upload-file-from-path-$fileId'; + const content = 'upload data'; + final data = content.codeUnits; + final filePath = await createFile(path: fileId, content: content); + addTearDownPath(StoragePath.fromString(path)); + final result = + await Amplify.Storage.uploadFile( + localFile: AWSFile.fromPath(filePath), + path: StoragePath.fromString(path), + ).result; + expect(result.uploadedItem.path, path); - testWidgets( - 'useAccelerateEndpoint throws', - (_) async { - await Future.delayed(const Duration(seconds: 5)); - final path = 'public/upload-file-from-data-${uuid()}'; - final data = 'data'.codeUnits; - addTearDownPath(StoragePath.fromString(path)); - await expectLater( - () => Amplify.Storage.uploadFile( - localFile: AWSFile.fromData(data), + final downloadResult = + await Amplify.Storage.downloadData( path: StoragePath.fromString(path), - options: const StorageUploadFileOptions( - pluginOptions: S3UploadFilePluginOptions( - useAccelerateEndpoint: true, + ).result; + expect(downloadResult.bytes, data); + }); + + testWidgets('useAccelerateEndpoint throws', (_) async { + await Future.delayed(const Duration(seconds: 5)); + final path = 'public/upload-file-from-data-${uuid()}'; + final data = 'data'.codeUnits; + addTearDownPath(StoragePath.fromString(path)); + await expectLater( + () => + Amplify.Storage.uploadFile( + localFile: AWSFile.fromData(data), + path: StoragePath.fromString(path), + options: const StorageUploadFileOptions( + pluginOptions: S3UploadFilePluginOptions( + useAccelerateEndpoint: true, + ), ), - ), - ).result, - // useAccelerateEndpoint is not supported with a bucket name with dots - throwsA(isA()), - ); - }, - ); + ).result, + // useAccelerateEndpoint is not supported with a bucket name with dots + throwsA(isA()), + ); + }); }); }); } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_io.dart b/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_io.dart index 0079ba5f57..0da22b00e9 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_io.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_io.dart @@ -4,9 +4,7 @@ import 'dart:io'; import 'dart:typed_data'; -Future readFile({ - required String path, -}) async { +Future readFile({required String path}) async { final file = File(path); return file.readAsBytes(); } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_stub.dart b/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_stub.dart index 238655cdc8..c1207b81de 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_stub.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/utils/file_ops/file_ops_stub.dart @@ -1,8 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -Future> readFile({ - required String path, -}) async { +Future> readFile({required String path}) async { throw UnimplementedError(); } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/utils/sign_in_new_user.dart b/packages/storage/amplify_storage_s3/example/integration_test/utils/sign_in_new_user.dart index 5758655547..ea7d8fd891 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/utils/sign_in_new_user.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/utils/sign_in_new_user.dart @@ -17,15 +17,11 @@ Future signInNewUser() async { addTearDownCurrentUser(); final username = generateEmail(); final password = generatePassword(); - await Amplify.Auth.signUp( - username: username, - password: password, - ); - await Amplify.Auth.signIn( - username: username, - password: password, - ); - final session = await Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey) - .fetchAuthSession(); + await Amplify.Auth.signUp(username: username, password: password); + await Amplify.Auth.signIn(username: username, password: password); + final session = + await Amplify.Auth.getPlugin( + AmplifyAuthCognito.pluginKey, + ).fetchAuthSession(); return session.identityIdResult.value; } diff --git a/packages/storage/amplify_storage_s3/example/integration_test/utils/tear_down.dart b/packages/storage/amplify_storage_s3/example/integration_test/utils/tear_down.dart index 21cddc0675..858ea3d793 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/utils/tear_down.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/utils/tear_down.dart @@ -8,56 +8,51 @@ final _logger = AmplifyLogger().createChild('StorageTests'); /// Adds a tear down to remove the object at [path]. void addTearDownPath(StoragePath path, {StorageBucket? bucket}) { - addTearDown( - () { - try { - return Amplify.Storage.remove( - path: path, - options: StorageRemoveOptions(bucket: bucket), - ).result; - } on Exception catch (e) { - _logger.warn('Failed to remove file after test', e); - rethrow; - } - }, - ); + addTearDown(() { + try { + return Amplify.Storage.remove( + path: path, + options: StorageRemoveOptions(bucket: bucket), + ).result; + } on Exception catch (e) { + _logger.warn('Failed to remove file after test', e); + rethrow; + } + }); } /// Adds a tear down to remove multiple objects at [paths]. void addTearDownPaths(List paths) { - addTearDown( - () { - try { - return Future.wait( - paths.map((path) => Amplify.Storage.remove(path: path).result), - ); - } on Exception catch (e) { - _logger.warn('Failed to remove files after test', e); - rethrow; - } - }, - ); + addTearDown(() { + try { + return Future.wait( + paths.map((path) => Amplify.Storage.remove(path: path).result), + ); + } on Exception catch (e) { + _logger.warn('Failed to remove files after test', e); + rethrow; + } + }); } /// Adds a tear down to remove the same object in multiple [buckets]. void addTearDownMultiBucket(StoragePath path, List buckets) { - addTearDown( - () { - try { - return Future.wait( - buckets.map( - (bucket) => Amplify.Storage.remove( - path: path, - options: StorageRemoveOptions(bucket: bucket), - ).result, - ), - ); - } on Exception catch (e) { - _logger.warn('Failed to remove files after test', e); - rethrow; - } - }, - ); + addTearDown(() { + try { + return Future.wait( + buckets.map( + (bucket) => + Amplify.Storage.remove( + path: path, + options: StorageRemoveOptions(bucket: bucket), + ).result, + ), + ); + } on Exception catch (e) { + _logger.warn('Failed to remove files after test', e); + rethrow; + } + }); } /// Adds a tear down to delete the current user. diff --git a/packages/storage/amplify_storage_s3/example/lib/main.dart b/packages/storage/amplify_storage_s3/example/lib/main.dart index 9a4f325543..ed7aedf6bd 100644 --- a/packages/storage/amplify_storage_s3/example/lib/main.dart +++ b/packages/storage/amplify_storage_s3/example/lib/main.dart @@ -17,11 +17,7 @@ final AmplifyLogger _logger = AmplifyLogger('MyStorageApp'); void main() { AmplifyLogger().logLevel = LogLevel.debug; - runApp( - const MyApp( - title: 'Amplify Storage Example', - ), - ); + runApp(const MyApp(title: 'Amplify Storage Example')); } class MyApp extends StatefulWidget { @@ -57,8 +53,8 @@ class _MyAppState extends State { /// https://docs.amplify.aws/lib/project-setup/platform-setup/q/platform/flutter/#enable-keychain secureStorageFactory: AmplifySecureStorage.factoryFrom( macOSOptions: - // ignore: invalid_use_of_visible_for_testing_member - MacOSSecureStorageOptions(useDataProtection: false), + // ignore: invalid_use_of_visible_for_testing_member + MacOSSecureStorageOptions(useDataProtection: false), ), ); final storage = AmplifyStorageS3(); @@ -149,8 +145,10 @@ class _HomeScreenState extends State { size: platformFile.size, ), path: StoragePath.fromString('public/${platformFile.name}'), - onProgress: (p) => - _logger.debug('Uploading: ${p.transferredBytes}/${p.totalBytes}'), + onProgress: + (p) => _logger.debug( + 'Uploading: ${p.transferredBytes}/${p.totalBytes}', + ), ).result; await _listAllPublicFiles(); } on StorageException catch (e) { @@ -161,12 +159,13 @@ class _HomeScreenState extends State { // list all files in the S3 bucket Future _listAllPublicFiles() async { try { - final result = await Amplify.Storage.list( - path: const StoragePath.fromString('public/'), - options: const StorageListOptions( - pluginOptions: S3ListPluginOptions.listAll(), - ), - ).result; + final result = + await Amplify.Storage.list( + path: const StoragePath.fromString('public/'), + options: const StorageListOptions( + pluginOptions: S3ListPluginOptions.listAll(), + ), + ).result; setState(() { list = result.items; }); @@ -183,8 +182,10 @@ class _HomeScreenState extends State { await Amplify.Storage.downloadFile( path: StoragePath.fromString(path), localFile: AWSFile.fromPath(filepath), - onProgress: (p0) => _logger - .debug('Progress: ${(p0.transferredBytes / p0.totalBytes) * 100}%'), + onProgress: + (p0) => _logger.debug( + 'Progress: ${(p0.transferredBytes / p0.totalBytes) * 100}%', + ), ).result; await _listAllPublicFiles(); } on StorageException catch (e) { @@ -198,8 +199,10 @@ class _HomeScreenState extends State { await Amplify.Storage.downloadFile( path: StoragePath.fromString(path), localFile: AWSFile.fromPath(path), - onProgress: (p0) => _logger - .debug('Progress: ${(p0.transferredBytes / p0.totalBytes) * 100}%'), + onProgress: + (p0) => _logger.debug( + 'Progress: ${(p0.transferredBytes / p0.totalBytes) * 100}%', + ), ).result; await _listAllPublicFiles(); } on StorageException catch (e) { @@ -210,9 +213,7 @@ class _HomeScreenState extends State { // delete file from S3 bucket Future removeFile(String path) async { try { - await Amplify.Storage.remove( - path: StoragePath.fromString(path), - ).result; + await Amplify.Storage.remove(path: StoragePath.fromString(path)).result; setState(() { // set the imageUrl to empty if the deleted file is the one being displayed imageUrl = ''; @@ -226,15 +227,16 @@ class _HomeScreenState extends State { // get the url of a file in the S3 bucket Future getUrl(String path) async { try { - final result = await Amplify.Storage.getUrl( - path: StoragePath.fromString(path), - options: const StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - validateObjectExistence: true, - expiresIn: Duration(minutes: 1), - ), - ), - ).result; + final result = + await Amplify.Storage.getUrl( + path: StoragePath.fromString(path), + options: const StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions( + validateObjectExistence: true, + expiresIn: Duration(minutes: 1), + ), + ), + ).result; setState(() { imageUrl = result.url.toString(); }); @@ -248,9 +250,7 @@ class _HomeScreenState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Amplify Storage Example'), - ), + appBar: AppBar(title: const Text('Amplify Storage Example')), body: Stack( children: [ Center( diff --git a/packages/storage/amplify_storage_s3/example/pubspec.yaml b/packages/storage/amplify_storage_s3/example/pubspec.yaml index f1f65f9f39..dadbe1867a 100644 --- a/packages/storage/amplify_storage_s3/example/pubspec.yaml +++ b/packages/storage/amplify_storage_s3/example/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0 publish_to: none environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_auth_cognito: any diff --git a/packages/storage/amplify_storage_s3/pubspec.yaml b/packages/storage/amplify_storage_s3/pubspec.yaml index fa225fcc5e..f382d16917 100644 --- a/packages/storage/amplify_storage_s3/pubspec.yaml +++ b/packages/storage/amplify_storage_s3/pubspec.yaml @@ -1,13 +1,13 @@ name: amplify_storage_s3 description: The Amplify Flutter Storage category plugin using the AWS S3 provider. -version: 2.6.1 +version: 2.6.2 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/storage/amplify_storage_s3 issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" # Helps `pana` since we do not use Flutter plugins for most platforms platforms: @@ -19,20 +19,20 @@ platforms: web: dependencies: - amplify_core: ">=2.6.1 <2.7.0" - amplify_db_common: ">=0.4.9 <0.5.0" - amplify_storage_s3_dart: ">=0.4.9 <0.5.0" - aws_common: ">=0.7.6 <0.8.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_db_common: ">=0.4.10 <0.5.0" + amplify_storage_s3_dart: ">=0.4.10 <0.5.0" + aws_common: ">=0.7.7 <0.8.0" flutter: sdk: flutter - meta: ^1.7.0 + meta: ^1.16.0 path_provider: ^2.0.0 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" amplify_test: path: ../../test/amplify_test - aws_signature_v4: ">=0.6.4 <0.7.0" + aws_signature_v4: ">=0.6.5 <0.7.0" flutter_test: sdk: flutter mocktail: ^1.0.0 diff --git a/packages/storage/amplify_storage_s3/test/amplify_storage_s3_impl_test.dart b/packages/storage/amplify_storage_s3/test/amplify_storage_s3_impl_test.dart index 8eb798aa9a..c65cffee69 100644 --- a/packages/storage/amplify_storage_s3/test/amplify_storage_s3_impl_test.dart +++ b/packages/storage/amplify_storage_s3/test/amplify_storage_s3_impl_test.dart @@ -19,20 +19,20 @@ void main() { storage: StorageOutputs(bucketName: '123', awsRegion: 'west-2'), ); // ignore: invalid_use_of_internal_member - final testAuthProviderRepo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.userPools.authProviderToken, - TestTokenIdentityProvider(), - ) - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - TestIamAuthProvider(), - ); + final testAuthProviderRepo = + AmplifyAuthProviderRepository() + ..registerAuthProvider( + APIAuthorizationType.userPools.authProviderToken, + TestTokenIdentityProvider(), + ) + ..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + TestIamAuthProvider(), + ); test( - 'configure() should override AppPathProvider with the Flutter provider', - () { - runZoned( - () async { + 'configure() should override AppPathProvider with the Flutter provider', + () { + runZoned(() async { final s3Plugin = AmplifyStorageS3(); await s3Plugin.configure( config: testConfig, @@ -41,11 +41,8 @@ void main() { final pathProvider = s3Plugin.dependencies.getOrCreate(); expect(pathProvider, isA()); - }, - zoneValues: { - zIsTest: true, - }, - ); - }); + }, zoneValues: {zIsTest: true}); + }, + ); }); } diff --git a/packages/storage/amplify_storage_s3_dart/CHANGELOG.md b/packages/storage/amplify_storage_s3_dart/CHANGELOG.md index 73ae16ab92..49912eb1a4 100644 --- a/packages/storage/amplify_storage_s3_dart/CHANGELOG.md +++ b/packages/storage/amplify_storage_s3_dart/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.4.10 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.4.9 - Minor bug fixes and improvements diff --git a/packages/storage/amplify_storage_s3_dart/example/bin/example.dart b/packages/storage/amplify_storage_s3_dart/example/bin/example.dart index f51a73d84b..f4e194b3e2 100644 --- a/packages/storage/amplify_storage_s3_dart/example/bin/example.dart +++ b/packages/storage/amplify_storage_s3_dart/example/bin/example.dart @@ -82,13 +82,12 @@ Future listOperation() async { // get plugin with plugin key to gain S3 specific interface final s3Plugin = Amplify.Storage.getPlugin(AmplifyStorageS3Dart.pluginKey); - final options = listAll - ? const StorageListOptions( - pluginOptions: S3ListPluginOptions.listAll(), - ) - : const StorageListOptions( - pageSize: pageSize, - ); + final options = + listAll + ? const StorageListOptions( + pluginOptions: S3ListPluginOptions.listAll(), + ) + : const StorageListOptions(pageSize: pageSize); final operation = s3Plugin.list( path: StoragePath.fromString(path), options: options, @@ -118,22 +117,24 @@ Future listOperation() async { } final listNextPage = - prompt(('There are more objects to list, list next page? (Y/n): ')) - .toLowerCase(); + prompt( + ('There are more objects to list, list next page? (Y/n): '), + ).toLowerCase(); if (listNextPage != 'y') { break; } - result = await s3Plugin - .list( - path: StoragePath.fromString(path), - options: StorageListOptions( - pageSize: pageSize, - nextToken: result.nextToken, - ), - ) - .result; + result = + await s3Plugin + .list( + path: StoragePath.fromString(path), + options: StorageListOptions( + pageSize: pageSize, + nextToken: result.nextToken, + ), + ) + .result; } } @@ -165,9 +166,7 @@ Future getUrlOperation() async { path: StoragePath.fromString(key), options: StorageGetUrlOptions( pluginOptions: S3GetUrlPluginOptions( - expiresIn: const Duration( - minutes: 10, - ), + expiresIn: const Duration(minutes: 10), validateObjectExistence: true, useAccelerateEndpoint: useAccelerateEndpoint, ), @@ -193,9 +192,7 @@ Future downloadDataOperation() async { final downloadDataOperation = s3Plugin.downloadData( path: StoragePath.fromString(key), options: const StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - getProperties: true, - ), + pluginOptions: S3DownloadDataPluginOptions(getProperties: true), ), onProgress: onTransferProgress, ); @@ -271,9 +268,7 @@ Future uploadDataUrlOperation() async { data: S3DataPayload.dataUrl(dataUrl), path: StoragePath.fromString(key), options: const StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions( - getProperties: true, - ), + pluginOptions: S3UploadDataPluginOptions(getProperties: true), ), ); @@ -313,9 +308,7 @@ Future uploadFileOperation() async { path: StoragePath.fromString(key), onProgress: onTransferProgress, options: StorageUploadFileOptions( - metadata: { - 'nameTag': nameTag, - }, + metadata: {'nameTag': nameTag}, pluginOptions: S3UploadFilePluginOptions( getProperties: true, useAccelerateEndpoint: useAccelerateEndpoint, @@ -376,9 +369,7 @@ Future removeOperation() async { final key = prompt('Enter the object key to remove: '); final s3Plugin = Amplify.Storage.getPlugin(AmplifyStorageS3Dart.pluginKey); - final removeOperation = s3Plugin.remove( - path: StoragePath.fromString(key), - ); + final removeOperation = s3Plugin.remove(path: StoragePath.fromString(key)); try { final result = await removeOperation.result; @@ -405,8 +396,10 @@ bool promptUseAcceleration() { String input; do { - input = prompt('Use transfer acceleration for this operation? (y/n): ') - .toLowerCase(); + input = + prompt( + 'Use transfer acceleration for this operation? (y/n): ', + ).toLowerCase(); } while (input != 'y' && input != 'n'); return input == 'y'; @@ -423,15 +416,9 @@ void onTransferProgress(S3TransferProgress progress) { final numberOfSigns = (progress.fractionCompleted * 20).ceil(); final sb = StringBuffer(); sb.write('['); + sb.writeAll(List.generate(numberOfSigns, (index) => index).map((e) => '=')); sb.writeAll( - List.generate(numberOfSigns, (index) => index).map( - (e) => '=', - ), - ); - sb.writeAll( - List.generate(20 - numberOfSigns, (index) => index).map( - (e) => '-', - ), + List.generate(20 - numberOfSigns, (index) => index).map((e) => '-'), ); sb.write( '] | ${(progress.fractionCompleted * 100).ceil()}% | ${progress.transferredBytes}/${progress.totalBytes} | ${progress.state} ', diff --git a/packages/storage/amplify_storage_s3_dart/example/pubspec.yaml b/packages/storage/amplify_storage_s3_dart/example/pubspec.yaml index 2f09d57050..d4b508c888 100644 --- a/packages/storage/amplify_storage_s3_dart/example/pubspec.yaml +++ b/packages/storage/amplify_storage_s3_dart/example/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0 publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_auth_cognito_dart: any diff --git a/packages/storage/amplify_storage_s3_dart/lib/amplify_storage_s3_dart.dart b/packages/storage/amplify_storage_s3_dart/lib/amplify_storage_s3_dart.dart index 546048c104..c3497fa331 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/amplify_storage_s3_dart.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/amplify_storage_s3_dart.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Amplify Storage S3 for Dart -library amplify_storage_s3_dart; +library; export 'src/amplify_storage_s3_dart_impl.dart'; export 'src/error/invalid_bytes_range_error.dart'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart b/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart index 11a2c9bc9c..4dfe3ee3c1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart @@ -70,8 +70,9 @@ class AmplifyStorageS3Dart extends StoragePluginInterface } storageOutputs = config!.storage!; - final identityProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.userPools.authProviderToken); + final identityProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.userPools.authProviderToken, + ); if (identityProvider == null) { throw ConfigurationError( @@ -81,16 +82,13 @@ class AmplifyStorageS3Dart extends StoragePluginInterface ); } - _pathResolver = S3PathResolver( - identityProvider: identityProvider, - ); + _pathResolver = S3PathResolver(identityProvider: identityProvider); - _pathResolver = S3PathResolver( - identityProvider: identityProvider, - ); + _pathResolver = S3PathResolver(identityProvider: identityProvider); - final credentialsProvider = authProviderRepo - .getAuthProvider(APIAuthorizationType.iam.authProviderToken); + final credentialsProvider = authProviderRepo.getAuthProvider( + APIAuthorizationType.iam.authProviderToken, + ); if (credentialsProvider == null) { throw ConfigurationError( @@ -141,14 +139,8 @@ class AmplifyStorageS3Dart extends StoragePluginInterface ); return S3ListOperation( - request: StorageListRequest( - path: path, - options: options, - ), - result: storageS3Service.list( - path: path, - options: s3Options, - ), + request: StorageListRequest(path: path, options: options), + result: storageS3Service.list(path: path, options: s3Options), ); } @@ -168,14 +160,8 @@ class AmplifyStorageS3Dart extends StoragePluginInterface ); return S3GetPropertiesOperation( - request: StorageGetPropertiesRequest( - path: path, - options: options, - ), - result: storageS3Service.getProperties( - path: path, - options: s3Options, - ), + request: StorageGetPropertiesRequest(path: path, options: options), + result: storageS3Service.getProperties(path: path, options: s3Options), ); } @@ -195,14 +181,8 @@ class AmplifyStorageS3Dart extends StoragePluginInterface ); return S3GetUrlOperation( - request: StorageGetUrlRequest( - path: path, - options: options, - ), - result: storageS3Service.getUrl( - path: path, - options: s3Options, - ), + request: StorageGetUrlRequest(path: path, options: options), + result: storageS3Service.getUrl(path: path, options: s3Options), ); } @@ -231,10 +211,7 @@ class AmplifyStorageS3Dart extends StoragePluginInterface ); return S3DownloadDataOperation( - request: StorageDownloadDataRequest( - path: path, - options: options, - ), + request: StorageDownloadDataRequest(path: path, options: options), result: downloadTask.result.then( (downloadedItem) => S3DownloadDataResult( bytes: bytes.takeBytes(), @@ -397,14 +374,8 @@ class AmplifyStorageS3Dart extends StoragePluginInterface ); return S3RemoveOperation( - request: StorageRemoveRequest( - path: path, - options: options, - ), - result: storageS3Service.remove( - path: path, - options: s3Options, - ), + request: StorageRemoveRequest(path: path, options: options), + result: storageS3Service.remove(path: path, options: s3Options), ); } @@ -424,14 +395,8 @@ class AmplifyStorageS3Dart extends StoragePluginInterface ); return S3RemoveManyOperation( - request: StorageRemoveManyRequest( - paths: paths, - options: options, - ), - result: storageS3Service.removeMany( - paths: paths, - options: s3Options, - ), + request: StorageRemoveManyRequest(paths: paths, options: options), + result: storageS3Service.removeMany(paths: paths, options: s3Options), ); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/error/invalid_bytes_range_error.dart b/packages/storage/amplify_storage_s3_dart/lib/src/error/invalid_bytes_range_error.dart index 0ca14d3262..6bf11aa33d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/error/invalid_bytes_range_error.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/error/invalid_bytes_range_error.dart @@ -6,10 +6,7 @@ /// {@endtemplate} class InvalidBytesRangeError extends Error { /// {@macro amplify_storage_s3_dart.invalid_bytes_range_error} - InvalidBytesRangeError( - this.message, { - this.recoverySuggestion, - }); + InvalidBytesRangeError(this.message, {this.recoverySuggestion}); /// A description of the error. final String message; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/exception/s3_storage_exception.dart b/packages/storage/amplify_storage_s3_dart/lib/src/exception/s3_storage_exception.dart index 05cd93d331..fd9f6fbabc 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/exception/s3_storage_exception.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/exception/s3_storage_exception.dart @@ -12,8 +12,7 @@ const _httpErrorRecoveryMessage = 'HTTP error returned from service, review the `underlyingException` for details.'; /// The exception thrown when cancel a controllable operation. -const s3ControllableOperationCanceledException = - StorageOperationCanceledException( +const s3ControllableOperationCanceledException = StorageOperationCanceledException( 'The operation has been canceled.', recoverySuggestion: 'This is expected when you call cancel() on a storage operation. This' diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_operation.dart index 57e573674c..5e0078291f 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_operation.dart @@ -10,8 +10,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; class S3CopyOperation extends StorageCopyOperation, S3CopyResult> { /// {@macro storage.amplify_storage_s3.copy_operation} - S3CopyOperation({ - required super.request, - required super.result, - }); + S3CopyOperation({required super.request, required super.result}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.dart index aaae30c61a..86f0059b1b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.dart @@ -11,9 +11,7 @@ part 's3_copy_plugin_options.g.dart'; @zAmplifySerializable class S3CopyPluginOptions extends StorageCopyPluginOptions { /// {@macro storage.amplify_storage_s3.copy_plugin_options} - const S3CopyPluginOptions({ - this.getProperties = false, - }); + const S3CopyPluginOptions({this.getProperties = false}); /// {@macro storage.amplify_storage_s3.copy_plugin_options} factory S3CopyPluginOptions.fromJson(Map json) => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.g.dart index 0aec183f11..5d8a903bac 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_plugin_options.g.dart @@ -7,20 +7,16 @@ part of 's3_copy_plugin_options.dart'; // ************************************************************************** S3CopyPluginOptions _$S3CopyPluginOptionsFromJson(Map json) => - $checkedCreate( - 'S3CopyPluginOptions', - json, - ($checkedConvert) { - final val = S3CopyPluginOptions( - getProperties: - $checkedConvert('getProperties', (v) => v as bool? ?? false), - ); - return val; - }, - ); + $checkedCreate('S3CopyPluginOptions', json, ($checkedConvert) { + final val = S3CopyPluginOptions( + getProperties: $checkedConvert( + 'getProperties', + (v) => v as bool? ?? false, + ), + ); + return val; + }); Map _$S3CopyPluginOptionsToJson( - S3CopyPluginOptions instance) => - { - 'getProperties': instance.getProperties, - }; + S3CopyPluginOptions instance, +) => {'getProperties': instance.getProperties}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_result.dart index 942574243c..27210eb62d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_copy_result.dart @@ -9,7 +9,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@endtemplate} class S3CopyResult extends StorageCopyResult { /// {@macro storage.amplify_storage_s3.get_url_result} - const S3CopyResult({ - required super.copiedItem, - }); + const S3CopyResult({required super.copiedItem}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.dart index fa11110e16..3d53810fa1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.dart @@ -12,10 +12,7 @@ part 's3_data_bytes_range.g.dart'; @zAmplifySerializable class S3DataBytesRange with AWSSerializable> { /// {@macro storage.amplify_storage_s3.data_bytes_range} - factory S3DataBytesRange({ - required int start, - required int end, - }) { + factory S3DataBytesRange({required int start, required int end}) { if (start >= end) { throw InvalidBytesRangeError( 'Invalid bytes range of `S3DataBytesRange`.', @@ -26,10 +23,7 @@ class S3DataBytesRange with AWSSerializable> { return S3DataBytesRange._(start: start, end: end); } - const S3DataBytesRange._({ - required this.start, - required this.end, - }); + const S3DataBytesRange._({required this.start, required this.end}); /// {@macro storage.amplify_storage_s3.data_bytes_range} factory S3DataBytesRange.fromJson(Map json) => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.g.dart index 7b629977ac..0688d06bc6 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_data_bytes_range.g.dart @@ -7,20 +7,13 @@ part of 's3_data_bytes_range.dart'; // ************************************************************************** S3DataBytesRange _$S3DataBytesRangeFromJson(Map json) => - $checkedCreate( - 'S3DataBytesRange', - json, - ($checkedConvert) { - final val = S3DataBytesRange( - start: $checkedConvert('start', (v) => (v as num).toInt()), - end: $checkedConvert('end', (v) => (v as num).toInt()), - ); - return val; - }, - ); + $checkedCreate('S3DataBytesRange', json, ($checkedConvert) { + final val = S3DataBytesRange( + start: $checkedConvert('start', (v) => (v as num).toInt()), + end: $checkedConvert('end', (v) => (v as num).toInt()), + ); + return val; + }); Map _$S3DataBytesRangeToJson(S3DataBytesRange instance) => - { - 'start': instance.start, - 'end': instance.end, - }; + {'start': instance.start, 'end': instance.end}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_operation.dart index 6961386d82..bce1700849 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_operation.dart @@ -7,8 +7,12 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@template storage.amplify_storage_s3.download_data_operation} /// An operation created by calling the Storage S3 plugin `downloadData` API. /// {@endtemplate} -class S3DownloadDataOperation extends StorageDownloadDataOperation< - StorageDownloadDataRequest, S3DownloadDataResult> { +class S3DownloadDataOperation + extends + StorageDownloadDataOperation< + StorageDownloadDataRequest, + S3DownloadDataResult + > { /// {@macro storage.amplify_storage_s3.download_data_operation} S3DownloadDataOperation({ required super.request, @@ -16,9 +20,9 @@ class S3DownloadDataOperation extends StorageDownloadDataOperation< required Future Function() resume, required Future Function() pause, required Future Function() cancel, - }) : _resume = resume, - _pause = pause, - _cancel = cancel; + }) : _resume = resume, + _pause = pause, + _cancel = cancel; final Future Function() _resume; final Future Function() _pause; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.dart index d86a188b36..47cd99e8c2 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.dart @@ -17,10 +17,10 @@ class S3DownloadDataPluginOptions extends StorageDownloadDataPluginOptions { S3DataBytesRange? bytesRange, bool useAccelerateEndpoint = false, }) : this._( - bytesRange: bytesRange, - getProperties: getProperties, - useAccelerateEndpoint: useAccelerateEndpoint, - ); + bytesRange: bytesRange, + getProperties: getProperties, + useAccelerateEndpoint: useAccelerateEndpoint, + ); const S3DownloadDataPluginOptions._({ this.getProperties = false, @@ -46,11 +46,7 @@ class S3DownloadDataPluginOptions extends StorageDownloadDataPluginOptions { final bool useAccelerateEndpoint; @override - List get props => [ - getProperties, - useAccelerateEndpoint, - bytesRange, - ]; + List get props => [getProperties, useAccelerateEndpoint, bytesRange]; @override String get runtimeTypeName => 'S3DownloadDataPluginOptions'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.g.dart index 6a0a5c7bfb..7df6d85281 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_data_plugin_options.g.dart @@ -7,38 +7,29 @@ part of 's3_download_data_plugin_options.dart'; // ************************************************************************** S3DownloadDataPluginOptions _$S3DownloadDataPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3DownloadDataPluginOptions', - json, - ($checkedConvert) { - final val = S3DownloadDataPluginOptions( - getProperties: - $checkedConvert('getProperties', (v) => v as bool? ?? false), - bytesRange: $checkedConvert( - 'bytesRange', - (v) => v == null - ? null - : S3DataBytesRange.fromJson(v as Map)), - useAccelerateEndpoint: $checkedConvert( - 'useAccelerateEndpoint', (v) => v as bool? ?? false), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('S3DownloadDataPluginOptions', json, ($checkedConvert) { + final val = S3DownloadDataPluginOptions( + getProperties: $checkedConvert('getProperties', (v) => v as bool? ?? false), + bytesRange: $checkedConvert( + 'bytesRange', + (v) => + v == null + ? null + : S3DataBytesRange.fromJson(v as Map), + ), + useAccelerateEndpoint: $checkedConvert( + 'useAccelerateEndpoint', + (v) => v as bool? ?? false, + ), + ); + return val; +}); Map _$S3DownloadDataPluginOptionsToJson( - S3DownloadDataPluginOptions instance) { - final val = {}; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('bytesRange', instance.bytesRange?.toJson()); - val['getProperties'] = instance.getProperties; - val['useAccelerateEndpoint'] = instance.useAccelerateEndpoint; - return val; -} + S3DownloadDataPluginOptions instance, +) => { + if (instance.bytesRange?.toJson() case final value?) 'bytesRange': value, + 'getProperties': instance.getProperties, + 'useAccelerateEndpoint': instance.useAccelerateEndpoint, +}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_operation.dart index 5f377a3ba7..f74994b9f3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_operation.dart @@ -7,8 +7,12 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@template storage.amplify_storage_s3.download_file_operation} /// An operation created by calling the Storage S3 plugin `downloadFile` API. /// {@endtemplate} -class S3DownloadFileOperation extends StorageDownloadFileOperation< - StorageDownloadFileRequest, S3DownloadFileResult> { +class S3DownloadFileOperation + extends + StorageDownloadFileOperation< + StorageDownloadFileRequest, + S3DownloadFileResult + > { /// {@macro storage.amplify_storage_s3.download_file_operation} S3DownloadFileOperation({ required super.request, @@ -16,9 +20,9 @@ class S3DownloadFileOperation extends StorageDownloadFileOperation< required Future Function() resume, required Future Function() pause, required Future Function() cancel, - }) : _resume = resume, - _pause = pause, - _cancel = cancel; + }) : _resume = resume, + _pause = pause, + _cancel = cancel; final Future Function() _resume; final Future Function() _pause; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.dart index 43d159d297..ee81168d9b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.dart @@ -15,9 +15,9 @@ class S3DownloadFilePluginOptions extends StorageDownloadFilePluginOptions { bool getProperties = false, bool useAccelerateEndpoint = false, }) : this._( - getProperties: getProperties, - useAccelerateEndpoint: useAccelerateEndpoint, - ); + getProperties: getProperties, + useAccelerateEndpoint: useAccelerateEndpoint, + ); const S3DownloadFilePluginOptions._({ this.getProperties = false, @@ -36,10 +36,7 @@ class S3DownloadFilePluginOptions extends StorageDownloadFilePluginOptions { final bool useAccelerateEndpoint; @override - List get props => [ - getProperties, - useAccelerateEndpoint, - ]; + List get props => [getProperties, useAccelerateEndpoint]; @override String get runtimeTypeName => 'S3DownloadFilePluginOptions'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.g.dart index 0814648e87..f9651cddd4 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_download_file_plugin_options.g.dart @@ -7,24 +7,21 @@ part of 's3_download_file_plugin_options.dart'; // ************************************************************************** S3DownloadFilePluginOptions _$S3DownloadFilePluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3DownloadFilePluginOptions', - json, - ($checkedConvert) { - final val = S3DownloadFilePluginOptions( - getProperties: - $checkedConvert('getProperties', (v) => v as bool? ?? false), - useAccelerateEndpoint: $checkedConvert( - 'useAccelerateEndpoint', (v) => v as bool? ?? false), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('S3DownloadFilePluginOptions', json, ($checkedConvert) { + final val = S3DownloadFilePluginOptions( + getProperties: $checkedConvert('getProperties', (v) => v as bool? ?? false), + useAccelerateEndpoint: $checkedConvert( + 'useAccelerateEndpoint', + (v) => v as bool? ?? false, + ), + ); + return val; +}); Map _$S3DownloadFilePluginOptionsToJson( - S3DownloadFilePluginOptions instance) => - { - 'getProperties': instance.getProperties, - 'useAccelerateEndpoint': instance.useAccelerateEndpoint, - }; + S3DownloadFilePluginOptions instance, +) => { + 'getProperties': instance.getProperties, + 'useAccelerateEndpoint': instance.useAccelerateEndpoint, +}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_operation.dart index 5805207eca..02c775009c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_operation.dart @@ -7,11 +7,12 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@template storage.amplify_storage_s3.get_properties_operation} /// An operation created by calling the Storage S3 plugin `getProperties` API. /// {@endtemplate} -class S3GetPropertiesOperation extends StorageGetPropertiesOperation< - StorageGetPropertiesRequest, S3GetPropertiesResult> { +class S3GetPropertiesOperation + extends + StorageGetPropertiesOperation< + StorageGetPropertiesRequest, + S3GetPropertiesResult + > { /// {@macro storage.amplify_storage_s3.get_properties_operation} - S3GetPropertiesOperation({ - required super.request, - required super.result, - }); + S3GetPropertiesOperation({required super.request, required super.result}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_plugin_options.g.dart index 5ab7534aba..3fe828fe11 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_plugin_options.g.dart @@ -7,16 +7,12 @@ part of 's3_get_properties_plugin_options.dart'; // ************************************************************************** S3GetPropertiesPluginOptions _$S3GetPropertiesPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3GetPropertiesPluginOptions', - json, - ($checkedConvert) { - final val = S3GetPropertiesPluginOptions(); - return val; - }, - ); + Map json, +) => $checkedCreate('S3GetPropertiesPluginOptions', json, ($checkedConvert) { + final val = S3GetPropertiesPluginOptions(); + return val; +}); Map _$S3GetPropertiesPluginOptionsToJson( - S3GetPropertiesPluginOptions instance) => - {}; + S3GetPropertiesPluginOptions instance, +) => {}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_result.dart index 66b5c8d7af..5680541740 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_properties_result.dart @@ -9,7 +9,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@endtemplate} class S3GetPropertiesResult extends StorageGetPropertiesResult { /// {@macro storage.amplify_storage_s3.get_properties_result} - const S3GetPropertiesResult({ - required super.storageItem, - }); + const S3GetPropertiesResult({required super.storageItem}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_operation.dart index 0716e3b988..d26cffba7a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_operation.dart @@ -10,8 +10,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; class S3GetUrlOperation extends StorageGetUrlOperation { /// {@macro storage.amplify_storage_s3.get_url_operation} - S3GetUrlOperation({ - required super.request, - required super.result, - }); + S3GetUrlOperation({required super.request, required super.result}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.dart index fa890e8b83..e6a3d13c63 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.dart @@ -17,10 +17,10 @@ class S3GetUrlPluginOptions extends StorageGetUrlPluginOptions { bool validateObjectExistence = false, bool useAccelerateEndpoint = false, }) : this._( - expiresIn: expiresIn, - validateObjectExistence: validateObjectExistence, - useAccelerateEndpoint: useAccelerateEndpoint, - ); + expiresIn: expiresIn, + validateObjectExistence: validateObjectExistence, + useAccelerateEndpoint: useAccelerateEndpoint, + ); const S3GetUrlPluginOptions._({ this.expiresIn = const Duration(minutes: 15), @@ -44,10 +44,10 @@ class S3GetUrlPluginOptions extends StorageGetUrlPluginOptions { @override List get props => [ - expiresIn, - validateObjectExistence, - useAccelerateEndpoint, - ]; + expiresIn, + validateObjectExistence, + useAccelerateEndpoint, + ]; @override String get runtimeTypeName => 'S3GetUrlPluginOptions'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.g.dart index 410dd78b1a..ec15511c67 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_plugin_options.g.dart @@ -7,30 +7,32 @@ part of 's3_get_url_plugin_options.dart'; // ************************************************************************** S3GetUrlPluginOptions _$S3GetUrlPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3GetUrlPluginOptions', - json, - ($checkedConvert) { - final val = S3GetUrlPluginOptions( - expiresIn: $checkedConvert( - 'expiresIn', - (v) => v == null - ? const Duration(minutes: 15) - : Duration(microseconds: (v as num).toInt())), - validateObjectExistence: $checkedConvert( - 'validateObjectExistence', (v) => v as bool? ?? false), - useAccelerateEndpoint: $checkedConvert( - 'useAccelerateEndpoint', (v) => v as bool? ?? false), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('S3GetUrlPluginOptions', json, ($checkedConvert) { + final val = S3GetUrlPluginOptions( + expiresIn: $checkedConvert( + 'expiresIn', + (v) => + v == null + ? const Duration(minutes: 15) + : Duration(microseconds: (v as num).toInt()), + ), + validateObjectExistence: $checkedConvert( + 'validateObjectExistence', + (v) => v as bool? ?? false, + ), + useAccelerateEndpoint: $checkedConvert( + 'useAccelerateEndpoint', + (v) => v as bool? ?? false, + ), + ); + return val; +}); Map _$S3GetUrlPluginOptionsToJson( - S3GetUrlPluginOptions instance) => - { - 'expiresIn': instance.expiresIn.inMicroseconds, - 'validateObjectExistence': instance.validateObjectExistence, - 'useAccelerateEndpoint': instance.useAccelerateEndpoint, - }; + S3GetUrlPluginOptions instance, +) => { + 'expiresIn': instance.expiresIn.inMicroseconds, + 'validateObjectExistence': instance.validateObjectExistence, + 'useAccelerateEndpoint': instance.useAccelerateEndpoint, +}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_result.dart index 19f752f4b6..668c6d9602 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_get_url_result.dart @@ -8,10 +8,7 @@ import 'package:amplify_core/amplify_core.dart'; /// {@endtemplate} class S3GetUrlResult extends StorageGetUrlResult { /// {@macro storage.amplify_storage_s3.get_url_result} - const S3GetUrlResult({ - required super.url, - this.expiresAt, - }); + const S3GetUrlResult({required super.url, this.expiresAt}); /// The date and time that the url expires at. final DateTime? expiresAt; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.dart index eb816e0ae3..307f0d4502 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.dart @@ -33,12 +33,12 @@ class S3Item extends StorageItem return storageItem is S3Item ? storageItem : S3Item( - path: storageItem.path, - size: storageItem.size, - lastModified: storageItem.lastModified, - eTag: storageItem.eTag, - metadata: decodeMetadata(storageItem.metadata), - ); + path: storageItem.path, + size: storageItem.size, + lastModified: storageItem.lastModified, + eTag: storageItem.eTag, + metadata: decodeMetadata(storageItem.metadata), + ); } /// {@macro storage.amplify_storage_s3.storage_s3_item} @@ -46,9 +46,7 @@ class S3Item extends StorageItem /// Creates a [S3Item] from [s3.S3Object] provided by S3 Client. @internal - factory S3Item.fromS3Object( - s3.S3Object object, - ) { + factory S3Item.fromS3Object(s3.S3Object object) { final key = object.key; // Sanity check, key property should never be null in a S3Object returned @@ -112,14 +110,14 @@ class S3Item extends StorageItem @override List get props => [ - path, - size, - lastModified, - eTag, - metadata, - versionId, - contentType, - ]; + path, + size, + lastModified, + eTag, + metadata, + versionId, + contentType, + ]; @override String get runtimeTypeName => 'S3Item'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.g.dart index 10354251e6..2a8d70a3c3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_item.g.dart @@ -6,46 +6,37 @@ part of 's3_item.dart'; // JsonSerializableGenerator // ************************************************************************** -S3Item _$S3ItemFromJson(Map json) => $checkedCreate( - 'S3Item', - json, - ($checkedConvert) { - final val = S3Item( - path: $checkedConvert('path', (v) => v as String), - size: $checkedConvert('size', (v) => (v as num?)?.toInt()), - lastModified: $checkedConvert('lastModified', - (v) => v == null ? null : DateTime.parse(v as String)), - eTag: $checkedConvert('eTag', (v) => v as String?), - metadata: $checkedConvert( - 'metadata', - (v) => - (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ) ?? - const {}), - versionId: $checkedConvert('versionId', (v) => v as String?), - contentType: $checkedConvert('contentType', (v) => v as String?), - ); - return val; - }, - ); +S3Item _$S3ItemFromJson(Map json) => + $checkedCreate('S3Item', json, ($checkedConvert) { + final val = S3Item( + path: $checkedConvert('path', (v) => v as String), + size: $checkedConvert('size', (v) => (v as num?)?.toInt()), + lastModified: $checkedConvert( + 'lastModified', + (v) => v == null ? null : DateTime.parse(v as String), + ), + eTag: $checkedConvert('eTag', (v) => v as String?), + metadata: $checkedConvert( + 'metadata', + (v) => + (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + ) ?? + const {}, + ), + versionId: $checkedConvert('versionId', (v) => v as String?), + contentType: $checkedConvert('contentType', (v) => v as String?), + ); + return val; + }); -Map _$S3ItemToJson(S3Item instance) { - final val = { - 'path': instance.path, - }; - - void writeNotNull(String key, dynamic value) { - if (value != null) { - val[key] = value; - } - } - - writeNotNull('size', instance.size); - writeNotNull('lastModified', instance.lastModified?.toIso8601String()); - writeNotNull('eTag', instance.eTag); - val['metadata'] = instance.metadata; - writeNotNull('versionId', instance.versionId); - writeNotNull('contentType', instance.contentType); - return val; -} +Map _$S3ItemToJson(S3Item instance) => { + 'path': instance.path, + if (instance.size case final value?) 'size': value, + if (instance.lastModified?.toIso8601String() case final value?) + 'lastModified': value, + if (instance.eTag case final value?) 'eTag': value, + 'metadata': instance.metadata, + if (instance.versionId case final value?) 'versionId': value, + if (instance.contentType case final value?) 'contentType': value, +}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_operation.dart index 8abea74dfe..8bbe1f543d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_operation.dart @@ -10,8 +10,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; class S3ListOperation extends StorageListOperation { /// {@macro storage.amplify_storage_s3.list_operation} - S3ListOperation({ - required super.request, - required super.result, - }); + S3ListOperation({required super.request, required super.result}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.dart index 17480ee70e..c3379f7770 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.dart @@ -14,10 +14,7 @@ class S3ListPluginOptions extends StorageListPluginOptions { const S3ListPluginOptions({ bool excludeSubPaths = false, String delimiter = '/', - }) : this._( - excludeSubPaths: excludeSubPaths, - delimiter: delimiter, - ); + }) : this._(excludeSubPaths: excludeSubPaths, delimiter: delimiter); const S3ListPluginOptions._({ this.excludeSubPaths = false, @@ -28,12 +25,8 @@ class S3ListPluginOptions extends StorageListPluginOptions { /// {@macro storage.amplify_storage_s3.list_plugin_options} /// /// Use this to list all objects without pagination. - const S3ListPluginOptions.listAll({ - bool excludeSubPaths = false, - }) : this._( - excludeSubPaths: excludeSubPaths, - listAll: true, - ); + const S3ListPluginOptions.listAll({bool excludeSubPaths = false}) + : this._(excludeSubPaths: excludeSubPaths, listAll: true); /// {@macro storage.amplify_storage_s3.list_plugin_options} factory S3ListPluginOptions.fromJson(Map json) => @@ -56,10 +49,7 @@ class S3ListPluginOptions extends StorageListPluginOptions { final bool listAll; @override - List get props => [ - excludeSubPaths, - listAll, - ]; + List get props => [excludeSubPaths, listAll]; @override String get runtimeTypeName => 'S3ListPluginOptions'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.g.dart index 05d787e2a7..c3fffb8f69 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_plugin_options.g.dart @@ -7,22 +7,20 @@ part of 's3_list_plugin_options.dart'; // ************************************************************************** S3ListPluginOptions _$S3ListPluginOptionsFromJson(Map json) => - $checkedCreate( - 'S3ListPluginOptions', - json, - ($checkedConvert) { - final val = S3ListPluginOptions( - excludeSubPaths: - $checkedConvert('excludeSubPaths', (v) => v as bool? ?? false), - delimiter: $checkedConvert('delimiter', (v) => v as String? ?? '/'), - ); - return val; - }, - ); + $checkedCreate('S3ListPluginOptions', json, ($checkedConvert) { + final val = S3ListPluginOptions( + excludeSubPaths: $checkedConvert( + 'excludeSubPaths', + (v) => v as bool? ?? false, + ), + delimiter: $checkedConvert('delimiter', (v) => v as String? ?? '/'), + ); + return val; + }); Map _$S3ListPluginOptionsToJson( - S3ListPluginOptions instance) => - { - 'excludeSubPaths': instance.excludeSubPaths, - 'delimiter': instance.delimiter, - }; + S3ListPluginOptions instance, +) => { + 'excludeSubPaths': instance.excludeSubPaths, + 'delimiter': instance.delimiter, +}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_result.dart index a9ba5ca0fe..d064b4403c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_list_result.dart @@ -64,21 +64,17 @@ class S3ListMetadata { List? commonPrefixes, String? delimiter, }) { - final subPaths = commonPrefixes - ?.map((commonPrefix) => commonPrefix.prefix) - .whereType() - .toList(); + final subPaths = + commonPrefixes + ?.map((commonPrefix) => commonPrefix.prefix) + .whereType() + .toList(); - return S3ListMetadata._( - subPaths: subPaths, - delimiter: delimiter, - ); + return S3ListMetadata._(subPaths: subPaths, delimiter: delimiter); } - S3ListMetadata._({ - List? subPaths, - this.delimiter, - }) : subPaths = subPaths ?? const []; + S3ListMetadata._({List? subPaths, this.delimiter}) + : subPaths = subPaths ?? const []; /// Merges two instances of [S3ListMetadata] into one. S3ListMetadata merge(S3ListMetadata other) { diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_operation.dart index c012dcf708..0b6f25958d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_operation.dart @@ -7,11 +7,12 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@template storage.amplify_storage_s3.remove_many_operation} /// An operation created by calling the Storage S3 plugin `removeMany` API. /// {@endtemplate} -class S3RemoveManyOperation extends StorageRemoveManyOperation< - StorageRemoveManyRequest, S3RemoveManyResult> { +class S3RemoveManyOperation + extends + StorageRemoveManyOperation< + StorageRemoveManyRequest, + S3RemoveManyResult + > { /// {@macro storage.amplify_storage_s3.remove_many_operation} - S3RemoveManyOperation({ - required super.request, - required super.result, - }); + S3RemoveManyOperation({required super.request, required super.result}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_plugin_options.g.dart index 05964fdb72..878e99d78e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_many_plugin_options.g.dart @@ -7,16 +7,12 @@ part of 's3_remove_many_plugin_options.dart'; // ************************************************************************** S3RemoveManyPluginOptions _$S3RemoveManyPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3RemoveManyPluginOptions', - json, - ($checkedConvert) { - final val = S3RemoveManyPluginOptions(); - return val; - }, - ); + Map json, +) => $checkedCreate('S3RemoveManyPluginOptions', json, ($checkedConvert) { + final val = S3RemoveManyPluginOptions(); + return val; +}); Map _$S3RemoveManyPluginOptionsToJson( - S3RemoveManyPluginOptions instance) => - {}; + S3RemoveManyPluginOptions instance, +) => {}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_operation.dart index 5a8325591f..f257361419 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_operation.dart @@ -10,8 +10,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; class S3RemoveOperation extends StorageRemoveOperation { /// {@macro storage.amplify_storage_s3.remove_operation} - S3RemoveOperation({ - required super.request, - required super.result, - }); + S3RemoveOperation({required super.request, required super.result}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_plugin_options.g.dart index ec245ea093..0d87a50b99 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_remove_plugin_options.g.dart @@ -7,16 +7,12 @@ part of 's3_remove_plugin_options.dart'; // ************************************************************************** S3RemovePluginOptions _$S3RemovePluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3RemovePluginOptions', - json, - ($checkedConvert) { - final val = S3RemovePluginOptions(); - return val; - }, - ); + Map json, +) => $checkedCreate('S3RemovePluginOptions', json, ($checkedConvert) { + final val = S3RemovePluginOptions(); + return val; +}); Map _$S3RemovePluginOptionsToJson( - S3RemovePluginOptions instance) => - {}; + S3RemovePluginOptions instance, +) => {}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_operation.dart index 9571165b2a..9690731f8e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_operation.dart @@ -7,8 +7,12 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@template storage.amplify_storage_s3.upload_data_operation} /// An operation created by calling the Storage S3 plugin `uploadData` API. /// {@endtemplate} -class S3UploadDataOperation extends StorageUploadDataOperation< - StorageUploadDataRequest, S3UploadDataResult> { +class S3UploadDataOperation + extends + StorageUploadDataOperation< + StorageUploadDataRequest, + S3UploadDataResult + > { /// {@macro storage.amplify_storage_s3.upload_data_operation} S3UploadDataOperation({ required super.request, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_plugin_options.g.dart index 9c9d5cfe8c..1457a2b42b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_plugin_options.g.dart @@ -7,24 +7,21 @@ part of 's3_upload_data_plugin_options.dart'; // ************************************************************************** S3UploadDataPluginOptions _$S3UploadDataPluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3UploadDataPluginOptions', - json, - ($checkedConvert) { - final val = S3UploadDataPluginOptions( - getProperties: - $checkedConvert('getProperties', (v) => v as bool? ?? false), - useAccelerateEndpoint: $checkedConvert( - 'useAccelerateEndpoint', (v) => v as bool? ?? false), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('S3UploadDataPluginOptions', json, ($checkedConvert) { + final val = S3UploadDataPluginOptions( + getProperties: $checkedConvert('getProperties', (v) => v as bool? ?? false), + useAccelerateEndpoint: $checkedConvert( + 'useAccelerateEndpoint', + (v) => v as bool? ?? false, + ), + ); + return val; +}); Map _$S3UploadDataPluginOptionsToJson( - S3UploadDataPluginOptions instance) => - { - 'getProperties': instance.getProperties, - 'useAccelerateEndpoint': instance.useAccelerateEndpoint, - }; + S3UploadDataPluginOptions instance, +) => { + 'getProperties': instance.getProperties, + 'useAccelerateEndpoint': instance.useAccelerateEndpoint, +}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_result.dart index d373e49343..e812d64370 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_data_result.dart @@ -9,7 +9,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@endtemplate} class S3UploadDataResult extends StorageUploadDataResult { /// {@macro storage.amplify_storage_s3.upload_data_result} - const S3UploadDataResult({ - required super.uploadedItem, - }); + const S3UploadDataResult({required super.uploadedItem}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_operation.dart index 6ad6857d32..02f91c7e3d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_operation.dart @@ -7,8 +7,12 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@template storage.amplify_storage_s3.upload_file_operation} /// An operation created by calling the Storage S3 plugin `uploadFile` API. /// {@endtemplate} -class S3UploadFileOperation extends StorageUploadFileOperation< - StorageUploadFileRequest, S3UploadFileResult> { +class S3UploadFileOperation + extends + StorageUploadFileOperation< + StorageUploadFileRequest, + S3UploadFileResult + > { /// {@macro storage.amplify_storage_s3.upload_file_operation} S3UploadFileOperation({ required super.request, @@ -16,9 +20,9 @@ class S3UploadFileOperation extends StorageUploadFileOperation< required Future Function() resume, required Future Function() pause, required Future Function() cancel, - }) : _resume = resume, - _pause = pause, - _cancel = cancel; + }) : _resume = resume, + _pause = pause, + _cancel = cancel; final Future Function() _resume; final Future Function() _pause; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.dart index 95c539b1fc..6366bec004 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.dart @@ -29,10 +29,7 @@ class S3UploadFilePluginOptions extends StorageUploadFilePluginOptions { final bool useAccelerateEndpoint; @override - List get props => [ - getProperties, - useAccelerateEndpoint, - ]; + List get props => [getProperties, useAccelerateEndpoint]; @override String get runtimeTypeName => 'S3UploadFilePluginOptions'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.g.dart index 498eeaf4e5..4812492b50 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_plugin_options.g.dart @@ -7,24 +7,21 @@ part of 's3_upload_file_plugin_options.dart'; // ************************************************************************** S3UploadFilePluginOptions _$S3UploadFilePluginOptionsFromJson( - Map json) => - $checkedCreate( - 'S3UploadFilePluginOptions', - json, - ($checkedConvert) { - final val = S3UploadFilePluginOptions( - getProperties: - $checkedConvert('getProperties', (v) => v as bool? ?? false), - useAccelerateEndpoint: $checkedConvert( - 'useAccelerateEndpoint', (v) => v as bool? ?? false), - ); - return val; - }, - ); + Map json, +) => $checkedCreate('S3UploadFilePluginOptions', json, ($checkedConvert) { + final val = S3UploadFilePluginOptions( + getProperties: $checkedConvert('getProperties', (v) => v as bool? ?? false), + useAccelerateEndpoint: $checkedConvert( + 'useAccelerateEndpoint', + (v) => v as bool? ?? false, + ), + ); + return val; +}); Map _$S3UploadFilePluginOptionsToJson( - S3UploadFilePluginOptions instance) => - { - 'getProperties': instance.getProperties, - 'useAccelerateEndpoint': instance.useAccelerateEndpoint, - }; + S3UploadFilePluginOptions instance, +) => { + 'getProperties': instance.getProperties, + 'useAccelerateEndpoint': instance.useAccelerateEndpoint, +}; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_result.dart index dbbe3805a1..2ce1f7b7a9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/model/s3_upload_file_result.dart @@ -9,7 +9,5 @@ import 'package:amplify_storage_s3_dart/amplify_storage_s3_dart.dart'; /// {@endtemplate} class S3UploadFileResult extends StorageUploadFileResult { /// {@macro storage.amplify_storage_s3.upload_file_result} - const S3UploadFileResult({ - required super.uploadedItem, - }); + const S3UploadFileResult({required super.uploadedItem}); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/path_resolver/s3_path_resolver.dart b/packages/storage/amplify_storage_s3_dart/lib/src/path_resolver/s3_path_resolver.dart index c98119f645..1f4f3bce4c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/path_resolver/s3_path_resolver.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/path_resolver/s3_path_resolver.dart @@ -51,15 +51,13 @@ class S3PathResolver { final resolvedPath = switch (path) { // ignore: invalid_use_of_internal_member final StoragePathFromIdentityId p => p.resolvePath( - identityId: identityId ?? await _getIdentityId(), - ), + identityId: identityId ?? await _getIdentityId(), + ), // ignore: invalid_use_of_internal_member - _ => path.resolvePath() + _ => path.resolvePath(), }; if (resolvedPath.isEmpty) { - throw const StoragePathValidationException( - 'StoragePath cannot be empty', - ); + throw const StoragePathValidationException('StoragePath cannot be empty'); } if (resolvedPath.startsWith('/')) { throw const StoragePathValidationException( @@ -73,19 +71,12 @@ class S3PathResolver { /// Resolves multiple [StoragePath] objects. /// /// This method will only fetch the current user's identityId one time. - Future> resolvePaths({ - required List paths, - }) async { + Future> resolvePaths({required List paths}) async { final requiresIdentityId = paths.whereType().isNotEmpty; final identityId = requiresIdentityId ? await _getIdentityId() : null; return Future.wait( - paths.map( - (path) => resolvePath( - path: path, - identityId: identityId, - ), - ), + paths.map((path) => resolvePath(path: path, identityId: identityId)), ); } } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/dom_helper.dart b/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/dom_helper.dart index 75319ee549..dbf10c895b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/dom_helper.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/dom_helper.dart @@ -21,22 +21,21 @@ class DomHelper { static DomHelper get instance => _instance; void _initializeContainerElement(String containerId) { - final container = Element.tag('amplify_storage_downloader') - ..id = containerId - ..style.display = 'none'; + final container = + Element.tag('amplify_storage_downloader') + ..id = containerId + ..style.display = 'none'; querySelector('body')!.children.add(container); _container = container; } /// Triggers browser download for the `url` with `name`. - void download({ - required String url, - String? name = '', - }) { - final anchor = AnchorElement() - ..href = url - ..download = name; + void download({required String url, String? name = ''}) { + final anchor = + AnchorElement() + ..href = url + ..download = name; _container.children.add(anchor); anchor.click(); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart b/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart index a77ee6f8c5..dcfb48eed2 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/platform_impl/download_file/download_file_html.dart @@ -56,25 +56,25 @@ Future _downloadFromUrl({ // `options.getProperties` is set to true. // Exception thrown from the getProperties will be thrown as download // operation. - final downloadedItem = (await storageS3Service.getProperties( - path: path, - options: StorageGetPropertiesOptions(bucket: options.bucket), - )) - .storageItem; + final downloadedItem = + (await storageS3Service.getProperties( + path: path, + options: StorageGetPropertiesOptions(bucket: options.bucket), + )).storageItem; // A download url expires in 15 mins by default, see [S3GetUrlPluginOptions]. // We are not setting validateObjectExistence to true here as we are not // able to directly get the result of underlying HeadObject result. - final url = (await storageS3Service.getUrl( - path: path, - options: StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - useAccelerateEndpoint: s3PluginOptions.useAccelerateEndpoint, - ), - bucket: options.bucket, - ), - )) - .url; + final url = + (await storageS3Service.getUrl( + path: path, + options: StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions( + useAccelerateEndpoint: s3PluginOptions.useAccelerateEndpoint, + ), + bucket: options.bucket, + ), + )).url; // Trigger a browser download on the presigned url. DomHelper.instance.download( @@ -85,9 +85,10 @@ Future _downloadFromUrl({ ); return S3DownloadFileResult( - downloadedItem: s3PluginOptions.getProperties - ? downloadedItem - : S3Item(path: downloadedItem.path), + downloadedItem: + s3PluginOptions.getProperties + ? downloadedItem + : S3Item(path: downloadedItem.path), localFile: localFile, ); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart index 0c40698c39..61324079eb 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/s3.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas,unnecessary_library_name /// # Amazon Simple Storage Service /// diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/endpoint_resolver.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/endpoint_resolver.dart index fa5012d208..176e1ba496 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/endpoint_resolver.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/endpoint_resolver.dart @@ -14,10 +14,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -50,18 +47,22 @@ final _partitions = [ 'us-west-2', }, endpoints: const { - 'af-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.af-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-east-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'af-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.af-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-east-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-northeast-1': _i1.EndpointDefinition( hostname: 's3.ap-northeast-1.amazonaws.com', signatureVersions: [ @@ -72,27 +73,33 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-northeast-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'ap-northeast-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-northeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'ap-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'ap-northeast-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-northeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-northeast-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'ap-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'ap-southeast-1': _i1.EndpointDefinition( hostname: 's3.ap-southeast-1.amazonaws.com', signatureVersions: [ @@ -103,7 +110,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'ap-southeast-2': _i1.EndpointDefinition( @@ -116,15 +123,17 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.ap-southeast-2.amazonaws.com', tags: ['dualstack'], - ) + ), + ], + ), + 'ap-southeast-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', + tags: ['dualstack'], + ), ], ), - 'ap-southeast-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ap-southeast-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), 'aws-global': _i1.EndpointDefinition( hostname: 's3.amazonaws.com', signatureVersions: [ @@ -134,41 +143,46 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-east-1'), variants: [], ), - 'ca-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.ca-central-1.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.ca-central-1.amazonaws.com', - tags: ['dualstack'], - ), - ]), - 'eu-central-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-central-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-north-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'ca-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.ca-central-1.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.ca-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-central-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-central-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-north-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'eu-west-1': _i1.EndpointDefinition( hostname: 's3.eu-west-1.amazonaws.com', signatureVersions: [ @@ -179,21 +193,25 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.eu-west-1.amazonaws.com', tags: ['dualstack'], - ) - ], - ), - 'eu-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-2.amazonaws.com', - tags: ['dualstack'], - ) - ]), - 'eu-west-3': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.eu-west-3.amazonaws.com', - tags: ['dualstack'], - ) - ]), + ), + ], + ), + 'eu-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), + 'eu-west-3': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.eu-west-3.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'fips-ca-central-1': _i1.EndpointDefinition( hostname: 's3-fips.ca-central-1.amazonaws.com', credentialScope: _i1.CredentialScope(region: 'ca-central-1'), @@ -219,12 +237,14 @@ final _partitions = [ credentialScope: _i1.CredentialScope(region: 'us-west-2'), variants: [], ), - 'me-south-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.me-south-1.amazonaws.com', - tags: ['dualstack'], - ) - ]), + 'me-south-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.me-south-1.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 's3-external-1': _i1.EndpointDefinition( hostname: 's3-external-1.amazonaws.com', signatureVersions: [ @@ -244,7 +264,7 @@ final _partitions = [ _i1.EndpointDefinitionVariant( hostname: 's3.dualstack.sa-east-1.amazonaws.com', tags: ['dualstack'], - ) + ), ], ), 'us-east-1': _i1.EndpointDefinition( @@ -256,10 +276,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-east-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-east-1.amazonaws.com', @@ -271,23 +288,22 @@ final _partitions = [ ), ], ), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ), - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.us-east-2.amazonaws.com', - tags: ['dualstack'], - ), - ]), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack', 'fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.us-east-2.amazonaws.com', + tags: ['dualstack'], + ), + ], + ), 'us-west-1': _i1.EndpointDefinition( hostname: 's3.us-west-1.amazonaws.com', signatureVersions: [ @@ -297,10 +313,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-1.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-1.amazonaws.com', @@ -321,10 +334,7 @@ final _partitions = [ variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.dualstack.us-west-2.amazonaws.com', - tags: [ - 'dualstack', - 'fips', - ], + tags: ['dualstack', 'fips'], ), _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-west-2.amazonaws.com', @@ -345,10 +355,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.amazonaws.com.cn', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -356,23 +363,24 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const { - 'cn-north-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), - 'cn-northwest-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', - tags: ['dualstack'], - ) - ]), + 'cn-north-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-north-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), + 'cn-northwest-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 's3.dualstack.cn-northwest-1.amazonaws.com.cn', + tags: ['dualstack'], + ), + ], + ), }, ), _i1.Partition( @@ -390,16 +398,10 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const { 'us-iso-east-1': _i1.EndpointDefinition( - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [_i1.AWSSignatureVersion.s3v4], variants: [], ), @@ -413,10 +415,7 @@ final _partitions = [ isRegionalized: true, defaults: const _i1.EndpointDefinition( hostname: 's3.{region}.sc2s.sgov.gov', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], signatureVersions: [ _i1.AWSSignatureVersion.s3v4, _i1.AWSSignatureVersion.v4, @@ -443,10 +442,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-east-1': _i1.EndpointDefinition( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -460,10 +456,7 @@ final _partitions = [ ), 'us-gov-east-1': _i1.EndpointDefinition( hostname: 's3.us-gov-east-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-east-1.amazonaws.com', @@ -477,10 +470,7 @@ final _partitions = [ ), 'us-gov-west-1': _i1.EndpointDefinition( hostname: 's3.us-gov-west-1.amazonaws.com', - protocols: [ - 'http', - 'https', - ], + protocols: ['http', 'https'], variants: [ _i1.EndpointDefinitionVariant( hostname: 's3-fips.us-gov-west-1.amazonaws.com', @@ -496,7 +486,8 @@ final _partitions = [ ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'S3'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart index 3891c6bce1..21224ed753 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/common/serializers.dart @@ -190,51 +190,24 @@ const List<_i1.SmithySerializer> serializers = [ ...UploadPartCopyOutput.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(CompletedPart)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltMap, - [ - FullType(String), - FullType(String), - ], - ): _i2.MapBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(ObjectIdentifier)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(DeletedObject)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(Error)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(CommonPrefix)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(MultipartUpload)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(OptionalObjectAttributes)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(ChecksumAlgorithm)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(S3Object)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(Part)], - ): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(CompletedPart)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltMap, [FullType(String), FullType(String)]): + _i2.MapBuilder.new, + const FullType(_i2.BuiltList, [FullType(ObjectIdentifier)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(DeletedObject)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(Error)]): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(CommonPrefix)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(MultipartUpload)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(OptionalObjectAttributes)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(ChecksumAlgorithm)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(S3Object)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(Part)]): _i2.ListBuilder.new, }; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.dart index 2af69a9b59..1019abee71 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.dart @@ -22,9 +22,9 @@ abstract class AbortMultipartUploadOutput return _$AbortMultipartUploadOutput._(requestCharged: requestCharged); } - factory AbortMultipartUploadOutput.build( - [void Function(AbortMultipartUploadOutputBuilder) updates]) = - _$AbortMultipartUploadOutput; + factory AbortMultipartUploadOutput.build([ + void Function(AbortMultipartUploadOutputBuilder) updates, + ]) = _$AbortMultipartUploadOutput; const AbortMultipartUploadOutput._(); @@ -32,16 +32,16 @@ abstract class AbortMultipartUploadOutput factory AbortMultipartUploadOutput.fromResponse( AbortMultipartUploadOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - AbortMultipartUploadOutput.build((b) { - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => AbortMultipartUploadOutput.build((b) { + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [AbortMultipartUploadOutputRestXmlSerializer()]; + serializers = [AbortMultipartUploadOutputRestXmlSerializer()]; /// If present, indicates that the requester was successfully charged for the request. /// @@ -57,25 +57,23 @@ abstract class AbortMultipartUploadOutput @override String toString() { final helper = newBuiltValueToStringHelper('AbortMultipartUploadOutput') - ..add( - 'requestCharged', - requestCharged, - ); + ..add('requestCharged', requestCharged); return helper.toString(); } } @_i3.internal abstract class AbortMultipartUploadOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + AbortMultipartUploadOutputPayload, + AbortMultipartUploadOutputPayloadBuilder + >, _i2.EmptyPayload { - factory AbortMultipartUploadOutputPayload( - [void Function(AbortMultipartUploadOutputPayloadBuilder) updates]) = - _$AbortMultipartUploadOutputPayload; + factory AbortMultipartUploadOutputPayload([ + void Function(AbortMultipartUploadOutputPayloadBuilder) updates, + ]) = _$AbortMultipartUploadOutputPayload; const AbortMultipartUploadOutputPayload._(); @@ -84,8 +82,9 @@ abstract class AbortMultipartUploadOutputPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('AbortMultipartUploadOutputPayload'); + final helper = newBuiltValueToStringHelper( + 'AbortMultipartUploadOutputPayload', + ); return helper.toString(); } } @@ -93,23 +92,20 @@ abstract class AbortMultipartUploadOutputPayload class AbortMultipartUploadOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const AbortMultipartUploadOutputRestXmlSerializer() - : super('AbortMultipartUploadOutput'); + : super('AbortMultipartUploadOutput'); @override Iterable get types => const [ - AbortMultipartUploadOutput, - _$AbortMultipartUploadOutput, - AbortMultipartUploadOutputPayload, - _$AbortMultipartUploadOutputPayload, - ]; + AbortMultipartUploadOutput, + _$AbortMultipartUploadOutput, + AbortMultipartUploadOutputPayload, + _$AbortMultipartUploadOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AbortMultipartUploadOutputPayload deserialize( @@ -130,7 +126,7 @@ class AbortMultipartUploadOutputRestXmlSerializer const _i2.XmlElementName( 'AbortMultipartUploadOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.g.dart index af3152d4b5..cd9e40d024 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_output.g.dart @@ -10,16 +10,16 @@ class _$AbortMultipartUploadOutput extends AbortMultipartUploadOutput { @override final RequestCharged? requestCharged; - factory _$AbortMultipartUploadOutput( - [void Function(AbortMultipartUploadOutputBuilder)? updates]) => - (new AbortMultipartUploadOutputBuilder()..update(updates))._build(); + factory _$AbortMultipartUploadOutput([ + void Function(AbortMultipartUploadOutputBuilder)? updates, + ]) => (new AbortMultipartUploadOutputBuilder()..update(updates))._build(); _$AbortMultipartUploadOutput._({this.requestCharged}) : super._(); @override AbortMultipartUploadOutput rebuild( - void Function(AbortMultipartUploadOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AbortMultipartUploadOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AbortMultipartUploadOutputBuilder toBuilder() => @@ -77,10 +77,9 @@ class AbortMultipartUploadOutputBuilder AbortMultipartUploadOutput build() => _build(); _$AbortMultipartUploadOutput _build() { - final _$result = _$v ?? - new _$AbortMultipartUploadOutput._( - requestCharged: requestCharged, - ); + final _$result = + _$v ?? + new _$AbortMultipartUploadOutput._(requestCharged: requestCharged); replace(_$result); return _$result; } @@ -88,8 +87,9 @@ class AbortMultipartUploadOutputBuilder class _$AbortMultipartUploadOutputPayload extends AbortMultipartUploadOutputPayload { - factory _$AbortMultipartUploadOutputPayload( - [void Function(AbortMultipartUploadOutputPayloadBuilder)? updates]) => + factory _$AbortMultipartUploadOutputPayload([ + void Function(AbortMultipartUploadOutputPayloadBuilder)? updates, + ]) => (new AbortMultipartUploadOutputPayloadBuilder()..update(updates)) ._build(); @@ -97,8 +97,8 @@ class _$AbortMultipartUploadOutputPayload @override AbortMultipartUploadOutputPayload rebuild( - void Function(AbortMultipartUploadOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AbortMultipartUploadOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AbortMultipartUploadOutputPayloadBuilder toBuilder() => @@ -118,8 +118,10 @@ class _$AbortMultipartUploadOutputPayload class AbortMultipartUploadOutputPayloadBuilder implements - Builder { + Builder< + AbortMultipartUploadOutputPayload, + AbortMultipartUploadOutputPayloadBuilder + > { _$AbortMultipartUploadOutputPayload? _$v; AbortMultipartUploadOutputPayloadBuilder(); @@ -132,7 +134,8 @@ class AbortMultipartUploadOutputPayloadBuilder @override void update( - void Function(AbortMultipartUploadOutputPayloadBuilder)? updates) { + void Function(AbortMultipartUploadOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart index 066b95ba10..74dcc34bc7 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.dart @@ -36,9 +36,9 @@ abstract class AbortMultipartUploadRequest ); } - factory AbortMultipartUploadRequest.build( - [void Function(AbortMultipartUploadRequestBuilder) updates]) = - _$AbortMultipartUploadRequest; + factory AbortMultipartUploadRequest.build([ + void Function(AbortMultipartUploadRequestBuilder) updates, + ]) = _$AbortMultipartUploadRequest; const AbortMultipartUploadRequest._(); @@ -46,29 +46,28 @@ abstract class AbortMultipartUploadRequest AbortMultipartUploadRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - AbortMultipartUploadRequest.build((b) { - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.queryParameters['uploadId'] != null) { - b.uploadId = request.queryParameters['uploadId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => AbortMultipartUploadRequest.build((b) { + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.queryParameters['uploadId'] != null) { + b.uploadId = request.queryParameters['uploadId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [AbortMultipartUploadRequestRestXmlSerializer()]; + serializers = [AbortMultipartUploadRequestRestXmlSerializer()]; /// The bucket name to which the upload was taking place. /// @@ -102,10 +101,7 @@ abstract class AbortMultipartUploadRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -114,51 +110,38 @@ abstract class AbortMultipartUploadRequest @override List get props => [ - bucket, - key, - uploadId, - requestPayer, - expectedBucketOwner, - ]; + bucket, + key, + uploadId, + requestPayer, + expectedBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('AbortMultipartUploadRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('AbortMultipartUploadRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('uploadId', uploadId) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @_i3.internal abstract class AbortMultipartUploadRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + AbortMultipartUploadRequestPayload, + AbortMultipartUploadRequestPayloadBuilder + >, _i1.EmptyPayload { - factory AbortMultipartUploadRequestPayload( - [void Function(AbortMultipartUploadRequestPayloadBuilder) updates]) = - _$AbortMultipartUploadRequestPayload; + factory AbortMultipartUploadRequestPayload([ + void Function(AbortMultipartUploadRequestPayloadBuilder) updates, + ]) = _$AbortMultipartUploadRequestPayload; const AbortMultipartUploadRequestPayload._(); @@ -167,8 +150,9 @@ abstract class AbortMultipartUploadRequestPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('AbortMultipartUploadRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'AbortMultipartUploadRequestPayload', + ); return helper.toString(); } } @@ -176,23 +160,20 @@ abstract class AbortMultipartUploadRequestPayload class AbortMultipartUploadRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const AbortMultipartUploadRequestRestXmlSerializer() - : super('AbortMultipartUploadRequest'); + : super('AbortMultipartUploadRequest'); @override Iterable get types => const [ - AbortMultipartUploadRequest, - _$AbortMultipartUploadRequest, - AbortMultipartUploadRequestPayload, - _$AbortMultipartUploadRequestPayload, - ]; + AbortMultipartUploadRequest, + _$AbortMultipartUploadRequest, + AbortMultipartUploadRequestPayload, + _$AbortMultipartUploadRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override AbortMultipartUploadRequestPayload deserialize( @@ -213,7 +194,7 @@ class AbortMultipartUploadRequestRestXmlSerializer const _i1.XmlElementName( 'AbortMultipartUploadRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.g.dart index 3993d50b33..dc3d3dabee 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/abort_multipart_upload_request.g.dart @@ -18,29 +18,38 @@ class _$AbortMultipartUploadRequest extends AbortMultipartUploadRequest { @override final String? expectedBucketOwner; - factory _$AbortMultipartUploadRequest( - [void Function(AbortMultipartUploadRequestBuilder)? updates]) => - (new AbortMultipartUploadRequestBuilder()..update(updates))._build(); - - _$AbortMultipartUploadRequest._( - {required this.bucket, - required this.key, - required this.uploadId, - this.requestPayer, - this.expectedBucketOwner}) - : super._() { + factory _$AbortMultipartUploadRequest([ + void Function(AbortMultipartUploadRequestBuilder)? updates, + ]) => (new AbortMultipartUploadRequestBuilder()..update(updates))._build(); + + _$AbortMultipartUploadRequest._({ + required this.bucket, + required this.key, + required this.uploadId, + this.requestPayer, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'AbortMultipartUploadRequest', 'bucket'); + bucket, + r'AbortMultipartUploadRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - key, r'AbortMultipartUploadRequest', 'key'); + key, + r'AbortMultipartUploadRequest', + 'key', + ); BuiltValueNullFieldError.checkNotNull( - uploadId, r'AbortMultipartUploadRequest', 'uploadId'); + uploadId, + r'AbortMultipartUploadRequest', + 'uploadId', + ); } @override AbortMultipartUploadRequest rebuild( - void Function(AbortMultipartUploadRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AbortMultipartUploadRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AbortMultipartUploadRequestBuilder toBuilder() => @@ -72,8 +81,10 @@ class _$AbortMultipartUploadRequest extends AbortMultipartUploadRequest { class AbortMultipartUploadRequestBuilder implements - Builder { + Builder< + AbortMultipartUploadRequest, + AbortMultipartUploadRequestBuilder + > { _$AbortMultipartUploadRequest? _$v; String? _bucket; @@ -128,14 +139,24 @@ class AbortMultipartUploadRequestBuilder AbortMultipartUploadRequest build() => _build(); _$AbortMultipartUploadRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$AbortMultipartUploadRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'AbortMultipartUploadRequest', 'bucket'), + bucket, + r'AbortMultipartUploadRequest', + 'bucket', + ), key: BuiltValueNullFieldError.checkNotNull( - key, r'AbortMultipartUploadRequest', 'key'), + key, + r'AbortMultipartUploadRequest', + 'key', + ), uploadId: BuiltValueNullFieldError.checkNotNull( - uploadId, r'AbortMultipartUploadRequest', 'uploadId'), + uploadId, + r'AbortMultipartUploadRequest', + 'uploadId', + ), requestPayer: requestPayer, expectedBucketOwner: expectedBucketOwner, ); @@ -146,9 +167,9 @@ class AbortMultipartUploadRequestBuilder class _$AbortMultipartUploadRequestPayload extends AbortMultipartUploadRequestPayload { - factory _$AbortMultipartUploadRequestPayload( - [void Function(AbortMultipartUploadRequestPayloadBuilder)? - updates]) => + factory _$AbortMultipartUploadRequestPayload([ + void Function(AbortMultipartUploadRequestPayloadBuilder)? updates, + ]) => (new AbortMultipartUploadRequestPayloadBuilder()..update(updates)) ._build(); @@ -156,8 +177,8 @@ class _$AbortMultipartUploadRequestPayload @override AbortMultipartUploadRequestPayload rebuild( - void Function(AbortMultipartUploadRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AbortMultipartUploadRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AbortMultipartUploadRequestPayloadBuilder toBuilder() => @@ -177,8 +198,10 @@ class _$AbortMultipartUploadRequestPayload class AbortMultipartUploadRequestPayloadBuilder implements - Builder { + Builder< + AbortMultipartUploadRequestPayload, + AbortMultipartUploadRequestPayloadBuilder + > { _$AbortMultipartUploadRequestPayload? _$v; AbortMultipartUploadRequestPayloadBuilder(); @@ -191,7 +214,8 @@ class AbortMultipartUploadRequestPayloadBuilder @override void update( - void Function(AbortMultipartUploadRequestPayloadBuilder)? updates) { + void Function(AbortMultipartUploadRequestPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/archive_status.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/archive_status.dart index cbb62a365e..bc0b16551b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/archive_status.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/archive_status.dart @@ -6,11 +6,7 @@ library amplify_storage_s3_dart.s3.model.archive_status; // ignore_for_file: no_ import 'package:smithy/smithy.dart' as _i1; class ArchiveStatus extends _i1.SmithyEnum { - const ArchiveStatus._( - super.index, - super.name, - super.value, - ); + const ArchiveStatus._(super.index, super.name, super.value); const ArchiveStatus._sdkUnknown(super.value) : super.sdkUnknown(); @@ -38,12 +34,9 @@ class ArchiveStatus extends _i1.SmithyEnum { values: values, sdkUnknown: ArchiveStatus._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_algorithm.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_algorithm.dart index 671b5f00be..e547735b79 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_algorithm.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_algorithm.dart @@ -6,37 +6,17 @@ library amplify_storage_s3_dart.s3.model.checksum_algorithm; // ignore_for_file: import 'package:smithy/smithy.dart' as _i1; class ChecksumAlgorithm extends _i1.SmithyEnum { - const ChecksumAlgorithm._( - super.index, - super.name, - super.value, - ); + const ChecksumAlgorithm._(super.index, super.name, super.value); const ChecksumAlgorithm._sdkUnknown(super.value) : super.sdkUnknown(); - static const crc32 = ChecksumAlgorithm._( - 0, - 'CRC32', - 'CRC32', - ); + static const crc32 = ChecksumAlgorithm._(0, 'CRC32', 'CRC32'); - static const crc32C = ChecksumAlgorithm._( - 1, - 'CRC32C', - 'CRC32C', - ); + static const crc32C = ChecksumAlgorithm._(1, 'CRC32C', 'CRC32C'); - static const sha1 = ChecksumAlgorithm._( - 2, - 'SHA1', - 'SHA1', - ); + static const sha1 = ChecksumAlgorithm._(2, 'SHA1', 'SHA1'); - static const sha256 = ChecksumAlgorithm._( - 3, - 'SHA256', - 'SHA256', - ); + static const sha256 = ChecksumAlgorithm._(3, 'SHA256', 'SHA256'); /// All values of [ChecksumAlgorithm]. static const values = [ @@ -52,12 +32,9 @@ class ChecksumAlgorithm extends _i1.SmithyEnum { values: values, sdkUnknown: ChecksumAlgorithm._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_mode.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_mode.dart index 37360b6ef0..28e3f32866 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_mode.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/checksum_mode.dart @@ -6,19 +6,11 @@ library amplify_storage_s3_dart.s3.model.checksum_mode; // ignore_for_file: no_l import 'package:smithy/smithy.dart' as _i1; class ChecksumMode extends _i1.SmithyEnum { - const ChecksumMode._( - super.index, - super.name, - super.value, - ); + const ChecksumMode._(super.index, super.name, super.value); const ChecksumMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const enabled = ChecksumMode._( - 0, - 'ENABLED', - 'ENABLED', - ); + static const enabled = ChecksumMode._(0, 'ENABLED', 'ENABLED'); /// All values of [ChecksumMode]. static const values = [ChecksumMode.enabled]; @@ -29,12 +21,9 @@ class ChecksumMode extends _i1.SmithyEnum { values: values, sdkUnknown: ChecksumMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.dart index 942bd197c4..5b765c7d1e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.dart @@ -26,7 +26,7 @@ abstract class CommonPrefix const CommonPrefix._(); static const List<_i2.SmithySerializer> serializers = [ - CommonPrefixRestXmlSerializer() + CommonPrefixRestXmlSerializer(), ]; /// Container for the specified common prefix. @@ -37,10 +37,7 @@ abstract class CommonPrefix @override String toString() { final helper = newBuiltValueToStringHelper('CommonPrefix') - ..add( - 'prefix', - prefix, - ); + ..add('prefix', prefix); return helper.toString(); } } @@ -50,18 +47,12 @@ class CommonPrefixRestXmlSerializer const CommonPrefixRestXmlSerializer() : super('CommonPrefix'); @override - Iterable get types => const [ - CommonPrefix, - _$CommonPrefix, - ]; + Iterable get types => const [CommonPrefix, _$CommonPrefix]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CommonPrefix deserialize( @@ -80,10 +71,12 @@ class CommonPrefixRestXmlSerializer } switch (key) { case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -100,16 +93,15 @@ class CommonPrefixRestXmlSerializer const _i2.XmlElementName( 'CommonPrefix', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CommonPrefix(:prefix) = object; if (prefix != null) { result$ ..add(const _i2.XmlElementName('Prefix')) - ..add(serializers.serialize( - prefix, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(prefix, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.g.dart index c971f840d7..b393831266 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/common_prefix.g.dart @@ -71,10 +71,7 @@ class CommonPrefixBuilder CommonPrefix build() => _build(); _$CommonPrefix _build() { - final _$result = _$v ?? - new _$CommonPrefix._( - prefix: prefix, - ); + final _$result = _$v ?? new _$CommonPrefix._(prefix: prefix); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart index ee06d3fccc..a111383f4f 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.dart @@ -14,11 +14,12 @@ import 'package:smithy/smithy.dart' as _i2; part 'complete_multipart_upload_output.g.dart'; abstract class CompleteMultipartUploadOutput - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + CompleteMultipartUploadOutput, + CompleteMultipartUploadOutputBuilder + >, _i2.HasPayload { factory CompleteMultipartUploadOutput({ String? location, @@ -54,9 +55,9 @@ abstract class CompleteMultipartUploadOutput ); } - factory CompleteMultipartUploadOutput.build( - [void Function(CompleteMultipartUploadOutputBuilder) updates]) = - _$CompleteMultipartUploadOutput; + factory CompleteMultipartUploadOutput.build([ + void Function(CompleteMultipartUploadOutputBuilder) updates, + ]) = _$CompleteMultipartUploadOutput; const CompleteMultipartUploadOutput._(); @@ -64,46 +65,47 @@ abstract class CompleteMultipartUploadOutput factory CompleteMultipartUploadOutput.fromResponse( CompleteMultipartUploadOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - CompleteMultipartUploadOutput.build((b) { - b.bucket = payload.bucket; - b.checksumCrc32 = payload.checksumCrc32; - b.checksumCrc32C = payload.checksumCrc32C; - b.checksumSha1 = payload.checksumSha1; - b.checksumSha256 = payload.checksumSha256; - b.eTag = payload.eTag; - b.key = payload.key; - b.location = payload.location; - if (response.headers['x-amz-expiration'] != null) { - b.expiration = response.headers['x-amz-expiration']!; - } - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => CompleteMultipartUploadOutput.build((b) { + b.bucket = payload.bucket; + b.checksumCrc32 = payload.checksumCrc32; + b.checksumCrc32C = payload.checksumCrc32C; + b.checksumSha1 = payload.checksumSha1; + b.checksumSha256 = payload.checksumSha256; + b.eTag = payload.eTag; + b.key = payload.key; + b.location = payload.location; + if (response.headers['x-amz-expiration'] != null) { + b.expiration = response.headers['x-amz-expiration']!; + } + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [CompleteMultipartUploadOutputRestXmlSerializer()]; + serializers = [CompleteMultipartUploadOutputRestXmlSerializer()]; /// The URI that identifies the newly created object. String? get location; @@ -175,95 +177,55 @@ abstract class CompleteMultipartUploadOutput @override List get props => [ - location, - bucket, - key, - expiration, - eTag, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - serverSideEncryption, - versionId, - ssekmsKeyId, - bucketKeyEnabled, - requestCharged, - ]; + location, + bucket, + key, + expiration, + eTag, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + serverSideEncryption, + versionId, + ssekmsKeyId, + bucketKeyEnabled, + requestCharged, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CompleteMultipartUploadOutput') - ..add( - 'location', - location, - ) - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'expiration', - expiration, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('CompleteMultipartUploadOutput') + ..add('location', location) + ..add('bucket', bucket) + ..add('key', key) + ..add('expiration', expiration) + ..add('eTag', eTag) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('serverSideEncryption', serverSideEncryption) + ..add('versionId', versionId) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestCharged', requestCharged); return helper.toString(); } } @_i3.internal abstract class CompleteMultipartUploadOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { - factory CompleteMultipartUploadOutputPayload( - [void Function(CompleteMultipartUploadOutputPayloadBuilder) - updates]) = _$CompleteMultipartUploadOutputPayload; + Built< + CompleteMultipartUploadOutputPayload, + CompleteMultipartUploadOutputPayloadBuilder + > { + factory CompleteMultipartUploadOutputPayload([ + void Function(CompleteMultipartUploadOutputPayloadBuilder) updates, + ]) = _$CompleteMultipartUploadOutputPayload; const CompleteMultipartUploadOutputPayload._(); @@ -294,76 +256,50 @@ abstract class CompleteMultipartUploadOutputPayload String? get location; @override List get props => [ - bucket, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - eTag, - key, - location, - ]; + bucket, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + eTag, + key, + location, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('CompleteMultipartUploadOutputPayload') - ..add( - 'bucket', - bucket, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'key', - key, - ) - ..add( - 'location', - location, - ); + ..add('bucket', bucket) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('eTag', eTag) + ..add('key', key) + ..add('location', location); return helper.toString(); } } -class CompleteMultipartUploadOutputRestXmlSerializer extends _i2 - .StructuredSmithySerializer { +class CompleteMultipartUploadOutputRestXmlSerializer + extends + _i2.StructuredSmithySerializer { const CompleteMultipartUploadOutputRestXmlSerializer() - : super('CompleteMultipartUploadOutput'); + : super('CompleteMultipartUploadOutput'); @override Iterable get types => const [ - CompleteMultipartUploadOutput, - _$CompleteMultipartUploadOutput, - CompleteMultipartUploadOutputPayload, - _$CompleteMultipartUploadOutputPayload, - ]; + CompleteMultipartUploadOutput, + _$CompleteMultipartUploadOutput, + CompleteMultipartUploadOutputPayload, + _$CompleteMultipartUploadOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CompleteMultipartUploadOutputPayload deserialize( @@ -382,45 +318,61 @@ class CompleteMultipartUploadOutputRestXmlSerializer extends _i2 } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32': - result.checksumCrc32 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32C': - result.checksumCrc32C = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32C = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA1': - result.checksumSha1 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha1 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA256': - result.checksumSha256 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha256 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Location': - result.location = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.location = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -437,7 +389,7 @@ class CompleteMultipartUploadOutputRestXmlSerializer extends _i2 const _i2.XmlElementName( 'CompleteMultipartUploadResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CompleteMultipartUploadOutputPayload( :bucket, @@ -447,71 +399,78 @@ class CompleteMultipartUploadOutputRestXmlSerializer extends _i2 :checksumSha256, :eTag, :key, - :location + :location, ) = object; if (bucket != null) { result$ ..add(const _i2.XmlElementName('Bucket')) - ..add(serializers.serialize( - bucket, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bucket, specifiedType: const FullType(String)), + ); } if (checksumCrc32 != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32')) - ..add(serializers.serialize( - checksumCrc32, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32, + specifiedType: const FullType(String), + ), + ); } if (checksumCrc32C != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32C')) - ..add(serializers.serialize( - checksumCrc32C, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32C, + specifiedType: const FullType(String), + ), + ); } if (checksumSha1 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA1')) - ..add(serializers.serialize( - checksumSha1, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha1, + specifiedType: const FullType(String), + ), + ); } if (checksumSha256 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA256')) - ..add(serializers.serialize( - checksumSha256, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha256, + specifiedType: const FullType(String), + ), + ); } if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (location != null) { result$ ..add(const _i2.XmlElementName('Location')) - ..add(serializers.serialize( - location, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + location, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.g.dart index bba02e33df..d0b2780b15 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_output.g.dart @@ -36,31 +36,31 @@ class _$CompleteMultipartUploadOutput extends CompleteMultipartUploadOutput { @override final RequestCharged? requestCharged; - factory _$CompleteMultipartUploadOutput( - [void Function(CompleteMultipartUploadOutputBuilder)? updates]) => - (new CompleteMultipartUploadOutputBuilder()..update(updates))._build(); - - _$CompleteMultipartUploadOutput._( - {this.location, - this.bucket, - this.key, - this.expiration, - this.eTag, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.serverSideEncryption, - this.versionId, - this.ssekmsKeyId, - this.bucketKeyEnabled, - this.requestCharged}) - : super._(); + factory _$CompleteMultipartUploadOutput([ + void Function(CompleteMultipartUploadOutputBuilder)? updates, + ]) => (new CompleteMultipartUploadOutputBuilder()..update(updates))._build(); + + _$CompleteMultipartUploadOutput._({ + this.location, + this.bucket, + this.key, + this.expiration, + this.eTag, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.serverSideEncryption, + this.versionId, + this.ssekmsKeyId, + this.bucketKeyEnabled, + this.requestCharged, + }) : super._(); @override CompleteMultipartUploadOutput rebuild( - void Function(CompleteMultipartUploadOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CompleteMultipartUploadOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CompleteMultipartUploadOutputBuilder toBuilder() => @@ -110,8 +110,10 @@ class _$CompleteMultipartUploadOutput extends CompleteMultipartUploadOutput { class CompleteMultipartUploadOutputBuilder implements - Builder { + Builder< + CompleteMultipartUploadOutput, + CompleteMultipartUploadOutputBuilder + > { _$CompleteMultipartUploadOutput? _$v; String? _location; @@ -216,7 +218,8 @@ class CompleteMultipartUploadOutputBuilder CompleteMultipartUploadOutput build() => _build(); _$CompleteMultipartUploadOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CompleteMultipartUploadOutput._( location: location, bucket: bucket, @@ -257,27 +260,27 @@ class _$CompleteMultipartUploadOutputPayload @override final String? location; - factory _$CompleteMultipartUploadOutputPayload( - [void Function(CompleteMultipartUploadOutputPayloadBuilder)? - updates]) => + factory _$CompleteMultipartUploadOutputPayload([ + void Function(CompleteMultipartUploadOutputPayloadBuilder)? updates, + ]) => (new CompleteMultipartUploadOutputPayloadBuilder()..update(updates)) ._build(); - _$CompleteMultipartUploadOutputPayload._( - {this.bucket, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.eTag, - this.key, - this.location}) - : super._(); + _$CompleteMultipartUploadOutputPayload._({ + this.bucket, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.eTag, + this.key, + this.location, + }) : super._(); @override CompleteMultipartUploadOutputPayload rebuild( - void Function(CompleteMultipartUploadOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CompleteMultipartUploadOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CompleteMultipartUploadOutputPayloadBuilder toBuilder() => @@ -315,8 +318,10 @@ class _$CompleteMultipartUploadOutputPayload class CompleteMultipartUploadOutputPayloadBuilder implements - Builder { + Builder< + CompleteMultipartUploadOutputPayload, + CompleteMultipartUploadOutputPayloadBuilder + > { _$CompleteMultipartUploadOutputPayload? _$v; String? _bucket; @@ -380,7 +385,8 @@ class CompleteMultipartUploadOutputPayloadBuilder @override void update( - void Function(CompleteMultipartUploadOutputPayloadBuilder)? updates) { + void Function(CompleteMultipartUploadOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -388,7 +394,8 @@ class CompleteMultipartUploadOutputPayloadBuilder CompleteMultipartUploadOutputPayload build() => _build(); _$CompleteMultipartUploadOutputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CompleteMultipartUploadOutputPayload._( bucket: bucket, checksumCrc32: checksumCrc32, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart index 73ca86cebc..0ee9c589d3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.dart @@ -19,8 +19,10 @@ abstract class CompleteMultipartUploadRequest _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + CompleteMultipartUploadRequest, + CompleteMultipartUploadRequestBuilder + >, _i1.HasPayload { factory CompleteMultipartUploadRequest({ required String bucket, @@ -54,9 +56,9 @@ abstract class CompleteMultipartUploadRequest ); } - factory CompleteMultipartUploadRequest.build( - [void Function(CompleteMultipartUploadRequestBuilder) updates]) = - _$CompleteMultipartUploadRequest; + factory CompleteMultipartUploadRequest.build([ + void Function(CompleteMultipartUploadRequestBuilder) updates, + ]) = _$CompleteMultipartUploadRequest; const CompleteMultipartUploadRequest._(); @@ -64,60 +66,57 @@ abstract class CompleteMultipartUploadRequest CompletedMultipartUpload? payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - CompleteMultipartUploadRequest.build((b) { - if (payload != null) { - b.multipartUpload.replace(payload); - } - if (request.headers['x-amz-checksum-crc32'] != null) { - b.checksumCrc32 = request.headers['x-amz-checksum-crc32']!; - } - if (request.headers['x-amz-checksum-crc32c'] != null) { - b.checksumCrc32C = request.headers['x-amz-checksum-crc32c']!; - } - if (request.headers['x-amz-checksum-sha1'] != null) { - b.checksumSha1 = request.headers['x-amz-checksum-sha1']!; - } - if (request.headers['x-amz-checksum-sha256'] != null) { - b.checksumSha256 = request.headers['x-amz-checksum-sha256']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.queryParameters['uploadId'] != null) { - b.uploadId = request.queryParameters['uploadId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => CompleteMultipartUploadRequest.build((b) { + if (payload != null) { + b.multipartUpload.replace(payload); + } + if (request.headers['x-amz-checksum-crc32'] != null) { + b.checksumCrc32 = request.headers['x-amz-checksum-crc32']!; + } + if (request.headers['x-amz-checksum-crc32c'] != null) { + b.checksumCrc32C = request.headers['x-amz-checksum-crc32c']!; + } + if (request.headers['x-amz-checksum-sha1'] != null) { + b.checksumSha1 = request.headers['x-amz-checksum-sha1']!; + } + if (request.headers['x-amz-checksum-sha256'] != null) { + b.checksumSha256 = request.headers['x-amz-checksum-sha256']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.queryParameters['uploadId'] != null) { + b.uploadId = request.queryParameters['uploadId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [CompleteMultipartUploadRequestRestXmlSerializer()]; + serializers = [CompleteMultipartUploadRequestRestXmlSerializer()]; /// Name of the bucket to which the multipart upload was initiated. /// @@ -181,10 +180,7 @@ abstract class CompleteMultipartUploadRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -193,76 +189,38 @@ abstract class CompleteMultipartUploadRequest @override List get props => [ - bucket, - key, - multipartUpload, - uploadId, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - requestPayer, - expectedBucketOwner, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - ]; + bucket, + key, + multipartUpload, + uploadId, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + requestPayer, + expectedBucketOwner, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CompleteMultipartUploadRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'multipartUpload', - multipartUpload, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ); + final helper = + newBuiltValueToStringHelper('CompleteMultipartUploadRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('multipartUpload', multipartUpload) + ..add('uploadId', uploadId) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5); return helper.toString(); } } @@ -270,21 +228,18 @@ abstract class CompleteMultipartUploadRequest class CompleteMultipartUploadRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const CompleteMultipartUploadRequestRestXmlSerializer() - : super('CompleteMultipartUploadRequest'); + : super('CompleteMultipartUploadRequest'); @override Iterable get types => const [ - CompleteMultipartUploadRequest, - _$CompleteMultipartUploadRequest, - ]; + CompleteMultipartUploadRequest, + _$CompleteMultipartUploadRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CompletedMultipartUpload deserialize( @@ -303,10 +258,13 @@ class CompleteMultipartUploadRequestRestXmlSerializer } switch (key) { case 'Part': - result.parts.add((serializers.deserialize( - value, - specifiedType: const FullType(CompletedPart), - ) as CompletedPart)); + result.parts.add( + (serializers.deserialize( + value, + specifiedType: const FullType(CompletedPart), + ) + as CompletedPart), + ); } } @@ -323,19 +281,19 @@ class CompleteMultipartUploadRequestRestXmlSerializer const _i1.XmlElementName( 'CompleteMultipartUpload', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CompletedMultipartUpload(:parts) = object; if (parts != null) { result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'Part').serialize( - serializers, - parts, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(CompletedPart)], + const _i1.XmlBuiltListSerializer(memberName: 'Part').serialize( + serializers, + parts, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(CompletedPart), + ]), ), - )); + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.g.dart index ca120a07ed..cd1ac83727 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/complete_multipart_upload_request.g.dart @@ -34,37 +34,46 @@ class _$CompleteMultipartUploadRequest extends CompleteMultipartUploadRequest { @override final String? sseCustomerKeyMd5; - factory _$CompleteMultipartUploadRequest( - [void Function(CompleteMultipartUploadRequestBuilder)? updates]) => - (new CompleteMultipartUploadRequestBuilder()..update(updates))._build(); + factory _$CompleteMultipartUploadRequest([ + void Function(CompleteMultipartUploadRequestBuilder)? updates, + ]) => (new CompleteMultipartUploadRequestBuilder()..update(updates))._build(); - _$CompleteMultipartUploadRequest._( - {required this.bucket, - required this.key, - this.multipartUpload, - required this.uploadId, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.requestPayer, - this.expectedBucketOwner, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5}) - : super._() { + _$CompleteMultipartUploadRequest._({ + required this.bucket, + required this.key, + this.multipartUpload, + required this.uploadId, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.requestPayer, + this.expectedBucketOwner, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'CompleteMultipartUploadRequest', 'bucket'); + bucket, + r'CompleteMultipartUploadRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - key, r'CompleteMultipartUploadRequest', 'key'); + key, + r'CompleteMultipartUploadRequest', + 'key', + ); BuiltValueNullFieldError.checkNotNull( - uploadId, r'CompleteMultipartUploadRequest', 'uploadId'); + uploadId, + r'CompleteMultipartUploadRequest', + 'uploadId', + ); } @override CompleteMultipartUploadRequest rebuild( - void Function(CompleteMultipartUploadRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CompleteMultipartUploadRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CompleteMultipartUploadRequestBuilder toBuilder() => @@ -112,8 +121,10 @@ class _$CompleteMultipartUploadRequest extends CompleteMultipartUploadRequest { class CompleteMultipartUploadRequestBuilder implements - Builder { + Builder< + CompleteMultipartUploadRequest, + CompleteMultipartUploadRequestBuilder + > { _$CompleteMultipartUploadRequest? _$v; String? _bucket; @@ -218,15 +229,25 @@ class CompleteMultipartUploadRequestBuilder _$CompleteMultipartUploadRequest _build() { _$CompleteMultipartUploadRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$CompleteMultipartUploadRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'CompleteMultipartUploadRequest', 'bucket'), + bucket, + r'CompleteMultipartUploadRequest', + 'bucket', + ), key: BuiltValueNullFieldError.checkNotNull( - key, r'CompleteMultipartUploadRequest', 'key'), + key, + r'CompleteMultipartUploadRequest', + 'key', + ), multipartUpload: _multipartUpload?.build(), uploadId: BuiltValueNullFieldError.checkNotNull( - uploadId, r'CompleteMultipartUploadRequest', 'uploadId'), + uploadId, + r'CompleteMultipartUploadRequest', + 'uploadId', + ), checksumCrc32: checksumCrc32, checksumCrc32C: checksumCrc32C, checksumSha1: checksumSha1, @@ -244,7 +265,10 @@ class CompleteMultipartUploadRequestBuilder _multipartUpload?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CompleteMultipartUploadRequest', _$failedField, e.toString()); + r'CompleteMultipartUploadRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.dart index 1cdff2f325..80bc4141f9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.dart @@ -20,18 +20,19 @@ abstract class CompletedMultipartUpload /// The container for the completed multipart upload details. factory CompletedMultipartUpload({List? parts}) { return _$CompletedMultipartUpload._( - parts: parts == null ? null : _i2.BuiltList(parts)); + parts: parts == null ? null : _i2.BuiltList(parts), + ); } /// The container for the completed multipart upload details. - factory CompletedMultipartUpload.build( - [void Function(CompletedMultipartUploadBuilder) updates]) = - _$CompletedMultipartUpload; + factory CompletedMultipartUpload.build([ + void Function(CompletedMultipartUploadBuilder) updates, + ]) = _$CompletedMultipartUpload; const CompletedMultipartUpload._(); static const List<_i3.SmithySerializer> - serializers = [CompletedMultipartUploadRestXmlSerializer()]; + serializers = [CompletedMultipartUploadRestXmlSerializer()]; /// Array of CompletedPart data types. /// @@ -43,10 +44,7 @@ abstract class CompletedMultipartUpload @override String toString() { final helper = newBuiltValueToStringHelper('CompletedMultipartUpload') - ..add( - 'parts', - parts, - ); + ..add('parts', parts); return helper.toString(); } } @@ -54,21 +52,18 @@ abstract class CompletedMultipartUpload class CompletedMultipartUploadRestXmlSerializer extends _i3.StructuredSmithySerializer { const CompletedMultipartUploadRestXmlSerializer() - : super('CompletedMultipartUpload'); + : super('CompletedMultipartUpload'); @override Iterable get types => const [ - CompletedMultipartUpload, - _$CompletedMultipartUpload, - ]; + CompletedMultipartUpload, + _$CompletedMultipartUpload, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CompletedMultipartUpload deserialize( @@ -87,10 +82,13 @@ class CompletedMultipartUploadRestXmlSerializer } switch (key) { case 'Part': - result.parts.add((serializers.deserialize( - value, - specifiedType: const FullType(CompletedPart), - ) as CompletedPart)); + result.parts.add( + (serializers.deserialize( + value, + specifiedType: const FullType(CompletedPart), + ) + as CompletedPart), + ); } } @@ -107,19 +105,19 @@ class CompletedMultipartUploadRestXmlSerializer const _i3.XmlElementName( 'CompletedMultipartUpload', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CompletedMultipartUpload(:parts) = object; if (parts != null) { result$.addAll( - const _i3.XmlBuiltListSerializer(memberName: 'Part').serialize( - serializers, - parts, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(CompletedPart)], + const _i3.XmlBuiltListSerializer(memberName: 'Part').serialize( + serializers, + parts, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(CompletedPart), + ]), ), - )); + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.g.dart index d413f5eb2f..669c96a692 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_multipart_upload.g.dart @@ -10,16 +10,16 @@ class _$CompletedMultipartUpload extends CompletedMultipartUpload { @override final _i2.BuiltList? parts; - factory _$CompletedMultipartUpload( - [void Function(CompletedMultipartUploadBuilder)? updates]) => - (new CompletedMultipartUploadBuilder()..update(updates))._build(); + factory _$CompletedMultipartUpload([ + void Function(CompletedMultipartUploadBuilder)? updates, + ]) => (new CompletedMultipartUploadBuilder()..update(updates))._build(); _$CompletedMultipartUpload._({this.parts}) : super._(); @override CompletedMultipartUpload rebuild( - void Function(CompletedMultipartUploadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CompletedMultipartUploadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CompletedMultipartUploadBuilder toBuilder() => @@ -78,10 +78,8 @@ class CompletedMultipartUploadBuilder _$CompletedMultipartUpload _build() { _$CompletedMultipartUpload _$result; try { - _$result = _$v ?? - new _$CompletedMultipartUpload._( - parts: _parts?.build(), - ); + _$result = + _$v ?? new _$CompletedMultipartUpload._(parts: _parts?.build()); } catch (_) { late String _$failedField; try { @@ -89,7 +87,10 @@ class CompletedMultipartUploadBuilder _parts?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CompletedMultipartUpload', _$failedField, e.toString()); + r'CompletedMultipartUpload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.dart index 184b455fa5..e1fc5d6147 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.dart @@ -40,7 +40,7 @@ abstract class CompletedPart const CompletedPart._(); static const List<_i2.SmithySerializer> serializers = [ - CompletedPartRestXmlSerializer() + CompletedPartRestXmlSerializer(), ]; /// Entity tag returned when the part was uploaded. @@ -66,41 +66,24 @@ abstract class CompletedPart int? get partNumber; @override List get props => [ - eTag, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - partNumber, - ]; + eTag, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + partNumber, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CompletedPart') - ..add( - 'eTag', - eTag, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'partNumber', - partNumber, - ); + final helper = + newBuiltValueToStringHelper('CompletedPart') + ..add('eTag', eTag) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('partNumber', partNumber); return helper.toString(); } } @@ -110,18 +93,12 @@ class CompletedPartRestXmlSerializer const CompletedPartRestXmlSerializer() : super('CompletedPart'); @override - Iterable get types => const [ - CompletedPart, - _$CompletedPart, - ]; + Iterable get types => const [CompletedPart, _$CompletedPart]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CompletedPart deserialize( @@ -140,35 +117,47 @@ class CompletedPartRestXmlSerializer } switch (key) { case 'ChecksumCRC32': - result.checksumCrc32 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32C': - result.checksumCrc32C = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32C = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA1': - result.checksumSha1 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha1 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA256': - result.checksumSha256 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha256 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'PartNumber': - result.partNumber = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.partNumber = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); } } @@ -185,7 +174,7 @@ class CompletedPartRestXmlSerializer const _i2.XmlElementName( 'CompletedPart', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CompletedPart( :checksumCrc32, @@ -193,55 +182,61 @@ class CompletedPartRestXmlSerializer :checksumSha1, :checksumSha256, :eTag, - :partNumber + :partNumber, ) = object; if (checksumCrc32 != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32')) - ..add(serializers.serialize( - checksumCrc32, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32, + specifiedType: const FullType(String), + ), + ); } if (checksumCrc32C != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32C')) - ..add(serializers.serialize( - checksumCrc32C, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32C, + specifiedType: const FullType(String), + ), + ); } if (checksumSha1 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA1')) - ..add(serializers.serialize( - checksumSha1, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha1, + specifiedType: const FullType(String), + ), + ); } if (checksumSha256 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA256')) - ..add(serializers.serialize( - checksumSha256, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha256, + specifiedType: const FullType(String), + ), + ); } if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (partNumber != null) { result$ ..add(const _i2.XmlElementName('PartNumber')) - ..add(serializers.serialize( - partNumber, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(partNumber, specifiedType: const FullType(int)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.g.dart index 906c0c57c0..f9c25a48f8 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/completed_part.g.dart @@ -23,14 +23,14 @@ class _$CompletedPart extends CompletedPart { factory _$CompletedPart([void Function(CompletedPartBuilder)? updates]) => (new CompletedPartBuilder()..update(updates))._build(); - _$CompletedPart._( - {this.eTag, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.partNumber}) - : super._(); + _$CompletedPart._({ + this.eTag, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.partNumber, + }) : super._(); @override CompletedPart rebuild(void Function(CompletedPartBuilder) updates) => @@ -127,7 +127,8 @@ class CompletedPartBuilder CompletedPart build() => _build(); _$CompletedPart _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CompletedPart._( eTag: eTag, checksumCrc32: checksumCrc32, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/compression_type.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/compression_type.dart index f6c1d6a554..d833f293d3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/compression_type.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/compression_type.dart @@ -6,31 +6,15 @@ library amplify_storage_s3_dart.s3.model.compression_type; // ignore_for_file: n import 'package:smithy/smithy.dart' as _i1; class CompressionType extends _i1.SmithyEnum { - const CompressionType._( - super.index, - super.name, - super.value, - ); + const CompressionType._(super.index, super.name, super.value); const CompressionType._sdkUnknown(super.value) : super.sdkUnknown(); - static const bzip2 = CompressionType._( - 0, - 'BZIP2', - 'BZIP2', - ); + static const bzip2 = CompressionType._(0, 'BZIP2', 'BZIP2'); - static const gzip = CompressionType._( - 1, - 'GZIP', - 'GZIP', - ); + static const gzip = CompressionType._(1, 'GZIP', 'GZIP'); - static const none = CompressionType._( - 2, - 'NONE', - 'NONE', - ); + static const none = CompressionType._(2, 'NONE', 'NONE'); /// All values of [CompressionType]. static const values = [ @@ -45,12 +29,9 @@ class CompressionType extends _i1.SmithyEnum { values: values, sdkUnknown: CompressionType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.dart index 0ad239ab7d..1198286a5e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.dart @@ -19,13 +19,14 @@ abstract class ContinuationEvent return _$ContinuationEvent._(); } - factory ContinuationEvent.build( - [void Function(ContinuationEventBuilder) updates]) = _$ContinuationEvent; + factory ContinuationEvent.build([ + void Function(ContinuationEventBuilder) updates, + ]) = _$ContinuationEvent; const ContinuationEvent._(); static const List<_i2.SmithySerializer> serializers = [ - ContinuationEventRestXmlSerializer() + ContinuationEventRestXmlSerializer(), ]; @override @@ -43,18 +44,12 @@ class ContinuationEventRestXmlSerializer const ContinuationEventRestXmlSerializer() : super('ContinuationEvent'); @override - Iterable get types => const [ - ContinuationEvent, - _$ContinuationEvent, - ]; + Iterable get types => const [ContinuationEvent, _$ContinuationEvent]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ContinuationEvent deserialize( @@ -75,7 +70,7 @@ class ContinuationEventRestXmlSerializer const _i2.XmlElementName( 'ContinuationEvent', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.g.dart index a11729687e..f10828a573 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/continuation_event.g.dart @@ -7,9 +7,9 @@ part of 'continuation_event.dart'; // ************************************************************************** class _$ContinuationEvent extends ContinuationEvent { - factory _$ContinuationEvent( - [void Function(ContinuationEventBuilder)? updates]) => - (new ContinuationEventBuilder()..update(updates))._build(); + factory _$ContinuationEvent([ + void Function(ContinuationEventBuilder)? updates, + ]) => (new ContinuationEventBuilder()..update(updates))._build(); _$ContinuationEvent._() : super._(); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.dart index 57fa0c2c86..a516948053 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.dart @@ -46,8 +46,9 @@ abstract class CopyObjectOutput ); } - factory CopyObjectOutput.build( - [void Function(CopyObjectOutputBuilder) updates]) = _$CopyObjectOutput; + factory CopyObjectOutput.build([ + void Function(CopyObjectOutputBuilder) updates, + ]) = _$CopyObjectOutput; const CopyObjectOutput._(); @@ -55,60 +56,59 @@ abstract class CopyObjectOutput factory CopyObjectOutput.fromResponse( CopyObjectResult? payload, _i1.AWSBaseHttpResponse response, - ) => - CopyObjectOutput.build((b) { - if (payload != null) { - b.copyObjectResult.replace(payload); - } - if (response.headers['x-amz-expiration'] != null) { - b.expiration = response.headers['x-amz-expiration']!; - } - if (response.headers['x-amz-copy-source-version-id'] != null) { - b.copySourceVersionId = - response.headers['x-amz-copy-source-version-id']!; - } - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = response - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = response - .headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response.headers['x-amz-server-side-encryption-context'] != null) { - b.ssekmsEncryptionContext = - response.headers['x-amz-server-side-encryption-context']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => CopyObjectOutput.build((b) { + if (payload != null) { + b.copyObjectResult.replace(payload); + } + if (response.headers['x-amz-expiration'] != null) { + b.expiration = response.headers['x-amz-expiration']!; + } + if (response.headers['x-amz-copy-source-version-id'] != null) { + b.copySourceVersionId = response.headers['x-amz-copy-source-version-id']!; + } + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + response.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + response.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-context'] != null) { + b.ssekmsEncryptionContext = + response.headers['x-amz-server-side-encryption-context']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> serializers = [ - CopyObjectOutputRestXmlSerializer() + CopyObjectOutputRestXmlSerializer(), ]; /// Container for all response elements. @@ -168,66 +168,34 @@ abstract class CopyObjectOutput @override List get props => [ - copyObjectResult, - expiration, - copySourceVersionId, - versionId, - serverSideEncryption, - sseCustomerAlgorithm, - sseCustomerKeyMd5, - ssekmsKeyId, - ssekmsEncryptionContext, - bucketKeyEnabled, - requestCharged, - ]; + copyObjectResult, + expiration, + copySourceVersionId, + versionId, + serverSideEncryption, + sseCustomerAlgorithm, + sseCustomerKeyMd5, + ssekmsKeyId, + ssekmsEncryptionContext, + bucketKeyEnabled, + requestCharged, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CopyObjectOutput') - ..add( - 'copyObjectResult', - copyObjectResult, - ) - ..add( - 'expiration', - expiration, - ) - ..add( - 'copySourceVersionId', - copySourceVersionId, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'ssekmsEncryptionContext', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('CopyObjectOutput') + ..add('copyObjectResult', copyObjectResult) + ..add('expiration', expiration) + ..add('copySourceVersionId', copySourceVersionId) + ..add('versionId', versionId) + ..add('serverSideEncryption', serverSideEncryption) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('ssekmsEncryptionContext', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestCharged', requestCharged); return helper.toString(); } } @@ -237,18 +205,12 @@ class CopyObjectOutputRestXmlSerializer const CopyObjectOutputRestXmlSerializer() : super('CopyObjectOutput'); @override - Iterable get types => const [ - CopyObjectOutput, - _$CopyObjectOutput, - ]; + Iterable get types => const [CopyObjectOutput, _$CopyObjectOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectResult deserialize( @@ -267,35 +229,47 @@ class CopyObjectOutputRestXmlSerializer } switch (key) { case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'ChecksumCRC32': - result.checksumCrc32 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32C': - result.checksumCrc32C = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32C = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA1': - result.checksumSha1 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha1 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA256': - result.checksumSha256 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha256 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -312,7 +286,7 @@ class CopyObjectOutputRestXmlSerializer const _i2.XmlElementName( 'CopyObjectResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CopyObjectResult( :eTag, @@ -320,55 +294,64 @@ class CopyObjectOutputRestXmlSerializer :checksumCrc32, :checksumCrc32C, :checksumSha1, - :checksumSha256 + :checksumSha256, ) = object; if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i2.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } if (checksumCrc32 != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32')) - ..add(serializers.serialize( - checksumCrc32, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32, + specifiedType: const FullType(String), + ), + ); } if (checksumCrc32C != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32C')) - ..add(serializers.serialize( - checksumCrc32C, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32C, + specifiedType: const FullType(String), + ), + ); } if (checksumSha1 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA1')) - ..add(serializers.serialize( - checksumSha1, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha1, + specifiedType: const FullType(String), + ), + ); } if (checksumSha256 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA256')) - ..add(serializers.serialize( - checksumSha256, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha256, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.g.dart index 3569448f94..08d8daad22 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_output.g.dart @@ -30,23 +30,23 @@ class _$CopyObjectOutput extends CopyObjectOutput { @override final RequestCharged? requestCharged; - factory _$CopyObjectOutput( - [void Function(CopyObjectOutputBuilder)? updates]) => - (new CopyObjectOutputBuilder()..update(updates))._build(); - - _$CopyObjectOutput._( - {this.copyObjectResult, - this.expiration, - this.copySourceVersionId, - this.versionId, - this.serverSideEncryption, - this.sseCustomerAlgorithm, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.ssekmsEncryptionContext, - this.bucketKeyEnabled, - this.requestCharged}) - : super._(); + factory _$CopyObjectOutput([ + void Function(CopyObjectOutputBuilder)? updates, + ]) => (new CopyObjectOutputBuilder()..update(updates))._build(); + + _$CopyObjectOutput._({ + this.copyObjectResult, + this.expiration, + this.copySourceVersionId, + this.versionId, + this.serverSideEncryption, + this.sseCustomerAlgorithm, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.ssekmsEncryptionContext, + this.bucketKeyEnabled, + this.requestCharged, + }) : super._(); @override CopyObjectOutput rebuild(void Function(CopyObjectOutputBuilder) updates) => @@ -188,7 +188,8 @@ class CopyObjectOutputBuilder _$CopyObjectOutput _build() { _$CopyObjectOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$CopyObjectOutput._( copyObjectResult: _copyObjectResult?.build(), expiration: expiration, @@ -209,7 +210,10 @@ class CopyObjectOutputBuilder _copyObjectResult?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CopyObjectOutput', _$failedField, e.toString()); + r'CopyObjectOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart index 75a3c105c7..6360c27221 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.dart @@ -117,8 +117,9 @@ abstract class CopyObjectRequest ); } - factory CopyObjectRequest.build( - [void Function(CopyObjectRequestBuilder) updates]) = _$CopyObjectRequest; + factory CopyObjectRequest.build([ + void Function(CopyObjectRequestBuilder) updates, + ]) = _$CopyObjectRequest; const CopyObjectRequest._(); @@ -126,188 +127,196 @@ abstract class CopyObjectRequest CopyObjectRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - CopyObjectRequest.build((b) { - if (request.headers['x-amz-acl'] != null) { - b.acl = ObjectCannedAcl.values.byValue(request.headers['x-amz-acl']!); - } - if (request.headers['Cache-Control'] != null) { - b.cacheControl = request.headers['Cache-Control']!; - } - if (request.headers['x-amz-checksum-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-checksum-algorithm']!); - } - if (request.headers['Content-Disposition'] != null) { - b.contentDisposition = request.headers['Content-Disposition']!; - } - if (request.headers['Content-Encoding'] != null) { - b.contentEncoding = request.headers['Content-Encoding']!; - } - if (request.headers['Content-Language'] != null) { - b.contentLanguage = request.headers['Content-Language']!; - } - if (request.headers['Content-Type'] != null) { - b.contentType = request.headers['Content-Type']!; - } - if (request.headers['x-amz-copy-source'] != null) { - b.copySource = request.headers['x-amz-copy-source']!; - } - if (request.headers['x-amz-copy-source-if-match'] != null) { - b.copySourceIfMatch = request.headers['x-amz-copy-source-if-match']!; - } - if (request.headers['x-amz-copy-source-if-modified-since'] != null) { - b.copySourceIfModifiedSince = _i1.Timestamp.parse( + }) => CopyObjectRequest.build((b) { + if (request.headers['x-amz-acl'] != null) { + b.acl = ObjectCannedAcl.values.byValue(request.headers['x-amz-acl']!); + } + if (request.headers['Cache-Control'] != null) { + b.cacheControl = request.headers['Cache-Control']!; + } + if (request.headers['x-amz-checksum-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-checksum-algorithm']!, + ); + } + if (request.headers['Content-Disposition'] != null) { + b.contentDisposition = request.headers['Content-Disposition']!; + } + if (request.headers['Content-Encoding'] != null) { + b.contentEncoding = request.headers['Content-Encoding']!; + } + if (request.headers['Content-Language'] != null) { + b.contentLanguage = request.headers['Content-Language']!; + } + if (request.headers['Content-Type'] != null) { + b.contentType = request.headers['Content-Type']!; + } + if (request.headers['x-amz-copy-source'] != null) { + b.copySource = request.headers['x-amz-copy-source']!; + } + if (request.headers['x-amz-copy-source-if-match'] != null) { + b.copySourceIfMatch = request.headers['x-amz-copy-source-if-match']!; + } + if (request.headers['x-amz-copy-source-if-modified-since'] != null) { + b.copySourceIfModifiedSince = + _i1.Timestamp.parse( request.headers['x-amz-copy-source-if-modified-since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['x-amz-copy-source-if-none-match'] != null) { - b.copySourceIfNoneMatch = - request.headers['x-amz-copy-source-if-none-match']!; - } - if (request.headers['x-amz-copy-source-if-unmodified-since'] != null) { - b.copySourceIfUnmodifiedSince = _i1.Timestamp.parse( + } + if (request.headers['x-amz-copy-source-if-none-match'] != null) { + b.copySourceIfNoneMatch = + request.headers['x-amz-copy-source-if-none-match']!; + } + if (request.headers['x-amz-copy-source-if-unmodified-since'] != null) { + b.copySourceIfUnmodifiedSince = + _i1.Timestamp.parse( request.headers['x-amz-copy-source-if-unmodified-since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['Expires'] != null) { - b.expires = _i1.Timestamp.parse( + } + if (request.headers['Expires'] != null) { + b.expires = + _i1.Timestamp.parse( request.headers['Expires']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['x-amz-grant-full-control'] != null) { - b.grantFullControl = request.headers['x-amz-grant-full-control']!; - } - if (request.headers['x-amz-grant-read'] != null) { - b.grantRead = request.headers['x-amz-grant-read']!; - } - if (request.headers['x-amz-grant-read-acp'] != null) { - b.grantReadAcp = request.headers['x-amz-grant-read-acp']!; - } - if (request.headers['x-amz-grant-write-acp'] != null) { - b.grantWriteAcp = request.headers['x-amz-grant-write-acp']!; - } - if (request.headers['x-amz-metadata-directive'] != null) { - b.metadataDirective = MetadataDirective.values - .byValue(request.headers['x-amz-metadata-directive']!); - } - if (request.headers['x-amz-tagging-directive'] != null) { - b.taggingDirective = TaggingDirective.values - .byValue(request.headers['x-amz-tagging-directive']!); - } - if (request.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(request.headers['x-amz-server-side-encryption']!); - } - if (request.headers['x-amz-storage-class'] != null) { - b.storageClass = StorageClass.values - .byValue(request.headers['x-amz-storage-class']!); - } - if (request.headers['x-amz-website-redirect-location'] != null) { - b.websiteRedirectLocation = - request.headers['x-amz-website-redirect-location']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - request.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (request.headers['x-amz-server-side-encryption-context'] != null) { - b.ssekmsEncryptionContext = - request.headers['x-amz-server-side-encryption-context']!; - } - if (request - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = request.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-algorithm'] != - null) { - b.copySourceSseCustomerAlgorithm = request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-algorithm']!; - } - if (request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key'] != - null) { - b.copySourceSseCustomerKey = request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key']!; - } - if (request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key-MD5'] != - null) { - b.copySourceSseCustomerKeyMd5 = request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-tagging'] != null) { - b.tagging = request.headers['x-amz-tagging']!; - } - if (request.headers['x-amz-object-lock-mode'] != null) { - b.objectLockMode = ObjectLockMode.values - .byValue(request.headers['x-amz-object-lock-mode']!); - } - if (request.headers['x-amz-object-lock-retain-until-date'] != null) { - b.objectLockRetainUntilDate = _i1.Timestamp.parse( + } + if (request.headers['x-amz-grant-full-control'] != null) { + b.grantFullControl = request.headers['x-amz-grant-full-control']!; + } + if (request.headers['x-amz-grant-read'] != null) { + b.grantRead = request.headers['x-amz-grant-read']!; + } + if (request.headers['x-amz-grant-read-acp'] != null) { + b.grantReadAcp = request.headers['x-amz-grant-read-acp']!; + } + if (request.headers['x-amz-grant-write-acp'] != null) { + b.grantWriteAcp = request.headers['x-amz-grant-write-acp']!; + } + if (request.headers['x-amz-metadata-directive'] != null) { + b.metadataDirective = MetadataDirective.values.byValue( + request.headers['x-amz-metadata-directive']!, + ); + } + if (request.headers['x-amz-tagging-directive'] != null) { + b.taggingDirective = TaggingDirective.values.byValue( + request.headers['x-amz-tagging-directive']!, + ); + } + if (request.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + request.headers['x-amz-server-side-encryption']!, + ); + } + if (request.headers['x-amz-storage-class'] != null) { + b.storageClass = StorageClass.values.byValue( + request.headers['x-amz-storage-class']!, + ); + } + if (request.headers['x-amz-website-redirect-location'] != null) { + b.websiteRedirectLocation = + request.headers['x-amz-website-redirect-location']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + request.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (request.headers['x-amz-server-side-encryption-context'] != null) { + b.ssekmsEncryptionContext = + request.headers['x-amz-server-side-encryption-context']!; + } + if (request.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + request.headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (request + .headers['x-amz-copy-source-server-side-encryption-customer-algorithm'] != + null) { + b.copySourceSseCustomerAlgorithm = + request + .headers['x-amz-copy-source-server-side-encryption-customer-algorithm']!; + } + if (request + .headers['x-amz-copy-source-server-side-encryption-customer-key'] != + null) { + b.copySourceSseCustomerKey = + request + .headers['x-amz-copy-source-server-side-encryption-customer-key']!; + } + if (request + .headers['x-amz-copy-source-server-side-encryption-customer-key-MD5'] != + null) { + b.copySourceSseCustomerKeyMd5 = + request + .headers['x-amz-copy-source-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-tagging'] != null) { + b.tagging = request.headers['x-amz-tagging']!; + } + if (request.headers['x-amz-object-lock-mode'] != null) { + b.objectLockMode = ObjectLockMode.values.byValue( + request.headers['x-amz-object-lock-mode']!, + ); + } + if (request.headers['x-amz-object-lock-retain-until-date'] != null) { + b.objectLockRetainUntilDate = + _i1.Timestamp.parse( request.headers['x-amz-object-lock-retain-until-date']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.headers['x-amz-object-lock-legal-hold'] != null) { - b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values - .byValue(request.headers['x-amz-object-lock-legal-hold']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-source-expected-bucket-owner'] != null) { - b.expectedSourceBucketOwner = - request.headers['x-amz-source-expected-bucket-owner']!; - } - b.metadata.addEntries(request.headers.entries - .where((el) => el.key.startsWith('x-amz-meta-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'x-amz-meta-', - '', - ), - el.value, - ))); - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + } + if (request.headers['x-amz-object-lock-legal-hold'] != null) { + b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values.byValue( + request.headers['x-amz-object-lock-legal-hold']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-source-expected-bucket-owner'] != null) { + b.expectedSourceBucketOwner = + request.headers['x-amz-source-expected-bucket-owner']!; + } + b.metadata.addEntries( + request.headers.entries + .where((el) => el.key.startsWith('x-amz-meta-')) + .map( + (el) => MapEntry(el.key.replaceFirst('x-amz-meta-', ''), el.value), + ), + ); + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [CopyObjectRequestRestXmlSerializer()]; + serializers = [CopyObjectRequestRestXmlSerializer()]; /// The canned access control list (ACL) to apply to the object. /// @@ -635,10 +644,7 @@ abstract class CopyObjectRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -646,216 +652,97 @@ abstract class CopyObjectRequest @override List get props => [ - acl, - bucket, - cacheControl, - checksumAlgorithm, - contentDisposition, - contentEncoding, - contentLanguage, - contentType, - copySource, - copySourceIfMatch, - copySourceIfModifiedSince, - copySourceIfNoneMatch, - copySourceIfUnmodifiedSince, - expires, - grantFullControl, - grantRead, - grantReadAcp, - grantWriteAcp, - key, - metadata, - metadataDirective, - taggingDirective, - serverSideEncryption, - storageClass, - websiteRedirectLocation, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - ssekmsKeyId, - ssekmsEncryptionContext, - bucketKeyEnabled, - copySourceSseCustomerAlgorithm, - copySourceSseCustomerKey, - copySourceSseCustomerKeyMd5, - requestPayer, - tagging, - objectLockMode, - objectLockRetainUntilDate, - objectLockLegalHoldStatus, - expectedBucketOwner, - expectedSourceBucketOwner, - ]; + acl, + bucket, + cacheControl, + checksumAlgorithm, + contentDisposition, + contentEncoding, + contentLanguage, + contentType, + copySource, + copySourceIfMatch, + copySourceIfModifiedSince, + copySourceIfNoneMatch, + copySourceIfUnmodifiedSince, + expires, + grantFullControl, + grantRead, + grantReadAcp, + grantWriteAcp, + key, + metadata, + metadataDirective, + taggingDirective, + serverSideEncryption, + storageClass, + websiteRedirectLocation, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + ssekmsKeyId, + ssekmsEncryptionContext, + bucketKeyEnabled, + copySourceSseCustomerAlgorithm, + copySourceSseCustomerKey, + copySourceSseCustomerKeyMd5, + requestPayer, + tagging, + objectLockMode, + objectLockRetainUntilDate, + objectLockLegalHoldStatus, + expectedBucketOwner, + expectedSourceBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CopyObjectRequest') - ..add( - 'acl', - acl, - ) - ..add( - 'bucket', - bucket, - ) - ..add( - 'cacheControl', - cacheControl, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'contentDisposition', - contentDisposition, - ) - ..add( - 'contentEncoding', - contentEncoding, - ) - ..add( - 'contentLanguage', - contentLanguage, - ) - ..add( - 'contentType', - contentType, - ) - ..add( - 'copySource', - copySource, - ) - ..add( - 'copySourceIfMatch', - copySourceIfMatch, - ) - ..add( - 'copySourceIfModifiedSince', - copySourceIfModifiedSince, - ) - ..add( - 'copySourceIfNoneMatch', - copySourceIfNoneMatch, - ) - ..add( - 'copySourceIfUnmodifiedSince', - copySourceIfUnmodifiedSince, - ) - ..add( - 'expires', - expires, - ) - ..add( - 'grantFullControl', - grantFullControl, - ) - ..add( - 'grantRead', - grantRead, - ) - ..add( - 'grantReadAcp', - grantReadAcp, - ) - ..add( - 'grantWriteAcp', - grantWriteAcp, - ) - ..add( - 'key', - key, - ) - ..add( - 'metadata', - metadata, - ) - ..add( - 'metadataDirective', - metadataDirective, - ) - ..add( - 'taggingDirective', - taggingDirective, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'websiteRedirectLocation', - websiteRedirectLocation, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'ssekmsEncryptionContext', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'copySourceSseCustomerAlgorithm', - copySourceSseCustomerAlgorithm, - ) - ..add( - 'copySourceSseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'copySourceSseCustomerKeyMd5', - copySourceSseCustomerKeyMd5, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'tagging', - tagging, - ) - ..add( - 'objectLockMode', - objectLockMode, - ) - ..add( - 'objectLockRetainUntilDate', - objectLockRetainUntilDate, - ) - ..add( - 'objectLockLegalHoldStatus', - objectLockLegalHoldStatus, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'expectedSourceBucketOwner', - expectedSourceBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('CopyObjectRequest') + ..add('acl', acl) + ..add('bucket', bucket) + ..add('cacheControl', cacheControl) + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('contentDisposition', contentDisposition) + ..add('contentEncoding', contentEncoding) + ..add('contentLanguage', contentLanguage) + ..add('contentType', contentType) + ..add('copySource', copySource) + ..add('copySourceIfMatch', copySourceIfMatch) + ..add('copySourceIfModifiedSince', copySourceIfModifiedSince) + ..add('copySourceIfNoneMatch', copySourceIfNoneMatch) + ..add('copySourceIfUnmodifiedSince', copySourceIfUnmodifiedSince) + ..add('expires', expires) + ..add('grantFullControl', grantFullControl) + ..add('grantRead', grantRead) + ..add('grantReadAcp', grantReadAcp) + ..add('grantWriteAcp', grantWriteAcp) + ..add('key', key) + ..add('metadata', metadata) + ..add('metadataDirective', metadataDirective) + ..add('taggingDirective', taggingDirective) + ..add('serverSideEncryption', serverSideEncryption) + ..add('storageClass', storageClass) + ..add('websiteRedirectLocation', websiteRedirectLocation) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('ssekmsEncryptionContext', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add( + 'copySourceSseCustomerAlgorithm', + copySourceSseCustomerAlgorithm, + ) + ..add('copySourceSseCustomerKey', '***SENSITIVE***') + ..add('copySourceSseCustomerKeyMd5', copySourceSseCustomerKeyMd5) + ..add('requestPayer', requestPayer) + ..add('tagging', tagging) + ..add('objectLockMode', objectLockMode) + ..add('objectLockRetainUntilDate', objectLockRetainUntilDate) + ..add('objectLockLegalHoldStatus', objectLockLegalHoldStatus) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('expectedSourceBucketOwner', expectedSourceBucketOwner); return helper.toString(); } } @@ -866,9 +753,9 @@ abstract class CopyObjectRequestPayload implements Built, _i1.EmptyPayload { - factory CopyObjectRequestPayload( - [void Function(CopyObjectRequestPayloadBuilder) updates]) = - _$CopyObjectRequestPayload; + factory CopyObjectRequestPayload([ + void Function(CopyObjectRequestPayloadBuilder) updates, + ]) = _$CopyObjectRequestPayload; const CopyObjectRequestPayload._(); @@ -888,19 +775,16 @@ class CopyObjectRequestRestXmlSerializer @override Iterable get types => const [ - CopyObjectRequest, - _$CopyObjectRequest, - CopyObjectRequestPayload, - _$CopyObjectRequestPayload, - ]; + CopyObjectRequest, + _$CopyObjectRequest, + CopyObjectRequestPayload, + _$CopyObjectRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectRequestPayload deserialize( @@ -921,7 +805,7 @@ class CopyObjectRequestRestXmlSerializer const _i1.XmlElementName( 'CopyObjectRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.g.dart index 5347248600..1bda97caa9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_request.g.dart @@ -90,57 +90,63 @@ class _$CopyObjectRequest extends CopyObjectRequest { @override final String? expectedSourceBucketOwner; - factory _$CopyObjectRequest( - [void Function(CopyObjectRequestBuilder)? updates]) => - (new CopyObjectRequestBuilder()..update(updates))._build(); - - _$CopyObjectRequest._( - {this.acl, - required this.bucket, - this.cacheControl, - this.checksumAlgorithm, - this.contentDisposition, - this.contentEncoding, - this.contentLanguage, - this.contentType, - required this.copySource, - this.copySourceIfMatch, - this.copySourceIfModifiedSince, - this.copySourceIfNoneMatch, - this.copySourceIfUnmodifiedSince, - this.expires, - this.grantFullControl, - this.grantRead, - this.grantReadAcp, - this.grantWriteAcp, - required this.key, - this.metadata, - this.metadataDirective, - this.taggingDirective, - this.serverSideEncryption, - this.storageClass, - this.websiteRedirectLocation, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.ssekmsEncryptionContext, - this.bucketKeyEnabled, - this.copySourceSseCustomerAlgorithm, - this.copySourceSseCustomerKey, - this.copySourceSseCustomerKeyMd5, - this.requestPayer, - this.tagging, - this.objectLockMode, - this.objectLockRetainUntilDate, - this.objectLockLegalHoldStatus, - this.expectedBucketOwner, - this.expectedSourceBucketOwner}) - : super._() { + factory _$CopyObjectRequest([ + void Function(CopyObjectRequestBuilder)? updates, + ]) => (new CopyObjectRequestBuilder()..update(updates))._build(); + + _$CopyObjectRequest._({ + this.acl, + required this.bucket, + this.cacheControl, + this.checksumAlgorithm, + this.contentDisposition, + this.contentEncoding, + this.contentLanguage, + this.contentType, + required this.copySource, + this.copySourceIfMatch, + this.copySourceIfModifiedSince, + this.copySourceIfNoneMatch, + this.copySourceIfUnmodifiedSince, + this.expires, + this.grantFullControl, + this.grantRead, + this.grantReadAcp, + this.grantWriteAcp, + required this.key, + this.metadata, + this.metadataDirective, + this.taggingDirective, + this.serverSideEncryption, + this.storageClass, + this.websiteRedirectLocation, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.ssekmsEncryptionContext, + this.bucketKeyEnabled, + this.copySourceSseCustomerAlgorithm, + this.copySourceSseCustomerKey, + this.copySourceSseCustomerKeyMd5, + this.requestPayer, + this.tagging, + this.objectLockMode, + this.objectLockRetainUntilDate, + this.objectLockLegalHoldStatus, + this.expectedBucketOwner, + this.expectedSourceBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'CopyObjectRequest', 'bucket'); + bucket, + r'CopyObjectRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - copySource, r'CopyObjectRequest', 'copySource'); + copySource, + r'CopyObjectRequest', + 'copySource', + ); BuiltValueNullFieldError.checkNotNull(key, r'CopyObjectRequest', 'key'); } @@ -441,8 +447,8 @@ class CopyObjectRequestBuilder ObjectLockLegalHoldStatus? get objectLockLegalHoldStatus => _$this._objectLockLegalHoldStatus; set objectLockLegalHoldStatus( - ObjectLockLegalHoldStatus? objectLockLegalHoldStatus) => - _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; + ObjectLockLegalHoldStatus? objectLockLegalHoldStatus, + ) => _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; String? _expectedBucketOwner; String? get expectedBucketOwner => _$this._expectedBucketOwner; @@ -522,11 +528,15 @@ class CopyObjectRequestBuilder _$CopyObjectRequest _build() { _$CopyObjectRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$CopyObjectRequest._( acl: acl, bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'CopyObjectRequest', 'bucket'), + bucket, + r'CopyObjectRequest', + 'bucket', + ), cacheControl: cacheControl, checksumAlgorithm: checksumAlgorithm, contentDisposition: contentDisposition, @@ -534,7 +544,10 @@ class CopyObjectRequestBuilder contentLanguage: contentLanguage, contentType: contentType, copySource: BuiltValueNullFieldError.checkNotNull( - copySource, r'CopyObjectRequest', 'copySource'), + copySource, + r'CopyObjectRequest', + 'copySource', + ), copySourceIfMatch: copySourceIfMatch, copySourceIfModifiedSince: copySourceIfModifiedSince, copySourceIfNoneMatch: copySourceIfNoneMatch, @@ -545,7 +558,10 @@ class CopyObjectRequestBuilder grantReadAcp: grantReadAcp, grantWriteAcp: grantWriteAcp, key: BuiltValueNullFieldError.checkNotNull( - key, r'CopyObjectRequest', 'key'), + key, + r'CopyObjectRequest', + 'key', + ), metadata: _metadata?.build(), metadataDirective: metadataDirective, taggingDirective: taggingDirective, @@ -576,7 +592,10 @@ class CopyObjectRequestBuilder _metadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CopyObjectRequest', _$failedField, e.toString()); + r'CopyObjectRequest', + _$failedField, + e.toString(), + ); } rethrow; } @@ -586,16 +605,16 @@ class CopyObjectRequestBuilder } class _$CopyObjectRequestPayload extends CopyObjectRequestPayload { - factory _$CopyObjectRequestPayload( - [void Function(CopyObjectRequestPayloadBuilder)? updates]) => - (new CopyObjectRequestPayloadBuilder()..update(updates))._build(); + factory _$CopyObjectRequestPayload([ + void Function(CopyObjectRequestPayloadBuilder)? updates, + ]) => (new CopyObjectRequestPayloadBuilder()..update(updates))._build(); _$CopyObjectRequestPayload._() : super._(); @override CopyObjectRequestPayload rebuild( - void Function(CopyObjectRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CopyObjectRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CopyObjectRequestPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.dart index 3dd80ecc57..c7ab0e1fee 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.dart @@ -34,13 +34,14 @@ abstract class CopyObjectResult } /// Container for all response elements. - factory CopyObjectResult.build( - [void Function(CopyObjectResultBuilder) updates]) = _$CopyObjectResult; + factory CopyObjectResult.build([ + void Function(CopyObjectResultBuilder) updates, + ]) = _$CopyObjectResult; const CopyObjectResult._(); static const List<_i2.SmithySerializer> serializers = [ - CopyObjectResultRestXmlSerializer() + CopyObjectResultRestXmlSerializer(), ]; /// Returns the ETag of the new object. The ETag reflects only changes to the contents of an object, not its metadata. @@ -62,41 +63,24 @@ abstract class CopyObjectResult String? get checksumSha256; @override List get props => [ - eTag, - lastModified, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - ]; + eTag, + lastModified, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CopyObjectResult') - ..add( - 'eTag', - eTag, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ); + final helper = + newBuiltValueToStringHelper('CopyObjectResult') + ..add('eTag', eTag) + ..add('lastModified', lastModified) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256); return helper.toString(); } } @@ -106,18 +90,12 @@ class CopyObjectResultRestXmlSerializer const CopyObjectResultRestXmlSerializer() : super('CopyObjectResult'); @override - Iterable get types => const [ - CopyObjectResult, - _$CopyObjectResult, - ]; + Iterable get types => const [CopyObjectResult, _$CopyObjectResult]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyObjectResult deserialize( @@ -136,35 +114,47 @@ class CopyObjectResultRestXmlSerializer } switch (key) { case 'ChecksumCRC32': - result.checksumCrc32 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32C': - result.checksumCrc32C = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32C = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA1': - result.checksumSha1 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha1 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA256': - result.checksumSha256 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha256 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -181,7 +171,7 @@ class CopyObjectResultRestXmlSerializer const _i2.XmlElementName( 'CopyObjectResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CopyObjectResult( :checksumCrc32, @@ -189,55 +179,64 @@ class CopyObjectResultRestXmlSerializer :checksumSha1, :checksumSha256, :eTag, - :lastModified + :lastModified, ) = object; if (checksumCrc32 != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32')) - ..add(serializers.serialize( - checksumCrc32, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32, + specifiedType: const FullType(String), + ), + ); } if (checksumCrc32C != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32C')) - ..add(serializers.serialize( - checksumCrc32C, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32C, + specifiedType: const FullType(String), + ), + ); } if (checksumSha1 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA1')) - ..add(serializers.serialize( - checksumSha1, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha1, + specifiedType: const FullType(String), + ), + ); } if (checksumSha256 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA256')) - ..add(serializers.serialize( - checksumSha256, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha256, + specifiedType: const FullType(String), + ), + ); } if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i2.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.g.dart index 298af3fb41..3f40293600 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_object_result.g.dart @@ -20,18 +20,18 @@ class _$CopyObjectResult extends CopyObjectResult { @override final String? checksumSha256; - factory _$CopyObjectResult( - [void Function(CopyObjectResultBuilder)? updates]) => - (new CopyObjectResultBuilder()..update(updates))._build(); - - _$CopyObjectResult._( - {this.eTag, - this.lastModified, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256}) - : super._(); + factory _$CopyObjectResult([ + void Function(CopyObjectResultBuilder)? updates, + ]) => (new CopyObjectResultBuilder()..update(updates))._build(); + + _$CopyObjectResult._({ + this.eTag, + this.lastModified, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + }) : super._(); @override CopyObjectResult rebuild(void Function(CopyObjectResultBuilder) updates) => @@ -130,7 +130,8 @@ class CopyObjectResultBuilder CopyObjectResult build() => _build(); _$CopyObjectResult _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CopyObjectResult._( eTag: eTag, lastModified: lastModified, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.dart index 5bdfa31110..ab9b1d5024 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.dart @@ -40,7 +40,7 @@ abstract class CopyPartResult const CopyPartResult._(); static const List<_i2.SmithySerializer> serializers = [ - CopyPartResultRestXmlSerializer() + CopyPartResultRestXmlSerializer(), ]; /// Entity tag of the object. @@ -62,41 +62,24 @@ abstract class CopyPartResult String? get checksumSha256; @override List get props => [ - eTag, - lastModified, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - ]; + eTag, + lastModified, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CopyPartResult') - ..add( - 'eTag', - eTag, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ); + final helper = + newBuiltValueToStringHelper('CopyPartResult') + ..add('eTag', eTag) + ..add('lastModified', lastModified) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256); return helper.toString(); } } @@ -106,18 +89,12 @@ class CopyPartResultRestXmlSerializer const CopyPartResultRestXmlSerializer() : super('CopyPartResult'); @override - Iterable get types => const [ - CopyPartResult, - _$CopyPartResult, - ]; + Iterable get types => const [CopyPartResult, _$CopyPartResult]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyPartResult deserialize( @@ -136,35 +113,47 @@ class CopyPartResultRestXmlSerializer } switch (key) { case 'ChecksumCRC32': - result.checksumCrc32 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32C': - result.checksumCrc32C = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32C = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA1': - result.checksumSha1 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha1 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA256': - result.checksumSha256 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha256 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -181,7 +170,7 @@ class CopyPartResultRestXmlSerializer const _i2.XmlElementName( 'CopyPartResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CopyPartResult( :checksumCrc32, @@ -189,55 +178,64 @@ class CopyPartResultRestXmlSerializer :checksumSha1, :checksumSha256, :eTag, - :lastModified + :lastModified, ) = object; if (checksumCrc32 != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32')) - ..add(serializers.serialize( - checksumCrc32, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32, + specifiedType: const FullType(String), + ), + ); } if (checksumCrc32C != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32C')) - ..add(serializers.serialize( - checksumCrc32C, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32C, + specifiedType: const FullType(String), + ), + ); } if (checksumSha1 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA1')) - ..add(serializers.serialize( - checksumSha1, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha1, + specifiedType: const FullType(String), + ), + ); } if (checksumSha256 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA256')) - ..add(serializers.serialize( - checksumSha256, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha256, + specifiedType: const FullType(String), + ), + ); } if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i2.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.g.dart index 16a761fe4f..690eaa290c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/copy_part_result.g.dart @@ -23,14 +23,14 @@ class _$CopyPartResult extends CopyPartResult { factory _$CopyPartResult([void Function(CopyPartResultBuilder)? updates]) => (new CopyPartResultBuilder()..update(updates))._build(); - _$CopyPartResult._( - {this.eTag, - this.lastModified, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256}) - : super._(); + _$CopyPartResult._({ + this.eTag, + this.lastModified, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + }) : super._(); @override CopyPartResult rebuild(void Function(CopyPartResultBuilder) updates) => @@ -129,7 +129,8 @@ class CopyPartResultBuilder CopyPartResult build() => _build(); _$CopyPartResult _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CopyPartResult._( eTag: eTag, lastModified: lastModified, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart index fe827147df..acfb597a58 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.dart @@ -51,9 +51,9 @@ abstract class CreateMultipartUploadOutput ); } - factory CreateMultipartUploadOutput.build( - [void Function(CreateMultipartUploadOutputBuilder) updates]) = - _$CreateMultipartUploadOutput; + factory CreateMultipartUploadOutput.build([ + void Function(CreateMultipartUploadOutputBuilder) updates, + ]) = _$CreateMultipartUploadOutput; const CreateMultipartUploadOutput._(); @@ -61,63 +61,65 @@ abstract class CreateMultipartUploadOutput factory CreateMultipartUploadOutput.fromResponse( CreateMultipartUploadOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - CreateMultipartUploadOutput.build((b) { - b.bucket = payload.bucket; - b.key = payload.key; - b.uploadId = payload.uploadId; - if (response.headers['x-amz-abort-date'] != null) { - b.abortDate = _i2.Timestamp.parse( + ) => CreateMultipartUploadOutput.build((b) { + b.bucket = payload.bucket; + b.key = payload.key; + b.uploadId = payload.uploadId; + if (response.headers['x-amz-abort-date'] != null) { + b.abortDate = + _i2.Timestamp.parse( response.headers['x-amz-abort-date']!, format: _i2.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['x-amz-abort-rule-id'] != null) { - b.abortRuleId = response.headers['x-amz-abort-rule-id']!; - } - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = response - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = response - .headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response.headers['x-amz-server-side-encryption-context'] != null) { - b.ssekmsEncryptionContext = - response.headers['x-amz-server-side-encryption-context']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - if (response.headers['x-amz-checksum-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(response.headers['x-amz-checksum-algorithm']!); - } - }); + } + if (response.headers['x-amz-abort-rule-id'] != null) { + b.abortRuleId = response.headers['x-amz-abort-rule-id']!; + } + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + response.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + response.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-context'] != null) { + b.ssekmsEncryptionContext = + response.headers['x-amz-server-side-encryption-context']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + if (response.headers['x-amz-checksum-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + response.headers['x-amz-checksum-algorithm']!, + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [CreateMultipartUploadOutputRestXmlSerializer()]; + serializers = [CreateMultipartUploadOutputRestXmlSerializer()]; /// If the bucket has a lifecycle rule configured with an action to abort incomplete multipart uploads and the prefix in the lifecycle rule matches the object name in the request, the response includes this header. The header indicates when the initiated multipart upload becomes eligible for an abort operation. For more information, see [Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) in the _Amazon S3 User Guide_. /// @@ -189,90 +191,53 @@ abstract class CreateMultipartUploadOutput @override List get props => [ - abortDate, - abortRuleId, - bucket, - key, - uploadId, - serverSideEncryption, - sseCustomerAlgorithm, - sseCustomerKeyMd5, - ssekmsKeyId, - ssekmsEncryptionContext, - bucketKeyEnabled, - requestCharged, - checksumAlgorithm, - ]; + abortDate, + abortRuleId, + bucket, + key, + uploadId, + serverSideEncryption, + sseCustomerAlgorithm, + sseCustomerKeyMd5, + ssekmsKeyId, + ssekmsEncryptionContext, + bucketKeyEnabled, + requestCharged, + checksumAlgorithm, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CreateMultipartUploadOutput') - ..add( - 'abortDate', - abortDate, - ) - ..add( - 'abortRuleId', - abortRuleId, - ) - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'ssekmsEncryptionContext', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestCharged', - requestCharged, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ); + final helper = + newBuiltValueToStringHelper('CreateMultipartUploadOutput') + ..add('abortDate', abortDate) + ..add('abortRuleId', abortRuleId) + ..add('bucket', bucket) + ..add('key', key) + ..add('uploadId', uploadId) + ..add('serverSideEncryption', serverSideEncryption) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('ssekmsEncryptionContext', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestCharged', requestCharged) + ..add('checksumAlgorithm', checksumAlgorithm); return helper.toString(); } } @_i3.internal abstract class CreateMultipartUploadOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { - factory CreateMultipartUploadOutputPayload( - [void Function(CreateMultipartUploadOutputPayloadBuilder) updates]) = - _$CreateMultipartUploadOutputPayload; + Built< + CreateMultipartUploadOutputPayload, + CreateMultipartUploadOutputPayloadBuilder + > { + factory CreateMultipartUploadOutputPayload([ + void Function(CreateMultipartUploadOutputPayloadBuilder) updates, + ]) = _$CreateMultipartUploadOutputPayload; const CreateMultipartUploadOutputPayload._(); @@ -287,28 +252,15 @@ abstract class CreateMultipartUploadOutputPayload /// ID for the initiated multipart upload. String? get uploadId; @override - List get props => [ - bucket, - key, - uploadId, - ]; + List get props => [bucket, key, uploadId]; @override String toString() { final helper = newBuiltValueToStringHelper('CreateMultipartUploadOutputPayload') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'uploadId', - uploadId, - ); + ..add('bucket', bucket) + ..add('key', key) + ..add('uploadId', uploadId); return helper.toString(); } } @@ -316,23 +268,20 @@ abstract class CreateMultipartUploadOutputPayload class CreateMultipartUploadOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const CreateMultipartUploadOutputRestXmlSerializer() - : super('CreateMultipartUploadOutput'); + : super('CreateMultipartUploadOutput'); @override Iterable get types => const [ - CreateMultipartUploadOutput, - _$CreateMultipartUploadOutput, - CreateMultipartUploadOutputPayload, - _$CreateMultipartUploadOutputPayload, - ]; + CreateMultipartUploadOutput, + _$CreateMultipartUploadOutput, + CreateMultipartUploadOutputPayload, + _$CreateMultipartUploadOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CreateMultipartUploadOutputPayload deserialize( @@ -351,20 +300,26 @@ class CreateMultipartUploadOutputRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UploadId': - result.uploadId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.uploadId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -381,32 +336,32 @@ class CreateMultipartUploadOutputRestXmlSerializer const _i2.XmlElementName( 'InitiateMultipartUploadResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CreateMultipartUploadOutputPayload(:bucket, :key, :uploadId) = object; if (bucket != null) { result$ ..add(const _i2.XmlElementName('Bucket')) - ..add(serializers.serialize( - bucket, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bucket, specifiedType: const FullType(String)), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (uploadId != null) { result$ ..add(const _i2.XmlElementName('UploadId')) - ..add(serializers.serialize( - uploadId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + uploadId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.g.dart index 4fa128c67e..f31e1a44d8 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_output.g.dart @@ -34,30 +34,30 @@ class _$CreateMultipartUploadOutput extends CreateMultipartUploadOutput { @override final ChecksumAlgorithm? checksumAlgorithm; - factory _$CreateMultipartUploadOutput( - [void Function(CreateMultipartUploadOutputBuilder)? updates]) => - (new CreateMultipartUploadOutputBuilder()..update(updates))._build(); - - _$CreateMultipartUploadOutput._( - {this.abortDate, - this.abortRuleId, - this.bucket, - this.key, - this.uploadId, - this.serverSideEncryption, - this.sseCustomerAlgorithm, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.ssekmsEncryptionContext, - this.bucketKeyEnabled, - this.requestCharged, - this.checksumAlgorithm}) - : super._(); + factory _$CreateMultipartUploadOutput([ + void Function(CreateMultipartUploadOutputBuilder)? updates, + ]) => (new CreateMultipartUploadOutputBuilder()..update(updates))._build(); + + _$CreateMultipartUploadOutput._({ + this.abortDate, + this.abortRuleId, + this.bucket, + this.key, + this.uploadId, + this.serverSideEncryption, + this.sseCustomerAlgorithm, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.ssekmsEncryptionContext, + this.bucketKeyEnabled, + this.requestCharged, + this.checksumAlgorithm, + }) : super._(); @override CreateMultipartUploadOutput rebuild( - void Function(CreateMultipartUploadOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CreateMultipartUploadOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CreateMultipartUploadOutputBuilder toBuilder() => @@ -105,8 +105,10 @@ class _$CreateMultipartUploadOutput extends CreateMultipartUploadOutput { class CreateMultipartUploadOutputBuilder implements - Builder { + Builder< + CreateMultipartUploadOutput, + CreateMultipartUploadOutputBuilder + > { _$CreateMultipartUploadOutput? _$v; DateTime? _abortDate; @@ -207,7 +209,8 @@ class CreateMultipartUploadOutputBuilder CreateMultipartUploadOutput build() => _build(); _$CreateMultipartUploadOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CreateMultipartUploadOutput._( abortDate: abortDate, abortRuleId: abortRuleId, @@ -237,19 +240,19 @@ class _$CreateMultipartUploadOutputPayload @override final String? uploadId; - factory _$CreateMultipartUploadOutputPayload( - [void Function(CreateMultipartUploadOutputPayloadBuilder)? - updates]) => + factory _$CreateMultipartUploadOutputPayload([ + void Function(CreateMultipartUploadOutputPayloadBuilder)? updates, + ]) => (new CreateMultipartUploadOutputPayloadBuilder()..update(updates)) ._build(); _$CreateMultipartUploadOutputPayload._({this.bucket, this.key, this.uploadId}) - : super._(); + : super._(); @override CreateMultipartUploadOutputPayload rebuild( - void Function(CreateMultipartUploadOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CreateMultipartUploadOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CreateMultipartUploadOutputPayloadBuilder toBuilder() => @@ -277,8 +280,10 @@ class _$CreateMultipartUploadOutputPayload class CreateMultipartUploadOutputPayloadBuilder implements - Builder { + Builder< + CreateMultipartUploadOutputPayload, + CreateMultipartUploadOutputPayloadBuilder + > { _$CreateMultipartUploadOutputPayload? _$v; String? _bucket; @@ -314,7 +319,8 @@ class CreateMultipartUploadOutputPayloadBuilder @override void update( - void Function(CreateMultipartUploadOutputPayloadBuilder)? updates) { + void Function(CreateMultipartUploadOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -322,7 +328,8 @@ class CreateMultipartUploadOutputPayloadBuilder CreateMultipartUploadOutputPayload build() => _build(); _$CreateMultipartUploadOutputPayload _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CreateMultipartUploadOutputPayload._( bucket: bucket, key: key, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart index b0bb0c8600..66b88619a9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.dart @@ -24,8 +24,10 @@ abstract class CreateMultipartUploadRequest _i1.HttpInput, _i2.AWSEquatable implements - Built, + Built< + CreateMultipartUploadRequest, + CreateMultipartUploadRequestBuilder + >, _i1.EmptyPayload, _i1.HasPayload { factory CreateMultipartUploadRequest({ @@ -94,9 +96,9 @@ abstract class CreateMultipartUploadRequest ); } - factory CreateMultipartUploadRequest.build( - [void Function(CreateMultipartUploadRequestBuilder) updates]) = - _$CreateMultipartUploadRequest; + factory CreateMultipartUploadRequest.build([ + void Function(CreateMultipartUploadRequestBuilder) updates, + ]) = _$CreateMultipartUploadRequest; const CreateMultipartUploadRequest._(); @@ -104,136 +106,137 @@ abstract class CreateMultipartUploadRequest CreateMultipartUploadRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - CreateMultipartUploadRequest.build((b) { - if (request.headers['x-amz-acl'] != null) { - b.acl = ObjectCannedAcl.values.byValue(request.headers['x-amz-acl']!); - } - if (request.headers['Cache-Control'] != null) { - b.cacheControl = request.headers['Cache-Control']!; - } - if (request.headers['Content-Disposition'] != null) { - b.contentDisposition = request.headers['Content-Disposition']!; - } - if (request.headers['Content-Encoding'] != null) { - b.contentEncoding = request.headers['Content-Encoding']!; - } - if (request.headers['Content-Language'] != null) { - b.contentLanguage = request.headers['Content-Language']!; - } - if (request.headers['Content-Type'] != null) { - b.contentType = request.headers['Content-Type']!; - } - if (request.headers['Expires'] != null) { - b.expires = _i1.Timestamp.parse( + }) => CreateMultipartUploadRequest.build((b) { + if (request.headers['x-amz-acl'] != null) { + b.acl = ObjectCannedAcl.values.byValue(request.headers['x-amz-acl']!); + } + if (request.headers['Cache-Control'] != null) { + b.cacheControl = request.headers['Cache-Control']!; + } + if (request.headers['Content-Disposition'] != null) { + b.contentDisposition = request.headers['Content-Disposition']!; + } + if (request.headers['Content-Encoding'] != null) { + b.contentEncoding = request.headers['Content-Encoding']!; + } + if (request.headers['Content-Language'] != null) { + b.contentLanguage = request.headers['Content-Language']!; + } + if (request.headers['Content-Type'] != null) { + b.contentType = request.headers['Content-Type']!; + } + if (request.headers['Expires'] != null) { + b.expires = + _i1.Timestamp.parse( request.headers['Expires']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['x-amz-grant-full-control'] != null) { - b.grantFullControl = request.headers['x-amz-grant-full-control']!; - } - if (request.headers['x-amz-grant-read'] != null) { - b.grantRead = request.headers['x-amz-grant-read']!; - } - if (request.headers['x-amz-grant-read-acp'] != null) { - b.grantReadAcp = request.headers['x-amz-grant-read-acp']!; - } - if (request.headers['x-amz-grant-write-acp'] != null) { - b.grantWriteAcp = request.headers['x-amz-grant-write-acp']!; - } - if (request.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(request.headers['x-amz-server-side-encryption']!); - } - if (request.headers['x-amz-storage-class'] != null) { - b.storageClass = StorageClass.values - .byValue(request.headers['x-amz-storage-class']!); - } - if (request.headers['x-amz-website-redirect-location'] != null) { - b.websiteRedirectLocation = - request.headers['x-amz-website-redirect-location']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - request.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (request.headers['x-amz-server-side-encryption-context'] != null) { - b.ssekmsEncryptionContext = - request.headers['x-amz-server-side-encryption-context']!; - } - if (request - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = request.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-tagging'] != null) { - b.tagging = request.headers['x-amz-tagging']!; - } - if (request.headers['x-amz-object-lock-mode'] != null) { - b.objectLockMode = ObjectLockMode.values - .byValue(request.headers['x-amz-object-lock-mode']!); - } - if (request.headers['x-amz-object-lock-retain-until-date'] != null) { - b.objectLockRetainUntilDate = _i1.Timestamp.parse( + } + if (request.headers['x-amz-grant-full-control'] != null) { + b.grantFullControl = request.headers['x-amz-grant-full-control']!; + } + if (request.headers['x-amz-grant-read'] != null) { + b.grantRead = request.headers['x-amz-grant-read']!; + } + if (request.headers['x-amz-grant-read-acp'] != null) { + b.grantReadAcp = request.headers['x-amz-grant-read-acp']!; + } + if (request.headers['x-amz-grant-write-acp'] != null) { + b.grantWriteAcp = request.headers['x-amz-grant-write-acp']!; + } + if (request.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + request.headers['x-amz-server-side-encryption']!, + ); + } + if (request.headers['x-amz-storage-class'] != null) { + b.storageClass = StorageClass.values.byValue( + request.headers['x-amz-storage-class']!, + ); + } + if (request.headers['x-amz-website-redirect-location'] != null) { + b.websiteRedirectLocation = + request.headers['x-amz-website-redirect-location']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + request.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (request.headers['x-amz-server-side-encryption-context'] != null) { + b.ssekmsEncryptionContext = + request.headers['x-amz-server-side-encryption-context']!; + } + if (request.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + request.headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-tagging'] != null) { + b.tagging = request.headers['x-amz-tagging']!; + } + if (request.headers['x-amz-object-lock-mode'] != null) { + b.objectLockMode = ObjectLockMode.values.byValue( + request.headers['x-amz-object-lock-mode']!, + ); + } + if (request.headers['x-amz-object-lock-retain-until-date'] != null) { + b.objectLockRetainUntilDate = + _i1.Timestamp.parse( request.headers['x-amz-object-lock-retain-until-date']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.headers['x-amz-object-lock-legal-hold'] != null) { - b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values - .byValue(request.headers['x-amz-object-lock-legal-hold']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-checksum-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-checksum-algorithm']!); - } - b.metadata.addEntries(request.headers.entries - .where((el) => el.key.startsWith('x-amz-meta-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'x-amz-meta-', - '', - ), - el.value, - ))); - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + } + if (request.headers['x-amz-object-lock-legal-hold'] != null) { + b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values.byValue( + request.headers['x-amz-object-lock-legal-hold']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-checksum-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-checksum-algorithm']!, + ); + } + b.metadata.addEntries( + request.headers.entries + .where((el) => el.key.startsWith('x-amz-meta-')) + .map( + (el) => MapEntry(el.key.replaceFirst('x-amz-meta-', ''), el.value), + ), + ); + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [CreateMultipartUploadRequestRestXmlSerializer()]; + serializers = [CreateMultipartUploadRequestRestXmlSerializer()]; /// The canned ACL to apply to the object. Amazon S3 supports a set of predefined ACLs, known as _canned ACLs_. Each canned ACL has a predefined set of grantees and permissions. For more information, see [Canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL) in the _Amazon S3 User Guide_. /// @@ -540,10 +543,7 @@ abstract class CreateMultipartUploadRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -552,176 +552,88 @@ abstract class CreateMultipartUploadRequest @override List get props => [ - acl, - bucket, - cacheControl, - contentDisposition, - contentEncoding, - contentLanguage, - contentType, - expires, - grantFullControl, - grantRead, - grantReadAcp, - grantWriteAcp, - key, - metadata, - serverSideEncryption, - storageClass, - websiteRedirectLocation, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - ssekmsKeyId, - ssekmsEncryptionContext, - bucketKeyEnabled, - requestPayer, - tagging, - objectLockMode, - objectLockRetainUntilDate, - objectLockLegalHoldStatus, - expectedBucketOwner, - checksumAlgorithm, - ]; + acl, + bucket, + cacheControl, + contentDisposition, + contentEncoding, + contentLanguage, + contentType, + expires, + grantFullControl, + grantRead, + grantReadAcp, + grantWriteAcp, + key, + metadata, + serverSideEncryption, + storageClass, + websiteRedirectLocation, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + ssekmsKeyId, + ssekmsEncryptionContext, + bucketKeyEnabled, + requestPayer, + tagging, + objectLockMode, + objectLockRetainUntilDate, + objectLockLegalHoldStatus, + expectedBucketOwner, + checksumAlgorithm, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CreateMultipartUploadRequest') - ..add( - 'acl', - acl, - ) - ..add( - 'bucket', - bucket, - ) - ..add( - 'cacheControl', - cacheControl, - ) - ..add( - 'contentDisposition', - contentDisposition, - ) - ..add( - 'contentEncoding', - contentEncoding, - ) - ..add( - 'contentLanguage', - contentLanguage, - ) - ..add( - 'contentType', - contentType, - ) - ..add( - 'expires', - expires, - ) - ..add( - 'grantFullControl', - grantFullControl, - ) - ..add( - 'grantRead', - grantRead, - ) - ..add( - 'grantReadAcp', - grantReadAcp, - ) - ..add( - 'grantWriteAcp', - grantWriteAcp, - ) - ..add( - 'key', - key, - ) - ..add( - 'metadata', - metadata, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'websiteRedirectLocation', - websiteRedirectLocation, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'ssekmsEncryptionContext', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'tagging', - tagging, - ) - ..add( - 'objectLockMode', - objectLockMode, - ) - ..add( - 'objectLockRetainUntilDate', - objectLockRetainUntilDate, - ) - ..add( - 'objectLockLegalHoldStatus', - objectLockLegalHoldStatus, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ); + final helper = + newBuiltValueToStringHelper('CreateMultipartUploadRequest') + ..add('acl', acl) + ..add('bucket', bucket) + ..add('cacheControl', cacheControl) + ..add('contentDisposition', contentDisposition) + ..add('contentEncoding', contentEncoding) + ..add('contentLanguage', contentLanguage) + ..add('contentType', contentType) + ..add('expires', expires) + ..add('grantFullControl', grantFullControl) + ..add('grantRead', grantRead) + ..add('grantReadAcp', grantReadAcp) + ..add('grantWriteAcp', grantWriteAcp) + ..add('key', key) + ..add('metadata', metadata) + ..add('serverSideEncryption', serverSideEncryption) + ..add('storageClass', storageClass) + ..add('websiteRedirectLocation', websiteRedirectLocation) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('ssekmsEncryptionContext', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestPayer', requestPayer) + ..add('tagging', tagging) + ..add('objectLockMode', objectLockMode) + ..add('objectLockRetainUntilDate', objectLockRetainUntilDate) + ..add('objectLockLegalHoldStatus', objectLockLegalHoldStatus) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('checksumAlgorithm', checksumAlgorithm); return helper.toString(); } } @_i4.internal abstract class CreateMultipartUploadRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + CreateMultipartUploadRequestPayload, + CreateMultipartUploadRequestPayloadBuilder + >, _i1.EmptyPayload { - factory CreateMultipartUploadRequestPayload( - [void Function(CreateMultipartUploadRequestPayloadBuilder) updates]) = - _$CreateMultipartUploadRequestPayload; + factory CreateMultipartUploadRequestPayload([ + void Function(CreateMultipartUploadRequestPayloadBuilder) updates, + ]) = _$CreateMultipartUploadRequestPayload; const CreateMultipartUploadRequestPayload._(); @@ -730,32 +642,31 @@ abstract class CreateMultipartUploadRequestPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('CreateMultipartUploadRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'CreateMultipartUploadRequestPayload', + ); return helper.toString(); } } -class CreateMultipartUploadRequestRestXmlSerializer extends _i1 - .StructuredSmithySerializer { +class CreateMultipartUploadRequestRestXmlSerializer + extends + _i1.StructuredSmithySerializer { const CreateMultipartUploadRequestRestXmlSerializer() - : super('CreateMultipartUploadRequest'); + : super('CreateMultipartUploadRequest'); @override Iterable get types => const [ - CreateMultipartUploadRequest, - _$CreateMultipartUploadRequest, - CreateMultipartUploadRequestPayload, - _$CreateMultipartUploadRequestPayload, - ]; + CreateMultipartUploadRequest, + _$CreateMultipartUploadRequest, + CreateMultipartUploadRequestPayload, + _$CreateMultipartUploadRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CreateMultipartUploadRequestPayload deserialize( @@ -776,7 +687,7 @@ class CreateMultipartUploadRequestRestXmlSerializer extends _i1 const _i1.XmlElementName( 'CreateMultipartUploadRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.g.dart index 674ca7f9b3..80f26a6e45 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/create_multipart_upload_request.g.dart @@ -68,52 +68,58 @@ class _$CreateMultipartUploadRequest extends CreateMultipartUploadRequest { @override final ChecksumAlgorithm? checksumAlgorithm; - factory _$CreateMultipartUploadRequest( - [void Function(CreateMultipartUploadRequestBuilder)? updates]) => - (new CreateMultipartUploadRequestBuilder()..update(updates))._build(); - - _$CreateMultipartUploadRequest._( - {this.acl, - required this.bucket, - this.cacheControl, - this.contentDisposition, - this.contentEncoding, - this.contentLanguage, - this.contentType, - this.expires, - this.grantFullControl, - this.grantRead, - this.grantReadAcp, - this.grantWriteAcp, - required this.key, - this.metadata, - this.serverSideEncryption, - this.storageClass, - this.websiteRedirectLocation, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.ssekmsEncryptionContext, - this.bucketKeyEnabled, - this.requestPayer, - this.tagging, - this.objectLockMode, - this.objectLockRetainUntilDate, - this.objectLockLegalHoldStatus, - this.expectedBucketOwner, - this.checksumAlgorithm}) - : super._() { + factory _$CreateMultipartUploadRequest([ + void Function(CreateMultipartUploadRequestBuilder)? updates, + ]) => (new CreateMultipartUploadRequestBuilder()..update(updates))._build(); + + _$CreateMultipartUploadRequest._({ + this.acl, + required this.bucket, + this.cacheControl, + this.contentDisposition, + this.contentEncoding, + this.contentLanguage, + this.contentType, + this.expires, + this.grantFullControl, + this.grantRead, + this.grantReadAcp, + this.grantWriteAcp, + required this.key, + this.metadata, + this.serverSideEncryption, + this.storageClass, + this.websiteRedirectLocation, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.ssekmsEncryptionContext, + this.bucketKeyEnabled, + this.requestPayer, + this.tagging, + this.objectLockMode, + this.objectLockRetainUntilDate, + this.objectLockLegalHoldStatus, + this.expectedBucketOwner, + this.checksumAlgorithm, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'CreateMultipartUploadRequest', 'bucket'); + bucket, + r'CreateMultipartUploadRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - key, r'CreateMultipartUploadRequest', 'key'); + key, + r'CreateMultipartUploadRequest', + 'key', + ); } @override CreateMultipartUploadRequest rebuild( - void Function(CreateMultipartUploadRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CreateMultipartUploadRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CreateMultipartUploadRequestBuilder toBuilder() => @@ -195,8 +201,10 @@ class _$CreateMultipartUploadRequest extends CreateMultipartUploadRequest { class CreateMultipartUploadRequestBuilder implements - Builder { + Builder< + CreateMultipartUploadRequest, + CreateMultipartUploadRequestBuilder + > { _$CreateMultipartUploadRequest? _$v; ObjectCannedAcl? _acl; @@ -330,8 +338,8 @@ class CreateMultipartUploadRequestBuilder ObjectLockLegalHoldStatus? get objectLockLegalHoldStatus => _$this._objectLockLegalHoldStatus; set objectLockLegalHoldStatus( - ObjectLockLegalHoldStatus? objectLockLegalHoldStatus) => - _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; + ObjectLockLegalHoldStatus? objectLockLegalHoldStatus, + ) => _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; String? _expectedBucketOwner; String? get expectedBucketOwner => _$this._expectedBucketOwner; @@ -400,11 +408,15 @@ class CreateMultipartUploadRequestBuilder _$CreateMultipartUploadRequest _build() { _$CreateMultipartUploadRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$CreateMultipartUploadRequest._( acl: acl, bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'CreateMultipartUploadRequest', 'bucket'), + bucket, + r'CreateMultipartUploadRequest', + 'bucket', + ), cacheControl: cacheControl, contentDisposition: contentDisposition, contentEncoding: contentEncoding, @@ -416,7 +428,10 @@ class CreateMultipartUploadRequestBuilder grantReadAcp: grantReadAcp, grantWriteAcp: grantWriteAcp, key: BuiltValueNullFieldError.checkNotNull( - key, r'CreateMultipartUploadRequest', 'key'), + key, + r'CreateMultipartUploadRequest', + 'key', + ), metadata: _metadata?.build(), serverSideEncryption: serverSideEncryption, storageClass: storageClass, @@ -442,7 +457,10 @@ class CreateMultipartUploadRequestBuilder _metadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'CreateMultipartUploadRequest', _$failedField, e.toString()); + r'CreateMultipartUploadRequest', + _$failedField, + e.toString(), + ); } rethrow; } @@ -453,9 +471,9 @@ class CreateMultipartUploadRequestBuilder class _$CreateMultipartUploadRequestPayload extends CreateMultipartUploadRequestPayload { - factory _$CreateMultipartUploadRequestPayload( - [void Function(CreateMultipartUploadRequestPayloadBuilder)? - updates]) => + factory _$CreateMultipartUploadRequestPayload([ + void Function(CreateMultipartUploadRequestPayloadBuilder)? updates, + ]) => (new CreateMultipartUploadRequestPayloadBuilder()..update(updates)) ._build(); @@ -463,8 +481,8 @@ class _$CreateMultipartUploadRequestPayload @override CreateMultipartUploadRequestPayload rebuild( - void Function(CreateMultipartUploadRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(CreateMultipartUploadRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override CreateMultipartUploadRequestPayloadBuilder toBuilder() => @@ -484,8 +502,10 @@ class _$CreateMultipartUploadRequestPayload class CreateMultipartUploadRequestPayloadBuilder implements - Builder { + Builder< + CreateMultipartUploadRequestPayload, + CreateMultipartUploadRequestPayloadBuilder + > { _$CreateMultipartUploadRequestPayload? _$v; CreateMultipartUploadRequestPayloadBuilder(); @@ -498,7 +518,8 @@ class CreateMultipartUploadRequestPayloadBuilder @override void update( - void Function(CreateMultipartUploadRequestPayloadBuilder)? updates) { + void Function(CreateMultipartUploadRequestPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.dart index 9070bd7bde..bb3f0e2f90 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.dart @@ -42,7 +42,7 @@ abstract class CsvInput const CsvInput._(); static const List<_i2.SmithySerializer> serializers = [ - CsvInputRestXmlSerializer() + CsvInputRestXmlSerializer(), ]; /// Describes the first line of input. Valid values are: @@ -81,46 +81,26 @@ abstract class CsvInput bool? get allowQuotedRecordDelimiter; @override List get props => [ - fileHeaderInfo, - comments, - quoteEscapeCharacter, - recordDelimiter, - fieldDelimiter, - quoteCharacter, - allowQuotedRecordDelimiter, - ]; + fileHeaderInfo, + comments, + quoteEscapeCharacter, + recordDelimiter, + fieldDelimiter, + quoteCharacter, + allowQuotedRecordDelimiter, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CsvInput') - ..add( - 'fileHeaderInfo', - fileHeaderInfo, - ) - ..add( - 'comments', - comments, - ) - ..add( - 'quoteEscapeCharacter', - quoteEscapeCharacter, - ) - ..add( - 'recordDelimiter', - recordDelimiter, - ) - ..add( - 'fieldDelimiter', - fieldDelimiter, - ) - ..add( - 'quoteCharacter', - quoteCharacter, - ) - ..add( - 'allowQuotedRecordDelimiter', - allowQuotedRecordDelimiter, - ); + final helper = + newBuiltValueToStringHelper('CsvInput') + ..add('fileHeaderInfo', fileHeaderInfo) + ..add('comments', comments) + ..add('quoteEscapeCharacter', quoteEscapeCharacter) + ..add('recordDelimiter', recordDelimiter) + ..add('fieldDelimiter', fieldDelimiter) + ..add('quoteCharacter', quoteCharacter) + ..add('allowQuotedRecordDelimiter', allowQuotedRecordDelimiter); return helper.toString(); } } @@ -130,18 +110,12 @@ class CsvInputRestXmlSerializer const CsvInputRestXmlSerializer() : super('CsvInput'); @override - Iterable get types => const [ - CsvInput, - _$CsvInput, - ]; + Iterable get types => const [CsvInput, _$CsvInput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CsvInput deserialize( @@ -160,40 +134,54 @@ class CsvInputRestXmlSerializer } switch (key) { case 'AllowQuotedRecordDelimiter': - result.allowQuotedRecordDelimiter = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.allowQuotedRecordDelimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Comments': - result.comments = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.comments = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'FieldDelimiter': - result.fieldDelimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.fieldDelimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'FileHeaderInfo': - result.fileHeaderInfo = (serializers.deserialize( - value, - specifiedType: const FullType(FileHeaderInfo), - ) as FileHeaderInfo); + result.fileHeaderInfo = + (serializers.deserialize( + value, + specifiedType: const FullType(FileHeaderInfo), + ) + as FileHeaderInfo); case 'QuoteCharacter': - result.quoteCharacter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.quoteCharacter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'QuoteEscapeCharacter': - result.quoteEscapeCharacter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.quoteEscapeCharacter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'RecordDelimiter': - result.recordDelimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.recordDelimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -210,7 +198,7 @@ class CsvInputRestXmlSerializer const _i2.XmlElementName( 'CsvInput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CsvInput( :allowQuotedRecordDelimiter, @@ -219,63 +207,77 @@ class CsvInputRestXmlSerializer :fileHeaderInfo, :quoteCharacter, :quoteEscapeCharacter, - :recordDelimiter + :recordDelimiter, ) = object; if (allowQuotedRecordDelimiter != null) { result$ ..add(const _i2.XmlElementName('AllowQuotedRecordDelimiter')) - ..add(serializers.serialize( - allowQuotedRecordDelimiter, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + allowQuotedRecordDelimiter, + specifiedType: const FullType(bool), + ), + ); } if (comments != null) { result$ ..add(const _i2.XmlElementName('Comments')) - ..add(serializers.serialize( - comments, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + comments, + specifiedType: const FullType(String), + ), + ); } if (fieldDelimiter != null) { result$ ..add(const _i2.XmlElementName('FieldDelimiter')) - ..add(serializers.serialize( - fieldDelimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + fieldDelimiter, + specifiedType: const FullType(String), + ), + ); } if (fileHeaderInfo != null) { result$ ..add(const _i2.XmlElementName('FileHeaderInfo')) - ..add(serializers.serialize( - fileHeaderInfo, - specifiedType: const FullType(FileHeaderInfo), - )); + ..add( + serializers.serialize( + fileHeaderInfo, + specifiedType: const FullType(FileHeaderInfo), + ), + ); } if (quoteCharacter != null) { result$ ..add(const _i2.XmlElementName('QuoteCharacter')) - ..add(serializers.serialize( - quoteCharacter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + quoteCharacter, + specifiedType: const FullType(String), + ), + ); } if (quoteEscapeCharacter != null) { result$ ..add(const _i2.XmlElementName('QuoteEscapeCharacter')) - ..add(serializers.serialize( - quoteEscapeCharacter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + quoteEscapeCharacter, + specifiedType: const FullType(String), + ), + ); } if (recordDelimiter != null) { result$ ..add(const _i2.XmlElementName('RecordDelimiter')) - ..add(serializers.serialize( - recordDelimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + recordDelimiter, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.g.dart index 3d36f4ad03..95f5a7ce35 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_input.g.dart @@ -25,15 +25,15 @@ class _$CsvInput extends CsvInput { factory _$CsvInput([void Function(CsvInputBuilder)? updates]) => (new CsvInputBuilder()..update(updates))._build(); - _$CsvInput._( - {this.fileHeaderInfo, - this.comments, - this.quoteEscapeCharacter, - this.recordDelimiter, - this.fieldDelimiter, - this.quoteCharacter, - this.allowQuotedRecordDelimiter}) - : super._(); + _$CsvInput._({ + this.fileHeaderInfo, + this.comments, + this.quoteEscapeCharacter, + this.recordDelimiter, + this.fieldDelimiter, + this.quoteCharacter, + this.allowQuotedRecordDelimiter, + }) : super._(); @override CsvInput rebuild(void Function(CsvInputBuilder) updates) => @@ -139,7 +139,8 @@ class CsvInputBuilder implements Builder { CsvInput build() => _build(); _$CsvInput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CsvInput._( fileHeaderInfo: fileHeaderInfo, comments: comments, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.dart index 262cf84685..e2deb1dd8d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.dart @@ -39,7 +39,7 @@ abstract class CsvOutput const CsvOutput._(); static const List<_i2.SmithySerializer> serializers = [ - CsvOutputRestXmlSerializer() + CsvOutputRestXmlSerializer(), ]; /// Indicates whether to use quotation marks around output fields. @@ -62,36 +62,22 @@ abstract class CsvOutput String? get quoteCharacter; @override List get props => [ - quoteFields, - quoteEscapeCharacter, - recordDelimiter, - fieldDelimiter, - quoteCharacter, - ]; + quoteFields, + quoteEscapeCharacter, + recordDelimiter, + fieldDelimiter, + quoteCharacter, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('CsvOutput') - ..add( - 'quoteFields', - quoteFields, - ) - ..add( - 'quoteEscapeCharacter', - quoteEscapeCharacter, - ) - ..add( - 'recordDelimiter', - recordDelimiter, - ) - ..add( - 'fieldDelimiter', - fieldDelimiter, - ) - ..add( - 'quoteCharacter', - quoteCharacter, - ); + final helper = + newBuiltValueToStringHelper('CsvOutput') + ..add('quoteFields', quoteFields) + ..add('quoteEscapeCharacter', quoteEscapeCharacter) + ..add('recordDelimiter', recordDelimiter) + ..add('fieldDelimiter', fieldDelimiter) + ..add('quoteCharacter', quoteCharacter); return helper.toString(); } } @@ -101,18 +87,12 @@ class CsvOutputRestXmlSerializer const CsvOutputRestXmlSerializer() : super('CsvOutput'); @override - Iterable get types => const [ - CsvOutput, - _$CsvOutput, - ]; + Iterable get types => const [CsvOutput, _$CsvOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CsvOutput deserialize( @@ -131,30 +111,40 @@ class CsvOutputRestXmlSerializer } switch (key) { case 'FieldDelimiter': - result.fieldDelimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.fieldDelimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'QuoteCharacter': - result.quoteCharacter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.quoteCharacter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'QuoteEscapeCharacter': - result.quoteEscapeCharacter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.quoteEscapeCharacter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'QuoteFields': - result.quoteFields = (serializers.deserialize( - value, - specifiedType: const FullType(QuoteFields), - ) as QuoteFields); + result.quoteFields = + (serializers.deserialize( + value, + specifiedType: const FullType(QuoteFields), + ) + as QuoteFields); case 'RecordDelimiter': - result.recordDelimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.recordDelimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -171,54 +161,64 @@ class CsvOutputRestXmlSerializer const _i2.XmlElementName( 'CsvOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CsvOutput( :fieldDelimiter, :quoteCharacter, :quoteEscapeCharacter, :quoteFields, - :recordDelimiter + :recordDelimiter, ) = object; if (fieldDelimiter != null) { result$ ..add(const _i2.XmlElementName('FieldDelimiter')) - ..add(serializers.serialize( - fieldDelimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + fieldDelimiter, + specifiedType: const FullType(String), + ), + ); } if (quoteCharacter != null) { result$ ..add(const _i2.XmlElementName('QuoteCharacter')) - ..add(serializers.serialize( - quoteCharacter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + quoteCharacter, + specifiedType: const FullType(String), + ), + ); } if (quoteEscapeCharacter != null) { result$ ..add(const _i2.XmlElementName('QuoteEscapeCharacter')) - ..add(serializers.serialize( - quoteEscapeCharacter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + quoteEscapeCharacter, + specifiedType: const FullType(String), + ), + ); } if (quoteFields != null) { result$ ..add(const _i2.XmlElementName('QuoteFields')) - ..add(serializers.serialize( - quoteFields, - specifiedType: const FullType(QuoteFields), - )); + ..add( + serializers.serialize( + quoteFields, + specifiedType: const FullType(QuoteFields), + ), + ); } if (recordDelimiter != null) { result$ ..add(const _i2.XmlElementName('RecordDelimiter')) - ..add(serializers.serialize( - recordDelimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + recordDelimiter, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.g.dart index c345e59d2d..bfa3d0eae2 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/csv_output.g.dart @@ -21,13 +21,13 @@ class _$CsvOutput extends CsvOutput { factory _$CsvOutput([void Function(CsvOutputBuilder)? updates]) => (new CsvOutputBuilder()..update(updates))._build(); - _$CsvOutput._( - {this.quoteFields, - this.quoteEscapeCharacter, - this.recordDelimiter, - this.fieldDelimiter, - this.quoteCharacter}) - : super._(); + _$CsvOutput._({ + this.quoteFields, + this.quoteEscapeCharacter, + this.recordDelimiter, + this.fieldDelimiter, + this.quoteCharacter, + }) : super._(); @override CsvOutput rebuild(void Function(CsvOutputBuilder) updates) => @@ -118,7 +118,8 @@ class CsvOutputBuilder implements Builder { CsvOutput build() => _build(); _$CsvOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CsvOutput._( quoteFields: quoteFields, quoteEscapeCharacter: quoteEscapeCharacter, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.dart index ece0653835..ac2ddbabe0 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.dart @@ -17,14 +17,8 @@ abstract class Delete with _i1.AWSEquatable implements Built { /// Container for the objects to delete. - factory Delete({ - required List objects, - bool? quiet, - }) { - return _$Delete._( - objects: _i2.BuiltList(objects), - quiet: quiet, - ); + factory Delete({required List objects, bool? quiet}) { + return _$Delete._(objects: _i2.BuiltList(objects), quiet: quiet); } /// Container for the objects to delete. @@ -33,7 +27,7 @@ abstract class Delete const Delete._(); static const List<_i3.SmithySerializer> serializers = [ - DeleteRestXmlSerializer() + DeleteRestXmlSerializer(), ]; /// The object to delete. @@ -44,22 +38,14 @@ abstract class Delete /// Element to enable quiet mode for the request. When you add this element, you must set its value to `true`. bool? get quiet; @override - List get props => [ - objects, - quiet, - ]; + List get props => [objects, quiet]; @override String toString() { - final helper = newBuiltValueToStringHelper('Delete') - ..add( - 'objects', - objects, - ) - ..add( - 'quiet', - quiet, - ); + final helper = + newBuiltValueToStringHelper('Delete') + ..add('objects', objects) + ..add('quiet', quiet); return helper.toString(); } } @@ -68,18 +54,12 @@ class DeleteRestXmlSerializer extends _i3.StructuredSmithySerializer { const DeleteRestXmlSerializer() : super('Delete'); @override - Iterable get types => const [ - Delete, - _$Delete, - ]; + Iterable get types => const [Delete, _$Delete]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Delete deserialize( @@ -98,15 +78,20 @@ class DeleteRestXmlSerializer extends _i3.StructuredSmithySerializer { } switch (key) { case 'Object': - result.objects.add((serializers.deserialize( - value, - specifiedType: const FullType(ObjectIdentifier), - ) as ObjectIdentifier)); + result.objects.add( + (serializers.deserialize( + value, + specifiedType: const FullType(ObjectIdentifier), + ) + as ObjectIdentifier), + ); case 'Quiet': - result.quiet = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.quiet = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -123,25 +108,24 @@ class DeleteRestXmlSerializer extends _i3.StructuredSmithySerializer { const _i3.XmlElementName( 'Delete', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Delete(:objects, :quiet) = object; result$.addAll( - const _i3.XmlBuiltListSerializer(memberName: 'Object').serialize( - serializers, - objects, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(ObjectIdentifier)], + const _i3.XmlBuiltListSerializer(memberName: 'Object').serialize( + serializers, + objects, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(ObjectIdentifier), + ]), ), - )); + ); if (quiet != null) { result$ ..add(const _i3.XmlElementName('Quiet')) - ..add(serializers.serialize( - quiet, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(quiet, specifiedType: const FullType(bool)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.g.dart index cda5c038de..67b4a76794 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete.g.dart @@ -84,11 +84,7 @@ class DeleteBuilder implements Builder { _$Delete _build() { _$Delete _$result; try { - _$result = _$v ?? - new _$Delete._( - objects: objects.build(), - quiet: quiet, - ); + _$result = _$v ?? new _$Delete._(objects: objects.build(), quiet: quiet); } catch (_) { late String _$failedField; try { @@ -96,7 +92,10 @@ class DeleteBuilder implements Builder { objects.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'Delete', _$failedField, e.toString()); + r'Delete', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.dart index 27b8f41cc4..532bb905bf 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.dart @@ -30,9 +30,9 @@ abstract class DeleteObjectOutput ); } - factory DeleteObjectOutput.build( - [void Function(DeleteObjectOutputBuilder) updates]) = - _$DeleteObjectOutput; + factory DeleteObjectOutput.build([ + void Function(DeleteObjectOutputBuilder) updates, + ]) = _$DeleteObjectOutput; const DeleteObjectOutput._(); @@ -40,22 +40,22 @@ abstract class DeleteObjectOutput factory DeleteObjectOutput.fromResponse( DeleteObjectOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - DeleteObjectOutput.build((b) { - if (response.headers['x-amz-delete-marker'] != null) { - b.deleteMarker = response.headers['x-amz-delete-marker']! == 'true'; - } - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => DeleteObjectOutput.build((b) { + if (response.headers['x-amz-delete-marker'] != null) { + b.deleteMarker = response.headers['x-amz-delete-marker']! == 'true'; + } + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [DeleteObjectOutputRestXmlSerializer()]; + serializers = [DeleteObjectOutputRestXmlSerializer()]; /// Indicates whether the specified object version that was permanently deleted was (true) or was not (false) a delete marker before deletion. In a simple DELETE, this header indicates whether (true) or not (false) the current version of the object is a delete marker. /// @@ -75,27 +75,15 @@ abstract class DeleteObjectOutput DeleteObjectOutputPayload getPayload() => DeleteObjectOutputPayload(); @override - List get props => [ - deleteMarker, - versionId, - requestCharged, - ]; + List get props => [deleteMarker, versionId, requestCharged]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeleteObjectOutput') - ..add( - 'deleteMarker', - deleteMarker, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('DeleteObjectOutput') + ..add('deleteMarker', deleteMarker) + ..add('versionId', versionId) + ..add('requestCharged', requestCharged); return helper.toString(); } } @@ -106,9 +94,9 @@ abstract class DeleteObjectOutputPayload implements Built, _i2.EmptyPayload { - factory DeleteObjectOutputPayload( - [void Function(DeleteObjectOutputPayloadBuilder) updates]) = - _$DeleteObjectOutputPayload; + factory DeleteObjectOutputPayload([ + void Function(DeleteObjectOutputPayloadBuilder) updates, + ]) = _$DeleteObjectOutputPayload; const DeleteObjectOutputPayload._(); @@ -128,19 +116,16 @@ class DeleteObjectOutputRestXmlSerializer @override Iterable get types => const [ - DeleteObjectOutput, - _$DeleteObjectOutput, - DeleteObjectOutputPayload, - _$DeleteObjectOutputPayload, - ]; + DeleteObjectOutput, + _$DeleteObjectOutput, + DeleteObjectOutputPayload, + _$DeleteObjectOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectOutputPayload deserialize( @@ -161,7 +146,7 @@ class DeleteObjectOutputRestXmlSerializer const _i2.XmlElementName( 'DeleteObjectOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.g.dart index 0611360bbd..d160de10cd 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_output.g.dart @@ -14,18 +14,20 @@ class _$DeleteObjectOutput extends DeleteObjectOutput { @override final RequestCharged? requestCharged; - factory _$DeleteObjectOutput( - [void Function(DeleteObjectOutputBuilder)? updates]) => - (new DeleteObjectOutputBuilder()..update(updates))._build(); + factory _$DeleteObjectOutput([ + void Function(DeleteObjectOutputBuilder)? updates, + ]) => (new DeleteObjectOutputBuilder()..update(updates))._build(); - _$DeleteObjectOutput._( - {this.deleteMarker, this.versionId, this.requestCharged}) - : super._(); + _$DeleteObjectOutput._({ + this.deleteMarker, + this.versionId, + this.requestCharged, + }) : super._(); @override DeleteObjectOutput rebuild( - void Function(DeleteObjectOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectOutputBuilder toBuilder() => @@ -96,7 +98,8 @@ class DeleteObjectOutputBuilder DeleteObjectOutput build() => _build(); _$DeleteObjectOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DeleteObjectOutput._( deleteMarker: deleteMarker, versionId: versionId, @@ -108,16 +111,16 @@ class DeleteObjectOutputBuilder } class _$DeleteObjectOutputPayload extends DeleteObjectOutputPayload { - factory _$DeleteObjectOutputPayload( - [void Function(DeleteObjectOutputPayloadBuilder)? updates]) => - (new DeleteObjectOutputPayloadBuilder()..update(updates))._build(); + factory _$DeleteObjectOutputPayload([ + void Function(DeleteObjectOutputPayloadBuilder)? updates, + ]) => (new DeleteObjectOutputPayloadBuilder()..update(updates))._build(); _$DeleteObjectOutputPayload._() : super._(); @override DeleteObjectOutputPayload rebuild( - void Function(DeleteObjectOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectOutputPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart index c4e9dfc31c..269bd2c67b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.dart @@ -40,9 +40,9 @@ abstract class DeleteObjectRequest ); } - factory DeleteObjectRequest.build( - [void Function(DeleteObjectRequestBuilder) updates]) = - _$DeleteObjectRequest; + factory DeleteObjectRequest.build([ + void Function(DeleteObjectRequestBuilder) updates, + ]) = _$DeleteObjectRequest; const DeleteObjectRequest._(); @@ -50,36 +50,35 @@ abstract class DeleteObjectRequest DeleteObjectRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - DeleteObjectRequest.build((b) { - if (request.headers['x-amz-mfa'] != null) { - b.mfa = request.headers['x-amz-mfa']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-bypass-governance-retention'] != null) { - b.bypassGovernanceRetention = - request.headers['x-amz-bypass-governance-retention']! == 'true'; - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.queryParameters['versionId'] != null) { - b.versionId = request.queryParameters['versionId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => DeleteObjectRequest.build((b) { + if (request.headers['x-amz-mfa'] != null) { + b.mfa = request.headers['x-amz-mfa']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-bypass-governance-retention'] != null) { + b.bypassGovernanceRetention = + request.headers['x-amz-bypass-governance-retention']! == 'true'; + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.queryParameters['versionId'] != null) { + b.versionId = request.queryParameters['versionId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [DeleteObjectRequestRestXmlSerializer()]; + serializers = [DeleteObjectRequestRestXmlSerializer()]; /// The bucket name of the bucket containing the object. /// @@ -125,10 +124,7 @@ abstract class DeleteObjectRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -136,46 +132,26 @@ abstract class DeleteObjectRequest @override List get props => [ - bucket, - key, - mfa, - versionId, - requestPayer, - bypassGovernanceRetention, - expectedBucketOwner, - ]; + bucket, + key, + mfa, + versionId, + requestPayer, + bypassGovernanceRetention, + expectedBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeleteObjectRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'mfa', - mfa, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'bypassGovernanceRetention', - bypassGovernanceRetention, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('DeleteObjectRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('mfa', mfa) + ..add('versionId', versionId) + ..add('requestPayer', requestPayer) + ..add('bypassGovernanceRetention', bypassGovernanceRetention) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @@ -186,9 +162,9 @@ abstract class DeleteObjectRequestPayload implements Built, _i1.EmptyPayload { - factory DeleteObjectRequestPayload( - [void Function(DeleteObjectRequestPayloadBuilder) updates]) = - _$DeleteObjectRequestPayload; + factory DeleteObjectRequestPayload([ + void Function(DeleteObjectRequestPayloadBuilder) updates, + ]) = _$DeleteObjectRequestPayload; const DeleteObjectRequestPayload._(); @@ -208,19 +184,16 @@ class DeleteObjectRequestRestXmlSerializer @override Iterable get types => const [ - DeleteObjectRequest, - _$DeleteObjectRequest, - DeleteObjectRequestPayload, - _$DeleteObjectRequestPayload, - ]; + DeleteObjectRequest, + _$DeleteObjectRequest, + DeleteObjectRequestPayload, + _$DeleteObjectRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectRequestPayload deserialize( @@ -241,7 +214,7 @@ class DeleteObjectRequestRestXmlSerializer const _i1.XmlElementName( 'DeleteObjectRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.g.dart index b7d5c2f0c1..6fdcb2e2a9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_object_request.g.dart @@ -22,28 +22,31 @@ class _$DeleteObjectRequest extends DeleteObjectRequest { @override final String? expectedBucketOwner; - factory _$DeleteObjectRequest( - [void Function(DeleteObjectRequestBuilder)? updates]) => - (new DeleteObjectRequestBuilder()..update(updates))._build(); - - _$DeleteObjectRequest._( - {required this.bucket, - required this.key, - this.mfa, - this.versionId, - this.requestPayer, - this.bypassGovernanceRetention, - this.expectedBucketOwner}) - : super._() { + factory _$DeleteObjectRequest([ + void Function(DeleteObjectRequestBuilder)? updates, + ]) => (new DeleteObjectRequestBuilder()..update(updates))._build(); + + _$DeleteObjectRequest._({ + required this.bucket, + required this.key, + this.mfa, + this.versionId, + this.requestPayer, + this.bypassGovernanceRetention, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectRequest', 'bucket'); + bucket, + r'DeleteObjectRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull(key, r'DeleteObjectRequest', 'key'); } @override DeleteObjectRequest rebuild( - void Function(DeleteObjectRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectRequestBuilder toBuilder() => @@ -144,12 +147,19 @@ class DeleteObjectRequestBuilder DeleteObjectRequest build() => _build(); _$DeleteObjectRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DeleteObjectRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectRequest', 'bucket'), + bucket, + r'DeleteObjectRequest', + 'bucket', + ), key: BuiltValueNullFieldError.checkNotNull( - key, r'DeleteObjectRequest', 'key'), + key, + r'DeleteObjectRequest', + 'key', + ), mfa: mfa, versionId: versionId, requestPayer: requestPayer, @@ -162,16 +172,16 @@ class DeleteObjectRequestBuilder } class _$DeleteObjectRequestPayload extends DeleteObjectRequestPayload { - factory _$DeleteObjectRequestPayload( - [void Function(DeleteObjectRequestPayloadBuilder)? updates]) => - (new DeleteObjectRequestPayloadBuilder()..update(updates))._build(); + factory _$DeleteObjectRequestPayload([ + void Function(DeleteObjectRequestPayloadBuilder)? updates, + ]) => (new DeleteObjectRequestPayloadBuilder()..update(updates))._build(); _$DeleteObjectRequestPayload._() : super._(); @override DeleteObjectRequestPayload rebuild( - void Function(DeleteObjectRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectRequestPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.dart index 2bbe1df997..82da315caa 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.dart @@ -32,9 +32,9 @@ abstract class DeleteObjectsOutput ); } - factory DeleteObjectsOutput.build( - [void Function(DeleteObjectsOutputBuilder) updates]) = - _$DeleteObjectsOutput; + factory DeleteObjectsOutput.build([ + void Function(DeleteObjectsOutputBuilder) updates, + ]) = _$DeleteObjectsOutput; const DeleteObjectsOutput._(); @@ -42,22 +42,22 @@ abstract class DeleteObjectsOutput factory DeleteObjectsOutput.fromResponse( DeleteObjectsOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - DeleteObjectsOutput.build((b) { - if (payload.deleted != null) { - b.deleted.replace(payload.deleted!); - } - if (payload.errors != null) { - b.errors.replace(payload.errors!); - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => DeleteObjectsOutput.build((b) { + if (payload.deleted != null) { + b.deleted.replace(payload.deleted!); + } + if (payload.errors != null) { + b.errors.replace(payload.errors!); + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [DeleteObjectsOutputRestXmlSerializer()]; + serializers = [DeleteObjectsOutputRestXmlSerializer()]; /// Container element for a successful delete. It identifies the object that was successfully deleted. _i3.BuiltList? get deleted; @@ -71,36 +71,24 @@ abstract class DeleteObjectsOutput _i3.BuiltList? get errors; @override DeleteObjectsOutputPayload getPayload() => DeleteObjectsOutputPayload((b) { - if (deleted != null) { - b.deleted.replace(deleted!); - } - if (errors != null) { - b.errors.replace(errors!); - } - }); + if (deleted != null) { + b.deleted.replace(deleted!); + } + if (errors != null) { + b.errors.replace(errors!); + } + }); @override - List get props => [ - deleted, - requestCharged, - errors, - ]; + List get props => [deleted, requestCharged, errors]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeleteObjectsOutput') - ..add( - 'deleted', - deleted, - ) - ..add( - 'requestCharged', - requestCharged, - ) - ..add( - 'errors', - errors, - ); + final helper = + newBuiltValueToStringHelper('DeleteObjectsOutput') + ..add('deleted', deleted) + ..add('requestCharged', requestCharged) + ..add('errors', errors); return helper.toString(); } } @@ -110,9 +98,9 @@ abstract class DeleteObjectsOutputPayload with _i1.AWSEquatable implements Built { - factory DeleteObjectsOutputPayload( - [void Function(DeleteObjectsOutputPayloadBuilder) updates]) = - _$DeleteObjectsOutputPayload; + factory DeleteObjectsOutputPayload([ + void Function(DeleteObjectsOutputPayloadBuilder) updates, + ]) = _$DeleteObjectsOutputPayload; const DeleteObjectsOutputPayload._(); @@ -122,22 +110,14 @@ abstract class DeleteObjectsOutputPayload /// Container for a failed delete action that describes the object that Amazon S3 attempted to delete and the error it encountered. _i3.BuiltList? get errors; @override - List get props => [ - deleted, - errors, - ]; + List get props => [deleted, errors]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeleteObjectsOutputPayload') - ..add( - 'deleted', - deleted, - ) - ..add( - 'errors', - errors, - ); + final helper = + newBuiltValueToStringHelper('DeleteObjectsOutputPayload') + ..add('deleted', deleted) + ..add('errors', errors); return helper.toString(); } } @@ -148,19 +128,16 @@ class DeleteObjectsOutputRestXmlSerializer @override Iterable get types => const [ - DeleteObjectsOutput, - _$DeleteObjectsOutput, - DeleteObjectsOutputPayload, - _$DeleteObjectsOutputPayload, - ]; + DeleteObjectsOutput, + _$DeleteObjectsOutput, + DeleteObjectsOutputPayload, + _$DeleteObjectsOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeleteObjectsOutputPayload deserialize( @@ -179,15 +156,21 @@ class DeleteObjectsOutputRestXmlSerializer } switch (key) { case 'Deleted': - result.deleted.add((serializers.deserialize( - value, - specifiedType: const FullType(DeletedObject), - ) as DeletedObject)); + result.deleted.add( + (serializers.deserialize( + value, + specifiedType: const FullType(DeletedObject), + ) + as DeletedObject), + ); case 'Error': - result.errors.add((serializers.deserialize( - value, - specifiedType: const FullType(Error), - ) as Error)); + result.errors.add( + (serializers.deserialize( + value, + specifiedType: const FullType(Error), + ) + as Error), + ); } } @@ -204,30 +187,28 @@ class DeleteObjectsOutputRestXmlSerializer const _i2.XmlElementName( 'DeleteResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final DeleteObjectsOutputPayload(:deleted, :errors) = object; if (deleted != null) { result$.addAll( - const _i2.XmlBuiltListSerializer(memberName: 'Deleted').serialize( - serializers, - deleted, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(DeletedObject)], + const _i2.XmlBuiltListSerializer(memberName: 'Deleted').serialize( + serializers, + deleted, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(DeletedObject), + ]), ), - )); + ); } if (errors != null) { result$.addAll( - const _i2.XmlBuiltListSerializer(memberName: 'Error').serialize( - serializers, - errors, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(Error)], + const _i2.XmlBuiltListSerializer(memberName: 'Error').serialize( + serializers, + errors, + specifiedType: const FullType(_i3.BuiltList, [FullType(Error)]), ), - )); + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.g.dart index f358859f0a..072226838e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_output.g.dart @@ -14,17 +14,17 @@ class _$DeleteObjectsOutput extends DeleteObjectsOutput { @override final _i3.BuiltList? errors; - factory _$DeleteObjectsOutput( - [void Function(DeleteObjectsOutputBuilder)? updates]) => - (new DeleteObjectsOutputBuilder()..update(updates))._build(); + factory _$DeleteObjectsOutput([ + void Function(DeleteObjectsOutputBuilder)? updates, + ]) => (new DeleteObjectsOutputBuilder()..update(updates))._build(); _$DeleteObjectsOutput._({this.deleted, this.requestCharged, this.errors}) - : super._(); + : super._(); @override DeleteObjectsOutput rebuild( - void Function(DeleteObjectsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectsOutputBuilder toBuilder() => @@ -100,7 +100,8 @@ class DeleteObjectsOutputBuilder _$DeleteObjectsOutput _build() { _$DeleteObjectsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$DeleteObjectsOutput._( deleted: _deleted?.build(), requestCharged: requestCharged, @@ -116,7 +117,10 @@ class DeleteObjectsOutputBuilder _errors?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'DeleteObjectsOutput', _$failedField, e.toString()); + r'DeleteObjectsOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -131,16 +135,16 @@ class _$DeleteObjectsOutputPayload extends DeleteObjectsOutputPayload { @override final _i3.BuiltList? errors; - factory _$DeleteObjectsOutputPayload( - [void Function(DeleteObjectsOutputPayloadBuilder)? updates]) => - (new DeleteObjectsOutputPayloadBuilder()..update(updates))._build(); + factory _$DeleteObjectsOutputPayload([ + void Function(DeleteObjectsOutputPayloadBuilder)? updates, + ]) => (new DeleteObjectsOutputPayloadBuilder()..update(updates))._build(); _$DeleteObjectsOutputPayload._({this.deleted, this.errors}) : super._(); @override DeleteObjectsOutputPayload rebuild( - void Function(DeleteObjectsOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectsOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectsOutputPayloadBuilder toBuilder() => @@ -209,7 +213,8 @@ class DeleteObjectsOutputPayloadBuilder _$DeleteObjectsOutputPayload _build() { _$DeleteObjectsOutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$DeleteObjectsOutputPayload._( deleted: _deleted?.build(), errors: _errors?.build(), @@ -223,7 +228,10 @@ class DeleteObjectsOutputPayloadBuilder _errors?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'DeleteObjectsOutputPayload', _$failedField, e.toString()); + r'DeleteObjectsOutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart index c91dd069c6..80a1b3d712 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.dart @@ -40,9 +40,9 @@ abstract class DeleteObjectsRequest ); } - factory DeleteObjectsRequest.build( - [void Function(DeleteObjectsRequestBuilder) updates]) = - _$DeleteObjectsRequest; + factory DeleteObjectsRequest.build([ + void Function(DeleteObjectsRequestBuilder) updates, + ]) = _$DeleteObjectsRequest; const DeleteObjectsRequest._(); @@ -50,35 +50,35 @@ abstract class DeleteObjectsRequest Delete payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - DeleteObjectsRequest.build((b) { - b.delete.replace(payload); - if (request.headers['x-amz-mfa'] != null) { - b.mfa = request.headers['x-amz-mfa']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-bypass-governance-retention'] != null) { - b.bypassGovernanceRetention = - request.headers['x-amz-bypass-governance-retention']! == 'true'; - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-sdk-checksum-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-sdk-checksum-algorithm']!); - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - }); + }) => DeleteObjectsRequest.build((b) { + b.delete.replace(payload); + if (request.headers['x-amz-mfa'] != null) { + b.mfa = request.headers['x-amz-mfa']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-bypass-governance-retention'] != null) { + b.bypassGovernanceRetention = + request.headers['x-amz-bypass-governance-retention']! == 'true'; + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-sdk-checksum-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-sdk-checksum-algorithm']!, + ); + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + }); static const List<_i1.SmithySerializer> serializers = [ - DeleteObjectsRequestRestXmlSerializer() + DeleteObjectsRequestRestXmlSerializer(), ]; /// The bucket name containing the objects to delete. @@ -140,10 +140,7 @@ abstract class DeleteObjectsRequest case 'Bucket': return bucket; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -151,46 +148,26 @@ abstract class DeleteObjectsRequest @override List get props => [ - bucket, - delete, - mfa, - requestPayer, - bypassGovernanceRetention, - expectedBucketOwner, - checksumAlgorithm, - ]; + bucket, + delete, + mfa, + requestPayer, + bypassGovernanceRetention, + expectedBucketOwner, + checksumAlgorithm, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeleteObjectsRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'delete', - delete, - ) - ..add( - 'mfa', - mfa, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'bypassGovernanceRetention', - bypassGovernanceRetention, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ); + final helper = + newBuiltValueToStringHelper('DeleteObjectsRequest') + ..add('bucket', bucket) + ..add('delete', delete) + ..add('mfa', mfa) + ..add('requestPayer', requestPayer) + ..add('bypassGovernanceRetention', bypassGovernanceRetention) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('checksumAlgorithm', checksumAlgorithm); return helper.toString(); } } @@ -201,17 +178,14 @@ class DeleteObjectsRequestRestXmlSerializer @override Iterable get types => const [ - DeleteObjectsRequest, - _$DeleteObjectsRequest, - ]; + DeleteObjectsRequest, + _$DeleteObjectsRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Delete deserialize( @@ -230,15 +204,20 @@ class DeleteObjectsRequestRestXmlSerializer } switch (key) { case 'Object': - result.objects.add((serializers.deserialize( - value, - specifiedType: const FullType(ObjectIdentifier), - ) as ObjectIdentifier)); + result.objects.add( + (serializers.deserialize( + value, + specifiedType: const FullType(ObjectIdentifier), + ) + as ObjectIdentifier), + ); case 'Quiet': - result.quiet = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.quiet = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -255,25 +234,24 @@ class DeleteObjectsRequestRestXmlSerializer const _i1.XmlElementName( 'Delete', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Delete(:objects, :quiet) = object; result$.addAll( - const _i1.XmlBuiltListSerializer(memberName: 'Object').serialize( - serializers, - objects, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(ObjectIdentifier)], + const _i1.XmlBuiltListSerializer(memberName: 'Object').serialize( + serializers, + objects, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(ObjectIdentifier), + ]), ), - )); + ); if (quiet != null) { result$ ..add(const _i1.XmlElementName('Quiet')) - ..add(serializers.serialize( - quiet, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(quiet, specifiedType: const FullType(bool)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.g.dart index f058d02ccd..6bf1b6506c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/delete_objects_request.g.dart @@ -22,29 +22,35 @@ class _$DeleteObjectsRequest extends DeleteObjectsRequest { @override final ChecksumAlgorithm? checksumAlgorithm; - factory _$DeleteObjectsRequest( - [void Function(DeleteObjectsRequestBuilder)? updates]) => - (new DeleteObjectsRequestBuilder()..update(updates))._build(); - - _$DeleteObjectsRequest._( - {required this.bucket, - required this.delete, - this.mfa, - this.requestPayer, - this.bypassGovernanceRetention, - this.expectedBucketOwner, - this.checksumAlgorithm}) - : super._() { + factory _$DeleteObjectsRequest([ + void Function(DeleteObjectsRequestBuilder)? updates, + ]) => (new DeleteObjectsRequestBuilder()..update(updates))._build(); + + _$DeleteObjectsRequest._({ + required this.bucket, + required this.delete, + this.mfa, + this.requestPayer, + this.bypassGovernanceRetention, + this.expectedBucketOwner, + this.checksumAlgorithm, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectsRequest', 'bucket'); + bucket, + r'DeleteObjectsRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - delete, r'DeleteObjectsRequest', 'delete'); + delete, + r'DeleteObjectsRequest', + 'delete', + ); } @override DeleteObjectsRequest rebuild( - void Function(DeleteObjectsRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(DeleteObjectsRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override DeleteObjectsRequestBuilder toBuilder() => @@ -148,10 +154,14 @@ class DeleteObjectsRequestBuilder _$DeleteObjectsRequest _build() { _$DeleteObjectsRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$DeleteObjectsRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'DeleteObjectsRequest', 'bucket'), + bucket, + r'DeleteObjectsRequest', + 'bucket', + ), delete: delete.build(), mfa: mfa, requestPayer: requestPayer, @@ -166,7 +176,10 @@ class DeleteObjectsRequestBuilder delete.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'DeleteObjectsRequest', _$failedField, e.toString()); + r'DeleteObjectsRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.dart index 2f333fc8e1..160c3dcd1a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.dart @@ -36,7 +36,7 @@ abstract class DeletedObject const DeletedObject._(); static const List<_i2.SmithySerializer> serializers = [ - DeletedObjectRestXmlSerializer() + DeletedObjectRestXmlSerializer(), ]; /// The name of the deleted object. @@ -58,31 +58,20 @@ abstract class DeletedObject String? get deleteMarkerVersionId; @override List get props => [ - key, - versionId, - deleteMarker, - deleteMarkerVersionId, - ]; + key, + versionId, + deleteMarker, + deleteMarkerVersionId, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('DeletedObject') - ..add( - 'key', - key, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'deleteMarker', - deleteMarker, - ) - ..add( - 'deleteMarkerVersionId', - deleteMarkerVersionId, - ); + final helper = + newBuiltValueToStringHelper('DeletedObject') + ..add('key', key) + ..add('versionId', versionId) + ..add('deleteMarker', deleteMarker) + ..add('deleteMarkerVersionId', deleteMarkerVersionId); return helper.toString(); } } @@ -92,18 +81,12 @@ class DeletedObjectRestXmlSerializer const DeletedObjectRestXmlSerializer() : super('DeletedObject'); @override - Iterable get types => const [ - DeletedObject, - _$DeletedObject, - ]; + Iterable get types => const [DeletedObject, _$DeletedObject]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override DeletedObject deserialize( @@ -122,25 +105,33 @@ class DeletedObjectRestXmlSerializer } switch (key) { case 'DeleteMarker': - result.deleteMarker = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.deleteMarker = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'DeleteMarkerVersionId': - result.deleteMarkerVersionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deleteMarkerVersionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'VersionId': - result.versionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.versionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -157,45 +148,50 @@ class DeletedObjectRestXmlSerializer const _i2.XmlElementName( 'DeletedObject', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final DeletedObject( :deleteMarker, :deleteMarkerVersionId, :key, - :versionId + :versionId, ) = object; if (deleteMarker != null) { result$ ..add(const _i2.XmlElementName('DeleteMarker')) - ..add(serializers.serialize( - deleteMarker, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + deleteMarker, + specifiedType: const FullType(bool), + ), + ); } if (deleteMarkerVersionId != null) { result$ ..add(const _i2.XmlElementName('DeleteMarkerVersionId')) - ..add(serializers.serialize( - deleteMarkerVersionId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + deleteMarkerVersionId, + specifiedType: const FullType(String), + ), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (versionId != null) { result$ ..add(const _i2.XmlElementName('VersionId')) - ..add(serializers.serialize( - versionId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + versionId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.g.dart index 4a547f1664..659ffbd351 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/deleted_object.g.dart @@ -19,9 +19,12 @@ class _$DeletedObject extends DeletedObject { factory _$DeletedObject([void Function(DeletedObjectBuilder)? updates]) => (new DeletedObjectBuilder()..update(updates))._build(); - _$DeletedObject._( - {this.key, this.versionId, this.deleteMarker, this.deleteMarkerVersionId}) - : super._(); + _$DeletedObject._({ + this.key, + this.versionId, + this.deleteMarker, + this.deleteMarkerVersionId, + }) : super._(); @override DeletedObject rebuild(void Function(DeletedObjectBuilder) updates) => @@ -102,7 +105,8 @@ class DeletedObjectBuilder DeletedObject build() => _build(); _$DeletedObject _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$DeletedObject._( key: key, versionId: versionId, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart index 1307683a8e..1763defdca 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/encoding_type.dart @@ -7,19 +7,11 @@ import 'package:smithy/smithy.dart' as _i1; /// Requests Amazon S3 to encode the object keys in the response and specifies the encoding method to use. An object key can contain any Unicode character; however, the XML 1.0 parser cannot parse some characters, such as characters with an ASCII value from 0 to 10. For characters that are not supported in XML 1.0, you can add this parameter to request that Amazon S3 encode the keys in the response. class EncodingType extends _i1.SmithyEnum { - const EncodingType._( - super.index, - super.name, - super.value, - ); + const EncodingType._(super.index, super.name, super.value); const EncodingType._sdkUnknown(super.value) : super.sdkUnknown(); - static const url = EncodingType._( - 0, - 'url', - 'url', - ); + static const url = EncodingType._(0, 'url', 'url'); /// All values of [EncodingType]. static const values = [EncodingType.url]; @@ -30,12 +22,9 @@ class EncodingType extends _i1.SmithyEnum { values: values, sdkUnknown: EncodingType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/end_event.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/end_event.dart index 06bcfb0d3b..e59aa73dc7 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/end_event.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/end_event.dart @@ -25,7 +25,7 @@ abstract class EndEvent const EndEvent._(); static const List<_i2.SmithySerializer> serializers = [ - EndEventRestXmlSerializer() + EndEventRestXmlSerializer(), ]; @override @@ -43,18 +43,12 @@ class EndEventRestXmlSerializer const EndEventRestXmlSerializer() : super('EndEvent'); @override - Iterable get types => const [ - EndEvent, - _$EndEvent, - ]; + Iterable get types => const [EndEvent, _$EndEvent]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override EndEvent deserialize( @@ -75,7 +69,7 @@ class EndEventRestXmlSerializer const _i2.XmlElementName( 'EndEvent', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.dart index b80c6cbae4..8d903bc2b5 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.dart @@ -35,7 +35,7 @@ abstract class Error const Error._(); static const List<_i2.SmithySerializer> serializers = [ - ErrorRestXmlSerializer() + ErrorRestXmlSerializer(), ]; /// The error key. @@ -756,32 +756,16 @@ abstract class Error /// The error message contains a generic description of the error condition in English. It is intended for a human audience. Simple programs display the message directly to the end user if they encounter an error condition they don't know how or don't care to handle. Sophisticated programs with more exhaustive error handling and proper internationalization are more likely to ignore the error message. String? get message; @override - List get props => [ - key, - versionId, - code, - message, - ]; + List get props => [key, versionId, code, message]; @override String toString() { - final helper = newBuiltValueToStringHelper('Error') - ..add( - 'key', - key, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'code', - code, - ) - ..add( - 'message', - message, - ); + final helper = + newBuiltValueToStringHelper('Error') + ..add('key', key) + ..add('versionId', versionId) + ..add('code', code) + ..add('message', message); return helper.toString(); } } @@ -790,18 +774,12 @@ class ErrorRestXmlSerializer extends _i2.StructuredSmithySerializer { const ErrorRestXmlSerializer() : super('Error'); @override - Iterable get types => const [ - Error, - _$Error, - ]; + Iterable get types => const [Error, _$Error]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Error deserialize( @@ -820,25 +798,33 @@ class ErrorRestXmlSerializer extends _i2.StructuredSmithySerializer { } switch (key) { case 'Code': - result.code = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.code = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'VersionId': - result.versionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.versionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -855,40 +841,39 @@ class ErrorRestXmlSerializer extends _i2.StructuredSmithySerializer { const _i2.XmlElementName( 'Error', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Error(:code, :key, :message, :versionId) = object; if (code != null) { result$ ..add(const _i2.XmlElementName('Code')) - ..add(serializers.serialize( - code, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(code, specifiedType: const FullType(String)), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (message != null) { result$ ..add(const _i2.XmlElementName('Message')) - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } if (versionId != null) { result$ ..add(const _i2.XmlElementName('VersionId')) - ..add(serializers.serialize( - versionId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + versionId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.g.dart index 35537bbc04..7880fb171c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/error.g.dart @@ -98,7 +98,8 @@ class ErrorBuilder implements Builder { Error build() => _build(); _$Error _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$Error._( key: key, versionId: versionId, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/expression_type.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/expression_type.dart index f8f2662cbc..942ec5e7c7 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/expression_type.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/expression_type.dart @@ -6,19 +6,11 @@ library amplify_storage_s3_dart.s3.model.expression_type; // ignore_for_file: no import 'package:smithy/smithy.dart' as _i1; class ExpressionType extends _i1.SmithyEnum { - const ExpressionType._( - super.index, - super.name, - super.value, - ); + const ExpressionType._(super.index, super.name, super.value); const ExpressionType._sdkUnknown(super.value) : super.sdkUnknown(); - static const sql = ExpressionType._( - 0, - 'SQL', - 'SQL', - ); + static const sql = ExpressionType._(0, 'SQL', 'SQL'); /// All values of [ExpressionType]. static const values = [ExpressionType.sql]; @@ -29,12 +21,9 @@ class ExpressionType extends _i1.SmithyEnum { values: values, sdkUnknown: ExpressionType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/file_header_info.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/file_header_info.dart index 1401e26e56..34133d7d6f 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/file_header_info.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/file_header_info.dart @@ -6,31 +6,15 @@ library amplify_storage_s3_dart.s3.model.file_header_info; // ignore_for_file: n import 'package:smithy/smithy.dart' as _i1; class FileHeaderInfo extends _i1.SmithyEnum { - const FileHeaderInfo._( - super.index, - super.name, - super.value, - ); + const FileHeaderInfo._(super.index, super.name, super.value); const FileHeaderInfo._sdkUnknown(super.value) : super.sdkUnknown(); - static const ignore = FileHeaderInfo._( - 0, - 'IGNORE', - 'IGNORE', - ); + static const ignore = FileHeaderInfo._(0, 'IGNORE', 'IGNORE'); - static const none = FileHeaderInfo._( - 1, - 'NONE', - 'NONE', - ); + static const none = FileHeaderInfo._(1, 'NONE', 'NONE'); - static const use = FileHeaderInfo._( - 2, - 'USE', - 'USE', - ); + static const use = FileHeaderInfo._(2, 'USE', 'USE'); /// All values of [FileHeaderInfo]. static const values = [ @@ -45,12 +29,9 @@ class FileHeaderInfo extends _i1.SmithyEnum { values: values, sdkUnknown: FileHeaderInfo._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.dart index daec10cbee..33e8f4bd28 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.dart @@ -104,8 +104,9 @@ abstract class GetObjectOutput ); } - factory GetObjectOutput.build( - [void Function(GetObjectOutputBuilder) updates]) = _$GetObjectOutput; + factory GetObjectOutput.build([ + void Function(GetObjectOutputBuilder) updates, + ]) = _$GetObjectOutput; const GetObjectOutput._(); @@ -113,152 +114,156 @@ abstract class GetObjectOutput factory GetObjectOutput.fromResponse( _i3.Stream> payload, _i1.AWSBaseHttpResponse response, - ) => - GetObjectOutput.build((b) { - b.body = payload; - if (response.headers['x-amz-delete-marker'] != null) { - b.deleteMarker = response.headers['x-amz-delete-marker']! == 'true'; - } - if (response.headers['accept-ranges'] != null) { - b.acceptRanges = response.headers['accept-ranges']!; - } - if (response.headers['x-amz-expiration'] != null) { - b.expiration = response.headers['x-amz-expiration']!; - } - if (response.headers['x-amz-restore'] != null) { - b.restore = response.headers['x-amz-restore']!; - } - if (response.headers['Last-Modified'] != null) { - b.lastModified = _i2.Timestamp.parse( + ) => GetObjectOutput.build((b) { + b.body = payload; + if (response.headers['x-amz-delete-marker'] != null) { + b.deleteMarker = response.headers['x-amz-delete-marker']! == 'true'; + } + if (response.headers['accept-ranges'] != null) { + b.acceptRanges = response.headers['accept-ranges']!; + } + if (response.headers['x-amz-expiration'] != null) { + b.expiration = response.headers['x-amz-expiration']!; + } + if (response.headers['x-amz-restore'] != null) { + b.restore = response.headers['x-amz-restore']!; + } + if (response.headers['Last-Modified'] != null) { + b.lastModified = + _i2.Timestamp.parse( response.headers['Last-Modified']!, format: _i2.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['Content-Length'] != null) { - b.contentLength = - _i4.Int64.parseInt(response.headers['Content-Length']!); - } - if (response.headers['ETag'] != null) { - b.eTag = response.headers['ETag']!; - } - if (response.headers['x-amz-checksum-crc32'] != null) { - b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; - } - if (response.headers['x-amz-checksum-crc32c'] != null) { - b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; - } - if (response.headers['x-amz-checksum-sha1'] != null) { - b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; - } - if (response.headers['x-amz-checksum-sha256'] != null) { - b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; - } - if (response.headers['x-amz-missing-meta'] != null) { - b.missingMeta = int.parse(response.headers['x-amz-missing-meta']!); - } - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - if (response.headers['Cache-Control'] != null) { - b.cacheControl = response.headers['Cache-Control']!; - } - if (response.headers['Content-Disposition'] != null) { - b.contentDisposition = response.headers['Content-Disposition']!; - } - if (response.headers['Content-Encoding'] != null) { - b.contentEncoding = response.headers['Content-Encoding']!; - } - if (response.headers['Content-Language'] != null) { - b.contentLanguage = response.headers['Content-Language']!; - } - if (response.headers['Content-Range'] != null) { - b.contentRange = response.headers['Content-Range']!; - } - if (response.headers['Content-Type'] != null) { - b.contentType = response.headers['Content-Type']!; - } - if (response.headers['Expires'] != null) { - b.expires = _i2.Timestamp.parse( + } + if (response.headers['Content-Length'] != null) { + b.contentLength = _i4.Int64.parseInt(response.headers['Content-Length']!); + } + if (response.headers['ETag'] != null) { + b.eTag = response.headers['ETag']!; + } + if (response.headers['x-amz-checksum-crc32'] != null) { + b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; + } + if (response.headers['x-amz-checksum-crc32c'] != null) { + b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; + } + if (response.headers['x-amz-checksum-sha1'] != null) { + b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; + } + if (response.headers['x-amz-checksum-sha256'] != null) { + b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; + } + if (response.headers['x-amz-missing-meta'] != null) { + b.missingMeta = int.parse(response.headers['x-amz-missing-meta']!); + } + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + if (response.headers['Cache-Control'] != null) { + b.cacheControl = response.headers['Cache-Control']!; + } + if (response.headers['Content-Disposition'] != null) { + b.contentDisposition = response.headers['Content-Disposition']!; + } + if (response.headers['Content-Encoding'] != null) { + b.contentEncoding = response.headers['Content-Encoding']!; + } + if (response.headers['Content-Language'] != null) { + b.contentLanguage = response.headers['Content-Language']!; + } + if (response.headers['Content-Range'] != null) { + b.contentRange = response.headers['Content-Range']!; + } + if (response.headers['Content-Type'] != null) { + b.contentType = response.headers['Content-Type']!; + } + if (response.headers['Expires'] != null) { + b.expires = + _i2.Timestamp.parse( response.headers['Expires']!, format: _i2.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['x-amz-website-redirect-location'] != null) { - b.websiteRedirectLocation = - response.headers['x-amz-website-redirect-location']!; - } - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = response - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = response - .headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-storage-class'] != null) { - b.storageClass = StorageClass.values - .byValue(response.headers['x-amz-storage-class']!); - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - if (response.headers['x-amz-replication-status'] != null) { - b.replicationStatus = ReplicationStatus.values - .byValue(response.headers['x-amz-replication-status']!); - } - if (response.headers['x-amz-mp-parts-count'] != null) { - b.partsCount = int.parse(response.headers['x-amz-mp-parts-count']!); - } - if (response.headers['x-amz-tagging-count'] != null) { - b.tagCount = int.parse(response.headers['x-amz-tagging-count']!); - } - if (response.headers['x-amz-object-lock-mode'] != null) { - b.objectLockMode = ObjectLockMode.values - .byValue(response.headers['x-amz-object-lock-mode']!); - } - if (response.headers['x-amz-object-lock-retain-until-date'] != null) { - b.objectLockRetainUntilDate = _i2.Timestamp.parse( + } + if (response.headers['x-amz-website-redirect-location'] != null) { + b.websiteRedirectLocation = + response.headers['x-amz-website-redirect-location']!; + } + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + response.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + response.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-storage-class'] != null) { + b.storageClass = StorageClass.values.byValue( + response.headers['x-amz-storage-class']!, + ); + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + if (response.headers['x-amz-replication-status'] != null) { + b.replicationStatus = ReplicationStatus.values.byValue( + response.headers['x-amz-replication-status']!, + ); + } + if (response.headers['x-amz-mp-parts-count'] != null) { + b.partsCount = int.parse(response.headers['x-amz-mp-parts-count']!); + } + if (response.headers['x-amz-tagging-count'] != null) { + b.tagCount = int.parse(response.headers['x-amz-tagging-count']!); + } + if (response.headers['x-amz-object-lock-mode'] != null) { + b.objectLockMode = ObjectLockMode.values.byValue( + response.headers['x-amz-object-lock-mode']!, + ); + } + if (response.headers['x-amz-object-lock-retain-until-date'] != null) { + b.objectLockRetainUntilDate = + _i2.Timestamp.parse( response.headers['x-amz-object-lock-retain-until-date']!, format: _i2.TimestampFormat.dateTime, ).asDateTime; - } - if (response.headers['x-amz-object-lock-legal-hold'] != null) { - b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values - .byValue(response.headers['x-amz-object-lock-legal-hold']!); - } - b.metadata.addEntries(response.headers.entries - .where((el) => el.key.startsWith('x-amz-meta-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'x-amz-meta-', - '', - ), - el.value, - ))); - }); + } + if (response.headers['x-amz-object-lock-legal-hold'] != null) { + b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values.byValue( + response.headers['x-amz-object-lock-legal-hold']!, + ); + } + b.metadata.addEntries( + response.headers.entries + .where((el) => el.key.startsWith('x-amz-meta-')) + .map( + (el) => MapEntry(el.key.replaceFirst('x-amz-meta-', ''), el.value), + ), + ); + }); static const List<_i2.SmithySerializer<_i3.Stream>>> serializers = [ - GetObjectOutputRestXmlSerializer() + GetObjectOutputRestXmlSerializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -420,191 +425,84 @@ abstract class GetObjectOutput @override List get props => [ - body, - deleteMarker, - acceptRanges, - expiration, - restore, - lastModified, - contentLength, - eTag, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - missingMeta, - versionId, - cacheControl, - contentDisposition, - contentEncoding, - contentLanguage, - contentRange, - contentType, - expires, - websiteRedirectLocation, - serverSideEncryption, - metadata, - sseCustomerAlgorithm, - sseCustomerKeyMd5, - ssekmsKeyId, - bucketKeyEnabled, - storageClass, - requestCharged, - replicationStatus, - partsCount, - tagCount, - objectLockMode, - objectLockRetainUntilDate, - objectLockLegalHoldStatus, - ]; + body, + deleteMarker, + acceptRanges, + expiration, + restore, + lastModified, + contentLength, + eTag, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + missingMeta, + versionId, + cacheControl, + contentDisposition, + contentEncoding, + contentLanguage, + contentRange, + contentType, + expires, + websiteRedirectLocation, + serverSideEncryption, + metadata, + sseCustomerAlgorithm, + sseCustomerKeyMd5, + ssekmsKeyId, + bucketKeyEnabled, + storageClass, + requestCharged, + replicationStatus, + partsCount, + tagCount, + objectLockMode, + objectLockRetainUntilDate, + objectLockLegalHoldStatus, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetObjectOutput') - ..add( - 'body', - body, - ) - ..add( - 'deleteMarker', - deleteMarker, - ) - ..add( - 'acceptRanges', - acceptRanges, - ) - ..add( - 'expiration', - expiration, - ) - ..add( - 'restore', - restore, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'contentLength', - contentLength, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'missingMeta', - missingMeta, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'cacheControl', - cacheControl, - ) - ..add( - 'contentDisposition', - contentDisposition, - ) - ..add( - 'contentEncoding', - contentEncoding, - ) - ..add( - 'contentLanguage', - contentLanguage, - ) - ..add( - 'contentRange', - contentRange, - ) - ..add( - 'contentType', - contentType, - ) - ..add( - 'expires', - expires, - ) - ..add( - 'websiteRedirectLocation', - websiteRedirectLocation, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'metadata', - metadata, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'requestCharged', - requestCharged, - ) - ..add( - 'replicationStatus', - replicationStatus, - ) - ..add( - 'partsCount', - partsCount, - ) - ..add( - 'tagCount', - tagCount, - ) - ..add( - 'objectLockMode', - objectLockMode, - ) - ..add( - 'objectLockRetainUntilDate', - objectLockRetainUntilDate, - ) - ..add( - 'objectLockLegalHoldStatus', - objectLockLegalHoldStatus, - ); + final helper = + newBuiltValueToStringHelper('GetObjectOutput') + ..add('body', body) + ..add('deleteMarker', deleteMarker) + ..add('acceptRanges', acceptRanges) + ..add('expiration', expiration) + ..add('restore', restore) + ..add('lastModified', lastModified) + ..add('contentLength', contentLength) + ..add('eTag', eTag) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('missingMeta', missingMeta) + ..add('versionId', versionId) + ..add('cacheControl', cacheControl) + ..add('contentDisposition', contentDisposition) + ..add('contentEncoding', contentEncoding) + ..add('contentLanguage', contentLanguage) + ..add('contentRange', contentRange) + ..add('contentType', contentType) + ..add('expires', expires) + ..add('websiteRedirectLocation', websiteRedirectLocation) + ..add('serverSideEncryption', serverSideEncryption) + ..add('metadata', metadata) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('storageClass', storageClass) + ..add('requestCharged', requestCharged) + ..add('replicationStatus', replicationStatus) + ..add('partsCount', partsCount) + ..add('tagCount', tagCount) + ..add('objectLockMode', objectLockMode) + ..add('objectLockRetainUntilDate', objectLockRetainUntilDate) + ..add('objectLockLegalHoldStatus', objectLockLegalHoldStatus); return helper.toString(); } } @@ -614,18 +512,12 @@ class GetObjectOutputRestXmlSerializer const GetObjectOutputRestXmlSerializer() : super('GetObjectOutput'); @override - Iterable get types => const [ - GetObjectOutput, - _$GetObjectOutput, - ]; + Iterable get types => const [GetObjectOutput, _$GetObjectOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i3.Stream> deserialize( @@ -634,17 +526,12 @@ class GetObjectOutputRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i3.Stream>); + serialized, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i3.Stream>); } @override @@ -657,21 +544,17 @@ class GetObjectOutputRestXmlSerializer const _i2.XmlElementName( 'GetObjectOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType( - _i3.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i3.Stream, [ + FullType(List, [FullType(int)]), + ]), ), - )); + ); return result$; } } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.g.dart index 19d1fc3826..b6fb094315 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_output.g.dart @@ -83,44 +83,44 @@ class _$GetObjectOutput extends GetObjectOutput { factory _$GetObjectOutput([void Function(GetObjectOutputBuilder)? updates]) => (new GetObjectOutputBuilder()..update(updates))._build(); - _$GetObjectOutput._( - {required this.body, - this.deleteMarker, - this.acceptRanges, - this.expiration, - this.restore, - this.lastModified, - this.contentLength, - this.eTag, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.missingMeta, - this.versionId, - this.cacheControl, - this.contentDisposition, - this.contentEncoding, - this.contentLanguage, - this.contentRange, - this.contentType, - this.expires, - this.websiteRedirectLocation, - this.serverSideEncryption, - this.metadata, - this.sseCustomerAlgorithm, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.bucketKeyEnabled, - this.storageClass, - this.requestCharged, - this.replicationStatus, - this.partsCount, - this.tagCount, - this.objectLockMode, - this.objectLockRetainUntilDate, - this.objectLockLegalHoldStatus}) - : super._() { + _$GetObjectOutput._({ + required this.body, + this.deleteMarker, + this.acceptRanges, + this.expiration, + this.restore, + this.lastModified, + this.contentLength, + this.eTag, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.missingMeta, + this.versionId, + this.cacheControl, + this.contentDisposition, + this.contentEncoding, + this.contentLanguage, + this.contentRange, + this.contentType, + this.expires, + this.websiteRedirectLocation, + this.serverSideEncryption, + this.metadata, + this.sseCustomerAlgorithm, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.bucketKeyEnabled, + this.storageClass, + this.requestCharged, + this.replicationStatus, + this.partsCount, + this.tagCount, + this.objectLockMode, + this.objectLockRetainUntilDate, + this.objectLockLegalHoldStatus, + }) : super._() { BuiltValueNullFieldError.checkNotNull(body, r'GetObjectOutput', 'body'); } @@ -387,8 +387,8 @@ class GetObjectOutputBuilder ObjectLockLegalHoldStatus? get objectLockLegalHoldStatus => _$this._objectLockLegalHoldStatus; set objectLockLegalHoldStatus( - ObjectLockLegalHoldStatus? objectLockLegalHoldStatus) => - _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; + ObjectLockLegalHoldStatus? objectLockLegalHoldStatus, + ) => _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; GetObjectOutputBuilder() { GetObjectOutput._init(this); @@ -455,10 +455,14 @@ class GetObjectOutputBuilder _$GetObjectOutput _build() { _$GetObjectOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$GetObjectOutput._( body: BuiltValueNullFieldError.checkNotNull( - body, r'GetObjectOutput', 'body'), + body, + r'GetObjectOutput', + 'body', + ), deleteMarker: deleteMarker, acceptRanges: acceptRanges, expiration: expiration, @@ -502,7 +506,10 @@ class GetObjectOutputBuilder _metadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'GetObjectOutput', _$failedField, e.toString()); + r'GetObjectOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart index fe3de40be9..36f07df3d1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.dart @@ -69,8 +69,9 @@ abstract class GetObjectRequest ); } - factory GetObjectRequest.build( - [void Function(GetObjectRequestBuilder) updates]) = _$GetObjectRequest; + factory GetObjectRequest.build([ + void Function(GetObjectRequestBuilder) updates, + ]) = _$GetObjectRequest; const GetObjectRequest._(); @@ -78,96 +79,96 @@ abstract class GetObjectRequest GetObjectRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - GetObjectRequest.build((b) { - if (request.headers['If-Match'] != null) { - b.ifMatch = request.headers['If-Match']!; - } - if (request.headers['If-Modified-Since'] != null) { - b.ifModifiedSince = _i1.Timestamp.parse( + }) => GetObjectRequest.build((b) { + if (request.headers['If-Match'] != null) { + b.ifMatch = request.headers['If-Match']!; + } + if (request.headers['If-Modified-Since'] != null) { + b.ifModifiedSince = + _i1.Timestamp.parse( request.headers['If-Modified-Since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['If-None-Match'] != null) { - b.ifNoneMatch = request.headers['If-None-Match']!; - } - if (request.headers['If-Unmodified-Since'] != null) { - b.ifUnmodifiedSince = _i1.Timestamp.parse( + } + if (request.headers['If-None-Match'] != null) { + b.ifNoneMatch = request.headers['If-None-Match']!; + } + if (request.headers['If-Unmodified-Since'] != null) { + b.ifUnmodifiedSince = + _i1.Timestamp.parse( request.headers['If-Unmodified-Since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['Range'] != null) { - b.range = request.headers['Range']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-checksum-mode'] != null) { - b.checksumMode = ChecksumMode.values - .byValue(request.headers['x-amz-checksum-mode']!); - } - if (request.queryParameters['response-cache-control'] != null) { - b.responseCacheControl = - request.queryParameters['response-cache-control']!; - } - if (request.queryParameters['response-content-disposition'] != null) { - b.responseContentDisposition = - request.queryParameters['response-content-disposition']!; - } - if (request.queryParameters['response-content-encoding'] != null) { - b.responseContentEncoding = - request.queryParameters['response-content-encoding']!; - } - if (request.queryParameters['response-content-language'] != null) { - b.responseContentLanguage = - request.queryParameters['response-content-language']!; - } - if (request.queryParameters['response-content-type'] != null) { - b.responseContentType = - request.queryParameters['response-content-type']!; - } - if (request.queryParameters['response-expires'] != null) { - b.responseExpires = _i1.Timestamp.parse( + } + if (request.headers['Range'] != null) { + b.range = request.headers['Range']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-checksum-mode'] != null) { + b.checksumMode = ChecksumMode.values.byValue( + request.headers['x-amz-checksum-mode']!, + ); + } + if (request.queryParameters['response-cache-control'] != null) { + b.responseCacheControl = + request.queryParameters['response-cache-control']!; + } + if (request.queryParameters['response-content-disposition'] != null) { + b.responseContentDisposition = + request.queryParameters['response-content-disposition']!; + } + if (request.queryParameters['response-content-encoding'] != null) { + b.responseContentEncoding = + request.queryParameters['response-content-encoding']!; + } + if (request.queryParameters['response-content-language'] != null) { + b.responseContentLanguage = + request.queryParameters['response-content-language']!; + } + if (request.queryParameters['response-content-type'] != null) { + b.responseContentType = request.queryParameters['response-content-type']!; + } + if (request.queryParameters['response-expires'] != null) { + b.responseExpires = + _i1.Timestamp.parse( request.queryParameters['response-expires']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.queryParameters['versionId'] != null) { - b.versionId = request.queryParameters['versionId']!; - } - if (request.queryParameters['partNumber'] != null) { - b.partNumber = int.parse(request.queryParameters['partNumber']!); - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + } + if (request.queryParameters['versionId'] != null) { + b.versionId = request.queryParameters['versionId']!; + } + if (request.queryParameters['partNumber'] != null) { + b.partNumber = int.parse(request.queryParameters['partNumber']!); + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> serializers = [GetObjectRequestRestXmlSerializer()]; @@ -322,10 +323,7 @@ abstract class GetObjectRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -333,116 +331,54 @@ abstract class GetObjectRequest @override List get props => [ - bucket, - ifMatch, - ifModifiedSince, - ifNoneMatch, - ifUnmodifiedSince, - key, - range, - responseCacheControl, - responseContentDisposition, - responseContentEncoding, - responseContentLanguage, - responseContentType, - responseExpires, - versionId, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - requestPayer, - partNumber, - expectedBucketOwner, - checksumMode, - ]; + bucket, + ifMatch, + ifModifiedSince, + ifNoneMatch, + ifUnmodifiedSince, + key, + range, + responseCacheControl, + responseContentDisposition, + responseContentEncoding, + responseContentLanguage, + responseContentType, + responseExpires, + versionId, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + requestPayer, + partNumber, + expectedBucketOwner, + checksumMode, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('GetObjectRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'ifMatch', - ifMatch, - ) - ..add( - 'ifModifiedSince', - ifModifiedSince, - ) - ..add( - 'ifNoneMatch', - ifNoneMatch, - ) - ..add( - 'ifUnmodifiedSince', - ifUnmodifiedSince, - ) - ..add( - 'key', - key, - ) - ..add( - 'range', - range, - ) - ..add( - 'responseCacheControl', - responseCacheControl, - ) - ..add( - 'responseContentDisposition', - responseContentDisposition, - ) - ..add( - 'responseContentEncoding', - responseContentEncoding, - ) - ..add( - 'responseContentLanguage', - responseContentLanguage, - ) - ..add( - 'responseContentType', - responseContentType, - ) - ..add( - 'responseExpires', - responseExpires, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'partNumber', - partNumber, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'checksumMode', - checksumMode, - ); + final helper = + newBuiltValueToStringHelper('GetObjectRequest') + ..add('bucket', bucket) + ..add('ifMatch', ifMatch) + ..add('ifModifiedSince', ifModifiedSince) + ..add('ifNoneMatch', ifNoneMatch) + ..add('ifUnmodifiedSince', ifUnmodifiedSince) + ..add('key', key) + ..add('range', range) + ..add('responseCacheControl', responseCacheControl) + ..add('responseContentDisposition', responseContentDisposition) + ..add('responseContentEncoding', responseContentEncoding) + ..add('responseContentLanguage', responseContentLanguage) + ..add('responseContentType', responseContentType) + ..add('responseExpires', responseExpires) + ..add('versionId', versionId) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('requestPayer', requestPayer) + ..add('partNumber', partNumber) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('checksumMode', checksumMode); return helper.toString(); } } @@ -453,9 +389,9 @@ abstract class GetObjectRequestPayload implements Built, _i1.EmptyPayload { - factory GetObjectRequestPayload( - [void Function(GetObjectRequestPayloadBuilder) updates]) = - _$GetObjectRequestPayload; + factory GetObjectRequestPayload([ + void Function(GetObjectRequestPayloadBuilder) updates, + ]) = _$GetObjectRequestPayload; const GetObjectRequestPayload._(); @@ -475,19 +411,16 @@ class GetObjectRequestRestXmlSerializer @override Iterable get types => const [ - GetObjectRequest, - _$GetObjectRequest, - GetObjectRequestPayload, - _$GetObjectRequestPayload, - ]; + GetObjectRequest, + _$GetObjectRequest, + GetObjectRequestPayload, + _$GetObjectRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override GetObjectRequestPayload deserialize( @@ -508,7 +441,7 @@ class GetObjectRequestRestXmlSerializer const _i1.XmlElementName( 'GetObjectRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.g.dart index d850be8271..10001db2c5 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/get_object_request.g.dart @@ -50,35 +50,38 @@ class _$GetObjectRequest extends GetObjectRequest { @override final ChecksumMode? checksumMode; - factory _$GetObjectRequest( - [void Function(GetObjectRequestBuilder)? updates]) => - (new GetObjectRequestBuilder()..update(updates))._build(); - - _$GetObjectRequest._( - {required this.bucket, - this.ifMatch, - this.ifModifiedSince, - this.ifNoneMatch, - this.ifUnmodifiedSince, - required this.key, - this.range, - this.responseCacheControl, - this.responseContentDisposition, - this.responseContentEncoding, - this.responseContentLanguage, - this.responseContentType, - this.responseExpires, - this.versionId, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - this.requestPayer, - this.partNumber, - this.expectedBucketOwner, - this.checksumMode}) - : super._() { + factory _$GetObjectRequest([ + void Function(GetObjectRequestBuilder)? updates, + ]) => (new GetObjectRequestBuilder()..update(updates))._build(); + + _$GetObjectRequest._({ + required this.bucket, + this.ifMatch, + this.ifModifiedSince, + this.ifNoneMatch, + this.ifUnmodifiedSince, + required this.key, + this.range, + this.responseCacheControl, + this.responseContentDisposition, + this.responseContentEncoding, + this.responseContentLanguage, + this.responseContentType, + this.responseExpires, + this.versionId, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + this.requestPayer, + this.partNumber, + this.expectedBucketOwner, + this.checksumMode, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'GetObjectRequest', 'bucket'); + bucket, + r'GetObjectRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull(key, r'GetObjectRequest', 'key'); } @@ -294,16 +297,23 @@ class GetObjectRequestBuilder GetObjectRequest build() => _build(); _$GetObjectRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$GetObjectRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'GetObjectRequest', 'bucket'), + bucket, + r'GetObjectRequest', + 'bucket', + ), ifMatch: ifMatch, ifModifiedSince: ifModifiedSince, ifNoneMatch: ifNoneMatch, ifUnmodifiedSince: ifUnmodifiedSince, key: BuiltValueNullFieldError.checkNotNull( - key, r'GetObjectRequest', 'key'), + key, + r'GetObjectRequest', + 'key', + ), range: range, responseCacheControl: responseCacheControl, responseContentDisposition: responseContentDisposition, @@ -326,16 +336,16 @@ class GetObjectRequestBuilder } class _$GetObjectRequestPayload extends GetObjectRequestPayload { - factory _$GetObjectRequestPayload( - [void Function(GetObjectRequestPayloadBuilder)? updates]) => - (new GetObjectRequestPayloadBuilder()..update(updates))._build(); + factory _$GetObjectRequestPayload([ + void Function(GetObjectRequestPayloadBuilder)? updates, + ]) => (new GetObjectRequestPayloadBuilder()..update(updates))._build(); _$GetObjectRequestPayload._() : super._(); @override GetObjectRequestPayload rebuild( - void Function(GetObjectRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(GetObjectRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override GetObjectRequestPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.dart index e33bc5f1c9..b42b9e91e3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.dart @@ -100,8 +100,9 @@ abstract class HeadObjectOutput ); } - factory HeadObjectOutput.build( - [void Function(HeadObjectOutputBuilder) updates]) = _$HeadObjectOutput; + factory HeadObjectOutput.build([ + void Function(HeadObjectOutputBuilder) updates, + ]) = _$HeadObjectOutput; const HeadObjectOutput._(); @@ -109,146 +110,151 @@ abstract class HeadObjectOutput factory HeadObjectOutput.fromResponse( HeadObjectOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - HeadObjectOutput.build((b) { - if (response.headers['x-amz-delete-marker'] != null) { - b.deleteMarker = response.headers['x-amz-delete-marker']! == 'true'; - } - if (response.headers['accept-ranges'] != null) { - b.acceptRanges = response.headers['accept-ranges']!; - } - if (response.headers['x-amz-expiration'] != null) { - b.expiration = response.headers['x-amz-expiration']!; - } - if (response.headers['x-amz-restore'] != null) { - b.restore = response.headers['x-amz-restore']!; - } - if (response.headers['x-amz-archive-status'] != null) { - b.archiveStatus = ArchiveStatus.values - .byValue(response.headers['x-amz-archive-status']!); - } - if (response.headers['Last-Modified'] != null) { - b.lastModified = _i2.Timestamp.parse( + ) => HeadObjectOutput.build((b) { + if (response.headers['x-amz-delete-marker'] != null) { + b.deleteMarker = response.headers['x-amz-delete-marker']! == 'true'; + } + if (response.headers['accept-ranges'] != null) { + b.acceptRanges = response.headers['accept-ranges']!; + } + if (response.headers['x-amz-expiration'] != null) { + b.expiration = response.headers['x-amz-expiration']!; + } + if (response.headers['x-amz-restore'] != null) { + b.restore = response.headers['x-amz-restore']!; + } + if (response.headers['x-amz-archive-status'] != null) { + b.archiveStatus = ArchiveStatus.values.byValue( + response.headers['x-amz-archive-status']!, + ); + } + if (response.headers['Last-Modified'] != null) { + b.lastModified = + _i2.Timestamp.parse( response.headers['Last-Modified']!, format: _i2.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['Content-Length'] != null) { - b.contentLength = - _i3.Int64.parseInt(response.headers['Content-Length']!); - } - if (response.headers['x-amz-checksum-crc32'] != null) { - b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; - } - if (response.headers['x-amz-checksum-crc32c'] != null) { - b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; - } - if (response.headers['x-amz-checksum-sha1'] != null) { - b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; - } - if (response.headers['x-amz-checksum-sha256'] != null) { - b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; - } - if (response.headers['ETag'] != null) { - b.eTag = response.headers['ETag']!; - } - if (response.headers['x-amz-missing-meta'] != null) { - b.missingMeta = int.parse(response.headers['x-amz-missing-meta']!); - } - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - if (response.headers['Cache-Control'] != null) { - b.cacheControl = response.headers['Cache-Control']!; - } - if (response.headers['Content-Disposition'] != null) { - b.contentDisposition = response.headers['Content-Disposition']!; - } - if (response.headers['Content-Encoding'] != null) { - b.contentEncoding = response.headers['Content-Encoding']!; - } - if (response.headers['Content-Language'] != null) { - b.contentLanguage = response.headers['Content-Language']!; - } - if (response.headers['Content-Type'] != null) { - b.contentType = response.headers['Content-Type']!; - } - if (response.headers['Expires'] != null) { - b.expires = _i2.Timestamp.parse( + } + if (response.headers['Content-Length'] != null) { + b.contentLength = _i3.Int64.parseInt(response.headers['Content-Length']!); + } + if (response.headers['x-amz-checksum-crc32'] != null) { + b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; + } + if (response.headers['x-amz-checksum-crc32c'] != null) { + b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; + } + if (response.headers['x-amz-checksum-sha1'] != null) { + b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; + } + if (response.headers['x-amz-checksum-sha256'] != null) { + b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; + } + if (response.headers['ETag'] != null) { + b.eTag = response.headers['ETag']!; + } + if (response.headers['x-amz-missing-meta'] != null) { + b.missingMeta = int.parse(response.headers['x-amz-missing-meta']!); + } + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + if (response.headers['Cache-Control'] != null) { + b.cacheControl = response.headers['Cache-Control']!; + } + if (response.headers['Content-Disposition'] != null) { + b.contentDisposition = response.headers['Content-Disposition']!; + } + if (response.headers['Content-Encoding'] != null) { + b.contentEncoding = response.headers['Content-Encoding']!; + } + if (response.headers['Content-Language'] != null) { + b.contentLanguage = response.headers['Content-Language']!; + } + if (response.headers['Content-Type'] != null) { + b.contentType = response.headers['Content-Type']!; + } + if (response.headers['Expires'] != null) { + b.expires = + _i2.Timestamp.parse( response.headers['Expires']!, format: _i2.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['x-amz-website-redirect-location'] != null) { - b.websiteRedirectLocation = - response.headers['x-amz-website-redirect-location']!; - } - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = response - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = response - .headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-storage-class'] != null) { - b.storageClass = StorageClass.values - .byValue(response.headers['x-amz-storage-class']!); - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - if (response.headers['x-amz-replication-status'] != null) { - b.replicationStatus = ReplicationStatus.values - .byValue(response.headers['x-amz-replication-status']!); - } - if (response.headers['x-amz-mp-parts-count'] != null) { - b.partsCount = int.parse(response.headers['x-amz-mp-parts-count']!); - } - if (response.headers['x-amz-object-lock-mode'] != null) { - b.objectLockMode = ObjectLockMode.values - .byValue(response.headers['x-amz-object-lock-mode']!); - } - if (response.headers['x-amz-object-lock-retain-until-date'] != null) { - b.objectLockRetainUntilDate = _i2.Timestamp.parse( + } + if (response.headers['x-amz-website-redirect-location'] != null) { + b.websiteRedirectLocation = + response.headers['x-amz-website-redirect-location']!; + } + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + response.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + response.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-storage-class'] != null) { + b.storageClass = StorageClass.values.byValue( + response.headers['x-amz-storage-class']!, + ); + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + if (response.headers['x-amz-replication-status'] != null) { + b.replicationStatus = ReplicationStatus.values.byValue( + response.headers['x-amz-replication-status']!, + ); + } + if (response.headers['x-amz-mp-parts-count'] != null) { + b.partsCount = int.parse(response.headers['x-amz-mp-parts-count']!); + } + if (response.headers['x-amz-object-lock-mode'] != null) { + b.objectLockMode = ObjectLockMode.values.byValue( + response.headers['x-amz-object-lock-mode']!, + ); + } + if (response.headers['x-amz-object-lock-retain-until-date'] != null) { + b.objectLockRetainUntilDate = + _i2.Timestamp.parse( response.headers['x-amz-object-lock-retain-until-date']!, format: _i2.TimestampFormat.dateTime, ).asDateTime; - } - if (response.headers['x-amz-object-lock-legal-hold'] != null) { - b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values - .byValue(response.headers['x-amz-object-lock-legal-hold']!); - } - b.metadata.addEntries(response.headers.entries - .where((el) => el.key.startsWith('x-amz-meta-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'x-amz-meta-', - '', - ), - el.value, - ))); - }); + } + if (response.headers['x-amz-object-lock-legal-hold'] != null) { + b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values.byValue( + response.headers['x-amz-object-lock-legal-hold']!, + ); + } + b.metadata.addEntries( + response.headers.entries + .where((el) => el.key.startsWith('x-amz-meta-')) + .map( + (el) => MapEntry(el.key.replaceFirst('x-amz-meta-', ''), el.value), + ), + ); + }); static const List<_i2.SmithySerializer> serializers = [HeadObjectOutputRestXmlSerializer()]; @@ -418,181 +424,80 @@ abstract class HeadObjectOutput @override List get props => [ - deleteMarker, - acceptRanges, - expiration, - restore, - archiveStatus, - lastModified, - contentLength, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - eTag, - missingMeta, - versionId, - cacheControl, - contentDisposition, - contentEncoding, - contentLanguage, - contentType, - expires, - websiteRedirectLocation, - serverSideEncryption, - metadata, - sseCustomerAlgorithm, - sseCustomerKeyMd5, - ssekmsKeyId, - bucketKeyEnabled, - storageClass, - requestCharged, - replicationStatus, - partsCount, - objectLockMode, - objectLockRetainUntilDate, - objectLockLegalHoldStatus, - ]; + deleteMarker, + acceptRanges, + expiration, + restore, + archiveStatus, + lastModified, + contentLength, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + eTag, + missingMeta, + versionId, + cacheControl, + contentDisposition, + contentEncoding, + contentLanguage, + contentType, + expires, + websiteRedirectLocation, + serverSideEncryption, + metadata, + sseCustomerAlgorithm, + sseCustomerKeyMd5, + ssekmsKeyId, + bucketKeyEnabled, + storageClass, + requestCharged, + replicationStatus, + partsCount, + objectLockMode, + objectLockRetainUntilDate, + objectLockLegalHoldStatus, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('HeadObjectOutput') - ..add( - 'deleteMarker', - deleteMarker, - ) - ..add( - 'acceptRanges', - acceptRanges, - ) - ..add( - 'expiration', - expiration, - ) - ..add( - 'restore', - restore, - ) - ..add( - 'archiveStatus', - archiveStatus, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'contentLength', - contentLength, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'missingMeta', - missingMeta, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'cacheControl', - cacheControl, - ) - ..add( - 'contentDisposition', - contentDisposition, - ) - ..add( - 'contentEncoding', - contentEncoding, - ) - ..add( - 'contentLanguage', - contentLanguage, - ) - ..add( - 'contentType', - contentType, - ) - ..add( - 'expires', - expires, - ) - ..add( - 'websiteRedirectLocation', - websiteRedirectLocation, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'metadata', - metadata, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'requestCharged', - requestCharged, - ) - ..add( - 'replicationStatus', - replicationStatus, - ) - ..add( - 'partsCount', - partsCount, - ) - ..add( - 'objectLockMode', - objectLockMode, - ) - ..add( - 'objectLockRetainUntilDate', - objectLockRetainUntilDate, - ) - ..add( - 'objectLockLegalHoldStatus', - objectLockLegalHoldStatus, - ); + final helper = + newBuiltValueToStringHelper('HeadObjectOutput') + ..add('deleteMarker', deleteMarker) + ..add('acceptRanges', acceptRanges) + ..add('expiration', expiration) + ..add('restore', restore) + ..add('archiveStatus', archiveStatus) + ..add('lastModified', lastModified) + ..add('contentLength', contentLength) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('eTag', eTag) + ..add('missingMeta', missingMeta) + ..add('versionId', versionId) + ..add('cacheControl', cacheControl) + ..add('contentDisposition', contentDisposition) + ..add('contentEncoding', contentEncoding) + ..add('contentLanguage', contentLanguage) + ..add('contentType', contentType) + ..add('expires', expires) + ..add('websiteRedirectLocation', websiteRedirectLocation) + ..add('serverSideEncryption', serverSideEncryption) + ..add('metadata', metadata) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('storageClass', storageClass) + ..add('requestCharged', requestCharged) + ..add('replicationStatus', replicationStatus) + ..add('partsCount', partsCount) + ..add('objectLockMode', objectLockMode) + ..add('objectLockRetainUntilDate', objectLockRetainUntilDate) + ..add('objectLockLegalHoldStatus', objectLockLegalHoldStatus); return helper.toString(); } } @@ -603,9 +508,9 @@ abstract class HeadObjectOutputPayload implements Built, _i2.EmptyPayload { - factory HeadObjectOutputPayload( - [void Function(HeadObjectOutputPayloadBuilder) updates]) = - _$HeadObjectOutputPayload; + factory HeadObjectOutputPayload([ + void Function(HeadObjectOutputPayloadBuilder) updates, + ]) = _$HeadObjectOutputPayload; const HeadObjectOutputPayload._(); @@ -625,19 +530,16 @@ class HeadObjectOutputRestXmlSerializer @override Iterable get types => const [ - HeadObjectOutput, - _$HeadObjectOutput, - HeadObjectOutputPayload, - _$HeadObjectOutputPayload, - ]; + HeadObjectOutput, + _$HeadObjectOutput, + HeadObjectOutputPayload, + _$HeadObjectOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HeadObjectOutputPayload deserialize( @@ -658,7 +560,7 @@ class HeadObjectOutputRestXmlSerializer const _i2.XmlElementName( 'HeadObjectOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.g.dart index 05f6d49de3..21f3c25d80 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_output.g.dart @@ -76,46 +76,46 @@ class _$HeadObjectOutput extends HeadObjectOutput { @override final ObjectLockLegalHoldStatus? objectLockLegalHoldStatus; - factory _$HeadObjectOutput( - [void Function(HeadObjectOutputBuilder)? updates]) => - (new HeadObjectOutputBuilder()..update(updates))._build(); - - _$HeadObjectOutput._( - {this.deleteMarker, - this.acceptRanges, - this.expiration, - this.restore, - this.archiveStatus, - this.lastModified, - this.contentLength, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.eTag, - this.missingMeta, - this.versionId, - this.cacheControl, - this.contentDisposition, - this.contentEncoding, - this.contentLanguage, - this.contentType, - this.expires, - this.websiteRedirectLocation, - this.serverSideEncryption, - this.metadata, - this.sseCustomerAlgorithm, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.bucketKeyEnabled, - this.storageClass, - this.requestCharged, - this.replicationStatus, - this.partsCount, - this.objectLockMode, - this.objectLockRetainUntilDate, - this.objectLockLegalHoldStatus}) - : super._(); + factory _$HeadObjectOutput([ + void Function(HeadObjectOutputBuilder)? updates, + ]) => (new HeadObjectOutputBuilder()..update(updates))._build(); + + _$HeadObjectOutput._({ + this.deleteMarker, + this.acceptRanges, + this.expiration, + this.restore, + this.archiveStatus, + this.lastModified, + this.contentLength, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.eTag, + this.missingMeta, + this.versionId, + this.cacheControl, + this.contentDisposition, + this.contentEncoding, + this.contentLanguage, + this.contentType, + this.expires, + this.websiteRedirectLocation, + this.serverSideEncryption, + this.metadata, + this.sseCustomerAlgorithm, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.bucketKeyEnabled, + this.storageClass, + this.requestCharged, + this.replicationStatus, + this.partsCount, + this.objectLockMode, + this.objectLockRetainUntilDate, + this.objectLockLegalHoldStatus, + }) : super._(); @override HeadObjectOutput rebuild(void Function(HeadObjectOutputBuilder) updates) => @@ -369,8 +369,8 @@ class HeadObjectOutputBuilder ObjectLockLegalHoldStatus? get objectLockLegalHoldStatus => _$this._objectLockLegalHoldStatus; set objectLockLegalHoldStatus( - ObjectLockLegalHoldStatus? objectLockLegalHoldStatus) => - _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; + ObjectLockLegalHoldStatus? objectLockLegalHoldStatus, + ) => _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; HeadObjectOutputBuilder(); @@ -433,7 +433,8 @@ class HeadObjectOutputBuilder _$HeadObjectOutput _build() { _$HeadObjectOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$HeadObjectOutput._( deleteMarker: deleteMarker, acceptRanges: acceptRanges, @@ -477,7 +478,10 @@ class HeadObjectOutputBuilder _metadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'HeadObjectOutput', _$failedField, e.toString()); + r'HeadObjectOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -487,16 +491,16 @@ class HeadObjectOutputBuilder } class _$HeadObjectOutputPayload extends HeadObjectOutputPayload { - factory _$HeadObjectOutputPayload( - [void Function(HeadObjectOutputPayloadBuilder)? updates]) => - (new HeadObjectOutputPayloadBuilder()..update(updates))._build(); + factory _$HeadObjectOutputPayload([ + void Function(HeadObjectOutputPayloadBuilder)? updates, + ]) => (new HeadObjectOutputPayloadBuilder()..update(updates))._build(); _$HeadObjectOutputPayload._() : super._(); @override HeadObjectOutputPayload rebuild( - void Function(HeadObjectOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HeadObjectOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HeadObjectOutputPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart index 3ab4e24dac..0bce675bee 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.dart @@ -57,8 +57,9 @@ abstract class HeadObjectRequest ); } - factory HeadObjectRequest.build( - [void Function(HeadObjectRequestBuilder) updates]) = _$HeadObjectRequest; + factory HeadObjectRequest.build([ + void Function(HeadObjectRequestBuilder) updates, + ]) = _$HeadObjectRequest; const HeadObjectRequest._(); @@ -66,73 +67,73 @@ abstract class HeadObjectRequest HeadObjectRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - HeadObjectRequest.build((b) { - if (request.headers['If-Match'] != null) { - b.ifMatch = request.headers['If-Match']!; - } - if (request.headers['If-Modified-Since'] != null) { - b.ifModifiedSince = _i1.Timestamp.parse( + }) => HeadObjectRequest.build((b) { + if (request.headers['If-Match'] != null) { + b.ifMatch = request.headers['If-Match']!; + } + if (request.headers['If-Modified-Since'] != null) { + b.ifModifiedSince = + _i1.Timestamp.parse( request.headers['If-Modified-Since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['If-None-Match'] != null) { - b.ifNoneMatch = request.headers['If-None-Match']!; - } - if (request.headers['If-Unmodified-Since'] != null) { - b.ifUnmodifiedSince = _i1.Timestamp.parse( + } + if (request.headers['If-None-Match'] != null) { + b.ifNoneMatch = request.headers['If-None-Match']!; + } + if (request.headers['If-Unmodified-Since'] != null) { + b.ifUnmodifiedSince = + _i1.Timestamp.parse( request.headers['If-Unmodified-Since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['Range'] != null) { - b.range = request.headers['Range']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-checksum-mode'] != null) { - b.checksumMode = ChecksumMode.values - .byValue(request.headers['x-amz-checksum-mode']!); - } - if (request.queryParameters['versionId'] != null) { - b.versionId = request.queryParameters['versionId']!; - } - if (request.queryParameters['partNumber'] != null) { - b.partNumber = int.parse(request.queryParameters['partNumber']!); - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + } + if (request.headers['Range'] != null) { + b.range = request.headers['Range']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-checksum-mode'] != null) { + b.checksumMode = ChecksumMode.values.byValue( + request.headers['x-amz-checksum-mode']!, + ); + } + if (request.queryParameters['versionId'] != null) { + b.versionId = request.queryParameters['versionId']!; + } + if (request.queryParameters['partNumber'] != null) { + b.partNumber = int.parse(request.queryParameters['partNumber']!); + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [HeadObjectRequestRestXmlSerializer()]; + serializers = [HeadObjectRequestRestXmlSerializer()]; /// The name of the bucket that contains the object. /// @@ -250,10 +251,7 @@ abstract class HeadObjectRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -261,86 +259,42 @@ abstract class HeadObjectRequest @override List get props => [ - bucket, - ifMatch, - ifModifiedSince, - ifNoneMatch, - ifUnmodifiedSince, - key, - range, - versionId, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - requestPayer, - partNumber, - expectedBucketOwner, - checksumMode, - ]; + bucket, + ifMatch, + ifModifiedSince, + ifNoneMatch, + ifUnmodifiedSince, + key, + range, + versionId, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + requestPayer, + partNumber, + expectedBucketOwner, + checksumMode, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('HeadObjectRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'ifMatch', - ifMatch, - ) - ..add( - 'ifModifiedSince', - ifModifiedSince, - ) - ..add( - 'ifNoneMatch', - ifNoneMatch, - ) - ..add( - 'ifUnmodifiedSince', - ifUnmodifiedSince, - ) - ..add( - 'key', - key, - ) - ..add( - 'range', - range, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'partNumber', - partNumber, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'checksumMode', - checksumMode, - ); + final helper = + newBuiltValueToStringHelper('HeadObjectRequest') + ..add('bucket', bucket) + ..add('ifMatch', ifMatch) + ..add('ifModifiedSince', ifModifiedSince) + ..add('ifNoneMatch', ifNoneMatch) + ..add('ifUnmodifiedSince', ifUnmodifiedSince) + ..add('key', key) + ..add('range', range) + ..add('versionId', versionId) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('requestPayer', requestPayer) + ..add('partNumber', partNumber) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('checksumMode', checksumMode); return helper.toString(); } } @@ -351,9 +305,9 @@ abstract class HeadObjectRequestPayload implements Built, _i1.EmptyPayload { - factory HeadObjectRequestPayload( - [void Function(HeadObjectRequestPayloadBuilder) updates]) = - _$HeadObjectRequestPayload; + factory HeadObjectRequestPayload([ + void Function(HeadObjectRequestPayloadBuilder) updates, + ]) = _$HeadObjectRequestPayload; const HeadObjectRequestPayload._(); @@ -373,19 +327,16 @@ class HeadObjectRequestRestXmlSerializer @override Iterable get types => const [ - HeadObjectRequest, - _$HeadObjectRequest, - HeadObjectRequestPayload, - _$HeadObjectRequestPayload, - ]; + HeadObjectRequest, + _$HeadObjectRequest, + HeadObjectRequestPayload, + _$HeadObjectRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override HeadObjectRequestPayload deserialize( @@ -406,7 +357,7 @@ class HeadObjectRequestRestXmlSerializer const _i1.XmlElementName( 'HeadObjectRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.g.dart index 1801331573..c380db7c4d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/head_object_request.g.dart @@ -38,29 +38,32 @@ class _$HeadObjectRequest extends HeadObjectRequest { @override final ChecksumMode? checksumMode; - factory _$HeadObjectRequest( - [void Function(HeadObjectRequestBuilder)? updates]) => - (new HeadObjectRequestBuilder()..update(updates))._build(); - - _$HeadObjectRequest._( - {required this.bucket, - this.ifMatch, - this.ifModifiedSince, - this.ifNoneMatch, - this.ifUnmodifiedSince, - required this.key, - this.range, - this.versionId, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - this.requestPayer, - this.partNumber, - this.expectedBucketOwner, - this.checksumMode}) - : super._() { + factory _$HeadObjectRequest([ + void Function(HeadObjectRequestBuilder)? updates, + ]) => (new HeadObjectRequestBuilder()..update(updates))._build(); + + _$HeadObjectRequest._({ + required this.bucket, + this.ifMatch, + this.ifModifiedSince, + this.ifNoneMatch, + this.ifUnmodifiedSince, + required this.key, + this.range, + this.versionId, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + this.requestPayer, + this.partNumber, + this.expectedBucketOwner, + this.checksumMode, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'HeadObjectRequest', 'bucket'); + bucket, + r'HeadObjectRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull(key, r'HeadObjectRequest', 'key'); } @@ -228,16 +231,23 @@ class HeadObjectRequestBuilder HeadObjectRequest build() => _build(); _$HeadObjectRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$HeadObjectRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'HeadObjectRequest', 'bucket'), + bucket, + r'HeadObjectRequest', + 'bucket', + ), ifMatch: ifMatch, ifModifiedSince: ifModifiedSince, ifNoneMatch: ifNoneMatch, ifUnmodifiedSince: ifUnmodifiedSince, key: BuiltValueNullFieldError.checkNotNull( - key, r'HeadObjectRequest', 'key'), + key, + r'HeadObjectRequest', + 'key', + ), range: range, versionId: versionId, sseCustomerAlgorithm: sseCustomerAlgorithm, @@ -254,16 +264,16 @@ class HeadObjectRequestBuilder } class _$HeadObjectRequestPayload extends HeadObjectRequestPayload { - factory _$HeadObjectRequestPayload( - [void Function(HeadObjectRequestPayloadBuilder)? updates]) => - (new HeadObjectRequestPayloadBuilder()..update(updates))._build(); + factory _$HeadObjectRequestPayload([ + void Function(HeadObjectRequestPayloadBuilder)? updates, + ]) => (new HeadObjectRequestPayloadBuilder()..update(updates))._build(); _$HeadObjectRequestPayload._() : super._(); @override HeadObjectRequestPayload rebuild( - void Function(HeadObjectRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(HeadObjectRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override HeadObjectRequestPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.dart index 542e8e58cb..019a96b73e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.dart @@ -15,14 +15,8 @@ abstract class Initiator with _i1.AWSEquatable implements Built { /// Container element that identifies who initiated the multipart upload. - factory Initiator({ - String? id, - String? displayName, - }) { - return _$Initiator._( - id: id, - displayName: displayName, - ); + factory Initiator({String? id, String? displayName}) { + return _$Initiator._(id: id, displayName: displayName); } /// Container element that identifies who initiated the multipart upload. @@ -32,7 +26,7 @@ abstract class Initiator const Initiator._(); static const List<_i2.SmithySerializer> serializers = [ - InitiatorRestXmlSerializer() + InitiatorRestXmlSerializer(), ]; /// If the principal is an Amazon Web Services account, it provides the Canonical User ID. If the principal is an IAM User, it provides a user ARN value. @@ -45,22 +39,14 @@ abstract class Initiator /// This functionality is not supported for directory buckets. String? get displayName; @override - List get props => [ - id, - displayName, - ]; + List get props => [id, displayName]; @override String toString() { - final helper = newBuiltValueToStringHelper('Initiator') - ..add( - 'id', - id, - ) - ..add( - 'displayName', - displayName, - ); + final helper = + newBuiltValueToStringHelper('Initiator') + ..add('id', id) + ..add('displayName', displayName); return helper.toString(); } } @@ -70,18 +56,12 @@ class InitiatorRestXmlSerializer const InitiatorRestXmlSerializer() : super('Initiator'); @override - Iterable get types => const [ - Initiator, - _$Initiator, - ]; + Iterable get types => const [Initiator, _$Initiator]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Initiator deserialize( @@ -100,15 +80,19 @@ class InitiatorRestXmlSerializer } switch (key) { case 'DisplayName': - result.displayName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.displayName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ID': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -125,24 +109,23 @@ class InitiatorRestXmlSerializer const _i2.XmlElementName( 'Initiator', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Initiator(:displayName, :id) = object; if (displayName != null) { result$ ..add(const _i2.XmlElementName('DisplayName')) - ..add(serializers.serialize( - displayName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + displayName, + specifiedType: const FullType(String), + ), + ); } if (id != null) { result$ ..add(const _i2.XmlElementName('ID')) - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.g.dart index 9400a66bb5..37be3be1de 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/initiator.g.dart @@ -80,11 +80,7 @@ class InitiatorBuilder implements Builder { Initiator build() => _build(); _$Initiator _build() { - final _$result = _$v ?? - new _$Initiator._( - id: id, - displayName: displayName, - ); + final _$result = _$v ?? new _$Initiator._(id: id, displayName: displayName); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.dart index 3bd6698f69..3171158a71 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.dart @@ -34,14 +34,14 @@ abstract class InputSerialization } /// Describes the serialization format of the object. - factory InputSerialization.build( - [void Function(InputSerializationBuilder) updates]) = - _$InputSerialization; + factory InputSerialization.build([ + void Function(InputSerializationBuilder) updates, + ]) = _$InputSerialization; const InputSerialization._(); static const List<_i2.SmithySerializer> serializers = [ - InputSerializationRestXmlSerializer() + InputSerializationRestXmlSerializer(), ]; /// Describes the serialization of a CSV-encoded object. @@ -56,32 +56,16 @@ abstract class InputSerialization /// Specifies Parquet as object's input serialization format. ParquetInput? get parquet; @override - List get props => [ - csv, - compressionType, - json, - parquet, - ]; + List get props => [csv, compressionType, json, parquet]; @override String toString() { - final helper = newBuiltValueToStringHelper('InputSerialization') - ..add( - 'csv', - csv, - ) - ..add( - 'compressionType', - compressionType, - ) - ..add( - 'json', - json, - ) - ..add( - 'parquet', - parquet, - ); + final helper = + newBuiltValueToStringHelper('InputSerialization') + ..add('csv', csv) + ..add('compressionType', compressionType) + ..add('json', json) + ..add('parquet', parquet); return helper.toString(); } } @@ -91,18 +75,12 @@ class InputSerializationRestXmlSerializer const InputSerializationRestXmlSerializer() : super('InputSerialization'); @override - Iterable get types => const [ - InputSerialization, - _$InputSerialization, - ]; + Iterable get types => const [InputSerialization, _$InputSerialization]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InputSerialization deserialize( @@ -121,25 +99,36 @@ class InputSerializationRestXmlSerializer } switch (key) { case 'CompressionType': - result.compressionType = (serializers.deserialize( - value, - specifiedType: const FullType(CompressionType), - ) as CompressionType); + result.compressionType = + (serializers.deserialize( + value, + specifiedType: const FullType(CompressionType), + ) + as CompressionType); case 'CSV': - result.csv.replace((serializers.deserialize( - value, - specifiedType: const FullType(CsvInput), - ) as CsvInput)); + result.csv.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CsvInput), + ) + as CsvInput), + ); case 'JSON': - result.json.replace((serializers.deserialize( - value, - specifiedType: const FullType(JsonInput), - ) as JsonInput)); + result.json.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(JsonInput), + ) + as JsonInput), + ); case 'Parquet': - result.parquet.replace((serializers.deserialize( - value, - specifiedType: const FullType(ParquetInput), - ) as ParquetInput)); + result.parquet.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ParquetInput), + ) + as ParquetInput), + ); } } @@ -156,40 +145,42 @@ class InputSerializationRestXmlSerializer const _i2.XmlElementName( 'InputSerialization', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final InputSerialization(:compressionType, :csv, :json, :parquet) = object; if (compressionType != null) { result$ ..add(const _i2.XmlElementName('CompressionType')) - ..add(serializers.serialize( - compressionType, - specifiedType: const FullType(CompressionType), - )); + ..add( + serializers.serialize( + compressionType, + specifiedType: const FullType(CompressionType), + ), + ); } if (csv != null) { result$ ..add(const _i2.XmlElementName('CSV')) - ..add(serializers.serialize( - csv, - specifiedType: const FullType(CsvInput), - )); + ..add( + serializers.serialize(csv, specifiedType: const FullType(CsvInput)), + ); } if (json != null) { result$ ..add(const _i2.XmlElementName('JSON')) - ..add(serializers.serialize( - json, - specifiedType: const FullType(JsonInput), - )); + ..add( + serializers.serialize(json, specifiedType: const FullType(JsonInput)), + ); } if (parquet != null) { result$ ..add(const _i2.XmlElementName('Parquet')) - ..add(serializers.serialize( - parquet, - specifiedType: const FullType(ParquetInput), - )); + ..add( + serializers.serialize( + parquet, + specifiedType: const FullType(ParquetInput), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.g.dart index 8258a95008..a1ceda78d1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/input_serialization.g.dart @@ -16,18 +16,21 @@ class _$InputSerialization extends InputSerialization { @override final ParquetInput? parquet; - factory _$InputSerialization( - [void Function(InputSerializationBuilder)? updates]) => - (new InputSerializationBuilder()..update(updates))._build(); + factory _$InputSerialization([ + void Function(InputSerializationBuilder)? updates, + ]) => (new InputSerializationBuilder()..update(updates))._build(); - _$InputSerialization._( - {this.csv, this.compressionType, this.json, this.parquet}) - : super._(); + _$InputSerialization._({ + this.csv, + this.compressionType, + this.json, + this.parquet, + }) : super._(); @override InputSerialization rebuild( - void Function(InputSerializationBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InputSerializationBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InputSerializationBuilder toBuilder() => @@ -108,7 +111,8 @@ class InputSerializationBuilder _$InputSerialization _build() { _$InputSerialization _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$InputSerialization._( csv: _csv?.build(), compressionType: compressionType, @@ -127,7 +131,10 @@ class InputSerializationBuilder _parquet?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'InputSerialization', _$failedField, e.toString()); + r'InputSerialization', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/intelligent_tiering_access_tier.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/intelligent_tiering_access_tier.dart index 8a9acb7724..f81f444854 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/intelligent_tiering_access_tier.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/intelligent_tiering_access_tier.dart @@ -7,14 +7,10 @@ import 'package:smithy/smithy.dart' as _i1; class IntelligentTieringAccessTier extends _i1.SmithyEnum { - const IntelligentTieringAccessTier._( - super.index, - super.name, - super.value, - ); + const IntelligentTieringAccessTier._(super.index, super.name, super.value); const IntelligentTieringAccessTier._sdkUnknown(super.value) - : super.sdkUnknown(); + : super.sdkUnknown(); static const archiveAccess = IntelligentTieringAccessTier._( 0, @@ -35,18 +31,15 @@ class IntelligentTieringAccessTier ]; static const List<_i1.SmithySerializer> - serializers = [ + serializers = [ _i1.SmithyEnumSerializer( 'IntelligentTieringAccessTier', values: values, sdkUnknown: IntelligentTieringAccessTier._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.dart index e2be8e1000..7bda8406b3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.dart @@ -36,9 +36,9 @@ abstract class InvalidObjectState /// Object is archived and inaccessible until restored. /// /// If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a copy using [RestoreObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). Otherwise, this operation returns an `InvalidObjectState` error. For information about restoring archived objects, see [Restoring Archived Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) in the _Amazon S3 User Guide_. - factory InvalidObjectState.build( - [void Function(InvalidObjectStateBuilder) updates]) = - _$InvalidObjectState; + factory InvalidObjectState.build([ + void Function(InvalidObjectStateBuilder) updates, + ]) = _$InvalidObjectState; const InvalidObjectState._(); @@ -46,22 +46,21 @@ abstract class InvalidObjectState factory InvalidObjectState.fromResponse( InvalidObjectState payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - InvalidObjectStateRestXmlSerializer() + InvalidObjectStateRestXmlSerializer(), ]; StorageClass? get storageClass; IntelligentTieringAccessTier? get accessTier; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'InvalidObjectState', - ); + namespace: 'com.amazonaws.s3', + shape: 'InvalidObjectState', + ); @override String? get message => null; @@ -80,22 +79,14 @@ abstract class InvalidObjectState Exception? get underlyingException => null; @override - List get props => [ - storageClass, - accessTier, - ]; + List get props => [storageClass, accessTier]; @override String toString() { - final helper = newBuiltValueToStringHelper('InvalidObjectState') - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'accessTier', - accessTier, - ); + final helper = + newBuiltValueToStringHelper('InvalidObjectState') + ..add('storageClass', storageClass) + ..add('accessTier', accessTier); return helper.toString(); } } @@ -105,18 +96,12 @@ class InvalidObjectStateRestXmlSerializer const InvalidObjectStateRestXmlSerializer() : super('InvalidObjectState'); @override - Iterable get types => const [ - InvalidObjectState, - _$InvalidObjectState, - ]; + Iterable get types => const [InvalidObjectState, _$InvalidObjectState]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override InvalidObjectState deserialize( @@ -135,15 +120,19 @@ class InvalidObjectStateRestXmlSerializer } switch (key) { case 'AccessTier': - result.accessTier = (serializers.deserialize( - value, - specifiedType: const FullType(IntelligentTieringAccessTier), - ) as IntelligentTieringAccessTier); + result.accessTier = + (serializers.deserialize( + value, + specifiedType: const FullType(IntelligentTieringAccessTier), + ) + as IntelligentTieringAccessTier); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(StorageClass), - ) as StorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(StorageClass), + ) + as StorageClass); } } @@ -160,24 +149,28 @@ class InvalidObjectStateRestXmlSerializer const _i2.XmlElementName( 'InvalidObjectState', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final InvalidObjectState(:accessTier, :storageClass) = object; if (accessTier != null) { result$ ..add(const _i2.XmlElementName('AccessTier')) - ..add(serializers.serialize( - accessTier, - specifiedType: const FullType(IntelligentTieringAccessTier), - )); + ..add( + serializers.serialize( + accessTier, + specifiedType: const FullType(IntelligentTieringAccessTier), + ), + ); } if (storageClass != null) { result$ ..add(const _i2.XmlElementName('StorageClass')) - ..add(serializers.serialize( - storageClass, - specifiedType: const FullType(StorageClass), - )); + ..add( + serializers.serialize( + storageClass, + specifiedType: const FullType(StorageClass), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.g.dart index 8d5b5bfae9..792aae2e3c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/invalid_object_state.g.dart @@ -14,17 +14,17 @@ class _$InvalidObjectState extends InvalidObjectState { @override final Map? headers; - factory _$InvalidObjectState( - [void Function(InvalidObjectStateBuilder)? updates]) => - (new InvalidObjectStateBuilder()..update(updates))._build(); + factory _$InvalidObjectState([ + void Function(InvalidObjectStateBuilder)? updates, + ]) => (new InvalidObjectStateBuilder()..update(updates))._build(); _$InvalidObjectState._({this.storageClass, this.accessTier, this.headers}) - : super._(); + : super._(); @override InvalidObjectState rebuild( - void Function(InvalidObjectStateBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidObjectStateBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidObjectStateBuilder toBuilder() => @@ -94,7 +94,8 @@ class InvalidObjectStateBuilder InvalidObjectState build() => _build(); _$InvalidObjectState _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidObjectState._( storageClass: storageClass, accessTier: accessTier, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.dart index 6022be21af..b5788fb373 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.dart @@ -27,7 +27,7 @@ abstract class JsonInput const JsonInput._(); static const List<_i2.SmithySerializer> serializers = [ - JsonInputRestXmlSerializer() + JsonInputRestXmlSerializer(), ]; /// The type of JSON. Valid values: Document, Lines. @@ -37,11 +37,7 @@ abstract class JsonInput @override String toString() { - final helper = newBuiltValueToStringHelper('JsonInput') - ..add( - 'type', - type, - ); + final helper = newBuiltValueToStringHelper('JsonInput')..add('type', type); return helper.toString(); } } @@ -51,18 +47,12 @@ class JsonInputRestXmlSerializer const JsonInputRestXmlSerializer() : super('JsonInput'); @override - Iterable get types => const [ - JsonInput, - _$JsonInput, - ]; + Iterable get types => const [JsonInput, _$JsonInput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override JsonInput deserialize( @@ -81,10 +71,12 @@ class JsonInputRestXmlSerializer } switch (key) { case 'Type': - result.type = (serializers.deserialize( - value, - specifiedType: const FullType(JsonType), - ) as JsonType); + result.type = + (serializers.deserialize( + value, + specifiedType: const FullType(JsonType), + ) + as JsonType); } } @@ -101,16 +93,15 @@ class JsonInputRestXmlSerializer const _i2.XmlElementName( 'JsonInput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final JsonInput(:type) = object; if (type != null) { result$ ..add(const _i2.XmlElementName('Type')) - ..add(serializers.serialize( - type, - specifiedType: const FullType(JsonType), - )); + ..add( + serializers.serialize(type, specifiedType: const FullType(JsonType)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.g.dart index abfd56982a..fdc0ef1f42 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_input.g.dart @@ -70,10 +70,7 @@ class JsonInputBuilder implements Builder { JsonInput build() => _build(); _$JsonInput _build() { - final _$result = _$v ?? - new _$JsonInput._( - type: type, - ); + final _$result = _$v ?? new _$JsonInput._(type: type); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.dart index 6654754b8f..a1c0ec9d2c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.dart @@ -26,7 +26,7 @@ abstract class JsonOutput const JsonOutput._(); static const List<_i2.SmithySerializer> serializers = [ - JsonOutputRestXmlSerializer() + JsonOutputRestXmlSerializer(), ]; /// The value used to separate individual records in the output. If no value is specified, Amazon S3 uses a newline character ('\\n'). @@ -37,10 +37,7 @@ abstract class JsonOutput @override String toString() { final helper = newBuiltValueToStringHelper('JsonOutput') - ..add( - 'recordDelimiter', - recordDelimiter, - ); + ..add('recordDelimiter', recordDelimiter); return helper.toString(); } } @@ -50,18 +47,12 @@ class JsonOutputRestXmlSerializer const JsonOutputRestXmlSerializer() : super('JsonOutput'); @override - Iterable get types => const [ - JsonOutput, - _$JsonOutput, - ]; + Iterable get types => const [JsonOutput, _$JsonOutput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override JsonOutput deserialize( @@ -80,10 +71,12 @@ class JsonOutputRestXmlSerializer } switch (key) { case 'RecordDelimiter': - result.recordDelimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.recordDelimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -100,16 +93,18 @@ class JsonOutputRestXmlSerializer const _i2.XmlElementName( 'JsonOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final JsonOutput(:recordDelimiter) = object; if (recordDelimiter != null) { result$ ..add(const _i2.XmlElementName('RecordDelimiter')) - ..add(serializers.serialize( - recordDelimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + recordDelimiter, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.g.dart index b565cfa886..3041d47dc9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_output.g.dart @@ -71,10 +71,8 @@ class JsonOutputBuilder implements Builder { JsonOutput build() => _build(); _$JsonOutput _build() { - final _$result = _$v ?? - new _$JsonOutput._( - recordDelimiter: recordDelimiter, - ); + final _$result = + _$v ?? new _$JsonOutput._(recordDelimiter: recordDelimiter); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_type.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_type.dart index 33fe7a2b8c..a29c9657f8 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_type.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/json_type.dart @@ -6,31 +6,16 @@ library amplify_storage_s3_dart.s3.model.json_type; // ignore_for_file: no_leadi import 'package:smithy/smithy.dart' as _i1; class JsonType extends _i1.SmithyEnum { - const JsonType._( - super.index, - super.name, - super.value, - ); + const JsonType._(super.index, super.name, super.value); const JsonType._sdkUnknown(super.value) : super.sdkUnknown(); - static const document = JsonType._( - 0, - 'DOCUMENT', - 'DOCUMENT', - ); + static const document = JsonType._(0, 'DOCUMENT', 'DOCUMENT'); - static const lines = JsonType._( - 1, - 'LINES', - 'LINES', - ); + static const lines = JsonType._(1, 'LINES', 'LINES'); /// All values of [JsonType]. - static const values = [ - JsonType.document, - JsonType.lines, - ]; + static const values = [JsonType.document, JsonType.lines]; static const List<_i1.SmithySerializer> serializers = [ _i1.SmithyEnumSerializer( @@ -38,12 +23,9 @@ class JsonType extends _i1.SmithyEnum { values: values, sdkUnknown: JsonType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart index a2cf711c40..e98ab007f0 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.dart @@ -54,9 +54,9 @@ abstract class ListMultipartUploadsOutput ); } - factory ListMultipartUploadsOutput.build( - [void Function(ListMultipartUploadsOutputBuilder) updates]) = - _$ListMultipartUploadsOutput; + factory ListMultipartUploadsOutput.build([ + void Function(ListMultipartUploadsOutputBuilder) updates, + ]) = _$ListMultipartUploadsOutput; const ListMultipartUploadsOutput._(); @@ -64,32 +64,32 @@ abstract class ListMultipartUploadsOutput factory ListMultipartUploadsOutput.fromResponse( ListMultipartUploadsOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ListMultipartUploadsOutput.build((b) { - b.bucket = payload.bucket; - if (payload.commonPrefixes != null) { - b.commonPrefixes.replace(payload.commonPrefixes!); - } - b.delimiter = payload.delimiter; - b.encodingType = payload.encodingType; - b.isTruncated = payload.isTruncated; - b.keyMarker = payload.keyMarker; - b.maxUploads = payload.maxUploads; - b.nextKeyMarker = payload.nextKeyMarker; - b.nextUploadIdMarker = payload.nextUploadIdMarker; - b.prefix = payload.prefix; - b.uploadIdMarker = payload.uploadIdMarker; - if (payload.uploads != null) { - b.uploads.replace(payload.uploads!); - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => ListMultipartUploadsOutput.build((b) { + b.bucket = payload.bucket; + if (payload.commonPrefixes != null) { + b.commonPrefixes.replace(payload.commonPrefixes!); + } + b.delimiter = payload.delimiter; + b.encodingType = payload.encodingType; + b.isTruncated = payload.isTruncated; + b.keyMarker = payload.keyMarker; + b.maxUploads = payload.maxUploads; + b.nextKeyMarker = payload.nextKeyMarker; + b.nextUploadIdMarker = payload.nextUploadIdMarker; + b.prefix = payload.prefix; + b.uploadIdMarker = payload.uploadIdMarker; + if (payload.uploads != null) { + b.uploads.replace(payload.uploads!); + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [ListMultipartUploadsOutputRestXmlSerializer()]; + serializers = [ListMultipartUploadsOutputRestXmlSerializer()]; /// The name of the bucket to which the multipart upload was initiated. Does not return the access point ARN or access point alias if used. String? get bucket; @@ -168,90 +168,53 @@ abstract class ListMultipartUploadsOutput @override List get props => [ - bucket, - keyMarker, - uploadIdMarker, - nextKeyMarker, - prefix, - delimiter, - nextUploadIdMarker, - maxUploads, - isTruncated, - uploads, - commonPrefixes, - encodingType, - requestCharged, - ]; + bucket, + keyMarker, + uploadIdMarker, + nextKeyMarker, + prefix, + delimiter, + nextUploadIdMarker, + maxUploads, + isTruncated, + uploads, + commonPrefixes, + encodingType, + requestCharged, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListMultipartUploadsOutput') - ..add( - 'bucket', - bucket, - ) - ..add( - 'keyMarker', - keyMarker, - ) - ..add( - 'uploadIdMarker', - uploadIdMarker, - ) - ..add( - 'nextKeyMarker', - nextKeyMarker, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'nextUploadIdMarker', - nextUploadIdMarker, - ) - ..add( - 'maxUploads', - maxUploads, - ) - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'uploads', - uploads, - ) - ..add( - 'commonPrefixes', - commonPrefixes, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('ListMultipartUploadsOutput') + ..add('bucket', bucket) + ..add('keyMarker', keyMarker) + ..add('uploadIdMarker', uploadIdMarker) + ..add('nextKeyMarker', nextKeyMarker) + ..add('prefix', prefix) + ..add('delimiter', delimiter) + ..add('nextUploadIdMarker', nextUploadIdMarker) + ..add('maxUploads', maxUploads) + ..add('isTruncated', isTruncated) + ..add('uploads', uploads) + ..add('commonPrefixes', commonPrefixes) + ..add('encodingType', encodingType) + ..add('requestCharged', requestCharged); return helper.toString(); } } @_i4.internal abstract class ListMultipartUploadsOutputPayload - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { - factory ListMultipartUploadsOutputPayload( - [void Function(ListMultipartUploadsOutputPayloadBuilder) updates]) = - _$ListMultipartUploadsOutputPayload; + Built< + ListMultipartUploadsOutputPayload, + ListMultipartUploadsOutputPayloadBuilder + > { + factory ListMultipartUploadsOutputPayload([ + void Function(ListMultipartUploadsOutputPayloadBuilder) updates, + ]) = _$ListMultipartUploadsOutputPayload; const ListMultipartUploadsOutputPayload._(); @@ -306,72 +269,36 @@ abstract class ListMultipartUploadsOutputPayload _i3.BuiltList? get uploads; @override List get props => [ - bucket, - commonPrefixes, - delimiter, - encodingType, - isTruncated, - keyMarker, - maxUploads, - nextKeyMarker, - nextUploadIdMarker, - prefix, - uploadIdMarker, - uploads, - ]; + bucket, + commonPrefixes, + delimiter, + encodingType, + isTruncated, + keyMarker, + maxUploads, + nextKeyMarker, + nextUploadIdMarker, + prefix, + uploadIdMarker, + uploads, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('ListMultipartUploadsOutputPayload') - ..add( - 'bucket', - bucket, - ) - ..add( - 'commonPrefixes', - commonPrefixes, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'keyMarker', - keyMarker, - ) - ..add( - 'maxUploads', - maxUploads, - ) - ..add( - 'nextKeyMarker', - nextKeyMarker, - ) - ..add( - 'nextUploadIdMarker', - nextUploadIdMarker, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'uploadIdMarker', - uploadIdMarker, - ) - ..add( - 'uploads', - uploads, - ); + ..add('bucket', bucket) + ..add('commonPrefixes', commonPrefixes) + ..add('delimiter', delimiter) + ..add('encodingType', encodingType) + ..add('isTruncated', isTruncated) + ..add('keyMarker', keyMarker) + ..add('maxUploads', maxUploads) + ..add('nextKeyMarker', nextKeyMarker) + ..add('nextUploadIdMarker', nextUploadIdMarker) + ..add('prefix', prefix) + ..add('uploadIdMarker', uploadIdMarker) + ..add('uploads', uploads); return helper.toString(); } } @@ -379,23 +306,20 @@ abstract class ListMultipartUploadsOutputPayload class ListMultipartUploadsOutputRestXmlSerializer extends _i2.StructuredSmithySerializer { const ListMultipartUploadsOutputRestXmlSerializer() - : super('ListMultipartUploadsOutput'); + : super('ListMultipartUploadsOutput'); @override Iterable get types => const [ - ListMultipartUploadsOutput, - _$ListMultipartUploadsOutput, - ListMultipartUploadsOutputPayload, - _$ListMultipartUploadsOutputPayload, - ]; + ListMultipartUploadsOutput, + _$ListMultipartUploadsOutput, + ListMultipartUploadsOutputPayload, + _$ListMultipartUploadsOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListMultipartUploadsOutputPayload deserialize( @@ -414,65 +338,91 @@ class ListMultipartUploadsOutputRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'CommonPrefixes': - result.commonPrefixes.add((serializers.deserialize( - value, - specifiedType: const FullType(CommonPrefix), - ) as CommonPrefix)); + result.commonPrefixes.add( + (serializers.deserialize( + value, + specifiedType: const FullType(CommonPrefix), + ) + as CommonPrefix), + ); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'IsTruncated': - result.isTruncated = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isTruncated = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'KeyMarker': - result.keyMarker = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.keyMarker = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'MaxUploads': - result.maxUploads = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxUploads = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'NextKeyMarker': - result.nextKeyMarker = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextKeyMarker = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'NextUploadIdMarker': - result.nextUploadIdMarker = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextUploadIdMarker = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'UploadIdMarker': - result.uploadIdMarker = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.uploadIdMarker = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Upload': - result.uploads.add((serializers.deserialize( - value, - specifiedType: const FullType(MultipartUpload), - ) as MultipartUpload)); + result.uploads.add( + (serializers.deserialize( + value, + specifiedType: const FullType(MultipartUpload), + ) + as MultipartUpload), + ); } } @@ -489,7 +439,7 @@ class ListMultipartUploadsOutputRestXmlSerializer const _i2.XmlElementName( 'ListMultipartUploadsResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ListMultipartUploadsOutputPayload( :bucket, @@ -503,110 +453,122 @@ class ListMultipartUploadsOutputRestXmlSerializer :nextUploadIdMarker, :prefix, :uploadIdMarker, - :uploads + :uploads, ) = object; if (bucket != null) { result$ ..add(const _i2.XmlElementName('Bucket')) - ..add(serializers.serialize( - bucket, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bucket, specifiedType: const FullType(String)), + ); } if (commonPrefixes != null) { result$.addAll( - const _i2.XmlBuiltListSerializer(memberName: 'CommonPrefixes') - .serialize( - serializers, - commonPrefixes, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(CommonPrefix)], + const _i2.XmlBuiltListSerializer( + memberName: 'CommonPrefixes', + ).serialize( + serializers, + commonPrefixes, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(CommonPrefix), + ]), ), - )); + ); } if (delimiter != null) { result$ ..add(const _i2.XmlElementName('Delimiter')) - ..add(serializers.serialize( - delimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + delimiter, + specifiedType: const FullType(String), + ), + ); } if (encodingType != null) { result$ ..add(const _i2.XmlElementName('EncodingType')) - ..add(serializers.serialize( - encodingType, - specifiedType: const FullType(EncodingType), - )); + ..add( + serializers.serialize( + encodingType, + specifiedType: const FullType(EncodingType), + ), + ); } if (isTruncated != null) { result$ ..add(const _i2.XmlElementName('IsTruncated')) - ..add(serializers.serialize( - isTruncated, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + isTruncated, + specifiedType: const FullType(bool), + ), + ); } if (keyMarker != null) { result$ ..add(const _i2.XmlElementName('KeyMarker')) - ..add(serializers.serialize( - keyMarker, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + keyMarker, + specifiedType: const FullType(String), + ), + ); } if (maxUploads != null) { result$ ..add(const _i2.XmlElementName('MaxUploads')) - ..add(serializers.serialize( - maxUploads, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxUploads, specifiedType: const FullType(int)), + ); } if (nextKeyMarker != null) { result$ ..add(const _i2.XmlElementName('NextKeyMarker')) - ..add(serializers.serialize( - nextKeyMarker, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextKeyMarker, + specifiedType: const FullType(String), + ), + ); } if (nextUploadIdMarker != null) { result$ ..add(const _i2.XmlElementName('NextUploadIdMarker')) - ..add(serializers.serialize( - nextUploadIdMarker, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextUploadIdMarker, + specifiedType: const FullType(String), + ), + ); } if (prefix != null) { result$ ..add(const _i2.XmlElementName('Prefix')) - ..add(serializers.serialize( - prefix, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(prefix, specifiedType: const FullType(String)), + ); } if (uploadIdMarker != null) { result$ ..add(const _i2.XmlElementName('UploadIdMarker')) - ..add(serializers.serialize( - uploadIdMarker, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + uploadIdMarker, + specifiedType: const FullType(String), + ), + ); } if (uploads != null) { result$.addAll( - const _i2.XmlBuiltListSerializer(memberName: 'Upload').serialize( - serializers, - uploads, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(MultipartUpload)], + const _i2.XmlBuiltListSerializer(memberName: 'Upload').serialize( + serializers, + uploads, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(MultipartUpload), + ]), ), - )); + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.g.dart index 90d43365c6..610c00b8c9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_output.g.dart @@ -34,30 +34,30 @@ class _$ListMultipartUploadsOutput extends ListMultipartUploadsOutput { @override final RequestCharged? requestCharged; - factory _$ListMultipartUploadsOutput( - [void Function(ListMultipartUploadsOutputBuilder)? updates]) => - (new ListMultipartUploadsOutputBuilder()..update(updates))._build(); - - _$ListMultipartUploadsOutput._( - {this.bucket, - this.keyMarker, - this.uploadIdMarker, - this.nextKeyMarker, - this.prefix, - this.delimiter, - this.nextUploadIdMarker, - this.maxUploads, - this.isTruncated, - this.uploads, - this.commonPrefixes, - this.encodingType, - this.requestCharged}) - : super._(); + factory _$ListMultipartUploadsOutput([ + void Function(ListMultipartUploadsOutputBuilder)? updates, + ]) => (new ListMultipartUploadsOutputBuilder()..update(updates))._build(); + + _$ListMultipartUploadsOutput._({ + this.bucket, + this.keyMarker, + this.uploadIdMarker, + this.nextKeyMarker, + this.prefix, + this.delimiter, + this.nextUploadIdMarker, + this.maxUploads, + this.isTruncated, + this.uploads, + this.commonPrefixes, + this.encodingType, + this.requestCharged, + }) : super._(); @override ListMultipartUploadsOutput rebuild( - void Function(ListMultipartUploadsOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListMultipartUploadsOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListMultipartUploadsOutputBuilder toBuilder() => @@ -209,7 +209,8 @@ class ListMultipartUploadsOutputBuilder _$ListMultipartUploadsOutput _build() { _$ListMultipartUploadsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListMultipartUploadsOutput._( bucket: bucket, keyMarker: keyMarker, @@ -234,7 +235,10 @@ class ListMultipartUploadsOutputBuilder _commonPrefixes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListMultipartUploadsOutput', _$failedField, e.toString()); + r'ListMultipartUploadsOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -270,30 +274,31 @@ class _$ListMultipartUploadsOutputPayload @override final _i3.BuiltList? uploads; - factory _$ListMultipartUploadsOutputPayload( - [void Function(ListMultipartUploadsOutputPayloadBuilder)? updates]) => + factory _$ListMultipartUploadsOutputPayload([ + void Function(ListMultipartUploadsOutputPayloadBuilder)? updates, + ]) => (new ListMultipartUploadsOutputPayloadBuilder()..update(updates)) ._build(); - _$ListMultipartUploadsOutputPayload._( - {this.bucket, - this.commonPrefixes, - this.delimiter, - this.encodingType, - this.isTruncated, - this.keyMarker, - this.maxUploads, - this.nextKeyMarker, - this.nextUploadIdMarker, - this.prefix, - this.uploadIdMarker, - this.uploads}) - : super._(); + _$ListMultipartUploadsOutputPayload._({ + this.bucket, + this.commonPrefixes, + this.delimiter, + this.encodingType, + this.isTruncated, + this.keyMarker, + this.maxUploads, + this.nextKeyMarker, + this.nextUploadIdMarker, + this.prefix, + this.uploadIdMarker, + this.uploads, + }) : super._(); @override ListMultipartUploadsOutputPayload rebuild( - void Function(ListMultipartUploadsOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListMultipartUploadsOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListMultipartUploadsOutputPayloadBuilder toBuilder() => @@ -339,8 +344,10 @@ class _$ListMultipartUploadsOutputPayload class ListMultipartUploadsOutputPayloadBuilder implements - Builder { + Builder< + ListMultipartUploadsOutputPayload, + ListMultipartUploadsOutputPayloadBuilder + > { _$ListMultipartUploadsOutputPayload? _$v; String? _bucket; @@ -429,7 +436,8 @@ class ListMultipartUploadsOutputPayloadBuilder @override void update( - void Function(ListMultipartUploadsOutputPayloadBuilder)? updates) { + void Function(ListMultipartUploadsOutputPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -439,7 +447,8 @@ class ListMultipartUploadsOutputPayloadBuilder _$ListMultipartUploadsOutputPayload _build() { _$ListMultipartUploadsOutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListMultipartUploadsOutputPayload._( bucket: bucket, commonPrefixes: _commonPrefixes?.build(), @@ -464,7 +473,10 @@ class ListMultipartUploadsOutputPayloadBuilder _uploads?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListMultipartUploadsOutputPayload', _$failedField, e.toString()); + r'ListMultipartUploadsOutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart index 4027d35a37..daa949bd15 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.dart @@ -45,9 +45,9 @@ abstract class ListMultipartUploadsRequest ); } - factory ListMultipartUploadsRequest.build( - [void Function(ListMultipartUploadsRequestBuilder) updates]) = - _$ListMultipartUploadsRequest; + factory ListMultipartUploadsRequest.build([ + void Function(ListMultipartUploadsRequestBuilder) updates, + ]) = _$ListMultipartUploadsRequest; const ListMultipartUploadsRequest._(); @@ -55,42 +55,42 @@ abstract class ListMultipartUploadsRequest ListMultipartUploadsRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ListMultipartUploadsRequest.build((b) { - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.queryParameters['delimiter'] != null) { - b.delimiter = request.queryParameters['delimiter']!; - } - if (request.queryParameters['encoding-type'] != null) { - b.encodingType = EncodingType.values - .byValue(request.queryParameters['encoding-type']!); - } - if (request.queryParameters['key-marker'] != null) { - b.keyMarker = request.queryParameters['key-marker']!; - } - if (request.queryParameters['max-uploads'] != null) { - b.maxUploads = int.parse(request.queryParameters['max-uploads']!); - } - if (request.queryParameters['prefix'] != null) { - b.prefix = request.queryParameters['prefix']!; - } - if (request.queryParameters['upload-id-marker'] != null) { - b.uploadIdMarker = request.queryParameters['upload-id-marker']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - }); + }) => ListMultipartUploadsRequest.build((b) { + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.queryParameters['delimiter'] != null) { + b.delimiter = request.queryParameters['delimiter']!; + } + if (request.queryParameters['encoding-type'] != null) { + b.encodingType = EncodingType.values.byValue( + request.queryParameters['encoding-type']!, + ); + } + if (request.queryParameters['key-marker'] != null) { + b.keyMarker = request.queryParameters['key-marker']!; + } + if (request.queryParameters['max-uploads'] != null) { + b.maxUploads = int.parse(request.queryParameters['max-uploads']!); + } + if (request.queryParameters['prefix'] != null) { + b.prefix = request.queryParameters['prefix']!; + } + if (request.queryParameters['upload-id-marker'] != null) { + b.uploadIdMarker = request.queryParameters['upload-id-marker']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ListMultipartUploadsRequestRestXmlSerializer()]; + serializers = [ListMultipartUploadsRequestRestXmlSerializer()]; /// The name of the bucket to which the multipart upload was initiated. /// @@ -152,10 +152,7 @@ abstract class ListMultipartUploadsRequest case 'Bucket': return bucket; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -164,71 +161,46 @@ abstract class ListMultipartUploadsRequest @override List get props => [ - bucket, - delimiter, - encodingType, - keyMarker, - maxUploads, - prefix, - uploadIdMarker, - expectedBucketOwner, - requestPayer, - ]; + bucket, + delimiter, + encodingType, + keyMarker, + maxUploads, + prefix, + uploadIdMarker, + expectedBucketOwner, + requestPayer, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListMultipartUploadsRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'keyMarker', - keyMarker, - ) - ..add( - 'maxUploads', - maxUploads, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'uploadIdMarker', - uploadIdMarker, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'requestPayer', - requestPayer, - ); + final helper = + newBuiltValueToStringHelper('ListMultipartUploadsRequest') + ..add('bucket', bucket) + ..add('delimiter', delimiter) + ..add('encodingType', encodingType) + ..add('keyMarker', keyMarker) + ..add('maxUploads', maxUploads) + ..add('prefix', prefix) + ..add('uploadIdMarker', uploadIdMarker) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('requestPayer', requestPayer); return helper.toString(); } } @_i3.internal abstract class ListMultipartUploadsRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + ListMultipartUploadsRequestPayload, + ListMultipartUploadsRequestPayloadBuilder + >, _i1.EmptyPayload { - factory ListMultipartUploadsRequestPayload( - [void Function(ListMultipartUploadsRequestPayloadBuilder) updates]) = - _$ListMultipartUploadsRequestPayload; + factory ListMultipartUploadsRequestPayload([ + void Function(ListMultipartUploadsRequestPayloadBuilder) updates, + ]) = _$ListMultipartUploadsRequestPayload; const ListMultipartUploadsRequestPayload._(); @@ -237,8 +209,9 @@ abstract class ListMultipartUploadsRequestPayload @override String toString() { - final helper = - newBuiltValueToStringHelper('ListMultipartUploadsRequestPayload'); + final helper = newBuiltValueToStringHelper( + 'ListMultipartUploadsRequestPayload', + ); return helper.toString(); } } @@ -246,23 +219,20 @@ abstract class ListMultipartUploadsRequestPayload class ListMultipartUploadsRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const ListMultipartUploadsRequestRestXmlSerializer() - : super('ListMultipartUploadsRequest'); + : super('ListMultipartUploadsRequest'); @override Iterable get types => const [ - ListMultipartUploadsRequest, - _$ListMultipartUploadsRequest, - ListMultipartUploadsRequestPayload, - _$ListMultipartUploadsRequestPayload, - ]; + ListMultipartUploadsRequest, + _$ListMultipartUploadsRequest, + ListMultipartUploadsRequestPayload, + _$ListMultipartUploadsRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListMultipartUploadsRequestPayload deserialize( @@ -283,7 +253,7 @@ class ListMultipartUploadsRequestRestXmlSerializer const _i1.XmlElementName( 'ListMultipartUploadsRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.g.dart index 07e4c091cf..f4b0fdc17e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_multipart_uploads_request.g.dart @@ -26,29 +26,32 @@ class _$ListMultipartUploadsRequest extends ListMultipartUploadsRequest { @override final RequestPayer? requestPayer; - factory _$ListMultipartUploadsRequest( - [void Function(ListMultipartUploadsRequestBuilder)? updates]) => - (new ListMultipartUploadsRequestBuilder()..update(updates))._build(); - - _$ListMultipartUploadsRequest._( - {required this.bucket, - this.delimiter, - this.encodingType, - this.keyMarker, - this.maxUploads, - this.prefix, - this.uploadIdMarker, - this.expectedBucketOwner, - this.requestPayer}) - : super._() { + factory _$ListMultipartUploadsRequest([ + void Function(ListMultipartUploadsRequestBuilder)? updates, + ]) => (new ListMultipartUploadsRequestBuilder()..update(updates))._build(); + + _$ListMultipartUploadsRequest._({ + required this.bucket, + this.delimiter, + this.encodingType, + this.keyMarker, + this.maxUploads, + this.prefix, + this.uploadIdMarker, + this.expectedBucketOwner, + this.requestPayer, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'ListMultipartUploadsRequest', 'bucket'); + bucket, + r'ListMultipartUploadsRequest', + 'bucket', + ); } @override ListMultipartUploadsRequest rebuild( - void Function(ListMultipartUploadsRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListMultipartUploadsRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListMultipartUploadsRequestBuilder toBuilder() => @@ -88,8 +91,10 @@ class _$ListMultipartUploadsRequest extends ListMultipartUploadsRequest { class ListMultipartUploadsRequestBuilder implements - Builder { + Builder< + ListMultipartUploadsRequest, + ListMultipartUploadsRequestBuilder + > { _$ListMultipartUploadsRequest? _$v; String? _bucket; @@ -166,10 +171,14 @@ class ListMultipartUploadsRequestBuilder ListMultipartUploadsRequest build() => _build(); _$ListMultipartUploadsRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ListMultipartUploadsRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListMultipartUploadsRequest', 'bucket'), + bucket, + r'ListMultipartUploadsRequest', + 'bucket', + ), delimiter: delimiter, encodingType: encodingType, keyMarker: keyMarker, @@ -186,9 +195,9 @@ class ListMultipartUploadsRequestBuilder class _$ListMultipartUploadsRequestPayload extends ListMultipartUploadsRequestPayload { - factory _$ListMultipartUploadsRequestPayload( - [void Function(ListMultipartUploadsRequestPayloadBuilder)? - updates]) => + factory _$ListMultipartUploadsRequestPayload([ + void Function(ListMultipartUploadsRequestPayloadBuilder)? updates, + ]) => (new ListMultipartUploadsRequestPayloadBuilder()..update(updates)) ._build(); @@ -196,8 +205,8 @@ class _$ListMultipartUploadsRequestPayload @override ListMultipartUploadsRequestPayload rebuild( - void Function(ListMultipartUploadsRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListMultipartUploadsRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListMultipartUploadsRequestPayloadBuilder toBuilder() => @@ -217,8 +226,10 @@ class _$ListMultipartUploadsRequestPayload class ListMultipartUploadsRequestPayloadBuilder implements - Builder { + Builder< + ListMultipartUploadsRequestPayload, + ListMultipartUploadsRequestPayloadBuilder + > { _$ListMultipartUploadsRequestPayload? _$v; ListMultipartUploadsRequestPayloadBuilder(); @@ -231,7 +242,8 @@ class ListMultipartUploadsRequestPayloadBuilder @override void update( - void Function(ListMultipartUploadsRequestPayloadBuilder)? updates) { + void Function(ListMultipartUploadsRequestPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart index 0df9a60dc1..59f06111e7 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.dart @@ -54,9 +54,9 @@ abstract class ListObjectsV2Output ); } - factory ListObjectsV2Output.build( - [void Function(ListObjectsV2OutputBuilder) updates]) = - _$ListObjectsV2Output; + factory ListObjectsV2Output.build([ + void Function(ListObjectsV2OutputBuilder) updates, + ]) = _$ListObjectsV2Output; const ListObjectsV2Output._(); @@ -64,32 +64,32 @@ abstract class ListObjectsV2Output factory ListObjectsV2Output.fromResponse( ListObjectsV2OutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ListObjectsV2Output.build((b) { - if (payload.commonPrefixes != null) { - b.commonPrefixes.replace(payload.commonPrefixes!); - } - if (payload.contents != null) { - b.contents.replace(payload.contents!); - } - b.continuationToken = payload.continuationToken; - b.delimiter = payload.delimiter; - b.encodingType = payload.encodingType; - b.isTruncated = payload.isTruncated; - b.keyCount = payload.keyCount; - b.maxKeys = payload.maxKeys; - b.name = payload.name; - b.nextContinuationToken = payload.nextContinuationToken; - b.prefix = payload.prefix; - b.startAfter = payload.startAfter; - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => ListObjectsV2Output.build((b) { + if (payload.commonPrefixes != null) { + b.commonPrefixes.replace(payload.commonPrefixes!); + } + if (payload.contents != null) { + b.contents.replace(payload.contents!); + } + b.continuationToken = payload.continuationToken; + b.delimiter = payload.delimiter; + b.encodingType = payload.encodingType; + b.isTruncated = payload.isTruncated; + b.keyCount = payload.keyCount; + b.maxKeys = payload.maxKeys; + b.name = payload.name; + b.nextContinuationToken = payload.nextContinuationToken; + b.prefix = payload.prefix; + b.startAfter = payload.startAfter; + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> - serializers = [ListObjectsV2OutputRestXmlSerializer()]; + serializers = [ListObjectsV2OutputRestXmlSerializer()]; /// Set to `false` if all of the results were returned. Set to `true` if more keys are available to return. If the number of results exceeds that specified by `MaxKeys`, all of the results might not be returned. bool? get isTruncated; @@ -155,96 +155,58 @@ abstract class ListObjectsV2Output RequestCharged? get requestCharged; @override ListObjectsV2OutputPayload getPayload() => ListObjectsV2OutputPayload((b) { - if (commonPrefixes != null) { - b.commonPrefixes.replace(commonPrefixes!); - } - if (contents != null) { - b.contents.replace(contents!); - } - b.continuationToken = continuationToken; - b.delimiter = delimiter; - b.encodingType = encodingType; - b.isTruncated = isTruncated; - b.keyCount = keyCount; - b.maxKeys = maxKeys; - b.name = name; - b.nextContinuationToken = nextContinuationToken; - b.prefix = prefix; - b.startAfter = startAfter; - }); + if (commonPrefixes != null) { + b.commonPrefixes.replace(commonPrefixes!); + } + if (contents != null) { + b.contents.replace(contents!); + } + b.continuationToken = continuationToken; + b.delimiter = delimiter; + b.encodingType = encodingType; + b.isTruncated = isTruncated; + b.keyCount = keyCount; + b.maxKeys = maxKeys; + b.name = name; + b.nextContinuationToken = nextContinuationToken; + b.prefix = prefix; + b.startAfter = startAfter; + }); @override List get props => [ - isTruncated, - contents, - name, - prefix, - delimiter, - maxKeys, - commonPrefixes, - encodingType, - keyCount, - continuationToken, - nextContinuationToken, - startAfter, - requestCharged, - ]; + isTruncated, + contents, + name, + prefix, + delimiter, + maxKeys, + commonPrefixes, + encodingType, + keyCount, + continuationToken, + nextContinuationToken, + startAfter, + requestCharged, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListObjectsV2Output') - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'contents', - contents, - ) - ..add( - 'name', - name, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'maxKeys', - maxKeys, - ) - ..add( - 'commonPrefixes', - commonPrefixes, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'keyCount', - keyCount, - ) - ..add( - 'continuationToken', - continuationToken, - ) - ..add( - 'nextContinuationToken', - nextContinuationToken, - ) - ..add( - 'startAfter', - startAfter, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('ListObjectsV2Output') + ..add('isTruncated', isTruncated) + ..add('contents', contents) + ..add('name', name) + ..add('prefix', prefix) + ..add('delimiter', delimiter) + ..add('maxKeys', maxKeys) + ..add('commonPrefixes', commonPrefixes) + ..add('encodingType', encodingType) + ..add('keyCount', keyCount) + ..add('continuationToken', continuationToken) + ..add('nextContinuationToken', nextContinuationToken) + ..add('startAfter', startAfter) + ..add('requestCharged', requestCharged); return helper.toString(); } } @@ -254,9 +216,9 @@ abstract class ListObjectsV2OutputPayload with _i1.AWSEquatable implements Built { - factory ListObjectsV2OutputPayload( - [void Function(ListObjectsV2OutputPayloadBuilder) updates]) = - _$ListObjectsV2OutputPayload; + factory ListObjectsV2OutputPayload([ + void Function(ListObjectsV2OutputPayloadBuilder) updates, + ]) = _$ListObjectsV2OutputPayload; const ListObjectsV2OutputPayload._(); @@ -319,71 +281,36 @@ abstract class ListObjectsV2OutputPayload String? get startAfter; @override List get props => [ - commonPrefixes, - contents, - continuationToken, - delimiter, - encodingType, - isTruncated, - keyCount, - maxKeys, - name, - nextContinuationToken, - prefix, - startAfter, - ]; + commonPrefixes, + contents, + continuationToken, + delimiter, + encodingType, + isTruncated, + keyCount, + maxKeys, + name, + nextContinuationToken, + prefix, + startAfter, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListObjectsV2OutputPayload') - ..add( - 'commonPrefixes', - commonPrefixes, - ) - ..add( - 'contents', - contents, - ) - ..add( - 'continuationToken', - continuationToken, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'keyCount', - keyCount, - ) - ..add( - 'maxKeys', - maxKeys, - ) - ..add( - 'name', - name, - ) - ..add( - 'nextContinuationToken', - nextContinuationToken, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'startAfter', - startAfter, - ); + final helper = + newBuiltValueToStringHelper('ListObjectsV2OutputPayload') + ..add('commonPrefixes', commonPrefixes) + ..add('contents', contents) + ..add('continuationToken', continuationToken) + ..add('delimiter', delimiter) + ..add('encodingType', encodingType) + ..add('isTruncated', isTruncated) + ..add('keyCount', keyCount) + ..add('maxKeys', maxKeys) + ..add('name', name) + ..add('nextContinuationToken', nextContinuationToken) + ..add('prefix', prefix) + ..add('startAfter', startAfter); return helper.toString(); } } @@ -394,19 +321,16 @@ class ListObjectsV2OutputRestXmlSerializer @override Iterable get types => const [ - ListObjectsV2Output, - _$ListObjectsV2Output, - ListObjectsV2OutputPayload, - _$ListObjectsV2OutputPayload, - ]; + ListObjectsV2Output, + _$ListObjectsV2Output, + ListObjectsV2OutputPayload, + _$ListObjectsV2OutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2OutputPayload deserialize( @@ -425,65 +349,91 @@ class ListObjectsV2OutputRestXmlSerializer } switch (key) { case 'CommonPrefixes': - result.commonPrefixes.add((serializers.deserialize( - value, - specifiedType: const FullType(CommonPrefix), - ) as CommonPrefix)); + result.commonPrefixes.add( + (serializers.deserialize( + value, + specifiedType: const FullType(CommonPrefix), + ) + as CommonPrefix), + ); case 'Contents': - result.contents.add((serializers.deserialize( - value, - specifiedType: const FullType(S3Object), - ) as S3Object)); + result.contents.add( + (serializers.deserialize( + value, + specifiedType: const FullType(S3Object), + ) + as S3Object), + ); case 'ContinuationToken': - result.continuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.continuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Delimiter': - result.delimiter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.delimiter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EncodingType': - result.encodingType = (serializers.deserialize( - value, - specifiedType: const FullType(EncodingType), - ) as EncodingType); + result.encodingType = + (serializers.deserialize( + value, + specifiedType: const FullType(EncodingType), + ) + as EncodingType); case 'IsTruncated': - result.isTruncated = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isTruncated = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'KeyCount': - result.keyCount = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.keyCount = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'MaxKeys': - result.maxKeys = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxKeys = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Name': - result.name = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.name = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'NextContinuationToken': - result.nextContinuationToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextContinuationToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Prefix': - result.prefix = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.prefix = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'StartAfter': - result.startAfter = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.startAfter = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -500,7 +450,7 @@ class ListObjectsV2OutputRestXmlSerializer const _i2.XmlElementName( 'ListBucketResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ListObjectsV2OutputPayload( :commonPrefixes, @@ -514,110 +464,117 @@ class ListObjectsV2OutputRestXmlSerializer :name, :nextContinuationToken, :prefix, - :startAfter + :startAfter, ) = object; if (commonPrefixes != null) { result$.addAll( - const _i2.XmlBuiltListSerializer(memberName: 'CommonPrefixes') - .serialize( - serializers, - commonPrefixes, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(CommonPrefix)], + const _i2.XmlBuiltListSerializer( + memberName: 'CommonPrefixes', + ).serialize( + serializers, + commonPrefixes, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(CommonPrefix), + ]), ), - )); + ); } if (contents != null) { result$.addAll( - const _i2.XmlBuiltListSerializer(memberName: 'Contents').serialize( - serializers, - contents, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(S3Object)], + const _i2.XmlBuiltListSerializer(memberName: 'Contents').serialize( + serializers, + contents, + specifiedType: const FullType(_i3.BuiltList, [FullType(S3Object)]), ), - )); + ); } if (continuationToken != null) { result$ ..add(const _i2.XmlElementName('ContinuationToken')) - ..add(serializers.serialize( - continuationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + continuationToken, + specifiedType: const FullType(String), + ), + ); } if (delimiter != null) { result$ ..add(const _i2.XmlElementName('Delimiter')) - ..add(serializers.serialize( - delimiter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + delimiter, + specifiedType: const FullType(String), + ), + ); } if (encodingType != null) { result$ ..add(const _i2.XmlElementName('EncodingType')) - ..add(serializers.serialize( - encodingType, - specifiedType: const FullType(EncodingType), - )); + ..add( + serializers.serialize( + encodingType, + specifiedType: const FullType(EncodingType), + ), + ); } if (isTruncated != null) { result$ ..add(const _i2.XmlElementName('IsTruncated')) - ..add(serializers.serialize( - isTruncated, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + isTruncated, + specifiedType: const FullType(bool), + ), + ); } if (keyCount != null) { result$ ..add(const _i2.XmlElementName('KeyCount')) - ..add(serializers.serialize( - keyCount, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(keyCount, specifiedType: const FullType(int)), + ); } if (maxKeys != null) { result$ ..add(const _i2.XmlElementName('MaxKeys')) - ..add(serializers.serialize( - maxKeys, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxKeys, specifiedType: const FullType(int)), + ); } if (name != null) { result$ ..add(const _i2.XmlElementName('Name')) - ..add(serializers.serialize( - name, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(name, specifiedType: const FullType(String)), + ); } if (nextContinuationToken != null) { result$ ..add(const _i2.XmlElementName('NextContinuationToken')) - ..add(serializers.serialize( - nextContinuationToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextContinuationToken, + specifiedType: const FullType(String), + ), + ); } if (prefix != null) { result$ ..add(const _i2.XmlElementName('Prefix')) - ..add(serializers.serialize( - prefix, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(prefix, specifiedType: const FullType(String)), + ); } if (startAfter != null) { result$ ..add(const _i2.XmlElementName('StartAfter')) - ..add(serializers.serialize( - startAfter, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + startAfter, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.g.dart index 27af7ffb15..993f182b1a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_output.g.dart @@ -34,30 +34,30 @@ class _$ListObjectsV2Output extends ListObjectsV2Output { @override final RequestCharged? requestCharged; - factory _$ListObjectsV2Output( - [void Function(ListObjectsV2OutputBuilder)? updates]) => - (new ListObjectsV2OutputBuilder()..update(updates))._build(); - - _$ListObjectsV2Output._( - {this.isTruncated, - this.contents, - this.name, - this.prefix, - this.delimiter, - this.maxKeys, - this.commonPrefixes, - this.encodingType, - this.keyCount, - this.continuationToken, - this.nextContinuationToken, - this.startAfter, - this.requestCharged}) - : super._(); + factory _$ListObjectsV2Output([ + void Function(ListObjectsV2OutputBuilder)? updates, + ]) => (new ListObjectsV2OutputBuilder()..update(updates))._build(); + + _$ListObjectsV2Output._({ + this.isTruncated, + this.contents, + this.name, + this.prefix, + this.delimiter, + this.maxKeys, + this.commonPrefixes, + this.encodingType, + this.keyCount, + this.continuationToken, + this.nextContinuationToken, + this.startAfter, + this.requestCharged, + }) : super._(); @override ListObjectsV2Output rebuild( - void Function(ListObjectsV2OutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2OutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2OutputBuilder toBuilder() => @@ -207,7 +207,8 @@ class ListObjectsV2OutputBuilder _$ListObjectsV2Output _build() { _$ListObjectsV2Output _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListObjectsV2Output._( isTruncated: isTruncated, contents: _contents?.build(), @@ -233,7 +234,10 @@ class ListObjectsV2OutputBuilder _commonPrefixes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListObjectsV2Output', _$failedField, e.toString()); + r'ListObjectsV2Output', + _$failedField, + e.toString(), + ); } rethrow; } @@ -268,29 +272,29 @@ class _$ListObjectsV2OutputPayload extends ListObjectsV2OutputPayload { @override final String? startAfter; - factory _$ListObjectsV2OutputPayload( - [void Function(ListObjectsV2OutputPayloadBuilder)? updates]) => - (new ListObjectsV2OutputPayloadBuilder()..update(updates))._build(); - - _$ListObjectsV2OutputPayload._( - {this.commonPrefixes, - this.contents, - this.continuationToken, - this.delimiter, - this.encodingType, - this.isTruncated, - this.keyCount, - this.maxKeys, - this.name, - this.nextContinuationToken, - this.prefix, - this.startAfter}) - : super._(); + factory _$ListObjectsV2OutputPayload([ + void Function(ListObjectsV2OutputPayloadBuilder)? updates, + ]) => (new ListObjectsV2OutputPayloadBuilder()..update(updates))._build(); + + _$ListObjectsV2OutputPayload._({ + this.commonPrefixes, + this.contents, + this.continuationToken, + this.delimiter, + this.encodingType, + this.isTruncated, + this.keyCount, + this.maxKeys, + this.name, + this.nextContinuationToken, + this.prefix, + this.startAfter, + }) : super._(); @override ListObjectsV2OutputPayload rebuild( - void Function(ListObjectsV2OutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2OutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2OutputPayloadBuilder toBuilder() => @@ -433,7 +437,8 @@ class ListObjectsV2OutputPayloadBuilder _$ListObjectsV2OutputPayload _build() { _$ListObjectsV2OutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListObjectsV2OutputPayload._( commonPrefixes: _commonPrefixes?.build(), contents: _contents?.build(), @@ -457,7 +462,10 @@ class ListObjectsV2OutputPayloadBuilder _contents?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListObjectsV2OutputPayload', _$failedField, e.toString()); + r'ListObjectsV2OutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart index 2e537614ba..f0143c27ea 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.dart @@ -47,15 +47,16 @@ abstract class ListObjectsV2Request startAfter: startAfter, requestPayer: requestPayer, expectedBucketOwner: expectedBucketOwner, - optionalObjectAttributes: optionalObjectAttributes == null - ? null - : _i3.BuiltList(optionalObjectAttributes), + optionalObjectAttributes: + optionalObjectAttributes == null + ? null + : _i3.BuiltList(optionalObjectAttributes), ); } - factory ListObjectsV2Request.build( - [void Function(ListObjectsV2RequestBuilder) updates]) = - _$ListObjectsV2Request; + factory ListObjectsV2Request.build([ + void Function(ListObjectsV2RequestBuilder) updates, + ]) = _$ListObjectsV2Request; const ListObjectsV2Request._(); @@ -63,50 +64,52 @@ abstract class ListObjectsV2Request ListObjectsV2RequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ListObjectsV2Request.build((b) { - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-optional-object-attributes'] != null) { - b.optionalObjectAttributes.addAll(_i1 - .parseHeader(request.headers['x-amz-optional-object-attributes']!) - .map((el) => OptionalObjectAttributes.values.byValue(el.trim()))); - } - if (request.queryParameters['delimiter'] != null) { - b.delimiter = request.queryParameters['delimiter']!; - } - if (request.queryParameters['encoding-type'] != null) { - b.encodingType = EncodingType.values - .byValue(request.queryParameters['encoding-type']!); - } - if (request.queryParameters['max-keys'] != null) { - b.maxKeys = int.parse(request.queryParameters['max-keys']!); - } - if (request.queryParameters['prefix'] != null) { - b.prefix = request.queryParameters['prefix']!; - } - if (request.queryParameters['continuation-token'] != null) { - b.continuationToken = request.queryParameters['continuation-token']!; - } - if (request.queryParameters['fetch-owner'] != null) { - b.fetchOwner = request.queryParameters['fetch-owner']! == 'true'; - } - if (request.queryParameters['start-after'] != null) { - b.startAfter = request.queryParameters['start-after']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - }); + }) => ListObjectsV2Request.build((b) { + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-optional-object-attributes'] != null) { + b.optionalObjectAttributes.addAll( + _i1 + .parseHeader(request.headers['x-amz-optional-object-attributes']!) + .map((el) => OptionalObjectAttributes.values.byValue(el.trim())), + ); + } + if (request.queryParameters['delimiter'] != null) { + b.delimiter = request.queryParameters['delimiter']!; + } + if (request.queryParameters['encoding-type'] != null) { + b.encodingType = EncodingType.values.byValue( + request.queryParameters['encoding-type']!, + ); + } + if (request.queryParameters['max-keys'] != null) { + b.maxKeys = int.parse(request.queryParameters['max-keys']!); + } + if (request.queryParameters['prefix'] != null) { + b.prefix = request.queryParameters['prefix']!; + } + if (request.queryParameters['continuation-token'] != null) { + b.continuationToken = request.queryParameters['continuation-token']!; + } + if (request.queryParameters['fetch-owner'] != null) { + b.fetchOwner = request.queryParameters['fetch-owner']! == 'true'; + } + if (request.queryParameters['start-after'] != null) { + b.startAfter = request.queryParameters['start-after']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [ListObjectsV2RequestRestXmlSerializer()]; + serializers = [ListObjectsV2RequestRestXmlSerializer()]; /// **Directory buckets** \- When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format `_Bucket_name_.s3express-_az_id_._region_.amazonaws.com`. Path-style requests are not supported. Directory bucket names must be unique in the chosen Availability Zone. Bucket names must follow the format `_bucket\_base\_name_--_az-id_--x-s3` (for example, `_DOC-EXAMPLE-BUCKET_--_usw2-az2_--x-s3`). For information about bucket naming restrictions, see [Directory bucket naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html) in the _Amazon S3 User Guide_. /// @@ -166,10 +169,7 @@ abstract class ListObjectsV2Request case 'Bucket': return bucket; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -177,66 +177,34 @@ abstract class ListObjectsV2Request @override List get props => [ - bucket, - delimiter, - encodingType, - maxKeys, - prefix, - continuationToken, - fetchOwner, - startAfter, - requestPayer, - expectedBucketOwner, - optionalObjectAttributes, - ]; + bucket, + delimiter, + encodingType, + maxKeys, + prefix, + continuationToken, + fetchOwner, + startAfter, + requestPayer, + expectedBucketOwner, + optionalObjectAttributes, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListObjectsV2Request') - ..add( - 'bucket', - bucket, - ) - ..add( - 'delimiter', - delimiter, - ) - ..add( - 'encodingType', - encodingType, - ) - ..add( - 'maxKeys', - maxKeys, - ) - ..add( - 'prefix', - prefix, - ) - ..add( - 'continuationToken', - continuationToken, - ) - ..add( - 'fetchOwner', - fetchOwner, - ) - ..add( - 'startAfter', - startAfter, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'optionalObjectAttributes', - optionalObjectAttributes, - ); + final helper = + newBuiltValueToStringHelper('ListObjectsV2Request') + ..add('bucket', bucket) + ..add('delimiter', delimiter) + ..add('encodingType', encodingType) + ..add('maxKeys', maxKeys) + ..add('prefix', prefix) + ..add('continuationToken', continuationToken) + ..add('fetchOwner', fetchOwner) + ..add('startAfter', startAfter) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('optionalObjectAttributes', optionalObjectAttributes); return helper.toString(); } } @@ -247,9 +215,9 @@ abstract class ListObjectsV2RequestPayload implements Built, _i1.EmptyPayload { - factory ListObjectsV2RequestPayload( - [void Function(ListObjectsV2RequestPayloadBuilder) updates]) = - _$ListObjectsV2RequestPayload; + factory ListObjectsV2RequestPayload([ + void Function(ListObjectsV2RequestPayloadBuilder) updates, + ]) = _$ListObjectsV2RequestPayload; const ListObjectsV2RequestPayload._(); @@ -269,19 +237,16 @@ class ListObjectsV2RequestRestXmlSerializer @override Iterable get types => const [ - ListObjectsV2Request, - _$ListObjectsV2Request, - ListObjectsV2RequestPayload, - _$ListObjectsV2RequestPayload, - ]; + ListObjectsV2Request, + _$ListObjectsV2Request, + ListObjectsV2RequestPayload, + _$ListObjectsV2RequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListObjectsV2RequestPayload deserialize( @@ -302,7 +267,7 @@ class ListObjectsV2RequestRestXmlSerializer const _i1.XmlElementName( 'ListObjectsV2Request', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart index 9e808f5f0c..66efe6f8d9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_objects_v2_request.g.dart @@ -30,31 +30,34 @@ class _$ListObjectsV2Request extends ListObjectsV2Request { @override final _i3.BuiltList? optionalObjectAttributes; - factory _$ListObjectsV2Request( - [void Function(ListObjectsV2RequestBuilder)? updates]) => - (new ListObjectsV2RequestBuilder()..update(updates))._build(); - - _$ListObjectsV2Request._( - {required this.bucket, - this.delimiter, - this.encodingType, - this.maxKeys, - this.prefix, - this.continuationToken, - this.fetchOwner, - this.startAfter, - this.requestPayer, - this.expectedBucketOwner, - this.optionalObjectAttributes}) - : super._() { + factory _$ListObjectsV2Request([ + void Function(ListObjectsV2RequestBuilder)? updates, + ]) => (new ListObjectsV2RequestBuilder()..update(updates))._build(); + + _$ListObjectsV2Request._({ + required this.bucket, + this.delimiter, + this.encodingType, + this.maxKeys, + this.prefix, + this.continuationToken, + this.fetchOwner, + this.startAfter, + this.requestPayer, + this.expectedBucketOwner, + this.optionalObjectAttributes, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'); + bucket, + r'ListObjectsV2Request', + 'bucket', + ); } @override ListObjectsV2Request rebuild( - void Function(ListObjectsV2RequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2RequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2RequestBuilder toBuilder() => @@ -149,9 +152,8 @@ class ListObjectsV2RequestBuilder _$this._optionalObjectAttributes ??= new _i3.ListBuilder(); set optionalObjectAttributes( - _i3.ListBuilder? - optionalObjectAttributes) => - _$this._optionalObjectAttributes = optionalObjectAttributes; + _i3.ListBuilder? optionalObjectAttributes, + ) => _$this._optionalObjectAttributes = optionalObjectAttributes; ListObjectsV2RequestBuilder(); @@ -191,10 +193,14 @@ class ListObjectsV2RequestBuilder _$ListObjectsV2Request _build() { _$ListObjectsV2Request _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListObjectsV2Request._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListObjectsV2Request', 'bucket'), + bucket, + r'ListObjectsV2Request', + 'bucket', + ), delimiter: delimiter, encodingType: encodingType, maxKeys: maxKeys, @@ -213,7 +219,10 @@ class ListObjectsV2RequestBuilder _optionalObjectAttributes?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListObjectsV2Request', _$failedField, e.toString()); + r'ListObjectsV2Request', + _$failedField, + e.toString(), + ); } rethrow; } @@ -223,16 +232,16 @@ class ListObjectsV2RequestBuilder } class _$ListObjectsV2RequestPayload extends ListObjectsV2RequestPayload { - factory _$ListObjectsV2RequestPayload( - [void Function(ListObjectsV2RequestPayloadBuilder)? updates]) => - (new ListObjectsV2RequestPayloadBuilder()..update(updates))._build(); + factory _$ListObjectsV2RequestPayload([ + void Function(ListObjectsV2RequestPayloadBuilder)? updates, + ]) => (new ListObjectsV2RequestPayloadBuilder()..update(updates))._build(); _$ListObjectsV2RequestPayload._() : super._(); @override ListObjectsV2RequestPayload rebuild( - void Function(ListObjectsV2RequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListObjectsV2RequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListObjectsV2RequestPayloadBuilder toBuilder() => @@ -252,8 +261,10 @@ class _$ListObjectsV2RequestPayload extends ListObjectsV2RequestPayload { class ListObjectsV2RequestPayloadBuilder implements - Builder { + Builder< + ListObjectsV2RequestPayload, + ListObjectsV2RequestPayloadBuilder + > { _$ListObjectsV2RequestPayload? _$v; ListObjectsV2RequestPayloadBuilder(); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart index 44e1e1e165..8666ded7ce 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.dart @@ -59,8 +59,9 @@ abstract class ListPartsOutput ); } - factory ListPartsOutput.build( - [void Function(ListPartsOutputBuilder) updates]) = _$ListPartsOutput; + factory ListPartsOutput.build([ + void Function(ListPartsOutputBuilder) updates, + ]) = _$ListPartsOutput; const ListPartsOutput._(); @@ -68,40 +69,41 @@ abstract class ListPartsOutput factory ListPartsOutput.fromResponse( ListPartsOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - ListPartsOutput.build((b) { - b.bucket = payload.bucket; - b.checksumAlgorithm = payload.checksumAlgorithm; - if (payload.initiator != null) { - b.initiator.replace(payload.initiator!); - } - b.isTruncated = payload.isTruncated; - b.key = payload.key; - b.maxParts = payload.maxParts; - b.nextPartNumberMarker = payload.nextPartNumberMarker; - if (payload.owner != null) { - b.owner.replace(payload.owner!); - } - b.partNumberMarker = payload.partNumberMarker; - if (payload.parts != null) { - b.parts.replace(payload.parts!); - } - b.storageClass = payload.storageClass; - b.uploadId = payload.uploadId; - if (response.headers['x-amz-abort-date'] != null) { - b.abortDate = _i2.Timestamp.parse( + ) => ListPartsOutput.build((b) { + b.bucket = payload.bucket; + b.checksumAlgorithm = payload.checksumAlgorithm; + if (payload.initiator != null) { + b.initiator.replace(payload.initiator!); + } + b.isTruncated = payload.isTruncated; + b.key = payload.key; + b.maxParts = payload.maxParts; + b.nextPartNumberMarker = payload.nextPartNumberMarker; + if (payload.owner != null) { + b.owner.replace(payload.owner!); + } + b.partNumberMarker = payload.partNumberMarker; + if (payload.parts != null) { + b.parts.replace(payload.parts!); + } + b.storageClass = payload.storageClass; + b.uploadId = payload.uploadId; + if (response.headers['x-amz-abort-date'] != null) { + b.abortDate = + _i2.Timestamp.parse( response.headers['x-amz-abort-date']!, format: _i2.TimestampFormat.httpDate, ).asDateTime; - } - if (response.headers['x-amz-abort-rule-id'] != null) { - b.abortRuleId = response.headers['x-amz-abort-rule-id']!; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + } + if (response.headers['x-amz-abort-rule-id'] != null) { + b.abortRuleId = response.headers['x-amz-abort-rule-id']!; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> serializers = [ListPartsOutputRestXmlSerializer()]; @@ -164,108 +166,64 @@ abstract class ListPartsOutput ChecksumAlgorithm? get checksumAlgorithm; @override ListPartsOutputPayload getPayload() => ListPartsOutputPayload((b) { - b.bucket = bucket; - b.checksumAlgorithm = checksumAlgorithm; - if (initiator != null) { - b.initiator.replace(initiator!); - } - b.isTruncated = isTruncated; - b.key = key; - b.maxParts = maxParts; - b.nextPartNumberMarker = nextPartNumberMarker; - if (owner != null) { - b.owner.replace(owner!); - } - b.partNumberMarker = partNumberMarker; - if (parts != null) { - b.parts.replace(parts!); - } - b.storageClass = storageClass; - b.uploadId = uploadId; - }); + b.bucket = bucket; + b.checksumAlgorithm = checksumAlgorithm; + if (initiator != null) { + b.initiator.replace(initiator!); + } + b.isTruncated = isTruncated; + b.key = key; + b.maxParts = maxParts; + b.nextPartNumberMarker = nextPartNumberMarker; + if (owner != null) { + b.owner.replace(owner!); + } + b.partNumberMarker = partNumberMarker; + if (parts != null) { + b.parts.replace(parts!); + } + b.storageClass = storageClass; + b.uploadId = uploadId; + }); @override List get props => [ - abortDate, - abortRuleId, - bucket, - key, - uploadId, - partNumberMarker, - nextPartNumberMarker, - maxParts, - isTruncated, - parts, - initiator, - owner, - storageClass, - requestCharged, - checksumAlgorithm, - ]; + abortDate, + abortRuleId, + bucket, + key, + uploadId, + partNumberMarker, + nextPartNumberMarker, + maxParts, + isTruncated, + parts, + initiator, + owner, + storageClass, + requestCharged, + checksumAlgorithm, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListPartsOutput') - ..add( - 'abortDate', - abortDate, - ) - ..add( - 'abortRuleId', - abortRuleId, - ) - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'partNumberMarker', - partNumberMarker, - ) - ..add( - 'nextPartNumberMarker', - nextPartNumberMarker, - ) - ..add( - 'maxParts', - maxParts, - ) - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'parts', - parts, - ) - ..add( - 'initiator', - initiator, - ) - ..add( - 'owner', - owner, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'requestCharged', - requestCharged, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ); + final helper = + newBuiltValueToStringHelper('ListPartsOutput') + ..add('abortDate', abortDate) + ..add('abortRuleId', abortRuleId) + ..add('bucket', bucket) + ..add('key', key) + ..add('uploadId', uploadId) + ..add('partNumberMarker', partNumberMarker) + ..add('nextPartNumberMarker', nextPartNumberMarker) + ..add('maxParts', maxParts) + ..add('isTruncated', isTruncated) + ..add('parts', parts) + ..add('initiator', initiator) + ..add('owner', owner) + ..add('storageClass', storageClass) + ..add('requestCharged', requestCharged) + ..add('checksumAlgorithm', checksumAlgorithm); return helper.toString(); } } @@ -274,9 +232,9 @@ abstract class ListPartsOutput abstract class ListPartsOutputPayload with _i1.AWSEquatable implements Built { - factory ListPartsOutputPayload( - [void Function(ListPartsOutputPayloadBuilder) updates]) = - _$ListPartsOutputPayload; + factory ListPartsOutputPayload([ + void Function(ListPartsOutputPayloadBuilder) updates, + ]) = _$ListPartsOutputPayload; const ListPartsOutputPayload._(); @@ -321,71 +279,36 @@ abstract class ListPartsOutputPayload String? get uploadId; @override List get props => [ - bucket, - checksumAlgorithm, - initiator, - isTruncated, - key, - maxParts, - nextPartNumberMarker, - owner, - partNumberMarker, - parts, - storageClass, - uploadId, - ]; + bucket, + checksumAlgorithm, + initiator, + isTruncated, + key, + maxParts, + nextPartNumberMarker, + owner, + partNumberMarker, + parts, + storageClass, + uploadId, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListPartsOutputPayload') - ..add( - 'bucket', - bucket, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'initiator', - initiator, - ) - ..add( - 'isTruncated', - isTruncated, - ) - ..add( - 'key', - key, - ) - ..add( - 'maxParts', - maxParts, - ) - ..add( - 'nextPartNumberMarker', - nextPartNumberMarker, - ) - ..add( - 'owner', - owner, - ) - ..add( - 'partNumberMarker', - partNumberMarker, - ) - ..add( - 'parts', - parts, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'uploadId', - uploadId, - ); + final helper = + newBuiltValueToStringHelper('ListPartsOutputPayload') + ..add('bucket', bucket) + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('initiator', initiator) + ..add('isTruncated', isTruncated) + ..add('key', key) + ..add('maxParts', maxParts) + ..add('nextPartNumberMarker', nextPartNumberMarker) + ..add('owner', owner) + ..add('partNumberMarker', partNumberMarker) + ..add('parts', parts) + ..add('storageClass', storageClass) + ..add('uploadId', uploadId); return helper.toString(); } } @@ -396,19 +319,16 @@ class ListPartsOutputRestXmlSerializer @override Iterable get types => const [ - ListPartsOutput, - _$ListPartsOutput, - ListPartsOutputPayload, - _$ListPartsOutputPayload, - ]; + ListPartsOutput, + _$ListPartsOutput, + ListPartsOutputPayload, + _$ListPartsOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListPartsOutputPayload deserialize( @@ -427,65 +347,89 @@ class ListPartsOutputRestXmlSerializer } switch (key) { case 'Bucket': - result.bucket = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.bucket = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumAlgorithm': - result.checksumAlgorithm = (serializers.deserialize( - value, - specifiedType: const FullType(ChecksumAlgorithm), - ) as ChecksumAlgorithm); + result.checksumAlgorithm = + (serializers.deserialize( + value, + specifiedType: const FullType(ChecksumAlgorithm), + ) + as ChecksumAlgorithm); case 'Initiator': - result.initiator.replace((serializers.deserialize( - value, - specifiedType: const FullType(Initiator), - ) as Initiator)); + result.initiator.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Initiator), + ) + as Initiator), + ); case 'IsTruncated': - result.isTruncated = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isTruncated = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'MaxParts': - result.maxParts = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxParts = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'NextPartNumberMarker': - result.nextPartNumberMarker = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextPartNumberMarker = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Owner': - result.owner.replace((serializers.deserialize( - value, - specifiedType: const FullType(Owner), - ) as Owner)); + result.owner.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Owner), + ) + as Owner), + ); case 'PartNumberMarker': - result.partNumberMarker = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.partNumberMarker = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Part': - result.parts.add((serializers.deserialize( - value, - specifiedType: const FullType(Part), - ) as Part)); + result.parts.add( + (serializers.deserialize(value, specifiedType: const FullType(Part)) + as Part), + ); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(StorageClass), - ) as StorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(StorageClass), + ) + as StorageClass); case 'UploadId': - result.uploadId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.uploadId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -502,7 +446,7 @@ class ListPartsOutputRestXmlSerializer const _i2.XmlElementName( 'ListPartsResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ListPartsOutputPayload( :bucket, @@ -516,106 +460,114 @@ class ListPartsOutputRestXmlSerializer :partNumberMarker, :parts, :storageClass, - :uploadId + :uploadId, ) = object; if (bucket != null) { result$ ..add(const _i2.XmlElementName('Bucket')) - ..add(serializers.serialize( - bucket, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(bucket, specifiedType: const FullType(String)), + ); } if (checksumAlgorithm != null) { result$ ..add(const _i2.XmlElementName('ChecksumAlgorithm')) - ..add(serializers.serialize( - checksumAlgorithm, - specifiedType: const FullType(ChecksumAlgorithm), - )); + ..add( + serializers.serialize( + checksumAlgorithm, + specifiedType: const FullType(ChecksumAlgorithm), + ), + ); } if (initiator != null) { result$ ..add(const _i2.XmlElementName('Initiator')) - ..add(serializers.serialize( - initiator, - specifiedType: const FullType(Initiator), - )); + ..add( + serializers.serialize( + initiator, + specifiedType: const FullType(Initiator), + ), + ); } if (isTruncated != null) { result$ ..add(const _i2.XmlElementName('IsTruncated')) - ..add(serializers.serialize( - isTruncated, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + isTruncated, + specifiedType: const FullType(bool), + ), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (maxParts != null) { result$ ..add(const _i2.XmlElementName('MaxParts')) - ..add(serializers.serialize( - maxParts, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxParts, specifiedType: const FullType(int)), + ); } if (nextPartNumberMarker != null) { result$ ..add(const _i2.XmlElementName('NextPartNumberMarker')) - ..add(serializers.serialize( - nextPartNumberMarker, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextPartNumberMarker, + specifiedType: const FullType(String), + ), + ); } if (owner != null) { result$ ..add(const _i2.XmlElementName('Owner')) - ..add(serializers.serialize( - owner, - specifiedType: const FullType(Owner), - )); + ..add( + serializers.serialize(owner, specifiedType: const FullType(Owner)), + ); } if (partNumberMarker != null) { result$ ..add(const _i2.XmlElementName('PartNumberMarker')) - ..add(serializers.serialize( - partNumberMarker, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + partNumberMarker, + specifiedType: const FullType(String), + ), + ); } if (parts != null) { result$.addAll( - const _i2.XmlBuiltListSerializer(memberName: 'Part').serialize( - serializers, - parts, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(Part)], + const _i2.XmlBuiltListSerializer(memberName: 'Part').serialize( + serializers, + parts, + specifiedType: const FullType(_i3.BuiltList, [FullType(Part)]), ), - )); + ); } if (storageClass != null) { result$ ..add(const _i2.XmlElementName('StorageClass')) - ..add(serializers.serialize( - storageClass, - specifiedType: const FullType(StorageClass), - )); + ..add( + serializers.serialize( + storageClass, + specifiedType: const FullType(StorageClass), + ), + ); } if (uploadId != null) { result$ ..add(const _i2.XmlElementName('UploadId')) - ..add(serializers.serialize( - uploadId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + uploadId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.g.dart index 43dc7f1065..baf8e91024 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_output.g.dart @@ -41,23 +41,23 @@ class _$ListPartsOutput extends ListPartsOutput { factory _$ListPartsOutput([void Function(ListPartsOutputBuilder)? updates]) => (new ListPartsOutputBuilder()..update(updates))._build(); - _$ListPartsOutput._( - {this.abortDate, - this.abortRuleId, - this.bucket, - this.key, - this.uploadId, - this.partNumberMarker, - this.nextPartNumberMarker, - this.maxParts, - this.isTruncated, - this.parts, - this.initiator, - this.owner, - this.storageClass, - this.requestCharged, - this.checksumAlgorithm}) - : super._(); + _$ListPartsOutput._({ + this.abortDate, + this.abortRuleId, + this.bucket, + this.key, + this.uploadId, + this.partNumberMarker, + this.nextPartNumberMarker, + this.maxParts, + this.isTruncated, + this.parts, + this.initiator, + this.owner, + this.storageClass, + this.requestCharged, + this.checksumAlgorithm, + }) : super._(); @override ListPartsOutput rebuild(void Function(ListPartsOutputBuilder) updates) => @@ -224,7 +224,8 @@ class ListPartsOutputBuilder _$ListPartsOutput _build() { _$ListPartsOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListPartsOutput._( abortDate: abortDate, abortRuleId: abortRuleId, @@ -253,7 +254,10 @@ class ListPartsOutputBuilder _owner?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListPartsOutput', _$failedField, e.toString()); + r'ListPartsOutput', + _$failedField, + e.toString(), + ); } rethrow; } @@ -288,29 +292,29 @@ class _$ListPartsOutputPayload extends ListPartsOutputPayload { @override final String? uploadId; - factory _$ListPartsOutputPayload( - [void Function(ListPartsOutputPayloadBuilder)? updates]) => - (new ListPartsOutputPayloadBuilder()..update(updates))._build(); - - _$ListPartsOutputPayload._( - {this.bucket, - this.checksumAlgorithm, - this.initiator, - this.isTruncated, - this.key, - this.maxParts, - this.nextPartNumberMarker, - this.owner, - this.partNumberMarker, - this.parts, - this.storageClass, - this.uploadId}) - : super._(); + factory _$ListPartsOutputPayload([ + void Function(ListPartsOutputPayloadBuilder)? updates, + ]) => (new ListPartsOutputPayloadBuilder()..update(updates))._build(); + + _$ListPartsOutputPayload._({ + this.bucket, + this.checksumAlgorithm, + this.initiator, + this.isTruncated, + this.key, + this.maxParts, + this.nextPartNumberMarker, + this.owner, + this.partNumberMarker, + this.parts, + this.storageClass, + this.uploadId, + }) : super._(); @override ListPartsOutputPayload rebuild( - void Function(ListPartsOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListPartsOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListPartsOutputPayloadBuilder toBuilder() => @@ -451,7 +455,8 @@ class ListPartsOutputPayloadBuilder _$ListPartsOutputPayload _build() { _$ListPartsOutputPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$ListPartsOutputPayload._( bucket: bucket, checksumAlgorithm: checksumAlgorithm, @@ -479,7 +484,10 @@ class ListPartsOutputPayloadBuilder _parts?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ListPartsOutputPayload', _$failedField, e.toString()); + r'ListPartsOutputPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart index f391218cc2..b284e59c71 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.dart @@ -46,8 +46,9 @@ abstract class ListPartsRequest ); } - factory ListPartsRequest.build( - [void Function(ListPartsRequestBuilder) updates]) = _$ListPartsRequest; + factory ListPartsRequest.build([ + void Function(ListPartsRequestBuilder) updates, + ]) = _$ListPartsRequest; const ListPartsRequest._(); @@ -55,48 +56,45 @@ abstract class ListPartsRequest ListPartsRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - ListPartsRequest.build((b) { - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.queryParameters['max-parts'] != null) { - b.maxParts = int.parse(request.queryParameters['max-parts']!); - } - if (request.queryParameters['part-number-marker'] != null) { - b.partNumberMarker = request.queryParameters['part-number-marker']!; - } - if (request.queryParameters['uploadId'] != null) { - b.uploadId = request.queryParameters['uploadId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => ListPartsRequest.build((b) { + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.queryParameters['max-parts'] != null) { + b.maxParts = int.parse(request.queryParameters['max-parts']!); + } + if (request.queryParameters['part-number-marker'] != null) { + b.partNumberMarker = request.queryParameters['part-number-marker']!; + } + if (request.queryParameters['uploadId'] != null) { + b.uploadId = request.queryParameters['uploadId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> serializers = [ListPartsRequestRestXmlSerializer()]; @@ -154,10 +152,7 @@ abstract class ListPartsRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -165,61 +160,32 @@ abstract class ListPartsRequest @override List get props => [ - bucket, - key, - maxParts, - partNumberMarker, - uploadId, - requestPayer, - expectedBucketOwner, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - ]; + bucket, + key, + maxParts, + partNumberMarker, + uploadId, + requestPayer, + expectedBucketOwner, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('ListPartsRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'maxParts', - maxParts, - ) - ..add( - 'partNumberMarker', - partNumberMarker, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ); + final helper = + newBuiltValueToStringHelper('ListPartsRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('maxParts', maxParts) + ..add('partNumberMarker', partNumberMarker) + ..add('uploadId', uploadId) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5); return helper.toString(); } } @@ -230,9 +196,9 @@ abstract class ListPartsRequestPayload implements Built, _i1.EmptyPayload { - factory ListPartsRequestPayload( - [void Function(ListPartsRequestPayloadBuilder) updates]) = - _$ListPartsRequestPayload; + factory ListPartsRequestPayload([ + void Function(ListPartsRequestPayloadBuilder) updates, + ]) = _$ListPartsRequestPayload; const ListPartsRequestPayload._(); @@ -252,19 +218,16 @@ class ListPartsRequestRestXmlSerializer @override Iterable get types => const [ - ListPartsRequest, - _$ListPartsRequest, - ListPartsRequestPayload, - _$ListPartsRequestPayload, - ]; + ListPartsRequest, + _$ListPartsRequest, + ListPartsRequestPayload, + _$ListPartsRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ListPartsRequestPayload deserialize( @@ -285,7 +248,7 @@ class ListPartsRequestRestXmlSerializer const _i1.XmlElementName( 'ListPartsRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.g.dart index 59bada5740..2c04bdcc20 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/list_parts_request.g.dart @@ -28,27 +28,33 @@ class _$ListPartsRequest extends ListPartsRequest { @override final String? sseCustomerKeyMd5; - factory _$ListPartsRequest( - [void Function(ListPartsRequestBuilder)? updates]) => - (new ListPartsRequestBuilder()..update(updates))._build(); - - _$ListPartsRequest._( - {required this.bucket, - required this.key, - this.maxParts, - this.partNumberMarker, - required this.uploadId, - this.requestPayer, - this.expectedBucketOwner, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5}) - : super._() { + factory _$ListPartsRequest([ + void Function(ListPartsRequestBuilder)? updates, + ]) => (new ListPartsRequestBuilder()..update(updates))._build(); + + _$ListPartsRequest._({ + required this.bucket, + required this.key, + this.maxParts, + this.partNumberMarker, + required this.uploadId, + this.requestPayer, + this.expectedBucketOwner, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'ListPartsRequest', 'bucket'); + bucket, + r'ListPartsRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull(key, r'ListPartsRequest', 'key'); BuiltValueNullFieldError.checkNotNull( - uploadId, r'ListPartsRequest', 'uploadId'); + uploadId, + r'ListPartsRequest', + 'uploadId', + ); } @override @@ -178,16 +184,26 @@ class ListPartsRequestBuilder ListPartsRequest build() => _build(); _$ListPartsRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ListPartsRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'ListPartsRequest', 'bucket'), + bucket, + r'ListPartsRequest', + 'bucket', + ), key: BuiltValueNullFieldError.checkNotNull( - key, r'ListPartsRequest', 'key'), + key, + r'ListPartsRequest', + 'key', + ), maxParts: maxParts, partNumberMarker: partNumberMarker, uploadId: BuiltValueNullFieldError.checkNotNull( - uploadId, r'ListPartsRequest', 'uploadId'), + uploadId, + r'ListPartsRequest', + 'uploadId', + ), requestPayer: requestPayer, expectedBucketOwner: expectedBucketOwner, sseCustomerAlgorithm: sseCustomerAlgorithm, @@ -200,16 +216,16 @@ class ListPartsRequestBuilder } class _$ListPartsRequestPayload extends ListPartsRequestPayload { - factory _$ListPartsRequestPayload( - [void Function(ListPartsRequestPayloadBuilder)? updates]) => - (new ListPartsRequestPayloadBuilder()..update(updates))._build(); + factory _$ListPartsRequestPayload([ + void Function(ListPartsRequestPayloadBuilder)? updates, + ]) => (new ListPartsRequestPayloadBuilder()..update(updates))._build(); _$ListPartsRequestPayload._() : super._(); @override ListPartsRequestPayload rebuild( - void Function(ListPartsRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ListPartsRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ListPartsRequestPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/metadata_directive.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/metadata_directive.dart index f7109d0a05..83c2d0cdb8 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/metadata_directive.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/metadata_directive.dart @@ -6,25 +6,13 @@ library amplify_storage_s3_dart.s3.model.metadata_directive; // ignore_for_file: import 'package:smithy/smithy.dart' as _i1; class MetadataDirective extends _i1.SmithyEnum { - const MetadataDirective._( - super.index, - super.name, - super.value, - ); + const MetadataDirective._(super.index, super.name, super.value); const MetadataDirective._sdkUnknown(super.value) : super.sdkUnknown(); - static const copy = MetadataDirective._( - 0, - 'COPY', - 'COPY', - ); + static const copy = MetadataDirective._(0, 'COPY', 'COPY'); - static const replace = MetadataDirective._( - 1, - 'REPLACE', - 'REPLACE', - ); + static const replace = MetadataDirective._(1, 'REPLACE', 'REPLACE'); /// All values of [MetadataDirective]. static const values = [ @@ -38,12 +26,9 @@ class MetadataDirective extends _i1.SmithyEnum { values: values, sdkUnknown: MetadataDirective._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.dart index 513527b9cf..ad5e147d78 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.dart @@ -40,13 +40,14 @@ abstract class MultipartUpload } /// Container for the `MultipartUpload` for the Amazon S3 object. - factory MultipartUpload.build( - [void Function(MultipartUploadBuilder) updates]) = _$MultipartUpload; + factory MultipartUpload.build([ + void Function(MultipartUploadBuilder) updates, + ]) = _$MultipartUpload; const MultipartUpload._(); static const List<_i2.SmithySerializer> serializers = [ - MultipartUploadRestXmlSerializer() + MultipartUploadRestXmlSerializer(), ]; /// Upload ID that identifies the multipart upload. @@ -75,46 +76,26 @@ abstract class MultipartUpload ChecksumAlgorithm? get checksumAlgorithm; @override List get props => [ - uploadId, - key, - initiated, - storageClass, - owner, - initiator, - checksumAlgorithm, - ]; + uploadId, + key, + initiated, + storageClass, + owner, + initiator, + checksumAlgorithm, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('MultipartUpload') - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'key', - key, - ) - ..add( - 'initiated', - initiated, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'owner', - owner, - ) - ..add( - 'initiator', - initiator, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ); + final helper = + newBuiltValueToStringHelper('MultipartUpload') + ..add('uploadId', uploadId) + ..add('key', key) + ..add('initiated', initiated) + ..add('storageClass', storageClass) + ..add('owner', owner) + ..add('initiator', initiator) + ..add('checksumAlgorithm', checksumAlgorithm); return helper.toString(); } } @@ -124,18 +105,12 @@ class MultipartUploadRestXmlSerializer const MultipartUploadRestXmlSerializer() : super('MultipartUpload'); @override - Iterable get types => const [ - MultipartUpload, - _$MultipartUpload, - ]; + Iterable get types => const [MultipartUpload, _$MultipartUpload]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override MultipartUpload deserialize( @@ -154,40 +129,56 @@ class MultipartUploadRestXmlSerializer } switch (key) { case 'ChecksumAlgorithm': - result.checksumAlgorithm = (serializers.deserialize( - value, - specifiedType: const FullType(ChecksumAlgorithm), - ) as ChecksumAlgorithm); + result.checksumAlgorithm = + (serializers.deserialize( + value, + specifiedType: const FullType(ChecksumAlgorithm), + ) + as ChecksumAlgorithm); case 'Initiated': - result.initiated = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.initiated = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'Initiator': - result.initiator.replace((serializers.deserialize( - value, - specifiedType: const FullType(Initiator), - ) as Initiator)); + result.initiator.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Initiator), + ) + as Initiator), + ); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Owner': - result.owner.replace((serializers.deserialize( - value, - specifiedType: const FullType(Owner), - ) as Owner)); + result.owner.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Owner), + ) + as Owner), + ); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(StorageClass), - ) as StorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(StorageClass), + ) + as StorageClass); case 'UploadId': - result.uploadId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.uploadId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -204,7 +195,7 @@ class MultipartUploadRestXmlSerializer const _i2.XmlElementName( 'MultipartUpload', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final MultipartUpload( :checksumAlgorithm, @@ -213,63 +204,71 @@ class MultipartUploadRestXmlSerializer :key, :owner, :storageClass, - :uploadId + :uploadId, ) = object; if (checksumAlgorithm != null) { result$ ..add(const _i2.XmlElementName('ChecksumAlgorithm')) - ..add(serializers.serialize( - checksumAlgorithm, - specifiedType: const FullType(ChecksumAlgorithm), - )); + ..add( + serializers.serialize( + checksumAlgorithm, + specifiedType: const FullType(ChecksumAlgorithm), + ), + ); } if (initiated != null) { result$ ..add(const _i2.XmlElementName('Initiated')) - ..add(serializers.serialize( - initiated, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + initiated, + specifiedType: const FullType(DateTime), + ), + ); } if (initiator != null) { result$ ..add(const _i2.XmlElementName('Initiator')) - ..add(serializers.serialize( - initiator, - specifiedType: const FullType(Initiator), - )); + ..add( + serializers.serialize( + initiator, + specifiedType: const FullType(Initiator), + ), + ); } if (key != null) { result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (owner != null) { result$ ..add(const _i2.XmlElementName('Owner')) - ..add(serializers.serialize( - owner, - specifiedType: const FullType(Owner), - )); + ..add( + serializers.serialize(owner, specifiedType: const FullType(Owner)), + ); } if (storageClass != null) { result$ ..add(const _i2.XmlElementName('StorageClass')) - ..add(serializers.serialize( - storageClass, - specifiedType: const FullType(StorageClass), - )); + ..add( + serializers.serialize( + storageClass, + specifiedType: const FullType(StorageClass), + ), + ); } if (uploadId != null) { result$ ..add(const _i2.XmlElementName('UploadId')) - ..add(serializers.serialize( - uploadId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + uploadId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.g.dart index 6642d4e369..df45c09415 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/multipart_upload.g.dart @@ -25,15 +25,15 @@ class _$MultipartUpload extends MultipartUpload { factory _$MultipartUpload([void Function(MultipartUploadBuilder)? updates]) => (new MultipartUploadBuilder()..update(updates))._build(); - _$MultipartUpload._( - {this.uploadId, - this.key, - this.initiated, - this.storageClass, - this.owner, - this.initiator, - this.checksumAlgorithm}) - : super._(); + _$MultipartUpload._({ + this.uploadId, + this.key, + this.initiated, + this.storageClass, + this.owner, + this.initiator, + this.checksumAlgorithm, + }) : super._(); @override MultipartUpload rebuild(void Function(MultipartUploadBuilder) updates) => @@ -140,7 +140,8 @@ class MultipartUploadBuilder _$MultipartUpload _build() { _$MultipartUpload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$MultipartUpload._( uploadId: uploadId, key: key, @@ -159,7 +160,10 @@ class MultipartUploadBuilder _initiator?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'MultipartUpload', _$failedField, e.toString()); + r'MultipartUpload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.dart index f1aa874c0a..21f527a961 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.dart @@ -32,20 +32,17 @@ abstract class NoSuchBucket factory NoSuchBucket.fromResponse( NoSuchBucket payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - NoSuchBucketRestXmlSerializer() + NoSuchBucketRestXmlSerializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchBucket', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchBucket'); @override String? get message => null; @@ -78,18 +75,12 @@ class NoSuchBucketRestXmlSerializer const NoSuchBucketRestXmlSerializer() : super('NoSuchBucket'); @override - Iterable get types => const [ - NoSuchBucket, - _$NoSuchBucket, - ]; + Iterable get types => const [NoSuchBucket, _$NoSuchBucket]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoSuchBucket deserialize( @@ -110,7 +101,7 @@ class NoSuchBucketRestXmlSerializer const _i2.XmlElementName( 'NoSuchBucket', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.g.dart index 8417258869..b076ff6056 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_bucket.g.dart @@ -68,10 +68,7 @@ class NoSuchBucketBuilder NoSuchBucket build() => _build(); _$NoSuchBucket _build() { - final _$result = _$v ?? - new _$NoSuchBucket._( - headers: headers, - ); + final _$result = _$v ?? new _$NoSuchBucket._(headers: headers); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.dart index 30196073c5..febef4bbc8 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.dart @@ -32,20 +32,17 @@ abstract class NoSuchKey factory NoSuchKey.fromResponse( NoSuchKey payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - NoSuchKeyRestXmlSerializer() + NoSuchKeyRestXmlSerializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchKey', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchKey'); @override String? get message => null; @@ -78,18 +75,12 @@ class NoSuchKeyRestXmlSerializer const NoSuchKeyRestXmlSerializer() : super('NoSuchKey'); @override - Iterable get types => const [ - NoSuchKey, - _$NoSuchKey, - ]; + Iterable get types => const [NoSuchKey, _$NoSuchKey]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoSuchKey deserialize( @@ -110,7 +101,7 @@ class NoSuchKeyRestXmlSerializer const _i2.XmlElementName( 'NoSuchKey', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.g.dart index df5eb2e96d..e87c01a20f 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_key.g.dart @@ -67,10 +67,7 @@ class NoSuchKeyBuilder implements Builder { NoSuchKey build() => _build(); _$NoSuchKey _build() { - final _$result = _$v ?? - new _$NoSuchKey._( - headers: headers, - ); + final _$result = _$v ?? new _$NoSuchKey._(headers: headers); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.dart index cee237a5f9..7e4060f56b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.dart @@ -32,20 +32,17 @@ abstract class NoSuchUpload factory NoSuchUpload.fromResponse( NoSuchUpload payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - NoSuchUploadRestXmlSerializer() + NoSuchUploadRestXmlSerializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchUpload', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchUpload'); @override String? get message => null; @@ -78,18 +75,12 @@ class NoSuchUploadRestXmlSerializer const NoSuchUploadRestXmlSerializer() : super('NoSuchUpload'); @override - Iterable get types => const [ - NoSuchUpload, - _$NoSuchUpload, - ]; + Iterable get types => const [NoSuchUpload, _$NoSuchUpload]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NoSuchUpload deserialize( @@ -110,7 +101,7 @@ class NoSuchUploadRestXmlSerializer const _i2.XmlElementName( 'NoSuchUpload', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.g.dart index a7315d5fa3..95e642be48 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/no_such_upload.g.dart @@ -68,10 +68,7 @@ class NoSuchUploadBuilder NoSuchUpload build() => _build(); _$NoSuchUpload _build() { - final _$result = _$v ?? - new _$NoSuchUpload._( - headers: headers, - ); + final _$result = _$v ?? new _$NoSuchUpload._(headers: headers); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.dart index 6e77142033..bd89f0d307 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.dart @@ -31,21 +31,18 @@ abstract class NotFound factory NotFound.fromResponse( NotFound payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - NotFoundRestXmlSerializer() + NotFoundRestXmlSerializer(), ]; @override - _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NotFound', - ); + _i2.ShapeId get shapeId => + const _i2.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NotFound'); @override String? get message => null; @@ -77,18 +74,12 @@ class NotFoundRestXmlSerializer const NotFoundRestXmlSerializer() : super('NotFound'); @override - Iterable get types => const [ - NotFound, - _$NotFound, - ]; + Iterable get types => const [NotFound, _$NotFound]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override NotFound deserialize( @@ -109,7 +100,7 @@ class NotFoundRestXmlSerializer const _i2.XmlElementName( 'NotFound', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.g.dart index 8f34d2eb1e..f436973709 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/not_found.g.dart @@ -74,11 +74,8 @@ class NotFoundBuilder implements Builder { NotFound build() => _build(); _$NotFound _build() { - final _$result = _$v ?? - new _$NotFound._( - statusCode: statusCode, - headers: headers, - ); + final _$result = + _$v ?? new _$NotFound._(statusCode: statusCode, headers: headers); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart index fee0d4fb82..b58cc62322 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.dart @@ -50,7 +50,7 @@ abstract class S3Object const S3Object._(); static const List<_i4.SmithySerializer> serializers = [ - ObjectRestXmlSerializer() + ObjectRestXmlSerializer(), ]; /// The name that you assign to an object. You use the object key to retrieve the object. @@ -93,51 +93,28 @@ abstract class S3Object RestoreStatus? get restoreStatus; @override List get props => [ - key, - lastModified, - eTag, - checksumAlgorithm, - size, - storageClass, - owner, - restoreStatus, - ]; + key, + lastModified, + eTag, + checksumAlgorithm, + size, + storageClass, + owner, + restoreStatus, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('S3Object') - ..add( - 'key', - key, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'size', - size, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'owner', - owner, - ) - ..add( - 'restoreStatus', - restoreStatus, - ); + final helper = + newBuiltValueToStringHelper('S3Object') + ..add('key', key) + ..add('lastModified', lastModified) + ..add('eTag', eTag) + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('size', size) + ..add('storageClass', storageClass) + ..add('owner', owner) + ..add('restoreStatus', restoreStatus); return helper.toString(); } } @@ -146,18 +123,12 @@ class ObjectRestXmlSerializer extends _i4.StructuredSmithySerializer { const ObjectRestXmlSerializer() : super('Object'); @override - Iterable get types => const [ - S3Object, - _$S3Object, - ]; + Iterable get types => const [S3Object, _$S3Object]; @override Iterable<_i4.ShapeId> get supportedProtocols => const [ - _i4.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i4.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override S3Object deserialize( @@ -176,45 +147,64 @@ class ObjectRestXmlSerializer extends _i4.StructuredSmithySerializer { } switch (key) { case 'ChecksumAlgorithm': - result.checksumAlgorithm.add((serializers.deserialize( - value, - specifiedType: const FullType(ChecksumAlgorithm), - ) as ChecksumAlgorithm)); + result.checksumAlgorithm.add( + (serializers.deserialize( + value, + specifiedType: const FullType(ChecksumAlgorithm), + ) + as ChecksumAlgorithm), + ); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'Owner': - result.owner.replace((serializers.deserialize( - value, - specifiedType: const FullType(Owner), - ) as Owner)); + result.owner.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Owner), + ) + as Owner), + ); case 'RestoreStatus': - result.restoreStatus.replace((serializers.deserialize( - value, - specifiedType: const FullType(RestoreStatus), - ) as RestoreStatus)); + result.restoreStatus.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RestoreStatus), + ) + as RestoreStatus), + ); case 'Size': - result.size = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.size = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'StorageClass': - result.storageClass = (serializers.deserialize( - value, - specifiedType: const FullType(ObjectStorageClass), - ) as ObjectStorageClass); + result.storageClass = + (serializers.deserialize( + value, + specifiedType: const FullType(ObjectStorageClass), + ) + as ObjectStorageClass); } } @@ -231,7 +221,7 @@ class ObjectRestXmlSerializer extends _i4.StructuredSmithySerializer { const _i4.XmlElementName( 'Object', _i4.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final S3Object( :checksumAlgorithm, @@ -241,75 +231,78 @@ class ObjectRestXmlSerializer extends _i4.StructuredSmithySerializer { :owner, :restoreStatus, :size, - :storageClass + :storageClass, ) = object; if (checksumAlgorithm != null) { result$.addAll( - const _i4.XmlBuiltListSerializer(memberName: 'ChecksumAlgorithm') - .serialize( - serializers, - checksumAlgorithm, - specifiedType: const FullType( - _i3.BuiltList, - [FullType(ChecksumAlgorithm)], + const _i4.XmlBuiltListSerializer( + memberName: 'ChecksumAlgorithm', + ).serialize( + serializers, + checksumAlgorithm, + specifiedType: const FullType(_i3.BuiltList, [ + FullType(ChecksumAlgorithm), + ]), ), - )); + ); } if (eTag != null) { result$ ..add(const _i4.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (key != null) { result$ ..add(const _i4.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(key, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i4.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } if (owner != null) { result$ ..add(const _i4.XmlElementName('Owner')) - ..add(serializers.serialize( - owner, - specifiedType: const FullType(Owner), - )); + ..add( + serializers.serialize(owner, specifiedType: const FullType(Owner)), + ); } if (restoreStatus != null) { result$ ..add(const _i4.XmlElementName('RestoreStatus')) - ..add(serializers.serialize( - restoreStatus, - specifiedType: const FullType(RestoreStatus), - )); + ..add( + serializers.serialize( + restoreStatus, + specifiedType: const FullType(RestoreStatus), + ), + ); } if (size != null) { result$ ..add(const _i4.XmlElementName('Size')) - ..add(serializers.serialize( - size, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize(size, specifiedType: const FullType(_i2.Int64)), + ); } if (storageClass != null) { result$ ..add(const _i4.XmlElementName('StorageClass')) - ..add(serializers.serialize( - storageClass, - specifiedType: const FullType(ObjectStorageClass), - )); + ..add( + serializers.serialize( + storageClass, + specifiedType: const FullType(ObjectStorageClass), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart index 2fd64099c5..f8aa9b0055 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object.g.dart @@ -27,16 +27,16 @@ class _$S3Object extends S3Object { factory _$S3Object([void Function(S3ObjectBuilder)? updates]) => (new S3ObjectBuilder()..update(updates))._build(); - _$S3Object._( - {this.key, - this.lastModified, - this.eTag, - this.checksumAlgorithm, - this.size, - this.storageClass, - this.owner, - this.restoreStatus}) - : super._(); + _$S3Object._({ + this.key, + this.lastModified, + this.eTag, + this.checksumAlgorithm, + this.size, + this.storageClass, + this.owner, + this.restoreStatus, + }) : super._(); @override S3Object rebuild(void Function(S3ObjectBuilder) updates) => @@ -95,8 +95,8 @@ class S3ObjectBuilder implements Builder { _i3.ListBuilder get checksumAlgorithm => _$this._checksumAlgorithm ??= new _i3.ListBuilder(); set checksumAlgorithm( - _i3.ListBuilder? checksumAlgorithm) => - _$this._checksumAlgorithm = checksumAlgorithm; + _i3.ListBuilder? checksumAlgorithm, + ) => _$this._checksumAlgorithm = checksumAlgorithm; _i2.Int64? _size; _i2.Int64? get size => _$this._size; @@ -152,7 +152,8 @@ class S3ObjectBuilder implements Builder { _$S3Object _build() { _$S3Object _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$S3Object._( key: key, lastModified: lastModified, @@ -175,7 +176,10 @@ class S3ObjectBuilder implements Builder { _restoreStatus?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'S3Object', _$failedField, e.toString()); + r'S3Object', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_canned_acl.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_canned_acl.dart index c23cc5e8a7..910360bc8e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_canned_acl.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_canned_acl.dart @@ -6,11 +6,7 @@ library amplify_storage_s3_dart.s3.model.object_canned_acl; // ignore_for_file: import 'package:smithy/smithy.dart' as _i1; class ObjectCannedAcl extends _i1.SmithyEnum { - const ObjectCannedAcl._( - super.index, - super.name, - super.value, - ); + const ObjectCannedAcl._(super.index, super.name, super.value); const ObjectCannedAcl._sdkUnknown(super.value) : super.sdkUnknown(); @@ -38,17 +34,9 @@ class ObjectCannedAcl extends _i1.SmithyEnum { 'bucket-owner-read', ); - static const private = ObjectCannedAcl._( - 4, - 'private', - 'private', - ); + static const private = ObjectCannedAcl._(4, 'private', 'private'); - static const publicRead = ObjectCannedAcl._( - 5, - 'public_read', - 'public-read', - ); + static const publicRead = ObjectCannedAcl._(5, 'public_read', 'public-read'); static const publicReadWrite = ObjectCannedAcl._( 6, @@ -73,12 +61,9 @@ class ObjectCannedAcl extends _i1.SmithyEnum { values: values, sdkUnknown: ObjectCannedAcl._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.dart index 43249d1fbf..3beb4f2a75 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.dart @@ -15,24 +15,19 @@ abstract class ObjectIdentifier with _i1.AWSEquatable implements Built { /// Object Identifier is unique value to identify objects. - factory ObjectIdentifier({ - required String key, - String? versionId, - }) { - return _$ObjectIdentifier._( - key: key, - versionId: versionId, - ); + factory ObjectIdentifier({required String key, String? versionId}) { + return _$ObjectIdentifier._(key: key, versionId: versionId); } /// Object Identifier is unique value to identify objects. - factory ObjectIdentifier.build( - [void Function(ObjectIdentifierBuilder) updates]) = _$ObjectIdentifier; + factory ObjectIdentifier.build([ + void Function(ObjectIdentifierBuilder) updates, + ]) = _$ObjectIdentifier; const ObjectIdentifier._(); static const List<_i2.SmithySerializer> serializers = [ - ObjectIdentifierRestXmlSerializer() + ObjectIdentifierRestXmlSerializer(), ]; /// Key name of the object. @@ -45,22 +40,14 @@ abstract class ObjectIdentifier /// This functionality is not supported for directory buckets. String? get versionId; @override - List get props => [ - key, - versionId, - ]; + List get props => [key, versionId]; @override String toString() { - final helper = newBuiltValueToStringHelper('ObjectIdentifier') - ..add( - 'key', - key, - ) - ..add( - 'versionId', - versionId, - ); + final helper = + newBuiltValueToStringHelper('ObjectIdentifier') + ..add('key', key) + ..add('versionId', versionId); return helper.toString(); } } @@ -70,18 +57,12 @@ class ObjectIdentifierRestXmlSerializer const ObjectIdentifierRestXmlSerializer() : super('ObjectIdentifier'); @override - Iterable get types => const [ - ObjectIdentifier, - _$ObjectIdentifier, - ]; + Iterable get types => const [ObjectIdentifier, _$ObjectIdentifier]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ObjectIdentifier deserialize( @@ -100,15 +81,19 @@ class ObjectIdentifierRestXmlSerializer } switch (key) { case 'Key': - result.key = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.key = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'VersionId': - result.versionId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.versionId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -125,22 +110,21 @@ class ObjectIdentifierRestXmlSerializer const _i2.XmlElementName( 'ObjectIdentifier', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ObjectIdentifier(:key, :versionId) = object; result$ ..add(const _i2.XmlElementName('Key')) - ..add(serializers.serialize( - key, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(key, specifiedType: const FullType(String))); if (versionId != null) { result$ ..add(const _i2.XmlElementName('VersionId')) - ..add(serializers.serialize( - versionId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + versionId, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.g.dart index f151ec2111..c17e5f8be2 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_identifier.g.dart @@ -12,9 +12,9 @@ class _$ObjectIdentifier extends ObjectIdentifier { @override final String? versionId; - factory _$ObjectIdentifier( - [void Function(ObjectIdentifierBuilder)? updates]) => - (new ObjectIdentifierBuilder()..update(updates))._build(); + factory _$ObjectIdentifier([ + void Function(ObjectIdentifierBuilder)? updates, + ]) => (new ObjectIdentifierBuilder()..update(updates))._build(); _$ObjectIdentifier._({required this.key, this.versionId}) : super._() { BuiltValueNullFieldError.checkNotNull(key, r'ObjectIdentifier', 'key'); @@ -85,10 +85,14 @@ class ObjectIdentifierBuilder ObjectIdentifier build() => _build(); _$ObjectIdentifier _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ObjectIdentifier._( key: BuiltValueNullFieldError.checkNotNull( - key, r'ObjectIdentifier', 'key'), + key, + r'ObjectIdentifier', + 'key', + ), versionId: versionId, ); replace(_$result); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_legal_hold_status.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_legal_hold_status.dart index 941b5442e6..c3f3c996d4 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_legal_hold_status.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_legal_hold_status.dart @@ -7,25 +7,13 @@ import 'package:smithy/smithy.dart' as _i1; class ObjectLockLegalHoldStatus extends _i1.SmithyEnum { - const ObjectLockLegalHoldStatus._( - super.index, - super.name, - super.value, - ); + const ObjectLockLegalHoldStatus._(super.index, super.name, super.value); const ObjectLockLegalHoldStatus._sdkUnknown(super.value) : super.sdkUnknown(); - static const off = ObjectLockLegalHoldStatus._( - 0, - 'OFF', - 'OFF', - ); + static const off = ObjectLockLegalHoldStatus._(0, 'OFF', 'OFF'); - static const on = ObjectLockLegalHoldStatus._( - 1, - 'ON', - 'ON', - ); + static const on = ObjectLockLegalHoldStatus._(1, 'ON', 'ON'); /// All values of [ObjectLockLegalHoldStatus]. static const values = [ @@ -34,18 +22,15 @@ class ObjectLockLegalHoldStatus ]; static const List<_i1.SmithySerializer> - serializers = [ + serializers = [ _i1.SmithyEnumSerializer( 'ObjectLockLegalHoldStatus', values: values, sdkUnknown: ObjectLockLegalHoldStatus._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_mode.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_mode.dart index 12e97e497b..b0b02064ba 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_mode.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_lock_mode.dart @@ -6,25 +6,13 @@ library amplify_storage_s3_dart.s3.model.object_lock_mode; // ignore_for_file: n import 'package:smithy/smithy.dart' as _i1; class ObjectLockMode extends _i1.SmithyEnum { - const ObjectLockMode._( - super.index, - super.name, - super.value, - ); + const ObjectLockMode._(super.index, super.name, super.value); const ObjectLockMode._sdkUnknown(super.value) : super.sdkUnknown(); - static const compliance = ObjectLockMode._( - 0, - 'COMPLIANCE', - 'COMPLIANCE', - ); + static const compliance = ObjectLockMode._(0, 'COMPLIANCE', 'COMPLIANCE'); - static const governance = ObjectLockMode._( - 1, - 'GOVERNANCE', - 'GOVERNANCE', - ); + static const governance = ObjectLockMode._(1, 'GOVERNANCE', 'GOVERNANCE'); /// All values of [ObjectLockMode]. static const values = [ @@ -38,12 +26,9 @@ class ObjectLockMode extends _i1.SmithyEnum { values: values, sdkUnknown: ObjectLockMode._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.dart index 359125a5df..5c481aefce 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.dart @@ -23,9 +23,9 @@ abstract class ObjectNotInActiveTierError } /// The source object of the COPY action is not in the active tier and is only stored in Amazon S3 Glacier. - factory ObjectNotInActiveTierError.build( - [void Function(ObjectNotInActiveTierErrorBuilder) updates]) = - _$ObjectNotInActiveTierError; + factory ObjectNotInActiveTierError.build([ + void Function(ObjectNotInActiveTierErrorBuilder) updates, + ]) = _$ObjectNotInActiveTierError; const ObjectNotInActiveTierError._(); @@ -33,19 +33,18 @@ abstract class ObjectNotInActiveTierError factory ObjectNotInActiveTierError.fromResponse( ObjectNotInActiveTierError payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ObjectNotInActiveTierErrorRestXmlSerializer()]; + serializers = [ObjectNotInActiveTierErrorRestXmlSerializer()]; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'ObjectNotInActiveTierError', - ); + namespace: 'com.amazonaws.s3', + shape: 'ObjectNotInActiveTierError', + ); @override String? get message => null; @@ -76,21 +75,18 @@ abstract class ObjectNotInActiveTierError class ObjectNotInActiveTierErrorRestXmlSerializer extends _i2.StructuredSmithySerializer { const ObjectNotInActiveTierErrorRestXmlSerializer() - : super('ObjectNotInActiveTierError'); + : super('ObjectNotInActiveTierError'); @override Iterable get types => const [ - ObjectNotInActiveTierError, - _$ObjectNotInActiveTierError, - ]; + ObjectNotInActiveTierError, + _$ObjectNotInActiveTierError, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ObjectNotInActiveTierError deserialize( @@ -111,7 +107,7 @@ class ObjectNotInActiveTierErrorRestXmlSerializer const _i2.XmlElementName( 'ObjectNotInActiveTierError', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.g.dart index 5001f6d070..3cfffa340f 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_not_in_active_tier_error.g.dart @@ -10,16 +10,16 @@ class _$ObjectNotInActiveTierError extends ObjectNotInActiveTierError { @override final Map? headers; - factory _$ObjectNotInActiveTierError( - [void Function(ObjectNotInActiveTierErrorBuilder)? updates]) => - (new ObjectNotInActiveTierErrorBuilder()..update(updates))._build(); + factory _$ObjectNotInActiveTierError([ + void Function(ObjectNotInActiveTierErrorBuilder)? updates, + ]) => (new ObjectNotInActiveTierErrorBuilder()..update(updates))._build(); _$ObjectNotInActiveTierError._({this.headers}) : super._(); @override ObjectNotInActiveTierError rebuild( - void Function(ObjectNotInActiveTierErrorBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ObjectNotInActiveTierErrorBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ObjectNotInActiveTierErrorBuilder toBuilder() => @@ -72,10 +72,8 @@ class ObjectNotInActiveTierErrorBuilder ObjectNotInActiveTierError build() => _build(); _$ObjectNotInActiveTierError _build() { - final _$result = _$v ?? - new _$ObjectNotInActiveTierError._( - headers: headers, - ); + final _$result = + _$v ?? new _$ObjectNotInActiveTierError._(headers: headers); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_storage_class.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_storage_class.dart index 9b1d905078..e393875555 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_storage_class.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/object_storage_class.dart @@ -6,11 +6,7 @@ library amplify_storage_s3_dart.s3.model.object_storage_class; // ignore_for_fil import 'package:smithy/smithy.dart' as _i1; class ObjectStorageClass extends _i1.SmithyEnum { - const ObjectStorageClass._( - super.index, - super.name, - super.value, - ); + const ObjectStorageClass._(super.index, super.name, super.value); const ObjectStorageClass._sdkUnknown(super.value) : super.sdkUnknown(); @@ -26,17 +22,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'EXPRESS_ONEZONE', ); - static const glacier = ObjectStorageClass._( - 2, - 'GLACIER', - 'GLACIER', - ); + static const glacier = ObjectStorageClass._(2, 'GLACIER', 'GLACIER'); - static const glacierIr = ObjectStorageClass._( - 3, - 'GLACIER_IR', - 'GLACIER_IR', - ); + static const glacierIr = ObjectStorageClass._(3, 'GLACIER_IR', 'GLACIER_IR'); static const intelligentTiering = ObjectStorageClass._( 4, @@ -44,17 +32,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'INTELLIGENT_TIERING', ); - static const onezoneIa = ObjectStorageClass._( - 5, - 'ONEZONE_IA', - 'ONEZONE_IA', - ); + static const onezoneIa = ObjectStorageClass._(5, 'ONEZONE_IA', 'ONEZONE_IA'); - static const outposts = ObjectStorageClass._( - 6, - 'OUTPOSTS', - 'OUTPOSTS', - ); + static const outposts = ObjectStorageClass._(6, 'OUTPOSTS', 'OUTPOSTS'); static const reducedRedundancy = ObjectStorageClass._( 7, @@ -62,17 +42,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { 'REDUCED_REDUNDANCY', ); - static const snow = ObjectStorageClass._( - 8, - 'SNOW', - 'SNOW', - ); + static const snow = ObjectStorageClass._(8, 'SNOW', 'SNOW'); - static const standard = ObjectStorageClass._( - 9, - 'STANDARD', - 'STANDARD', - ); + static const standard = ObjectStorageClass._(9, 'STANDARD', 'STANDARD'); static const standardIa = ObjectStorageClass._( 10, @@ -101,12 +73,9 @@ class ObjectStorageClass extends _i1.SmithyEnum { values: values, sdkUnknown: ObjectStorageClass._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/optional_object_attributes.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/optional_object_attributes.dart index a60457ac8a..3ee451371d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/optional_object_attributes.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/optional_object_attributes.dart @@ -7,11 +7,7 @@ import 'package:smithy/smithy.dart' as _i1; class OptionalObjectAttributes extends _i1.SmithyEnum { - const OptionalObjectAttributes._( - super.index, - super.name, - super.value, - ); + const OptionalObjectAttributes._(super.index, super.name, super.value); const OptionalObjectAttributes._sdkUnknown(super.value) : super.sdkUnknown(); @@ -23,22 +19,19 @@ class OptionalObjectAttributes /// All values of [OptionalObjectAttributes]. static const values = [ - OptionalObjectAttributes.restoreStatus + OptionalObjectAttributes.restoreStatus, ]; static const List<_i1.SmithySerializer> - serializers = [ + serializers = [ _i1.SmithyEnumSerializer( 'OptionalObjectAttributes', values: values, sdkUnknown: OptionalObjectAttributes._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.dart index 74a81e134d..f88e1c12ca 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.dart @@ -17,25 +17,19 @@ abstract class OutputSerialization with _i1.AWSEquatable implements Built { /// Describes how results of the Select job are serialized. - factory OutputSerialization({ - CsvOutput? csv, - JsonOutput? json, - }) { - return _$OutputSerialization._( - csv: csv, - json: json, - ); + factory OutputSerialization({CsvOutput? csv, JsonOutput? json}) { + return _$OutputSerialization._(csv: csv, json: json); } /// Describes how results of the Select job are serialized. - factory OutputSerialization.build( - [void Function(OutputSerializationBuilder) updates]) = - _$OutputSerialization; + factory OutputSerialization.build([ + void Function(OutputSerializationBuilder) updates, + ]) = _$OutputSerialization; const OutputSerialization._(); static const List<_i2.SmithySerializer> serializers = [ - OutputSerializationRestXmlSerializer() + OutputSerializationRestXmlSerializer(), ]; /// Describes the serialization of CSV-encoded Select results. @@ -44,22 +38,14 @@ abstract class OutputSerialization /// Specifies JSON as request's output serialization format. JsonOutput? get json; @override - List get props => [ - csv, - json, - ]; + List get props => [csv, json]; @override String toString() { - final helper = newBuiltValueToStringHelper('OutputSerialization') - ..add( - 'csv', - csv, - ) - ..add( - 'json', - json, - ); + final helper = + newBuiltValueToStringHelper('OutputSerialization') + ..add('csv', csv) + ..add('json', json); return helper.toString(); } } @@ -70,17 +56,14 @@ class OutputSerializationRestXmlSerializer @override Iterable get types => const [ - OutputSerialization, - _$OutputSerialization, - ]; + OutputSerialization, + _$OutputSerialization, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override OutputSerialization deserialize( @@ -99,15 +82,21 @@ class OutputSerializationRestXmlSerializer } switch (key) { case 'CSV': - result.csv.replace((serializers.deserialize( - value, - specifiedType: const FullType(CsvOutput), - ) as CsvOutput)); + result.csv.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(CsvOutput), + ) + as CsvOutput), + ); case 'JSON': - result.json.replace((serializers.deserialize( - value, - specifiedType: const FullType(JsonOutput), - ) as JsonOutput)); + result.json.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(JsonOutput), + ) + as JsonOutput), + ); } } @@ -124,24 +113,25 @@ class OutputSerializationRestXmlSerializer const _i2.XmlElementName( 'OutputSerialization', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final OutputSerialization(:csv, :json) = object; if (csv != null) { result$ ..add(const _i2.XmlElementName('CSV')) - ..add(serializers.serialize( - csv, - specifiedType: const FullType(CsvOutput), - )); + ..add( + serializers.serialize(csv, specifiedType: const FullType(CsvOutput)), + ); } if (json != null) { result$ ..add(const _i2.XmlElementName('JSON')) - ..add(serializers.serialize( - json, - specifiedType: const FullType(JsonOutput), - )); + ..add( + serializers.serialize( + json, + specifiedType: const FullType(JsonOutput), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.g.dart index 57610251fb..b8569b2608 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/output_serialization.g.dart @@ -12,16 +12,16 @@ class _$OutputSerialization extends OutputSerialization { @override final JsonOutput? json; - factory _$OutputSerialization( - [void Function(OutputSerializationBuilder)? updates]) => - (new OutputSerializationBuilder()..update(updates))._build(); + factory _$OutputSerialization([ + void Function(OutputSerializationBuilder)? updates, + ]) => (new OutputSerializationBuilder()..update(updates))._build(); _$OutputSerialization._({this.csv, this.json}) : super._(); @override OutputSerialization rebuild( - void Function(OutputSerializationBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(OutputSerializationBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override OutputSerializationBuilder toBuilder() => @@ -86,11 +86,9 @@ class OutputSerializationBuilder _$OutputSerialization _build() { _$OutputSerialization _$result; try { - _$result = _$v ?? - new _$OutputSerialization._( - csv: _csv?.build(), - json: _json?.build(), - ); + _$result = + _$v ?? + new _$OutputSerialization._(csv: _csv?.build(), json: _json?.build()); } catch (_) { late String _$failedField; try { @@ -100,7 +98,10 @@ class OutputSerializationBuilder _json?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'OutputSerialization', _$failedField, e.toString()); + r'OutputSerialization', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.dart index e0a8a24cca..e436f38786 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.dart @@ -15,14 +15,8 @@ abstract class Owner with _i1.AWSEquatable implements Built { /// Container for the owner's display name and ID. - factory Owner({ - String? displayName, - String? id, - }) { - return _$Owner._( - displayName: displayName, - id: id, - ); + factory Owner({String? displayName, String? id}) { + return _$Owner._(displayName: displayName, id: id); } /// Container for the owner's display name and ID. @@ -31,7 +25,7 @@ abstract class Owner const Owner._(); static const List<_i2.SmithySerializer> serializers = [ - OwnerRestXmlSerializer() + OwnerRestXmlSerializer(), ]; /// Container for the display name of the owner. This value is only supported in the following Amazon Web Services Regions: @@ -59,22 +53,14 @@ abstract class Owner /// Container for the ID of the owner. String? get id; @override - List get props => [ - displayName, - id, - ]; + List get props => [displayName, id]; @override String toString() { - final helper = newBuiltValueToStringHelper('Owner') - ..add( - 'displayName', - displayName, - ) - ..add( - 'id', - id, - ); + final helper = + newBuiltValueToStringHelper('Owner') + ..add('displayName', displayName) + ..add('id', id); return helper.toString(); } } @@ -83,18 +69,12 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { const OwnerRestXmlSerializer() : super('Owner'); @override - Iterable get types => const [ - Owner, - _$Owner, - ]; + Iterable get types => const [Owner, _$Owner]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Owner deserialize( @@ -113,15 +93,19 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { } switch (key) { case 'DisplayName': - result.displayName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.displayName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ID': - result.id = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.id = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -138,24 +122,23 @@ class OwnerRestXmlSerializer extends _i2.StructuredSmithySerializer { const _i2.XmlElementName( 'Owner', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Owner(:displayName, :id) = object; if (displayName != null) { result$ ..add(const _i2.XmlElementName('DisplayName')) - ..add(serializers.serialize( - displayName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + displayName, + specifiedType: const FullType(String), + ), + ); } if (id != null) { result$ ..add(const _i2.XmlElementName('ID')) - ..add(serializers.serialize( - id, - specifiedType: const FullType(String), - )); + ..add(serializers.serialize(id, specifiedType: const FullType(String))); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.g.dart index c6f43e778a..4e3153830a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/owner.g.dart @@ -78,11 +78,7 @@ class OwnerBuilder implements Builder { Owner build() => _build(); _$Owner _build() { - final _$result = _$v ?? - new _$Owner._( - displayName: displayName, - id: id, - ); + final _$result = _$v ?? new _$Owner._(displayName: displayName, id: id); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/parquet_input.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/parquet_input.dart index ac3b808193..0060835970 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/parquet_input.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/parquet_input.dart @@ -26,7 +26,7 @@ abstract class ParquetInput const ParquetInput._(); static const List<_i2.SmithySerializer> serializers = [ - ParquetInputRestXmlSerializer() + ParquetInputRestXmlSerializer(), ]; @override @@ -44,18 +44,12 @@ class ParquetInputRestXmlSerializer const ParquetInputRestXmlSerializer() : super('ParquetInput'); @override - Iterable get types => const [ - ParquetInput, - _$ParquetInput, - ]; + Iterable get types => const [ParquetInput, _$ParquetInput]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ParquetInput deserialize( @@ -76,7 +70,7 @@ class ParquetInputRestXmlSerializer const _i2.XmlElementName( 'ParquetInput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.dart index 1b28b59fc1..f012d53516 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.dart @@ -44,7 +44,7 @@ abstract class Part const Part._(); static const List<_i3.SmithySerializer> serializers = [ - PartRestXmlSerializer() + PartRestXmlSerializer(), ]; /// Part number identifying the part. This is a positive integer between 1 and 10,000. @@ -72,51 +72,28 @@ abstract class Part String? get checksumSha256; @override List get props => [ - partNumber, - lastModified, - eTag, - size, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - ]; + partNumber, + lastModified, + eTag, + size, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('Part') - ..add( - 'partNumber', - partNumber, - ) - ..add( - 'lastModified', - lastModified, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'size', - size, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ); + final helper = + newBuiltValueToStringHelper('Part') + ..add('partNumber', partNumber) + ..add('lastModified', lastModified) + ..add('eTag', eTag) + ..add('size', size) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256); return helper.toString(); } } @@ -125,18 +102,12 @@ class PartRestXmlSerializer extends _i3.StructuredSmithySerializer { const PartRestXmlSerializer() : super('Part'); @override - Iterable get types => const [ - Part, - _$Part, - ]; + Iterable get types => const [Part, _$Part]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Part deserialize( @@ -155,45 +126,61 @@ class PartRestXmlSerializer extends _i3.StructuredSmithySerializer { } switch (key) { case 'ChecksumCRC32': - result.checksumCrc32 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32C': - result.checksumCrc32C = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32C = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA1': - result.checksumSha1 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha1 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA256': - result.checksumSha256 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha256 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'PartNumber': - result.partNumber = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.partNumber = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'Size': - result.size = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.size = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); } } @@ -210,7 +197,7 @@ class PartRestXmlSerializer extends _i3.StructuredSmithySerializer { const _i3.XmlElementName( 'Part', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Part( :checksumCrc32, @@ -220,71 +207,78 @@ class PartRestXmlSerializer extends _i3.StructuredSmithySerializer { :eTag, :lastModified, :partNumber, - :size + :size, ) = object; if (checksumCrc32 != null) { result$ ..add(const _i3.XmlElementName('ChecksumCRC32')) - ..add(serializers.serialize( - checksumCrc32, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32, + specifiedType: const FullType(String), + ), + ); } if (checksumCrc32C != null) { result$ ..add(const _i3.XmlElementName('ChecksumCRC32C')) - ..add(serializers.serialize( - checksumCrc32C, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32C, + specifiedType: const FullType(String), + ), + ); } if (checksumSha1 != null) { result$ ..add(const _i3.XmlElementName('ChecksumSHA1')) - ..add(serializers.serialize( - checksumSha1, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha1, + specifiedType: const FullType(String), + ), + ); } if (checksumSha256 != null) { result$ ..add(const _i3.XmlElementName('ChecksumSHA256')) - ..add(serializers.serialize( - checksumSha256, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha256, + specifiedType: const FullType(String), + ), + ); } if (eTag != null) { result$ ..add(const _i3.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i3.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } if (partNumber != null) { result$ ..add(const _i3.XmlElementName('PartNumber')) - ..add(serializers.serialize( - partNumber, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(partNumber, specifiedType: const FullType(int)), + ); } if (size != null) { result$ ..add(const _i3.XmlElementName('Size')) - ..add(serializers.serialize( - size, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize(size, specifiedType: const FullType(_i2.Int64)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.g.dart index 85dc378001..b31b9b820c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/part.g.dart @@ -27,16 +27,16 @@ class _$Part extends Part { factory _$Part([void Function(PartBuilder)? updates]) => (new PartBuilder()..update(updates))._build(); - _$Part._( - {this.partNumber, - this.lastModified, - this.eTag, - this.size, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256}) - : super._(); + _$Part._({ + this.partNumber, + this.lastModified, + this.eTag, + this.size, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + }) : super._(); @override Part rebuild(void Function(PartBuilder) updates) => @@ -147,7 +147,8 @@ class PartBuilder implements Builder { Part build() => _build(); _$Part _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$Part._( partNumber: partNumber, lastModified: lastModified, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.dart index 36ef23ae50..03cb588ed0 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.dart @@ -34,7 +34,7 @@ abstract class Progress const Progress._(); static const List<_i3.SmithySerializer> serializers = [ - ProgressRestXmlSerializer() + ProgressRestXmlSerializer(), ]; /// The current number of object bytes scanned. @@ -46,27 +46,15 @@ abstract class Progress /// The current number of bytes of records payload data returned. _i2.Int64? get bytesReturned; @override - List get props => [ - bytesScanned, - bytesProcessed, - bytesReturned, - ]; + List get props => [bytesScanned, bytesProcessed, bytesReturned]; @override String toString() { - final helper = newBuiltValueToStringHelper('Progress') - ..add( - 'bytesScanned', - bytesScanned, - ) - ..add( - 'bytesProcessed', - bytesProcessed, - ) - ..add( - 'bytesReturned', - bytesReturned, - ); + final helper = + newBuiltValueToStringHelper('Progress') + ..add('bytesScanned', bytesScanned) + ..add('bytesProcessed', bytesProcessed) + ..add('bytesReturned', bytesReturned); return helper.toString(); } } @@ -76,18 +64,12 @@ class ProgressRestXmlSerializer const ProgressRestXmlSerializer() : super('Progress'); @override - Iterable get types => const [ - Progress, - _$Progress, - ]; + Iterable get types => const [Progress, _$Progress]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Progress deserialize( @@ -106,20 +88,26 @@ class ProgressRestXmlSerializer } switch (key) { case 'BytesProcessed': - result.bytesProcessed = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.bytesProcessed = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'BytesReturned': - result.bytesReturned = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.bytesReturned = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'BytesScanned': - result.bytesScanned = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.bytesScanned = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); } } @@ -136,32 +124,38 @@ class ProgressRestXmlSerializer const _i3.XmlElementName( 'Progress', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Progress(:bytesProcessed, :bytesReturned, :bytesScanned) = object; if (bytesProcessed != null) { result$ ..add(const _i3.XmlElementName('BytesProcessed')) - ..add(serializers.serialize( - bytesProcessed, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + bytesProcessed, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (bytesReturned != null) { result$ ..add(const _i3.XmlElementName('BytesReturned')) - ..add(serializers.serialize( - bytesReturned, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + bytesReturned, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (bytesScanned != null) { result$ ..add(const _i3.XmlElementName('BytesScanned')) - ..add(serializers.serialize( - bytesScanned, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + bytesScanned, + specifiedType: const FullType(_i2.Int64), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.g.dart index 6e920a493a..8ba3fb47b7 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress.g.dart @@ -18,7 +18,7 @@ class _$Progress extends Progress { (new ProgressBuilder()..update(updates))._build(); _$Progress._({this.bytesScanned, this.bytesProcessed, this.bytesReturned}) - : super._(); + : super._(); @override Progress rebuild(void Function(ProgressBuilder) updates) => @@ -93,7 +93,8 @@ class ProgressBuilder implements Builder { Progress build() => _build(); _$Progress _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$Progress._( bytesScanned: bytesScanned, bytesProcessed: bytesProcessed, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.dart index 82ffc7601a..f4afbd4f8c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.dart @@ -27,7 +27,7 @@ abstract class ProgressEvent const ProgressEvent._(); static const List<_i2.SmithySerializer> serializers = [ - ProgressEventRestXmlSerializer() + ProgressEventRestXmlSerializer(), ]; /// The Progress event details. @@ -38,10 +38,7 @@ abstract class ProgressEvent @override String toString() { final helper = newBuiltValueToStringHelper('ProgressEvent') - ..add( - 'details', - details, - ); + ..add('details', details); return helper.toString(); } } @@ -51,18 +48,12 @@ class ProgressEventRestXmlSerializer const ProgressEventRestXmlSerializer() : super('ProgressEvent'); @override - Iterable get types => const [ - ProgressEvent, - _$ProgressEvent, - ]; + Iterable get types => const [ProgressEvent, _$ProgressEvent]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ProgressEvent deserialize( @@ -81,10 +72,13 @@ class ProgressEventRestXmlSerializer } switch (key) { case 'Details': - result.details.replace((serializers.deserialize( - value, - specifiedType: const FullType(Progress), - ) as Progress)); + result.details.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Progress), + ) + as Progress), + ); } } @@ -101,16 +95,18 @@ class ProgressEventRestXmlSerializer const _i2.XmlElementName( 'ProgressEvent', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ProgressEvent(:details) = object; if (details != null) { result$ ..add(const _i2.XmlElementName('Details')) - ..add(serializers.serialize( - details, - specifiedType: const FullType(Progress), - )); + ..add( + serializers.serialize( + details, + specifiedType: const FullType(Progress), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.g.dart index 051c89a507..f78ef6d472 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/progress_event.g.dart @@ -73,10 +73,7 @@ class ProgressEventBuilder _$ProgressEvent _build() { _$ProgressEvent _$result; try { - _$result = _$v ?? - new _$ProgressEvent._( - details: _details?.build(), - ); + _$result = _$v ?? new _$ProgressEvent._(details: _details?.build()); } catch (_) { late String _$failedField; try { @@ -84,7 +81,10 @@ class ProgressEventBuilder _details?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'ProgressEvent', _$failedField, e.toString()); + r'ProgressEvent', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.dart index cbcf793b5a..7c2fa3e539 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.dart @@ -53,8 +53,9 @@ abstract class PutObjectOutput ); } - factory PutObjectOutput.build( - [void Function(PutObjectOutputBuilder) updates]) = _$PutObjectOutput; + factory PutObjectOutput.build([ + void Function(PutObjectOutputBuilder) updates, + ]) = _$PutObjectOutput; const PutObjectOutput._(); @@ -62,65 +63,65 @@ abstract class PutObjectOutput factory PutObjectOutput.fromResponse( PutObjectOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - PutObjectOutput.build((b) { - if (response.headers['x-amz-expiration'] != null) { - b.expiration = response.headers['x-amz-expiration']!; - } - if (response.headers['ETag'] != null) { - b.eTag = response.headers['ETag']!; - } - if (response.headers['x-amz-checksum-crc32'] != null) { - b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; - } - if (response.headers['x-amz-checksum-crc32c'] != null) { - b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; - } - if (response.headers['x-amz-checksum-sha1'] != null) { - b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; - } - if (response.headers['x-amz-checksum-sha256'] != null) { - b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; - } - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response.headers['x-amz-version-id'] != null) { - b.versionId = response.headers['x-amz-version-id']!; - } - if (response - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = response - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = response - .headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response.headers['x-amz-server-side-encryption-context'] != null) { - b.ssekmsEncryptionContext = - response.headers['x-amz-server-side-encryption-context']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => PutObjectOutput.build((b) { + if (response.headers['x-amz-expiration'] != null) { + b.expiration = response.headers['x-amz-expiration']!; + } + if (response.headers['ETag'] != null) { + b.eTag = response.headers['ETag']!; + } + if (response.headers['x-amz-checksum-crc32'] != null) { + b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; + } + if (response.headers['x-amz-checksum-crc32c'] != null) { + b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; + } + if (response.headers['x-amz-checksum-sha1'] != null) { + b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; + } + if (response.headers['x-amz-checksum-sha256'] != null) { + b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; + } + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['x-amz-version-id'] != null) { + b.versionId = response.headers['x-amz-version-id']!; + } + if (response.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + response.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + response.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-context'] != null) { + b.ssekmsEncryptionContext = + response.headers['x-amz-server-side-encryption-context']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> serializers = [PutObjectOutputRestXmlSerializer()]; @@ -195,81 +196,40 @@ abstract class PutObjectOutput @override List get props => [ - expiration, - eTag, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - serverSideEncryption, - versionId, - sseCustomerAlgorithm, - sseCustomerKeyMd5, - ssekmsKeyId, - ssekmsEncryptionContext, - bucketKeyEnabled, - requestCharged, - ]; + expiration, + eTag, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + serverSideEncryption, + versionId, + sseCustomerAlgorithm, + sseCustomerKeyMd5, + ssekmsKeyId, + ssekmsEncryptionContext, + bucketKeyEnabled, + requestCharged, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutObjectOutput') - ..add( - 'expiration', - expiration, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'versionId', - versionId, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'ssekmsEncryptionContext', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('PutObjectOutput') + ..add('expiration', expiration) + ..add('eTag', eTag) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('serverSideEncryption', serverSideEncryption) + ..add('versionId', versionId) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('ssekmsEncryptionContext', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestCharged', requestCharged); return helper.toString(); } } @@ -280,9 +240,9 @@ abstract class PutObjectOutputPayload implements Built, _i2.EmptyPayload { - factory PutObjectOutputPayload( - [void Function(PutObjectOutputPayloadBuilder) updates]) = - _$PutObjectOutputPayload; + factory PutObjectOutputPayload([ + void Function(PutObjectOutputPayloadBuilder) updates, + ]) = _$PutObjectOutputPayload; const PutObjectOutputPayload._(); @@ -302,19 +262,16 @@ class PutObjectOutputRestXmlSerializer @override Iterable get types => const [ - PutObjectOutput, - _$PutObjectOutput, - PutObjectOutputPayload, - _$PutObjectOutputPayload, - ]; + PutObjectOutput, + _$PutObjectOutput, + PutObjectOutputPayload, + _$PutObjectOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override PutObjectOutputPayload deserialize( @@ -335,7 +292,7 @@ class PutObjectOutputRestXmlSerializer const _i2.XmlElementName( 'PutObjectOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.g.dart index 47b6e43482..326c856eb6 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_output.g.dart @@ -39,22 +39,22 @@ class _$PutObjectOutput extends PutObjectOutput { factory _$PutObjectOutput([void Function(PutObjectOutputBuilder)? updates]) => (new PutObjectOutputBuilder()..update(updates))._build(); - _$PutObjectOutput._( - {this.expiration, - this.eTag, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.serverSideEncryption, - this.versionId, - this.sseCustomerAlgorithm, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.ssekmsEncryptionContext, - this.bucketKeyEnabled, - this.requestCharged}) - : super._(); + _$PutObjectOutput._({ + this.expiration, + this.eTag, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.serverSideEncryption, + this.versionId, + this.sseCustomerAlgorithm, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.ssekmsEncryptionContext, + this.bucketKeyEnabled, + this.requestCharged, + }) : super._(); @override PutObjectOutput rebuild(void Function(PutObjectOutputBuilder) updates) => @@ -215,7 +215,8 @@ class PutObjectOutputBuilder PutObjectOutput build() => _build(); _$PutObjectOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$PutObjectOutput._( expiration: expiration, eTag: eTag, @@ -238,16 +239,16 @@ class PutObjectOutputBuilder } class _$PutObjectOutputPayload extends PutObjectOutputPayload { - factory _$PutObjectOutputPayload( - [void Function(PutObjectOutputPayloadBuilder)? updates]) => - (new PutObjectOutputPayloadBuilder()..update(updates))._build(); + factory _$PutObjectOutputPayload([ + void Function(PutObjectOutputPayloadBuilder)? updates, + ]) => (new PutObjectOutputPayloadBuilder()..update(updates))._build(); _$PutObjectOutputPayload._() : super._(); @override PutObjectOutputPayload rebuild( - void Function(PutObjectOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(PutObjectOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override PutObjectOutputPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart index cfdc3fa98f..ed70abf158 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.dart @@ -109,8 +109,9 @@ abstract class PutObjectRequest ); } - factory PutObjectRequest.build( - [void Function(PutObjectRequestBuilder) updates]) = _$PutObjectRequest; + factory PutObjectRequest.build([ + void Function(PutObjectRequestBuilder) updates, + ]) = _$PutObjectRequest; const PutObjectRequest._(); @@ -118,156 +119,156 @@ abstract class PutObjectRequest _i2.Stream> payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - PutObjectRequest.build((b) { - b.body = payload; - if (request.headers['x-amz-acl'] != null) { - b.acl = ObjectCannedAcl.values.byValue(request.headers['x-amz-acl']!); - } - if (request.headers['Cache-Control'] != null) { - b.cacheControl = request.headers['Cache-Control']!; - } - if (request.headers['Content-Disposition'] != null) { - b.contentDisposition = request.headers['Content-Disposition']!; - } - if (request.headers['Content-Encoding'] != null) { - b.contentEncoding = request.headers['Content-Encoding']!; - } - if (request.headers['Content-Language'] != null) { - b.contentLanguage = request.headers['Content-Language']!; - } - if (request.headers['Content-Length'] != null) { - b.contentLength = - _i4.Int64.parseInt(request.headers['Content-Length']!); - } - if (request.headers['Content-MD5'] != null) { - b.contentMd5 = request.headers['Content-MD5']!; - } - if (request.headers['Content-Type'] != null) { - b.contentType = request.headers['Content-Type']!; - } - if (request.headers['x-amz-sdk-checksum-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-sdk-checksum-algorithm']!); - } - if (request.headers['x-amz-checksum-crc32'] != null) { - b.checksumCrc32 = request.headers['x-amz-checksum-crc32']!; - } - if (request.headers['x-amz-checksum-crc32c'] != null) { - b.checksumCrc32C = request.headers['x-amz-checksum-crc32c']!; - } - if (request.headers['x-amz-checksum-sha1'] != null) { - b.checksumSha1 = request.headers['x-amz-checksum-sha1']!; - } - if (request.headers['x-amz-checksum-sha256'] != null) { - b.checksumSha256 = request.headers['x-amz-checksum-sha256']!; - } - if (request.headers['Expires'] != null) { - b.expires = _i1.Timestamp.parse( + }) => PutObjectRequest.build((b) { + b.body = payload; + if (request.headers['x-amz-acl'] != null) { + b.acl = ObjectCannedAcl.values.byValue(request.headers['x-amz-acl']!); + } + if (request.headers['Cache-Control'] != null) { + b.cacheControl = request.headers['Cache-Control']!; + } + if (request.headers['Content-Disposition'] != null) { + b.contentDisposition = request.headers['Content-Disposition']!; + } + if (request.headers['Content-Encoding'] != null) { + b.contentEncoding = request.headers['Content-Encoding']!; + } + if (request.headers['Content-Language'] != null) { + b.contentLanguage = request.headers['Content-Language']!; + } + if (request.headers['Content-Length'] != null) { + b.contentLength = _i4.Int64.parseInt(request.headers['Content-Length']!); + } + if (request.headers['Content-MD5'] != null) { + b.contentMd5 = request.headers['Content-MD5']!; + } + if (request.headers['Content-Type'] != null) { + b.contentType = request.headers['Content-Type']!; + } + if (request.headers['x-amz-sdk-checksum-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-sdk-checksum-algorithm']!, + ); + } + if (request.headers['x-amz-checksum-crc32'] != null) { + b.checksumCrc32 = request.headers['x-amz-checksum-crc32']!; + } + if (request.headers['x-amz-checksum-crc32c'] != null) { + b.checksumCrc32C = request.headers['x-amz-checksum-crc32c']!; + } + if (request.headers['x-amz-checksum-sha1'] != null) { + b.checksumSha1 = request.headers['x-amz-checksum-sha1']!; + } + if (request.headers['x-amz-checksum-sha256'] != null) { + b.checksumSha256 = request.headers['x-amz-checksum-sha256']!; + } + if (request.headers['Expires'] != null) { + b.expires = + _i1.Timestamp.parse( request.headers['Expires']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['x-amz-grant-full-control'] != null) { - b.grantFullControl = request.headers['x-amz-grant-full-control']!; - } - if (request.headers['x-amz-grant-read'] != null) { - b.grantRead = request.headers['x-amz-grant-read']!; - } - if (request.headers['x-amz-grant-read-acp'] != null) { - b.grantReadAcp = request.headers['x-amz-grant-read-acp']!; - } - if (request.headers['x-amz-grant-write-acp'] != null) { - b.grantWriteAcp = request.headers['x-amz-grant-write-acp']!; - } - if (request.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(request.headers['x-amz-server-side-encryption']!); - } - if (request.headers['x-amz-storage-class'] != null) { - b.storageClass = StorageClass.values - .byValue(request.headers['x-amz-storage-class']!); - } - if (request.headers['x-amz-website-redirect-location'] != null) { - b.websiteRedirectLocation = - request.headers['x-amz-website-redirect-location']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - request.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (request.headers['x-amz-server-side-encryption-context'] != null) { - b.ssekmsEncryptionContext = - request.headers['x-amz-server-side-encryption-context']!; - } - if (request - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = request.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-tagging'] != null) { - b.tagging = request.headers['x-amz-tagging']!; - } - if (request.headers['x-amz-object-lock-mode'] != null) { - b.objectLockMode = ObjectLockMode.values - .byValue(request.headers['x-amz-object-lock-mode']!); - } - if (request.headers['x-amz-object-lock-retain-until-date'] != null) { - b.objectLockRetainUntilDate = _i1.Timestamp.parse( + } + if (request.headers['x-amz-grant-full-control'] != null) { + b.grantFullControl = request.headers['x-amz-grant-full-control']!; + } + if (request.headers['x-amz-grant-read'] != null) { + b.grantRead = request.headers['x-amz-grant-read']!; + } + if (request.headers['x-amz-grant-read-acp'] != null) { + b.grantReadAcp = request.headers['x-amz-grant-read-acp']!; + } + if (request.headers['x-amz-grant-write-acp'] != null) { + b.grantWriteAcp = request.headers['x-amz-grant-write-acp']!; + } + if (request.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + request.headers['x-amz-server-side-encryption']!, + ); + } + if (request.headers['x-amz-storage-class'] != null) { + b.storageClass = StorageClass.values.byValue( + request.headers['x-amz-storage-class']!, + ); + } + if (request.headers['x-amz-website-redirect-location'] != null) { + b.websiteRedirectLocation = + request.headers['x-amz-website-redirect-location']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + request.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (request.headers['x-amz-server-side-encryption-context'] != null) { + b.ssekmsEncryptionContext = + request.headers['x-amz-server-side-encryption-context']!; + } + if (request.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + request.headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-tagging'] != null) { + b.tagging = request.headers['x-amz-tagging']!; + } + if (request.headers['x-amz-object-lock-mode'] != null) { + b.objectLockMode = ObjectLockMode.values.byValue( + request.headers['x-amz-object-lock-mode']!, + ); + } + if (request.headers['x-amz-object-lock-retain-until-date'] != null) { + b.objectLockRetainUntilDate = + _i1.Timestamp.parse( request.headers['x-amz-object-lock-retain-until-date']!, format: _i1.TimestampFormat.dateTime, ).asDateTime; - } - if (request.headers['x-amz-object-lock-legal-hold'] != null) { - b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values - .byValue(request.headers['x-amz-object-lock-legal-hold']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - b.metadata.addEntries(request.headers.entries - .where((el) => el.key.startsWith('x-amz-meta-')) - .map((el) => MapEntry( - el.key.replaceFirst( - 'x-amz-meta-', - '', - ), - el.value, - ))); - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + } + if (request.headers['x-amz-object-lock-legal-hold'] != null) { + b.objectLockLegalHoldStatus = ObjectLockLegalHoldStatus.values.byValue( + request.headers['x-amz-object-lock-legal-hold']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + b.metadata.addEntries( + request.headers.entries + .where((el) => el.key.startsWith('x-amz-meta-')) + .map( + (el) => MapEntry(el.key.replaceFirst('x-amz-meta-', ''), el.value), + ), + ); + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>>> serializers = [ - PutObjectRequestRestXmlSerializer() + PutObjectRequestRestXmlSerializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -490,10 +491,7 @@ abstract class PutObjectRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -501,196 +499,86 @@ abstract class PutObjectRequest @override List get props => [ - acl, - body, - bucket, - cacheControl, - contentDisposition, - contentEncoding, - contentLanguage, - contentLength, - contentMd5, - contentType, - checksumAlgorithm, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - expires, - grantFullControl, - grantRead, - grantReadAcp, - grantWriteAcp, - key, - metadata, - serverSideEncryption, - storageClass, - websiteRedirectLocation, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - ssekmsKeyId, - ssekmsEncryptionContext, - bucketKeyEnabled, - requestPayer, - tagging, - objectLockMode, - objectLockRetainUntilDate, - objectLockLegalHoldStatus, - expectedBucketOwner, - ]; + acl, + body, + bucket, + cacheControl, + contentDisposition, + contentEncoding, + contentLanguage, + contentLength, + contentMd5, + contentType, + checksumAlgorithm, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + expires, + grantFullControl, + grantRead, + grantReadAcp, + grantWriteAcp, + key, + metadata, + serverSideEncryption, + storageClass, + websiteRedirectLocation, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + ssekmsKeyId, + ssekmsEncryptionContext, + bucketKeyEnabled, + requestPayer, + tagging, + objectLockMode, + objectLockRetainUntilDate, + objectLockLegalHoldStatus, + expectedBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('PutObjectRequest') - ..add( - 'acl', - acl, - ) - ..add( - 'body', - body, - ) - ..add( - 'bucket', - bucket, - ) - ..add( - 'cacheControl', - cacheControl, - ) - ..add( - 'contentDisposition', - contentDisposition, - ) - ..add( - 'contentEncoding', - contentEncoding, - ) - ..add( - 'contentLanguage', - contentLanguage, - ) - ..add( - 'contentLength', - contentLength, - ) - ..add( - 'contentMd5', - contentMd5, - ) - ..add( - 'contentType', - contentType, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'expires', - expires, - ) - ..add( - 'grantFullControl', - grantFullControl, - ) - ..add( - 'grantRead', - grantRead, - ) - ..add( - 'grantReadAcp', - grantReadAcp, - ) - ..add( - 'grantWriteAcp', - grantWriteAcp, - ) - ..add( - 'key', - key, - ) - ..add( - 'metadata', - metadata, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'storageClass', - storageClass, - ) - ..add( - 'websiteRedirectLocation', - websiteRedirectLocation, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'ssekmsEncryptionContext', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'tagging', - tagging, - ) - ..add( - 'objectLockMode', - objectLockMode, - ) - ..add( - 'objectLockRetainUntilDate', - objectLockRetainUntilDate, - ) - ..add( - 'objectLockLegalHoldStatus', - objectLockLegalHoldStatus, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('PutObjectRequest') + ..add('acl', acl) + ..add('body', body) + ..add('bucket', bucket) + ..add('cacheControl', cacheControl) + ..add('contentDisposition', contentDisposition) + ..add('contentEncoding', contentEncoding) + ..add('contentLanguage', contentLanguage) + ..add('contentLength', contentLength) + ..add('contentMd5', contentMd5) + ..add('contentType', contentType) + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('expires', expires) + ..add('grantFullControl', grantFullControl) + ..add('grantRead', grantRead) + ..add('grantReadAcp', grantReadAcp) + ..add('grantWriteAcp', grantWriteAcp) + ..add('key', key) + ..add('metadata', metadata) + ..add('serverSideEncryption', serverSideEncryption) + ..add('storageClass', storageClass) + ..add('websiteRedirectLocation', websiteRedirectLocation) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('ssekmsEncryptionContext', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestPayer', requestPayer) + ..add('tagging', tagging) + ..add('objectLockMode', objectLockMode) + ..add('objectLockRetainUntilDate', objectLockRetainUntilDate) + ..add('objectLockLegalHoldStatus', objectLockLegalHoldStatus) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @@ -700,18 +588,12 @@ class PutObjectRequestRestXmlSerializer const PutObjectRequestRestXmlSerializer() : super('PutObjectRequest'); @override - Iterable get types => const [ - PutObjectRequest, - _$PutObjectRequest, - ]; + Iterable get types => const [PutObjectRequest, _$PutObjectRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i2.Stream> deserialize( @@ -720,17 +602,12 @@ class PutObjectRequestRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -743,21 +620,17 @@ class PutObjectRequestRestXmlSerializer const _i1.XmlElementName( 'PutObjectRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), ), - )); + ); return result$; } } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.g.dart index 6a56234432..57a05ea524 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/put_object_request.g.dart @@ -82,52 +82,55 @@ class _$PutObjectRequest extends PutObjectRequest { @override final String? expectedBucketOwner; - factory _$PutObjectRequest( - [void Function(PutObjectRequestBuilder)? updates]) => - (new PutObjectRequestBuilder()..update(updates))._build(); - - _$PutObjectRequest._( - {this.acl, - required this.body, - required this.bucket, - this.cacheControl, - this.contentDisposition, - this.contentEncoding, - this.contentLanguage, - this.contentLength, - this.contentMd5, - this.contentType, - this.checksumAlgorithm, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.expires, - this.grantFullControl, - this.grantRead, - this.grantReadAcp, - this.grantWriteAcp, - required this.key, - this.metadata, - this.serverSideEncryption, - this.storageClass, - this.websiteRedirectLocation, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.ssekmsEncryptionContext, - this.bucketKeyEnabled, - this.requestPayer, - this.tagging, - this.objectLockMode, - this.objectLockRetainUntilDate, - this.objectLockLegalHoldStatus, - this.expectedBucketOwner}) - : super._() { + factory _$PutObjectRequest([ + void Function(PutObjectRequestBuilder)? updates, + ]) => (new PutObjectRequestBuilder()..update(updates))._build(); + + _$PutObjectRequest._({ + this.acl, + required this.body, + required this.bucket, + this.cacheControl, + this.contentDisposition, + this.contentEncoding, + this.contentLanguage, + this.contentLength, + this.contentMd5, + this.contentType, + this.checksumAlgorithm, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.expires, + this.grantFullControl, + this.grantRead, + this.grantReadAcp, + this.grantWriteAcp, + required this.key, + this.metadata, + this.serverSideEncryption, + this.storageClass, + this.websiteRedirectLocation, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.ssekmsEncryptionContext, + this.bucketKeyEnabled, + this.requestPayer, + this.tagging, + this.objectLockMode, + this.objectLockRetainUntilDate, + this.objectLockLegalHoldStatus, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull(body, r'PutObjectRequest', 'body'); BuiltValueNullFieldError.checkNotNull( - bucket, r'PutObjectRequest', 'bucket'); + bucket, + r'PutObjectRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull(key, r'PutObjectRequest', 'key'); } @@ -399,8 +402,8 @@ class PutObjectRequestBuilder ObjectLockLegalHoldStatus? get objectLockLegalHoldStatus => _$this._objectLockLegalHoldStatus; set objectLockLegalHoldStatus( - ObjectLockLegalHoldStatus? objectLockLegalHoldStatus) => - _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; + ObjectLockLegalHoldStatus? objectLockLegalHoldStatus, + ) => _$this._objectLockLegalHoldStatus = objectLockLegalHoldStatus; String? _expectedBucketOwner; String? get expectedBucketOwner => _$this._expectedBucketOwner; @@ -473,13 +476,20 @@ class PutObjectRequestBuilder _$PutObjectRequest _build() { _$PutObjectRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$PutObjectRequest._( acl: acl, body: BuiltValueNullFieldError.checkNotNull( - body, r'PutObjectRequest', 'body'), + body, + r'PutObjectRequest', + 'body', + ), bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'PutObjectRequest', 'bucket'), + bucket, + r'PutObjectRequest', + 'bucket', + ), cacheControl: cacheControl, contentDisposition: contentDisposition, contentEncoding: contentEncoding, @@ -498,7 +508,10 @@ class PutObjectRequestBuilder grantReadAcp: grantReadAcp, grantWriteAcp: grantWriteAcp, key: BuiltValueNullFieldError.checkNotNull( - key, r'PutObjectRequest', 'key'), + key, + r'PutObjectRequest', + 'key', + ), metadata: _metadata?.build(), serverSideEncryption: serverSideEncryption, storageClass: storageClass, @@ -523,7 +536,10 @@ class PutObjectRequestBuilder _metadata?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'PutObjectRequest', _$failedField, e.toString()); + r'PutObjectRequest', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/quote_fields.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/quote_fields.dart index cbdc5504dd..6061352a8a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/quote_fields.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/quote_fields.dart @@ -6,31 +6,16 @@ library amplify_storage_s3_dart.s3.model.quote_fields; // ignore_for_file: no_le import 'package:smithy/smithy.dart' as _i1; class QuoteFields extends _i1.SmithyEnum { - const QuoteFields._( - super.index, - super.name, - super.value, - ); + const QuoteFields._(super.index, super.name, super.value); const QuoteFields._sdkUnknown(super.value) : super.sdkUnknown(); - static const always = QuoteFields._( - 0, - 'ALWAYS', - 'ALWAYS', - ); + static const always = QuoteFields._(0, 'ALWAYS', 'ALWAYS'); - static const asneeded = QuoteFields._( - 1, - 'ASNEEDED', - 'ASNEEDED', - ); + static const asneeded = QuoteFields._(1, 'ASNEEDED', 'ASNEEDED'); /// All values of [QuoteFields]. - static const values = [ - QuoteFields.always, - QuoteFields.asneeded, - ]; + static const values = [QuoteFields.always, QuoteFields.asneeded]; static const List<_i1.SmithySerializer> serializers = [ _i1.SmithyEnumSerializer( @@ -38,12 +23,9 @@ class QuoteFields extends _i1.SmithyEnum { values: values, sdkUnknown: QuoteFields._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.dart index 72428f52b7..cac78e4807 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.dart @@ -28,7 +28,7 @@ abstract class RecordsEvent const RecordsEvent._(); static const List<_i3.SmithySerializer> serializers = [ - RecordsEventRestXmlSerializer() + RecordsEventRestXmlSerializer(), ]; /// The byte array of partial, one or more result records. @@ -39,10 +39,7 @@ abstract class RecordsEvent @override String toString() { final helper = newBuiltValueToStringHelper('RecordsEvent') - ..add( - 'payload', - payload, - ); + ..add('payload', payload); return helper.toString(); } } @@ -52,18 +49,12 @@ class RecordsEventRestXmlSerializer const RecordsEventRestXmlSerializer() : super('RecordsEvent'); @override - Iterable get types => const [ - RecordsEvent, - _$RecordsEvent, - ]; + Iterable get types => const [RecordsEvent, _$RecordsEvent]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RecordsEvent deserialize( @@ -82,10 +73,12 @@ class RecordsEventRestXmlSerializer } switch (key) { case 'Payload': - result.payload = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Uint8List), - ) as _i2.Uint8List); + result.payload = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Uint8List), + ) + as _i2.Uint8List); } } @@ -102,16 +95,18 @@ class RecordsEventRestXmlSerializer const _i3.XmlElementName( 'RecordsEvent', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final RecordsEvent(:payload) = object; if (payload != null) { result$ ..add(const _i3.XmlElementName('Payload')) - ..add(serializers.serialize( - payload, - specifiedType: const FullType(_i2.Uint8List), - )); + ..add( + serializers.serialize( + payload, + specifiedType: const FullType(_i2.Uint8List), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.g.dart index 8fe8a7cf3a..129e5f8dc5 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/records_event.g.dart @@ -71,10 +71,7 @@ class RecordsEventBuilder RecordsEvent build() => _build(); _$RecordsEvent _build() { - final _$result = _$v ?? - new _$RecordsEvent._( - payload: payload, - ); + final _$result = _$v ?? new _$RecordsEvent._(payload: payload); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/replication_status.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/replication_status.dart index 5a134e8e38..b3a4bdd77a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/replication_status.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/replication_status.dart @@ -6,43 +6,19 @@ library amplify_storage_s3_dart.s3.model.replication_status; // ignore_for_file: import 'package:smithy/smithy.dart' as _i1; class ReplicationStatus extends _i1.SmithyEnum { - const ReplicationStatus._( - super.index, - super.name, - super.value, - ); + const ReplicationStatus._(super.index, super.name, super.value); const ReplicationStatus._sdkUnknown(super.value) : super.sdkUnknown(); - static const complete = ReplicationStatus._( - 0, - 'COMPLETE', - 'COMPLETE', - ); + static const complete = ReplicationStatus._(0, 'COMPLETE', 'COMPLETE'); - static const completed = ReplicationStatus._( - 1, - 'COMPLETED', - 'COMPLETED', - ); + static const completed = ReplicationStatus._(1, 'COMPLETED', 'COMPLETED'); - static const failed = ReplicationStatus._( - 2, - 'FAILED', - 'FAILED', - ); + static const failed = ReplicationStatus._(2, 'FAILED', 'FAILED'); - static const pending = ReplicationStatus._( - 3, - 'PENDING', - 'PENDING', - ); + static const pending = ReplicationStatus._(3, 'PENDING', 'PENDING'); - static const replica = ReplicationStatus._( - 4, - 'REPLICA', - 'REPLICA', - ); + static const replica = ReplicationStatus._(4, 'REPLICA', 'REPLICA'); /// All values of [ReplicationStatus]. static const values = [ @@ -59,12 +35,9 @@ class ReplicationStatus extends _i1.SmithyEnum { values: values, sdkUnknown: ReplicationStatus._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_charged.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_charged.dart index 45b3a7c3f0..c40bbd41f2 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_charged.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_charged.dart @@ -9,19 +9,11 @@ import 'package:smithy/smithy.dart' as _i1; /// /// This functionality is not supported for directory buckets. class RequestCharged extends _i1.SmithyEnum { - const RequestCharged._( - super.index, - super.name, - super.value, - ); + const RequestCharged._(super.index, super.name, super.value); const RequestCharged._sdkUnknown(super.value) : super.sdkUnknown(); - static const requester = RequestCharged._( - 0, - 'requester', - 'requester', - ); + static const requester = RequestCharged._(0, 'requester', 'requester'); /// All values of [RequestCharged]. static const values = [RequestCharged.requester]; @@ -32,12 +24,9 @@ class RequestCharged extends _i1.SmithyEnum { values: values, sdkUnknown: RequestCharged._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_payer.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_payer.dart index 891f201ec6..6048a32eb9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_payer.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_payer.dart @@ -9,19 +9,11 @@ import 'package:smithy/smithy.dart' as _i1; /// /// This functionality is not supported for directory buckets. class RequestPayer extends _i1.SmithyEnum { - const RequestPayer._( - super.index, - super.name, - super.value, - ); + const RequestPayer._(super.index, super.name, super.value); const RequestPayer._sdkUnknown(super.value) : super.sdkUnknown(); - static const requester = RequestPayer._( - 0, - 'requester', - 'requester', - ); + static const requester = RequestPayer._(0, 'requester', 'requester'); /// All values of [RequestPayer]. static const values = [RequestPayer.requester]; @@ -32,12 +24,9 @@ class RequestPayer extends _i1.SmithyEnum { values: values, sdkUnknown: RequestPayer._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.dart index 2ac09e1c7d..ce97d35eb4 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.dart @@ -20,13 +20,14 @@ abstract class RequestProgress } /// Container for specifying if periodic `QueryProgress` messages should be sent. - factory RequestProgress.build( - [void Function(RequestProgressBuilder) updates]) = _$RequestProgress; + factory RequestProgress.build([ + void Function(RequestProgressBuilder) updates, + ]) = _$RequestProgress; const RequestProgress._(); static const List<_i2.SmithySerializer> serializers = [ - RequestProgressRestXmlSerializer() + RequestProgressRestXmlSerializer(), ]; /// Specifies whether periodic QueryProgress frames should be sent. Valid values: TRUE, FALSE. Default value: FALSE. @@ -37,10 +38,7 @@ abstract class RequestProgress @override String toString() { final helper = newBuiltValueToStringHelper('RequestProgress') - ..add( - 'enabled', - enabled, - ); + ..add('enabled', enabled); return helper.toString(); } } @@ -50,18 +48,12 @@ class RequestProgressRestXmlSerializer const RequestProgressRestXmlSerializer() : super('RequestProgress'); @override - Iterable get types => const [ - RequestProgress, - _$RequestProgress, - ]; + Iterable get types => const [RequestProgress, _$RequestProgress]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RequestProgress deserialize( @@ -80,10 +72,12 @@ class RequestProgressRestXmlSerializer } switch (key) { case 'Enabled': - result.enabled = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.enabled = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -100,16 +94,15 @@ class RequestProgressRestXmlSerializer const _i2.XmlElementName( 'RequestProgress', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final RequestProgress(:enabled) = object; if (enabled != null) { result$ ..add(const _i2.XmlElementName('Enabled')) - ..add(serializers.serialize( - enabled, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize(enabled, specifiedType: const FullType(bool)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.g.dart index 39d0fde3a1..ed7bc3c9ce 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/request_progress.g.dart @@ -72,10 +72,7 @@ class RequestProgressBuilder RequestProgress build() => _build(); _$RequestProgress _build() { - final _$result = _$v ?? - new _$RequestProgress._( - enabled: enabled, - ); + final _$result = _$v ?? new _$RequestProgress._(enabled: enabled); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.dart index 4f2f1ee97d..7198867c90 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.dart @@ -38,7 +38,7 @@ abstract class RestoreStatus const RestoreStatus._(); static const List<_i2.SmithySerializer> serializers = [ - RestoreStatusRestXmlSerializer() + RestoreStatusRestXmlSerializer(), ]; /// Specifies whether the object is currently being restored. If the object restoration is in progress, the header returns the value `TRUE`. For example: @@ -57,22 +57,14 @@ abstract class RestoreStatus /// `x-amz-optional-object-attributes: IsRestoreInProgress="false", RestoreExpiryDate="2012-12-21T00:00:00.000Z"` DateTime? get restoreExpiryDate; @override - List get props => [ - isRestoreInProgress, - restoreExpiryDate, - ]; + List get props => [isRestoreInProgress, restoreExpiryDate]; @override String toString() { - final helper = newBuiltValueToStringHelper('RestoreStatus') - ..add( - 'isRestoreInProgress', - isRestoreInProgress, - ) - ..add( - 'restoreExpiryDate', - restoreExpiryDate, - ); + final helper = + newBuiltValueToStringHelper('RestoreStatus') + ..add('isRestoreInProgress', isRestoreInProgress) + ..add('restoreExpiryDate', restoreExpiryDate); return helper.toString(); } } @@ -82,18 +74,12 @@ class RestoreStatusRestXmlSerializer const RestoreStatusRestXmlSerializer() : super('RestoreStatus'); @override - Iterable get types => const [ - RestoreStatus, - _$RestoreStatus, - ]; + Iterable get types => const [RestoreStatus, _$RestoreStatus]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override RestoreStatus deserialize( @@ -112,15 +98,19 @@ class RestoreStatusRestXmlSerializer } switch (key) { case 'IsRestoreInProgress': - result.isRestoreInProgress = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.isRestoreInProgress = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); case 'RestoreExpiryDate': - result.restoreExpiryDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.restoreExpiryDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -137,24 +127,28 @@ class RestoreStatusRestXmlSerializer const _i2.XmlElementName( 'RestoreStatus', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final RestoreStatus(:isRestoreInProgress, :restoreExpiryDate) = object; if (isRestoreInProgress != null) { result$ ..add(const _i2.XmlElementName('IsRestoreInProgress')) - ..add(serializers.serialize( - isRestoreInProgress, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + isRestoreInProgress, + specifiedType: const FullType(bool), + ), + ); } if (restoreExpiryDate != null) { result$ ..add(const _i2.XmlElementName('RestoreExpiryDate')) - ..add(serializers.serialize( - restoreExpiryDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + restoreExpiryDate, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.g.dart index eaced4799b..ccadb0271d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/restore_status.g.dart @@ -16,7 +16,7 @@ class _$RestoreStatus extends RestoreStatus { (new RestoreStatusBuilder()..update(updates))._build(); _$RestoreStatus._({this.isRestoreInProgress, this.restoreExpiryDate}) - : super._(); + : super._(); @override RestoreStatus rebuild(void Function(RestoreStatusBuilder) updates) => @@ -84,7 +84,8 @@ class RestoreStatusBuilder RestoreStatus build() => _build(); _$RestoreStatus _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$RestoreStatus._( isRestoreInProgress: isRestoreInProgress, restoreExpiryDate: restoreExpiryDate, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.dart index 5e552b0210..5b8d5eda88 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.dart @@ -16,14 +16,8 @@ abstract class ScanRange with _i1.AWSEquatable implements Built { /// Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range. - factory ScanRange({ - _i2.Int64? start, - _i2.Int64? end, - }) { - return _$ScanRange._( - start: start, - end: end, - ); + factory ScanRange({_i2.Int64? start, _i2.Int64? end}) { + return _$ScanRange._(start: start, end: end); } /// Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range. @@ -33,7 +27,7 @@ abstract class ScanRange const ScanRange._(); static const List<_i3.SmithySerializer> serializers = [ - ScanRangeRestXmlSerializer() + ScanRangeRestXmlSerializer(), ]; /// Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only `start` is supplied, it means scan from that point to the end of the file. For example, `50` means scan from byte 50 until the end of the file. @@ -42,22 +36,14 @@ abstract class ScanRange /// Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example, `50` means scan the last 50 bytes. _i2.Int64? get end; @override - List get props => [ - start, - end, - ]; + List get props => [start, end]; @override String toString() { - final helper = newBuiltValueToStringHelper('ScanRange') - ..add( - 'start', - start, - ) - ..add( - 'end', - end, - ); + final helper = + newBuiltValueToStringHelper('ScanRange') + ..add('start', start) + ..add('end', end); return helper.toString(); } } @@ -67,18 +53,12 @@ class ScanRangeRestXmlSerializer const ScanRangeRestXmlSerializer() : super('ScanRange'); @override - Iterable get types => const [ - ScanRange, - _$ScanRange, - ]; + Iterable get types => const [ScanRange, _$ScanRange]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override ScanRange deserialize( @@ -97,15 +77,19 @@ class ScanRangeRestXmlSerializer } switch (key) { case 'End': - result.end = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.end = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'Start': - result.start = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.start = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); } } @@ -122,24 +106,25 @@ class ScanRangeRestXmlSerializer const _i3.XmlElementName( 'ScanRange', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final ScanRange(:end, :start) = object; if (end != null) { result$ ..add(const _i3.XmlElementName('End')) - ..add(serializers.serialize( - end, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize(end, specifiedType: const FullType(_i2.Int64)), + ); } if (start != null) { result$ ..add(const _i3.XmlElementName('Start')) - ..add(serializers.serialize( - start, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + start, + specifiedType: const FullType(_i2.Int64), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.g.dart index dca6a1ff18..cab56ed433 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/scan_range.g.dart @@ -78,11 +78,7 @@ class ScanRangeBuilder implements Builder { ScanRange build() => _build(); _$ScanRange _build() { - final _$result = _$v ?? - new _$ScanRange._( - start: start, - end: end, - ); + final _$result = _$v ?? new _$ScanRange._(start: start, end: end); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart index c04e84f325..c17e0bacd0 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_event_stream.dart @@ -42,7 +42,7 @@ sealed class SelectObjectContentEventStream ) = SelectObjectContentEventStreamSdkUnknown$; static const List<_i1.SmithySerializer> - serializers = [SelectObjectContentEventStreamRestXmlSerializer()]; + serializers = [SelectObjectContentEventStreamRestXmlSerializer()]; /// The Records Event. RecordsEvent? get records => null; @@ -64,37 +64,23 @@ sealed class SelectObjectContentEventStream @override String toString() { - final helper = - newBuiltValueToStringHelper(r'SelectObjectContentEventStream'); + final helper = newBuiltValueToStringHelper( + r'SelectObjectContentEventStream', + ); if (records != null) { - helper.add( - r'records', - records, - ); + helper.add(r'records', records); } if (stats != null) { - helper.add( - r'stats', - stats, - ); + helper.add(r'stats', stats); } if (progress != null) { - helper.add( - r'progress', - progress, - ); + helper.add(r'progress', progress); } if (cont != null) { - helper.add( - r'cont', - cont, - ); + helper.add(r'cont', cont); } if (end != null) { - helper.add( - r'end', - end, - ); + helper.add(r'end', end); } return helper.toString(); } @@ -157,10 +143,8 @@ final class SelectObjectContentEventStreamEnd$ final class SelectObjectContentEventStreamSdkUnknown$ extends SelectObjectContentEventStream { - const SelectObjectContentEventStreamSdkUnknown$( - this.name, - this.value, - ) : super._(); + const SelectObjectContentEventStreamSdkUnknown$(this.name, this.value) + : super._(); @override final String name; @@ -172,25 +156,22 @@ final class SelectObjectContentEventStreamSdkUnknown$ class SelectObjectContentEventStreamRestXmlSerializer extends _i1.StructuredSmithySerializer { const SelectObjectContentEventStreamRestXmlSerializer() - : super('SelectObjectContentEventStream'); + : super('SelectObjectContentEventStream'); @override Iterable get types => const [ - SelectObjectContentEventStream, - SelectObjectContentEventStreamRecords$, - SelectObjectContentEventStreamStats$, - SelectObjectContentEventStreamProgress$, - SelectObjectContentEventStreamCont$, - SelectObjectContentEventStreamEnd$, - ]; + SelectObjectContentEventStream, + SelectObjectContentEventStreamRecords$, + SelectObjectContentEventStreamStats$, + SelectObjectContentEventStreamProgress$, + SelectObjectContentEventStreamCont$, + SelectObjectContentEventStreamEnd$, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SelectObjectContentEventStream deserialize( @@ -201,35 +182,47 @@ class SelectObjectContentEventStreamRestXmlSerializer final [key as String, value as Object] = serialized.toList(); switch (key) { case 'Records': - return SelectObjectContentEventStreamRecords$((serializers.deserialize( - value, - specifiedType: const FullType(RecordsEvent), - ) as RecordsEvent)); + return SelectObjectContentEventStreamRecords$( + (serializers.deserialize( + value, + specifiedType: const FullType(RecordsEvent), + ) + as RecordsEvent), + ); case 'Stats': - return SelectObjectContentEventStreamStats$((serializers.deserialize( - value, - specifiedType: const FullType(StatsEvent), - ) as StatsEvent)); + return SelectObjectContentEventStreamStats$( + (serializers.deserialize( + value, + specifiedType: const FullType(StatsEvent), + ) + as StatsEvent), + ); case 'Progress': - return SelectObjectContentEventStreamProgress$((serializers.deserialize( - value, - specifiedType: const FullType(ProgressEvent), - ) as ProgressEvent)); + return SelectObjectContentEventStreamProgress$( + (serializers.deserialize( + value, + specifiedType: const FullType(ProgressEvent), + ) + as ProgressEvent), + ); case 'Cont': - return SelectObjectContentEventStreamCont$((serializers.deserialize( - value, - specifiedType: const FullType(ContinuationEvent), - ) as ContinuationEvent)); + return SelectObjectContentEventStreamCont$( + (serializers.deserialize( + value, + specifiedType: const FullType(ContinuationEvent), + ) + as ContinuationEvent), + ); case 'End': - return SelectObjectContentEventStreamEnd$((serializers.deserialize( - value, - specifiedType: const FullType(EndEvent), - ) as EndEvent)); + return SelectObjectContentEventStreamEnd$( + (serializers.deserialize( + value, + specifiedType: const FullType(EndEvent), + ) + as EndEvent), + ); } - return SelectObjectContentEventStream.sdkUnknown( - key, - value, - ); + return SelectObjectContentEventStream.sdkUnknown(key, value); } @override @@ -241,31 +234,16 @@ class SelectObjectContentEventStreamRestXmlSerializer return [ object.name, switch (object) { - SelectObjectContentEventStreamRecords$(:final value) => - serializers.serialize( - value, - specifiedType: const FullType(RecordsEvent), - ), - SelectObjectContentEventStreamStats$(:final value) => - serializers.serialize( - value, - specifiedType: const FullType(StatsEvent), - ), - SelectObjectContentEventStreamProgress$(:final value) => - serializers.serialize( - value, - specifiedType: const FullType(ProgressEvent), - ), - SelectObjectContentEventStreamCont$(:final value) => - serializers.serialize( - value, - specifiedType: const FullType(ContinuationEvent), - ), - SelectObjectContentEventStreamEnd$(:final value) => - serializers.serialize( - value, - specifiedType: const FullType(EndEvent), - ), + SelectObjectContentEventStreamRecords$(:final value) => serializers + .serialize(value, specifiedType: const FullType(RecordsEvent)), + SelectObjectContentEventStreamStats$(:final value) => serializers + .serialize(value, specifiedType: const FullType(StatsEvent)), + SelectObjectContentEventStreamProgress$(:final value) => serializers + .serialize(value, specifiedType: const FullType(ProgressEvent)), + SelectObjectContentEventStreamCont$(:final value) => serializers + .serialize(value, specifiedType: const FullType(ContinuationEvent)), + SelectObjectContentEventStreamEnd$(:final value) => serializers + .serialize(value, specifiedType: const FullType(EndEvent)), SelectObjectContentEventStreamSdkUnknown$(:final value) => value, }, ]; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.dart index a4a043571e..7c8f0daef1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.dart @@ -19,9 +19,9 @@ abstract class SelectObjectContentOutput return _$SelectObjectContentOutput._(payload: payload); } - factory SelectObjectContentOutput.build( - [void Function(SelectObjectContentOutputBuilder) updates]) = - _$SelectObjectContentOutput; + factory SelectObjectContentOutput.build([ + void Function(SelectObjectContentOutputBuilder) updates, + ]) = _$SelectObjectContentOutput; const SelectObjectContentOutput._(); @@ -29,13 +29,12 @@ abstract class SelectObjectContentOutput factory SelectObjectContentOutput.fromResponse( SelectObjectContentEventStream? payload, _i1.AWSBaseHttpResponse response, - ) => - SelectObjectContentOutput.build((b) { - b.payload = payload; - }); + ) => SelectObjectContentOutput.build((b) { + b.payload = payload; + }); static const List<_i2.SmithySerializer> - serializers = []; + serializers = []; /// The array of results. SelectObjectContentEventStream? get payload; @@ -48,10 +47,7 @@ abstract class SelectObjectContentOutput @override String toString() { final helper = newBuiltValueToStringHelper('SelectObjectContentOutput') - ..add( - 'payload', - payload, - ); + ..add('payload', payload); return helper.toString(); } } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.g.dart index 259fbe5031..7ebec4f21b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_output.g.dart @@ -10,16 +10,16 @@ class _$SelectObjectContentOutput extends SelectObjectContentOutput { @override final SelectObjectContentEventStream? payload; - factory _$SelectObjectContentOutput( - [void Function(SelectObjectContentOutputBuilder)? updates]) => - (new SelectObjectContentOutputBuilder()..update(updates))._build(); + factory _$SelectObjectContentOutput([ + void Function(SelectObjectContentOutputBuilder)? updates, + ]) => (new SelectObjectContentOutputBuilder()..update(updates))._build(); _$SelectObjectContentOutput._({this.payload}) : super._(); @override SelectObjectContentOutput rebuild( - void Function(SelectObjectContentOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SelectObjectContentOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SelectObjectContentOutputBuilder toBuilder() => @@ -76,10 +76,7 @@ class SelectObjectContentOutputBuilder SelectObjectContentOutput build() => _build(); _$SelectObjectContentOutput _build() { - final _$result = _$v ?? - new _$SelectObjectContentOutput._( - payload: payload, - ); + final _$result = _$v ?? new _$SelectObjectContentOutput._(payload: payload); replace(_$result); return _$result; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.dart index 097537aa9e..2f347bf8da 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.dart @@ -56,9 +56,9 @@ abstract class SelectObjectContentRequest } /// Request to filter the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records. It returns only records that match the specified SQL expression. You must also specify the data serialization format for the response. For more information, see [S3Select API Documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html). - factory SelectObjectContentRequest.build( - [void Function(SelectObjectContentRequestBuilder) updates]) = - _$SelectObjectContentRequest; + factory SelectObjectContentRequest.build([ + void Function(SelectObjectContentRequestBuilder) updates, + ]) = _$SelectObjectContentRequest; const SelectObjectContentRequest._(); @@ -66,48 +66,44 @@ abstract class SelectObjectContentRequest SelectObjectContentRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - SelectObjectContentRequest.build((b) { - b.expression = payload.expression; - b.expressionType = payload.expressionType; - b.inputSerialization.replace(payload.inputSerialization); - b.outputSerialization.replace(payload.outputSerialization); - if (payload.requestProgress != null) { - b.requestProgress.replace(payload.requestProgress!); - } - if (payload.scanRange != null) { - b.scanRange.replace(payload.scanRange!); - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => SelectObjectContentRequest.build((b) { + b.expression = payload.expression; + b.expressionType = payload.expressionType; + b.inputSerialization.replace(payload.inputSerialization); + b.outputSerialization.replace(payload.outputSerialization); + if (payload.requestProgress != null) { + b.requestProgress.replace(payload.requestProgress!); + } + if (payload.scanRange != null) { + b.scanRange.replace(payload.scanRange!); + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [SelectObjectContentRequestRestXmlSerializer()]; + serializers = [SelectObjectContentRequestRestXmlSerializer()]; /// The S3 bucket. String get bucket; @@ -160,10 +156,7 @@ abstract class SelectObjectContentRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -183,85 +176,51 @@ abstract class SelectObjectContentRequest @override List get props => [ - bucket, - key, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - expression, - expressionType, - requestProgress, - inputSerialization, - outputSerialization, - scanRange, - expectedBucketOwner, - ]; + bucket, + key, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + expression, + expressionType, + requestProgress, + inputSerialization, + outputSerialization, + scanRange, + expectedBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('SelectObjectContentRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'key', - key, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'expression', - expression, - ) - ..add( - 'expressionType', - expressionType, - ) - ..add( - 'requestProgress', - requestProgress, - ) - ..add( - 'inputSerialization', - inputSerialization, - ) - ..add( - 'outputSerialization', - outputSerialization, - ) - ..add( - 'scanRange', - scanRange, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('SelectObjectContentRequest') + ..add('bucket', bucket) + ..add('key', key) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('expression', expression) + ..add('expressionType', expressionType) + ..add('requestProgress', requestProgress) + ..add('inputSerialization', inputSerialization) + ..add('outputSerialization', outputSerialization) + ..add('scanRange', scanRange) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @_i3.internal abstract class SelectObjectContentRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built { - factory SelectObjectContentRequestPayload( - [void Function(SelectObjectContentRequestPayloadBuilder) updates]) = - _$SelectObjectContentRequestPayload; + Built< + SelectObjectContentRequestPayload, + SelectObjectContentRequestPayloadBuilder + > { + factory SelectObjectContentRequestPayload([ + void Function(SelectObjectContentRequestPayloadBuilder) updates, + ]) = _$SelectObjectContentRequestPayload; const SelectObjectContentRequestPayload._(); @@ -292,42 +251,24 @@ abstract class SelectObjectContentRequestPayload ScanRange? get scanRange; @override List get props => [ - expression, - expressionType, - inputSerialization, - outputSerialization, - requestProgress, - scanRange, - ]; + expression, + expressionType, + inputSerialization, + outputSerialization, + requestProgress, + scanRange, + ]; @override String toString() { final helper = newBuiltValueToStringHelper('SelectObjectContentRequestPayload') - ..add( - 'expression', - expression, - ) - ..add( - 'expressionType', - expressionType, - ) - ..add( - 'inputSerialization', - inputSerialization, - ) - ..add( - 'outputSerialization', - outputSerialization, - ) - ..add( - 'requestProgress', - requestProgress, - ) - ..add( - 'scanRange', - scanRange, - ); + ..add('expression', expression) + ..add('expressionType', expressionType) + ..add('inputSerialization', inputSerialization) + ..add('outputSerialization', outputSerialization) + ..add('requestProgress', requestProgress) + ..add('scanRange', scanRange); return helper.toString(); } } @@ -335,23 +276,20 @@ abstract class SelectObjectContentRequestPayload class SelectObjectContentRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const SelectObjectContentRequestRestXmlSerializer() - : super('SelectObjectContentRequest'); + : super('SelectObjectContentRequest'); @override Iterable get types => const [ - SelectObjectContentRequest, - _$SelectObjectContentRequest, - SelectObjectContentRequestPayload, - _$SelectObjectContentRequestPayload, - ]; + SelectObjectContentRequest, + _$SelectObjectContentRequest, + SelectObjectContentRequestPayload, + _$SelectObjectContentRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override SelectObjectContentRequestPayload deserialize( @@ -370,35 +308,51 @@ class SelectObjectContentRequestRestXmlSerializer } switch (key) { case 'Expression': - result.expression = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.expression = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ExpressionType': - result.expressionType = (serializers.deserialize( - value, - specifiedType: const FullType(ExpressionType), - ) as ExpressionType); + result.expressionType = + (serializers.deserialize( + value, + specifiedType: const FullType(ExpressionType), + ) + as ExpressionType); case 'InputSerialization': - result.inputSerialization.replace((serializers.deserialize( - value, - specifiedType: const FullType(InputSerialization), - ) as InputSerialization)); + result.inputSerialization.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(InputSerialization), + ) + as InputSerialization), + ); case 'OutputSerialization': - result.outputSerialization.replace((serializers.deserialize( - value, - specifiedType: const FullType(OutputSerialization), - ) as OutputSerialization)); + result.outputSerialization.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(OutputSerialization), + ) + as OutputSerialization), + ); case 'RequestProgress': - result.requestProgress.replace((serializers.deserialize( - value, - specifiedType: const FullType(RequestProgress), - ) as RequestProgress)); + result.requestProgress.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(RequestProgress), + ) + as RequestProgress), + ); case 'ScanRange': - result.scanRange.replace((serializers.deserialize( - value, - specifiedType: const FullType(ScanRange), - ) as ScanRange)); + result.scanRange.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(ScanRange), + ) + as ScanRange), + ); } } @@ -415,7 +369,7 @@ class SelectObjectContentRequestRestXmlSerializer const _i1.XmlElementName( 'SelectObjectContentRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final SelectObjectContentRequestPayload( :expression, @@ -423,47 +377,59 @@ class SelectObjectContentRequestRestXmlSerializer :inputSerialization, :outputSerialization, :requestProgress, - :scanRange + :scanRange, ) = object; result$ ..add(const _i1.XmlElementName('Expression')) - ..add(serializers.serialize( - expression, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + expression, + specifiedType: const FullType(String), + ), + ); result$ ..add(const _i1.XmlElementName('ExpressionType')) - ..add(serializers.serialize( - expressionType, - specifiedType: const FullType(ExpressionType), - )); + ..add( + serializers.serialize( + expressionType, + specifiedType: const FullType(ExpressionType), + ), + ); result$ ..add(const _i1.XmlElementName('InputSerialization')) - ..add(serializers.serialize( - inputSerialization, - specifiedType: const FullType(InputSerialization), - )); + ..add( + serializers.serialize( + inputSerialization, + specifiedType: const FullType(InputSerialization), + ), + ); result$ ..add(const _i1.XmlElementName('OutputSerialization')) - ..add(serializers.serialize( - outputSerialization, - specifiedType: const FullType(OutputSerialization), - )); + ..add( + serializers.serialize( + outputSerialization, + specifiedType: const FullType(OutputSerialization), + ), + ); if (requestProgress != null) { result$ ..add(const _i1.XmlElementName('RequestProgress')) - ..add(serializers.serialize( - requestProgress, - specifiedType: const FullType(RequestProgress), - )); + ..add( + serializers.serialize( + requestProgress, + specifiedType: const FullType(RequestProgress), + ), + ); } if (scanRange != null) { result$ ..add(const _i1.XmlElementName('ScanRange')) - ..add(serializers.serialize( - scanRange, - specifiedType: const FullType(ScanRange), - )); + ..add( + serializers.serialize( + scanRange, + specifiedType: const FullType(ScanRange), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.g.dart index 66312cf17e..0a2bef017d 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/select_object_content_request.g.dart @@ -32,42 +32,60 @@ class _$SelectObjectContentRequest extends SelectObjectContentRequest { @override final String? expectedBucketOwner; - factory _$SelectObjectContentRequest( - [void Function(SelectObjectContentRequestBuilder)? updates]) => - (new SelectObjectContentRequestBuilder()..update(updates))._build(); - - _$SelectObjectContentRequest._( - {required this.bucket, - required this.key, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - required this.expression, - required this.expressionType, - this.requestProgress, - required this.inputSerialization, - required this.outputSerialization, - this.scanRange, - this.expectedBucketOwner}) - : super._() { + factory _$SelectObjectContentRequest([ + void Function(SelectObjectContentRequestBuilder)? updates, + ]) => (new SelectObjectContentRequestBuilder()..update(updates))._build(); + + _$SelectObjectContentRequest._({ + required this.bucket, + required this.key, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + required this.expression, + required this.expressionType, + this.requestProgress, + required this.inputSerialization, + required this.outputSerialization, + this.scanRange, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'SelectObjectContentRequest', 'bucket'); + bucket, + r'SelectObjectContentRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - key, r'SelectObjectContentRequest', 'key'); + key, + r'SelectObjectContentRequest', + 'key', + ); BuiltValueNullFieldError.checkNotNull( - expression, r'SelectObjectContentRequest', 'expression'); + expression, + r'SelectObjectContentRequest', + 'expression', + ); BuiltValueNullFieldError.checkNotNull( - expressionType, r'SelectObjectContentRequest', 'expressionType'); - BuiltValueNullFieldError.checkNotNull(inputSerialization, - r'SelectObjectContentRequest', 'inputSerialization'); - BuiltValueNullFieldError.checkNotNull(outputSerialization, - r'SelectObjectContentRequest', 'outputSerialization'); + expressionType, + r'SelectObjectContentRequest', + 'expressionType', + ); + BuiltValueNullFieldError.checkNotNull( + inputSerialization, + r'SelectObjectContentRequest', + 'inputSerialization', + ); + BuiltValueNullFieldError.checkNotNull( + outputSerialization, + r'SelectObjectContentRequest', + 'outputSerialization', + ); } @override SelectObjectContentRequest rebuild( - void Function(SelectObjectContentRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SelectObjectContentRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SelectObjectContentRequestBuilder toBuilder() => @@ -215,21 +233,32 @@ class SelectObjectContentRequestBuilder _$SelectObjectContentRequest _build() { _$SelectObjectContentRequest _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SelectObjectContentRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'SelectObjectContentRequest', 'bucket'), + bucket, + r'SelectObjectContentRequest', + 'bucket', + ), key: BuiltValueNullFieldError.checkNotNull( - key, r'SelectObjectContentRequest', 'key'), + key, + r'SelectObjectContentRequest', + 'key', + ), sseCustomerAlgorithm: sseCustomerAlgorithm, sseCustomerKey: sseCustomerKey, sseCustomerKeyMd5: sseCustomerKeyMd5, expression: BuiltValueNullFieldError.checkNotNull( - expression, r'SelectObjectContentRequest', 'expression'), + expression, + r'SelectObjectContentRequest', + 'expression', + ), expressionType: BuiltValueNullFieldError.checkNotNull( - expressionType, - r'SelectObjectContentRequest', - 'expressionType'), + expressionType, + r'SelectObjectContentRequest', + 'expressionType', + ), requestProgress: _requestProgress?.build(), inputSerialization: inputSerialization.build(), outputSerialization: outputSerialization.build(), @@ -249,7 +278,10 @@ class SelectObjectContentRequestBuilder _scanRange?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SelectObjectContentRequest', _$failedField, e.toString()); + r'SelectObjectContentRequest', + _$failedField, + e.toString(), + ); } rethrow; } @@ -273,33 +305,46 @@ class _$SelectObjectContentRequestPayload @override final ScanRange? scanRange; - factory _$SelectObjectContentRequestPayload( - [void Function(SelectObjectContentRequestPayloadBuilder)? updates]) => + factory _$SelectObjectContentRequestPayload([ + void Function(SelectObjectContentRequestPayloadBuilder)? updates, + ]) => (new SelectObjectContentRequestPayloadBuilder()..update(updates)) ._build(); - _$SelectObjectContentRequestPayload._( - {required this.expression, - required this.expressionType, - required this.inputSerialization, - required this.outputSerialization, - this.requestProgress, - this.scanRange}) - : super._() { + _$SelectObjectContentRequestPayload._({ + required this.expression, + required this.expressionType, + required this.inputSerialization, + required this.outputSerialization, + this.requestProgress, + this.scanRange, + }) : super._() { + BuiltValueNullFieldError.checkNotNull( + expression, + r'SelectObjectContentRequestPayload', + 'expression', + ); + BuiltValueNullFieldError.checkNotNull( + expressionType, + r'SelectObjectContentRequestPayload', + 'expressionType', + ); BuiltValueNullFieldError.checkNotNull( - expression, r'SelectObjectContentRequestPayload', 'expression'); + inputSerialization, + r'SelectObjectContentRequestPayload', + 'inputSerialization', + ); BuiltValueNullFieldError.checkNotNull( - expressionType, r'SelectObjectContentRequestPayload', 'expressionType'); - BuiltValueNullFieldError.checkNotNull(inputSerialization, - r'SelectObjectContentRequestPayload', 'inputSerialization'); - BuiltValueNullFieldError.checkNotNull(outputSerialization, - r'SelectObjectContentRequestPayload', 'outputSerialization'); + outputSerialization, + r'SelectObjectContentRequestPayload', + 'outputSerialization', + ); } @override SelectObjectContentRequestPayload rebuild( - void Function(SelectObjectContentRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(SelectObjectContentRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override SelectObjectContentRequestPayloadBuilder toBuilder() => @@ -333,8 +378,10 @@ class _$SelectObjectContentRequestPayload class SelectObjectContentRequestPayloadBuilder implements - Builder { + Builder< + SelectObjectContentRequestPayload, + SelectObjectContentRequestPayloadBuilder + > { _$SelectObjectContentRequestPayload? _$v; String? _expression; @@ -393,7 +440,8 @@ class SelectObjectContentRequestPayloadBuilder @override void update( - void Function(SelectObjectContentRequestPayloadBuilder)? updates) { + void Function(SelectObjectContentRequestPayloadBuilder)? updates, + ) { if (updates != null) updates(this); } @@ -403,14 +451,19 @@ class SelectObjectContentRequestPayloadBuilder _$SelectObjectContentRequestPayload _build() { _$SelectObjectContentRequestPayload _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$SelectObjectContentRequestPayload._( expression: BuiltValueNullFieldError.checkNotNull( - expression, r'SelectObjectContentRequestPayload', 'expression'), + expression, + r'SelectObjectContentRequestPayload', + 'expression', + ), expressionType: BuiltValueNullFieldError.checkNotNull( - expressionType, - r'SelectObjectContentRequestPayload', - 'expressionType'), + expressionType, + r'SelectObjectContentRequestPayload', + 'expressionType', + ), inputSerialization: inputSerialization.build(), outputSerialization: outputSerialization.build(), requestProgress: _requestProgress?.build(), @@ -429,7 +482,10 @@ class SelectObjectContentRequestPayloadBuilder _scanRange?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'SelectObjectContentRequestPayload', _$failedField, e.toString()); + r'SelectObjectContentRequestPayload', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/server_side_encryption.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/server_side_encryption.dart index 17037b145d..3931366eb2 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/server_side_encryption.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/server_side_encryption.dart @@ -6,25 +6,13 @@ library amplify_storage_s3_dart.s3.model.server_side_encryption; // ignore_for_f import 'package:smithy/smithy.dart' as _i1; class ServerSideEncryption extends _i1.SmithyEnum { - const ServerSideEncryption._( - super.index, - super.name, - super.value, - ); + const ServerSideEncryption._(super.index, super.name, super.value); const ServerSideEncryption._sdkUnknown(super.value) : super.sdkUnknown(); - static const aes256 = ServerSideEncryption._( - 0, - 'AES256', - 'AES256', - ); + static const aes256 = ServerSideEncryption._(0, 'AES256', 'AES256'); - static const awsKms = ServerSideEncryption._( - 1, - 'aws_kms', - 'aws:kms', - ); + static const awsKms = ServerSideEncryption._(1, 'aws_kms', 'aws:kms'); static const awsKmsDsse = ServerSideEncryption._( 2, @@ -45,12 +33,9 @@ class ServerSideEncryption extends _i1.SmithyEnum { values: values, sdkUnknown: ServerSideEncryption._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.dart index 6c1ae03172..c72268af40 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.dart @@ -34,7 +34,7 @@ abstract class Stats const Stats._(); static const List<_i3.SmithySerializer> serializers = [ - StatsRestXmlSerializer() + StatsRestXmlSerializer(), ]; /// The total number of object bytes scanned. @@ -46,27 +46,15 @@ abstract class Stats /// The total number of bytes of records payload data returned. _i2.Int64? get bytesReturned; @override - List get props => [ - bytesScanned, - bytesProcessed, - bytesReturned, - ]; + List get props => [bytesScanned, bytesProcessed, bytesReturned]; @override String toString() { - final helper = newBuiltValueToStringHelper('Stats') - ..add( - 'bytesScanned', - bytesScanned, - ) - ..add( - 'bytesProcessed', - bytesProcessed, - ) - ..add( - 'bytesReturned', - bytesReturned, - ); + final helper = + newBuiltValueToStringHelper('Stats') + ..add('bytesScanned', bytesScanned) + ..add('bytesProcessed', bytesProcessed) + ..add('bytesReturned', bytesReturned); return helper.toString(); } } @@ -75,18 +63,12 @@ class StatsRestXmlSerializer extends _i3.StructuredSmithySerializer { const StatsRestXmlSerializer() : super('Stats'); @override - Iterable get types => const [ - Stats, - _$Stats, - ]; + Iterable get types => const [Stats, _$Stats]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override Stats deserialize( @@ -105,20 +87,26 @@ class StatsRestXmlSerializer extends _i3.StructuredSmithySerializer { } switch (key) { case 'BytesProcessed': - result.bytesProcessed = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.bytesProcessed = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'BytesReturned': - result.bytesReturned = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.bytesReturned = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); case 'BytesScanned': - result.bytesScanned = (serializers.deserialize( - value, - specifiedType: const FullType(_i2.Int64), - ) as _i2.Int64); + result.bytesScanned = + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.Int64), + ) + as _i2.Int64); } } @@ -135,32 +123,38 @@ class StatsRestXmlSerializer extends _i3.StructuredSmithySerializer { const _i3.XmlElementName( 'Stats', _i3.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final Stats(:bytesProcessed, :bytesReturned, :bytesScanned) = object; if (bytesProcessed != null) { result$ ..add(const _i3.XmlElementName('BytesProcessed')) - ..add(serializers.serialize( - bytesProcessed, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + bytesProcessed, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (bytesReturned != null) { result$ ..add(const _i3.XmlElementName('BytesReturned')) - ..add(serializers.serialize( - bytesReturned, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + bytesReturned, + specifiedType: const FullType(_i2.Int64), + ), + ); } if (bytesScanned != null) { result$ ..add(const _i3.XmlElementName('BytesScanned')) - ..add(serializers.serialize( - bytesScanned, - specifiedType: const FullType(_i2.Int64), - )); + ..add( + serializers.serialize( + bytesScanned, + specifiedType: const FullType(_i2.Int64), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.g.dart index f2ba149d4c..18295e799a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats.g.dart @@ -18,7 +18,7 @@ class _$Stats extends Stats { (new StatsBuilder()..update(updates))._build(); _$Stats._({this.bytesScanned, this.bytesProcessed, this.bytesReturned}) - : super._(); + : super._(); @override Stats rebuild(void Function(StatsBuilder) updates) => @@ -93,7 +93,8 @@ class StatsBuilder implements Builder { Stats build() => _build(); _$Stats _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$Stats._( bytesScanned: bytesScanned, bytesProcessed: bytesProcessed, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.dart index 088e84b2f8..11eace7c15 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.dart @@ -27,7 +27,7 @@ abstract class StatsEvent const StatsEvent._(); static const List<_i2.SmithySerializer> serializers = [ - StatsEventRestXmlSerializer() + StatsEventRestXmlSerializer(), ]; /// The Stats event details. @@ -38,10 +38,7 @@ abstract class StatsEvent @override String toString() { final helper = newBuiltValueToStringHelper('StatsEvent') - ..add( - 'details', - details, - ); + ..add('details', details); return helper.toString(); } } @@ -51,18 +48,12 @@ class StatsEventRestXmlSerializer const StatsEventRestXmlSerializer() : super('StatsEvent'); @override - Iterable get types => const [ - StatsEvent, - _$StatsEvent, - ]; + Iterable get types => const [StatsEvent, _$StatsEvent]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override StatsEvent deserialize( @@ -81,10 +72,13 @@ class StatsEventRestXmlSerializer } switch (key) { case 'Details': - result.details.replace((serializers.deserialize( - value, - specifiedType: const FullType(Stats), - ) as Stats)); + result.details.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(Stats), + ) + as Stats), + ); } } @@ -101,16 +95,15 @@ class StatsEventRestXmlSerializer const _i2.XmlElementName( 'StatsEvent', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final StatsEvent(:details) = object; if (details != null) { result$ ..add(const _i2.XmlElementName('Details')) - ..add(serializers.serialize( - details, - specifiedType: const FullType(Stats), - )); + ..add( + serializers.serialize(details, specifiedType: const FullType(Stats)), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.g.dart index d24643f345..23d0d6e077 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/stats_event.g.dart @@ -72,10 +72,7 @@ class StatsEventBuilder implements Builder { _$StatsEvent _build() { _$StatsEvent _$result; try { - _$result = _$v ?? - new _$StatsEvent._( - details: _details?.build(), - ); + _$result = _$v ?? new _$StatsEvent._(details: _details?.build()); } catch (_) { late String _$failedField; try { @@ -83,7 +80,10 @@ class StatsEventBuilder implements Builder { _details?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'StatsEvent', _$failedField, e.toString()); + r'StatsEvent', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/storage_class.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/storage_class.dart index 8fe39ea5a9..dd0515bc2f 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/storage_class.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/storage_class.dart @@ -6,19 +6,11 @@ library amplify_storage_s3_dart.s3.model.storage_class; // ignore_for_file: no_l import 'package:smithy/smithy.dart' as _i1; class StorageClass extends _i1.SmithyEnum { - const StorageClass._( - super.index, - super.name, - super.value, - ); + const StorageClass._(super.index, super.name, super.value); const StorageClass._sdkUnknown(super.value) : super.sdkUnknown(); - static const deepArchive = StorageClass._( - 0, - 'DEEP_ARCHIVE', - 'DEEP_ARCHIVE', - ); + static const deepArchive = StorageClass._(0, 'DEEP_ARCHIVE', 'DEEP_ARCHIVE'); static const expressOnezone = StorageClass._( 1, @@ -26,17 +18,9 @@ class StorageClass extends _i1.SmithyEnum { 'EXPRESS_ONEZONE', ); - static const glacier = StorageClass._( - 2, - 'GLACIER', - 'GLACIER', - ); + static const glacier = StorageClass._(2, 'GLACIER', 'GLACIER'); - static const glacierIr = StorageClass._( - 3, - 'GLACIER_IR', - 'GLACIER_IR', - ); + static const glacierIr = StorageClass._(3, 'GLACIER_IR', 'GLACIER_IR'); static const intelligentTiering = StorageClass._( 4, @@ -44,17 +28,9 @@ class StorageClass extends _i1.SmithyEnum { 'INTELLIGENT_TIERING', ); - static const onezoneIa = StorageClass._( - 5, - 'ONEZONE_IA', - 'ONEZONE_IA', - ); + static const onezoneIa = StorageClass._(5, 'ONEZONE_IA', 'ONEZONE_IA'); - static const outposts = StorageClass._( - 6, - 'OUTPOSTS', - 'OUTPOSTS', - ); + static const outposts = StorageClass._(6, 'OUTPOSTS', 'OUTPOSTS'); static const reducedRedundancy = StorageClass._( 7, @@ -62,23 +38,11 @@ class StorageClass extends _i1.SmithyEnum { 'REDUCED_REDUNDANCY', ); - static const snow = StorageClass._( - 8, - 'SNOW', - 'SNOW', - ); + static const snow = StorageClass._(8, 'SNOW', 'SNOW'); - static const standard = StorageClass._( - 9, - 'STANDARD', - 'STANDARD', - ); + static const standard = StorageClass._(9, 'STANDARD', 'STANDARD'); - static const standardIa = StorageClass._( - 10, - 'STANDARD_IA', - 'STANDARD_IA', - ); + static const standardIa = StorageClass._(10, 'STANDARD_IA', 'STANDARD_IA'); /// All values of [StorageClass]. static const values = [ @@ -101,12 +65,9 @@ class StorageClass extends _i1.SmithyEnum { values: values, sdkUnknown: StorageClass._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/tagging_directive.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/tagging_directive.dart index 09c5750ce8..ac92966da2 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/tagging_directive.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/tagging_directive.dart @@ -6,25 +6,13 @@ library amplify_storage_s3_dart.s3.model.tagging_directive; // ignore_for_file: import 'package:smithy/smithy.dart' as _i1; class TaggingDirective extends _i1.SmithyEnum { - const TaggingDirective._( - super.index, - super.name, - super.value, - ); + const TaggingDirective._(super.index, super.name, super.value); const TaggingDirective._sdkUnknown(super.value) : super.sdkUnknown(); - static const copy = TaggingDirective._( - 0, - 'COPY', - 'COPY', - ); + static const copy = TaggingDirective._(0, 'COPY', 'COPY'); - static const replace = TaggingDirective._( - 1, - 'REPLACE', - 'REPLACE', - ); + static const replace = TaggingDirective._(1, 'REPLACE', 'REPLACE'); /// All values of [TaggingDirective]. static const values = [ @@ -38,12 +26,9 @@ class TaggingDirective extends _i1.SmithyEnum { values: values, sdkUnknown: TaggingDirective._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), ], - ) + ), ]; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.dart index 5ee416a95a..06f770ed88 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.dart @@ -40,9 +40,9 @@ abstract class UploadPartCopyOutput ); } - factory UploadPartCopyOutput.build( - [void Function(UploadPartCopyOutputBuilder) updates]) = - _$UploadPartCopyOutput; + factory UploadPartCopyOutput.build([ + void Function(UploadPartCopyOutputBuilder) updates, + ]) = _$UploadPartCopyOutput; const UploadPartCopyOutput._(); @@ -50,50 +50,49 @@ abstract class UploadPartCopyOutput factory UploadPartCopyOutput.fromResponse( CopyPartResult? payload, _i1.AWSBaseHttpResponse response, - ) => - UploadPartCopyOutput.build((b) { - if (payload != null) { - b.copyPartResult.replace(payload); - } - if (response.headers['x-amz-copy-source-version-id'] != null) { - b.copySourceVersionId = - response.headers['x-amz-copy-source-version-id']!; - } - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = response - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = response - .headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => UploadPartCopyOutput.build((b) { + if (payload != null) { + b.copyPartResult.replace(payload); + } + if (response.headers['x-amz-copy-source-version-id'] != null) { + b.copySourceVersionId = response.headers['x-amz-copy-source-version-id']!; + } + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + response.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + response.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> serializers = [ - UploadPartCopyOutputRestXmlSerializer() + UploadPartCopyOutputRestXmlSerializer(), ]; /// The version of the source object that was copied, if you have enabled versioning on the source bucket. @@ -138,51 +137,28 @@ abstract class UploadPartCopyOutput @override List get props => [ - copySourceVersionId, - copyPartResult, - serverSideEncryption, - sseCustomerAlgorithm, - sseCustomerKeyMd5, - ssekmsKeyId, - bucketKeyEnabled, - requestCharged, - ]; + copySourceVersionId, + copyPartResult, + serverSideEncryption, + sseCustomerAlgorithm, + sseCustomerKeyMd5, + ssekmsKeyId, + bucketKeyEnabled, + requestCharged, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadPartCopyOutput') - ..add( - 'copySourceVersionId', - copySourceVersionId, - ) - ..add( - 'copyPartResult', - copyPartResult, - ) - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('UploadPartCopyOutput') + ..add('copySourceVersionId', copySourceVersionId) + ..add('copyPartResult', copyPartResult) + ..add('serverSideEncryption', serverSideEncryption) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestCharged', requestCharged); return helper.toString(); } } @@ -193,17 +169,14 @@ class UploadPartCopyOutputRestXmlSerializer @override Iterable get types => const [ - UploadPartCopyOutput, - _$UploadPartCopyOutput, - ]; + UploadPartCopyOutput, + _$UploadPartCopyOutput, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override CopyPartResult deserialize( @@ -222,35 +195,47 @@ class UploadPartCopyOutputRestXmlSerializer } switch (key) { case 'ETag': - result.eTag = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eTag = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'LastModified': - result.lastModified = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.lastModified = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'ChecksumCRC32': - result.checksumCrc32 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumCRC32C': - result.checksumCrc32C = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumCrc32C = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA1': - result.checksumSha1 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha1 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'ChecksumSHA256': - result.checksumSha256 = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.checksumSha256 = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -267,7 +252,7 @@ class UploadPartCopyOutputRestXmlSerializer const _i2.XmlElementName( 'CopyPartResult', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; final CopyPartResult( :eTag, @@ -275,55 +260,64 @@ class UploadPartCopyOutputRestXmlSerializer :checksumCrc32, :checksumCrc32C, :checksumSha1, - :checksumSha256 + :checksumSha256, ) = object; if (eTag != null) { result$ ..add(const _i2.XmlElementName('ETag')) - ..add(serializers.serialize( - eTag, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eTag, specifiedType: const FullType(String)), + ); } if (lastModified != null) { result$ ..add(const _i2.XmlElementName('LastModified')) - ..add(serializers.serialize( - lastModified, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + lastModified, + specifiedType: const FullType(DateTime), + ), + ); } if (checksumCrc32 != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32')) - ..add(serializers.serialize( - checksumCrc32, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32, + specifiedType: const FullType(String), + ), + ); } if (checksumCrc32C != null) { result$ ..add(const _i2.XmlElementName('ChecksumCRC32C')) - ..add(serializers.serialize( - checksumCrc32C, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumCrc32C, + specifiedType: const FullType(String), + ), + ); } if (checksumSha1 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA1')) - ..add(serializers.serialize( - checksumSha1, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha1, + specifiedType: const FullType(String), + ), + ); } if (checksumSha256 != null) { result$ ..add(const _i2.XmlElementName('ChecksumSHA256')) - ..add(serializers.serialize( - checksumSha256, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + checksumSha256, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.g.dart index ca8574ff8e..24f1b2a0b9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_output.g.dart @@ -24,25 +24,25 @@ class _$UploadPartCopyOutput extends UploadPartCopyOutput { @override final RequestCharged? requestCharged; - factory _$UploadPartCopyOutput( - [void Function(UploadPartCopyOutputBuilder)? updates]) => - (new UploadPartCopyOutputBuilder()..update(updates))._build(); - - _$UploadPartCopyOutput._( - {this.copySourceVersionId, - this.copyPartResult, - this.serverSideEncryption, - this.sseCustomerAlgorithm, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.bucketKeyEnabled, - this.requestCharged}) - : super._(); + factory _$UploadPartCopyOutput([ + void Function(UploadPartCopyOutputBuilder)? updates, + ]) => (new UploadPartCopyOutputBuilder()..update(updates))._build(); + + _$UploadPartCopyOutput._({ + this.copySourceVersionId, + this.copyPartResult, + this.serverSideEncryption, + this.sseCustomerAlgorithm, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.bucketKeyEnabled, + this.requestCharged, + }) : super._(); @override UploadPartCopyOutput rebuild( - void Function(UploadPartCopyOutputBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadPartCopyOutputBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadPartCopyOutputBuilder toBuilder() => @@ -158,7 +158,8 @@ class UploadPartCopyOutputBuilder _$UploadPartCopyOutput _build() { _$UploadPartCopyOutput _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$UploadPartCopyOutput._( copySourceVersionId: copySourceVersionId, copyPartResult: _copyPartResult?.build(), @@ -176,7 +177,10 @@ class UploadPartCopyOutputBuilder _copyPartResult?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'UploadPartCopyOutput', _$failedField, e.toString()); + r'UploadPartCopyOutput', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart index fc3295bc0f..9dd62dd3fb 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.dart @@ -64,9 +64,9 @@ abstract class UploadPartCopyRequest ); } - factory UploadPartCopyRequest.build( - [void Function(UploadPartCopyRequestBuilder) updates]) = - _$UploadPartCopyRequest; + factory UploadPartCopyRequest.build([ + void Function(UploadPartCopyRequestBuilder) updates, + ]) = _$UploadPartCopyRequest; const UploadPartCopyRequest._(); @@ -74,95 +74,97 @@ abstract class UploadPartCopyRequest UploadPartCopyRequestPayload payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UploadPartCopyRequest.build((b) { - if (request.headers['x-amz-copy-source'] != null) { - b.copySource = request.headers['x-amz-copy-source']!; - } - if (request.headers['x-amz-copy-source-if-match'] != null) { - b.copySourceIfMatch = request.headers['x-amz-copy-source-if-match']!; - } - if (request.headers['x-amz-copy-source-if-modified-since'] != null) { - b.copySourceIfModifiedSince = _i1.Timestamp.parse( + }) => UploadPartCopyRequest.build((b) { + if (request.headers['x-amz-copy-source'] != null) { + b.copySource = request.headers['x-amz-copy-source']!; + } + if (request.headers['x-amz-copy-source-if-match'] != null) { + b.copySourceIfMatch = request.headers['x-amz-copy-source-if-match']!; + } + if (request.headers['x-amz-copy-source-if-modified-since'] != null) { + b.copySourceIfModifiedSince = + _i1.Timestamp.parse( request.headers['x-amz-copy-source-if-modified-since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['x-amz-copy-source-if-none-match'] != null) { - b.copySourceIfNoneMatch = - request.headers['x-amz-copy-source-if-none-match']!; - } - if (request.headers['x-amz-copy-source-if-unmodified-since'] != null) { - b.copySourceIfUnmodifiedSince = _i1.Timestamp.parse( + } + if (request.headers['x-amz-copy-source-if-none-match'] != null) { + b.copySourceIfNoneMatch = + request.headers['x-amz-copy-source-if-none-match']!; + } + if (request.headers['x-amz-copy-source-if-unmodified-since'] != null) { + b.copySourceIfUnmodifiedSince = + _i1.Timestamp.parse( request.headers['x-amz-copy-source-if-unmodified-since']!, format: _i1.TimestampFormat.httpDate, ).asDateTime; - } - if (request.headers['x-amz-copy-source-range'] != null) { - b.copySourceRange = request.headers['x-amz-copy-source-range']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-algorithm'] != - null) { - b.copySourceSseCustomerAlgorithm = request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-algorithm']!; - } - if (request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key'] != - null) { - b.copySourceSseCustomerKey = request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key']!; - } - if (request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key-MD5'] != - null) { - b.copySourceSseCustomerKeyMd5 = request.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.headers['x-amz-source-expected-bucket-owner'] != null) { - b.expectedSourceBucketOwner = - request.headers['x-amz-source-expected-bucket-owner']!; - } - if (request.queryParameters['partNumber'] != null) { - b.partNumber = int.parse(request.queryParameters['partNumber']!); - } - if (request.queryParameters['uploadId'] != null) { - b.uploadId = request.queryParameters['uploadId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + } + if (request.headers['x-amz-copy-source-range'] != null) { + b.copySourceRange = request.headers['x-amz-copy-source-range']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request + .headers['x-amz-copy-source-server-side-encryption-customer-algorithm'] != + null) { + b.copySourceSseCustomerAlgorithm = + request + .headers['x-amz-copy-source-server-side-encryption-customer-algorithm']!; + } + if (request + .headers['x-amz-copy-source-server-side-encryption-customer-key'] != + null) { + b.copySourceSseCustomerKey = + request + .headers['x-amz-copy-source-server-side-encryption-customer-key']!; + } + if (request + .headers['x-amz-copy-source-server-side-encryption-customer-key-MD5'] != + null) { + b.copySourceSseCustomerKeyMd5 = + request + .headers['x-amz-copy-source-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.headers['x-amz-source-expected-bucket-owner'] != null) { + b.expectedSourceBucketOwner = + request.headers['x-amz-source-expected-bucket-owner']!; + } + if (request.queryParameters['partNumber'] != null) { + b.partNumber = int.parse(request.queryParameters['partNumber']!); + } + if (request.queryParameters['uploadId'] != null) { + b.uploadId = request.queryParameters['uploadId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer> - serializers = [UploadPartCopyRequestRestXmlSerializer()]; + serializers = [UploadPartCopyRequestRestXmlSerializer()]; /// The bucket name. /// @@ -300,10 +302,7 @@ abstract class UploadPartCopyRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -311,121 +310,69 @@ abstract class UploadPartCopyRequest @override List get props => [ - bucket, - copySource, - copySourceIfMatch, - copySourceIfModifiedSince, - copySourceIfNoneMatch, - copySourceIfUnmodifiedSince, - copySourceRange, - key, - partNumber, - uploadId, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - copySourceSseCustomerAlgorithm, - copySourceSseCustomerKey, - copySourceSseCustomerKeyMd5, - requestPayer, - expectedBucketOwner, - expectedSourceBucketOwner, - ]; + bucket, + copySource, + copySourceIfMatch, + copySourceIfModifiedSince, + copySourceIfNoneMatch, + copySourceIfUnmodifiedSince, + copySourceRange, + key, + partNumber, + uploadId, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + copySourceSseCustomerAlgorithm, + copySourceSseCustomerKey, + copySourceSseCustomerKeyMd5, + requestPayer, + expectedBucketOwner, + expectedSourceBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadPartCopyRequest') - ..add( - 'bucket', - bucket, - ) - ..add( - 'copySource', - copySource, - ) - ..add( - 'copySourceIfMatch', - copySourceIfMatch, - ) - ..add( - 'copySourceIfModifiedSince', - copySourceIfModifiedSince, - ) - ..add( - 'copySourceIfNoneMatch', - copySourceIfNoneMatch, - ) - ..add( - 'copySourceIfUnmodifiedSince', - copySourceIfUnmodifiedSince, - ) - ..add( - 'copySourceRange', - copySourceRange, - ) - ..add( - 'key', - key, - ) - ..add( - 'partNumber', - partNumber, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'copySourceSseCustomerAlgorithm', - copySourceSseCustomerAlgorithm, - ) - ..add( - 'copySourceSseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'copySourceSseCustomerKeyMd5', - copySourceSseCustomerKeyMd5, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ) - ..add( - 'expectedSourceBucketOwner', - expectedSourceBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('UploadPartCopyRequest') + ..add('bucket', bucket) + ..add('copySource', copySource) + ..add('copySourceIfMatch', copySourceIfMatch) + ..add('copySourceIfModifiedSince', copySourceIfModifiedSince) + ..add('copySourceIfNoneMatch', copySourceIfNoneMatch) + ..add('copySourceIfUnmodifiedSince', copySourceIfUnmodifiedSince) + ..add('copySourceRange', copySourceRange) + ..add('key', key) + ..add('partNumber', partNumber) + ..add('uploadId', uploadId) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add( + 'copySourceSseCustomerAlgorithm', + copySourceSseCustomerAlgorithm, + ) + ..add('copySourceSseCustomerKey', '***SENSITIVE***') + ..add('copySourceSseCustomerKeyMd5', copySourceSseCustomerKeyMd5) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner) + ..add('expectedSourceBucketOwner', expectedSourceBucketOwner); return helper.toString(); } } @_i3.internal abstract class UploadPartCopyRequestPayload - with - _i2.AWSEquatable + with _i2.AWSEquatable implements - Built, + Built< + UploadPartCopyRequestPayload, + UploadPartCopyRequestPayloadBuilder + >, _i1.EmptyPayload { - factory UploadPartCopyRequestPayload( - [void Function(UploadPartCopyRequestPayloadBuilder) updates]) = - _$UploadPartCopyRequestPayload; + factory UploadPartCopyRequestPayload([ + void Function(UploadPartCopyRequestPayloadBuilder) updates, + ]) = _$UploadPartCopyRequestPayload; const UploadPartCopyRequestPayload._(); @@ -442,23 +389,20 @@ abstract class UploadPartCopyRequestPayload class UploadPartCopyRequestRestXmlSerializer extends _i1.StructuredSmithySerializer { const UploadPartCopyRequestRestXmlSerializer() - : super('UploadPartCopyRequest'); + : super('UploadPartCopyRequest'); @override Iterable get types => const [ - UploadPartCopyRequest, - _$UploadPartCopyRequest, - UploadPartCopyRequestPayload, - _$UploadPartCopyRequestPayload, - ]; + UploadPartCopyRequest, + _$UploadPartCopyRequest, + UploadPartCopyRequestPayload, + _$UploadPartCopyRequestPayload, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override UploadPartCopyRequestPayload deserialize( @@ -479,7 +423,7 @@ class UploadPartCopyRequestRestXmlSerializer const _i1.XmlElementName( 'UploadPartCopyRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.g.dart index 6205a81b84..05761d8ba1 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_copy_request.g.dart @@ -46,44 +46,53 @@ class _$UploadPartCopyRequest extends UploadPartCopyRequest { @override final String? expectedSourceBucketOwner; - factory _$UploadPartCopyRequest( - [void Function(UploadPartCopyRequestBuilder)? updates]) => - (new UploadPartCopyRequestBuilder()..update(updates))._build(); - - _$UploadPartCopyRequest._( - {required this.bucket, - required this.copySource, - this.copySourceIfMatch, - this.copySourceIfModifiedSince, - this.copySourceIfNoneMatch, - this.copySourceIfUnmodifiedSince, - this.copySourceRange, - required this.key, - this.partNumber, - required this.uploadId, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - this.copySourceSseCustomerAlgorithm, - this.copySourceSseCustomerKey, - this.copySourceSseCustomerKeyMd5, - this.requestPayer, - this.expectedBucketOwner, - this.expectedSourceBucketOwner}) - : super._() { + factory _$UploadPartCopyRequest([ + void Function(UploadPartCopyRequestBuilder)? updates, + ]) => (new UploadPartCopyRequestBuilder()..update(updates))._build(); + + _$UploadPartCopyRequest._({ + required this.bucket, + required this.copySource, + this.copySourceIfMatch, + this.copySourceIfModifiedSince, + this.copySourceIfNoneMatch, + this.copySourceIfUnmodifiedSince, + this.copySourceRange, + required this.key, + this.partNumber, + required this.uploadId, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + this.copySourceSseCustomerAlgorithm, + this.copySourceSseCustomerKey, + this.copySourceSseCustomerKeyMd5, + this.requestPayer, + this.expectedBucketOwner, + this.expectedSourceBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - bucket, r'UploadPartCopyRequest', 'bucket'); + bucket, + r'UploadPartCopyRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull( - copySource, r'UploadPartCopyRequest', 'copySource'); + copySource, + r'UploadPartCopyRequest', + 'copySource', + ); BuiltValueNullFieldError.checkNotNull(key, r'UploadPartCopyRequest', 'key'); BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadPartCopyRequest', 'uploadId'); + uploadId, + r'UploadPartCopyRequest', + 'uploadId', + ); } @override UploadPartCopyRequest rebuild( - void Function(UploadPartCopyRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadPartCopyRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadPartCopyRequestBuilder toBuilder() => @@ -283,22 +292,35 @@ class UploadPartCopyRequestBuilder UploadPartCopyRequest build() => _build(); _$UploadPartCopyRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UploadPartCopyRequest._( bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'UploadPartCopyRequest', 'bucket'), + bucket, + r'UploadPartCopyRequest', + 'bucket', + ), copySource: BuiltValueNullFieldError.checkNotNull( - copySource, r'UploadPartCopyRequest', 'copySource'), + copySource, + r'UploadPartCopyRequest', + 'copySource', + ), copySourceIfMatch: copySourceIfMatch, copySourceIfModifiedSince: copySourceIfModifiedSince, copySourceIfNoneMatch: copySourceIfNoneMatch, copySourceIfUnmodifiedSince: copySourceIfUnmodifiedSince, copySourceRange: copySourceRange, key: BuiltValueNullFieldError.checkNotNull( - key, r'UploadPartCopyRequest', 'key'), + key, + r'UploadPartCopyRequest', + 'key', + ), partNumber: partNumber, uploadId: BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadPartCopyRequest', 'uploadId'), + uploadId, + r'UploadPartCopyRequest', + 'uploadId', + ), sseCustomerAlgorithm: sseCustomerAlgorithm, sseCustomerKey: sseCustomerKey, sseCustomerKeyMd5: sseCustomerKeyMd5, @@ -315,16 +337,16 @@ class UploadPartCopyRequestBuilder } class _$UploadPartCopyRequestPayload extends UploadPartCopyRequestPayload { - factory _$UploadPartCopyRequestPayload( - [void Function(UploadPartCopyRequestPayloadBuilder)? updates]) => - (new UploadPartCopyRequestPayloadBuilder()..update(updates))._build(); + factory _$UploadPartCopyRequestPayload([ + void Function(UploadPartCopyRequestPayloadBuilder)? updates, + ]) => (new UploadPartCopyRequestPayloadBuilder()..update(updates))._build(); _$UploadPartCopyRequestPayload._() : super._(); @override UploadPartCopyRequestPayload rebuild( - void Function(UploadPartCopyRequestPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadPartCopyRequestPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadPartCopyRequestPayloadBuilder toBuilder() => @@ -344,8 +366,10 @@ class _$UploadPartCopyRequestPayload extends UploadPartCopyRequestPayload { class UploadPartCopyRequestPayloadBuilder implements - Builder { + Builder< + UploadPartCopyRequestPayload, + UploadPartCopyRequestPayloadBuilder + > { _$UploadPartCopyRequestPayload? _$v; UploadPartCopyRequestPayloadBuilder(); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.dart index e9b5f67672..8195784607 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.dart @@ -47,8 +47,9 @@ abstract class UploadPartOutput ); } - factory UploadPartOutput.build( - [void Function(UploadPartOutputBuilder) updates]) = _$UploadPartOutput; + factory UploadPartOutput.build([ + void Function(UploadPartOutputBuilder) updates, + ]) = _$UploadPartOutput; const UploadPartOutput._(); @@ -56,55 +57,55 @@ abstract class UploadPartOutput factory UploadPartOutput.fromResponse( UploadPartOutputPayload payload, _i1.AWSBaseHttpResponse response, - ) => - UploadPartOutput.build((b) { - if (response.headers['x-amz-server-side-encryption'] != null) { - b.serverSideEncryption = ServerSideEncryption.values - .byValue(response.headers['x-amz-server-side-encryption']!); - } - if (response.headers['ETag'] != null) { - b.eTag = response.headers['ETag']!; - } - if (response.headers['x-amz-checksum-crc32'] != null) { - b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; - } - if (response.headers['x-amz-checksum-crc32c'] != null) { - b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; - } - if (response.headers['x-amz-checksum-sha1'] != null) { - b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; - } - if (response.headers['x-amz-checksum-sha256'] != null) { - b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; - } - if (response - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = response - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = response - .headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != - null) { - b.ssekmsKeyId = - response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; - } - if (response - .headers['x-amz-server-side-encryption-bucket-key-enabled'] != - null) { - b.bucketKeyEnabled = response.headers[ - 'x-amz-server-side-encryption-bucket-key-enabled']! == - 'true'; - } - if (response.headers['x-amz-request-charged'] != null) { - b.requestCharged = RequestCharged.values - .byValue(response.headers['x-amz-request-charged']!); - } - }); + ) => UploadPartOutput.build((b) { + if (response.headers['x-amz-server-side-encryption'] != null) { + b.serverSideEncryption = ServerSideEncryption.values.byValue( + response.headers['x-amz-server-side-encryption']!, + ); + } + if (response.headers['ETag'] != null) { + b.eTag = response.headers['ETag']!; + } + if (response.headers['x-amz-checksum-crc32'] != null) { + b.checksumCrc32 = response.headers['x-amz-checksum-crc32']!; + } + if (response.headers['x-amz-checksum-crc32c'] != null) { + b.checksumCrc32C = response.headers['x-amz-checksum-crc32c']!; + } + if (response.headers['x-amz-checksum-sha1'] != null) { + b.checksumSha1 = response.headers['x-amz-checksum-sha1']!; + } + if (response.headers['x-amz-checksum-sha256'] != null) { + b.checksumSha256 = response.headers['x-amz-checksum-sha256']!; + } + if (response.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + response.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (response.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + response.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (response.headers['x-amz-server-side-encryption-aws-kms-key-id'] != + null) { + b.ssekmsKeyId = + response.headers['x-amz-server-side-encryption-aws-kms-key-id']!; + } + if (response.headers['x-amz-server-side-encryption-bucket-key-enabled'] != + null) { + b.bucketKeyEnabled = + response + .headers['x-amz-server-side-encryption-bucket-key-enabled']! == + 'true'; + } + if (response.headers['x-amz-request-charged'] != null) { + b.requestCharged = RequestCharged.values.byValue( + response.headers['x-amz-request-charged']!, + ); + } + }); static const List<_i2.SmithySerializer> serializers = [UploadPartOutputRestXmlSerializer()]; @@ -158,66 +159,34 @@ abstract class UploadPartOutput @override List get props => [ - serverSideEncryption, - eTag, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - sseCustomerAlgorithm, - sseCustomerKeyMd5, - ssekmsKeyId, - bucketKeyEnabled, - requestCharged, - ]; + serverSideEncryption, + eTag, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + sseCustomerAlgorithm, + sseCustomerKeyMd5, + ssekmsKeyId, + bucketKeyEnabled, + requestCharged, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadPartOutput') - ..add( - 'serverSideEncryption', - serverSideEncryption, - ) - ..add( - 'eTag', - eTag, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'ssekmsKeyId', - '***SENSITIVE***', - ) - ..add( - 'bucketKeyEnabled', - bucketKeyEnabled, - ) - ..add( - 'requestCharged', - requestCharged, - ); + final helper = + newBuiltValueToStringHelper('UploadPartOutput') + ..add('serverSideEncryption', serverSideEncryption) + ..add('eTag', eTag) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('ssekmsKeyId', '***SENSITIVE***') + ..add('bucketKeyEnabled', bucketKeyEnabled) + ..add('requestCharged', requestCharged); return helper.toString(); } } @@ -228,9 +197,9 @@ abstract class UploadPartOutputPayload implements Built, _i2.EmptyPayload { - factory UploadPartOutputPayload( - [void Function(UploadPartOutputPayloadBuilder) updates]) = - _$UploadPartOutputPayload; + factory UploadPartOutputPayload([ + void Function(UploadPartOutputPayloadBuilder) updates, + ]) = _$UploadPartOutputPayload; const UploadPartOutputPayload._(); @@ -250,19 +219,16 @@ class UploadPartOutputRestXmlSerializer @override Iterable get types => const [ - UploadPartOutput, - _$UploadPartOutput, - UploadPartOutputPayload, - _$UploadPartOutputPayload, - ]; + UploadPartOutput, + _$UploadPartOutput, + UploadPartOutputPayload, + _$UploadPartOutputPayload, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override UploadPartOutputPayload deserialize( @@ -283,7 +249,7 @@ class UploadPartOutputRestXmlSerializer const _i2.XmlElementName( 'UploadPartOutput', _i2.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; return result$; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.g.dart index eb70d21992..3c7228537e 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_output.g.dart @@ -30,23 +30,23 @@ class _$UploadPartOutput extends UploadPartOutput { @override final RequestCharged? requestCharged; - factory _$UploadPartOutput( - [void Function(UploadPartOutputBuilder)? updates]) => - (new UploadPartOutputBuilder()..update(updates))._build(); - - _$UploadPartOutput._( - {this.serverSideEncryption, - this.eTag, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - this.sseCustomerAlgorithm, - this.sseCustomerKeyMd5, - this.ssekmsKeyId, - this.bucketKeyEnabled, - this.requestCharged}) - : super._(); + factory _$UploadPartOutput([ + void Function(UploadPartOutputBuilder)? updates, + ]) => (new UploadPartOutputBuilder()..update(updates))._build(); + + _$UploadPartOutput._({ + this.serverSideEncryption, + this.eTag, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + this.sseCustomerAlgorithm, + this.sseCustomerKeyMd5, + this.ssekmsKeyId, + this.bucketKeyEnabled, + this.requestCharged, + }) : super._(); @override UploadPartOutput rebuild(void Function(UploadPartOutputBuilder) updates) => @@ -185,7 +185,8 @@ class UploadPartOutputBuilder UploadPartOutput build() => _build(); _$UploadPartOutput _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UploadPartOutput._( serverSideEncryption: serverSideEncryption, eTag: eTag, @@ -205,16 +206,16 @@ class UploadPartOutputBuilder } class _$UploadPartOutputPayload extends UploadPartOutputPayload { - factory _$UploadPartOutputPayload( - [void Function(UploadPartOutputPayloadBuilder)? updates]) => - (new UploadPartOutputPayloadBuilder()..update(updates))._build(); + factory _$UploadPartOutputPayload([ + void Function(UploadPartOutputPayloadBuilder)? updates, + ]) => (new UploadPartOutputPayloadBuilder()..update(updates))._build(); _$UploadPartOutputPayload._() : super._(); @override UploadPartOutputPayload rebuild( - void Function(UploadPartOutputPayloadBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UploadPartOutputPayloadBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UploadPartOutputPayloadBuilder toBuilder() => diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart index 2e137c9bc8..d6fb28cfb7 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.dart @@ -63,8 +63,9 @@ abstract class UploadPartRequest ); } - factory UploadPartRequest.build( - [void Function(UploadPartRequestBuilder) updates]) = _$UploadPartRequest; + factory UploadPartRequest.build([ + void Function(UploadPartRequestBuilder) updates, + ]) = _$UploadPartRequest; const UploadPartRequest._(); @@ -72,72 +73,69 @@ abstract class UploadPartRequest _i2.Stream> payload, _i3.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - UploadPartRequest.build((b) { - b.body = payload; - if (request.headers['Content-Length'] != null) { - b.contentLength = - _i4.Int64.parseInt(request.headers['Content-Length']!); - } - if (request.headers['Content-MD5'] != null) { - b.contentMd5 = request.headers['Content-MD5']!; - } - if (request.headers['x-amz-sdk-checksum-algorithm'] != null) { - b.checksumAlgorithm = ChecksumAlgorithm.values - .byValue(request.headers['x-amz-sdk-checksum-algorithm']!); - } - if (request.headers['x-amz-checksum-crc32'] != null) { - b.checksumCrc32 = request.headers['x-amz-checksum-crc32']!; - } - if (request.headers['x-amz-checksum-crc32c'] != null) { - b.checksumCrc32C = request.headers['x-amz-checksum-crc32c']!; - } - if (request.headers['x-amz-checksum-sha1'] != null) { - b.checksumSha1 = request.headers['x-amz-checksum-sha1']!; - } - if (request.headers['x-amz-checksum-sha256'] != null) { - b.checksumSha256 = request.headers['x-amz-checksum-sha256']!; - } - if (request - .headers['x-amz-server-side-encryption-customer-algorithm'] != - null) { - b.sseCustomerAlgorithm = request - .headers['x-amz-server-side-encryption-customer-algorithm']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key'] != - null) { - b.sseCustomerKey = - request.headers['x-amz-server-side-encryption-customer-key']!; - } - if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != - null) { - b.sseCustomerKeyMd5 = - request.headers['x-amz-server-side-encryption-customer-key-MD5']!; - } - if (request.headers['x-amz-request-payer'] != null) { - b.requestPayer = RequestPayer.values - .byValue(request.headers['x-amz-request-payer']!); - } - if (request.headers['x-amz-expected-bucket-owner'] != null) { - b.expectedBucketOwner = - request.headers['x-amz-expected-bucket-owner']!; - } - if (request.queryParameters['partNumber'] != null) { - b.partNumber = int.parse(request.queryParameters['partNumber']!); - } - if (request.queryParameters['uploadId'] != null) { - b.uploadId = request.queryParameters['uploadId']!; - } - if (labels['bucket'] != null) { - b.bucket = labels['bucket']!; - } - if (labels['key'] != null) { - b.key = labels['key']!; - } - }); + }) => UploadPartRequest.build((b) { + b.body = payload; + if (request.headers['Content-Length'] != null) { + b.contentLength = _i4.Int64.parseInt(request.headers['Content-Length']!); + } + if (request.headers['Content-MD5'] != null) { + b.contentMd5 = request.headers['Content-MD5']!; + } + if (request.headers['x-amz-sdk-checksum-algorithm'] != null) { + b.checksumAlgorithm = ChecksumAlgorithm.values.byValue( + request.headers['x-amz-sdk-checksum-algorithm']!, + ); + } + if (request.headers['x-amz-checksum-crc32'] != null) { + b.checksumCrc32 = request.headers['x-amz-checksum-crc32']!; + } + if (request.headers['x-amz-checksum-crc32c'] != null) { + b.checksumCrc32C = request.headers['x-amz-checksum-crc32c']!; + } + if (request.headers['x-amz-checksum-sha1'] != null) { + b.checksumSha1 = request.headers['x-amz-checksum-sha1']!; + } + if (request.headers['x-amz-checksum-sha256'] != null) { + b.checksumSha256 = request.headers['x-amz-checksum-sha256']!; + } + if (request.headers['x-amz-server-side-encryption-customer-algorithm'] != + null) { + b.sseCustomerAlgorithm = + request.headers['x-amz-server-side-encryption-customer-algorithm']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key'] != null) { + b.sseCustomerKey = + request.headers['x-amz-server-side-encryption-customer-key']!; + } + if (request.headers['x-amz-server-side-encryption-customer-key-MD5'] != + null) { + b.sseCustomerKeyMd5 = + request.headers['x-amz-server-side-encryption-customer-key-MD5']!; + } + if (request.headers['x-amz-request-payer'] != null) { + b.requestPayer = RequestPayer.values.byValue( + request.headers['x-amz-request-payer']!, + ); + } + if (request.headers['x-amz-expected-bucket-owner'] != null) { + b.expectedBucketOwner = request.headers['x-amz-expected-bucket-owner']!; + } + if (request.queryParameters['partNumber'] != null) { + b.partNumber = int.parse(request.queryParameters['partNumber']!); + } + if (request.queryParameters['uploadId'] != null) { + b.uploadId = request.queryParameters['uploadId']!; + } + if (labels['bucket'] != null) { + b.bucket = labels['bucket']!; + } + if (labels['key'] != null) { + b.key = labels['key']!; + } + }); static const List<_i1.SmithySerializer<_i2.Stream>>> serializers = [ - UploadPartRequestRestXmlSerializer() + UploadPartRequestRestXmlSerializer(), ]; @BuiltValueHook(initializeBuilder: true) @@ -225,10 +223,7 @@ abstract class UploadPartRequest case 'Key': return this.key; } - throw _i1.MissingLabelException( - this, - key, - ); + throw _i1.MissingLabelException(this, key); } @override @@ -236,96 +231,46 @@ abstract class UploadPartRequest @override List get props => [ - body, - bucket, - contentLength, - contentMd5, - checksumAlgorithm, - checksumCrc32, - checksumCrc32C, - checksumSha1, - checksumSha256, - key, - partNumber, - uploadId, - sseCustomerAlgorithm, - sseCustomerKey, - sseCustomerKeyMd5, - requestPayer, - expectedBucketOwner, - ]; + body, + bucket, + contentLength, + contentMd5, + checksumAlgorithm, + checksumCrc32, + checksumCrc32C, + checksumSha1, + checksumSha256, + key, + partNumber, + uploadId, + sseCustomerAlgorithm, + sseCustomerKey, + sseCustomerKeyMd5, + requestPayer, + expectedBucketOwner, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('UploadPartRequest') - ..add( - 'body', - body, - ) - ..add( - 'bucket', - bucket, - ) - ..add( - 'contentLength', - contentLength, - ) - ..add( - 'contentMd5', - contentMd5, - ) - ..add( - 'checksumAlgorithm', - checksumAlgorithm, - ) - ..add( - 'checksumCrc32', - checksumCrc32, - ) - ..add( - 'checksumCrc32C', - checksumCrc32C, - ) - ..add( - 'checksumSha1', - checksumSha1, - ) - ..add( - 'checksumSha256', - checksumSha256, - ) - ..add( - 'key', - key, - ) - ..add( - 'partNumber', - partNumber, - ) - ..add( - 'uploadId', - uploadId, - ) - ..add( - 'sseCustomerAlgorithm', - sseCustomerAlgorithm, - ) - ..add( - 'sseCustomerKey', - '***SENSITIVE***', - ) - ..add( - 'sseCustomerKeyMd5', - sseCustomerKeyMd5, - ) - ..add( - 'requestPayer', - requestPayer, - ) - ..add( - 'expectedBucketOwner', - expectedBucketOwner, - ); + final helper = + newBuiltValueToStringHelper('UploadPartRequest') + ..add('body', body) + ..add('bucket', bucket) + ..add('contentLength', contentLength) + ..add('contentMd5', contentMd5) + ..add('checksumAlgorithm', checksumAlgorithm) + ..add('checksumCrc32', checksumCrc32) + ..add('checksumCrc32C', checksumCrc32C) + ..add('checksumSha1', checksumSha1) + ..add('checksumSha256', checksumSha256) + ..add('key', key) + ..add('partNumber', partNumber) + ..add('uploadId', uploadId) + ..add('sseCustomerAlgorithm', sseCustomerAlgorithm) + ..add('sseCustomerKey', '***SENSITIVE***') + ..add('sseCustomerKeyMd5', sseCustomerKeyMd5) + ..add('requestPayer', requestPayer) + ..add('expectedBucketOwner', expectedBucketOwner); return helper.toString(); } } @@ -335,18 +280,12 @@ class UploadPartRequestRestXmlSerializer const UploadPartRequestRestXmlSerializer() : super('UploadPartRequest'); @override - Iterable get types => const [ - UploadPartRequest, - _$UploadPartRequest, - ]; + Iterable get types => const [UploadPartRequest, _$UploadPartRequest]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'restXml', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'restXml'), + ]; @override _i2.Stream> deserialize( @@ -355,17 +294,12 @@ class UploadPartRequestRestXmlSerializer FullType specifiedType = FullType.unspecified, }) { return (serializers.deserialize( - serialized, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], - ), - ) as _i2.Stream>); + serialized, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), + ) + as _i2.Stream>); } @override @@ -378,21 +312,17 @@ class UploadPartRequestRestXmlSerializer const _i1.XmlElementName( 'UploadPartRequest', _i1.XmlNamespace('http://s3.amazonaws.com/doc/2006-03-01/'), - ) + ), ]; - result$.add(serializers.serialize( - object, - specifiedType: const FullType( - _i2.Stream, - [ - FullType( - List, - [FullType(int)], - ) - ], + result$.add( + serializers.serialize( + object, + specifiedType: const FullType(_i2.Stream, [ + FullType(List, [FullType(int)]), + ]), ), - )); + ); return result$; } } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.g.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.g.dart index 82cf3c2f60..372e8c3359 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.g.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/model/upload_part_request.g.dart @@ -42,35 +42,41 @@ class _$UploadPartRequest extends UploadPartRequest { @override final String? expectedBucketOwner; - factory _$UploadPartRequest( - [void Function(UploadPartRequestBuilder)? updates]) => - (new UploadPartRequestBuilder()..update(updates))._build(); - - _$UploadPartRequest._( - {required this.body, - required this.bucket, - this.contentLength, - this.contentMd5, - this.checksumAlgorithm, - this.checksumCrc32, - this.checksumCrc32C, - this.checksumSha1, - this.checksumSha256, - required this.key, - this.partNumber, - required this.uploadId, - this.sseCustomerAlgorithm, - this.sseCustomerKey, - this.sseCustomerKeyMd5, - this.requestPayer, - this.expectedBucketOwner}) - : super._() { + factory _$UploadPartRequest([ + void Function(UploadPartRequestBuilder)? updates, + ]) => (new UploadPartRequestBuilder()..update(updates))._build(); + + _$UploadPartRequest._({ + required this.body, + required this.bucket, + this.contentLength, + this.contentMd5, + this.checksumAlgorithm, + this.checksumCrc32, + this.checksumCrc32C, + this.checksumSha1, + this.checksumSha256, + required this.key, + this.partNumber, + required this.uploadId, + this.sseCustomerAlgorithm, + this.sseCustomerKey, + this.sseCustomerKeyMd5, + this.requestPayer, + this.expectedBucketOwner, + }) : super._() { BuiltValueNullFieldError.checkNotNull(body, r'UploadPartRequest', 'body'); BuiltValueNullFieldError.checkNotNull( - bucket, r'UploadPartRequest', 'bucket'); + bucket, + r'UploadPartRequest', + 'bucket', + ); BuiltValueNullFieldError.checkNotNull(key, r'UploadPartRequest', 'key'); BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadPartRequest', 'uploadId'); + uploadId, + r'UploadPartRequest', + 'uploadId', + ); } @override @@ -255,12 +261,19 @@ class UploadPartRequestBuilder UploadPartRequest build() => _build(); _$UploadPartRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UploadPartRequest._( body: BuiltValueNullFieldError.checkNotNull( - body, r'UploadPartRequest', 'body'), + body, + r'UploadPartRequest', + 'body', + ), bucket: BuiltValueNullFieldError.checkNotNull( - bucket, r'UploadPartRequest', 'bucket'), + bucket, + r'UploadPartRequest', + 'bucket', + ), contentLength: contentLength, contentMd5: contentMd5, checksumAlgorithm: checksumAlgorithm, @@ -269,10 +282,16 @@ class UploadPartRequestBuilder checksumSha1: checksumSha1, checksumSha256: checksumSha256, key: BuiltValueNullFieldError.checkNotNull( - key, r'UploadPartRequest', 'key'), + key, + r'UploadPartRequest', + 'key', + ), partNumber: partNumber, uploadId: BuiltValueNullFieldError.checkNotNull( - uploadId, r'UploadPartRequest', 'uploadId'), + uploadId, + r'UploadPartRequest', + 'uploadId', + ), sseCustomerAlgorithm: sseCustomerAlgorithm, sseCustomerKey: sseCustomerKey, sseCustomerKeyMd5: sseCustomerKeyMd5, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/abort_multipart_upload_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/abort_multipart_upload_operation.dart index 289a479e63..6e28058bdb 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/abort_multipart_upload_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/abort_multipart_upload_operation.dart @@ -43,11 +43,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) /// /// * [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) -class AbortMultipartUploadOperation extends _i1.HttpOperation< - AbortMultipartUploadRequestPayload, - AbortMultipartUploadRequest, - AbortMultipartUploadOutputPayload, - AbortMultipartUploadOutput> { +class AbortMultipartUploadOperation + extends + _i1.HttpOperation< + AbortMultipartUploadRequestPayload, + AbortMultipartUploadRequest, + AbortMultipartUploadOutputPayload, + AbortMultipartUploadOutput + > { /// This operation aborts a multipart upload. After a multipart upload is aborted, no additional parts can be uploaded using that upload ID. The storage consumed by any previously uploaded parts will be freed. However, if any part uploads are currently in progress, those part uploads might or might not succeed. As a result, it might be necessary to abort a given multipart upload multiple times in order to completely free all storage consumed by all parts. /// /// To verify that all parts have been removed and prevent getting charged for the part storage, you should call the [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) API operation and ensure that the parts list is empty. @@ -84,30 +87,35 @@ class AbortMultipartUploadOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - AbortMultipartUploadRequestPayload, - AbortMultipartUploadRequest, - AbortMultipartUploadOutputPayload, - AbortMultipartUploadOutput>> protocols = [ + _i1.HttpProtocol< + AbortMultipartUploadRequestPayload, + AbortMultipartUploadRequest, + AbortMultipartUploadOutputPayload, + AbortMultipartUploadOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -118,7 +126,7 @@ class AbortMultipartUploadOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -142,9 +150,10 @@ class AbortMultipartUploadOperation extends _i1.HttpOperation< _i1.HttpRequest buildRequest(AbortMultipartUploadRequest input) => _i1.HttpRequest((b) { b.method = 'DELETE'; - b.path = _s3ClientConfig.usePathStyle - ? r'/{Bucket}/{Key+}?x-id=AbortMultipartUpload' - : r'/{Key+}?x-id=AbortMultipartUpload'; + b.path = + _s3ClientConfig.usePathStyle + ? r'/{Bucket}/{Key+}?x-id=AbortMultipartUpload' + : r'/{Key+}?x-id=AbortMultipartUpload'; b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; if (input.requestPayer != null) { b.headers['x-amz-request-payer'] = input.requestPayer!.value; @@ -155,10 +164,7 @@ class AbortMultipartUploadOperation extends _i1.HttpOperation< input.expectedBucketOwner!; } } - b.queryParameters.add( - 'uploadId', - input.uploadId, - ); + b.queryParameters.add('uploadId', input.uploadId); }); @override @@ -168,25 +174,18 @@ class AbortMultipartUploadOperation extends _i1.HttpOperation< AbortMultipartUploadOutput buildOutput( AbortMultipartUploadOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - AbortMultipartUploadOutput.fromResponse( - payload, - response, - ); + ) => AbortMultipartUploadOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchUpload', - ), - _i1.ErrorKind.client, - NoSuchUpload, - statusCode: 404, - builder: NoSuchUpload.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchUpload'), + _i1.ErrorKind.client, + NoSuchUpload, + statusCode: 404, + builder: NoSuchUpload.fromResponse, + ), + ]; @override String get runtimeTypeName => 'AbortMultipartUpload'; @@ -222,11 +221,7 @@ class AbortMultipartUploadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/complete_multipart_upload_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/complete_multipart_upload_operation.dart index a0b28f330d..e8fa142554 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/complete_multipart_upload_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/complete_multipart_upload_operation.dart @@ -78,11 +78,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) /// /// * [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) -class CompleteMultipartUploadOperation extends _i1.HttpOperation< - CompletedMultipartUpload, - CompleteMultipartUploadRequest, - CompleteMultipartUploadOutputPayload, - CompleteMultipartUploadOutput> { +class CompleteMultipartUploadOperation + extends + _i1.HttpOperation< + CompletedMultipartUpload, + CompleteMultipartUploadRequest, + CompleteMultipartUploadOutputPayload, + CompleteMultipartUploadOutput + > { /// Completes a multipart upload by assembling previously uploaded parts. /// /// You first initiate the multipart upload and then upload all parts using the [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html) operation or the [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) operation. After successfully uploading all relevant parts of an upload, you call this `CompleteMultipartUpload` operation to complete the upload. Upon receiving this request, Amazon S3 concatenates all the parts in ascending order by part number to create a new object. In the CompleteMultipartUpload request, you must provide the parts list and ensure that the parts list is complete. The CompleteMultipartUpload API operation concatenates the parts that you provide in the list. For each part in the list, you must provide the `PartNumber` value and the `ETag` value that are returned after that part was uploaded. @@ -154,31 +157,36 @@ class CompleteMultipartUploadOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - CompletedMultipartUpload, - CompleteMultipartUploadRequest, - CompleteMultipartUploadOutputPayload, - CompleteMultipartUploadOutput>> protocols = [ + _i1.HttpProtocol< + CompletedMultipartUpload, + CompleteMultipartUploadRequest, + CompleteMultipartUploadOutputPayload, + CompleteMultipartUploadOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -186,12 +194,11 @@ class CompleteMultipartUploadOperation extends _i1.HttpOperation< const _i2.WithSdkRequest(), ] + _requestInterceptors, - responseInterceptors: <_i1.HttpResponseInterceptor>[ - const _i2.CheckErrorOnSuccess() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i2.CheckErrorOnSuccess()] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -215,9 +222,10 @@ class CompleteMultipartUploadOperation extends _i1.HttpOperation< _i1.HttpRequest buildRequest(CompleteMultipartUploadRequest input) => _i1.HttpRequest((b) { b.method = 'POST'; - b.path = _s3ClientConfig.usePathStyle - ? r'/{Bucket}/{Key+}?x-id=CompleteMultipartUpload' - : r'/{Key+}?x-id=CompleteMultipartUpload'; + b.path = + _s3ClientConfig.usePathStyle + ? r'/{Bucket}/{Key+}?x-id=CompleteMultipartUpload' + : r'/{Key+}?x-id=CompleteMultipartUpload'; b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; if (input.checksumCrc32 != null) { if (input.checksumCrc32!.isNotEmpty) { @@ -266,10 +274,7 @@ class CompleteMultipartUploadOperation extends _i1.HttpOperation< input.sseCustomerKeyMd5!; } } - b.queryParameters.add( - 'uploadId', - input.uploadId, - ); + b.queryParameters.add('uploadId', input.uploadId); }); @override @@ -279,11 +284,7 @@ class CompleteMultipartUploadOperation extends _i1.HttpOperation< CompleteMultipartUploadOutput buildOutput( CompleteMultipartUploadOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - CompleteMultipartUploadOutput.fromResponse( - payload, - response, - ); + ) => CompleteMultipartUploadOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -322,11 +323,7 @@ class CompleteMultipartUploadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/copy_object_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/copy_object_operation.dart index 3b42ebbc32..d89f57755b 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/copy_object_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/copy_object_operation.dart @@ -84,8 +84,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [PutObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) /// /// * [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) -class CopyObjectOperation extends _i1.HttpOperation { +class CopyObjectOperation + extends + _i1.HttpOperation< + CopyObjectRequestPayload, + CopyObjectRequest, + CopyObjectResult, + CopyObjectOutput + > { /// Creates a copy of an object that is already stored in Amazon S3. /// /// You can store individual objects of up to 5 TB in Amazon S3. You create a copy of your object up to 5 GB in size in a single atomic action using this API. However, to copy an object greater than 5 GB, you must use the multipart upload Upload Part - Copy (UploadPartCopy) API. For more information, see [Copy Object Using the REST Multipart Upload API](https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjctsUsingRESTMPUapi.html). @@ -162,27 +168,35 @@ class CopyObjectOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + CopyObjectRequestPayload, + CopyObjectRequest, + CopyObjectResult, + CopyObjectOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -190,12 +204,11 @@ class CopyObjectOperation extends _i1.HttpOperation[ - const _i2.CheckErrorOnSuccess() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i2.CheckErrorOnSuccess()] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -217,209 +230,206 @@ class CopyObjectOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = _s3ClientConfig.usePathStyle + b.method = 'PUT'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=CopyObject' : r'/{Key+}?x-id=CopyObject'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.acl != null) { - b.headers['x-amz-acl'] = input.acl!.value; - } - if (input.cacheControl != null) { - if (input.cacheControl!.isNotEmpty) { - b.headers['Cache-Control'] = input.cacheControl!; - } - } - if (input.checksumAlgorithm != null) { - b.headers['x-amz-checksum-algorithm'] = - input.checksumAlgorithm!.value; - } - if (input.contentDisposition != null) { - if (input.contentDisposition!.isNotEmpty) { - b.headers['Content-Disposition'] = input.contentDisposition!; - } - } - if (input.contentEncoding != null) { - if (input.contentEncoding!.isNotEmpty) { - b.headers['Content-Encoding'] = input.contentEncoding!; - } - } - if (input.contentLanguage != null) { - if (input.contentLanguage!.isNotEmpty) { - b.headers['Content-Language'] = input.contentLanguage!; - } - } - if (input.contentType != null) { - if (input.contentType!.isNotEmpty) { - b.headers['Content-Type'] = input.contentType!; - } - } - if (input.copySource.isNotEmpty) { - b.headers['x-amz-copy-source'] = input.copySource; - } - if (input.copySourceIfMatch != null) { - if (input.copySourceIfMatch!.isNotEmpty) { - b.headers['x-amz-copy-source-if-match'] = input.copySourceIfMatch!; - } - } - if (input.copySourceIfModifiedSince != null) { - b.headers['x-amz-copy-source-if-modified-since'] = - _i1.Timestamp(input.copySourceIfModifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.copySourceIfNoneMatch != null) { - if (input.copySourceIfNoneMatch!.isNotEmpty) { - b.headers['x-amz-copy-source-if-none-match'] = - input.copySourceIfNoneMatch!; - } - } - if (input.copySourceIfUnmodifiedSince != null) { - b.headers['x-amz-copy-source-if-unmodified-since'] = - _i1.Timestamp(input.copySourceIfUnmodifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.expires != null) { - b.headers['Expires'] = _i1.Timestamp(input.expires!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.grantFullControl != null) { - if (input.grantFullControl!.isNotEmpty) { - b.headers['x-amz-grant-full-control'] = input.grantFullControl!; - } - } - if (input.grantRead != null) { - if (input.grantRead!.isNotEmpty) { - b.headers['x-amz-grant-read'] = input.grantRead!; - } - } - if (input.grantReadAcp != null) { - if (input.grantReadAcp!.isNotEmpty) { - b.headers['x-amz-grant-read-acp'] = input.grantReadAcp!; - } - } - if (input.grantWriteAcp != null) { - if (input.grantWriteAcp!.isNotEmpty) { - b.headers['x-amz-grant-write-acp'] = input.grantWriteAcp!; - } - } - if (input.metadataDirective != null) { - b.headers['x-amz-metadata-directive'] = - input.metadataDirective!.value; - } - if (input.taggingDirective != null) { - b.headers['x-amz-tagging-directive'] = input.taggingDirective!.value; - } - if (input.serverSideEncryption != null) { - b.headers['x-amz-server-side-encryption'] = - input.serverSideEncryption!.value; - } - if (input.storageClass != null) { - b.headers['x-amz-storage-class'] = input.storageClass!.value; - } - if (input.websiteRedirectLocation != null) { - if (input.websiteRedirectLocation!.isNotEmpty) { - b.headers['x-amz-website-redirect-location'] = - input.websiteRedirectLocation!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.ssekmsKeyId != null) { - if (input.ssekmsKeyId!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-aws-kms-key-id'] = - input.ssekmsKeyId!; - } - } - if (input.ssekmsEncryptionContext != null) { - if (input.ssekmsEncryptionContext!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-context'] = - input.ssekmsEncryptionContext!; - } - } - if (input.bucketKeyEnabled != null) { - b.headers['x-amz-server-side-encryption-bucket-key-enabled'] = - input.bucketKeyEnabled!.toString(); - } - if (input.copySourceSseCustomerAlgorithm != null) { - if (input.copySourceSseCustomerAlgorithm!.isNotEmpty) { - b.headers[ - 'x-amz-copy-source-server-side-encryption-customer-algorithm'] = - input.copySourceSseCustomerAlgorithm!; - } - } - if (input.copySourceSseCustomerKey != null) { - if (input.copySourceSseCustomerKey!.isNotEmpty) { - b.headers['x-amz-copy-source-server-side-encryption-customer-key'] = - input.copySourceSseCustomerKey!; - } - } - if (input.copySourceSseCustomerKeyMd5 != null) { - if (input.copySourceSseCustomerKeyMd5!.isNotEmpty) { - b.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key-MD5'] = - input.copySourceSseCustomerKeyMd5!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.tagging != null) { - if (input.tagging!.isNotEmpty) { - b.headers['x-amz-tagging'] = input.tagging!; - } - } - if (input.objectLockMode != null) { - b.headers['x-amz-object-lock-mode'] = input.objectLockMode!.value; - } - if (input.objectLockRetainUntilDate != null) { - b.headers['x-amz-object-lock-retain-until-date'] = - _i1.Timestamp(input.objectLockRetainUntilDate!) - .format(_i1.TimestampFormat.dateTime) - .toString(); - } - if (input.objectLockLegalHoldStatus != null) { - b.headers['x-amz-object-lock-legal-hold'] = - input.objectLockLegalHoldStatus!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.expectedSourceBucketOwner != null) { - if (input.expectedSourceBucketOwner!.isNotEmpty) { - b.headers['x-amz-source-expected-bucket-owner'] = - input.expectedSourceBucketOwner!; - } - } - if (input.metadata != null) { - for (var entry in input.metadata!.toMap().entries) { - if (entry.value.isNotEmpty) { - b.headers['x-amz-meta-${entry.key}'] = entry.value; - } - } + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.acl != null) { + b.headers['x-amz-acl'] = input.acl!.value; + } + if (input.cacheControl != null) { + if (input.cacheControl!.isNotEmpty) { + b.headers['Cache-Control'] = input.cacheControl!; + } + } + if (input.checksumAlgorithm != null) { + b.headers['x-amz-checksum-algorithm'] = input.checksumAlgorithm!.value; + } + if (input.contentDisposition != null) { + if (input.contentDisposition!.isNotEmpty) { + b.headers['Content-Disposition'] = input.contentDisposition!; + } + } + if (input.contentEncoding != null) { + if (input.contentEncoding!.isNotEmpty) { + b.headers['Content-Encoding'] = input.contentEncoding!; + } + } + if (input.contentLanguage != null) { + if (input.contentLanguage!.isNotEmpty) { + b.headers['Content-Language'] = input.contentLanguage!; + } + } + if (input.contentType != null) { + if (input.contentType!.isNotEmpty) { + b.headers['Content-Type'] = input.contentType!; + } + } + if (input.copySource.isNotEmpty) { + b.headers['x-amz-copy-source'] = input.copySource; + } + if (input.copySourceIfMatch != null) { + if (input.copySourceIfMatch!.isNotEmpty) { + b.headers['x-amz-copy-source-if-match'] = input.copySourceIfMatch!; + } + } + if (input.copySourceIfModifiedSince != null) { + b.headers['x-amz-copy-source-if-modified-since'] = + _i1.Timestamp( + input.copySourceIfModifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.copySourceIfNoneMatch != null) { + if (input.copySourceIfNoneMatch!.isNotEmpty) { + b.headers['x-amz-copy-source-if-none-match'] = + input.copySourceIfNoneMatch!; + } + } + if (input.copySourceIfUnmodifiedSince != null) { + b.headers['x-amz-copy-source-if-unmodified-since'] = + _i1.Timestamp( + input.copySourceIfUnmodifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.expires != null) { + b.headers['Expires'] = + _i1.Timestamp( + input.expires!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.grantFullControl != null) { + if (input.grantFullControl!.isNotEmpty) { + b.headers['x-amz-grant-full-control'] = input.grantFullControl!; + } + } + if (input.grantRead != null) { + if (input.grantRead!.isNotEmpty) { + b.headers['x-amz-grant-read'] = input.grantRead!; + } + } + if (input.grantReadAcp != null) { + if (input.grantReadAcp!.isNotEmpty) { + b.headers['x-amz-grant-read-acp'] = input.grantReadAcp!; + } + } + if (input.grantWriteAcp != null) { + if (input.grantWriteAcp!.isNotEmpty) { + b.headers['x-amz-grant-write-acp'] = input.grantWriteAcp!; + } + } + if (input.metadataDirective != null) { + b.headers['x-amz-metadata-directive'] = input.metadataDirective!.value; + } + if (input.taggingDirective != null) { + b.headers['x-amz-tagging-directive'] = input.taggingDirective!.value; + } + if (input.serverSideEncryption != null) { + b.headers['x-amz-server-side-encryption'] = + input.serverSideEncryption!.value; + } + if (input.storageClass != null) { + b.headers['x-amz-storage-class'] = input.storageClass!.value; + } + if (input.websiteRedirectLocation != null) { + if (input.websiteRedirectLocation!.isNotEmpty) { + b.headers['x-amz-website-redirect-location'] = + input.websiteRedirectLocation!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.ssekmsKeyId != null) { + if (input.ssekmsKeyId!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-aws-kms-key-id'] = + input.ssekmsKeyId!; + } + } + if (input.ssekmsEncryptionContext != null) { + if (input.ssekmsEncryptionContext!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-context'] = + input.ssekmsEncryptionContext!; + } + } + if (input.bucketKeyEnabled != null) { + b.headers['x-amz-server-side-encryption-bucket-key-enabled'] = + input.bucketKeyEnabled!.toString(); + } + if (input.copySourceSseCustomerAlgorithm != null) { + if (input.copySourceSseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-copy-source-server-side-encryption-customer-algorithm'] = + input.copySourceSseCustomerAlgorithm!; + } + } + if (input.copySourceSseCustomerKey != null) { + if (input.copySourceSseCustomerKey!.isNotEmpty) { + b.headers['x-amz-copy-source-server-side-encryption-customer-key'] = + input.copySourceSseCustomerKey!; + } + } + if (input.copySourceSseCustomerKeyMd5 != null) { + if (input.copySourceSseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-copy-source-server-side-encryption-customer-key-MD5'] = + input.copySourceSseCustomerKeyMd5!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.tagging != null) { + if (input.tagging!.isNotEmpty) { + b.headers['x-amz-tagging'] = input.tagging!; + } + } + if (input.objectLockMode != null) { + b.headers['x-amz-object-lock-mode'] = input.objectLockMode!.value; + } + if (input.objectLockRetainUntilDate != null) { + b.headers['x-amz-object-lock-retain-until-date'] = + _i1.Timestamp( + input.objectLockRetainUntilDate!, + ).format(_i1.TimestampFormat.dateTime).toString(); + } + if (input.objectLockLegalHoldStatus != null) { + b.headers['x-amz-object-lock-legal-hold'] = + input.objectLockLegalHoldStatus!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.expectedSourceBucketOwner != null) { + if (input.expectedSourceBucketOwner!.isNotEmpty) { + b.headers['x-amz-source-expected-bucket-owner'] = + input.expectedSourceBucketOwner!; + } + } + if (input.metadata != null) { + for (var entry in input.metadata!.toMap().entries) { + if (entry.value.isNotEmpty) { + b.headers['x-amz-meta-${entry.key}'] = entry.value; } - }); + } + } + }); @override int successCode([CopyObjectOutput? output]) => 200; @@ -428,25 +438,21 @@ class CopyObjectOperation extends _i1.HttpOperation - CopyObjectOutput.fromResponse( - payload, - response, - ); + ) => CopyObjectOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'ObjectNotInActiveTierError', - ), - _i1.ErrorKind.client, - ObjectNotInActiveTierError, - statusCode: 403, - builder: ObjectNotInActiveTierError.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.s3', + shape: 'ObjectNotInActiveTierError', + ), + _i1.ErrorKind.client, + ObjectNotInActiveTierError, + statusCode: 403, + builder: ObjectNotInActiveTierError.fromResponse, + ), + ]; @override String get runtimeTypeName => 'CopyObject'; @@ -482,11 +488,7 @@ class CopyObjectOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/create_multipart_upload_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/create_multipart_upload_operation.dart index d293d0ce4f..6b9e4dacda 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/create_multipart_upload_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/create_multipart_upload_operation.dart @@ -91,11 +91,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) /// /// * [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) -class CreateMultipartUploadOperation extends _i1.HttpOperation< - CreateMultipartUploadRequestPayload, - CreateMultipartUploadRequest, - CreateMultipartUploadOutputPayload, - CreateMultipartUploadOutput> { +class CreateMultipartUploadOperation + extends + _i1.HttpOperation< + CreateMultipartUploadRequestPayload, + CreateMultipartUploadRequest, + CreateMultipartUploadOutputPayload, + CreateMultipartUploadOutput + > { /// This action initiates a multipart upload and returns an upload ID. This upload ID is used to associate all of the parts in the specific multipart upload. You specify this upload ID in each of your subsequent upload part requests (see [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)). You also include this upload ID in the final request to either complete or abort the multipart upload request. For more information about multipart uploads, see [Multipart Upload Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html) in the _Amazon S3 User Guide_. /// /// After you initiate a multipart upload and upload one or more parts, to stop being charged for storing the uploaded parts, you must either complete or abort the multipart upload. Amazon S3 frees up the space used to store the parts and stops charging you for storing them only after you either complete or abort a multipart upload. @@ -181,30 +184,35 @@ class CreateMultipartUploadOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - CreateMultipartUploadRequestPayload, - CreateMultipartUploadRequest, - CreateMultipartUploadOutputPayload, - CreateMultipartUploadOutput>> protocols = [ + _i1.HttpProtocol< + CreateMultipartUploadRequestPayload, + CreateMultipartUploadRequest, + CreateMultipartUploadOutputPayload, + CreateMultipartUploadOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -215,7 +223,7 @@ class CreateMultipartUploadOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -236,152 +244,153 @@ class CreateMultipartUploadOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(CreateMultipartUploadRequest input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest( + CreateMultipartUploadRequest input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?uploads&x-id=CreateMultipartUpload' : r'/{Key+}?uploads&x-id=CreateMultipartUpload'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.acl != null) { - b.headers['x-amz-acl'] = input.acl!.value; - } - if (input.cacheControl != null) { - if (input.cacheControl!.isNotEmpty) { - b.headers['Cache-Control'] = input.cacheControl!; - } - } - if (input.contentDisposition != null) { - if (input.contentDisposition!.isNotEmpty) { - b.headers['Content-Disposition'] = input.contentDisposition!; - } - } - if (input.contentEncoding != null) { - if (input.contentEncoding!.isNotEmpty) { - b.headers['Content-Encoding'] = input.contentEncoding!; - } - } - if (input.contentLanguage != null) { - if (input.contentLanguage!.isNotEmpty) { - b.headers['Content-Language'] = input.contentLanguage!; - } - } - if (input.contentType != null) { - if (input.contentType!.isNotEmpty) { - b.headers['Content-Type'] = input.contentType!; - } - } - if (input.expires != null) { - b.headers['Expires'] = _i1.Timestamp(input.expires!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.grantFullControl != null) { - if (input.grantFullControl!.isNotEmpty) { - b.headers['x-amz-grant-full-control'] = input.grantFullControl!; - } - } - if (input.grantRead != null) { - if (input.grantRead!.isNotEmpty) { - b.headers['x-amz-grant-read'] = input.grantRead!; - } - } - if (input.grantReadAcp != null) { - if (input.grantReadAcp!.isNotEmpty) { - b.headers['x-amz-grant-read-acp'] = input.grantReadAcp!; - } - } - if (input.grantWriteAcp != null) { - if (input.grantWriteAcp!.isNotEmpty) { - b.headers['x-amz-grant-write-acp'] = input.grantWriteAcp!; - } - } - if (input.serverSideEncryption != null) { - b.headers['x-amz-server-side-encryption'] = - input.serverSideEncryption!.value; - } - if (input.storageClass != null) { - b.headers['x-amz-storage-class'] = input.storageClass!.value; - } - if (input.websiteRedirectLocation != null) { - if (input.websiteRedirectLocation!.isNotEmpty) { - b.headers['x-amz-website-redirect-location'] = - input.websiteRedirectLocation!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.ssekmsKeyId != null) { - if (input.ssekmsKeyId!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-aws-kms-key-id'] = - input.ssekmsKeyId!; - } - } - if (input.ssekmsEncryptionContext != null) { - if (input.ssekmsEncryptionContext!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-context'] = - input.ssekmsEncryptionContext!; - } - } - if (input.bucketKeyEnabled != null) { - b.headers['x-amz-server-side-encryption-bucket-key-enabled'] = - input.bucketKeyEnabled!.toString(); - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.tagging != null) { - if (input.tagging!.isNotEmpty) { - b.headers['x-amz-tagging'] = input.tagging!; - } - } - if (input.objectLockMode != null) { - b.headers['x-amz-object-lock-mode'] = input.objectLockMode!.value; - } - if (input.objectLockRetainUntilDate != null) { - b.headers['x-amz-object-lock-retain-until-date'] = - _i1.Timestamp(input.objectLockRetainUntilDate!) - .format(_i1.TimestampFormat.dateTime) - .toString(); - } - if (input.objectLockLegalHoldStatus != null) { - b.headers['x-amz-object-lock-legal-hold'] = - input.objectLockLegalHoldStatus!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.checksumAlgorithm != null) { - b.headers['x-amz-checksum-algorithm'] = - input.checksumAlgorithm!.value; - } - if (input.metadata != null) { - for (var entry in input.metadata!.toMap().entries) { - if (entry.value.isNotEmpty) { - b.headers['x-amz-meta-${entry.key}'] = entry.value; - } - } + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.acl != null) { + b.headers['x-amz-acl'] = input.acl!.value; + } + if (input.cacheControl != null) { + if (input.cacheControl!.isNotEmpty) { + b.headers['Cache-Control'] = input.cacheControl!; + } + } + if (input.contentDisposition != null) { + if (input.contentDisposition!.isNotEmpty) { + b.headers['Content-Disposition'] = input.contentDisposition!; + } + } + if (input.contentEncoding != null) { + if (input.contentEncoding!.isNotEmpty) { + b.headers['Content-Encoding'] = input.contentEncoding!; + } + } + if (input.contentLanguage != null) { + if (input.contentLanguage!.isNotEmpty) { + b.headers['Content-Language'] = input.contentLanguage!; + } + } + if (input.contentType != null) { + if (input.contentType!.isNotEmpty) { + b.headers['Content-Type'] = input.contentType!; + } + } + if (input.expires != null) { + b.headers['Expires'] = + _i1.Timestamp( + input.expires!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.grantFullControl != null) { + if (input.grantFullControl!.isNotEmpty) { + b.headers['x-amz-grant-full-control'] = input.grantFullControl!; + } + } + if (input.grantRead != null) { + if (input.grantRead!.isNotEmpty) { + b.headers['x-amz-grant-read'] = input.grantRead!; + } + } + if (input.grantReadAcp != null) { + if (input.grantReadAcp!.isNotEmpty) { + b.headers['x-amz-grant-read-acp'] = input.grantReadAcp!; + } + } + if (input.grantWriteAcp != null) { + if (input.grantWriteAcp!.isNotEmpty) { + b.headers['x-amz-grant-write-acp'] = input.grantWriteAcp!; + } + } + if (input.serverSideEncryption != null) { + b.headers['x-amz-server-side-encryption'] = + input.serverSideEncryption!.value; + } + if (input.storageClass != null) { + b.headers['x-amz-storage-class'] = input.storageClass!.value; + } + if (input.websiteRedirectLocation != null) { + if (input.websiteRedirectLocation!.isNotEmpty) { + b.headers['x-amz-website-redirect-location'] = + input.websiteRedirectLocation!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.ssekmsKeyId != null) { + if (input.ssekmsKeyId!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-aws-kms-key-id'] = + input.ssekmsKeyId!; + } + } + if (input.ssekmsEncryptionContext != null) { + if (input.ssekmsEncryptionContext!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-context'] = + input.ssekmsEncryptionContext!; + } + } + if (input.bucketKeyEnabled != null) { + b.headers['x-amz-server-side-encryption-bucket-key-enabled'] = + input.bucketKeyEnabled!.toString(); + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.tagging != null) { + if (input.tagging!.isNotEmpty) { + b.headers['x-amz-tagging'] = input.tagging!; + } + } + if (input.objectLockMode != null) { + b.headers['x-amz-object-lock-mode'] = input.objectLockMode!.value; + } + if (input.objectLockRetainUntilDate != null) { + b.headers['x-amz-object-lock-retain-until-date'] = + _i1.Timestamp( + input.objectLockRetainUntilDate!, + ).format(_i1.TimestampFormat.dateTime).toString(); + } + if (input.objectLockLegalHoldStatus != null) { + b.headers['x-amz-object-lock-legal-hold'] = + input.objectLockLegalHoldStatus!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.checksumAlgorithm != null) { + b.headers['x-amz-checksum-algorithm'] = input.checksumAlgorithm!.value; + } + if (input.metadata != null) { + for (var entry in input.metadata!.toMap().entries) { + if (entry.value.isNotEmpty) { + b.headers['x-amz-meta-${entry.key}'] = entry.value; } - }); + } + } + }); @override int successCode([CreateMultipartUploadOutput? output]) => 200; @@ -390,11 +399,7 @@ class CreateMultipartUploadOperation extends _i1.HttpOperation< CreateMultipartUploadOutput buildOutput( CreateMultipartUploadOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - CreateMultipartUploadOutput.fromResponse( - payload, - response, - ); + ) => CreateMultipartUploadOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -433,11 +438,7 @@ class CreateMultipartUploadOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_object_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_object_operation.dart index 4f55036361..ccd860bc1c 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_object_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_object_operation.dart @@ -54,11 +54,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// The following action is related to `DeleteObject`: /// /// * [PutObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) -class DeleteObjectOperation extends _i1.HttpOperation< - DeleteObjectRequestPayload, - DeleteObjectRequest, - DeleteObjectOutputPayload, - DeleteObjectOutput> { +class DeleteObjectOperation + extends + _i1.HttpOperation< + DeleteObjectRequestPayload, + DeleteObjectRequest, + DeleteObjectOutputPayload, + DeleteObjectOutput + > { /// Removes an object from a bucket. The behavior depends on the bucket's versioning state: /// /// * If versioning is enabled, the operation removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object. If there isn't a null version, Amazon S3 does not remove any objects but will still respond that the command was successful. @@ -107,27 +110,35 @@ class DeleteObjectOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + DeleteObjectRequestPayload, + DeleteObjectRequest, + DeleteObjectOutputPayload, + DeleteObjectOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -138,7 +149,7 @@ class DeleteObjectOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -159,38 +170,36 @@ class DeleteObjectOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(DeleteObjectRequest input) => - _i1.HttpRequest((b) { - b.method = 'DELETE'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest(DeleteObjectRequest input) => _i1.HttpRequest(( + b, + ) { + b.method = 'DELETE'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=DeleteObject' : r'/{Key+}?x-id=DeleteObject'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.mfa != null) { - if (input.mfa!.isNotEmpty) { - b.headers['x-amz-mfa'] = input.mfa!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.bypassGovernanceRetention != null) { - b.headers['x-amz-bypass-governance-retention'] = - input.bypassGovernanceRetention!.toString(); - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.versionId != null) { - b.queryParameters.add( - 'versionId', - input.versionId!, - ); - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.mfa != null) { + if (input.mfa!.isNotEmpty) { + b.headers['x-amz-mfa'] = input.mfa!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.bypassGovernanceRetention != null) { + b.headers['x-amz-bypass-governance-retention'] = + input.bypassGovernanceRetention!.toString(); + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.versionId != null) { + b.queryParameters.add('versionId', input.versionId!); + } + }); @override int successCode([DeleteObjectOutput? output]) => 204; @@ -199,11 +208,7 @@ class DeleteObjectOperation extends _i1.HttpOperation< DeleteObjectOutput buildOutput( DeleteObjectOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - DeleteObjectOutput.fromResponse( - payload, - response, - ); + ) => DeleteObjectOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -242,11 +247,7 @@ class DeleteObjectOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_objects_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_objects_operation.dart index c63acc5567..5aaab8d203 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_objects_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/delete_objects_operation.dart @@ -63,8 +63,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) /// /// * [AbortMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html) -class DeleteObjectsOperation extends _i1.HttpOperation { +class DeleteObjectsOperation + extends + _i1.HttpOperation< + Delete, + DeleteObjectsRequest, + DeleteObjectsOutputPayload, + DeleteObjectsOutput + > { /// This operation enables you to delete multiple objects from a bucket using a single HTTP request. If you know the object keys that you want to delete, then this operation provides a suitable alternative to sending individual delete requests, reducing per-request overhead. /// /// The request can contain a list of up to 1000 keys that you want to delete. In the XML, you provide the object key names, and optionally, version IDs if you want to delete a specific version of the object from a versioning-enabled bucket. For each key, Amazon S3 performs a delete operation and returns the result of that delete, success or failure, in the response. Note that if the object specified in the request is not found, Amazon S3 returns the result as deleted. @@ -121,28 +127,36 @@ class DeleteObjectsOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + Delete, + DeleteObjectsRequest, + DeleteObjectsOutputPayload, + DeleteObjectsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -153,7 +167,7 @@ class DeleteObjectsOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -174,38 +188,38 @@ class DeleteObjectsOperation extends _i1.HttpOperation _responseInterceptors; @override - _i1.HttpRequest buildRequest(DeleteObjectsRequest input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest(DeleteObjectsRequest input) => _i1.HttpRequest(( + b, + ) { + b.method = 'POST'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}?delete&x-id=DeleteObjects' : r'/?delete&x-id=DeleteObjects'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.mfa != null) { - if (input.mfa!.isNotEmpty) { - b.headers['x-amz-mfa'] = input.mfa!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.bypassGovernanceRetention != null) { - b.headers['x-amz-bypass-governance-retention'] = - input.bypassGovernanceRetention!.toString(); - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.checksumAlgorithm != null) { - b.headers['x-amz-sdk-checksum-algorithm'] = - input.checksumAlgorithm!.value; - } - b.requestInterceptors - .add(_i2.WithChecksum(input.checksumAlgorithm?.value)); - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.mfa != null) { + if (input.mfa!.isNotEmpty) { + b.headers['x-amz-mfa'] = input.mfa!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.bypassGovernanceRetention != null) { + b.headers['x-amz-bypass-governance-retention'] = + input.bypassGovernanceRetention!.toString(); + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.checksumAlgorithm != null) { + b.headers['x-amz-sdk-checksum-algorithm'] = + input.checksumAlgorithm!.value; + } + b.requestInterceptors.add(_i2.WithChecksum(input.checksumAlgorithm?.value)); + }); @override int successCode([DeleteObjectsOutput? output]) => 200; @@ -214,11 +228,7 @@ class DeleteObjectsOperation extends _i1.HttpOperation - DeleteObjectsOutput.fromResponse( - payload, - response, - ); + ) => DeleteObjectsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -257,11 +267,7 @@ class DeleteObjectsOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/get_object_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/get_object_operation.dart index 0b7b86f09a..d53f1a7bb6 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/get_object_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/get_object_operation.dart @@ -85,8 +85,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// * [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html) /// /// * [GetObjectAcl](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html) -class GetObjectOperation extends _i1.HttpOperation>, GetObjectOutput> { +class GetObjectOperation + extends + _i1.HttpOperation< + GetObjectRequestPayload, + GetObjectRequest, + _i2.Stream>, + GetObjectOutput + > { /// Retrieves an object from Amazon S3. /// /// In the `GetObject` request, specify the full key name for the object. @@ -164,27 +170,35 @@ class GetObjectOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol>, GetObjectOutput>> protocols = [ + _i1.HttpProtocol< + GetObjectRequestPayload, + GetObjectRequest, + _i2.Stream>, + GetObjectOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i3.WithSigV4( region: _region, service: _i5.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i4.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -192,12 +206,11 @@ class GetObjectOperation extends _i1.HttpOperation[ - const _i3.CheckPartialResponse() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i3.CheckPartialResponse()] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -219,118 +232,113 @@ class GetObjectOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle + b.method = 'GET'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=GetObject' : r'/{Key+}?x-id=GetObject'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.ifMatch != null) { - if (input.ifMatch!.isNotEmpty) { - b.headers['If-Match'] = input.ifMatch!; - } - } - if (input.ifModifiedSince != null) { - b.headers['If-Modified-Since'] = _i1.Timestamp(input.ifModifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.ifNoneMatch != null) { - if (input.ifNoneMatch!.isNotEmpty) { - b.headers['If-None-Match'] = input.ifNoneMatch!; - } - } - if (input.ifUnmodifiedSince != null) { - b.headers['If-Unmodified-Since'] = - _i1.Timestamp(input.ifUnmodifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.range != null) { - if (input.range!.isNotEmpty) { - b.headers['Range'] = input.range!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.checksumMode != null) { - b.headers['x-amz-checksum-mode'] = input.checksumMode!.value; - } - if (input.responseCacheControl != null) { - b.queryParameters.add( - 'response-cache-control', - input.responseCacheControl!, - ); - } - if (input.responseContentDisposition != null) { - b.queryParameters.add( - 'response-content-disposition', - input.responseContentDisposition!, - ); - } - if (input.responseContentEncoding != null) { - b.queryParameters.add( - 'response-content-encoding', - input.responseContentEncoding!, - ); - } - if (input.responseContentLanguage != null) { - b.queryParameters.add( - 'response-content-language', - input.responseContentLanguage!, - ); - } - if (input.responseContentType != null) { - b.queryParameters.add( - 'response-content-type', - input.responseContentType!, - ); - } - if (input.responseExpires != null) { - b.queryParameters.add( - 'response-expires', - _i1.Timestamp(input.responseExpires!) - .format(_i1.TimestampFormat.httpDate) - .toString(), - ); - } - if (input.versionId != null) { - b.queryParameters.add( - 'versionId', - input.versionId!, - ); - } - if (input.partNumber != null) { - b.queryParameters.add( - 'partNumber', - input.partNumber!.toString(), - ); - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.ifMatch != null) { + if (input.ifMatch!.isNotEmpty) { + b.headers['If-Match'] = input.ifMatch!; + } + } + if (input.ifModifiedSince != null) { + b.headers['If-Modified-Since'] = + _i1.Timestamp( + input.ifModifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.ifNoneMatch != null) { + if (input.ifNoneMatch!.isNotEmpty) { + b.headers['If-None-Match'] = input.ifNoneMatch!; + } + } + if (input.ifUnmodifiedSince != null) { + b.headers['If-Unmodified-Since'] = + _i1.Timestamp( + input.ifUnmodifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.range != null) { + if (input.range!.isNotEmpty) { + b.headers['Range'] = input.range!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.checksumMode != null) { + b.headers['x-amz-checksum-mode'] = input.checksumMode!.value; + } + if (input.responseCacheControl != null) { + b.queryParameters.add( + 'response-cache-control', + input.responseCacheControl!, + ); + } + if (input.responseContentDisposition != null) { + b.queryParameters.add( + 'response-content-disposition', + input.responseContentDisposition!, + ); + } + if (input.responseContentEncoding != null) { + b.queryParameters.add( + 'response-content-encoding', + input.responseContentEncoding!, + ); + } + if (input.responseContentLanguage != null) { + b.queryParameters.add( + 'response-content-language', + input.responseContentLanguage!, + ); + } + if (input.responseContentType != null) { + b.queryParameters.add( + 'response-content-type', + input.responseContentType!, + ); + } + if (input.responseExpires != null) { + b.queryParameters.add( + 'response-expires', + _i1.Timestamp( + input.responseExpires!, + ).format(_i1.TimestampFormat.httpDate).toString(), + ); + } + if (input.versionId != null) { + b.queryParameters.add('versionId', input.versionId!); + } + if (input.partNumber != null) { + b.queryParameters.add('partNumber', input.partNumber!.toString()); + } + }); @override int successCode([GetObjectOutput? output]) => 200; @@ -339,35 +347,25 @@ class GetObjectOperation extends _i1.HttpOperation> payload, _i5.AWSBaseHttpResponse response, - ) => - GetObjectOutput.fromResponse( - payload, - response, - ); + ) => GetObjectOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'InvalidObjectState', - ), - _i1.ErrorKind.client, - InvalidObjectState, - statusCode: 403, - builder: InvalidObjectState.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchKey', - ), - _i1.ErrorKind.client, - NoSuchKey, - statusCode: 404, - builder: NoSuchKey.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'InvalidObjectState'), + _i1.ErrorKind.client, + InvalidObjectState, + statusCode: 403, + builder: InvalidObjectState.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchKey'), + _i1.ErrorKind.client, + NoSuchKey, + statusCode: 404, + builder: NoSuchKey.fromResponse, + ), + ]; @override String get runtimeTypeName => 'GetObject'; @@ -403,11 +401,7 @@ class GetObjectOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/head_object_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/head_object_operation.dart index 2bb0b611f2..6657f5ee20 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/head_object_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/head_object_operation.dart @@ -74,8 +74,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) /// /// * [GetObjectAttributes](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html) -class HeadObjectOperation extends _i1.HttpOperation { +class HeadObjectOperation + extends + _i1.HttpOperation< + HeadObjectRequestPayload, + HeadObjectRequest, + HeadObjectOutputPayload, + HeadObjectOutput + > { /// The `HEAD` operation retrieves metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata. /// /// A `HEAD` request has the same options as a `GET` operation on an object. The response is identical to the `GET` response except that there is no response body. Because of this, if the `HEAD` request generates an error, it returns a generic code, such as `400 Bad Request`, `403 Forbidden`, `404 Not Found`, `405 Method Not Allowed`, `412 Precondition Failed`, or `304 Not Modified`. It's not possible to retrieve the exact exception of these error codes. @@ -143,27 +149,35 @@ class HeadObjectOperation extends _i1.HttpOperation requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + HeadObjectRequestPayload, + HeadObjectRequest, + HeadObjectOutputPayload, + HeadObjectOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -174,7 +188,7 @@ class HeadObjectOperation extends _i1.HttpOperation[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -196,79 +210,72 @@ class HeadObjectOperation extends _i1.HttpOperation _i1.HttpRequest((b) { - b.method = 'HEAD'; - b.path = - _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}' : r'/{Key+}'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.ifMatch != null) { - if (input.ifMatch!.isNotEmpty) { - b.headers['If-Match'] = input.ifMatch!; - } - } - if (input.ifModifiedSince != null) { - b.headers['If-Modified-Since'] = _i1.Timestamp(input.ifModifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.ifNoneMatch != null) { - if (input.ifNoneMatch!.isNotEmpty) { - b.headers['If-None-Match'] = input.ifNoneMatch!; - } - } - if (input.ifUnmodifiedSince != null) { - b.headers['If-Unmodified-Since'] = - _i1.Timestamp(input.ifUnmodifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.range != null) { - if (input.range!.isNotEmpty) { - b.headers['Range'] = input.range!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.checksumMode != null) { - b.headers['x-amz-checksum-mode'] = input.checksumMode!.value; - } - if (input.versionId != null) { - b.queryParameters.add( - 'versionId', - input.versionId!, - ); - } - if (input.partNumber != null) { - b.queryParameters.add( - 'partNumber', - input.partNumber!.toString(), - ); - } - }); + b.method = 'HEAD'; + b.path = _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}' : r'/{Key+}'; + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.ifMatch != null) { + if (input.ifMatch!.isNotEmpty) { + b.headers['If-Match'] = input.ifMatch!; + } + } + if (input.ifModifiedSince != null) { + b.headers['If-Modified-Since'] = + _i1.Timestamp( + input.ifModifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.ifNoneMatch != null) { + if (input.ifNoneMatch!.isNotEmpty) { + b.headers['If-None-Match'] = input.ifNoneMatch!; + } + } + if (input.ifUnmodifiedSince != null) { + b.headers['If-Unmodified-Since'] = + _i1.Timestamp( + input.ifUnmodifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.range != null) { + if (input.range!.isNotEmpty) { + b.headers['Range'] = input.range!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.checksumMode != null) { + b.headers['x-amz-checksum-mode'] = input.checksumMode!.value; + } + if (input.versionId != null) { + b.queryParameters.add('versionId', input.versionId!); + } + if (input.partNumber != null) { + b.queryParameters.add('partNumber', input.partNumber!.toString()); + } + }); @override int successCode([HeadObjectOutput? output]) => 200; @@ -277,24 +284,17 @@ class HeadObjectOperation extends _i1.HttpOperation - HeadObjectOutput.fromResponse( - payload, - response, - ); + ) => HeadObjectOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NotFound', - ), - _i1.ErrorKind.client, - NotFound, - builder: NotFound.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NotFound'), + _i1.ErrorKind.client, + NotFound, + builder: NotFound.fromResponse, + ), + ]; @override String get runtimeTypeName => 'HeadObject'; @@ -330,11 +330,7 @@ class HeadObjectOperation extends _i1.HttpOperation super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_multipart_uploads_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_multipart_uploads_operation.dart index 870ac6f9e4..ff1d570883 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_multipart_uploads_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_multipart_uploads_operation.dart @@ -59,11 +59,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) /// /// * [AbortMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html) -class ListMultipartUploadsOperation extends _i1.HttpOperation< - ListMultipartUploadsRequestPayload, - ListMultipartUploadsRequest, - ListMultipartUploadsOutputPayload, - ListMultipartUploadsOutput> { +class ListMultipartUploadsOperation + extends + _i1.HttpOperation< + ListMultipartUploadsRequestPayload, + ListMultipartUploadsRequest, + ListMultipartUploadsOutputPayload, + ListMultipartUploadsOutput + > { /// This operation lists in-progress multipart uploads in a bucket. An in-progress multipart upload is a multipart upload that has been initiated by the `CreateMultipartUpload` request, but has not yet been completed or aborted. /// /// **Directory buckets** \- If multipart uploads in a directory bucket are in progress, you can't delete the bucket until all the in-progress multipart uploads are aborted or completed. @@ -117,30 +120,35 @@ class ListMultipartUploadsOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - ListMultipartUploadsRequestPayload, - ListMultipartUploadsRequest, - ListMultipartUploadsOutputPayload, - ListMultipartUploadsOutput>> protocols = [ + _i1.HttpProtocol< + ListMultipartUploadsRequestPayload, + ListMultipartUploadsRequest, + ListMultipartUploadsOutputPayload, + ListMultipartUploadsOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -151,7 +159,7 @@ class ListMultipartUploadsOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -172,58 +180,39 @@ class ListMultipartUploadsOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(ListMultipartUploadsRequest input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = - _s3ClientConfig.usePathStyle ? r'/{Bucket}?uploads' : r'/?uploads'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.delimiter != null) { - b.queryParameters.add( - 'delimiter', - input.delimiter!, - ); - } - if (input.encodingType != null) { - b.queryParameters.add( - 'encoding-type', - input.encodingType!.value, - ); - } - if (input.keyMarker != null) { - b.queryParameters.add( - 'key-marker', - input.keyMarker!, - ); - } - if (input.maxUploads != null) { - b.queryParameters.add( - 'max-uploads', - input.maxUploads!.toString(), - ); - } - if (input.prefix != null) { - b.queryParameters.add( - 'prefix', - input.prefix!, - ); - } - if (input.uploadIdMarker != null) { - b.queryParameters.add( - 'upload-id-marker', - input.uploadIdMarker!, - ); - } - }); + _i1.HttpRequest buildRequest( + ListMultipartUploadsRequest input, + ) => _i1.HttpRequest((b) { + b.method = 'GET'; + b.path = _s3ClientConfig.usePathStyle ? r'/{Bucket}?uploads' : r'/?uploads'; + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.delimiter != null) { + b.queryParameters.add('delimiter', input.delimiter!); + } + if (input.encodingType != null) { + b.queryParameters.add('encoding-type', input.encodingType!.value); + } + if (input.keyMarker != null) { + b.queryParameters.add('key-marker', input.keyMarker!); + } + if (input.maxUploads != null) { + b.queryParameters.add('max-uploads', input.maxUploads!.toString()); + } + if (input.prefix != null) { + b.queryParameters.add('prefix', input.prefix!); + } + if (input.uploadIdMarker != null) { + b.queryParameters.add('upload-id-marker', input.uploadIdMarker!); + } + }); @override int successCode([ListMultipartUploadsOutput? output]) => 200; @@ -232,11 +221,7 @@ class ListMultipartUploadsOperation extends _i1.HttpOperation< ListMultipartUploadsOutput buildOutput( ListMultipartUploadsOutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - ListMultipartUploadsOutput.fromResponse( - payload, - response, - ); + ) => ListMultipartUploadsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -275,11 +260,7 @@ class ListMultipartUploadsOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart index c94fdb66a4..ac7a32fe82 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_objects_v2_operation.dart @@ -46,14 +46,17 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [PutObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) /// /// * [CreateBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) -class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< - ListObjectsV2RequestPayload, - ListObjectsV2Request, - ListObjectsV2OutputPayload, - ListObjectsV2Output, - String, - int, - ListObjectsV2Output> { +class ListObjectsV2Operation + extends + _i1.PaginatedHttpOperation< + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2OutputPayload, + ListObjectsV2Output, + String, + int, + ListObjectsV2Output + > { /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. A `200 OK` response can contain valid or invalid XML. Make sure to design your application to parse the contents of the response and handle it appropriately. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). /// /// **Directory buckets** \- For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format `https://_bucket_name_.s3express-_az_id_._region_.amazonaws.com/_key-name_` . Path-style requests are not supported. For more information, see [Regional and Zonal endpoints](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html) in the _Amazon S3 User Guide_. @@ -93,27 +96,35 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ListObjectsV2RequestPayload, + ListObjectsV2Request, + ListObjectsV2OutputPayload, + ListObjectsV2Output + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -124,7 +135,7 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -145,74 +156,54 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(ListObjectsV2Request input) => - _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest(ListObjectsV2Request input) => _i1.HttpRequest(( + b, + ) { + b.method = 'GET'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}?list-type=2' : r'/?list-type=2'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.optionalObjectAttributes != null) { - if (input.optionalObjectAttributes!.isNotEmpty) { - b.headers['x-amz-optional-object-attributes'] = input - .optionalObjectAttributes! - .map((el) => el.value) - .map((el) => _i1.sanitizeHeader(el)) - .join(', '); - } - } - if (input.delimiter != null) { - b.queryParameters.add( - 'delimiter', - input.delimiter!, - ); - } - if (input.encodingType != null) { - b.queryParameters.add( - 'encoding-type', - input.encodingType!.value, - ); - } - if (input.maxKeys != null) { - b.queryParameters.add( - 'max-keys', - input.maxKeys!.toString(), - ); - } - if (input.prefix != null) { - b.queryParameters.add( - 'prefix', - input.prefix!, - ); - } - if (input.continuationToken != null) { - b.queryParameters.add( - 'continuation-token', - input.continuationToken!, - ); - } - if (input.fetchOwner != null) { - b.queryParameters.add( - 'fetch-owner', - input.fetchOwner!.toString(), - ); - } - if (input.startAfter != null) { - b.queryParameters.add( - 'start-after', - input.startAfter!, - ); - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.optionalObjectAttributes != null) { + if (input.optionalObjectAttributes!.isNotEmpty) { + b.headers['x-amz-optional-object-attributes'] = input + .optionalObjectAttributes! + .map((el) => el.value) + .map((el) => _i1.sanitizeHeader(el)) + .join(', '); + } + } + if (input.delimiter != null) { + b.queryParameters.add('delimiter', input.delimiter!); + } + if (input.encodingType != null) { + b.queryParameters.add('encoding-type', input.encodingType!.value); + } + if (input.maxKeys != null) { + b.queryParameters.add('max-keys', input.maxKeys!.toString()); + } + if (input.prefix != null) { + b.queryParameters.add('prefix', input.prefix!); + } + if (input.continuationToken != null) { + b.queryParameters.add('continuation-token', input.continuationToken!); + } + if (input.fetchOwner != null) { + b.queryParameters.add('fetch-owner', input.fetchOwner!.toString()); + } + if (input.startAfter != null) { + b.queryParameters.add('start-after', input.startAfter!); + } + }); @override int successCode([ListObjectsV2Output? output]) => 200; @@ -221,25 +212,18 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< ListObjectsV2Output buildOutput( ListObjectsV2OutputPayload payload, _i4.AWSBaseHttpResponse response, - ) => - ListObjectsV2Output.fromResponse( - payload, - response, - ); + ) => ListObjectsV2Output.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.s3', - shape: 'NoSuchBucket', - ), - _i1.ErrorKind.client, - NoSuchBucket, - statusCode: 404, - builder: NoSuchBucket.fromResponse, - ) - ]; + _i1.SmithyError( + _i1.ShapeId(namespace: 'com.amazonaws.s3', shape: 'NoSuchBucket'), + _i1.ErrorKind.client, + NoSuchBucket, + statusCode: 404, + builder: NoSuchBucket.fromResponse, + ), + ]; @override String get runtimeTypeName => 'ListObjectsV2'; @@ -275,11 +259,7 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, @@ -298,11 +278,10 @@ class ListObjectsV2Operation extends _i1.PaginatedHttpOperation< ListObjectsV2Request input, String token, int? pageSize, - ) => - input.rebuild((b) { - b.continuationToken = token; - if (pageSize != null) { - b.maxKeys = pageSize; - } - }); + ) => input.rebuild((b) { + b.continuationToken = token; + if (pageSize != null) { + b.maxKeys = pageSize; + } + }); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_parts_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_parts_operation.dart index ea7ee5f29b..67b9d5a7b8 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_parts_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/list_parts_operation.dart @@ -52,14 +52,17 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// * [GetObjectAttributes](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html) /// /// * [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) -class ListPartsOperation extends _i1.PaginatedHttpOperation< - ListPartsRequestPayload, - ListPartsRequest, - ListPartsOutputPayload, - ListPartsOutput, - String, - int, - _i2.BuiltList> { +class ListPartsOperation + extends + _i1.PaginatedHttpOperation< + ListPartsRequestPayload, + ListPartsRequest, + ListPartsOutputPayload, + ListPartsOutput, + String, + int, + _i2.BuiltList + > { /// Lists the parts that have been uploaded for a specific multipart upload. /// /// To use this operation, you must provide the `upload ID` in the request. You obtain this uploadID by sending the initiate multipart upload request through [CreateMultipartUpload](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html). @@ -104,27 +107,35 @@ class ListPartsOperation extends _i1.PaginatedHttpOperation< const _i4.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + ListPartsRequestPayload, + ListPartsRequest, + ListPartsOutputPayload, + ListPartsOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i3.WithSigV4( region: _region, service: _i5.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i4.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -135,7 +146,7 @@ class ListPartsOperation extends _i1.PaginatedHttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -157,55 +168,46 @@ class ListPartsOperation extends _i1.PaginatedHttpOperation< @override _i1.HttpRequest buildRequest(ListPartsRequest input) => _i1.HttpRequest((b) { - b.method = 'GET'; - b.path = _s3ClientConfig.usePathStyle + b.method = 'GET'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=ListParts' : r'/{Key+}?x-id=ListParts'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.maxParts != null) { - b.queryParameters.add( - 'max-parts', - input.maxParts!.toString(), - ); - } - if (input.partNumberMarker != null) { - b.queryParameters.add( - 'part-number-marker', - input.partNumberMarker!, - ); - } - b.queryParameters.add( - 'uploadId', - input.uploadId, - ); - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.maxParts != null) { + b.queryParameters.add('max-parts', input.maxParts!.toString()); + } + if (input.partNumberMarker != null) { + b.queryParameters.add('part-number-marker', input.partNumberMarker!); + } + b.queryParameters.add('uploadId', input.uploadId); + }); @override int successCode([ListPartsOutput? output]) => 200; @@ -214,11 +216,7 @@ class ListPartsOperation extends _i1.PaginatedHttpOperation< ListPartsOutput buildOutput( ListPartsOutputPayload payload, _i5.AWSBaseHttpResponse response, - ) => - ListPartsOutput.fromResponse( - payload, - response, - ); + ) => ListPartsOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -257,11 +255,7 @@ class ListPartsOperation extends _i1.PaginatedHttpOperation< _i1.ShapeId? useProtocol, }) { return _i6.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, @@ -281,11 +275,10 @@ class ListPartsOperation extends _i1.PaginatedHttpOperation< ListPartsRequest input, String token, int? pageSize, - ) => - input.rebuild((b) { - b.partNumberMarker = token; - if (pageSize != null) { - b.maxParts = pageSize; - } - }); + ) => input.rebuild((b) { + b.partNumberMarker = token; + if (pageSize != null) { + b.maxParts = pageSize; + } + }); } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/put_object_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/put_object_operation.dart index 24cbaf921d..18bb4337ac 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/put_object_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/put_object_operation.dart @@ -63,8 +63,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// * [CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html) /// /// * [DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html) -class PutObjectOperation extends _i1.HttpOperation<_i2.Stream>, - PutObjectRequest, PutObjectOutputPayload, PutObjectOutput> { +class PutObjectOperation + extends + _i1.HttpOperation< + _i2.Stream>, + PutObjectRequest, + PutObjectOutputPayload, + PutObjectOutput + > { /// Adds an object to a bucket. /// /// * Amazon S3 never adds partial objects; if you receive a success response, Amazon S3 added the entire object to the bucket. You cannot use `PutObject` to only update a single piece of metadata for an existing object. You must put the entire object with updated metadata if you want to update some values. @@ -122,27 +128,35 @@ class PutObjectOperation extends _i1.HttpOperation<_i2.Stream>, const _i4.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, PutObjectRequest, - PutObjectOutputPayload, PutObjectOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + PutObjectRequest, + PutObjectOutputPayload, + PutObjectOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i3.WithSigV4( region: _region, service: _i5.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i4.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -153,7 +167,7 @@ class PutObjectOperation extends _i1.HttpOperation<_i2.Stream>, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -175,182 +189,184 @@ class PutObjectOperation extends _i1.HttpOperation<_i2.Stream>, @override _i1.HttpRequest buildRequest(PutObjectRequest input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = _s3ClientConfig.usePathStyle + b.method = 'PUT'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=PutObject' : r'/{Key+}?x-id=PutObject'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.acl != null) { - b.headers['x-amz-acl'] = input.acl!.value; - } - if (input.cacheControl != null) { - if (input.cacheControl!.isNotEmpty) { - b.headers['Cache-Control'] = input.cacheControl!; - } - } - if (input.contentDisposition != null) { - if (input.contentDisposition!.isNotEmpty) { - b.headers['Content-Disposition'] = input.contentDisposition!; - } - } - if (input.contentEncoding != null) { - if (input.contentEncoding!.isNotEmpty) { - b.headers['Content-Encoding'] = input.contentEncoding!; - } - } - if (input.contentLanguage != null) { - if (input.contentLanguage!.isNotEmpty) { - b.headers['Content-Language'] = input.contentLanguage!; - } - } - if (input.contentLength != null) { - b.headers['Content-Length'] = input.contentLength!.toString(); - } - if (input.contentMd5 != null) { - if (input.contentMd5!.isNotEmpty) { - b.headers['Content-MD5'] = input.contentMd5!; - } - } - if (input.contentType != null) { - if (input.contentType!.isNotEmpty) { - b.headers['Content-Type'] = input.contentType!; - } - } - if (input.checksumAlgorithm != null) { - b.headers['x-amz-sdk-checksum-algorithm'] = - input.checksumAlgorithm!.value; - } - if (input.checksumCrc32 != null) { - if (input.checksumCrc32!.isNotEmpty) { - b.headers['x-amz-checksum-crc32'] = input.checksumCrc32!; - } - } - if (input.checksumCrc32C != null) { - if (input.checksumCrc32C!.isNotEmpty) { - b.headers['x-amz-checksum-crc32c'] = input.checksumCrc32C!; - } - } - if (input.checksumSha1 != null) { - if (input.checksumSha1!.isNotEmpty) { - b.headers['x-amz-checksum-sha1'] = input.checksumSha1!; - } - } - if (input.checksumSha256 != null) { - if (input.checksumSha256!.isNotEmpty) { - b.headers['x-amz-checksum-sha256'] = input.checksumSha256!; - } - } - if (input.expires != null) { - b.headers['Expires'] = _i1.Timestamp(input.expires!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.grantFullControl != null) { - if (input.grantFullControl!.isNotEmpty) { - b.headers['x-amz-grant-full-control'] = input.grantFullControl!; - } - } - if (input.grantRead != null) { - if (input.grantRead!.isNotEmpty) { - b.headers['x-amz-grant-read'] = input.grantRead!; - } - } - if (input.grantReadAcp != null) { - if (input.grantReadAcp!.isNotEmpty) { - b.headers['x-amz-grant-read-acp'] = input.grantReadAcp!; - } - } - if (input.grantWriteAcp != null) { - if (input.grantWriteAcp!.isNotEmpty) { - b.headers['x-amz-grant-write-acp'] = input.grantWriteAcp!; - } - } - if (input.serverSideEncryption != null) { - b.headers['x-amz-server-side-encryption'] = - input.serverSideEncryption!.value; - } - if (input.storageClass != null) { - b.headers['x-amz-storage-class'] = input.storageClass!.value; - } - if (input.websiteRedirectLocation != null) { - if (input.websiteRedirectLocation!.isNotEmpty) { - b.headers['x-amz-website-redirect-location'] = - input.websiteRedirectLocation!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.ssekmsKeyId != null) { - if (input.ssekmsKeyId!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-aws-kms-key-id'] = - input.ssekmsKeyId!; - } - } - if (input.ssekmsEncryptionContext != null) { - if (input.ssekmsEncryptionContext!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-context'] = - input.ssekmsEncryptionContext!; - } - } - if (input.bucketKeyEnabled != null) { - b.headers['x-amz-server-side-encryption-bucket-key-enabled'] = - input.bucketKeyEnabled!.toString(); - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.tagging != null) { - if (input.tagging!.isNotEmpty) { - b.headers['x-amz-tagging'] = input.tagging!; - } - } - if (input.objectLockMode != null) { - b.headers['x-amz-object-lock-mode'] = input.objectLockMode!.value; - } - if (input.objectLockRetainUntilDate != null) { - b.headers['x-amz-object-lock-retain-until-date'] = - _i1.Timestamp(input.objectLockRetainUntilDate!) - .format(_i1.TimestampFormat.dateTime) - .toString(); - } - if (input.objectLockLegalHoldStatus != null) { - b.headers['x-amz-object-lock-legal-hold'] = - input.objectLockLegalHoldStatus!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.metadata != null) { - for (var entry in input.metadata!.toMap().entries) { - if (entry.value.isNotEmpty) { - b.headers['x-amz-meta-${entry.key}'] = entry.value; - } - } - } - if (input.checksumAlgorithm != null) { - b.requestInterceptors - .add(_i3.WithChecksum(input.checksumAlgorithm!.value)); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.acl != null) { + b.headers['x-amz-acl'] = input.acl!.value; + } + if (input.cacheControl != null) { + if (input.cacheControl!.isNotEmpty) { + b.headers['Cache-Control'] = input.cacheControl!; + } + } + if (input.contentDisposition != null) { + if (input.contentDisposition!.isNotEmpty) { + b.headers['Content-Disposition'] = input.contentDisposition!; + } + } + if (input.contentEncoding != null) { + if (input.contentEncoding!.isNotEmpty) { + b.headers['Content-Encoding'] = input.contentEncoding!; + } + } + if (input.contentLanguage != null) { + if (input.contentLanguage!.isNotEmpty) { + b.headers['Content-Language'] = input.contentLanguage!; + } + } + if (input.contentLength != null) { + b.headers['Content-Length'] = input.contentLength!.toString(); + } + if (input.contentMd5 != null) { + if (input.contentMd5!.isNotEmpty) { + b.headers['Content-MD5'] = input.contentMd5!; + } + } + if (input.contentType != null) { + if (input.contentType!.isNotEmpty) { + b.headers['Content-Type'] = input.contentType!; + } + } + if (input.checksumAlgorithm != null) { + b.headers['x-amz-sdk-checksum-algorithm'] = + input.checksumAlgorithm!.value; + } + if (input.checksumCrc32 != null) { + if (input.checksumCrc32!.isNotEmpty) { + b.headers['x-amz-checksum-crc32'] = input.checksumCrc32!; + } + } + if (input.checksumCrc32C != null) { + if (input.checksumCrc32C!.isNotEmpty) { + b.headers['x-amz-checksum-crc32c'] = input.checksumCrc32C!; + } + } + if (input.checksumSha1 != null) { + if (input.checksumSha1!.isNotEmpty) { + b.headers['x-amz-checksum-sha1'] = input.checksumSha1!; + } + } + if (input.checksumSha256 != null) { + if (input.checksumSha256!.isNotEmpty) { + b.headers['x-amz-checksum-sha256'] = input.checksumSha256!; + } + } + if (input.expires != null) { + b.headers['Expires'] = + _i1.Timestamp( + input.expires!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.grantFullControl != null) { + if (input.grantFullControl!.isNotEmpty) { + b.headers['x-amz-grant-full-control'] = input.grantFullControl!; + } + } + if (input.grantRead != null) { + if (input.grantRead!.isNotEmpty) { + b.headers['x-amz-grant-read'] = input.grantRead!; + } + } + if (input.grantReadAcp != null) { + if (input.grantReadAcp!.isNotEmpty) { + b.headers['x-amz-grant-read-acp'] = input.grantReadAcp!; + } + } + if (input.grantWriteAcp != null) { + if (input.grantWriteAcp!.isNotEmpty) { + b.headers['x-amz-grant-write-acp'] = input.grantWriteAcp!; + } + } + if (input.serverSideEncryption != null) { + b.headers['x-amz-server-side-encryption'] = + input.serverSideEncryption!.value; + } + if (input.storageClass != null) { + b.headers['x-amz-storage-class'] = input.storageClass!.value; + } + if (input.websiteRedirectLocation != null) { + if (input.websiteRedirectLocation!.isNotEmpty) { + b.headers['x-amz-website-redirect-location'] = + input.websiteRedirectLocation!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.ssekmsKeyId != null) { + if (input.ssekmsKeyId!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-aws-kms-key-id'] = + input.ssekmsKeyId!; + } + } + if (input.ssekmsEncryptionContext != null) { + if (input.ssekmsEncryptionContext!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-context'] = + input.ssekmsEncryptionContext!; + } + } + if (input.bucketKeyEnabled != null) { + b.headers['x-amz-server-side-encryption-bucket-key-enabled'] = + input.bucketKeyEnabled!.toString(); + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.tagging != null) { + if (input.tagging!.isNotEmpty) { + b.headers['x-amz-tagging'] = input.tagging!; + } + } + if (input.objectLockMode != null) { + b.headers['x-amz-object-lock-mode'] = input.objectLockMode!.value; + } + if (input.objectLockRetainUntilDate != null) { + b.headers['x-amz-object-lock-retain-until-date'] = + _i1.Timestamp( + input.objectLockRetainUntilDate!, + ).format(_i1.TimestampFormat.dateTime).toString(); + } + if (input.objectLockLegalHoldStatus != null) { + b.headers['x-amz-object-lock-legal-hold'] = + input.objectLockLegalHoldStatus!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.metadata != null) { + for (var entry in input.metadata!.toMap().entries) { + if (entry.value.isNotEmpty) { + b.headers['x-amz-meta-${entry.key}'] = entry.value; } - }); + } + } + if (input.checksumAlgorithm != null) { + b.requestInterceptors.add( + _i3.WithChecksum(input.checksumAlgorithm!.value), + ); + } + }); @override int successCode([PutObjectOutput? output]) => 200; @@ -359,11 +375,7 @@ class PutObjectOperation extends _i1.HttpOperation<_i2.Stream>, PutObjectOutput buildOutput( PutObjectOutputPayload payload, _i5.AWSBaseHttpResponse response, - ) => - PutObjectOutput.fromResponse( - payload, - response, - ); + ) => PutObjectOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -402,11 +414,7 @@ class PutObjectOperation extends _i1.HttpOperation<_i2.Stream>, _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/select_object_content_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/select_object_content_operation.dart index 79c0ca40f9..84ee9e0dd3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/select_object_content_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/select_object_content_operation.dart @@ -68,11 +68,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [GetBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html) /// /// * [PutBucketLifecycleConfiguration](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html) -class SelectObjectContentOperation extends _i1.HttpOperation< - SelectObjectContentRequestPayload, - SelectObjectContentRequest, - SelectObjectContentEventStream, - SelectObjectContentOutput> { +class SelectObjectContentOperation + extends + _i1.HttpOperation< + SelectObjectContentRequestPayload, + SelectObjectContentRequest, + SelectObjectContentEventStream, + SelectObjectContentOutput + > { /// This operation is not supported by directory buckets. /// /// This action filters the contents of an Amazon S3 object based on a simple structured query language (SQL) statement. In the request, along with the SQL expression, you must also specify a data serialization format (JSON, CSV, or Apache Parquet) of the object. Amazon S3 uses this format to parse object data into records, and returns only records that match the specified SQL expression. You must also specify the data serialization format for the response. @@ -134,31 +137,36 @@ class SelectObjectContentOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - SelectObjectContentRequestPayload, - SelectObjectContentRequest, - SelectObjectContentEventStream, - SelectObjectContentOutput>> protocols = [ + _i1.HttpProtocol< + SelectObjectContentRequestPayload, + SelectObjectContentRequest, + SelectObjectContentEventStream, + SelectObjectContentOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -169,7 +177,7 @@ class SelectObjectContentOperation extends _i1.HttpOperation< responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -190,38 +198,39 @@ class SelectObjectContentOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(SelectObjectContentRequest input) => - _i1.HttpRequest((b) { - b.method = 'POST'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest( + SelectObjectContentRequest input, + ) => _i1.HttpRequest((b) { + b.method = 'POST'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?select&select-type=2&x-id=SelectObjectContent' : r'/{Key+}?select&select-type=2&x-id=SelectObjectContent'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + }); @override int successCode([SelectObjectContentOutput? output]) => 200; @@ -230,11 +239,7 @@ class SelectObjectContentOperation extends _i1.HttpOperation< SelectObjectContentOutput buildOutput( SelectObjectContentEventStream? payload, _i4.AWSBaseHttpResponse response, - ) => - SelectObjectContentOutput.fromResponse( - payload, - response, - ); + ) => SelectObjectContentOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -273,11 +278,7 @@ class SelectObjectContentOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_copy_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_copy_operation.dart index ff3bf06e00..5ad93a4484 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_copy_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_copy_operation.dart @@ -97,11 +97,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i2; /// * [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) /// /// * [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) -class UploadPartCopyOperation extends _i1.HttpOperation< - UploadPartCopyRequestPayload, - UploadPartCopyRequest, - CopyPartResult, - UploadPartCopyOutput> { +class UploadPartCopyOperation + extends + _i1.HttpOperation< + UploadPartCopyRequestPayload, + UploadPartCopyRequest, + CopyPartResult, + UploadPartCopyOutput + > { /// Uploads a part by copying data from an existing object as data source. To specify the data source, you add the request header `x-amz-copy-source` in your request. To specify a byte range, you add the request header `x-amz-copy-source-range` in your request. /// /// For information about maximum and minimum part sizes and other multipart upload specifications, see [Multipart upload limits](https://docs.aws.amazon.com/AmazonS3/latest/userguide/qfacts.html) in the _Amazon S3 User Guide_. @@ -192,27 +195,35 @@ class UploadPartCopyOperation extends _i1.HttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol> protocols = [ + _i1.HttpProtocol< + UploadPartCopyRequestPayload, + UploadPartCopyRequest, + CopyPartResult, + UploadPartCopyOutput + > + > + protocols = [ _i2.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i2.WithSigV4( region: _region, service: _i4.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i3.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -220,12 +231,11 @@ class UploadPartCopyOperation extends _i1.HttpOperation< const _i2.WithSdkRequest(), ] + _requestInterceptors, - responseInterceptors: <_i1.HttpResponseInterceptor>[ - const _i2.CheckErrorOnSuccess() - ] + + responseInterceptors: + <_i1.HttpResponseInterceptor>[const _i2.CheckErrorOnSuccess()] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i2.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -246,108 +256,101 @@ class UploadPartCopyOperation extends _i1.HttpOperation< final List<_i1.HttpResponseInterceptor> _responseInterceptors; @override - _i1.HttpRequest buildRequest(UploadPartCopyRequest input) => - _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = _s3ClientConfig.usePathStyle + _i1.HttpRequest buildRequest(UploadPartCopyRequest input) => _i1.HttpRequest(( + b, + ) { + b.method = 'PUT'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=UploadPartCopy' : r'/{Key+}?x-id=UploadPartCopy'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.copySource.isNotEmpty) { - b.headers['x-amz-copy-source'] = input.copySource; - } - if (input.copySourceIfMatch != null) { - if (input.copySourceIfMatch!.isNotEmpty) { - b.headers['x-amz-copy-source-if-match'] = input.copySourceIfMatch!; - } - } - if (input.copySourceIfModifiedSince != null) { - b.headers['x-amz-copy-source-if-modified-since'] = - _i1.Timestamp(input.copySourceIfModifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.copySourceIfNoneMatch != null) { - if (input.copySourceIfNoneMatch!.isNotEmpty) { - b.headers['x-amz-copy-source-if-none-match'] = - input.copySourceIfNoneMatch!; - } - } - if (input.copySourceIfUnmodifiedSince != null) { - b.headers['x-amz-copy-source-if-unmodified-since'] = - _i1.Timestamp(input.copySourceIfUnmodifiedSince!) - .format(_i1.TimestampFormat.httpDate) - .toString(); - } - if (input.copySourceRange != null) { - if (input.copySourceRange!.isNotEmpty) { - b.headers['x-amz-copy-source-range'] = input.copySourceRange!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.copySourceSseCustomerAlgorithm != null) { - if (input.copySourceSseCustomerAlgorithm!.isNotEmpty) { - b.headers[ - 'x-amz-copy-source-server-side-encryption-customer-algorithm'] = - input.copySourceSseCustomerAlgorithm!; - } - } - if (input.copySourceSseCustomerKey != null) { - if (input.copySourceSseCustomerKey!.isNotEmpty) { - b.headers['x-amz-copy-source-server-side-encryption-customer-key'] = - input.copySourceSseCustomerKey!; - } - } - if (input.copySourceSseCustomerKeyMd5 != null) { - if (input.copySourceSseCustomerKeyMd5!.isNotEmpty) { - b.headers[ - 'x-amz-copy-source-server-side-encryption-customer-key-MD5'] = - input.copySourceSseCustomerKeyMd5!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.expectedSourceBucketOwner != null) { - if (input.expectedSourceBucketOwner!.isNotEmpty) { - b.headers['x-amz-source-expected-bucket-owner'] = - input.expectedSourceBucketOwner!; - } - } - if (input.partNumber != null) { - b.queryParameters.add( - 'partNumber', - input.partNumber!.toString(), - ); - } - b.queryParameters.add( - 'uploadId', - input.uploadId, - ); - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.copySource.isNotEmpty) { + b.headers['x-amz-copy-source'] = input.copySource; + } + if (input.copySourceIfMatch != null) { + if (input.copySourceIfMatch!.isNotEmpty) { + b.headers['x-amz-copy-source-if-match'] = input.copySourceIfMatch!; + } + } + if (input.copySourceIfModifiedSince != null) { + b.headers['x-amz-copy-source-if-modified-since'] = + _i1.Timestamp( + input.copySourceIfModifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.copySourceIfNoneMatch != null) { + if (input.copySourceIfNoneMatch!.isNotEmpty) { + b.headers['x-amz-copy-source-if-none-match'] = + input.copySourceIfNoneMatch!; + } + } + if (input.copySourceIfUnmodifiedSince != null) { + b.headers['x-amz-copy-source-if-unmodified-since'] = + _i1.Timestamp( + input.copySourceIfUnmodifiedSince!, + ).format(_i1.TimestampFormat.httpDate).toString(); + } + if (input.copySourceRange != null) { + if (input.copySourceRange!.isNotEmpty) { + b.headers['x-amz-copy-source-range'] = input.copySourceRange!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.copySourceSseCustomerAlgorithm != null) { + if (input.copySourceSseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-copy-source-server-side-encryption-customer-algorithm'] = + input.copySourceSseCustomerAlgorithm!; + } + } + if (input.copySourceSseCustomerKey != null) { + if (input.copySourceSseCustomerKey!.isNotEmpty) { + b.headers['x-amz-copy-source-server-side-encryption-customer-key'] = + input.copySourceSseCustomerKey!; + } + } + if (input.copySourceSseCustomerKeyMd5 != null) { + if (input.copySourceSseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-copy-source-server-side-encryption-customer-key-MD5'] = + input.copySourceSseCustomerKeyMd5!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.expectedSourceBucketOwner != null) { + if (input.expectedSourceBucketOwner!.isNotEmpty) { + b.headers['x-amz-source-expected-bucket-owner'] = + input.expectedSourceBucketOwner!; + } + } + if (input.partNumber != null) { + b.queryParameters.add('partNumber', input.partNumber!.toString()); + } + b.queryParameters.add('uploadId', input.uploadId); + }); @override int successCode([UploadPartCopyOutput? output]) => 200; @@ -356,11 +359,7 @@ class UploadPartCopyOperation extends _i1.HttpOperation< UploadPartCopyOutput buildOutput( CopyPartResult? payload, _i4.AWSBaseHttpResponse response, - ) => - UploadPartCopyOutput.fromResponse( - payload, - response, - ); + ) => UploadPartCopyOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -399,11 +398,7 @@ class UploadPartCopyOperation extends _i1.HttpOperation< _i1.ShapeId? useProtocol, }) { return _i5.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i4.AWSHeaders.sdkInvocationId: _i4.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_operation.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_operation.dart index aef883fd10..68f57009fe 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_operation.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/operation/upload_part_operation.dart @@ -88,8 +88,14 @@ import 'package:smithy_aws/smithy_aws.dart' as _i3; /// * [ListParts](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html) /// /// * [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) -class UploadPartOperation extends _i1.HttpOperation<_i2.Stream>, - UploadPartRequest, UploadPartOutputPayload, UploadPartOutput> { +class UploadPartOperation + extends + _i1.HttpOperation< + _i2.Stream>, + UploadPartRequest, + UploadPartOutputPayload, + UploadPartOutput + > { /// Uploads a part in a multipart upload. /// /// In this operation, you provide new data as a part of an object in your request. However, you have an option to specify your existing Amazon S3 object as a data source for the part you are uploading. To upload a part from an existing object, you use the [UploadPartCopy](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html) operation. @@ -172,27 +178,35 @@ class UploadPartOperation extends _i1.HttpOperation<_i2.Stream>, const _i4.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol<_i2.Stream>, UploadPartRequest, - UploadPartOutputPayload, UploadPartOutput>> protocols = [ + _i1.HttpProtocol< + _i2.Stream>, + UploadPartRequest, + UploadPartOutputPayload, + UploadPartOutput + > + > + protocols = [ _i3.RestXmlProtocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), _i3.WithSigV4( region: _region, service: _i5.AWSService.s3, credentialsProvider: _credentialsProvider, - serviceConfiguration: _s3ClientConfig.signerConfiguration ?? + serviceConfiguration: + _s3ClientConfig.signerConfiguration ?? _i4.S3ServiceConfiguration(), ), const _i1.WithUserAgent('aws-sdk-dart/0.3.1'), @@ -203,7 +217,7 @@ class UploadPartOperation extends _i1.HttpOperation<_i2.Stream>, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, noErrorWrapping: true, - ) + ), ]; late final _i3.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -225,85 +239,80 @@ class UploadPartOperation extends _i1.HttpOperation<_i2.Stream>, @override _i1.HttpRequest buildRequest(UploadPartRequest input) => _i1.HttpRequest((b) { - b.method = 'PUT'; - b.path = _s3ClientConfig.usePathStyle + b.method = 'PUT'; + b.path = + _s3ClientConfig.usePathStyle ? r'/{Bucket}/{Key+}?x-id=UploadPart' : r'/{Key+}?x-id=UploadPart'; - b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; - if (input.contentLength != null) { - b.headers['Content-Length'] = input.contentLength!.toString(); - } - if (input.contentMd5 != null) { - if (input.contentMd5!.isNotEmpty) { - b.headers['Content-MD5'] = input.contentMd5!; - } - } - if (input.checksumAlgorithm != null) { - b.headers['x-amz-sdk-checksum-algorithm'] = - input.checksumAlgorithm!.value; - } - if (input.checksumCrc32 != null) { - if (input.checksumCrc32!.isNotEmpty) { - b.headers['x-amz-checksum-crc32'] = input.checksumCrc32!; - } - } - if (input.checksumCrc32C != null) { - if (input.checksumCrc32C!.isNotEmpty) { - b.headers['x-amz-checksum-crc32c'] = input.checksumCrc32C!; - } - } - if (input.checksumSha1 != null) { - if (input.checksumSha1!.isNotEmpty) { - b.headers['x-amz-checksum-sha1'] = input.checksumSha1!; - } - } - if (input.checksumSha256 != null) { - if (input.checksumSha256!.isNotEmpty) { - b.headers['x-amz-checksum-sha256'] = input.checksumSha256!; - } - } - if (input.sseCustomerAlgorithm != null) { - if (input.sseCustomerAlgorithm!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-algorithm'] = - input.sseCustomerAlgorithm!; - } - } - if (input.sseCustomerKey != null) { - if (input.sseCustomerKey!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key'] = - input.sseCustomerKey!; - } - } - if (input.sseCustomerKeyMd5 != null) { - if (input.sseCustomerKeyMd5!.isNotEmpty) { - b.headers['x-amz-server-side-encryption-customer-key-MD5'] = - input.sseCustomerKeyMd5!; - } - } - if (input.requestPayer != null) { - b.headers['x-amz-request-payer'] = input.requestPayer!.value; - } - if (input.expectedBucketOwner != null) { - if (input.expectedBucketOwner!.isNotEmpty) { - b.headers['x-amz-expected-bucket-owner'] = - input.expectedBucketOwner!; - } - } - if (input.partNumber != null) { - b.queryParameters.add( - 'partNumber', - input.partNumber!.toString(), - ); - } - b.queryParameters.add( - 'uploadId', - input.uploadId, - ); - if (input.checksumAlgorithm != null) { - b.requestInterceptors - .add(_i3.WithChecksum(input.checksumAlgorithm!.value)); - } - }); + b.hostPrefix = _s3ClientConfig.usePathStyle ? null : '{Bucket}.'; + if (input.contentLength != null) { + b.headers['Content-Length'] = input.contentLength!.toString(); + } + if (input.contentMd5 != null) { + if (input.contentMd5!.isNotEmpty) { + b.headers['Content-MD5'] = input.contentMd5!; + } + } + if (input.checksumAlgorithm != null) { + b.headers['x-amz-sdk-checksum-algorithm'] = + input.checksumAlgorithm!.value; + } + if (input.checksumCrc32 != null) { + if (input.checksumCrc32!.isNotEmpty) { + b.headers['x-amz-checksum-crc32'] = input.checksumCrc32!; + } + } + if (input.checksumCrc32C != null) { + if (input.checksumCrc32C!.isNotEmpty) { + b.headers['x-amz-checksum-crc32c'] = input.checksumCrc32C!; + } + } + if (input.checksumSha1 != null) { + if (input.checksumSha1!.isNotEmpty) { + b.headers['x-amz-checksum-sha1'] = input.checksumSha1!; + } + } + if (input.checksumSha256 != null) { + if (input.checksumSha256!.isNotEmpty) { + b.headers['x-amz-checksum-sha256'] = input.checksumSha256!; + } + } + if (input.sseCustomerAlgorithm != null) { + if (input.sseCustomerAlgorithm!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-algorithm'] = + input.sseCustomerAlgorithm!; + } + } + if (input.sseCustomerKey != null) { + if (input.sseCustomerKey!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key'] = + input.sseCustomerKey!; + } + } + if (input.sseCustomerKeyMd5 != null) { + if (input.sseCustomerKeyMd5!.isNotEmpty) { + b.headers['x-amz-server-side-encryption-customer-key-MD5'] = + input.sseCustomerKeyMd5!; + } + } + if (input.requestPayer != null) { + b.headers['x-amz-request-payer'] = input.requestPayer!.value; + } + if (input.expectedBucketOwner != null) { + if (input.expectedBucketOwner!.isNotEmpty) { + b.headers['x-amz-expected-bucket-owner'] = input.expectedBucketOwner!; + } + } + if (input.partNumber != null) { + b.queryParameters.add('partNumber', input.partNumber!.toString()); + } + b.queryParameters.add('uploadId', input.uploadId); + if (input.checksumAlgorithm != null) { + b.requestInterceptors.add( + _i3.WithChecksum(input.checksumAlgorithm!.value), + ); + } + }); @override int successCode([UploadPartOutput? output]) => 200; @@ -312,11 +321,7 @@ class UploadPartOperation extends _i1.HttpOperation<_i2.Stream>, UploadPartOutput buildOutput( UploadPartOutputPayload payload, _i5.AWSBaseHttpResponse response, - ) => - UploadPartOutput.fromResponse( - payload, - response, - ); + ) => UploadPartOutput.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const []; @@ -355,11 +360,7 @@ class UploadPartOperation extends _i1.HttpOperation<_i2.Stream>, _i1.ShapeId? useProtocol, }) { return _i2.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart index bc68db59d0..0a5eb85543 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/sdk/src/s3/s3_client.dart @@ -64,13 +64,13 @@ class S3Client { const _i3.AWSCredentialsProvider.defaultChain(), List<_i4.HttpRequestInterceptor> requestInterceptors = const [], List<_i4.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _s3ClientConfig = s3ClientConfig, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _s3ClientConfig = s3ClientConfig, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -127,10 +127,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Completes a multipart upload by assembling previously uploaded parts. @@ -209,10 +206,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Creates a copy of an object that is already stored in Amazon S3. @@ -296,10 +290,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This action initiates a multipart upload and returns an upload ID. This upload ID is used to associate all of the parts in the specific multipart upload. You specify this upload ID in each of your subsequent upload part requests (see [UploadPart](https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)). You also include this upload ID in the final request to either complete or abort the multipart upload request. For more information about multipart uploads, see [Multipart Upload Overview](https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html) in the _Amazon S3 User Guide_. @@ -392,10 +383,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Removes an object from a bucket. The behavior depends on the bucket's versioning state: @@ -451,10 +439,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation enables you to delete multiple objects from a bucket using a single HTTP request. If you know the object keys that you want to delete, then this operation provides a suitable alternative to sending individual delete requests, reducing per-request overhead. @@ -518,10 +503,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Retrieves an object from Amazon S3. @@ -606,10 +588,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// The `HEAD` operation retrieves metadata from an object without returning the object itself. This operation is useful if you're interested only in an object's metadata. @@ -684,10 +663,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation lists in-progress multipart uploads in a bucket. An in-progress multipart upload is a multipart upload that has been initiated by the `CreateMultipartUpload` request, but has not yet been completed or aborted. @@ -748,10 +724,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Returns some or all (up to 1,000) of the objects in a bucket with each request. You can use the request parameters as selection criteria to return a subset of the objects in a bucket. A `200 OK` response can contain valid or invalid XML. Make sure to design your application to parse the contents of the response and handle it appropriately. For more information about listing objects, see [Listing object keys programmatically](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html) in the _Amazon S3 User Guide_. To get a list of your buckets, see [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html). @@ -786,7 +759,7 @@ class S3Client { /// /// * [CreateBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) _i4.SmithyOperation<_i4.PaginatedResult> - listObjectsV2( + listObjectsV2( ListObjectsV2Request input, { _i1.AWSHttpClient? client, _i2.S3ClientConfig? s3ClientConfig, @@ -799,10 +772,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).runPaginated( - input, - client: client ?? _client, - ); + ).runPaginated(input, client: client ?? _client); } /// Lists the parts that have been uploaded for a specific multipart upload. @@ -842,7 +812,7 @@ class S3Client { /// /// * [ListMultipartUploads](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html) _i4.SmithyOperation<_i4.PaginatedResult<_i5.BuiltList, int, String>> - listParts( + listParts( ListPartsRequest input, { _i1.AWSHttpClient? client, _i2.S3ClientConfig? s3ClientConfig, @@ -855,10 +825,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).runPaginated( - input, - client: client ?? _client, - ); + ).runPaginated(input, client: client ?? _client); } /// Adds an object to a bucket. @@ -923,10 +890,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// This operation is not supported by directory buckets. @@ -995,10 +959,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Uploads a part in a multipart upload. @@ -1088,10 +1049,7 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } /// Uploads a part by copying data from an existing object as data source. To specify the data source, you add the request header `x-amz-copy-source` in your request. To specify a byte range, you add the request header `x-amz-copy-source-range` in your request. @@ -1189,9 +1147,6 @@ class S3Client { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).run( - input, - client: client ?? _client, - ); + ).run(input, client: client ?? _client); } } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/storage_s3_service_impl.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/storage_s3_service_impl.dart index d3d8939f39..394f587397 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/storage_s3_service_impl.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/storage_s3_service_impl.dart @@ -44,11 +44,12 @@ class StorageS3Service { if (usePathStyle) { logger.warn( - 'Since your bucket name contains dots (`"."`), the StorageS3 plugin' - ' will use path style URLs to communicate with the S3 service. S3' - ' Transfer acceleration is not supported for path style URLs. For more' - ' information, refer to:' - ' https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html'); + 'Since your bucket name contains dots (`"."`), the StorageS3 plugin' + ' will use path style URLs to communicate with the S3 service. S3' + ' Transfer acceleration is not supported for path style URLs. For more' + ' information, refer to:' + ' https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html', + ); } final s3ClientConfig = smithy_aws.S3ClientConfig( @@ -73,27 +74,29 @@ class StorageS3Service { required AWSIamAmplifyAuthProvider credentialsProvider, required AWSLogger logger, required DependencyManager dependencyManager, - }) : _storageOutputs = storageOutputs, - _defaultS3ClientConfig = s3ClientConfig, - // dependencyManager.get() => S3Client is used for unit tests - _defaultS3Client = dependencyManager.get() ?? - s3.S3Client( - region: storageOutputs.awsRegion, - credentialsProvider: credentialsProvider, - s3ClientConfig: s3ClientConfig, - client: AmplifyHttpClient(dependencyManager) - ..supportedProtocols = SupportedProtocols.http1, - ), - _pathResolver = pathResolver, - _credentialsProvider = credentialsProvider, - _logger = logger, - _dependencyManager = dependencyManager, - _serviceStartingTime = DateTime.now(); + }) : _storageOutputs = storageOutputs, + _defaultS3ClientConfig = s3ClientConfig, + // dependencyManager.get() => S3Client is used for unit tests + _defaultS3Client = + dependencyManager.get() ?? + s3.S3Client( + region: storageOutputs.awsRegion, + credentialsProvider: credentialsProvider, + s3ClientConfig: s3ClientConfig, + client: AmplifyHttpClient(dependencyManager) + ..supportedProtocols = SupportedProtocols.http1, + ), + _pathResolver = pathResolver, + _credentialsProvider = credentialsProvider, + _logger = logger, + _dependencyManager = dependencyManager, + _serviceStartingTime = DateTime.now(); // TODO(HuiSF): re-enable signPayload when the signer supports hashing on // different threads. - static final _defaultS3SignerConfiguration = - sigv4.S3ServiceConfiguration(signPayload: false); + static final _defaultS3SignerConfiguration = sigv4.S3ServiceConfiguration( + signPayload: false, + ); final StorageOutputs _storageOutputs; final smithy_aws.S3ClientConfig _defaultS3ClientConfig; @@ -121,7 +124,8 @@ class StorageS3Service { required StoragePath path, required StorageListOptions options, }) async { - final s3PluginOptions = options.pluginOptions as S3ListPluginOptions? ?? + final s3PluginOptions = + options.pluginOptions as S3ListPluginOptions? ?? const S3ListPluginOptions(); final resolvedPath = await _pathResolver.resolvePath(path: path); @@ -134,9 +138,10 @@ class StorageS3Service { ..prefix = resolvedPath ..maxKeys = options.pageSize ..continuationToken = options.nextToken - ..delimiter = s3PluginOptions.excludeSubPaths - ? s3PluginOptions.delimiter - : null; + ..delimiter = + s3PluginOptions.excludeSubPaths + ? s3PluginOptions.delimiter + : null; }); try { @@ -159,22 +164,19 @@ class StorageS3Service { builder ..bucket = s3ClientInfo.bucketName ..prefix = resolvedPath - ..delimiter = s3PluginOptions.excludeSubPaths - ? s3PluginOptions.delimiter - : null; + ..delimiter = + s3PluginOptions.excludeSubPaths + ? s3PluginOptions.delimiter + : null; }); listResult = await s3ClientInfo.client.listObjectsV2(request).result; - recursiveResult = S3ListResult.fromPaginatedResult( - listResult, - ); + recursiveResult = S3ListResult.fromPaginatedResult(listResult); while (listResult.hasNext) { listResult = await listResult.next().result; recursiveResult = recursiveResult.merge( - S3ListResult.fromPaginatedResult( - listResult, - ), + S3ListResult.fromPaginatedResult(listResult), ); } @@ -220,7 +222,8 @@ class StorageS3Service { required StoragePath path, required StorageGetUrlOptions options, }) async { - final s3PluginOptions = options.pluginOptions as S3GetUrlPluginOptions? ?? + final s3PluginOptions = + options.pluginOptions as S3GetUrlPluginOptions? ?? const S3GetUrlPluginOptions(); final s3ClientInfo = getS3ClientInfo(storageBucket: options.bucket); @@ -259,10 +262,9 @@ class StorageS3Service { ); // dependencyManager.get() is used for unit tests - final awsSigV4Signer = _dependencyManager.get() ?? - sigv4.AWSSigV4Signer( - credentialsProvider: _credentialsProvider, - ); + final awsSigV4Signer = + _dependencyManager.get() ?? + sigv4.AWSSigV4Signer(credentialsProvider: _credentialsProvider); final signerScope = sigv4.AWSCredentialScope( region: s3ClientInfo.awsRegion, service: AWSService.s3, @@ -275,9 +277,9 @@ class StorageS3Service { expiresIn: s3PluginOptions.expiresIn, serviceConfiguration: _defaultS3SignerConfiguration, ), - expiresAt: - (Zone.current[testDateTimeNowOverride] as DateTime? ?? DateTime.now()) - .add(s3PluginOptions.expiresIn), + expiresAt: (Zone.current[testDateTimeNowOverride] as DateTime? ?? + DateTime.now()) + .add(s3PluginOptions.expiresIn), ); } @@ -366,7 +368,7 @@ class StorageS3Service { final s3ClientInfo = getS3ClientInfo(storageBucket: options.bucket); final s3PluginOptions = options.pluginOptions as S3UploadFilePluginOptions? ?? - const S3UploadFilePluginOptions(); + const S3UploadFilePluginOptions(); final uploadDataOptions = StorageUploadDataOptions( metadata: options.metadata, pluginOptions: S3UploadDataPluginOptions( @@ -410,12 +412,15 @@ class StorageS3Service { required StoragePath destination, required StorageCopyOptions options, }) async { - final s3PluginOptions = options.pluginOptions as S3CopyPluginOptions? ?? + final s3PluginOptions = + options.pluginOptions as S3CopyPluginOptions? ?? const S3CopyPluginOptions(); - final s3ClientInfoSource = - getS3ClientInfo(storageBucket: options.buckets?.source); - final s3ClientInfoDestination = - getS3ClientInfo(storageBucket: options.buckets?.destination); + final s3ClientInfoSource = getS3ClientInfo( + storageBucket: options.buckets?.source, + ); + final s3ClientInfoDestination = getS3ClientInfo( + storageBucket: options.buckets?.destination, + ); final [sourcePath, destinationPath] = await _pathResolver.resolvePaths( paths: [source, destination], @@ -439,18 +444,17 @@ class StorageS3Service { } return S3CopyResult( - copiedItem: s3PluginOptions.getProperties - ? S3Item.fromHeadObjectOutput( - await headObject( - s3client: s3ClientInfoDestination.client, - bucket: s3ClientInfoDestination.bucketName, - key: destinationPath, - ), - path: destinationPath, - ) - : S3Item( - path: destinationPath, - ), + copiedItem: + s3PluginOptions.getProperties + ? S3Item.fromHeadObjectOutput( + await headObject( + s3client: s3ClientInfoDestination.client, + bucket: s3ClientInfoDestination.bucketName, + key: destinationPath, + ), + path: destinationPath, + ) + : S3Item(path: destinationPath), ); } @@ -472,9 +476,7 @@ class StorageS3Service { key: resolvedPath, ); - return S3RemoveResult( - removedItem: S3Item(path: resolvedPath), - ); + return S3RemoveResult(removedItem: S3Item(path: resolvedPath)); } /// Takes in input from [AmplifyStorageS3Dart.removeMany] API to compose a @@ -502,8 +504,10 @@ class StorageS3Service { final removedErrors = []; while (objectIdentifiersToRemove.isNotEmpty) { - final numOfBatchedItems = - min(defaultBatchSize, objectIdentifiersToRemove.length); + final numOfBatchedItems = min( + defaultBatchSize, + objectIdentifiersToRemove.length, + ); final bachedObjectIdentifiers = objectIdentifiersToRemove.sublist( 0, numOfBatchedItems, @@ -513,18 +517,18 @@ class StorageS3Service { ..bucket = s3ClientInfo.bucketName // force to use sha256 instead of md5 ..checksumAlgorithm = s3.ChecksumAlgorithm.sha256 - ..delete = s3.Delete.build((builder) { - builder.objects.addAll(bachedObjectIdentifiers); - }).toBuilder(); + ..delete = + s3.Delete.build((builder) { + builder.objects.addAll(bachedObjectIdentifiers); + }).toBuilder(); }); try { final output = await s3ClientInfo.client.deleteObjects(request).result; removedItems.addAll( output.deleted?.toList().map( - (removedObject) => S3Item.fromS3Object( - s3.S3Object(key: removedObject.key), - ), - ) ?? + (removedObject) => + S3Item.fromS3Object(s3.S3Object(key: removedObject.key)), + ) ?? [], ); removedErrors.addAll(output.errors?.toList() ?? []); @@ -570,10 +574,7 @@ class StorageS3Service { static String _getS3EndpointHost({required String region}) => endpoint_resolver.endpointResolver - .resolve( - endpoint_resolver.sdkId, - region, - ) + .resolve(endpoint_resolver.sdkId, region) .endpoint .uri .host; @@ -624,9 +625,10 @@ class StorageS3Service { ..key = record.objectKey ..uploadId = record.uploadId; }); - final s3Client = getS3ClientInfo( - storageBucket: StorageBucket.fromBucketInfo(bucketInfo), - ).client; + final s3Client = + getS3ClientInfo( + storageBucket: StorageBucket.fromBucketInfo(bucketInfo), + ).client; try { await s3Client.abortMultipartUpload(request).result; @@ -660,11 +662,12 @@ class StorageS3Service { final usePathStyle = bucketInfo.bucketName.contains('.'); if (usePathStyle) { _logger.warn( - 'Since your bucket name contains dots (`"."`), the StorageS3 plugin' - ' will use path style URLs to communicate with the S3 service. S3' - ' Transfer acceleration is not supported for path style URLs. For more' - ' information, refer to:' - ' https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html'); + 'Since your bucket name contains dots (`"."`), the StorageS3 plugin' + ' will use path style URLs to communicate with the S3 service. S3' + ' Transfer acceleration is not supported for path style URLs. For more' + ' information, refer to:' + ' https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html', + ); } final s3ClientConfig = smithy_aws.S3ClientConfig( signerConfiguration: _defaultS3SignerConfiguration, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart index ae9e002481..98af550164 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_download_task.dart @@ -59,21 +59,21 @@ class S3DownloadTask { void Function(List)? onData, FutureOr Function()? onDone, FutureOr Function()? onError, - }) : _downloadCompleter = Completer(), - _s3Client = s3Client, - _defaultS3ClientConfig = defaultS3ClientConfig, - _pathResolver = pathResolver, - _bucket = bucket, - _path = path, - _preStart = preStart, - _onProgress = onProgress, - _onData = onData, - _onDone = onDone, - _onError = onError, - _downloadedBytesSize = 0, - _s3PluginOptions = - options.pluginOptions as S3DownloadDataPluginOptions? ?? - const S3DownloadDataPluginOptions(); + }) : _downloadCompleter = Completer(), + _s3Client = s3Client, + _defaultS3ClientConfig = defaultS3ClientConfig, + _pathResolver = pathResolver, + _bucket = bucket, + _path = path, + _preStart = preStart, + _onProgress = onProgress, + _onData = onData, + _onDone = onDone, + _onError = onError, + _downloadedBytesSize = 0, + _s3PluginOptions = + options.pluginOptions as S3DownloadDataPluginOptions? ?? + const S3DownloadDataPluginOptions(); // the Completer to complete the final `result` Future. final Completer _downloadCompleter; @@ -160,8 +160,10 @@ class S3DownloadTask { _totalBytes = remoteSize; _listenToBytesSteam(getObjectOutput.body); - _downloadedS3Item = - S3Item.fromGetObjectOutput(getObjectOutput, path: _resolvedPath); + _downloadedS3Item = S3Item.fromGetObjectOutput( + getObjectOutput, + path: _resolvedPath, + ); } on Exception catch (error, stackTrace) { await _completeDownloadWithError(error, stackTrace); } @@ -274,44 +276,45 @@ class S3DownloadTask { return; } - _bytesSubscription = bytesStream.listen((bytes) { - _downloadedBytesSize += bytes.length; - _onData?.call(bytes); - _emitTransferProgress(); - }) - ..onDone(() async { - if (_downloadedBytesSize == _totalBytes) { - _state = StorageTransferState.success; - try { - await _onDone?.call(); + _bytesSubscription = + bytesStream.listen((bytes) { + _downloadedBytesSize += bytes.length; + _onData?.call(bytes); _emitTransferProgress(); - _downloadCompleter.complete( - // On VM, download operation gets object metadata directly - // from the underlying `GetObject` call. - // On Web, download operation is done by browser download from - // object presigned URL, where object metadata needs to be - // retrieve via a separate `HeadObject` call. - // To unify the behavior on `downloadOptions.getProperties` - // we hide the metadata from the result on VM if this parameter - // is set to `false`. - _s3PluginOptions.getProperties - ? _downloadedS3Item - : S3Item(path: _downloadedS3Item.path), - ); - } on Exception catch (error, stackTrace) { - await _completeDownloadWithError(error, stackTrace); - } - } else { - await _completeDownloadWithError( - const UnknownException( - 'The download operation was completed, but only a portion of the data was downloaded.', - recoverySuggestion: - AmplifyExceptionMessages.missingExceptionMessage, - ), - ); - } - }) - ..onError(_completeDownloadWithError); + }) + ..onDone(() async { + if (_downloadedBytesSize == _totalBytes) { + _state = StorageTransferState.success; + try { + await _onDone?.call(); + _emitTransferProgress(); + _downloadCompleter.complete( + // On VM, download operation gets object metadata directly + // from the underlying `GetObject` call. + // On Web, download operation is done by browser download from + // object presigned URL, where object metadata needs to be + // retrieve via a separate `HeadObject` call. + // To unify the behavior on `downloadOptions.getProperties` + // we hide the metadata from the result on VM if this parameter + // is set to `false`. + _s3PluginOptions.getProperties + ? _downloadedS3Item + : S3Item(path: _downloadedS3Item.path), + ); + } on Exception catch (error, stackTrace) { + await _completeDownloadWithError(error, stackTrace); + } + } else { + await _completeDownloadWithError( + const UnknownException( + 'The download operation was completed, but only a portion of the data was downloaded.', + recoverySuggestion: + AmplifyExceptionMessages.missingExceptionMessage, + ), + ); + } + }) + ..onError(_completeDownloadWithError); // After setting up the body stream listener, we consider the task is fully // started, and can be paused etc. diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_upload_task.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_upload_task.dart index 364c74237e..1031cf086a 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_upload_task.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/task/s3_upload_task.dart @@ -59,21 +59,21 @@ class S3UploadTask { void Function(S3TransferProgress)? onProgress, required AWSLogger logger, required transfer.TransferDatabase transferDatabase, - }) : _s3Client = s3Client, - _s3ClientConfig = s3ClientConfig, - _pathResolver = pathResolver, - _bucket = bucket, - _awsRegion = awsRegion, - _path = path, - _options = options, - _dataPayload = dataPayload, - _localFile = localFile, - _onProgress = onProgress, - _logger = logger, - _transferDatabase = transferDatabase, - _s3PluginOptions = - options.pluginOptions as S3UploadDataPluginOptions? ?? - const S3UploadDataPluginOptions(); + }) : _s3Client = s3Client, + _s3ClientConfig = s3ClientConfig, + _pathResolver = pathResolver, + _bucket = bucket, + _awsRegion = awsRegion, + _path = path, + _options = options, + _dataPayload = dataPayload, + _localFile = localFile, + _onProgress = onProgress, + _logger = logger, + _transferDatabase = transferDatabase, + _s3PluginOptions = + options.pluginOptions as S3UploadDataPluginOptions? ?? + const S3UploadDataPluginOptions(); /// Initiates an upload task for a [S3DataPayload]. /// @@ -93,18 +93,18 @@ class S3UploadTask { required AWSLogger logger, required transfer.TransferDatabase transferDatabase, }) : this._( - s3Client: s3Client, - s3ClientConfig: s3ClientConfig, - pathResolver: pathResolver, - bucket: bucket, - awsRegion: awsRegion, - path: path, - dataPayload: dataPayload, - options: options, - onProgress: onProgress, - logger: logger, - transferDatabase: transferDatabase, - ); + s3Client: s3Client, + s3ClientConfig: s3ClientConfig, + pathResolver: pathResolver, + bucket: bucket, + awsRegion: awsRegion, + path: path, + dataPayload: dataPayload, + options: options, + onProgress: onProgress, + logger: logger, + transferDatabase: transferDatabase, + ); /// Initiates an upload task for a [AWSFile]. /// @@ -122,18 +122,18 @@ class S3UploadTask { required AWSLogger logger, required transfer.TransferDatabase transferDatabase, }) : this._( - s3Client: s3Client, - s3ClientConfig: s3ClientConfig, - pathResolver: pathResolver, - bucket: bucket, - awsRegion: awsRegion, - path: path, - localFile: localFile, - options: options, - onProgress: onProgress, - logger: logger, - transferDatabase: transferDatabase, - ); + s3Client: s3Client, + s3ClientConfig: s3ClientConfig, + pathResolver: pathResolver, + bucket: bucket, + awsRegion: awsRegion, + path: path, + localFile: localFile, + options: options, + onProgress: onProgress, + logger: logger, + transferDatabase: transferDatabase, + ); // Took reference from amplify-js static const _maxNumParallelTasks = 4; @@ -350,13 +350,13 @@ class S3UploadTask { _uploadCompleter.complete( _s3PluginOptions.getProperties ? S3Item.fromHeadObjectOutput( - await StorageS3Service.headObject( - s3client: _s3Client, - bucket: _bucket, - key: _resolvedPath, - ), - path: _resolvedPath, - ) + await StorageS3Service.headObject( + s3client: _s3Client, + bucket: _bucket, + key: _resolvedPath, + ), + path: _resolvedPath, + ) : S3Item(path: _resolvedPath), ); @@ -365,31 +365,22 @@ class S3UploadTask { // CancellationException is expected when the operation is paused. The // exception should be swallowed in this case. if (_state == StorageTransferState.paused) { - _logger.debug( - 'PutObject HTTP operation has been paused.', - ); + _logger.debug('PutObject HTTP operation has been paused.'); return; } _uploadCompleter.completeError( s3_exception.s3ControllableOperationCanceledException, ); } on smithy.UnknownSmithyHttpException catch (error, stackTrace) { - _completeUploadWithError( - error.toStorageException(), - stackTrace, - ); + _completeUploadWithError(error.toStorageException(), stackTrace); } on AWSHttpException catch (error) { - _completeUploadWithError( - error.toNetworkException(), - ); + _completeUploadWithError(error.toNetworkException()); } finally { _emitTransferProgress(); } } - Future _startMultipartUpload( - AWSFile localFile, - ) async { + Future _startMultipartUpload(AWSFile localFile) async { _state = StorageTransferState.inProgress; // 1. check if can initiate multipart upload with the given file size // and create a multipart upload and set its id to _multipartUploadId @@ -439,8 +430,9 @@ class S3UploadTask { }, ); - _subtasksStreamSubscription = - _subtasksStreamController.stream.listen((completedSubtask) { + _subtasksStreamSubscription = _subtasksStreamController.stream.listen(( + completedSubtask, + ) { _completedSubtasks.add(completedSubtask); _transferredBytes += completedSubtask.transferredBytes; _emitTransferProgress(); @@ -456,28 +448,27 @@ class S3UploadTask { if (_state == StorageTransferState.inProgress) { _startNextUploadPartsBatch(); } - }) - ..onDone(() async { - try { - await _completeMultipartUpload(); - _uploadCompleter.complete( - _s3PluginOptions.getProperties - ? S3Item.fromHeadObjectOutput( - await StorageS3Service.headObject( - s3client: _s3Client, - bucket: _bucket, - key: _resolvedPath, - ), - path: _resolvedPath, - ) - : S3Item(path: _resolvedPath), - ); - _state = StorageTransferState.success; - _emitTransferProgress(); - } on Exception catch (error, stackTrace) { - _completeUploadWithError(error, stackTrace); - } - }); + })..onDone(() async { + try { + await _completeMultipartUpload(); + _uploadCompleter.complete( + _s3PluginOptions.getProperties + ? S3Item.fromHeadObjectOutput( + await StorageS3Service.headObject( + s3client: _s3Client, + bucket: _bucket, + key: _resolvedPath, + ), + path: _resolvedPath, + ) + : S3Item(path: _resolvedPath), + ); + _state = StorageTransferState.success; + _emitTransferProgress(); + } on Exception catch (error, stackTrace) { + _completeUploadWithError(error, stackTrace); + } + }); } Future _createMultiPartUpload(AWSFile localFile) async { @@ -534,14 +525,14 @@ class S3UploadTask { ..bucket = _bucket ..key = _resolvedPath ..uploadId = _multipartUploadId - ..multipartUpload = s3.CompletedMultipartUpload( - parts: (_completedSubtasks - ..sort( - (a, b) => a.partNumber.compareTo(b.partNumber), - )) - .map((e) => e.completedPart) - .toList(), - ).toBuilder(); + ..multipartUpload = + s3.CompletedMultipartUpload( + parts: + (_completedSubtasks + ..sort((a, b) => a.partNumber.compareTo(b.partNumber))) + .map((e) => e.completedPart) + .toList(), + ).toBuilder(); }); try { @@ -580,10 +571,10 @@ class S3UploadTask { _isAWSFileStream && _optimalPartSize > part_size_util.minPartSize ? 1 : min( - _maxNumParallelTasks - _numOfOngoingSubtasks, - _expectedNumOfSubtasks - - (_numOfCompletedSubtasks + _numOfOngoingSubtasks), - ); + _maxNumParallelTasks - _numOfOngoingSubtasks, + _expectedNumOfSubtasks - + (_numOfCompletedSubtasks + _numOfOngoingSubtasks), + ); _state = StorageTransferState.inProgress; @@ -614,9 +605,7 @@ class S3UploadTask { _uploadPartBatchingCompleter?.complete(); } - Future _startNextUploadPart({ - required int partNumber, - }) async { + Future _startNextUploadPart({required int partNumber}) async { late Stream> Function() chunkGetter; // If the AWSFile is backed by a stream of bytes, read chunks one by one @@ -627,7 +616,8 @@ class S3UploadTask { } // otherwise allow reading parts in parallel else { - chunkGetter = () => _localFile!.openRead( + chunkGetter = + () => _localFile!.openRead( (partNumber - 1) * _optimalPartSize, partNumber == _expectedNumOfSubtasks ? _fileSize @@ -670,9 +660,9 @@ class S3UploadTask { ); _ongoingUploadPartHttpOperations[partNumber] = _OngoingUploadPartOperation( - partNumber: partNumber, - smithyOperation: operation, - ); + partNumber: partNumber, + smithyOperation: operation, + ); final result = await operation.result; _ongoingUploadPartHttpOperations.remove(partNumber); @@ -688,9 +678,10 @@ class S3UploadTask { return _CompletedSubtask( partNumber: partNumber, - transferredBytes: partNumber == _expectedNumOfSubtasks - ? _lastPartSize - : _optimalPartSize, + transferredBytes: + partNumber == _expectedNumOfSubtasks + ? _lastPartSize + : _optimalPartSize, eTag: eTag, ); } on smithy.UnknownSmithyHttpException catch (error) { @@ -771,10 +762,7 @@ class S3UploadTask { } } - void _completeUploadWithError( - Object error, [ - StackTrace? stackTrace, - ]) { + void _completeUploadWithError(Object error, [StackTrace? stackTrace]) { _state = StorageTransferState.failure; _emitTransferProgress(); _uploadCompleter.completeError(error, stackTrace); @@ -816,10 +804,7 @@ class _OngoingSubtask { Stream> get partBody => _partBodyGetter(); - _OngoingSubtask copyWith({ - int? partNumber, - Future? request, - }) { + _OngoingSubtask copyWith({int? partNumber, Future? request}) { return _OngoingSubtask( partBodyGetter: _partBodyGetter, partNumber: partNumber ?? this.partNumber, diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/storage_s3_service.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/storage_s3_service.dart index 7a1fa1f1dd..222c2ded81 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/storage_s3_service.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/storage_s3_service.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library s3_storage_service; +library; import 'package:meta/meta.dart'; diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.dart index 1c105d8b32..fe6134ac02 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.dart @@ -24,14 +24,15 @@ class TransferDatabase extends $TransferDatabase implements stub.TransferDatabase { /// {@macro amplify_storage_s3_dart.transfer_database} TransferDatabase(DependencyManager dependencies) - : super( - dependencies.getOrCreate()( - name: dataBaseName, - path: dependencies - .getOrCreate() - .getApplicationSupportPath(), - ), - ); + : super( + dependencies.getOrCreate()( + name: dataBaseName, + path: + dependencies + .getOrCreate() + .getApplicationSupportPath(), + ), + ); // Bump the version number when any alteration is made into tables.dart @override @@ -59,12 +60,9 @@ class TransferDatabase extends $TransferDatabase Future> getMultipartUploadRecordsCreatedBefore( DateTime dateTime, ) { - return (select(transferRecords, distinct: true) - ..where( - (tbl) => tbl.createdAt.isSmallerThanValue( - dateTime.toIso8601String(), - ), - )) + return (select(transferRecords, distinct: true)..where( + (tbl) => tbl.createdAt.isSmallerThanValue(dateTime.toIso8601String()), + )) .map( (e) => data.TransferRecord( objectKey: e.objectKey, @@ -93,7 +91,6 @@ class TransferDatabase extends $TransferDatabase @override Future deleteTransferRecords(String uploadId) { return (delete(transferRecords) - ..where((tbl) => tbl.uploadId.equals(uploadId))) - .go(); + ..where((tbl) => tbl.uploadId.equals(uploadId))).go(); } } diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.drift.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.drift.dart index 071cd83deb..4ed750bca3 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.drift.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/database_io.drift.dart @@ -7,8 +7,8 @@ import 'package:amplify_storage_s3_dart/src/storage_s3_service/transfer/database abstract class $TransferDatabase extends i0.GeneratedDatabase { $TransferDatabase(i0.QueryExecutor e) : super(e); $TransferDatabaseManager get managers => $TransferDatabaseManager(this); - late final i1.$TransferRecordsTable transferRecords = - i1.$TransferRecordsTable(this); + late final i1.$TransferRecordsTable transferRecords = i1 + .$TransferRecordsTable(this); @override Iterable> get allTables => allSchemaEntities.whereType>(); diff --git a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/tables.drift.dart b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/tables.drift.dart index 68115be6de..3fa4a8cee9 100644 --- a/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/tables.drift.dart +++ b/packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/transfer/database/tables.drift.dart @@ -6,24 +6,24 @@ import 'package:amplify_storage_s3_dart/src/storage_s3_service/transfer/database import 'package:amplify_storage_s3_dart/src/storage_s3_service/transfer/database/tables.dart' as i2; -typedef $$TransferRecordsTableCreateCompanionBuilder - = i1.TransferRecordsCompanion Function({ - i0.Value id, - required String uploadId, - required String objectKey, - required String createdAt, - i0.Value bucketName, - i0.Value awsRegion, -}); -typedef $$TransferRecordsTableUpdateCompanionBuilder - = i1.TransferRecordsCompanion Function({ - i0.Value id, - i0.Value uploadId, - i0.Value objectKey, - i0.Value createdAt, - i0.Value bucketName, - i0.Value awsRegion, -}); +typedef $$TransferRecordsTableCreateCompanionBuilder = + i1.TransferRecordsCompanion Function({ + i0.Value id, + required String uploadId, + required String objectKey, + required String createdAt, + i0.Value bucketName, + i0.Value awsRegion, + }); +typedef $$TransferRecordsTableUpdateCompanionBuilder = + i1.TransferRecordsCompanion Function({ + i0.Value id, + i0.Value uploadId, + i0.Value objectKey, + i0.Value createdAt, + i0.Value bucketName, + i0.Value awsRegion, + }); class $$TransferRecordsTableFilterComposer extends i0.Composer { @@ -35,22 +35,34 @@ class $$TransferRecordsTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); i0.ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => i0.ColumnFilters(column)); + column: $table.id, + builder: (column) => i0.ColumnFilters(column), + ); i0.ColumnFilters get uploadId => $composableBuilder( - column: $table.uploadId, builder: (column) => i0.ColumnFilters(column)); + column: $table.uploadId, + builder: (column) => i0.ColumnFilters(column), + ); i0.ColumnFilters get objectKey => $composableBuilder( - column: $table.objectKey, builder: (column) => i0.ColumnFilters(column)); + column: $table.objectKey, + builder: (column) => i0.ColumnFilters(column), + ); i0.ColumnFilters get createdAt => $composableBuilder( - column: $table.createdAt, builder: (column) => i0.ColumnFilters(column)); + column: $table.createdAt, + builder: (column) => i0.ColumnFilters(column), + ); i0.ColumnFilters get bucketName => $composableBuilder( - column: $table.bucketName, builder: (column) => i0.ColumnFilters(column)); + column: $table.bucketName, + builder: (column) => i0.ColumnFilters(column), + ); i0.ColumnFilters get awsRegion => $composableBuilder( - column: $table.awsRegion, builder: (column) => i0.ColumnFilters(column)); + column: $table.awsRegion, + builder: (column) => i0.ColumnFilters(column), + ); } class $$TransferRecordsTableOrderingComposer @@ -63,26 +75,34 @@ class $$TransferRecordsTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); i0.ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => i0.ColumnOrderings(column)); + column: $table.id, + builder: (column) => i0.ColumnOrderings(column), + ); i0.ColumnOrderings get uploadId => $composableBuilder( - column: $table.uploadId, builder: (column) => i0.ColumnOrderings(column)); + column: $table.uploadId, + builder: (column) => i0.ColumnOrderings(column), + ); i0.ColumnOrderings get objectKey => $composableBuilder( - column: $table.objectKey, - builder: (column) => i0.ColumnOrderings(column)); + column: $table.objectKey, + builder: (column) => i0.ColumnOrderings(column), + ); i0.ColumnOrderings get createdAt => $composableBuilder( - column: $table.createdAt, - builder: (column) => i0.ColumnOrderings(column)); + column: $table.createdAt, + builder: (column) => i0.ColumnOrderings(column), + ); i0.ColumnOrderings get bucketName => $composableBuilder( - column: $table.bucketName, - builder: (column) => i0.ColumnOrderings(column)); + column: $table.bucketName, + builder: (column) => i0.ColumnOrderings(column), + ); i0.ColumnOrderings get awsRegion => $composableBuilder( - column: $table.awsRegion, - builder: (column) => i0.ColumnOrderings(column)); + column: $table.awsRegion, + builder: (column) => i0.ColumnOrderings(column), + ); } class $$TransferRecordsTableAnnotationComposer @@ -107,94 +127,126 @@ class $$TransferRecordsTableAnnotationComposer $composableBuilder(column: $table.createdAt, builder: (column) => column); i0.GeneratedColumn get bucketName => $composableBuilder( - column: $table.bucketName, builder: (column) => column); + column: $table.bucketName, + builder: (column) => column, + ); i0.GeneratedColumn get awsRegion => $composableBuilder(column: $table.awsRegion, builder: (column) => column); } -class $$TransferRecordsTableTableManager extends i0.RootTableManager< - i0.GeneratedDatabase, - i1.$TransferRecordsTable, - i1.TransferRecord, - i1.$$TransferRecordsTableFilterComposer, - i1.$$TransferRecordsTableOrderingComposer, - i1.$$TransferRecordsTableAnnotationComposer, - $$TransferRecordsTableCreateCompanionBuilder, - $$TransferRecordsTableUpdateCompanionBuilder, - ( - i1.TransferRecord, - i0.BaseReferences - ), - i1.TransferRecord, - i0.PrefetchHooks Function()> { +class $$TransferRecordsTableTableManager + extends + i0.RootTableManager< + i0.GeneratedDatabase, + i1.$TransferRecordsTable, + i1.TransferRecord, + i1.$$TransferRecordsTableFilterComposer, + i1.$$TransferRecordsTableOrderingComposer, + i1.$$TransferRecordsTableAnnotationComposer, + $$TransferRecordsTableCreateCompanionBuilder, + $$TransferRecordsTableUpdateCompanionBuilder, + ( + i1.TransferRecord, + i0.BaseReferences< + i0.GeneratedDatabase, + i1.$TransferRecordsTable, + i1.TransferRecord + >, + ), + i1.TransferRecord, + i0.PrefetchHooks Function() + > { $$TransferRecordsTableTableManager( - i0.GeneratedDatabase db, i1.$TransferRecordsTable table) - : super(i0.TableManagerState( + i0.GeneratedDatabase db, + i1.$TransferRecordsTable table, + ) : super( + i0.TableManagerState( db: db, table: table, - createFilteringComposer: () => - i1.$$TransferRecordsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - i1.$$TransferRecordsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => i1 - .$$TransferRecordsTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - i0.Value id = const i0.Value.absent(), - i0.Value uploadId = const i0.Value.absent(), - i0.Value objectKey = const i0.Value.absent(), - i0.Value createdAt = const i0.Value.absent(), - i0.Value bucketName = const i0.Value.absent(), - i0.Value awsRegion = const i0.Value.absent(), - }) => - i1.TransferRecordsCompanion( - id: id, - uploadId: uploadId, - objectKey: objectKey, - createdAt: createdAt, - bucketName: bucketName, - awsRegion: awsRegion, - ), - createCompanionCallback: ({ - i0.Value id = const i0.Value.absent(), - required String uploadId, - required String objectKey, - required String createdAt, - i0.Value bucketName = const i0.Value.absent(), - i0.Value awsRegion = const i0.Value.absent(), - }) => - i1.TransferRecordsCompanion.insert( - id: id, - uploadId: uploadId, - objectKey: objectKey, - createdAt: createdAt, - bucketName: bucketName, - awsRegion: awsRegion, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), i0.BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => i1.$$TransferRecordsTableFilterComposer( + $db: db, + $table: table, + ), + createOrderingComposer: + () => i1.$$TransferRecordsTableOrderingComposer( + $db: db, + $table: table, + ), + createComputedFieldComposer: + () => i1.$$TransferRecordsTableAnnotationComposer( + $db: db, + $table: table, + ), + updateCompanionCallback: + ({ + i0.Value id = const i0.Value.absent(), + i0.Value uploadId = const i0.Value.absent(), + i0.Value objectKey = const i0.Value.absent(), + i0.Value createdAt = const i0.Value.absent(), + i0.Value bucketName = const i0.Value.absent(), + i0.Value awsRegion = const i0.Value.absent(), + }) => i1.TransferRecordsCompanion( + id: id, + uploadId: uploadId, + objectKey: objectKey, + createdAt: createdAt, + bucketName: bucketName, + awsRegion: awsRegion, + ), + createCompanionCallback: + ({ + i0.Value id = const i0.Value.absent(), + required String uploadId, + required String objectKey, + required String createdAt, + i0.Value bucketName = const i0.Value.absent(), + i0.Value awsRegion = const i0.Value.absent(), + }) => i1.TransferRecordsCompanion.insert( + id: id, + uploadId: uploadId, + objectKey: objectKey, + createdAt: createdAt, + bucketName: bucketName, + awsRegion: awsRegion, + ), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + i0.BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$TransferRecordsTableProcessedTableManager = i0.ProcessedTableManager< - i0.GeneratedDatabase, - i1.$TransferRecordsTable, - i1.TransferRecord, - i1.$$TransferRecordsTableFilterComposer, - i1.$$TransferRecordsTableOrderingComposer, - i1.$$TransferRecordsTableAnnotationComposer, - $$TransferRecordsTableCreateCompanionBuilder, - $$TransferRecordsTableUpdateCompanionBuilder, - ( +typedef $$TransferRecordsTableProcessedTableManager = + i0.ProcessedTableManager< + i0.GeneratedDatabase, + i1.$TransferRecordsTable, i1.TransferRecord, - i0.BaseReferences - ), - i1.TransferRecord, - i0.PrefetchHooks Function()>; + i1.$$TransferRecordsTableFilterComposer, + i1.$$TransferRecordsTableOrderingComposer, + i1.$$TransferRecordsTableAnnotationComposer, + $$TransferRecordsTableCreateCompanionBuilder, + $$TransferRecordsTableUpdateCompanionBuilder, + ( + i1.TransferRecord, + i0.BaseReferences< + i0.GeneratedDatabase, + i1.$TransferRecordsTable, + i1.TransferRecord + >, + ), + i1.TransferRecord, + i0.PrefetchHooks Function() + >; class $TransferRecordsTable extends i2.TransferRecords with i0.TableInfo<$TransferRecordsTable, i1.TransferRecord> { @@ -205,45 +257,80 @@ class $TransferRecordsTable extends i2.TransferRecords static const i0.VerificationMeta _idMeta = const i0.VerificationMeta('id'); @override late final i0.GeneratedColumn id = i0.GeneratedColumn( - 'id', aliasedName, false, - hasAutoIncrement: true, - type: i0.DriftSqlType.int, - requiredDuringInsert: false, - defaultConstraints: - i0.GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); - static const i0.VerificationMeta _uploadIdMeta = - const i0.VerificationMeta('uploadId'); + 'id', + aliasedName, + false, + hasAutoIncrement: true, + type: i0.DriftSqlType.int, + requiredDuringInsert: false, + defaultConstraints: i0.GeneratedColumn.constraintIsAlways( + 'PRIMARY KEY AUTOINCREMENT', + ), + ); + static const i0.VerificationMeta _uploadIdMeta = const i0.VerificationMeta( + 'uploadId', + ); @override late final i0.GeneratedColumn uploadId = i0.GeneratedColumn( - 'upload_id', aliasedName, false, - type: i0.DriftSqlType.string, requiredDuringInsert: true); - static const i0.VerificationMeta _objectKeyMeta = - const i0.VerificationMeta('objectKey'); + 'upload_id', + aliasedName, + false, + type: i0.DriftSqlType.string, + requiredDuringInsert: true, + ); + static const i0.VerificationMeta _objectKeyMeta = const i0.VerificationMeta( + 'objectKey', + ); @override late final i0.GeneratedColumn objectKey = i0.GeneratedColumn( - 'object_key', aliasedName, false, - type: i0.DriftSqlType.string, requiredDuringInsert: true); - static const i0.VerificationMeta _createdAtMeta = - const i0.VerificationMeta('createdAt'); + 'object_key', + aliasedName, + false, + type: i0.DriftSqlType.string, + requiredDuringInsert: true, + ); + static const i0.VerificationMeta _createdAtMeta = const i0.VerificationMeta( + 'createdAt', + ); @override late final i0.GeneratedColumn createdAt = i0.GeneratedColumn( - 'created_at', aliasedName, false, - type: i0.DriftSqlType.string, requiredDuringInsert: true); - static const i0.VerificationMeta _bucketNameMeta = - const i0.VerificationMeta('bucketName'); + 'created_at', + aliasedName, + false, + type: i0.DriftSqlType.string, + requiredDuringInsert: true, + ); + static const i0.VerificationMeta _bucketNameMeta = const i0.VerificationMeta( + 'bucketName', + ); @override late final i0.GeneratedColumn bucketName = i0.GeneratedColumn( - 'bucket_name', aliasedName, true, - type: i0.DriftSqlType.string, requiredDuringInsert: false); - static const i0.VerificationMeta _awsRegionMeta = - const i0.VerificationMeta('awsRegion'); + 'bucket_name', + aliasedName, + true, + type: i0.DriftSqlType.string, + requiredDuringInsert: false, + ); + static const i0.VerificationMeta _awsRegionMeta = const i0.VerificationMeta( + 'awsRegion', + ); @override late final i0.GeneratedColumn awsRegion = i0.GeneratedColumn( - 'aws_region', aliasedName, true, - type: i0.DriftSqlType.string, requiredDuringInsert: false); + 'aws_region', + aliasedName, + true, + type: i0.DriftSqlType.string, + requiredDuringInsert: false, + ); @override - List get $columns => - [id, uploadId, objectKey, createdAt, bucketName, awsRegion]; + List get $columns => [ + id, + uploadId, + objectKey, + createdAt, + bucketName, + awsRegion, + ]; @override String get aliasedName => _alias ?? actualTableName; @override @@ -251,40 +338,49 @@ class $TransferRecordsTable extends i2.TransferRecords static const String $name = 'transfer_records'; @override i0.VerificationContext validateIntegrity( - i0.Insertable instance, - {bool isInserting = false}) { + i0.Insertable instance, { + bool isInserting = false, + }) { final context = i0.VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); } if (data.containsKey('upload_id')) { - context.handle(_uploadIdMeta, - uploadId.isAcceptableOrUnknown(data['upload_id']!, _uploadIdMeta)); + context.handle( + _uploadIdMeta, + uploadId.isAcceptableOrUnknown(data['upload_id']!, _uploadIdMeta), + ); } else if (isInserting) { context.missing(_uploadIdMeta); } if (data.containsKey('object_key')) { - context.handle(_objectKeyMeta, - objectKey.isAcceptableOrUnknown(data['object_key']!, _objectKeyMeta)); + context.handle( + _objectKeyMeta, + objectKey.isAcceptableOrUnknown(data['object_key']!, _objectKeyMeta), + ); } else if (isInserting) { context.missing(_objectKeyMeta); } if (data.containsKey('created_at')) { - context.handle(_createdAtMeta, - createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); + context.handle( + _createdAtMeta, + createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta), + ); } else if (isInserting) { context.missing(_createdAtMeta); } if (data.containsKey('bucket_name')) { context.handle( - _bucketNameMeta, - bucketName.isAcceptableOrUnknown( - data['bucket_name']!, _bucketNameMeta)); + _bucketNameMeta, + bucketName.isAcceptableOrUnknown(data['bucket_name']!, _bucketNameMeta), + ); } if (data.containsKey('aws_region')) { - context.handle(_awsRegionMeta, - awsRegion.isAcceptableOrUnknown(data['aws_region']!, _awsRegionMeta)); + context.handle( + _awsRegionMeta, + awsRegion.isAcceptableOrUnknown(data['aws_region']!, _awsRegionMeta), + ); } return context; } @@ -295,18 +391,34 @@ class $TransferRecordsTable extends i2.TransferRecords i1.TransferRecord map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return i1.TransferRecord( - id: attachedDatabase.typeMapping - .read(i0.DriftSqlType.int, data['${effectivePrefix}id'])!, - uploadId: attachedDatabase.typeMapping - .read(i0.DriftSqlType.string, data['${effectivePrefix}upload_id'])!, - objectKey: attachedDatabase.typeMapping - .read(i0.DriftSqlType.string, data['${effectivePrefix}object_key'])!, - createdAt: attachedDatabase.typeMapping - .read(i0.DriftSqlType.string, data['${effectivePrefix}created_at'])!, - bucketName: attachedDatabase.typeMapping - .read(i0.DriftSqlType.string, data['${effectivePrefix}bucket_name']), - awsRegion: attachedDatabase.typeMapping - .read(i0.DriftSqlType.string, data['${effectivePrefix}aws_region']), + id: + attachedDatabase.typeMapping.read( + i0.DriftSqlType.int, + data['${effectivePrefix}id'], + )!, + uploadId: + attachedDatabase.typeMapping.read( + i0.DriftSqlType.string, + data['${effectivePrefix}upload_id'], + )!, + objectKey: + attachedDatabase.typeMapping.read( + i0.DriftSqlType.string, + data['${effectivePrefix}object_key'], + )!, + createdAt: + attachedDatabase.typeMapping.read( + i0.DriftSqlType.string, + data['${effectivePrefix}created_at'], + )!, + bucketName: attachedDatabase.typeMapping.read( + i0.DriftSqlType.string, + data['${effectivePrefix}bucket_name'], + ), + awsRegion: attachedDatabase.typeMapping.read( + i0.DriftSqlType.string, + data['${effectivePrefix}aws_region'], + ), ); } @@ -335,13 +447,14 @@ class TransferRecord extends i0.DataClass /// AWS region of Amazon S3 bucket. final String? awsRegion; - const TransferRecord( - {required this.id, - required this.uploadId, - required this.objectKey, - required this.createdAt, - this.bucketName, - this.awsRegion}); + const TransferRecord({ + required this.id, + required this.uploadId, + required this.objectKey, + required this.createdAt, + this.bucketName, + this.awsRegion, + }); @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -364,17 +477,21 @@ class TransferRecord extends i0.DataClass uploadId: i0.Value(uploadId), objectKey: i0.Value(objectKey), createdAt: i0.Value(createdAt), - bucketName: bucketName == null && nullToAbsent - ? const i0.Value.absent() - : i0.Value(bucketName), - awsRegion: awsRegion == null && nullToAbsent - ? const i0.Value.absent() - : i0.Value(awsRegion), + bucketName: + bucketName == null && nullToAbsent + ? const i0.Value.absent() + : i0.Value(bucketName), + awsRegion: + awsRegion == null && nullToAbsent + ? const i0.Value.absent() + : i0.Value(awsRegion), ); } - factory TransferRecord.fromJson(Map json, - {i0.ValueSerializer? serializer}) { + factory TransferRecord.fromJson( + Map json, { + i0.ValueSerializer? serializer, + }) { serializer ??= i0.driftRuntimeOptions.defaultSerializer; return TransferRecord( id: serializer.fromJson(json['id']), @@ -398,21 +515,21 @@ class TransferRecord extends i0.DataClass }; } - i1.TransferRecord copyWith( - {int? id, - String? uploadId, - String? objectKey, - String? createdAt, - i0.Value bucketName = const i0.Value.absent(), - i0.Value awsRegion = const i0.Value.absent()}) => - i1.TransferRecord( - id: id ?? this.id, - uploadId: uploadId ?? this.uploadId, - objectKey: objectKey ?? this.objectKey, - createdAt: createdAt ?? this.createdAt, - bucketName: bucketName.present ? bucketName.value : this.bucketName, - awsRegion: awsRegion.present ? awsRegion.value : this.awsRegion, - ); + i1.TransferRecord copyWith({ + int? id, + String? uploadId, + String? objectKey, + String? createdAt, + i0.Value bucketName = const i0.Value.absent(), + i0.Value awsRegion = const i0.Value.absent(), + }) => i1.TransferRecord( + id: id ?? this.id, + uploadId: uploadId ?? this.uploadId, + objectKey: objectKey ?? this.objectKey, + createdAt: createdAt ?? this.createdAt, + bucketName: bucketName.present ? bucketName.value : this.bucketName, + awsRegion: awsRegion.present ? awsRegion.value : this.awsRegion, + ); TransferRecord copyWithCompanion(i1.TransferRecordsCompanion data) { return TransferRecord( id: data.id.present ? data.id.value : this.id, @@ -475,9 +592,9 @@ class TransferRecordsCompanion extends i0.UpdateCompanion { required String createdAt, this.bucketName = const i0.Value.absent(), this.awsRegion = const i0.Value.absent(), - }) : uploadId = i0.Value(uploadId), - objectKey = i0.Value(objectKey), - createdAt = i0.Value(createdAt); + }) : uploadId = i0.Value(uploadId), + objectKey = i0.Value(objectKey), + createdAt = i0.Value(createdAt); static i0.Insertable custom({ i0.Expression? id, i0.Expression? uploadId, @@ -496,13 +613,14 @@ class TransferRecordsCompanion extends i0.UpdateCompanion { }); } - i1.TransferRecordsCompanion copyWith( - {i0.Value? id, - i0.Value? uploadId, - i0.Value? objectKey, - i0.Value? createdAt, - i0.Value? bucketName, - i0.Value? awsRegion}) { + i1.TransferRecordsCompanion copyWith({ + i0.Value? id, + i0.Value? uploadId, + i0.Value? objectKey, + i0.Value? createdAt, + i0.Value? bucketName, + i0.Value? awsRegion, + }) { return i1.TransferRecordsCompanion( id: id ?? this.id, uploadId: uploadId ?? this.uploadId, diff --git a/packages/storage/amplify_storage_s3_dart/pubspec.yaml b/packages/storage/amplify_storage_s3_dart/pubspec.yaml index 18b38a79f4..20c24c40a2 100644 --- a/packages/storage/amplify_storage_s3_dart/pubspec.yaml +++ b/packages/storage/amplify_storage_s3_dart/pubspec.yaml @@ -1,35 +1,35 @@ name: amplify_storage_s3_dart description: A Dart-only implementation of the Amplify Storage plugin for S3. -version: 0.4.9 +version: 0.4.10 homepage: https://docs.amplify.aws/lib/q/platform/flutter/ repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/storage/amplify_storage_s3_dart issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - amplify_core: ">=2.6.1 <2.7.0" - amplify_db_common_dart: ">=0.4.9 <0.5.0" + amplify_core: ">=2.6.2 <2.7.0" + amplify_db_common_dart: ">=0.4.10 <0.5.0" async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" - aws_signature_v4: ">=0.6.4 <0.7.0" + aws_common: ">=0.7.7 <0.8.0" + aws_signature_v4: ">=0.6.5 <0.7.0" built_collection: ^5.0.0 built_value: ^8.6.0 drift: ^2.25.0 fixnum: ^1.0.0 json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" - smithy: ">=0.7.4 <0.8.0" - smithy_aws: ">=0.7.4 <0.8.0" + smithy: ">=0.7.5 <0.8.0" + smithy_aws: ">=0.7.5 <0.8.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 build_verify: ^3.0.0 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 drift_dev: ^2.25.1 - json_serializable: 6.8.0 + json_serializable: ^6.9.4 mocktail: ^1.0.0 test: ^1.22.1 diff --git a/packages/storage/amplify_storage_s3_dart/test/amplify_storage_s3_dart_test.dart b/packages/storage/amplify_storage_s3_dart/test/amplify_storage_s3_dart_test.dart index db95a371d2..4bd4e97ca1 100644 --- a/packages/storage/amplify_storage_s3_dart/test/amplify_storage_s3_dart_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/amplify_storage_s3_dart_test.dart @@ -15,27 +15,29 @@ import 'test_utils/test_token_provider.dart'; const testPath = StoragePath.fromString('some/path.txt'); void main() { - final testConfig = const AmplifyConfig( - storage: StorageConfig( - plugins: { - S3PluginConfig.pluginKey: S3PluginConfig( - bucket: '123', - region: 'west-2', + final testConfig = + const AmplifyConfig( + storage: StorageConfig( + plugins: { + S3PluginConfig.pluginKey: S3PluginConfig( + bucket: '123', + region: 'west-2', + ), + }, ), - }, - ), - // ignore: invalid_use_of_internal_member - ).toAmplifyOutputs(); - - final testAuthProviderRepo = AmplifyAuthProviderRepository() - ..registerAuthProvider( - APIAuthorizationType.userPools.authProviderToken, - TestTokenIdentityProvider(), - ) - ..registerAuthProvider( - APIAuthorizationType.iam.authProviderToken, - TestIamAuthProvider(), - ); + // ignore: invalid_use_of_internal_member + ).toAmplifyOutputs(); + + final testAuthProviderRepo = + AmplifyAuthProviderRepository() + ..registerAuthProvider( + APIAuthorizationType.userPools.authProviderToken, + TestTokenIdentityProvider(), + ) + ..registerAuthProvider( + APIAuthorizationType.iam.authProviderToken, + TestIamAuthProvider(), + ); group('AmplifyStorageS3Dart', () { late DependencyManager dependencyManager; @@ -88,53 +90,41 @@ void main() { final testResult = S3ListResult( [], hasNextPage: false, - metadata: S3ListMetadata.fromS3CommonPrefixes( - commonPrefixes: [], - ), + metadata: S3ListMetadata.fromS3CommonPrefixes(commonPrefixes: []), ); setUpAll(() { - registerFallbackValue( - const StorageListOptions(), - ); + registerFallbackValue(const StorageListOptions()); }); - test('should forward default options to StorageS3Service.list() API', - () async { - const defaultOptions = - StorageListOptions(pluginOptions: S3ListPluginOptions()); - - when( - () => storageS3Service.list( - path: testPath, - options: defaultOptions, - ), - ).thenAnswer( - (_) async => testResult, - ); - - final listOperation = storageS3Plugin.list(path: testPath); - - final capturedOptions = verify( - () => storageS3Service.list( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; - - expect( - capturedOptions, - defaultOptions, - ); - - final result = await listOperation.result; - expect( - result, - testResult, - ); - }); + test( + 'should forward default options to StorageS3Service.list() API', + () async { + const defaultOptions = StorageListOptions( + pluginOptions: S3ListPluginOptions(), + ); + + when( + () => + storageS3Service.list(path: testPath, options: defaultOptions), + ).thenAnswer((_) async => testResult); + + final listOperation = storageS3Plugin.list(path: testPath); + + final capturedOptions = + verify( + () => storageS3Service.list( + path: testPath, + options: captureAny(named: 'options'), + ), + ).captured.last; + + expect(capturedOptions, defaultOptions); + + final result = await listOperation.result; + expect(result, testResult); + }, + ); test('should forward options to StorageS3Service.list() API', () async { const testOptions = StorageListOptions( @@ -147,38 +137,26 @@ void main() { ); when( - () => storageS3Service.list( - path: testPath, - options: testOptions, - ), - ).thenAnswer( - (_) async => testResult, - ); + () => storageS3Service.list(path: testPath, options: testOptions), + ).thenAnswer((_) async => testResult); final listOperation = storageS3Plugin.list( path: testPath, options: testOptions, ); - final capturedOptions = verify( - () => storageS3Service.list( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; + final capturedOptions = + verify( + () => storageS3Service.list( + path: testPath, + options: captureAny(named: 'options'), + ), + ).captured.last; - expect( - capturedOptions, - testOptions, - ); + expect(capturedOptions, testOptions); final result = await listOperation.result; - expect( - result, - testResult, - ); + expect(result, testResult); }); }); @@ -190,156 +168,129 @@ void main() { lastModified: DateTime(2022, 9, 19), eTag: '12345', size: 1024, - metadata: { - 'filename': 'file.jpg', - 'uploader': 'user-id', - }, + metadata: {'filename': 'file.jpg', 'uploader': 'user-id'}, ), ); setUpAll(() { - registerFallbackValue( - const StorageGetPropertiesOptions(), - ); + registerFallbackValue(const StorageGetPropertiesOptions()); }); test( - 'should forward default options to StorageS3Service.getProperties() API', - () async { - const defaultOptions = StorageGetPropertiesOptions( - pluginOptions: S3GetPropertiesPluginOptions(), - ); + 'should forward default options to StorageS3Service.getProperties() API', + () async { + const defaultOptions = StorageGetPropertiesOptions( + pluginOptions: S3GetPropertiesPluginOptions(), + ); + + when( + () => storageS3Service.getProperties( + path: testPath, + options: defaultOptions, + ), + ).thenAnswer((_) async => testResult); - when( - () => storageS3Service.getProperties( + final getPropertiesOperation = storageS3Plugin.getProperties( path: testPath, - options: defaultOptions, - ), - ).thenAnswer( - (_) async => testResult, - ); + ); - final getPropertiesOperation = - storageS3Plugin.getProperties(path: testPath); + final capturedOptions = + verify( + () => storageS3Service.getProperties( + path: testPath, + options: captureAny( + named: 'options', + ), + ), + ).captured.last; - final capturedOptions = verify( - () => storageS3Service.getProperties( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; + expect(capturedOptions, defaultOptions); - expect( - capturedOptions, - defaultOptions, - ); + final result = await getPropertiesOperation.result; - final result = await getPropertiesOperation.result; + expect(result, testResult); + }, + ); - expect( - result, - testResult, - ); - }); + test( + 'should forward options to StorageS3Service.getProperties() API', + () async { + const testOptions = StorageGetPropertiesOptions( + pluginOptions: S3GetPropertiesPluginOptions(), + bucket: StorageBucket.fromBucketInfo( + BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), + ), + ); - test('should forward options to StorageS3Service.getProperties() API', - () async { - const testOptions = StorageGetPropertiesOptions( - pluginOptions: S3GetPropertiesPluginOptions(), - bucket: StorageBucket.fromBucketInfo( - BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), - ), - ); + when( + () => storageS3Service.getProperties( + path: testPath, + options: testOptions, + ), + ).thenAnswer((_) async => testResult); - when( - () => storageS3Service.getProperties( + final getPropertiesOperation = storageS3Plugin.getProperties( path: testPath, options: testOptions, - ), - ).thenAnswer( - (_) async => testResult, - ); - - final getPropertiesOperation = storageS3Plugin.getProperties( - path: testPath, - options: testOptions, - ); - - final capturedOptions = verify( - () => storageS3Service.getProperties( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; - - expect( - capturedOptions, - testOptions, - ); - - final result = await getPropertiesOperation.result; - expect(result, testResult); - }); + ); + + final capturedOptions = + verify( + () => storageS3Service.getProperties( + path: testPath, + options: captureAny( + named: 'options', + ), + ), + ).captured.last; + + expect(capturedOptions, testOptions); + + final result = await getPropertiesOperation.result; + expect(result, testResult); + }, + ); }); group('getUrl() API', () { final testResult = S3GetUrlResult( - url: Uri( - host: 's3.amazon.aws', - path: 'album/1.jpg', - scheme: 'https', - ), + url: Uri(host: 's3.amazon.aws', path: 'album/1.jpg', scheme: 'https'), ); setUpAll(() { - registerFallbackValue( - const StorageGetUrlOptions(), - ); + registerFallbackValue(const StorageGetUrlOptions()); }); - test('should forward default options to StorageS3Service.getUrl() API', - () async { - const defaultOptions = StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions(), - ); + test( + 'should forward default options to StorageS3Service.getUrl() API', + () async { + const defaultOptions = StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions(), + ); + + when( + () => storageS3Service.getUrl( + path: testPath, + options: defaultOptions, + ), + ).thenAnswer((_) async => testResult); - when( - () => storageS3Service.getUrl( - path: testPath, - options: defaultOptions, - ), - ).thenAnswer( - (_) async => testResult, - ); + final getUrlOperation = storageS3Plugin.getUrl(path: testPath); - final getUrlOperation = storageS3Plugin.getUrl( - path: testPath, - ); + final capturedOptions = + verify( + () => storageS3Service.getUrl( + path: testPath, + options: captureAny(named: 'options'), + ), + ).captured.last; - final capturedOptions = verify( - () => storageS3Service.getUrl( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; + expect(capturedOptions, defaultOptions); - expect( - capturedOptions, - defaultOptions, - ); - - final result = await getUrlOperation.result; - expect( - result, - testResult, - ); - }); + final result = await getUrlOperation.result; + expect(result, testResult); + }, + ); test('should forward options to StorageS3Service.getUrl() API', () async { const testOptions = StorageGetUrlOptions( @@ -354,38 +305,26 @@ void main() { ); when( - () => storageS3Service.getUrl( - path: testPath, - options: testOptions, - ), - ).thenAnswer( - (_) async => testResult, - ); + () => storageS3Service.getUrl(path: testPath, options: testOptions), + ).thenAnswer((_) async => testResult); final getUrlOperation = storageS3Plugin.getUrl( path: testPath, options: testOptions, ); - final capturedOptions = verify( - () => storageS3Service.getUrl( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; + final capturedOptions = + verify( + () => storageS3Service.getUrl( + path: testPath, + options: captureAny(named: 'options'), + ), + ).captured.last; - expect( - capturedOptions, - testOptions, - ); + expect(capturedOptions, testOptions); final result = await getUrlOperation.result; - expect( - result, - testResult, - ); + expect(result, testResult); }); }); @@ -396,18 +335,13 @@ void main() { lastModified: DateTime(2022, 9, 19), eTag: '12345', size: 1024, - metadata: { - 'filename': 'file.jpg', - 'uploader': 'user-id', - }, + metadata: {'filename': 'file.jpg', 'uploader': 'user-id'}, ); final testS3DownloadTask = MockS3DownloadTask(); late S3DownloadDataOperation downloadDataOperation; setUpAll(() { - registerFallbackValue( - const StorageDownloadDataOptions(), - ); + registerFallbackValue(const StorageDownloadDataOptions()); registerFallbackValue(const StoragePath.fromString('public/$testKey')); registerFallbackValue( StoragePathFromIdentityId( @@ -417,112 +351,116 @@ void main() { }); test( - 'should forward default options to StorageS3Service.downloadData API', - () async { - const defaultOptions = StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions(), - ); - - when( - () => storageS3Service.downloadData( - path: const StoragePath.fromString('public/$testKey'), - options: defaultOptions, - preStart: any(named: 'preStart'), - onProgress: any(named: 'onProgress'), - onData: any(named: 'onData'), - onDone: any(named: 'onDone'), - ), - ).thenAnswer((_) => testS3DownloadTask); - - when(() => testS3DownloadTask.result).thenAnswer((_) async => testItem); - - downloadDataOperation = storageS3Plugin.downloadData( - path: const StoragePath.fromString('public/$testKey'), - ); - - final capturedOptions = verify( - () => storageS3Service.downloadData( - path: const StoragePath.fromString('public/$testKey'), - options: captureAny( - named: 'options', + 'should forward default options to StorageS3Service.downloadData API', + () async { + const defaultOptions = StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions(), + ); + + when( + () => storageS3Service.downloadData( + path: const StoragePath.fromString('public/$testKey'), + options: defaultOptions, + preStart: any(named: 'preStart'), + onProgress: any(named: 'onProgress'), + onData: any(named: 'onData'), + onDone: any(named: 'onDone'), ), - preStart: any(named: 'preStart'), - onProgress: any(named: 'onProgress'), - onData: any(named: 'onData'), - onDone: any(named: 'onDone'), - ), - ).captured.last; + ).thenAnswer((_) => testS3DownloadTask); - expect( - capturedOptions, - defaultOptions, - ); - - final result = await downloadDataOperation.result; - expect(result.bytes.isEmpty, true); - expect(result.downloadedItem, testItem); - }); + when( + () => testS3DownloadTask.result, + ).thenAnswer((_) async => testItem); - test('should forward options to StorageS3Service.downloadData API', - () async { - const testOptions = StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - useAccelerateEndpoint: true, - getProperties: true, - ), - bucket: StorageBucket.fromBucketInfo( - BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), - ), - ); + downloadDataOperation = storageS3Plugin.downloadData( + path: const StoragePath.fromString('public/$testKey'), + ); + + final capturedOptions = + verify( + () => storageS3Service.downloadData( + path: const StoragePath.fromString('public/$testKey'), + options: captureAny( + named: 'options', + ), + preStart: any(named: 'preStart'), + onProgress: any(named: 'onProgress'), + onData: any(named: 'onData'), + onDone: any(named: 'onDone'), + ), + ).captured.last; + + expect(capturedOptions, defaultOptions); + + final result = await downloadDataOperation.result; + expect(result.bytes.isEmpty, true); + expect(result.downloadedItem, testItem); + }, + ); - when( - () => storageS3Service.downloadData( - path: any(named: 'path'), - options: any(named: 'options'), - onData: any(named: 'onData'), - ), - ).thenAnswer((_) => testS3DownloadTask); + test( + 'should forward options to StorageS3Service.downloadData API', + () async { + const testOptions = StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions( + useAccelerateEndpoint: true, + getProperties: true, + ), + bucket: StorageBucket.fromBucketInfo( + BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), + ), + ); - when(() => testS3DownloadTask.result).thenAnswer((_) async => testItem); + when( + () => storageS3Service.downloadData( + path: any(named: 'path'), + options: any(named: 'options'), + onData: any(named: 'onData'), + ), + ).thenAnswer((_) => testS3DownloadTask); - downloadDataOperation = storageS3Plugin.downloadData( - path: StoragePath.fromIdentityId( - (identityId) => 'protected/$identityId/$testKey', - ), - options: testOptions, - ); + when( + () => testS3DownloadTask.result, + ).thenAnswer((_) async => testItem); - final capturedOptions = verify( - () => storageS3Service.downloadData( - path: any(named: 'path'), - onData: any(named: 'onData'), - options: captureAny( - named: 'options', + downloadDataOperation = storageS3Plugin.downloadData( + path: StoragePath.fromIdentityId( + (identityId) => 'protected/$identityId/$testKey', ), - ), - ).captured.last; - - expect( - capturedOptions, - testOptions, - ); - }); + options: testOptions, + ); + + final capturedOptions = + verify( + () => storageS3Service.downloadData( + path: any(named: 'path'), + onData: any(named: 'onData'), + options: captureAny( + named: 'options', + ), + ), + ).captured.last; + + expect(capturedOptions, testOptions); + }, + ); test( - 'S3DownloadDataOperation pause resume and cancel APIs should interact with S3DownloadTask', - () async { - when(testS3DownloadTask.pause).thenAnswer((_) async {}); - when(testS3DownloadTask.resume).thenAnswer((_) async {}); - when(testS3DownloadTask.cancel).thenAnswer((_) async {}); - - await downloadDataOperation.pause(); - await downloadDataOperation.resume(); - await downloadDataOperation.cancel(); - - verify(testS3DownloadTask.pause).called(1); - verify(testS3DownloadTask.resume).called(1); - verify(testS3DownloadTask.cancel).called(1); - }); + 'S3DownloadDataOperation pause resume and cancel APIs should interact with S3DownloadTask', + () async { + when(testS3DownloadTask.pause).thenAnswer((_) async {}); + when(testS3DownloadTask.resume).thenAnswer((_) async {}); + when(testS3DownloadTask.cancel).thenAnswer((_) async {}); + + await downloadDataOperation.pause(); + await downloadDataOperation.resume(); + await downloadDataOperation.cancel(); + + verify(testS3DownloadTask.pause).called(1); + verify(testS3DownloadTask.resume).called(1); + verify(testS3DownloadTask.cancel).called(1); + }, + ); }); group('uploadData() API', () { @@ -533,182 +471,165 @@ void main() { lastModified: DateTime(2022, 10, 14), eTag: '12345', size: 1024, - metadata: { - 'filename': 'file.jpg', - 'uploader': 'user-id', - }, + metadata: {'filename': 'file.jpg', 'uploader': 'user-id'}, ); final testS3UploadTask = MockS3UploadTask(); late S3UploadDataOperation uploadDataOperation; setUpAll(() { - registerFallbackValue( - const StorageUploadDataOptions(), - ); + registerFallbackValue(const StorageUploadDataOptions()); registerFallbackValue(const S3DataPayload.empty()); registerFallbackValue( const StorageBucket.fromBucketInfo( - BucketInfo( - bucketName: 'bucketName', - region: 'region', - ), + BucketInfo(bucketName: 'bucketName', region: 'region'), ), ); }); - test('should forward default options to StorageS3Service.uploadData API', - () async { - const defaultOptions = StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions(), - ); - - when( - () => storageS3Service.uploadData( - path: testPath, - dataPayload: any(named: 'dataPayload'), - options: defaultOptions, - onProgress: any(named: 'onProgress'), - onDone: any(named: 'onDone'), - onError: any(named: 'onError'), - ), - ).thenAnswer((_) => testS3UploadTask); - - when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - - final uploadDataOperation = storageS3Plugin.uploadData( - data: testData, - path: testPath, - ); - - final capturedParams = verify( - () => storageS3Service.uploadData( - path: testPath, - dataPayload: captureAny(named: 'dataPayload'), - options: captureAny( - named: 'options', + test( + 'should forward default options to StorageS3Service.uploadData API', + () async { + const defaultOptions = StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions(), + ); + + when( + () => storageS3Service.uploadData( + path: testPath, + dataPayload: any(named: 'dataPayload'), + options: defaultOptions, + onProgress: any(named: 'onProgress'), + onDone: any(named: 'onDone'), + onError: any(named: 'onError'), ), - onProgress: any(named: 'onProgress'), - onDone: any(named: 'onDone'), - onError: any(named: 'onError'), - ), - ).captured; + ).thenAnswer((_) => testS3UploadTask); - final capturedDataPayload = capturedParams[0]; - final capturedOptions = capturedParams[1]; + when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - expect( - capturedDataPayload, - testData, - ); - expect( - capturedOptions, - defaultOptions, - ); + final uploadDataOperation = storageS3Plugin.uploadData( + data: testData, + path: testPath, + ); + + final capturedParams = + verify( + () => storageS3Service.uploadData( + path: testPath, + dataPayload: captureAny(named: 'dataPayload'), + options: captureAny( + named: 'options', + ), + onProgress: any(named: 'onProgress'), + onDone: any(named: 'onDone'), + onError: any(named: 'onError'), + ), + ).captured; + + final capturedDataPayload = capturedParams[0]; + final capturedOptions = capturedParams[1]; + + expect(capturedDataPayload, testData); + expect(capturedOptions, defaultOptions); + + final result = await uploadDataOperation.result; + expect(result.uploadedItem, testItem); + }, + ); - final result = await uploadDataOperation.result; - expect( - result.uploadedItem, - testItem, - ); - }); + test( + 'should forward options to StorageS3Service.uploadData API', + () async { + const testOptions = StorageUploadDataOptions( + bucket: StorageBucket.fromBucketInfo( + BucketInfo(bucketName: 'test-bucket', region: 'test-region'), + ), + pluginOptions: S3UploadDataPluginOptions( + getProperties: true, + useAccelerateEndpoint: true, + ), + ); - test('should forward options to StorageS3Service.uploadData API', - () async { - const testOptions = StorageUploadDataOptions( - bucket: StorageBucket.fromBucketInfo( - BucketInfo( - bucketName: 'test-bucket', - region: 'test-region', + when( + () => storageS3Service.uploadData( + path: testPath, + dataPayload: any(named: 'dataPayload'), + options: testOptions, ), - ), - pluginOptions: S3UploadDataPluginOptions( - getProperties: true, - useAccelerateEndpoint: true, - ), - ); + ).thenAnswer((_) => testS3UploadTask); - when( - () => storageS3Service.uploadData( + when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); + uploadDataOperation = storageS3Plugin.uploadData( + data: testData, path: testPath, - dataPayload: any(named: 'dataPayload'), options: testOptions, - ), - ).thenAnswer((_) => testS3UploadTask); + ); + final capturedOptions = + verify( + () => storageS3Service.uploadData( + path: testPath, + dataPayload: any(named: 'dataPayload'), + options: captureAny( + named: 'options', + ), + ), + ).captured.last; + + expect(capturedOptions, testOptions); + }, + ); - when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - uploadDataOperation = storageS3Plugin.uploadData( - data: testData, - path: testPath, - options: testOptions, - ); - final capturedOptions = verify( - () => storageS3Service.uploadData( - path: testPath, - dataPayload: any(named: 'dataPayload'), - options: captureAny( - named: 'options', + test( + 'should forward options.metadata to StorageS3Service.uploadData API', + () async { + const testMetadata = {'filename': '123'}; + const testOptions = StorageUploadDataOptions(metadata: testMetadata); + + when( + () => storageS3Service.uploadData( + path: testPath, + dataPayload: any(named: 'dataPayload'), + options: any(named: 'options'), ), - ), - ).captured.last; - - expect( - capturedOptions, - testOptions, - ); - }); - - test('should forward options.metadata to StorageS3Service.uploadData API', - () async { - const testMetadata = { - 'filename': '123', - }; - const testOptions = StorageUploadDataOptions( - metadata: testMetadata, - ); - - when( - () => storageS3Service.uploadData( - path: testPath, - dataPayload: any(named: 'dataPayload'), - options: any(named: 'options'), - ), - ).thenAnswer((_) => testS3UploadTask); + ).thenAnswer((_) => testS3UploadTask); - when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - uploadDataOperation = storageS3Plugin.uploadData( - data: testData, - path: testPath, - options: testOptions, - ); - final capturedOptions = verify( - () => storageS3Service.uploadData( + when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); + uploadDataOperation = storageS3Plugin.uploadData( + data: testData, path: testPath, - dataPayload: any(named: 'dataPayload'), - options: captureAny( - named: 'options', + options: testOptions, + ); + final capturedOptions = + verify( + () => storageS3Service.uploadData( + path: testPath, + dataPayload: any(named: 'dataPayload'), + options: captureAny( + named: 'options', + ), + ), + ).captured.last; + + expect( + capturedOptions, + isA().having( + (o) => o.metadata, + 'options.metadata', + equals(testMetadata), ), - ), - ).captured.last; - - expect( - capturedOptions, - isA().having( - (o) => o.metadata, - 'options.metadata', - equals(testMetadata), - ), - ); - }); + ); + }, + ); test( - 'S3UploadDataOperation cancel APIs should interact with S3DownloadTask', - () async { - when(testS3UploadTask.cancel).thenAnswer((_) async {}); + 'S3UploadDataOperation cancel APIs should interact with S3DownloadTask', + () async { + when(testS3UploadTask.cancel).thenAnswer((_) async {}); - await uploadDataOperation.cancel(); + await uploadDataOperation.cancel(); - verify(testS3UploadTask.cancel).called(1); - }); + verify(testS3UploadTask.cancel).called(1); + }, + ); }); group('uploadFile() API', () { @@ -719,180 +640,172 @@ void main() { lastModified: DateTime(2022, 10, 14), eTag: '12345', size: 1024, - metadata: { - 'filename': 'file.jpg', - 'uploader': 'user-id', - }, + metadata: {'filename': 'file.jpg', 'uploader': 'user-id'}, ); final testS3UploadTask = MockS3UploadTask(); late S3UploadFileOperation uploadFileOperation; setUpAll(() { - registerFallbackValue( - const StorageUploadFileOptions(), - ); + registerFallbackValue(const StorageUploadFileOptions()); registerFallbackValue(const S3DataPayload.empty()); registerFallbackValue(AWSFile.fromData([])); }); - test('should forward default options to StorageS3Service.uploadFile API', - () async { - const defaultOptions = StorageUploadFileOptions( - pluginOptions: S3UploadFilePluginOptions(), - ); - - when( - () => storageS3Service.uploadFile( - path: testPath, - localFile: any(named: 'localFile'), - options: defaultOptions, - onProgress: any(named: 'onProgress'), - onDone: any(named: 'onDone'), - onError: any(named: 'onError'), - ), - ).thenAnswer((_) => testS3UploadTask); - - when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - - uploadFileOperation = storageS3Plugin.uploadFile( - path: testPath, - localFile: testLocalFile, - ); - - final capturedParams = verify( - () => storageS3Service.uploadFile( - path: testPath, - localFile: captureAny(named: 'localFile'), - options: captureAny( - named: 'options', + test( + 'should forward default options to StorageS3Service.uploadFile API', + () async { + const defaultOptions = StorageUploadFileOptions( + pluginOptions: S3UploadFilePluginOptions(), + ); + + when( + () => storageS3Service.uploadFile( + path: testPath, + localFile: any(named: 'localFile'), + options: defaultOptions, + onProgress: any(named: 'onProgress'), + onDone: any(named: 'onDone'), + onError: any(named: 'onError'), ), - onProgress: any(named: 'onProgress'), - onDone: any(named: 'onDone'), - onError: any(named: 'onError'), - ), - ).captured; + ).thenAnswer((_) => testS3UploadTask); - final capturedLocalFile = capturedParams[0]; - final capturedOptions = capturedParams[1]; + when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - expect( - capturedLocalFile, - testLocalFile, - ); - - expect( - capturedOptions, - defaultOptions, - ); - - final result = await uploadFileOperation.result; - expect(result.uploadedItem, testItem); - }); - - test('should forward options to StorageS3Service.uploadFile API', - () async { - const testOptions = StorageUploadFileOptions( - pluginOptions: S3UploadFilePluginOptions( - getProperties: true, - useAccelerateEndpoint: true, - ), - bucket: StorageBucket.fromBucketInfo( - BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), - ), - ); - - when( - () => storageS3Service.uploadFile( + uploadFileOperation = storageS3Plugin.uploadFile( path: testPath, - localFile: any(named: 'localFile'), - options: testOptions, - ), - ).thenAnswer((_) => testS3UploadTask); - - when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - - uploadFileOperation = storageS3Plugin.uploadFile( - path: testPath, - localFile: testLocalFile, - options: testOptions, - ); + localFile: testLocalFile, + ); + + final capturedParams = + verify( + () => storageS3Service.uploadFile( + path: testPath, + localFile: captureAny(named: 'localFile'), + options: captureAny( + named: 'options', + ), + onProgress: any(named: 'onProgress'), + onDone: any(named: 'onDone'), + onError: any(named: 'onError'), + ), + ).captured; + + final capturedLocalFile = capturedParams[0]; + final capturedOptions = capturedParams[1]; + + expect(capturedLocalFile, testLocalFile); + + expect(capturedOptions, defaultOptions); + + final result = await uploadFileOperation.result; + expect(result.uploadedItem, testItem); + }, + ); - final capturedOptions = verify( - () => storageS3Service.uploadFile( - path: testPath, - localFile: any(named: 'localFile'), - options: captureAny( - named: 'options', + test( + 'should forward options to StorageS3Service.uploadFile API', + () async { + const testOptions = StorageUploadFileOptions( + pluginOptions: S3UploadFilePluginOptions( + getProperties: true, + useAccelerateEndpoint: true, ), - ), - ).captured.last; + bucket: StorageBucket.fromBucketInfo( + BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), + ), + ); - expect( - capturedOptions, - testOptions, - ); - }); + when( + () => storageS3Service.uploadFile( + path: testPath, + localFile: any(named: 'localFile'), + options: testOptions, + ), + ).thenAnswer((_) => testS3UploadTask); - test('should forward options.metadata to StorageS3Service.uploadFile API', - () async { - const testMetadata = { - 'filename': '123', - }; - const testOptions = StorageUploadFileOptions( - metadata: testMetadata, - ); + when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - when( - () => storageS3Service.uploadFile( + uploadFileOperation = storageS3Plugin.uploadFile( path: testPath, - localFile: any(named: 'localFile'), - options: any(named: 'options'), - ), - ).thenAnswer((_) => testS3UploadTask); + localFile: testLocalFile, + options: testOptions, + ); + + final capturedOptions = + verify( + () => storageS3Service.uploadFile( + path: testPath, + localFile: any(named: 'localFile'), + options: captureAny( + named: 'options', + ), + ), + ).captured.last; + + expect(capturedOptions, testOptions); + }, + ); - when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); + test( + 'should forward options.metadata to StorageS3Service.uploadFile API', + () async { + const testMetadata = {'filename': '123'}; + const testOptions = StorageUploadFileOptions(metadata: testMetadata); + + when( + () => storageS3Service.uploadFile( + path: testPath, + localFile: any(named: 'localFile'), + options: any(named: 'options'), + ), + ).thenAnswer((_) => testS3UploadTask); - uploadFileOperation = storageS3Plugin.uploadFile( - path: testPath, - localFile: testLocalFile, - options: testOptions, - ); + when(() => testS3UploadTask.result).thenAnswer((_) async => testItem); - final capturedOptions = verify( - () => storageS3Service.uploadFile( + uploadFileOperation = storageS3Plugin.uploadFile( path: testPath, - localFile: any(named: 'localFile'), - options: captureAny( - named: 'options', + localFile: testLocalFile, + options: testOptions, + ); + + final capturedOptions = + verify( + () => storageS3Service.uploadFile( + path: testPath, + localFile: any(named: 'localFile'), + options: captureAny( + named: 'options', + ), + ), + ).captured.last; + + expect( + capturedOptions, + isA().having( + (o) => o.metadata, + 'options.metadata', + equals(testMetadata), ), - ), - ).captured.last; - - expect( - capturedOptions, - isA().having( - (o) => o.metadata, - 'options.metadata', - equals(testMetadata), - ), - ); - }); + ); + }, + ); test( - 'S3DownloadUploadOperation pause resume and cancel APIs should interact with S3DownloadTask', - () async { - when(testS3UploadTask.pause).thenAnswer((_) async {}); - when(testS3UploadTask.resume).thenAnswer((_) async {}); - when(testS3UploadTask.cancel).thenAnswer((_) async {}); - - await uploadFileOperation.pause(); - await uploadFileOperation.resume(); - await uploadFileOperation.cancel(); - - verify(testS3UploadTask.pause).called(1); - verify(testS3UploadTask.resume).called(1); - verify(testS3UploadTask.cancel).called(1); - }); + 'S3DownloadUploadOperation pause resume and cancel APIs should interact with S3DownloadTask', + () async { + when(testS3UploadTask.pause).thenAnswer((_) async {}); + when(testS3UploadTask.resume).thenAnswer((_) async {}); + when(testS3UploadTask.cancel).thenAnswer((_) async {}); + + await uploadFileOperation.pause(); + await uploadFileOperation.resume(); + await uploadFileOperation.cancel(); + + verify(testS3UploadTask.pause).called(1); + verify(testS3UploadTask.resume).called(1); + verify(testS3UploadTask.cancel).called(1); + }, + ); }); group('copy() API', () { @@ -931,15 +844,14 @@ void main() { ), ); - final captured = verify( - () => storageS3Service.copy( - source: captureAny(named: 'source'), - destination: captureAny(named: 'destination'), - options: captureAny( - named: 'options', - ), - ), - ).captured; + final captured = + verify( + () => storageS3Service.copy( + source: captureAny(named: 'source'), + destination: captureAny(named: 'destination'), + options: captureAny(named: 'options'), + ), + ).captured; final capturedSource = captured[0]; final capturedDestination = captured[1]; final capturedOptions = captured[2]; @@ -950,11 +862,7 @@ void main() { expect( capturedOptions, isA() - .having( - (o) => o.pluginOptions, - 'pluginOptions', - isNotNull, - ) + .having((o) => o.pluginOptions, 'pluginOptions', isNotNull) .having( (o) => (o.pluginOptions as S3CopyPluginOptions).getProperties, 'getProperties', @@ -969,55 +877,44 @@ void main() { group('remove() API', () { const testKey = 'object-to-remove'; - final testResult = S3RemoveResult( - removedItem: S3Item( - path: testKey, - ), - ); + final testResult = S3RemoveResult(removedItem: S3Item(path: testKey)); setUpAll(() { - registerFallbackValue( - const StorageRemoveOptions(), - ); + registerFallbackValue(const StorageRemoveOptions()); }); - test('should forward default options to StorageS3Service.remove() API', - () async { - const defaultOptions = StorageRemoveOptions( - pluginOptions: S3RemovePluginOptions(), - ); - when( - () => storageS3Service.remove( + test( + 'should forward default options to StorageS3Service.remove() API', + () async { + const defaultOptions = StorageRemoveOptions( + pluginOptions: S3RemovePluginOptions(), + ); + when( + () => storageS3Service.remove( + path: testPath, + options: defaultOptions, + ), + ).thenAnswer((_) async => testResult); + + final removeOperation = storageS3Plugin.remove( path: testPath, options: defaultOptions, - ), - ).thenAnswer((_) async => testResult); - - final removeOperation = storageS3Plugin.remove( - path: testPath, - options: defaultOptions, - ); + ); - final capturedOptions = verify( - () => storageS3Service.remove( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; + final capturedOptions = + verify( + () => storageS3Service.remove( + path: testPath, + options: captureAny(named: 'options'), + ), + ).captured.last; - expect( - capturedOptions, - defaultOptions, - ); + expect(capturedOptions, defaultOptions); - final result = await removeOperation.result; - expect( - result, - testResult, - ); - }); + final result = await removeOperation.result; + expect(result, testResult); + }, + ); test('should forward options to StorageS3Service.remove() API', () async { const testOptions = StorageRemoveOptions( @@ -1039,25 +936,18 @@ void main() { options: testOptions, ); - final capturedOptions = verify( - () => storageS3Service.remove( - path: testPath, - options: captureAny( - named: 'options', - ), - ), - ).captured.last; + final capturedOptions = + verify( + () => storageS3Service.remove( + path: testPath, + options: captureAny(named: 'options'), + ), + ).captured.last; - expect( - capturedOptions, - testOptions, - ); + expect(capturedOptions, testOptions); final result = await removeOperation.result; - expect( - result, - testResult, - ); + expect(result, testResult); }); }); @@ -1069,91 +959,81 @@ void main() { final testPaths = testKeys.map(StoragePath.fromString).toList(); final resultRemoveItems = testKeys.map((key) => S3Item(path: key)).toList(); - final testResult = S3RemoveManyResult( - removedItems: resultRemoveItems, - ); + final testResult = S3RemoveManyResult(removedItems: resultRemoveItems); setUpAll(() { - registerFallbackValue( - const StorageRemoveManyOptions(), - ); + registerFallbackValue(const StorageRemoveManyOptions()); }); test( - 'should forward default options to StorageS3Service.removeMany() API', - () async { - const defaultOptions = StorageRemoveManyOptions( - pluginOptions: S3RemoveManyPluginOptions(), - ); + 'should forward default options to StorageS3Service.removeMany() API', + () async { + const defaultOptions = StorageRemoveManyOptions( + pluginOptions: S3RemoveManyPluginOptions(), + ); + + when( + () => storageS3Service.removeMany( + paths: testPaths, + options: defaultOptions, + ), + ).thenAnswer((_) async => testResult); - when( - () => storageS3Service.removeMany( + final removeManyOperation = storageS3Plugin.removeMany( paths: testPaths, - options: defaultOptions, - ), - ).thenAnswer((_) async => testResult); + ); - final removeManyOperation = - storageS3Plugin.removeMany(paths: testPaths); + final capturedOptions = + verify( + () => storageS3Service.removeMany( + paths: testPaths, + options: captureAny(named: 'options'), + ), + ).captured.last; - final capturedOptions = verify( - () => storageS3Service.removeMany( - paths: testPaths, - options: captureAny(named: 'options'), - ), - ).captured.last; + expect(capturedOptions, defaultOptions); - expect( - capturedOptions, - defaultOptions, - ); + final result = await removeManyOperation.result; + expect(result.removedItems, resultRemoveItems); + }, + ); - final result = await removeManyOperation.result; - expect( - result.removedItems, - resultRemoveItems, - ); - }); + test( + 'should forward options to StorageS3Service.removeMany() API', + () async { + const testOptions = StorageRemoveManyOptions( + pluginOptions: S3RemoveManyPluginOptions(), + bucket: StorageBucket.fromBucketInfo( + BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), + ), + ); - test('should forward options to StorageS3Service.removeMany() API', - () async { - const testOptions = StorageRemoveManyOptions( - pluginOptions: S3RemoveManyPluginOptions(), - bucket: StorageBucket.fromBucketInfo( - BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2'), - ), - ); + when( + () => storageS3Service.removeMany( + paths: testPaths, + options: testOptions, + ), + ).thenAnswer((_) async => testResult); - when( - () => storageS3Service.removeMany( + final removeManyOperation = storageS3Plugin.removeMany( paths: testPaths, options: testOptions, - ), - ).thenAnswer((_) async => testResult); + ); - final removeManyOperation = storageS3Plugin.removeMany( - paths: testPaths, - options: testOptions, - ); + final capturedOptions = + verify( + () => storageS3Service.removeMany( + paths: testPaths, + options: captureAny(named: 'options'), + ), + ).captured.last; - final capturedOptions = verify( - () => storageS3Service.removeMany( - paths: testPaths, - options: captureAny(named: 'options'), - ), - ).captured.last; + expect(capturedOptions, testOptions); - expect( - capturedOptions, - testOptions, - ); - - final result = await removeManyOperation.result; - expect( - result.removedItems, - resultRemoveItems, - ); - }); + final result = await removeManyOperation.result; + expect(result.removedItems, resultRemoveItems); + }, + ); }); }); } diff --git a/packages/storage/amplify_storage_s3_dart/test/ensure_build_test.dart b/packages/storage/amplify_storage_s3_dart/test/ensure_build_test.dart index 7e9a283250..b73a7ad014 100644 --- a/packages/storage/amplify_storage_s3_dart/test/ensure_build_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/ensure_build_test.dart @@ -3,6 +3,7 @@ @TestOn('vm') @Tags(['build']) +library; import 'package:build_verify/build_verify.dart'; import 'package:test/test.dart'; diff --git a/packages/storage/amplify_storage_s3_dart/test/model/storage_s3_item_test.dart b/packages/storage/amplify_storage_s3_dart/test/model/storage_s3_item_test.dart index ad82f0dff9..c5ec0446b8 100644 --- a/packages/storage/amplify_storage_s3_dart/test/model/storage_s3_item_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/model/storage_s3_item_test.dart @@ -23,34 +23,28 @@ void main() { ..lastModified = testLastModified; }); - final storageS3Item = S3Item.fromS3Object( - testS3Object, - ); + final storageS3Item = S3Item.fromS3Object(testS3Object); expect(storageS3Item.eTag, testETag); - expect( - storageS3Item.path, - testKey, - ); + expect(storageS3Item.path, testKey); expect(storageS3Item.lastModified, testLastModified); expect(storageS3Item.size, testSize.toInt()); }); test( - 'should throw StorageUnknownException when S3Object.key is null (should never happen)', - () { - final testS3Object = S3Object.build((builder) { - builder.eTag = testETag; - }); + 'should throw StorageUnknownException when S3Object.key is null (should never happen)', + () { + final testS3Object = S3Object.build((builder) { + builder.eTag = testETag; + }); - try { - S3Item.fromS3Object( - testS3Object, - ); - fail("Expected exception wasn't thrown."); - } on StorageException catch (error) { - expect(error, isA()); - } - }); + try { + S3Item.fromS3Object(testS3Object); + fail("Expected exception wasn't thrown."); + } on StorageException catch (error) { + expect(error, isA()); + } + }, + ); }); } diff --git a/packages/storage/amplify_storage_s3_dart/test/path_resolver/path_resolver_test.dart b/packages/storage/amplify_storage_s3_dart/test/path_resolver/path_resolver_test.dart index b4b59fe77b..91a44c43fe 100644 --- a/packages/storage/amplify_storage_s3_dart/test/path_resolver/path_resolver_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/path_resolver/path_resolver_test.dart @@ -7,9 +7,7 @@ import 'package:test/test.dart'; class MockTokenIdentityAmplifyAuthProvider implements TokenIdentityAmplifyAuthProvider { - MockTokenIdentityAmplifyAuthProvider({ - this.getIdException, - }); + MockTokenIdentityAmplifyAuthProvider({this.getIdException}); Exception? getIdException; int getIdCount = 0; @@ -41,19 +39,16 @@ void main() { test('should resolve static strings', () async { const path = StoragePath.fromString('foo/bar/picture.png'); - expect( - await pathResolver.resolvePath(path: path), - 'foo/bar/picture.png', - ); + expect(await pathResolver.resolvePath(path: path), 'foo/bar/picture.png'); }); test('should resolve multiple static strings', () async { const path1 = StoragePath.fromString('foo/bar/picture1.png'); const path2 = StoragePath.fromString('foo/bar/picture2.png'); - expect( - await pathResolver.resolvePaths(paths: [path1, path2]), - ['foo/bar/picture1.png', 'foo/bar/picture2.png'], - ); + expect(await pathResolver.resolvePaths(paths: [path1, path2]), [ + 'foo/bar/picture1.png', + 'foo/bar/picture2.png', + ]); }); test('should resolve path with identity Id', () async { @@ -71,10 +66,10 @@ void main() { ); final path1 = StoragePath.fromIdentityId((id) => 'foo/$id/picture1.png'); final path2 = StoragePath.fromIdentityId((id) => 'foo/$id/picture2.png'); - expect( - await pathResolver.resolvePaths(paths: [path1, path2]), - ['foo/mock-id/picture1.png', 'foo/mock-id/picture2.png'], - ); + expect(await pathResolver.resolvePaths(paths: [path1, path2]), [ + 'foo/mock-id/picture1.png', + 'foo/mock-id/picture2.png', + ]); expect(tokenAmplifyAuthProvider.getIdCount, 1); }); @@ -95,20 +90,21 @@ void main() { }); test( - 'should throw StorageAccessDeniedException if AuthProvider throws SessionExpiredException', - () async { - final tokenAmplifyAuthProvider = MockTokenIdentityAmplifyAuthProvider( - getIdException: const SessionExpiredException('Session Expired.'), - ); - final pathResolver = S3PathResolver( - identityProvider: tokenAmplifyAuthProvider, - ); - final path = StoragePath.fromIdentityId((id) => 'foo/$id/bar'); - expect( - () => pathResolver.resolvePath(path: path), - throwsA(isA()), - ); - }); + 'should throw StorageAccessDeniedException if AuthProvider throws SessionExpiredException', + () async { + final tokenAmplifyAuthProvider = MockTokenIdentityAmplifyAuthProvider( + getIdException: const SessionExpiredException('Session Expired.'), + ); + final pathResolver = S3PathResolver( + identityProvider: tokenAmplifyAuthProvider, + ); + final path = StoragePath.fromIdentityId((id) => 'foo/$id/bar'); + expect( + () => pathResolver.resolvePath(path: path), + throwsA(isA()), + ); + }, + ); test('should throw UnknownException for any other exception', () async { final tokenAmplifyAuthProvider = MockTokenIdentityAmplifyAuthProvider( diff --git a/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_html_test.dart b/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_html_test.dart index 50f205d91d..10b6c46ab0 100644 --- a/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_html_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_html_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('chrome') +library; import 'package:amplify_core/amplify_core.dart'; import 'package:amplify_core/src/config/amplify_outputs/storage/storage_outputs.dart'; @@ -40,17 +41,10 @@ void main() { lastModified: DateTime(2022, 9, 19), eTag: '12345', size: 1024, - metadata: { - 'filename': 'file.jpg', - 'uploader': 'user-id', - }, + metadata: {'filename': 'file.jpg', 'uploader': 'user-id'}, ); final testGetUrlResult = S3GetUrlResult( - url: Uri( - host: 's3.amazon.aws', - path: 'album/1.jpg', - scheme: 'https', - ), + url: Uri(host: 's3.amazon.aws', path: 'album/1.jpg', scheme: 'https'), ); final testGetPropertiesResult = S3GetPropertiesResult( storageItem: testItem, @@ -59,13 +53,9 @@ void main() { setUpAll(() { storageS3Service = MockStorageS3Service(); - registerFallbackValue( - const StorageGetUrlOptions(), - ); + registerFallbackValue(const StorageGetUrlOptions()); - registerFallbackValue( - const StorageGetPropertiesOptions(), - ); + registerFallbackValue(const StorageGetPropertiesOptions()); registerFallbackValue(const StoragePath.fromString(testKey)); @@ -85,57 +75,54 @@ void main() { }); test( - 'should invoke StorageS3Service.getUrl with converted S3DownloadFilePluginOptions', - () async { - final operation = downloadFile( - path: const StoragePath.fromString('public/$testKey'), - localFile: AWSFile.fromPath('file_name.jpg'), - options: const StorageDownloadFileOptions(), - storageOutputs: testStorageOutputs, - storageS3Service: storageS3Service, - appPathProvider: const DummyPathProvider(), - ); - - await operation.result; - verify( - () => storageS3Service.getProperties( - path: any(named: 'path'), - options: captureAny( - named: 'options', + 'should invoke StorageS3Service.getUrl with converted S3DownloadFilePluginOptions', + () async { + final operation = downloadFile( + path: const StoragePath.fromString('public/$testKey'), + localFile: AWSFile.fromPath('file_name.jpg'), + options: const StorageDownloadFileOptions(), + storageOutputs: testStorageOutputs, + storageS3Service: storageS3Service, + appPathProvider: const DummyPathProvider(), + ); + + await operation.result; + verify( + () => storageS3Service.getProperties( + path: any(named: 'path'), + options: captureAny(named: 'options'), ), - ), - ).captured.last; + ).captured.last; - verify( - () => storageS3Service.getUrl( - path: any(named: 'path'), - options: captureAny( - named: 'options', + verify( + () => storageS3Service.getUrl( + path: any(named: 'path'), + options: captureAny(named: 'options'), ), - ), - ).captured.last; - }); + ).captured.last; + }, + ); test( - 'download result should include metadata when options.getProperties is set to true', - () async { - const options = StorageDownloadFileOptions( - pluginOptions: S3DownloadFilePluginOptions( - getProperties: true, - ), - ); - final result = await downloadFile( - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$testKey', - ), - localFile: AWSFile.fromPath('download.jpg'), - options: options, - storageOutputs: testStorageOutputs, - storageS3Service: storageS3Service, - appPathProvider: const DummyPathProvider(), - ).result; - - expect(result.downloadedItem.metadata, testItem.metadata); - }); + 'download result should include metadata when options.getProperties is set to true', + () async { + const options = StorageDownloadFileOptions( + pluginOptions: S3DownloadFilePluginOptions(getProperties: true), + ); + final result = + await downloadFile( + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$testKey', + ), + localFile: AWSFile.fromPath('download.jpg'), + options: options, + storageOutputs: testStorageOutputs, + storageS3Service: storageS3Service, + appPathProvider: const DummyPathProvider(), + ).result; + + expect(result.downloadedItem.metadata, testItem.metadata); + }, + ); }); } diff --git a/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_io_test.dart b/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_io_test.dart index 423f65ed96..f81e62ecae 100644 --- a/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_io_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/platform_impl/download_file_io_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'dart:async'; import 'dart:convert'; @@ -44,9 +45,7 @@ void main() { setUpAll(() { storageS3Service = MockStorageS3Service(); downloadTask = MockS3DownloadTask(); - registerFallbackValue( - const StorageDownloadDataOptions(), - ); + registerFallbackValue(const StorageDownloadDataOptions()); registerFallbackValue(const StoragePath.fromString('public/$testKey')); registerFallbackValue( StoragePathFromIdentityId( @@ -66,72 +65,75 @@ void main() { ), ).thenAnswer((_) => downloadTask); - when( - () => downloadTask.result, - ).thenAnswer((_) async => testItem); + when(() => downloadTask.result).thenAnswer((_) async => testItem); }); - test('should invoke StorageS3Service.downloadData with expected parameters', - () async { - const options = StorageDownloadFileOptions( - pluginOptions: S3DownloadFilePluginOptions( - getProperties: true, - ), - ); - final downloadFileOperation = downloadFile( - path: StoragePath.fromIdentityId( - (identityId) => 'private/$identityId/$testKey', - ), - localFile: AWSFile.fromPath(testDestinationPath), - options: options, - storageOutputs: testStorageOutputs, - storageS3Service: storageS3Service, - appPathProvider: appPathProvider, - onProgress: (progress) { - expectedProgress = progress; - }, - ); - - final captureParams = verify( - () => storageS3Service.downloadData( - path: captureAny(named: 'path'), - options: captureAny( - named: 'options', - ), - preStart: captureAny Function()?>(named: 'preStart'), - onProgress: captureAny( - named: 'onProgress', + test( + 'should invoke StorageS3Service.downloadData with expected parameters', + () async { + const options = StorageDownloadFileOptions( + pluginOptions: S3DownloadFilePluginOptions(getProperties: true), + ); + final downloadFileOperation = downloadFile( + path: StoragePath.fromIdentityId( + (identityId) => 'private/$identityId/$testKey', ), - onData: captureAny)?>(named: 'onData'), - onDone: captureAny Function()?>(named: 'onDone'), - onError: captureAny Function()?>(named: 'onError'), - ), - ).captured; + localFile: AWSFile.fromPath(testDestinationPath), + options: options, + storageOutputs: testStorageOutputs, + storageS3Service: storageS3Service, + appPathProvider: appPathProvider, + onProgress: (progress) { + expectedProgress = progress; + }, + ); - final capturedOptions = captureParams[1]; + final captureParams = + verify( + () => storageS3Service.downloadData( + path: captureAny(named: 'path'), + options: captureAny( + named: 'options', + ), + preStart: captureAny Function()?>( + named: 'preStart', + ), + onProgress: captureAny( + named: 'onProgress', + ), + onData: captureAny)?>(named: 'onData'), + onDone: captureAny Function()?>(named: 'onDone'), + onError: captureAny Function()?>( + named: 'onError', + ), + ), + ).captured; - expect( - capturedOptions, - isA().having( - (o) => - (o.pluginOptions! as S3DownloadDataPluginOptions).getProperties, - 'getProperties', - isTrue, - ), - ); + final capturedOptions = captureParams[1]; - expect(captureParams[2] is Function, true); - preStart = captureParams[2] as FutureOr Function(); - expect(captureParams[3] is Function, true); - onProgress = captureParams[3] as void Function(S3TransferProgress); - expect(captureParams[4] is Function, true); - onData = captureParams[4] as void Function(List); - expect(captureParams[5] is Function, true); - onDone = captureParams[5] as FutureOr Function(); + expect( + capturedOptions, + isA().having( + (o) => + (o.pluginOptions! as S3DownloadDataPluginOptions).getProperties, + 'getProperties', + isTrue, + ), + ); - final result = await downloadFileOperation.result; - expect(result.downloadedItem, testItem); - }); + expect(captureParams[2] is Function, true); + preStart = captureParams[2] as FutureOr Function(); + expect(captureParams[3] is Function, true); + onProgress = captureParams[3] as void Function(S3TransferProgress); + expect(captureParams[4] is Function, true); + onData = captureParams[4] as void Function(List); + expect(captureParams[5] is Function, true); + onDone = captureParams[5] as FutureOr Function(); + + final result = await downloadFileOperation.result; + expect(result.downloadedItem, testItem); + }, + ); test('supplied callback parameters should function correctly', () async { // 0. create a existing file on the destination path @@ -160,43 +162,89 @@ void main() { group('preStart callback should throw exceptions', () { test( - 'when destination path is null is throws StorageLocalFileNotFoundException', - () { - downloadFile( - path: const StoragePath.fromString('public/$testKey'), - localFile: AWSFile.fromData([101]), - options: const StorageDownloadFileOptions( - pluginOptions: S3DownloadFilePluginOptions(), - ), - storageOutputs: testStorageOutputs, - storageS3Service: storageS3Service, - appPathProvider: appPathProvider, - onProgress: (progress) { - expectedProgress = progress; - }, - ); - - final capturedPreStart = verify( - () => storageS3Service.downloadData( + 'when destination path is null is throws StorageLocalFileNotFoundException', + () { + downloadFile( path: const StoragePath.fromString('public/$testKey'), - options: any(named: 'options'), - preStart: captureAny Function()?>(named: 'preStart'), - onProgress: any(named: 'onProgress'), - onData: any(named: 'onData'), - onDone: any(named: 'onDone'), - onError: any(named: 'onError'), - ), - ).captured.last; - final preStart = capturedPreStart as FutureOr Function(); - expect(preStart(), throwsA(isA())); - }); + localFile: AWSFile.fromData([101]), + options: const StorageDownloadFileOptions( + pluginOptions: S3DownloadFilePluginOptions(), + ), + storageOutputs: testStorageOutputs, + storageS3Service: storageS3Service, + appPathProvider: appPathProvider, + onProgress: (progress) { + expectedProgress = progress; + }, + ); + + final capturedPreStart = + verify( + () => storageS3Service.downloadData( + path: const StoragePath.fromString('public/$testKey'), + options: any(named: 'options'), + preStart: captureAny Function()?>( + named: 'preStart', + ), + onProgress: any(named: 'onProgress'), + onData: any(named: 'onData'), + onDone: any(named: 'onDone'), + onError: any(named: 'onError'), + ), + ).captured.last; + final preStart = capturedPreStart as FutureOr Function(); + expect(preStart(), throwsA(isA())); + }, + ); test( - 'when destination path is a directory instead of a file it throws StorageLocalFileNotFoundException', - () { - downloadFile( + 'when destination path is a directory instead of a file it throws StorageLocalFileNotFoundException', + () { + downloadFile( + path: const StoragePath.fromString('public/$testKey'), + localFile: AWSFile.fromPath(Directory.systemTemp.path), + options: const StorageDownloadFileOptions( + pluginOptions: S3DownloadFilePluginOptions(), + ), + storageOutputs: testStorageOutputs, + storageS3Service: storageS3Service, + appPathProvider: appPathProvider, + onProgress: (progress) { + expectedProgress = progress; + }, + ); + + final capturedPreStart = + verify( + () => storageS3Service.downloadData( + path: const StoragePath.fromString('public/$testKey'), + options: any(named: 'options'), + preStart: captureAny Function()?>( + named: 'preStart', + ), + onProgress: any(named: 'onProgress'), + onData: any(named: 'onData'), + onDone: any(named: 'onDone'), + onError: any(named: 'onError'), + ), + ).captured.last; + final preStart = capturedPreStart as FutureOr Function(); + expect(preStart(), throwsA(isA())); + }, + ); + }); + + test( + 'returned S3DownloadFileOperation pause resume and cancel APIs should interact with S3DownloadTask', + () async { + when(() => downloadTask.result).thenAnswer((_) async => testItem); + when(downloadTask.pause).thenAnswer((_) async {}); + when(downloadTask.resume).thenAnswer((_) async {}); + when(downloadTask.cancel).thenAnswer((_) async {}); + + final downloadFileOperation = downloadFile( path: const StoragePath.fromString('public/$testKey'), - localFile: AWSFile.fromPath(Directory.systemTemp.path), + localFile: AWSFile.fromPath('path'), options: const StorageDownloadFileOptions( pluginOptions: S3DownloadFilePluginOptions(), ), @@ -208,51 +256,14 @@ void main() { }, ); - final capturedPreStart = verify( - () => storageS3Service.downloadData( - path: const StoragePath.fromString('public/$testKey'), - options: any(named: 'options'), - preStart: captureAny Function()?>(named: 'preStart'), - onProgress: any(named: 'onProgress'), - onData: any(named: 'onData'), - onDone: any(named: 'onDone'), - onError: any(named: 'onError'), - ), - ).captured.last; - final preStart = capturedPreStart as FutureOr Function(); - expect(preStart(), throwsA(isA())); - }); - }); - - test( - 'returned S3DownloadFileOperation pause resume and cancel APIs should interact with S3DownloadTask', - () async { - when(() => downloadTask.result).thenAnswer((_) async => testItem); - when(downloadTask.pause).thenAnswer((_) async {}); - when(downloadTask.resume).thenAnswer((_) async {}); - when(downloadTask.cancel).thenAnswer((_) async {}); - - final downloadFileOperation = downloadFile( - path: const StoragePath.fromString('public/$testKey'), - localFile: AWSFile.fromPath('path'), - options: const StorageDownloadFileOptions( - pluginOptions: S3DownloadFilePluginOptions(), - ), - storageOutputs: testStorageOutputs, - storageS3Service: storageS3Service, - appPathProvider: appPathProvider, - onProgress: (progress) { - expectedProgress = progress; - }, - ); - - await downloadFileOperation.pause(); - await downloadFileOperation.resume(); - await downloadFileOperation.cancel(); + await downloadFileOperation.pause(); + await downloadFileOperation.resume(); + await downloadFileOperation.cancel(); - verify(downloadTask.pause).called(1); - verify(downloadTask.resume).called(1); - verify(downloadTask.cancel).called(1); - }); + verify(downloadTask.pause).called(1); + verify(downloadTask.resume).called(1); + verify(downloadTask.cancel).called(1); + }, + ); }); } diff --git a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/storage_s3_service_test.dart b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/storage_s3_service_test.dart index 0ca3760d5e..7abab30535 100644 --- a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/storage_s3_service_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/storage_s3_service_test.dart @@ -54,11 +54,12 @@ void main() { awsSigV4Signer = MockAWSSigV4Signer(); mockUserAgent = MockAmplifyUserAgent(); mockAwsHttpClient = MockAWSHttpClient(); - dependencyManager = DependencyManager() - ..addInstance(s3Client) - ..addInstance(awsSigV4Signer) - ..addInstance(mockUserAgent) - ..addInstance(mockAwsHttpClient); + dependencyManager = + DependencyManager() + ..addInstance(s3Client) + ..addInstance(awsSigV4Signer) + ..addInstance(mockUserAgent) + ..addInstance(mockAwsHttpClient); storageS3Service = StorageS3Service( storageOutputs: storageOutputs, pathResolver: pathResolver, @@ -110,68 +111,71 @@ void main() { registerFallbackValue(ListObjectsV2Request(bucket: 'fake bucket')); }); - test('should invoke S3Client.listObjectsV2 with expected parameters', - () async { - final testCommonPrefix = CommonPrefix(prefix: testPrefix); - final testS3Objects = [1, 2, 3, 4, 5] - .map( - (e) => S3Object( - key: '${testPrefix}object-$e', - size: Int64(100 * 4), - eTag: 'object-$e-eTag', - ), - ) - .toList(); - const testPath = StoragePath.fromString('album'); - const testOptions = StorageListOptions( - pageSize: testPageSize, - pluginOptions: S3ListPluginOptions(), - ); - - final testPaginatedResult = - PaginatedResult( - ListObjectsV2Output( - contents: testS3Objects, - commonPrefixes: [testCommonPrefix], - delimiter: testDelimiter, - name: testBucketName, - maxKeys: testPageSize, - ), - nextContinuationToken: testNextContinuationToken, - next: ([int? pageSize]) { - throw UnimplementedError('not needed in unit tests'); - }, - ); - final smithyOperation = MockSmithyOperation< - PaginatedResult>(); - - when((() => smithyOperation.result)) - .thenAnswer((_) async => testPaginatedResult); - - when( - () => s3Client.listObjectsV2(any()), - ).thenAnswer((_) => smithyOperation); - - listResult = await storageS3Service.list( - path: testPath, - options: testOptions, - ); + test( + 'should invoke S3Client.listObjectsV2 with expected parameters', + () async { + final testCommonPrefix = CommonPrefix(prefix: testPrefix); + final testS3Objects = + [1, 2, 3, 4, 5] + .map( + (e) => S3Object( + key: '${testPrefix}object-$e', + size: Int64(100 * 4), + eTag: 'object-$e-eTag', + ), + ) + .toList(); + const testPath = StoragePath.fromString('album'); + const testOptions = StorageListOptions( + pageSize: testPageSize, + pluginOptions: S3ListPluginOptions(), + ); - final capturedRequest = verify( - () => s3Client.listObjectsV2( - captureAny(), - ), - ).captured.last; - expect(capturedRequest is ListObjectsV2Request, isTrue); + final testPaginatedResult = + PaginatedResult( + ListObjectsV2Output( + contents: testS3Objects, + commonPrefixes: [testCommonPrefix], + delimiter: testDelimiter, + name: testBucketName, + maxKeys: testPageSize, + ), + nextContinuationToken: testNextContinuationToken, + next: ([int? pageSize]) { + throw UnimplementedError('not needed in unit tests'); + }, + ); + final smithyOperation = + MockSmithyOperation< + PaginatedResult + >(); + + when( + (() => smithyOperation.result), + ).thenAnswer((_) async => testPaginatedResult); + + when( + () => s3Client.listObjectsV2(any()), + ).thenAnswer((_) => smithyOperation); + + listResult = await storageS3Service.list( + path: testPath, + options: testOptions, + ); - final request = capturedRequest as ListObjectsV2Request; - expect(request.bucket, testBucket); - expect( - request.prefix, - TestPathResolver.path, - ); - expect(request.maxKeys, testPageSize); - }); + final capturedRequest = + verify( + () => + s3Client.listObjectsV2(captureAny()), + ).captured.last; + expect(capturedRequest is ListObjectsV2Request, isTrue); + + final request = capturedRequest as ListObjectsV2Request; + expect(request.bucket, testBucket); + expect(request.prefix, TestPathResolver.path); + expect(request.maxKeys, testPageSize); + }, + ); test('should return correct StorageS3ListResult', () async { listResult.items.asMap().forEach((index, item) { @@ -182,196 +186,212 @@ void main() { }); test( - 'should attach delimiter to the ListObjectV2Request when options excludeSubPaths is set to true', - () async { - final testS3Objects = [1, 2, 3, 4, 5] - .map( - (e) => S3Object( - key: '${testPrefix}object-$e', - size: Int64(100 * 4), - eTag: 'object-$e-eTag', - ), - ) - .toList(); - const testPath = StoragePath.fromString('album'); - const testOptions = StorageListOptions( - pageSize: testPageSize, - pluginOptions: S3ListPluginOptions(excludeSubPaths: true), - ); - const testSubPaths = [ - 'album#folder1', - 'album#folder2', - 'album#folder1#sub-folder1', - ]; - final testPaginatedResult = - PaginatedResult( - ListObjectsV2Output( - contents: testS3Objects, - commonPrefixes: [ - CommonPrefix(prefix: testSubPaths[0]), - CommonPrefix(prefix: testSubPaths[1]), - CommonPrefix( - prefix: testSubPaths[2], - ), - ], - delimiter: testDelimiter, - name: testBucketName, - maxKeys: testPageSize, - ), - next: ([int? pageSize]) { - throw UnimplementedError(); - }, - nextContinuationToken: testNextContinuationToken, - ); - final smithyOperation = MockSmithyOperation< - PaginatedResult>(); - - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testPaginatedResult); - - when( - () => s3Client.listObjectsV2(any()), - ).thenAnswer((_) => smithyOperation); - - final result = await storageS3Service.list( - path: testPath, - options: testOptions, - ); + 'should attach delimiter to the ListObjectV2Request when options excludeSubPaths is set to true', + () async { + final testS3Objects = + [1, 2, 3, 4, 5] + .map( + (e) => S3Object( + key: '${testPrefix}object-$e', + size: Int64(100 * 4), + eTag: 'object-$e-eTag', + ), + ) + .toList(); + const testPath = StoragePath.fromString('album'); + const testOptions = StorageListOptions( + pageSize: testPageSize, + pluginOptions: S3ListPluginOptions(excludeSubPaths: true), + ); + const testSubPaths = [ + 'album#folder1', + 'album#folder2', + 'album#folder1#sub-folder1', + ]; + final testPaginatedResult = + PaginatedResult( + ListObjectsV2Output( + contents: testS3Objects, + commonPrefixes: [ + CommonPrefix(prefix: testSubPaths[0]), + CommonPrefix(prefix: testSubPaths[1]), + CommonPrefix(prefix: testSubPaths[2]), + ], + delimiter: testDelimiter, + name: testBucketName, + maxKeys: testPageSize, + ), + next: ([int? pageSize]) { + throw UnimplementedError(); + }, + nextContinuationToken: testNextContinuationToken, + ); + final smithyOperation = + MockSmithyOperation< + PaginatedResult + >(); + + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testPaginatedResult); + + when( + () => s3Client.listObjectsV2(any()), + ).thenAnswer((_) => smithyOperation); + + final result = await storageS3Service.list( + path: testPath, + options: testOptions, + ); - expect(result.metadata.subPaths, equals(testSubPaths)); - }); + expect(result.metadata.subPaths, equals(testSubPaths)); + }, + ); test( - 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' - ' with status code 403 returned from service', () async { - const testOptions = StorageListOptions(); - const testUnknownException = UnknownSmithyHttpException( - statusCode: 403, - body: 'some exception', - ); + 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' + ' with status code 403 returned from service', + () async { + const testOptions = StorageListOptions(); + const testUnknownException = UnknownSmithyHttpException( + statusCode: 403, + body: 'some exception', + ); - when( - () => s3Client.listObjectsV2( - any(), - ), - ).thenThrow(testUnknownException); + when( + () => s3Client.listObjectsV2(any()), + ).thenThrow(testUnknownException); - expect( - storageS3Service.list( - path: const StoragePath.fromString('apath'), - options: testOptions, - ), - throwsA(isA()), - ); - }); + expect( + storageS3Service.list( + path: const StoragePath.fromString('apath'), + options: testOptions, + ), + throwsA(isA()), + ); + }, + ); test( - 'should invoke S3Object.listObjectV2 with expected parameters and return expected results with listAll is set to true in the options', - () async { - final testS3Objects = List.generate(2001, (index) => '$index') - .map( - (e) => S3Object( - key: '${testPrefix}object-$e', - size: Int64(100 * 4), - eTag: 'object-$e-eTag', - ), - ) - .toList(); - const testPath = StoragePath.fromString('album'); - const testOptions = StorageListOptions( - pageSize: testPageSize, - pluginOptions: S3ListPluginOptions.listAll(), - ); - - const defaultPageSize = 1000; - const testNextToken1 = 'next-token-1'; - const testNextToken2 = 'next-token-2'; - final smithyOperation1 = MockSmithyOperation< - PaginatedResult>(); - final smithyOperation2 = MockSmithyOperation< - PaginatedResult>(); - final smithyOperation3 = MockSmithyOperation< - PaginatedResult>(); - final testPaginatedResult1 = - PaginatedResult( - ListObjectsV2Output( - contents: testS3Objects.take(defaultPageSize).toList(), - commonPrefixes: [testCommonPrefix], - delimiter: testDelimiter, - name: testBucketName, - ), - nextContinuationToken: testNextToken1, - next: ([int? pageSize]) { - return smithyOperation2; - }, - ); - final testPaginatedResult2 = - PaginatedResult( - ListObjectsV2Output( - contents: testS3Objects - .skip(defaultPageSize) - .take(defaultPageSize) - .toList(), - commonPrefixes: [testCommonPrefix], - delimiter: testDelimiter, - name: testBucketName, - ), - nextContinuationToken: testNextToken2, - next: ([int? pageSize]) { - return smithyOperation3; - }, - ); - final testPaginatedResult3 = - PaginatedResult( - ListObjectsV2Output( - contents: testS3Objects.skip(2 * defaultPageSize).toList(), - commonPrefixes: [testCommonPrefix], - delimiter: testDelimiter, - name: testBucketName, - ), - nextContinuationToken: null, - next: ([int? pageSize]) { - return smithyOperation3; - }, - ); - - when( - () => s3Client.listObjectsV2(any()), - ).thenAnswer((invocation) => smithyOperation1); - when((() => smithyOperation1.result)) - .thenAnswer((_) async => testPaginatedResult1); - when((() => smithyOperation2.result)) - .thenAnswer((_) async => testPaginatedResult2); - when((() => smithyOperation3.result)) - .thenAnswer((_) async => testPaginatedResult3); - - listResult = await storageS3Service.list( - path: testPath, - options: testOptions, - ); + 'should invoke S3Object.listObjectV2 with expected parameters and return expected results with listAll is set to true in the options', + () async { + final testS3Objects = + List.generate(2001, (index) => '$index') + .map( + (e) => S3Object( + key: '${testPrefix}object-$e', + size: Int64(100 * 4), + eTag: 'object-$e-eTag', + ), + ) + .toList(); + const testPath = StoragePath.fromString('album'); + const testOptions = StorageListOptions( + pageSize: testPageSize, + pluginOptions: S3ListPluginOptions.listAll(), + ); - final capturedRequest = verify( - () => s3Client.listObjectsV2(captureAny()), - ).captured.last; + const defaultPageSize = 1000; + const testNextToken1 = 'next-token-1'; + const testNextToken2 = 'next-token-2'; + final smithyOperation1 = + MockSmithyOperation< + PaginatedResult + >(); + final smithyOperation2 = + MockSmithyOperation< + PaginatedResult + >(); + final smithyOperation3 = + MockSmithyOperation< + PaginatedResult + >(); + final testPaginatedResult1 = + PaginatedResult( + ListObjectsV2Output( + contents: testS3Objects.take(defaultPageSize).toList(), + commonPrefixes: [testCommonPrefix], + delimiter: testDelimiter, + name: testBucketName, + ), + nextContinuationToken: testNextToken1, + next: ([int? pageSize]) { + return smithyOperation2; + }, + ); + final testPaginatedResult2 = + PaginatedResult( + ListObjectsV2Output( + contents: + testS3Objects + .skip(defaultPageSize) + .take(defaultPageSize) + .toList(), + commonPrefixes: [testCommonPrefix], + delimiter: testDelimiter, + name: testBucketName, + ), + nextContinuationToken: testNextToken2, + next: ([int? pageSize]) { + return smithyOperation3; + }, + ); + final testPaginatedResult3 = + PaginatedResult( + ListObjectsV2Output( + contents: testS3Objects.skip(2 * defaultPageSize).toList(), + commonPrefixes: [testCommonPrefix], + delimiter: testDelimiter, + name: testBucketName, + ), + nextContinuationToken: null, + next: ([int? pageSize]) { + return smithyOperation3; + }, + ); + + when( + () => s3Client.listObjectsV2(any()), + ).thenAnswer((invocation) => smithyOperation1); + when( + (() => smithyOperation1.result), + ).thenAnswer((_) async => testPaginatedResult1); + when( + (() => smithyOperation2.result), + ).thenAnswer((_) async => testPaginatedResult2); + when( + (() => smithyOperation3.result), + ).thenAnswer((_) async => testPaginatedResult3); + + listResult = await storageS3Service.list( + path: testPath, + options: testOptions, + ); - expect( - capturedRequest, - isA().having( - (o) => o.prefix, - 'prefix', - TestPathResolver.path, - ), - ); + final capturedRequest = + verify( + () => + s3Client.listObjectsV2(captureAny()), + ).captured.last; + + expect( + capturedRequest, + isA().having( + (o) => o.prefix, + 'prefix', + TestPathResolver.path, + ), + ); - expect(listResult.hasNextPage, false); - expect(listResult.nextToken, isNull); - expect(listResult.items.length, testS3Objects.length); - expect( - listResult.items.map((e) => e.eTag), - equals(testS3Objects.map((e) => e.eTag)), - ); - }); + expect(listResult.hasNextPage, false); + expect(listResult.nextToken, isNull); + expect(listResult.items.length, testS3Objects.length); + expect( + listResult.items.map((e) => e.eTag), + equals(testS3Objects.map((e) => e.eTag)), + ); + }, + ); test('should handle AWSHttpException and throw NetworkException', () { const testOptions = StorageListOptions(); @@ -379,9 +399,7 @@ void main() { AWSHttpRequest(method: AWSHttpMethod.get, uri: Uri()), ); - when( - () => s3Client.listObjectsV2(any()), - ).thenThrow(testException); + when(() => s3Client.listObjectsV2(any())).thenThrow(testException); expect( storageS3Service.list( @@ -395,97 +413,92 @@ void main() { group('getProperties() API', () { late S3GetPropertiesResult getPropertiesResult; - const testMetadata = { - 'filename': 'hello.jpg', - 'uploader': '123', - }; + const testMetadata = {'filename': 'hello.jpg', 'uploader': '123'}; const testSize = 1024; const testETag = '12345'; final testLastModified = DateTime(2022, 9, 19); setUpAll(() { registerFallbackValue( - HeadObjectRequest( - bucket: 'fake bucket', - key: 'dummy key', - ), + HeadObjectRequest(bucket: 'fake bucket', key: 'dummy key'), ); }); test( - 'should invoke S3Client.headObject with default access level as the key prefix', - () async { - const testOptions = StorageGetPropertiesOptions(); - final testHeadObjectOutput = HeadObjectOutput( - eTag: testETag, - contentLength: Int64(testSize), - lastModified: testLastModified, - metadata: testMetadata, - ); - final smithyOperation = MockSmithyOperation(); + 'should invoke S3Client.headObject with default access level as the key prefix', + () async { + const testOptions = StorageGetPropertiesOptions(); + final testHeadObjectOutput = HeadObjectOutput( + eTag: testETag, + contentLength: Int64(testSize), + lastModified: testLastModified, + metadata: testMetadata, + ); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testHeadObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testHeadObjectOutput); - when( - () => s3Client.headObject(any()), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.headObject(any()), + ).thenAnswer((_) => smithyOperation); - getPropertiesResult = await storageS3Service.getProperties( - path: testPath, - options: testOptions, - ); + getPropertiesResult = await storageS3Service.getProperties( + path: testPath, + options: testOptions, + ); - final capturedRequest = verify( - () => s3Client.headObject( - captureAny(), - ), - ).captured.last; - expect(capturedRequest is HeadObjectRequest, isTrue); + final capturedRequest = + verify( + () => s3Client.headObject(captureAny()), + ).captured.last; + expect(capturedRequest is HeadObjectRequest, isTrue); - final request = capturedRequest as HeadObjectRequest; - expect(request.bucket, testBucket); - expect(request.key, TestPathResolver.path); - }); + final request = capturedRequest as HeadObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + }, + ); - test('should invoke S3Client.headObject with expected parameters', - () async { - const testOptions = StorageGetPropertiesOptions( - pluginOptions: S3GetPropertiesPluginOptions(), - ); - final testHeadObjectOutput = HeadObjectOutput( - eTag: testETag, - contentLength: Int64(testSize), - lastModified: testLastModified, - metadata: testMetadata, - ); - final smithyOperation = MockSmithyOperation(); + test( + 'should invoke S3Client.headObject with expected parameters', + () async { + const testOptions = StorageGetPropertiesOptions( + pluginOptions: S3GetPropertiesPluginOptions(), + ); + final testHeadObjectOutput = HeadObjectOutput( + eTag: testETag, + contentLength: Int64(testSize), + lastModified: testLastModified, + metadata: testMetadata, + ); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testHeadObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testHeadObjectOutput); - when( - () => s3Client.headObject(any()), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.headObject(any()), + ).thenAnswer((_) => smithyOperation); - getPropertiesResult = await storageS3Service.getProperties( - path: testPath, - options: testOptions, - ); + getPropertiesResult = await storageS3Service.getProperties( + path: testPath, + options: testOptions, + ); - final capturedRequest = verify( - () => s3Client.headObject( - captureAny(), - ), - ).captured.last; - expect(capturedRequest is HeadObjectRequest, isTrue); + final capturedRequest = + verify( + () => s3Client.headObject(captureAny()), + ).captured.last; + expect(capturedRequest is HeadObjectRequest, isTrue); - final request = capturedRequest as HeadObjectRequest; - expect(request.bucket, testBucket); - expect(request.key, TestPathResolver.path); - }); + final request = capturedRequest as HeadObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + }, + ); test('should return correct S3GetProperties result', () async { final storageItem = getPropertiesResult.storageItem; @@ -495,28 +508,28 @@ void main() { }); test( - 'should throw StorageNotFoundException when UnknownSmithyHttpException' - ' with status code 404 returned from service', () async { - const testOptions = StorageGetPropertiesOptions(); - const testUnknownException = UnknownSmithyHttpException( - statusCode: 404, - body: 'Nod found.', - ); + 'should throw StorageNotFoundException when UnknownSmithyHttpException' + ' with status code 404 returned from service', + () async { + const testOptions = StorageGetPropertiesOptions(); + const testUnknownException = UnknownSmithyHttpException( + statusCode: 404, + body: 'Nod found.', + ); - when( - () => s3Client.headObject( - any(), - ), - ).thenThrow(testUnknownException); + when( + () => s3Client.headObject(any()), + ).thenThrow(testUnknownException); - expect( - storageS3Service.getProperties( - path: const StoragePath.fromString('a key'), - options: testOptions, - ), - throwsA(isA()), - ); - }); + expect( + storageS3Service.getProperties( + path: const StoragePath.fromString('a key'), + options: testOptions, + ), + throwsA(isA()), + ); + }, + ); test('should handle AWSHttpException and throw NetworkException', () { const testOptions = StorageGetPropertiesOptions(); @@ -524,9 +537,7 @@ void main() { AWSHttpRequest(method: AWSHttpMethod.head, uri: Uri()), ); - when( - () => s3Client.headObject(any()), - ).thenThrow(testException); + when(() => s3Client.headObject(any())).thenThrow(testException); expect( storageS3Service.getProperties( @@ -549,74 +560,61 @@ void main() { final testBaseDateTime = DateTime(2022, 09, 30); setUpAll(() { - registerFallbackValue( - AWSHttpRequest.get(testUrl), - ); + registerFallbackValue(AWSHttpRequest.get(testUrl)); registerFallbackValue( AWSCredentialScope(region: testRegion, service: AWSService.s3), ); registerFallbackValue(S3ServiceConfiguration()); registerFallbackValue(Duration.zero); registerFallbackValue( - HeadObjectRequest( - bucket: 'fake bucket', - key: 'dummy key', - ), + HeadObjectRequest(bucket: 'fake bucket', key: 'dummy key'), ); }); test('should invoke AWSSigV4Signer.presign with correct parameters', () { - runZoned( - () async { - const testOptions = StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - expiresIn: testExpiresIn, - ), - ); + runZoned(() async { + const testOptions = StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions(expiresIn: testExpiresIn), + ); - when( - () => awsSigV4Signer.presign( - any(), - credentialScope: any(named: 'credentialScope'), - serviceConfiguration: any(named: 'serviceConfiguration'), - expiresIn: any(named: 'expiresIn'), - ), - ).thenAnswer((_) async => testUrl); + when( + () => awsSigV4Signer.presign( + any(), + credentialScope: any(named: 'credentialScope'), + serviceConfiguration: any(named: 'serviceConfiguration'), + expiresIn: any(named: 'expiresIn'), + ), + ).thenAnswer((_) async => testUrl); - getUrlResult = await storageS3Service.getUrl( - path: testPath, - options: testOptions, - ); - final capturedParams = verify( - () => awsSigV4Signer.presign( - captureAny(), - credentialScope: - captureAny(named: 'credentialScope'), - expiresIn: captureAny(named: 'expiresIn'), - serviceConfiguration: captureAny( - named: 'serviceConfiguration', + getUrlResult = await storageS3Service.getUrl( + path: testPath, + options: testOptions, + ); + final capturedParams = + verify( + () => awsSigV4Signer.presign( + captureAny(), + credentialScope: captureAny( + named: 'credentialScope', + ), + expiresIn: captureAny(named: 'expiresIn'), + serviceConfiguration: captureAny( + named: 'serviceConfiguration', + ), ), - ), - ).captured; + ).captured; - expect(capturedParams.first is AWSHttpRequest, isTrue); - final requestParam = capturedParams.first as AWSHttpRequest; - expect( - requestParam.uri.toString(), - endsWith(TestPathResolver.path), - ); + expect(capturedParams.first is AWSHttpRequest, isTrue); + final requestParam = capturedParams.first as AWSHttpRequest; + expect(requestParam.uri.toString(), endsWith(TestPathResolver.path)); - expect(capturedParams[2] is S3ServiceConfiguration, isTrue); - final configParam = capturedParams[2] as S3ServiceConfiguration; - expect(configParam.signBody, false); - expect(configParam.chunked, false); + expect(capturedParams[2] is S3ServiceConfiguration, isTrue); + final configParam = capturedParams[2] as S3ServiceConfiguration; + expect(configParam.signBody, false); + expect(configParam.chunked, false); - expect(capturedParams.last, testExpiresIn); - }, - zoneValues: { - testDateTimeNowOverride: testBaseDateTime, - }, - ); + expect(capturedParams.last, testExpiresIn); + }, zoneValues: {testDateTimeNowOverride: testBaseDateTime}); }); test('should return correct url result', () { @@ -624,139 +622,122 @@ void main() { expect(getUrlResult.expiresAt, testBaseDateTime.add(testExpiresIn)); }); - test('should create a new signer scope on every call of getUrl', - () async { - const testOptions = StorageGetUrlOptions(); - - when( - () => awsSigV4Signer.presign( - any(), - credentialScope: any(named: 'credentialScope'), - serviceConfiguration: any(named: 'serviceConfiguration'), - expiresIn: any(named: 'expiresIn'), - ), - ).thenAnswer((_) async => testUrl); - - getUrlResult = await storageS3Service.getUrl( - path: testPath, - options: testOptions, - ); - final capturedSignerScope1 = verify( - () => awsSigV4Signer.presign( - any(), - credentialScope: - captureAny(named: 'credentialScope'), - expiresIn: any(named: 'expiresIn'), - serviceConfiguration: any( - named: 'serviceConfiguration', + test( + 'should create a new signer scope on every call of getUrl', + () async { + const testOptions = StorageGetUrlOptions(); + + when( + () => awsSigV4Signer.presign( + any(), + credentialScope: any(named: 'credentialScope'), + serviceConfiguration: any(named: 'serviceConfiguration'), + expiresIn: any(named: 'expiresIn'), ), - ), - ).captured.first; - expect(capturedSignerScope1, isA()); + ).thenAnswer((_) async => testUrl); - getUrlResult = await storageS3Service.getUrl( - path: testPath, - options: testOptions, - ); - final capturedSignerScope2 = verify( - () => awsSigV4Signer.presign( - any(), - credentialScope: - captureAny(named: 'credentialScope'), - expiresIn: any(named: 'expiresIn'), - serviceConfiguration: any( - named: 'serviceConfiguration', - ), - ), - ).captured.first; - expect(capturedSignerScope2, isA()); + getUrlResult = await storageS3Service.getUrl( + path: testPath, + options: testOptions, + ); + final capturedSignerScope1 = + verify( + () => awsSigV4Signer.presign( + any(), + credentialScope: captureAny( + named: 'credentialScope', + ), + expiresIn: any(named: 'expiresIn'), + serviceConfiguration: any(named: 'serviceConfiguration'), + ), + ).captured.first; + expect(capturedSignerScope1, isA()); - expect(capturedSignerScope1, isNot(equals(capturedSignerScope2))); - }); + getUrlResult = await storageS3Service.getUrl( + path: testPath, + options: testOptions, + ); + final capturedSignerScope2 = + verify( + () => awsSigV4Signer.presign( + any(), + credentialScope: captureAny( + named: 'credentialScope', + ), + expiresIn: any(named: 'expiresIn'), + serviceConfiguration: any(named: 'serviceConfiguration'), + ), + ).captured.first; + expect(capturedSignerScope2, isA()); + + expect(capturedSignerScope1, isNot(equals(capturedSignerScope2))); + }, + ); test( - 'should invoke s3Client.headObject when validateObjectExistence option is set to true', - () async { - const testOptions = StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - validateObjectExistence: true, - ), - ); - const testUnknownException = UnknownSmithyHttpException( - statusCode: 404, - body: 'Nod found.', - ); + 'should invoke s3Client.headObject when validateObjectExistence option is set to true', + () async { + const testOptions = StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions(validateObjectExistence: true), + ); + const testUnknownException = UnknownSmithyHttpException( + statusCode: 404, + body: 'Nod found.', + ); - when( - () => s3Client.headObject( - any(), - ), - ).thenThrow(testUnknownException); + when( + () => s3Client.headObject(any()), + ).thenThrow(testUnknownException); - await expectLater( - storageS3Service.getUrl( - path: testPath, - options: testOptions, - ), - throwsA(isA()), - ); + await expectLater( + storageS3Service.getUrl(path: testPath, options: testOptions), + throwsA(isA()), + ); - final capturedRequest = verify( - () => s3Client.headObject( - captureAny(), - ), - ).captured.last as HeadObjectRequest; + final capturedRequest = + verify( + () => s3Client.headObject(captureAny()), + ).captured.last + as HeadObjectRequest; - expect( - capturedRequest.key, - TestPathResolver.path, - ); - }); + expect(capturedRequest.key, TestPathResolver.path); + }, + ); test( - 'should invoke s3Client.headObject when validateObjectExistence option is' - ' set to true and specified targetIdentityId', () async { - const testOptions = StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - validateObjectExistence: true, - ), - ); - const testUnknownException = UnknownSmithyHttpException( - statusCode: 404, - body: 'Nod found.', - ); + 'should invoke s3Client.headObject when validateObjectExistence option is' + ' set to true and specified targetIdentityId', + () async { + const testOptions = StorageGetUrlOptions( + pluginOptions: S3GetUrlPluginOptions(validateObjectExistence: true), + ); + const testUnknownException = UnknownSmithyHttpException( + statusCode: 404, + body: 'Nod found.', + ); - when( - () => s3Client.headObject( - any(), - ), - ).thenThrow(testUnknownException); + when( + () => s3Client.headObject(any()), + ).thenThrow(testUnknownException); - await expectLater( - storageS3Service.getUrl( - path: testPath, - options: testOptions, - ), - throwsA(isA()), - ); + await expectLater( + storageS3Service.getUrl(path: testPath, options: testOptions), + throwsA(isA()), + ); - final capturedRequest = verify( - () => s3Client.headObject( - captureAny(), - ), - ).captured.last as HeadObjectRequest; + final capturedRequest = + verify( + () => s3Client.headObject(captureAny()), + ).captured.last + as HeadObjectRequest; - expect( - capturedRequest.key, - TestPathResolver.path, - ); - }); + expect(capturedRequest.key, TestPathResolver.path); + }, + ); test('generate transfer acceleration enabled URL', () async { const testOptions = StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - useAccelerateEndpoint: true, - ), + pluginOptions: S3GetUrlPluginOptions(useAccelerateEndpoint: true), ); when( @@ -768,22 +749,21 @@ void main() { ), ).thenAnswer((_) async => testUrl); - await storageS3Service.getUrl( - path: testPath, - options: testOptions, - ); + await storageS3Service.getUrl(path: testPath, options: testOptions); - final capturedParams = verify( - () => awsSigV4Signer.presign( - captureAny(), - credentialScope: - captureAny(named: 'credentialScope'), - expiresIn: captureAny(named: 'expiresIn'), - serviceConfiguration: captureAny( - named: 'serviceConfiguration', - ), - ), - ).captured; + final capturedParams = + verify( + () => awsSigV4Signer.presign( + captureAny(), + credentialScope: captureAny( + named: 'credentialScope', + ), + expiresIn: captureAny(named: 'expiresIn'), + serviceConfiguration: captureAny( + named: 'serviceConfiguration', + ), + ), + ).captured; expect( capturedParams[0], @@ -812,9 +792,10 @@ void main() { setUpAll(() { pathStyleAwsSigV4Signer = MockAWSSigV4Signer(); - dependencyManager = DependencyManager() - ..addInstance(MockS3Client()) - ..addInstance(pathStyleAwsSigV4Signer); + dependencyManager = + DependencyManager() + ..addInstance(MockS3Client()) + ..addInstance(pathStyleAwsSigV4Signer); pathStyleStorageS3Service = StorageS3Service( storageOutputs: pathStyleStorageOutputs, pathResolver: pathResolver, @@ -824,60 +805,54 @@ void main() { ); }); - test( - 'generate path style URL', - () async { - const testOptions = StorageGetUrlOptions(); - - when( - () => pathStyleAwsSigV4Signer.presign( - any(), - credentialScope: any(named: 'credentialScope'), - serviceConfiguration: any(named: 'serviceConfiguration'), - expiresIn: any(named: 'expiresIn'), - ), - ).thenAnswer((_) async => pathStyleURL); + test('generate path style URL', () async { + const testOptions = StorageGetUrlOptions(); - getUrlResult = await pathStyleStorageS3Service.getUrl( - path: testPath, - options: testOptions, - ); + when( + () => pathStyleAwsSigV4Signer.presign( + any(), + credentialScope: any(named: 'credentialScope'), + serviceConfiguration: any(named: 'serviceConfiguration'), + expiresIn: any(named: 'expiresIn'), + ), + ).thenAnswer((_) async => pathStyleURL); - final capturedRequest = verify( - () => pathStyleAwsSigV4Signer.presign( - captureAny(), - credentialScope: any(named: 'credentialScope'), - expiresIn: any(named: 'expiresIn'), - serviceConfiguration: any( - named: 'serviceConfiguration', - ), - ), - ).captured.first; + getUrlResult = await pathStyleStorageS3Service.getUrl( + path: testPath, + options: testOptions, + ); - expect( - capturedRequest, - isA() - .having( - (o) => o.host, - 'host', - 's3.${pathStyleStorageOutputs.awsRegion}.amazonaws.com', - ) - .having( - (o) => o.path, - 'path', - '/bucket.name.has.dots.com/${TestPathResolver.path}', - ), - ); - }, - ); + final capturedRequest = + verify( + () => pathStyleAwsSigV4Signer.presign( + captureAny(), + credentialScope: any(named: 'credentialScope'), + expiresIn: any(named: 'expiresIn'), + serviceConfiguration: any(named: 'serviceConfiguration'), + ), + ).captured.first; + + expect( + capturedRequest, + isA() + .having( + (o) => o.host, + 'host', + 's3.${pathStyleStorageOutputs.awsRegion}.amazonaws.com', + ) + .having( + (o) => o.path, + 'path', + '/bucket.name.has.dots.com/${TestPathResolver.path}', + ), + ); + }); test( 'throw exception when attempt to use accelerate endpoint with path style URL', () { const testOptions = StorageGetUrlOptions( - pluginOptions: S3GetUrlPluginOptions( - useAccelerateEndpoint: true, - ), + pluginOptions: S3GetUrlPluginOptions(useAccelerateEndpoint: true), ); expect( @@ -914,137 +889,137 @@ void main() { ), ); registerFallbackValue( - HeadObjectRequest( - bucket: 'fake bucket', - key: 'dummy key', - ), + HeadObjectRequest(bucket: 'fake bucket', key: 'dummy key'), ); }); - test('should invoke S3Client.copyObject with expected parameters', - () async { - const testOptions = StorageCopyOptions(); - final testCopyObjectOutput = CopyObjectOutput(); - final smithyOperation = MockSmithyOperation(); + test( + 'should invoke S3Client.copyObject with expected parameters', + () async { + const testOptions = StorageCopyOptions(); + final testCopyObjectOutput = CopyObjectOutput(); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testCopyObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testCopyObjectOutput); - when( - () => s3Client.copyObject(any()), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.copyObject(any()), + ).thenAnswer((_) => smithyOperation); - copyResult = await storageS3Service.copy( - source: testSource, - destination: testDestination, - options: testOptions, - ); + copyResult = await storageS3Service.copy( + source: testSource, + destination: testDestination, + options: testOptions, + ); - final capturedRequest = verify( - () => s3Client.copyObject(captureAny()), - ).captured.last; + final capturedRequest = + verify( + () => s3Client.copyObject(captureAny()), + ).captured.last; - expect(capturedRequest is CopyObjectRequest, isTrue); - final request = capturedRequest as CopyObjectRequest; + expect(capturedRequest is CopyObjectRequest, isTrue); + final request = capturedRequest as CopyObjectRequest; - expect(request.bucket, testBucket); - expect(request.copySource, '$testBucket/$testSourcePath'); + expect(request.bucket, testBucket); + expect(request.copySource, '$testBucket/$testSourcePath'); - expect(copyResult.copiedItem.path, testDestinationPath); - }); + expect(copyResult.copiedItem.path, testDestinationPath); + }, + ); test( - 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' - ' with status code 403 returned from service', () async { - const testOptions = StorageCopyOptions(); - const testUnknownException = UnknownSmithyHttpException( - statusCode: 403, - body: 'Access denied.', - ); + 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' + ' with status code 403 returned from service', + () async { + const testOptions = StorageCopyOptions(); + const testUnknownException = UnknownSmithyHttpException( + statusCode: 403, + body: 'Access denied.', + ); - when( - () => s3Client.copyObject( - any(), - ), - ).thenThrow(testUnknownException); + when( + () => s3Client.copyObject(any()), + ).thenThrow(testUnknownException); - expect( - storageS3Service.copy( - source: testSource, - destination: testDestination, - options: testOptions, - ), - throwsA(isA()), - ); - }); + expect( + storageS3Service.copy( + source: testSource, + destination: testDestination, + options: testOptions, + ), + throwsA(isA()), + ); + }, + ); - test('should handle AWSHttpException and throw NetworkException', - () async { - const testOptions = StorageCopyOptions(); - final testException = AWSHttpException( - AWSHttpRequest(method: AWSHttpMethod.put, uri: Uri()), - ); + test( + 'should handle AWSHttpException and throw NetworkException', + () async { + const testOptions = StorageCopyOptions(); + final testException = AWSHttpException( + AWSHttpRequest(method: AWSHttpMethod.put, uri: Uri()), + ); - when( - () => s3Client.copyObject(any()), - ).thenThrow(testException); + when(() => s3Client.copyObject(any())).thenThrow(testException); - expect( - storageS3Service.copy( - source: testSource, - destination: testDestination, - options: testOptions, - ), - throwsA(isA()), - ); - }); + expect( + storageS3Service.copy( + source: testSource, + destination: testDestination, + options: testOptions, + ), + throwsA(isA()), + ); + }, + ); test( - 'should invoke S3Client.headObject with correct parameters when getProperties option is set to true', - () async { - const testOptions = StorageCopyOptions( - pluginOptions: S3CopyPluginOptions( - getProperties: true, - ), - ); - final testCopyObjectOutput = CopyObjectOutput(); - final testHeadObjectOutput = HeadObjectOutput(); - final copySmithyOperation = MockSmithyOperation(); - final headSmithyOperation = MockSmithyOperation(); + 'should invoke S3Client.headObject with correct parameters when getProperties option is set to true', + () async { + const testOptions = StorageCopyOptions( + pluginOptions: S3CopyPluginOptions(getProperties: true), + ); + final testCopyObjectOutput = CopyObjectOutput(); + final testHeadObjectOutput = HeadObjectOutput(); + final copySmithyOperation = MockSmithyOperation(); + final headSmithyOperation = MockSmithyOperation(); - when( - () => copySmithyOperation.result, - ).thenAnswer((_) async => testCopyObjectOutput); + when( + () => copySmithyOperation.result, + ).thenAnswer((_) async => testCopyObjectOutput); - when( - () => headSmithyOperation.result, - ).thenAnswer((_) async => testHeadObjectOutput); + when( + () => headSmithyOperation.result, + ).thenAnswer((_) async => testHeadObjectOutput); - when( - () => s3Client.copyObject(any()), - ).thenAnswer((_) => copySmithyOperation); + when( + () => s3Client.copyObject(any()), + ).thenAnswer((_) => copySmithyOperation); - when( - () => s3Client.headObject(any()), - ).thenAnswer((_) => headSmithyOperation); + when( + () => s3Client.headObject(any()), + ).thenAnswer((_) => headSmithyOperation); - await storageS3Service.copy( - source: testSource, - destination: testDestination, - options: testOptions, - ); + await storageS3Service.copy( + source: testSource, + destination: testDestination, + options: testOptions, + ); - final headObjectRequest = verify( - () => s3Client.headObject(captureAny()), - ).captured.last; + final headObjectRequest = + verify( + () => s3Client.headObject(captureAny()), + ).captured.last; - expect(headObjectRequest is HeadObjectRequest, isTrue); - final request = headObjectRequest as HeadObjectRequest; + expect(headObjectRequest is HeadObjectRequest, isTrue); + final request = headObjectRequest as HeadObjectRequest; - expect(request.bucket, testBucket); - expect(request.key, testDestinationPath); - }); + expect(request.bucket, testBucket); + expect(request.key, testDestinationPath); + }, + ); }); group('remove() API', () { @@ -1053,142 +1028,136 @@ void main() { setUpAll(() { registerFallbackValue( - DeleteObjectRequest( - bucket: 'fake bucket', - key: 'dummy key', - ), + DeleteObjectRequest(bucket: 'fake bucket', key: 'dummy key'), ); }); - test('should invoke S3Client.deleteObject with default access level', - () async { - const testOptions = StorageRemoveOptions(); - final testDeleteObjectOutput = DeleteObjectOutput(); - final smithyOperation = MockSmithyOperation(); + test( + 'should invoke S3Client.deleteObject with default access level', + () async { + const testOptions = StorageRemoveOptions(); + final testDeleteObjectOutput = DeleteObjectOutput(); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testDeleteObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testDeleteObjectOutput); - when( - () => s3Client.deleteObject(any()), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.deleteObject(any()), + ).thenAnswer((_) => smithyOperation); - removeResult = await storageS3Service.remove( - path: testPath, - options: testOptions, - ); + removeResult = await storageS3Service.remove( + path: testPath, + options: testOptions, + ); - final capturedRequest = verify( - () => s3Client.deleteObject( - captureAny(), - ), - ).captured.last; - expect(capturedRequest is DeleteObjectRequest, isTrue); + final capturedRequest = + verify( + () => s3Client.deleteObject(captureAny()), + ).captured.last; + expect(capturedRequest is DeleteObjectRequest, isTrue); - final request = capturedRequest as DeleteObjectRequest; - expect(request.bucket, testBucket); - expect( - request.key, - TestPathResolver.path, - ); - }); + final request = capturedRequest as DeleteObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + }, + ); - test('should invoke S3Client.deleteObject with expected parameters', - () async { - const testOptions = StorageRemoveOptions(); - final testDeleteObjectOutput = DeleteObjectOutput(); - final smithyOperation = MockSmithyOperation(); + test( + 'should invoke S3Client.deleteObject with expected parameters', + () async { + const testOptions = StorageRemoveOptions(); + final testDeleteObjectOutput = DeleteObjectOutput(); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testDeleteObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testDeleteObjectOutput); - when( - () => s3Client.deleteObject(any()), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.deleteObject(any()), + ).thenAnswer((_) => smithyOperation); - removeResult = await storageS3Service.remove( - path: testPath, - options: testOptions, - ); + removeResult = await storageS3Service.remove( + path: testPath, + options: testOptions, + ); - final capturedRequest = verify( - () => s3Client.deleteObject( - captureAny(), - ), - ).captured.last; - expect(capturedRequest is DeleteObjectRequest, isTrue); + final capturedRequest = + verify( + () => s3Client.deleteObject(captureAny()), + ).captured.last; + expect(capturedRequest is DeleteObjectRequest, isTrue); - final request = capturedRequest as DeleteObjectRequest; - expect(request.bucket, testBucket); - expect( - request.key, - TestPathResolver.path, - ); - }); + final request = capturedRequest as DeleteObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + }, + ); test('should return correct S3RemoveResult', () { expect(removeResult.removedItem.path, TestPathResolver.path); }); test( - 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' - ' with status code 403 returned from service', () async { - const testOptions = StorageRemoveOptions(); - const testUnknownException = UnknownSmithyHttpException( - statusCode: 403, - body: 'Access denied.', - ); + 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' + ' with status code 403 returned from service', + () async { + const testOptions = StorageRemoveOptions(); + const testUnknownException = UnknownSmithyHttpException( + statusCode: 403, + body: 'Access denied.', + ); - when( - () => s3Client.deleteObject(any()), - ).thenThrow(testUnknownException); + when( + () => s3Client.deleteObject(any()), + ).thenThrow(testUnknownException); - expect( - storageS3Service.remove( - path: const StoragePath.fromString('a key'), - options: testOptions, - ), - throwsA(isA()), - ); - }); + expect( + storageS3Service.remove( + path: const StoragePath.fromString('a key'), + options: testOptions, + ), + throwsA(isA()), + ); + }, + ); - test('should handle AWSHttpException and throw NetworkException', - () async { - const testOptions = StorageRemoveOptions(); - final testException = AWSHttpException( - AWSHttpRequest(method: AWSHttpMethod.delete, uri: Uri()), - ); + test( + 'should handle AWSHttpException and throw NetworkException', + () async { + const testOptions = StorageRemoveOptions(); + final testException = AWSHttpException( + AWSHttpRequest(method: AWSHttpMethod.delete, uri: Uri()), + ); - when( - () => s3Client.deleteObject(any()), - ).thenThrow(testException); + when(() => s3Client.deleteObject(any())).thenThrow(testException); - expect( - storageS3Service.remove( - path: const StoragePath.fromString('a key'), - options: testOptions, - ), - throwsA(isA()), - ); - }); + expect( + storageS3Service.remove( + path: const StoragePath.fromString('a key'), + options: testOptions, + ), + throwsA(isA()), + ); + }, + ); }); group('removeMany() API', () { late S3RemoveManyResult removeManyResult; const testNumOfRemovedItems = 955; const testNumOfRemoveErrors = 50; - final testPaths = List.generate( - 1005, - (index) => 'object-to-remove-${index + 1}', - ).map(StoragePath.fromString).toList(); + final testPaths = + List.generate( + 1005, + (index) => 'object-to-remove-${index + 1}', + ).map(StoragePath.fromString).toList(); late List resolvedPaths; setUpAll(() async { - resolvedPaths = await pathResolver.resolvePaths( - paths: testPaths, - ); + resolvedPaths = await pathResolver.resolvePaths(paths: testPaths); registerFallbackValue( DeleteObjectsRequest( bucket: 'fake bucket', @@ -1197,173 +1166,177 @@ void main() { ); }); - test('should invoke S3Client.deleteObjects with default access level', - () async { - const testOptions = StorageRemoveManyOptions(); - final testDeleteObjectsOutput = DeleteObjectsOutput( - deleted: resolvedPaths - .take(2) - .map((path) => DeletedObject(key: path)) - .toList(), - ); + test( + 'should invoke S3Client.deleteObjects with default access level', + () async { + const testOptions = StorageRemoveManyOptions(); + final testDeleteObjectsOutput = DeleteObjectsOutput( + deleted: + resolvedPaths + .take(2) + .map((path) => DeletedObject(key: path)) + .toList(), + ); - final smithyOperation = MockSmithyOperation(); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testDeleteObjectsOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testDeleteObjectsOutput); - when( - () => s3Client.deleteObjects( - any(), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.deleteObjects(any()), + ).thenAnswer((_) => smithyOperation); - removeManyResult = await storageS3Service.removeMany( - paths: testPaths.take(2).toList(), - options: testOptions, - ); + removeManyResult = await storageS3Service.removeMany( + paths: testPaths.take(2).toList(), + options: testOptions, + ); - final capturedRequests = verify( - () => s3Client.deleteObjects(captureAny()), - ).captured; + final capturedRequests = + verify( + () => + s3Client.deleteObjects(captureAny()), + ).captured; - expect(capturedRequests, hasLength(1)); + expect(capturedRequests, hasLength(1)); - final capturedRequest = capturedRequests.first; + final capturedRequest = capturedRequests.first; - expect(capturedRequest is DeleteObjectsRequest, isTrue); + expect(capturedRequest is DeleteObjectsRequest, isTrue); - final request = capturedRequest as DeleteObjectsRequest; - final expectedKeysForRequest = resolvedPaths.take(2).toList(); + final request = capturedRequest as DeleteObjectsRequest; + final expectedKeysForRequest = resolvedPaths.take(2).toList(); - expect( - request.delete.objects.map((object) => object.key), - containsAllInOrder(expectedKeysForRequest), - ); - }); + expect( + request.delete.objects.map((object) => object.key), + containsAllInOrder(expectedKeysForRequest), + ); + }, + ); - test('should invoke S3Client.deleteObjects with expected parameters', - () async { - const testOptions = StorageRemoveManyOptions(); - final testDeleteObjectsOutput1 = DeleteObjectsOutput( - deleted: List.generate( - 1000 - testNumOfRemoveErrors, - (index) => DeletedObject(key: resolvedPaths[index]), - ), - errors: List.generate( - testNumOfRemoveErrors, - (index) => Error( - key: resolvedPaths[index], - message: 'some error', + test( + 'should invoke S3Client.deleteObjects with expected parameters', + () async { + const testOptions = StorageRemoveManyOptions(); + final testDeleteObjectsOutput1 = DeleteObjectsOutput( + deleted: List.generate( + 1000 - testNumOfRemoveErrors, + (index) => DeletedObject(key: resolvedPaths[index]), ), - ), - ); - final testDeleteObjectsOutput2 = DeleteObjectsOutput( - deleted: List.generate( - 5, - (index) => DeletedObject(key: resolvedPaths[1000 + index]), - ), - ); - - final smithyOperation1 = MockSmithyOperation(); - final smithyOperation2 = MockSmithyOperation(); - - when( - () => smithyOperation1.result, - ).thenAnswer((_) async => testDeleteObjectsOutput1); + errors: List.generate( + testNumOfRemoveErrors, + (index) => + Error(key: resolvedPaths[index], message: 'some error'), + ), + ); + final testDeleteObjectsOutput2 = DeleteObjectsOutput( + deleted: List.generate( + 5, + (index) => DeletedObject(key: resolvedPaths[1000 + index]), + ), + ); - when( - () => smithyOperation2.result, - ).thenAnswer((_) async => testDeleteObjectsOutput2); + final smithyOperation1 = MockSmithyOperation(); + final smithyOperation2 = MockSmithyOperation(); - // response to the first 1000 delete objects request - when( - () => s3Client.deleteObjects( - any(that: DeleteObjectsLength(equals(1000))), - ), - ).thenAnswer((_) => smithyOperation1); + when( + () => smithyOperation1.result, + ).thenAnswer((_) async => testDeleteObjectsOutput1); - // response to the remaining delete objects request - when( - () => s3Client.deleteObjects( - any(that: DeleteObjectsLength(equals(5))), - ), - ).thenAnswer((_) => smithyOperation2); + when( + () => smithyOperation2.result, + ).thenAnswer((_) async => testDeleteObjectsOutput2); - removeManyResult = await storageS3Service.removeMany( - paths: testPaths, - options: testOptions, - ); + // response to the first 1000 delete objects request + when( + () => s3Client.deleteObjects( + any(that: DeleteObjectsLength(equals(1000))), + ), + ).thenAnswer((_) => smithyOperation1); - final capturedRequests = verify( - () => s3Client.deleteObjects(captureAny()), - ).captured; + // response to the remaining delete objects request + when( + () => s3Client.deleteObjects( + any(that: DeleteObjectsLength(equals(5))), + ), + ).thenAnswer((_) => smithyOperation2); - // 1005 objects to remove therefore should send 2 requests for - // 2 batches - expect(capturedRequests, hasLength(2)); + removeManyResult = await storageS3Service.removeMany( + paths: testPaths, + options: testOptions, + ); - final capturedRequest1 = capturedRequests.first; - final capturedRequest2 = capturedRequests.last; + final capturedRequests = + verify( + () => + s3Client.deleteObjects(captureAny()), + ).captured; - expect(capturedRequest1 is DeleteObjectsRequest, isTrue); - expect(capturedRequest2 is DeleteObjectsRequest, isTrue); + // 1005 objects to remove therefore should send 2 requests for + // 2 batches + expect(capturedRequests, hasLength(2)); - final request1 = capturedRequest1 as DeleteObjectsRequest; - final request2 = capturedRequest2 as DeleteObjectsRequest; + final capturedRequest1 = capturedRequests.first; + final capturedRequest2 = capturedRequests.last; - final expectedKeysForRequest1 = await pathResolver.resolvePaths( - paths: testPaths.take(1000).toList(), - ); + expect(capturedRequest1 is DeleteObjectsRequest, isTrue); + expect(capturedRequest2 is DeleteObjectsRequest, isTrue); - final expectedKeysForRequest2 = await pathResolver.resolvePaths( - paths: testPaths.skip(1000).toList(), - ); + final request1 = capturedRequest1 as DeleteObjectsRequest; + final request2 = capturedRequest2 as DeleteObjectsRequest; - expect( - request1.delete.objects.map((object) => object.key), - containsAllInOrder(expectedKeysForRequest1), - ); + final expectedKeysForRequest1 = await pathResolver.resolvePaths( + paths: testPaths.take(1000).toList(), + ); - expect( - request2.delete.objects.map((object) => object.key), - containsAllInOrder(expectedKeysForRequest2), - ); - final removedItems = removeManyResult.removedItems; - final removeErrors = removeManyResult.errors; + final expectedKeysForRequest2 = await pathResolver.resolvePaths( + paths: testPaths.skip(1000).toList(), + ); - expect(removedItems, hasLength(testNumOfRemovedItems)); - expect(removeErrors, hasLength(testNumOfRemoveErrors)); + expect( + request1.delete.objects.map((object) => object.key), + containsAllInOrder(expectedKeysForRequest1), + ); - removedItems.asMap().forEach((index, item) { - final lookupIndex = - index < 950 ? index : index + testNumOfRemoveErrors; - expect(item.path, resolvedPaths[lookupIndex]); - }); - }); + expect( + request2.delete.objects.map((object) => object.key), + containsAllInOrder(expectedKeysForRequest2), + ); + final removedItems = removeManyResult.removedItems; + final removeErrors = removeManyResult.errors; + + expect(removedItems, hasLength(testNumOfRemovedItems)); + expect(removeErrors, hasLength(testNumOfRemoveErrors)); + + removedItems.asMap().forEach((index, item) { + final lookupIndex = + index < 950 ? index : index + testNumOfRemoveErrors; + expect(item.path, resolvedPaths[lookupIndex]); + }); + }, + ); test( - 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' - ' with status code 403 returned from service', () async { - const testOptions = StorageRemoveManyOptions(); - const testUnknownException = UnknownSmithyHttpException( - statusCode: 403, - body: 'Access denied.', - ); + 'should throw StorageAccessDeniedException when UnknownSmithyHttpException' + ' with status code 403 returned from service', + () async { + const testOptions = StorageRemoveManyOptions(); + const testUnknownException = UnknownSmithyHttpException( + statusCode: 403, + body: 'Access denied.', + ); - when( - () => s3Client.deleteObjects(any()), - ).thenThrow(testUnknownException); + when( + () => s3Client.deleteObjects(any()), + ).thenThrow(testUnknownException); - expect( - storageS3Service.removeMany( - paths: testPaths, - options: testOptions, - ), - throwsA(isA()), - ); - }); + expect( + storageS3Service.removeMany(paths: testPaths, options: testOptions), + throwsA(isA()), + ); + }, + ); test('should handle AWSHttpRequest and throw NetworkException', () async { const testOptions = StorageRemoveManyOptions(); @@ -1371,15 +1344,10 @@ void main() { AWSHttpRequest(method: AWSHttpMethod.delete, uri: Uri()), ); - when( - () => s3Client.deleteObjects(any()), - ).thenThrow(testException); + when(() => s3Client.deleteObjects(any())).thenThrow(testException); expect( - storageS3Service.removeMany( - paths: testPaths, - options: testOptions, - ), + storageS3Service.removeMany(paths: testPaths, options: testOptions), throwsA(isA()), ); }); diff --git a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/part_size_util_test.dart b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/part_size_util_test.dart index 336da793bf..810e70446b 100644 --- a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/part_size_util_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/part_size_util_test.dart @@ -10,27 +10,22 @@ void main() { const expectedMaxNumberOfParts = 10000; group('part_size_util', () { - test( - 'ensure part size to at least be $expectedMinPartSize', - () { - const testFileSize = 11 * 1024 * 1024; // 11MiB - final result = part_size_util.calculateOptimalPartSize(testFileSize); + test('ensure part size to at least be $expectedMinPartSize', () { + const testFileSize = 11 * 1024 * 1024; // 11MiB + final result = part_size_util.calculateOptimalPartSize(testFileSize); - expect(result, expectedMinPartSize); - }, - ); + expect(result, expectedMinPartSize); + }); - test( - 'allow part size to be larger than $expectedMinPartSize', - () { - const testFileSize = 5 * 1024 * 1024 * expectedMaxNumberOfParts + - 1000 * 1024 * 1024; // 51GiB - final expectedResult = (testFileSize / expectedMaxNumberOfParts).ceil(); + test('allow part size to be larger than $expectedMinPartSize', () { + const testFileSize = + 5 * 1024 * 1024 * expectedMaxNumberOfParts + + 1000 * 1024 * 1024; // 51GiB + final expectedResult = (testFileSize / expectedMaxNumberOfParts).ceil(); - final result = part_size_util.calculateOptimalPartSize(testFileSize); - expect(result, greaterThan(expectedMinPartSize)); - expect(result, expectedResult); - }, - ); + final result = part_size_util.calculateOptimalPartSize(testFileSize); + expect(result, greaterThan(expectedMinPartSize)); + expect(result, expectedResult); + }); }); } diff --git a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_download_task_test.dart b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_download_task_test.dart index 950b88d854..db81c0f3f8 100644 --- a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_download_task_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_download_task_test.dart @@ -29,17 +29,11 @@ void main() { s3Client = MockS3Client(); registerFallbackValue( - GetObjectRequest( - bucket: 'fake bucket', - key: 'dummy key', - ), + GetObjectRequest(bucket: 'fake bucket', key: 'dummy key'), ); registerFallbackValue( - HeadObjectRequest( - bucket: 'fake bucket', - key: 'dummy key', - ), + HeadObjectRequest(bucket: 'fake bucket', key: 'dummy key'), ); registerFallbackValue(const S3ClientConfig()); @@ -47,204 +41,207 @@ void main() { group('start() API', () { test( - 'it should ripple exception thrown from `preStart` to the result Future', - () { - const testException = UnknownException('test exception'); - Future testPreStart() async { - throw testException; - } - - final downloadTask = S3DownloadTask( - s3Client: s3Client, - defaultS3ClientConfig: defaultS3ClientConfig, - bucket: testBucket, - path: const StoragePath.fromString(testKey), - pathResolver: TestPathResolver(), - options: defaultTestOptions, - preStart: testPreStart, - ); + 'it should ripple exception thrown from `preStart` to the result Future', + () { + const testException = UnknownException('test exception'); + Future testPreStart() async { + throw testException; + } + + final downloadTask = S3DownloadTask( + s3Client: s3Client, + defaultS3ClientConfig: defaultS3ClientConfig, + bucket: testBucket, + path: const StoragePath.fromString(testKey), + pathResolver: TestPathResolver(), + options: defaultTestOptions, + preStart: testPreStart, + ); - unawaited(downloadTask.start()); + unawaited(downloadTask.start()); - expect(downloadTask.result, throwsA(testException)); - }); + expect(downloadTask.result, throwsA(testException)); + }, + ); test( - 'it should invoke S3Client.getObject API with correct parameters and default access level', - () async { - const testBodyBytes = [101, 102]; - final testGetObjectOutput = GetObjectOutput( - contentLength: Int64(testBodyBytes.length), - body: Stream.value(testBodyBytes), - ); - final smithyOperation = MockSmithyOperation(); - late StorageTransferState finalState; + 'it should invoke S3Client.getObject API with correct parameters and default access level', + () async { + const testBodyBytes = [101, 102]; + final testGetObjectOutput = GetObjectOutput( + contentLength: Int64(testBodyBytes.length), + body: Stream.value(testBodyBytes), + ); + final smithyOperation = MockSmithyOperation(); + late StorageTransferState finalState; - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testGetObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testGetObjectOutput); - when( - () => s3Client.getObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.getObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - final downloadTask = S3DownloadTask( - s3Client: s3Client, - defaultS3ClientConfig: defaultS3ClientConfig, - bucket: testBucket, - path: const StoragePath.fromString(testKey), - pathResolver: TestPathResolver(), - options: const StorageDownloadDataOptions(), - onProgress: (progress) { - finalState = progress.state; - }, - ); + final downloadTask = S3DownloadTask( + s3Client: s3Client, + defaultS3ClientConfig: defaultS3ClientConfig, + bucket: testBucket, + path: const StoragePath.fromString(testKey), + pathResolver: TestPathResolver(), + options: const StorageDownloadDataOptions(), + onProgress: (progress) { + finalState = progress.state; + }, + ); - await downloadTask.start(); + await downloadTask.start(); - final capturedRequest = verify( - () => s3Client.getObject( - captureAny(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).captured.last; + final capturedRequest = + verify( + () => s3Client.getObject( + captureAny(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).captured.last; - expect(capturedRequest is GetObjectRequest, isTrue); + expect(capturedRequest is GetObjectRequest, isTrue); - final request = capturedRequest as GetObjectRequest; - expect(request.bucket, testBucket); - expect( - request.key, - TestPathResolver.path, - ); - expect(request.checksumMode, ChecksumMode.enabled); + final request = capturedRequest as GetObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + expect(request.checksumMode, ChecksumMode.enabled); - await downloadTask.result; - expect(finalState, StorageTransferState.success); - }); + await downloadTask.result; + expect(finalState, StorageTransferState.success); + }, + ); test( - 'it should invoke S3Client.getObject API with correct useAcceleration parameter', - () async { - const testUseAccelerateEndpoint = true; - const testOptions = StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - useAccelerateEndpoint: testUseAccelerateEndpoint, - ), - ); - const testBodyBytes = [101, 102]; - final testGetObjectOutput = GetObjectOutput( - contentLength: Int64(testBodyBytes.length), - body: Stream.value(testBodyBytes), - ); - final smithyOperation = MockSmithyOperation(); - - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testGetObjectOutput); + 'it should invoke S3Client.getObject API with correct useAcceleration parameter', + () async { + const testUseAccelerateEndpoint = true; + const testOptions = StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions( + useAccelerateEndpoint: testUseAccelerateEndpoint, + ), + ); + const testBodyBytes = [101, 102]; + final testGetObjectOutput = GetObjectOutput( + contentLength: Int64(testBodyBytes.length), + body: Stream.value(testBodyBytes), + ); + final smithyOperation = MockSmithyOperation(); - when( - () => s3Client.getObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testGetObjectOutput); - final downloadTask = S3DownloadTask( - s3Client: s3Client, - defaultS3ClientConfig: defaultS3ClientConfig, - bucket: testBucket, - path: const StoragePath.fromString(testKey), - pathResolver: TestPathResolver(), - options: testOptions, - ); + when( + () => s3Client.getObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - await downloadTask.start(); + final downloadTask = S3DownloadTask( + s3Client: s3Client, + defaultS3ClientConfig: defaultS3ClientConfig, + bucket: testBucket, + path: const StoragePath.fromString(testKey), + pathResolver: TestPathResolver(), + options: testOptions, + ); - final capturedS3ClientConfig = verify( - () => s3Client.getObject( - any(), - s3ClientConfig: captureAny(named: 's3ClientConfig'), - ), - ).captured.last; + await downloadTask.start(); - expect( - capturedS3ClientConfig, - isA().having( - (o) => o.useAcceleration, - 'useAcceleration', - testUseAccelerateEndpoint, - ), - ); - }); + final capturedS3ClientConfig = + verify( + () => s3Client.getObject( + any(), + s3ClientConfig: captureAny( + named: 's3ClientConfig', + ), + ), + ).captured.last; + + expect( + capturedS3ClientConfig, + isA().having( + (o) => o.useAcceleration, + 'useAcceleration', + testUseAccelerateEndpoint, + ), + ); + }, + ); test( - 'it should throw StorageException when getObject response doesn\'t include a value contentLength header', - () async { - final testGetObjectOutput = GetObjectOutput( - body: Stream.value([101]), - ); - final smithyOperation = MockSmithyOperation(); - var onErrorHasBeenCalled = false; + 'it should throw StorageException when getObject response doesn\'t include a value contentLength header', + () async { + final testGetObjectOutput = GetObjectOutput( + body: Stream.value([101]), + ); + final smithyOperation = MockSmithyOperation(); + var onErrorHasBeenCalled = false; - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testGetObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testGetObjectOutput); - when( - () => s3Client.getObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.getObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - final downloadTask = S3DownloadTask( - s3Client: s3Client, - defaultS3ClientConfig: defaultS3ClientConfig, - bucket: testBucket, - path: const StoragePath.fromString(testKey), - pathResolver: TestPathResolver(), - options: defaultTestOptions, - onError: () { - onErrorHasBeenCalled = true; - }, - ); + final downloadTask = S3DownloadTask( + s3Client: s3Client, + defaultS3ClientConfig: defaultS3ClientConfig, + bucket: testBucket, + path: const StoragePath.fromString(testKey), + pathResolver: TestPathResolver(), + options: defaultTestOptions, + onError: () { + onErrorHasBeenCalled = true; + }, + ); - unawaited(downloadTask.start()); + unawaited(downloadTask.start()); - await expectLater( - downloadTask.result, - throwsA(isA()), - ); - expect(onErrorHasBeenCalled, isTrue); - }); + await expectLater( + downloadTask.result, + throwsA(isA()), + ); + expect(onErrorHasBeenCalled, isTrue); + }, + ); test( - 'throw exception when attempt to use accelerate endpoint with path style URL', - () { - final downloadTask = S3DownloadTask( - s3Client: s3Client, - defaultS3ClientConfig: const S3ClientConfig(usePathStyle: true), - bucket: 'bucket.name.has.dots.com', - path: const StoragePath.fromString('public/$testKey'), - pathResolver: TestPathResolver(), - options: const StorageDownloadDataOptions( - pluginOptions: S3DownloadDataPluginOptions( - useAccelerateEndpoint: true, + 'throw exception when attempt to use accelerate endpoint with path style URL', + () { + final downloadTask = S3DownloadTask( + s3Client: s3Client, + defaultS3ClientConfig: const S3ClientConfig(usePathStyle: true), + bucket: 'bucket.name.has.dots.com', + path: const StoragePath.fromString('public/$testKey'), + pathResolver: TestPathResolver(), + options: const StorageDownloadDataOptions( + pluginOptions: S3DownloadDataPluginOptions( + useAccelerateEndpoint: true, + ), ), - ), - ); + ); - unawaited(downloadTask.start()); + unawaited(downloadTask.start()); - expect( - downloadTask.result, - throwsA(accelerateEndpointUnusable), - ); - }); + expect(downloadTask.result, throwsA(accelerateEndpointUnusable)); + }, + ); }); group('pause API()', () { @@ -253,13 +250,15 @@ void main() { final testGetObjectOutput = GetObjectOutput( contentLength: Int64(1024), body: Stream>.periodic( - const Duration(microseconds: 200), - (_) => [101], - ).take(1024).asBroadcastStream( - onCancel: (StreamSubscription> subscription) { - bodyStreamHasBeenCanceled = true; - }, - ), + const Duration(microseconds: 200), + (_) => [101], + ) + .take(1024) + .asBroadcastStream( + onCancel: (StreamSubscription> subscription) { + bodyStreamHasBeenCanceled = true; + }, + ), ); final smithyOperation = MockSmithyOperation(); final receivedState = []; @@ -366,13 +365,15 @@ void main() { final testGetObjectOutput = GetObjectOutput( contentLength: Int64(1024), body: Stream>.periodic( - const Duration(microseconds: 200), - (_) => [101], - ).take(1024).asBroadcastStream( - onCancel: (StreamSubscription> subscription) { - bodyStreamHasBeenCanceled = true; - }, - ), + const Duration(microseconds: 200), + (_) => [101], + ) + .take(1024) + .asBroadcastStream( + onCancel: (StreamSubscription> subscription) { + bodyStreamHasBeenCanceled = true; + }, + ), ); final smithyOperation = MockSmithyOperation(); final receivedState = []; @@ -443,35 +444,39 @@ void main() { ), ]; - test('should forward StorageException when getObject returns no body', - () { - final testGetObjectOutput = GetObjectOutput(contentLength: Int64(1024)); - final smithyOperation = MockSmithyOperation(); + test( + 'should forward StorageException when getObject returns no body', + () { + final testGetObjectOutput = GetObjectOutput( + contentLength: Int64(1024), + ); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testGetObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testGetObjectOutput); - when( - () => s3Client.getObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.getObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - final downloadTask = S3DownloadTask( - s3Client: s3Client, - defaultS3ClientConfig: defaultS3ClientConfig, - bucket: testBucket, - path: const StoragePath.fromString('public/$testKey'), - pathResolver: TestPathResolver(), - options: defaultTestOptions, - ); + final downloadTask = S3DownloadTask( + s3Client: s3Client, + defaultS3ClientConfig: defaultS3ClientConfig, + bucket: testBucket, + path: const StoragePath.fromString('public/$testKey'), + pathResolver: TestPathResolver(), + options: defaultTestOptions, + ); - unawaited(downloadTask.start()); + unawaited(downloadTask.start()); - expect(downloadTask.result, throwsA(isA())); - }); + expect(downloadTask.result, throwsA(isA())); + }, + ); group('error handling on start()', () { late S3DownloadTask downloadTask; @@ -599,58 +604,56 @@ void main() { }); test( - '`onDone` should be invoked when body stream is completed and ripples exception from onDone to the result Future', - () async { - const testBodyBytes = [101, 102]; - final testGetObjectOutput = GetObjectOutput( - contentLength: Int64(testBodyBytes.length), - body: Stream.value(testBodyBytes), - ); - final smithyOperation = MockSmithyOperation(); - final testOnDoneException = Exception('some exception'); - var onDoneHasBeenCalled = false; - late StorageTransferState finalState; + '`onDone` should be invoked when body stream is completed and ripples exception from onDone to the result Future', + () async { + const testBodyBytes = [101, 102]; + final testGetObjectOutput = GetObjectOutput( + contentLength: Int64(testBodyBytes.length), + body: Stream.value(testBodyBytes), + ); + final smithyOperation = MockSmithyOperation(); + final testOnDoneException = Exception('some exception'); + var onDoneHasBeenCalled = false; + late StorageTransferState finalState; - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testGetObjectOutput); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testGetObjectOutput); - when( - () => s3Client.getObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.getObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - final downloadTask = S3DownloadTask( - s3Client: s3Client, - defaultS3ClientConfig: defaultS3ClientConfig, - bucket: testBucket, - path: const StoragePath.fromString('public/$testKey'), - pathResolver: TestPathResolver(), - options: defaultTestOptions, - onDone: () async { - onDoneHasBeenCalled = true; - throw testOnDoneException; - }, - onProgress: (progress) { - finalState = progress.state; - }, - ); + final downloadTask = S3DownloadTask( + s3Client: s3Client, + defaultS3ClientConfig: defaultS3ClientConfig, + bucket: testBucket, + path: const StoragePath.fromString('public/$testKey'), + pathResolver: TestPathResolver(), + options: defaultTestOptions, + onDone: () async { + onDoneHasBeenCalled = true; + throw testOnDoneException; + }, + onProgress: (progress) { + finalState = progress.state; + }, + ); - unawaited(downloadTask.start()); + unawaited(downloadTask.start()); - await expectLater(downloadTask.result, throwsA(testOnDoneException)); - expect(onDoneHasBeenCalled, isTrue); - expect(finalState, StorageTransferState.failure); - }); + await expectLater(downloadTask.result, throwsA(testOnDoneException)); + expect(onDoneHasBeenCalled, isTrue); + expect(finalState, StorageTransferState.failure); + }, + ); group('download result', () { const testBodyBytes = [101, 102]; - const testMetadata = { - 'filename': '1.jpg', - 'group': 'GroupA', - }; + const testMetadata = {'filename': '1.jpg', 'group': 'GroupA'}; final testItems = [ GetPropertiesTestItem( description: diff --git a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_upload_task_test.dart b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_upload_task_test.dart index 85e96ec5d9..311e204a4b 100644 --- a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_upload_task_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/task/s3_upload_task_test.dart @@ -93,128 +93,78 @@ void main() { const testPath = StoragePath.fromString('object-upload-to'); test( - 'should invoke S3Client.putObject API with expected parameters and default access level', - () async { - final testPutObjectOutput = s3.PutObjectOutput(); - final smithyOperation = MockSmithyOperation(); - - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testPutObjectOutput); - when(() => smithyOperation.requestProgress) - .thenAnswer((_) => Stream.value(1)); - - when( - () => s3Client.putObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); - - final uploadDataTask = S3UploadTask.fromDataPayload( - testDataPayload, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: testPath, - options: const StorageUploadDataOptions(), - logger: logger, - transferDatabase: transferDatabase, - ); - - unawaited(uploadDataTask.start()); - - final result = await uploadDataTask.result; - - expect(result.path, TestPathResolver.path); - - final capturedRequest = verify( - () => s3Client.putObject( - captureAny(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).captured.last; - - expect(capturedRequest is s3.PutObjectRequest, isTrue); - final request = capturedRequest as s3.PutObjectRequest; - expect(request.bucket, testBucket); - expect( - request.key, - TestPathResolver.path, - ); - expect(request.body, testDataPayload); - }); + 'should invoke S3Client.putObject API with expected parameters and default access level', + () async { + final testPutObjectOutput = s3.PutObjectOutput(); + final smithyOperation = MockSmithyOperation(); - test( - 'should invoke S3Client.putObject API with correct useAcceleration parameters', - () async { - const testUploadDataOptions = StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions( - useAccelerateEndpoint: true, - ), - ); - final testPutObjectOutput = s3.PutObjectOutput(); - final smithyOperation = MockSmithyOperation(); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testPutObjectOutput); + when( + () => smithyOperation.requestProgress, + ).thenAnswer((_) => Stream.value(1)); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testPutObjectOutput); - when(() => smithyOperation.requestProgress) - .thenAnswer((_) => Stream.value(1)); + when( + () => s3Client.putObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - when( - () => s3Client.putObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + final uploadDataTask = S3UploadTask.fromDataPayload( + testDataPayload, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: testPath, + options: const StorageUploadDataOptions(), + logger: logger, + transferDatabase: transferDatabase, + ); - final uploadDataTask = S3UploadTask.fromDataPayload( - testDataPayload, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: testPath, - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - ); + unawaited(uploadDataTask.start()); - unawaited(uploadDataTask.start()); + final result = await uploadDataTask.result; - await uploadDataTask.result; + expect(result.path, TestPathResolver.path); - final capturedS3ClientConfig = verify( - () => s3Client.putObject( - any(), - s3ClientConfig: - captureAny(named: 's3ClientConfig'), - ), - ).captured.last; + final capturedRequest = + verify( + () => s3Client.putObject( + captureAny(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).captured.last; - expect( - capturedS3ClientConfig, - isA() - .having((o) => o.useAcceleration, 'useAcceleration', true), - ); - }); + expect(capturedRequest is s3.PutObjectRequest, isTrue); + final request = capturedRequest as s3.PutObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + expect(request.body, testDataPayload); + }, + ); test( - 'should use fallback contentType header when contentType of the data' - ' payload is not determinable', + 'should invoke S3Client.putObject API with correct useAcceleration parameters', () async { + const testUploadDataOptions = StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions( + useAccelerateEndpoint: true, + ), + ); final testPutObjectOutput = s3.PutObjectOutput(); final smithyOperation = MockSmithyOperation(); when( () => smithyOperation.result, ).thenAnswer((_) async => testPutObjectOutput); - when(() => smithyOperation.requestProgress) - .thenAnswer((_) => Stream.value(1)); + when( + () => smithyOperation.requestProgress, + ).thenAnswer((_) => Stream.value(1)); + when( () => s3Client.putObject( any(), @@ -223,7 +173,7 @@ void main() { ).thenAnswer((_) => smithyOperation); final uploadDataTask = S3UploadTask.fromDataPayload( - testDataPayloadBytes, + testDataPayload, s3Client: s3Client, s3ClientConfig: defaultS3ClientConfig, pathResolver: pathResolver, @@ -239,61 +189,47 @@ void main() { await uploadDataTask.result; - final capturedRequest = verify( - () => s3Client.putObject( - captureAny(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).captured.last; + final capturedS3ClientConfig = + verify( + () => s3Client.putObject( + any(), + s3ClientConfig: captureAny( + named: 's3ClientConfig', + ), + ), + ).captured.last; expect( - capturedRequest, - isA().having( - (o) => o.contentType, - 'contentType', - fallbackContentType, + capturedS3ClientConfig, + isA().having( + (o) => o.useAcceleration, + 'useAcceleration', + true, ), ); }, ); - test( - 'should invoke S3Client.headObject API with correct parameters when getProperties is set to true in the options', - () async { - const testUploadDataOptions = StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions( - getProperties: true, - ), - ); + test('should use fallback contentType header when contentType of the data' + ' payload is not determinable', () async { final testPutObjectOutput = s3.PutObjectOutput(); - final putSmithyOperation = MockSmithyOperation(); - final testHeadObjectOutput = s3.HeadObjectOutput(); - final headSmithyOperation = MockSmithyOperation(); + final smithyOperation = MockSmithyOperation(); when( - () => putSmithyOperation.result, + () => smithyOperation.result, ).thenAnswer((_) async => testPutObjectOutput); when( - () => putSmithyOperation.requestProgress, + () => smithyOperation.requestProgress, ).thenAnswer((_) => Stream.value(1)); - - when( - () => headSmithyOperation.result, - ).thenAnswer((_) async => testHeadObjectOutput); - when( () => s3Client.putObject( any(), s3ClientConfig: any(named: 's3ClientConfig'), ), - ).thenAnswer((_) => putSmithyOperation); - - when( - () => s3Client.headObject(any()), - ).thenAnswer((_) => headSmithyOperation); + ).thenAnswer((_) => smithyOperation); final uploadDataTask = S3UploadTask.fromDataPayload( - testDataPayload, + testDataPayloadBytes, s3Client: s3Client, s3ClientConfig: defaultS3ClientConfig, pathResolver: pathResolver, @@ -306,23 +242,90 @@ void main() { ); unawaited(uploadDataTask.start()); + await uploadDataTask.result; - final capturedRequest = verify( - () => s3Client.headObject(captureAny()), - ).captured.last; + final capturedRequest = + verify( + () => s3Client.putObject( + captureAny(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).captured.last; - expect(capturedRequest is s3.HeadObjectRequest, isTrue); - final request = capturedRequest as s3.HeadObjectRequest; - expect(request.bucket, testBucket); expect( - request.key, - TestPathResolver.path, + capturedRequest, + isA().having( + (o) => o.contentType, + 'contentType', + fallbackContentType, + ), ); }); test( - 'should throw StorageAccessDeniedException when S3Client.putObject' + 'should invoke S3Client.headObject API with correct parameters when getProperties is set to true in the options', + () async { + const testUploadDataOptions = StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions(getProperties: true), + ); + final testPutObjectOutput = s3.PutObjectOutput(); + final putSmithyOperation = MockSmithyOperation(); + final testHeadObjectOutput = s3.HeadObjectOutput(); + final headSmithyOperation = + MockSmithyOperation(); + + when( + () => putSmithyOperation.result, + ).thenAnswer((_) async => testPutObjectOutput); + when( + () => putSmithyOperation.requestProgress, + ).thenAnswer((_) => Stream.value(1)); + + when( + () => headSmithyOperation.result, + ).thenAnswer((_) async => testHeadObjectOutput); + + when( + () => s3Client.putObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => putSmithyOperation); + + when( + () => s3Client.headObject(any()), + ).thenAnswer((_) => headSmithyOperation); + + final uploadDataTask = S3UploadTask.fromDataPayload( + testDataPayload, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: testPath, + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + ); + + unawaited(uploadDataTask.start()); + await uploadDataTask.result; + + final capturedRequest = + verify( + () => s3Client.headObject(captureAny()), + ).captured.last; + + expect(capturedRequest is s3.HeadObjectRequest, isTrue); + final request = capturedRequest as s3.HeadObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + }, + ); + + test('should throw StorageAccessDeniedException when S3Client.putObject' ' returned UnknownSmithyHttpException with status code 403', () { const testException = smithy.UnknownSmithyHttpException( statusCode: 403, @@ -357,8 +360,7 @@ void main() { ); }); - test( - 'should throw NetworkException when S3Client.putObject' + test('should throw NetworkException when S3Client.putObject' ' returned AWSHttpException', () { const testUploadDataOptions = StorageUploadDataOptions(); final testException = AWSHttpException( @@ -387,61 +389,56 @@ void main() { unawaited(uploadDataTask.start()); - expect( - uploadDataTask.result, - throwsA(isA()), - ); + expect(uploadDataTask.result, throwsA(isA())); }); test( - 'cancel() should cancel underlying put object request and throw a StorageException', - () async { - final putSmithyOperation = MockSmithyOperation(); + 'cancel() should cancel underlying put object request and throw a StorageException', + () async { + final putSmithyOperation = MockSmithyOperation(); - final completer = Completer(); - when( - () => putSmithyOperation.result, - ).thenAnswer((_) async { - await completer.future; - throw const CancellationException(); - }); - when( - putSmithyOperation.cancel, - ).thenAnswer((_) async {}); - when(() => putSmithyOperation.requestProgress) - .thenAnswer((_) => Stream.value(1)); + final completer = Completer(); + when(() => putSmithyOperation.result).thenAnswer((_) async { + await completer.future; + throw const CancellationException(); + }); + when(putSmithyOperation.cancel).thenAnswer((_) async {}); + when( + () => putSmithyOperation.requestProgress, + ).thenAnswer((_) => Stream.value(1)); - when( - () => s3Client.putObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => putSmithyOperation); + when( + () => s3Client.putObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => putSmithyOperation); - final uploadDataTask = S3UploadTask.fromDataPayload( - testDataPayload, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: testPath, - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - ); + final uploadDataTask = S3UploadTask.fromDataPayload( + testDataPayload, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: testPath, + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + ); - unawaited(uploadDataTask.start()); - await uploadDataTask.cancel(); + unawaited(uploadDataTask.start()); + await uploadDataTask.cancel(); - completer.complete(); + completer.complete(); - await expectLater( - uploadDataTask.result, - throwsA(isA()), - ); - verify(putSmithyOperation.cancel).called(1); - }); + await expectLater( + uploadDataTask.result, + throwsA(isA()), + ); + verify(putSmithyOperation.cancel).called(1); + }, + ); }); group('Uploading AWSFile (<=5MB) - putObject', () { @@ -453,181 +450,183 @@ void main() { ); const testKey = 'object-upload-to'; - test('should invoke S3Client.putObject with expected parameters', - () async { - final testPutObjectOutput = s3.PutObjectOutput(); - final smithyOperation = MockSmithyOperation(); - - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testPutObjectOutput); - when(() => smithyOperation.requestProgress) - .thenAnswer((_) => Stream.value(1)); + test( + 'should invoke S3Client.putObject with expected parameters', + () async { + final testPutObjectOutput = s3.PutObjectOutput(); + final smithyOperation = MockSmithyOperation(); - when( - () => s3Client.putObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testPutObjectOutput); + when( + () => smithyOperation.requestProgress, + ).thenAnswer((_) => Stream.value(1)); - final uploadDataTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - ); + when( + () => s3Client.putObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - unawaited(uploadDataTask.start()); + final uploadDataTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + ); - final result = await uploadDataTask.result; + unawaited(uploadDataTask.start()); - expect(result.path, TestPathResolver.path); + final result = await uploadDataTask.result; - final capturedRequest = verify( - () => s3Client.putObject( - captureAny(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).captured.last; + expect(result.path, TestPathResolver.path); - expect(capturedRequest is s3.PutObjectRequest, isTrue); - final request = capturedRequest as s3.PutObjectRequest; - expect(request.bucket, testBucket); - expect( - request.key, - TestPathResolver.path, - ); - expect(request.contentType, await testLocalFile.contentType); - expect(await request.body.toList(), equals([testBytes])); - }); + final capturedRequest = + verify( + () => s3Client.putObject( + captureAny(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).captured.last; + + expect(capturedRequest is s3.PutObjectRequest, isTrue); + final request = capturedRequest as s3.PutObjectRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + expect(request.contentType, await testLocalFile.contentType); + expect(await request.body.toList(), equals([testBytes])); + }, + ); test( - 'should invoke S3Client.putObject with correct useAcceleration parameter', - () async { - const testUploadDataOptions = StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions( - useAccelerateEndpoint: true, - ), - ); - final testPutObjectOutput = s3.PutObjectOutput(); - final smithyOperation = MockSmithyOperation(); + 'should invoke S3Client.putObject with correct useAcceleration parameter', + () async { + const testUploadDataOptions = StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions( + useAccelerateEndpoint: true, + ), + ); + final testPutObjectOutput = s3.PutObjectOutput(); + final smithyOperation = MockSmithyOperation(); - when( - () => smithyOperation.result, - ).thenAnswer((_) async => testPutObjectOutput); - when(() => smithyOperation.requestProgress) - .thenAnswer((_) => Stream.value(1)); + when( + () => smithyOperation.result, + ).thenAnswer((_) async => testPutObjectOutput); + when( + () => smithyOperation.requestProgress, + ).thenAnswer((_) => Stream.value(1)); - when( - () => s3Client.putObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => smithyOperation); + when( + () => s3Client.putObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => smithyOperation); - final uploadDataTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - ); + final uploadDataTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + ); - unawaited(uploadDataTask.start()); + unawaited(uploadDataTask.start()); - await uploadDataTask.result; + await uploadDataTask.result; - final capturedS3ClientConfig = verify( - () => s3Client.putObject( - any(), - s3ClientConfig: - captureAny(named: 's3ClientConfig'), - ), - ).captured.last; + final capturedS3ClientConfig = + verify( + () => s3Client.putObject( + any(), + s3ClientConfig: captureAny( + named: 's3ClientConfig', + ), + ), + ).captured.last; - expect( - capturedS3ClientConfig, - isA() - .having((o) => o.useAcceleration, 'useAcceleration', true), - ); - }); + expect( + capturedS3ClientConfig, + isA().having( + (o) => o.useAcceleration, + 'useAcceleration', + true, + ), + ); + }, + ); test( - 'cancel() should cancel underlying put object request and throw a StorageException', - () async { - final putSmithyOperation = MockSmithyOperation(); + 'cancel() should cancel underlying put object request and throw a StorageException', + () async { + final putSmithyOperation = MockSmithyOperation(); - final completer = Completer(); - when( - () => putSmithyOperation.result, - ).thenAnswer((_) async { - await completer.future; - throw const CancellationException(); - }); - when( - putSmithyOperation.cancel, - ).thenAnswer((_) async {}); - when(() => putSmithyOperation.requestProgress) - .thenAnswer((_) => Stream.value(1)); + final completer = Completer(); + when(() => putSmithyOperation.result).thenAnswer((_) async { + await completer.future; + throw const CancellationException(); + }); + when(putSmithyOperation.cancel).thenAnswer((_) async {}); + when( + () => putSmithyOperation.requestProgress, + ).thenAnswer((_) => Stream.value(1)); - when( - () => s3Client.putObject( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => putSmithyOperation); + when( + () => s3Client.putObject( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => putSmithyOperation); - final uploadDataTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - ); + final uploadDataTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + ); - unawaited(uploadDataTask.start()); - await uploadDataTask.cancel(); + unawaited(uploadDataTask.start()); + await uploadDataTask.cancel(); - completer.complete(); + completer.complete(); - await expectLater( - uploadDataTask.result, - throwsA(isA()), - ); - verify(putSmithyOperation.cancel).called(1); - }); + await expectLater( + uploadDataTask.result, + throwsA(isA()), + ); + verify(putSmithyOperation.cancel).called(1); + }, + ); test('Emitting transferred bytes for uploading progress', () async { const mockEmittedBytes = [1, 2, 3]; final completer = Completer(); final putSmithyOperation = MockSmithyOperation(); final testPutObjectOutput = s3.PutObjectOutput(); - when( - () => putSmithyOperation.result, - ).thenAnswer((_) async { + when(() => putSmithyOperation.result).thenAnswer((_) async { await completer.future; return testPutObjectOutput; }); - when( - putSmithyOperation.cancel, - ).thenAnswer((_) async {}); + when(putSmithyOperation.cancel).thenAnswer((_) async {}); when(() => putSmithyOperation.requestProgress).thenAnswer((_) async* { for (final num in mockEmittedBytes) { yield num; @@ -681,330 +680,329 @@ void main() { }); test( - 'should invoke corresponding S3Client APIs with in a happy path to complete the upload', - () async { - final receivedState = []; - void onProgress(S3TransferProgress progress) { - receivedState.add(progress.state); - } - - const testUploadDataOptions = StorageUploadDataOptions( - metadata: {'filename': 'png.png'}, - pluginOptions: S3UploadDataPluginOptions( - getProperties: true, - ), - ); - const testMultipartUploadId = 'awesome-upload'; + 'should invoke corresponding S3Client APIs with in a happy path to complete the upload', + () async { + final receivedState = []; + void onProgress(S3TransferProgress progress) { + receivedState.add(progress.state); + } - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: testMultipartUploadId, - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); + const testUploadDataOptions = StorageUploadDataOptions( + metadata: {'filename': 'png.png'}, + pluginOptions: S3UploadDataPluginOptions(getProperties: true), + ); + const testMultipartUploadId = 'awesome-upload'; - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput(uploadId: testMultipartUploadId); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer((_) async => '1'); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - final testUploadPartOutput1 = s3.UploadPartOutput(eTag: 'eTag-part-1'); - final testUploadPartOutput2 = s3.UploadPartOutput(eTag: 'eTag-part-2'); - final testUploadPartOutput3 = s3.UploadPartOutput(eTag: 'eTag-part-3'); - final uploadPartSmithyOperation1 = - MockSmithyOperation(); - final uploadPartSmithyOperation2 = - MockSmithyOperation(); - final uploadPartSmithyOperation3 = - MockSmithyOperation(); + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); - when( - () => uploadPartSmithyOperation1.result, - ).thenAnswer((_) async => testUploadPartOutput1); - when( - () => uploadPartSmithyOperation2.result, - ).thenAnswer((_) async => testUploadPartOutput2); - when( - () => uploadPartSmithyOperation3.result, - ).thenAnswer((_) async => testUploadPartOutput3); + final testUploadPartOutput1 = s3.UploadPartOutput( + eTag: 'eTag-part-1', + ); + final testUploadPartOutput2 = s3.UploadPartOutput( + eTag: 'eTag-part-2', + ); + final testUploadPartOutput3 = s3.UploadPartOutput( + eTag: 'eTag-part-3', + ); + final uploadPartSmithyOperation1 = + MockSmithyOperation(); + final uploadPartSmithyOperation2 = + MockSmithyOperation(); + final uploadPartSmithyOperation3 = + MockSmithyOperation(); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((invocation) { - final request = - invocation.positionalArguments.first as s3.UploadPartRequest; - - switch (request.partNumber) { - case 1: - return uploadPartSmithyOperation1; - case 2: - return uploadPartSmithyOperation2; - case 3: - return uploadPartSmithyOperation3; - } + when( + () => uploadPartSmithyOperation1.result, + ).thenAnswer((_) async => testUploadPartOutput1); + when( + () => uploadPartSmithyOperation2.result, + ).thenAnswer((_) async => testUploadPartOutput2); + when( + () => uploadPartSmithyOperation3.result, + ).thenAnswer((_) async => testUploadPartOutput3); - throw Exception('this is not going to happen in this test setup'); - }); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((invocation) { + final request = + invocation.positionalArguments.first as s3.UploadPartRequest; - final testCompleteMultipartUploadOutput = - s3.CompleteMultipartUploadOutput(); - final completeMultipartUploadSmithyOperation = - MockSmithyOperation(); + switch (request.partNumber) { + case 1: + return uploadPartSmithyOperation1; + case 2: + return uploadPartSmithyOperation2; + case 3: + return uploadPartSmithyOperation3; + } - when( - () => completeMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCompleteMultipartUploadOutput); + throw Exception('this is not going to happen in this test setup'); + }); - when( - () => s3Client.completeMultipartUpload(any()), - ).thenAnswer((_) => completeMultipartUploadSmithyOperation); + final testCompleteMultipartUploadOutput = + s3.CompleteMultipartUploadOutput(); + final completeMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => transferDatabase.deleteTransferRecords(any()), - ).thenAnswer((_) async => 1); + when( + () => completeMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCompleteMultipartUploadOutput); - final testHeadObjectOutput = s3.HeadObjectOutput(); - final headSmithyOperation = MockSmithyOperation(); + when( + () => s3Client.completeMultipartUpload(any()), + ).thenAnswer((_) => completeMultipartUploadSmithyOperation); - when( - () => headSmithyOperation.result, - ).thenAnswer((_) async => testHeadObjectOutput); + when( + () => transferDatabase.deleteTransferRecords(any()), + ).thenAnswer((_) async => 1); - when( - () => s3Client.headObject(any()), - ).thenAnswer((_) => headSmithyOperation); + final testHeadObjectOutput = s3.HeadObjectOutput(); + final headSmithyOperation = + MockSmithyOperation(); - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: onProgress, - ); + when( + () => headSmithyOperation.result, + ).thenAnswer((_) async => testHeadObjectOutput); - unawaited(uploadTask.start()); + when( + () => s3Client.headObject(any()), + ).thenAnswer((_) => headSmithyOperation); - await uploadTask.result; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: onProgress, + ); - // verify generated CreateMultipartUploadRequest - final capturedCreateMultipartUploadRequest = verify( - () => s3Client.createMultipartUpload( - captureAny(), - ), - ).captured.last; - expect( - capturedCreateMultipartUploadRequest, - isA(), - ); - final createMultipartUploadRequest = - capturedCreateMultipartUploadRequest - as s3.CreateMultipartUploadRequest; - expect(createMultipartUploadRequest.bucket, testBucket); - expect( - createMultipartUploadRequest.contentType, - await testLocalFile.contentType, - ); - expect( - createMultipartUploadRequest.key, - TestPathResolver.path, - ); - expect( - capturedCreateMultipartUploadRequest.metadata?['filename'], - testUploadDataOptions.metadata['filename'], - ); - final capturedTransferDBInsertParam = verify( - () => transferDatabase.insertTransferRecord( - captureAny(), - ), - ).captured.last; - expect( - capturedTransferDBInsertParam, - isA().having( - (o) => o.uploadId, - 'uploadId', - testMultipartUploadId, - ), - ); + unawaited(uploadTask.start()); - // verify uploadPart calls - final uploadPartVerification = verify( - () => s3Client.uploadPart( - captureAny(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - )..called(3); // 11MB file creates 3 upload part requests - final capturedUploadPartRequests = uploadPartVerification.captured; - final partNumbers = []; - final bytes = BytesBuilder(); - - await Future.forEach(capturedUploadPartRequests, - (capturedRequest) async { - expect(capturedRequest, isA()); - final request = capturedRequest as s3.UploadPartRequest; - expect(request.bucket, testBucket); + await uploadTask.result; + + // verify generated CreateMultipartUploadRequest + final capturedCreateMultipartUploadRequest = + verify( + () => s3Client.createMultipartUpload( + captureAny(), + ), + ).captured.last; + expect( + capturedCreateMultipartUploadRequest, + isA(), + ); + final createMultipartUploadRequest = + capturedCreateMultipartUploadRequest + as s3.CreateMultipartUploadRequest; + expect(createMultipartUploadRequest.bucket, testBucket); + expect( + createMultipartUploadRequest.contentType, + await testLocalFile.contentType, + ); + expect(createMultipartUploadRequest.key, TestPathResolver.path); expect( - request.key, - TestPathResolver.path, + capturedCreateMultipartUploadRequest.metadata?['filename'], + testUploadDataOptions.metadata['filename'], ); - partNumbers.add(request.partNumber!); - bytes.add( - await request.body.toList().then( - (collectedBytes) => - collectedBytes.expand((bytes) => bytes).toList(), + final capturedTransferDBInsertParam = + verify( + () => transferDatabase.insertTransferRecord( + captureAny(), ), + ).captured.last; + expect( + capturedTransferDBInsertParam, + isA().having( + (o) => o.uploadId, + 'uploadId', + testMultipartUploadId, + ), ); - }); - expect(bytes.takeBytes(), equals(testBytes)); - expect(partNumbers, equals([1, 2, 3])); - expect( - receivedState, - List.generate(4, (_) => StorageTransferState.inProgress) - ..add(StorageTransferState.success), - ); // upload start + 3 parts - - // verify the CompleteMultipartUpload request - final capturedCompleteMultipartUploadRequest = verify( - () => s3Client.completeMultipartUpload( - captureAny(), - ), - ).captured.last; - expect( - capturedCompleteMultipartUploadRequest, - isA(), - ); - final completeMultipartUploadRequest = - capturedCompleteMultipartUploadRequest - as s3.CompleteMultipartUploadRequest; - expect(completeMultipartUploadRequest.bucket, testBucket); - expect( - completeMultipartUploadRequest.key, - TestPathResolver.path, - ); - final capturedTransferDBDeleteParam = verify( - () => transferDatabase.deleteTransferRecords( - captureAny(), - ), - ).captured.last; - expect( - capturedTransferDBDeleteParam, - testMultipartUploadId, - ); - }); + // verify uploadPart calls + final uploadPartVerification = verify( + () => s3Client.uploadPart( + captureAny(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + )..called(3); // 11MB file creates 3 upload part requests + final capturedUploadPartRequests = uploadPartVerification.captured; + final partNumbers = []; + final bytes = BytesBuilder(); + + await Future.forEach(capturedUploadPartRequests, ( + capturedRequest, + ) async { + expect(capturedRequest, isA()); + final request = capturedRequest as s3.UploadPartRequest; + expect(request.bucket, testBucket); + expect(request.key, TestPathResolver.path); + partNumbers.add(request.partNumber!); + bytes.add( + await request.body.toList().then( + (collectedBytes) => + collectedBytes.expand((bytes) => bytes).toList(), + ), + ); + }); + expect(bytes.takeBytes(), equals(testBytes)); + expect(partNumbers, equals([1, 2, 3])); + expect( + receivedState, + List.generate(4, (_) => StorageTransferState.inProgress) + ..add(StorageTransferState.success), + ); // upload start + 3 parts + + // verify the CompleteMultipartUpload request + final capturedCompleteMultipartUploadRequest = + verify( + () => s3Client.completeMultipartUpload( + captureAny(), + ), + ).captured.last; + expect( + capturedCompleteMultipartUploadRequest, + isA(), + ); + final completeMultipartUploadRequest = + capturedCompleteMultipartUploadRequest + as s3.CompleteMultipartUploadRequest; + expect(completeMultipartUploadRequest.bucket, testBucket); + expect(completeMultipartUploadRequest.key, TestPathResolver.path); + + final capturedTransferDBDeleteParam = + verify( + () => transferDatabase.deleteTransferRecords(captureAny()), + ).captured.last; + expect(capturedTransferDBDeleteParam, testMultipartUploadId); + }, + ); test( - 'should invoke S3Client uploadPart API with correct useAcceleration parameter', - () async { - const testUploadDataOptions = StorageUploadDataOptions( - pluginOptions: S3UploadDataPluginOptions( - useAccelerateEndpoint: true, - ), - ); + 'should invoke S3Client uploadPart API with correct useAcceleration parameter', + () async { + const testUploadDataOptions = StorageUploadDataOptions( + pluginOptions: S3UploadDataPluginOptions( + useAccelerateEndpoint: true, + ), + ); - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: '123', - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput(uploadId: '123'); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer((_) async => '1'); + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); - final testUploadPartOutput = s3.UploadPartOutput(eTag: 'eTag'); - final uploadPartSmithyOperation = - MockSmithyOperation(); + final testUploadPartOutput = s3.UploadPartOutput(eTag: 'eTag'); + final uploadPartSmithyOperation = + MockSmithyOperation(); - when( - () => uploadPartSmithyOperation.result, - ).thenAnswer((_) async => testUploadPartOutput); + when( + () => uploadPartSmithyOperation.result, + ).thenAnswer((_) async => testUploadPartOutput); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => uploadPartSmithyOperation); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => uploadPartSmithyOperation); - final testCompleteMultipartUploadOutput = - s3.CompleteMultipartUploadOutput(); - final completeMultipartUploadSmithyOperation = - MockSmithyOperation(); + final testCompleteMultipartUploadOutput = + s3.CompleteMultipartUploadOutput(); + final completeMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => completeMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCompleteMultipartUploadOutput); + when( + () => completeMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCompleteMultipartUploadOutput); - when( - () => s3Client.completeMultipartUpload(any()), - ).thenAnswer((_) => completeMultipartUploadSmithyOperation); + when( + () => s3Client.completeMultipartUpload(any()), + ).thenAnswer((_) => completeMultipartUploadSmithyOperation); - when( - () => transferDatabase.deleteTransferRecords(any()), - ).thenAnswer((_) async => 1); + when( + () => transferDatabase.deleteTransferRecords(any()), + ).thenAnswer((_) async => 1); - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - ); + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + ); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - await uploadTask.result; + await uploadTask.result; - // verify uploadPart calls - final uploadPartVerification = verify( - () => s3Client.uploadPart( - any(), - s3ClientConfig: - captureAny(named: 's3ClientConfig'), - ), - )..called(3); // 11MB file creates 3 upload part requests + // verify uploadPart calls + final uploadPartVerification = verify( + () => s3Client.uploadPart( + any(), + s3ClientConfig: captureAny( + named: 's3ClientConfig', + ), + ), + )..called(3); // 11MB file creates 3 upload part requests - final capturedS3ClientConfigs = uploadPartVerification.captured; + final capturedS3ClientConfigs = uploadPartVerification.captured; - for (final s3ClientConfig in capturedS3ClientConfigs) { - expect( - s3ClientConfig, - isA() - .having((o) => o.useAcceleration, 'useAcceleration', true), - ); - } - }); + for (final s3ClientConfig in capturedS3ClientConfigs) { + expect( + s3ClientConfig, + isA().having( + (o) => o.useAcceleration, + 'useAcceleration', + true, + ), + ); + } + }, + ); - test( - 'should use fallback contentType header when contentType of the data' + test('should use fallback contentType header when contentType of the data' ' payload is not determinable', () async { final testLocalFileWithoutContentType = AWSFile.fromData(testBytes); const testMultipartUploadId = 'awesome-upload'; @@ -1077,11 +1075,12 @@ void main() { await uploadTask.result; // verify generated CreateMultipartUploadRequest - final capturedCreateMultipartUploadRequest = verify( - () => s3Client.createMultipartUpload( - captureAny(), - ), - ).captured.last; + final capturedCreateMultipartUploadRequest = + verify( + () => s3Client.createMultipartUpload( + captureAny(), + ), + ).captured.last; expect( capturedCreateMultipartUploadRequest, isA().having( @@ -1098,12 +1097,8 @@ void main() { setUpAll(() { final createMultipartUploadSmithyOperation = MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer( - (_) async => s3.CreateMultipartUploadOutput( - uploadId: '123', - ), + when(() => createMultipartUploadSmithyOperation.result).thenAnswer( + (_) async => s3.CreateMultipartUploadOutput(uploadId: '123'), ); when( () => s3Client.createMultipartUpload(any()), @@ -1142,59 +1137,63 @@ void main() { setUp(() { testLocalFile = MockAWSFile(); - when(() => testLocalFile.contentType) - .thenAnswer((_) async => 'image/jpg'); - }); - - test( - 'stream, should invoke AWSFile.getChunkedStreamReader reading chunks', - () async { - final mockChunkedStreamReader = MockChunkedStreamReader(); - // file is backed by stream - when(() => testLocalFile.openRead(any(), any())) - .thenThrow(const InvalidFileException()); - when(() => testLocalFile.size).thenAnswer( - (invocation) async => 11 * 1024 * 1024, // 11MiB - ); - when(testLocalFile.getChunkedStreamReader) - .thenAnswer((invocation) => mockChunkedStreamReader); - when(() => mockChunkedStreamReader.readChunk(any())) - .thenAnswer((invocation) async => [1]); - - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - ); - - unawaited(uploadTask.start()); - await uploadTask.result; - - verify(() => testLocalFile.openRead(any(), any())).called( - 1, // 1 call to check if the file is backed by a platform file - ); - verify( - testLocalFile.getChunkedStreamReader, - ).called(1); - verify( - () => mockChunkedStreamReader.readChunk(any()), - ).called(3); // 3 parts => 3 reads - verifyNever(testLocalFile.openRead); + when( + () => testLocalFile.contentType, + ).thenAnswer((_) async => 'image/jpg'); }); test( - 'platform file, should invoke AWSFile.openRead reading chunks', + 'stream, should invoke AWSFile.getChunkedStreamReader reading chunks', () async { - // file is backed by platform File - when(() => testLocalFile.openRead(any(), any())) - .thenAnswer((invocation) => Stream.value([1])); + final mockChunkedStreamReader = MockChunkedStreamReader(); + // file is backed by stream + when( + () => testLocalFile.openRead(any(), any()), + ).thenThrow(const InvalidFileException()); + when(() => testLocalFile.size).thenAnswer( + (invocation) async => 11 * 1024 * 1024, // 11MiB + ); + when( + testLocalFile.getChunkedStreamReader, + ).thenAnswer((invocation) => mockChunkedStreamReader); + when( + () => mockChunkedStreamReader.readChunk(any()), + ).thenAnswer((invocation) async => [1]); + + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + ); + + unawaited(uploadTask.start()); + await uploadTask.result; + + verify(() => testLocalFile.openRead(any(), any())).called( + 1, // 1 call to check if the file is backed by a platform file + ); + verify(testLocalFile.getChunkedStreamReader).called(1); + verify( + () => mockChunkedStreamReader.readChunk(any()), + ).called(3); // 3 parts => 3 reads + verifyNever(testLocalFile.openRead); + }, + ); + + test( + 'platform file, should invoke AWSFile.openRead reading chunks', + () async { + // file is backed by platform File + when( + () => testLocalFile.openRead(any(), any()), + ).thenAnswer((invocation) => Stream.value([1])); when(() => testLocalFile.size).thenAnswer( (invocation) async => 11 * 1024 * 1024, // 11MiB ); @@ -1225,682 +1224,680 @@ void main() { }); test( - 'should throw exception if the file to be upload is too large to initiate a multipart upload', - () async { - late StorageTransferState finalState; - final testBadFile = AWSFile.fromStream( - Stream.value([]), - size: 5 * 1024 * 1024 * 1024 * 1024 + 1, // > 5TiB - ); - final uploadTask = S3UploadTask.fromAWSFile( - testBadFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); + 'should throw exception if the file to be upload is too large to initiate a multipart upload', + () async { + late StorageTransferState finalState; + final testBadFile = AWSFile.fromStream( + Stream.value([]), + size: 5 * 1024 * 1024 * 1024 * 1024 + 1, // > 5TiB + ); + final uploadTask = S3UploadTask.fromAWSFile( + testBadFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - await expectLater( - uploadTask.result, - throwsA(isA()), - ); - expect(finalState, StorageTransferState.failure); - }); + await expectLater( + uploadTask.result, + throwsA(isA()), + ); + expect(finalState, StorageTransferState.failure); + }, + ); - test('should handle async gaps when reading from Multipart file', - () async { - late StorageTransferState finalState; + test( + 'should handle async gaps when reading from Multipart file', + () async { + late StorageTransferState finalState; - //completeMultipartUploadSmithyOperation - final testCompleteMultipartUploadOutput = - s3.CompleteMultipartUploadOutput(); - final completeMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => completeMultipartUploadSmithyOperation.result, - ).thenAnswer( - (_) async => testCompleteMultipartUploadOutput, - ); + //completeMultipartUploadSmithyOperation + final testCompleteMultipartUploadOutput = + s3.CompleteMultipartUploadOutput(); + final completeMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => completeMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCompleteMultipartUploadOutput); - //uploadPartSmithyOperation - final testUploadPartOutput = s3.UploadPartOutput(eTag: 'eTag-part-1'); - final uploadPartSmithyOperation = - MockSmithyOperation(); - when( - () => uploadPartSmithyOperation.result, - ).thenAnswer( - (_) async => testUploadPartOutput, - ); + //uploadPartSmithyOperation + final testUploadPartOutput = s3.UploadPartOutput(eTag: 'eTag-part-1'); + final uploadPartSmithyOperation = + MockSmithyOperation(); + when( + () => uploadPartSmithyOperation.result, + ).thenAnswer((_) async => testUploadPartOutput); - //createMultipartUploadSmithyOperation - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: 'uploadId', // response should always contain valid uploadId - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer( - (_) async => testCreateMultipartUploadOutput, - ); + //createMultipartUploadSmithyOperation + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput( + uploadId: + 'uploadId', // response should always contain valid uploadId + ); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); - //s3Client - when( - () => s3Client.completeMultipartUpload(any()), - ).thenAnswer((_) => completeMultipartUploadSmithyOperation); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer( - (_) => uploadPartSmithyOperation, - ); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer( - (_) => createMultipartUploadSmithyOperation, - ); + //s3Client + when( + () => s3Client.completeMultipartUpload(any()), + ).thenAnswer((_) => completeMultipartUploadSmithyOperation); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => uploadPartSmithyOperation); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - //transferDatabase - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer( - (_) async => '1', - ); - when( - () => transferDatabase.deleteTransferRecords(any()), - ).thenAnswer( - (_) async => 1, - ); + //transferDatabase + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); + when( + () => transferDatabase.deleteTransferRecords(any()), + ).thenAnswer((_) async => 1); - final bytes = List.filled( - (32 * pow(2, 20)).toInt(), - 0, - ); - final mockFile = AWSFile.fromStream( - Stream.value(bytes), - size: bytes.length, - contentType: 'image/jpeg', - ); + final bytes = List.filled((32 * pow(2, 20)).toInt(), 0); + final mockFile = AWSFile.fromStream( + Stream.value(bytes), + size: bytes.length, + contentType: 'image/jpeg', + ); - final uploadTask = S3UploadTask.fromAWSFile( - mockFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); + final uploadTask = S3UploadTask.fromAWSFile( + mockFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - await uploadTask.result; + await uploadTask.result; - expect( - finalState, - StorageTransferState.success, - ); - }); + expect(finalState, StorageTransferState.success); + }, + ); test( - 'should complete with StorageAccessDeniedException when CreateMultipartUploadRequest' - ' returned UnknownSmithyHttpException with status code 403', - () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); + 'should complete with StorageAccessDeniedException when CreateMultipartUploadRequest' + ' returned UnknownSmithyHttpException with status code 403', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); - const testException = smithy.UnknownSmithyHttpException( - statusCode: 403, - body: 'Access denied!', - ); + const testException = smithy.UnknownSmithyHttpException( + statusCode: 403, + body: 'Access denied!', + ); - when( - () => s3Client.createMultipartUpload(any()), - ).thenThrow(testException); + when( + () => s3Client.createMultipartUpload(any()), + ).thenThrow(testException); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - await expectLater( - uploadTask.result, - throwsA( - isA().having( - (o) => o.underlyingException, - 'underlyingException', - testException, + await expectLater( + uploadTask.result, + throwsA( + isA().having( + (o) => o.underlyingException, + 'underlyingException', + testException, + ), ), - ), - ); + ); - expect(finalState, StorageTransferState.failure); - }); + expect(finalState, StorageTransferState.failure); + }, + ); test( - 'should complete with NetworkException when CreateMultipartUploadRequest' - ' returned AWSHttpException', () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: const StorageUploadDataOptions(), - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); - - final testException = AWSHttpException( - AWSHttpRequest(method: AWSHttpMethod.post, uri: Uri()), - ); - - when( - () => s3Client.createMultipartUpload(any()), - ).thenThrow(testException); - - unawaited(uploadTask.start()); - - await expectLater( - uploadTask.result, - throwsA( - isA().having( - (o) => o.underlyingException, - 'underlyingException', - testException, - ), - ), - ); + 'should complete with NetworkException when CreateMultipartUploadRequest' + ' returned AWSHttpException', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: const StorageUploadDataOptions(), + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); - expect(finalState, StorageTransferState.failure); - }); + final testException = AWSHttpException( + AWSHttpRequest(method: AWSHttpMethod.post, uri: Uri()), + ); + + when( + () => s3Client.createMultipartUpload(any()), + ).thenThrow(testException); + + unawaited(uploadTask.start()); + + await expectLater( + uploadTask.result, + throwsA( + isA().having( + (o) => o.underlyingException, + 'underlyingException', + testException, + ), + ), + ); + + expect(finalState, StorageTransferState.failure); + }, + ); test( - 'should complete with error when CreateMultipartUploadRequest does NOT return a valid uploadId', - () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); + 'should complete with error when CreateMultipartUploadRequest does NOT return a valid uploadId', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: null, // response should always contain valid uploadId - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput( + uploadId: null, // response should always contain valid uploadId + ); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - await expectLater( - uploadTask.result, - throwsA(isA()), - ); - expect(finalState, StorageTransferState.failure); - }); + await expectLater( + uploadTask.result, + throwsA(isA()), + ); + expect(finalState, StorageTransferState.failure); + }, + ); test( - 'should complete with StorageAccessDeniedException when' - ' CompleteMultipartUploadRequest fails (should not happen just in case)', - () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); + 'should complete with StorageAccessDeniedException when' + ' CompleteMultipartUploadRequest fails (should not happen just in case)', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: 'some-upload-id', - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput(uploadId: 'some-upload-id'); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer((_) async => '1'); + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); - final testUploadPartOutput = s3.UploadPartOutput(eTag: 'eTag-part-1'); - final uploadPartSmithyOperation = - MockSmithyOperation(); + final testUploadPartOutput = s3.UploadPartOutput(eTag: 'eTag-part-1'); + final uploadPartSmithyOperation = + MockSmithyOperation(); - when( - () => uploadPartSmithyOperation.result, - ).thenAnswer((_) async => testUploadPartOutput); + when( + () => uploadPartSmithyOperation.result, + ).thenAnswer((_) async => testUploadPartOutput); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => uploadPartSmithyOperation); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => uploadPartSmithyOperation); - const testException = smithy.UnknownSmithyHttpException( - statusCode: 403, - body: 'Access denied!', - ); - final completeMultipartUploadSmithyOperation = - MockSmithyOperation(); + const testException = smithy.UnknownSmithyHttpException( + statusCode: 403, + body: 'Access denied!', + ); + final completeMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => completeMultipartUploadSmithyOperation.result, - ).thenThrow(testException); - when( - () => s3Client.completeMultipartUpload(any()), - ).thenAnswer((_) => completeMultipartUploadSmithyOperation); + when( + () => completeMultipartUploadSmithyOperation.result, + ).thenThrow(testException); + when( + () => s3Client.completeMultipartUpload(any()), + ).thenAnswer((_) => completeMultipartUploadSmithyOperation); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - await expectLater( - uploadTask.result, - throwsA( - isA().having( - (o) => o.underlyingException, - 'underlyingException', - testException, + await expectLater( + uploadTask.result, + throwsA( + isA().having( + (o) => o.underlyingException, + 'underlyingException', + testException, + ), ), - ), - ); - expect(finalState, StorageTransferState.failure); - }); + ); + expect(finalState, StorageTransferState.failure); + }, + ); test( - 'should terminate multipart upload when a UploadPartRequest fails due to 403' - ' and should complete with StorageAccessDeniedException', () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); - const testMultipartUploadId = 'some-upload-id'; + 'should terminate multipart upload when a UploadPartRequest fails due to 403' + ' and should complete with StorageAccessDeniedException', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); + const testMultipartUploadId = 'some-upload-id'; - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: testMultipartUploadId, - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput(uploadId: testMultipartUploadId); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer((_) async => '1'); + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); - const testException = smithy.UnknownSmithyHttpException( - statusCode: 403, - body: 'Access denied!', - ); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenThrow(testException); + const testException = smithy.UnknownSmithyHttpException( + statusCode: 403, + body: 'Access denied!', + ); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenThrow(testException); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - final testAbortMultipartUploadOutput = s3.AbortMultipartUploadOutput(); - final abortMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => abortMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testAbortMultipartUploadOutput); - when( - () => s3Client.abortMultipartUpload(any()), - ).thenAnswer((_) => abortMultipartUploadSmithyOperation); - - await expectLater( - uploadTask.result, - throwsA( - isA().having( - (o) => o.underlyingException, - 'underlyingException', - isA().having( + final testAbortMultipartUploadOutput = + s3.AbortMultipartUploadOutput(); + final abortMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => abortMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testAbortMultipartUploadOutput); + when( + () => s3Client.abortMultipartUpload(any()), + ).thenAnswer((_) => abortMultipartUploadSmithyOperation); + + await expectLater( + uploadTask.result, + throwsA( + isA().having( (o) => o.underlyingException, 'underlyingException', - testException, + isA().having( + (o) => o.underlyingException, + 'underlyingException', + testException, + ), ), ), - ), - ); + ); - final capturedAbortMultipartUploadRequest = verify( - () => s3Client.abortMultipartUpload( - captureAny(), - ), - ).captured.last; + final capturedAbortMultipartUploadRequest = + verify( + () => s3Client.abortMultipartUpload( + captureAny(), + ), + ).captured.last; - expect( - capturedAbortMultipartUploadRequest, - isA().having( - (o) => o.uploadId, - 'uploadId', - testMultipartUploadId, - ), - ); - expect(finalState, StorageTransferState.failure); - }); + expect( + capturedAbortMultipartUploadRequest, + isA().having( + (o) => o.uploadId, + 'uploadId', + testMultipartUploadId, + ), + ); + expect(finalState, StorageTransferState.failure); + }, + ); test( - 'should terminate multipart upload when a UploadPartRequest fails due to AWSHttpException' - ' and should complete with NetworkException', () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: const StorageUploadDataOptions(), - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); - const testMultipartUploadId = 'some-upload-id'; + 'should terminate multipart upload when a UploadPartRequest fails due to AWSHttpException' + ' and should complete with NetworkException', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: const StorageUploadDataOptions(), + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); + const testMultipartUploadId = 'some-upload-id'; - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: testMultipartUploadId, - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput(uploadId: testMultipartUploadId); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer((_) async => '1'); + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); - final testException = AWSHttpException( - AWSHttpRequest(method: AWSHttpMethod.put, uri: Uri()), - ); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenThrow(testException); + final testException = AWSHttpException( + AWSHttpRequest(method: AWSHttpMethod.put, uri: Uri()), + ); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenThrow(testException); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - final testAbortMultipartUploadOutput = s3.AbortMultipartUploadOutput(); - final abortMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => abortMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testAbortMultipartUploadOutput); - when( - () => s3Client.abortMultipartUpload(any()), - ).thenAnswer((_) => abortMultipartUploadSmithyOperation); - - await expectLater( - uploadTask.result, - throwsA( - isA().having( - (o) => o.underlyingException, - 'underlyingException', - isA().having( + final testAbortMultipartUploadOutput = + s3.AbortMultipartUploadOutput(); + final abortMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => abortMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testAbortMultipartUploadOutput); + when( + () => s3Client.abortMultipartUpload(any()), + ).thenAnswer((_) => abortMultipartUploadSmithyOperation); + + await expectLater( + uploadTask.result, + throwsA( + isA().having( (o) => o.underlyingException, 'underlyingException', - testException, + isA().having( + (o) => o.underlyingException, + 'underlyingException', + testException, + ), ), ), - ), - ); + ); - final capturedAbortMultipartUploadRequest = verify( - () => s3Client.abortMultipartUpload( - captureAny(), - ), - ).captured.last; + final capturedAbortMultipartUploadRequest = + verify( + () => s3Client.abortMultipartUpload( + captureAny(), + ), + ).captured.last; - expect( - capturedAbortMultipartUploadRequest, - isA().having( - (o) => o.uploadId, - 'uploadId', - testMultipartUploadId, - ), - ); - expect(finalState, StorageTransferState.failure); - }); + expect( + capturedAbortMultipartUploadRequest, + isA().having( + (o) => o.uploadId, + 'uploadId', + testMultipartUploadId, + ), + ); + expect(finalState, StorageTransferState.failure); + }, + ); test( - 'should terminate multipart upload when a UploadPartRequest does NOT return a valid eTag and complete with error', - () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); - const testMultipartUploadId = 'some-upload-id'; + 'should terminate multipart upload when a UploadPartRequest does NOT return a valid eTag and complete with error', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); + const testMultipartUploadId = 'some-upload-id'; - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: testMultipartUploadId, - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput(uploadId: testMultipartUploadId); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer((_) async => '1'); + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); - final testUploadPartOutput = s3.UploadPartOutput(eTag: null); - final uploadPartSmithyOperation = - MockSmithyOperation(); + final testUploadPartOutput = s3.UploadPartOutput(eTag: null); + final uploadPartSmithyOperation = + MockSmithyOperation(); - when( - () => uploadPartSmithyOperation.result, - ).thenAnswer((_) async => testUploadPartOutput); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenAnswer((_) => uploadPartSmithyOperation); + when( + () => uploadPartSmithyOperation.result, + ).thenAnswer((_) async => testUploadPartOutput); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenAnswer((_) => uploadPartSmithyOperation); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - final testAbortMultipartUploadOutput = s3.AbortMultipartUploadOutput(); - final abortMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => abortMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testAbortMultipartUploadOutput); - when( - () => s3Client.abortMultipartUpload(any()), - ).thenAnswer((_) => abortMultipartUploadSmithyOperation); + final testAbortMultipartUploadOutput = + s3.AbortMultipartUploadOutput(); + final abortMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => abortMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testAbortMultipartUploadOutput); + when( + () => s3Client.abortMultipartUpload(any()), + ).thenAnswer((_) => abortMultipartUploadSmithyOperation); - await expectLater( - uploadTask.result, - throwsA(isA()), - ); + await expectLater( + uploadTask.result, + throwsA(isA()), + ); - expect(finalState, StorageTransferState.failure); - }); + expect(finalState, StorageTransferState.failure); + }, + ); test( - 'should terminate multipart upload when a UploadPartRequest encountered NoSuchUpload error and complete with error', - () async { - late StorageTransferState finalState; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - finalState = progress.state; - }, - ); - const testMultipartUploadId = 'some-upload-id'; + 'should terminate multipart upload when a UploadPartRequest encountered NoSuchUpload error and complete with error', + () async { + late StorageTransferState finalState; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + finalState = progress.state; + }, + ); + const testMultipartUploadId = 'some-upload-id'; - final testCreateMultipartUploadOutput = s3.CreateMultipartUploadOutput( - uploadId: testMultipartUploadId, - ); - final createMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => createMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testCreateMultipartUploadOutput); - when( - () => s3Client.createMultipartUpload(any()), - ).thenAnswer((_) => createMultipartUploadSmithyOperation); + final testCreateMultipartUploadOutput = + s3.CreateMultipartUploadOutput(uploadId: testMultipartUploadId); + final createMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => createMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testCreateMultipartUploadOutput); + when( + () => s3Client.createMultipartUpload(any()), + ).thenAnswer((_) => createMultipartUploadSmithyOperation); - when( - () => transferDatabase.insertTransferRecord(any()), - ).thenAnswer((_) async => '1'); + when( + () => transferDatabase.insertTransferRecord(any()), + ).thenAnswer((_) async => '1'); - final testException = s3.NoSuchUpload(); - when( - () => s3Client.uploadPart( - any(), - s3ClientConfig: any(named: 's3ClientConfig'), - ), - ).thenThrow(testException); + final testException = s3.NoSuchUpload(); + when( + () => s3Client.uploadPart( + any(), + s3ClientConfig: any(named: 's3ClientConfig'), + ), + ).thenThrow(testException); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - final testAbortMultipartUploadOutput = s3.AbortMultipartUploadOutput(); - final abortMultipartUploadSmithyOperation = - MockSmithyOperation(); - when( - () => abortMultipartUploadSmithyOperation.result, - ).thenAnswer((_) async => testAbortMultipartUploadOutput); - when( - () => s3Client.abortMultipartUpload(any()), - ).thenAnswer((_) => abortMultipartUploadSmithyOperation); - - await expectLater( - uploadTask.result, - throwsA( - isA().having( - (o) => o.underlyingException, - 'underlyingException', - testException, + final testAbortMultipartUploadOutput = + s3.AbortMultipartUploadOutput(); + final abortMultipartUploadSmithyOperation = + MockSmithyOperation(); + when( + () => abortMultipartUploadSmithyOperation.result, + ).thenAnswer((_) async => testAbortMultipartUploadOutput); + when( + () => s3Client.abortMultipartUpload(any()), + ).thenAnswer((_) => abortMultipartUploadSmithyOperation); + + await expectLater( + uploadTask.result, + throwsA( + isA().having( + (o) => o.underlyingException, + 'underlyingException', + testException, + ), ), - ), - ); - expect(finalState, StorageTransferState.failure); - }); + ); + expect(finalState, StorageTransferState.failure); + }, + ); group('Control APIs', () { final testLocalFile = AWSFile.fromData(testBytes); @@ -1916,9 +1913,7 @@ void main() { setUpAll(() { final testCreateMultipartUploadOutput = - s3.CreateMultipartUploadOutput( - uploadId: 'some-upload-id', - ); + s3.CreateMultipartUploadOutput(uploadId: 'some-upload-id'); final createMultipartUploadSmithyOperation = MockSmithyOperation(); when( @@ -1932,15 +1927,9 @@ void main() { () => transferDatabase.insertTransferRecord(any()), ).thenAnswer((_) async => '1'); - when( - uploadPartSmithyOperation1.cancel, - ).thenAnswer((_) async {}); - when( - uploadPartSmithyOperation2.cancel, - ).thenAnswer((_) async {}); - when( - uploadPartSmithyOperation3.cancel, - ).thenAnswer((_) async {}); + when(uploadPartSmithyOperation1.cancel).thenAnswer((_) async {}); + when(uploadPartSmithyOperation2.cancel).thenAnswer((_) async {}); + when(uploadPartSmithyOperation3.cancel).thenAnswer((_) async {}); when( () => s3Client.uploadPart( @@ -1990,127 +1979,121 @@ void main() { ).thenAnswer((_) => abortMultipartUploadSmithyOperation); }); - test('pause()/resume() should emit paused stat and complete the upload', - () async { - final receivedState = []; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - receivedState.add(progress.state); - }, - ); + test( + 'pause()/resume() should emit paused stat and complete the upload', + () async { + final receivedState = []; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + receivedState.add(progress.state); + }, + ); - when( - () => uploadPartSmithyOperation1.result, - ).thenThrow(const CancellationException()); - when( - () => uploadPartSmithyOperation2.result, - ).thenThrow(const CancellationException()); - when( - () => uploadPartSmithyOperation3.result, - ).thenThrow(const CancellationException()); + when( + () => uploadPartSmithyOperation1.result, + ).thenThrow(const CancellationException()); + when( + () => uploadPartSmithyOperation2.result, + ).thenThrow(const CancellationException()); + when( + () => uploadPartSmithyOperation3.result, + ).thenThrow(const CancellationException()); - unawaited(uploadTask.start()); + unawaited(uploadTask.start()); - await uploadTask.pause(); + await uploadTask.pause(); - when( - () => uploadPartSmithyOperation1.result, - ).thenAnswer((_) async => testUploadPartOutput1); - when( - () => uploadPartSmithyOperation2.result, - ).thenAnswer((_) async => testUploadPartOutput2); - when( - () => uploadPartSmithyOperation3.result, - ).thenAnswer((_) async => testUploadPartOutput3); + when( + () => uploadPartSmithyOperation1.result, + ).thenAnswer((_) async => testUploadPartOutput1); + when( + () => uploadPartSmithyOperation2.result, + ).thenAnswer((_) async => testUploadPartOutput2); + when( + () => uploadPartSmithyOperation3.result, + ).thenAnswer((_) async => testUploadPartOutput3); - // add a manual delay to avoid ignoring pause state on back to back calls - await Future.delayed(const Duration(microseconds: 500)); - await uploadTask.resume(); + // add a manual delay to avoid ignoring pause state on back to back calls + await Future.delayed(const Duration(microseconds: 500)); + await uploadTask.resume(); - await uploadTask.result; - expect( - receivedState, - contains(StorageTransferState.paused), - ); + await uploadTask.result; + expect(receivedState, contains(StorageTransferState.paused)); - verify(uploadPartSmithyOperation1.cancel).called(1); - verify(uploadPartSmithyOperation2.cancel).called(1); - verify(uploadPartSmithyOperation3.cancel).called(1); - }); + verify(uploadPartSmithyOperation1.cancel).called(1); + verify(uploadPartSmithyOperation2.cancel).called(1); + verify(uploadPartSmithyOperation3.cancel).called(1); + }, + ); test( - 'cancel() should terminate ongoing multipart upload and throw a StorageException', - () async { - final receivedState = []; - final uploadTask = S3UploadTask.fromAWSFile( - testLocalFile, - s3Client: s3Client, - s3ClientConfig: defaultS3ClientConfig, - pathResolver: pathResolver, - bucket: testBucket, - awsRegion: testRegion, - path: const StoragePath.fromString(testKey), - options: testUploadDataOptions, - logger: logger, - transferDatabase: transferDatabase, - onProgress: (progress) { - receivedState.add(progress.state); - }, - ); - - final completer1 = Completer(); - final completer2 = Completer(); - final completer3 = Completer(); - - when( - () => uploadPartSmithyOperation1.result, - ).thenAnswer((_) async { - await completer1.future; - throw const CancellationException(); - }); - when( - () => uploadPartSmithyOperation2.result, - ).thenAnswer((_) async { - await completer2.future; - throw const CancellationException(); - }); - when( - () => uploadPartSmithyOperation3.result, - ).thenAnswer((_) async { - await completer3.future; - throw const CancellationException(); - }); - - await uploadTask.start(); - - // add a manual delay to ensure upload parts are scheduled before - // canceling - await Future.delayed(const Duration(milliseconds: 500)); - await uploadTask.cancel(); - - completer1.complete(); - completer2.complete(); - completer3.complete(); + 'cancel() should terminate ongoing multipart upload and throw a StorageException', + () async { + final receivedState = []; + final uploadTask = S3UploadTask.fromAWSFile( + testLocalFile, + s3Client: s3Client, + s3ClientConfig: defaultS3ClientConfig, + pathResolver: pathResolver, + bucket: testBucket, + awsRegion: testRegion, + path: const StoragePath.fromString(testKey), + options: testUploadDataOptions, + logger: logger, + transferDatabase: transferDatabase, + onProgress: (progress) { + receivedState.add(progress.state); + }, + ); - await expectLater( - uploadTask.result, - throwsA(isA()), - ); + final completer1 = Completer(); + final completer2 = Completer(); + final completer3 = Completer(); + + when(() => uploadPartSmithyOperation1.result).thenAnswer((_) async { + await completer1.future; + throw const CancellationException(); + }); + when(() => uploadPartSmithyOperation2.result).thenAnswer((_) async { + await completer2.future; + throw const CancellationException(); + }); + when(() => uploadPartSmithyOperation3.result).thenAnswer((_) async { + await completer3.future; + throw const CancellationException(); + }); + + await uploadTask.start(); + + // add a manual delay to ensure upload parts are scheduled before + // canceling + await Future.delayed(const Duration(milliseconds: 500)); + await uploadTask.cancel(); + + completer1.complete(); + completer2.complete(); + completer3.complete(); + + await expectLater( + uploadTask.result, + throwsA(isA()), + ); - verify(uploadPartSmithyOperation1.cancel).called(1); - verify(uploadPartSmithyOperation2.cancel).called(1); - verify(uploadPartSmithyOperation3.cancel).called(1); - }); + verify(uploadPartSmithyOperation1.cancel).called(1); + verify(uploadPartSmithyOperation2.cancel).called(1); + verify(uploadPartSmithyOperation3.cancel).called(1); + }, + ); }); }); @@ -2136,10 +2119,7 @@ void main() { unawaited(uploadTask.start()); - expect( - uploadTask.result, - throwsA(accelerateEndpointUnusable), - ); + expect(uploadTask.result, throwsA(accelerateEndpointUnusable)); }); }); }); @@ -2149,9 +2129,10 @@ Stream> _getBytesStream(Uint8List bytes) async* { const chunkSize = 64 * 1024; var currentPosition = 0; while (currentPosition < bytes.length) { - final readRange = currentPosition + chunkSize > bytes.length - ? bytes.length - : currentPosition + chunkSize; + final readRange = + currentPosition + chunkSize > bytes.length + ? bytes.length + : currentPosition + chunkSize; yield bytes.sublist(currentPosition, readRange); currentPosition += chunkSize; } diff --git a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/transfer/database_html_test.dart b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/transfer/database_html_test.dart index 9a92df808e..d7317d1237 100644 --- a/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/transfer/database_html_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/storage_s3_service/transfer/database_html_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('browser') +library; import 'package:amplify_core/amplify_core.dart'; import 'package:amplify_storage_s3_dart/src/storage_s3_service/transfer/database/database_html.dart'; @@ -34,32 +35,35 @@ void main() { }); test('insert and deleteTransferRecords from local storage', () async { - final recordId = - await transferDatabase.insertTransferRecord(testTransferRecord); + final recordId = await transferDatabase.insertTransferRecord( + testTransferRecord, + ); expect(recordId, isNotNull); final actual = await transferDatabase.deleteTransferRecords(testUploadId); expect(actual, 1); }); - test('getMultipartUploadRecordsCreatedBefore should return one item', - () async { - await transferDatabase.insertTransferRecord(testTransferRecord); - final actual = - await transferDatabase.getMultipartUploadRecordsCreatedBefore( - testCreatedAt.add(const Duration(days: 1)), - ); - expect(actual.length, 1); - expect(actual.first.toJsonString(), testTransferRecordJsonString); - }); + test( + 'getMultipartUploadRecordsCreatedBefore should return one item', + () async { + await transferDatabase.insertTransferRecord(testTransferRecord); + final actual = await transferDatabase + .getMultipartUploadRecordsCreatedBefore( + testCreatedAt.add(const Duration(days: 1)), + ); + expect(actual.length, 1); + expect(actual.first.toJsonString(), testTransferRecordJsonString); + }, + ); - test('getMultipartUploadRecordsCreatedBefore should return empty list', - () async { - await transferDatabase.insertTransferRecord(testTransferRecord); - final actual = - await transferDatabase.getMultipartUploadRecordsCreatedBefore( - testCreatedAt, - ); - expect(actual.length, 0); - }); + test( + 'getMultipartUploadRecordsCreatedBefore should return empty list', + () async { + await transferDatabase.insertTransferRecord(testTransferRecord); + final actual = await transferDatabase + .getMultipartUploadRecordsCreatedBefore(testCreatedAt); + expect(actual.length, 0); + }, + ); }); } diff --git a/packages/storage/amplify_storage_s3_dart/test/test_utils/custom_matchers.dart b/packages/storage/amplify_storage_s3_dart/test/test_utils/custom_matchers.dart index b577123dc7..7df01654fe 100644 --- a/packages/storage/amplify_storage_s3_dart/test/test_utils/custom_matchers.dart +++ b/packages/storage/amplify_storage_s3_dart/test/test_utils/custom_matchers.dart @@ -6,11 +6,7 @@ import 'package:test/test.dart'; class DeleteObjectsLength extends CustomMatcher { DeleteObjectsLength(Matcher matcher) - : super( - 'DeleteObjectsRequest that is', - 'delete objects length', - matcher, - ); + : super('DeleteObjectsRequest that is', 'delete objects length', matcher); @override Object? featureValueOf(dynamic actual) => diff --git a/packages/storage/amplify_storage_s3_dart/test/test_utils/io_mocks.dart b/packages/storage/amplify_storage_s3_dart/test/test_utils/io_mocks.dart index b97a9e2473..b8c962e52b 100644 --- a/packages/storage/amplify_storage_s3_dart/test/test_utils/io_mocks.dart +++ b/packages/storage/amplify_storage_s3_dart/test/test_utils/io_mocks.dart @@ -7,6 +7,7 @@ import 'package:mocktail/mocktail.dart'; class MockAWSFile extends Mock implements AWSFile {} -class MockChunkedStreamReader extends Mock // - implements - ChunkedStreamReader {} +class MockChunkedStreamReader + extends + Mock // + implements ChunkedStreamReader {} diff --git a/packages/storage/amplify_storage_s3_dart/test/utils/app_path_provider_test.dart b/packages/storage/amplify_storage_s3_dart/test/utils/app_path_provider_test.dart index 65880d39b5..401a5537b1 100644 --- a/packages/storage/amplify_storage_s3_dart/test/utils/app_path_provider_test.dart +++ b/packages/storage/amplify_storage_s3_dart/test/utils/app_path_provider_test.dart @@ -1,6 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 @TestOn('vm') +library; import 'dart:io'; @@ -11,13 +12,15 @@ void main() { group('S3DartAppPathProvider', () { const pathProvider = S3DartAppPathProvider(); - test('should return application support path as current working path', - () async { - expect( - await pathProvider.getApplicationSupportPath(), - Directory.current.path, - ); - }); + test( + 'should return application support path as current working path', + () async { + expect( + await pathProvider.getApplicationSupportPath(), + Directory.current.path, + ); + }, + ); test('should return temporary path as system temporary path', () async { expect(await pathProvider.getTemporaryPath(), Directory.systemTemp.path); diff --git a/packages/test/amplify_auth_integration_test/lib/amplify_auth_integration_test.dart b/packages/test/amplify_auth_integration_test/lib/amplify_auth_integration_test.dart index 2e3d46e086..8fea2e188e 100644 --- a/packages/test/amplify_auth_integration_test/lib/amplify_auth_integration_test.dart +++ b/packages/test/amplify_auth_integration_test/lib/amplify_auth_integration_test.dart @@ -3,7 +3,7 @@ /// Integration test utilities for Auth packages (e.g. `amplify_auth_cognito` /// and `amplify_authenticator`). -library amplify_auth_integration_test; +library; export 'src/async_test.dart'; export 'src/email_utils.dart'; diff --git a/packages/test/amplify_auth_integration_test/lib/src/async_test.dart b/packages/test/amplify_auth_integration_test/lib/src/async_test.dart index 9869ac70c5..0b0a228193 100644 --- a/packages/test/amplify_auth_integration_test/lib/src/async_test.dart +++ b/packages/test/amplify_auth_integration_test/lib/src/async_test.dart @@ -17,14 +17,10 @@ void asyncTest( FutureOr Function(FutureGroup expectations) body, { bool? skip, }) { - testWidgets( - description, - (_) async { - final expectations = FutureGroup(); - await body(expectations); - expectations.close(); - await expectations.future; - }, - skip: skip, - ); + testWidgets(description, (_) async { + final expectations = FutureGroup(); + await body(expectations); + expectations.close(); + await expectations.future; + }, skip: skip); } diff --git a/packages/test/amplify_auth_integration_test/lib/src/test_auth_plugin.dart b/packages/test/amplify_auth_integration_test/lib/src/test_auth_plugin.dart index 5a5613265b..f30491f35a 100644 --- a/packages/test/amplify_auth_integration_test/lib/src/test_auth_plugin.dart +++ b/packages/test/amplify_auth_integration_test/lib/src/test_auth_plugin.dart @@ -17,11 +17,11 @@ import 'package:flutter_test/flutter_test.dart'; class AmplifyAuthTestPlugin extends AmplifyAuthCognito { /// {@macro amplify_auth_integration_test.amplify_auth_test_plugin} AmplifyAuthTestPlugin({required this.hasApiPlugin}) - : super( - secureStorageFactory: AmplifySecureStorage.factoryFrom( - macOSOptions: MacOSSecureStorageOptions(useDataProtection: false), - ), - ); + : super( + secureStorageFactory: AmplifySecureStorage.factoryFrom( + macOSOptions: MacOSSecureStorageOptions(useDataProtection: false), + ), + ); /// Whether there is an API plugin for the configuration. final bool hasApiPlugin; @@ -34,7 +34,9 @@ class AmplifyAuthTestPlugin extends AmplifyAuthCognito { }) { if (hasApiPlugin) { addTearDown( - () => integ.adminDeleteUser(username).onError( + () => integ + .adminDeleteUser(username) + .onError( // This is expected in environments which do not have an admin GraphQL API. (e, st) => logger.debug('Error deleting user ($username):', e, st), diff --git a/packages/test/amplify_auth_integration_test/lib/src/test_runner.dart b/packages/test/amplify_auth_integration_test/lib/src/test_runner.dart index 9654971cdd..db00bc2cb4 100644 --- a/packages/test/amplify_auth_integration_test/lib/src/test_runner.dart +++ b/packages/test/amplify_auth_integration_test/lib/src/test_runner.dart @@ -23,7 +23,7 @@ enum AmplifyConfigVersion { config, /// Gen 2 Amplify Outputs - outputs; + outputs, } /// The login method for the environment. @@ -87,17 +87,17 @@ class EnvironmentInfo { /// Returns the [UserAttribute] for the user. UserAttribute getLoginAttribute(String username) => switch (loginMethod) { - LoginMethod.email => UserAttribute.email(username), - LoginMethod.phone => UserAttribute.phone(username), - LoginMethod.username => UserAttribute.username(username) - }; + LoginMethod.email => UserAttribute.email(username), + LoginMethod.phone => UserAttribute.phone(username), + LoginMethod.username => UserAttribute.username(username), + }; /// Generates the username based on the login method. String generateUsername() => switch (loginMethod) { - LoginMethod.username => amp_test.generateUsername(), - LoginMethod.email => amp_test.generateEmail(), - LoginMethod.phone => amp_test.generateUSPhoneNumber().toE164(), - }; + LoginMethod.username => amp_test.generateUsername(), + LoginMethod.email => amp_test.generateEmail(), + LoginMethod.phone => amp_test.generateUSPhoneNumber().toE164(), + }; /// Returns the attributes that Cognito will create automatically based on the /// sign up method. @@ -108,7 +108,7 @@ class EnvironmentInfo { switch (loginMethod) { LoginMethod.email => {AuthUserAttributeKey.email: username}, LoginMethod.phone => {AuthUserAttributeKey.phoneNumber: username}, - LoginMethod.username => {} + LoginMethod.username => {}, }; /// The name of the environment in the config/outputs file. @@ -202,10 +202,7 @@ abstract interface class TestEnvironment { /// {@endtemplate} class AuthTestRunner { /// {@macro amplify_auth_integration_test.auth_test_runner} - const AuthTestRunner( - this._amplifyConfigs, - this._amplifyOutputs, - ); + const AuthTestRunner(this._amplifyConfigs, this._amplifyOutputs); final Map _amplifyConfigs; @@ -241,14 +238,18 @@ class AuthTestRunner { List apiAuthProviders = const [], AWSHttpClient? baseClient, }) async { - final config = useAmplifyOutputs - ? _amplifyOutputs[environmentName]! - : _amplifyConfigs[environmentName]!; - final outputs = useAmplifyOutputs - ? AmplifyOutputs.fromJson(jsonDecode(config) as Map) - : AmplifyConfig.fromJson( - jsonDecode(config) as Map, - ).toAmplifyOutputs(); + final config = + useAmplifyOutputs + ? _amplifyOutputs[environmentName]! + : _amplifyConfigs[environmentName]!; + final outputs = + useAmplifyOutputs + ? AmplifyOutputs.fromJson( + jsonDecode(config) as Map, + ) + : AmplifyConfig.fromJson( + jsonDecode(config) as Map, + ).toAmplifyOutputs(); final hasApiPlugin = outputs.data != null; final authPlugin = AmplifyAuthTestPlugin(hasApiPlugin: hasApiPlugin); await Amplify.addPlugins([ @@ -263,9 +264,7 @@ class AuthTestRunner { ]); await Amplify.configure(config); await Amplify.Auth.signOut(); - addTearDown( - Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey).close, - ); + addTearDown(Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey).close); addTearDown(Amplify.reset); addTearDown(signOutUser); } @@ -307,10 +306,10 @@ Future signOutUser({bool assertComplete = false}) async { _logger.debug('Successfully signed out user'); return; case CognitoPartialSignOut( - :final hostedUiException, - :final globalSignOutException, - :final revokeTokenException, - ): + :final hostedUiException, + :final globalSignOutException, + :final revokeTokenException, + ): _logger.error( 'Error signing out:', hostedUiException ?? globalSignOutException ?? revokeTokenException, diff --git a/packages/test/amplify_auth_integration_test/lib/src/totp_utils.dart b/packages/test/amplify_auth_integration_test/lib/src/totp_utils.dart index a0743a9c1e..cc1d5a2447 100644 --- a/packages/test/amplify_auth_integration_test/lib/src/totp_utils.dart +++ b/packages/test/amplify_auth_integration_test/lib/src/totp_utils.dart @@ -25,15 +25,13 @@ Future get _nextTotpTime async { } // Cognito allows a +/- 1 interval range for codes and codes cannot be reused. final acceptableWindowEnd = now.add(_totpInterval); - final nextTime = maxBy( - [ - now, - DateTime.fromMillisecondsSinceEpoch( - OTP.lastUsedTime + _totpInterval.inMilliseconds, - ), - ], - (dt) => dt, - )!; + final nextTime = + maxBy([ + now, + DateTime.fromMillisecondsSinceEpoch( + OTP.lastUsedTime + _totpInterval.inMilliseconds, + ), + ], (dt) => dt)!; if (nextTime.isAfter(acceptableWindowEnd)) { // Wait until the next window opens. await Future.delayed(nextTime.difference(now)); diff --git a/packages/test/amplify_auth_integration_test/pubspec.yaml b/packages/test/amplify_auth_integration_test/pubspec.yaml index ee406830be..38784a8bd8 100644 --- a/packages/test/amplify_auth_integration_test/pubspec.yaml +++ b/packages/test/amplify_auth_integration_test/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues publish_to: none environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" dependencies: amplify_api: any diff --git a/packages/test/amplify_integration_test/lib/amplify_integration_test.dart b/packages/test/amplify_integration_test/lib/amplify_integration_test.dart index e1c9cba728..70891718cd 100644 --- a/packages/test/amplify_integration_test/lib/amplify_integration_test.dart +++ b/packages/test/amplify_integration_test/lib/amplify_integration_test.dart @@ -13,7 +13,7 @@ /// any published package without causing circular dependency errors. Likewise, this /// package is free to import any published package from the repo without causing /// errors during publishing. -library amplify_integration_test; +library; export 'package:amplify_test/amplify_test.dart'; diff --git a/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/integration_test_auth_utils.dart b/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/integration_test_auth_utils.dart index 526d41eaa3..aadd86f027 100644 --- a/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/integration_test_auth_utils.dart +++ b/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/integration_test_auth_utils.dart @@ -26,21 +26,23 @@ export 'package:amplify_integration_test/src/sdk/cognito_identity_provider.dart' RiskDecisionType, RiskDecisionTypeHelpers; -final _logger = - AmplifyLogger.category(Category.auth).createChild('IntegrationTestUtils'); +final _logger = AmplifyLogger.category( + Category.auth, +).createChild('IntegrationTestUtils'); Future> _graphQL( String document, { Map variables = const {}, }) async { - final response = await Amplify.API - .query( - request: GraphQLRequest( - document: document, - variables: variables, - ), - ) - .response; + final response = + await Amplify.API + .query( + request: GraphQLRequest( + document: document, + variables: variables, + ), + ) + .response; if (response.hasErrors) { throw Exception(response.errors); } @@ -70,19 +72,19 @@ query ListAuthEvents($username: String!) { listAuthEvents(username: $username) } ''', - variables: { - 'username': username, - }, + variables: {'username': username}, ); final eventsJson = jsonDecode(result['listAuthEvents'] as String) as List; final events = []; for (final eventJson in eventsJson) { - final event = _serializers.deserialize( - eventJson, - specifiedType: const FullType(AuthEventType), - ) as AuthEventType; + final event = + _serializers.deserialize( + eventJson, + specifiedType: const FullType(AuthEventType), + ) + as AuthEventType; events.add(event); } return events; @@ -98,9 +100,7 @@ mutation EnableSmsMfa($username: String!) { success } }''', - variables: { - 'username': username, - }, + variables: {'username': username}, ); _logger.debug('Got enableSmsMfa result: $result'); @@ -125,9 +125,7 @@ mutation DeleteUser($username: String!) { success } }''', - variables: { - 'username': username, - }, + variables: {'username': username}, ); _logger.debug('Got deleteUser result: $result'); @@ -151,10 +149,7 @@ mutation DeleteDevice($input: DeleteDeviceInput!) { } ''', variables: { - 'input': { - 'username': username, - 'deviceKey': deviceKey, - }, + 'input': {'username': username, 'deviceKey': deviceKey}, }, ); @@ -196,23 +191,26 @@ Future adminCreateUser( final attributeMap = attributes.map( (name, value) => MapEntry(name.key, value), ); - final email = attributeMap.remove(AuthUserAttributeKey.email.key) ?? + final email = + attributeMap.remove(AuthUserAttributeKey.email.key) ?? (autoFillAttributes ? generateEmail() : null); if (email != null) { createUserParams['email'] = email; } final phoneNumber = attributeMap.remove(AuthUserAttributeKey.phoneNumber.key) ?? - (autoFillAttributes ? generatePhoneNumber() : null); + (autoFillAttributes ? generatePhoneNumber() : null); if (phoneNumber != null) { createUserParams['phoneNumber'] = phoneNumber; } - final name = attributeMap.remove(AuthUserAttributeKey.name.key) ?? + final name = + attributeMap.remove(AuthUserAttributeKey.name.key) ?? (autoFillAttributes ? 'default_name' : null); if (name != null) { createUserParams['name'] = name; } - final givenName = attributeMap.remove(AuthUserAttributeKey.givenName.key) ?? + final givenName = + attributeMap.remove(AuthUserAttributeKey.givenName.key) ?? (autoFillAttributes ? 'default_given_name' : null); if (givenName != null) { createUserParams['givenName'] = name; @@ -231,10 +229,7 @@ Future adminCreateUser( } ''', variables: { - 'input': { - ...createUserParams, - 'password': password, - }, + 'input': {...createUserParams, 'password': password}, }, ); _logger.debug('Got createUser result: $result'); @@ -285,18 +280,18 @@ enum _UserAttributeType { username, email, phone } class UserAttribute { /// Identifies a user by their username. const UserAttribute.username(String username) - : _value = username, - _type = _UserAttributeType.username; + : _value = username, + _type = _UserAttributeType.username; /// Identifies a user by their email. const UserAttribute.email(String email) - : _value = email, - _type = _UserAttributeType.email; + : _value = email, + _type = _UserAttributeType.email; /// Identifies a user by their phone number. const UserAttribute.phone(String phoneNumber) - : _value = phoneNumber, - _type = _UserAttributeType.phone; + : _value = phoneNumber, + _type = _UserAttributeType.phone; final _UserAttributeType _type; final String _value; @@ -307,27 +302,27 @@ class UserAttribute { /// Must be called before the network call generating the OTP code. Future getOtpCode(UserAttribute userAttribute) async { final establishedCompleter = Completer(); - final otpCodes = getOtpCodes( - onEstablished: establishedCompleter.complete, - ); + final otpCodes = getOtpCodes(onEstablished: establishedCompleter.complete); // Collect code delivered via Lambda - final code = otpCodes - .tap((event) => _logger.debug('Got OTP Code: $event')) - .where((event) { - switch (userAttribute._type) { - case _UserAttributeType.username: - return event.username == userAttribute._value; - case _UserAttributeType.email: - return event.userAttributes[CognitoUserAttributeKey.email] == - userAttribute._value; - case _UserAttributeType.phone: - return event.userAttributes[CognitoUserAttributeKey.phoneNumber] == - userAttribute._value; - } - }) - .map((event) => event.code) - .first; + final code = + otpCodes + .tap((event) => _logger.debug('Got OTP Code: $event')) + .where((event) { + switch (userAttribute._type) { + case _UserAttributeType.username: + return event.username == userAttribute._value; + case _UserAttributeType.email: + return event.userAttributes[CognitoUserAttributeKey.email] == + userAttribute._value; + case _UserAttributeType.phone: + return event.userAttributes[CognitoUserAttributeKey + .phoneNumber] == + userAttribute._value; + } + }) + .map((event) => event.code) + .first; await establishedCompleter.future; return OtpResult(code); @@ -347,9 +342,7 @@ Stream getOtpCodes({void Function()? onEstablished}) { }'''; final operation = Amplify.API.subscribe( - GraphQLRequest( - document: subscriptionDocument, - ), + GraphQLRequest(document: subscriptionDocument), onEstablished: () { onEstablished?.call(); _logger.debug('Established connection'); @@ -359,17 +352,16 @@ Stream getOtpCodes({void Function()? onEstablished}) { // Collect code delivered via Lambda return operation .tap( - (event) => _logger.debug( - 'Got event: ${event.data}, errors: ${event.errors}', - ), - ) + (event) => + _logger.debug('Got event: ${event.data}, errors: ${event.errors}'), + ) .map((event) { - if (event.hasErrors) { - throw Exception(event.errors); - } - final json = (jsonDecode(event.data!) as Map)['onCreateMFACode'] as Map; - return CreateMFACodeResponse.fromJson(json.cast()); - }); + if (event.hasErrors) { + throw Exception(event.errors); + } + final json = (jsonDecode(event.data!) as Map)['onCreateMFACode'] as Map; + return CreateMFACodeResponse.fromJson(json.cast()); + }); } /// Completes if one of the [futures] completes successfully. diff --git a/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/test_user.dart b/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/test_user.dart index 1ac6d04fdd..a20e3475be 100644 --- a/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/test_user.dart +++ b/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/test_user.dart @@ -5,11 +5,9 @@ import 'package:amplify_test/amplify_test.dart'; /// Email based sign in mechanism is used. class TestUser { /// Create a test user with a random email and password. - TestUser({ - String? email, - String? password, - }) : _email = email ?? generateEmail(), - _password = password ?? generatePassword(); + TestUser({String? email, String? password}) + : _email = email ?? generateEmail(), + _password = password ?? generatePassword(); final String _email; final String _password; diff --git a/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/types/create_mfa_code_response.dart b/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/types/create_mfa_code_response.dart index 7cc487dce1..66854fadda 100644 --- a/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/types/create_mfa_code_response.dart +++ b/packages/test/amplify_integration_test/lib/src/integration_test_utils/auth_cognito/types/create_mfa_code_response.dart @@ -20,10 +20,7 @@ class CreateMFACodeResponse username: json['username'] as String, code: json['code'] as String, userAttributes: userAttributesJson.map((key, value) { - return MapEntry( - CognitoUserAttributeKey.parse(key), - value as String, - ); + return MapEntry(CognitoUserAttributeKey.parse(key), value as String); }), ); } @@ -37,10 +34,10 @@ class CreateMFACodeResponse @override Map toJson() => { - 'username': username, - 'code': code, - 'userAttributes': userAttributes.map((key, value) { - return MapEntry(key.toJson(), value); - }), - }; + 'username': username, + 'code': code, + 'userAttributes': userAttributes.map((key, value) { + return MapEntry(key.toJson(), value); + }), + }; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart b/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart index b16ad6faa3..4d1cad73d5 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/cognito_identity_provider.dart @@ -1,5 +1,5 @@ -// Generated with smithy-dart 0.3.1. DO NOT MODIFY. -// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas +// Generated with smithy-dart 0.3.2. DO NOT MODIFY. +// ignore_for_file: avoid_unused_constructor_parameters,deprecated_member_use_from_same_package,non_constant_identifier_names,require_trailing_commas,unnecessary_library_name /// # Amazon Cognito Identity Provider /// diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart index ec7e2e1f3c..ba6750e565 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/cognito_identity_provider_client.dart @@ -76,12 +76,12 @@ class CognitoIdentityProviderClient { const _i2.AWSCredentialsProvider.defaultChain(), List<_i3.HttpRequestInterceptor> requestInterceptors = const [], List<_i3.HttpResponseInterceptor> responseInterceptors = const [], - }) : _client = client, - _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _client = client, + _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; final _i1.AWSHttpClient? _client; @@ -105,8 +105,9 @@ class CognitoIdentityProviderClient { /// /// * [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html) _i3.SmithyOperation< - _i3.PaginatedResult<_i4.BuiltList, int, String>> - adminListUserAuthEvents( + _i3.PaginatedResult<_i4.BuiltList, int, String> + > + adminListUserAuthEvents( AdminListUserAuthEventsRequest input, { _i1.AWSHttpClient? client, _i2.AWSCredentialsProvider? credentialsProvider, @@ -117,9 +118,6 @@ class CognitoIdentityProviderClient { credentialsProvider: credentialsProvider ?? _credentialsProvider, requestInterceptors: _requestInterceptors, responseInterceptors: _responseInterceptors, - ).runPaginated( - input, - client: client ?? _client, - ); + ).runPaginated(input, client: client ?? _client); } } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart index 8361d89e44..aa4ebbf48b 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/endpoint_resolver.dart @@ -77,30 +77,38 @@ final _partitions = [ ), 'me-south-1': _i1.EndpointDefinition(variants: []), 'sa-east-1': _i1.EndpointDefinition(variants: []), - 'us-east-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-east-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-east-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-east-2.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-west-1.amazonaws.com', - tags: ['fips'], - ) - ]), - 'us-west-2': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-west-2.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-east-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-east-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-east-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-east-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-west-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), + 'us-west-2': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-west-2.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), _i1.Partition( @@ -115,10 +123,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'cn-north-1', - 'cn-northwest-1', - }, + regions: const {'cn-north-1', 'cn-northwest-1'}, endpoints: const {}, ), _i1.Partition( @@ -133,10 +138,7 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-iso-east-1', - 'us-iso-west-1', - }, + regions: const {'us-iso-east-1', 'us-iso-west-1'}, endpoints: const {}, ), _i1.Partition( @@ -166,27 +168,27 @@ final _partitions = [ credentialScope: _i1.CredentialScope(), variants: [], ), - regions: const { - 'us-gov-east-1', - 'us-gov-west-1', - }, + regions: const {'us-gov-east-1', 'us-gov-west-1'}, endpoints: const { 'fips-us-gov-west-1': _i1.EndpointDefinition( hostname: 'cognito-idp-fips.us-gov-west-1.amazonaws.com', credentialScope: _i1.CredentialScope(region: 'us-gov-west-1'), variants: [], ), - 'us-gov-west-1': _i1.EndpointDefinition(variants: [ - _i1.EndpointDefinitionVariant( - hostname: 'cognito-idp-fips.us-gov-west-1.amazonaws.com', - tags: ['fips'], - ) - ]), + 'us-gov-west-1': _i1.EndpointDefinition( + variants: [ + _i1.EndpointDefinitionVariant( + hostname: 'cognito-idp-fips.us-gov-west-1.amazonaws.com', + tags: ['fips'], + ), + ], + ), }, ), ]; @_i2.internal -final _i1.AWSEndpointResolver endpointResolver = - _i1.AWSEndpointResolver(_partitions); +final _i1.AWSEndpointResolver endpointResolver = _i1.AWSEndpointResolver( + _partitions, +); @_i2.internal const String sdkId = 'Cognito Identity Provider'; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart index 541e0f00a9..db597672de 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/common/serializers.dart @@ -52,12 +52,8 @@ const List<_i1.SmithySerializer> serializers = [ ...UserPoolAddOnNotEnabledException.serializers, ]; final Map builderFactories = { - const FullType( - _i2.BuiltList, - [FullType(AuthEventType)], - ): _i2.ListBuilder.new, - const FullType( - _i2.BuiltList, - [FullType(ChallengeResponseType)], - ): _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(AuthEventType)]): + _i2.ListBuilder.new, + const FullType(_i2.BuiltList, [FullType(ChallengeResponseType)]): + _i2.ListBuilder.new, }; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.dart index aa05fb71e5..164715f6b3 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.dart @@ -15,8 +15,10 @@ abstract class AdminListUserAuthEventsRequest _i1.HttpInput, _i2.AWSEquatable implements - Built { + Built< + AdminListUserAuthEventsRequest, + AdminListUserAuthEventsRequestBuilder + > { factory AdminListUserAuthEventsRequest({ required String userPoolId, required String username, @@ -31,9 +33,9 @@ abstract class AdminListUserAuthEventsRequest ); } - factory AdminListUserAuthEventsRequest.build( - [void Function(AdminListUserAuthEventsRequestBuilder) updates]) = - _$AdminListUserAuthEventsRequest; + factory AdminListUserAuthEventsRequest.build([ + void Function(AdminListUserAuthEventsRequestBuilder) updates, + ]) = _$AdminListUserAuthEventsRequest; const AdminListUserAuthEventsRequest._(); @@ -41,11 +43,10 @@ abstract class AdminListUserAuthEventsRequest AdminListUserAuthEventsRequest payload, _i2.AWSBaseHttpRequest request, { Map labels = const {}, - }) => - payload; + }) => payload; static const List<_i1.SmithySerializer> - serializers = [AdminListUserAuthEventsRequestAwsJson11Serializer()]; + serializers = [AdminListUserAuthEventsRequestAwsJson11Serializer()]; /// The user pool ID. String get userPoolId; @@ -61,31 +62,15 @@ abstract class AdminListUserAuthEventsRequest @override AdminListUserAuthEventsRequest getPayload() => this; @override - List get props => [ - userPoolId, - username, - maxResults, - nextToken, - ]; + List get props => [userPoolId, username, maxResults, nextToken]; @override String toString() { - final helper = newBuiltValueToStringHelper('AdminListUserAuthEventsRequest') - ..add( - 'userPoolId', - userPoolId, - ) - ..add( - 'username', - '***SENSITIVE***', - ) - ..add( - 'maxResults', - maxResults, - ) - ..add( - 'nextToken', - nextToken, - ); + final helper = + newBuiltValueToStringHelper('AdminListUserAuthEventsRequest') + ..add('userPoolId', userPoolId) + ..add('username', '***SENSITIVE***') + ..add('maxResults', maxResults) + ..add('nextToken', nextToken); return helper.toString(); } } @@ -93,20 +78,17 @@ abstract class AdminListUserAuthEventsRequest class AdminListUserAuthEventsRequestAwsJson11Serializer extends _i1.StructuredSmithySerializer { const AdminListUserAuthEventsRequestAwsJson11Serializer() - : super('AdminListUserAuthEventsRequest'); + : super('AdminListUserAuthEventsRequest'); @override Iterable get types => const [ - AdminListUserAuthEventsRequest, - _$AdminListUserAuthEventsRequest, - ]; + AdminListUserAuthEventsRequest, + _$AdminListUserAuthEventsRequest, + ]; @override Iterable<_i1.ShapeId> get supportedProtocols => const [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AdminListUserAuthEventsRequest deserialize( Serializers serializers, @@ -124,25 +106,33 @@ class AdminListUserAuthEventsRequestAwsJson11Serializer } switch (key) { case 'UserPoolId': - result.userPoolId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.userPoolId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Username': - result.username = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.username = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'MaxResults': - result.maxResults = (serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int); + result.maxResults = + (serializers.deserialize( + value, + specifiedType: const FullType(int), + ) + as int); case 'NextToken': - result.nextToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -160,35 +150,30 @@ class AdminListUserAuthEventsRequestAwsJson11Serializer :userPoolId, :username, :maxResults, - :nextToken + :nextToken, ) = object; result$.addAll([ 'UserPoolId', - serializers.serialize( - userPoolId, - specifiedType: const FullType(String), - ), + serializers.serialize(userPoolId, specifiedType: const FullType(String)), 'Username', - serializers.serialize( - username, - specifiedType: const FullType(String), - ), + serializers.serialize(username, specifiedType: const FullType(String)), ]); if (maxResults != null) { result$ ..add('MaxResults') - ..add(serializers.serialize( - maxResults, - specifiedType: const FullType(int), - )); + ..add( + serializers.serialize(maxResults, specifiedType: const FullType(int)), + ); } if (nextToken != null) { result$ ..add('NextToken') - ..add(serializers.serialize( - nextToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.g.dart index 3c7c338c49..b5a593f361 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_request.g.dart @@ -16,26 +16,32 @@ class _$AdminListUserAuthEventsRequest extends AdminListUserAuthEventsRequest { @override final String? nextToken; - factory _$AdminListUserAuthEventsRequest( - [void Function(AdminListUserAuthEventsRequestBuilder)? updates]) => - (new AdminListUserAuthEventsRequestBuilder()..update(updates))._build(); - - _$AdminListUserAuthEventsRequest._( - {required this.userPoolId, - required this.username, - this.maxResults, - this.nextToken}) - : super._() { + factory _$AdminListUserAuthEventsRequest([ + void Function(AdminListUserAuthEventsRequestBuilder)? updates, + ]) => (new AdminListUserAuthEventsRequestBuilder()..update(updates))._build(); + + _$AdminListUserAuthEventsRequest._({ + required this.userPoolId, + required this.username, + this.maxResults, + this.nextToken, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - userPoolId, r'AdminListUserAuthEventsRequest', 'userPoolId'); + userPoolId, + r'AdminListUserAuthEventsRequest', + 'userPoolId', + ); BuiltValueNullFieldError.checkNotNull( - username, r'AdminListUserAuthEventsRequest', 'username'); + username, + r'AdminListUserAuthEventsRequest', + 'username', + ); } @override AdminListUserAuthEventsRequest rebuild( - void Function(AdminListUserAuthEventsRequestBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AdminListUserAuthEventsRequestBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AdminListUserAuthEventsRequestBuilder toBuilder() => @@ -65,8 +71,10 @@ class _$AdminListUserAuthEventsRequest extends AdminListUserAuthEventsRequest { class AdminListUserAuthEventsRequestBuilder implements - Builder { + Builder< + AdminListUserAuthEventsRequest, + AdminListUserAuthEventsRequestBuilder + > { _$AdminListUserAuthEventsRequest? _$v; String? _userPoolId; @@ -114,14 +122,22 @@ class AdminListUserAuthEventsRequestBuilder AdminListUserAuthEventsRequest build() => _build(); _$AdminListUserAuthEventsRequest _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$AdminListUserAuthEventsRequest._( - userPoolId: BuiltValueNullFieldError.checkNotNull( - userPoolId, r'AdminListUserAuthEventsRequest', 'userPoolId'), - username: BuiltValueNullFieldError.checkNotNull( - username, r'AdminListUserAuthEventsRequest', 'username'), - maxResults: maxResults, - nextToken: nextToken); + userPoolId: BuiltValueNullFieldError.checkNotNull( + userPoolId, + r'AdminListUserAuthEventsRequest', + 'userPoolId', + ), + username: BuiltValueNullFieldError.checkNotNull( + username, + r'AdminListUserAuthEventsRequest', + 'username', + ), + maxResults: maxResults, + nextToken: nextToken, + ); replace(_$result); return _$result; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.dart index 2e1d749bb3..9553c787f0 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.dart @@ -13,11 +13,12 @@ import 'package:smithy/smithy.dart' as _i3; part 'admin_list_user_auth_events_response.g.dart'; abstract class AdminListUserAuthEventsResponse - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built { + Built< + AdminListUserAuthEventsResponse, + AdminListUserAuthEventsResponseBuilder + > { factory AdminListUserAuthEventsResponse({ List? authEvents, String? nextToken, @@ -28,9 +29,9 @@ abstract class AdminListUserAuthEventsResponse ); } - factory AdminListUserAuthEventsResponse.build( - [void Function(AdminListUserAuthEventsResponseBuilder) updates]) = - _$AdminListUserAuthEventsResponse; + factory AdminListUserAuthEventsResponse.build([ + void Function(AdminListUserAuthEventsResponseBuilder) updates, + ]) = _$AdminListUserAuthEventsResponse; const AdminListUserAuthEventsResponse._(); @@ -38,11 +39,10 @@ abstract class AdminListUserAuthEventsResponse factory AdminListUserAuthEventsResponse.fromResponse( AdminListUserAuthEventsResponse payload, _i1.AWSBaseHttpResponse response, - ) => - payload; + ) => payload; static const List<_i3.SmithySerializer> - serializers = [AdminListUserAuthEventsResponseAwsJson11Serializer()]; + serializers = [AdminListUserAuthEventsResponseAwsJson11Serializer()]; /// The response object. It includes the `EventID`, `EventType`, `CreationDate`, `EventRisk`, and `EventResponse`. _i2.BuiltList? get authEvents; @@ -50,22 +50,13 @@ abstract class AdminListUserAuthEventsResponse /// A pagination token. String? get nextToken; @override - List get props => [ - authEvents, - nextToken, - ]; + List get props => [authEvents, nextToken]; @override String toString() { final helper = newBuiltValueToStringHelper('AdminListUserAuthEventsResponse') - ..add( - 'authEvents', - authEvents, - ) - ..add( - 'nextToken', - nextToken, - ); + ..add('authEvents', authEvents) + ..add('nextToken', nextToken); return helper.toString(); } } @@ -73,20 +64,17 @@ abstract class AdminListUserAuthEventsResponse class AdminListUserAuthEventsResponseAwsJson11Serializer extends _i3.StructuredSmithySerializer { const AdminListUserAuthEventsResponseAwsJson11Serializer() - : super('AdminListUserAuthEventsResponse'); + : super('AdminListUserAuthEventsResponse'); @override Iterable get types => const [ - AdminListUserAuthEventsResponse, - _$AdminListUserAuthEventsResponse, - ]; + AdminListUserAuthEventsResponse, + _$AdminListUserAuthEventsResponse, + ]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AdminListUserAuthEventsResponse deserialize( Serializers serializers, @@ -104,18 +92,22 @@ class AdminListUserAuthEventsResponseAwsJson11Serializer } switch (key) { case 'AuthEvents': - result.authEvents.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(AuthEventType)], - ), - ) as _i2.BuiltList)); + result.authEvents.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(AuthEventType), + ]), + ) + as _i2.BuiltList), + ); case 'NextToken': - result.nextToken = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.nextToken = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -133,21 +125,24 @@ class AdminListUserAuthEventsResponseAwsJson11Serializer if (authEvents != null) { result$ ..add('AuthEvents') - ..add(serializers.serialize( - authEvents, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(AuthEventType)], + ..add( + serializers.serialize( + authEvents, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(AuthEventType), + ]), ), - )); + ); } if (nextToken != null) { result$ ..add('NextToken') - ..add(serializers.serialize( - nextToken, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + nextToken, + specifiedType: const FullType(String), + ), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.g.dart index 193d429909..a15d582886 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/admin_list_user_auth_events_response.g.dart @@ -13,17 +13,18 @@ class _$AdminListUserAuthEventsResponse @override final String? nextToken; - factory _$AdminListUserAuthEventsResponse( - [void Function(AdminListUserAuthEventsResponseBuilder)? updates]) => + factory _$AdminListUserAuthEventsResponse([ + void Function(AdminListUserAuthEventsResponseBuilder)? updates, + ]) => (new AdminListUserAuthEventsResponseBuilder()..update(updates))._build(); _$AdminListUserAuthEventsResponse._({this.authEvents, this.nextToken}) - : super._(); + : super._(); @override AdminListUserAuthEventsResponse rebuild( - void Function(AdminListUserAuthEventsResponseBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(AdminListUserAuthEventsResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override AdminListUserAuthEventsResponseBuilder toBuilder() => @@ -49,8 +50,10 @@ class _$AdminListUserAuthEventsResponse class AdminListUserAuthEventsResponseBuilder implements - Builder { + Builder< + AdminListUserAuthEventsResponse, + AdminListUserAuthEventsResponseBuilder + > { _$AdminListUserAuthEventsResponse? _$v; _i2.ListBuilder? _authEvents; @@ -92,9 +95,12 @@ class AdminListUserAuthEventsResponseBuilder _$AdminListUserAuthEventsResponse _build() { _$AdminListUserAuthEventsResponse _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AdminListUserAuthEventsResponse._( - authEvents: _authEvents?.build(), nextToken: nextToken); + authEvents: _authEvents?.build(), + nextToken: nextToken, + ); } catch (_) { late String _$failedField; try { @@ -102,7 +108,10 @@ class AdminListUserAuthEventsResponseBuilder _authEvents?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AdminListUserAuthEventsResponse', _$failedField, e.toString()); + r'AdminListUserAuthEventsResponse', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart index 1a8a5c0a90..95bcf01aa4 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.dart @@ -52,7 +52,7 @@ abstract class AuthEventType const AuthEventType._(); static const List<_i3.SmithySerializer> serializers = [ - AuthEventTypeAwsJson11Serializer() + AuthEventTypeAwsJson11Serializer(), ]; /// The event ID. @@ -80,50 +80,27 @@ abstract class AuthEventType EventFeedbackType? get eventFeedback; @override List get props => [ - eventId, - eventType, - creationDate, - eventResponse, - eventRisk, - challengeResponses, - eventContextData, - eventFeedback, - ]; + eventId, + eventType, + creationDate, + eventResponse, + eventRisk, + challengeResponses, + eventContextData, + eventFeedback, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('AuthEventType') - ..add( - 'eventId', - eventId, - ) - ..add( - 'eventType', - eventType, - ) - ..add( - 'creationDate', - creationDate, - ) - ..add( - 'eventResponse', - eventResponse, - ) - ..add( - 'eventRisk', - eventRisk, - ) - ..add( - 'challengeResponses', - challengeResponses, - ) - ..add( - 'eventContextData', - eventContextData, - ) - ..add( - 'eventFeedback', - eventFeedback, - ); + final helper = + newBuiltValueToStringHelper('AuthEventType') + ..add('eventId', eventId) + ..add('eventType', eventType) + ..add('creationDate', creationDate) + ..add('eventResponse', eventResponse) + ..add('eventRisk', eventRisk) + ..add('challengeResponses', challengeResponses) + ..add('eventContextData', eventContextData) + ..add('eventFeedback', eventFeedback); return helper.toString(); } } @@ -133,17 +110,11 @@ class AuthEventTypeAwsJson11Serializer const AuthEventTypeAwsJson11Serializer() : super('AuthEventType'); @override - Iterable get types => const [ - AuthEventType, - _$AuthEventType, - ]; + Iterable get types => const [AuthEventType, _$AuthEventType]; @override Iterable<_i3.ShapeId> get supportedProtocols => const [ - _i3.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i3.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override AuthEventType deserialize( Serializers serializers, @@ -161,48 +132,67 @@ class AuthEventTypeAwsJson11Serializer } switch (key) { case 'EventId': - result.eventId = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.eventId = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'EventType': - result.eventType = (serializers.deserialize( - value, - specifiedType: const FullType(EventType), - ) as EventType); + result.eventType = + (serializers.deserialize( + value, + specifiedType: const FullType(EventType), + ) + as EventType); case 'CreationDate': - result.creationDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.creationDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); case 'EventResponse': - result.eventResponse = (serializers.deserialize( - value, - specifiedType: const FullType(EventResponseType), - ) as EventResponseType); + result.eventResponse = + (serializers.deserialize( + value, + specifiedType: const FullType(EventResponseType), + ) + as EventResponseType); case 'EventRisk': - result.eventRisk.replace((serializers.deserialize( - value, - specifiedType: const FullType(EventRiskType), - ) as EventRiskType)); + result.eventRisk.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EventRiskType), + ) + as EventRiskType), + ); case 'ChallengeResponses': - result.challengeResponses.replace((serializers.deserialize( - value, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(ChallengeResponseType)], - ), - ) as _i2.BuiltList)); + result.challengeResponses.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(ChallengeResponseType), + ]), + ) + as _i2.BuiltList), + ); case 'EventContextData': - result.eventContextData.replace((serializers.deserialize( - value, - specifiedType: const FullType(EventContextDataType), - ) as EventContextDataType)); + result.eventContextData.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EventContextDataType), + ) + as EventContextDataType), + ); case 'EventFeedback': - result.eventFeedback.replace((serializers.deserialize( - value, - specifiedType: const FullType(EventFeedbackType), - ) as EventFeedbackType)); + result.eventFeedback.replace( + (serializers.deserialize( + value, + specifiedType: const FullType(EventFeedbackType), + ) + as EventFeedbackType), + ); } } @@ -224,74 +214,86 @@ class AuthEventTypeAwsJson11Serializer :eventRisk, :challengeResponses, :eventContextData, - :eventFeedback + :eventFeedback, ) = object; if (eventId != null) { result$ ..add('EventId') - ..add(serializers.serialize( - eventId, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(eventId, specifiedType: const FullType(String)), + ); } if (eventType != null) { result$ ..add('EventType') - ..add(serializers.serialize( - eventType, - specifiedType: const FullType(EventType), - )); + ..add( + serializers.serialize( + eventType, + specifiedType: const FullType(EventType), + ), + ); } if (creationDate != null) { result$ ..add('CreationDate') - ..add(serializers.serialize( - creationDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + creationDate, + specifiedType: const FullType(DateTime), + ), + ); } if (eventResponse != null) { result$ ..add('EventResponse') - ..add(serializers.serialize( - eventResponse, - specifiedType: const FullType(EventResponseType), - )); + ..add( + serializers.serialize( + eventResponse, + specifiedType: const FullType(EventResponseType), + ), + ); } if (eventRisk != null) { result$ ..add('EventRisk') - ..add(serializers.serialize( - eventRisk, - specifiedType: const FullType(EventRiskType), - )); + ..add( + serializers.serialize( + eventRisk, + specifiedType: const FullType(EventRiskType), + ), + ); } if (challengeResponses != null) { result$ ..add('ChallengeResponses') - ..add(serializers.serialize( - challengeResponses, - specifiedType: const FullType( - _i2.BuiltList, - [FullType(ChallengeResponseType)], + ..add( + serializers.serialize( + challengeResponses, + specifiedType: const FullType(_i2.BuiltList, [ + FullType(ChallengeResponseType), + ]), ), - )); + ); } if (eventContextData != null) { result$ ..add('EventContextData') - ..add(serializers.serialize( - eventContextData, - specifiedType: const FullType(EventContextDataType), - )); + ..add( + serializers.serialize( + eventContextData, + specifiedType: const FullType(EventContextDataType), + ), + ); } if (eventFeedback != null) { result$ ..add('EventFeedback') - ..add(serializers.serialize( - eventFeedback, - specifiedType: const FullType(EventFeedbackType), - )); + ..add( + serializers.serialize( + eventFeedback, + specifiedType: const FullType(EventFeedbackType), + ), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.g.dart index 910c8fa5af..06e8a5efd2 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/auth_event_type.g.dart @@ -27,16 +27,16 @@ class _$AuthEventType extends AuthEventType { factory _$AuthEventType([void Function(AuthEventTypeBuilder)? updates]) => (new AuthEventTypeBuilder()..update(updates))._build(); - _$AuthEventType._( - {this.eventId, - this.eventType, - this.creationDate, - this.eventResponse, - this.eventRisk, - this.challengeResponses, - this.eventContextData, - this.eventFeedback}) - : super._(); + _$AuthEventType._({ + this.eventId, + this.eventType, + this.creationDate, + this.eventResponse, + this.eventRisk, + this.challengeResponses, + this.eventContextData, + this.eventFeedback, + }) : super._(); @override AuthEventType rebuild(void Function(AuthEventTypeBuilder) updates) => @@ -108,8 +108,8 @@ class AuthEventTypeBuilder _$this._challengeResponses ??= new _i2.ListBuilder(); set challengeResponses( - _i2.ListBuilder? challengeResponses) => - _$this._challengeResponses = challengeResponses; + _i2.ListBuilder? challengeResponses, + ) => _$this._challengeResponses = challengeResponses; EventContextDataTypeBuilder? _eventContextData; EventContextDataTypeBuilder get eventContextData => @@ -158,16 +158,18 @@ class AuthEventTypeBuilder _$AuthEventType _build() { _$AuthEventType _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$AuthEventType._( - eventId: eventId, - eventType: eventType, - creationDate: creationDate, - eventResponse: eventResponse, - eventRisk: _eventRisk?.build(), - challengeResponses: _challengeResponses?.build(), - eventContextData: _eventContextData?.build(), - eventFeedback: _eventFeedback?.build()); + eventId: eventId, + eventType: eventType, + creationDate: creationDate, + eventResponse: eventResponse, + eventRisk: _eventRisk?.build(), + challengeResponses: _challengeResponses?.build(), + eventContextData: _eventContextData?.build(), + eventFeedback: _eventFeedback?.build(), + ); } catch (_) { late String _$failedField; try { @@ -181,7 +183,10 @@ class AuthEventTypeBuilder _eventFeedback?.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'AuthEventType', _$failedField, e.toString()); + r'AuthEventType', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_name.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_name.dart index 02de67b847..365bd52de1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_name.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_name.dart @@ -6,25 +6,13 @@ library amplify_integration_test.cognito_identity_provider.model.challenge_name; import 'package:smithy/smithy.dart' as _i1; class ChallengeName extends _i1.SmithyEnum { - const ChallengeName._( - super.index, - super.name, - super.value, - ); + const ChallengeName._(super.index, super.name, super.value); const ChallengeName._sdkUnknown(super.value) : super.sdkUnknown(); - static const mfa = ChallengeName._( - 0, - 'Mfa', - 'Mfa', - ); + static const mfa = ChallengeName._(0, 'Mfa', 'Mfa'); - static const password = ChallengeName._( - 1, - 'Password', - 'Password', - ); + static const password = ChallengeName._(1, 'Password', 'Password'); /// All values of [ChallengeName]. static const values = [ @@ -38,12 +26,9 @@ class ChallengeName extends _i1.SmithyEnum { values: values, sdkUnknown: ChallengeName._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response.dart index a237e929f3..b1cf30d2c5 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response.dart @@ -6,25 +6,13 @@ library amplify_integration_test.cognito_identity_provider.model.challenge_respo import 'package:smithy/smithy.dart' as _i1; class ChallengeResponse extends _i1.SmithyEnum { - const ChallengeResponse._( - super.index, - super.name, - super.value, - ); + const ChallengeResponse._(super.index, super.name, super.value); const ChallengeResponse._sdkUnknown(super.value) : super.sdkUnknown(); - static const failure = ChallengeResponse._( - 0, - 'Failure', - 'Failure', - ); + static const failure = ChallengeResponse._(0, 'Failure', 'Failure'); - static const success = ChallengeResponse._( - 1, - 'Success', - 'Success', - ); + static const success = ChallengeResponse._(1, 'Success', 'Success'); /// All values of [ChallengeResponse]. static const values = [ @@ -38,12 +26,9 @@ class ChallengeResponse extends _i1.SmithyEnum { values: values, sdkUnknown: ChallengeResponse._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.dart index 4926495933..16341e99e1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.dart @@ -28,14 +28,14 @@ abstract class ChallengeResponseType } /// The challenge response type. - factory ChallengeResponseType.build( - [void Function(ChallengeResponseTypeBuilder) updates]) = - _$ChallengeResponseType; + factory ChallengeResponseType.build([ + void Function(ChallengeResponseTypeBuilder) updates, + ]) = _$ChallengeResponseType; const ChallengeResponseType._(); static const List<_i2.SmithySerializer> serializers = [ - ChallengeResponseTypeAwsJson11Serializer() + ChallengeResponseTypeAwsJson11Serializer(), ]; /// The challenge name. @@ -44,21 +44,13 @@ abstract class ChallengeResponseType /// The challenge response. ChallengeResponse? get challengeResponse; @override - List get props => [ - challengeName, - challengeResponse, - ]; + List get props => [challengeName, challengeResponse]; @override String toString() { - final helper = newBuiltValueToStringHelper('ChallengeResponseType') - ..add( - 'challengeName', - challengeName, - ) - ..add( - 'challengeResponse', - challengeResponse, - ); + final helper = + newBuiltValueToStringHelper('ChallengeResponseType') + ..add('challengeName', challengeName) + ..add('challengeResponse', challengeResponse); return helper.toString(); } } @@ -66,20 +58,17 @@ abstract class ChallengeResponseType class ChallengeResponseTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ChallengeResponseTypeAwsJson11Serializer() - : super('ChallengeResponseType'); + : super('ChallengeResponseType'); @override Iterable get types => const [ - ChallengeResponseType, - _$ChallengeResponseType, - ]; + ChallengeResponseType, + _$ChallengeResponseType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ChallengeResponseType deserialize( Serializers serializers, @@ -97,15 +86,19 @@ class ChallengeResponseTypeAwsJson11Serializer } switch (key) { case 'ChallengeName': - result.challengeName = (serializers.deserialize( - value, - specifiedType: const FullType(ChallengeName), - ) as ChallengeName); + result.challengeName = + (serializers.deserialize( + value, + specifiedType: const FullType(ChallengeName), + ) + as ChallengeName); case 'ChallengeResponse': - result.challengeResponse = (serializers.deserialize( - value, - specifiedType: const FullType(ChallengeResponse), - ) as ChallengeResponse); + result.challengeResponse = + (serializers.deserialize( + value, + specifiedType: const FullType(ChallengeResponse), + ) + as ChallengeResponse); } } @@ -123,18 +116,22 @@ class ChallengeResponseTypeAwsJson11Serializer if (challengeName != null) { result$ ..add('ChallengeName') - ..add(serializers.serialize( - challengeName, - specifiedType: const FullType(ChallengeName), - )); + ..add( + serializers.serialize( + challengeName, + specifiedType: const FullType(ChallengeName), + ), + ); } if (challengeResponse != null) { result$ ..add('ChallengeResponse') - ..add(serializers.serialize( - challengeResponse, - specifiedType: const FullType(ChallengeResponse), - )); + ..add( + serializers.serialize( + challengeResponse, + specifiedType: const FullType(ChallengeResponse), + ), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.g.dart index eff1aaf6ec..0ad6aad251 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/challenge_response_type.g.dart @@ -12,17 +12,17 @@ class _$ChallengeResponseType extends ChallengeResponseType { @override final ChallengeResponse? challengeResponse; - factory _$ChallengeResponseType( - [void Function(ChallengeResponseTypeBuilder)? updates]) => - (new ChallengeResponseTypeBuilder()..update(updates))._build(); + factory _$ChallengeResponseType([ + void Function(ChallengeResponseTypeBuilder)? updates, + ]) => (new ChallengeResponseTypeBuilder()..update(updates))._build(); _$ChallengeResponseType._({this.challengeName, this.challengeResponse}) - : super._(); + : super._(); @override ChallengeResponseType rebuild( - void Function(ChallengeResponseTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ChallengeResponseTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ChallengeResponseTypeBuilder toBuilder() => @@ -87,9 +87,12 @@ class ChallengeResponseTypeBuilder ChallengeResponseType build() => _build(); _$ChallengeResponseType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ChallengeResponseType._( - challengeName: challengeName, challengeResponse: challengeResponse); + challengeName: challengeName, + challengeResponse: challengeResponse, + ); replace(_$result); return _$result; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.dart index 29754767a5..85c2029687 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.dart @@ -32,14 +32,14 @@ abstract class EventContextDataType } /// Specifies the user context data captured at the time of an event request. - factory EventContextDataType.build( - [void Function(EventContextDataTypeBuilder) updates]) = - _$EventContextDataType; + factory EventContextDataType.build([ + void Function(EventContextDataTypeBuilder) updates, + ]) = _$EventContextDataType; const EventContextDataType._(); static const List<_i2.SmithySerializer> serializers = [ - EventContextDataTypeAwsJson11Serializer() + EventContextDataTypeAwsJson11Serializer(), ]; /// The source IP address of your user's device. @@ -57,36 +57,16 @@ abstract class EventContextDataType /// The user's country. String? get country; @override - List get props => [ - ipAddress, - deviceName, - timezone, - city, - country, - ]; + List get props => [ipAddress, deviceName, timezone, city, country]; @override String toString() { - final helper = newBuiltValueToStringHelper('EventContextDataType') - ..add( - 'ipAddress', - ipAddress, - ) - ..add( - 'deviceName', - deviceName, - ) - ..add( - 'timezone', - timezone, - ) - ..add( - 'city', - city, - ) - ..add( - 'country', - country, - ); + final helper = + newBuiltValueToStringHelper('EventContextDataType') + ..add('ipAddress', ipAddress) + ..add('deviceName', deviceName) + ..add('timezone', timezone) + ..add('city', city) + ..add('country', country); return helper.toString(); } } @@ -94,20 +74,17 @@ abstract class EventContextDataType class EventContextDataTypeAwsJson11Serializer extends _i2.StructuredSmithySerializer { const EventContextDataTypeAwsJson11Serializer() - : super('EventContextDataType'); + : super('EventContextDataType'); @override Iterable get types => const [ - EventContextDataType, - _$EventContextDataType, - ]; + EventContextDataType, + _$EventContextDataType, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EventContextDataType deserialize( Serializers serializers, @@ -125,30 +102,40 @@ class EventContextDataTypeAwsJson11Serializer } switch (key) { case 'IpAddress': - result.ipAddress = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.ipAddress = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'DeviceName': - result.deviceName = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.deviceName = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Timezone': - result.timezone = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.timezone = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'City': - result.city = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.city = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'Country': - result.country = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.country = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -167,47 +154,51 @@ class EventContextDataTypeAwsJson11Serializer :deviceName, :timezone, :city, - :country + :country, ) = object; if (ipAddress != null) { result$ ..add('IpAddress') - ..add(serializers.serialize( - ipAddress, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + ipAddress, + specifiedType: const FullType(String), + ), + ); } if (deviceName != null) { result$ ..add('DeviceName') - ..add(serializers.serialize( - deviceName, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + deviceName, + specifiedType: const FullType(String), + ), + ); } if (timezone != null) { result$ ..add('Timezone') - ..add(serializers.serialize( - timezone, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize( + timezone, + specifiedType: const FullType(String), + ), + ); } if (city != null) { result$ ..add('City') - ..add(serializers.serialize( - city, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(city, specifiedType: const FullType(String)), + ); } if (country != null) { result$ ..add('Country') - ..add(serializers.serialize( - country, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(country, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.g.dart index 8a2e023ea6..5b53e35545 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_context_data_type.g.dart @@ -18,18 +18,22 @@ class _$EventContextDataType extends EventContextDataType { @override final String? country; - factory _$EventContextDataType( - [void Function(EventContextDataTypeBuilder)? updates]) => - (new EventContextDataTypeBuilder()..update(updates))._build(); - - _$EventContextDataType._( - {this.ipAddress, this.deviceName, this.timezone, this.city, this.country}) - : super._(); + factory _$EventContextDataType([ + void Function(EventContextDataTypeBuilder)? updates, + ]) => (new EventContextDataTypeBuilder()..update(updates))._build(); + + _$EventContextDataType._({ + this.ipAddress, + this.deviceName, + this.timezone, + this.city, + this.country, + }) : super._(); @override EventContextDataType rebuild( - void Function(EventContextDataTypeBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(EventContextDataTypeBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override EventContextDataTypeBuilder toBuilder() => @@ -113,13 +117,15 @@ class EventContextDataTypeBuilder EventContextDataType build() => _build(); _$EventContextDataType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EventContextDataType._( - ipAddress: ipAddress, - deviceName: deviceName, - timezone: timezone, - city: city, - country: country); + ipAddress: ipAddress, + deviceName: deviceName, + timezone: timezone, + city: city, + country: country, + ); replace(_$result); return _$result; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart index bf391e2e19..504ca72bc2 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.dart @@ -29,13 +29,14 @@ abstract class EventFeedbackType } /// Specifies the event feedback type. - factory EventFeedbackType.build( - [void Function(EventFeedbackTypeBuilder) updates]) = _$EventFeedbackType; + factory EventFeedbackType.build([ + void Function(EventFeedbackTypeBuilder) updates, + ]) = _$EventFeedbackType; const EventFeedbackType._(); static const List<_i2.SmithySerializer> serializers = [ - EventFeedbackTypeAwsJson11Serializer() + EventFeedbackTypeAwsJson11Serializer(), ]; /// The authentication event feedback value. When you provide a `FeedbackValue` value of `valid`, you tell Amazon Cognito that you trust a user session where Amazon Cognito has evaluated some level of risk. When you provide a `FeedbackValue` value of `invalid`, you tell Amazon Cognito that you don't trust a user session, or you don't believe that Amazon Cognito evaluated a high-enough risk level. @@ -47,26 +48,14 @@ abstract class EventFeedbackType /// The event feedback date. DateTime? get feedbackDate; @override - List get props => [ - feedbackValue, - provider, - feedbackDate, - ]; + List get props => [feedbackValue, provider, feedbackDate]; @override String toString() { - final helper = newBuiltValueToStringHelper('EventFeedbackType') - ..add( - 'feedbackValue', - feedbackValue, - ) - ..add( - 'provider', - provider, - ) - ..add( - 'feedbackDate', - feedbackDate, - ); + final helper = + newBuiltValueToStringHelper('EventFeedbackType') + ..add('feedbackValue', feedbackValue) + ..add('provider', provider) + ..add('feedbackDate', feedbackDate); return helper.toString(); } } @@ -76,17 +65,11 @@ class EventFeedbackTypeAwsJson11Serializer const EventFeedbackTypeAwsJson11Serializer() : super('EventFeedbackType'); @override - Iterable get types => const [ - EventFeedbackType, - _$EventFeedbackType, - ]; + Iterable get types => const [EventFeedbackType, _$EventFeedbackType]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EventFeedbackType deserialize( Serializers serializers, @@ -104,20 +87,26 @@ class EventFeedbackTypeAwsJson11Serializer } switch (key) { case 'FeedbackValue': - result.feedbackValue = (serializers.deserialize( - value, - specifiedType: const FullType(FeedbackValueType), - ) as FeedbackValueType); + result.feedbackValue = + (serializers.deserialize( + value, + specifiedType: const FullType(FeedbackValueType), + ) + as FeedbackValueType); case 'Provider': - result.provider = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.provider = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); case 'FeedbackDate': - result.feedbackDate = (serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime); + result.feedbackDate = + (serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime); } } @@ -139,18 +128,17 @@ class EventFeedbackTypeAwsJson11Serializer specifiedType: const FullType(FeedbackValueType), ), 'Provider', - serializers.serialize( - provider, - specifiedType: const FullType(String), - ), + serializers.serialize(provider, specifiedType: const FullType(String)), ]); if (feedbackDate != null) { result$ ..add('FeedbackDate') - ..add(serializers.serialize( - feedbackDate, - specifiedType: const FullType(DateTime), - )); + ..add( + serializers.serialize( + feedbackDate, + specifiedType: const FullType(DateTime), + ), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.g.dart index e559ad0bd1..8f84425fd6 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_feedback_type.g.dart @@ -14,17 +14,25 @@ class _$EventFeedbackType extends EventFeedbackType { @override final DateTime? feedbackDate; - factory _$EventFeedbackType( - [void Function(EventFeedbackTypeBuilder)? updates]) => - (new EventFeedbackTypeBuilder()..update(updates))._build(); - - _$EventFeedbackType._( - {required this.feedbackValue, required this.provider, this.feedbackDate}) - : super._() { + factory _$EventFeedbackType([ + void Function(EventFeedbackTypeBuilder)? updates, + ]) => (new EventFeedbackTypeBuilder()..update(updates))._build(); + + _$EventFeedbackType._({ + required this.feedbackValue, + required this.provider, + this.feedbackDate, + }) : super._() { BuiltValueNullFieldError.checkNotNull( - feedbackValue, r'EventFeedbackType', 'feedbackValue'); + feedbackValue, + r'EventFeedbackType', + 'feedbackValue', + ); BuiltValueNullFieldError.checkNotNull( - provider, r'EventFeedbackType', 'provider'); + provider, + r'EventFeedbackType', + 'provider', + ); } @override @@ -101,13 +109,21 @@ class EventFeedbackTypeBuilder EventFeedbackType build() => _build(); _$EventFeedbackType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EventFeedbackType._( - feedbackValue: BuiltValueNullFieldError.checkNotNull( - feedbackValue, r'EventFeedbackType', 'feedbackValue'), - provider: BuiltValueNullFieldError.checkNotNull( - provider, r'EventFeedbackType', 'provider'), - feedbackDate: feedbackDate); + feedbackValue: BuiltValueNullFieldError.checkNotNull( + feedbackValue, + r'EventFeedbackType', + 'feedbackValue', + ), + provider: BuiltValueNullFieldError.checkNotNull( + provider, + r'EventFeedbackType', + 'provider', + ), + feedbackDate: feedbackDate, + ); replace(_$result); return _$result; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_response_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_response_type.dart index 08a0f165c7..f41bbb6dec 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_response_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_response_type.dart @@ -6,31 +6,15 @@ library amplify_integration_test.cognito_identity_provider.model.event_response_ import 'package:smithy/smithy.dart' as _i1; class EventResponseType extends _i1.SmithyEnum { - const EventResponseType._( - super.index, - super.name, - super.value, - ); + const EventResponseType._(super.index, super.name, super.value); const EventResponseType._sdkUnknown(super.value) : super.sdkUnknown(); - static const fail = EventResponseType._( - 0, - 'Fail', - 'Fail', - ); + static const fail = EventResponseType._(0, 'Fail', 'Fail'); - static const inProgress = EventResponseType._( - 1, - 'InProgress', - 'InProgress', - ); + static const inProgress = EventResponseType._(1, 'InProgress', 'InProgress'); - static const pass = EventResponseType._( - 2, - 'Pass', - 'Pass', - ); + static const pass = EventResponseType._(2, 'Pass', 'Pass'); /// All values of [EventResponseType]. static const values = [ @@ -45,12 +29,9 @@ class EventResponseType extends _i1.SmithyEnum { values: values, sdkUnknown: EventResponseType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.dart index c6b173ed6c..9c2aef40d4 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.dart @@ -36,7 +36,7 @@ abstract class EventRiskType const EventRiskType._(); static const List<_i2.SmithySerializer> serializers = [ - EventRiskTypeAwsJson11Serializer() + EventRiskTypeAwsJson11Serializer(), ]; /// The risk decision. @@ -49,25 +49,20 @@ abstract class EventRiskType bool? get compromisedCredentialsDetected; @override List get props => [ - riskDecision, - riskLevel, - compromisedCredentialsDetected, - ]; + riskDecision, + riskLevel, + compromisedCredentialsDetected, + ]; @override String toString() { - final helper = newBuiltValueToStringHelper('EventRiskType') - ..add( - 'riskDecision', - riskDecision, - ) - ..add( - 'riskLevel', - riskLevel, - ) - ..add( - 'compromisedCredentialsDetected', - compromisedCredentialsDetected, - ); + final helper = + newBuiltValueToStringHelper('EventRiskType') + ..add('riskDecision', riskDecision) + ..add('riskLevel', riskLevel) + ..add( + 'compromisedCredentialsDetected', + compromisedCredentialsDetected, + ); return helper.toString(); } } @@ -77,17 +72,11 @@ class EventRiskTypeAwsJson11Serializer const EventRiskTypeAwsJson11Serializer() : super('EventRiskType'); @override - Iterable get types => const [ - EventRiskType, - _$EventRiskType, - ]; + Iterable get types => const [EventRiskType, _$EventRiskType]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override EventRiskType deserialize( Serializers serializers, @@ -105,20 +94,26 @@ class EventRiskTypeAwsJson11Serializer } switch (key) { case 'RiskDecision': - result.riskDecision = (serializers.deserialize( - value, - specifiedType: const FullType(RiskDecisionType), - ) as RiskDecisionType); + result.riskDecision = + (serializers.deserialize( + value, + specifiedType: const FullType(RiskDecisionType), + ) + as RiskDecisionType); case 'RiskLevel': - result.riskLevel = (serializers.deserialize( - value, - specifiedType: const FullType(RiskLevelType), - ) as RiskLevelType); + result.riskLevel = + (serializers.deserialize( + value, + specifiedType: const FullType(RiskLevelType), + ) + as RiskLevelType); case 'CompromisedCredentialsDetected': - result.compromisedCredentialsDetected = (serializers.deserialize( - value, - specifiedType: const FullType(bool), - ) as bool); + result.compromisedCredentialsDetected = + (serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) + as bool); } } @@ -135,31 +130,37 @@ class EventRiskTypeAwsJson11Serializer final EventRiskType( :riskDecision, :riskLevel, - :compromisedCredentialsDetected + :compromisedCredentialsDetected, ) = object; if (riskDecision != null) { result$ ..add('RiskDecision') - ..add(serializers.serialize( - riskDecision, - specifiedType: const FullType(RiskDecisionType), - )); + ..add( + serializers.serialize( + riskDecision, + specifiedType: const FullType(RiskDecisionType), + ), + ); } if (riskLevel != null) { result$ ..add('RiskLevel') - ..add(serializers.serialize( - riskLevel, - specifiedType: const FullType(RiskLevelType), - )); + ..add( + serializers.serialize( + riskLevel, + specifiedType: const FullType(RiskLevelType), + ), + ); } if (compromisedCredentialsDetected != null) { result$ ..add('CompromisedCredentialsDetected') - ..add(serializers.serialize( - compromisedCredentialsDetected, - specifiedType: const FullType(bool), - )); + ..add( + serializers.serialize( + compromisedCredentialsDetected, + specifiedType: const FullType(bool), + ), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.g.dart index a49ee67260..19cdb77ae5 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_risk_type.g.dart @@ -17,9 +17,11 @@ class _$EventRiskType extends EventRiskType { factory _$EventRiskType([void Function(EventRiskTypeBuilder)? updates]) => (new EventRiskTypeBuilder()..update(updates))._build(); - _$EventRiskType._( - {this.riskDecision, this.riskLevel, this.compromisedCredentialsDetected}) - : super._(); + _$EventRiskType._({ + this.riskDecision, + this.riskLevel, + this.compromisedCredentialsDetected, + }) : super._(); @override EventRiskType rebuild(void Function(EventRiskTypeBuilder) updates) => @@ -95,11 +97,13 @@ class EventRiskTypeBuilder EventRiskType build() => _build(); _$EventRiskType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$EventRiskType._( - riskDecision: riskDecision, - riskLevel: riskLevel, - compromisedCredentialsDetected: compromisedCredentialsDetected); + riskDecision: riskDecision, + riskLevel: riskLevel, + compromisedCredentialsDetected: compromisedCredentialsDetected, + ); replace(_$result); return _$result; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_type.dart index 26b6a78577..ee9a82500d 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/event_type.dart @@ -6,11 +6,7 @@ library amplify_integration_test.cognito_identity_provider.model.event_type; // import 'package:smithy/smithy.dart' as _i1; class EventType extends _i1.SmithyEnum { - const EventType._( - super.index, - super.name, - super.value, - ); + const EventType._(super.index, super.name, super.value); const EventType._sdkUnknown(super.value) : super.sdkUnknown(); @@ -26,23 +22,11 @@ class EventType extends _i1.SmithyEnum { 'PasswordChange', ); - static const resendCode = EventType._( - 2, - 'ResendCode', - 'ResendCode', - ); + static const resendCode = EventType._(2, 'ResendCode', 'ResendCode'); - static const signIn = EventType._( - 3, - 'SignIn', - 'SignIn', - ); + static const signIn = EventType._(3, 'SignIn', 'SignIn'); - static const signUp = EventType._( - 4, - 'SignUp', - 'SignUp', - ); + static const signUp = EventType._(4, 'SignUp', 'SignUp'); /// All values of [EventType]. static const values = [ @@ -59,12 +43,9 @@ class EventType extends _i1.SmithyEnum { values: values, sdkUnknown: EventType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/feedback_value_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/feedback_value_type.dart index ad1a82876f..07f63a3170 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/feedback_value_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/feedback_value_type.dart @@ -6,25 +6,13 @@ library amplify_integration_test.cognito_identity_provider.model.feedback_value_ import 'package:smithy/smithy.dart' as _i1; class FeedbackValueType extends _i1.SmithyEnum { - const FeedbackValueType._( - super.index, - super.name, - super.value, - ); + const FeedbackValueType._(super.index, super.name, super.value); const FeedbackValueType._sdkUnknown(super.value) : super.sdkUnknown(); - static const invalid = FeedbackValueType._( - 0, - 'INVALID', - 'Invalid', - ); + static const invalid = FeedbackValueType._(0, 'INVALID', 'Invalid'); - static const valid = FeedbackValueType._( - 1, - 'VALID', - 'Valid', - ); + static const valid = FeedbackValueType._(1, 'VALID', 'Valid'); /// All values of [FeedbackValueType]. static const values = [ @@ -38,12 +26,9 @@ class FeedbackValueType extends _i1.SmithyEnum { values: values, sdkUnknown: FeedbackValueType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart index 99a59be492..a91183989f 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.dart @@ -22,9 +22,9 @@ abstract class InternalErrorException } /// This exception is thrown when Amazon Cognito encounters an internal error. - factory InternalErrorException.build( - [void Function(InternalErrorExceptionBuilder) updates]) = - _$InternalErrorException; + factory InternalErrorException.build([ + void Function(InternalErrorExceptionBuilder) updates, + ]) = _$InternalErrorException; const InternalErrorException._(); @@ -32,11 +32,10 @@ abstract class InternalErrorException factory InternalErrorException.fromResponse( InternalErrorException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.statusCode = response.statusCode; - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.statusCode = response.statusCode; + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [InternalErrorExceptionAwsJson11Serializer()]; @@ -46,9 +45,9 @@ abstract class InternalErrorException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -64,10 +63,7 @@ abstract class InternalErrorException @override String toString() { final helper = newBuiltValueToStringHelper('InternalErrorException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -75,20 +71,17 @@ abstract class InternalErrorException class InternalErrorExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InternalErrorExceptionAwsJson11Serializer() - : super('InternalErrorException'); + : super('InternalErrorException'); @override Iterable get types => const [ - InternalErrorException, - _$InternalErrorException, - ]; + InternalErrorException, + _$InternalErrorException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InternalErrorException deserialize( Serializers serializers, @@ -106,10 +99,12 @@ class InternalErrorExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -127,10 +122,9 @@ class InternalErrorExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart index 286b7810d2..c9487b9ee1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/internal_error_exception.g.dart @@ -14,17 +14,17 @@ class _$InternalErrorException extends InternalErrorException { @override final Map? headers; - factory _$InternalErrorException( - [void Function(InternalErrorExceptionBuilder)? updates]) => - (new InternalErrorExceptionBuilder()..update(updates))._build(); + factory _$InternalErrorException([ + void Function(InternalErrorExceptionBuilder)? updates, + ]) => (new InternalErrorExceptionBuilder()..update(updates))._build(); _$InternalErrorException._({this.message, this.statusCode, this.headers}) - : super._(); + : super._(); @override InternalErrorException rebuild( - void Function(InternalErrorExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InternalErrorExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InternalErrorExceptionBuilder toBuilder() => @@ -89,9 +89,13 @@ class InternalErrorExceptionBuilder InternalErrorException build() => _build(); _$InternalErrorException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InternalErrorException._( - message: message, statusCode: statusCode, headers: headers); + message: message, + statusCode: statusCode, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart index 0f8e12afac..7f3a7d68f2 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.dart @@ -22,9 +22,9 @@ abstract class InvalidParameterException } /// This exception is thrown when the Amazon Cognito service encounters an invalid parameter. - factory InvalidParameterException.build( - [void Function(InvalidParameterExceptionBuilder) updates]) = - _$InvalidParameterException; + factory InvalidParameterException.build([ + void Function(InvalidParameterExceptionBuilder) updates, + ]) = _$InvalidParameterException; const InvalidParameterException._(); @@ -32,22 +32,21 @@ abstract class InvalidParameterException factory InvalidParameterException.fromResponse( InvalidParameterException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [InvalidParameterExceptionAwsJson11Serializer()]; + serializers = [InvalidParameterExceptionAwsJson11Serializer()]; /// The message returned when the Amazon Cognito service throws an invalid parameter exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -63,10 +62,7 @@ abstract class InvalidParameterException @override String toString() { final helper = newBuiltValueToStringHelper('InvalidParameterException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -74,20 +70,17 @@ abstract class InvalidParameterException class InvalidParameterExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const InvalidParameterExceptionAwsJson11Serializer() - : super('InvalidParameterException'); + : super('InvalidParameterException'); @override Iterable get types => const [ - InvalidParameterException, - _$InvalidParameterException, - ]; + InvalidParameterException, + _$InvalidParameterException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override InvalidParameterException deserialize( Serializers serializers, @@ -105,10 +98,12 @@ class InvalidParameterExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -126,10 +121,9 @@ class InvalidParameterExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart index 210aa914f2..3dfadce51b 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/invalid_parameter_exception.g.dart @@ -12,16 +12,16 @@ class _$InvalidParameterException extends InvalidParameterException { @override final Map? headers; - factory _$InvalidParameterException( - [void Function(InvalidParameterExceptionBuilder)? updates]) => - (new InvalidParameterExceptionBuilder()..update(updates))._build(); + factory _$InvalidParameterException([ + void Function(InvalidParameterExceptionBuilder)? updates, + ]) => (new InvalidParameterExceptionBuilder()..update(updates))._build(); _$InvalidParameterException._({this.message, this.headers}) : super._(); @override InvalidParameterException rebuild( - void Function(InvalidParameterExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(InvalidParameterExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override InvalidParameterExceptionBuilder toBuilder() => @@ -82,7 +82,8 @@ class InvalidParameterExceptionBuilder InvalidParameterException build() => _build(); _$InvalidParameterException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$InvalidParameterException._(message: message, headers: headers); replace(_$result); return _$result; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart index 738476feff..5ca685e0d7 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.dart @@ -22,9 +22,9 @@ abstract class NotAuthorizedException } /// This exception is thrown when a user isn't authorized. - factory NotAuthorizedException.build( - [void Function(NotAuthorizedExceptionBuilder) updates]) = - _$NotAuthorizedException; + factory NotAuthorizedException.build([ + void Function(NotAuthorizedExceptionBuilder) updates, + ]) = _$NotAuthorizedException; const NotAuthorizedException._(); @@ -32,10 +32,9 @@ abstract class NotAuthorizedException factory NotAuthorizedException.fromResponse( NotAuthorizedException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [NotAuthorizedExceptionAwsJson11Serializer()]; @@ -45,9 +44,9 @@ abstract class NotAuthorizedException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -63,10 +62,7 @@ abstract class NotAuthorizedException @override String toString() { final helper = newBuiltValueToStringHelper('NotAuthorizedException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -74,20 +70,17 @@ abstract class NotAuthorizedException class NotAuthorizedExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const NotAuthorizedExceptionAwsJson11Serializer() - : super('NotAuthorizedException'); + : super('NotAuthorizedException'); @override Iterable get types => const [ - NotAuthorizedException, - _$NotAuthorizedException, - ]; + NotAuthorizedException, + _$NotAuthorizedException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override NotAuthorizedException deserialize( Serializers serializers, @@ -105,10 +98,12 @@ class NotAuthorizedExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -126,10 +121,9 @@ class NotAuthorizedExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart index 8e506ee78b..1592956020 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/not_authorized_exception.g.dart @@ -12,16 +12,16 @@ class _$NotAuthorizedException extends NotAuthorizedException { @override final Map? headers; - factory _$NotAuthorizedException( - [void Function(NotAuthorizedExceptionBuilder)? updates]) => - (new NotAuthorizedExceptionBuilder()..update(updates))._build(); + factory _$NotAuthorizedException([ + void Function(NotAuthorizedExceptionBuilder)? updates, + ]) => (new NotAuthorizedExceptionBuilder()..update(updates))._build(); _$NotAuthorizedException._({this.message, this.headers}) : super._(); @override NotAuthorizedException rebuild( - void Function(NotAuthorizedExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(NotAuthorizedExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override NotAuthorizedExceptionBuilder toBuilder() => @@ -81,7 +81,8 @@ class NotAuthorizedExceptionBuilder NotAuthorizedException build() => _build(); _$NotAuthorizedException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$NotAuthorizedException._(message: message, headers: headers); replace(_$result); return _$result; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart index bd3324c354..eb9ca78868 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.dart @@ -22,9 +22,9 @@ abstract class ResourceNotFoundException } /// This exception is thrown when the Amazon Cognito service can't find the requested resource. - factory ResourceNotFoundException.build( - [void Function(ResourceNotFoundExceptionBuilder) updates]) = - _$ResourceNotFoundException; + factory ResourceNotFoundException.build([ + void Function(ResourceNotFoundExceptionBuilder) updates, + ]) = _$ResourceNotFoundException; const ResourceNotFoundException._(); @@ -32,22 +32,21 @@ abstract class ResourceNotFoundException factory ResourceNotFoundException.fromResponse( ResourceNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; + serializers = [ResourceNotFoundExceptionAwsJson11Serializer()]; /// The message returned when the Amazon Cognito service returns a resource not found exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -63,10 +62,7 @@ abstract class ResourceNotFoundException @override String toString() { final helper = newBuiltValueToStringHelper('ResourceNotFoundException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -74,20 +70,17 @@ abstract class ResourceNotFoundException class ResourceNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const ResourceNotFoundExceptionAwsJson11Serializer() - : super('ResourceNotFoundException'); + : super('ResourceNotFoundException'); @override Iterable get types => const [ - ResourceNotFoundException, - _$ResourceNotFoundException, - ]; + ResourceNotFoundException, + _$ResourceNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override ResourceNotFoundException deserialize( Serializers serializers, @@ -105,10 +98,12 @@ class ResourceNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -126,10 +121,9 @@ class ResourceNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart index 5e76a50207..7b92fb4f65 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/resource_not_found_exception.g.dart @@ -12,16 +12,16 @@ class _$ResourceNotFoundException extends ResourceNotFoundException { @override final Map? headers; - factory _$ResourceNotFoundException( - [void Function(ResourceNotFoundExceptionBuilder)? updates]) => - (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); + factory _$ResourceNotFoundException([ + void Function(ResourceNotFoundExceptionBuilder)? updates, + ]) => (new ResourceNotFoundExceptionBuilder()..update(updates))._build(); _$ResourceNotFoundException._({this.message, this.headers}) : super._(); @override ResourceNotFoundException rebuild( - void Function(ResourceNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(ResourceNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override ResourceNotFoundExceptionBuilder toBuilder() => @@ -82,7 +82,8 @@ class ResourceNotFoundExceptionBuilder ResourceNotFoundException build() => _build(); _$ResourceNotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$ResourceNotFoundException._(message: message, headers: headers); replace(_$result); return _$result; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_decision_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_decision_type.dart index 6bea36cb9a..37abdd0936 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_decision_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_decision_type.dart @@ -6,11 +6,7 @@ library amplify_integration_test.cognito_identity_provider.model.risk_decision_t import 'package:smithy/smithy.dart' as _i1; class RiskDecisionType extends _i1.SmithyEnum { - const RiskDecisionType._( - super.index, - super.name, - super.value, - ); + const RiskDecisionType._(super.index, super.name, super.value); const RiskDecisionType._sdkUnknown(super.value) : super.sdkUnknown(); @@ -20,17 +16,9 @@ class RiskDecisionType extends _i1.SmithyEnum { 'AccountTakeover', ); - static const block = RiskDecisionType._( - 1, - 'Block', - 'Block', - ); + static const block = RiskDecisionType._(1, 'Block', 'Block'); - static const noRisk = RiskDecisionType._( - 2, - 'NoRisk', - 'NoRisk', - ); + static const noRisk = RiskDecisionType._(2, 'NoRisk', 'NoRisk'); /// All values of [RiskDecisionType]. static const values = [ @@ -45,12 +33,9 @@ class RiskDecisionType extends _i1.SmithyEnum { values: values, sdkUnknown: RiskDecisionType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_level_type.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_level_type.dart index 6b42bf9cba..46fbb5d6a1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_level_type.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/risk_level_type.dart @@ -6,31 +6,15 @@ library amplify_integration_test.cognito_identity_provider.model.risk_level_type import 'package:smithy/smithy.dart' as _i1; class RiskLevelType extends _i1.SmithyEnum { - const RiskLevelType._( - super.index, - super.name, - super.value, - ); + const RiskLevelType._(super.index, super.name, super.value); const RiskLevelType._sdkUnknown(super.value) : super.sdkUnknown(); - static const high = RiskLevelType._( - 0, - 'High', - 'High', - ); + static const high = RiskLevelType._(0, 'High', 'High'); - static const low = RiskLevelType._( - 1, - 'Low', - 'Low', - ); + static const low = RiskLevelType._(1, 'Low', 'Low'); - static const medium = RiskLevelType._( - 2, - 'Medium', - 'Medium', - ); + static const medium = RiskLevelType._(2, 'Medium', 'Medium'); /// All values of [RiskLevelType]. static const values = [ @@ -45,12 +29,9 @@ class RiskLevelType extends _i1.SmithyEnum { values: values, sdkUnknown: RiskLevelType._sdkUnknown, supportedProtocols: [ - _i1.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) + _i1.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), ], - ) + ), ]; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart index 6eb3bd4a75..00bcbf73f1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.dart @@ -22,9 +22,9 @@ abstract class TooManyRequestsException } /// This exception is thrown when the user has made too many requests for a given operation. - factory TooManyRequestsException.build( - [void Function(TooManyRequestsExceptionBuilder) updates]) = - _$TooManyRequestsException; + factory TooManyRequestsException.build([ + void Function(TooManyRequestsExceptionBuilder) updates, + ]) = _$TooManyRequestsException; const TooManyRequestsException._(); @@ -32,22 +32,21 @@ abstract class TooManyRequestsException factory TooManyRequestsException.fromResponse( TooManyRequestsException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [TooManyRequestsExceptionAwsJson11Serializer()]; + serializers = [TooManyRequestsExceptionAwsJson11Serializer()]; /// The message returned when the Amazon Cognito service returns a too many requests exception. @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -63,10 +62,7 @@ abstract class TooManyRequestsException @override String toString() { final helper = newBuiltValueToStringHelper('TooManyRequestsException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -74,20 +70,17 @@ abstract class TooManyRequestsException class TooManyRequestsExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const TooManyRequestsExceptionAwsJson11Serializer() - : super('TooManyRequestsException'); + : super('TooManyRequestsException'); @override Iterable get types => const [ - TooManyRequestsException, - _$TooManyRequestsException, - ]; + TooManyRequestsException, + _$TooManyRequestsException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override TooManyRequestsException deserialize( Serializers serializers, @@ -105,10 +98,12 @@ class TooManyRequestsExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -126,10 +121,9 @@ class TooManyRequestsExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart index b6f2e89d8e..c101e1193d 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/too_many_requests_exception.g.dart @@ -12,16 +12,16 @@ class _$TooManyRequestsException extends TooManyRequestsException { @override final Map? headers; - factory _$TooManyRequestsException( - [void Function(TooManyRequestsExceptionBuilder)? updates]) => - (new TooManyRequestsExceptionBuilder()..update(updates))._build(); + factory _$TooManyRequestsException([ + void Function(TooManyRequestsExceptionBuilder)? updates, + ]) => (new TooManyRequestsExceptionBuilder()..update(updates))._build(); _$TooManyRequestsException._({this.message, this.headers}) : super._(); @override TooManyRequestsException rebuild( - void Function(TooManyRequestsExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(TooManyRequestsExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override TooManyRequestsExceptionBuilder toBuilder() => @@ -82,7 +82,8 @@ class TooManyRequestsExceptionBuilder TooManyRequestsException build() => _build(); _$TooManyRequestsException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$TooManyRequestsException._(message: message, headers: headers); replace(_$result); return _$result; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart index 75ce9d5f6c..a4e927282a 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.dart @@ -22,9 +22,9 @@ abstract class UserNotFoundException } /// This exception is thrown when a user isn't found. - factory UserNotFoundException.build( - [void Function(UserNotFoundExceptionBuilder) updates]) = - _$UserNotFoundException; + factory UserNotFoundException.build([ + void Function(UserNotFoundExceptionBuilder) updates, + ]) = _$UserNotFoundException; const UserNotFoundException._(); @@ -32,13 +32,12 @@ abstract class UserNotFoundException factory UserNotFoundException.fromResponse( UserNotFoundException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> serializers = [ - UserNotFoundExceptionAwsJson11Serializer() + UserNotFoundExceptionAwsJson11Serializer(), ]; /// The message returned when a user isn't found. @@ -46,9 +45,9 @@ abstract class UserNotFoundException String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -64,10 +63,7 @@ abstract class UserNotFoundException @override String toString() { final helper = newBuiltValueToStringHelper('UserNotFoundException') - ..add( - 'message', - message, - ); + ..add('message', message); return helper.toString(); } } @@ -75,20 +71,17 @@ abstract class UserNotFoundException class UserNotFoundExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UserNotFoundExceptionAwsJson11Serializer() - : super('UserNotFoundException'); + : super('UserNotFoundException'); @override Iterable get types => const [ - UserNotFoundException, - _$UserNotFoundException, - ]; + UserNotFoundException, + _$UserNotFoundException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UserNotFoundException deserialize( Serializers serializers, @@ -106,10 +99,12 @@ class UserNotFoundExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -127,10 +122,9 @@ class UserNotFoundExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart index 0a612417cb..033b8017e8 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_not_found_exception.g.dart @@ -12,16 +12,16 @@ class _$UserNotFoundException extends UserNotFoundException { @override final Map? headers; - factory _$UserNotFoundException( - [void Function(UserNotFoundExceptionBuilder)? updates]) => - (new UserNotFoundExceptionBuilder()..update(updates))._build(); + factory _$UserNotFoundException([ + void Function(UserNotFoundExceptionBuilder)? updates, + ]) => (new UserNotFoundExceptionBuilder()..update(updates))._build(); _$UserNotFoundException._({this.message, this.headers}) : super._(); @override UserNotFoundException rebuild( - void Function(UserNotFoundExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UserNotFoundExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UserNotFoundExceptionBuilder toBuilder() => @@ -81,7 +81,8 @@ class UserNotFoundExceptionBuilder UserNotFoundException build() => _build(); _$UserNotFoundException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UserNotFoundException._(message: message, headers: headers); replace(_$result); return _$result; diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.dart index 1a40a6806a..c5360fa3b1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.dart @@ -12,11 +12,12 @@ part 'user_pool_add_on_not_enabled_exception.g.dart'; /// This exception is thrown when user pool add-ons aren't enabled. abstract class UserPoolAddOnNotEnabledException - with - _i1.AWSEquatable + with _i1.AWSEquatable implements - Built, + Built< + UserPoolAddOnNotEnabledException, + UserPoolAddOnNotEnabledExceptionBuilder + >, _i2.SmithyHttpException { /// This exception is thrown when user pool add-ons aren't enabled. factory UserPoolAddOnNotEnabledException({String? message}) { @@ -24,9 +25,9 @@ abstract class UserPoolAddOnNotEnabledException } /// This exception is thrown when user pool add-ons aren't enabled. - factory UserPoolAddOnNotEnabledException.build( - [void Function(UserPoolAddOnNotEnabledExceptionBuilder) updates]) = - _$UserPoolAddOnNotEnabledException; + factory UserPoolAddOnNotEnabledException.build([ + void Function(UserPoolAddOnNotEnabledExceptionBuilder) updates, + ]) = _$UserPoolAddOnNotEnabledException; const UserPoolAddOnNotEnabledException._(); @@ -34,21 +35,20 @@ abstract class UserPoolAddOnNotEnabledException factory UserPoolAddOnNotEnabledException.fromResponse( UserPoolAddOnNotEnabledException payload, _i1.AWSBaseHttpResponse response, - ) => - payload.rebuild((b) { - b.headers = response.headers; - }); + ) => payload.rebuild((b) { + b.headers = response.headers; + }); static const List<_i2.SmithySerializer> - serializers = [UserPoolAddOnNotEnabledExceptionAwsJson11Serializer()]; + serializers = [UserPoolAddOnNotEnabledExceptionAwsJson11Serializer()]; @override String? get message; @override _i2.ShapeId get shapeId => const _i2.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserPoolAddOnNotEnabledException', - ); + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserPoolAddOnNotEnabledException', + ); @override _i2.RetryConfig? get retryConfig => null; @override @@ -63,12 +63,9 @@ abstract class UserPoolAddOnNotEnabledException List get props => [message]; @override String toString() { - final helper = - newBuiltValueToStringHelper('UserPoolAddOnNotEnabledException') - ..add( - 'message', - message, - ); + final helper = newBuiltValueToStringHelper( + 'UserPoolAddOnNotEnabledException', + )..add('message', message); return helper.toString(); } } @@ -76,20 +73,17 @@ abstract class UserPoolAddOnNotEnabledException class UserPoolAddOnNotEnabledExceptionAwsJson11Serializer extends _i2.StructuredSmithySerializer { const UserPoolAddOnNotEnabledExceptionAwsJson11Serializer() - : super('UserPoolAddOnNotEnabledException'); + : super('UserPoolAddOnNotEnabledException'); @override Iterable get types => const [ - UserPoolAddOnNotEnabledException, - _$UserPoolAddOnNotEnabledException, - ]; + UserPoolAddOnNotEnabledException, + _$UserPoolAddOnNotEnabledException, + ]; @override Iterable<_i2.ShapeId> get supportedProtocols => const [ - _i2.ShapeId( - namespace: 'aws.protocols', - shape: 'awsJson1_1', - ) - ]; + _i2.ShapeId(namespace: 'aws.protocols', shape: 'awsJson1_1'), + ]; @override UserPoolAddOnNotEnabledException deserialize( Serializers serializers, @@ -107,10 +101,12 @@ class UserPoolAddOnNotEnabledExceptionAwsJson11Serializer } switch (key) { case 'message': - result.message = (serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String); + result.message = + (serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String); } } @@ -128,10 +124,9 @@ class UserPoolAddOnNotEnabledExceptionAwsJson11Serializer if (message != null) { result$ ..add('message') - ..add(serializers.serialize( - message, - specifiedType: const FullType(String), - )); + ..add( + serializers.serialize(message, specifiedType: const FullType(String)), + ); } return result$; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.g.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.g.dart index 9857f1dc73..8798c7ea25 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.g.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/model/user_pool_add_on_not_enabled_exception.g.dart @@ -13,17 +13,18 @@ class _$UserPoolAddOnNotEnabledException @override final Map? headers; - factory _$UserPoolAddOnNotEnabledException( - [void Function(UserPoolAddOnNotEnabledExceptionBuilder)? updates]) => + factory _$UserPoolAddOnNotEnabledException([ + void Function(UserPoolAddOnNotEnabledExceptionBuilder)? updates, + ]) => (new UserPoolAddOnNotEnabledExceptionBuilder()..update(updates))._build(); _$UserPoolAddOnNotEnabledException._({this.message, this.headers}) - : super._(); + : super._(); @override UserPoolAddOnNotEnabledException rebuild( - void Function(UserPoolAddOnNotEnabledExceptionBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(UserPoolAddOnNotEnabledExceptionBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override UserPoolAddOnNotEnabledExceptionBuilder toBuilder() => @@ -47,8 +48,10 @@ class _$UserPoolAddOnNotEnabledException class UserPoolAddOnNotEnabledExceptionBuilder implements - Builder { + Builder< + UserPoolAddOnNotEnabledException, + UserPoolAddOnNotEnabledExceptionBuilder + > { _$UserPoolAddOnNotEnabledException? _$v; String? _message; @@ -86,9 +89,12 @@ class UserPoolAddOnNotEnabledExceptionBuilder UserPoolAddOnNotEnabledException build() => _build(); _$UserPoolAddOnNotEnabledException _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$UserPoolAddOnNotEnabledException._( - message: message, headers: headers); + message: message, + headers: headers, + ); replace(_$result); return _$result; } diff --git a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/operation/admin_list_user_auth_events_operation.dart b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/operation/admin_list_user_auth_events_operation.dart index 14e767ae61..1e02b3eed1 100644 --- a/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/operation/admin_list_user_auth_events_operation.dart +++ b/packages/test/amplify_integration_test/lib/src/sdk/src/cognito_identity_provider/operation/admin_list_user_auth_events_operation.dart @@ -32,14 +32,17 @@ import 'package:smithy_aws/smithy_aws.dart' as _i4; /// * [Signing Amazon Web Services API Requests](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html) /// /// * [Using the Amazon Cognito user pools API and user pool endpoints](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html) -class AdminListUserAuthEventsOperation extends _i1.PaginatedHttpOperation< - AdminListUserAuthEventsRequest, - AdminListUserAuthEventsRequest, - AdminListUserAuthEventsResponse, - AdminListUserAuthEventsResponse, - String, - int, - _i2.BuiltList> { +class AdminListUserAuthEventsOperation + extends + _i1.PaginatedHttpOperation< + AdminListUserAuthEventsRequest, + AdminListUserAuthEventsRequest, + AdminListUserAuthEventsResponse, + AdminListUserAuthEventsResponse, + String, + int, + _i2.BuiltList + > { /// A history of user activity and any risks detected as part of Amazon Cognito advanced security. /// /// Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. @@ -56,23 +59,27 @@ class AdminListUserAuthEventsOperation extends _i1.PaginatedHttpOperation< const _i3.AWSCredentialsProvider.defaultChain(), List<_i1.HttpRequestInterceptor> requestInterceptors = const [], List<_i1.HttpResponseInterceptor> responseInterceptors = const [], - }) : _region = region, - _baseUri = baseUri, - _credentialsProvider = credentialsProvider, - _requestInterceptors = requestInterceptors, - _responseInterceptors = responseInterceptors; + }) : _region = region, + _baseUri = baseUri, + _credentialsProvider = credentialsProvider, + _requestInterceptors = requestInterceptors, + _responseInterceptors = responseInterceptors; @override late final List< - _i1.HttpProtocol< - AdminListUserAuthEventsRequest, - AdminListUserAuthEventsRequest, - AdminListUserAuthEventsResponse, - AdminListUserAuthEventsResponse>> protocols = [ + _i1.HttpProtocol< + AdminListUserAuthEventsRequest, + AdminListUserAuthEventsRequest, + AdminListUserAuthEventsResponse, + AdminListUserAuthEventsResponse + > + > + protocols = [ _i4.AwsJson1_1Protocol( serializers: serializers, builderFactories: builderFactories, - requestInterceptors: <_i1.HttpRequestInterceptor>[ + requestInterceptors: + <_i1.HttpRequestInterceptor>[ const _i1.WithHost(), const _i1.WithContentLength(), const _i1.WithHeader( @@ -91,7 +98,7 @@ class AdminListUserAuthEventsOperation extends _i1.PaginatedHttpOperation< _requestInterceptors, responseInterceptors: <_i1.HttpResponseInterceptor>[] + _responseInterceptors, - ) + ), ]; late final _i4.AWSEndpoint _awsEndpoint = endpointResolver.resolve( @@ -121,84 +128,82 @@ class AdminListUserAuthEventsOperation extends _i1.PaginatedHttpOperation< AdminListUserAuthEventsResponse buildOutput( AdminListUserAuthEventsResponse payload, _i5.AWSBaseHttpResponse response, - ) => - AdminListUserAuthEventsResponse.fromResponse( - payload, - response, - ); + ) => AdminListUserAuthEventsResponse.fromResponse(payload, response); @override List<_i1.SmithyError> get errorTypes => const [ - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InternalErrorException', - ), - _i1.ErrorKind.server, - InternalErrorException, - builder: InternalErrorException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'InvalidParameterException', - ), - _i1.ErrorKind.client, - InvalidParameterException, - statusCode: 400, - builder: InvalidParameterException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'NotAuthorizedException', - ), - _i1.ErrorKind.client, - NotAuthorizedException, - statusCode: 403, - builder: NotAuthorizedException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'ResourceNotFoundException', - ), - _i1.ErrorKind.client, - ResourceNotFoundException, - statusCode: 404, - builder: ResourceNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'TooManyRequestsException', - ), - _i1.ErrorKind.client, - TooManyRequestsException, - statusCode: 429, - builder: TooManyRequestsException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserNotFoundException', - ), - _i1.ErrorKind.client, - UserNotFoundException, - statusCode: 404, - builder: UserNotFoundException.fromResponse, - ), - _i1.SmithyError( - _i1.ShapeId( - namespace: 'com.amazonaws.cognitoidentityprovider', - shape: 'UserPoolAddOnNotEnabledException', - ), - _i1.ErrorKind.client, - UserPoolAddOnNotEnabledException, - statusCode: 400, - builder: UserPoolAddOnNotEnabledException.fromResponse, - ), - ]; + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InternalErrorException', + ), + _i1.ErrorKind.server, + InternalErrorException, + builder: InternalErrorException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'InvalidParameterException', + ), + _i1.ErrorKind.client, + InvalidParameterException, + statusCode: 400, + builder: InvalidParameterException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'NotAuthorizedException', + ), + _i1.ErrorKind.client, + NotAuthorizedException, + statusCode: 403, + builder: NotAuthorizedException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'ResourceNotFoundException', + ), + _i1.ErrorKind.client, + ResourceNotFoundException, + statusCode: 404, + builder: ResourceNotFoundException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'TooManyRequestsException', + ), + _i1.ErrorKind.client, + TooManyRequestsException, + statusCode: 429, + builder: TooManyRequestsException.fromResponse, + ), + _i1.SmithyError( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserNotFoundException', + ), + _i1.ErrorKind.client, + UserNotFoundException, + statusCode: 404, + builder: UserNotFoundException.fromResponse, + ), + _i1.SmithyError< + UserPoolAddOnNotEnabledException, + UserPoolAddOnNotEnabledException + >( + _i1.ShapeId( + namespace: 'com.amazonaws.cognitoidentityprovider', + shape: 'UserPoolAddOnNotEnabledException', + ), + _i1.ErrorKind.client, + UserPoolAddOnNotEnabledException, + statusCode: 400, + builder: UserPoolAddOnNotEnabledException.fromResponse, + ), + ]; @override String get runtimeTypeName => 'AdminListUserAuthEvents'; @override @@ -214,11 +219,7 @@ class AdminListUserAuthEventsOperation extends _i1.PaginatedHttpOperation< _i1.ShapeId? useProtocol, }) { return _i6.runZoned( - () => super.run( - input, - client: client, - useProtocol: useProtocol, - ), + () => super.run(input, client: client, useProtocol: useProtocol), zoneValues: { ...?_awsEndpoint.credentialScope?.zoneValues, ...{_i5.AWSHeaders.sdkInvocationId: _i5.uuid(secure: true)}, @@ -230,18 +231,17 @@ class AdminListUserAuthEventsOperation extends _i1.PaginatedHttpOperation< String? getToken(AdminListUserAuthEventsResponse output) => output.nextToken; @override _i2.BuiltList getItems( - AdminListUserAuthEventsResponse output) => - output.authEvents ?? _i2.BuiltList(); + AdminListUserAuthEventsResponse output, + ) => output.authEvents ?? _i2.BuiltList(); @override AdminListUserAuthEventsRequest rebuildInput( AdminListUserAuthEventsRequest input, String token, int? pageSize, - ) => - input.rebuild((b) { - b.nextToken = token; - if (pageSize != null) { - b.maxResults = pageSize; - } - }); + ) => input.rebuild((b) { + b.nextToken = token; + if (pageSize != null) { + b.maxResults = pageSize; + } + }); } diff --git a/packages/test/amplify_integration_test/lib/src/stubs/amplify_auth_cognito_stub.dart b/packages/test/amplify_integration_test/lib/src/stubs/amplify_auth_cognito_stub.dart index c28eb95e6a..836c91e3f7 100644 --- a/packages/test/amplify_integration_test/lib/src/stubs/amplify_auth_cognito_stub.dart +++ b/packages/test/amplify_integration_test/lib/src/stubs/amplify_auth_cognito_stub.dart @@ -13,9 +13,7 @@ const usernameExistsException = UsernameExistsException( 'A user with this username already exists.', ); -const userNotFoundException = UserNotFoundException( - 'The user does not exist.', -); +const userNotFoundException = UserNotFoundException('The user does not exist.'); const codeMismatchException = CodeMismatchException( 'Incorrect code. Please try again.', @@ -27,8 +25,8 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface AmplifyAuthCognitoStub({ this.delay = const Duration(milliseconds: 10), List users = const [], - }) : _users = {for (final user in users) user.username: user}, - super(); + }) : _users = {for (final user in users) user.username: user}, + super(); /// A delay added to mock API calls final Duration delay; @@ -46,9 +44,10 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface AuthCodeDeliveryDetails _codeDeliveryDetails(MockCognitoUser user) => AuthCodeDeliveryDetails( - deliveryMedium: user.phoneNumber != null - ? DeliveryMedium.phone - : DeliveryMedium.email, + deliveryMedium: + user.phoneNumber != null + ? DeliveryMedium.phone + : DeliveryMedium.email, destination: user.email ?? user.phoneNumber ?? 'S****@g***.com', ); @@ -152,9 +151,7 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface } @override - Future signOut({ - SignOutOptions? options, - }) async { + Future signOut({SignOutOptions? options}) async { _currentUser = null; return const SignOutResult(); } @@ -207,9 +204,7 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface _currentUser = updatedUser; return const CognitoResetPasswordResult( isPasswordReset: true, - nextStep: ResetPasswordStep( - updateStep: AuthResetPasswordStep.done, - ), + nextStep: ResetPasswordStep(updateStep: AuthResetPasswordStep.done), ); } @@ -250,9 +245,7 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface } @override - Future getCurrentUser({ - GetCurrentUserOptions? options, - }) async { + Future getCurrentUser({GetCurrentUserOptions? options}) async { if (_currentUser == null) { throw const SignedOutException('There is no user signed in.'); } else { @@ -306,9 +299,7 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface AuthProvider? provider, SignInWithWebUIOptions? options, }) async { - throw const InvalidStateException( - 'social sign in is not implemented.', - ); + throw const InvalidStateException('social sign in is not implemented.'); } @override @@ -331,7 +322,7 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface @override Future> - updateUserAttributes({ + updateUserAttributes({ required List attributes, UpdateUserAttributesOptions? options, }) async { @@ -349,7 +340,7 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface @override Future - sendUserAttributeVerificationCode({ + sendUserAttributeVerificationCode({ required AuthUserAttributeKey userAttributeKey, SendUserAttributeVerificationCodeOptions? options, }) async { @@ -363,37 +354,27 @@ class AmplifyAuthCognitoStub extends AuthPluginInterface @override Future rememberDevice() async { - throw UnimplementedError( - 'rememberDevice is not implemented.', - ); + throw UnimplementedError('rememberDevice is not implemented.'); } @override Future fetchCurrentDevice() async { - throw UnimplementedError( - 'fetchCurrentDevice is not implemented.', - ); + throw UnimplementedError('fetchCurrentDevice is not implemented.'); } @override Future forgetDevice([AuthDevice? device]) async { - throw UnimplementedError( - 'forgetDevice is not implemented.', - ); + throw UnimplementedError('forgetDevice is not implemented.'); } @override Future> fetchDevices() async { - throw UnimplementedError( - 'fetchDevices is not implemented.', - ); + throw UnimplementedError('fetchDevices is not implemented.'); } @override Future deleteUser() async { - throw UnimplementedError( - 'deleteUser is not implemented.', - ); + throw UnimplementedError('deleteUser is not implemented.'); } } @@ -431,9 +412,7 @@ class MockCognitoUser { claims: JsonWebClaims( subject: sub, expiration: DateTime.now().add(const Duration(minutes: 60)), - customClaims: { - 'username': username, - }, + customClaims: {'username': username}, ), signature: const [], ); @@ -442,9 +421,7 @@ class MockCognitoUser { header: const JsonWebHeader(algorithm: Algorithm.hmacSha256), claims: JsonWebClaims( subject: sub, - customClaims: { - 'cognito:username': username, - }, + customClaims: {'cognito:username': username}, ), signature: const [], ); diff --git a/packages/test/amplify_integration_test/lib/src/stubs/amplify_stub.dart b/packages/test/amplify_integration_test/lib/src/stubs/amplify_stub.dart index 4a8c717af8..942973a9fd 100644 --- a/packages/test/amplify_integration_test/lib/src/stubs/amplify_stub.dart +++ b/packages/test/amplify_integration_test/lib/src/stubs/amplify_stub.dart @@ -59,9 +59,7 @@ class AmplifyStub extends AmplifyClass { try { jsonDecode(configuration); } on FormatException { - throw Exception( - 'The provided configuration is not a valid json.', - ); + throw Exception('The provided configuration is not a valid json.'); } _isConfigured = true; diff --git a/packages/test/amplify_integration_test/pubspec.yaml b/packages/test/amplify_integration_test/pubspec.yaml index cb5c58e048..3fffa68ce6 100644 --- a/packages/test/amplify_integration_test/pubspec.yaml +++ b/packages/test/amplify_integration_test/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/aws-amplify/amplify-flutter publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_auth_cognito_dart: any @@ -24,6 +24,6 @@ dependencies: test: ^1.22.1 dev_dependencies: - amplify_lints: ^2.0.0 + amplify_lints: ^3.1.0 build_runner: ^2.4.9 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 diff --git a/packages/test/amplify_test/lib/amplify_test.dart b/packages/test/amplify_test/lib/amplify_test.dart index aed6373013..b659311ba3 100644 --- a/packages/test/amplify_test/lib/amplify_test.dart +++ b/packages/test/amplify_test/lib/amplify_test.dart @@ -15,7 +15,7 @@ /// cross-reference other published packages in this repo which would run the risk /// of causing circular dependencies while publishing (for the same reason it cannot /// be used in `amplify_core`). -library amplify_test; +library; /// Common Utils export 'src/json.dart'; diff --git a/packages/test/amplify_test/lib/test_models/Address.dart b/packages/test/amplify_test/lib/test_models/Address.dart index 9bcfbea6c9..80cb3098f4 100644 --- a/packages/test/amplify_test/lib/test_models/Address.dart +++ b/packages/test/amplify_test/lib/test_models/Address.dart @@ -35,11 +35,15 @@ class Address { return _line1!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -52,11 +56,15 @@ class Address { return _city!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -65,11 +73,15 @@ class Address { return _state!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -78,38 +90,44 @@ class Address { return _postalCode!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } - const Address._internal( - {required line1, - line2, - required city, - required state, - required postalCode}) - : _line1 = line1, - _line2 = line2, - _city = city, - _state = state, - _postalCode = postalCode; - - factory Address( - {required String line1, - String? line2, - required String city, - required String state, - required String postalCode}) { + const Address._internal({ + required line1, + line2, + required city, + required state, + required postalCode, + }) : _line1 = line1, + _line2 = line2, + _city = city, + _state = state, + _postalCode = postalCode; + + factory Address({ + required String line1, + String? line2, + required String city, + required String state, + required String postalCode, + }) { return Address._internal( - line1: line1, - line2: line2, - city: city, - state: state, - postalCode: postalCode); + line1: line1, + line2: line2, + city: city, + state: state, + postalCode: postalCode, + ); } bool equals(Object other) { @@ -145,95 +163,115 @@ class Address { return buffer.toString(); } - Address copyWith( - {String? line1, - String? line2, - String? city, - String? state, - String? postalCode}) { + Address copyWith({ + String? line1, + String? line2, + String? city, + String? state, + String? postalCode, + }) { return Address._internal( - line1: line1 ?? this.line1, - line2: line2 ?? this.line2, - city: city ?? this.city, - state: state ?? this.state, - postalCode: postalCode ?? this.postalCode); + line1: line1 ?? this.line1, + line2: line2 ?? this.line2, + city: city ?? this.city, + state: state ?? this.state, + postalCode: postalCode ?? this.postalCode, + ); } - Address copyWithModelFieldValues( - {ModelFieldValue? line1, - ModelFieldValue? line2, - ModelFieldValue? city, - ModelFieldValue? state, - ModelFieldValue? postalCode}) { + Address copyWithModelFieldValues({ + ModelFieldValue? line1, + ModelFieldValue? line2, + ModelFieldValue? city, + ModelFieldValue? state, + ModelFieldValue? postalCode, + }) { return Address._internal( - line1: line1 == null ? this.line1 : line1.value, - line2: line2 == null ? this.line2 : line2.value, - city: city == null ? this.city : city.value, - state: state == null ? this.state : state.value, - postalCode: postalCode == null ? this.postalCode : postalCode.value); + line1: line1 == null ? this.line1 : line1.value, + line2: line2 == null ? this.line2 : line2.value, + city: city == null ? this.city : city.value, + state: state == null ? this.state : state.value, + postalCode: postalCode == null ? this.postalCode : postalCode.value, + ); } Address.fromJson(Map json) - : _line1 = json['line1'], - _line2 = json['line2'], - _city = json['city'], - _state = json['state'], - _postalCode = json['postalCode']; + : _line1 = json['line1'], + _line2 = json['line2'], + _city = json['city'], + _state = json['state'], + _postalCode = json['postalCode']; Map toJson() => { - 'line1': _line1, - 'line2': _line2, - 'city': _city, - 'state': _state, - 'postalCode': _postalCode - }; + 'line1': _line1, + 'line2': _line2, + 'city': _city, + 'state': _state, + 'postalCode': _postalCode, + }; Map toMap() => { - 'line1': _line1, - 'line2': _line2, - 'city': _city, - 'state': _state, - 'postalCode': _postalCode - }; + 'line1': _line1, + 'line2': _line2, + 'city': _city, + 'state': _state, + 'postalCode': _postalCode, + }; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Address"; - modelSchemaDefinition.pluralName = "Addresses"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Address"; + modelSchemaDefinition.pluralName = "Addresses"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'line1', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); + fieldName: 'line1', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'line2', - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); + fieldName: 'line2', + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'city', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); + fieldName: 'city', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'state', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); + fieldName: 'state', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'postalCode', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'postalCode', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } diff --git a/packages/test/amplify_test/lib/test_models/Blog.dart b/packages/test/amplify_test/lib/test_models/Blog.dart index d26faa0523..487a6fa759 100644 --- a/packages/test/amplify_test/lib/test_models/Blog.dart +++ b/packages/test/amplify_test/lib/test_models/Blog.dart @@ -38,7 +38,8 @@ class Blog extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -51,11 +52,15 @@ class Blog extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -79,35 +84,37 @@ class Blog extends amplify_core.Model { return _updatedAt; } - const Blog._internal( - {required this.id, - required name, - createdAt, - file, - files, - posts, - updatedAt}) - : _name = name, - _createdAt = createdAt, - _file = file, - _files = files, - _posts = posts, - _updatedAt = updatedAt; - - factory Blog( - {String? id, - required String name, - amplify_core.TemporalDateTime? createdAt, - S3Object? file, - List? files, - List? posts}) { + const Blog._internal({ + required this.id, + required name, + createdAt, + file, + files, + posts, + updatedAt, + }) : _name = name, + _createdAt = createdAt, + _file = file, + _files = files, + _posts = posts, + _updatedAt = updatedAt; + + factory Blog({ + String? id, + required String name, + amplify_core.TemporalDateTime? createdAt, + S3Object? file, + List? files, + List? posts, + }) { return Blog._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - createdAt: createdAt, - file: file, - files: files != null ? List.unmodifiable(files) : files, - posts: posts != null ? List.unmodifiable(posts) : posts); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + createdAt: createdAt, + file: file, + files: files != null ? List.unmodifiable(files) : files, + posts: posts != null ? List.unmodifiable(posts) : posts, + ); } bool equals(Object other) { @@ -136,167 +143,211 @@ class Blog extends amplify_core.Model { buffer.write("Blog {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); buffer.write("file=" + (_file != null ? _file!.toString() : "null") + ", "); buffer.write( - "files=" + (_files != null ? _files!.toString() : "null") + ", "); + "files=" + (_files != null ? _files!.toString() : "null") + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Blog copyWith( - {String? name, - amplify_core.TemporalDateTime? createdAt, - S3Object? file, - List? files, - List? posts}) { + Blog copyWith({ + String? name, + amplify_core.TemporalDateTime? createdAt, + S3Object? file, + List? files, + List? posts, + }) { return Blog._internal( - id: id, - name: name ?? this.name, - createdAt: createdAt ?? this.createdAt, - file: file ?? this.file, - files: files ?? this.files, - posts: posts ?? this.posts); + id: id, + name: name ?? this.name, + createdAt: createdAt ?? this.createdAt, + file: file ?? this.file, + files: files ?? this.files, + posts: posts ?? this.posts, + ); } - Blog copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue? createdAt, - ModelFieldValue? file, - ModelFieldValue?>? files, - ModelFieldValue?>? posts}) { + Blog copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? createdAt, + ModelFieldValue? file, + ModelFieldValue?>? files, + ModelFieldValue?>? posts, + }) { return Blog._internal( - id: id, - name: name == null ? this.name : name.value, - createdAt: createdAt == null ? this.createdAt : createdAt.value, - file: file == null ? this.file : file.value, - files: files == null ? this.files : files.value, - posts: posts == null ? this.posts : posts.value); + id: id, + name: name == null ? this.name : name.value, + createdAt: createdAt == null ? this.createdAt : createdAt.value, + file: file == null ? this.file : file.value, + files: files == null ? this.files : files.value, + posts: posts == null ? this.posts : posts.value, + ); } Blog.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _file = json['file'] != null - ? S3Object.fromJson(new Map.from(json['file'])) - : null, - _files = json['files'] is List - ? (json['files'] as List) - .where((e) => e != null) - .map((e) => S3Object.fromJson(new Map.from(e))) - .toList() - : null, - _posts = json['posts'] is Map - ? (json['posts']['items'] is List - ? (json['posts']['items'] as List) - .where((e) => e != null) - .map((e) => Post.fromJson(new Map.from(e))) - .toList() - : null) - : (json['posts'] is List - ? (json['posts'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Post.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _file = + json['file'] != null + ? S3Object.fromJson(new Map.from(json['file'])) + : null, + _files = + json['files'] is List + ? (json['files'] as List) + .where((e) => e != null) + .map( + (e) => S3Object.fromJson(new Map.from(e)), + ) + .toList() + : null, + _posts = + json['posts'] is Map + ? (json['posts']['items'] is List + ? (json['posts']['items'] as List) + .where((e) => e != null) + .map( + (e) => Post.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['posts'] is List + ? (json['posts'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Post.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt?.format(), - 'file': _file?.toJson(), - 'files': _files?.map((S3Object? e) => e?.toJson()).toList(), - 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt?.format(), + 'file': _file?.toJson(), + 'files': _files?.map((S3Object? e) => e?.toJson()).toList(), + 'posts': _posts?.map((Post? e) => e?.toJson()).toList(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'createdAt': _createdAt, - 'file': _file, - 'files': _files, - 'posts': _posts, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'createdAt': _createdAt, + 'file': _file, + 'files': _files, + 'posts': _posts, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final CREATEDAT = amplify_core.QueryField(fieldName: "createdAt"); static final FILE = amplify_core.QueryField(fieldName: "file"); static final FILES = amplify_core.QueryField(fieldName: "files"); static final POSTS = amplify_core.QueryField( - fieldName: "posts", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "posts", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Blog"; - modelSchemaDefinition.pluralName = "Blogs"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["id"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Blog.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Blog.CREATEDAT, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'file', - isRequired: false, - ofType: amplify_core.ModelFieldType( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Blog"; + modelSchemaDefinition.pluralName = "Blogs"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["id"], name: null), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Blog.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Blog.CREATEDAT, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'file', + isRequired: false, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'S3Object'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'files', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofCustomTypeName: 'S3Object', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'files', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'S3Object'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Blog.POSTS, - isRequired: false, - ofModelName: 'Post', - associatedKey: Post.BLOG)); - - modelSchemaDefinition.addField( + ofCustomTypeName: 'S3Object', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Blog.POSTS, + isRequired: false, + ofModelName: 'Post', + associatedKey: Post.BLOG, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _BlogModelType extends amplify_core.ModelType { @@ -327,10 +378,10 @@ class BlogModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/Comment.dart b/packages/test/amplify_test/lib/test_models/Comment.dart index e33b2cb62e..cdb4732be4 100644 --- a/packages/test/amplify_test/lib/test_models/Comment.dart +++ b/packages/test/amplify_test/lib/test_models/Comment.dart @@ -35,7 +35,8 @@ class Comment extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -52,11 +53,15 @@ class Comment extends amplify_core.Model { return _content!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -68,18 +73,23 @@ class Comment extends amplify_core.Model { return _updatedAt; } - const Comment._internal( - {required this.id, post, required content, createdAt, updatedAt}) - : _post = post, - _content = content, - _createdAt = createdAt, - _updatedAt = updatedAt; + const Comment._internal({ + required this.id, + post, + required content, + createdAt, + updatedAt, + }) : _post = post, + _content = content, + _createdAt = createdAt, + _updatedAt = updatedAt; factory Comment({String? id, Post? post, required String content}) { return Comment._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - post: post, - content: content); + id: id == null ? amplify_core.UUID.getUUID() : id, + post: post, + content: content, + ); } bool equals(Object other) { @@ -106,11 +116,14 @@ class Comment extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("post=" + (_post != null ? _post!.toString() : "null") + ", "); buffer.write("content=" + "$_content" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -118,99 +131,129 @@ class Comment extends amplify_core.Model { Comment copyWith({Post? post, String? content}) { return Comment._internal( - id: id, post: post ?? this.post, content: content ?? this.content); + id: id, + post: post ?? this.post, + content: content ?? this.content, + ); } - Comment copyWithModelFieldValues( - {ModelFieldValue? post, ModelFieldValue? content}) { + Comment copyWithModelFieldValues({ + ModelFieldValue? post, + ModelFieldValue? content, + }) { return Comment._internal( - id: id, - post: post == null ? this.post : post.value, - content: content == null ? this.content : content.value); + id: id, + post: post == null ? this.post : post.value, + content: content == null ? this.content : content.value, + ); } Comment.fromJson(Map json) - : id = json['id'], - _post = json['post'] != null - ? json['post']['serializedData'] != null - ? Post.fromJson(new Map.from( - json['post']['serializedData'])) - : Post.fromJson(new Map.from(json['post'])) - : null, - _content = json['content'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _post = + json['post'] != null + ? json['post']['serializedData'] != null + ? Post.fromJson( + new Map.from( + json['post']['serializedData'], + ), + ) + : Post.fromJson(new Map.from(json['post'])) + : null, + _content = json['content'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'post': _post?.toJson(), - 'content': _content, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'post': _post?.toJson(), + 'content': _content, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'post': _post, - 'content': _content, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'post': _post, + 'content': _content, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final POST = amplify_core.QueryField( - fieldName: "post", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Post')); + fieldName: "post", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Post', + ), + ); static final CONTENT = amplify_core.QueryField(fieldName: "content"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Comment"; - modelSchemaDefinition.pluralName = "Comments"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["postID", "content"], name: "byPost") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Comment.POST, - isRequired: false, - targetNames: ['postID'], - ofModelName: 'Post')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Comment.CONTENT, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Comment"; + modelSchemaDefinition.pluralName = "Comments"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["postID", "content"], + name: "byPost", + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Comment.POST, + isRequired: false, + targetNames: ['postID'], + ofModelName: 'Post', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Comment.CONTENT, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _CommentModelType extends amplify_core.ModelType { @@ -241,10 +284,10 @@ class CommentModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/Contact.dart b/packages/test/amplify_test/lib/test_models/Contact.dart index 80ca173690..f4dcfd1f12 100644 --- a/packages/test/amplify_test/lib/test_models/Contact.dart +++ b/packages/test/amplify_test/lib/test_models/Contact.dart @@ -34,11 +34,15 @@ class Contact { return _email!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -47,11 +51,15 @@ class Contact { return _phone!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -60,20 +68,23 @@ class Contact { } const Contact._internal({required email, required phone, mailingAddresses}) - : _email = email, - _phone = phone, - _mailingAddresses = mailingAddresses; - - factory Contact( - {required String email, - required Phone phone, - List

? mailingAddresses}) { + : _email = email, + _phone = phone, + _mailingAddresses = mailingAddresses; + + factory Contact({ + required String email, + required Phone phone, + List
? mailingAddresses, + }) { return Contact._internal( - email: email, - phone: phone, - mailingAddresses: mailingAddresses != null - ? List
.unmodifiable(mailingAddresses) - : mailingAddresses); + email: email, + phone: phone, + mailingAddresses: + mailingAddresses != null + ? List
.unmodifiable(mailingAddresses) + : mailingAddresses, + ); } bool equals(Object other) { @@ -86,8 +97,10 @@ class Contact { return other is Contact && _email == other._email && _phone == other._phone && - DeepCollectionEquality() - .equals(_mailingAddresses, other._mailingAddresses); + DeepCollectionEquality().equals( + _mailingAddresses, + other._mailingAddresses, + ); } @override @@ -100,81 +113,110 @@ class Contact { buffer.write("Contact {"); buffer.write("email=" + "$_email" + ", "); buffer.write( - "phone=" + (_phone != null ? _phone!.toString() : "null") + ", "); - buffer.write("mailingAddresses=" + - (_mailingAddresses != null ? _mailingAddresses!.toString() : "null")); + "phone=" + (_phone != null ? _phone!.toString() : "null") + ", ", + ); + buffer.write( + "mailingAddresses=" + + (_mailingAddresses != null ? _mailingAddresses!.toString() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Contact copyWith( - {String? email, Phone? phone, List
? mailingAddresses}) { + Contact copyWith({ + String? email, + Phone? phone, + List
? mailingAddresses, + }) { return Contact._internal( - email: email ?? this.email, - phone: phone ?? this.phone, - mailingAddresses: mailingAddresses ?? this.mailingAddresses); + email: email ?? this.email, + phone: phone ?? this.phone, + mailingAddresses: mailingAddresses ?? this.mailingAddresses, + ); } - Contact copyWithModelFieldValues( - {ModelFieldValue? email, - ModelFieldValue? phone, - ModelFieldValue?>? mailingAddresses}) { + Contact copyWithModelFieldValues({ + ModelFieldValue? email, + ModelFieldValue? phone, + ModelFieldValue?>? mailingAddresses, + }) { return Contact._internal( - email: email == null ? this.email : email.value, - phone: phone == null ? this.phone : phone.value, - mailingAddresses: mailingAddresses == null - ? this.mailingAddresses - : mailingAddresses.value); + email: email == null ? this.email : email.value, + phone: phone == null ? this.phone : phone.value, + mailingAddresses: + mailingAddresses == null + ? this.mailingAddresses + : mailingAddresses.value, + ); } Contact.fromJson(Map json) - : _email = json['email'], - _phone = json['phone'] != null - ? Phone.fromJson(new Map.from(json['phone'])) - : null, - _mailingAddresses = json['mailingAddresses'] is List - ? (json['mailingAddresses'] as List) - .where((e) => e != null) - .map((e) => Address.fromJson(new Map.from(e))) - .toList() - : null; + : _email = json['email'], + _phone = + json['phone'] != null + ? Phone.fromJson(new Map.from(json['phone'])) + : null, + _mailingAddresses = + json['mailingAddresses'] is List + ? (json['mailingAddresses'] as List) + .where((e) => e != null) + .map( + (e) => Address.fromJson(new Map.from(e)), + ) + .toList() + : null; Map toJson() => { - 'email': _email, - 'phone': _phone?.toJson(), - 'mailingAddresses': - _mailingAddresses?.map((Address? e) => e?.toJson()).toList() - }; - - Map toMap() => - {'email': _email, 'phone': _phone, 'mailingAddresses': _mailingAddresses}; + 'email': _email, + 'phone': _phone?.toJson(), + 'mailingAddresses': + _mailingAddresses?.map((Address? e) => e?.toJson()).toList(), + }; + + Map toMap() => { + 'email': _email, + 'phone': _phone, + 'mailingAddresses': _mailingAddresses, + }; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Contact"; - modelSchemaDefinition.pluralName = "Contacts"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Contact"; + modelSchemaDefinition.pluralName = "Contacts"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'email', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'phone', - isRequired: true, - ofType: amplify_core.ModelFieldType( + fieldName: 'email', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'phone', + isRequired: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'Phone'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'mailingAddresses', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + ofCustomTypeName: 'Phone', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'mailingAddresses', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'Address'))); - }); + ofCustomTypeName: 'Address', + ), + ), + ); + }, + ); } diff --git a/packages/test/amplify_test/lib/test_models/FileMeta.dart b/packages/test/amplify_test/lib/test_models/FileMeta.dart index 0276aa8c15..f79e340c9e 100644 --- a/packages/test/amplify_test/lib/test_models/FileMeta.dart +++ b/packages/test/amplify_test/lib/test_models/FileMeta.dart @@ -31,11 +31,15 @@ class FileMeta { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -84,15 +88,19 @@ class FileMeta { Map toMap() => {'name': _name}; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "FileMeta"; - modelSchemaDefinition.pluralName = "FileMetas"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "FileMeta"; + modelSchemaDefinition.pluralName = "FileMetas"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'name', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'name', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } diff --git a/packages/test/amplify_test/lib/test_models/Inventory.dart b/packages/test/amplify_test/lib/test_models/Inventory.dart index 0b6067d639..fc37b179e1 100644 --- a/packages/test/amplify_test/lib/test_models/Inventory.dart +++ b/packages/test/amplify_test/lib/test_models/Inventory.dart @@ -36,24 +36,30 @@ class Inventory extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); InventoryModelIdentifier get modelIdentifier { try { return InventoryModelIdentifier( - productID: _productID!, - name: _name!, - warehouseID: _warehouseID!, - region: _region!); + productID: _productID!, + name: _name!, + warehouseID: _warehouseID!, + region: _region!, + ); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -62,11 +68,15 @@ class Inventory extends amplify_core.Model { return _productID!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -75,11 +85,15 @@ class Inventory extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -88,11 +102,15 @@ class Inventory extends amplify_core.Model { return _warehouseID!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -101,11 +119,15 @@ class Inventory extends amplify_core.Model { return _region!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -117,30 +139,32 @@ class Inventory extends amplify_core.Model { return _updatedAt; } - const Inventory._internal( - {required productID, - required name, - required warehouseID, - required region, - createdAt, - updatedAt}) - : _productID = productID, - _name = name, - _warehouseID = warehouseID, - _region = region, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Inventory( - {required String productID, - required String name, - required String warehouseID, - required String region}) { + const Inventory._internal({ + required productID, + required name, + required warehouseID, + required region, + createdAt, + updatedAt, + }) : _productID = productID, + _name = name, + _warehouseID = warehouseID, + _region = region, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Inventory({ + required String productID, + required String name, + required String warehouseID, + required String region, + }) { return Inventory._internal( - productID: productID, - name: name, - warehouseID: warehouseID, - region: region); + productID: productID, + name: name, + warehouseID: warehouseID, + region: region, + ); } bool equals(Object other) { @@ -169,11 +193,14 @@ class Inventory extends amplify_core.Model { buffer.write("name=" + "$_name" + ", "); buffer.write("warehouseID=" + "$_warehouseID" + ", "); buffer.write("region=" + "$_region" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -181,108 +208,136 @@ class Inventory extends amplify_core.Model { Inventory copyWith() { return Inventory._internal( - productID: productID, - name: name, - warehouseID: warehouseID, - region: region); + productID: productID, + name: name, + warehouseID: warehouseID, + region: region, + ); } Inventory copyWithModelFieldValues() { return Inventory._internal( - productID: productID, - name: name, - warehouseID: warehouseID, - region: region); + productID: productID, + name: name, + warehouseID: warehouseID, + region: region, + ); } Inventory.fromJson(Map json) - : _productID = json['productID'], - _name = json['name'], - _warehouseID = json['warehouseID'], - _region = json['region'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : _productID = json['productID'], + _name = json['name'], + _warehouseID = json['warehouseID'], + _region = json['region'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'productID': _productID, - 'name': _name, - 'warehouseID': _warehouseID, - 'region': _region, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'productID': _productID, + 'name': _name, + 'warehouseID': _warehouseID, + 'region': _region, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'productID': _productID, - 'name': _name, - 'warehouseID': _warehouseID, - 'region': _region, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'productID': _productID, + 'name': _name, + 'warehouseID': _warehouseID, + 'region': _region, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final PRODUCTID = amplify_core.QueryField(fieldName: "productID"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final WAREHOUSEID = amplify_core.QueryField(fieldName: "warehouseID"); static final REGION = amplify_core.QueryField(fieldName: "region"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Inventory"; - modelSchemaDefinition.pluralName = "Inventories"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Inventory"; + modelSchemaDefinition.pluralName = "Inventories"; - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( fields: const ["productID", "name", "warehouseID", "region"], - name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Inventory.PRODUCTID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Inventory.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Inventory.WAREHOUSEID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Inventory.REGION, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + name: null, + ), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Inventory.PRODUCTID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Inventory.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Inventory.WAREHOUSEID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Inventory.REGION, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _InventoryModelType extends amplify_core.ModelType { @@ -314,25 +369,26 @@ class InventoryModelIdentifier * Create an instance of InventoryModelIdentifier using [productID] the primary key. * And [name], [warehouseID], [region] the sort keys. */ - const InventoryModelIdentifier( - {required this.productID, - required this.name, - required this.warehouseID, - required this.region}); + const InventoryModelIdentifier({ + required this.productID, + required this.name, + required this.warehouseID, + required this.region, + }); @override Map serializeAsMap() => ({ - 'productID': productID, - 'name': name, - 'warehouseID': warehouseID, - 'region': region - }); + 'productID': productID, + 'name': name, + 'warehouseID': warehouseID, + 'region': region, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/ModelProvider.dart b/packages/test/amplify_test/lib/test_models/ModelProvider.dart index 05039e8043..18c7657b7b 100644 --- a/packages/test/amplify_test/lib/test_models/ModelProvider.dart +++ b/packages/test/amplify_test/lib/test_models/ModelProvider.dart @@ -63,7 +63,7 @@ class ModelProvider implements amplify_core.ModelProviderInterface { PostWithAuthRules.schema, Product.schema, StringListTypeModel.schema, - Warehouse.schema + Warehouse.schema, ]; @override List customTypeSchemas = [ @@ -71,7 +71,7 @@ class ModelProvider implements amplify_core.ModelProviderInterface { Contact.schema, FileMeta.schema, Phone.schema, - S3Object.schema + S3Object.schema, ]; static final ModelProvider _instance = ModelProvider(); @@ -99,8 +99,8 @@ class ModelProvider implements amplify_core.ModelProviderInterface { return Warehouse.classType; default: throw Exception( - "Failed to find model in model provider for model name: " + - modelName); + "Failed to find model in model provider for model name: " + modelName, + ); } } } diff --git a/packages/test/amplify_test/lib/test_models/Person.dart b/packages/test/amplify_test/lib/test_models/Person.dart index 0dc52946cd..7b1769b29e 100644 --- a/packages/test/amplify_test/lib/test_models/Person.dart +++ b/packages/test/amplify_test/lib/test_models/Person.dart @@ -37,7 +37,8 @@ class Person extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -50,11 +51,15 @@ class Person extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -67,11 +72,15 @@ class Person extends amplify_core.Model { return _contact!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -83,31 +92,34 @@ class Person extends amplify_core.Model { return _updatedAt; } - const Person._internal( - {required this.id, - required name, - propertiesAddresses, - required contact, - createdAt, - updatedAt}) - : _name = name, - _propertiesAddresses = propertiesAddresses, - _contact = contact, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Person( - {String? id, - required String name, - List
? propertiesAddresses, - required Contact contact}) { + const Person._internal({ + required this.id, + required name, + propertiesAddresses, + required contact, + createdAt, + updatedAt, + }) : _name = name, + _propertiesAddresses = propertiesAddresses, + _contact = contact, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Person({ + String? id, + required String name, + List
? propertiesAddresses, + required Contact contact, + }) { return Person._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - propertiesAddresses: propertiesAddresses != null - ? List
.unmodifiable(propertiesAddresses) - : propertiesAddresses, - contact: contact); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + propertiesAddresses: + propertiesAddresses != null + ? List
.unmodifiable(propertiesAddresses) + : propertiesAddresses, + contact: contact, + ); } bool equals(Object other) { @@ -120,8 +132,10 @@ class Person extends amplify_core.Model { return other is Person && id == other.id && _name == other._name && - DeepCollectionEquality() - .equals(_propertiesAddresses, other._propertiesAddresses) && + DeepCollectionEquality().equals( + _propertiesAddresses, + other._propertiesAddresses, + ) && _contact == other._contact; } @@ -135,135 +149,173 @@ class Person extends amplify_core.Model { buffer.write("Person {"); buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); - buffer.write("propertiesAddresses=" + - (_propertiesAddresses != null - ? _propertiesAddresses!.toString() - : "null") + - ", "); buffer.write( - "contact=" + (_contact != null ? _contact!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + "propertiesAddresses=" + + (_propertiesAddresses != null + ? _propertiesAddresses!.toString() + : "null") + + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "contact=" + (_contact != null ? _contact!.toString() : "null") + ", ", + ); + buffer.write( + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Person copyWith( - {String? name, List
? propertiesAddresses, Contact? contact}) { + Person copyWith({ + String? name, + List
? propertiesAddresses, + Contact? contact, + }) { return Person._internal( - id: id, - name: name ?? this.name, - propertiesAddresses: propertiesAddresses ?? this.propertiesAddresses, - contact: contact ?? this.contact); + id: id, + name: name ?? this.name, + propertiesAddresses: propertiesAddresses ?? this.propertiesAddresses, + contact: contact ?? this.contact, + ); } - Person copyWithModelFieldValues( - {ModelFieldValue? name, - ModelFieldValue?>? propertiesAddresses, - ModelFieldValue? contact}) { + Person copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue?>? propertiesAddresses, + ModelFieldValue? contact, + }) { return Person._internal( - id: id, - name: name == null ? this.name : name.value, - propertiesAddresses: propertiesAddresses == null - ? this.propertiesAddresses - : propertiesAddresses.value, - contact: contact == null ? this.contact : contact.value); + id: id, + name: name == null ? this.name : name.value, + propertiesAddresses: + propertiesAddresses == null + ? this.propertiesAddresses + : propertiesAddresses.value, + contact: contact == null ? this.contact : contact.value, + ); } Person.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _propertiesAddresses = json['propertiesAddresses'] is List - ? (json['propertiesAddresses'] as List) - .where((e) => e != null) - .map((e) => Address.fromJson(new Map.from(e))) - .toList() - : null, - _contact = json['contact'] != null - ? Contact.fromJson(new Map.from(json['contact'])) - : null, - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _propertiesAddresses = + json['propertiesAddresses'] is List + ? (json['propertiesAddresses'] as List) + .where((e) => e != null) + .map( + (e) => Address.fromJson(new Map.from(e)), + ) + .toList() + : null, + _contact = + json['contact'] != null + ? Contact.fromJson(new Map.from(json['contact'])) + : null, + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'propertiesAddresses': - _propertiesAddresses?.map((Address? e) => e?.toJson()).toList(), - 'contact': _contact?.toJson(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'propertiesAddresses': + _propertiesAddresses?.map((Address? e) => e?.toJson()).toList(), + 'contact': _contact?.toJson(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'propertiesAddresses': _propertiesAddresses, - 'contact': _contact, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'propertiesAddresses': _propertiesAddresses, + 'contact': _contact, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); - static final PROPERTIESADDRESSES = - amplify_core.QueryField(fieldName: "propertiesAddresses"); + static final PROPERTIESADDRESSES = amplify_core.QueryField( + fieldName: "propertiesAddresses", + ); static final CONTACT = amplify_core.QueryField(fieldName: "contact"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Person"; - modelSchemaDefinition.pluralName = "People"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Person.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'propertiesAddresses', - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Person"; + modelSchemaDefinition.pluralName = "People"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Person.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'propertiesAddresses', + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embeddedCollection, - ofCustomTypeName: 'Address'))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'contact', - isRequired: true, - ofType: amplify_core.ModelFieldType( + ofCustomTypeName: 'Address', + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'contact', + isRequired: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'Contact'))); + ofCustomTypeName: 'Contact', + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PersonModelType extends amplify_core.ModelType { @@ -294,10 +346,10 @@ class PersonModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/Phone.dart b/packages/test/amplify_test/lib/test_models/Phone.dart index a6e2d5c4f1..1e449f2901 100644 --- a/packages/test/amplify_test/lib/test_models/Phone.dart +++ b/packages/test/amplify_test/lib/test_models/Phone.dart @@ -32,11 +32,15 @@ class Phone { return _country!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -45,17 +49,21 @@ class Phone { return _number!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } const Phone._internal({required country, required number}) - : _country = country, - _number = number; + : _country = country, + _number = number; factory Phone({required String country, required String number}) { return Phone._internal(country: country, number: number); @@ -90,41 +98,53 @@ class Phone { Phone copyWith({String? country, String? number}) { return Phone._internal( - country: country ?? this.country, number: number ?? this.number); + country: country ?? this.country, + number: number ?? this.number, + ); } - Phone copyWithModelFieldValues( - {ModelFieldValue? country, ModelFieldValue? number}) { + Phone copyWithModelFieldValues({ + ModelFieldValue? country, + ModelFieldValue? number, + }) { return Phone._internal( - country: country == null ? this.country : country.value, - number: number == null ? this.number : number.value); + country: country == null ? this.country : country.value, + number: number == null ? this.number : number.value, + ); } Phone.fromJson(Map json) - : _country = json['country'], - _number = json['number']; + : _country = json['country'], + _number = json['number']; Map toJson() => {'country': _country, 'number': _number}; Map toMap() => {'country': _country, 'number': _number}; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Phone"; - modelSchemaDefinition.pluralName = "Phones"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Phone"; + modelSchemaDefinition.pluralName = "Phones"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'country', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'country', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'number', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - }); + fieldName: 'number', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + }, + ); } diff --git a/packages/test/amplify_test/lib/test_models/Post.dart b/packages/test/amplify_test/lib/test_models/Post.dart index 483cf72bff..2eddc8d2b6 100644 --- a/packages/test/amplify_test/lib/test_models/Post.dart +++ b/packages/test/amplify_test/lib/test_models/Post.dart @@ -40,7 +40,8 @@ class Post extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -53,11 +54,15 @@ class Post extends amplify_core.Model { return _title!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -66,11 +71,15 @@ class Post extends amplify_core.Model { return _rating!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -98,42 +107,44 @@ class Post extends amplify_core.Model { return _updatedAt; } - const Post._internal( - {required this.id, - required title, - required rating, - created, - likeCount, - blog, - comments, - createdAt, - updatedAt}) - : _title = title, - _rating = rating, - _created = created, - _likeCount = likeCount, - _blog = blog, - _comments = comments, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Post( - {String? id, - required String title, - required int rating, - amplify_core.TemporalDateTime? created, - int? likeCount, - Blog? blog, - List? comments}) { + const Post._internal({ + required this.id, + required title, + required rating, + created, + likeCount, + blog, + comments, + createdAt, + updatedAt, + }) : _title = title, + _rating = rating, + _created = created, + _likeCount = likeCount, + _blog = blog, + _comments = comments, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Post({ + String? id, + required String title, + required int rating, + amplify_core.TemporalDateTime? created, + int? likeCount, + Blog? blog, + List? comments, + }) { return Post._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - title: title, - rating: rating, - created: created, - likeCount: likeCount, - blog: blog, - comments: - comments != null ? List.unmodifiable(comments) : comments); + id: id == null ? amplify_core.UUID.getUUID() : id, + title: title, + rating: rating, + created: created, + likeCount: likeCount, + blog: blog, + comments: + comments != null ? List.unmodifiable(comments) : comments, + ); } bool equals(Object other) { @@ -164,198 +175,254 @@ class Post extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("title=" + "$_title" + ", "); buffer.write( - "rating=" + (_rating != null ? _rating!.toString() : "null") + ", "); + "rating=" + (_rating != null ? _rating!.toString() : "null") + ", ", + ); buffer.write( - "created=" + (_created != null ? _created!.format() : "null") + ", "); - buffer.write("likeCount=" + - (_likeCount != null ? _likeCount!.toString() : "null") + - ", "); + "created=" + (_created != null ? _created!.format() : "null") + ", ", + ); + buffer.write( + "likeCount=" + + (_likeCount != null ? _likeCount!.toString() : "null") + + ", ", + ); buffer.write("blog=" + (_blog != null ? _blog!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); } - Post copyWith( - {String? title, - int? rating, - amplify_core.TemporalDateTime? created, - int? likeCount, - Blog? blog, - List? comments}) { + Post copyWith({ + String? title, + int? rating, + amplify_core.TemporalDateTime? created, + int? likeCount, + Blog? blog, + List? comments, + }) { return Post._internal( - id: id, - title: title ?? this.title, - rating: rating ?? this.rating, - created: created ?? this.created, - likeCount: likeCount ?? this.likeCount, - blog: blog ?? this.blog, - comments: comments ?? this.comments); + id: id, + title: title ?? this.title, + rating: rating ?? this.rating, + created: created ?? this.created, + likeCount: likeCount ?? this.likeCount, + blog: blog ?? this.blog, + comments: comments ?? this.comments, + ); } - Post copyWithModelFieldValues( - {ModelFieldValue? title, - ModelFieldValue? rating, - ModelFieldValue? created, - ModelFieldValue? likeCount, - ModelFieldValue? blog, - ModelFieldValue?>? comments}) { + Post copyWithModelFieldValues({ + ModelFieldValue? title, + ModelFieldValue? rating, + ModelFieldValue? created, + ModelFieldValue? likeCount, + ModelFieldValue? blog, + ModelFieldValue?>? comments, + }) { return Post._internal( - id: id, - title: title == null ? this.title : title.value, - rating: rating == null ? this.rating : rating.value, - created: created == null ? this.created : created.value, - likeCount: likeCount == null ? this.likeCount : likeCount.value, - blog: blog == null ? this.blog : blog.value, - comments: comments == null ? this.comments : comments.value); + id: id, + title: title == null ? this.title : title.value, + rating: rating == null ? this.rating : rating.value, + created: created == null ? this.created : created.value, + likeCount: likeCount == null ? this.likeCount : likeCount.value, + blog: blog == null ? this.blog : blog.value, + comments: comments == null ? this.comments : comments.value, + ); } Post.fromJson(Map json) - : id = json['id'], - _title = json['title'], - _rating = (json['rating'] as num?)?.toInt(), - _created = json['created'] != null - ? amplify_core.TemporalDateTime.fromString(json['created']) - : null, - _likeCount = (json['likeCount'] as num?)?.toInt(), - _blog = json['blog'] != null - ? json['blog']['serializedData'] != null - ? Blog.fromJson(new Map.from( - json['blog']['serializedData'])) - : Blog.fromJson(new Map.from(json['blog'])) - : null, - _comments = json['comments'] is Map - ? (json['comments']['items'] is List - ? (json['comments']['items'] as List) - .where((e) => e != null) - .map((e) => - Comment.fromJson(new Map.from(e))) - .toList() - : null) - : (json['comments'] is List - ? (json['comments'] as List) - .where((e) => e?['serializedData'] != null) - .map((e) => Comment.fromJson( - new Map.from(e?['serializedData']))) - .toList() - : null), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _title = json['title'], + _rating = (json['rating'] as num?)?.toInt(), + _created = + json['created'] != null + ? amplify_core.TemporalDateTime.fromString(json['created']) + : null, + _likeCount = (json['likeCount'] as num?)?.toInt(), + _blog = + json['blog'] != null + ? json['blog']['serializedData'] != null + ? Blog.fromJson( + new Map.from( + json['blog']['serializedData'], + ), + ) + : Blog.fromJson(new Map.from(json['blog'])) + : null, + _comments = + json['comments'] is Map + ? (json['comments']['items'] is List + ? (json['comments']['items'] as List) + .where((e) => e != null) + .map( + (e) => + Comment.fromJson(new Map.from(e)), + ) + .toList() + : null) + : (json['comments'] is List + ? (json['comments'] as List) + .where((e) => e?['serializedData'] != null) + .map( + (e) => Comment.fromJson( + new Map.from(e?['serializedData']), + ), + ) + .toList() + : null), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'created': _created?.format(), - 'likeCount': _likeCount, - 'blog': _blog?.toJson(), - 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'created': _created?.format(), + 'likeCount': _likeCount, + 'blog': _blog?.toJson(), + 'comments': _comments?.map((Comment? e) => e?.toJson()).toList(), + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'title': _title, - 'rating': _rating, - 'created': _created, - 'likeCount': _likeCount, - 'blog': _blog, - 'comments': _comments, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'title': _title, + 'rating': _rating, + 'created': _created, + 'likeCount': _likeCount, + 'blog': _blog, + 'comments': _comments, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = - amplify_core.QueryModelIdentifier(); + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final TITLE = amplify_core.QueryField(fieldName: "title"); static final RATING = amplify_core.QueryField(fieldName: "rating"); static final CREATED = amplify_core.QueryField(fieldName: "created"); static final LIKECOUNT = amplify_core.QueryField(fieldName: "likeCount"); static final BLOG = amplify_core.QueryField( - fieldName: "blog", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Blog')); + fieldName: "blog", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Blog', + ), + ); static final COMMENTS = amplify_core.QueryField( - fieldName: "comments", - fieldType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.model, - ofModelName: 'Comment')); + fieldName: "comments", + fieldType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.model, + ofModelName: 'Comment', + ), + ); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Post"; - modelSchemaDefinition.pluralName = "Posts"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["blogID"], name: "byBlog") - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.TITLE, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.RATING, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.CREATED, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Post.LIKECOUNT, - isRequired: false, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.belongsTo( - key: Post.BLOG, - isRequired: false, - targetNames: ['blogID'], - ofModelName: 'Blog')); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.hasMany( - key: Post.COMMENTS, - isRequired: false, - ofModelName: 'Comment', - associatedKey: Comment.POST)); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Post"; + modelSchemaDefinition.pluralName = "Posts"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["blogID"], name: "byBlog"), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.TITLE, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.RATING, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.CREATED, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Post.LIKECOUNT, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.belongsTo( + key: Post.BLOG, + isRequired: false, + targetNames: ['blogID'], + ofModelName: 'Blog', + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.hasMany( + key: Post.COMMENTS, + isRequired: false, + ofModelName: 'Comment', + associatedKey: Comment.POST, + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PostModelType extends amplify_core.ModelType { @@ -386,10 +453,10 @@ class PostModelIdentifier implements amplify_core.ModelIdentifier { Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/PostWithAuthRules.dart b/packages/test/amplify_test/lib/test_models/PostWithAuthRules.dart index 0ac701532e..746a29267c 100644 --- a/packages/test/amplify_test/lib/test_models/PostWithAuthRules.dart +++ b/packages/test/amplify_test/lib/test_models/PostWithAuthRules.dart @@ -35,7 +35,8 @@ class PostWithAuthRules extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -48,11 +49,15 @@ class PostWithAuthRules extends amplify_core.Model { return _title!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -68,19 +73,27 @@ class PostWithAuthRules extends amplify_core.Model { return _updatedAt; } - const PostWithAuthRules._internal( - {required this.id, required title, owner, createdAt, updatedAt}) - : _title = title, - _owner = owner, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory PostWithAuthRules( - {String? id, required String title, String? owner}) { + const PostWithAuthRules._internal({ + required this.id, + required title, + owner, + createdAt, + updatedAt, + }) : _title = title, + _owner = owner, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory PostWithAuthRules({ + String? id, + required String title, + String? owner, + }) { return PostWithAuthRules._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - title: title, - owner: owner); + id: id == null ? amplify_core.UUID.getUUID() : id, + title: title, + owner: owner, + ); } bool equals(Object other) { @@ -107,11 +120,14 @@ class PostWithAuthRules extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("title=" + "$_title" + ", "); buffer.write("owner=" + "$_owner" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -119,57 +135,67 @@ class PostWithAuthRules extends amplify_core.Model { PostWithAuthRules copyWith({String? title, String? owner}) { return PostWithAuthRules._internal( - id: id, title: title ?? this.title, owner: owner ?? this.owner); + id: id, + title: title ?? this.title, + owner: owner ?? this.owner, + ); } - PostWithAuthRules copyWithModelFieldValues( - {ModelFieldValue? title, ModelFieldValue? owner}) { + PostWithAuthRules copyWithModelFieldValues({ + ModelFieldValue? title, + ModelFieldValue? owner, + }) { return PostWithAuthRules._internal( - id: id, - title: title == null ? this.title : title.value, - owner: owner == null ? this.owner : owner.value); + id: id, + title: title == null ? this.title : title.value, + owner: owner == null ? this.owner : owner.value, + ); } PostWithAuthRules.fromJson(Map json) - : id = json['id'], - _title = json['title'], - _owner = json['owner'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _title = json['title'], + _owner = json['owner'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'title': _title, - 'owner': _owner, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'title': _title, + 'owner': _owner, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'title': _title, - 'owner': _owner, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier MODEL_IDENTIFIER = + 'id': id, + 'title': _title, + 'owner': _owner, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + PostWithAuthRulesModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final TITLE = amplify_core.QueryField(fieldName: "title"); static final OWNER = amplify_core.QueryField(fieldName: "owner"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "PostWithAuthRules"; - modelSchemaDefinition.pluralName = "PostWithAuthRules"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "PostWithAuthRules"; + modelSchemaDefinition.pluralName = "PostWithAuthRules"; - modelSchemaDefinition.authRules = [ - amplify_core.AuthRule( + modelSchemaDefinition.authRules = [ + amplify_core.AuthRule( authStrategy: amplify_core.AuthStrategy.OWNER, ownerField: "owner", identityClaim: "cognito:username", @@ -178,40 +204,56 @@ class PostWithAuthRules extends amplify_core.Model { amplify_core.ModelOperation.CREATE, amplify_core.ModelOperation.UPDATE, amplify_core.ModelOperation.DELETE, - amplify_core.ModelOperation.READ - ]) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: PostWithAuthRules.TITLE, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: PostWithAuthRules.OWNER, - isRequired: false, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + amplify_core.ModelOperation.READ, + ], + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: PostWithAuthRules.TITLE, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: PostWithAuthRules.OWNER, + isRequired: false, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _PostWithAuthRulesModelType @@ -244,10 +286,10 @@ class PostWithAuthRulesModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/Product.dart b/packages/test/amplify_test/lib/test_models/Product.dart index 9ac4a075e2..05bae2cab5 100644 --- a/packages/test/amplify_test/lib/test_models/Product.dart +++ b/packages/test/amplify_test/lib/test_models/Product.dart @@ -35,7 +35,8 @@ class Product extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => modelIdentifier.serializeAsString(); @@ -44,11 +45,15 @@ class Product extends amplify_core.Model { return ProductModelIdentifier(productID: _productID!); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -57,11 +62,15 @@ class Product extends amplify_core.Model { return _productID!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -70,11 +79,15 @@ class Product extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -83,11 +96,15 @@ class Product extends amplify_core.Model { return _amount!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -99,20 +116,23 @@ class Product extends amplify_core.Model { return _updatedAt; } - const Product._internal( - {required productID, - required name, - required amount, - createdAt, - updatedAt}) - : _productID = productID, - _name = name, - _amount = amount, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Product( - {required String productID, required String name, required int amount}) { + const Product._internal({ + required productID, + required name, + required amount, + createdAt, + updatedAt, + }) : _productID = productID, + _name = name, + _amount = amount, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Product({ + required String productID, + required String name, + required int amount, + }) { return Product._internal(productID: productID, name: name, amount: amount); } @@ -140,12 +160,16 @@ class Product extends amplify_core.Model { buffer.write("productID=" + "$_productID" + ", "); buffer.write("name=" + "$_name" + ", "); buffer.write( - "amount=" + (_amount != null ? _amount!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + "amount=" + (_amount != null ? _amount!.toString() : "null") + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -153,95 +177,120 @@ class Product extends amplify_core.Model { Product copyWith({String? name, int? amount}) { return Product._internal( - productID: productID, - name: name ?? this.name, - amount: amount ?? this.amount); + productID: productID, + name: name ?? this.name, + amount: amount ?? this.amount, + ); } - Product copyWithModelFieldValues( - {ModelFieldValue? name, ModelFieldValue? amount}) { + Product copyWithModelFieldValues({ + ModelFieldValue? name, + ModelFieldValue? amount, + }) { return Product._internal( - productID: productID, - name: name == null ? this.name : name.value, - amount: amount == null ? this.amount : amount.value); + productID: productID, + name: name == null ? this.name : name.value, + amount: amount == null ? this.amount : amount.value, + ); } Product.fromJson(Map json) - : _productID = json['productID'], - _name = json['name'], - _amount = (json['amount'] as num?)?.toInt(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : _productID = json['productID'], + _name = json['name'], + _amount = (json['amount'] as num?)?.toInt(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'productID': _productID, - 'name': _name, - 'amount': _amount, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'productID': _productID, + 'name': _name, + 'amount': _amount, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'productID': _productID, - 'name': _name, - 'amount': _amount, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'productID': _productID, + 'name': _name, + 'amount': _amount, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final PRODUCTID = amplify_core.QueryField(fieldName: "productID"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final AMOUNT = amplify_core.QueryField(fieldName: "amount"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Product"; - modelSchemaDefinition.pluralName = "Products"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex(fields: const ["productID"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Product.PRODUCTID, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Product.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Product.AMOUNT, - isRequired: true, - ofType: - amplify_core.ModelFieldType(amplify_core.ModelFieldTypeEnum.int))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Product"; + modelSchemaDefinition.pluralName = "Products"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex(fields: const ["productID"], name: null), + ]; + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Product.PRODUCTID, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Product.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Product.AMOUNT, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.int, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _ProductModelType extends amplify_core.ModelType { @@ -269,14 +318,15 @@ class ProductModelIdentifier implements amplify_core.ModelIdentifier { const ProductModelIdentifier({required this.productID}); @override - Map serializeAsMap() => - ({'productID': productID}); + Map serializeAsMap() => ({ + 'productID': productID, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/S3Object.dart b/packages/test/amplify_test/lib/test_models/S3Object.dart index c09d2a8402..683ec1f0e2 100644 --- a/packages/test/amplify_test/lib/test_models/S3Object.dart +++ b/packages/test/amplify_test/lib/test_models/S3Object.dart @@ -34,11 +34,15 @@ class S3Object { return _bucket!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -47,11 +51,15 @@ class S3Object { return _region!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -60,11 +68,15 @@ class S3Object { return _key!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -72,20 +84,28 @@ class S3Object { return _meta; } - const S3Object._internal( - {required bucket, required region, required key, meta}) - : _bucket = bucket, - _region = region, - _key = key, - _meta = meta; - - factory S3Object( - {required String bucket, - required String region, - required String key, - FileMeta? meta}) { + const S3Object._internal({ + required bucket, + required region, + required key, + meta, + }) : _bucket = bucket, + _region = region, + _key = key, + _meta = meta; + + factory S3Object({ + required String bucket, + required String region, + required String key, + FileMeta? meta, + }) { return S3Object._internal( - bucket: bucket, region: region, key: key, meta: meta); + bucket: bucket, + region: region, + key: key, + meta: meta, + ); } bool equals(Object other) { @@ -119,76 +139,102 @@ class S3Object { return buffer.toString(); } - S3Object copyWith( - {String? bucket, String? region, String? key, FileMeta? meta}) { + S3Object copyWith({ + String? bucket, + String? region, + String? key, + FileMeta? meta, + }) { return S3Object._internal( - bucket: bucket ?? this.bucket, - region: region ?? this.region, - key: key ?? this.key, - meta: meta ?? this.meta); + bucket: bucket ?? this.bucket, + region: region ?? this.region, + key: key ?? this.key, + meta: meta ?? this.meta, + ); } - S3Object copyWithModelFieldValues( - {ModelFieldValue? bucket, - ModelFieldValue? region, - ModelFieldValue? key, - ModelFieldValue? meta}) { + S3Object copyWithModelFieldValues({ + ModelFieldValue? bucket, + ModelFieldValue? region, + ModelFieldValue? key, + ModelFieldValue? meta, + }) { return S3Object._internal( - bucket: bucket == null ? this.bucket : bucket.value, - region: region == null ? this.region : region.value, - key: key == null ? this.key : key.value, - meta: meta == null ? this.meta : meta.value); + bucket: bucket == null ? this.bucket : bucket.value, + region: region == null ? this.region : region.value, + key: key == null ? this.key : key.value, + meta: meta == null ? this.meta : meta.value, + ); } S3Object.fromJson(Map json) - : _bucket = json['bucket'], - _region = json['region'], - _key = json['key'], - _meta = json['meta'] != null - ? FileMeta.fromJson(new Map.from(json['meta'])) - : null; + : _bucket = json['bucket'], + _region = json['region'], + _key = json['key'], + _meta = + json['meta'] != null + ? FileMeta.fromJson(new Map.from(json['meta'])) + : null; Map toJson() => { - 'bucket': _bucket, - 'region': _region, - 'key': _key, - 'meta': _meta?.toJson() - }; - - Map toMap() => - {'bucket': _bucket, 'region': _region, 'key': _key, 'meta': _meta}; + 'bucket': _bucket, + 'region': _region, + 'key': _key, + 'meta': _meta?.toJson(), + }; + + Map toMap() => { + 'bucket': _bucket, + 'region': _region, + 'key': _key, + 'meta': _meta, + }; static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "S3Object"; - modelSchemaDefinition.pluralName = "S3Objects"; + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "S3Object"; + modelSchemaDefinition.pluralName = "S3Objects"; - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'bucket', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'bucket', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'region', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + fieldName: 'region', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.customTypeField( - fieldName: 'key', - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.embedded( - fieldName: 'meta', - isRequired: false, - ofType: amplify_core.ModelFieldType( + fieldName: 'key', + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.embedded( + fieldName: 'meta', + isRequired: false, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.embedded, - ofCustomTypeName: 'FileMeta'))); - }); + ofCustomTypeName: 'FileMeta', + ), + ), + ); + }, + ); } diff --git a/packages/test/amplify_test/lib/test_models/StringListTypeModel.dart b/packages/test/amplify_test/lib/test_models/StringListTypeModel.dart index 7a98829eb6..7b82efff38 100644 --- a/packages/test/amplify_test/lib/test_models/StringListTypeModel.dart +++ b/packages/test/amplify_test/lib/test_models/StringListTypeModel.dart @@ -35,7 +35,8 @@ class StringListTypeModel extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -55,16 +56,20 @@ class StringListTypeModel extends amplify_core.Model { return _updatedAt; } - const StringListTypeModel._internal( - {required this.id, value, createdAt, updatedAt}) - : _value = value, - _createdAt = createdAt, - _updatedAt = updatedAt; + const StringListTypeModel._internal({ + required this.id, + value, + createdAt, + updatedAt, + }) : _value = value, + _createdAt = createdAt, + _updatedAt = updatedAt; factory StringListTypeModel({String? id, List? value}) { return StringListTypeModel._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - value: value != null ? List.unmodifiable(value) : value); + id: id == null ? amplify_core.UUID.getUUID() : id, + value: value != null ? List.unmodifiable(value) : value, + ); } bool equals(Object other) { @@ -89,12 +94,16 @@ class StringListTypeModel extends amplify_core.Model { buffer.write("StringListTypeModel {"); buffer.write("id=" + "$id" + ", "); buffer.write( - "value=" + (_value != null ? _value!.toString() : "null") + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); + "value=" + (_value != null ? _value!.toString() : "null") + ", ", + ); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -104,73 +113,90 @@ class StringListTypeModel extends amplify_core.Model { return StringListTypeModel._internal(id: id, value: value ?? this.value); } - StringListTypeModel copyWithModelFieldValues( - {ModelFieldValue?>? value}) { + StringListTypeModel copyWithModelFieldValues({ + ModelFieldValue?>? value, + }) { return StringListTypeModel._internal( - id: id, value: value == null ? this.value : value.value); + id: id, + value: value == null ? this.value : value.value, + ); } StringListTypeModel.fromJson(Map json) - : id = json['id'], - _value = json['value']?.cast(), - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _value = json['value']?.cast(), + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'value': _value, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'value': _value, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'value': _value, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; - - static final amplify_core - .QueryModelIdentifier - MODEL_IDENTIFIER = + 'id': id, + 'value': _value, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; + + static final amplify_core.QueryModelIdentifier< + StringListTypeModelModelIdentifier + > + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final VALUE = amplify_core.QueryField(fieldName: "value"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "StringListTypeModel"; - modelSchemaDefinition.pluralName = "StringListTypeModels"; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: StringListTypeModel.VALUE, - isRequired: false, - isArray: true, - ofType: amplify_core.ModelFieldType( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "StringListTypeModel"; + modelSchemaDefinition.pluralName = "StringListTypeModels"; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: StringListTypeModel.VALUE, + isRequired: false, + isArray: true, + ofType: amplify_core.ModelFieldType( amplify_core.ModelFieldTypeEnum.collection, - ofModelName: amplify_core.ModelFieldTypeEnum.string.name))); + ofModelName: amplify_core.ModelFieldTypeEnum.string.name, + ), + ), + ); - modelSchemaDefinition.addField( + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _StringListTypeModelModelType @@ -203,10 +229,10 @@ class StringListTypeModelModelIdentifier Map serializeAsMap() => ({'id': id}); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/lib/test_models/Warehouse.dart b/packages/test/amplify_test/lib/test_models/Warehouse.dart index 5d10c8437c..19cd3f6525 100644 --- a/packages/test/amplify_test/lib/test_models/Warehouse.dart +++ b/packages/test/amplify_test/lib/test_models/Warehouse.dart @@ -35,7 +35,8 @@ class Warehouse extends amplify_core.Model { getInstanceType() => classType; @Deprecated( - '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.') + '[getId] is being deprecated in favor of custom primary key feature. Use getter [modelIdentifier] to get model identifier.', + ) @override String getId() => id; @@ -44,11 +45,15 @@ class Warehouse extends amplify_core.Model { return WarehouseModelIdentifier(id: id, name: _name!, region: _region!); } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -57,11 +62,15 @@ class Warehouse extends amplify_core.Model { return _name!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -70,11 +79,15 @@ class Warehouse extends amplify_core.Model { return _region!; } catch (e) { throw amplify_core.AmplifyCodeGenModelException( - amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastExceptionMessage, - recoverySuggestion: amplify_core.AmplifyExceptionMessages - .codeGenRequiredFieldForceCastRecoverySuggestion, - underlyingException: e.toString()); + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastExceptionMessage, + recoverySuggestion: + amplify_core + .AmplifyExceptionMessages + .codeGenRequiredFieldForceCastRecoverySuggestion, + underlyingException: e.toString(), + ); } } @@ -86,19 +99,27 @@ class Warehouse extends amplify_core.Model { return _updatedAt; } - const Warehouse._internal( - {required this.id, required name, required region, createdAt, updatedAt}) - : _name = name, - _region = region, - _createdAt = createdAt, - _updatedAt = updatedAt; - - factory Warehouse( - {String? id, required String name, required String region}) { + const Warehouse._internal({ + required this.id, + required name, + required region, + createdAt, + updatedAt, + }) : _name = name, + _region = region, + _createdAt = createdAt, + _updatedAt = updatedAt; + + factory Warehouse({ + String? id, + required String name, + required String region, + }) { return Warehouse._internal( - id: id == null ? amplify_core.UUID.getUUID() : id, - name: name, - region: region); + id: id == null ? amplify_core.UUID.getUUID() : id, + name: name, + region: region, + ); } bool equals(Object other) { @@ -125,11 +146,14 @@ class Warehouse extends amplify_core.Model { buffer.write("id=" + "$id" + ", "); buffer.write("name=" + "$_name" + ", "); buffer.write("region=" + "$_region" + ", "); - buffer.write("createdAt=" + - (_createdAt != null ? _createdAt!.format() : "null") + - ", "); buffer.write( - "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null")); + "createdAt=" + + (_createdAt != null ? _createdAt!.format() : "null") + + ", ", + ); + buffer.write( + "updatedAt=" + (_updatedAt != null ? _updatedAt!.format() : "null"), + ); buffer.write("}"); return buffer.toString(); @@ -144,78 +168,97 @@ class Warehouse extends amplify_core.Model { } Warehouse.fromJson(Map json) - : id = json['id'], - _name = json['name'], - _region = json['region'], - _createdAt = json['createdAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['createdAt']) - : null, - _updatedAt = json['updatedAt'] != null - ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) - : null; + : id = json['id'], + _name = json['name'], + _region = json['region'], + _createdAt = + json['createdAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['createdAt']) + : null, + _updatedAt = + json['updatedAt'] != null + ? amplify_core.TemporalDateTime.fromString(json['updatedAt']) + : null; Map toJson() => { - 'id': id, - 'name': _name, - 'region': _region, - 'createdAt': _createdAt?.format(), - 'updatedAt': _updatedAt?.format() - }; + 'id': id, + 'name': _name, + 'region': _region, + 'createdAt': _createdAt?.format(), + 'updatedAt': _updatedAt?.format(), + }; Map toMap() => { - 'id': id, - 'name': _name, - 'region': _region, - 'createdAt': _createdAt, - 'updatedAt': _updatedAt - }; + 'id': id, + 'name': _name, + 'region': _region, + 'createdAt': _createdAt, + 'updatedAt': _updatedAt, + }; static final amplify_core.QueryModelIdentifier - MODEL_IDENTIFIER = + MODEL_IDENTIFIER = amplify_core.QueryModelIdentifier(); static final ID = amplify_core.QueryField(fieldName: "id"); static final NAME = amplify_core.QueryField(fieldName: "name"); static final REGION = amplify_core.QueryField(fieldName: "region"); static var schema = amplify_core.Model.defineSchema( - define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { - modelSchemaDefinition.name = "Warehouse"; - modelSchemaDefinition.pluralName = "Warehouses"; - - modelSchemaDefinition.indexes = [ - amplify_core.ModelIndex( - fields: const ["id", "name", "region"], name: null) - ]; - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Warehouse.NAME, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.field( - key: Warehouse.REGION, - isRequired: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.string))); - - modelSchemaDefinition.addField( + define: (amplify_core.ModelSchemaDefinition modelSchemaDefinition) { + modelSchemaDefinition.name = "Warehouse"; + modelSchemaDefinition.pluralName = "Warehouses"; + + modelSchemaDefinition.indexes = [ + amplify_core.ModelIndex( + fields: const ["id", "name", "region"], + name: null, + ), + ]; + + modelSchemaDefinition.addField(amplify_core.ModelFieldDefinition.id()); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Warehouse.NAME, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( + amplify_core.ModelFieldDefinition.field( + key: Warehouse.REGION, + isRequired: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.string, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'createdAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - - modelSchemaDefinition.addField( + fieldName: 'createdAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + + modelSchemaDefinition.addField( amplify_core.ModelFieldDefinition.nonQueryField( - fieldName: 'updatedAt', - isRequired: false, - isReadOnly: true, - ofType: amplify_core.ModelFieldType( - amplify_core.ModelFieldTypeEnum.dateTime))); - }); + fieldName: 'updatedAt', + isRequired: false, + isReadOnly: true, + ofType: amplify_core.ModelFieldType( + amplify_core.ModelFieldTypeEnum.dateTime, + ), + ), + ); + }, + ); } class _WarehouseModelType extends amplify_core.ModelType { @@ -246,18 +289,24 @@ class WarehouseModelIdentifier * Create an instance of WarehouseModelIdentifier using [id] the primary key. * And [name], [region] the sort keys. */ - const WarehouseModelIdentifier( - {required this.id, required this.name, required this.region}); + const WarehouseModelIdentifier({ + required this.id, + required this.name, + required this.region, + }); @override - Map serializeAsMap() => - ({'id': id, 'name': name, 'region': region}); + Map serializeAsMap() => ({ + 'id': id, + 'name': name, + 'region': region, + }); @override - List> serializeAsList() => serializeAsMap() - .entries - .map((entry) => ({entry.key: entry.value})) - .toList(); + List> serializeAsList() => + serializeAsMap().entries + .map((entry) => ({entry.key: entry.value})) + .toList(); @override String serializeAsString() => serializeAsMap().values.join('#'); diff --git a/packages/test/amplify_test/pubspec.yaml b/packages/test/amplify_test/pubspec.yaml index 12ac2cf770..520d86f6a8 100644 --- a/packages/test/amplify_test/pubspec.yaml +++ b/packages/test/amplify_test/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/aws-amplify/amplify-flutter publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: amplify_core: any diff --git a/packages/test/pub_server/bin/pub_server.dart b/packages/test/pub_server/bin/pub_server.dart index ae3030ff65..f95ff8906c 100644 --- a/packages/test/pub_server/bin/pub_server.dart +++ b/packages/test/pub_server/bin/pub_server.dart @@ -11,44 +11,45 @@ import 'package:pub_server/src/server.dart'; import 'package:shelf/shelf_io.dart' as io; Future main(List args) async { - final argParser = ArgParser() - ..addOption( - 'data-dir', - abbr: 'd', - help: 'The directory to store the database and uploads in.', - ) - ..addFlag( - 'launch', - help: - 'Seeds the pub server. Must specify with --local-path or --git-url.', - defaultsTo: false, - ) - ..addOption( - 'local-path', - help: 'Seeds the pub server with the given path.', - ) - ..addOption( - 'git-url', - help: 'Seeds the pub server with the given git repository.', - ) - ..addOption( - 'git-ref', - help: 'The git ref to use when launching from a git repository.', - defaultsTo: 'main', - ) - ..addFlag( - 'verbose', - abbr: 'v', - help: 'Enables verbose logging.', - negatable: false, - defaultsTo: false, - ) - ..addOption( - 'port', - abbr: 'p', - defaultsTo: '0', - help: 'The port to serve on.', - ); + final argParser = + ArgParser() + ..addOption( + 'data-dir', + abbr: 'd', + help: 'The directory to store the database and uploads in.', + ) + ..addFlag( + 'launch', + help: + 'Seeds the pub server. Must specify with --local-path or --git-url.', + defaultsTo: false, + ) + ..addOption( + 'local-path', + help: 'Seeds the pub server with the given path.', + ) + ..addOption( + 'git-url', + help: 'Seeds the pub server with the given git repository.', + ) + ..addOption( + 'git-ref', + help: 'The git ref to use when launching from a git repository.', + defaultsTo: 'main', + ) + ..addFlag( + 'verbose', + abbr: 'v', + help: 'Enables verbose logging.', + negatable: false, + defaultsTo: false, + ) + ..addOption( + 'port', + abbr: 'p', + defaultsTo: '0', + help: 'The port to serve on.', + ); final argResults = argParser.parse(args); @@ -70,14 +71,13 @@ Future main(List args) async { } } - var dataDir = argResults['data-dir'] as String? ?? + var dataDir = + argResults['data-dir'] as String? ?? const String.fromEnvironment('DATA_DIR'); if (dataDir.isEmpty) { dataDir = Directory.systemTemp.createTempSync('pub-local').path; } - final server = PubServer.prod( - dataDir: dataDir, - ); + final server = PubServer.prod(dataDir: dataDir); var port = int.parse(argResults['port'] as String); if (port == 0) { port = const int.fromEnvironment('PORT', defaultValue: 0); diff --git a/packages/test/pub_server/lib/pub_server.dart b/packages/test/pub_server/lib/pub_server.dart index 85c2e76204..c513b41506 100644 --- a/packages/test/pub_server/lib/pub_server.dart +++ b/packages/test/pub_server/lib/pub_server.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// pub_server -library pub_server; +library; export 'src/database.dart'; export 'src/launcher.dart'; diff --git a/packages/test/pub_server/lib/src/database.dart b/packages/test/pub_server/lib/src/database.dart index 747fbdf672..24ebde6915 100644 --- a/packages/test/pub_server/lib/src/database.dart +++ b/packages/test/pub_server/lib/src/database.dart @@ -45,15 +45,12 @@ class PubDatabase extends _$PubDatabase { required String changelog, }) async { await transaction(() async { - final existingPackage = await (select(packages) - ..where((p) => p.name.equals(name))) - .getSingleOrNull(); + final existingPackage = + await (select(packages) + ..where((p) => p.name.equals(name))).getSingleOrNull(); if (existingPackage == null) { await into(packages).insert( - PackagesCompanion.insert( - name: name, - latest: version.toString(), - ), + PackagesCompanion.insert(name: name, latest: version.toString()), ); } await into(packageVersions).insert( @@ -72,15 +69,15 @@ class PubDatabase extends _$PubDatabase { /// Returns the package with the given [packageName]. Future getPackage(String packageName) async { - final package = await (select(packages) - ..where((p) => p.name.equals(packageName))) - .getSingleOrNull(); + final package = + await (select(packages) + ..where((p) => p.name.equals(packageName))).getSingleOrNull(); if (package == null) { return null; } - final versions = await (select(packageVersions) - ..where((row) => row.package.equals(packageName))) - .get(); + final versions = + await (select(packageVersions) + ..where((row) => row.package.equals(packageName))).get(); versions.sort((a, b) { return -Version.parse(a.version).compareTo(Version.parse(b.version)); }); diff --git a/packages/test/pub_server/lib/src/database.g.dart b/packages/test/pub_server/lib/src/database.g.dart index 09672a7945..b5fbffa382 100644 --- a/packages/test/pub_server/lib/src/database.g.dart +++ b/packages/test/pub_server/lib/src/database.g.dart @@ -11,13 +11,21 @@ class $PackagesTable extends Packages with TableInfo<$PackagesTable, Package> { static const VerificationMeta _nameMeta = const VerificationMeta('name'); @override late final GeneratedColumn name = GeneratedColumn( - 'name', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + 'name', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); static const VerificationMeta _latestMeta = const VerificationMeta('latest'); @override late final GeneratedColumn latest = GeneratedColumn( - 'latest', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + 'latest', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); @override List get $columns => [name, latest]; @override @@ -26,19 +34,25 @@ class $PackagesTable extends Packages with TableInfo<$PackagesTable, Package> { String get actualTableName => $name; static const String $name = 'packages'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('name')) { context.handle( - _nameMeta, name.isAcceptableOrUnknown(data['name']!, _nameMeta)); + _nameMeta, + name.isAcceptableOrUnknown(data['name']!, _nameMeta), + ); } else if (isInserting) { context.missing(_nameMeta); } if (data.containsKey('latest')) { - context.handle(_latestMeta, - latest.isAcceptableOrUnknown(data['latest']!, _latestMeta)); + context.handle( + _latestMeta, + latest.isAcceptableOrUnknown(data['latest']!, _latestMeta), + ); } else if (isInserting) { context.missing(_latestMeta); } @@ -51,10 +65,16 @@ class $PackagesTable extends Packages with TableInfo<$PackagesTable, Package> { Package map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return Package( - name: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}name'])!, - latest: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}latest'])!, + name: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}name'], + )!, + latest: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}latest'], + )!, ); } @@ -77,14 +97,13 @@ class Package extends DataClass implements Insertable { } PackagesCompanion toCompanion(bool nullToAbsent) { - return PackagesCompanion( - name: Value(name), - latest: Value(latest), - ); + return PackagesCompanion(name: Value(name), latest: Value(latest)); } - factory Package.fromJson(Map json, - {ValueSerializer? serializer}) { + factory Package.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return Package( name: serializer.fromJson(json['name']), @@ -100,10 +119,8 @@ class Package extends DataClass implements Insertable { }; } - Package copyWith({String? name, String? latest}) => Package( - name: name ?? this.name, - latest: latest ?? this.latest, - ); + Package copyWith({String? name, String? latest}) => + Package(name: name ?? this.name, latest: latest ?? this.latest); Package copyWithCompanion(PackagesCompanion data) { return Package( name: data.name.present ? data.name.value : this.name, @@ -143,8 +160,8 @@ class PackagesCompanion extends UpdateCompanion { required String name, required String latest, this.rowid = const Value.absent(), - }) : name = Value(name), - latest = Value(latest); + }) : name = Value(name), + latest = Value(latest); static Insertable custom({ Expression? name, Expression? latest, @@ -157,8 +174,11 @@ class PackagesCompanion extends UpdateCompanion { }); } - PackagesCompanion copyWith( - {Value? name, Value? latest, Value? rowid}) { + PackagesCompanion copyWith({ + Value? name, + Value? latest, + Value? rowid, + }) { return PackagesCompanion( name: name ?? this.name, latest: latest ?? this.latest, @@ -198,101 +218,156 @@ class $PackageVersionsTable extends PackageVersions final GeneratedDatabase attachedDatabase; final String? _alias; $PackageVersionsTable(this.attachedDatabase, [this._alias]); - static const VerificationMeta _packageMeta = - const VerificationMeta('package'); + static const VerificationMeta _packageMeta = const VerificationMeta( + 'package', + ); @override late final GeneratedColumn package = GeneratedColumn( - 'package', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _versionMeta = - const VerificationMeta('version'); + 'package', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _versionMeta = const VerificationMeta( + 'version', + ); @override late final GeneratedColumn version = GeneratedColumn( - 'version', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _archiveUrlMeta = - const VerificationMeta('archiveUrl'); + 'version', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _archiveUrlMeta = const VerificationMeta( + 'archiveUrl', + ); @override late final GeneratedColumn archiveUrl = GeneratedColumn( - 'archive_url', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _pubspecMeta = - const VerificationMeta('pubspec'); + 'archive_url', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _pubspecMeta = const VerificationMeta( + 'pubspec', + ); @override late final GeneratedColumn pubspec = GeneratedColumn( - 'pubspec', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + 'pubspec', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); static const VerificationMeta _readmeMeta = const VerificationMeta('readme'); @override late final GeneratedColumn readme = GeneratedColumn( - 'readme', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _changelogMeta = - const VerificationMeta('changelog'); + 'readme', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _changelogMeta = const VerificationMeta( + 'changelog', + ); @override late final GeneratedColumn changelog = GeneratedColumn( - 'changelog', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); - static const VerificationMeta _publishedMeta = - const VerificationMeta('published'); + 'changelog', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); + static const VerificationMeta _publishedMeta = const VerificationMeta( + 'published', + ); @override late final GeneratedColumn published = GeneratedColumn( - 'published', aliasedName, false, - type: DriftSqlType.dateTime, requiredDuringInsert: true); + 'published', + aliasedName, + false, + type: DriftSqlType.dateTime, + requiredDuringInsert: true, + ); @override - List get $columns => - [package, version, archiveUrl, pubspec, readme, changelog, published]; + List get $columns => [ + package, + version, + archiveUrl, + pubspec, + readme, + changelog, + published, + ]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'package_versions'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('package')) { - context.handle(_packageMeta, - package.isAcceptableOrUnknown(data['package']!, _packageMeta)); + context.handle( + _packageMeta, + package.isAcceptableOrUnknown(data['package']!, _packageMeta), + ); } else if (isInserting) { context.missing(_packageMeta); } if (data.containsKey('version')) { - context.handle(_versionMeta, - version.isAcceptableOrUnknown(data['version']!, _versionMeta)); + context.handle( + _versionMeta, + version.isAcceptableOrUnknown(data['version']!, _versionMeta), + ); } else if (isInserting) { context.missing(_versionMeta); } if (data.containsKey('archive_url')) { context.handle( - _archiveUrlMeta, - archiveUrl.isAcceptableOrUnknown( - data['archive_url']!, _archiveUrlMeta)); + _archiveUrlMeta, + archiveUrl.isAcceptableOrUnknown(data['archive_url']!, _archiveUrlMeta), + ); } else if (isInserting) { context.missing(_archiveUrlMeta); } if (data.containsKey('pubspec')) { - context.handle(_pubspecMeta, - pubspec.isAcceptableOrUnknown(data['pubspec']!, _pubspecMeta)); + context.handle( + _pubspecMeta, + pubspec.isAcceptableOrUnknown(data['pubspec']!, _pubspecMeta), + ); } else if (isInserting) { context.missing(_pubspecMeta); } if (data.containsKey('readme')) { - context.handle(_readmeMeta, - readme.isAcceptableOrUnknown(data['readme']!, _readmeMeta)); + context.handle( + _readmeMeta, + readme.isAcceptableOrUnknown(data['readme']!, _readmeMeta), + ); } else if (isInserting) { context.missing(_readmeMeta); } if (data.containsKey('changelog')) { - context.handle(_changelogMeta, - changelog.isAcceptableOrUnknown(data['changelog']!, _changelogMeta)); + context.handle( + _changelogMeta, + changelog.isAcceptableOrUnknown(data['changelog']!, _changelogMeta), + ); } else if (isInserting) { context.missing(_changelogMeta); } if (data.containsKey('published')) { - context.handle(_publishedMeta, - published.isAcceptableOrUnknown(data['published']!, _publishedMeta)); + context.handle( + _publishedMeta, + published.isAcceptableOrUnknown(data['published']!, _publishedMeta), + ); } else if (isInserting) { context.missing(_publishedMeta); } @@ -305,20 +380,41 @@ class $PackageVersionsTable extends PackageVersions PackageVersion map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return PackageVersion( - package: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}package'])!, - version: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}version'])!, - archiveUrl: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}archive_url'])!, - pubspec: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}pubspec'])!, - readme: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}readme'])!, - changelog: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}changelog'])!, - published: attachedDatabase.typeMapping - .read(DriftSqlType.dateTime, data['${effectivePrefix}published'])!, + package: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}package'], + )!, + version: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}version'], + )!, + archiveUrl: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}archive_url'], + )!, + pubspec: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}pubspec'], + )!, + readme: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}readme'], + )!, + changelog: + attachedDatabase.typeMapping.read( + DriftSqlType.string, + data['${effectivePrefix}changelog'], + )!, + published: + attachedDatabase.typeMapping.read( + DriftSqlType.dateTime, + data['${effectivePrefix}published'], + )!, ); } @@ -336,14 +432,15 @@ class PackageVersion extends DataClass implements Insertable { final String readme; final String changelog; final DateTime published; - const PackageVersion( - {required this.package, - required this.version, - required this.archiveUrl, - required this.pubspec, - required this.readme, - required this.changelog, - required this.published}); + const PackageVersion({ + required this.package, + required this.version, + required this.archiveUrl, + required this.pubspec, + required this.readme, + required this.changelog, + required this.published, + }); @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -369,8 +466,10 @@ class PackageVersion extends DataClass implements Insertable { ); } - factory PackageVersion.fromJson(Map json, - {ValueSerializer? serializer}) { + factory PackageVersion.fromJson( + Map json, { + ValueSerializer? serializer, + }) { serializer ??= driftRuntimeOptions.defaultSerializer; return PackageVersion( package: serializer.fromJson(json['package']), @@ -396,23 +495,23 @@ class PackageVersion extends DataClass implements Insertable { }; } - PackageVersion copyWith( - {String? package, - String? version, - String? archiveUrl, - String? pubspec, - String? readme, - String? changelog, - DateTime? published}) => - PackageVersion( - package: package ?? this.package, - version: version ?? this.version, - archiveUrl: archiveUrl ?? this.archiveUrl, - pubspec: pubspec ?? this.pubspec, - readme: readme ?? this.readme, - changelog: changelog ?? this.changelog, - published: published ?? this.published, - ); + PackageVersion copyWith({ + String? package, + String? version, + String? archiveUrl, + String? pubspec, + String? readme, + String? changelog, + DateTime? published, + }) => PackageVersion( + package: package ?? this.package, + version: version ?? this.version, + archiveUrl: archiveUrl ?? this.archiveUrl, + pubspec: pubspec ?? this.pubspec, + readme: readme ?? this.readme, + changelog: changelog ?? this.changelog, + published: published ?? this.published, + ); PackageVersion copyWithCompanion(PackageVersionsCompanion data) { return PackageVersion( package: data.package.present ? data.package.value : this.package, @@ -442,7 +541,14 @@ class PackageVersion extends DataClass implements Insertable { @override int get hashCode => Object.hash( - package, version, archiveUrl, pubspec, readme, changelog, published); + package, + version, + archiveUrl, + pubspec, + readme, + changelog, + published, + ); @override bool operator ==(Object other) => identical(this, other) || @@ -484,13 +590,13 @@ class PackageVersionsCompanion extends UpdateCompanion { required String changelog, required DateTime published, this.rowid = const Value.absent(), - }) : package = Value(package), - version = Value(version), - archiveUrl = Value(archiveUrl), - pubspec = Value(pubspec), - readme = Value(readme), - changelog = Value(changelog), - published = Value(published); + }) : package = Value(package), + version = Value(version), + archiveUrl = Value(archiveUrl), + pubspec = Value(pubspec), + readme = Value(readme), + changelog = Value(changelog), + published = Value(published); static Insertable custom({ Expression? package, Expression? version, @@ -513,15 +619,16 @@ class PackageVersionsCompanion extends UpdateCompanion { }); } - PackageVersionsCompanion copyWith( - {Value? package, - Value? version, - Value? archiveUrl, - Value? pubspec, - Value? readme, - Value? changelog, - Value? published, - Value? rowid}) { + PackageVersionsCompanion copyWith({ + Value? package, + Value? version, + Value? archiveUrl, + Value? pubspec, + Value? readme, + Value? changelog, + Value? published, + Value? rowid, + }) { return PackageVersionsCompanion( package: package ?? this.package, version: version ?? this.version, @@ -584,26 +691,31 @@ abstract class _$PubDatabase extends GeneratedDatabase { _$PubDatabase(QueryExecutor e) : super(e); $PubDatabaseManager get managers => $PubDatabaseManager(this); late final $PackagesTable packages = $PackagesTable(this); - late final $PackageVersionsTable packageVersions = - $PackageVersionsTable(this); + late final $PackageVersionsTable packageVersions = $PackageVersionsTable( + this, + ); @override Iterable> get allTables => allSchemaEntities.whereType>(); @override - List get allSchemaEntities => - [packages, packageVersions]; + List get allSchemaEntities => [ + packages, + packageVersions, + ]; } -typedef $$PackagesTableCreateCompanionBuilder = PackagesCompanion Function({ - required String name, - required String latest, - Value rowid, -}); -typedef $$PackagesTableUpdateCompanionBuilder = PackagesCompanion Function({ - Value name, - Value latest, - Value rowid, -}); +typedef $$PackagesTableCreateCompanionBuilder = + PackagesCompanion Function({ + required String name, + required String latest, + Value rowid, + }); +typedef $$PackagesTableUpdateCompanionBuilder = + PackagesCompanion Function({ + Value name, + Value latest, + Value rowid, + }); class $$PackagesTableFilterComposer extends Composer<_$PubDatabase, $PackagesTable> { @@ -615,10 +727,14 @@ class $$PackagesTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get name => $composableBuilder( - column: $table.name, builder: (column) => ColumnFilters(column)); + column: $table.name, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get latest => $composableBuilder( - column: $table.latest, builder: (column) => ColumnFilters(column)); + column: $table.latest, + builder: (column) => ColumnFilters(column), + ); } class $$PackagesTableOrderingComposer @@ -631,10 +747,14 @@ class $$PackagesTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get name => $composableBuilder( - column: $table.name, builder: (column) => ColumnOrderings(column)); + column: $table.name, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get latest => $composableBuilder( - column: $table.latest, builder: (column) => ColumnOrderings(column)); + column: $table.latest, + builder: (column) => ColumnOrderings(column), + ); } class $$PackagesTableAnnotationComposer @@ -653,89 +773,99 @@ class $$PackagesTableAnnotationComposer $composableBuilder(column: $table.latest, builder: (column) => column); } -class $$PackagesTableTableManager extends RootTableManager< - _$PubDatabase, - $PackagesTable, - Package, - $$PackagesTableFilterComposer, - $$PackagesTableOrderingComposer, - $$PackagesTableAnnotationComposer, - $$PackagesTableCreateCompanionBuilder, - $$PackagesTableUpdateCompanionBuilder, - (Package, BaseReferences<_$PubDatabase, $PackagesTable, Package>), - Package, - PrefetchHooks Function()> { +class $$PackagesTableTableManager + extends + RootTableManager< + _$PubDatabase, + $PackagesTable, + Package, + $$PackagesTableFilterComposer, + $$PackagesTableOrderingComposer, + $$PackagesTableAnnotationComposer, + $$PackagesTableCreateCompanionBuilder, + $$PackagesTableUpdateCompanionBuilder, + (Package, BaseReferences<_$PubDatabase, $PackagesTable, Package>), + Package, + PrefetchHooks Function() + > { $$PackagesTableTableManager(_$PubDatabase db, $PackagesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$PackagesTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$PackagesTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$PackagesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value name = const Value.absent(), - Value latest = const Value.absent(), - Value rowid = const Value.absent(), - }) => - PackagesCompanion( - name: name, - latest: latest, - rowid: rowid, - ), - createCompanionCallback: ({ - required String name, - required String latest, - Value rowid = const Value.absent(), - }) => - PackagesCompanion.insert( - name: name, - latest: latest, - rowid: rowid, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => $$PackagesTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$PackagesTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: + () => $$PackagesTableAnnotationComposer($db: db, $table: table), + updateCompanionCallback: + ({ + Value name = const Value.absent(), + Value latest = const Value.absent(), + Value rowid = const Value.absent(), + }) => PackagesCompanion(name: name, latest: latest, rowid: rowid), + createCompanionCallback: + ({ + required String name, + required String latest, + Value rowid = const Value.absent(), + }) => PackagesCompanion.insert( + name: name, + latest: latest, + rowid: rowid, + ), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$PackagesTableProcessedTableManager = ProcessedTableManager< - _$PubDatabase, - $PackagesTable, - Package, - $$PackagesTableFilterComposer, - $$PackagesTableOrderingComposer, - $$PackagesTableAnnotationComposer, - $$PackagesTableCreateCompanionBuilder, - $$PackagesTableUpdateCompanionBuilder, - (Package, BaseReferences<_$PubDatabase, $PackagesTable, Package>), - Package, - PrefetchHooks Function()>; -typedef $$PackageVersionsTableCreateCompanionBuilder = PackageVersionsCompanion - Function({ - required String package, - required String version, - required String archiveUrl, - required String pubspec, - required String readme, - required String changelog, - required DateTime published, - Value rowid, -}); -typedef $$PackageVersionsTableUpdateCompanionBuilder = PackageVersionsCompanion - Function({ - Value package, - Value version, - Value archiveUrl, - Value pubspec, - Value readme, - Value changelog, - Value published, - Value rowid, -}); +typedef $$PackagesTableProcessedTableManager = + ProcessedTableManager< + _$PubDatabase, + $PackagesTable, + Package, + $$PackagesTableFilterComposer, + $$PackagesTableOrderingComposer, + $$PackagesTableAnnotationComposer, + $$PackagesTableCreateCompanionBuilder, + $$PackagesTableUpdateCompanionBuilder, + (Package, BaseReferences<_$PubDatabase, $PackagesTable, Package>), + Package, + PrefetchHooks Function() + >; +typedef $$PackageVersionsTableCreateCompanionBuilder = + PackageVersionsCompanion Function({ + required String package, + required String version, + required String archiveUrl, + required String pubspec, + required String readme, + required String changelog, + required DateTime published, + Value rowid, + }); +typedef $$PackageVersionsTableUpdateCompanionBuilder = + PackageVersionsCompanion Function({ + Value package, + Value version, + Value archiveUrl, + Value pubspec, + Value readme, + Value changelog, + Value published, + Value rowid, + }); class $$PackageVersionsTableFilterComposer extends Composer<_$PubDatabase, $PackageVersionsTable> { @@ -747,25 +877,39 @@ class $$PackageVersionsTableFilterComposer super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get package => $composableBuilder( - column: $table.package, builder: (column) => ColumnFilters(column)); + column: $table.package, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get version => $composableBuilder( - column: $table.version, builder: (column) => ColumnFilters(column)); + column: $table.version, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get archiveUrl => $composableBuilder( - column: $table.archiveUrl, builder: (column) => ColumnFilters(column)); + column: $table.archiveUrl, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get pubspec => $composableBuilder( - column: $table.pubspec, builder: (column) => ColumnFilters(column)); + column: $table.pubspec, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get readme => $composableBuilder( - column: $table.readme, builder: (column) => ColumnFilters(column)); + column: $table.readme, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get changelog => $composableBuilder( - column: $table.changelog, builder: (column) => ColumnFilters(column)); + column: $table.changelog, + builder: (column) => ColumnFilters(column), + ); ColumnFilters get published => $composableBuilder( - column: $table.published, builder: (column) => ColumnFilters(column)); + column: $table.published, + builder: (column) => ColumnFilters(column), + ); } class $$PackageVersionsTableOrderingComposer @@ -778,25 +922,39 @@ class $$PackageVersionsTableOrderingComposer super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get package => $composableBuilder( - column: $table.package, builder: (column) => ColumnOrderings(column)); + column: $table.package, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get version => $composableBuilder( - column: $table.version, builder: (column) => ColumnOrderings(column)); + column: $table.version, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get archiveUrl => $composableBuilder( - column: $table.archiveUrl, builder: (column) => ColumnOrderings(column)); + column: $table.archiveUrl, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get pubspec => $composableBuilder( - column: $table.pubspec, builder: (column) => ColumnOrderings(column)); + column: $table.pubspec, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get readme => $composableBuilder( - column: $table.readme, builder: (column) => ColumnOrderings(column)); + column: $table.readme, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get changelog => $composableBuilder( - column: $table.changelog, builder: (column) => ColumnOrderings(column)); + column: $table.changelog, + builder: (column) => ColumnOrderings(column), + ); ColumnOrderings get published => $composableBuilder( - column: $table.published, builder: (column) => ColumnOrderings(column)); + column: $table.published, + builder: (column) => ColumnOrderings(column), + ); } class $$PackageVersionsTableAnnotationComposer @@ -815,7 +973,9 @@ class $$PackageVersionsTableAnnotationComposer $composableBuilder(column: $table.version, builder: (column) => column); GeneratedColumn get archiveUrl => $composableBuilder( - column: $table.archiveUrl, builder: (column) => column); + column: $table.archiveUrl, + builder: (column) => column, + ); GeneratedColumn get pubspec => $composableBuilder(column: $table.pubspec, builder: (column) => column); @@ -830,94 +990,120 @@ class $$PackageVersionsTableAnnotationComposer $composableBuilder(column: $table.published, builder: (column) => column); } -class $$PackageVersionsTableTableManager extends RootTableManager< - _$PubDatabase, - $PackageVersionsTable, - PackageVersion, - $$PackageVersionsTableFilterComposer, - $$PackageVersionsTableOrderingComposer, - $$PackageVersionsTableAnnotationComposer, - $$PackageVersionsTableCreateCompanionBuilder, - $$PackageVersionsTableUpdateCompanionBuilder, - ( - PackageVersion, - BaseReferences<_$PubDatabase, $PackageVersionsTable, PackageVersion> - ), - PackageVersion, - PrefetchHooks Function()> { +class $$PackageVersionsTableTableManager + extends + RootTableManager< + _$PubDatabase, + $PackageVersionsTable, + PackageVersion, + $$PackageVersionsTableFilterComposer, + $$PackageVersionsTableOrderingComposer, + $$PackageVersionsTableAnnotationComposer, + $$PackageVersionsTableCreateCompanionBuilder, + $$PackageVersionsTableUpdateCompanionBuilder, + ( + PackageVersion, + BaseReferences< + _$PubDatabase, + $PackageVersionsTable, + PackageVersion + >, + ), + PackageVersion, + PrefetchHooks Function() + > { $$PackageVersionsTableTableManager( - _$PubDatabase db, $PackageVersionsTable table) - : super(TableManagerState( + _$PubDatabase db, + $PackageVersionsTable table, + ) : super( + TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$PackageVersionsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$PackageVersionsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$PackageVersionsTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value package = const Value.absent(), - Value version = const Value.absent(), - Value archiveUrl = const Value.absent(), - Value pubspec = const Value.absent(), - Value readme = const Value.absent(), - Value changelog = const Value.absent(), - Value published = const Value.absent(), - Value rowid = const Value.absent(), - }) => - PackageVersionsCompanion( - package: package, - version: version, - archiveUrl: archiveUrl, - pubspec: pubspec, - readme: readme, - changelog: changelog, - published: published, - rowid: rowid, - ), - createCompanionCallback: ({ - required String package, - required String version, - required String archiveUrl, - required String pubspec, - required String readme, - required String changelog, - required DateTime published, - Value rowid = const Value.absent(), - }) => - PackageVersionsCompanion.insert( - package: package, - version: version, - archiveUrl: archiveUrl, - pubspec: pubspec, - readme: readme, - changelog: changelog, - published: published, - rowid: rowid, - ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + createFilteringComposer: + () => + $$PackageVersionsTableFilterComposer($db: db, $table: table), + createOrderingComposer: + () => $$PackageVersionsTableOrderingComposer( + $db: db, + $table: table, + ), + createComputedFieldComposer: + () => $$PackageVersionsTableAnnotationComposer( + $db: db, + $table: table, + ), + updateCompanionCallback: + ({ + Value package = const Value.absent(), + Value version = const Value.absent(), + Value archiveUrl = const Value.absent(), + Value pubspec = const Value.absent(), + Value readme = const Value.absent(), + Value changelog = const Value.absent(), + Value published = const Value.absent(), + Value rowid = const Value.absent(), + }) => PackageVersionsCompanion( + package: package, + version: version, + archiveUrl: archiveUrl, + pubspec: pubspec, + readme: readme, + changelog: changelog, + published: published, + rowid: rowid, + ), + createCompanionCallback: + ({ + required String package, + required String version, + required String archiveUrl, + required String pubspec, + required String readme, + required String changelog, + required DateTime published, + Value rowid = const Value.absent(), + }) => PackageVersionsCompanion.insert( + package: package, + version: version, + archiveUrl: archiveUrl, + pubspec: pubspec, + readme: readme, + changelog: changelog, + published: published, + rowid: rowid, + ), + withReferenceMapper: + (p0) => + p0 + .map( + (e) => ( + e.readTable(table), + BaseReferences(db, table, e), + ), + ) + .toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$PackageVersionsTableProcessedTableManager = ProcessedTableManager< - _$PubDatabase, - $PackageVersionsTable, - PackageVersion, - $$PackageVersionsTableFilterComposer, - $$PackageVersionsTableOrderingComposer, - $$PackageVersionsTableAnnotationComposer, - $$PackageVersionsTableCreateCompanionBuilder, - $$PackageVersionsTableUpdateCompanionBuilder, - ( +typedef $$PackageVersionsTableProcessedTableManager = + ProcessedTableManager< + _$PubDatabase, + $PackageVersionsTable, + PackageVersion, + $$PackageVersionsTableFilterComposer, + $$PackageVersionsTableOrderingComposer, + $$PackageVersionsTableAnnotationComposer, + $$PackageVersionsTableCreateCompanionBuilder, + $$PackageVersionsTableUpdateCompanionBuilder, + ( + PackageVersion, + BaseReferences<_$PubDatabase, $PackageVersionsTable, PackageVersion>, + ), PackageVersion, - BaseReferences<_$PubDatabase, $PackageVersionsTable, PackageVersion> - ), - PackageVersion, - PrefetchHooks Function()>; + PrefetchHooks Function() + >; class $PubDatabaseManager { final _$PubDatabase _db; diff --git a/packages/test/pub_server/lib/src/launcher.dart b/packages/test/pub_server/lib/src/launcher.dart index 3d5449b900..437214cc68 100644 --- a/packages/test/pub_server/lib/src/launcher.dart +++ b/packages/test/pub_server/lib/src/launcher.dart @@ -14,10 +14,7 @@ import 'package:pubspec_parse/pubspec_parse.dart'; /// /// Use [PubLauncher.git] or [PubLauncher.local] to create a launcher. class PubLauncher { - const PubLauncher( - this.pubServerUri, - this.packages, - ); + const PubLauncher(this.pubServerUri, this.packages); static final _logger = AWSLogger().createChild('PubLauncher'); @@ -52,11 +49,7 @@ class PubLauncher { ); if (isPublishable) { packages.add( - LocalPackage( - name: pubspec.name, - pubspec: pubspec, - path: path, - ), + LocalPackage(name: pubspec.name, pubspec: pubspec, path: path), ); } } @@ -81,13 +74,7 @@ class PubLauncher { // Clone repository _logger.info('Cloning $gitUrl@$gitRef to ${tmpDir.path}...'); - await runGit([ - 'clone', - '--depth=1', - '--no-checkout', - gitUrl, - tmpDir.path, - ]); + await runGit(['clone', '--depth=1', '--no-checkout', gitUrl, tmpDir.path]); final gitDir = await GitDir.fromExisting(tmpDir.path); // Fetch PRs @@ -139,16 +126,10 @@ class PubLauncher { _logger.info('Publishing ${package.name}...'); final result = await Process.run( package.flavor == PackageFlavor.flutter ? 'flutter' : 'dart', - [ - 'pub', - 'publish', - '--force', - ], + ['pub', 'publish', '--force'], runInShell: true, workingDirectory: package.path, - environment: { - 'PUB_HOSTED_URL': pubServerUri.toString(), - }, + environment: {'PUB_HOSTED_URL': pubServerUri.toString()}, stdoutEncoding: utf8, stderrEncoding: utf8, ); @@ -185,9 +166,10 @@ class LocalPackage { final String path; final Pubspec pubspec; - PackageFlavor get flavor => pubspec.dependencies.containsKey('flutter') - ? PackageFlavor.flutter - : PackageFlavor.dart; + PackageFlavor get flavor => + pubspec.dependencies.containsKey('flutter') + ? PackageFlavor.flutter + : PackageFlavor.dart; } // TODO(dnys1): Consolidate with `aft` logic. diff --git a/packages/test/pub_server/lib/src/models.dart b/packages/test/pub_server/lib/src/models.dart index 019b65b0d7..df5dc1cf84 100644 --- a/packages/test/pub_server/lib/src/models.dart +++ b/packages/test/pub_server/lib/src/models.dart @@ -65,10 +65,7 @@ class VersionResponse { @serializable class GetVersionResponse { - GetVersionResponse({ - required this.name, - required this.version, - }); + GetVersionResponse({required this.name, required this.version}); factory GetVersionResponse.fromJson(Map json) => _$GetVersionResponseFromJson(json); @@ -129,13 +126,13 @@ class PubPackageVersion { }); PubPackageVersion.fromDb(PackageVersion version) - : package = version.package, - version = Version.parse(version.version), - archiveUrl = version.archiveUrl, - pubspec = (loadYaml(version.pubspec) as YamlMap).cast(), - changelog = version.changelog, - readme = version.readme, - published = version.published; + : package = version.package, + version = Version.parse(version.version), + archiveUrl = version.archiveUrl, + pubspec = (loadYaml(version.pubspec) as YamlMap).cast(), + changelog = version.changelog, + readme = version.readme, + published = version.published; final String package; final Version version; diff --git a/packages/test/pub_server/lib/src/models.g.dart b/packages/test/pub_server/lib/src/models.g.dart index c105d59ded..384f5ea633 100644 --- a/packages/test/pub_server/lib/src/models.g.dart +++ b/packages/test/pub_server/lib/src/models.g.dart @@ -11,8 +11,9 @@ VersionResponse _$VersionResponseFromJson(Map json) => version: const VersionSerializer().fromJson(json['version'] as String), archiveUrl: json['archive_url'] as String, pubspec: json['pubspec'] as Map, - published: - const DateTimeSerializer().fromJson(json['published'] as String), + published: const DateTimeSerializer().fromJson( + json['published'] as String, + ), ); Map _$VersionResponseToJson(VersionResponse instance) => @@ -26,8 +27,9 @@ Map _$VersionResponseToJson(VersionResponse instance) => GetVersionResponse _$GetVersionResponseFromJson(Map json) => GetVersionResponse( name: json['name'] as String, - version: - VersionResponse.fromJson(json['version'] as Map), + version: VersionResponse.fromJson( + json['version'] as Map, + ), ); Map _$GetVersionResponseToJson(GetVersionResponse instance) => @@ -40,15 +42,16 @@ GetVersionsResponse _$GetVersionsResponseFromJson(Map json) => GetVersionsResponse( name: json['name'] as String, latest: VersionResponse.fromJson(json['latest'] as Map), - versions: (json['versions'] as List) - .map((e) => VersionResponse.fromJson(e as Map)) - .toList(), + versions: + (json['versions'] as List) + .map((e) => VersionResponse.fromJson(e as Map)) + .toList(), ); Map _$GetVersionsResponseToJson( - GetVersionsResponse instance) => - { - 'name': instance.name, - 'latest': instance.latest.toJson(), - 'versions': instance.versions.map((e) => e.toJson()).toList(), - }; + GetVersionsResponse instance, +) => { + 'name': instance.name, + 'latest': instance.latest.toJson(), + 'versions': instance.versions.map((e) => e.toJson()).toList(), +}; diff --git a/packages/test/pub_server/lib/src/server.dart b/packages/test/pub_server/lib/src/server.dart index 5cad678038..7496942c8b 100644 --- a/packages/test/pub_server/lib/src/server.dart +++ b/packages/test/pub_server/lib/src/server.dart @@ -26,11 +26,7 @@ part 'server.g.dart'; /// This follows the API documented at /// https://github.com/dart-lang/pub/blob/master/doc/repository-spec-v2.md class PubServer { - PubServer._({ - required this.db, - required this.dataDir, - required this.fs, - }); + PubServer._({required this.db, required this.dataDir, required this.fs}); /// Creates a new [PubServer] with a temporary directory for data. /// @@ -44,9 +40,9 @@ class PubServer { /// Creates a new [PubServer] with an in-memory file system and database. PubServer.test() - : db = PubDatabase.test(), - fs = MemoryFileSystem.test(), - dataDir = ''; + : db = PubDatabase.test(), + fs = MemoryFileSystem.test(), + dataDir = ''; static final _pubUri = Uri.parse('https://pub.dev/'); static final _logger = AWSLogger().createChild('PubServer'); @@ -79,9 +75,7 @@ class PubServer { static Response _okJson(Object? body) { return Response.ok( HttpPayload.json(body), - headers: { - AWSHeaders.contentType: 'application/vnd.pub.v2+json', - }, + headers: {AWSHeaders.contentType: 'application/vnd.pub.v2+json'}, ); } @@ -134,9 +128,10 @@ class PubServer { @Route.get('/api/packages/versions/new') Future newVersion(Request request) async { return _okJson({ - 'url': request.requestedUri - .resolve('/api/packages/versions/newUpload') - .toString(), + 'url': + request.requestedUri + .resolve('/api/packages/versions/newUpload') + .toString(), 'fields': {}, }); } @@ -147,9 +142,7 @@ class PubServer { @Route.post('/api/packages/versions/newUpload') Future upload(Request request) async { if (request.multipart() == null) { - return Response.badRequest( - body: 'Expected multipart request', - ); + return Response.badRequest(body: 'Expected multipart request'); } final formDataRequest = request.formData(); @@ -190,27 +183,19 @@ class PubServer { } if (pubspecYaml == null) { - return Response.badRequest( - body: 'Missing pubspec.yaml', - ); + return Response.badRequest(body: 'Missing pubspec.yaml'); } if (readme == null) { - return Response.badRequest( - body: 'Missing readme.md', - ); + return Response.badRequest(body: 'Missing readme.md'); } if (changelog == null) { - return Response.badRequest( - body: 'Missing changelog.md', - ); + return Response.badRequest(body: 'Missing changelog.md'); } final pubspec = Pubspec.parse(pubspecYaml); final version = pubspec.version; if (version == null) { - return Response.badRequest( - body: 'Missing version in pubspec.yaml', - ); + return Response.badRequest(body: 'Missing version in pubspec.yaml'); } final filepath = fs.path.join(dataDir, pubspec.name, '$version.tar.gz'); @@ -228,9 +213,10 @@ class PubServer { await db.upsertPackageVersion( name: pubspec.name, version: version, - archiveUrl: request.requestedUri - .resolve('/packages/${pubspec.name}/versions/$version.tar.gz') - .toString(), + archiveUrl: + request.requestedUri + .resolve('/packages/${pubspec.name}/versions/$version.tar.gz') + .toString(), pubspecYaml: pubspecYaml, readme: readme, changelog: changelog, @@ -238,9 +224,10 @@ class PubServer { return Response( 204, headers: { - AWSHeaders.location: request.requestedUri - .resolve('/api/packages/versions/newUploadFinish') - .toString(), + AWSHeaders.location: + request.requestedUri + .resolve('/api/packages/versions/newUploadFinish') + .toString(), }, ); } @@ -251,9 +238,7 @@ class PubServer { @Route.get('/api/packages/versions/newUploadFinish') Future uploadFinish(Request request) async { return _okJson({ - 'success': { - 'message': 'Package uploaded successfully.', - }, + 'success': {'message': 'Package uploaded successfully.'}, }); } @@ -294,9 +279,9 @@ class PubServer { } static Middleware get _loggerMiddleware => logRequests( - logger: (message, isError) => - (isError ? _logger.error : _logger.info)(message), - ); + logger: + (message, isError) => (isError ? _logger.error : _logger.info)(message), + ); Handler get handler => const Pipeline() .addMiddleware(_loggerMiddleware) @@ -308,12 +293,7 @@ class PubServer { Handler corsMiddleware(Handler handler) { return (request) { if (request.method == 'OPTIONS') { - return Response.ok( - null, - headers: { - 'Access-Control-Allow-Origin': '*', - }, - ); + return Response.ok(null, headers: {'Access-Control-Allow-Origin': '*'}); } return handler(request); }; diff --git a/packages/test/pub_server/lib/src/server.g.dart b/packages/test/pub_server/lib/src/server.g.dart index d26d696c5f..909b99bb14 100644 --- a/packages/test/pub_server/lib/src/server.g.dart +++ b/packages/test/pub_server/lib/src/server.g.dart @@ -8,26 +8,14 @@ part of 'server.dart'; Router _$PubServerRouter(PubServer service) { final router = Router(); - router.add( - 'GET', - r'/api/packages/', - service.getVersions, - ); + router.add('GET', r'/api/packages/', service.getVersions); router.add( 'GET', r'/api/packages//versions/', service.getVersion, ); - router.add( - 'GET', - r'/api/packages/versions/new', - service.newVersion, - ); - router.add( - 'POST', - r'/api/packages/versions/newUpload', - service.upload, - ); + router.add('GET', r'/api/packages/versions/new', service.newVersion); + router.add('POST', r'/api/packages/versions/newUpload', service.upload); router.add( 'GET', r'/api/packages/versions/newUploadFinish', diff --git a/packages/test/pub_server/pubspec.yaml b/packages/test/pub_server/pubspec.yaml index e5d4c70819..206c914359 100644 --- a/packages/test/pub_server/pubspec.yaml +++ b/packages/test/pub_server/pubspec.yaml @@ -6,7 +6,7 @@ issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: archive: ^3.3.7 @@ -19,7 +19,7 @@ dependencies: git: ^2.2.0 graphs: ^2.1.0 json_annotation: ">=4.9.0 <4.10.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ^1.8.0 pub_semver: ^2.1.3 pubspec_parse: ^1.2.2 @@ -32,7 +32,7 @@ dev_dependencies: amplify_lints: ">=2.0.3 <2.1.0" build_runner: ^2.4.9 drift_dev: ^2.25.1 - json_serializable: 6.8.0 + json_serializable: ^6.9.4 pub_api_client: ">=2.4.0 <2.7.0" # v2.7.0 introduces a new required field - archive_sha256 shelf_router_generator: ^1.0.5 test: ^1.22.1 diff --git a/packages/test/pub_server/test/common.dart b/packages/test/pub_server/test/common.dart index c80f43afe0..be43ca23ac 100644 --- a/packages/test/pub_server/test/common.dart +++ b/packages/test/pub_server/test/common.dart @@ -20,9 +20,7 @@ Future runProcess( runInShell: true, stdoutEncoding: utf8, stderrEncoding: utf8, - environment: { - 'PUB_HOSTED_URL': pubServerUri.toString(), - }, + environment: {'PUB_HOSTED_URL': pubServerUri.toString()}, ); if (process.exitCode != 0) { throw Exception( @@ -42,11 +40,7 @@ Future createPackage( }) async { await runProcess( 'dart', - [ - 'create', - '--no-pub', - name, - ], + ['create', '--no-pub', name], workingDirectory: workingDirectory, pubServerUri: pubServerUri, ); @@ -59,9 +53,7 @@ Future createPackage( } editor.update( ['dependencies'], - { - for (final dependency in dependencies) dependency: 'any', - }, + {for (final dependency in dependencies) dependency: 'any'}, ); await pubspecFile.writeAsString(editor.toString()); diff --git a/packages/test/pub_server/test/pub_launcher_test.dart b/packages/test/pub_server/test/pub_launcher_test.dart index b84a600c69..792a1a5b39 100644 --- a/packages/test/pub_server/test/pub_launcher_test.dart +++ b/packages/test/pub_server/test/pub_launcher_test.dart @@ -24,10 +24,7 @@ void main() { final pubServer = PubServer.test(); server = await io.serve(pubServer.handler, 'localhost', 0); pubServerUri = Uri.parse('http://localhost:${server.port}'); - client = PubClient( - pubUrl: pubServerUri.toString(), - debug: true, - ); + client = PubClient(pubUrl: pubServerUri.toString(), debug: true); tmpDir = await Directory.systemTemp.createTemp('pub_launcher_test_'); }); diff --git a/packages/test/pub_server/test/pub_server_test.dart b/packages/test/pub_server/test/pub_server_test.dart index 3058aecb82..969c086e7e 100644 --- a/packages/test/pub_server/test/pub_server_test.dart +++ b/packages/test/pub_server/test/pub_server_test.dart @@ -26,10 +26,7 @@ void main() { pubServer = PubServer.test(); server = await io.serve(pubServer.handler, 'localhost', 0); pubServerUri = Uri.parse('http://localhost:${server.port}'); - client = PubClient( - pubUrl: pubServerUri.toString(), - debug: true, - ); + client = PubClient(pubUrl: pubServerUri.toString(), debug: true); tmpDir = await Directory.systemTemp.createTemp('pub_server_test_'); }); diff --git a/packages/worker_bee/e2e/lib/common.dart b/packages/worker_bee/e2e/lib/common.dart index 6e6d6e820a..aec4a2608b 100644 --- a/packages/worker_bee/e2e/lib/common.dart +++ b/packages/worker_bee/e2e/lib/common.dart @@ -13,12 +13,7 @@ import 'package:worker_bee/worker_bee.dart'; final _logger = AWSLogger(); void _logMessage(AWSLogger logger, LogEntry entry) { - logger.log( - entry.level, - entry.message, - entry.error, - entry.stackTrace, - ); + logger.log(entry.level, entry.message, entry.error, entry.stackTrace); } E2EMessage createMessage() => message; diff --git a/packages/worker_bee/e2e/lib/e2e_message.dart b/packages/worker_bee/e2e/lib/e2e_message.dart index f8535ea0f9..705a3e33f9 100644 --- a/packages/worker_bee/e2e/lib/e2e_message.dart +++ b/packages/worker_bee/e2e/lib/e2e_message.dart @@ -52,11 +52,7 @@ abstract class E2EResult implements Built { static Serializer get serializer => _$e2EResultSerializer; } -@SerializersFor([ - E2EMessage, - E2EResult, - CustomType, -]) +@SerializersFor([E2EMessage, E2EResult, CustomType]) final Serializers serializers = _$serializers; const intStreamElements = [1, 2, 3, 4, 5]; @@ -69,7 +65,8 @@ final customTypeStreamElements = [ ]; E2EMessage get message => E2EMessage( - (b) => b + (b) => + b ..bigInt = BigInt.from(123) ..bool_ = true ..builtList.add('abc') @@ -87,4 +84,4 @@ E2EMessage get message => E2EMessage( ..regExp = RegExp(r'^\w{3}$') ..string = 'abc' ..uri = Uri.parse('https://example.com'), - ); +); diff --git a/packages/worker_bee/e2e/lib/e2e_message.g.dart b/packages/worker_bee/e2e/lib/e2e_message.g.dart index 5c11ad9df4..6769b3f37c 100644 --- a/packages/worker_bee/e2e/lib/e2e_message.g.dart +++ b/packages/worker_bee/e2e/lib/e2e_message.g.dart @@ -6,29 +6,41 @@ part of 'e2e_message.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$serializers = (new Serializers().toBuilder() - ..add(CustomType.serializer) - ..add(E2EMessage.serializer) - ..add(E2EResult.serializer) - ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(String)]), - () => new ListBuilder()) - ..addBuilderFactory( - const FullType(BuiltListMultimap, - const [const FullType(String), const FullType(String)]), - () => new ListMultimapBuilder()) - ..addBuilderFactory( - const FullType( - BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder()) - ..addBuilderFactory( - const FullType(BuiltSet, const [const FullType(String)]), - () => new SetBuilder()) - ..addBuilderFactory( - const FullType(BuiltSetMultimap, - const [const FullType(String), const FullType(String)]), - () => new SetMultimapBuilder())) - .build(); +Serializers _$serializers = + (new Serializers().toBuilder() + ..add(CustomType.serializer) + ..add(E2EMessage.serializer) + ..add(E2EResult.serializer) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(String)]), + () => new ListBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltListMultimap, const [ + const FullType(String), + const FullType(String), + ]), + () => new ListMultimapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + () => new MapBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSet, const [const FullType(String)]), + () => new SetBuilder(), + ) + ..addBuilderFactory( + const FullType(BuiltSetMultimap, const [ + const FullType(String), + const FullType(String), + ]), + () => new SetMultimapBuilder(), + )) + .build(); Serializer _$customTypeSerializer = new _$CustomTypeSerializer(); Serializer _$e2EMessageSerializer = new _$E2EMessageSerializer(); Serializer _$e2EResultSerializer = new _$E2EResultSerializer(); @@ -40,20 +52,28 @@ class _$CustomTypeSerializer implements StructuredSerializer { final String wireName = 'CustomType'; @override - Iterable serialize(Serializers serializers, CustomType object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + CustomType object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'customField', - serializers.serialize(object.customField, - specifiedType: const FullType(String)), + serializers.serialize( + object.customField, + specifiedType: const FullType(String), + ), ]; return result; } @override - CustomType deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + CustomType deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new CustomTypeBuilder(); final iterator = serialized.iterator; @@ -63,8 +83,12 @@ class _$CustomTypeSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'customField': - result.customField = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.customField = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; } } @@ -80,58 +104,91 @@ class _$E2EMessageSerializer implements StructuredSerializer { final String wireName = 'E2EMessage'; @override - Iterable serialize(Serializers serializers, E2EMessage object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + E2EMessage object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'bigInt', - serializers.serialize(object.bigInt, - specifiedType: const FullType(BigInt)), + serializers.serialize( + object.bigInt, + specifiedType: const FullType(BigInt), + ), 'bool_', serializers.serialize(object.bool_, specifiedType: const FullType(bool)), 'builtList', - serializers.serialize(object.builtList, - specifiedType: - const FullType(BuiltList, const [const FullType(String)])), + serializers.serialize( + object.builtList, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + ), 'builtListMultimap', - serializers.serialize(object.builtListMultimap, - specifiedType: const FullType(BuiltListMultimap, - const [const FullType(String), const FullType(String)])), + serializers.serialize( + object.builtListMultimap, + specifiedType: const FullType(BuiltListMultimap, const [ + const FullType(String), + const FullType(String), + ]), + ), 'builtMap', - serializers.serialize(object.builtMap, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(String)])), + serializers.serialize( + object.builtMap, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + ), 'builtSet', - serializers.serialize(object.builtSet, - specifiedType: - const FullType(BuiltSet, const [const FullType(String)])), + serializers.serialize( + object.builtSet, + specifiedType: const FullType(BuiltSet, const [const FullType(String)]), + ), 'builtSetMultimap', - serializers.serialize(object.builtSetMultimap, - specifiedType: const FullType(BuiltSetMultimap, - const [const FullType(String), const FullType(String)])), + serializers.serialize( + object.builtSetMultimap, + specifiedType: const FullType(BuiltSetMultimap, const [ + const FullType(String), + const FullType(String), + ]), + ), 'dateTime', - serializers.serialize(object.dateTime, - specifiedType: const FullType(DateTime)), + serializers.serialize( + object.dateTime, + specifiedType: const FullType(DateTime), + ), 'double_', - serializers.serialize(object.double_, - specifiedType: const FullType(double)), + serializers.serialize( + object.double_, + specifiedType: const FullType(double), + ), 'duration', - serializers.serialize(object.duration, - specifiedType: const FullType(Duration)), + serializers.serialize( + object.duration, + specifiedType: const FullType(Duration), + ), 'int_', serializers.serialize(object.int_, specifiedType: const FullType(int)), 'int64', serializers.serialize(object.int64, specifiedType: const FullType(Int64)), 'jsonObject', - serializers.serialize(object.jsonObject, - specifiedType: const FullType(JsonObject)), + serializers.serialize( + object.jsonObject, + specifiedType: const FullType(JsonObject), + ), 'num_', serializers.serialize(object.num_, specifiedType: const FullType(num)), 'regExp', - serializers.serialize(object.regExp, - specifiedType: const FullType(RegExp)), + serializers.serialize( + object.regExp, + specifiedType: const FullType(RegExp), + ), 'string', - serializers.serialize(object.string, - specifiedType: const FullType(String)), + serializers.serialize( + object.string, + specifiedType: const FullType(String), + ), 'uri', serializers.serialize(object.uri, specifiedType: const FullType(Uri)), ]; @@ -140,8 +197,11 @@ class _$E2EMessageSerializer implements StructuredSerializer { } @override - E2EMessage deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + E2EMessage deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new E2EMessageBuilder(); final iterator = serialized.iterator; @@ -151,79 +211,155 @@ class _$E2EMessageSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'bigInt': - result.bigInt = serializers.deserialize(value, - specifiedType: const FullType(BigInt))! as BigInt; + result.bigInt = + serializers.deserialize( + value, + specifiedType: const FullType(BigInt), + )! + as BigInt; break; case 'bool_': - result.bool_ = serializers.deserialize(value, - specifiedType: const FullType(bool))! as bool; + result.bool_ = + serializers.deserialize( + value, + specifiedType: const FullType(bool), + )! + as bool; break; case 'builtList': - result.builtList.replace(serializers.deserialize(value, - specifiedType: const FullType( - BuiltList, const [const FullType(String)]))! - as BuiltList); + result.builtList.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, const [ + const FullType(String), + ]), + )! + as BuiltList, + ); break; case 'builtListMultimap': - result.builtListMultimap.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltListMultimap, - const [const FullType(String), const FullType(String)]))!); + result.builtListMultimap.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltListMultimap, const [ + const FullType(String), + const FullType(String), + ]), + )!, + ); break; case 'builtMap': - result.builtMap.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, - const [const FullType(String), const FullType(String)]))!); + result.builtMap.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, const [ + const FullType(String), + const FullType(String), + ]), + )!, + ); break; case 'builtSet': - result.builtSet.replace(serializers.deserialize(value, - specifiedType: - const FullType(BuiltSet, const [const FullType(String)]))! - as BuiltSet); + result.builtSet.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSet, const [ + const FullType(String), + ]), + )! + as BuiltSet, + ); break; case 'builtSetMultimap': - result.builtSetMultimap.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltSetMultimap, - const [const FullType(String), const FullType(String)]))!); + result.builtSetMultimap.replace( + serializers.deserialize( + value, + specifiedType: const FullType(BuiltSetMultimap, const [ + const FullType(String), + const FullType(String), + ]), + )!, + ); break; case 'dateTime': - result.dateTime = serializers.deserialize(value, - specifiedType: const FullType(DateTime))! as DateTime; + result.dateTime = + serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + )! + as DateTime; break; case 'double_': - result.double_ = serializers.deserialize(value, - specifiedType: const FullType(double))! as double; + result.double_ = + serializers.deserialize( + value, + specifiedType: const FullType(double), + )! + as double; break; case 'duration': - result.duration = serializers.deserialize(value, - specifiedType: const FullType(Duration))! as Duration; + result.duration = + serializers.deserialize( + value, + specifiedType: const FullType(Duration), + )! + as Duration; break; case 'int_': - result.int_ = serializers.deserialize(value, - specifiedType: const FullType(int))! as int; + result.int_ = + serializers.deserialize( + value, + specifiedType: const FullType(int), + )! + as int; break; case 'int64': - result.int64 = serializers.deserialize(value, - specifiedType: const FullType(Int64))! as Int64; + result.int64 = + serializers.deserialize( + value, + specifiedType: const FullType(Int64), + )! + as Int64; break; case 'jsonObject': - result.jsonObject = serializers.deserialize(value, - specifiedType: const FullType(JsonObject))! as JsonObject; + result.jsonObject = + serializers.deserialize( + value, + specifiedType: const FullType(JsonObject), + )! + as JsonObject; break; case 'num_': - result.num_ = serializers.deserialize(value, - specifiedType: const FullType(num))! as num; + result.num_ = + serializers.deserialize( + value, + specifiedType: const FullType(num), + )! + as num; break; case 'regExp': - result.regExp = serializers.deserialize(value, - specifiedType: const FullType(RegExp))! as RegExp; + result.regExp = + serializers.deserialize( + value, + specifiedType: const FullType(RegExp), + )! + as RegExp; break; case 'string': - result.string = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.string = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'uri': - result.uri = serializers.deserialize(value, - specifiedType: const FullType(Uri))! as Uri; + result.uri = + serializers.deserialize( + value, + specifiedType: const FullType(Uri), + )! + as Uri; break; } } @@ -239,20 +375,28 @@ class _$E2EResultSerializer implements StructuredSerializer { final String wireName = 'E2EResult'; @override - Iterable serialize(Serializers serializers, E2EResult object, - {FullType specifiedType = FullType.unspecified}) { + Iterable serialize( + Serializers serializers, + E2EResult object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'message', - serializers.serialize(object.message, - specifiedType: const FullType(E2EMessage)), + serializers.serialize( + object.message, + specifiedType: const FullType(E2EMessage), + ), ]; return result; } @override - E2EResult deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + E2EResult deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new E2EResultBuilder(); final iterator = serialized.iterator; @@ -262,8 +406,13 @@ class _$E2EResultSerializer implements StructuredSerializer { final Object? value = iterator.current; switch (key) { case 'message': - result.message.replace(serializers.deserialize(value, - specifiedType: const FullType(E2EMessage))! as E2EMessage); + result.message.replace( + serializers.deserialize( + value, + specifiedType: const FullType(E2EMessage), + )! + as E2EMessage, + ); break; } } @@ -281,7 +430,10 @@ class _$CustomType extends CustomType { _$CustomType._({required this.customField}) : super._() { BuiltValueNullFieldError.checkNotNull( - customField, r'CustomType', 'customField'); + customField, + r'CustomType', + 'customField', + ); } @override @@ -308,8 +460,7 @@ class _$CustomType extends CustomType { @override String toString() { return (newBuiltValueToStringHelper(r'CustomType') - ..add('customField', customField)) - .toString(); + ..add('customField', customField)).toString(); } } @@ -346,10 +497,14 @@ class CustomTypeBuilder implements Builder { CustomType build() => _build(); _$CustomType _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$CustomType._( customField: BuiltValueNullFieldError.checkNotNull( - customField, r'CustomType', 'customField'), + customField, + r'CustomType', + 'customField', + ), ); replace(_$result); return _$result; @@ -395,42 +550,54 @@ class _$E2EMessage extends E2EMessage { factory _$E2EMessage([void Function(E2EMessageBuilder)? updates]) => (new E2EMessageBuilder()..update(updates))._build(); - _$E2EMessage._( - {required this.bigInt, - required this.bool_, - required this.builtList, - required this.builtListMultimap, - required this.builtMap, - required this.builtSet, - required this.builtSetMultimap, - required this.dateTime, - required this.double_, - required this.duration, - required this.int_, - required this.int64, - required this.jsonObject, - required this.num_, - required this.regExp, - required this.string, - required this.uri}) - : super._() { + _$E2EMessage._({ + required this.bigInt, + required this.bool_, + required this.builtList, + required this.builtListMultimap, + required this.builtMap, + required this.builtSet, + required this.builtSetMultimap, + required this.dateTime, + required this.double_, + required this.duration, + required this.int_, + required this.int64, + required this.jsonObject, + required this.num_, + required this.regExp, + required this.string, + required this.uri, + }) : super._() { BuiltValueNullFieldError.checkNotNull(bigInt, r'E2EMessage', 'bigInt'); BuiltValueNullFieldError.checkNotNull(bool_, r'E2EMessage', 'bool_'); BuiltValueNullFieldError.checkNotNull( - builtList, r'E2EMessage', 'builtList'); + builtList, + r'E2EMessage', + 'builtList', + ); BuiltValueNullFieldError.checkNotNull( - builtListMultimap, r'E2EMessage', 'builtListMultimap'); + builtListMultimap, + r'E2EMessage', + 'builtListMultimap', + ); BuiltValueNullFieldError.checkNotNull(builtMap, r'E2EMessage', 'builtMap'); BuiltValueNullFieldError.checkNotNull(builtSet, r'E2EMessage', 'builtSet'); BuiltValueNullFieldError.checkNotNull( - builtSetMultimap, r'E2EMessage', 'builtSetMultimap'); + builtSetMultimap, + r'E2EMessage', + 'builtSetMultimap', + ); BuiltValueNullFieldError.checkNotNull(dateTime, r'E2EMessage', 'dateTime'); BuiltValueNullFieldError.checkNotNull(double_, r'E2EMessage', 'double_'); BuiltValueNullFieldError.checkNotNull(duration, r'E2EMessage', 'duration'); BuiltValueNullFieldError.checkNotNull(int_, r'E2EMessage', 'int_'); BuiltValueNullFieldError.checkNotNull(int64, r'E2EMessage', 'int64'); BuiltValueNullFieldError.checkNotNull( - jsonObject, r'E2EMessage', 'jsonObject'); + jsonObject, + r'E2EMessage', + 'jsonObject', + ); BuiltValueNullFieldError.checkNotNull(num_, r'E2EMessage', 'num_'); BuiltValueNullFieldError.checkNotNull(regExp, r'E2EMessage', 'regExp'); BuiltValueNullFieldError.checkNotNull(string, r'E2EMessage', 'string'); @@ -536,8 +703,8 @@ class E2EMessageBuilder implements Builder { ListMultimapBuilder get builtListMultimap => _$this._builtListMultimap ??= new ListMultimapBuilder(); set builtListMultimap( - ListMultimapBuilder? builtListMultimap) => - _$this._builtListMultimap = builtListMultimap; + ListMultimapBuilder? builtListMultimap, + ) => _$this._builtListMultimap = builtListMultimap; MapBuilder? _builtMap; MapBuilder get builtMap => @@ -640,37 +807,74 @@ class E2EMessageBuilder implements Builder { _$E2EMessage _build() { _$E2EMessage _$result; try { - _$result = _$v ?? + _$result = + _$v ?? new _$E2EMessage._( bigInt: BuiltValueNullFieldError.checkNotNull( - bigInt, r'E2EMessage', 'bigInt'), + bigInt, + r'E2EMessage', + 'bigInt', + ), bool_: BuiltValueNullFieldError.checkNotNull( - bool_, r'E2EMessage', 'bool_'), + bool_, + r'E2EMessage', + 'bool_', + ), builtList: builtList.build(), builtListMultimap: builtListMultimap.build(), builtMap: builtMap.build(), builtSet: builtSet.build(), builtSetMultimap: builtSetMultimap.build(), dateTime: BuiltValueNullFieldError.checkNotNull( - dateTime, r'E2EMessage', 'dateTime'), + dateTime, + r'E2EMessage', + 'dateTime', + ), double_: BuiltValueNullFieldError.checkNotNull( - double_, r'E2EMessage', 'double_'), + double_, + r'E2EMessage', + 'double_', + ), duration: BuiltValueNullFieldError.checkNotNull( - duration, r'E2EMessage', 'duration'), + duration, + r'E2EMessage', + 'duration', + ), int_: BuiltValueNullFieldError.checkNotNull( - int_, r'E2EMessage', 'int_'), + int_, + r'E2EMessage', + 'int_', + ), int64: BuiltValueNullFieldError.checkNotNull( - int64, r'E2EMessage', 'int64'), + int64, + r'E2EMessage', + 'int64', + ), jsonObject: BuiltValueNullFieldError.checkNotNull( - jsonObject, r'E2EMessage', 'jsonObject'), + jsonObject, + r'E2EMessage', + 'jsonObject', + ), num_: BuiltValueNullFieldError.checkNotNull( - num_, r'E2EMessage', 'num_'), + num_, + r'E2EMessage', + 'num_', + ), regExp: BuiltValueNullFieldError.checkNotNull( - regExp, r'E2EMessage', 'regExp'), + regExp, + r'E2EMessage', + 'regExp', + ), string: BuiltValueNullFieldError.checkNotNull( - string, r'E2EMessage', 'string'), + string, + r'E2EMessage', + 'string', + ), uri: BuiltValueNullFieldError.checkNotNull( - uri, r'E2EMessage', 'uri'), + uri, + r'E2EMessage', + 'uri', + ), ); } catch (_) { late String _$failedField; @@ -687,7 +891,10 @@ class E2EMessageBuilder implements Builder { builtSetMultimap.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'E2EMessage', _$failedField, e.toString()); + r'E2EMessage', + _$failedField, + e.toString(), + ); } rethrow; } @@ -730,8 +937,8 @@ class _$E2EResult extends E2EResult { @override String toString() { - return (newBuiltValueToStringHelper(r'E2EResult')..add('message', message)) - .toString(); + return (newBuiltValueToStringHelper(r'E2EResult') + ..add('message', message)).toString(); } } @@ -770,10 +977,7 @@ class E2EResultBuilder implements Builder { _$E2EResult _build() { _$E2EResult _$result; try { - _$result = _$v ?? - new _$E2EResult._( - message: message.build(), - ); + _$result = _$v ?? new _$E2EResult._(message: message.build()); } catch (_) { late String _$failedField; try { @@ -781,7 +985,10 @@ class E2EResultBuilder implements Builder { message.build(); } catch (e) { throw new BuiltValueNestedFieldError( - r'E2EResult', _$failedField, e.toString()); + r'E2EResult', + _$failedField, + e.toString(), + ); } rethrow; } diff --git a/packages/worker_bee/e2e/lib/e2e_worker.worker.js.dart b/packages/worker_bee/e2e/lib/e2e_worker.worker.js.dart index f630fb3c74..9836545a38 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker.worker.js.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker.worker.js.dart @@ -17,18 +17,17 @@ class E2EWorkerImpl extends E2EWorker { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/e2e/workers.debug.dart.js' - : 'packages/e2e/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/e2e/workers.debug.dart.js' + : 'packages/e2e/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/worker_bee/e2e/lib/e2e_worker.worker.vm.dart b/packages/worker_bee/e2e/lib/e2e_worker.worker.vm.dart index 2e5dacf27f..b902030109 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker.worker.vm.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.js.dart b/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.js.dart index 9e328f2f21..ccc4426581 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.js.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.js.dart @@ -29,18 +29,17 @@ class E2EWorkerNoResultImpl extends E2EWorkerNoResult { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/e2e/workers.debug.dart.js' - : 'packages/e2e/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/e2e/workers.debug.dart.js' + : 'packages/e2e/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.vm.dart b/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.vm.dart index 950113bb90..ce98397064 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.vm.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_no_result.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.js.dart b/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.js.dart index 5fc07d9960..8611c9306b 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.js.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.js.dart @@ -29,18 +29,17 @@ class E2EWorkerNullResultImpl extends E2EWorkerNullResult { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/e2e/workers.debug.dart.js' - : 'packages/e2e/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/e2e/workers.debug.dart.js' + : 'packages/e2e/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.vm.dart b/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.vm.dart index 0a0d296699..25d516914a 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.vm.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_null_result.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.js.dart b/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.js.dart index b65564a236..a2227e392f 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.js.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.js.dart @@ -29,18 +29,17 @@ class E2EWorkerThrowsImpl extends E2EWorkerThrows { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/e2e/workers.debug.dart.js' - : 'packages/e2e/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/e2e/workers.debug.dart.js' + : 'packages/e2e/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.vm.dart b/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.vm.dart index cfa7e77b89..43a3417e9d 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.vm.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_throws.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort, result); diff --git a/packages/worker_bee/e2e/lib/e2e_worker_void_result.dart b/packages/worker_bee/e2e/lib/e2e_worker_void_result.dart index 1c15ecd1ac..cde8ed11f6 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_void_result.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_void_result.dart @@ -14,10 +14,7 @@ abstract class E2EWorkerVoidResult extends WorkerBeeBase { factory E2EWorkerVoidResult.create() = E2EWorkerVoidResultImpl; @override - Future run( - Stream listen, - StreamSink respond, - ) async { + Future run(Stream listen, StreamSink respond) async { await listen.first; } } diff --git a/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.js.dart b/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.js.dart index 0622b01e57..9c1b6b2be4 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.js.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.js.dart @@ -29,18 +29,17 @@ class E2EWorkerVoidResultImpl extends E2EWorkerVoidResult { .takeWhile((segment) => segment != 'test') .map(Uri.encodeComponent) .join('/'); - const relativePath = zDebugMode - ? 'packages/e2e/workers.debug.dart.js' - : 'packages/e2e/workers.release.dart.js'; - final testRelativePath = Uri( - scheme: baseUri.scheme, - host: baseUri.host, - port: baseUri.port, - path: '$basePath/test/$relativePath', - ).toString(); - return [ - relativePath, - testRelativePath, - ]; + const relativePath = + zDebugMode + ? 'packages/e2e/workers.debug.dart.js' + : 'packages/e2e/workers.release.dart.js'; + final testRelativePath = + Uri( + scheme: baseUri.scheme, + host: baseUri.host, + port: baseUri.port, + path: '$basePath/test/$relativePath', + ).toString(); + return [relativePath, testRelativePath]; } } diff --git a/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.vm.dart b/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.vm.dart index 04559e00f5..923381286a 100644 --- a/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.vm.dart +++ b/packages/worker_bee/e2e/lib/e2e_worker_void_result.worker.vm.dart @@ -15,7 +15,7 @@ Future _run(SendPorts ports) async { channel.stream.asBroadcastStream().cast(), channel.sink.cast(), ); -// ignore: invalid_use_of_protected_member + // ignore: invalid_use_of_protected_member worker.logger.verbose('Finished'); unawaited(worker.close()); Isolate.exit(ports.donePort); diff --git a/packages/worker_bee/e2e/pubspec.yaml b/packages/worker_bee/e2e/pubspec.yaml index 3bad6c92a9..58a22a2884 100644 --- a/packages/worker_bee/e2e/pubspec.yaml +++ b/packages/worker_bee/e2e/pubspec.yaml @@ -3,14 +3,14 @@ description: E2E tests for the worker_bee package. publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: aws_common: ">=0.4.0 <0.5.0" built_collection: ^5.0.0 built_value: ^8.6.0 fixnum: ^1.0.0 - meta: ^1.7.0 + meta: ^1.16.0 test: ^1.22.1 worker_bee: ">=0.3.3 <0.4.0" @@ -26,6 +26,6 @@ dev_dependencies: build_runner: ^2.4.9 build_verify: ^3.0.0 build_web_compilers: ^4.0.0 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 worker_bee_builder: path: ../worker_bee_builder diff --git a/packages/worker_bee/e2e/test/ensure_build_test.dart b/packages/worker_bee/e2e/test/ensure_build_test.dart index 5dd189519f..7d8fffdc1e 100644 --- a/packages/worker_bee/e2e/test/ensure_build_test.dart +++ b/packages/worker_bee/e2e/test/ensure_build_test.dart @@ -3,6 +3,7 @@ @TestOn('vm') @Tags(['build']) +library; import 'package:build_verify/build_verify.dart'; import 'package:test/test.dart'; @@ -10,9 +11,7 @@ import 'package:test/test.dart'; void main() { test( 'Ensure Build', - () => expectBuildClean( - packageRelativeDirectory: 'packages/worker_bee/e2e', - ), + () => expectBuildClean(packageRelativeDirectory: 'packages/worker_bee/e2e'), timeout: const Timeout(Duration(minutes: 5)), ); } diff --git a/packages/worker_bee/e2e_flutter_test/android/.gitignore b/packages/worker_bee/e2e_flutter_test/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/packages/worker_bee/e2e_flutter_test/android/.gitignore +++ b/packages/worker_bee/e2e_flutter_test/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/packages/worker_bee/e2e_flutter_test/android/app/build.gradle b/packages/worker_bee/e2e_flutter_test/android/app/build.gradle index b52d9f27b4..1c2c46583c 100644 --- a/packages/worker_bee/e2e_flutter_test/android/app/build.gradle +++ b/packages/worker_bee/e2e_flutter_test/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,16 +22,14 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace 'com.amazonaws.amplify.e2e_flutter_test' compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -68,5 +67,5 @@ flutter { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") } diff --git a/packages/worker_bee/e2e_flutter_test/android/build.gradle b/packages/worker_bee/e2e_flutter_test/android/build.gradle index 24d8637a29..ad89b89e31 100644 --- a/packages/worker_bee/e2e_flutter_test/android/build.gradle +++ b/packages/worker_bee/e2e_flutter_test/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.9.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() @@ -26,6 +13,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { - delete rootProject.buildDir +tasks.register("clean", Delete) { + delete rootProject.layout.buildDirectory } diff --git a/packages/worker_bee/e2e_flutter_test/android/gradle/wrapper/gradle-wrapper.properties b/packages/worker_bee/e2e_flutter_test/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/packages/worker_bee/e2e_flutter_test/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/worker_bee/e2e_flutter_test/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/packages/worker_bee/e2e_flutter_test/android/settings.gradle b/packages/worker_bee/e2e_flutter_test/android/settings.gradle index 44e62bcf06..6ac9fc18af 100644 --- a/packages/worker_bee/e2e_flutter_test/android/settings.gradle +++ b/packages/worker_bee/e2e_flutter_test/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.9.10" apply false +} + +include ":app" diff --git a/packages/worker_bee/e2e_flutter_test/integration_test/e2e_test.dart b/packages/worker_bee/e2e_flutter_test/integration_test/e2e_test.dart index 32ac7f30b1..5ee0935f4c 100644 --- a/packages/worker_bee/e2e_flutter_test/integration_test/e2e_test.dart +++ b/packages/worker_bee/e2e_flutter_test/integration_test/e2e_test.dart @@ -13,16 +13,12 @@ void main() { group('', () { testWidgets( '', - (_) => testWorker( - jsEntrypoint: 'packages/e2e/workers.js', - ), + (_) => testWorker(jsEntrypoint: 'packages/e2e/workers.js'), ); testWidgets( '(m, O4)', - (_) => testWorker( - jsEntrypoint: 'packages/e2e/workers.min.js', - ), + (_) => testWorker(jsEntrypoint: 'packages/e2e/workers.min.js'), skip: !kIsWeb, ); }); @@ -30,16 +26,12 @@ void main() { group('| no result', () { testWidgets( '', - (_) => testWorkerNoResult( - jsEntrypoint: 'packages/e2e/workers.js', - ), + (_) => testWorkerNoResult(jsEntrypoint: 'packages/e2e/workers.js'), ); testWidgets( '(m, O4)', - (_) => testWorkerNoResult( - jsEntrypoint: 'packages/e2e/workers.min.js', - ), + (_) => testWorkerNoResult(jsEntrypoint: 'packages/e2e/workers.min.js'), skip: !kIsWeb, ); }); @@ -47,16 +39,13 @@ void main() { group('| void result', () { testWidgets( '', - (_) => testWorkerVoidResult( - jsEntrypoint: 'packages/e2e/workers.js', - ), + (_) => testWorkerVoidResult(jsEntrypoint: 'packages/e2e/workers.js'), ); testWidgets( '(m, O4)', - (_) => testWorkerVoidResult( - jsEntrypoint: 'packages/e2e/workers.min.js', - ), + (_) => + testWorkerVoidResult(jsEntrypoint: 'packages/e2e/workers.min.js'), skip: !kIsWeb, ); }); @@ -64,16 +53,13 @@ void main() { group('| null result', () { testWidgets( '', - (_) => testWorkerNullResult( - jsEntrypoint: 'packages/e2e/workers.js', - ), + (_) => testWorkerNullResult(jsEntrypoint: 'packages/e2e/workers.js'), ); testWidgets( '(m, O4)', - (_) => testWorkerNullResult( - jsEntrypoint: 'packages/e2e/workers.min.js', - ), + (_) => + testWorkerNullResult(jsEntrypoint: 'packages/e2e/workers.min.js'), skip: !kIsWeb, ); }); @@ -81,16 +67,12 @@ void main() { group('| throws', () { testWidgets( '', - (_) => testWorkerThrows( - jsEntrypoint: 'packages/e2e/workers.js', - ), + (_) => testWorkerThrows(jsEntrypoint: 'packages/e2e/workers.js'), ); testWidgets( '(m, O4)', - (_) => testWorkerThrows( - jsEntrypoint: 'packages/e2e/workers.min.js', - ), + (_) => testWorkerThrows(jsEntrypoint: 'packages/e2e/workers.min.js'), skip: !kIsWeb, ); }); diff --git a/packages/worker_bee/e2e_flutter_test/pubspec.yaml b/packages/worker_bee/e2e_flutter_test/pubspec.yaml index cfc83900d1..ba2fbe039e 100644 --- a/packages/worker_bee/e2e_flutter_test/pubspec.yaml +++ b/packages/worker_bee/e2e_flutter_test/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0+1 environment: - flutter: ">=3.27.0" - sdk: ^3.6.0 + flutter: ">=3.29.0" + sdk: ^3.7.0 dependencies: e2e: diff --git a/packages/worker_bee/e2e_test/lib/e2e_test.dart b/packages/worker_bee/e2e_test/lib/e2e_test.dart index 4166e9cb73..f5489d4451 100644 --- a/packages/worker_bee/e2e_test/lib/e2e_test.dart +++ b/packages/worker_bee/e2e_test/lib/e2e_test.dart @@ -1,2 +1,2 @@ /// E2E tests for the `worker_bee` package. -library e2e_test; +library; diff --git a/packages/worker_bee/e2e_test/pubspec.yaml b/packages/worker_bee/e2e_test/pubspec.yaml index aaf93655c2..be47965950 100644 --- a/packages/worker_bee/e2e_test/pubspec.yaml +++ b/packages/worker_bee/e2e_test/pubspec.yaml @@ -3,7 +3,7 @@ description: E2E tests for the worker_bee package. publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependency_overrides: aws_common: @@ -20,10 +20,10 @@ dev_dependencies: build_web_compilers: ^4.0.0 built_collection: ^5.0.0 built_value: ^8.6.0 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 e2e: path: ../e2e - meta: ^1.7.0 + meta: ^1.16.0 test: ^1.22.1 worker_bee: ">=0.3.3 <0.4.0" worker_bee_builder: diff --git a/packages/worker_bee/e2e_test/test/preamble_test.dart b/packages/worker_bee/e2e_test/test/preamble_test.dart index 75a2c235fe..13eb9abad0 100644 --- a/packages/worker_bee/e2e_test/test/preamble_test.dart +++ b/packages/worker_bee/e2e_test/test/preamble_test.dart @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @TestOn('browser') +library; //ignore: deprecated_member_use import 'dart:html'; diff --git a/packages/worker_bee/worker_bee/CHANGELOG.md b/packages/worker_bee/worker_bee/CHANGELOG.md index f6b198b385..11e9bbc4f1 100644 --- a/packages/worker_bee/worker_bee/CHANGELOG.md +++ b/packages/worker_bee/worker_bee/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.5 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.3.4 - Minor bug fixes and improvements diff --git a/packages/worker_bee/worker_bee/lib/src/common.dart b/packages/worker_bee/worker_bee/lib/src/common.dart index 9dcd1e17f2..47cdb490bf 100644 --- a/packages/worker_bee/worker_bee/lib/src/common.dart +++ b/packages/worker_bee/worker_bee/lib/src/common.dart @@ -21,13 +21,13 @@ final _voidType = _typeOf(); abstract class WorkerBeeCommon implements AWSLoggerPlugin, Closeable { /// {@macro worker_bee.worker_bee_common} - WorkerBeeCommon({ - Serializers? serializers, - }) : serializers = serializers == null - ? workerBeeSerializers - : (serializers.toBuilder() - ..addAll(workerBeeSerializers.serializers)) - .build() { + WorkerBeeCommon({Serializers? serializers}) + : serializers = + serializers == null + ? workerBeeSerializers + : (serializers.toBuilder() + ..addAll(workerBeeSerializers.serializers)) + .build() { _checkSerializers(); _initLogger(); } @@ -45,11 +45,11 @@ abstract class WorkerBeeCommon serializers.serializerForType(Response) != null; if ( - // Cannot check `Response != void` - _typeOf() != _voidType && - // No determination can be made when Response is nullable - _typeOf() != _typeOf() && - !hasResponseSerializer) { + // Cannot check `Response != void` + _typeOf() != _voidType && + // No determination can be made when Response is nullable + _typeOf() != _typeOf() && + !hasResponseSerializer) { throw StateError( 'Worker did not include serializer for response type ($Response)', ); @@ -70,9 +70,7 @@ abstract class WorkerBeeCommon @override void handleLogEntry(LogEntry logEntry) { - logSink.sink.add( - WorkerLogEntry.fromLogEntry(logEntry, local: false), - ); + logSink.sink.add(WorkerLogEntry.fromLogEntry(logEntry, local: false)); if (logsController.isClosed) return; logsController.add( WorkerLogEntry.fromLogEntry(logEntry, local: !isRemoteWorker), @@ -80,9 +78,10 @@ abstract class WorkerBeeCommon } /// Listens for local messages. - void _initLogger() => logger - ..logLevel = LogLevel.verbose - ..registerPlugin(this); + void _initLogger() => + logger + ..logLevel = LogLevel.verbose + ..registerPlugin(this); /// Operations which must complete before calling [close]. final List> _pendingOperations = []; @@ -122,8 +121,9 @@ abstract class WorkerBeeCommon /// The log stream for external listening. @protected - final StreamController logsController = - StreamController.broadcast(sync: true); + final StreamController logsController = StreamController.broadcast( + sync: true, + ); /// The logger to use for all messages. Stream get logs => logsController.stream; @@ -168,9 +168,7 @@ abstract class WorkerBeeCommon /// /// Should only be called from a worker bee. @mustCallSuper - Future connect({ - StreamChannel? logsChannel, - }) async { + Future connect({StreamChannel? logsChannel}) async { _isRemoteWorker = true; if (logsChannel != null) { _logsChannel = logsChannel; @@ -237,16 +235,13 @@ abstract class WorkerBeeCommon @override @mustCallSuper - Future close({ - bool force = false, - }) => - _closeMemoizer.runOnce(() async { - logger.debug('Closing worker (force=$force)'); - await Future.wait( - _pendingOperations.map( - (op) => force ? op.cancel() : op.valueOrCancellation(), - ), - ); - await sink.close(); - }); + Future close({bool force = false}) => _closeMemoizer.runOnce(() async { + logger.debug('Closing worker (force=$force)'); + await Future.wait( + _pendingOperations.map( + (op) => force ? op.cancel() : op.valueOrCancellation(), + ), + ); + await sink.close(); + }); } diff --git a/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.dart b/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.dart index 878f0cb0d0..04dd4984f1 100644 --- a/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.dart +++ b/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.dart @@ -31,9 +31,10 @@ abstract class WorkerBeeExceptionImpl /// {@macro worker_bee.web_worker_exception} factory WorkerBeeExceptionImpl(Object error, [StackTrace? stackTrace]) => _$WorkerBeeExceptionImpl( - (b) => b - ..error = error.toString() - ..stackTrace = stackTrace, + (b) => + b + ..error = error.toString() + ..stackTrace = stackTrace, ); WorkerBeeExceptionImpl._(); diff --git a/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.g.dart b/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.g.dart index 32febfc118..4f98c7ad66 100644 --- a/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.g.dart +++ b/packages/worker_bee/worker_bee/lib/src/exception/worker_bee_exception.g.dart @@ -14,35 +14,45 @@ class _$WorkerBeeExceptionImplSerializer @override final Iterable types = const [ WorkerBeeExceptionImpl, - _$WorkerBeeExceptionImpl + _$WorkerBeeExceptionImpl, ]; @override final String wireName = 'WorkerBeeExceptionImpl'; @override Iterable serialize( - Serializers serializers, WorkerBeeExceptionImpl object, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + WorkerBeeExceptionImpl object, { + FullType specifiedType = FullType.unspecified, + }) { final result = [ 'error', - serializers.serialize(object.error, - specifiedType: const FullType(String)), + serializers.serialize( + object.error, + specifiedType: const FullType(String), + ), ]; Object? value; value = object.stackTrace; if (value != null) { result ..add('stackTrace') - ..add(serializers.serialize(value, - specifiedType: const FullType(StackTrace))); + ..add( + serializers.serialize( + value, + specifiedType: const FullType(StackTrace), + ), + ); } return result; } @override WorkerBeeExceptionImpl deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { final result = new WorkerBeeExceptionImplBuilder(); final iterator = serialized.iterator; @@ -52,12 +62,20 @@ class _$WorkerBeeExceptionImplSerializer final Object? value = iterator.current; switch (key) { case 'error': - result.error = serializers.deserialize(value, - specifiedType: const FullType(String))! as String; + result.error = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; break; case 'stackTrace': - result.stackTrace = serializers.deserialize(value, - specifiedType: const FullType(StackTrace)) as StackTrace?; + result.stackTrace = + serializers.deserialize( + value, + specifiedType: const FullType(StackTrace), + ) + as StackTrace?; break; } } @@ -82,20 +100,23 @@ class _$WorkerBeeExceptionImpl extends WorkerBeeExceptionImpl { @override final StackTrace? stackTrace; - factory _$WorkerBeeExceptionImpl( - [void Function(WorkerBeeExceptionImplBuilder)? updates]) => - (new WorkerBeeExceptionImplBuilder()..update(updates))._build(); + factory _$WorkerBeeExceptionImpl([ + void Function(WorkerBeeExceptionImplBuilder)? updates, + ]) => (new WorkerBeeExceptionImplBuilder()..update(updates))._build(); _$WorkerBeeExceptionImpl._({required this.error, this.stackTrace}) - : super._() { + : super._() { BuiltValueNullFieldError.checkNotNull( - error, r'WorkerBeeExceptionImpl', 'error'); + error, + r'WorkerBeeExceptionImpl', + 'error', + ); } @override WorkerBeeExceptionImpl rebuild( - void Function(WorkerBeeExceptionImplBuilder) updates) => - (toBuilder()..update(updates)).build(); + void Function(WorkerBeeExceptionImplBuilder) updates, + ) => (toBuilder()..update(updates)).build(); @override WorkerBeeExceptionImplBuilder toBuilder() => @@ -169,11 +190,16 @@ class WorkerBeeExceptionImplBuilder WorkerBeeExceptionImpl build() => _build(); _$WorkerBeeExceptionImpl _build() { - final _$result = _$v ?? + final _$result = + _$v ?? new _$WorkerBeeExceptionImpl._( - error: BuiltValueNullFieldError.checkNotNull( - error, r'WorkerBeeExceptionImpl', 'error'), - stackTrace: stackTrace); + error: BuiltValueNullFieldError.checkNotNull( + error, + r'WorkerBeeExceptionImpl', + 'error', + ), + stackTrace: stackTrace, + ); replace(_$result); return _$result; } diff --git a/packages/worker_bee/worker_bee/lib/src/js/impl.dart b/packages/worker_bee/worker_bee/lib/src/js/impl.dart index b690d9054e..5d5cd23d2e 100644 --- a/packages/worker_bee/worker_bee/lib/src/js/impl.dart +++ b/packages/worker_bee/worker_bee/lib/src/js/impl.dart @@ -62,9 +62,7 @@ mixin WorkerBeeImpl // Do not specify type so that it is serialized into the array. specifiedType: FullType.unspecified, ), - zoneValues: { - #transfer: transfer, - }, + zoneValues: {#transfer: transfer}, ); return _WorkerSerializeResult(serialized, transfer); } @@ -73,14 +71,14 @@ mixin WorkerBeeImpl @optionalTypeArgs T _deserialize(Object? object) { final deserialized = runZoned( - () => serializers.deserialize( - object, - // Do not specify type so that it pulls from the array. - specifiedType: FullType.unspecified, - ) as T, - zoneValues: { - #addPendingOperation: addPendingOperation, - }, + () => + serializers.deserialize( + object, + // Do not specify type so that it pulls from the array. + specifiedType: FullType.unspecified, + ) + as T, + zoneValues: {#addPendingOperation: addPendingOperation}, ); return deserialized; } @@ -97,208 +95,194 @@ mixin WorkerBeeImpl @override @nonVirtual - Future connect({ - StreamChannel? logsChannel, - }) async { - return runTraced( - () async { - await super.connect(logsChannel: logsChannel); - final channel = StreamChannelController(sync: true); - self.addEventListener( - 'message', - Zone.current.bindUnaryCallback((Event event) { - event as MessageEvent; - logger.verbose('Got message: ${event.data}'); - final serialized = event.data; - final message = _deserialize(serialized); - channel.foreign.sink.add(message); - }), - ); - channel.foreign.stream.listen( - Zone.current.bindUnaryCallback((message) { - logger.verbose('Sending message: $message'); - final serialized = _serialize(message); - self.postMessage(serialized.value, serialized.transfer); - }), - ); - logger.verbose('Ready'); - self.postMessage('ready'); - final result = await run( - channel.local.stream.asBroadcastStream().cast(), - channel.local.sink.cast(), - ); - logger.verbose('Finished'); - self.postMessage('done'); - - final serializedResult = _serialize(result); - self.postMessage(serializedResult.value, serializedResult.transfer); - - // Allow streams to flush, then close underlying resources. - await close(); - }, - onError: completeError, - ); + Future connect({StreamChannel? logsChannel}) async { + return runTraced(() async { + await super.connect(logsChannel: logsChannel); + final channel = StreamChannelController(sync: true); + self.addEventListener( + 'message', + Zone.current.bindUnaryCallback((Event event) { + event as MessageEvent; + logger.verbose('Got message: ${event.data}'); + final serialized = event.data; + final message = _deserialize(serialized); + channel.foreign.sink.add(message); + }), + ); + channel.foreign.stream.listen( + Zone.current.bindUnaryCallback((message) { + logger.verbose('Sending message: $message'); + final serialized = _serialize(message); + self.postMessage(serialized.value, serialized.transfer); + }), + ); + logger.verbose('Ready'); + self.postMessage('ready'); + final result = await run( + channel.local.stream.asBroadcastStream().cast(), + channel.local.sink.cast(), + ); + logger.verbose('Finished'); + self.postMessage('done'); + + final serializedResult = _serialize(result); + self.postMessage(serializedResult.value, serializedResult.transfer); + + // Allow streams to flush, then close underlying resources. + await close(); + }, onError: completeError); } @override @nonVirtual Future spawn({String? jsEntrypoint}) async { - return runTraced( - () async { - for (final entrypoint in [ - if (jsEntrypoint != null) jsEntrypoint, - this.jsEntrypoint, - ...fallbackUrls, - ]) { - logger.debug('Spawning worker at $entrypoint'); - - // Spawn the worker using the specified script. - try { - _worker = Worker(entrypoint); - } on Object { - logger.debug('Could not launch worker at $entrypoint'); - continue; - } - - try { - /// Captures errors occurring before a `ready` event is received. - final errorBeforeReady = Completer(); - - // Whether `run` has completed on the web worker. - var done = false; - - // Create the controller to handle message passing. - _controller = StreamController( - sync: true, - onCancel: () { - final error = WorkerBeeExceptionImpl( - 'Worker quit unexpectedly', - ); - if (ready.isCompleted) { - if (!done) { - completeError(error); - } - } else { - errorBeforeReady.completeError(error); - } - }, - ); + return runTraced(() async { + for (final entrypoint in [ + if (jsEntrypoint != null) jsEntrypoint, + this.jsEntrypoint, + ...fallbackUrls, + ]) { + logger.debug('Spawning worker at $entrypoint'); + + // Spawn the worker using the specified script. + try { + _worker = Worker(entrypoint); + } on Object { + logger.debug('Could not launch worker at $entrypoint'); + continue; + } - // Listen for error messages on the worker. - // - // Some browsers do not currently support the `messageerror` event: - // https://developer.mozilla.org/en-US/docs/Web/API/Worker/messageerror_event#browser_compatibility - _worker!.addEventListener('messageerror', (Event event) { - event as MessageEvent; - final error = WorkerBeeExceptionImpl( - 'Could not serialize message: ${event.data}', - ); - if (ready.isCompleted) { - completeError(error); - } else { - errorBeforeReady.completeError(error); - } - }); - _worker!.onError = (Event event) { - Object error; - if (event is ErrorEvent) { - final eventJson = JSON.stringify(event.error); - error = WorkerBeeExceptionImpl('${event.message} ($eventJson)'); - } else { - error = WorkerBeeExceptionImpl('An unknown error occurred'); - } + try { + /// Captures errors occurring before a `ready` event is received. + final errorBeforeReady = Completer(); + + // Whether `run` has completed on the web worker. + var done = false; + + // Create the controller to handle message passing. + _controller = StreamController( + sync: true, + onCancel: () { + final error = WorkerBeeExceptionImpl('Worker quit unexpectedly'); if (ready.isCompleted) { - completeError(error); + if (!done) { + completeError(error); + } } else { errorBeforeReady.completeError(error); } - }; - - // Passes outgoing messages to the worker instance. - _controller!.stream.listen( - Zone.current.bindUnaryCallback((message) { - logger.verbose('Sending message: $message'); - final serialized = _serialize(message); - _worker!.postMessage(serialized.value, serialized.transfer); - }), + }, + ); + + // Listen for error messages on the worker. + // + // Some browsers do not currently support the `messageerror` event: + // https://developer.mozilla.org/en-US/docs/Web/API/Worker/messageerror_event#browser_compatibility + _worker!.addEventListener('messageerror', (Event event) { + event as MessageEvent; + final error = WorkerBeeExceptionImpl( + 'Could not serialize message: ${event.data}', ); - - // Listen to worker - _incomingMessages = StreamController(sync: true); - _worker!.onMessage = - Zone.current.bindUnaryCallback((MessageEvent event) { - if (event.data is String) { - if (event.data == 'ready') { - logger.verbose('Received ready event'); - ready.complete(); - return; - } - if (event.data == 'done') { - logger.verbose('Received done event'); - done = true; - return; - } - } - final serialized = event.data; - final message = _deserialize(serialized); - logger.verbose('Got message: $message'); - if (message is WorkerBeeException) { - if (ready.isCompleted) { - _incomingMessages!.addError(message, message.stackTrace); - completeError(message, message.stackTrace); - } else { - errorBeforeReady.completeError(message, message.stackTrace); - } + if (ready.isCompleted) { + completeError(error); + } else { + errorBeforeReady.completeError(error); + } + }); + _worker!.onError = (Event event) { + Object error; + if (event is ErrorEvent) { + final eventJson = JSON.stringify(event.error); + error = WorkerBeeExceptionImpl('${event.message} ($eventJson)'); + } else { + error = WorkerBeeExceptionImpl('An unknown error occurred'); + } + if (ready.isCompleted) { + completeError(error); + } else { + errorBeforeReady.completeError(error); + } + }; + + // Passes outgoing messages to the worker instance. + _controller!.stream.listen( + Zone.current.bindUnaryCallback((message) { + logger.verbose('Sending message: $message'); + final serialized = _serialize(message); + _worker!.postMessage(serialized.value, serialized.transfer); + }), + ); + + // Listen to worker + _incomingMessages = StreamController(sync: true); + _worker!.onMessage = Zone.current.bindUnaryCallback(( + MessageEvent event, + ) { + if (event.data is String) { + if (event.data == 'ready') { + logger.verbose('Received ready event'); + ready.complete(); return; } - message as Response?; - if (message is Response && !done) { - _incomingMessages!.add(message); + if (event.data == 'done') { + logger.verbose('Received done event'); + done = true; + return; } - if (done) { - complete(message); + } + final serialized = event.data; + final message = _deserialize(serialized); + logger.verbose('Got message: $message'); + if (message is WorkerBeeException) { + if (ready.isCompleted) { + _incomingMessages!.addError(message, message.stackTrace); + completeError(message, message.stackTrace); + } else { + errorBeforeReady.completeError(message, message.stackTrace); } - }); - - // Send assignment and logs channel - final jsLogsChannel = MessageChannel(); - _logsChannel = MessagePortChannel( - jsLogsChannel.port1, - serializers: serializers, - ); - _logsChannel!.stream.listen( - Zone.current.bindUnaryCallback((message) { - if (logsController.isClosed) return; - logsController.add(message); - }), - ); - _worker!.postMessage(name, [jsLogsChannel.port2]); - - await Future.any([ - ready.future, - errorBeforeReady.future, - ]); - - stream = _incomingMessages!.stream; - sink = _controller!.sink; - - return; - } on Object catch (e, st) { - logger.debug('Error initializing worker', e, st); - continue; - } + return; + } + message as Response?; + if (message is Response && !done) { + _incomingMessages!.add(message); + } + if (done) { + complete(message); + } + }); + + // Send assignment and logs channel + final jsLogsChannel = MessageChannel(); + _logsChannel = MessagePortChannel( + jsLogsChannel.port1, + serializers: serializers, + ); + _logsChannel!.stream.listen( + Zone.current.bindUnaryCallback((message) { + if (logsController.isClosed) return; + logsController.add(message); + }), + ); + _worker!.postMessage(name, [jsLogsChannel.port2]); + + await Future.any([ready.future, errorBeforeReady.future]); + + stream = _incomingMessages!.stream; + sink = _controller!.sink; + + return; + } on Object catch (e, st) { + logger.debug('Error initializing worker', e, st); + continue; } + } - throw WorkerBeeExceptionImpl('Could not launch web worker.'); - }, - onError: completeError, - ); + throw WorkerBeeExceptionImpl('Could not launch web worker.'); + }, onError: completeError); } @override - Future close({ - bool force = false, - }) async { + Future close({bool force = false}) async { // Close the request/response channels. await _incomingMessages?.close(); await _controller?.close(); diff --git a/packages/worker_bee/worker_bee/lib/src/js/message_port_channel.dart b/packages/worker_bee/worker_bee/lib/src/js/message_port_channel.dart index b4c9defb59..4f8fa367b4 100644 --- a/packages/worker_bee/worker_bee/lib/src/js/message_port_channel.dart +++ b/packages/worker_bee/worker_bee/lib/src/js/message_port_channel.dart @@ -21,8 +21,8 @@ class MessagePortChannel this.messagePort, { Serializers? serializers, FullType specifiedType = FullType.unspecified, - }) : _serializers = serializers ?? workerBeeSerializers, - _specifiedType = specifiedType; + }) : _serializers = serializers ?? workerBeeSerializers, + _specifiedType = specifiedType; /// The message port to communicate over. final MessagePort messagePort; @@ -68,13 +68,8 @@ class MessagePortChannel void add(T event) { final transfer = []; final serialized = runZoned( - () => _serializers.serialize( - event, - specifiedType: _specifiedType, - ), - zoneValues: { - #transfer: transfer, - }, + () => _serializers.serialize(event, specifiedType: _specifiedType), + zoneValues: {#transfer: transfer}, ); messagePort.postMessage(serialized, transfer); } diff --git a/packages/worker_bee/worker_bee/lib/src/js/preamble.dart b/packages/worker_bee/worker_bee/lib/src/js/preamble.dart index bacddb02d1..06fb297afe 100644 --- a/packages/worker_bee/worker_bee/lib/src/js/preamble.dart +++ b/packages/worker_bee/worker_bee/lib/src/js/preamble.dart @@ -25,45 +25,39 @@ Future getWorkerAssignment() async { // Errors in the preamble should be reported to the parent thread. void onError(Object e, StackTrace st) { self.postMessage( - workerBeeSerializers.serialize( - e, - specifiedType: FullType.unspecified, - ), + workerBeeSerializers.serialize(e, specifiedType: FullType.unspecified), ); } - return runTraced( - () async { - final assignmentCompleter = Completer.sync(); - late void Function(Event) eventListener; - self.addEventListener( - 'message', - eventListener = Zone.current.bindUnaryCallback( - (Event event) { - event as MessageEvent; - final message = event.data; - final messagePort = event.ports.firstOrNull; - if (message is String && messagePort is MessagePort) { - self.removeEventListener('message', eventListener); - assignmentCompleter.complete( - WorkerAssignment( - message, - MessagePortChannel(messagePort), - ), - ); - } else { - assignmentCompleter.completeError( - StateError( - 'Invalid worker assignment: ' - '${workerBeeSerializers.serialize(message)}', - ), - ); - } - }, - ), - ); - return assignmentCompleter.future; - }, - onError: onError, - ); + return runTraced(() async { + final assignmentCompleter = Completer.sync(); + late void Function(Event) eventListener; + self.addEventListener( + 'message', + eventListener = Zone.current.bindUnaryCallback(( + Event event, + ) { + event as MessageEvent; + final message = event.data; + final messagePort = event.ports.firstOrNull; + if (message is String && messagePort is MessagePort) { + self.removeEventListener('message', eventListener); + assignmentCompleter.complete( + WorkerAssignment( + message, + MessagePortChannel(messagePort), + ), + ); + } else { + assignmentCompleter.completeError( + StateError( + 'Invalid worker assignment: ' + '${workerBeeSerializers.serialize(message)}', + ), + ); + } + }), + ); + return assignmentCompleter.future; + }, onError: onError); } diff --git a/packages/worker_bee/worker_bee/lib/src/logging/log_serializers.dart b/packages/worker_bee/worker_bee/lib/src/logging/log_serializers.dart index 0f25be82a7..93aec862c2 100644 --- a/packages/worker_bee/worker_bee/lib/src/logging/log_serializers.dart +++ b/packages/worker_bee/worker_bee/lib/src/logging/log_serializers.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 @internal -library worker_bee.log_serializers; +library; import 'package:built_value/serializer.dart'; import 'package:meta/meta.dart'; @@ -47,17 +47,21 @@ class LogEntrySerializer implements StructuredSerializer { case 'loggerName': loggerName = value as String; case 'time': - time = serializers.deserialize( - value, - specifiedType: const FullType(DateTime), - ) as DateTime; + time = + serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) + as DateTime; case 'error': error = value?.toString(); case 'stackTrace': - stackTrace = serializers.deserialize( - value, - specifiedType: const FullType.nullable(StackTrace), - ) as StackTrace; + stackTrace = + serializers.deserialize( + value, + specifiedType: const FullType.nullable(StackTrace), + ) + as StackTrace; case 'local': local = value as bool; } @@ -95,10 +99,7 @@ class LogEntrySerializer implements StructuredSerializer { object.time.toUtc(), specifiedType: const FullType(DateTime), ), - if (object.error != null) ...[ - 'error', - object.error.toString(), - ], + if (object.error != null) ...['error', object.error.toString()], if (object.stackTrace != null) ...[ 'stackTrace', serializers.serialize( @@ -106,10 +107,7 @@ class LogEntrySerializer implements StructuredSerializer { specifiedType: const FullType(StackTrace), ), ], - if (object is WorkerLogEntry) ...[ - 'local', - object.local, - ], + if (object is WorkerLogEntry) ...['local', object.local], ]; } } diff --git a/packages/worker_bee/worker_bee/lib/src/logging/worker_log_entry.dart b/packages/worker_bee/worker_bee/lib/src/logging/worker_log_entry.dart index 3aa7e6f7fb..62ad4b218b 100644 --- a/packages/worker_bee/worker_bee/lib/src/logging/worker_log_entry.dart +++ b/packages/worker_bee/worker_bee/lib/src/logging/worker_log_entry.dart @@ -19,18 +19,16 @@ class WorkerLogEntry extends LogEntry { }); /// Creates a [WorkerLogEntry] by wrapping [entry]. - WorkerLogEntry.fromLogEntry( - LogEntry entry, { - required bool local, - }) : this( - level: entry.level, - message: entry.message, - loggerName: entry.loggerName, - local: local, - time: entry.time, - error: entry.error, - stackTrace: entry.stackTrace, - ); + WorkerLogEntry.fromLogEntry(LogEntry entry, {required bool local}) + : this( + level: entry.level, + message: entry.message, + loggerName: entry.loggerName, + local: local, + time: entry.time, + error: entry.error, + stackTrace: entry.stackTrace, + ); /// Whether the log was emitted locally or in a worker. final bool local; diff --git a/packages/worker_bee/worker_bee/lib/src/preamble.dart b/packages/worker_bee/worker_bee/lib/src/preamble.dart index 4cab5e48b8..41294fbf82 100644 --- a/packages/worker_bee/worker_bee/lib/src/preamble.dart +++ b/packages/worker_bee/worker_bee/lib/src/preamble.dart @@ -26,8 +26,8 @@ class WorkerAssignment { } /// Factory for a worker bee. -typedef WorkerBeeBuilder> = W - Function(); +typedef WorkerBeeBuilder> = + W Function(); /// Initializes worker bees by checking if running in a web worker, and awaiting /// the assigned role if so. @@ -60,17 +60,15 @@ R runTraced( // of a worker pool, any uncaught errors lose visibility when they're // reported back _unless_ we serialize them first. void wrappedOnError(Object error, StackTrace stackTrace) { - final workerException = error is WorkerBeeException - ? error.rebuild((b) => b.stackTrace = stackTrace) - : WorkerBeeExceptionImpl(error, stackTrace); + final workerException = + error is WorkerBeeException + ? error.rebuild((b) => b.stackTrace = stackTrace) + : WorkerBeeExceptionImpl(error, stackTrace); onError(workerException, stackTrace); } if (zDebugMode) { - return Chain.capture( - action, - onError: wrappedOnError, - ); + return Chain.capture(action, onError: wrappedOnError); } return runZonedGuarded(action, wrappedOnError) as R; } diff --git a/packages/worker_bee/worker_bee/lib/src/serializers/serializers.dart b/packages/worker_bee/worker_bee/lib/src/serializers/serializers.dart index 7840db0b0d..7218d59ac2 100644 --- a/packages/worker_bee/worker_bee/lib/src/serializers/serializers.dart +++ b/packages/worker_bee/worker_bee/lib/src/serializers/serializers.dart @@ -11,10 +11,9 @@ part 'serializers.g.dart'; /// Serializers common to all worker bees. @internal -@SerializersFor([ - WorkerBeeExceptionImpl, -]) -final Serializers workerBeeSerializers = (_$workerBeeSerializers.toBuilder() - ..add(const LogEntrySerializer()) - ..add(const StackTraceSerializer())) - .build(); +@SerializersFor([WorkerBeeExceptionImpl]) +final Serializers workerBeeSerializers = + (_$workerBeeSerializers.toBuilder() + ..add(const LogEntrySerializer()) + ..add(const StackTraceSerializer())) + .build(); diff --git a/packages/worker_bee/worker_bee/lib/src/serializers/serializers.g.dart b/packages/worker_bee/worker_bee/lib/src/serializers/serializers.g.dart index c966687e0a..742944101f 100644 --- a/packages/worker_bee/worker_bee/lib/src/serializers/serializers.g.dart +++ b/packages/worker_bee/worker_bee/lib/src/serializers/serializers.g.dart @@ -6,8 +6,8 @@ part of 'serializers.dart'; // BuiltValueGenerator // ************************************************************************** -Serializers _$workerBeeSerializers = (new Serializers().toBuilder() - ..add(WorkerBeeExceptionImpl.serializer)) - .build(); +Serializers _$workerBeeSerializers = + (new Serializers().toBuilder()..add(WorkerBeeExceptionImpl.serializer)) + .build(); // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/packages/worker_bee/worker_bee/lib/src/serializers/stack_trace_serializer.dart b/packages/worker_bee/worker_bee/lib/src/serializers/stack_trace_serializer.dart index 2adb7cdd0c..1df66a9c70 100644 --- a/packages/worker_bee/worker_bee/lib/src/serializers/stack_trace_serializer.dart +++ b/packages/worker_bee/worker_bee/lib/src/serializers/stack_trace_serializer.dart @@ -18,12 +18,12 @@ class StackTraceSerializer implements PrimitiveSerializer { @override Iterable get types => [ - StackTrace, - StackTrace.empty.runtimeType, - StackTrace.current.runtimeType, - Trace, - Chain, - ]; + StackTrace, + StackTrace.empty.runtimeType, + StackTrace.current.runtimeType, + Trace, + Chain, + ]; @override StackTrace deserialize( diff --git a/packages/worker_bee/worker_bee/lib/src/vm/impl.dart b/packages/worker_bee/worker_bee/lib/src/vm/impl.dart index 32bb7cab60..05ccba5063 100644 --- a/packages/worker_bee/worker_bee/lib/src/vm/impl.dart +++ b/packages/worker_bee/worker_bee/lib/src/vm/impl.dart @@ -14,11 +14,7 @@ import 'package:worker_bee/worker_bee.dart'; /// {@endtemplate} class SendPorts { /// {@macro worker_bee.send_ports} - const SendPorts( - this.messagePort, - this.donePort, - this.logPort, - ); + const SendPorts(this.messagePort, this.donePort, this.logPort); /// The port used for communicating messages, passed to the [IsolateChannel] /// instance upon launch. @@ -118,9 +114,10 @@ mixin WorkerBeeImpl error as List; final message = error[0] as String; final stackTraceString = error[1] as String?; - final stackTrace = stackTraceString == null - ? null - : StackTrace.fromString(stackTraceString); + final stackTrace = + stackTraceString == null + ? null + : StackTrace.fromString(stackTraceString); final exception = WorkerBeeExceptionImpl(message, stackTrace); _controller?.addError(exception, stackTrace); completeError(exception, stackTrace); @@ -129,9 +126,7 @@ mixin WorkerBeeImpl } @override - Future close({ - bool force = false, - }) async { + Future close({bool force = false}) async { await _controller?.close(); _controller = null; await super.close(force: force); diff --git a/packages/worker_bee/worker_bee/lib/worker_bee.dart b/packages/worker_bee/worker_bee/lib/worker_bee.dart index 02ec07d9b5..0075dd3cfc 100644 --- a/packages/worker_bee/worker_bee/lib/worker_bee.dart +++ b/packages/worker_bee/worker_bee/lib/worker_bee.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Multi-platform workers for Dart (Web, VM). -library worker_bee; +library; import 'dart:async'; @@ -74,9 +74,7 @@ abstract class WorkerBeeBase extends WorkerBeeCommon with WorkerBeeImpl { /// {@macro worker_bee.worker_bee_base} - WorkerBeeBase({ - super.serializers, - }); + WorkerBeeBase({super.serializers}); } /// Helper for casting [StreamSink]s. diff --git a/packages/worker_bee/worker_bee/pubspec.yaml b/packages/worker_bee/worker_bee/pubspec.yaml index d875922757..6178a5b99a 100644 --- a/packages/worker_bee/worker_bee/pubspec.yaml +++ b/packages/worker_bee/worker_bee/pubspec.yaml @@ -1,28 +1,28 @@ name: worker_bee description: A cross-platform isolated worker runtime for Dart Web, VM, and Flutter. -version: 0.3.4 +version: 0.3.5 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/worker_bee/worker_bee issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: async: ^2.10.0 - aws_common: ">=0.7.6 <0.8.0" + aws_common: ">=0.7.7 <0.8.0" built_collection: ^5.0.0 built_value: ^8.6.0 collection: ^1.15.0 js: ">=0.6.4 <0.8.0" - meta: ^1.7.0 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" stack_trace: ^1.10.0 stream_channel: ^2.1.0 stream_transform: ^2.0.0 dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" build_runner: ^2.4.9 - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 test: ^1.22.1 diff --git a/packages/worker_bee/worker_bee_builder/CHANGELOG.md b/packages/worker_bee/worker_bee_builder/CHANGELOG.md index a193f3ca6e..db86e5413b 100644 --- a/packages/worker_bee/worker_bee_builder/CHANGELOG.md +++ b/packages/worker_bee/worker_bee_builder/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.3.4 + +### Chores +- chore(all): Bump Dart SDK to 3.7.0 ([#6026](https://github.com/aws-amplify/amplify-flutter/pull/6026)) + ## 0.3.3 - Minor bug fixes and improvements diff --git a/packages/worker_bee/worker_bee_builder/lib/src/copy_builder.dart b/packages/worker_bee/worker_bee_builder/lib/src/copy_builder.dart index b4e8003a0d..855c03e26e 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/copy_builder.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/copy_builder.dart @@ -38,10 +38,7 @@ class WorkerCopyBuilder extends Builder { } final outputId = AssetId( buildStep.inputId.package, - p.join( - p.dirname(buildStep.inputId.path), - filename, - ), + p.join(p.dirname(buildStep.inputId.path), filename), ); await buildStep.writeAsString(outputId, input); } diff --git a/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart b/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart index bf243b9603..d5486f7809 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/hive_generator.dart @@ -33,33 +33,32 @@ class WorkerHiveGenerator extends GeneratorForAnnotation { final lib = Library((b) { b.body.addAll([ Field( - (m) => m - ..name = '_workers' - ..modifier = FieldModifier.final$ - ..assignment = literalMap( - { - for (final workerType in workers) - // TODO(Jordan-Nelson): remove use of `withNullability` when min dart version is 3.4 or higher - // ignore: deprecated_member_use - workerType.getDisplayString(withNullability: false): - Block.of([ - (workerType.accept(_symbolVisitor) as TypeReference) - .rebuild((t) => t.isNullable = false) - .property('create') - .code, - if (workers.length == 1) const Code(','), - ]), - }, - refer('String'), - DartTypes.workerBee.workerBeeBuilder, - ).code, + (m) => + m + ..name = '_workers' + ..modifier = FieldModifier.final$ + ..assignment = + literalMap( + { + for (final workerType in workers) + workerType.getDisplayString(): Block.of([ + (workerType.accept(_symbolVisitor) as TypeReference) + .rebuild((t) => t.isNullable = false) + .property('create') + .code, + if (workers.length == 1) const Code(','), + ]), + }, + refer('String'), + DartTypes.workerBee.workerBeeBuilder, + ).code, ), Method.returnsVoid( - (m) => m - ..name = 'main' - ..body = DartTypes.workerBee.runHive.call([ - refer('_workers'), - ]).code, + (m) => + m + ..name = 'main' + ..body = + DartTypes.workerBee.runHive.call([refer('_workers')]).code, ), ]); }); diff --git a/packages/worker_bee/worker_bee_builder/lib/src/impl/common.dart b/packages/worker_bee/worker_bee_builder/lib/src/impl/common.dart index 5528d36350..4a958794ff 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/impl/common.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/impl/common.dart @@ -12,7 +12,7 @@ enum Target { vm, /// Web target - js + js, } /// {@template worker_bee_builder.worker_impl} @@ -34,17 +34,10 @@ class WorkerImpl { /// {@endtemplate} abstract class ImplGenerator { /// {@macro worker_bee_builder.impl_generator} - ImplGenerator( - this.workerEl, - this.requestEl, - this.responseEl, - ) { + ImplGenerator(this.workerEl, this.requestEl, this.responseEl) { workerName = workerEl.name; workerImplName = '${workerName}Impl'; - workerType = Reference( - workerName, - workerEl.librarySource.uri.toString(), - ); + workerType = Reference(workerName, workerEl.librarySource.uri.toString()); _checkCtors(workerEl.constructors); requestType = requestEl.thisType.accept(symbolVisitor); diff --git a/packages/worker_bee/worker_bee_builder/lib/src/impl/js.dart b/packages/worker_bee/worker_bee_builder/lib/src/impl/js.dart index 99052d92b2..0bdcebb612 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/impl/js.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/impl/js.dart @@ -33,12 +33,7 @@ class JsGenerator extends ImplGenerator { @override Library generate() { - return Library( - (b) => b - ..body.addAll([ - _workerClass, - ]), - ); + return Library((b) => b..body.addAll([_workerClass])); } late final _packageName = hiveEntrypointId.package; @@ -46,8 +41,9 @@ class JsGenerator extends ImplGenerator { late final _workersJs = hiveEntrypointId.changeExtension('.js'); late final _workersJsPath = 'packages/$_packageName/${_workersJs.path.replaceFirst('lib/', '')}'; - late final _debugWorkersJs = - hiveEntrypointId.changeExtension('.debug.dart.js'); + late final _debugWorkersJs = hiveEntrypointId.changeExtension( + '.debug.dart.js', + ); late final _debugWorkersJsPath = 'packages/$_packageName/${_debugWorkersJs.path.replaceFirst('lib/', '')}'; @@ -55,8 +51,9 @@ class JsGenerator extends ImplGenerator { late final _minifiedWorkersJsPath = 'packages/$_packageName/${_minifiedWorkersJs.path.replaceFirst('lib/', '')}'; - late final _releaseWorkersJs = - hiveEntrypointId.changeExtension('.release.dart.js'); + late final _releaseWorkersJs = hiveEntrypointId.changeExtension( + '.release.dart.js', + ); late final _releaseWorkersJsPath = 'packages/$_packageName/${_releaseWorkersJs.path.replaceFirst('lib/', '')}'; @@ -102,44 +99,49 @@ return ${allocate(DartTypes.awsCommon.zDebugMode)} ? '$_workersJsPath' : '$_mini port: baseUri.port, path: '$basePath/test/$relativePath', ).toString();'''), - literalList([refer('relativePath'), refer('testRelativePath')]) - .returned - .statement, + literalList([ + refer('relativePath'), + refer('testRelativePath'), + ]).returned.statement, ]); } Class get _workerClass => Class( - (c) => c + (c) => + c ..name = workerImplName ..docs.add('/// The JS implementation of [${workerType.symbol}].') ..extend = workerType ..methods.addAll([ Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..type = MethodType.getter - ..name = 'name' - ..body = literalString(workerName).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..type = MethodType.getter + ..name = 'name' + ..body = literalString(workerName).code, ), if (!declaresJsEntrypoint) Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..type = MethodType.getter - ..name = 'jsEntrypoint' - ..body = _jsEntrypoint, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..type = MethodType.getter + ..name = 'jsEntrypoint' + ..body = _jsEntrypoint, ), if (!declaresFallbackUrls) Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.list(DartTypes.core.string) - ..type = MethodType.getter - ..name = 'fallbackUrls' - ..body = _fallbackUrls, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.list(DartTypes.core.string) + ..type = MethodType.getter + ..name = 'fallbackUrls' + ..body = _fallbackUrls, ), ]), - ); + ); } diff --git a/packages/worker_bee/worker_bee_builder/lib/src/impl/vm.dart b/packages/worker_bee/worker_bee_builder/lib/src/impl/vm.dart index 9d98c3175f..7860b4d522 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/impl/vm.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/impl/vm.dart @@ -11,33 +11,25 @@ import 'package:worker_bee_builder/src/types.dart'; /// {@endtemplate} class VmGenerator extends ImplGenerator { /// {@macro worker_bee_builder.vm_generator} - VmGenerator( - super.classEl, - super.requestTypeEl, - super.responseTypeEl, - ); + VmGenerator(super.classEl, super.requestTypeEl, super.responseTypeEl); @override Library generate() { - return Library( - (b) => b - ..body.addAll([ - _runner, - _workerClass, - ]), - ); + return Library((b) => b..body.addAll([_runner, _workerClass])); } /// Isolate entrypoint. Method get _runner => Method( - (m) => m + (m) => + m ..name = '_run' ..returns = DartTypes.async.future(DartTypes.core.void$) ..requiredParameters.add( Parameter( - (p) => p - ..type = DartTypes.workerBee.sendPorts - ..name = 'ports', + (p) => + p + ..type = DartTypes.workerBee.sendPorts + ..name = 'ports', ), ) ..modifier = MethodModifier.async @@ -57,30 +49,33 @@ ${allocate(DartTypes.async.unawaited)}(worker.close()); ${allocate(DartTypes.isolate.isolate)}.exit(ports.donePort${responseType.isVoid ? '' : ', result'}); ''', ), - ); + ); Class get _workerClass => Class( - (c) => c + (c) => + c ..name = workerImplName ..docs.add('/// The VM implementation of [${workerType.symbol}].') ..extend = workerType ..methods.addAll([ Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.core.string - ..type = MethodType.getter - ..name = 'name' - ..body = literalString(workerName).code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.core.string + ..type = MethodType.getter + ..name = 'name' + ..body = literalString(workerName).code, ), Method( - (m) => m - ..annotations.add(DartTypes.core.override) - ..returns = DartTypes.workerBee.vmEntrypoint - ..type = MethodType.getter - ..name = 'vmEntrypoint' - ..body = refer('_run').code, + (m) => + m + ..annotations.add(DartTypes.core.override) + ..returns = DartTypes.workerBee.vmEntrypoint + ..type = MethodType.getter + ..name = 'vmEntrypoint' + ..body = refer('_run').code, ), ]), - ); + ); } diff --git a/packages/worker_bee/worker_bee_builder/lib/src/type_visitor.dart b/packages/worker_bee/worker_bee_builder/lib/src/type_visitor.dart index 9cd104de5e..fcbafd3900 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/type_visitor.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/type_visitor.dart @@ -21,14 +21,14 @@ class SymbolVisitor extends UnifyingTypeVisitor { TypeParameterType _ => type.bound.accept(this), VoidType _ => const Reference('void'), InterfaceType _ => TypeReference((t) { - t - ..isNullable = type.nullabilitySuffix != NullabilitySuffix.none - ..symbol = type.element.name - ..url = type.element.librarySource.uri.toString() - ..types.addAll([ - for (final typeArg in type.typeArguments) typeArg.accept(this), - ]); - }), + t + ..isNullable = type.nullabilitySuffix != NullabilitySuffix.none + ..symbol = type.element.name + ..url = type.element.librarySource.uri.toString() + ..types.addAll([ + for (final typeArg in type.typeArguments) typeArg.accept(this), + ]); + }), _ => throw UnsupportedError('$type is not supported'), }; } diff --git a/packages/worker_bee/worker_bee_builder/lib/src/types.dart b/packages/worker_bee/worker_bee_builder/lib/src/types.dart index d471986101..b33b353e50 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/types.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/types.dart @@ -38,19 +38,19 @@ class _Core { /// Creates a [core.List] reference. Reference list([Reference? ref]) => TypeReference( - (t) => t + (t) => + t ..symbol = 'List' - ..types.addAll([ - if (ref != null) ref, - ]), - ); + ..types.addAll([if (ref != null) ref]), + ); /// Creates a [core.Map] reference. Reference map(Reference key, Reference value) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Map' ..types.addAll([key, value]), - ); + ); /// Creates an [core.Object] reference. Reference get object => const Reference('Object'); @@ -73,10 +73,11 @@ class _Async { /// Creates a [Future] reference. Reference future(Reference ref) => TypeReference( - (t) => t + (t) => + t ..symbol = 'Future' ..types.add(ref), - ); + ); /// Creates an [unawaited] reference. Reference get unawaited => const Reference('unawaited', _url); diff --git a/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart b/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart index 9591004095..cae593e83e 100644 --- a/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart +++ b/packages/worker_bee/worker_bee_builder/lib/src/worker_generator.dart @@ -14,14 +14,14 @@ import 'package:worker_bee_builder/src/impl/vm.dart'; /// Creates an emitter instance with common configuration. DartEmitter createEmitter() => DartEmitter( - allocator: Allocator(), - orderDirectives: true, - useNullSafetySyntax: true, - ); + allocator: Allocator(), + orderDirectives: true, + useNullSafetySyntax: true, +); /// The common formatter for generated code. final formatter = DartFormatter( - fixes: StyleFix.all, + languageVersion: DartFormatter.latestLanguageVersion, ); /// Common header for generated outputs. @@ -56,9 +56,9 @@ class WorkerBeeGenerator extends GeneratorForAnnotation { final requestTypeEl = requestType.element; if (requestTypeEl == null || requestTypeEl is! ClassElement) { final requestTypeName = - // TODO(Jordan-Nelson): remove use of `withNullability` when min dart version is 3.4 or higher - // ignore: deprecated_member_use - requestType.getDisplayString(withNullability: true); + // TODO(Jordan-Nelson): remove use of `withNullability` when min dart version is 3.4 or higher + // ignore: deprecated_member_use + requestType.getDisplayString(withNullability: true); throw ArgumentError('Could not find element for $requestTypeName.'); } @@ -114,19 +114,17 @@ export '${libraries[Target.vm]}' bool declaresFallbackUrls, AssetId hiveEntrypointId, ) { - final vmClass = VmGenerator( - workerEl, - messageTypeEl, - resultTypeEl, - ).generate(); - final jsClass = JsGenerator( - workerEl, - messageTypeEl, - resultTypeEl, - declaresJsEntrypoint: declaresJsEntrypoint, - declaresFallbackUrls: declaresFallbackUrls, - hiveEntrypointId: hiveEntrypointId, - ).generate(); + final vmClass = + VmGenerator(workerEl, messageTypeEl, resultTypeEl).generate(); + final jsClass = + JsGenerator( + workerEl, + messageTypeEl, + resultTypeEl, + declaresJsEntrypoint: declaresJsEntrypoint, + declaresFallbackUrls: declaresFallbackUrls, + hiveEntrypointId: hiveEntrypointId, + ).generate(); return [ WorkerImpl( diff --git a/packages/worker_bee/worker_bee_builder/lib/worker_bee_builder.dart b/packages/worker_bee/worker_bee_builder/lib/worker_bee_builder.dart index 3941a067bc..aaabfd96bb 100644 --- a/packages/worker_bee/worker_bee_builder/lib/worker_bee_builder.dart +++ b/packages/worker_bee/worker_bee_builder/lib/worker_bee_builder.dart @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 /// Builder definitons for `worker_bee_builder`. -library worker_bee_builder.builder; +library; import 'package:build/build.dart'; import 'package:source_gen/source_gen.dart'; @@ -15,24 +15,19 @@ import 'package:worker_bee_builder/src/worker_generator.dart'; /// Generates platform-specific boilerplate for [WorkerBee]-annotated classes. /// {@endtemplate} Builder workerBeeBuilder(BuilderOptions options) => LibraryBuilder( - WorkerBeeGenerator(), - generatedExtension: '.worker.dart', - additionalOutputExtensions: [ - '.worker.vm.dart', - '.worker.js.dart', - ], - ); + WorkerBeeGenerator(), + generatedExtension: '.worker.dart', + additionalOutputExtensions: ['.worker.vm.dart', '.worker.js.dart'], +); /// {@template worker_bee_builder.worker_hive_builder} /// Generates Hive definitions for packages with multiple worker bee types. /// {@endtemplate} Builder workerHiveBuilder(BuilderOptions options) => LibraryBuilder( - WorkerHiveGenerator(), - generatedExtension: '.debug.dart', - additionalOutputExtensions: [ - '.release.dart', - ], - ); + WorkerHiveGenerator(), + generatedExtension: '.debug.dart', + additionalOutputExtensions: ['.release.dart'], +); /// {@template worker_bee_builder.worker_copy_builder} /// Copies generated JS artifacts to `lib/` for publishing. diff --git a/packages/worker_bee/worker_bee_builder/pubspec.yaml b/packages/worker_bee/worker_bee_builder/pubspec.yaml index f827d1ecd1..97615b2d8a 100644 --- a/packages/worker_bee/worker_bee_builder/pubspec.yaml +++ b/packages/worker_bee/worker_bee_builder/pubspec.yaml @@ -1,27 +1,27 @@ name: worker_bee_builder description: Builder package for worker_bee to quickly generate necessary boilerplate -version: 0.3.3 +version: 0.3.4 homepage: https://github.com/aws-amplify/amplify-flutter/tree/main repository: https://github.com/aws-amplify/amplify-flutter/tree/main/packages/worker_bee/worker_bee_builder issue_tracker: https://github.com/aws-amplify/amplify-flutter/issues environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: - analyzer: ">=5.1.0 <7.0.0" + analyzer: ">=7.3.0 <7.4.0" async: ^2.10.0 build: ^2.2.1 - code_builder: 4.10.0 + code_builder: ^4.10.1 collection: ^1.15.0 - dart_style: ^2.3.2 - meta: ^1.7.0 + dart_style: ^3.0.1 + meta: ^1.16.0 path: ">=1.8.0 <2.0.0" - source_gen: ^1.3.2 + source_gen: ^2.0.0 stream_channel: ^2.1.0 tuple: ^2.0.0 - worker_bee: ">=0.3.4 <0.4.0" + worker_bee: ">=0.3.5 <0.4.0" dev_dependencies: - amplify_lints: ">=3.1.1 <3.2.0" + amplify_lints: ">=3.1.2 <3.2.0" test: ^1.22.1 diff --git a/pubspec.yaml b/pubspec.yaml index c3ab04736c..90b94fee1f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,8 +3,8 @@ publish_to: none # The current constraints for Dart and Flutter SDKs. environment: - sdk: ^3.6.0 - flutter: ">=3.27.0" + sdk: ^3.7.0 + flutter: ">=3.29.0" # Global dependency versions for third-party dependencies of # Amplify Flutter projects. These represent the values which @@ -18,13 +18,13 @@ dependencies: build_runner: ^2.4.9 build_web_compilers: ^4.0.0 built_value: "^8.6.0" - built_value_generator: 8.9.3 + built_value_generator: ^8.9.5 code_builder: 4.10.0 connectivity_plus: ^6.0.1 # This must roughly match what's included in `dart format` # on stable so that CI checks pass for generated code. - dart_style: ^2.3.2 - device_info_plus: ^10.0.1 + dart_style: ^3.0.1 + device_info_plus: ^11.3.3 drift: ^2.25.0 drift_dev: ^2.25.1 ffigen: ^9.0.0 @@ -34,13 +34,13 @@ dependencies: http: ">=0.13.0 <2.0.0" intl: ">=0.18.0 <1.0.0" json_annotation: ">=4.9.0 <4.10.0" - json_serializable: 6.8.0 + json_serializable: ^6.9.4 mime: ">=1.0.0 <3.0.0" oauth2: ^2.0.2 package_info_plus: ^8.0.0 pigeon: ^22.6.2 sqlite3: ">=2.6.0 <2.7.0" - source_gen: ^1.3.2 + source_gen: ^2.0.0 stack_trace: ^1.10.0 uuid: ">=3.0.6 <5.0.0" win32: ">=4.1.2 <6.0.0" diff --git a/templates/dart-package/__brick__/example/pubspec.yaml b/templates/dart-package/__brick__/example/pubspec.yaml index 2c90042f0f..9747824c7e 100644 --- a/templates/dart-package/__brick__/example/pubspec.yaml +++ b/templates/dart-package/__brick__/example/pubspec.yaml @@ -10,6 +10,6 @@ dependencies: path: ../ dev_dependencies: - amplify_lints: ^2.0.0 + amplify_lints: ^3.1.0 build_runner: ^2.1.4 build_web_compilers: ^3.2.1 diff --git a/templates/dart-package/__brick__/pubspec.yaml b/templates/dart-package/__brick__/pubspec.yaml index 8bbc3723c3..abdf53da03 100644 --- a/templates/dart-package/__brick__/pubspec.yaml +++ b/templates/dart-package/__brick__/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: amplify_core: "{{{amplifyCoreConstraint}}}" dev_dependencies: - amplify_lints: ^2.0.0 + amplify_lints: ^3.1.0 build_runner: ^2.0.0 build_test: ^2.0.0 build_web_compilers: ^3.0.0 diff --git a/templates/dart-package/hooks/pubspec.yaml b/templates/dart-package/hooks/pubspec.yaml index 733e5f7bf1..b16188dd8c 100644 --- a/templates/dart-package/hooks/pubspec.yaml +++ b/templates/dart-package/hooks/pubspec.yaml @@ -2,7 +2,7 @@ name: dart_package_hooks publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: mason: ">=0.1.0-dev.40 <0.1.0" diff --git a/templates/flutter-package/__brick__/example/android/.gitignore b/templates/flutter-package/__brick__/example/android/.gitignore index 6f568019d3..604b667a6c 100644 --- a/templates/flutter-package/__brick__/example/android/.gitignore +++ b/templates/flutter-package/__brick__/example/android/.gitignore @@ -5,6 +5,7 @@ gradle-wrapper.jar /gradlew.bat /local.properties GeneratedPluginRegistrant.java +**/.cxx # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app diff --git a/templates/flutter-package/__brick__/example/android/app/build.gradle b/templates/flutter-package/__brick__/example/android/app/build.gradle index e1191bc6c7..ae5cee3aee 100644 --- a/templates/flutter-package/__brick__/example/android/app/build.gradle +++ b/templates/flutter-package/__brick__/example/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,16 +22,14 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace 'com.amazonaws.amplify.{{name}}_example' compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -68,5 +67,5 @@ flutter { } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.0") } diff --git a/templates/flutter-package/__brick__/example/android/build.gradle b/templates/flutter-package/__brick__/example/android/build.gradle index 24d8637a29..cf9fba7e06 100644 --- a/templates/flutter-package/__brick__/example/android/build.gradle +++ b/templates/flutter-package/__brick__/example/android/build.gradle @@ -1,16 +1,3 @@ -buildscript { - ext.kotlin_version = '1.9.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - allprojects { repositories { google() diff --git a/templates/flutter-package/__brick__/example/android/gradle/wrapper/gradle-wrapper.properties b/templates/flutter-package/__brick__/example/android/gradle/wrapper/gradle-wrapper.properties index cb086a5fcf..5e6b542711 100644 --- a/templates/flutter-package/__brick__/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/templates/flutter-package/__brick__/example/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip diff --git a/templates/flutter-package/__brick__/example/android/settings.gradle b/templates/flutter-package/__brick__/example/android/settings.gradle index 44e62bcf06..6ac9fc18af 100644 --- a/templates/flutter-package/__brick__/example/android/settings.gradle +++ b/templates/flutter-package/__brick__/example/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.3.0" apply false + id "org.jetbrains.kotlin.android" version "1.9.10" apply false +} + +include ":app" diff --git a/templates/flutter-package/__brick__/example/lib/main.dart b/templates/flutter-package/__brick__/example/lib/main.dart index d3fc17219a..a3683d71e6 100644 --- a/templates/flutter-package/__brick__/example/lib/main.dart +++ b/templates/flutter-package/__brick__/example/lib/main.dart @@ -32,9 +32,7 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( title: '{{name.titleCase()}} Example', - theme: ThemeData( - primarySwatch: Colors.blue, - ), + theme: ThemeData(primarySwatch: Colors.blue), home: const MyHomePage(title: '{{name.titleCase()}} Example'), ); } @@ -61,16 +59,12 @@ class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: Text(widget.title), - ), + appBar: AppBar(title: Text(widget.title)), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - const Text( - 'You have pushed the button this many times:', - ), + const Text('You have pushed the button this many times:'), Text( '$_counter', style: Theme.of(context).textTheme.headlineMedium, diff --git a/templates/flutter-package/__brick__/example/pubspec.yaml b/templates/flutter-package/__brick__/example/pubspec.yaml index df12612b40..0f72aaf9f5 100644 --- a/templates/flutter-package/__brick__/example/pubspec.yaml +++ b/templates/flutter-package/__brick__/example/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: sdk: flutter dev_dependencies: - amplify_lints: ^2.0.0 + amplify_lints: ^3.1.0 flutter_test: sdk: flutter diff --git a/templates/flutter-package/__brick__/pubspec.yaml b/templates/flutter-package/__brick__/pubspec.yaml index ed860d6a52..7a959f9a1d 100644 --- a/templates/flutter-package/__brick__/pubspec.yaml +++ b/templates/flutter-package/__brick__/pubspec.yaml @@ -12,6 +12,6 @@ dependencies: amplify_flutter: "{{{amplifyFlutterConstraint}}}" dev_dependencies: - amplify_lints: ^2.0.0 + amplify_lints: ^3.1.0 flutter_test: sdk: flutter diff --git a/templates/flutter-package/hooks/pubspec.yaml b/templates/flutter-package/hooks/pubspec.yaml index 3fc926530e..34dfa872ec 100644 --- a/templates/flutter-package/hooks/pubspec.yaml +++ b/templates/flutter-package/hooks/pubspec.yaml @@ -2,7 +2,7 @@ name: flutter_package_hooks publish_to: none environment: - sdk: ^3.6.0 + sdk: ^3.7.0 dependencies: mason: ">=0.1.0-dev.40 <0.1.0" diff --git a/tool/bump_version.dart b/tool/bump_version.dart index 29dca9068d..76ccfe973d 100644 --- a/tool/bump_version.dart +++ b/tool/bump_version.dart @@ -26,38 +26,41 @@ Future _bumpVersionInFiles() async { String? newVersion = stdin.readLineSync(); stdout.write( - 'What is the date for this release? Use international format yyyy-mm-dd e.g. 2020-07-29. \n'); + 'What is the date for this release? Use international format yyyy-mm-dd e.g. 2020-07-29. \n', + ); String? date = stdin.readLineSync(); if (oldVersion != null && newVersion != null && date != null) { // First, update in pubspec files. final packagePubspecFilePattern = 'packages/**/pubspec.yaml'; final patternsForAllPubspecs = [ packagePubspecFilePattern, - 'example/pubspec.yaml' + 'example/pubspec.yaml', ]; // Changes references to amplify libraries. patternsForAllPubspecs.forEach((pattern) async { await Process.run('/bin/sh', [ '-c', - 'sed -i "" "/amplify/s/$oldVersion/$newVersion/g" $pattern' // lines that have "amplify" and the old version, change old to new + 'sed -i "" "/amplify/s/$oldVersion/$newVersion/g" $pattern', // lines that have "amplify" and the old version, change old to new ]); }); // Change the version: x at top of files. await Process.run('/bin/sh', [ '-c', - 'sed -i "" "s/version: $oldVersion/version: $newVersion/g" $packagePubspecFilePattern' // instances of "version: " to "version: " + 'sed -i "" "s/version: $oldVersion/version: $newVersion/g" $packagePubspecFilePattern', // instances of "version: " to "version: " ]); // Change the string representation of version in top-level amplify.dart. await Process.run('/bin/sh', [ '-c', - 'sed -i "" "s/return \'$oldVersion\'/return \'$newVersion\'/g" packages/amplify_flutter/lib/amplify.dart' + 'sed -i "" "s/return \'$oldVersion\'/return \'$newVersion\'/g" packages/amplify_flutter/lib/amplify.dart', ]); // Get all the changelog file names and add the blank entry to the top of them. final textToAdd = '## $newVersion ($date)\n\n'; - final results = - await Process.run('/bin/sh', ['-c', 'find packages/**/CHANGELOG.md']); + final results = await Process.run('/bin/sh', [ + '-c', + 'find packages/**/CHANGELOG.md', + ]); final fileNames = results.stdout.toString().trim().split('\n'); fileNames.forEach((fileName) async { await _addTextToTopOfFile(fileName, textToAdd); diff --git a/tool/send_metric_data.dart b/tool/send_metric_data.dart index a74c81887a..034dfd79f4 100755 --- a/tool/send_metric_data.dart +++ b/tool/send_metric_data.dart @@ -19,7 +19,8 @@ void main(List args) { if (!metricNameRegex.hasMatch(metricNameTrimmed)) { print( - 'Metric name can only contain alphanumeric characters, space character, -, and _.'); + 'Metric name can only contain alphanumeric characters, space character, -, and _.', + ); exit(1); } if (!valueRegex.hasMatch(valueTrimmed)) { @@ -28,7 +29,8 @@ void main(List args) { } if (!dimensionsRegex.hasMatch(dimensionsTrimmed)) { print( - 'Dimensions must be empty or be in format string=string,string=string,...'); + 'Dimensions must be empty or be in format string=string,string=string,...', + ); exit(1); }